@vtj/parser 0.19.22 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +18 -18
- package/dist/index.mjs +461 -429
- package/package.json +3 -3
- package/types/version.d.ts +2 -2
- package/types/vue/file.d.ts +2 -0
- package/types/vue/template.d.ts +1 -0
package/dist/index.mjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { parse as
|
|
2
|
-
import { parse as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { BlockModel as
|
|
6
|
-
import { GLOBAL_API_MAP as
|
|
7
|
-
import { NodeTypes as
|
|
8
|
-
import { upperFirstCamelCase as
|
|
9
|
-
import
|
|
10
|
-
import * as
|
|
1
|
+
import { parse as He, compileTemplate as We } from "@vue/compiler-sfc";
|
|
2
|
+
import { parse as vu } from "@babel/parser";
|
|
3
|
+
import Ee from "@babel/traverse";
|
|
4
|
+
import Ie from "@babel/generator";
|
|
5
|
+
import { createProjectFileIndex as Eu, getSourceFilePath as Iu, BlockModel as Je } from "@vtj/core";
|
|
6
|
+
import { GLOBAL_API_MAP as ye, UI_PACKAGES as wu, UI_GLOBAL_API_MAPS as Xe, tsFormatter as ae } from "@vtj/coder";
|
|
7
|
+
import { NodeTypes as I } from "@vue/compiler-core";
|
|
8
|
+
import { upperFirstCamelCase as Au, unBase64 as ku, uid as re } from "@vtj/base";
|
|
9
|
+
import Tu from "postcss";
|
|
10
|
+
import * as Nu from "sass";
|
|
11
11
|
import * as q from "@babel/types";
|
|
12
12
|
/**!
|
|
13
13
|
* Copyright (c) 2026, VTJ.PRO All rights reserved.
|
|
14
14
|
* @name @vtj/parser
|
|
15
15
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
16
|
-
* @version 0.
|
|
16
|
+
* @version 0.20.0
|
|
17
17
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
18
18
|
*/
|
|
19
|
-
const
|
|
20
|
-
function
|
|
21
|
-
const { descriptor: e, errors: t } =
|
|
19
|
+
const I0 = "0.20.0";
|
|
20
|
+
function O(u) {
|
|
21
|
+
const { descriptor: e, errors: t } = He(u), a = e.template?.content || "", r = !!e.scriptSetup, n = (e.scriptSetup || e.script)?.content || "", s = e.styles.map((i) => i.content);
|
|
22
22
|
return {
|
|
23
23
|
template: a,
|
|
24
24
|
script: n,
|
|
@@ -28,15 +28,15 @@ function P(u) {
|
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
function _(u) {
|
|
31
|
-
return
|
|
31
|
+
return vu(u, { sourceType: "module", plugins: ["typescript"] });
|
|
32
32
|
}
|
|
33
33
|
function J(u, e) {
|
|
34
|
-
return (
|
|
34
|
+
return (Ee.default || Ee)(u, e);
|
|
35
35
|
}
|
|
36
36
|
function A(u) {
|
|
37
37
|
if (!u) return "";
|
|
38
38
|
try {
|
|
39
|
-
return te(u), (
|
|
39
|
+
return te(u), (Ie.default || Ie)(u, {
|
|
40
40
|
comments: !1,
|
|
41
41
|
concise: !0,
|
|
42
42
|
retainLines: !1,
|
|
@@ -48,7 +48,7 @@ function A(u) {
|
|
|
48
48
|
return console.error("代码生成错误", e), "";
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
const
|
|
51
|
+
const ju = /* @__PURE__ */ new Set([
|
|
52
52
|
"TSAsExpression",
|
|
53
53
|
"TSTypeAssertion",
|
|
54
54
|
"TSNonNullExpression"
|
|
@@ -59,7 +59,7 @@ function te(u) {
|
|
|
59
59
|
for (const e of u) te(e);
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
if (
|
|
62
|
+
if (ju.has(u.type) && u.expression) {
|
|
63
63
|
const e = u.expression;
|
|
64
64
|
te(e);
|
|
65
65
|
const t = {
|
|
@@ -80,16 +80,16 @@ function te(u) {
|
|
|
80
80
|
function ne(u) {
|
|
81
81
|
return !!u && u.type === "JSExpression";
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function Vu(u) {
|
|
84
84
|
return typeof u == "object" && !!u && u.type === "JSFunction";
|
|
85
85
|
}
|
|
86
86
|
function oe(u) {
|
|
87
|
-
return !!ne(u) || !!
|
|
87
|
+
return !!ne(u) || !!Vu(u);
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function qu(u) {
|
|
90
90
|
return !!u && !ne(u) && typeof u != "string";
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function ze(u, e) {
|
|
93
93
|
try {
|
|
94
94
|
const t = _(u);
|
|
95
95
|
return J(t, e), A(t) || "";
|
|
@@ -97,7 +97,7 @@ function Xe(u, e) {
|
|
|
97
97
|
return "";
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function Du(u) {
|
|
101
101
|
if (!u) return "";
|
|
102
102
|
try {
|
|
103
103
|
const e = _(u);
|
|
@@ -135,10 +135,10 @@ function Nu(u) {
|
|
|
135
135
|
return u;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function Ru(u, e) {
|
|
139
139
|
const t = [];
|
|
140
140
|
try {
|
|
141
|
-
const { descriptor: a, errors: r } =
|
|
141
|
+
const { descriptor: a, errors: r } = He(u);
|
|
142
142
|
if (r && r.length > 0 && r.forEach((s) => {
|
|
143
143
|
const i = s.message || String(s), o = s.loc;
|
|
144
144
|
o && o.start ? t.push(
|
|
@@ -146,7 +146,7 @@ function ju(u, e) {
|
|
|
146
146
|
) : t.push(`Vue SFC 错误: ${i}`);
|
|
147
147
|
}), a.template)
|
|
148
148
|
try {
|
|
149
|
-
const s =
|
|
149
|
+
const s = We({
|
|
150
150
|
id: "validation",
|
|
151
151
|
filename: e,
|
|
152
152
|
source: a.template.content,
|
|
@@ -173,8 +173,8 @@ function ju(u, e) {
|
|
|
173
173
|
}
|
|
174
174
|
return t.length > 0 ? t : null;
|
|
175
175
|
}
|
|
176
|
-
function
|
|
177
|
-
const e =
|
|
176
|
+
function w0(u) {
|
|
177
|
+
const e = O(u), t = _(e.script), a = {};
|
|
178
178
|
return e.styles && (a.css = e.styles[0] || ""), J(t, {
|
|
179
179
|
CallExpression(r) {
|
|
180
180
|
const n = r.node.callee?.name;
|
|
@@ -191,20 +191,20 @@ function x0(u) {
|
|
|
191
191
|
function R(u, e, t) {
|
|
192
192
|
if (!u.includes(e)) return u;
|
|
193
193
|
try {
|
|
194
|
-
return
|
|
194
|
+
return Ze(u, e, t);
|
|
195
195
|
} catch {
|
|
196
196
|
return u;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function Cu(u, e) {
|
|
200
200
|
if (!u.includes(e)) return u;
|
|
201
201
|
try {
|
|
202
|
-
return
|
|
202
|
+
return Ze(u, e, `this.${e}.value`, !0);
|
|
203
203
|
} catch {
|
|
204
204
|
return u;
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function Ze(u, e, t, a = !1) {
|
|
208
208
|
let r, n = 0;
|
|
209
209
|
try {
|
|
210
210
|
r = _(u);
|
|
@@ -222,21 +222,21 @@ function ze(u, e, t, a = !1) {
|
|
|
222
222
|
Identifier(o) {
|
|
223
223
|
const c = o.node;
|
|
224
224
|
if (c.name !== e) return;
|
|
225
|
-
const d =
|
|
225
|
+
const d = Mu(o);
|
|
226
226
|
if (d === "skip") return;
|
|
227
227
|
const l = (c.start ?? 0) - n, p = (c.end ?? 0) - n;
|
|
228
228
|
if (l < 0 || p > u.length) return;
|
|
229
|
-
const b = a && d === "replace" &&
|
|
229
|
+
const b = a && d === "replace" && _u(o) ? `this.${e}` : t, m = d === "expand" ? `${e}: ${t}` : b;
|
|
230
230
|
s.some((y) => y.start === l && y.end === p) || s.push({ start: l, end: p, text: m });
|
|
231
231
|
},
|
|
232
232
|
StringLiteral(o) {
|
|
233
|
-
|
|
233
|
+
Lu(o, e, t, n, u, s);
|
|
234
234
|
},
|
|
235
235
|
TemplateLiteral(o) {
|
|
236
|
-
|
|
236
|
+
Pu(o, e, t, n, u, s);
|
|
237
237
|
},
|
|
238
238
|
MemberExpression(o) {
|
|
239
|
-
a ? we(o, e, t, n, u, s) :
|
|
239
|
+
a ? we(o, e, t, n, u, s) : Ae(
|
|
240
240
|
o,
|
|
241
241
|
e,
|
|
242
242
|
t,
|
|
@@ -246,7 +246,7 @@ function ze(u, e, t, a = !1) {
|
|
|
246
246
|
);
|
|
247
247
|
},
|
|
248
248
|
OptionalMemberExpression(o) {
|
|
249
|
-
a ? we(o, e, t, n, u, s) :
|
|
249
|
+
a ? we(o, e, t, n, u, s) : Ae(
|
|
250
250
|
o,
|
|
251
251
|
e,
|
|
252
252
|
t,
|
|
@@ -262,7 +262,7 @@ function ze(u, e, t, a = !1) {
|
|
|
262
262
|
i = i.slice(0, o) + d + i.slice(c);
|
|
263
263
|
return i;
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function _u(u) {
|
|
266
266
|
const e = u.parent;
|
|
267
267
|
return (e?.type === "MemberExpression" || e?.type === "OptionalMemberExpression") && e.object === u.node && !e.computed && e.property?.type === "Identifier" && e.property.name === "value";
|
|
268
268
|
}
|
|
@@ -277,7 +277,7 @@ function we(u, e, t, a, r, n) {
|
|
|
277
277
|
text: o ? `this.${e}` : t
|
|
278
278
|
});
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function Lu(u, e, t, a, r, n) {
|
|
281
281
|
const s = u.node;
|
|
282
282
|
if (!s.value.includes(e)) return;
|
|
283
283
|
const i = u.parent;
|
|
@@ -292,7 +292,7 @@ function Du(u, e, t, a, r, n) {
|
|
|
292
292
|
p >= 0 && b <= r.length && !n.some((m) => m.start === p && m.end === b) && n.push({ start: p, end: b, text: t }), c = d + e.length;
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function Pu(u, e, t, a, r, n) {
|
|
296
296
|
const s = u.parent;
|
|
297
297
|
if (s?.type !== "NewExpression" || s?.callee?.name !== "RegExp")
|
|
298
298
|
return;
|
|
@@ -311,14 +311,14 @@ function Ru(u, e, t, a, r, n) {
|
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function Ae(u, e, t, a, r, n) {
|
|
315
315
|
const s = u.node;
|
|
316
316
|
if (s.object?.type !== "ThisExpression" || s.computed || s.property?.type !== "Identifier" || s.property.name !== e)
|
|
317
317
|
return;
|
|
318
318
|
const i = (s.start ?? 0) - a, o = (s.end ?? 0) - a;
|
|
319
319
|
i < 0 || o > r.length || n.some((c) => c.start === i && c.end === o) || n.push({ start: i, end: o, text: t });
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function Mu(u, e) {
|
|
322
322
|
const t = u.parent, a = t?.type ?? "", r = u.parentPath?.parent;
|
|
323
323
|
switch (a) {
|
|
324
324
|
// 成员访问 obj.key / obj[key] / obj?.key / obj?.[key]
|
|
@@ -425,9 +425,9 @@ function Cu(u, e) {
|
|
|
425
425
|
break;
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
-
return
|
|
428
|
+
return Ou(u) || Bu(u) ? "skip" : "replace";
|
|
429
429
|
}
|
|
430
|
-
function
|
|
430
|
+
function Ou(u) {
|
|
431
431
|
let e = u.parentPath;
|
|
432
432
|
for (; e; ) {
|
|
433
433
|
const t = e.node, a = t?.type ?? "";
|
|
@@ -439,7 +439,7 @@ function _u(u) {
|
|
|
439
439
|
}
|
|
440
440
|
return !1;
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function Bu(u) {
|
|
443
443
|
let e = u.parentPath;
|
|
444
444
|
for (; e; ) {
|
|
445
445
|
const t = e.node?.type ?? "";
|
|
@@ -450,7 +450,7 @@ function Lu(u) {
|
|
|
450
450
|
}
|
|
451
451
|
return !1;
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function ke(u, e, t) {
|
|
454
454
|
const {
|
|
455
455
|
context: a = {},
|
|
456
456
|
computed: r = [],
|
|
@@ -488,7 +488,7 @@ function C(u) {
|
|
|
488
488
|
value: u
|
|
489
489
|
};
|
|
490
490
|
}
|
|
491
|
-
const
|
|
491
|
+
const Fu = [
|
|
492
492
|
"beforeCreate",
|
|
493
493
|
"created",
|
|
494
494
|
"beforeMount",
|
|
@@ -502,46 +502,46 @@ const Mu = [
|
|
|
502
502
|
"renderTriggered",
|
|
503
503
|
"activated",
|
|
504
504
|
"deactivated"
|
|
505
|
-
],
|
|
505
|
+
], $u = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot,svg,path,circle,rect,polygon".split(
|
|
506
506
|
","
|
|
507
|
-
),
|
|
507
|
+
), Uu = "component,slot,template".split(","), Gu = "view,swiper,progress,icon,text,button,checkbox,editor,form,input,label,picker,radio,slider,switch,textarea,audio,camera,image,video,map,canvas".split(
|
|
508
508
|
","
|
|
509
509
|
);
|
|
510
|
-
function
|
|
511
|
-
return e === "uniapp" &&
|
|
510
|
+
function Hu(u, e = "web") {
|
|
511
|
+
return e === "uniapp" && Gu.includes(u);
|
|
512
512
|
}
|
|
513
|
-
function
|
|
514
|
-
return (
|
|
513
|
+
function Qe(u, e = "web") {
|
|
514
|
+
return ($u.includes(u) || Uu.includes(u)) && !Hu(u, e) ? u : Au(u);
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function Ke(u) {
|
|
517
517
|
return u.replace(/\s+/g, " ").split(";").reduce((t, a) => {
|
|
518
518
|
const [r, n] = a.split(":").map((s) => s.trim());
|
|
519
519
|
return r && n && (t[r] = n), t;
|
|
520
520
|
}, {});
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function Wu(u, e, t) {
|
|
523
523
|
if (t === "ObjectExpression")
|
|
524
524
|
return `(Object.assign({${u.split(" ").map((r) => `'${r}': true`).join(",")}}, ${e}))`;
|
|
525
525
|
if (t === "ArrayExpression")
|
|
526
526
|
return `([${u.split(" ").map((r) => `'${r}'`).join(",")}].concat(${e}))`;
|
|
527
527
|
}
|
|
528
|
-
function
|
|
528
|
+
function Ye(u = "") {
|
|
529
529
|
const t = u.trim().match(/DataSource:\s*([^\n=]+={0,2})/)?.[1] || "";
|
|
530
530
|
try {
|
|
531
|
-
return t ? JSON.parse(
|
|
531
|
+
return t ? JSON.parse(ku(t)) : null;
|
|
532
532
|
} catch (a) {
|
|
533
533
|
return console.warn("extractDataSource fail", a), null;
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
|
-
const
|
|
536
|
+
const Ju = /* @__PURE__ */ new Uint16Array(
|
|
537
537
|
// prettier-ignore
|
|
538
538
|
/* @__PURE__ */ 'ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((u) => u.charCodeAt(0))
|
|
539
|
-
),
|
|
539
|
+
), Xu = /* @__PURE__ */ new Uint16Array(
|
|
540
540
|
// prettier-ignore
|
|
541
541
|
/* @__PURE__ */ "Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((u) => u.charCodeAt(0))
|
|
542
542
|
);
|
|
543
543
|
var le;
|
|
544
|
-
const
|
|
544
|
+
const zu = /* @__PURE__ */ new Map([
|
|
545
545
|
[0, 65533],
|
|
546
546
|
// C1 Unicode control character reference replacements
|
|
547
547
|
[128, 8364],
|
|
@@ -571,22 +571,22 @@ const Hu = /* @__PURE__ */ new Map([
|
|
|
571
571
|
[156, 339],
|
|
572
572
|
[158, 382],
|
|
573
573
|
[159, 376]
|
|
574
|
-
]),
|
|
574
|
+
]), Te = (
|
|
575
575
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, n/no-unsupported-features/es-builtins
|
|
576
576
|
(le = String.fromCodePoint) !== null && le !== void 0 ? le : function(u) {
|
|
577
577
|
let e = "";
|
|
578
578
|
return u > 65535 && (u -= 65536, e += String.fromCharCode(u >>> 10 & 1023 | 55296), u = 56320 | u & 1023), e += String.fromCharCode(u), e;
|
|
579
579
|
}
|
|
580
580
|
);
|
|
581
|
-
function
|
|
581
|
+
function Zu(u) {
|
|
582
582
|
var e;
|
|
583
|
-
return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e =
|
|
583
|
+
return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e = zu.get(u)) !== null && e !== void 0 ? e : u;
|
|
584
584
|
}
|
|
585
585
|
var V;
|
|
586
586
|
(function(u) {
|
|
587
587
|
u[u.NUM = 35] = "NUM", u[u.SEMI = 59] = "SEMI", u[u.EQUALS = 61] = "EQUALS", u[u.ZERO = 48] = "ZERO", u[u.NINE = 57] = "NINE", u[u.LOWER_A = 97] = "LOWER_A", u[u.LOWER_F = 102] = "LOWER_F", u[u.LOWER_X = 120] = "LOWER_X", u[u.LOWER_Z = 122] = "LOWER_Z", u[u.UPPER_A = 65] = "UPPER_A", u[u.UPPER_F = 70] = "UPPER_F", u[u.UPPER_Z = 90] = "UPPER_Z";
|
|
588
588
|
})(V || (V = {}));
|
|
589
|
-
const
|
|
589
|
+
const Qu = 32;
|
|
590
590
|
var W;
|
|
591
591
|
(function(u) {
|
|
592
592
|
u[u.VALUE_LENGTH = 49152] = "VALUE_LENGTH", u[u.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", u[u.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
@@ -594,26 +594,26 @@ var W;
|
|
|
594
594
|
function be(u) {
|
|
595
595
|
return u >= V.ZERO && u <= V.NINE;
|
|
596
596
|
}
|
|
597
|
-
function
|
|
597
|
+
function Ku(u) {
|
|
598
598
|
return u >= V.UPPER_A && u <= V.UPPER_F || u >= V.LOWER_A && u <= V.LOWER_F;
|
|
599
599
|
}
|
|
600
|
-
function
|
|
600
|
+
function Yu(u) {
|
|
601
601
|
return u >= V.UPPER_A && u <= V.UPPER_Z || u >= V.LOWER_A && u <= V.LOWER_Z || be(u);
|
|
602
602
|
}
|
|
603
|
-
function
|
|
604
|
-
return u === V.EQUALS ||
|
|
603
|
+
function et(u) {
|
|
604
|
+
return u === V.EQUALS || Yu(u);
|
|
605
605
|
}
|
|
606
606
|
var j;
|
|
607
607
|
(function(u) {
|
|
608
608
|
u[u.EntityStart = 0] = "EntityStart", u[u.NumericStart = 1] = "NumericStart", u[u.NumericDecimal = 2] = "NumericDecimal", u[u.NumericHex = 3] = "NumericHex", u[u.NamedEntity = 4] = "NamedEntity";
|
|
609
609
|
})(j || (j = {}));
|
|
610
|
-
var
|
|
610
|
+
var B;
|
|
611
611
|
(function(u) {
|
|
612
612
|
u[u.Legacy = 0] = "Legacy", u[u.Strict = 1] = "Strict", u[u.Attribute = 2] = "Attribute";
|
|
613
|
-
})(
|
|
614
|
-
class
|
|
613
|
+
})(B || (B = {}));
|
|
614
|
+
class ut {
|
|
615
615
|
constructor(e, t, a) {
|
|
616
|
-
this.decodeTree = e, this.emitCodePoint = t, this.errors = a, this.state = j.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode =
|
|
616
|
+
this.decodeTree = e, this.emitCodePoint = t, this.errors = a, this.state = j.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = B.Strict;
|
|
617
617
|
}
|
|
618
618
|
/** Resets the instance to make it reusable. */
|
|
619
619
|
startEntity(e) {
|
|
@@ -654,7 +654,7 @@ class Qu {
|
|
|
654
654
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
655
655
|
*/
|
|
656
656
|
stateNumericStart(e, t) {
|
|
657
|
-
return t >= e.length ? -1 : (e.charCodeAt(t) |
|
|
657
|
+
return t >= e.length ? -1 : (e.charCodeAt(t) | Qu) === V.LOWER_X ? (this.state = j.NumericHex, this.consumed += 1, this.stateNumericHex(e, t + 1)) : (this.state = j.NumericDecimal, this.stateNumericDecimal(e, t));
|
|
658
658
|
}
|
|
659
659
|
addToNumericResult(e, t, a, r) {
|
|
660
660
|
if (t !== a) {
|
|
@@ -675,7 +675,7 @@ class Qu {
|
|
|
675
675
|
const a = t;
|
|
676
676
|
for (; t < e.length; ) {
|
|
677
677
|
const r = e.charCodeAt(t);
|
|
678
|
-
if (be(r) ||
|
|
678
|
+
if (be(r) || Ku(r))
|
|
679
679
|
t += 1;
|
|
680
680
|
else
|
|
681
681
|
return this.addToNumericResult(e, a, t, 16), this.emitNumericEntity(r, 3);
|
|
@@ -721,9 +721,9 @@ class Qu {
|
|
|
721
721
|
return (a = this.errors) === null || a === void 0 || a.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
722
722
|
if (e === V.SEMI)
|
|
723
723
|
this.consumed += 1;
|
|
724
|
-
else if (this.decodeMode ===
|
|
724
|
+
else if (this.decodeMode === B.Strict)
|
|
725
725
|
return 0;
|
|
726
|
-
return this.emitCodePoint(
|
|
726
|
+
return this.emitCodePoint(Zu(this.result), this.consumed), this.errors && (e !== V.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
727
727
|
}
|
|
728
728
|
/**
|
|
729
729
|
* Parses a named entity.
|
|
@@ -739,15 +739,15 @@ class Qu {
|
|
|
739
739
|
let r = a[this.treeIndex], n = (r & W.VALUE_LENGTH) >> 14;
|
|
740
740
|
for (; t < e.length; t++, this.excess++) {
|
|
741
741
|
const s = e.charCodeAt(t);
|
|
742
|
-
if (this.treeIndex =
|
|
742
|
+
if (this.treeIndex = tt(a, r, this.treeIndex + Math.max(1, n), s), this.treeIndex < 0)
|
|
743
743
|
return this.result === 0 || // If we are parsing an attribute
|
|
744
|
-
this.decodeMode ===
|
|
744
|
+
this.decodeMode === B.Attribute && // We shouldn't have consumed any characters after the entity,
|
|
745
745
|
(n === 0 || // And there should be no invalid characters.
|
|
746
|
-
|
|
746
|
+
et(s)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
747
747
|
if (r = a[this.treeIndex], n = (r & W.VALUE_LENGTH) >> 14, n !== 0) {
|
|
748
748
|
if (s === V.SEMI)
|
|
749
749
|
return this.emitNamedEntityData(this.treeIndex, n, this.consumed + this.excess);
|
|
750
|
-
this.decodeMode !==
|
|
750
|
+
this.decodeMode !== B.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
751
751
|
}
|
|
752
752
|
}
|
|
753
753
|
return -1;
|
|
@@ -786,7 +786,7 @@ class Qu {
|
|
|
786
786
|
var e;
|
|
787
787
|
switch (this.state) {
|
|
788
788
|
case j.NamedEntity:
|
|
789
|
-
return this.result !== 0 && (this.decodeMode !==
|
|
789
|
+
return this.result !== 0 && (this.decodeMode !== B.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
790
790
|
// Otherwise, emit a numeric entity if we have one.
|
|
791
791
|
case j.NumericDecimal:
|
|
792
792
|
return this.emitNumericEntity(0, 2);
|
|
@@ -799,7 +799,7 @@ class Qu {
|
|
|
799
799
|
}
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
|
-
function
|
|
802
|
+
function tt(u, e, t, a) {
|
|
803
803
|
const r = (e & W.BRANCH_LENGTH) >> 7, n = e & W.JUMP_TABLE;
|
|
804
804
|
if (r === 0)
|
|
805
805
|
return n !== 0 && a === n ? t : -1;
|
|
@@ -833,13 +833,13 @@ function U(u) {
|
|
|
833
833
|
function ue(u) {
|
|
834
834
|
return u === S.Slash || u === S.Gt || U(u);
|
|
835
835
|
}
|
|
836
|
-
function
|
|
836
|
+
function at(u) {
|
|
837
837
|
return u >= S.LowerA && u <= S.LowerZ || u >= S.UpperA && u <= S.UpperZ;
|
|
838
838
|
}
|
|
839
|
-
var
|
|
839
|
+
var F;
|
|
840
840
|
(function(u) {
|
|
841
841
|
u[u.NoValue = 0] = "NoValue", u[u.Unquoted = 1] = "Unquoted", u[u.Single = 2] = "Single", u[u.Double = 3] = "Double";
|
|
842
|
-
})(
|
|
842
|
+
})(F || (F = {}));
|
|
843
843
|
const N = {
|
|
844
844
|
Cdata: new Uint8Array([67, 68, 65, 84, 65, 91]),
|
|
845
845
|
// CDATA[
|
|
@@ -869,9 +869,9 @@ const N = {
|
|
|
869
869
|
XmpEnd: new Uint8Array([60, 47, 120, 109, 112])
|
|
870
870
|
// `</xmp`
|
|
871
871
|
};
|
|
872
|
-
class
|
|
872
|
+
class rt {
|
|
873
873
|
constructor({ xmlMode: e = !1, decodeEntities: t = !0 }, a) {
|
|
874
|
-
this.cbs = a, this.state = f.Text, this.buffer = "", this.sectionStart = 0, this.index = 0, this.entityStart = 0, this.baseState = f.Text, this.isSpecial = !1, this.running = !0, this.offset = 0, this.currentSequence = void 0, this.sequenceIndex = 0, this.xmlMode = e, this.decodeEntities = t, this.entityDecoder = new
|
|
874
|
+
this.cbs = a, this.state = f.Text, this.buffer = "", this.sectionStart = 0, this.index = 0, this.entityStart = 0, this.baseState = f.Text, this.isSpecial = !1, this.running = !0, this.offset = 0, this.currentSequence = void 0, this.sequenceIndex = 0, this.xmlMode = e, this.decodeEntities = t, this.entityDecoder = new ut(e ? Xu : Ju, (r, n) => this.emitCodePoint(r, n));
|
|
875
875
|
}
|
|
876
876
|
reset() {
|
|
877
877
|
this.state = f.Text, this.buffer = "", this.sectionStart = 0, this.index = 0, this.baseState = f.Text, this.currentSequence = void 0, this.running = !0, this.offset = 0;
|
|
@@ -956,7 +956,7 @@ class et {
|
|
|
956
956
|
* We allow anything that wouldn't end the tag.
|
|
957
957
|
*/
|
|
958
958
|
isTagStartChar(e) {
|
|
959
|
-
return this.xmlMode ? !ue(e) :
|
|
959
|
+
return this.xmlMode ? !ue(e) : at(e);
|
|
960
960
|
}
|
|
961
961
|
startSpecial(e, t) {
|
|
962
962
|
this.isSpecial = !0, this.currentSequence = e, this.sequenceIndex = t, this.state = f.SpecialStartSequence;
|
|
@@ -993,13 +993,13 @@ class et {
|
|
|
993
993
|
(e === S.Eq || ue(e)) && (this.cbs.onattribname(this.sectionStart, this.index), this.sectionStart = this.index, this.state = f.AfterAttributeName, this.stateAfterAttributeName(e));
|
|
994
994
|
}
|
|
995
995
|
stateAfterAttributeName(e) {
|
|
996
|
-
e === S.Eq ? this.state = f.BeforeAttributeValue : e === S.Slash || e === S.Gt ? (this.cbs.onattribend(
|
|
996
|
+
e === S.Eq ? this.state = f.BeforeAttributeValue : e === S.Slash || e === S.Gt ? (this.cbs.onattribend(F.NoValue, this.sectionStart), this.sectionStart = -1, this.state = f.BeforeAttributeName, this.stateBeforeAttributeName(e)) : U(e) || (this.cbs.onattribend(F.NoValue, this.sectionStart), this.state = f.InAttributeName, this.sectionStart = this.index);
|
|
997
997
|
}
|
|
998
998
|
stateBeforeAttributeValue(e) {
|
|
999
999
|
e === S.DoubleQuote ? (this.state = f.InAttributeValueDq, this.sectionStart = this.index + 1) : e === S.SingleQuote ? (this.state = f.InAttributeValueSq, this.sectionStart = this.index + 1) : U(e) || (this.sectionStart = this.index, this.state = f.InAttributeValueNq, this.stateInAttributeValueNoQuotes(e));
|
|
1000
1000
|
}
|
|
1001
1001
|
handleInAttributeValue(e, t) {
|
|
1002
|
-
e === t || !this.decodeEntities && this.fastForwardTo(t) ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(t === S.DoubleQuote ?
|
|
1002
|
+
e === t || !this.decodeEntities && this.fastForwardTo(t) ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(t === S.DoubleQuote ? F.Double : F.Single, this.index + 1), this.state = f.BeforeAttributeName) : this.decodeEntities && e === S.Amp && this.startEntity();
|
|
1003
1003
|
}
|
|
1004
1004
|
stateInAttributeValueDoubleQuotes(e) {
|
|
1005
1005
|
this.handleInAttributeValue(e, S.DoubleQuote);
|
|
@@ -1008,7 +1008,7 @@ class et {
|
|
|
1008
1008
|
this.handleInAttributeValue(e, S.SingleQuote);
|
|
1009
1009
|
}
|
|
1010
1010
|
stateInAttributeValueNoQuotes(e) {
|
|
1011
|
-
U(e) || e === S.Gt ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(
|
|
1011
|
+
U(e) || e === S.Gt ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(F.Unquoted, this.index), this.state = f.BeforeAttributeName, this.stateBeforeAttributeName(e)) : this.decodeEntities && e === S.Amp && this.startEntity();
|
|
1012
1012
|
}
|
|
1013
1013
|
stateBeforeDeclaration(e) {
|
|
1014
1014
|
e === S.OpeningSquareBracket ? (this.state = f.CDATASequence, this.sequenceIndex = 0) : this.state = e === S.Dash ? f.BeforeComment : f.InDeclaration;
|
|
@@ -1048,7 +1048,7 @@ class et {
|
|
|
1048
1048
|
}
|
|
1049
1049
|
}
|
|
1050
1050
|
startEntity() {
|
|
1051
|
-
this.baseState = this.state, this.state = f.InEntity, this.entityStart = this.index, this.entityDecoder.startEntity(this.xmlMode ?
|
|
1051
|
+
this.baseState = this.state, this.state = f.InEntity, this.entityStart = this.index, this.entityDecoder.startEntity(this.xmlMode ? B.Strict : this.baseState === f.Text || this.baseState === f.InSpecialTag ? B.Legacy : B.Attribute);
|
|
1052
1052
|
}
|
|
1053
1053
|
stateInEntity() {
|
|
1054
1054
|
const e = this.entityDecoder.write(this.buffer, this.index - this.offset);
|
|
@@ -1201,7 +1201,7 @@ const z = /* @__PURE__ */ new Set([
|
|
|
1201
1201
|
"button",
|
|
1202
1202
|
"datalist",
|
|
1203
1203
|
"textarea"
|
|
1204
|
-
]), T = /* @__PURE__ */ new Set(["p"]),
|
|
1204
|
+
]), T = /* @__PURE__ */ new Set(["p"]), Ne = /* @__PURE__ */ new Set(["thead", "tbody"]), je = /* @__PURE__ */ new Set(["dd", "dt"]), Ve = /* @__PURE__ */ new Set(["rt", "rp"]), nt = /* @__PURE__ */ new Map([
|
|
1205
1205
|
["tr", /* @__PURE__ */ new Set(["tr", "th", "td"])],
|
|
1206
1206
|
["th", /* @__PURE__ */ new Set(["th"])],
|
|
1207
1207
|
["td", /* @__PURE__ */ new Set(["thead", "th", "td"])],
|
|
@@ -1222,8 +1222,8 @@ const z = /* @__PURE__ */ new Set([
|
|
|
1222
1222
|
["textarea", z],
|
|
1223
1223
|
["option", /* @__PURE__ */ new Set(["option"])],
|
|
1224
1224
|
["optgroup", /* @__PURE__ */ new Set(["optgroup", "option"])],
|
|
1225
|
-
["dd",
|
|
1226
|
-
["dt",
|
|
1225
|
+
["dd", je],
|
|
1226
|
+
["dt", je],
|
|
1227
1227
|
["address", T],
|
|
1228
1228
|
["article", T],
|
|
1229
1229
|
["aside", T],
|
|
@@ -1245,11 +1245,11 @@ const z = /* @__PURE__ */ new Set([
|
|
|
1245
1245
|
["section", T],
|
|
1246
1246
|
["table", T],
|
|
1247
1247
|
["ul", T],
|
|
1248
|
-
["rt",
|
|
1249
|
-
["rp",
|
|
1250
|
-
["tbody",
|
|
1251
|
-
["tfoot",
|
|
1252
|
-
]),
|
|
1248
|
+
["rt", Ve],
|
|
1249
|
+
["rp", Ve],
|
|
1250
|
+
["tbody", Ne],
|
|
1251
|
+
["tfoot", Ne]
|
|
1252
|
+
]), st = /* @__PURE__ */ new Set([
|
|
1253
1253
|
"area",
|
|
1254
1254
|
"base",
|
|
1255
1255
|
"basefont",
|
|
@@ -1269,7 +1269,7 @@ const z = /* @__PURE__ */ new Set([
|
|
|
1269
1269
|
"source",
|
|
1270
1270
|
"track",
|
|
1271
1271
|
"wbr"
|
|
1272
|
-
]),
|
|
1272
|
+
]), qe = /* @__PURE__ */ new Set(["math", "svg"]), De = /* @__PURE__ */ new Set([
|
|
1273
1273
|
"mi",
|
|
1274
1274
|
"mo",
|
|
1275
1275
|
"mn",
|
|
@@ -1279,11 +1279,11 @@ const z = /* @__PURE__ */ new Set([
|
|
|
1279
1279
|
"foreignobject",
|
|
1280
1280
|
"desc",
|
|
1281
1281
|
"title"
|
|
1282
|
-
]),
|
|
1283
|
-
class
|
|
1282
|
+
]), it = /\s|\//;
|
|
1283
|
+
class ct {
|
|
1284
1284
|
constructor(e, t = {}) {
|
|
1285
1285
|
var a, r, n, s, i, o;
|
|
1286
|
-
this.options = t, this.startIndex = 0, this.endIndex = 0, this.openTagStart = 0, this.tagname = "", this.attribname = "", this.attribvalue = "", this.attribs = null, this.stack = [], this.buffers = [], this.bufferOffset = 0, this.writeIndex = 0, this.ended = !1, this.cbs = e ?? {}, this.htmlMode = !this.options.xmlMode, this.lowerCaseTagNames = (a = t.lowerCaseTags) !== null && a !== void 0 ? a : this.htmlMode, this.lowerCaseAttributeNames = (r = t.lowerCaseAttributeNames) !== null && r !== void 0 ? r : this.htmlMode, this.recognizeSelfClosing = (n = t.recognizeSelfClosing) !== null && n !== void 0 ? n : !this.htmlMode, this.tokenizer = new ((s = t.Tokenizer) !== null && s !== void 0 ? s :
|
|
1286
|
+
this.options = t, this.startIndex = 0, this.endIndex = 0, this.openTagStart = 0, this.tagname = "", this.attribname = "", this.attribvalue = "", this.attribs = null, this.stack = [], this.buffers = [], this.bufferOffset = 0, this.writeIndex = 0, this.ended = !1, this.cbs = e ?? {}, this.htmlMode = !this.options.xmlMode, this.lowerCaseTagNames = (a = t.lowerCaseTags) !== null && a !== void 0 ? a : this.htmlMode, this.lowerCaseAttributeNames = (r = t.lowerCaseAttributeNames) !== null && r !== void 0 ? r : this.htmlMode, this.recognizeSelfClosing = (n = t.recognizeSelfClosing) !== null && n !== void 0 ? n : !this.htmlMode, this.tokenizer = new ((s = t.Tokenizer) !== null && s !== void 0 ? s : rt)(this.options, this), this.foreignContext = [!this.htmlMode], (o = (i = this.cbs).onparserinit) === null || o === void 0 || o.call(i, this);
|
|
1287
1287
|
}
|
|
1288
1288
|
// Tokenizer event handlers
|
|
1289
1289
|
/** @internal */
|
|
@@ -1295,14 +1295,14 @@ class rt {
|
|
|
1295
1295
|
/** @internal */
|
|
1296
1296
|
ontextentity(e, t) {
|
|
1297
1297
|
var a, r;
|
|
1298
|
-
this.endIndex = t - 1, (r = (a = this.cbs).ontext) === null || r === void 0 || r.call(a,
|
|
1298
|
+
this.endIndex = t - 1, (r = (a = this.cbs).ontext) === null || r === void 0 || r.call(a, Te(e)), this.startIndex = t;
|
|
1299
1299
|
}
|
|
1300
1300
|
/**
|
|
1301
1301
|
* Checks if the current tag is a void element. Override this if you want
|
|
1302
1302
|
* to specify your own additional void elements.
|
|
1303
1303
|
*/
|
|
1304
1304
|
isVoidElement(e) {
|
|
1305
|
-
return this.htmlMode &&
|
|
1305
|
+
return this.htmlMode && st.has(e);
|
|
1306
1306
|
}
|
|
1307
1307
|
/** @internal */
|
|
1308
1308
|
onopentagname(e, t) {
|
|
@@ -1313,13 +1313,13 @@ class rt {
|
|
|
1313
1313
|
emitOpenTag(e) {
|
|
1314
1314
|
var t, a, r, n;
|
|
1315
1315
|
this.openTagStart = this.startIndex, this.tagname = e;
|
|
1316
|
-
const s = this.htmlMode &&
|
|
1316
|
+
const s = this.htmlMode && nt.get(e);
|
|
1317
1317
|
if (s)
|
|
1318
1318
|
for (; this.stack.length > 0 && s.has(this.stack[0]); ) {
|
|
1319
1319
|
const i = this.stack.shift();
|
|
1320
1320
|
(a = (t = this.cbs).onclosetag) === null || a === void 0 || a.call(t, i, !0);
|
|
1321
1321
|
}
|
|
1322
|
-
this.isVoidElement(e) || (this.stack.unshift(e), this.htmlMode && (
|
|
1322
|
+
this.isVoidElement(e) || (this.stack.unshift(e), this.htmlMode && (qe.has(e) ? this.foreignContext.unshift(!0) : De.has(e) && this.foreignContext.unshift(!1))), (n = (r = this.cbs).onopentagname) === null || n === void 0 || n.call(r, e), this.cbs.onopentag && (this.attribs = {});
|
|
1323
1323
|
}
|
|
1324
1324
|
endOpenTag(e) {
|
|
1325
1325
|
var t, a;
|
|
@@ -1334,7 +1334,7 @@ class rt {
|
|
|
1334
1334
|
var a, r, n, s, i, o, c, d;
|
|
1335
1335
|
this.endIndex = t;
|
|
1336
1336
|
let l = this.getSlice(e, t);
|
|
1337
|
-
if (this.lowerCaseTagNames && (l = l.toLowerCase()), this.htmlMode && (
|
|
1337
|
+
if (this.lowerCaseTagNames && (l = l.toLowerCase()), this.htmlMode && (qe.has(l) || De.has(l)) && this.foreignContext.shift(), this.isVoidElement(l))
|
|
1338
1338
|
this.htmlMode && l === "br" && ((s = (n = this.cbs).onopentagname) === null || s === void 0 || s.call(n, "br"), (o = (i = this.cbs).onopentag) === null || o === void 0 || o.call(i, "br", {}, !0), (d = (c = this.cbs).onclosetag) === null || d === void 0 || d.call(c, "br", !1));
|
|
1339
1339
|
else {
|
|
1340
1340
|
const p = this.stack.indexOf(l);
|
|
@@ -1368,15 +1368,15 @@ class rt {
|
|
|
1368
1368
|
}
|
|
1369
1369
|
/** @internal */
|
|
1370
1370
|
onattribentity(e) {
|
|
1371
|
-
this.attribvalue +=
|
|
1371
|
+
this.attribvalue += Te(e);
|
|
1372
1372
|
}
|
|
1373
1373
|
/** @internal */
|
|
1374
1374
|
onattribend(e, t) {
|
|
1375
1375
|
var a, r;
|
|
1376
|
-
this.endIndex = t, (r = (a = this.cbs).onattribute) === null || r === void 0 || r.call(a, this.attribname, this.attribvalue, e ===
|
|
1376
|
+
this.endIndex = t, (r = (a = this.cbs).onattribute) === null || r === void 0 || r.call(a, this.attribname, this.attribvalue, e === F.Double ? '"' : e === F.Single ? "'" : e === F.NoValue ? void 0 : null), this.attribs && !Object.prototype.hasOwnProperty.call(this.attribs, this.attribname) && (this.attribs[this.attribname] = this.attribvalue), this.attribvalue = "";
|
|
1377
1377
|
}
|
|
1378
1378
|
getInstructionName(e) {
|
|
1379
|
-
const t = e.search(
|
|
1379
|
+
const t = e.search(it);
|
|
1380
1380
|
let a = t < 0 ? e : e.substr(0, t);
|
|
1381
1381
|
return this.lowerCaseTagNames && (a = a.toLowerCase()), a;
|
|
1382
1382
|
}
|
|
@@ -1508,10 +1508,10 @@ class rt {
|
|
|
1508
1508
|
this.end(e);
|
|
1509
1509
|
}
|
|
1510
1510
|
}
|
|
1511
|
-
function
|
|
1511
|
+
function Re(u, e = "web") {
|
|
1512
1512
|
const t = { name: "", children: [] }, a = [t];
|
|
1513
1513
|
let r = "";
|
|
1514
|
-
const n = new
|
|
1514
|
+
const n = new ct(
|
|
1515
1515
|
{
|
|
1516
1516
|
onopentag: (s, i, o) => {
|
|
1517
1517
|
const c = a[a.length - 1];
|
|
@@ -1526,9 +1526,9 @@ function De(u, e = "web") {
|
|
|
1526
1526
|
},
|
|
1527
1527
|
{}
|
|
1528
1528
|
);
|
|
1529
|
-
d.style && (d.style =
|
|
1529
|
+
d.style && (d.style = Ke(d.style));
|
|
1530
1530
|
const l = {
|
|
1531
|
-
name:
|
|
1531
|
+
name: Qe(s, e),
|
|
1532
1532
|
props: d
|
|
1533
1533
|
};
|
|
1534
1534
|
Array.isArray(c.children) ? c.children.push(l) : c.children ? c.children = [
|
|
@@ -1555,9 +1555,9 @@ function De(u, e = "web") {
|
|
|
1555
1555
|
);
|
|
1556
1556
|
return n.write(u.replace(/\\"/g, '"')), n.end(), t.children || [];
|
|
1557
1557
|
}
|
|
1558
|
-
function
|
|
1558
|
+
function ot(u, e) {
|
|
1559
1559
|
const a = {
|
|
1560
|
-
imports:
|
|
1560
|
+
imports: dt(u),
|
|
1561
1561
|
emits: [],
|
|
1562
1562
|
errors: []
|
|
1563
1563
|
}, r = _(u);
|
|
@@ -1574,57 +1574,57 @@ function nt(u, e) {
|
|
|
1574
1574
|
), d = o.find(
|
|
1575
1575
|
(l) => l.key.name === "computed"
|
|
1576
1576
|
);
|
|
1577
|
-
d && (a.computed =
|
|
1577
|
+
d && (a.computed = uu(d.value), a.watchers = ht(d.value));
|
|
1578
1578
|
for (const l of o)
|
|
1579
1579
|
switch (l.key.name) {
|
|
1580
1580
|
case "name":
|
|
1581
1581
|
a.name = l.value.value;
|
|
1582
1582
|
break;
|
|
1583
1583
|
case "methods":
|
|
1584
|
-
a.handlers =
|
|
1584
|
+
a.handlers = mt(l.value), a.methods = pt(l.value), a.dataSources = bt(
|
|
1585
1585
|
l.value,
|
|
1586
1586
|
e
|
|
1587
1587
|
);
|
|
1588
1588
|
break;
|
|
1589
1589
|
case "watch":
|
|
1590
|
-
a.watch =
|
|
1590
|
+
a.watch = xt(
|
|
1591
1591
|
l.value,
|
|
1592
1592
|
a.watchers
|
|
1593
1593
|
);
|
|
1594
1594
|
break;
|
|
1595
1595
|
case "props":
|
|
1596
|
-
a.props =
|
|
1596
|
+
a.props = St(l.value);
|
|
1597
1597
|
break;
|
|
1598
1598
|
case "inject":
|
|
1599
|
-
a.inject =
|
|
1599
|
+
a.inject = Et(l.value);
|
|
1600
1600
|
break;
|
|
1601
1601
|
case "expose":
|
|
1602
|
-
a.expose =
|
|
1602
|
+
a.expose = It(l.value);
|
|
1603
1603
|
break;
|
|
1604
1604
|
case "emits":
|
|
1605
|
-
a.emits =
|
|
1605
|
+
a.emits = wt(l.value);
|
|
1606
1606
|
break;
|
|
1607
1607
|
case "directives":
|
|
1608
|
-
a.directives =
|
|
1608
|
+
a.directives = kt(l.value);
|
|
1609
1609
|
break;
|
|
1610
1610
|
}
|
|
1611
1611
|
for (const l of c)
|
|
1612
1612
|
switch (l.key.name) {
|
|
1613
1613
|
case "setup":
|
|
1614
|
-
a.state =
|
|
1614
|
+
a.state = ft(l.body);
|
|
1615
1615
|
break;
|
|
1616
1616
|
}
|
|
1617
|
-
a.lifeCycles =
|
|
1617
|
+
a.lifeCycles = gt(c);
|
|
1618
1618
|
},
|
|
1619
1619
|
CallExpression(n) {
|
|
1620
|
-
const s =
|
|
1620
|
+
const s = vt(n.node);
|
|
1621
1621
|
if (s.length)
|
|
1622
1622
|
for (let i of s)
|
|
1623
1623
|
a.emits?.find((c) => c.name === i.name) || a.emits?.push(i);
|
|
1624
1624
|
}
|
|
1625
1625
|
}), a;
|
|
1626
1626
|
}
|
|
1627
|
-
function
|
|
1627
|
+
function dt(u) {
|
|
1628
1628
|
const e = /import\s+{(.+?)}\s+from\s+['"](.+?)['"]/g, t = /import\s+(.+?)\s+from\s+['"](.+?)['"]/g, a = /^{(.+?)}$/, r = [];
|
|
1629
1629
|
let n;
|
|
1630
1630
|
const s = u.replace(/\n/g, " ");
|
|
@@ -1644,7 +1644,7 @@ function st(u) {
|
|
|
1644
1644
|
}
|
|
1645
1645
|
return r;
|
|
1646
1646
|
}
|
|
1647
|
-
function
|
|
1647
|
+
function lt(u) {
|
|
1648
1648
|
for (const e of u.body)
|
|
1649
1649
|
if (e.type === "VariableDeclaration" && e.kind == "const") {
|
|
1650
1650
|
const { id: t, init: a } = e.declarations[0];
|
|
@@ -1653,8 +1653,8 @@ function it(u) {
|
|
|
1653
1653
|
}
|
|
1654
1654
|
return null;
|
|
1655
1655
|
}
|
|
1656
|
-
function
|
|
1657
|
-
const e =
|
|
1656
|
+
function ft(u) {
|
|
1657
|
+
const e = lt(u);
|
|
1658
1658
|
if (!e) return {};
|
|
1659
1659
|
const t = {};
|
|
1660
1660
|
for (const a of e.properties)
|
|
@@ -1700,19 +1700,19 @@ function X(u) {
|
|
|
1700
1700
|
};
|
|
1701
1701
|
}
|
|
1702
1702
|
}
|
|
1703
|
-
function
|
|
1703
|
+
function eu(u) {
|
|
1704
1704
|
return /return\s+await\s+this\.provider\.apis\['[\w]*'\]\s*\.apply/.test(u) || /return\s+await\s+this\.provider\.createMock/.test(u);
|
|
1705
1705
|
}
|
|
1706
|
-
function
|
|
1706
|
+
function uu(u) {
|
|
1707
1707
|
if (!u) return {};
|
|
1708
1708
|
const e = {};
|
|
1709
1709
|
for (const t of u.properties) {
|
|
1710
1710
|
const a = X(t);
|
|
1711
|
-
a && !a.watcher && !
|
|
1711
|
+
a && !a.watcher && !eu(a.exp.value) && (e[a.name] = a.exp);
|
|
1712
1712
|
}
|
|
1713
1713
|
return e;
|
|
1714
1714
|
}
|
|
1715
|
-
function
|
|
1715
|
+
function bt(u, e) {
|
|
1716
1716
|
if (!u) return {};
|
|
1717
1717
|
const t = {}, a = /apis\['([\w]*)'\]/, r = (n) => {
|
|
1718
1718
|
const s = n.indexOf(".then(");
|
|
@@ -1725,12 +1725,12 @@ function ot(u, e) {
|
|
|
1725
1725
|
return n.substring(s + 6, o - 1).trim();
|
|
1726
1726
|
};
|
|
1727
1727
|
for (const n of u.properties) {
|
|
1728
|
-
const s = X(n), i = n.body.body?.[0], o = (i?.leadingComments?.[0].value || "").trim(), c =
|
|
1729
|
-
if (s &&
|
|
1728
|
+
const s = X(n), i = n.body.body?.[0], o = (i?.leadingComments?.[0].value || "").trim(), c = Ye(o);
|
|
1729
|
+
if (s && eu(s.exp.value)) {
|
|
1730
1730
|
if (s.exp.value.includes("this.provider.apis")) {
|
|
1731
1731
|
const l = (s.exp.value.match(a) || [])[1];
|
|
1732
1732
|
if (!l) continue;
|
|
1733
|
-
const p =
|
|
1733
|
+
const p = At(e, l), b = r(s.exp.value);
|
|
1734
1734
|
t[s.name] = {
|
|
1735
1735
|
ref: l,
|
|
1736
1736
|
name: s.name,
|
|
@@ -1780,8 +1780,8 @@ function ot(u, e) {
|
|
|
1780
1780
|
}
|
|
1781
1781
|
return t;
|
|
1782
1782
|
}
|
|
1783
|
-
function
|
|
1784
|
-
const e =
|
|
1783
|
+
function pt(u) {
|
|
1784
|
+
const e = uu(u), t = /\_([\w]{5,})$/, a = {};
|
|
1785
1785
|
for (const r of Object.keys(e))
|
|
1786
1786
|
if (!t.test(r)) {
|
|
1787
1787
|
const n = e[r];
|
|
@@ -1789,7 +1789,7 @@ function dt(u) {
|
|
|
1789
1789
|
}
|
|
1790
1790
|
return a;
|
|
1791
1791
|
}
|
|
1792
|
-
function
|
|
1792
|
+
function mt(u) {
|
|
1793
1793
|
if (!u) return {};
|
|
1794
1794
|
const e = {}, t = /\_([\w]{5,})$/;
|
|
1795
1795
|
for (const a of u.properties) {
|
|
@@ -1809,7 +1809,7 @@ function lt(u) {
|
|
|
1809
1809
|
}
|
|
1810
1810
|
return e;
|
|
1811
1811
|
}
|
|
1812
|
-
function
|
|
1812
|
+
function ht(u) {
|
|
1813
1813
|
if (!u) return {};
|
|
1814
1814
|
const e = {};
|
|
1815
1815
|
for (const t of u.properties) {
|
|
@@ -1819,21 +1819,21 @@ function ft(u) {
|
|
|
1819
1819
|
return e;
|
|
1820
1820
|
}
|
|
1821
1821
|
function Y(u, e) {
|
|
1822
|
-
return !!
|
|
1822
|
+
return !!tu(u, e);
|
|
1823
1823
|
}
|
|
1824
|
-
function
|
|
1824
|
+
function tu(u, e) {
|
|
1825
1825
|
return u?.find(
|
|
1826
1826
|
(a) => a.key?.name === e
|
|
1827
1827
|
)?.value?.value;
|
|
1828
1828
|
}
|
|
1829
|
-
function
|
|
1829
|
+
function Ce(u, e) {
|
|
1830
1830
|
const t = u?.find(
|
|
1831
1831
|
(a) => a.key?.name === e
|
|
1832
1832
|
);
|
|
1833
1833
|
if (t)
|
|
1834
1834
|
return X(t)?.exp;
|
|
1835
1835
|
}
|
|
1836
|
-
function
|
|
1836
|
+
function xt(u, e = {}) {
|
|
1837
1837
|
const t = [];
|
|
1838
1838
|
for (const a of u.properties) {
|
|
1839
1839
|
const { key: r, value: n } = a, s = r.value || r.name || "";
|
|
@@ -1844,7 +1844,7 @@ function bt(u, e = {}) {
|
|
|
1844
1844
|
source: e[s],
|
|
1845
1845
|
deep: Y(i, "deep"),
|
|
1846
1846
|
immediate: Y(i, "immediate"),
|
|
1847
|
-
handler:
|
|
1847
|
+
handler: Ce(i, "handler")
|
|
1848
1848
|
});
|
|
1849
1849
|
} else if (a.type === "ObjectMethod" && t.push({
|
|
1850
1850
|
id: re(),
|
|
@@ -1865,38 +1865,38 @@ function bt(u, e = {}) {
|
|
|
1865
1865
|
},
|
|
1866
1866
|
deep: Y(i, "deep"),
|
|
1867
1867
|
immediate: Y(i, "immediate"),
|
|
1868
|
-
handler:
|
|
1868
|
+
handler: Ce(i, "handler")
|
|
1869
1869
|
});
|
|
1870
1870
|
}
|
|
1871
1871
|
}
|
|
1872
1872
|
return t;
|
|
1873
1873
|
}
|
|
1874
|
-
function
|
|
1874
|
+
function gt(u) {
|
|
1875
1875
|
const e = {};
|
|
1876
1876
|
for (const t of u) {
|
|
1877
1877
|
const a = t.key.name;
|
|
1878
|
-
if (
|
|
1878
|
+
if (Fu.includes(a)) {
|
|
1879
1879
|
const r = X(t);
|
|
1880
1880
|
r && (e[r.name] = r.exp);
|
|
1881
1881
|
}
|
|
1882
1882
|
}
|
|
1883
1883
|
return e;
|
|
1884
1884
|
}
|
|
1885
|
-
function
|
|
1885
|
+
function yt(u) {
|
|
1886
1886
|
const e = u?.find(
|
|
1887
1887
|
(t) => t.key?.name === "type"
|
|
1888
1888
|
);
|
|
1889
1889
|
if (e)
|
|
1890
1890
|
return e.value.type === "ArrayExpression" ? e.value.elements.map((t) => t.name) : e.value.name;
|
|
1891
1891
|
}
|
|
1892
|
-
function
|
|
1892
|
+
function au(u) {
|
|
1893
1893
|
const e = u?.find(
|
|
1894
1894
|
(t) => t.key?.name === "default"
|
|
1895
1895
|
);
|
|
1896
1896
|
if (e)
|
|
1897
1897
|
return k(A(e.value));
|
|
1898
1898
|
}
|
|
1899
|
-
function
|
|
1899
|
+
function St(u) {
|
|
1900
1900
|
if (!u) return [];
|
|
1901
1901
|
let e = [];
|
|
1902
1902
|
return u.type === "ArrayExpression" ? e = u.elements.map((t) => t.value) : u.type === "ObjectExpression" && (e = u.properties?.map((t) => {
|
|
@@ -1904,12 +1904,12 @@ function ht(u) {
|
|
|
1904
1904
|
return {
|
|
1905
1905
|
name: a.name,
|
|
1906
1906
|
required: Y(n, "required"),
|
|
1907
|
-
type:
|
|
1908
|
-
default:
|
|
1907
|
+
type: yt(n),
|
|
1908
|
+
default: au(n)
|
|
1909
1909
|
};
|
|
1910
1910
|
})), e;
|
|
1911
1911
|
}
|
|
1912
|
-
function
|
|
1912
|
+
function vt(u) {
|
|
1913
1913
|
const e = [];
|
|
1914
1914
|
if (u.callee.type === "MemberExpression" && u.callee.property?.name === "$emit") {
|
|
1915
1915
|
const [a, ...r] = (u.arguments || []).map(
|
|
@@ -1922,10 +1922,10 @@ function xt(u) {
|
|
|
1922
1922
|
}
|
|
1923
1923
|
return e;
|
|
1924
1924
|
}
|
|
1925
|
-
function
|
|
1925
|
+
function Et(u) {
|
|
1926
1926
|
let e = [];
|
|
1927
1927
|
return u.type === "ObjectExpression" && (e = u.properties?.map((t) => {
|
|
1928
|
-
const { key: a, value: r } = t, n = r.properties, s = a.name, i =
|
|
1928
|
+
const { key: a, value: r } = t, n = r.properties, s = a.name, i = tu(n, "from"), o = au(n);
|
|
1929
1929
|
return {
|
|
1930
1930
|
name: s,
|
|
1931
1931
|
from: i || s,
|
|
@@ -1933,16 +1933,16 @@ function gt(u) {
|
|
|
1933
1933
|
};
|
|
1934
1934
|
})), e;
|
|
1935
1935
|
}
|
|
1936
|
-
function
|
|
1936
|
+
function It(u) {
|
|
1937
1937
|
return u && u.elements ? u.elements.map((e) => e?.type === "StringLiteral" ? e.value : "").filter((e) => !!e) : [];
|
|
1938
1938
|
}
|
|
1939
|
-
function
|
|
1939
|
+
function wt(u) {
|
|
1940
1940
|
return u && u.elements ? u.elements.map((e) => e?.type === "StringLiteral" && e.value ? { name: e.value, params: [] } : null).filter((e) => !!e) : [];
|
|
1941
1941
|
}
|
|
1942
|
-
function
|
|
1942
|
+
function At(u, e) {
|
|
1943
1943
|
return (u.apis || []).find((t) => t.id === e || t.name === e);
|
|
1944
1944
|
}
|
|
1945
|
-
function
|
|
1945
|
+
function kt(u) {
|
|
1946
1946
|
if (!u?.properties) return {};
|
|
1947
1947
|
const e = {};
|
|
1948
1948
|
for (const t of u.properties) {
|
|
@@ -1954,10 +1954,10 @@ function Et(u) {
|
|
|
1954
1954
|
}
|
|
1955
1955
|
return e;
|
|
1956
1956
|
}
|
|
1957
|
-
let pe = [], se = {},
|
|
1958
|
-
function
|
|
1959
|
-
pe = [], se = {},
|
|
1960
|
-
const n =
|
|
1957
|
+
let pe = [], se = {}, ru = {}, nu = {}, su = {}, ie = "web", iu = [], me;
|
|
1958
|
+
function cu(u, e, t = "", a) {
|
|
1959
|
+
pe = [], se = {}, ru = a?.handlers || {}, su = a?.styles || {}, ie = a?.platform || "web", iu = a?.imports || [], nu = a?.directives || {}, me = a?.resolveSchemaImport;
|
|
1960
|
+
const n = We({
|
|
1961
1961
|
id: u,
|
|
1962
1962
|
filename: e,
|
|
1963
1963
|
source: t,
|
|
@@ -1974,7 +1974,7 @@ function iu(u, e, t = "", a) {
|
|
|
1974
1974
|
context: se
|
|
1975
1975
|
};
|
|
1976
1976
|
}
|
|
1977
|
-
function
|
|
1977
|
+
function Tt(u) {
|
|
1978
1978
|
if (u.name === "slot") {
|
|
1979
1979
|
let e = "default";
|
|
1980
1980
|
const t = [];
|
|
@@ -1986,21 +1986,21 @@ function wt(u) {
|
|
|
1986
1986
|
});
|
|
1987
1987
|
}
|
|
1988
1988
|
}
|
|
1989
|
-
function
|
|
1989
|
+
function Nt(u) {
|
|
1990
1990
|
const e = {};
|
|
1991
1991
|
for (const t of u) {
|
|
1992
|
-
if (t.type ===
|
|
1992
|
+
if (t.type === I.ATTRIBUTE)
|
|
1993
1993
|
if (t.name === "class") {
|
|
1994
|
-
const a = t.value?.content || "", r = /[\w]+_[\w]{5,}/, n = a.match(r)?.[0] || "", s = a.split(" ").filter((o) => o !== n), i =
|
|
1994
|
+
const a = t.value?.content || "", r = /[\w]+_[\w]{5,}/, n = a.match(r)?.[0] || "", s = a.split(" ").filter((o) => o !== n), i = su[`.${n}`];
|
|
1995
1995
|
i && (e.style = i), s.length && (e.class = s.join(" "));
|
|
1996
1996
|
} else if (t.name === "style") {
|
|
1997
1997
|
const a = t.value?.content || "";
|
|
1998
|
-
a && (e.style =
|
|
1998
|
+
a && (e.style = Ke(a));
|
|
1999
1999
|
} else
|
|
2000
2000
|
e[t.name] = t.value?.content || "";
|
|
2001
|
-
if (t.type ===
|
|
2001
|
+
if (t.type === I.DIRECTIVE && t.name === "bind" && (t.exp?.type === I.SIMPLE_EXPRESSION && t.arg?.type === I.SIMPLE_EXPRESSION && (e[t.arg.content] = k(`(${t.exp.content})`)), t.exp?.type === I.COMPOUND_EXPRESSION && t.arg?.type === I.SIMPLE_EXPRESSION))
|
|
2002
2002
|
if (t.arg.content === "class" && e.class) {
|
|
2003
|
-
const a = t.exp.ast.type, r =
|
|
2003
|
+
const a = t.exp.ast.type, r = Wu(
|
|
2004
2004
|
e.class,
|
|
2005
2005
|
t.exp.loc.source,
|
|
2006
2006
|
a
|
|
@@ -2013,16 +2013,16 @@ function It(u) {
|
|
|
2013
2013
|
}
|
|
2014
2014
|
return e;
|
|
2015
2015
|
}
|
|
2016
|
-
function
|
|
2016
|
+
function jt(u = {}) {
|
|
2017
2017
|
const e = {};
|
|
2018
2018
|
for (const [t, a] of Object.entries(u))
|
|
2019
2019
|
e[t === "tap" ? "click" : t] = a;
|
|
2020
2020
|
return e;
|
|
2021
2021
|
}
|
|
2022
|
-
function
|
|
2022
|
+
function Vt(u, e = {}) {
|
|
2023
2023
|
const t = {};
|
|
2024
2024
|
for (const a of u)
|
|
2025
|
-
if (a.type ===
|
|
2025
|
+
if (a.type === I.DIRECTIVE && a.name === "on" && a.arg?.type === I.SIMPLE_EXPRESSION) {
|
|
2026
2026
|
const r = a.modifiers.reduce(
|
|
2027
2027
|
(c, d) => (d.content && (c[d.content] = !0), c),
|
|
2028
2028
|
{}
|
|
@@ -2051,8 +2051,8 @@ function kt(u, e = {}) {
|
|
|
2051
2051
|
try {
|
|
2052
2052
|
const E = _(n).program.body;
|
|
2053
2053
|
if (E.length === 1 && E[0].type === "ExpressionStatement") {
|
|
2054
|
-
const
|
|
2055
|
-
g =
|
|
2054
|
+
const w = E[0].expression?.type;
|
|
2055
|
+
g = w === "ArrowFunctionExpression" || w === "FunctionExpression";
|
|
2056
2056
|
}
|
|
2057
2057
|
} catch {
|
|
2058
2058
|
}
|
|
@@ -2070,11 +2070,11 @@ function kt(u, e = {}) {
|
|
|
2070
2070
|
};
|
|
2071
2071
|
}
|
|
2072
2072
|
}
|
|
2073
|
-
return
|
|
2073
|
+
return jt(t);
|
|
2074
2074
|
}
|
|
2075
2075
|
function Q(u, e) {
|
|
2076
2076
|
const t = [], a = ["if", "for", "model", "show", "bind", "html"];
|
|
2077
|
-
if (e && (u.type ===
|
|
2077
|
+
if (e && (u.type === I.IF_BRANCH || u.type === I.IF) && e.forEach((r, n) => {
|
|
2078
2078
|
if (u === r) {
|
|
2079
2079
|
const s = n === 0 ? "vIf" : r.condition ? "vElseIf" : "vElse", i = r.condition?.loc.source || "";
|
|
2080
2080
|
t.push({
|
|
@@ -2082,21 +2082,21 @@ function Q(u, e) {
|
|
|
2082
2082
|
value: s === "vElse" ? !0 : k(i)
|
|
2083
2083
|
});
|
|
2084
2084
|
const o = u.children?.[0];
|
|
2085
|
-
if (o && o.type !==
|
|
2085
|
+
if (o && o.type !== I.FOR) {
|
|
2086
2086
|
const c = Q(o);
|
|
2087
2087
|
t.push(...c);
|
|
2088
2088
|
}
|
|
2089
2089
|
}
|
|
2090
|
-
}), u.type ===
|
|
2090
|
+
}), u.type === I.FOR && t.push({
|
|
2091
2091
|
name: "vFor",
|
|
2092
2092
|
value: k(u.source.loc.source),
|
|
2093
2093
|
iterator: {
|
|
2094
2094
|
item: u.valueAlias?.loc.source || "item",
|
|
2095
2095
|
index: u.keyAlias?.loc.source || "index"
|
|
2096
2096
|
}
|
|
2097
|
-
}), u.type ===
|
|
2097
|
+
}), u.type === I.ELEMENT) {
|
|
2098
2098
|
const r = u.props.filter(
|
|
2099
|
-
(d) => d.type ===
|
|
2099
|
+
(d) => d.type === I.DIRECTIVE
|
|
2100
2100
|
), n = r.filter((d) => d.name === "model");
|
|
2101
2101
|
n.length && n.forEach((d) => {
|
|
2102
2102
|
t.push({
|
|
@@ -2125,7 +2125,7 @@ function Q(u, e) {
|
|
|
2125
2125
|
const l = (d.modifiers || []).reduce(
|
|
2126
2126
|
(m, y) => (m[y.content] = !0, m),
|
|
2127
2127
|
{}
|
|
2128
|
-
), p = d.arg?.content || void 0, b =
|
|
2128
|
+
), p = d.arg?.content || void 0, b = nu[d.name];
|
|
2129
2129
|
b && t.push({
|
|
2130
2130
|
name: b,
|
|
2131
2131
|
value: k(d.exp?.loc.source || ""),
|
|
@@ -2136,37 +2136,44 @@ function Q(u, e) {
|
|
|
2136
2136
|
}
|
|
2137
2137
|
return t;
|
|
2138
2138
|
}
|
|
2139
|
-
function
|
|
2139
|
+
function ou(u) {
|
|
2140
2140
|
let e = "";
|
|
2141
|
-
if (u.type ===
|
|
2141
|
+
if (u.type === I.ELEMENT) {
|
|
2142
2142
|
const { props: t = [], tag: a } = u;
|
|
2143
2143
|
for (const r of t)
|
|
2144
2144
|
if (r.name === "class") {
|
|
2145
2145
|
const n = r.value?.content || "", s = new RegExp(`${a}_([\\w]+)`);
|
|
2146
2146
|
e = n.match(s)?.[1] || "";
|
|
2147
|
-
} else if (r.type ===
|
|
2147
|
+
} else if (r.type === I.DIRECTIVE && r.name === "on") {
|
|
2148
2148
|
const n = r.arg?.loc?.source || "", s = r.exp?.loc?.source || "", i = new RegExp(`${n}_([\\w]+)`);
|
|
2149
2149
|
e = s.match(i)?.[1] || "";
|
|
2150
2150
|
}
|
|
2151
2151
|
}
|
|
2152
2152
|
return e || re();
|
|
2153
2153
|
}
|
|
2154
|
-
function
|
|
2154
|
+
function qt(u) {
|
|
2155
2155
|
const e = /\.\/(.+?)\.vue/;
|
|
2156
|
-
for (const { from: t, imports: a } of
|
|
2156
|
+
for (const { from: t, imports: a } of iu) {
|
|
2157
2157
|
if (Array.isArray(a) && a.includes(u))
|
|
2158
2158
|
return t;
|
|
2159
2159
|
if (a === u) {
|
|
2160
|
-
const r = t
|
|
2160
|
+
const r = me?.(t);
|
|
2161
2161
|
if (r)
|
|
2162
2162
|
return {
|
|
2163
2163
|
type: "Schema",
|
|
2164
2164
|
id: r
|
|
2165
2165
|
};
|
|
2166
|
+
if (me) return;
|
|
2167
|
+
const n = t.match(e)?.[1];
|
|
2168
|
+
if (n)
|
|
2169
|
+
return {
|
|
2170
|
+
type: "Schema",
|
|
2171
|
+
id: n
|
|
2172
|
+
};
|
|
2166
2173
|
}
|
|
2167
2174
|
}
|
|
2168
2175
|
}
|
|
2169
|
-
function
|
|
2176
|
+
function he(u, e) {
|
|
2170
2177
|
const t = new Set(e?.id ? se[e.id] : []), a = (u.directives || []).find((s) => s.name === "vFor");
|
|
2171
2178
|
let r = new Set(Array.from(t));
|
|
2172
2179
|
if (a) {
|
|
@@ -2182,66 +2189,66 @@ function me(u, e) {
|
|
|
2182
2189
|
}
|
|
2183
2190
|
function fe(u, e, t, a) {
|
|
2184
2191
|
const r = {
|
|
2185
|
-
name:
|
|
2186
|
-
from:
|
|
2187
|
-
props:
|
|
2188
|
-
events:
|
|
2192
|
+
name: Qe(u.tag, ie),
|
|
2193
|
+
from: qt(u.tag),
|
|
2194
|
+
props: Nt(u.props),
|
|
2195
|
+
events: Vt(u.props, ru),
|
|
2189
2196
|
directives: Q(t || u, a)
|
|
2190
2197
|
};
|
|
2191
|
-
r.id =
|
|
2198
|
+
r.id = ou(u), he(r, e);
|
|
2192
2199
|
const n = ee(r, u.children);
|
|
2193
|
-
return
|
|
2200
|
+
return he(r, e), Tt(n), n;
|
|
2194
2201
|
}
|
|
2195
|
-
function
|
|
2202
|
+
function Dt(u = [], e) {
|
|
2196
2203
|
return u.map((t) => Z(t, e, u));
|
|
2197
2204
|
}
|
|
2198
2205
|
function Z(u, e, t) {
|
|
2199
|
-
if (u.type ===
|
|
2206
|
+
if (u.type === I.ELEMENT)
|
|
2200
2207
|
return fe(u, e);
|
|
2201
|
-
if (u.type ===
|
|
2202
|
-
return
|
|
2203
|
-
if (t && u.type ===
|
|
2208
|
+
if (u.type === I.IF)
|
|
2209
|
+
return Rt(u);
|
|
2210
|
+
if (t && u.type === I.IF_BRANCH) {
|
|
2204
2211
|
const a = u.children.find(
|
|
2205
|
-
(r) => r.type ===
|
|
2212
|
+
(r) => r.type === I.ELEMENT || r.type === I.FOR
|
|
2206
2213
|
);
|
|
2207
2214
|
if (a) {
|
|
2208
|
-
if (a.type ===
|
|
2215
|
+
if (a.type === I.ELEMENT)
|
|
2209
2216
|
return fe(a, e, u, t);
|
|
2210
|
-
if (a.type ===
|
|
2217
|
+
if (a.type === I.FOR) {
|
|
2211
2218
|
const n = { name: "div", directives: Q(u) };
|
|
2212
2219
|
return ee(n, u.children || []);
|
|
2213
2220
|
}
|
|
2214
2221
|
}
|
|
2215
2222
|
return "";
|
|
2216
2223
|
}
|
|
2217
|
-
if (u.type ===
|
|
2224
|
+
if (u.type === I.FOR) {
|
|
2218
2225
|
const a = u.children[0];
|
|
2219
|
-
if (u.children.length > 1 || a.type !==
|
|
2226
|
+
if (u.children.length > 1 || a.type !== I.ELEMENT) {
|
|
2220
2227
|
const n = { name: "span", directives: Q(u) };
|
|
2221
2228
|
return ee(n, u.children);
|
|
2222
2229
|
} else
|
|
2223
2230
|
return fe(a, e, u);
|
|
2224
2231
|
}
|
|
2225
|
-
if (u.type ===
|
|
2226
|
-
return u.content.type ==
|
|
2232
|
+
if (u.type === I.TEXT_CALL)
|
|
2233
|
+
return u.content.type == I.TEXT ? u.content.content : u.content.type === I.INTERPOLATION ? k(u.content.content.loc.source) : u.content.type === I.COMPOUND_EXPRESSION ? _e(
|
|
2227
2234
|
u.content.children
|
|
2228
2235
|
) : "";
|
|
2229
|
-
if (u.type ===
|
|
2236
|
+
if (u.type === I.TEXT)
|
|
2230
2237
|
return u.content;
|
|
2231
|
-
if (u.type ===
|
|
2238
|
+
if (u.type === I.INTERPOLATION && (u.content.type === I.SIMPLE_EXPRESSION || u.content.type === I.COMPOUND_EXPRESSION))
|
|
2232
2239
|
return k(u.content.loc.source);
|
|
2233
|
-
if (u.type ===
|
|
2234
|
-
return
|
|
2240
|
+
if (u.type === I.COMPOUND_EXPRESSION)
|
|
2241
|
+
return _e(
|
|
2235
2242
|
u.children
|
|
2236
2243
|
);
|
|
2237
|
-
u.type !==
|
|
2244
|
+
u.type !== I.COMMENT && console.warn("未处理", u.type);
|
|
2238
2245
|
}
|
|
2239
|
-
function
|
|
2246
|
+
function _e(u = []) {
|
|
2240
2247
|
const e = u.filter((a) => typeof a != "string"), t = [];
|
|
2241
2248
|
for (const a of e)
|
|
2242
2249
|
t.push({
|
|
2243
2250
|
name: "span",
|
|
2244
|
-
children: a.type ===
|
|
2251
|
+
children: a.type === I.TEXT ? a.loc.source : k(a.content?.loc.source)
|
|
2245
2252
|
});
|
|
2246
2253
|
return {
|
|
2247
2254
|
name: "span",
|
|
@@ -2251,34 +2258,34 @@ function Ce(u = []) {
|
|
|
2251
2258
|
function ee(u, e = []) {
|
|
2252
2259
|
const t = [];
|
|
2253
2260
|
for (const a of e)
|
|
2254
|
-
if (a.type ===
|
|
2261
|
+
if (a.type === I.ELEMENT && a.codegenNode?.value?.arguments) {
|
|
2255
2262
|
const r = a.codegenNode.value.arguments[0];
|
|
2256
2263
|
if (r) {
|
|
2257
|
-
const n =
|
|
2264
|
+
const n = Re(r, ie);
|
|
2258
2265
|
t.push(...n);
|
|
2259
2266
|
}
|
|
2260
|
-
} else if (a.type ===
|
|
2267
|
+
} else if (a.type === I.ELEMENT && a.tag === "template") {
|
|
2261
2268
|
const r = a.props.find((n) => n.name === "slot");
|
|
2262
2269
|
for (const n of a.children) {
|
|
2263
|
-
const s = n.type ===
|
|
2270
|
+
const s = n.type === I.TEXT || n.type === I.TEXT_CALL ? {
|
|
2264
2271
|
name: "span",
|
|
2265
2272
|
children: Z(n, u)
|
|
2266
2273
|
} : Z(n, u);
|
|
2267
2274
|
s && (Array.isArray(s) ? s : [s]).forEach((o) => {
|
|
2268
|
-
|
|
2275
|
+
qu(o) && r?.type === I.DIRECTIVE && (o.id = ou(n), o.slot = {
|
|
2269
2276
|
name: r.arg?.content || "default",
|
|
2270
2277
|
params: r.exp?.identifiers || [],
|
|
2271
|
-
scope: r.exp?.type ===
|
|
2272
|
-
},
|
|
2278
|
+
scope: r.exp?.type === I.SIMPLE_EXPRESSION ? r.exp.content : ""
|
|
2279
|
+
}, he(o, u)), t.push(o);
|
|
2273
2280
|
});
|
|
2274
2281
|
}
|
|
2275
|
-
} else if (a.type ===
|
|
2282
|
+
} else if (a.type === I.JS_CALL_EXPRESSION) {
|
|
2276
2283
|
const r = a.arguments?.[0];
|
|
2277
2284
|
if (r) {
|
|
2278
|
-
const n =
|
|
2285
|
+
const n = Re(r, ie);
|
|
2279
2286
|
t.push(...n);
|
|
2280
2287
|
}
|
|
2281
|
-
} else if (a.type ===
|
|
2288
|
+
} else if (a.type === I.TEXT_CALL) {
|
|
2282
2289
|
const r = Z(a, u);
|
|
2283
2290
|
r && (Array.isArray(r) ? t.push(...r) : t.push(r));
|
|
2284
2291
|
} else {
|
|
@@ -2292,20 +2299,20 @@ function ee(u, e = []) {
|
|
|
2292
2299
|
u.children = t.map((a) => typeof a == "string" || ne(a) ? { name: "span", children: a } : a);
|
|
2293
2300
|
return u;
|
|
2294
2301
|
}
|
|
2295
|
-
function
|
|
2302
|
+
function Rt(u) {
|
|
2296
2303
|
const e = u.branches || [], t = e[0], a = t?.children || [];
|
|
2297
2304
|
if (t?.isTemplateIf)
|
|
2298
2305
|
return e.map((r) => {
|
|
2299
2306
|
const s = { name: "div", directives: Q(r, e) };
|
|
2300
2307
|
return ee(s, r.children || []);
|
|
2301
2308
|
});
|
|
2302
|
-
if (a.length > 1 || a[0] && a[0].type !==
|
|
2309
|
+
if (a.length > 1 || a[0] && a[0].type !== I.ELEMENT) {
|
|
2303
2310
|
const n = { name: "div", directives: Q(t, e) };
|
|
2304
2311
|
return ee(n, t.children);
|
|
2305
2312
|
}
|
|
2306
|
-
return
|
|
2313
|
+
return Dt(e);
|
|
2307
2314
|
}
|
|
2308
|
-
const
|
|
2315
|
+
const Ct = {
|
|
2309
2316
|
onBeforeMount: "beforeMount",
|
|
2310
2317
|
onMounted: "mounted",
|
|
2311
2318
|
onBeforeUpdate: "beforeUpdate",
|
|
@@ -2336,16 +2343,16 @@ const Vt = {
|
|
|
2336
2343
|
onNavigationBarSearchInputClicked: "onNavigationBarSearchInputClicked",
|
|
2337
2344
|
onShareTimeline: "onShareTimeline",
|
|
2338
2345
|
onAddToFavorites: "onAddToFavorites"
|
|
2339
|
-
},
|
|
2346
|
+
}, _t = /* @__PURE__ */ new Set([
|
|
2340
2347
|
"vue-router",
|
|
2341
2348
|
"pinia",
|
|
2342
2349
|
"vue-i18n",
|
|
2343
2350
|
"@vtj/renderer"
|
|
2344
|
-
]),
|
|
2345
|
-
Object.values(
|
|
2351
|
+
]), Lt = new Set(
|
|
2352
|
+
Object.values(ye).map((u) => u.composable).filter((u) => !!u)
|
|
2346
2353
|
);
|
|
2347
|
-
function
|
|
2348
|
-
const t =
|
|
2354
|
+
function Pt(u, e) {
|
|
2355
|
+
const t = Mt(u), a = Ot(t), { dependencies: r = [] } = e || {}, n = r.reduce(
|
|
2349
2356
|
(c, d) => (c[d.package] = d.library, c),
|
|
2350
2357
|
{}
|
|
2351
2358
|
), s = {
|
|
@@ -2377,9 +2384,9 @@ function Rt(u, e) {
|
|
|
2377
2384
|
if (!p.init) continue;
|
|
2378
2385
|
const b = p.init;
|
|
2379
2386
|
if (b.type === "CallExpression") {
|
|
2380
|
-
const m =
|
|
2387
|
+
const m = Le(b);
|
|
2381
2388
|
if (m === "ref") {
|
|
2382
|
-
const v =
|
|
2389
|
+
const v = P(p.id);
|
|
2383
2390
|
if (v) {
|
|
2384
2391
|
const h = b.arguments[0] ? A(b.arguments[0]) : "undefined";
|
|
2385
2392
|
s.refs[v] = k(h);
|
|
@@ -2387,10 +2394,10 @@ function Rt(u, e) {
|
|
|
2387
2394
|
return;
|
|
2388
2395
|
}
|
|
2389
2396
|
if (m === "reactive") {
|
|
2390
|
-
const v =
|
|
2397
|
+
const v = P(p.id);
|
|
2391
2398
|
if (v)
|
|
2392
2399
|
if (v === "__state")
|
|
2393
|
-
s.state =
|
|
2400
|
+
s.state = Ft(b.arguments[0]);
|
|
2394
2401
|
else {
|
|
2395
2402
|
const h = b.arguments[0] ? A(b.arguments[0]) : "{}";
|
|
2396
2403
|
s.reactives[v] = k(h);
|
|
@@ -2398,7 +2405,7 @@ function Rt(u, e) {
|
|
|
2398
2405
|
return;
|
|
2399
2406
|
}
|
|
2400
2407
|
if (m === "computed") {
|
|
2401
|
-
const v =
|
|
2408
|
+
const v = P(p.id);
|
|
2402
2409
|
if (v && b.arguments[0]) {
|
|
2403
2410
|
const h = b.arguments[0], g = A(h);
|
|
2404
2411
|
h.type === "ArrowFunctionExpression" || h.type === "FunctionExpression" ? s.computed[v] = C(g) : s.computed[v] = k(g);
|
|
@@ -2406,7 +2413,7 @@ function Rt(u, e) {
|
|
|
2406
2413
|
return;
|
|
2407
2414
|
}
|
|
2408
2415
|
if (m === "inject") {
|
|
2409
|
-
const v =
|
|
2416
|
+
const v = P(p.id);
|
|
2410
2417
|
if (v) {
|
|
2411
2418
|
const h = b.arguments[0], g = b.arguments[1], x = h ? Me(h) : v;
|
|
2412
2419
|
s.inject.push({
|
|
@@ -2418,53 +2425,53 @@ function Rt(u, e) {
|
|
|
2418
2425
|
return;
|
|
2419
2426
|
}
|
|
2420
2427
|
if (m === "defineProps" || m === "withDefaults") {
|
|
2421
|
-
s.props =
|
|
2428
|
+
s.props = Oe(b);
|
|
2422
2429
|
return;
|
|
2423
2430
|
}
|
|
2424
2431
|
if (m === "defineEmits") {
|
|
2425
|
-
s.emits =
|
|
2432
|
+
s.emits = Fe(b);
|
|
2426
2433
|
return;
|
|
2427
2434
|
}
|
|
2428
2435
|
if (m && /^use[A-Z]/.test(m)) {
|
|
2429
2436
|
const v = a.get(m);
|
|
2430
|
-
if (
|
|
2431
|
-
const x =
|
|
2437
|
+
if (Bt(m, v)) {
|
|
2438
|
+
const x = Pe(p.id);
|
|
2432
2439
|
x.length > 0 && (s.globalApiDestructured ??= [], s.globalApiDestructured.push({ callee: m, destructure: x }));
|
|
2433
2440
|
return;
|
|
2434
2441
|
}
|
|
2435
2442
|
if (m === "useProvider") return;
|
|
2436
2443
|
if (!v)
|
|
2437
2444
|
continue;
|
|
2438
|
-
const h =
|
|
2445
|
+
const h = P(p.id), g = Pe(p.id);
|
|
2439
2446
|
if (h || g.length) {
|
|
2440
2447
|
if (h && s.composables.some((D) => D.name === h))
|
|
2441
2448
|
return;
|
|
2442
2449
|
let x;
|
|
2443
2450
|
const E = n[v];
|
|
2444
2451
|
E ? x = `this.$libs.${E}.${m}` : x = m;
|
|
2445
|
-
const
|
|
2452
|
+
const w = {
|
|
2446
2453
|
name: h || g[0] || m,
|
|
2447
2454
|
composable: {
|
|
2448
2455
|
type: "JSExpression",
|
|
2449
2456
|
value: x
|
|
2450
2457
|
}
|
|
2451
2458
|
};
|
|
2452
|
-
b.arguments.length > 0 && (
|
|
2459
|
+
b.arguments.length > 0 && (w.args = b.arguments.map(
|
|
2453
2460
|
(D) => k(A(D))
|
|
2454
|
-
)), g.length > 0 && (
|
|
2461
|
+
)), g.length > 0 && (w.destructure = g), s.composables.push(w);
|
|
2455
2462
|
}
|
|
2456
2463
|
return;
|
|
2457
2464
|
}
|
|
2458
|
-
const y =
|
|
2465
|
+
const y = P(p.id);
|
|
2459
2466
|
if (y && y.startsWith("__") || m === "getCurrentInstance")
|
|
2460
2467
|
return;
|
|
2461
2468
|
}
|
|
2462
2469
|
if (b.type === "ArrowFunctionExpression" || b.type === "FunctionExpression") {
|
|
2463
|
-
const m =
|
|
2470
|
+
const m = P(p.id);
|
|
2464
2471
|
if (m) {
|
|
2465
2472
|
const y = A(b);
|
|
2466
|
-
if (
|
|
2467
|
-
const v =
|
|
2473
|
+
if ($e(y)) {
|
|
2474
|
+
const v = Ue(m, y, e);
|
|
2468
2475
|
if (v) {
|
|
2469
2476
|
s.dataSources[m] = v;
|
|
2470
2477
|
return;
|
|
@@ -2481,7 +2488,7 @@ function Rt(u, e) {
|
|
|
2481
2488
|
}
|
|
2482
2489
|
}
|
|
2483
2490
|
if (d.declarations.some((p) => {
|
|
2484
|
-
const b =
|
|
2491
|
+
const b = P(p.id);
|
|
2485
2492
|
return b && b.startsWith("__");
|
|
2486
2493
|
}))
|
|
2487
2494
|
return;
|
|
@@ -2490,7 +2497,7 @@ function Rt(u, e) {
|
|
|
2490
2497
|
return b && (b.type === "ObjectExpression" || b.type === "ArrayExpression");
|
|
2491
2498
|
}) && d.declarations.length > 0) {
|
|
2492
2499
|
for (const p of d.declarations) {
|
|
2493
|
-
const b =
|
|
2500
|
+
const b = P(p.id);
|
|
2494
2501
|
b && p.init && (s.reactives[b] = k(A(p.init)));
|
|
2495
2502
|
}
|
|
2496
2503
|
return;
|
|
@@ -2498,7 +2505,7 @@ function Rt(u, e) {
|
|
|
2498
2505
|
for (const p of d.declarations) {
|
|
2499
2506
|
const b = p.init;
|
|
2500
2507
|
if (b) {
|
|
2501
|
-
const m =
|
|
2508
|
+
const m = P(p.id) || "(unknown)", y = A(b), v = b.type;
|
|
2502
2509
|
throw new Error(
|
|
2503
2510
|
`[vtj/parser] 无法处理顶层变量声明 "const ${m} = ${y}":不支持的类型 "${v}"。仅支持 ObjectExpression / ArrayExpression 兜底自动转换为 reactive()。请改用 ref()、reactive()、computed() 或函数声明。`
|
|
2504
2511
|
);
|
|
@@ -2513,9 +2520,9 @@ function Rt(u, e) {
|
|
|
2513
2520
|
if (c.parent.type !== "Program") return;
|
|
2514
2521
|
const d = c.node;
|
|
2515
2522
|
if (!d.id) return;
|
|
2516
|
-
const l = d.id.name, p =
|
|
2517
|
-
if (
|
|
2518
|
-
const b =
|
|
2523
|
+
const l = d.id.name, p = Ht(d);
|
|
2524
|
+
if ($e(p)) {
|
|
2525
|
+
const b = Ue(l, p, e);
|
|
2519
2526
|
if (b) {
|
|
2520
2527
|
s.dataSources[l] = b;
|
|
2521
2528
|
return;
|
|
@@ -2541,13 +2548,13 @@ function Rt(u, e) {
|
|
|
2541
2548
|
`[vtj/parser] 无法处理顶层表达式语句 "${m}":DSL 不支持游离的顶层表达式,请改用生命周期钩子(如 onMounted)或声明确赋值。`
|
|
2542
2549
|
);
|
|
2543
2550
|
}
|
|
2544
|
-
const p =
|
|
2551
|
+
const p = Le(l);
|
|
2545
2552
|
if (p === "watch") {
|
|
2546
|
-
const m =
|
|
2553
|
+
const m = Gt(l);
|
|
2547
2554
|
m && s.watch.push(m);
|
|
2548
2555
|
return;
|
|
2549
2556
|
}
|
|
2550
|
-
if (p && p in
|
|
2557
|
+
if (p && p in Ct) {
|
|
2551
2558
|
const m = l.arguments[0];
|
|
2552
2559
|
m && (s.lifeCycles[p] = C(A(m)));
|
|
2553
2560
|
return;
|
|
@@ -2564,15 +2571,15 @@ function Rt(u, e) {
|
|
|
2564
2571
|
return;
|
|
2565
2572
|
}
|
|
2566
2573
|
if (p === "defineExpose") {
|
|
2567
|
-
s.expose =
|
|
2574
|
+
s.expose = Ut(l);
|
|
2568
2575
|
return;
|
|
2569
2576
|
}
|
|
2570
2577
|
if (p === "defineProps" || p === "withDefaults") {
|
|
2571
|
-
s.props =
|
|
2578
|
+
s.props = Oe(l);
|
|
2572
2579
|
return;
|
|
2573
2580
|
}
|
|
2574
2581
|
if (p === "defineEmits") {
|
|
2575
|
-
s.emits =
|
|
2582
|
+
s.emits = Fe(l);
|
|
2576
2583
|
return;
|
|
2577
2584
|
}
|
|
2578
2585
|
const b = A(d);
|
|
@@ -2591,7 +2598,7 @@ ${i.join(`
|
|
|
2591
2598
|
}
|
|
2592
2599
|
return s;
|
|
2593
2600
|
}
|
|
2594
|
-
function
|
|
2601
|
+
function Mt(u) {
|
|
2595
2602
|
const e = /import\s+{(.+?)}\s+from\s+['"](.+?)['"]/g, t = /import\s+(.+?)\s+from\s+['"](.+?)['"]/g, a = /^{(.+?)}$/, r = [];
|
|
2596
2603
|
let n;
|
|
2597
2604
|
const s = u.replace(/\n/g, " ");
|
|
@@ -2611,7 +2618,7 @@ function Ct(u) {
|
|
|
2611
2618
|
}
|
|
2612
2619
|
return r;
|
|
2613
2620
|
}
|
|
2614
|
-
function
|
|
2621
|
+
function Ot(u) {
|
|
2615
2622
|
const e = /* @__PURE__ */ new Map();
|
|
2616
2623
|
for (const t of u)
|
|
2617
2624
|
if (Array.isArray(t.imports))
|
|
@@ -2623,22 +2630,22 @@ function _t(u) {
|
|
|
2623
2630
|
e.set(t.imports, t.from);
|
|
2624
2631
|
return e;
|
|
2625
2632
|
}
|
|
2626
|
-
function
|
|
2627
|
-
return e &&
|
|
2633
|
+
function Bt(u, e) {
|
|
2634
|
+
return e && _t.has(e) ? !0 : Lt.has(u);
|
|
2628
2635
|
}
|
|
2629
|
-
function
|
|
2636
|
+
function Le(u) {
|
|
2630
2637
|
return u.callee.type === "Identifier" ? u.callee.name : null;
|
|
2631
2638
|
}
|
|
2632
|
-
function
|
|
2639
|
+
function P(u) {
|
|
2633
2640
|
return u?.type === "Identifier" ? u.name : null;
|
|
2634
2641
|
}
|
|
2635
|
-
function
|
|
2642
|
+
function Pe(u) {
|
|
2636
2643
|
return u?.type === "ObjectPattern" ? u.properties.map((e) => e.type === "ObjectProperty" && e.key?.type === "Identifier" ? e.key.name : e.type === "RestElement" && e.argument?.type === "Identifier" ? e.argument.name : null).filter(Boolean) : u?.type === "ArrayPattern" ? u.elements.map((e) => e?.type === "Identifier" ? e.name : null).filter(Boolean) : [];
|
|
2637
2644
|
}
|
|
2638
2645
|
function Me(u) {
|
|
2639
2646
|
return u.type === "StringLiteral" ? u.value : null;
|
|
2640
2647
|
}
|
|
2641
|
-
function
|
|
2648
|
+
function Ft(u) {
|
|
2642
2649
|
if (!u || u.type !== "ObjectExpression") return {};
|
|
2643
2650
|
const e = {};
|
|
2644
2651
|
for (const t of u.properties)
|
|
@@ -2654,17 +2661,17 @@ function Mt(u) {
|
|
|
2654
2661
|
}
|
|
2655
2662
|
return e;
|
|
2656
2663
|
}
|
|
2657
|
-
function
|
|
2664
|
+
function Oe(u) {
|
|
2658
2665
|
if (u.callee.type === "Identifier" && u.callee.name === "withDefaults") {
|
|
2659
2666
|
const e = u.arguments[0];
|
|
2660
2667
|
if (e?.type === "CallExpression") {
|
|
2661
|
-
const t =
|
|
2662
|
-
return a?.type === "ObjectExpression" &&
|
|
2668
|
+
const t = Be(e), a = u.arguments[1];
|
|
2669
|
+
return a?.type === "ObjectExpression" && $t(t, a), t;
|
|
2663
2670
|
}
|
|
2664
2671
|
}
|
|
2665
|
-
return
|
|
2672
|
+
return Be(u);
|
|
2666
2673
|
}
|
|
2667
|
-
function
|
|
2674
|
+
function Be(u) {
|
|
2668
2675
|
const e = u.arguments[0];
|
|
2669
2676
|
return e ? e.type === "ArrayExpression" ? e.elements.map((t) => t?.type === "StringLiteral" ? t.value : "").filter(Boolean) : e.type === "ObjectExpression" ? e.properties.map((t) => {
|
|
2670
2677
|
if (t.type !== "ObjectProperty") return null;
|
|
@@ -2676,15 +2683,15 @@ function Oe(u) {
|
|
|
2676
2683
|
const r = t.value.properties;
|
|
2677
2684
|
return {
|
|
2678
2685
|
name: a,
|
|
2679
|
-
type:
|
|
2680
|
-
required:
|
|
2681
|
-
default:
|
|
2686
|
+
type: Wt(r),
|
|
2687
|
+
required: xe(r, "required"),
|
|
2688
|
+
default: Jt(r)
|
|
2682
2689
|
};
|
|
2683
2690
|
}
|
|
2684
2691
|
return a;
|
|
2685
2692
|
}).filter(Boolean) : [] : [];
|
|
2686
2693
|
}
|
|
2687
|
-
function
|
|
2694
|
+
function $t(u, e) {
|
|
2688
2695
|
for (const t of e.properties) {
|
|
2689
2696
|
if (t.type !== "ObjectProperty") continue;
|
|
2690
2697
|
const a = t.key?.name;
|
|
@@ -2701,22 +2708,22 @@ function Pt(u, e) {
|
|
|
2701
2708
|
}
|
|
2702
2709
|
}
|
|
2703
2710
|
}
|
|
2704
|
-
function
|
|
2711
|
+
function Fe(u) {
|
|
2705
2712
|
const e = u.arguments[0];
|
|
2706
2713
|
return e ? e.type === "ArrayExpression" ? e.elements.map((t) => t?.type === "StringLiteral" ? { name: t.value, params: [] } : null).filter(Boolean) : [] : [];
|
|
2707
2714
|
}
|
|
2708
|
-
function
|
|
2715
|
+
function Ut(u) {
|
|
2709
2716
|
const e = u.arguments[0];
|
|
2710
2717
|
return !e || e.type !== "ObjectExpression" ? [] : e.properties.map((t) => (t.type === "ObjectProperty" || t.type === "ObjectMethod") && t.key?.name || "").filter(Boolean);
|
|
2711
2718
|
}
|
|
2712
|
-
function
|
|
2719
|
+
function Gt(u) {
|
|
2713
2720
|
const [e, t, a] = u.arguments;
|
|
2714
2721
|
if (!e || !t) return null;
|
|
2715
2722
|
const r = A(e), n = A(t);
|
|
2716
2723
|
let s = !1, i = !1;
|
|
2717
2724
|
if (a?.type === "ObjectExpression") {
|
|
2718
2725
|
const o = a.properties;
|
|
2719
|
-
s =
|
|
2726
|
+
s = xe(o, "deep"), i = xe(o, "immediate");
|
|
2720
2727
|
}
|
|
2721
2728
|
return {
|
|
2722
2729
|
id: re(),
|
|
@@ -2728,15 +2735,15 @@ function Bt(u) {
|
|
|
2728
2735
|
immediate: i
|
|
2729
2736
|
};
|
|
2730
2737
|
}
|
|
2731
|
-
function
|
|
2738
|
+
function Ht(u) {
|
|
2732
2739
|
const e = u.async ? "async " : "", t = u.params.map((r) => r.type === "ObjectPattern" ? `{${r.properties.map((s) => s.key?.name || s.name).join(",")}}` : r.type === "AssignmentPattern" ? r.left.name + "=" + (r.right?.extra?.raw || "null") : r.name).join(", "), a = A(u.body) || "{}";
|
|
2733
2740
|
return `${e}(${t}) => ${a}`;
|
|
2734
2741
|
}
|
|
2735
|
-
function
|
|
2742
|
+
function $e(u) {
|
|
2736
2743
|
return /return\s+await\s+__provider\.apis\['[\w]*'\]\s*\.apply/.test(u) || /return\s+await\s+__provider\.createMock/.test(u);
|
|
2737
2744
|
}
|
|
2738
|
-
function
|
|
2739
|
-
const a = /apis\['([\w]*)'\]/, n =
|
|
2745
|
+
function Ue(u, e, t) {
|
|
2746
|
+
const a = /apis\['([\w]*)'\]/, n = Ye(""), s = (i) => {
|
|
2740
2747
|
const o = i.indexOf(".then(");
|
|
2741
2748
|
if (o === -1) return null;
|
|
2742
2749
|
let c = 1, d = o + 6;
|
|
@@ -2797,29 +2804,29 @@ function $e(u, e, t) {
|
|
|
2797
2804
|
}
|
|
2798
2805
|
return null;
|
|
2799
2806
|
}
|
|
2800
|
-
function
|
|
2807
|
+
function xe(u, e) {
|
|
2801
2808
|
return !!u?.find(
|
|
2802
2809
|
(a) => a.key?.name === e
|
|
2803
2810
|
)?.value?.value;
|
|
2804
2811
|
}
|
|
2805
|
-
function
|
|
2812
|
+
function Wt(u) {
|
|
2806
2813
|
const e = u?.find(
|
|
2807
2814
|
(t) => t.key?.name === "type"
|
|
2808
2815
|
);
|
|
2809
2816
|
if (e)
|
|
2810
2817
|
return e.value.type === "ArrayExpression" ? e.value.elements.map((t) => t.name) : e.value.name;
|
|
2811
2818
|
}
|
|
2812
|
-
function
|
|
2819
|
+
function Jt(u) {
|
|
2813
2820
|
const e = u?.find(
|
|
2814
2821
|
(t) => t.key?.name === "default"
|
|
2815
2822
|
);
|
|
2816
2823
|
if (e)
|
|
2817
2824
|
return k(A(e.value));
|
|
2818
2825
|
}
|
|
2819
|
-
function
|
|
2826
|
+
function Xt(u) {
|
|
2820
2827
|
const e = [], t = {}, a = [];
|
|
2821
2828
|
try {
|
|
2822
|
-
const r =
|
|
2829
|
+
const r = Nu.compileString(u, { charset: !1 })?.css || "", n = Tu.parse(r), s = /^.[\w]+_[\w]{5,}/;
|
|
2823
2830
|
for (const i of n.nodes)
|
|
2824
2831
|
if (i.type === "rule") {
|
|
2825
2832
|
const o = {};
|
|
@@ -2839,7 +2846,7 @@ function Gt(u) {
|
|
|
2839
2846
|
`)
|
|
2840
2847
|
};
|
|
2841
2848
|
}
|
|
2842
|
-
function
|
|
2849
|
+
function ge(u, e, t) {
|
|
2843
2850
|
let a = "", r = 0;
|
|
2844
2851
|
const n = /'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*`/g;
|
|
2845
2852
|
let s;
|
|
@@ -2847,11 +2854,11 @@ function xe(u, e, t) {
|
|
|
2847
2854
|
const i = u.slice(r, s.index);
|
|
2848
2855
|
a += i.replace(e, t);
|
|
2849
2856
|
const o = s[0];
|
|
2850
|
-
o.startsWith("`") ? a +=
|
|
2857
|
+
o.startsWith("`") ? a += zt(o, e, t) : a += o, r = s.index + s[0].length;
|
|
2851
2858
|
}
|
|
2852
2859
|
return a += u.slice(r).replace(e, t), a;
|
|
2853
2860
|
}
|
|
2854
|
-
function
|
|
2861
|
+
function zt(u, e, t) {
|
|
2855
2862
|
let a = "", r = 0;
|
|
2856
2863
|
const n = /\$\{([^}]*)\}/g;
|
|
2857
2864
|
let s;
|
|
@@ -2862,13 +2869,13 @@ function Ht(u, e, t) {
|
|
|
2862
2869
|
}
|
|
2863
2870
|
return a += u.slice(r), a;
|
|
2864
2871
|
}
|
|
2865
|
-
function
|
|
2872
|
+
function Zt(u, e) {
|
|
2866
2873
|
if (!u) return u;
|
|
2867
2874
|
let t = u;
|
|
2868
2875
|
const a = [...e.refs, ...e.computed];
|
|
2869
2876
|
for (const r of a)
|
|
2870
|
-
t =
|
|
2871
|
-
t =
|
|
2877
|
+
t = Cu(t, r);
|
|
2878
|
+
t = ge(
|
|
2872
2879
|
t,
|
|
2873
2880
|
/__instance\.proxy\.\$forceUpdate\./g,
|
|
2874
2881
|
"__instance.proxy."
|
|
@@ -2881,10 +2888,10 @@ function Wt(u, e) {
|
|
|
2881
2888
|
`\\b${ce(r)}\\.${ce(s)}\\b`,
|
|
2882
2889
|
"g"
|
|
2883
2890
|
);
|
|
2884
|
-
t =
|
|
2891
|
+
t = ge(t, o, `this.${i}`);
|
|
2885
2892
|
}
|
|
2886
2893
|
for (const r of e.props)
|
|
2887
|
-
t =
|
|
2894
|
+
t = Qt(t, "__props", r, `this.${r}`);
|
|
2888
2895
|
for (const r of e.props)
|
|
2889
2896
|
t = R(t, r, `this.${r}`);
|
|
2890
2897
|
for (const [r, n] of Object.entries(e.reverseApiMap))
|
|
@@ -2905,16 +2912,16 @@ function Wt(u, e) {
|
|
|
2905
2912
|
function ce(u) {
|
|
2906
2913
|
return u.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2907
2914
|
}
|
|
2908
|
-
function
|
|
2915
|
+
function Qt(u, e, t, a) {
|
|
2909
2916
|
const r = new RegExp(
|
|
2910
2917
|
`\\b${ce(e)}\\.${ce(t)}\\b`,
|
|
2911
2918
|
"g"
|
|
2912
2919
|
);
|
|
2913
|
-
return
|
|
2920
|
+
return ge(u, r, a);
|
|
2914
2921
|
}
|
|
2915
|
-
function
|
|
2922
|
+
function du(u) {
|
|
2916
2923
|
const e = {}, t = {};
|
|
2917
|
-
for (const [a, r] of Object.entries(
|
|
2924
|
+
for (const [a, r] of Object.entries(ye))
|
|
2918
2925
|
if (r.replace)
|
|
2919
2926
|
if (r.replace.includes(".")) {
|
|
2920
2927
|
const n = r.replace.lastIndexOf("."), s = r.replace.substring(0, n), i = r.replace.substring(n + 1);
|
|
@@ -2922,7 +2929,7 @@ function ou(u) {
|
|
|
2922
2929
|
} else
|
|
2923
2930
|
e[r.replace] = a;
|
|
2924
2931
|
if (u) {
|
|
2925
|
-
const a =
|
|
2932
|
+
const a = Xe[u];
|
|
2926
2933
|
if (a) {
|
|
2927
2934
|
for (const [r, n] of Object.entries(a))
|
|
2928
2935
|
if (n.replace)
|
|
@@ -2935,11 +2942,11 @@ function ou(u) {
|
|
|
2935
2942
|
}
|
|
2936
2943
|
return { simple: e, member: t };
|
|
2937
2944
|
}
|
|
2938
|
-
function
|
|
2945
|
+
function Kt(u) {
|
|
2939
2946
|
for (const e of u)
|
|
2940
|
-
if (
|
|
2947
|
+
if (wu.includes(e.from)) return e.from;
|
|
2941
2948
|
}
|
|
2942
|
-
function
|
|
2949
|
+
function Yt(u) {
|
|
2943
2950
|
const e = {}, t = (a) => {
|
|
2944
2951
|
for (const [r, n] of Object.entries(a)) {
|
|
2945
2952
|
if (!n.composable || !n.replace || !n.replace.includes("."))
|
|
@@ -2949,13 +2956,13 @@ function zt(u) {
|
|
|
2949
2956
|
e[n.composable][s] = r;
|
|
2950
2957
|
}
|
|
2951
2958
|
};
|
|
2952
|
-
if (t(
|
|
2953
|
-
const a =
|
|
2959
|
+
if (t(ye), u) {
|
|
2960
|
+
const a = Xe[u];
|
|
2954
2961
|
a && t(a);
|
|
2955
2962
|
}
|
|
2956
2963
|
return e;
|
|
2957
2964
|
}
|
|
2958
|
-
function
|
|
2965
|
+
function Ge(u, e) {
|
|
2959
2966
|
if (!u) return u;
|
|
2960
2967
|
const t = {
|
|
2961
2968
|
refs: new Set(e.refs),
|
|
@@ -2968,18 +2975,18 @@ function Ue(u, e) {
|
|
|
2968
2975
|
dataSources: new Set(e.dataSources),
|
|
2969
2976
|
hasState: e.hasState,
|
|
2970
2977
|
reverseApiMap: e.globalApiVars,
|
|
2971
|
-
reverseMemberApiMap: e.reverseMemberApiMap ||
|
|
2978
|
+
reverseMemberApiMap: e.reverseMemberApiMap || du().member
|
|
2972
2979
|
};
|
|
2973
|
-
let a =
|
|
2980
|
+
let a = Zt(u, t);
|
|
2974
2981
|
a = a.replace(/_ctx\./g, "this."), a = a.replace(/this\.this\./g, "this.");
|
|
2975
2982
|
for (const [r, n] of Object.entries(e.libs || {}))
|
|
2976
2983
|
a = R(a, r, `this.$libs.${n}.${r}`);
|
|
2977
2984
|
return a;
|
|
2978
2985
|
}
|
|
2979
|
-
function
|
|
2980
|
-
const e =
|
|
2986
|
+
function e0(u) {
|
|
2987
|
+
const e = Kt(u.imports || []), { simple: t, member: a } = du(e);
|
|
2981
2988
|
if (u.globalApiDestructured && u.globalApiDestructured.length > 0) {
|
|
2982
|
-
const n =
|
|
2989
|
+
const n = Yt(e);
|
|
2983
2990
|
for (const { callee: s, destructure: i } of u.globalApiDestructured) {
|
|
2984
2991
|
const o = n[s];
|
|
2985
2992
|
if (o)
|
|
@@ -3008,12 +3015,12 @@ function Zt(u) {
|
|
|
3008
3015
|
reverseMemberApiMap: a
|
|
3009
3016
|
};
|
|
3010
3017
|
}
|
|
3011
|
-
const
|
|
3018
|
+
const lu = "arrow-double-left, arrow-double-right, contact, notes, records, cash-back-record, newspaper, discount, completed, user, description, list-switch, list-switching, link-o, miniprogram-o, qq, wechat-moments, weibo, cash-o, guide-o, invitation, shield-o, exchange, eye, enlarge, expand-o, eye-o, expand, filter-o, fire, fail, failure, fire-o, flag-o, font, font-o, gem-o, flower-o, gem, gift-card, friends, friends-o, gold-coin, gold-coin-o, good-job-o, gift, gift-o, gift-card-o, good-job, home-o, goods-collect, graphic, goods-collect-o, hot-o, info, hotel-o, info-o, hot-sale-o, hot, like, idcard, like-o, hot-sale, location-o, location, label, lock, label-o, map-marked, logistics, manager, more, live, manager-o, medal, more-o, music-o, music, new-arrival-o, medal-o, new-o, free-postage, newspaper-o, new-arrival, minus, orders-o, new, paid, notes-o, other-pay, pause-circle, pause, pause-circle-o, peer-pay, pending-payment, passed, plus, phone-circle-o, phone-o, printer, photo-fail, phone, photo-o, play-circle, play, phone-circle, point-gift-o, point-gift, play-circle-o, shrink, photo, qr, qr-invalid, question-o, revoke, replay, service, question, search, refund-o, service-o, scan, share, send-gift-o, share-o, setting, points, photograph, shop, shop-o, shop-collect-o, shop-collect, smile, shopping-cart-o, sign, sort, star-o, smile-comment-o, stop, stop-circle-o, smile-o, star, success, stop-circle, records-o, shopping-cart, tosend, todo-list, thumb-circle-o, thumb-circle, umbrella-circle, underway, upgrade, todo-list-o, tv-o, underway-o, user-o, vip-card-o, vip-card, send-gift, wap-home, wap-nav, volume-o, video, wap-home-o, volume, warning, weapp-nav, wechat-pay, wechat, setting-o, youzan-shield, warn-o, smile-comment, user-circle-o, video-o, add-square, add, arrow-down, arrow-up, arrow, after-sale, add-o, alipay, ascending, apps-o, aim, award, arrow-left, award-o, audio, bag-o, balance-list, back-top, bag, balance-pay, balance-o, bar-chart-o, bars, balance-list-o, birthday-cake-o, bookmark, bill, bell, browsing-history-o, browsing-history, bookmark-o, bulb-o, bullhorn-o, bill-o, calendar-o, brush-o, card, cart-o, cart-circle, cart-circle-o, cart, cash-on-deliver, cash-back-record-o, cashier-o, chart-trending-o, certificate, chat, clear, chat-o, checked, clock, clock-o, close, closed-eye, circle, cluster-o, column, comment-circle-o, cluster, comment, comment-o, comment-circle, completed-o, credit-pay, coupon, debit-pay, coupon-o, contact-o, descending, desktop-o, diamond-o, description-o, delete, diamond, delete-o, cross, edit, ellipsis, down, discount-o, ecard-pay, envelop-o".split(
|
|
3012
3019
|
", "
|
|
3013
|
-
),
|
|
3020
|
+
), u0 = "AddLocation, Aim, AlarmClock, Apple, ArrowDownBold, ArrowDown, ArrowLeftBold, ArrowLeft, ArrowRightBold, ArrowRight, ArrowUpBold, ArrowUp, Avatar, Back, Baseball, Basketball, BellFilled, Bell, Bicycle, BottomLeft, BottomRight, Bottom, Bowl, Box, Briefcase, BrushFilled, Brush, Burger, Calendar, CameraFilled, Camera, CaretBottom, CaretLeft, CaretRight, CaretTop, Cellphone, ChatDotRound, ChatDotSquare, ChatLineRound, ChatLineSquare, ChatRound, ChatSquare, Check, Checked, Cherry, Chicken, ChromeFilled, CircleCheckFilled, CircleCheck, CircleCloseFilled, CircleClose, CirclePlusFilled, CirclePlus, Clock, CloseBold, Close, Cloudy, CoffeeCup, Coffee, Coin, ColdDrink, CollectionTag, Collection, Comment, Compass, Connection, Coordinate, CopyDocument, Cpu, CreditCard, Crop, DArrowLeft, DArrowRight, DCaret, DataAnalysis, DataBoard, DataLine, DeleteFilled, DeleteLocation, Delete, Dessert, Discount, DishDot, Dish, DocumentAdd, DocumentChecked, DocumentCopy, DocumentDelete, DocumentRemove, Document, Download, Drizzling, EditPen, Edit, ElemeFilled, Eleme, ElementPlus, Expand, Failed, Female, Files, Film, Filter, Finished, FirstAidKit, Flag, Fold, FolderAdd, FolderChecked, FolderDelete, FolderOpened, FolderRemove, Folder, Food, Football, ForkSpoon, Fries, FullScreen, GobletFull, GobletSquareFull, GobletSquare, Goblet, GoldMedal, GoodsFilled, Goods, Grape, Grid, Guide, Handbag, Headset, HelpFilled, Help, Hide, Histogram, HomeFilled, HotWater, House, IceCreamRound, IceCreamSquare, IceCream, IceDrink, IceTea, InfoFilled, Iphone, Key, KnifeFork, Lightning, Link, List, Loading, LocationFilled, LocationInformation, Location, Lock, Lollipop, MagicStick, Magnet, Male, Management, MapLocation, Medal, Memo, Menu, MessageBox, Message, Mic, Microphone, MilkTea, Minus, Money, Monitor, MoonNight, Moon, MoreFilled, More, MostlyCloudy, Mouse, Mug, MuteNotification, Mute, NoSmoking, Notebook, Notification, Odometer, OfficeBuilding, Open, Operation, Opportunity, Orange, Paperclip, PartlyCloudy, Pear, PhoneFilled, Phone, PictureFilled, PictureRounded, Picture, PieChart, Place, Platform, Plus, Pointer, Position, Postcard, Pouring, Present, PriceTag, Printer, Promotion, QuartzWatch, QuestionFilled, Rank, ReadingLamp, Reading, RefreshLeft, RefreshRight, Refresh, Refrigerator, RemoveFilled, Remove, Right, ScaleToOriginal, School, Scissor, Search, Select, Sell, SemiSelect, Service, SetUp, Setting, Share, Ship, Shop, ShoppingBag, ShoppingCartFull, ShoppingCart, ShoppingTrolley, Smoking, Soccer, SoldOut, SortDown, SortUp, Sort, Stamp, StarFilled, Star, Stopwatch, SuccessFilled, Sugar, SuitcaseLine, Suitcase, Sunny, Sunrise, Sunset, SwitchButton, SwitchFilled, Switch, TakeawayBox, Ticket, Tickets, Timer, ToiletPaper, Tools, TopLeft, TopRight, Top, TrendCharts, TrophyBase, Trophy, TurnOff, Umbrella, Unlock, UploadFilled, Upload, UserFilled, User, Van, VideoCameraFilled, VideoCamera, VideoPause, VideoPlay, View, WalletFilled, Wallet, WarnTriangleFilled, WarningFilled, Warning, Watch, Watermelon, WindPower, ZoomIn, ZoomOut, VtjIconChatRecord, VtjIconNewChat, VtjIconAi, VtjIconUniapp, VtjIconWindowMax, VtjIconWindowMin, VtjIconWindowClose, VtjIconWindowNormal, VtjIconWindowDown, VtjIconWindowUp, VtjIconNpSave, VtjIconNpFile, VtjIconNpEdit, VtjIconNpShare, VtjIconNpSearch, VtjIconNpExport, VtjIconNpImport, VtjIconNpList, VtjIconNpPrint, VtjIconNpCancel, VtjIconNpConfirm, VtjIconNpReset, VtjIconNpReturnAll, VtjIconNpReturn, VtjIconNpRemove, VtjIconNpRemoveRow, VtjIconNpDelete, VtjIconNpExit, VtjIconNpRefresh, VtjIconNpAdd, VtjIconNpSelect, VtjIconNpAddRow, VtjIconNpExtend, VtjIconNpClose, VtjIconNpSubmit, VtjIconDeps, VtjIconBack, VtjIconHome, VtjIconApi, VtjIconExport, VtjIconImport, VtjIconGreater, VtjIconSmaller, VtjIconCheck, VtjIconSwitch, VtjIconCopy, VtjIconLock, VtjIconUnlock, VtjIconLayers, VtjIconConsole, VtjIconTeam, VtjIconPublish, VtjIconPreview, VtjIconSave, VtjIconPc, VtjIconPhone, VtjIconPad, VtjIconRedo, VtjIconRefresh, VtjIconUndo, VtjIconCategory, VtjIconProject, VtjIconNotice, VtjIconFav, VtjIconBug, VtjIconFile, VtjIconFolder, VtjIconUpload, VtjIconDownload, VtjIconUser, VtjIconSetting, VtjIconArrowRight, VtjIconArrowLeft, VtjIconArrowDown, VtjIconArrowUp, VtjIconShare, VtjIconData, VtjIconTemplate, VtjIconExitFullscreen, VtjIconFullscreen, VtjIconEdit, VtjIconRemove, VtjIconJs, VtjIconDatabase, VtjIconInfo, VtjIconPlus, VtjIconMinus, VtjIconHelp, VtjIconVars, VtjIconOutline, VtjIconVisible, VtjIconInvisible, VtjIconDocument, VtjIconHistory, VtjIconFixed, VtjIconUnfixed, VtjIconSearch, VtjIconMore, VtjIconClose, VtjIconComponents, VtjIconBlock".split(
|
|
3014
3021
|
", "
|
|
3015
|
-
),
|
|
3016
|
-
class
|
|
3022
|
+
), t0 = "user", M = "User";
|
|
3023
|
+
class a0 {
|
|
3017
3024
|
validate(e) {
|
|
3018
3025
|
const t = {
|
|
3019
3026
|
valid: !0,
|
|
@@ -3027,7 +3034,7 @@ class Yt {
|
|
|
3027
3034
|
}
|
|
3028
3035
|
isCompleteSFC(e) {
|
|
3029
3036
|
try {
|
|
3030
|
-
const t =
|
|
3037
|
+
const t = O(e);
|
|
3031
3038
|
return !!(t.template && t.script && t.styles);
|
|
3032
3039
|
} catch {
|
|
3033
3040
|
return !1;
|
|
@@ -3036,7 +3043,7 @@ class Yt {
|
|
|
3036
3043
|
checkSyntax(e) {
|
|
3037
3044
|
let t = "";
|
|
3038
3045
|
try {
|
|
3039
|
-
const a =
|
|
3046
|
+
const a = O(e);
|
|
3040
3047
|
_(a.script);
|
|
3041
3048
|
} catch (a) {
|
|
3042
3049
|
a instanceof SyntaxError && (t = a.message);
|
|
@@ -3044,11 +3051,11 @@ class Yt {
|
|
|
3044
3051
|
return t;
|
|
3045
3052
|
}
|
|
3046
3053
|
checkSetup(e) {
|
|
3047
|
-
const t =
|
|
3054
|
+
const t = O(e);
|
|
3048
3055
|
if (t.isScriptSetup)
|
|
3049
3056
|
return !0;
|
|
3050
3057
|
let a = 0;
|
|
3051
|
-
return
|
|
3058
|
+
return ze(t.script, {
|
|
3052
3059
|
ObjectMethod(r) {
|
|
3053
3060
|
r.node.key.name === "setup" && (a = r.node.body.body.filter(
|
|
3054
3061
|
(s) => !q.isEmptyStatement(s)
|
|
@@ -3057,7 +3064,7 @@ class Yt {
|
|
|
3057
3064
|
}), a === 3;
|
|
3058
3065
|
}
|
|
3059
3066
|
findVantIcons(e) {
|
|
3060
|
-
const t =
|
|
3067
|
+
const t = O(e), a = /<(?:VanIcon|van-icon)\b[^>]*>/g, r = t.template.match(a) || [], n = [];
|
|
3061
3068
|
return r.forEach((s) => {
|
|
3062
3069
|
const i = s.match(/\bname="([^"]+)"/);
|
|
3063
3070
|
i && n.push(i[1]);
|
|
@@ -3066,17 +3073,17 @@ class Yt {
|
|
|
3066
3073
|
checkVantIcons(e) {
|
|
3067
3074
|
const t = this.findVantIcons(e), a = [];
|
|
3068
3075
|
for (const r of t)
|
|
3069
|
-
|
|
3076
|
+
lu.includes(r) || a.push(r);
|
|
3070
3077
|
return a;
|
|
3071
3078
|
}
|
|
3072
3079
|
findVtjIcons(e) {
|
|
3073
|
-
const t =
|
|
3080
|
+
const t = O(e), a = /import\s*{([^}]+)}\s*from\s*['"]\@vtj\/icons['"]/, r = t.script.match(a);
|
|
3074
3081
|
return !r || !r[1] ? [] : r[1].split(",").map((n) => n.trim()).filter(Boolean);
|
|
3075
3082
|
}
|
|
3076
3083
|
checkVtjIcons(e) {
|
|
3077
3084
|
const t = this.findVtjIcons(e), a = [];
|
|
3078
3085
|
for (const r of t)
|
|
3079
|
-
|
|
3086
|
+
u0.includes(r) || a.push(r);
|
|
3080
3087
|
return a;
|
|
3081
3088
|
}
|
|
3082
3089
|
hasUnchangedComment(e) {
|
|
@@ -3091,10 +3098,10 @@ class Yt {
|
|
|
3091
3098
|
);
|
|
3092
3099
|
}
|
|
3093
3100
|
}
|
|
3094
|
-
function
|
|
3101
|
+
function r0(u) {
|
|
3095
3102
|
const e = [];
|
|
3096
3103
|
let t = u;
|
|
3097
|
-
const a =
|
|
3104
|
+
const a = O(u);
|
|
3098
3105
|
if (!a.template || !a.script)
|
|
3099
3106
|
return {
|
|
3100
3107
|
fixed: !1,
|
|
@@ -3102,7 +3109,7 @@ function e0(u) {
|
|
|
3102
3109
|
fixedCode: u,
|
|
3103
3110
|
changes: []
|
|
3104
3111
|
};
|
|
3105
|
-
const r =
|
|
3112
|
+
const r = n0(a.script), n = a.template;
|
|
3106
3113
|
let s = n;
|
|
3107
3114
|
const i = [], o = /\{\{([^}]+)\}\}/g;
|
|
3108
3115
|
let c;
|
|
@@ -3130,17 +3137,17 @@ function e0(u) {
|
|
|
3130
3137
|
for (; (c = d.exec(n)) !== null; ) {
|
|
3131
3138
|
const h = c[0], g = c[1], x = c[2], E = H(x, r);
|
|
3132
3139
|
if (E !== x) {
|
|
3133
|
-
const
|
|
3140
|
+
const w = G(n, c.index);
|
|
3134
3141
|
i.push({
|
|
3135
3142
|
start: c.index,
|
|
3136
3143
|
end: c.index + h.length,
|
|
3137
3144
|
original: h,
|
|
3138
3145
|
replacement: `:${g}="${E}"`,
|
|
3139
|
-
line:
|
|
3140
|
-
column:
|
|
3146
|
+
line: w.line,
|
|
3147
|
+
column: w.column
|
|
3141
3148
|
}), e.push({
|
|
3142
|
-
line:
|
|
3143
|
-
column:
|
|
3149
|
+
line: w.line + 1,
|
|
3150
|
+
column: w.column,
|
|
3144
3151
|
original: x,
|
|
3145
3152
|
fixed: E,
|
|
3146
3153
|
message: "修复绑定属性:添加 state. 前缀"
|
|
@@ -3151,17 +3158,17 @@ function e0(u) {
|
|
|
3151
3158
|
for (; (c = l.exec(n)) !== null; ) {
|
|
3152
3159
|
const h = c[0], g = c[1], x = c[2], E = H(x, r);
|
|
3153
3160
|
if (E !== x) {
|
|
3154
|
-
const
|
|
3161
|
+
const w = G(n, c.index);
|
|
3155
3162
|
i.push({
|
|
3156
3163
|
start: c.index,
|
|
3157
3164
|
end: c.index + h.length,
|
|
3158
3165
|
original: h,
|
|
3159
3166
|
replacement: `v-${g}="${E}"`,
|
|
3160
|
-
line:
|
|
3161
|
-
column:
|
|
3167
|
+
line: w.line,
|
|
3168
|
+
column: w.column
|
|
3162
3169
|
}), e.push({
|
|
3163
|
-
line:
|
|
3164
|
-
column:
|
|
3170
|
+
line: w.line + 1,
|
|
3171
|
+
column: w.column,
|
|
3165
3172
|
original: x,
|
|
3166
3173
|
fixed: E,
|
|
3167
3174
|
message: `修复 v-${g} 指令:添加 state. 前缀`
|
|
@@ -3172,23 +3179,23 @@ function e0(u) {
|
|
|
3172
3179
|
for (; (c = p.exec(n)) !== null; ) {
|
|
3173
3180
|
const h = c[0], x = c[1].match(/^(.+)\s+in\s+(.+)$/);
|
|
3174
3181
|
if (x) {
|
|
3175
|
-
const [, E,
|
|
3176
|
-
|
|
3182
|
+
const [, E, w] = x, D = H(
|
|
3183
|
+
w,
|
|
3177
3184
|
r
|
|
3178
3185
|
);
|
|
3179
|
-
if (D !==
|
|
3180
|
-
const
|
|
3186
|
+
if (D !== w) {
|
|
3187
|
+
const $ = G(n, c.index), de = `v-for="${E} in ${D}"`;
|
|
3181
3188
|
i.push({
|
|
3182
3189
|
start: c.index,
|
|
3183
3190
|
end: c.index + h.length,
|
|
3184
3191
|
original: h,
|
|
3185
3192
|
replacement: de,
|
|
3186
|
-
line:
|
|
3187
|
-
column:
|
|
3193
|
+
line: $.line,
|
|
3194
|
+
column: $.column
|
|
3188
3195
|
}), e.push({
|
|
3189
|
-
line:
|
|
3190
|
-
column:
|
|
3191
|
-
original:
|
|
3196
|
+
line: $.line + 1,
|
|
3197
|
+
column: $.column,
|
|
3198
|
+
original: w,
|
|
3192
3199
|
fixed: D,
|
|
3193
3200
|
message: "修复 v-for 指令:添加 state. 前缀"
|
|
3194
3201
|
});
|
|
@@ -3241,17 +3248,17 @@ function e0(u) {
|
|
|
3241
3248
|
for (; (c = y.exec(n)) !== null; ) {
|
|
3242
3249
|
const h = c[0], g = c[1], x = c[2], E = H(x, r);
|
|
3243
3250
|
if (E !== x) {
|
|
3244
|
-
const
|
|
3251
|
+
const w = G(n, c.index);
|
|
3245
3252
|
i.push({
|
|
3246
3253
|
start: c.index,
|
|
3247
3254
|
end: c.index + h.length,
|
|
3248
3255
|
original: h,
|
|
3249
3256
|
replacement: `v-${g}="${E}"`,
|
|
3250
|
-
line:
|
|
3251
|
-
column:
|
|
3257
|
+
line: w.line,
|
|
3258
|
+
column: w.column
|
|
3252
3259
|
}), e.push({
|
|
3253
|
-
line:
|
|
3254
|
-
column:
|
|
3260
|
+
line: w.line + 1,
|
|
3261
|
+
column: w.column,
|
|
3255
3262
|
original: x,
|
|
3256
3263
|
fixed: E,
|
|
3257
3264
|
message: `修复 v-${g} 指令:添加 state. 前缀`
|
|
@@ -3260,21 +3267,21 @@ function e0(u) {
|
|
|
3260
3267
|
}
|
|
3261
3268
|
const v = /(@|v-on:)(\w+)="([^"]+)"/g;
|
|
3262
3269
|
for (; (c = v.exec(n)) !== null; ) {
|
|
3263
|
-
const h = c[0], g = c[1], x = c[2], E = c[3],
|
|
3264
|
-
if (
|
|
3270
|
+
const h = c[0], g = c[1], x = c[2], E = c[3], w = s0(E, r);
|
|
3271
|
+
if (w !== E) {
|
|
3265
3272
|
const D = G(n, c.index);
|
|
3266
3273
|
i.push({
|
|
3267
3274
|
start: c.index,
|
|
3268
3275
|
end: c.index + h.length,
|
|
3269
3276
|
original: h,
|
|
3270
|
-
replacement: `${g}${x}="${
|
|
3277
|
+
replacement: `${g}${x}="${w}"`,
|
|
3271
3278
|
line: D.line,
|
|
3272
3279
|
column: D.column
|
|
3273
3280
|
}), e.push({
|
|
3274
3281
|
line: D.line + 1,
|
|
3275
3282
|
column: D.column,
|
|
3276
3283
|
original: E,
|
|
3277
|
-
fixed:
|
|
3284
|
+
fixed: w,
|
|
3278
3285
|
message: "修复事件处理器:添加 state. 前缀"
|
|
3279
3286
|
});
|
|
3280
3287
|
}
|
|
@@ -3294,7 +3301,7 @@ function e0(u) {
|
|
|
3294
3301
|
changes: e
|
|
3295
3302
|
};
|
|
3296
3303
|
}
|
|
3297
|
-
function
|
|
3304
|
+
function n0(u) {
|
|
3298
3305
|
const e = /* @__PURE__ */ new Set();
|
|
3299
3306
|
try {
|
|
3300
3307
|
const t = _(u);
|
|
@@ -3320,7 +3327,7 @@ function H(u, e) {
|
|
|
3320
3327
|
r.test(t) && !t.includes(`state.${a}`) && (t = t.replace(r, `state.${a}`));
|
|
3321
3328
|
}), t;
|
|
3322
3329
|
}
|
|
3323
|
-
function
|
|
3330
|
+
function s0(u, e) {
|
|
3324
3331
|
let t = u.trim();
|
|
3325
3332
|
return e.forEach((a) => {
|
|
3326
3333
|
const r = new RegExp(
|
|
@@ -3341,22 +3348,22 @@ function G(u, e) {
|
|
|
3341
3348
|
column: t[t.length - 1].length
|
|
3342
3349
|
};
|
|
3343
3350
|
}
|
|
3344
|
-
class
|
|
3351
|
+
class i0 {
|
|
3345
3352
|
fixBasedOnValidation(e, t) {
|
|
3346
3353
|
let a = e;
|
|
3347
|
-
return t.illegalVantIcons.length && (a = this.fixVantIcons(a)), t.illegalVtjIcons.length && (a = this.fixVtjIcons(a, t.illegalVtjIcons)),
|
|
3354
|
+
return t.illegalVantIcons.length && (a = this.fixVantIcons(a)), t.illegalVtjIcons.length && (a = this.fixVtjIcons(a, t.illegalVtjIcons)), r0(a).fixedCode;
|
|
3348
3355
|
}
|
|
3349
3356
|
fixVantIcons(e) {
|
|
3350
|
-
const t =
|
|
3357
|
+
const t = O(e), a = t.template.replace(
|
|
3351
3358
|
/<(?:VanIcon|van-icon)\s+[^>]*name="([^"]+)"[^>]*>/g,
|
|
3352
|
-
(r, n) => r.includes(":name=") || r.includes("v-bind:name=") ||
|
|
3359
|
+
(r, n) => r.includes(":name=") || r.includes("v-bind:name=") || lu.includes(n) ? r : r.replace(n, t0)
|
|
3353
3360
|
);
|
|
3354
3361
|
return this.reconstructSFC(t, a, t.script);
|
|
3355
3362
|
}
|
|
3356
3363
|
fixVtjIcons(e, t = []) {
|
|
3357
|
-
const a =
|
|
3364
|
+
const a = O(e);
|
|
3358
3365
|
let r = !1;
|
|
3359
|
-
a.script =
|
|
3366
|
+
a.script = ze(a.script, {
|
|
3360
3367
|
ImportDeclaration(i) {
|
|
3361
3368
|
if (i.node.source.value === "@vtj/icons") {
|
|
3362
3369
|
const o = i.node.specifiers, c = [];
|
|
@@ -3442,23 +3449,46 @@ ${a}
|
|
|
3442
3449
|
}), r;
|
|
3443
3450
|
}
|
|
3444
3451
|
}
|
|
3445
|
-
|
|
3446
|
-
const
|
|
3452
|
+
function c0(u) {
|
|
3453
|
+
const e = [];
|
|
3454
|
+
for (const t of u.replace(/\\/g, "/").split("/"))
|
|
3455
|
+
!t || t === "." || (t === ".." ? e.pop() : e.push(t));
|
|
3456
|
+
return e.join("/");
|
|
3457
|
+
}
|
|
3458
|
+
function o0(u) {
|
|
3459
|
+
return u.split("/").slice(0, -1).join("/");
|
|
3460
|
+
}
|
|
3461
|
+
function d0(u, e) {
|
|
3462
|
+
const t = u.split(/[?#]/)[0].replace(/\\/g, "/");
|
|
3463
|
+
let a = t;
|
|
3464
|
+
return t.startsWith("@/") ? a = `src/${t.slice(2)}` : t.startsWith(".") && e && (a = `${o0(e)}/${t}`), a = c0(a).replace(/^\//, ""), a.endsWith(".vue") ? a : `${a}.vue`;
|
|
3465
|
+
}
|
|
3466
|
+
function fu(u, e, t) {
|
|
3467
|
+
const a = Eu(e), r = a.byId.get(t), n = r ? Iu(r, e.platform) : void 0, s = d0(
|
|
3468
|
+
u,
|
|
3469
|
+
n
|
|
3470
|
+
).toLowerCase(), i = a.blockIdBySourcePath.get(s);
|
|
3471
|
+
if (i) return i;
|
|
3472
|
+
const o = u.split(/[?#]/)[0].replace(/\\/g, "/").split("/").pop()?.replace(/\.vue$/i, "");
|
|
3473
|
+
return o && e.blocks?.some((c) => c.id === o) ? o : void 0;
|
|
3474
|
+
}
|
|
3475
|
+
async function A0(u) {
|
|
3476
|
+
const { id: e, name: t, source: a, project: r } = u, n = Ru(a, t);
|
|
3447
3477
|
if (n)
|
|
3448
3478
|
return Promise.reject(n);
|
|
3449
|
-
const { dependencies: s = [], platform: i = "web" } = r || {}, o = new
|
|
3479
|
+
const { dependencies: s = [], platform: i = "web" } = r || {}, o = new a0(), c = new i0(), d = o.validate(a);
|
|
3450
3480
|
let l = [];
|
|
3451
3481
|
if (!d.valid)
|
|
3452
3482
|
return l = d.errors, Promise.reject(l);
|
|
3453
|
-
const p = c.fixBasedOnValidation(a, d), b =
|
|
3454
|
-
b.script =
|
|
3483
|
+
const p = c.fixBasedOnValidation(a, d), b = O(p);
|
|
3484
|
+
b.script = Du(b.script);
|
|
3455
3485
|
const {
|
|
3456
3486
|
styles: m,
|
|
3457
3487
|
css: y,
|
|
3458
3488
|
errors: v
|
|
3459
|
-
} =
|
|
3489
|
+
} = Xt(b.styles.join(`
|
|
3460
3490
|
`));
|
|
3461
|
-
return l.push(...v), l.length ? Promise.reject(l) : b.isScriptSetup ?
|
|
3491
|
+
return l.push(...v), l.length ? Promise.reject(l) : b.isScriptSetup ? f0(b, {
|
|
3462
3492
|
id: e,
|
|
3463
3493
|
name: t,
|
|
3464
3494
|
project: r,
|
|
@@ -3466,7 +3496,7 @@ async function g0(u) {
|
|
|
3466
3496
|
dependencies: s,
|
|
3467
3497
|
styles: m,
|
|
3468
3498
|
css: y
|
|
3469
|
-
}) :
|
|
3499
|
+
}) : l0(b, {
|
|
3470
3500
|
id: e,
|
|
3471
3501
|
name: t,
|
|
3472
3502
|
project: r,
|
|
@@ -3476,7 +3506,7 @@ async function g0(u) {
|
|
|
3476
3506
|
css: y
|
|
3477
3507
|
});
|
|
3478
3508
|
}
|
|
3479
|
-
async function
|
|
3509
|
+
async function l0(u, e) {
|
|
3480
3510
|
const { id: t, name: a, project: r, platform: n, dependencies: s, styles: i, css: o } = e, {
|
|
3481
3511
|
state: c,
|
|
3482
3512
|
watch: d,
|
|
@@ -3490,14 +3520,15 @@ async function r0(u, e) {
|
|
|
3490
3520
|
handlers: g,
|
|
3491
3521
|
imports: x,
|
|
3492
3522
|
dataSources: E,
|
|
3493
|
-
directives:
|
|
3494
|
-
} =
|
|
3523
|
+
directives: w
|
|
3524
|
+
} = ot(u.script, r), { nodes: D, slots: $, context: de } = cu(t, a, u.template, {
|
|
3495
3525
|
platform: n,
|
|
3496
3526
|
handlers: g,
|
|
3497
3527
|
styles: i,
|
|
3498
3528
|
imports: x,
|
|
3499
|
-
directives:
|
|
3500
|
-
|
|
3529
|
+
directives: w,
|
|
3530
|
+
resolveSchemaImport: (L) => fu(L, r, t)
|
|
3531
|
+
}), Se = {
|
|
3501
3532
|
id: t,
|
|
3502
3533
|
name: a,
|
|
3503
3534
|
inject: h,
|
|
@@ -3508,14 +3539,14 @@ async function r0(u, e) {
|
|
|
3508
3539
|
computed: p,
|
|
3509
3540
|
methods: b,
|
|
3510
3541
|
dataSources: E,
|
|
3511
|
-
slots:
|
|
3542
|
+
slots: $,
|
|
3512
3543
|
emits: y,
|
|
3513
3544
|
expose: v,
|
|
3514
3545
|
nodes: D,
|
|
3515
3546
|
css: o
|
|
3516
|
-
},
|
|
3517
|
-
(
|
|
3518
|
-
),
|
|
3547
|
+
}, hu = Object.keys(p || {}), xu = (m || []).map(
|
|
3548
|
+
(L) => typeof L == "string" ? L : L.name
|
|
3549
|
+
), gu = [
|
|
3519
3550
|
"$el",
|
|
3520
3551
|
"$emit",
|
|
3521
3552
|
"$nextTick",
|
|
@@ -3532,37 +3563,38 @@ async function r0(u, e) {
|
|
|
3532
3563
|
"$props",
|
|
3533
3564
|
"props",
|
|
3534
3565
|
...Object.keys(b || {})
|
|
3535
|
-
], { libs:
|
|
3566
|
+
], { libs: yu } = mu(x, s), ve = {
|
|
3536
3567
|
platform: n,
|
|
3537
3568
|
context: de,
|
|
3538
|
-
computed:
|
|
3539
|
-
libs:
|
|
3540
|
-
members:
|
|
3541
|
-
props:
|
|
3569
|
+
computed: hu,
|
|
3570
|
+
libs: yu,
|
|
3571
|
+
members: gu,
|
|
3572
|
+
props: xu
|
|
3542
3573
|
};
|
|
3543
|
-
return await
|
|
3544
|
-
|
|
3545
|
-
async (
|
|
3546
|
-
await
|
|
3574
|
+
return await bu(
|
|
3575
|
+
Se,
|
|
3576
|
+
async (L) => {
|
|
3577
|
+
await pu(L, async (K) => {
|
|
3547
3578
|
if (oe(K)) {
|
|
3548
|
-
const
|
|
3549
|
-
K.value =
|
|
3579
|
+
const Su = await ae(K.value);
|
|
3580
|
+
K.value = ke(Su, L.id, ve);
|
|
3550
3581
|
}
|
|
3551
3582
|
});
|
|
3552
3583
|
},
|
|
3553
|
-
async (
|
|
3554
|
-
const K = await ae(
|
|
3555
|
-
|
|
3584
|
+
async (L) => {
|
|
3585
|
+
const K = await ae(L.value);
|
|
3586
|
+
L.value = ke(K, "", ve);
|
|
3556
3587
|
}
|
|
3557
|
-
), new
|
|
3588
|
+
), new Je(Se).toDsl();
|
|
3558
3589
|
}
|
|
3559
|
-
async function
|
|
3560
|
-
const { id: t, name: a, project: r, platform: n, styles: s, css: i, dependencies: o } = e, c =
|
|
3590
|
+
async function f0(u, e) {
|
|
3591
|
+
const { id: t, name: a, project: r, platform: n, styles: s, css: i, dependencies: o } = e, c = Pt(u.script, r), { nodes: d, slots: l, context: p } = cu(t, a, u.template, {
|
|
3561
3592
|
platform: n,
|
|
3562
3593
|
handlers: c.handlers,
|
|
3563
3594
|
styles: s,
|
|
3564
3595
|
imports: c.imports,
|
|
3565
|
-
directives: c.directives
|
|
3596
|
+
directives: c.directives,
|
|
3597
|
+
resolveSchemaImport: (g) => fu(g, r, t)
|
|
3566
3598
|
}), b = {
|
|
3567
3599
|
id: t,
|
|
3568
3600
|
name: a,
|
|
@@ -3585,7 +3617,7 @@ async function n0(u, e) {
|
|
|
3585
3617
|
expose: c.expose,
|
|
3586
3618
|
nodes: d,
|
|
3587
3619
|
css: i
|
|
3588
|
-
}, { libs: m } =
|
|
3620
|
+
}, { libs: m } = mu(c.imports, o), y = e0(c), v = {
|
|
3589
3621
|
refs: Array.from(y.refs),
|
|
3590
3622
|
reactives: Array.from(y.reactives),
|
|
3591
3623
|
hasState: y.hasState,
|
|
@@ -3599,29 +3631,29 @@ async function n0(u, e) {
|
|
|
3599
3631
|
reverseMemberApiMap: y.reverseMemberApiMap,
|
|
3600
3632
|
libs: m
|
|
3601
3633
|
};
|
|
3602
|
-
return await
|
|
3634
|
+
return await bu(
|
|
3603
3635
|
b,
|
|
3604
3636
|
async (g) => {
|
|
3605
|
-
await
|
|
3637
|
+
await pu(g, async (x) => {
|
|
3606
3638
|
if (oe(x)) {
|
|
3607
3639
|
const E = await ae(x.value);
|
|
3608
|
-
let
|
|
3640
|
+
let w = Ge(E, v);
|
|
3609
3641
|
const D = Array.from(
|
|
3610
3642
|
p[g.id] || /* @__PURE__ */ new Set()
|
|
3611
3643
|
);
|
|
3612
|
-
for (const
|
|
3613
|
-
|
|
3614
|
-
x.value =
|
|
3644
|
+
for (const $ of D)
|
|
3645
|
+
w = R(w, $, `this.context.${$}`);
|
|
3646
|
+
x.value = w;
|
|
3615
3647
|
}
|
|
3616
3648
|
});
|
|
3617
3649
|
},
|
|
3618
3650
|
async (g) => {
|
|
3619
3651
|
const x = await ae(g.value);
|
|
3620
|
-
g.value =
|
|
3652
|
+
g.value = Ge(x, v);
|
|
3621
3653
|
}
|
|
3622
|
-
), new
|
|
3654
|
+
), new Je(b).toDsl();
|
|
3623
3655
|
}
|
|
3624
|
-
async function
|
|
3656
|
+
async function bu(u, e, t) {
|
|
3625
3657
|
const a = async (h, g) => {
|
|
3626
3658
|
if (await e(h, g), Array.isArray(h?.children))
|
|
3627
3659
|
for (const x of h?.children || [])
|
|
@@ -3667,7 +3699,7 @@ async function lu(u, e, t) {
|
|
|
3667
3699
|
for (const h of u.nodes)
|
|
3668
3700
|
await a(h);
|
|
3669
3701
|
}
|
|
3670
|
-
async function
|
|
3702
|
+
async function pu(u, e) {
|
|
3671
3703
|
const t = async (a) => {
|
|
3672
3704
|
if (!a || typeof a != "object") return;
|
|
3673
3705
|
if (Array.isArray(a)) {
|
|
@@ -3685,7 +3717,7 @@ async function fu(u, e) {
|
|
|
3685
3717
|
};
|
|
3686
3718
|
await t(u);
|
|
3687
3719
|
}
|
|
3688
|
-
function
|
|
3720
|
+
function mu(u = [], e = []) {
|
|
3689
3721
|
const t = {}, a = e.reduce(
|
|
3690
3722
|
(r, n) => (r[n.package] = n.library, r),
|
|
3691
3723
|
{}
|
|
@@ -3705,12 +3737,12 @@ function bu(u = [], e = []) {
|
|
|
3705
3737
|
};
|
|
3706
3738
|
}
|
|
3707
3739
|
export {
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3740
|
+
i0 as AutoFixer,
|
|
3741
|
+
a0 as ComponentValidator,
|
|
3742
|
+
I0 as VTJ_PARSER_VERSION,
|
|
3743
|
+
Re as htmlToNodes,
|
|
3744
|
+
w0 as parseUniApp,
|
|
3745
|
+
A0 as parseVue,
|
|
3746
|
+
ke as patchCode,
|
|
3715
3747
|
R as replacer
|
|
3716
3748
|
};
|