@vtj/parser 0.12.6 → 0.12.8
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 +7 -7
- package/dist/index.mjs +322 -308
- package/package.json +4 -4
- package/types/version.d.ts +2 -2
- package/types/vue/template.d.ts +2 -1
- package/types/vue/utils.d.ts +6 -2
package/dist/index.mjs
CHANGED
@@ -1,37 +1,37 @@
|
|
1
|
-
import { parse as
|
2
|
-
import { parse as
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import { BlockModel as
|
6
|
-
import { tsFormatter as
|
1
|
+
import { parse as Lu, compileTemplate as Du } from "@vue/compiler-sfc";
|
2
|
+
import { parse as Bu } from "@babel/parser";
|
3
|
+
import W from "@babel/traverse";
|
4
|
+
import Q from "@babel/generator";
|
5
|
+
import { BlockModel as Ru } from "@vtj/core";
|
6
|
+
import { tsFormatter as Z } from "@vtj/coder";
|
7
7
|
import { NodeTypes as l } from "@vue/compiler-core";
|
8
|
-
import { upperFirstCamelCase as
|
9
|
-
import
|
8
|
+
import { upperFirstCamelCase as Ou, uid as Vu } from "@vtj/base";
|
9
|
+
import Pu from "postcss";
|
10
10
|
/**!
|
11
11
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
12
12
|
* @name @vtj/parser
|
13
13
|
* @author CHC chenhuachun1549@dingtalk.com
|
14
|
-
* @version 0.12.
|
14
|
+
* @version 0.12.8
|
15
15
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
16
16
|
*/
|
17
|
-
const
|
18
|
-
function
|
19
|
-
const { descriptor: u } =
|
17
|
+
const C0 = "0.12.8";
|
18
|
+
function ru(e) {
|
19
|
+
const { descriptor: u } = Lu(e), t = u.template?.content || "", a = (u.scriptSetup || u.script)?.content || "", i = u.styles.map((c) => c.content);
|
20
20
|
return {
|
21
21
|
template: t,
|
22
22
|
script: a,
|
23
23
|
styles: i
|
24
24
|
};
|
25
25
|
}
|
26
|
-
function
|
27
|
-
return
|
26
|
+
function nu(e) {
|
27
|
+
return Bu(e, { sourceType: "module", plugins: ["typescript"] });
|
28
28
|
}
|
29
|
-
function
|
30
|
-
return (
|
29
|
+
function du(e, u) {
|
30
|
+
return (W.default || W)(e, u);
|
31
31
|
}
|
32
32
|
function R(e) {
|
33
33
|
try {
|
34
|
-
return (
|
34
|
+
return (Q.default || Q)(e, {
|
35
35
|
comments: !1,
|
36
36
|
concise: !0,
|
37
37
|
retainLines: !1,
|
@@ -46,18 +46,18 @@ function R(e) {
|
|
46
46
|
function H(e) {
|
47
47
|
return e && e.type === "JSExpression";
|
48
48
|
}
|
49
|
-
function
|
49
|
+
function Mu(e) {
|
50
50
|
return typeof e == "object" && e && e.type === "JSFunction";
|
51
51
|
}
|
52
52
|
function G(e) {
|
53
|
-
return H(e) ||
|
53
|
+
return H(e) || Mu(e);
|
54
54
|
}
|
55
|
-
function
|
55
|
+
function Uu(e) {
|
56
56
|
return !!e && !H(e) && typeof e != "string";
|
57
57
|
}
|
58
|
-
function
|
59
|
-
const u =
|
60
|
-
return u.styles && (a.css = u.styles[0] || ""),
|
58
|
+
function J0(e) {
|
59
|
+
const u = ru(e), t = nu(u.script), a = {};
|
60
|
+
return u.styles && (a.css = u.styles[0] || ""), du(t, {
|
61
61
|
CallExpression(i) {
|
62
62
|
const c = i.node.callee?.name;
|
63
63
|
if (c) {
|
@@ -72,30 +72,35 @@ function j0(e) {
|
|
72
72
|
}
|
73
73
|
function O(e, u, t) {
|
74
74
|
const a = new RegExp(`${u}`, "g"), i = /(\@\_|\$|\.|\,|\w)$/, c = /^\w/, s = new RegExp(`^this.${u}$`, "g");
|
75
|
-
return e.replace(a, (d,
|
76
|
-
const
|
77
|
-
return i.test(
|
75
|
+
return e.replace(a, (d, f, h) => {
|
76
|
+
const b = h.substring(0, f), S = h.substring(f + u.length);
|
77
|
+
return i.test(b.trim()) || c.test(S.trim()) ? d : t;
|
78
78
|
}).replace(s, t);
|
79
79
|
}
|
80
|
-
function
|
80
|
+
function K(e, u, t) {
|
81
81
|
const {
|
82
82
|
context: a = {},
|
83
83
|
computed: i = [],
|
84
84
|
libs: c = {},
|
85
|
-
members: s = []
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
85
|
+
members: s = [],
|
86
|
+
platform: n
|
87
|
+
} = t || {}, d = Array.from(a[u || ""] || /* @__PURE__ */ new Set());
|
88
|
+
if (d)
|
89
|
+
for (const f of d)
|
90
|
+
e = O(e, f, `this.context.${f}`);
|
91
|
+
for (const f of i)
|
92
|
+
e = O(e, f, `this.${f}.value`);
|
93
|
+
for (const [f, h] of Object.entries(c))
|
94
|
+
e = O(e, f, `this.$libs.${h}.${f}`);
|
95
|
+
for (const f of s)
|
96
|
+
e = O(e, f, `this.${f}`);
|
97
|
+
if (n === "uniapp") {
|
98
|
+
const f = /\buni\./g;
|
99
|
+
e = e.replace(f, "this.$libs.UniH5.uni.");
|
100
|
+
}
|
96
101
|
return e = e.replace(/_ctx\./g, "this."), e;
|
97
102
|
}
|
98
|
-
function
|
103
|
+
function w(e) {
|
99
104
|
return {
|
100
105
|
type: "JSExpression",
|
101
106
|
value: /^\{[\w\W]*\}$/.test(e) ? `(${e})` : e
|
@@ -107,7 +112,7 @@ function C(e) {
|
|
107
112
|
value: e
|
108
113
|
};
|
109
114
|
}
|
110
|
-
const
|
115
|
+
const $u = [
|
111
116
|
"beforeCreate",
|
112
117
|
"created",
|
113
118
|
"beforeMount",
|
@@ -121,24 +126,35 @@ const Pu = [
|
|
121
126
|
"renderTriggered",
|
122
127
|
"activated",
|
123
128
|
"deactivated"
|
124
|
-
],
|
129
|
+
], Fu = "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".split(
|
125
130
|
","
|
126
|
-
),
|
127
|
-
|
128
|
-
|
131
|
+
), ju = "component,slot,template".split(","), Hu = "view,swiper,progress,icon,text,button,checkbox,editor,form,input,label,picker,radio,slider,switch,textarea,audio,camera,image,video,map,canvas".split(
|
132
|
+
","
|
133
|
+
);
|
134
|
+
function Gu(e, u = "web") {
|
135
|
+
return u === "uniapp" && Hu.includes(e);
|
129
136
|
}
|
130
|
-
function
|
137
|
+
function Cu(e, u = "web") {
|
138
|
+
return (Fu.includes(e) || ju.includes(e)) && !Gu(e, u) ? e : Ou(e);
|
139
|
+
}
|
140
|
+
function Ju(e) {
|
131
141
|
return /style lang=\"scss\"/.test(e);
|
132
142
|
}
|
133
|
-
|
143
|
+
function fu(e) {
|
144
|
+
return e.replace(/\s+/g, " ").split(";").reduce((t, a) => {
|
145
|
+
const [i, c] = a.split(":").map((s) => s.trim());
|
146
|
+
return i && c && (t[i] = c), t;
|
147
|
+
}, {});
|
148
|
+
}
|
149
|
+
const Xu = /* @__PURE__ */ new Uint16Array(
|
134
150
|
// prettier-ignore
|
135
151
|
/* @__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((e) => e.charCodeAt(0))
|
136
|
-
),
|
152
|
+
), zu = /* @__PURE__ */ new Uint16Array(
|
137
153
|
// prettier-ignore
|
138
154
|
/* @__PURE__ */ "Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e) => e.charCodeAt(0))
|
139
155
|
);
|
140
156
|
var M;
|
141
|
-
const
|
157
|
+
const Wu = /* @__PURE__ */ new Map([
|
142
158
|
[0, 65533],
|
143
159
|
// C1 Unicode control character reference replacements
|
144
160
|
[128, 8364],
|
@@ -168,22 +184,22 @@ const Gu = /* @__PURE__ */ new Map([
|
|
168
184
|
[156, 339],
|
169
185
|
[158, 382],
|
170
186
|
[159, 376]
|
171
|
-
]),
|
187
|
+
]), Y = (
|
172
188
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, n/no-unsupported-features/es-builtins
|
173
189
|
(M = String.fromCodePoint) !== null && M !== void 0 ? M : function(e) {
|
174
190
|
let u = "";
|
175
191
|
return e > 65535 && (e -= 65536, u += String.fromCharCode(e >>> 10 & 1023 | 55296), e = 56320 | e & 1023), u += String.fromCharCode(e), u;
|
176
192
|
}
|
177
193
|
);
|
178
|
-
function
|
194
|
+
function Qu(e) {
|
179
195
|
var u;
|
180
|
-
return e >= 55296 && e <= 57343 || e > 1114111 ? 65533 : (u =
|
196
|
+
return e >= 55296 && e <= 57343 || e > 1114111 ? 65533 : (u = Wu.get(e)) !== null && u !== void 0 ? u : e;
|
181
197
|
}
|
182
198
|
var y;
|
183
199
|
(function(e) {
|
184
200
|
e[e.NUM = 35] = "NUM", e[e.SEMI = 59] = "SEMI", e[e.EQUALS = 61] = "EQUALS", e[e.ZERO = 48] = "ZERO", e[e.NINE = 57] = "NINE", e[e.LOWER_A = 97] = "LOWER_A", e[e.LOWER_F = 102] = "LOWER_F", e[e.LOWER_X = 120] = "LOWER_X", e[e.LOWER_Z = 122] = "LOWER_Z", e[e.UPPER_A = 65] = "UPPER_A", e[e.UPPER_F = 70] = "UPPER_F", e[e.UPPER_Z = 90] = "UPPER_Z";
|
185
201
|
})(y || (y = {}));
|
186
|
-
const
|
202
|
+
const Zu = 32;
|
187
203
|
var N;
|
188
204
|
(function(e) {
|
189
205
|
e[e.VALUE_LENGTH = 49152] = "VALUE_LENGTH", e[e.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", e[e.JUMP_TABLE = 127] = "JUMP_TABLE";
|
@@ -191,14 +207,14 @@ var N;
|
|
191
207
|
function $(e) {
|
192
208
|
return e >= y.ZERO && e <= y.NINE;
|
193
209
|
}
|
194
|
-
function
|
210
|
+
function Ku(e) {
|
195
211
|
return e >= y.UPPER_A && e <= y.UPPER_F || e >= y.LOWER_A && e <= y.LOWER_F;
|
196
212
|
}
|
197
|
-
function
|
213
|
+
function Yu(e) {
|
198
214
|
return e >= y.UPPER_A && e <= y.UPPER_Z || e >= y.LOWER_A && e <= y.LOWER_Z || $(e);
|
199
215
|
}
|
200
|
-
function
|
201
|
-
return e === y.EQUALS ||
|
216
|
+
function u0(e) {
|
217
|
+
return e === y.EQUALS || Yu(e);
|
202
218
|
}
|
203
219
|
var g;
|
204
220
|
(function(e) {
|
@@ -208,7 +224,7 @@ var A;
|
|
208
224
|
(function(e) {
|
209
225
|
e[e.Legacy = 0] = "Legacy", e[e.Strict = 1] = "Strict", e[e.Attribute = 2] = "Attribute";
|
210
226
|
})(A || (A = {}));
|
211
|
-
class
|
227
|
+
class e0 {
|
212
228
|
constructor(u, t, a) {
|
213
229
|
this.decodeTree = u, this.emitCodePoint = t, this.errors = a, this.state = g.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = A.Strict;
|
214
230
|
}
|
@@ -251,7 +267,7 @@ class Qu {
|
|
251
267
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
252
268
|
*/
|
253
269
|
stateNumericStart(u, t) {
|
254
|
-
return t >= u.length ? -1 : (u.charCodeAt(t) |
|
270
|
+
return t >= u.length ? -1 : (u.charCodeAt(t) | Zu) === y.LOWER_X ? (this.state = g.NumericHex, this.consumed += 1, this.stateNumericHex(u, t + 1)) : (this.state = g.NumericDecimal, this.stateNumericDecimal(u, t));
|
255
271
|
}
|
256
272
|
addToNumericResult(u, t, a, i) {
|
257
273
|
if (t !== a) {
|
@@ -272,7 +288,7 @@ class Qu {
|
|
272
288
|
const a = t;
|
273
289
|
for (; t < u.length; ) {
|
274
290
|
const i = u.charCodeAt(t);
|
275
|
-
if ($(i) ||
|
291
|
+
if ($(i) || Ku(i))
|
276
292
|
t += 1;
|
277
293
|
else
|
278
294
|
return this.addToNumericResult(u, a, t, 16), this.emitNumericEntity(i, 3);
|
@@ -320,7 +336,7 @@ class Qu {
|
|
320
336
|
this.consumed += 1;
|
321
337
|
else if (this.decodeMode === A.Strict)
|
322
338
|
return 0;
|
323
|
-
return this.emitCodePoint(
|
339
|
+
return this.emitCodePoint(Qu(this.result), this.consumed), this.errors && (u !== y.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
324
340
|
}
|
325
341
|
/**
|
326
342
|
* Parses a named entity.
|
@@ -336,11 +352,11 @@ class Qu {
|
|
336
352
|
let i = a[this.treeIndex], c = (i & N.VALUE_LENGTH) >> 14;
|
337
353
|
for (; t < u.length; t++, this.excess++) {
|
338
354
|
const s = u.charCodeAt(t);
|
339
|
-
if (this.treeIndex =
|
355
|
+
if (this.treeIndex = t0(a, i, this.treeIndex + Math.max(1, c), s), this.treeIndex < 0)
|
340
356
|
return this.result === 0 || // If we are parsing an attribute
|
341
357
|
this.decodeMode === A.Attribute && // We shouldn't have consumed any characters after the entity,
|
342
358
|
(c === 0 || // And there should be no invalid characters.
|
343
|
-
|
359
|
+
u0(s)) ? 0 : this.emitNotTerminatedNamedEntity();
|
344
360
|
if (i = a[this.treeIndex], c = (i & N.VALUE_LENGTH) >> 14, c !== 0) {
|
345
361
|
if (s === y.SEMI)
|
346
362
|
return this.emitNamedEntityData(this.treeIndex, c, this.consumed + this.excess);
|
@@ -396,7 +412,7 @@ class Qu {
|
|
396
412
|
}
|
397
413
|
}
|
398
414
|
}
|
399
|
-
function
|
415
|
+
function t0(e, u, t, a) {
|
400
416
|
const i = (u & N.BRANCH_LENGTH) >> 7, c = u & N.JUMP_TABLE;
|
401
417
|
if (i === 0)
|
402
418
|
return c !== 0 && a === c ? t : -1;
|
@@ -406,32 +422,32 @@ function Zu(e, u, t, a) {
|
|
406
422
|
}
|
407
423
|
let s = t, n = s + i - 1;
|
408
424
|
for (; s <= n; ) {
|
409
|
-
const d = s + n >>> 1,
|
410
|
-
if (
|
425
|
+
const d = s + n >>> 1, f = e[d];
|
426
|
+
if (f < a)
|
411
427
|
s = d + 1;
|
412
|
-
else if (
|
428
|
+
else if (f > a)
|
413
429
|
n = d - 1;
|
414
430
|
else
|
415
431
|
return e[d + i];
|
416
432
|
}
|
417
433
|
return -1;
|
418
434
|
}
|
419
|
-
var
|
435
|
+
var o;
|
420
436
|
(function(e) {
|
421
437
|
e[e.Tab = 9] = "Tab", e[e.NewLine = 10] = "NewLine", e[e.FormFeed = 12] = "FormFeed", e[e.CarriageReturn = 13] = "CarriageReturn", e[e.Space = 32] = "Space", e[e.ExclamationMark = 33] = "ExclamationMark", e[e.Number = 35] = "Number", e[e.Amp = 38] = "Amp", e[e.SingleQuote = 39] = "SingleQuote", e[e.DoubleQuote = 34] = "DoubleQuote", e[e.Dash = 45] = "Dash", e[e.Slash = 47] = "Slash", e[e.Zero = 48] = "Zero", e[e.Nine = 57] = "Nine", e[e.Semi = 59] = "Semi", e[e.Lt = 60] = "Lt", e[e.Eq = 61] = "Eq", e[e.Gt = 62] = "Gt", e[e.Questionmark = 63] = "Questionmark", e[e.UpperA = 65] = "UpperA", e[e.LowerA = 97] = "LowerA", e[e.UpperF = 70] = "UpperF", e[e.LowerF = 102] = "LowerF", e[e.UpperZ = 90] = "UpperZ", e[e.LowerZ = 122] = "LowerZ", e[e.LowerX = 120] = "LowerX", e[e.OpeningSquareBracket = 91] = "OpeningSquareBracket";
|
422
|
-
})(
|
438
|
+
})(o || (o = {}));
|
423
439
|
var r;
|
424
440
|
(function(e) {
|
425
441
|
e[e.Text = 1] = "Text", e[e.BeforeTagName = 2] = "BeforeTagName", e[e.InTagName = 3] = "InTagName", e[e.InSelfClosingTag = 4] = "InSelfClosingTag", e[e.BeforeClosingTagName = 5] = "BeforeClosingTagName", e[e.InClosingTagName = 6] = "InClosingTagName", e[e.AfterClosingTagName = 7] = "AfterClosingTagName", e[e.BeforeAttributeName = 8] = "BeforeAttributeName", e[e.InAttributeName = 9] = "InAttributeName", e[e.AfterAttributeName = 10] = "AfterAttributeName", e[e.BeforeAttributeValue = 11] = "BeforeAttributeValue", e[e.InAttributeValueDq = 12] = "InAttributeValueDq", e[e.InAttributeValueSq = 13] = "InAttributeValueSq", e[e.InAttributeValueNq = 14] = "InAttributeValueNq", e[e.BeforeDeclaration = 15] = "BeforeDeclaration", e[e.InDeclaration = 16] = "InDeclaration", e[e.InProcessingInstruction = 17] = "InProcessingInstruction", e[e.BeforeComment = 18] = "BeforeComment", e[e.CDATASequence = 19] = "CDATASequence", e[e.InSpecialComment = 20] = "InSpecialComment", e[e.InCommentLike = 21] = "InCommentLike", e[e.BeforeSpecialS = 22] = "BeforeSpecialS", e[e.BeforeSpecialT = 23] = "BeforeSpecialT", e[e.SpecialStartSequence = 24] = "SpecialStartSequence", e[e.InSpecialTag = 25] = "InSpecialTag", e[e.InEntity = 26] = "InEntity";
|
426
442
|
})(r || (r = {}));
|
427
443
|
function I(e) {
|
428
|
-
return e ===
|
444
|
+
return e === o.Space || e === o.NewLine || e === o.Tab || e === o.FormFeed || e === o.CarriageReturn;
|
429
445
|
}
|
430
446
|
function V(e) {
|
431
|
-
return e ===
|
447
|
+
return e === o.Slash || e === o.Gt || I(e);
|
432
448
|
}
|
433
|
-
function
|
434
|
-
return e >=
|
449
|
+
function a0(e) {
|
450
|
+
return e >= o.LowerA && e <= o.LowerZ || e >= o.UpperA && e <= o.UpperZ;
|
435
451
|
}
|
436
452
|
var T;
|
437
453
|
(function(e) {
|
@@ -466,9 +482,9 @@ const x = {
|
|
466
482
|
XmpEnd: new Uint8Array([60, 47, 120, 109, 112])
|
467
483
|
// `</xmp`
|
468
484
|
};
|
469
|
-
class
|
485
|
+
class i0 {
|
470
486
|
constructor({ xmlMode: u = !1, decodeEntities: t = !0 }, a) {
|
471
|
-
this.cbs = a, this.state = r.Text, this.buffer = "", this.sectionStart = 0, this.index = 0, this.entityStart = 0, this.baseState = r.Text, this.isSpecial = !1, this.running = !0, this.offset = 0, this.currentSequence = void 0, this.sequenceIndex = 0, this.xmlMode = u, this.decodeEntities = t, this.entityDecoder = new
|
487
|
+
this.cbs = a, this.state = r.Text, this.buffer = "", this.sectionStart = 0, this.index = 0, this.entityStart = 0, this.baseState = r.Text, this.isSpecial = !1, this.running = !0, this.offset = 0, this.currentSequence = void 0, this.sequenceIndex = 0, this.xmlMode = u, this.decodeEntities = t, this.entityDecoder = new e0(u ? zu : Xu, (i, c) => this.emitCodePoint(i, c));
|
472
488
|
}
|
473
489
|
reset() {
|
474
490
|
this.state = r.Text, this.buffer = "", this.sectionStart = 0, this.index = 0, this.baseState = r.Text, this.currentSequence = void 0, this.running = !0, this.offset = 0;
|
@@ -486,7 +502,7 @@ class Yu {
|
|
486
502
|
this.running = !0, this.index < this.buffer.length + this.offset && this.parse();
|
487
503
|
}
|
488
504
|
stateText(u) {
|
489
|
-
u ===
|
505
|
+
u === o.Lt || !this.decodeEntities && this.fastForwardTo(o.Lt) ? (this.index > this.sectionStart && this.cbs.ontext(this.sectionStart, this.index), this.state = r.BeforeTagName, this.sectionStart = this.index) : this.decodeEntities && u === o.Amp && this.startEntity();
|
490
506
|
}
|
491
507
|
stateSpecialStartSequence(u) {
|
492
508
|
const t = this.sequenceIndex === this.currentSequence.length;
|
@@ -507,7 +523,7 @@ class Yu {
|
|
507
523
|
/** Look for an end tag. For <title> tags, also decode entities. */
|
508
524
|
stateInSpecialTag(u) {
|
509
525
|
if (this.sequenceIndex === this.currentSequence.length) {
|
510
|
-
if (u ===
|
526
|
+
if (u === o.Gt || I(u)) {
|
511
527
|
const t = this.index - this.currentSequence.length;
|
512
528
|
if (this.sectionStart < t) {
|
513
529
|
const a = this.index;
|
@@ -518,7 +534,7 @@ class Yu {
|
|
518
534
|
}
|
519
535
|
this.sequenceIndex = 0;
|
520
536
|
}
|
521
|
-
(u | 32) === this.currentSequence[this.sequenceIndex] ? this.sequenceIndex += 1 : this.sequenceIndex === 0 ? this.currentSequence === x.TitleEnd ? this.decodeEntities && u ===
|
537
|
+
(u | 32) === this.currentSequence[this.sequenceIndex] ? this.sequenceIndex += 1 : this.sequenceIndex === 0 ? this.currentSequence === x.TitleEnd ? this.decodeEntities && u === o.Amp && this.startEntity() : this.fastForwardTo(o.Lt) && (this.sequenceIndex = 1) : this.sequenceIndex = +(u === o.Lt);
|
522
538
|
}
|
523
539
|
stateCDATASequence(u) {
|
524
540
|
u === x.Cdata[this.sequenceIndex] ? ++this.sequenceIndex === x.Cdata.length && (this.state = r.InCommentLike, this.currentSequence = x.CdataEnd, this.sequenceIndex = 0, this.sectionStart = this.index + 1) : (this.sequenceIndex = 0, this.state = r.InDeclaration, this.stateInDeclaration(u));
|
@@ -553,74 +569,74 @@ class Yu {
|
|
553
569
|
* We allow anything that wouldn't end the tag.
|
554
570
|
*/
|
555
571
|
isTagStartChar(u) {
|
556
|
-
return this.xmlMode ? !V(u) :
|
572
|
+
return this.xmlMode ? !V(u) : a0(u);
|
557
573
|
}
|
558
574
|
startSpecial(u, t) {
|
559
575
|
this.isSpecial = !0, this.currentSequence = u, this.sequenceIndex = t, this.state = r.SpecialStartSequence;
|
560
576
|
}
|
561
577
|
stateBeforeTagName(u) {
|
562
|
-
if (u ===
|
578
|
+
if (u === o.ExclamationMark)
|
563
579
|
this.state = r.BeforeDeclaration, this.sectionStart = this.index + 1;
|
564
|
-
else if (u ===
|
580
|
+
else if (u === o.Questionmark)
|
565
581
|
this.state = r.InProcessingInstruction, this.sectionStart = this.index + 1;
|
566
582
|
else if (this.isTagStartChar(u)) {
|
567
583
|
const t = u | 32;
|
568
584
|
this.sectionStart = this.index, this.xmlMode ? this.state = r.InTagName : t === x.ScriptEnd[2] ? this.state = r.BeforeSpecialS : t === x.TitleEnd[2] || t === x.XmpEnd[2] ? this.state = r.BeforeSpecialT : this.state = r.InTagName;
|
569
|
-
} else u ===
|
585
|
+
} else u === o.Slash ? this.state = r.BeforeClosingTagName : (this.state = r.Text, this.stateText(u));
|
570
586
|
}
|
571
587
|
stateInTagName(u) {
|
572
588
|
V(u) && (this.cbs.onopentagname(this.sectionStart, this.index), this.sectionStart = -1, this.state = r.BeforeAttributeName, this.stateBeforeAttributeName(u));
|
573
589
|
}
|
574
590
|
stateBeforeClosingTagName(u) {
|
575
|
-
I(u) || (u ===
|
591
|
+
I(u) || (u === o.Gt ? this.state = r.Text : (this.state = this.isTagStartChar(u) ? r.InClosingTagName : r.InSpecialComment, this.sectionStart = this.index));
|
576
592
|
}
|
577
593
|
stateInClosingTagName(u) {
|
578
|
-
(u ===
|
594
|
+
(u === o.Gt || I(u)) && (this.cbs.onclosetag(this.sectionStart, this.index), this.sectionStart = -1, this.state = r.AfterClosingTagName, this.stateAfterClosingTagName(u));
|
579
595
|
}
|
580
596
|
stateAfterClosingTagName(u) {
|
581
|
-
(u ===
|
597
|
+
(u === o.Gt || this.fastForwardTo(o.Gt)) && (this.state = r.Text, this.sectionStart = this.index + 1);
|
582
598
|
}
|
583
599
|
stateBeforeAttributeName(u) {
|
584
|
-
u ===
|
600
|
+
u === o.Gt ? (this.cbs.onopentagend(this.index), this.isSpecial ? (this.state = r.InSpecialTag, this.sequenceIndex = 0) : this.state = r.Text, this.sectionStart = this.index + 1) : u === o.Slash ? this.state = r.InSelfClosingTag : I(u) || (this.state = r.InAttributeName, this.sectionStart = this.index);
|
585
601
|
}
|
586
602
|
stateInSelfClosingTag(u) {
|
587
|
-
u ===
|
603
|
+
u === o.Gt ? (this.cbs.onselfclosingtag(this.index), this.state = r.Text, this.sectionStart = this.index + 1, this.isSpecial = !1) : I(u) || (this.state = r.BeforeAttributeName, this.stateBeforeAttributeName(u));
|
588
604
|
}
|
589
605
|
stateInAttributeName(u) {
|
590
|
-
(u ===
|
606
|
+
(u === o.Eq || V(u)) && (this.cbs.onattribname(this.sectionStart, this.index), this.sectionStart = this.index, this.state = r.AfterAttributeName, this.stateAfterAttributeName(u));
|
591
607
|
}
|
592
608
|
stateAfterAttributeName(u) {
|
593
|
-
u ===
|
609
|
+
u === o.Eq ? this.state = r.BeforeAttributeValue : u === o.Slash || u === o.Gt ? (this.cbs.onattribend(T.NoValue, this.sectionStart), this.sectionStart = -1, this.state = r.BeforeAttributeName, this.stateBeforeAttributeName(u)) : I(u) || (this.cbs.onattribend(T.NoValue, this.sectionStart), this.state = r.InAttributeName, this.sectionStart = this.index);
|
594
610
|
}
|
595
611
|
stateBeforeAttributeValue(u) {
|
596
|
-
u ===
|
612
|
+
u === o.DoubleQuote ? (this.state = r.InAttributeValueDq, this.sectionStart = this.index + 1) : u === o.SingleQuote ? (this.state = r.InAttributeValueSq, this.sectionStart = this.index + 1) : I(u) || (this.sectionStart = this.index, this.state = r.InAttributeValueNq, this.stateInAttributeValueNoQuotes(u));
|
597
613
|
}
|
598
614
|
handleInAttributeValue(u, t) {
|
599
|
-
u === t || !this.decodeEntities && this.fastForwardTo(t) ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(t ===
|
615
|
+
u === t || !this.decodeEntities && this.fastForwardTo(t) ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(t === o.DoubleQuote ? T.Double : T.Single, this.index + 1), this.state = r.BeforeAttributeName) : this.decodeEntities && u === o.Amp && this.startEntity();
|
600
616
|
}
|
601
617
|
stateInAttributeValueDoubleQuotes(u) {
|
602
|
-
this.handleInAttributeValue(u,
|
618
|
+
this.handleInAttributeValue(u, o.DoubleQuote);
|
603
619
|
}
|
604
620
|
stateInAttributeValueSingleQuotes(u) {
|
605
|
-
this.handleInAttributeValue(u,
|
621
|
+
this.handleInAttributeValue(u, o.SingleQuote);
|
606
622
|
}
|
607
623
|
stateInAttributeValueNoQuotes(u) {
|
608
|
-
I(u) || u ===
|
624
|
+
I(u) || u === o.Gt ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(T.Unquoted, this.index), this.state = r.BeforeAttributeName, this.stateBeforeAttributeName(u)) : this.decodeEntities && u === o.Amp && this.startEntity();
|
609
625
|
}
|
610
626
|
stateBeforeDeclaration(u) {
|
611
|
-
u ===
|
627
|
+
u === o.OpeningSquareBracket ? (this.state = r.CDATASequence, this.sequenceIndex = 0) : this.state = u === o.Dash ? r.BeforeComment : r.InDeclaration;
|
612
628
|
}
|
613
629
|
stateInDeclaration(u) {
|
614
|
-
(u ===
|
630
|
+
(u === o.Gt || this.fastForwardTo(o.Gt)) && (this.cbs.ondeclaration(this.sectionStart, this.index), this.state = r.Text, this.sectionStart = this.index + 1);
|
615
631
|
}
|
616
632
|
stateInProcessingInstruction(u) {
|
617
|
-
(u ===
|
633
|
+
(u === o.Gt || this.fastForwardTo(o.Gt)) && (this.cbs.onprocessinginstruction(this.sectionStart, this.index), this.state = r.Text, this.sectionStart = this.index + 1);
|
618
634
|
}
|
619
635
|
stateBeforeComment(u) {
|
620
|
-
u ===
|
636
|
+
u === o.Dash ? (this.state = r.InCommentLike, this.currentSequence = x.CommentEnd, this.sequenceIndex = 2, this.sectionStart = this.index + 1) : this.state = r.InDeclaration;
|
621
637
|
}
|
622
638
|
stateInSpecialComment(u) {
|
623
|
-
(u ===
|
639
|
+
(u === o.Gt || this.fastForwardTo(o.Gt)) && (this.cbs.oncomment(this.sectionStart, this.index, 0), this.state = r.Text, this.sectionStart = this.index + 1);
|
624
640
|
}
|
625
641
|
stateBeforeSpecialS(u) {
|
626
642
|
const t = u | 32;
|
@@ -798,7 +814,7 @@ const k = /* @__PURE__ */ new Set([
|
|
798
814
|
"button",
|
799
815
|
"datalist",
|
800
816
|
"textarea"
|
801
|
-
]), m = /* @__PURE__ */ new Set(["p"]),
|
817
|
+
]), m = /* @__PURE__ */ new Set(["p"]), uu = /* @__PURE__ */ new Set(["thead", "tbody"]), eu = /* @__PURE__ */ new Set(["dd", "dt"]), tu = /* @__PURE__ */ new Set(["rt", "rp"]), c0 = /* @__PURE__ */ new Map([
|
802
818
|
["tr", /* @__PURE__ */ new Set(["tr", "th", "td"])],
|
803
819
|
["th", /* @__PURE__ */ new Set(["th"])],
|
804
820
|
["td", /* @__PURE__ */ new Set(["thead", "th", "td"])],
|
@@ -819,8 +835,8 @@ const k = /* @__PURE__ */ new Set([
|
|
819
835
|
["textarea", k],
|
820
836
|
["option", /* @__PURE__ */ new Set(["option"])],
|
821
837
|
["optgroup", /* @__PURE__ */ new Set(["optgroup", "option"])],
|
822
|
-
["dd",
|
823
|
-
["dt",
|
838
|
+
["dd", eu],
|
839
|
+
["dt", eu],
|
824
840
|
["address", m],
|
825
841
|
["article", m],
|
826
842
|
["aside", m],
|
@@ -842,11 +858,11 @@ const k = /* @__PURE__ */ new Set([
|
|
842
858
|
["section", m],
|
843
859
|
["table", m],
|
844
860
|
["ul", m],
|
845
|
-
["rt",
|
846
|
-
["rp",
|
847
|
-
["tbody",
|
848
|
-
["tfoot",
|
849
|
-
]),
|
861
|
+
["rt", tu],
|
862
|
+
["rp", tu],
|
863
|
+
["tbody", uu],
|
864
|
+
["tfoot", uu]
|
865
|
+
]), s0 = /* @__PURE__ */ new Set([
|
850
866
|
"area",
|
851
867
|
"base",
|
852
868
|
"basefont",
|
@@ -866,7 +882,7 @@ const k = /* @__PURE__ */ new Set([
|
|
866
882
|
"source",
|
867
883
|
"track",
|
868
884
|
"wbr"
|
869
|
-
]),
|
885
|
+
]), au = /* @__PURE__ */ new Set(["math", "svg"]), iu = /* @__PURE__ */ new Set([
|
870
886
|
"mi",
|
871
887
|
"mo",
|
872
888
|
"mn",
|
@@ -876,11 +892,11 @@ const k = /* @__PURE__ */ new Set([
|
|
876
892
|
"foreignobject",
|
877
893
|
"desc",
|
878
894
|
"title"
|
879
|
-
]),
|
880
|
-
class
|
895
|
+
]), r0 = /\s|\//;
|
896
|
+
class n0 {
|
881
897
|
constructor(u, t = {}) {
|
882
898
|
var a, i, c, s, n, d;
|
883
|
-
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 = u ?? {}, this.htmlMode = !this.options.xmlMode, this.lowerCaseTagNames = (a = t.lowerCaseTags) !== null && a !== void 0 ? a : this.htmlMode, this.lowerCaseAttributeNames = (i = t.lowerCaseAttributeNames) !== null && i !== void 0 ? i : this.htmlMode, this.recognizeSelfClosing = (c = t.recognizeSelfClosing) !== null && c !== void 0 ? c : !this.htmlMode, this.tokenizer = new ((s = t.Tokenizer) !== null && s !== void 0 ? s :
|
899
|
+
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 = u ?? {}, this.htmlMode = !this.options.xmlMode, this.lowerCaseTagNames = (a = t.lowerCaseTags) !== null && a !== void 0 ? a : this.htmlMode, this.lowerCaseAttributeNames = (i = t.lowerCaseAttributeNames) !== null && i !== void 0 ? i : this.htmlMode, this.recognizeSelfClosing = (c = t.recognizeSelfClosing) !== null && c !== void 0 ? c : !this.htmlMode, this.tokenizer = new ((s = t.Tokenizer) !== null && s !== void 0 ? s : i0)(this.options, this), this.foreignContext = [!this.htmlMode], (d = (n = this.cbs).onparserinit) === null || d === void 0 || d.call(n, this);
|
884
900
|
}
|
885
901
|
// Tokenizer event handlers
|
886
902
|
/** @internal */
|
@@ -892,14 +908,14 @@ class a0 {
|
|
892
908
|
/** @internal */
|
893
909
|
ontextentity(u, t) {
|
894
910
|
var a, i;
|
895
|
-
this.endIndex = t - 1, (i = (a = this.cbs).ontext) === null || i === void 0 || i.call(a,
|
911
|
+
this.endIndex = t - 1, (i = (a = this.cbs).ontext) === null || i === void 0 || i.call(a, Y(u)), this.startIndex = t;
|
896
912
|
}
|
897
913
|
/**
|
898
914
|
* Checks if the current tag is a void element. Override this if you want
|
899
915
|
* to specify your own additional void elements.
|
900
916
|
*/
|
901
917
|
isVoidElement(u) {
|
902
|
-
return this.htmlMode &&
|
918
|
+
return this.htmlMode && s0.has(u);
|
903
919
|
}
|
904
920
|
/** @internal */
|
905
921
|
onopentagname(u, t) {
|
@@ -910,13 +926,13 @@ class a0 {
|
|
910
926
|
emitOpenTag(u) {
|
911
927
|
var t, a, i, c;
|
912
928
|
this.openTagStart = this.startIndex, this.tagname = u;
|
913
|
-
const s = this.htmlMode &&
|
929
|
+
const s = this.htmlMode && c0.get(u);
|
914
930
|
if (s)
|
915
931
|
for (; this.stack.length > 0 && s.has(this.stack[0]); ) {
|
916
932
|
const n = this.stack.shift();
|
917
933
|
(a = (t = this.cbs).onclosetag) === null || a === void 0 || a.call(t, n, !0);
|
918
934
|
}
|
919
|
-
this.isVoidElement(u) || (this.stack.unshift(u), this.htmlMode && (
|
935
|
+
this.isVoidElement(u) || (this.stack.unshift(u), this.htmlMode && (au.has(u) ? this.foreignContext.unshift(!0) : iu.has(u) && this.foreignContext.unshift(!1))), (c = (i = this.cbs).onopentagname) === null || c === void 0 || c.call(i, u), this.cbs.onopentag && (this.attribs = {});
|
920
936
|
}
|
921
937
|
endOpenTag(u) {
|
922
938
|
var t, a;
|
@@ -928,19 +944,19 @@ class a0 {
|
|
928
944
|
}
|
929
945
|
/** @internal */
|
930
946
|
onclosetag(u, t) {
|
931
|
-
var a, i, c, s, n, d,
|
947
|
+
var a, i, c, s, n, d, f, h;
|
932
948
|
this.endIndex = t;
|
933
|
-
let
|
934
|
-
if (this.lowerCaseTagNames && (
|
935
|
-
this.htmlMode &&
|
949
|
+
let b = this.getSlice(u, t);
|
950
|
+
if (this.lowerCaseTagNames && (b = b.toLowerCase()), this.htmlMode && (au.has(b) || iu.has(b)) && this.foreignContext.shift(), this.isVoidElement(b))
|
951
|
+
this.htmlMode && b === "br" && ((s = (c = this.cbs).onopentagname) === null || s === void 0 || s.call(c, "br"), (d = (n = this.cbs).onopentag) === null || d === void 0 || d.call(n, "br", {}, !0), (h = (f = this.cbs).onclosetag) === null || h === void 0 || h.call(f, "br", !1));
|
936
952
|
else {
|
937
|
-
const S = this.stack.indexOf(
|
953
|
+
const S = this.stack.indexOf(b);
|
938
954
|
if (S !== -1)
|
939
955
|
for (let p = 0; p <= S; p++) {
|
940
956
|
const E = this.stack.shift();
|
941
957
|
(i = (a = this.cbs).onclosetag) === null || i === void 0 || i.call(a, E, p !== S);
|
942
958
|
}
|
943
|
-
else this.htmlMode &&
|
959
|
+
else this.htmlMode && b === "p" && (this.emitOpenTag("p"), this.closeCurrentTag(!0));
|
944
960
|
}
|
945
961
|
this.startIndex = t + 1;
|
946
962
|
}
|
@@ -965,7 +981,7 @@ class a0 {
|
|
965
981
|
}
|
966
982
|
/** @internal */
|
967
983
|
onattribentity(u) {
|
968
|
-
this.attribvalue +=
|
984
|
+
this.attribvalue += Y(u);
|
969
985
|
}
|
970
986
|
/** @internal */
|
971
987
|
onattribend(u, t) {
|
@@ -973,7 +989,7 @@ class a0 {
|
|
973
989
|
this.endIndex = t, (i = (a = this.cbs).onattribute) === null || i === void 0 || i.call(a, this.attribname, this.attribvalue, u === T.Double ? '"' : u === T.Single ? "'" : u === T.NoValue ? void 0 : null), this.attribs && !Object.prototype.hasOwnProperty.call(this.attribs, this.attribname) && (this.attribs[this.attribname] = this.attribvalue), this.attribvalue = "";
|
974
990
|
}
|
975
991
|
getInstructionName(u) {
|
976
|
-
const t = u.search(
|
992
|
+
const t = u.search(r0);
|
977
993
|
let a = t < 0 ? u : u.substr(0, t);
|
978
994
|
return this.lowerCaseTagNames && (a = a.toLowerCase()), a;
|
979
995
|
}
|
@@ -1004,10 +1020,10 @@ class a0 {
|
|
1004
1020
|
}
|
1005
1021
|
/** @internal */
|
1006
1022
|
oncdata(u, t, a) {
|
1007
|
-
var i, c, s, n, d,
|
1023
|
+
var i, c, s, n, d, f, h, b, S, p;
|
1008
1024
|
this.endIndex = t;
|
1009
1025
|
const E = this.getSlice(u, t - a);
|
1010
|
-
!this.htmlMode || this.options.recognizeCDATA ? ((c = (i = this.cbs).oncdatastart) === null || c === void 0 || c.call(i), (n = (s = this.cbs).ontext) === null || n === void 0 || n.call(s, E), (
|
1026
|
+
!this.htmlMode || this.options.recognizeCDATA ? ((c = (i = this.cbs).oncdatastart) === null || c === void 0 || c.call(i), (n = (s = this.cbs).ontext) === null || n === void 0 || n.call(s, E), (f = (d = this.cbs).oncdataend) === null || f === void 0 || f.call(d)) : ((b = (h = this.cbs).oncomment) === null || b === void 0 || b.call(h, `[CDATA[${E}]]`), (p = (S = this.cbs).oncommentend) === null || p === void 0 || p.call(S)), this.startIndex = t + 1;
|
1011
1027
|
}
|
1012
1028
|
/** @internal */
|
1013
1029
|
onend() {
|
@@ -1105,10 +1121,10 @@ class a0 {
|
|
1105
1121
|
this.end(u);
|
1106
1122
|
}
|
1107
1123
|
}
|
1108
|
-
function
|
1124
|
+
function cu(e) {
|
1109
1125
|
const u = { name: "", children: [] }, t = [u];
|
1110
1126
|
let a = "";
|
1111
|
-
const i = new
|
1127
|
+
const i = new n0(
|
1112
1128
|
{
|
1113
1129
|
onopentag: (c, s, n) => {
|
1114
1130
|
const d = t[t.length - 1];
|
@@ -1116,23 +1132,25 @@ function iu(e) {
|
|
1116
1132
|
name: "text",
|
1117
1133
|
children: a.trim()
|
1118
1134
|
}) : d.children = a.trim(), a = "");
|
1119
|
-
const
|
1120
|
-
(
|
1135
|
+
const f = Object.entries(s || {}).reduce(
|
1136
|
+
(b, S) => {
|
1121
1137
|
let [p = "", E = ""] = S;
|
1122
|
-
return p = p.replace(/\\\"/g, ""), E = E.replace(/\\\"/g, ""), p && (
|
1138
|
+
return p = p.replace(/\\\"/g, ""), E = E.replace(/\\\"/g, ""), p && (b[p] = E), b;
|
1123
1139
|
},
|
1124
1140
|
{}
|
1125
|
-
)
|
1141
|
+
);
|
1142
|
+
f.style && (f.style = fu(f.style));
|
1143
|
+
const h = {
|
1126
1144
|
name: c,
|
1127
|
-
props:
|
1145
|
+
props: f
|
1128
1146
|
};
|
1129
|
-
Array.isArray(d.children) ? d.children.push(h) : d.children = [
|
1147
|
+
Array.isArray(d.children) ? d.children.push(h) : d.children ? d.children = [
|
1130
1148
|
{
|
1131
1149
|
name: "span",
|
1132
1150
|
children: d.children
|
1133
1151
|
},
|
1134
1152
|
h
|
1135
|
-
], n || t.push(h);
|
1153
|
+
] : d.children = [h], n || t.push(h);
|
1136
1154
|
},
|
1137
1155
|
ontext: (c) => {
|
1138
1156
|
const s = c.trim();
|
@@ -1150,10 +1168,10 @@ function iu(e) {
|
|
1150
1168
|
);
|
1151
1169
|
return i.write(e), i.end(), u.children || [];
|
1152
1170
|
}
|
1153
|
-
let F = [], P = {},
|
1154
|
-
function
|
1155
|
-
return F = [], P = {},
|
1156
|
-
nodes: (
|
1171
|
+
let F = [], P = {}, ou = {}, bu = {}, lu = "web";
|
1172
|
+
function d0(e, u, t = "", a) {
|
1173
|
+
return F = [], P = {}, ou = a?.handlers || {}, bu = a?.styles || {}, lu = a?.platform || "web", {
|
1174
|
+
nodes: (Du({
|
1157
1175
|
id: e,
|
1158
1176
|
filename: u,
|
1159
1177
|
source: t,
|
@@ -1164,7 +1182,7 @@ function i0(e, u, t = "", a) {
|
|
1164
1182
|
context: P
|
1165
1183
|
};
|
1166
1184
|
}
|
1167
|
-
function
|
1185
|
+
function f0(e) {
|
1168
1186
|
if (e.name === "slot") {
|
1169
1187
|
let u = "default";
|
1170
1188
|
const t = [];
|
@@ -1176,43 +1194,37 @@ function c0(e) {
|
|
1176
1194
|
});
|
1177
1195
|
}
|
1178
1196
|
}
|
1179
|
-
function
|
1180
|
-
return e.replace(/\s+/g, " ").split(";").reduce((t, a) => {
|
1181
|
-
const [i, c] = a.split(":").map((s) => s.trim());
|
1182
|
-
return i && c && (t[i] = c), t;
|
1183
|
-
}, {});
|
1184
|
-
}
|
1185
|
-
function r0(e) {
|
1197
|
+
function o0(e) {
|
1186
1198
|
const u = {};
|
1187
1199
|
for (const t of e) {
|
1188
1200
|
if (t.type === l.ATTRIBUTE)
|
1189
1201
|
if (t.name === "class") {
|
1190
|
-
const a = t.value?.content || "", i = /[\w]+_[\w]{5,}/, c = a.match(i)?.[0] || "", s = a.split(" ").filter((d) => d !== c), n =
|
1202
|
+
const a = t.value?.content || "", i = /[\w]+_[\w]{5,}/, c = a.match(i)?.[0] || "", s = a.split(" ").filter((d) => d !== c), n = bu[`.${c}`];
|
1191
1203
|
n && (u.style = n), s.length && (u.class = s.join(" "));
|
1192
1204
|
} else if (t.name === "style") {
|
1193
1205
|
const a = t.value?.content || "";
|
1194
|
-
a && (u.style =
|
1206
|
+
a && (u.style = fu(a));
|
1195
1207
|
} else
|
1196
1208
|
u[t.name] = t.value?.content || "";
|
1197
|
-
t.type === l.DIRECTIVE && t.name === "bind" && (t.exp?.type === l.SIMPLE_EXPRESSION && t.arg?.type === l.SIMPLE_EXPRESSION && (u[t.arg.content] =
|
1209
|
+
t.type === l.DIRECTIVE && t.name === "bind" && (t.exp?.type === l.SIMPLE_EXPRESSION && t.arg?.type === l.SIMPLE_EXPRESSION && (u[t.arg.content] = w(`(${t.exp.content})`)), t.exp?.type === l.COMPOUND_EXPRESSION && t.arg?.type === l.SIMPLE_EXPRESSION && (u[t.arg.content] = w(`(${t.exp.loc.source})`)));
|
1198
1210
|
}
|
1199
1211
|
return u;
|
1200
1212
|
}
|
1201
|
-
function
|
1213
|
+
function b0(e, u = {}) {
|
1202
1214
|
const t = {};
|
1203
1215
|
for (const a of e)
|
1204
1216
|
if (a.type === l.DIRECTIVE && a.name === "on" && a.arg?.type === l.SIMPLE_EXPRESSION) {
|
1205
1217
|
const i = a.modifiers.reduce(
|
1206
|
-
(h,
|
1218
|
+
(h, b) => (h[b.content] = !0, h),
|
1207
1219
|
{}
|
1208
1220
|
);
|
1209
1221
|
let c = a.exp?.loc.source || "";
|
1210
1222
|
/\)$/.test(c) && (c = `($event) => ${c}`);
|
1211
|
-
const n = new RegExp(`${a.arg.content}_[\\w]{5,}`), d = c.match(n)?.[0] || "",
|
1212
|
-
if (d &&
|
1223
|
+
const n = new RegExp(`${a.arg.content}_[\\w]{5,}`), d = c.match(n)?.[0] || "", f = u[d];
|
1224
|
+
if (d && f)
|
1213
1225
|
t[a.arg.content] = {
|
1214
1226
|
name: a.arg.content,
|
1215
|
-
handler:
|
1227
|
+
handler: f,
|
1216
1228
|
modifiers: i
|
1217
1229
|
};
|
1218
1230
|
else {
|
@@ -1226,18 +1238,18 @@ function n0(e, u = {}) {
|
|
1226
1238
|
}
|
1227
1239
|
return t;
|
1228
1240
|
}
|
1229
|
-
function
|
1241
|
+
function l0(e) {
|
1230
1242
|
const u = [];
|
1231
1243
|
if (e.type === l.IF) {
|
1232
1244
|
const t = e.codegenNode?.test;
|
1233
1245
|
t && u.push({
|
1234
1246
|
name: "vIf",
|
1235
|
-
value:
|
1247
|
+
value: w(t.loc.source)
|
1236
1248
|
});
|
1237
1249
|
}
|
1238
1250
|
if (e.type === l.FOR && u.push({
|
1239
1251
|
name: "vFor",
|
1240
|
-
value:
|
1252
|
+
value: w(e.source.loc.source),
|
1241
1253
|
iterator: {
|
1242
1254
|
item: e.valueAlias?.loc.source || "item",
|
1243
1255
|
index: e.keyAlias?.loc.source || "index"
|
@@ -1250,28 +1262,28 @@ function d0(e) {
|
|
1250
1262
|
u.push({
|
1251
1263
|
name: "vModel",
|
1252
1264
|
arg: n.arg?.content,
|
1253
|
-
value:
|
1265
|
+
value: w(n.exp?.loc.source || "")
|
1254
1266
|
});
|
1255
1267
|
});
|
1256
1268
|
const i = t.find((n) => n.name === "show");
|
1257
1269
|
i && u.push({
|
1258
1270
|
name: "vShow",
|
1259
|
-
value:
|
1271
|
+
value: w(i.exp?.loc.source || "")
|
1260
1272
|
});
|
1261
1273
|
const c = t.find((n) => n.name === "bind" && !n.arg);
|
1262
1274
|
c && u.push({
|
1263
1275
|
name: "vBind",
|
1264
|
-
value:
|
1276
|
+
value: w(c.exp?.loc.source || "")
|
1265
1277
|
});
|
1266
1278
|
const s = t.find((n) => n.name === "html");
|
1267
1279
|
s && u.push({
|
1268
1280
|
name: "vHtml",
|
1269
|
-
value:
|
1281
|
+
value: w(s.exp?.loc.source || "")
|
1270
1282
|
});
|
1271
1283
|
}
|
1272
1284
|
return u;
|
1273
1285
|
}
|
1274
|
-
function
|
1286
|
+
function hu(e) {
|
1275
1287
|
let u = "";
|
1276
1288
|
const { name: t, props: a, events: i = {} } = e, c = a?.class || "";
|
1277
1289
|
if (typeof c == "string") {
|
@@ -1279,10 +1291,10 @@ function ou(e) {
|
|
1279
1291
|
n && n[1] && (u = n[1]);
|
1280
1292
|
}
|
1281
1293
|
for (const { name: s, handler: n } of Object.values(i)) {
|
1282
|
-
const d = new RegExp(`${s}_([\\w]+)`),
|
1283
|
-
|
1294
|
+
const d = new RegExp(`${s}_([\\w]+)`), f = n.value.match(d);
|
1295
|
+
f && f[1] && (u = f[1]);
|
1284
1296
|
}
|
1285
|
-
return u ||
|
1297
|
+
return u || Vu();
|
1286
1298
|
}
|
1287
1299
|
function j(e, u) {
|
1288
1300
|
const t = new Set(u?.id ? P[u.id] : []), a = (e.directives || []).find((s) => s.name === "vFor");
|
@@ -1300,14 +1312,14 @@ function j(e, u) {
|
|
1300
1312
|
}
|
1301
1313
|
function U(e, u, t) {
|
1302
1314
|
const a = {
|
1303
|
-
name:
|
1304
|
-
props:
|
1305
|
-
events:
|
1306
|
-
directives:
|
1315
|
+
name: Cu(e.tag, lu),
|
1316
|
+
props: o0(e.props),
|
1317
|
+
events: b0(e.props, ou),
|
1318
|
+
directives: l0(t || e)
|
1307
1319
|
};
|
1308
|
-
a.id =
|
1309
|
-
const i =
|
1310
|
-
return j(a, u),
|
1320
|
+
a.id = hu(a), j(a, u);
|
1321
|
+
const i = m0(a, e.children);
|
1322
|
+
return j(a, u), f0(i), i;
|
1311
1323
|
}
|
1312
1324
|
function D(e, u) {
|
1313
1325
|
if (e.type === l.ELEMENT)
|
@@ -1322,29 +1334,29 @@ function D(e, u) {
|
|
1322
1334
|
if (t.type === l.ELEMENT)
|
1323
1335
|
return U(t, u, e);
|
1324
1336
|
}
|
1325
|
-
return e.type === l.TEXT_CALL ? e.content.type == l.TEXT ? e.content.content : e.content.type === l.INTERPOLATION ?
|
1337
|
+
return e.type === l.TEXT_CALL ? e.content.type == l.TEXT ? e.content.content : e.content.type === l.INTERPOLATION ? w(e.content.content.loc.source) : "" : e.type === l.TEXT ? e.content : e.type === l.INTERPOLATION && (e.content.type === l.SIMPLE_EXPRESSION || e.content.type === l.COMPOUND_EXPRESSION) ? w(e.content.loc.source) : e.type === l.COMPOUND_EXPRESSION ? h0(
|
1326
1338
|
e.children
|
1327
|
-
) : (console.warn("未处理", e.type), null);
|
1339
|
+
) : (e.type === l.COMMENT || console.warn("未处理", e.type), null);
|
1328
1340
|
}
|
1329
|
-
function
|
1341
|
+
function h0(e = []) {
|
1330
1342
|
const u = e.filter((a) => typeof a != "string"), t = [];
|
1331
1343
|
for (const a of u)
|
1332
1344
|
t.push({
|
1333
1345
|
name: "span",
|
1334
|
-
children: a.type === l.TEXT ? a.loc.source :
|
1346
|
+
children: a.type === l.TEXT ? a.loc.source : w(a.content?.loc.source)
|
1335
1347
|
});
|
1336
1348
|
return {
|
1337
1349
|
name: "span",
|
1338
1350
|
children: t
|
1339
1351
|
};
|
1340
1352
|
}
|
1341
|
-
function
|
1353
|
+
function m0(e, u = []) {
|
1342
1354
|
const t = [];
|
1343
1355
|
for (const a of u)
|
1344
1356
|
if (a.type === l.ELEMENT && a.codegenNode?.value?.arguments) {
|
1345
1357
|
const i = a.codegenNode.value.arguments[0];
|
1346
1358
|
if (i) {
|
1347
|
-
const c =
|
1359
|
+
const c = cu(i);
|
1348
1360
|
t.push(...c);
|
1349
1361
|
}
|
1350
1362
|
} else if (a.type === l.ELEMENT && a.tag === "template") {
|
@@ -1354,7 +1366,7 @@ function o0(e, u = []) {
|
|
1354
1366
|
name: "span",
|
1355
1367
|
children: D(c, e)
|
1356
1368
|
} : D(c, e);
|
1357
|
-
s && (
|
1369
|
+
s && (Uu(s) && i?.type === l.DIRECTIVE && (s.id = hu(s), s.slot = {
|
1358
1370
|
name: i.arg?.content || "default",
|
1359
1371
|
params: i.exp?.identifiers || []
|
1360
1372
|
}, j(s, e)), t.push(s));
|
@@ -1362,7 +1374,7 @@ function o0(e, u = []) {
|
|
1362
1374
|
} else if (a.type === l.JS_CALL_EXPRESSION) {
|
1363
1375
|
const i = a.arguments?.[0];
|
1364
1376
|
if (i) {
|
1365
|
-
const c =
|
1377
|
+
const c = cu(i);
|
1366
1378
|
t.push(...c);
|
1367
1379
|
}
|
1368
1380
|
} else if (a.type === l.TEXT_CALL) {
|
@@ -1379,67 +1391,67 @@ function o0(e, u = []) {
|
|
1379
1391
|
e.children = t.map((a) => typeof a == "string" ? { name: "span", children: a } : a);
|
1380
1392
|
return e;
|
1381
1393
|
}
|
1382
|
-
function
|
1394
|
+
function p0(e, u) {
|
1383
1395
|
const a = {
|
1384
|
-
imports:
|
1396
|
+
imports: x0(e),
|
1385
1397
|
emits: [],
|
1386
1398
|
errors: []
|
1387
|
-
}, i =
|
1388
|
-
return
|
1399
|
+
}, i = nu(e);
|
1400
|
+
return du(i, {
|
1389
1401
|
ExportDefaultDeclaration(c) {
|
1390
1402
|
const s = c.node.declaration;
|
1391
1403
|
if (s.type !== "CallExpression") return;
|
1392
1404
|
const n = s.arguments[0];
|
1393
1405
|
if (n?.type !== "ObjectExpression") return;
|
1394
1406
|
const d = n.properties.filter(
|
1395
|
-
(
|
1396
|
-
),
|
1397
|
-
(
|
1407
|
+
(b) => b.type === "ObjectProperty"
|
1408
|
+
), f = n.properties.filter(
|
1409
|
+
(b) => b.type == "ObjectMethod"
|
1398
1410
|
), h = d.find(
|
1399
|
-
(
|
1411
|
+
(b) => b.key.name === "computed"
|
1400
1412
|
);
|
1401
|
-
h && (a.computed =
|
1402
|
-
for (const
|
1403
|
-
switch (
|
1413
|
+
h && (a.computed = mu(h.value), a.watchers = v0(h.value));
|
1414
|
+
for (const b of d)
|
1415
|
+
switch (b.key.name) {
|
1404
1416
|
case "name":
|
1405
|
-
a.name =
|
1417
|
+
a.name = b.value.value;
|
1406
1418
|
break;
|
1407
1419
|
case "methods":
|
1408
|
-
a.handlers =
|
1409
|
-
|
1420
|
+
a.handlers = w0(b.value), a.methods = E0(b.value), a.dataSources = S0(
|
1421
|
+
b.value,
|
1410
1422
|
u
|
1411
1423
|
);
|
1412
1424
|
break;
|
1413
1425
|
case "watch":
|
1414
|
-
a.watch =
|
1415
|
-
|
1426
|
+
a.watch = A0(
|
1427
|
+
b.value,
|
1416
1428
|
a.watchers
|
1417
1429
|
);
|
1418
1430
|
break;
|
1419
1431
|
case "props":
|
1420
|
-
a.props =
|
1432
|
+
a.props = N0(b.value);
|
1421
1433
|
break;
|
1422
1434
|
case "inject":
|
1423
|
-
a.inject =
|
1435
|
+
a.inject = k0(b.value);
|
1424
1436
|
break;
|
1425
1437
|
}
|
1426
|
-
for (const
|
1427
|
-
switch (
|
1438
|
+
for (const b of f)
|
1439
|
+
switch (b.key.name) {
|
1428
1440
|
case "setup":
|
1429
|
-
a.state =
|
1441
|
+
a.state = y0(b.body);
|
1430
1442
|
break;
|
1431
1443
|
}
|
1432
|
-
a.lifeCycles =
|
1444
|
+
a.lifeCycles = T0(f);
|
1433
1445
|
},
|
1434
1446
|
CallExpression(c) {
|
1435
|
-
const s =
|
1447
|
+
const s = q0(c.node);
|
1436
1448
|
if (s.length)
|
1437
1449
|
for (let n of s)
|
1438
|
-
a.emits?.find((
|
1450
|
+
a.emits?.find((f) => f.name === n.name) || a.emits?.push(n);
|
1439
1451
|
}
|
1440
1452
|
}), a;
|
1441
1453
|
}
|
1442
|
-
function
|
1454
|
+
function x0(e) {
|
1443
1455
|
const u = /import\s+{(.+?)}\s+from\s+['"](.+?)['"]/g, t = [];
|
1444
1456
|
let a;
|
1445
1457
|
for (; (a = u.exec(e)) !== null; ) {
|
@@ -1451,7 +1463,7 @@ function l0(e) {
|
|
1451
1463
|
}
|
1452
1464
|
return t;
|
1453
1465
|
}
|
1454
|
-
function
|
1466
|
+
function g0(e) {
|
1455
1467
|
for (const u of e.body)
|
1456
1468
|
if (u.type === "VariableDeclaration" && u.kind == "const") {
|
1457
1469
|
const { id: t, init: a } = u.declarations[0];
|
@@ -1460,15 +1472,15 @@ function h0(e) {
|
|
1460
1472
|
}
|
1461
1473
|
return null;
|
1462
1474
|
}
|
1463
|
-
function
|
1464
|
-
const u =
|
1475
|
+
function y0(e) {
|
1476
|
+
const u = g0(e);
|
1465
1477
|
if (!u) return {};
|
1466
1478
|
const t = {};
|
1467
1479
|
for (const a of u.properties) {
|
1468
1480
|
const { key: i, value: c } = a;
|
1469
1481
|
if (i.type === "Identifier") {
|
1470
1482
|
const s = R(c);
|
1471
|
-
t[i.name] =
|
1483
|
+
t[i.name] = w(s);
|
1472
1484
|
}
|
1473
1485
|
}
|
1474
1486
|
return t;
|
@@ -1476,15 +1488,15 @@ function m0(e) {
|
|
1476
1488
|
function q(e) {
|
1477
1489
|
const { key: u, async: t, params: a, body: i } = e, c = a.map((s) => s.type === "ObjectPattern" ? `{${s.properties.map((d) => d.key?.name || d.name).join(",")}}` : s.name).join(", ");
|
1478
1490
|
if (u.type === "Identifier") {
|
1479
|
-
const s = u.name, n = R(i),
|
1491
|
+
const s = u.name, n = R(i), f = `${t ? "async " : ""}(${c}) => ${n}`, h = s.startsWith("watcher_");
|
1480
1492
|
return {
|
1481
1493
|
name: s,
|
1482
1494
|
watcher: h,
|
1483
|
-
exp: C(
|
1495
|
+
exp: C(f)
|
1484
1496
|
};
|
1485
1497
|
}
|
1486
1498
|
}
|
1487
|
-
function
|
1499
|
+
function mu(e) {
|
1488
1500
|
if (!e) return {};
|
1489
1501
|
const u = {};
|
1490
1502
|
for (const t of e.properties) {
|
@@ -1493,7 +1505,7 @@ function bu(e) {
|
|
1493
1505
|
}
|
1494
1506
|
return u;
|
1495
1507
|
}
|
1496
|
-
function
|
1508
|
+
function S0(e, u) {
|
1497
1509
|
if (!e) return {};
|
1498
1510
|
const t = {}, a = /apis\[\'([\w]*)\'\]/, i = /\.then\(([\w\W]*)\)/;
|
1499
1511
|
for (const c of e.properties) {
|
@@ -1501,12 +1513,12 @@ function p0(e, u) {
|
|
1501
1513
|
if (s && s.exp.value.includes("provider.apis")) {
|
1502
1514
|
const d = (s.exp.value.match(a) || [])[1];
|
1503
1515
|
if (!d) continue;
|
1504
|
-
const
|
1505
|
-
if (!
|
1516
|
+
const f = _0(u, d);
|
1517
|
+
if (!f) continue;
|
1506
1518
|
const h = s.exp.value.match(i)?.[1];
|
1507
1519
|
t[s.name] = {
|
1508
1520
|
ref: d,
|
1509
|
-
name:
|
1521
|
+
name: f.name,
|
1510
1522
|
test: {
|
1511
1523
|
type: "JSFunction",
|
1512
1524
|
value: `() => this.runApi({
|
@@ -1514,26 +1526,26 @@ function p0(e, u) {
|
|
1514
1526
|
})`
|
1515
1527
|
},
|
1516
1528
|
type: "api",
|
1517
|
-
label:
|
1529
|
+
label: f.label,
|
1518
1530
|
transform: {
|
1519
1531
|
type: "JSFunction",
|
1520
1532
|
value: h || `(res) => {
|
1521
1533
|
return res;
|
1522
1534
|
}`
|
1523
1535
|
},
|
1524
|
-
mockTemplate:
|
1536
|
+
mockTemplate: f.mockTemplate
|
1525
1537
|
};
|
1526
1538
|
}
|
1527
1539
|
}
|
1528
1540
|
return t;
|
1529
1541
|
}
|
1530
|
-
function
|
1531
|
-
const u =
|
1542
|
+
function E0(e) {
|
1543
|
+
const u = mu(e), t = /\_([\w]{5,})$/, a = {};
|
1532
1544
|
for (const i of Object.keys(u))
|
1533
1545
|
t.test(i) || (a[i] = u[i]);
|
1534
1546
|
return a;
|
1535
1547
|
}
|
1536
|
-
function
|
1548
|
+
function w0(e) {
|
1537
1549
|
if (!e) return {};
|
1538
1550
|
const u = {}, t = /\_([\w]{5,})$/;
|
1539
1551
|
for (const a of e.properties) {
|
@@ -1553,7 +1565,7 @@ function g0(e) {
|
|
1553
1565
|
}
|
1554
1566
|
return u;
|
1555
1567
|
}
|
1556
|
-
function
|
1568
|
+
function v0(e) {
|
1557
1569
|
if (!e) return {};
|
1558
1570
|
const u = {};
|
1559
1571
|
for (const t of e.properties) {
|
@@ -1563,21 +1575,21 @@ function y0(e) {
|
|
1563
1575
|
return u;
|
1564
1576
|
}
|
1565
1577
|
function B(e, u) {
|
1566
|
-
return !!
|
1578
|
+
return !!pu(e, u);
|
1567
1579
|
}
|
1568
|
-
function
|
1580
|
+
function pu(e, u) {
|
1569
1581
|
return e.find(
|
1570
1582
|
(a) => a.key?.name === u
|
1571
1583
|
)?.value?.value;
|
1572
1584
|
}
|
1573
|
-
function
|
1585
|
+
function su(e, u) {
|
1574
1586
|
const t = e.find(
|
1575
1587
|
(a) => a.key?.name === u
|
1576
1588
|
);
|
1577
1589
|
if (t)
|
1578
1590
|
return q(t)?.exp;
|
1579
1591
|
}
|
1580
|
-
function
|
1592
|
+
function A0(e, u = {}) {
|
1581
1593
|
const t = [];
|
1582
1594
|
for (const a of e.properties) {
|
1583
1595
|
const { key: i, value: c } = a, s = i.value || i.name || "";
|
@@ -1587,7 +1599,7 @@ function S0(e, u = {}) {
|
|
1587
1599
|
source: u[s],
|
1588
1600
|
deep: B(n, "deep"),
|
1589
1601
|
immediate: B(n, "immediate"),
|
1590
|
-
handler:
|
1602
|
+
handler: su(n, "handler")
|
1591
1603
|
});
|
1592
1604
|
} else if (a.type === "ObjectMethod" && t.push({
|
1593
1605
|
// todo: 处理上下文
|
@@ -1608,38 +1620,38 @@ function S0(e, u = {}) {
|
|
1608
1620
|
},
|
1609
1621
|
deep: B(n, "deep"),
|
1610
1622
|
immediate: B(n, "immediate"),
|
1611
|
-
handler:
|
1623
|
+
handler: su(n, "handler")
|
1612
1624
|
});
|
1613
1625
|
}
|
1614
1626
|
}
|
1615
1627
|
return t;
|
1616
1628
|
}
|
1617
|
-
function
|
1629
|
+
function T0(e) {
|
1618
1630
|
const u = {};
|
1619
1631
|
for (const t of e) {
|
1620
1632
|
const a = t.key.name;
|
1621
|
-
if (
|
1633
|
+
if ($u.includes(a)) {
|
1622
1634
|
const i = q(t);
|
1623
1635
|
i && (u[i.name] = i.exp);
|
1624
1636
|
}
|
1625
1637
|
}
|
1626
1638
|
return u;
|
1627
1639
|
}
|
1628
|
-
function
|
1640
|
+
function I0(e) {
|
1629
1641
|
const u = e.find(
|
1630
1642
|
(t) => t.key?.name === "type"
|
1631
1643
|
);
|
1632
1644
|
if (u)
|
1633
1645
|
return u.value.type === "ArrayExpression" ? u.value.elements.map((t) => t.name) : u.value.name;
|
1634
1646
|
}
|
1635
|
-
function
|
1647
|
+
function xu(e) {
|
1636
1648
|
const u = e.find(
|
1637
1649
|
(t) => t.key?.name === "default"
|
1638
1650
|
);
|
1639
1651
|
if (u)
|
1640
|
-
return
|
1652
|
+
return w(R(u.value));
|
1641
1653
|
}
|
1642
|
-
function
|
1654
|
+
function N0(e) {
|
1643
1655
|
if (!e) return [];
|
1644
1656
|
let u = [];
|
1645
1657
|
return e.type === "ArrayExpression" ? u = e.elements.map((t) => t.value) : e.type === "ObjectExpression" && (u = e.properties.map((t) => {
|
@@ -1647,12 +1659,12 @@ function w0(e) {
|
|
1647
1659
|
return {
|
1648
1660
|
name: a.name,
|
1649
1661
|
required: B(c, "required"),
|
1650
|
-
type:
|
1651
|
-
default:
|
1662
|
+
type: I0(c),
|
1663
|
+
default: xu(c)
|
1652
1664
|
};
|
1653
1665
|
})), u;
|
1654
1666
|
}
|
1655
|
-
function
|
1667
|
+
function q0(e) {
|
1656
1668
|
const u = [];
|
1657
1669
|
if (e.callee.type === "MemberExpression" && e.callee.property?.name === "$emit") {
|
1658
1670
|
const [a, ...i] = (e.arguments || []).map(
|
@@ -1665,10 +1677,10 @@ function A0(e) {
|
|
1665
1677
|
}
|
1666
1678
|
return u;
|
1667
1679
|
}
|
1668
|
-
function
|
1680
|
+
function k0(e) {
|
1669
1681
|
let u = [];
|
1670
1682
|
return e.type === "ObjectExpression" && (u = e.properties.map((t) => {
|
1671
|
-
const { key: a, value: i } = t, c = i.properties, s = a.name, n =
|
1683
|
+
const { key: a, value: i } = t, c = i.properties, s = a.name, n = pu(c, "from"), d = xu(c);
|
1672
1684
|
return {
|
1673
1685
|
name: s,
|
1674
1686
|
from: n || s,
|
@@ -1676,13 +1688,13 @@ function T0(e) {
|
|
1676
1688
|
};
|
1677
1689
|
})), u;
|
1678
1690
|
}
|
1679
|
-
function
|
1691
|
+
function _0(e, u) {
|
1680
1692
|
return (e.apis || []).find((t) => t.id === u);
|
1681
1693
|
}
|
1682
|
-
function
|
1694
|
+
function L0(e) {
|
1683
1695
|
const u = [], t = {}, a = [];
|
1684
1696
|
try {
|
1685
|
-
const i =
|
1697
|
+
const i = Pu.parse(e), c = /^.[\w]+_[\w]{5,}/;
|
1686
1698
|
for (const s of i.nodes)
|
1687
1699
|
if (s.type === "rule") {
|
1688
1700
|
const n = {};
|
@@ -1701,46 +1713,47 @@ function N0(e) {
|
|
1701
1713
|
`)
|
1702
1714
|
};
|
1703
1715
|
}
|
1704
|
-
async function
|
1716
|
+
async function X0(e) {
|
1705
1717
|
const u = [], { id: t, name: a, source: i, project: c } = e;
|
1706
|
-
if (
|
1718
|
+
if (Ju(i))
|
1707
1719
|
return u.push("style的lang不能是scss, 请改为css"), Promise.reject(u);
|
1708
|
-
const { dependencies: s = [] } = c || {},
|
1709
|
-
styles:
|
1710
|
-
css:
|
1711
|
-
errors:
|
1712
|
-
} =
|
1720
|
+
const { dependencies: s = [], platform: n = "web" } = c || {}, d = ru(i), {
|
1721
|
+
styles: f,
|
1722
|
+
css: h,
|
1723
|
+
errors: b
|
1724
|
+
} = L0(d.styles.join(`
|
1713
1725
|
`)), {
|
1714
|
-
state:
|
1715
|
-
watch:
|
1716
|
-
lifeCycles:
|
1717
|
-
computed:
|
1718
|
-
methods:
|
1719
|
-
props:
|
1720
|
-
emits:
|
1721
|
-
inject:
|
1722
|
-
handlers:
|
1723
|
-
imports:
|
1724
|
-
dataSources:
|
1725
|
-
} =
|
1726
|
-
|
1727
|
-
|
1728
|
-
|
1726
|
+
state: S,
|
1727
|
+
watch: p,
|
1728
|
+
lifeCycles: E,
|
1729
|
+
computed: v,
|
1730
|
+
methods: J,
|
1731
|
+
props: gu,
|
1732
|
+
emits: yu,
|
1733
|
+
inject: Su,
|
1734
|
+
handlers: Eu,
|
1735
|
+
imports: wu,
|
1736
|
+
dataSources: vu
|
1737
|
+
} = p0(d.script, c), { nodes: Au, slots: Tu, context: Iu } = d0(t, a, d.template, {
|
1738
|
+
platform: n,
|
1739
|
+
handlers: Eu,
|
1740
|
+
styles: f
|
1741
|
+
}), X = {
|
1729
1742
|
id: t,
|
1730
1743
|
name: a,
|
1731
|
-
inject:
|
1732
|
-
props:
|
1733
|
-
state:
|
1734
|
-
watch:
|
1735
|
-
lifeCycles:
|
1736
|
-
computed:
|
1737
|
-
methods:
|
1738
|
-
dataSources:
|
1739
|
-
slots:
|
1740
|
-
emits:
|
1741
|
-
nodes:
|
1742
|
-
css:
|
1743
|
-
},
|
1744
|
+
inject: Su,
|
1745
|
+
props: gu,
|
1746
|
+
state: S,
|
1747
|
+
watch: p,
|
1748
|
+
lifeCycles: E,
|
1749
|
+
computed: v,
|
1750
|
+
methods: J,
|
1751
|
+
dataSources: vu,
|
1752
|
+
slots: Tu,
|
1753
|
+
emits: yu,
|
1754
|
+
nodes: Au,
|
1755
|
+
css: h
|
1756
|
+
}, Nu = Object.keys(v || {}), qu = [
|
1744
1757
|
"$el",
|
1745
1758
|
"$emit",
|
1746
1759
|
"$nextTick",
|
@@ -1756,52 +1769,53 @@ async function H0(e) {
|
|
1756
1769
|
"state",
|
1757
1770
|
"$props",
|
1758
1771
|
"props",
|
1759
|
-
...Object.keys(
|
1760
|
-
], { libs:
|
1761
|
-
|
1762
|
-
|
1763
|
-
|
1764
|
-
|
1772
|
+
...Object.keys(J || {})
|
1773
|
+
], { libs: ku } = R0(wu, s), z = {
|
1774
|
+
platform: n,
|
1775
|
+
context: Iu,
|
1776
|
+
computed: Nu,
|
1777
|
+
libs: ku,
|
1778
|
+
members: qu
|
1765
1779
|
};
|
1766
|
-
return await
|
1767
|
-
|
1780
|
+
return await D0(
|
1781
|
+
X,
|
1768
1782
|
async (_) => {
|
1769
|
-
await
|
1783
|
+
await B0(_, async (L) => {
|
1770
1784
|
if (G(L)) {
|
1771
|
-
const
|
1772
|
-
L.value =
|
1785
|
+
const _u = await Z(L.value);
|
1786
|
+
L.value = K(_u, _.id, z);
|
1773
1787
|
}
|
1774
1788
|
});
|
1775
1789
|
},
|
1776
1790
|
async (_) => {
|
1777
|
-
const L = await
|
1778
|
-
_.value =
|
1791
|
+
const L = await Z(_.value);
|
1792
|
+
_.value = K(L, "", z);
|
1779
1793
|
}
|
1780
|
-
), u.push(...
|
1794
|
+
), u.push(...b), u.length ? Promise.reject(u) : new Ru(X).toDsl();
|
1781
1795
|
}
|
1782
|
-
async function
|
1796
|
+
async function D0(e, u, t) {
|
1783
1797
|
const a = async (p, E) => {
|
1784
1798
|
if (await u(p, E), Array.isArray(p.children))
|
1785
|
-
for (const
|
1786
|
-
await a(
|
1799
|
+
for (const v of p.children)
|
1800
|
+
await a(v, p);
|
1787
1801
|
}, i = async (p) => {
|
1788
1802
|
if (!p || typeof p != "object") return;
|
1789
1803
|
if (Array.isArray(p)) {
|
1790
|
-
for (let
|
1791
|
-
await i(
|
1804
|
+
for (let v of p)
|
1805
|
+
await i(v);
|
1792
1806
|
return;
|
1793
1807
|
}
|
1794
1808
|
const E = Object.values(p);
|
1795
|
-
for (const
|
1796
|
-
G(
|
1809
|
+
for (const v of E)
|
1810
|
+
G(v) ? await t(v) : await i(v);
|
1797
1811
|
}, {
|
1798
1812
|
state: c,
|
1799
1813
|
watch: s,
|
1800
1814
|
computed: n,
|
1801
1815
|
props: d,
|
1802
|
-
dataSources:
|
1816
|
+
dataSources: f,
|
1803
1817
|
methods: h,
|
1804
|
-
lifeCycles:
|
1818
|
+
lifeCycles: b,
|
1805
1819
|
inject: S
|
1806
1820
|
} = e;
|
1807
1821
|
if (await i({
|
@@ -1809,15 +1823,15 @@ async function q0(e, u, t) {
|
|
1809
1823
|
watch: s,
|
1810
1824
|
computed: n,
|
1811
1825
|
props: d,
|
1812
|
-
dataSources:
|
1826
|
+
dataSources: f,
|
1813
1827
|
methods: h,
|
1814
|
-
lifeCycles:
|
1828
|
+
lifeCycles: b,
|
1815
1829
|
inject: S
|
1816
1830
|
}), Array.isArray(e.nodes))
|
1817
1831
|
for (const p of e.nodes)
|
1818
1832
|
await a(p);
|
1819
1833
|
}
|
1820
|
-
async function
|
1834
|
+
async function B0(e, u) {
|
1821
1835
|
const t = async (a) => {
|
1822
1836
|
if (!a || typeof a != "object") return;
|
1823
1837
|
if (Array.isArray(a)) {
|
@@ -1835,7 +1849,7 @@ async function k0(e, u) {
|
|
1835
1849
|
};
|
1836
1850
|
await t(e);
|
1837
1851
|
}
|
1838
|
-
function
|
1852
|
+
function R0(e = [], u = []) {
|
1839
1853
|
const t = {}, a = u.reduce(
|
1840
1854
|
(i, c) => (i[c.package] = c.library, i),
|
1841
1855
|
{}
|
@@ -1850,10 +1864,10 @@ function _0(e = [], u = []) {
|
|
1850
1864
|
};
|
1851
1865
|
}
|
1852
1866
|
export {
|
1853
|
-
|
1854
|
-
|
1855
|
-
|
1856
|
-
|
1857
|
-
|
1867
|
+
C0 as VTJ_PARSER_VERSION,
|
1868
|
+
cu as htmlToNodes,
|
1869
|
+
J0 as parseUniApp,
|
1870
|
+
X0 as parseVue,
|
1871
|
+
K as patchCode,
|
1858
1872
|
O as replacer
|
1859
1873
|
};
|