@10yun/open-sdk 0.3.89 → 0.3.96
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/common/buildRbac.js +4 -6
- package/common/router.js +123 -4
- package/dist/{404-8Ol_7RAM.js → 404-7T86Vz-_.js} +1 -1
- package/dist/{404-D-GPY7ST.cjs → 404-DL8QEwH-.cjs} +1 -1
- package/dist/{alone_run-uPkIes2u.cjs → alone_run-BwAdIqCh.cjs} +1 -1
- package/dist/{alone_run-DANQhr5L.js → alone_run-CZzjYo2-.js} +1 -1
- package/dist/index-CbeSDAAQ.cjs +25 -0
- package/dist/{index-CYEmAMQY.js → index-RkPPXn1C.js} +962 -1028
- package/dist/{login--cQphqEz.js → login-Djw_cyao.js} +3 -3
- package/dist/{login-CqNOVYmy.cjs → login-jBWicOdk.cjs} +1 -1
- package/dist/{none-Bn8fy8mK.cjs → none-C-tlXdgu.cjs} +1 -1
- package/dist/{none-CXiz2Wws.js → none-CQwv0UHB.js} +1 -1
- package/dist/open-sdk.cjs.js +1 -1
- package/dist/open-sdk.es.js +15 -14
- package/package.json +4 -3
- package/{app-config.js → uncompiled/index.js} +49 -5
- package/uncompiled/style.js +3 -0
- package/vite-plugin-shiyun.js +1 -1
- package/dist/index-DSBKHepn.cjs +0 -26
|
@@ -1,109 +1,45 @@
|
|
|
1
1
|
import { defineStore as Be, mapState as Fe } from "pinia";
|
|
2
|
-
import { effectScope as
|
|
3
|
-
import
|
|
4
|
-
import * as
|
|
2
|
+
import { effectScope as ws, ref as Ds, shallowRef as Rs, computed as gt, watch as wn, isRef as Ps, defineComponent as Jn, getCurrentInstance as yt, h as Sa, Fragment as he, inject as ks, onMounted as Fs, onUnmounted as Ms, createVNode as w, Text as Us, resolveComponent as B, createBlock as J, openBlock as U, withCtx as R, Transition as Bs, createElementBlock as Q, normalizeClass as va, resolveDynamicComponent as xs, createElementVNode as k, renderList as Xe, createTextVNode as te, toDisplayString as ne, createCommentVNode as ue, withDirectives as Aa, withModifiers as Vs, normalizeStyle as Dn, vShow as ya, mergeProps as Gs, renderSlot as $s } from "vue";
|
|
3
|
+
import Ws, { ElMessage as vr, ElMessageBox as Ys, ElNotification as Hs } from "element-plus";
|
|
4
|
+
import * as Ks from "@element-plus/icons-vue";
|
|
5
5
|
import "element-plus/dist/index.css";
|
|
6
6
|
import "element-plus/theme-chalk/dark/css-vars.css";
|
|
7
|
-
import
|
|
7
|
+
import js from "@10yun/cv-pc-ui";
|
|
8
8
|
import "@10yun/cv-pc-ui/lib/cv-ui.css";
|
|
9
|
-
import * as
|
|
10
|
-
import
|
|
9
|
+
import * as qs from "@10yun/cv-icons-vue";
|
|
10
|
+
import Xs from "axios";
|
|
11
11
|
let Na = {};
|
|
12
|
-
function
|
|
12
|
+
function Qs(e = {}) {
|
|
13
13
|
Na = e;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Nt() {
|
|
16
16
|
return Na;
|
|
17
17
|
}
|
|
18
|
-
function Ta(e = [], t = "children") {
|
|
19
|
-
return e.reduce((n, r) => n.concat(r, r[t] ? Ta(r[t], t) : []), []);
|
|
20
|
-
}
|
|
21
|
-
function Js(e) {
|
|
22
|
-
return e = e.replace(/\s/g, ""), e.substr(0, 1) == "/" && (e = e.substr(1)), e.substr(0, 1) == "/" && (e = e.substr(1)), e;
|
|
23
|
-
}
|
|
24
|
-
function Oa(e, t = []) {
|
|
25
|
-
let n = [];
|
|
26
|
-
return e.forEach((r) => {
|
|
27
|
-
let a = {
|
|
28
|
-
path: r.path || "",
|
|
29
|
-
name: r.name || "",
|
|
30
|
-
isMenu: r.isMenu || !1,
|
|
31
|
-
isRbac: r.isRbac || !1,
|
|
32
|
-
isWindow: r.isWindow || !1,
|
|
33
|
-
isAlone: r.isAlone || !1,
|
|
34
|
-
isPage: !!r.path,
|
|
35
|
-
...r.meta
|
|
36
|
-
};
|
|
37
|
-
r.redirect && (a = Object.assign({}, a, { redirect: r.redirect })), r.generatemenu == 0 && (a = Object.assign({}, a, { hidden: !0 }));
|
|
38
|
-
let s = [];
|
|
39
|
-
if (s.push(...t), s.push(a), r.children) {
|
|
40
|
-
let o = r.children;
|
|
41
|
-
r.children = Oa([...o], s);
|
|
42
|
-
}
|
|
43
|
-
r.treeInfo = s, n.push(r);
|
|
44
|
-
}), n;
|
|
45
|
-
}
|
|
46
|
-
function zs(e, t, n = !0) {
|
|
47
|
-
return t = Oa(t), Array.isArray(t) && Ta(t, "children").forEach((a, s) => {
|
|
48
|
-
if (!a.path) return;
|
|
49
|
-
let o = "";
|
|
50
|
-
a.path ? o = a.path.replace("//", "/") : o = "temp_path_" + s;
|
|
51
|
-
let i = "";
|
|
52
|
-
a.name ? i = a.name : i = o.replace("/", "_") + "_" + s;
|
|
53
|
-
try {
|
|
54
|
-
let l = {
|
|
55
|
-
path: o,
|
|
56
|
-
// 路由路径名
|
|
57
|
-
name: i,
|
|
58
|
-
// 命名路由 用于配合菜单简洁跳转
|
|
59
|
-
query: a.query || {},
|
|
60
|
-
params: a.params || {},
|
|
61
|
-
props: a.props || !0,
|
|
62
|
-
isMenu: a.isMenu || !1,
|
|
63
|
-
// 路由元信息 定义路由时即可携带的参数,可用来管理每个路由的按钮操作权限, 详细可以看minix下suth.js但是现在更普遍的是做v-auth指令
|
|
64
|
-
meta: {
|
|
65
|
-
isMenu: a.isMenu || !1,
|
|
66
|
-
isRbac: a.isRbac || !1,
|
|
67
|
-
isWindow: a.isWindow || !1,
|
|
68
|
-
isAlone: a.isAlone || !1,
|
|
69
|
-
title: a.title || "",
|
|
70
|
-
treeInfo: a.treeInfo || [],
|
|
71
|
-
...a.meta
|
|
72
|
-
// purview: item[options.permissions],
|
|
73
|
-
}
|
|
74
|
-
// component = () =>
|
|
75
|
-
};
|
|
76
|
-
typeof a.component == "string" && (l.component_str = Js(a.component)), e.push(l), !n && a.children && (l.children = [], zs(l.children, a.children));
|
|
77
|
-
} catch {
|
|
78
|
-
console.log("---路由注册问题");
|
|
79
|
-
}
|
|
80
|
-
}), e;
|
|
81
|
-
}
|
|
82
18
|
/*!
|
|
83
19
|
* vite-plugin-qiankun.js v1.0.14
|
|
84
20
|
* (c) 2021-2022 Teng Mao Qing
|
|
85
21
|
* Released under the MIT License.
|
|
86
22
|
*/
|
|
87
|
-
var
|
|
88
|
-
|
|
23
|
+
var me = typeof window < "u" ? window.proxy || window : {}, Js = function(e) {
|
|
24
|
+
me != null && me.__POWERED_BY_QIANKUN__ && (window.moudleQiankunAppLifeCycles || (window.moudleQiankunAppLifeCycles = {}), me.qiankunName && (window.moudleQiankunAppLifeCycles[me.qiankunName] = e));
|
|
89
25
|
};
|
|
90
|
-
function
|
|
26
|
+
function zs(e = "/", t = null, n = {}) {
|
|
91
27
|
e == "/" && (e = "/" + (window.localStorage.getItem("__syCacheMicroCurrSign__") || "base")), window.history.pushState(n, t, e);
|
|
92
28
|
}
|
|
93
|
-
var
|
|
29
|
+
var At = {};
|
|
94
30
|
function Ut(e) {
|
|
95
|
-
if (!
|
|
31
|
+
if (!me.__POWERED_BY_QIANKUN__)
|
|
96
32
|
return !1;
|
|
97
33
|
if (!Object.prototype.toString.call(e) === "[object Object]")
|
|
98
34
|
throw Error("data必须是对象格式");
|
|
99
|
-
|
|
100
|
-
ignore:
|
|
35
|
+
At.setGlobalState && At.setGlobalState({
|
|
36
|
+
ignore: At.name,
|
|
101
37
|
msg: {
|
|
102
38
|
...e
|
|
103
39
|
}
|
|
104
40
|
});
|
|
105
41
|
}
|
|
106
|
-
function
|
|
42
|
+
function Zs(e) {
|
|
107
43
|
let t = Te();
|
|
108
44
|
e && e.onGlobalStateChange && e.onGlobalStateChange((n, r) => {
|
|
109
45
|
if (n && n.msg)
|
|
@@ -114,10 +50,10 @@ function to(e) {
|
|
|
114
50
|
break;
|
|
115
51
|
}
|
|
116
52
|
Tt().SA_MSG_CONTENT(n.msg);
|
|
117
|
-
}, !0),
|
|
53
|
+
}, !0), At.setGlobalState = e && e.setGlobalState, At.name = e && e.name;
|
|
118
54
|
}
|
|
119
|
-
function
|
|
120
|
-
|
|
55
|
+
function eo(e, t, n) {
|
|
56
|
+
Js({
|
|
121
57
|
/**
|
|
122
58
|
* @name 微应用初始化
|
|
123
59
|
* @param {Object} props 主应用下发的props
|
|
@@ -132,7 +68,7 @@ function no(e, t, n) {
|
|
|
132
68
|
* @description 应用每次进入都会调用 mount 方法,通常我们在这里触发应用的渲染方法
|
|
133
69
|
*/
|
|
134
70
|
mount(r) {
|
|
135
|
-
|
|
71
|
+
Zs(r), t(r, !0);
|
|
136
72
|
},
|
|
137
73
|
/**
|
|
138
74
|
* @name 微应用卸载/切出
|
|
@@ -152,7 +88,7 @@ function no(e, t, n) {
|
|
|
152
88
|
const Tt = Be("cloudSdkQiankunStore", {
|
|
153
89
|
state: () => ({
|
|
154
90
|
// 是否是乾坤
|
|
155
|
-
qiankunExistState:
|
|
91
|
+
qiankunExistState: me.__POWERED_BY_QIANKUN__ || !1,
|
|
156
92
|
msg: ""
|
|
157
93
|
}),
|
|
158
94
|
getters: {
|
|
@@ -217,36 +153,36 @@ const Tt = Be("cloudSdkQiankunStore", {
|
|
|
217
153
|
* Released under the MIT License.
|
|
218
154
|
*/
|
|
219
155
|
const Ae = typeof window < "u";
|
|
220
|
-
let ge,
|
|
156
|
+
let ge, Qe;
|
|
221
157
|
if (process.env.NODE_ENV !== "production") {
|
|
222
158
|
const e = Ae && window.performance;
|
|
223
159
|
e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat
|
|
224
160
|
e.clearMeasures && (ge = (t) => {
|
|
225
161
|
e.mark(t);
|
|
226
|
-
},
|
|
162
|
+
}, Qe = (t, n, r) => {
|
|
227
163
|
e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
|
|
228
164
|
});
|
|
229
165
|
}
|
|
230
|
-
const
|
|
166
|
+
const to = /\{([0-9a-zA-Z]+)\}/g;
|
|
231
167
|
function Xt(e, ...t) {
|
|
232
|
-
return t.length === 1 && G(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(
|
|
168
|
+
return t.length === 1 && G(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(to, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
233
169
|
}
|
|
234
|
-
const Oe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e),
|
|
170
|
+
const Oe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), no = (e, t, n) => ro({ l: e, k: t, s: n }), ro = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ae = (e) => typeof e == "number" && isFinite(e), ao = (e) => zn(e) === "[object Date]", lt = (e) => zn(e) === "[object RegExp]", Qt = (e) => V(e) && Object.keys(e).length === 0, ie = Object.assign, so = Object.create, K = (e = null) => so(e);
|
|
235
171
|
let Ar;
|
|
236
|
-
const
|
|
172
|
+
const je = () => Ar || (Ar = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : K());
|
|
237
173
|
function yr(e) {
|
|
238
174
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
239
175
|
}
|
|
240
|
-
const
|
|
176
|
+
const oo = Object.prototype.hasOwnProperty;
|
|
241
177
|
function ve(e, t) {
|
|
242
|
-
return
|
|
178
|
+
return oo.call(e, t);
|
|
243
179
|
}
|
|
244
|
-
const re = Array.isArray, q = (e) => typeof e == "function", I = (e) => typeof e == "string", $ = (e) => typeof e == "boolean", G = (e) => e !== null && typeof e == "object",
|
|
180
|
+
const re = Array.isArray, q = (e) => typeof e == "function", I = (e) => typeof e == "string", $ = (e) => typeof e == "boolean", G = (e) => e !== null && typeof e == "object", io = (e) => G(e) && q(e.then) && q(e.catch), Ta = Object.prototype.toString, zn = (e) => Ta.call(e), V = (e) => zn(e) === "[object Object]", lo = (e) => e == null ? "" : re(e) || V(e) && e.toString === Ta ? JSON.stringify(e, null, 2) : String(e);
|
|
245
181
|
function Zn(e, t = "") {
|
|
246
182
|
return e.reduce((n, r, a) => a === 0 ? n + r : n + t + r, "");
|
|
247
183
|
}
|
|
248
184
|
const Nr = 2;
|
|
249
|
-
function
|
|
185
|
+
function co(e, t = 0, n = e.length) {
|
|
250
186
|
const r = e.split(/\r?\n/);
|
|
251
187
|
let a = 0;
|
|
252
188
|
const s = [];
|
|
@@ -274,12 +210,11 @@ function fo(e, t = 0, n = e.length) {
|
|
|
274
210
|
return s.join(`
|
|
275
211
|
`);
|
|
276
212
|
}
|
|
277
|
-
function
|
|
278
|
-
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
213
|
+
function uo(e, t) {
|
|
279
214
|
}
|
|
280
215
|
const Tr = {};
|
|
281
216
|
function er(e) {
|
|
282
|
-
Tr[e] || (Tr[e] = !0,
|
|
217
|
+
Tr[e] || (Tr[e] = !0, void 0);
|
|
283
218
|
}
|
|
284
219
|
function tr() {
|
|
285
220
|
const e = /* @__PURE__ */ new Map();
|
|
@@ -315,7 +250,7 @@ function Wt(e, t) {
|
|
|
315
250
|
* (c) 2025 kazuya kawaguchi
|
|
316
251
|
* Released under the MIT License.
|
|
317
252
|
*/
|
|
318
|
-
function
|
|
253
|
+
function fo(e, t, n) {
|
|
319
254
|
return { line: e, column: t, offset: n };
|
|
320
255
|
}
|
|
321
256
|
function Rn(e, t, n) {
|
|
@@ -342,7 +277,7 @@ const M = {
|
|
|
342
277
|
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
343
278
|
// minifier error codes
|
|
344
279
|
UNHANDLED_MINIFIER_NODE_TYPE: 16
|
|
345
|
-
},
|
|
280
|
+
}, _o = 17, mo = {
|
|
346
281
|
// tokenizer error messages
|
|
347
282
|
[M.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
348
283
|
[M.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
@@ -364,19 +299,19 @@ const M = {
|
|
|
364
299
|
// minimizer error messages
|
|
365
300
|
[M.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
366
301
|
};
|
|
367
|
-
function
|
|
368
|
-
const { domain: r, messages: a, args: s } = n, o = process.env.NODE_ENV !== "production" ? Xt((a ||
|
|
302
|
+
function ft(e, t, n = {}) {
|
|
303
|
+
const { domain: r, messages: a, args: s } = n, o = process.env.NODE_ENV !== "production" ? Xt((a || mo)[e] || "", ...s || []) : e, i = new SyntaxError(String(o));
|
|
369
304
|
return i.code = e, t && (i.location = t), i.domain = r, i;
|
|
370
305
|
}
|
|
371
|
-
function
|
|
306
|
+
function ho(e) {
|
|
372
307
|
throw e;
|
|
373
308
|
}
|
|
374
|
-
const
|
|
375
|
-
`,
|
|
376
|
-
function
|
|
309
|
+
const go = /<\/?[\w\s="/.':;#-\/]+>/, po = (e) => go.test(e), Ce = " ", Eo = "\r", ce = `
|
|
310
|
+
`, bo = "\u2028", So = "\u2029";
|
|
311
|
+
function vo(e) {
|
|
377
312
|
const t = e;
|
|
378
313
|
let n = 0, r = 1, a = 1, s = 0;
|
|
379
|
-
const o = (v) => t[v] ===
|
|
314
|
+
const o = (v) => t[v] === Eo && t[v + 1] === ce, i = (v) => t[v] === ce, l = (v) => t[v] === So, c = (v) => t[v] === bo, f = (v) => o(v) || i(v) || l(v) || c(v), u = () => n, m = () => r, p = () => a, A = () => s, E = (v) => o(v) || l(v) || c(v) ? ce : t[v], C = () => E(n), h = () => E(n + s);
|
|
380
315
|
function g() {
|
|
381
316
|
return s = 0, f(n) && (r++, a = 0), o(n) && n++, n++, a++, t[n];
|
|
382
317
|
}
|
|
@@ -410,9 +345,9 @@ function Ao(e) {
|
|
|
410
345
|
skipToPeek: L
|
|
411
346
|
};
|
|
412
347
|
}
|
|
413
|
-
const Pe = void 0,
|
|
414
|
-
function
|
|
415
|
-
const n = t.location !== !1, r =
|
|
348
|
+
const Pe = void 0, Ao = ".", Or = "'", yo = "tokenizer";
|
|
349
|
+
function No(e, t = {}) {
|
|
350
|
+
const n = t.location !== !1, r = vo(e), a = () => r.index(), s = () => fo(r.line(), r.column(), r.index()), o = s(), i = a(), l = {
|
|
416
351
|
currentType: 13,
|
|
417
352
|
offset: i,
|
|
418
353
|
startLoc: o,
|
|
@@ -428,8 +363,8 @@ function To(e, t = {}) {
|
|
|
428
363
|
function u(_, d, y, ...P) {
|
|
429
364
|
const z = c();
|
|
430
365
|
if (d.column += y, d.offset += y, f) {
|
|
431
|
-
const Z = n ? Rn(z.startLoc, d) : null, W =
|
|
432
|
-
domain:
|
|
366
|
+
const Z = n ? Rn(z.startLoc, d) : null, W = ft(_, Z, {
|
|
367
|
+
domain: yo,
|
|
433
368
|
args: P
|
|
434
369
|
});
|
|
435
370
|
f(W);
|
|
@@ -450,7 +385,7 @@ function To(e, t = {}) {
|
|
|
450
385
|
}
|
|
451
386
|
function E(_) {
|
|
452
387
|
let d = "";
|
|
453
|
-
for (; _.currentPeek() === Ce || _.currentPeek() ===
|
|
388
|
+
for (; _.currentPeek() === Ce || _.currentPeek() === ce; )
|
|
454
389
|
d += _.currentPeek(), _.peek();
|
|
455
390
|
return d;
|
|
456
391
|
}
|
|
@@ -526,7 +461,7 @@ function To(e, t = {}) {
|
|
|
526
461
|
return !1;
|
|
527
462
|
const P = () => {
|
|
528
463
|
const Z = _.currentPeek();
|
|
529
|
-
return Z === "{" ? h(_.peek()) : Z === "@" || Z === "|" || Z === ":" || Z === "." || Z === Ce || !Z ? !1 : Z ===
|
|
464
|
+
return Z === "{" ? h(_.peek()) : Z === "@" || Z === "|" || Z === ":" || Z === "." || Z === Ce || !Z ? !1 : Z === ce ? (_.peek(), P()) : Se(_, !1);
|
|
530
465
|
}, z = P();
|
|
531
466
|
return _.resetPeek(), z;
|
|
532
467
|
}
|
|
@@ -538,7 +473,7 @@ function To(e, t = {}) {
|
|
|
538
473
|
function Se(_, d = !0) {
|
|
539
474
|
const y = (z = !1, Z = "") => {
|
|
540
475
|
const W = _.currentPeek();
|
|
541
|
-
return W === "{" || W === "@" || !W ? z : W === "|" ? !(Z === Ce || Z ===
|
|
476
|
+
return W === "{" || W === "@" || !W ? z : W === "|" ? !(Z === Ce || Z === ce) : W === Ce ? (_.peek(), y(!0, Ce)) : W === ce ? (_.peek(), y(!0, ce)) : !0;
|
|
542
477
|
}, P = y();
|
|
543
478
|
return d && _.resetPeek(), P;
|
|
544
479
|
}
|
|
@@ -546,7 +481,7 @@ function To(e, t = {}) {
|
|
|
546
481
|
const y = _.currentChar();
|
|
547
482
|
return y === Pe ? Pe : d(y) ? (_.next(), y) : null;
|
|
548
483
|
}
|
|
549
|
-
function
|
|
484
|
+
function Ze(_) {
|
|
550
485
|
const d = _.charCodeAt(0);
|
|
551
486
|
return d >= 97 && d <= 122 || // a-z
|
|
552
487
|
d >= 65 && d <= 90 || // A-Z
|
|
@@ -555,7 +490,7 @@ function To(e, t = {}) {
|
|
|
555
490
|
d === 36;
|
|
556
491
|
}
|
|
557
492
|
function rn(_) {
|
|
558
|
-
return oe(_,
|
|
493
|
+
return oe(_, Ze);
|
|
559
494
|
}
|
|
560
495
|
function an(_) {
|
|
561
496
|
const d = _.charCodeAt(0);
|
|
@@ -585,7 +520,7 @@ function To(e, t = {}) {
|
|
|
585
520
|
function Ie(_) {
|
|
586
521
|
return oe(_, cn);
|
|
587
522
|
}
|
|
588
|
-
function
|
|
523
|
+
function _t(_) {
|
|
589
524
|
let d = "", y = "";
|
|
590
525
|
for (; d = ln(_); )
|
|
591
526
|
y += d;
|
|
@@ -597,7 +532,7 @@ function To(e, t = {}) {
|
|
|
597
532
|
const y = _.currentChar();
|
|
598
533
|
if (y === "{" || y === "}" || y === "@" || y === "|" || !y)
|
|
599
534
|
break;
|
|
600
|
-
if (y === Ce || y ===
|
|
535
|
+
if (y === Ce || y === ce)
|
|
601
536
|
if (Se(_))
|
|
602
537
|
d += y, _.next();
|
|
603
538
|
else {
|
|
@@ -620,10 +555,10 @@ function To(e, t = {}) {
|
|
|
620
555
|
function _n(_) {
|
|
621
556
|
C(_);
|
|
622
557
|
let d = "";
|
|
623
|
-
return _.currentChar() === "-" ? (_.next(), d += `-${
|
|
558
|
+
return _.currentChar() === "-" ? (_.next(), d += `-${_t(_)}`) : d += _t(_), _.currentChar() === Pe && u(M.UNTERMINATED_CLOSING_BRACE, s(), 0), d;
|
|
624
559
|
}
|
|
625
560
|
function dn(_) {
|
|
626
|
-
return _ !== Or && _ !==
|
|
561
|
+
return _ !== Or && _ !== ce;
|
|
627
562
|
}
|
|
628
563
|
function br(_) {
|
|
629
564
|
C(_), A(_, "'");
|
|
@@ -631,7 +566,7 @@ function To(e, t = {}) {
|
|
|
631
566
|
for (; d = oe(_, dn); )
|
|
632
567
|
d === "\\" ? y += mn(_) : y += d;
|
|
633
568
|
const P = _.currentChar();
|
|
634
|
-
return P ===
|
|
569
|
+
return P === ce || P === Pe ? (u(M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, s(), 0), P === ce && (_.next(), A(_, "'")), y) : (A(_, "'"), y);
|
|
635
570
|
}
|
|
636
571
|
function mn(_) {
|
|
637
572
|
const d = _.currentChar();
|
|
@@ -661,7 +596,7 @@ function To(e, t = {}) {
|
|
|
661
596
|
return `\\${d}${P}`;
|
|
662
597
|
}
|
|
663
598
|
function hn(_) {
|
|
664
|
-
return _ !== "{" && _ !== "}" && _ !== Ce && _ !==
|
|
599
|
+
return _ !== "{" && _ !== "}" && _ !== Ce && _ !== ce;
|
|
665
600
|
}
|
|
666
601
|
function gn(_) {
|
|
667
602
|
C(_);
|
|
@@ -683,7 +618,7 @@ function To(e, t = {}) {
|
|
|
683
618
|
};
|
|
684
619
|
return d("");
|
|
685
620
|
}
|
|
686
|
-
function
|
|
621
|
+
function dt(_) {
|
|
687
622
|
C(_);
|
|
688
623
|
const d = A(
|
|
689
624
|
_,
|
|
@@ -692,7 +627,7 @@ function To(e, t = {}) {
|
|
|
692
627
|
);
|
|
693
628
|
return C(_), d;
|
|
694
629
|
}
|
|
695
|
-
function
|
|
630
|
+
function mt(_, d) {
|
|
696
631
|
let y = null;
|
|
697
632
|
switch (_.currentChar()) {
|
|
698
633
|
case "{":
|
|
@@ -710,13 +645,13 @@ function To(e, t = {}) {
|
|
|
710
645
|
/* TokenChars.BraceRight */
|
|
711
646
|
), d.braceNest--, d.braceNest > 0 && C(_), d.inLinked && d.braceNest === 0 && (d.inLinked = !1), y;
|
|
712
647
|
case "@":
|
|
713
|
-
return d.braceNest > 0 && u(M.UNTERMINATED_CLOSING_BRACE, s(), 0), y =
|
|
648
|
+
return d.braceNest > 0 && u(M.UNTERMINATED_CLOSING_BRACE, s(), 0), y = $e(_, d) || p(d), d.braceNest = 0, y;
|
|
714
649
|
default: {
|
|
715
650
|
let z = !0, Z = !0, W = !0;
|
|
716
651
|
if (se(_))
|
|
717
|
-
return d.braceNest > 0 && u(M.UNTERMINATED_CLOSING_BRACE, s(), 0), y = m(d, 1,
|
|
652
|
+
return d.braceNest > 0 && u(M.UNTERMINATED_CLOSING_BRACE, s(), 0), y = m(d, 1, dt(_)), d.braceNest = 0, d.inLinked = !1, y;
|
|
718
653
|
if (d.braceNest > 0 && (d.currentType === 4 || d.currentType === 5 || d.currentType === 6))
|
|
719
|
-
return u(M.UNTERMINATED_CLOSING_BRACE, s(), 0), d.braceNest = 0,
|
|
654
|
+
return u(M.UNTERMINATED_CLOSING_BRACE, s(), 0), d.braceNest = 0, ht(_, d);
|
|
720
655
|
if (z = N(_, d))
|
|
721
656
|
return y = m(d, 4, fn(_)), C(_), y;
|
|
722
657
|
if (Z = S(_, d))
|
|
@@ -730,11 +665,11 @@ function To(e, t = {}) {
|
|
|
730
665
|
}
|
|
731
666
|
return y;
|
|
732
667
|
}
|
|
733
|
-
function
|
|
668
|
+
function $e(_, d) {
|
|
734
669
|
const { currentType: y } = d;
|
|
735
670
|
let P = null;
|
|
736
671
|
const z = _.currentChar();
|
|
737
|
-
switch ((y === 7 || y === 8 || y === 11 || y === 9) && (z ===
|
|
672
|
+
switch ((y === 7 || y === 8 || y === 11 || y === 9) && (z === ce || z === Ce) && u(M.INVALID_LINKED_FORMAT, s(), 0), z) {
|
|
738
673
|
case "@":
|
|
739
674
|
return _.next(), P = m(
|
|
740
675
|
d,
|
|
@@ -757,21 +692,21 @@ function To(e, t = {}) {
|
|
|
757
692
|
/* TokenChars.LinkedDelimiter */
|
|
758
693
|
);
|
|
759
694
|
default:
|
|
760
|
-
return se(_) ? (P = m(d, 1,
|
|
695
|
+
return se(_) ? (P = m(d, 1, dt(_)), d.braceNest = 0, d.inLinked = !1, P) : L(_, d) || x(_, d) ? (C(_), $e(_, d)) : v(_, d) ? (C(_), m(d, 11, pn(_))) : Y(_, d) ? (C(_), z === "{" ? mt(_, d) || P : m(d, 10, En(_))) : (y === 7 && u(M.INVALID_LINKED_FORMAT, s(), 0), d.braceNest = 0, d.inLinked = !1, ht(_, d));
|
|
761
696
|
}
|
|
762
697
|
}
|
|
763
|
-
function
|
|
698
|
+
function ht(_, d) {
|
|
764
699
|
let y = {
|
|
765
700
|
type: 13
|
|
766
701
|
/* TokenTypes.EOF */
|
|
767
702
|
};
|
|
768
703
|
if (d.braceNest > 0)
|
|
769
|
-
return
|
|
704
|
+
return mt(_, d) || p(d);
|
|
770
705
|
if (d.inLinked)
|
|
771
|
-
return
|
|
706
|
+
return $e(_, d) || p(d);
|
|
772
707
|
switch (_.currentChar()) {
|
|
773
708
|
case "{":
|
|
774
|
-
return
|
|
709
|
+
return mt(_, d) || p(d);
|
|
775
710
|
case "}":
|
|
776
711
|
return u(M.UNBALANCED_CLOSING_BRACE, s(), 0), _.next(), m(
|
|
777
712
|
d,
|
|
@@ -780,10 +715,10 @@ function To(e, t = {}) {
|
|
|
780
715
|
/* TokenChars.BraceRight */
|
|
781
716
|
);
|
|
782
717
|
case "@":
|
|
783
|
-
return
|
|
718
|
+
return $e(_, d) || p(d);
|
|
784
719
|
default: {
|
|
785
720
|
if (se(_))
|
|
786
|
-
return y = m(d, 1,
|
|
721
|
+
return y = m(d, 1, dt(_)), d.braceNest = 0, d.inLinked = !1, y;
|
|
787
722
|
if (Se(_))
|
|
788
723
|
return m(d, 0, un(_));
|
|
789
724
|
break;
|
|
@@ -797,7 +732,7 @@ function To(e, t = {}) {
|
|
|
797
732
|
l,
|
|
798
733
|
13
|
|
799
734
|
/* TokenTypes.EOF */
|
|
800
|
-
) :
|
|
735
|
+
) : ht(r, l);
|
|
801
736
|
}
|
|
802
737
|
return {
|
|
803
738
|
nextToken: bn,
|
|
@@ -806,8 +741,8 @@ function To(e, t = {}) {
|
|
|
806
741
|
context: c
|
|
807
742
|
};
|
|
808
743
|
}
|
|
809
|
-
const
|
|
810
|
-
function
|
|
744
|
+
const To = "parser", Oo = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
745
|
+
function Io(e, t, n) {
|
|
811
746
|
switch (e) {
|
|
812
747
|
case "\\\\":
|
|
813
748
|
return "\\";
|
|
@@ -820,13 +755,13 @@ function Co(e, t, n) {
|
|
|
820
755
|
}
|
|
821
756
|
}
|
|
822
757
|
}
|
|
823
|
-
function
|
|
758
|
+
function Co(e = {}) {
|
|
824
759
|
const t = e.location !== !1, { onError: n } = e;
|
|
825
760
|
function r(h, g, N, S, ...O) {
|
|
826
761
|
const L = h.currentPosition();
|
|
827
762
|
if (L.offset += S, L.column += S, n) {
|
|
828
|
-
const v = t ? Rn(N, L) : null, x =
|
|
829
|
-
domain:
|
|
763
|
+
const v = t ? Rn(N, L) : null, x = ft(g, v, {
|
|
764
|
+
domain: To,
|
|
830
765
|
args: O
|
|
831
766
|
});
|
|
832
767
|
n(x);
|
|
@@ -853,7 +788,7 @@ function Lo(e = {}) {
|
|
|
853
788
|
}
|
|
854
789
|
function c(h, g) {
|
|
855
790
|
const N = h.context(), { lastOffset: S, lastStartLoc: O } = N, L = a(9, S, O);
|
|
856
|
-
return L.value = g.replace(
|
|
791
|
+
return L.value = g.replace(Oo, Io), h.nextToken(), s(L, h.currentOffset(), h.currentPosition()), L;
|
|
857
792
|
}
|
|
858
793
|
function f(h) {
|
|
859
794
|
const g = h.nextToken(), N = h.context(), { lastOffset: S, lastStartLoc: O } = N, L = a(8, S, O);
|
|
@@ -946,7 +881,7 @@ function Lo(e = {}) {
|
|
|
946
881
|
return g.currentType === 13 ? O : A(h, N, S, O);
|
|
947
882
|
}
|
|
948
883
|
function C(h) {
|
|
949
|
-
const g =
|
|
884
|
+
const g = No(h, ie({}, e)), N = g.context(), S = a(0, N.offset, N.startLoc);
|
|
950
885
|
return t && S.loc && (S.loc.source = h), S.body = E(g), e.onCacheKey && (S.cacheKey = e.onCacheKey(h)), N.currentType !== 13 && r(g, M.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, h[N.offset] || ""), s(S, g.currentOffset(), g.currentPosition()), S;
|
|
951
886
|
}
|
|
952
887
|
return { parse: C };
|
|
@@ -957,7 +892,7 @@ function ye(e) {
|
|
|
957
892
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
958
893
|
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
959
894
|
}
|
|
960
|
-
function
|
|
895
|
+
function Lo(e, t = {}) {
|
|
961
896
|
const n = {
|
|
962
897
|
ast: e,
|
|
963
898
|
helpers: /* @__PURE__ */ new Set()
|
|
@@ -1009,8 +944,8 @@ function nr(e, t) {
|
|
|
1009
944
|
break;
|
|
1010
945
|
}
|
|
1011
946
|
}
|
|
1012
|
-
function
|
|
1013
|
-
const n =
|
|
947
|
+
function wo(e, t = {}) {
|
|
948
|
+
const n = Lo(e);
|
|
1014
949
|
n.helper(
|
|
1015
950
|
"normalize"
|
|
1016
951
|
/* HelperNameMap.NORMALIZE */
|
|
@@ -1018,7 +953,7 @@ function Do(e, t = {}) {
|
|
|
1018
953
|
const r = n.context();
|
|
1019
954
|
e.helpers = Array.from(r.helpers);
|
|
1020
955
|
}
|
|
1021
|
-
function
|
|
956
|
+
function Do(e) {
|
|
1022
957
|
const t = e.body;
|
|
1023
958
|
return t.type === 2 ? Cr(t) : t.cases.forEach((n) => Cr(n)), e;
|
|
1024
959
|
}
|
|
@@ -1043,25 +978,25 @@ function Cr(e) {
|
|
|
1043
978
|
}
|
|
1044
979
|
}
|
|
1045
980
|
}
|
|
1046
|
-
const
|
|
1047
|
-
function
|
|
981
|
+
const Ro = "minifier";
|
|
982
|
+
function st(e) {
|
|
1048
983
|
switch (e.t = e.type, e.type) {
|
|
1049
984
|
case 0: {
|
|
1050
985
|
const t = e;
|
|
1051
|
-
|
|
986
|
+
st(t.body), t.b = t.body, delete t.body;
|
|
1052
987
|
break;
|
|
1053
988
|
}
|
|
1054
989
|
case 1: {
|
|
1055
990
|
const t = e, n = t.cases;
|
|
1056
991
|
for (let r = 0; r < n.length; r++)
|
|
1057
|
-
|
|
992
|
+
st(n[r]);
|
|
1058
993
|
t.c = n, delete t.cases;
|
|
1059
994
|
break;
|
|
1060
995
|
}
|
|
1061
996
|
case 2: {
|
|
1062
997
|
const t = e, n = t.items;
|
|
1063
998
|
for (let r = 0; r < n.length; r++)
|
|
1064
|
-
|
|
999
|
+
st(n[r]);
|
|
1065
1000
|
t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
|
|
1066
1001
|
break;
|
|
1067
1002
|
}
|
|
@@ -1075,7 +1010,7 @@ function ot(e) {
|
|
|
1075
1010
|
}
|
|
1076
1011
|
case 6: {
|
|
1077
1012
|
const t = e;
|
|
1078
|
-
|
|
1013
|
+
st(t.key), t.k = t.key, delete t.key, t.modifier && (st(t.modifier), t.m = t.modifier, delete t.modifier);
|
|
1079
1014
|
break;
|
|
1080
1015
|
}
|
|
1081
1016
|
case 5: {
|
|
@@ -1090,15 +1025,15 @@ function ot(e) {
|
|
|
1090
1025
|
}
|
|
1091
1026
|
default:
|
|
1092
1027
|
if (process.env.NODE_ENV !== "production")
|
|
1093
|
-
throw
|
|
1094
|
-
domain:
|
|
1028
|
+
throw ft(M.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
1029
|
+
domain: Ro,
|
|
1095
1030
|
args: [e.type]
|
|
1096
1031
|
});
|
|
1097
1032
|
}
|
|
1098
1033
|
delete e.type;
|
|
1099
1034
|
}
|
|
1100
|
-
const
|
|
1101
|
-
function
|
|
1035
|
+
const Po = "parser";
|
|
1036
|
+
function ko(e, t) {
|
|
1102
1037
|
const { filename: n, breakLineCode: r, needIndent: a } = t, s = t.location !== !1, o = {
|
|
1103
1038
|
filename: n,
|
|
1104
1039
|
code: "",
|
|
@@ -1140,25 +1075,25 @@ function Fo(e, t) {
|
|
|
1140
1075
|
needIndent: () => o.needIndent
|
|
1141
1076
|
};
|
|
1142
1077
|
}
|
|
1143
|
-
function
|
|
1078
|
+
function Fo(e, t) {
|
|
1144
1079
|
const { helper: n } = e;
|
|
1145
1080
|
e.push(`${n(
|
|
1146
1081
|
"linked"
|
|
1147
1082
|
/* HelperNameMap.LINKED */
|
|
1148
|
-
)}(`),
|
|
1083
|
+
)}(`), ct(e, t.key), t.modifier ? (e.push(", "), ct(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
1149
1084
|
}
|
|
1150
|
-
function
|
|
1085
|
+
function Mo(e, t) {
|
|
1151
1086
|
const { helper: n, needIndent: r } = e;
|
|
1152
1087
|
e.push(`${n(
|
|
1153
1088
|
"normalize"
|
|
1154
1089
|
/* HelperNameMap.NORMALIZE */
|
|
1155
1090
|
)}([`), e.indent(r());
|
|
1156
1091
|
const a = t.items.length;
|
|
1157
|
-
for (let s = 0; s < a && (
|
|
1092
|
+
for (let s = 0; s < a && (ct(e, t.items[s]), s !== a - 1); s++)
|
|
1158
1093
|
e.push(", ");
|
|
1159
1094
|
e.deindent(r()), e.push("])");
|
|
1160
1095
|
}
|
|
1161
|
-
function
|
|
1096
|
+
function Uo(e, t) {
|
|
1162
1097
|
const { helper: n, needIndent: r } = e;
|
|
1163
1098
|
if (t.cases.length > 1) {
|
|
1164
1099
|
e.push(`${n(
|
|
@@ -1166,28 +1101,28 @@ function Bo(e, t) {
|
|
|
1166
1101
|
/* HelperNameMap.PLURAL */
|
|
1167
1102
|
)}([`), e.indent(r());
|
|
1168
1103
|
const a = t.cases.length;
|
|
1169
|
-
for (let s = 0; s < a && (
|
|
1104
|
+
for (let s = 0; s < a && (ct(e, t.cases[s]), s !== a - 1); s++)
|
|
1170
1105
|
e.push(", ");
|
|
1171
1106
|
e.deindent(r()), e.push("])");
|
|
1172
1107
|
}
|
|
1173
1108
|
}
|
|
1174
|
-
function
|
|
1175
|
-
t.body ?
|
|
1109
|
+
function Bo(e, t) {
|
|
1110
|
+
t.body ? ct(e, t.body) : e.push("null");
|
|
1176
1111
|
}
|
|
1177
|
-
function
|
|
1112
|
+
function ct(e, t) {
|
|
1178
1113
|
const { helper: n } = e;
|
|
1179
1114
|
switch (t.type) {
|
|
1180
1115
|
case 0:
|
|
1181
|
-
|
|
1116
|
+
Bo(e, t);
|
|
1182
1117
|
break;
|
|
1183
1118
|
case 1:
|
|
1184
|
-
|
|
1119
|
+
Uo(e, t);
|
|
1185
1120
|
break;
|
|
1186
1121
|
case 2:
|
|
1187
|
-
|
|
1122
|
+
Mo(e, t);
|
|
1188
1123
|
break;
|
|
1189
1124
|
case 6:
|
|
1190
|
-
|
|
1125
|
+
Fo(e, t);
|
|
1191
1126
|
break;
|
|
1192
1127
|
case 8:
|
|
1193
1128
|
e.push(JSON.stringify(t.value), t);
|
|
@@ -1221,22 +1156,22 @@ function ut(e, t) {
|
|
|
1221
1156
|
break;
|
|
1222
1157
|
default:
|
|
1223
1158
|
if (process.env.NODE_ENV !== "production")
|
|
1224
|
-
throw
|
|
1225
|
-
domain:
|
|
1159
|
+
throw ft(M.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
1160
|
+
domain: Po,
|
|
1226
1161
|
args: [t.type]
|
|
1227
1162
|
});
|
|
1228
1163
|
}
|
|
1229
1164
|
}
|
|
1230
|
-
const
|
|
1165
|
+
const xo = (e, t = {}) => {
|
|
1231
1166
|
const n = I(t.mode) ? t.mode : "normal", r = I(t.filename) ? t.filename : "message.intl";
|
|
1232
1167
|
t.sourceMap;
|
|
1233
1168
|
const a = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
1234
|
-
`, s = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], i =
|
|
1169
|
+
`, s = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], i = ko(e, {
|
|
1235
1170
|
filename: r,
|
|
1236
1171
|
breakLineCode: a,
|
|
1237
1172
|
needIndent: s
|
|
1238
1173
|
});
|
|
1239
|
-
i.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), i.indent(s), o.length > 0 && (i.push(`const { ${Zn(o.map((f) => `${f}: _${f}`), ", ")} } = ctx`), i.newline()), i.push("return "),
|
|
1174
|
+
i.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), i.indent(s), o.length > 0 && (i.push(`const { ${Zn(o.map((f) => `${f}: _${f}`), ", ")} } = ctx`), i.newline()), i.push("return "), ct(i, e), i.deindent(s), i.push("}"), delete e.helpers;
|
|
1240
1175
|
const { code: l, map: c } = i.context();
|
|
1241
1176
|
return {
|
|
1242
1177
|
ast: e,
|
|
@@ -1245,55 +1180,55 @@ const Vo = (e, t = {}) => {
|
|
|
1245
1180
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1246
1181
|
};
|
|
1247
1182
|
};
|
|
1248
|
-
function
|
|
1249
|
-
const n = ie({}, t), r = !!n.jit, a = !!n.minify, s = n.optimize == null ? !0 : n.optimize, i =
|
|
1250
|
-
return r ? (s &&
|
|
1183
|
+
function Vo(e, t = {}) {
|
|
1184
|
+
const n = ie({}, t), r = !!n.jit, a = !!n.minify, s = n.optimize == null ? !0 : n.optimize, i = Co(n).parse(e);
|
|
1185
|
+
return r ? (s && Do(i), a && st(i), { ast: i, code: "" }) : (wo(i, n), xo(i, n));
|
|
1251
1186
|
}
|
|
1252
1187
|
/*!
|
|
1253
1188
|
* core-base v11.1.3
|
|
1254
1189
|
* (c) 2025 kazuya kawaguchi
|
|
1255
1190
|
* Released under the MIT License.
|
|
1256
1191
|
*/
|
|
1257
|
-
function
|
|
1258
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (
|
|
1192
|
+
function Go() {
|
|
1193
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (je().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (je().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
1259
1194
|
}
|
|
1260
1195
|
function Ee(e) {
|
|
1261
1196
|
return G(e) && rr(e) === 0 && (ve(e, "b") || ve(e, "body"));
|
|
1262
1197
|
}
|
|
1263
|
-
const
|
|
1198
|
+
const Oa = ["b", "body"];
|
|
1199
|
+
function $o(e) {
|
|
1200
|
+
return xe(e, Oa);
|
|
1201
|
+
}
|
|
1202
|
+
const Ia = ["c", "cases"];
|
|
1264
1203
|
function Wo(e) {
|
|
1265
|
-
return
|
|
1204
|
+
return xe(e, Ia, []);
|
|
1266
1205
|
}
|
|
1267
|
-
const
|
|
1206
|
+
const Ca = ["s", "static"];
|
|
1268
1207
|
function Yo(e) {
|
|
1269
|
-
return
|
|
1208
|
+
return xe(e, Ca);
|
|
1270
1209
|
}
|
|
1271
|
-
const
|
|
1210
|
+
const La = ["i", "items"];
|
|
1272
1211
|
function Ho(e) {
|
|
1273
|
-
return
|
|
1274
|
-
}
|
|
1275
|
-
const Da = ["i", "items"];
|
|
1276
|
-
function Ko(e) {
|
|
1277
|
-
return Ve(e, Da, []);
|
|
1212
|
+
return xe(e, La, []);
|
|
1278
1213
|
}
|
|
1279
|
-
const
|
|
1214
|
+
const wa = ["t", "type"];
|
|
1280
1215
|
function rr(e) {
|
|
1281
|
-
return
|
|
1216
|
+
return xe(e, wa);
|
|
1282
1217
|
}
|
|
1283
|
-
const
|
|
1218
|
+
const Da = ["v", "value"];
|
|
1284
1219
|
function xt(e, t) {
|
|
1285
|
-
const n =
|
|
1220
|
+
const n = xe(e, Da);
|
|
1286
1221
|
if (n != null)
|
|
1287
1222
|
return n;
|
|
1288
1223
|
throw Ot(t);
|
|
1289
1224
|
}
|
|
1290
|
-
const
|
|
1291
|
-
function
|
|
1292
|
-
return
|
|
1225
|
+
const Ra = ["m", "modifier"];
|
|
1226
|
+
function Ko(e) {
|
|
1227
|
+
return xe(e, Ra);
|
|
1293
1228
|
}
|
|
1294
|
-
const
|
|
1295
|
-
function
|
|
1296
|
-
const t =
|
|
1229
|
+
const Pa = ["k", "key"];
|
|
1230
|
+
function jo(e) {
|
|
1231
|
+
const t = xe(e, Pa);
|
|
1297
1232
|
if (t)
|
|
1298
1233
|
return t;
|
|
1299
1234
|
throw Ot(
|
|
@@ -1301,7 +1236,7 @@ function qo(e) {
|
|
|
1301
1236
|
/* NodeTypes.Linked */
|
|
1302
1237
|
);
|
|
1303
1238
|
}
|
|
1304
|
-
function
|
|
1239
|
+
function xe(e, t, n) {
|
|
1305
1240
|
for (let r = 0; r < t.length; r++) {
|
|
1306
1241
|
const a = t[r];
|
|
1307
1242
|
if (ve(e, a) && e[a] != null)
|
|
@@ -1309,31 +1244,31 @@ function Ve(e, t, n) {
|
|
|
1309
1244
|
}
|
|
1310
1245
|
return n;
|
|
1311
1246
|
}
|
|
1312
|
-
const
|
|
1247
|
+
const ka = [
|
|
1248
|
+
...Oa,
|
|
1249
|
+
...Ia,
|
|
1313
1250
|
...Ca,
|
|
1314
1251
|
...La,
|
|
1315
|
-
...wa,
|
|
1316
|
-
...Da,
|
|
1317
|
-
...Fa,
|
|
1318
|
-
...ka,
|
|
1319
1252
|
...Pa,
|
|
1320
|
-
...Ra
|
|
1253
|
+
...Ra,
|
|
1254
|
+
...Da,
|
|
1255
|
+
...wa
|
|
1321
1256
|
];
|
|
1322
1257
|
function Ot(e) {
|
|
1323
1258
|
return new Error(`unhandled node type: ${e}`);
|
|
1324
1259
|
}
|
|
1325
1260
|
function Sn(e) {
|
|
1326
|
-
return (n) =>
|
|
1261
|
+
return (n) => qo(n, e);
|
|
1327
1262
|
}
|
|
1328
|
-
function
|
|
1329
|
-
const n =
|
|
1263
|
+
function qo(e, t) {
|
|
1264
|
+
const n = $o(t);
|
|
1330
1265
|
if (n == null)
|
|
1331
1266
|
throw Ot(
|
|
1332
1267
|
0
|
|
1333
1268
|
/* NodeTypes.Resource */
|
|
1334
1269
|
);
|
|
1335
1270
|
if (rr(n) === 1) {
|
|
1336
|
-
const s =
|
|
1271
|
+
const s = Wo(n);
|
|
1337
1272
|
return e.plural(s.reduce((o, i) => [
|
|
1338
1273
|
...o,
|
|
1339
1274
|
Lr(e, i)
|
|
@@ -1342,11 +1277,11 @@ function Xo(e, t) {
|
|
|
1342
1277
|
return Lr(e, n);
|
|
1343
1278
|
}
|
|
1344
1279
|
function Lr(e, t) {
|
|
1345
|
-
const n =
|
|
1280
|
+
const n = Yo(t);
|
|
1346
1281
|
if (n != null)
|
|
1347
1282
|
return e.type === "text" ? n : e.normalize([n]);
|
|
1348
1283
|
{
|
|
1349
|
-
const r =
|
|
1284
|
+
const r = Ho(t).reduce((a, s) => [...a, Pn(e, s)], []);
|
|
1350
1285
|
return e.normalize(r);
|
|
1351
1286
|
}
|
|
1352
1287
|
}
|
|
@@ -1374,7 +1309,7 @@ function Pn(e, t) {
|
|
|
1374
1309
|
throw Ot(n);
|
|
1375
1310
|
}
|
|
1376
1311
|
case 6: {
|
|
1377
|
-
const r = t, a =
|
|
1312
|
+
const r = t, a = Ko(r), s = jo(r);
|
|
1378
1313
|
return e.linked(Pn(e, s), a ? Pn(e, a) : void 0, e.type);
|
|
1379
1314
|
}
|
|
1380
1315
|
case 7:
|
|
@@ -1385,28 +1320,28 @@ function Pn(e, t) {
|
|
|
1385
1320
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1386
1321
|
}
|
|
1387
1322
|
}
|
|
1388
|
-
const
|
|
1389
|
-
function
|
|
1390
|
-
t &&
|
|
1323
|
+
const Xo = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
1324
|
+
function Qo(e, t) {
|
|
1325
|
+
t && po(e) && (Xt(Xo, { source: e }), void 0);
|
|
1391
1326
|
}
|
|
1392
|
-
const
|
|
1327
|
+
const Jo = (e) => e;
|
|
1393
1328
|
let Vt = K();
|
|
1394
|
-
function
|
|
1329
|
+
function zo(e, t = {}) {
|
|
1395
1330
|
let n = !1;
|
|
1396
|
-
const r = t.onError ||
|
|
1331
|
+
const r = t.onError || ho;
|
|
1397
1332
|
return t.onError = (a) => {
|
|
1398
1333
|
n = !0, r(a);
|
|
1399
|
-
}, { ...
|
|
1334
|
+
}, { ...Vo(e, t), detectError: n };
|
|
1400
1335
|
}
|
|
1401
1336
|
// @__NO_SIDE_EFFECTS__
|
|
1402
|
-
function
|
|
1337
|
+
function Zo(e, t) {
|
|
1403
1338
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && I(e)) {
|
|
1404
1339
|
const n = $(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
1405
|
-
process.env.NODE_ENV !== "production" &&
|
|
1406
|
-
const a = (t.onCacheKey ||
|
|
1340
|
+
process.env.NODE_ENV !== "production" && Qo(e, n);
|
|
1341
|
+
const a = (t.onCacheKey || Jo)(e), s = Vt[a];
|
|
1407
1342
|
if (s)
|
|
1408
1343
|
return s;
|
|
1409
|
-
const { ast: o, detectError: i } =
|
|
1344
|
+
const { ast: o, detectError: i } = zo(e, {
|
|
1410
1345
|
...t,
|
|
1411
1346
|
location: process.env.NODE_ENV !== "production",
|
|
1412
1347
|
jit: !0
|
|
@@ -1414,7 +1349,7 @@ function ei(e, t) {
|
|
|
1414
1349
|
return i ? l : Vt[a] = l;
|
|
1415
1350
|
} else {
|
|
1416
1351
|
if (process.env.NODE_ENV !== "production" && !Ee(e))
|
|
1417
|
-
return
|
|
1352
|
+
return `${t.key}`, () => e;
|
|
1418
1353
|
const n = e.cacheKey;
|
|
1419
1354
|
if (n) {
|
|
1420
1355
|
const r = Vt[n];
|
|
@@ -1424,10 +1359,10 @@ function ei(e, t) {
|
|
|
1424
1359
|
}
|
|
1425
1360
|
}
|
|
1426
1361
|
let It = null;
|
|
1427
|
-
function
|
|
1362
|
+
function ei(e) {
|
|
1428
1363
|
It = e;
|
|
1429
1364
|
}
|
|
1430
|
-
function
|
|
1365
|
+
function ti(e, t, n) {
|
|
1431
1366
|
It && It.emit("i18n:init", {
|
|
1432
1367
|
timestamp: Date.now(),
|
|
1433
1368
|
i18n: e,
|
|
@@ -1435,12 +1370,12 @@ function ni(e, t, n) {
|
|
|
1435
1370
|
meta: n
|
|
1436
1371
|
});
|
|
1437
1372
|
}
|
|
1438
|
-
const
|
|
1439
|
-
function
|
|
1373
|
+
const ni = /* @__PURE__ */ ri("function:translate");
|
|
1374
|
+
function ri(e) {
|
|
1440
1375
|
return (t) => It && It.emit(e, t);
|
|
1441
1376
|
}
|
|
1442
|
-
const
|
|
1443
|
-
INVALID_ARGUMENT:
|
|
1377
|
+
const le = {
|
|
1378
|
+
INVALID_ARGUMENT: _o,
|
|
1444
1379
|
// 17
|
|
1445
1380
|
INVALID_DATE_ARGUMENT: 18,
|
|
1446
1381
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1448,18 +1383,18 @@ const ce = {
|
|
|
1448
1383
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1449
1384
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1450
1385
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1451
|
-
},
|
|
1386
|
+
}, ai = 24;
|
|
1452
1387
|
function Le(e) {
|
|
1453
|
-
return
|
|
1454
|
-
}
|
|
1455
|
-
const
|
|
1456
|
-
[
|
|
1457
|
-
[
|
|
1458
|
-
[
|
|
1459
|
-
[
|
|
1460
|
-
[
|
|
1461
|
-
[
|
|
1462
|
-
[
|
|
1388
|
+
return ft(e, null, process.env.NODE_ENV !== "production" ? { messages: si } : void 0);
|
|
1389
|
+
}
|
|
1390
|
+
const si = {
|
|
1391
|
+
[le.INVALID_ARGUMENT]: "Invalid arguments",
|
|
1392
|
+
[le.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
1393
|
+
[le.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
1394
|
+
[le.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
|
|
1395
|
+
[le.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
|
|
1396
|
+
[le.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
|
|
1397
|
+
[le.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
|
|
1463
1398
|
};
|
|
1464
1399
|
function ar(e, t) {
|
|
1465
1400
|
return t.locale != null ? wr(t.locale) : wr(e.locale);
|
|
@@ -1473,21 +1408,21 @@ function wr(e) {
|
|
|
1473
1408
|
return vn;
|
|
1474
1409
|
if (e.constructor.name === "Function") {
|
|
1475
1410
|
const t = e();
|
|
1476
|
-
if (
|
|
1477
|
-
throw Le(
|
|
1411
|
+
if (io(t))
|
|
1412
|
+
throw Le(le.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1478
1413
|
return vn = t;
|
|
1479
1414
|
} else
|
|
1480
|
-
throw Le(
|
|
1415
|
+
throw Le(le.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1481
1416
|
} else
|
|
1482
|
-
throw Le(
|
|
1417
|
+
throw Le(le.NOT_SUPPORT_LOCALE_TYPE);
|
|
1483
1418
|
}
|
|
1484
|
-
function
|
|
1419
|
+
function oi(e, t, n) {
|
|
1485
1420
|
return [.../* @__PURE__ */ new Set([
|
|
1486
1421
|
n,
|
|
1487
1422
|
...re(t) ? t : G(t) ? Object.keys(t) : I(t) ? [t] : [n]
|
|
1488
1423
|
])];
|
|
1489
1424
|
}
|
|
1490
|
-
function
|
|
1425
|
+
function Fa(e, t, n) {
|
|
1491
1426
|
const r = I(n) ? n : Ct, a = e;
|
|
1492
1427
|
a.__localeChainCache || (a.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1493
1428
|
let s = a.__localeChainCache.get(r);
|
|
@@ -1505,20 +1440,20 @@ function Dr(e, t, n) {
|
|
|
1505
1440
|
let r = !0;
|
|
1506
1441
|
for (let a = 0; a < t.length && $(r); a++) {
|
|
1507
1442
|
const s = t[a];
|
|
1508
|
-
I(s) && (r =
|
|
1443
|
+
I(s) && (r = ii(e, t[a], n));
|
|
1509
1444
|
}
|
|
1510
1445
|
return r;
|
|
1511
1446
|
}
|
|
1512
|
-
function
|
|
1447
|
+
function ii(e, t, n) {
|
|
1513
1448
|
let r;
|
|
1514
1449
|
const a = t.split("-");
|
|
1515
1450
|
do {
|
|
1516
1451
|
const s = a.join("-");
|
|
1517
|
-
r =
|
|
1452
|
+
r = li(e, s, n), a.splice(-1, 1);
|
|
1518
1453
|
} while (a.length && r === !0);
|
|
1519
1454
|
return r;
|
|
1520
1455
|
}
|
|
1521
|
-
function
|
|
1456
|
+
function li(e, t, n) {
|
|
1522
1457
|
let r = !1;
|
|
1523
1458
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1524
1459
|
r = t[t.length - 1] !== "!";
|
|
@@ -1527,8 +1462,8 @@ function ci(e, t, n) {
|
|
|
1527
1462
|
}
|
|
1528
1463
|
return r;
|
|
1529
1464
|
}
|
|
1530
|
-
const
|
|
1531
|
-
|
|
1465
|
+
const Ve = [];
|
|
1466
|
+
Ve[
|
|
1532
1467
|
0
|
|
1533
1468
|
/* States.BEFORE_PATH */
|
|
1534
1469
|
] = {
|
|
@@ -1550,7 +1485,7 @@ Ge[
|
|
|
1550
1485
|
/* States.AFTER_PATH */
|
|
1551
1486
|
]
|
|
1552
1487
|
};
|
|
1553
|
-
|
|
1488
|
+
Ve[
|
|
1554
1489
|
1
|
|
1555
1490
|
/* States.IN_PATH */
|
|
1556
1491
|
] = {
|
|
@@ -1571,7 +1506,7 @@ Ge[
|
|
|
1571
1506
|
/* States.AFTER_PATH */
|
|
1572
1507
|
]
|
|
1573
1508
|
};
|
|
1574
|
-
|
|
1509
|
+
Ve[
|
|
1575
1510
|
2
|
|
1576
1511
|
/* States.BEFORE_IDENT */
|
|
1577
1512
|
] = {
|
|
@@ -1590,7 +1525,7 @@ Ge[
|
|
|
1590
1525
|
/* Actions.APPEND */
|
|
1591
1526
|
]
|
|
1592
1527
|
};
|
|
1593
|
-
|
|
1528
|
+
Ve[
|
|
1594
1529
|
3
|
|
1595
1530
|
/* States.IN_IDENT */
|
|
1596
1531
|
] = {
|
|
@@ -1625,7 +1560,7 @@ Ge[
|
|
|
1625
1560
|
/* Actions.PUSH */
|
|
1626
1561
|
]
|
|
1627
1562
|
};
|
|
1628
|
-
|
|
1563
|
+
Ve[
|
|
1629
1564
|
4
|
|
1630
1565
|
/* States.IN_SUB_PATH */
|
|
1631
1566
|
] = {
|
|
@@ -1656,7 +1591,7 @@ Ge[
|
|
|
1656
1591
|
/* Actions.APPEND */
|
|
1657
1592
|
]
|
|
1658
1593
|
};
|
|
1659
|
-
|
|
1594
|
+
Ve[
|
|
1660
1595
|
5
|
|
1661
1596
|
/* States.IN_SINGLE_QUOTE */
|
|
1662
1597
|
] = {
|
|
@@ -1672,7 +1607,7 @@ Ge[
|
|
|
1672
1607
|
/* Actions.APPEND */
|
|
1673
1608
|
]
|
|
1674
1609
|
};
|
|
1675
|
-
|
|
1610
|
+
Ve[
|
|
1676
1611
|
6
|
|
1677
1612
|
/* States.IN_DOUBLE_QUOTE */
|
|
1678
1613
|
] = {
|
|
@@ -1688,15 +1623,15 @@ Ge[
|
|
|
1688
1623
|
/* Actions.APPEND */
|
|
1689
1624
|
]
|
|
1690
1625
|
};
|
|
1691
|
-
const
|
|
1692
|
-
function
|
|
1693
|
-
return
|
|
1626
|
+
const ci = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1627
|
+
function ui(e) {
|
|
1628
|
+
return ci.test(e);
|
|
1694
1629
|
}
|
|
1695
|
-
function
|
|
1630
|
+
function fi(e) {
|
|
1696
1631
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1697
1632
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1698
1633
|
}
|
|
1699
|
-
function
|
|
1634
|
+
function _i(e) {
|
|
1700
1635
|
if (e == null)
|
|
1701
1636
|
return "o";
|
|
1702
1637
|
switch (e.charCodeAt(0)) {
|
|
@@ -1733,11 +1668,11 @@ function di(e) {
|
|
|
1733
1668
|
}
|
|
1734
1669
|
return "i";
|
|
1735
1670
|
}
|
|
1736
|
-
function
|
|
1671
|
+
function di(e) {
|
|
1737
1672
|
const t = e.trim();
|
|
1738
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1673
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : ui(t) ? fi(t) : "*" + t;
|
|
1739
1674
|
}
|
|
1740
|
-
function
|
|
1675
|
+
function mi(e) {
|
|
1741
1676
|
const t = [];
|
|
1742
1677
|
let n = -1, r = 0, a = 0, s, o, i, l, c, f, u;
|
|
1743
1678
|
const m = [];
|
|
@@ -1769,7 +1704,7 @@ function hi(e) {
|
|
|
1769
1704
|
/* Actions.APPEND */
|
|
1770
1705
|
]();
|
|
1771
1706
|
else {
|
|
1772
|
-
if (a = 0, o === void 0 || (o =
|
|
1707
|
+
if (a = 0, o === void 0 || (o = di(o), o === !1))
|
|
1773
1708
|
return !1;
|
|
1774
1709
|
m[
|
|
1775
1710
|
1
|
|
@@ -1787,27 +1722,27 @@ function hi(e) {
|
|
|
1787
1722
|
}
|
|
1788
1723
|
for (; r !== null; )
|
|
1789
1724
|
if (n++, s = e[n], !(s === "\\" && p())) {
|
|
1790
|
-
if (l =
|
|
1725
|
+
if (l = _i(s), u = Ve[r], c = u[l] || u.l || 8, c === 8 || (r = c[0], c[1] !== void 0 && (f = m[c[1]], f && (i = s, f() === !1))))
|
|
1791
1726
|
return;
|
|
1792
1727
|
if (r === 7)
|
|
1793
1728
|
return t;
|
|
1794
1729
|
}
|
|
1795
1730
|
}
|
|
1796
1731
|
const Rr = /* @__PURE__ */ new Map();
|
|
1797
|
-
function
|
|
1732
|
+
function hi(e, t) {
|
|
1798
1733
|
return G(e) ? e[t] : null;
|
|
1799
1734
|
}
|
|
1800
|
-
function
|
|
1735
|
+
function gi(e, t) {
|
|
1801
1736
|
if (!G(e))
|
|
1802
1737
|
return null;
|
|
1803
1738
|
let n = Rr.get(t);
|
|
1804
|
-
if (n || (n =
|
|
1739
|
+
if (n || (n = mi(t), n && Rr.set(t, n)), !n)
|
|
1805
1740
|
return null;
|
|
1806
1741
|
const r = n.length;
|
|
1807
1742
|
let a = e, s = 0;
|
|
1808
1743
|
for (; s < r; ) {
|
|
1809
1744
|
const o = n[s];
|
|
1810
|
-
if (
|
|
1745
|
+
if (ka.includes(o) && Ee(a))
|
|
1811
1746
|
return null;
|
|
1812
1747
|
const i = a[o];
|
|
1813
1748
|
if (i === void 0 || q(a))
|
|
@@ -1824,7 +1759,7 @@ const _e = {
|
|
|
1824
1759
|
CANNOT_FORMAT_DATE: 5,
|
|
1825
1760
|
FALLBACK_TO_DATE_FORMAT: 6,
|
|
1826
1761
|
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
|
|
1827
|
-
},
|
|
1762
|
+
}, pi = 8, Ei = {
|
|
1828
1763
|
[_e.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
1829
1764
|
[_e.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
1830
1765
|
[_e.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
@@ -1833,42 +1768,42 @@ const _e = {
|
|
|
1833
1768
|
[_e.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
|
|
1834
1769
|
[_e.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."
|
|
1835
1770
|
};
|
|
1836
|
-
function
|
|
1837
|
-
return Xt(
|
|
1771
|
+
function Je(e, ...t) {
|
|
1772
|
+
return Xt(Ei[e], ...t);
|
|
1838
1773
|
}
|
|
1839
|
-
const
|
|
1840
|
-
function
|
|
1774
|
+
const bi = "11.1.3", Jt = -1, Ct = "en-US", Ht = "", Pr = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1775
|
+
function Si() {
|
|
1841
1776
|
return {
|
|
1842
1777
|
upper: (e, t) => t === "text" && I(e) ? e.toUpperCase() : t === "vnode" && G(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1843
1778
|
lower: (e, t) => t === "text" && I(e) ? e.toLowerCase() : t === "vnode" && G(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1844
1779
|
capitalize: (e, t) => t === "text" && I(e) ? Pr(e) : t === "vnode" && G(e) && "__v_isVNode" in e ? Pr(e.children) : e
|
|
1845
1780
|
};
|
|
1846
1781
|
}
|
|
1847
|
-
let
|
|
1782
|
+
let Ma;
|
|
1783
|
+
function vi(e) {
|
|
1784
|
+
Ma = e;
|
|
1785
|
+
}
|
|
1786
|
+
let Ua;
|
|
1848
1787
|
function Ai(e) {
|
|
1849
|
-
|
|
1788
|
+
Ua = e;
|
|
1850
1789
|
}
|
|
1851
|
-
let
|
|
1790
|
+
let Ba;
|
|
1852
1791
|
function yi(e) {
|
|
1853
|
-
|
|
1854
|
-
}
|
|
1855
|
-
let Va;
|
|
1856
|
-
function Ni(e) {
|
|
1857
|
-
Va = e;
|
|
1792
|
+
Ba = e;
|
|
1858
1793
|
}
|
|
1859
|
-
let
|
|
1860
|
-
const
|
|
1861
|
-
|
|
1862
|
-
},
|
|
1863
|
-
let
|
|
1794
|
+
let xa = null;
|
|
1795
|
+
const Ni = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1796
|
+
xa = e;
|
|
1797
|
+
}, Ti = /* @__NO_SIDE_EFFECTS__ */ () => xa;
|
|
1798
|
+
let Va = null;
|
|
1864
1799
|
const kr = (e) => {
|
|
1865
|
-
|
|
1866
|
-
},
|
|
1800
|
+
Va = e;
|
|
1801
|
+
}, Oi = () => Va;
|
|
1867
1802
|
let Fr = 0;
|
|
1868
|
-
function
|
|
1869
|
-
const t = q(e.onWarn) ? e.onWarn :
|
|
1870
|
-
process.env.NODE_ENV !== "production" && q(e.messageCompiler) && er(
|
|
1871
|
-
const O = q(e.messageResolver) ? e.messageResolver :
|
|
1803
|
+
function Ii(e = {}) {
|
|
1804
|
+
const t = q(e.onWarn) ? e.onWarn : uo, n = I(e.version) ? e.version : bi, r = I(e.locale) || q(e.locale) ? e.locale : Ct, a = q(r) ? Ct : r, s = re(e.fallbackLocale) || V(e.fallbackLocale) || I(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, o = V(e.messages) ? e.messages : An(a), i = V(e.datetimeFormats) ? e.datetimeFormats : An(a), l = V(e.numberFormats) ? e.numberFormats : An(a), c = ie(K(), e.modifiers, Si()), f = e.pluralRules || K(), u = q(e.missing) ? e.missing : null, m = $(e.missingWarn) || lt(e.missingWarn) ? e.missingWarn : !0, p = $(e.fallbackWarn) || lt(e.fallbackWarn) ? e.fallbackWarn : !0, A = !!e.fallbackFormat, E = !!e.unresolving, C = q(e.postTranslation) ? e.postTranslation : null, h = V(e.processor) ? e.processor : null, g = $(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, N = !!e.escapeParameter, S = q(e.messageCompiler) ? e.messageCompiler : Ma;
|
|
1805
|
+
process.env.NODE_ENV !== "production" && q(e.messageCompiler) && er(Je(_e.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1806
|
+
const O = q(e.messageResolver) ? e.messageResolver : Ua || hi, L = q(e.localeFallbacker) ? e.localeFallbacker : Ba || oi, v = G(e.fallbackContext) ? e.fallbackContext : void 0, x = e, Y = G(x.__datetimeFormatters) ? x.__datetimeFormatters : /* @__PURE__ */ new Map(), se = G(x.__numberFormatters) ? x.__numberFormatters : /* @__PURE__ */ new Map(), Se = G(x.__meta) ? x.__meta : {};
|
|
1872
1807
|
Fr++;
|
|
1873
1808
|
const oe = {
|
|
1874
1809
|
version: n,
|
|
@@ -1894,13 +1829,13 @@ function Ci(e = {}) {
|
|
|
1894
1829
|
onWarn: t,
|
|
1895
1830
|
__meta: Se
|
|
1896
1831
|
};
|
|
1897
|
-
return oe.datetimeFormats = i, oe.numberFormats = l, oe.__datetimeFormatters = Y, oe.__numberFormatters = se, process.env.NODE_ENV !== "production" && (oe.__v_emitter = x.__v_emitter != null ? x.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) &&
|
|
1832
|
+
return oe.datetimeFormats = i, oe.numberFormats = l, oe.__datetimeFormatters = Y, oe.__numberFormatters = se, process.env.NODE_ENV !== "production" && (oe.__v_emitter = x.__v_emitter != null ? x.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && ti(oe, n, Se), oe;
|
|
1898
1833
|
}
|
|
1899
1834
|
const An = (e) => ({ [e]: K() });
|
|
1900
1835
|
function zt(e, t) {
|
|
1901
1836
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1902
1837
|
}
|
|
1903
|
-
function
|
|
1838
|
+
function Ga(e, t) {
|
|
1904
1839
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1905
1840
|
}
|
|
1906
1841
|
function sr(e, t, n, r, a) {
|
|
@@ -1918,32 +1853,32 @@ function sr(e, t, n, r, a) {
|
|
|
1918
1853
|
const i = s(e, n, t, a);
|
|
1919
1854
|
return I(i) ? i : t;
|
|
1920
1855
|
} else
|
|
1921
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1856
|
+
return process.env.NODE_ENV !== "production" && Ga(r, t) && o(Je(_e.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
1922
1857
|
}
|
|
1923
|
-
function
|
|
1858
|
+
function pt(e, t, n) {
|
|
1924
1859
|
const r = e;
|
|
1925
1860
|
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1926
1861
|
}
|
|
1927
|
-
function
|
|
1862
|
+
function $a(e, t) {
|
|
1928
1863
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1929
1864
|
}
|
|
1930
|
-
function
|
|
1865
|
+
function Ci(e, t) {
|
|
1931
1866
|
const n = t.indexOf(e);
|
|
1932
1867
|
if (n === -1)
|
|
1933
1868
|
return !1;
|
|
1934
1869
|
for (let r = n + 1; r < t.length; r++)
|
|
1935
|
-
if (
|
|
1870
|
+
if ($a(e, t[r]))
|
|
1936
1871
|
return !0;
|
|
1937
1872
|
return !1;
|
|
1938
1873
|
}
|
|
1939
|
-
const Mr = typeof Intl < "u",
|
|
1874
|
+
const Mr = typeof Intl < "u", Wa = {
|
|
1940
1875
|
dateTimeFormat: Mr && typeof Intl.DateTimeFormat < "u",
|
|
1941
1876
|
numberFormat: Mr && typeof Intl.NumberFormat < "u"
|
|
1942
1877
|
};
|
|
1943
1878
|
function Ur(e, ...t) {
|
|
1944
1879
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: s, localeFallbacker: o } = e, { __datetimeFormatters: i } = e;
|
|
1945
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
1946
|
-
return s(
|
|
1880
|
+
if (process.env.NODE_ENV !== "production" && !Wa.dateTimeFormat)
|
|
1881
|
+
return s(Je(_e.CANNOT_FORMAT_DATE)), Ht;
|
|
1947
1882
|
const [l, c, f, u] = kn(...t), m = $(f.missingWarn) ? f.missingWarn : e.missingWarn, p = $(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, A = !!f.part, E = ar(e, f), C = o(
|
|
1948
1883
|
e,
|
|
1949
1884
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -1955,7 +1890,7 @@ function Ur(e, ...t) {
|
|
|
1955
1890
|
let h = {}, g, N = null, S = E, O = null;
|
|
1956
1891
|
const L = "datetime format";
|
|
1957
1892
|
for (let Y = 0; Y < C.length; Y++) {
|
|
1958
|
-
if (g = O = C[Y], process.env.NODE_ENV !== "production" && E !== g && zt(p, l) && s(
|
|
1893
|
+
if (g = O = C[Y], process.env.NODE_ENV !== "production" && E !== g && zt(p, l) && s(Je(_e.FALLBACK_TO_DATE_FORMAT, {
|
|
1959
1894
|
key: l,
|
|
1960
1895
|
target: g
|
|
1961
1896
|
})), process.env.NODE_ENV !== "production" && E !== g) {
|
|
@@ -1979,7 +1914,7 @@ function Ur(e, ...t) {
|
|
|
1979
1914
|
let x = i.get(v);
|
|
1980
1915
|
return x || (x = new Intl.DateTimeFormat(g, ie({}, N, u)), i.set(v, x)), A ? x.formatToParts(c) : x.format(c);
|
|
1981
1916
|
}
|
|
1982
|
-
const
|
|
1917
|
+
const Ya = [
|
|
1983
1918
|
"localeMatcher",
|
|
1984
1919
|
"weekday",
|
|
1985
1920
|
"era",
|
|
@@ -2007,24 +1942,24 @@ function kn(...e) {
|
|
|
2007
1942
|
if (I(t)) {
|
|
2008
1943
|
const l = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
2009
1944
|
if (!l)
|
|
2010
|
-
throw Le(
|
|
1945
|
+
throw Le(le.INVALID_ISO_DATE_ARGUMENT);
|
|
2011
1946
|
const c = l[3] ? l[3].trim().startsWith("T") ? `${l[1].trim()}${l[3].trim()}` : `${l[1].trim()}T${l[3].trim()}` : l[1].trim();
|
|
2012
1947
|
i = new Date(c);
|
|
2013
1948
|
try {
|
|
2014
1949
|
i.toISOString();
|
|
2015
1950
|
} catch {
|
|
2016
|
-
throw Le(
|
|
1951
|
+
throw Le(le.INVALID_ISO_DATE_ARGUMENT);
|
|
2017
1952
|
}
|
|
2018
|
-
} else if (
|
|
1953
|
+
} else if (ao(t)) {
|
|
2019
1954
|
if (isNaN(t.getTime()))
|
|
2020
|
-
throw Le(
|
|
1955
|
+
throw Le(le.INVALID_DATE_ARGUMENT);
|
|
2021
1956
|
i = t;
|
|
2022
1957
|
} else if (ae(t))
|
|
2023
1958
|
i = t;
|
|
2024
1959
|
else
|
|
2025
|
-
throw Le(
|
|
1960
|
+
throw Le(le.INVALID_ARGUMENT);
|
|
2026
1961
|
return I(n) ? s.key = n : V(n) && Object.keys(n).forEach((l) => {
|
|
2027
|
-
|
|
1962
|
+
Ya.includes(l) ? o[l] = n[l] : s[l] = n[l];
|
|
2028
1963
|
}), I(r) ? s.locale = r : V(r) && (o = r), V(a) && (o = a), [s.key || "", i, s, o];
|
|
2029
1964
|
}
|
|
2030
1965
|
function Br(e, t, n) {
|
|
@@ -2036,8 +1971,8 @@ function Br(e, t, n) {
|
|
|
2036
1971
|
}
|
|
2037
1972
|
function xr(e, ...t) {
|
|
2038
1973
|
const { numberFormats: n, unresolving: r, fallbackLocale: a, onWarn: s, localeFallbacker: o } = e, { __numberFormatters: i } = e;
|
|
2039
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
2040
|
-
return s(
|
|
1974
|
+
if (process.env.NODE_ENV !== "production" && !Wa.numberFormat)
|
|
1975
|
+
return s(Je(_e.CANNOT_FORMAT_NUMBER)), Ht;
|
|
2041
1976
|
const [l, c, f, u] = Fn(...t), m = $(f.missingWarn) ? f.missingWarn : e.missingWarn, p = $(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, A = !!f.part, E = ar(e, f), C = o(
|
|
2042
1977
|
e,
|
|
2043
1978
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -2049,7 +1984,7 @@ function xr(e, ...t) {
|
|
|
2049
1984
|
let h = {}, g, N = null, S = E, O = null;
|
|
2050
1985
|
const L = "number format";
|
|
2051
1986
|
for (let Y = 0; Y < C.length; Y++) {
|
|
2052
|
-
if (g = O = C[Y], process.env.NODE_ENV !== "production" && E !== g && zt(p, l) && s(
|
|
1987
|
+
if (g = O = C[Y], process.env.NODE_ENV !== "production" && E !== g && zt(p, l) && s(Je(_e.FALLBACK_TO_NUMBER_FORMAT, {
|
|
2053
1988
|
key: l,
|
|
2054
1989
|
target: g
|
|
2055
1990
|
})), process.env.NODE_ENV !== "production" && E !== g) {
|
|
@@ -2073,7 +2008,7 @@ function xr(e, ...t) {
|
|
|
2073
2008
|
let x = i.get(v);
|
|
2074
2009
|
return x || (x = new Intl.NumberFormat(g, ie({}, N, u)), i.set(v, x)), A ? x.formatToParts(c) : x.format(c);
|
|
2075
2010
|
}
|
|
2076
|
-
const
|
|
2011
|
+
const Ha = [
|
|
2077
2012
|
"localeMatcher",
|
|
2078
2013
|
"style",
|
|
2079
2014
|
"currency",
|
|
@@ -2099,10 +2034,10 @@ function Fn(...e) {
|
|
|
2099
2034
|
const [t, n, r, a] = e, s = K();
|
|
2100
2035
|
let o = K();
|
|
2101
2036
|
if (!ae(t))
|
|
2102
|
-
throw Le(
|
|
2037
|
+
throw Le(le.INVALID_ARGUMENT);
|
|
2103
2038
|
const i = t;
|
|
2104
2039
|
return I(n) ? s.key = n : V(n) && Object.keys(n).forEach((l) => {
|
|
2105
|
-
|
|
2040
|
+
Ha.includes(l) ? o[l] = n[l] : s[l] = n[l];
|
|
2106
2041
|
}), I(r) ? s.locale = r : V(r) && (o = r), V(a) && (o = a), [s.key || "", i, s, o];
|
|
2107
2042
|
}
|
|
2108
2043
|
function Vr(e, t, n) {
|
|
@@ -2112,26 +2047,26 @@ function Vr(e, t, n) {
|
|
|
2112
2047
|
r.__numberFormatters.has(s) && r.__numberFormatters.delete(s);
|
|
2113
2048
|
}
|
|
2114
2049
|
}
|
|
2115
|
-
const
|
|
2050
|
+
const Li = (e) => e, wi = (e) => "", Di = "text", Ri = (e) => e.length === 0 ? "" : Zn(e), Pi = lo;
|
|
2116
2051
|
function Gr(e, t) {
|
|
2117
2052
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
2118
2053
|
}
|
|
2119
|
-
function
|
|
2054
|
+
function ki(e) {
|
|
2120
2055
|
const t = ae(e.pluralIndex) ? e.pluralIndex : -1;
|
|
2121
2056
|
return e.named && (ae(e.named.count) || ae(e.named.n)) ? ae(e.named.count) ? e.named.count : ae(e.named.n) ? e.named.n : t : t;
|
|
2122
2057
|
}
|
|
2123
|
-
function
|
|
2058
|
+
function Fi(e, t) {
|
|
2124
2059
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
2125
2060
|
}
|
|
2126
|
-
function
|
|
2127
|
-
const t = e.locale, n =
|
|
2128
|
-
ae(e.pluralIndex) &&
|
|
2061
|
+
function Mi(e = {}) {
|
|
2062
|
+
const t = e.locale, n = ki(e), r = G(e.pluralRules) && I(t) && q(e.pluralRules[t]) ? e.pluralRules[t] : Gr, a = G(e.pluralRules) && I(t) && q(e.pluralRules[t]) ? Gr : void 0, s = (h) => h[r(n, h.length, a)], o = e.list || [], i = (h) => o[h], l = e.named || K();
|
|
2063
|
+
ae(e.pluralIndex) && Fi(n, l);
|
|
2129
2064
|
const c = (h) => l[h];
|
|
2130
2065
|
function f(h, g) {
|
|
2131
2066
|
const N = q(e.messages) ? e.messages(h, !!g) : G(e.messages) ? e.messages[h] : !1;
|
|
2132
|
-
return N || (e.parent ? e.parent.message(h) :
|
|
2067
|
+
return N || (e.parent ? e.parent.message(h) : wi);
|
|
2133
2068
|
}
|
|
2134
|
-
const u = (h) => e.modifiers ? e.modifiers[h] :
|
|
2069
|
+
const u = (h) => e.modifiers ? e.modifiers[h] : Li, m = V(e.processor) && q(e.processor.normalize) ? e.processor.normalize : Ri, p = V(e.processor) && q(e.processor.interpolate) ? e.processor.interpolate : Pi, A = V(e.processor) && I(e.processor.type) ? e.processor.type : Di, C = {
|
|
2135
2070
|
list: i,
|
|
2136
2071
|
named: c,
|
|
2137
2072
|
plural: s,
|
|
@@ -2156,46 +2091,46 @@ function Ui(e = {}) {
|
|
|
2156
2091
|
const $r = () => "", pe = (e) => q(e);
|
|
2157
2092
|
function Wr(e, ...t) {
|
|
2158
2093
|
const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: s, fallbackLocale: o, messages: i } = e, [l, c] = Mn(...t), f = $(c.missingWarn) ? c.missingWarn : e.missingWarn, u = $(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, m = $(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, p = !!c.resolvedMessage, A = I(c.default) || $(c.default) ? $(c.default) ? s ? l : () => l : c.default : n ? s ? l : () => l : null, E = n || A != null && (I(A) || q(A)), C = ar(e, c);
|
|
2159
|
-
m &&
|
|
2094
|
+
m && Ui(c);
|
|
2160
2095
|
let [h, g, N] = p ? [
|
|
2161
2096
|
l,
|
|
2162
2097
|
C,
|
|
2163
2098
|
i[C] || K()
|
|
2164
|
-
] :
|
|
2099
|
+
] : Ka(e, l, C, o, u, f), S = h, O = l;
|
|
2165
2100
|
if (!p && !(I(S) || Ee(S) || pe(S)) && E && (S = A, O = S), !p && (!(I(S) || Ee(S) || pe(S)) || !I(g)))
|
|
2166
2101
|
return a ? Jt : l;
|
|
2167
2102
|
if (process.env.NODE_ENV !== "production" && I(S) && e.messageCompiler == null)
|
|
2168
|
-
return
|
|
2103
|
+
return `${l}`, l;
|
|
2169
2104
|
let L = !1;
|
|
2170
2105
|
const v = () => {
|
|
2171
2106
|
L = !0;
|
|
2172
|
-
}, x = pe(S) ? S :
|
|
2107
|
+
}, x = pe(S) ? S : ja(e, l, g, S, O, v);
|
|
2173
2108
|
if (L)
|
|
2174
2109
|
return S;
|
|
2175
|
-
const Y =
|
|
2110
|
+
const Y = Gi(e, g, N, c), se = Mi(Y), Se = Bi(e, x, se), oe = r ? r(Se, l) : Se;
|
|
2176
2111
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2177
|
-
const
|
|
2112
|
+
const Ze = {
|
|
2178
2113
|
timestamp: Date.now(),
|
|
2179
2114
|
key: I(l) ? l : pe(S) ? S.key : "",
|
|
2180
2115
|
locale: g || (pe(S) ? S.locale : ""),
|
|
2181
2116
|
format: I(S) ? S : pe(S) ? S.source : "",
|
|
2182
2117
|
message: oe
|
|
2183
2118
|
};
|
|
2184
|
-
|
|
2119
|
+
Ze.meta = ie({}, e.__meta, /* @__PURE__ */ Ti() || {}), ni(Ze);
|
|
2185
2120
|
}
|
|
2186
2121
|
return oe;
|
|
2187
2122
|
}
|
|
2188
|
-
function
|
|
2123
|
+
function Ui(e) {
|
|
2189
2124
|
re(e.list) ? e.list = e.list.map((t) => I(t) ? yr(t) : t) : G(e.named) && Object.keys(e.named).forEach((t) => {
|
|
2190
2125
|
I(e.named[t]) && (e.named[t] = yr(e.named[t]));
|
|
2191
2126
|
});
|
|
2192
2127
|
}
|
|
2193
|
-
function
|
|
2128
|
+
function Ka(e, t, n, r, a, s) {
|
|
2194
2129
|
const { messages: o, onWarn: i, messageResolver: l, localeFallbacker: c } = e, f = c(e, r, n);
|
|
2195
2130
|
let u = K(), m, p = null, A = n, E = null;
|
|
2196
2131
|
const C = "translate";
|
|
2197
2132
|
for (let h = 0; h < f.length; h++) {
|
|
2198
|
-
if (m = E = f[h], process.env.NODE_ENV !== "production" && n !== m &&
|
|
2133
|
+
if (m = E = f[h], process.env.NODE_ENV !== "production" && n !== m && !$a(n, m) && zt(a, t) && i(Je(_e.FALLBACK_TO_TRANSLATE, {
|
|
2199
2134
|
key: t,
|
|
2200
2135
|
target: m
|
|
2201
2136
|
})), process.env.NODE_ENV !== "production" && n !== m) {
|
|
@@ -2218,11 +2153,11 @@ function qa(e, t, n, r, a, s) {
|
|
|
2218
2153
|
message: p,
|
|
2219
2154
|
time: O - g,
|
|
2220
2155
|
groupId: `${C}:${t}`
|
|
2221
|
-
}), N && S && ge &&
|
|
2156
|
+
}), N && S && ge && Qe && (ge(S), Qe("intlify message resolve", N, S));
|
|
2222
2157
|
}
|
|
2223
2158
|
if (I(p) || Ee(p) || pe(p))
|
|
2224
2159
|
break;
|
|
2225
|
-
if (!
|
|
2160
|
+
if (!Ci(m, f)) {
|
|
2226
2161
|
const O = sr(
|
|
2227
2162
|
e,
|
|
2228
2163
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -2237,7 +2172,7 @@ function qa(e, t, n, r, a, s) {
|
|
|
2237
2172
|
}
|
|
2238
2173
|
return [p, m, u];
|
|
2239
2174
|
}
|
|
2240
|
-
function
|
|
2175
|
+
function ja(e, t, n, r, a, s) {
|
|
2241
2176
|
const { messageCompiler: o, warnHtmlMessage: i } = e;
|
|
2242
2177
|
if (pe(r)) {
|
|
2243
2178
|
const m = r;
|
|
@@ -2249,7 +2184,7 @@ function Xa(e, t, n, r, a, s) {
|
|
|
2249
2184
|
}
|
|
2250
2185
|
let l = null, c, f;
|
|
2251
2186
|
process.env.NODE_ENV !== "production" && Ae && (l = window.performance.now(), c = "intlify-message-compilation-start", f = "intlify-message-compilation-end", ge && ge(c));
|
|
2252
|
-
const u = o(r,
|
|
2187
|
+
const u = o(r, xi(e, n, a, r, i, s));
|
|
2253
2188
|
if (process.env.NODE_ENV !== "production" && Ae) {
|
|
2254
2189
|
const m = window.performance.now(), p = e.__v_emitter;
|
|
2255
2190
|
p && l && p.emit("message-compilation", {
|
|
@@ -2257,11 +2192,11 @@ function Xa(e, t, n, r, a, s) {
|
|
|
2257
2192
|
message: r,
|
|
2258
2193
|
time: m - l,
|
|
2259
2194
|
groupId: `translate:${t}`
|
|
2260
|
-
}), c && f && ge &&
|
|
2195
|
+
}), c && f && ge && Qe && (ge(f), Qe("intlify message compilation", c, f));
|
|
2261
2196
|
}
|
|
2262
2197
|
return u.locale = n, u.key = t, u.source = r, u;
|
|
2263
2198
|
}
|
|
2264
|
-
function
|
|
2199
|
+
function Bi(e, t, n) {
|
|
2265
2200
|
let r = null, a, s;
|
|
2266
2201
|
process.env.NODE_ENV !== "production" && Ae && (r = window.performance.now(), a = "intlify-message-evaluation-start", s = "intlify-message-evaluation-end", ge && ge(a));
|
|
2267
2202
|
const o = t(n);
|
|
@@ -2272,46 +2207,45 @@ function xi(e, t, n) {
|
|
|
2272
2207
|
value: o,
|
|
2273
2208
|
time: i - r,
|
|
2274
2209
|
groupId: `translate:${t.key}`
|
|
2275
|
-
}), a && s && ge &&
|
|
2210
|
+
}), a && s && ge && Qe && (ge(s), Qe("intlify message evaluation", a, s));
|
|
2276
2211
|
}
|
|
2277
2212
|
return o;
|
|
2278
2213
|
}
|
|
2279
2214
|
function Mn(...e) {
|
|
2280
2215
|
const [t, n, r] = e, a = K();
|
|
2281
2216
|
if (!I(t) && !ae(t) && !pe(t) && !Ee(t))
|
|
2282
|
-
throw Le(
|
|
2217
|
+
throw Le(le.INVALID_ARGUMENT);
|
|
2283
2218
|
const s = ae(t) ? String(t) : (pe(t), t);
|
|
2284
2219
|
return ae(n) ? a.plural = n : I(n) ? a.default = n : V(n) && !Qt(n) ? a.named = n : re(n) && (a.list = n), ae(r) ? a.plural = r : I(r) ? a.default = r : V(r) && ie(a, r), [s, a];
|
|
2285
2220
|
}
|
|
2286
|
-
function
|
|
2221
|
+
function xi(e, t, n, r, a, s) {
|
|
2287
2222
|
return {
|
|
2288
2223
|
locale: t,
|
|
2289
2224
|
key: n,
|
|
2290
2225
|
warnHtmlMessage: a,
|
|
2291
2226
|
onError: (o) => {
|
|
2292
2227
|
if (s && s(o), process.env.NODE_ENV !== "production") {
|
|
2293
|
-
const i =
|
|
2228
|
+
const i = Vi(r), l = `Message compilation error: ${o.message}`, c = o.location && i && co(i, o.location.start.offset, o.location.end.offset), f = e.__v_emitter;
|
|
2294
2229
|
f && i && f.emit("compile-error", {
|
|
2295
2230
|
message: i,
|
|
2296
2231
|
error: o.message,
|
|
2297
2232
|
start: o.location && o.location.start.offset,
|
|
2298
2233
|
end: o.location && o.location.end.offset,
|
|
2299
2234
|
groupId: `translate:${n}`
|
|
2300
|
-
})
|
|
2301
|
-
${c}` : l);
|
|
2235
|
+
});
|
|
2302
2236
|
} else
|
|
2303
2237
|
throw o;
|
|
2304
2238
|
},
|
|
2305
|
-
onCacheKey: (o) =>
|
|
2239
|
+
onCacheKey: (o) => no(t, n, o)
|
|
2306
2240
|
};
|
|
2307
2241
|
}
|
|
2308
|
-
function
|
|
2242
|
+
function Vi(e) {
|
|
2309
2243
|
if (I(e))
|
|
2310
2244
|
return e;
|
|
2311
2245
|
if (e.loc && e.loc.source)
|
|
2312
2246
|
return e.loc.source;
|
|
2313
2247
|
}
|
|
2314
|
-
function
|
|
2248
|
+
function Gi(e, t, n, r) {
|
|
2315
2249
|
const { modifiers: a, pluralRules: s, messageResolver: o, fallbackLocale: i, fallbackWarn: l, missingWarn: c, fallbackContext: f } = e, m = {
|
|
2316
2250
|
locale: t,
|
|
2317
2251
|
modifiers: a,
|
|
@@ -2319,7 +2253,7 @@ function $i(e, t, n, r) {
|
|
|
2319
2253
|
messages: (p, A) => {
|
|
2320
2254
|
let E = o(n, p);
|
|
2321
2255
|
if (E == null && (f || A)) {
|
|
2322
|
-
const [, , C] =
|
|
2256
|
+
const [, , C] = Ka(
|
|
2323
2257
|
f || e,
|
|
2324
2258
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
2325
2259
|
p,
|
|
@@ -2332,7 +2266,7 @@ function $i(e, t, n, r) {
|
|
|
2332
2266
|
}
|
|
2333
2267
|
if (I(E) || Ee(E)) {
|
|
2334
2268
|
let C = !1;
|
|
2335
|
-
const g =
|
|
2269
|
+
const g = ja(e, p, t, E, p, () => {
|
|
2336
2270
|
C = !0;
|
|
2337
2271
|
});
|
|
2338
2272
|
return C ? $r : g;
|
|
@@ -2341,23 +2275,23 @@ function $i(e, t, n, r) {
|
|
|
2341
2275
|
};
|
|
2342
2276
|
return e.processor && (m.processor = e.processor), r.list && (m.list = r.list), r.named && (m.named = r.named), ae(r.plural) && (m.pluralIndex = r.plural), m;
|
|
2343
2277
|
}
|
|
2344
|
-
|
|
2345
|
-
function
|
|
2346
|
-
return
|
|
2278
|
+
Go();
|
|
2279
|
+
function $i() {
|
|
2280
|
+
return qa().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
2347
2281
|
}
|
|
2348
|
-
function
|
|
2282
|
+
function qa() {
|
|
2349
2283
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
2350
2284
|
}
|
|
2351
|
-
const
|
|
2352
|
-
let
|
|
2353
|
-
function
|
|
2285
|
+
const Wi = typeof Proxy == "function", Yi = "devtools-plugin:setup", Hi = "plugin:settings:set";
|
|
2286
|
+
let tt, Un;
|
|
2287
|
+
function Ki() {
|
|
2354
2288
|
var e;
|
|
2355
|
-
return
|
|
2289
|
+
return tt !== void 0 || (typeof window < "u" && window.performance ? (tt = !0, Un = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (tt = !0, Un = globalThis.perf_hooks.performance) : tt = !1), tt;
|
|
2356
2290
|
}
|
|
2357
|
-
function
|
|
2358
|
-
return
|
|
2291
|
+
function ji() {
|
|
2292
|
+
return Ki() ? Un.now() : Date.now();
|
|
2359
2293
|
}
|
|
2360
|
-
class
|
|
2294
|
+
class qi {
|
|
2361
2295
|
constructor(t, n) {
|
|
2362
2296
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
2363
2297
|
const r = {};
|
|
@@ -2385,9 +2319,9 @@ class Xi {
|
|
|
2385
2319
|
s = o;
|
|
2386
2320
|
},
|
|
2387
2321
|
now() {
|
|
2388
|
-
return
|
|
2322
|
+
return ji();
|
|
2389
2323
|
}
|
|
2390
|
-
}, n && n.on(
|
|
2324
|
+
}, n && n.on(Hi, (o, i) => {
|
|
2391
2325
|
o === this.plugin.id && this.fallbacks.setSettings(i);
|
|
2392
2326
|
}), this.proxiedOn = new Proxy({}, {
|
|
2393
2327
|
get: (o, i) => this.target ? this.target.on[i] : (...l) => {
|
|
@@ -2419,12 +2353,12 @@ class Xi {
|
|
|
2419
2353
|
n.resolve(await this.target[n.method](...n.args));
|
|
2420
2354
|
}
|
|
2421
2355
|
}
|
|
2422
|
-
function
|
|
2423
|
-
const n = e, r =
|
|
2356
|
+
function Xi(e, t) {
|
|
2357
|
+
const n = e, r = qa(), a = $i(), s = Wi && n.enableEarlyProxy;
|
|
2424
2358
|
if (a && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
|
|
2425
|
-
a.emit(
|
|
2359
|
+
a.emit(Yi, e, t);
|
|
2426
2360
|
else {
|
|
2427
|
-
const o = s ? new
|
|
2361
|
+
const o = s ? new qi(n, a) : null;
|
|
2428
2362
|
(r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
2429
2363
|
pluginDescriptor: n,
|
|
2430
2364
|
setupFn: t,
|
|
@@ -2437,13 +2371,13 @@ function Qi(e, t) {
|
|
|
2437
2371
|
* (c) 2025 kazuya kawaguchi
|
|
2438
2372
|
* Released under the MIT License.
|
|
2439
2373
|
*/
|
|
2440
|
-
const
|
|
2441
|
-
function
|
|
2442
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (
|
|
2374
|
+
const Qi = "11.1.3";
|
|
2375
|
+
function Ji() {
|
|
2376
|
+
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (je().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (je().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (je().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (je().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
2443
2377
|
}
|
|
2444
2378
|
const X = {
|
|
2445
2379
|
// composer module errors
|
|
2446
|
-
UNEXPECTED_RETURN_TYPE:
|
|
2380
|
+
UNEXPECTED_RETURN_TYPE: ai,
|
|
2447
2381
|
// 24
|
|
2448
2382
|
// legacy module errors
|
|
2449
2383
|
INVALID_ARGUMENT: 25,
|
|
@@ -2463,10 +2397,10 @@ const X = {
|
|
|
2463
2397
|
// Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly
|
|
2464
2398
|
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
2465
2399
|
};
|
|
2466
|
-
function
|
|
2467
|
-
return
|
|
2400
|
+
function de(e, ...t) {
|
|
2401
|
+
return ft(e, null, process.env.NODE_ENV !== "production" ? { messages: zi, args: t } : void 0);
|
|
2468
2402
|
}
|
|
2469
|
-
const
|
|
2403
|
+
const zi = {
|
|
2470
2404
|
[X.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
2471
2405
|
[X.INVALID_ARGUMENT]: "Invalid argument",
|
|
2472
2406
|
[X.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
@@ -2478,8 +2412,8 @@ const Zi = {
|
|
|
2478
2412
|
[X.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
2479
2413
|
[X.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
2480
2414
|
[X.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
2481
|
-
}, Bn = /* @__PURE__ */ Oe("__translateVNode"), xn = /* @__PURE__ */ Oe("__datetimeParts"), Vn = /* @__PURE__ */ Oe("__numberParts"),
|
|
2482
|
-
FALLBACK_TO_ROOT:
|
|
2415
|
+
}, Bn = /* @__PURE__ */ Oe("__translateVNode"), xn = /* @__PURE__ */ Oe("__datetimeParts"), Vn = /* @__PURE__ */ Oe("__numberParts"), ze = /* @__PURE__ */ Oe("__enableEmitter"), Lt = /* @__PURE__ */ Oe("__disableEmitter"), Xa = Oe("__setPluralRules"), Qa = /* @__PURE__ */ Oe("__injectWithOption"), Gn = /* @__PURE__ */ Oe("__dispose"), Ne = {
|
|
2416
|
+
FALLBACK_TO_ROOT: pi,
|
|
2483
2417
|
// 8
|
|
2484
2418
|
NOT_FOUND_PARENT_SCOPE: 9,
|
|
2485
2419
|
IGNORE_OBJ_FLATTEN: 10,
|
|
@@ -2491,7 +2425,7 @@ const Zi = {
|
|
|
2491
2425
|
* @deprecated will be removed at vue-i18n v12
|
|
2492
2426
|
*/
|
|
2493
2427
|
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12
|
|
2494
|
-
},
|
|
2428
|
+
}, Zi = {
|
|
2495
2429
|
[Ne.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
2496
2430
|
[Ne.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
2497
2431
|
[Ne.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
@@ -2506,7 +2440,7 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
2506
2440
|
[Ne.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."
|
|
2507
2441
|
};
|
|
2508
2442
|
function Rt(e, ...t) {
|
|
2509
|
-
return Xt(
|
|
2443
|
+
return Xt(Zi[e], ...t);
|
|
2510
2444
|
}
|
|
2511
2445
|
function wt(e) {
|
|
2512
2446
|
if (!G(e) || Ee(e))
|
|
@@ -2522,14 +2456,14 @@ function wt(e) {
|
|
|
2522
2456
|
if (n[o] === "__proto__")
|
|
2523
2457
|
throw new Error(`unsafe key: ${n[o]}`);
|
|
2524
2458
|
if (n[o] in a || (a[n[o]] = K()), !G(a[n[o]])) {
|
|
2525
|
-
process.env.NODE_ENV !== "production" &&
|
|
2459
|
+
process.env.NODE_ENV !== "production" && (Rt(Ne.IGNORE_OBJ_FLATTEN, {
|
|
2526
2460
|
key: n[o]
|
|
2527
|
-
})), s = !0;
|
|
2461
|
+
}), void 0), s = !0;
|
|
2528
2462
|
break;
|
|
2529
2463
|
}
|
|
2530
2464
|
a = a[n[o]];
|
|
2531
2465
|
}
|
|
2532
|
-
if (s || (Ee(a) ?
|
|
2466
|
+
if (s || (Ee(a) ? ka.includes(n[r]) || delete e[t] : (a[n[r]] = e[t], delete e[t])), !Ee(a)) {
|
|
2533
2467
|
const o = a[n[r]];
|
|
2534
2468
|
G(o) && wt(o);
|
|
2535
2469
|
}
|
|
@@ -2549,10 +2483,10 @@ function or(e, t) {
|
|
|
2549
2483
|
ve(o, i) && wt(o[i]);
|
|
2550
2484
|
return o;
|
|
2551
2485
|
}
|
|
2552
|
-
function
|
|
2486
|
+
function Ja(e) {
|
|
2553
2487
|
return e.type;
|
|
2554
2488
|
}
|
|
2555
|
-
function
|
|
2489
|
+
function za(e, t, n) {
|
|
2556
2490
|
let r = G(t.messages) ? t.messages : K();
|
|
2557
2491
|
"__i18nGlobal" in n && (r = or(e.locale.value, {
|
|
2558
2492
|
messages: r,
|
|
@@ -2578,20 +2512,20 @@ function es(e, t, n) {
|
|
|
2578
2512
|
}
|
|
2579
2513
|
}
|
|
2580
2514
|
function Yr(e) {
|
|
2581
|
-
return w(
|
|
2515
|
+
return w(Us, null, e, 0);
|
|
2582
2516
|
}
|
|
2583
|
-
const Hr = "__INTLIFY_META__", Kr = () => [],
|
|
2517
|
+
const Hr = "__INTLIFY_META__", Kr = () => [], el = () => !1;
|
|
2584
2518
|
let jr = 0;
|
|
2585
2519
|
function qr(e) {
|
|
2586
|
-
return (t, n, r, a) => e(n, r,
|
|
2520
|
+
return (t, n, r, a) => e(n, r, yt() || void 0, a);
|
|
2587
2521
|
}
|
|
2588
|
-
const
|
|
2589
|
-
const e =
|
|
2522
|
+
const tl = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2523
|
+
const e = yt();
|
|
2590
2524
|
let t = null;
|
|
2591
|
-
return e && (t =
|
|
2525
|
+
return e && (t = Ja(e)[Hr]) ? { [Hr]: t } : null;
|
|
2592
2526
|
};
|
|
2593
2527
|
function ir(e = {}) {
|
|
2594
|
-
const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, s = Ae ?
|
|
2528
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, s = Ae ? Ds : Rs;
|
|
2595
2529
|
let o = $(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2596
2530
|
const i = s(
|
|
2597
2531
|
// prettier-ignore
|
|
@@ -2600,13 +2534,13 @@ function ir(e = {}) {
|
|
|
2600
2534
|
// prettier-ignore
|
|
2601
2535
|
t && o ? t.fallbackLocale.value : I(e.fallbackLocale) || re(e.fallbackLocale) || V(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i.value
|
|
2602
2536
|
), c = s(or(i.value, e)), f = s(V(e.datetimeFormats) ? e.datetimeFormats : { [i.value]: {} }), u = s(V(e.numberFormats) ? e.numberFormats : { [i.value]: {} });
|
|
2603
|
-
let m = t ? t.missingWarn : $(e.missingWarn) ||
|
|
2537
|
+
let m = t ? t.missingWarn : $(e.missingWarn) || lt(e.missingWarn) ? e.missingWarn : !0, p = t ? t.fallbackWarn : $(e.fallbackWarn) || lt(e.fallbackWarn) ? e.fallbackWarn : !0, A = t ? t.fallbackRoot : $(e.fallbackRoot) ? e.fallbackRoot : !0, E = !!e.fallbackFormat, C = q(e.missing) ? e.missing : null, h = q(e.missing) ? qr(e.missing) : null, g = q(e.postTranslation) ? e.postTranslation : null, N = t ? t.warnHtmlMessage : $(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter;
|
|
2604
2538
|
const O = t ? t.modifiers : V(e.modifiers) ? e.modifiers : {};
|
|
2605
2539
|
let L = e.pluralRules || t && t.pluralRules, v;
|
|
2606
2540
|
v = (() => {
|
|
2607
2541
|
r && kr(null);
|
|
2608
2542
|
const b = {
|
|
2609
|
-
version:
|
|
2543
|
+
version: Qi,
|
|
2610
2544
|
locale: i.value,
|
|
2611
2545
|
fallbackLocale: l.value,
|
|
2612
2546
|
messages: c.value,
|
|
@@ -2625,9 +2559,9 @@ function ir(e = {}) {
|
|
|
2625
2559
|
__meta: { framework: "vue" }
|
|
2626
2560
|
};
|
|
2627
2561
|
b.datetimeFormats = f.value, b.numberFormats = u.value, b.__datetimeFormatters = V(v) ? v.__datetimeFormatters : void 0, b.__numberFormatters = V(v) ? v.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (b.__v_emitter = V(v) ? v.__v_emitter : void 0);
|
|
2628
|
-
const T =
|
|
2562
|
+
const T = Ii(b);
|
|
2629
2563
|
return r && kr(T), T;
|
|
2630
|
-
})(),
|
|
2564
|
+
})(), pt(v, i.value, l.value);
|
|
2631
2565
|
function Y() {
|
|
2632
2566
|
return [
|
|
2633
2567
|
i.value,
|
|
@@ -2637,17 +2571,17 @@ function ir(e = {}) {
|
|
|
2637
2571
|
u.value
|
|
2638
2572
|
];
|
|
2639
2573
|
}
|
|
2640
|
-
const se =
|
|
2574
|
+
const se = gt({
|
|
2641
2575
|
get: () => i.value,
|
|
2642
2576
|
set: (b) => {
|
|
2643
2577
|
v.locale = b, i.value = b;
|
|
2644
2578
|
}
|
|
2645
|
-
}), Se =
|
|
2579
|
+
}), Se = gt({
|
|
2646
2580
|
get: () => l.value,
|
|
2647
2581
|
set: (b) => {
|
|
2648
|
-
v.fallbackLocale = b, l.value = b,
|
|
2582
|
+
v.fallbackLocale = b, l.value = b, pt(v, i.value, b);
|
|
2649
2583
|
}
|
|
2650
|
-
}), oe =
|
|
2584
|
+
}), oe = gt(() => c.value), Ze = /* @__PURE__ */ gt(() => f.value), rn = /* @__PURE__ */ gt(() => u.value);
|
|
2651
2585
|
function an() {
|
|
2652
2586
|
return q(g) ? g : null;
|
|
2653
2587
|
}
|
|
@@ -2663,44 +2597,44 @@ function ir(e = {}) {
|
|
|
2663
2597
|
function cn(b, T) {
|
|
2664
2598
|
return b !== "translate" || !T.resolvedMessage;
|
|
2665
2599
|
}
|
|
2666
|
-
const Ie = (b, T, H, ee,
|
|
2600
|
+
const Ie = (b, T, H, ee, We, Mt) => {
|
|
2667
2601
|
Y();
|
|
2668
|
-
let
|
|
2602
|
+
let et;
|
|
2669
2603
|
try {
|
|
2670
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (v.fallbackContext = t ?
|
|
2604
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (v.fallbackContext = t ? Oi() : void 0), et = b(v);
|
|
2671
2605
|
} finally {
|
|
2672
2606
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (v.fallbackContext = void 0);
|
|
2673
2607
|
}
|
|
2674
2608
|
if (H !== "translate exists" && // for not `te` (e.g `t`)
|
|
2675
|
-
ae(
|
|
2676
|
-
const [
|
|
2677
|
-
if (process.env.NODE_ENV !== "production" && t && I(
|
|
2678
|
-
key:
|
|
2609
|
+
ae(et) && et === Jt || H === "translate exists" && !et) {
|
|
2610
|
+
const [Ye, Ls] = T();
|
|
2611
|
+
if (process.env.NODE_ENV !== "production" && t && I(Ye) && cn(H, Ls) && (A && (zt(p, Ye) || Ga(m, Ye)) && (Rt(Ne.FALLBACK_TO_ROOT, {
|
|
2612
|
+
key: Ye,
|
|
2679
2613
|
type: H
|
|
2680
|
-
})), process.env.NODE_ENV !== "production")) {
|
|
2614
|
+
}), void 0), process.env.NODE_ENV !== "production")) {
|
|
2681
2615
|
const { __v_emitter: Sr } = v;
|
|
2682
2616
|
Sr && A && Sr.emit("fallback", {
|
|
2683
2617
|
type: H,
|
|
2684
|
-
key:
|
|
2618
|
+
key: Ye,
|
|
2685
2619
|
to: "global",
|
|
2686
|
-
groupId: `${H}:${
|
|
2620
|
+
groupId: `${H}:${Ye}`
|
|
2687
2621
|
});
|
|
2688
2622
|
}
|
|
2689
|
-
return t && A ? ee(t) : Ye
|
|
2623
|
+
return t && A ? ee(t) : We(Ye);
|
|
2690
2624
|
} else {
|
|
2691
|
-
if (Mt(
|
|
2692
|
-
return
|
|
2693
|
-
throw
|
|
2625
|
+
if (Mt(et))
|
|
2626
|
+
return et;
|
|
2627
|
+
throw de(X.UNEXPECTED_RETURN_TYPE);
|
|
2694
2628
|
}
|
|
2695
2629
|
};
|
|
2696
|
-
function
|
|
2630
|
+
function _t(...b) {
|
|
2697
2631
|
return Ie((T) => Reflect.apply(Wr, null, [T, ...b]), () => Mn(...b), "translate", (T) => Reflect.apply(T.t, T, [...b]), (T) => T, (T) => I(T));
|
|
2698
2632
|
}
|
|
2699
2633
|
function un(...b) {
|
|
2700
2634
|
const [T, H, ee] = b;
|
|
2701
2635
|
if (ee && !G(ee))
|
|
2702
|
-
throw
|
|
2703
|
-
return
|
|
2636
|
+
throw de(X.INVALID_ARGUMENT);
|
|
2637
|
+
return _t(T, H, ie({ resolvedMessage: !0 }, ee || {}));
|
|
2704
2638
|
}
|
|
2705
2639
|
function fn(...b) {
|
|
2706
2640
|
return Ie((T) => Reflect.apply(Ur, null, [T, ...b]), () => kn(...b), "datetime format", (T) => Reflect.apply(T.d, T, [...b]), () => Ht, (T) => I(T));
|
|
@@ -2741,15 +2675,15 @@ function ir(e = {}) {
|
|
|
2741
2675
|
return Ie(() => {
|
|
2742
2676
|
if (!b)
|
|
2743
2677
|
return !1;
|
|
2744
|
-
const H = I(T) ? T : i.value, ee =
|
|
2745
|
-
return Ee(
|
|
2746
|
-
}, () => [b], "translate exists", (H) => Reflect.apply(H.te, H, [b, T]),
|
|
2678
|
+
const H = I(T) ? T : i.value, ee = $e(H), We = v.messageResolver(ee, b);
|
|
2679
|
+
return Ee(We) || pe(We) || I(We);
|
|
2680
|
+
}, () => [b], "translate exists", (H) => Reflect.apply(H.te, H, [b, T]), el, (H) => $(H));
|
|
2747
2681
|
}
|
|
2748
|
-
function
|
|
2682
|
+
function dt(b) {
|
|
2749
2683
|
let T = null;
|
|
2750
|
-
const H =
|
|
2684
|
+
const H = Fa(v, l.value, i.value);
|
|
2751
2685
|
for (let ee = 0; ee < H.length; ee++) {
|
|
2752
|
-
const
|
|
2686
|
+
const We = c.value[H[ee]] || {}, Mt = v.messageResolver(We, b);
|
|
2753
2687
|
if (Mt != null) {
|
|
2754
2688
|
T = Mt;
|
|
2755
2689
|
break;
|
|
@@ -2757,14 +2691,14 @@ function ir(e = {}) {
|
|
|
2757
2691
|
}
|
|
2758
2692
|
return T;
|
|
2759
2693
|
}
|
|
2760
|
-
function
|
|
2761
|
-
const T =
|
|
2694
|
+
function mt(b) {
|
|
2695
|
+
const T = dt(b);
|
|
2762
2696
|
return T ?? (t ? t.tm(b) || {} : {});
|
|
2763
2697
|
}
|
|
2764
|
-
function
|
|
2698
|
+
function $e(b) {
|
|
2765
2699
|
return c.value[b] || {};
|
|
2766
2700
|
}
|
|
2767
|
-
function
|
|
2701
|
+
function ht(b, T) {
|
|
2768
2702
|
if (a) {
|
|
2769
2703
|
const H = { [b]: T };
|
|
2770
2704
|
for (const ee in H)
|
|
@@ -2800,9 +2734,9 @@ function ir(e = {}) {
|
|
|
2800
2734
|
u.value[b] = ie(u.value[b] || {}, T), v.numberFormats = u.value, Vr(v, b, T);
|
|
2801
2735
|
}
|
|
2802
2736
|
jr++, t && Ae && (wn(t.locale, (b) => {
|
|
2803
|
-
o && (i.value = b, v.locale = b,
|
|
2737
|
+
o && (i.value = b, v.locale = b, pt(v, i.value, l.value));
|
|
2804
2738
|
}), wn(t.fallbackLocale, (b) => {
|
|
2805
|
-
o && (l.value = b, v.fallbackLocale = b,
|
|
2739
|
+
o && (l.value = b, v.fallbackLocale = b, pt(v, i.value, l.value));
|
|
2806
2740
|
}));
|
|
2807
2741
|
const W = {
|
|
2808
2742
|
id: jr,
|
|
@@ -2812,7 +2746,7 @@ function ir(e = {}) {
|
|
|
2812
2746
|
return o;
|
|
2813
2747
|
},
|
|
2814
2748
|
set inheritLocale(b) {
|
|
2815
|
-
o = b, b && t && (i.value = t.locale.value, l.value = t.fallbackLocale.value,
|
|
2749
|
+
o = b, b && t && (i.value = t.locale.value, l.value = t.fallbackLocale.value, pt(v, i.value, l.value));
|
|
2816
2750
|
},
|
|
2817
2751
|
get availableLocales() {
|
|
2818
2752
|
return Object.keys(c.value).sort();
|
|
@@ -2863,91 +2797,91 @@ function ir(e = {}) {
|
|
|
2863
2797
|
set escapeParameter(b) {
|
|
2864
2798
|
S = b, v.escapeParameter = b;
|
|
2865
2799
|
},
|
|
2866
|
-
t:
|
|
2867
|
-
getLocaleMessage:
|
|
2868
|
-
setLocaleMessage:
|
|
2800
|
+
t: _t,
|
|
2801
|
+
getLocaleMessage: $e,
|
|
2802
|
+
setLocaleMessage: ht,
|
|
2869
2803
|
mergeLocaleMessage: bn,
|
|
2870
2804
|
getPostTranslationHandler: an,
|
|
2871
2805
|
setPostTranslationHandler: sn,
|
|
2872
2806
|
getMissingHandler: on,
|
|
2873
2807
|
setMissingHandler: ln,
|
|
2874
|
-
[
|
|
2808
|
+
[Xa]: pn
|
|
2875
2809
|
};
|
|
2876
|
-
return W.datetimeFormats =
|
|
2810
|
+
return W.datetimeFormats = Ze, W.numberFormats = rn, W.rt = un, W.te = En, W.tm = mt, W.d = fn, W.n = _n, W.getDateTimeFormat = _, W.setDateTimeFormat = d, W.mergeDateTimeFormat = y, W.getNumberFormat = P, W.setNumberFormat = z, W.mergeNumberFormat = Z, W[Qa] = n, W[Bn] = Ft, W[xn] = gn, W[Vn] = hn, process.env.NODE_ENV !== "production" && (W[ze] = (b) => {
|
|
2877
2811
|
v.__v_emitter = b;
|
|
2878
2812
|
}, W[Lt] = () => {
|
|
2879
2813
|
v.__v_emitter = void 0;
|
|
2880
2814
|
}), W;
|
|
2881
2815
|
}
|
|
2882
|
-
const
|
|
2816
|
+
const Za = "vue-i18n: composer properties", yn = {
|
|
2883
2817
|
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
2884
2818
|
"vue-i18n-resource-inspector": "Vue I18n DevTools",
|
|
2885
2819
|
"vue-i18n-timeline": "Vue I18n"
|
|
2886
|
-
},
|
|
2820
|
+
}, nl = {
|
|
2887
2821
|
"vue-i18n-resource-inspector": "Search for scopes ..."
|
|
2888
|
-
},
|
|
2822
|
+
}, rl = {
|
|
2889
2823
|
"vue-i18n-timeline": 16764185
|
|
2890
2824
|
};
|
|
2891
2825
|
let $n;
|
|
2892
|
-
async function
|
|
2826
|
+
async function al(e, t) {
|
|
2893
2827
|
return new Promise((n, r) => {
|
|
2894
2828
|
try {
|
|
2895
|
-
|
|
2829
|
+
Xi({
|
|
2896
2830
|
id: "vue-devtools-plugin-vue-i18n",
|
|
2897
2831
|
label: yn["vue-devtools-plugin-vue-i18n"],
|
|
2898
2832
|
packageName: "vue-i18n",
|
|
2899
2833
|
homepage: "https://vue-i18n.intlify.dev",
|
|
2900
2834
|
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
|
2901
|
-
componentStateTypes: [
|
|
2835
|
+
componentStateTypes: [Za],
|
|
2902
2836
|
app: e
|
|
2903
2837
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2904
2838
|
}, (a) => {
|
|
2905
2839
|
$n = a, a.on.visitComponentTree(({ componentInstance: o, treeNode: i }) => {
|
|
2906
|
-
|
|
2840
|
+
sl(o, i, t);
|
|
2907
2841
|
}), a.on.inspectComponent(({ componentInstance: o, instanceData: i }) => {
|
|
2908
2842
|
o.vnode.el && o.vnode.el.__VUE_I18N__ && i && (t.mode === "legacy" ? o.vnode.el.__VUE_I18N__ !== t.global.__composer && Xr(i, o.vnode.el.__VUE_I18N__) : Xr(i, o.vnode.el.__VUE_I18N__));
|
|
2909
2843
|
}), a.addInspector({
|
|
2910
2844
|
id: "vue-i18n-resource-inspector",
|
|
2911
2845
|
label: yn["vue-i18n-resource-inspector"],
|
|
2912
2846
|
icon: "language",
|
|
2913
|
-
treeFilterPlaceholder:
|
|
2847
|
+
treeFilterPlaceholder: nl["vue-i18n-resource-inspector"]
|
|
2914
2848
|
}), a.on.getInspectorTree((o) => {
|
|
2915
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2849
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && ul(o, t);
|
|
2916
2850
|
});
|
|
2917
2851
|
const s = /* @__PURE__ */ new Map();
|
|
2918
2852
|
a.on.getInspectorState(async (o) => {
|
|
2919
2853
|
if (o.app === e && o.inspectorId === "vue-i18n-resource-inspector")
|
|
2920
|
-
if (a.unhighlightElement(),
|
|
2854
|
+
if (a.unhighlightElement(), _l(o, t), o.nodeId === "global") {
|
|
2921
2855
|
if (!s.has(o.app)) {
|
|
2922
2856
|
const [i] = await a.getComponentInstances(o.app);
|
|
2923
2857
|
s.set(o.app, i);
|
|
2924
2858
|
}
|
|
2925
2859
|
a.highlightElement(s.get(o.app));
|
|
2926
2860
|
} else {
|
|
2927
|
-
const i =
|
|
2861
|
+
const i = fl(o.nodeId, t);
|
|
2928
2862
|
i && a.highlightElement(i);
|
|
2929
2863
|
}
|
|
2930
2864
|
}), a.on.editInspectorState((o) => {
|
|
2931
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2865
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && ml(o, t);
|
|
2932
2866
|
}), a.addTimelineLayer({
|
|
2933
2867
|
id: "vue-i18n-timeline",
|
|
2934
2868
|
label: yn["vue-i18n-timeline"],
|
|
2935
|
-
color:
|
|
2869
|
+
color: rl["vue-i18n-timeline"]
|
|
2936
2870
|
}), n(!0);
|
|
2937
2871
|
});
|
|
2938
|
-
} catch
|
|
2939
|
-
|
|
2872
|
+
} catch {
|
|
2873
|
+
r(!1);
|
|
2940
2874
|
}
|
|
2941
2875
|
});
|
|
2942
2876
|
}
|
|
2943
|
-
function
|
|
2877
|
+
function es(e) {
|
|
2944
2878
|
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
2945
2879
|
}
|
|
2946
|
-
function
|
|
2880
|
+
function sl(e, t, n) {
|
|
2947
2881
|
const r = n.mode === "composition" ? n.global : n.global.__composer;
|
|
2948
2882
|
if (e && e.vnode.el && e.vnode.el.__VUE_I18N__ && e.vnode.el.__VUE_I18N__ !== r) {
|
|
2949
2883
|
const a = {
|
|
2950
|
-
label: `i18n (${
|
|
2884
|
+
label: `i18n (${es(e)} Scope)`,
|
|
2951
2885
|
textColor: 0,
|
|
2952
2886
|
backgroundColor: 16764185
|
|
2953
2887
|
};
|
|
@@ -2955,7 +2889,7 @@ function ol(e, t, n) {
|
|
|
2955
2889
|
}
|
|
2956
2890
|
}
|
|
2957
2891
|
function Xr(e, t) {
|
|
2958
|
-
const n =
|
|
2892
|
+
const n = Za;
|
|
2959
2893
|
e.state.push({
|
|
2960
2894
|
type: n,
|
|
2961
2895
|
key: "locale",
|
|
@@ -2997,30 +2931,30 @@ function lr(e) {
|
|
|
2997
2931
|
const t = {};
|
|
2998
2932
|
return Object.keys(e).forEach((n) => {
|
|
2999
2933
|
const r = e[n];
|
|
3000
|
-
q(r) && "source" in r ? t[n] =
|
|
2934
|
+
q(r) && "source" in r ? t[n] = cl(r) : Ee(r) && r.loc && r.loc.source ? t[n] = r.loc.source : G(r) ? t[n] = lr(r) : t[n] = r;
|
|
3001
2935
|
}), t;
|
|
3002
2936
|
}
|
|
3003
|
-
const
|
|
2937
|
+
const ol = {
|
|
3004
2938
|
"<": "<",
|
|
3005
2939
|
">": ">",
|
|
3006
2940
|
'"': """,
|
|
3007
2941
|
"&": "&"
|
|
3008
2942
|
};
|
|
2943
|
+
function il(e) {
|
|
2944
|
+
return e.replace(/[<>"&]/g, ll);
|
|
2945
|
+
}
|
|
3009
2946
|
function ll(e) {
|
|
3010
|
-
return e
|
|
2947
|
+
return ol[e] || e;
|
|
3011
2948
|
}
|
|
3012
2949
|
function cl(e) {
|
|
3013
|
-
return il[e] || e;
|
|
3014
|
-
}
|
|
3015
|
-
function ul(e) {
|
|
3016
2950
|
return {
|
|
3017
2951
|
_custom: {
|
|
3018
2952
|
type: "function",
|
|
3019
|
-
display: `<span>ƒ</span> ${e.source ? `("${
|
|
2953
|
+
display: `<span>ƒ</span> ${e.source ? `("${il(e.source)}")` : "(?)"}`
|
|
3020
2954
|
}
|
|
3021
2955
|
};
|
|
3022
2956
|
}
|
|
3023
|
-
function
|
|
2957
|
+
function ul(e, t) {
|
|
3024
2958
|
e.rootNodes.push({
|
|
3025
2959
|
id: "global",
|
|
3026
2960
|
label: "Global Scope"
|
|
@@ -3030,11 +2964,11 @@ function fl(e, t) {
|
|
|
3030
2964
|
const s = t.mode === "composition" ? a : a.__composer;
|
|
3031
2965
|
n !== s && e.rootNodes.push({
|
|
3032
2966
|
id: s.id.toString(),
|
|
3033
|
-
label: `${
|
|
2967
|
+
label: `${es(r)} Scope`
|
|
3034
2968
|
});
|
|
3035
2969
|
}
|
|
3036
2970
|
}
|
|
3037
|
-
function
|
|
2971
|
+
function fl(e, t) {
|
|
3038
2972
|
let n = null;
|
|
3039
2973
|
if (e !== "global") {
|
|
3040
2974
|
for (const [r, a] of t.__instances.entries())
|
|
@@ -3045,7 +2979,7 @@ function _l(e, t) {
|
|
|
3045
2979
|
}
|
|
3046
2980
|
return n;
|
|
3047
2981
|
}
|
|
3048
|
-
function
|
|
2982
|
+
function ts(e, t) {
|
|
3049
2983
|
if (e === "global")
|
|
3050
2984
|
return t.mode === "composition" ? t.global : t.global.__composer;
|
|
3051
2985
|
{
|
|
@@ -3053,11 +2987,11 @@ function rs(e, t) {
|
|
|
3053
2987
|
return n ? t.mode === "composition" ? n : n.__composer : null;
|
|
3054
2988
|
}
|
|
3055
2989
|
}
|
|
3056
|
-
function
|
|
3057
|
-
const n =
|
|
3058
|
-
return n && (e.state =
|
|
2990
|
+
function _l(e, t) {
|
|
2991
|
+
const n = ts(e.nodeId, t);
|
|
2992
|
+
return n && (e.state = dl(n)), null;
|
|
3059
2993
|
}
|
|
3060
|
-
function
|
|
2994
|
+
function dl(e) {
|
|
3061
2995
|
const t = {}, n = "Locale related info", r = [
|
|
3062
2996
|
{
|
|
3063
2997
|
type: n,
|
|
@@ -3132,15 +3066,15 @@ function Dt(e, t) {
|
|
|
3132
3066
|
});
|
|
3133
3067
|
}
|
|
3134
3068
|
}
|
|
3135
|
-
function
|
|
3136
|
-
const n =
|
|
3069
|
+
function ml(e, t) {
|
|
3070
|
+
const n = ts(e.nodeId, t);
|
|
3137
3071
|
if (n) {
|
|
3138
3072
|
const [r] = e.path;
|
|
3139
3073
|
r === "locale" && I(e.state.value) ? n.locale.value = e.state.value : r === "fallbackLocale" && (I(e.state.value) || re(e.state.value) || G(e.state.value)) ? n.fallbackLocale.value = e.state.value : r === "inheritLocale" && $(e.state.value) && (n.inheritLocale = e.state.value);
|
|
3140
3074
|
}
|
|
3141
3075
|
}
|
|
3142
|
-
function
|
|
3143
|
-
const t = I(e.locale) ? e.locale : Ct, n = I(e.fallbackLocale) || re(e.fallbackLocale) || V(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = q(e.missing) ? e.missing : void 0, a = $(e.silentTranslationWarn) ||
|
|
3076
|
+
function hl(e) {
|
|
3077
|
+
const t = I(e.locale) ? e.locale : Ct, n = I(e.fallbackLocale) || re(e.fallbackLocale) || V(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = q(e.missing) ? e.missing : void 0, a = $(e.silentTranslationWarn) || lt(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, s = $(e.silentFallbackWarn) || lt(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = $(e.fallbackRoot) ? e.fallbackRoot : !0, i = !!e.formatFallbackMessages, l = V(e.modifiers) ? e.modifiers : {}, c = e.pluralizationRules, f = q(e.postTranslation) ? e.postTranslation : void 0, u = I(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, m = !!e.escapeParameterHtml, p = $(e.sync) ? e.sync : !0;
|
|
3144
3078
|
let A = e.messages;
|
|
3145
3079
|
if (V(e.sharedMessages)) {
|
|
3146
3080
|
const O = e.sharedMessages;
|
|
@@ -3175,7 +3109,7 @@ function gl(e) {
|
|
|
3175
3109
|
};
|
|
3176
3110
|
}
|
|
3177
3111
|
function Wn(e = {}) {
|
|
3178
|
-
const t = ir(
|
|
3112
|
+
const t = ir(hl(e)), { __extender: n } = e, r = {
|
|
3179
3113
|
// id
|
|
3180
3114
|
id: t.id,
|
|
3181
3115
|
// locale
|
|
@@ -3337,18 +3271,18 @@ function Wn(e = {}) {
|
|
|
3337
3271
|
};
|
|
3338
3272
|
return r.__extender = n, process.env.NODE_ENV !== "production" && (r.__enableEmitter = (a) => {
|
|
3339
3273
|
const s = t;
|
|
3340
|
-
s[
|
|
3274
|
+
s[ze] && s[ze](a);
|
|
3341
3275
|
}, r.__disableEmitter = () => {
|
|
3342
3276
|
const a = t;
|
|
3343
3277
|
a[Lt] && a[Lt]();
|
|
3344
3278
|
}), r;
|
|
3345
3279
|
}
|
|
3346
|
-
function
|
|
3280
|
+
function gl(e, t, n) {
|
|
3347
3281
|
return {
|
|
3348
3282
|
beforeCreate() {
|
|
3349
|
-
const r =
|
|
3283
|
+
const r = yt();
|
|
3350
3284
|
if (!r)
|
|
3351
|
-
throw
|
|
3285
|
+
throw de(X.UNEXPECTED_ERROR);
|
|
3352
3286
|
const a = this.$options;
|
|
3353
3287
|
if (a.i18n) {
|
|
3354
3288
|
const s = a.i18n;
|
|
@@ -3374,7 +3308,7 @@ function pl(e, t, n) {
|
|
|
3374
3308
|
}
|
|
3375
3309
|
else
|
|
3376
3310
|
this.$i18n = e;
|
|
3377
|
-
a.__i18nGlobal &&
|
|
3311
|
+
a.__i18nGlobal && za(t, a, a), this.$t = (...s) => this.$i18n.t(...s), this.$rt = (...s) => this.$i18n.rt(...s), this.$te = (s, o) => this.$i18n.te(s, o), this.$d = (...s) => this.$i18n.d(...s), this.$n = (...s) => this.$i18n.n(...s), this.$tm = (s) => this.$i18n.tm(s), n.__setInstance(r, this.$i18n);
|
|
3378
3312
|
},
|
|
3379
3313
|
mounted() {
|
|
3380
3314
|
if (process.env.NODE_ENV !== "production" && this.$el && this.$i18n) {
|
|
@@ -3385,16 +3319,16 @@ function pl(e, t, n) {
|
|
|
3385
3319
|
}
|
|
3386
3320
|
},
|
|
3387
3321
|
unmounted() {
|
|
3388
|
-
const r =
|
|
3322
|
+
const r = yt();
|
|
3389
3323
|
if (!r)
|
|
3390
|
-
throw
|
|
3324
|
+
throw de(X.UNEXPECTED_ERROR);
|
|
3391
3325
|
const a = this.$i18n;
|
|
3392
3326
|
process.env.NODE_ENV !== "production" && this.$el && this.$el.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", Dt), delete this.__v_emitter), this.$i18n && (a.__disableEmitter && a.__disableEmitter(), delete this.$el.__VUE_I18N__)), delete this.$t, delete this.$rt, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, a.__disposer && (a.__disposer(), delete a.__disposer, delete a.__extender), n.__deleteInstance(r), delete this.$i18n;
|
|
3393
3327
|
}
|
|
3394
3328
|
};
|
|
3395
3329
|
}
|
|
3396
3330
|
function Qr(e, t) {
|
|
3397
|
-
e.locale = t.locale || e.locale, e.fallbackLocale = t.fallbackLocale || e.fallbackLocale, e.missing = t.missing || e.missing, e.silentTranslationWarn = t.silentTranslationWarn || e.silentFallbackWarn, e.silentFallbackWarn = t.silentFallbackWarn || e.silentFallbackWarn, e.formatFallbackMessages = t.formatFallbackMessages || e.formatFallbackMessages, e.postTranslation = t.postTranslation || e.postTranslation, e.warnHtmlInMessage = t.warnHtmlInMessage || e.warnHtmlInMessage, e.escapeParameterHtml = t.escapeParameterHtml || e.escapeParameterHtml, e.sync = t.sync || e.sync, e.__composer[
|
|
3331
|
+
e.locale = t.locale || e.locale, e.fallbackLocale = t.fallbackLocale || e.fallbackLocale, e.missing = t.missing || e.missing, e.silentTranslationWarn = t.silentTranslationWarn || e.silentFallbackWarn, e.silentFallbackWarn = t.silentFallbackWarn || e.silentFallbackWarn, e.formatFallbackMessages = t.formatFallbackMessages || e.formatFallbackMessages, e.postTranslation = t.postTranslation || e.postTranslation, e.warnHtmlInMessage = t.warnHtmlInMessage || e.warnHtmlInMessage, e.escapeParameterHtml = t.escapeParameterHtml || e.escapeParameterHtml, e.sync = t.sync || e.sync, e.__composer[Xa](t.pluralizationRules || e.pluralizationRules);
|
|
3398
3332
|
const n = or(e.locale, {
|
|
3399
3333
|
messages: t.messages,
|
|
3400
3334
|
__i18n: t.__i18n
|
|
@@ -3419,7 +3353,7 @@ const cr = {
|
|
|
3419
3353
|
type: Object
|
|
3420
3354
|
}
|
|
3421
3355
|
};
|
|
3422
|
-
function
|
|
3356
|
+
function pl({ slots: e }, t) {
|
|
3423
3357
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, a) => [
|
|
3424
3358
|
...r,
|
|
3425
3359
|
// prettier-ignore
|
|
@@ -3429,10 +3363,10 @@ function El({ slots: e }, t) {
|
|
|
3429
3363
|
return a && (n[r] = a()), n;
|
|
3430
3364
|
}, K());
|
|
3431
3365
|
}
|
|
3432
|
-
function
|
|
3366
|
+
function ns() {
|
|
3433
3367
|
return he;
|
|
3434
3368
|
}
|
|
3435
|
-
const
|
|
3369
|
+
const El = /* @__PURE__ */ Jn({
|
|
3436
3370
|
/* eslint-disable */
|
|
3437
3371
|
name: "i18n-t",
|
|
3438
3372
|
props: ie({
|
|
@@ -3455,15 +3389,15 @@ const bl = /* @__PURE__ */ Jn({
|
|
|
3455
3389
|
return () => {
|
|
3456
3390
|
const s = Object.keys(n).filter((u) => u !== "_"), o = K();
|
|
3457
3391
|
e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = I(e.plural) ? +e.plural : e.plural);
|
|
3458
|
-
const i =
|
|
3392
|
+
const i = pl(t, s), l = a[Bn](e.keypath, i, o), c = ie(K(), r), f = I(e.tag) || G(e.tag) ? e.tag : ns();
|
|
3459
3393
|
return Sa(f, c, l);
|
|
3460
3394
|
};
|
|
3461
3395
|
}
|
|
3462
|
-
}), Jr =
|
|
3463
|
-
function
|
|
3396
|
+
}), Jr = El;
|
|
3397
|
+
function bl(e) {
|
|
3464
3398
|
return re(e) && !I(e[0]);
|
|
3465
3399
|
}
|
|
3466
|
-
function
|
|
3400
|
+
function rs(e, t, n, r) {
|
|
3467
3401
|
const { slots: a, attrs: s } = t;
|
|
3468
3402
|
return () => {
|
|
3469
3403
|
const o = { part: !0 };
|
|
@@ -3473,13 +3407,13 @@ function ss(e, t, n, r) {
|
|
|
3473
3407
|
let c = [o.key];
|
|
3474
3408
|
re(l) ? c = l.map((m, p) => {
|
|
3475
3409
|
const A = a[m.type], E = A ? A({ [m.type]: m.value, index: p, parts: l }) : [m.value];
|
|
3476
|
-
return
|
|
3410
|
+
return bl(E) && (E[0].key = `${m.type}-${p}`), E;
|
|
3477
3411
|
}) : I(l) && (c = [l]);
|
|
3478
|
-
const f = ie(K(), s), u = I(e.tag) || G(e.tag) ? e.tag :
|
|
3412
|
+
const f = ie(K(), s), u = I(e.tag) || G(e.tag) ? e.tag : ns();
|
|
3479
3413
|
return Sa(u, f, c);
|
|
3480
3414
|
};
|
|
3481
3415
|
}
|
|
3482
|
-
const
|
|
3416
|
+
const Sl = /* @__PURE__ */ Jn({
|
|
3483
3417
|
/* eslint-disable */
|
|
3484
3418
|
name: "i18n-n",
|
|
3485
3419
|
props: ie({
|
|
@@ -3498,13 +3432,13 @@ const vl = /* @__PURE__ */ Jn({
|
|
|
3498
3432
|
useScope: e.scope,
|
|
3499
3433
|
__useComponent: !0
|
|
3500
3434
|
});
|
|
3501
|
-
return
|
|
3435
|
+
return rs(e, t, Ha, (...r) => (
|
|
3502
3436
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3503
3437
|
n[Vn](...r)
|
|
3504
3438
|
));
|
|
3505
3439
|
}
|
|
3506
|
-
}), zr =
|
|
3507
|
-
function
|
|
3440
|
+
}), zr = Sl;
|
|
3441
|
+
function vl(e, t) {
|
|
3508
3442
|
const n = e;
|
|
3509
3443
|
if (e.mode === "composition")
|
|
3510
3444
|
return n.__getInstance(t) || e.global;
|
|
@@ -3513,13 +3447,13 @@ function Al(e, t) {
|
|
|
3513
3447
|
return r != null ? r.__composer : e.global.__composer;
|
|
3514
3448
|
}
|
|
3515
3449
|
}
|
|
3516
|
-
function
|
|
3450
|
+
function Al(e) {
|
|
3517
3451
|
const t = (o) => {
|
|
3518
3452
|
process.env.NODE_ENV !== "production" && er(Rt(Ne.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
|
|
3519
3453
|
const { instance: i, value: l } = o;
|
|
3520
3454
|
if (!i || !i.$)
|
|
3521
|
-
throw
|
|
3522
|
-
const c =
|
|
3455
|
+
throw de(X.UNEXPECTED_ERROR);
|
|
3456
|
+
const c = vl(e, i.$), f = Zr(l);
|
|
3523
3457
|
return [
|
|
3524
3458
|
Reflect.apply(c.t, c, [...ea(f)]),
|
|
3525
3459
|
c
|
|
@@ -3554,24 +3488,24 @@ function Zr(e) {
|
|
|
3554
3488
|
return { path: e };
|
|
3555
3489
|
if (V(e)) {
|
|
3556
3490
|
if (!("path" in e))
|
|
3557
|
-
throw
|
|
3491
|
+
throw de(X.REQUIRED_VALUE, "path");
|
|
3558
3492
|
return e;
|
|
3559
3493
|
} else
|
|
3560
|
-
throw
|
|
3494
|
+
throw de(X.INVALID_VALUE);
|
|
3561
3495
|
}
|
|
3562
3496
|
function ea(e) {
|
|
3563
3497
|
const { path: t, locale: n, args: r, choice: a, plural: s } = e, o = {}, i = r || {};
|
|
3564
3498
|
return I(n) && (o.locale = n), ae(a) && (o.plural = a), ae(s) && (o.plural = s), [t, i, o];
|
|
3565
3499
|
}
|
|
3566
|
-
function
|
|
3500
|
+
function yl(e, t, ...n) {
|
|
3567
3501
|
const r = V(n[0]) ? n[0] : {};
|
|
3568
|
-
($(r.globalInstall) ? r.globalInstall : !0) && ([Jr.name, "I18nT"].forEach((s) => e.component(s, Jr)), [zr.name, "I18nN"].forEach((s) => e.component(s, zr)), [na.name, "I18nD"].forEach((s) => e.component(s, na))), e.directive("t",
|
|
3502
|
+
($(r.globalInstall) ? r.globalInstall : !0) && ([Jr.name, "I18nT"].forEach((s) => e.component(s, Jr)), [zr.name, "I18nN"].forEach((s) => e.component(s, zr)), [na.name, "I18nD"].forEach((s) => e.component(s, na))), e.directive("t", Al(t));
|
|
3569
3503
|
}
|
|
3570
|
-
const
|
|
3571
|
-
function
|
|
3504
|
+
const Nl = /* @__PURE__ */ Oe("global-vue-i18n");
|
|
3505
|
+
function Tl(e = {}) {
|
|
3572
3506
|
const t = __VUE_I18N_LEGACY_API__ && $(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
|
|
3573
3507
|
process.env.NODE_ENV !== "production" && t && er(Rt(Ne.DEPRECATE_LEGACY_MODE));
|
|
3574
|
-
const n = $(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [a, s] =
|
|
3508
|
+
const n = $(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [a, s] = Ol(e, t), o = /* @__PURE__ */ Oe(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
3575
3509
|
function i(u) {
|
|
3576
3510
|
return r.get(u) || null;
|
|
3577
3511
|
}
|
|
@@ -3593,20 +3527,20 @@ function Ol(e = {}) {
|
|
|
3593
3527
|
f.__composerExtend = E.__composerExtend, f.__vueI18nExtend = E.__vueI18nExtend;
|
|
3594
3528
|
}
|
|
3595
3529
|
let p = null;
|
|
3596
|
-
!t && n && (p =
|
|
3530
|
+
!t && n && (p = kl(u, f.global)), __VUE_I18N_FULL_INSTALL__ && yl(u, f, ...m), __VUE_I18N_LEGACY_API__ && t && u.mixin(gl(s, s.__composer, f));
|
|
3597
3531
|
const A = u.unmount;
|
|
3598
3532
|
if (u.unmount = () => {
|
|
3599
3533
|
p && p(), f.dispose(), A();
|
|
3600
3534
|
}, process.env.NODE_ENV !== "production") {
|
|
3601
|
-
if (!await
|
|
3602
|
-
throw
|
|
3535
|
+
if (!await al(u, f))
|
|
3536
|
+
throw de(X.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
3603
3537
|
const C = tr();
|
|
3604
3538
|
if (t) {
|
|
3605
3539
|
const h = s;
|
|
3606
3540
|
h.__enableEmitter && h.__enableEmitter(C);
|
|
3607
3541
|
} else {
|
|
3608
3542
|
const h = s;
|
|
3609
|
-
h[
|
|
3543
|
+
h[ze] && h[ze](C);
|
|
3610
3544
|
}
|
|
3611
3545
|
C.on("*", Dt);
|
|
3612
3546
|
}
|
|
@@ -3630,55 +3564,55 @@ function Ol(e = {}) {
|
|
|
3630
3564
|
return f;
|
|
3631
3565
|
}
|
|
3632
3566
|
function ur(e = {}) {
|
|
3633
|
-
const t =
|
|
3567
|
+
const t = yt();
|
|
3634
3568
|
if (t == null)
|
|
3635
|
-
throw
|
|
3569
|
+
throw de(X.MUST_BE_CALL_SETUP_TOP);
|
|
3636
3570
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
3637
|
-
throw
|
|
3638
|
-
const n =
|
|
3571
|
+
throw de(X.NOT_INSTALLED);
|
|
3572
|
+
const n = Il(t), r = Ll(n), a = Ja(t), s = Cl(e, a);
|
|
3639
3573
|
if (s === "global")
|
|
3640
|
-
return
|
|
3574
|
+
return za(r, e, a), r;
|
|
3641
3575
|
if (s === "parent") {
|
|
3642
|
-
let l =
|
|
3643
|
-
return l == null && (process.env.NODE_ENV !== "production" &&
|
|
3576
|
+
let l = wl(n, t, e.__useComponent);
|
|
3577
|
+
return l == null && (process.env.NODE_ENV !== "production" && (Rt(Ne.NOT_FOUND_PARENT_SCOPE), void 0), l = r), l;
|
|
3644
3578
|
}
|
|
3645
3579
|
const o = n;
|
|
3646
3580
|
let i = o.__getInstance(t);
|
|
3647
3581
|
if (i == null) {
|
|
3648
3582
|
const l = ie({}, e);
|
|
3649
|
-
"__i18n" in a && (l.__i18n = a.__i18n), r && (l.__root = r), i = ir(l), o.__composerExtend && (i[Gn] = o.__composerExtend(i)),
|
|
3583
|
+
"__i18n" in a && (l.__i18n = a.__i18n), r && (l.__root = r), i = ir(l), o.__composerExtend && (i[Gn] = o.__composerExtend(i)), Rl(o, t, i), o.__setInstance(t, i);
|
|
3650
3584
|
}
|
|
3651
3585
|
return i;
|
|
3652
3586
|
}
|
|
3653
|
-
function
|
|
3654
|
-
const n =
|
|
3587
|
+
function Ol(e, t) {
|
|
3588
|
+
const n = ws(), r = __VUE_I18N_LEGACY_API__ && t ? n.run(() => Wn(e)) : n.run(() => ir(e));
|
|
3655
3589
|
if (r == null)
|
|
3656
|
-
throw
|
|
3590
|
+
throw de(X.UNEXPECTED_ERROR);
|
|
3657
3591
|
return [n, r];
|
|
3658
3592
|
}
|
|
3659
|
-
function
|
|
3660
|
-
const t =
|
|
3593
|
+
function Il(e) {
|
|
3594
|
+
const t = ks(e.isCE ? Nl : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
3661
3595
|
if (!t)
|
|
3662
|
-
throw
|
|
3596
|
+
throw de(e.isCE ? X.NOT_INSTALLED_WITH_PROVIDE : X.UNEXPECTED_ERROR);
|
|
3663
3597
|
return t;
|
|
3664
3598
|
}
|
|
3665
|
-
function
|
|
3599
|
+
function Cl(e, t) {
|
|
3666
3600
|
return Qt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
3667
3601
|
}
|
|
3668
|
-
function
|
|
3602
|
+
function Ll(e) {
|
|
3669
3603
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
3670
3604
|
}
|
|
3671
|
-
function
|
|
3605
|
+
function wl(e, t, n = !1) {
|
|
3672
3606
|
let r = null;
|
|
3673
3607
|
const a = t.root;
|
|
3674
|
-
let s =
|
|
3608
|
+
let s = Dl(t, n);
|
|
3675
3609
|
for (; s != null; ) {
|
|
3676
3610
|
const o = e;
|
|
3677
3611
|
if (e.mode === "composition")
|
|
3678
3612
|
r = o.__getInstance(s);
|
|
3679
3613
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
3680
3614
|
const i = o.__getInstance(s);
|
|
3681
|
-
i != null && (r = i.__composer, n && r && !r[
|
|
3615
|
+
i != null && (r = i.__composer, n && r && !r[Qa] && (r = null));
|
|
3682
3616
|
}
|
|
3683
3617
|
if (r != null || a === s)
|
|
3684
3618
|
break;
|
|
@@ -3686,36 +3620,36 @@ function Dl(e, t, n = !1) {
|
|
|
3686
3620
|
}
|
|
3687
3621
|
return r;
|
|
3688
3622
|
}
|
|
3689
|
-
function
|
|
3623
|
+
function Dl(e, t = !1) {
|
|
3690
3624
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
3691
3625
|
}
|
|
3692
|
-
function
|
|
3626
|
+
function Rl(e, t, n) {
|
|
3693
3627
|
let r = null;
|
|
3694
|
-
|
|
3628
|
+
Fs(() => {
|
|
3695
3629
|
if (process.env.NODE_ENV !== "production" && t.vnode.el) {
|
|
3696
3630
|
t.vnode.el.__VUE_I18N__ = n, r = tr();
|
|
3697
3631
|
const a = n;
|
|
3698
|
-
a[
|
|
3632
|
+
a[ze] && a[ze](r), r.on("*", Dt);
|
|
3699
3633
|
}
|
|
3700
|
-
}, t),
|
|
3634
|
+
}, t), Ms(() => {
|
|
3701
3635
|
const a = n;
|
|
3702
3636
|
process.env.NODE_ENV !== "production" && t.vnode.el && t.vnode.el.__VUE_I18N__ && (r && r.off("*", Dt), a[Lt] && a[Lt](), delete t.vnode.el.__VUE_I18N__), e.__deleteInstance(t);
|
|
3703
3637
|
const s = a[Gn];
|
|
3704
3638
|
s && (s(), delete a[Gn]);
|
|
3705
3639
|
}, t);
|
|
3706
3640
|
}
|
|
3707
|
-
const
|
|
3641
|
+
const Pl = [
|
|
3708
3642
|
"locale",
|
|
3709
3643
|
"fallbackLocale",
|
|
3710
3644
|
"availableLocales"
|
|
3711
3645
|
], ta = ["t", "rt", "d", "n", "tm", "te"];
|
|
3712
|
-
function
|
|
3646
|
+
function kl(e, t) {
|
|
3713
3647
|
const n = /* @__PURE__ */ Object.create(null);
|
|
3714
|
-
return
|
|
3648
|
+
return Pl.forEach((a) => {
|
|
3715
3649
|
const s = Object.getOwnPropertyDescriptor(t, a);
|
|
3716
3650
|
if (!s)
|
|
3717
|
-
throw
|
|
3718
|
-
const o =
|
|
3651
|
+
throw de(X.UNEXPECTED_ERROR);
|
|
3652
|
+
const o = Ps(s.value) ? {
|
|
3719
3653
|
get() {
|
|
3720
3654
|
return s.value.value;
|
|
3721
3655
|
},
|
|
@@ -3732,7 +3666,7 @@ function Fl(e, t) {
|
|
|
3732
3666
|
}), e.config.globalProperties.$i18n = n, ta.forEach((a) => {
|
|
3733
3667
|
const s = Object.getOwnPropertyDescriptor(t, a);
|
|
3734
3668
|
if (!s || !s.value)
|
|
3735
|
-
throw
|
|
3669
|
+
throw de(X.UNEXPECTED_ERROR);
|
|
3736
3670
|
Object.defineProperty(e.config.globalProperties, `$${a}`, s);
|
|
3737
3671
|
}), () => {
|
|
3738
3672
|
delete e.config.globalProperties.$i18n, ta.forEach((a) => {
|
|
@@ -3740,7 +3674,7 @@ function Fl(e, t) {
|
|
|
3740
3674
|
});
|
|
3741
3675
|
};
|
|
3742
3676
|
}
|
|
3743
|
-
const
|
|
3677
|
+
const Fl = /* @__PURE__ */ Jn({
|
|
3744
3678
|
/* eslint-disable */
|
|
3745
3679
|
name: "i18n-d",
|
|
3746
3680
|
props: ie({
|
|
@@ -3759,22 +3693,22 @@ const Ml = /* @__PURE__ */ Jn({
|
|
|
3759
3693
|
useScope: e.scope,
|
|
3760
3694
|
__useComponent: !0
|
|
3761
3695
|
});
|
|
3762
|
-
return
|
|
3696
|
+
return rs(e, t, Ya, (...r) => (
|
|
3763
3697
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3764
3698
|
n[xn](...r)
|
|
3765
3699
|
));
|
|
3766
3700
|
}
|
|
3767
|
-
}), na =
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3701
|
+
}), na = Fl;
|
|
3702
|
+
Ji();
|
|
3703
|
+
vi(Zo);
|
|
3704
|
+
Ai(gi);
|
|
3705
|
+
yi(Fa);
|
|
3772
3706
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3773
|
-
const e =
|
|
3774
|
-
e.__INTLIFY__ = !0,
|
|
3707
|
+
const e = je();
|
|
3708
|
+
e.__INTLIFY__ = !0, ei(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
3775
3709
|
}
|
|
3776
3710
|
process.env.NODE_ENV;
|
|
3777
|
-
const
|
|
3711
|
+
const as = Tl({
|
|
3778
3712
|
legacy: !1,
|
|
3779
3713
|
locale: "zh",
|
|
3780
3714
|
//默认显示的语言
|
|
@@ -3790,22 +3724,22 @@ const os = Ol({
|
|
|
3790
3724
|
missingWarn: !1,
|
|
3791
3725
|
silentFallbackWarn: !0,
|
|
3792
3726
|
fallbackWarn: !1
|
|
3793
|
-
}),
|
|
3794
|
-
async function
|
|
3727
|
+
}), Ke = as.global;
|
|
3728
|
+
async function Ml(e, t) {
|
|
3795
3729
|
const n = await t(e);
|
|
3796
|
-
|
|
3730
|
+
Ke.setLocaleMessage(e, n), Ke.locale && Ke.locale.value !== void 0 ? Ke.locale.value = e : Ke.locale = e;
|
|
3797
3731
|
}
|
|
3798
|
-
const
|
|
3799
|
-
function
|
|
3732
|
+
const nt = "__system:language__", rt = "zh";
|
|
3733
|
+
function Ul() {
|
|
3800
3734
|
return (window.navigator.language || navigator.browserLanguage || navigator.userLanguage || "").toLowerCase().trim();
|
|
3801
3735
|
}
|
|
3802
|
-
function
|
|
3736
|
+
function Bl(e) {
|
|
3803
3737
|
return e ? e.toLowerCase().trim() : "";
|
|
3804
3738
|
}
|
|
3805
3739
|
const Pt = Be("cloudSdkLanguageStore", {
|
|
3806
3740
|
state: () => ({
|
|
3807
|
-
languageDefault:
|
|
3808
|
-
languageName: D.localGet(
|
|
3741
|
+
languageDefault: rt,
|
|
3742
|
+
languageName: D.localGet(nt) || rt,
|
|
3809
3743
|
/**
|
|
3810
3744
|
* 语言类型
|
|
3811
3745
|
*/
|
|
@@ -3823,25 +3757,25 @@ const Pt = Be("cloudSdkLanguageStore", {
|
|
|
3823
3757
|
}),
|
|
3824
3758
|
getters: {
|
|
3825
3759
|
languageSelect: (e) => {
|
|
3826
|
-
let t = []
|
|
3827
|
-
|
|
3760
|
+
let t = [];
|
|
3761
|
+
return (e.languageList || []).forEach((r, a) => {
|
|
3828
3762
|
t.push({
|
|
3829
|
-
label:
|
|
3830
|
-
value:
|
|
3763
|
+
label: r,
|
|
3764
|
+
value: a
|
|
3831
3765
|
});
|
|
3832
|
-
|
|
3766
|
+
}), t;
|
|
3833
3767
|
}
|
|
3834
3768
|
},
|
|
3835
3769
|
actions: {
|
|
3836
3770
|
// 初始化
|
|
3837
3771
|
async init() {
|
|
3838
|
-
let e =
|
|
3839
|
-
e = localStorage.getItem(
|
|
3772
|
+
let e = Ul() || rt;
|
|
3773
|
+
e = localStorage.getItem(nt) || e;
|
|
3840
3774
|
const t = cvUtils.urlGetParameterAll();
|
|
3841
|
-
t.language && (e = t.language), e =
|
|
3775
|
+
t.language && (e = t.language), e = Bl(e), Object.keys(this.languageList).includes(e) ? this.languageName = e === "zh-cn" ? "zh" : e : this.languageName = rt, localStorage.setItem(nt, this.languageName);
|
|
3842
3776
|
},
|
|
3843
3777
|
async clear_cache() {
|
|
3844
|
-
D.localSet(
|
|
3778
|
+
D.localSet(nt, rt);
|
|
3845
3779
|
},
|
|
3846
3780
|
/**
|
|
3847
3781
|
* 默认语言
|
|
@@ -3861,7 +3795,7 @@ const Pt = Be("cloudSdkLanguageStore", {
|
|
|
3861
3795
|
* @returns
|
|
3862
3796
|
*/
|
|
3863
3797
|
SA_LANGUAGE_GET() {
|
|
3864
|
-
return this.languageName = localStorage.getItem(
|
|
3798
|
+
return this.languageName = localStorage.getItem(nt) || rt, this.languageName;
|
|
3865
3799
|
},
|
|
3866
3800
|
/**
|
|
3867
3801
|
* 设置语言、保存语言
|
|
@@ -3869,10 +3803,10 @@ const Pt = Be("cloudSdkLanguageStore", {
|
|
|
3869
3803
|
* @param silence
|
|
3870
3804
|
*/
|
|
3871
3805
|
SA_LANGUAGE_SET(e) {
|
|
3872
|
-
this.languageName = e, D.localSet(
|
|
3806
|
+
this.languageName = e, D.localSet(nt, e), Ke.locale.value = e;
|
|
3873
3807
|
}
|
|
3874
3808
|
}
|
|
3875
|
-
}), ra = "__system:themes__",
|
|
3809
|
+
}), ra = "__system:themes__", xl = "light", Nn = "__system:layoutSidebarState__", Vl = "on", aa = "__system:layoutNavTabs__", Gl = "on", $l = "__system:layoutWatermark__", Wl = "on";
|
|
3876
3810
|
function sa() {
|
|
3877
3811
|
let e = typeof window < "u" && window.navigator.userAgent.toLowerCase();
|
|
3878
3812
|
return `${e.match(/Chrome/i)}` == "chrome" ? "chrome" : `${e.match(/Webkit/i)}` == "webkit" ? "webkit" : null;
|
|
@@ -3883,17 +3817,17 @@ const Ue = Be("cloudSdkThemesStore", {
|
|
|
3883
3817
|
/**
|
|
3884
3818
|
* 上边切换卡
|
|
3885
3819
|
*/
|
|
3886
|
-
layoutNavTabs: D.localGet(aa) ||
|
|
3820
|
+
layoutNavTabs: D.localGet(aa) || Gl,
|
|
3887
3821
|
/**
|
|
3888
3822
|
* 左边侧栏
|
|
3889
3823
|
*/
|
|
3890
|
-
layoutSidebarState: D.localGet(Nn) ||
|
|
3824
|
+
layoutSidebarState: D.localGet(Nn) || Vl,
|
|
3891
3825
|
/**
|
|
3892
3826
|
* 主题皮肤
|
|
3893
3827
|
* auto|light|dark
|
|
3894
3828
|
* 自动生成
|
|
3895
3829
|
*/
|
|
3896
|
-
themesName: D.localGet(ra) ||
|
|
3830
|
+
themesName: D.localGet(ra) || xl,
|
|
3897
3831
|
themesList: [
|
|
3898
3832
|
{ name: "跟随系统", value: "auto" },
|
|
3899
3833
|
{ name: "明亮", value: "light" },
|
|
@@ -3902,7 +3836,7 @@ const Ue = Be("cloudSdkThemesStore", {
|
|
|
3902
3836
|
/**
|
|
3903
3837
|
* 水印
|
|
3904
3838
|
*/
|
|
3905
|
-
watermarkState: D.localGet(
|
|
3839
|
+
watermarkState: D.localGet($l) || Wl
|
|
3906
3840
|
}),
|
|
3907
3841
|
actions: {
|
|
3908
3842
|
async init() {
|
|
@@ -3928,9 +3862,9 @@ const Ue = Be("cloudSdkThemesStore", {
|
|
|
3928
3862
|
},
|
|
3929
3863
|
// 设置上边nav
|
|
3930
3864
|
SA_LAYOUT_NAVTABS_SET(e) {
|
|
3931
|
-
|
|
3865
|
+
me.__POWERED_BY_QIANKUN__ && (e = "off"), this.layoutNavTabs = e;
|
|
3932
3866
|
const t = document.querySelector("html");
|
|
3933
|
-
t.classList.remove(e == "off" ? "openNavtabs" : "hideNavtabs"), t.classList.add(e == "on" ? "openNavtabs" : "hideNavtabs"),
|
|
3867
|
+
t.classList.remove(e == "off" ? "openNavtabs" : "hideNavtabs"), t.classList.add(e == "on" ? "openNavtabs" : "hideNavtabs"), me.__POWERED_BY_QIANKUN__ || D.localSet(aa, e);
|
|
3934
3868
|
},
|
|
3935
3869
|
/**
|
|
3936
3870
|
* 设置主题
|
|
@@ -3969,7 +3903,7 @@ const Ue = Be("cloudSdkThemesStore", {
|
|
|
3969
3903
|
n.classList.remove(this.themesName == "dark" ? "light" : "dark"), n.classList.add(this.themesName), D.localSet(ra, this.themesName);
|
|
3970
3904
|
}
|
|
3971
3905
|
}
|
|
3972
|
-
}), Gt = cvDom.windowWidth(),
|
|
3906
|
+
}), Gt = cvDom.windowWidth(), Yl = cvDom.windowHeight(), Tn = cvDom.screenOrientation(), ss = Be("cloudSdkWindowStore", {
|
|
3973
3907
|
state: () => ({
|
|
3974
3908
|
// 窗口是否激活
|
|
3975
3909
|
windowActive: !0,
|
|
@@ -3980,7 +3914,7 @@ const Ue = Be("cloudSdkThemesStore", {
|
|
|
3980
3914
|
// 浏览器尺寸信息
|
|
3981
3915
|
windowWidth: Gt,
|
|
3982
3916
|
// 窗口宽度
|
|
3983
|
-
windowHeight:
|
|
3917
|
+
windowHeight: Yl,
|
|
3984
3918
|
// 浏览器窗口方向
|
|
3985
3919
|
windowOrientation: Tn,
|
|
3986
3920
|
windowLandscape: Tn === "landscape",
|
|
@@ -4011,18 +3945,18 @@ const Ue = Be("cloudSdkThemesStore", {
|
|
|
4011
3945
|
SA_GET_SIZE_TYPE() {
|
|
4012
3946
|
switch (!0) {
|
|
4013
3947
|
case this.windowWidth <= 768:
|
|
4014
|
-
return
|
|
3948
|
+
return "app-small-768";
|
|
4015
3949
|
case this.windowWidth <= 992:
|
|
4016
|
-
return
|
|
3950
|
+
return "app-small-992";
|
|
4017
3951
|
case this.windowWidth <= 1200:
|
|
4018
|
-
return
|
|
3952
|
+
return "app-small-1200";
|
|
4019
3953
|
}
|
|
4020
3954
|
},
|
|
4021
3955
|
SA_GET_WINDOW_WIDTH() {
|
|
4022
3956
|
return this.winSizeName = this.SA_GET_SIZE_TYPE(), this.winSizeName;
|
|
4023
3957
|
}
|
|
4024
3958
|
}
|
|
4025
|
-
}),
|
|
3959
|
+
}), Et = "__system:keyboardConf__", On = "__syCacheApiFlag__", In = "__syCacheApiAuth__", oa = "__syCacheApiCode__", ia = "__syCacheApiKey__", la = "__syCacheSystemConfig__", fr = Be("cloudSdkSystemStore", {
|
|
4026
3960
|
state: () => ({
|
|
4027
3961
|
// ServerUrl
|
|
4028
3962
|
cacheServerUrl: "",
|
|
@@ -4070,36 +4004,36 @@ const Ue = Be("cloudSdkThemesStore", {
|
|
|
4070
4004
|
},
|
|
4071
4005
|
async clear_cache() {
|
|
4072
4006
|
await gbIdbObj.idbDelItem("clearCache"), await gbIdbObj.idbDelItem("clientCacheVersion");
|
|
4073
|
-
const e = D.localGet(
|
|
4074
|
-
D.localSet(
|
|
4007
|
+
const e = D.localGet(Et);
|
|
4008
|
+
D.localSet(Et, e), D.localDel(On), D.localDel(In);
|
|
4075
4009
|
},
|
|
4076
4010
|
async cache_read() {
|
|
4077
4011
|
this.clientId = await gbIdbObj.idbGetString("clientId"), this.cacheServerUrl = await gbIdbObj.idbGetString("cacheServerUrl"), this.cacheServerUrl && (window.systemInfo.apiUrl = this.cacheServerUrl);
|
|
4078
4012
|
},
|
|
4079
4013
|
async __load_api_flag() {
|
|
4080
4014
|
let e = await gbIdbObj.idbGetItem(On);
|
|
4081
|
-
e || await
|
|
4015
|
+
e || await fe.flagGet("BASE_LOAD_COMMON_API_FLAG", {}).then((t) => {
|
|
4082
4016
|
e = t.data || {}, window._SY_OPEN_API_FLAG_ || (window._SY_OPEN_API_FLAG_ = {}), window._SY_OPEN_API_FLAG_ = Object.assign(window._SY_OPEN_API_FLAG_, e), gbIdbObj.idbSetItem(On, e);
|
|
4083
|
-
}), await
|
|
4017
|
+
}), await fe.appendApiFlag(e);
|
|
4084
4018
|
},
|
|
4085
4019
|
async __load_api_auth() {
|
|
4086
4020
|
let e = await gbIdbObj.idbGetItem(In);
|
|
4087
|
-
e || await
|
|
4021
|
+
e || await fe.flagGet("BASE_LOAD_COMMON_API_AUTH", {}).then((t) => {
|
|
4088
4022
|
e = t.data || {}, window._SY_OPEN_API_FLAG_ || (window._SY_OPEN_API_FLAG_ = {}), window._SY_OPEN_API_FLAG_ = Object.assign(window._SY_OPEN_API_FLAG_, e), gbIdbObj.idbSetItem(In, e);
|
|
4089
|
-
}), await
|
|
4023
|
+
}), await fe.appendApiAuth(e);
|
|
4090
4024
|
},
|
|
4091
4025
|
async __load_api_code() {
|
|
4092
4026
|
let e = await gbIdbObj.idbGetItem(oa);
|
|
4093
|
-
e || await
|
|
4027
|
+
e || await fe.flagGet("BASE_LOAD_COMMON_API_CODE", {}).then((t) => {
|
|
4094
4028
|
e = t.data || {}, gbIdbObj.idbSetItem(oa, e);
|
|
4095
4029
|
});
|
|
4096
4030
|
},
|
|
4097
4031
|
async __load_api_key() {
|
|
4098
|
-
this.clientId = await gbIdbObj.idbGetString("clientId"), this.clientId || (this.clientId = cvUtils.randomString(6), await gbIdbObj.idbSetItem("clientId", this.clientId)), this.apiKeyData = await gbIdbObj.idbGetItem(ia), this.apiKeyData || await
|
|
4032
|
+
this.clientId = await gbIdbObj.idbGetString("clientId"), this.clientId || (this.clientId = cvUtils.randomString(6), await gbIdbObj.idbSetItem("clientId", this.clientId)), this.apiKeyData = await gbIdbObj.idbGetItem(ia), this.apiKeyData || await fe.setOptions({ encrypt: !1 }).flagGet("BASE_ACCSYS_COMMON_KEYCLIENT", {
|
|
4099
4033
|
client_id: this.clientId
|
|
4100
4034
|
}).then(({ data: e }) => {
|
|
4101
4035
|
this.apiKeyData = e, gbIdbObj.idbSetItem(ia, this.apiKeyData);
|
|
4102
|
-
}),
|
|
4036
|
+
}), fe.setHeaders({
|
|
4103
4037
|
"Sy-Client-Id": this.clientId
|
|
4104
4038
|
});
|
|
4105
4039
|
},
|
|
@@ -4108,7 +4042,7 @@ const Ue = Be("cloudSdkThemesStore", {
|
|
|
4108
4042
|
* @returns {Promise<unknown>}
|
|
4109
4043
|
*/
|
|
4110
4044
|
async __load_system_config() {
|
|
4111
|
-
this.systemConfig = await gbIdbObj.idbGetItem(la), this.systemConfig || await
|
|
4045
|
+
this.systemConfig = await gbIdbObj.idbGetItem(la), this.systemConfig || await fe.flagGet("BASE_SYS_COMMON_PLAT_SETTING", {}).then(({ data: e }) => {
|
|
4112
4046
|
this.systemConfig = Object.assign({}, this.systemConfig, e), gbIdbObj.idbSetItem(la, this.systemConfig);
|
|
4113
4047
|
});
|
|
4114
4048
|
},
|
|
@@ -4119,10 +4053,10 @@ const Ue = Be("cloudSdkThemesStore", {
|
|
|
4119
4053
|
*/
|
|
4120
4054
|
SA_KEYBOARD_SET(e) {
|
|
4121
4055
|
return new Promise((t) => {
|
|
4122
|
-
let n = D.localGet(
|
|
4123
|
-
n || (D.localSet(
|
|
4056
|
+
let n = D.localGet(Et);
|
|
4057
|
+
n || (D.localSet(Et, D.localGet("__keyboard:data__")), D.localDel("__keyboard:data__"));
|
|
4124
4058
|
const r = e || n || {};
|
|
4125
|
-
r.screenshot_key = (r.screenshot_key || "").trim().toLowerCase(), r.send_button_app = r.send_button_app || "button", r.send_button_desktop = r.send_button_desktop || "enter", D.localSet(
|
|
4059
|
+
r.screenshot_key = (r.screenshot_key || "").trim().toLowerCase(), r.send_button_app = r.send_button_app || "button", r.send_button_desktop = r.send_button_desktop || "enter", D.localSet(Et, r), this.cacheKeyboard = r, cvUtils.__cc_isElectron, t(r);
|
|
4126
4060
|
});
|
|
4127
4061
|
},
|
|
4128
4062
|
/**
|
|
@@ -4143,7 +4077,7 @@ const Ue = Be("cloudSdkThemesStore", {
|
|
|
4143
4077
|
const o = {
|
|
4144
4078
|
keyId: s || e
|
|
4145
4079
|
};
|
|
4146
|
-
|
|
4080
|
+
fe.setTimeout(8e3).flagGet("base.base_sys/get_info", { ip: e }).then(() => {
|
|
4147
4081
|
D.localSet(n, o), typeof t == "function" && t(s);
|
|
4148
4082
|
});
|
|
4149
4083
|
}
|
|
@@ -4152,7 +4086,7 @@ const Ue = Be("cloudSdkThemesStore", {
|
|
|
4152
4086
|
function Yn(e) {
|
|
4153
4087
|
return typeof e == "string" && e.trim() !== "" && e !== "undefined";
|
|
4154
4088
|
}
|
|
4155
|
-
const
|
|
4089
|
+
const at = "syCacheAppInfo", ke = "syCacheAppToken", bt = "syCacheAppJwt", St = "syCacheAppRbac", ca = {
|
|
4156
4090
|
nickname: "",
|
|
4157
4091
|
staff_nickname: "",
|
|
4158
4092
|
id: 0,
|
|
@@ -4179,9 +4113,9 @@ const st = "syCacheAppInfo", ke = "syCacheAppToken", St = "syCacheAppJwt", vt =
|
|
|
4179
4113
|
// 权限
|
|
4180
4114
|
accountRbacData: [],
|
|
4181
4115
|
// 账号信息
|
|
4182
|
-
accountInfo: D.localGet(
|
|
4116
|
+
accountInfo: D.localGet(at) || {},
|
|
4183
4117
|
accountToken: D.localGet(ke) || "",
|
|
4184
|
-
accountJwt: D.localGet(
|
|
4118
|
+
accountJwt: D.localGet(bt) || ""
|
|
4185
4119
|
}),
|
|
4186
4120
|
getters: {
|
|
4187
4121
|
cacheBizsId: (e) => {
|
|
@@ -4239,7 +4173,7 @@ const st = "syCacheAppInfo", ke = "syCacheAppToken", St = "syCacheAppJwt", vt =
|
|
|
4239
4173
|
},
|
|
4240
4174
|
SA_ACCOUNT_INFO_REFRESH() {
|
|
4241
4175
|
return new Promise((e, t) => {
|
|
4242
|
-
|
|
4176
|
+
fe.flagGet("BASE_ACCSYS_COMMON_INFO", {}).then(({ data: n }) => {
|
|
4243
4177
|
n = this._SA_ACCOUNT_INFO_PARSE(n), e(n);
|
|
4244
4178
|
}).catch((n) => {
|
|
4245
4179
|
t(n);
|
|
@@ -4257,28 +4191,28 @@ const st = "syCacheAppInfo", ke = "syCacheAppToken", St = "syCacheAppJwt", vt =
|
|
|
4257
4191
|
SA_ACCOUNT_INFO_SET(e) {
|
|
4258
4192
|
return new Promise(async (t) => {
|
|
4259
4193
|
const n = JSON.parse(JSON.stringify(e));
|
|
4260
|
-
this.accountInfo = this.SA_ACCOUNT_INFO_PARSE(n), this.accountToken = n.token_access, await gbIdbObj.idbSetItem("accountInfo", n), D.localSet(
|
|
4194
|
+
this.accountInfo = this.SA_ACCOUNT_INFO_PARSE(n), this.accountToken = n.token_access, await gbIdbObj.idbSetItem("accountInfo", n), D.localSet(at, this.accountInfo), t();
|
|
4261
4195
|
});
|
|
4262
4196
|
},
|
|
4263
4197
|
SA_ACCOUNT_GET_NICK() {
|
|
4264
4198
|
return this.account_nick;
|
|
4265
4199
|
},
|
|
4266
4200
|
SA_ACCOUNT_REFRESH() {
|
|
4267
|
-
this.accountInfo = D.localGet(
|
|
4201
|
+
this.accountInfo = D.localGet(at) || ca, this.accountToken = D.localGet(ke) || "", this.accountJwt = D.localGet(bt) || "", fe.setDefHeaders({
|
|
4268
4202
|
syOpenAppToken: this.accountToken || "",
|
|
4269
4203
|
Authorization: "Bearer " + this.accountJwt || ""
|
|
4270
4204
|
});
|
|
4271
4205
|
},
|
|
4272
4206
|
// 登录
|
|
4273
4207
|
async SA_ACCOUNT_SIGNIN(e) {
|
|
4274
|
-
e = this.SA_ACCOUNT_INFO_PARSE(e), D.localSet(
|
|
4208
|
+
e = this.SA_ACCOUNT_INFO_PARSE(e), D.localSet(at, e), D.localSet(ke, e.token_access || ""), D.localSet(bt, e.token_jwt || ""), D.localSet(St, ""), this.SA_ACCOUNT_REFRESH(), await this.SA_ACCOUNT_RBAC_REFRESH(!0), gbIdbObj.idbSave(ke, e.token_access || ""), Tt().QK_SEND_LOGIN_MSG();
|
|
4275
4209
|
},
|
|
4276
4210
|
/**
|
|
4277
4211
|
* 登出(打开登录页面)
|
|
4278
4212
|
* @param appendFrom
|
|
4279
4213
|
*/
|
|
4280
4214
|
SA_ACCOUNT_LOGOUT() {
|
|
4281
|
-
this.ACCOUNT_SET_PREV(), D.sessionClear(), D.localSet(
|
|
4215
|
+
this.ACCOUNT_SET_PREV(), D.sessionClear(), D.localSet(at, ""), D.localSet(ke, ""), D.localSet(bt, ""), D.localSet(St, ""), D.localDel(at), D.localDel(ke), D.localDel(bt), D.localDel(St), this.SA_ACCOUNT_REFRESH(), Tt().QK_SEND_LOGOUT_MSG();
|
|
4282
4216
|
},
|
|
4283
4217
|
/**
|
|
4284
4218
|
* @param {Boolean} isForce 是否强制刷新
|
|
@@ -4286,9 +4220,9 @@ const st = "syCacheAppInfo", ke = "syCacheAppToken", St = "syCacheAppJwt", vt =
|
|
|
4286
4220
|
async SA_ACCOUNT_RBAC_REFRESH(e) {
|
|
4287
4221
|
return e = e || !1, new Promise(async (t) => {
|
|
4288
4222
|
if (this.accountToken) {
|
|
4289
|
-
let n = D.localGet(
|
|
4290
|
-
e && n == "" ? await
|
|
4291
|
-
r.status == 100600 ? this.SA_ACCOUNT_LOGOUT() : r.status == 200 && (D.localSet(
|
|
4223
|
+
let n = D.localGet(St) || "";
|
|
4224
|
+
e && n == "" ? await fe.flagGet("ORG_SYS_BASE_MYRBAC", {}).then((r) => {
|
|
4225
|
+
r.status == 100600 ? this.SA_ACCOUNT_LOGOUT() : r.status == 200 && (D.localSet(St, r.data || ""), t(r.data || ""));
|
|
4292
4226
|
}).catch(() => {
|
|
4293
4227
|
t("");
|
|
4294
4228
|
}) : t(n);
|
|
@@ -4303,7 +4237,7 @@ const st = "syCacheAppInfo", ke = "syCacheAppToken", St = "syCacheAppJwt", vt =
|
|
|
4303
4237
|
function ua(e) {
|
|
4304
4238
|
return e = e.replace(/^\//, ""), e = e.replace(/\//g, "_"), e;
|
|
4305
4239
|
}
|
|
4306
|
-
function
|
|
4240
|
+
function os(e, t) {
|
|
4307
4241
|
t = t || 1;
|
|
4308
4242
|
let n = "";
|
|
4309
4243
|
e.path ? n = e.path : e.component && (n = e.component), e.component || (n = "");
|
|
@@ -4320,8 +4254,8 @@ function ls(e, t) {
|
|
|
4320
4254
|
name: r
|
|
4321
4255
|
};
|
|
4322
4256
|
}
|
|
4323
|
-
const
|
|
4324
|
-
function
|
|
4257
|
+
const Hl = {}, Kl = Hl, jl = Kl.VITE_SY_PRODUCT_SIGN;
|
|
4258
|
+
function is(e) {
|
|
4325
4259
|
let t = Object.prototype.toString.call(e);
|
|
4326
4260
|
if (t != "[object String]" && t != "[object Array]")
|
|
4327
4261
|
return !1;
|
|
@@ -4339,7 +4273,7 @@ function cs(e) {
|
|
|
4339
4273
|
function Kt(e, t) {
|
|
4340
4274
|
if (e = e || "", e = e.trim(), e == "")
|
|
4341
4275
|
return !1;
|
|
4342
|
-
e.includes("@") || (e = `${
|
|
4276
|
+
e.includes("@") || (e = `${jl}@${e}`);
|
|
4343
4277
|
let n = t || D.localGet("syCacheAppRbac") || "";
|
|
4344
4278
|
return n = n.trim(), Yn(n) ? n == '"all@all"' || n == "all@all" ? !0 : n.split(",").map((a) => a.trim()).includes(e) : !1;
|
|
4345
4279
|
}
|
|
@@ -4349,9 +4283,9 @@ const fa = {
|
|
|
4349
4283
|
"org-agent": "代理商平台",
|
|
4350
4284
|
"org-admin": "超管平台"
|
|
4351
4285
|
};
|
|
4352
|
-
let
|
|
4353
|
-
const
|
|
4354
|
-
system_type:
|
|
4286
|
+
let ls = fa[Nt().syAppConnectRole] ? fa[Nt().syAppConnectRole] : "管理系统";
|
|
4287
|
+
const ql = window.shiyunProductInfo || {
|
|
4288
|
+
system_type: ls
|
|
4355
4289
|
}, Zt = Be("cloudSdkProductStore", {
|
|
4356
4290
|
state: () => ({
|
|
4357
4291
|
// 默认应用信息
|
|
@@ -4359,7 +4293,7 @@ const Xl = window.shiyunProductInfo || {
|
|
|
4359
4293
|
/**
|
|
4360
4294
|
* 应用信息
|
|
4361
4295
|
*/
|
|
4362
|
-
info_title:
|
|
4296
|
+
info_title: Nt().syProductTitle || "ShiyunProduct",
|
|
4363
4297
|
info_logo: "",
|
|
4364
4298
|
info_version: "v1.25.xxxx",
|
|
4365
4299
|
// 版本
|
|
@@ -4379,7 +4313,7 @@ const Xl = window.shiyunProductInfo || {
|
|
|
4379
4313
|
*
|
|
4380
4314
|
*/
|
|
4381
4315
|
privacy_url: "//api.10yun.com/privacy.html",
|
|
4382
|
-
system_type:
|
|
4316
|
+
system_type: ls
|
|
4383
4317
|
// 后台系统类型
|
|
4384
4318
|
},
|
|
4385
4319
|
currMenuInfo: {},
|
|
@@ -4390,7 +4324,7 @@ const Xl = window.shiyunProductInfo || {
|
|
|
4390
4324
|
menuOriginal: []
|
|
4391
4325
|
}),
|
|
4392
4326
|
getters: {
|
|
4393
|
-
openProductInfo: (e) => Object.assign({}, e.defaultProductInfo,
|
|
4327
|
+
openProductInfo: (e) => Object.assign({}, e.defaultProductInfo, ql),
|
|
4394
4328
|
// 当前展开
|
|
4395
4329
|
menuCurrOpeneds: (e) => e.menuOpeneds,
|
|
4396
4330
|
// 当前拥有
|
|
@@ -4421,7 +4355,7 @@ const Xl = window.shiyunProductInfo || {
|
|
|
4421
4355
|
let i = [];
|
|
4422
4356
|
for (let l in s) {
|
|
4423
4357
|
let c = s[l];
|
|
4424
|
-
c =
|
|
4358
|
+
c = os(c, l), c.isMenu === !0 && (c.isRbac && !c.path || (c.children && c.children.length > 0 && (c.children = t(c.children, o)), c.collapsable === !1 && e.push(c.name), Kt(c.name, o) && i.push(c)));
|
|
4425
4359
|
}
|
|
4426
4360
|
return i;
|
|
4427
4361
|
}
|
|
@@ -4433,36 +4367,36 @@ const Xl = window.shiyunProductInfo || {
|
|
|
4433
4367
|
return this.menuTree;
|
|
4434
4368
|
}
|
|
4435
4369
|
}
|
|
4436
|
-
}),
|
|
4370
|
+
}), Xl = [
|
|
4437
4371
|
{
|
|
4438
4372
|
meta: { title: "登录", isAlone: !0 },
|
|
4439
4373
|
isAlone: !0,
|
|
4440
4374
|
name: "login",
|
|
4441
4375
|
path: "/login",
|
|
4442
|
-
component: () => import("./login
|
|
4376
|
+
component: () => import("./login-Djw_cyao.js")
|
|
4443
4377
|
}
|
|
4444
|
-
],
|
|
4378
|
+
], Ql = [
|
|
4445
4379
|
{
|
|
4446
4380
|
meta: { title: "不建议单独运行", isAlone: !0 },
|
|
4447
4381
|
isAlone: !0,
|
|
4448
4382
|
name: "alone_run",
|
|
4449
4383
|
path: "/alone_run",
|
|
4450
|
-
component: () => import("./alone_run-
|
|
4384
|
+
component: () => import("./alone_run-CZzjYo2-.js")
|
|
4451
4385
|
},
|
|
4452
4386
|
{
|
|
4453
4387
|
meta: { title: "错误", isAlone: !0 },
|
|
4454
4388
|
isAlone: !0,
|
|
4455
4389
|
name: "404",
|
|
4456
4390
|
path: "/:catchAll(.*)",
|
|
4457
|
-
component: () => import("./404-
|
|
4391
|
+
component: () => import("./404-7T86Vz-_.js")
|
|
4458
4392
|
}
|
|
4459
|
-
],
|
|
4393
|
+
], Jl = [
|
|
4460
4394
|
{
|
|
4461
4395
|
meta: { title: "空页面", isAlone: !1 },
|
|
4462
4396
|
isAlone: !1,
|
|
4463
4397
|
name: "none",
|
|
4464
4398
|
path: "/none",
|
|
4465
|
-
component: () => import("./none-
|
|
4399
|
+
component: () => import("./none-CQwv0UHB.js")
|
|
4466
4400
|
}
|
|
4467
4401
|
], en = Be("cloudSdkPermissionStore", {
|
|
4468
4402
|
state: () => ({
|
|
@@ -4493,13 +4427,13 @@ const Xl = window.shiyunProductInfo || {
|
|
|
4493
4427
|
* @param {*} router
|
|
4494
4428
|
*/
|
|
4495
4429
|
SA_PERMS_ROUTER_ADD(e, t) {
|
|
4496
|
-
t = t || "", t != "console_passport" && e.addRoute(...
|
|
4430
|
+
t = t || "", t != "console_passport" && e.addRoute(...Xl), e.addRoute(...Ql), e.addRoute(...Jl);
|
|
4497
4431
|
},
|
|
4498
4432
|
/**
|
|
4499
4433
|
* 验证路由
|
|
4500
4434
|
*/
|
|
4501
4435
|
SA_PERMS_ROUTER_CHECK(e) {
|
|
4502
|
-
let n =
|
|
4436
|
+
let n = os(e).name;
|
|
4503
4437
|
return !!(this.whiteList.includes(n) || Kt(n, this.rbacLastStr));
|
|
4504
4438
|
},
|
|
4505
4439
|
SA_PERMS_ROUTER_SET(e) {
|
|
@@ -4508,20 +4442,20 @@ const Xl = window.shiyunProductInfo || {
|
|
|
4508
4442
|
}
|
|
4509
4443
|
}
|
|
4510
4444
|
});
|
|
4511
|
-
function
|
|
4445
|
+
function zl() {
|
|
4512
4446
|
return new Promise(async (e) => {
|
|
4513
4447
|
Pt().clear_cache(), Ue().clear_cache(), fr().clear_cache(), Te().clear_cache(), Zt().clear_cache(), window.gbIdbObj.idbSetItem("clear_cache", "handle").then((t) => {
|
|
4514
4448
|
e();
|
|
4515
4449
|
});
|
|
4516
4450
|
});
|
|
4517
4451
|
}
|
|
4518
|
-
function
|
|
4452
|
+
function Zl() {
|
|
4519
4453
|
return {
|
|
4520
4454
|
computed: {
|
|
4521
4455
|
...Fe(Tt, ["qiankunExistState"]),
|
|
4522
4456
|
...Fe(Pt, ["languageName", "languageList", "languageSelect"]),
|
|
4523
4457
|
...Fe(Ue, ["themesName", "themesList", "layoutNavTabs", "layoutSidebarState"]),
|
|
4524
|
-
...Fe(
|
|
4458
|
+
...Fe(ss, [
|
|
4525
4459
|
"windowWidth",
|
|
4526
4460
|
"windowHeight",
|
|
4527
4461
|
"windowActive",
|
|
@@ -4563,7 +4497,7 @@ const we = (e, t) => {
|
|
|
4563
4497
|
for (const [r, a] of t)
|
|
4564
4498
|
n[r] = a;
|
|
4565
4499
|
return n;
|
|
4566
|
-
},
|
|
4500
|
+
}, ec = {
|
|
4567
4501
|
props: {
|
|
4568
4502
|
className: ""
|
|
4569
4503
|
},
|
|
@@ -4585,11 +4519,11 @@ const we = (e, t) => {
|
|
|
4585
4519
|
},
|
|
4586
4520
|
methods: {}
|
|
4587
4521
|
};
|
|
4588
|
-
function
|
|
4522
|
+
function tc(e, t, n, r, a, s) {
|
|
4589
4523
|
const o = B("router-view");
|
|
4590
4524
|
return U(), J(o, { key: a.routeRefreshNum }, {
|
|
4591
4525
|
default: R(({ Component: i, route: l }) => [
|
|
4592
|
-
w(
|
|
4526
|
+
w(Bs, {
|
|
4593
4527
|
name: a.routeRefreshAnimation,
|
|
4594
4528
|
mode: "out-in",
|
|
4595
4529
|
appear: ""
|
|
@@ -4599,7 +4533,7 @@ function nc(e, t, n, r, a, s) {
|
|
|
4599
4533
|
class: va(n.className),
|
|
4600
4534
|
key: l.path
|
|
4601
4535
|
}, [
|
|
4602
|
-
(U(), J(
|
|
4536
|
+
(U(), J(xs(i)))
|
|
4603
4537
|
], 2))
|
|
4604
4538
|
]),
|
|
4605
4539
|
_: 2
|
|
@@ -4608,7 +4542,7 @@ function nc(e, t, n, r, a, s) {
|
|
|
4608
4542
|
_: 1
|
|
4609
4543
|
});
|
|
4610
4544
|
}
|
|
4611
|
-
const
|
|
4545
|
+
const nc = /* @__PURE__ */ we(ec, [["render", tc]]), rc = {
|
|
4612
4546
|
name: "HeaderSysSettDrawer",
|
|
4613
4547
|
components: {},
|
|
4614
4548
|
props: {
|
|
@@ -4659,8 +4593,8 @@ const rc = /* @__PURE__ */ we(tc, [["render", nc]]), ac = {
|
|
|
4659
4593
|
this.$parent.frameHandleCommand("clearCache");
|
|
4660
4594
|
}
|
|
4661
4595
|
}
|
|
4662
|
-
},
|
|
4663
|
-
function
|
|
4596
|
+
}, ac = { class: "cloud-sett-drawer-body" }, sc = { class: "cloud-sett-drawer-skin" };
|
|
4597
|
+
function oc(e, t, n, r, a, s) {
|
|
4664
4598
|
const o = B("el-card"), i = B("el-form-item"), l = B("el-option"), c = B("el-select"), f = B("cv-icons"), u = B("el-button"), m = B("el-switch"), p = B("el-form"), A = B("el-drawer");
|
|
4665
4599
|
return U(), J(A, {
|
|
4666
4600
|
title: "系统设置",
|
|
@@ -4671,7 +4605,7 @@ function ic(e, t, n, r, a, s) {
|
|
|
4671
4605
|
"before-close": s.frameTopSysSettClose
|
|
4672
4606
|
}, {
|
|
4673
4607
|
default: R(() => [
|
|
4674
|
-
k("div",
|
|
4608
|
+
k("div", ac, [
|
|
4675
4609
|
w(p, {
|
|
4676
4610
|
labelWidth: "auto",
|
|
4677
4611
|
"label-position": "left"
|
|
@@ -4682,7 +4616,7 @@ function ic(e, t, n, r, a, s) {
|
|
|
4682
4616
|
"label-position": "top"
|
|
4683
4617
|
}, {
|
|
4684
4618
|
default: R(() => [
|
|
4685
|
-
k("div",
|
|
4619
|
+
k("div", sc, [
|
|
4686
4620
|
w(o),
|
|
4687
4621
|
w(o),
|
|
4688
4622
|
w(o)
|
|
@@ -4699,7 +4633,7 @@ function ic(e, t, n, r, a, s) {
|
|
|
4699
4633
|
style: { width: "150px" }
|
|
4700
4634
|
}, {
|
|
4701
4635
|
default: R(() => [
|
|
4702
|
-
(U(!0), Q(he, null,
|
|
4636
|
+
(U(!0), Q(he, null, Xe(e.themesList, (E, C) => (U(), J(l, {
|
|
4703
4637
|
label: e.$t(E.name),
|
|
4704
4638
|
value: E.value,
|
|
4705
4639
|
key: C
|
|
@@ -4726,7 +4660,7 @@ function ic(e, t, n, r, a, s) {
|
|
|
4726
4660
|
w(f, { type: "cvSvgViewModeDark" })
|
|
4727
4661
|
]),
|
|
4728
4662
|
_: 1
|
|
4729
|
-
})) :
|
|
4663
|
+
})) : ue("", !0),
|
|
4730
4664
|
a.frameSysTheme == "dark" ? (U(), J(u, {
|
|
4731
4665
|
key: 1,
|
|
4732
4666
|
onClick: t[2] || (t[2] = (E) => a.frameSysTheme = "light"),
|
|
@@ -4736,7 +4670,7 @@ function ic(e, t, n, r, a, s) {
|
|
|
4736
4670
|
w(f, { type: "cvSvgViewModeLight" })
|
|
4737
4671
|
]),
|
|
4738
4672
|
_: 1
|
|
4739
|
-
})) :
|
|
4673
|
+
})) : ue("", !0)
|
|
4740
4674
|
]),
|
|
4741
4675
|
_: 1
|
|
4742
4676
|
}),
|
|
@@ -4775,7 +4709,7 @@ function ic(e, t, n, r, a, s) {
|
|
|
4775
4709
|
style: { width: "150px" }
|
|
4776
4710
|
}, {
|
|
4777
4711
|
default: R(() => [
|
|
4778
|
-
(U(!0), Q(he, null,
|
|
4712
|
+
(U(!0), Q(he, null, Xe(e.languageSelect, (E, C) => (U(), J(l, {
|
|
4779
4713
|
label: E.label,
|
|
4780
4714
|
value: E.value
|
|
4781
4715
|
}, {
|
|
@@ -4820,7 +4754,7 @@ function ic(e, t, n, r, a, s) {
|
|
|
4820
4754
|
_: 1
|
|
4821
4755
|
}, 8, ["modelValue", "before-close"]);
|
|
4822
4756
|
}
|
|
4823
|
-
const
|
|
4757
|
+
const ic = /* @__PURE__ */ we(rc, [["render", oc]]), _a = (e) => Math.pow(e, 3), lc = (e) => e < 0.5 ? _a(e * 2) / 2 : 1 - _a((1 - e) * 2) / 2, cc = {
|
|
4824
4758
|
name: "SameNavTabs",
|
|
4825
4759
|
data() {
|
|
4826
4760
|
return {
|
|
@@ -4870,7 +4804,7 @@ const lc = /* @__PURE__ */ we(ac, [["render", ic]]), _a = (e) => Math.pow(e, 3),
|
|
|
4870
4804
|
changeGdtBase() {
|
|
4871
4805
|
const e = this.$refs.navScroll1.wrap, t = Date.now(), n = e.scrollLeft, r = window.requestAnimationFrame || ((s) => setTimeout(s, 16)), a = () => {
|
|
4872
4806
|
const s = (Date.now() - t) / 500;
|
|
4873
|
-
s < 1 ? (e.scrollLeft = n * (1 -
|
|
4807
|
+
s < 1 ? (e.scrollLeft = n * (1 - lc(s)), r(a)) : e.scrollLeft = 0;
|
|
4874
4808
|
};
|
|
4875
4809
|
r(a);
|
|
4876
4810
|
},
|
|
@@ -4898,10 +4832,10 @@ const lc = /* @__PURE__ */ we(ac, [["render", ic]]), _a = (e) => Math.pow(e, 3),
|
|
|
4898
4832
|
}), n) return;
|
|
4899
4833
|
}
|
|
4900
4834
|
if (this.sett_tags.splice(t, 1), this.sett_tags.length == 0) {
|
|
4901
|
-
|
|
4835
|
+
this.$router.push("/");
|
|
4902
4836
|
return;
|
|
4903
4837
|
}
|
|
4904
|
-
e.title == this.activeTag && t == this.sett_tags.length &&
|
|
4838
|
+
e.title == this.activeTag && t == this.sett_tags.length && this.$router.push(this.sett_tags[t - 1].path), e.title == this.activeTag && t != this.sett_tags.length && this.$router.push(this.sett_tags[t].path);
|
|
4905
4839
|
}
|
|
4906
4840
|
},
|
|
4907
4841
|
// 点击标签跳转路由
|
|
@@ -4942,11 +4876,11 @@ const lc = /* @__PURE__ */ we(ac, [["render", ic]]), _a = (e) => Math.pow(e, 3),
|
|
|
4942
4876
|
this.contextMenuVisible = !1;
|
|
4943
4877
|
}
|
|
4944
4878
|
}
|
|
4945
|
-
},
|
|
4946
|
-
function
|
|
4879
|
+
}, uc = { class: "cloud-navtabs__wrap" }, fc = { class: "cloud-navtabs__box" }, _c = { class: "cloud-navtabs__main" }, dc = { class: "cloud-navtabs__tags" };
|
|
4880
|
+
function mc(e, t, n, r, a, s) {
|
|
4947
4881
|
const o = B("cv-icons"), i = B("cv-btn-base"), l = B("el-tag"), c = B("el-scrollbar"), f = B("cv-btn-text");
|
|
4948
|
-
return U(), Q("div",
|
|
4949
|
-
k("div",
|
|
4882
|
+
return U(), Q("div", uc, [
|
|
4883
|
+
k("div", fc, [
|
|
4950
4884
|
w(i, {
|
|
4951
4885
|
class: "btn-opt-left",
|
|
4952
4886
|
onClick: s.changeGdtLeft
|
|
@@ -4956,11 +4890,11 @@ function hc(e, t, n, r, a, s) {
|
|
|
4956
4890
|
]),
|
|
4957
4891
|
_: 1
|
|
4958
4892
|
}, 8, ["onClick"]),
|
|
4959
|
-
k("div",
|
|
4893
|
+
k("div", _c, [
|
|
4960
4894
|
w(c, { ref: "navScroll1" }, {
|
|
4961
4895
|
default: R(() => [
|
|
4962
|
-
k("div",
|
|
4963
|
-
(U(!0), Q(he, null,
|
|
4896
|
+
k("div", dc, [
|
|
4897
|
+
(U(!0), Q(he, null, Xe(a.sett_tags, (u, m) => (U(), J(l, {
|
|
4964
4898
|
id: a.activeTag == u.name ? "tagId" : "",
|
|
4965
4899
|
class: va(["tag xxxxxx-tag", a.activeTag == u.name ? "active" : ""]),
|
|
4966
4900
|
key: u.name,
|
|
@@ -4968,7 +4902,7 @@ function hc(e, t, n, r, a, s) {
|
|
|
4968
4902
|
onClose: (p) => s.removeTag(u, m),
|
|
4969
4903
|
onClick: (p) => s.changeMenu(u),
|
|
4970
4904
|
"disable-transitions": "",
|
|
4971
|
-
onContextmenu:
|
|
4905
|
+
onContextmenu: Vs(s.openContextMenu, ["prevent"])
|
|
4972
4906
|
}, {
|
|
4973
4907
|
default: R(() => [
|
|
4974
4908
|
te(ne(u.title), 1)
|
|
@@ -5062,7 +4996,7 @@ function hc(e, t, n, r, a, s) {
|
|
|
5062
4996
|
])
|
|
5063
4997
|
]);
|
|
5064
4998
|
}
|
|
5065
|
-
const
|
|
4999
|
+
const hc = /* @__PURE__ */ we(cc, [["render", mc]]), gc = {
|
|
5066
5000
|
name: "SidebarMenuItem",
|
|
5067
5001
|
props: {
|
|
5068
5002
|
menuData: {
|
|
@@ -5107,29 +5041,29 @@ const gc = /* @__PURE__ */ we(uc, [["render", hc]]), pc = {
|
|
|
5107
5041
|
this.jumpsAuth(e.path);
|
|
5108
5042
|
}
|
|
5109
5043
|
}
|
|
5110
|
-
},
|
|
5044
|
+
}, pc = { class: "cloud-subapp-menu-icon" }, Ec = { key: 1 }, bc = {
|
|
5111
5045
|
key: 0,
|
|
5112
5046
|
class: "cloud-subapp-menu-icon"
|
|
5113
|
-
},
|
|
5047
|
+
}, Sc = {
|
|
5114
5048
|
key: 1,
|
|
5115
5049
|
class: "cloud-subapp-menu-icon"
|
|
5116
5050
|
};
|
|
5117
|
-
function
|
|
5051
|
+
function vc(e, t, n, r, a, s) {
|
|
5118
5052
|
const o = B("cv-icons"), i = B("SidebarMenuItem", !0), l = B("el-sub-menu"), c = B("cv-badge"), f = B("el-menu-item");
|
|
5119
|
-
return U(!0), Q(he, null,
|
|
5053
|
+
return U(!0), Q(he, null, Xe(n.menuData, (u) => (U(), Q(he, null, [
|
|
5120
5054
|
u.isMenu == !0 ? (U(), Q(he, { key: 0 }, [
|
|
5121
5055
|
u.children && u.children.length > 0 && u.children_menu_num > 0 ? (U(), J(l, {
|
|
5122
5056
|
key: u.name,
|
|
5123
5057
|
index: u.name
|
|
5124
5058
|
}, {
|
|
5125
5059
|
title: R(() => [
|
|
5126
|
-
k("div",
|
|
5060
|
+
k("div", pc, [
|
|
5127
5061
|
u.meta.icon ? (U(), J(o, {
|
|
5128
5062
|
key: 0,
|
|
5129
5063
|
type: u.meta.icon,
|
|
5130
5064
|
size: "16"
|
|
5131
|
-
}, null, 8, ["type"])) :
|
|
5132
|
-
!u.meta.icon && n.collapse ? (U(), Q("span",
|
|
5065
|
+
}, null, 8, ["type"])) : ue("", !0),
|
|
5066
|
+
!u.meta.icon && n.collapse ? (U(), Q("span", Ec, ne(u.meta.short || u.meta.title), 1)) : ue("", !0)
|
|
5133
5067
|
]),
|
|
5134
5068
|
k("span", null, ne(u.meta.title || u.meta.short), 1)
|
|
5135
5069
|
]),
|
|
@@ -5151,12 +5085,12 @@ function Ac(e, t, n, r, a, s) {
|
|
|
5151
5085
|
te(ne(u.meta.short || u.meta.title), 1)
|
|
5152
5086
|
]),
|
|
5153
5087
|
default: R(() => [
|
|
5154
|
-
!u.meta.icon && n.collapse && !n.isChildren ? (U(), Q("div",
|
|
5088
|
+
!u.meta.icon && n.collapse && !n.isChildren ? (U(), Q("div", bc, ne(u.meta.short || u.meta.title), 1)) : (U(), Q("div", Sc, [
|
|
5155
5089
|
u.meta.icon ? (U(), J(o, {
|
|
5156
5090
|
key: 0,
|
|
5157
5091
|
type: u.meta.icon,
|
|
5158
5092
|
size: "16"
|
|
5159
|
-
}, null, 8, ["type"])) :
|
|
5093
|
+
}, null, 8, ["type"])) : ue("", !0)
|
|
5160
5094
|
])),
|
|
5161
5095
|
u.meta.badge && s.currBadge(u.meta.badge) ? (U(), Q(he, { key: 2 }, [
|
|
5162
5096
|
s.currBadge(u.meta.badge) > 0 ? (U(), J(c, {
|
|
@@ -5166,18 +5100,18 @@ function Ac(e, t, n, r, a, s) {
|
|
|
5166
5100
|
max: 999,
|
|
5167
5101
|
value: s.currBadge(u.meta.badge),
|
|
5168
5102
|
style: Dn(s.badgeStyle)
|
|
5169
|
-
}, null, 8, ["value", "style"])) :
|
|
5170
|
-
], 64)) :
|
|
5103
|
+
}, null, 8, ["value", "style"])) : ue("", !0)
|
|
5104
|
+
], 64)) : ue("", !0)
|
|
5171
5105
|
]),
|
|
5172
5106
|
_: 2
|
|
5173
5107
|
}, 1032, ["index", "onClick"]))
|
|
5174
|
-
], 64)) :
|
|
5108
|
+
], 64)) : ue("", !0)
|
|
5175
5109
|
], 64))), 256);
|
|
5176
5110
|
}
|
|
5177
|
-
const
|
|
5111
|
+
const Ac = /* @__PURE__ */ we(gc, [["render", vc]]), yc = {
|
|
5178
5112
|
name: "SidebarMenuBox",
|
|
5179
5113
|
components: {
|
|
5180
|
-
SidebarMenuItem:
|
|
5114
|
+
SidebarMenuItem: Ac
|
|
5181
5115
|
},
|
|
5182
5116
|
props: {
|
|
5183
5117
|
collapse: {
|
|
@@ -5218,12 +5152,12 @@ const yc = /* @__PURE__ */ we(pc, [["render", Ac]]), Nc = {
|
|
|
5218
5152
|
handleClose(e, t) {
|
|
5219
5153
|
}
|
|
5220
5154
|
}
|
|
5221
|
-
},
|
|
5222
|
-
function
|
|
5155
|
+
}, Nc = { class: "cloud-subapp-wrap" }, Tc = { class: "cloud-sidebar__title" }, Oc = { class: "cloud-subapp-menu-box" };
|
|
5156
|
+
function Ic(e, t, n, r, a, s) {
|
|
5223
5157
|
const o = B("SidebarMenuItem"), i = B("el-menu");
|
|
5224
|
-
return U(), Q("div",
|
|
5225
|
-
k("div",
|
|
5226
|
-
k("div",
|
|
5158
|
+
return U(), Q("div", Nc, [
|
|
5159
|
+
k("div", Tc, ne(e.openProductInfo.info_title), 1),
|
|
5160
|
+
k("div", Oc, [
|
|
5227
5161
|
w(i, {
|
|
5228
5162
|
collapse: n.collapse,
|
|
5229
5163
|
"default-openeds": a.menuDefaultOpeneds,
|
|
@@ -5243,7 +5177,8 @@ function Cc(e, t, n, r, a, s) {
|
|
|
5243
5177
|
])
|
|
5244
5178
|
]);
|
|
5245
5179
|
}
|
|
5246
|
-
const
|
|
5180
|
+
const Cc = /* @__PURE__ */ we(yc, [["render", Ic]]), Lc = {
|
|
5181
|
+
name: "ChangePassword",
|
|
5247
5182
|
props: {
|
|
5248
5183
|
modelValue: {
|
|
5249
5184
|
type: [String, Boolean],
|
|
@@ -5293,8 +5228,8 @@ const Lc = /* @__PURE__ */ we(Nc, [["render", Cc]]), wc = {
|
|
|
5293
5228
|
});
|
|
5294
5229
|
}
|
|
5295
5230
|
}
|
|
5296
|
-
},
|
|
5297
|
-
function
|
|
5231
|
+
}, wc = { class: "dialog-footer" };
|
|
5232
|
+
function Dc(e, t, n, r, a, s) {
|
|
5298
5233
|
const o = B("el-input"), i = B("el-form-item"), l = B("el-form"), c = B("el-button"), f = B("el-dialog");
|
|
5299
5234
|
return U(), J(f, {
|
|
5300
5235
|
width: 520,
|
|
@@ -5304,7 +5239,7 @@ function Rc(e, t, n, r, a, s) {
|
|
|
5304
5239
|
onClose: s.handleCancel
|
|
5305
5240
|
}, {
|
|
5306
5241
|
footer: R(() => [
|
|
5307
|
-
k("div",
|
|
5242
|
+
k("div", wc, [
|
|
5308
5243
|
w(c, { onClick: s.handleCancel }, {
|
|
5309
5244
|
default: R(() => t[4] || (t[4] = [
|
|
5310
5245
|
te("取 消")
|
|
@@ -5377,7 +5312,8 @@ function Rc(e, t, n, r, a, s) {
|
|
|
5377
5312
|
_: 1
|
|
5378
5313
|
}, 8, ["modelValue", "onClose"]);
|
|
5379
5314
|
}
|
|
5380
|
-
const
|
|
5315
|
+
const Rc = /* @__PURE__ */ we(Lc, [["render", Dc]]), Pc = {
|
|
5316
|
+
name: "SwitchBusiness",
|
|
5381
5317
|
props: {
|
|
5382
5318
|
modelValue: {
|
|
5383
5319
|
type: [Array],
|
|
@@ -5396,7 +5332,7 @@ const Pc = /* @__PURE__ */ we(wc, [["render", Rc]]), kc = {
|
|
|
5396
5332
|
},
|
|
5397
5333
|
watch: {
|
|
5398
5334
|
modelValue(e) {
|
|
5399
|
-
|
|
5335
|
+
this.chainOriginalList = e, this.handleSearch();
|
|
5400
5336
|
}
|
|
5401
5337
|
},
|
|
5402
5338
|
data() {
|
|
@@ -5460,11 +5396,11 @@ const Pc = /* @__PURE__ */ we(wc, [["render", Rc]]), kc = {
|
|
|
5460
5396
|
// return segs
|
|
5461
5397
|
// }
|
|
5462
5398
|
}
|
|
5463
|
-
},
|
|
5464
|
-
function
|
|
5399
|
+
}, kc = { class: "cloud-login-change-wrap" }, Fc = { class: "cloud-login-change-box1" }, Mc = { class: "cloud-login-change-search" }, Uc = { class: "cloud-login-change-box2" }, Bc = { class: "cloud-login-change-group-box" }, xc = { class: "cloud-login-change-group-title" }, Vc = { class: "cloud-login-change-group-sublist" }, Gc = ["onClick"], $c = { class: "cloud-login-change-item-left" }, Wc = { class: "cloud-login-change-item-left-icon" }, Yc = ["src"], Hc = { class: "cloud-login-change-item-right" }, Kc = { class: "cloud-login-change-item-right-label" }, jc = { class: "cloud-login-change-item-right-label2" }, qc = { class: "cloud-login-change-item-more" };
|
|
5400
|
+
function Xc(e, t, n, r, a, s) {
|
|
5465
5401
|
const o = B("el-input"), i = B("el-button"), l = B("cv-icons");
|
|
5466
|
-
return U(), Q("div",
|
|
5467
|
-
k("div",
|
|
5402
|
+
return U(), Q("div", kc, [
|
|
5403
|
+
k("div", Fc, [
|
|
5468
5404
|
k("div", {
|
|
5469
5405
|
class: "cloud-login-change-reset",
|
|
5470
5406
|
onClick: t[0] || (t[0] = (...c) => s.chainReselection && s.chainReselection(...c))
|
|
@@ -5474,7 +5410,7 @@ function Qc(e, t, n, r, a, s) {
|
|
|
5474
5410
|
k("p", null, "为规范平台操作、统一平台账号;以便后续提供更多的功能体验;"),
|
|
5475
5411
|
k("p", null, "后续商户人员(含管理员)登录,需进一步通过 短信 或 扫码 进行验证。")
|
|
5476
5412
|
], -1)),
|
|
5477
|
-
k("div",
|
|
5413
|
+
k("div", Mc, [
|
|
5478
5414
|
w(o, {
|
|
5479
5415
|
modelValue: a.chainKeyword,
|
|
5480
5416
|
"onUpdate:modelValue": t[1] || (t[1] = (c) => a.chainKeyword = c),
|
|
@@ -5494,34 +5430,34 @@ function Qc(e, t, n, r, a, s) {
|
|
|
5494
5430
|
_: 1
|
|
5495
5431
|
}, 8, ["onClick"])
|
|
5496
5432
|
]),
|
|
5497
|
-
k("div",
|
|
5498
|
-
k("div",
|
|
5499
|
-
(U(!0), Q(he, null,
|
|
5433
|
+
k("div", Uc, [
|
|
5434
|
+
k("div", Bc, [
|
|
5435
|
+
(U(!0), Q(he, null, Xe(a.chainLastList, (c, f) => (U(), Q("div", {
|
|
5500
5436
|
class: "cloud-login-change-group-item",
|
|
5501
5437
|
key: f
|
|
5502
5438
|
}, [
|
|
5503
|
-
k("div",
|
|
5504
|
-
k("div",
|
|
5505
|
-
(U(!0), Q(he, null,
|
|
5439
|
+
k("div", xc, ne(c.title || "无") + "(" + ne(c.total) + ")", 1),
|
|
5440
|
+
k("div", Vc, [
|
|
5441
|
+
(U(!0), Q(he, null, Xe(c.list, (u, m) => (U(), Q("div", {
|
|
5506
5442
|
class: "cloud-login-change-item-bao",
|
|
5507
5443
|
key: m,
|
|
5508
5444
|
onClick: (p) => s.chainSelection(u)
|
|
5509
5445
|
}, [
|
|
5510
|
-
k("div",
|
|
5511
|
-
k("div",
|
|
5446
|
+
k("div", $c, [
|
|
5447
|
+
k("div", Wc, [
|
|
5512
5448
|
k("img", {
|
|
5513
5449
|
src: u.business_icon_cdn
|
|
5514
|
-
}, null, 8,
|
|
5450
|
+
}, null, 8, Yc)
|
|
5515
5451
|
])
|
|
5516
5452
|
]),
|
|
5517
|
-
k("div",
|
|
5518
|
-
k("div",
|
|
5519
|
-
k("div",
|
|
5453
|
+
k("div", Hc, [
|
|
5454
|
+
k("div", Kc, ne(u.business_name), 1),
|
|
5455
|
+
k("div", jc, "【" + ne(u.acc_role_type_str) + "】", 1)
|
|
5520
5456
|
]),
|
|
5521
|
-
k("div",
|
|
5457
|
+
k("div", qc, [
|
|
5522
5458
|
w(l, { type: "ElIconArrowRight" })
|
|
5523
5459
|
])
|
|
5524
|
-
], 8,
|
|
5460
|
+
], 8, Gc))), 128))
|
|
5525
5461
|
])
|
|
5526
5462
|
]))), 128))
|
|
5527
5463
|
])
|
|
@@ -5529,15 +5465,15 @@ function Qc(e, t, n, r, a, s) {
|
|
|
5529
5465
|
])
|
|
5530
5466
|
]);
|
|
5531
5467
|
}
|
|
5532
|
-
const
|
|
5468
|
+
const Qc = /* @__PURE__ */ we(Pc, [["render", Xc]]), Jc = {
|
|
5533
5469
|
name: "SameFrame",
|
|
5534
5470
|
components: {
|
|
5535
|
-
SidebarMenuBox:
|
|
5536
|
-
SameNavTabs:
|
|
5537
|
-
SameRouteView:
|
|
5538
|
-
HeaderSysSettDrawer:
|
|
5539
|
-
|
|
5540
|
-
|
|
5471
|
+
SidebarMenuBox: Cc,
|
|
5472
|
+
SameNavTabs: hc,
|
|
5473
|
+
SameRouteView: nc,
|
|
5474
|
+
HeaderSysSettDrawer: ic,
|
|
5475
|
+
ChangePassword: Rc,
|
|
5476
|
+
SwitchBusiness: Qc
|
|
5541
5477
|
},
|
|
5542
5478
|
props: {},
|
|
5543
5479
|
data() {
|
|
@@ -5574,7 +5510,7 @@ const Jc = /* @__PURE__ */ we(kc, [["render", Qc]]), zc = {
|
|
|
5574
5510
|
created() {
|
|
5575
5511
|
},
|
|
5576
5512
|
mounted() {
|
|
5577
|
-
this.frameSidebarOpen = this.layoutSidebarState,
|
|
5513
|
+
this.frameSidebarOpen = this.layoutSidebarState, ss().$subscribe((t, n) => {
|
|
5578
5514
|
n.windowWidth < 1061 ? this.frameSidebarOpen = "off" : this.frameSidebarOpen = "on", Ue().SA_LAYOUT_SLIDEBAR_SET(this.frameSidebarOpen);
|
|
5579
5515
|
}), window.onresize = () => {
|
|
5580
5516
|
(document.mozFullScreen || document.fullScreen || //谷歌浏览器及Webkit内核浏览器
|
|
@@ -5624,7 +5560,7 @@ const Jc = /* @__PURE__ */ we(kc, [["render", Qc]]), zc = {
|
|
|
5624
5560
|
cancelButtonText: "取消",
|
|
5625
5561
|
type: "warning"
|
|
5626
5562
|
}).then(() => {
|
|
5627
|
-
|
|
5563
|
+
zl().then((n) => {
|
|
5628
5564
|
window.location.reload();
|
|
5629
5565
|
});
|
|
5630
5566
|
}).catch((n) => {
|
|
@@ -5670,30 +5606,30 @@ const Jc = /* @__PURE__ */ we(kc, [["render", Qc]]), zc = {
|
|
|
5670
5606
|
});
|
|
5671
5607
|
}
|
|
5672
5608
|
}
|
|
5673
|
-
},
|
|
5609
|
+
}, zc = { class: "cloud-layout__wrap" }, Zc = { class: "cloud-header__wrap" }, eu = { class: "cloud-header__logo" }, tu = {
|
|
5674
5610
|
href: "/",
|
|
5675
5611
|
title: "官网",
|
|
5676
5612
|
class: "cloud-header__logo-a"
|
|
5677
|
-
},
|
|
5613
|
+
}, nu = ["src"], ru = { class: "cloud-header__logo-title" }, au = { class: "cloud-header__breadcrumb" }, su = {
|
|
5678
5614
|
key: 0,
|
|
5679
5615
|
class: "chopt-num"
|
|
5680
|
-
},
|
|
5616
|
+
}, ou = {
|
|
5681
5617
|
key: 0,
|
|
5682
5618
|
class: "chopt-num"
|
|
5683
|
-
},
|
|
5684
|
-
function
|
|
5685
|
-
const o = B("cv-icons"), i = B("el-breadcrumb-item"), l = B("el-breadcrumb"), c = B("el-dropdown-item"), f = B("el-dropdown-menu"), u = B("el-dropdown"), m = B("SidebarMenuBox"), p = B("SameNavTabs"), A = B("SameRouteView"), E = B("HeaderSysSettDrawer"), C = B("
|
|
5686
|
-
return U(), Q("div",
|
|
5687
|
-
k("header",
|
|
5688
|
-
k("div",
|
|
5689
|
-
k("a",
|
|
5619
|
+
}, iu = { class: "cloud-header__info" }, lu = ["src"], cu = { class: "chinfo-infoname" }, uu = { class: "cloud-sidebar__wrap" }, fu = { class: "cloud-pages__wrap" };
|
|
5620
|
+
function _u(e, t, n, r, a, s) {
|
|
5621
|
+
const o = B("cv-icons"), i = B("el-breadcrumb-item"), l = B("el-breadcrumb"), c = B("el-dropdown-item"), f = B("el-dropdown-menu"), u = B("el-dropdown"), m = B("SidebarMenuBox"), p = B("SameNavTabs"), A = B("SameRouteView"), E = B("HeaderSysSettDrawer"), C = B("ChangePassword"), h = B("SwitchBusiness");
|
|
5622
|
+
return U(), Q("div", zc, [
|
|
5623
|
+
k("header", Zc, [
|
|
5624
|
+
k("div", eu, [
|
|
5625
|
+
k("a", tu, [
|
|
5690
5626
|
k("img", {
|
|
5691
5627
|
class: "cloud-header__logo-img",
|
|
5692
5628
|
src: e.openProductInfo.platinfo_logo,
|
|
5693
5629
|
alt: ""
|
|
5694
|
-
}, null, 8,
|
|
5630
|
+
}, null, 8, nu)
|
|
5695
5631
|
]),
|
|
5696
|
-
k("div",
|
|
5632
|
+
k("div", ru, ne(e.openProductInfo.info_title), 1)
|
|
5697
5633
|
]),
|
|
5698
5634
|
k("div", {
|
|
5699
5635
|
class: "cloud-header__opt",
|
|
@@ -5703,12 +5639,12 @@ function du(e, t, n, r, a, s) {
|
|
|
5703
5639
|
key: 0,
|
|
5704
5640
|
type: "ElIconFold",
|
|
5705
5641
|
size: "20"
|
|
5706
|
-
})) :
|
|
5642
|
+
})) : ue("", !0),
|
|
5707
5643
|
a.frameSidebarOpen == "off" ? (U(), J(o, {
|
|
5708
5644
|
key: 1,
|
|
5709
5645
|
type: "ElIconExpand",
|
|
5710
5646
|
size: "20"
|
|
5711
|
-
})) :
|
|
5647
|
+
})) : ue("", !0)
|
|
5712
5648
|
]),
|
|
5713
5649
|
k("div", {
|
|
5714
5650
|
class: "cloud-header__opt",
|
|
@@ -5719,10 +5655,10 @@ function du(e, t, n, r, a, s) {
|
|
|
5719
5655
|
size: "20"
|
|
5720
5656
|
})
|
|
5721
5657
|
]),
|
|
5722
|
-
k("div",
|
|
5658
|
+
k("div", au, [
|
|
5723
5659
|
w(l, { separator: "/" }, {
|
|
5724
5660
|
default: R(() => [
|
|
5725
|
-
(U(!0), Q(he, null,
|
|
5661
|
+
(U(!0), Q(he, null, Xe(a.breadcrumbPath, (g, N) => (U(), Q(he, null, [
|
|
5726
5662
|
N == a.breadcrumbPath.length - 1 || !g.path || g.path == "" ? (U(), J(i, {
|
|
5727
5663
|
key: N,
|
|
5728
5664
|
class: "no-redirect"
|
|
@@ -5754,7 +5690,7 @@ function du(e, t, n, r, a, s) {
|
|
|
5754
5690
|
type: "ElIconChatLineRound",
|
|
5755
5691
|
size: "20"
|
|
5756
5692
|
}),
|
|
5757
|
-
a.chatUnreadTotal > 0 ? (U(), Q("em",
|
|
5693
|
+
a.chatUnreadTotal > 0 ? (U(), Q("em", su, ne(a.chatUnreadTotal > 99 ? "99+" : a.chatUnreadTotal), 1)) : ue("", !0)
|
|
5758
5694
|
]),
|
|
5759
5695
|
k("div", {
|
|
5760
5696
|
class: "cloud-header__opt chopt-relative",
|
|
@@ -5764,9 +5700,9 @@ function du(e, t, n, r, a, s) {
|
|
|
5764
5700
|
type: "ElIconMessage",
|
|
5765
5701
|
size: "20"
|
|
5766
5702
|
}),
|
|
5767
|
-
a.emailUnreadTotal > 0 ? (U(), Q("em",
|
|
5703
|
+
a.emailUnreadTotal > 0 ? (U(), Q("em", ou, ne(a.emailUnreadTotal > 99 ? "99+" : a.emailUnreadTotal), 1)) : ue("", !0)
|
|
5768
5704
|
]),
|
|
5769
|
-
k("div",
|
|
5705
|
+
k("div", iu, [
|
|
5770
5706
|
w(u, {
|
|
5771
5707
|
onCommand: s.frameHandleCommand,
|
|
5772
5708
|
"popper-class": "cloud-header__info_dropdown"
|
|
@@ -5827,8 +5763,8 @@ function du(e, t, n, r, a, s) {
|
|
|
5827
5763
|
class: "chinfo-avatar",
|
|
5828
5764
|
src: e.accountInfo.account_avatar_cdn,
|
|
5829
5765
|
title: "头像"
|
|
5830
|
-
}, null, 8,
|
|
5831
|
-
k("div",
|
|
5766
|
+
}, null, 8, lu),
|
|
5767
|
+
k("div", cu, ne(s.headerInfoName), 1),
|
|
5832
5768
|
w(o, { type: "ElIconArrowDown" })
|
|
5833
5769
|
])
|
|
5834
5770
|
]),
|
|
@@ -5841,7 +5777,7 @@ function du(e, t, n, r, a, s) {
|
|
|
5841
5777
|
onClick: t[4] || (t[4] = (...g) => s.frameFullScreen && s.frameFullScreen(...g)),
|
|
5842
5778
|
style: { "min-width": "50px" }
|
|
5843
5779
|
}, [
|
|
5844
|
-
a.full_screen ?
|
|
5780
|
+
a.full_screen ? ue("", !0) : (U(), J(o, {
|
|
5845
5781
|
key: 0,
|
|
5846
5782
|
type: "cvSvgArrowScreenUnfold",
|
|
5847
5783
|
size: "20"
|
|
@@ -5850,7 +5786,7 @@ function du(e, t, n, r, a, s) {
|
|
|
5850
5786
|
key: 1,
|
|
5851
5787
|
type: "cvSvgArrowScreenFold",
|
|
5852
5788
|
size: "20"
|
|
5853
|
-
})) :
|
|
5789
|
+
})) : ue("", !0)
|
|
5854
5790
|
]),
|
|
5855
5791
|
k("div", {
|
|
5856
5792
|
title: "设置",
|
|
@@ -5864,12 +5800,12 @@ function du(e, t, n, r, a, s) {
|
|
|
5864
5800
|
})
|
|
5865
5801
|
])
|
|
5866
5802
|
]),
|
|
5867
|
-
k("section",
|
|
5803
|
+
k("section", uu, [
|
|
5868
5804
|
w(m, {
|
|
5869
5805
|
collapse: a.frameSidebarOpen == "off"
|
|
5870
5806
|
}, null, 8, ["collapse"])
|
|
5871
5807
|
]),
|
|
5872
|
-
k("section",
|
|
5808
|
+
k("section", fu, [
|
|
5873
5809
|
Aa(w(p, null, null, 512), [
|
|
5874
5810
|
[ya, e.layoutNavTabs == "on"]
|
|
5875
5811
|
]),
|
|
@@ -5891,10 +5827,10 @@ function du(e, t, n, r, a, s) {
|
|
|
5891
5827
|
onReselectFunc: s.chainReselection,
|
|
5892
5828
|
onSelectFunc: s.chainSelection,
|
|
5893
5829
|
style: { background: "#fff", "z-index": "1005" }
|
|
5894
|
-
}, null, 8, ["modelValue", "onReselectFunc", "onSelectFunc"])) :
|
|
5830
|
+
}, null, 8, ["modelValue", "onReselectFunc", "onSelectFunc"])) : ue("", !0)
|
|
5895
5831
|
]);
|
|
5896
5832
|
}
|
|
5897
|
-
const
|
|
5833
|
+
const Gf = /* @__PURE__ */ we(Jc, [["render", _u]]), du = {
|
|
5898
5834
|
data() {
|
|
5899
5835
|
return {
|
|
5900
5836
|
watemarkText: "shiyun"
|
|
@@ -5920,16 +5856,16 @@ const Wf = /* @__PURE__ */ we(zc, [["render", du]]), mu = {
|
|
|
5920
5856
|
}
|
|
5921
5857
|
}
|
|
5922
5858
|
};
|
|
5923
|
-
function
|
|
5859
|
+
function mu(e, t, n, r, a, s) {
|
|
5924
5860
|
const o = B("el-watermark");
|
|
5925
|
-
return U(), J(o,
|
|
5861
|
+
return U(), J(o, Gs(s.watemarkConf, { style: { height: "100%" } }), {
|
|
5926
5862
|
default: R(() => [
|
|
5927
|
-
|
|
5863
|
+
$s(e.$slots, "default")
|
|
5928
5864
|
]),
|
|
5929
5865
|
_: 3
|
|
5930
5866
|
}, 16);
|
|
5931
5867
|
}
|
|
5932
|
-
const
|
|
5868
|
+
const $f = /* @__PURE__ */ we(du, [["render", mu]]);
|
|
5933
5869
|
(function() {
|
|
5934
5870
|
if (typeof EventTarget < "u") {
|
|
5935
5871
|
let e = EventTarget.prototype.addEventListener;
|
|
@@ -5938,10 +5874,10 @@ const Yf = /* @__PURE__ */ we(mu, [["render", hu]]);
|
|
|
5938
5874
|
};
|
|
5939
5875
|
}
|
|
5940
5876
|
})();
|
|
5941
|
-
const
|
|
5942
|
-
class
|
|
5877
|
+
const hu = 60 * 60 * 24 * 7;
|
|
5878
|
+
class gu {
|
|
5943
5879
|
constructor(t) {
|
|
5944
|
-
this.prefix = t.prefix || "", this.expired = t.expired ||
|
|
5880
|
+
this.prefix = t.prefix || "", this.expired = t.expired || hu, this.crypto = !!t.crypto, this.merge = !!t.merge, this.keyExpired = {
|
|
5945
5881
|
session: {},
|
|
5946
5882
|
local: {}
|
|
5947
5883
|
}, this.keyGroup = {
|
|
@@ -6019,10 +5955,8 @@ class pu {
|
|
|
6019
5955
|
* @param {int} expired 缓存秒
|
|
6020
5956
|
*/
|
|
6021
5957
|
localSet(t, n, r) {
|
|
6022
|
-
if (!window.localStorage)
|
|
6023
|
-
console.warn("浏览器不支持localStorage");
|
|
5958
|
+
if (!window.localStorage)
|
|
6024
5959
|
return;
|
|
6025
|
-
}
|
|
6026
5960
|
(n === "" || n === null || n === void 0) && (n = null);
|
|
6027
5961
|
const a = typeof n == "string" ? n : JSON.stringify(n);
|
|
6028
5962
|
window.localStorage.setItem(t, a), this._settKey("local", t, r);
|
|
@@ -6032,10 +5966,8 @@ class pu {
|
|
|
6032
5966
|
* @param {*} key 键名
|
|
6033
5967
|
*/
|
|
6034
5968
|
localGet(t) {
|
|
6035
|
-
if (!window.localStorage)
|
|
6036
|
-
console.warn("浏览器不支持localStorage");
|
|
5969
|
+
if (!window.localStorage)
|
|
6037
5970
|
return;
|
|
6038
|
-
}
|
|
6039
5971
|
this._checkExpiredKey("local", t);
|
|
6040
5972
|
let n = window.localStorage.getItem(t);
|
|
6041
5973
|
try {
|
|
@@ -6062,7 +5994,7 @@ class pu {
|
|
|
6062
5994
|
this._deleteKey("local");
|
|
6063
5995
|
}
|
|
6064
5996
|
}
|
|
6065
|
-
function
|
|
5997
|
+
function pu() {
|
|
6066
5998
|
try {
|
|
6067
5999
|
if (typeof indexedDB < "u")
|
|
6068
6000
|
return indexedDB;
|
|
@@ -6078,10 +6010,10 @@ function Eu() {
|
|
|
6078
6010
|
return;
|
|
6079
6011
|
}
|
|
6080
6012
|
}
|
|
6081
|
-
var
|
|
6082
|
-
function
|
|
6013
|
+
var ut = pu();
|
|
6014
|
+
function Eu() {
|
|
6083
6015
|
try {
|
|
6084
|
-
if (!
|
|
6016
|
+
if (!ut || !ut.open)
|
|
6085
6017
|
return !1;
|
|
6086
6018
|
var e = typeof openDatabase < "u" && /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), t = typeof fetch == "function" && fetch.toString().indexOf("[native code") !== -1;
|
|
6087
6019
|
return (!e || t) && typeof indexedDB < "u" && // some outdated implementations of IDB that appear on Samsung
|
|
@@ -6117,11 +6049,11 @@ function j(e, t) {
|
|
|
6117
6049
|
}
|
|
6118
6050
|
);
|
|
6119
6051
|
}
|
|
6120
|
-
function
|
|
6052
|
+
function ot(e, t, n) {
|
|
6121
6053
|
typeof t == "function" && e.then(t), typeof n == "function" && e.catch(n);
|
|
6122
6054
|
}
|
|
6123
6055
|
function De(e) {
|
|
6124
|
-
return typeof e != "string" && (
|
|
6056
|
+
return typeof e != "string" && (e = String(e)), e;
|
|
6125
6057
|
}
|
|
6126
6058
|
function dr() {
|
|
6127
6059
|
if (arguments.length && typeof arguments[arguments.length - 1] == "function")
|
|
@@ -6129,13 +6061,13 @@ function dr() {
|
|
|
6129
6061
|
}
|
|
6130
6062
|
const Hn = "local-forage-detect-blob-support";
|
|
6131
6063
|
let $t;
|
|
6132
|
-
const be = {},
|
|
6133
|
-
function
|
|
6064
|
+
const be = {}, bu = Object.prototype.toString, kt = "readonly", tn = "readwrite";
|
|
6065
|
+
function Su(e) {
|
|
6134
6066
|
for (var t = e.length, n = new ArrayBuffer(t), r = new Uint8Array(n), a = 0; a < t; a++)
|
|
6135
6067
|
r[a] = e.charCodeAt(a);
|
|
6136
6068
|
return n;
|
|
6137
6069
|
}
|
|
6138
|
-
function
|
|
6070
|
+
function vu(e) {
|
|
6139
6071
|
return new F(function(t) {
|
|
6140
6072
|
var n = e.transaction(Hn, tn), r = _r([""]);
|
|
6141
6073
|
n.objectStore(Hn).put(r, "key"), n.onabort = function(a) {
|
|
@@ -6150,8 +6082,8 @@ function Au(e) {
|
|
|
6150
6082
|
return !1;
|
|
6151
6083
|
});
|
|
6152
6084
|
}
|
|
6153
|
-
function
|
|
6154
|
-
return typeof $t == "boolean" ? F.resolve($t) :
|
|
6085
|
+
function Au(e) {
|
|
6086
|
+
return typeof $t == "boolean" ? F.resolve($t) : vu(e).then(function(t) {
|
|
6155
6087
|
return $t = t, $t;
|
|
6156
6088
|
});
|
|
6157
6089
|
}
|
|
@@ -6173,26 +6105,22 @@ function jn(e, t) {
|
|
|
6173
6105
|
if (r)
|
|
6174
6106
|
return r.reject(t), r.promise;
|
|
6175
6107
|
}
|
|
6176
|
-
function
|
|
6108
|
+
function cs(e, t) {
|
|
6177
6109
|
return new F(function(n, r) {
|
|
6178
|
-
if (be[e.name] = be[e.name] ||
|
|
6110
|
+
if (be[e.name] = be[e.name] || ds(), e.db)
|
|
6179
6111
|
if (t)
|
|
6180
6112
|
jt(e), e.db.close();
|
|
6181
6113
|
else
|
|
6182
6114
|
return n(e.db);
|
|
6183
6115
|
var a = [e.name];
|
|
6184
6116
|
t && a.push(e.version);
|
|
6185
|
-
var s =
|
|
6117
|
+
var s = ut.open.apply(ut, a);
|
|
6186
6118
|
t && (s.onupgradeneeded = function(o) {
|
|
6187
6119
|
var i = s.result;
|
|
6188
6120
|
try {
|
|
6189
6121
|
i.createObjectStore(e.storeName), o.oldVersion <= 1 && i.createObjectStore(Hn);
|
|
6190
6122
|
} catch (l) {
|
|
6191
|
-
if (l.name
|
|
6192
|
-
console.warn(
|
|
6193
|
-
'The database "' + e.name + '" has been upgraded from version ' + o.oldVersion + " to version " + o.newVersion + ', but the storage "' + e.storeName + '" already exists.'
|
|
6194
|
-
);
|
|
6195
|
-
else
|
|
6123
|
+
if (l.name !== "ConstraintError")
|
|
6196
6124
|
throw l;
|
|
6197
6125
|
}
|
|
6198
6126
|
}), s.onerror = function(o) {
|
|
@@ -6206,18 +6134,16 @@ function fs(e, t) {
|
|
|
6206
6134
|
});
|
|
6207
6135
|
}
|
|
6208
6136
|
function mr(e) {
|
|
6209
|
-
return
|
|
6137
|
+
return cs(e, !1);
|
|
6210
6138
|
}
|
|
6211
6139
|
function hr(e) {
|
|
6212
|
-
return
|
|
6140
|
+
return cs(e, !0);
|
|
6213
6141
|
}
|
|
6214
|
-
function
|
|
6142
|
+
function us(e, t) {
|
|
6215
6143
|
if (!e.db)
|
|
6216
6144
|
return !0;
|
|
6217
6145
|
var n = !e.db.objectStoreNames.contains(e.storeName), r = e.version < e.db.version, a = e.version > e.db.version;
|
|
6218
|
-
if (r && (e.version
|
|
6219
|
-
'The database "' + e.name + `" can't be downgraded from version ` + e.db.version + " to version " + e.version + "."
|
|
6220
|
-
), e.version = e.db.version), a || n) {
|
|
6146
|
+
if (r && (e.version, e.version = e.db.version), a || n) {
|
|
6221
6147
|
if (n) {
|
|
6222
6148
|
var s = e.db.version + 1;
|
|
6223
6149
|
s > e.version && (e.version = s);
|
|
@@ -6226,7 +6152,7 @@ function _s(e, t) {
|
|
|
6226
6152
|
}
|
|
6227
6153
|
return !1;
|
|
6228
6154
|
}
|
|
6229
|
-
function
|
|
6155
|
+
function yu(e) {
|
|
6230
6156
|
return new F(function(t, n) {
|
|
6231
6157
|
var r = new FileReader();
|
|
6232
6158
|
r.onerror = n, r.onloadend = function(a) {
|
|
@@ -6239,28 +6165,28 @@ function Nu(e) {
|
|
|
6239
6165
|
}, r.readAsBinaryString(e);
|
|
6240
6166
|
});
|
|
6241
6167
|
}
|
|
6242
|
-
function
|
|
6243
|
-
var t =
|
|
6168
|
+
function fs(e) {
|
|
6169
|
+
var t = Su(atob(e.data));
|
|
6244
6170
|
return _r([t], { type: e.type });
|
|
6245
6171
|
}
|
|
6246
|
-
function
|
|
6172
|
+
function _s(e) {
|
|
6247
6173
|
return e && e.__local_forage_encoded_blob;
|
|
6248
6174
|
}
|
|
6249
|
-
function
|
|
6175
|
+
function Nu(e) {
|
|
6250
6176
|
var t = this, n = t._initReady().then(function() {
|
|
6251
6177
|
var r = be[t._dbInfo.name];
|
|
6252
6178
|
if (r && r.dbReady)
|
|
6253
6179
|
return r.dbReady;
|
|
6254
6180
|
});
|
|
6255
|
-
return
|
|
6181
|
+
return ot(n, e, e), n;
|
|
6256
6182
|
}
|
|
6257
|
-
function
|
|
6183
|
+
function Tu(e) {
|
|
6258
6184
|
jt(e);
|
|
6259
6185
|
for (var t = be[e.name], n = t.forages, r = 0; r < n.length; r++) {
|
|
6260
6186
|
const a = n[r];
|
|
6261
6187
|
a._dbInfo.db && (a._dbInfo.db.close(), a._dbInfo.db = null);
|
|
6262
6188
|
}
|
|
6263
|
-
return e.db = null, mr(e).then((a) => (e.db = a,
|
|
6189
|
+
return e.db = null, mr(e).then((a) => (e.db = a, us(e) ? hr(e) : a)).then((a) => {
|
|
6264
6190
|
e.db = t.db = a;
|
|
6265
6191
|
for (var s = 0; s < n.length; s++)
|
|
6266
6192
|
n[s]._dbInfo.db = a;
|
|
@@ -6280,13 +6206,13 @@ function Re(e, t, n, r) {
|
|
|
6280
6206
|
e.storeName
|
|
6281
6207
|
) && e.version <= e.db.version)
|
|
6282
6208
|
return e.db && (e.version = e.db.version + 1), hr(e);
|
|
6283
|
-
}).then(() =>
|
|
6209
|
+
}).then(() => Tu(e).then(function() {
|
|
6284
6210
|
Re(e, t, n, r - 1);
|
|
6285
6211
|
})).catch(n);
|
|
6286
6212
|
n(s);
|
|
6287
6213
|
}
|
|
6288
6214
|
}
|
|
6289
|
-
function
|
|
6215
|
+
function ds() {
|
|
6290
6216
|
return {
|
|
6291
6217
|
// Running localForages sharing a database.
|
|
6292
6218
|
forages: [],
|
|
@@ -6298,7 +6224,7 @@ function hs() {
|
|
|
6298
6224
|
deferredOperations: []
|
|
6299
6225
|
};
|
|
6300
6226
|
}
|
|
6301
|
-
function
|
|
6227
|
+
function Ou(e) {
|
|
6302
6228
|
var t = this, n = {
|
|
6303
6229
|
db: null
|
|
6304
6230
|
};
|
|
@@ -6306,7 +6232,7 @@ function Iu(e) {
|
|
|
6306
6232
|
for (var r in e)
|
|
6307
6233
|
n[r] = e[r];
|
|
6308
6234
|
var a = be[n.name];
|
|
6309
|
-
a || (a =
|
|
6235
|
+
a || (a = ds(), be[n.name] = a), a.forages.push(t), t._initReady || (t._initReady = t.ready, t.ready = Nu);
|
|
6310
6236
|
var s = [];
|
|
6311
6237
|
function o() {
|
|
6312
6238
|
return F.resolve();
|
|
@@ -6319,7 +6245,7 @@ function Iu(e) {
|
|
|
6319
6245
|
return F.all(s).then(function() {
|
|
6320
6246
|
return n.db = a.db, mr(n);
|
|
6321
6247
|
}).then(function(f) {
|
|
6322
|
-
return n.db = f,
|
|
6248
|
+
return n.db = f, us(n, t._defaultConfig.version) ? hr(n) : f;
|
|
6323
6249
|
}).then(function(f) {
|
|
6324
6250
|
n.db = a.db = f, t._dbInfo = n;
|
|
6325
6251
|
for (var u = 0; u < c.length; u++) {
|
|
@@ -6328,7 +6254,7 @@ function Iu(e) {
|
|
|
6328
6254
|
}
|
|
6329
6255
|
});
|
|
6330
6256
|
}
|
|
6331
|
-
function
|
|
6257
|
+
function Iu(e, t) {
|
|
6332
6258
|
var n = this;
|
|
6333
6259
|
e = De(e);
|
|
6334
6260
|
var r = new F(function(a, s) {
|
|
@@ -6342,7 +6268,7 @@ function Cu(e, t) {
|
|
|
6342
6268
|
), c = l.get(e);
|
|
6343
6269
|
c.onsuccess = function() {
|
|
6344
6270
|
var f = c.result;
|
|
6345
|
-
f === void 0 && (f = null),
|
|
6271
|
+
f === void 0 && (f = null), _s(f) && (f = fs(f)), a(f);
|
|
6346
6272
|
}, c.onerror = function() {
|
|
6347
6273
|
s(c.error);
|
|
6348
6274
|
};
|
|
@@ -6354,7 +6280,7 @@ function Cu(e, t) {
|
|
|
6354
6280
|
});
|
|
6355
6281
|
return j(r, t), r;
|
|
6356
6282
|
}
|
|
6357
|
-
function
|
|
6283
|
+
function Cu(e, t) {
|
|
6358
6284
|
var n = this, r = new F(function(a, s) {
|
|
6359
6285
|
n.ready().then(function() {
|
|
6360
6286
|
Re(n._dbInfo, kt, function(o, i) {
|
|
@@ -6368,7 +6294,7 @@ function Lu(e, t) {
|
|
|
6368
6294
|
var u = c.result;
|
|
6369
6295
|
if (u) {
|
|
6370
6296
|
var m = u.value;
|
|
6371
|
-
|
|
6297
|
+
_s(m) && (m = fs(m));
|
|
6372
6298
|
var p = e(
|
|
6373
6299
|
m,
|
|
6374
6300
|
u.key,
|
|
@@ -6388,14 +6314,14 @@ function Lu(e, t) {
|
|
|
6388
6314
|
});
|
|
6389
6315
|
return j(r, t), r;
|
|
6390
6316
|
}
|
|
6391
|
-
function
|
|
6317
|
+
function Lu(e, t, n) {
|
|
6392
6318
|
var r = this;
|
|
6393
6319
|
e = De(e);
|
|
6394
6320
|
var a = new F(function(s, o) {
|
|
6395
6321
|
var i;
|
|
6396
6322
|
r.ready().then(function() {
|
|
6397
|
-
return i = r._dbInfo,
|
|
6398
|
-
return l ? t :
|
|
6323
|
+
return i = r._dbInfo, bu.call(t) === "[object Blob]" ? Au(i.db).then(function(l) {
|
|
6324
|
+
return l ? t : yu(t);
|
|
6399
6325
|
}) : t;
|
|
6400
6326
|
}).then(function(l) {
|
|
6401
6327
|
Re(r._dbInfo, tn, function(c, f) {
|
|
@@ -6421,7 +6347,7 @@ function wu(e, t, n) {
|
|
|
6421
6347
|
});
|
|
6422
6348
|
return j(a, n), a;
|
|
6423
6349
|
}
|
|
6424
|
-
function
|
|
6350
|
+
function wu(e, t) {
|
|
6425
6351
|
var n = this;
|
|
6426
6352
|
e = De(e);
|
|
6427
6353
|
var r = new F(function(a, s) {
|
|
@@ -6449,7 +6375,7 @@ function Du(e, t) {
|
|
|
6449
6375
|
});
|
|
6450
6376
|
return j(r, t), r;
|
|
6451
6377
|
}
|
|
6452
|
-
function
|
|
6378
|
+
function Du(e) {
|
|
6453
6379
|
var t = this, n = new F(function(r, a) {
|
|
6454
6380
|
t.ready().then(function() {
|
|
6455
6381
|
Re(t._dbInfo, tn, function(s, o) {
|
|
@@ -6473,7 +6399,7 @@ function Ru(e) {
|
|
|
6473
6399
|
});
|
|
6474
6400
|
return j(n, e), n;
|
|
6475
6401
|
}
|
|
6476
|
-
function
|
|
6402
|
+
function Ru(e) {
|
|
6477
6403
|
var t = this, n = new F(function(r, a) {
|
|
6478
6404
|
t.ready().then(function() {
|
|
6479
6405
|
Re(t._dbInfo, kt, function(s, o) {
|
|
@@ -6496,7 +6422,7 @@ function Pu(e) {
|
|
|
6496
6422
|
});
|
|
6497
6423
|
return j(n, e), n;
|
|
6498
6424
|
}
|
|
6499
|
-
function
|
|
6425
|
+
function Pu(e, t) {
|
|
6500
6426
|
var n = this, r = new F(function(a, s) {
|
|
6501
6427
|
if (e < 0) {
|
|
6502
6428
|
a(null);
|
|
@@ -6528,7 +6454,7 @@ function ku(e, t) {
|
|
|
6528
6454
|
});
|
|
6529
6455
|
return j(r, t), r;
|
|
6530
6456
|
}
|
|
6531
|
-
function
|
|
6457
|
+
function ku(e) {
|
|
6532
6458
|
var t = this, n = new F(function(r, a) {
|
|
6533
6459
|
t.ready().then(function() {
|
|
6534
6460
|
Re(t._dbInfo, kt, function(s, o) {
|
|
@@ -6556,7 +6482,7 @@ function Fu(e) {
|
|
|
6556
6482
|
});
|
|
6557
6483
|
return j(n, e), n;
|
|
6558
6484
|
}
|
|
6559
|
-
function
|
|
6485
|
+
function Fu(e, t) {
|
|
6560
6486
|
t = dr.apply(this, arguments);
|
|
6561
6487
|
var n = this.config();
|
|
6562
6488
|
e = typeof e != "function" && e || {}, e.name || (e.name = e.name || n.name, e.storeName = e.storeName || n.storeName);
|
|
@@ -6583,7 +6509,7 @@ function Mu(e, t) {
|
|
|
6583
6509
|
p._dbInfo.db = null, p._dbInfo.version = l;
|
|
6584
6510
|
}
|
|
6585
6511
|
return new F((m, p) => {
|
|
6586
|
-
const A =
|
|
6512
|
+
const A = ut.open(e.name, l);
|
|
6587
6513
|
A.onerror = (E) => {
|
|
6588
6514
|
A.result.close(), p(E);
|
|
6589
6515
|
}, A.onupgradeneeded = () => {
|
|
@@ -6612,14 +6538,11 @@ function Mu(e, t) {
|
|
|
6612
6538
|
m._dbInfo.db = null;
|
|
6613
6539
|
}
|
|
6614
6540
|
return new F((m, p) => {
|
|
6615
|
-
var A =
|
|
6541
|
+
var A = ut.deleteDatabase(e.name);
|
|
6616
6542
|
A.onerror = () => {
|
|
6617
6543
|
const E = A.result;
|
|
6618
6544
|
E && E.close(), p(A.error);
|
|
6619
6545
|
}, A.onblocked = () => {
|
|
6620
|
-
console.warn(
|
|
6621
|
-
'dropInstance blocked for database "' + e.name + '" until all open connections are closed'
|
|
6622
|
-
);
|
|
6623
6546
|
}, A.onsuccess = () => {
|
|
6624
6547
|
const E = A.result;
|
|
6625
6548
|
E && E.close(), m(E);
|
|
@@ -6638,25 +6561,25 @@ function Mu(e, t) {
|
|
|
6638
6561
|
}
|
|
6639
6562
|
return j(a, t), a;
|
|
6640
6563
|
}
|
|
6641
|
-
var
|
|
6564
|
+
var Mu = {
|
|
6642
6565
|
_driver: "asyncStorage",
|
|
6643
|
-
_initStorage:
|
|
6644
|
-
_support:
|
|
6645
|
-
iterate:
|
|
6646
|
-
getItem:
|
|
6647
|
-
setItem:
|
|
6648
|
-
removeItem:
|
|
6649
|
-
clear:
|
|
6650
|
-
length:
|
|
6651
|
-
key:
|
|
6652
|
-
keys:
|
|
6653
|
-
dropInstance:
|
|
6566
|
+
_initStorage: Ou,
|
|
6567
|
+
_support: Eu(),
|
|
6568
|
+
iterate: Cu,
|
|
6569
|
+
getItem: Iu,
|
|
6570
|
+
setItem: Lu,
|
|
6571
|
+
removeItem: wu,
|
|
6572
|
+
clear: Du,
|
|
6573
|
+
length: Ru,
|
|
6574
|
+
key: Pu,
|
|
6575
|
+
keys: ku,
|
|
6576
|
+
dropInstance: Fu
|
|
6654
6577
|
};
|
|
6655
|
-
function
|
|
6578
|
+
function Uu() {
|
|
6656
6579
|
return typeof openDatabase == "function";
|
|
6657
6580
|
}
|
|
6658
|
-
var Me = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
|
|
6659
|
-
function
|
|
6581
|
+
var Me = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Bu = "~~local_forage_type~", da = /^~~local_forage_type~([^~]+)~/, qt = "__lfsc__:", qn = qt.length, gr = "arbf", Xn = "blob", ms = "si08", hs = "ui08", gs = "uic8", ps = "si16", Es = "si32", bs = "ur16", Ss = "ui32", vs = "fl32", As = "fl64", ma = qn + gr.length, ha = Object.prototype.toString;
|
|
6582
|
+
function ys(e) {
|
|
6660
6583
|
var t = e.length * 0.75, n = e.length, r, a = 0, s, o, i, l;
|
|
6661
6584
|
e[e.length - 1] === "=" && (t--, e[e.length - 2] === "=" && t--);
|
|
6662
6585
|
var c = new ArrayBuffer(t), f = new Uint8Array(c);
|
|
@@ -6670,25 +6593,25 @@ function Qn(e) {
|
|
|
6670
6593
|
n += Me[t[r] >> 2], n += Me[(t[r] & 3) << 4 | t[r + 1] >> 4], n += Me[(t[r + 1] & 15) << 2 | t[r + 2] >> 6], n += Me[t[r + 2] & 63];
|
|
6671
6594
|
return t.length % 3 === 2 ? n = n.substring(0, n.length - 1) + "=" : t.length % 3 === 1 && (n = n.substring(0, n.length - 2) + "=="), n;
|
|
6672
6595
|
}
|
|
6673
|
-
function
|
|
6596
|
+
function xu(e, t) {
|
|
6674
6597
|
var n = "";
|
|
6675
6598
|
if (e && (n = ha.call(e)), e && (n === "[object ArrayBuffer]" || e.buffer && ha.call(e.buffer) === "[object ArrayBuffer]")) {
|
|
6676
6599
|
var r, a = qt;
|
|
6677
|
-
e instanceof ArrayBuffer ? (r = e, a += gr) : (r = e.buffer, n === "[object Int8Array]" ? a +=
|
|
6600
|
+
e instanceof ArrayBuffer ? (r = e, a += gr) : (r = e.buffer, n === "[object Int8Array]" ? a += ms : n === "[object Uint8Array]" ? a += hs : n === "[object Uint8ClampedArray]" ? a += gs : n === "[object Int16Array]" ? a += ps : n === "[object Uint16Array]" ? a += bs : n === "[object Int32Array]" ? a += Es : n === "[object Uint32Array]" ? a += Ss : n === "[object Float32Array]" ? a += vs : n === "[object Float64Array]" ? a += As : t(new Error("Failed to get type for BinaryArray"))), t(a + Qn(r));
|
|
6678
6601
|
} else if (n === "[object Blob]") {
|
|
6679
6602
|
var s = new FileReader();
|
|
6680
6603
|
s.onload = function() {
|
|
6681
|
-
var o =
|
|
6604
|
+
var o = Bu + e.type + "~" + Qn(this.result);
|
|
6682
6605
|
t(qt + Xn + o);
|
|
6683
6606
|
}, s.readAsArrayBuffer(e);
|
|
6684
6607
|
} else
|
|
6685
6608
|
try {
|
|
6686
6609
|
t(JSON.stringify(e));
|
|
6687
6610
|
} catch (o) {
|
|
6688
|
-
|
|
6611
|
+
t(null, o);
|
|
6689
6612
|
}
|
|
6690
6613
|
}
|
|
6691
|
-
function
|
|
6614
|
+
function Vu(e) {
|
|
6692
6615
|
if (e.substring(0, qn) !== qt)
|
|
6693
6616
|
return JSON.parse(e);
|
|
6694
6617
|
var t = e.substring(ma), n = e.substring(
|
|
@@ -6699,41 +6622,41 @@ function Gu(e) {
|
|
|
6699
6622
|
var a = t.match(da);
|
|
6700
6623
|
r = a[1], t = t.substring(a[0].length);
|
|
6701
6624
|
}
|
|
6702
|
-
var s =
|
|
6625
|
+
var s = ys(t);
|
|
6703
6626
|
switch (n) {
|
|
6704
6627
|
case gr:
|
|
6705
6628
|
return s;
|
|
6706
6629
|
case Xn:
|
|
6707
6630
|
return _r([s], { type: r });
|
|
6708
|
-
case
|
|
6631
|
+
case ms:
|
|
6709
6632
|
return new Int8Array(s);
|
|
6710
|
-
case
|
|
6633
|
+
case hs:
|
|
6711
6634
|
return new Uint8Array(s);
|
|
6712
|
-
case
|
|
6635
|
+
case gs:
|
|
6713
6636
|
return new Uint8ClampedArray(s);
|
|
6714
|
-
case
|
|
6637
|
+
case ps:
|
|
6715
6638
|
return new Int16Array(s);
|
|
6716
|
-
case
|
|
6639
|
+
case bs:
|
|
6717
6640
|
return new Uint16Array(s);
|
|
6718
|
-
case
|
|
6641
|
+
case Es:
|
|
6719
6642
|
return new Int32Array(s);
|
|
6720
|
-
case
|
|
6643
|
+
case Ss:
|
|
6721
6644
|
return new Uint32Array(s);
|
|
6722
|
-
case
|
|
6645
|
+
case vs:
|
|
6723
6646
|
return new Float32Array(s);
|
|
6724
|
-
case
|
|
6647
|
+
case As:
|
|
6725
6648
|
return new Float64Array(s);
|
|
6726
6649
|
default:
|
|
6727
6650
|
throw new Error("Unkown type: " + n);
|
|
6728
6651
|
}
|
|
6729
6652
|
}
|
|
6730
6653
|
var pr = {
|
|
6731
|
-
serialize:
|
|
6732
|
-
deserialize:
|
|
6733
|
-
stringToBuffer:
|
|
6654
|
+
serialize: xu,
|
|
6655
|
+
deserialize: Vu,
|
|
6656
|
+
stringToBuffer: ys,
|
|
6734
6657
|
bufferToString: Qn
|
|
6735
6658
|
};
|
|
6736
|
-
function
|
|
6659
|
+
function Ns(e, t, n, r) {
|
|
6737
6660
|
e.executeSql(
|
|
6738
6661
|
`CREATE TABLE IF NOT EXISTS ${t.storeName} (id INTEGER PRIMARY KEY, key unique, value)`,
|
|
6739
6662
|
[],
|
|
@@ -6741,7 +6664,7 @@ function Os(e, t, n, r) {
|
|
|
6741
6664
|
r
|
|
6742
6665
|
);
|
|
6743
6666
|
}
|
|
6744
|
-
function
|
|
6667
|
+
function Gu(e) {
|
|
6745
6668
|
var t = this, n = {
|
|
6746
6669
|
db: null
|
|
6747
6670
|
};
|
|
@@ -6760,7 +6683,7 @@ function $u(e) {
|
|
|
6760
6683
|
return o(i);
|
|
6761
6684
|
}
|
|
6762
6685
|
n.db.transaction(function(i) {
|
|
6763
|
-
|
|
6686
|
+
Ns(
|
|
6764
6687
|
i,
|
|
6765
6688
|
n,
|
|
6766
6689
|
function() {
|
|
@@ -6774,7 +6697,7 @@ function $u(e) {
|
|
|
6774
6697
|
});
|
|
6775
6698
|
return n.serializer = pr, a;
|
|
6776
6699
|
}
|
|
6777
|
-
function
|
|
6700
|
+
function Ge(e, t, n, r, a, s) {
|
|
6778
6701
|
e.executeSql(
|
|
6779
6702
|
n,
|
|
6780
6703
|
r,
|
|
@@ -6784,7 +6707,7 @@ function $e(e, t, n, r, a, s) {
|
|
|
6784
6707
|
"SELECT name FROM sqlite_master WHERE type='table' AND name = ?",
|
|
6785
6708
|
[t.storeName],
|
|
6786
6709
|
function(l, c) {
|
|
6787
|
-
c.rows.length ? s(l, i) :
|
|
6710
|
+
c.rows.length ? s(l, i) : Ns(
|
|
6788
6711
|
l,
|
|
6789
6712
|
t,
|
|
6790
6713
|
function() {
|
|
@@ -6804,14 +6727,14 @@ function $e(e, t, n, r, a, s) {
|
|
|
6804
6727
|
s
|
|
6805
6728
|
);
|
|
6806
6729
|
}
|
|
6807
|
-
function
|
|
6730
|
+
function $u(e, t) {
|
|
6808
6731
|
var n = this;
|
|
6809
6732
|
e = De(e);
|
|
6810
6733
|
var r = new F(function(a, s) {
|
|
6811
6734
|
n.ready().then(function() {
|
|
6812
6735
|
var o = n._dbInfo;
|
|
6813
6736
|
o.db.transaction(function(i) {
|
|
6814
|
-
|
|
6737
|
+
Ge(
|
|
6815
6738
|
i,
|
|
6816
6739
|
o,
|
|
6817
6740
|
`SELECT * FROM ${o.storeName} WHERE key = ? LIMIT 1`,
|
|
@@ -6829,12 +6752,12 @@ function Wu(e, t) {
|
|
|
6829
6752
|
});
|
|
6830
6753
|
return j(r, t), r;
|
|
6831
6754
|
}
|
|
6832
|
-
function
|
|
6755
|
+
function Wu(e, t) {
|
|
6833
6756
|
var n = this, r = new F(function(a, s) {
|
|
6834
6757
|
n.ready().then(function() {
|
|
6835
6758
|
var o = n._dbInfo;
|
|
6836
6759
|
o.db.transaction(function(i) {
|
|
6837
|
-
|
|
6760
|
+
Ge(
|
|
6838
6761
|
i,
|
|
6839
6762
|
o,
|
|
6840
6763
|
`SELECT * FROM ${o.storeName}`,
|
|
@@ -6860,7 +6783,7 @@ function Yu(e, t) {
|
|
|
6860
6783
|
});
|
|
6861
6784
|
return j(r, t), r;
|
|
6862
6785
|
}
|
|
6863
|
-
function
|
|
6786
|
+
function Ts(e, t, n, r) {
|
|
6864
6787
|
var a = this;
|
|
6865
6788
|
e = De(e);
|
|
6866
6789
|
var s = new F(function(o, i) {
|
|
@@ -6870,7 +6793,7 @@ function Is(e, t, n, r) {
|
|
|
6870
6793
|
c.serializer.serialize(t, function(f, u) {
|
|
6871
6794
|
u ? i(u) : c.db.transaction(
|
|
6872
6795
|
function(m) {
|
|
6873
|
-
|
|
6796
|
+
Ge(
|
|
6874
6797
|
m,
|
|
6875
6798
|
c,
|
|
6876
6799
|
`INSERT OR REPLACE INTO ${c.storeName} (key, value) VALUES (?, ?)`,
|
|
@@ -6887,7 +6810,7 @@ function Is(e, t, n, r) {
|
|
|
6887
6810
|
if (m.code === m.QUOTA_ERR) {
|
|
6888
6811
|
if (r > 0) {
|
|
6889
6812
|
o(
|
|
6890
|
-
|
|
6813
|
+
Ts.apply(a, [
|
|
6891
6814
|
e,
|
|
6892
6815
|
l,
|
|
6893
6816
|
n,
|
|
@@ -6905,17 +6828,17 @@ function Is(e, t, n, r) {
|
|
|
6905
6828
|
});
|
|
6906
6829
|
return j(s, n), s;
|
|
6907
6830
|
}
|
|
6908
|
-
function
|
|
6909
|
-
return
|
|
6831
|
+
function Yu(e, t, n) {
|
|
6832
|
+
return Ts.apply(this, [e, t, n, 1]);
|
|
6910
6833
|
}
|
|
6911
|
-
function
|
|
6834
|
+
function Hu(e, t) {
|
|
6912
6835
|
var n = this;
|
|
6913
6836
|
e = De(e);
|
|
6914
6837
|
var r = new F(function(a, s) {
|
|
6915
6838
|
n.ready().then(function() {
|
|
6916
6839
|
var o = n._dbInfo;
|
|
6917
6840
|
o.db.transaction(function(i) {
|
|
6918
|
-
|
|
6841
|
+
Ge(
|
|
6919
6842
|
i,
|
|
6920
6843
|
o,
|
|
6921
6844
|
`DELETE FROM ${o.storeName} WHERE key = ?`,
|
|
@@ -6932,12 +6855,12 @@ function Ku(e, t) {
|
|
|
6932
6855
|
});
|
|
6933
6856
|
return j(r, t), r;
|
|
6934
6857
|
}
|
|
6935
|
-
function
|
|
6858
|
+
function Ku(e) {
|
|
6936
6859
|
var t = this, n = new F(function(r, a) {
|
|
6937
6860
|
t.ready().then(function() {
|
|
6938
6861
|
var s = t._dbInfo;
|
|
6939
6862
|
s.db.transaction(function(o) {
|
|
6940
|
-
|
|
6863
|
+
Ge(
|
|
6941
6864
|
o,
|
|
6942
6865
|
s,
|
|
6943
6866
|
`DELETE FROM ${s.storeName}`,
|
|
@@ -6954,12 +6877,12 @@ function ju(e) {
|
|
|
6954
6877
|
});
|
|
6955
6878
|
return j(n, e), n;
|
|
6956
6879
|
}
|
|
6957
|
-
function
|
|
6880
|
+
function ju(e) {
|
|
6958
6881
|
var t = this, n = new F(function(r, a) {
|
|
6959
6882
|
t.ready().then(function() {
|
|
6960
6883
|
var s = t._dbInfo;
|
|
6961
6884
|
s.db.transaction(function(o) {
|
|
6962
|
-
|
|
6885
|
+
Ge(
|
|
6963
6886
|
o,
|
|
6964
6887
|
s,
|
|
6965
6888
|
`SELECT COUNT(key) as c FROM ${s.storeName}`,
|
|
@@ -6977,12 +6900,12 @@ function qu(e) {
|
|
|
6977
6900
|
});
|
|
6978
6901
|
return j(n, e), n;
|
|
6979
6902
|
}
|
|
6980
|
-
function
|
|
6903
|
+
function qu(e, t) {
|
|
6981
6904
|
var n = this, r = new F(function(a, s) {
|
|
6982
6905
|
n.ready().then(function() {
|
|
6983
6906
|
var o = n._dbInfo;
|
|
6984
6907
|
o.db.transaction(function(i) {
|
|
6985
|
-
|
|
6908
|
+
Ge(
|
|
6986
6909
|
i,
|
|
6987
6910
|
o,
|
|
6988
6911
|
`SELECT key FROM ${o.storeName} WHERE id = ? LIMIT 1`,
|
|
@@ -7000,12 +6923,12 @@ function Xu(e, t) {
|
|
|
7000
6923
|
});
|
|
7001
6924
|
return j(r, t), r;
|
|
7002
6925
|
}
|
|
7003
|
-
function
|
|
6926
|
+
function Xu(e) {
|
|
7004
6927
|
var t = this, n = new F(function(r, a) {
|
|
7005
6928
|
t.ready().then(function() {
|
|
7006
6929
|
var s = t._dbInfo;
|
|
7007
6930
|
s.db.transaction(function(o) {
|
|
7008
|
-
|
|
6931
|
+
Ge(
|
|
7009
6932
|
o,
|
|
7010
6933
|
s,
|
|
7011
6934
|
`SELECT key FROM ${s.storeName}`,
|
|
@@ -7024,7 +6947,7 @@ function Qu(e) {
|
|
|
7024
6947
|
});
|
|
7025
6948
|
return j(n, e), n;
|
|
7026
6949
|
}
|
|
7027
|
-
function
|
|
6950
|
+
function Qu(e) {
|
|
7028
6951
|
return new F(function(t, n) {
|
|
7029
6952
|
e.transaction(
|
|
7030
6953
|
function(r) {
|
|
@@ -7050,7 +6973,7 @@ function Ju(e) {
|
|
|
7050
6973
|
);
|
|
7051
6974
|
});
|
|
7052
6975
|
}
|
|
7053
|
-
function
|
|
6976
|
+
function Ju(e, t) {
|
|
7054
6977
|
t = dr.apply(this, arguments);
|
|
7055
6978
|
var n = this.config();
|
|
7056
6979
|
e = typeof e != "function" && e || {}, e.name || (e.name = e.name || n.name, e.storeName = e.storeName || n.storeName);
|
|
@@ -7060,7 +6983,7 @@ function zu(e, t) {
|
|
|
7060
6983
|
e.name === n.name ? o = r._dbInfo.db : o = openDatabase(e.name, "", "", 0), e.storeName ? s({
|
|
7061
6984
|
db: o,
|
|
7062
6985
|
storeNames: [e.storeName]
|
|
7063
|
-
}) : s(
|
|
6986
|
+
}) : s(Qu(o));
|
|
7064
6987
|
}).then(function(s) {
|
|
7065
6988
|
return new F(function(o, i) {
|
|
7066
6989
|
s.db.transaction(
|
|
@@ -7096,21 +7019,21 @@ function zu(e, t) {
|
|
|
7096
7019
|
});
|
|
7097
7020
|
}) : a = F.reject("Invalid arguments"), j(a, t), a;
|
|
7098
7021
|
}
|
|
7099
|
-
var
|
|
7022
|
+
var zu = {
|
|
7100
7023
|
_driver: "webSQLStorage",
|
|
7101
|
-
_initStorage:
|
|
7102
|
-
_support:
|
|
7103
|
-
iterate:
|
|
7104
|
-
getItem:
|
|
7105
|
-
setItem:
|
|
7106
|
-
removeItem:
|
|
7107
|
-
clear:
|
|
7108
|
-
length:
|
|
7109
|
-
key:
|
|
7110
|
-
keys:
|
|
7111
|
-
dropInstance:
|
|
7024
|
+
_initStorage: Gu,
|
|
7025
|
+
_support: Uu(),
|
|
7026
|
+
iterate: Wu,
|
|
7027
|
+
getItem: $u,
|
|
7028
|
+
setItem: Yu,
|
|
7029
|
+
removeItem: Hu,
|
|
7030
|
+
clear: Ku,
|
|
7031
|
+
length: ju,
|
|
7032
|
+
key: qu,
|
|
7033
|
+
keys: Xu,
|
|
7034
|
+
dropInstance: Ju
|
|
7112
7035
|
};
|
|
7113
|
-
function
|
|
7036
|
+
function Zu() {
|
|
7114
7037
|
try {
|
|
7115
7038
|
return typeof localStorage < "u" && "setItem" in localStorage && // in IE8 typeof localStorage.setItem === 'object'
|
|
7116
7039
|
!!localStorage.setItem;
|
|
@@ -7118,11 +7041,11 @@ function ef() {
|
|
|
7118
7041
|
return !1;
|
|
7119
7042
|
}
|
|
7120
7043
|
}
|
|
7121
|
-
function
|
|
7044
|
+
function Os(e, t) {
|
|
7122
7045
|
var n = e.name + "/";
|
|
7123
7046
|
return e.storeName !== t.storeName && (n += e.storeName + "/"), n;
|
|
7124
7047
|
}
|
|
7125
|
-
function
|
|
7048
|
+
function ef() {
|
|
7126
7049
|
var e = "_localforage_support_test";
|
|
7127
7050
|
try {
|
|
7128
7051
|
return localStorage.setItem(e, !0), localStorage.removeItem(e), !1;
|
|
@@ -7130,17 +7053,17 @@ function tf() {
|
|
|
7130
7053
|
return !0;
|
|
7131
7054
|
}
|
|
7132
7055
|
}
|
|
7133
|
-
function
|
|
7134
|
-
return !
|
|
7056
|
+
function tf() {
|
|
7057
|
+
return !ef() || localStorage.length > 0;
|
|
7135
7058
|
}
|
|
7136
|
-
function
|
|
7059
|
+
function nf(e) {
|
|
7137
7060
|
var t = this, n = {};
|
|
7138
7061
|
if (e)
|
|
7139
7062
|
for (var r in e)
|
|
7140
7063
|
n[r] = e[r];
|
|
7141
|
-
return n.keyPrefix =
|
|
7064
|
+
return n.keyPrefix = Os(e, t._defaultConfig), tf() ? (t._dbInfo = n, n.serializer = pr, F.resolve()) : F.reject();
|
|
7142
7065
|
}
|
|
7143
|
-
function
|
|
7066
|
+
function rf(e) {
|
|
7144
7067
|
var t = this, n = t.ready().then(function() {
|
|
7145
7068
|
for (var r = t._dbInfo.keyPrefix, a = localStorage.length - 1; a >= 0; a--) {
|
|
7146
7069
|
var s = localStorage.key(a);
|
|
@@ -7149,7 +7072,7 @@ function af(e) {
|
|
|
7149
7072
|
});
|
|
7150
7073
|
return j(n, e), n;
|
|
7151
7074
|
}
|
|
7152
|
-
function
|
|
7075
|
+
function af(e, t) {
|
|
7153
7076
|
var n = this;
|
|
7154
7077
|
e = De(e);
|
|
7155
7078
|
var r = n.ready().then(function() {
|
|
@@ -7158,7 +7081,7 @@ function sf(e, t) {
|
|
|
7158
7081
|
});
|
|
7159
7082
|
return j(r, t), r;
|
|
7160
7083
|
}
|
|
7161
|
-
function
|
|
7084
|
+
function sf(e, t) {
|
|
7162
7085
|
var n = this, r = n.ready().then(function() {
|
|
7163
7086
|
for (var a = n._dbInfo, s = a.keyPrefix, o = s.length, i = localStorage.length, l = 1, c = 0; c < i; c++) {
|
|
7164
7087
|
var f = localStorage.key(c);
|
|
@@ -7175,7 +7098,7 @@ function of(e, t) {
|
|
|
7175
7098
|
});
|
|
7176
7099
|
return j(r, t), r;
|
|
7177
7100
|
}
|
|
7178
|
-
function
|
|
7101
|
+
function of(e, t) {
|
|
7179
7102
|
var n = this, r = n.ready().then(function() {
|
|
7180
7103
|
var a = n._dbInfo, s;
|
|
7181
7104
|
try {
|
|
@@ -7187,7 +7110,7 @@ function lf(e, t) {
|
|
|
7187
7110
|
});
|
|
7188
7111
|
return j(r, t), r;
|
|
7189
7112
|
}
|
|
7190
|
-
function
|
|
7113
|
+
function lf(e) {
|
|
7191
7114
|
var t = this, n = t.ready().then(function() {
|
|
7192
7115
|
for (var r = t._dbInfo, a = localStorage.length, s = [], o = 0; o < a; o++) {
|
|
7193
7116
|
var i = localStorage.key(o);
|
|
@@ -7197,13 +7120,13 @@ function cf(e) {
|
|
|
7197
7120
|
});
|
|
7198
7121
|
return j(n, e), n;
|
|
7199
7122
|
}
|
|
7200
|
-
function
|
|
7123
|
+
function cf(e) {
|
|
7201
7124
|
var t = this, n = t.keys().then(function(r) {
|
|
7202
7125
|
return r.length;
|
|
7203
7126
|
});
|
|
7204
7127
|
return j(n, e), n;
|
|
7205
7128
|
}
|
|
7206
|
-
function
|
|
7129
|
+
function uf(e, t) {
|
|
7207
7130
|
var n = this;
|
|
7208
7131
|
e = De(e);
|
|
7209
7132
|
var r = n.ready().then(function() {
|
|
@@ -7212,7 +7135,7 @@ function ff(e, t) {
|
|
|
7212
7135
|
});
|
|
7213
7136
|
return j(r, t), r;
|
|
7214
7137
|
}
|
|
7215
|
-
function
|
|
7138
|
+
function ff(e, t, n) {
|
|
7216
7139
|
var r = this;
|
|
7217
7140
|
e = De(e);
|
|
7218
7141
|
var a = r.ready().then(function() {
|
|
@@ -7234,14 +7157,14 @@ function _f(e, t, n) {
|
|
|
7234
7157
|
});
|
|
7235
7158
|
return j(a, n), a;
|
|
7236
7159
|
}
|
|
7237
|
-
function
|
|
7160
|
+
function _f(e, t) {
|
|
7238
7161
|
if (t = dr.apply(this, arguments), e = typeof e != "function" && e || {}, !e.name) {
|
|
7239
7162
|
var n = this.config();
|
|
7240
7163
|
e.name = e.name || n.name, e.storeName = e.storeName || n.storeName;
|
|
7241
7164
|
}
|
|
7242
7165
|
var r = this, a;
|
|
7243
7166
|
return e.name ? a = new F(function(s) {
|
|
7244
|
-
e.storeName ? s(
|
|
7167
|
+
e.storeName ? s(Os(e, r._defaultConfig)) : s(`${e.name}/`);
|
|
7245
7168
|
}).then(function(s) {
|
|
7246
7169
|
for (var o = localStorage.length - 1; o >= 0; o--) {
|
|
7247
7170
|
var i = localStorage.key(o);
|
|
@@ -7249,39 +7172,39 @@ function df(e, t) {
|
|
|
7249
7172
|
}
|
|
7250
7173
|
}) : a = F.reject("Invalid arguments"), j(a, t), a;
|
|
7251
7174
|
}
|
|
7252
|
-
var
|
|
7175
|
+
var df = {
|
|
7253
7176
|
_driver: "localStorageWrapper",
|
|
7254
|
-
_initStorage:
|
|
7255
|
-
_support:
|
|
7256
|
-
iterate:
|
|
7257
|
-
getItem:
|
|
7258
|
-
setItem:
|
|
7259
|
-
removeItem:
|
|
7260
|
-
clear:
|
|
7261
|
-
length:
|
|
7262
|
-
key:
|
|
7263
|
-
keys:
|
|
7264
|
-
dropInstance:
|
|
7177
|
+
_initStorage: nf,
|
|
7178
|
+
_support: Zu(),
|
|
7179
|
+
iterate: sf,
|
|
7180
|
+
getItem: af,
|
|
7181
|
+
setItem: ff,
|
|
7182
|
+
removeItem: uf,
|
|
7183
|
+
clear: rf,
|
|
7184
|
+
length: cf,
|
|
7185
|
+
key: of,
|
|
7186
|
+
keys: lf,
|
|
7187
|
+
dropInstance: _f
|
|
7265
7188
|
};
|
|
7266
|
-
const
|
|
7189
|
+
const mf = (e, t) => e === t || typeof e == "number" && typeof t == "number" && isNaN(e) && isNaN(t), hf = (e, t) => {
|
|
7267
7190
|
const n = e.length;
|
|
7268
7191
|
let r = 0;
|
|
7269
7192
|
for (; r < n; ) {
|
|
7270
|
-
if (
|
|
7193
|
+
if (mf(e[r], t))
|
|
7271
7194
|
return !0;
|
|
7272
7195
|
r++;
|
|
7273
7196
|
}
|
|
7274
7197
|
return !1;
|
|
7275
|
-
},
|
|
7198
|
+
}, Is = Array.isArray || function(e) {
|
|
7276
7199
|
return Object.prototype.toString.call(e) === "[object Array]";
|
|
7277
|
-
},
|
|
7278
|
-
INDEXEDDB:
|
|
7279
|
-
WEBSQL:
|
|
7280
|
-
LOCALSTORAGE:
|
|
7281
|
-
},
|
|
7282
|
-
|
|
7283
|
-
|
|
7284
|
-
|
|
7200
|
+
}, vt = {}, ga = {}, it = {
|
|
7201
|
+
INDEXEDDB: Mu,
|
|
7202
|
+
WEBSQL: zu,
|
|
7203
|
+
LOCALSTORAGE: df
|
|
7204
|
+
}, gf = [
|
|
7205
|
+
it.INDEXEDDB._driver,
|
|
7206
|
+
it.WEBSQL._driver,
|
|
7207
|
+
it.LOCALSTORAGE._driver
|
|
7285
7208
|
], Yt = ["dropInstance"], Cn = [
|
|
7286
7209
|
"clear",
|
|
7287
7210
|
"getItem",
|
|
@@ -7291,9 +7214,9 @@ const hf = (e, t) => e === t || typeof e == "number" && typeof t == "number" &&
|
|
|
7291
7214
|
"length",
|
|
7292
7215
|
"removeItem",
|
|
7293
7216
|
"setItem"
|
|
7294
|
-
].concat(Yt),
|
|
7217
|
+
].concat(Yt), pf = {
|
|
7295
7218
|
description: "",
|
|
7296
|
-
driver:
|
|
7219
|
+
driver: gf.slice(),
|
|
7297
7220
|
name: "localforage",
|
|
7298
7221
|
// Default DB size is _JUST UNDER_ 5MB, as it's the highest size
|
|
7299
7222
|
// we can use without a prompt.
|
|
@@ -7301,7 +7224,7 @@ const hf = (e, t) => e === t || typeof e == "number" && typeof t == "number" &&
|
|
|
7301
7224
|
storeName: "keyvaluepairs",
|
|
7302
7225
|
version: 1
|
|
7303
7226
|
};
|
|
7304
|
-
function
|
|
7227
|
+
function Ef(e, t) {
|
|
7305
7228
|
e[t] = function() {
|
|
7306
7229
|
const n = arguments;
|
|
7307
7230
|
return e.ready().then(function() {
|
|
@@ -7317,18 +7240,18 @@ function Ln() {
|
|
|
7317
7240
|
const t = arguments[e];
|
|
7318
7241
|
if (t)
|
|
7319
7242
|
for (let n in t)
|
|
7320
|
-
t.hasOwnProperty(n) && (
|
|
7243
|
+
t.hasOwnProperty(n) && (Is(t[n]) ? arguments[0][n] = t[n].slice() : arguments[0][n] = t[n]);
|
|
7321
7244
|
}
|
|
7322
7245
|
return arguments[0];
|
|
7323
7246
|
}
|
|
7324
7247
|
class Er {
|
|
7325
7248
|
constructor(t) {
|
|
7326
|
-
for (let n in
|
|
7327
|
-
if (
|
|
7328
|
-
const r =
|
|
7329
|
-
this[n] = a,
|
|
7249
|
+
for (let n in it)
|
|
7250
|
+
if (it.hasOwnProperty(n)) {
|
|
7251
|
+
const r = it[n], a = r._driver;
|
|
7252
|
+
this[n] = a, vt[a] || this.defineDriver(r);
|
|
7330
7253
|
}
|
|
7331
|
-
this._defaultConfig = Ln({},
|
|
7254
|
+
this._defaultConfig = Ln({}, pf), this._config = Ln({}, this._defaultConfig, t), this._driverSet = null, this._initDriver = null, this._ready = !1, this._dbInfo = null, this._wrapLibraryMethodsWithReady(), this.setDriver(this._config.driver).catch(() => {
|
|
7332
7255
|
});
|
|
7333
7256
|
}
|
|
7334
7257
|
// Set any config values for localForage; can be called anytime before
|
|
@@ -7364,7 +7287,7 @@ class Er {
|
|
|
7364
7287
|
const c = Cn.concat("_initStorage");
|
|
7365
7288
|
for (let m = 0, p = c.length; m < p; m++) {
|
|
7366
7289
|
const A = c[m];
|
|
7367
|
-
if ((!
|
|
7290
|
+
if ((!hf(
|
|
7368
7291
|
Yt,
|
|
7369
7292
|
A
|
|
7370
7293
|
) || t[A]) && typeof t[A] != "function") {
|
|
@@ -7392,35 +7315,33 @@ class Er {
|
|
|
7392
7315
|
}
|
|
7393
7316
|
})();
|
|
7394
7317
|
const u = function(m) {
|
|
7395
|
-
|
|
7396
|
-
`Redefining LocalForage driver: ${i}`
|
|
7397
|
-
), At[i] = t, ga[i] = m, s();
|
|
7318
|
+
vt[i], vt[i] = t, ga[i] = m, s();
|
|
7398
7319
|
};
|
|
7399
7320
|
"_support" in t ? t._support && typeof t._support == "function" ? t._support().then(u, o) : u(!!t._support) : u(!0);
|
|
7400
7321
|
} catch (i) {
|
|
7401
7322
|
o(i);
|
|
7402
7323
|
}
|
|
7403
7324
|
});
|
|
7404
|
-
return
|
|
7325
|
+
return ot(a, n, r), a;
|
|
7405
7326
|
}
|
|
7406
7327
|
driver() {
|
|
7407
7328
|
return this._driver || null;
|
|
7408
7329
|
}
|
|
7409
7330
|
getDriver(t, n, r) {
|
|
7410
|
-
const a =
|
|
7411
|
-
return
|
|
7331
|
+
const a = vt[t] ? F.resolve(vt[t]) : F.reject(new Error("Driver not found."));
|
|
7332
|
+
return ot(a, n, r), a;
|
|
7412
7333
|
}
|
|
7413
7334
|
getSerializer(t) {
|
|
7414
7335
|
const n = F.resolve(pr);
|
|
7415
|
-
return
|
|
7336
|
+
return ot(n, t), n;
|
|
7416
7337
|
}
|
|
7417
7338
|
ready(t) {
|
|
7418
7339
|
const n = this, r = n._driverSet.then(() => (n._ready === null && (n._ready = n._initDriver()), n._ready));
|
|
7419
|
-
return
|
|
7340
|
+
return ot(r, t, t), r;
|
|
7420
7341
|
}
|
|
7421
7342
|
setDriver(t, n, r) {
|
|
7422
7343
|
const a = this;
|
|
7423
|
-
|
|
7344
|
+
Is(t) || (t = [t]);
|
|
7424
7345
|
const s = this._getSupportedDrivers(t);
|
|
7425
7346
|
function o() {
|
|
7426
7347
|
a._config.driver = a.driver();
|
|
@@ -7455,7 +7376,7 @@ class Er {
|
|
|
7455
7376
|
o();
|
|
7456
7377
|
const f = new Error("No available storage method found.");
|
|
7457
7378
|
return a._driverSet = F.reject(f), a._driverSet;
|
|
7458
|
-
}),
|
|
7379
|
+
}), ot(this._driverSet, n, r), this._driverSet;
|
|
7459
7380
|
}
|
|
7460
7381
|
supports(t) {
|
|
7461
7382
|
return !!ga[t];
|
|
@@ -7473,51 +7394,51 @@ class Er {
|
|
|
7473
7394
|
}
|
|
7474
7395
|
_wrapLibraryMethodsWithReady() {
|
|
7475
7396
|
for (let t = 0, n = Cn.length; t < n; t++)
|
|
7476
|
-
|
|
7397
|
+
Ef(this, Cn[t]);
|
|
7477
7398
|
}
|
|
7478
7399
|
createInstance(t) {
|
|
7479
7400
|
return new Er(t);
|
|
7480
7401
|
}
|
|
7481
7402
|
}
|
|
7482
|
-
const
|
|
7483
|
-
class
|
|
7403
|
+
const He = new Er();
|
|
7404
|
+
class bf {
|
|
7484
7405
|
constructor(t) {
|
|
7485
|
-
this.db_name = t.db_name || "cvjs",
|
|
7406
|
+
this.db_name = t.db_name || "cvjs", He.config({
|
|
7486
7407
|
name: this.db_name,
|
|
7487
7408
|
storeName: "common"
|
|
7488
7409
|
}), this.keyExpired = {}, this.keyGroup = [], this.__open_log = !1, this.__timer = {};
|
|
7489
7410
|
}
|
|
7490
7411
|
async idbTest() {
|
|
7491
7412
|
try {
|
|
7492
|
-
cvUtils.isDevice_ios() && await
|
|
7413
|
+
cvUtils.isDevice_ios() && await He.setItem("__test__", $A.Time()), this.__open_log;
|
|
7493
7414
|
} catch (t) {
|
|
7494
|
-
this.__open_log ?
|
|
7415
|
+
this.__open_log ? ElMessageBox.alert(t.message, "温馨提示", {
|
|
7495
7416
|
// autofocus: false,
|
|
7496
7417
|
confirmButtonText: "OK"
|
|
7497
7418
|
}).then(() => {
|
|
7498
7419
|
$A.reloadUrl();
|
|
7499
|
-
})
|
|
7420
|
+
}) : $A.reloadUrl();
|
|
7500
7421
|
}
|
|
7501
7422
|
}
|
|
7502
7423
|
idbSave(t, n, r = 100) {
|
|
7503
7424
|
typeof this.__timer[t] < "u" && (clearTimeout(this.__timer[t]), delete this.__timer[t]), this.__timer[t] = setTimeout(async (a) => {
|
|
7504
7425
|
let s = JSON.parse(JSON.stringify(n));
|
|
7505
|
-
await
|
|
7426
|
+
await He.setItem(t, s);
|
|
7506
7427
|
}, r);
|
|
7507
7428
|
}
|
|
7508
7429
|
idbGetItem(t) {
|
|
7509
|
-
return
|
|
7430
|
+
return He.getItem(t);
|
|
7510
7431
|
}
|
|
7511
7432
|
idbSetItem(t, n) {
|
|
7512
7433
|
let r = "";
|
|
7513
|
-
return n && n != "undefined" && (r = JSON.parse(JSON.stringify(n))),
|
|
7434
|
+
return n && n != "undefined" && (r = JSON.parse(JSON.stringify(n))), He.setItem(t, r);
|
|
7514
7435
|
}
|
|
7515
7436
|
idbDelItem(t) {
|
|
7516
|
-
|
|
7437
|
+
He.removeItem(t).then((n) => {
|
|
7517
7438
|
});
|
|
7518
7439
|
}
|
|
7519
7440
|
idbClear() {
|
|
7520
|
-
return
|
|
7441
|
+
return He.clear();
|
|
7521
7442
|
}
|
|
7522
7443
|
async idbGetString(t, n = "") {
|
|
7523
7444
|
const r = await this.idbGetItem(t);
|
|
@@ -7540,7 +7461,7 @@ class Sf {
|
|
|
7540
7461
|
return cvUtils.isTypeJson(r) ? r : n;
|
|
7541
7462
|
}
|
|
7542
7463
|
}
|
|
7543
|
-
class
|
|
7464
|
+
class Sf {
|
|
7544
7465
|
constructor(t) {
|
|
7545
7466
|
this.keyExpired = {}, this.keyGroup = [], this.__open_log = !1, this.__timer = {};
|
|
7546
7467
|
}
|
|
@@ -7587,15 +7508,15 @@ class vf {
|
|
|
7587
7508
|
}
|
|
7588
7509
|
}
|
|
7589
7510
|
}
|
|
7590
|
-
const D = new
|
|
7511
|
+
const D = new gu({
|
|
7591
7512
|
prefix: ""
|
|
7592
|
-
}),
|
|
7513
|
+
}), vf = new bf({
|
|
7593
7514
|
db_name: "ShiyunConsole"
|
|
7594
7515
|
});
|
|
7595
|
-
window.gbIdbObj =
|
|
7596
|
-
const
|
|
7597
|
-
window.gbSessObj =
|
|
7598
|
-
function
|
|
7516
|
+
window.gbIdbObj = vf;
|
|
7517
|
+
const Af = new Sf({});
|
|
7518
|
+
window.gbSessObj = Af;
|
|
7519
|
+
function yf(e, t, n = !1) {
|
|
7599
7520
|
return n ? !!t.find((r) => r && r.indexOf("*") && new RegExp("^" + r.replace(/[-\/\\^$+?.()|[\]{}]/g, "\\$&").replace(/\*/g, ".*") + "$", "g").test(e) ? !0 : r == e) : t.includes(e);
|
|
7600
7521
|
}
|
|
7601
7522
|
const pa = {
|
|
@@ -7635,11 +7556,11 @@ class nn {
|
|
|
7635
7556
|
), this._initReqHandle();
|
|
7636
7557
|
}
|
|
7637
7558
|
debugLog() {
|
|
7638
|
-
this.debugState
|
|
7559
|
+
this.debugState;
|
|
7639
7560
|
}
|
|
7640
7561
|
/* 初始化 request 句柄 */
|
|
7641
7562
|
_initReqHandle() {
|
|
7642
|
-
this.requestHandle =
|
|
7563
|
+
this.requestHandle = Xs.create({
|
|
7643
7564
|
timeout: 1e4,
|
|
7644
7565
|
// request timeout
|
|
7645
7566
|
// 表示跨域请求时是否需要使用凭证;
|
|
@@ -7798,7 +7719,6 @@ class nn {
|
|
|
7798
7719
|
* 设置错误时响应
|
|
7799
7720
|
*/
|
|
7800
7721
|
resetNetError(t) {
|
|
7801
|
-
console.log(t.message || "");
|
|
7802
7722
|
}
|
|
7803
7723
|
/**
|
|
7804
7724
|
* 设置网络请求响应
|
|
@@ -7851,7 +7771,7 @@ class nn {
|
|
|
7851
7771
|
let a = this.canshuOpt || {};
|
|
7852
7772
|
this.canshuOpt = {};
|
|
7853
7773
|
let s = !1;
|
|
7854
|
-
if (this.encryptURL &&
|
|
7774
|
+
if (this.encryptURL && yf(n, this.encryptURL, !0) && (s = !0), this.encryptFlag && (s = !0), s) {
|
|
7855
7775
|
const o = window.navigator.userAgent;
|
|
7856
7776
|
(/Windows NT 5.1|Windows XP/.test(o) || o.indexOf("Windows NT 6.0") !== -1 || o.indexOf("Windows NT 6.1") !== -1 || o.indexOf("Windows NT 6.2") !== -1) && (s = !1);
|
|
7857
7777
|
}
|
|
@@ -7999,13 +7919,13 @@ class nn {
|
|
|
7999
7919
|
return new Promise((c, f) => f({ message: " 请求错误 " }));
|
|
8000
7920
|
}
|
|
8001
7921
|
}
|
|
8002
|
-
const
|
|
7922
|
+
const Nf = {
|
|
8003
7923
|
BASE_LOAD_COMMON_API_FLAG: "/base.base_load/common/api_flag",
|
|
8004
7924
|
BASE_LOAD_COMMON_API_AUTH: "/base.base_load/common/api_auth",
|
|
8005
7925
|
BASE_LOAD_COMMON_API_CODE: "/base.base_load/common/api_code",
|
|
8006
7926
|
BASE_ACCSYS_COMMON_KEYCLIENT: "/base.account_sys/common/key_client",
|
|
8007
7927
|
BASE_SYS_COMMON_PLAT_SETTING: "/base.base_sys/common/plat_setting"
|
|
8008
|
-
},
|
|
7928
|
+
}, Tf = {
|
|
8009
7929
|
BASE_LOAD_COMMON_API_FLAG: "app:true;auth:false;",
|
|
8010
7930
|
BASE_LOAD_COMMON_API_AUTH: "app:true;auth:false;",
|
|
8011
7931
|
BASE_LOAD_COMMON_API_CODE: "app:true;auth:false;",
|
|
@@ -8013,8 +7933,8 @@ const Tf = {
|
|
|
8013
7933
|
BASE_SYS_COMMON_PLAT_SETTING: "app:true;auth:false;"
|
|
8014
7934
|
};
|
|
8015
7935
|
nn.prototype.resetNetError = function(e) {
|
|
8016
|
-
if (
|
|
8017
|
-
return Te().SA_ACCOUNT_LOGOUT(),
|
|
7936
|
+
if (!me.__POWERED_BY_QIANKUN__ && e.status && e.status == 401)
|
|
7937
|
+
return Te().SA_ACCOUNT_LOGOUT(), Ys.alert("未经授权,请登录", "友情提示", {
|
|
8018
7938
|
// if you want to disable its autofocus
|
|
8019
7939
|
// autofocus: false,
|
|
8020
7940
|
confirmButtonText: "OK",
|
|
@@ -8023,7 +7943,7 @@ nn.prototype.resetNetError = function(e) {
|
|
|
8023
7943
|
}
|
|
8024
7944
|
}), !1;
|
|
8025
7945
|
let t = (e.status ? `[ ${e.status} ] ` : "") + (e.title || "提示");
|
|
8026
|
-
|
|
7946
|
+
Hs({
|
|
8027
7947
|
title: t,
|
|
8028
7948
|
message: e.message,
|
|
8029
7949
|
type: e.type || "info",
|
|
@@ -8033,7 +7953,7 @@ nn.prototype.resetNetError = function(e) {
|
|
|
8033
7953
|
});
|
|
8034
7954
|
};
|
|
8035
7955
|
nn.prototype.resetNetResponse2 = function(e) {
|
|
8036
|
-
return
|
|
7956
|
+
return e;
|
|
8037
7957
|
};
|
|
8038
7958
|
nn.prototype.cancelRequest = function(e) {
|
|
8039
7959
|
if (!e)
|
|
@@ -8043,10 +7963,10 @@ nn.prototype.cancelRequest = function(e) {
|
|
|
8043
7963
|
n.id === e && (t++, n.request && n.request.abort());
|
|
8044
7964
|
}), t > 0 && (__ajaxList = __ajaxList.filter((n) => n.id !== e)), t;
|
|
8045
7965
|
};
|
|
8046
|
-
let
|
|
8047
|
-
function
|
|
8048
|
-
const t =
|
|
8049
|
-
|
|
7966
|
+
let qe = null;
|
|
7967
|
+
function Cs(e = {}) {
|
|
7968
|
+
const t = Nt();
|
|
7969
|
+
qe = new nn({
|
|
8050
7970
|
// timeout: 60 * 1000, // 请求超时时间毫秒
|
|
8051
7971
|
// withCredentials: true, // true|false 异步请求携带cookie(Check cross-site Access-Control)
|
|
8052
7972
|
baseURL: t.syApiBaseUrl || "",
|
|
@@ -8072,11 +7992,24 @@ function If(e) {
|
|
|
8072
7992
|
"dialog/msg/*"
|
|
8073
7993
|
]
|
|
8074
7994
|
});
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
7995
|
+
let n = {}, r = {};
|
|
7996
|
+
e && (n = e.ApiFlagSet || {}, r = e.ApiAuthSet || {});
|
|
7997
|
+
let a = Object.assign({}, Nf, n, t.syOpenApiFlag), s = Object.assign({}, Tf, r, t.syOpenApiAuth);
|
|
7998
|
+
return qe.setApiFlag(a), qe.setApiAuth(s), qe;
|
|
7999
|
+
}
|
|
8000
|
+
function Of() {
|
|
8001
|
+
return qe || (qe = Cs()), qe;
|
|
8078
8002
|
}
|
|
8079
|
-
|
|
8003
|
+
const fe = new Proxy(
|
|
8004
|
+
{},
|
|
8005
|
+
{
|
|
8006
|
+
get(e, t) {
|
|
8007
|
+
const n = Of();
|
|
8008
|
+
return typeof n[t] == "function" ? n[t].bind(n) : n[t];
|
|
8009
|
+
}
|
|
8010
|
+
}
|
|
8011
|
+
);
|
|
8012
|
+
var If = {
|
|
8080
8013
|
methods: {
|
|
8081
8014
|
// 返回上级
|
|
8082
8015
|
jumpsBack() {
|
|
@@ -8122,26 +8055,26 @@ var Cf = {
|
|
|
8122
8055
|
},
|
|
8123
8056
|
// 跨应用路由跳转
|
|
8124
8057
|
jumpsQiankun(e) {
|
|
8125
|
-
|
|
8058
|
+
zs(e);
|
|
8126
8059
|
}
|
|
8127
8060
|
}
|
|
8128
8061
|
};
|
|
8129
8062
|
function ba(e, t, n) {
|
|
8130
8063
|
const r = t.value;
|
|
8131
8064
|
if (r)
|
|
8132
|
-
|
|
8065
|
+
is(r) || !1 || e.parentNode && e.parentNode.removeChild(e);
|
|
8133
8066
|
else
|
|
8134
8067
|
throw new Error(`需要指定权限标识! 如:v-auth="'xxxx_add'" 或 v-auth="['xxxx_xxx']"`);
|
|
8135
8068
|
}
|
|
8136
|
-
function
|
|
8069
|
+
function Cf(e, t, n) {
|
|
8137
8070
|
n = n || "vue3", n == "vue2" ? e.directive("auth", {
|
|
8138
8071
|
inserted: ba
|
|
8139
8072
|
}) : e.directive("auth", {
|
|
8140
8073
|
mounted: ba
|
|
8141
|
-
}), t.$_auth =
|
|
8074
|
+
}), t.$_auth = is;
|
|
8142
8075
|
}
|
|
8143
8076
|
/*! Element Plus v2.9.7 */
|
|
8144
|
-
var
|
|
8077
|
+
var Lf = {
|
|
8145
8078
|
name: "zh-cn",
|
|
8146
8079
|
el: {
|
|
8147
8080
|
breadcrumb: {
|
|
@@ -8319,23 +8252,23 @@ var wf = {
|
|
|
8319
8252
|
}
|
|
8320
8253
|
}
|
|
8321
8254
|
};
|
|
8322
|
-
function
|
|
8323
|
-
e.use(
|
|
8255
|
+
function wf(e) {
|
|
8256
|
+
e.use(Ws, {
|
|
8324
8257
|
// size: 'default',
|
|
8325
|
-
locale:
|
|
8258
|
+
locale: Lf
|
|
8326
8259
|
});
|
|
8327
|
-
for (const [t, n] of Object.entries(
|
|
8260
|
+
for (const [t, n] of Object.entries(Ks))
|
|
8328
8261
|
e.component("ElIcon" + t, n);
|
|
8329
8262
|
}
|
|
8330
|
-
function
|
|
8331
|
-
e.use(
|
|
8263
|
+
function Df(e) {
|
|
8264
|
+
e.use(js, {
|
|
8332
8265
|
// 所有和上传相关(上传图片, 上传视频, 富文本中图片上传)
|
|
8333
8266
|
uploadImg: {
|
|
8334
8267
|
// fileSize: 5,
|
|
8335
8268
|
file_name: "file",
|
|
8336
8269
|
upName: "file",
|
|
8337
8270
|
upProceedFn: (t, n) => {
|
|
8338
|
-
|
|
8271
|
+
fe.flagUpload("SDK_FILE_COMMON_UPLOAD_IMG", {
|
|
8339
8272
|
file: t
|
|
8340
8273
|
}).then((r) => {
|
|
8341
8274
|
n(r, t);
|
|
@@ -8357,32 +8290,31 @@ function Rf(e) {
|
|
|
8357
8290
|
// }
|
|
8358
8291
|
}
|
|
8359
8292
|
});
|
|
8360
|
-
for (const [t, n] of Object.entries(
|
|
8293
|
+
for (const [t, n] of Object.entries(qs))
|
|
8361
8294
|
e.component("cvSvg" + t, n);
|
|
8362
8295
|
}
|
|
8363
|
-
async function
|
|
8364
|
-
|
|
8296
|
+
async function Wf(e, t) {
|
|
8297
|
+
Qs(t), Cs(e), Pt().init(), Ue().init(), await fr().init(), await Te().init();
|
|
8365
8298
|
}
|
|
8366
|
-
async function
|
|
8367
|
-
|
|
8299
|
+
async function Yf(e, t, n, r, a = "", s = null) {
|
|
8300
|
+
Zt().init(r), en().init(n);
|
|
8368
8301
|
let o = e.config.globalProperties;
|
|
8369
8302
|
o.$onLaunched = new Promise((l) => {
|
|
8370
8303
|
o.$isResolve = l;
|
|
8371
|
-
}), o.$request =
|
|
8304
|
+
}), o.$request = fe, o.$cache = D, wf(e), Df(e), Cf(e, o), e.mixin(Zl()), e.mixin(If), await Rf(t, r, a), e.use(as);
|
|
8372
8305
|
let i = Pt().SA_LANGUAGE_GET();
|
|
8373
|
-
|
|
8306
|
+
Ml(i, s), window.$t = Ke.t;
|
|
8374
8307
|
}
|
|
8375
|
-
async function
|
|
8376
|
-
console.log("%c[10yun]", "color:blue;", "sdkBindRouter");
|
|
8308
|
+
async function Rf(e, t, n) {
|
|
8377
8309
|
const r = Tt(), a = Te(), s = Zt(), o = en();
|
|
8378
8310
|
r.QK_SEND_MSG_REG_SUBMENU(t);
|
|
8379
|
-
let i =
|
|
8380
|
-
|
|
8311
|
+
let i = Nt().syProductSign || "";
|
|
8312
|
+
o.SA_PERMS_ROUTER_ADD(e, i), s.SA_MENU_PARSE(), r.QK_SEND_MSG_ROUTER_BEFORE(n);
|
|
8381
8313
|
let l = !1, c = !1, f = !1;
|
|
8382
8314
|
e.beforeEach((u, m, p) => {
|
|
8383
8315
|
const A = u.path || "", E = m.path, C = u.query || {};
|
|
8384
8316
|
let h = a.accountIsLogin;
|
|
8385
|
-
if (
|
|
8317
|
+
if (me.__POWERED_BY_QIANKUN__ && (h = a.SA_ACCOUNT_IS_LOGGED()), C.token, h) {
|
|
8386
8318
|
if (l || (s.SA_MENU_PARSE(), l = !0), E == "/" && A == "/none") {
|
|
8387
8319
|
if (o.SA_PERMS_ROUTER_CHECK({ name: "index" }))
|
|
8388
8320
|
return p({ path: "/" });
|
|
@@ -8391,42 +8323,44 @@ async function Pf(e, t, n) {
|
|
|
8391
8323
|
if ((E == "/login" || E == "/index") && (c || (r.QK_SEND_LOGIN_MSG(), c = !0, f = !1)), ["/login", "/alone_run"].includes(A))
|
|
8392
8324
|
return p({ path: "/" });
|
|
8393
8325
|
p();
|
|
8394
|
-
} else
|
|
8395
|
-
s.SA_MENU_PARSE(), l = !1, f || (r.QK_SEND_LOGOUT_MSG(), c = !1, f = !0), ["/login", "/alone_run"].includes(A)
|
|
8326
|
+
} else {
|
|
8327
|
+
if (s.SA_MENU_PARSE(), l = !1, f || (r.QK_SEND_LOGOUT_MSG(), c = !1, f = !0), !["/login", "/alone_run"].includes(A))
|
|
8328
|
+
return p({ path: "/login", replace: !0 });
|
|
8329
|
+
p();
|
|
8330
|
+
}
|
|
8396
8331
|
}), e.isReady().then(async () => {
|
|
8397
|
-
console.log("%c[10yun]", "color:blue;", "sdkBindRouter[ route-isReady ]");
|
|
8398
8332
|
}), e.afterEach(function(u, m) {
|
|
8399
8333
|
var p;
|
|
8400
|
-
if ((p = u == null ? void 0 : u.meta) != null && p.title && !
|
|
8334
|
+
if ((p = u == null ? void 0 : u.meta) != null && p.title && !me.__POWERED_BY_QIANKUN__) {
|
|
8401
8335
|
let A = "管理系统", E = u.meta.title;
|
|
8402
8336
|
document.title = E ? `${E} - ${A}` : `${A}`;
|
|
8403
8337
|
}
|
|
8404
8338
|
});
|
|
8405
8339
|
}
|
|
8406
|
-
async function
|
|
8407
|
-
|
|
8340
|
+
async function Hf(e, t, n) {
|
|
8341
|
+
me.__POWERED_BY_QIANKUN__ ? eo(e, t, n) : t();
|
|
8408
8342
|
}
|
|
8409
8343
|
export {
|
|
8410
|
-
|
|
8411
|
-
|
|
8344
|
+
fe as H,
|
|
8345
|
+
Qc as S,
|
|
8412
8346
|
we as _,
|
|
8413
8347
|
Ue as a,
|
|
8414
8348
|
Te as b,
|
|
8415
8349
|
fr as c,
|
|
8416
|
-
|
|
8417
|
-
|
|
8418
|
-
|
|
8419
|
-
|
|
8420
|
-
|
|
8421
|
-
|
|
8422
|
-
|
|
8423
|
-
|
|
8424
|
-
|
|
8425
|
-
|
|
8426
|
-
|
|
8427
|
-
|
|
8428
|
-
|
|
8429
|
-
|
|
8430
|
-
|
|
8350
|
+
Nt as d,
|
|
8351
|
+
Gf as e,
|
|
8352
|
+
nc as f,
|
|
8353
|
+
$f as g,
|
|
8354
|
+
Tt as h,
|
|
8355
|
+
ss as i,
|
|
8356
|
+
Zt as j,
|
|
8357
|
+
en as k,
|
|
8358
|
+
D as l,
|
|
8359
|
+
Cs as m,
|
|
8360
|
+
Wf as n,
|
|
8361
|
+
Yf as o,
|
|
8362
|
+
Hf as p,
|
|
8363
|
+
me as q,
|
|
8364
|
+
Qs as s,
|
|
8431
8365
|
Pt as u
|
|
8432
8366
|
};
|