@10yun/open-sdk 0.3.120 → 0.3.122
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-Ckqzkb2d.js → 404-BzS1uV1B.js} +1 -1
- package/dist/{404-DjV-wc2G.cjs → 404-DJdhv64H.cjs} +1 -1
- package/dist/{alone_run-CU0v4Ux1.cjs → alone_run-1wMs67Iw.cjs} +1 -1
- package/dist/{alone_run-CKIcEdcM.js → alone_run-D6iWzaJ1.js} +1 -1
- package/dist/{index-BZ7rA4yA.js → index-CXMwNJfl.js} +495 -477
- package/dist/{index-D4fwcGnh.cjs → index-CYJLKCkv.cjs} +1 -1
- package/dist/{login-DX6hy1Uz.js → login-1tlYEiXY.js} +1 -1
- package/dist/{login-bfXmR5MO.cjs → login-B0exzC2L.cjs} +1 -1
- package/dist/{none-BY4Ey_iO.cjs → none-CQcLemU1.cjs} +1 -1
- package/dist/{none-DbdDHIti.js → none-CX-nyJTn.js} +1 -1
- package/dist/open-sdk.cjs.js +1 -1
- package/dist/open-sdk.es.js +1 -1
- package/package.json +1 -1
|
@@ -208,7 +208,7 @@ function fs(e) {
|
|
|
208
208
|
r[a] = e.charCodeAt(a);
|
|
209
209
|
return n;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function ds(e) {
|
|
212
212
|
return new U(function(t) {
|
|
213
213
|
var n = e.transaction(Mn, zt), r = aa([""]);
|
|
214
214
|
n.objectStore(Mn).put(r, "key"), n.onabort = function(a) {
|
|
@@ -223,8 +223,8 @@ function _s(e) {
|
|
|
223
223
|
return !1;
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
|
-
function
|
|
227
|
-
return typeof Vt == "boolean" ? U.resolve(Vt) :
|
|
226
|
+
function _s(e) {
|
|
227
|
+
return typeof Vt == "boolean" ? U.resolve(Vt) : ds(e).then(function(t) {
|
|
228
228
|
return Vt = t, Vt;
|
|
229
229
|
});
|
|
230
230
|
}
|
|
@@ -390,8 +390,8 @@ function ps(e) {
|
|
|
390
390
|
}).then(function(f) {
|
|
391
391
|
n.db = a.db = f, t._dbInfo = n;
|
|
392
392
|
for (var u = 0; u < c.length; u++) {
|
|
393
|
-
var
|
|
394
|
-
|
|
393
|
+
var _ = c[u];
|
|
394
|
+
_ !== t && (_._dbInfo.db = n.db, _._dbInfo.version = n.version);
|
|
395
395
|
}
|
|
396
396
|
});
|
|
397
397
|
}
|
|
@@ -434,10 +434,10 @@ function Ss(e, t) {
|
|
|
434
434
|
c.onsuccess = function() {
|
|
435
435
|
var u = c.result;
|
|
436
436
|
if (u) {
|
|
437
|
-
var
|
|
438
|
-
Pr(
|
|
437
|
+
var _ = u.value;
|
|
438
|
+
Pr(_) && (_ = Rr(_));
|
|
439
439
|
var g = e(
|
|
440
|
-
|
|
440
|
+
_,
|
|
441
441
|
u.key,
|
|
442
442
|
f++
|
|
443
443
|
);
|
|
@@ -461,7 +461,7 @@ function bs(e, t, n) {
|
|
|
461
461
|
var a = new U(function(o, s) {
|
|
462
462
|
var l;
|
|
463
463
|
r.ready().then(function() {
|
|
464
|
-
return l = r._dbInfo, us.call(t) === "[object Blob]" ?
|
|
464
|
+
return l = r._dbInfo, us.call(t) === "[object Blob]" ? _s(l.db).then(function(i) {
|
|
465
465
|
return i ? t : ms(t);
|
|
466
466
|
}) : t;
|
|
467
467
|
}).then(function(i) {
|
|
@@ -473,11 +473,11 @@ function bs(e, t, n) {
|
|
|
473
473
|
r._dbInfo.storeName
|
|
474
474
|
);
|
|
475
475
|
i === null && (i = void 0);
|
|
476
|
-
var
|
|
476
|
+
var _ = u.put(i, e);
|
|
477
477
|
f.oncomplete = function() {
|
|
478
478
|
i === void 0 && (i = null), o(i);
|
|
479
479
|
}, f.onabort = f.onerror = function() {
|
|
480
|
-
var g =
|
|
480
|
+
var g = _.error ? _.error : _.transaction.error;
|
|
481
481
|
s(g);
|
|
482
482
|
};
|
|
483
483
|
} catch (g) {
|
|
@@ -645,11 +645,11 @@ function Cs(e, t) {
|
|
|
645
645
|
jt(e);
|
|
646
646
|
const c = ve[e.name], f = c.forages;
|
|
647
647
|
l.close();
|
|
648
|
-
for (let
|
|
649
|
-
const g = f[
|
|
648
|
+
for (let _ = 0; _ < f.length; _++) {
|
|
649
|
+
const g = f[_];
|
|
650
650
|
g._dbInfo.db = null, g._dbInfo.version = i;
|
|
651
651
|
}
|
|
652
|
-
return new U((
|
|
652
|
+
return new U((_, g) => {
|
|
653
653
|
const T = ct.open(e.name, i);
|
|
654
654
|
T.onerror = (p) => {
|
|
655
655
|
T.result.close(), g(p);
|
|
@@ -658,27 +658,27 @@ function Cs(e, t) {
|
|
|
658
658
|
p.deleteObjectStore(e.storeName);
|
|
659
659
|
}, T.onsuccess = () => {
|
|
660
660
|
const p = T.result;
|
|
661
|
-
p.close(),
|
|
661
|
+
p.close(), _(p);
|
|
662
662
|
};
|
|
663
|
-
}).then((
|
|
664
|
-
c.db =
|
|
663
|
+
}).then((_) => {
|
|
664
|
+
c.db = _;
|
|
665
665
|
for (let g = 0; g < f.length; g++) {
|
|
666
666
|
const T = f[g];
|
|
667
|
-
T._dbInfo.db =
|
|
667
|
+
T._dbInfo.db = _, Un(T._dbInfo);
|
|
668
668
|
}
|
|
669
|
-
}).catch((
|
|
670
|
-
throw (xn(e,
|
|
671
|
-
}),
|
|
669
|
+
}).catch((_) => {
|
|
670
|
+
throw (xn(e, _) || U.resolve()).catch(() => {
|
|
671
|
+
}), _;
|
|
672
672
|
});
|
|
673
673
|
}) : a = s.then((l) => {
|
|
674
674
|
jt(e);
|
|
675
675
|
const i = ve[e.name], c = i.forages;
|
|
676
676
|
l.close();
|
|
677
677
|
for (var f = 0; f < c.length; f++) {
|
|
678
|
-
const
|
|
679
|
-
|
|
678
|
+
const _ = c[f];
|
|
679
|
+
_._dbInfo.db = null;
|
|
680
680
|
}
|
|
681
|
-
return new U((
|
|
681
|
+
return new U((_, g) => {
|
|
682
682
|
var T = ct.deleteDatabase(e.name);
|
|
683
683
|
T.onerror = () => {
|
|
684
684
|
const p = T.result;
|
|
@@ -686,17 +686,17 @@ function Cs(e, t) {
|
|
|
686
686
|
}, T.onblocked = () => {
|
|
687
687
|
}, T.onsuccess = () => {
|
|
688
688
|
const p = T.result;
|
|
689
|
-
p && p.close(),
|
|
689
|
+
p && p.close(), _(p);
|
|
690
690
|
};
|
|
691
|
-
}).then((
|
|
692
|
-
i.db =
|
|
691
|
+
}).then((_) => {
|
|
692
|
+
i.db = _;
|
|
693
693
|
for (var g = 0; g < c.length; g++) {
|
|
694
694
|
const T = c[g];
|
|
695
695
|
Un(T._dbInfo);
|
|
696
696
|
}
|
|
697
|
-
}).catch((
|
|
698
|
-
throw (xn(e,
|
|
699
|
-
}),
|
|
697
|
+
}).catch((_) => {
|
|
698
|
+
throw (xn(e, _) || U.resolve()).catch(() => {
|
|
699
|
+
}), _;
|
|
700
700
|
});
|
|
701
701
|
});
|
|
702
702
|
}
|
|
@@ -904,11 +904,11 @@ function Ps(e, t) {
|
|
|
904
904
|
`SELECT * FROM ${s.storeName}`,
|
|
905
905
|
[],
|
|
906
906
|
function(i, c) {
|
|
907
|
-
for (var f = c.rows, u = f.length,
|
|
908
|
-
var g = f.item(
|
|
907
|
+
for (var f = c.rows, u = f.length, _ = 0; _ < u; _++) {
|
|
908
|
+
var g = f.item(_), T = g.value;
|
|
909
909
|
if (T && (T = s.serializer.deserialize(
|
|
910
910
|
T
|
|
911
|
-
)), T = e(T, g.key,
|
|
911
|
+
)), T = e(T, g.key, _ + 1), T !== void 0) {
|
|
912
912
|
a(T);
|
|
913
913
|
return;
|
|
914
914
|
}
|
|
@@ -933,9 +933,9 @@ function jr(e, t, n, r) {
|
|
|
933
933
|
var i = t, c = a._dbInfo;
|
|
934
934
|
c.serializer.serialize(t, function(f, u) {
|
|
935
935
|
u ? l(u) : c.db.transaction(
|
|
936
|
-
function(
|
|
936
|
+
function(_) {
|
|
937
937
|
$e(
|
|
938
|
-
|
|
938
|
+
_,
|
|
939
939
|
c,
|
|
940
940
|
`INSERT OR REPLACE INTO ${c.storeName} (key, value) VALUES (?, ?)`,
|
|
941
941
|
[e, f],
|
|
@@ -947,8 +947,8 @@ function jr(e, t, n, r) {
|
|
|
947
947
|
}
|
|
948
948
|
);
|
|
949
949
|
},
|
|
950
|
-
function(
|
|
951
|
-
if (
|
|
950
|
+
function(_) {
|
|
951
|
+
if (_.code === _.QUOTA_ERR) {
|
|
952
952
|
if (r > 0) {
|
|
953
953
|
s(
|
|
954
954
|
jr.apply(a, [
|
|
@@ -960,7 +960,7 @@ function jr(e, t, n, r) {
|
|
|
960
960
|
);
|
|
961
961
|
return;
|
|
962
962
|
}
|
|
963
|
-
l(
|
|
963
|
+
l(_);
|
|
964
964
|
}
|
|
965
965
|
}
|
|
966
966
|
);
|
|
@@ -1143,7 +1143,7 @@ function $s(e, t) {
|
|
|
1143
1143
|
);
|
|
1144
1144
|
});
|
|
1145
1145
|
}
|
|
1146
|
-
for (var f = [], u = 0,
|
|
1146
|
+
for (var f = [], u = 0, _ = o.storeNames.length; u < _; u++)
|
|
1147
1147
|
f.push(
|
|
1148
1148
|
c(o.storeNames[u])
|
|
1149
1149
|
);
|
|
@@ -1426,8 +1426,8 @@ class ca {
|
|
|
1426
1426
|
return;
|
|
1427
1427
|
}
|
|
1428
1428
|
const c = yn.concat("_initStorage");
|
|
1429
|
-
for (let
|
|
1430
|
-
const T = c[
|
|
1429
|
+
for (let _ = 0, g = c.length; _ < g; _++) {
|
|
1430
|
+
const T = c[_];
|
|
1431
1431
|
if ((!oi(
|
|
1432
1432
|
Yt,
|
|
1433
1433
|
T
|
|
@@ -1437,7 +1437,7 @@ class ca {
|
|
|
1437
1437
|
}
|
|
1438
1438
|
}
|
|
1439
1439
|
(function() {
|
|
1440
|
-
const
|
|
1440
|
+
const _ = function(g) {
|
|
1441
1441
|
return function() {
|
|
1442
1442
|
const T = new Error(
|
|
1443
1443
|
`Method ${g} is not implemented by the current driver`
|
|
@@ -1450,13 +1450,13 @@ class ca {
|
|
|
1450
1450
|
};
|
|
1451
1451
|
for (let g = 0, T = Yt.length; g < T; g++) {
|
|
1452
1452
|
const p = Yt[g];
|
|
1453
|
-
t[p] || (t[p] =
|
|
1453
|
+
t[p] || (t[p] = _(
|
|
1454
1454
|
p
|
|
1455
1455
|
));
|
|
1456
1456
|
}
|
|
1457
1457
|
})();
|
|
1458
|
-
const u = function(
|
|
1459
|
-
St[l], St[l] = t, La[l] =
|
|
1458
|
+
const u = function(_) {
|
|
1459
|
+
St[l], St[l] = t, La[l] = _, o();
|
|
1460
1460
|
};
|
|
1461
1461
|
"_support" in t ? t._support && typeof t._support == "function" ? t._support().then(u, s) : u(!!t._support) : u(!0);
|
|
1462
1462
|
} catch (l) {
|
|
@@ -1493,10 +1493,10 @@ class ca {
|
|
|
1493
1493
|
function i(f) {
|
|
1494
1494
|
return function() {
|
|
1495
1495
|
let u = 0;
|
|
1496
|
-
function
|
|
1496
|
+
function _() {
|
|
1497
1497
|
for (; u < f.length; ) {
|
|
1498
1498
|
let T = f[u];
|
|
1499
|
-
return u++, a._dbInfo = null, a._ready = null, a.getDriver(T).then(l).catch(
|
|
1499
|
+
return u++, a._dbInfo = null, a._ready = null, a.getDriver(T).then(l).catch(_);
|
|
1500
1500
|
}
|
|
1501
1501
|
s();
|
|
1502
1502
|
const g = new Error(
|
|
@@ -1504,7 +1504,7 @@ class ca {
|
|
|
1504
1504
|
);
|
|
1505
1505
|
return a._driverSet = U.reject(g), a._driverSet;
|
|
1506
1506
|
}
|
|
1507
|
-
return
|
|
1507
|
+
return _();
|
|
1508
1508
|
};
|
|
1509
1509
|
}
|
|
1510
1510
|
const c = this._driverSet !== null ? this._driverSet.catch(() => U.resolve()) : U.resolve();
|
|
@@ -1655,8 +1655,8 @@ const I = new is({
|
|
|
1655
1655
|
db_name: "ShiyunConsole"
|
|
1656
1656
|
});
|
|
1657
1657
|
window.gbIdbObj = fi;
|
|
1658
|
-
const
|
|
1659
|
-
window.gbSessObj =
|
|
1658
|
+
const di = new ui({});
|
|
1659
|
+
window.gbSessObj = di;
|
|
1660
1660
|
I.idbGetItem = function(e) {
|
|
1661
1661
|
return window.gbIdbObj.idbGetItem(e);
|
|
1662
1662
|
};
|
|
@@ -1683,7 +1683,7 @@ I.idbGetJson = function(e, t) {
|
|
|
1683
1683
|
* (c) 2021-2022 Teng Mao Qing
|
|
1684
1684
|
* Released under the MIT License.
|
|
1685
1685
|
*/
|
|
1686
|
-
var pe = typeof window < "u" ? window.proxy || window : {},
|
|
1686
|
+
var pe = typeof window < "u" ? window.proxy || window : {}, _i = function(e) {
|
|
1687
1687
|
pe != null && pe.__POWERED_BY_QIANKUN__ && (window.moudleQiankunAppLifeCycles || (window.moudleQiankunAppLifeCycles = {}), pe.qiankunName && (window.moudleQiankunAppLifeCycles[pe.qiankunName] = e));
|
|
1688
1688
|
};
|
|
1689
1689
|
function mi(e = "/", t = null, n = {}) {
|
|
@@ -1716,7 +1716,7 @@ function hi(e) {
|
|
|
1716
1716
|
}, !0), At.setGlobalState = e && e.setGlobalState, At.name = e && e.name;
|
|
1717
1717
|
}
|
|
1718
1718
|
function gi(e, t, n) {
|
|
1719
|
-
|
|
1719
|
+
_i({
|
|
1720
1720
|
/**
|
|
1721
1721
|
* @name 微应用初始化
|
|
1722
1722
|
* @param {Object} props 主应用下发的props
|
|
@@ -1864,7 +1864,7 @@ function Ae(e, t) {
|
|
|
1864
1864
|
return Ai.call(e, t);
|
|
1865
1865
|
}
|
|
1866
1866
|
const ae = Array.isArray, J = (e) => typeof e == "function", P = (e) => typeof e == "string", K = (e) => typeof e == "boolean", H = (e) => e !== null && typeof e == "object", Ni = (e) => H(e) && J(e.then) && J(e.catch), Qr = Object.prototype.toString, fa = (e) => Qr.call(e), G = (e) => fa(e) === "[object Object]", Ci = (e) => e == null ? "" : ae(e) || G(e) && e.toString === Qr ? JSON.stringify(e, null, 2) : String(e);
|
|
1867
|
-
function
|
|
1867
|
+
function da(e, t = "") {
|
|
1868
1868
|
return e.reduce((n, r, a) => a === 0 ? n + r : n + t + r, "");
|
|
1869
1869
|
}
|
|
1870
1870
|
const Pa = 2;
|
|
@@ -1896,7 +1896,7 @@ function Oi(e, t = 0, n = e.length) {
|
|
|
1896
1896
|
return o.join(`
|
|
1897
1897
|
`);
|
|
1898
1898
|
}
|
|
1899
|
-
function
|
|
1899
|
+
function _a() {
|
|
1900
1900
|
const e = /* @__PURE__ */ new Map();
|
|
1901
1901
|
return {
|
|
1902
1902
|
events: e,
|
|
@@ -1979,7 +1979,7 @@ const x = {
|
|
|
1979
1979
|
// minimizer error messages
|
|
1980
1980
|
[x.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
1981
1981
|
};
|
|
1982
|
-
function
|
|
1982
|
+
function _t(e, t, n = {}) {
|
|
1983
1983
|
const { domain: r, messages: a, args: o } = n, s = process.env.NODE_ENV !== "production" ? Zt((a || wi)[e] || "", ...o || []) : e, l = new SyntaxError(String(s));
|
|
1984
1984
|
return l.code = e, t && (l.location = t), l.domain = r, l;
|
|
1985
1985
|
}
|
|
@@ -1991,7 +1991,7 @@ const ki = /<\/?[\w\s="/.':;#-\/]+>/, Ri = (e) => ki.test(e), Oe = " ", Pi = "\r
|
|
|
1991
1991
|
function Ui(e) {
|
|
1992
1992
|
const t = e;
|
|
1993
1993
|
let n = 0, r = 1, a = 1, o = 0;
|
|
1994
|
-
const s = (A) => t[A] === Pi && t[A + 1] === fe, l = (A) => t[A] === fe, i = (A) => t[A] === Mi, c = (A) => t[A] === Fi, f = (A) => s(A) || l(A) || i(A) || c(A), u = () => n,
|
|
1994
|
+
const s = (A) => t[A] === Pi && t[A + 1] === fe, l = (A) => t[A] === fe, i = (A) => t[A] === Mi, c = (A) => t[A] === Fi, f = (A) => s(A) || l(A) || i(A) || c(A), u = () => n, _ = () => r, g = () => a, T = () => o, p = (A) => s(A) || i(A) || c(A) ? fe : t[A], w = () => p(n), m = () => p(n + o);
|
|
1995
1995
|
function E() {
|
|
1996
1996
|
return o = 0, f(n) && (r++, a = 0), s(n) && n++, n++, a++, t[n];
|
|
1997
1997
|
}
|
|
@@ -2012,7 +2012,7 @@ function Ui(e) {
|
|
|
2012
2012
|
}
|
|
2013
2013
|
return {
|
|
2014
2014
|
index: u,
|
|
2015
|
-
line:
|
|
2015
|
+
line: _,
|
|
2016
2016
|
column: g,
|
|
2017
2017
|
peekOffset: T,
|
|
2018
2018
|
charAt: p,
|
|
@@ -2040,140 +2040,140 @@ function Bi(e, t = {}) {
|
|
|
2040
2040
|
inLinked: !1,
|
|
2041
2041
|
text: ""
|
|
2042
2042
|
}, c = () => i, { onError: f } = t;
|
|
2043
|
-
function u(
|
|
2043
|
+
function u(d, h, N, ...M) {
|
|
2044
2044
|
const ne = c();
|
|
2045
2045
|
if (h.column += N, h.offset += N, f) {
|
|
2046
|
-
const oe = n ? $n(ne.startLoc, h) : null, j =
|
|
2046
|
+
const oe = n ? $n(ne.startLoc, h) : null, j = _t(d, oe, {
|
|
2047
2047
|
domain: Vi,
|
|
2048
2048
|
args: M
|
|
2049
2049
|
});
|
|
2050
2050
|
f(j);
|
|
2051
2051
|
}
|
|
2052
2052
|
}
|
|
2053
|
-
function d
|
|
2054
|
-
|
|
2053
|
+
function _(d, h, N) {
|
|
2054
|
+
d.endLoc = o(), d.currentType = h;
|
|
2055
2055
|
const M = { type: h };
|
|
2056
|
-
return n && (M.loc = $n(
|
|
2056
|
+
return n && (M.loc = $n(d.startLoc, d.endLoc)), N != null && (M.value = N), M;
|
|
2057
2057
|
}
|
|
2058
|
-
const g = (
|
|
2059
|
-
|
|
2058
|
+
const g = (d) => _(
|
|
2059
|
+
d,
|
|
2060
2060
|
13
|
|
2061
2061
|
/* TokenTypes.EOF */
|
|
2062
2062
|
);
|
|
2063
|
-
function T(
|
|
2064
|
-
return
|
|
2063
|
+
function T(d, h) {
|
|
2064
|
+
return d.currentChar() === h ? (d.next(), h) : (u(x.EXPECTED_TOKEN, o(), 0, h), "");
|
|
2065
2065
|
}
|
|
2066
|
-
function p(
|
|
2066
|
+
function p(d) {
|
|
2067
2067
|
let h = "";
|
|
2068
|
-
for (;
|
|
2069
|
-
h +=
|
|
2068
|
+
for (; d.currentPeek() === Oe || d.currentPeek() === fe; )
|
|
2069
|
+
h += d.currentPeek(), d.peek();
|
|
2070
2070
|
return h;
|
|
2071
2071
|
}
|
|
2072
|
-
function w(
|
|
2073
|
-
const h = p(
|
|
2074
|
-
return
|
|
2072
|
+
function w(d) {
|
|
2073
|
+
const h = p(d);
|
|
2074
|
+
return d.skipToPeek(), h;
|
|
2075
2075
|
}
|
|
2076
|
-
function m(
|
|
2077
|
-
if (
|
|
2076
|
+
function m(d) {
|
|
2077
|
+
if (d === ke)
|
|
2078
2078
|
return !1;
|
|
2079
|
-
const h =
|
|
2079
|
+
const h = d.charCodeAt(0);
|
|
2080
2080
|
return h >= 97 && h <= 122 || // a-z
|
|
2081
2081
|
h >= 65 && h <= 90 || // A-Z
|
|
2082
2082
|
h === 95;
|
|
2083
2083
|
}
|
|
2084
|
-
function E(
|
|
2085
|
-
if (
|
|
2084
|
+
function E(d) {
|
|
2085
|
+
if (d === ke)
|
|
2086
2086
|
return !1;
|
|
2087
|
-
const h =
|
|
2087
|
+
const h = d.charCodeAt(0);
|
|
2088
2088
|
return h >= 48 && h <= 57;
|
|
2089
2089
|
}
|
|
2090
|
-
function S(
|
|
2090
|
+
function S(d, h) {
|
|
2091
2091
|
const { currentType: N } = h;
|
|
2092
2092
|
if (N !== 2)
|
|
2093
2093
|
return !1;
|
|
2094
|
-
p(
|
|
2095
|
-
const M = m(
|
|
2096
|
-
return
|
|
2094
|
+
p(d);
|
|
2095
|
+
const M = m(d.currentPeek());
|
|
2096
|
+
return d.resetPeek(), M;
|
|
2097
2097
|
}
|
|
2098
|
-
function y(
|
|
2098
|
+
function y(d, h) {
|
|
2099
2099
|
const { currentType: N } = h;
|
|
2100
2100
|
if (N !== 2)
|
|
2101
2101
|
return !1;
|
|
2102
|
-
p(
|
|
2103
|
-
const M =
|
|
2104
|
-
return
|
|
2102
|
+
p(d);
|
|
2103
|
+
const M = d.currentPeek() === "-" ? d.peek() : d.currentPeek(), ne = E(M);
|
|
2104
|
+
return d.resetPeek(), ne;
|
|
2105
2105
|
}
|
|
2106
|
-
function k(
|
|
2106
|
+
function k(d, h) {
|
|
2107
2107
|
const { currentType: N } = h;
|
|
2108
2108
|
if (N !== 2)
|
|
2109
2109
|
return !1;
|
|
2110
|
-
p(
|
|
2111
|
-
const M =
|
|
2112
|
-
return
|
|
2110
|
+
p(d);
|
|
2111
|
+
const M = d.currentPeek() === Fa;
|
|
2112
|
+
return d.resetPeek(), M;
|
|
2113
2113
|
}
|
|
2114
|
-
function R(
|
|
2114
|
+
function R(d, h) {
|
|
2115
2115
|
const { currentType: N } = h;
|
|
2116
2116
|
if (N !== 7)
|
|
2117
2117
|
return !1;
|
|
2118
|
-
p(
|
|
2119
|
-
const M =
|
|
2120
|
-
return
|
|
2118
|
+
p(d);
|
|
2119
|
+
const M = d.currentPeek() === ".";
|
|
2120
|
+
return d.resetPeek(), M;
|
|
2121
2121
|
}
|
|
2122
|
-
function A(
|
|
2122
|
+
function A(d, h) {
|
|
2123
2123
|
const { currentType: N } = h;
|
|
2124
2124
|
if (N !== 8)
|
|
2125
2125
|
return !1;
|
|
2126
|
-
p(
|
|
2127
|
-
const M = m(
|
|
2128
|
-
return
|
|
2126
|
+
p(d);
|
|
2127
|
+
const M = m(d.currentPeek());
|
|
2128
|
+
return d.resetPeek(), M;
|
|
2129
2129
|
}
|
|
2130
|
-
function B(
|
|
2130
|
+
function B(d, h) {
|
|
2131
2131
|
const { currentType: N } = h;
|
|
2132
2132
|
if (!(N === 7 || N === 11))
|
|
2133
2133
|
return !1;
|
|
2134
|
-
p(
|
|
2135
|
-
const M =
|
|
2136
|
-
return
|
|
2134
|
+
p(d);
|
|
2135
|
+
const M = d.currentPeek() === ":";
|
|
2136
|
+
return d.resetPeek(), M;
|
|
2137
2137
|
}
|
|
2138
|
-
function Y(
|
|
2138
|
+
function Y(d, h) {
|
|
2139
2139
|
const { currentType: N } = h;
|
|
2140
2140
|
if (N !== 9)
|
|
2141
2141
|
return !1;
|
|
2142
2142
|
const M = () => {
|
|
2143
|
-
const oe =
|
|
2144
|
-
return oe === "{" ? m(
|
|
2143
|
+
const oe = d.currentPeek();
|
|
2144
|
+
return oe === "{" ? m(d.peek()) : oe === "@" || oe === "|" || oe === ":" || oe === "." || oe === Oe || !oe ? !1 : oe === fe ? (d.peek(), M()) : _e(d, !1);
|
|
2145
2145
|
}, ne = M();
|
|
2146
|
-
return
|
|
2146
|
+
return d.resetPeek(), ne;
|
|
2147
2147
|
}
|
|
2148
|
-
function re(
|
|
2149
|
-
p(
|
|
2150
|
-
const h =
|
|
2151
|
-
return
|
|
2148
|
+
function re(d) {
|
|
2149
|
+
p(d);
|
|
2150
|
+
const h = d.currentPeek() === "|";
|
|
2151
|
+
return d.resetPeek(), h;
|
|
2152
2152
|
}
|
|
2153
|
-
function
|
|
2153
|
+
function _e(d, h = !0) {
|
|
2154
2154
|
const N = (ne = !1, oe = "") => {
|
|
2155
|
-
const j =
|
|
2156
|
-
return j === "{" || j === "@" || !j ? ne : j === "|" ? !(oe === Oe || oe === fe) : j === Oe ? (
|
|
2155
|
+
const j = d.currentPeek();
|
|
2156
|
+
return j === "{" || j === "@" || !j ? ne : j === "|" ? !(oe === Oe || oe === fe) : j === Oe ? (d.peek(), N(!0, Oe)) : j === fe ? (d.peek(), N(!0, fe)) : !0;
|
|
2157
2157
|
}, M = N();
|
|
2158
|
-
return h &&
|
|
2158
|
+
return h && d.resetPeek(), M;
|
|
2159
2159
|
}
|
|
2160
|
-
function ee(
|
|
2161
|
-
const N =
|
|
2162
|
-
return N === ke ? ke : h(N) ? (
|
|
2160
|
+
function ee(d, h) {
|
|
2161
|
+
const N = d.currentChar();
|
|
2162
|
+
return N === ke ? ke : h(N) ? (d.next(), N) : null;
|
|
2163
2163
|
}
|
|
2164
|
-
function et(
|
|
2165
|
-
const h =
|
|
2164
|
+
function et(d) {
|
|
2165
|
+
const h = d.charCodeAt(0);
|
|
2166
2166
|
return h >= 97 && h <= 122 || // a-z
|
|
2167
2167
|
h >= 65 && h <= 90 || // A-Z
|
|
2168
2168
|
h >= 48 && h <= 57 || // 0-9
|
|
2169
2169
|
h === 95 || // _
|
|
2170
2170
|
h === 36;
|
|
2171
2171
|
}
|
|
2172
|
-
function sn(
|
|
2173
|
-
return ee(
|
|
2172
|
+
function sn(d) {
|
|
2173
|
+
return ee(d, et);
|
|
2174
2174
|
}
|
|
2175
|
-
function ln(
|
|
2176
|
-
const h =
|
|
2175
|
+
function ln(d) {
|
|
2176
|
+
const h = d.charCodeAt(0);
|
|
2177
2177
|
return h >= 97 && h <= 122 || // a-z
|
|
2178
2178
|
h >= 65 && h <= 90 || // A-Z
|
|
2179
2179
|
h >= 48 && h <= 57 || // 0-9
|
|
@@ -2181,239 +2181,239 @@ function Bi(e, t = {}) {
|
|
|
2181
2181
|
h === 36 || // $
|
|
2182
2182
|
h === 45;
|
|
2183
2183
|
}
|
|
2184
|
-
function cn(
|
|
2185
|
-
return ee(
|
|
2184
|
+
function cn(d) {
|
|
2185
|
+
return ee(d, ln);
|
|
2186
2186
|
}
|
|
2187
|
-
function un(
|
|
2188
|
-
const h =
|
|
2187
|
+
function un(d) {
|
|
2188
|
+
const h = d.charCodeAt(0);
|
|
2189
2189
|
return h >= 48 && h <= 57;
|
|
2190
2190
|
}
|
|
2191
|
-
function fn(
|
|
2192
|
-
return ee(
|
|
2191
|
+
function fn(d) {
|
|
2192
|
+
return ee(d, un);
|
|
2193
2193
|
}
|
|
2194
|
-
function
|
|
2195
|
-
const h =
|
|
2194
|
+
function dn(d) {
|
|
2195
|
+
const h = d.charCodeAt(0);
|
|
2196
2196
|
return h >= 48 && h <= 57 || // 0-9
|
|
2197
2197
|
h >= 65 && h <= 70 || // A-F
|
|
2198
2198
|
h >= 97 && h <= 102;
|
|
2199
2199
|
}
|
|
2200
|
-
function De(
|
|
2201
|
-
return ee(
|
|
2200
|
+
function De(d) {
|
|
2201
|
+
return ee(d, dn);
|
|
2202
2202
|
}
|
|
2203
|
-
function mt(
|
|
2203
|
+
function mt(d) {
|
|
2204
2204
|
let h = "", N = "";
|
|
2205
|
-
for (; h = fn(
|
|
2205
|
+
for (; h = fn(d); )
|
|
2206
2206
|
N += h;
|
|
2207
2207
|
return N;
|
|
2208
2208
|
}
|
|
2209
|
-
function
|
|
2209
|
+
function _n(d) {
|
|
2210
2210
|
let h = "";
|
|
2211
2211
|
for (; ; ) {
|
|
2212
|
-
const N =
|
|
2212
|
+
const N = d.currentChar();
|
|
2213
2213
|
if (N === "{" || N === "}" || N === "@" || N === "|" || !N)
|
|
2214
2214
|
break;
|
|
2215
2215
|
if (N === Oe || N === fe)
|
|
2216
|
-
if (
|
|
2217
|
-
h += N,
|
|
2216
|
+
if (_e(d))
|
|
2217
|
+
h += N, d.next();
|
|
2218
2218
|
else {
|
|
2219
|
-
if (re(
|
|
2219
|
+
if (re(d))
|
|
2220
2220
|
break;
|
|
2221
|
-
h += N,
|
|
2221
|
+
h += N, d.next();
|
|
2222
2222
|
}
|
|
2223
2223
|
else
|
|
2224
|
-
h += N,
|
|
2224
|
+
h += N, d.next();
|
|
2225
2225
|
}
|
|
2226
2226
|
return h;
|
|
2227
2227
|
}
|
|
2228
|
-
function mn(
|
|
2229
|
-
w(
|
|
2228
|
+
function mn(d) {
|
|
2229
|
+
w(d);
|
|
2230
2230
|
let h = "", N = "";
|
|
2231
|
-
for (; h = cn(
|
|
2231
|
+
for (; h = cn(d); )
|
|
2232
2232
|
N += h;
|
|
2233
|
-
const M =
|
|
2233
|
+
const M = d.currentChar();
|
|
2234
2234
|
if (M && M !== "}" && M !== ke && M !== Oe && M !== fe && M !== " ") {
|
|
2235
|
-
const ne = Ut(
|
|
2235
|
+
const ne = Ut(d);
|
|
2236
2236
|
return u(x.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, N + ne), N + ne;
|
|
2237
2237
|
}
|
|
2238
|
-
return
|
|
2238
|
+
return d.currentChar() === ke && u(x.UNTERMINATED_CLOSING_BRACE, o(), 0), N;
|
|
2239
2239
|
}
|
|
2240
|
-
function hn(
|
|
2241
|
-
w(
|
|
2240
|
+
function hn(d) {
|
|
2241
|
+
w(d);
|
|
2242
2242
|
let h = "";
|
|
2243
|
-
return
|
|
2243
|
+
return d.currentChar() === "-" ? (d.next(), h += `-${mt(d)}`) : h += mt(d), d.currentChar() === ke && u(x.UNTERMINATED_CLOSING_BRACE, o(), 0), h;
|
|
2244
2244
|
}
|
|
2245
|
-
function gn(
|
|
2246
|
-
return
|
|
2245
|
+
function gn(d) {
|
|
2246
|
+
return d !== Fa && d !== fe;
|
|
2247
2247
|
}
|
|
2248
|
-
function Ta(
|
|
2249
|
-
w(
|
|
2248
|
+
function Ta(d) {
|
|
2249
|
+
w(d), T(d, "'");
|
|
2250
2250
|
let h = "", N = "";
|
|
2251
|
-
for (; h = ee(
|
|
2252
|
-
h === "\\" ? N += pn(
|
|
2253
|
-
const M =
|
|
2254
|
-
return M === fe || M === ke ? (u(x.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, o(), 0), M === fe && (
|
|
2251
|
+
for (; h = ee(d, gn); )
|
|
2252
|
+
h === "\\" ? N += pn(d) : N += h;
|
|
2253
|
+
const M = d.currentChar();
|
|
2254
|
+
return M === fe || M === ke ? (u(x.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, o(), 0), M === fe && (d.next(), T(d, "'")), N) : (T(d, "'"), N);
|
|
2255
2255
|
}
|
|
2256
|
-
function pn(
|
|
2257
|
-
const h =
|
|
2256
|
+
function pn(d) {
|
|
2257
|
+
const h = d.currentChar();
|
|
2258
2258
|
switch (h) {
|
|
2259
2259
|
case "\\":
|
|
2260
2260
|
case "'":
|
|
2261
|
-
return
|
|
2261
|
+
return d.next(), `\\${h}`;
|
|
2262
2262
|
case "u":
|
|
2263
|
-
return Mt(
|
|
2263
|
+
return Mt(d, h, 4);
|
|
2264
2264
|
case "U":
|
|
2265
|
-
return Mt(
|
|
2265
|
+
return Mt(d, h, 6);
|
|
2266
2266
|
default:
|
|
2267
2267
|
return u(x.UNKNOWN_ESCAPE_SEQUENCE, o(), 0, h), "";
|
|
2268
2268
|
}
|
|
2269
2269
|
}
|
|
2270
|
-
function Mt(
|
|
2271
|
-
T(
|
|
2270
|
+
function Mt(d, h, N) {
|
|
2271
|
+
T(d, h);
|
|
2272
2272
|
let M = "";
|
|
2273
2273
|
for (let ne = 0; ne < N; ne++) {
|
|
2274
|
-
const oe = De(
|
|
2274
|
+
const oe = De(d);
|
|
2275
2275
|
if (!oe) {
|
|
2276
|
-
u(x.INVALID_UNICODE_ESCAPE_SEQUENCE, o(), 0, `\\${h}${M}${
|
|
2276
|
+
u(x.INVALID_UNICODE_ESCAPE_SEQUENCE, o(), 0, `\\${h}${M}${d.currentChar()}`);
|
|
2277
2277
|
break;
|
|
2278
2278
|
}
|
|
2279
2279
|
M += oe;
|
|
2280
2280
|
}
|
|
2281
2281
|
return `\\${h}${M}`;
|
|
2282
2282
|
}
|
|
2283
|
-
function En(
|
|
2284
|
-
return
|
|
2283
|
+
function En(d) {
|
|
2284
|
+
return d !== "{" && d !== "}" && d !== Oe && d !== fe;
|
|
2285
2285
|
}
|
|
2286
|
-
function Ut(
|
|
2287
|
-
w(
|
|
2286
|
+
function Ut(d) {
|
|
2287
|
+
w(d);
|
|
2288
2288
|
let h = "", N = "";
|
|
2289
|
-
for (; h = ee(
|
|
2289
|
+
for (; h = ee(d, En); )
|
|
2290
2290
|
N += h;
|
|
2291
2291
|
return N;
|
|
2292
2292
|
}
|
|
2293
|
-
function Sn(
|
|
2293
|
+
function Sn(d) {
|
|
2294
2294
|
let h = "", N = "";
|
|
2295
|
-
for (; h = sn(
|
|
2295
|
+
for (; h = sn(d); )
|
|
2296
2296
|
N += h;
|
|
2297
2297
|
return N;
|
|
2298
2298
|
}
|
|
2299
|
-
function bn(
|
|
2299
|
+
function bn(d) {
|
|
2300
2300
|
const h = (N) => {
|
|
2301
|
-
const M =
|
|
2302
|
-
return M === "{" || M === "@" || M === "|" || M === "(" || M === ")" || !M || M === Oe ? N : (N += M,
|
|
2301
|
+
const M = d.currentChar();
|
|
2302
|
+
return M === "{" || M === "@" || M === "|" || M === "(" || M === ")" || !M || M === Oe ? N : (N += M, d.next(), h(N));
|
|
2303
2303
|
};
|
|
2304
2304
|
return h("");
|
|
2305
2305
|
}
|
|
2306
|
-
function ht(
|
|
2307
|
-
w(
|
|
2306
|
+
function ht(d) {
|
|
2307
|
+
w(d);
|
|
2308
2308
|
const h = T(
|
|
2309
|
-
|
|
2309
|
+
d,
|
|
2310
2310
|
"|"
|
|
2311
2311
|
/* TokenChars.Pipe */
|
|
2312
2312
|
);
|
|
2313
|
-
return w(
|
|
2313
|
+
return w(d), h;
|
|
2314
2314
|
}
|
|
2315
|
-
function gt(
|
|
2315
|
+
function gt(d, h) {
|
|
2316
2316
|
let N = null;
|
|
2317
|
-
switch (
|
|
2317
|
+
switch (d.currentChar()) {
|
|
2318
2318
|
case "{":
|
|
2319
|
-
return h.braceNest >= 1 && u(x.NOT_ALLOW_NEST_PLACEHOLDER, o(), 0),
|
|
2319
|
+
return h.braceNest >= 1 && u(x.NOT_ALLOW_NEST_PLACEHOLDER, o(), 0), d.next(), N = _(
|
|
2320
2320
|
h,
|
|
2321
2321
|
2,
|
|
2322
2322
|
"{"
|
|
2323
2323
|
/* TokenChars.BraceLeft */
|
|
2324
|
-
), w(
|
|
2324
|
+
), w(d), h.braceNest++, N;
|
|
2325
2325
|
case "}":
|
|
2326
|
-
return h.braceNest > 0 && h.currentType === 2 && u(x.EMPTY_PLACEHOLDER, o(), 0),
|
|
2326
|
+
return h.braceNest > 0 && h.currentType === 2 && u(x.EMPTY_PLACEHOLDER, o(), 0), d.next(), N = _(
|
|
2327
2327
|
h,
|
|
2328
2328
|
3,
|
|
2329
2329
|
"}"
|
|
2330
2330
|
/* TokenChars.BraceRight */
|
|
2331
|
-
), h.braceNest--, h.braceNest > 0 && w(
|
|
2331
|
+
), h.braceNest--, h.braceNest > 0 && w(d), h.inLinked && h.braceNest === 0 && (h.inLinked = !1), N;
|
|
2332
2332
|
case "@":
|
|
2333
|
-
return h.braceNest > 0 && u(x.UNTERMINATED_CLOSING_BRACE, o(), 0), N = He(
|
|
2333
|
+
return h.braceNest > 0 && u(x.UNTERMINATED_CLOSING_BRACE, o(), 0), N = He(d, h) || g(h), h.braceNest = 0, N;
|
|
2334
2334
|
default: {
|
|
2335
2335
|
let ne = !0, oe = !0, j = !0;
|
|
2336
|
-
if (re(
|
|
2337
|
-
return h.braceNest > 0 && u(x.UNTERMINATED_CLOSING_BRACE, o(), 0), N =
|
|
2336
|
+
if (re(d))
|
|
2337
|
+
return h.braceNest > 0 && u(x.UNTERMINATED_CLOSING_BRACE, o(), 0), N = _(h, 1, ht(d)), h.braceNest = 0, h.inLinked = !1, N;
|
|
2338
2338
|
if (h.braceNest > 0 && (h.currentType === 4 || h.currentType === 5 || h.currentType === 6))
|
|
2339
|
-
return u(x.UNTERMINATED_CLOSING_BRACE, o(), 0), h.braceNest = 0, pt(
|
|
2340
|
-
if (ne = S(
|
|
2341
|
-
return N =
|
|
2342
|
-
if (oe = y(
|
|
2343
|
-
return N =
|
|
2344
|
-
if (j = k(
|
|
2345
|
-
return N =
|
|
2339
|
+
return u(x.UNTERMINATED_CLOSING_BRACE, o(), 0), h.braceNest = 0, pt(d, h);
|
|
2340
|
+
if (ne = S(d, h))
|
|
2341
|
+
return N = _(h, 4, mn(d)), w(d), N;
|
|
2342
|
+
if (oe = y(d, h))
|
|
2343
|
+
return N = _(h, 5, hn(d)), w(d), N;
|
|
2344
|
+
if (j = k(d, h))
|
|
2345
|
+
return N = _(h, 6, Ta(d)), w(d), N;
|
|
2346
2346
|
if (!ne && !oe && !j)
|
|
2347
|
-
return N =
|
|
2347
|
+
return N = _(h, 12, Ut(d)), u(x.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, N.value), w(d), N;
|
|
2348
2348
|
break;
|
|
2349
2349
|
}
|
|
2350
2350
|
}
|
|
2351
2351
|
return N;
|
|
2352
2352
|
}
|
|
2353
|
-
function He(
|
|
2353
|
+
function He(d, h) {
|
|
2354
2354
|
const { currentType: N } = h;
|
|
2355
2355
|
let M = null;
|
|
2356
|
-
const ne =
|
|
2356
|
+
const ne = d.currentChar();
|
|
2357
2357
|
switch ((N === 7 || N === 8 || N === 11 || N === 9) && (ne === fe || ne === Oe) && u(x.INVALID_LINKED_FORMAT, o(), 0), ne) {
|
|
2358
2358
|
case "@":
|
|
2359
|
-
return
|
|
2359
|
+
return d.next(), M = _(
|
|
2360
2360
|
h,
|
|
2361
2361
|
7,
|
|
2362
2362
|
"@"
|
|
2363
2363
|
/* TokenChars.LinkedAlias */
|
|
2364
2364
|
), h.inLinked = !0, M;
|
|
2365
2365
|
case ".":
|
|
2366
|
-
return w(
|
|
2366
|
+
return w(d), d.next(), _(
|
|
2367
2367
|
h,
|
|
2368
2368
|
8,
|
|
2369
2369
|
"."
|
|
2370
2370
|
/* TokenChars.LinkedDot */
|
|
2371
2371
|
);
|
|
2372
2372
|
case ":":
|
|
2373
|
-
return w(
|
|
2373
|
+
return w(d), d.next(), _(
|
|
2374
2374
|
h,
|
|
2375
2375
|
9,
|
|
2376
2376
|
":"
|
|
2377
2377
|
/* TokenChars.LinkedDelimiter */
|
|
2378
2378
|
);
|
|
2379
2379
|
default:
|
|
2380
|
-
return re(
|
|
2380
|
+
return re(d) ? (M = _(h, 1, ht(d)), h.braceNest = 0, h.inLinked = !1, M) : R(d, h) || B(d, h) ? (w(d), He(d, h)) : A(d, h) ? (w(d), _(h, 11, Sn(d))) : Y(d, h) ? (w(d), ne === "{" ? gt(d, h) || M : _(h, 10, bn(d))) : (N === 7 && u(x.INVALID_LINKED_FORMAT, o(), 0), h.braceNest = 0, h.inLinked = !1, pt(d, h));
|
|
2381
2381
|
}
|
|
2382
2382
|
}
|
|
2383
|
-
function pt(
|
|
2383
|
+
function pt(d, h) {
|
|
2384
2384
|
let N = {
|
|
2385
2385
|
type: 13
|
|
2386
2386
|
/* TokenTypes.EOF */
|
|
2387
2387
|
};
|
|
2388
2388
|
if (h.braceNest > 0)
|
|
2389
|
-
return gt(
|
|
2389
|
+
return gt(d, h) || g(h);
|
|
2390
2390
|
if (h.inLinked)
|
|
2391
|
-
return He(
|
|
2392
|
-
switch (
|
|
2391
|
+
return He(d, h) || g(h);
|
|
2392
|
+
switch (d.currentChar()) {
|
|
2393
2393
|
case "{":
|
|
2394
|
-
return gt(
|
|
2394
|
+
return gt(d, h) || g(h);
|
|
2395
2395
|
case "}":
|
|
2396
|
-
return u(x.UNBALANCED_CLOSING_BRACE, o(), 0),
|
|
2396
|
+
return u(x.UNBALANCED_CLOSING_BRACE, o(), 0), d.next(), _(
|
|
2397
2397
|
h,
|
|
2398
2398
|
3,
|
|
2399
2399
|
"}"
|
|
2400
2400
|
/* TokenChars.BraceRight */
|
|
2401
2401
|
);
|
|
2402
2402
|
case "@":
|
|
2403
|
-
return He(
|
|
2403
|
+
return He(d, h) || g(h);
|
|
2404
2404
|
default: {
|
|
2405
|
-
if (re(
|
|
2406
|
-
return N =
|
|
2407
|
-
if (
|
|
2408
|
-
return
|
|
2405
|
+
if (re(d))
|
|
2406
|
+
return N = _(h, 1, ht(d)), h.braceNest = 0, h.inLinked = !1, N;
|
|
2407
|
+
if (_e(d))
|
|
2408
|
+
return _(h, 0, _n(d));
|
|
2409
2409
|
break;
|
|
2410
2410
|
}
|
|
2411
2411
|
}
|
|
2412
2412
|
return N;
|
|
2413
2413
|
}
|
|
2414
2414
|
function vn() {
|
|
2415
|
-
const { currentType:
|
|
2416
|
-
return i.lastType =
|
|
2415
|
+
const { currentType: d, offset: h, startLoc: N, endLoc: M } = i;
|
|
2416
|
+
return i.lastType = d, i.lastOffset = h, i.lastStartLoc = N, i.lastEndLoc = M, i.offset = a(), i.startLoc = o(), r.currentChar() === ke ? _(
|
|
2417
2417
|
i,
|
|
2418
2418
|
13
|
|
2419
2419
|
/* TokenTypes.EOF */
|
|
@@ -2445,7 +2445,7 @@ function Yi(e = {}) {
|
|
|
2445
2445
|
function r(m, E, S, y, ...k) {
|
|
2446
2446
|
const R = m.currentPosition();
|
|
2447
2447
|
if (R.offset += y, R.column += y, n) {
|
|
2448
|
-
const A = t ? $n(S, R) : null, B =
|
|
2448
|
+
const A = t ? $n(S, R) : null, B = _t(E, A, {
|
|
2449
2449
|
domain: Gi,
|
|
2450
2450
|
args: k
|
|
2451
2451
|
});
|
|
@@ -2488,7 +2488,7 @@ function Yi(e = {}) {
|
|
|
2488
2488
|
const S = m.context(), y = a(7, S.offset, S.startLoc);
|
|
2489
2489
|
return y.value = E, o(y, m.currentOffset(), m.currentPosition()), y;
|
|
2490
2490
|
}
|
|
2491
|
-
function
|
|
2491
|
+
function _(m) {
|
|
2492
2492
|
const E = m.context(), S = a(6, E.offset, E.startLoc);
|
|
2493
2493
|
let y = m.nextToken();
|
|
2494
2494
|
if (y.type === 8) {
|
|
@@ -2541,7 +2541,7 @@ function Yi(e = {}) {
|
|
|
2541
2541
|
Y.value == null && r(m, x.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, Ie(Y)), k.items.push(c(m, Y.value || ""));
|
|
2542
2542
|
break;
|
|
2543
2543
|
case 7: {
|
|
2544
|
-
const re =
|
|
2544
|
+
const re = _(m);
|
|
2545
2545
|
k.items.push(re.node), R = re.nextConsumeToken || null;
|
|
2546
2546
|
break;
|
|
2547
2547
|
}
|
|
@@ -2655,7 +2655,7 @@ function Ua(e) {
|
|
|
2655
2655
|
t.push(r.value);
|
|
2656
2656
|
}
|
|
2657
2657
|
if (t.length === e.items.length) {
|
|
2658
|
-
e.static =
|
|
2658
|
+
e.static = da(t);
|
|
2659
2659
|
for (let n = 0; n < e.items.length; n++) {
|
|
2660
2660
|
const r = e.items[n];
|
|
2661
2661
|
(r.type === 3 || r.type === 9) && delete r.value;
|
|
@@ -2710,7 +2710,7 @@ function it(e) {
|
|
|
2710
2710
|
}
|
|
2711
2711
|
default:
|
|
2712
2712
|
if (process.env.NODE_ENV !== "production")
|
|
2713
|
-
throw
|
|
2713
|
+
throw _t(x.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
2714
2714
|
domain: qi,
|
|
2715
2715
|
args: [e.type]
|
|
2716
2716
|
});
|
|
@@ -2747,7 +2747,7 @@ function Qi(e, t) {
|
|
|
2747
2747
|
const w = --s.indentLevel;
|
|
2748
2748
|
p && c(w);
|
|
2749
2749
|
}
|
|
2750
|
-
function
|
|
2750
|
+
function _() {
|
|
2751
2751
|
c(s.indentLevel);
|
|
2752
2752
|
}
|
|
2753
2753
|
return {
|
|
@@ -2755,7 +2755,7 @@ function Qi(e, t) {
|
|
|
2755
2755
|
push: i,
|
|
2756
2756
|
indent: f,
|
|
2757
2757
|
deindent: u,
|
|
2758
|
-
newline:
|
|
2758
|
+
newline: _,
|
|
2759
2759
|
helper: (p) => `_${p}`,
|
|
2760
2760
|
needIndent: () => s.needIndent
|
|
2761
2761
|
};
|
|
@@ -2841,7 +2841,7 @@ function ft(e, t) {
|
|
|
2841
2841
|
break;
|
|
2842
2842
|
default:
|
|
2843
2843
|
if (process.env.NODE_ENV !== "production")
|
|
2844
|
-
throw
|
|
2844
|
+
throw _t(x.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
2845
2845
|
domain: Xi,
|
|
2846
2846
|
args: [t.type]
|
|
2847
2847
|
});
|
|
@@ -2856,7 +2856,7 @@ const tl = (e, t = {}) => {
|
|
|
2856
2856
|
breakLineCode: a,
|
|
2857
2857
|
needIndent: o
|
|
2858
2858
|
});
|
|
2859
|
-
l.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(o), s.length > 0 && (l.push(`const { ${
|
|
2859
|
+
l.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(o), s.length > 0 && (l.push(`const { ${da(s.map((f) => `${f}: _${f}`), ", ")} } = ctx`), l.newline()), l.push("return "), ft(l, e), l.deindent(o), l.push("}"), delete e.helpers;
|
|
2860
2860
|
const { code: i, map: c } = l.context();
|
|
2861
2861
|
return {
|
|
2862
2862
|
ast: e,
|
|
@@ -3006,10 +3006,10 @@ function Wn(e, t) {
|
|
|
3006
3006
|
}
|
|
3007
3007
|
}
|
|
3008
3008
|
const fl = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
3009
|
-
function
|
|
3009
|
+
function dl(e, t) {
|
|
3010
3010
|
t && Ri(e) && (Zt(fl, { source: e }), void 0);
|
|
3011
3011
|
}
|
|
3012
|
-
const
|
|
3012
|
+
const _l = (e) => e;
|
|
3013
3013
|
let $t = X();
|
|
3014
3014
|
function ml(e, t = {}) {
|
|
3015
3015
|
let n = !1;
|
|
@@ -3022,8 +3022,8 @@ function ml(e, t = {}) {
|
|
|
3022
3022
|
function hl(e, t) {
|
|
3023
3023
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && P(e)) {
|
|
3024
3024
|
const n = K(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
3025
|
-
process.env.NODE_ENV !== "production" &&
|
|
3026
|
-
const a = (t.onCacheKey ||
|
|
3025
|
+
process.env.NODE_ENV !== "production" && dl(e, n);
|
|
3026
|
+
const a = (t.onCacheKey || _l)(e), o = $t[a];
|
|
3027
3027
|
if (o)
|
|
3028
3028
|
return o;
|
|
3029
3029
|
const { ast: s, detectError: l } = ml(e, {
|
|
@@ -3059,7 +3059,7 @@ const El = /* @__PURE__ */ Sl("function:translate");
|
|
|
3059
3059
|
function Sl(e) {
|
|
3060
3060
|
return (t) => It && It.emit(e, t);
|
|
3061
3061
|
}
|
|
3062
|
-
const
|
|
3062
|
+
const de = {
|
|
3063
3063
|
INVALID_ARGUMENT: Li,
|
|
3064
3064
|
// 17
|
|
3065
3065
|
INVALID_DATE_ARGUMENT: 18,
|
|
@@ -3070,16 +3070,16 @@ const _e = {
|
|
|
3070
3070
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
3071
3071
|
}, bl = 24;
|
|
3072
3072
|
function Fe(e) {
|
|
3073
|
-
return
|
|
3073
|
+
return _t(e, null, process.env.NODE_ENV !== "production" ? { messages: vl } : void 0);
|
|
3074
3074
|
}
|
|
3075
3075
|
const vl = {
|
|
3076
|
-
[
|
|
3077
|
-
[
|
|
3078
|
-
[
|
|
3079
|
-
[
|
|
3080
|
-
[
|
|
3081
|
-
[
|
|
3082
|
-
[
|
|
3076
|
+
[de.INVALID_ARGUMENT]: "Invalid arguments",
|
|
3077
|
+
[de.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
3078
|
+
[de.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
3079
|
+
[de.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
|
|
3080
|
+
[de.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
|
|
3081
|
+
[de.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
|
|
3082
|
+
[de.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
|
|
3083
3083
|
};
|
|
3084
3084
|
function ga(e, t) {
|
|
3085
3085
|
return t.locale != null ? Va(t.locale) : Va(e.locale);
|
|
@@ -3094,12 +3094,12 @@ function Va(e) {
|
|
|
3094
3094
|
if (e.constructor.name === "Function") {
|
|
3095
3095
|
const t = e();
|
|
3096
3096
|
if (Ni(t))
|
|
3097
|
-
throw Fe(
|
|
3097
|
+
throw Fe(de.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
3098
3098
|
return Nn = t;
|
|
3099
3099
|
} else
|
|
3100
|
-
throw Fe(
|
|
3100
|
+
throw Fe(de.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
3101
3101
|
} else
|
|
3102
|
-
throw Fe(
|
|
3102
|
+
throw Fe(de.NOT_SUPPORT_LOCALE_TYPE);
|
|
3103
3103
|
}
|
|
3104
3104
|
function yl(e, t, n) {
|
|
3105
3105
|
return [.../* @__PURE__ */ new Set([
|
|
@@ -3360,38 +3360,38 @@ function Ll(e) {
|
|
|
3360
3360
|
function wl(e) {
|
|
3361
3361
|
const t = [];
|
|
3362
3362
|
let n = -1, r = 0, a = 0, o, s, l, i, c, f, u;
|
|
3363
|
-
const
|
|
3364
|
-
|
|
3363
|
+
const _ = [];
|
|
3364
|
+
_[
|
|
3365
3365
|
0
|
|
3366
3366
|
/* Actions.APPEND */
|
|
3367
3367
|
] = () => {
|
|
3368
3368
|
s === void 0 ? s = l : s += l;
|
|
3369
|
-
},
|
|
3369
|
+
}, _[
|
|
3370
3370
|
1
|
|
3371
3371
|
/* Actions.PUSH */
|
|
3372
3372
|
] = () => {
|
|
3373
3373
|
s !== void 0 && (t.push(s), s = void 0);
|
|
3374
|
-
},
|
|
3374
|
+
}, _[
|
|
3375
3375
|
2
|
|
3376
3376
|
/* Actions.INC_SUB_PATH_DEPTH */
|
|
3377
3377
|
] = () => {
|
|
3378
|
-
|
|
3378
|
+
_[
|
|
3379
3379
|
0
|
|
3380
3380
|
/* Actions.APPEND */
|
|
3381
3381
|
](), a++;
|
|
3382
|
-
},
|
|
3382
|
+
}, _[
|
|
3383
3383
|
3
|
|
3384
3384
|
/* Actions.PUSH_SUB_PATH */
|
|
3385
3385
|
] = () => {
|
|
3386
3386
|
if (a > 0)
|
|
3387
|
-
a--, r = 4,
|
|
3387
|
+
a--, r = 4, _[
|
|
3388
3388
|
0
|
|
3389
3389
|
/* Actions.APPEND */
|
|
3390
3390
|
]();
|
|
3391
3391
|
else {
|
|
3392
3392
|
if (a = 0, s === void 0 || (s = Ll(s), s === !1))
|
|
3393
3393
|
return !1;
|
|
3394
|
-
|
|
3394
|
+
_[
|
|
3395
3395
|
1
|
|
3396
3396
|
/* Actions.PUSH */
|
|
3397
3397
|
]();
|
|
@@ -3400,14 +3400,14 @@ function wl(e) {
|
|
|
3400
3400
|
function g() {
|
|
3401
3401
|
const T = e[n + 1];
|
|
3402
3402
|
if (r === 5 && T === "'" || r === 6 && T === '"')
|
|
3403
|
-
return n++, l = "\\" + T,
|
|
3403
|
+
return n++, l = "\\" + T, _[
|
|
3404
3404
|
0
|
|
3405
3405
|
/* Actions.APPEND */
|
|
3406
3406
|
](), !0;
|
|
3407
3407
|
}
|
|
3408
3408
|
for (; r !== null; )
|
|
3409
3409
|
if (n++, o = e[n], !(o === "\\" && g())) {
|
|
3410
|
-
if (i = Il(o), u = Ye[r], c = u[i] || u.l || 8, c === 8 || (r = c[0], c[1] !== void 0 && (f =
|
|
3410
|
+
if (i = Il(o), u = Ye[r], c = u[i] || u.l || 8, c === 8 || (r = c[0], c[1] !== void 0 && (f = _[c[1]], f && (l = o, f() === !1))))
|
|
3411
3411
|
return;
|
|
3412
3412
|
if (r === 7)
|
|
3413
3413
|
return t;
|
|
@@ -3486,9 +3486,9 @@ const Wa = (e) => {
|
|
|
3486
3486
|
}, $l = () => fo;
|
|
3487
3487
|
let Ya = 0;
|
|
3488
3488
|
function Wl(e = {}) {
|
|
3489
|
-
const t = J(e.onWarn) ? e.onWarn : pi, n = P(e.version) ? e.version : Fl, r = P(e.locale) || J(e.locale) ? e.locale : Lt, a = J(r) ? Lt : r, o = ae(e.fallbackLocale) || G(e.fallbackLocale) || P(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, s = G(e.messages) ? e.messages : Cn(a), l = G(e.datetimeFormats) ? e.datetimeFormats : Cn(a), i = G(e.numberFormats) ? e.numberFormats : Cn(a), c = ce(X(), e.modifiers, Ml()), f = e.pluralRules || X(), u = J(e.missing) ? e.missing : null,
|
|
3489
|
+
const t = J(e.onWarn) ? e.onWarn : pi, n = P(e.version) ? e.version : Fl, r = P(e.locale) || J(e.locale) ? e.locale : Lt, a = J(r) ? Lt : r, o = ae(e.fallbackLocale) || G(e.fallbackLocale) || P(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, s = G(e.messages) ? e.messages : Cn(a), l = G(e.datetimeFormats) ? e.datetimeFormats : Cn(a), i = G(e.numberFormats) ? e.numberFormats : Cn(a), c = ce(X(), e.modifiers, Ml()), f = e.pluralRules || X(), u = J(e.missing) ? e.missing : null, _ = K(e.missingWarn) || ut(e.missingWarn) ? e.missingWarn : !0, g = K(e.fallbackWarn) || ut(e.fallbackWarn) ? e.fallbackWarn : !0, T = !!e.fallbackFormat, p = !!e.unresolving, w = J(e.postTranslation) ? e.postTranslation : null, m = G(e.processor) ? e.processor : null, E = K(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, y = J(e.messageCompiler) ? e.messageCompiler : io;
|
|
3490
3490
|
process.env.NODE_ENV !== "production" && J(e.messageCompiler) && ua(ze(me.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
3491
|
-
const k = J(e.messageResolver) ? e.messageResolver : lo || Dl, R = J(e.localeFallbacker) ? e.localeFallbacker : co || yl, A = H(e.fallbackContext) ? e.fallbackContext : void 0, B = e, Y = H(B.__datetimeFormatters) ? B.__datetimeFormatters : /* @__PURE__ */ new Map(), re = H(B.__numberFormatters) ? B.__numberFormatters : /* @__PURE__ */ new Map(),
|
|
3491
|
+
const k = J(e.messageResolver) ? e.messageResolver : lo || Dl, R = J(e.localeFallbacker) ? e.localeFallbacker : co || yl, A = H(e.fallbackContext) ? e.fallbackContext : void 0, B = e, Y = H(B.__datetimeFormatters) ? B.__datetimeFormatters : /* @__PURE__ */ new Map(), re = H(B.__numberFormatters) ? B.__numberFormatters : /* @__PURE__ */ new Map(), _e = H(B.__meta) ? B.__meta : {};
|
|
3492
3492
|
Ya++;
|
|
3493
3493
|
const ee = {
|
|
3494
3494
|
version: n,
|
|
@@ -3499,7 +3499,7 @@ function Wl(e = {}) {
|
|
|
3499
3499
|
modifiers: c,
|
|
3500
3500
|
pluralRules: f,
|
|
3501
3501
|
missing: u,
|
|
3502
|
-
missingWarn:
|
|
3502
|
+
missingWarn: _,
|
|
3503
3503
|
fallbackWarn: g,
|
|
3504
3504
|
fallbackFormat: T,
|
|
3505
3505
|
unresolving: p,
|
|
@@ -3512,9 +3512,9 @@ function Wl(e = {}) {
|
|
|
3512
3512
|
localeFallbacker: R,
|
|
3513
3513
|
fallbackContext: A,
|
|
3514
3514
|
onWarn: t,
|
|
3515
|
-
__meta:
|
|
3515
|
+
__meta: _e
|
|
3516
3516
|
};
|
|
3517
|
-
return ee.datetimeFormats = l, ee.numberFormats = i, ee.__datetimeFormatters = Y, ee.__numberFormatters = re, process.env.NODE_ENV !== "production" && (ee.__v_emitter = B.__v_emitter != null ? B.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && pl(ee, n,
|
|
3517
|
+
return ee.datetimeFormats = l, ee.numberFormats = i, ee.__datetimeFormatters = Y, ee.__numberFormatters = re, process.env.NODE_ENV !== "production" && (ee.__v_emitter = B.__v_emitter != null ? B.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && pl(ee, n, _e), ee;
|
|
3518
3518
|
}
|
|
3519
3519
|
const Cn = (e) => ({ [e]: X() });
|
|
3520
3520
|
function nn(e, t) {
|
|
@@ -3564,7 +3564,7 @@ function Ka(e, ...t) {
|
|
|
3564
3564
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: o, localeFallbacker: s } = e, { __datetimeFormatters: l } = e;
|
|
3565
3565
|
if (process.env.NODE_ENV !== "production" && !ho.dateTimeFormat)
|
|
3566
3566
|
return o(ze(me.CANNOT_FORMAT_DATE)), Xt;
|
|
3567
|
-
const [i, c, f, u] = Yn(...t),
|
|
3567
|
+
const [i, c, f, u] = Yn(...t), _ = K(f.missingWarn) ? f.missingWarn : e.missingWarn, g = K(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, T = !!f.part, p = ga(e, f), w = s(
|
|
3568
3568
|
e,
|
|
3569
3569
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
3570
3570
|
a,
|
|
@@ -3590,7 +3590,7 @@ function Ka(e, ...t) {
|
|
|
3590
3590
|
}
|
|
3591
3591
|
if (m = n[E] || {}, S = m[i], G(S))
|
|
3592
3592
|
break;
|
|
3593
|
-
pa(e, i, E,
|
|
3593
|
+
pa(e, i, E, _, R), y = k;
|
|
3594
3594
|
}
|
|
3595
3595
|
if (!G(S) || !P(E))
|
|
3596
3596
|
return r ? tn : i;
|
|
@@ -3627,22 +3627,22 @@ function Yn(...e) {
|
|
|
3627
3627
|
if (P(t)) {
|
|
3628
3628
|
const i = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
3629
3629
|
if (!i)
|
|
3630
|
-
throw Fe(
|
|
3630
|
+
throw Fe(de.INVALID_ISO_DATE_ARGUMENT);
|
|
3631
3631
|
const c = i[3] ? i[3].trim().startsWith("T") ? `${i[1].trim()}${i[3].trim()}` : `${i[1].trim()}T${i[3].trim()}` : i[1].trim();
|
|
3632
3632
|
l = new Date(c);
|
|
3633
3633
|
try {
|
|
3634
3634
|
l.toISOString();
|
|
3635
3635
|
} catch {
|
|
3636
|
-
throw Fe(
|
|
3636
|
+
throw Fe(de.INVALID_ISO_DATE_ARGUMENT);
|
|
3637
3637
|
}
|
|
3638
3638
|
} else if (vi(t)) {
|
|
3639
3639
|
if (isNaN(t.getTime()))
|
|
3640
|
-
throw Fe(
|
|
3640
|
+
throw Fe(de.INVALID_DATE_ARGUMENT);
|
|
3641
3641
|
l = t;
|
|
3642
3642
|
} else if (ie(t))
|
|
3643
3643
|
l = t;
|
|
3644
3644
|
else
|
|
3645
|
-
throw Fe(
|
|
3645
|
+
throw Fe(de.INVALID_ARGUMENT);
|
|
3646
3646
|
return P(n) ? o.key = n : G(n) && Object.keys(n).forEach((i) => {
|
|
3647
3647
|
go.includes(i) ? s[i] = n[i] : o[i] = n[i];
|
|
3648
3648
|
}), P(r) ? o.locale = r : G(r) && (s = r), G(a) && (s = a), [o.key || "", l, o, s];
|
|
@@ -3658,7 +3658,7 @@ function qa(e, ...t) {
|
|
|
3658
3658
|
const { numberFormats: n, unresolving: r, fallbackLocale: a, onWarn: o, localeFallbacker: s } = e, { __numberFormatters: l } = e;
|
|
3659
3659
|
if (process.env.NODE_ENV !== "production" && !ho.numberFormat)
|
|
3660
3660
|
return o(ze(me.CANNOT_FORMAT_NUMBER)), Xt;
|
|
3661
|
-
const [i, c, f, u] = Hn(...t),
|
|
3661
|
+
const [i, c, f, u] = Hn(...t), _ = K(f.missingWarn) ? f.missingWarn : e.missingWarn, g = K(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, T = !!f.part, p = ga(e, f), w = s(
|
|
3662
3662
|
e,
|
|
3663
3663
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
3664
3664
|
a,
|
|
@@ -3684,7 +3684,7 @@ function qa(e, ...t) {
|
|
|
3684
3684
|
}
|
|
3685
3685
|
if (m = n[E] || {}, S = m[i], G(S))
|
|
3686
3686
|
break;
|
|
3687
|
-
pa(e, i, E,
|
|
3687
|
+
pa(e, i, E, _, R), y = k;
|
|
3688
3688
|
}
|
|
3689
3689
|
if (!G(S) || !P(E))
|
|
3690
3690
|
return r ? tn : i;
|
|
@@ -3719,7 +3719,7 @@ function Hn(...e) {
|
|
|
3719
3719
|
const [t, n, r, a] = e, o = X();
|
|
3720
3720
|
let s = X();
|
|
3721
3721
|
if (!ie(t))
|
|
3722
|
-
throw Fe(
|
|
3722
|
+
throw Fe(de.INVALID_ARGUMENT);
|
|
3723
3723
|
const l = t;
|
|
3724
3724
|
return P(n) ? o.key = n : G(n) && Object.keys(n).forEach((i) => {
|
|
3725
3725
|
po.includes(i) ? s[i] = n[i] : o[i] = n[i];
|
|
@@ -3732,7 +3732,7 @@ function Xa(e, t, n) {
|
|
|
3732
3732
|
r.__numberFormatters.has(o) && r.__numberFormatters.delete(o);
|
|
3733
3733
|
}
|
|
3734
3734
|
}
|
|
3735
|
-
const Hl = (e) => e, Kl = (e) => "", jl = "text", ql = (e) => e.length === 0 ? "" :
|
|
3735
|
+
const Hl = (e) => e, Kl = (e) => "", jl = "text", ql = (e) => e.length === 0 ? "" : da(e), Xl = Ci;
|
|
3736
3736
|
function Qa(e, t) {
|
|
3737
3737
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
3738
3738
|
}
|
|
@@ -3751,7 +3751,7 @@ function zl(e = {}) {
|
|
|
3751
3751
|
const S = J(e.messages) ? e.messages(m, !!E) : H(e.messages) ? e.messages[m] : !1;
|
|
3752
3752
|
return S || (e.parent ? e.parent.message(m) : Kl);
|
|
3753
3753
|
}
|
|
3754
|
-
const u = (m) => e.modifiers ? e.modifiers[m] : Hl,
|
|
3754
|
+
const u = (m) => e.modifiers ? e.modifiers[m] : Hl, _ = G(e.processor) && J(e.processor.normalize) ? e.processor.normalize : ql, g = G(e.processor) && J(e.processor.interpolate) ? e.processor.interpolate : Xl, T = G(e.processor) && P(e.processor.type) ? e.processor.type : jl, w = {
|
|
3755
3755
|
list: l,
|
|
3756
3756
|
named: c,
|
|
3757
3757
|
plural: o,
|
|
@@ -3768,15 +3768,15 @@ function zl(e = {}) {
|
|
|
3768
3768
|
message: f,
|
|
3769
3769
|
type: T,
|
|
3770
3770
|
interpolate: g,
|
|
3771
|
-
normalize:
|
|
3771
|
+
normalize: _,
|
|
3772
3772
|
values: ce(X(), s, i)
|
|
3773
3773
|
};
|
|
3774
3774
|
return w;
|
|
3775
3775
|
}
|
|
3776
3776
|
const Ja = () => "", Se = (e) => J(e);
|
|
3777
3777
|
function za(e, ...t) {
|
|
3778
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: o, fallbackLocale: s, messages: l } = e, [i, c] = Kn(...t), f = K(c.missingWarn) ? c.missingWarn : e.missingWarn, u = K(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn,
|
|
3779
|
-
|
|
3778
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: o, fallbackLocale: s, messages: l } = e, [i, c] = Kn(...t), f = K(c.missingWarn) ? c.missingWarn : e.missingWarn, u = K(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, _ = K(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, g = !!c.resolvedMessage, T = P(c.default) || K(c.default) ? K(c.default) ? o ? i : () => i : c.default : n ? o ? i : () => i : null, p = n || T != null && (P(T) || J(T)), w = ga(e, c);
|
|
3779
|
+
_ && Zl(c);
|
|
3780
3780
|
let [m, E, S] = g ? [
|
|
3781
3781
|
i,
|
|
3782
3782
|
w,
|
|
@@ -3792,9 +3792,9 @@ function za(e, ...t) {
|
|
|
3792
3792
|
}, B = Se(y) ? y : So(e, i, E, y, k, A);
|
|
3793
3793
|
if (R)
|
|
3794
3794
|
return y;
|
|
3795
|
-
const Y = ac(e, E, S, c), re = zl(Y),
|
|
3796
|
-
let ee = r ? r(
|
|
3797
|
-
if (
|
|
3795
|
+
const Y = ac(e, E, S, c), re = zl(Y), _e = ec(e, B, re);
|
|
3796
|
+
let ee = r ? r(_e, i) : _e;
|
|
3797
|
+
if (_ && P(ee) && (ee = Ti(ee)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3798
3798
|
const et = {
|
|
3799
3799
|
timestamp: Date.now(),
|
|
3800
3800
|
key: P(i) ? i : Se(y) ? y.key : "",
|
|
@@ -3813,13 +3813,13 @@ function Zl(e) {
|
|
|
3813
3813
|
}
|
|
3814
3814
|
function Eo(e, t, n, r, a, o) {
|
|
3815
3815
|
const { messages: s, onWarn: l, messageResolver: i, localeFallbacker: c } = e, f = c(e, r, n);
|
|
3816
|
-
let u = X(),
|
|
3816
|
+
let u = X(), _, g = null, T = n, p = null;
|
|
3817
3817
|
const w = "translate";
|
|
3818
3818
|
for (let m = 0; m < f.length; m++) {
|
|
3819
|
-
if (
|
|
3819
|
+
if (_ = p = f[m], process.env.NODE_ENV !== "production" && n !== _ && !mo(n, _) && nn(a, t) && l(ze(me.FALLBACK_TO_TRANSLATE, {
|
|
3820
3820
|
key: t,
|
|
3821
|
-
target:
|
|
3822
|
-
})), process.env.NODE_ENV !== "production" && n !==
|
|
3821
|
+
target: _
|
|
3822
|
+
})), process.env.NODE_ENV !== "production" && n !== _) {
|
|
3823
3823
|
const k = e.__v_emitter;
|
|
3824
3824
|
k && k.emit("fallback", {
|
|
3825
3825
|
type: w,
|
|
@@ -3829,7 +3829,7 @@ function Eo(e, t, n, r, a, o) {
|
|
|
3829
3829
|
groupId: `${w}:${t}`
|
|
3830
3830
|
});
|
|
3831
3831
|
}
|
|
3832
|
-
u = s[
|
|
3832
|
+
u = s[_] || X();
|
|
3833
3833
|
let E = null, S, y;
|
|
3834
3834
|
if (process.env.NODE_ENV !== "production" && Ce && (E = window.performance.now(), S = "intlify-message-resolve-start", y = "intlify-message-resolve-end", Ee && Ee(S)), (g = i(u, t)) === null && (g = u[t]), process.env.NODE_ENV !== "production" && Ce) {
|
|
3835
3835
|
const k = window.performance.now(), R = e.__v_emitter;
|
|
@@ -3843,12 +3843,12 @@ function Eo(e, t, n, r, a, o) {
|
|
|
3843
3843
|
}
|
|
3844
3844
|
if (P(g) || ye(g) || Se(g))
|
|
3845
3845
|
break;
|
|
3846
|
-
if (!Yl(
|
|
3846
|
+
if (!Yl(_, f)) {
|
|
3847
3847
|
const k = pa(
|
|
3848
3848
|
e,
|
|
3849
3849
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
3850
3850
|
t,
|
|
3851
|
-
|
|
3851
|
+
_,
|
|
3852
3852
|
o,
|
|
3853
3853
|
w
|
|
3854
3854
|
);
|
|
@@ -3856,27 +3856,27 @@ function Eo(e, t, n, r, a, o) {
|
|
|
3856
3856
|
}
|
|
3857
3857
|
T = p;
|
|
3858
3858
|
}
|
|
3859
|
-
return [g,
|
|
3859
|
+
return [g, _, u];
|
|
3860
3860
|
}
|
|
3861
3861
|
function So(e, t, n, r, a, o) {
|
|
3862
3862
|
const { messageCompiler: s, warnHtmlMessage: l } = e;
|
|
3863
3863
|
if (Se(r)) {
|
|
3864
|
-
const
|
|
3865
|
-
return
|
|
3864
|
+
const _ = r;
|
|
3865
|
+
return _.locale = _.locale || n, _.key = _.key || t, _;
|
|
3866
3866
|
}
|
|
3867
3867
|
if (s == null) {
|
|
3868
|
-
const
|
|
3869
|
-
return
|
|
3868
|
+
const _ = () => r;
|
|
3869
|
+
return _.locale = n, _.key = t, _;
|
|
3870
3870
|
}
|
|
3871
3871
|
let i = null, c, f;
|
|
3872
3872
|
process.env.NODE_ENV !== "production" && Ce && (i = window.performance.now(), c = "intlify-message-compilation-start", f = "intlify-message-compilation-end", Ee && Ee(c));
|
|
3873
3873
|
const u = s(r, tc(e, n, a, r, l, o));
|
|
3874
3874
|
if (process.env.NODE_ENV !== "production" && Ce) {
|
|
3875
|
-
const
|
|
3875
|
+
const _ = window.performance.now(), g = e.__v_emitter;
|
|
3876
3876
|
g && i && g.emit("message-compilation", {
|
|
3877
3877
|
type: "message-compilation",
|
|
3878
3878
|
message: r,
|
|
3879
|
-
time:
|
|
3879
|
+
time: _ - i,
|
|
3880
3880
|
groupId: `translate:${t}`
|
|
3881
3881
|
}), c && f && Ee && Je && (Ee(f), Je("intlify message compilation", c, f));
|
|
3882
3882
|
}
|
|
@@ -3900,7 +3900,7 @@ function ec(e, t, n) {
|
|
|
3900
3900
|
function Kn(...e) {
|
|
3901
3901
|
const [t, n, r] = e, a = X();
|
|
3902
3902
|
if (!P(t) && !ie(t) && !Se(t) && !ye(t))
|
|
3903
|
-
throw Fe(
|
|
3903
|
+
throw Fe(de.INVALID_ARGUMENT);
|
|
3904
3904
|
const o = ie(t) ? String(t) : (Se(t), t);
|
|
3905
3905
|
return ie(n) ? a.plural = n : P(n) ? a.default = n : G(n) && !en(n) ? a.named = n : ae(n) && (a.list = n), ie(r) ? a.plural = r : P(r) ? a.default = r : G(r) && ce(a, r), [o, a];
|
|
3906
3906
|
}
|
|
@@ -3932,7 +3932,7 @@ function nc(e) {
|
|
|
3932
3932
|
return e.loc.source;
|
|
3933
3933
|
}
|
|
3934
3934
|
function ac(e, t, n, r) {
|
|
3935
|
-
const { modifiers: a, pluralRules: o, messageResolver: s, fallbackLocale: l, fallbackWarn: i, missingWarn: c, fallbackContext: f } = e,
|
|
3935
|
+
const { modifiers: a, pluralRules: o, messageResolver: s, fallbackLocale: l, fallbackWarn: i, missingWarn: c, fallbackContext: f } = e, _ = {
|
|
3936
3936
|
locale: t,
|
|
3937
3937
|
modifiers: a,
|
|
3938
3938
|
pluralRules: o,
|
|
@@ -3959,7 +3959,7 @@ function ac(e, t, n, r) {
|
|
|
3959
3959
|
} else return Se(p) ? p : Ja;
|
|
3960
3960
|
}
|
|
3961
3961
|
};
|
|
3962
|
-
return e.processor && (
|
|
3962
|
+
return e.processor && (_.processor = e.processor), r.list && (_.list = r.list), r.named && (_.named = r.named), ie(r.plural) && (_.pluralIndex = r.plural), _;
|
|
3963
3963
|
}
|
|
3964
3964
|
al();
|
|
3965
3965
|
function rc() {
|
|
@@ -4057,8 +4057,8 @@ function fc(e, t) {
|
|
|
4057
4057
|
* (c) 2025 kazuya kawaguchi
|
|
4058
4058
|
* Released under the MIT License.
|
|
4059
4059
|
*/
|
|
4060
|
-
const
|
|
4061
|
-
function
|
|
4060
|
+
const dc = "11.1.12";
|
|
4061
|
+
function _c() {
|
|
4062
4062
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Qe().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Qe().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Qe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Qe().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
4063
4063
|
}
|
|
4064
4064
|
const Z = {
|
|
@@ -4084,7 +4084,7 @@ const Z = {
|
|
|
4084
4084
|
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
4085
4085
|
};
|
|
4086
4086
|
function he(e, ...t) {
|
|
4087
|
-
return
|
|
4087
|
+
return _t(e, null, process.env.NODE_ENV !== "production" ? { messages: mc, args: t } : void 0);
|
|
4088
4088
|
}
|
|
4089
4089
|
const mc = {
|
|
4090
4090
|
[Z.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
@@ -4128,7 +4128,7 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
4128
4128
|
[be.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",
|
|
4129
4129
|
[be.DUPLICATE_USE_I18N_CALLING]: "Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."
|
|
4130
4130
|
};
|
|
4131
|
-
function
|
|
4131
|
+
function dt(e, ...t) {
|
|
4132
4132
|
return Zt(hc[e], ...t);
|
|
4133
4133
|
}
|
|
4134
4134
|
function Dt(e) {
|
|
@@ -4145,7 +4145,7 @@ function Dt(e) {
|
|
|
4145
4145
|
if (n[s] === "__proto__")
|
|
4146
4146
|
throw new Error(`unsafe key: ${n[s]}`);
|
|
4147
4147
|
if (n[s] in a || (a[n[s]] = X()), !H(a[n[s]])) {
|
|
4148
|
-
process.env.NODE_ENV !== "production" && (
|
|
4148
|
+
process.env.NODE_ENV !== "production" && (dt(be.IGNORE_OBJ_FLATTEN, {
|
|
4149
4149
|
key: n[s]
|
|
4150
4150
|
}), void 0), o = !0;
|
|
4151
4151
|
break;
|
|
@@ -4223,20 +4223,20 @@ function Sa(e = {}) {
|
|
|
4223
4223
|
// prettier-ignore
|
|
4224
4224
|
t && s ? t.fallbackLocale.value : P(e.fallbackLocale) || ae(e.fallbackLocale) || G(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l.value
|
|
4225
4225
|
), c = o(Ea(l.value, e)), f = o(G(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), u = o(G(e.numberFormats) ? e.numberFormats : { [l.value]: {} });
|
|
4226
|
-
let
|
|
4226
|
+
let _ = t ? t.missingWarn : K(e.missingWarn) || ut(e.missingWarn) ? e.missingWarn : !0, g = t ? t.fallbackWarn : K(e.fallbackWarn) || ut(e.fallbackWarn) ? e.fallbackWarn : !0, T = t ? t.fallbackRoot : K(e.fallbackRoot) ? e.fallbackRoot : !0, p = !!e.fallbackFormat, w = J(e.missing) ? e.missing : null, m = J(e.missing) ? ar(e.missing) : null, E = J(e.postTranslation) ? e.postTranslation : null, S = t ? t.warnHtmlMessage : K(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter;
|
|
4227
4227
|
const k = t ? t.modifiers : G(e.modifiers) ? e.modifiers : {};
|
|
4228
4228
|
let R = e.pluralRules || t && t.pluralRules, A;
|
|
4229
4229
|
A = (() => {
|
|
4230
4230
|
r && Wa(null);
|
|
4231
4231
|
const v = {
|
|
4232
|
-
version:
|
|
4232
|
+
version: dc,
|
|
4233
4233
|
locale: l.value,
|
|
4234
4234
|
fallbackLocale: i.value,
|
|
4235
4235
|
messages: c.value,
|
|
4236
4236
|
modifiers: k,
|
|
4237
4237
|
pluralRules: R,
|
|
4238
4238
|
missing: m === null ? void 0 : m,
|
|
4239
|
-
missingWarn:
|
|
4239
|
+
missingWarn: _,
|
|
4240
4240
|
fallbackWarn: g,
|
|
4241
4241
|
fallbackFormat: p,
|
|
4242
4242
|
unresolving: !0,
|
|
@@ -4265,7 +4265,7 @@ function Sa(e = {}) {
|
|
|
4265
4265
|
set: (v) => {
|
|
4266
4266
|
A.locale = v, l.value = v;
|
|
4267
4267
|
}
|
|
4268
|
-
}),
|
|
4268
|
+
}), _e = Et({
|
|
4269
4269
|
get: () => i.value,
|
|
4270
4270
|
set: (v) => {
|
|
4271
4271
|
A.fallbackLocale = v, i.value = v, vt(A, l.value, v);
|
|
@@ -4283,7 +4283,7 @@ function Sa(e = {}) {
|
|
|
4283
4283
|
function fn(v) {
|
|
4284
4284
|
v !== null && (m = ar(v)), w = v, A.missing = m;
|
|
4285
4285
|
}
|
|
4286
|
-
function
|
|
4286
|
+
function dn(v, O) {
|
|
4287
4287
|
return v !== "translate" || !O.resolvedMessage;
|
|
4288
4288
|
}
|
|
4289
4289
|
const De = (v, O, q, se, Ke, xt) => {
|
|
@@ -4297,7 +4297,7 @@ function Sa(e = {}) {
|
|
|
4297
4297
|
if (q !== "translate exists" && // for not `te` (e.g `t`)
|
|
4298
4298
|
ie(tt) && tt === tn || q === "translate exists" && !tt) {
|
|
4299
4299
|
const [je, Uo] = O();
|
|
4300
|
-
if (process.env.NODE_ENV !== "production" && t && P(je) &&
|
|
4300
|
+
if (process.env.NODE_ENV !== "production" && t && P(je) && dn(q, Uo) && (T && (nn(g, je) || _o(_, je)) && (dt(be.FALLBACK_TO_ROOT, {
|
|
4301
4301
|
key: je,
|
|
4302
4302
|
type: q
|
|
4303
4303
|
}), void 0), process.env.NODE_ENV !== "production")) {
|
|
@@ -4319,7 +4319,7 @@ function Sa(e = {}) {
|
|
|
4319
4319
|
function mt(...v) {
|
|
4320
4320
|
return De((O) => Reflect.apply(za, null, [O, ...v]), () => Kn(...v), "translate", (O) => Reflect.apply(O.t, O, [...v]), (O) => O, (O) => P(O));
|
|
4321
4321
|
}
|
|
4322
|
-
function
|
|
4322
|
+
function _n(...v) {
|
|
4323
4323
|
const [O, q, se] = v;
|
|
4324
4324
|
if (se && !H(se))
|
|
4325
4325
|
throw he(Z.INVALID_ARGUMENT);
|
|
@@ -4404,7 +4404,7 @@ function Sa(e = {}) {
|
|
|
4404
4404
|
Ae(q, se) && Dt(q[se]);
|
|
4405
4405
|
O = q[v], Ht(O, c.value[v]), A.messages = c.value;
|
|
4406
4406
|
}
|
|
4407
|
-
function
|
|
4407
|
+
function d(v) {
|
|
4408
4408
|
return f.value[v] || {};
|
|
4409
4409
|
}
|
|
4410
4410
|
function h(v, O) {
|
|
@@ -4430,7 +4430,7 @@ function Sa(e = {}) {
|
|
|
4430
4430
|
const j = {
|
|
4431
4431
|
id: nr,
|
|
4432
4432
|
locale: re,
|
|
4433
|
-
fallbackLocale:
|
|
4433
|
+
fallbackLocale: _e,
|
|
4434
4434
|
get inheritLocale() {
|
|
4435
4435
|
return s;
|
|
4436
4436
|
},
|
|
@@ -4451,10 +4451,10 @@ function Sa(e = {}) {
|
|
|
4451
4451
|
return r;
|
|
4452
4452
|
},
|
|
4453
4453
|
get missingWarn() {
|
|
4454
|
-
return
|
|
4454
|
+
return _;
|
|
4455
4455
|
},
|
|
4456
4456
|
set missingWarn(v) {
|
|
4457
|
-
|
|
4457
|
+
_ = v, A.missingWarn = _;
|
|
4458
4458
|
},
|
|
4459
4459
|
get fallbackWarn() {
|
|
4460
4460
|
return g;
|
|
@@ -4496,7 +4496,7 @@ function Sa(e = {}) {
|
|
|
4496
4496
|
setMissingHandler: fn,
|
|
4497
4497
|
[vo]: Sn
|
|
4498
4498
|
};
|
|
4499
|
-
return j.datetimeFormats = et, j.numberFormats = sn, j.rt =
|
|
4499
|
+
return j.datetimeFormats = et, j.numberFormats = sn, j.rt = _n, j.te = bn, j.tm = gt, j.d = mn, j.n = hn, j.getDateTimeFormat = d, j.setDateTimeFormat = h, j.mergeDateTimeFormat = N, j.getNumberFormat = M, j.setNumberFormat = ne, j.mergeNumberFormat = oe, j[yo] = n, j[qn] = Mt, j[Xn] = Ut, j[Qn] = En, process.env.NODE_ENV !== "production" && (j[Ze] = (v) => {
|
|
4500
4500
|
A.__v_emitter = v;
|
|
4501
4501
|
}, j[wt] = () => {
|
|
4502
4502
|
A.__v_emitter = void 0;
|
|
@@ -4763,7 +4763,7 @@ function wc(e, t) {
|
|
|
4763
4763
|
}
|
|
4764
4764
|
}
|
|
4765
4765
|
function Dc(e) {
|
|
4766
|
-
const t = P(e.locale) ? e.locale : Lt, n = P(e.fallbackLocale) || ae(e.fallbackLocale) || G(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = J(e.missing) ? e.missing : void 0, a = K(e.silentTranslationWarn) || ut(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, o = K(e.silentFallbackWarn) || ut(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, s = K(e.fallbackRoot) ? e.fallbackRoot : !0, l = !!e.formatFallbackMessages, i = G(e.modifiers) ? e.modifiers : {}, c = e.pluralizationRules, f = J(e.postTranslation) ? e.postTranslation : void 0, u = P(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0,
|
|
4766
|
+
const t = P(e.locale) ? e.locale : Lt, n = P(e.fallbackLocale) || ae(e.fallbackLocale) || G(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = J(e.missing) ? e.missing : void 0, a = K(e.silentTranslationWarn) || ut(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, o = K(e.silentFallbackWarn) || ut(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, s = K(e.fallbackRoot) ? e.fallbackRoot : !0, l = !!e.formatFallbackMessages, i = G(e.modifiers) ? e.modifiers : {}, c = e.pluralizationRules, f = J(e.postTranslation) ? e.postTranslation : void 0, u = P(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, _ = !!e.escapeParameterHtml, g = K(e.sync) ? e.sync : !0;
|
|
4767
4767
|
let T = e.messages;
|
|
4768
4768
|
if (G(e.sharedMessages)) {
|
|
4769
4769
|
const k = e.sharedMessages;
|
|
@@ -4789,7 +4789,7 @@ function Dc(e) {
|
|
|
4789
4789
|
pluralRules: c,
|
|
4790
4790
|
postTranslation: f,
|
|
4791
4791
|
warnHtmlMessage: u,
|
|
4792
|
-
escapeParameter:
|
|
4792
|
+
escapeParameter: _,
|
|
4793
4793
|
messageResolver: e.messageResolver,
|
|
4794
4794
|
inheritLocale: g,
|
|
4795
4795
|
__i18n: p,
|
|
@@ -5003,7 +5003,7 @@ function kc(e, t, n) {
|
|
|
5003
5003
|
if (process.env.NODE_ENV !== "production" && this.$el && this.$i18n) {
|
|
5004
5004
|
const r = this.$i18n;
|
|
5005
5005
|
this.$el.__VUE_I18N__ = r.__composer;
|
|
5006
|
-
const a = this.__v_emitter =
|
|
5006
|
+
const a = this.__v_emitter = _a();
|
|
5007
5007
|
r.__enableEmitter && r.__enableEmitter(a), a.on("*", kt);
|
|
5008
5008
|
}
|
|
5009
5009
|
},
|
|
@@ -5091,12 +5091,12 @@ function Lo(e, t, n, r) {
|
|
|
5091
5091
|
return () => {
|
|
5092
5092
|
const s = { part: !0 };
|
|
5093
5093
|
let l = X();
|
|
5094
|
-
e.locale && (s.locale = e.locale), P(e.format) ? s.key = e.format : H(e.format) && (P(e.format.key) && (s.key = e.format.key), l = Object.keys(e.format).reduce((
|
|
5094
|
+
e.locale && (s.locale = e.locale), P(e.format) ? s.key = e.format : H(e.format) && (P(e.format.key) && (s.key = e.format.key), l = Object.keys(e.format).reduce((_, g) => n.includes(g) ? ce(X(), _, { [g]: e.format[g] }) : _, X()));
|
|
5095
5095
|
const i = r(e.value, s, l);
|
|
5096
5096
|
let c = [s.key];
|
|
5097
|
-
ae(i) ? c = i.map((
|
|
5098
|
-
const T = a[
|
|
5099
|
-
return Fc(p) && (p[0].key = `${
|
|
5097
|
+
ae(i) ? c = i.map((_, g) => {
|
|
5098
|
+
const T = a[_.type], p = T ? T({ [_.type]: _.value, index: g, parts: i }) : [_.value];
|
|
5099
|
+
return Fc(p) && (p[0].key = `${_.type}-${g}`), p;
|
|
5100
5100
|
}) : P(i) && (c = [i]);
|
|
5101
5101
|
const f = ce(X(), o), u = P(e.tag) || H(e.tag) ? e.tag : Io();
|
|
5102
5102
|
return Ir(u, f, c);
|
|
@@ -5138,7 +5138,7 @@ function Uc(e, t) {
|
|
|
5138
5138
|
}
|
|
5139
5139
|
function xc(e) {
|
|
5140
5140
|
const t = (s) => {
|
|
5141
|
-
process.env.NODE_ENV !== "production" && ua(
|
|
5141
|
+
process.env.NODE_ENV !== "production" && ua(dt(be.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
|
|
5142
5142
|
const { instance: l, value: i } = s;
|
|
5143
5143
|
if (!l || !l.$)
|
|
5144
5144
|
throw he(Z.UNEXPECTED_ERROR);
|
|
@@ -5193,13 +5193,13 @@ function Vc(e, t, ...n) {
|
|
|
5193
5193
|
const Bc = /* @__PURE__ */ we("global-vue-i18n");
|
|
5194
5194
|
function Gc(e = {}) {
|
|
5195
5195
|
const t = __VUE_I18N_LEGACY_API__ && K(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
|
|
5196
|
-
process.env.NODE_ENV !== "production" && t && ua(
|
|
5196
|
+
process.env.NODE_ENV !== "production" && t && ua(dt(be.DEPRECATE_LEGACY_MODE));
|
|
5197
5197
|
const n = K(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [a, o] = $c(e, t), s = /* @__PURE__ */ we(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
5198
5198
|
function l(u) {
|
|
5199
5199
|
return r.get(u) || null;
|
|
5200
5200
|
}
|
|
5201
|
-
function i(u,
|
|
5202
|
-
r.set(u,
|
|
5201
|
+
function i(u, _) {
|
|
5202
|
+
r.set(u, _);
|
|
5203
5203
|
}
|
|
5204
5204
|
function c(u) {
|
|
5205
5205
|
r.delete(u);
|
|
@@ -5210,20 +5210,20 @@ function Gc(e = {}) {
|
|
|
5210
5210
|
return __VUE_I18N_LEGACY_API__ && t ? "legacy" : "composition";
|
|
5211
5211
|
},
|
|
5212
5212
|
// install plugin
|
|
5213
|
-
async install(u, ...
|
|
5214
|
-
if (process.env.NODE_ENV !== "production" && (u.__VUE_I18N__ = f), u.__VUE_I18N_SYMBOL__ = s, u.provide(u.__VUE_I18N_SYMBOL__, f), G(
|
|
5215
|
-
const p =
|
|
5213
|
+
async install(u, ..._) {
|
|
5214
|
+
if (process.env.NODE_ENV !== "production" && (u.__VUE_I18N__ = f), u.__VUE_I18N_SYMBOL__ = s, u.provide(u.__VUE_I18N_SYMBOL__, f), G(_[0])) {
|
|
5215
|
+
const p = _[0];
|
|
5216
5216
|
f.__composerExtend = p.__composerExtend, f.__vueI18nExtend = p.__vueI18nExtend;
|
|
5217
5217
|
}
|
|
5218
5218
|
let g = null;
|
|
5219
|
-
!t && n && (g = Qc(u, f.global)), __VUE_I18N_FULL_INSTALL__ && Vc(u, f, ...
|
|
5219
|
+
!t && n && (g = Qc(u, f.global)), __VUE_I18N_FULL_INSTALL__ && Vc(u, f, ..._), __VUE_I18N_LEGACY_API__ && t && u.mixin(kc(o, o.__composer, f));
|
|
5220
5220
|
const T = u.unmount;
|
|
5221
5221
|
if (u.unmount = () => {
|
|
5222
5222
|
g && g(), f.dispose(), T();
|
|
5223
5223
|
}, process.env.NODE_ENV !== "production") {
|
|
5224
5224
|
if (!await bc(u, f))
|
|
5225
5225
|
throw he(Z.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
5226
|
-
const w =
|
|
5226
|
+
const w = _a();
|
|
5227
5227
|
if (t) {
|
|
5228
5228
|
const m = o;
|
|
5229
5229
|
m.__enableEmitter && m.__enableEmitter(w);
|
|
@@ -5263,7 +5263,7 @@ function ya(e = {}) {
|
|
|
5263
5263
|
return Ao(r, e, a), r;
|
|
5264
5264
|
if (o === "parent") {
|
|
5265
5265
|
let i = Kc(n, t, e.__useComponent);
|
|
5266
|
-
return i == null && (process.env.NODE_ENV !== "production" && (
|
|
5266
|
+
return i == null && (process.env.NODE_ENV !== "production" && (dt(be.NOT_FOUND_PARENT_SCOPE), void 0), i = r), i;
|
|
5267
5267
|
}
|
|
5268
5268
|
const s = n;
|
|
5269
5269
|
let l = s.__getInstance(t);
|
|
@@ -5271,7 +5271,7 @@ function ya(e = {}) {
|
|
|
5271
5271
|
const i = ce({}, e);
|
|
5272
5272
|
"__i18n" in a && (i.__i18n = a.__i18n), r && (i.__root = r), l = Sa(i), s.__composerExtend && (l[Jn] = s.__composerExtend(l)), qc(s, t, l), s.__setInstance(t, l);
|
|
5273
5273
|
} else
|
|
5274
|
-
process.env.NODE_ENV !== "production" && o === "local" && (
|
|
5274
|
+
process.env.NODE_ENV !== "production" && o === "local" && (dt(be.DUPLICATE_USE_I18N_CALLING), void 0);
|
|
5275
5275
|
return l;
|
|
5276
5276
|
}
|
|
5277
5277
|
function $c(e, t) {
|
|
@@ -5317,7 +5317,7 @@ function qc(e, t, n) {
|
|
|
5317
5317
|
let r = null;
|
|
5318
5318
|
Wo(() => {
|
|
5319
5319
|
if (process.env.NODE_ENV !== "production" && t.vnode.el) {
|
|
5320
|
-
t.vnode.el.__VUE_I18N__ = n, r =
|
|
5320
|
+
t.vnode.el.__VUE_I18N__ = n, r = _a();
|
|
5321
5321
|
const a = n;
|
|
5322
5322
|
a[Ze] && a[Ze](r), r.on("*", kt);
|
|
5323
5323
|
}
|
|
@@ -5389,7 +5389,7 @@ const Jc = /* @__PURE__ */ ta({
|
|
|
5389
5389
|
));
|
|
5390
5390
|
}
|
|
5391
5391
|
}), fr = Jc;
|
|
5392
|
-
|
|
5392
|
+
_c();
|
|
5393
5393
|
Ul(hl);
|
|
5394
5394
|
xl(kl);
|
|
5395
5395
|
Vl(so);
|
|
@@ -5496,7 +5496,7 @@ const Ft = Le("cloudSdkLanguageStore", {
|
|
|
5496
5496
|
this.languageName = e, I.localSet(at, e), Xe.locale.value = e;
|
|
5497
5497
|
}
|
|
5498
5498
|
}
|
|
5499
|
-
}),
|
|
5499
|
+
}), dr = "__system:themes__", tu = "light", In = "__system:layoutSidebarState__", nu = "on", _r = "__system:layoutNavTabs__", au = "on", ru = "__system:layoutWatermark__", ou = "on";
|
|
5500
5500
|
function mr() {
|
|
5501
5501
|
let e = typeof window < "u" && window.navigator.userAgent.toLowerCase();
|
|
5502
5502
|
return `${e.match(/Chrome/i)}` == "chrome" ? "chrome" : `${e.match(/Webkit/i)}` == "webkit" ? "webkit" : null;
|
|
@@ -5507,7 +5507,7 @@ const Ge = Le("cloudSdkThemesStore", {
|
|
|
5507
5507
|
/**
|
|
5508
5508
|
* 上边切换卡
|
|
5509
5509
|
*/
|
|
5510
|
-
layoutNavTabs: I.localGet(
|
|
5510
|
+
layoutNavTabs: I.localGet(_r) || au,
|
|
5511
5511
|
/**
|
|
5512
5512
|
* 左边侧栏
|
|
5513
5513
|
*/
|
|
@@ -5517,7 +5517,7 @@ const Ge = Le("cloudSdkThemesStore", {
|
|
|
5517
5517
|
* auto|light|dark
|
|
5518
5518
|
* 自动生成
|
|
5519
5519
|
*/
|
|
5520
|
-
themesName: I.localGet(
|
|
5520
|
+
themesName: I.localGet(dr) || tu,
|
|
5521
5521
|
themesList: [
|
|
5522
5522
|
{ name: "跟随系统", value: "auto" },
|
|
5523
5523
|
{ name: "明亮", value: "light" },
|
|
@@ -5554,7 +5554,7 @@ const Ge = Le("cloudSdkThemesStore", {
|
|
|
5554
5554
|
SA_LAYOUT_NAVTABS_SET(e) {
|
|
5555
5555
|
pe.__POWERED_BY_QIANKUN__ && (e = "off"), this.layoutNavTabs = e;
|
|
5556
5556
|
const t = document.querySelector("html");
|
|
5557
|
-
t.classList.remove(e == "off" ? "openNavtabs" : "hideNavtabs"), t.classList.add(e == "on" ? "openNavtabs" : "hideNavtabs"), pe.__POWERED_BY_QIANKUN__ || I.localSet(
|
|
5557
|
+
t.classList.remove(e == "off" ? "openNavtabs" : "hideNavtabs"), t.classList.add(e == "on" ? "openNavtabs" : "hideNavtabs"), pe.__POWERED_BY_QIANKUN__ || I.localSet(_r, e);
|
|
5558
5558
|
},
|
|
5559
5559
|
/**
|
|
5560
5560
|
* 设置主题
|
|
@@ -5590,7 +5590,7 @@ const Ge = Le("cloudSdkThemesStore", {
|
|
|
5590
5590
|
break;
|
|
5591
5591
|
}
|
|
5592
5592
|
const n = document.querySelector("html");
|
|
5593
|
-
n.classList.remove(this.themesName == "dark" ? "light" : "dark"), n.classList.add(this.themesName), I.localSet(
|
|
5593
|
+
n.classList.remove(this.themesName == "dark" ? "light" : "dark"), n.classList.add(this.themesName), I.localSet(dr, this.themesName);
|
|
5594
5594
|
}
|
|
5595
5595
|
}
|
|
5596
5596
|
});
|
|
@@ -5733,7 +5733,7 @@ function fu(e, t) {
|
|
|
5733
5733
|
message: r
|
|
5734
5734
|
};
|
|
5735
5735
|
}
|
|
5736
|
-
class
|
|
5736
|
+
class du {
|
|
5737
5737
|
constructor(t = {}) {
|
|
5738
5738
|
this.flagMap = t.flagMap || {}, this.flagAuth = t.flagAuth || {}, this.flagCurr = "", this.baseURL = t.baseURL || "", this.baseMock = t.baseMock || "", this.requests = Object.assign({}, t.requests || {}), this.requestTemp = {}, this.headers = Object.assign({}, t.headers || {}), this.headerTemp = {}, this.configs = Object.assign({}, t.configs || {}), this.configTemp = {}, this.customs = Object.assign({}, t.customs || {}), this.customTemp = {}, this.encryptURL = t.encryptURL || [], this.encryptFlag = !1, this.retries = 3, this.debugState = t.debug || !1, this.requestHandle = null, this._initReqHandle(t);
|
|
5739
5739
|
}
|
|
@@ -5896,9 +5896,9 @@ class _u {
|
|
|
5896
5896
|
let a = hr(n, this.baseURL);
|
|
5897
5897
|
this.__encryp_parse(n);
|
|
5898
5898
|
let o = this.__parse_method_type(t), s = this.flagAuth[this.flagCurr] || null, l = {};
|
|
5899
|
-
s && (l = s.split(",").reduce((
|
|
5899
|
+
s && (l = s.split(",").reduce((_, g) => {
|
|
5900
5900
|
const [T, p] = g.split("=");
|
|
5901
|
-
return
|
|
5901
|
+
return _[T] = p, _;
|
|
5902
5902
|
}, {}));
|
|
5903
5903
|
let i = Object.assign({}, this.headers, this.headerTemp, {}), c = Object.assign({}, this.requests, this.requestTemp, r || {}), f = Object.assign({}, this.configs, this.configTemp, {}), u = Object.assign({}, this.customs, this.customTemp, {
|
|
5904
5904
|
flag: this.flagCurr,
|
|
@@ -5920,13 +5920,13 @@ class _u {
|
|
|
5920
5920
|
});
|
|
5921
5921
|
if (o != "DOWNLOAD") if (o == "MOCK")
|
|
5922
5922
|
try {
|
|
5923
|
-
let
|
|
5923
|
+
let _ = n.includes(".json") ? `${n}` : `${n}.json`, g = hr(_, this.baseMock + "/");
|
|
5924
5924
|
const T = await fetch(g);
|
|
5925
5925
|
responseInfo.statusCode = T.status, responseInfo.errMsg = "request:ok";
|
|
5926
5926
|
const p = await T.json();
|
|
5927
5927
|
responseInfo.data = p;
|
|
5928
|
-
} catch (
|
|
5929
|
-
let g =
|
|
5928
|
+
} catch (_) {
|
|
5929
|
+
let g = _.message;
|
|
5930
5930
|
g.includes("Unexpected token") && g.includes("is not valid JSON") && (responseInfo.data = {
|
|
5931
5931
|
code: 200,
|
|
5932
5932
|
data: {}
|
|
@@ -6063,8 +6063,8 @@ class _u {
|
|
|
6063
6063
|
if (f === "[object String]" || f === "[object Number]") {
|
|
6064
6064
|
let u = String(c).trim();
|
|
6065
6065
|
if (/^\d+$/.test(u) && (s.endsWith("/") || (s += "/"), s += u), o == 3) {
|
|
6066
|
-
let
|
|
6067
|
-
Object.prototype.toString.call(
|
|
6066
|
+
let _ = r[2];
|
|
6067
|
+
Object.prototype.toString.call(_) === "[object Object]" && (i = _ || {});
|
|
6068
6068
|
}
|
|
6069
6069
|
} else f === "[object Object]" ? i = c || {} : f === "[object FormData]" && (i = c || new FormData());
|
|
6070
6070
|
return a.apiAll(n, s, i);
|
|
@@ -6072,7 +6072,7 @@ class _u {
|
|
|
6072
6072
|
return new Promise((i, c) => c({ message: " 请求错误 " }));
|
|
6073
6073
|
}
|
|
6074
6074
|
}
|
|
6075
|
-
const
|
|
6075
|
+
const _u = Le("cloudSdkCommonStore", {
|
|
6076
6076
|
state: () => ({
|
|
6077
6077
|
loginBaseShow: !1,
|
|
6078
6078
|
// 控制是否打开登录弹窗
|
|
@@ -6137,7 +6137,7 @@ function pu(e) {
|
|
|
6137
6137
|
let Pe = null;
|
|
6138
6138
|
function Po(e = {}) {
|
|
6139
6139
|
const t = Jt();
|
|
6140
|
-
Pe = new
|
|
6140
|
+
Pe = new du({
|
|
6141
6141
|
// timeout: 60 * 1000, // 请求超时时间毫秒
|
|
6142
6142
|
// withCredentials: true, // true|false 异步请求携带cookie(Check cross-site Access-Control)
|
|
6143
6143
|
baseURL: t.syApiBaseUrl || "",
|
|
@@ -6174,7 +6174,7 @@ function Po(e = {}) {
|
|
|
6174
6174
|
e && (n = e.ApiFlagSet || {}, r = e.ApiAuthSet || {});
|
|
6175
6175
|
let a = Object.assign({}, mu, n, t.syOpenApiFlag), o = Object.assign({}, hu, r, t.syOpenApiAuth);
|
|
6176
6176
|
Pe.setApiFlag(a), Pe.setApiAuth(o);
|
|
6177
|
-
const s =
|
|
6177
|
+
const s = _u(), l = Te();
|
|
6178
6178
|
return Pe.interceptors.request.use(
|
|
6179
6179
|
(i) => {
|
|
6180
6180
|
const c = i.customs || {};
|
|
@@ -6188,8 +6188,8 @@ function Po(e = {}) {
|
|
|
6188
6188
|
(i) => Promise.reject(i)
|
|
6189
6189
|
), Pe.interceptors.response.use(
|
|
6190
6190
|
(i) => {
|
|
6191
|
-
var
|
|
6192
|
-
s.SA_LOADING_SHOW(!1), (
|
|
6191
|
+
var _;
|
|
6192
|
+
s.SA_LOADING_SHOW(!1), (_ = i.config) != null && _.customs;
|
|
6193
6193
|
let c = i.status || -1, f = i.data || {}, u = f.status || f.code || -1;
|
|
6194
6194
|
if (u = parseInt(u), f.msg || f.message, c != 200)
|
|
6195
6195
|
return Promise.reject(i);
|
|
@@ -6198,19 +6198,19 @@ function Po(e = {}) {
|
|
|
6198
6198
|
throw { message: "请求出错,稍后重试" };
|
|
6199
6199
|
},
|
|
6200
6200
|
(i) => {
|
|
6201
|
-
var m, E, S, y, k, R, A, B, Y, re,
|
|
6201
|
+
var m, E, S, y, k, R, A, B, Y, re, _e, ee;
|
|
6202
6202
|
let c = ((m = i == null ? void 0 : i.response) == null ? void 0 : m.status) || i.status || -1, f = (i == null ? void 0 : i.code) || "", u = i.message || ((S = (E = i == null ? void 0 : i.response) == null ? void 0 : E.data) == null ? void 0 : S.message) || ((y = i == null ? void 0 : i.response) == null ? void 0 : y.statusText) || "";
|
|
6203
6203
|
c == -1 && (u.includes("timeout") || f.includes("ECONNABORTED") ? c = 504 : u.includes("Network Error") ? c = 408 : u.includes("Not Found") && (c = 404));
|
|
6204
|
-
let
|
|
6204
|
+
let _ = ((R = (k = i == null ? void 0 : i.response) == null ? void 0 : k.data) == null ? void 0 : R.errorCode) || -1, g = ((B = (A = i == null ? void 0 : i.response) == null ? void 0 : A.data) == null ? void 0 : B.errorMessage) || ((re = (Y = i == null ? void 0 : i.response) == null ? void 0 : Y.data) == null ? void 0 : re.message), T = ((ee = (_e = i == null ? void 0 : i.config) == null ? void 0 : _e.customs) == null ? void 0 : ee.flag) || "", p = fu(c), w = {
|
|
6205
6205
|
type: "error",
|
|
6206
6206
|
title: p.title,
|
|
6207
6207
|
message: p.message,
|
|
6208
6208
|
status: c,
|
|
6209
|
-
code:
|
|
6209
|
+
code: _,
|
|
6210
6210
|
error: g || u,
|
|
6211
6211
|
flag: T
|
|
6212
6212
|
};
|
|
6213
|
-
return (c == 400 || c == 422) && (
|
|
6213
|
+
return (c == 400 || c == 422) && (_ == 400 || _ == 422 || _.toString().startsWith("400")) && (w.message = g || p.message), pu(w), Promise.reject(w);
|
|
6214
6214
|
}
|
|
6215
6215
|
), Pe;
|
|
6216
6216
|
}
|
|
@@ -6376,7 +6376,7 @@ const Te = Le("cloudSdkAccountStore", {
|
|
|
6376
6376
|
if (e = e || !1, !this.accountToken)
|
|
6377
6377
|
return !1;
|
|
6378
6378
|
let t = I.localGet(ot) || "";
|
|
6379
|
-
e
|
|
6379
|
+
(e || t == "") && await ue.flagGet("ORG_SYS_BASE_MYRBAC", {}).then((n) => {
|
|
6380
6380
|
n.status == 100600 ? this.SA_ACCOUNT_LOGOUT() : n.status == 200 && I.localSet(ot, n.data || "");
|
|
6381
6381
|
});
|
|
6382
6382
|
},
|
|
@@ -6625,7 +6625,7 @@ const rn = Le("cloudSdkProductStore", {
|
|
|
6625
6625
|
isAlone: !0,
|
|
6626
6626
|
name: "login",
|
|
6627
6627
|
path: "/login",
|
|
6628
|
-
component: () => import("./login-
|
|
6628
|
+
component: () => import("./login-1tlYEiXY.js")
|
|
6629
6629
|
}
|
|
6630
6630
|
], Au = [
|
|
6631
6631
|
{
|
|
@@ -6633,14 +6633,14 @@ const rn = Le("cloudSdkProductStore", {
|
|
|
6633
6633
|
isAlone: !0,
|
|
6634
6634
|
name: "alone_run",
|
|
6635
6635
|
path: "/alone_run",
|
|
6636
|
-
component: () => import("./alone_run-
|
|
6636
|
+
component: () => import("./alone_run-D6iWzaJ1.js")
|
|
6637
6637
|
},
|
|
6638
6638
|
{
|
|
6639
6639
|
meta: { title: "错误", isAlone: !0 },
|
|
6640
6640
|
isAlone: !0,
|
|
6641
6641
|
name: "404",
|
|
6642
6642
|
path: "/:catchAll(.*)",
|
|
6643
|
-
component: () => import("./404-
|
|
6643
|
+
component: () => import("./404-BzS1uV1B.js")
|
|
6644
6644
|
}
|
|
6645
6645
|
], Nu = [
|
|
6646
6646
|
{
|
|
@@ -6648,7 +6648,7 @@ const rn = Le("cloudSdkProductStore", {
|
|
|
6648
6648
|
isAlone: !1,
|
|
6649
6649
|
name: "none",
|
|
6650
6650
|
path: "/none",
|
|
6651
|
-
component: () => import("./none-
|
|
6651
|
+
component: () => import("./none-CX-nyJTn.js")
|
|
6652
6652
|
}
|
|
6653
6653
|
], on = Le("cloudSdkPermissionStore", {
|
|
6654
6654
|
state: () => ({
|
|
@@ -6734,13 +6734,13 @@ const Ou = Le("cloudSdkApplicationStore", {
|
|
|
6734
6734
|
const c = r.PLAT_BRAND || (o == null ? void 0 : o.PLAT_BRAND), f = r.PLAT_LOGO_CDN || o.PLAT_LOGO_CDN;
|
|
6735
6735
|
f && Cu(f);
|
|
6736
6736
|
const u = l || "十云";
|
|
6737
|
-
let
|
|
6738
|
-
return a == "org-business" && (
|
|
6737
|
+
let _ = "";
|
|
6738
|
+
return a == "org-business" && (_ = r.BIZS_LOGIN_BG || o.platinfo_login_bg), {
|
|
6739
6739
|
LAST_IP_LOGO: f,
|
|
6740
6740
|
LAST_IP_TITLE: i,
|
|
6741
6741
|
LAST_IP_TYPE: u,
|
|
6742
6742
|
LAST_IP_BRAND: c || i,
|
|
6743
|
-
LAST_IP_LOGIN_BG:
|
|
6743
|
+
LAST_IP_LOGIN_BG: _
|
|
6744
6744
|
};
|
|
6745
6745
|
}
|
|
6746
6746
|
},
|
|
@@ -6854,7 +6854,7 @@ const ge = (e, t) => {
|
|
|
6854
6854
|
}
|
|
6855
6855
|
}, Du = { class: "cloud-sett-drawer-body" }, ku = { class: "cloud-sett-drawer-skin" };
|
|
6856
6856
|
function Ru(e, t, n, r, a, o) {
|
|
6857
|
-
const s = L("el-card"), l = L("el-form-item"), i = L("el-option"), c = L("el-select"), f = L("cv-icons"), u = L("el-button"),
|
|
6857
|
+
const s = L("el-card"), l = L("el-form-item"), i = L("el-option"), c = L("el-select"), f = L("cv-icons"), u = L("el-button"), _ = L("el-switch"), g = L("el-form"), T = L("el-drawer");
|
|
6858
6858
|
return F(), $(T, {
|
|
6859
6859
|
title: "系统设置",
|
|
6860
6860
|
modelValue: a.localVal,
|
|
@@ -6935,7 +6935,7 @@ function Ru(e, t, n, r, a, o) {
|
|
|
6935
6935
|
}),
|
|
6936
6936
|
b(l, { label: "侧栏显示" }, {
|
|
6937
6937
|
default: C(() => [
|
|
6938
|
-
b(
|
|
6938
|
+
b(_, {
|
|
6939
6939
|
modelValue: a.frameSidebarState,
|
|
6940
6940
|
"onUpdate:modelValue": t[3] || (t[3] = (p) => a.frameSidebarState = p),
|
|
6941
6941
|
"active-text": "显示",
|
|
@@ -6948,7 +6948,7 @@ function Ru(e, t, n, r, a, o) {
|
|
|
6948
6948
|
}),
|
|
6949
6949
|
b(l, { label: "导航标签栏" }, {
|
|
6950
6950
|
default: C(() => [
|
|
6951
|
-
b(
|
|
6951
|
+
b(_, {
|
|
6952
6952
|
modelValue: a.frameSysNavTabs,
|
|
6953
6953
|
"onUpdate:modelValue": t[4] || (t[4] = (p) => a.frameSysNavTabs = p),
|
|
6954
6954
|
"active-text": "显示",
|
|
@@ -7198,12 +7198,12 @@ function Yu(e, t, n, r, a, o) {
|
|
|
7198
7198
|
b(c, { ref: "navScroll1" }, {
|
|
7199
7199
|
default: C(() => [
|
|
7200
7200
|
D("div", Wu, [
|
|
7201
|
-
(F(!0), W(le, null, Ne(a.sett_tags, (u,
|
|
7201
|
+
(F(!0), W(le, null, Ne(a.sett_tags, (u, _) => (F(), $(i, {
|
|
7202
7202
|
id: a.activeTag == u.name ? "tagId" : "",
|
|
7203
7203
|
class: Kt(["tag xxxxxx-tag", a.activeTag == u.name ? "active" : ""]),
|
|
7204
7204
|
key: u.name,
|
|
7205
7205
|
closable: u.path !== "/index",
|
|
7206
|
-
onClose: (g) => o.removeTag(u,
|
|
7206
|
+
onClose: (g) => o.removeTag(u, _),
|
|
7207
7207
|
onClick: (g) => o.changeMenu(u),
|
|
7208
7208
|
"disable-transitions": "",
|
|
7209
7209
|
onContextmenu: qo(o.openContextMenu, ["prevent"])
|
|
@@ -7383,7 +7383,7 @@ function Ju(e, t, n, r, a, o) {
|
|
|
7383
7383
|
}, 1032, ["index"])) : (F(), $(f, {
|
|
7384
7384
|
index: u.name,
|
|
7385
7385
|
key: "b" + u.name,
|
|
7386
|
-
onClick: (
|
|
7386
|
+
onClick: (_) => o.handleOpenMenu(u)
|
|
7387
7387
|
}, {
|
|
7388
7388
|
title: C(() => [
|
|
7389
7389
|
V(z(u.meta.short || u.meta.title), 1)
|
|
@@ -7714,11 +7714,11 @@ const cf = /* @__PURE__ */ ge(of, [["render", lf]]), uf = {
|
|
|
7714
7714
|
// return segs
|
|
7715
7715
|
// }
|
|
7716
7716
|
}
|
|
7717
|
-
}, ff = { class: "cloud-login-change-wrap" },
|
|
7717
|
+
}, ff = { class: "cloud-login-change-wrap" }, df = { class: "cloud-login-change-box1" }, _f = { class: "cloud-login-change-search" }, mf = { class: "cloud-login-change-box2" }, hf = { class: "cloud-login-change-group-box" }, gf = { class: "cloud-login-change-group-title" }, pf = { class: "cloud-login-change-group-sublist" }, Ef = ["onClick"], Sf = { class: "cloud-login-change-item-left" }, bf = { class: "cloud-login-change-item-left-icon" }, vf = ["src"], yf = { class: "cloud-login-change-item-right" }, Tf = { class: "cloud-login-change-item-right-label" }, Af = { class: "cloud-login-change-item-right-label2" }, Nf = { class: "cloud-login-change-item-more" };
|
|
7718
7718
|
function Cf(e, t, n, r, a, o) {
|
|
7719
7719
|
const s = L("el-input"), l = L("el-button"), i = L("cv-icons");
|
|
7720
7720
|
return F(), W("div", ff, [
|
|
7721
|
-
D("div",
|
|
7721
|
+
D("div", df, [
|
|
7722
7722
|
D("div", {
|
|
7723
7723
|
class: "cloud-login-change-refresh",
|
|
7724
7724
|
onClick: t[0] || (t[0] = (...c) => o.chainForceRefresh && o.chainForceRefresh(...c))
|
|
@@ -7732,7 +7732,7 @@ function Cf(e, t, n, r, a, o) {
|
|
|
7732
7732
|
D("p", null, "为规范平台操作、统一平台账号;以便后续提供更多的功能体验;"),
|
|
7733
7733
|
D("p", null, "后续商户人员(含管理员)登录,需进一步通过 短信 或 扫码 进行验证。")
|
|
7734
7734
|
], -1)),
|
|
7735
|
-
D("div",
|
|
7735
|
+
D("div", _f, [
|
|
7736
7736
|
b(s, {
|
|
7737
7737
|
modelValue: a.chainKeyword,
|
|
7738
7738
|
"onUpdate:modelValue": t[2] || (t[2] = (c) => a.chainKeyword = c),
|
|
@@ -7760,9 +7760,9 @@ function Cf(e, t, n, r, a, o) {
|
|
|
7760
7760
|
}, [
|
|
7761
7761
|
D("div", gf, z(c.title || "无") + "(" + z(c.total) + ")", 1),
|
|
7762
7762
|
D("div", pf, [
|
|
7763
|
-
(F(!0), W(le, null, Ne(c.list, (u,
|
|
7763
|
+
(F(!0), W(le, null, Ne(c.list, (u, _) => (F(), W("div", {
|
|
7764
7764
|
class: "cloud-login-change-item-bao",
|
|
7765
|
-
key:
|
|
7765
|
+
key: _,
|
|
7766
7766
|
onClick: (g) => o.chainSelection(u)
|
|
7767
7767
|
}, [
|
|
7768
7768
|
D("div", Sf, [
|
|
@@ -7946,7 +7946,7 @@ const Of = /* @__PURE__ */ ge(uf, [["render", Cf]]), If = {
|
|
|
7946
7946
|
class: "chopt-num"
|
|
7947
7947
|
}, xf = { class: "cloud-header__info" }, Vf = ["src"], Bf = { class: "chinfo-infoname" }, Gf = { class: "chinfo-infobname" }, $f = { class: "chinfo-infouname" }, Wf = { class: "cloud-sidebar__wrap" }, Yf = { class: "cloud-pages__wrap" };
|
|
7948
7948
|
function Hf(e, t, n, r, a, o) {
|
|
7949
|
-
const s = L("cv-icons"), l = L("el-breadcrumb-item"), i = L("el-breadcrumb"), c = L("el-dropdown-item"), f = L("el-dropdown-menu"), u = L("el-dropdown"),
|
|
7949
|
+
const s = L("cv-icons"), l = L("el-breadcrumb-item"), i = L("el-breadcrumb"), c = L("el-dropdown-item"), f = L("el-dropdown-menu"), u = L("el-dropdown"), _ = L("SidebarMenuBox"), g = L("SameNavTabs"), T = L("SameRouteView"), p = L("HeaderSysSettDrawer"), w = L("ChangePassword"), m = L("SwitchBusiness");
|
|
7950
7950
|
return F(), W("div", Lf, [
|
|
7951
7951
|
D("header", wf, [
|
|
7952
7952
|
D("div", Df, [
|
|
@@ -8132,7 +8132,7 @@ function Hf(e, t, n, r, a, o) {
|
|
|
8132
8132
|
])
|
|
8133
8133
|
]),
|
|
8134
8134
|
D("section", Wf, [
|
|
8135
|
-
b(
|
|
8135
|
+
b(_, {
|
|
8136
8136
|
collapse: a.frameSidebarOpen == "off"
|
|
8137
8137
|
}, null, 8, ["collapse"])
|
|
8138
8138
|
]),
|
|
@@ -8162,7 +8162,7 @@ function Hf(e, t, n, r, a, o) {
|
|
|
8162
8162
|
}, null, 8, ["modelValue", "onRefreshFunc", "onReselectFunc", "onSelectFunc"])) : te("", !0)
|
|
8163
8163
|
]);
|
|
8164
8164
|
}
|
|
8165
|
-
const
|
|
8165
|
+
const Qd = /* @__PURE__ */ ge(If, [["render", Hf]]), Kf = {
|
|
8166
8166
|
data() {
|
|
8167
8167
|
return {
|
|
8168
8168
|
watemarkText: "shiyun"
|
|
@@ -8197,7 +8197,7 @@ function jf(e, t, n, r, a, o) {
|
|
|
8197
8197
|
_: 3
|
|
8198
8198
|
}, 16);
|
|
8199
8199
|
}
|
|
8200
|
-
const
|
|
8200
|
+
const Jd = /* @__PURE__ */ ge(Kf, [["render", jf]]), qf = {
|
|
8201
8201
|
name: "SdkFormEdit",
|
|
8202
8202
|
props: {
|
|
8203
8203
|
modelValue: {
|
|
@@ -8246,7 +8246,7 @@ const J_ = /* @__PURE__ */ ge(Kf, [["render", jf]]), qf = {
|
|
|
8246
8246
|
}
|
|
8247
8247
|
}, Xf = { style: { "font-size": "12px" } }, Qf = { style: { color: "red", "font-weight": "bold" } }, Jf = { class: "multiline-text" };
|
|
8248
8248
|
function zf(e, t, n, r, a, o) {
|
|
8249
|
-
const s = L("cv-upload-image"), l = L("cv-input-text"), i = L("cv-input-number"), c = L("cv-input-digit"), f = L("cv-textarea"), u = L("cv-radio-opt-base"),
|
|
8249
|
+
const s = L("cv-upload-image"), l = L("cv-input-text"), i = L("cv-input-number"), c = L("cv-input-digit"), f = L("cv-textarea"), u = L("cv-radio-opt-base"), _ = L("cv-radio-group"), g = L("cv-checkbox-opt-base"), T = L("cv-checkbox-group"), p = L("cv-form-item"), w = L("cv-form-base");
|
|
8250
8250
|
return F(), $(w, {
|
|
8251
8251
|
ref: "refFormBase",
|
|
8252
8252
|
rules: a.formRules,
|
|
@@ -8308,7 +8308,7 @@ function zf(e, t, n, r, a, o) {
|
|
|
8308
8308
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
8309
8309
|
t[2] || (t[2] = D("div", { style: { color: "#999", "font-size": "12px" } }, "加密字段配置后,下次呈现加密内容,请自行保存加密原数据", -1))
|
|
8310
8310
|
], 64)) : te("", !0),
|
|
8311
|
-
m.field_form_type == "radio_switch" ? (F(), $(
|
|
8311
|
+
m.field_form_type == "radio_switch" ? (F(), $(_, {
|
|
8312
8312
|
key: 7,
|
|
8313
8313
|
modelValue: a.formData[m.field_form_key],
|
|
8314
8314
|
"onUpdate:modelValue": (S) => a.formData[m.field_form_key] = S
|
|
@@ -8335,7 +8335,7 @@ function zf(e, t, n, r, a, o) {
|
|
|
8335
8335
|
]),
|
|
8336
8336
|
_: 1
|
|
8337
8337
|
}, 8, ["modelValue", "onUpdate:modelValue"])) : te("", !0),
|
|
8338
|
-
m.field_form_type == "radio_base" ? (F(), $(
|
|
8338
|
+
m.field_form_type == "radio_base" ? (F(), $(_, {
|
|
8339
8339
|
key: 8,
|
|
8340
8340
|
modelValue: a.formData[m.field_form_key],
|
|
8341
8341
|
"onUpdate:modelValue": (S) => a.formData[m.field_form_key] = S
|
|
@@ -8387,12 +8387,16 @@ function zf(e, t, n, r, a, o) {
|
|
|
8387
8387
|
_: 1
|
|
8388
8388
|
}, 8, ["rules", "model"]);
|
|
8389
8389
|
}
|
|
8390
|
-
const Zf = /* @__PURE__ */ ge(qf, [["render", zf]]),
|
|
8390
|
+
const Zf = /* @__PURE__ */ ge(qf, [["render", zf]]), ed = {
|
|
8391
8391
|
emits: ["handleCallback", "close"],
|
|
8392
8392
|
props: {
|
|
8393
8393
|
limit: {
|
|
8394
|
-
type: [Number],
|
|
8394
|
+
type: [String, Number],
|
|
8395
8395
|
default: 1
|
|
8396
|
+
},
|
|
8397
|
+
initData: {
|
|
8398
|
+
type: [String, Number],
|
|
8399
|
+
default: ""
|
|
8396
8400
|
}
|
|
8397
8401
|
},
|
|
8398
8402
|
data() {
|
|
@@ -8443,7 +8447,7 @@ const Zf = /* @__PURE__ */ ge(qf, [["render", zf]]), e_ = {
|
|
|
8443
8447
|
this.$refs.refDiaSelectLeft.filter(e);
|
|
8444
8448
|
}
|
|
8445
8449
|
},
|
|
8446
|
-
|
|
8450
|
+
mounted() {
|
|
8447
8451
|
this.initLeftData(), this.initRightData();
|
|
8448
8452
|
},
|
|
8449
8453
|
methods: {
|
|
@@ -8479,20 +8483,20 @@ const Zf = /* @__PURE__ */ ge(qf, [["render", zf]]), e_ = {
|
|
|
8479
8483
|
this.$emit("close");
|
|
8480
8484
|
},
|
|
8481
8485
|
// 单击选择图片
|
|
8482
|
-
handleClickImage(e, t
|
|
8483
|
-
let
|
|
8484
|
-
for (let
|
|
8485
|
-
if (
|
|
8486
|
-
this.activeImageUrl.splice(
|
|
8486
|
+
handleClickImage(e, t) {
|
|
8487
|
+
let n = e.filelog_id, r = e.filelog_full_path, a = e.cdn_full_path;
|
|
8488
|
+
for (let o in this.activeImageUrl)
|
|
8489
|
+
if (r == this.activeImageUrl[o].save_full_path) {
|
|
8490
|
+
this.activeImageUrl.splice(o, 1), this.activeImageState[t] = !1;
|
|
8487
8491
|
return;
|
|
8488
8492
|
}
|
|
8489
8493
|
if (this.activeImageUrl.length + 1 > this.limit)
|
|
8490
8494
|
return this.$message.error("超出数量" + this.limit), !1;
|
|
8491
8495
|
this.activeImageUrl.push({
|
|
8492
|
-
filelog_id:
|
|
8493
|
-
save_full_path:
|
|
8494
|
-
cdn_full_path:
|
|
8495
|
-
}), this.activeImageState[
|
|
8496
|
+
filelog_id: n,
|
|
8497
|
+
save_full_path: r,
|
|
8498
|
+
cdn_full_path: a
|
|
8499
|
+
}), this.activeImageState[t] = !0;
|
|
8496
8500
|
},
|
|
8497
8501
|
// 小红圈提示文本
|
|
8498
8502
|
badgeValue(e) {
|
|
@@ -8519,21 +8523,24 @@ const Zf = /* @__PURE__ */ ge(qf, [["render", zf]]), e_ = {
|
|
|
8519
8523
|
* 初始化 【 文本编辑状态、图片选中状态 】
|
|
8520
8524
|
*/
|
|
8521
8525
|
_initImageState() {
|
|
8522
|
-
|
|
8523
|
-
|
|
8526
|
+
const e = String(this.initData).split(",").map((t) => t.trim());
|
|
8527
|
+
for (let t in this.imageList) {
|
|
8528
|
+
let n = this.imageList[t];
|
|
8529
|
+
this.imageTextEditState[t] = !1, this.activeImageState[t] = !1, this.initData && e.includes(String(n.filelog_id)) && this.handleClickImage(n, t);
|
|
8530
|
+
}
|
|
8524
8531
|
}
|
|
8525
8532
|
}
|
|
8526
|
-
},
|
|
8533
|
+
}, td = {
|
|
8527
8534
|
"element-loading-text": "加载中",
|
|
8528
8535
|
"element-loading-spinner": "el-icon-loading",
|
|
8529
8536
|
class: "cloud-dialog-choice-wrap"
|
|
8530
|
-
},
|
|
8531
|
-
function
|
|
8532
|
-
const s = L("el-input"), l = L("el-tree"), i = L("cv-btn-base"), c = L("el-upload"), f = L("cv-select-tree"), u = L("el-badge"),
|
|
8533
|
-
return Rt((F(), W("div",
|
|
8534
|
-
D("div",
|
|
8535
|
-
D("section",
|
|
8536
|
-
D("section",
|
|
8537
|
+
}, nd = { style: { width: "100%", height: "500px" } }, ad = { class: "cloud-dia-choice-box" }, rd = { class: "cloud-dia-choice-left" }, od = { class: "cloud-dia-choice-right" }, sd = { class: "cloud-dia-right-tools" }, id = { class: "cloud-dia-right-list" }, ld = ["src", "onClick"], cd = { class: "cloud-dia-right-item_text" }, ud = { key: 1 }, fd = { style: { padding: "10px 20px 0 0", "text-align": "right", "box-sizing": "border-box" } };
|
|
8538
|
+
function dd(e, t, n, r, a, o) {
|
|
8539
|
+
const s = L("el-input"), l = L("el-tree"), i = L("cv-btn-base"), c = L("el-upload"), f = L("cv-select-tree"), u = L("el-badge"), _ = L("cv-icons"), g = L("el-pagination"), T = na("loading");
|
|
8540
|
+
return Rt((F(), W("div", td, [
|
|
8541
|
+
D("div", nd, [
|
|
8542
|
+
D("section", ad, [
|
|
8543
|
+
D("section", rd, [
|
|
8537
8544
|
t[1] || (t[1] = D("div", { class: "cloud-dia-left-title" }, "类别", -1)),
|
|
8538
8545
|
b(s, {
|
|
8539
8546
|
class: "cloud-dia-left-filter",
|
|
@@ -8552,8 +8559,8 @@ function __(e, t, n, r, a, o) {
|
|
|
8552
8559
|
onNodeClick: o.leftClickNode
|
|
8553
8560
|
}, null, 8, ["data", "props", "filter-node-method", "onNodeClick"])
|
|
8554
8561
|
]),
|
|
8555
|
-
D("section",
|
|
8556
|
-
D("div",
|
|
8562
|
+
D("section", od, [
|
|
8563
|
+
D("div", sd, [
|
|
8557
8564
|
b(c, {
|
|
8558
8565
|
class: "dialog-choice-image-upload",
|
|
8559
8566
|
action: a.upAction,
|
|
@@ -8597,7 +8604,7 @@ function __(e, t, n, r, a, o) {
|
|
|
8597
8604
|
style: { "margin-left": "10px", width: "160px" }
|
|
8598
8605
|
}, null, 8, ["dataField", "dataLists"])
|
|
8599
8606
|
]),
|
|
8600
|
-
D("div",
|
|
8607
|
+
D("div", id, [
|
|
8601
8608
|
(F(!0), W(le, null, Ne(a.imageList, (p, w) => (F(), W("div", {
|
|
8602
8609
|
class: "cloud-dia-right-item",
|
|
8603
8610
|
key: w
|
|
@@ -8611,19 +8618,19 @@ function __(e, t, n, r, a, o) {
|
|
|
8611
8618
|
class: Kt(a.activeImageState[w] && "active"),
|
|
8612
8619
|
src: p.cdn_full_path,
|
|
8613
8620
|
alt: "",
|
|
8614
|
-
onClick: (m) => o.handleClickImage(
|
|
8615
|
-
}, null, 10,
|
|
8621
|
+
onClick: (m) => o.handleClickImage(p, w)
|
|
8622
|
+
}, null, 10, ld)
|
|
8616
8623
|
]),
|
|
8617
8624
|
_: 2
|
|
8618
8625
|
}, 1032, ["class", "value"]),
|
|
8619
|
-
D("div",
|
|
8626
|
+
D("div", cd, [
|
|
8620
8627
|
a.imageTextEditState[w] ? (F(), $(s, {
|
|
8621
8628
|
key: 0,
|
|
8622
8629
|
label: "文本输入",
|
|
8623
8630
|
modelValue: p.filelog_full_name,
|
|
8624
8631
|
"onUpdate:modelValue": (m) => p.filelog_full_name = m
|
|
8625
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : (F(), W("p",
|
|
8626
|
-
b(
|
|
8632
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : (F(), W("p", ud, z(p.filelog_full_name), 1)),
|
|
8633
|
+
b(_, {
|
|
8627
8634
|
type: "ElIconEdit",
|
|
8628
8635
|
onClick: (m) => o.handleClickEditImageText(w)
|
|
8629
8636
|
}, null, 8, ["onClick"])
|
|
@@ -8642,7 +8649,7 @@ function __(e, t, n, r, a, o) {
|
|
|
8642
8649
|
])
|
|
8643
8650
|
])
|
|
8644
8651
|
]),
|
|
8645
|
-
D("div",
|
|
8652
|
+
D("div", fd, [
|
|
8646
8653
|
b(i, { onClick: o.handleClose }, {
|
|
8647
8654
|
default: C(() => [...t[5] || (t[5] = [
|
|
8648
8655
|
V("取 消", -1)
|
|
@@ -8664,16 +8671,16 @@ function __(e, t, n, r, a, o) {
|
|
|
8664
8671
|
[T, a.isLoading]
|
|
8665
8672
|
]);
|
|
8666
8673
|
}
|
|
8667
|
-
const
|
|
8674
|
+
const _d = /* @__PURE__ */ ge(ed, [["render", dd]]), md = {
|
|
8668
8675
|
name: "SdkManageImage",
|
|
8669
8676
|
emits: ["update:modelValue", "update:initValue"],
|
|
8670
8677
|
props: {
|
|
8671
8678
|
modelValue: {
|
|
8672
|
-
type: [String, Array],
|
|
8679
|
+
type: [String, Array, Number],
|
|
8673
8680
|
default: ""
|
|
8674
8681
|
},
|
|
8675
8682
|
initValue: {
|
|
8676
|
-
type: [String, Array],
|
|
8683
|
+
type: [String, Array, Number],
|
|
8677
8684
|
default: ""
|
|
8678
8685
|
},
|
|
8679
8686
|
showBig: {
|
|
@@ -8714,22 +8721,30 @@ const d_ = /* @__PURE__ */ ge(e_, [["render", __]]), m_ = {
|
|
|
8714
8721
|
methods: {
|
|
8715
8722
|
handleDiaImage(e) {
|
|
8716
8723
|
this.$cvDialogRender(
|
|
8717
|
-
|
|
8724
|
+
_d,
|
|
8718
8725
|
{ title: "选择图片", width: "1100px" },
|
|
8719
|
-
{},
|
|
8726
|
+
{ limit: this.multiple ? this.limit : 1, initData: this.localValue },
|
|
8720
8727
|
{
|
|
8721
8728
|
handleCallback: (t) => {
|
|
8722
|
-
|
|
8723
|
-
|
|
8729
|
+
if (this.multiple) {
|
|
8730
|
+
let n = [], r = [];
|
|
8731
|
+
for (let a in t) {
|
|
8732
|
+
let o = t[a];
|
|
8733
|
+
n.push(o.filelog_id), r.push(o.cdn_full_path), this.localValue = n.join(","), this.localInitVal = r;
|
|
8734
|
+
}
|
|
8735
|
+
} else {
|
|
8736
|
+
let n = t[0];
|
|
8737
|
+
this.localValue = n.filelog_id, this.localInitVal = n.cdn_full_path;
|
|
8738
|
+
}
|
|
8724
8739
|
}
|
|
8725
8740
|
}
|
|
8726
8741
|
).show();
|
|
8727
8742
|
}
|
|
8728
8743
|
}
|
|
8729
|
-
},
|
|
8730
|
-
function
|
|
8744
|
+
}, hd = { style: { display: "flex", "flex-direction": "column", gap: "10px" } };
|
|
8745
|
+
function gd(e, t, n, r, a, o) {
|
|
8731
8746
|
const s = L("cv-btn-base"), l = L("cv-upload-image");
|
|
8732
|
-
return F(), W("view",
|
|
8747
|
+
return F(), W("view", hd, [
|
|
8733
8748
|
b(s, {
|
|
8734
8749
|
onClick: o.handleDiaImage,
|
|
8735
8750
|
style: { width: "150px" }
|
|
@@ -8740,17 +8755,17 @@ function g_(e, t, n, r, a, o) {
|
|
|
8740
8755
|
_: 1
|
|
8741
8756
|
}, 8, ["onClick"]),
|
|
8742
8757
|
b(l, {
|
|
8743
|
-
modelValue: a.localValue,
|
|
8744
|
-
"onUpdate:modelValue": t[0] || (t[0] = (i) => a.localValue = i),
|
|
8745
8758
|
showBig: n.showBig,
|
|
8746
8759
|
multiple: n.multiple,
|
|
8747
8760
|
limit: n.limit,
|
|
8761
|
+
modelValue: a.localValue,
|
|
8762
|
+
"onUpdate:modelValue": t[0] || (t[0] = (i) => a.localValue = i),
|
|
8748
8763
|
initValue: a.localInitVal,
|
|
8749
8764
|
"onUpdate:initValue": t[1] || (t[1] = (i) => a.localInitVal = i)
|
|
8750
|
-
}, null, 8, ["
|
|
8765
|
+
}, null, 8, ["showBig", "multiple", "limit", "modelValue", "initValue"])
|
|
8751
8766
|
]);
|
|
8752
8767
|
}
|
|
8753
|
-
const
|
|
8768
|
+
const pd = /* @__PURE__ */ ge(md, [["render", gd]]), Ed = {
|
|
8754
8769
|
emits: ["handleCallback", "close"],
|
|
8755
8770
|
props: {
|
|
8756
8771
|
// 选一个就关闭
|
|
@@ -8818,17 +8833,17 @@ const p_ = /* @__PURE__ */ ge(m_, [["render", g_]]), E_ = {
|
|
|
8818
8833
|
this.$emit("close");
|
|
8819
8834
|
}
|
|
8820
8835
|
}
|
|
8821
|
-
},
|
|
8836
|
+
}, Sd = {
|
|
8822
8837
|
"element-loading-text": "加载中",
|
|
8823
8838
|
"element-loading-spinner": "el-icon-loading",
|
|
8824
8839
|
class: "cloud-dialog-choice-wrap"
|
|
8825
|
-
},
|
|
8826
|
-
function
|
|
8827
|
-
const s = L("el-input"), l = L("el-tree"), i = L("cv-input-text"), c = L("cv-form-item"), f = L("cv-btn-base"), u = L("cv-form-inline"),
|
|
8828
|
-
return Rt((F(), W("div",
|
|
8829
|
-
D("div",
|
|
8830
|
-
D("section",
|
|
8831
|
-
D("section",
|
|
8840
|
+
}, bd = { style: { width: "100%", height: "500px" } }, vd = { class: "cloud-dia-choice-box" }, yd = { class: "cloud-dia-choice-left" }, Td = { class: "cloud-dia-choice-right" }, Ad = { style: { padding: "10px 20px 0 0", "text-align": "right", "box-sizing": "border-box" } };
|
|
8841
|
+
function Nd(e, t, n, r, a, o) {
|
|
8842
|
+
const s = L("el-input"), l = L("el-tree"), i = L("cv-input-text"), c = L("cv-form-item"), f = L("cv-btn-base"), u = L("cv-form-inline"), _ = L("cvTbColumnCheck"), g = L("cvTbColumnText"), T = L("cvTbColumnImg"), p = L("cv-btn-text"), w = L("cvTbColumnOpt"), m = L("cvTableBase"), E = na("loading");
|
|
8843
|
+
return Rt((F(), W("div", Sd, [
|
|
8844
|
+
D("div", bd, [
|
|
8845
|
+
D("section", vd, [
|
|
8846
|
+
D("section", yd, [
|
|
8832
8847
|
t[4] || (t[4] = D("div", { class: "cloud-dia-left-title" }, "分类", -1)),
|
|
8833
8848
|
b(s, {
|
|
8834
8849
|
class: "cloud-dia-left-filter",
|
|
@@ -8847,7 +8862,7 @@ function N_(e, t, n, r, a, o) {
|
|
|
8847
8862
|
onNodeClick: o.leftClickNode
|
|
8848
8863
|
}, null, 8, ["data", "props", "filter-node-method", "onNodeClick"])
|
|
8849
8864
|
]),
|
|
8850
|
-
D("section",
|
|
8865
|
+
D("section", Td, [
|
|
8851
8866
|
b(u, {
|
|
8852
8867
|
ref: "refFormBase",
|
|
8853
8868
|
rules: a.rightSoRules,
|
|
@@ -8898,7 +8913,7 @@ function N_(e, t, n, r, a, o) {
|
|
|
8898
8913
|
height: "390"
|
|
8899
8914
|
}, {
|
|
8900
8915
|
default: C(() => [
|
|
8901
|
-
b(
|
|
8916
|
+
b(_, { label: "选择" }),
|
|
8902
8917
|
b(g, {
|
|
8903
8918
|
label: "商品分类",
|
|
8904
8919
|
prop: "cat_name"
|
|
@@ -8945,7 +8960,7 @@ function N_(e, t, n, r, a, o) {
|
|
|
8945
8960
|
])
|
|
8946
8961
|
])
|
|
8947
8962
|
]),
|
|
8948
|
-
D("div",
|
|
8963
|
+
D("div", Ad, [
|
|
8949
8964
|
b(f, { onClick: o.handleClose }, {
|
|
8950
8965
|
default: C(() => [...t[8] || (t[8] = [
|
|
8951
8966
|
V("取 消", -1)
|
|
@@ -8967,7 +8982,7 @@ function N_(e, t, n, r, a, o) {
|
|
|
8967
8982
|
[E, a.isLoading]
|
|
8968
8983
|
]);
|
|
8969
8984
|
}
|
|
8970
|
-
const
|
|
8985
|
+
const zd = /* @__PURE__ */ ge(Ed, [["render", Nd]]), Cd = {
|
|
8971
8986
|
emits: ["handleCallback", "close"],
|
|
8972
8987
|
props: {
|
|
8973
8988
|
// 选一个就关闭
|
|
@@ -9035,17 +9050,17 @@ const z_ = /* @__PURE__ */ ge(E_, [["render", N_]]), C_ = {
|
|
|
9035
9050
|
this.$emit("close");
|
|
9036
9051
|
}
|
|
9037
9052
|
}
|
|
9038
|
-
},
|
|
9053
|
+
}, Od = {
|
|
9039
9054
|
"element-loading-text": "加载中",
|
|
9040
9055
|
"element-loading-spinner": "el-icon-loading",
|
|
9041
9056
|
class: "cloud-dialog-choice-wrap"
|
|
9042
|
-
},
|
|
9043
|
-
function
|
|
9044
|
-
const s = L("el-input"), l = L("el-tree"), i = L("cv-input-text"), c = L("cv-form-item"), f = L("cv-btn-base"), u = L("cv-form-inline"),
|
|
9045
|
-
return Rt((F(), W("div",
|
|
9046
|
-
D("div",
|
|
9047
|
-
D("section",
|
|
9048
|
-
D("section",
|
|
9057
|
+
}, Id = { style: { width: "100%", height: "500px" } }, Ld = { class: "cloud-dia-choice-box" }, wd = { class: "cloud-dia-choice-left" }, Dd = { class: "cloud-dia-choice-right" }, kd = { style: { padding: "10px 20px 0 0", "text-align": "right", "box-sizing": "border-box" } };
|
|
9058
|
+
function Rd(e, t, n, r, a, o) {
|
|
9059
|
+
const s = L("el-input"), l = L("el-tree"), i = L("cv-input-text"), c = L("cv-form-item"), f = L("cv-btn-base"), u = L("cv-form-inline"), _ = L("cvTbColumnCheck"), g = L("cvTbColumnText"), T = L("cvTbColumnImg"), p = L("cv-btn-text"), w = L("cvTbColumnOpt"), m = L("cvTableBase"), E = na("loading");
|
|
9060
|
+
return Rt((F(), W("div", Od, [
|
|
9061
|
+
D("div", Id, [
|
|
9062
|
+
D("section", Ld, [
|
|
9063
|
+
D("section", wd, [
|
|
9049
9064
|
t[4] || (t[4] = D("div", { class: "cloud-dia-left-title" }, "部门", -1)),
|
|
9050
9065
|
b(s, {
|
|
9051
9066
|
class: "cloud-dia-left-filter",
|
|
@@ -9064,7 +9079,7 @@ function R_(e, t, n, r, a, o) {
|
|
|
9064
9079
|
onNodeClick: o.leftClickNode
|
|
9065
9080
|
}, null, 8, ["data", "props", "filter-node-method", "onNodeClick"])
|
|
9066
9081
|
]),
|
|
9067
|
-
D("section",
|
|
9082
|
+
D("section", Dd, [
|
|
9068
9083
|
b(u, {
|
|
9069
9084
|
ref: "refFormBase",
|
|
9070
9085
|
rules: a.rightSoRules,
|
|
@@ -9114,7 +9129,7 @@ function R_(e, t, n, r, a, o) {
|
|
|
9114
9129
|
height: "390"
|
|
9115
9130
|
}, {
|
|
9116
9131
|
default: C(() => [
|
|
9117
|
-
b(
|
|
9132
|
+
b(_, { label: "选择" }),
|
|
9118
9133
|
b(g, {
|
|
9119
9134
|
label: "ID",
|
|
9120
9135
|
prop: "staff_id",
|
|
@@ -9163,7 +9178,7 @@ function R_(e, t, n, r, a, o) {
|
|
|
9163
9178
|
])
|
|
9164
9179
|
])
|
|
9165
9180
|
]),
|
|
9166
|
-
D("div",
|
|
9181
|
+
D("div", kd, [
|
|
9167
9182
|
b(f, { onClick: o.handleClose }, {
|
|
9168
9183
|
default: C(() => [...t[8] || (t[8] = [
|
|
9169
9184
|
V("取 消", -1)
|
|
@@ -9185,7 +9200,7 @@ function R_(e, t, n, r, a, o) {
|
|
|
9185
9200
|
[E, a.isLoading]
|
|
9186
9201
|
]);
|
|
9187
9202
|
}
|
|
9188
|
-
const
|
|
9203
|
+
const Zd = /* @__PURE__ */ ge(Cd, [["render", Rd]]);
|
|
9189
9204
|
(function() {
|
|
9190
9205
|
if (typeof EventTarget < "u") {
|
|
9191
9206
|
let e = EventTarget.prototype.addEventListener;
|
|
@@ -9194,7 +9209,7 @@ const Z_ = /* @__PURE__ */ ge(C_, [["render", R_]]);
|
|
|
9194
9209
|
};
|
|
9195
9210
|
}
|
|
9196
9211
|
})();
|
|
9197
|
-
var
|
|
9212
|
+
var Pd = {
|
|
9198
9213
|
methods: {
|
|
9199
9214
|
// 打开协议
|
|
9200
9215
|
jumpsXieyi(e) {
|
|
@@ -9247,8 +9262,8 @@ var P_ = {
|
|
|
9247
9262
|
}
|
|
9248
9263
|
}
|
|
9249
9264
|
};
|
|
9250
|
-
function
|
|
9251
|
-
e.mixin(
|
|
9265
|
+
function Fd(e) {
|
|
9266
|
+
e.mixin(Pd);
|
|
9252
9267
|
}
|
|
9253
9268
|
function Cr(e, t, n) {
|
|
9254
9269
|
const r = t.value;
|
|
@@ -9257,15 +9272,15 @@ function Cr(e, t, n) {
|
|
|
9257
9272
|
else
|
|
9258
9273
|
throw new Error(`需要指定权限标识! 如:v-auth="'xxxx_add'" 或 v-auth="['xxxx_xxx']"`);
|
|
9259
9274
|
}
|
|
9260
|
-
function
|
|
9275
|
+
function Md(e, t, n) {
|
|
9261
9276
|
n = n || "vue3", n == "vue2" ? e.directive("auth", {
|
|
9262
9277
|
inserted: Cr
|
|
9263
9278
|
}) : e.directive("auth", {
|
|
9264
9279
|
mounted: Cr
|
|
9265
9280
|
}), t.$_auth = Mo;
|
|
9266
9281
|
}
|
|
9267
|
-
/*! Element Plus v2.11.
|
|
9268
|
-
var
|
|
9282
|
+
/*! Element Plus v2.11.5 */
|
|
9283
|
+
var Ud = {
|
|
9269
9284
|
name: "zh-cn",
|
|
9270
9285
|
el: {
|
|
9271
9286
|
breadcrumb: {
|
|
@@ -9276,7 +9291,10 @@ var U_ = {
|
|
|
9276
9291
|
clear: "清空",
|
|
9277
9292
|
defaultLabel: "颜色选择器",
|
|
9278
9293
|
description: "当前颜色 {color},按 Enter 键选择新颜色",
|
|
9279
|
-
alphaLabel: "选择透明度的值"
|
|
9294
|
+
alphaLabel: "选择透明度的值",
|
|
9295
|
+
alphaDescription: "透明度 {alpha}, 当前颜色 {color}",
|
|
9296
|
+
hueLabel: "选择色相值",
|
|
9297
|
+
hueDescription: "色相 {hue}, 当前颜色 {color}"
|
|
9280
9298
|
},
|
|
9281
9299
|
datepicker: {
|
|
9282
9300
|
now: "此刻",
|
|
@@ -9354,12 +9372,12 @@ var U_ = {
|
|
|
9354
9372
|
noData: "无数据",
|
|
9355
9373
|
placeholder: "请选择"
|
|
9356
9374
|
},
|
|
9357
|
-
dropdown: {
|
|
9358
|
-
toggleDropdown: "切换下拉选项"
|
|
9359
|
-
},
|
|
9360
9375
|
mention: {
|
|
9361
9376
|
loading: "加载中"
|
|
9362
9377
|
},
|
|
9378
|
+
dropdown: {
|
|
9379
|
+
toggleDropdown: "切换下拉选项"
|
|
9380
|
+
},
|
|
9363
9381
|
cascader: {
|
|
9364
9382
|
noMatch: "无匹配数据",
|
|
9365
9383
|
loading: "加载中",
|
|
@@ -9444,17 +9462,17 @@ var U_ = {
|
|
|
9444
9462
|
}
|
|
9445
9463
|
}
|
|
9446
9464
|
};
|
|
9447
|
-
function
|
|
9465
|
+
function xd(e) {
|
|
9448
9466
|
e.use(zo, {
|
|
9449
9467
|
// size: 'default',
|
|
9450
|
-
locale:
|
|
9468
|
+
locale: Ud
|
|
9451
9469
|
});
|
|
9452
9470
|
for (const [t, n] of Object.entries(ts))
|
|
9453
9471
|
e.component("ElIcon" + t, n);
|
|
9454
9472
|
}
|
|
9455
|
-
const
|
|
9456
|
-
async function
|
|
9457
|
-
const t = await I.idbGetItem(
|
|
9473
|
+
const Vd = "__syCacheSdkConfig__";
|
|
9474
|
+
async function Bd(e) {
|
|
9475
|
+
const t = await I.idbGetItem(Vd), n = {
|
|
9458
9476
|
// upAction: lastConfig.VITE_SY_API_URL + 'sdks.sdk_file/common/upload_image',
|
|
9459
9477
|
signatureFn: ue.flagPost("SDK_FILE_COMMON_UPLOAD_SIGNATURE"),
|
|
9460
9478
|
upHeaders: {
|
|
@@ -9522,26 +9540,26 @@ async function B_(e) {
|
|
|
9522
9540
|
for (const [r, a] of Object.entries(as))
|
|
9523
9541
|
e.component("cvSvg" + r, a);
|
|
9524
9542
|
}
|
|
9525
|
-
async function
|
|
9543
|
+
async function e_(e, t) {
|
|
9526
9544
|
os(t), Po(e), Ft().init(), Ge().init(), await an().init(), await Te().init();
|
|
9527
9545
|
}
|
|
9528
|
-
async function
|
|
9546
|
+
async function t_(e, t, n, r, a = "", o = null) {
|
|
9529
9547
|
rn().init(r), on().init(n);
|
|
9530
9548
|
let s = e.config.globalProperties;
|
|
9531
9549
|
s.$onLaunched = new Promise((i) => {
|
|
9532
9550
|
s.$isResolve = i;
|
|
9533
|
-
}), s.$request = ue, s.$cache = I,
|
|
9551
|
+
}), s.$request = ue, s.$cache = I, xd(e), await Bd(e), Md(e, s), e.mixin(Lu()), e.component("SdkFormEdit", Zf), e.component("SdkManageImage", pd), Fd(e), await Gd(t, r, a), e.use(wo);
|
|
9534
9552
|
let l = Ft().SA_LANGUAGE_GET();
|
|
9535
9553
|
zc(l, o), window.$t = Xe.t;
|
|
9536
9554
|
}
|
|
9537
|
-
async function
|
|
9555
|
+
async function Gd(e, t, n) {
|
|
9538
9556
|
const r = Ct(), a = Te(), o = rn(), s = on();
|
|
9539
9557
|
r.QK_SEND_MSG_REG_SUBMENU(t);
|
|
9540
9558
|
let l = Jt().syProductSign || "";
|
|
9541
9559
|
s.SA_PERMS_ROUTER_ADD(e, l), o.SA_MENU_PARSE(), r.QK_SEND_MSG_ROUTER_BEFORE(n);
|
|
9542
9560
|
let i = !1, c = !1, f = !1;
|
|
9543
|
-
e.beforeEach((u,
|
|
9544
|
-
const T = u.path || "", p =
|
|
9561
|
+
e.beforeEach((u, _, g) => {
|
|
9562
|
+
const T = u.path || "", p = _.path, w = u.query || {};
|
|
9545
9563
|
let m = a.accountIsLogin;
|
|
9546
9564
|
if (pe.__POWERED_BY_QIANKUN__ && (m = a.SA_ACCOUNT_IS_LOGGED()), w.token, m) {
|
|
9547
9565
|
if (i || (o.SA_MENU_PARSE(), i = !0), p == "/" && T == "/none") {
|
|
@@ -9558,7 +9576,7 @@ async function G_(e, t, n) {
|
|
|
9558
9576
|
g();
|
|
9559
9577
|
}
|
|
9560
9578
|
}), e.isReady().then(async () => {
|
|
9561
|
-
}), e.afterEach(function(u,
|
|
9579
|
+
}), e.afterEach(function(u, _) {
|
|
9562
9580
|
var g;
|
|
9563
9581
|
if ((g = u == null ? void 0 : u.meta) != null && g.title && !pe.__POWERED_BY_QIANKUN__) {
|
|
9564
9582
|
let T = "管理系统", p = u.meta.title;
|
|
@@ -9566,7 +9584,7 @@ async function G_(e, t, n) {
|
|
|
9566
9584
|
}
|
|
9567
9585
|
});
|
|
9568
9586
|
}
|
|
9569
|
-
async function
|
|
9587
|
+
async function n_(e, t, n) {
|
|
9570
9588
|
pe.__POWERED_BY_QIANKUN__ ? gi(e, t, n) : t();
|
|
9571
9589
|
}
|
|
9572
9590
|
export {
|
|
@@ -9578,21 +9596,21 @@ export {
|
|
|
9578
9596
|
Te as c,
|
|
9579
9597
|
an as d,
|
|
9580
9598
|
Jt as e,
|
|
9581
|
-
|
|
9599
|
+
Qd as f,
|
|
9582
9600
|
Uu as g,
|
|
9583
|
-
|
|
9584
|
-
|
|
9585
|
-
|
|
9586
|
-
|
|
9601
|
+
Jd as h,
|
|
9602
|
+
zd as i,
|
|
9603
|
+
Zd as j,
|
|
9604
|
+
_d as k,
|
|
9587
9605
|
Ct as l,
|
|
9588
9606
|
Ro as m,
|
|
9589
9607
|
rn as n,
|
|
9590
9608
|
on as o,
|
|
9591
9609
|
Po as p,
|
|
9592
9610
|
pe as q,
|
|
9593
|
-
|
|
9611
|
+
e_ as r,
|
|
9594
9612
|
os as s,
|
|
9595
|
-
|
|
9613
|
+
t_ as t,
|
|
9596
9614
|
Ft as u,
|
|
9597
|
-
|
|
9615
|
+
n_ as v
|
|
9598
9616
|
};
|