@linagora/linid-im-front-corelib 0.0.60 → 0.0.62
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/core-lib.es.js +575 -578
- package/dist/core-lib.umd.js +11 -11
- package/dist/package.json +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/types/src/composables/useQuasarRules.d.ts +1 -1
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/types/dropdownButton.d.ts +44 -0
- package/dist/types/src/types/fieldValidation.d.ts +1 -1
- package/package.json +1 -1
package/dist/core-lib.es.js
CHANGED
|
@@ -88,7 +88,7 @@ function Ir(e) {
|
|
|
88
88
|
function Dr(e, t, n, r) {
|
|
89
89
|
const { state: s, actions: o, getters: i } = t, a = n.state.value[e];
|
|
90
90
|
let c;
|
|
91
|
-
function
|
|
91
|
+
function l() {
|
|
92
92
|
!a && (process.env.NODE_ENV === "production" || !r) && (n.state.value[e] = s ? s() : {});
|
|
93
93
|
const f = process.env.NODE_ENV !== "production" && r ? (
|
|
94
94
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
@@ -96,11 +96,11 @@ function Dr(e, t, n, r) {
|
|
|
96
96
|
) : Ar(n.state.value[e]);
|
|
97
97
|
return Te(f, o, Object.keys(i || {}).reduce((m, E) => (process.env.NODE_ENV !== "production" && E in f && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${E}" in store "${e}".`), m[E] = Nt(Ye(() => {
|
|
98
98
|
Gt(n);
|
|
99
|
-
const
|
|
100
|
-
return i[E].call(
|
|
99
|
+
const _ = n._s.get(e);
|
|
100
|
+
return i[E].call(_, _);
|
|
101
101
|
})), m), {}));
|
|
102
102
|
}
|
|
103
|
-
return c = $n(e,
|
|
103
|
+
return c = $n(e, l, t, n, r, !0), c;
|
|
104
104
|
}
|
|
105
105
|
function $n(e, t, n = {}, r, s, o) {
|
|
106
106
|
let i;
|
|
@@ -109,28 +109,28 @@ function $n(e, t, n = {}, r, s, o) {
|
|
|
109
109
|
throw new Error("Pinia destroyed");
|
|
110
110
|
const c = { deep: !0 };
|
|
111
111
|
process.env.NODE_ENV !== "production" && (c.onTrigger = (R) => {
|
|
112
|
-
|
|
112
|
+
l ? _ = R : l == !1 && !g._hotUpdating && (Array.isArray(_) ? _.push(R) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
113
113
|
});
|
|
114
|
-
let
|
|
114
|
+
let l, f, m = /* @__PURE__ */ new Set(), E = /* @__PURE__ */ new Set(), _;
|
|
115
115
|
const p = r.state.value[e];
|
|
116
116
|
!o && !p && (process.env.NODE_ENV === "production" || !s) && (r.state.value[e] = {});
|
|
117
117
|
const b = rn({});
|
|
118
118
|
let N;
|
|
119
|
-
function
|
|
119
|
+
function h(R) {
|
|
120
120
|
let v;
|
|
121
|
-
|
|
121
|
+
l = f = !1, process.env.NODE_ENV !== "production" && (_ = []), typeof R == "function" ? (R(r.state.value[e]), v = {
|
|
122
122
|
type: Ot.patchFunction,
|
|
123
123
|
storeId: e,
|
|
124
|
-
events:
|
|
124
|
+
events: _
|
|
125
125
|
}) : (Un(r.state.value[e], R), v = {
|
|
126
126
|
type: Ot.patchObject,
|
|
127
127
|
payload: R,
|
|
128
128
|
storeId: e,
|
|
129
|
-
events:
|
|
129
|
+
events: _
|
|
130
130
|
});
|
|
131
131
|
const V = N = /* @__PURE__ */ Symbol();
|
|
132
132
|
Tr().then(() => {
|
|
133
|
-
N === V && (
|
|
133
|
+
N === V && (l = !0);
|
|
134
134
|
}), f = !0, it(m, v, r.state.value[e]);
|
|
135
135
|
}
|
|
136
136
|
const S = o ? function() {
|
|
@@ -185,14 +185,14 @@ function $n(e, t, n = {}, r, s, o) {
|
|
|
185
185
|
// _s: scope,
|
|
186
186
|
$id: e,
|
|
187
187
|
$onAction: Rr.bind(null, E),
|
|
188
|
-
$patch:
|
|
188
|
+
$patch: h,
|
|
189
189
|
$reset: S,
|
|
190
190
|
$subscribe(R, v = {}) {
|
|
191
191
|
const V = Rr(m, R, v.detached, () => z()), z = i.run(() => Mn(() => r.state.value[e], (U) => {
|
|
192
|
-
(v.flush === "sync" ? f :
|
|
192
|
+
(v.flush === "sync" ? f : l) && R({
|
|
193
193
|
storeId: e,
|
|
194
194
|
type: Ot.direct,
|
|
195
|
-
events:
|
|
195
|
+
events: _
|
|
196
196
|
}, U);
|
|
197
197
|
}, Te({}, c, v)));
|
|
198
198
|
return V;
|
|
@@ -228,7 +228,7 @@ function $n(e, t, n = {}, r, s, o) {
|
|
|
228
228
|
set: (R) => {
|
|
229
229
|
if (process.env.NODE_ENV !== "production" && s)
|
|
230
230
|
throw new Error("cannot set hotState");
|
|
231
|
-
|
|
231
|
+
h((v) => {
|
|
232
232
|
Te(v, R);
|
|
233
233
|
});
|
|
234
234
|
}
|
|
@@ -241,8 +241,8 @@ function $n(e, t, n = {}, r, s, o) {
|
|
|
241
241
|
g[v] = On(R.$state, v);
|
|
242
242
|
}), Object.keys(g.$state).forEach((v) => {
|
|
243
243
|
v in R.$state || delete g[v];
|
|
244
|
-
}),
|
|
245
|
-
|
|
244
|
+
}), l = !1, f = !1, r.state.value[e] = On(R._hmrPayload, "hotState"), f = !0, Tr().then(() => {
|
|
245
|
+
l = !0;
|
|
246
246
|
});
|
|
247
247
|
for (const v in R._hmrPayload.actions) {
|
|
248
248
|
const V = R[v];
|
|
@@ -291,7 +291,7 @@ function $n(e, t, n = {}, r, s, o) {
|
|
|
291
291
|
})));
|
|
292
292
|
}), process.env.NODE_ENV !== "production" && g.$state && typeof g.$state == "object" && typeof g.$state.constructor == "function" && !g.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
293
293
|
state: () => new MyClass()
|
|
294
|
-
Found in store "${g.$id}".`), p && o && n.hydrate && n.hydrate(g.$state, p),
|
|
294
|
+
Found in store "${g.$id}".`), p && o && n.hydrate && n.hydrate(g.$state, p), l = !0, f = !0, g;
|
|
295
295
|
}
|
|
296
296
|
// @__NO_SIDE_EFFECTS__
|
|
297
297
|
function on(e, t, n) {
|
|
@@ -307,7 +307,7 @@ function on(e, t, n) {
|
|
|
307
307
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
308
308
|
This will fail in production.`);
|
|
309
309
|
i = Ze, i._s.has(e) || (s ? $n(e, t, r, i) : Dr(e, r, i), process.env.NODE_ENV !== "production" && (o._pinia = i));
|
|
310
|
-
const
|
|
310
|
+
const l = i._s.get(e);
|
|
311
311
|
if (process.env.NODE_ENV !== "production" && a) {
|
|
312
312
|
const f = "__hot:" + e, m = s ? $n(f, t, r, i, !0) : Dr(f, Te({}, r), i, !0);
|
|
313
313
|
a._hotUpdate(m), delete i.state.value[f], i._s.delete(f);
|
|
@@ -317,10 +317,10 @@ This will fail in production.`);
|
|
|
317
317
|
if (f && f.proxy && // avoid adding stores that are just built for hot module replacement
|
|
318
318
|
!a) {
|
|
319
319
|
const m = f.proxy, E = "_pStores" in m ? m._pStores : m._pStores = {};
|
|
320
|
-
E[e] =
|
|
320
|
+
E[e] = l;
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
|
-
return
|
|
323
|
+
return l;
|
|
324
324
|
}
|
|
325
325
|
return o.$id = e, o;
|
|
326
326
|
}
|
|
@@ -470,8 +470,8 @@ var ln = (function() {
|
|
|
470
470
|
if (this._parentage = null, Array.isArray(i))
|
|
471
471
|
try {
|
|
472
472
|
for (var a = Vn(i), c = a.next(); !c.done; c = a.next()) {
|
|
473
|
-
var
|
|
474
|
-
|
|
473
|
+
var l = c.value;
|
|
474
|
+
l.remove(this);
|
|
475
475
|
}
|
|
476
476
|
} catch (b) {
|
|
477
477
|
t = { error: b };
|
|
@@ -495,8 +495,8 @@ var ln = (function() {
|
|
|
495
495
|
if (m) {
|
|
496
496
|
this._finalizers = null;
|
|
497
497
|
try {
|
|
498
|
-
for (var E = Vn(m),
|
|
499
|
-
var p =
|
|
498
|
+
for (var E = Vn(m), _ = E.next(); !_.done; _ = E.next()) {
|
|
499
|
+
var p = _.value;
|
|
500
500
|
try {
|
|
501
501
|
Pr(p);
|
|
502
502
|
} catch (b) {
|
|
@@ -507,7 +507,7 @@ var ln = (function() {
|
|
|
507
507
|
r = { error: b };
|
|
508
508
|
} finally {
|
|
509
509
|
try {
|
|
510
|
-
|
|
510
|
+
_ && !_.done && (s = E.return) && s.call(E);
|
|
511
511
|
} finally {
|
|
512
512
|
if (r) throw r.error;
|
|
513
513
|
}
|
|
@@ -552,9 +552,9 @@ function js(e) {
|
|
|
552
552
|
function Pr(e) {
|
|
553
553
|
je(e) ? e() : e.unsubscribe();
|
|
554
554
|
}
|
|
555
|
-
var
|
|
555
|
+
var hi = {
|
|
556
556
|
Promise: void 0
|
|
557
|
-
},
|
|
557
|
+
}, _i = {
|
|
558
558
|
setTimeout: function(e, t) {
|
|
559
559
|
for (var n = [], r = 2; r < arguments.length; r++)
|
|
560
560
|
n[r - 2] = arguments[r];
|
|
@@ -566,7 +566,7 @@ var _i = {
|
|
|
566
566
|
delegate: void 0
|
|
567
567
|
};
|
|
568
568
|
function Ei(e) {
|
|
569
|
-
|
|
569
|
+
_i.setTimeout(function() {
|
|
570
570
|
throw e;
|
|
571
571
|
});
|
|
572
572
|
}
|
|
@@ -735,7 +735,7 @@ var kr = (function() {
|
|
|
735
735
|
})();
|
|
736
736
|
function Mr(e) {
|
|
737
737
|
var t;
|
|
738
|
-
return (t = e ??
|
|
738
|
+
return (t = e ?? hi.Promise) !== null && t !== void 0 ? t : Promise;
|
|
739
739
|
}
|
|
740
740
|
function Ti(e) {
|
|
741
741
|
return e && je(e.next) && je(e.error) && je(e.complete);
|
|
@@ -770,8 +770,8 @@ var vi = xs(function(e) {
|
|
|
770
770
|
var c = a.value;
|
|
771
771
|
c.next(n);
|
|
772
772
|
}
|
|
773
|
-
} catch (
|
|
774
|
-
s = { error:
|
|
773
|
+
} catch (l) {
|
|
774
|
+
s = { error: l };
|
|
775
775
|
} finally {
|
|
776
776
|
try {
|
|
777
777
|
a && !a.done && (o = i.return) && o.call(i);
|
|
@@ -1190,7 +1190,7 @@ q.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
|
1190
1190
|
q.ERR_CANCELED = "ERR_CANCELED";
|
|
1191
1191
|
q.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
1192
1192
|
q.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
1193
|
-
const
|
|
1193
|
+
const ha = null;
|
|
1194
1194
|
function Yn(e) {
|
|
1195
1195
|
return y.isPlainObject(e) || y.isArray(e);
|
|
1196
1196
|
}
|
|
@@ -1202,7 +1202,7 @@ function vn(e, t, n) {
|
|
|
1202
1202
|
return s = eo(s), !n && o ? "[" + s + "]" : s;
|
|
1203
1203
|
}).join(n ? "." : "") : t;
|
|
1204
1204
|
}
|
|
1205
|
-
function
|
|
1205
|
+
function _a(e) {
|
|
1206
1206
|
return y.isArray(e) && !e.some(Yn);
|
|
1207
1207
|
}
|
|
1208
1208
|
const Ea = y.toFlatObject(y, {}, null, function(t) {
|
|
@@ -1226,7 +1226,7 @@ function pn(e, t, n) {
|
|
|
1226
1226
|
const r = n.metaTokens, s = n.visitor || f, o = n.dots, i = n.indexes, c = (n.Blob || typeof Blob < "u" && Blob) && y.isSpecCompliantForm(t);
|
|
1227
1227
|
if (!y.isFunction(s))
|
|
1228
1228
|
throw new TypeError("visitor must be a function");
|
|
1229
|
-
function
|
|
1229
|
+
function l(p) {
|
|
1230
1230
|
if (p === null) return "";
|
|
1231
1231
|
if (y.isDate(p))
|
|
1232
1232
|
return p.toISOString();
|
|
@@ -1237,40 +1237,40 @@ function pn(e, t, n) {
|
|
|
1237
1237
|
return y.isArrayBuffer(p) || y.isTypedArray(p) ? c && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
|
1238
1238
|
}
|
|
1239
1239
|
function f(p, b, N) {
|
|
1240
|
-
let
|
|
1240
|
+
let h = p;
|
|
1241
1241
|
if (y.isReactNative(t) && y.isReactNativeBlob(p))
|
|
1242
|
-
return t.append(vn(N, b, o),
|
|
1242
|
+
return t.append(vn(N, b, o), l(p)), !1;
|
|
1243
1243
|
if (p && !N && typeof p == "object") {
|
|
1244
1244
|
if (y.endsWith(b, "{}"))
|
|
1245
1245
|
b = r ? b : b.slice(0, -2), p = JSON.stringify(p);
|
|
1246
|
-
else if (y.isArray(p) &&
|
|
1247
|
-
return b = eo(b),
|
|
1246
|
+
else if (y.isArray(p) && _a(p) || (y.isFileList(p) || y.endsWith(b, "[]")) && (h = y.toArray(p)))
|
|
1247
|
+
return b = eo(b), h.forEach(function(A, O) {
|
|
1248
1248
|
!(y.isUndefined(A) || A === null) && t.append(
|
|
1249
1249
|
// eslint-disable-next-line no-nested-ternary
|
|
1250
1250
|
i === !0 ? vn([b], O, o) : i === null ? b : b + "[]",
|
|
1251
|
-
|
|
1251
|
+
l(A)
|
|
1252
1252
|
);
|
|
1253
1253
|
}), !1;
|
|
1254
1254
|
}
|
|
1255
|
-
return Yn(p) ? !0 : (t.append(vn(N, b, o),
|
|
1255
|
+
return Yn(p) ? !0 : (t.append(vn(N, b, o), l(p)), !1);
|
|
1256
1256
|
}
|
|
1257
1257
|
const m = [], E = Object.assign(Ea, {
|
|
1258
1258
|
defaultVisitor: f,
|
|
1259
|
-
convertValue:
|
|
1259
|
+
convertValue: l,
|
|
1260
1260
|
isVisitable: Yn
|
|
1261
1261
|
});
|
|
1262
|
-
function
|
|
1262
|
+
function _(p, b) {
|
|
1263
1263
|
if (!y.isUndefined(p)) {
|
|
1264
1264
|
if (m.indexOf(p) !== -1)
|
|
1265
1265
|
throw Error("Circular reference detected in " + b.join("."));
|
|
1266
|
-
m.push(p), y.forEach(p, function(
|
|
1267
|
-
(!(y.isUndefined(
|
|
1266
|
+
m.push(p), y.forEach(p, function(h, S) {
|
|
1267
|
+
(!(y.isUndefined(h) || h === null) && s.call(t, h, y.isString(S) ? S.trim() : S, b, E)) === !0 && _(h, b ? b.concat(S) : [S]);
|
|
1268
1268
|
}), m.pop();
|
|
1269
1269
|
}
|
|
1270
1270
|
}
|
|
1271
1271
|
if (!y.isObject(e))
|
|
1272
1272
|
throw new TypeError("data must be an object");
|
|
1273
|
-
return
|
|
1273
|
+
return _(e), t;
|
|
1274
1274
|
}
|
|
1275
1275
|
function Vr(e) {
|
|
1276
1276
|
const t = {
|
|
@@ -1585,24 +1585,24 @@ let ye = class {
|
|
|
1585
1585
|
}
|
|
1586
1586
|
set(t, n, r) {
|
|
1587
1587
|
const s = this;
|
|
1588
|
-
function o(a, c,
|
|
1588
|
+
function o(a, c, l) {
|
|
1589
1589
|
const f = yt(c);
|
|
1590
1590
|
if (!f)
|
|
1591
1591
|
throw new Error("header name must be a non-empty string");
|
|
1592
1592
|
const m = y.findKey(s, f);
|
|
1593
|
-
(!m || s[m] === void 0 ||
|
|
1593
|
+
(!m || s[m] === void 0 || l === !0 || l === void 0 && s[m] !== !1) && (s[m || c] = Vt(a));
|
|
1594
1594
|
}
|
|
1595
|
-
const i = (a, c) => y.forEach(a, (
|
|
1595
|
+
const i = (a, c) => y.forEach(a, (l, f) => o(l, f, c));
|
|
1596
1596
|
if (y.isPlainObject(t) || t instanceof this.constructor)
|
|
1597
1597
|
i(t, n);
|
|
1598
1598
|
else if (y.isString(t) && (t = t.trim()) && !ka(t))
|
|
1599
1599
|
i(Pa(t), n);
|
|
1600
1600
|
else if (y.isObject(t) && y.isIterable(t)) {
|
|
1601
|
-
let a = {}, c,
|
|
1601
|
+
let a = {}, c, l;
|
|
1602
1602
|
for (const f of t) {
|
|
1603
1603
|
if (!y.isArray(f))
|
|
1604
1604
|
throw TypeError("Object iterator must return a key-value pair");
|
|
1605
|
-
a[
|
|
1605
|
+
a[l = f[0]] = (c = a[l]) ? y.isArray(c) ? [...c, f[1]] : [c, f[1]] : f[1];
|
|
1606
1606
|
}
|
|
1607
1607
|
i(a, n);
|
|
1608
1608
|
} else
|
|
@@ -1768,25 +1768,25 @@ function $a(e, t) {
|
|
|
1768
1768
|
const n = new Array(e), r = new Array(e);
|
|
1769
1769
|
let s = 0, o = 0, i;
|
|
1770
1770
|
return t = t !== void 0 ? t : 1e3, function(c) {
|
|
1771
|
-
const
|
|
1772
|
-
i || (i =
|
|
1771
|
+
const l = Date.now(), f = r[o];
|
|
1772
|
+
i || (i = l), n[s] = c, r[s] = l;
|
|
1773
1773
|
let m = o, E = 0;
|
|
1774
1774
|
for (; m !== s; )
|
|
1775
1775
|
E += n[m++], m = m % e;
|
|
1776
|
-
if (s = (s + 1) % e, s === o && (o = (o + 1) % e),
|
|
1776
|
+
if (s = (s + 1) % e, s === o && (o = (o + 1) % e), l - i < t)
|
|
1777
1777
|
return;
|
|
1778
|
-
const
|
|
1779
|
-
return
|
|
1778
|
+
const _ = f && l - f;
|
|
1779
|
+
return _ ? Math.round(E * 1e3 / _) : void 0;
|
|
1780
1780
|
};
|
|
1781
1781
|
}
|
|
1782
1782
|
function xa(e, t) {
|
|
1783
1783
|
let n = 0, r = 1e3 / t, s, o;
|
|
1784
|
-
const i = (
|
|
1785
|
-
n = f, s = null, o && (clearTimeout(o), o = null), e(...
|
|
1784
|
+
const i = (l, f = Date.now()) => {
|
|
1785
|
+
n = f, s = null, o && (clearTimeout(o), o = null), e(...l);
|
|
1786
1786
|
};
|
|
1787
|
-
return [(...
|
|
1787
|
+
return [(...l) => {
|
|
1788
1788
|
const f = Date.now(), m = f - n;
|
|
1789
|
-
m >= r ? i(
|
|
1789
|
+
m >= r ? i(l, f) : (s = l, o || (o = setTimeout(() => {
|
|
1790
1790
|
o = null, i(s);
|
|
1791
1791
|
}, r - m)));
|
|
1792
1792
|
}, () => s && i(s)];
|
|
@@ -1795,15 +1795,15 @@ const Xt = (e, t, n = 3) => {
|
|
|
1795
1795
|
let r = 0;
|
|
1796
1796
|
const s = $a(50, 250);
|
|
1797
1797
|
return xa((o) => {
|
|
1798
|
-
const i = o.loaded, a = o.lengthComputable ? o.total : void 0, c = i - r,
|
|
1798
|
+
const i = o.loaded, a = o.lengthComputable ? o.total : void 0, c = i - r, l = s(c), f = i <= a;
|
|
1799
1799
|
r = i;
|
|
1800
1800
|
const m = {
|
|
1801
1801
|
loaded: i,
|
|
1802
1802
|
total: a,
|
|
1803
1803
|
progress: a ? i / a : void 0,
|
|
1804
1804
|
bytes: c,
|
|
1805
|
-
rate:
|
|
1806
|
-
estimated:
|
|
1805
|
+
rate: l || void 0,
|
|
1806
|
+
estimated: l && a && f ? (a - i) / l : void 0,
|
|
1807
1807
|
event: o,
|
|
1808
1808
|
lengthComputable: a != null,
|
|
1809
1809
|
[t ? "download" : "upload"]: !0
|
|
@@ -1866,30 +1866,30 @@ const Wr = (e) => e instanceof ye ? { ...e } : e;
|
|
|
1866
1866
|
function st(e, t) {
|
|
1867
1867
|
t = t || {};
|
|
1868
1868
|
const n = {};
|
|
1869
|
-
function r(
|
|
1870
|
-
return y.isPlainObject(
|
|
1869
|
+
function r(l, f, m, E) {
|
|
1870
|
+
return y.isPlainObject(l) && y.isPlainObject(f) ? y.merge.call({ caseless: E }, l, f) : y.isPlainObject(f) ? y.merge({}, f) : y.isArray(f) ? f.slice() : f;
|
|
1871
1871
|
}
|
|
1872
|
-
function s(
|
|
1872
|
+
function s(l, f, m, E) {
|
|
1873
1873
|
if (y.isUndefined(f)) {
|
|
1874
|
-
if (!y.isUndefined(
|
|
1875
|
-
return r(void 0,
|
|
1876
|
-
} else return r(
|
|
1874
|
+
if (!y.isUndefined(l))
|
|
1875
|
+
return r(void 0, l, m, E);
|
|
1876
|
+
} else return r(l, f, m, E);
|
|
1877
1877
|
}
|
|
1878
|
-
function o(
|
|
1878
|
+
function o(l, f) {
|
|
1879
1879
|
if (!y.isUndefined(f))
|
|
1880
1880
|
return r(void 0, f);
|
|
1881
1881
|
}
|
|
1882
|
-
function i(
|
|
1882
|
+
function i(l, f) {
|
|
1883
1883
|
if (y.isUndefined(f)) {
|
|
1884
|
-
if (!y.isUndefined(
|
|
1885
|
-
return r(void 0,
|
|
1884
|
+
if (!y.isUndefined(l))
|
|
1885
|
+
return r(void 0, l);
|
|
1886
1886
|
} else return r(void 0, f);
|
|
1887
1887
|
}
|
|
1888
|
-
function a(
|
|
1888
|
+
function a(l, f, m) {
|
|
1889
1889
|
if (m in t)
|
|
1890
|
-
return r(
|
|
1890
|
+
return r(l, f);
|
|
1891
1891
|
if (m in e)
|
|
1892
|
-
return r(void 0,
|
|
1892
|
+
return r(void 0, l);
|
|
1893
1893
|
}
|
|
1894
1894
|
const c = {
|
|
1895
1895
|
url: o,
|
|
@@ -1920,7 +1920,7 @@ function st(e, t) {
|
|
|
1920
1920
|
socketPath: i,
|
|
1921
1921
|
responseEncoding: i,
|
|
1922
1922
|
validateStatus: a,
|
|
1923
|
-
headers: (
|
|
1923
|
+
headers: (l, f, m) => s(Wr(l), Wr(f), m, !0)
|
|
1924
1924
|
};
|
|
1925
1925
|
return y.forEach(Object.keys({ ...e, ...t }), function(f) {
|
|
1926
1926
|
if (f === "__proto__" || f === "constructor" || f === "prototype") return;
|
|
@@ -1944,9 +1944,9 @@ const ao = (e) => {
|
|
|
1944
1944
|
if (Ee.hasStandardBrowserEnv || Ee.hasStandardBrowserWebWorkerEnv)
|
|
1945
1945
|
i.setContentType(void 0);
|
|
1946
1946
|
else if (y.isFunction(n.getHeaders)) {
|
|
1947
|
-
const c = n.getHeaders(),
|
|
1947
|
+
const c = n.getHeaders(), l = ["content-type", "content-length"];
|
|
1948
1948
|
Object.entries(c).forEach(([f, m]) => {
|
|
1949
|
-
|
|
1949
|
+
l.includes(f.toLowerCase()) && i.set(f, m);
|
|
1950
1950
|
});
|
|
1951
1951
|
}
|
|
1952
1952
|
}
|
|
@@ -1960,13 +1960,13 @@ const ao = (e) => {
|
|
|
1960
1960
|
const s = ao(e);
|
|
1961
1961
|
let o = s.data;
|
|
1962
1962
|
const i = ye.from(s.headers).normalize();
|
|
1963
|
-
let { responseType: a, onUploadProgress: c, onDownloadProgress:
|
|
1963
|
+
let { responseType: a, onUploadProgress: c, onDownloadProgress: l } = s, f, m, E, _, p;
|
|
1964
1964
|
function b() {
|
|
1965
|
-
|
|
1965
|
+
_ && _(), p && p(), s.cancelToken && s.cancelToken.unsubscribe(f), s.signal && s.signal.removeEventListener("abort", f);
|
|
1966
1966
|
}
|
|
1967
1967
|
let N = new XMLHttpRequest();
|
|
1968
1968
|
N.open(s.method.toUpperCase(), s.url, !0), N.timeout = s.timeout;
|
|
1969
|
-
function
|
|
1969
|
+
function h() {
|
|
1970
1970
|
if (!N)
|
|
1971
1971
|
return;
|
|
1972
1972
|
const A = ye.from(
|
|
@@ -1989,8 +1989,8 @@ const ao = (e) => {
|
|
|
1989
1989
|
C
|
|
1990
1990
|
), N = null;
|
|
1991
1991
|
}
|
|
1992
|
-
"onloadend" in N ? N.onloadend =
|
|
1993
|
-
!N || N.readyState !== 4 || N.status === 0 && !(N.responseURL && N.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
1992
|
+
"onloadend" in N ? N.onloadend = h : N.onreadystatechange = function() {
|
|
1993
|
+
!N || N.readyState !== 4 || N.status === 0 && !(N.responseURL && N.responseURL.indexOf("file:") === 0) || setTimeout(h);
|
|
1994
1994
|
}, N.onabort = function() {
|
|
1995
1995
|
N && (r(new q("Request aborted", q.ECONNABORTED, e, N)), N = null);
|
|
1996
1996
|
}, N.onerror = function(O) {
|
|
@@ -2009,7 +2009,7 @@ const ao = (e) => {
|
|
|
2009
2009
|
), N = null;
|
|
2010
2010
|
}, o === void 0 && i.setContentType(null), "setRequestHeader" in N && y.forEach(i.toJSON(), function(O, C) {
|
|
2011
2011
|
N.setRequestHeader(C, O);
|
|
2012
|
-
}), y.isUndefined(s.withCredentials) || (N.withCredentials = !!s.withCredentials), a && a !== "json" && (N.responseType = s.responseType),
|
|
2012
|
+
}), y.isUndefined(s.withCredentials) || (N.withCredentials = !!s.withCredentials), a && a !== "json" && (N.responseType = s.responseType), l && ([E, p] = Xt(l, !0), N.addEventListener("progress", E)), c && N.upload && ([m, _] = Xt(c), N.upload.addEventListener("progress", m), N.upload.addEventListener("loadend", _)), (s.cancelToken || s.signal) && (f = (A) => {
|
|
2013
2013
|
N && (r(!A || A.type ? new Pt(null, e, N) : A), N.abort(), N = null);
|
|
2014
2014
|
}, s.cancelToken && s.cancelToken.subscribe(f), s.signal && (s.signal.aborted ? f() : s.signal.addEventListener("abort", f)));
|
|
2015
2015
|
const S = Ua(s.url);
|
|
@@ -2029,10 +2029,10 @@ const ao = (e) => {
|
|
|
2029
2029
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
2030
2030
|
if (t || n) {
|
|
2031
2031
|
let r = new AbortController(), s;
|
|
2032
|
-
const o = function(
|
|
2032
|
+
const o = function(l) {
|
|
2033
2033
|
if (!s) {
|
|
2034
2034
|
s = !0, a();
|
|
2035
|
-
const f =
|
|
2035
|
+
const f = l instanceof Error ? l : this.reason;
|
|
2036
2036
|
r.abort(
|
|
2037
2037
|
f instanceof q ? f : new Pt(f instanceof Error ? f.message : f)
|
|
2038
2038
|
);
|
|
@@ -2042,11 +2042,11 @@ const ao = (e) => {
|
|
|
2042
2042
|
i = null, o(new q(`timeout of ${t}ms exceeded`, q.ETIMEDOUT));
|
|
2043
2043
|
}, t);
|
|
2044
2044
|
const a = () => {
|
|
2045
|
-
e && (i && clearTimeout(i), i = null, e.forEach((
|
|
2046
|
-
|
|
2045
|
+
e && (i && clearTimeout(i), i = null, e.forEach((l) => {
|
|
2046
|
+
l.unsubscribe ? l.unsubscribe(o) : l.removeEventListener("abort", o);
|
|
2047
2047
|
}), e = null);
|
|
2048
2048
|
};
|
|
2049
|
-
e.forEach((
|
|
2049
|
+
e.forEach((l) => l.addEventListener("abort", o));
|
|
2050
2050
|
const { signal: c } = r;
|
|
2051
2051
|
return c.unsubscribe = () => y.asap(a), c;
|
|
2052
2052
|
}
|
|
@@ -2087,8 +2087,8 @@ const ao = (e) => {
|
|
|
2087
2087
|
{
|
|
2088
2088
|
async pull(c) {
|
|
2089
2089
|
try {
|
|
2090
|
-
const { done:
|
|
2091
|
-
if (
|
|
2090
|
+
const { done: l, value: f } = await s.next();
|
|
2091
|
+
if (l) {
|
|
2092
2092
|
a(), c.close();
|
|
2093
2093
|
return;
|
|
2094
2094
|
}
|
|
@@ -2098,8 +2098,8 @@ const ao = (e) => {
|
|
|
2098
2098
|
n(E);
|
|
2099
2099
|
}
|
|
2100
2100
|
c.enqueue(new Uint8Array(f));
|
|
2101
|
-
} catch (
|
|
2102
|
-
throw a(
|
|
2101
|
+
} catch (l) {
|
|
2102
|
+
throw a(l), l;
|
|
2103
2103
|
}
|
|
2104
2104
|
},
|
|
2105
2105
|
cancel(c) {
|
|
@@ -2130,7 +2130,7 @@ const ao = (e) => {
|
|
|
2130
2130
|
const { fetch: t, Request: n, Response: r } = e, s = t ? kt(t) : typeof fetch == "function", o = kt(n), i = kt(r);
|
|
2131
2131
|
if (!s)
|
|
2132
2132
|
return !1;
|
|
2133
|
-
const a = s && kt(Kr), c = s && (typeof Xr == "function" ? /* @__PURE__ */ ((p) => (b) => p.encode(b))(new Xr()) : async (p) => new Uint8Array(await new n(p).arrayBuffer())),
|
|
2133
|
+
const a = s && kt(Kr), c = s && (typeof Xr == "function" ? /* @__PURE__ */ ((p) => (b) => p.encode(b))(new Xr()) : async (p) => new Uint8Array(await new n(p).arrayBuffer())), l = o && a && Jr(() => {
|
|
2134
2134
|
let p = !1;
|
|
2135
2135
|
const b = new n(Ee.origin, {
|
|
2136
2136
|
body: new Kr(),
|
|
@@ -2145,9 +2145,9 @@ const ao = (e) => {
|
|
|
2145
2145
|
};
|
|
2146
2146
|
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((p) => {
|
|
2147
2147
|
!m[p] && (m[p] = (b, N) => {
|
|
2148
|
-
let
|
|
2149
|
-
if (
|
|
2150
|
-
return
|
|
2148
|
+
let h = b && b[p];
|
|
2149
|
+
if (h)
|
|
2150
|
+
return h.call(b);
|
|
2151
2151
|
throw new q(
|
|
2152
2152
|
`Response type '${p}' is not supported`,
|
|
2153
2153
|
q.ERR_NOT_SUPPORT,
|
|
@@ -2169,7 +2169,7 @@ const ao = (e) => {
|
|
|
2169
2169
|
return p.byteLength;
|
|
2170
2170
|
if (y.isURLSearchParams(p) && (p = p + ""), y.isString(p))
|
|
2171
2171
|
return (await c(p)).byteLength;
|
|
2172
|
-
},
|
|
2172
|
+
}, _ = async (p, b) => {
|
|
2173
2173
|
const N = y.toFiniteNumber(p.getContentLength());
|
|
2174
2174
|
return N ?? E(b);
|
|
2175
2175
|
};
|
|
@@ -2177,7 +2177,7 @@ const ao = (e) => {
|
|
|
2177
2177
|
let {
|
|
2178
2178
|
url: b,
|
|
2179
2179
|
method: N,
|
|
2180
|
-
data:
|
|
2180
|
+
data: h,
|
|
2181
2181
|
signal: S,
|
|
2182
2182
|
cancelToken: A,
|
|
2183
2183
|
timeout: O,
|
|
@@ -2198,18 +2198,18 @@ const ao = (e) => {
|
|
|
2198
2198
|
});
|
|
2199
2199
|
let k;
|
|
2200
2200
|
try {
|
|
2201
|
-
if (P &&
|
|
2201
|
+
if (P && l && N !== "get" && N !== "head" && (k = await _(W, h)) !== 0) {
|
|
2202
2202
|
let Y = new n(b, {
|
|
2203
2203
|
method: "POST",
|
|
2204
|
-
body:
|
|
2204
|
+
body: h,
|
|
2205
2205
|
duplex: "half"
|
|
2206
2206
|
}), G;
|
|
2207
|
-
if (y.isFormData(
|
|
2207
|
+
if (y.isFormData(h) && (G = Y.headers.get("content-type")) && W.setContentType(G), Y.body) {
|
|
2208
2208
|
const [ee, te] = Hr(
|
|
2209
2209
|
k,
|
|
2210
2210
|
Xt(qr(P))
|
|
2211
2211
|
);
|
|
2212
|
-
|
|
2212
|
+
h = Yr(Y.body, Gr, ee, te);
|
|
2213
2213
|
}
|
|
2214
2214
|
}
|
|
2215
2215
|
y.isString(B) || (B = B ? "include" : "omit");
|
|
@@ -2218,7 +2218,7 @@ const ao = (e) => {
|
|
|
2218
2218
|
signal: V,
|
|
2219
2219
|
method: N.toUpperCase(),
|
|
2220
2220
|
headers: W.normalize().toJSON(),
|
|
2221
|
-
body:
|
|
2221
|
+
body: h,
|
|
2222
2222
|
duplex: "half",
|
|
2223
2223
|
credentials: I ? B : void 0
|
|
2224
2224
|
};
|
|
@@ -2274,14 +2274,14 @@ const ao = (e) => {
|
|
|
2274
2274
|
}, za = /* @__PURE__ */ new Map(), co = (e) => {
|
|
2275
2275
|
let t = e && e.env || {};
|
|
2276
2276
|
const { fetch: n, Request: r, Response: s } = t, o = [r, s, n];
|
|
2277
|
-
let i = o.length, a = i, c,
|
|
2277
|
+
let i = o.length, a = i, c, l, f = za;
|
|
2278
2278
|
for (; a--; )
|
|
2279
|
-
c = o[a],
|
|
2280
|
-
return
|
|
2279
|
+
c = o[a], l = f.get(c), l === void 0 && f.set(c, l = a ? /* @__PURE__ */ new Map() : Qa(t)), f = l;
|
|
2280
|
+
return l;
|
|
2281
2281
|
};
|
|
2282
2282
|
co();
|
|
2283
2283
|
const mr = {
|
|
2284
|
-
http:
|
|
2284
|
+
http: ha,
|
|
2285
2285
|
xhr: Wa,
|
|
2286
2286
|
fetch: {
|
|
2287
2287
|
get: co
|
|
@@ -2313,7 +2313,7 @@ function ec(e, t) {
|
|
|
2313
2313
|
}
|
|
2314
2314
|
if (!s) {
|
|
2315
2315
|
const i = Object.entries(o).map(
|
|
2316
|
-
([c,
|
|
2316
|
+
([c, l]) => `adapter ${c} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
2317
2317
|
);
|
|
2318
2318
|
let a = n ? i.length > 1 ? `since :
|
|
2319
2319
|
` + i.map(Qr).join(`
|
|
@@ -2481,35 +2481,35 @@ let nt = class {
|
|
|
2481
2481
|
const N = n.transitional || dr;
|
|
2482
2482
|
N && N.legacyInterceptorReqResOrdering ? a.unshift(b.fulfilled, b.rejected) : a.push(b.fulfilled, b.rejected);
|
|
2483
2483
|
});
|
|
2484
|
-
const
|
|
2484
|
+
const l = [];
|
|
2485
2485
|
this.interceptors.response.forEach(function(b) {
|
|
2486
|
-
|
|
2486
|
+
l.push(b.fulfilled, b.rejected);
|
|
2487
2487
|
});
|
|
2488
2488
|
let f, m = 0, E;
|
|
2489
2489
|
if (!c) {
|
|
2490
2490
|
const p = [zr.bind(this), void 0];
|
|
2491
|
-
for (p.unshift(...a), p.push(...
|
|
2491
|
+
for (p.unshift(...a), p.push(...l), E = p.length, f = Promise.resolve(n); m < E; )
|
|
2492
2492
|
f = f.then(p[m++], p[m++]);
|
|
2493
2493
|
return f;
|
|
2494
2494
|
}
|
|
2495
2495
|
E = a.length;
|
|
2496
|
-
let
|
|
2496
|
+
let _ = n;
|
|
2497
2497
|
for (; m < E; ) {
|
|
2498
2498
|
const p = a[m++], b = a[m++];
|
|
2499
2499
|
try {
|
|
2500
|
-
|
|
2500
|
+
_ = p(_);
|
|
2501
2501
|
} catch (N) {
|
|
2502
2502
|
b.call(this, N);
|
|
2503
2503
|
break;
|
|
2504
2504
|
}
|
|
2505
2505
|
}
|
|
2506
2506
|
try {
|
|
2507
|
-
f = zr.call(this,
|
|
2507
|
+
f = zr.call(this, _);
|
|
2508
2508
|
} catch (p) {
|
|
2509
2509
|
return Promise.reject(p);
|
|
2510
2510
|
}
|
|
2511
|
-
for (m = 0, E =
|
|
2512
|
-
f = f.then(
|
|
2511
|
+
for (m = 0, E = l.length; m < E; )
|
|
2512
|
+
f = f.then(l[m++], l[m++]);
|
|
2513
2513
|
return f;
|
|
2514
2514
|
}
|
|
2515
2515
|
getUri(t) {
|
|
@@ -2728,7 +2728,7 @@ ce.getAdapter = lo.getAdapter;
|
|
|
2728
2728
|
ce.HttpStatusCode = Kn;
|
|
2729
2729
|
ce.default = ce;
|
|
2730
2730
|
const {
|
|
2731
|
-
Axios:
|
|
2731
|
+
Axios: _f,
|
|
2732
2732
|
AxiosError: Ef,
|
|
2733
2733
|
CanceledError: gf,
|
|
2734
2734
|
isCancel: yf,
|
|
@@ -2754,7 +2754,7 @@ function ac() {
|
|
|
2754
2754
|
(function(n, r) {
|
|
2755
2755
|
e.exports = r();
|
|
2756
2756
|
})(ic, (function() {
|
|
2757
|
-
var n = 1e3, r = 6e4, s = 36e5, o = "millisecond", i = "second", a = "minute", c = "hour",
|
|
2757
|
+
var n = 1e3, r = 6e4, s = 36e5, o = "millisecond", i = "second", a = "minute", c = "hour", l = "day", f = "week", m = "month", E = "quarter", _ = "year", p = "date", b = "Invalid Date", N = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, h = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, S = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(U) {
|
|
2758
2758
|
var k = ["th", "st", "nd", "rd"], I = U % 100;
|
|
2759
2759
|
return "[" + U + (k[(I - 20) % 10] || k[I] || k[0]) + "]";
|
|
2760
2760
|
} }, A = function(U, k, I) {
|
|
@@ -2770,7 +2770,7 @@ function ac() {
|
|
|
2770
2770
|
}, a: function(U) {
|
|
2771
2771
|
return U < 0 ? Math.ceil(U) || 0 : Math.floor(U);
|
|
2772
2772
|
}, p: function(U) {
|
|
2773
|
-
return { M: m, y:
|
|
2773
|
+
return { M: m, y: _, w: f, d: l, D: p, h: c, m: a, s: i, ms: o, Q: E }[U] || String(U || "").toLowerCase().replace(/s$/, "");
|
|
2774
2774
|
}, u: function(U) {
|
|
2775
2775
|
return U === void 0;
|
|
2776
2776
|
} }, C = "en", P = {};
|
|
@@ -2841,19 +2841,19 @@ function ac() {
|
|
|
2841
2841
|
}, k.startOf = function(I, $) {
|
|
2842
2842
|
var w = this, x = !!v.u($) || $, j = v.p(I), Y = function(Re, ue) {
|
|
2843
2843
|
var Ne = v.w(w.$u ? Date.UTC(w.$y, ue, Re) : new Date(w.$y, ue, Re), w);
|
|
2844
|
-
return x ? Ne : Ne.endOf(
|
|
2844
|
+
return x ? Ne : Ne.endOf(l);
|
|
2845
2845
|
}, G = function(Re, ue) {
|
|
2846
2846
|
return v.w(w.toDate()[Re].apply(w.toDate("s"), (x ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ue)), w);
|
|
2847
2847
|
}, ee = this.$W, te = this.$M, le = this.$D, Ue = "set" + (this.$u ? "UTC" : "");
|
|
2848
2848
|
switch (j) {
|
|
2849
|
-
case
|
|
2849
|
+
case _:
|
|
2850
2850
|
return x ? Y(1, 0) : Y(31, 11);
|
|
2851
2851
|
case m:
|
|
2852
2852
|
return x ? Y(1, te) : Y(0, te + 1);
|
|
2853
2853
|
case f:
|
|
2854
2854
|
var Le = this.$locale().weekStart || 0, De = (ee < Le ? ee + 7 : ee) - Le;
|
|
2855
2855
|
return Y(x ? le - De : le + (6 - De), te);
|
|
2856
|
-
case
|
|
2856
|
+
case l:
|
|
2857
2857
|
case p:
|
|
2858
2858
|
return G(Ue + "Hours", 0);
|
|
2859
2859
|
case c:
|
|
@@ -2868,8 +2868,8 @@ function ac() {
|
|
|
2868
2868
|
}, k.endOf = function(I) {
|
|
2869
2869
|
return this.startOf(I, !1);
|
|
2870
2870
|
}, k.$set = function(I, $) {
|
|
2871
|
-
var w, x = v.p(I), j = "set" + (this.$u ? "UTC" : ""), Y = (w = {}, w[
|
|
2872
|
-
if (x === m || x ===
|
|
2871
|
+
var w, x = v.p(I), j = "set" + (this.$u ? "UTC" : ""), Y = (w = {}, w[l] = j + "Date", w[p] = j + "Date", w[m] = j + "Month", w[_] = j + "FullYear", w[c] = j + "Hours", w[a] = j + "Minutes", w[i] = j + "Seconds", w[o] = j + "Milliseconds", w)[x], G = x === l ? this.$D + ($ - this.$W) : $;
|
|
2872
|
+
if (x === m || x === _) {
|
|
2873
2873
|
var ee = this.clone().set(p, 1);
|
|
2874
2874
|
ee.$d[Y](G), ee.init(), this.$d = ee.set(p, Math.min(this.$D, ee.daysInMonth())).$d;
|
|
2875
2875
|
} else Y && this.$d[Y](G);
|
|
@@ -2886,8 +2886,8 @@ function ac() {
|
|
|
2886
2886
|
return v.w(le.date(le.date() + Math.round(te * I)), x);
|
|
2887
2887
|
};
|
|
2888
2888
|
if (j === m) return this.set(m, this.$M + I);
|
|
2889
|
-
if (j ===
|
|
2890
|
-
if (j ===
|
|
2889
|
+
if (j === _) return this.set(_, this.$y + I);
|
|
2890
|
+
if (j === l) return Y(1);
|
|
2891
2891
|
if (j === f) return Y(7);
|
|
2892
2892
|
var G = (w = {}, w[a] = r, w[c] = s, w[i] = n, w)[j] || 1, ee = this.$d.getTime() + I * G;
|
|
2893
2893
|
return v.w(ee, this);
|
|
@@ -2904,7 +2904,7 @@ function ac() {
|
|
|
2904
2904
|
var Pe = ue < 12 ? "AM" : "PM";
|
|
2905
2905
|
return $e ? Pe.toLowerCase() : Pe;
|
|
2906
2906
|
};
|
|
2907
|
-
return x.replace(
|
|
2907
|
+
return x.replace(h, (function(ue, Ne) {
|
|
2908
2908
|
return Ne || (function($e) {
|
|
2909
2909
|
switch ($e) {
|
|
2910
2910
|
case "YY":
|
|
@@ -2966,7 +2966,7 @@ function ac() {
|
|
|
2966
2966
|
return v.m(j, G);
|
|
2967
2967
|
};
|
|
2968
2968
|
switch (Y) {
|
|
2969
|
-
case
|
|
2969
|
+
case _:
|
|
2970
2970
|
x = le() / 12;
|
|
2971
2971
|
break;
|
|
2972
2972
|
case m:
|
|
@@ -2978,7 +2978,7 @@ function ac() {
|
|
|
2978
2978
|
case f:
|
|
2979
2979
|
x = (te - ee) / 6048e5;
|
|
2980
2980
|
break;
|
|
2981
|
-
case
|
|
2981
|
+
case l:
|
|
2982
2982
|
x = (te - ee) / 864e5;
|
|
2983
2983
|
break;
|
|
2984
2984
|
case c:
|
|
@@ -3014,7 +3014,7 @@ function ac() {
|
|
|
3014
3014
|
return this.$d.toUTCString();
|
|
3015
3015
|
}, U;
|
|
3016
3016
|
})(), z = V.prototype;
|
|
3017
|
-
return R.prototype = z, [["$ms", o], ["$s", i], ["$m", a], ["$H", c], ["$W",
|
|
3017
|
+
return R.prototype = z, [["$ms", o], ["$s", i], ["$m", a], ["$H", c], ["$W", l], ["$M", m], ["$y", _], ["$D", p]].forEach((function(U) {
|
|
3018
3018
|
z[U[1]] = function(k) {
|
|
3019
3019
|
return this.$g(k, U[0], U[1]);
|
|
3020
3020
|
};
|
|
@@ -3049,7 +3049,7 @@ const mo = /* @__PURE__ */ new Map();
|
|
|
3049
3049
|
function Pf(e) {
|
|
3050
3050
|
mo.set(e.instanceId, e);
|
|
3051
3051
|
}
|
|
3052
|
-
function
|
|
3052
|
+
function ht(e) {
|
|
3053
3053
|
const t = mo.get(e);
|
|
3054
3054
|
if (!t)
|
|
3055
3055
|
throw new Error(
|
|
@@ -3058,29 +3058,29 @@ function _t(e) {
|
|
|
3058
3058
|
return t;
|
|
3059
3059
|
}
|
|
3060
3060
|
async function wf(e, t) {
|
|
3061
|
-
const n =
|
|
3061
|
+
const n = ht(e);
|
|
3062
3062
|
return qe().post(`/${n.apiEndpoint}`, t).then(({ data: r }) => r);
|
|
3063
3063
|
}
|
|
3064
3064
|
async function kf(e, t, n) {
|
|
3065
|
-
const r =
|
|
3065
|
+
const r = ht(e);
|
|
3066
3066
|
return qe().put(`/${r.apiEndpoint}/${t}`, n).then(({ data: s }) => s);
|
|
3067
3067
|
}
|
|
3068
3068
|
async function Mf(e, t, n) {
|
|
3069
|
-
const r =
|
|
3069
|
+
const r = ht(e);
|
|
3070
3070
|
return qe().get(`/${r.apiEndpoint}`, {
|
|
3071
3071
|
params: { ...t, ...n }
|
|
3072
3072
|
}).then(({ data: s }) => s);
|
|
3073
3073
|
}
|
|
3074
3074
|
async function Ff(e, t) {
|
|
3075
|
-
const n =
|
|
3075
|
+
const n = ht(e);
|
|
3076
3076
|
return qe().get(`/${n.apiEndpoint}/${t}`).then(({ data: r }) => r);
|
|
3077
3077
|
}
|
|
3078
3078
|
async function Uf(e, t) {
|
|
3079
|
-
const n =
|
|
3079
|
+
const n = ht(e);
|
|
3080
3080
|
return qe().delete(`/${n.apiEndpoint}/${t}`);
|
|
3081
3081
|
}
|
|
3082
3082
|
async function lc(e, t, n) {
|
|
3083
|
-
const r =
|
|
3083
|
+
const r = ht(e);
|
|
3084
3084
|
await qe().post(
|
|
3085
3085
|
`/${r.apiEndpoint}/validate/${t}`,
|
|
3086
3086
|
n,
|
|
@@ -3117,7 +3117,7 @@ function fc(e, t) {
|
|
|
3117
3117
|
})
|
|
3118
3118
|
);
|
|
3119
3119
|
}
|
|
3120
|
-
function
|
|
3120
|
+
function ho(e, t) {
|
|
3121
3121
|
if (e === t || typeof e == "number" && typeof t == "number" && Number.isNaN(e) && Number.isNaN(t))
|
|
3122
3122
|
return !0;
|
|
3123
3123
|
if (e == null || t == null || typeof e != "object" || typeof t != "object" || Array.isArray(e) !== Array.isArray(t))
|
|
@@ -3127,7 +3127,7 @@ function _o(e, t) {
|
|
|
3127
3127
|
return !1;
|
|
3128
3128
|
const s = e, o = t;
|
|
3129
3129
|
return n.every(
|
|
3130
|
-
(i) => Object.prototype.hasOwnProperty.call(o, i) &&
|
|
3130
|
+
(i) => Object.prototype.hasOwnProperty.call(o, i) && ho(s[i], o[i])
|
|
3131
3131
|
);
|
|
3132
3132
|
}
|
|
3133
3133
|
function Jn(e, t) {
|
|
@@ -3148,7 +3148,7 @@ function Jn(e, t) {
|
|
|
3148
3148
|
(s) => Object.prototype.hasOwnProperty.call(t, s) && Jn(e[s], t[s])
|
|
3149
3149
|
);
|
|
3150
3150
|
}
|
|
3151
|
-
return
|
|
3151
|
+
return ho(e, t);
|
|
3152
3152
|
}
|
|
3153
3153
|
function Fe(e, t) {
|
|
3154
3154
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
@@ -3169,10 +3169,10 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
3169
3169
|
});
|
|
3170
3170
|
}
|
|
3171
3171
|
const pc = /\{([0-9a-zA-Z]+)\}/g;
|
|
3172
|
-
function
|
|
3172
|
+
function hn(e, ...t) {
|
|
3173
3173
|
return t.length === 1 && J(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(pc, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
3174
3174
|
}
|
|
3175
|
-
const We = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), mc = (e, t, n) =>
|
|
3175
|
+
const We = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), mc = (e, t, n) => hc({ l: e, k: t, s: n }), hc = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), de = (e) => typeof e == "number" && isFinite(e), _o = (e) => hr(e) === "[object Date]", Qt = (e) => hr(e) === "[object RegExp]", _n = (e) => Q(e) && Object.keys(e).length === 0, pe = Object.assign, _c = Object.create, Z = (e = null) => _c(e);
|
|
3176
3176
|
let rs;
|
|
3177
3177
|
const tt = () => rs || (rs = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : Z());
|
|
3178
3178
|
function ss(e) {
|
|
@@ -3195,8 +3195,8 @@ const gc = Object.prototype.hasOwnProperty;
|
|
|
3195
3195
|
function ve(e, t) {
|
|
3196
3196
|
return gc.call(e, t);
|
|
3197
3197
|
}
|
|
3198
|
-
const ae = Array.isArray, re = (e) => typeof e == "function", F = (e) => typeof e == "string", ie = (e) => typeof e == "boolean", J = (e) => e !== null && typeof e == "object", yc = (e) => J(e) && re(e.then) && re(e.catch), Eo = Object.prototype.toString,
|
|
3199
|
-
function
|
|
3198
|
+
const ae = Array.isArray, re = (e) => typeof e == "function", F = (e) => typeof e == "string", ie = (e) => typeof e == "boolean", J = (e) => e !== null && typeof e == "object", yc = (e) => J(e) && re(e.then) && re(e.catch), Eo = Object.prototype.toString, hr = (e) => Eo.call(e), Q = (e) => hr(e) === "[object Object]", bc = (e) => e == null ? "" : ae(e) || Q(e) && e.toString === Eo ? JSON.stringify(e, null, 2) : String(e);
|
|
3199
|
+
function _r(e, t = "") {
|
|
3200
3200
|
return e.reduce((n, r, s) => s === 0 ? n + r : n + t + r, "");
|
|
3201
3201
|
}
|
|
3202
3202
|
const is = 2;
|
|
@@ -3211,16 +3211,16 @@ function Nc(e, t = 0, n = e.length) {
|
|
|
3211
3211
|
continue;
|
|
3212
3212
|
const c = a + 1;
|
|
3213
3213
|
o.push(`${c}${" ".repeat(3 - String(c).length)}| ${r[a]}`);
|
|
3214
|
-
const
|
|
3214
|
+
const l = r[a].length;
|
|
3215
3215
|
if (a === i) {
|
|
3216
|
-
const f = t - (s -
|
|
3216
|
+
const f = t - (s - l) + 1, m = Math.max(1, n > s ? l - f : n - t);
|
|
3217
3217
|
o.push(" | " + " ".repeat(f) + "^".repeat(m));
|
|
3218
3218
|
} else if (a > i) {
|
|
3219
3219
|
if (n > s) {
|
|
3220
|
-
const f = Math.max(Math.min(n - s,
|
|
3220
|
+
const f = Math.max(Math.min(n - s, l), 1);
|
|
3221
3221
|
o.push(" | " + "^".repeat(f));
|
|
3222
3222
|
}
|
|
3223
|
-
s +=
|
|
3223
|
+
s += l + 1;
|
|
3224
3224
|
}
|
|
3225
3225
|
}
|
|
3226
3226
|
break;
|
|
@@ -3306,19 +3306,19 @@ const H = {
|
|
|
3306
3306
|
// minimizer error messages
|
|
3307
3307
|
[H.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
3308
3308
|
};
|
|
3309
|
-
function
|
|
3310
|
-
const { domain: r, messages: s, args: o } = n, i = process.env.NODE_ENV !== "production" ?
|
|
3309
|
+
function _t(e, t, n = {}) {
|
|
3310
|
+
const { domain: r, messages: s, args: o } = n, i = process.env.NODE_ENV !== "production" ? hn((s || Ac)[e] || "", ...o || []) : e, a = new SyntaxError(String(i));
|
|
3311
3311
|
return a.code = e, t && (a.location = t), a.domain = r, a;
|
|
3312
3312
|
}
|
|
3313
3313
|
function vc(e) {
|
|
3314
3314
|
throw e;
|
|
3315
3315
|
}
|
|
3316
|
-
const Lc = /<\/?[\w\s="/.':;#-\/]+>/, Rc = (e) => Lc.test(e), we = " ", Cc = "\r",
|
|
3316
|
+
const Lc = /<\/?[\w\s="/.':;#-\/]+>/, Rc = (e) => Lc.test(e), we = " ", Cc = "\r", he = `
|
|
3317
3317
|
`, Ic = "\u2028", Dc = "\u2029";
|
|
3318
3318
|
function Pc(e) {
|
|
3319
3319
|
const t = e;
|
|
3320
3320
|
let n = 0, r = 1, s = 1, o = 0;
|
|
3321
|
-
const i = (g) => t[g] === Cc && t[g + 1] ===
|
|
3321
|
+
const i = (g) => t[g] === Cc && t[g + 1] === he, a = (g) => t[g] === he, c = (g) => t[g] === Dc, l = (g) => t[g] === Ic, f = (g) => i(g) || a(g) || c(g) || l(g), m = () => n, E = () => r, _ = () => s, p = () => o, b = (g) => i(g) || c(g) || l(g) ? he : t[g], N = () => b(n), h = () => b(n + o);
|
|
3322
3322
|
function S() {
|
|
3323
3323
|
return o = 0, f(n) && (r++, s = 0), i(n) && n++, n++, s++, t[n];
|
|
3324
3324
|
}
|
|
@@ -3340,11 +3340,11 @@ function Pc(e) {
|
|
|
3340
3340
|
return {
|
|
3341
3341
|
index: m,
|
|
3342
3342
|
line: E,
|
|
3343
|
-
column:
|
|
3343
|
+
column: _,
|
|
3344
3344
|
peekOffset: p,
|
|
3345
3345
|
charAt: b,
|
|
3346
3346
|
currentChar: N,
|
|
3347
|
-
currentPeek:
|
|
3347
|
+
currentPeek: h,
|
|
3348
3348
|
next: S,
|
|
3349
3349
|
peek: A,
|
|
3350
3350
|
reset: O,
|
|
@@ -3366,141 +3366,141 @@ function Mc(e, t = {}) {
|
|
|
3366
3366
|
braceNest: 0,
|
|
3367
3367
|
inLinked: !1,
|
|
3368
3368
|
text: ""
|
|
3369
|
-
},
|
|
3370
|
-
function m(
|
|
3371
|
-
const ne =
|
|
3369
|
+
}, l = () => c, { onError: f } = t;
|
|
3370
|
+
function m(u, d, L, ...M) {
|
|
3371
|
+
const ne = l();
|
|
3372
3372
|
if (d.column += L, d.offset += L, f) {
|
|
3373
|
-
const oe = n ? Qn(ne.startLoc, d) : null, K =
|
|
3373
|
+
const oe = n ? Qn(ne.startLoc, d) : null, K = _t(u, oe, {
|
|
3374
3374
|
domain: kc,
|
|
3375
3375
|
args: M
|
|
3376
3376
|
});
|
|
3377
3377
|
f(K);
|
|
3378
3378
|
}
|
|
3379
3379
|
}
|
|
3380
|
-
function E(
|
|
3381
|
-
|
|
3380
|
+
function E(u, d, L) {
|
|
3381
|
+
u.endLoc = o(), u.currentType = d;
|
|
3382
3382
|
const M = { type: d };
|
|
3383
|
-
return n && (M.loc = Qn(
|
|
3383
|
+
return n && (M.loc = Qn(u.startLoc, u.endLoc)), L != null && (M.value = L), M;
|
|
3384
3384
|
}
|
|
3385
|
-
const
|
|
3386
|
-
|
|
3385
|
+
const _ = (u) => E(
|
|
3386
|
+
u,
|
|
3387
3387
|
13
|
|
3388
3388
|
/* TokenTypes.EOF */
|
|
3389
3389
|
);
|
|
3390
|
-
function p(
|
|
3391
|
-
return
|
|
3390
|
+
function p(u, d) {
|
|
3391
|
+
return u.currentChar() === d ? (u.next(), d) : (m(H.EXPECTED_TOKEN, o(), 0, d), "");
|
|
3392
3392
|
}
|
|
3393
|
-
function b(
|
|
3393
|
+
function b(u) {
|
|
3394
3394
|
let d = "";
|
|
3395
|
-
for (;
|
|
3396
|
-
d +=
|
|
3395
|
+
for (; u.currentPeek() === we || u.currentPeek() === he; )
|
|
3396
|
+
d += u.currentPeek(), u.peek();
|
|
3397
3397
|
return d;
|
|
3398
3398
|
}
|
|
3399
|
-
function N(
|
|
3400
|
-
const d = b(
|
|
3401
|
-
return
|
|
3399
|
+
function N(u) {
|
|
3400
|
+
const d = b(u);
|
|
3401
|
+
return u.skipToPeek(), d;
|
|
3402
3402
|
}
|
|
3403
|
-
function
|
|
3404
|
-
if (
|
|
3403
|
+
function h(u) {
|
|
3404
|
+
if (u === xe)
|
|
3405
3405
|
return !1;
|
|
3406
|
-
const d =
|
|
3406
|
+
const d = u.charCodeAt(0);
|
|
3407
3407
|
return d >= 97 && d <= 122 || // a-z
|
|
3408
3408
|
d >= 65 && d <= 90 || // A-Z
|
|
3409
3409
|
d === 95;
|
|
3410
3410
|
}
|
|
3411
|
-
function S(
|
|
3412
|
-
if (
|
|
3411
|
+
function S(u) {
|
|
3412
|
+
if (u === xe)
|
|
3413
3413
|
return !1;
|
|
3414
|
-
const d =
|
|
3414
|
+
const d = u.charCodeAt(0);
|
|
3415
3415
|
return d >= 48 && d <= 57;
|
|
3416
3416
|
}
|
|
3417
|
-
function A(
|
|
3417
|
+
function A(u, d) {
|
|
3418
3418
|
const { currentType: L } = d;
|
|
3419
3419
|
if (L !== 2)
|
|
3420
3420
|
return !1;
|
|
3421
|
-
b(
|
|
3422
|
-
const M =
|
|
3423
|
-
return
|
|
3421
|
+
b(u);
|
|
3422
|
+
const M = h(u.currentPeek());
|
|
3423
|
+
return u.resetPeek(), M;
|
|
3424
3424
|
}
|
|
3425
|
-
function O(
|
|
3425
|
+
function O(u, d) {
|
|
3426
3426
|
const { currentType: L } = d;
|
|
3427
3427
|
if (L !== 2)
|
|
3428
3428
|
return !1;
|
|
3429
|
-
b(
|
|
3430
|
-
const M =
|
|
3431
|
-
return
|
|
3429
|
+
b(u);
|
|
3430
|
+
const M = u.currentPeek() === "-" ? u.peek() : u.currentPeek(), ne = S(M);
|
|
3431
|
+
return u.resetPeek(), ne;
|
|
3432
3432
|
}
|
|
3433
|
-
function C(
|
|
3433
|
+
function C(u, d) {
|
|
3434
3434
|
const { currentType: L } = d;
|
|
3435
3435
|
if (L !== 2)
|
|
3436
3436
|
return !1;
|
|
3437
|
-
b(
|
|
3438
|
-
const M =
|
|
3439
|
-
return
|
|
3437
|
+
b(u);
|
|
3438
|
+
const M = u.currentPeek() === as;
|
|
3439
|
+
return u.resetPeek(), M;
|
|
3440
3440
|
}
|
|
3441
|
-
function P(
|
|
3441
|
+
function P(u, d) {
|
|
3442
3442
|
const { currentType: L } = d;
|
|
3443
3443
|
if (L !== 7)
|
|
3444
3444
|
return !1;
|
|
3445
|
-
b(
|
|
3446
|
-
const M =
|
|
3447
|
-
return
|
|
3445
|
+
b(u);
|
|
3446
|
+
const M = u.currentPeek() === ".";
|
|
3447
|
+
return u.resetPeek(), M;
|
|
3448
3448
|
}
|
|
3449
|
-
function g(
|
|
3449
|
+
function g(u, d) {
|
|
3450
3450
|
const { currentType: L } = d;
|
|
3451
3451
|
if (L !== 8)
|
|
3452
3452
|
return !1;
|
|
3453
|
-
b(
|
|
3454
|
-
const M =
|
|
3455
|
-
return
|
|
3453
|
+
b(u);
|
|
3454
|
+
const M = h(u.currentPeek());
|
|
3455
|
+
return u.resetPeek(), M;
|
|
3456
3456
|
}
|
|
3457
|
-
function W(
|
|
3457
|
+
function W(u, d) {
|
|
3458
3458
|
const { currentType: L } = d;
|
|
3459
3459
|
if (!(L === 7 || L === 11))
|
|
3460
3460
|
return !1;
|
|
3461
|
-
b(
|
|
3462
|
-
const M =
|
|
3463
|
-
return
|
|
3461
|
+
b(u);
|
|
3462
|
+
const M = u.currentPeek() === ":";
|
|
3463
|
+
return u.resetPeek(), M;
|
|
3464
3464
|
}
|
|
3465
|
-
function B(
|
|
3465
|
+
function B(u, d) {
|
|
3466
3466
|
const { currentType: L } = d;
|
|
3467
3467
|
if (L !== 9)
|
|
3468
3468
|
return !1;
|
|
3469
3469
|
const M = () => {
|
|
3470
|
-
const oe =
|
|
3471
|
-
return oe === "{" ?
|
|
3470
|
+
const oe = u.currentPeek();
|
|
3471
|
+
return oe === "{" ? h(u.peek()) : oe === "@" || oe === "|" || oe === ":" || oe === "." || oe === we || !oe ? !1 : oe === he ? (u.peek(), M()) : v(u, !1);
|
|
3472
3472
|
}, ne = M();
|
|
3473
|
-
return
|
|
3473
|
+
return u.resetPeek(), ne;
|
|
3474
3474
|
}
|
|
3475
|
-
function R(
|
|
3476
|
-
b(
|
|
3477
|
-
const d =
|
|
3478
|
-
return
|
|
3475
|
+
function R(u) {
|
|
3476
|
+
b(u);
|
|
3477
|
+
const d = u.currentPeek() === "|";
|
|
3478
|
+
return u.resetPeek(), d;
|
|
3479
3479
|
}
|
|
3480
|
-
function v(
|
|
3480
|
+
function v(u, d = !0) {
|
|
3481
3481
|
const L = (ne = !1, oe = "") => {
|
|
3482
|
-
const K =
|
|
3483
|
-
return K === "{" || K === "@" || !K ? ne : K === "|" ? !(oe === we || oe ===
|
|
3482
|
+
const K = u.currentPeek();
|
|
3483
|
+
return K === "{" || K === "@" || !K ? ne : K === "|" ? !(oe === we || oe === he) : K === we ? (u.peek(), L(!0, we)) : K === he ? (u.peek(), L(!0, he)) : !0;
|
|
3484
3484
|
}, M = L();
|
|
3485
|
-
return d &&
|
|
3485
|
+
return d && u.resetPeek(), M;
|
|
3486
3486
|
}
|
|
3487
|
-
function V(
|
|
3488
|
-
const L =
|
|
3489
|
-
return L === xe ? xe : d(L) ? (
|
|
3487
|
+
function V(u, d) {
|
|
3488
|
+
const L = u.currentChar();
|
|
3489
|
+
return L === xe ? xe : d(L) ? (u.next(), L) : null;
|
|
3490
3490
|
}
|
|
3491
|
-
function z(
|
|
3492
|
-
const d =
|
|
3491
|
+
function z(u) {
|
|
3492
|
+
const d = u.charCodeAt(0);
|
|
3493
3493
|
return d >= 97 && d <= 122 || // a-z
|
|
3494
3494
|
d >= 65 && d <= 90 || // A-Z
|
|
3495
3495
|
d >= 48 && d <= 57 || // 0-9
|
|
3496
3496
|
d === 95 || // _
|
|
3497
3497
|
d === 36;
|
|
3498
3498
|
}
|
|
3499
|
-
function U(
|
|
3500
|
-
return V(
|
|
3499
|
+
function U(u) {
|
|
3500
|
+
return V(u, z);
|
|
3501
3501
|
}
|
|
3502
|
-
function k(
|
|
3503
|
-
const d =
|
|
3502
|
+
function k(u) {
|
|
3503
|
+
const d = u.charCodeAt(0);
|
|
3504
3504
|
return d >= 97 && d <= 122 || // a-z
|
|
3505
3505
|
d >= 65 && d <= 90 || // A-Z
|
|
3506
3506
|
d >= 48 && d <= 57 || // 0-9
|
|
@@ -3508,244 +3508,244 @@ function Mc(e, t = {}) {
|
|
|
3508
3508
|
d === 36 || // $
|
|
3509
3509
|
d === 45;
|
|
3510
3510
|
}
|
|
3511
|
-
function I(
|
|
3512
|
-
return V(
|
|
3511
|
+
function I(u) {
|
|
3512
|
+
return V(u, k);
|
|
3513
3513
|
}
|
|
3514
|
-
function $(
|
|
3515
|
-
const d =
|
|
3514
|
+
function $(u) {
|
|
3515
|
+
const d = u.charCodeAt(0);
|
|
3516
3516
|
return d >= 48 && d <= 57;
|
|
3517
3517
|
}
|
|
3518
|
-
function w(
|
|
3519
|
-
return V(
|
|
3518
|
+
function w(u) {
|
|
3519
|
+
return V(u, $);
|
|
3520
3520
|
}
|
|
3521
|
-
function x(
|
|
3522
|
-
const d =
|
|
3521
|
+
function x(u) {
|
|
3522
|
+
const d = u.charCodeAt(0);
|
|
3523
3523
|
return d >= 48 && d <= 57 || // 0-9
|
|
3524
3524
|
d >= 65 && d <= 70 || // A-F
|
|
3525
3525
|
d >= 97 && d <= 102;
|
|
3526
3526
|
}
|
|
3527
|
-
function j(
|
|
3528
|
-
return V(
|
|
3527
|
+
function j(u) {
|
|
3528
|
+
return V(u, x);
|
|
3529
3529
|
}
|
|
3530
|
-
function Y(
|
|
3530
|
+
function Y(u) {
|
|
3531
3531
|
let d = "", L = "";
|
|
3532
|
-
for (; d = w(
|
|
3532
|
+
for (; d = w(u); )
|
|
3533
3533
|
L += d;
|
|
3534
3534
|
return L;
|
|
3535
3535
|
}
|
|
3536
|
-
function G(
|
|
3536
|
+
function G(u) {
|
|
3537
3537
|
let d = "";
|
|
3538
3538
|
for (; ; ) {
|
|
3539
|
-
const L =
|
|
3539
|
+
const L = u.currentChar();
|
|
3540
3540
|
if (L === "\\") {
|
|
3541
|
-
const M =
|
|
3542
|
-
M === "{" || M === "}" || M === "@" || M === "|" || M === "\\" ? (d += L + M,
|
|
3541
|
+
const M = u.peek();
|
|
3542
|
+
M === "{" || M === "}" || M === "@" || M === "|" || M === "\\" ? (d += L + M, u.next(), u.next()) : (u.resetPeek(), d += L, u.next());
|
|
3543
3543
|
} else {
|
|
3544
3544
|
if (L === "{" || L === "}" || L === "@" || L === "|" || !L)
|
|
3545
3545
|
break;
|
|
3546
|
-
if (L === we || L ===
|
|
3547
|
-
if (v(
|
|
3548
|
-
d += L,
|
|
3546
|
+
if (L === we || L === he)
|
|
3547
|
+
if (v(u))
|
|
3548
|
+
d += L, u.next();
|
|
3549
3549
|
else {
|
|
3550
|
-
if (R(
|
|
3550
|
+
if (R(u))
|
|
3551
3551
|
break;
|
|
3552
|
-
d += L,
|
|
3552
|
+
d += L, u.next();
|
|
3553
3553
|
}
|
|
3554
3554
|
else
|
|
3555
|
-
d += L,
|
|
3555
|
+
d += L, u.next();
|
|
3556
3556
|
}
|
|
3557
3557
|
}
|
|
3558
3558
|
return d;
|
|
3559
3559
|
}
|
|
3560
|
-
function ee(
|
|
3561
|
-
N(
|
|
3560
|
+
function ee(u) {
|
|
3561
|
+
N(u);
|
|
3562
3562
|
let d = "", L = "";
|
|
3563
|
-
for (; d = I(
|
|
3563
|
+
for (; d = I(u); )
|
|
3564
3564
|
L += d;
|
|
3565
|
-
const M =
|
|
3566
|
-
if (M && M !== "}" && M !== xe && M !== we && M !==
|
|
3567
|
-
const ne = ue(
|
|
3565
|
+
const M = u.currentChar();
|
|
3566
|
+
if (M && M !== "}" && M !== xe && M !== we && M !== he && M !== " ") {
|
|
3567
|
+
const ne = ue(u);
|
|
3568
3568
|
return m(H.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, L + ne), L + ne;
|
|
3569
3569
|
}
|
|
3570
|
-
return
|
|
3570
|
+
return u.currentChar() === xe && m(H.UNTERMINATED_CLOSING_BRACE, o(), 0), L;
|
|
3571
3571
|
}
|
|
3572
|
-
function te(
|
|
3573
|
-
N(
|
|
3572
|
+
function te(u) {
|
|
3573
|
+
N(u);
|
|
3574
3574
|
let d = "";
|
|
3575
|
-
return
|
|
3575
|
+
return u.currentChar() === "-" ? (u.next(), d += `-${Y(u)}`) : d += Y(u), u.currentChar() === xe && m(H.UNTERMINATED_CLOSING_BRACE, o(), 0), d;
|
|
3576
3576
|
}
|
|
3577
|
-
function le(
|
|
3578
|
-
return
|
|
3577
|
+
function le(u) {
|
|
3578
|
+
return u !== as && u !== he;
|
|
3579
3579
|
}
|
|
3580
|
-
function Ue(
|
|
3581
|
-
N(
|
|
3580
|
+
function Ue(u) {
|
|
3581
|
+
N(u), p(u, "'");
|
|
3582
3582
|
let d = "", L = "";
|
|
3583
|
-
for (; d = V(
|
|
3584
|
-
d === "\\" ? L += Le(
|
|
3585
|
-
const M =
|
|
3586
|
-
return M ===
|
|
3583
|
+
for (; d = V(u, le); )
|
|
3584
|
+
d === "\\" ? L += Le(u) : L += d;
|
|
3585
|
+
const M = u.currentChar();
|
|
3586
|
+
return M === he || M === xe ? (m(H.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, o(), 0), M === he && (u.next(), p(u, "'")), L) : (p(u, "'"), L);
|
|
3587
3587
|
}
|
|
3588
|
-
function Le(
|
|
3589
|
-
const d =
|
|
3588
|
+
function Le(u) {
|
|
3589
|
+
const d = u.currentChar();
|
|
3590
3590
|
switch (d) {
|
|
3591
3591
|
case "\\":
|
|
3592
3592
|
case "'":
|
|
3593
|
-
return
|
|
3593
|
+
return u.next(), `\\${d}`;
|
|
3594
3594
|
case "u":
|
|
3595
|
-
return De(
|
|
3595
|
+
return De(u, d, 4);
|
|
3596
3596
|
case "U":
|
|
3597
|
-
return De(
|
|
3597
|
+
return De(u, d, 6);
|
|
3598
3598
|
default:
|
|
3599
3599
|
return m(H.UNKNOWN_ESCAPE_SEQUENCE, o(), 0, d), "";
|
|
3600
3600
|
}
|
|
3601
3601
|
}
|
|
3602
|
-
function De(
|
|
3603
|
-
p(
|
|
3602
|
+
function De(u, d, L) {
|
|
3603
|
+
p(u, d);
|
|
3604
3604
|
let M = "";
|
|
3605
3605
|
for (let ne = 0; ne < L; ne++) {
|
|
3606
|
-
const oe = j(
|
|
3606
|
+
const oe = j(u);
|
|
3607
3607
|
if (!oe) {
|
|
3608
|
-
m(H.INVALID_UNICODE_ESCAPE_SEQUENCE, o(), 0, `\\${d}${M}${
|
|
3608
|
+
m(H.INVALID_UNICODE_ESCAPE_SEQUENCE, o(), 0, `\\${d}${M}${u.currentChar()}`);
|
|
3609
3609
|
break;
|
|
3610
3610
|
}
|
|
3611
3611
|
M += oe;
|
|
3612
3612
|
}
|
|
3613
3613
|
return `\\${d}${M}`;
|
|
3614
3614
|
}
|
|
3615
|
-
function Re(
|
|
3616
|
-
return
|
|
3615
|
+
function Re(u) {
|
|
3616
|
+
return u !== "{" && u !== "}" && u !== we && u !== he;
|
|
3617
3617
|
}
|
|
3618
|
-
function ue(
|
|
3619
|
-
N(
|
|
3618
|
+
function ue(u) {
|
|
3619
|
+
N(u);
|
|
3620
3620
|
let d = "", L = "";
|
|
3621
|
-
for (; d = V(
|
|
3621
|
+
for (; d = V(u, Re); )
|
|
3622
3622
|
L += d;
|
|
3623
3623
|
return L;
|
|
3624
3624
|
}
|
|
3625
|
-
function Ne(
|
|
3625
|
+
function Ne(u) {
|
|
3626
3626
|
let d = "", L = "";
|
|
3627
|
-
for (; d = U(
|
|
3627
|
+
for (; d = U(u); )
|
|
3628
3628
|
L += d;
|
|
3629
3629
|
return L;
|
|
3630
3630
|
}
|
|
3631
|
-
function $e(
|
|
3631
|
+
function $e(u) {
|
|
3632
3632
|
const d = (L) => {
|
|
3633
|
-
const M =
|
|
3634
|
-
return M === "{" || M === "@" || M === "|" || M === "(" || M === ")" || !M || M === we ? L : (L += M,
|
|
3633
|
+
const M = u.currentChar();
|
|
3634
|
+
return M === "{" || M === "@" || M === "|" || M === "(" || M === ")" || !M || M === we ? L : (L += M, u.next(), d(L));
|
|
3635
3635
|
};
|
|
3636
3636
|
return d("");
|
|
3637
3637
|
}
|
|
3638
|
-
function Pe(
|
|
3639
|
-
N(
|
|
3638
|
+
function Pe(u) {
|
|
3639
|
+
N(u);
|
|
3640
3640
|
const d = p(
|
|
3641
|
-
|
|
3641
|
+
u,
|
|
3642
3642
|
"|"
|
|
3643
3643
|
/* TokenChars.Pipe */
|
|
3644
3644
|
);
|
|
3645
|
-
return N(
|
|
3645
|
+
return N(u), d;
|
|
3646
3646
|
}
|
|
3647
|
-
function Et(
|
|
3647
|
+
function Et(u, d) {
|
|
3648
3648
|
let L = null;
|
|
3649
|
-
switch (
|
|
3649
|
+
switch (u.currentChar()) {
|
|
3650
3650
|
case "{":
|
|
3651
|
-
return d.braceNest >= 1 && m(H.NOT_ALLOW_NEST_PLACEHOLDER, o(), 0),
|
|
3651
|
+
return d.braceNest >= 1 && m(H.NOT_ALLOW_NEST_PLACEHOLDER, o(), 0), u.next(), L = E(
|
|
3652
3652
|
d,
|
|
3653
3653
|
2,
|
|
3654
3654
|
"{"
|
|
3655
3655
|
/* TokenChars.BraceLeft */
|
|
3656
|
-
), N(
|
|
3656
|
+
), N(u), d.braceNest++, L;
|
|
3657
3657
|
case "}":
|
|
3658
|
-
return d.braceNest > 0 && d.currentType === 2 && m(H.EMPTY_PLACEHOLDER, o(), 0),
|
|
3658
|
+
return d.braceNest > 0 && d.currentType === 2 && m(H.EMPTY_PLACEHOLDER, o(), 0), u.next(), L = E(
|
|
3659
3659
|
d,
|
|
3660
3660
|
3,
|
|
3661
3661
|
"}"
|
|
3662
3662
|
/* TokenChars.BraceRight */
|
|
3663
|
-
), d.braceNest--, d.braceNest > 0 && N(
|
|
3663
|
+
), d.braceNest--, d.braceNest > 0 && N(u), d.inLinked && d.braceNest === 0 && (d.inLinked = !1), L;
|
|
3664
3664
|
case "@":
|
|
3665
|
-
return d.braceNest > 0 && m(H.UNTERMINATED_CLOSING_BRACE, o(), 0), L = Xe(
|
|
3665
|
+
return d.braceNest > 0 && m(H.UNTERMINATED_CLOSING_BRACE, o(), 0), L = Xe(u, d) || _(d), d.braceNest = 0, L;
|
|
3666
3666
|
default: {
|
|
3667
3667
|
let ne = !0, oe = !0, K = !0;
|
|
3668
|
-
if (R(
|
|
3669
|
-
return d.braceNest > 0 && m(H.UNTERMINATED_CLOSING_BRACE, o(), 0), L = E(d, 1, Pe(
|
|
3668
|
+
if (R(u))
|
|
3669
|
+
return d.braceNest > 0 && m(H.UNTERMINATED_CLOSING_BRACE, o(), 0), L = E(d, 1, Pe(u)), d.braceNest = 0, d.inLinked = !1, L;
|
|
3670
3670
|
if (d.braceNest > 0 && (d.currentType === 4 || d.currentType === 5 || d.currentType === 6))
|
|
3671
|
-
return m(H.UNTERMINATED_CLOSING_BRACE, o(), 0), d.braceNest = 0, gt(
|
|
3672
|
-
if (ne = A(
|
|
3673
|
-
return L = E(d, 4, ee(
|
|
3674
|
-
if (oe = O(
|
|
3675
|
-
return L = E(d, 5, te(
|
|
3676
|
-
if (K = C(
|
|
3677
|
-
return L = E(d, 6, Ue(
|
|
3671
|
+
return m(H.UNTERMINATED_CLOSING_BRACE, o(), 0), d.braceNest = 0, gt(u, d);
|
|
3672
|
+
if (ne = A(u, d))
|
|
3673
|
+
return L = E(d, 4, ee(u)), N(u), L;
|
|
3674
|
+
if (oe = O(u, d))
|
|
3675
|
+
return L = E(d, 5, te(u)), N(u), L;
|
|
3676
|
+
if (K = C(u, d))
|
|
3677
|
+
return L = E(d, 6, Ue(u)), N(u), L;
|
|
3678
3678
|
if (!ne && !oe && !K)
|
|
3679
|
-
return L = E(d, 12, ue(
|
|
3679
|
+
return L = E(d, 12, ue(u)), m(H.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, L.value), N(u), L;
|
|
3680
3680
|
break;
|
|
3681
3681
|
}
|
|
3682
3682
|
}
|
|
3683
3683
|
return L;
|
|
3684
3684
|
}
|
|
3685
|
-
function Xe(
|
|
3685
|
+
function Xe(u, d) {
|
|
3686
3686
|
const { currentType: L } = d;
|
|
3687
3687
|
let M = null;
|
|
3688
|
-
const ne =
|
|
3689
|
-
switch ((L === 7 || L === 8 || L === 11 || L === 9) && (ne ===
|
|
3688
|
+
const ne = u.currentChar();
|
|
3689
|
+
switch ((L === 7 || L === 8 || L === 11 || L === 9) && (ne === he || ne === we) && m(H.INVALID_LINKED_FORMAT, o(), 0), ne) {
|
|
3690
3690
|
case "@":
|
|
3691
|
-
return
|
|
3691
|
+
return u.next(), M = E(
|
|
3692
3692
|
d,
|
|
3693
3693
|
7,
|
|
3694
3694
|
"@"
|
|
3695
3695
|
/* TokenChars.LinkedAlias */
|
|
3696
3696
|
), d.inLinked = !0, M;
|
|
3697
3697
|
case ".":
|
|
3698
|
-
return N(
|
|
3698
|
+
return N(u), u.next(), E(
|
|
3699
3699
|
d,
|
|
3700
3700
|
8,
|
|
3701
3701
|
"."
|
|
3702
3702
|
/* TokenChars.LinkedDot */
|
|
3703
3703
|
);
|
|
3704
3704
|
case ":":
|
|
3705
|
-
return N(
|
|
3705
|
+
return N(u), u.next(), E(
|
|
3706
3706
|
d,
|
|
3707
3707
|
9,
|
|
3708
3708
|
":"
|
|
3709
3709
|
/* TokenChars.LinkedDelimiter */
|
|
3710
3710
|
);
|
|
3711
3711
|
default:
|
|
3712
|
-
return R(
|
|
3712
|
+
return R(u) ? (M = E(d, 1, Pe(u)), d.braceNest = 0, d.inLinked = !1, M) : P(u, d) || W(u, d) ? (N(u), Xe(u, d)) : g(u, d) ? (N(u), E(d, 11, Ne(u))) : B(u, d) ? (N(u), ne === "{" ? Et(u, d) || M : E(d, 10, $e(u))) : (L === 7 && m(H.INVALID_LINKED_FORMAT, o(), 0), d.braceNest = 0, d.inLinked = !1, gt(u, d));
|
|
3713
3713
|
}
|
|
3714
3714
|
}
|
|
3715
|
-
function gt(
|
|
3715
|
+
function gt(u, d) {
|
|
3716
3716
|
let L = {
|
|
3717
3717
|
type: 13
|
|
3718
3718
|
/* TokenTypes.EOF */
|
|
3719
3719
|
};
|
|
3720
3720
|
if (d.braceNest > 0)
|
|
3721
|
-
return Et(
|
|
3721
|
+
return Et(u, d) || _(d);
|
|
3722
3722
|
if (d.inLinked)
|
|
3723
|
-
return Xe(
|
|
3724
|
-
switch (
|
|
3723
|
+
return Xe(u, d) || _(d);
|
|
3724
|
+
switch (u.currentChar()) {
|
|
3725
3725
|
case "{":
|
|
3726
|
-
return Et(
|
|
3726
|
+
return Et(u, d) || _(d);
|
|
3727
3727
|
case "}":
|
|
3728
|
-
return m(H.UNBALANCED_CLOSING_BRACE, o(), 0),
|
|
3728
|
+
return m(H.UNBALANCED_CLOSING_BRACE, o(), 0), u.next(), E(
|
|
3729
3729
|
d,
|
|
3730
3730
|
3,
|
|
3731
3731
|
"}"
|
|
3732
3732
|
/* TokenChars.BraceRight */
|
|
3733
3733
|
);
|
|
3734
3734
|
case "@":
|
|
3735
|
-
return Xe(
|
|
3735
|
+
return Xe(u, d) || _(d);
|
|
3736
3736
|
default: {
|
|
3737
|
-
if (R(
|
|
3738
|
-
return L = E(d, 1, Pe(
|
|
3739
|
-
if (v(
|
|
3740
|
-
return E(d, 0, G(
|
|
3737
|
+
if (R(u))
|
|
3738
|
+
return L = E(d, 1, Pe(u)), d.braceNest = 0, d.inLinked = !1, L;
|
|
3739
|
+
if (v(u))
|
|
3740
|
+
return E(d, 0, G(u));
|
|
3741
3741
|
break;
|
|
3742
3742
|
}
|
|
3743
3743
|
}
|
|
3744
3744
|
return L;
|
|
3745
3745
|
}
|
|
3746
3746
|
function bn() {
|
|
3747
|
-
const { currentType:
|
|
3748
|
-
return c.lastType =
|
|
3747
|
+
const { currentType: u, offset: d, startLoc: L, endLoc: M } = c;
|
|
3748
|
+
return c.lastType = u, c.lastOffset = d, c.lastStartLoc = L, c.lastEndLoc = M, c.offset = s(), c.startLoc = o(), r.currentChar() === xe ? E(
|
|
3749
3749
|
c,
|
|
3750
3750
|
13
|
|
3751
3751
|
/* TokenTypes.EOF */
|
|
@@ -3755,7 +3755,7 @@ function Mc(e, t = {}) {
|
|
|
3755
3755
|
nextToken: bn,
|
|
3756
3756
|
currentOffset: s,
|
|
3757
3757
|
currentPosition: o,
|
|
3758
|
-
context:
|
|
3758
|
+
context: l
|
|
3759
3759
|
};
|
|
3760
3760
|
}
|
|
3761
3761
|
const Fc = "parser", Uc = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g, $c = /\\([\\@{}|])/g;
|
|
@@ -3777,132 +3777,132 @@ function Vc(e, t, n) {
|
|
|
3777
3777
|
}
|
|
3778
3778
|
function jc(e = {}) {
|
|
3779
3779
|
const t = e.location !== !1, { onError: n } = e;
|
|
3780
|
-
function r(
|
|
3781
|
-
const P =
|
|
3780
|
+
function r(h, S, A, O, ...C) {
|
|
3781
|
+
const P = h.currentPosition();
|
|
3782
3782
|
if (P.offset += O, P.column += O, n) {
|
|
3783
|
-
const g = t ? Qn(A, P) : null, W =
|
|
3783
|
+
const g = t ? Qn(A, P) : null, W = _t(S, g, {
|
|
3784
3784
|
domain: Fc,
|
|
3785
3785
|
args: C
|
|
3786
3786
|
});
|
|
3787
3787
|
n(W);
|
|
3788
3788
|
}
|
|
3789
3789
|
}
|
|
3790
|
-
function s(
|
|
3791
|
-
const O = { type:
|
|
3790
|
+
function s(h, S, A) {
|
|
3791
|
+
const O = { type: h };
|
|
3792
3792
|
return t && (O.start = S, O.end = S, O.loc = { start: A, end: A }), O;
|
|
3793
3793
|
}
|
|
3794
|
-
function o(
|
|
3795
|
-
t && (
|
|
3794
|
+
function o(h, S, A, O) {
|
|
3795
|
+
t && (h.end = S, h.loc && (h.loc.end = A));
|
|
3796
3796
|
}
|
|
3797
|
-
function i(
|
|
3798
|
-
const A =
|
|
3799
|
-
return O.value = S.replace($c, xc), o(O,
|
|
3797
|
+
function i(h, S) {
|
|
3798
|
+
const A = h.context(), O = s(3, A.offset, A.startLoc);
|
|
3799
|
+
return O.value = S.replace($c, xc), o(O, h.currentOffset(), h.currentPosition()), O;
|
|
3800
3800
|
}
|
|
3801
|
-
function a(
|
|
3802
|
-
const A =
|
|
3803
|
-
return P.index = parseInt(S, 10),
|
|
3801
|
+
function a(h, S) {
|
|
3802
|
+
const A = h.context(), { lastOffset: O, lastStartLoc: C } = A, P = s(5, O, C);
|
|
3803
|
+
return P.index = parseInt(S, 10), h.nextToken(), o(P, h.currentOffset(), h.currentPosition()), P;
|
|
3804
3804
|
}
|
|
3805
|
-
function c(
|
|
3806
|
-
const A =
|
|
3807
|
-
return P.key = S,
|
|
3805
|
+
function c(h, S) {
|
|
3806
|
+
const A = h.context(), { lastOffset: O, lastStartLoc: C } = A, P = s(4, O, C);
|
|
3807
|
+
return P.key = S, h.nextToken(), o(P, h.currentOffset(), h.currentPosition()), P;
|
|
3808
3808
|
}
|
|
3809
|
-
function
|
|
3810
|
-
const A =
|
|
3811
|
-
return P.value = S.replace(Uc, Vc),
|
|
3809
|
+
function l(h, S) {
|
|
3810
|
+
const A = h.context(), { lastOffset: O, lastStartLoc: C } = A, P = s(9, O, C);
|
|
3811
|
+
return P.value = S.replace(Uc, Vc), h.nextToken(), o(P, h.currentOffset(), h.currentPosition()), P;
|
|
3812
3812
|
}
|
|
3813
|
-
function f(
|
|
3814
|
-
const S =
|
|
3815
|
-
return S.type !== 11 ? (r(
|
|
3813
|
+
function f(h) {
|
|
3814
|
+
const S = h.nextToken(), A = h.context(), { lastOffset: O, lastStartLoc: C } = A, P = s(8, O, C);
|
|
3815
|
+
return S.type !== 11 ? (r(h, H.UNEXPECTED_EMPTY_LINKED_MODIFIER, A.lastStartLoc, 0), P.value = "", o(P, O, C), {
|
|
3816
3816
|
nextConsumeToken: S,
|
|
3817
3817
|
node: P
|
|
3818
|
-
}) : (S.value == null && r(
|
|
3818
|
+
}) : (S.value == null && r(h, H.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, ke(S)), P.value = S.value || "", o(P, h.currentOffset(), h.currentPosition()), {
|
|
3819
3819
|
node: P
|
|
3820
3820
|
});
|
|
3821
3821
|
}
|
|
3822
|
-
function m(
|
|
3823
|
-
const A =
|
|
3824
|
-
return O.value = S, o(O,
|
|
3822
|
+
function m(h, S) {
|
|
3823
|
+
const A = h.context(), O = s(7, A.offset, A.startLoc);
|
|
3824
|
+
return O.value = S, o(O, h.currentOffset(), h.currentPosition()), O;
|
|
3825
3825
|
}
|
|
3826
|
-
function E(
|
|
3827
|
-
const S =
|
|
3828
|
-
let O =
|
|
3826
|
+
function E(h) {
|
|
3827
|
+
const S = h.context(), A = s(6, S.offset, S.startLoc);
|
|
3828
|
+
let O = h.nextToken();
|
|
3829
3829
|
if (O.type === 8) {
|
|
3830
|
-
const C = f(
|
|
3831
|
-
A.modifier = C.node, O = C.nextConsumeToken ||
|
|
3830
|
+
const C = f(h);
|
|
3831
|
+
A.modifier = C.node, O = C.nextConsumeToken || h.nextToken();
|
|
3832
3832
|
}
|
|
3833
|
-
switch (O.type !== 9 && r(
|
|
3833
|
+
switch (O.type !== 9 && r(h, H.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, ke(O)), O = h.nextToken(), O.type === 2 && (O = h.nextToken()), O.type) {
|
|
3834
3834
|
case 10:
|
|
3835
|
-
O.value == null && r(
|
|
3835
|
+
O.value == null && r(h, H.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, ke(O)), A.key = m(h, O.value || "");
|
|
3836
3836
|
break;
|
|
3837
3837
|
case 4:
|
|
3838
|
-
O.value == null && r(
|
|
3838
|
+
O.value == null && r(h, H.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, ke(O)), A.key = c(h, O.value || "");
|
|
3839
3839
|
break;
|
|
3840
3840
|
case 5:
|
|
3841
|
-
O.value == null && r(
|
|
3841
|
+
O.value == null && r(h, H.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, ke(O)), A.key = a(h, O.value || "");
|
|
3842
3842
|
break;
|
|
3843
3843
|
case 6:
|
|
3844
|
-
O.value == null && r(
|
|
3844
|
+
O.value == null && r(h, H.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, ke(O)), A.key = l(h, O.value || "");
|
|
3845
3845
|
break;
|
|
3846
3846
|
default: {
|
|
3847
|
-
r(
|
|
3848
|
-
const C =
|
|
3847
|
+
r(h, H.UNEXPECTED_EMPTY_LINKED_KEY, S.lastStartLoc, 0);
|
|
3848
|
+
const C = h.context(), P = s(7, C.offset, C.startLoc);
|
|
3849
3849
|
return P.value = "", o(P, C.offset, C.startLoc), A.key = P, o(A, C.offset, C.startLoc), {
|
|
3850
3850
|
nextConsumeToken: O,
|
|
3851
3851
|
node: A
|
|
3852
3852
|
};
|
|
3853
3853
|
}
|
|
3854
3854
|
}
|
|
3855
|
-
return o(A,
|
|
3855
|
+
return o(A, h.currentOffset(), h.currentPosition()), {
|
|
3856
3856
|
node: A
|
|
3857
3857
|
};
|
|
3858
3858
|
}
|
|
3859
|
-
function h
|
|
3860
|
-
const S =
|
|
3859
|
+
function _(h) {
|
|
3860
|
+
const S = h.context(), A = S.currentType === 1 ? h.currentOffset() : S.offset, O = S.currentType === 1 ? S.endLoc : S.startLoc, C = s(2, A, O);
|
|
3861
3861
|
C.items = [];
|
|
3862
3862
|
let P = null;
|
|
3863
3863
|
do {
|
|
3864
|
-
const B = P ||
|
|
3864
|
+
const B = P || h.nextToken();
|
|
3865
3865
|
switch (P = null, B.type) {
|
|
3866
3866
|
case 0:
|
|
3867
|
-
B.value == null && r(
|
|
3867
|
+
B.value == null && r(h, H.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, ke(B)), C.items.push(i(h, B.value || ""));
|
|
3868
3868
|
break;
|
|
3869
3869
|
case 5:
|
|
3870
|
-
B.value == null && r(
|
|
3870
|
+
B.value == null && r(h, H.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, ke(B)), C.items.push(a(h, B.value || ""));
|
|
3871
3871
|
break;
|
|
3872
3872
|
case 4:
|
|
3873
|
-
B.value == null && r(
|
|
3873
|
+
B.value == null && r(h, H.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, ke(B)), C.items.push(c(h, B.value || ""));
|
|
3874
3874
|
break;
|
|
3875
3875
|
case 6:
|
|
3876
|
-
B.value == null && r(
|
|
3876
|
+
B.value == null && r(h, H.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, ke(B)), C.items.push(l(h, B.value || ""));
|
|
3877
3877
|
break;
|
|
3878
3878
|
case 7: {
|
|
3879
|
-
const R = E(
|
|
3879
|
+
const R = E(h);
|
|
3880
3880
|
C.items.push(R.node), P = R.nextConsumeToken || null;
|
|
3881
3881
|
break;
|
|
3882
3882
|
}
|
|
3883
3883
|
}
|
|
3884
3884
|
} while (S.currentType !== 13 && S.currentType !== 1);
|
|
3885
|
-
const g = S.currentType === 1 ? S.lastOffset :
|
|
3885
|
+
const g = S.currentType === 1 ? S.lastOffset : h.currentOffset(), W = S.currentType === 1 ? S.lastEndLoc : h.currentPosition();
|
|
3886
3886
|
return o(C, g, W), C;
|
|
3887
3887
|
}
|
|
3888
|
-
function p(
|
|
3889
|
-
const C =
|
|
3888
|
+
function p(h, S, A, O) {
|
|
3889
|
+
const C = h.context();
|
|
3890
3890
|
let P = O.items.length === 0;
|
|
3891
3891
|
const g = s(1, S, A);
|
|
3892
3892
|
g.cases = [], g.cases.push(O);
|
|
3893
3893
|
do {
|
|
3894
|
-
const W = h
|
|
3894
|
+
const W = _(h);
|
|
3895
3895
|
P || (P = W.items.length === 0), g.cases.push(W);
|
|
3896
3896
|
} while (C.currentType !== 13);
|
|
3897
|
-
return P && r(
|
|
3897
|
+
return P && r(h, H.MUST_HAVE_MESSAGES_IN_PLURAL, A, 0), o(g, h.currentOffset(), h.currentPosition()), g;
|
|
3898
3898
|
}
|
|
3899
|
-
function b(
|
|
3900
|
-
const S =
|
|
3901
|
-
return S.currentType === 13 ? C : p(
|
|
3899
|
+
function b(h) {
|
|
3900
|
+
const S = h.context(), { offset: A, startLoc: O } = S, C = _(h);
|
|
3901
|
+
return S.currentType === 13 ? C : p(h, A, O, C);
|
|
3902
3902
|
}
|
|
3903
|
-
function N(
|
|
3904
|
-
const S = Mc(
|
|
3905
|
-
return t && O.loc && (O.loc.source =
|
|
3903
|
+
function N(h) {
|
|
3904
|
+
const S = Mc(h, pe({}, e)), A = S.context(), O = s(0, A.offset, A.startLoc);
|
|
3905
|
+
return t && O.loc && (O.loc.source = h), O.body = b(S), e.onCacheKey && (O.cacheKey = e.onCacheKey(h)), A.currentType !== 13 && r(S, H.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, h[A.offset] || ""), o(O, S.currentOffset(), S.currentPosition()), O;
|
|
3906
3906
|
}
|
|
3907
3907
|
return { parse: N };
|
|
3908
3908
|
}
|
|
@@ -3990,7 +3990,7 @@ function ls(e) {
|
|
|
3990
3990
|
t.push(r.value);
|
|
3991
3991
|
}
|
|
3992
3992
|
if (t.length === e.items.length) {
|
|
3993
|
-
e.static =
|
|
3993
|
+
e.static = _r(t);
|
|
3994
3994
|
for (let n = 0; n < e.items.length; n++) {
|
|
3995
3995
|
const r = e.items[n];
|
|
3996
3996
|
(r.type === 3 || r.type === 9) && delete r.value;
|
|
@@ -4045,7 +4045,7 @@ function ct(e) {
|
|
|
4045
4045
|
}
|
|
4046
4046
|
default:
|
|
4047
4047
|
if (process.env.NODE_ENV !== "production")
|
|
4048
|
-
throw
|
|
4048
|
+
throw _t(H.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
4049
4049
|
domain: Wc,
|
|
4050
4050
|
args: [e.type]
|
|
4051
4051
|
});
|
|
@@ -4070,20 +4070,20 @@ function Gc(e, t) {
|
|
|
4070
4070
|
function c(b, N) {
|
|
4071
4071
|
i.code += b;
|
|
4072
4072
|
}
|
|
4073
|
-
function
|
|
4074
|
-
const
|
|
4075
|
-
c(s ?
|
|
4073
|
+
function l(b, N = !0) {
|
|
4074
|
+
const h = N ? r : "";
|
|
4075
|
+
c(s ? h + " ".repeat(b) : h);
|
|
4076
4076
|
}
|
|
4077
4077
|
function f(b = !0) {
|
|
4078
4078
|
const N = ++i.indentLevel;
|
|
4079
|
-
b &&
|
|
4079
|
+
b && l(N);
|
|
4080
4080
|
}
|
|
4081
4081
|
function m(b = !0) {
|
|
4082
4082
|
const N = --i.indentLevel;
|
|
4083
|
-
b &&
|
|
4083
|
+
b && l(N);
|
|
4084
4084
|
}
|
|
4085
4085
|
function E() {
|
|
4086
|
-
|
|
4086
|
+
l(i.indentLevel);
|
|
4087
4087
|
}
|
|
4088
4088
|
return {
|
|
4089
4089
|
context: a,
|
|
@@ -4176,7 +4176,7 @@ function dt(e, t) {
|
|
|
4176
4176
|
break;
|
|
4177
4177
|
default:
|
|
4178
4178
|
if (process.env.NODE_ENV !== "production")
|
|
4179
|
-
throw
|
|
4179
|
+
throw _t(H.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
4180
4180
|
domain: Yc,
|
|
4181
4181
|
args: [t.type]
|
|
4182
4182
|
});
|
|
@@ -4191,12 +4191,12 @@ const zc = (e, t = {}) => {
|
|
|
4191
4191
|
breakLineCode: s,
|
|
4192
4192
|
needIndent: o
|
|
4193
4193
|
});
|
|
4194
|
-
a.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), a.indent(o), i.length > 0 && (a.push(`const { ${
|
|
4195
|
-
const { code: c, map:
|
|
4194
|
+
a.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), a.indent(o), i.length > 0 && (a.push(`const { ${_r(i.map((f) => `${f}: _${f}`), ", ")} } = ctx`), a.newline()), a.push("return "), dt(a, e), a.deindent(o), a.push("}"), delete e.helpers;
|
|
4195
|
+
const { code: c, map: l } = a.context();
|
|
4196
4196
|
return {
|
|
4197
4197
|
ast: e,
|
|
4198
4198
|
code: c,
|
|
4199
|
-
map:
|
|
4199
|
+
map: l ? l.toJSON() : void 0
|
|
4200
4200
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
4201
4201
|
};
|
|
4202
4202
|
};
|
|
@@ -4337,7 +4337,7 @@ function zn(e, t) {
|
|
|
4337
4337
|
}
|
|
4338
4338
|
const cl = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
4339
4339
|
function ll(e, t) {
|
|
4340
|
-
t && Rc(e) && Fe(
|
|
4340
|
+
t && Rc(e) && Fe(hn(cl, { source: e }));
|
|
4341
4341
|
}
|
|
4342
4342
|
const ul = (e) => e;
|
|
4343
4343
|
let Ut = Z();
|
|
@@ -4385,11 +4385,11 @@ function ml(e, t, n) {
|
|
|
4385
4385
|
meta: n
|
|
4386
4386
|
});
|
|
4387
4387
|
}
|
|
4388
|
-
const
|
|
4389
|
-
function
|
|
4388
|
+
const hl = /* @__PURE__ */ _l("function:translate");
|
|
4389
|
+
function _l(e) {
|
|
4390
4390
|
return (t) => At && At.emit(e, t);
|
|
4391
4391
|
}
|
|
4392
|
-
const
|
|
4392
|
+
const _e = {
|
|
4393
4393
|
INVALID_ARGUMENT: Tc,
|
|
4394
4394
|
// 17
|
|
4395
4395
|
INVALID_DATE_ARGUMENT: 18,
|
|
@@ -4400,16 +4400,16 @@ const he = {
|
|
|
4400
4400
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
4401
4401
|
}, El = 24;
|
|
4402
4402
|
function Ve(e) {
|
|
4403
|
-
return
|
|
4403
|
+
return _t(e, null, process.env.NODE_ENV !== "production" ? { messages: gl } : void 0);
|
|
4404
4404
|
}
|
|
4405
4405
|
const gl = {
|
|
4406
|
-
[
|
|
4407
|
-
[
|
|
4408
|
-
[
|
|
4409
|
-
[
|
|
4410
|
-
[
|
|
4411
|
-
[
|
|
4412
|
-
[
|
|
4406
|
+
[_e.INVALID_ARGUMENT]: "Invalid arguments",
|
|
4407
|
+
[_e.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
4408
|
+
[_e.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
4409
|
+
[_e.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
|
|
4410
|
+
[_e.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
|
|
4411
|
+
[_e.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
|
|
4412
|
+
[_e.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
|
|
4413
4413
|
};
|
|
4414
4414
|
function yr(e, t) {
|
|
4415
4415
|
return t.locale != null ? fs(t.locale) : fs(e.locale);
|
|
@@ -4424,12 +4424,12 @@ function fs(e) {
|
|
|
4424
4424
|
if (e.constructor.name === "Function") {
|
|
4425
4425
|
const t = e();
|
|
4426
4426
|
if (yc(t))
|
|
4427
|
-
throw Ve(
|
|
4427
|
+
throw Ve(_e.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
4428
4428
|
return Dn = t;
|
|
4429
4429
|
} else
|
|
4430
|
-
throw Ve(
|
|
4430
|
+
throw Ve(_e.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
4431
4431
|
} else
|
|
4432
|
-
throw Ve(
|
|
4432
|
+
throw Ve(_e.NOT_SUPPORT_LOCALE_TYPE);
|
|
4433
4433
|
}
|
|
4434
4434
|
function yl(e, t, n) {
|
|
4435
4435
|
return [.../* @__PURE__ */ new Set([
|
|
@@ -4689,7 +4689,7 @@ function vl(e) {
|
|
|
4689
4689
|
}
|
|
4690
4690
|
function Ll(e) {
|
|
4691
4691
|
const t = [];
|
|
4692
|
-
let n = -1, r = 0, s = 0, o, i, a, c,
|
|
4692
|
+
let n = -1, r = 0, s = 0, o, i, a, c, l, f, m;
|
|
4693
4693
|
const E = [];
|
|
4694
4694
|
E[
|
|
4695
4695
|
0
|
|
@@ -4727,7 +4727,7 @@ function Ll(e) {
|
|
|
4727
4727
|
]();
|
|
4728
4728
|
}
|
|
4729
4729
|
};
|
|
4730
|
-
function
|
|
4730
|
+
function _() {
|
|
4731
4731
|
const p = e[n + 1];
|
|
4732
4732
|
if (r === 5 && p === "'" || r === 6 && p === '"')
|
|
4733
4733
|
return n++, a = "\\" + p, E[
|
|
@@ -4736,8 +4736,8 @@ function Ll(e) {
|
|
|
4736
4736
|
](), !0;
|
|
4737
4737
|
}
|
|
4738
4738
|
for (; r !== null; )
|
|
4739
|
-
if (n++, o = e[n], !(o === "\\" &&
|
|
4740
|
-
if (c = Al(o), m = Ke[r],
|
|
4739
|
+
if (n++, o = e[n], !(o === "\\" && _())) {
|
|
4740
|
+
if (c = Al(o), m = Ke[r], l = m[c] || m.l || 8, l === 8 || (r = l[0], l[1] !== void 0 && (f = E[l[1]], f && (a = o, f() === !1))))
|
|
4741
4741
|
return;
|
|
4742
4742
|
if (r === 7)
|
|
4743
4743
|
return t;
|
|
@@ -4788,7 +4788,7 @@ const fe = {
|
|
|
4788
4788
|
[fe.INVALID_DATE_ARGUMENT]: "Invalid argument for datetime formatting: expected a Date, number, or ISO string but received '{value}'."
|
|
4789
4789
|
};
|
|
4790
4790
|
function Be(e, ...t) {
|
|
4791
|
-
return
|
|
4791
|
+
return hn(Il[e], ...t);
|
|
4792
4792
|
}
|
|
4793
4793
|
const Dl = "11.3.0", En = -1, zt = "en-US", pt = "", ms = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
4794
4794
|
function Pl() {
|
|
@@ -4815,30 +4815,30 @@ const Fl = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
|
4815
4815
|
Io = e;
|
|
4816
4816
|
}, Ul = /* @__NO_SIDE_EFFECTS__ */ () => Io;
|
|
4817
4817
|
let Do = null;
|
|
4818
|
-
const
|
|
4818
|
+
const hs = (e) => {
|
|
4819
4819
|
Do = e;
|
|
4820
4820
|
}, $l = () => Do;
|
|
4821
|
-
let
|
|
4821
|
+
let _s = 0;
|
|
4822
4822
|
function xl(e = {}) {
|
|
4823
|
-
const t = re(e.onWarn) ? e.onWarn : Fe, n = F(e.version) ? e.version : Dl, r = F(e.locale) || re(e.locale) ? e.locale : zt, s = re(r) ? zt : r, o = ae(e.fallbackLocale) || Q(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, i = Q(e.messages) ? e.messages : Pn(s), a = Q(e.datetimeFormats) ? e.datetimeFormats : Pn(s), c = Q(e.numberFormats) ? e.numberFormats : Pn(s),
|
|
4823
|
+
const t = re(e.onWarn) ? e.onWarn : Fe, n = F(e.version) ? e.version : Dl, r = F(e.locale) || re(e.locale) ? e.locale : zt, s = re(r) ? zt : r, o = ae(e.fallbackLocale) || Q(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, i = Q(e.messages) ? e.messages : Pn(s), a = Q(e.datetimeFormats) ? e.datetimeFormats : Pn(s), c = Q(e.numberFormats) ? e.numberFormats : Pn(s), l = pe(Z(), e.modifiers, Pl()), f = e.pluralRules || Z(), m = re(e.missing) ? e.missing : null, E = ie(e.missingWarn) || Qt(e.missingWarn) ? e.missingWarn : !0, _ = ie(e.fallbackWarn) || Qt(e.fallbackWarn) ? e.fallbackWarn : !0, p = !!e.fallbackFormat, b = !!e.unresolving, N = re(e.postTranslation) ? e.postTranslation : null, h = Q(e.processor) ? e.processor : null, S = ie(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, A = !!e.escapeParameter, O = re(e.messageCompiler) ? e.messageCompiler : Lo;
|
|
4824
4824
|
process.env.NODE_ENV !== "production" && re(e.messageCompiler) && dc(Be(fe.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
4825
4825
|
const C = re(e.messageResolver) ? e.messageResolver : Ro || Rl, P = re(e.localeFallbacker) ? e.localeFallbacker : Co || yl, g = J(e.fallbackContext) ? e.fallbackContext : void 0, W = e, B = J(W.__datetimeFormatters) ? W.__datetimeFormatters : /* @__PURE__ */ new Map(), R = J(W.__numberFormatters) ? W.__numberFormatters : /* @__PURE__ */ new Map(), v = J(W.__meta) ? W.__meta : {};
|
|
4826
|
-
|
|
4826
|
+
_s++;
|
|
4827
4827
|
const V = {
|
|
4828
4828
|
version: n,
|
|
4829
|
-
cid:
|
|
4829
|
+
cid: _s,
|
|
4830
4830
|
locale: r,
|
|
4831
4831
|
fallbackLocale: o,
|
|
4832
4832
|
messages: i,
|
|
4833
|
-
modifiers:
|
|
4833
|
+
modifiers: l,
|
|
4834
4834
|
pluralRules: f,
|
|
4835
4835
|
missing: m,
|
|
4836
4836
|
missingWarn: E,
|
|
4837
|
-
fallbackWarn:
|
|
4837
|
+
fallbackWarn: _,
|
|
4838
4838
|
fallbackFormat: p,
|
|
4839
4839
|
unresolving: b,
|
|
4840
4840
|
postTranslation: N,
|
|
4841
|
-
processor:
|
|
4841
|
+
processor: h,
|
|
4842
4842
|
warnHtmlMessage: S,
|
|
4843
4843
|
escapeParameter: A,
|
|
4844
4844
|
messageCompiler: O,
|
|
@@ -4898,22 +4898,22 @@ function gs(e, ...t) {
|
|
|
4898
4898
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: s, onWarn: o, localeFallbacker: i } = e, { __datetimeFormatters: a } = e;
|
|
4899
4899
|
if (process.env.NODE_ENV !== "production" && !ko.dateTimeFormat)
|
|
4900
4900
|
return o(Be(fe.CANNOT_FORMAT_DATE)), pt;
|
|
4901
|
-
if (!F(t[0]) && !
|
|
4901
|
+
if (!F(t[0]) && !_o(t[0]) && !de(t[0]))
|
|
4902
4902
|
return process.env.NODE_ENV !== "production" && o(Be(fe.INVALID_DATE_ARGUMENT, {
|
|
4903
4903
|
value: String(t[0])
|
|
4904
4904
|
})), pt;
|
|
4905
|
-
const [c,
|
|
4905
|
+
const [c, l, f, m] = er(...t), E = ie(f.missingWarn) ? f.missingWarn : e.missingWarn, _ = ie(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, p = !!f.part, b = yr(e, f), N = i(
|
|
4906
4906
|
e,
|
|
4907
4907
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
4908
4908
|
s,
|
|
4909
4909
|
b
|
|
4910
4910
|
);
|
|
4911
4911
|
if (!F(c) || c === "")
|
|
4912
|
-
return new Intl.DateTimeFormat(b.replace(/!/g, ""), m).format(
|
|
4913
|
-
let
|
|
4912
|
+
return new Intl.DateTimeFormat(b.replace(/!/g, ""), m).format(l);
|
|
4913
|
+
let h = {}, S, A = null, O = b, C = null;
|
|
4914
4914
|
const P = "datetime format";
|
|
4915
4915
|
for (let B = 0; B < N.length; B++) {
|
|
4916
|
-
if (S = C = N[B], process.env.NODE_ENV !== "production" && b !== S && gn(
|
|
4916
|
+
if (S = C = N[B], process.env.NODE_ENV !== "production" && b !== S && gn(_, c) && o(Be(fe.FALLBACK_TO_DATE_FORMAT, {
|
|
4917
4917
|
key: c,
|
|
4918
4918
|
target: S
|
|
4919
4919
|
})), process.env.NODE_ENV !== "production" && b !== S) {
|
|
@@ -4926,16 +4926,16 @@ function gs(e, ...t) {
|
|
|
4926
4926
|
groupId: `${P}:${c}`
|
|
4927
4927
|
});
|
|
4928
4928
|
}
|
|
4929
|
-
if (
|
|
4929
|
+
if (h = n[S] || {}, A = h[c], Q(A))
|
|
4930
4930
|
break;
|
|
4931
4931
|
br(e, c, S, E, P), O = C;
|
|
4932
4932
|
}
|
|
4933
4933
|
if (!Q(A) || !F(S))
|
|
4934
4934
|
return r ? En : c;
|
|
4935
4935
|
let g = `${S}__${c}`;
|
|
4936
|
-
|
|
4936
|
+
_n(m) || (g = `${g}__${JSON.stringify(m)}`);
|
|
4937
4937
|
let W = a.get(g);
|
|
4938
|
-
return W || (W = new Intl.DateTimeFormat(S, pe({}, A, m)), a.set(g, W)), p ? W.formatToParts(
|
|
4938
|
+
return W || (W = new Intl.DateTimeFormat(S, pe({}, A, m)), a.set(g, W)), p ? W.formatToParts(l) : W.format(l);
|
|
4939
4939
|
}
|
|
4940
4940
|
const Mo = [
|
|
4941
4941
|
"localeMatcher",
|
|
@@ -4965,22 +4965,22 @@ function er(...e) {
|
|
|
4965
4965
|
if (F(t)) {
|
|
4966
4966
|
const c = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
4967
4967
|
if (!c)
|
|
4968
|
-
throw Ve(
|
|
4969
|
-
const
|
|
4970
|
-
a = new Date(
|
|
4968
|
+
throw Ve(_e.INVALID_ISO_DATE_ARGUMENT);
|
|
4969
|
+
const l = c[3] ? c[3].trim().startsWith("T") ? `${c[1].trim()}${c[3].trim()}` : `${c[1].trim()}T${c[3].trim()}` : c[1].trim();
|
|
4970
|
+
a = new Date(l);
|
|
4971
4971
|
try {
|
|
4972
4972
|
a.toISOString();
|
|
4973
4973
|
} catch {
|
|
4974
|
-
throw Ve(
|
|
4974
|
+
throw Ve(_e.INVALID_ISO_DATE_ARGUMENT);
|
|
4975
4975
|
}
|
|
4976
|
-
} else if (
|
|
4976
|
+
} else if (_o(t)) {
|
|
4977
4977
|
if (isNaN(t.getTime()))
|
|
4978
|
-
throw Ve(
|
|
4978
|
+
throw Ve(_e.INVALID_DATE_ARGUMENT);
|
|
4979
4979
|
a = t;
|
|
4980
4980
|
} else if (de(t))
|
|
4981
4981
|
a = t;
|
|
4982
4982
|
else
|
|
4983
|
-
throw Ve(
|
|
4983
|
+
throw Ve(_e.INVALID_ARGUMENT);
|
|
4984
4984
|
return F(n) ? o.key = n : Q(n) && Object.keys(n).forEach((c) => {
|
|
4985
4985
|
Mo.includes(c) ? i[c] = n[c] : o[c] = n[c];
|
|
4986
4986
|
}), F(r) ? o.locale = r : Q(r) && (i = r), Q(s) && (i = s), [o.key || "", a, o, i];
|
|
@@ -5000,18 +5000,18 @@ function bs(e, ...t) {
|
|
|
5000
5000
|
return process.env.NODE_ENV !== "production" && o(Be(fe.INVALID_NUMBER_ARGUMENT, {
|
|
5001
5001
|
value: String(t[0])
|
|
5002
5002
|
})), pt;
|
|
5003
|
-
const [c,
|
|
5003
|
+
const [c, l, f, m] = tr(...t), E = ie(f.missingWarn) ? f.missingWarn : e.missingWarn, _ = ie(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, p = !!f.part, b = yr(e, f), N = i(
|
|
5004
5004
|
e,
|
|
5005
5005
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
5006
5006
|
s,
|
|
5007
5007
|
b
|
|
5008
5008
|
);
|
|
5009
5009
|
if (!F(c) || c === "")
|
|
5010
|
-
return new Intl.NumberFormat(b.replace(/!/g, ""), m).format(
|
|
5011
|
-
let
|
|
5010
|
+
return new Intl.NumberFormat(b.replace(/!/g, ""), m).format(l);
|
|
5011
|
+
let h = {}, S, A = null, O = b, C = null;
|
|
5012
5012
|
const P = "number format";
|
|
5013
5013
|
for (let B = 0; B < N.length; B++) {
|
|
5014
|
-
if (S = C = N[B], process.env.NODE_ENV !== "production" && b !== S && gn(
|
|
5014
|
+
if (S = C = N[B], process.env.NODE_ENV !== "production" && b !== S && gn(_, c) && o(Be(fe.FALLBACK_TO_NUMBER_FORMAT, {
|
|
5015
5015
|
key: c,
|
|
5016
5016
|
target: S
|
|
5017
5017
|
})), process.env.NODE_ENV !== "production" && b !== S) {
|
|
@@ -5024,16 +5024,16 @@ function bs(e, ...t) {
|
|
|
5024
5024
|
groupId: `${P}:${c}`
|
|
5025
5025
|
});
|
|
5026
5026
|
}
|
|
5027
|
-
if (
|
|
5027
|
+
if (h = n[S] || {}, A = h[c], Q(A))
|
|
5028
5028
|
break;
|
|
5029
5029
|
br(e, c, S, E, P), O = C;
|
|
5030
5030
|
}
|
|
5031
5031
|
if (!Q(A) || !F(S))
|
|
5032
5032
|
return r ? En : c;
|
|
5033
5033
|
let g = `${S}__${c}`;
|
|
5034
|
-
|
|
5034
|
+
_n(m) || (g = `${g}__${JSON.stringify(m)}`);
|
|
5035
5035
|
let W = a.get(g);
|
|
5036
|
-
return W || (W = new Intl.NumberFormat(S, pe({}, A, m)), a.set(g, W)), p ? W.formatToParts(
|
|
5036
|
+
return W || (W = new Intl.NumberFormat(S, pe({}, A, m)), a.set(g, W)), p ? W.formatToParts(l) : W.format(l);
|
|
5037
5037
|
}
|
|
5038
5038
|
const Fo = [
|
|
5039
5039
|
"localeMatcher",
|
|
@@ -5061,7 +5061,7 @@ function tr(...e) {
|
|
|
5061
5061
|
const [t, n, r, s] = e, o = Z();
|
|
5062
5062
|
let i = Z();
|
|
5063
5063
|
if (!de(t))
|
|
5064
|
-
throw Ve(
|
|
5064
|
+
throw Ve(_e.INVALID_ARGUMENT);
|
|
5065
5065
|
const a = t;
|
|
5066
5066
|
return F(n) ? o.key = n : Q(n) && Object.keys(n).forEach((c) => {
|
|
5067
5067
|
Fo.includes(c) ? i[c] = n[c] : o[c] = n[c];
|
|
@@ -5074,7 +5074,7 @@ function Ns(e, t, n) {
|
|
|
5074
5074
|
r.__numberFormatters.has(o) && r.__numberFormatters.delete(o);
|
|
5075
5075
|
}
|
|
5076
5076
|
}
|
|
5077
|
-
const jl = (e) => e, Bl = (e) => "", Hl = "text", ql = (e) => e.length === 0 ? "" :
|
|
5077
|
+
const jl = (e) => e, Bl = (e) => "", Hl = "text", ql = (e) => e.length === 0 ? "" : _r(e), Wl = bc;
|
|
5078
5078
|
function wn(e, t) {
|
|
5079
5079
|
return e = Math.abs(e), t === 2 ? e === 1 ? 0 : 1 : Math.min(e, 2);
|
|
5080
5080
|
}
|
|
@@ -5083,22 +5083,22 @@ function Yl(e) {
|
|
|
5083
5083
|
return de(e.named?.count) ? e.named.count : de(e.named?.n) ? e.named.n : t;
|
|
5084
5084
|
}
|
|
5085
5085
|
function Gl(e = {}) {
|
|
5086
|
-
const t = e.locale, n = Yl(e), r = F(t) && re(e.pluralRules?.[t]) ? e.pluralRules[t] : wn, s = r === wn ? void 0 : wn, o = (
|
|
5086
|
+
const t = e.locale, n = Yl(e), r = F(t) && re(e.pluralRules?.[t]) ? e.pluralRules[t] : wn, s = r === wn ? void 0 : wn, o = (h) => h[r(n, h.length, s)], i = e.list || [], a = (h) => i[h], c = e.named || Z();
|
|
5087
5087
|
de(e.pluralIndex) && (c.count ||= e.pluralIndex, c.n ||= e.pluralIndex);
|
|
5088
|
-
const
|
|
5089
|
-
function f(
|
|
5090
|
-
const A = re(e.messages) ? e.messages(
|
|
5091
|
-
return A || (e.parent ? e.parent.message(
|
|
5088
|
+
const l = (h) => c[h];
|
|
5089
|
+
function f(h, S) {
|
|
5090
|
+
const A = re(e.messages) ? e.messages(h, !!S) : J(e.messages) ? e.messages[h] : !1;
|
|
5091
|
+
return A || (e.parent ? e.parent.message(h) : Bl);
|
|
5092
5092
|
}
|
|
5093
|
-
const m = (
|
|
5093
|
+
const m = (h) => e.modifiers ? e.modifiers[h] : jl, E = re(e.processor?.normalize) ? e.processor.normalize : ql, _ = re(e.processor?.interpolate) ? e.processor.interpolate : Wl, p = F(e.processor?.type) ? e.processor.type : Hl, N = {
|
|
5094
5094
|
list: a,
|
|
5095
|
-
named:
|
|
5095
|
+
named: l,
|
|
5096
5096
|
plural: o,
|
|
5097
|
-
linked: (
|
|
5097
|
+
linked: (h, ...S) => {
|
|
5098
5098
|
const [A, O] = S;
|
|
5099
5099
|
let C = "text", P = "";
|
|
5100
5100
|
S.length === 1 ? J(A) ? (P = A.modifier || P, C = A.type || C) : F(A) && (P = A || P) : S.length === 2 && (F(A) && (P = A || P), F(O) && (C = O || C));
|
|
5101
|
-
const g = f(
|
|
5101
|
+
const g = f(h, !0)(N), W = g === "" || g === void 0 ? h : g, B = (
|
|
5102
5102
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
5103
5103
|
C === "vnode" && ae(W) && P ? W[0] : W
|
|
5104
5104
|
);
|
|
@@ -5106,7 +5106,7 @@ function Gl(e = {}) {
|
|
|
5106
5106
|
},
|
|
5107
5107
|
message: f,
|
|
5108
5108
|
type: p,
|
|
5109
|
-
interpolate:
|
|
5109
|
+
interpolate: _,
|
|
5110
5110
|
normalize: E,
|
|
5111
5111
|
values: pe(Z(), i, c)
|
|
5112
5112
|
};
|
|
@@ -5114,14 +5114,14 @@ function Gl(e = {}) {
|
|
|
5114
5114
|
}
|
|
5115
5115
|
const Os = () => "", Ae = (e) => re(e);
|
|
5116
5116
|
function Ss(e, ...t) {
|
|
5117
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: o, fallbackLocale: i, messages: a } = e, [c,
|
|
5118
|
-
E && Kl(
|
|
5119
|
-
let [
|
|
5117
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: o, fallbackLocale: i, messages: a } = e, [c, l] = nr(...t), f = ie(l.missingWarn) ? l.missingWarn : e.missingWarn, m = ie(l.fallbackWarn) ? l.fallbackWarn : e.fallbackWarn, E = ie(l.escapeParameter) ? l.escapeParameter : e.escapeParameter, _ = !!l.resolvedMessage, p = F(l.default) || ie(l.default) ? ie(l.default) ? o ? c : () => c : l.default : n ? o ? c : () => c : null, b = n || p != null && (F(p) || re(p)), N = yr(e, l);
|
|
5118
|
+
E && Kl(l);
|
|
5119
|
+
let [h, S, A] = _ ? [
|
|
5120
5120
|
c,
|
|
5121
5121
|
N,
|
|
5122
5122
|
a[N] || Z()
|
|
5123
|
-
] : Uo(e, c, N, i, m, f), O =
|
|
5124
|
-
if (!
|
|
5123
|
+
] : Uo(e, c, N, i, m, f), O = h, C = c;
|
|
5124
|
+
if (!_ && !(F(O) || Ce(O) || Ae(O)) && b && (O = p, C = O), !_ && (!(F(O) || Ce(O) || Ae(O)) || !F(S)))
|
|
5125
5125
|
return s ? En : c;
|
|
5126
5126
|
if (process.env.NODE_ENV !== "production" && F(O) && e.messageCompiler == null)
|
|
5127
5127
|
return Fe(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`), c;
|
|
@@ -5131,7 +5131,7 @@ function Ss(e, ...t) {
|
|
|
5131
5131
|
}, W = Ae(O) ? O : $o(e, c, S, O, C, g);
|
|
5132
5132
|
if (P)
|
|
5133
5133
|
return O;
|
|
5134
|
-
const B = zl(e, S, A,
|
|
5134
|
+
const B = zl(e, S, A, l), R = Gl(B), v = Xl(e, W, R);
|
|
5135
5135
|
let V = r ? r(v, c) : v;
|
|
5136
5136
|
if (E && F(V) && (V = Ec(V)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
5137
5137
|
const z = {
|
|
@@ -5141,7 +5141,7 @@ function Ss(e, ...t) {
|
|
|
5141
5141
|
format: F(O) ? O : Ae(O) ? O.source : "",
|
|
5142
5142
|
message: V
|
|
5143
5143
|
};
|
|
5144
|
-
z.meta = pe({}, e.__meta, /* @__PURE__ */ Ul() || {}),
|
|
5144
|
+
z.meta = pe({}, e.__meta, /* @__PURE__ */ Ul() || {}), hl(z);
|
|
5145
5145
|
}
|
|
5146
5146
|
return V;
|
|
5147
5147
|
}
|
|
@@ -5151,11 +5151,11 @@ function Kl(e) {
|
|
|
5151
5151
|
});
|
|
5152
5152
|
}
|
|
5153
5153
|
function Uo(e, t, n, r, s, o) {
|
|
5154
|
-
const { messages: i, onWarn: a, messageResolver: c, localeFallbacker:
|
|
5155
|
-
let m = Z(), E,
|
|
5154
|
+
const { messages: i, onWarn: a, messageResolver: c, localeFallbacker: l } = e, f = l(e, r, n);
|
|
5155
|
+
let m = Z(), E, _ = null, p = n, b = null;
|
|
5156
5156
|
const N = "translate";
|
|
5157
|
-
for (let
|
|
5158
|
-
if (E = b = f[
|
|
5157
|
+
for (let h = 0; h < f.length; h++) {
|
|
5158
|
+
if (E = b = f[h], process.env.NODE_ENV !== "production" && n !== E && !wo(n, E) && gn(s, t) && a(Be(fe.FALLBACK_TO_TRANSLATE, {
|
|
5159
5159
|
key: t,
|
|
5160
5160
|
target: E
|
|
5161
5161
|
})), process.env.NODE_ENV !== "production" && n !== E) {
|
|
@@ -5170,17 +5170,17 @@ function Uo(e, t, n, r, s, o) {
|
|
|
5170
5170
|
}
|
|
5171
5171
|
m = i[E] || Z();
|
|
5172
5172
|
let S = null, A, O;
|
|
5173
|
-
if (process.env.NODE_ENV !== "production" && He && (S = window.performance.now(), A = "intlify-message-resolve-start", O = "intlify-message-resolve-end", be && be(A)), (
|
|
5173
|
+
if (process.env.NODE_ENV !== "production" && He && (S = window.performance.now(), A = "intlify-message-resolve-start", O = "intlify-message-resolve-end", be && be(A)), (_ = c(m, t)) === null && (_ = m[t]), process.env.NODE_ENV !== "production" && He) {
|
|
5174
5174
|
const C = window.performance.now(), P = e.__v_emitter;
|
|
5175
|
-
P && S &&
|
|
5175
|
+
P && S && _ && P.emit("message-resolve", {
|
|
5176
5176
|
type: "message-resolve",
|
|
5177
5177
|
key: t,
|
|
5178
|
-
message:
|
|
5178
|
+
message: _,
|
|
5179
5179
|
time: C - S,
|
|
5180
5180
|
groupId: `${N}:${t}`
|
|
5181
5181
|
}), A && O && be && ot && (be(O), ot("intlify message resolve", A, O));
|
|
5182
5182
|
}
|
|
5183
|
-
if (F(
|
|
5183
|
+
if (F(_) || Ce(_) || Ae(_))
|
|
5184
5184
|
break;
|
|
5185
5185
|
if (!Vl(E, f)) {
|
|
5186
5186
|
const C = br(
|
|
@@ -5191,11 +5191,11 @@ function Uo(e, t, n, r, s, o) {
|
|
|
5191
5191
|
o,
|
|
5192
5192
|
N
|
|
5193
5193
|
);
|
|
5194
|
-
C !== t && (
|
|
5194
|
+
C !== t && (_ = C);
|
|
5195
5195
|
}
|
|
5196
5196
|
p = b;
|
|
5197
5197
|
}
|
|
5198
|
-
return [
|
|
5198
|
+
return [_, E, m];
|
|
5199
5199
|
}
|
|
5200
5200
|
function $o(e, t, n, r, s, o) {
|
|
5201
5201
|
const { messageCompiler: i, warnHtmlMessage: a } = e;
|
|
@@ -5207,17 +5207,17 @@ function $o(e, t, n, r, s, o) {
|
|
|
5207
5207
|
const E = (() => r);
|
|
5208
5208
|
return E.locale = n, E.key = t, E;
|
|
5209
5209
|
}
|
|
5210
|
-
let c = null,
|
|
5211
|
-
process.env.NODE_ENV !== "production" && He && (c = window.performance.now(),
|
|
5210
|
+
let c = null, l, f;
|
|
5211
|
+
process.env.NODE_ENV !== "production" && He && (c = window.performance.now(), l = "intlify-message-compilation-start", f = "intlify-message-compilation-end", be && be(l));
|
|
5212
5212
|
const m = i(r, Jl(e, n, s, r, a, o));
|
|
5213
5213
|
if (process.env.NODE_ENV !== "production" && He) {
|
|
5214
|
-
const E = window.performance.now(),
|
|
5215
|
-
|
|
5214
|
+
const E = window.performance.now(), _ = e.__v_emitter;
|
|
5215
|
+
_ && c && _.emit("message-compilation", {
|
|
5216
5216
|
type: "message-compilation",
|
|
5217
5217
|
message: r,
|
|
5218
5218
|
time: E - c,
|
|
5219
5219
|
groupId: `translate:${t}`
|
|
5220
|
-
}),
|
|
5220
|
+
}), l && f && be && ot && (be(f), ot("intlify message compilation", l, f));
|
|
5221
5221
|
}
|
|
5222
5222
|
return m.locale = n, m.key = t, m.source = r, m;
|
|
5223
5223
|
}
|
|
@@ -5239,9 +5239,9 @@ function Xl(e, t, n) {
|
|
|
5239
5239
|
function nr(...e) {
|
|
5240
5240
|
const [t, n, r] = e, s = Z();
|
|
5241
5241
|
if (!F(t) && !de(t) && !Ae(t) && !Ce(t))
|
|
5242
|
-
throw Ve(
|
|
5242
|
+
throw Ve(_e.INVALID_ARGUMENT);
|
|
5243
5243
|
const o = de(t) ? String(t) : (Ae(t), t);
|
|
5244
|
-
return de(n) ? s.plural = n : F(n) ? s.default = n : Q(n) && !
|
|
5244
|
+
return de(n) ? s.plural = n : F(n) ? s.default = n : Q(n) && !_n(n) ? s.named = n : ae(n) && (s.list = n), de(r) ? s.plural = r : F(r) ? s.default = r : Q(r) && pe(s, r), [o, s];
|
|
5245
5245
|
}
|
|
5246
5246
|
function Jl(e, t, n, r, s, o) {
|
|
5247
5247
|
return {
|
|
@@ -5250,8 +5250,8 @@ function Jl(e, t, n, r, s, o) {
|
|
|
5250
5250
|
warnHtmlMessage: s,
|
|
5251
5251
|
onError: (i) => {
|
|
5252
5252
|
if (o && o(i), process.env.NODE_ENV !== "production") {
|
|
5253
|
-
const a = Ql(r), c = i.location && a && Nc(a, i.location.start.offset, i.location.end.offset),
|
|
5254
|
-
|
|
5253
|
+
const a = Ql(r), c = i.location && a && Nc(a, i.location.start.offset, i.location.end.offset), l = e.__v_emitter;
|
|
5254
|
+
l && a && l.emit("compile-error", {
|
|
5255
5255
|
message: a,
|
|
5256
5256
|
error: i.message,
|
|
5257
5257
|
start: i.location && i.location.start.offset,
|
|
@@ -5274,27 +5274,27 @@ function Ql(e) {
|
|
|
5274
5274
|
return e.loc.source;
|
|
5275
5275
|
}
|
|
5276
5276
|
function zl(e, t, n, r) {
|
|
5277
|
-
const { modifiers: s, pluralRules: o, messageResolver: i, fallbackLocale: a, fallbackWarn: c, missingWarn:
|
|
5277
|
+
const { modifiers: s, pluralRules: o, messageResolver: i, fallbackLocale: a, fallbackWarn: c, missingWarn: l, fallbackContext: f } = e, E = {
|
|
5278
5278
|
locale: t,
|
|
5279
5279
|
modifiers: s,
|
|
5280
5280
|
pluralRules: o,
|
|
5281
|
-
messages: (
|
|
5282
|
-
let b = i(n,
|
|
5281
|
+
messages: (_, p) => {
|
|
5282
|
+
let b = i(n, _);
|
|
5283
5283
|
if (b == null && (f || p)) {
|
|
5284
5284
|
const [, , N] = Uo(
|
|
5285
5285
|
f || e,
|
|
5286
5286
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
5287
|
-
|
|
5287
|
+
_,
|
|
5288
5288
|
t,
|
|
5289
5289
|
a,
|
|
5290
5290
|
c,
|
|
5291
|
-
|
|
5291
|
+
l
|
|
5292
5292
|
);
|
|
5293
|
-
b = i(N,
|
|
5293
|
+
b = i(N, _);
|
|
5294
5294
|
}
|
|
5295
5295
|
if (F(b) || Ce(b)) {
|
|
5296
5296
|
let N = !1;
|
|
5297
|
-
const S = $o(e,
|
|
5297
|
+
const S = $o(e, _, t, b, _, () => {
|
|
5298
5298
|
N = !0;
|
|
5299
5299
|
});
|
|
5300
5300
|
return N ? Os : S;
|
|
@@ -5331,7 +5331,7 @@ const me = {
|
|
|
5331
5331
|
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
5332
5332
|
};
|
|
5333
5333
|
function vt(e, ...t) {
|
|
5334
|
-
return
|
|
5334
|
+
return _t(e, null, process.env.NODE_ENV !== "production" ? { messages: tu, args: t } : void 0);
|
|
5335
5335
|
}
|
|
5336
5336
|
const tu = {
|
|
5337
5337
|
[me.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
@@ -5376,7 +5376,7 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
5376
5376
|
[Me.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."
|
|
5377
5377
|
};
|
|
5378
5378
|
function Zt(e, ...t) {
|
|
5379
|
-
return
|
|
5379
|
+
return hn(ru[e], ...t);
|
|
5380
5380
|
}
|
|
5381
5381
|
function Lt(e) {
|
|
5382
5382
|
if (!J(e) || Ce(e))
|
|
@@ -5410,8 +5410,8 @@ function Vo(e, t) {
|
|
|
5410
5410
|
const { messages: n, __i18n: r, messageResolver: s, flatJson: o } = t, i = Q(n) ? n : ae(r) ? Z() : { [e]: Z() };
|
|
5411
5411
|
if (ae(r) && r.forEach((a) => {
|
|
5412
5412
|
if ("locale" in a && "resource" in a) {
|
|
5413
|
-
const { locale: c, resource:
|
|
5414
|
-
c ? (i[c] = i[c] || Z(), Ht(
|
|
5413
|
+
const { locale: c, resource: l } = a;
|
|
5414
|
+
c ? (i[c] = i[c] || Z(), Ht(l, i[c])) : Ht(l, i);
|
|
5415
5415
|
} else
|
|
5416
5416
|
F(a) && Ht(JSON.parse(a), i);
|
|
5417
5417
|
}), s == null && o)
|
|
@@ -5473,22 +5473,22 @@ function au(e = {}) {
|
|
|
5473
5473
|
), c = o(
|
|
5474
5474
|
// prettier-ignore
|
|
5475
5475
|
t && i ? t.fallbackLocale.value : F(e.fallbackLocale) || ae(e.fallbackLocale) || Q(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a.value
|
|
5476
|
-
),
|
|
5477
|
-
let E = t ? t.missingWarn : ie(e.missingWarn) || Qt(e.missingWarn) ? e.missingWarn : !0,
|
|
5476
|
+
), l = o(Vo(a.value, e)), f = o(Q(e.datetimeFormats) ? e.datetimeFormats : { [a.value]: {} }), m = o(Q(e.numberFormats) ? e.numberFormats : { [a.value]: {} });
|
|
5477
|
+
let E = t ? t.missingWarn : ie(e.missingWarn) || Qt(e.missingWarn) ? e.missingWarn : !0, _ = t ? t.fallbackWarn : ie(e.fallbackWarn) || Qt(e.fallbackWarn) ? e.fallbackWarn : !0, p = t ? t.fallbackRoot : ie(e.fallbackRoot) ? e.fallbackRoot : !0, b = !!e.fallbackFormat, N = re(e.missing) ? e.missing : null, h = re(e.missing) ? Rs(e.missing) : null, S = re(e.postTranslation) ? e.postTranslation : null, A = t ? t.warnHtmlMessage : ie(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, O = !!e.escapeParameter;
|
|
5478
5478
|
const C = t ? t.modifiers : Q(e.modifiers) ? e.modifiers : {};
|
|
5479
5479
|
let P = e.pluralRules || t && t.pluralRules, g;
|
|
5480
5480
|
g = (() => {
|
|
5481
|
-
r &&
|
|
5481
|
+
r && hs(null);
|
|
5482
5482
|
const T = {
|
|
5483
5483
|
version: Zl,
|
|
5484
5484
|
locale: a.value,
|
|
5485
5485
|
fallbackLocale: c.value,
|
|
5486
|
-
messages:
|
|
5486
|
+
messages: l.value,
|
|
5487
5487
|
modifiers: C,
|
|
5488
5488
|
pluralRules: P,
|
|
5489
|
-
missing:
|
|
5489
|
+
missing: h === null ? void 0 : h,
|
|
5490
5490
|
missingWarn: E,
|
|
5491
|
-
fallbackWarn:
|
|
5491
|
+
fallbackWarn: _,
|
|
5492
5492
|
fallbackFormat: b,
|
|
5493
5493
|
unresolving: !0,
|
|
5494
5494
|
postTranslation: S === null ? void 0 : S,
|
|
@@ -5500,13 +5500,13 @@ function au(e = {}) {
|
|
|
5500
5500
|
};
|
|
5501
5501
|
T.datetimeFormats = f.value, T.numberFormats = m.value, T.__datetimeFormatters = Q(g) ? g.__datetimeFormatters : void 0, T.__numberFormatters = Q(g) ? g.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (T.__v_emitter = Q(g) ? g.__v_emitter : void 0);
|
|
5502
5502
|
const D = xl(T);
|
|
5503
|
-
return r &&
|
|
5503
|
+
return r && hs(D), D;
|
|
5504
5504
|
})(), bt(g, a.value, c.value);
|
|
5505
5505
|
function B() {
|
|
5506
5506
|
return [
|
|
5507
5507
|
a.value,
|
|
5508
5508
|
c.value,
|
|
5509
|
-
|
|
5509
|
+
l.value,
|
|
5510
5510
|
f.value,
|
|
5511
5511
|
m.value
|
|
5512
5512
|
];
|
|
@@ -5521,7 +5521,7 @@ function au(e = {}) {
|
|
|
5521
5521
|
set: (T) => {
|
|
5522
5522
|
g.fallbackLocale = T, c.value = T, bt(g, a.value, T);
|
|
5523
5523
|
}
|
|
5524
|
-
}), V = Ye(() =>
|
|
5524
|
+
}), V = Ye(() => l.value), z = /* @__PURE__ */ Ye(() => f.value), U = /* @__PURE__ */ Ye(() => m.value);
|
|
5525
5525
|
function k() {
|
|
5526
5526
|
return re(S) ? S : null;
|
|
5527
5527
|
}
|
|
@@ -5532,7 +5532,7 @@ function au(e = {}) {
|
|
|
5532
5532
|
return N;
|
|
5533
5533
|
}
|
|
5534
5534
|
function w(T) {
|
|
5535
|
-
T !== null && (
|
|
5535
|
+
T !== null && (h = Rs(T)), N = T, g.missing = h;
|
|
5536
5536
|
}
|
|
5537
5537
|
function x(T, D) {
|
|
5538
5538
|
return T !== "translate" || !D.resolvedMessage;
|
|
@@ -5548,7 +5548,7 @@ function au(e = {}) {
|
|
|
5548
5548
|
if (X !== "translate exists" && // for not `te` (e.g `t`)
|
|
5549
5549
|
de(Oe) && Oe === En || X === "translate exists" && !Oe) {
|
|
5550
5550
|
const [ze, Wo] = D();
|
|
5551
|
-
if (process.env.NODE_ENV !== "production" && t && F(ze) && x(X, Wo) && (p && (gn(
|
|
5551
|
+
if (process.env.NODE_ENV !== "production" && t && F(ze) && x(X, Wo) && (p && (gn(_, ze) || Po(E, ze)) && Fe(Zt(Me.FALLBACK_TO_ROOT, {
|
|
5552
5552
|
key: ze,
|
|
5553
5553
|
type: X
|
|
5554
5554
|
})), process.env.NODE_ENV !== "production")) {
|
|
@@ -5629,7 +5629,7 @@ function au(e = {}) {
|
|
|
5629
5629
|
let D = null;
|
|
5630
5630
|
const X = Zn(g, c.value, a.value);
|
|
5631
5631
|
for (let se = 0; se < X.length; se++) {
|
|
5632
|
-
const Je =
|
|
5632
|
+
const Je = l.value[X[se]] || {}, Qe = g.messageResolver(Je, T);
|
|
5633
5633
|
if (Qe != null) {
|
|
5634
5634
|
D = Qe;
|
|
5635
5635
|
break;
|
|
@@ -5642,7 +5642,7 @@ function au(e = {}) {
|
|
|
5642
5642
|
return D ?? (t ? t.tm(T) || {} : {});
|
|
5643
5643
|
}
|
|
5644
5644
|
function Xe(T) {
|
|
5645
|
-
return
|
|
5645
|
+
return l.value[T] || {};
|
|
5646
5646
|
}
|
|
5647
5647
|
function gt(T, D) {
|
|
5648
5648
|
if (s) {
|
|
@@ -5651,17 +5651,17 @@ function au(e = {}) {
|
|
|
5651
5651
|
ve(X, se) && Lt(X[se]);
|
|
5652
5652
|
D = X[T];
|
|
5653
5653
|
}
|
|
5654
|
-
|
|
5654
|
+
l.value[T] = D, g.messages = l.value;
|
|
5655
5655
|
}
|
|
5656
5656
|
function bn(T, D) {
|
|
5657
|
-
|
|
5657
|
+
l.value[T] = l.value[T] || {};
|
|
5658
5658
|
const X = { [T]: D };
|
|
5659
5659
|
if (s)
|
|
5660
5660
|
for (const se in X)
|
|
5661
5661
|
ve(X, se) && Lt(X[se]);
|
|
5662
|
-
D = X[T], Ht(D,
|
|
5662
|
+
D = X[T], Ht(D, l.value[T]), g.messages = l.value;
|
|
5663
5663
|
}
|
|
5664
|
-
function
|
|
5664
|
+
function u(T) {
|
|
5665
5665
|
return f.value[T] || {};
|
|
5666
5666
|
}
|
|
5667
5667
|
function d(T, D) {
|
|
@@ -5695,7 +5695,7 @@ function au(e = {}) {
|
|
|
5695
5695
|
i = T, T && t && (a.value = t.locale.value, c.value = t.fallbackLocale.value, bt(g, a.value, c.value));
|
|
5696
5696
|
},
|
|
5697
5697
|
get availableLocales() {
|
|
5698
|
-
return Object.keys(
|
|
5698
|
+
return Object.keys(l.value).sort();
|
|
5699
5699
|
},
|
|
5700
5700
|
messages: V,
|
|
5701
5701
|
get modifiers() {
|
|
@@ -5714,10 +5714,10 @@ function au(e = {}) {
|
|
|
5714
5714
|
E = T, g.missingWarn = E;
|
|
5715
5715
|
},
|
|
5716
5716
|
get fallbackWarn() {
|
|
5717
|
-
return
|
|
5717
|
+
return _;
|
|
5718
5718
|
},
|
|
5719
5719
|
set fallbackWarn(T) {
|
|
5720
|
-
|
|
5720
|
+
_ = T, g.fallbackWarn = _;
|
|
5721
5721
|
},
|
|
5722
5722
|
get fallbackRoot() {
|
|
5723
5723
|
return p;
|
|
@@ -5753,7 +5753,7 @@ function au(e = {}) {
|
|
|
5753
5753
|
setMissingHandler: w,
|
|
5754
5754
|
[nu]: Ne
|
|
5755
5755
|
};
|
|
5756
|
-
return K.datetimeFormats = z, K.numberFormats = U, K.rt = G, K.te = $e, K.tm = Et, K.d = ee, K.n = te, K.getDateTimeFormat =
|
|
5756
|
+
return K.datetimeFormats = z, K.numberFormats = U, K.rt = G, K.te = $e, K.tm = Et, K.d = ee, K.n = te, K.getDateTimeFormat = u, K.setDateTimeFormat = d, K.mergeDateTimeFormat = L, K.getNumberFormat = M, K.setNumberFormat = ne, K.mergeNumberFormat = oe, K[xo] = n, K[rr] = De, K[sr] = ue, K[or] = Re, process.env.NODE_ENV !== "production" && (K[ir] = (T) => {
|
|
5757
5757
|
g.__v_emitter = T;
|
|
5758
5758
|
}, K[ar] = () => {
|
|
5759
5759
|
g.__v_emitter = void 0;
|
|
@@ -5810,15 +5810,15 @@ function Ho(e, t, n, r) {
|
|
|
5810
5810
|
return () => {
|
|
5811
5811
|
const i = { part: !0 };
|
|
5812
5812
|
let a = Z();
|
|
5813
|
-
e.locale && (i.locale = e.locale), F(e.format) ? i.key = e.format : J(e.format) && (F(e.format.key) && (i.key = e.format.key), a = Object.keys(e.format).reduce((E,
|
|
5813
|
+
e.locale && (i.locale = e.locale), F(e.format) ? i.key = e.format : J(e.format) && (F(e.format.key) && (i.key = e.format.key), a = Object.keys(e.format).reduce((E, _) => n.includes(_) ? pe(Z(), E, { [_]: e.format[_] }) : E, Z()));
|
|
5814
5814
|
const c = r(e.value, i, a);
|
|
5815
|
-
let
|
|
5816
|
-
ae(c) ?
|
|
5817
|
-
const p = s[E.type], b = p ? p({ [E.type]: E.value, index:
|
|
5818
|
-
return lu(b) && (b[0].key = `${E.type}-${
|
|
5819
|
-
}) : F(c) && (
|
|
5815
|
+
let l = [i.key];
|
|
5816
|
+
ae(c) ? l = c.map((E, _) => {
|
|
5817
|
+
const p = s[E.type], b = p ? p({ [E.type]: E.value, index: _, parts: c }) : [E.value];
|
|
5818
|
+
return lu(b) && (b[0].key = `${E.type}-${_}`), b;
|
|
5819
|
+
}) : F(c) && (l = [c]);
|
|
5820
5820
|
const f = pe(Z(), o), m = F(e.tag) || J(e.tag) ? e.tag : Bo();
|
|
5821
|
-
return Fs(m, f,
|
|
5821
|
+
return Fs(m, f, l);
|
|
5822
5822
|
};
|
|
5823
5823
|
}
|
|
5824
5824
|
pe({
|
|
@@ -5848,7 +5848,7 @@ function yn(e = {}) {
|
|
|
5848
5848
|
let a = i.__getInstance(t);
|
|
5849
5849
|
if (a == null) {
|
|
5850
5850
|
const c = pe({}, e);
|
|
5851
|
-
"__i18n" in s && (c.__i18n = s.__i18n), r && (c.__root = r), a = au(c), i.__composerExtend && (a[cr] = i.__composerExtend(a)),
|
|
5851
|
+
"__i18n" in s && (c.__i18n = s.__i18n), r && (c.__root = r), a = au(c), i.__composerExtend && (a[cr] = i.__composerExtend(a)), _u(i, t, a), i.__setInstance(t, a);
|
|
5852
5852
|
} else
|
|
5853
5853
|
process.env.NODE_ENV !== "production" && o === "local" && Fe(Zt(Me.DUPLICATE_USE_I18N_CALLING));
|
|
5854
5854
|
return a;
|
|
@@ -5860,7 +5860,7 @@ function fu(e) {
|
|
|
5860
5860
|
return t;
|
|
5861
5861
|
}
|
|
5862
5862
|
function du(e, t) {
|
|
5863
|
-
return
|
|
5863
|
+
return _n(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
5864
5864
|
}
|
|
5865
5865
|
function pu(e) {
|
|
5866
5866
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
@@ -5868,7 +5868,7 @@ function pu(e) {
|
|
|
5868
5868
|
function mu(e, t, n = !1) {
|
|
5869
5869
|
let r = null;
|
|
5870
5870
|
const s = t.root;
|
|
5871
|
-
let o =
|
|
5871
|
+
let o = hu(t, n);
|
|
5872
5872
|
for (; o != null; ) {
|
|
5873
5873
|
const i = e;
|
|
5874
5874
|
if (e.mode === "composition")
|
|
@@ -5883,10 +5883,10 @@ function mu(e, t, n = !1) {
|
|
|
5883
5883
|
}
|
|
5884
5884
|
return r;
|
|
5885
5885
|
}
|
|
5886
|
-
function
|
|
5886
|
+
function hu(e, t = !1) {
|
|
5887
5887
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
5888
5888
|
}
|
|
5889
|
-
function
|
|
5889
|
+
function _u(e, t, n) {
|
|
5890
5890
|
let r = null;
|
|
5891
5891
|
ks(() => {
|
|
5892
5892
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -5942,8 +5942,8 @@ function gu(e) {
|
|
|
5942
5942
|
__i18n: Eu().global
|
|
5943
5943
|
});
|
|
5944
5944
|
function s(...c) {
|
|
5945
|
-
const [
|
|
5946
|
-
return t(typeof f == "number" ? `${e}.${
|
|
5945
|
+
const [l, f, m] = c;
|
|
5946
|
+
return t(typeof f == "number" ? `${e}.${l}` : `${e}.${l}`, f, m);
|
|
5947
5947
|
}
|
|
5948
5948
|
function o(c) {
|
|
5949
5949
|
return n(`${e}.${c}`);
|
|
@@ -5951,8 +5951,8 @@ function gu(e) {
|
|
|
5951
5951
|
function i(c) {
|
|
5952
5952
|
return r(`${e}.${c}`);
|
|
5953
5953
|
}
|
|
5954
|
-
function a(c, ...
|
|
5955
|
-
return o(
|
|
5954
|
+
function a(c, ...l) {
|
|
5955
|
+
return o(l[0]) ? s(...l) : c;
|
|
5956
5956
|
}
|
|
5957
5957
|
return {
|
|
5958
5958
|
t: s,
|
|
@@ -5973,44 +5973,44 @@ function Is(e, t) {
|
|
|
5973
5973
|
}
|
|
5974
5974
|
function Nu(e) {
|
|
5975
5975
|
const { t } = gu(e);
|
|
5976
|
-
async function n(
|
|
5976
|
+
async function n(_, p, b) {
|
|
5977
5977
|
try {
|
|
5978
|
-
return await lc(
|
|
5978
|
+
return await lc(_, p, b), !0;
|
|
5979
5979
|
} catch (N) {
|
|
5980
5980
|
return bu(N) ? N.response.data.error : t("validation.unknownError");
|
|
5981
5981
|
}
|
|
5982
5982
|
}
|
|
5983
|
-
function r(
|
|
5984
|
-
return
|
|
5983
|
+
function r(_) {
|
|
5984
|
+
return _ == null || _ === "" ? t("validation.required") : !0;
|
|
5985
5985
|
}
|
|
5986
|
-
function s(
|
|
5987
|
-
return typeof
|
|
5986
|
+
function s(_) {
|
|
5987
|
+
return typeof _ != "string" || !/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(_) ? t("validation.email") : !0;
|
|
5988
5988
|
}
|
|
5989
|
-
function o(
|
|
5990
|
-
return
|
|
5989
|
+
function o(_, p) {
|
|
5990
|
+
return _ != null && _.length < p ? t("validation.minLength", { min: p }) : !0;
|
|
5991
5991
|
}
|
|
5992
|
-
function i(
|
|
5993
|
-
return
|
|
5992
|
+
function i(_, p) {
|
|
5993
|
+
return _ != null && _.length > p ? t("validation.maxLength", { max: p }) : !0;
|
|
5994
5994
|
}
|
|
5995
|
-
function a(
|
|
5996
|
-
return p >
|
|
5995
|
+
function a(_, p) {
|
|
5996
|
+
return p > _ ? t("validation.min", { min: p }) : !0;
|
|
5997
5997
|
}
|
|
5998
|
-
function c(
|
|
5999
|
-
return
|
|
5998
|
+
function c(_, p) {
|
|
5999
|
+
return _ > p ? t("validation.max", { max: p }) : !0;
|
|
6000
6000
|
}
|
|
6001
|
-
function
|
|
6002
|
-
return new RegExp(p).test(
|
|
6001
|
+
function l(_, p) {
|
|
6002
|
+
return new RegExp(p).test(_) ? !0 : t("validation.pattern", { pattern: p.toString() });
|
|
6003
6003
|
}
|
|
6004
|
-
function f(
|
|
6005
|
-
return
|
|
6004
|
+
function f(_, p) {
|
|
6005
|
+
return _ == null ? !0 : (typeof _ == "object" ? p.some((N) => Jn(_, N)) : p.some((N) => N != null && String(N) === String(_))) ? t("validation.unique") : !0;
|
|
6006
6006
|
}
|
|
6007
|
-
function m(
|
|
6008
|
-
return
|
|
6007
|
+
function m(_, p) {
|
|
6008
|
+
return _ == null || _ === "" || Is(_, p).isValid() ? !0 : t("validation.invalidDate", {
|
|
6009
6009
|
format: p || qo
|
|
6010
6010
|
});
|
|
6011
6011
|
}
|
|
6012
|
-
function E(
|
|
6013
|
-
return
|
|
6012
|
+
function E(_, p) {
|
|
6013
|
+
return _ == null || _ === "" ? !0 : Is(_, p).isBefore(Xn(), "day") ? t("validation.dateInPast") : !0;
|
|
6014
6014
|
}
|
|
6015
6015
|
return {
|
|
6016
6016
|
validateFromApi: n,
|
|
@@ -6020,7 +6020,7 @@ function Nu(e) {
|
|
|
6020
6020
|
maxLength: i,
|
|
6021
6021
|
min: a,
|
|
6022
6022
|
max: c,
|
|
6023
|
-
pattern:
|
|
6023
|
+
pattern: l,
|
|
6024
6024
|
unique: f,
|
|
6025
6025
|
validDate: m,
|
|
6026
6026
|
dateNotInPast: E
|
|
@@ -6067,37 +6067,34 @@ function Ou(e) {
|
|
|
6067
6067
|
min: i,
|
|
6068
6068
|
max: a,
|
|
6069
6069
|
pattern: c,
|
|
6070
|
-
unique:
|
|
6070
|
+
unique: l,
|
|
6071
6071
|
validDate: f,
|
|
6072
6072
|
dateNotInPast: m
|
|
6073
6073
|
} = Nu(e);
|
|
6074
6074
|
return {
|
|
6075
|
-
validateFromApi: (E,
|
|
6075
|
+
validateFromApi: (E, _) => (p) => t(E, _, p),
|
|
6076
6076
|
required: n,
|
|
6077
6077
|
email: r,
|
|
6078
|
-
min: (E) => (
|
|
6079
|
-
max: (E) => (
|
|
6080
|
-
minLength: (E) => (
|
|
6081
|
-
maxLength: (E) => (
|
|
6082
|
-
pattern: (E) => (
|
|
6083
|
-
unique: (E) => (
|
|
6084
|
-
validDate: (E) => (
|
|
6085
|
-
dateNotInPast: (E) => (
|
|
6078
|
+
min: (E) => (_) => i(typeof _ == "string" ? parseFloat(_) : _, E),
|
|
6079
|
+
max: (E) => (_) => a(typeof _ == "string" ? parseFloat(_) : _, E),
|
|
6080
|
+
minLength: (E) => (_) => s(_, E),
|
|
6081
|
+
maxLength: (E) => (_) => o(_, E),
|
|
6082
|
+
pattern: (E) => (_) => c(_, E),
|
|
6083
|
+
unique: (E) => (_) => l(_, E),
|
|
6084
|
+
validDate: (E) => (_) => f(_, E || Ds),
|
|
6085
|
+
dateNotInPast: (E) => (_) => m(_, E || Ds)
|
|
6086
6086
|
};
|
|
6087
6087
|
}
|
|
6088
6088
|
function Bf(e, t, n) {
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
|
|
6097
|
-
|
|
6098
|
-
...i,
|
|
6099
|
-
s(e, t.name)
|
|
6100
|
-
];
|
|
6089
|
+
const { required: r, email: s, validateFromApi: o, ...i } = Ou(`${e}.fields.${t.name}`), a = t.required ? [r] : [];
|
|
6090
|
+
return n.forEach((c) => {
|
|
6091
|
+
if (c === "email")
|
|
6092
|
+
a.push(s);
|
|
6093
|
+
else if (i[c] && t.inputSettings?.[c] != null) {
|
|
6094
|
+
const l = t.inputSettings[c];
|
|
6095
|
+
a.push(i[c](l));
|
|
6096
|
+
}
|
|
6097
|
+
}), t.hasValidations && a.push(o(e, t.name)), a;
|
|
6101
6098
|
}
|
|
6102
6099
|
let tn = null;
|
|
6103
6100
|
function Hf(e) {
|
|
@@ -6796,7 +6793,7 @@ export {
|
|
|
6796
6793
|
zf as BasicRemoteModule,
|
|
6797
6794
|
ff as LinidZoneRenderer,
|
|
6798
6795
|
af as ModuleLifecyclePhase,
|
|
6799
|
-
|
|
6796
|
+
ho as deepEqual,
|
|
6800
6797
|
Jn as deepEqualUnordered,
|
|
6801
6798
|
Uf as deleteEntityById,
|
|
6802
6799
|
$f as fromDot,
|
|
@@ -6808,7 +6805,7 @@ export {
|
|
|
6808
6805
|
qe as getHttpClient,
|
|
6809
6806
|
Eu as getI18nInstance,
|
|
6810
6807
|
ci as getModuleFederation,
|
|
6811
|
-
|
|
6808
|
+
ht as getModuleHostConfiguration,
|
|
6812
6809
|
Qf as getNunjucksEnv,
|
|
6813
6810
|
an as getPiniaStore,
|
|
6814
6811
|
Su as getUiDesign,
|