@10yun/open-sdk 0.3.97 → 0.3.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{404-DIY1-gwa.cjs → 404-B4CmtOOb.cjs} +1 -1
- package/dist/{404-DE7Pk-6G.js → 404-BLkrv3w1.js} +1 -1
- package/dist/{alone_run-BR__Dya8.cjs → alone_run-Cjy7Q_Sz.cjs} +1 -1
- package/dist/{alone_run-B72RhBny.js → alone_run-t8_0-4FT.js} +1 -1
- package/dist/index-De30ff-d.cjs +25 -0
- package/dist/{index-eCmAf5ru.js → index-e5P8YtsL.js} +741 -725
- package/dist/{login-BCLKLSlo.js → login-BX16RcPj.js} +254 -254
- package/dist/login-xMYfliOM.cjs +1 -0
- package/dist/{none-CEhsRvE2.cjs → none-D9olgMvC.cjs} +1 -1
- package/dist/{none-wMSqEt4-.js → none-Dalhv2Tk.js} +1 -1
- package/dist/open-sdk.cjs.js +1 -1
- package/dist/open-sdk.es.js +1 -1
- package/package.json +1 -1
- package/vite-plugin-shiyun.js +2 -1
- package/dist/index-BcokQifq.cjs +0 -25
- package/dist/login-DbsijHDN.cjs +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineStore as
|
|
2
|
-
import { effectScope as
|
|
3
|
-
import
|
|
4
|
-
import * as
|
|
1
|
+
import { defineStore as De, mapState as Le } from "pinia";
|
|
2
|
+
import { effectScope as Ds, ref as Rs, shallowRef as ks, computed as gt, watch as wn, isRef as Ps, defineComponent as Jn, getCurrentInstance as Nt, h as Sa, Fragment as he, inject as Fs, onMounted as Ms, onUnmounted as Us, createVNode as w, Text as Bs, resolveComponent as B, createBlock as J, openBlock as U, withCtx as D, createElementVNode as k, createElementBlock as Q, renderList as Xe, createTextVNode as te, toDisplayString as ne, createCommentVNode as ue, Transition as xs, normalizeClass as va, resolveDynamicComponent as Vs, withDirectives as Aa, withModifiers as Gs, normalizeStyle as Dn, vShow as ya, mergeProps as $s, renderSlot as Ws } from "vue";
|
|
3
|
+
import Ys, { ElMessage as vr, ElMessageBox as Hs, ElNotification as Ks } from "element-plus";
|
|
4
|
+
import * as js 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 qs from "@10yun/cv-pc-ui";
|
|
8
8
|
import "@10yun/cv-pc-ui/lib/cv-ui.css";
|
|
9
|
-
import * as
|
|
10
|
-
import
|
|
9
|
+
import * as Xs from "@10yun/cv-icons-vue";
|
|
10
|
+
import Qs from "axios";
|
|
11
11
|
let Na = {};
|
|
12
|
-
function
|
|
12
|
+
function Js(e = {}) {
|
|
13
13
|
Na = e;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Tt() {
|
|
16
16
|
return Na;
|
|
17
17
|
}
|
|
18
18
|
/*!
|
|
@@ -20,26 +20,26 @@ function Nt() {
|
|
|
20
20
|
* (c) 2021-2022 Teng Mao Qing
|
|
21
21
|
* Released under the MIT License.
|
|
22
22
|
*/
|
|
23
|
-
var me = typeof window < "u" ? window.proxy || window : {},
|
|
23
|
+
var me = typeof window < "u" ? window.proxy || window : {}, zs = function(e) {
|
|
24
24
|
me != null && me.__POWERED_BY_QIANKUN__ && (window.moudleQiankunAppLifeCycles || (window.moudleQiankunAppLifeCycles = {}), me.qiankunName && (window.moudleQiankunAppLifeCycles[me.qiankunName] = e));
|
|
25
25
|
};
|
|
26
|
-
function
|
|
26
|
+
function Zs(e = "/", t = null, n = {}) {
|
|
27
27
|
e == "/" && (e = "/" + (window.localStorage.getItem("__syCacheMicroCurrSign__") || "base")), window.history.pushState(n, t, e);
|
|
28
28
|
}
|
|
29
|
-
var
|
|
30
|
-
function
|
|
29
|
+
var yt = {};
|
|
30
|
+
function pt(e) {
|
|
31
31
|
if (!me.__POWERED_BY_QIANKUN__)
|
|
32
32
|
return !1;
|
|
33
33
|
if (!Object.prototype.toString.call(e) === "[object Object]")
|
|
34
34
|
throw Error("data必须是对象格式");
|
|
35
|
-
|
|
36
|
-
ignore:
|
|
35
|
+
yt.setGlobalState && yt.setGlobalState({
|
|
36
|
+
ignore: yt.name,
|
|
37
37
|
msg: {
|
|
38
38
|
...e
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function eo(e) {
|
|
43
43
|
let t = Te();
|
|
44
44
|
e && e.onGlobalStateChange && e.onGlobalStateChange((n, r) => {
|
|
45
45
|
if (n && n.msg)
|
|
@@ -49,11 +49,11 @@ function to(e) {
|
|
|
49
49
|
t.SA_ACCOUNT_REFRESH();
|
|
50
50
|
break;
|
|
51
51
|
}
|
|
52
|
-
|
|
53
|
-
}, !0),
|
|
52
|
+
Ot().SA_MSG_CONTENT(n.msg);
|
|
53
|
+
}, !0), yt.setGlobalState = e && e.setGlobalState, yt.name = e && e.name;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
56
|
-
|
|
55
|
+
function to(e, t, n) {
|
|
56
|
+
zs({
|
|
57
57
|
/**
|
|
58
58
|
* @name 微应用初始化
|
|
59
59
|
* @param {Object} props 主应用下发的props
|
|
@@ -68,7 +68,7 @@ function no(e, t, n) {
|
|
|
68
68
|
* @description 应用每次进入都会调用 mount 方法,通常我们在这里触发应用的渲染方法
|
|
69
69
|
*/
|
|
70
70
|
mount(r) {
|
|
71
|
-
|
|
71
|
+
eo(r), t(r, !0);
|
|
72
72
|
},
|
|
73
73
|
/**
|
|
74
74
|
* @name 微应用卸载/切出
|
|
@@ -85,7 +85,7 @@ function no(e, t, n) {
|
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
|
-
const
|
|
88
|
+
const Ot = De("cloudSdkQiankunStore", {
|
|
89
89
|
state: () => ({
|
|
90
90
|
// 是否是乾坤
|
|
91
91
|
qiankunExistState: me.__POWERED_BY_QIANKUN__ || !1,
|
|
@@ -100,24 +100,24 @@ const Tt = Be("cloudSdkQiankunStore", {
|
|
|
100
100
|
async init() {
|
|
101
101
|
},
|
|
102
102
|
QK_SEND_LOGIN_MSG() {
|
|
103
|
-
|
|
103
|
+
pt({
|
|
104
104
|
COMM_TYPE: "LoginSucc"
|
|
105
105
|
});
|
|
106
106
|
},
|
|
107
107
|
QK_SEND_LOGOUT_MSG() {
|
|
108
|
-
|
|
108
|
+
pt({
|
|
109
109
|
COMM_TYPE: "LoginLogout"
|
|
110
110
|
});
|
|
111
111
|
},
|
|
112
112
|
QK_SEND_MSG_REG_SUBMENU(e) {
|
|
113
|
-
|
|
113
|
+
pt({
|
|
114
114
|
COMM_TYPE: "MicroRegisterMenu",
|
|
115
115
|
COMM_TYPESTR: "注册子应用菜单",
|
|
116
116
|
data: e || []
|
|
117
117
|
});
|
|
118
118
|
},
|
|
119
119
|
QK_SEND_MSG_ROUTER_BEFORE(e) {
|
|
120
|
-
|
|
120
|
+
pt({
|
|
121
121
|
COMM_TYPE: "routerBefore",
|
|
122
122
|
routerBase: e
|
|
123
123
|
// toData: toPath
|
|
@@ -135,7 +135,11 @@ const Tt = Be("cloudSdkQiankunStore", {
|
|
|
135
135
|
e.type && e.type;
|
|
136
136
|
},
|
|
137
137
|
// 发送消息给主应用
|
|
138
|
-
QIANKUN_SEND_MSG_TO_MAIN() {
|
|
138
|
+
QIANKUN_SEND_MSG_TO_MAIN(e, t) {
|
|
139
|
+
pt({
|
|
140
|
+
COMM_TYPE: e,
|
|
141
|
+
data: t || ""
|
|
142
|
+
});
|
|
139
143
|
},
|
|
140
144
|
// 设置乾坤状态
|
|
141
145
|
SA_SET_QIANKUN_STATE(e) {
|
|
@@ -163,26 +167,26 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
163
167
|
e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
|
|
164
168
|
});
|
|
165
169
|
}
|
|
166
|
-
const
|
|
170
|
+
const no = /\{([0-9a-zA-Z]+)\}/g;
|
|
167
171
|
function Xt(e, ...t) {
|
|
168
|
-
return t.length === 1 && G(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(
|
|
172
|
+
return t.length === 1 && G(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(no, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
169
173
|
}
|
|
170
|
-
const Oe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e),
|
|
174
|
+
const Oe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), ro = (e, t, n) => ao({ l: e, k: t, s: n }), ao = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ae = (e) => typeof e == "number" && isFinite(e), so = (e) => zn(e) === "[object Date]", lt = (e) => zn(e) === "[object RegExp]", Qt = (e) => V(e) && Object.keys(e).length === 0, ie = Object.assign, oo = Object.create, K = (e = null) => oo(e);
|
|
171
175
|
let Ar;
|
|
172
176
|
const je = () => Ar || (Ar = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : K());
|
|
173
177
|
function yr(e) {
|
|
174
178
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
175
179
|
}
|
|
176
|
-
const
|
|
180
|
+
const io = Object.prototype.hasOwnProperty;
|
|
177
181
|
function ve(e, t) {
|
|
178
|
-
return
|
|
182
|
+
return io.call(e, t);
|
|
179
183
|
}
|
|
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",
|
|
184
|
+
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", lo = (e) => G(e) && q(e.then) && q(e.catch), Ta = Object.prototype.toString, zn = (e) => Ta.call(e), V = (e) => zn(e) === "[object Object]", co = (e) => e == null ? "" : re(e) || V(e) && e.toString === Ta ? JSON.stringify(e, null, 2) : String(e);
|
|
181
185
|
function Zn(e, t = "") {
|
|
182
186
|
return e.reduce((n, r, a) => a === 0 ? n + r : n + t + r, "");
|
|
183
187
|
}
|
|
184
188
|
const Nr = 2;
|
|
185
|
-
function
|
|
189
|
+
function uo(e, t = 0, n = e.length) {
|
|
186
190
|
const r = e.split(/\r?\n/);
|
|
187
191
|
let a = 0;
|
|
188
192
|
const s = [];
|
|
@@ -210,7 +214,7 @@ function fo(e, t = 0, n = e.length) {
|
|
|
210
214
|
return s.join(`
|
|
211
215
|
`);
|
|
212
216
|
}
|
|
213
|
-
function
|
|
217
|
+
function fo(e, t) {
|
|
214
218
|
}
|
|
215
219
|
const Tr = {};
|
|
216
220
|
function er(e) {
|
|
@@ -250,7 +254,7 @@ function Wt(e, t) {
|
|
|
250
254
|
* (c) 2025 kazuya kawaguchi
|
|
251
255
|
* Released under the MIT License.
|
|
252
256
|
*/
|
|
253
|
-
function
|
|
257
|
+
function _o(e, t, n) {
|
|
254
258
|
return { line: e, column: t, offset: n };
|
|
255
259
|
}
|
|
256
260
|
function Rn(e, t, n) {
|
|
@@ -277,7 +281,7 @@ const M = {
|
|
|
277
281
|
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
278
282
|
// minifier error codes
|
|
279
283
|
UNHANDLED_MINIFIER_NODE_TYPE: 16
|
|
280
|
-
},
|
|
284
|
+
}, mo = 17, ho = {
|
|
281
285
|
// tokenizer error messages
|
|
282
286
|
[M.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
283
287
|
[M.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
@@ -300,18 +304,18 @@ const M = {
|
|
|
300
304
|
[M.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
301
305
|
};
|
|
302
306
|
function ft(e, t, n = {}) {
|
|
303
|
-
const { domain: r, messages: a, args: s } = n, o = process.env.NODE_ENV !== "production" ? Xt((a ||
|
|
307
|
+
const { domain: r, messages: a, args: s } = n, o = process.env.NODE_ENV !== "production" ? Xt((a || ho)[e] || "", ...s || []) : e, i = new SyntaxError(String(o));
|
|
304
308
|
return i.code = e, t && (i.location = t), i.domain = r, i;
|
|
305
309
|
}
|
|
306
|
-
function
|
|
310
|
+
function go(e) {
|
|
307
311
|
throw e;
|
|
308
312
|
}
|
|
309
|
-
const
|
|
310
|
-
`,
|
|
311
|
-
function
|
|
313
|
+
const po = /<\/?[\w\s="/.':;#-\/]+>/, Eo = (e) => po.test(e), Ce = " ", bo = "\r", ce = `
|
|
314
|
+
`, So = "\u2028", vo = "\u2029";
|
|
315
|
+
function Ao(e) {
|
|
312
316
|
const t = e;
|
|
313
317
|
let n = 0, r = 1, a = 1, s = 0;
|
|
314
|
-
const o = (v) => t[v] ===
|
|
318
|
+
const o = (v) => t[v] === bo && t[v + 1] === ce, i = (v) => t[v] === ce, l = (v) => t[v] === vo, c = (v) => t[v] === So, 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);
|
|
315
319
|
function g() {
|
|
316
320
|
return s = 0, f(n) && (r++, a = 0), o(n) && n++, n++, a++, t[n];
|
|
317
321
|
}
|
|
@@ -345,9 +349,9 @@ function yo(e) {
|
|
|
345
349
|
skipToPeek: L
|
|
346
350
|
};
|
|
347
351
|
}
|
|
348
|
-
const
|
|
349
|
-
function
|
|
350
|
-
const n = t.location !== !1, r =
|
|
352
|
+
const Fe = void 0, yo = ".", Or = "'", No = "tokenizer";
|
|
353
|
+
function To(e, t = {}) {
|
|
354
|
+
const n = t.location !== !1, r = Ao(e), a = () => r.index(), s = () => _o(r.line(), r.column(), r.index()), o = s(), i = a(), l = {
|
|
351
355
|
currentType: 13,
|
|
352
356
|
offset: i,
|
|
353
357
|
startLoc: o,
|
|
@@ -360,20 +364,20 @@ function Oo(e, t = {}) {
|
|
|
360
364
|
inLinked: !1,
|
|
361
365
|
text: ""
|
|
362
366
|
}, c = () => l, { onError: f } = t;
|
|
363
|
-
function u(_, d, y, ...
|
|
367
|
+
function u(_, d, y, ...R) {
|
|
364
368
|
const z = c();
|
|
365
369
|
if (d.column += y, d.offset += y, f) {
|
|
366
370
|
const Z = n ? Rn(z.startLoc, d) : null, W = ft(_, Z, {
|
|
367
|
-
domain:
|
|
368
|
-
args:
|
|
371
|
+
domain: No,
|
|
372
|
+
args: R
|
|
369
373
|
});
|
|
370
374
|
f(W);
|
|
371
375
|
}
|
|
372
376
|
}
|
|
373
377
|
function m(_, d, y) {
|
|
374
378
|
_.endLoc = s(), _.currentType = d;
|
|
375
|
-
const
|
|
376
|
-
return n && (
|
|
379
|
+
const R = { type: d };
|
|
380
|
+
return n && (R.loc = Rn(_.startLoc, _.endLoc)), y != null && (R.value = y), R;
|
|
377
381
|
}
|
|
378
382
|
const p = (_) => m(
|
|
379
383
|
_,
|
|
@@ -394,7 +398,7 @@ function Oo(e, t = {}) {
|
|
|
394
398
|
return _.skipToPeek(), d;
|
|
395
399
|
}
|
|
396
400
|
function h(_) {
|
|
397
|
-
if (_ ===
|
|
401
|
+
if (_ === Fe)
|
|
398
402
|
return !1;
|
|
399
403
|
const d = _.charCodeAt(0);
|
|
400
404
|
return d >= 97 && d <= 122 || // a-z
|
|
@@ -402,7 +406,7 @@ function Oo(e, t = {}) {
|
|
|
402
406
|
d === 95;
|
|
403
407
|
}
|
|
404
408
|
function g(_) {
|
|
405
|
-
if (_ ===
|
|
409
|
+
if (_ === Fe)
|
|
406
410
|
return !1;
|
|
407
411
|
const d = _.charCodeAt(0);
|
|
408
412
|
return d >= 48 && d <= 57;
|
|
@@ -412,15 +416,15 @@ function Oo(e, t = {}) {
|
|
|
412
416
|
if (y !== 2)
|
|
413
417
|
return !1;
|
|
414
418
|
E(_);
|
|
415
|
-
const
|
|
416
|
-
return _.resetPeek(),
|
|
419
|
+
const R = h(_.currentPeek());
|
|
420
|
+
return _.resetPeek(), R;
|
|
417
421
|
}
|
|
418
422
|
function S(_, d) {
|
|
419
423
|
const { currentType: y } = d;
|
|
420
424
|
if (y !== 2)
|
|
421
425
|
return !1;
|
|
422
426
|
E(_);
|
|
423
|
-
const
|
|
427
|
+
const R = _.currentPeek() === "-" ? _.peek() : _.currentPeek(), z = g(R);
|
|
424
428
|
return _.resetPeek(), z;
|
|
425
429
|
}
|
|
426
430
|
function O(_, d) {
|
|
@@ -428,41 +432,41 @@ function Oo(e, t = {}) {
|
|
|
428
432
|
if (y !== 2)
|
|
429
433
|
return !1;
|
|
430
434
|
E(_);
|
|
431
|
-
const
|
|
432
|
-
return _.resetPeek(),
|
|
435
|
+
const R = _.currentPeek() === Or;
|
|
436
|
+
return _.resetPeek(), R;
|
|
433
437
|
}
|
|
434
438
|
function L(_, d) {
|
|
435
439
|
const { currentType: y } = d;
|
|
436
440
|
if (y !== 7)
|
|
437
441
|
return !1;
|
|
438
442
|
E(_);
|
|
439
|
-
const
|
|
440
|
-
return _.resetPeek(),
|
|
443
|
+
const R = _.currentPeek() === ".";
|
|
444
|
+
return _.resetPeek(), R;
|
|
441
445
|
}
|
|
442
446
|
function v(_, d) {
|
|
443
447
|
const { currentType: y } = d;
|
|
444
448
|
if (y !== 8)
|
|
445
449
|
return !1;
|
|
446
450
|
E(_);
|
|
447
|
-
const
|
|
448
|
-
return _.resetPeek(),
|
|
451
|
+
const R = h(_.currentPeek());
|
|
452
|
+
return _.resetPeek(), R;
|
|
449
453
|
}
|
|
450
454
|
function x(_, d) {
|
|
451
455
|
const { currentType: y } = d;
|
|
452
456
|
if (!(y === 7 || y === 11))
|
|
453
457
|
return !1;
|
|
454
458
|
E(_);
|
|
455
|
-
const
|
|
456
|
-
return _.resetPeek(),
|
|
459
|
+
const R = _.currentPeek() === ":";
|
|
460
|
+
return _.resetPeek(), R;
|
|
457
461
|
}
|
|
458
462
|
function Y(_, d) {
|
|
459
463
|
const { currentType: y } = d;
|
|
460
464
|
if (y !== 9)
|
|
461
465
|
return !1;
|
|
462
|
-
const
|
|
466
|
+
const R = () => {
|
|
463
467
|
const Z = _.currentPeek();
|
|
464
|
-
return Z === "{" ? h(_.peek()) : Z === "@" || Z === "|" || Z === ":" || Z === "." || Z === Ce || !Z ? !1 : Z === ce ? (_.peek(),
|
|
465
|
-
}, z =
|
|
468
|
+
return Z === "{" ? h(_.peek()) : Z === "@" || Z === "|" || Z === ":" || Z === "." || Z === Ce || !Z ? !1 : Z === ce ? (_.peek(), R()) : Se(_, !1);
|
|
469
|
+
}, z = R();
|
|
466
470
|
return _.resetPeek(), z;
|
|
467
471
|
}
|
|
468
472
|
function se(_) {
|
|
@@ -474,12 +478,12 @@ function Oo(e, t = {}) {
|
|
|
474
478
|
const y = (z = !1, Z = "") => {
|
|
475
479
|
const W = _.currentPeek();
|
|
476
480
|
return W === "{" || W === "@" || !W ? z : W === "|" ? !(Z === Ce || Z === ce) : W === Ce ? (_.peek(), y(!0, Ce)) : W === ce ? (_.peek(), y(!0, ce)) : !0;
|
|
477
|
-
},
|
|
478
|
-
return d && _.resetPeek(),
|
|
481
|
+
}, R = y();
|
|
482
|
+
return d && _.resetPeek(), R;
|
|
479
483
|
}
|
|
480
484
|
function oe(_, d) {
|
|
481
485
|
const y = _.currentChar();
|
|
482
|
-
return y ===
|
|
486
|
+
return y === Fe ? Fe : d(y) ? (_.next(), y) : null;
|
|
483
487
|
}
|
|
484
488
|
function Ze(_) {
|
|
485
489
|
const d = _.charCodeAt(0);
|
|
@@ -550,12 +554,12 @@ function Oo(e, t = {}) {
|
|
|
550
554
|
let d = "", y = "";
|
|
551
555
|
for (; d = sn(_); )
|
|
552
556
|
y += d;
|
|
553
|
-
return _.currentChar() ===
|
|
557
|
+
return _.currentChar() === Fe && u(M.UNTERMINATED_CLOSING_BRACE, s(), 0), y;
|
|
554
558
|
}
|
|
555
559
|
function _n(_) {
|
|
556
560
|
C(_);
|
|
557
561
|
let d = "";
|
|
558
|
-
return _.currentChar() === "-" ? (_.next(), d += `-${_t(_)}`) : d += _t(_), _.currentChar() ===
|
|
562
|
+
return _.currentChar() === "-" ? (_.next(), d += `-${_t(_)}`) : d += _t(_), _.currentChar() === Fe && u(M.UNTERMINATED_CLOSING_BRACE, s(), 0), d;
|
|
559
563
|
}
|
|
560
564
|
function dn(_) {
|
|
561
565
|
return _ !== Or && _ !== ce;
|
|
@@ -565,8 +569,8 @@ function Oo(e, t = {}) {
|
|
|
565
569
|
let d = "", y = "";
|
|
566
570
|
for (; d = oe(_, dn); )
|
|
567
571
|
d === "\\" ? y += mn(_) : y += d;
|
|
568
|
-
const
|
|
569
|
-
return
|
|
572
|
+
const R = _.currentChar();
|
|
573
|
+
return R === ce || R === Fe ? (u(M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, s(), 0), R === ce && (_.next(), A(_, "'")), y) : (A(_, "'"), y);
|
|
570
574
|
}
|
|
571
575
|
function mn(_) {
|
|
572
576
|
const d = _.currentChar();
|
|
@@ -575,25 +579,25 @@ function Oo(e, t = {}) {
|
|
|
575
579
|
case "'":
|
|
576
580
|
return _.next(), `\\${d}`;
|
|
577
581
|
case "u":
|
|
578
|
-
return
|
|
582
|
+
return Mt(_, d, 4);
|
|
579
583
|
case "U":
|
|
580
|
-
return
|
|
584
|
+
return Mt(_, d, 6);
|
|
581
585
|
default:
|
|
582
586
|
return u(M.UNKNOWN_ESCAPE_SEQUENCE, s(), 0, d), "";
|
|
583
587
|
}
|
|
584
588
|
}
|
|
585
|
-
function
|
|
589
|
+
function Mt(_, d, y) {
|
|
586
590
|
A(_, d);
|
|
587
|
-
let
|
|
591
|
+
let R = "";
|
|
588
592
|
for (let z = 0; z < y; z++) {
|
|
589
593
|
const Z = Ie(_);
|
|
590
594
|
if (!Z) {
|
|
591
|
-
u(M.INVALID_UNICODE_ESCAPE_SEQUENCE, s(), 0, `\\${d}${
|
|
595
|
+
u(M.INVALID_UNICODE_ESCAPE_SEQUENCE, s(), 0, `\\${d}${R}${_.currentChar()}`);
|
|
592
596
|
break;
|
|
593
597
|
}
|
|
594
|
-
|
|
598
|
+
R += Z;
|
|
595
599
|
}
|
|
596
|
-
return `\\${d}${
|
|
600
|
+
return `\\${d}${R}`;
|
|
597
601
|
}
|
|
598
602
|
function hn(_) {
|
|
599
603
|
return _ !== "{" && _ !== "}" && _ !== Ce && _ !== ce;
|
|
@@ -613,8 +617,8 @@ function Oo(e, t = {}) {
|
|
|
613
617
|
}
|
|
614
618
|
function En(_) {
|
|
615
619
|
const d = (y) => {
|
|
616
|
-
const
|
|
617
|
-
return
|
|
620
|
+
const R = _.currentChar();
|
|
621
|
+
return R === "{" || R === "@" || R === "|" || R === "(" || R === ")" || !R || R === Ce ? y : (y += R, _.next(), d(y));
|
|
618
622
|
};
|
|
619
623
|
return d("");
|
|
620
624
|
}
|
|
@@ -667,16 +671,16 @@ function Oo(e, t = {}) {
|
|
|
667
671
|
}
|
|
668
672
|
function $e(_, d) {
|
|
669
673
|
const { currentType: y } = d;
|
|
670
|
-
let
|
|
674
|
+
let R = null;
|
|
671
675
|
const z = _.currentChar();
|
|
672
676
|
switch ((y === 7 || y === 8 || y === 11 || y === 9) && (z === ce || z === Ce) && u(M.INVALID_LINKED_FORMAT, s(), 0), z) {
|
|
673
677
|
case "@":
|
|
674
|
-
return _.next(),
|
|
678
|
+
return _.next(), R = m(
|
|
675
679
|
d,
|
|
676
680
|
7,
|
|
677
681
|
"@"
|
|
678
682
|
/* TokenChars.LinkedAlias */
|
|
679
|
-
), d.inLinked = !0,
|
|
683
|
+
), d.inLinked = !0, R;
|
|
680
684
|
case ".":
|
|
681
685
|
return C(_), _.next(), m(
|
|
682
686
|
d,
|
|
@@ -692,7 +696,7 @@ function Oo(e, t = {}) {
|
|
|
692
696
|
/* TokenChars.LinkedDelimiter */
|
|
693
697
|
);
|
|
694
698
|
default:
|
|
695
|
-
return se(_) ? (
|
|
699
|
+
return se(_) ? (R = m(d, 1, dt(_)), d.braceNest = 0, d.inLinked = !1, R) : L(_, d) || x(_, d) ? (C(_), $e(_, d)) : v(_, d) ? (C(_), m(d, 11, pn(_))) : Y(_, d) ? (C(_), z === "{" ? mt(_, d) || R : m(d, 10, En(_))) : (y === 7 && u(M.INVALID_LINKED_FORMAT, s(), 0), d.braceNest = 0, d.inLinked = !1, ht(_, d));
|
|
696
700
|
}
|
|
697
701
|
}
|
|
698
702
|
function ht(_, d) {
|
|
@@ -727,8 +731,8 @@ function Oo(e, t = {}) {
|
|
|
727
731
|
return y;
|
|
728
732
|
}
|
|
729
733
|
function bn() {
|
|
730
|
-
const { currentType: _, offset: d, startLoc: y, endLoc:
|
|
731
|
-
return l.lastType = _, l.lastOffset = d, l.lastStartLoc = y, l.lastEndLoc =
|
|
734
|
+
const { currentType: _, offset: d, startLoc: y, endLoc: R } = l;
|
|
735
|
+
return l.lastType = _, l.lastOffset = d, l.lastStartLoc = y, l.lastEndLoc = R, l.offset = a(), l.startLoc = s(), r.currentChar() === Fe ? m(
|
|
732
736
|
l,
|
|
733
737
|
13
|
|
734
738
|
/* TokenTypes.EOF */
|
|
@@ -741,8 +745,8 @@ function Oo(e, t = {}) {
|
|
|
741
745
|
context: c
|
|
742
746
|
};
|
|
743
747
|
}
|
|
744
|
-
const
|
|
745
|
-
function
|
|
748
|
+
const Oo = "parser", Io = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
749
|
+
function Co(e, t, n) {
|
|
746
750
|
switch (e) {
|
|
747
751
|
case "\\\\":
|
|
748
752
|
return "\\";
|
|
@@ -755,13 +759,13 @@ function Lo(e, t, n) {
|
|
|
755
759
|
}
|
|
756
760
|
}
|
|
757
761
|
}
|
|
758
|
-
function
|
|
762
|
+
function Lo(e = {}) {
|
|
759
763
|
const t = e.location !== !1, { onError: n } = e;
|
|
760
764
|
function r(h, g, N, S, ...O) {
|
|
761
765
|
const L = h.currentPosition();
|
|
762
766
|
if (L.offset += S, L.column += S, n) {
|
|
763
767
|
const v = t ? Rn(N, L) : null, x = ft(g, v, {
|
|
764
|
-
domain:
|
|
768
|
+
domain: Oo,
|
|
765
769
|
args: O
|
|
766
770
|
});
|
|
767
771
|
n(x);
|
|
@@ -788,7 +792,7 @@ function wo(e = {}) {
|
|
|
788
792
|
}
|
|
789
793
|
function c(h, g) {
|
|
790
794
|
const N = h.context(), { lastOffset: S, lastStartLoc: O } = N, L = a(9, S, O);
|
|
791
|
-
return L.value = g.replace(
|
|
795
|
+
return L.value = g.replace(Io, Co), h.nextToken(), s(L, h.currentOffset(), h.currentPosition()), L;
|
|
792
796
|
}
|
|
793
797
|
function f(h) {
|
|
794
798
|
const g = h.nextToken(), N = h.context(), { lastOffset: S, lastStartLoc: O } = N, L = a(8, S, O);
|
|
@@ -881,7 +885,7 @@ function wo(e = {}) {
|
|
|
881
885
|
return g.currentType === 13 ? O : A(h, N, S, O);
|
|
882
886
|
}
|
|
883
887
|
function C(h) {
|
|
884
|
-
const g =
|
|
888
|
+
const g = To(h, ie({}, e)), N = g.context(), S = a(0, N.offset, N.startLoc);
|
|
885
889
|
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;
|
|
886
890
|
}
|
|
887
891
|
return { parse: C };
|
|
@@ -892,7 +896,7 @@ function ye(e) {
|
|
|
892
896
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
893
897
|
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
894
898
|
}
|
|
895
|
-
function
|
|
899
|
+
function wo(e, t = {}) {
|
|
896
900
|
const n = {
|
|
897
901
|
ast: e,
|
|
898
902
|
helpers: /* @__PURE__ */ new Set()
|
|
@@ -944,8 +948,8 @@ function nr(e, t) {
|
|
|
944
948
|
break;
|
|
945
949
|
}
|
|
946
950
|
}
|
|
947
|
-
function
|
|
948
|
-
const n =
|
|
951
|
+
function Do(e, t = {}) {
|
|
952
|
+
const n = wo(e);
|
|
949
953
|
n.helper(
|
|
950
954
|
"normalize"
|
|
951
955
|
/* HelperNameMap.NORMALIZE */
|
|
@@ -953,7 +957,7 @@ function Ro(e, t = {}) {
|
|
|
953
957
|
const r = n.context();
|
|
954
958
|
e.helpers = Array.from(r.helpers);
|
|
955
959
|
}
|
|
956
|
-
function
|
|
960
|
+
function Ro(e) {
|
|
957
961
|
const t = e.body;
|
|
958
962
|
return t.type === 2 ? Cr(t) : t.cases.forEach((n) => Cr(n)), e;
|
|
959
963
|
}
|
|
@@ -1032,8 +1036,8 @@ function st(e) {
|
|
|
1032
1036
|
}
|
|
1033
1037
|
delete e.type;
|
|
1034
1038
|
}
|
|
1035
|
-
const
|
|
1036
|
-
function
|
|
1039
|
+
const Po = "parser";
|
|
1040
|
+
function Fo(e, t) {
|
|
1037
1041
|
const { filename: n, breakLineCode: r, needIndent: a } = t, s = t.location !== !1, o = {
|
|
1038
1042
|
filename: n,
|
|
1039
1043
|
code: "",
|
|
@@ -1075,14 +1079,14 @@ function Mo(e, t) {
|
|
|
1075
1079
|
needIndent: () => o.needIndent
|
|
1076
1080
|
};
|
|
1077
1081
|
}
|
|
1078
|
-
function
|
|
1082
|
+
function Mo(e, t) {
|
|
1079
1083
|
const { helper: n } = e;
|
|
1080
1084
|
e.push(`${n(
|
|
1081
1085
|
"linked"
|
|
1082
1086
|
/* HelperNameMap.LINKED */
|
|
1083
1087
|
)}(`), ct(e, t.key), t.modifier ? (e.push(", "), ct(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
1084
1088
|
}
|
|
1085
|
-
function
|
|
1089
|
+
function Uo(e, t) {
|
|
1086
1090
|
const { helper: n, needIndent: r } = e;
|
|
1087
1091
|
e.push(`${n(
|
|
1088
1092
|
"normalize"
|
|
@@ -1093,7 +1097,7 @@ function Bo(e, t) {
|
|
|
1093
1097
|
e.push(", ");
|
|
1094
1098
|
e.deindent(r()), e.push("])");
|
|
1095
1099
|
}
|
|
1096
|
-
function
|
|
1100
|
+
function Bo(e, t) {
|
|
1097
1101
|
const { helper: n, needIndent: r } = e;
|
|
1098
1102
|
if (t.cases.length > 1) {
|
|
1099
1103
|
e.push(`${n(
|
|
@@ -1106,23 +1110,23 @@ function xo(e, t) {
|
|
|
1106
1110
|
e.deindent(r()), e.push("])");
|
|
1107
1111
|
}
|
|
1108
1112
|
}
|
|
1109
|
-
function
|
|
1113
|
+
function xo(e, t) {
|
|
1110
1114
|
t.body ? ct(e, t.body) : e.push("null");
|
|
1111
1115
|
}
|
|
1112
1116
|
function ct(e, t) {
|
|
1113
1117
|
const { helper: n } = e;
|
|
1114
1118
|
switch (t.type) {
|
|
1115
1119
|
case 0:
|
|
1116
|
-
|
|
1120
|
+
xo(e, t);
|
|
1117
1121
|
break;
|
|
1118
1122
|
case 1:
|
|
1119
|
-
|
|
1123
|
+
Bo(e, t);
|
|
1120
1124
|
break;
|
|
1121
1125
|
case 2:
|
|
1122
|
-
|
|
1126
|
+
Uo(e, t);
|
|
1123
1127
|
break;
|
|
1124
1128
|
case 6:
|
|
1125
|
-
|
|
1129
|
+
Mo(e, t);
|
|
1126
1130
|
break;
|
|
1127
1131
|
case 8:
|
|
1128
1132
|
e.push(JSON.stringify(t.value), t);
|
|
@@ -1157,16 +1161,16 @@ function ct(e, t) {
|
|
|
1157
1161
|
default:
|
|
1158
1162
|
if (process.env.NODE_ENV !== "production")
|
|
1159
1163
|
throw ft(M.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
1160
|
-
domain:
|
|
1164
|
+
domain: Po,
|
|
1161
1165
|
args: [t.type]
|
|
1162
1166
|
});
|
|
1163
1167
|
}
|
|
1164
1168
|
}
|
|
1165
|
-
const
|
|
1169
|
+
const Vo = (e, t = {}) => {
|
|
1166
1170
|
const n = I(t.mode) ? t.mode : "normal", r = I(t.filename) ? t.filename : "message.intl";
|
|
1167
1171
|
t.sourceMap;
|
|
1168
1172
|
const a = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
1169
|
-
`, s = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], i =
|
|
1173
|
+
`, s = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], i = Fo(e, {
|
|
1170
1174
|
filename: r,
|
|
1171
1175
|
breakLineCode: a,
|
|
1172
1176
|
needIndent: s
|
|
@@ -1180,35 +1184,35 @@ const Go = (e, t = {}) => {
|
|
|
1180
1184
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1181
1185
|
};
|
|
1182
1186
|
};
|
|
1183
|
-
function
|
|
1184
|
-
const n = ie({}, t), r = !!n.jit, a = !!n.minify, s = n.optimize == null ? !0 : n.optimize, i =
|
|
1185
|
-
return r ? (s &&
|
|
1187
|
+
function Go(e, t = {}) {
|
|
1188
|
+
const n = ie({}, t), r = !!n.jit, a = !!n.minify, s = n.optimize == null ? !0 : n.optimize, i = Lo(n).parse(e);
|
|
1189
|
+
return r ? (s && Ro(i), a && st(i), { ast: i, code: "" }) : (Do(i, n), Vo(i, n));
|
|
1186
1190
|
}
|
|
1187
1191
|
/*!
|
|
1188
1192
|
* core-base v11.1.3
|
|
1189
1193
|
* (c) 2025 kazuya kawaguchi
|
|
1190
1194
|
* Released under the MIT License.
|
|
1191
1195
|
*/
|
|
1192
|
-
function
|
|
1196
|
+
function $o() {
|
|
1193
1197
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (je().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (je().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
1194
1198
|
}
|
|
1195
1199
|
function Ee(e) {
|
|
1196
1200
|
return G(e) && rr(e) === 0 && (ve(e, "b") || ve(e, "body"));
|
|
1197
1201
|
}
|
|
1198
1202
|
const Oa = ["b", "body"];
|
|
1199
|
-
function
|
|
1203
|
+
function Wo(e) {
|
|
1200
1204
|
return xe(e, Oa);
|
|
1201
1205
|
}
|
|
1202
1206
|
const Ia = ["c", "cases"];
|
|
1203
|
-
function
|
|
1207
|
+
function Yo(e) {
|
|
1204
1208
|
return xe(e, Ia, []);
|
|
1205
1209
|
}
|
|
1206
1210
|
const Ca = ["s", "static"];
|
|
1207
|
-
function
|
|
1211
|
+
function Ho(e) {
|
|
1208
1212
|
return xe(e, Ca);
|
|
1209
1213
|
}
|
|
1210
1214
|
const La = ["i", "items"];
|
|
1211
|
-
function
|
|
1215
|
+
function Ko(e) {
|
|
1212
1216
|
return xe(e, La, []);
|
|
1213
1217
|
}
|
|
1214
1218
|
const wa = ["t", "type"];
|
|
@@ -1220,18 +1224,18 @@ function xt(e, t) {
|
|
|
1220
1224
|
const n = xe(e, Da);
|
|
1221
1225
|
if (n != null)
|
|
1222
1226
|
return n;
|
|
1223
|
-
throw
|
|
1227
|
+
throw It(t);
|
|
1224
1228
|
}
|
|
1225
1229
|
const Ra = ["m", "modifier"];
|
|
1226
|
-
function
|
|
1230
|
+
function jo(e) {
|
|
1227
1231
|
return xe(e, Ra);
|
|
1228
1232
|
}
|
|
1229
|
-
const
|
|
1230
|
-
function
|
|
1231
|
-
const t = xe(e,
|
|
1233
|
+
const ka = ["k", "key"];
|
|
1234
|
+
function qo(e) {
|
|
1235
|
+
const t = xe(e, ka);
|
|
1232
1236
|
if (t)
|
|
1233
1237
|
return t;
|
|
1234
|
-
throw
|
|
1238
|
+
throw It(
|
|
1235
1239
|
6
|
|
1236
1240
|
/* NodeTypes.Linked */
|
|
1237
1241
|
);
|
|
@@ -1244,31 +1248,31 @@ function xe(e, t, n) {
|
|
|
1244
1248
|
}
|
|
1245
1249
|
return n;
|
|
1246
1250
|
}
|
|
1247
|
-
const
|
|
1251
|
+
const Pa = [
|
|
1248
1252
|
...Oa,
|
|
1249
1253
|
...Ia,
|
|
1250
1254
|
...Ca,
|
|
1251
1255
|
...La,
|
|
1252
|
-
...
|
|
1256
|
+
...ka,
|
|
1253
1257
|
...Ra,
|
|
1254
1258
|
...Da,
|
|
1255
1259
|
...wa
|
|
1256
1260
|
];
|
|
1257
|
-
function
|
|
1261
|
+
function It(e) {
|
|
1258
1262
|
return new Error(`unhandled node type: ${e}`);
|
|
1259
1263
|
}
|
|
1260
1264
|
function Sn(e) {
|
|
1261
|
-
return (n) =>
|
|
1265
|
+
return (n) => Xo(n, e);
|
|
1262
1266
|
}
|
|
1263
|
-
function
|
|
1264
|
-
const n =
|
|
1267
|
+
function Xo(e, t) {
|
|
1268
|
+
const n = Wo(t);
|
|
1265
1269
|
if (n == null)
|
|
1266
|
-
throw
|
|
1270
|
+
throw It(
|
|
1267
1271
|
0
|
|
1268
1272
|
/* NodeTypes.Resource */
|
|
1269
1273
|
);
|
|
1270
1274
|
if (rr(n) === 1) {
|
|
1271
|
-
const s =
|
|
1275
|
+
const s = Yo(n);
|
|
1272
1276
|
return e.plural(s.reduce((o, i) => [
|
|
1273
1277
|
...o,
|
|
1274
1278
|
Lr(e, i)
|
|
@@ -1277,15 +1281,15 @@ function Qo(e, t) {
|
|
|
1277
1281
|
return Lr(e, n);
|
|
1278
1282
|
}
|
|
1279
1283
|
function Lr(e, t) {
|
|
1280
|
-
const n =
|
|
1284
|
+
const n = Ho(t);
|
|
1281
1285
|
if (n != null)
|
|
1282
1286
|
return e.type === "text" ? n : e.normalize([n]);
|
|
1283
1287
|
{
|
|
1284
|
-
const r =
|
|
1288
|
+
const r = Ko(t).reduce((a, s) => [...a, kn(e, s)], []);
|
|
1285
1289
|
return e.normalize(r);
|
|
1286
1290
|
}
|
|
1287
1291
|
}
|
|
1288
|
-
function
|
|
1292
|
+
function kn(e, t) {
|
|
1289
1293
|
const n = rr(t);
|
|
1290
1294
|
switch (n) {
|
|
1291
1295
|
case 3:
|
|
@@ -1298,7 +1302,7 @@ function Pn(e, t) {
|
|
|
1298
1302
|
return e.interpolate(e.named(r.k));
|
|
1299
1303
|
if (ve(r, "key") && r.key)
|
|
1300
1304
|
return e.interpolate(e.named(r.key));
|
|
1301
|
-
throw
|
|
1305
|
+
throw It(n);
|
|
1302
1306
|
}
|
|
1303
1307
|
case 5: {
|
|
1304
1308
|
const r = t;
|
|
@@ -1306,11 +1310,11 @@ function Pn(e, t) {
|
|
|
1306
1310
|
return e.interpolate(e.list(r.i));
|
|
1307
1311
|
if (ve(r, "index") && ae(r.index))
|
|
1308
1312
|
return e.interpolate(e.list(r.index));
|
|
1309
|
-
throw
|
|
1313
|
+
throw It(n);
|
|
1310
1314
|
}
|
|
1311
1315
|
case 6: {
|
|
1312
|
-
const r = t, a =
|
|
1313
|
-
return e.linked(
|
|
1316
|
+
const r = t, a = jo(r), s = qo(r);
|
|
1317
|
+
return e.linked(kn(e, s), a ? kn(e, a) : void 0, e.type);
|
|
1314
1318
|
}
|
|
1315
1319
|
case 7:
|
|
1316
1320
|
return xt(t, n);
|
|
@@ -1320,28 +1324,28 @@ function Pn(e, t) {
|
|
|
1320
1324
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1321
1325
|
}
|
|
1322
1326
|
}
|
|
1323
|
-
const
|
|
1324
|
-
function
|
|
1325
|
-
t &&
|
|
1327
|
+
const Qo = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
1328
|
+
function Jo(e, t) {
|
|
1329
|
+
t && Eo(e) && (Xt(Qo, { source: e }), void 0);
|
|
1326
1330
|
}
|
|
1327
|
-
const
|
|
1331
|
+
const zo = (e) => e;
|
|
1328
1332
|
let Vt = K();
|
|
1329
|
-
function
|
|
1333
|
+
function Zo(e, t = {}) {
|
|
1330
1334
|
let n = !1;
|
|
1331
|
-
const r = t.onError ||
|
|
1335
|
+
const r = t.onError || go;
|
|
1332
1336
|
return t.onError = (a) => {
|
|
1333
1337
|
n = !0, r(a);
|
|
1334
|
-
}, {
|
|
1338
|
+
}, { ...Go(e, t), detectError: n };
|
|
1335
1339
|
}
|
|
1336
1340
|
// @__NO_SIDE_EFFECTS__
|
|
1337
|
-
function
|
|
1341
|
+
function ei(e, t) {
|
|
1338
1342
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && I(e)) {
|
|
1339
1343
|
const n = $(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
1340
|
-
process.env.NODE_ENV !== "production" &&
|
|
1341
|
-
const a = (t.onCacheKey ||
|
|
1344
|
+
process.env.NODE_ENV !== "production" && Jo(e, n);
|
|
1345
|
+
const a = (t.onCacheKey || zo)(e), s = Vt[a];
|
|
1342
1346
|
if (s)
|
|
1343
1347
|
return s;
|
|
1344
|
-
const { ast: o, detectError: i } =
|
|
1348
|
+
const { ast: o, detectError: i } = Zo(e, {
|
|
1345
1349
|
...t,
|
|
1346
1350
|
location: process.env.NODE_ENV !== "production",
|
|
1347
1351
|
jit: !0
|
|
@@ -1358,24 +1362,24 @@ function ti(e, t) {
|
|
|
1358
1362
|
return Sn(e);
|
|
1359
1363
|
}
|
|
1360
1364
|
}
|
|
1361
|
-
let
|
|
1362
|
-
function
|
|
1363
|
-
|
|
1365
|
+
let Ct = null;
|
|
1366
|
+
function ti(e) {
|
|
1367
|
+
Ct = e;
|
|
1364
1368
|
}
|
|
1365
|
-
function
|
|
1366
|
-
|
|
1369
|
+
function ni(e, t, n) {
|
|
1370
|
+
Ct && Ct.emit("i18n:init", {
|
|
1367
1371
|
timestamp: Date.now(),
|
|
1368
1372
|
i18n: e,
|
|
1369
1373
|
version: t,
|
|
1370
1374
|
meta: n
|
|
1371
1375
|
});
|
|
1372
1376
|
}
|
|
1373
|
-
const
|
|
1374
|
-
function
|
|
1375
|
-
return (t) =>
|
|
1377
|
+
const ri = /* @__PURE__ */ ai("function:translate");
|
|
1378
|
+
function ai(e) {
|
|
1379
|
+
return (t) => Ct && Ct.emit(e, t);
|
|
1376
1380
|
}
|
|
1377
1381
|
const le = {
|
|
1378
|
-
INVALID_ARGUMENT:
|
|
1382
|
+
INVALID_ARGUMENT: mo,
|
|
1379
1383
|
// 17
|
|
1380
1384
|
INVALID_DATE_ARGUMENT: 18,
|
|
1381
1385
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1383,11 +1387,11 @@ const le = {
|
|
|
1383
1387
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1384
1388
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1385
1389
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1386
|
-
},
|
|
1387
|
-
function
|
|
1388
|
-
return ft(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
1390
|
+
}, si = 24;
|
|
1391
|
+
function we(e) {
|
|
1392
|
+
return ft(e, null, process.env.NODE_ENV !== "production" ? { messages: oi } : void 0);
|
|
1389
1393
|
}
|
|
1390
|
-
const
|
|
1394
|
+
const oi = {
|
|
1391
1395
|
[le.INVALID_ARGUMENT]: "Invalid arguments",
|
|
1392
1396
|
[le.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
1393
1397
|
[le.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
@@ -1408,22 +1412,22 @@ function wr(e) {
|
|
|
1408
1412
|
return vn;
|
|
1409
1413
|
if (e.constructor.name === "Function") {
|
|
1410
1414
|
const t = e();
|
|
1411
|
-
if (
|
|
1412
|
-
throw
|
|
1415
|
+
if (lo(t))
|
|
1416
|
+
throw we(le.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1413
1417
|
return vn = t;
|
|
1414
1418
|
} else
|
|
1415
|
-
throw
|
|
1419
|
+
throw we(le.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1416
1420
|
} else
|
|
1417
|
-
throw
|
|
1421
|
+
throw we(le.NOT_SUPPORT_LOCALE_TYPE);
|
|
1418
1422
|
}
|
|
1419
|
-
function
|
|
1423
|
+
function ii(e, t, n) {
|
|
1420
1424
|
return [.../* @__PURE__ */ new Set([
|
|
1421
1425
|
n,
|
|
1422
1426
|
...re(t) ? t : G(t) ? Object.keys(t) : I(t) ? [t] : [n]
|
|
1423
1427
|
])];
|
|
1424
1428
|
}
|
|
1425
1429
|
function Fa(e, t, n) {
|
|
1426
|
-
const r = I(n) ? n :
|
|
1430
|
+
const r = I(n) ? n : Lt, a = e;
|
|
1427
1431
|
a.__localeChainCache || (a.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1428
1432
|
let s = a.__localeChainCache.get(r);
|
|
1429
1433
|
if (!s) {
|
|
@@ -1440,20 +1444,20 @@ function Dr(e, t, n) {
|
|
|
1440
1444
|
let r = !0;
|
|
1441
1445
|
for (let a = 0; a < t.length && $(r); a++) {
|
|
1442
1446
|
const s = t[a];
|
|
1443
|
-
I(s) && (r =
|
|
1447
|
+
I(s) && (r = li(e, t[a], n));
|
|
1444
1448
|
}
|
|
1445
1449
|
return r;
|
|
1446
1450
|
}
|
|
1447
|
-
function
|
|
1451
|
+
function li(e, t, n) {
|
|
1448
1452
|
let r;
|
|
1449
1453
|
const a = t.split("-");
|
|
1450
1454
|
do {
|
|
1451
1455
|
const s = a.join("-");
|
|
1452
|
-
r =
|
|
1456
|
+
r = ci(e, s, n), a.splice(-1, 1);
|
|
1453
1457
|
} while (a.length && r === !0);
|
|
1454
1458
|
return r;
|
|
1455
1459
|
}
|
|
1456
|
-
function
|
|
1460
|
+
function ci(e, t, n) {
|
|
1457
1461
|
let r = !1;
|
|
1458
1462
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1459
1463
|
r = t[t.length - 1] !== "!";
|
|
@@ -1623,15 +1627,15 @@ Ve[
|
|
|
1623
1627
|
/* Actions.APPEND */
|
|
1624
1628
|
]
|
|
1625
1629
|
};
|
|
1626
|
-
const
|
|
1627
|
-
function
|
|
1628
|
-
return
|
|
1630
|
+
const ui = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1631
|
+
function fi(e) {
|
|
1632
|
+
return ui.test(e);
|
|
1629
1633
|
}
|
|
1630
|
-
function
|
|
1634
|
+
function _i(e) {
|
|
1631
1635
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1632
1636
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1633
1637
|
}
|
|
1634
|
-
function
|
|
1638
|
+
function di(e) {
|
|
1635
1639
|
if (e == null)
|
|
1636
1640
|
return "o";
|
|
1637
1641
|
switch (e.charCodeAt(0)) {
|
|
@@ -1668,11 +1672,11 @@ function mi(e) {
|
|
|
1668
1672
|
}
|
|
1669
1673
|
return "i";
|
|
1670
1674
|
}
|
|
1671
|
-
function
|
|
1675
|
+
function mi(e) {
|
|
1672
1676
|
const t = e.trim();
|
|
1673
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1677
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : fi(t) ? _i(t) : "*" + t;
|
|
1674
1678
|
}
|
|
1675
|
-
function
|
|
1679
|
+
function hi(e) {
|
|
1676
1680
|
const t = [];
|
|
1677
1681
|
let n = -1, r = 0, a = 0, s, o, i, l, c, f, u;
|
|
1678
1682
|
const m = [];
|
|
@@ -1704,7 +1708,7 @@ function gi(e) {
|
|
|
1704
1708
|
/* Actions.APPEND */
|
|
1705
1709
|
]();
|
|
1706
1710
|
else {
|
|
1707
|
-
if (a = 0, o === void 0 || (o =
|
|
1711
|
+
if (a = 0, o === void 0 || (o = mi(o), o === !1))
|
|
1708
1712
|
return !1;
|
|
1709
1713
|
m[
|
|
1710
1714
|
1
|
|
@@ -1722,27 +1726,27 @@ function gi(e) {
|
|
|
1722
1726
|
}
|
|
1723
1727
|
for (; r !== null; )
|
|
1724
1728
|
if (n++, s = e[n], !(s === "\\" && p())) {
|
|
1725
|
-
if (l =
|
|
1729
|
+
if (l = di(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))))
|
|
1726
1730
|
return;
|
|
1727
1731
|
if (r === 7)
|
|
1728
1732
|
return t;
|
|
1729
1733
|
}
|
|
1730
1734
|
}
|
|
1731
1735
|
const Rr = /* @__PURE__ */ new Map();
|
|
1732
|
-
function
|
|
1736
|
+
function gi(e, t) {
|
|
1733
1737
|
return G(e) ? e[t] : null;
|
|
1734
1738
|
}
|
|
1735
|
-
function
|
|
1739
|
+
function pi(e, t) {
|
|
1736
1740
|
if (!G(e))
|
|
1737
1741
|
return null;
|
|
1738
1742
|
let n = Rr.get(t);
|
|
1739
|
-
if (n || (n =
|
|
1743
|
+
if (n || (n = hi(t), n && Rr.set(t, n)), !n)
|
|
1740
1744
|
return null;
|
|
1741
1745
|
const r = n.length;
|
|
1742
1746
|
let a = e, s = 0;
|
|
1743
1747
|
for (; s < r; ) {
|
|
1744
1748
|
const o = n[s];
|
|
1745
|
-
if (
|
|
1749
|
+
if (Pa.includes(o) && Ee(a))
|
|
1746
1750
|
return null;
|
|
1747
1751
|
const i = a[o];
|
|
1748
1752
|
if (i === void 0 || q(a))
|
|
@@ -1759,7 +1763,7 @@ const _e = {
|
|
|
1759
1763
|
CANNOT_FORMAT_DATE: 5,
|
|
1760
1764
|
FALLBACK_TO_DATE_FORMAT: 6,
|
|
1761
1765
|
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
|
|
1762
|
-
},
|
|
1766
|
+
}, Ei = 8, bi = {
|
|
1763
1767
|
[_e.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
1764
1768
|
[_e.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
1765
1769
|
[_e.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
@@ -1769,41 +1773,41 @@ const _e = {
|
|
|
1769
1773
|
[_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."
|
|
1770
1774
|
};
|
|
1771
1775
|
function Je(e, ...t) {
|
|
1772
|
-
return Xt(
|
|
1776
|
+
return Xt(bi[e], ...t);
|
|
1773
1777
|
}
|
|
1774
|
-
const
|
|
1775
|
-
function
|
|
1778
|
+
const Si = "11.1.3", Jt = -1, Lt = "en-US", Ht = "", kr = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1779
|
+
function vi() {
|
|
1776
1780
|
return {
|
|
1777
1781
|
upper: (e, t) => t === "text" && I(e) ? e.toUpperCase() : t === "vnode" && G(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1778
1782
|
lower: (e, t) => t === "text" && I(e) ? e.toLowerCase() : t === "vnode" && G(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1779
|
-
capitalize: (e, t) => t === "text" && I(e) ?
|
|
1783
|
+
capitalize: (e, t) => t === "text" && I(e) ? kr(e) : t === "vnode" && G(e) && "__v_isVNode" in e ? kr(e.children) : e
|
|
1780
1784
|
};
|
|
1781
1785
|
}
|
|
1782
1786
|
let Ma;
|
|
1783
|
-
function
|
|
1787
|
+
function Ai(e) {
|
|
1784
1788
|
Ma = e;
|
|
1785
1789
|
}
|
|
1786
1790
|
let Ua;
|
|
1787
|
-
function
|
|
1791
|
+
function yi(e) {
|
|
1788
1792
|
Ua = e;
|
|
1789
1793
|
}
|
|
1790
1794
|
let Ba;
|
|
1791
|
-
function
|
|
1795
|
+
function Ni(e) {
|
|
1792
1796
|
Ba = e;
|
|
1793
1797
|
}
|
|
1794
1798
|
let xa = null;
|
|
1795
|
-
const
|
|
1799
|
+
const Ti = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1796
1800
|
xa = e;
|
|
1797
|
-
},
|
|
1801
|
+
}, Oi = /* @__NO_SIDE_EFFECTS__ */ () => xa;
|
|
1798
1802
|
let Va = null;
|
|
1799
|
-
const
|
|
1803
|
+
const Pr = (e) => {
|
|
1800
1804
|
Va = e;
|
|
1801
|
-
},
|
|
1805
|
+
}, Ii = () => Va;
|
|
1802
1806
|
let Fr = 0;
|
|
1803
|
-
function
|
|
1804
|
-
const t = q(e.onWarn) ? e.onWarn :
|
|
1807
|
+
function Ci(e = {}) {
|
|
1808
|
+
const t = q(e.onWarn) ? e.onWarn : fo, n = I(e.version) ? e.version : Si, r = I(e.locale) || q(e.locale) ? e.locale : Lt, a = q(r) ? Lt : 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, vi()), 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
1809
|
process.env.NODE_ENV !== "production" && q(e.messageCompiler) && er(Je(_e.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1806
|
-
const O = q(e.messageResolver) ? e.messageResolver : Ua ||
|
|
1810
|
+
const O = q(e.messageResolver) ? e.messageResolver : Ua || gi, L = q(e.localeFallbacker) ? e.localeFallbacker : Ba || ii, 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 : {};
|
|
1807
1811
|
Fr++;
|
|
1808
1812
|
const oe = {
|
|
1809
1813
|
version: n,
|
|
@@ -1829,7 +1833,7 @@ function Li(e = {}) {
|
|
|
1829
1833
|
onWarn: t,
|
|
1830
1834
|
__meta: Se
|
|
1831
1835
|
};
|
|
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__) &&
|
|
1836
|
+
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__) && ni(oe, n, Se), oe;
|
|
1833
1837
|
}
|
|
1834
1838
|
const An = (e) => ({ [e]: K() });
|
|
1835
1839
|
function zt(e, t) {
|
|
@@ -1855,14 +1859,14 @@ function sr(e, t, n, r, a) {
|
|
|
1855
1859
|
} else
|
|
1856
1860
|
return process.env.NODE_ENV !== "production" && Ga(r, t) && o(Je(_e.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
1857
1861
|
}
|
|
1858
|
-
function
|
|
1862
|
+
function Et(e, t, n) {
|
|
1859
1863
|
const r = e;
|
|
1860
1864
|
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1861
1865
|
}
|
|
1862
1866
|
function $a(e, t) {
|
|
1863
1867
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1864
1868
|
}
|
|
1865
|
-
function
|
|
1869
|
+
function Li(e, t) {
|
|
1866
1870
|
const n = t.indexOf(e);
|
|
1867
1871
|
if (n === -1)
|
|
1868
1872
|
return !1;
|
|
@@ -1879,7 +1883,7 @@ function Ur(e, ...t) {
|
|
|
1879
1883
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: s, localeFallbacker: o } = e, { __datetimeFormatters: i } = e;
|
|
1880
1884
|
if (process.env.NODE_ENV !== "production" && !Wa.dateTimeFormat)
|
|
1881
1885
|
return s(Je(_e.CANNOT_FORMAT_DATE)), Ht;
|
|
1882
|
-
const [l, c, f, u] =
|
|
1886
|
+
const [l, c, f, u] = Pn(...t), m = $(f.missingWarn) ? f.missingWarn : e.missingWarn, p = $(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, A = !!f.part, E = ar(e, f), C = o(
|
|
1883
1887
|
e,
|
|
1884
1888
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1885
1889
|
a,
|
|
@@ -1936,28 +1940,28 @@ const Ya = [
|
|
|
1936
1940
|
"hourCycle",
|
|
1937
1941
|
"fractionalSecondDigits"
|
|
1938
1942
|
];
|
|
1939
|
-
function
|
|
1943
|
+
function Pn(...e) {
|
|
1940
1944
|
const [t, n, r, a] = e, s = K();
|
|
1941
1945
|
let o = K(), i;
|
|
1942
1946
|
if (I(t)) {
|
|
1943
1947
|
const l = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1944
1948
|
if (!l)
|
|
1945
|
-
throw
|
|
1949
|
+
throw we(le.INVALID_ISO_DATE_ARGUMENT);
|
|
1946
1950
|
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();
|
|
1947
1951
|
i = new Date(c);
|
|
1948
1952
|
try {
|
|
1949
1953
|
i.toISOString();
|
|
1950
1954
|
} catch {
|
|
1951
|
-
throw
|
|
1955
|
+
throw we(le.INVALID_ISO_DATE_ARGUMENT);
|
|
1952
1956
|
}
|
|
1953
|
-
} else if (
|
|
1957
|
+
} else if (so(t)) {
|
|
1954
1958
|
if (isNaN(t.getTime()))
|
|
1955
|
-
throw
|
|
1959
|
+
throw we(le.INVALID_DATE_ARGUMENT);
|
|
1956
1960
|
i = t;
|
|
1957
1961
|
} else if (ae(t))
|
|
1958
1962
|
i = t;
|
|
1959
1963
|
else
|
|
1960
|
-
throw
|
|
1964
|
+
throw we(le.INVALID_ARGUMENT);
|
|
1961
1965
|
return I(n) ? s.key = n : V(n) && Object.keys(n).forEach((l) => {
|
|
1962
1966
|
Ya.includes(l) ? o[l] = n[l] : s[l] = n[l];
|
|
1963
1967
|
}), I(r) ? s.locale = r : V(r) && (o = r), V(a) && (o = a), [s.key || "", i, s, o];
|
|
@@ -2034,7 +2038,7 @@ function Fn(...e) {
|
|
|
2034
2038
|
const [t, n, r, a] = e, s = K();
|
|
2035
2039
|
let o = K();
|
|
2036
2040
|
if (!ae(t))
|
|
2037
|
-
throw
|
|
2041
|
+
throw we(le.INVALID_ARGUMENT);
|
|
2038
2042
|
const i = t;
|
|
2039
2043
|
return I(n) ? s.key = n : V(n) && Object.keys(n).forEach((l) => {
|
|
2040
2044
|
Ha.includes(l) ? o[l] = n[l] : s[l] = n[l];
|
|
@@ -2047,26 +2051,26 @@ function Vr(e, t, n) {
|
|
|
2047
2051
|
r.__numberFormatters.has(s) && r.__numberFormatters.delete(s);
|
|
2048
2052
|
}
|
|
2049
2053
|
}
|
|
2050
|
-
const
|
|
2054
|
+
const wi = (e) => e, Di = (e) => "", Ri = "text", ki = (e) => e.length === 0 ? "" : Zn(e), Pi = co;
|
|
2051
2055
|
function Gr(e, t) {
|
|
2052
2056
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
2053
2057
|
}
|
|
2054
|
-
function
|
|
2058
|
+
function Fi(e) {
|
|
2055
2059
|
const t = ae(e.pluralIndex) ? e.pluralIndex : -1;
|
|
2056
2060
|
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;
|
|
2057
2061
|
}
|
|
2058
|
-
function
|
|
2062
|
+
function Mi(e, t) {
|
|
2059
2063
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
2060
2064
|
}
|
|
2061
|
-
function
|
|
2062
|
-
const t = e.locale, n =
|
|
2063
|
-
ae(e.pluralIndex) &&
|
|
2065
|
+
function Ui(e = {}) {
|
|
2066
|
+
const t = e.locale, n = Fi(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();
|
|
2067
|
+
ae(e.pluralIndex) && Mi(n, l);
|
|
2064
2068
|
const c = (h) => l[h];
|
|
2065
2069
|
function f(h, g) {
|
|
2066
2070
|
const N = q(e.messages) ? e.messages(h, !!g) : G(e.messages) ? e.messages[h] : !1;
|
|
2067
|
-
return N || (e.parent ? e.parent.message(h) :
|
|
2071
|
+
return N || (e.parent ? e.parent.message(h) : Di);
|
|
2068
2072
|
}
|
|
2069
|
-
const u = (h) => e.modifiers ? e.modifiers[h] :
|
|
2073
|
+
const u = (h) => e.modifiers ? e.modifiers[h] : wi, m = V(e.processor) && q(e.processor.normalize) ? e.processor.normalize : ki, p = V(e.processor) && q(e.processor.interpolate) ? e.processor.interpolate : Pi, A = V(e.processor) && I(e.processor.type) ? e.processor.type : Ri, C = {
|
|
2070
2074
|
list: i,
|
|
2071
2075
|
named: c,
|
|
2072
2076
|
plural: s,
|
|
@@ -2091,7 +2095,7 @@ function Bi(e = {}) {
|
|
|
2091
2095
|
const $r = () => "", pe = (e) => q(e);
|
|
2092
2096
|
function Wr(e, ...t) {
|
|
2093
2097
|
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);
|
|
2094
|
-
m &&
|
|
2098
|
+
m && Bi(c);
|
|
2095
2099
|
let [h, g, N] = p ? [
|
|
2096
2100
|
l,
|
|
2097
2101
|
C,
|
|
@@ -2107,7 +2111,7 @@ function Wr(e, ...t) {
|
|
|
2107
2111
|
}, x = pe(S) ? S : ja(e, l, g, S, O, v);
|
|
2108
2112
|
if (L)
|
|
2109
2113
|
return S;
|
|
2110
|
-
const Y =
|
|
2114
|
+
const Y = $i(e, g, N, c), se = Ui(Y), Se = xi(e, x, se), oe = r ? r(Se, l) : Se;
|
|
2111
2115
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2112
2116
|
const Ze = {
|
|
2113
2117
|
timestamp: Date.now(),
|
|
@@ -2116,11 +2120,11 @@ function Wr(e, ...t) {
|
|
|
2116
2120
|
format: I(S) ? S : pe(S) ? S.source : "",
|
|
2117
2121
|
message: oe
|
|
2118
2122
|
};
|
|
2119
|
-
Ze.meta = ie({}, e.__meta, /* @__PURE__ */
|
|
2123
|
+
Ze.meta = ie({}, e.__meta, /* @__PURE__ */ Oi() || {}), ri(Ze);
|
|
2120
2124
|
}
|
|
2121
2125
|
return oe;
|
|
2122
2126
|
}
|
|
2123
|
-
function
|
|
2127
|
+
function Bi(e) {
|
|
2124
2128
|
re(e.list) ? e.list = e.list.map((t) => I(t) ? yr(t) : t) : G(e.named) && Object.keys(e.named).forEach((t) => {
|
|
2125
2129
|
I(e.named[t]) && (e.named[t] = yr(e.named[t]));
|
|
2126
2130
|
});
|
|
@@ -2157,7 +2161,7 @@ function Ka(e, t, n, r, a, s) {
|
|
|
2157
2161
|
}
|
|
2158
2162
|
if (I(p) || Ee(p) || pe(p))
|
|
2159
2163
|
break;
|
|
2160
|
-
if (!
|
|
2164
|
+
if (!Li(m, f)) {
|
|
2161
2165
|
const O = sr(
|
|
2162
2166
|
e,
|
|
2163
2167
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -2184,7 +2188,7 @@ function ja(e, t, n, r, a, s) {
|
|
|
2184
2188
|
}
|
|
2185
2189
|
let l = null, c, f;
|
|
2186
2190
|
process.env.NODE_ENV !== "production" && Ae && (l = window.performance.now(), c = "intlify-message-compilation-start", f = "intlify-message-compilation-end", ge && ge(c));
|
|
2187
|
-
const u = o(r,
|
|
2191
|
+
const u = o(r, Vi(e, n, a, r, i, s));
|
|
2188
2192
|
if (process.env.NODE_ENV !== "production" && Ae) {
|
|
2189
2193
|
const m = window.performance.now(), p = e.__v_emitter;
|
|
2190
2194
|
p && l && p.emit("message-compilation", {
|
|
@@ -2196,7 +2200,7 @@ function ja(e, t, n, r, a, s) {
|
|
|
2196
2200
|
}
|
|
2197
2201
|
return u.locale = n, u.key = t, u.source = r, u;
|
|
2198
2202
|
}
|
|
2199
|
-
function
|
|
2203
|
+
function xi(e, t, n) {
|
|
2200
2204
|
let r = null, a, s;
|
|
2201
2205
|
process.env.NODE_ENV !== "production" && Ae && (r = window.performance.now(), a = "intlify-message-evaluation-start", s = "intlify-message-evaluation-end", ge && ge(a));
|
|
2202
2206
|
const o = t(n);
|
|
@@ -2214,18 +2218,18 @@ function Vi(e, t, n) {
|
|
|
2214
2218
|
function Mn(...e) {
|
|
2215
2219
|
const [t, n, r] = e, a = K();
|
|
2216
2220
|
if (!I(t) && !ae(t) && !pe(t) && !Ee(t))
|
|
2217
|
-
throw
|
|
2221
|
+
throw we(le.INVALID_ARGUMENT);
|
|
2218
2222
|
const s = ae(t) ? String(t) : (pe(t), t);
|
|
2219
2223
|
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];
|
|
2220
2224
|
}
|
|
2221
|
-
function
|
|
2225
|
+
function Vi(e, t, n, r, a, s) {
|
|
2222
2226
|
return {
|
|
2223
2227
|
locale: t,
|
|
2224
2228
|
key: n,
|
|
2225
2229
|
warnHtmlMessage: a,
|
|
2226
2230
|
onError: (o) => {
|
|
2227
2231
|
if (s && s(o), process.env.NODE_ENV !== "production") {
|
|
2228
|
-
const i =
|
|
2232
|
+
const i = Gi(r), l = `Message compilation error: ${o.message}`, c = o.location && i && uo(i, o.location.start.offset, o.location.end.offset), f = e.__v_emitter;
|
|
2229
2233
|
f && i && f.emit("compile-error", {
|
|
2230
2234
|
message: i,
|
|
2231
2235
|
error: o.message,
|
|
@@ -2236,16 +2240,16 @@ function Gi(e, t, n, r, a, s) {
|
|
|
2236
2240
|
} else
|
|
2237
2241
|
throw o;
|
|
2238
2242
|
},
|
|
2239
|
-
onCacheKey: (o) =>
|
|
2243
|
+
onCacheKey: (o) => ro(t, n, o)
|
|
2240
2244
|
};
|
|
2241
2245
|
}
|
|
2242
|
-
function
|
|
2246
|
+
function Gi(e) {
|
|
2243
2247
|
if (I(e))
|
|
2244
2248
|
return e;
|
|
2245
2249
|
if (e.loc && e.loc.source)
|
|
2246
2250
|
return e.loc.source;
|
|
2247
2251
|
}
|
|
2248
|
-
function
|
|
2252
|
+
function $i(e, t, n, r) {
|
|
2249
2253
|
const { modifiers: a, pluralRules: s, messageResolver: o, fallbackLocale: i, fallbackWarn: l, missingWarn: c, fallbackContext: f } = e, m = {
|
|
2250
2254
|
locale: t,
|
|
2251
2255
|
modifiers: a,
|
|
@@ -2275,23 +2279,23 @@ function Wi(e, t, n, r) {
|
|
|
2275
2279
|
};
|
|
2276
2280
|
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;
|
|
2277
2281
|
}
|
|
2278
|
-
|
|
2279
|
-
function
|
|
2282
|
+
$o();
|
|
2283
|
+
function Wi() {
|
|
2280
2284
|
return qa().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
2281
2285
|
}
|
|
2282
2286
|
function qa() {
|
|
2283
2287
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
2284
2288
|
}
|
|
2285
|
-
const
|
|
2289
|
+
const Yi = typeof Proxy == "function", Hi = "devtools-plugin:setup", Ki = "plugin:settings:set";
|
|
2286
2290
|
let tt, Un;
|
|
2287
|
-
function
|
|
2291
|
+
function ji() {
|
|
2288
2292
|
var e;
|
|
2289
2293
|
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;
|
|
2290
2294
|
}
|
|
2291
|
-
function
|
|
2292
|
-
return
|
|
2295
|
+
function qi() {
|
|
2296
|
+
return ji() ? Un.now() : Date.now();
|
|
2293
2297
|
}
|
|
2294
|
-
class
|
|
2298
|
+
class Xi {
|
|
2295
2299
|
constructor(t, n) {
|
|
2296
2300
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
2297
2301
|
const r = {};
|
|
@@ -2319,9 +2323,9 @@ class Qi {
|
|
|
2319
2323
|
s = o;
|
|
2320
2324
|
},
|
|
2321
2325
|
now() {
|
|
2322
|
-
return
|
|
2326
|
+
return qi();
|
|
2323
2327
|
}
|
|
2324
|
-
}, n && n.on(
|
|
2328
|
+
}, n && n.on(Ki, (o, i) => {
|
|
2325
2329
|
o === this.plugin.id && this.fallbacks.setSettings(i);
|
|
2326
2330
|
}), this.proxiedOn = new Proxy({}, {
|
|
2327
2331
|
get: (o, i) => this.target ? this.target.on[i] : (...l) => {
|
|
@@ -2353,12 +2357,12 @@ class Qi {
|
|
|
2353
2357
|
n.resolve(await this.target[n.method](...n.args));
|
|
2354
2358
|
}
|
|
2355
2359
|
}
|
|
2356
|
-
function
|
|
2357
|
-
const n = e, r = qa(), a =
|
|
2360
|
+
function Qi(e, t) {
|
|
2361
|
+
const n = e, r = qa(), a = Wi(), s = Yi && n.enableEarlyProxy;
|
|
2358
2362
|
if (a && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
|
|
2359
|
-
a.emit(
|
|
2363
|
+
a.emit(Hi, e, t);
|
|
2360
2364
|
else {
|
|
2361
|
-
const o = s ? new
|
|
2365
|
+
const o = s ? new Xi(n, a) : null;
|
|
2362
2366
|
(r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
2363
2367
|
pluginDescriptor: n,
|
|
2364
2368
|
setupFn: t,
|
|
@@ -2371,13 +2375,13 @@ function Ji(e, t) {
|
|
|
2371
2375
|
* (c) 2025 kazuya kawaguchi
|
|
2372
2376
|
* Released under the MIT License.
|
|
2373
2377
|
*/
|
|
2374
|
-
const
|
|
2375
|
-
function
|
|
2378
|
+
const Ji = "11.1.3";
|
|
2379
|
+
function zi() {
|
|
2376
2380
|
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);
|
|
2377
2381
|
}
|
|
2378
2382
|
const X = {
|
|
2379
2383
|
// composer module errors
|
|
2380
|
-
UNEXPECTED_RETURN_TYPE:
|
|
2384
|
+
UNEXPECTED_RETURN_TYPE: si,
|
|
2381
2385
|
// 24
|
|
2382
2386
|
// legacy module errors
|
|
2383
2387
|
INVALID_ARGUMENT: 25,
|
|
@@ -2398,9 +2402,9 @@ const X = {
|
|
|
2398
2402
|
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
2399
2403
|
};
|
|
2400
2404
|
function de(e, ...t) {
|
|
2401
|
-
return ft(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
2405
|
+
return ft(e, null, process.env.NODE_ENV !== "production" ? { messages: Zi, args: t } : void 0);
|
|
2402
2406
|
}
|
|
2403
|
-
const
|
|
2407
|
+
const Zi = {
|
|
2404
2408
|
[X.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
2405
2409
|
[X.INVALID_ARGUMENT]: "Invalid argument",
|
|
2406
2410
|
[X.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
@@ -2412,8 +2416,8 @@ const el = {
|
|
|
2412
2416
|
[X.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
2413
2417
|
[X.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
2414
2418
|
[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"
|
|
2415
|
-
}, Bn = /* @__PURE__ */ Oe("__translateVNode"), xn = /* @__PURE__ */ Oe("__datetimeParts"), Vn = /* @__PURE__ */ Oe("__numberParts"), ze = /* @__PURE__ */ Oe("__enableEmitter"),
|
|
2416
|
-
FALLBACK_TO_ROOT:
|
|
2419
|
+
}, Bn = /* @__PURE__ */ Oe("__translateVNode"), xn = /* @__PURE__ */ Oe("__datetimeParts"), Vn = /* @__PURE__ */ Oe("__numberParts"), ze = /* @__PURE__ */ Oe("__enableEmitter"), wt = /* @__PURE__ */ Oe("__disableEmitter"), Xa = Oe("__setPluralRules"), Qa = /* @__PURE__ */ Oe("__injectWithOption"), Gn = /* @__PURE__ */ Oe("__dispose"), Ne = {
|
|
2420
|
+
FALLBACK_TO_ROOT: Ei,
|
|
2417
2421
|
// 8
|
|
2418
2422
|
NOT_FOUND_PARENT_SCOPE: 9,
|
|
2419
2423
|
IGNORE_OBJ_FLATTEN: 10,
|
|
@@ -2425,7 +2429,7 @@ const el = {
|
|
|
2425
2429
|
* @deprecated will be removed at vue-i18n v12
|
|
2426
2430
|
*/
|
|
2427
2431
|
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12
|
|
2428
|
-
},
|
|
2432
|
+
}, el = {
|
|
2429
2433
|
[Ne.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
2430
2434
|
[Ne.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
2431
2435
|
[Ne.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
@@ -2439,16 +2443,16 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
2439
2443
|
*/
|
|
2440
2444
|
[Ne.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."
|
|
2441
2445
|
};
|
|
2442
|
-
function
|
|
2443
|
-
return Xt(
|
|
2446
|
+
function kt(e, ...t) {
|
|
2447
|
+
return Xt(el[e], ...t);
|
|
2444
2448
|
}
|
|
2445
|
-
function
|
|
2449
|
+
function Dt(e) {
|
|
2446
2450
|
if (!G(e) || Ee(e))
|
|
2447
2451
|
return e;
|
|
2448
2452
|
for (const t in e)
|
|
2449
2453
|
if (ve(e, t))
|
|
2450
2454
|
if (!t.includes("."))
|
|
2451
|
-
G(e[t]) &&
|
|
2455
|
+
G(e[t]) && Dt(e[t]);
|
|
2452
2456
|
else {
|
|
2453
2457
|
const n = t.split("."), r = n.length - 1;
|
|
2454
2458
|
let a = e, s = !1;
|
|
@@ -2456,16 +2460,16 @@ function wt(e) {
|
|
|
2456
2460
|
if (n[o] === "__proto__")
|
|
2457
2461
|
throw new Error(`unsafe key: ${n[o]}`);
|
|
2458
2462
|
if (n[o] in a || (a[n[o]] = K()), !G(a[n[o]])) {
|
|
2459
|
-
process.env.NODE_ENV !== "production" && (
|
|
2463
|
+
process.env.NODE_ENV !== "production" && (kt(Ne.IGNORE_OBJ_FLATTEN, {
|
|
2460
2464
|
key: n[o]
|
|
2461
2465
|
}), void 0), s = !0;
|
|
2462
2466
|
break;
|
|
2463
2467
|
}
|
|
2464
2468
|
a = a[n[o]];
|
|
2465
2469
|
}
|
|
2466
|
-
if (s || (Ee(a) ?
|
|
2470
|
+
if (s || (Ee(a) ? Pa.includes(n[r]) || delete e[t] : (a[n[r]] = e[t], delete e[t])), !Ee(a)) {
|
|
2467
2471
|
const o = a[n[r]];
|
|
2468
|
-
G(o) &&
|
|
2472
|
+
G(o) && Dt(o);
|
|
2469
2473
|
}
|
|
2470
2474
|
}
|
|
2471
2475
|
return e;
|
|
@@ -2480,7 +2484,7 @@ function or(e, t) {
|
|
|
2480
2484
|
I(i) && Wt(JSON.parse(i), o);
|
|
2481
2485
|
}), a == null && s)
|
|
2482
2486
|
for (const i in o)
|
|
2483
|
-
ve(o, i) &&
|
|
2487
|
+
ve(o, i) && Dt(o[i]);
|
|
2484
2488
|
return o;
|
|
2485
2489
|
}
|
|
2486
2490
|
function Ja(e) {
|
|
@@ -2512,24 +2516,24 @@ function za(e, t, n) {
|
|
|
2512
2516
|
}
|
|
2513
2517
|
}
|
|
2514
2518
|
function Yr(e) {
|
|
2515
|
-
return w(
|
|
2519
|
+
return w(Bs, null, e, 0);
|
|
2516
2520
|
}
|
|
2517
|
-
const Hr = "__INTLIFY_META__", Kr = () => [],
|
|
2521
|
+
const Hr = "__INTLIFY_META__", Kr = () => [], tl = () => !1;
|
|
2518
2522
|
let jr = 0;
|
|
2519
2523
|
function qr(e) {
|
|
2520
|
-
return (t, n, r, a) => e(n, r,
|
|
2524
|
+
return (t, n, r, a) => e(n, r, Nt() || void 0, a);
|
|
2521
2525
|
}
|
|
2522
|
-
const
|
|
2523
|
-
const e =
|
|
2526
|
+
const nl = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2527
|
+
const e = Nt();
|
|
2524
2528
|
let t = null;
|
|
2525
2529
|
return e && (t = Ja(e)[Hr]) ? { [Hr]: t } : null;
|
|
2526
2530
|
};
|
|
2527
2531
|
function ir(e = {}) {
|
|
2528
|
-
const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, s = Ae ?
|
|
2532
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, s = Ae ? Rs : ks;
|
|
2529
2533
|
let o = $(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2530
2534
|
const i = s(
|
|
2531
2535
|
// prettier-ignore
|
|
2532
|
-
t && o ? t.locale.value : I(e.locale) ? e.locale :
|
|
2536
|
+
t && o ? t.locale.value : I(e.locale) ? e.locale : Lt
|
|
2533
2537
|
), l = s(
|
|
2534
2538
|
// prettier-ignore
|
|
2535
2539
|
t && o ? t.fallbackLocale.value : I(e.fallbackLocale) || re(e.fallbackLocale) || V(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i.value
|
|
@@ -2538,9 +2542,9 @@ function ir(e = {}) {
|
|
|
2538
2542
|
const O = t ? t.modifiers : V(e.modifiers) ? e.modifiers : {};
|
|
2539
2543
|
let L = e.pluralRules || t && t.pluralRules, v;
|
|
2540
2544
|
v = (() => {
|
|
2541
|
-
r &&
|
|
2545
|
+
r && Pr(null);
|
|
2542
2546
|
const b = {
|
|
2543
|
-
version:
|
|
2547
|
+
version: Ji,
|
|
2544
2548
|
locale: i.value,
|
|
2545
2549
|
fallbackLocale: l.value,
|
|
2546
2550
|
messages: c.value,
|
|
@@ -2559,9 +2563,9 @@ function ir(e = {}) {
|
|
|
2559
2563
|
__meta: { framework: "vue" }
|
|
2560
2564
|
};
|
|
2561
2565
|
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);
|
|
2562
|
-
const T =
|
|
2563
|
-
return r &&
|
|
2564
|
-
})(),
|
|
2566
|
+
const T = Ci(b);
|
|
2567
|
+
return r && Pr(T), T;
|
|
2568
|
+
})(), Et(v, i.value, l.value);
|
|
2565
2569
|
function Y() {
|
|
2566
2570
|
return [
|
|
2567
2571
|
i.value,
|
|
@@ -2579,7 +2583,7 @@ function ir(e = {}) {
|
|
|
2579
2583
|
}), Se = gt({
|
|
2580
2584
|
get: () => l.value,
|
|
2581
2585
|
set: (b) => {
|
|
2582
|
-
v.fallbackLocale = b, l.value = b,
|
|
2586
|
+
v.fallbackLocale = b, l.value = b, Et(v, i.value, b);
|
|
2583
2587
|
}
|
|
2584
2588
|
}), oe = gt(() => c.value), Ze = /* @__PURE__ */ gt(() => f.value), rn = /* @__PURE__ */ gt(() => u.value);
|
|
2585
2589
|
function an() {
|
|
@@ -2597,18 +2601,18 @@ function ir(e = {}) {
|
|
|
2597
2601
|
function cn(b, T) {
|
|
2598
2602
|
return b !== "translate" || !T.resolvedMessage;
|
|
2599
2603
|
}
|
|
2600
|
-
const Ie = (b, T, H, ee, We,
|
|
2604
|
+
const Ie = (b, T, H, ee, We, Ut) => {
|
|
2601
2605
|
Y();
|
|
2602
2606
|
let et;
|
|
2603
2607
|
try {
|
|
2604
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (v.fallbackContext = t ?
|
|
2608
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (v.fallbackContext = t ? Ii() : void 0), et = b(v);
|
|
2605
2609
|
} finally {
|
|
2606
2610
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (v.fallbackContext = void 0);
|
|
2607
2611
|
}
|
|
2608
2612
|
if (H !== "translate exists" && // for not `te` (e.g `t`)
|
|
2609
2613
|
ae(et) && et === Jt || H === "translate exists" && !et) {
|
|
2610
|
-
const [Ye,
|
|
2611
|
-
if (process.env.NODE_ENV !== "production" && t && I(Ye) && cn(H,
|
|
2614
|
+
const [Ye, ws] = T();
|
|
2615
|
+
if (process.env.NODE_ENV !== "production" && t && I(Ye) && cn(H, ws) && (A && (zt(p, Ye) || Ga(m, Ye)) && (kt(Ne.FALLBACK_TO_ROOT, {
|
|
2612
2616
|
key: Ye,
|
|
2613
2617
|
type: H
|
|
2614
2618
|
}), void 0), process.env.NODE_ENV !== "production")) {
|
|
@@ -2622,7 +2626,7 @@ function ir(e = {}) {
|
|
|
2622
2626
|
}
|
|
2623
2627
|
return t && A ? ee(t) : We(Ye);
|
|
2624
2628
|
} else {
|
|
2625
|
-
if (
|
|
2629
|
+
if (Ut(et))
|
|
2626
2630
|
return et;
|
|
2627
2631
|
throw de(X.UNEXPECTED_RETURN_TYPE);
|
|
2628
2632
|
}
|
|
@@ -2637,7 +2641,7 @@ function ir(e = {}) {
|
|
|
2637
2641
|
return _t(T, H, ie({ resolvedMessage: !0 }, ee || {}));
|
|
2638
2642
|
}
|
|
2639
2643
|
function fn(...b) {
|
|
2640
|
-
return Ie((T) => Reflect.apply(Ur, null, [T, ...b]), () =>
|
|
2644
|
+
return Ie((T) => Reflect.apply(Ur, null, [T, ...b]), () => Pn(...b), "datetime format", (T) => Reflect.apply(T.d, T, [...b]), () => Ht, (T) => I(T));
|
|
2641
2645
|
}
|
|
2642
2646
|
function _n(...b) {
|
|
2643
2647
|
return Ie((T) => Reflect.apply(xr, null, [T, ...b]), () => Fn(...b), "number format", (T) => Reflect.apply(T.n, T, [...b]), () => Ht, (T) => I(T));
|
|
@@ -2650,7 +2654,7 @@ function ir(e = {}) {
|
|
|
2650
2654
|
interpolate: (b) => b,
|
|
2651
2655
|
type: "vnode"
|
|
2652
2656
|
};
|
|
2653
|
-
function
|
|
2657
|
+
function Mt(...b) {
|
|
2654
2658
|
return Ie((T) => {
|
|
2655
2659
|
let H;
|
|
2656
2660
|
const ee = T;
|
|
@@ -2666,7 +2670,7 @@ function ir(e = {}) {
|
|
|
2666
2670
|
return Ie((T) => Reflect.apply(xr, null, [T, ...b]), () => Fn(...b), "number format", (T) => T[Vn](...b), Kr, (T) => I(T) || re(T));
|
|
2667
2671
|
}
|
|
2668
2672
|
function gn(...b) {
|
|
2669
|
-
return Ie((T) => Reflect.apply(Ur, null, [T, ...b]), () =>
|
|
2673
|
+
return Ie((T) => Reflect.apply(Ur, null, [T, ...b]), () => Pn(...b), "datetime format", (T) => T[xn](...b), Kr, (T) => I(T) || re(T));
|
|
2670
2674
|
}
|
|
2671
2675
|
function pn(b) {
|
|
2672
2676
|
L = b, v.pluralRules = L;
|
|
@@ -2677,15 +2681,15 @@ function ir(e = {}) {
|
|
|
2677
2681
|
return !1;
|
|
2678
2682
|
const H = I(T) ? T : i.value, ee = $e(H), We = v.messageResolver(ee, b);
|
|
2679
2683
|
return Ee(We) || pe(We) || I(We);
|
|
2680
|
-
}, () => [b], "translate exists", (H) => Reflect.apply(H.te, H, [b, T]),
|
|
2684
|
+
}, () => [b], "translate exists", (H) => Reflect.apply(H.te, H, [b, T]), tl, (H) => $(H));
|
|
2681
2685
|
}
|
|
2682
2686
|
function dt(b) {
|
|
2683
2687
|
let T = null;
|
|
2684
2688
|
const H = Fa(v, l.value, i.value);
|
|
2685
2689
|
for (let ee = 0; ee < H.length; ee++) {
|
|
2686
|
-
const We = c.value[H[ee]] || {},
|
|
2687
|
-
if (
|
|
2688
|
-
T =
|
|
2690
|
+
const We = c.value[H[ee]] || {}, Ut = v.messageResolver(We, b);
|
|
2691
|
+
if (Ut != null) {
|
|
2692
|
+
T = Ut;
|
|
2689
2693
|
break;
|
|
2690
2694
|
}
|
|
2691
2695
|
}
|
|
@@ -2702,7 +2706,7 @@ function ir(e = {}) {
|
|
|
2702
2706
|
if (a) {
|
|
2703
2707
|
const H = { [b]: T };
|
|
2704
2708
|
for (const ee in H)
|
|
2705
|
-
ve(H, ee) &&
|
|
2709
|
+
ve(H, ee) && Dt(H[ee]);
|
|
2706
2710
|
T = H[b];
|
|
2707
2711
|
}
|
|
2708
2712
|
c.value[b] = T, v.messages = c.value;
|
|
@@ -2712,7 +2716,7 @@ function ir(e = {}) {
|
|
|
2712
2716
|
const H = { [b]: T };
|
|
2713
2717
|
if (a)
|
|
2714
2718
|
for (const ee in H)
|
|
2715
|
-
ve(H, ee) &&
|
|
2719
|
+
ve(H, ee) && Dt(H[ee]);
|
|
2716
2720
|
T = H[b], Wt(T, c.value[b]), v.messages = c.value;
|
|
2717
2721
|
}
|
|
2718
2722
|
function _(b) {
|
|
@@ -2724,7 +2728,7 @@ function ir(e = {}) {
|
|
|
2724
2728
|
function y(b, T) {
|
|
2725
2729
|
f.value[b] = ie(f.value[b] || {}, T), v.datetimeFormats = f.value, Br(v, b, T);
|
|
2726
2730
|
}
|
|
2727
|
-
function
|
|
2731
|
+
function R(b) {
|
|
2728
2732
|
return u.value[b] || {};
|
|
2729
2733
|
}
|
|
2730
2734
|
function z(b, T) {
|
|
@@ -2734,9 +2738,9 @@ function ir(e = {}) {
|
|
|
2734
2738
|
u.value[b] = ie(u.value[b] || {}, T), v.numberFormats = u.value, Vr(v, b, T);
|
|
2735
2739
|
}
|
|
2736
2740
|
jr++, t && Ae && (wn(t.locale, (b) => {
|
|
2737
|
-
o && (i.value = b, v.locale = b,
|
|
2741
|
+
o && (i.value = b, v.locale = b, Et(v, i.value, l.value));
|
|
2738
2742
|
}), wn(t.fallbackLocale, (b) => {
|
|
2739
|
-
o && (l.value = b, v.fallbackLocale = b,
|
|
2743
|
+
o && (l.value = b, v.fallbackLocale = b, Et(v, i.value, l.value));
|
|
2740
2744
|
}));
|
|
2741
2745
|
const W = {
|
|
2742
2746
|
id: jr,
|
|
@@ -2746,7 +2750,7 @@ function ir(e = {}) {
|
|
|
2746
2750
|
return o;
|
|
2747
2751
|
},
|
|
2748
2752
|
set inheritLocale(b) {
|
|
2749
|
-
o = b, b && t && (i.value = t.locale.value, l.value = t.fallbackLocale.value,
|
|
2753
|
+
o = b, b && t && (i.value = t.locale.value, l.value = t.fallbackLocale.value, Et(v, i.value, l.value));
|
|
2750
2754
|
},
|
|
2751
2755
|
get availableLocales() {
|
|
2752
2756
|
return Object.keys(c.value).sort();
|
|
@@ -2807,9 +2811,9 @@ function ir(e = {}) {
|
|
|
2807
2811
|
setMissingHandler: ln,
|
|
2808
2812
|
[Xa]: pn
|
|
2809
2813
|
};
|
|
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 =
|
|
2814
|
+
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 = R, W.setNumberFormat = z, W.mergeNumberFormat = Z, W[Qa] = n, W[Bn] = Mt, W[xn] = gn, W[Vn] = hn, process.env.NODE_ENV !== "production" && (W[ze] = (b) => {
|
|
2811
2815
|
v.__v_emitter = b;
|
|
2812
|
-
}, W[
|
|
2816
|
+
}, W[wt] = () => {
|
|
2813
2817
|
v.__v_emitter = void 0;
|
|
2814
2818
|
}), W;
|
|
2815
2819
|
}
|
|
@@ -2817,16 +2821,16 @@ const Za = "vue-i18n: composer properties", yn = {
|
|
|
2817
2821
|
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
2818
2822
|
"vue-i18n-resource-inspector": "Vue I18n DevTools",
|
|
2819
2823
|
"vue-i18n-timeline": "Vue I18n"
|
|
2820
|
-
},
|
|
2824
|
+
}, rl = {
|
|
2821
2825
|
"vue-i18n-resource-inspector": "Search for scopes ..."
|
|
2822
|
-
},
|
|
2826
|
+
}, al = {
|
|
2823
2827
|
"vue-i18n-timeline": 16764185
|
|
2824
2828
|
};
|
|
2825
2829
|
let $n;
|
|
2826
|
-
async function
|
|
2830
|
+
async function sl(e, t) {
|
|
2827
2831
|
return new Promise((n, r) => {
|
|
2828
2832
|
try {
|
|
2829
|
-
|
|
2833
|
+
Qi({
|
|
2830
2834
|
id: "vue-devtools-plugin-vue-i18n",
|
|
2831
2835
|
label: yn["vue-devtools-plugin-vue-i18n"],
|
|
2832
2836
|
packageName: "vue-i18n",
|
|
@@ -2837,36 +2841,36 @@ async function ol(e, t) {
|
|
|
2837
2841
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2838
2842
|
}, (a) => {
|
|
2839
2843
|
$n = a, a.on.visitComponentTree(({ componentInstance: o, treeNode: i }) => {
|
|
2840
|
-
|
|
2844
|
+
ol(o, i, t);
|
|
2841
2845
|
}), a.on.inspectComponent(({ componentInstance: o, instanceData: i }) => {
|
|
2842
2846
|
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__));
|
|
2843
2847
|
}), a.addInspector({
|
|
2844
2848
|
id: "vue-i18n-resource-inspector",
|
|
2845
2849
|
label: yn["vue-i18n-resource-inspector"],
|
|
2846
2850
|
icon: "language",
|
|
2847
|
-
treeFilterPlaceholder:
|
|
2851
|
+
treeFilterPlaceholder: rl["vue-i18n-resource-inspector"]
|
|
2848
2852
|
}), a.on.getInspectorTree((o) => {
|
|
2849
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2853
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && fl(o, t);
|
|
2850
2854
|
});
|
|
2851
2855
|
const s = /* @__PURE__ */ new Map();
|
|
2852
2856
|
a.on.getInspectorState(async (o) => {
|
|
2853
2857
|
if (o.app === e && o.inspectorId === "vue-i18n-resource-inspector")
|
|
2854
|
-
if (a.unhighlightElement(),
|
|
2858
|
+
if (a.unhighlightElement(), dl(o, t), o.nodeId === "global") {
|
|
2855
2859
|
if (!s.has(o.app)) {
|
|
2856
2860
|
const [i] = await a.getComponentInstances(o.app);
|
|
2857
2861
|
s.set(o.app, i);
|
|
2858
2862
|
}
|
|
2859
2863
|
a.highlightElement(s.get(o.app));
|
|
2860
2864
|
} else {
|
|
2861
|
-
const i =
|
|
2865
|
+
const i = _l(o.nodeId, t);
|
|
2862
2866
|
i && a.highlightElement(i);
|
|
2863
2867
|
}
|
|
2864
2868
|
}), a.on.editInspectorState((o) => {
|
|
2865
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2869
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && hl(o, t);
|
|
2866
2870
|
}), a.addTimelineLayer({
|
|
2867
2871
|
id: "vue-i18n-timeline",
|
|
2868
2872
|
label: yn["vue-i18n-timeline"],
|
|
2869
|
-
color:
|
|
2873
|
+
color: al["vue-i18n-timeline"]
|
|
2870
2874
|
}), n(!0);
|
|
2871
2875
|
});
|
|
2872
2876
|
} catch {
|
|
@@ -2877,7 +2881,7 @@ async function ol(e, t) {
|
|
|
2877
2881
|
function es(e) {
|
|
2878
2882
|
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
2879
2883
|
}
|
|
2880
|
-
function
|
|
2884
|
+
function ol(e, t, n) {
|
|
2881
2885
|
const r = n.mode === "composition" ? n.global : n.global.__composer;
|
|
2882
2886
|
if (e && e.vnode.el && e.vnode.el.__VUE_I18N__ && e.vnode.el.__VUE_I18N__ !== r) {
|
|
2883
2887
|
const a = {
|
|
@@ -2931,30 +2935,30 @@ function lr(e) {
|
|
|
2931
2935
|
const t = {};
|
|
2932
2936
|
return Object.keys(e).forEach((n) => {
|
|
2933
2937
|
const r = e[n];
|
|
2934
|
-
q(r) && "source" in r ? t[n] =
|
|
2938
|
+
q(r) && "source" in r ? t[n] = ul(r) : Ee(r) && r.loc && r.loc.source ? t[n] = r.loc.source : G(r) ? t[n] = lr(r) : t[n] = r;
|
|
2935
2939
|
}), t;
|
|
2936
2940
|
}
|
|
2937
|
-
const
|
|
2941
|
+
const il = {
|
|
2938
2942
|
"<": "<",
|
|
2939
2943
|
">": ">",
|
|
2940
2944
|
'"': """,
|
|
2941
2945
|
"&": "&"
|
|
2942
2946
|
};
|
|
2947
|
+
function ll(e) {
|
|
2948
|
+
return e.replace(/[<>"&]/g, cl);
|
|
2949
|
+
}
|
|
2943
2950
|
function cl(e) {
|
|
2944
|
-
return e
|
|
2951
|
+
return il[e] || e;
|
|
2945
2952
|
}
|
|
2946
2953
|
function ul(e) {
|
|
2947
|
-
return ll[e] || e;
|
|
2948
|
-
}
|
|
2949
|
-
function fl(e) {
|
|
2950
2954
|
return {
|
|
2951
2955
|
_custom: {
|
|
2952
2956
|
type: "function",
|
|
2953
|
-
display: `<span>ƒ</span> ${e.source ? `("${
|
|
2957
|
+
display: `<span>ƒ</span> ${e.source ? `("${ll(e.source)}")` : "(?)"}`
|
|
2954
2958
|
}
|
|
2955
2959
|
};
|
|
2956
2960
|
}
|
|
2957
|
-
function
|
|
2961
|
+
function fl(e, t) {
|
|
2958
2962
|
e.rootNodes.push({
|
|
2959
2963
|
id: "global",
|
|
2960
2964
|
label: "Global Scope"
|
|
@@ -2968,7 +2972,7 @@ function _l(e, t) {
|
|
|
2968
2972
|
});
|
|
2969
2973
|
}
|
|
2970
2974
|
}
|
|
2971
|
-
function
|
|
2975
|
+
function _l(e, t) {
|
|
2972
2976
|
let n = null;
|
|
2973
2977
|
if (e !== "global") {
|
|
2974
2978
|
for (const [r, a] of t.__instances.entries())
|
|
@@ -2987,11 +2991,11 @@ function ts(e, t) {
|
|
|
2987
2991
|
return n ? t.mode === "composition" ? n : n.__composer : null;
|
|
2988
2992
|
}
|
|
2989
2993
|
}
|
|
2990
|
-
function
|
|
2994
|
+
function dl(e, t) {
|
|
2991
2995
|
const n = ts(e.nodeId, t);
|
|
2992
|
-
return n && (e.state =
|
|
2996
|
+
return n && (e.state = ml(n)), null;
|
|
2993
2997
|
}
|
|
2994
|
-
function
|
|
2998
|
+
function ml(e) {
|
|
2995
2999
|
const t = {}, n = "Locale related info", r = [
|
|
2996
3000
|
{
|
|
2997
3001
|
type: n,
|
|
@@ -3050,7 +3054,7 @@ function hl(e) {
|
|
|
3050
3054
|
}
|
|
3051
3055
|
return t;
|
|
3052
3056
|
}
|
|
3053
|
-
function
|
|
3057
|
+
function Rt(e, t) {
|
|
3054
3058
|
if ($n) {
|
|
3055
3059
|
let n;
|
|
3056
3060
|
t && "groupId" in t && (n = t.groupId, delete t.groupId), $n.addTimelineEvent({
|
|
@@ -3066,15 +3070,15 @@ function Dt(e, t) {
|
|
|
3066
3070
|
});
|
|
3067
3071
|
}
|
|
3068
3072
|
}
|
|
3069
|
-
function
|
|
3073
|
+
function hl(e, t) {
|
|
3070
3074
|
const n = ts(e.nodeId, t);
|
|
3071
3075
|
if (n) {
|
|
3072
3076
|
const [r] = e.path;
|
|
3073
3077
|
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);
|
|
3074
3078
|
}
|
|
3075
3079
|
}
|
|
3076
|
-
function
|
|
3077
|
-
const t = I(e.locale) ? e.locale :
|
|
3080
|
+
function gl(e) {
|
|
3081
|
+
const t = I(e.locale) ? e.locale : Lt, 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;
|
|
3078
3082
|
let A = e.messages;
|
|
3079
3083
|
if (V(e.sharedMessages)) {
|
|
3080
3084
|
const O = e.sharedMessages;
|
|
@@ -3109,7 +3113,7 @@ function pl(e) {
|
|
|
3109
3113
|
};
|
|
3110
3114
|
}
|
|
3111
3115
|
function Wn(e = {}) {
|
|
3112
|
-
const t = ir(
|
|
3116
|
+
const t = ir(gl(e)), { __extender: n } = e, r = {
|
|
3113
3117
|
// id
|
|
3114
3118
|
id: t.id,
|
|
3115
3119
|
// locale
|
|
@@ -3274,13 +3278,13 @@ function Wn(e = {}) {
|
|
|
3274
3278
|
s[ze] && s[ze](a);
|
|
3275
3279
|
}, r.__disableEmitter = () => {
|
|
3276
3280
|
const a = t;
|
|
3277
|
-
a[
|
|
3281
|
+
a[wt] && a[wt]();
|
|
3278
3282
|
}), r;
|
|
3279
3283
|
}
|
|
3280
|
-
function
|
|
3284
|
+
function pl(e, t, n) {
|
|
3281
3285
|
return {
|
|
3282
3286
|
beforeCreate() {
|
|
3283
|
-
const r =
|
|
3287
|
+
const r = Nt();
|
|
3284
3288
|
if (!r)
|
|
3285
3289
|
throw de(X.UNEXPECTED_ERROR);
|
|
3286
3290
|
const a = this.$options;
|
|
@@ -3315,15 +3319,15 @@ function El(e, t, n) {
|
|
|
3315
3319
|
const r = this.$i18n;
|
|
3316
3320
|
this.$el.__VUE_I18N__ = r.__composer;
|
|
3317
3321
|
const a = this.__v_emitter = tr();
|
|
3318
|
-
r.__enableEmitter && r.__enableEmitter(a), a.on("*",
|
|
3322
|
+
r.__enableEmitter && r.__enableEmitter(a), a.on("*", Rt);
|
|
3319
3323
|
}
|
|
3320
3324
|
},
|
|
3321
3325
|
unmounted() {
|
|
3322
|
-
const r =
|
|
3326
|
+
const r = Nt();
|
|
3323
3327
|
if (!r)
|
|
3324
3328
|
throw de(X.UNEXPECTED_ERROR);
|
|
3325
3329
|
const a = this.$i18n;
|
|
3326
|
-
process.env.NODE_ENV !== "production" && this.$el && this.$el.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*",
|
|
3330
|
+
process.env.NODE_ENV !== "production" && this.$el && this.$el.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", Rt), 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;
|
|
3327
3331
|
}
|
|
3328
3332
|
};
|
|
3329
3333
|
}
|
|
@@ -3353,7 +3357,7 @@ const cr = {
|
|
|
3353
3357
|
type: Object
|
|
3354
3358
|
}
|
|
3355
3359
|
};
|
|
3356
|
-
function
|
|
3360
|
+
function El({ slots: e }, t) {
|
|
3357
3361
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, a) => [
|
|
3358
3362
|
...r,
|
|
3359
3363
|
// prettier-ignore
|
|
@@ -3366,7 +3370,7 @@ function bl({ slots: e }, t) {
|
|
|
3366
3370
|
function ns() {
|
|
3367
3371
|
return he;
|
|
3368
3372
|
}
|
|
3369
|
-
const
|
|
3373
|
+
const bl = /* @__PURE__ */ Jn({
|
|
3370
3374
|
/* eslint-disable */
|
|
3371
3375
|
name: "i18n-t",
|
|
3372
3376
|
props: ie({
|
|
@@ -3389,12 +3393,12 @@ const Sl = /* @__PURE__ */ Jn({
|
|
|
3389
3393
|
return () => {
|
|
3390
3394
|
const s = Object.keys(n).filter((u) => u !== "_"), o = K();
|
|
3391
3395
|
e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = I(e.plural) ? +e.plural : e.plural);
|
|
3392
|
-
const i =
|
|
3396
|
+
const i = El(t, s), l = a[Bn](e.keypath, i, o), c = ie(K(), r), f = I(e.tag) || G(e.tag) ? e.tag : ns();
|
|
3393
3397
|
return Sa(f, c, l);
|
|
3394
3398
|
};
|
|
3395
3399
|
}
|
|
3396
|
-
}), Jr =
|
|
3397
|
-
function
|
|
3400
|
+
}), Jr = bl;
|
|
3401
|
+
function Sl(e) {
|
|
3398
3402
|
return re(e) && !I(e[0]);
|
|
3399
3403
|
}
|
|
3400
3404
|
function rs(e, t, n, r) {
|
|
@@ -3407,13 +3411,13 @@ function rs(e, t, n, r) {
|
|
|
3407
3411
|
let c = [o.key];
|
|
3408
3412
|
re(l) ? c = l.map((m, p) => {
|
|
3409
3413
|
const A = a[m.type], E = A ? A({ [m.type]: m.value, index: p, parts: l }) : [m.value];
|
|
3410
|
-
return
|
|
3414
|
+
return Sl(E) && (E[0].key = `${m.type}-${p}`), E;
|
|
3411
3415
|
}) : I(l) && (c = [l]);
|
|
3412
3416
|
const f = ie(K(), s), u = I(e.tag) || G(e.tag) ? e.tag : ns();
|
|
3413
3417
|
return Sa(u, f, c);
|
|
3414
3418
|
};
|
|
3415
3419
|
}
|
|
3416
|
-
const
|
|
3420
|
+
const vl = /* @__PURE__ */ Jn({
|
|
3417
3421
|
/* eslint-disable */
|
|
3418
3422
|
name: "i18n-n",
|
|
3419
3423
|
props: ie({
|
|
@@ -3437,8 +3441,8 @@ const Al = /* @__PURE__ */ Jn({
|
|
|
3437
3441
|
n[Vn](...r)
|
|
3438
3442
|
));
|
|
3439
3443
|
}
|
|
3440
|
-
}), zr =
|
|
3441
|
-
function
|
|
3444
|
+
}), zr = vl;
|
|
3445
|
+
function Al(e, t) {
|
|
3442
3446
|
const n = e;
|
|
3443
3447
|
if (e.mode === "composition")
|
|
3444
3448
|
return n.__getInstance(t) || e.global;
|
|
@@ -3447,13 +3451,13 @@ function yl(e, t) {
|
|
|
3447
3451
|
return r != null ? r.__composer : e.global.__composer;
|
|
3448
3452
|
}
|
|
3449
3453
|
}
|
|
3450
|
-
function
|
|
3454
|
+
function yl(e) {
|
|
3451
3455
|
const t = (o) => {
|
|
3452
|
-
process.env.NODE_ENV !== "production" && er(
|
|
3456
|
+
process.env.NODE_ENV !== "production" && er(kt(Ne.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
|
|
3453
3457
|
const { instance: i, value: l } = o;
|
|
3454
3458
|
if (!i || !i.$)
|
|
3455
3459
|
throw de(X.UNEXPECTED_ERROR);
|
|
3456
|
-
const c =
|
|
3460
|
+
const c = Al(e, i.$), f = Zr(l);
|
|
3457
3461
|
return [
|
|
3458
3462
|
Reflect.apply(c.t, c, [...ea(f)]),
|
|
3459
3463
|
c
|
|
@@ -3497,15 +3501,15 @@ function ea(e) {
|
|
|
3497
3501
|
const { path: t, locale: n, args: r, choice: a, plural: s } = e, o = {}, i = r || {};
|
|
3498
3502
|
return I(n) && (o.locale = n), ae(a) && (o.plural = a), ae(s) && (o.plural = s), [t, i, o];
|
|
3499
3503
|
}
|
|
3500
|
-
function
|
|
3504
|
+
function Nl(e, t, ...n) {
|
|
3501
3505
|
const r = V(n[0]) ? n[0] : {};
|
|
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",
|
|
3506
|
+
($(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", yl(t));
|
|
3503
3507
|
}
|
|
3504
|
-
const
|
|
3505
|
-
function
|
|
3508
|
+
const Tl = /* @__PURE__ */ Oe("global-vue-i18n");
|
|
3509
|
+
function Ol(e = {}) {
|
|
3506
3510
|
const t = __VUE_I18N_LEGACY_API__ && $(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
|
|
3507
|
-
process.env.NODE_ENV !== "production" && t && er(
|
|
3508
|
-
const n = $(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [a, s] =
|
|
3511
|
+
process.env.NODE_ENV !== "production" && t && er(kt(Ne.DEPRECATE_LEGACY_MODE));
|
|
3512
|
+
const n = $(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [a, s] = Il(e, t), o = /* @__PURE__ */ Oe(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
3509
3513
|
function i(u) {
|
|
3510
3514
|
return r.get(u) || null;
|
|
3511
3515
|
}
|
|
@@ -3527,12 +3531,12 @@ function Il(e = {}) {
|
|
|
3527
3531
|
f.__composerExtend = E.__composerExtend, f.__vueI18nExtend = E.__vueI18nExtend;
|
|
3528
3532
|
}
|
|
3529
3533
|
let p = null;
|
|
3530
|
-
!t && n && (p =
|
|
3534
|
+
!t && n && (p = Fl(u, f.global)), __VUE_I18N_FULL_INSTALL__ && Nl(u, f, ...m), __VUE_I18N_LEGACY_API__ && t && u.mixin(pl(s, s.__composer, f));
|
|
3531
3535
|
const A = u.unmount;
|
|
3532
3536
|
if (u.unmount = () => {
|
|
3533
3537
|
p && p(), f.dispose(), A();
|
|
3534
3538
|
}, process.env.NODE_ENV !== "production") {
|
|
3535
|
-
if (!await
|
|
3539
|
+
if (!await sl(u, f))
|
|
3536
3540
|
throw de(X.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
3537
3541
|
const C = tr();
|
|
3538
3542
|
if (t) {
|
|
@@ -3542,7 +3546,7 @@ function Il(e = {}) {
|
|
|
3542
3546
|
const h = s;
|
|
3543
3547
|
h[ze] && h[ze](C);
|
|
3544
3548
|
}
|
|
3545
|
-
C.on("*",
|
|
3549
|
+
C.on("*", Rt);
|
|
3546
3550
|
}
|
|
3547
3551
|
},
|
|
3548
3552
|
// global accessor
|
|
@@ -3564,17 +3568,17 @@ function Il(e = {}) {
|
|
|
3564
3568
|
return f;
|
|
3565
3569
|
}
|
|
3566
3570
|
function ur(e = {}) {
|
|
3567
|
-
const t =
|
|
3571
|
+
const t = Nt();
|
|
3568
3572
|
if (t == null)
|
|
3569
3573
|
throw de(X.MUST_BE_CALL_SETUP_TOP);
|
|
3570
3574
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
3571
3575
|
throw de(X.NOT_INSTALLED);
|
|
3572
|
-
const n =
|
|
3576
|
+
const n = Cl(t), r = wl(n), a = Ja(t), s = Ll(e, a);
|
|
3573
3577
|
if (s === "global")
|
|
3574
3578
|
return za(r, e, a), r;
|
|
3575
3579
|
if (s === "parent") {
|
|
3576
|
-
let l =
|
|
3577
|
-
return l == null && (process.env.NODE_ENV !== "production" && (
|
|
3580
|
+
let l = Dl(n, t, e.__useComponent);
|
|
3581
|
+
return l == null && (process.env.NODE_ENV !== "production" && (kt(Ne.NOT_FOUND_PARENT_SCOPE), void 0), l = r), l;
|
|
3578
3582
|
}
|
|
3579
3583
|
const o = n;
|
|
3580
3584
|
let i = o.__getInstance(t);
|
|
@@ -3584,28 +3588,28 @@ function ur(e = {}) {
|
|
|
3584
3588
|
}
|
|
3585
3589
|
return i;
|
|
3586
3590
|
}
|
|
3587
|
-
function
|
|
3588
|
-
const n =
|
|
3591
|
+
function Il(e, t) {
|
|
3592
|
+
const n = Ds(), r = __VUE_I18N_LEGACY_API__ && t ? n.run(() => Wn(e)) : n.run(() => ir(e));
|
|
3589
3593
|
if (r == null)
|
|
3590
3594
|
throw de(X.UNEXPECTED_ERROR);
|
|
3591
3595
|
return [n, r];
|
|
3592
3596
|
}
|
|
3593
|
-
function
|
|
3594
|
-
const t =
|
|
3597
|
+
function Cl(e) {
|
|
3598
|
+
const t = Fs(e.isCE ? Tl : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
3595
3599
|
if (!t)
|
|
3596
3600
|
throw de(e.isCE ? X.NOT_INSTALLED_WITH_PROVIDE : X.UNEXPECTED_ERROR);
|
|
3597
3601
|
return t;
|
|
3598
3602
|
}
|
|
3599
|
-
function
|
|
3603
|
+
function Ll(e, t) {
|
|
3600
3604
|
return Qt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
3601
3605
|
}
|
|
3602
|
-
function
|
|
3606
|
+
function wl(e) {
|
|
3603
3607
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
3604
3608
|
}
|
|
3605
|
-
function
|
|
3609
|
+
function Dl(e, t, n = !1) {
|
|
3606
3610
|
let r = null;
|
|
3607
3611
|
const a = t.root;
|
|
3608
|
-
let s =
|
|
3612
|
+
let s = Rl(t, n);
|
|
3609
3613
|
for (; s != null; ) {
|
|
3610
3614
|
const o = e;
|
|
3611
3615
|
if (e.mode === "composition")
|
|
@@ -3620,36 +3624,36 @@ function Rl(e, t, n = !1) {
|
|
|
3620
3624
|
}
|
|
3621
3625
|
return r;
|
|
3622
3626
|
}
|
|
3623
|
-
function
|
|
3627
|
+
function Rl(e, t = !1) {
|
|
3624
3628
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
3625
3629
|
}
|
|
3626
3630
|
function kl(e, t, n) {
|
|
3627
3631
|
let r = null;
|
|
3628
|
-
|
|
3632
|
+
Ms(() => {
|
|
3629
3633
|
if (process.env.NODE_ENV !== "production" && t.vnode.el) {
|
|
3630
3634
|
t.vnode.el.__VUE_I18N__ = n, r = tr();
|
|
3631
3635
|
const a = n;
|
|
3632
|
-
a[ze] && a[ze](r), r.on("*",
|
|
3636
|
+
a[ze] && a[ze](r), r.on("*", Rt);
|
|
3633
3637
|
}
|
|
3634
|
-
}, t),
|
|
3638
|
+
}, t), Us(() => {
|
|
3635
3639
|
const a = n;
|
|
3636
|
-
process.env.NODE_ENV !== "production" && t.vnode.el && t.vnode.el.__VUE_I18N__ && (r && r.off("*",
|
|
3640
|
+
process.env.NODE_ENV !== "production" && t.vnode.el && t.vnode.el.__VUE_I18N__ && (r && r.off("*", Rt), a[wt] && a[wt](), delete t.vnode.el.__VUE_I18N__), e.__deleteInstance(t);
|
|
3637
3641
|
const s = a[Gn];
|
|
3638
3642
|
s && (s(), delete a[Gn]);
|
|
3639
3643
|
}, t);
|
|
3640
3644
|
}
|
|
3641
|
-
const
|
|
3645
|
+
const Pl = [
|
|
3642
3646
|
"locale",
|
|
3643
3647
|
"fallbackLocale",
|
|
3644
3648
|
"availableLocales"
|
|
3645
3649
|
], ta = ["t", "rt", "d", "n", "tm", "te"];
|
|
3646
|
-
function
|
|
3650
|
+
function Fl(e, t) {
|
|
3647
3651
|
const n = /* @__PURE__ */ Object.create(null);
|
|
3648
|
-
return
|
|
3652
|
+
return Pl.forEach((a) => {
|
|
3649
3653
|
const s = Object.getOwnPropertyDescriptor(t, a);
|
|
3650
3654
|
if (!s)
|
|
3651
3655
|
throw de(X.UNEXPECTED_ERROR);
|
|
3652
|
-
const o =
|
|
3656
|
+
const o = Ps(s.value) ? {
|
|
3653
3657
|
get() {
|
|
3654
3658
|
return s.value.value;
|
|
3655
3659
|
},
|
|
@@ -3674,7 +3678,7 @@ function Ml(e, t) {
|
|
|
3674
3678
|
});
|
|
3675
3679
|
};
|
|
3676
3680
|
}
|
|
3677
|
-
const
|
|
3681
|
+
const Ml = /* @__PURE__ */ Jn({
|
|
3678
3682
|
/* eslint-disable */
|
|
3679
3683
|
name: "i18n-d",
|
|
3680
3684
|
props: ie({
|
|
@@ -3698,17 +3702,17 @@ const Ul = /* @__PURE__ */ Jn({
|
|
|
3698
3702
|
n[xn](...r)
|
|
3699
3703
|
));
|
|
3700
3704
|
}
|
|
3701
|
-
}), na =
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3705
|
+
}), na = Ml;
|
|
3706
|
+
zi();
|
|
3707
|
+
Ai(ei);
|
|
3708
|
+
yi(pi);
|
|
3709
|
+
Ni(Fa);
|
|
3706
3710
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3707
3711
|
const e = je();
|
|
3708
|
-
e.__INTLIFY__ = !0,
|
|
3712
|
+
e.__INTLIFY__ = !0, ti(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
3709
3713
|
}
|
|
3710
3714
|
process.env.NODE_ENV;
|
|
3711
|
-
const as =
|
|
3715
|
+
const as = Ol({
|
|
3712
3716
|
legacy: !1,
|
|
3713
3717
|
locale: "zh",
|
|
3714
3718
|
//默认显示的语言
|
|
@@ -3725,21 +3729,21 @@ const as = Il({
|
|
|
3725
3729
|
silentFallbackWarn: !0,
|
|
3726
3730
|
fallbackWarn: !1
|
|
3727
3731
|
}), Ke = as.global;
|
|
3728
|
-
async function
|
|
3732
|
+
async function Ul(e, t) {
|
|
3729
3733
|
const n = await t(e);
|
|
3730
3734
|
Ke.setLocaleMessage(e, n), Ke.locale && Ke.locale.value !== void 0 ? Ke.locale.value = e : Ke.locale = e;
|
|
3731
3735
|
}
|
|
3732
3736
|
const nt = "__system:language__", rt = "zh";
|
|
3733
|
-
function
|
|
3737
|
+
function Bl() {
|
|
3734
3738
|
return (window.navigator.language || navigator.browserLanguage || navigator.userLanguage || "").toLowerCase().trim();
|
|
3735
3739
|
}
|
|
3736
|
-
function
|
|
3740
|
+
function xl(e) {
|
|
3737
3741
|
return e ? e.toLowerCase().trim() : "";
|
|
3738
3742
|
}
|
|
3739
|
-
const Pt =
|
|
3743
|
+
const Pt = De("cloudSdkLanguageStore", {
|
|
3740
3744
|
state: () => ({
|
|
3741
3745
|
languageDefault: rt,
|
|
3742
|
-
languageName:
|
|
3746
|
+
languageName: P.localGet(nt) || rt,
|
|
3743
3747
|
/**
|
|
3744
3748
|
* 语言类型
|
|
3745
3749
|
*/
|
|
@@ -3757,25 +3761,25 @@ const Pt = Be("cloudSdkLanguageStore", {
|
|
|
3757
3761
|
}),
|
|
3758
3762
|
getters: {
|
|
3759
3763
|
languageSelect: (e) => {
|
|
3760
|
-
let t = [];
|
|
3761
|
-
|
|
3764
|
+
let t = [], n = e.languageList;
|
|
3765
|
+
for (let r in n)
|
|
3762
3766
|
t.push({
|
|
3763
|
-
label: r,
|
|
3764
|
-
value:
|
|
3767
|
+
label: n[r],
|
|
3768
|
+
value: r
|
|
3765
3769
|
});
|
|
3766
|
-
|
|
3770
|
+
return t;
|
|
3767
3771
|
}
|
|
3768
3772
|
},
|
|
3769
3773
|
actions: {
|
|
3770
3774
|
// 初始化
|
|
3771
3775
|
async init() {
|
|
3772
|
-
let e =
|
|
3776
|
+
let e = Bl() || rt;
|
|
3773
3777
|
e = localStorage.getItem(nt) || e;
|
|
3774
3778
|
const t = cvUtils.urlGetParameterAll();
|
|
3775
|
-
t.language && (e = t.language), e =
|
|
3779
|
+
t.language && (e = t.language), e = xl(e), Object.keys(this.languageList).includes(e) ? this.languageName = e === "zh-cn" ? "zh" : e : this.languageName = rt, localStorage.setItem(nt, this.languageName);
|
|
3776
3780
|
},
|
|
3777
3781
|
async clear_cache() {
|
|
3778
|
-
|
|
3782
|
+
P.localSet(nt, rt);
|
|
3779
3783
|
},
|
|
3780
3784
|
/**
|
|
3781
3785
|
* 默认语言
|
|
@@ -3803,31 +3807,31 @@ const Pt = Be("cloudSdkLanguageStore", {
|
|
|
3803
3807
|
* @param silence
|
|
3804
3808
|
*/
|
|
3805
3809
|
SA_LANGUAGE_SET(e) {
|
|
3806
|
-
this.languageName = e,
|
|
3810
|
+
this.languageName = e, P.localSet(nt, e), Ke.locale.value = e;
|
|
3807
3811
|
}
|
|
3808
3812
|
}
|
|
3809
|
-
}), ra = "__system:themes__",
|
|
3813
|
+
}), ra = "__system:themes__", Vl = "light", Nn = "__system:layoutSidebarState__", Gl = "on", aa = "__system:layoutNavTabs__", $l = "on", Wl = "__system:layoutWatermark__", Yl = "on";
|
|
3810
3814
|
function sa() {
|
|
3811
3815
|
let e = typeof window < "u" && window.navigator.userAgent.toLowerCase();
|
|
3812
3816
|
return `${e.match(/Chrome/i)}` == "chrome" ? "chrome" : `${e.match(/Webkit/i)}` == "webkit" ? "webkit" : null;
|
|
3813
3817
|
}
|
|
3814
|
-
const
|
|
3818
|
+
const Be = De("cloudSdkThemesStore", {
|
|
3815
3819
|
state: () => ({
|
|
3816
3820
|
layoutName: "",
|
|
3817
3821
|
/**
|
|
3818
3822
|
* 上边切换卡
|
|
3819
3823
|
*/
|
|
3820
|
-
layoutNavTabs:
|
|
3824
|
+
layoutNavTabs: P.localGet(aa) || $l,
|
|
3821
3825
|
/**
|
|
3822
3826
|
* 左边侧栏
|
|
3823
3827
|
*/
|
|
3824
|
-
layoutSidebarState:
|
|
3828
|
+
layoutSidebarState: P.localGet(Nn) || Gl,
|
|
3825
3829
|
/**
|
|
3826
3830
|
* 主题皮肤
|
|
3827
3831
|
* auto|light|dark
|
|
3828
3832
|
* 自动生成
|
|
3829
3833
|
*/
|
|
3830
|
-
themesName:
|
|
3834
|
+
themesName: P.localGet(ra) || Vl,
|
|
3831
3835
|
themesList: [
|
|
3832
3836
|
{ name: "跟随系统", value: "auto" },
|
|
3833
3837
|
{ name: "明亮", value: "light" },
|
|
@@ -3836,7 +3840,7 @@ const Ue = Be("cloudSdkThemesStore", {
|
|
|
3836
3840
|
/**
|
|
3837
3841
|
* 水印
|
|
3838
3842
|
*/
|
|
3839
|
-
watermarkState:
|
|
3843
|
+
watermarkState: P.localGet(Wl) || Yl
|
|
3840
3844
|
}),
|
|
3841
3845
|
actions: {
|
|
3842
3846
|
async init() {
|
|
@@ -3852,19 +3856,19 @@ const Ue = Be("cloudSdkThemesStore", {
|
|
|
3852
3856
|
SA_LAYOUT_WATERMARK_SET(e) {
|
|
3853
3857
|
this.watermarkState = e;
|
|
3854
3858
|
const t = document.querySelector("html");
|
|
3855
|
-
t.classList.remove(e ? "hideWatermark" : "openWatermark"), t.classList.add(e ? "openWatermark" : "hideWatermark"),
|
|
3859
|
+
t.classList.remove(e ? "hideWatermark" : "openWatermark"), t.classList.add(e ? "openWatermark" : "hideWatermark"), P.localSet(Nn, e);
|
|
3856
3860
|
},
|
|
3857
3861
|
// 设置左边侧栏
|
|
3858
3862
|
SA_LAYOUT_SLIDEBAR_SET(e) {
|
|
3859
3863
|
this.layoutSidebarState = e;
|
|
3860
3864
|
const t = document.querySelector("html");
|
|
3861
|
-
t.classList.remove(e == "off" ? "openSidebar" : "hideSidebar"), t.classList.add(e == "on" ? "openSidebar" : "hideSidebar"),
|
|
3865
|
+
t.classList.remove(e == "off" ? "openSidebar" : "hideSidebar"), t.classList.add(e == "on" ? "openSidebar" : "hideSidebar"), P.localSet(Nn, e);
|
|
3862
3866
|
},
|
|
3863
3867
|
// 设置上边nav
|
|
3864
3868
|
SA_LAYOUT_NAVTABS_SET(e) {
|
|
3865
3869
|
me.__POWERED_BY_QIANKUN__ && (e = "off"), this.layoutNavTabs = e;
|
|
3866
3870
|
const t = document.querySelector("html");
|
|
3867
|
-
t.classList.remove(e == "off" ? "openNavtabs" : "hideNavtabs"), t.classList.add(e == "on" ? "openNavtabs" : "hideNavtabs"), me.__POWERED_BY_QIANKUN__ ||
|
|
3871
|
+
t.classList.remove(e == "off" ? "openNavtabs" : "hideNavtabs"), t.classList.add(e == "on" ? "openNavtabs" : "hideNavtabs"), me.__POWERED_BY_QIANKUN__ || P.localSet(aa, e);
|
|
3868
3872
|
},
|
|
3869
3873
|
/**
|
|
3870
3874
|
* 设置主题
|
|
@@ -3900,7 +3904,7 @@ const Ue = Be("cloudSdkThemesStore", {
|
|
|
3900
3904
|
break;
|
|
3901
3905
|
}
|
|
3902
3906
|
const n = document.querySelector("html");
|
|
3903
|
-
n.classList.remove(this.themesName == "dark" ? "light" : "dark"), n.classList.add(this.themesName),
|
|
3907
|
+
n.classList.remove(this.themesName == "dark" ? "light" : "dark"), n.classList.add(this.themesName), P.localSet(ra, this.themesName);
|
|
3904
3908
|
}
|
|
3905
3909
|
}
|
|
3906
3910
|
});
|
|
@@ -3910,10 +3914,10 @@ function ss() {
|
|
|
3910
3914
|
function os() {
|
|
3911
3915
|
return window.innerHeight;
|
|
3912
3916
|
}
|
|
3913
|
-
function
|
|
3917
|
+
function Hl() {
|
|
3914
3918
|
return ss() - os() > 50 ? "landscape" : "portrait";
|
|
3915
3919
|
}
|
|
3916
|
-
const Gt = ss(),
|
|
3920
|
+
const Gt = ss(), Kl = os(), Tn = Hl(), is = De("cloudSdkWindowStore", {
|
|
3917
3921
|
state: () => ({
|
|
3918
3922
|
// 窗口是否激活
|
|
3919
3923
|
windowActive: !0,
|
|
@@ -3924,7 +3928,7 @@ const Gt = ss(), jl = os(), Tn = Kl(), is = Be("cloudSdkWindowStore", {
|
|
|
3924
3928
|
// 浏览器尺寸信息
|
|
3925
3929
|
windowWidth: Gt,
|
|
3926
3930
|
// 窗口宽度
|
|
3927
|
-
windowHeight:
|
|
3931
|
+
windowHeight: Kl,
|
|
3928
3932
|
// 浏览器窗口方向
|
|
3929
3933
|
windowOrientation: Tn,
|
|
3930
3934
|
windowLandscape: Tn === "landscape",
|
|
@@ -3970,7 +3974,7 @@ const Gt = ss(), jl = os(), Tn = Kl(), is = Be("cloudSdkWindowStore", {
|
|
|
3970
3974
|
return this.winSizeName = this.SA_GET_SIZE_TYPE(), this.winSizeName;
|
|
3971
3975
|
}
|
|
3972
3976
|
}
|
|
3973
|
-
}),
|
|
3977
|
+
}), bt = "__system:keyboardConf__", On = "__syCacheApiFlag__", In = "__syCacheApiAuth__", oa = "__syCacheApiCode__", ia = "__syCacheApiKey__", la = "__syCacheSystemConfig__", fr = De("cloudSdkSystemStore", {
|
|
3974
3978
|
state: () => ({
|
|
3975
3979
|
// ServerUrl
|
|
3976
3980
|
cacheServerUrl: "",
|
|
@@ -4017,9 +4021,8 @@ const Gt = ss(), jl = os(), Tn = Kl(), is = Be("cloudSdkWindowStore", {
|
|
|
4017
4021
|
await gbIdbObj.idbSetItem("clientCacheVersion", this.clientCacheVersion), t !== this.clientCacheVersion ? await this.clear_cache() : await this.cache_read(), await this.__load_api_flag(), await this.__load_api_auth(), await this.__load_api_code(), await this.__load_api_key(), await this.__load_system_config(), this.SA_KEYBOARD_SET();
|
|
4018
4022
|
},
|
|
4019
4023
|
async clear_cache() {
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
D.localSet(Et, e), D.localDel(On), D.localDel(In);
|
|
4024
|
+
const e = P.localGet(bt);
|
|
4025
|
+
P.localSet(bt, e), await gbIdbObj.idbDelItem("clearCache"), await gbIdbObj.idbDelItem("clientCacheVersion"), await gbIdbObj.idbDelItem(On), await gbIdbObj.idbDelItem(In);
|
|
4023
4026
|
},
|
|
4024
4027
|
async cache_read() {
|
|
4025
4028
|
this.clientId = await gbIdbObj.idbGetString("clientId"), this.cacheServerUrl = await gbIdbObj.idbGetString("cacheServerUrl"), this.cacheServerUrl && (window.systemInfo.apiUrl = this.cacheServerUrl);
|
|
@@ -4067,10 +4070,10 @@ const Gt = ss(), jl = os(), Tn = Kl(), is = Be("cloudSdkWindowStore", {
|
|
|
4067
4070
|
*/
|
|
4068
4071
|
SA_KEYBOARD_SET(e) {
|
|
4069
4072
|
return new Promise((t) => {
|
|
4070
|
-
let n =
|
|
4071
|
-
n || (
|
|
4073
|
+
let n = P.localGet(bt);
|
|
4074
|
+
n || (P.localSet(bt, P.localGet("__keyboard:data__")), P.localDel("__keyboard:data__"));
|
|
4072
4075
|
const r = e || n || {};
|
|
4073
|
-
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",
|
|
4076
|
+
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", P.localSet(bt, r), this.cacheKeyboard = r, cvUtils.__cc_isElectron, t(r);
|
|
4074
4077
|
});
|
|
4075
4078
|
},
|
|
4076
4079
|
/**
|
|
@@ -4082,7 +4085,7 @@ const Gt = ss(), jl = os(), Tn = Kl(), is = Be("cloudSdkWindowStore", {
|
|
|
4082
4085
|
if (!cvUtils.strExists(e, "."))
|
|
4083
4086
|
return;
|
|
4084
4087
|
let n = "__ip" + e.substring(0, 1) + "__";
|
|
4085
|
-
const r =
|
|
4088
|
+
const r = P.localSet(n);
|
|
4086
4089
|
let a = cvUtils.strGetMiddle(e, "", "."), s = r[a] || e;
|
|
4087
4090
|
if (typeof s == "object") {
|
|
4088
4091
|
typeof t == "function" && t(s);
|
|
@@ -4092,7 +4095,7 @@ const Gt = ss(), jl = os(), Tn = Kl(), is = Be("cloudSdkWindowStore", {
|
|
|
4092
4095
|
keyId: s || e
|
|
4093
4096
|
};
|
|
4094
4097
|
fe.setTimeout(8e3).flagGet("BASE_SYS_COMMON_SYS_INFO", { ip: e }).then(() => {
|
|
4095
|
-
|
|
4098
|
+
P.localSet(n, o), typeof t == "function" && t(s);
|
|
4096
4099
|
});
|
|
4097
4100
|
}
|
|
4098
4101
|
}
|
|
@@ -4100,7 +4103,7 @@ const Gt = ss(), jl = os(), Tn = Kl(), is = Be("cloudSdkWindowStore", {
|
|
|
4100
4103
|
function Yn(e) {
|
|
4101
4104
|
return typeof e == "string" && e.trim() !== "" && e !== "undefined";
|
|
4102
4105
|
}
|
|
4103
|
-
const at = "syCacheAppInfo",
|
|
4106
|
+
const at = "syCacheAppInfo", Me = "syCacheAppToken", St = "syCacheAppJwt", vt = "syCacheAppRbac", ca = {
|
|
4104
4107
|
nickname: "",
|
|
4105
4108
|
staff_nickname: "",
|
|
4106
4109
|
id: 0,
|
|
@@ -4120,16 +4123,16 @@ const at = "syCacheAppInfo", ke = "syCacheAppToken", bt = "syCacheAppJwt", St =
|
|
|
4120
4123
|
account_avatar: "https://f.10yun.com/default/ucenter/avatar4.jpg",
|
|
4121
4124
|
account_avatar_cdn: "https://f.10yun.com/default/ucenter/avatar4.jpg",
|
|
4122
4125
|
business_name: ""
|
|
4123
|
-
}, Te =
|
|
4126
|
+
}, Te = De("cloudSdkAccountStore", {
|
|
4124
4127
|
state: () => ({
|
|
4125
4128
|
// staffId: 0,
|
|
4126
4129
|
account_nick: "",
|
|
4127
4130
|
// 权限
|
|
4128
4131
|
accountRbacData: [],
|
|
4129
4132
|
// 账号信息
|
|
4130
|
-
accountInfo:
|
|
4131
|
-
accountToken:
|
|
4132
|
-
accountJwt:
|
|
4133
|
+
accountInfo: P.localGet(at) || {},
|
|
4134
|
+
accountToken: P.localGet(Me) || "",
|
|
4135
|
+
accountJwt: P.localGet(St) || ""
|
|
4133
4136
|
}),
|
|
4134
4137
|
getters: {
|
|
4135
4138
|
cacheBizsId: (e) => {
|
|
@@ -4158,7 +4161,7 @@ const at = "syCacheAppInfo", ke = "syCacheAppToken", bt = "syCacheAppJwt", St =
|
|
|
4158
4161
|
actions: {
|
|
4159
4162
|
init() {
|
|
4160
4163
|
const e = cvUtils.urlGetParameterAll();
|
|
4161
|
-
e.token &&
|
|
4164
|
+
e.token && P.localSet("ACC_TOKEN_CACHE_KEY", e.token), this.SA_ACCOUNT_RBAC_REFRESH(), this.accountIsLogin ? this.SA_ACCOUNT_REFRESH() : this.SA_ACCOUNT_LOGOUT();
|
|
4162
4165
|
},
|
|
4163
4166
|
async clear_cache() {
|
|
4164
4167
|
this.ACCOUNT_SET_PREV();
|
|
@@ -4166,7 +4169,7 @@ const at = "syCacheAppInfo", ke = "syCacheAppToken", bt = "syCacheAppJwt", St =
|
|
|
4166
4169
|
async clear_all() {
|
|
4167
4170
|
},
|
|
4168
4171
|
SA_ACCOUNT_IS_LOGGED() {
|
|
4169
|
-
return this.accountToken =
|
|
4172
|
+
return this.accountToken = P.localGet(Me) || "", !!Yn(this.accountToken);
|
|
4170
4173
|
},
|
|
4171
4174
|
SA_ACCOUNT_JWT_GET() {
|
|
4172
4175
|
return this.accountJwt || "";
|
|
@@ -4175,7 +4178,7 @@ const at = "syCacheAppInfo", ke = "syCacheAppToken", bt = "syCacheAppJwt", St =
|
|
|
4175
4178
|
return this.accountToken || "";
|
|
4176
4179
|
},
|
|
4177
4180
|
SA_ACCOUNT_TOKEN_SET(e) {
|
|
4178
|
-
this.accountToken = e,
|
|
4181
|
+
this.accountToken = e, P.localSet(Me, this.accountToken);
|
|
4179
4182
|
},
|
|
4180
4183
|
/**
|
|
4181
4184
|
* 获取用户信息(并保存)
|
|
@@ -4183,7 +4186,7 @@ const at = "syCacheAppInfo", ke = "syCacheAppToken", bt = "syCacheAppJwt", St =
|
|
|
4183
4186
|
* @returns Object
|
|
4184
4187
|
*/
|
|
4185
4188
|
SA_ACCOUNT_INFO_GET() {
|
|
4186
|
-
return
|
|
4189
|
+
return P.localGet("accountInfo");
|
|
4187
4190
|
},
|
|
4188
4191
|
SA_ACCOUNT_INFO_REFRESH() {
|
|
4189
4192
|
return new Promise((e, t) => {
|
|
@@ -4205,28 +4208,28 @@ const at = "syCacheAppInfo", ke = "syCacheAppToken", bt = "syCacheAppJwt", St =
|
|
|
4205
4208
|
SA_ACCOUNT_INFO_SET(e) {
|
|
4206
4209
|
return new Promise(async (t) => {
|
|
4207
4210
|
const n = JSON.parse(JSON.stringify(e));
|
|
4208
|
-
this.accountInfo = this.SA_ACCOUNT_INFO_PARSE(n), this.accountToken = n.token_access, await gbIdbObj.idbSetItem("accountInfo", n),
|
|
4211
|
+
this.accountInfo = this.SA_ACCOUNT_INFO_PARSE(n), this.accountToken = n.token_access, await gbIdbObj.idbSetItem("accountInfo", n), P.localSet(at, this.accountInfo), t();
|
|
4209
4212
|
});
|
|
4210
4213
|
},
|
|
4211
4214
|
SA_ACCOUNT_GET_NICK() {
|
|
4212
4215
|
return this.account_nick;
|
|
4213
4216
|
},
|
|
4214
4217
|
SA_ACCOUNT_REFRESH() {
|
|
4215
|
-
this.accountInfo =
|
|
4218
|
+
this.accountInfo = P.localGet(at) || ca, this.accountToken = P.localGet(Me) || "", this.accountJwt = P.localGet(St) || "", fe.setDefHeaders({
|
|
4216
4219
|
syOpenAppToken: this.accountToken || "",
|
|
4217
4220
|
Authorization: "Bearer " + this.accountJwt || ""
|
|
4218
4221
|
});
|
|
4219
4222
|
},
|
|
4220
4223
|
// 登录
|
|
4221
4224
|
async SA_ACCOUNT_SIGNIN(e) {
|
|
4222
|
-
e = this.SA_ACCOUNT_INFO_PARSE(e),
|
|
4225
|
+
e = this.SA_ACCOUNT_INFO_PARSE(e), P.localSet(at, e), P.localSet(Me, e.token_access || ""), P.localSet(St, e.token_jwt || ""), P.localSet(vt, ""), this.SA_ACCOUNT_REFRESH(), await this.SA_ACCOUNT_RBAC_REFRESH(!0), gbIdbObj.idbSave(Me, e.token_access || ""), Ot().QK_SEND_LOGIN_MSG();
|
|
4223
4226
|
},
|
|
4224
4227
|
/**
|
|
4225
4228
|
* 登出(打开登录页面)
|
|
4226
4229
|
* @param appendFrom
|
|
4227
4230
|
*/
|
|
4228
4231
|
SA_ACCOUNT_LOGOUT() {
|
|
4229
|
-
this.ACCOUNT_SET_PREV(),
|
|
4232
|
+
this.ACCOUNT_SET_PREV(), P.sessionClear(), P.localSet(at, ""), P.localSet(Me, ""), P.localSet(St, ""), P.localSet(vt, ""), P.localDel(at), P.localDel(Me), P.localDel(St), P.localDel(vt), this.SA_ACCOUNT_REFRESH(), Ot().QK_SEND_LOGOUT_MSG();
|
|
4230
4233
|
},
|
|
4231
4234
|
/**
|
|
4232
4235
|
* @param {Boolean} isForce 是否强制刷新
|
|
@@ -4234,9 +4237,9 @@ const at = "syCacheAppInfo", ke = "syCacheAppToken", bt = "syCacheAppJwt", St =
|
|
|
4234
4237
|
async SA_ACCOUNT_RBAC_REFRESH(e) {
|
|
4235
4238
|
return e = e || !1, new Promise(async (t) => {
|
|
4236
4239
|
if (this.accountToken) {
|
|
4237
|
-
let n =
|
|
4240
|
+
let n = P.localGet(vt) || "";
|
|
4238
4241
|
e && n == "" ? await fe.flagGet("ORG_SYS_BASE_MYRBAC", {}).then((r) => {
|
|
4239
|
-
r.status == 100600 ? this.SA_ACCOUNT_LOGOUT() : r.status == 200 && (
|
|
4242
|
+
r.status == 100600 ? this.SA_ACCOUNT_LOGOUT() : r.status == 200 && (P.localSet(vt, r.data || ""), t(r.data || ""));
|
|
4240
4243
|
}).catch(() => {
|
|
4241
4244
|
t("");
|
|
4242
4245
|
}) : t(n);
|
|
@@ -4268,12 +4271,12 @@ function ls(e, t) {
|
|
|
4268
4271
|
name: r
|
|
4269
4272
|
};
|
|
4270
4273
|
}
|
|
4271
|
-
const
|
|
4274
|
+
const jl = {}, ql = jl, Xl = ql.VITE_SY_PRODUCT_SIGN;
|
|
4272
4275
|
function cs(e) {
|
|
4273
4276
|
let t = Object.prototype.toString.call(e);
|
|
4274
4277
|
if (t != "[object String]" && t != "[object Array]")
|
|
4275
4278
|
return !1;
|
|
4276
|
-
let n =
|
|
4279
|
+
let n = P.localGet("syCacheAppRbac") || "";
|
|
4277
4280
|
if (t == "[object String]")
|
|
4278
4281
|
return Kt(e, n);
|
|
4279
4282
|
if (t === "[object Array]") {
|
|
@@ -4287,48 +4290,20 @@ function cs(e) {
|
|
|
4287
4290
|
function Kt(e, t) {
|
|
4288
4291
|
if (e = e || "", e = e.trim(), e == "")
|
|
4289
4292
|
return !1;
|
|
4290
|
-
e.includes("@") || (e = `${
|
|
4291
|
-
let n = t ||
|
|
4293
|
+
e.includes("@") || (e = `${Xl}@${e}`);
|
|
4294
|
+
let n = t || P.localGet("syCacheAppRbac") || "";
|
|
4292
4295
|
return n = n.trim(), Yn(n) ? n == '"all@all"' || n == "all@all" ? !0 : n.split(",").map((a) => a.trim()).includes(e) : !1;
|
|
4293
4296
|
}
|
|
4294
|
-
const
|
|
4295
|
-
"org-business": "商家平台",
|
|
4296
|
-
"org-operator": "运营平台",
|
|
4297
|
-
"org-agent": "代理商平台",
|
|
4298
|
-
"org-admin": "超管平台"
|
|
4299
|
-
};
|
|
4300
|
-
let us = fa[Nt().syAppConnectRole] ? fa[Nt().syAppConnectRole] : "管理系统";
|
|
4301
|
-
const Jl = window.shiyunProductInfo || {
|
|
4302
|
-
system_type: us
|
|
4303
|
-
}, Zt = Be("cloudSdkProductStore", {
|
|
4297
|
+
const Zt = De("cloudSdkProductStore", {
|
|
4304
4298
|
state: () => ({
|
|
4305
|
-
|
|
4299
|
+
/**
|
|
4300
|
+
* 默认应用信息
|
|
4301
|
+
*/
|
|
4306
4302
|
defaultProductInfo: {
|
|
4307
|
-
|
|
4308
|
-
* 应用信息
|
|
4309
|
-
*/
|
|
4310
|
-
info_title: Nt().syProductTitle || "ShiyunProduct",
|
|
4303
|
+
info_title: Tt().syProductTitle || "ShiyunProduct",
|
|
4311
4304
|
info_logo: "",
|
|
4312
|
-
info_version: "v1.25.xxxx"
|
|
4305
|
+
info_version: "v1.25.xxxx"
|
|
4313
4306
|
// 版本
|
|
4314
|
-
/**
|
|
4315
|
-
* 平台信息
|
|
4316
|
-
*/
|
|
4317
|
-
platinfo_logo: "//10ui.cn/10yun-img/logo-nobg.png",
|
|
4318
|
-
// logo
|
|
4319
|
-
platinfo_login_bg: "",
|
|
4320
|
-
// 登录背景
|
|
4321
|
-
platinfo_brand: "shiyun",
|
|
4322
|
-
// 品牌
|
|
4323
|
-
platinfo_title: "十云",
|
|
4324
|
-
// 标题
|
|
4325
|
-
platinfo_short: "十云",
|
|
4326
|
-
/**
|
|
4327
|
-
*
|
|
4328
|
-
*/
|
|
4329
|
-
privacy_url: "//api.10yun.com/privacy.html",
|
|
4330
|
-
system_type: us
|
|
4331
|
-
// 后台系统类型
|
|
4332
4307
|
},
|
|
4333
4308
|
currMenuInfo: {},
|
|
4334
4309
|
// 菜单角标
|
|
@@ -4338,7 +4313,10 @@ const Jl = window.shiyunProductInfo || {
|
|
|
4338
4313
|
menuOriginal: []
|
|
4339
4314
|
}),
|
|
4340
4315
|
getters: {
|
|
4341
|
-
openProductInfo: (e) =>
|
|
4316
|
+
openProductInfo: (e) => {
|
|
4317
|
+
let t = window.shiyunProductInfo || {};
|
|
4318
|
+
return Object.assign({}, e.defaultProductInfo, t);
|
|
4319
|
+
},
|
|
4342
4320
|
// 当前展开
|
|
4343
4321
|
menuCurrOpeneds: (e) => e.menuOpeneds,
|
|
4344
4322
|
// 当前拥有
|
|
@@ -4373,7 +4351,7 @@ const Jl = window.shiyunProductInfo || {
|
|
|
4373
4351
|
}
|
|
4374
4352
|
return i;
|
|
4375
4353
|
}
|
|
4376
|
-
let n = JSON.parse(JSON.stringify(this.menuOriginal)), r =
|
|
4354
|
+
let n = JSON.parse(JSON.stringify(this.menuOriginal)), r = P.localGet("syCacheAppRbac") || "", a = t(n, r);
|
|
4377
4355
|
return this.menuOpeneds = e, this.menuOnly = a, a;
|
|
4378
4356
|
},
|
|
4379
4357
|
// 获取菜单
|
|
@@ -4381,38 +4359,38 @@ const Jl = window.shiyunProductInfo || {
|
|
|
4381
4359
|
return this.menuTree;
|
|
4382
4360
|
}
|
|
4383
4361
|
}
|
|
4384
|
-
}),
|
|
4362
|
+
}), Ql = [
|
|
4385
4363
|
{
|
|
4386
4364
|
meta: { title: "登录", isAlone: !0 },
|
|
4387
4365
|
isAlone: !0,
|
|
4388
4366
|
name: "login",
|
|
4389
4367
|
path: "/login",
|
|
4390
|
-
component: () => import("./login-
|
|
4368
|
+
component: () => import("./login-BX16RcPj.js")
|
|
4391
4369
|
}
|
|
4392
|
-
],
|
|
4370
|
+
], Jl = [
|
|
4393
4371
|
{
|
|
4394
4372
|
meta: { title: "不建议单独运行", isAlone: !0 },
|
|
4395
4373
|
isAlone: !0,
|
|
4396
4374
|
name: "alone_run",
|
|
4397
4375
|
path: "/alone_run",
|
|
4398
|
-
component: () => import("./alone_run-
|
|
4376
|
+
component: () => import("./alone_run-t8_0-4FT.js")
|
|
4399
4377
|
},
|
|
4400
4378
|
{
|
|
4401
4379
|
meta: { title: "错误", isAlone: !0 },
|
|
4402
4380
|
isAlone: !0,
|
|
4403
4381
|
name: "404",
|
|
4404
4382
|
path: "/:catchAll(.*)",
|
|
4405
|
-
component: () => import("./404-
|
|
4383
|
+
component: () => import("./404-BLkrv3w1.js")
|
|
4406
4384
|
}
|
|
4407
|
-
],
|
|
4385
|
+
], zl = [
|
|
4408
4386
|
{
|
|
4409
4387
|
meta: { title: "空页面", isAlone: !1 },
|
|
4410
4388
|
isAlone: !1,
|
|
4411
4389
|
name: "none",
|
|
4412
4390
|
path: "/none",
|
|
4413
|
-
component: () => import("./none-
|
|
4391
|
+
component: () => import("./none-Dalhv2Tk.js")
|
|
4414
4392
|
}
|
|
4415
|
-
], en =
|
|
4393
|
+
], en = De("cloudSdkPermissionStore", {
|
|
4416
4394
|
state: () => ({
|
|
4417
4395
|
originalRoutes: [],
|
|
4418
4396
|
whiteList: ["404", "login", "alone_run", "none"],
|
|
@@ -4420,7 +4398,7 @@ const Jl = window.shiyunProductInfo || {
|
|
|
4420
4398
|
// 窗口刷新
|
|
4421
4399
|
routeAlive: 0,
|
|
4422
4400
|
// 权限列表
|
|
4423
|
-
rbacLastStr:
|
|
4401
|
+
rbacLastStr: P.localGet("syCacheAppRbac") || "",
|
|
4424
4402
|
rbacArr: []
|
|
4425
4403
|
}),
|
|
4426
4404
|
actions: {
|
|
@@ -4441,7 +4419,7 @@ const Jl = window.shiyunProductInfo || {
|
|
|
4441
4419
|
* @param {*} router
|
|
4442
4420
|
*/
|
|
4443
4421
|
SA_PERMS_ROUTER_ADD(e, t) {
|
|
4444
|
-
t = t || "", t != "console_passport" && e.addRoute(...
|
|
4422
|
+
t = t || "", t != "console_passport" && e.addRoute(...Ql), e.addRoute(...Jl), e.addRoute(...zl);
|
|
4445
4423
|
},
|
|
4446
4424
|
/**
|
|
4447
4425
|
* 验证路由
|
|
@@ -4455,10 +4433,47 @@ const Jl = window.shiyunProductInfo || {
|
|
|
4455
4433
|
async SA_PERMS_REFRESH() {
|
|
4456
4434
|
}
|
|
4457
4435
|
}
|
|
4436
|
+
}), fa = {
|
|
4437
|
+
"org-business": "商家平台",
|
|
4438
|
+
"org-operator": "运营平台",
|
|
4439
|
+
"org-agent": "代理商平台",
|
|
4440
|
+
"org-admin": "超管平台"
|
|
4441
|
+
};
|
|
4442
|
+
let Zl = fa[Tt().syAppConnectRole] ? fa[Tt().syAppConnectRole] : "管理系统";
|
|
4443
|
+
const ec = De("cloudSdkApplicationStore", {
|
|
4444
|
+
state: () => ({
|
|
4445
|
+
/**
|
|
4446
|
+
* 平台信息
|
|
4447
|
+
*/
|
|
4448
|
+
defaultCaseInfo: {
|
|
4449
|
+
platinfo_logo: "//10ui.cn/10yun-img/logo-nobg.png",
|
|
4450
|
+
platinfo_version: "",
|
|
4451
|
+
platinfo_login_bg: "",
|
|
4452
|
+
// 登录背景
|
|
4453
|
+
platinfo_brand: "shiyun",
|
|
4454
|
+
// 品牌
|
|
4455
|
+
platinfo_title: "十云",
|
|
4456
|
+
// 标题
|
|
4457
|
+
platinfo_short: "十云",
|
|
4458
|
+
privacy_url: "//api.10yun.com/privacy.html",
|
|
4459
|
+
system_type: Zl
|
|
4460
|
+
// 后台系统类型
|
|
4461
|
+
}
|
|
4462
|
+
}),
|
|
4463
|
+
getters: {
|
|
4464
|
+
openCaseInfo: (e) => {
|
|
4465
|
+
let t = window.shiyunProductInfo || {};
|
|
4466
|
+
return Object.assign({}, e.defaultCaseInfo, t);
|
|
4467
|
+
}
|
|
4468
|
+
},
|
|
4469
|
+
actions: {
|
|
4470
|
+
async init() {
|
|
4471
|
+
}
|
|
4472
|
+
}
|
|
4458
4473
|
});
|
|
4459
4474
|
function tc() {
|
|
4460
4475
|
return new Promise(async (e) => {
|
|
4461
|
-
Pt().clear_cache(),
|
|
4476
|
+
Pt().clear_cache(), Be().clear_cache(), fr().clear_cache(), Te().clear_cache(), Zt().clear_cache(), window.gbIdbObj.idbSetItem("clear_cache", "handle").then((t) => {
|
|
4462
4477
|
e();
|
|
4463
4478
|
});
|
|
4464
4479
|
});
|
|
@@ -4466,10 +4481,10 @@ function tc() {
|
|
|
4466
4481
|
function nc() {
|
|
4467
4482
|
return {
|
|
4468
4483
|
computed: {
|
|
4469
|
-
...
|
|
4470
|
-
...
|
|
4471
|
-
...
|
|
4472
|
-
...
|
|
4484
|
+
...Le(Ot, ["qiankunExistState"]),
|
|
4485
|
+
...Le(Pt, ["languageName", "languageList", "languageSelect"]),
|
|
4486
|
+
...Le(Be, ["themesName", "themesList", "layoutNavTabs", "layoutSidebarState"]),
|
|
4487
|
+
...Le(is, [
|
|
4473
4488
|
"windowWidth",
|
|
4474
4489
|
"windowHeight",
|
|
4475
4490
|
"windowActive",
|
|
@@ -4479,7 +4494,7 @@ function nc() {
|
|
|
4479
4494
|
"windowPortrait",
|
|
4480
4495
|
"formLabelPosition"
|
|
4481
4496
|
]),
|
|
4482
|
-
...
|
|
4497
|
+
...Le(fr, [
|
|
4483
4498
|
"cacheServerUrl",
|
|
4484
4499
|
"systemConfig",
|
|
4485
4500
|
"systemInfo",
|
|
@@ -4487,7 +4502,7 @@ function nc() {
|
|
|
4487
4502
|
"sysIsEEUiApp",
|
|
4488
4503
|
"sysIsSoftware"
|
|
4489
4504
|
]),
|
|
4490
|
-
...
|
|
4505
|
+
...Le(Te, [
|
|
4491
4506
|
"accountIsLogin",
|
|
4492
4507
|
"accountInfo",
|
|
4493
4508
|
"accountToken",
|
|
@@ -4496,7 +4511,8 @@ function nc() {
|
|
|
4496
4511
|
"staffId",
|
|
4497
4512
|
"staffNick"
|
|
4498
4513
|
]),
|
|
4499
|
-
...
|
|
4514
|
+
...Le(Zt, ["openProductInfo", "menuBadge", "menuCurrOpeneds", "menuCurrOnly"]),
|
|
4515
|
+
...Le(ec, ["openCaseInfo"])
|
|
4500
4516
|
},
|
|
4501
4517
|
watch: {
|
|
4502
4518
|
windowActive(t) {
|
|
@@ -4506,57 +4522,12 @@ function nc() {
|
|
|
4506
4522
|
}
|
|
4507
4523
|
};
|
|
4508
4524
|
}
|
|
4509
|
-
const
|
|
4525
|
+
const Re = (e, t) => {
|
|
4510
4526
|
const n = e.__vccOpts || e;
|
|
4511
4527
|
for (const [r, a] of t)
|
|
4512
4528
|
n[r] = a;
|
|
4513
4529
|
return n;
|
|
4514
4530
|
}, rc = {
|
|
4515
|
-
props: {
|
|
4516
|
-
className: ""
|
|
4517
|
-
},
|
|
4518
|
-
data() {
|
|
4519
|
-
return {
|
|
4520
|
-
routeRefreshAnimation: "",
|
|
4521
|
-
routeRefreshNum: 0
|
|
4522
|
-
};
|
|
4523
|
-
},
|
|
4524
|
-
computed: {
|
|
4525
|
-
...Fe(en, ["routeAlive"])
|
|
4526
|
-
},
|
|
4527
|
-
watch: {
|
|
4528
|
-
routeAlive(e) {
|
|
4529
|
-
this.routeRefreshAnimation = "subapp-slide-right", this.routeRefreshNum++, this.$nextTick(() => {
|
|
4530
|
-
this.routeRefreshAnimation = "";
|
|
4531
|
-
});
|
|
4532
|
-
}
|
|
4533
|
-
},
|
|
4534
|
-
methods: {}
|
|
4535
|
-
};
|
|
4536
|
-
function ac(e, t, n, r, a, s) {
|
|
4537
|
-
const o = B("router-view");
|
|
4538
|
-
return U(), J(o, { key: a.routeRefreshNum }, {
|
|
4539
|
-
default: R(({ Component: i, route: l }) => [
|
|
4540
|
-
w(Vs, {
|
|
4541
|
-
name: a.routeRefreshAnimation,
|
|
4542
|
-
mode: "out-in",
|
|
4543
|
-
appear: ""
|
|
4544
|
-
}, {
|
|
4545
|
-
default: R(() => [
|
|
4546
|
-
(U(), Q("div", {
|
|
4547
|
-
class: va(n.className),
|
|
4548
|
-
key: l.path
|
|
4549
|
-
}, [
|
|
4550
|
-
(U(), J(Gs(i)))
|
|
4551
|
-
], 2))
|
|
4552
|
-
]),
|
|
4553
|
-
_: 2
|
|
4554
|
-
}, 1032, ["name"])
|
|
4555
|
-
]),
|
|
4556
|
-
_: 1
|
|
4557
|
-
});
|
|
4558
|
-
}
|
|
4559
|
-
const sc = /* @__PURE__ */ we(rc, [["render", ac]]), oc = {
|
|
4560
4531
|
name: "HeaderSysSettDrawer",
|
|
4561
4532
|
components: {},
|
|
4562
4533
|
props: {
|
|
@@ -4579,16 +4550,16 @@ const sc = /* @__PURE__ */ we(rc, [["render", ac]]), oc = {
|
|
|
4579
4550
|
this.localVal = e;
|
|
4580
4551
|
},
|
|
4581
4552
|
frameSysTheme(e) {
|
|
4582
|
-
|
|
4553
|
+
Be().SA_THEMES_SET(e);
|
|
4583
4554
|
},
|
|
4584
4555
|
frameSysLanguage(e) {
|
|
4585
4556
|
Pt().SA_LANGUAGE_SET(e);
|
|
4586
4557
|
},
|
|
4587
4558
|
frameSidebarState(e) {
|
|
4588
|
-
|
|
4559
|
+
Be().SA_LAYOUT_SLIDEBAR_SET(e);
|
|
4589
4560
|
},
|
|
4590
4561
|
frameSysNavTabs(e) {
|
|
4591
|
-
|
|
4562
|
+
Be().SA_LAYOUT_NAVTABS_SET(e);
|
|
4592
4563
|
}
|
|
4593
4564
|
},
|
|
4594
4565
|
created() {
|
|
@@ -4607,8 +4578,8 @@ const sc = /* @__PURE__ */ we(rc, [["render", ac]]), oc = {
|
|
|
4607
4578
|
this.$parent.frameHandleCommand("clearCache");
|
|
4608
4579
|
}
|
|
4609
4580
|
}
|
|
4610
|
-
},
|
|
4611
|
-
function
|
|
4581
|
+
}, ac = { class: "cloud-sett-drawer-body" }, sc = { class: "cloud-sett-drawer-skin" };
|
|
4582
|
+
function oc(e, t, n, r, a, s) {
|
|
4612
4583
|
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");
|
|
4613
4584
|
return U(), J(A, {
|
|
4614
4585
|
title: "系统设置",
|
|
@@ -4618,19 +4589,19 @@ function cc(e, t, n, r, a, s) {
|
|
|
4618
4589
|
size: "450px",
|
|
4619
4590
|
"before-close": s.frameTopSysSettClose
|
|
4620
4591
|
}, {
|
|
4621
|
-
default:
|
|
4622
|
-
k("div",
|
|
4592
|
+
default: D(() => [
|
|
4593
|
+
k("div", ac, [
|
|
4623
4594
|
w(p, {
|
|
4624
4595
|
labelWidth: "auto",
|
|
4625
4596
|
"label-position": "left"
|
|
4626
4597
|
}, {
|
|
4627
|
-
default:
|
|
4598
|
+
default: D(() => [
|
|
4628
4599
|
w(i, {
|
|
4629
4600
|
label: "风格",
|
|
4630
4601
|
"label-position": "top"
|
|
4631
4602
|
}, {
|
|
4632
|
-
default:
|
|
4633
|
-
k("div",
|
|
4603
|
+
default: D(() => [
|
|
4604
|
+
k("div", sc, [
|
|
4634
4605
|
w(o),
|
|
4635
4606
|
w(o),
|
|
4636
4607
|
w(o)
|
|
@@ -4639,20 +4610,20 @@ function cc(e, t, n, r, a, s) {
|
|
|
4639
4610
|
_: 1
|
|
4640
4611
|
}),
|
|
4641
4612
|
w(i, { label: "主题" }, {
|
|
4642
|
-
default:
|
|
4613
|
+
default: D(() => [
|
|
4643
4614
|
w(c, {
|
|
4644
4615
|
modelValue: a.frameSysTheme,
|
|
4645
4616
|
"onUpdate:modelValue": t[0] || (t[0] = (E) => a.frameSysTheme = E),
|
|
4646
4617
|
placeholder: e.$t("选项主题"),
|
|
4647
4618
|
style: { width: "150px" }
|
|
4648
4619
|
}, {
|
|
4649
|
-
default:
|
|
4620
|
+
default: D(() => [
|
|
4650
4621
|
(U(!0), Q(he, null, Xe(e.themesList, (E, C) => (U(), J(l, {
|
|
4651
4622
|
label: e.$t(E.name),
|
|
4652
4623
|
value: E.value,
|
|
4653
4624
|
key: C
|
|
4654
4625
|
}, {
|
|
4655
|
-
default:
|
|
4626
|
+
default: D(() => [
|
|
4656
4627
|
te(ne(e.$t(E.name)), 1)
|
|
4657
4628
|
]),
|
|
4658
4629
|
_: 2
|
|
@@ -4664,13 +4635,13 @@ function cc(e, t, n, r, a, s) {
|
|
|
4664
4635
|
_: 1
|
|
4665
4636
|
}),
|
|
4666
4637
|
w(i, { label: "暗黑模式" }, {
|
|
4667
|
-
default:
|
|
4638
|
+
default: D(() => [
|
|
4668
4639
|
a.frameSysTheme == "light" ? (U(), J(u, {
|
|
4669
4640
|
key: 0,
|
|
4670
4641
|
onClick: t[1] || (t[1] = (E) => a.frameSysTheme = "dark"),
|
|
4671
4642
|
class: "light-switch"
|
|
4672
4643
|
}, {
|
|
4673
|
-
default:
|
|
4644
|
+
default: D(() => [
|
|
4674
4645
|
w(f, { type: "cvSvgViewModeDark" })
|
|
4675
4646
|
]),
|
|
4676
4647
|
_: 1
|
|
@@ -4680,7 +4651,7 @@ function cc(e, t, n, r, a, s) {
|
|
|
4680
4651
|
onClick: t[2] || (t[2] = (E) => a.frameSysTheme = "light"),
|
|
4681
4652
|
class: "dark-switch"
|
|
4682
4653
|
}, {
|
|
4683
|
-
default:
|
|
4654
|
+
default: D(() => [
|
|
4684
4655
|
w(f, { type: "cvSvgViewModeLight" })
|
|
4685
4656
|
]),
|
|
4686
4657
|
_: 1
|
|
@@ -4689,7 +4660,7 @@ function cc(e, t, n, r, a, s) {
|
|
|
4689
4660
|
_: 1
|
|
4690
4661
|
}),
|
|
4691
4662
|
w(i, { label: "侧栏显示" }, {
|
|
4692
|
-
default:
|
|
4663
|
+
default: D(() => [
|
|
4693
4664
|
w(m, {
|
|
4694
4665
|
modelValue: a.frameSidebarState,
|
|
4695
4666
|
"onUpdate:modelValue": t[3] || (t[3] = (E) => a.frameSidebarState = E),
|
|
@@ -4702,7 +4673,7 @@ function cc(e, t, n, r, a, s) {
|
|
|
4702
4673
|
_: 1
|
|
4703
4674
|
}),
|
|
4704
4675
|
w(i, { label: "导航标签栏" }, {
|
|
4705
|
-
default:
|
|
4676
|
+
default: D(() => [
|
|
4706
4677
|
w(m, {
|
|
4707
4678
|
modelValue: a.frameSysNavTabs,
|
|
4708
4679
|
"onUpdate:modelValue": t[4] || (t[4] = (E) => a.frameSysNavTabs = E),
|
|
@@ -4715,19 +4686,19 @@ function cc(e, t, n, r, a, s) {
|
|
|
4715
4686
|
_: 1
|
|
4716
4687
|
}),
|
|
4717
4688
|
w(i, { label: "语言" }, {
|
|
4718
|
-
default:
|
|
4689
|
+
default: D(() => [
|
|
4719
4690
|
w(c, {
|
|
4720
4691
|
modelValue: a.frameSysLanguage,
|
|
4721
4692
|
"onUpdate:modelValue": t[5] || (t[5] = (E) => a.frameSysLanguage = E),
|
|
4722
4693
|
placeholder: e.$t("选项语言"),
|
|
4723
4694
|
style: { width: "150px" }
|
|
4724
4695
|
}, {
|
|
4725
|
-
default:
|
|
4696
|
+
default: D(() => [
|
|
4726
4697
|
(U(!0), Q(he, null, Xe(e.languageSelect, (E, C) => (U(), J(l, {
|
|
4727
4698
|
label: E.label,
|
|
4728
4699
|
value: E.value
|
|
4729
4700
|
}, {
|
|
4730
|
-
default:
|
|
4701
|
+
default: D(() => [
|
|
4731
4702
|
te(ne(E.label), 1)
|
|
4732
4703
|
]),
|
|
4733
4704
|
_: 2
|
|
@@ -4739,9 +4710,9 @@ function cc(e, t, n, r, a, s) {
|
|
|
4739
4710
|
_: 1
|
|
4740
4711
|
}),
|
|
4741
4712
|
w(i, { label: "版本" }, {
|
|
4742
|
-
default:
|
|
4713
|
+
default: D(() => [
|
|
4743
4714
|
w(u, { onClick: s.frameUpdateVersion }, {
|
|
4744
|
-
default:
|
|
4715
|
+
default: D(() => [
|
|
4745
4716
|
te(ne(e.$t("更新版本")), 1)
|
|
4746
4717
|
]),
|
|
4747
4718
|
_: 1
|
|
@@ -4750,9 +4721,9 @@ function cc(e, t, n, r, a, s) {
|
|
|
4750
4721
|
_: 1
|
|
4751
4722
|
}),
|
|
4752
4723
|
w(i, { label: "缓存" }, {
|
|
4753
|
-
default:
|
|
4724
|
+
default: D(() => [
|
|
4754
4725
|
w(u, { onClick: s.frameClearCache }, {
|
|
4755
|
-
default:
|
|
4726
|
+
default: D(() => [
|
|
4756
4727
|
te(ne(e.$t("清除缓存")), 1)
|
|
4757
4728
|
]),
|
|
4758
4729
|
_: 1
|
|
@@ -4768,7 +4739,52 @@ function cc(e, t, n, r, a, s) {
|
|
|
4768
4739
|
_: 1
|
|
4769
4740
|
}, 8, ["modelValue", "before-close"]);
|
|
4770
4741
|
}
|
|
4771
|
-
const
|
|
4742
|
+
const ic = /* @__PURE__ */ Re(rc, [["render", oc]]), lc = {
|
|
4743
|
+
props: {
|
|
4744
|
+
className: ""
|
|
4745
|
+
},
|
|
4746
|
+
data() {
|
|
4747
|
+
return {
|
|
4748
|
+
routeRefreshAnimation: "",
|
|
4749
|
+
routeRefreshNum: 0
|
|
4750
|
+
};
|
|
4751
|
+
},
|
|
4752
|
+
computed: {
|
|
4753
|
+
...Le(en, ["routeAlive"])
|
|
4754
|
+
},
|
|
4755
|
+
watch: {
|
|
4756
|
+
routeAlive(e) {
|
|
4757
|
+
this.routeRefreshAnimation = "subapp-slide-right", this.routeRefreshNum++, this.$nextTick(() => {
|
|
4758
|
+
this.routeRefreshAnimation = "";
|
|
4759
|
+
});
|
|
4760
|
+
}
|
|
4761
|
+
},
|
|
4762
|
+
methods: {}
|
|
4763
|
+
};
|
|
4764
|
+
function cc(e, t, n, r, a, s) {
|
|
4765
|
+
const o = B("router-view");
|
|
4766
|
+
return U(), J(o, { key: a.routeRefreshNum }, {
|
|
4767
|
+
default: D(({ Component: i, route: l }) => [
|
|
4768
|
+
w(xs, {
|
|
4769
|
+
name: a.routeRefreshAnimation,
|
|
4770
|
+
mode: "out-in",
|
|
4771
|
+
appear: ""
|
|
4772
|
+
}, {
|
|
4773
|
+
default: D(() => [
|
|
4774
|
+
(U(), Q("div", {
|
|
4775
|
+
class: va(n.className),
|
|
4776
|
+
key: l.path
|
|
4777
|
+
}, [
|
|
4778
|
+
(U(), J(Vs(i)))
|
|
4779
|
+
], 2))
|
|
4780
|
+
]),
|
|
4781
|
+
_: 2
|
|
4782
|
+
}, 1032, ["name"])
|
|
4783
|
+
]),
|
|
4784
|
+
_: 1
|
|
4785
|
+
});
|
|
4786
|
+
}
|
|
4787
|
+
const uc = /* @__PURE__ */ Re(lc, [["render", cc]]), _a = (e) => Math.pow(e, 3), fc = (e) => e < 0.5 ? _a(e * 2) / 2 : 1 - _a((1 - e) * 2) / 2, _c = {
|
|
4772
4788
|
name: "SameNavTabs",
|
|
4773
4789
|
data() {
|
|
4774
4790
|
return {
|
|
@@ -4899,14 +4915,14 @@ function pc(e, t, n, r, a, s) {
|
|
|
4899
4915
|
class: "btn-opt-left",
|
|
4900
4916
|
onClick: s.changeGdtLeft
|
|
4901
4917
|
}, {
|
|
4902
|
-
default:
|
|
4918
|
+
default: D(() => [
|
|
4903
4919
|
w(o, { type: "ElIconArrowLeft" })
|
|
4904
4920
|
]),
|
|
4905
4921
|
_: 1
|
|
4906
4922
|
}, 8, ["onClick"]),
|
|
4907
4923
|
k("div", hc, [
|
|
4908
4924
|
w(c, { ref: "navScroll1" }, {
|
|
4909
|
-
default:
|
|
4925
|
+
default: D(() => [
|
|
4910
4926
|
k("div", gc, [
|
|
4911
4927
|
(U(!0), Q(he, null, Xe(a.sett_tags, (u, m) => (U(), J(l, {
|
|
4912
4928
|
id: a.activeTag == u.name ? "tagId" : "",
|
|
@@ -4916,9 +4932,9 @@ function pc(e, t, n, r, a, s) {
|
|
|
4916
4932
|
onClose: (p) => s.removeTag(u, m),
|
|
4917
4933
|
onClick: (p) => s.changeMenu(u),
|
|
4918
4934
|
"disable-transitions": "",
|
|
4919
|
-
onContextmenu:
|
|
4935
|
+
onContextmenu: Gs(s.openContextMenu, ["prevent"])
|
|
4920
4936
|
}, {
|
|
4921
|
-
default:
|
|
4937
|
+
default: D(() => [
|
|
4922
4938
|
te(ne(u.title), 1)
|
|
4923
4939
|
]),
|
|
4924
4940
|
_: 2
|
|
@@ -4932,13 +4948,13 @@ function pc(e, t, n, r, a, s) {
|
|
|
4932
4948
|
class: "btn-opt-right",
|
|
4933
4949
|
onClick: s.changeGdtRight
|
|
4934
4950
|
}, {
|
|
4935
|
-
default:
|
|
4951
|
+
default: D(() => [
|
|
4936
4952
|
w(o, { type: "ElIconArrowRight" })
|
|
4937
4953
|
]),
|
|
4938
4954
|
_: 1
|
|
4939
4955
|
}, 8, ["onClick"]),
|
|
4940
4956
|
w(i, { class: "btn-opt-close" }, {
|
|
4941
|
-
default:
|
|
4957
|
+
default: D(() => [
|
|
4942
4958
|
t[5] || (t[5] = te(" 关闭操作 ")),
|
|
4943
4959
|
w(o, { type: "ElIconCaretBottom" })
|
|
4944
4960
|
]),
|
|
@@ -4955,7 +4971,7 @@ function pc(e, t, n, r, a, s) {
|
|
|
4955
4971
|
w(f, {
|
|
4956
4972
|
onClick: t[0] || (t[0] = (u) => s.curTabReload())
|
|
4957
4973
|
}, {
|
|
4958
|
-
default:
|
|
4974
|
+
default: D(() => t[6] || (t[6] = [
|
|
4959
4975
|
te("重新加载")
|
|
4960
4976
|
])),
|
|
4961
4977
|
_: 1
|
|
@@ -4965,7 +4981,7 @@ function pc(e, t, n, r, a, s) {
|
|
|
4965
4981
|
w(f, {
|
|
4966
4982
|
onClick: t[1] || (t[1] = (u) => s.closeAllTabs())
|
|
4967
4983
|
}, {
|
|
4968
|
-
default:
|
|
4984
|
+
default: D(() => t[7] || (t[7] = [
|
|
4969
4985
|
te("关闭所有")
|
|
4970
4986
|
])),
|
|
4971
4987
|
_: 1
|
|
@@ -4976,7 +4992,7 @@ function pc(e, t, n, r, a, s) {
|
|
|
4976
4992
|
onClick: t[2] || (t[2] = (u) => s.closeOtherTabs("left")),
|
|
4977
4993
|
disabled: a.isDisabledCloseLeftBtnFlag
|
|
4978
4994
|
}, {
|
|
4979
|
-
default:
|
|
4995
|
+
default: D(() => t[8] || (t[8] = [
|
|
4980
4996
|
te("关闭左边")
|
|
4981
4997
|
])),
|
|
4982
4998
|
_: 1
|
|
@@ -4987,7 +5003,7 @@ function pc(e, t, n, r, a, s) {
|
|
|
4987
5003
|
onClick: t[3] || (t[3] = (u) => s.closeOtherTabs("right")),
|
|
4988
5004
|
disabled: a.isDisabledCloseRightBtnFlag
|
|
4989
5005
|
}, {
|
|
4990
|
-
default:
|
|
5006
|
+
default: D(() => t[9] || (t[9] = [
|
|
4991
5007
|
te("关闭右边")
|
|
4992
5008
|
])),
|
|
4993
5009
|
_: 1
|
|
@@ -4997,7 +5013,7 @@ function pc(e, t, n, r, a, s) {
|
|
|
4997
5013
|
w(f, {
|
|
4998
5014
|
onClick: t[4] || (t[4] = (u) => s.closeOtherTabs("other"))
|
|
4999
5015
|
}, {
|
|
5000
|
-
default:
|
|
5016
|
+
default: D(() => t[10] || (t[10] = [
|
|
5001
5017
|
te("关闭其他")
|
|
5002
5018
|
])),
|
|
5003
5019
|
_: 1
|
|
@@ -5010,7 +5026,7 @@ function pc(e, t, n, r, a, s) {
|
|
|
5010
5026
|
])
|
|
5011
5027
|
]);
|
|
5012
5028
|
}
|
|
5013
|
-
const Ec = /* @__PURE__ */
|
|
5029
|
+
const Ec = /* @__PURE__ */ Re(_c, [["render", pc]]), bc = {
|
|
5014
5030
|
name: "SidebarMenuItem",
|
|
5015
5031
|
props: {
|
|
5016
5032
|
menuData: {
|
|
@@ -5070,7 +5086,7 @@ function Nc(e, t, n, r, a, s) {
|
|
|
5070
5086
|
key: u.name,
|
|
5071
5087
|
index: u.name
|
|
5072
5088
|
}, {
|
|
5073
|
-
title:
|
|
5089
|
+
title: D(() => [
|
|
5074
5090
|
k("div", Sc, [
|
|
5075
5091
|
u.meta.icon ? (U(), J(o, {
|
|
5076
5092
|
key: 0,
|
|
@@ -5081,7 +5097,7 @@ function Nc(e, t, n, r, a, s) {
|
|
|
5081
5097
|
]),
|
|
5082
5098
|
k("span", null, ne(u.meta.title || u.meta.short), 1)
|
|
5083
5099
|
]),
|
|
5084
|
-
default:
|
|
5100
|
+
default: D(() => [
|
|
5085
5101
|
w(i, {
|
|
5086
5102
|
appData: n.appData,
|
|
5087
5103
|
menuData: u.children,
|
|
@@ -5095,10 +5111,10 @@ function Nc(e, t, n, r, a, s) {
|
|
|
5095
5111
|
key: "b" + u.name,
|
|
5096
5112
|
onClick: (m) => s.handleOpenMenu(u)
|
|
5097
5113
|
}, {
|
|
5098
|
-
title:
|
|
5114
|
+
title: D(() => [
|
|
5099
5115
|
te(ne(u.meta.short || u.meta.title), 1)
|
|
5100
5116
|
]),
|
|
5101
|
-
default:
|
|
5117
|
+
default: D(() => [
|
|
5102
5118
|
!u.meta.icon && n.collapse && !n.isChildren ? (U(), Q("div", Ac, ne(u.meta.short || u.meta.title), 1)) : (U(), Q("div", yc, [
|
|
5103
5119
|
u.meta.icon ? (U(), J(o, {
|
|
5104
5120
|
key: 0,
|
|
@@ -5122,7 +5138,7 @@ function Nc(e, t, n, r, a, s) {
|
|
|
5122
5138
|
], 64)) : ue("", !0)
|
|
5123
5139
|
], 64))), 256);
|
|
5124
5140
|
}
|
|
5125
|
-
const Tc = /* @__PURE__ */
|
|
5141
|
+
const Tc = /* @__PURE__ */ Re(bc, [["render", Nc]]), Oc = {
|
|
5126
5142
|
name: "SidebarMenuBox",
|
|
5127
5143
|
components: {
|
|
5128
5144
|
SidebarMenuItem: Tc
|
|
@@ -5137,7 +5153,7 @@ const Tc = /* @__PURE__ */ we(bc, [["render", Nc]]), Oc = {
|
|
|
5137
5153
|
return {
|
|
5138
5154
|
// 左侧菜单默认展开
|
|
5139
5155
|
menuDefaultOpeneds: [],
|
|
5140
|
-
|
|
5156
|
+
menuCurrList: [],
|
|
5141
5157
|
// 当前激活菜单的 index
|
|
5142
5158
|
activeName: null
|
|
5143
5159
|
};
|
|
@@ -5151,14 +5167,14 @@ const Tc = /* @__PURE__ */ we(bc, [["render", Nc]]), Oc = {
|
|
|
5151
5167
|
}
|
|
5152
5168
|
},
|
|
5153
5169
|
menuCurrOnly(e) {
|
|
5154
|
-
this.
|
|
5170
|
+
this.menuCurrList = e;
|
|
5155
5171
|
},
|
|
5156
5172
|
menuCurrOpeneds(e) {
|
|
5157
5173
|
this.menuDefaultOpeneds = e;
|
|
5158
5174
|
}
|
|
5159
5175
|
},
|
|
5160
5176
|
created() {
|
|
5161
|
-
this.
|
|
5177
|
+
this.menuCurrList = this.menuCurrOnly, this.menuDefaultOpeneds = this.menuCurrOpeneds;
|
|
5162
5178
|
},
|
|
5163
5179
|
methods: {
|
|
5164
5180
|
handleOpen(e, t) {
|
|
@@ -5179,10 +5195,10 @@ function wc(e, t, n, r, a, s) {
|
|
|
5179
5195
|
onOpen: s.handleOpen,
|
|
5180
5196
|
onClose: s.handleClose
|
|
5181
5197
|
}, {
|
|
5182
|
-
default:
|
|
5198
|
+
default: D(() => [
|
|
5183
5199
|
w(o, {
|
|
5184
5200
|
appData: e.openProductInfo,
|
|
5185
|
-
menuData: a.
|
|
5201
|
+
menuData: a.menuCurrList,
|
|
5186
5202
|
collapse: n.collapse
|
|
5187
5203
|
}, null, 8, ["appData", "menuData", "collapse"])
|
|
5188
5204
|
]),
|
|
@@ -5191,7 +5207,7 @@ function wc(e, t, n, r, a, s) {
|
|
|
5191
5207
|
])
|
|
5192
5208
|
]);
|
|
5193
5209
|
}
|
|
5194
|
-
const Dc = /* @__PURE__ */
|
|
5210
|
+
const Dc = /* @__PURE__ */ Re(Oc, [["render", wc]]), Rc = {
|
|
5195
5211
|
name: "ChangePassword",
|
|
5196
5212
|
props: {
|
|
5197
5213
|
modelValue: {
|
|
@@ -5242,8 +5258,8 @@ const Dc = /* @__PURE__ */ we(Oc, [["render", wc]]), Rc = {
|
|
|
5242
5258
|
});
|
|
5243
5259
|
}
|
|
5244
5260
|
}
|
|
5245
|
-
},
|
|
5246
|
-
function
|
|
5261
|
+
}, kc = { class: "dialog-footer" };
|
|
5262
|
+
function Pc(e, t, n, r, a, s) {
|
|
5247
5263
|
const o = B("el-input"), i = B("el-form-item"), l = B("el-form"), c = B("el-button"), f = B("el-dialog");
|
|
5248
5264
|
return U(), J(f, {
|
|
5249
5265
|
width: 520,
|
|
@@ -5252,10 +5268,10 @@ function kc(e, t, n, r, a, s) {
|
|
|
5252
5268
|
title: "修改密码",
|
|
5253
5269
|
onClose: s.handleCancel
|
|
5254
5270
|
}, {
|
|
5255
|
-
footer:
|
|
5256
|
-
k("div",
|
|
5271
|
+
footer: D(() => [
|
|
5272
|
+
k("div", kc, [
|
|
5257
5273
|
w(c, { onClick: s.handleCancel }, {
|
|
5258
|
-
default:
|
|
5274
|
+
default: D(() => t[4] || (t[4] = [
|
|
5259
5275
|
te("取 消")
|
|
5260
5276
|
])),
|
|
5261
5277
|
_: 1
|
|
@@ -5264,24 +5280,24 @@ function kc(e, t, n, r, a, s) {
|
|
|
5264
5280
|
type: "primary",
|
|
5265
5281
|
onClick: s.handleBeforeOk
|
|
5266
5282
|
}, {
|
|
5267
|
-
default:
|
|
5283
|
+
default: D(() => t[5] || (t[5] = [
|
|
5268
5284
|
te("确 定")
|
|
5269
5285
|
])),
|
|
5270
5286
|
_: 1
|
|
5271
5287
|
}, 8, ["onClick"])
|
|
5272
5288
|
])
|
|
5273
5289
|
]),
|
|
5274
|
-
default:
|
|
5290
|
+
default: D(() => [
|
|
5275
5291
|
w(l, {
|
|
5276
5292
|
model: a.formData,
|
|
5277
5293
|
"label-width": "auto"
|
|
5278
5294
|
}, {
|
|
5279
|
-
default:
|
|
5295
|
+
default: D(() => [
|
|
5280
5296
|
w(i, {
|
|
5281
5297
|
prop: "old_pwd",
|
|
5282
5298
|
label: "原密码"
|
|
5283
5299
|
}, {
|
|
5284
|
-
default:
|
|
5300
|
+
default: D(() => [
|
|
5285
5301
|
w(o, {
|
|
5286
5302
|
type: "password",
|
|
5287
5303
|
"show-password": "",
|
|
@@ -5295,7 +5311,7 @@ function kc(e, t, n, r, a, s) {
|
|
|
5295
5311
|
prop: "new_pwd1",
|
|
5296
5312
|
label: "新密码"
|
|
5297
5313
|
}, {
|
|
5298
|
-
default:
|
|
5314
|
+
default: D(() => [
|
|
5299
5315
|
w(o, {
|
|
5300
5316
|
type: "password",
|
|
5301
5317
|
"show-password": "",
|
|
@@ -5309,7 +5325,7 @@ function kc(e, t, n, r, a, s) {
|
|
|
5309
5325
|
prop: "new_pwd2",
|
|
5310
5326
|
label: "确认密码"
|
|
5311
5327
|
}, {
|
|
5312
|
-
default:
|
|
5328
|
+
default: D(() => [
|
|
5313
5329
|
w(o, {
|
|
5314
5330
|
type: "password",
|
|
5315
5331
|
"show-password": "",
|
|
@@ -5326,7 +5342,7 @@ function kc(e, t, n, r, a, s) {
|
|
|
5326
5342
|
_: 1
|
|
5327
5343
|
}, 8, ["modelValue", "onClose"]);
|
|
5328
5344
|
}
|
|
5329
|
-
const Fc = /* @__PURE__ */
|
|
5345
|
+
const Fc = /* @__PURE__ */ Re(Rc, [["render", Pc]]), Mc = {
|
|
5330
5346
|
name: "SwitchBusiness",
|
|
5331
5347
|
props: {
|
|
5332
5348
|
modelValue: {
|
|
@@ -5438,7 +5454,7 @@ function zc(e, t, n, r, a, s) {
|
|
|
5438
5454
|
size: "large",
|
|
5439
5455
|
onClick: s.handleSearch
|
|
5440
5456
|
}, {
|
|
5441
|
-
default:
|
|
5457
|
+
default: D(() => t[2] || (t[2] = [
|
|
5442
5458
|
te("搜索")
|
|
5443
5459
|
])),
|
|
5444
5460
|
_: 1
|
|
@@ -5479,13 +5495,13 @@ function zc(e, t, n, r, a, s) {
|
|
|
5479
5495
|
])
|
|
5480
5496
|
]);
|
|
5481
5497
|
}
|
|
5482
|
-
const Zc = /* @__PURE__ */
|
|
5498
|
+
const Zc = /* @__PURE__ */ Re(Mc, [["render", zc]]), eu = {
|
|
5483
5499
|
name: "SameFrame",
|
|
5484
5500
|
components: {
|
|
5485
5501
|
SidebarMenuBox: Dc,
|
|
5486
5502
|
SameNavTabs: Ec,
|
|
5487
|
-
SameRouteView:
|
|
5488
|
-
HeaderSysSettDrawer:
|
|
5503
|
+
SameRouteView: uc,
|
|
5504
|
+
HeaderSysSettDrawer: ic,
|
|
5489
5505
|
ChangePassword: Fc,
|
|
5490
5506
|
SwitchBusiness: Zc
|
|
5491
5507
|
},
|
|
@@ -5525,7 +5541,7 @@ const Zc = /* @__PURE__ */ we(Mc, [["render", zc]]), eu = {
|
|
|
5525
5541
|
},
|
|
5526
5542
|
mounted() {
|
|
5527
5543
|
this.frameSidebarOpen = this.layoutSidebarState, is().$subscribe((t, n) => {
|
|
5528
|
-
n.windowWidth < 1061 ? this.frameSidebarOpen = "off" : this.frameSidebarOpen = "on",
|
|
5544
|
+
n.windowWidth < 1061 ? this.frameSidebarOpen = "off" : this.frameSidebarOpen = "on", Be().SA_LAYOUT_SLIDEBAR_SET(this.frameSidebarOpen);
|
|
5529
5545
|
}), window.onresize = () => {
|
|
5530
5546
|
(document.mozFullScreen || document.fullScreen || //谷歌浏览器及Webkit内核浏览器
|
|
5531
5547
|
document.webkitIsFullScreen || document.webkitRequestFullScreen || document.mozRequestFullScreen || document.msFullscreenEnabled) === void 0 && (this.full_screen = !1);
|
|
@@ -5533,7 +5549,7 @@ const Zc = /* @__PURE__ */ we(Mc, [["render", zc]]), eu = {
|
|
|
5533
5549
|
},
|
|
5534
5550
|
methods: {
|
|
5535
5551
|
frameSwicthMenu() {
|
|
5536
|
-
this.frameSidebarOpen = this.frameSidebarOpen == "on" ? "off" : "on",
|
|
5552
|
+
this.frameSidebarOpen = this.frameSidebarOpen == "on" ? "off" : "on", Be().SA_LAYOUT_SLIDEBAR_SET(this.frameSidebarOpen);
|
|
5537
5553
|
},
|
|
5538
5554
|
framePageRefresh() {
|
|
5539
5555
|
this.jumpsReload();
|
|
@@ -5639,11 +5655,11 @@ function hu(e, t, n, r, a, s) {
|
|
|
5639
5655
|
k("a", au, [
|
|
5640
5656
|
k("img", {
|
|
5641
5657
|
class: "cloud-header__logo-img",
|
|
5642
|
-
src: e.
|
|
5658
|
+
src: e.openCaseInfo.platinfo_logo,
|
|
5643
5659
|
alt: ""
|
|
5644
5660
|
}, null, 8, su)
|
|
5645
5661
|
]),
|
|
5646
|
-
k("div", ou, ne(e.
|
|
5662
|
+
k("div", ou, ne(e.openCaseInfo.platinfo_title), 1)
|
|
5647
5663
|
]),
|
|
5648
5664
|
k("div", {
|
|
5649
5665
|
class: "cloud-header__opt",
|
|
@@ -5671,13 +5687,13 @@ function hu(e, t, n, r, a, s) {
|
|
|
5671
5687
|
]),
|
|
5672
5688
|
k("div", iu, [
|
|
5673
5689
|
w(l, { separator: "/" }, {
|
|
5674
|
-
default:
|
|
5690
|
+
default: D(() => [
|
|
5675
5691
|
(U(!0), Q(he, null, Xe(a.breadcrumbPath, (g, N) => (U(), Q(he, null, [
|
|
5676
5692
|
N == a.breadcrumbPath.length - 1 || !g.path || g.path == "" ? (U(), J(i, {
|
|
5677
5693
|
key: N,
|
|
5678
5694
|
class: "no-redirect"
|
|
5679
5695
|
}, {
|
|
5680
|
-
default:
|
|
5696
|
+
default: D(() => [
|
|
5681
5697
|
te(ne(g.title), 1)
|
|
5682
5698
|
]),
|
|
5683
5699
|
_: 2
|
|
@@ -5685,7 +5701,7 @@ function hu(e, t, n, r, a, s) {
|
|
|
5685
5701
|
key: "b" + N,
|
|
5686
5702
|
to: { path: g.path }
|
|
5687
5703
|
}, {
|
|
5688
|
-
default:
|
|
5704
|
+
default: D(() => [
|
|
5689
5705
|
te(ne(g.title), 1)
|
|
5690
5706
|
]),
|
|
5691
5707
|
_: 2
|
|
@@ -5721,11 +5737,11 @@ function hu(e, t, n, r, a, s) {
|
|
|
5721
5737
|
onCommand: s.frameHandleCommand,
|
|
5722
5738
|
"popper-class": "cloud-header__info_dropdown"
|
|
5723
5739
|
}, {
|
|
5724
|
-
dropdown:
|
|
5740
|
+
dropdown: D(() => [
|
|
5725
5741
|
w(f, null, {
|
|
5726
|
-
default:
|
|
5742
|
+
default: D(() => [
|
|
5727
5743
|
w(c, { command: "account_change" }, {
|
|
5728
|
-
default:
|
|
5744
|
+
default: D(() => [
|
|
5729
5745
|
w(o, {
|
|
5730
5746
|
type: "cvSvgPeopleSwitch",
|
|
5731
5747
|
size: "15"
|
|
@@ -5735,7 +5751,7 @@ function hu(e, t, n, r, a, s) {
|
|
|
5735
5751
|
_: 1
|
|
5736
5752
|
}),
|
|
5737
5753
|
w(c, { command: "account_chgpwd" }, {
|
|
5738
|
-
default:
|
|
5754
|
+
default: D(() => [
|
|
5739
5755
|
w(o, {
|
|
5740
5756
|
type: "cvSvgBaseLockOff",
|
|
5741
5757
|
size: "15"
|
|
@@ -5748,7 +5764,7 @@ function hu(e, t, n, r, a, s) {
|
|
|
5748
5764
|
command: "clearCache",
|
|
5749
5765
|
divided: ""
|
|
5750
5766
|
}, {
|
|
5751
|
-
default:
|
|
5767
|
+
default: D(() => [
|
|
5752
5768
|
w(o, {
|
|
5753
5769
|
type: "ElIconDelete",
|
|
5754
5770
|
size: "15"
|
|
@@ -5758,7 +5774,7 @@ function hu(e, t, n, r, a, s) {
|
|
|
5758
5774
|
_: 1
|
|
5759
5775
|
}),
|
|
5760
5776
|
w(c, { command: "logout" }, {
|
|
5761
|
-
default:
|
|
5777
|
+
default: D(() => [
|
|
5762
5778
|
w(o, {
|
|
5763
5779
|
type: "cvSvgArrowExportRight",
|
|
5764
5780
|
size: "14"
|
|
@@ -5771,7 +5787,7 @@ function hu(e, t, n, r, a, s) {
|
|
|
5771
5787
|
_: 1
|
|
5772
5788
|
})
|
|
5773
5789
|
]),
|
|
5774
|
-
default:
|
|
5790
|
+
default: D(() => [
|
|
5775
5791
|
k("span", null, [
|
|
5776
5792
|
k("img", {
|
|
5777
5793
|
class: "chinfo-avatar",
|
|
@@ -5844,7 +5860,7 @@ function hu(e, t, n, r, a, s) {
|
|
|
5844
5860
|
}, null, 8, ["modelValue", "onReselectFunc", "onSelectFunc"])) : ue("", !0)
|
|
5845
5861
|
]);
|
|
5846
5862
|
}
|
|
5847
|
-
const Yf = /* @__PURE__ */
|
|
5863
|
+
const Yf = /* @__PURE__ */ Re(eu, [["render", hu]]), gu = {
|
|
5848
5864
|
data() {
|
|
5849
5865
|
return {
|
|
5850
5866
|
watemarkText: "shiyun"
|
|
@@ -5852,9 +5868,9 @@ const Yf = /* @__PURE__ */ we(eu, [["render", hu]]), gu = {
|
|
|
5852
5868
|
},
|
|
5853
5869
|
computed: {
|
|
5854
5870
|
watemarkConf() {
|
|
5855
|
-
let
|
|
5856
|
-
return
|
|
5857
|
-
content:
|
|
5871
|
+
let e = this.openCaseInfo.platinfo_brand || "", n = Te().accountInfo || null;
|
|
5872
|
+
return n && n.account_mobile_hide && (e = n.business_name + n.account_mobile_hide), {
|
|
5873
|
+
content: e,
|
|
5858
5874
|
zIndex: -1,
|
|
5859
5875
|
rotate: -22,
|
|
5860
5876
|
gap: [100, 100],
|
|
@@ -5872,14 +5888,14 @@ const Yf = /* @__PURE__ */ we(eu, [["render", hu]]), gu = {
|
|
|
5872
5888
|
};
|
|
5873
5889
|
function pu(e, t, n, r, a, s) {
|
|
5874
5890
|
const o = B("el-watermark");
|
|
5875
|
-
return U(), J(o,
|
|
5876
|
-
default:
|
|
5877
|
-
|
|
5891
|
+
return U(), J(o, $s(s.watemarkConf, { style: { height: "100%" } }), {
|
|
5892
|
+
default: D(() => [
|
|
5893
|
+
Ws(e.$slots, "default")
|
|
5878
5894
|
]),
|
|
5879
5895
|
_: 3
|
|
5880
5896
|
}, 16);
|
|
5881
5897
|
}
|
|
5882
|
-
const Hf = /* @__PURE__ */
|
|
5898
|
+
const Hf = /* @__PURE__ */ Re(gu, [["render", pu]]);
|
|
5883
5899
|
(function() {
|
|
5884
5900
|
if (typeof EventTarget < "u") {
|
|
5885
5901
|
let e = EventTarget.prototype.addEventListener;
|
|
@@ -6066,7 +6082,7 @@ function j(e, t) {
|
|
|
6066
6082
|
function ot(e, t, n) {
|
|
6067
6083
|
typeof t == "function" && e.then(t), typeof n == "function" && e.catch(n);
|
|
6068
6084
|
}
|
|
6069
|
-
function
|
|
6085
|
+
function ke(e) {
|
|
6070
6086
|
return typeof e != "string" && (e = String(e)), e;
|
|
6071
6087
|
}
|
|
6072
6088
|
function dr() {
|
|
@@ -6075,7 +6091,7 @@ function dr() {
|
|
|
6075
6091
|
}
|
|
6076
6092
|
const Hn = "local-forage-detect-blob-support";
|
|
6077
6093
|
let $t;
|
|
6078
|
-
const be = {}, Au = Object.prototype.toString,
|
|
6094
|
+
const be = {}, Au = Object.prototype.toString, Ft = "readonly", tn = "readwrite";
|
|
6079
6095
|
function yu(e) {
|
|
6080
6096
|
for (var t = e.length, n = new ArrayBuffer(t), r = new Uint8Array(n), a = 0; a < t; a++)
|
|
6081
6097
|
r[a] = e.charCodeAt(a);
|
|
@@ -6119,9 +6135,9 @@ function jn(e, t) {
|
|
|
6119
6135
|
if (r)
|
|
6120
6136
|
return r.reject(t), r.promise;
|
|
6121
6137
|
}
|
|
6122
|
-
function
|
|
6138
|
+
function us(e, t) {
|
|
6123
6139
|
return new F(function(n, r) {
|
|
6124
|
-
if (be[e.name] = be[e.name] ||
|
|
6140
|
+
if (be[e.name] = be[e.name] || ms(), e.db)
|
|
6125
6141
|
if (t)
|
|
6126
6142
|
jt(e), e.db.close();
|
|
6127
6143
|
else
|
|
@@ -6148,12 +6164,12 @@ function fs(e, t) {
|
|
|
6148
6164
|
});
|
|
6149
6165
|
}
|
|
6150
6166
|
function mr(e) {
|
|
6151
|
-
return
|
|
6167
|
+
return us(e, !1);
|
|
6152
6168
|
}
|
|
6153
6169
|
function hr(e) {
|
|
6154
|
-
return
|
|
6170
|
+
return us(e, !0);
|
|
6155
6171
|
}
|
|
6156
|
-
function
|
|
6172
|
+
function fs(e, t) {
|
|
6157
6173
|
if (!e.db)
|
|
6158
6174
|
return !0;
|
|
6159
6175
|
var n = !e.db.objectStoreNames.contains(e.storeName), r = e.version < e.db.version, a = e.version > e.db.version;
|
|
@@ -6179,11 +6195,11 @@ function Ou(e) {
|
|
|
6179
6195
|
}, r.readAsBinaryString(e);
|
|
6180
6196
|
});
|
|
6181
6197
|
}
|
|
6182
|
-
function
|
|
6198
|
+
function _s(e) {
|
|
6183
6199
|
var t = yu(atob(e.data));
|
|
6184
6200
|
return _r([t], { type: e.type });
|
|
6185
6201
|
}
|
|
6186
|
-
function
|
|
6202
|
+
function ds(e) {
|
|
6187
6203
|
return e && e.__local_forage_encoded_blob;
|
|
6188
6204
|
}
|
|
6189
6205
|
function Iu(e) {
|
|
@@ -6200,7 +6216,7 @@ function Cu(e) {
|
|
|
6200
6216
|
const a = n[r];
|
|
6201
6217
|
a._dbInfo.db && (a._dbInfo.db.close(), a._dbInfo.db = null);
|
|
6202
6218
|
}
|
|
6203
|
-
return e.db = null, mr(e).then((a) => (e.db = a,
|
|
6219
|
+
return e.db = null, mr(e).then((a) => (e.db = a, fs(e) ? hr(e) : a)).then((a) => {
|
|
6204
6220
|
e.db = t.db = a;
|
|
6205
6221
|
for (var s = 0; s < n.length; s++)
|
|
6206
6222
|
n[s]._dbInfo.db = a;
|
|
@@ -6208,7 +6224,7 @@ function Cu(e) {
|
|
|
6208
6224
|
throw jn(e, a), a;
|
|
6209
6225
|
});
|
|
6210
6226
|
}
|
|
6211
|
-
function
|
|
6227
|
+
function Pe(e, t, n, r) {
|
|
6212
6228
|
r === void 0 && (r = 1);
|
|
6213
6229
|
try {
|
|
6214
6230
|
var a = e.db.transaction(e.storeName, t);
|
|
@@ -6221,12 +6237,12 @@ function Re(e, t, n, r) {
|
|
|
6221
6237
|
) && e.version <= e.db.version)
|
|
6222
6238
|
return e.db && (e.version = e.db.version + 1), hr(e);
|
|
6223
6239
|
}).then(() => Cu(e).then(function() {
|
|
6224
|
-
|
|
6240
|
+
Pe(e, t, n, r - 1);
|
|
6225
6241
|
})).catch(n);
|
|
6226
6242
|
n(s);
|
|
6227
6243
|
}
|
|
6228
6244
|
}
|
|
6229
|
-
function
|
|
6245
|
+
function ms() {
|
|
6230
6246
|
return {
|
|
6231
6247
|
// Running localForages sharing a database.
|
|
6232
6248
|
forages: [],
|
|
@@ -6246,7 +6262,7 @@ function Lu(e) {
|
|
|
6246
6262
|
for (var r in e)
|
|
6247
6263
|
n[r] = e[r];
|
|
6248
6264
|
var a = be[n.name];
|
|
6249
|
-
a || (a =
|
|
6265
|
+
a || (a = ms(), be[n.name] = a), a.forages.push(t), t._initReady || (t._initReady = t.ready, t.ready = Iu);
|
|
6250
6266
|
var s = [];
|
|
6251
6267
|
function o() {
|
|
6252
6268
|
return F.resolve();
|
|
@@ -6259,7 +6275,7 @@ function Lu(e) {
|
|
|
6259
6275
|
return F.all(s).then(function() {
|
|
6260
6276
|
return n.db = a.db, mr(n);
|
|
6261
6277
|
}).then(function(f) {
|
|
6262
|
-
return n.db = f,
|
|
6278
|
+
return n.db = f, fs(n, t._defaultConfig.version) ? hr(n) : f;
|
|
6263
6279
|
}).then(function(f) {
|
|
6264
6280
|
n.db = a.db = f, t._dbInfo = n;
|
|
6265
6281
|
for (var u = 0; u < c.length; u++) {
|
|
@@ -6270,10 +6286,10 @@ function Lu(e) {
|
|
|
6270
6286
|
}
|
|
6271
6287
|
function wu(e, t) {
|
|
6272
6288
|
var n = this;
|
|
6273
|
-
e =
|
|
6289
|
+
e = ke(e);
|
|
6274
6290
|
var r = new F(function(a, s) {
|
|
6275
6291
|
n.ready().then(function() {
|
|
6276
|
-
|
|
6292
|
+
Pe(n._dbInfo, Ft, function(o, i) {
|
|
6277
6293
|
if (o)
|
|
6278
6294
|
return s(o);
|
|
6279
6295
|
try {
|
|
@@ -6282,7 +6298,7 @@ function wu(e, t) {
|
|
|
6282
6298
|
), c = l.get(e);
|
|
6283
6299
|
c.onsuccess = function() {
|
|
6284
6300
|
var f = c.result;
|
|
6285
|
-
f === void 0 && (f = null),
|
|
6301
|
+
f === void 0 && (f = null), ds(f) && (f = _s(f)), a(f);
|
|
6286
6302
|
}, c.onerror = function() {
|
|
6287
6303
|
s(c.error);
|
|
6288
6304
|
};
|
|
@@ -6297,7 +6313,7 @@ function wu(e, t) {
|
|
|
6297
6313
|
function Du(e, t) {
|
|
6298
6314
|
var n = this, r = new F(function(a, s) {
|
|
6299
6315
|
n.ready().then(function() {
|
|
6300
|
-
|
|
6316
|
+
Pe(n._dbInfo, Ft, function(o, i) {
|
|
6301
6317
|
if (o)
|
|
6302
6318
|
return s(o);
|
|
6303
6319
|
try {
|
|
@@ -6308,7 +6324,7 @@ function Du(e, t) {
|
|
|
6308
6324
|
var u = c.result;
|
|
6309
6325
|
if (u) {
|
|
6310
6326
|
var m = u.value;
|
|
6311
|
-
|
|
6327
|
+
ds(m) && (m = _s(m));
|
|
6312
6328
|
var p = e(
|
|
6313
6329
|
m,
|
|
6314
6330
|
u.key,
|
|
@@ -6330,7 +6346,7 @@ function Du(e, t) {
|
|
|
6330
6346
|
}
|
|
6331
6347
|
function Ru(e, t, n) {
|
|
6332
6348
|
var r = this;
|
|
6333
|
-
e =
|
|
6349
|
+
e = ke(e);
|
|
6334
6350
|
var a = new F(function(s, o) {
|
|
6335
6351
|
var i;
|
|
6336
6352
|
r.ready().then(function() {
|
|
@@ -6338,7 +6354,7 @@ function Ru(e, t, n) {
|
|
|
6338
6354
|
return l ? t : Ou(t);
|
|
6339
6355
|
}) : t;
|
|
6340
6356
|
}).then(function(l) {
|
|
6341
|
-
|
|
6357
|
+
Pe(r._dbInfo, tn, function(c, f) {
|
|
6342
6358
|
if (c)
|
|
6343
6359
|
return o(c);
|
|
6344
6360
|
try {
|
|
@@ -6361,12 +6377,12 @@ function Ru(e, t, n) {
|
|
|
6361
6377
|
});
|
|
6362
6378
|
return j(a, n), a;
|
|
6363
6379
|
}
|
|
6364
|
-
function
|
|
6380
|
+
function ku(e, t) {
|
|
6365
6381
|
var n = this;
|
|
6366
|
-
e =
|
|
6382
|
+
e = ke(e);
|
|
6367
6383
|
var r = new F(function(a, s) {
|
|
6368
6384
|
n.ready().then(function() {
|
|
6369
|
-
|
|
6385
|
+
Pe(n._dbInfo, tn, function(o, i) {
|
|
6370
6386
|
if (o)
|
|
6371
6387
|
return s(o);
|
|
6372
6388
|
try {
|
|
@@ -6389,10 +6405,10 @@ function Pu(e, t) {
|
|
|
6389
6405
|
});
|
|
6390
6406
|
return j(r, t), r;
|
|
6391
6407
|
}
|
|
6392
|
-
function
|
|
6408
|
+
function Pu(e) {
|
|
6393
6409
|
var t = this, n = new F(function(r, a) {
|
|
6394
6410
|
t.ready().then(function() {
|
|
6395
|
-
|
|
6411
|
+
Pe(t._dbInfo, tn, function(s, o) {
|
|
6396
6412
|
if (s)
|
|
6397
6413
|
return a(s);
|
|
6398
6414
|
try {
|
|
@@ -6416,7 +6432,7 @@ function ku(e) {
|
|
|
6416
6432
|
function Fu(e) {
|
|
6417
6433
|
var t = this, n = new F(function(r, a) {
|
|
6418
6434
|
t.ready().then(function() {
|
|
6419
|
-
|
|
6435
|
+
Pe(t._dbInfo, Ft, function(s, o) {
|
|
6420
6436
|
if (s)
|
|
6421
6437
|
return a(s);
|
|
6422
6438
|
try {
|
|
@@ -6443,7 +6459,7 @@ function Mu(e, t) {
|
|
|
6443
6459
|
return;
|
|
6444
6460
|
}
|
|
6445
6461
|
n.ready().then(function() {
|
|
6446
|
-
|
|
6462
|
+
Pe(n._dbInfo, Ft, function(o, i) {
|
|
6447
6463
|
if (o)
|
|
6448
6464
|
return s(o);
|
|
6449
6465
|
try {
|
|
@@ -6471,7 +6487,7 @@ function Mu(e, t) {
|
|
|
6471
6487
|
function Uu(e) {
|
|
6472
6488
|
var t = this, n = new F(function(r, a) {
|
|
6473
6489
|
t.ready().then(function() {
|
|
6474
|
-
|
|
6490
|
+
Pe(t._dbInfo, Ft, function(s, o) {
|
|
6475
6491
|
if (s)
|
|
6476
6492
|
return a(s);
|
|
6477
6493
|
try {
|
|
@@ -6582,8 +6598,8 @@ var xu = {
|
|
|
6582
6598
|
iterate: Du,
|
|
6583
6599
|
getItem: wu,
|
|
6584
6600
|
setItem: Ru,
|
|
6585
|
-
removeItem:
|
|
6586
|
-
clear:
|
|
6601
|
+
removeItem: ku,
|
|
6602
|
+
clear: Pu,
|
|
6587
6603
|
length: Fu,
|
|
6588
6604
|
key: Mu,
|
|
6589
6605
|
keys: Uu,
|
|
@@ -6592,26 +6608,26 @@ var xu = {
|
|
|
6592
6608
|
function Vu() {
|
|
6593
6609
|
return typeof openDatabase == "function";
|
|
6594
6610
|
}
|
|
6595
|
-
var
|
|
6596
|
-
function
|
|
6611
|
+
var Ue = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Gu = "~~local_forage_type~", da = /^~~local_forage_type~([^~]+)~/, qt = "__lfsc__:", qn = qt.length, gr = "arbf", Xn = "blob", hs = "si08", gs = "ui08", ps = "uic8", Es = "si16", bs = "si32", Ss = "ur16", vs = "ui32", As = "fl32", ys = "fl64", ma = qn + gr.length, ha = Object.prototype.toString;
|
|
6612
|
+
function Ns(e) {
|
|
6597
6613
|
var t = e.length * 0.75, n = e.length, r, a = 0, s, o, i, l;
|
|
6598
6614
|
e[e.length - 1] === "=" && (t--, e[e.length - 2] === "=" && t--);
|
|
6599
6615
|
var c = new ArrayBuffer(t), f = new Uint8Array(c);
|
|
6600
6616
|
for (r = 0; r < n; r += 4)
|
|
6601
|
-
s =
|
|
6617
|
+
s = Ue.indexOf(e[r]), o = Ue.indexOf(e[r + 1]), i = Ue.indexOf(e[r + 2]), l = Ue.indexOf(e[r + 3]), f[a++] = s << 2 | o >> 4, f[a++] = (o & 15) << 4 | i >> 2, f[a++] = (i & 3) << 6 | l & 63;
|
|
6602
6618
|
return c;
|
|
6603
6619
|
}
|
|
6604
6620
|
function Qn(e) {
|
|
6605
6621
|
var t = new Uint8Array(e), n = "", r;
|
|
6606
6622
|
for (r = 0; r < t.length; r += 3)
|
|
6607
|
-
n +=
|
|
6623
|
+
n += Ue[t[r] >> 2], n += Ue[(t[r] & 3) << 4 | t[r + 1] >> 4], n += Ue[(t[r + 1] & 15) << 2 | t[r + 2] >> 6], n += Ue[t[r + 2] & 63];
|
|
6608
6624
|
return t.length % 3 === 2 ? n = n.substring(0, n.length - 1) + "=" : t.length % 3 === 1 && (n = n.substring(0, n.length - 2) + "=="), n;
|
|
6609
6625
|
}
|
|
6610
6626
|
function $u(e, t) {
|
|
6611
6627
|
var n = "";
|
|
6612
6628
|
if (e && (n = ha.call(e)), e && (n === "[object ArrayBuffer]" || e.buffer && ha.call(e.buffer) === "[object ArrayBuffer]")) {
|
|
6613
6629
|
var r, a = qt;
|
|
6614
|
-
e instanceof ArrayBuffer ? (r = e, a += gr) : (r = e.buffer, n === "[object Int8Array]" ? a +=
|
|
6630
|
+
e instanceof ArrayBuffer ? (r = e, a += gr) : (r = e.buffer, n === "[object Int8Array]" ? a += hs : n === "[object Uint8Array]" ? a += gs : n === "[object Uint8ClampedArray]" ? a += ps : n === "[object Int16Array]" ? a += Es : n === "[object Uint16Array]" ? a += Ss : n === "[object Int32Array]" ? a += bs : n === "[object Uint32Array]" ? a += vs : n === "[object Float32Array]" ? a += As : n === "[object Float64Array]" ? a += ys : t(new Error("Failed to get type for BinaryArray"))), t(a + Qn(r));
|
|
6615
6631
|
} else if (n === "[object Blob]") {
|
|
6616
6632
|
var s = new FileReader();
|
|
6617
6633
|
s.onload = function() {
|
|
@@ -6636,29 +6652,29 @@ function Wu(e) {
|
|
|
6636
6652
|
var a = t.match(da);
|
|
6637
6653
|
r = a[1], t = t.substring(a[0].length);
|
|
6638
6654
|
}
|
|
6639
|
-
var s =
|
|
6655
|
+
var s = Ns(t);
|
|
6640
6656
|
switch (n) {
|
|
6641
6657
|
case gr:
|
|
6642
6658
|
return s;
|
|
6643
6659
|
case Xn:
|
|
6644
6660
|
return _r([s], { type: r });
|
|
6645
|
-
case
|
|
6661
|
+
case hs:
|
|
6646
6662
|
return new Int8Array(s);
|
|
6647
|
-
case
|
|
6663
|
+
case gs:
|
|
6648
6664
|
return new Uint8Array(s);
|
|
6649
|
-
case
|
|
6665
|
+
case ps:
|
|
6650
6666
|
return new Uint8ClampedArray(s);
|
|
6651
|
-
case
|
|
6667
|
+
case Es:
|
|
6652
6668
|
return new Int16Array(s);
|
|
6653
|
-
case vs:
|
|
6654
|
-
return new Uint16Array(s);
|
|
6655
6669
|
case Ss:
|
|
6670
|
+
return new Uint16Array(s);
|
|
6671
|
+
case bs:
|
|
6656
6672
|
return new Int32Array(s);
|
|
6657
|
-
case
|
|
6673
|
+
case vs:
|
|
6658
6674
|
return new Uint32Array(s);
|
|
6659
|
-
case
|
|
6675
|
+
case As:
|
|
6660
6676
|
return new Float32Array(s);
|
|
6661
|
-
case
|
|
6677
|
+
case ys:
|
|
6662
6678
|
return new Float64Array(s);
|
|
6663
6679
|
default:
|
|
6664
6680
|
throw new Error("Unkown type: " + n);
|
|
@@ -6667,10 +6683,10 @@ function Wu(e) {
|
|
|
6667
6683
|
var pr = {
|
|
6668
6684
|
serialize: $u,
|
|
6669
6685
|
deserialize: Wu,
|
|
6670
|
-
stringToBuffer:
|
|
6686
|
+
stringToBuffer: Ns,
|
|
6671
6687
|
bufferToString: Qn
|
|
6672
6688
|
};
|
|
6673
|
-
function
|
|
6689
|
+
function Ts(e, t, n, r) {
|
|
6674
6690
|
e.executeSql(
|
|
6675
6691
|
`CREATE TABLE IF NOT EXISTS ${t.storeName} (id INTEGER PRIMARY KEY, key unique, value)`,
|
|
6676
6692
|
[],
|
|
@@ -6697,7 +6713,7 @@ function Yu(e) {
|
|
|
6697
6713
|
return o(i);
|
|
6698
6714
|
}
|
|
6699
6715
|
n.db.transaction(function(i) {
|
|
6700
|
-
|
|
6716
|
+
Ts(
|
|
6701
6717
|
i,
|
|
6702
6718
|
n,
|
|
6703
6719
|
function() {
|
|
@@ -6721,7 +6737,7 @@ function Ge(e, t, n, r, a, s) {
|
|
|
6721
6737
|
"SELECT name FROM sqlite_master WHERE type='table' AND name = ?",
|
|
6722
6738
|
[t.storeName],
|
|
6723
6739
|
function(l, c) {
|
|
6724
|
-
c.rows.length ? s(l, i) :
|
|
6740
|
+
c.rows.length ? s(l, i) : Ts(
|
|
6725
6741
|
l,
|
|
6726
6742
|
t,
|
|
6727
6743
|
function() {
|
|
@@ -6743,7 +6759,7 @@ function Ge(e, t, n, r, a, s) {
|
|
|
6743
6759
|
}
|
|
6744
6760
|
function Hu(e, t) {
|
|
6745
6761
|
var n = this;
|
|
6746
|
-
e =
|
|
6762
|
+
e = ke(e);
|
|
6747
6763
|
var r = new F(function(a, s) {
|
|
6748
6764
|
n.ready().then(function() {
|
|
6749
6765
|
var o = n._dbInfo;
|
|
@@ -6797,9 +6813,9 @@ function Ku(e, t) {
|
|
|
6797
6813
|
});
|
|
6798
6814
|
return j(r, t), r;
|
|
6799
6815
|
}
|
|
6800
|
-
function
|
|
6816
|
+
function Os(e, t, n, r) {
|
|
6801
6817
|
var a = this;
|
|
6802
|
-
e =
|
|
6818
|
+
e = ke(e);
|
|
6803
6819
|
var s = new F(function(o, i) {
|
|
6804
6820
|
a.ready().then(function() {
|
|
6805
6821
|
t === void 0 && (t = null);
|
|
@@ -6824,7 +6840,7 @@ function Is(e, t, n, r) {
|
|
|
6824
6840
|
if (m.code === m.QUOTA_ERR) {
|
|
6825
6841
|
if (r > 0) {
|
|
6826
6842
|
o(
|
|
6827
|
-
|
|
6843
|
+
Os.apply(a, [
|
|
6828
6844
|
e,
|
|
6829
6845
|
l,
|
|
6830
6846
|
n,
|
|
@@ -6843,11 +6859,11 @@ function Is(e, t, n, r) {
|
|
|
6843
6859
|
return j(s, n), s;
|
|
6844
6860
|
}
|
|
6845
6861
|
function ju(e, t, n) {
|
|
6846
|
-
return
|
|
6862
|
+
return Os.apply(this, [e, t, n, 1]);
|
|
6847
6863
|
}
|
|
6848
6864
|
function qu(e, t) {
|
|
6849
6865
|
var n = this;
|
|
6850
|
-
e =
|
|
6866
|
+
e = ke(e);
|
|
6851
6867
|
var r = new F(function(a, s) {
|
|
6852
6868
|
n.ready().then(function() {
|
|
6853
6869
|
var o = n._dbInfo;
|
|
@@ -7055,7 +7071,7 @@ function nf() {
|
|
|
7055
7071
|
return !1;
|
|
7056
7072
|
}
|
|
7057
7073
|
}
|
|
7058
|
-
function
|
|
7074
|
+
function Is(e, t) {
|
|
7059
7075
|
var n = e.name + "/";
|
|
7060
7076
|
return e.storeName !== t.storeName && (n += e.storeName + "/"), n;
|
|
7061
7077
|
}
|
|
@@ -7075,7 +7091,7 @@ function sf(e) {
|
|
|
7075
7091
|
if (e)
|
|
7076
7092
|
for (var r in e)
|
|
7077
7093
|
n[r] = e[r];
|
|
7078
|
-
return n.keyPrefix =
|
|
7094
|
+
return n.keyPrefix = Is(e, t._defaultConfig), af() ? (t._dbInfo = n, n.serializer = pr, F.resolve()) : F.reject();
|
|
7079
7095
|
}
|
|
7080
7096
|
function of(e) {
|
|
7081
7097
|
var t = this, n = t.ready().then(function() {
|
|
@@ -7088,7 +7104,7 @@ function of(e) {
|
|
|
7088
7104
|
}
|
|
7089
7105
|
function lf(e, t) {
|
|
7090
7106
|
var n = this;
|
|
7091
|
-
e =
|
|
7107
|
+
e = ke(e);
|
|
7092
7108
|
var r = n.ready().then(function() {
|
|
7093
7109
|
var a = n._dbInfo, s = localStorage.getItem(a.keyPrefix + e);
|
|
7094
7110
|
return s && (s = a.serializer.deserialize(s)), s;
|
|
@@ -7142,7 +7158,7 @@ function _f(e) {
|
|
|
7142
7158
|
}
|
|
7143
7159
|
function df(e, t) {
|
|
7144
7160
|
var n = this;
|
|
7145
|
-
e =
|
|
7161
|
+
e = ke(e);
|
|
7146
7162
|
var r = n.ready().then(function() {
|
|
7147
7163
|
var a = n._dbInfo;
|
|
7148
7164
|
localStorage.removeItem(a.keyPrefix + e);
|
|
@@ -7151,7 +7167,7 @@ function df(e, t) {
|
|
|
7151
7167
|
}
|
|
7152
7168
|
function mf(e, t, n) {
|
|
7153
7169
|
var r = this;
|
|
7154
|
-
e =
|
|
7170
|
+
e = ke(e);
|
|
7155
7171
|
var a = r.ready().then(function() {
|
|
7156
7172
|
t === void 0 && (t = null);
|
|
7157
7173
|
var s = t;
|
|
@@ -7178,7 +7194,7 @@ function hf(e, t) {
|
|
|
7178
7194
|
}
|
|
7179
7195
|
var r = this, a;
|
|
7180
7196
|
return e.name ? a = new F(function(s) {
|
|
7181
|
-
e.storeName ? s(
|
|
7197
|
+
e.storeName ? s(Is(e, r._defaultConfig)) : s(`${e.name}/`);
|
|
7182
7198
|
}).then(function(s) {
|
|
7183
7199
|
for (var o = localStorage.length - 1; o >= 0; o--) {
|
|
7184
7200
|
var i = localStorage.key(o);
|
|
@@ -7209,9 +7225,9 @@ const pf = (e, t) => e === t || typeof e == "number" && typeof t == "number" &&
|
|
|
7209
7225
|
r++;
|
|
7210
7226
|
}
|
|
7211
7227
|
return !1;
|
|
7212
|
-
},
|
|
7228
|
+
}, Cs = Array.isArray || function(e) {
|
|
7213
7229
|
return Object.prototype.toString.call(e) === "[object Array]";
|
|
7214
|
-
},
|
|
7230
|
+
}, At = {}, ga = {}, it = {
|
|
7215
7231
|
INDEXEDDB: xu,
|
|
7216
7232
|
WEBSQL: tf,
|
|
7217
7233
|
LOCALSTORAGE: gf
|
|
@@ -7254,7 +7270,7 @@ function Ln() {
|
|
|
7254
7270
|
const t = arguments[e];
|
|
7255
7271
|
if (t)
|
|
7256
7272
|
for (let n in t)
|
|
7257
|
-
t.hasOwnProperty(n) && (
|
|
7273
|
+
t.hasOwnProperty(n) && (Cs(t[n]) ? arguments[0][n] = t[n].slice() : arguments[0][n] = t[n]);
|
|
7258
7274
|
}
|
|
7259
7275
|
return arguments[0];
|
|
7260
7276
|
}
|
|
@@ -7263,7 +7279,7 @@ class Er {
|
|
|
7263
7279
|
for (let n in it)
|
|
7264
7280
|
if (it.hasOwnProperty(n)) {
|
|
7265
7281
|
const r = it[n], a = r._driver;
|
|
7266
|
-
this[n] = a,
|
|
7282
|
+
this[n] = a, At[a] || this.defineDriver(r);
|
|
7267
7283
|
}
|
|
7268
7284
|
this._defaultConfig = Ln({}, Sf), 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(() => {
|
|
7269
7285
|
});
|
|
@@ -7329,7 +7345,7 @@ class Er {
|
|
|
7329
7345
|
}
|
|
7330
7346
|
})();
|
|
7331
7347
|
const u = function(m) {
|
|
7332
|
-
|
|
7348
|
+
At[i], At[i] = t, ga[i] = m, s();
|
|
7333
7349
|
};
|
|
7334
7350
|
"_support" in t ? t._support && typeof t._support == "function" ? t._support().then(u, o) : u(!!t._support) : u(!0);
|
|
7335
7351
|
} catch (i) {
|
|
@@ -7342,7 +7358,7 @@ class Er {
|
|
|
7342
7358
|
return this._driver || null;
|
|
7343
7359
|
}
|
|
7344
7360
|
getDriver(t, n, r) {
|
|
7345
|
-
const a =
|
|
7361
|
+
const a = At[t] ? F.resolve(At[t]) : F.reject(new Error("Driver not found."));
|
|
7346
7362
|
return ot(a, n, r), a;
|
|
7347
7363
|
}
|
|
7348
7364
|
getSerializer(t) {
|
|
@@ -7355,7 +7371,7 @@ class Er {
|
|
|
7355
7371
|
}
|
|
7356
7372
|
setDriver(t, n, r) {
|
|
7357
7373
|
const a = this;
|
|
7358
|
-
|
|
7374
|
+
Cs(t) || (t = [t]);
|
|
7359
7375
|
const s = this._getSupportedDrivers(t);
|
|
7360
7376
|
function o() {
|
|
7361
7377
|
a._config.driver = a.driver();
|
|
@@ -7522,7 +7538,7 @@ class yf {
|
|
|
7522
7538
|
}
|
|
7523
7539
|
}
|
|
7524
7540
|
}
|
|
7525
|
-
const
|
|
7541
|
+
const P = new bu({
|
|
7526
7542
|
prefix: ""
|
|
7527
7543
|
}), Nf = new Af({
|
|
7528
7544
|
db_name: "ShiyunConsole"
|
|
@@ -7574,7 +7590,7 @@ class nn {
|
|
|
7574
7590
|
}
|
|
7575
7591
|
/* 初始化 request 句柄 */
|
|
7576
7592
|
_initReqHandle() {
|
|
7577
|
-
this.requestHandle =
|
|
7593
|
+
this.requestHandle = Qs.create({
|
|
7578
7594
|
timeout: 1e4,
|
|
7579
7595
|
// request timeout
|
|
7580
7596
|
// 表示跨域请求时是否需要使用凭证;
|
|
@@ -7949,7 +7965,7 @@ const If = {
|
|
|
7949
7965
|
};
|
|
7950
7966
|
nn.prototype.resetNetError = function(e) {
|
|
7951
7967
|
if (!me.__POWERED_BY_QIANKUN__ && e.status && e.status == 401)
|
|
7952
|
-
return Te().SA_ACCOUNT_LOGOUT(),
|
|
7968
|
+
return Te().SA_ACCOUNT_LOGOUT(), Hs.alert("未经授权,请登录", "友情提示", {
|
|
7953
7969
|
// if you want to disable its autofocus
|
|
7954
7970
|
// autofocus: false,
|
|
7955
7971
|
confirmButtonText: "OK",
|
|
@@ -7958,7 +7974,7 @@ nn.prototype.resetNetError = function(e) {
|
|
|
7958
7974
|
}
|
|
7959
7975
|
}), !1;
|
|
7960
7976
|
let t = (e.status ? `[ ${e.status} ] ` : "") + (e.title || "提示");
|
|
7961
|
-
|
|
7977
|
+
Ks({
|
|
7962
7978
|
title: t,
|
|
7963
7979
|
message: e.message,
|
|
7964
7980
|
type: e.type || "info",
|
|
@@ -7979,8 +7995,8 @@ nn.prototype.cancelRequest = function(e) {
|
|
|
7979
7995
|
}), t > 0 && (__ajaxList = __ajaxList.filter((n) => n.id !== e)), t;
|
|
7980
7996
|
};
|
|
7981
7997
|
let qe = null;
|
|
7982
|
-
function
|
|
7983
|
-
const t =
|
|
7998
|
+
function Ls(e = {}) {
|
|
7999
|
+
const t = Tt();
|
|
7984
8000
|
qe = new nn({
|
|
7985
8001
|
// timeout: 60 * 1000, // 请求超时时间毫秒
|
|
7986
8002
|
// withCredentials: true, // true|false 异步请求携带cookie(Check cross-site Access-Control)
|
|
@@ -7989,9 +8005,9 @@ function ws(e = {}) {
|
|
|
7989
8005
|
syOpenAppProject: t.syAppProjectSign || "",
|
|
7990
8006
|
syOpenAppId: t.syAppConnectId || "",
|
|
7991
8007
|
syOpenAppRole: t.syAppConnectRole || "",
|
|
7992
|
-
syOpenAppToken:
|
|
8008
|
+
syOpenAppToken: P.localGet("syCacheAppToken") || "",
|
|
7993
8009
|
"Sy-Client-Platform": "pc-web",
|
|
7994
|
-
Authorization: "Bearer " +
|
|
8010
|
+
Authorization: "Bearer " + P.localGet("syCacheAppJwt") || ""
|
|
7995
8011
|
},
|
|
7996
8012
|
requests: {
|
|
7997
8013
|
// '__Access-Control-Allow-Origin': true
|
|
@@ -8013,7 +8029,7 @@ function ws(e = {}) {
|
|
|
8013
8029
|
return qe.setApiFlag(a), qe.setApiAuth(s), qe;
|
|
8014
8030
|
}
|
|
8015
8031
|
function Lf() {
|
|
8016
|
-
return qe || (qe =
|
|
8032
|
+
return qe || (qe = Ls()), qe;
|
|
8017
8033
|
}
|
|
8018
8034
|
const fe = new Proxy(
|
|
8019
8035
|
{},
|
|
@@ -8070,7 +8086,7 @@ var wf = {
|
|
|
8070
8086
|
},
|
|
8071
8087
|
// 跨应用路由跳转
|
|
8072
8088
|
jumpsQiankun(e) {
|
|
8073
|
-
|
|
8089
|
+
Zs(e);
|
|
8074
8090
|
}
|
|
8075
8091
|
}
|
|
8076
8092
|
};
|
|
@@ -8267,16 +8283,16 @@ var Rf = {
|
|
|
8267
8283
|
}
|
|
8268
8284
|
}
|
|
8269
8285
|
};
|
|
8270
|
-
function
|
|
8271
|
-
e.use(
|
|
8286
|
+
function kf(e) {
|
|
8287
|
+
e.use(Ys, {
|
|
8272
8288
|
// size: 'default',
|
|
8273
8289
|
locale: Rf
|
|
8274
8290
|
});
|
|
8275
|
-
for (const [t, n] of Object.entries(
|
|
8291
|
+
for (const [t, n] of Object.entries(js))
|
|
8276
8292
|
e.component("ElIcon" + t, n);
|
|
8277
8293
|
}
|
|
8278
|
-
function
|
|
8279
|
-
e.use(
|
|
8294
|
+
function Pf(e) {
|
|
8295
|
+
e.use(qs, {
|
|
8280
8296
|
// 所有和上传相关(上传图片, 上传视频, 富文本中图片上传)
|
|
8281
8297
|
uploadImg: {
|
|
8282
8298
|
// fileSize: 5,
|
|
@@ -8305,25 +8321,25 @@ function kf(e) {
|
|
|
8305
8321
|
// }
|
|
8306
8322
|
}
|
|
8307
8323
|
});
|
|
8308
|
-
for (const [t, n] of Object.entries(
|
|
8324
|
+
for (const [t, n] of Object.entries(Xs))
|
|
8309
8325
|
e.component("cvSvg" + t, n);
|
|
8310
8326
|
}
|
|
8311
8327
|
async function Kf(e, t) {
|
|
8312
|
-
|
|
8328
|
+
Js(t), Ls(e), Pt().init(), Be().init(), await fr().init(), await Te().init();
|
|
8313
8329
|
}
|
|
8314
8330
|
async function jf(e, t, n, r, a = "", s = null) {
|
|
8315
8331
|
Zt().init(r), en().init(n);
|
|
8316
8332
|
let o = e.config.globalProperties;
|
|
8317
8333
|
o.$onLaunched = new Promise((l) => {
|
|
8318
8334
|
o.$isResolve = l;
|
|
8319
|
-
}), o.$request = fe, o.$cache =
|
|
8335
|
+
}), o.$request = fe, o.$cache = P, kf(e), Pf(e), Df(e, o), e.mixin(nc()), e.mixin(wf), await Ff(t, r, a), e.use(as);
|
|
8320
8336
|
let i = Pt().SA_LANGUAGE_GET();
|
|
8321
|
-
|
|
8337
|
+
Ul(i, s), window.$t = Ke.t;
|
|
8322
8338
|
}
|
|
8323
8339
|
async function Ff(e, t, n) {
|
|
8324
|
-
const r =
|
|
8340
|
+
const r = Ot(), a = Te(), s = Zt(), o = en();
|
|
8325
8341
|
r.QK_SEND_MSG_REG_SUBMENU(t);
|
|
8326
|
-
let i =
|
|
8342
|
+
let i = Tt().syProductSign || "";
|
|
8327
8343
|
o.SA_PERMS_ROUTER_ADD(e, i), s.SA_MENU_PARSE(), r.QK_SEND_MSG_ROUTER_BEFORE(n);
|
|
8328
8344
|
let l = !1, c = !1, f = !1;
|
|
8329
8345
|
e.beforeEach((u, m, p) => {
|
|
@@ -8353,29 +8369,29 @@ async function Ff(e, t, n) {
|
|
|
8353
8369
|
});
|
|
8354
8370
|
}
|
|
8355
8371
|
async function qf(e, t, n) {
|
|
8356
|
-
me.__POWERED_BY_QIANKUN__ ?
|
|
8372
|
+
me.__POWERED_BY_QIANKUN__ ? to(e, t, n) : t();
|
|
8357
8373
|
}
|
|
8358
8374
|
export {
|
|
8359
8375
|
fe as H,
|
|
8360
8376
|
Zc as S,
|
|
8361
|
-
|
|
8362
|
-
|
|
8377
|
+
Re as _,
|
|
8378
|
+
Be as a,
|
|
8363
8379
|
Te as b,
|
|
8364
8380
|
fr as c,
|
|
8365
|
-
|
|
8381
|
+
Tt as d,
|
|
8366
8382
|
Yf as e,
|
|
8367
|
-
|
|
8383
|
+
uc as f,
|
|
8368
8384
|
Hf as g,
|
|
8369
|
-
|
|
8385
|
+
Ot as h,
|
|
8370
8386
|
is as i,
|
|
8371
8387
|
Zt as j,
|
|
8372
8388
|
en as k,
|
|
8373
|
-
|
|
8374
|
-
|
|
8389
|
+
P as l,
|
|
8390
|
+
Ls as m,
|
|
8375
8391
|
Kf as n,
|
|
8376
8392
|
jf as o,
|
|
8377
8393
|
qf as p,
|
|
8378
8394
|
me as q,
|
|
8379
|
-
|
|
8395
|
+
Js as s,
|
|
8380
8396
|
Pt as u
|
|
8381
8397
|
};
|