@vtj/renderer 0.18.14 → 0.18.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +13 -13
- package/dist/index.mjs +308 -299
- package/package.json +5 -5
- package/types/render/context.d.ts +5 -0
- package/types/version.d.ts +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Base as
|
|
2
|
-
import { url as he, isUrl as mt, dedupArray as
|
|
1
|
+
import { Base as ni, BUILT_IN_COMPONENTS as ai, ProjectModel as $e, HistoryModel as us } from "@vtj/core";
|
|
2
|
+
import { url as he, isUrl as mt, dedupArray as oi, isFunction as K, isString as ee, logger as xe, storage as nt, cookie as at, toArray as Wt, unRSA as Kt, delay as Ie, createRequest as cs, jsonp as ls, merge as ui, pathToRegexp as ci, pathToRegexpMatch as li, formDataToJson as hi, isEqual as ot, Queue as pi, cloneDeep as zt, camelCase as X, upperFirstCamelCase as fi, pick as di, request as gt, loadScript as Jt, debounce as mi, Storage as gi, mapToObject as It } from "@vtj/utils";
|
|
3
3
|
import * as ve from "vue";
|
|
4
|
-
import { inject as At, defineComponent as hs, h as xt, ref as vt, watchEffect as
|
|
4
|
+
import { inject as At, defineComponent as hs, h as xt, ref as vt, watchEffect as xi, defineAsyncComponent as Qt } from "vue";
|
|
5
5
|
import { useRoute as ps } 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.18.
|
|
10
|
+
* @version 0.18.15
|
|
11
11
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
12
12
|
*/
|
|
13
|
-
const we = "0.18.
|
|
13
|
+
const we = "0.18.15";
|
|
14
14
|
var P = /* @__PURE__ */ ((t) => (t.Runtime = "Runtime", t.Design = "Design", t.Raw = "Raw", t.VNode = "VNode", t))(P || {});
|
|
15
15
|
const Yt = [
|
|
16
16
|
"$el",
|
|
@@ -24,7 +24,7 @@ const Yt = [
|
|
|
24
24
|
"$props",
|
|
25
25
|
"$options",
|
|
26
26
|
"$forceUpdate"
|
|
27
|
-
],
|
|
27
|
+
], kn = [
|
|
28
28
|
"beforeCreate",
|
|
29
29
|
"created",
|
|
30
30
|
"beforeMount",
|
|
@@ -38,7 +38,7 @@ const Yt = [
|
|
|
38
38
|
"renderTriggered",
|
|
39
39
|
"activated",
|
|
40
40
|
"deactivated"
|
|
41
|
-
],
|
|
41
|
+
], In = [
|
|
42
42
|
"onBeforeMount",
|
|
43
43
|
"onMounted",
|
|
44
44
|
"onBeforeUpdate",
|
|
@@ -50,7 +50,7 @@ const Yt = [
|
|
|
50
50
|
"onRenderTriggered",
|
|
51
51
|
"onActivated",
|
|
52
52
|
"onDeactivated"
|
|
53
|
-
],
|
|
53
|
+
], vi = [
|
|
54
54
|
"vIf",
|
|
55
55
|
"vElseIf",
|
|
56
56
|
"vElse",
|
|
@@ -59,7 +59,7 @@ const Yt = [
|
|
|
59
59
|
"vFor",
|
|
60
60
|
"vBind",
|
|
61
61
|
"vHtml"
|
|
62
|
-
],
|
|
62
|
+
], bi = {
|
|
63
63
|
String,
|
|
64
64
|
Number,
|
|
65
65
|
Boolean,
|
|
@@ -69,7 +69,7 @@ const Yt = [
|
|
|
69
69
|
Date
|
|
70
70
|
}, Ee = "VtjPage", He = "VtjHomepage", fs = "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(","), An = [
|
|
73
73
|
"h",
|
|
74
74
|
"t",
|
|
75
75
|
"t",
|
|
@@ -89,7 +89,7 @@ const Yt = [
|
|
|
89
89
|
"p",
|
|
90
90
|
"r",
|
|
91
91
|
"o"
|
|
92
|
-
].join(""),
|
|
92
|
+
].join(""), Pn = {
|
|
93
93
|
auth: [
|
|
94
94
|
"h",
|
|
95
95
|
"t",
|
|
@@ -158,28 +158,28 @@ function Ke(t) {
|
|
|
158
158
|
function ze(t) {
|
|
159
159
|
return /\.js$/.test(t);
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function _i(t) {
|
|
162
162
|
return /\.json$/.test(t);
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function Tn(t) {
|
|
165
165
|
return t.map(
|
|
166
166
|
(e) => `<script src="${he.append(e, { v: we })}"><\/script>`
|
|
167
167
|
).join("");
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function Nn(t = []) {
|
|
170
170
|
return t.map(
|
|
171
171
|
(e) => `<link rel="stylesheet" href="${he.append(e, { v: we })}" />`
|
|
172
172
|
).join("");
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function Si(t, e = !1) {
|
|
175
175
|
return e && t.endsWith(".prod.js") ? t.replace(".prod.js", ".js") : t;
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function Ci(t, e, s = !1) {
|
|
178
178
|
const i = t.filter((d) => !!d.enabled), r = [], n = [], a = [], u = [], c = {}, l = {}, h = [], p = {};
|
|
179
179
|
return i.forEach(
|
|
180
180
|
({ urls: d, assetsUrl: f, library: m, assetsLibrary: g, localeLibrary: x }) => {
|
|
181
181
|
d?.forEach((b) => {
|
|
182
|
-
ze(b) && r.push(
|
|
182
|
+
ze(b) && r.push(Si(b, s)), Ke(b) && n.push(b);
|
|
183
183
|
}), m && (u.push(m), c[m] = Me(d || [], e), x && (l[m] = x)), f && a.push(f), g && h.push(g), m && g && (p[g] = m);
|
|
184
184
|
}
|
|
185
185
|
), {
|
|
@@ -187,24 +187,24 @@ function _i(t, e, s = !1) {
|
|
|
187
187
|
css: Me(n, e),
|
|
188
188
|
materials: Me(a, e),
|
|
189
189
|
libraryExports: u,
|
|
190
|
-
materialExports:
|
|
190
|
+
materialExports: oi(h),
|
|
191
191
|
materialMapLibrary: p,
|
|
192
192
|
libraryMap: c,
|
|
193
193
|
libraryLocaleMap: l
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function wi(t, e) {
|
|
197
197
|
const { name: s, parent: i, alias: r } = t;
|
|
198
198
|
return i ? e[i]?.[r || s] : e[r || s];
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function Ei(t = []) {
|
|
201
201
|
const e = t.filter((i) => Ke(i)), s = t.filter((i) => ze(i));
|
|
202
202
|
return {
|
|
203
203
|
css: e,
|
|
204
204
|
js: s
|
|
205
205
|
};
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function ki(t, e) {
|
|
208
208
|
const s = (l) => {
|
|
209
209
|
const h = [];
|
|
210
210
|
let p = 0;
|
|
@@ -318,21 +318,21 @@ function wi(t, e) {
|
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
|
-
const
|
|
322
|
-
function
|
|
321
|
+
const Ii = 750;
|
|
322
|
+
function Ai(t, e, s) {
|
|
323
323
|
let i;
|
|
324
324
|
typeof t < "u" ? i = t.innerWidth || t.document.documentElement.clientWidth : (console.warn("无法获取屏幕宽度,使用默认值375"), i = 375);
|
|
325
|
-
const r = s ||
|
|
325
|
+
const r = s || Ii;
|
|
326
326
|
return e * i / r;
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function Pi(t, e) {
|
|
329
329
|
let s = !1, i = !1, r = !1, n = "";
|
|
330
330
|
for (let a = 0; a < e.length; a++) {
|
|
331
331
|
const u = e[a];
|
|
332
332
|
if (u === "'" && !i && !r ? s = !s : u === '"' && !s && !r ? i = !i : e.substr(a, 4).toLowerCase() === "url(" && !s && !i ? r = !0 : u === ")" && r && (r = !1), !s && !i && !r) {
|
|
333
333
|
const c = e.substr(a).match(/^(-?\d+(?:\.\d+)?)\s*rpx/);
|
|
334
334
|
if (c) {
|
|
335
|
-
const l = c[1], h = parseFloat(l), d = `${
|
|
335
|
+
const l = c[1], h = parseFloat(l), d = `${Ai(t, h).toFixed(6).replace(/\.?0+$/, "")}px`;
|
|
336
336
|
n += d, a += c[0].length - 1;
|
|
337
337
|
continue;
|
|
338
338
|
}
|
|
@@ -345,7 +345,7 @@ function ds(t) {
|
|
|
345
345
|
return ee(t) ? t : JSON.stringify(t);
|
|
346
346
|
}
|
|
347
347
|
function Pt(t, e, s, i = !1) {
|
|
348
|
-
const r = t.CSSStyleSheet, n = i ? `data-v-${e}` : e, a = t.__uniConfig ?
|
|
348
|
+
const r = t.CSSStyleSheet, n = i ? `data-v-${e}` : e, a = t.__uniConfig ? Pi(t, s) : s, u = i ? ki(a, n) : a, c = !!t.__uniConfig;
|
|
349
349
|
if (r.prototype.replaceSync && !c) {
|
|
350
350
|
const l = new r();
|
|
351
351
|
l.id = e, l.replaceSync(u);
|
|
@@ -359,7 +359,7 @@ function Pt(t, e, s, i = !1) {
|
|
|
359
359
|
h ? h.innerHTML = u : (h = l.createElement("style"), h.id = e, h.innerHTML = u, l.head.appendChild(h));
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function Rn(t) {
|
|
363
363
|
const e = t.adoptedStyleSheets || [];
|
|
364
364
|
let s = "";
|
|
365
365
|
if (e.forEach((i) => {
|
|
@@ -375,7 +375,7 @@ function Tn(t) {
|
|
|
375
375
|
i.textContent = s, t.head.appendChild(i);
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
async function
|
|
378
|
+
async function Ti(t, e) {
|
|
379
379
|
const s = await globalThis.fetch(e).then((i) => i.text()).catch(() => "");
|
|
380
380
|
s && Pt(globalThis, t, s);
|
|
381
381
|
}
|
|
@@ -401,13 +401,13 @@ async function gs(t, e, s = globalThis) {
|
|
|
401
401
|
}
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function Ni(t) {
|
|
405
405
|
return K(t) && Object.getOwnPropertyNames(t.prototype || {}).length === 0 || K(t?.install);
|
|
406
406
|
}
|
|
407
|
-
function
|
|
408
|
-
return
|
|
407
|
+
function Ri(t) {
|
|
408
|
+
return yi.includes(t);
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function Vi(t) {
|
|
411
411
|
return fs.includes(t);
|
|
412
412
|
}
|
|
413
413
|
function Ae(t = globalThis) {
|
|
@@ -417,18 +417,18 @@ function Ae(t = globalThis) {
|
|
|
417
417
|
if (s && globalThis)
|
|
418
418
|
return globalThis.Mock = s, s;
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function Vn(t, e, s) {
|
|
421
421
|
Object.assign(e.meta, s.meta);
|
|
422
422
|
const i = t?._container;
|
|
423
423
|
s?.type === "page" && i.classList.add("is-page"), s?.pure && i.classList.add("is-pure");
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function Oi(t) {
|
|
426
426
|
return /^\([\s\S]*\)/.test(t.trim());
|
|
427
427
|
}
|
|
428
|
-
function
|
|
428
|
+
function Fi(t) {
|
|
429
429
|
return /\w+\([\s\S]*\)$/.test(t.trim());
|
|
430
430
|
}
|
|
431
|
-
function
|
|
431
|
+
function Li(t) {
|
|
432
432
|
return t.includes("=");
|
|
433
433
|
}
|
|
434
434
|
var ut = {
|
|
@@ -437,13 +437,13 @@ var ut = {
|
|
|
437
437
|
6: "enum",
|
|
438
438
|
strict: "implements interface let package private protected public static yield",
|
|
439
439
|
strictBind: "eval arguments"
|
|
440
|
-
}, 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",
|
|
440
|
+
}, 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 = {
|
|
441
441
|
5: ct,
|
|
442
442
|
"5module": ct + " export import",
|
|
443
443
|
6: ct + " const class extends export import super"
|
|
444
|
-
},
|
|
444
|
+
}, Mi = /^in(stanceof)?$/, Tt = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", xs = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_", Di = new RegExp("[" + Tt + "]"), Bi = new RegExp("[" + Tt + xs + "]");
|
|
445
445
|
Tt = xs = null;
|
|
446
|
-
var vs = [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],
|
|
446
|
+
var vs = [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], Hi = [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];
|
|
447
447
|
function bt(t, e) {
|
|
448
448
|
for (var s = 65536, i = 0; i < e.length; i += 2) {
|
|
449
449
|
if (s += e[i], s > t)
|
|
@@ -453,10 +453,10 @@ function bt(t, e) {
|
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
455
|
function ae(t, e) {
|
|
456
|
-
return t < 65 ? t === 36 : t < 91 ? !0 : t < 97 ? t === 95 : t < 123 ? !0 : t <= 65535 ? t >= 170 &&
|
|
456
|
+
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, vs);
|
|
457
457
|
}
|
|
458
458
|
function be(t, e) {
|
|
459
|
-
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 &&
|
|
459
|
+
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, vs) || bt(t, Hi);
|
|
460
460
|
}
|
|
461
461
|
var E = function(e, s) {
|
|
462
462
|
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;
|
|
@@ -564,12 +564,12 @@ var o = {
|
|
|
564
564
|
function Ve(t, e) {
|
|
565
565
|
return t === 10 || t === 13 || !e && (t === 8232 || t === 8233);
|
|
566
566
|
}
|
|
567
|
-
var bs = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, $ = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, ys = Object.prototype,
|
|
567
|
+
var bs = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, $ = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, ys = Object.prototype, $i = ys.hasOwnProperty, Ui = ys.toString;
|
|
568
568
|
function Je(t, e) {
|
|
569
|
-
return
|
|
569
|
+
return $i.call(t, e);
|
|
570
570
|
}
|
|
571
571
|
var Xt = Array.isArray || (function(t) {
|
|
572
|
-
return
|
|
572
|
+
return Ui.call(t) === "[object Array]";
|
|
573
573
|
});
|
|
574
574
|
function le(t) {
|
|
575
575
|
return new RegExp("^(?:" + t.replace(/ /g, "|") + ")$");
|
|
@@ -677,7 +677,7 @@ var yt = {
|
|
|
677
677
|
// (non-standard) ParenthesizedExpression nodes
|
|
678
678
|
preserveParens: !1
|
|
679
679
|
};
|
|
680
|
-
function
|
|
680
|
+
function Gi(t) {
|
|
681
681
|
var e = {};
|
|
682
682
|
for (var s in yt)
|
|
683
683
|
e[s] = t && Je(t, s) ? t[s] : yt[s];
|
|
@@ -687,9 +687,9 @@ function $i(t) {
|
|
|
687
687
|
return i.push(r);
|
|
688
688
|
};
|
|
689
689
|
}
|
|
690
|
-
return Xt(e.onComment) && (e.onComment =
|
|
690
|
+
return Xt(e.onComment) && (e.onComment = qi(e, e.onComment)), e;
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function qi(t, e) {
|
|
693
693
|
return function(s, i, r, n, a, u) {
|
|
694
694
|
var c = {
|
|
695
695
|
type: s ? "Block" : "Line",
|
|
@@ -705,7 +705,7 @@ function Vt(t, e) {
|
|
|
705
705
|
return Oe | (t ? Ss : 0) | (e ? Cs : 0);
|
|
706
706
|
}
|
|
707
707
|
var Zt = 0, Ot = 1, Z = 2, As = 3, Ps = 4, Ts = 5, A = function(e, s, i) {
|
|
708
|
-
this.options = e =
|
|
708
|
+
this.options = e = Gi(e), this.sourceFile = e.sourceFile, this.keywords = le(ji[e.ecmaVersion >= 6 ? 6 : e.sourceType === "module" ? "5module" : 5]);
|
|
709
709
|
var r = "";
|
|
710
710
|
if (e.allowReserved !== !0) {
|
|
711
711
|
for (var n = e.ecmaVersion; !(r = ut[n]); n--)
|
|
@@ -759,11 +759,11 @@ A.tokenizer = function(e, s) {
|
|
|
759
759
|
return new this(s, e);
|
|
760
760
|
};
|
|
761
761
|
Object.defineProperties(A.prototype, pe);
|
|
762
|
-
var F = A.prototype,
|
|
762
|
+
var F = A.prototype, Wi = /^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;
|
|
763
763
|
F.strictDirective = function(t) {
|
|
764
764
|
for (; ; ) {
|
|
765
765
|
$.lastIndex = t, t += $.exec(this.input)[0].length;
|
|
766
|
-
var e =
|
|
766
|
+
var e = Wi.exec(this.input.slice(t));
|
|
767
767
|
if (!e)
|
|
768
768
|
return !1;
|
|
769
769
|
if ((e[1] || e[2]) === "use strict") {
|
|
@@ -844,7 +844,7 @@ y.parseTopLevel = function(t) {
|
|
|
844
844
|
}
|
|
845
845
|
return this.adaptDirectivePrologue(t.body), this.next(), t.sourceType = this.options.sourceType, this.finishNode(t, "Program");
|
|
846
846
|
};
|
|
847
|
-
var Ft = { kind: "loop" },
|
|
847
|
+
var Ft = { kind: "loop" }, Ki = { kind: "switch" };
|
|
848
848
|
y.isLet = function(t) {
|
|
849
849
|
if (this.options.ecmaVersion < 6 || !this.isContextual("let"))
|
|
850
850
|
return !1;
|
|
@@ -860,7 +860,7 @@ y.isLet = function(t) {
|
|
|
860
860
|
for (var r = s + 1; be(this.input.charCodeAt(r), !0); )
|
|
861
861
|
++r;
|
|
862
862
|
var n = this.input.slice(s, r);
|
|
863
|
-
if (!
|
|
863
|
+
if (!Mi.test(n))
|
|
864
864
|
return !0;
|
|
865
865
|
}
|
|
866
866
|
return !1;
|
|
@@ -969,7 +969,7 @@ y.parseReturnStatement = function(t) {
|
|
|
969
969
|
return !this.inFunction && !this.options.allowReturnOutsideFunction && this.raise(this.start, "'return' outside of function"), this.next(), this.eat(o.semi) || this.insertSemicolon() ? t.argument = null : (t.argument = this.parseExpression(), this.semicolon()), this.finishNode(t, "ReturnStatement");
|
|
970
970
|
};
|
|
971
971
|
y.parseSwitchStatement = function(t) {
|
|
972
|
-
this.next(), t.discriminant = this.parseParenExpression(), t.cases = [], this.expect(o.braceL), this.labels.push(
|
|
972
|
+
this.next(), t.discriminant = this.parseParenExpression(), t.cases = [], this.expect(o.braceL), this.labels.push(Ki), this.enterScope(0);
|
|
973
973
|
for (var e, s = !1; this.type !== o.braceR; )
|
|
974
974
|
if (this.type === o._case || this.type === o._default) {
|
|
975
975
|
var i = this.type === o._case;
|
|
@@ -981,7 +981,7 @@ y.parseSwitchStatement = function(t) {
|
|
|
981
981
|
y.parseThrowStatement = function(t) {
|
|
982
982
|
return this.next(), U.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), t.argument = this.parseExpression(), this.semicolon(), this.finishNode(t, "ThrowStatement");
|
|
983
983
|
};
|
|
984
|
-
var
|
|
984
|
+
var zi = [];
|
|
985
985
|
y.parseTryStatement = function(t) {
|
|
986
986
|
if (this.next(), t.block = this.parseBlock(), t.handler = null, this.type === o._catch) {
|
|
987
987
|
var e = this.startNode();
|
|
@@ -1170,7 +1170,7 @@ y.parseExportSpecifiers = function(t) {
|
|
|
1170
1170
|
return e;
|
|
1171
1171
|
};
|
|
1172
1172
|
y.parseImport = function(t) {
|
|
1173
|
-
return this.next(), this.type === o.string ? (t.specifiers =
|
|
1173
|
+
return this.next(), this.type === o.string ? (t.specifiers = zi, t.source = this.parseExprAtom()) : (t.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), t.source = this.type === o.string ? this.parseExprAtom() : this.unexpected()), this.semicolon(), this.finishNode(t, "ImportDeclaration");
|
|
1174
1174
|
};
|
|
1175
1175
|
y.parseImportSpecifiers = function() {
|
|
1176
1176
|
var t = [], e = !0;
|
|
@@ -1611,7 +1611,7 @@ _.parseParenItem = function(t) {
|
|
|
1611
1611
|
_.parseParenArrowList = function(t, e, s) {
|
|
1612
1612
|
return this.parseArrowExpression(this.startNodeAt(t, e), s);
|
|
1613
1613
|
};
|
|
1614
|
-
var
|
|
1614
|
+
var Ji = [];
|
|
1615
1615
|
_.parseNew = function() {
|
|
1616
1616
|
this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
|
|
1617
1617
|
var t = this.startNode(), e = this.parseIdent(!0);
|
|
@@ -1621,7 +1621,7 @@ _.parseNew = function() {
|
|
|
1621
1621
|
return t.property = this.parseIdent(!0), t.property.name !== "target" && this.raiseRecoverable(t.property.start, "The only valid meta property for new is 'new.target'"), s && this.raiseRecoverable(t.start, "'new.target' must not contain escaped characters"), this.inNonArrowFunction() || this.raiseRecoverable(t.start, "'new.target' can only be used in functions"), this.finishNode(t, "MetaProperty");
|
|
1622
1622
|
}
|
|
1623
1623
|
var i = this.start, r = this.startLoc, n = this.type === o._import;
|
|
1624
|
-
return t.callee = this.parseSubscripts(this.parseExprAtom(), i, r, !0), n && t.callee.type === "ImportExpression" && this.raise(i, "Cannot use new with import()"), this.eat(o.parenL) ? t.arguments = this.parseExprList(o.parenR, this.options.ecmaVersion >= 8, !1) : t.arguments =
|
|
1624
|
+
return t.callee = this.parseSubscripts(this.parseExprAtom(), i, r, !0), n && t.callee.type === "ImportExpression" && this.raise(i, "Cannot use new with import()"), this.eat(o.parenL) ? t.arguments = this.parseExprList(o.parenR, this.options.ecmaVersion >= 8, !1) : t.arguments = Ji, this.finishNode(t, "NewExpression");
|
|
1625
1625
|
};
|
|
1626
1626
|
_.parseTemplateElement = function(t) {
|
|
1627
1627
|
var e = t.isTagged, s = this.startNode();
|
|
@@ -1772,11 +1772,11 @@ Ue.curPosition = function() {
|
|
|
1772
1772
|
if (this.options.locations)
|
|
1773
1773
|
return new Te(this.curLine, this.pos - this.lineStart);
|
|
1774
1774
|
};
|
|
1775
|
-
var oe = A.prototype,
|
|
1775
|
+
var oe = A.prototype, Qi = function(e) {
|
|
1776
1776
|
this.flags = e, this.var = [], this.lexical = [], this.functions = [];
|
|
1777
1777
|
};
|
|
1778
1778
|
oe.enterScope = function(t) {
|
|
1779
|
-
this.scopeStack.push(new
|
|
1779
|
+
this.scopeStack.push(new Qi(t));
|
|
1780
1780
|
};
|
|
1781
1781
|
oe.exitScope = function() {
|
|
1782
1782
|
this.scopeStack.pop();
|
|
@@ -1917,21 +1917,21 @@ o.name.updateContext = function(t) {
|
|
|
1917
1917
|
var e = !1;
|
|
1918
1918
|
this.options.ecmaVersion >= 6 && t !== o.dot && (this.value === "of" && !this.exprAllowed || this.value === "yield" && this.inGeneratorContext()) && (e = !0), this.exprAllowed = e;
|
|
1919
1919
|
};
|
|
1920
|
-
var Vs = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS", Os = Vs + " Extended_Pictographic",
|
|
1920
|
+
var Vs = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS", Os = Vs + " Extended_Pictographic", Yi = Os, Xi = {
|
|
1921
1921
|
9: Vs,
|
|
1922
1922
|
10: Os,
|
|
1923
|
-
11:
|
|
1924
|
-
}, es = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu", Fs = "Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb", Ls = Fs + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",
|
|
1923
|
+
11: Yi
|
|
1924
|
+
}, es = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu", Fs = "Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb", Ls = Fs + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", Zi = Ls + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", er = {
|
|
1925
1925
|
9: Fs,
|
|
1926
1926
|
10: Ls,
|
|
1927
|
-
11:
|
|
1927
|
+
11: Zi
|
|
1928
1928
|
}, js = {};
|
|
1929
1929
|
function jt(t) {
|
|
1930
1930
|
var e = js[t] = {
|
|
1931
|
-
binary: le(
|
|
1931
|
+
binary: le(Xi[t] + " " + es),
|
|
1932
1932
|
nonBinary: {
|
|
1933
1933
|
General_Category: le(es),
|
|
1934
|
-
Script: le(
|
|
1934
|
+
Script: le(er[t])
|
|
1935
1935
|
}
|
|
1936
1936
|
};
|
|
1937
1937
|
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;
|
|
@@ -2229,16 +2229,16 @@ v.regexp_eatRegExpIdentifierName = function(t) {
|
|
|
2229
2229
|
};
|
|
2230
2230
|
v.regexp_eatRegExpIdentifierStart = function(t) {
|
|
2231
2231
|
var e = t.pos, s = this.options.ecmaVersion >= 11, i = t.current(s);
|
|
2232
|
-
return t.advance(s), i === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(t, s) && (i = t.lastIntValue),
|
|
2232
|
+
return t.advance(s), i === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(t, s) && (i = t.lastIntValue), tr(i) ? (t.lastIntValue = i, !0) : (t.pos = e, !1);
|
|
2233
2233
|
};
|
|
2234
|
-
function
|
|
2234
|
+
function tr(t) {
|
|
2235
2235
|
return ae(t, !0) || t === 36 || t === 95;
|
|
2236
2236
|
}
|
|
2237
2237
|
v.regexp_eatRegExpIdentifierPart = function(t) {
|
|
2238
2238
|
var e = t.pos, s = this.options.ecmaVersion >= 11, i = t.current(s);
|
|
2239
|
-
return t.advance(s), i === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(t, s) && (i = t.lastIntValue),
|
|
2239
|
+
return t.advance(s), i === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(t, s) && (i = t.lastIntValue), sr(i) ? (t.lastIntValue = i, !0) : (t.pos = e, !1);
|
|
2240
2240
|
};
|
|
2241
|
-
function
|
|
2241
|
+
function sr(t) {
|
|
2242
2242
|
return be(t, !0) || t === 36 || t === 95 || t === 8204 || t === 8205;
|
|
2243
2243
|
}
|
|
2244
2244
|
v.regexp_eatAtomEscape = function(t) {
|
|
@@ -2328,13 +2328,13 @@ v.regexp_eatRegExpUnicodeEscapeSequence = function(t, e) {
|
|
|
2328
2328
|
) && this.regexp_eatHexDigits(t) && t.eat(
|
|
2329
2329
|
125
|
|
2330
2330
|
/* } */
|
|
2331
|
-
) &&
|
|
2331
|
+
) && ir(t.lastIntValue))
|
|
2332
2332
|
return !0;
|
|
2333
2333
|
i && t.raise("Invalid unicode escape"), t.pos = s;
|
|
2334
2334
|
}
|
|
2335
2335
|
return !1;
|
|
2336
2336
|
};
|
|
2337
|
-
function
|
|
2337
|
+
function ir(t) {
|
|
2338
2338
|
return t >= 0 && t <= 1114111;
|
|
2339
2339
|
}
|
|
2340
2340
|
v.regexp_eatIdentityEscape = function(t) {
|
|
@@ -2359,7 +2359,7 @@ v.regexp_eatDecimalEscape = function(t) {
|
|
|
2359
2359
|
};
|
|
2360
2360
|
v.regexp_eatCharacterClassEscape = function(t) {
|
|
2361
2361
|
var e = t.current();
|
|
2362
|
-
if (
|
|
2362
|
+
if (rr(e))
|
|
2363
2363
|
return t.lastIntValue = -1, t.advance(), !0;
|
|
2364
2364
|
if (t.switchU && this.options.ecmaVersion >= 9 && (e === 80 || e === 112)) {
|
|
2365
2365
|
if (t.lastIntValue = -1, t.advance(), t.eat(
|
|
@@ -2374,7 +2374,7 @@ v.regexp_eatCharacterClassEscape = function(t) {
|
|
|
2374
2374
|
}
|
|
2375
2375
|
return !1;
|
|
2376
2376
|
};
|
|
2377
|
-
function
|
|
2377
|
+
function rr(t) {
|
|
2378
2378
|
return t === 100 || t === 68 || t === 115 || t === 83 || t === 119 || t === 87;
|
|
2379
2379
|
}
|
|
2380
2380
|
v.regexp_eatUnicodePropertyValueExpression = function(t) {
|
|
@@ -2412,11 +2412,11 @@ function Bs(t) {
|
|
|
2412
2412
|
}
|
|
2413
2413
|
v.regexp_eatUnicodePropertyValue = function(t) {
|
|
2414
2414
|
var e = 0;
|
|
2415
|
-
for (t.lastStringValue = "";
|
|
2415
|
+
for (t.lastStringValue = ""; nr(e = t.current()); )
|
|
2416
2416
|
t.lastStringValue += Ge(e), t.advance();
|
|
2417
2417
|
return t.lastStringValue !== "";
|
|
2418
2418
|
};
|
|
2419
|
-
function
|
|
2419
|
+
function nr(t) {
|
|
2420
2420
|
return Bs(t) || et(t);
|
|
2421
2421
|
}
|
|
2422
2422
|
v.regexp_eatLoneUnicodePropertyNameOrValue = function(t) {
|
|
@@ -2862,7 +2862,7 @@ S.readInt = function(t, e, s) {
|
|
|
2862
2862
|
}
|
|
2863
2863
|
return i && u === 95 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === n || e != null && this.pos - n !== e ? null : a;
|
|
2864
2864
|
};
|
|
2865
|
-
function
|
|
2865
|
+
function ar(t, e) {
|
|
2866
2866
|
return e ? parseInt(t, 8) : parseFloat(t.replace(/_/g, ""));
|
|
2867
2867
|
}
|
|
2868
2868
|
function Gs(t) {
|
|
@@ -2885,7 +2885,7 @@ S.readNumber = function(t) {
|
|
|
2885
2885
|
return ++this.pos, ae(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(o.num, r);
|
|
2886
2886
|
}
|
|
2887
2887
|
s && /[89]/.test(this.input.slice(e, this.pos)) && (s = !1), i === 46 && !s && (++this.pos, this.readInt(10), i = this.input.charCodeAt(this.pos)), (i === 69 || i === 101) && !s && (i = this.input.charCodeAt(++this.pos), (i === 43 || i === 45) && ++this.pos, this.readInt(10) === null && this.raise(e, "Invalid number")), ae(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
|
|
2888
|
-
var n =
|
|
2888
|
+
var n = ar(this.input.slice(e, this.pos), s);
|
|
2889
2889
|
return this.finishToken(o.num, n);
|
|
2890
2890
|
};
|
|
2891
2891
|
S.readCodePoint = function() {
|
|
@@ -3048,10 +3048,10 @@ S.readWord = function() {
|
|
|
3048
3048
|
var t = this.readWord1(), e = o.name;
|
|
3049
3049
|
return this.keywords.test(t) && (e = Nt[t]), this.finishToken(e, t);
|
|
3050
3050
|
};
|
|
3051
|
-
var
|
|
3051
|
+
var or = "7.4.1";
|
|
3052
3052
|
A.acorn = {
|
|
3053
3053
|
Parser: A,
|
|
3054
|
-
version:
|
|
3054
|
+
version: or,
|
|
3055
3055
|
defaultOptions: yt,
|
|
3056
3056
|
Position: Te,
|
|
3057
3057
|
SourceLocation: Qe,
|
|
@@ -3070,20 +3070,20 @@ A.acorn = {
|
|
|
3070
3070
|
lineBreakG: Pe,
|
|
3071
3071
|
nonASCIIwhitespace: bs
|
|
3072
3072
|
};
|
|
3073
|
-
function
|
|
3073
|
+
function ur(t, e) {
|
|
3074
3074
|
return A.parse(t, e);
|
|
3075
3075
|
}
|
|
3076
|
-
class
|
|
3076
|
+
class cr extends Error {
|
|
3077
3077
|
}
|
|
3078
|
-
class
|
|
3078
|
+
class lr extends SyntaxError {
|
|
3079
3079
|
}
|
|
3080
3080
|
class St extends ReferenceError {
|
|
3081
3081
|
}
|
|
3082
|
-
class
|
|
3082
|
+
class hr extends TypeError {
|
|
3083
3083
|
}
|
|
3084
|
-
class Ws extends
|
|
3084
|
+
class Ws extends cr {
|
|
3085
3085
|
}
|
|
3086
|
-
class
|
|
3086
|
+
class pr extends lr {
|
|
3087
3087
|
}
|
|
3088
3088
|
class W extends St {
|
|
3089
3089
|
}
|
|
@@ -3113,8 +3113,8 @@ const V = {
|
|
|
3113
3113
|
AssignmentTypeSyntaxError: [1010, "Unknown assignment type: %0", W],
|
|
3114
3114
|
FunctionUndefinedReferenceError: [2001, "%0 is not a function", St],
|
|
3115
3115
|
VariableUndefinedReferenceError: [2002, "%0 is not defined", St],
|
|
3116
|
-
IsNotConstructor: [2003, "%0 is not a constructor",
|
|
3117
|
-
},
|
|
3116
|
+
IsNotConstructor: [2003, "%0 is not a constructor", hr]
|
|
3117
|
+
}, fr = "1.4.8";
|
|
3118
3118
|
function ts(t, e) {
|
|
3119
3119
|
Object.defineProperty(t, "name", {
|
|
3120
3120
|
value: e,
|
|
@@ -3123,7 +3123,7 @@ function ts(t, e) {
|
|
|
3123
3123
|
configurable: !0
|
|
3124
3124
|
});
|
|
3125
3125
|
}
|
|
3126
|
-
const
|
|
3126
|
+
const dr = Object.prototype.hasOwnProperty, de = Symbol("Break"), me = Symbol("Continue"), ss = Symbol("DefaultCase"), R = Symbol("EmptyStatementReturn"), is = Symbol("WithScopeName"), rs = Symbol("SuperScopeName"), ns = Symbol("RootScopeName"), as = Symbol("GlobalScopeName");
|
|
3127
3127
|
function lt(t) {
|
|
3128
3128
|
return typeof t == "function";
|
|
3129
3129
|
}
|
|
@@ -3210,10 +3210,10 @@ class ge {
|
|
|
3210
3210
|
}
|
|
3211
3211
|
function De() {
|
|
3212
3212
|
}
|
|
3213
|
-
function
|
|
3213
|
+
function mr(t = null, e) {
|
|
3214
3214
|
return new ge(/* @__PURE__ */ Object.create(null), t, e);
|
|
3215
3215
|
}
|
|
3216
|
-
function
|
|
3216
|
+
function gr(t) {
|
|
3217
3217
|
return Object.create(t);
|
|
3218
3218
|
}
|
|
3219
3219
|
const Y = {
|
|
@@ -3274,7 +3274,7 @@ class j {
|
|
|
3274
3274
|
else {
|
|
3275
3275
|
let r = null;
|
|
3276
3276
|
const n = this.createSuperScope(e);
|
|
3277
|
-
this.options.rootContext && (r = new ge(
|
|
3277
|
+
this.options.rootContext && (r = new ge(gr(this.options.rootContext), n, ns)), s = new ge(e, r || n, as);
|
|
3278
3278
|
}
|
|
3279
3279
|
this.globalScope = s, this.currentScope = this.globalScope, this.globalContext = s.data, this.currentContext = s.data, this.collectDeclVars = /* @__PURE__ */ Object.create(null), this.collectDeclFuncs = /* @__PURE__ */ Object.create(null), this.execStartTime = Date.now(), this.execEndTime = this.execStartTime;
|
|
3280
3280
|
const i = this.options._initEnv;
|
|
@@ -3302,7 +3302,7 @@ class j {
|
|
|
3302
3302
|
return this.currentContext;
|
|
3303
3303
|
}
|
|
3304
3304
|
isInterruptThrow(e) {
|
|
3305
|
-
return e instanceof Ws || e instanceof W || e instanceof
|
|
3305
|
+
return e instanceof Ws || e instanceof W || e instanceof pr;
|
|
3306
3306
|
}
|
|
3307
3307
|
createSuperScope(e) {
|
|
3308
3308
|
let s = Object.assign({}, Y);
|
|
@@ -3319,7 +3319,7 @@ class j {
|
|
|
3319
3319
|
evaluate(e = "") {
|
|
3320
3320
|
let s;
|
|
3321
3321
|
if (e)
|
|
3322
|
-
return s =
|
|
3322
|
+
return s = ur(e, {
|
|
3323
3323
|
ranges: !0,
|
|
3324
3324
|
locations: !0,
|
|
3325
3325
|
ecmaVersion: this.options.ecmaVersion || j.ecmaVersion
|
|
@@ -3715,7 +3715,7 @@ class j {
|
|
|
3715
3715
|
return this.collectDeclVars = r, this.collectDeclFuncs = n, () => {
|
|
3716
3716
|
const d = s.getCurrentScope(), f = function(...m) {
|
|
3717
3717
|
s.callStack.push(`${a}`);
|
|
3718
|
-
const g = s.getCurrentScope(), x =
|
|
3718
|
+
const g = s.getCurrentScope(), x = mr(d, `FunctionScope(${a})`);
|
|
3719
3719
|
s.setCurrentScope(x), s.addDeclarationsToScope(h, p, x), a && (x.data[a] = f), x.data.arguments = arguments, c.forEach((N, w) => {
|
|
3720
3720
|
x.data[N()] = m[w];
|
|
3721
3721
|
});
|
|
@@ -4039,7 +4039,7 @@ class j {
|
|
|
4039
4039
|
const s = this.createParamNameGetter(e.param), i = this.createClosure(e.body);
|
|
4040
4040
|
return (r) => {
|
|
4041
4041
|
let n;
|
|
4042
|
-
const u = this.getCurrentScope().data, c = s(), l =
|
|
4042
|
+
const u = this.getCurrentScope().data, c = s(), l = dr.call(u, c), h = u[c];
|
|
4043
4043
|
return u[c] = r, n = i(), l ? u[c] = h : delete u[c], n;
|
|
4044
4044
|
};
|
|
4045
4045
|
}
|
|
@@ -4173,13 +4173,13 @@ class j {
|
|
|
4173
4173
|
return this.value;
|
|
4174
4174
|
}
|
|
4175
4175
|
}
|
|
4176
|
-
j.version =
|
|
4176
|
+
j.version = fr;
|
|
4177
4177
|
j.eval = Bt;
|
|
4178
4178
|
j.Function = Ht;
|
|
4179
4179
|
j.ecmaVersion = 5;
|
|
4180
4180
|
j.globalContextInFunction = void 0;
|
|
4181
4181
|
j.global = /* @__PURE__ */ Object.create(null);
|
|
4182
|
-
const
|
|
4182
|
+
const xr = (() => {
|
|
4183
4183
|
try {
|
|
4184
4184
|
return new Function("return 1")(), !0;
|
|
4185
4185
|
} catch {
|
|
@@ -4196,7 +4196,7 @@ function qe(t) {
|
|
|
4196
4196
|
} catch {
|
|
4197
4197
|
}
|
|
4198
4198
|
}
|
|
4199
|
-
function
|
|
4199
|
+
function vr(t, e) {
|
|
4200
4200
|
return new j(e, {
|
|
4201
4201
|
rootContext: e,
|
|
4202
4202
|
globalContextInFunction: e
|
|
@@ -4212,7 +4212,7 @@ function Re(t, e, s = !1, i = !1, r = !1) {
|
|
|
4212
4212
|
const u = r ? `
|
|
4213
4213
|
${a}
|
|
4214
4214
|
` : `with(${s ? "{}" : "$scope || {}"}) { ${a} }`;
|
|
4215
|
-
return
|
|
4215
|
+
return xr ? new Function("$scope", u)(e) : vr(u, e);
|
|
4216
4216
|
} catch (n) {
|
|
4217
4217
|
if (xe.error("parseExpression.error", n, t, e?.__self ?? e), n && (n.info = t.value), qe(n), i)
|
|
4218
4218
|
throw n;
|
|
@@ -4235,13 +4235,13 @@ function T(t) {
|
|
|
4235
4235
|
function O(t) {
|
|
4236
4236
|
return typeof t == "object" && t && t.type === "JSFunction";
|
|
4237
4237
|
}
|
|
4238
|
-
function
|
|
4238
|
+
function br(t) {
|
|
4239
4239
|
return T(t) || O(t);
|
|
4240
4240
|
}
|
|
4241
|
-
function
|
|
4242
|
-
return
|
|
4241
|
+
function On(t) {
|
|
4242
|
+
return br(t) ? t.value.startsWith("{") ? `(${t.value})` : t.value : JSON.stringify(t);
|
|
4243
4243
|
}
|
|
4244
|
-
const
|
|
4244
|
+
const yr = {
|
|
4245
4245
|
session: !1,
|
|
4246
4246
|
authKey: "Authorization",
|
|
4247
4247
|
storageKey: "ACCESS_STORAGE",
|
|
@@ -4262,7 +4262,7 @@ class $t {
|
|
|
4262
4262
|
interceptResponse = !0;
|
|
4263
4263
|
isTipShowing = !1;
|
|
4264
4264
|
constructor(e) {
|
|
4265
|
-
this.options = Object.assign({},
|
|
4265
|
+
this.options = Object.assign({}, yr, e), this.loadData();
|
|
4266
4266
|
}
|
|
4267
4267
|
enableIntercept() {
|
|
4268
4268
|
this.interceptResponse = !0;
|
|
@@ -4418,10 +4418,10 @@ class $t {
|
|
|
4418
4418
|
);
|
|
4419
4419
|
}
|
|
4420
4420
|
}
|
|
4421
|
-
function
|
|
4421
|
+
function _r() {
|
|
4422
4422
|
return At(Ks, null);
|
|
4423
4423
|
}
|
|
4424
|
-
function
|
|
4424
|
+
function Fn(t = {}) {
|
|
4425
4425
|
const {
|
|
4426
4426
|
notify: e,
|
|
4427
4427
|
loading: s,
|
|
@@ -4463,10 +4463,10 @@ function Vn(t = {}) {
|
|
|
4463
4463
|
access: n ? new $t({ alert: u, ...n }) : void 0
|
|
4464
4464
|
};
|
|
4465
4465
|
}
|
|
4466
|
-
function
|
|
4466
|
+
function Ln(t = {}) {
|
|
4467
4467
|
return new $t(t);
|
|
4468
4468
|
}
|
|
4469
|
-
function
|
|
4469
|
+
function Sr(t, e) {
|
|
4470
4470
|
const { jsonp: s, request: i } = e;
|
|
4471
4471
|
if (t.method === "jsonp")
|
|
4472
4472
|
return (r = {}) => s(t.url, {
|
|
@@ -4482,10 +4482,10 @@ function yr(t, e) {
|
|
|
4482
4482
|
headers: r
|
|
4483
4483
|
}
|
|
4484
4484
|
};
|
|
4485
|
-
return (a, u) => (delete n.data, i.send(
|
|
4485
|
+
return (a, u) => (delete n.data, i.send(ui(n, u || {}, { data: a })));
|
|
4486
4486
|
}
|
|
4487
4487
|
}
|
|
4488
|
-
function
|
|
4488
|
+
function Cr(t, e) {
|
|
4489
4489
|
const { metaQuery: s } = e;
|
|
4490
4490
|
if (!s) return;
|
|
4491
4491
|
const { code: i, queryCode: r } = t;
|
|
@@ -4497,21 +4497,21 @@ function _r(t, e) {
|
|
|
4497
4497
|
return s(i, r, n, a);
|
|
4498
4498
|
};
|
|
4499
4499
|
}
|
|
4500
|
-
function
|
|
4500
|
+
function wr(t = [], e = [], s) {
|
|
4501
4501
|
const i = {};
|
|
4502
4502
|
for (const r of t) {
|
|
4503
|
-
const n =
|
|
4503
|
+
const n = Sr(r, s);
|
|
4504
4504
|
i[r.id] = n, i[r.name] = n;
|
|
4505
4505
|
}
|
|
4506
4506
|
for (const r of e)
|
|
4507
|
-
i[r.id] =
|
|
4507
|
+
i[r.id] = Cr(r, s);
|
|
4508
4508
|
return i;
|
|
4509
4509
|
}
|
|
4510
|
-
async function
|
|
4510
|
+
async function Er(t = [], e = globalThis) {
|
|
4511
4511
|
const s = Ae(e);
|
|
4512
|
-
s && (zs(e), t.forEach((i) =>
|
|
4512
|
+
s && (zs(e), t.forEach((i) => Ir(s, i)));
|
|
4513
4513
|
}
|
|
4514
|
-
function
|
|
4514
|
+
function kr(t, e = globalThis) {
|
|
4515
4515
|
const s = O(t.mockTemplate) && t.mockTemplate.value ? z(t.mockTemplate, {}, !0) : void 0, i = Ae(e);
|
|
4516
4516
|
return async (...r) => {
|
|
4517
4517
|
let n = {};
|
|
@@ -4524,21 +4524,21 @@ function wr(t, e = globalThis) {
|
|
|
4524
4524
|
return i?.mock(n);
|
|
4525
4525
|
};
|
|
4526
4526
|
}
|
|
4527
|
-
function
|
|
4527
|
+
function Ir(t, e) {
|
|
4528
4528
|
if (!e.mock) return;
|
|
4529
4529
|
const { url: s, mockTemplate: i, method: r = "get", settings: n = {} } = e;
|
|
4530
4530
|
if (s && i)
|
|
4531
4531
|
try {
|
|
4532
|
-
const a = mt(s) ? new URL(s).pathname : s, u =
|
|
4532
|
+
const a = mt(s) ? new URL(s).pathname : s, u = ci(`(.*)${a}`, [], { end: !1 }), c = new RegExp(
|
|
4533
4533
|
u.source + "([?#].*)?$",
|
|
4534
4534
|
u.flags
|
|
4535
|
-
), l =
|
|
4535
|
+
), l = li(a, { decode: decodeURIComponent }), h = Re(i, {}, !0);
|
|
4536
4536
|
t.mock(
|
|
4537
4537
|
c,
|
|
4538
4538
|
r.toLowerCase(),
|
|
4539
4539
|
(p) => {
|
|
4540
4540
|
const d = he.parse(p.url) || {}, f = n.type || "form";
|
|
4541
|
-
let m = p.body instanceof FormData ?
|
|
4541
|
+
let m = p.body instanceof FormData ? hi(p.body) : p.body;
|
|
4542
4542
|
if (typeof m == "string")
|
|
4543
4543
|
if (f === "json")
|
|
4544
4544
|
try {
|
|
@@ -4572,6 +4572,11 @@ class os {
|
|
|
4572
4572
|
__contextRefs = {};
|
|
4573
4573
|
__refs = {};
|
|
4574
4574
|
__refCaches = {};
|
|
4575
|
+
/**
|
|
4576
|
+
* 记录每个节点 id 当前注册的 ref 回调代次,
|
|
4577
|
+
* 用于防止旧 ref 卸载回调(await delay 后执行)误删新 ref 已设置的 $refs 条目。
|
|
4578
|
+
*/
|
|
4579
|
+
__refGenerations = {};
|
|
4575
4580
|
context = {};
|
|
4576
4581
|
/**
|
|
4577
4582
|
* @deprecated
|
|
@@ -4631,7 +4636,7 @@ class os {
|
|
|
4631
4636
|
__cleanup() {
|
|
4632
4637
|
Yt.forEach((e) => {
|
|
4633
4638
|
this[e] = null;
|
|
4634
|
-
}), this.__reset();
|
|
4639
|
+
}), this.__reset(), this.__refGenerations = {};
|
|
4635
4640
|
}
|
|
4636
4641
|
__reset() {
|
|
4637
4642
|
this.__refs = {}, this.__refCaches = {}, this.$refs = {}, this.__contextRefs = {}, this.context = {};
|
|
@@ -4657,15 +4662,19 @@ class os {
|
|
|
4657
4662
|
return;
|
|
4658
4663
|
e && e !== this.__id && (this.__contextRefs[e] = this);
|
|
4659
4664
|
let i = e ? this.__refCaches[e] : null;
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4665
|
+
if (i)
|
|
4666
|
+
return i;
|
|
4667
|
+
const r = e ? (this.__refGenerations[e] || 0) + 1 : 0;
|
|
4668
|
+
return e && (this.__refGenerations[e] = r), i = async (n) => {
|
|
4669
|
+
if (await Ie(0), e && this.__refGenerations[e] !== r)
|
|
4670
|
+
return;
|
|
4671
|
+
let a = n?.$vtjEl || n?.$el || n?._?.vnode?.el || n;
|
|
4672
|
+
if (!a) {
|
|
4664
4673
|
typeof s == "string" && (delete this.$refs[s], this[s] && ve.isRef(this[s]) && (this[s].value = null), e && delete this.__refs[e]);
|
|
4665
4674
|
return;
|
|
4666
4675
|
}
|
|
4667
|
-
return
|
|
4668
|
-
}, e && (this.__refCaches[e] = i), i
|
|
4676
|
+
return a.nodeType === 3 && a.nextSibling && (a = a.nextSibling), a.__vtj__ = e, P.Design === this.__mode && (a.__context__ = this, a.draggable = !0), e && (this.__refs[e] = this.__getRefEl(this.__refs, e, n)), typeof s == "function" ? s(n) : s && (this.$refs[s] = this.__getRefEl(this.$refs, s, n), this[s] && ve.isRef(this[s]) && (this[s].value = this.$refs[s])), n;
|
|
4677
|
+
}, e && (this.__refCaches[e] = i), i;
|
|
4669
4678
|
}
|
|
4670
4679
|
__getRefEl(e, s, i) {
|
|
4671
4680
|
const r = e[s];
|
|
@@ -4705,7 +4714,7 @@ function Ct(t) {
|
|
|
4705
4714
|
name: c.value.name,
|
|
4706
4715
|
__scopeId: c.value.id ? `data-v-${c.value.id}` : void 0,
|
|
4707
4716
|
props: {
|
|
4708
|
-
...
|
|
4717
|
+
...Pr(c.value.props ?? [], h)
|
|
4709
4718
|
},
|
|
4710
4719
|
async setup(d = {}) {
|
|
4711
4720
|
const f = c.value.id, m = c.value.name, g = e.inject(
|
|
@@ -4730,17 +4739,17 @@ function Ct(t) {
|
|
|
4730
4739
|
!0
|
|
4731
4740
|
);
|
|
4732
4741
|
const k = c.value.apiMode === "composition";
|
|
4733
|
-
b.$state = b.state =
|
|
4742
|
+
b.$state = b.state = Tr(
|
|
4734
4743
|
e,
|
|
4735
4744
|
c.value.state ?? {},
|
|
4736
4745
|
b
|
|
4737
4746
|
);
|
|
4738
|
-
const N = k ?
|
|
4747
|
+
const N = k ? Lr(e, c.value.refs ?? {}, b) : {}, w = k ? jr(e, c.value.reactives ?? {}, b) : {}, D = Nr(e, c.value.computed ?? {}, b), fe = Rr(c.value.methods ?? {}, b), _e = Vr(e, c.value.inject, b), J = Or(
|
|
4739
4748
|
c.value.dataSources || {},
|
|
4740
4749
|
b
|
|
4741
4750
|
);
|
|
4742
4751
|
let Le = {};
|
|
4743
|
-
k && (Le =
|
|
4752
|
+
k && (Le = Mr(
|
|
4744
4753
|
c.value.composables ?? [],
|
|
4745
4754
|
b
|
|
4746
4755
|
));
|
|
@@ -4754,8 +4763,8 @@ function Ct(t) {
|
|
|
4754
4763
|
...J,
|
|
4755
4764
|
...Le
|
|
4756
4765
|
};
|
|
4757
|
-
if (b.setup(tt, e),
|
|
4758
|
-
if (await
|
|
4766
|
+
if (b.setup(tt, e), Fr(e, c.value.watch ?? [], b), k) {
|
|
4767
|
+
if (await Br(
|
|
4759
4768
|
e,
|
|
4760
4769
|
c.value.lifeCycles ?? {},
|
|
4761
4770
|
b,
|
|
@@ -4769,7 +4778,7 @@ function Ct(t) {
|
|
|
4769
4778
|
console.warn("[VTJ] Composition setup 执行失败", st);
|
|
4770
4779
|
}
|
|
4771
4780
|
}
|
|
4772
|
-
|
|
4781
|
+
Dr(e, c.value.provide ?? {}, b);
|
|
4773
4782
|
}
|
|
4774
4783
|
return {
|
|
4775
4784
|
vtj: b,
|
|
@@ -4781,7 +4790,7 @@ function Ct(t) {
|
|
|
4781
4790
|
...fe
|
|
4782
4791
|
};
|
|
4783
4792
|
},
|
|
4784
|
-
emits:
|
|
4793
|
+
emits: Ar(c.value.emits),
|
|
4785
4794
|
expose: ["vtj", ...c.value.expose || []],
|
|
4786
4795
|
render() {
|
|
4787
4796
|
if (this.__vtjCircular)
|
|
@@ -4813,18 +4822,18 @@ function Ct(t) {
|
|
|
4813
4822
|
}
|
|
4814
4823
|
},
|
|
4815
4824
|
// Options 模式下生命周期以 Options 风格注册
|
|
4816
|
-
...c.value.apiMode !== "composition" ?
|
|
4825
|
+
...c.value.apiMode !== "composition" ? Hr(c.value.lifeCycles ?? {}, h) : {}
|
|
4817
4826
|
});
|
|
4818
4827
|
return {
|
|
4819
4828
|
renderer: e.markRaw(p),
|
|
4820
4829
|
context: h
|
|
4821
4830
|
};
|
|
4822
4831
|
}
|
|
4823
|
-
function
|
|
4832
|
+
function Ar(t = []) {
|
|
4824
4833
|
return t.map((e) => ee(e) ? e : e.name);
|
|
4825
4834
|
}
|
|
4826
|
-
function
|
|
4827
|
-
const s = (i) => i ? (Array.isArray(i) ? i : [i]).map((n) =>
|
|
4835
|
+
function Pr(t = [], e) {
|
|
4836
|
+
const s = (i) => i ? (Array.isArray(i) ? i : [i]).map((n) => bi[n]) : void 0;
|
|
4828
4837
|
return t.map((i) => ee(i) ? {
|
|
4829
4838
|
name: i
|
|
4830
4839
|
} : {
|
|
@@ -4841,7 +4850,7 @@ function Ir(t = [], e) {
|
|
|
4841
4850
|
{}
|
|
4842
4851
|
);
|
|
4843
4852
|
}
|
|
4844
|
-
function
|
|
4853
|
+
function Tr(t, e, s) {
|
|
4845
4854
|
return t.reactive(
|
|
4846
4855
|
Object.keys(e || {}).reduce(
|
|
4847
4856
|
(i, r) => {
|
|
@@ -4852,19 +4861,19 @@ function Ar(t, e, s) {
|
|
|
4852
4861
|
)
|
|
4853
4862
|
);
|
|
4854
4863
|
}
|
|
4855
|
-
function
|
|
4864
|
+
function Nr(t, e, s) {
|
|
4856
4865
|
return Object.entries(e ?? {}).reduce(
|
|
4857
4866
|
(i, [r, n]) => (O(n) ? i[r] = t.computed(s.__parseFunction(n)) : i[r] = t.computed(s.__parseExpression(n)), i),
|
|
4858
4867
|
{}
|
|
4859
4868
|
);
|
|
4860
4869
|
}
|
|
4861
|
-
function
|
|
4870
|
+
function Rr(t, e) {
|
|
4862
4871
|
return Object.entries(t ?? {}).reduce(
|
|
4863
4872
|
(s, [i, r]) => (s[i] = e.__parseFunction(r), s),
|
|
4864
4873
|
{}
|
|
4865
4874
|
);
|
|
4866
4875
|
}
|
|
4867
|
-
function
|
|
4876
|
+
function Vr(t, e = [], s) {
|
|
4868
4877
|
return e.reduce(
|
|
4869
4878
|
(i, r) => {
|
|
4870
4879
|
const { name: n, from: a } = r || {}, u = T(a) ? s.__parseExpression(a) || n : a ?? n, c = T(r.default) ? s.__parseExpression(r.default) : r.default ?? null;
|
|
@@ -4873,12 +4882,12 @@ function Nr(t, e = [], s) {
|
|
|
4873
4882
|
{}
|
|
4874
4883
|
);
|
|
4875
4884
|
}
|
|
4876
|
-
function
|
|
4885
|
+
function Or(t, e) {
|
|
4877
4886
|
return Object.keys(t).reduce(
|
|
4878
4887
|
(s, i) => {
|
|
4879
4888
|
const r = t[i];
|
|
4880
4889
|
if (r.type === "mock")
|
|
4881
|
-
s[i] =
|
|
4890
|
+
s[i] = kr(r);
|
|
4882
4891
|
else if (r.ref) {
|
|
4883
4892
|
const n = e.$apis[r.ref], a = O(r.transform) ? r.transform.value ? e.__parseFunction(r.transform) : void 0 : r.transform;
|
|
4884
4893
|
s[i] = async (...u) => {
|
|
@@ -4891,7 +4900,7 @@ function Rr(t, e) {
|
|
|
4891
4900
|
{}
|
|
4892
4901
|
);
|
|
4893
4902
|
}
|
|
4894
|
-
function
|
|
4903
|
+
function Fr(t, e = [], s) {
|
|
4895
4904
|
e.forEach((i) => {
|
|
4896
4905
|
t.watch(
|
|
4897
4906
|
s.__parseExpression(i.source),
|
|
@@ -4904,7 +4913,7 @@ function Vr(t, e = [], s) {
|
|
|
4904
4913
|
);
|
|
4905
4914
|
});
|
|
4906
4915
|
}
|
|
4907
|
-
function
|
|
4916
|
+
function Lr(t, e, s) {
|
|
4908
4917
|
return Object.entries(e).reduce(
|
|
4909
4918
|
(i, [r, n]) => {
|
|
4910
4919
|
const a = T(n) ? s.__parseExpression(n) : n;
|
|
@@ -4913,7 +4922,7 @@ function Or(t, e, s) {
|
|
|
4913
4922
|
{}
|
|
4914
4923
|
);
|
|
4915
4924
|
}
|
|
4916
|
-
function
|
|
4925
|
+
function jr(t, e, s) {
|
|
4917
4926
|
return Object.entries(e).reduce(
|
|
4918
4927
|
(i, [r, n]) => {
|
|
4919
4928
|
const a = T(n) ? s.__parseExpression(n) : n;
|
|
@@ -4922,7 +4931,7 @@ function Fr(t, e, s) {
|
|
|
4922
4931
|
{}
|
|
4923
4932
|
);
|
|
4924
4933
|
}
|
|
4925
|
-
function
|
|
4934
|
+
function Mr(t, e) {
|
|
4926
4935
|
return t.reduce(
|
|
4927
4936
|
(s, i) => {
|
|
4928
4937
|
try {
|
|
@@ -4945,13 +4954,13 @@ function Lr(t, e) {
|
|
|
4945
4954
|
{}
|
|
4946
4955
|
);
|
|
4947
4956
|
}
|
|
4948
|
-
function
|
|
4957
|
+
function Dr(t, e, s) {
|
|
4949
4958
|
Object.entries(e).forEach(([i, r]) => {
|
|
4950
4959
|
let n = r;
|
|
4951
4960
|
T(r) ? n = s.__parseExpression(r) : O(r) && (n = s.__parseFunction(r)), t.provide(i, n);
|
|
4952
4961
|
});
|
|
4953
4962
|
}
|
|
4954
|
-
async function
|
|
4963
|
+
async function Br(t, e, s, i = {}) {
|
|
4955
4964
|
const r = {
|
|
4956
4965
|
beforeMount: "onBeforeMount",
|
|
4957
4966
|
mounted: "onMounted",
|
|
@@ -4990,7 +4999,7 @@ async function Mr(t, e, s, i = {}) {
|
|
|
4990
4999
|
console.warn(`[VTJ] 无效的 Composition 生命周期钩子 "${n}"`);
|
|
4991
5000
|
}
|
|
4992
5001
|
}
|
|
4993
|
-
function
|
|
5002
|
+
function Hr(t, e) {
|
|
4994
5003
|
return Object.entries(t ?? {}).reduce(
|
|
4995
5004
|
(s, [i, r]) => (s[i] = async function() {
|
|
4996
5005
|
const a = (this?.vtj || e).__parseFunction(r);
|
|
@@ -4999,7 +5008,7 @@ function Dr(t, e) {
|
|
|
4999
5008
|
{}
|
|
5000
5009
|
);
|
|
5001
5010
|
}
|
|
5002
|
-
class
|
|
5011
|
+
class $r {
|
|
5003
5012
|
__props = {};
|
|
5004
5013
|
__events = {};
|
|
5005
5014
|
__nodes = {};
|
|
@@ -5061,9 +5070,9 @@ class Br {
|
|
|
5061
5070
|
this.__props = {}, this.__events = {}, this.__nodes = {};
|
|
5062
5071
|
}
|
|
5063
5072
|
}
|
|
5064
|
-
const Se = new
|
|
5073
|
+
const Se = new $r(), Js = new pi();
|
|
5065
5074
|
let pt = [], ce = {}, Ce = {};
|
|
5066
|
-
const
|
|
5075
|
+
const Ur = (t, e) => e;
|
|
5067
5076
|
async function Qs(t, e = globalThis) {
|
|
5068
5077
|
const { urls: s = [], library: i } = t, r = s.filter((u) => ze(u));
|
|
5069
5078
|
if (r.length === 0 || !i) return null;
|
|
@@ -5116,61 +5125,61 @@ function wt(t) {
|
|
|
5116
5125
|
return n;
|
|
5117
5126
|
};
|
|
5118
5127
|
}
|
|
5119
|
-
function
|
|
5128
|
+
function jn() {
|
|
5120
5129
|
ce = {}, Ce = {}, Js.clearAllCache(), Se.clear();
|
|
5121
5130
|
}
|
|
5122
|
-
function ye(t, e, s = ve, i =
|
|
5131
|
+
function ye(t, e, s = ve, i = Ur, r = [], n = !1, a = 0) {
|
|
5123
5132
|
if (!t || !t.name || t.invisible) return null;
|
|
5124
5133
|
const u = s.getCurrentInstance()?.appContext, { id: c = null, directives: l = [] } = t, { vIf: h, vElseIf: p, vElse: d, vFor: f, vShow: m, vModels: g, vBind: x, vHtml: b, others: k } = Ys(l);
|
|
5125
5134
|
if (!n && (p || d))
|
|
5126
5135
|
return null;
|
|
5127
|
-
if (h && !
|
|
5128
|
-
return
|
|
5136
|
+
if (h && !qr(h, e))
|
|
5137
|
+
return Yr(t, e, s, i, r);
|
|
5129
5138
|
const N = (w, D = 0) => {
|
|
5130
5139
|
const fe = w.$components, _e = (() => {
|
|
5131
5140
|
if (t.name === "component")
|
|
5132
|
-
return
|
|
5141
|
+
return Wr(w, t.props?.is);
|
|
5133
5142
|
if (t.name === "slot") return t.name;
|
|
5134
5143
|
const G = i(`${t.id}_${D}`, t.name, t.from, s);
|
|
5135
|
-
return ee(G) ?
|
|
5136
|
-
})(), J =
|
|
5144
|
+
return ee(G) ? Ri(G) || Vi(G) ? G : fe[G] ?? u?.app?.component(G) ?? G : G;
|
|
5145
|
+
})(), J = Kr(c, t.props ?? {}, w), Le = Qr(
|
|
5137
5146
|
s,
|
|
5138
5147
|
t.id,
|
|
5139
5148
|
t.events ?? {},
|
|
5140
5149
|
w
|
|
5141
5150
|
);
|
|
5142
5151
|
if (t.name === "slot")
|
|
5143
|
-
return
|
|
5152
|
+
return Xr(s, t, J, w, i);
|
|
5144
5153
|
x && Object.assign(J, w.__parseExpression(x.value)), m && (J.style = Object.assign(
|
|
5145
5154
|
J.style ?? {},
|
|
5146
|
-
|
|
5147
|
-
)), b && Object.assign(J,
|
|
5148
|
-
fs.includes(t.name) ? Object.assign(J,
|
|
5155
|
+
en(m, w)
|
|
5156
|
+
)), b && Object.assign(J, tn(b, w)), g.forEach((G) => {
|
|
5157
|
+
fs.includes(t.name) ? Object.assign(J, sn(G, w)) : Object.assign(J, rn(s, G, w));
|
|
5149
5158
|
});
|
|
5150
|
-
const tt =
|
|
5159
|
+
const tt = nn(
|
|
5151
5160
|
s,
|
|
5152
5161
|
t.children ?? [],
|
|
5153
5162
|
w,
|
|
5154
5163
|
i,
|
|
5155
5164
|
t
|
|
5156
|
-
), ie = w?.__id ? `data-v-${w.__id}` : void 0, st = ie ? { [ie]: "" } : {}, si = w.__mode === P.Design ? { "data-vtj": c } : {}, je = `${c}_${D}`, it = {
|
|
5165
|
+
), ie = w?.__id ? `data-v-${w.__id}` : void 0, st = ie ? { [ie]: "" } : {}, si = w.__mode === P.Design ? { "data-vtj": c } : {}, { ref: ii, ...ri } = J, je = `${c}_${D}`, it = {
|
|
5157
5166
|
key: je,
|
|
5158
5167
|
...st,
|
|
5159
5168
|
...si,
|
|
5160
|
-
...
|
|
5169
|
+
...ri
|
|
5161
5170
|
};
|
|
5162
5171
|
Se.isNodeEqual(it, Se.getNode(je)) || Se.setNode(je, it);
|
|
5163
5172
|
let rt = s.createVNode(
|
|
5164
5173
|
_e,
|
|
5165
|
-
{ ...Se.getNode(je) || it, ...Le },
|
|
5174
|
+
{ ...Se.getNode(je) || it, ref: ii, ...Le },
|
|
5166
5175
|
tt
|
|
5167
5176
|
);
|
|
5168
|
-
const qt = u ?
|
|
5177
|
+
const qt = u ? Gr(u, k, w) : [];
|
|
5169
5178
|
return qt.length && (rt = s.withDirectives(rt, qt)), rt;
|
|
5170
5179
|
};
|
|
5171
|
-
return f ?
|
|
5180
|
+
return f ? un(f, N, e) : N(e, a);
|
|
5172
5181
|
}
|
|
5173
|
-
function
|
|
5182
|
+
function Gr(t, e, s) {
|
|
5174
5183
|
const i = t.app;
|
|
5175
5184
|
return e.map((r) => {
|
|
5176
5185
|
const n = typeof r.name == "string" ? i.directive(r.name) : s.__parseExpression(r.name);
|
|
@@ -5185,7 +5194,7 @@ function Ys(t = []) {
|
|
|
5185
5194
|
), i = t.find((h) => X(h.name) === "vElse"), r = t.find((h) => X(h.name) === "vFor"), n = t.find((h) => X(h.name) === "vShow"), a = t.find((h) => X(h.name) === "vBind"), u = t.find((h) => X(h.name) === "vHtml"), c = t.filter(
|
|
5186
5195
|
(h) => X(h.name) === "vModel"
|
|
5187
5196
|
), l = t.filter(
|
|
5188
|
-
(h) => !
|
|
5197
|
+
(h) => !vi.includes(X(h.name))
|
|
5189
5198
|
);
|
|
5190
5199
|
return {
|
|
5191
5200
|
vIf: e,
|
|
@@ -5199,13 +5208,13 @@ function Ys(t = []) {
|
|
|
5199
5208
|
vHtml: u
|
|
5200
5209
|
};
|
|
5201
5210
|
}
|
|
5202
|
-
function
|
|
5211
|
+
function qr(t, e) {
|
|
5203
5212
|
return !!e.__parseExpression(t.value);
|
|
5204
5213
|
}
|
|
5205
|
-
function
|
|
5214
|
+
function Wr(t, e) {
|
|
5206
5215
|
return e ? T(e) ? t.__parseExpression(e) : e : "div";
|
|
5207
5216
|
}
|
|
5208
|
-
function
|
|
5217
|
+
function Kr(t, e, s) {
|
|
5209
5218
|
const i = Et(e, s);
|
|
5210
5219
|
return i.ref = s.__ref(t, i.ref), i;
|
|
5211
5220
|
}
|
|
@@ -5218,25 +5227,25 @@ function Et(t, e) {
|
|
|
5218
5227
|
{}
|
|
5219
5228
|
) : t;
|
|
5220
5229
|
}
|
|
5221
|
-
function
|
|
5230
|
+
function zr(t, e) {
|
|
5222
5231
|
return (s) => {
|
|
5223
5232
|
s?.key?.toLowerCase() === e.toLowerCase() && t(s);
|
|
5224
5233
|
};
|
|
5225
5234
|
}
|
|
5226
|
-
function
|
|
5227
|
-
return
|
|
5235
|
+
function Jr(t) {
|
|
5236
|
+
return Oi(t.value) ? t : Fi(t.value) ? {
|
|
5228
5237
|
type: "JSFunction",
|
|
5229
5238
|
value: `(...args) => (() => {
|
|
5230
5239
|
return (($event) => {
|
|
5231
5240
|
${t.value}
|
|
5232
5241
|
}).apply(this, args);
|
|
5233
5242
|
})()`
|
|
5234
|
-
} :
|
|
5243
|
+
} : Li(t.value) ? {
|
|
5235
5244
|
type: "JSFunction",
|
|
5236
5245
|
value: `() => { ${t.value}}`
|
|
5237
5246
|
} : t;
|
|
5238
5247
|
}
|
|
5239
|
-
function
|
|
5248
|
+
function Qr(t, e, s, i) {
|
|
5240
5249
|
const r = ["passive", "capture", "once"], n = {
|
|
5241
5250
|
capture: "Capture",
|
|
5242
5251
|
once: "Once",
|
|
@@ -5244,16 +5253,16 @@ function zr(t, e, s, i) {
|
|
|
5244
5253
|
};
|
|
5245
5254
|
return Object.keys(s || {}).reduce(
|
|
5246
5255
|
(u, c) => {
|
|
5247
|
-
const l = s[c], h = Xs(l.modifiers), p = h.find((m) => r.includes(m)), d = "on" +
|
|
5256
|
+
const l = s[c], h = Xs(l.modifiers), p = h.find((m) => r.includes(m)), d = "on" + fi(c) + (p && n[p] || ""), f = l.handler ? i.__parseFunction(Jr(l.handler)) : null;
|
|
5248
5257
|
return f && (u[d] = t.withModifiers(
|
|
5249
|
-
h.includes("enter") ?
|
|
5258
|
+
h.includes("enter") ? zr(f, "enter") : f,
|
|
5250
5259
|
h
|
|
5251
5260
|
)), u;
|
|
5252
5261
|
},
|
|
5253
5262
|
{}
|
|
5254
5263
|
);
|
|
5255
5264
|
}
|
|
5256
|
-
function
|
|
5265
|
+
function Yr(t, e, s, i, r = []) {
|
|
5257
5266
|
let n = r.findIndex((a) => a.id === t.id);
|
|
5258
5267
|
for (let a = ++n; a < r.length; a++) {
|
|
5259
5268
|
const { directives: u = [] } = r[a], { vElseIf: c, vElse: l } = Ys(u);
|
|
@@ -5271,32 +5280,32 @@ function Xs(t = {}, e = !1) {
|
|
|
5271
5280
|
const s = Object.keys(t);
|
|
5272
5281
|
return e ? s.map((i) => "." + i) : s;
|
|
5273
5282
|
}
|
|
5274
|
-
function
|
|
5275
|
-
const { children: n } = e, a =
|
|
5283
|
+
function Xr(t, e, s, i, r) {
|
|
5284
|
+
const { children: n } = e, a = Zr(e, i), u = i.$slots?.[a.name];
|
|
5276
5285
|
return u ? u(s) : n ? ee(n) ? t.createTextVNode(n) : T(n) ? t.createTextVNode(
|
|
5277
5286
|
ds(i.__parseExpression(n))
|
|
5278
5287
|
) : Array.isArray(n) ? n.map(
|
|
5279
5288
|
(c, l) => ye(c, i, t, r, n, !1, l)
|
|
5280
5289
|
) : null : null;
|
|
5281
5290
|
}
|
|
5282
|
-
function
|
|
5291
|
+
function Zr(t, e) {
|
|
5283
5292
|
const { props: s } = t, i = s?.name || "default";
|
|
5284
5293
|
return {
|
|
5285
5294
|
name: T(i) ? e.__parseExpression(i) : i,
|
|
5286
5295
|
params: []
|
|
5287
5296
|
};
|
|
5288
5297
|
}
|
|
5289
|
-
function
|
|
5298
|
+
function en(t, e) {
|
|
5290
5299
|
return e.__parseExpression(t.value) ? {} : {
|
|
5291
5300
|
display: "none"
|
|
5292
5301
|
};
|
|
5293
5302
|
}
|
|
5294
|
-
function
|
|
5303
|
+
function tn(t, e) {
|
|
5295
5304
|
return {
|
|
5296
5305
|
innerHTML: e.__parseExpression(t.value) || ""
|
|
5297
5306
|
};
|
|
5298
5307
|
}
|
|
5299
|
-
function
|
|
5308
|
+
function sn(t, e) {
|
|
5300
5309
|
const s = {
|
|
5301
5310
|
type: "JSFunction",
|
|
5302
5311
|
value: t.value?.value ? `(v) => {
|
|
@@ -5308,7 +5317,7 @@ function en(t, e) {
|
|
|
5308
5317
|
onInput: e.__parseFunction(s)
|
|
5309
5318
|
};
|
|
5310
5319
|
}
|
|
5311
|
-
function
|
|
5320
|
+
function rn(t, e, s) {
|
|
5312
5321
|
const i = {
|
|
5313
5322
|
type: "JSFunction",
|
|
5314
5323
|
value: e.value?.value ? `(v) => {
|
|
@@ -5322,7 +5331,7 @@ function tn(t, e, s) {
|
|
|
5322
5331
|
[`onUpdate:${a}`]: n.length && r ? t.withModifiers(r, n) : r
|
|
5323
5332
|
};
|
|
5324
5333
|
}
|
|
5325
|
-
function
|
|
5334
|
+
function nn(t, e, s, i, r) {
|
|
5326
5335
|
if (!e) return null;
|
|
5327
5336
|
if (ee(e))
|
|
5328
5337
|
return { default: () => e };
|
|
@@ -5331,14 +5340,14 @@ function sn(t, e, s, i, r) {
|
|
|
5331
5340
|
default: () => ds(s.__parseExpression(e))
|
|
5332
5341
|
};
|
|
5333
5342
|
if (Array.isArray(e) && e.length > 0) {
|
|
5334
|
-
const n =
|
|
5343
|
+
const n = an(e), a = (u, c) => !u || !r ? {} : r?.id && Object.keys(u).length ? c ? {
|
|
5335
5344
|
[c]: u
|
|
5336
5345
|
} : {
|
|
5337
5346
|
[`scope_${r.id}`]: u
|
|
5338
5347
|
} : c ? { [c]: /* @__PURE__ */ Object.create(null) } : {};
|
|
5339
5348
|
return Object.entries(n).reduce(
|
|
5340
5349
|
(u, [c, { nodes: l, params: h, scope: p }]) => (u[c] = (d) => {
|
|
5341
|
-
const f = h.length ?
|
|
5350
|
+
const f = h.length ? di(d ?? {}, h) : a(d, p);
|
|
5342
5351
|
return l.map(
|
|
5343
5352
|
(m, g) => ye(
|
|
5344
5353
|
m,
|
|
@@ -5356,10 +5365,10 @@ function sn(t, e, s, i, r) {
|
|
|
5356
5365
|
}
|
|
5357
5366
|
return null;
|
|
5358
5367
|
}
|
|
5359
|
-
function
|
|
5368
|
+
function an(t) {
|
|
5360
5369
|
const e = {};
|
|
5361
5370
|
for (const s of t) {
|
|
5362
|
-
const i =
|
|
5371
|
+
const i = on(s.slot), r = i.name;
|
|
5363
5372
|
e[r] ? (e[r].nodes.push(s), e[r].params = e[r].params.concat(i.params), e[r].scope = i.scope || "") : e[r] = {
|
|
5364
5373
|
nodes: [s],
|
|
5365
5374
|
params: i.params,
|
|
@@ -5368,10 +5377,10 @@ function rn(t) {
|
|
|
5368
5377
|
}
|
|
5369
5378
|
return e;
|
|
5370
5379
|
}
|
|
5371
|
-
function
|
|
5380
|
+
function on(t = "default") {
|
|
5372
5381
|
return ee(t) ? { name: t, params: [], scope: "" } : { params: [], scope: "", ...t };
|
|
5373
5382
|
}
|
|
5374
|
-
function
|
|
5383
|
+
function un(t, e, s) {
|
|
5375
5384
|
const { value: i, iterator: r } = t, { item: n = "item", index: a = "index" } = r || {};
|
|
5376
5385
|
let u = s.__parseExpression(i) || [];
|
|
5377
5386
|
return Number.isInteger(u) && (u = new Array(u).fill(!0).map((c, l) => l + 1)), Array.isArray(u) ? u.map((c, l) => e(s.__clone({ [n]: c, [a]: l }), l)) : (console.warn("[vForRender]:", `${i?.value} is not a Arrary`), []);
|
|
@@ -5409,7 +5418,7 @@ const ft = hs({
|
|
|
5409
5418
|
activated() {
|
|
5410
5419
|
this.meta.cache === !1 && (this.sid = Symbol());
|
|
5411
5420
|
}
|
|
5412
|
-
}),
|
|
5421
|
+
}), cn = hs({
|
|
5413
5422
|
name: "VtjStartupContainer",
|
|
5414
5423
|
render() {
|
|
5415
5424
|
return xt("div", "page not found!");
|
|
@@ -5447,15 +5456,15 @@ function Zs(t, e) {
|
|
|
5447
5456
|
e.can(i.id.toString()) && s.push(i);
|
|
5448
5457
|
return s;
|
|
5449
5458
|
}
|
|
5450
|
-
function
|
|
5459
|
+
function Mn(t) {
|
|
5451
5460
|
const {
|
|
5452
5461
|
menuPathPrefix: e = "",
|
|
5453
5462
|
pageRouteName: s = "page",
|
|
5454
5463
|
disableMenusFilter: i = !1
|
|
5455
|
-
} = t || {}, r = ei(), n = ps(), a =
|
|
5464
|
+
} = t || {}, r = ei(), n = ps(), a = _r(), u = vt(!1), c = vt(!1), l = r.project, h = (f, m) => {
|
|
5456
5465
|
u.value = !f?.mask, c.value = m?.pure ?? !!f?.pure;
|
|
5457
5466
|
};
|
|
5458
|
-
|
|
5467
|
+
xi(() => {
|
|
5459
5468
|
const { name: f, params: m, meta: g } = n;
|
|
5460
5469
|
if (f === Ee) {
|
|
5461
5470
|
const x = r.getPage(m.id);
|
|
@@ -5552,11 +5561,11 @@ function kt(t) {
|
|
|
5552
5561
|
}
|
|
5553
5562
|
return c;
|
|
5554
5563
|
}
|
|
5555
|
-
function
|
|
5564
|
+
function ln(t = {}, e) {
|
|
5556
5565
|
const { css: s, store: i, enhance: r } = t, { window: n, app: a, library: u = {}, adapter: c, mode: l } = e, { Pinia: h } = u;
|
|
5557
|
-
a.config.globalProperties.$libs = u, Pt(n, "global-css", s || ""), h && i &&
|
|
5566
|
+
a.config.globalProperties.$libs = u, Pt(n, "global-css", s || ""), h && i && hn(i, a, h), fn(a, c, t), !c.access && t.access && pn(t.access, a, l, c), dn(a, t), r && mn(r, a, u);
|
|
5558
5567
|
}
|
|
5559
|
-
function
|
|
5568
|
+
function hn(t, e, s) {
|
|
5560
5569
|
if (!e.config.globalProperties.$pinia) {
|
|
5561
5570
|
const i = s.createPinia();
|
|
5562
5571
|
e.use(i);
|
|
@@ -5566,7 +5575,7 @@ function cn(t, e, s) {
|
|
|
5566
5575
|
e.config.globalProperties.$store = r();
|
|
5567
5576
|
}
|
|
5568
5577
|
}
|
|
5569
|
-
function
|
|
5578
|
+
function pn(t, e, s, i) {
|
|
5570
5579
|
if (O(t) && t.value) {
|
|
5571
5580
|
const r = z(t, {}, !1, !1, !0), { alert: n, request: a } = i, u = new $t({
|
|
5572
5581
|
alert: n,
|
|
@@ -5576,7 +5585,7 @@ function ln(t, e, s, i) {
|
|
|
5576
5585
|
u.connect({ mode: s, router: c, request: a }), e.use(u);
|
|
5577
5586
|
}
|
|
5578
5587
|
}
|
|
5579
|
-
function
|
|
5588
|
+
function fn(t, e, s) {
|
|
5580
5589
|
if (!e.request) return;
|
|
5581
5590
|
const { axios: i, request: r, response: n } = s;
|
|
5582
5591
|
if (i && O(i) && i.value) {
|
|
@@ -5592,7 +5601,7 @@ function hn(t, e, s) {
|
|
|
5592
5601
|
u.__unRes && u.__unRes(), u.__unRes = e.request.useResponse((c) => a(c, t));
|
|
5593
5602
|
}
|
|
5594
5603
|
}
|
|
5595
|
-
function
|
|
5604
|
+
function dn(t, e) {
|
|
5596
5605
|
const { beforeEach: s, afterEach: i } = e, r = t.config.globalProperties.$router;
|
|
5597
5606
|
if (s && O(s) && s.value) {
|
|
5598
5607
|
const n = z(s, {}, !1, !1, !0);
|
|
@@ -5603,10 +5612,10 @@ function pn(t, e) {
|
|
|
5603
5612
|
r && r.afterEach((a, u, c) => n(a, u, c, t));
|
|
5604
5613
|
}
|
|
5605
5614
|
}
|
|
5606
|
-
function
|
|
5615
|
+
function mn(t, e, s = {}) {
|
|
5607
5616
|
O(t) && t.value && z(t, {}, !1, !1, !0)(e, s);
|
|
5608
5617
|
}
|
|
5609
|
-
function
|
|
5618
|
+
function gn(t, e, s) {
|
|
5610
5619
|
if (!t || !e || !s) return;
|
|
5611
5620
|
const { VueI18n: i } = e;
|
|
5612
5621
|
if (i) {
|
|
@@ -5626,8 +5635,8 @@ function dn(t, e, s) {
|
|
|
5626
5635
|
}
|
|
5627
5636
|
}
|
|
5628
5637
|
const Ut = Symbol("Provider");
|
|
5629
|
-
var
|
|
5630
|
-
class
|
|
5638
|
+
var xn = /* @__PURE__ */ ((t) => (t.Production = "production", t.Development = "development", t))(xn || {});
|
|
5639
|
+
class vn extends ni {
|
|
5631
5640
|
/**
|
|
5632
5641
|
* 创建Provider实例
|
|
5633
5642
|
* @param options 配置选项
|
|
@@ -5719,7 +5728,7 @@ class gn extends ii {
|
|
|
5719
5728
|
if (this.project = i ? await i() : await this.service.init(e), !this.project)
|
|
5720
5729
|
throw new Error("project is null");
|
|
5721
5730
|
const { apis: r = [], meta: n = [], env: a = [] } = this.project, u = globalThis;
|
|
5722
|
-
u && (u.CKEDITOR_VERSION = void 0), this.initEnv(a), this.mode === P.Raw ? await this.loadDependencies(u) : await this.loadAssets(u), this.initMock(u), this.apis =
|
|
5731
|
+
u && (u.CKEDITOR_VERSION = void 0), this.initEnv(a), this.mode === P.Raw ? await this.loadDependencies(u) : await this.loadAssets(u), this.initMock(u), this.apis = wr(r, n, this.adapter), zs(u), Er(r, u), e.platform !== "uniapp" && this.initRouter(), this.triggerReady();
|
|
5723
5732
|
}
|
|
5724
5733
|
initMock(e) {
|
|
5725
5734
|
const s = Ae(e);
|
|
@@ -5747,7 +5756,7 @@ class gn extends ii {
|
|
|
5747
5756
|
materialExports: d,
|
|
5748
5757
|
materialMapLibrary: f,
|
|
5749
5758
|
libraryLocaleMap: m
|
|
5750
|
-
} =
|
|
5759
|
+
} = Ci(
|
|
5751
5760
|
s,
|
|
5752
5761
|
a,
|
|
5753
5762
|
u === "development"
|
|
@@ -5763,7 +5772,7 @@ class gn extends ii {
|
|
|
5763
5772
|
else {
|
|
5764
5773
|
const N = h[g] || [];
|
|
5765
5774
|
for (const w of N)
|
|
5766
|
-
Ke(w) && await
|
|
5775
|
+
Ke(w) && await Ti(w, he.append(w, { v: we })), ze(w) && await Jt(he.append(w, { v: we }));
|
|
5767
5776
|
r[g] = e[g];
|
|
5768
5777
|
}
|
|
5769
5778
|
const k = m[g];
|
|
@@ -5777,7 +5786,7 @@ class gn extends ii {
|
|
|
5777
5786
|
await Jt(he.append(x, { v: we }));
|
|
5778
5787
|
const g = this.materials || {};
|
|
5779
5788
|
for (const x of d) {
|
|
5780
|
-
const b = e[f[x]], k = b?.default || b, N =
|
|
5789
|
+
const b = e[f[x]], k = b?.default || b, N = ai[x];
|
|
5781
5790
|
if (N)
|
|
5782
5791
|
k && N.forEach((w) => {
|
|
5783
5792
|
n[w] = k[w];
|
|
@@ -5785,7 +5794,7 @@ class gn extends ii {
|
|
|
5785
5794
|
else {
|
|
5786
5795
|
const w = g[x] ? (await g[x]()).default : e[x];
|
|
5787
5796
|
w && k && (w.components || []).forEach((D) => {
|
|
5788
|
-
n[D.name] =
|
|
5797
|
+
n[D.name] = wi(D, k);
|
|
5789
5798
|
});
|
|
5790
5799
|
}
|
|
5791
5800
|
}
|
|
@@ -5805,7 +5814,7 @@ class gn extends ii {
|
|
|
5805
5814
|
}, p = this.getHomepage(), d = {
|
|
5806
5815
|
path: l,
|
|
5807
5816
|
name: He,
|
|
5808
|
-
component: p ? ft : r.startupComponent ||
|
|
5817
|
+
component: p ? ft : r.startupComponent || cn,
|
|
5809
5818
|
meta: c
|
|
5810
5819
|
};
|
|
5811
5820
|
if (e.hasRoute(Ee) && e.removeRoute(Ee), e.hasRoute(He) && e.removeRoute(He), i.enableStaticRoute) {
|
|
@@ -5824,7 +5833,7 @@ class gn extends ii {
|
|
|
5824
5833
|
a ? (e.addRoute(a, h), e.addRoute(a, d)) : (e.addRoute(h), e.addRoute(d));
|
|
5825
5834
|
}
|
|
5826
5835
|
setErrorHandler(e) {
|
|
5827
|
-
e.config.errorHandler =
|
|
5836
|
+
e.config.errorHandler = mi((s, i, r) => {
|
|
5828
5837
|
const n = i?.$options.name, a = typeof s == "string" ? s : s?.message || s?.msg || "未知错误", u = `[ ${n} ] ${a} ${r}`;
|
|
5829
5838
|
if (!["getComputedStyle", "ResizeObserver"].some((l) => u.includes(l))) {
|
|
5830
5839
|
try {
|
|
@@ -5856,7 +5865,7 @@ class gn extends ii {
|
|
|
5856
5865
|
install(e) {
|
|
5857
5866
|
const { libraryLocaleMap: s, libraryLocales: i } = this, { libraryOptions: r = {} } = this.options, n = e.config.globalProperties.installed || {};
|
|
5858
5867
|
for (const [a, u] of Object.entries(this.library))
|
|
5859
|
-
if (!n[a] &&
|
|
5868
|
+
if (!n[a] && Ni(u)) {
|
|
5860
5869
|
const l = { locale: i[s[a]] }, h = r[a] || {}, p = { ...l, ...h };
|
|
5861
5870
|
e.use(u, p), n[a] = !0;
|
|
5862
5871
|
}
|
|
@@ -6017,10 +6026,10 @@ class gn extends ii {
|
|
|
6017
6026
|
},
|
|
6018
6027
|
s
|
|
6019
6028
|
);
|
|
6020
|
-
|
|
6029
|
+
ln(e, i);
|
|
6021
6030
|
}
|
|
6022
6031
|
initI18n(e, s, i) {
|
|
6023
|
-
|
|
6032
|
+
gn(e, s, i);
|
|
6024
6033
|
}
|
|
6025
6034
|
initEnv(e = []) {
|
|
6026
6035
|
this.env = e.reduce(
|
|
@@ -6029,8 +6038,8 @@ class gn extends ii {
|
|
|
6029
6038
|
);
|
|
6030
6039
|
}
|
|
6031
6040
|
}
|
|
6032
|
-
function
|
|
6033
|
-
const e = new
|
|
6041
|
+
function Dn(t) {
|
|
6042
|
+
const e = new vn(t);
|
|
6034
6043
|
return {
|
|
6035
6044
|
provider: e,
|
|
6036
6045
|
onReady: (i) => e.ready(i)
|
|
@@ -6056,23 +6065,23 @@ function ei(t = {}) {
|
|
|
6056
6065
|
function Fe() {
|
|
6057
6066
|
return At(Ut, null)?.globals ?? {};
|
|
6058
6067
|
}
|
|
6059
|
-
function
|
|
6068
|
+
function Bn() {
|
|
6060
6069
|
return Fe().$store || {};
|
|
6061
6070
|
}
|
|
6062
|
-
function
|
|
6071
|
+
function Hn() {
|
|
6063
6072
|
return Fe().$pinia || {};
|
|
6064
6073
|
}
|
|
6065
|
-
function
|
|
6074
|
+
function $n() {
|
|
6066
6075
|
return Fe().$request;
|
|
6067
6076
|
}
|
|
6068
|
-
function
|
|
6077
|
+
function Un() {
|
|
6069
6078
|
return Fe().$libs || {};
|
|
6070
6079
|
}
|
|
6071
|
-
function
|
|
6080
|
+
function Gn() {
|
|
6072
6081
|
return Fe().$apis || {};
|
|
6073
6082
|
}
|
|
6074
|
-
async function
|
|
6075
|
-
const { name: s, urls: i = [] } = t || {}, r = i.map((u) => e + u), { css: n, js: a } =
|
|
6083
|
+
async function qn(t, e = "") {
|
|
6084
|
+
const { name: s, urls: i = [] } = t || {}, r = i.map((u) => e + u), { css: n, js: a } = Ei(r);
|
|
6076
6085
|
if (n.length && ms(n), a.length)
|
|
6077
6086
|
return await gs(a, s).catch(
|
|
6078
6087
|
() => {
|
|
@@ -6085,7 +6094,7 @@ const ti = {
|
|
|
6085
6094
|
originResponse: !1,
|
|
6086
6095
|
failMessage: !0,
|
|
6087
6096
|
validate: (t) => t.data?.code === 0
|
|
6088
|
-
},
|
|
6097
|
+
}, bn = (t, e = "/__vtj__/api/:type.json") => (s, i, r) => t.send({
|
|
6089
6098
|
url: e,
|
|
6090
6099
|
method: "post",
|
|
6091
6100
|
params: { type: s },
|
|
@@ -6095,7 +6104,7 @@ const ti = {
|
|
|
6095
6104
|
data: i
|
|
6096
6105
|
},
|
|
6097
6106
|
settings: ti
|
|
6098
|
-
}),
|
|
6107
|
+
}), yn = (t, e = "/__vtj__/api/uploader.json") => async (s, i) => await t.send({
|
|
6099
6108
|
url: e,
|
|
6100
6109
|
method: "post",
|
|
6101
6110
|
data: {
|
|
@@ -6107,7 +6116,7 @@ const ti = {
|
|
|
6107
6116
|
type: "data"
|
|
6108
6117
|
}
|
|
6109
6118
|
}).then((r) => r && r[0] ? r[0] : null).catch(() => null);
|
|
6110
|
-
function
|
|
6119
|
+
function Wn(t) {
|
|
6111
6120
|
return cs({
|
|
6112
6121
|
settings: {
|
|
6113
6122
|
type: "json",
|
|
@@ -6123,7 +6132,7 @@ function Gn(t) {
|
|
|
6123
6132
|
}
|
|
6124
6133
|
class Gt {
|
|
6125
6134
|
constructor(e = gt) {
|
|
6126
|
-
this.req = e, this.api =
|
|
6135
|
+
this.req = e, this.api = bn(e), this.uploader = yn(e);
|
|
6127
6136
|
}
|
|
6128
6137
|
api;
|
|
6129
6138
|
pluginCaches = {};
|
|
@@ -6207,7 +6216,7 @@ class Gt {
|
|
|
6207
6216
|
return await this.api("clearStaticFiles", e).catch(() => "");
|
|
6208
6217
|
}
|
|
6209
6218
|
async getPluginMaterial(e) {
|
|
6210
|
-
const { urls: s = [] } = e, i = s.filter((n) =>
|
|
6219
|
+
const { urls: s = [] } = e, i = s.filter((n) => _i(n))[0];
|
|
6211
6220
|
if (!i) return null;
|
|
6212
6221
|
const r = this.pluginCaches[i];
|
|
6213
6222
|
return r || (this.pluginCaches[i] = gt.send({
|
|
@@ -6223,12 +6232,12 @@ class Gt {
|
|
|
6223
6232
|
return console.log("BaseService.genSource", e), "";
|
|
6224
6233
|
}
|
|
6225
6234
|
}
|
|
6226
|
-
const L = new
|
|
6235
|
+
const L = new gi({
|
|
6227
6236
|
type: "local",
|
|
6228
6237
|
expired: 0,
|
|
6229
6238
|
prefix: "__VTJ_"
|
|
6230
6239
|
});
|
|
6231
|
-
class
|
|
6240
|
+
class Kn extends Gt {
|
|
6232
6241
|
init(e) {
|
|
6233
6242
|
const s = new $e(e), i = L.get(`project_${s.id}`), r = Object.assign(s.toDsl(), i || {});
|
|
6234
6243
|
return L.save(`project_${s.id}`, r), Promise.resolve(r);
|
|
@@ -6278,7 +6287,7 @@ class qn extends Gt {
|
|
|
6278
6287
|
}), Promise.resolve(!0);
|
|
6279
6288
|
}
|
|
6280
6289
|
}
|
|
6281
|
-
class
|
|
6290
|
+
class _n extends Gt {
|
|
6282
6291
|
projects = {};
|
|
6283
6292
|
materials = {};
|
|
6284
6293
|
files = {};
|
|
@@ -6336,10 +6345,10 @@ class bn extends Gt {
|
|
|
6336
6345
|
}
|
|
6337
6346
|
}
|
|
6338
6347
|
let Be = null;
|
|
6339
|
-
function
|
|
6340
|
-
return Be || (Be = new
|
|
6348
|
+
function zn() {
|
|
6349
|
+
return Be || (Be = new _n(), Be);
|
|
6341
6350
|
}
|
|
6342
|
-
class
|
|
6351
|
+
class Jn extends Gt {
|
|
6343
6352
|
getFileCaches = {};
|
|
6344
6353
|
async getExtension() {
|
|
6345
6354
|
return await this.api("getExtension", {}).catch(() => {
|
|
@@ -6397,94 +6406,94 @@ class Kn extends Gt {
|
|
|
6397
6406
|
}
|
|
6398
6407
|
}
|
|
6399
6408
|
export {
|
|
6400
|
-
|
|
6409
|
+
Pn as ACCESS,
|
|
6401
6410
|
Ks as ACCESS_KEY,
|
|
6402
6411
|
$t as Access,
|
|
6403
|
-
|
|
6404
|
-
|
|
6412
|
+
yi as BUILD_IN_TAGS,
|
|
6413
|
+
vi as BUILT_IN_DIRECTIVES,
|
|
6405
6414
|
Gt as BaseService,
|
|
6406
|
-
|
|
6415
|
+
In as COMPOSITION_HOOKS_LIST,
|
|
6407
6416
|
Yt as CONTEXT_HOST,
|
|
6408
6417
|
os as Context,
|
|
6409
6418
|
P as ContextMode,
|
|
6410
|
-
|
|
6419
|
+
bi as DATA_TYPES,
|
|
6411
6420
|
He as HOMEPAGE_ROUTE_NAME,
|
|
6412
6421
|
fs as HTML_TAGS,
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
|
|
6416
|
-
|
|
6417
|
-
|
|
6422
|
+
On as JSCodeToString,
|
|
6423
|
+
kn as LIFE_CYCLES_LIST,
|
|
6424
|
+
Jn as LocalService,
|
|
6425
|
+
_n as MemoryService,
|
|
6426
|
+
xn as NodeEnv,
|
|
6418
6427
|
Ee as PAGE_ROUTE_NAME,
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
|
|
6428
|
+
vn as Provider,
|
|
6429
|
+
An as REMOTE,
|
|
6430
|
+
Kn as StorageService,
|
|
6422
6431
|
we as VTJ_RENDERER_VERSION,
|
|
6423
|
-
|
|
6432
|
+
Rn as adoptStylesToInline,
|
|
6424
6433
|
Pt as adoptedStyleSheets,
|
|
6425
|
-
|
|
6426
|
-
|
|
6427
|
-
|
|
6428
|
-
|
|
6429
|
-
|
|
6430
|
-
|
|
6431
|
-
|
|
6432
|
-
|
|
6434
|
+
jn as clearLoaderCache,
|
|
6435
|
+
ki as compileScopedCSS,
|
|
6436
|
+
Pi as convertCssRpx,
|
|
6437
|
+
Ln as createAccess,
|
|
6438
|
+
Fn as createAdapter,
|
|
6439
|
+
Tn as createAssetScripts,
|
|
6440
|
+
Nn as createAssetsCss,
|
|
6441
|
+
Or as createDataSources,
|
|
6433
6442
|
wt as createLoader,
|
|
6434
|
-
|
|
6443
|
+
zn as createMemoryService,
|
|
6435
6444
|
We as createMenus,
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6445
|
+
Cr as createMetaApi,
|
|
6446
|
+
kr as createMock,
|
|
6447
|
+
Dn as createProvider,
|
|
6439
6448
|
Ct as createRenderer,
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6449
|
+
Sr as createSchemaApi,
|
|
6450
|
+
wr as createSchemaApis,
|
|
6451
|
+
Wn as createServiceRequest,
|
|
6452
|
+
Ur as defaultLoader,
|
|
6444
6453
|
Me as fillBasePath,
|
|
6445
6454
|
Ae as getMock,
|
|
6446
6455
|
Xs as getModifiers,
|
|
6447
6456
|
Qs as getPlugin,
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6457
|
+
wi as getRawComponent,
|
|
6458
|
+
Oi as isArrowFunction,
|
|
6459
|
+
Li as isAssignment,
|
|
6460
|
+
Ri as isBuiltInTag,
|
|
6452
6461
|
Ke as isCSSUrl,
|
|
6453
|
-
|
|
6454
|
-
|
|
6462
|
+
Fi as isCallFunction,
|
|
6463
|
+
br as isJSCode,
|
|
6455
6464
|
T as isJSExpression,
|
|
6456
6465
|
O as isJSFunction,
|
|
6457
|
-
|
|
6466
|
+
_i as isJSON,
|
|
6458
6467
|
ze as isJSUrl,
|
|
6459
|
-
|
|
6460
|
-
|
|
6461
|
-
|
|
6468
|
+
Vi as isNativeTag,
|
|
6469
|
+
Ni as isVuePlugin,
|
|
6470
|
+
Ti as loadCss,
|
|
6462
6471
|
ms as loadCssUrl,
|
|
6463
|
-
|
|
6472
|
+
qn as loadEnhance,
|
|
6464
6473
|
gs as loadScriptUrl,
|
|
6465
6474
|
Zs as menusFilter,
|
|
6466
|
-
|
|
6467
|
-
|
|
6475
|
+
Ir as mockApi,
|
|
6476
|
+
Er as mockApis,
|
|
6468
6477
|
zs as mockCleanup,
|
|
6469
6478
|
Se as nodeCache,
|
|
6470
6479
|
ye as nodeRender,
|
|
6471
|
-
|
|
6480
|
+
Ci as parseDeps,
|
|
6472
6481
|
Re as parseExpression,
|
|
6473
6482
|
z as parseFunction,
|
|
6474
|
-
|
|
6483
|
+
Ei as parseUrls,
|
|
6475
6484
|
Ut as providerKey,
|
|
6476
|
-
|
|
6477
|
-
|
|
6478
|
-
|
|
6485
|
+
Si as removeProdFlag,
|
|
6486
|
+
Ai as rpxToPx,
|
|
6487
|
+
Vn as setupPageSetting,
|
|
6479
6488
|
ds as toString,
|
|
6480
6489
|
qe as triggerError,
|
|
6481
|
-
|
|
6482
|
-
|
|
6490
|
+
_r as useAccess,
|
|
6491
|
+
Gn as useApis,
|
|
6483
6492
|
Fe as useGlobals,
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
|
|
6493
|
+
Un as useLibs,
|
|
6494
|
+
Mn as useMask,
|
|
6495
|
+
Hn as usePinia,
|
|
6487
6496
|
ei as useProvider,
|
|
6488
|
-
|
|
6489
|
-
|
|
6497
|
+
$n as useRequest,
|
|
6498
|
+
Bn as useStore
|
|
6490
6499
|
};
|