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