@linagora/linid-im-front-corelib 0.0.17 → 0.0.18
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 +491 -474
- package/dist/core-lib.umd.js +8 -8
- package/dist/package.json +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/types/src/index.d.ts +4 -2
- package/dist/types/src/lifecycle/skeleton.d.ts +7 -4
- package/dist/types/src/stores/linidUiStore.d.ts +20 -0
- package/dist/types/src/types/linidRoute.d.ts +2 -0
- package/dist/types/src/types/linidUi.d.ts +11 -0
- package/dist/types/src/types/moduleLifecycle.d.ts +7 -4
- package/dist/types/src/types/page.d.ts +2 -2
- package/package.json +1 -1
package/dist/core-lib.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Mt from "vue";
|
|
2
|
-
import { defineAsyncComponent as Mr, hasInjectionContext as Gt, inject as at, getCurrentInstance as Fr, ref as Be, reactive as wr, markRaw as xe, effectScope as Ur, isRef as Ke, isReactive as rn, toRef as Ft, toRaw as Vr, nextTick as
|
|
2
|
+
import { defineAsyncComponent as Mr, hasInjectionContext as Gt, inject as at, getCurrentInstance as Fr, ref as Be, reactive as wr, markRaw as xe, effectScope as Ur, isRef as Ke, isReactive as rn, toRef as Ft, toRaw as Vr, nextTick as Nn, computed as ge, getCurrentScope as $r, onScopeDispose as Wr, watch as Yt, toRefs as gn, defineComponent as Ot, watchEffect as Gr, createElementBlock as On, openBlock as wt, Fragment as it, renderSlot as Yr, createCommentVNode as Hr, renderList as xr, createBlock as jr, resolveDynamicComponent as Br, mergeProps as Kr, createElementVNode as Xr, shallowRef as qr, onMounted as Qr, onUnmounted as Jr, h as tr, createVNode as Zr, Text as zr } from "vue";
|
|
3
3
|
let lt = null;
|
|
4
|
-
function
|
|
4
|
+
function Fa(e) {
|
|
5
5
|
if (lt !== null) {
|
|
6
6
|
console.warn(
|
|
7
7
|
"[LinID CoreLib] Module Federation has already been initialized. Re-initialization is ignored."
|
|
@@ -39,19 +39,19 @@ var je;
|
|
|
39
39
|
(function(e) {
|
|
40
40
|
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
41
41
|
})(je || (je = {}));
|
|
42
|
-
function
|
|
42
|
+
function nr(e, t) {
|
|
43
43
|
for (const n in t) {
|
|
44
44
|
const r = t[n];
|
|
45
45
|
if (!(n in e))
|
|
46
46
|
continue;
|
|
47
47
|
const s = e[n];
|
|
48
|
-
ve(s) && ve(r) && !Ke(r) && !rn(r) ? e[n] =
|
|
48
|
+
ve(s) && ve(r) && !Ke(r) && !rn(r) ? e[n] = nr(s, r) : e[n] = r;
|
|
49
49
|
}
|
|
50
50
|
return e;
|
|
51
51
|
}
|
|
52
|
-
const
|
|
52
|
+
const rr = () => {
|
|
53
53
|
};
|
|
54
|
-
function
|
|
54
|
+
function Ln(e, t, n, r = rr) {
|
|
55
55
|
e.add(t);
|
|
56
56
|
const s = () => {
|
|
57
57
|
e.delete(t) && r();
|
|
@@ -63,7 +63,7 @@ function Re(e, ...t) {
|
|
|
63
63
|
n(...t);
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
const ns = (e) => e(),
|
|
66
|
+
const ns = (e) => e(), hn = Symbol(), Ut = Symbol();
|
|
67
67
|
function xt(e, t) {
|
|
68
68
|
e instanceof Map && t instanceof Map ? t.forEach((n, r) => e.set(r, n)) : e instanceof Set && t instanceof Set && t.forEach(e.add, e);
|
|
69
69
|
for (const n in t) {
|
|
@@ -82,18 +82,18 @@ function ss(e) {
|
|
|
82
82
|
return !ve(e) || !Object.prototype.hasOwnProperty.call(e, rs);
|
|
83
83
|
}
|
|
84
84
|
const { assign: re } = Object;
|
|
85
|
-
function
|
|
85
|
+
function Tn(e) {
|
|
86
86
|
return !!(Ke(e) && e.effect);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function In(e, t, n, r) {
|
|
89
89
|
const { state: s, actions: o, getters: i } = t, c = n.state.value[e];
|
|
90
90
|
let u;
|
|
91
91
|
function p() {
|
|
92
92
|
!c && (process.env.NODE_ENV === "production" || !r) && (n.state.value[e] = s ? s() : {});
|
|
93
93
|
const L = process.env.NODE_ENV !== "production" && r ? (
|
|
94
94
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
95
|
-
|
|
96
|
-
) :
|
|
95
|
+
gn(Be(s ? s() : {}).value)
|
|
96
|
+
) : gn(n.state.value[e]);
|
|
97
97
|
return re(L, o, Object.keys(i || {}).reduce((T, g) => (process.env.NODE_ENV !== "production" && g in L && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${g}" in store "${e}".`), T[g] = xe(ge(() => {
|
|
98
98
|
ct(n);
|
|
99
99
|
const v = n._s.get(e);
|
|
@@ -129,7 +129,7 @@ function jt(e, t, n = {}, r, s, o) {
|
|
|
129
129
|
events: v
|
|
130
130
|
});
|
|
131
131
|
const M = P = Symbol();
|
|
132
|
-
|
|
132
|
+
Nn().then(() => {
|
|
133
133
|
P === M && (p = !0);
|
|
134
134
|
}), L = !0, Re(T, A, r.state.value[e]);
|
|
135
135
|
}
|
|
@@ -142,13 +142,13 @@ function jt(e, t, n = {}, r, s, o) {
|
|
|
142
142
|
/* istanbul ignore next */
|
|
143
143
|
process.env.NODE_ENV !== "production" ? () => {
|
|
144
144
|
throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
|
|
145
|
-
} :
|
|
145
|
+
} : rr
|
|
146
146
|
);
|
|
147
147
|
function h() {
|
|
148
148
|
i.stop(), T.clear(), g.clear(), r._s.delete(e);
|
|
149
149
|
}
|
|
150
150
|
const m = (b, A = "") => {
|
|
151
|
-
if (
|
|
151
|
+
if (hn in b)
|
|
152
152
|
return b[Ut] = A, b;
|
|
153
153
|
const M = function() {
|
|
154
154
|
ct(r);
|
|
@@ -174,7 +174,7 @@ function jt(e, t, n = {}, r, s, o) {
|
|
|
174
174
|
}
|
|
175
175
|
return _e instanceof Promise ? _e.then((Z) => (Re(fe, Z), Z)).catch((Z) => (Re(he, Z), Promise.reject(Z))) : (Re(fe, _e), _e);
|
|
176
176
|
};
|
|
177
|
-
return M[
|
|
177
|
+
return M[hn] = !0, M[Ut] = A, M;
|
|
178
178
|
}, I = /* @__PURE__ */ xe({
|
|
179
179
|
actions: {},
|
|
180
180
|
getters: {},
|
|
@@ -184,11 +184,11 @@ function jt(e, t, n = {}, r, s, o) {
|
|
|
184
184
|
_p: r,
|
|
185
185
|
// _s: scope,
|
|
186
186
|
$id: e,
|
|
187
|
-
$onAction:
|
|
187
|
+
$onAction: Ln.bind(null, g),
|
|
188
188
|
$patch: _,
|
|
189
189
|
$reset: E,
|
|
190
190
|
$subscribe(b, A = {}) {
|
|
191
|
-
const M =
|
|
191
|
+
const M = Ln(T, b, A.detached, () => X()), X = i.run(() => Yt(() => r.state.value[e], (fe) => {
|
|
192
192
|
(A.flush === "sync" ? L : p) && b({
|
|
193
193
|
storeId: e,
|
|
194
194
|
type: je.direct,
|
|
@@ -212,12 +212,12 @@ function jt(e, t, n = {}, r, s, o) {
|
|
|
212
212
|
const F = (r._a && r._a.runWithContext || ns)(() => r._e.run(() => (i = Ur()).run(() => t({ action: m }))));
|
|
213
213
|
for (const b in F) {
|
|
214
214
|
const A = F[b];
|
|
215
|
-
if (Ke(A) && !
|
|
215
|
+
if (Ke(A) && !Tn(A) || rn(A))
|
|
216
216
|
process.env.NODE_ENV !== "production" && s ? S.value[b] = Ft(F, b) : o || (R && ss(A) && (Ke(A) ? A.value = R[b] : xt(A, R[b])), r.state.value[e][b] = A), process.env.NODE_ENV !== "production" && I.state.push(b);
|
|
217
217
|
else if (typeof A == "function") {
|
|
218
218
|
const M = process.env.NODE_ENV !== "production" && s ? A : m(A, b);
|
|
219
219
|
F[b] = M, process.env.NODE_ENV !== "production" && (I.actions[b] = A), c.actions[b] = A;
|
|
220
|
-
} else process.env.NODE_ENV !== "production" &&
|
|
220
|
+
} else process.env.NODE_ENV !== "production" && Tn(A) && (I.getters[b] = o ? (
|
|
221
221
|
// @ts-expect-error
|
|
222
222
|
n.getters[b]
|
|
223
223
|
) : A, Me && (F._getters || // @ts-expect-error: same
|
|
@@ -236,12 +236,12 @@ function jt(e, t, n = {}, r, s, o) {
|
|
|
236
236
|
f._hotUpdating = !0, b._hmrPayload.state.forEach((A) => {
|
|
237
237
|
if (A in f.$state) {
|
|
238
238
|
const M = b.$state[A], X = f.$state[A];
|
|
239
|
-
typeof M == "object" && ve(M) && ve(X) ?
|
|
239
|
+
typeof M == "object" && ve(M) && ve(X) ? nr(M, X) : b.$state[A] = X;
|
|
240
240
|
}
|
|
241
241
|
f[A] = Ft(b.$state, A);
|
|
242
242
|
}), Object.keys(f.$state).forEach((A) => {
|
|
243
243
|
A in b.$state || delete f[A];
|
|
244
|
-
}), p = !1, L = !1, r.state.value[e] = Ft(b._hmrPayload, "hotState"), L = !0,
|
|
244
|
+
}), p = !1, L = !1, r.state.value[e] = Ft(b._hmrPayload, "hotState"), L = !0, Nn().then(() => {
|
|
245
245
|
p = !0;
|
|
246
246
|
});
|
|
247
247
|
for (const A in b._hmrPayload.actions) {
|
|
@@ -294,7 +294,7 @@ function jt(e, t, n = {}, r, s, o) {
|
|
|
294
294
|
Found in store "${f.$id}".`), R && o && n.hydrate && n.hydrate(f.$state, R), p = !0, L = !0, f;
|
|
295
295
|
}
|
|
296
296
|
// @__NO_SIDE_EFFECTS__
|
|
297
|
-
function
|
|
297
|
+
function sn(e, t, n) {
|
|
298
298
|
let r;
|
|
299
299
|
const s = typeof t == "function";
|
|
300
300
|
r = s ? n : t;
|
|
@@ -306,10 +306,10 @@ function nr(e, t, n) {
|
|
|
306
306
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
307
307
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
308
308
|
This will fail in production.`);
|
|
309
|
-
i = Ce, i._s.has(e) || (s ? jt(e, t, r, i) :
|
|
309
|
+
i = Ce, i._s.has(e) || (s ? jt(e, t, r, i) : In(e, r, i), process.env.NODE_ENV !== "production" && (o._pinia = i));
|
|
310
310
|
const p = i._s.get(e);
|
|
311
311
|
if (process.env.NODE_ENV !== "production" && c) {
|
|
312
|
-
const L = "__hot:" + e, T = s ? jt(L, t, r, i, !0) :
|
|
312
|
+
const L = "__hot:" + e, T = s ? jt(L, t, r, i, !0) : In(L, re({}, r), i, !0);
|
|
313
313
|
c._hotUpdate(T), delete i.state.value[L], i._s.delete(L);
|
|
314
314
|
}
|
|
315
315
|
if (process.env.NODE_ENV !== "production" && Me) {
|
|
@@ -325,7 +325,7 @@ This will fail in production.`);
|
|
|
325
325
|
return o.$id = e, o;
|
|
326
326
|
}
|
|
327
327
|
let ut = null;
|
|
328
|
-
function
|
|
328
|
+
function wa(e) {
|
|
329
329
|
if (ut !== null) {
|
|
330
330
|
console.warn(
|
|
331
331
|
"[LinID CoreLib] Pinia store has already been initialized. Re-initialization is ignored."
|
|
@@ -334,14 +334,14 @@ function Fa(e) {
|
|
|
334
334
|
}
|
|
335
335
|
ut = e;
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function on() {
|
|
338
338
|
if (ut === null)
|
|
339
339
|
throw new Error(
|
|
340
340
|
"[LinID CoreLib] Pinia store is not initialized. Call setPiniaStore() first."
|
|
341
341
|
);
|
|
342
342
|
return ut;
|
|
343
343
|
}
|
|
344
|
-
const os = () => as(
|
|
344
|
+
const os = () => as(on()), as = /* @__PURE__ */ sn("linidZoneStore", {
|
|
345
345
|
state: () => ({
|
|
346
346
|
zones: {}
|
|
347
347
|
}),
|
|
@@ -355,7 +355,7 @@ const os = () => as(rr()), as = /* @__PURE__ */ nr("linidZoneStore", {
|
|
|
355
355
|
this.zones[e] || (this.zones[e] = []), this.zones[e].push(t);
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
}),
|
|
358
|
+
}), Ua = /* @__PURE__ */ Ot({
|
|
359
359
|
__name: "LinidZoneRenderer",
|
|
360
360
|
props: {
|
|
361
361
|
zone: {}
|
|
@@ -371,8 +371,8 @@ const os = () => as(rr()), as = /* @__PURE__ */ nr("linidZoneStore", {
|
|
|
371
371
|
})), Promise.resolve().then(() => {
|
|
372
372
|
s.value = !0;
|
|
373
373
|
});
|
|
374
|
-
}), (o, i) => (wt(),
|
|
375
|
-
(wt(!0),
|
|
374
|
+
}), (o, i) => (wt(), On(it, null, [
|
|
375
|
+
(wt(!0), On(it, null, xr(r.value, (c, u) => (wt(), jr(Br(c.component), Kr({
|
|
376
376
|
key: c.plugin + u
|
|
377
377
|
}, { ref_for: !0 }, c.props), null, 16))), 128)),
|
|
378
378
|
s.value && r.value.length === 0 ? Yr(o.$slots, "default", { key: 0 }, () => [
|
|
@@ -381,7 +381,7 @@ const os = () => as(rr()), as = /* @__PURE__ */ nr("linidZoneStore", {
|
|
|
381
381
|
], 64));
|
|
382
382
|
}
|
|
383
383
|
});
|
|
384
|
-
function
|
|
384
|
+
function Va() {
|
|
385
385
|
function e(n) {
|
|
386
386
|
return {
|
|
387
387
|
page: (n.page || 1) - 1,
|
|
@@ -402,177 +402,11 @@ function Ua() {
|
|
|
402
402
|
toQuasarPagination: t
|
|
403
403
|
};
|
|
404
404
|
}
|
|
405
|
-
let ft = null;
|
|
406
|
-
function Va(e) {
|
|
407
|
-
if (ft !== null) {
|
|
408
|
-
console.warn(
|
|
409
|
-
"[LinID CoreLib] UI Design has already been initialized. Re-initialization is ignored."
|
|
410
|
-
);
|
|
411
|
-
return;
|
|
412
|
-
}
|
|
413
|
-
ft = e;
|
|
414
|
-
}
|
|
415
|
-
function is() {
|
|
416
|
-
if (ft === null)
|
|
417
|
-
throw new Error(
|
|
418
|
-
"[LinID CoreLib] UI Design is not initialized. Call setUiDesign() first."
|
|
419
|
-
);
|
|
420
|
-
return ft;
|
|
421
|
-
}
|
|
422
|
-
const ls = [
|
|
423
|
-
"icon",
|
|
424
|
-
"iconRight",
|
|
425
|
-
"noCaps",
|
|
426
|
-
"noWrap",
|
|
427
|
-
"align",
|
|
428
|
-
"stack",
|
|
429
|
-
"stretch",
|
|
430
|
-
"size",
|
|
431
|
-
"outline",
|
|
432
|
-
"flat",
|
|
433
|
-
"unelevated",
|
|
434
|
-
"rounded",
|
|
435
|
-
"push",
|
|
436
|
-
"square",
|
|
437
|
-
"glossy",
|
|
438
|
-
"fab",
|
|
439
|
-
"fabMini",
|
|
440
|
-
"padding",
|
|
441
|
-
"color",
|
|
442
|
-
"textColor",
|
|
443
|
-
"dense",
|
|
444
|
-
"ripple",
|
|
445
|
-
"round"
|
|
446
|
-
], cs = [
|
|
447
|
-
"vertical",
|
|
448
|
-
"outsideArrows",
|
|
449
|
-
"mobileArrows",
|
|
450
|
-
"align",
|
|
451
|
-
"breakpoint",
|
|
452
|
-
"leftIcon",
|
|
453
|
-
"rightIcon",
|
|
454
|
-
"stretch",
|
|
455
|
-
"shrink",
|
|
456
|
-
"switchIndicator",
|
|
457
|
-
"narrowIndicator",
|
|
458
|
-
"inlineLabel",
|
|
459
|
-
"noCaps",
|
|
460
|
-
"activeColor",
|
|
461
|
-
"activeBgColor",
|
|
462
|
-
"indicatorColor",
|
|
463
|
-
"contentClass",
|
|
464
|
-
"activeClass",
|
|
465
|
-
"dense"
|
|
466
|
-
], us = [
|
|
467
|
-
"icon",
|
|
468
|
-
"activeClass",
|
|
469
|
-
"exactActiveClass",
|
|
470
|
-
"noCaps",
|
|
471
|
-
"alert",
|
|
472
|
-
"contentClass",
|
|
473
|
-
"ripple"
|
|
474
|
-
], fs = [
|
|
475
|
-
"reveal",
|
|
476
|
-
"revealOffset",
|
|
477
|
-
"elevated",
|
|
478
|
-
"bordered"
|
|
479
|
-
], _s = ["inset"], ds = ["shrink"], ms = [
|
|
480
|
-
"icon",
|
|
481
|
-
"size",
|
|
482
|
-
"fontSize",
|
|
483
|
-
"color",
|
|
484
|
-
"textColor",
|
|
485
|
-
"square",
|
|
486
|
-
"rounded"
|
|
487
|
-
], Es = [
|
|
488
|
-
"floating",
|
|
489
|
-
"multiLine",
|
|
490
|
-
"align",
|
|
491
|
-
"color",
|
|
492
|
-
"textColor",
|
|
493
|
-
"transparent",
|
|
494
|
-
"outline",
|
|
495
|
-
"rounded"
|
|
496
|
-
], ps = [
|
|
497
|
-
"virtualScrollItemSize",
|
|
498
|
-
"virtualScrollStickySizeStart",
|
|
499
|
-
"virtualScrollStickySizeEnd",
|
|
500
|
-
"color",
|
|
501
|
-
"iconFirstPage",
|
|
502
|
-
"iconPrevPage",
|
|
503
|
-
"iconNextPage",
|
|
504
|
-
"iconLastPage",
|
|
505
|
-
"grid",
|
|
506
|
-
"gridHeader",
|
|
507
|
-
"dense",
|
|
508
|
-
"hideHeader",
|
|
509
|
-
"hideBottom",
|
|
510
|
-
"hideSelectedBanner",
|
|
511
|
-
"hideNoData",
|
|
512
|
-
"hidePagination",
|
|
513
|
-
"flat",
|
|
514
|
-
"bordered",
|
|
515
|
-
"square",
|
|
516
|
-
"separator",
|
|
517
|
-
"wrapCells",
|
|
518
|
-
"tableStyle",
|
|
519
|
-
"tableClass",
|
|
520
|
-
"tableHeaderStyle",
|
|
521
|
-
"tableHeaderClass",
|
|
522
|
-
"cardContainerStyle",
|
|
523
|
-
"cardContainerClass",
|
|
524
|
-
"cardStyle",
|
|
525
|
-
"cardClass",
|
|
526
|
-
"titleClass"
|
|
527
|
-
], Tn = {
|
|
528
|
-
"q-btn": ls,
|
|
529
|
-
"q-tabs": cs,
|
|
530
|
-
"q-route-tab": us,
|
|
531
|
-
"q-header": fs,
|
|
532
|
-
"q-toolbar": _s,
|
|
533
|
-
"q-toolbar-title": ds,
|
|
534
|
-
"q-avatar": ms,
|
|
535
|
-
"q-badge": Es,
|
|
536
|
-
"q-table": ps
|
|
537
|
-
};
|
|
538
|
-
function In(e, t) {
|
|
539
|
-
return t.split(".").reduce((n, r) => {
|
|
540
|
-
if (n && typeof n == "object")
|
|
541
|
-
return n[r];
|
|
542
|
-
}, e);
|
|
543
|
-
}
|
|
544
|
-
function Ns(e, t, n) {
|
|
545
|
-
let r = In(e, `${t}.${n}`);
|
|
546
|
-
if (r === void 0 && (r = In(e, `default.${n}`)), typeof r == "object")
|
|
547
|
-
throw new Error(
|
|
548
|
-
`[UiDesign] Value for '${t}.${n}' is a nested object or null, expected a primitive.`
|
|
549
|
-
);
|
|
550
|
-
return r;
|
|
551
|
-
}
|
|
552
|
-
function gs(e) {
|
|
553
|
-
if (!(e in Tn))
|
|
554
|
-
throw new Error(
|
|
555
|
-
`[UiDesign] The component '${e}' is not supported for UI design retrieval.`
|
|
556
|
-
);
|
|
557
|
-
return Tn[e];
|
|
558
|
-
}
|
|
559
|
-
function $a() {
|
|
560
|
-
const e = ge(() => is());
|
|
561
|
-
function t(n, r, s) {
|
|
562
|
-
const o = gs(r), i = {};
|
|
563
|
-
for (const c of o) {
|
|
564
|
-
const u = s?.[c] ?? Ns(e.value, n, `${r}.${String(c)}`);
|
|
565
|
-
u !== void 0 && (i[c] = u);
|
|
566
|
-
}
|
|
567
|
-
return i;
|
|
568
|
-
}
|
|
569
|
-
return { ui: t };
|
|
570
|
-
}
|
|
571
405
|
function ue(e, t) {
|
|
572
406
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
573
407
|
}
|
|
574
408
|
const bn = {};
|
|
575
|
-
function
|
|
409
|
+
function is(e) {
|
|
576
410
|
bn[e] || (bn[e] = !0, ue(e));
|
|
577
411
|
}
|
|
578
412
|
const pe = typeof window < "u";
|
|
@@ -586,11 +420,11 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
586
420
|
e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
|
|
587
421
|
});
|
|
588
422
|
}
|
|
589
|
-
const
|
|
423
|
+
const ls = /\{([0-9a-zA-Z]+)\}/g;
|
|
590
424
|
function Lt(e, ...t) {
|
|
591
|
-
return t.length === 1 && $(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(
|
|
425
|
+
return t.length === 1 && $(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(ls, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
592
426
|
}
|
|
593
|
-
const Ne = (e, t = !1) => t ? Symbol.for(e) : Symbol(e),
|
|
427
|
+
const Ne = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), cs = (e, t, n) => us({ l: e, k: t, s: n }), us = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), q = (e) => typeof e == "number" && isFinite(e), fs = (e) => an(e) === "[object Date]", ft = (e) => an(e) === "[object RegExp]", ht = (e) => V(e) && Object.keys(e).length === 0, Q = Object.assign, _s = Object.create, G = (e = null) => _s(e);
|
|
594
428
|
let Cn;
|
|
595
429
|
const Ae = () => Cn || (Cn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : G());
|
|
596
430
|
function An(e) {
|
|
@@ -599,7 +433,7 @@ function An(e) {
|
|
|
599
433
|
function vn(e) {
|
|
600
434
|
return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
601
435
|
}
|
|
602
|
-
function
|
|
436
|
+
function ds(e) {
|
|
603
437
|
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (r, s, o) => `${s}="${vn(o)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (r, s, o) => `${s}='${vn(o)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (process.env.NODE_ENV !== "production" && ue("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."), e = e.replace(/(\s+)(on)(\w+\s*=)/gi, "$1on$3")), [
|
|
604
438
|
// In href, src, action, formaction attributes
|
|
605
439
|
/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,
|
|
@@ -609,16 +443,16 @@ function Cs(e) {
|
|
|
609
443
|
e = e.replace(r, "$1javascript:");
|
|
610
444
|
}), e;
|
|
611
445
|
}
|
|
612
|
-
const
|
|
446
|
+
const ms = Object.prototype.hasOwnProperty;
|
|
613
447
|
function oe(e, t) {
|
|
614
|
-
return
|
|
448
|
+
return ms.call(e, t);
|
|
615
449
|
}
|
|
616
|
-
const K = Array.isArray, H = (e) => typeof e == "function", y = (e) => typeof e == "string", B = (e) => typeof e == "boolean", $ = (e) => e !== null && typeof e == "object",
|
|
617
|
-
function
|
|
450
|
+
const K = Array.isArray, H = (e) => typeof e == "function", y = (e) => typeof e == "string", B = (e) => typeof e == "boolean", $ = (e) => e !== null && typeof e == "object", Es = (e) => $(e) && H(e.then) && H(e.catch), sr = Object.prototype.toString, an = (e) => sr.call(e), V = (e) => an(e) === "[object Object]", ps = (e) => e == null ? "" : K(e) || V(e) && e.toString === sr ? JSON.stringify(e, null, 2) : String(e);
|
|
451
|
+
function ln(e, t = "") {
|
|
618
452
|
return e.reduce((n, r, s) => s === 0 ? n + r : n + t + r, "");
|
|
619
453
|
}
|
|
620
454
|
const Sn = 2;
|
|
621
|
-
function
|
|
455
|
+
function Ns(e, t = 0, n = e.length) {
|
|
622
456
|
const r = e.split(/\r?\n/);
|
|
623
457
|
let s = 0;
|
|
624
458
|
const o = [];
|
|
@@ -646,7 +480,7 @@ function ys(e, t = 0, n = e.length) {
|
|
|
646
480
|
return o.join(`
|
|
647
481
|
`);
|
|
648
482
|
}
|
|
649
|
-
function
|
|
483
|
+
function gs() {
|
|
650
484
|
const e = /* @__PURE__ */ new Map();
|
|
651
485
|
return {
|
|
652
486
|
events: e,
|
|
@@ -675,7 +509,7 @@ function ot(e, t) {
|
|
|
675
509
|
});
|
|
676
510
|
}
|
|
677
511
|
}
|
|
678
|
-
function
|
|
512
|
+
function Os(e, t, n) {
|
|
679
513
|
return { line: e, column: t, offset: n };
|
|
680
514
|
}
|
|
681
515
|
function Bt(e, t, n) {
|
|
@@ -702,7 +536,7 @@ const k = {
|
|
|
702
536
|
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
703
537
|
// minifier error codes
|
|
704
538
|
UNHANDLED_MINIFIER_NODE_TYPE: 16
|
|
705
|
-
},
|
|
539
|
+
}, Ls = 17, hs = {
|
|
706
540
|
// tokenizer error messages
|
|
707
541
|
[k.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
708
542
|
[k.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
@@ -725,18 +559,18 @@ const k = {
|
|
|
725
559
|
[k.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
726
560
|
};
|
|
727
561
|
function we(e, t, n = {}) {
|
|
728
|
-
const { domain: r, messages: s, args: o } = n, i = process.env.NODE_ENV !== "production" ? Lt((s ||
|
|
562
|
+
const { domain: r, messages: s, args: o } = n, i = process.env.NODE_ENV !== "production" ? Lt((s || hs)[e] || "", ...o || []) : e, c = new SyntaxError(String(i));
|
|
729
563
|
return c.code = e, t && (c.location = t), c.domain = r, c;
|
|
730
564
|
}
|
|
731
|
-
function
|
|
565
|
+
function Ts(e) {
|
|
732
566
|
throw e;
|
|
733
567
|
}
|
|
734
|
-
const
|
|
735
|
-
`,
|
|
736
|
-
function
|
|
568
|
+
const Is = /<\/?[\w\s="/.':;#-\/]+>/, bs = (e) => Is.test(e), ie = " ", Cs = "\r", z = `
|
|
569
|
+
`, As = "\u2028", vs = "\u2029";
|
|
570
|
+
function Ss(e) {
|
|
737
571
|
const t = e;
|
|
738
572
|
let n = 0, r = 1, s = 1, o = 0;
|
|
739
|
-
const i = (f) => t[f] ===
|
|
573
|
+
const i = (f) => t[f] === Cs && t[f + 1] === z, c = (f) => t[f] === z, u = (f) => t[f] === vs, p = (f) => t[f] === As, L = (f) => i(f) || c(f) || u(f) || p(f), T = () => n, g = () => r, v = () => s, R = () => o, S = (f) => i(f) || u(f) || p(f) ? z : t[f], P = () => S(n), _ = () => S(n + o);
|
|
740
574
|
function E() {
|
|
741
575
|
return o = 0, L(n) && (r++, s = 0), i(n) && n++, n++, s++, t[n];
|
|
742
576
|
}
|
|
@@ -770,9 +604,9 @@ function Ws(e) {
|
|
|
770
604
|
skipToPeek: C
|
|
771
605
|
};
|
|
772
606
|
}
|
|
773
|
-
const me = void 0,
|
|
774
|
-
function
|
|
775
|
-
const n = t.location !== !1, r =
|
|
607
|
+
const me = void 0, ys = ".", yn = "'", Ds = "tokenizer";
|
|
608
|
+
function Ps(e, t = {}) {
|
|
609
|
+
const n = t.location !== !1, r = Ss(e), s = () => r.index(), o = () => Os(r.line(), r.column(), r.index()), i = o(), c = s(), u = {
|
|
776
610
|
currentType: 13,
|
|
777
611
|
offset: c,
|
|
778
612
|
startLoc: i,
|
|
@@ -789,7 +623,7 @@ function Hs(e, t = {}) {
|
|
|
789
623
|
const Y = p();
|
|
790
624
|
if (l.column += N, l.offset += N, L) {
|
|
791
625
|
const x = n ? Bt(Y.startLoc, l) : null, U = we(a, x, {
|
|
792
|
-
domain:
|
|
626
|
+
domain: Ds,
|
|
793
627
|
args: D
|
|
794
628
|
});
|
|
795
629
|
L(U);
|
|
@@ -990,7 +824,7 @@ function Hs(e, t = {}) {
|
|
|
990
824
|
function St(a) {
|
|
991
825
|
return a !== yn && a !== z;
|
|
992
826
|
}
|
|
993
|
-
function
|
|
827
|
+
function En(a) {
|
|
994
828
|
P(a), R(a, "'");
|
|
995
829
|
let l = "", N = "";
|
|
996
830
|
for (; l = M(a, St); )
|
|
@@ -1087,7 +921,7 @@ function Hs(e, t = {}) {
|
|
|
1087
921
|
if (x = m(a, l))
|
|
1088
922
|
return N = g(l, 5, vt(a)), P(a), N;
|
|
1089
923
|
if (U = I(a, l))
|
|
1090
|
-
return N = g(l, 6,
|
|
924
|
+
return N = g(l, 6, En(a)), P(a), N;
|
|
1091
925
|
if (!Y && !x && !U)
|
|
1092
926
|
return N = g(l, 12, et(a)), T(k.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, N.value), P(a), N;
|
|
1093
927
|
break;
|
|
@@ -1171,8 +1005,8 @@ function Hs(e, t = {}) {
|
|
|
1171
1005
|
context: p
|
|
1172
1006
|
};
|
|
1173
1007
|
}
|
|
1174
|
-
const
|
|
1175
|
-
function
|
|
1008
|
+
const Rs = "parser", ks = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
1009
|
+
function Ms(e, t, n) {
|
|
1176
1010
|
switch (e) {
|
|
1177
1011
|
case "\\\\":
|
|
1178
1012
|
return "\\";
|
|
@@ -1185,13 +1019,13 @@ function Bs(e, t, n) {
|
|
|
1185
1019
|
}
|
|
1186
1020
|
}
|
|
1187
1021
|
}
|
|
1188
|
-
function
|
|
1022
|
+
function Fs(e = {}) {
|
|
1189
1023
|
const t = e.location !== !1, { onError: n } = e;
|
|
1190
1024
|
function r(_, E, h, m, ...I) {
|
|
1191
1025
|
const C = _.currentPosition();
|
|
1192
1026
|
if (C.offset += m, C.column += m, n) {
|
|
1193
1027
|
const f = t ? Bt(h, C) : null, w = we(E, f, {
|
|
1194
|
-
domain:
|
|
1028
|
+
domain: Rs,
|
|
1195
1029
|
args: I
|
|
1196
1030
|
});
|
|
1197
1031
|
n(w);
|
|
@@ -1218,7 +1052,7 @@ function Ks(e = {}) {
|
|
|
1218
1052
|
}
|
|
1219
1053
|
function p(_, E) {
|
|
1220
1054
|
const h = _.context(), { lastOffset: m, lastStartLoc: I } = h, C = s(9, m, I);
|
|
1221
|
-
return C.value = E.replace(
|
|
1055
|
+
return C.value = E.replace(ks, Ms), _.nextToken(), o(C, _.currentOffset(), _.currentPosition()), C;
|
|
1222
1056
|
}
|
|
1223
1057
|
function L(_) {
|
|
1224
1058
|
const E = _.nextToken(), h = _.context(), { lastOffset: m, lastStartLoc: I } = h, C = s(8, m, I);
|
|
@@ -1311,7 +1145,7 @@ function Ks(e = {}) {
|
|
|
1311
1145
|
return E.currentType === 13 ? I : R(_, h, m, I);
|
|
1312
1146
|
}
|
|
1313
1147
|
function P(_) {
|
|
1314
|
-
const E =
|
|
1148
|
+
const E = Ps(_, Q({}, e)), h = E.context(), m = s(0, h.offset, h.startLoc);
|
|
1315
1149
|
return t && m.loc && (m.loc.source = _), m.body = S(E), e.onCacheKey && (m.cacheKey = e.onCacheKey(_)), h.currentType !== 13 && r(E, k.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, _[h.offset] || ""), o(m, E.currentOffset(), E.currentPosition()), m;
|
|
1316
1150
|
}
|
|
1317
1151
|
return { parse: P };
|
|
@@ -1322,7 +1156,7 @@ function le(e) {
|
|
|
1322
1156
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
1323
1157
|
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
1324
1158
|
}
|
|
1325
|
-
function
|
|
1159
|
+
function ws(e, t = {}) {
|
|
1326
1160
|
const n = {
|
|
1327
1161
|
ast: e,
|
|
1328
1162
|
helpers: /* @__PURE__ */ new Set()
|
|
@@ -1331,9 +1165,9 @@ function Xs(e, t = {}) {
|
|
|
1331
1165
|
}
|
|
1332
1166
|
function Dn(e, t) {
|
|
1333
1167
|
for (let n = 0; n < e.length; n++)
|
|
1334
|
-
|
|
1168
|
+
cn(e[n], t);
|
|
1335
1169
|
}
|
|
1336
|
-
function
|
|
1170
|
+
function cn(e, t) {
|
|
1337
1171
|
switch (e.type) {
|
|
1338
1172
|
case 1:
|
|
1339
1173
|
Dn(e.cases, t), t.helper(
|
|
@@ -1345,7 +1179,7 @@ function an(e, t) {
|
|
|
1345
1179
|
Dn(e.items, t);
|
|
1346
1180
|
break;
|
|
1347
1181
|
case 6: {
|
|
1348
|
-
|
|
1182
|
+
cn(e.key, t), t.helper(
|
|
1349
1183
|
"linked"
|
|
1350
1184
|
/* HelperNameMap.LINKED */
|
|
1351
1185
|
), t.helper(
|
|
@@ -1374,16 +1208,16 @@ function an(e, t) {
|
|
|
1374
1208
|
break;
|
|
1375
1209
|
}
|
|
1376
1210
|
}
|
|
1377
|
-
function
|
|
1378
|
-
const n =
|
|
1211
|
+
function Us(e, t = {}) {
|
|
1212
|
+
const n = ws(e);
|
|
1379
1213
|
n.helper(
|
|
1380
1214
|
"normalize"
|
|
1381
1215
|
/* HelperNameMap.NORMALIZE */
|
|
1382
|
-
), e.body &&
|
|
1216
|
+
), e.body && cn(e.body, n);
|
|
1383
1217
|
const r = n.context();
|
|
1384
1218
|
e.helpers = Array.from(r.helpers);
|
|
1385
1219
|
}
|
|
1386
|
-
function
|
|
1220
|
+
function Vs(e) {
|
|
1387
1221
|
const t = e.body;
|
|
1388
1222
|
return t.type === 2 ? Pn(t) : t.cases.forEach((n) => Pn(n)), e;
|
|
1389
1223
|
}
|
|
@@ -1400,7 +1234,7 @@ function Pn(e) {
|
|
|
1400
1234
|
t.push(r.value);
|
|
1401
1235
|
}
|
|
1402
1236
|
if (t.length === e.items.length) {
|
|
1403
|
-
e.static =
|
|
1237
|
+
e.static = ln(t);
|
|
1404
1238
|
for (let n = 0; n < e.items.length; n++) {
|
|
1405
1239
|
const r = e.items[n];
|
|
1406
1240
|
(r.type === 3 || r.type === 9) && delete r.value;
|
|
@@ -1408,7 +1242,7 @@ function Pn(e) {
|
|
|
1408
1242
|
}
|
|
1409
1243
|
}
|
|
1410
1244
|
}
|
|
1411
|
-
const
|
|
1245
|
+
const $s = "minifier";
|
|
1412
1246
|
function ke(e) {
|
|
1413
1247
|
switch (e.t = e.type, e.type) {
|
|
1414
1248
|
case 0: {
|
|
@@ -1456,14 +1290,14 @@ function ke(e) {
|
|
|
1456
1290
|
default:
|
|
1457
1291
|
if (process.env.NODE_ENV !== "production")
|
|
1458
1292
|
throw we(k.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
1459
|
-
domain:
|
|
1293
|
+
domain: $s,
|
|
1460
1294
|
args: [e.type]
|
|
1461
1295
|
});
|
|
1462
1296
|
}
|
|
1463
1297
|
delete e.type;
|
|
1464
1298
|
}
|
|
1465
|
-
const
|
|
1466
|
-
function
|
|
1299
|
+
const Ws = "parser";
|
|
1300
|
+
function Gs(e, t) {
|
|
1467
1301
|
const { filename: n, breakLineCode: r, needIndent: s } = t, o = t.location !== !1, i = {
|
|
1468
1302
|
filename: n,
|
|
1469
1303
|
code: "",
|
|
@@ -1505,14 +1339,14 @@ function zs(e, t) {
|
|
|
1505
1339
|
needIndent: () => i.needIndent
|
|
1506
1340
|
};
|
|
1507
1341
|
}
|
|
1508
|
-
function
|
|
1342
|
+
function Ys(e, t) {
|
|
1509
1343
|
const { helper: n } = e;
|
|
1510
1344
|
e.push(`${n(
|
|
1511
1345
|
"linked"
|
|
1512
1346
|
/* HelperNameMap.LINKED */
|
|
1513
1347
|
)}(`), Fe(e, t.key), t.modifier ? (e.push(", "), Fe(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
1514
1348
|
}
|
|
1515
|
-
function
|
|
1349
|
+
function Hs(e, t) {
|
|
1516
1350
|
const { helper: n, needIndent: r } = e;
|
|
1517
1351
|
e.push(`${n(
|
|
1518
1352
|
"normalize"
|
|
@@ -1523,7 +1357,7 @@ function to(e, t) {
|
|
|
1523
1357
|
e.push(", ");
|
|
1524
1358
|
e.deindent(r()), e.push("])");
|
|
1525
1359
|
}
|
|
1526
|
-
function
|
|
1360
|
+
function xs(e, t) {
|
|
1527
1361
|
const { helper: n, needIndent: r } = e;
|
|
1528
1362
|
if (t.cases.length > 1) {
|
|
1529
1363
|
e.push(`${n(
|
|
@@ -1536,23 +1370,23 @@ function no(e, t) {
|
|
|
1536
1370
|
e.deindent(r()), e.push("])");
|
|
1537
1371
|
}
|
|
1538
1372
|
}
|
|
1539
|
-
function
|
|
1373
|
+
function js(e, t) {
|
|
1540
1374
|
t.body ? Fe(e, t.body) : e.push("null");
|
|
1541
1375
|
}
|
|
1542
1376
|
function Fe(e, t) {
|
|
1543
1377
|
const { helper: n } = e;
|
|
1544
1378
|
switch (t.type) {
|
|
1545
1379
|
case 0:
|
|
1546
|
-
|
|
1380
|
+
js(e, t);
|
|
1547
1381
|
break;
|
|
1548
1382
|
case 1:
|
|
1549
|
-
|
|
1383
|
+
xs(e, t);
|
|
1550
1384
|
break;
|
|
1551
1385
|
case 2:
|
|
1552
|
-
|
|
1386
|
+
Hs(e, t);
|
|
1553
1387
|
break;
|
|
1554
1388
|
case 6:
|
|
1555
|
-
|
|
1389
|
+
Ys(e, t);
|
|
1556
1390
|
break;
|
|
1557
1391
|
case 8:
|
|
1558
1392
|
e.push(JSON.stringify(t.value), t);
|
|
@@ -1587,21 +1421,21 @@ function Fe(e, t) {
|
|
|
1587
1421
|
default:
|
|
1588
1422
|
if (process.env.NODE_ENV !== "production")
|
|
1589
1423
|
throw we(k.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
1590
|
-
domain:
|
|
1424
|
+
domain: Ws,
|
|
1591
1425
|
args: [t.type]
|
|
1592
1426
|
});
|
|
1593
1427
|
}
|
|
1594
1428
|
}
|
|
1595
|
-
const
|
|
1429
|
+
const Bs = (e, t = {}) => {
|
|
1596
1430
|
const n = y(t.mode) ? t.mode : "normal", r = y(t.filename) ? t.filename : "message.intl";
|
|
1597
1431
|
t.sourceMap;
|
|
1598
1432
|
const s = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
1599
|
-
`, o = t.needIndent ? t.needIndent : n !== "arrow", i = e.helpers || [], c =
|
|
1433
|
+
`, o = t.needIndent ? t.needIndent : n !== "arrow", i = e.helpers || [], c = Gs(e, {
|
|
1600
1434
|
filename: r,
|
|
1601
1435
|
breakLineCode: s,
|
|
1602
1436
|
needIndent: o
|
|
1603
1437
|
});
|
|
1604
|
-
c.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), c.indent(o), i.length > 0 && (c.push(`const { ${
|
|
1438
|
+
c.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), c.indent(o), i.length > 0 && (c.push(`const { ${ln(i.map((L) => `${L}: _${L}`), ", ")} } = ctx`), c.newline()), c.push("return "), Fe(c, e), c.deindent(o), c.push("}"), delete e.helpers;
|
|
1605
1439
|
const { code: u, map: p } = c.context();
|
|
1606
1440
|
return {
|
|
1607
1441
|
ast: e,
|
|
@@ -1610,34 +1444,34 @@ const so = (e, t = {}) => {
|
|
|
1610
1444
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1611
1445
|
};
|
|
1612
1446
|
};
|
|
1613
|
-
function
|
|
1614
|
-
const n = Q({}, t), r = !!n.jit, s = !!n.minify, o = n.optimize == null ? !0 : n.optimize, c =
|
|
1615
|
-
return r ? (o &&
|
|
1447
|
+
function Ks(e, t = {}) {
|
|
1448
|
+
const n = Q({}, t), r = !!n.jit, s = !!n.minify, o = n.optimize == null ? !0 : n.optimize, c = Fs(n).parse(e);
|
|
1449
|
+
return r ? (o && Vs(c), s && ke(c), { ast: c, code: "" }) : (Us(c, n), Bs(c, n));
|
|
1616
1450
|
}
|
|
1617
|
-
function
|
|
1451
|
+
function Xs() {
|
|
1618
1452
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Ae().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Ae().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
1619
1453
|
}
|
|
1620
1454
|
function ae(e) {
|
|
1621
|
-
return $(e) &&
|
|
1455
|
+
return $(e) && un(e) === 0 && (oe(e, "b") || oe(e, "body"));
|
|
1622
1456
|
}
|
|
1623
1457
|
const or = ["b", "body"];
|
|
1624
|
-
function
|
|
1458
|
+
function qs(e) {
|
|
1625
1459
|
return Oe(e, or);
|
|
1626
1460
|
}
|
|
1627
1461
|
const ar = ["c", "cases"];
|
|
1628
|
-
function
|
|
1462
|
+
function Qs(e) {
|
|
1629
1463
|
return Oe(e, ar, []);
|
|
1630
1464
|
}
|
|
1631
1465
|
const ir = ["s", "static"];
|
|
1632
|
-
function
|
|
1466
|
+
function Js(e) {
|
|
1633
1467
|
return Oe(e, ir);
|
|
1634
1468
|
}
|
|
1635
1469
|
const lr = ["i", "items"];
|
|
1636
|
-
function
|
|
1470
|
+
function Zs(e) {
|
|
1637
1471
|
return Oe(e, lr, []);
|
|
1638
1472
|
}
|
|
1639
1473
|
const cr = ["t", "type"];
|
|
1640
|
-
function
|
|
1474
|
+
function un(e) {
|
|
1641
1475
|
return Oe(e, cr);
|
|
1642
1476
|
}
|
|
1643
1477
|
const ur = ["v", "value"];
|
|
@@ -1648,11 +1482,11 @@ function rt(e, t) {
|
|
|
1648
1482
|
throw Xe(t);
|
|
1649
1483
|
}
|
|
1650
1484
|
const fr = ["m", "modifier"];
|
|
1651
|
-
function
|
|
1485
|
+
function zs(e) {
|
|
1652
1486
|
return Oe(e, fr);
|
|
1653
1487
|
}
|
|
1654
1488
|
const _r = ["k", "key"];
|
|
1655
|
-
function
|
|
1489
|
+
function eo(e) {
|
|
1656
1490
|
const t = Oe(e, _r);
|
|
1657
1491
|
if (t)
|
|
1658
1492
|
return t;
|
|
@@ -1683,17 +1517,17 @@ function Xe(e) {
|
|
|
1683
1517
|
return new Error(`unhandled node type: ${e}`);
|
|
1684
1518
|
}
|
|
1685
1519
|
function Vt(e) {
|
|
1686
|
-
return (n) =>
|
|
1520
|
+
return (n) => to(n, e);
|
|
1687
1521
|
}
|
|
1688
|
-
function
|
|
1689
|
-
const n =
|
|
1522
|
+
function to(e, t) {
|
|
1523
|
+
const n = qs(t);
|
|
1690
1524
|
if (n == null)
|
|
1691
1525
|
throw Xe(
|
|
1692
1526
|
0
|
|
1693
1527
|
/* NodeTypes.Resource */
|
|
1694
1528
|
);
|
|
1695
|
-
if (
|
|
1696
|
-
const o =
|
|
1529
|
+
if (un(n) === 1) {
|
|
1530
|
+
const o = Qs(n);
|
|
1697
1531
|
return e.plural(o.reduce((i, c) => [
|
|
1698
1532
|
...i,
|
|
1699
1533
|
Rn(e, c)
|
|
@@ -1702,16 +1536,16 @@ function mo(e, t) {
|
|
|
1702
1536
|
return Rn(e, n);
|
|
1703
1537
|
}
|
|
1704
1538
|
function Rn(e, t) {
|
|
1705
|
-
const n =
|
|
1539
|
+
const n = Js(t);
|
|
1706
1540
|
if (n != null)
|
|
1707
1541
|
return e.type === "text" ? n : e.normalize([n]);
|
|
1708
1542
|
{
|
|
1709
|
-
const r =
|
|
1543
|
+
const r = Zs(t).reduce((s, o) => [...s, Kt(e, o)], []);
|
|
1710
1544
|
return e.normalize(r);
|
|
1711
1545
|
}
|
|
1712
1546
|
}
|
|
1713
1547
|
function Kt(e, t) {
|
|
1714
|
-
const n =
|
|
1548
|
+
const n = un(t);
|
|
1715
1549
|
switch (n) {
|
|
1716
1550
|
case 3:
|
|
1717
1551
|
return rt(t, n);
|
|
@@ -1734,7 +1568,7 @@ function Kt(e, t) {
|
|
|
1734
1568
|
throw Xe(n);
|
|
1735
1569
|
}
|
|
1736
1570
|
case 6: {
|
|
1737
|
-
const r = t, s =
|
|
1571
|
+
const r = t, s = zs(r), o = eo(r);
|
|
1738
1572
|
return e.linked(Kt(e, o), s ? Kt(e, s) : void 0, e.type);
|
|
1739
1573
|
}
|
|
1740
1574
|
case 7:
|
|
@@ -1745,28 +1579,28 @@ function Kt(e, t) {
|
|
|
1745
1579
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1746
1580
|
}
|
|
1747
1581
|
}
|
|
1748
|
-
const
|
|
1749
|
-
function
|
|
1750
|
-
t &&
|
|
1582
|
+
const no = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
1583
|
+
function ro(e, t) {
|
|
1584
|
+
t && bs(e) && ue(Lt(no, { source: e }));
|
|
1751
1585
|
}
|
|
1752
|
-
const
|
|
1586
|
+
const so = (e) => e;
|
|
1753
1587
|
let st = G();
|
|
1754
|
-
function
|
|
1588
|
+
function oo(e, t = {}) {
|
|
1755
1589
|
let n = !1;
|
|
1756
|
-
const r = t.onError ||
|
|
1590
|
+
const r = t.onError || Ts;
|
|
1757
1591
|
return t.onError = (s) => {
|
|
1758
1592
|
n = !0, r(s);
|
|
1759
|
-
}, { ...
|
|
1593
|
+
}, { ...Ks(e, t), detectError: n };
|
|
1760
1594
|
}
|
|
1761
1595
|
// @__NO_SIDE_EFFECTS__
|
|
1762
|
-
function
|
|
1596
|
+
function ao(e, t) {
|
|
1763
1597
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && y(e)) {
|
|
1764
1598
|
const n = B(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
1765
|
-
process.env.NODE_ENV !== "production" &&
|
|
1766
|
-
const s = (t.onCacheKey ||
|
|
1599
|
+
process.env.NODE_ENV !== "production" && ro(e, n);
|
|
1600
|
+
const s = (t.onCacheKey || so)(e), o = st[s];
|
|
1767
1601
|
if (o)
|
|
1768
1602
|
return o;
|
|
1769
|
-
const { ast: i, detectError: c } =
|
|
1603
|
+
const { ast: i, detectError: c } = oo(e, {
|
|
1770
1604
|
...t,
|
|
1771
1605
|
location: process.env.NODE_ENV !== "production",
|
|
1772
1606
|
jit: !0
|
|
@@ -1784,10 +1618,10 @@ function Oo(e, t) {
|
|
|
1784
1618
|
}
|
|
1785
1619
|
}
|
|
1786
1620
|
let qe = null;
|
|
1787
|
-
function
|
|
1621
|
+
function io(e) {
|
|
1788
1622
|
qe = e;
|
|
1789
1623
|
}
|
|
1790
|
-
function
|
|
1624
|
+
function lo(e, t, n) {
|
|
1791
1625
|
qe && qe.emit("i18n:init", {
|
|
1792
1626
|
timestamp: Date.now(),
|
|
1793
1627
|
i18n: e,
|
|
@@ -1795,12 +1629,12 @@ function ho(e, t, n) {
|
|
|
1795
1629
|
meta: n
|
|
1796
1630
|
});
|
|
1797
1631
|
}
|
|
1798
|
-
const
|
|
1799
|
-
function
|
|
1632
|
+
const co = /* @__PURE__ */ uo("function:translate");
|
|
1633
|
+
function uo(e) {
|
|
1800
1634
|
return (t) => qe && qe.emit(e, t);
|
|
1801
1635
|
}
|
|
1802
1636
|
const ee = {
|
|
1803
|
-
INVALID_ARGUMENT:
|
|
1637
|
+
INVALID_ARGUMENT: Ls,
|
|
1804
1638
|
// 17
|
|
1805
1639
|
INVALID_DATE_ARGUMENT: 18,
|
|
1806
1640
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1808,11 +1642,11 @@ const ee = {
|
|
|
1808
1642
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1809
1643
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1810
1644
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1811
|
-
},
|
|
1645
|
+
}, fo = 24;
|
|
1812
1646
|
function Ee(e) {
|
|
1813
|
-
return we(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
1647
|
+
return we(e, null, process.env.NODE_ENV !== "production" ? { messages: _o } : void 0);
|
|
1814
1648
|
}
|
|
1815
|
-
const
|
|
1649
|
+
const _o = {
|
|
1816
1650
|
[ee.INVALID_ARGUMENT]: "Invalid arguments",
|
|
1817
1651
|
[ee.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
1818
1652
|
[ee.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
@@ -1821,7 +1655,7 @@ const Co = {
|
|
|
1821
1655
|
[ee.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
|
|
1822
1656
|
[ee.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
|
|
1823
1657
|
};
|
|
1824
|
-
function
|
|
1658
|
+
function fn(e, t) {
|
|
1825
1659
|
return t.locale != null ? kn(t.locale) : kn(e.locale);
|
|
1826
1660
|
}
|
|
1827
1661
|
let $t;
|
|
@@ -1833,7 +1667,7 @@ function kn(e) {
|
|
|
1833
1667
|
return $t;
|
|
1834
1668
|
if (e.constructor.name === "Function") {
|
|
1835
1669
|
const t = e();
|
|
1836
|
-
if (
|
|
1670
|
+
if (Es(t))
|
|
1837
1671
|
throw Ee(ee.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1838
1672
|
return $t = t;
|
|
1839
1673
|
} else
|
|
@@ -1841,14 +1675,14 @@ function kn(e) {
|
|
|
1841
1675
|
} else
|
|
1842
1676
|
throw Ee(ee.NOT_SUPPORT_LOCALE_TYPE);
|
|
1843
1677
|
}
|
|
1844
|
-
function
|
|
1678
|
+
function mo(e, t, n) {
|
|
1845
1679
|
return [.../* @__PURE__ */ new Set([
|
|
1846
1680
|
n,
|
|
1847
1681
|
...K(t) ? t : $(t) ? Object.keys(t) : y(t) ? [t] : [n]
|
|
1848
1682
|
])];
|
|
1849
1683
|
}
|
|
1850
1684
|
function mr(e, t, n) {
|
|
1851
|
-
const r = y(n) ? n :
|
|
1685
|
+
const r = y(n) ? n : _t, s = e;
|
|
1852
1686
|
s.__localeChainCache || (s.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1853
1687
|
let o = s.__localeChainCache.get(r);
|
|
1854
1688
|
if (!o) {
|
|
@@ -1865,20 +1699,20 @@ function Mn(e, t, n) {
|
|
|
1865
1699
|
let r = !0;
|
|
1866
1700
|
for (let s = 0; s < t.length && B(r); s++) {
|
|
1867
1701
|
const o = t[s];
|
|
1868
|
-
y(o) && (r =
|
|
1702
|
+
y(o) && (r = Eo(e, t[s], n));
|
|
1869
1703
|
}
|
|
1870
1704
|
return r;
|
|
1871
1705
|
}
|
|
1872
|
-
function
|
|
1706
|
+
function Eo(e, t, n) {
|
|
1873
1707
|
let r;
|
|
1874
1708
|
const s = t.split("-");
|
|
1875
1709
|
do {
|
|
1876
1710
|
const o = s.join("-");
|
|
1877
|
-
r =
|
|
1711
|
+
r = po(e, o, n), s.splice(-1, 1);
|
|
1878
1712
|
} while (s.length && r === !0);
|
|
1879
1713
|
return r;
|
|
1880
1714
|
}
|
|
1881
|
-
function
|
|
1715
|
+
function po(e, t, n) {
|
|
1882
1716
|
let r = !1;
|
|
1883
1717
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1884
1718
|
r = t[t.length - 1] !== "!";
|
|
@@ -2048,15 +1882,15 @@ Le[
|
|
|
2048
1882
|
/* Actions.APPEND */
|
|
2049
1883
|
]
|
|
2050
1884
|
};
|
|
2051
|
-
const
|
|
2052
|
-
function
|
|
2053
|
-
return
|
|
1885
|
+
const No = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1886
|
+
function go(e) {
|
|
1887
|
+
return No.test(e);
|
|
2054
1888
|
}
|
|
2055
|
-
function
|
|
1889
|
+
function Oo(e) {
|
|
2056
1890
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
2057
1891
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
2058
1892
|
}
|
|
2059
|
-
function
|
|
1893
|
+
function Lo(e) {
|
|
2060
1894
|
if (e == null)
|
|
2061
1895
|
return "o";
|
|
2062
1896
|
switch (e.charCodeAt(0)) {
|
|
@@ -2093,11 +1927,11 @@ function Ro(e) {
|
|
|
2093
1927
|
}
|
|
2094
1928
|
return "i";
|
|
2095
1929
|
}
|
|
2096
|
-
function
|
|
1930
|
+
function ho(e) {
|
|
2097
1931
|
const t = e.trim();
|
|
2098
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1932
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : go(t) ? Oo(t) : "*" + t;
|
|
2099
1933
|
}
|
|
2100
|
-
function
|
|
1934
|
+
function To(e) {
|
|
2101
1935
|
const t = [];
|
|
2102
1936
|
let n = -1, r = 0, s = 0, o, i, c, u, p, L, T;
|
|
2103
1937
|
const g = [];
|
|
@@ -2129,7 +1963,7 @@ function Mo(e) {
|
|
|
2129
1963
|
/* Actions.APPEND */
|
|
2130
1964
|
]();
|
|
2131
1965
|
else {
|
|
2132
|
-
if (s = 0, i === void 0 || (i =
|
|
1966
|
+
if (s = 0, i === void 0 || (i = ho(i), i === !1))
|
|
2133
1967
|
return !1;
|
|
2134
1968
|
g[
|
|
2135
1969
|
1
|
|
@@ -2147,21 +1981,21 @@ function Mo(e) {
|
|
|
2147
1981
|
}
|
|
2148
1982
|
for (; r !== null; )
|
|
2149
1983
|
if (n++, o = e[n], !(o === "\\" && v())) {
|
|
2150
|
-
if (u =
|
|
1984
|
+
if (u = Lo(o), T = Le[r], p = T[u] || T.l || 8, p === 8 || (r = p[0], p[1] !== void 0 && (L = g[p[1]], L && (c = o, L() === !1))))
|
|
2151
1985
|
return;
|
|
2152
1986
|
if (r === 7)
|
|
2153
1987
|
return t;
|
|
2154
1988
|
}
|
|
2155
1989
|
}
|
|
2156
1990
|
const Fn = /* @__PURE__ */ new Map();
|
|
2157
|
-
function
|
|
1991
|
+
function Io(e, t) {
|
|
2158
1992
|
return $(e) ? e[t] : null;
|
|
2159
1993
|
}
|
|
2160
|
-
function
|
|
1994
|
+
function bo(e, t) {
|
|
2161
1995
|
if (!$(e))
|
|
2162
1996
|
return null;
|
|
2163
1997
|
let n = Fn.get(t);
|
|
2164
|
-
if (n || (n =
|
|
1998
|
+
if (n || (n = To(t), n && Fn.set(t, n)), !n)
|
|
2165
1999
|
return null;
|
|
2166
2000
|
const r = n.length;
|
|
2167
2001
|
let s = e, o = 0;
|
|
@@ -2184,7 +2018,7 @@ const te = {
|
|
|
2184
2018
|
CANNOT_FORMAT_DATE: 5,
|
|
2185
2019
|
FALLBACK_TO_DATE_FORMAT: 6,
|
|
2186
2020
|
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
|
|
2187
|
-
},
|
|
2021
|
+
}, Co = 8, Ao = {
|
|
2188
2022
|
[te.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
2189
2023
|
[te.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
2190
2024
|
[te.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
@@ -2194,10 +2028,10 @@ const te = {
|
|
|
2194
2028
|
[te.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."
|
|
2195
2029
|
};
|
|
2196
2030
|
function ye(e, ...t) {
|
|
2197
|
-
return Lt(
|
|
2031
|
+
return Lt(Ao[e], ...t);
|
|
2198
2032
|
}
|
|
2199
|
-
const
|
|
2200
|
-
function
|
|
2033
|
+
const vo = "11.2.2", Tt = -1, _t = "en-US", dt = "", wn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
2034
|
+
function So() {
|
|
2201
2035
|
return {
|
|
2202
2036
|
upper: (e, t) => t === "text" && y(e) ? e.toUpperCase() : t === "vnode" && $(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
2203
2037
|
lower: (e, t) => t === "text" && y(e) ? e.toLowerCase() : t === "vnode" && $(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
@@ -2205,30 +2039,30 @@ function Wo() {
|
|
|
2205
2039
|
};
|
|
2206
2040
|
}
|
|
2207
2041
|
let Er;
|
|
2208
|
-
function
|
|
2042
|
+
function yo(e) {
|
|
2209
2043
|
Er = e;
|
|
2210
2044
|
}
|
|
2211
2045
|
let pr;
|
|
2212
|
-
function
|
|
2046
|
+
function Do(e) {
|
|
2213
2047
|
pr = e;
|
|
2214
2048
|
}
|
|
2215
2049
|
let Nr;
|
|
2216
|
-
function
|
|
2050
|
+
function Po(e) {
|
|
2217
2051
|
Nr = e;
|
|
2218
2052
|
}
|
|
2219
2053
|
let gr = null;
|
|
2220
|
-
const
|
|
2054
|
+
const Ro = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
2221
2055
|
gr = e;
|
|
2222
|
-
},
|
|
2056
|
+
}, ko = /* @__NO_SIDE_EFFECTS__ */ () => gr;
|
|
2223
2057
|
let Or = null;
|
|
2224
2058
|
const Un = (e) => {
|
|
2225
2059
|
Or = e;
|
|
2226
|
-
},
|
|
2060
|
+
}, Mo = () => Or;
|
|
2227
2061
|
let Vn = 0;
|
|
2228
|
-
function
|
|
2229
|
-
const t = H(e.onWarn) ? e.onWarn : ue, n = y(e.version) ? e.version :
|
|
2230
|
-
process.env.NODE_ENV !== "production" && H(e.messageCompiler) &&
|
|
2231
|
-
const I = H(e.messageResolver) ? e.messageResolver : pr ||
|
|
2062
|
+
function Fo(e = {}) {
|
|
2063
|
+
const t = H(e.onWarn) ? e.onWarn : ue, n = y(e.version) ? e.version : vo, r = y(e.locale) || H(e.locale) ? e.locale : _t, s = H(r) ? _t : r, o = K(e.fallbackLocale) || V(e.fallbackLocale) || y(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, i = V(e.messages) ? e.messages : Wt(s), c = V(e.datetimeFormats) ? e.datetimeFormats : Wt(s), u = V(e.numberFormats) ? e.numberFormats : Wt(s), p = Q(G(), e.modifiers, So()), L = e.pluralRules || G(), T = H(e.missing) ? e.missing : null, g = B(e.missingWarn) || ft(e.missingWarn) ? e.missingWarn : !0, v = B(e.fallbackWarn) || ft(e.fallbackWarn) ? e.fallbackWarn : !0, R = !!e.fallbackFormat, S = !!e.unresolving, P = H(e.postTranslation) ? e.postTranslation : null, _ = V(e.processor) ? e.processor : null, E = B(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, h = !!e.escapeParameter, m = H(e.messageCompiler) ? e.messageCompiler : Er;
|
|
2064
|
+
process.env.NODE_ENV !== "production" && H(e.messageCompiler) && is(ye(te.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
2065
|
+
const I = H(e.messageResolver) ? e.messageResolver : pr || Io, C = H(e.localeFallbacker) ? e.localeFallbacker : Nr || mo, f = $(e.fallbackContext) ? e.fallbackContext : void 0, w = e, F = $(w.__datetimeFormatters) ? w.__datetimeFormatters : /* @__PURE__ */ new Map(), b = $(w.__numberFormatters) ? w.__numberFormatters : /* @__PURE__ */ new Map(), A = $(w.__meta) ? w.__meta : {};
|
|
2232
2066
|
Vn++;
|
|
2233
2067
|
const M = {
|
|
2234
2068
|
version: n,
|
|
@@ -2254,7 +2088,7 @@ function Ko(e = {}) {
|
|
|
2254
2088
|
onWarn: t,
|
|
2255
2089
|
__meta: A
|
|
2256
2090
|
};
|
|
2257
|
-
return M.datetimeFormats = c, M.numberFormats = u, M.__datetimeFormatters = F, M.__numberFormatters = b, process.env.NODE_ENV !== "production" && (M.__v_emitter = w.__v_emitter != null ? w.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) &&
|
|
2091
|
+
return M.datetimeFormats = c, M.numberFormats = u, M.__datetimeFormatters = F, M.__numberFormatters = b, process.env.NODE_ENV !== "production" && (M.__v_emitter = w.__v_emitter != null ? w.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && lo(M, n, A), M;
|
|
2258
2092
|
}
|
|
2259
2093
|
const Wt = (e) => ({ [e]: G() });
|
|
2260
2094
|
function It(e, t) {
|
|
@@ -2263,7 +2097,7 @@ function It(e, t) {
|
|
|
2263
2097
|
function Lr(e, t) {
|
|
2264
2098
|
return e instanceof RegExp ? e.test(t) : e;
|
|
2265
2099
|
}
|
|
2266
|
-
function
|
|
2100
|
+
function _n(e, t, n, r, s) {
|
|
2267
2101
|
const { missing: o, onWarn: i } = e;
|
|
2268
2102
|
if (process.env.NODE_ENV !== "production") {
|
|
2269
2103
|
const c = e.__v_emitter;
|
|
@@ -2287,7 +2121,7 @@ function He(e, t, n) {
|
|
|
2287
2121
|
function hr(e, t) {
|
|
2288
2122
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
2289
2123
|
}
|
|
2290
|
-
function
|
|
2124
|
+
function wo(e, t) {
|
|
2291
2125
|
const n = t.indexOf(e);
|
|
2292
2126
|
if (n === -1)
|
|
2293
2127
|
return !1;
|
|
@@ -2303,8 +2137,8 @@ const $n = typeof Intl < "u", Tr = {
|
|
|
2303
2137
|
function Wn(e, ...t) {
|
|
2304
2138
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: s, onWarn: o, localeFallbacker: i } = e, { __datetimeFormatters: c } = e;
|
|
2305
2139
|
if (process.env.NODE_ENV !== "production" && !Tr.dateTimeFormat)
|
|
2306
|
-
return o(ye(te.CANNOT_FORMAT_DATE)),
|
|
2307
|
-
const [u, p, L, T] = Xt(...t), g = B(L.missingWarn) ? L.missingWarn : e.missingWarn, v = B(L.fallbackWarn) ? L.fallbackWarn : e.fallbackWarn, R = !!L.part, S =
|
|
2140
|
+
return o(ye(te.CANNOT_FORMAT_DATE)), dt;
|
|
2141
|
+
const [u, p, L, T] = Xt(...t), g = B(L.missingWarn) ? L.missingWarn : e.missingWarn, v = B(L.fallbackWarn) ? L.fallbackWarn : e.fallbackWarn, R = !!L.part, S = fn(e, L), P = i(
|
|
2308
2142
|
e,
|
|
2309
2143
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2310
2144
|
s,
|
|
@@ -2330,7 +2164,7 @@ function Wn(e, ...t) {
|
|
|
2330
2164
|
}
|
|
2331
2165
|
if (_ = n[E] || {}, h = _[u], V(h))
|
|
2332
2166
|
break;
|
|
2333
|
-
|
|
2167
|
+
_n(e, u, E, g, C), m = I;
|
|
2334
2168
|
}
|
|
2335
2169
|
if (!V(h) || !y(E))
|
|
2336
2170
|
return r ? Tt : u;
|
|
@@ -2375,7 +2209,7 @@ function Xt(...e) {
|
|
|
2375
2209
|
} catch {
|
|
2376
2210
|
throw Ee(ee.INVALID_ISO_DATE_ARGUMENT);
|
|
2377
2211
|
}
|
|
2378
|
-
} else if (
|
|
2212
|
+
} else if (fs(t)) {
|
|
2379
2213
|
if (isNaN(t.getTime()))
|
|
2380
2214
|
throw Ee(ee.INVALID_DATE_ARGUMENT);
|
|
2381
2215
|
c = t;
|
|
@@ -2397,8 +2231,8 @@ function Gn(e, t, n) {
|
|
|
2397
2231
|
function Yn(e, ...t) {
|
|
2398
2232
|
const { numberFormats: n, unresolving: r, fallbackLocale: s, onWarn: o, localeFallbacker: i } = e, { __numberFormatters: c } = e;
|
|
2399
2233
|
if (process.env.NODE_ENV !== "production" && !Tr.numberFormat)
|
|
2400
|
-
return o(ye(te.CANNOT_FORMAT_NUMBER)),
|
|
2401
|
-
const [u, p, L, T] = qt(...t), g = B(L.missingWarn) ? L.missingWarn : e.missingWarn, v = B(L.fallbackWarn) ? L.fallbackWarn : e.fallbackWarn, R = !!L.part, S =
|
|
2234
|
+
return o(ye(te.CANNOT_FORMAT_NUMBER)), dt;
|
|
2235
|
+
const [u, p, L, T] = qt(...t), g = B(L.missingWarn) ? L.missingWarn : e.missingWarn, v = B(L.fallbackWarn) ? L.fallbackWarn : e.fallbackWarn, R = !!L.part, S = fn(e, L), P = i(
|
|
2402
2236
|
e,
|
|
2403
2237
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2404
2238
|
s,
|
|
@@ -2424,7 +2258,7 @@ function Yn(e, ...t) {
|
|
|
2424
2258
|
}
|
|
2425
2259
|
if (_ = n[E] || {}, h = _[u], V(h))
|
|
2426
2260
|
break;
|
|
2427
|
-
|
|
2261
|
+
_n(e, u, E, g, C), m = I;
|
|
2428
2262
|
}
|
|
2429
2263
|
if (!V(h) || !y(E))
|
|
2430
2264
|
return r ? Tt : u;
|
|
@@ -2472,26 +2306,26 @@ function Hn(e, t, n) {
|
|
|
2472
2306
|
r.__numberFormatters.has(o) && r.__numberFormatters.delete(o);
|
|
2473
2307
|
}
|
|
2474
2308
|
}
|
|
2475
|
-
const
|
|
2309
|
+
const Uo = (e) => e, Vo = (e) => "", $o = "text", Wo = (e) => e.length === 0 ? "" : ln(e), Go = ps;
|
|
2476
2310
|
function xn(e, t) {
|
|
2477
2311
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
2478
2312
|
}
|
|
2479
|
-
function
|
|
2313
|
+
function Yo(e) {
|
|
2480
2314
|
const t = q(e.pluralIndex) ? e.pluralIndex : -1;
|
|
2481
2315
|
return e.named && (q(e.named.count) || q(e.named.n)) ? q(e.named.count) ? e.named.count : q(e.named.n) ? e.named.n : t : t;
|
|
2482
2316
|
}
|
|
2483
|
-
function
|
|
2317
|
+
function Ho(e, t) {
|
|
2484
2318
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
2485
2319
|
}
|
|
2486
|
-
function
|
|
2487
|
-
const t = e.locale, n =
|
|
2488
|
-
q(e.pluralIndex) &&
|
|
2320
|
+
function xo(e = {}) {
|
|
2321
|
+
const t = e.locale, n = Yo(e), r = $(e.pluralRules) && y(t) && H(e.pluralRules[t]) ? e.pluralRules[t] : xn, s = $(e.pluralRules) && y(t) && H(e.pluralRules[t]) ? xn : void 0, o = (_) => _[r(n, _.length, s)], i = e.list || [], c = (_) => i[_], u = e.named || G();
|
|
2322
|
+
q(e.pluralIndex) && Ho(n, u);
|
|
2489
2323
|
const p = (_) => u[_];
|
|
2490
2324
|
function L(_, E) {
|
|
2491
2325
|
const h = H(e.messages) ? e.messages(_, !!E) : $(e.messages) ? e.messages[_] : !1;
|
|
2492
|
-
return h || (e.parent ? e.parent.message(_) :
|
|
2326
|
+
return h || (e.parent ? e.parent.message(_) : Vo);
|
|
2493
2327
|
}
|
|
2494
|
-
const T = (_) => e.modifiers ? e.modifiers[_] :
|
|
2328
|
+
const T = (_) => e.modifiers ? e.modifiers[_] : Uo, g = V(e.processor) && H(e.processor.normalize) ? e.processor.normalize : Wo, v = V(e.processor) && H(e.processor.interpolate) ? e.processor.interpolate : Go, R = V(e.processor) && y(e.processor.type) ? e.processor.type : $o, P = {
|
|
2495
2329
|
list: c,
|
|
2496
2330
|
named: p,
|
|
2497
2331
|
plural: o,
|
|
@@ -2515,8 +2349,8 @@ function na(e = {}) {
|
|
|
2515
2349
|
}
|
|
2516
2350
|
const jn = () => "", se = (e) => H(e);
|
|
2517
2351
|
function Bn(e, ...t) {
|
|
2518
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: o, fallbackLocale: i, messages: c } = e, [u, p] = Qt(...t), L = B(p.missingWarn) ? p.missingWarn : e.missingWarn, T = B(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, g = B(p.escapeParameter) ? p.escapeParameter : e.escapeParameter, v = !!p.resolvedMessage, R = y(p.default) || B(p.default) ? B(p.default) ? o ? u : () => u : p.default : n ? o ? u : () => u : null, S = n || R != null && (y(R) || H(R)), P =
|
|
2519
|
-
g &&
|
|
2352
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: o, fallbackLocale: i, messages: c } = e, [u, p] = Qt(...t), L = B(p.missingWarn) ? p.missingWarn : e.missingWarn, T = B(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, g = B(p.escapeParameter) ? p.escapeParameter : e.escapeParameter, v = !!p.resolvedMessage, R = y(p.default) || B(p.default) ? B(p.default) ? o ? u : () => u : p.default : n ? o ? u : () => u : null, S = n || R != null && (y(R) || H(R)), P = fn(e, p);
|
|
2353
|
+
g && jo(p);
|
|
2520
2354
|
let [_, E, h] = v ? [
|
|
2521
2355
|
u,
|
|
2522
2356
|
P,
|
|
@@ -2532,9 +2366,9 @@ function Bn(e, ...t) {
|
|
|
2532
2366
|
}, w = se(m) ? m : Ar(e, u, E, m, I, f);
|
|
2533
2367
|
if (C)
|
|
2534
2368
|
return m;
|
|
2535
|
-
const F =
|
|
2369
|
+
const F = qo(e, E, h, p), b = xo(F), A = Bo(e, w, b);
|
|
2536
2370
|
let M = r ? r(A, u) : A;
|
|
2537
|
-
if (g && y(M) && (M =
|
|
2371
|
+
if (g && y(M) && (M = ds(M)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2538
2372
|
const X = {
|
|
2539
2373
|
timestamp: Date.now(),
|
|
2540
2374
|
key: y(u) ? u : se(m) ? m.key : "",
|
|
@@ -2542,11 +2376,11 @@ function Bn(e, ...t) {
|
|
|
2542
2376
|
format: y(m) ? m : se(m) ? m.source : "",
|
|
2543
2377
|
message: M
|
|
2544
2378
|
};
|
|
2545
|
-
X.meta = Q({}, e.__meta, /* @__PURE__ */
|
|
2379
|
+
X.meta = Q({}, e.__meta, /* @__PURE__ */ ko() || {}), co(X);
|
|
2546
2380
|
}
|
|
2547
2381
|
return M;
|
|
2548
2382
|
}
|
|
2549
|
-
function
|
|
2383
|
+
function jo(e) {
|
|
2550
2384
|
K(e.list) ? e.list = e.list.map((t) => y(t) ? An(t) : t) : $(e.named) && Object.keys(e.named).forEach((t) => {
|
|
2551
2385
|
y(e.named[t]) && (e.named[t] = An(e.named[t]));
|
|
2552
2386
|
});
|
|
@@ -2583,8 +2417,8 @@ function Cr(e, t, n, r, s, o) {
|
|
|
2583
2417
|
}
|
|
2584
2418
|
if (y(v) || ae(v) || se(v))
|
|
2585
2419
|
break;
|
|
2586
|
-
if (!
|
|
2587
|
-
const I =
|
|
2420
|
+
if (!wo(g, L)) {
|
|
2421
|
+
const I = _n(
|
|
2588
2422
|
e,
|
|
2589
2423
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2590
2424
|
t,
|
|
@@ -2610,7 +2444,7 @@ function Ar(e, t, n, r, s, o) {
|
|
|
2610
2444
|
}
|
|
2611
2445
|
let u = null, p, L;
|
|
2612
2446
|
process.env.NODE_ENV !== "production" && pe && (u = window.performance.now(), p = "intlify-message-compilation-start", L = "intlify-message-compilation-end", ne && ne(p));
|
|
2613
|
-
const T = i(r,
|
|
2447
|
+
const T = i(r, Ko(e, n, s, r, c, o));
|
|
2614
2448
|
if (process.env.NODE_ENV !== "production" && pe) {
|
|
2615
2449
|
const g = window.performance.now(), v = e.__v_emitter;
|
|
2616
2450
|
v && u && v.emit("message-compilation", {
|
|
@@ -2622,7 +2456,7 @@ function Ar(e, t, n, r, s, o) {
|
|
|
2622
2456
|
}
|
|
2623
2457
|
return T.locale = n, T.key = t, T.source = r, T;
|
|
2624
2458
|
}
|
|
2625
|
-
function
|
|
2459
|
+
function Bo(e, t, n) {
|
|
2626
2460
|
let r = null, s, o;
|
|
2627
2461
|
process.env.NODE_ENV !== "production" && pe && (r = window.performance.now(), s = "intlify-message-evaluation-start", o = "intlify-message-evaluation-end", ne && ne(s));
|
|
2628
2462
|
const i = t(n);
|
|
@@ -2644,14 +2478,14 @@ function Qt(...e) {
|
|
|
2644
2478
|
const o = q(t) ? String(t) : (se(t), t);
|
|
2645
2479
|
return q(n) ? s.plural = n : y(n) ? s.default = n : V(n) && !ht(n) ? s.named = n : K(n) && (s.list = n), q(r) ? s.plural = r : y(r) ? s.default = r : V(r) && Q(s, r), [o, s];
|
|
2646
2480
|
}
|
|
2647
|
-
function
|
|
2481
|
+
function Ko(e, t, n, r, s, o) {
|
|
2648
2482
|
return {
|
|
2649
2483
|
locale: t,
|
|
2650
2484
|
key: n,
|
|
2651
2485
|
warnHtmlMessage: s,
|
|
2652
2486
|
onError: (i) => {
|
|
2653
2487
|
if (o && o(i), process.env.NODE_ENV !== "production") {
|
|
2654
|
-
const c =
|
|
2488
|
+
const c = Xo(r), u = `Message compilation error: ${i.message}`, p = i.location && c && Ns(c, i.location.start.offset, i.location.end.offset), L = e.__v_emitter;
|
|
2655
2489
|
L && c && L.emit("compile-error", {
|
|
2656
2490
|
message: c,
|
|
2657
2491
|
error: i.message,
|
|
@@ -2663,16 +2497,16 @@ ${p}` : u);
|
|
|
2663
2497
|
} else
|
|
2664
2498
|
throw i;
|
|
2665
2499
|
},
|
|
2666
|
-
onCacheKey: (i) =>
|
|
2500
|
+
onCacheKey: (i) => cs(t, n, i)
|
|
2667
2501
|
};
|
|
2668
2502
|
}
|
|
2669
|
-
function
|
|
2503
|
+
function Xo(e) {
|
|
2670
2504
|
if (y(e))
|
|
2671
2505
|
return e;
|
|
2672
2506
|
if (e.loc && e.loc.source)
|
|
2673
2507
|
return e.loc.source;
|
|
2674
2508
|
}
|
|
2675
|
-
function
|
|
2509
|
+
function qo(e, t, n, r) {
|
|
2676
2510
|
const { modifiers: s, pluralRules: o, messageResolver: i, fallbackLocale: c, fallbackWarn: u, missingWarn: p, fallbackContext: L } = e, g = {
|
|
2677
2511
|
locale: t,
|
|
2678
2512
|
modifiers: s,
|
|
@@ -2702,14 +2536,14 @@ function ia(e, t, n, r) {
|
|
|
2702
2536
|
};
|
|
2703
2537
|
return e.processor && (g.processor = e.processor), r.list && (g.list = r.list), r.named && (g.named = r.named), q(r.plural) && (g.pluralIndex = r.plural), g;
|
|
2704
2538
|
}
|
|
2705
|
-
|
|
2706
|
-
const
|
|
2707
|
-
function
|
|
2539
|
+
Xs();
|
|
2540
|
+
const Qo = "11.2.2";
|
|
2541
|
+
function Jo() {
|
|
2708
2542
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Ae().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Ae().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Ae().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Ae().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
2709
2543
|
}
|
|
2710
2544
|
const J = {
|
|
2711
2545
|
// composer module errors
|
|
2712
|
-
UNEXPECTED_RETURN_TYPE:
|
|
2546
|
+
UNEXPECTED_RETURN_TYPE: fo,
|
|
2713
2547
|
// 24
|
|
2714
2548
|
// legacy module errors
|
|
2715
2549
|
INVALID_ARGUMENT: 25,
|
|
@@ -2730,9 +2564,9 @@ const J = {
|
|
|
2730
2564
|
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
2731
2565
|
};
|
|
2732
2566
|
function Qe(e, ...t) {
|
|
2733
|
-
return we(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
2567
|
+
return we(e, null, process.env.NODE_ENV !== "production" ? { messages: Zo, args: t } : void 0);
|
|
2734
2568
|
}
|
|
2735
|
-
const
|
|
2569
|
+
const Zo = {
|
|
2736
2570
|
[J.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
2737
2571
|
[J.INVALID_ARGUMENT]: "Invalid argument",
|
|
2738
2572
|
[J.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
@@ -2744,8 +2578,8 @@ const ua = {
|
|
|
2744
2578
|
[J.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
2745
2579
|
[J.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
2746
2580
|
[J.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
2747
|
-
}, Jt = /* @__PURE__ */ Ne("__translateVNode"), Zt = /* @__PURE__ */ Ne("__datetimeParts"), zt = /* @__PURE__ */ Ne("__numberParts"), en = /* @__PURE__ */ Ne("__enableEmitter"), tn = /* @__PURE__ */ Ne("__disableEmitter"),
|
|
2748
|
-
FALLBACK_TO_ROOT:
|
|
2581
|
+
}, Jt = /* @__PURE__ */ Ne("__translateVNode"), Zt = /* @__PURE__ */ Ne("__datetimeParts"), zt = /* @__PURE__ */ Ne("__numberParts"), en = /* @__PURE__ */ Ne("__enableEmitter"), tn = /* @__PURE__ */ Ne("__disableEmitter"), zo = Ne("__setPluralRules"), vr = /* @__PURE__ */ Ne("__injectWithOption"), nn = /* @__PURE__ */ Ne("__dispose"), ce = {
|
|
2582
|
+
FALLBACK_TO_ROOT: Co,
|
|
2749
2583
|
// 8
|
|
2750
2584
|
NOT_FOUND_PARENT_SCOPE: 9,
|
|
2751
2585
|
IGNORE_OBJ_FLATTEN: 10,
|
|
@@ -2759,7 +2593,7 @@ const ua = {
|
|
|
2759
2593
|
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12,
|
|
2760
2594
|
// duplicate `useI18n` calling
|
|
2761
2595
|
DUPLICATE_USE_I18N_CALLING: 13
|
|
2762
|
-
},
|
|
2596
|
+
}, ea = {
|
|
2763
2597
|
[ce.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
2764
2598
|
[ce.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
2765
2599
|
[ce.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
@@ -2774,8 +2608,8 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
2774
2608
|
[ce.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",
|
|
2775
2609
|
[ce.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."
|
|
2776
2610
|
};
|
|
2777
|
-
function
|
|
2778
|
-
return Lt(
|
|
2611
|
+
function mt(e, ...t) {
|
|
2612
|
+
return Lt(ea[e], ...t);
|
|
2779
2613
|
}
|
|
2780
2614
|
function Je(e) {
|
|
2781
2615
|
if (!$(e) || ae(e))
|
|
@@ -2791,7 +2625,7 @@ function Je(e) {
|
|
|
2791
2625
|
if (n[i] === "__proto__")
|
|
2792
2626
|
throw new Error(`unsafe key: ${n[i]}`);
|
|
2793
2627
|
if (n[i] in s || (s[n[i]] = G()), !$(s[n[i]])) {
|
|
2794
|
-
process.env.NODE_ENV !== "production" && ue(
|
|
2628
|
+
process.env.NODE_ENV !== "production" && ue(mt(ce.IGNORE_OBJ_FLATTEN, {
|
|
2795
2629
|
key: n[i]
|
|
2796
2630
|
})), o = !0;
|
|
2797
2631
|
break;
|
|
@@ -2821,7 +2655,7 @@ function Sr(e, t) {
|
|
|
2821
2655
|
function yr(e) {
|
|
2822
2656
|
return e.type;
|
|
2823
2657
|
}
|
|
2824
|
-
function
|
|
2658
|
+
function ta(e, t, n) {
|
|
2825
2659
|
let r = $(t.messages) ? t.messages : G();
|
|
2826
2660
|
"__i18nGlobal" in n && (r = Sr(e.locale.value, {
|
|
2827
2661
|
messages: r,
|
|
@@ -2849,36 +2683,36 @@ function da(e, t, n) {
|
|
|
2849
2683
|
function Kn(e) {
|
|
2850
2684
|
return Zr(zr, null, e, 0);
|
|
2851
2685
|
}
|
|
2852
|
-
function
|
|
2686
|
+
function dn() {
|
|
2853
2687
|
return "currentInstance" in Mt ? Mt["currentInstance"] : Mt.getCurrentInstance();
|
|
2854
2688
|
}
|
|
2855
|
-
const Xn = "__INTLIFY_META__", qn = () => [],
|
|
2689
|
+
const Xn = "__INTLIFY_META__", qn = () => [], na = () => !1;
|
|
2856
2690
|
let Qn = 0;
|
|
2857
2691
|
function Jn(e) {
|
|
2858
|
-
return ((t, n, r, s) => e(n, r,
|
|
2692
|
+
return ((t, n, r, s) => e(n, r, dn() || void 0, s));
|
|
2859
2693
|
}
|
|
2860
|
-
const
|
|
2861
|
-
const e =
|
|
2694
|
+
const ra = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2695
|
+
const e = dn();
|
|
2862
2696
|
let t = null;
|
|
2863
2697
|
return e && (t = yr(e)[Xn]) ? { [Xn]: t } : null;
|
|
2864
2698
|
};
|
|
2865
|
-
function
|
|
2699
|
+
function sa(e = {}) {
|
|
2866
2700
|
const { __root: t, __injectWithOption: n } = e, r = t === void 0, s = e.flatJson, o = pe ? Be : qr;
|
|
2867
2701
|
let i = B(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2868
2702
|
const c = o(
|
|
2869
2703
|
// prettier-ignore
|
|
2870
|
-
t && i ? t.locale.value : y(e.locale) ? e.locale :
|
|
2704
|
+
t && i ? t.locale.value : y(e.locale) ? e.locale : _t
|
|
2871
2705
|
), u = o(
|
|
2872
2706
|
// prettier-ignore
|
|
2873
2707
|
t && i ? t.fallbackLocale.value : y(e.fallbackLocale) || K(e.fallbackLocale) || V(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c.value
|
|
2874
2708
|
), p = o(Sr(c.value, e)), L = o(V(e.datetimeFormats) ? e.datetimeFormats : { [c.value]: {} }), T = o(V(e.numberFormats) ? e.numberFormats : { [c.value]: {} });
|
|
2875
|
-
let g = t ? t.missingWarn : B(e.missingWarn) ||
|
|
2709
|
+
let g = t ? t.missingWarn : B(e.missingWarn) || ft(e.missingWarn) ? e.missingWarn : !0, v = t ? t.fallbackWarn : B(e.fallbackWarn) || ft(e.fallbackWarn) ? e.fallbackWarn : !0, R = t ? t.fallbackRoot : B(e.fallbackRoot) ? e.fallbackRoot : !0, S = !!e.fallbackFormat, P = H(e.missing) ? e.missing : null, _ = H(e.missing) ? Jn(e.missing) : null, E = H(e.postTranslation) ? e.postTranslation : null, h = t ? t.warnHtmlMessage : B(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, m = !!e.escapeParameter;
|
|
2876
2710
|
const I = t ? t.modifiers : V(e.modifiers) ? e.modifiers : {};
|
|
2877
2711
|
let C = e.pluralRules || t && t.pluralRules, f;
|
|
2878
2712
|
f = (() => {
|
|
2879
2713
|
r && Un(null);
|
|
2880
2714
|
const d = {
|
|
2881
|
-
version:
|
|
2715
|
+
version: Qo,
|
|
2882
2716
|
locale: c.value,
|
|
2883
2717
|
fallbackLocale: u.value,
|
|
2884
2718
|
messages: p.value,
|
|
@@ -2897,7 +2731,7 @@ function pa(e = {}) {
|
|
|
2897
2731
|
__meta: { framework: "vue" }
|
|
2898
2732
|
};
|
|
2899
2733
|
d.datetimeFormats = L.value, d.numberFormats = T.value, d.__datetimeFormatters = V(f) ? f.__datetimeFormatters : void 0, d.__numberFormatters = V(f) ? f.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (d.__v_emitter = V(f) ? f.__v_emitter : void 0);
|
|
2900
|
-
const O =
|
|
2734
|
+
const O = Fo(d);
|
|
2901
2735
|
return r && Un(O), O;
|
|
2902
2736
|
})(), He(f, c.value, u.value);
|
|
2903
2737
|
function F() {
|
|
@@ -2939,19 +2773,19 @@ function pa(e = {}) {
|
|
|
2939
2773
|
F();
|
|
2940
2774
|
let Pe;
|
|
2941
2775
|
try {
|
|
2942
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (f.fallbackContext = t ?
|
|
2776
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (f.fallbackContext = t ? Mo() : void 0), Pe = d(f);
|
|
2943
2777
|
} finally {
|
|
2944
2778
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (f.fallbackContext = void 0);
|
|
2945
2779
|
}
|
|
2946
2780
|
if (W !== "translate exists" && // for not `te` (e.g `t`)
|
|
2947
2781
|
q(Pe) && Pe === Tt || W === "translate exists" && !Pe) {
|
|
2948
2782
|
const [be, kr] = O();
|
|
2949
|
-
if (process.env.NODE_ENV !== "production" && t && y(be) && Z(W, kr) && (R && (It(v, be) || Lr(g, be)) && ue(
|
|
2783
|
+
if (process.env.NODE_ENV !== "production" && t && y(be) && Z(W, kr) && (R && (It(v, be) || Lr(g, be)) && ue(mt(ce.FALLBACK_TO_ROOT, {
|
|
2950
2784
|
key: be,
|
|
2951
2785
|
type: W
|
|
2952
2786
|
})), process.env.NODE_ENV !== "production")) {
|
|
2953
|
-
const { __v_emitter:
|
|
2954
|
-
|
|
2787
|
+
const { __v_emitter: pn } = f;
|
|
2788
|
+
pn && R && pn.emit("fallback", {
|
|
2955
2789
|
type: W,
|
|
2956
2790
|
key: be,
|
|
2957
2791
|
to: "global",
|
|
@@ -2975,10 +2809,10 @@ function pa(e = {}) {
|
|
|
2975
2809
|
return $e(O, W, Q({ resolvedMessage: !0 }, j || {}));
|
|
2976
2810
|
}
|
|
2977
2811
|
function At(...d) {
|
|
2978
|
-
return de((O) => Reflect.apply(Wn, null, [O, ...d]), () => Xt(...d), "datetime format", (O) => Reflect.apply(O.d, O, [...d]), () =>
|
|
2812
|
+
return de((O) => Reflect.apply(Wn, null, [O, ...d]), () => Xt(...d), "datetime format", (O) => Reflect.apply(O.d, O, [...d]), () => dt, (O) => y(O) || K(O));
|
|
2979
2813
|
}
|
|
2980
2814
|
function vt(...d) {
|
|
2981
|
-
return de((O) => Reflect.apply(Yn, null, [O, ...d]), () => qt(...d), "number format", (O) => Reflect.apply(O.n, O, [...d]), () =>
|
|
2815
|
+
return de((O) => Reflect.apply(Yn, null, [O, ...d]), () => qt(...d), "number format", (O) => Reflect.apply(O.n, O, [...d]), () => dt, (O) => y(O) || K(O));
|
|
2982
2816
|
}
|
|
2983
2817
|
function St(d) {
|
|
2984
2818
|
return d.map((O) => y(O) || q(O) || B(O) ? Kn(String(O)) : O);
|
|
@@ -3015,7 +2849,7 @@ function pa(e = {}) {
|
|
|
3015
2849
|
return !1;
|
|
3016
2850
|
const W = y(O) ? O : c.value, j = Te(W), Ie = f.messageResolver(j, d);
|
|
3017
2851
|
return ae(Ie) || se(Ie) || y(Ie);
|
|
3018
|
-
}, () => [d], "translate exists", (W) => Reflect.apply(W.te, W, [d, O]),
|
|
2852
|
+
}, () => [d], "translate exists", (W) => Reflect.apply(W.te, W, [d, O]), na, (W) => B(W));
|
|
3019
2853
|
}
|
|
3020
2854
|
function We(d) {
|
|
3021
2855
|
let O = null;
|
|
@@ -3143,7 +2977,7 @@ function pa(e = {}) {
|
|
|
3143
2977
|
setPostTranslationHandler: Ue,
|
|
3144
2978
|
getMissingHandler: Ve,
|
|
3145
2979
|
setMissingHandler: _e,
|
|
3146
|
-
[
|
|
2980
|
+
[zo]: Pt
|
|
3147
2981
|
};
|
|
3148
2982
|
return U.datetimeFormats = X, U.numberFormats = fe, U.rt = Ct, U.te = Rt, U.tm = Ge, U.d = At, U.n = vt, U.getDateTimeFormat = a, U.setDateTimeFormat = l, U.mergeDateTimeFormat = N, U.getNumberFormat = D, U.setNumberFormat = Y, U.mergeNumberFormat = x, U[vr] = n, U[Jt] = ze, U[Zt] = et, U[zt] = Dt, process.env.NODE_ENV !== "production" && (U[en] = (d) => {
|
|
3149
2983
|
f.__v_emitter = d;
|
|
@@ -3153,7 +2987,7 @@ function pa(e = {}) {
|
|
|
3153
2987
|
}
|
|
3154
2988
|
function Zn(e, t) {
|
|
3155
2989
|
}
|
|
3156
|
-
const
|
|
2990
|
+
const mn = {
|
|
3157
2991
|
tag: {
|
|
3158
2992
|
type: [String, Object]
|
|
3159
2993
|
},
|
|
@@ -3171,7 +3005,7 @@ const _n = {
|
|
|
3171
3005
|
type: Object
|
|
3172
3006
|
}
|
|
3173
3007
|
};
|
|
3174
|
-
function
|
|
3008
|
+
function oa({ slots: e }, t) {
|
|
3175
3009
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, s) => [
|
|
3176
3010
|
...r,
|
|
3177
3011
|
// prettier-ignore
|
|
@@ -3193,8 +3027,8 @@ Q({
|
|
|
3193
3027
|
type: [Number, String],
|
|
3194
3028
|
validator: (e) => q(e) || !isNaN(e)
|
|
3195
3029
|
}
|
|
3196
|
-
},
|
|
3197
|
-
function
|
|
3030
|
+
}, mn);
|
|
3031
|
+
function aa(e) {
|
|
3198
3032
|
return K(e) && !y(e[0]);
|
|
3199
3033
|
}
|
|
3200
3034
|
function Pr(e, t, n, r) {
|
|
@@ -3207,10 +3041,10 @@ function Pr(e, t, n, r) {
|
|
|
3207
3041
|
let p = [i.key];
|
|
3208
3042
|
K(u) ? p = u.map((g, v) => {
|
|
3209
3043
|
const R = s[g.type], S = R ? R({ [g.type]: g.value, index: v, parts: u }) : [g.value];
|
|
3210
|
-
return
|
|
3044
|
+
return aa(S) && (S[0].key = `${g.type}-${v}`), S;
|
|
3211
3045
|
}) : y(u) && (p = [u]);
|
|
3212
3046
|
const L = Q(G(), o), T = y(e.tag) || $(e.tag) ? e.tag : Dr();
|
|
3213
|
-
return
|
|
3047
|
+
return tr(T, L, p);
|
|
3214
3048
|
};
|
|
3215
3049
|
}
|
|
3216
3050
|
Q({
|
|
@@ -3221,46 +3055,46 @@ Q({
|
|
|
3221
3055
|
format: {
|
|
3222
3056
|
type: [String, Object]
|
|
3223
3057
|
}
|
|
3224
|
-
},
|
|
3225
|
-
const
|
|
3058
|
+
}, mn);
|
|
3059
|
+
const ia = /* @__PURE__ */ Ne("global-vue-i18n");
|
|
3226
3060
|
function bt(e = {}) {
|
|
3227
|
-
const t =
|
|
3061
|
+
const t = dn();
|
|
3228
3062
|
if (t == null)
|
|
3229
3063
|
throw Qe(J.MUST_BE_CALL_SETUP_TOP);
|
|
3230
3064
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
3231
3065
|
throw Qe(J.NOT_INSTALLED);
|
|
3232
|
-
const n =
|
|
3066
|
+
const n = la(t), r = ua(n), s = yr(t), o = ca(e, s);
|
|
3233
3067
|
if (o === "global")
|
|
3234
|
-
return
|
|
3068
|
+
return ta(r, e, s), r;
|
|
3235
3069
|
if (o === "parent") {
|
|
3236
|
-
let u =
|
|
3237
|
-
return u == null && (process.env.NODE_ENV !== "production" && ue(
|
|
3070
|
+
let u = fa(n, t, e.__useComponent);
|
|
3071
|
+
return u == null && (process.env.NODE_ENV !== "production" && ue(mt(ce.NOT_FOUND_PARENT_SCOPE)), u = r), u;
|
|
3238
3072
|
}
|
|
3239
3073
|
const i = n;
|
|
3240
3074
|
let c = i.__getInstance(t);
|
|
3241
3075
|
if (c == null) {
|
|
3242
3076
|
const u = Q({}, e);
|
|
3243
|
-
"__i18n" in s && (u.__i18n = s.__i18n), r && (u.__root = r), c =
|
|
3077
|
+
"__i18n" in s && (u.__i18n = s.__i18n), r && (u.__root = r), c = sa(u), i.__composerExtend && (c[nn] = i.__composerExtend(c)), da(i, t, c), i.__setInstance(t, c);
|
|
3244
3078
|
} else
|
|
3245
|
-
process.env.NODE_ENV !== "production" && o === "local" && ue(
|
|
3079
|
+
process.env.NODE_ENV !== "production" && o === "local" && ue(mt(ce.DUPLICATE_USE_I18N_CALLING));
|
|
3246
3080
|
return c;
|
|
3247
3081
|
}
|
|
3248
|
-
function
|
|
3249
|
-
const t = at(e.isCE ?
|
|
3082
|
+
function la(e) {
|
|
3083
|
+
const t = at(e.isCE ? ia : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
3250
3084
|
if (!t)
|
|
3251
3085
|
throw Qe(e.isCE ? J.NOT_INSTALLED_WITH_PROVIDE : J.UNEXPECTED_ERROR);
|
|
3252
3086
|
return t;
|
|
3253
3087
|
}
|
|
3254
|
-
function
|
|
3088
|
+
function ca(e, t) {
|
|
3255
3089
|
return ht(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
3256
3090
|
}
|
|
3257
|
-
function
|
|
3091
|
+
function ua(e) {
|
|
3258
3092
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
3259
3093
|
}
|
|
3260
|
-
function
|
|
3094
|
+
function fa(e, t, n = !1) {
|
|
3261
3095
|
let r = null;
|
|
3262
3096
|
const s = t.root;
|
|
3263
|
-
let o =
|
|
3097
|
+
let o = _a(t, n);
|
|
3264
3098
|
for (; o != null; ) {
|
|
3265
3099
|
const i = e;
|
|
3266
3100
|
if (e.mode === "composition")
|
|
@@ -3275,14 +3109,14 @@ function Ia(e, t, n = !1) {
|
|
|
3275
3109
|
}
|
|
3276
3110
|
return r;
|
|
3277
3111
|
}
|
|
3278
|
-
function
|
|
3112
|
+
function _a(e, t = !1) {
|
|
3279
3113
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
3280
3114
|
}
|
|
3281
|
-
function
|
|
3115
|
+
function da(e, t, n) {
|
|
3282
3116
|
let r = null;
|
|
3283
3117
|
Qr(() => {
|
|
3284
3118
|
if (process.env.NODE_ENV !== "production") {
|
|
3285
|
-
t.__VUE_I18N__ = n, r =
|
|
3119
|
+
t.__VUE_I18N__ = n, r = gs();
|
|
3286
3120
|
const s = n;
|
|
3287
3121
|
s[en] && s[en](r), r.on("*", Zn);
|
|
3288
3122
|
}
|
|
@@ -3301,37 +3135,37 @@ Q({
|
|
|
3301
3135
|
format: {
|
|
3302
3136
|
type: [String, Object]
|
|
3303
3137
|
}
|
|
3304
|
-
},
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3138
|
+
}, mn);
|
|
3139
|
+
Jo();
|
|
3140
|
+
yo(ao);
|
|
3141
|
+
Do(bo);
|
|
3142
|
+
Po(mr);
|
|
3309
3143
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3310
3144
|
const e = Ae();
|
|
3311
|
-
e.__INTLIFY__ = !0,
|
|
3145
|
+
e.__INTLIFY__ = !0, io(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
3312
3146
|
}
|
|
3313
3147
|
process.env.NODE_ENV;
|
|
3314
|
-
let
|
|
3315
|
-
function
|
|
3316
|
-
if (
|
|
3148
|
+
let Et = null;
|
|
3149
|
+
function $a(e) {
|
|
3150
|
+
if (Et !== null) {
|
|
3317
3151
|
console.warn(
|
|
3318
3152
|
"[LinID CoreLib] I18n has already been initialized. Re-initialization is ignored."
|
|
3319
3153
|
);
|
|
3320
3154
|
return;
|
|
3321
3155
|
}
|
|
3322
|
-
|
|
3156
|
+
Et = e;
|
|
3323
3157
|
}
|
|
3324
|
-
function
|
|
3325
|
-
if (
|
|
3158
|
+
function ma() {
|
|
3159
|
+
if (Et === null)
|
|
3326
3160
|
throw new Error(
|
|
3327
3161
|
"[LinID CoreLib] I18n is not initialized. Call setI18nInstance() first."
|
|
3328
3162
|
);
|
|
3329
|
-
return
|
|
3163
|
+
return Et;
|
|
3330
3164
|
}
|
|
3331
|
-
function
|
|
3165
|
+
function Wa(e) {
|
|
3332
3166
|
const { t } = bt({
|
|
3333
3167
|
useScope: "global",
|
|
3334
|
-
__i18n:
|
|
3168
|
+
__i18n: ma().global
|
|
3335
3169
|
});
|
|
3336
3170
|
function n(...r) {
|
|
3337
3171
|
const [s, o, i] = r;
|
|
@@ -3339,8 +3173,174 @@ function Ga(e) {
|
|
|
3339
3173
|
}
|
|
3340
3174
|
return { t: n };
|
|
3341
3175
|
}
|
|
3176
|
+
let pt = null;
|
|
3177
|
+
function Ga(e) {
|
|
3178
|
+
if (pt !== null) {
|
|
3179
|
+
console.warn(
|
|
3180
|
+
"[LinID CoreLib] UI Design has already been initialized. Re-initialization is ignored."
|
|
3181
|
+
);
|
|
3182
|
+
return;
|
|
3183
|
+
}
|
|
3184
|
+
pt = e;
|
|
3185
|
+
}
|
|
3186
|
+
function Ea() {
|
|
3187
|
+
if (pt === null)
|
|
3188
|
+
throw new Error(
|
|
3189
|
+
"[LinID CoreLib] UI Design is not initialized. Call setUiDesign() first."
|
|
3190
|
+
);
|
|
3191
|
+
return pt;
|
|
3192
|
+
}
|
|
3193
|
+
const pa = [
|
|
3194
|
+
"icon",
|
|
3195
|
+
"iconRight",
|
|
3196
|
+
"noCaps",
|
|
3197
|
+
"noWrap",
|
|
3198
|
+
"align",
|
|
3199
|
+
"stack",
|
|
3200
|
+
"stretch",
|
|
3201
|
+
"size",
|
|
3202
|
+
"outline",
|
|
3203
|
+
"flat",
|
|
3204
|
+
"unelevated",
|
|
3205
|
+
"rounded",
|
|
3206
|
+
"push",
|
|
3207
|
+
"square",
|
|
3208
|
+
"glossy",
|
|
3209
|
+
"fab",
|
|
3210
|
+
"fabMini",
|
|
3211
|
+
"padding",
|
|
3212
|
+
"color",
|
|
3213
|
+
"textColor",
|
|
3214
|
+
"dense",
|
|
3215
|
+
"ripple",
|
|
3216
|
+
"round"
|
|
3217
|
+
], Na = [
|
|
3218
|
+
"vertical",
|
|
3219
|
+
"outsideArrows",
|
|
3220
|
+
"mobileArrows",
|
|
3221
|
+
"align",
|
|
3222
|
+
"breakpoint",
|
|
3223
|
+
"leftIcon",
|
|
3224
|
+
"rightIcon",
|
|
3225
|
+
"stretch",
|
|
3226
|
+
"shrink",
|
|
3227
|
+
"switchIndicator",
|
|
3228
|
+
"narrowIndicator",
|
|
3229
|
+
"inlineLabel",
|
|
3230
|
+
"noCaps",
|
|
3231
|
+
"activeColor",
|
|
3232
|
+
"activeBgColor",
|
|
3233
|
+
"indicatorColor",
|
|
3234
|
+
"contentClass",
|
|
3235
|
+
"activeClass",
|
|
3236
|
+
"dense"
|
|
3237
|
+
], ga = [
|
|
3238
|
+
"icon",
|
|
3239
|
+
"activeClass",
|
|
3240
|
+
"exactActiveClass",
|
|
3241
|
+
"noCaps",
|
|
3242
|
+
"alert",
|
|
3243
|
+
"contentClass",
|
|
3244
|
+
"ripple"
|
|
3245
|
+
], Oa = [
|
|
3246
|
+
"reveal",
|
|
3247
|
+
"revealOffset",
|
|
3248
|
+
"elevated",
|
|
3249
|
+
"bordered"
|
|
3250
|
+
], La = ["inset"], ha = ["shrink"], Ta = [
|
|
3251
|
+
"icon",
|
|
3252
|
+
"size",
|
|
3253
|
+
"fontSize",
|
|
3254
|
+
"color",
|
|
3255
|
+
"textColor",
|
|
3256
|
+
"square",
|
|
3257
|
+
"rounded"
|
|
3258
|
+
], Ia = [
|
|
3259
|
+
"floating",
|
|
3260
|
+
"multiLine",
|
|
3261
|
+
"align",
|
|
3262
|
+
"color",
|
|
3263
|
+
"textColor",
|
|
3264
|
+
"transparent",
|
|
3265
|
+
"outline",
|
|
3266
|
+
"rounded"
|
|
3267
|
+
], ba = [
|
|
3268
|
+
"virtualScrollItemSize",
|
|
3269
|
+
"virtualScrollStickySizeStart",
|
|
3270
|
+
"virtualScrollStickySizeEnd",
|
|
3271
|
+
"color",
|
|
3272
|
+
"iconFirstPage",
|
|
3273
|
+
"iconPrevPage",
|
|
3274
|
+
"iconNextPage",
|
|
3275
|
+
"iconLastPage",
|
|
3276
|
+
"grid",
|
|
3277
|
+
"gridHeader",
|
|
3278
|
+
"dense",
|
|
3279
|
+
"hideHeader",
|
|
3280
|
+
"hideBottom",
|
|
3281
|
+
"hideSelectedBanner",
|
|
3282
|
+
"hideNoData",
|
|
3283
|
+
"hidePagination",
|
|
3284
|
+
"flat",
|
|
3285
|
+
"bordered",
|
|
3286
|
+
"square",
|
|
3287
|
+
"separator",
|
|
3288
|
+
"wrapCells",
|
|
3289
|
+
"tableStyle",
|
|
3290
|
+
"tableClass",
|
|
3291
|
+
"tableHeaderStyle",
|
|
3292
|
+
"tableHeaderClass",
|
|
3293
|
+
"cardContainerStyle",
|
|
3294
|
+
"cardContainerClass",
|
|
3295
|
+
"cardStyle",
|
|
3296
|
+
"cardClass",
|
|
3297
|
+
"titleClass"
|
|
3298
|
+
], zn = {
|
|
3299
|
+
"q-btn": pa,
|
|
3300
|
+
"q-tabs": Na,
|
|
3301
|
+
"q-route-tab": ga,
|
|
3302
|
+
"q-header": Oa,
|
|
3303
|
+
"q-toolbar": La,
|
|
3304
|
+
"q-toolbar-title": ha,
|
|
3305
|
+
"q-avatar": Ta,
|
|
3306
|
+
"q-badge": Ia,
|
|
3307
|
+
"q-table": ba
|
|
3308
|
+
};
|
|
3309
|
+
function er(e, t) {
|
|
3310
|
+
return t.split(".").reduce((n, r) => {
|
|
3311
|
+
if (n && typeof n == "object")
|
|
3312
|
+
return n[r];
|
|
3313
|
+
}, e);
|
|
3314
|
+
}
|
|
3315
|
+
function Ca(e, t, n) {
|
|
3316
|
+
let r = er(e, `${t}.${n}`);
|
|
3317
|
+
if (r === void 0 && (r = er(e, `default.${n}`)), typeof r == "object")
|
|
3318
|
+
throw new Error(
|
|
3319
|
+
`[UiDesign] Value for '${t}.${n}' is a nested object or null, expected a primitive.`
|
|
3320
|
+
);
|
|
3321
|
+
return r;
|
|
3322
|
+
}
|
|
3323
|
+
function Aa(e) {
|
|
3324
|
+
if (!(e in zn))
|
|
3325
|
+
throw new Error(
|
|
3326
|
+
`[UiDesign] The component '${e}' is not supported for UI design retrieval.`
|
|
3327
|
+
);
|
|
3328
|
+
return zn[e];
|
|
3329
|
+
}
|
|
3330
|
+
function Ya() {
|
|
3331
|
+
const e = ge(() => Ea());
|
|
3332
|
+
function t(n, r, s) {
|
|
3333
|
+
const o = Aa(r), i = {};
|
|
3334
|
+
for (const c of o) {
|
|
3335
|
+
const u = s?.[c] ?? Ca(e.value, n, `${r}.${String(c)}`);
|
|
3336
|
+
u !== void 0 && (i[c] = u);
|
|
3337
|
+
}
|
|
3338
|
+
return i;
|
|
3339
|
+
}
|
|
3340
|
+
return { ui: t };
|
|
3341
|
+
}
|
|
3342
3342
|
let Nt = null;
|
|
3343
|
-
function
|
|
3343
|
+
function Ha(e) {
|
|
3344
3344
|
if (Nt !== null) {
|
|
3345
3345
|
console.warn(
|
|
3346
3346
|
"[LinID CoreLib] HTTP client has already been initialized. Re-initialization is ignored."
|
|
@@ -3364,7 +3364,7 @@ async function Sa() {
|
|
|
3364
3364
|
"/metadata/routes"
|
|
3365
3365
|
)).data;
|
|
3366
3366
|
}
|
|
3367
|
-
const
|
|
3367
|
+
const xa = () => ya(on()), ya = /* @__PURE__ */ sn("LinidConfigurationStore", {
|
|
3368
3368
|
state: () => ({
|
|
3369
3369
|
entities: [],
|
|
3370
3370
|
apiEndpoints: [],
|
|
@@ -3406,8 +3406,21 @@ const Ha = () => ya(rr()), ya = /* @__PURE__ */ nr("LinidConfigurationStore", {
|
|
|
3406
3406
|
}
|
|
3407
3407
|
}
|
|
3408
3408
|
}
|
|
3409
|
+
}), ja = () => Da(on()), Da = /* @__PURE__ */ sn("LinidUiStore", {
|
|
3410
|
+
state: () => ({
|
|
3411
|
+
mainNavigationItems: []
|
|
3412
|
+
}),
|
|
3413
|
+
actions: {
|
|
3414
|
+
/**
|
|
3415
|
+
* Add items to the main navigation menu.
|
|
3416
|
+
* @param items - The navigation menu items to add.
|
|
3417
|
+
*/
|
|
3418
|
+
addMainNavigationMenuItems(...e) {
|
|
3419
|
+
this.mainNavigationItems.push(...e);
|
|
3420
|
+
}
|
|
3421
|
+
}
|
|
3409
3422
|
}), Rr = /* @__PURE__ */ new Map();
|
|
3410
|
-
function
|
|
3423
|
+
function Ba(e) {
|
|
3411
3424
|
Rr.set(e.instanceId, e);
|
|
3412
3425
|
}
|
|
3413
3426
|
function Ze(e) {
|
|
@@ -3418,37 +3431,37 @@ function Ze(e) {
|
|
|
3418
3431
|
);
|
|
3419
3432
|
return t;
|
|
3420
3433
|
}
|
|
3421
|
-
async function
|
|
3434
|
+
async function Ka(e, t) {
|
|
3422
3435
|
const n = Ze(e);
|
|
3423
3436
|
return De().post(`/${n.apiEndpoint}`, t).then(({ data: r }) => r);
|
|
3424
3437
|
}
|
|
3425
|
-
async function
|
|
3438
|
+
async function Xa(e, t, n) {
|
|
3426
3439
|
const r = Ze(e);
|
|
3427
3440
|
return De().put(`/${r.apiEndpoint}/${t}`, n).then(({ data: s }) => s);
|
|
3428
3441
|
}
|
|
3429
|
-
async function
|
|
3442
|
+
async function qa(e, t, n) {
|
|
3430
3443
|
const r = Ze(e);
|
|
3431
3444
|
return De().get(`/${r.apiEndpoint}`, {
|
|
3432
3445
|
params: { ...t, ...n }
|
|
3433
3446
|
}).then(({ data: s }) => s);
|
|
3434
3447
|
}
|
|
3435
|
-
async function
|
|
3448
|
+
async function Qa(e, t) {
|
|
3436
3449
|
const n = Ze(e);
|
|
3437
3450
|
return De().get(`/${n.apiEndpoint}/${t}`).then(({ data: r }) => r);
|
|
3438
3451
|
}
|
|
3439
|
-
async function
|
|
3452
|
+
async function Ja(e, t) {
|
|
3440
3453
|
const n = Ze(e);
|
|
3441
3454
|
return De().delete(`/${n.apiEndpoint}/${t}`);
|
|
3442
3455
|
}
|
|
3443
|
-
function
|
|
3456
|
+
function Pa(e, t) {
|
|
3444
3457
|
if (!gt(e) || !gt(t))
|
|
3445
3458
|
return t;
|
|
3446
3459
|
const n = { ...e };
|
|
3447
3460
|
for (const r of Object.keys(t))
|
|
3448
|
-
n[r] =
|
|
3461
|
+
n[r] = Pa(e[r], t[r]);
|
|
3449
3462
|
return n;
|
|
3450
3463
|
}
|
|
3451
|
-
function
|
|
3464
|
+
function Za(e) {
|
|
3452
3465
|
const t = {};
|
|
3453
3466
|
for (const [n, r] of Object.entries(e)) {
|
|
3454
3467
|
const s = n.split(".");
|
|
@@ -3462,16 +3475,16 @@ function Qa(e) {
|
|
|
3462
3475
|
function gt(e) {
|
|
3463
3476
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
3464
3477
|
}
|
|
3465
|
-
function
|
|
3478
|
+
function Ra(e, t) {
|
|
3466
3479
|
return typeof e != "object" || e === null ? e : Object.fromEntries(
|
|
3467
3480
|
Object.entries(e).map(([n, r]) => {
|
|
3468
|
-
const s = t(n), o = gt(r) ?
|
|
3481
|
+
const s = t(n), o = gt(r) ? Ra(r, t) : r;
|
|
3469
3482
|
return [s, o];
|
|
3470
3483
|
})
|
|
3471
3484
|
);
|
|
3472
3485
|
}
|
|
3473
|
-
var
|
|
3474
|
-
class
|
|
3486
|
+
var ka = /* @__PURE__ */ ((e) => (e.SETUP = "setup", e.CONFIGURE = "configure", e.INITIALIZE = "initialize", e.READY = "ready", e.POST_INIT = "postInit", e))(ka || {});
|
|
3487
|
+
class za {
|
|
3475
3488
|
/**
|
|
3476
3489
|
* Unique identifier for the module.
|
|
3477
3490
|
*
|
|
@@ -3531,13 +3544,14 @@ class Ja {
|
|
|
3531
3544
|
* Initialize phase - register stores and initialize resources.
|
|
3532
3545
|
*
|
|
3533
3546
|
* This is called after configuration.
|
|
3534
|
-
* Use it to
|
|
3547
|
+
* Use it to initialize module resources.
|
|
3535
3548
|
*
|
|
3536
3549
|
* Default implementation returns success.
|
|
3537
3550
|
* Override this method to add custom initialization logic.
|
|
3551
|
+
* @param config - Module-specific configuration from host.
|
|
3538
3552
|
* @returns Promise resolving to the lifecycle result.
|
|
3539
3553
|
*/
|
|
3540
|
-
async initialize() {
|
|
3554
|
+
async initialize(t) {
|
|
3541
3555
|
return { success: !0 };
|
|
3542
3556
|
}
|
|
3543
3557
|
/**
|
|
@@ -3548,9 +3562,10 @@ class Ja {
|
|
|
3548
3562
|
*
|
|
3549
3563
|
* Default implementation returns success.
|
|
3550
3564
|
* Override this method to add custom ready logic.
|
|
3565
|
+
* @param config - Module-specific configuration from host.
|
|
3551
3566
|
* @returns Promise resolving to the lifecycle result.
|
|
3552
3567
|
*/
|
|
3553
|
-
async ready() {
|
|
3568
|
+
async ready(t) {
|
|
3554
3569
|
return { success: !0 };
|
|
3555
3570
|
}
|
|
3556
3571
|
/**
|
|
@@ -3561,41 +3576,43 @@ class Ja {
|
|
|
3561
3576
|
*
|
|
3562
3577
|
* Default implementation returns success.
|
|
3563
3578
|
* Override this method to add custom post-init logic.
|
|
3579
|
+
* @param config - Module-specific configuration from host.
|
|
3564
3580
|
* @returns Promise resolving to the lifecycle result.
|
|
3565
3581
|
*/
|
|
3566
|
-
async postInit() {
|
|
3582
|
+
async postInit(t) {
|
|
3567
3583
|
return { success: !0 };
|
|
3568
3584
|
}
|
|
3569
3585
|
}
|
|
3570
3586
|
export {
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3587
|
+
za as BasicRemoteModule,
|
|
3588
|
+
Ua as LinidZoneRenderer,
|
|
3589
|
+
ka as ModuleLifecyclePhase,
|
|
3590
|
+
Ja as deleteEntityById,
|
|
3591
|
+
Za as fromDot,
|
|
3592
|
+
qa as getEntities,
|
|
3593
|
+
Qa as getEntityById,
|
|
3578
3594
|
De as getHttpClient,
|
|
3579
|
-
|
|
3595
|
+
ma as getI18nInstance,
|
|
3580
3596
|
es as getModuleFederation,
|
|
3581
3597
|
Ze as getModuleHostConfiguration,
|
|
3582
|
-
|
|
3583
|
-
|
|
3598
|
+
on as getPiniaStore,
|
|
3599
|
+
Ea as getUiDesign,
|
|
3584
3600
|
gt as isObject,
|
|
3585
3601
|
ts as loadAsyncComponent,
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3602
|
+
Pa as merge,
|
|
3603
|
+
Ba as registerModuleHostConfiguration,
|
|
3604
|
+
Ra as renameKeys,
|
|
3605
|
+
Ka as saveEntity,
|
|
3606
|
+
Ha as setHttpClient,
|
|
3607
|
+
$a as setI18nInstance,
|
|
3608
|
+
Fa as setModuleFederation,
|
|
3609
|
+
wa as setPiniaStore,
|
|
3610
|
+
Ga as setUiDesign,
|
|
3611
|
+
Xa as updateEntity,
|
|
3612
|
+
xa as useLinidConfigurationStore,
|
|
3613
|
+
ja as useLinidUiStore,
|
|
3597
3614
|
os as useLinidZoneStore,
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3615
|
+
Va as usePagination,
|
|
3616
|
+
Wa as useScopedI18n,
|
|
3617
|
+
Ya as useUiDesign
|
|
3601
3618
|
};
|