@vtj/renderer 0.19.12 → 0.19.13

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.mjs CHANGED
@@ -1,16 +1,16 @@
1
- import { Base as ri, BUILT_IN_COMPONENTS as ni, ProjectModel as He, HistoryModel as hs } from "@vtj/core";
2
- import { url as fe, isUrl as ft, dedupArray as ai, isFunction as H, isString as te, logger as he, storage as rt, cookie as nt, toArray as Kt, unRSA as Jt, delay as Ie, createRequest as ps, jsonp as fs, merge as oi, pathToRegexp as ui, pathToRegexpMatch as ci, formDataToJson as li, isEqual as at, cloneDeep as dt, Queue as hi, camelCase as Z, upperFirstCamelCase as pi, pick as fi, request as mt, loadScript as Qt, debounce as di, Storage as mi, mapToObject as Et } from "@vtj/utils";
1
+ import { Base as ri, BUILT_IN_COMPONENTS as ni, ProjectModel as Ge, HistoryModel as hs } from "@vtj/core";
2
+ import { url as de, isUrl as dt, dedupArray as ai, isFunction as H, isString as se, logger as pe, storage as nt, cookie as at, toArray as Kt, unRSA as Jt, delay as Ae, createRequest as ps, jsonp as fs, merge as oi, pathToRegexp as ui, pathToRegexpMatch as ci, formDataToJson as li, isEqual as ot, cloneDeep as mt, Queue as hi, camelCase as ee, upperFirstCamelCase as pi, pick as fi, request as gt, loadScript as Qt, debounce as di, Storage as mi, mapToObject as kt } from "@vtj/utils";
3
3
  import * as ye from "vue";
4
- import { inject as kt, defineComponent as ds, h as gt, shallowRef as Yt, ref as vt, watch as gi, watchEffect as vi, defineAsyncComponent as Xt } from "vue";
4
+ import { inject as It, defineComponent as ds, h as vt, shallowRef as Yt, ref as xt, watch as gi, watchEffect as vi, defineAsyncComponent as Xt } from "vue";
5
5
  import { useRoute as ms } from "vue-router";
6
6
  /**!
7
7
  * Copyright (c) 2026, VTJ.PRO All rights reserved.
8
8
  * @name @vtj/renderer
9
9
  * @author CHC chenhuachun1549@dingtalk.com
10
- * @version 0.19.12
10
+ * @version 0.19.13
11
11
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
12
12
  */
13
- const we = "0.19.12";
13
+ const Ee = "0.19.13";
14
14
  var T = /* @__PURE__ */ ((t) => (t.Runtime = "Runtime", t.Design = "Design", t.Raw = "Raw", t.VNode = "VNode", t))(T || {});
15
15
  const Zt = [
16
16
  "$el",
@@ -67,7 +67,7 @@ const Zt = [
67
67
  Object,
68
68
  Function,
69
69
  Date
70
- }, Ee = "VtjPage", $e = "VtjHomepage", gs = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot,svg".split(
70
+ }, ke = "VtjPage", Ue = "VtjHomepage", gs = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot,svg".split(
71
71
  ","
72
72
  ), yi = "component,slot".split(","), Pn = [
73
73
  "h",
@@ -149,13 +149,13 @@ const Zt = [
149
149
  ].join(""),
150
150
  privateKey: "MIIBOgIBAAJBAKoIzmn1FYQ1YOhOBw9EhABxZ+PySAIaydI+zdhoKflrdgJ4A5E4/5gbQmRpk09hPWG8nvX7h+l/QLU8kXxAIBECAwEAAQJAAlgpxQY6sByLsXqzJcthC8LSGsLf2JEJkHwlnpwFqlEV8UCkoINpuZ2Wzl+aftURu5rIfAzRCQBvHmeOTW9/zQIhAO5ufWDmnSLyfAAsNo5JRNpVuLFCFodR8Xm+ulDlosR/AiEAtpAltyP9wmCABKG/v/hrtTr3mcvFNGCjoGa9bUAok28CIHbrVs9w1ijrBlvTsXYwJw46uP539uKRRT4ymZzlm9QjAiB+1KH/G9f9pEEL9rtaSOG7JF5D0JcOjlze4MGVFs+ZrQIhALKOUFBNr2zEsyJIjw2PlvEucdlG77UniszjXTROHSPd"
151
151
  };
152
- function Me(t, e) {
153
- return t.map((s) => ft(s) || s.startsWith("/") ? s : `${e}${s}`);
152
+ function Be(t, e) {
153
+ return t.map((s) => dt(s) || s.startsWith("/") ? s : `${e}${s}`);
154
154
  }
155
- function We(t) {
155
+ function Ke(t) {
156
156
  return /\.css$/.test(t);
157
157
  }
158
- function ze(t) {
158
+ function Je(t) {
159
159
  return /\.js$/.test(t);
160
160
  }
161
161
  function _i(t) {
@@ -163,12 +163,12 @@ function _i(t) {
163
163
  }
164
164
  function Nn(t) {
165
165
  return t.map(
166
- (e) => `<script src="${fe.append(e, { v: we })}"><\/script>`
166
+ (e) => `<script src="${de.append(e, { v: Ee })}"><\/script>`
167
167
  ).join("");
168
168
  }
169
169
  function Rn(t = []) {
170
170
  return t.map(
171
- (e) => `<link rel="stylesheet" href="${fe.append(e, { v: we })}" />`
171
+ (e) => `<link rel="stylesheet" href="${de.append(e, { v: Ee })}" />`
172
172
  ).join("");
173
173
  }
174
174
  function Si(t, e = !1) {
@@ -178,14 +178,14 @@ function Ci(t, e, s = !1) {
178
178
  const i = t.filter((d) => !!d.enabled), r = [], n = [], a = [], o = [], c = {}, h = {}, l = [], p = {};
179
179
  return i.forEach(
180
180
  ({ urls: d, assetsUrl: f, library: m, assetsLibrary: g, localeLibrary: v }) => {
181
- d?.forEach((x) => {
182
- ze(x) && r.push(Si(x, s)), We(x) && n.push(x);
183
- }), m && (o.push(m), c[m] = Me(d || [], e), v && (h[m] = v)), f && a.push(f), g && l.push(g), m && g && (p[g] = m);
181
+ d?.forEach((C) => {
182
+ Je(C) && r.push(Si(C, s)), Ke(C) && n.push(C);
183
+ }), m && (o.push(m), c[m] = Be(d || [], e), v && (h[m] = v)), f && a.push(f), g && l.push(g), m && g && (p[g] = m);
184
184
  }
185
185
  ), {
186
- scripts: Me(r, e),
187
- css: Me(n, e),
188
- materials: Me(a, e),
186
+ scripts: Be(r, e),
187
+ css: Be(n, e),
188
+ materials: Be(a, e),
189
189
  libraryExports: o,
190
190
  materialExports: ai(l),
191
191
  materialMapLibrary: p,
@@ -198,7 +198,7 @@ function wi(t, e) {
198
198
  return i ? e[i]?.[r || s] : e[r || s];
199
199
  }
200
200
  function Ei(t = []) {
201
- const e = t.filter((i) => We(i)), s = t.filter((i) => ze(i));
201
+ const e = t.filter((i) => Ke(i)), s = t.filter((i) => Je(i));
202
202
  return {
203
203
  css: e,
204
204
  js: s
@@ -214,32 +214,32 @@ function ki(t, e) {
214
214
  continue;
215
215
  }
216
216
  if (h.substring(p, p + 2) === "/*") {
217
- const x = h.indexOf("*/", p + 2);
218
- if (x !== -1) {
219
- p = x + 2;
217
+ const C = h.indexOf("*/", p + 2);
218
+ if (C !== -1) {
219
+ p = C + 2;
220
220
  continue;
221
221
  }
222
222
  }
223
223
  if (h[p] === "@") {
224
- const x = p;
224
+ const C = p;
225
225
  for (; p < h.length && h[p] !== "{" && h[p] !== ";"; )
226
226
  p++;
227
- const k = h.substring(x, p).trim(), A = k.includes("@keyframes");
227
+ const b = h.substring(C, p).trim(), I = b.includes("@keyframes");
228
228
  if (h[p] === ";")
229
229
  l.push({
230
230
  type: "simple-at-rule",
231
- content: h.substring(x, p + 1)
231
+ content: h.substring(C, p + 1)
232
232
  }), p++;
233
233
  else if (h[p] === "{") {
234
234
  const _ = p + 1;
235
235
  let D = 1;
236
236
  for (p++; p < h.length && D > 0; )
237
237
  h[p] === "{" ? D++ : h[p] === "}" && D--, p++;
238
- const me = h.substring(x, p), ge = h.substring(_, p - 1);
238
+ const ce = h.substring(C, p), ge = h.substring(_, p - 1);
239
239
  l.push({
240
- type: A ? "keyframes" : "at-rule",
241
- rule: k,
242
- content: me,
240
+ type: I ? "keyframes" : "at-rule",
241
+ rule: b,
242
+ content: ce,
243
243
  inner: ge
244
244
  });
245
245
  }
@@ -342,9 +342,9 @@ function Pi(t, e) {
342
342
  return n;
343
343
  }
344
344
  function vs(t) {
345
- return te(t) ? t : JSON.stringify(t);
345
+ return se(t) ? t : JSON.stringify(t);
346
346
  }
347
- function It(t, e, s, i = !1) {
347
+ function At(t, e, s, i = !1) {
348
348
  const r = t.CSSStyleSheet, n = i ? `data-v-${e}` : e, a = t.__uniConfig ? Pi(t, s) : s, o = !!t.__uniConfig, c = t.document, h = !!r?.prototype?.replaceSync && !o, l = h ? Array.from(c.adoptedStyleSheets || []).find(
349
349
  (f) => f.id === e
350
350
  ) : c.getElementById(e), p = `${n}
@@ -381,7 +381,7 @@ function Vn(t) {
381
381
  }
382
382
  async function Ti(t, e) {
383
383
  const s = await globalThis.fetch(e).then((i) => i.text()).catch(() => "");
384
- s && It(globalThis, t, s);
384
+ s && At(globalThis, t, s);
385
385
  }
386
386
  function xs(t, e = globalThis) {
387
387
  const s = e.document, i = e.document.head;
@@ -420,7 +420,7 @@ function Ri(t) {
420
420
  function Vi(t) {
421
421
  return gs.includes(t);
422
422
  }
423
- function Ae(t = globalThis) {
423
+ function Pe(t = globalThis) {
424
424
  const e = globalThis?.Mock;
425
425
  if (e) return e;
426
426
  const s = t?.Mock;
@@ -441,20 +441,20 @@ function Li(t) {
441
441
  function Fi(t) {
442
442
  return t.includes("=");
443
443
  }
444
- var ot = {
444
+ var ut = {
445
445
  3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",
446
446
  5: "class enum extends super const export import",
447
447
  6: "enum",
448
448
  strict: "implements interface let package private protected public static yield",
449
449
  strictBind: "eval arguments"
450
- }, ut = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this", ji = {
451
- 5: ut,
452
- "5module": ut + " export import",
453
- 6: ut + " const class extends export import super"
454
- }, Mi = /^in(stanceof)?$/, At = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", ys = "‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_", Di = new RegExp("[" + At + "]"), Bi = new RegExp("[" + At + ys + "]");
455
- At = ys = null;
450
+ }, ct = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this", ji = {
451
+ 5: ct,
452
+ "5module": ct + " export import",
453
+ 6: ct + " const class extends export import super"
454
+ }, Mi = /^in(stanceof)?$/, Pt = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", ys = "‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_", Di = new RegExp("[" + Pt + "]"), Bi = new RegExp("[" + Pt + ys + "]");
455
+ Pt = ys = null;
456
456
  var _s = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 157, 310, 10, 21, 11, 7, 153, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 107, 20, 28, 22, 13, 52, 76, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 85, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 230, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 35, 56, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 190, 0, 80, 921, 103, 110, 18, 195, 2749, 1070, 4050, 582, 8634, 568, 8, 30, 114, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8952, 286, 50, 2, 18, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 2357, 44, 11, 6, 17, 0, 370, 43, 1301, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42717, 35, 4148, 12, 221, 3, 5761, 15, 7472, 3104, 541, 1507, 4938], $i = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 154, 10, 176, 2, 54, 14, 32, 9, 16, 3, 46, 10, 54, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 161, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 19306, 9, 135, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 5319, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 262, 6, 10, 9, 419, 13, 1495, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
457
- function xt(t, e) {
457
+ function bt(t, e) {
458
458
  for (var s = 65536, i = 0; i < e.length; i += 2) {
459
459
  if (s += e[i], s > t)
460
460
  return !1;
@@ -463,46 +463,46 @@ function xt(t, e) {
463
463
  }
464
464
  }
465
465
  function oe(t, e) {
466
- return t < 65 ? t === 36 : t < 91 ? !0 : t < 97 ? t === 95 : t < 123 ? !0 : t <= 65535 ? t >= 170 && Di.test(String.fromCharCode(t)) : e === !1 ? !1 : xt(t, _s);
466
+ return t < 65 ? t === 36 : t < 91 ? !0 : t < 97 ? t === 95 : t < 123 ? !0 : t <= 65535 ? t >= 170 && Di.test(String.fromCharCode(t)) : e === !1 ? !1 : bt(t, _s);
467
467
  }
468
468
  function Se(t, e) {
469
- return t < 48 ? t === 36 : t < 58 ? !0 : t < 65 ? !1 : t < 91 ? !0 : t < 97 ? t === 95 : t < 123 ? !0 : t <= 65535 ? t >= 170 && Bi.test(String.fromCharCode(t)) : e === !1 ? !1 : xt(t, _s) || xt(t, $i);
469
+ return t < 48 ? t === 36 : t < 58 ? !0 : t < 65 ? !1 : t < 91 ? !0 : t < 97 ? t === 95 : t < 123 ? !0 : t <= 65535 ? t >= 170 && Bi.test(String.fromCharCode(t)) : e === !1 ? !1 : bt(t, _s) || bt(t, $i);
470
470
  }
471
- var E = function(e, s) {
471
+ var k = function(e, s) {
472
472
  s === void 0 && (s = {}), this.label = e, this.keyword = s.keyword, this.beforeExpr = !!s.beforeExpr, this.startsExpr = !!s.startsExpr, this.isLoop = !!s.isLoop, this.isAssign = !!s.isAssign, this.prefix = !!s.prefix, this.postfix = !!s.postfix, this.binop = s.binop || null, this.updateContext = null;
473
473
  };
474
474
  function U(t, e) {
475
- return new E(t, { beforeExpr: !0, binop: e });
475
+ return new k(t, { beforeExpr: !0, binop: e });
476
476
  }
477
- var G = { beforeExpr: !0 }, $ = { startsExpr: !0 }, Pt = {};
478
- function w(t, e) {
479
- return e === void 0 && (e = {}), e.keyword = t, Pt[t] = new E(t, e);
477
+ var G = { beforeExpr: !0 }, $ = { startsExpr: !0 }, Tt = {};
478
+ function E(t, e) {
479
+ return e === void 0 && (e = {}), e.keyword = t, Tt[t] = new k(t, e);
480
480
  }
481
481
  var u = {
482
- num: new E("num", $),
483
- regexp: new E("regexp", $),
484
- string: new E("string", $),
485
- name: new E("name", $),
486
- eof: new E("eof"),
482
+ num: new k("num", $),
483
+ regexp: new k("regexp", $),
484
+ string: new k("string", $),
485
+ name: new k("name", $),
486
+ eof: new k("eof"),
487
487
  // Punctuation token types.
488
- bracketL: new E("[", { beforeExpr: !0, startsExpr: !0 }),
489
- bracketR: new E("]"),
490
- braceL: new E("{", { beforeExpr: !0, startsExpr: !0 }),
491
- braceR: new E("}"),
492
- parenL: new E("(", { beforeExpr: !0, startsExpr: !0 }),
493
- parenR: new E(")"),
494
- comma: new E(",", G),
495
- semi: new E(";", G),
496
- colon: new E(":", G),
497
- dot: new E("."),
498
- question: new E("?", G),
499
- questionDot: new E("?."),
500
- arrow: new E("=>", G),
501
- template: new E("template"),
502
- invalidTemplate: new E("invalidTemplate"),
503
- ellipsis: new E("...", G),
504
- backQuote: new E("`", $),
505
- dollarBraceL: new E("${", { beforeExpr: !0, startsExpr: !0 }),
488
+ bracketL: new k("[", { beforeExpr: !0, startsExpr: !0 }),
489
+ bracketR: new k("]"),
490
+ braceL: new k("{", { beforeExpr: !0, startsExpr: !0 }),
491
+ braceR: new k("}"),
492
+ parenL: new k("(", { beforeExpr: !0, startsExpr: !0 }),
493
+ parenR: new k(")"),
494
+ comma: new k(",", G),
495
+ semi: new k(";", G),
496
+ colon: new k(":", G),
497
+ dot: new k("."),
498
+ question: new k("?", G),
499
+ questionDot: new k("?."),
500
+ arrow: new k("=>", G),
501
+ template: new k("template"),
502
+ invalidTemplate: new k("invalidTemplate"),
503
+ ellipsis: new k("...", G),
504
+ backQuote: new k("`", $),
505
+ dollarBraceL: new k("${", { beforeExpr: !0, startsExpr: !0 }),
506
506
  // Operators. These carry several kinds of properties to help the
507
507
  // parser use them properly (the presence of these properties is
508
508
  // what categorizes them as operators).
@@ -516,10 +516,10 @@ var u = {
516
516
  // `isAssign` marks all of `=`, `+=`, `-=` etcetera, which act as
517
517
  // binary operators with a very low precedence, that should result
518
518
  // in AssignmentExpression nodes.
519
- eq: new E("=", { beforeExpr: !0, isAssign: !0 }),
520
- assign: new E("_=", { beforeExpr: !0, isAssign: !0 }),
521
- incDec: new E("++/--", { prefix: !0, postfix: !0, startsExpr: !0 }),
522
- prefix: new E("!/~", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
519
+ eq: new k("=", { beforeExpr: !0, isAssign: !0 }),
520
+ assign: new k("_=", { beforeExpr: !0, isAssign: !0 }),
521
+ incDec: new k("++/--", { prefix: !0, postfix: !0, startsExpr: !0 }),
522
+ prefix: new k("!/~", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
523
523
  logicalOR: U("||", 1),
524
524
  logicalAND: U("&&", 2),
525
525
  bitwiseOR: U("|", 3),
@@ -528,82 +528,82 @@ var u = {
528
528
  equality: U("==/!=/===/!==", 6),
529
529
  relational: U("</>/<=/>=", 7),
530
530
  bitShift: U("<</>>/>>>", 8),
531
- plusMin: new E("+/-", { beforeExpr: !0, binop: 9, prefix: !0, startsExpr: !0 }),
531
+ plusMin: new k("+/-", { beforeExpr: !0, binop: 9, prefix: !0, startsExpr: !0 }),
532
532
  modulo: U("%", 10),
533
533
  star: U("*", 10),
534
534
  slash: U("/", 10),
535
- starstar: new E("**", { beforeExpr: !0 }),
535
+ starstar: new k("**", { beforeExpr: !0 }),
536
536
  coalesce: U("??", 1),
537
537
  // Keyword token types.
538
- _break: w("break"),
539
- _case: w("case", G),
540
- _catch: w("catch"),
541
- _continue: w("continue"),
542
- _debugger: w("debugger"),
543
- _default: w("default", G),
544
- _do: w("do", { isLoop: !0, beforeExpr: !0 }),
545
- _else: w("else", G),
546
- _finally: w("finally"),
547
- _for: w("for", { isLoop: !0 }),
548
- _function: w("function", $),
549
- _if: w("if"),
550
- _return: w("return", G),
551
- _switch: w("switch"),
552
- _throw: w("throw", G),
553
- _try: w("try"),
554
- _var: w("var"),
555
- _const: w("const"),
556
- _while: w("while", { isLoop: !0 }),
557
- _with: w("with"),
558
- _new: w("new", { beforeExpr: !0, startsExpr: !0 }),
559
- _this: w("this", $),
560
- _super: w("super", $),
561
- _class: w("class", $),
562
- _extends: w("extends", G),
563
- _export: w("export"),
564
- _import: w("import", $),
565
- _null: w("null", $),
566
- _true: w("true", $),
567
- _false: w("false", $),
568
- _in: w("in", { beforeExpr: !0, binop: 7 }),
569
- _instanceof: w("instanceof", { beforeExpr: !0, binop: 7 }),
570
- _typeof: w("typeof", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
571
- _void: w("void", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
572
- _delete: w("delete", { beforeExpr: !0, prefix: !0, startsExpr: !0 })
573
- }, W = /\r\n?|\n|\u2028|\u2029/, Pe = new RegExp(W.source, "g");
574
- function Ve(t, e) {
538
+ _break: E("break"),
539
+ _case: E("case", G),
540
+ _catch: E("catch"),
541
+ _continue: E("continue"),
542
+ _debugger: E("debugger"),
543
+ _default: E("default", G),
544
+ _do: E("do", { isLoop: !0, beforeExpr: !0 }),
545
+ _else: E("else", G),
546
+ _finally: E("finally"),
547
+ _for: E("for", { isLoop: !0 }),
548
+ _function: E("function", $),
549
+ _if: E("if"),
550
+ _return: E("return", G),
551
+ _switch: E("switch"),
552
+ _throw: E("throw", G),
553
+ _try: E("try"),
554
+ _var: E("var"),
555
+ _const: E("const"),
556
+ _while: E("while", { isLoop: !0 }),
557
+ _with: E("with"),
558
+ _new: E("new", { beforeExpr: !0, startsExpr: !0 }),
559
+ _this: E("this", $),
560
+ _super: E("super", $),
561
+ _class: E("class", $),
562
+ _extends: E("extends", G),
563
+ _export: E("export"),
564
+ _import: E("import", $),
565
+ _null: E("null", $),
566
+ _true: E("true", $),
567
+ _false: E("false", $),
568
+ _in: E("in", { beforeExpr: !0, binop: 7 }),
569
+ _instanceof: E("instanceof", { beforeExpr: !0, binop: 7 }),
570
+ _typeof: E("typeof", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
571
+ _void: E("void", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
572
+ _delete: E("delete", { beforeExpr: !0, prefix: !0, startsExpr: !0 })
573
+ }, W = /\r\n?|\n|\u2028|\u2029/, Te = new RegExp(W.source, "g");
574
+ function Oe(t, e) {
575
575
  return t === 10 || t === 13 || !e && (t === 8232 || t === 8233);
576
576
  }
577
577
  var Ss = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, q = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, Cs = Object.prototype, Hi = Cs.hasOwnProperty, Ui = Cs.toString;
578
- function Ke(t, e) {
578
+ function Qe(t, e) {
579
579
  return Hi.call(t, e);
580
580
  }
581
581
  var es = Array.isArray || (function(t) {
582
582
  return Ui.call(t) === "[object Array]";
583
583
  });
584
- function pe(t) {
584
+ function fe(t) {
585
585
  return new RegExp("^(?:" + t.replace(/ /g, "|") + ")$");
586
586
  }
587
- var Te = function(e, s) {
587
+ var Ne = function(e, s) {
588
588
  this.line = e, this.column = s;
589
589
  };
590
- Te.prototype.offset = function(e) {
591
- return new Te(this.line, this.column + e);
590
+ Ne.prototype.offset = function(e) {
591
+ return new Ne(this.line, this.column + e);
592
592
  };
593
- var Je = function(e, s, i) {
593
+ var Ye = function(e, s, i) {
594
594
  this.start = s, this.end = i, e.sourceFile !== null && (this.source = e.sourceFile);
595
595
  };
596
596
  function ws(t, e) {
597
597
  for (var s = 1, i = 0; ; ) {
598
- Pe.lastIndex = i;
599
- var r = Pe.exec(t);
598
+ Te.lastIndex = i;
599
+ var r = Te.exec(t);
600
600
  if (r && r.index < e)
601
601
  ++s, i = r.index + r[0].length;
602
602
  else
603
- return new Te(s, e - i);
603
+ return new Ne(s, e - i);
604
604
  }
605
605
  }
606
- var bt = {
606
+ var yt = {
607
607
  // `ecmaVersion` indicates the ECMAScript version to parse. Must be
608
608
  // either 3, 5, 6 (2015), 7 (2016), 8 (2017), 9 (2018), or 10
609
609
  // (2019). This influences support for strict mode, the set of
@@ -689,8 +689,8 @@ var bt = {
689
689
  };
690
690
  function Gi(t) {
691
691
  var e = {};
692
- for (var s in bt)
693
- e[s] = t && Ke(t, s) ? t[s] : bt[s];
692
+ for (var s in yt)
693
+ e[s] = t && Qe(t, s) ? t[s] : yt[s];
694
694
  if (e.ecmaVersion >= 2015 && (e.ecmaVersion -= 2009), e.allowReserved == null && (e.allowReserved = e.ecmaVersion < 5), es(e.onToken)) {
695
695
  var i = e.onToken;
696
696
  e.onToken = function(r) {
@@ -707,50 +707,50 @@ function qi(t, e) {
707
707
  start: r,
708
708
  end: n
709
709
  };
710
- t.locations && (c.loc = new Je(this, a, o)), t.ranges && (c.range = [r, n]), e.push(c);
710
+ t.locations && (c.loc = new Ye(this, a, o)), t.ranges && (c.range = [r, n]), e.push(c);
711
711
  };
712
712
  }
713
- var Ne = 1, Oe = 2, Tt = Ne | Oe, Es = 4, ks = 8, Is = 16, As = 32, Ps = 64, Ts = 128;
714
- function Nt(t, e) {
715
- return Oe | (t ? Es : 0) | (e ? ks : 0);
713
+ var Re = 1, Le = 2, Nt = Re | Le, Es = 4, ks = 8, Is = 16, As = 32, Ps = 64, Ts = 128;
714
+ function Rt(t, e) {
715
+ return Le | (t ? Es : 0) | (e ? ks : 0);
716
716
  }
717
- var ts = 0, Rt = 1, ee = 2, Ns = 3, Rs = 4, Vs = 5, P = function(e, s, i) {
718
- this.options = e = Gi(e), this.sourceFile = e.sourceFile, this.keywords = pe(ji[e.ecmaVersion >= 6 ? 6 : e.sourceType === "module" ? "5module" : 5]);
717
+ var ts = 0, Vt = 1, te = 2, Ns = 3, Rs = 4, Vs = 5, P = function(e, s, i) {
718
+ this.options = e = Gi(e), this.sourceFile = e.sourceFile, this.keywords = fe(ji[e.ecmaVersion >= 6 ? 6 : e.sourceType === "module" ? "5module" : 5]);
719
719
  var r = "";
720
720
  if (e.allowReserved !== !0) {
721
- for (var n = e.ecmaVersion; !(r = ot[n]); n--)
721
+ for (var n = e.ecmaVersion; !(r = ut[n]); n--)
722
722
  ;
723
723
  e.sourceType === "module" && (r += " await");
724
724
  }
725
- this.reservedWords = pe(r);
726
- var a = (r ? r + " " : "") + ot.strict;
727
- this.reservedWordsStrict = pe(a), this.reservedWordsStrictBind = pe(a + " " + ot.strictBind), this.input = String(s), this.containsEsc = !1, i ? (this.pos = i, this.lineStart = this.input.lastIndexOf(`
728
- `, i - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(W).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = u.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = !0, this.inModule = e.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = {}, this.pos === 0 && e.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(Ne), this.regexpState = null;
729
- }, de = { inFunction: { configurable: !0 }, inGenerator: { configurable: !0 }, inAsync: { configurable: !0 }, allowSuper: { configurable: !0 }, allowDirectSuper: { configurable: !0 }, treatFunctionsAsVar: { configurable: !0 } };
725
+ this.reservedWords = fe(r);
726
+ var a = (r ? r + " " : "") + ut.strict;
727
+ this.reservedWordsStrict = fe(a), this.reservedWordsStrictBind = fe(a + " " + ut.strictBind), this.input = String(s), this.containsEsc = !1, i ? (this.pos = i, this.lineStart = this.input.lastIndexOf(`
728
+ `, i - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(W).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = u.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = !0, this.inModule = e.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = {}, this.pos === 0 && e.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(Re), this.regexpState = null;
729
+ }, me = { inFunction: { configurable: !0 }, inGenerator: { configurable: !0 }, inAsync: { configurable: !0 }, allowSuper: { configurable: !0 }, allowDirectSuper: { configurable: !0 }, treatFunctionsAsVar: { configurable: !0 } };
730
730
  P.prototype.parse = function() {
731
731
  var e = this.options.program || this.startNode();
732
732
  return this.nextToken(), this.parseTopLevel(e);
733
733
  };
734
- de.inFunction.get = function() {
735
- return (this.currentVarScope().flags & Oe) > 0;
734
+ me.inFunction.get = function() {
735
+ return (this.currentVarScope().flags & Le) > 0;
736
736
  };
737
- de.inGenerator.get = function() {
737
+ me.inGenerator.get = function() {
738
738
  return (this.currentVarScope().flags & ks) > 0;
739
739
  };
740
- de.inAsync.get = function() {
740
+ me.inAsync.get = function() {
741
741
  return (this.currentVarScope().flags & Es) > 0;
742
742
  };
743
- de.allowSuper.get = function() {
743
+ me.allowSuper.get = function() {
744
744
  return (this.currentThisScope().flags & Ps) > 0;
745
745
  };
746
- de.allowDirectSuper.get = function() {
746
+ me.allowDirectSuper.get = function() {
747
747
  return (this.currentThisScope().flags & Ts) > 0;
748
748
  };
749
- de.treatFunctionsAsVar.get = function() {
749
+ me.treatFunctionsAsVar.get = function() {
750
750
  return this.treatFunctionsAsVarInScope(this.currentScope());
751
751
  };
752
752
  P.prototype.inNonArrowFunction = function() {
753
- return (this.currentThisScope().flags & Oe) > 0;
753
+ return (this.currentThisScope().flags & Le) > 0;
754
754
  };
755
755
  P.extend = function() {
756
756
  for (var e = [], s = arguments.length; s--; ) e[s] = arguments[s];
@@ -768,7 +768,7 @@ P.parseExpressionAt = function(e, s, i) {
768
768
  P.tokenizer = function(e, s) {
769
769
  return new this(s, e);
770
770
  };
771
- Object.defineProperties(P.prototype, de);
771
+ Object.defineProperties(P.prototype, me);
772
772
  var F = P.prototype, Wi = /^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;
773
773
  F.strictDirective = function(t) {
774
774
  for (; ; ) {
@@ -816,7 +816,7 @@ F.expect = function(t) {
816
816
  F.unexpected = function(t) {
817
817
  this.raise(t ?? this.start, "Unexpected token");
818
818
  };
819
- function Qe() {
819
+ function Xe() {
820
820
  this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
821
821
  }
822
822
  F.checkPatternErrors = function(t, e) {
@@ -854,7 +854,7 @@ y.parseTopLevel = function(t) {
854
854
  }
855
855
  return this.adaptDirectivePrologue(t.body), this.next(), t.sourceType = this.options.sourceType, this.finishNode(t, "Program");
856
856
  };
857
- var Vt = { kind: "loop" }, zi = { kind: "switch" };
857
+ var Ot = { kind: "loop" }, zi = { kind: "switch" };
858
858
  y.isLet = function(t) {
859
859
  if (this.options.ecmaVersion < 6 || !this.isContextual("let"))
860
860
  return !1;
@@ -954,23 +954,23 @@ y.parseDebuggerStatement = function(t) {
954
954
  return this.next(), this.semicolon(), this.finishNode(t, "DebuggerStatement");
955
955
  };
956
956
  y.parseDoStatement = function(t) {
957
- return this.next(), this.labels.push(Vt), t.body = this.parseStatement("do"), this.labels.pop(), this.expect(u._while), t.test = this.parseParenExpression(), this.options.ecmaVersion >= 6 ? this.eat(u.semi) : this.semicolon(), this.finishNode(t, "DoWhileStatement");
957
+ return this.next(), this.labels.push(Ot), t.body = this.parseStatement("do"), this.labels.pop(), this.expect(u._while), t.test = this.parseParenExpression(), this.options.ecmaVersion >= 6 ? this.eat(u.semi) : this.semicolon(), this.finishNode(t, "DoWhileStatement");
958
958
  };
959
959
  y.parseForStatement = function(t) {
960
960
  this.next();
961
961
  var e = this.options.ecmaVersion >= 9 && (this.inAsync || !this.inFunction && this.options.allowAwaitOutsideFunction) && this.eatContextual("await") ? this.lastTokStart : -1;
962
- if (this.labels.push(Vt), this.enterScope(0), this.expect(u.parenL), this.type === u.semi)
962
+ if (this.labels.push(Ot), this.enterScope(0), this.expect(u.parenL), this.type === u.semi)
963
963
  return e > -1 && this.unexpected(e), this.parseFor(t, null);
964
964
  var s = this.isLet();
965
965
  if (this.type === u._var || this.type === u._const || s) {
966
966
  var i = this.startNode(), r = s ? "let" : this.value;
967
967
  return this.next(), this.parseVar(i, !0, r), this.finishNode(i, "VariableDeclaration"), (this.type === u._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && i.declarations.length === 1 ? (this.options.ecmaVersion >= 9 && (this.type === u._in ? e > -1 && this.unexpected(e) : t.await = e > -1), this.parseForIn(t, i)) : (e > -1 && this.unexpected(e), this.parseFor(t, i));
968
968
  }
969
- var n = new Qe(), a = this.parseExpression(!0, n);
969
+ var n = new Xe(), a = this.parseExpression(!0, n);
970
970
  return this.type === u._in || this.options.ecmaVersion >= 6 && this.isContextual("of") ? (this.options.ecmaVersion >= 9 && (this.type === u._in ? e > -1 && this.unexpected(e) : t.await = e > -1), this.toAssignable(a, !1, n), this.checkLVal(a), this.parseForIn(t, a)) : (this.checkExpressionErrors(n, !0), e > -1 && this.unexpected(e), this.parseFor(t, a));
971
971
  };
972
972
  y.parseFunctionStatement = function(t, e, s) {
973
- return this.next(), this.parseFunction(t, ke | (s ? 0 : yt), !1, e);
973
+ return this.next(), this.parseFunction(t, Ie | (s ? 0 : _t), !1, e);
974
974
  };
975
975
  y.parseIfStatement = function(t) {
976
976
  return this.next(), t.test = this.parseParenExpression(), t.consequent = this.parseStatement("if"), t.alternate = this.eat(u._else) ? this.parseStatement("if") : null, this.finishNode(t, "IfStatement");
@@ -998,7 +998,7 @@ y.parseTryStatement = function(t) {
998
998
  if (this.next(), this.eat(u.parenL)) {
999
999
  e.param = this.parseBindingAtom();
1000
1000
  var s = e.param.type === "Identifier";
1001
- this.enterScope(s ? As : 0), this.checkLVal(e.param, s ? Rs : ee), this.expect(u.parenR);
1001
+ this.enterScope(s ? As : 0), this.checkLVal(e.param, s ? Rs : te), this.expect(u.parenR);
1002
1002
  } else
1003
1003
  this.options.ecmaVersion < 10 && this.unexpected(), e.param = null, this.enterScope(0);
1004
1004
  e.body = this.parseBlock(!1), this.exitScope(), t.handler = this.finishNode(e, "CatchClause");
@@ -1009,7 +1009,7 @@ y.parseVarStatement = function(t, e) {
1009
1009
  return this.next(), this.parseVar(t, !1, e), this.semicolon(), this.finishNode(t, "VariableDeclaration");
1010
1010
  };
1011
1011
  y.parseWhileStatement = function(t) {
1012
- return this.next(), t.test = this.parseParenExpression(), this.labels.push(Vt), t.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(t, "WhileStatement");
1012
+ return this.next(), t.test = this.parseParenExpression(), this.labels.push(Ot), t.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(t, "WhileStatement");
1013
1013
  };
1014
1014
  y.parseWithStatement = function(t) {
1015
1015
  return this.strict && this.raise(this.start, "'with' in strict mode"), this.next(), t.object = this.parseParenExpression(), t.body = this.parseStatement("with"), this.finishNode(t, "WithStatement");
@@ -1060,13 +1060,13 @@ y.parseVar = function(t, e, s) {
1060
1060
  return t;
1061
1061
  };
1062
1062
  y.parseVarId = function(t, e) {
1063
- t.id = this.parseBindingAtom(), this.checkLVal(t.id, e === "var" ? Rt : ee, !1);
1063
+ t.id = this.parseBindingAtom(), this.checkLVal(t.id, e === "var" ? Vt : te, !1);
1064
1064
  };
1065
- var ke = 1, yt = 2, Os = 4;
1065
+ var Ie = 1, _t = 2, Os = 4;
1066
1066
  y.parseFunction = function(t, e, s, i) {
1067
- this.initFunction(t), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !i) && (this.type === u.star && e & yt && this.unexpected(), t.generator = this.eat(u.star)), this.options.ecmaVersion >= 8 && (t.async = !!i), e & ke && (t.id = e & Os && this.type !== u.name ? null : this.parseIdent(), t.id && !(e & yt) && this.checkLVal(t.id, this.strict || t.generator || t.async ? this.treatFunctionsAsVar ? Rt : ee : Ns));
1067
+ this.initFunction(t), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !i) && (this.type === u.star && e & _t && this.unexpected(), t.generator = this.eat(u.star)), this.options.ecmaVersion >= 8 && (t.async = !!i), e & Ie && (t.id = e & Os && this.type !== u.name ? null : this.parseIdent(), t.id && !(e & _t) && this.checkLVal(t.id, this.strict || t.generator || t.async ? this.treatFunctionsAsVar ? Vt : te : Ns));
1068
1068
  var r = this.yieldPos, n = this.awaitPos, a = this.awaitIdentPos;
1069
- return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Nt(t.async, t.generator)), e & ke || (t.id = this.type === u.name ? this.parseIdent() : null), this.parseFunctionParams(t), this.parseFunctionBody(t, s, !1), this.yieldPos = r, this.awaitPos = n, this.awaitIdentPos = a, this.finishNode(t, e & ke ? "FunctionDeclaration" : "FunctionExpression");
1069
+ return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Rt(t.async, t.generator)), e & Ie || (t.id = this.type === u.name ? this.parseIdent() : null), this.parseFunctionParams(t), this.parseFunctionBody(t, s, !1), this.yieldPos = r, this.awaitPos = n, this.awaitIdentPos = a, this.finishNode(t, e & Ie ? "FunctionDeclaration" : "FunctionExpression");
1070
1070
  };
1071
1071
  y.parseFunctionParams = function(t) {
1072
1072
  this.expect(u.parenL), t.params = this.parseBindingList(u.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
@@ -1101,7 +1101,7 @@ y.parseClassMethod = function(t, e, s, i) {
1101
1101
  return t.value = this.parseMethod(e, s, i), this.finishNode(t, "MethodDefinition");
1102
1102
  };
1103
1103
  y.parseClassId = function(t, e) {
1104
- this.type === u.name ? (t.id = this.parseIdent(), e && this.checkLVal(t.id, ee, !1)) : (e === !0 && this.unexpected(), t.id = null);
1104
+ this.type === u.name ? (t.id = this.parseIdent(), e && this.checkLVal(t.id, te, !1)) : (e === !0 && this.unexpected(), t.id = null);
1105
1105
  };
1106
1106
  y.parseClassSuper = function(t) {
1107
1107
  t.superClass = this.eat(u._extends) ? this.parseExprSubscripts() : null;
@@ -1114,7 +1114,7 @@ y.parseExport = function(t, e) {
1114
1114
  var s;
1115
1115
  if (this.type === u._function || (s = this.isAsyncFunction())) {
1116
1116
  var i = this.startNode();
1117
- this.next(), s && this.next(), t.declaration = this.parseFunction(i, ke | Os, !1, s);
1117
+ this.next(), s && this.next(), t.declaration = this.parseFunction(i, Ie | Os, !1, s);
1118
1118
  } else if (this.type === u._class) {
1119
1119
  var r = this.startNode();
1120
1120
  t.declaration = this.parseClass(r, "nullableID");
@@ -1139,7 +1139,7 @@ y.parseExport = function(t, e) {
1139
1139
  return this.finishNode(t, "ExportNamedDeclaration");
1140
1140
  };
1141
1141
  y.checkExport = function(t, e, s) {
1142
- t && (Ke(t, e) && this.raiseRecoverable(s, "Duplicate export '" + e + "'"), t[e] = !0);
1142
+ t && (Qe(t, e) && this.raiseRecoverable(s, "Duplicate export '" + e + "'"), t[e] = !0);
1143
1143
  };
1144
1144
  y.checkPatternExport = function(t, e) {
1145
1145
  var s = e.type;
@@ -1186,12 +1186,12 @@ y.parseImportSpecifiers = function() {
1186
1186
  var t = [], e = !0;
1187
1187
  if (this.type === u.name) {
1188
1188
  var s = this.startNode();
1189
- if (s.local = this.parseIdent(), this.checkLVal(s.local, ee), t.push(this.finishNode(s, "ImportDefaultSpecifier")), !this.eat(u.comma))
1189
+ if (s.local = this.parseIdent(), this.checkLVal(s.local, te), t.push(this.finishNode(s, "ImportDefaultSpecifier")), !this.eat(u.comma))
1190
1190
  return t;
1191
1191
  }
1192
1192
  if (this.type === u.star) {
1193
1193
  var i = this.startNode();
1194
- return this.next(), this.expectContextual("as"), i.local = this.parseIdent(), this.checkLVal(i.local, ee), t.push(this.finishNode(i, "ImportNamespaceSpecifier")), t;
1194
+ return this.next(), this.expectContextual("as"), i.local = this.parseIdent(), this.checkLVal(i.local, te), t.push(this.finishNode(i, "ImportNamespaceSpecifier")), t;
1195
1195
  }
1196
1196
  for (this.expect(u.braceL); !this.eat(u.braceR); ) {
1197
1197
  if (e)
@@ -1199,7 +1199,7 @@ y.parseImportSpecifiers = function() {
1199
1199
  else if (this.expect(u.comma), this.afterTrailingComma(u.braceR))
1200
1200
  break;
1201
1201
  var r = this.startNode();
1202
- r.imported = this.parseIdent(!0), this.eatContextual("as") ? r.local = this.parseIdent() : (this.checkUnreserved(r.imported), r.local = r.imported), this.checkLVal(r.local, ee), t.push(this.finishNode(r, "ImportSpecifier"));
1202
+ r.imported = this.parseIdent(!0), this.eatContextual("as") ? r.local = this.parseIdent() : (this.checkUnreserved(r.imported), r.local = r.imported), this.checkLVal(r.local, te), t.push(this.finishNode(r, "ImportSpecifier"));
1203
1203
  }
1204
1204
  return t;
1205
1205
  };
@@ -1211,8 +1211,8 @@ y.isDirectiveCandidate = function(t) {
1211
1211
  return t.type === "ExpressionStatement" && t.expression.type === "Literal" && typeof t.expression.value == "string" && // Reject parenthesized strings.
1212
1212
  (this.input[t.start] === '"' || this.input[t.start] === "'");
1213
1213
  };
1214
- var se = P.prototype;
1215
- se.toAssignable = function(t, e, s) {
1214
+ var ie = P.prototype;
1215
+ ie.toAssignable = function(t, e, s) {
1216
1216
  if (this.options.ecmaVersion >= 6 && t)
1217
1217
  switch (t.type) {
1218
1218
  case "Identifier":
@@ -1258,7 +1258,7 @@ se.toAssignable = function(t, e, s) {
1258
1258
  else s && this.checkPatternErrors(s, !0);
1259
1259
  return t;
1260
1260
  };
1261
- se.toAssignableList = function(t, e) {
1261
+ ie.toAssignableList = function(t, e) {
1262
1262
  for (var s = t.length, i = 0; i < s; i++) {
1263
1263
  var r = t[i];
1264
1264
  r && this.toAssignable(r, e);
@@ -1269,15 +1269,15 @@ se.toAssignableList = function(t, e) {
1269
1269
  }
1270
1270
  return t;
1271
1271
  };
1272
- se.parseSpread = function(t) {
1272
+ ie.parseSpread = function(t) {
1273
1273
  var e = this.startNode();
1274
1274
  return this.next(), e.argument = this.parseMaybeAssign(!1, t), this.finishNode(e, "SpreadElement");
1275
1275
  };
1276
- se.parseRestBinding = function() {
1276
+ ie.parseRestBinding = function() {
1277
1277
  var t = this.startNode();
1278
1278
  return this.next(), this.options.ecmaVersion === 6 && this.type !== u.name && this.unexpected(), t.argument = this.parseBindingAtom(), this.finishNode(t, "RestElement");
1279
1279
  };
1280
- se.parseBindingAtom = function() {
1280
+ ie.parseBindingAtom = function() {
1281
1281
  if (this.options.ecmaVersion >= 6)
1282
1282
  switch (this.type) {
1283
1283
  case u.bracketL:
@@ -1288,7 +1288,7 @@ se.parseBindingAtom = function() {
1288
1288
  }
1289
1289
  return this.parseIdent();
1290
1290
  };
1291
- se.parseBindingList = function(t, e, s) {
1291
+ ie.parseBindingList = function(t, e, s) {
1292
1292
  for (var i = [], r = !0; !this.eat(t); )
1293
1293
  if (r ? r = !1 : this.expect(u.comma), e && this.type === u.comma)
1294
1294
  i.push(null);
@@ -1306,19 +1306,19 @@ se.parseBindingList = function(t, e, s) {
1306
1306
  }
1307
1307
  return i;
1308
1308
  };
1309
- se.parseBindingListItem = function(t) {
1309
+ ie.parseBindingListItem = function(t) {
1310
1310
  return t;
1311
1311
  };
1312
- se.parseMaybeDefault = function(t, e, s) {
1312
+ ie.parseMaybeDefault = function(t, e, s) {
1313
1313
  if (s = s || this.parseBindingAtom(), this.options.ecmaVersion < 6 || !this.eat(u.eq))
1314
1314
  return s;
1315
1315
  var i = this.startNodeAt(t, e);
1316
1316
  return i.left = s, i.right = this.parseMaybeAssign(), this.finishNode(i, "AssignmentPattern");
1317
1317
  };
1318
- se.checkLVal = function(t, e, s) {
1318
+ ie.checkLVal = function(t, e, s) {
1319
1319
  switch (e === void 0 && (e = ts), t.type) {
1320
1320
  case "Identifier":
1321
- e === ee && t.name === "let" && this.raiseRecoverable(t.start, "let is disallowed as a lexically bound name"), this.strict && this.reservedWordsStrictBind.test(t.name) && this.raiseRecoverable(t.start, (e ? "Binding " : "Assigning to ") + t.name + " in strict mode"), s && (Ke(s, t.name) && this.raiseRecoverable(t.start, "Argument name clash"), s[t.name] = !0), e !== ts && e !== Vs && this.declareName(t.name, e, t.start);
1321
+ e === te && t.name === "let" && this.raiseRecoverable(t.start, "let is disallowed as a lexically bound name"), this.strict && this.reservedWordsStrictBind.test(t.name) && this.raiseRecoverable(t.start, (e ? "Binding " : "Assigning to ") + t.name + " in strict mode"), s && (Qe(s, t.name) && this.raiseRecoverable(t.start, "Argument name clash"), s[t.name] = !0), e !== ts && e !== Vs && this.declareName(t.name, e, t.start);
1322
1322
  break;
1323
1323
  case "ChainExpression":
1324
1324
  this.raiseRecoverable(t.start, "Optional chaining cannot appear in left-hand side");
@@ -1404,7 +1404,7 @@ S.parseMaybeAssign = function(t, e, s) {
1404
1404
  this.exprAllowed = !1;
1405
1405
  }
1406
1406
  var i = !1, r = -1, n = -1;
1407
- e ? (r = e.parenthesizedAssign, n = e.trailingComma, e.parenthesizedAssign = e.trailingComma = -1) : (e = new Qe(), i = !0);
1407
+ e ? (r = e.parenthesizedAssign, n = e.trailingComma, e.parenthesizedAssign = e.trailingComma = -1) : (e = new Xe(), i = !0);
1408
1408
  var a = this.start, o = this.startLoc;
1409
1409
  (this.type === u.parenL || this.type === u.name) && (this.potentialArrowAt = this.start);
1410
1410
  var c = this.parseMaybeConditional(t, e);
@@ -1490,7 +1490,7 @@ S.parseSubscript = function(t, e, s, i, r, n) {
1490
1490
  var h = this.startNodeAt(e, s);
1491
1491
  h.object = t, h.property = c ? this.parseExpression() : this.parseIdent(this.options.allowReserved !== "never"), h.computed = !!c, c && this.expect(u.bracketR), a && (h.optional = o), t = this.finishNode(h, "MemberExpression");
1492
1492
  } else if (!i && this.eat(u.parenL)) {
1493
- var l = new Qe(), p = this.yieldPos, d = this.awaitPos, f = this.awaitIdentPos;
1493
+ var l = new Xe(), p = this.yieldPos, d = this.awaitPos, f = this.awaitIdentPos;
1494
1494
  this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
1495
1495
  var m = this.parseExprList(u.parenR, this.options.ecmaVersion >= 8, !1, l);
1496
1496
  if (r && !o && !this.canInsertSemicolon() && this.eat(u.arrow))
@@ -1593,7 +1593,7 @@ S.parseParenAndDistinguishExpression = function(t) {
1593
1593
  var e = this.start, s = this.startLoc, i, r = this.options.ecmaVersion >= 8;
1594
1594
  if (this.options.ecmaVersion >= 6) {
1595
1595
  this.next();
1596
- var n = this.start, a = this.startLoc, o = [], c = !0, h = !1, l = new Qe(), p = this.yieldPos, d = this.awaitPos, f;
1596
+ var n = this.start, a = this.startLoc, o = [], c = !0, h = !1, l = new Xe(), p = this.yieldPos, d = this.awaitPos, f;
1597
1597
  for (this.yieldPos = 0, this.awaitPos = 0; this.type !== u.parenR; )
1598
1598
  if (c ? c = !1 : this.expect(u.comma), r && this.afterTrailingComma(u.parenR, !0)) {
1599
1599
  h = !0;
@@ -1706,11 +1706,11 @@ S.initFunction = function(t) {
1706
1706
  };
1707
1707
  S.parseMethod = function(t, e, s) {
1708
1708
  var i = this.startNode(), r = this.yieldPos, n = this.awaitPos, a = this.awaitIdentPos;
1709
- return this.initFunction(i), this.options.ecmaVersion >= 6 && (i.generator = t), this.options.ecmaVersion >= 8 && (i.async = !!e), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Nt(e, i.generator) | Ps | (s ? Ts : 0)), this.expect(u.parenL), i.params = this.parseBindingList(u.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(i, !1, !0), this.yieldPos = r, this.awaitPos = n, this.awaitIdentPos = a, this.finishNode(i, "FunctionExpression");
1709
+ return this.initFunction(i), this.options.ecmaVersion >= 6 && (i.generator = t), this.options.ecmaVersion >= 8 && (i.async = !!e), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Rt(e, i.generator) | Ps | (s ? Ts : 0)), this.expect(u.parenL), i.params = this.parseBindingList(u.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(i, !1, !0), this.yieldPos = r, this.awaitPos = n, this.awaitIdentPos = a, this.finishNode(i, "FunctionExpression");
1710
1710
  };
1711
1711
  S.parseArrowExpression = function(t, e, s) {
1712
1712
  var i = this.yieldPos, r = this.awaitPos, n = this.awaitIdentPos;
1713
- return this.enterScope(Nt(s, !1) | Is), this.initFunction(t), this.options.ecmaVersion >= 8 && (t.async = !!s), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, t.params = this.toAssignableList(e, !0), this.parseFunctionBody(t, !0, !1), this.yieldPos = i, this.awaitPos = r, this.awaitIdentPos = n, this.finishNode(t, "ArrowFunctionExpression");
1713
+ return this.enterScope(Rt(s, !1) | Is), this.initFunction(t), this.options.ecmaVersion >= 8 && (t.async = !!s), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, t.params = this.toAssignableList(e, !0), this.parseFunctionBody(t, !0, !1), this.yieldPos = i, this.awaitPos = r, this.awaitIdentPos = n, this.finishNode(t, "ArrowFunctionExpression");
1714
1714
  };
1715
1715
  S.parseFunctionBody = function(t, e, s) {
1716
1716
  var i = e && this.type !== u.braceL, r = this.strict, n = !1;
@@ -1735,7 +1735,7 @@ S.isSimpleParamList = function(t) {
1735
1735
  S.checkParams = function(t, e) {
1736
1736
  for (var s = {}, i = 0, r = t.params; i < r.length; i += 1) {
1737
1737
  var n = r[i];
1738
- this.checkLVal(n, Rt, e ? null : s);
1738
+ this.checkLVal(n, Vt, e ? null : s);
1739
1739
  }
1740
1740
  };
1741
1741
  S.parseExprList = function(t, e, s, i) {
@@ -1770,17 +1770,17 @@ S.parseAwait = function() {
1770
1770
  var t = this.startNode();
1771
1771
  return this.next(), t.argument = this.parseMaybeUnary(null, !1), this.finishNode(t, "AwaitExpression");
1772
1772
  };
1773
- var Ue = P.prototype;
1774
- Ue.raise = function(t, e) {
1773
+ var qe = P.prototype;
1774
+ qe.raise = function(t, e) {
1775
1775
  var s = ws(this.input, t);
1776
1776
  e += " (" + s.line + ":" + s.column + ")";
1777
1777
  var i = new SyntaxError(e);
1778
1778
  throw i.pos = t, i.loc = s, i.raisedAt = this.pos, i;
1779
1779
  };
1780
- Ue.raiseRecoverable = Ue.raise;
1781
- Ue.curPosition = function() {
1780
+ qe.raiseRecoverable = qe.raise;
1781
+ qe.curPosition = function() {
1782
1782
  if (this.options.locations)
1783
- return new Te(this.curLine, this.pos - this.lineStart);
1783
+ return new Ne(this.curLine, this.pos - this.lineStart);
1784
1784
  };
1785
1785
  var ue = P.prototype, Qi = function(e) {
1786
1786
  this.flags = e, this.var = [], this.lexical = [], this.functions = [];
@@ -1792,13 +1792,13 @@ ue.exitScope = function() {
1792
1792
  this.scopeStack.pop();
1793
1793
  };
1794
1794
  ue.treatFunctionsAsVarInScope = function(t) {
1795
- return t.flags & Oe || !this.inModule && t.flags & Ne;
1795
+ return t.flags & Le || !this.inModule && t.flags & Re;
1796
1796
  };
1797
1797
  ue.declareName = function(t, e, s) {
1798
1798
  var i = !1;
1799
- if (e === ee) {
1799
+ if (e === te) {
1800
1800
  var r = this.currentScope();
1801
- i = r.lexical.indexOf(t) > -1 || r.functions.indexOf(t) > -1 || r.var.indexOf(t) > -1, r.lexical.push(t), this.inModule && r.flags & Ne && delete this.undefinedExports[t];
1801
+ i = r.lexical.indexOf(t) > -1 || r.functions.indexOf(t) > -1 || r.var.indexOf(t) > -1, r.lexical.push(t), this.inModule && r.flags & Re && delete this.undefinedExports[t];
1802
1802
  } else if (e === Rs) {
1803
1803
  var n = this.currentScope();
1804
1804
  n.lexical.push(t);
@@ -1812,7 +1812,7 @@ ue.declareName = function(t, e, s) {
1812
1812
  i = !0;
1813
1813
  break;
1814
1814
  }
1815
- if (c.var.push(t), this.inModule && c.flags & Ne && delete this.undefinedExports[t], c.flags & Tt)
1815
+ if (c.var.push(t), this.inModule && c.flags & Re && delete this.undefinedExports[t], c.flags & Nt)
1816
1816
  break;
1817
1817
  }
1818
1818
  i && this.raiseRecoverable(s, "Identifier '" + t + "' has already been declared");
@@ -1826,59 +1826,59 @@ ue.currentScope = function() {
1826
1826
  ue.currentVarScope = function() {
1827
1827
  for (var t = this.scopeStack.length - 1; ; t--) {
1828
1828
  var e = this.scopeStack[t];
1829
- if (e.flags & Tt)
1829
+ if (e.flags & Nt)
1830
1830
  return e;
1831
1831
  }
1832
1832
  };
1833
1833
  ue.currentThisScope = function() {
1834
1834
  for (var t = this.scopeStack.length - 1; ; t--) {
1835
1835
  var e = this.scopeStack[t];
1836
- if (e.flags & Tt && !(e.flags & Is))
1836
+ if (e.flags & Nt && !(e.flags & Is))
1837
1837
  return e;
1838
1838
  }
1839
1839
  };
1840
- var Ot = function(e, s, i) {
1841
- this.type = "", this.start = s, this.end = 0, e.options.locations && (this.loc = new Je(e, i)), e.options.directSourceFile && (this.sourceFile = e.options.directSourceFile), e.options.ranges && (this.range = [s, 0]);
1842
- }, Ye = P.prototype;
1843
- Ye.startNode = function() {
1844
- return new Ot(this, this.start, this.startLoc);
1840
+ var Lt = function(e, s, i) {
1841
+ this.type = "", this.start = s, this.end = 0, e.options.locations && (this.loc = new Ye(e, i)), e.options.directSourceFile && (this.sourceFile = e.options.directSourceFile), e.options.ranges && (this.range = [s, 0]);
1842
+ }, Ze = P.prototype;
1843
+ Ze.startNode = function() {
1844
+ return new Lt(this, this.start, this.startLoc);
1845
1845
  };
1846
- Ye.startNodeAt = function(t, e) {
1847
- return new Ot(this, t, e);
1846
+ Ze.startNodeAt = function(t, e) {
1847
+ return new Lt(this, t, e);
1848
1848
  };
1849
1849
  function Ls(t, e, s, i) {
1850
1850
  return t.type = e, t.end = s, this.options.locations && (t.loc.end = i), this.options.ranges && (t.range[1] = s), t;
1851
1851
  }
1852
- Ye.finishNode = function(t, e) {
1852
+ Ze.finishNode = function(t, e) {
1853
1853
  return Ls.call(this, t, e, this.lastTokEnd, this.lastTokEndLoc);
1854
1854
  };
1855
- Ye.finishNodeAt = function(t, e, s, i) {
1855
+ Ze.finishNodeAt = function(t, e, s, i) {
1856
1856
  return Ls.call(this, t, e, s, i);
1857
1857
  };
1858
- var z = function(e, s, i, r, n) {
1858
+ var J = function(e, s, i, r, n) {
1859
1859
  this.token = e, this.isExpr = !!s, this.preserveSpace = !!i, this.override = r, this.generator = !!n;
1860
- }, I = {
1861
- b_stat: new z("{", !1),
1862
- b_expr: new z("{", !0),
1863
- b_tmpl: new z("${", !1),
1864
- p_stat: new z("(", !1),
1865
- p_expr: new z("(", !0),
1866
- q_tmpl: new z("`", !0, !0, function(t) {
1860
+ }, A = {
1861
+ b_stat: new J("{", !1),
1862
+ b_expr: new J("{", !0),
1863
+ b_tmpl: new J("${", !1),
1864
+ p_stat: new J("(", !1),
1865
+ p_expr: new J("(", !0),
1866
+ q_tmpl: new J("`", !0, !0, function(t) {
1867
1867
  return t.tryReadTemplateToken();
1868
1868
  }),
1869
- f_stat: new z("function", !1),
1870
- f_expr: new z("function", !0),
1871
- f_expr_gen: new z("function", !0, !1, null, !0),
1872
- f_gen: new z("function", !1, !1, null, !0)
1873
- }, Xe = P.prototype;
1874
- Xe.initialContext = function() {
1875
- return [I.b_stat];
1876
- };
1877
- Xe.braceIsBlock = function(t) {
1869
+ f_stat: new J("function", !1),
1870
+ f_expr: new J("function", !0),
1871
+ f_expr_gen: new J("function", !0, !1, null, !0),
1872
+ f_gen: new J("function", !1, !1, null, !0)
1873
+ }, et = P.prototype;
1874
+ et.initialContext = function() {
1875
+ return [A.b_stat];
1876
+ };
1877
+ et.braceIsBlock = function(t) {
1878
1878
  var e = this.curContext();
1879
- return e === I.f_expr || e === I.f_stat ? !0 : t === u.colon && (e === I.b_stat || e === I.b_expr) ? !e.isExpr : t === u._return || t === u.name && this.exprAllowed ? W.test(this.input.slice(this.lastTokEnd, this.start)) : t === u._else || t === u.semi || t === u.eof || t === u.parenR || t === u.arrow ? !0 : t === u.braceL ? e === I.b_stat : t === u._var || t === u._const || t === u.name ? !1 : !this.exprAllowed;
1879
+ return e === A.f_expr || e === A.f_stat ? !0 : t === u.colon && (e === A.b_stat || e === A.b_expr) ? !e.isExpr : t === u._return || t === u.name && this.exprAllowed ? W.test(this.input.slice(this.lastTokEnd, this.start)) : t === u._else || t === u.semi || t === u.eof || t === u.parenR || t === u.arrow ? !0 : t === u.braceL ? e === A.b_stat : t === u._var || t === u._const || t === u.name ? !1 : !this.exprAllowed;
1880
1880
  };
1881
- Xe.inGeneratorContext = function() {
1881
+ et.inGeneratorContext = function() {
1882
1882
  for (var t = this.context.length - 1; t >= 1; t--) {
1883
1883
  var e = this.context[t];
1884
1884
  if (e.token === "function")
@@ -1886,7 +1886,7 @@ Xe.inGeneratorContext = function() {
1886
1886
  }
1887
1887
  return !1;
1888
1888
  };
1889
- Xe.updateContext = function(t) {
1889
+ et.updateContext = function(t) {
1890
1890
  var e, s = this.type;
1891
1891
  s.keyword && t === u.dot ? this.exprAllowed = !1 : (e = s.updateContext) ? e.call(this, t) : this.exprAllowed = s.beforeExpr;
1892
1892
  };
@@ -1896,30 +1896,30 @@ u.parenR.updateContext = u.braceR.updateContext = function() {
1896
1896
  return;
1897
1897
  }
1898
1898
  var t = this.context.pop();
1899
- t === I.b_stat && this.curContext().token === "function" && (t = this.context.pop()), this.exprAllowed = !t.isExpr;
1899
+ t === A.b_stat && this.curContext().token === "function" && (t = this.context.pop()), this.exprAllowed = !t.isExpr;
1900
1900
  };
1901
1901
  u.braceL.updateContext = function(t) {
1902
- this.context.push(this.braceIsBlock(t) ? I.b_stat : I.b_expr), this.exprAllowed = !0;
1902
+ this.context.push(this.braceIsBlock(t) ? A.b_stat : A.b_expr), this.exprAllowed = !0;
1903
1903
  };
1904
1904
  u.dollarBraceL.updateContext = function() {
1905
- this.context.push(I.b_tmpl), this.exprAllowed = !0;
1905
+ this.context.push(A.b_tmpl), this.exprAllowed = !0;
1906
1906
  };
1907
1907
  u.parenL.updateContext = function(t) {
1908
1908
  var e = t === u._if || t === u._for || t === u._with || t === u._while;
1909
- this.context.push(e ? I.p_stat : I.p_expr), this.exprAllowed = !0;
1909
+ this.context.push(e ? A.p_stat : A.p_expr), this.exprAllowed = !0;
1910
1910
  };
1911
1911
  u.incDec.updateContext = function() {
1912
1912
  };
1913
1913
  u._function.updateContext = u._class.updateContext = function(t) {
1914
- t.beforeExpr && t !== u.semi && t !== u._else && !(t === u._return && W.test(this.input.slice(this.lastTokEnd, this.start))) && !((t === u.colon || t === u.braceL) && this.curContext() === I.b_stat) ? this.context.push(I.f_expr) : this.context.push(I.f_stat), this.exprAllowed = !1;
1914
+ t.beforeExpr && t !== u.semi && t !== u._else && !(t === u._return && W.test(this.input.slice(this.lastTokEnd, this.start))) && !((t === u.colon || t === u.braceL) && this.curContext() === A.b_stat) ? this.context.push(A.f_expr) : this.context.push(A.f_stat), this.exprAllowed = !1;
1915
1915
  };
1916
1916
  u.backQuote.updateContext = function() {
1917
- this.curContext() === I.q_tmpl ? this.context.pop() : this.context.push(I.q_tmpl), this.exprAllowed = !1;
1917
+ this.curContext() === A.q_tmpl ? this.context.pop() : this.context.push(A.q_tmpl), this.exprAllowed = !1;
1918
1918
  };
1919
1919
  u.star.updateContext = function(t) {
1920
1920
  if (t === u._function) {
1921
1921
  var e = this.context.length - 1;
1922
- this.context[e] === I.f_expr ? this.context[e] = I.f_expr_gen : this.context[e] = I.f_gen;
1922
+ this.context[e] === A.f_expr ? this.context[e] = A.f_expr_gen : this.context[e] = A.f_gen;
1923
1923
  }
1924
1924
  this.exprAllowed = !0;
1925
1925
  };
@@ -1936,30 +1936,30 @@ var Fs = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control
1936
1936
  10: Ds,
1937
1937
  11: Zi
1938
1938
  }, Bs = {};
1939
- function Lt(t) {
1939
+ function Ft(t) {
1940
1940
  var e = Bs[t] = {
1941
- binary: pe(Xi[t] + " " + ss),
1941
+ binary: fe(Xi[t] + " " + ss),
1942
1942
  nonBinary: {
1943
- General_Category: pe(ss),
1944
- Script: pe(er[t])
1943
+ General_Category: fe(ss),
1944
+ Script: fe(er[t])
1945
1945
  }
1946
1946
  };
1947
1947
  e.nonBinary.Script_Extensions = e.nonBinary.Script, e.nonBinary.gc = e.nonBinary.General_Category, e.nonBinary.sc = e.nonBinary.Script, e.nonBinary.scx = e.nonBinary.Script_Extensions;
1948
1948
  }
1949
- Lt(9);
1950
- Lt(10);
1951
- Lt(11);
1952
- var b = P.prototype, ie = function(e) {
1949
+ Ft(9);
1950
+ Ft(10);
1951
+ Ft(11);
1952
+ var x = P.prototype, re = function(e) {
1953
1953
  this.parser = e, this.validFlags = "gim" + (e.options.ecmaVersion >= 6 ? "uy" : "") + (e.options.ecmaVersion >= 9 ? "s" : ""), this.unicodeProperties = Bs[e.options.ecmaVersion >= 11 ? 11 : e.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = !1, this.switchN = !1, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = !1, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = [], this.backReferenceNames = [];
1954
1954
  };
1955
- ie.prototype.reset = function(e, s, i) {
1955
+ re.prototype.reset = function(e, s, i) {
1956
1956
  var r = i.indexOf("u") !== -1;
1957
1957
  this.start = e | 0, this.source = s + "", this.flags = i, this.switchU = r && this.parser.options.ecmaVersion >= 6, this.switchN = r && this.parser.options.ecmaVersion >= 9;
1958
1958
  };
1959
- ie.prototype.raise = function(e) {
1959
+ re.prototype.raise = function(e) {
1960
1960
  this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + e);
1961
1961
  };
1962
- ie.prototype.at = function(e, s) {
1962
+ re.prototype.at = function(e, s) {
1963
1963
  s === void 0 && (s = !1);
1964
1964
  var i = this.source, r = i.length;
1965
1965
  if (e >= r)
@@ -1970,7 +1970,7 @@ ie.prototype.at = function(e, s) {
1970
1970
  var a = i.charCodeAt(e + 1);
1971
1971
  return a >= 56320 && a <= 57343 ? (n << 10) + a - 56613888 : n;
1972
1972
  };
1973
- ie.prototype.nextIndex = function(e, s) {
1973
+ re.prototype.nextIndex = function(e, s) {
1974
1974
  s === void 0 && (s = !1);
1975
1975
  var i = this.source, r = i.length;
1976
1976
  if (e >= r)
@@ -1978,31 +1978,31 @@ ie.prototype.nextIndex = function(e, s) {
1978
1978
  var n = i.charCodeAt(e), a;
1979
1979
  return !(s || this.switchU) || n <= 55295 || n >= 57344 || e + 1 >= r || (a = i.charCodeAt(e + 1)) < 56320 || a > 57343 ? e + 1 : e + 2;
1980
1980
  };
1981
- ie.prototype.current = function(e) {
1981
+ re.prototype.current = function(e) {
1982
1982
  return e === void 0 && (e = !1), this.at(this.pos, e);
1983
1983
  };
1984
- ie.prototype.lookahead = function(e) {
1984
+ re.prototype.lookahead = function(e) {
1985
1985
  return e === void 0 && (e = !1), this.at(this.nextIndex(this.pos, e), e);
1986
1986
  };
1987
- ie.prototype.advance = function(e) {
1987
+ re.prototype.advance = function(e) {
1988
1988
  e === void 0 && (e = !1), this.pos = this.nextIndex(this.pos, e);
1989
1989
  };
1990
- ie.prototype.eat = function(e, s) {
1990
+ re.prototype.eat = function(e, s) {
1991
1991
  return s === void 0 && (s = !1), this.current(s) === e ? (this.advance(s), !0) : !1;
1992
1992
  };
1993
- function Ge(t) {
1993
+ function We(t) {
1994
1994
  return t <= 65535 ? String.fromCharCode(t) : (t -= 65536, String.fromCharCode((t >> 10) + 55296, (t & 1023) + 56320));
1995
1995
  }
1996
- b.validateRegExpFlags = function(t) {
1996
+ x.validateRegExpFlags = function(t) {
1997
1997
  for (var e = t.validFlags, s = t.flags, i = 0; i < s.length; i++) {
1998
1998
  var r = s.charAt(i);
1999
1999
  e.indexOf(r) === -1 && this.raise(t.start, "Invalid regular expression flag"), s.indexOf(r, i + 1) > -1 && this.raise(t.start, "Duplicate regular expression flag");
2000
2000
  }
2001
2001
  };
2002
- b.validateRegExpPattern = function(t) {
2002
+ x.validateRegExpPattern = function(t) {
2003
2003
  this.regexp_pattern(t), !t.switchN && this.options.ecmaVersion >= 9 && t.groupNames.length > 0 && (t.switchN = !0, this.regexp_pattern(t));
2004
2004
  };
2005
- b.regexp_pattern = function(t) {
2005
+ x.regexp_pattern = function(t) {
2006
2006
  t.pos = 0, t.lastIntValue = 0, t.lastStringValue = "", t.lastAssertionIsQuantifiable = !1, t.numCapturingParens = 0, t.maxBackReference = 0, t.groupNames.length = 0, t.backReferenceNames.length = 0, this.regexp_disjunction(t), t.pos !== t.source.length && (t.eat(
2007
2007
  41
2008
2008
  /* ) */
@@ -2018,7 +2018,7 @@ b.regexp_pattern = function(t) {
2018
2018
  t.groupNames.indexOf(i) === -1 && t.raise("Invalid named capture referenced");
2019
2019
  }
2020
2020
  };
2021
- b.regexp_disjunction = function(t) {
2021
+ x.regexp_disjunction = function(t) {
2022
2022
  for (this.regexp_alternative(t); t.eat(
2023
2023
  124
2024
2024
  /* | */
@@ -2029,14 +2029,14 @@ b.regexp_disjunction = function(t) {
2029
2029
  /* { */
2030
2030
  ) && t.raise("Lone quantifier brackets");
2031
2031
  };
2032
- b.regexp_alternative = function(t) {
2032
+ x.regexp_alternative = function(t) {
2033
2033
  for (; t.pos < t.source.length && this.regexp_eatTerm(t); )
2034
2034
  ;
2035
2035
  };
2036
- b.regexp_eatTerm = function(t) {
2036
+ x.regexp_eatTerm = function(t) {
2037
2037
  return this.regexp_eatAssertion(t) ? (t.lastAssertionIsQuantifiable && this.regexp_eatQuantifier(t) && t.switchU && t.raise("Invalid quantifier"), !0) : (t.switchU ? this.regexp_eatAtom(t) : this.regexp_eatExtendedAtom(t)) ? (this.regexp_eatQuantifier(t), !0) : !1;
2038
2038
  };
2039
- b.regexp_eatAssertion = function(t) {
2039
+ x.regexp_eatAssertion = function(t) {
2040
2040
  var e = t.pos;
2041
2041
  if (t.lastAssertionIsQuantifiable = !1, t.eat(
2042
2042
  94
@@ -2085,13 +2085,13 @@ b.regexp_eatAssertion = function(t) {
2085
2085
  }
2086
2086
  return t.pos = e, !1;
2087
2087
  };
2088
- b.regexp_eatQuantifier = function(t, e) {
2088
+ x.regexp_eatQuantifier = function(t, e) {
2089
2089
  return e === void 0 && (e = !1), this.regexp_eatQuantifierPrefix(t, e) ? (t.eat(
2090
2090
  63
2091
2091
  /* ? */
2092
2092
  ), !0) : !1;
2093
2093
  };
2094
- b.regexp_eatQuantifierPrefix = function(t, e) {
2094
+ x.regexp_eatQuantifierPrefix = function(t, e) {
2095
2095
  return t.eat(
2096
2096
  42
2097
2097
  /* * */
@@ -2103,7 +2103,7 @@ b.regexp_eatQuantifierPrefix = function(t, e) {
2103
2103
  /* ? */
2104
2104
  ) || this.regexp_eatBracedQuantifier(t, e);
2105
2105
  };
2106
- b.regexp_eatBracedQuantifier = function(t, e) {
2106
+ x.regexp_eatBracedQuantifier = function(t, e) {
2107
2107
  var s = t.pos;
2108
2108
  if (t.eat(
2109
2109
  123
@@ -2122,13 +2122,13 @@ b.regexp_eatBracedQuantifier = function(t, e) {
2122
2122
  }
2123
2123
  return !1;
2124
2124
  };
2125
- b.regexp_eatAtom = function(t) {
2125
+ x.regexp_eatAtom = function(t) {
2126
2126
  return this.regexp_eatPatternCharacters(t) || t.eat(
2127
2127
  46
2128
2128
  /* . */
2129
2129
  ) || this.regexp_eatReverseSolidusAtomEscape(t) || this.regexp_eatCharacterClass(t) || this.regexp_eatUncapturingGroup(t) || this.regexp_eatCapturingGroup(t);
2130
2130
  };
2131
- b.regexp_eatReverseSolidusAtomEscape = function(t) {
2131
+ x.regexp_eatReverseSolidusAtomEscape = function(t) {
2132
2132
  var e = t.pos;
2133
2133
  if (t.eat(
2134
2134
  92
@@ -2140,7 +2140,7 @@ b.regexp_eatReverseSolidusAtomEscape = function(t) {
2140
2140
  }
2141
2141
  return !1;
2142
2142
  };
2143
- b.regexp_eatUncapturingGroup = function(t) {
2143
+ x.regexp_eatUncapturingGroup = function(t) {
2144
2144
  var e = t.pos;
2145
2145
  if (t.eat(
2146
2146
  40
@@ -2164,7 +2164,7 @@ b.regexp_eatUncapturingGroup = function(t) {
2164
2164
  }
2165
2165
  return !1;
2166
2166
  };
2167
- b.regexp_eatCapturingGroup = function(t) {
2167
+ x.regexp_eatCapturingGroup = function(t) {
2168
2168
  if (t.eat(
2169
2169
  40
2170
2170
  /* ( */
@@ -2178,32 +2178,32 @@ b.regexp_eatCapturingGroup = function(t) {
2178
2178
  }
2179
2179
  return !1;
2180
2180
  };
2181
- b.regexp_eatExtendedAtom = function(t) {
2181
+ x.regexp_eatExtendedAtom = function(t) {
2182
2182
  return t.eat(
2183
2183
  46
2184
2184
  /* . */
2185
2185
  ) || this.regexp_eatReverseSolidusAtomEscape(t) || this.regexp_eatCharacterClass(t) || this.regexp_eatUncapturingGroup(t) || this.regexp_eatCapturingGroup(t) || this.regexp_eatInvalidBracedQuantifier(t) || this.regexp_eatExtendedPatternCharacter(t);
2186
2186
  };
2187
- b.regexp_eatInvalidBracedQuantifier = function(t) {
2187
+ x.regexp_eatInvalidBracedQuantifier = function(t) {
2188
2188
  return this.regexp_eatBracedQuantifier(t, !0) && t.raise("Nothing to repeat"), !1;
2189
2189
  };
2190
- b.regexp_eatSyntaxCharacter = function(t) {
2190
+ x.regexp_eatSyntaxCharacter = function(t) {
2191
2191
  var e = t.current();
2192
2192
  return $s(e) ? (t.lastIntValue = e, t.advance(), !0) : !1;
2193
2193
  };
2194
2194
  function $s(t) {
2195
2195
  return t === 36 || t >= 40 && t <= 43 || t === 46 || t === 63 || t >= 91 && t <= 94 || t >= 123 && t <= 125;
2196
2196
  }
2197
- b.regexp_eatPatternCharacters = function(t) {
2197
+ x.regexp_eatPatternCharacters = function(t) {
2198
2198
  for (var e = t.pos, s = 0; (s = t.current()) !== -1 && !$s(s); )
2199
2199
  t.advance();
2200
2200
  return t.pos !== e;
2201
2201
  };
2202
- b.regexp_eatExtendedPatternCharacter = function(t) {
2202
+ x.regexp_eatExtendedPatternCharacter = function(t) {
2203
2203
  var e = t.current();
2204
2204
  return e !== -1 && e !== 36 && !(e >= 40 && e <= 43) && e !== 46 && e !== 63 && e !== 91 && e !== 94 && e !== 124 ? (t.advance(), !0) : !1;
2205
2205
  };
2206
- b.regexp_groupSpecifier = function(t) {
2206
+ x.regexp_groupSpecifier = function(t) {
2207
2207
  if (t.eat(
2208
2208
  63
2209
2209
  /* ? */
@@ -2215,7 +2215,7 @@ b.regexp_groupSpecifier = function(t) {
2215
2215
  t.raise("Invalid group");
2216
2216
  }
2217
2217
  };
2218
- b.regexp_eatGroupName = function(t) {
2218
+ x.regexp_eatGroupName = function(t) {
2219
2219
  if (t.lastStringValue = "", t.eat(
2220
2220
  60
2221
2221
  /* < */
@@ -2229,32 +2229,32 @@ b.regexp_eatGroupName = function(t) {
2229
2229
  }
2230
2230
  return !1;
2231
2231
  };
2232
- b.regexp_eatRegExpIdentifierName = function(t) {
2232
+ x.regexp_eatRegExpIdentifierName = function(t) {
2233
2233
  if (t.lastStringValue = "", this.regexp_eatRegExpIdentifierStart(t)) {
2234
- for (t.lastStringValue += Ge(t.lastIntValue); this.regexp_eatRegExpIdentifierPart(t); )
2235
- t.lastStringValue += Ge(t.lastIntValue);
2234
+ for (t.lastStringValue += We(t.lastIntValue); this.regexp_eatRegExpIdentifierPart(t); )
2235
+ t.lastStringValue += We(t.lastIntValue);
2236
2236
  return !0;
2237
2237
  }
2238
2238
  return !1;
2239
2239
  };
2240
- b.regexp_eatRegExpIdentifierStart = function(t) {
2240
+ x.regexp_eatRegExpIdentifierStart = function(t) {
2241
2241
  var e = t.pos, s = this.options.ecmaVersion >= 11, i = t.current(s);
2242
2242
  return t.advance(s), i === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(t, s) && (i = t.lastIntValue), tr(i) ? (t.lastIntValue = i, !0) : (t.pos = e, !1);
2243
2243
  };
2244
2244
  function tr(t) {
2245
2245
  return oe(t, !0) || t === 36 || t === 95;
2246
2246
  }
2247
- b.regexp_eatRegExpIdentifierPart = function(t) {
2247
+ x.regexp_eatRegExpIdentifierPart = function(t) {
2248
2248
  var e = t.pos, s = this.options.ecmaVersion >= 11, i = t.current(s);
2249
2249
  return t.advance(s), i === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(t, s) && (i = t.lastIntValue), sr(i) ? (t.lastIntValue = i, !0) : (t.pos = e, !1);
2250
2250
  };
2251
2251
  function sr(t) {
2252
2252
  return Se(t, !0) || t === 36 || t === 95 || t === 8204 || t === 8205;
2253
2253
  }
2254
- b.regexp_eatAtomEscape = function(t) {
2254
+ x.regexp_eatAtomEscape = function(t) {
2255
2255
  return this.regexp_eatBackReference(t) || this.regexp_eatCharacterClassEscape(t) || this.regexp_eatCharacterEscape(t) || t.switchN && this.regexp_eatKGroupName(t) ? !0 : (t.switchU && (t.current() === 99 && t.raise("Invalid unicode escape"), t.raise("Invalid escape")), !1);
2256
2256
  };
2257
- b.regexp_eatBackReference = function(t) {
2257
+ x.regexp_eatBackReference = function(t) {
2258
2258
  var e = t.pos;
2259
2259
  if (this.regexp_eatDecimalEscape(t)) {
2260
2260
  var s = t.lastIntValue;
@@ -2266,7 +2266,7 @@ b.regexp_eatBackReference = function(t) {
2266
2266
  }
2267
2267
  return !1;
2268
2268
  };
2269
- b.regexp_eatKGroupName = function(t) {
2269
+ x.regexp_eatKGroupName = function(t) {
2270
2270
  if (t.eat(
2271
2271
  107
2272
2272
  /* k */
@@ -2277,10 +2277,10 @@ b.regexp_eatKGroupName = function(t) {
2277
2277
  }
2278
2278
  return !1;
2279
2279
  };
2280
- b.regexp_eatCharacterEscape = function(t) {
2280
+ x.regexp_eatCharacterEscape = function(t) {
2281
2281
  return this.regexp_eatControlEscape(t) || this.regexp_eatCControlLetter(t) || this.regexp_eatZero(t) || this.regexp_eatHexEscapeSequence(t) || this.regexp_eatRegExpUnicodeEscapeSequence(t, !1) || !t.switchU && this.regexp_eatLegacyOctalEscapeSequence(t) || this.regexp_eatIdentityEscape(t);
2282
2282
  };
2283
- b.regexp_eatCControlLetter = function(t) {
2283
+ x.regexp_eatCControlLetter = function(t) {
2284
2284
  var e = t.pos;
2285
2285
  if (t.eat(
2286
2286
  99
@@ -2292,21 +2292,21 @@ b.regexp_eatCControlLetter = function(t) {
2292
2292
  }
2293
2293
  return !1;
2294
2294
  };
2295
- b.regexp_eatZero = function(t) {
2296
- return t.current() === 48 && !Ze(t.lookahead()) ? (t.lastIntValue = 0, t.advance(), !0) : !1;
2295
+ x.regexp_eatZero = function(t) {
2296
+ return t.current() === 48 && !tt(t.lookahead()) ? (t.lastIntValue = 0, t.advance(), !0) : !1;
2297
2297
  };
2298
- b.regexp_eatControlEscape = function(t) {
2298
+ x.regexp_eatControlEscape = function(t) {
2299
2299
  var e = t.current();
2300
2300
  return e === 116 ? (t.lastIntValue = 9, t.advance(), !0) : e === 110 ? (t.lastIntValue = 10, t.advance(), !0) : e === 118 ? (t.lastIntValue = 11, t.advance(), !0) : e === 102 ? (t.lastIntValue = 12, t.advance(), !0) : e === 114 ? (t.lastIntValue = 13, t.advance(), !0) : !1;
2301
2301
  };
2302
- b.regexp_eatControlLetter = function(t) {
2302
+ x.regexp_eatControlLetter = function(t) {
2303
2303
  var e = t.current();
2304
2304
  return Hs(e) ? (t.lastIntValue = e % 32, t.advance(), !0) : !1;
2305
2305
  };
2306
2306
  function Hs(t) {
2307
2307
  return t >= 65 && t <= 90 || t >= 97 && t <= 122;
2308
2308
  }
2309
- b.regexp_eatRegExpUnicodeEscapeSequence = function(t, e) {
2309
+ x.regexp_eatRegExpUnicodeEscapeSequence = function(t, e) {
2310
2310
  e === void 0 && (e = !1);
2311
2311
  var s = t.pos, i = e || t.switchU;
2312
2312
  if (t.eat(
@@ -2347,7 +2347,7 @@ b.regexp_eatRegExpUnicodeEscapeSequence = function(t, e) {
2347
2347
  function ir(t) {
2348
2348
  return t >= 0 && t <= 1114111;
2349
2349
  }
2350
- b.regexp_eatIdentityEscape = function(t) {
2350
+ x.regexp_eatIdentityEscape = function(t) {
2351
2351
  if (t.switchU)
2352
2352
  return this.regexp_eatSyntaxCharacter(t) ? !0 : t.eat(
2353
2353
  47
@@ -2356,7 +2356,7 @@ b.regexp_eatIdentityEscape = function(t) {
2356
2356
  var e = t.current();
2357
2357
  return e !== 99 && (!t.switchN || e !== 107) ? (t.lastIntValue = e, t.advance(), !0) : !1;
2358
2358
  };
2359
- b.regexp_eatDecimalEscape = function(t) {
2359
+ x.regexp_eatDecimalEscape = function(t) {
2360
2360
  t.lastIntValue = 0;
2361
2361
  var e = t.current();
2362
2362
  if (e >= 49 && e <= 57) {
@@ -2367,7 +2367,7 @@ b.regexp_eatDecimalEscape = function(t) {
2367
2367
  }
2368
2368
  return !1;
2369
2369
  };
2370
- b.regexp_eatCharacterClassEscape = function(t) {
2370
+ x.regexp_eatCharacterClassEscape = function(t) {
2371
2371
  var e = t.current();
2372
2372
  if (rr(e))
2373
2373
  return t.lastIntValue = -1, t.advance(), !0;
@@ -2387,7 +2387,7 @@ b.regexp_eatCharacterClassEscape = function(t) {
2387
2387
  function rr(t) {
2388
2388
  return t === 100 || t === 68 || t === 115 || t === 83 || t === 119 || t === 87;
2389
2389
  }
2390
- b.regexp_eatUnicodePropertyValueExpression = function(t) {
2390
+ x.regexp_eatUnicodePropertyValueExpression = function(t) {
2391
2391
  var e = t.pos;
2392
2392
  if (this.regexp_eatUnicodePropertyName(t) && t.eat(
2393
2393
  61
@@ -2405,34 +2405,34 @@ b.regexp_eatUnicodePropertyValueExpression = function(t) {
2405
2405
  }
2406
2406
  return !1;
2407
2407
  };
2408
- b.regexp_validateUnicodePropertyNameAndValue = function(t, e, s) {
2409
- Ke(t.unicodeProperties.nonBinary, e) || t.raise("Invalid property name"), t.unicodeProperties.nonBinary[e].test(s) || t.raise("Invalid property value");
2408
+ x.regexp_validateUnicodePropertyNameAndValue = function(t, e, s) {
2409
+ Qe(t.unicodeProperties.nonBinary, e) || t.raise("Invalid property name"), t.unicodeProperties.nonBinary[e].test(s) || t.raise("Invalid property value");
2410
2410
  };
2411
- b.regexp_validateUnicodePropertyNameOrValue = function(t, e) {
2411
+ x.regexp_validateUnicodePropertyNameOrValue = function(t, e) {
2412
2412
  t.unicodeProperties.binary.test(e) || t.raise("Invalid property name");
2413
2413
  };
2414
- b.regexp_eatUnicodePropertyName = function(t) {
2414
+ x.regexp_eatUnicodePropertyName = function(t) {
2415
2415
  var e = 0;
2416
2416
  for (t.lastStringValue = ""; Us(e = t.current()); )
2417
- t.lastStringValue += Ge(e), t.advance();
2417
+ t.lastStringValue += We(e), t.advance();
2418
2418
  return t.lastStringValue !== "";
2419
2419
  };
2420
2420
  function Us(t) {
2421
2421
  return Hs(t) || t === 95;
2422
2422
  }
2423
- b.regexp_eatUnicodePropertyValue = function(t) {
2423
+ x.regexp_eatUnicodePropertyValue = function(t) {
2424
2424
  var e = 0;
2425
2425
  for (t.lastStringValue = ""; nr(e = t.current()); )
2426
- t.lastStringValue += Ge(e), t.advance();
2426
+ t.lastStringValue += We(e), t.advance();
2427
2427
  return t.lastStringValue !== "";
2428
2428
  };
2429
2429
  function nr(t) {
2430
- return Us(t) || Ze(t);
2430
+ return Us(t) || tt(t);
2431
2431
  }
2432
- b.regexp_eatLoneUnicodePropertyNameOrValue = function(t) {
2432
+ x.regexp_eatLoneUnicodePropertyNameOrValue = function(t) {
2433
2433
  return this.regexp_eatUnicodePropertyValue(t);
2434
2434
  };
2435
- b.regexp_eatCharacterClass = function(t) {
2435
+ x.regexp_eatCharacterClass = function(t) {
2436
2436
  if (t.eat(
2437
2437
  91
2438
2438
  /* [ */
@@ -2449,7 +2449,7 @@ b.regexp_eatCharacterClass = function(t) {
2449
2449
  }
2450
2450
  return !1;
2451
2451
  };
2452
- b.regexp_classRanges = function(t) {
2452
+ x.regexp_classRanges = function(t) {
2453
2453
  for (; this.regexp_eatClassAtom(t); ) {
2454
2454
  var e = t.lastIntValue;
2455
2455
  if (t.eat(
@@ -2461,7 +2461,7 @@ b.regexp_classRanges = function(t) {
2461
2461
  }
2462
2462
  }
2463
2463
  };
2464
- b.regexp_eatClassAtom = function(t) {
2464
+ x.regexp_eatClassAtom = function(t) {
2465
2465
  var e = t.pos;
2466
2466
  if (t.eat(
2467
2467
  92
@@ -2478,7 +2478,7 @@ b.regexp_eatClassAtom = function(t) {
2478
2478
  var i = t.current();
2479
2479
  return i !== 93 ? (t.lastIntValue = i, t.advance(), !0) : !1;
2480
2480
  };
2481
- b.regexp_eatClassEscape = function(t) {
2481
+ x.regexp_eatClassEscape = function(t) {
2482
2482
  var e = t.pos;
2483
2483
  if (t.eat(
2484
2484
  98
@@ -2500,11 +2500,11 @@ b.regexp_eatClassEscape = function(t) {
2500
2500
  }
2501
2501
  return this.regexp_eatCharacterClassEscape(t) || this.regexp_eatCharacterEscape(t);
2502
2502
  };
2503
- b.regexp_eatClassControlLetter = function(t) {
2503
+ x.regexp_eatClassControlLetter = function(t) {
2504
2504
  var e = t.current();
2505
- return Ze(e) || e === 95 ? (t.lastIntValue = e % 32, t.advance(), !0) : !1;
2505
+ return tt(e) || e === 95 ? (t.lastIntValue = e % 32, t.advance(), !0) : !1;
2506
2506
  };
2507
- b.regexp_eatHexEscapeSequence = function(t) {
2507
+ x.regexp_eatHexEscapeSequence = function(t) {
2508
2508
  var e = t.pos;
2509
2509
  if (t.eat(
2510
2510
  120
@@ -2516,16 +2516,16 @@ b.regexp_eatHexEscapeSequence = function(t) {
2516
2516
  }
2517
2517
  return !1;
2518
2518
  };
2519
- b.regexp_eatDecimalDigits = function(t) {
2519
+ x.regexp_eatDecimalDigits = function(t) {
2520
2520
  var e = t.pos, s = 0;
2521
- for (t.lastIntValue = 0; Ze(s = t.current()); )
2521
+ for (t.lastIntValue = 0; tt(s = t.current()); )
2522
2522
  t.lastIntValue = 10 * t.lastIntValue + (s - 48), t.advance();
2523
2523
  return t.pos !== e;
2524
2524
  };
2525
- function Ze(t) {
2525
+ function tt(t) {
2526
2526
  return t >= 48 && t <= 57;
2527
2527
  }
2528
- b.regexp_eatHexDigits = function(t) {
2528
+ x.regexp_eatHexDigits = function(t) {
2529
2529
  var e = t.pos, s = 0;
2530
2530
  for (t.lastIntValue = 0; Gs(s = t.current()); )
2531
2531
  t.lastIntValue = 16 * t.lastIntValue + qs(s), t.advance();
@@ -2537,7 +2537,7 @@ function Gs(t) {
2537
2537
  function qs(t) {
2538
2538
  return t >= 65 && t <= 70 ? 10 + (t - 65) : t >= 97 && t <= 102 ? 10 + (t - 97) : t - 48;
2539
2539
  }
2540
- b.regexp_eatLegacyOctalEscapeSequence = function(t) {
2540
+ x.regexp_eatLegacyOctalEscapeSequence = function(t) {
2541
2541
  if (this.regexp_eatOctalDigit(t)) {
2542
2542
  var e = t.lastIntValue;
2543
2543
  if (this.regexp_eatOctalDigit(t)) {
@@ -2549,14 +2549,14 @@ b.regexp_eatLegacyOctalEscapeSequence = function(t) {
2549
2549
  }
2550
2550
  return !1;
2551
2551
  };
2552
- b.regexp_eatOctalDigit = function(t) {
2552
+ x.regexp_eatOctalDigit = function(t) {
2553
2553
  var e = t.current();
2554
2554
  return Ws(e) ? (t.lastIntValue = e - 48, t.advance(), !0) : (t.lastIntValue = 0, !1);
2555
2555
  };
2556
2556
  function Ws(t) {
2557
2557
  return t >= 48 && t <= 55;
2558
2558
  }
2559
- b.regexp_eatFixedHexDigits = function(t, e) {
2559
+ x.regexp_eatFixedHexDigits = function(t, e) {
2560
2560
  var s = t.pos;
2561
2561
  t.lastIntValue = 0;
2562
2562
  for (var i = 0; i < e; ++i) {
@@ -2567,16 +2567,16 @@ b.regexp_eatFixedHexDigits = function(t, e) {
2567
2567
  }
2568
2568
  return !0;
2569
2569
  };
2570
- var Ft = function(e) {
2571
- this.type = e.type, this.value = e.value, this.start = e.start, this.end = e.end, e.options.locations && (this.loc = new Je(e, e.startLoc, e.endLoc)), e.options.ranges && (this.range = [e.start, e.end]);
2572
- }, C = P.prototype;
2573
- C.next = function(t) {
2574
- !t && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new Ft(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
2570
+ var jt = function(e) {
2571
+ this.type = e.type, this.value = e.value, this.start = e.start, this.end = e.end, e.options.locations && (this.loc = new Ye(e, e.startLoc, e.endLoc)), e.options.ranges && (this.range = [e.start, e.end]);
2572
+ }, w = P.prototype;
2573
+ w.next = function(t) {
2574
+ !t && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new jt(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
2575
2575
  };
2576
- C.getToken = function() {
2577
- return this.next(), new Ft(this);
2576
+ w.getToken = function() {
2577
+ return this.next(), new jt(this);
2578
2578
  };
2579
- typeof Symbol < "u" && (C[Symbol.iterator] = function() {
2579
+ typeof Symbol < "u" && (w[Symbol.iterator] = function() {
2580
2580
  var t = this;
2581
2581
  return {
2582
2582
  next: function() {
@@ -2588,10 +2588,10 @@ typeof Symbol < "u" && (C[Symbol.iterator] = function() {
2588
2588
  }
2589
2589
  };
2590
2590
  });
2591
- C.curContext = function() {
2591
+ w.curContext = function() {
2592
2592
  return this.context[this.context.length - 1];
2593
2593
  };
2594
- C.nextToken = function() {
2594
+ w.nextToken = function() {
2595
2595
  var t = this.curContext();
2596
2596
  if ((!t || !t.preserveSpace) && this.skipSpace(), this.start = this.pos, this.options.locations && (this.startLoc = this.curPosition()), this.pos >= this.input.length)
2597
2597
  return this.finishToken(u.eof);
@@ -2599,21 +2599,21 @@ C.nextToken = function() {
2599
2599
  return t.override(this);
2600
2600
  this.readToken(this.fullCharCodeAtPos());
2601
2601
  };
2602
- C.readToken = function(t) {
2602
+ w.readToken = function(t) {
2603
2603
  return oe(t, this.options.ecmaVersion >= 6) || t === 92 ? this.readWord() : this.getTokenFromCode(t);
2604
2604
  };
2605
- C.fullCharCodeAtPos = function() {
2605
+ w.fullCharCodeAtPos = function() {
2606
2606
  var t = this.input.charCodeAt(this.pos);
2607
2607
  if (t <= 55295 || t >= 57344)
2608
2608
  return t;
2609
2609
  var e = this.input.charCodeAt(this.pos + 1);
2610
2610
  return (t << 10) + e - 56613888;
2611
2611
  };
2612
- C.skipBlockComment = function() {
2612
+ w.skipBlockComment = function() {
2613
2613
  var t = this.options.onComment && this.curPosition(), e = this.pos, s = this.input.indexOf("*/", this.pos += 2);
2614
2614
  if (s === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = s + 2, this.options.locations) {
2615
- Pe.lastIndex = e;
2616
- for (var i; (i = Pe.exec(this.input)) && i.index < this.pos; )
2615
+ Te.lastIndex = e;
2616
+ for (var i; (i = Te.exec(this.input)) && i.index < this.pos; )
2617
2617
  ++this.curLine, this.lineStart = i.index + i[0].length;
2618
2618
  }
2619
2619
  this.options.onComment && this.options.onComment(
@@ -2625,8 +2625,8 @@ C.skipBlockComment = function() {
2625
2625
  this.curPosition()
2626
2626
  );
2627
2627
  };
2628
- C.skipLineComment = function(t) {
2629
- for (var e = this.pos, s = this.options.onComment && this.curPosition(), i = this.input.charCodeAt(this.pos += t); this.pos < this.input.length && !Ve(i); )
2628
+ w.skipLineComment = function(t) {
2629
+ for (var e = this.pos, s = this.options.onComment && this.curPosition(), i = this.input.charCodeAt(this.pos += t); this.pos < this.input.length && !Oe(i); )
2630
2630
  i = this.input.charCodeAt(++this.pos);
2631
2631
  this.options.onComment && this.options.onComment(
2632
2632
  !1,
@@ -2637,7 +2637,7 @@ C.skipLineComment = function(t) {
2637
2637
  this.curPosition()
2638
2638
  );
2639
2639
  };
2640
- C.skipSpace = function() {
2640
+ w.skipSpace = function() {
2641
2641
  e: for (; this.pos < this.input.length; ) {
2642
2642
  var t = this.input.charCodeAt(this.pos);
2643
2643
  switch (t) {
@@ -2672,27 +2672,27 @@ C.skipSpace = function() {
2672
2672
  }
2673
2673
  }
2674
2674
  };
2675
- C.finishToken = function(t, e) {
2675
+ w.finishToken = function(t, e) {
2676
2676
  this.end = this.pos, this.options.locations && (this.endLoc = this.curPosition());
2677
2677
  var s = this.type;
2678
2678
  this.type = t, this.value = e, this.updateContext(s);
2679
2679
  };
2680
- C.readToken_dot = function() {
2680
+ w.readToken_dot = function() {
2681
2681
  var t = this.input.charCodeAt(this.pos + 1);
2682
2682
  if (t >= 48 && t <= 57)
2683
2683
  return this.readNumber(!0);
2684
2684
  var e = this.input.charCodeAt(this.pos + 2);
2685
2685
  return this.options.ecmaVersion >= 6 && t === 46 && e === 46 ? (this.pos += 3, this.finishToken(u.ellipsis)) : (++this.pos, this.finishToken(u.dot));
2686
2686
  };
2687
- C.readToken_slash = function() {
2687
+ w.readToken_slash = function() {
2688
2688
  var t = this.input.charCodeAt(this.pos + 1);
2689
2689
  return this.exprAllowed ? (++this.pos, this.readRegexp()) : t === 61 ? this.finishOp(u.assign, 2) : this.finishOp(u.slash, 1);
2690
2690
  };
2691
- C.readToken_mult_modulo_exp = function(t) {
2691
+ w.readToken_mult_modulo_exp = function(t) {
2692
2692
  var e = this.input.charCodeAt(this.pos + 1), s = 1, i = t === 42 ? u.star : u.modulo;
2693
2693
  return this.options.ecmaVersion >= 7 && t === 42 && e === 42 && (++s, i = u.starstar, e = this.input.charCodeAt(this.pos + 2)), e === 61 ? this.finishOp(u.assign, s + 1) : this.finishOp(i, s);
2694
2694
  };
2695
- C.readToken_pipe_amp = function(t) {
2695
+ w.readToken_pipe_amp = function(t) {
2696
2696
  var e = this.input.charCodeAt(this.pos + 1);
2697
2697
  if (e === t) {
2698
2698
  if (this.options.ecmaVersion >= 12) {
@@ -2704,23 +2704,23 @@ C.readToken_pipe_amp = function(t) {
2704
2704
  }
2705
2705
  return e === 61 ? this.finishOp(u.assign, 2) : this.finishOp(t === 124 ? u.bitwiseOR : u.bitwiseAND, 1);
2706
2706
  };
2707
- C.readToken_caret = function() {
2707
+ w.readToken_caret = function() {
2708
2708
  var t = this.input.charCodeAt(this.pos + 1);
2709
2709
  return t === 61 ? this.finishOp(u.assign, 2) : this.finishOp(u.bitwiseXOR, 1);
2710
2710
  };
2711
- C.readToken_plus_min = function(t) {
2711
+ w.readToken_plus_min = function(t) {
2712
2712
  var e = this.input.charCodeAt(this.pos + 1);
2713
2713
  return e === t ? e === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || W.test(this.input.slice(this.lastTokEnd, this.pos))) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(u.incDec, 2) : e === 61 ? this.finishOp(u.assign, 2) : this.finishOp(u.plusMin, 1);
2714
2714
  };
2715
- C.readToken_lt_gt = function(t) {
2715
+ w.readToken_lt_gt = function(t) {
2716
2716
  var e = this.input.charCodeAt(this.pos + 1), s = 1;
2717
2717
  return e === t ? (s = t === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2, this.input.charCodeAt(this.pos + s) === 61 ? this.finishOp(u.assign, s + 1) : this.finishOp(u.bitShift, s)) : e === 33 && t === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 && this.input.charCodeAt(this.pos + 3) === 45 ? (this.skipLineComment(4), this.skipSpace(), this.nextToken()) : (e === 61 && (s = 2), this.finishOp(u.relational, s));
2718
2718
  };
2719
- C.readToken_eq_excl = function(t) {
2719
+ w.readToken_eq_excl = function(t) {
2720
2720
  var e = this.input.charCodeAt(this.pos + 1);
2721
2721
  return e === 61 ? this.finishOp(u.equality, this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2) : t === 61 && e === 62 && this.options.ecmaVersion >= 6 ? (this.pos += 2, this.finishToken(u.arrow)) : this.finishOp(t === 61 ? u.eq : u.prefix, 1);
2722
2722
  };
2723
- C.readToken_question = function() {
2723
+ w.readToken_question = function() {
2724
2724
  var t = this.options.ecmaVersion;
2725
2725
  if (t >= 11) {
2726
2726
  var e = this.input.charCodeAt(this.pos + 1);
@@ -2740,7 +2740,7 @@ C.readToken_question = function() {
2740
2740
  }
2741
2741
  return this.finishOp(u.question, 1);
2742
2742
  };
2743
- C.getTokenFromCode = function(t) {
2743
+ w.getTokenFromCode = function(t) {
2744
2744
  switch (t) {
2745
2745
  // The interpretation of a dot depends on whether it is followed
2746
2746
  // by a digit or another two dots.
@@ -2823,13 +2823,13 @@ C.getTokenFromCode = function(t) {
2823
2823
  case 126:
2824
2824
  return this.finishOp(u.prefix, 1);
2825
2825
  }
2826
- this.raise(this.pos, "Unexpected character '" + jt(t) + "'");
2826
+ this.raise(this.pos, "Unexpected character '" + Mt(t) + "'");
2827
2827
  };
2828
- C.finishOp = function(t, e) {
2828
+ w.finishOp = function(t, e) {
2829
2829
  var s = this.input.slice(this.pos, this.pos + e);
2830
2830
  return this.pos += e, this.finishToken(t, s);
2831
2831
  };
2832
- C.readRegexp = function() {
2832
+ w.readRegexp = function() {
2833
2833
  for (var t, e, s = this.pos; ; ) {
2834
2834
  this.pos >= this.input.length && this.raise(s, "Unterminated regular expression");
2835
2835
  var i = this.input.charAt(this.pos);
@@ -2850,7 +2850,7 @@ C.readRegexp = function() {
2850
2850
  ++this.pos;
2851
2851
  var n = this.pos, a = this.readWord1();
2852
2852
  this.containsEsc && this.unexpected(n);
2853
- var o = this.regexpState || (this.regexpState = new ie(this));
2853
+ var o = this.regexpState || (this.regexpState = new re(this));
2854
2854
  o.reset(s, r, a), this.validateRegExpFlags(o), this.validateRegExpPattern(o);
2855
2855
  var c = null;
2856
2856
  try {
@@ -2859,7 +2859,7 @@ C.readRegexp = function() {
2859
2859
  }
2860
2860
  return this.finishToken(u.regexp, { pattern: r, flags: a, value: c });
2861
2861
  };
2862
- C.readInt = function(t, e, s) {
2862
+ w.readInt = function(t, e, s) {
2863
2863
  for (var i = this.options.ecmaVersion >= 12 && e === void 0, r = s && this.input.charCodeAt(this.pos) === 48, n = this.pos, a = 0, o = 0, c = 0, h = e ?? 1 / 0; c < h; ++c, ++this.pos) {
2864
2864
  var l = this.input.charCodeAt(this.pos), p = void 0;
2865
2865
  if (i && l === 95) {
@@ -2878,13 +2878,13 @@ function ar(t, e) {
2878
2878
  function zs(t) {
2879
2879
  return typeof BigInt != "function" ? null : BigInt(t.replace(/_/g, ""));
2880
2880
  }
2881
- C.readRadixNumber = function(t) {
2881
+ w.readRadixNumber = function(t) {
2882
2882
  var e = this.pos;
2883
2883
  this.pos += 2;
2884
2884
  var s = this.readInt(t);
2885
2885
  return s == null && this.raise(this.start + 2, "Expected number in radix " + t), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (s = zs(this.input.slice(e, this.pos)), ++this.pos) : oe(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(u.num, s);
2886
2886
  };
2887
- C.readNumber = function(t) {
2887
+ w.readNumber = function(t) {
2888
2888
  var e = this.pos;
2889
2889
  !t && this.readInt(10, void 0, !0) === null && this.raise(e, "Invalid number");
2890
2890
  var s = this.pos - e >= 2 && this.input.charCodeAt(e) === 48;
@@ -2898,7 +2898,7 @@ C.readNumber = function(t) {
2898
2898
  var n = ar(this.input.slice(e, this.pos), s);
2899
2899
  return this.finishToken(u.num, n);
2900
2900
  };
2901
- C.readCodePoint = function() {
2901
+ w.readCodePoint = function() {
2902
2902
  var t = this.input.charCodeAt(this.pos), e;
2903
2903
  if (t === 123) {
2904
2904
  this.options.ecmaVersion < 6 && this.unexpected();
@@ -2908,21 +2908,21 @@ C.readCodePoint = function() {
2908
2908
  e = this.readHexChar(4);
2909
2909
  return e;
2910
2910
  };
2911
- function jt(t) {
2911
+ function Mt(t) {
2912
2912
  return t <= 65535 ? String.fromCharCode(t) : (t -= 65536, String.fromCharCode((t >> 10) + 55296, (t & 1023) + 56320));
2913
2913
  }
2914
- C.readString = function(t) {
2914
+ w.readString = function(t) {
2915
2915
  for (var e = "", s = ++this.pos; ; ) {
2916
2916
  this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
2917
2917
  var i = this.input.charCodeAt(this.pos);
2918
2918
  if (i === t)
2919
2919
  break;
2920
- i === 92 ? (e += this.input.slice(s, this.pos), e += this.readEscapedChar(!1), s = this.pos) : (Ve(i, this.options.ecmaVersion >= 10) && this.raise(this.start, "Unterminated string constant"), ++this.pos);
2920
+ i === 92 ? (e += this.input.slice(s, this.pos), e += this.readEscapedChar(!1), s = this.pos) : (Oe(i, this.options.ecmaVersion >= 10) && this.raise(this.start, "Unterminated string constant"), ++this.pos);
2921
2921
  }
2922
2922
  return e += this.input.slice(s, this.pos++), this.finishToken(u.string, e);
2923
2923
  };
2924
2924
  var Ks = {};
2925
- C.tryReadTemplateToken = function() {
2925
+ w.tryReadTemplateToken = function() {
2926
2926
  this.inTemplateElement = !0;
2927
2927
  try {
2928
2928
  this.readTmplToken();
@@ -2934,12 +2934,12 @@ C.tryReadTemplateToken = function() {
2934
2934
  }
2935
2935
  this.inTemplateElement = !1;
2936
2936
  };
2937
- C.invalidStringToken = function(t, e) {
2937
+ w.invalidStringToken = function(t, e) {
2938
2938
  if (this.inTemplateElement && this.options.ecmaVersion >= 9)
2939
2939
  throw Ks;
2940
2940
  this.raise(t, e);
2941
2941
  };
2942
- C.readTmplToken = function() {
2942
+ w.readTmplToken = function() {
2943
2943
  for (var t = "", e = this.pos; ; ) {
2944
2944
  this.pos >= this.input.length && this.raise(this.start, "Unterminated template");
2945
2945
  var s = this.input.charCodeAt(this.pos);
@@ -2947,7 +2947,7 @@ C.readTmplToken = function() {
2947
2947
  return this.pos === this.start && (this.type === u.template || this.type === u.invalidTemplate) ? s === 36 ? (this.pos += 2, this.finishToken(u.dollarBraceL)) : (++this.pos, this.finishToken(u.backQuote)) : (t += this.input.slice(e, this.pos), this.finishToken(u.template, t));
2948
2948
  if (s === 92)
2949
2949
  t += this.input.slice(e, this.pos), t += this.readEscapedChar(!0), e = this.pos;
2950
- else if (Ve(s)) {
2950
+ else if (Oe(s)) {
2951
2951
  switch (t += this.input.slice(e, this.pos), ++this.pos, s) {
2952
2952
  case 13:
2953
2953
  this.input.charCodeAt(this.pos) === 10 && ++this.pos;
@@ -2964,7 +2964,7 @@ C.readTmplToken = function() {
2964
2964
  ++this.pos;
2965
2965
  }
2966
2966
  };
2967
- C.readInvalidTemplateToken = function() {
2967
+ w.readInvalidTemplateToken = function() {
2968
2968
  for (; this.pos < this.input.length; this.pos++)
2969
2969
  switch (this.input[this.pos]) {
2970
2970
  case "\\":
@@ -2979,7 +2979,7 @@ C.readInvalidTemplateToken = function() {
2979
2979
  }
2980
2980
  this.raise(this.start, "Unterminated template");
2981
2981
  };
2982
- C.readEscapedChar = function(t) {
2982
+ w.readEscapedChar = function(t) {
2983
2983
  var e = this.input.charCodeAt(++this.pos);
2984
2984
  switch (++this.pos, e) {
2985
2985
  case 110:
@@ -2993,7 +2993,7 @@ C.readEscapedChar = function(t) {
2993
2993
  return String.fromCharCode(this.readHexChar(2));
2994
2994
  // 'x'
2995
2995
  case 117:
2996
- return jt(this.readCodePoint());
2996
+ return Mt(this.readCodePoint());
2997
2997
  // 'u'
2998
2998
  case 116:
2999
2999
  return " ";
@@ -3029,14 +3029,14 @@ C.readEscapedChar = function(t) {
3029
3029
  t ? "Octal literal in template string" : "Octal literal in strict mode"
3030
3030
  ), String.fromCharCode(r);
3031
3031
  }
3032
- return Ve(e) ? "" : String.fromCharCode(e);
3032
+ return Oe(e) ? "" : String.fromCharCode(e);
3033
3033
  }
3034
3034
  };
3035
- C.readHexChar = function(t) {
3035
+ w.readHexChar = function(t) {
3036
3036
  var e = this.pos, s = this.readInt(16, t);
3037
3037
  return s === null && this.invalidStringToken(e, "Bad character escape sequence"), s;
3038
3038
  };
3039
- C.readWord1 = function() {
3039
+ w.readWord1 = function() {
3040
3040
  this.containsEsc = !1;
3041
3041
  for (var t = "", e = !0, s = this.pos, i = this.options.ecmaVersion >= 6; this.pos < this.input.length; ) {
3042
3042
  var r = this.fullCharCodeAtPos();
@@ -3047,37 +3047,37 @@ C.readWord1 = function() {
3047
3047
  var n = this.pos;
3048
3048
  this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.pos;
3049
3049
  var a = this.readCodePoint();
3050
- (e ? oe : Se)(a, i) || this.invalidStringToken(n, "Invalid Unicode escape"), t += jt(a), s = this.pos;
3050
+ (e ? oe : Se)(a, i) || this.invalidStringToken(n, "Invalid Unicode escape"), t += Mt(a), s = this.pos;
3051
3051
  } else
3052
3052
  break;
3053
3053
  e = !1;
3054
3054
  }
3055
3055
  return t + this.input.slice(s, this.pos);
3056
3056
  };
3057
- C.readWord = function() {
3057
+ w.readWord = function() {
3058
3058
  var t = this.readWord1(), e = u.name;
3059
- return this.keywords.test(t) && (e = Pt[t]), this.finishToken(e, t);
3059
+ return this.keywords.test(t) && (e = Tt[t]), this.finishToken(e, t);
3060
3060
  };
3061
3061
  var or = "7.4.1";
3062
3062
  P.acorn = {
3063
3063
  Parser: P,
3064
3064
  version: or,
3065
- defaultOptions: bt,
3066
- Position: Te,
3067
- SourceLocation: Je,
3065
+ defaultOptions: yt,
3066
+ Position: Ne,
3067
+ SourceLocation: Ye,
3068
3068
  getLineInfo: ws,
3069
- Node: Ot,
3070
- TokenType: E,
3069
+ Node: Lt,
3070
+ TokenType: k,
3071
3071
  tokTypes: u,
3072
- keywordTypes: Pt,
3073
- TokContext: z,
3074
- tokContexts: I,
3072
+ keywordTypes: Tt,
3073
+ TokContext: J,
3074
+ tokContexts: A,
3075
3075
  isIdentifierChar: Se,
3076
3076
  isIdentifierStart: oe,
3077
- Token: Ft,
3078
- isNewLine: Ve,
3077
+ Token: jt,
3078
+ isNewLine: Oe,
3079
3079
  lineBreak: W,
3080
- lineBreakG: Pe,
3080
+ lineBreakG: Te,
3081
3081
  nonASCIIwhitespace: Ss
3082
3082
  };
3083
3083
  function ur(t, e) {
@@ -3087,7 +3087,7 @@ class cr extends Error {
3087
3087
  }
3088
3088
  class lr extends SyntaxError {
3089
3089
  }
3090
- class _t extends ReferenceError {
3090
+ class St extends ReferenceError {
3091
3091
  }
3092
3092
  class hr extends TypeError {
3093
3093
  }
@@ -3095,34 +3095,34 @@ class Js extends cr {
3095
3095
  }
3096
3096
  class pr extends lr {
3097
3097
  }
3098
- class K extends _t {
3098
+ class Q extends St {
3099
3099
  }
3100
3100
  const O = {
3101
3101
  ExecutionTimeOutError: [3002, "Script execution timed out after %0ms", Js],
3102
- NodeTypeSyntaxError: [1001, "Unknown node type: %0", K],
3103
- BinaryOperatorSyntaxError: [1002, "Unknown binary operator: %0", K],
3102
+ NodeTypeSyntaxError: [1001, "Unknown node type: %0", Q],
3103
+ BinaryOperatorSyntaxError: [1002, "Unknown binary operator: %0", Q],
3104
3104
  LogicalOperatorSyntaxError: [
3105
3105
  1003,
3106
3106
  "Unknown logical operator: %0",
3107
- K
3107
+ Q
3108
3108
  ],
3109
- UnaryOperatorSyntaxError: [1004, "Unknown unary operator: %0", K],
3110
- UpdateOperatorSyntaxError: [1005, "Unknown update operator: %0", K],
3109
+ UnaryOperatorSyntaxError: [1004, "Unknown unary operator: %0", Q],
3110
+ UpdateOperatorSyntaxError: [1005, "Unknown update operator: %0", Q],
3111
3111
  ObjectStructureSyntaxError: [
3112
3112
  1006,
3113
3113
  "Unknown object structure: %0",
3114
- K
3114
+ Q
3115
3115
  ],
3116
3116
  AssignmentExpressionSyntaxError: [
3117
3117
  1007,
3118
3118
  "Unknown assignment expression: %0",
3119
- K
3119
+ Q
3120
3120
  ],
3121
- VariableTypeSyntaxError: [1008, "Unknown variable type: %0", K],
3122
- ParamTypeSyntaxError: [1009, "Unknown param type: %0", K],
3123
- AssignmentTypeSyntaxError: [1010, "Unknown assignment type: %0", K],
3124
- FunctionUndefinedReferenceError: [2001, "%0 is not a function", _t],
3125
- VariableUndefinedReferenceError: [2002, "%0 is not defined", _t],
3121
+ VariableTypeSyntaxError: [1008, "Unknown variable type: %0", Q],
3122
+ ParamTypeSyntaxError: [1009, "Unknown param type: %0", Q],
3123
+ AssignmentTypeSyntaxError: [1010, "Unknown assignment type: %0", Q],
3124
+ FunctionUndefinedReferenceError: [2001, "%0 is not a function", St],
3125
+ VariableUndefinedReferenceError: [2002, "%0 is not defined", St],
3126
3126
  IsNotConstructor: [2003, "%0 is not a constructor", hr]
3127
3127
  }, fr = "1.4.8";
3128
3128
  function is(t, e) {
@@ -3134,7 +3134,7 @@ function is(t, e) {
3134
3134
  });
3135
3135
  }
3136
3136
  const dr = Object.prototype.hasOwnProperty, ve = Symbol("Break"), xe = Symbol("Continue"), rs = Symbol("DefaultCase"), V = Symbol("EmptyStatementReturn"), ns = Symbol("WithScopeName"), as = Symbol("SuperScopeName"), os = Symbol("RootScopeName"), us = Symbol("GlobalScopeName");
3137
- function ct(t) {
3137
+ function lt(t) {
3138
3138
  return typeof t == "function";
3139
3139
  }
3140
3140
  class ae {
@@ -3161,7 +3161,7 @@ class ae {
3161
3161
  };
3162
3162
  }
3163
3163
  }
3164
- function Mt(t, e, s = !0) {
3164
+ function Dt(t, e, s = !0) {
3165
3165
  if (!(t instanceof ae))
3166
3166
  throw new Error("Illegal call");
3167
3167
  if (typeof e != "string")
@@ -3176,13 +3176,13 @@ function Mt(t, e, s = !0) {
3176
3176
  }, a = s ? i.getGlobalScope() : i.getCurrentScope();
3177
3177
  return new M(a, n).evaluate(e);
3178
3178
  }
3179
- Object.defineProperty(Mt, "__IS_EVAL_FUNC", {
3179
+ Object.defineProperty(Dt, "__IS_EVAL_FUNC", {
3180
3180
  value: !0,
3181
3181
  writable: !1,
3182
3182
  enumerable: !1,
3183
3183
  configurable: !1
3184
3184
  });
3185
- function Dt(t, ...e) {
3185
+ function Bt(t, ...e) {
3186
3186
  if (!(t instanceof ae))
3187
3187
  throw new Error("Illegal call");
3188
3188
  const s = t.generator(), i = e.pop(), r = new M(s.getGlobalScope(), s.getOptions()), n = `
@@ -3192,18 +3192,18 @@ function Dt(t, ...e) {
3192
3192
  `;
3193
3193
  return r.evaluate(n);
3194
3194
  }
3195
- Object.defineProperty(Dt, "__IS_FUNCTION_FUNC", {
3195
+ Object.defineProperty(Bt, "__IS_FUNCTION_FUNC", {
3196
3196
  value: !0,
3197
3197
  writable: !1,
3198
3198
  enumerable: !1,
3199
3199
  configurable: !1
3200
3200
  });
3201
- class Q {
3201
+ class X {
3202
3202
  constructor(e) {
3203
3203
  this.value = e;
3204
3204
  }
3205
3205
  }
3206
- class le {
3206
+ class he {
3207
3207
  constructor(e) {
3208
3208
  this.value = e;
3209
3209
  }
@@ -3218,7 +3218,7 @@ class be {
3218
3218
  this.name = i, this.parent = s, this.data = e, this.labelStack = [];
3219
3219
  }
3220
3220
  }
3221
- function De() {
3221
+ function $e() {
3222
3222
  }
3223
3223
  function mr(t = null, e) {
3224
3224
  return new be(/* @__PURE__ */ Object.create(null), t, e);
@@ -3226,7 +3226,7 @@ function mr(t = null, e) {
3226
3226
  function gr(t) {
3227
3227
  return Object.create(t);
3228
3228
  }
3229
- const Y = {
3229
+ const Z = {
3230
3230
  NaN: NaN,
3231
3231
  Infinity: 1 / 0,
3232
3232
  undefined: void 0,
@@ -3255,18 +3255,18 @@ const Y = {
3255
3255
  encodeURIComponent,
3256
3256
  escape,
3257
3257
  unescape,
3258
- eval: Mt,
3259
- Function: Dt
3260
- };
3261
- typeof JSON < "u" && (Y.JSON = JSON);
3262
- typeof Promise < "u" && (Y.Promise = Promise);
3263
- typeof Set < "u" && (Y.Set = Set);
3264
- typeof Map < "u" && (Y.Map = Map);
3265
- typeof Symbol < "u" && (Y.Symbol = Symbol);
3266
- typeof Proxy < "u" && (Y.Proxy = Proxy);
3267
- typeof WeakMap < "u" && (Y.WeakMap = WeakMap);
3268
- typeof WeakSet < "u" && (Y.WeakSet = WeakSet);
3269
- typeof Reflect < "u" && (Y.Reflect = Reflect);
3258
+ eval: Dt,
3259
+ Function: Bt
3260
+ };
3261
+ typeof JSON < "u" && (Z.JSON = JSON);
3262
+ typeof Promise < "u" && (Z.Promise = Promise);
3263
+ typeof Set < "u" && (Z.Set = Set);
3264
+ typeof Map < "u" && (Z.Map = Map);
3265
+ typeof Symbol < "u" && (Z.Symbol = Symbol);
3266
+ typeof Proxy < "u" && (Z.Proxy = Proxy);
3267
+ typeof WeakMap < "u" && (Z.WeakMap = WeakMap);
3268
+ typeof WeakSet < "u" && (Z.WeakSet = WeakSet);
3269
+ typeof Reflect < "u" && (Z.Reflect = Reflect);
3270
3270
  class M {
3271
3271
  constructor(e = M.global, s = {}) {
3272
3272
  this.sourceList = [], this.collectDeclVars = /* @__PURE__ */ Object.create(null), this.collectDeclFuncs = /* @__PURE__ */ Object.create(null), this.isVarDeclMode = !1, this.lastExecNode = null, this.isRunning = !1, this.options = {
@@ -3312,10 +3312,10 @@ class M {
3312
3312
  return this.currentContext;
3313
3313
  }
3314
3314
  isInterruptThrow(e) {
3315
- return e instanceof Js || e instanceof K || e instanceof pr;
3315
+ return e instanceof Js || e instanceof Q || e instanceof pr;
3316
3316
  }
3317
3317
  createSuperScope(e) {
3318
- let s = Object.assign({}, Y);
3318
+ let s = Object.assign({}, Z);
3319
3319
  return Object.keys(s).forEach((r) => {
3320
3320
  r in e && delete s[r];
3321
3321
  }), new be(s, null, as);
@@ -3678,7 +3678,7 @@ class M {
3678
3678
  const s = this.createClosure(e.object), i = this.createMemberKeyGetter(e), r = this.source;
3679
3679
  return () => {
3680
3680
  const a = s(), o = i(), c = this.safeObjectGet(a, o, e);
3681
- if (!c || !ct(c)) {
3681
+ if (!c || !lt(c)) {
3682
3682
  const h = r.slice(e.start, e.end);
3683
3683
  throw this.createInternalThrowError(O.FunctionUndefinedReferenceError, h, e);
3684
3684
  }
@@ -3690,7 +3690,7 @@ class M {
3690
3690
  let a = "";
3691
3691
  e.type === "Identifier" && (a = e.name);
3692
3692
  const o = n();
3693
- if (!o || !ct(o))
3693
+ if (!o || !lt(o))
3694
3694
  throw this.createInternalThrowError(O.FunctionUndefinedReferenceError, a, e);
3695
3695
  if (e.type === "Identifier" && o.__IS_EVAL_FUNC && a === "eval")
3696
3696
  return (h) => {
@@ -3726,14 +3726,14 @@ class M {
3726
3726
  const d = s.getCurrentScope(), f = function(...m) {
3727
3727
  s.callStack.push(`${a}`);
3728
3728
  const g = s.getCurrentScope(), v = mr(d, `FunctionScope(${a})`);
3729
- s.setCurrentScope(v), s.addDeclarationsToScope(l, p, v), a && (v.data[a] = f), v.data.arguments = arguments, c.forEach((A, _) => {
3730
- v.data[A()] = m[_];
3729
+ s.setCurrentScope(v), s.addDeclarationsToScope(l, p, v), a && (v.data[a] = f), v.data.arguments = arguments, c.forEach((I, _) => {
3730
+ v.data[I()] = m[_];
3731
3731
  });
3732
- const x = s.getCurrentContext();
3732
+ const C = s.getCurrentContext();
3733
3733
  s.setCurrentContext(this);
3734
- const k = h();
3735
- if (s.setCurrentContext(x), s.setCurrentScope(g), s.callStack.pop(), k instanceof Q)
3736
- return k.value;
3734
+ const b = h();
3735
+ if (s.setCurrentContext(C), s.setCurrentScope(g), s.callStack.pop(), b instanceof X)
3736
+ return b.value;
3737
3737
  };
3738
3738
  return is(f, a), Object.defineProperty(f, "length", {
3739
3739
  value: o,
@@ -3758,7 +3758,7 @@ class M {
3758
3758
  const s = this.source, i = this.createClosure(e.callee), r = e.arguments.map((n) => this.createClosure(n));
3759
3759
  return () => {
3760
3760
  const n = i();
3761
- if (!ct(n) || n.__IS_EVAL_FUNC) {
3761
+ if (!lt(n) || n.__IS_EVAL_FUNC) {
3762
3762
  const a = e.callee, o = s.slice(a.start, a.end);
3763
3763
  throw this.createInternalThrowError(O.IsNotConstructor, o, e);
3764
3764
  }
@@ -3901,7 +3901,7 @@ class M {
3901
3901
  let i = V;
3902
3902
  for (let r = 0; r < s.length; r++) {
3903
3903
  const n = s[r], a = this.setValue(n());
3904
- if (a !== V && (i = a, i instanceof Q || i instanceof le || i instanceof ne || i === ve || i === xe))
3904
+ if (a !== V && (i = a, i instanceof X || i instanceof he || i instanceof ne || i === ve || i === xe))
3905
3905
  break;
3906
3906
  }
3907
3907
  return i;
@@ -3916,8 +3916,8 @@ class M {
3916
3916
  }
3917
3917
  // return xx;
3918
3918
  returnStatementHandler(e) {
3919
- const s = e.argument ? this.createClosure(e.argument) : De;
3920
- return () => new Q(s());
3919
+ const s = e.argument ? this.createClosure(e.argument) : $e;
3920
+ return () => new X(s());
3921
3921
  }
3922
3922
  // if else
3923
3923
  ifStatementHandler(e) {
@@ -3933,9 +3933,9 @@ class M {
3933
3933
  }
3934
3934
  // for(var i = 0; i < 10; i++) {...}
3935
3935
  forStatementHandler(e) {
3936
- let s = De, i = e.test ? this.createClosure(e.test) : () => !0, r = De;
3936
+ let s = $e, i = e.test ? this.createClosure(e.test) : () => !0, r = $e;
3937
3937
  const n = this.createClosure(e.body);
3938
- return e.type === "ForStatement" && (s = e.init ? this.createClosure(e.init) : s, r = e.update ? this.createClosure(e.update) : De), (a) => {
3938
+ return e.type === "ForStatement" && (s = e.init ? this.createClosure(e.init) : s, r = e.update ? this.createClosure(e.update) : $e), (a) => {
3939
3939
  let o, c = V, h = e.type === "DoWhileStatement";
3940
3940
  for (a && a.type === "LabeledStatement" && (o = a.label.name), s(); h || i(); r()) {
3941
3941
  h = !1;
@@ -3947,7 +3947,7 @@ class M {
3947
3947
  c = V;
3948
3948
  continue;
3949
3949
  }
3950
- if (c instanceof Q || c instanceof le || c instanceof ne)
3950
+ if (c instanceof X || c instanceof he || c instanceof ne)
3951
3951
  break;
3952
3952
  }
3953
3953
  }
@@ -3986,7 +3986,7 @@ class M {
3986
3986
  o = V;
3987
3987
  continue;
3988
3988
  }
3989
- if (o instanceof Q || o instanceof le || o instanceof ne)
3989
+ if (o instanceof X || o instanceof he || o instanceof ne)
3990
3990
  break;
3991
3991
  }
3992
3992
  }
@@ -4018,13 +4018,13 @@ class M {
4018
4018
  this.setCurrentScope(n), this.setCurrentContext(a), n.labelStack = o, this.callStack = c;
4019
4019
  };
4020
4020
  try {
4021
- h = this.setValue(s()), h instanceof Q && (l = h);
4021
+ h = this.setValue(s()), h instanceof X && (l = h);
4022
4022
  } catch (f) {
4023
4023
  if (d(), this.isInterruptThrow(f))
4024
4024
  throw f;
4025
4025
  if (i)
4026
4026
  try {
4027
- h = this.setValue(i(f)), h instanceof Q && (l = h);
4027
+ h = this.setValue(i(f)), h instanceof X && (l = h);
4028
4028
  } catch (m) {
4029
4029
  if (d(), this.isInterruptThrow(m))
4030
4030
  throw m;
@@ -4033,7 +4033,7 @@ class M {
4033
4033
  }
4034
4034
  if (r)
4035
4035
  try {
4036
- h = r(), h instanceof Q && (l = h);
4036
+ h = r(), h instanceof X && (l = h);
4037
4037
  } catch (f) {
4038
4038
  if (d(), this.isInterruptThrow(f))
4039
4039
  throw f;
@@ -4057,7 +4057,7 @@ class M {
4057
4057
  return () => e.label ? new ne(e.label.name) : xe;
4058
4058
  }
4059
4059
  breakStatementHandler(e) {
4060
- return () => e.label ? new le(e.label.name) : ve;
4060
+ return () => e.label ? new he(e.label.name) : ve;
4061
4061
  }
4062
4062
  switchStatementHandler(e) {
4063
4063
  const s = this.createClosure(e.discriminant), i = e.cases.map((r) => this.switchCaseHandler(r));
@@ -4070,7 +4070,7 @@ class M {
4070
4070
  if (!h && f === rs && (h = !0, c = p), n || f === r) {
4071
4071
  if (n = !0, o = this.setValue(d.bodyClosure()), o === V)
4072
4072
  continue;
4073
- if (o === ve || (a = o, a instanceof Q || a instanceof le || a instanceof ne || a === xe))
4073
+ if (o === ve || (a = o, a instanceof X || a instanceof he || a instanceof ne || a === xe))
4074
4074
  break;
4075
4075
  }
4076
4076
  }
@@ -4098,7 +4098,7 @@ class M {
4098
4098
  return () => {
4099
4099
  let r;
4100
4100
  const n = this.getCurrentScope();
4101
- return n.labelStack.push(s), r = i(e), r instanceof le && r.value === s && (r = V), n.labelStack.pop(), r;
4101
+ return n.labelStack.push(s), r = i(e), r instanceof he && r.value === s && (r = V), n.labelStack.pop(), r;
4102
4102
  };
4103
4103
  }
4104
4104
  debuggerStatementHandler(e) {
@@ -4177,15 +4177,15 @@ class M {
4177
4177
  }
4178
4178
  setValue(e) {
4179
4179
  const s = this.callStack.length;
4180
- return this.isVarDeclMode || s || e === V || e === ve || e === xe || e instanceof le || e instanceof ne || (this.value = e instanceof Q ? e.value : e), e;
4180
+ return this.isVarDeclMode || s || e === V || e === ve || e === xe || e instanceof he || e instanceof ne || (this.value = e instanceof X ? e.value : e), e;
4181
4181
  }
4182
4182
  getValue() {
4183
4183
  return this.value;
4184
4184
  }
4185
4185
  }
4186
4186
  M.version = fr;
4187
- M.eval = Mt;
4188
- M.Function = Dt;
4187
+ M.eval = Dt;
4188
+ M.Function = Bt;
4189
4189
  M.ecmaVersion = 5;
4190
4190
  M.globalContextInFunction = void 0;
4191
4191
  M.global = /* @__PURE__ */ Object.create(null);
@@ -4212,7 +4212,7 @@ function xr(t, e) {
4212
4212
  globalContextInFunction: e
4213
4213
  }).evaluate(`(function($scope){ ${t} }).call(this, this)`);
4214
4214
  }
4215
- function Re(t, e, s = !1, i = !1, r = !1) {
4215
+ function Ve(t, e, s = !1, i = !1, r = !1) {
4216
4216
  try {
4217
4217
  const n = ['"use strict";', "var __self = $scope;"];
4218
4218
  n.push("return ");
@@ -4230,13 +4230,13 @@ ${a}
4230
4230
  return typeof c == "function" ? c.bind(e) : c;
4231
4231
  }
4232
4232
  } catch (n) {
4233
- if (he.error("parseExpression.error", n, t, e?.__self ?? e), n && (n.info = t.value), _e(n), i)
4233
+ if (pe.error("parseExpression.error", n, t, e?.__self ?? e), n && (n.info = t.value), _e(n), i)
4234
4234
  throw n;
4235
4235
  }
4236
4236
  }
4237
- function J(t, e, s = !1, i = !1, r = !1) {
4238
- const n = Re(t, e, s, i, r);
4239
- if (typeof n != "function" && (he.error(
4237
+ function Y(t, e, s = !1, i = !1, r = !1) {
4238
+ const n = Ve(t, e, s, i, r);
4239
+ if (typeof n != "function" && (pe.error(
4240
4240
  "parseFunction.error",
4241
4241
  "not a function",
4242
4242
  t,
@@ -4271,7 +4271,7 @@ const yr = {
4271
4271
  appName: "",
4272
4272
  statusKey: "code"
4273
4273
  }, Qs = Symbol("access");
4274
- class Bt {
4274
+ class $t {
4275
4275
  options;
4276
4276
  data = null;
4277
4277
  mode = T.Raw;
@@ -4292,17 +4292,17 @@ class Bt {
4292
4292
  }
4293
4293
  login(e) {
4294
4294
  const { storageKey: s, storagePrefix: i, session: r, authKey: n } = this.options;
4295
- this.setData(e), this.data && (rt.save(s, e, {
4295
+ this.setData(e), this.data && (nt.save(s, e, {
4296
4296
  type: r ? "session" : "local",
4297
4297
  prefix: i
4298
- }), r && nt.set(n, this.data.token));
4298
+ }), r && at.set(n, this.data.token));
4299
4299
  }
4300
4300
  clear() {
4301
4301
  const { storageKey: e, storagePrefix: s, session: i, authKey: r } = this.options;
4302
- this.data = null, rt.remove(e, {
4302
+ this.data = null, nt.remove(e, {
4303
4303
  type: i ? "session" : "local",
4304
4304
  prefix: s
4305
- }), i && nt.remove(r);
4305
+ }), i && at.remove(r);
4306
4306
  }
4307
4307
  logout() {
4308
4308
  this.clear(), this.toLogin();
@@ -4369,7 +4369,7 @@ class Bt {
4369
4369
  this.data = e;
4370
4370
  }
4371
4371
  loadData() {
4372
- const { storageKey: e, storagePrefix: s, session: i } = this.options, r = rt.get(e, {
4372
+ const { storageKey: e, storagePrefix: s, session: i } = this.options, r = nt.get(e, {
4373
4373
  type: i ? "session" : "local",
4374
4374
  prefix: s
4375
4375
  });
@@ -4377,10 +4377,10 @@ class Bt {
4377
4377
  }
4378
4378
  isLogined() {
4379
4379
  const { session: e, authKey: s } = this.options;
4380
- return e && s ? !!nt.get(s) : !!this.getToken();
4380
+ return e && s ? !!at.get(s) : !!this.getToken();
4381
4381
  }
4382
4382
  hasRoutePermission(e) {
4383
- if (e.name === Ee) {
4383
+ if (e.name === ke) {
4384
4384
  const s = e.params.id;
4385
4385
  return s && this.can(s);
4386
4386
  }
@@ -4397,10 +4397,10 @@ class Bt {
4397
4397
  return s();
4398
4398
  {
4399
4399
  const { noPermissionMessage: i = "无权限访问", unauthorized: r = !1 } = this.options;
4400
- return await this.showTip(i), H(r) ? (r(), s(!1)) : te(r) ? s(r) : s(!1);
4400
+ return await this.showTip(i), H(r) ? (r(), s(!1)) : se(r) ? s(r) : s(!1);
4401
4401
  }
4402
4402
  }
4403
- s(!1), await Ie(0), this.toLogin();
4403
+ s(!1), await Ae(0), this.toLogin();
4404
4404
  }
4405
4405
  isWhiteList(e) {
4406
4406
  const { whiteList: s } = this.options;
@@ -4416,7 +4416,7 @@ class Bt {
4416
4416
  }
4417
4417
  async showTip(e) {
4418
4418
  const { alert: s } = this.options;
4419
- return this.isTipShowing ? !1 : s ? (this.isTipShowing = !0, await Ie(150), await s(e, {
4419
+ return this.isTipShowing ? !1 : s ? (this.isTipShowing = !0, await Ae(150), await s(e, {
4420
4420
  title: "提示",
4421
4421
  type: "warning"
4422
4422
  })?.catch(() => !0)?.finally(() => {
@@ -4435,7 +4435,7 @@ class Bt {
4435
4435
  }
4436
4436
  }
4437
4437
  function _r() {
4438
- return kt(Qs, null);
4438
+ return It(Qs, null);
4439
4439
  }
4440
4440
  function Fn(t = {}) {
4441
4441
  const {
@@ -4476,11 +4476,11 @@ function Fn(t = {}) {
4476
4476
  useTitle: a,
4477
4477
  alert: o,
4478
4478
  startupComponent: r,
4479
- access: n ? new Bt({ alert: o, ...n }) : void 0
4479
+ access: n ? new $t({ alert: o, ...n }) : void 0
4480
4480
  };
4481
4481
  }
4482
4482
  function jn(t = {}) {
4483
- return new Bt(t);
4483
+ return new $t(t);
4484
4484
  }
4485
4485
  function Sr(t, e) {
4486
4486
  const { jsonp: s, request: i } = e;
@@ -4490,7 +4490,7 @@ function Sr(t, e) {
4490
4490
  query: r
4491
4491
  });
4492
4492
  {
4493
- const r = t.headers ? Re(t.headers, {}, !0) : void 0, n = {
4493
+ const r = t.headers ? Ve(t.headers, {}, !0) : void 0, n = {
4494
4494
  url: t.url,
4495
4495
  method: t.method,
4496
4496
  settings: {
@@ -4524,18 +4524,18 @@ function wr(t = [], e = [], s) {
4524
4524
  return i;
4525
4525
  }
4526
4526
  async function Er(t = [], e = globalThis) {
4527
- const s = Ae(e);
4527
+ const s = Pe(e);
4528
4528
  s && (Ys(e), t.forEach((i) => Ir(s, i)));
4529
4529
  }
4530
4530
  function kr(t, e = globalThis) {
4531
- const s = L(t.mockTemplate) && t.mockTemplate.value ? J(t.mockTemplate, {}, !0) : void 0, i = Ae(e);
4531
+ const s = L(t.mockTemplate) && t.mockTemplate.value ? Y(t.mockTemplate, {}, !0) : void 0, i = Pe(e);
4532
4532
  return async (...r) => {
4533
4533
  let n = {};
4534
4534
  if (s)
4535
4535
  try {
4536
4536
  n = await s.apply(s, r);
4537
4537
  } catch (a) {
4538
- he.warn("模拟数据模版异常", a);
4538
+ pe.warn("模拟数据模版异常", a);
4539
4539
  }
4540
4540
  return i?.mock(n);
4541
4541
  };
@@ -4545,31 +4545,31 @@ function Ir(t, e) {
4545
4545
  const { url: s, mockTemplate: i, method: r = "get", settings: n = {} } = e;
4546
4546
  if (s && i)
4547
4547
  try {
4548
- const a = ft(s) ? new URL(s).pathname : s, o = ui(`(.*)${a}`, [], { end: !1 }), c = new RegExp(
4548
+ const a = dt(s) ? new URL(s).pathname : s, o = ui(`(.*)${a}`, [], { end: !1 }), c = new RegExp(
4549
4549
  o.source + "([?#].*)?$",
4550
4550
  o.flags
4551
- ), h = ci(a, { decode: decodeURIComponent }), l = Re(i, {}, !0);
4551
+ ), h = ci(a, { decode: decodeURIComponent }), l = Ve(i, {}, !0);
4552
4552
  t.mock(
4553
4553
  c,
4554
4554
  r.toLowerCase(),
4555
4555
  (p) => {
4556
- const d = fe.parse(p.url) || {}, f = n.type || "form";
4556
+ const d = de.parse(p.url) || {}, f = n.type || "form";
4557
4557
  let m = p.body instanceof FormData ? li(p.body) : p.body;
4558
4558
  if (typeof m == "string")
4559
4559
  if (f === "json")
4560
4560
  try {
4561
4561
  m = JSON.parse(m);
4562
- } catch (x) {
4563
- console.warn("[Mock.mock]", x);
4562
+ } catch (C) {
4563
+ console.warn("[Mock.mock]", C);
4564
4564
  }
4565
4565
  else
4566
- m = fe.parse(m);
4567
- const g = ft(p.url) ? new URL(p.url).pathname : p.url.split("?")[0], v = h(g)?.params;
4566
+ m = de.parse(m);
4567
+ const g = dt(p.url) ? new URL(p.url).pathname : p.url.split("?")[0], v = h(g)?.params;
4568
4568
  Object.assign(p, { data: m, params: v, query: d });
4569
4569
  try {
4570
4570
  return t.mock(l(p));
4571
- } catch (x) {
4572
- return console.warn("[mockApi]", c, p, x), null;
4571
+ } catch (C) {
4572
+ return console.warn("[mockApi]", c, p, C), null;
4573
4573
  }
4574
4574
  }
4575
4575
  );
@@ -4578,7 +4578,7 @@ function Ir(t, e) {
4578
4578
  }
4579
4579
  }
4580
4580
  function Ys(t = globalThis) {
4581
- const e = Ae(t);
4581
+ const e = Pe(t);
4582
4582
  e && (e._mocked = {});
4583
4583
  }
4584
4584
  class Xs {
@@ -4617,7 +4617,7 @@ class Xs {
4617
4617
  return i || (e && this.setNode(e, s), s);
4618
4618
  }
4619
4619
  isEqual(e, s) {
4620
- return at(e, s);
4620
+ return ot(e, s);
4621
4621
  }
4622
4622
  /**
4623
4623
  * 比较两个节点缓存是否相等,函数引用变化不触发重渲染,但函数属性的增删会触发
@@ -4637,7 +4637,7 @@ class Xs {
4637
4637
  }
4638
4638
  return c;
4639
4639
  }, n = i(e).sort(), a = i(s).sort();
4640
- return at(n, a) ? at(r(e), r(s)) : !1;
4640
+ return ot(n, a) ? ot(r(e), r(s)) : !1;
4641
4641
  }
4642
4642
  clear() {
4643
4643
  this.__props = {}, this.__events = {}, this.__nodes = {};
@@ -4725,17 +4725,17 @@ class cs {
4725
4725
  if (e)
4726
4726
  if (this.__mode === T.Runtime) {
4727
4727
  const { id: s, type: i } = e, r = s ? this.__transform[s] ?? e.value : e.value;
4728
- return J({ type: i, value: r }, this);
4728
+ return Y({ type: i, value: r }, this);
4729
4729
  } else
4730
- return J(e, this);
4730
+ return Y(e, this);
4731
4731
  }
4732
4732
  __parseExpression(e) {
4733
4733
  if (e)
4734
4734
  if (this.__mode === T.Runtime) {
4735
4735
  const { id: s, type: i } = e, r = s ? this.__transform[s] ?? e.value : e.value;
4736
- return Re({ type: i, value: r }, this);
4736
+ return Ve({ type: i, value: r }, this);
4737
4737
  } else
4738
- return Re(e, this);
4738
+ return Ve(e, this);
4739
4739
  }
4740
4740
  __ref(e = null, s) {
4741
4741
  if (this.__mode === T.VNode)
@@ -4746,7 +4746,7 @@ class cs {
4746
4746
  return i;
4747
4747
  const r = e ? (this.__refGenerations[e] || 0) + 1 : 0;
4748
4748
  return e && (this.__refGenerations[e] = r), i = async (n) => {
4749
- if (await Ie(0), e && this.__refGenerations[e] !== r)
4749
+ if (await Ae(0), e && this.__refGenerations[e] !== r)
4750
4750
  return;
4751
4751
  let a = n?.$vtjEl || n?.$el || n?._?.vnode?.el || n;
4752
4752
  if (!a) {
@@ -4772,8 +4772,8 @@ class cs {
4772
4772
  return i.context.__proto__ = this.context, i.__proto__ = this, i;
4773
4773
  }
4774
4774
  }
4775
- const lt = Symbol("vtjBlockChain");
4776
- function St(t) {
4775
+ const ht = Symbol("vtjBlockChain");
4776
+ function Ct(t) {
4777
4777
  const {
4778
4778
  Vue: e = ye,
4779
4779
  UniApp: s = {},
@@ -4796,97 +4796,110 @@ function St(t) {
4796
4796
  props: {
4797
4797
  ...Tr(c.value.props ?? [], l)
4798
4798
  },
4799
- async setup(d = {}) {
4800
- const f = c.value.id, m = c.value.name, g = e.inject(
4801
- lt,
4799
+ // 注意:setup 参数不能带默认值,Vue 依据 setup.length > 1 决定是否创建 setupContext
4800
+ async setup(d, f) {
4801
+ const m = c.value.id, g = c.value.name, v = e.inject(
4802
+ ht,
4802
4803
  null
4803
4804
  );
4804
- if (f && g && g.has(f)) {
4805
- const X = `检测到区块循环引用: ${m}(${f})`;
4806
- return console.warn(`[VTJ Renderer] ${X},已中断渲染以防止浏览器崩溃`), _e(new Error(X)), e.provide(lt, g), { __vtjCircular: !0 };
4805
+ if (m && v && v.has(m)) {
4806
+ const z = `检测到区块循环引用: ${g}(${m})`;
4807
+ return console.warn(`[VTJ Renderer] ${z},已中断渲染以防止浏览器崩溃`), _e(new Error(z)), e.provide(ht, v), { __vtjCircular: !0 };
4807
4808
  }
4808
- const v = new Set(g || []);
4809
- f && v.add(f), e.provide(lt, v);
4810
- const x = new cs({
4809
+ const C = new Set(v || []);
4810
+ m && C.add(m), e.provide(ht, C);
4811
+ const b = new cs({
4811
4812
  mode: i,
4812
4813
  dsl: c.value,
4813
4814
  attrs: h
4814
4815
  });
4815
- x.$props = x.props = d, c.value.id && It(
4816
+ b.$props = b.props = d, c.value.id && At(
4816
4817
  t.window || globalThis,
4817
4818
  c.value.id,
4818
4819
  c.value.css || "",
4819
4820
  !0
4820
4821
  );
4821
- const k = c.value.apiMode === "composition";
4822
- x.$state = x.state = Nr(
4822
+ const I = c.value.apiMode === "composition";
4823
+ b.$state = b.state = Nr(
4823
4824
  e,
4824
4825
  c.value.state ?? {},
4825
- x
4826
+ b
4826
4827
  );
4827
- const A = k ? jr(e, c.value.refs ?? {}, x) : {}, _ = k ? Mr(e, c.value.reactives ?? {}, x) : {}, D = Rr(e, c.value.computed ?? {}, x), me = Vr(c.value.methods ?? {}, x), ge = Or(e, c.value.inject, x), B = Lr(
4828
+ const _ = I ? jr(e, c.value.refs ?? {}, b) : {}, D = I ? Mr(e, c.value.reactives ?? {}, b) : {}, ce = Rr(e, c.value.computed ?? {}, b), ge = Vr(c.value.methods ?? {}, b), B = Or(e, c.value.inject, b), je = Lr(
4828
4829
  c.value.dataSources || {},
4829
- x
4830
- ), et = {
4830
+ b
4831
+ ), st = {
4831
4832
  ...d,
4832
- ...A,
4833
4833
  ..._,
4834
- ...ge,
4835
4834
  ...D,
4836
- ...me,
4837
- ...B
4835
+ ...B,
4836
+ ...ce,
4837
+ ...ge,
4838
+ ...je
4838
4839
  };
4839
- x.setup(et, e);
4840
- const Fe = k ? Dr(c.value.composables ?? [], x) : {};
4841
- if (Object.assign(x, Fe), e.onMounted(() => {
4842
- ls(x, l);
4843
- }), k && c.value.props && c.value.props.length > 0) {
4844
- const X = /* @__PURE__ */ new Set([
4845
- ...Object.keys(A),
4840
+ b.setup(st, e);
4841
+ const we = I ? Dr(c.value.composables ?? [], b) : {};
4842
+ if (Object.assign(b, we), e.onMounted(() => {
4843
+ ls(b, l);
4844
+ }), I && c.value.props && c.value.props.length > 0) {
4845
+ const z = /* @__PURE__ */ new Set([
4846
4846
  ...Object.keys(_),
4847
- ...Object.keys(D)
4847
+ ...Object.keys(D),
4848
+ ...Object.keys(ce)
4848
4849
  ]);
4849
- for (const re of c.value.props) {
4850
- const ce = typeof re == "string" ? re : re.name;
4851
- X.has(ce) || Object.defineProperty(x, ce, {
4850
+ for (const K of c.value.props) {
4851
+ const le = typeof K == "string" ? K : K.name;
4852
+ z.has(le) || Object.defineProperty(b, le, {
4852
4853
  get() {
4853
- return this.$props[ce];
4854
+ return this.$props[le];
4854
4855
  },
4855
- set(Gt) {
4856
+ set(Me) {
4856
4857
  },
4857
4858
  configurable: !0,
4858
4859
  enumerable: !0
4859
4860
  });
4860
4861
  }
4861
4862
  }
4862
- if (Fr(e, c.value.watch ?? [], x), k) {
4863
- const X = $r(
4863
+ if (Fr(e, c.value.watch ?? [], b), f && typeof f.expose == "function") {
4864
+ const z = {
4865
+ vtj: b
4866
+ };
4867
+ for (const K of c.value.expose || [])
4868
+ Object.defineProperty(z, K, {
4869
+ get: () => b[K],
4870
+ enumerable: !0,
4871
+ configurable: !0
4872
+ });
4873
+ f.expose(z);
4874
+ }
4875
+ if (I) {
4876
+ const z = $r(
4864
4877
  e,
4865
4878
  c.value.lifeCycles ?? {},
4866
- x,
4879
+ b,
4867
4880
  s
4868
4881
  );
4869
- if (Br(e, c.value.provide ?? {}, x), await Promise.all(X), c.value.setup) {
4870
- const re = x.__parseFunction(c.value.setup);
4871
- if (H(re))
4882
+ if (Br(e, c.value.provide ?? {}, b), await Promise.all(z), c.value.setup) {
4883
+ const K = b.__parseFunction(c.value.setup);
4884
+ if (H(K))
4872
4885
  try {
4873
- await re();
4874
- } catch (ce) {
4875
- console.warn("[VTJ] Composition setup 执行失败", ce);
4886
+ await K();
4887
+ } catch (le) {
4888
+ console.warn("[VTJ] Composition setup 执行失败", le);
4876
4889
  }
4877
4890
  }
4878
4891
  }
4879
4892
  return {
4880
- vtj: x,
4881
- state: x.$state,
4893
+ vtj: b,
4894
+ state: b.$state,
4882
4895
  ...d,
4883
- ...A,
4884
4896
  ..._,
4885
4897
  ...D,
4886
- ...me,
4898
+ ...ce,
4887
4899
  ...ge,
4888
4900
  ...B,
4889
- ...Fe
4901
+ ...je,
4902
+ ...we
4890
4903
  };
4891
4904
  },
4892
4905
  emits: Pr(c.value.emits),
@@ -4901,7 +4914,7 @@ function St(t) {
4901
4914
  if (m.length === 1)
4902
4915
  g = Ce(m[0], d, e, o, m);
4903
4916
  else {
4904
- const v = m.map((x) => Ce(x, d, e, o, m)).flat();
4917
+ const v = m.map((C) => Ce(C, d, e, o, m)).flat();
4905
4918
  g = e.createVNode("div", {}, v);
4906
4919
  }
4907
4920
  return ls(d, l), g;
@@ -4919,11 +4932,11 @@ function ls(t, e) {
4919
4932
  t !== e && Object.assign(e, t);
4920
4933
  }
4921
4934
  function Pr(t = []) {
4922
- return t.map((e) => te(e) ? e : e.name);
4935
+ return t.map((e) => se(e) ? e : e.name);
4923
4936
  }
4924
4937
  function Tr(t = [], e) {
4925
4938
  const s = (i) => i ? (Array.isArray(i) ? i : [i]).map((n) => bi[n]) : void 0;
4926
- return t.map((i) => te(i) ? {
4939
+ return t.map((i) => se(i) ? {
4927
4940
  name: i
4928
4941
  } : {
4929
4942
  name: i.name,
@@ -4936,7 +4949,7 @@ function Tr(t = [], e) {
4936
4949
  return i[r.name] = {
4937
4950
  type: s(r.type),
4938
4951
  required: r.required,
4939
- default: n !== null && typeof n == "object" ? () => dt(n) : n
4952
+ default: n !== null && typeof n == "object" ? () => mt(n) : n
4940
4953
  }, i;
4941
4954
  },
4942
4955
  {}
@@ -5036,7 +5049,7 @@ function Dr(t, e) {
5036
5049
  (s, i) => {
5037
5050
  try {
5038
5051
  let r;
5039
- if (N(i.composable) ? r = e.__parseExpression(i.composable) : te(i.composable) && (r = e.$libs[i.composable]), H(r)) {
5052
+ if (N(i.composable) ? r = e.__parseExpression(i.composable) : se(i.composable) && (r = e.$libs[i.composable]), H(r)) {
5040
5053
  const n = (i.args || []).map(
5041
5054
  (o) => N(o) ? e.__parseExpression(o) : o
5042
5055
  ), a = r(...n);
@@ -5084,10 +5097,7 @@ function $r(t, e, s, i = {}) {
5084
5097
  try {
5085
5098
  r.push(
5086
5099
  Promise.resolve(l()).catch((p) => {
5087
- console.warn(
5088
- `[VTJ] Composition 生命周期 "${a}" 执行失败`,
5089
- p
5090
- ), _e(p);
5100
+ console.warn(`[VTJ] Composition 生命周期 "${a}" 执行失败`, p), _e(p);
5091
5101
  })
5092
5102
  );
5093
5103
  } catch (p) {
@@ -5100,7 +5110,7 @@ function $r(t, e, s, i = {}) {
5100
5110
  const l = s.__parseFunction(o);
5101
5111
  H(l) && h(async () => {
5102
5112
  try {
5103
- await Ie(0), await l();
5113
+ await Ae(0), await l();
5104
5114
  } catch (p) {
5105
5115
  console.warn(`[VTJ] Composition 生命周期 "${a}" 执行失败`, p), _e(p);
5106
5116
  }
@@ -5114,7 +5124,7 @@ function Hr(t, e) {
5114
5124
  return Object.entries(t ?? {}).reduce(
5115
5125
  (s, [i, r]) => (s[i] = async function() {
5116
5126
  const a = (this?.vtj || e).__parseFunction(r);
5117
- H(a) && (await Ie(0), await a());
5127
+ H(a) && (await Ae(0), await a());
5118
5128
  }, s),
5119
5129
  {}
5120
5130
  );
@@ -5125,9 +5135,9 @@ const Ur = Object.assign(
5125
5135
  } }
5126
5136
  );
5127
5137
  async function Zs(t, e = globalThis) {
5128
- const { urls: s = [], library: i } = t, r = s.filter((o) => ze(o));
5138
+ const { urls: s = [], library: i } = t, r = s.filter((o) => Je(o));
5129
5139
  if (r.length === 0 || !i) return null;
5130
- const n = s.filter((o) => We(o));
5140
+ const n = s.filter((o) => Ke(o));
5131
5141
  return n.length && xs(n, e), await bs(r, i, e).catch(
5132
5142
  (o) => (console.warn("loadScriptUrl error", r, i, o), null)
5133
5143
  );
@@ -5142,21 +5152,21 @@ function Gr(t) {
5142
5152
  l.id,
5143
5153
  () => e(l.id)
5144
5154
  );
5145
- return f && (f.name = h, n[l.id] = f), f ? St({
5155
+ return f && (f.name = h, n[l.id] = f), f ? Ct({
5146
5156
  Vue: p,
5147
5157
  mode: T.Runtime,
5148
5158
  ...i,
5149
- dsl: dt(f),
5159
+ dsl: mt(f),
5150
5160
  loader: o
5151
5161
  }).renderer : null;
5152
5162
  }));
5153
5163
  if (l.type === "UrlSchema" && l.url)
5154
5164
  return d = l.url + "_" + c, a[d] || (a[d] = p.defineAsyncComponent(async () => {
5155
5165
  const f = n[l.url] || await s(l.url);
5156
- return f && (f.name = h, n[l.url] = f), f ? St({
5166
+ return f && (f.name = h, n[l.url] = f), f ? Ct({
5157
5167
  ...i,
5158
5168
  Vue: p,
5159
- dsl: dt(f),
5169
+ dsl: mt(f),
5160
5170
  mode: T.Runtime,
5161
5171
  loader: o
5162
5172
  }).renderer : null;
@@ -5185,19 +5195,19 @@ function Mn(t) {
5185
5195
  }
5186
5196
  function Ce(t, e, s = ye, i = Ur, r = [], n = !1, a = 0) {
5187
5197
  if (!t || !t.name || t.invisible) return null;
5188
- const o = s.getCurrentInstance()?.appContext, { id: c = null, directives: h = [] } = t, { vIf: l, vElseIf: p, vElse: d, vFor: f, vShow: m, vModels: g, vBind: v, vHtml: x, others: k } = ei(h);
5198
+ const o = s.getCurrentInstance()?.appContext, { id: c = null, directives: h = [] } = t, { vIf: l, vElseIf: p, vElse: d, vFor: f, vShow: m, vModels: g, vBind: v, vHtml: C, others: b } = ei(h);
5189
5199
  if (!n && (p || d))
5190
5200
  return null;
5191
5201
  if (l && !Wr(l, e))
5192
5202
  return Xr(t, e, s, i, r);
5193
- const A = (_, D = 0) => {
5194
- const me = _.$components, ge = (() => {
5203
+ const I = (_, D = 0) => {
5204
+ const ce = _.$components, ge = (() => {
5195
5205
  if (t.name === "component")
5196
5206
  return zr(_, t.props?.is);
5197
5207
  if (t.name === "slot") return t.name;
5198
5208
  const R = i(`${t.id}_${D}`, t.name, t.from, s);
5199
- return te(R) ? Ri(R) || Vi(R) ? R : me[R] ?? o?.app?.component(R) ?? R : R;
5200
- })(), B = Kr(c, t.props ?? {}, _), et = Yr(
5209
+ return se(R) ? Ri(R) || Vi(R) ? R : ce[R] ?? o?.app?.component(R) ?? R : R;
5210
+ })(), B = Kr(c, t.props ?? {}, _), je = Yr(
5201
5211
  s,
5202
5212
  t.id,
5203
5213
  t.events ?? {},
@@ -5208,7 +5218,7 @@ function Ce(t, e, s = ye, i = Ur, r = [], n = !1, a = 0) {
5208
5218
  v && Object.assign(B, _.__parseExpression(v.value)), m && (B.style = Object.assign(
5209
5219
  B.style ?? {},
5210
5220
  tn(m, _)
5211
- )), x && Object.assign(B, sn(x, _)), g.forEach((R) => {
5221
+ )), C && Object.assign(B, sn(C, _)), g.forEach((R) => {
5212
5222
  gs.includes(t.name) ? Object.assign(
5213
5223
  B,
5214
5224
  rn(
@@ -5220,36 +5230,36 @@ function Ce(t, e, s = ye, i = Ur, r = [], n = !1, a = 0) {
5220
5230
  )
5221
5231
  ) : Object.assign(B, nn(R, _));
5222
5232
  });
5223
- const Fe = an(
5233
+ const st = an(
5224
5234
  s,
5225
5235
  t.children ?? [],
5226
5236
  _,
5227
5237
  i,
5228
5238
  t
5229
- ), X = _?.__id ? `data-v-${_.__id}` : void 0, re = X ? { [X]: "" } : {}, ce = _.__mode === T.Design ? { "data-vtj": c } : {}, { ref: Gt, ...tt } = B, qt = {}, Wt = {};
5230
- for (const R of Object.keys(tt))
5231
- R.startsWith("on") ? qt[R] = tt[R] : Wt[R] = tt[R];
5232
- const je = `${c}_${D}`, st = {
5233
- key: je,
5234
- ...re,
5235
- ...ce,
5239
+ ), we = _?.__id ? `data-v-${_.__id}` : void 0, z = we ? { [we]: "" } : {}, K = _.__mode === T.Design ? { "data-vtj": c } : {}, { ref: le, ...Me } = B, qt = {}, Wt = {};
5240
+ for (const R of Object.keys(Me))
5241
+ R.startsWith("on") ? qt[R] = Me[R] : Wt[R] = Me[R];
5242
+ const De = `${c}_${D}`, it = {
5243
+ key: De,
5244
+ ...z,
5245
+ ...K,
5236
5246
  ...Wt
5237
5247
  };
5238
- _.__cache.isNodeEqual(st, _.__cache.getNode(je)) || _.__cache.setNode(je, st);
5239
- let it = s.createVNode(
5248
+ _.__cache.isNodeEqual(it, _.__cache.getNode(De)) || _.__cache.setNode(De, it);
5249
+ let rt = s.createVNode(
5240
5250
  ge,
5241
5251
  {
5242
- ..._.__cache.getNode(je) || st,
5243
- ref: Gt,
5252
+ ..._.__cache.getNode(De) || it,
5253
+ ref: le,
5244
5254
  ...qt,
5245
- ...et
5255
+ ...je
5246
5256
  },
5247
- Fe
5257
+ st
5248
5258
  );
5249
- const zt = o ? qr(o, k, _) : [];
5250
- return zt.length && (it = s.withDirectives(it, zt)), it;
5259
+ const zt = o ? qr(o, b, _) : [];
5260
+ return zt.length && (rt = s.withDirectives(rt, zt)), rt;
5251
5261
  };
5252
- return f ? cn(f, A, e) : A(e, a);
5262
+ return f ? cn(f, I, e) : I(e, a);
5253
5263
  }
5254
5264
  function qr(t, e, s) {
5255
5265
  const i = t.app;
@@ -5261,12 +5271,12 @@ function qr(t, e, s) {
5261
5271
  }).filter((r) => !!r);
5262
5272
  }
5263
5273
  function ei(t = []) {
5264
- const e = t.find((l) => Z(l.name) === "vIf"), s = t.find(
5265
- (l) => Z(l.name) === "vElseIf"
5266
- ), i = t.find((l) => Z(l.name) === "vElse"), r = t.find((l) => Z(l.name) === "vFor"), n = t.find((l) => Z(l.name) === "vShow"), a = t.find((l) => Z(l.name) === "vBind"), o = t.find((l) => Z(l.name) === "vHtml"), c = t.filter(
5267
- (l) => Z(l.name) === "vModel"
5274
+ const e = t.find((l) => ee(l.name) === "vIf"), s = t.find(
5275
+ (l) => ee(l.name) === "vElseIf"
5276
+ ), i = t.find((l) => ee(l.name) === "vElse"), r = t.find((l) => ee(l.name) === "vFor"), n = t.find((l) => ee(l.name) === "vShow"), a = t.find((l) => ee(l.name) === "vBind"), o = t.find((l) => ee(l.name) === "vHtml"), c = t.filter(
5277
+ (l) => ee(l.name) === "vModel"
5268
5278
  ), h = t.filter(
5269
- (l) => !xi.includes(Z(l.name))
5279
+ (l) => !xi.includes(ee(l.name))
5270
5280
  );
5271
5281
  return {
5272
5282
  vIf: e,
@@ -5287,14 +5297,14 @@ function zr(t, e) {
5287
5297
  return e ? N(e) ? t.__parseExpression(e) : e : "div";
5288
5298
  }
5289
5299
  function Kr(t, e, s) {
5290
- const i = Ct(e, s);
5300
+ const i = wt(e, s);
5291
5301
  return i.ref = s.__ref(t, i.ref), i;
5292
5302
  }
5293
- function Ct(t, e) {
5294
- return t === null ? null : N(t) ? e.__parseExpression(t) : L(t) ? e.__parseFunction(t) : Array.isArray(t) ? t.map((s) => Ct(s, e)) : typeof t == "object" ? Object.keys(t || {}).reduce(
5303
+ function wt(t, e) {
5304
+ return t === null ? null : N(t) ? e.__parseExpression(t) : L(t) ? e.__parseFunction(t) : Array.isArray(t) ? t.map((s) => wt(s, e)) : typeof t == "object" ? Object.keys(t || {}).reduce(
5295
5305
  (s, i) => {
5296
5306
  let r = t[i];
5297
- return s[i] = Ct(r, e), s;
5307
+ return s[i] = wt(r, e), s;
5298
5308
  },
5299
5309
  {}
5300
5310
  ) : t;
@@ -5325,7 +5335,7 @@ function Yr(t, e, s, i) {
5325
5335
  };
5326
5336
  return Object.keys(s || {}).reduce(
5327
5337
  (o, c) => {
5328
- const h = s[c], l = $t(h.modifiers), p = r.filter((g) => l.includes(g)).map((g) => n[g]).join(""), d = l.filter(
5338
+ const h = s[c], l = Ht(h.modifiers), p = r.filter((g) => l.includes(g)).map((g) => n[g]).join(""), d = l.filter(
5329
5339
  (g) => !r.includes(g)
5330
5340
  ), f = "on" + pi(c) + p, m = h.handler ? i.__parseFunction(Qr(h.handler)) : null;
5331
5341
  return m && (o[f] = t.withModifiers(
@@ -5352,13 +5362,13 @@ function Xr(t, e, s, i, r = []) {
5352
5362
  }
5353
5363
  return null;
5354
5364
  }
5355
- function $t(t = {}, e = !1) {
5365
+ function Ht(t = {}, e = !1) {
5356
5366
  const s = Object.keys(t).filter((i) => t[i]);
5357
5367
  return e ? s.map((i) => "." + i) : s;
5358
5368
  }
5359
5369
  function Zr(t, e, s, i, r) {
5360
5370
  const { children: n } = e, a = en(e, i), o = i.$slots?.[a.name];
5361
- return o ? o(s) : n ? te(n) ? t.createTextVNode(n) : N(n) ? t.createTextVNode(
5371
+ return o ? o(s) : n ? se(n) ? t.createTextVNode(n) : N(n) ? t.createTextVNode(
5362
5372
  vs(i.__parseExpression(n))
5363
5373
  ) : Array.isArray(n) ? n.map(
5364
5374
  (c, h) => Ce(c, i, t, r, n, !1, h)
@@ -5382,9 +5392,9 @@ function sn(t, e) {
5382
5392
  };
5383
5393
  }
5384
5394
  function rn(t, e, s, i, r) {
5385
- const n = t.value?.value, a = $t(
5395
+ const n = t.value?.value, a = Ht(
5386
5396
  N(t.modifiers) ? e.__parseExpression(t.modifiers) : t.modifiers
5387
- ), o = s === "input" && i === "checkbox", c = s === "input" && i === "radio", h = s === "select", l = a.includes("lazy") || o || c || h ? "onChange" : "onInput", p = (k) => `((value) => value === '' ? value : (Number.isNaN(Number(value)) ? value : Number(value)))(${k})`, d = a.includes("number") ? p("v?.target._value ?? v?.target.value") : "v?.target._value ?? v?.target.value";
5397
+ ), o = s === "input" && i === "checkbox", c = s === "input" && i === "radio", h = s === "select", l = a.includes("lazy") || o || c || h ? "onChange" : "onInput", p = (b) => `((value) => value === '' ? value : (Number.isNaN(Number(value)) ? value : Number(value)))(${b})`, d = a.includes("number") ? p("v?.target._value ?? v?.target.value") : "v?.target._value ?? v?.target.value";
5388
5398
  let f = "v?.target.value";
5389
5399
  if (o)
5390
5400
  f = `Array.isArray(${n})
@@ -5397,10 +5407,10 @@ function rn(t, e, s, i, r) {
5397
5407
  else if (c)
5398
5408
  f = d;
5399
5409
  else if (h) {
5400
- const k = a.includes("number") ? p("option._value ?? option.value") : "option._value ?? option.value", A = a.includes("number") ? p("v?.target.selectedOptions?.[0]?._value ?? v?.target.value") : "v?.target.selectedOptions?.[0]?._value ?? v?.target.value";
5410
+ const b = a.includes("number") ? p("option._value ?? option.value") : "option._value ?? option.value", I = a.includes("number") ? p("v?.target.selectedOptions?.[0]?._value ?? v?.target.value") : "v?.target.selectedOptions?.[0]?._value ?? v?.target.value";
5401
5411
  f = `v?.target.multiple
5402
- ? Array.from(v.target.selectedOptions).map((option) => ${k})
5403
- : (${A})`;
5412
+ ? Array.from(v.target.selectedOptions).map((option) => ${b})
5413
+ : (${I})`;
5404
5414
  } else
5405
5415
  a.includes("trim") && (f = `(${f})?.trim()`), a.includes("number") && (f = p(f));
5406
5416
  const m = {
@@ -5408,9 +5418,9 @@ function rn(t, e, s, i, r) {
5408
5418
  value: n ? `(v) => {
5409
5419
  ${n} = ${f};
5410
5420
  }` : "(v) => {}"
5411
- }, g = N(t.arg) ? e.__parseExpression(t.arg) : t.arg || "value", v = e.__parseExpression(t.value), x = o ? Array.isArray(v) ? v.includes(r) : !!v : c ? v === r : v;
5421
+ }, g = N(t.arg) ? e.__parseExpression(t.arg) : t.arg || "value", v = e.__parseExpression(t.value), C = o ? Array.isArray(v) ? v.includes(r) : !!v : c ? v === r : v;
5412
5422
  return {
5413
- [o || c ? "checked" : g]: x,
5423
+ [o || c ? "checked" : g]: C,
5414
5424
  [l]: e.__parseFunction(m)
5415
5425
  };
5416
5426
  }
@@ -5420,7 +5430,7 @@ function nn(t, e) {
5420
5430
  value: t.value?.value ? `(v) => {
5421
5431
  ${t.value.value} = v;
5422
5432
  }` : "(v) => {}"
5423
- }, i = e.__parseFunction(s), r = $t(
5433
+ }, i = e.__parseFunction(s), r = Ht(
5424
5434
  N(t.modifiers) ? e.__parseExpression(t.modifiers) : t.modifiers
5425
5435
  ), n = N(t.arg) ? e.__parseExpression(t.arg) : t.arg || "modelValue", a = {
5426
5436
  [n]: e.__parseExpression(t.value),
@@ -5430,7 +5440,7 @@ function nn(t, e) {
5430
5440
  }
5431
5441
  function an(t, e, s, i, r) {
5432
5442
  if (!e) return null;
5433
- if (te(e))
5443
+ if (se(e))
5434
5444
  return { default: () => e };
5435
5445
  if (N(e))
5436
5446
  return {
@@ -5475,17 +5485,17 @@ function on(t) {
5475
5485
  return e;
5476
5486
  }
5477
5487
  function un(t = "default") {
5478
- return te(t) ? { name: t, params: [], scope: "" } : { params: [], scope: "", ...t };
5488
+ return se(t) ? { name: t, params: [], scope: "" } : { params: [], scope: "", ...t };
5479
5489
  }
5480
5490
  function cn(t, e, s) {
5481
5491
  const { value: i, iterator: r } = t, { item: n = "item", index: a = "index" } = r || {};
5482
5492
  let o = s.__parseExpression(i) || [];
5483
5493
  return Number.isInteger(o) && (o = new Array(o).fill(!0).map((c, h) => h + 1)), Array.isArray(o) ? o.map((c, h) => e(s.__clone({ [n]: c, [a]: h }), h)) : (console.warn("[vForRender]:", `${i?.value} is not a Arrary`), []);
5484
5494
  }
5485
- const ht = ds({
5495
+ const pt = ds({
5486
5496
  name: "VtjPageContainer",
5487
5497
  async setup() {
5488
- const t = si(), e = ms(), s = Yt(), i = Yt(), r = vt(Symbol());
5498
+ const t = si(), e = ms(), s = Yt(), i = Yt(), r = xt(Symbol());
5489
5499
  let n = 0;
5490
5500
  const a = async () => {
5491
5501
  const c = ++n, h = e.meta.__vtj__ || e.params.id, l = h ? t.getPage(h) : t.getHomepage(), p = l ? await t.getRenderComponent(l.id) : null;
@@ -5510,7 +5520,7 @@ const ht = ds({
5510
5520
  },
5511
5521
  render() {
5512
5522
  const { component: t, sid: e, route: s } = this;
5513
- return t ? gt(t, { ...s.query, key: e }) : gt(
5523
+ return t ? vt(t, { ...s.query, key: e }) : vt(
5514
5524
  "div",
5515
5525
  { style: { padding: "10px" } },
5516
5526
  "找不到组件,组件不存在或未发布!"
@@ -5522,15 +5532,15 @@ const ht = ds({
5522
5532
  }), ln = ds({
5523
5533
  name: "VtjStartupContainer",
5524
5534
  render() {
5525
- return gt("div", "page not found!");
5535
+ return vt("div", "page not found!");
5526
5536
  }
5527
5537
  });
5528
- function qe(t, e, s = []) {
5538
+ function ze(t, e, s = []) {
5529
5539
  const i = [];
5530
5540
  for (const r of s) {
5531
5541
  const { id: n, title: a, icon: o, children: c, hidden: h, layout: l } = r;
5532
5542
  if (l) {
5533
- const p = qe(t, e, c || []);
5543
+ const p = ze(t, e, c || []);
5534
5544
  i.push(...p);
5535
5545
  } else {
5536
5546
  const p = {
@@ -5539,7 +5549,7 @@ function qe(t, e, s = []) {
5539
5549
  icon: o,
5540
5550
  hidden: h,
5541
5551
  url: `${t}/${e}/${n}`,
5542
- children: c && c.length ? qe(t, e, c) : void 0
5552
+ children: c && c.length ? ze(t, e, c) : void 0
5543
5553
  };
5544
5554
  i.push(p);
5545
5555
  }
@@ -5562,27 +5572,27 @@ function Dn(t) {
5562
5572
  menuPathPrefix: e = "",
5563
5573
  pageRouteName: s = "page",
5564
5574
  disableMenusFilter: i = !1
5565
- } = t || {}, r = si(), n = ms(), a = _r(), o = vt(!1), c = vt(!1), h = r.project, l = (f, m) => {
5575
+ } = t || {}, r = si(), n = ms(), a = _r(), o = xt(!1), c = xt(!1), h = r.project, l = (f, m) => {
5566
5576
  o.value = !f?.mask, c.value = m?.pure ?? !!f?.pure;
5567
5577
  };
5568
5578
  vi(() => {
5569
5579
  const { name: f, params: m, meta: g } = n;
5570
- if (f === Ee) {
5580
+ if (f === ke) {
5571
5581
  const v = r.getPage(m.id);
5572
5582
  l(v, g);
5573
- } else if (f === $e) {
5583
+ } else if (f === Ue) {
5574
5584
  const v = r.getHomepage();
5575
5585
  l(v, g);
5576
5586
  } else {
5577
5587
  const v = g.__vtj__;
5578
5588
  if (v) {
5579
- const x = r.getPage(v);
5580
- l(x, g);
5589
+ const C = r.getPage(v);
5590
+ l(C, g);
5581
5591
  } else
5582
5592
  o.value = !g.mask, c.value = !!g.pure;
5583
5593
  }
5584
5594
  });
5585
- const p = qe(
5595
+ const p = ze(
5586
5596
  e,
5587
5597
  s,
5588
5598
  h?.pages
@@ -5596,7 +5606,7 @@ function Dn(t) {
5596
5606
  pure: c
5597
5607
  };
5598
5608
  }
5599
- function pt(t, e) {
5609
+ function ft(t, e) {
5600
5610
  const { id: s, title: i, meta: r } = t, { name: n = "page", prefix: a = "", component: o, routeMeta: c } = e;
5601
5611
  return {
5602
5612
  name: s,
@@ -5610,7 +5620,7 @@ function pt(t, e) {
5610
5620
  }
5611
5621
  };
5612
5622
  }
5613
- function wt(t) {
5623
+ function Et(t) {
5614
5624
  const {
5615
5625
  name: e = "page",
5616
5626
  prefix: s = "",
@@ -5623,7 +5633,7 @@ function wt(t) {
5623
5633
  for (const h of i) {
5624
5634
  const { id: l, title: p, dir: d, layout: f, children: m, meta: g } = h;
5625
5635
  if (d) {
5626
- const v = wt({
5636
+ const v = Et({
5627
5637
  name: e,
5628
5638
  prefix: s,
5629
5639
  component: r,
@@ -5634,7 +5644,7 @@ function wt(t) {
5634
5644
  });
5635
5645
  c.push(...v);
5636
5646
  } else if (f) {
5637
- const v = wt({
5647
+ const v = Et({
5638
5648
  name: e,
5639
5649
  prefix: s,
5640
5650
  component: r,
@@ -5642,7 +5652,7 @@ function wt(t) {
5642
5652
  homepage: o,
5643
5653
  loader: n,
5644
5654
  pages: m || []
5645
- }), x = {
5655
+ }), C = {
5646
5656
  name: `layout_${l}`,
5647
5657
  path: s,
5648
5658
  component: () => n(l),
@@ -5654,9 +5664,9 @@ function wt(t) {
5654
5664
  },
5655
5665
  children: v
5656
5666
  };
5657
- c.push(x), c.push(pt(h, t));
5658
- } else if (c.push(pt(h, t)), o === l) {
5659
- const v = pt(h, t);
5667
+ c.push(C), c.push(ft(h, t));
5668
+ } else if (c.push(ft(h, t)), o === l) {
5669
+ const v = ft(h, t);
5660
5670
  v.path = "", v.name = `home_${l}`, c.push(v);
5661
5671
  }
5662
5672
  }
@@ -5664,7 +5674,7 @@ function wt(t) {
5664
5674
  }
5665
5675
  function hn(t = {}, e) {
5666
5676
  const { css: s, store: i, enhance: r } = t, { window: n, app: a, library: o = {}, adapter: c, mode: h } = e, { Pinia: l } = o;
5667
- a.config.globalProperties.$libs = o, It(n, "global-css", s || ""), l && i && pn(i, a, l), dn(a, c, t), !c.access && t.access && fn(t.access, a, h, c), mn(a, t), r && gn(r, a, o);
5677
+ a.config.globalProperties.$libs = o, At(n, "global-css", s || ""), l && i && pn(i, a, l), dn(a, c, t), !c.access && t.access && fn(t.access, a, h, c), mn(a, t), r && gn(r, a, o);
5668
5678
  }
5669
5679
  function pn(t, e, s) {
5670
5680
  if (!e.config.globalProperties.$pinia) {
@@ -5672,13 +5682,13 @@ function pn(t, e, s) {
5672
5682
  e.use(i);
5673
5683
  }
5674
5684
  if (L(t) && t.value) {
5675
- const i = J(t, {}, !1, !1, !0), r = s.defineStore("$store", i(e) || {});
5685
+ const i = Y(t, {}, !1, !1, !0), r = s.defineStore("$store", i(e) || {});
5676
5686
  e.config.globalProperties.$store = r();
5677
5687
  }
5678
5688
  }
5679
5689
  function fn(t, e, s, i) {
5680
5690
  if (L(t) && t.value) {
5681
- const r = J(t, {}, !1, !1, !0), { alert: n, request: a } = i, o = new Bt({
5691
+ const r = Y(t, {}, !1, !1, !0), { alert: n, request: a } = i, o = new $t({
5682
5692
  alert: n,
5683
5693
  storagePrefix: "__VTJ_APP_",
5684
5694
  ...r(e)
@@ -5690,31 +5700,31 @@ function dn(t, e, s) {
5690
5700
  if (!e.request) return;
5691
5701
  const { axios: i, request: r, response: n } = s;
5692
5702
  if (i && L(i) && i.value) {
5693
- const a = J(i, {}, !1, !1, !0);
5703
+ const a = Y(i, {}, !1, !1, !0);
5694
5704
  e.request.setConfig(a(t));
5695
5705
  }
5696
5706
  if (r && L(r) && r.value) {
5697
- const a = J(r, {}, !1, !1, !0), o = e.request;
5707
+ const a = Y(r, {}, !1, !1, !0), o = e.request;
5698
5708
  o.__unReq && o.__unReq(), o.__unReq = e.request.useRequest((c) => a(c, t));
5699
5709
  }
5700
5710
  if (n && L(n) && n.value) {
5701
- const a = J(n, {}, !1, !1, !0), o = e.request;
5711
+ const a = Y(n, {}, !1, !1, !0), o = e.request;
5702
5712
  o.__unRes && o.__unRes(), o.__unRes = e.request.useResponse((c) => a(c, t));
5703
5713
  }
5704
5714
  }
5705
5715
  function mn(t, e) {
5706
5716
  const { beforeEach: s, afterEach: i } = e, r = t.config.globalProperties.$router;
5707
5717
  if (s && L(s) && s.value) {
5708
- const n = J(s, {}, !1, !1, !0);
5718
+ const n = Y(s, {}, !1, !1, !0);
5709
5719
  r && r.beforeEach((a, o, c) => n(a, o, c, t));
5710
5720
  }
5711
5721
  if (i && L(i) && i.value) {
5712
- const n = J(i, {}, !1, !1, !0);
5722
+ const n = Y(i, {}, !1, !1, !0);
5713
5723
  r && r.afterEach((a, o, c) => n(a, o, c, t));
5714
5724
  }
5715
5725
  }
5716
5726
  function gn(t, e, s = {}) {
5717
- L(t) && t.value && J(t, {}, !1, !1, !0)(e, s);
5727
+ L(t) && t.value && Y(t, {}, !1, !1, !0)(e, s);
5718
5728
  }
5719
5729
  function vn(t, e, s) {
5720
5730
  if (!t || !e || !s) return;
@@ -5735,7 +5745,7 @@ function vn(t, e, s) {
5735
5745
  t.use(c);
5736
5746
  }
5737
5747
  }
5738
- const Ht = Symbol("Provider");
5748
+ const Ut = Symbol("Provider");
5739
5749
  var xn = /* @__PURE__ */ ((t) => (t.Production = "production", t.Development = "development", t))(xn || {});
5740
5750
  class bn extends ri {
5741
5751
  /**
@@ -5763,7 +5773,7 @@ class bn extends ri {
5763
5773
  f && f.connect({ mode: i, router: l, request: m }), a && i !== T.Design ? (this.initialization = this.load(a).then(
5764
5774
  () => this
5765
5775
  ), this.initialization.catch(
5766
- (g) => he.error("Provider.load.error", g)
5776
+ (g) => pe.error("Provider.load.error", g)
5767
5777
  )) : (this.project = a, this.triggerReady(), this.initialization = Promise.resolve(this));
5768
5778
  }
5769
5779
  mode;
@@ -5772,7 +5782,7 @@ class bn extends ri {
5772
5782
  // 全局变量
5773
5783
  modules = {};
5774
5784
  // 异步模块加载器
5775
- adapter = { request: mt, jsonp: fs };
5785
+ adapter = { request: gt, jsonp: fs };
5776
5786
  // 适配器接口
5777
5787
  apis = {};
5778
5788
  // API集合
@@ -5811,9 +5821,9 @@ class bn extends ri {
5811
5821
  try {
5812
5822
  i = await e.apply(e, s);
5813
5823
  } catch (n) {
5814
- he.warn("模拟数据模版异常", n);
5824
+ pe.warn("模拟数据模版异常", n);
5815
5825
  }
5816
- const r = Ae();
5826
+ const r = Pe();
5817
5827
  return r || console.warn(
5818
5828
  "[@vtj/renderer]",
5819
5829
  "项目缺少mockjs, 你需要安装mockjs依赖,并在应用的 main.ts 中添加 mockjs 导入,确保 window.Mock 可用"
@@ -5837,7 +5847,7 @@ class bn extends ri {
5837
5847
  o && (o.CKEDITOR_VERSION = void 0), this.initEnv(a), this.mode === T.Raw ? await this.loadDependencies(o) : await this.loadAssets(o), this.initMock(o), this.apis = wr(r, n, this.adapter), Ys(o), Er(r, o), this.project.platform !== "uniapp" && this.initRouter(), this.triggerReady();
5838
5848
  }
5839
5849
  initMock(e) {
5840
- const s = Ae(e);
5850
+ const s = Pe(e);
5841
5851
  s && s.setup({
5842
5852
  timeout: "50-500"
5843
5853
  });
@@ -5870,37 +5880,37 @@ class bn extends ri {
5870
5880
  );
5871
5881
  Object.assign(this.libraryLocaleMap, m);
5872
5882
  for (const g of h) {
5873
- const v = i[g], x = e[g];
5874
- if (x)
5875
- r[g] = x;
5883
+ const v = i[g], C = e[g];
5884
+ if (C)
5885
+ r[g] = C;
5876
5886
  else if (v)
5877
5887
  e[g] = r[g] = await v();
5878
5888
  else {
5879
- const A = l[g] || [];
5880
- for (const _ of A)
5881
- We(_) && await Ti(_, fe.append(_, { v: we })), ze(_) && await Qt(fe.append(_, { v: we }));
5889
+ const I = l[g] || [];
5890
+ for (const _ of I)
5891
+ Ke(_) && await Ti(_, de.append(_, { v: Ee })), Je(_) && await Qt(de.append(_, { v: Ee }));
5882
5892
  r[g] = e[g];
5883
5893
  }
5884
- const k = m[g];
5885
- if (k) {
5886
- const A = i[k];
5887
- c[k] = A ? await A() : e[k];
5894
+ const b = m[g];
5895
+ if (b) {
5896
+ const I = i[b];
5897
+ c[b] = I ? await I() : e[b];
5888
5898
  }
5889
5899
  }
5890
5900
  if (o === "development") {
5891
5901
  for (const v of p)
5892
- await Qt(fe.append(v, { v: we }));
5902
+ await Qt(de.append(v, { v: Ee }));
5893
5903
  const g = this.materials || {};
5894
5904
  for (const v of d) {
5895
- const x = e[f[v]], k = x?.default || x, A = ni[v];
5896
- if (A)
5897
- k && A.forEach((_) => {
5898
- n[_] = k[_];
5905
+ const C = e[f[v]], b = C?.default || C, I = ni[v];
5906
+ if (I)
5907
+ b && I.forEach((_) => {
5908
+ n[_] = b[_];
5899
5909
  });
5900
5910
  else {
5901
5911
  const _ = g[v] ? (await g[v]()).default : e[v];
5902
- _ && k && (_.components || []).forEach((D) => {
5903
- n[D.name] = wi(D, k);
5912
+ _ && b && (_.components || []).forEach((D) => {
5913
+ n[D.name] = wi(D, b);
5904
5914
  });
5905
5915
  }
5906
5916
  }
@@ -5915,21 +5925,21 @@ class bn extends ri {
5915
5925
  routeMeta: c
5916
5926
  } = i, h = a ? "" : "/", l = {
5917
5927
  path: `${h}${o}/:id`,
5918
- name: Ee,
5919
- component: ht
5928
+ name: ke,
5929
+ component: pt
5920
5930
  }, p = this.getHomepage(), d = {
5921
5931
  path: h,
5922
- name: $e,
5923
- component: p ? ht : r.startupComponent || ln,
5932
+ name: Ue,
5933
+ component: p ? pt : r.startupComponent || ln,
5924
5934
  meta: c
5925
5935
  };
5926
- if (e.hasRoute(Ee) && e.removeRoute(Ee), e.hasRoute($e) && e.removeRoute($e), i.enableStaticRoute) {
5936
+ if (e.hasRoute(ke) && e.removeRoute(ke), e.hasRoute(Ue) && e.removeRoute(Ue), i.enableStaticRoute) {
5927
5937
  const f = s?.pages || [];
5928
- wt({
5938
+ Et({
5929
5939
  name: o,
5930
5940
  prefix: h,
5931
5941
  pages: f,
5932
- component: ht,
5942
+ component: pt,
5933
5943
  loader: this.getRenderComponent.bind(this),
5934
5944
  homepage: p?.id,
5935
5945
  routeMeta: c
@@ -5976,7 +5986,7 @@ class bn extends ri {
5976
5986
  const h = { locale: i[s[a]] }, l = r[a] || {}, p = { ...h, ...l };
5977
5987
  e.use(o, p), n[a] = !0;
5978
5988
  }
5979
- e.provide(Ht, this), e.config.globalProperties.$provider = this, e.config.globalProperties.$apis = this.apis, e.config.globalProperties.$request = this.adapter?.request, this.options.install && e.use(this.options.install), this.adapter.access && e.use(this.adapter.access), this.project?.platform !== "uniapp" && this.mode !== T.Design && this.initGlobals(this.project?.globals || {}, {
5989
+ e.provide(Ut, this), e.config.globalProperties.$provider = this, e.config.globalProperties.$apis = this.apis, e.config.globalProperties.$request = this.adapter?.request, this.options.install && e.use(this.options.install), this.adapter.access && e.use(this.adapter.access), this.project?.platform !== "uniapp" && this.mode !== T.Design && this.initGlobals(this.project?.globals || {}, {
5980
5990
  app: e,
5981
5991
  window: globalThis,
5982
5992
  adapter: this.adapter,
@@ -6023,7 +6033,7 @@ class bn extends ri {
6023
6033
  return s(e) || null;
6024
6034
  }
6025
6035
  getMenus(e = "page", s = "") {
6026
- return qe(s, e, this.project?.pages || []);
6036
+ return ze(s, e, this.project?.pages || []);
6027
6037
  }
6028
6038
  getHomepage() {
6029
6039
  const { homepage: e } = this.project || {};
@@ -6071,7 +6081,7 @@ class bn extends ri {
6071
6081
  getDslByUrl: async (h) => await this.getDslByUrl(h) || null,
6072
6082
  options: o
6073
6083
  });
6074
- return St({
6084
+ return Ct({
6075
6085
  ...o,
6076
6086
  dsl: e,
6077
6087
  loader: c
@@ -6090,13 +6100,13 @@ class bn extends ri {
6090
6100
  async getRenderComponent(e, s) {
6091
6101
  const i = this.getFile(e);
6092
6102
  if (!i)
6093
- return he.warn(`Can not find file: ${e}`), null;
6103
+ return pe.warn(`Can not find file: ${e}`), null;
6094
6104
  if (s && s(i), this.mode === T.Raw) {
6095
6105
  const { vtjRawDir: n = ".vtj/vue" } = this.options, a = `${n}/${e}.vue`, o = this.modules[a] || this.modules[`/src/pages/${e}.vue`];
6096
6106
  return o ? (await o())?.default : this.nodeEnv === "development" && this.adapter.startupComponent || null;
6097
6107
  }
6098
6108
  const r = await this.getDsl(i.id);
6099
- return r ? this.createDslRenderer(r).renderer : (he.warn(`Can not find dsl: ${e}`), null);
6109
+ return r ? this.createDslRenderer(r).renderer : (pe.warn(`Can not find dsl: ${e}`), null);
6100
6110
  }
6101
6111
  /**
6102
6112
  * 定义基于URL的异步组件
@@ -6157,7 +6167,7 @@ function Bn(t) {
6157
6167
  };
6158
6168
  }
6159
6169
  function si(t = {}) {
6160
- const e = kt(Ht, null);
6170
+ const e = It(Ut, null);
6161
6171
  if (!e)
6162
6172
  throw new Error("Can not find provider");
6163
6173
  if (e.nodeEnv === "development") {
@@ -6173,23 +6183,23 @@ function si(t = {}) {
6173
6183
  }
6174
6184
  return e;
6175
6185
  }
6176
- function Le() {
6177
- return kt(Ht, null)?.globals ?? {};
6186
+ function Fe() {
6187
+ return It(Ut, null)?.globals ?? {};
6178
6188
  }
6179
6189
  function $n() {
6180
- return Le().$store || {};
6190
+ return Fe().$store || {};
6181
6191
  }
6182
6192
  function Hn() {
6183
- return Le().$pinia || {};
6193
+ return Fe().$pinia || {};
6184
6194
  }
6185
6195
  function Un() {
6186
- return Le().$request;
6196
+ return Fe().$request;
6187
6197
  }
6188
6198
  function Gn() {
6189
- return Le().$libs || {};
6199
+ return Fe().$libs || {};
6190
6200
  }
6191
6201
  function qn() {
6192
- return Le().$apis || {};
6202
+ return Fe().$apis || {};
6193
6203
  }
6194
6204
  async function Wn(t, e = "") {
6195
6205
  const { name: s, urls: i = [] } = t || {}, r = i.map((o) => e + o), { css: n, js: a } = Ei(r);
@@ -6241,8 +6251,8 @@ function zn(t) {
6241
6251
  }
6242
6252
  });
6243
6253
  }
6244
- class Ut {
6245
- constructor(e = mt) {
6254
+ class Gt {
6255
+ constructor(e = gt) {
6246
6256
  this.req = e, this.api = yn(e), this.uploader = _n(e);
6247
6257
  }
6248
6258
  api;
@@ -6330,7 +6340,7 @@ class Ut {
6330
6340
  const { urls: s = [] } = e, i = s.filter((n) => _i(n))[0];
6331
6341
  if (!i) return null;
6332
6342
  const r = this.pluginCaches[i];
6333
- return r || (this.pluginCaches[i] = mt.send({
6343
+ return r || (this.pluginCaches[i] = gt.send({
6334
6344
  url: i,
6335
6345
  method: "get",
6336
6346
  settings: {
@@ -6348,17 +6358,17 @@ const j = new mi({
6348
6358
  expired: 0,
6349
6359
  prefix: "__VTJ_"
6350
6360
  });
6351
- class Kn extends Ut {
6361
+ class Kn extends Gt {
6352
6362
  init(e) {
6353
- const s = new He(e), i = j.get(`project_${s.id}`), r = Object.assign(s.toDsl(), i || {});
6363
+ const s = new Ge(e), i = j.get(`project_${s.id}`), r = Object.assign(s.toDsl(), i || {});
6354
6364
  return j.save(`project_${s.id}`, r), Promise.resolve(r);
6355
6365
  }
6356
6366
  saveProject(e) {
6357
- const s = new He(e);
6367
+ const s = new Ge(e);
6358
6368
  return j.save(`project_${s.id}`, s.toDsl()), Promise.resolve(!0);
6359
6369
  }
6360
6370
  saveMaterials(e, s) {
6361
- return j.save(`materials_${e.id}`, Et(s)), Promise.resolve(!0);
6371
+ return j.save(`materials_${e.id}`, kt(s)), Promise.resolve(!0);
6362
6372
  }
6363
6373
  saveFile(e) {
6364
6374
  return j.save(`file_${e.id}`, e), Promise.resolve(!0);
@@ -6398,22 +6408,22 @@ class Kn extends Ut {
6398
6408
  }), Promise.resolve(!0);
6399
6409
  }
6400
6410
  }
6401
- class Sn extends Ut {
6411
+ class Sn extends Gt {
6402
6412
  projects = {};
6403
6413
  materials = {};
6404
6414
  files = {};
6405
6415
  histories = {};
6406
6416
  historyItems = {};
6407
6417
  init(e) {
6408
- const s = new He(e), i = this.projects[s.id] || {}, r = Object.assign(s.toDsl(), i);
6418
+ const s = new Ge(e), i = this.projects[s.id] || {}, r = Object.assign(s.toDsl(), i);
6409
6419
  return this.projects[r.id] = r, Promise.resolve(r);
6410
6420
  }
6411
6421
  saveProject(e) {
6412
- const s = new He(e);
6422
+ const s = new Ge(e);
6413
6423
  return this.projects[s.id] = s.toDsl(), Promise.resolve(!0);
6414
6424
  }
6415
6425
  saveMaterials(e, s) {
6416
- return e.id && (this.materials[e.id] = Et(s)), Promise.resolve(!0);
6426
+ return e.id && (this.materials[e.id] = kt(s)), Promise.resolve(!0);
6417
6427
  }
6418
6428
  saveFile(e) {
6419
6429
  return this.files[e.id] = e, Promise.resolve(!0);
@@ -6455,11 +6465,11 @@ class Sn extends Ut {
6455
6465
  }), Promise.resolve(!0);
6456
6466
  }
6457
6467
  }
6458
- let Be = null;
6468
+ let He = null;
6459
6469
  function Jn() {
6460
- return Be || (Be = new Sn(), Be);
6470
+ return He || (He = new Sn(), He);
6461
6471
  }
6462
- class Qn extends Ut {
6472
+ class Qn extends Gt {
6463
6473
  getFileCaches = {};
6464
6474
  async getExtension() {
6465
6475
  return await this.api("getExtension", {}).catch(() => {
@@ -6476,7 +6486,7 @@ class Qn extends Ut {
6476
6486
  async saveMaterials(e, s) {
6477
6487
  return !!await this.api("saveMaterials", {
6478
6488
  project: e,
6479
- materials: Et(s)
6489
+ materials: kt(s)
6480
6490
  }).catch(() => !1);
6481
6491
  }
6482
6492
  async saveFile(e) {
@@ -6519,16 +6529,16 @@ class Qn extends Ut {
6519
6529
  export {
6520
6530
  Tn as ACCESS,
6521
6531
  Qs as ACCESS_KEY,
6522
- Bt as Access,
6532
+ $t as Access,
6523
6533
  yi as BUILD_IN_TAGS,
6524
6534
  xi as BUILT_IN_DIRECTIVES,
6525
- Ut as BaseService,
6535
+ Gt as BaseService,
6526
6536
  An as COMPOSITION_HOOKS_LIST,
6527
6537
  Zt as CONTEXT_HOST,
6528
6538
  cs as Context,
6529
6539
  T as ContextMode,
6530
6540
  bi as DATA_TYPES,
6531
- $e as HOMEPAGE_ROUTE_NAME,
6541
+ Ue as HOMEPAGE_ROUTE_NAME,
6532
6542
  gs as HTML_TAGS,
6533
6543
  Ln as JSCodeToString,
6534
6544
  In as LIFE_CYCLES_LIST,
@@ -6536,13 +6546,13 @@ export {
6536
6546
  Sn as MemoryService,
6537
6547
  Xs as NodeCache,
6538
6548
  xn as NodeEnv,
6539
- Ee as PAGE_ROUTE_NAME,
6549
+ ke as PAGE_ROUTE_NAME,
6540
6550
  bn as Provider,
6541
6551
  Pn as REMOTE,
6542
6552
  Kn as StorageService,
6543
- we as VTJ_RENDERER_VERSION,
6553
+ Ee as VTJ_RENDERER_VERSION,
6544
6554
  Vn as adoptStylesToInline,
6545
- It as adoptedStyleSheets,
6555
+ At as adoptedStyleSheets,
6546
6556
  Mn as clearLoaderCache,
6547
6557
  ki as compileScopedCSS,
6548
6558
  Pi as convertCssRpx,
@@ -6553,30 +6563,30 @@ export {
6553
6563
  Lr as createDataSources,
6554
6564
  Gr as createLoader,
6555
6565
  Jn as createMemoryService,
6556
- qe as createMenus,
6566
+ ze as createMenus,
6557
6567
  Cr as createMetaApi,
6558
6568
  kr as createMock,
6559
6569
  Bn as createProvider,
6560
- St as createRenderer,
6570
+ Ct as createRenderer,
6561
6571
  Sr as createSchemaApi,
6562
6572
  wr as createSchemaApis,
6563
6573
  zn as createServiceRequest,
6564
6574
  Ur as defaultLoader,
6565
- Me as fillBasePath,
6566
- Ae as getMock,
6567
- $t as getModifiers,
6575
+ Be as fillBasePath,
6576
+ Pe as getMock,
6577
+ Ht as getModifiers,
6568
6578
  Zs as getPlugin,
6569
6579
  wi as getRawComponent,
6570
6580
  Oi as isArrowFunction,
6571
6581
  Fi as isAssignment‌,
6572
6582
  Ri as isBuiltInTag,
6573
- We as isCSSUrl,
6583
+ Ke as isCSSUrl,
6574
6584
  Li as isCallFunction,
6575
6585
  br as isJSCode,
6576
6586
  N as isJSExpression,
6577
6587
  L as isJSFunction,
6578
6588
  _i as isJSON,
6579
- ze as isJSUrl,
6589
+ Je as isJSUrl,
6580
6590
  Vi as isNativeTag,
6581
6591
  Ni as isVuePlugin,
6582
6592
  Ti as loadCss,
@@ -6590,10 +6600,10 @@ export {
6590
6600
  Ar as nodeCache,
6591
6601
  Ce as nodeRender,
6592
6602
  Ci as parseDeps,
6593
- Re as parseExpression,
6594
- J as parseFunction,
6603
+ Ve as parseExpression,
6604
+ Y as parseFunction,
6595
6605
  Ei as parseUrls,
6596
- Ht as providerKey,
6606
+ Ut as providerKey,
6597
6607
  Si as removeProdFlag,
6598
6608
  Ai as rpxToPx,
6599
6609
  On as setupPageSetting,
@@ -6601,7 +6611,7 @@ export {
6601
6611
  _e as triggerError,
6602
6612
  _r as useAccess,
6603
6613
  qn as useApis,
6604
- Le as useGlobals,
6614
+ Fe as useGlobals,
6605
6615
  Gn as useLibs,
6606
6616
  Dn as useMask,
6607
6617
  Hn as usePinia,