lty-protocol 1.0.17 → 1.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/components/IpInput.d.ts +10 -0
- package/dist/index.d.ts +1 -1
- package/dist/lty-protocol.mjs +723 -719
- package/dist/lty-protocol.umd.js +6 -6
- package/package.json +1 -1
- package/dist/components/IpInput.vue.d.ts +0 -9
package/dist/lty-protocol.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as St from "vue";
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
const Yr = /* @__PURE__ */
|
|
2
|
+
import { defineComponent as fe, openBlock as Oe, createElementBlock as Ye, renderSlot as Jn, inject as Bt, ref as ot, watch as ve, createBlock as Qn, resolveDynamicComponent as qn, unref as Kt, h as st, Fragment as jt, renderList as Fr, toDisplayString as Ur, createVNode as Zn, effectScope as wr, computed as xe, isRef as Vr, shallowRef as $r, onMounted as Wr, onUnmounted as Gr, Text as xr, createApp as Hr } from "vue";
|
|
3
|
+
const Yr = /* @__PURE__ */ fe({
|
|
4
4
|
name: "MyButton",
|
|
5
5
|
__name: "MyButton",
|
|
6
6
|
emits: ["click"],
|
|
@@ -8,19 +8,19 @@ const Yr = /* @__PURE__ */ _e({
|
|
|
8
8
|
const n = t, r = () => {
|
|
9
9
|
n("click");
|
|
10
10
|
};
|
|
11
|
-
return (s, a) => (
|
|
11
|
+
return (s, a) => (Oe(), Ye("button", {
|
|
12
12
|
class: "my-btn",
|
|
13
13
|
onClick: r
|
|
14
14
|
}, [
|
|
15
15
|
Jn(s.$slots, "default", {}, void 0, !0)
|
|
16
16
|
]));
|
|
17
17
|
}
|
|
18
|
-
}),
|
|
18
|
+
}), zn = (e, t) => {
|
|
19
19
|
const n = e.__vccOpts || e;
|
|
20
20
|
for (const [r, s] of t)
|
|
21
21
|
n[r] = s;
|
|
22
22
|
return n;
|
|
23
|
-
}, Br = /* @__PURE__ */
|
|
23
|
+
}, Br = /* @__PURE__ */ zn(Yr, [["__scopeId", "data-v-c654f959"]]), Kr = /* @__PURE__ */ fe({
|
|
24
24
|
name: "MyButton",
|
|
25
25
|
__name: "button2",
|
|
26
26
|
emits: ["click"],
|
|
@@ -28,57 +28,61 @@ const Yr = /* @__PURE__ */ _e({
|
|
|
28
28
|
const n = t, r = () => {
|
|
29
29
|
n("click");
|
|
30
30
|
};
|
|
31
|
-
return (s, a) => (
|
|
31
|
+
return (s, a) => (Oe(), Ye("button", {
|
|
32
32
|
class: "my-btn",
|
|
33
33
|
onClick: r
|
|
34
34
|
}, [
|
|
35
35
|
Jn(s.$slots, "default", {}, void 0, !0)
|
|
36
36
|
]));
|
|
37
37
|
}
|
|
38
|
-
}), jr = /* @__PURE__ */
|
|
38
|
+
}), jr = /* @__PURE__ */ zn(Kr, [["__scopeId", "data-v-1477cfc3"]]), er = /* @__PURE__ */ fe({
|
|
39
39
|
__name: "Input",
|
|
40
40
|
props: {
|
|
41
41
|
modelValue: {}
|
|
42
42
|
},
|
|
43
43
|
emits: ["update:modelValue"],
|
|
44
44
|
setup(e, { emit: t }) {
|
|
45
|
-
const n = e, r = t, s = Bt("UIComponents").Input, a =
|
|
46
|
-
return
|
|
45
|
+
const n = e, r = t, s = Bt("UIComponents").Input, a = ot(n.modelValue);
|
|
46
|
+
return ve(() => n.modelValue, (o) => a.value = o), ve(a, (o) => r("update:modelValue", o)), (o, i) => (Oe(), Qn(qn(Kt(s)), {
|
|
47
47
|
modelValue: a.value,
|
|
48
48
|
"onUpdate:modelValue": i[0] || (i[0] = (u) => a.value = u)
|
|
49
49
|
}, null, 8, ["modelValue"]));
|
|
50
50
|
}
|
|
51
|
-
}), Xr =
|
|
52
|
-
|
|
53
|
-
props: {
|
|
54
|
-
modelValue: {}
|
|
55
|
-
},
|
|
51
|
+
}), Xr = fe({
|
|
52
|
+
name: "IpInput",
|
|
53
|
+
props: { modelValue: String },
|
|
56
54
|
emits: ["update:modelValue"],
|
|
57
55
|
setup(e, { emit: t }) {
|
|
58
|
-
const n =
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
56
|
+
const n = ot((e.modelValue || "0.0.0.0").split(".")), r = (s, a) => {
|
|
57
|
+
n.value[s] = a, t("update:modelValue", n.value.join("."));
|
|
58
|
+
};
|
|
59
|
+
return () => st(
|
|
60
|
+
"div",
|
|
61
|
+
{ style: { display: "flex", gap: "4px" } },
|
|
62
|
+
n.value.map(
|
|
63
|
+
(s, a) => st(er, {
|
|
64
|
+
key: a,
|
|
65
|
+
modelValue: s,
|
|
66
|
+
"onUpdate:modelValue": (o) => r(a, o)
|
|
67
|
+
})
|
|
68
|
+
)
|
|
69
|
+
);
|
|
66
70
|
}
|
|
67
|
-
}),
|
|
71
|
+
}), Jr = /* @__PURE__ */ fe({
|
|
68
72
|
__name: "InputNumber",
|
|
69
73
|
props: {
|
|
70
74
|
modelValue: {}
|
|
71
75
|
},
|
|
72
76
|
emits: ["update:modelValue"],
|
|
73
77
|
setup(e, { emit: t }) {
|
|
74
|
-
const n = e, r = t, s = Bt("UIComponents").Input, a =
|
|
75
|
-
return
|
|
78
|
+
const n = e, r = t, s = Bt("UIComponents").Input, a = ot(n.modelValue);
|
|
79
|
+
return ve(() => n.modelValue, (o) => a.value = o), ve(a, (o) => r("update:modelValue", o)), (o, i) => (Oe(), Qn(qn(Kt(s)), {
|
|
76
80
|
modelValue: a.value,
|
|
77
81
|
"onUpdate:modelValue": i[0] || (i[0] = (u) => a.value = u)
|
|
78
82
|
}, null, 8, ["modelValue"]));
|
|
79
83
|
}
|
|
80
84
|
});
|
|
81
|
-
function
|
|
85
|
+
function di(e, t) {
|
|
82
86
|
e.provide("UIComponents", t);
|
|
83
87
|
}
|
|
84
88
|
class re {
|
|
@@ -98,7 +102,7 @@ class re {
|
|
|
98
102
|
return n.fromPlain(t);
|
|
99
103
|
}
|
|
100
104
|
}
|
|
101
|
-
class
|
|
105
|
+
class Qr {
|
|
102
106
|
static getDefaultConfig(t) {
|
|
103
107
|
console.log(1231231, t);
|
|
104
108
|
const n = t.baseInfo, r = t.configuration, s = t.tab;
|
|
@@ -109,21 +113,21 @@ class qr {
|
|
|
109
113
|
};
|
|
110
114
|
}
|
|
111
115
|
}
|
|
112
|
-
const
|
|
113
|
-
type:
|
|
114
|
-
baseInfo:
|
|
115
|
-
tab:
|
|
116
|
-
configuration:
|
|
116
|
+
const qr = "Ethernet", Zr = [{ key: "name", name: { i18nKey: "name" }, defaultValue: "Ethernet" }, { key: "supplier", name: { i18nKey: "supplier" }, defaultValue: { i18nKey: "company" } }, { key: "version", name: { i18nKey: "verison" }, defaultValue: "1.0.0.0" }, { key: "description", name: { i18nKey: "description" }, defaultValue: { i18nKey: "descriptionMap.ethernet" } }, { key: "category", name: { i18nKey: "category" }, defaultValue: { i18nKey: "ethernet" } }], zr = [{ name: { i18nKey: "general" }, key: "general" }, { name: { i18nKey: "ioMapping" }, key: "ioMapping" }], es = { general: [{ key: "netInterface", name: { i18nKey: "netInterface" }, dataType: "string", componentType: "strInput", defaultValue: "" }, { key: "ipAddress", name: { i18nKey: "ipAddress" }, dataType: "string", componentType: "ipInput", defaultValue: "192.168.1.1" }, { key: "subnetMask", name: { i18nKey: "subnetMask" }, dataType: "string", componentType: "ipInput", defaultValue: "255.255.255.0" }, { key: "defaultGateway", name: { i18nKey: "defaultGateway" }, dataType: "string", componentType: "ipInput", defaultValue: "0.0.0.0" }, { key: "adaptedOSConfiguration", name: { i18nKey: "adaptedOSConfiguration" }, dataType: "boolean", componentType: "switch", defaultValue: !1 }], ioMapping: [{ key: "busCycleTask", name: { i18nKey: "busCycleTask" }, dataType: "string", componentType: "select", defaultValue: "-1" }] }, ts = {
|
|
117
|
+
type: qr,
|
|
118
|
+
baseInfo: Zr,
|
|
119
|
+
tab: zr,
|
|
120
|
+
configuration: es
|
|
117
121
|
};
|
|
118
122
|
class lt extends re {
|
|
119
|
-
type =
|
|
120
|
-
moduleType = it[
|
|
123
|
+
type = pe.ETHERNET;
|
|
124
|
+
moduleType = it[pe.ETHERNET];
|
|
121
125
|
baseInfo;
|
|
122
126
|
config;
|
|
123
127
|
tab;
|
|
124
128
|
constructor(t) {
|
|
125
129
|
super(t);
|
|
126
|
-
const { baseInfo: n, config: r, tab: s } =
|
|
130
|
+
const { baseInfo: n, config: r, tab: s } = Qr.getDefaultConfig(ts);
|
|
127
131
|
this.baseInfo = n, this.config = r, this.tab = s;
|
|
128
132
|
}
|
|
129
133
|
static fromPlain(t) {
|
|
@@ -131,8 +135,8 @@ class lt extends re {
|
|
|
131
135
|
}
|
|
132
136
|
}
|
|
133
137
|
class Xt extends re {
|
|
134
|
-
type =
|
|
135
|
-
moduleType = it[
|
|
138
|
+
type = pe.MODBUS_TCP_SERVER;
|
|
139
|
+
moduleType = it[pe.MODBUS_TCP_SERVER];
|
|
136
140
|
constructor(t) {
|
|
137
141
|
super(t);
|
|
138
142
|
}
|
|
@@ -141,8 +145,8 @@ class Xt extends re {
|
|
|
141
145
|
}
|
|
142
146
|
}
|
|
143
147
|
class Jt extends re {
|
|
144
|
-
type =
|
|
145
|
-
moduleType = it[
|
|
148
|
+
type = pe.MODBUS_TCP_CLIENT;
|
|
149
|
+
moduleType = it[pe.MODBUS_TCP_CLIENT];
|
|
146
150
|
constructor(t) {
|
|
147
151
|
super(t);
|
|
148
152
|
}
|
|
@@ -151,8 +155,8 @@ class Jt extends re {
|
|
|
151
155
|
}
|
|
152
156
|
}
|
|
153
157
|
class Qt extends re {
|
|
154
|
-
type =
|
|
155
|
-
moduleType = it[
|
|
158
|
+
type = pe.MODBUS_TCP_SLAVE_DEVICE;
|
|
159
|
+
moduleType = it[pe.MODBUS_TCP_SLAVE_DEVICE];
|
|
156
160
|
constructor(t) {
|
|
157
161
|
super(t);
|
|
158
162
|
}
|
|
@@ -160,7 +164,7 @@ class Qt extends re {
|
|
|
160
164
|
return new Qt(t);
|
|
161
165
|
}
|
|
162
166
|
}
|
|
163
|
-
var
|
|
167
|
+
var pe = /* @__PURE__ */ ((e) => (e.ETHERNET = "Ethernet", e.MODBUS_TCP_SERVER = "ModbusTCPServer", e.MODBUS_TCP_CLIENT = "ModbusTCPClient", e.MODBUS_TCP_SLAVE_DEVICE = "ModbusTCPSlaveDevice", e.MODBUS_SERIAL_PORT = "ModbusSerialPort", e.MODBUS_MASTER = "ModbusMaster", e.MODBUS_SLAVE = "ModbusSlave", e.MODBUS_SERIAL = "ModbusSerial", e.OPCUA_SERVER = "OPCUAServer", e.ETHER_CAT_MASTER = "EtherCatMaster", e.ETHER_CAT_SLAVE = "EtherCatSlave", e.ETHER_CAT_MODULE = "EtherCatModule", e))(pe || {});
|
|
164
168
|
const it = {
|
|
165
169
|
Pprogrammable: 4096,
|
|
166
170
|
// 根节点
|
|
@@ -215,7 +219,7 @@ const it = {
|
|
|
215
219
|
EtherCatModule: 16384
|
|
216
220
|
// Ethercat子模块
|
|
217
221
|
};
|
|
218
|
-
class
|
|
222
|
+
class ns {
|
|
219
223
|
map = /* @__PURE__ */ new Map();
|
|
220
224
|
constructor() {
|
|
221
225
|
re.register("Ethernet", lt), re.register("ModbusTCPServer", Xt), re.register("ModbusTCPClient", Jt), re.register("ModbusTCPSlaveDevice", Qt);
|
|
@@ -245,63 +249,63 @@ class rs {
|
|
|
245
249
|
this.map.clear();
|
|
246
250
|
}
|
|
247
251
|
}
|
|
248
|
-
const
|
|
252
|
+
const rs = /* @__PURE__ */ fe({
|
|
249
253
|
__name: "Ethernet",
|
|
250
254
|
props: {
|
|
251
255
|
config: {}
|
|
252
256
|
},
|
|
253
257
|
setup(e) {
|
|
254
|
-
return (t, n) => (
|
|
258
|
+
return (t, n) => (Oe(!0), Ye(jt, null, Fr(e.config.tab, (r) => (Oe(), Ye("div", {
|
|
255
259
|
key: r.key
|
|
256
260
|
}, Ur(t.$t(r.name.i18nKey)), 1))), 128));
|
|
257
261
|
}
|
|
258
|
-
}),
|
|
262
|
+
}), ss = /* @__PURE__ */ fe({
|
|
259
263
|
__name: "App",
|
|
260
264
|
setup(e) {
|
|
261
|
-
new
|
|
265
|
+
new ns();
|
|
262
266
|
const t = new lt({
|
|
263
267
|
id: 1,
|
|
264
268
|
deviceId: 1,
|
|
265
269
|
type: "Ethernet"
|
|
266
270
|
});
|
|
267
|
-
return (n, r) => (
|
|
268
|
-
Zn(
|
|
271
|
+
return (n, r) => (Oe(), Ye("div", null, [
|
|
272
|
+
Zn(rs, { config: Kt(t) }, null, 8, ["config"])
|
|
269
273
|
]));
|
|
270
274
|
}
|
|
271
275
|
});
|
|
272
|
-
function
|
|
276
|
+
function ue(e, t) {
|
|
273
277
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
274
278
|
}
|
|
275
279
|
const mn = {};
|
|
276
280
|
function qt(e) {
|
|
277
|
-
mn[e] || (mn[e] = !0,
|
|
281
|
+
mn[e] || (mn[e] = !0, ue(e));
|
|
278
282
|
}
|
|
279
283
|
const le = typeof window < "u";
|
|
280
|
-
let ee,
|
|
284
|
+
let ee, Ce;
|
|
281
285
|
if (process.env.NODE_ENV !== "production") {
|
|
282
286
|
const e = le && window.performance;
|
|
283
287
|
e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat
|
|
284
288
|
e.clearMeasures && (ee = (t) => {
|
|
285
289
|
e.mark(t);
|
|
286
|
-
},
|
|
290
|
+
}, Ce = (t, n, r) => {
|
|
287
291
|
e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
|
|
288
292
|
});
|
|
289
293
|
}
|
|
290
|
-
const
|
|
294
|
+
const as = /\{([0-9a-zA-Z]+)\}/g;
|
|
291
295
|
function ct(e, ...t) {
|
|
292
|
-
return t.length === 1 && M(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(
|
|
296
|
+
return t.length === 1 && M(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(as, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
293
297
|
}
|
|
294
|
-
const
|
|
298
|
+
const _e = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), os = (e, t, n) => ls({ l: e, k: t, s: n }), ls = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), j = (e) => typeof e == "number" && isFinite(e), is = (e) => Zt(e) === "[object Date]", Me = (e) => Zt(e) === "[object RegExp]", ut = (e) => R(e) && Object.keys(e).length === 0, J = Object.assign, cs = Object.create, $ = (e = null) => cs(e);
|
|
295
299
|
let dn;
|
|
296
|
-
const
|
|
300
|
+
const Le = () => dn || (dn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : $());
|
|
297
301
|
function En(e) {
|
|
298
302
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "=");
|
|
299
303
|
}
|
|
300
304
|
function pn(e) {
|
|
301
305
|
return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
302
306
|
}
|
|
303
|
-
function
|
|
304
|
-
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (r, s, a) => `${s}="${pn(a)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (r, s, a) => `${s}='${pn(a)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (process.env.NODE_ENV !== "production" &&
|
|
307
|
+
function us(e) {
|
|
308
|
+
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (r, s, a) => `${s}="${pn(a)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (r, s, a) => `${s}='${pn(a)}'`), /\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")), [
|
|
305
309
|
// In href, src, action, formaction attributes
|
|
306
310
|
/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,
|
|
307
311
|
// In style attributes within url()
|
|
@@ -310,16 +314,16 @@ function fs(e) {
|
|
|
310
314
|
e = e.replace(r, "$1javascript:");
|
|
311
315
|
}), e;
|
|
312
316
|
}
|
|
313
|
-
const
|
|
317
|
+
const fs = Object.prototype.hasOwnProperty;
|
|
314
318
|
function oe(e, t) {
|
|
315
|
-
return
|
|
319
|
+
return fs.call(e, t);
|
|
316
320
|
}
|
|
317
|
-
const H = Array.isArray, W = (e) => typeof e == "function", L = (e) => typeof e == "string", F = (e) => typeof e == "boolean", M = (e) => e !== null && typeof e == "object",
|
|
321
|
+
const H = Array.isArray, W = (e) => typeof e == "function", L = (e) => typeof e == "string", F = (e) => typeof e == "boolean", M = (e) => e !== null && typeof e == "object", _s = (e) => M(e) && W(e.then) && W(e.catch), tr = Object.prototype.toString, Zt = (e) => tr.call(e), R = (e) => Zt(e) === "[object Object]", ms = (e) => e == null ? "" : H(e) || R(e) && e.toString === tr ? JSON.stringify(e, null, 2) : String(e);
|
|
318
322
|
function zt(e, t = "") {
|
|
319
323
|
return e.reduce((n, r, s) => s === 0 ? n + r : n + t + r, "");
|
|
320
324
|
}
|
|
321
325
|
const gn = 2;
|
|
322
|
-
function
|
|
326
|
+
function ds(e, t = 0, n = e.length) {
|
|
323
327
|
const r = e.split(/\r?\n/);
|
|
324
328
|
let s = 0;
|
|
325
329
|
const a = [];
|
|
@@ -330,16 +334,16 @@ function Es(e, t = 0, n = e.length) {
|
|
|
330
334
|
continue;
|
|
331
335
|
const u = i + 1;
|
|
332
336
|
a.push(`${u}${" ".repeat(3 - String(u).length)}| ${r[i]}`);
|
|
333
|
-
const
|
|
337
|
+
const E = r[i].length;
|
|
334
338
|
if (i === o) {
|
|
335
|
-
const I = t - (s -
|
|
339
|
+
const I = t - (s - E) + 1, b = Math.max(1, n > s ? E - I : n - t);
|
|
336
340
|
a.push(" | " + " ".repeat(I) + "^".repeat(b));
|
|
337
341
|
} else if (i > o) {
|
|
338
342
|
if (n > s) {
|
|
339
|
-
const I = Math.max(Math.min(n - s,
|
|
343
|
+
const I = Math.max(Math.min(n - s, E), 1);
|
|
340
344
|
a.push(" | " + "^".repeat(I));
|
|
341
345
|
}
|
|
342
|
-
s +=
|
|
346
|
+
s += E + 1;
|
|
343
347
|
}
|
|
344
348
|
}
|
|
345
349
|
break;
|
|
@@ -376,7 +380,7 @@ function rt(e, t) {
|
|
|
376
380
|
});
|
|
377
381
|
}
|
|
378
382
|
}
|
|
379
|
-
function
|
|
383
|
+
function Es(e, t, n) {
|
|
380
384
|
return { line: e, column: t, offset: n };
|
|
381
385
|
}
|
|
382
386
|
function Rt(e, t, n) {
|
|
@@ -403,7 +407,7 @@ const P = {
|
|
|
403
407
|
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
404
408
|
// minifier error codes
|
|
405
409
|
UNHANDLED_MINIFIER_NODE_TYPE: 16
|
|
406
|
-
},
|
|
410
|
+
}, ps = 17, gs = {
|
|
407
411
|
// tokenizer error messages
|
|
408
412
|
[P.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
409
413
|
[P.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
@@ -425,26 +429,26 @@ const P = {
|
|
|
425
429
|
// minimizer error messages
|
|
426
430
|
[P.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
427
431
|
};
|
|
428
|
-
function
|
|
429
|
-
const { domain: r, messages: s, args: a } = n, o = process.env.NODE_ENV !== "production" ? ct((s ||
|
|
432
|
+
function we(e, t, n = {}) {
|
|
433
|
+
const { domain: r, messages: s, args: a } = n, o = process.env.NODE_ENV !== "production" ? ct((s || gs)[e] || "", ...a || []) : e, i = new SyntaxError(String(o));
|
|
430
434
|
return i.code = e, t && (i.location = t), i.domain = r, i;
|
|
431
435
|
}
|
|
432
|
-
function
|
|
436
|
+
function Ns(e) {
|
|
433
437
|
throw e;
|
|
434
438
|
}
|
|
435
|
-
const
|
|
436
|
-
`,
|
|
437
|
-
function
|
|
439
|
+
const Ts = /<\/?[\w\s="/.':;#-\/]+>/, bs = (e) => Ts.test(e), ie = " ", hs = "\r", Q = `
|
|
440
|
+
`, Is = "\u2028", Ls = "\u2029";
|
|
441
|
+
function Os(e) {
|
|
438
442
|
const t = e;
|
|
439
443
|
let n = 0, r = 1, s = 1, a = 0;
|
|
440
|
-
const o = (p) => t[p] ===
|
|
444
|
+
const o = (p) => t[p] === hs && t[p + 1] === Q, i = (p) => t[p] === Q, u = (p) => t[p] === Ls, E = (p) => t[p] === Is, I = (p) => o(p) || i(p) || u(p) || E(p), b = () => n, N = () => r, A = () => s, D = () => a, C = (p) => o(p) || u(p) || E(p) ? Q : t[p], S = () => C(n), f = () => C(n + a);
|
|
441
445
|
function m() {
|
|
442
446
|
return a = 0, I(n) && (r++, s = 0), o(n) && n++, n++, s++, t[n];
|
|
443
447
|
}
|
|
444
448
|
function h() {
|
|
445
449
|
return o(n + a) && a++, a++, t[n + a];
|
|
446
450
|
}
|
|
447
|
-
function
|
|
451
|
+
function d() {
|
|
448
452
|
n = 0, r = 1, s = 1, a = 0;
|
|
449
453
|
}
|
|
450
454
|
function O(p = 0) {
|
|
@@ -466,14 +470,14 @@ function vs(e) {
|
|
|
466
470
|
currentPeek: f,
|
|
467
471
|
next: m,
|
|
468
472
|
peek: h,
|
|
469
|
-
reset:
|
|
473
|
+
reset: d,
|
|
470
474
|
resetPeek: O,
|
|
471
475
|
skipToPeek: v
|
|
472
476
|
};
|
|
473
477
|
}
|
|
474
|
-
const
|
|
475
|
-
function
|
|
476
|
-
const n = t.location !== !1, r =
|
|
478
|
+
const de = void 0, vs = ".", Nn = "'", Cs = "tokenizer";
|
|
479
|
+
function As(e, t = {}) {
|
|
480
|
+
const n = t.location !== !1, r = Os(e), s = () => r.index(), a = () => Es(r.line(), r.column(), r.index()), o = a(), i = s(), u = {
|
|
477
481
|
currentType: 13,
|
|
478
482
|
offset: i,
|
|
479
483
|
startLoc: o,
|
|
@@ -485,12 +489,12 @@ function Ss(e, t = {}) {
|
|
|
485
489
|
braceNest: 0,
|
|
486
490
|
inLinked: !1,
|
|
487
491
|
text: ""
|
|
488
|
-
},
|
|
492
|
+
}, E = () => u, { onError: I } = t;
|
|
489
493
|
function b(l, c, g, ...y) {
|
|
490
|
-
const x =
|
|
494
|
+
const x = E();
|
|
491
495
|
if (c.column += g, c.offset += g, I) {
|
|
492
|
-
const B = n ? Rt(x.startLoc, c) : null, U =
|
|
493
|
-
domain:
|
|
496
|
+
const B = n ? Rt(x.startLoc, c) : null, U = we(l, B, {
|
|
497
|
+
domain: Cs,
|
|
494
498
|
args: y
|
|
495
499
|
});
|
|
496
500
|
I(U);
|
|
@@ -520,7 +524,7 @@ function Ss(e, t = {}) {
|
|
|
520
524
|
return l.skipToPeek(), c;
|
|
521
525
|
}
|
|
522
526
|
function f(l) {
|
|
523
|
-
if (l ===
|
|
527
|
+
if (l === de)
|
|
524
528
|
return !1;
|
|
525
529
|
const c = l.charCodeAt(0);
|
|
526
530
|
return c >= 97 && c <= 122 || // a-z
|
|
@@ -528,7 +532,7 @@ function Ss(e, t = {}) {
|
|
|
528
532
|
c === 95;
|
|
529
533
|
}
|
|
530
534
|
function m(l) {
|
|
531
|
-
if (l ===
|
|
535
|
+
if (l === de)
|
|
532
536
|
return !1;
|
|
533
537
|
const c = l.charCodeAt(0);
|
|
534
538
|
return c >= 48 && c <= 57;
|
|
@@ -541,7 +545,7 @@ function Ss(e, t = {}) {
|
|
|
541
545
|
const y = f(l.currentPeek());
|
|
542
546
|
return l.resetPeek(), y;
|
|
543
547
|
}
|
|
544
|
-
function
|
|
548
|
+
function d(l, c) {
|
|
545
549
|
const { currentType: g } = c;
|
|
546
550
|
if (g !== 2)
|
|
547
551
|
return !1;
|
|
@@ -605,9 +609,9 @@ function Ss(e, t = {}) {
|
|
|
605
609
|
}
|
|
606
610
|
function Y(l, c) {
|
|
607
611
|
const g = l.currentChar();
|
|
608
|
-
return g ===
|
|
612
|
+
return g === de ? de : c(g) ? (l.next(), g) : null;
|
|
609
613
|
}
|
|
610
|
-
function
|
|
614
|
+
function ye(l) {
|
|
611
615
|
const c = l.charCodeAt(0);
|
|
612
616
|
return c >= 97 && c <= 122 || // a-z
|
|
613
617
|
c >= 65 && c <= 90 || // A-Z
|
|
@@ -616,7 +620,7 @@ function Ss(e, t = {}) {
|
|
|
616
620
|
c === 36;
|
|
617
621
|
}
|
|
618
622
|
function mt(l) {
|
|
619
|
-
return Y(l,
|
|
623
|
+
return Y(l, ye);
|
|
620
624
|
}
|
|
621
625
|
function dt(l) {
|
|
622
626
|
const c = l.charCodeAt(0);
|
|
@@ -643,10 +647,10 @@ function Ss(e, t = {}) {
|
|
|
643
647
|
c >= 65 && c <= 70 || // A-F
|
|
644
648
|
c >= 97 && c <= 102;
|
|
645
649
|
}
|
|
646
|
-
function
|
|
650
|
+
function me(l) {
|
|
647
651
|
return Y(l, Nt);
|
|
648
652
|
}
|
|
649
|
-
function
|
|
653
|
+
function Ve(l) {
|
|
650
654
|
let c = "", g = "";
|
|
651
655
|
for (; c = gt(l); )
|
|
652
656
|
g += c;
|
|
@@ -677,16 +681,16 @@ function Ss(e, t = {}) {
|
|
|
677
681
|
for (; c = Et(l); )
|
|
678
682
|
g += c;
|
|
679
683
|
const y = l.currentChar();
|
|
680
|
-
if (y && y !== "}" && y !==
|
|
684
|
+
if (y && y !== "}" && y !== de && y !== ie && y !== Q && y !== " ") {
|
|
681
685
|
const x = Ze(l);
|
|
682
686
|
return b(P.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, g + x), g + x;
|
|
683
687
|
}
|
|
684
|
-
return l.currentChar() ===
|
|
688
|
+
return l.currentChar() === de && b(P.UNTERMINATED_CLOSING_BRACE, a(), 0), g;
|
|
685
689
|
}
|
|
686
690
|
function ht(l) {
|
|
687
691
|
S(l);
|
|
688
692
|
let c = "";
|
|
689
|
-
return l.currentChar() === "-" ? (l.next(), c += `-${
|
|
693
|
+
return l.currentChar() === "-" ? (l.next(), c += `-${Ve(l)}`) : c += Ve(l), l.currentChar() === de && b(P.UNTERMINATED_CLOSING_BRACE, a(), 0), c;
|
|
690
694
|
}
|
|
691
695
|
function It(l) {
|
|
692
696
|
return l !== Nn && l !== Q;
|
|
@@ -697,7 +701,7 @@ function Ss(e, t = {}) {
|
|
|
697
701
|
for (; c = Y(l, It); )
|
|
698
702
|
c === "\\" ? g += Lt(l) : g += c;
|
|
699
703
|
const y = l.currentChar();
|
|
700
|
-
return y === Q || y ===
|
|
704
|
+
return y === Q || y === de ? (b(P.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), y === Q && (l.next(), D(l, "'")), g) : (D(l, "'"), g);
|
|
701
705
|
}
|
|
702
706
|
function Lt(l) {
|
|
703
707
|
const c = l.currentChar();
|
|
@@ -717,7 +721,7 @@ function Ss(e, t = {}) {
|
|
|
717
721
|
D(l, c);
|
|
718
722
|
let y = "";
|
|
719
723
|
for (let x = 0; x < g; x++) {
|
|
720
|
-
const B =
|
|
724
|
+
const B = me(l);
|
|
721
725
|
if (!B) {
|
|
722
726
|
b(P.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${c}${y}${l.currentChar()}`);
|
|
723
727
|
break;
|
|
@@ -749,7 +753,7 @@ function Ss(e, t = {}) {
|
|
|
749
753
|
};
|
|
750
754
|
return c("");
|
|
751
755
|
}
|
|
752
|
-
function
|
|
756
|
+
function $e(l) {
|
|
753
757
|
S(l);
|
|
754
758
|
const c = D(
|
|
755
759
|
l,
|
|
@@ -758,7 +762,7 @@ function Ss(e, t = {}) {
|
|
|
758
762
|
);
|
|
759
763
|
return S(l), c;
|
|
760
764
|
}
|
|
761
|
-
function
|
|
765
|
+
function We(l, c) {
|
|
762
766
|
let g = null;
|
|
763
767
|
switch (l.currentChar()) {
|
|
764
768
|
case "{":
|
|
@@ -776,16 +780,16 @@ function Ss(e, t = {}) {
|
|
|
776
780
|
/* TokenChars.BraceRight */
|
|
777
781
|
), c.braceNest--, c.braceNest > 0 && S(l), c.inLinked && c.braceNest === 0 && (c.inLinked = !1), g;
|
|
778
782
|
case "@":
|
|
779
|
-
return c.braceNest > 0 && b(P.UNTERMINATED_CLOSING_BRACE, a(), 0), g =
|
|
783
|
+
return c.braceNest > 0 && b(P.UNTERMINATED_CLOSING_BRACE, a(), 0), g = Te(l, c) || A(c), c.braceNest = 0, g;
|
|
780
784
|
default: {
|
|
781
785
|
let x = !0, B = !0, U = !0;
|
|
782
786
|
if (X(l))
|
|
783
|
-
return c.braceNest > 0 && b(P.UNTERMINATED_CLOSING_BRACE, a(), 0), g = N(c, 1,
|
|
787
|
+
return c.braceNest > 0 && b(P.UNTERMINATED_CLOSING_BRACE, a(), 0), g = N(c, 1, $e(l)), c.braceNest = 0, c.inLinked = !1, g;
|
|
784
788
|
if (c.braceNest > 0 && (c.currentType === 4 || c.currentType === 5 || c.currentType === 6))
|
|
785
|
-
return b(P.UNTERMINATED_CLOSING_BRACE, a(), 0), c.braceNest = 0,
|
|
789
|
+
return b(P.UNTERMINATED_CLOSING_BRACE, a(), 0), c.braceNest = 0, Ge(l, c);
|
|
786
790
|
if (x = h(l, c))
|
|
787
791
|
return g = N(c, 4, bt(l)), S(l), g;
|
|
788
|
-
if (B =
|
|
792
|
+
if (B = d(l, c))
|
|
789
793
|
return g = N(c, 5, ht(l)), S(l), g;
|
|
790
794
|
if (U = O(l, c))
|
|
791
795
|
return g = N(c, 6, fn(l)), S(l), g;
|
|
@@ -796,7 +800,7 @@ function Ss(e, t = {}) {
|
|
|
796
800
|
}
|
|
797
801
|
return g;
|
|
798
802
|
}
|
|
799
|
-
function
|
|
803
|
+
function Te(l, c) {
|
|
800
804
|
const { currentType: g } = c;
|
|
801
805
|
let y = null;
|
|
802
806
|
const x = l.currentChar();
|
|
@@ -823,21 +827,21 @@ function Ss(e, t = {}) {
|
|
|
823
827
|
/* TokenChars.LinkedDelimiter */
|
|
824
828
|
);
|
|
825
829
|
default:
|
|
826
|
-
return X(l) ? (y = N(c, 1,
|
|
830
|
+
return X(l) ? (y = N(c, 1, $e(l)), c.braceNest = 0, c.inLinked = !1, y) : v(l, c) || k(l, c) ? (S(l), Te(l, c)) : p(l, c) ? (S(l), N(c, 11, vt(l))) : w(l, c) ? (S(l), x === "{" ? We(l, c) || y : N(c, 10, Ct(l))) : (g === 7 && b(P.INVALID_LINKED_FORMAT, a(), 0), c.braceNest = 0, c.inLinked = !1, Ge(l, c));
|
|
827
831
|
}
|
|
828
832
|
}
|
|
829
|
-
function
|
|
833
|
+
function Ge(l, c) {
|
|
830
834
|
let g = {
|
|
831
835
|
type: 13
|
|
832
836
|
/* TokenTypes.EOF */
|
|
833
837
|
};
|
|
834
838
|
if (c.braceNest > 0)
|
|
835
|
-
return
|
|
839
|
+
return We(l, c) || A(c);
|
|
836
840
|
if (c.inLinked)
|
|
837
|
-
return
|
|
841
|
+
return Te(l, c) || A(c);
|
|
838
842
|
switch (l.currentChar()) {
|
|
839
843
|
case "{":
|
|
840
|
-
return
|
|
844
|
+
return We(l, c) || A(c);
|
|
841
845
|
case "}":
|
|
842
846
|
return b(P.UNBALANCED_CLOSING_BRACE, a(), 0), l.next(), N(
|
|
843
847
|
c,
|
|
@@ -846,10 +850,10 @@ function Ss(e, t = {}) {
|
|
|
846
850
|
/* TokenChars.BraceRight */
|
|
847
851
|
);
|
|
848
852
|
case "@":
|
|
849
|
-
return
|
|
853
|
+
return Te(l, c) || A(c);
|
|
850
854
|
default: {
|
|
851
855
|
if (X(l))
|
|
852
|
-
return g = N(c, 1,
|
|
856
|
+
return g = N(c, 1, $e(l)), c.braceNest = 0, c.inLinked = !1, g;
|
|
853
857
|
if (ae(l))
|
|
854
858
|
return N(c, 0, Tt(l));
|
|
855
859
|
break;
|
|
@@ -859,21 +863,21 @@ function Ss(e, t = {}) {
|
|
|
859
863
|
}
|
|
860
864
|
function At() {
|
|
861
865
|
const { currentType: l, offset: c, startLoc: g, endLoc: y } = u;
|
|
862
|
-
return u.lastType = l, u.lastOffset = c, u.lastStartLoc = g, u.lastEndLoc = y, u.offset = s(), u.startLoc = a(), r.currentChar() ===
|
|
866
|
+
return u.lastType = l, u.lastOffset = c, u.lastStartLoc = g, u.lastEndLoc = y, u.offset = s(), u.startLoc = a(), r.currentChar() === de ? N(
|
|
863
867
|
u,
|
|
864
868
|
13
|
|
865
869
|
/* TokenTypes.EOF */
|
|
866
|
-
) :
|
|
870
|
+
) : Ge(r, u);
|
|
867
871
|
}
|
|
868
872
|
return {
|
|
869
873
|
nextToken: At,
|
|
870
874
|
currentOffset: s,
|
|
871
875
|
currentPosition: a,
|
|
872
|
-
context:
|
|
876
|
+
context: E
|
|
873
877
|
};
|
|
874
878
|
}
|
|
875
|
-
const
|
|
876
|
-
function
|
|
879
|
+
const Ss = "parser", ys = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
880
|
+
function Ps(e, t, n) {
|
|
877
881
|
switch (e) {
|
|
878
882
|
case "\\\\":
|
|
879
883
|
return "\\";
|
|
@@ -886,44 +890,44 @@ function Ds(e, t, n) {
|
|
|
886
890
|
}
|
|
887
891
|
}
|
|
888
892
|
}
|
|
889
|
-
function
|
|
893
|
+
function Ds(e = {}) {
|
|
890
894
|
const t = e.location !== !1, { onError: n } = e;
|
|
891
|
-
function r(f, m, h,
|
|
895
|
+
function r(f, m, h, d, ...O) {
|
|
892
896
|
const v = f.currentPosition();
|
|
893
|
-
if (v.offset +=
|
|
894
|
-
const p = t ? Rt(h, v) : null, k =
|
|
895
|
-
domain:
|
|
897
|
+
if (v.offset += d, v.column += d, n) {
|
|
898
|
+
const p = t ? Rt(h, v) : null, k = we(m, p, {
|
|
899
|
+
domain: Ss,
|
|
896
900
|
args: O
|
|
897
901
|
});
|
|
898
902
|
n(k);
|
|
899
903
|
}
|
|
900
904
|
}
|
|
901
905
|
function s(f, m, h) {
|
|
902
|
-
const
|
|
903
|
-
return t && (
|
|
906
|
+
const d = { type: f };
|
|
907
|
+
return t && (d.start = m, d.end = m, d.loc = { start: h, end: h }), d;
|
|
904
908
|
}
|
|
905
|
-
function a(f, m, h,
|
|
909
|
+
function a(f, m, h, d) {
|
|
906
910
|
t && (f.end = m, f.loc && (f.loc.end = h));
|
|
907
911
|
}
|
|
908
912
|
function o(f, m) {
|
|
909
|
-
const h = f.context(),
|
|
910
|
-
return
|
|
913
|
+
const h = f.context(), d = s(3, h.offset, h.startLoc);
|
|
914
|
+
return d.value = m, a(d, f.currentOffset(), f.currentPosition()), d;
|
|
911
915
|
}
|
|
912
916
|
function i(f, m) {
|
|
913
|
-
const h = f.context(), { lastOffset:
|
|
917
|
+
const h = f.context(), { lastOffset: d, lastStartLoc: O } = h, v = s(5, d, O);
|
|
914
918
|
return v.index = parseInt(m, 10), f.nextToken(), a(v, f.currentOffset(), f.currentPosition()), v;
|
|
915
919
|
}
|
|
916
920
|
function u(f, m) {
|
|
917
|
-
const h = f.context(), { lastOffset:
|
|
921
|
+
const h = f.context(), { lastOffset: d, lastStartLoc: O } = h, v = s(4, d, O);
|
|
918
922
|
return v.key = m, f.nextToken(), a(v, f.currentOffset(), f.currentPosition()), v;
|
|
919
923
|
}
|
|
920
|
-
function
|
|
921
|
-
const h = f.context(), { lastOffset:
|
|
922
|
-
return v.value = m.replace(
|
|
924
|
+
function E(f, m) {
|
|
925
|
+
const h = f.context(), { lastOffset: d, lastStartLoc: O } = h, v = s(9, d, O);
|
|
926
|
+
return v.value = m.replace(ys, Ps), f.nextToken(), a(v, f.currentOffset(), f.currentPosition()), v;
|
|
923
927
|
}
|
|
924
928
|
function I(f) {
|
|
925
|
-
const m = f.nextToken(), h = f.context(), { lastOffset:
|
|
926
|
-
return m.type !== 11 ? (r(f, P.UNEXPECTED_EMPTY_LINKED_MODIFIER, h.lastStartLoc, 0), v.value = "", a(v,
|
|
929
|
+
const m = f.nextToken(), h = f.context(), { lastOffset: d, lastStartLoc: O } = h, v = s(8, d, O);
|
|
930
|
+
return m.type !== 11 ? (r(f, P.UNEXPECTED_EMPTY_LINKED_MODIFIER, h.lastStartLoc, 0), v.value = "", a(v, d, O), {
|
|
927
931
|
nextConsumeToken: m,
|
|
928
932
|
node: v
|
|
929
933
|
}) : (m.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ce(m)), v.value = m.value || "", a(v, f.currentOffset(), f.currentPosition()), {
|
|
@@ -931,34 +935,34 @@ function ks(e = {}) {
|
|
|
931
935
|
});
|
|
932
936
|
}
|
|
933
937
|
function b(f, m) {
|
|
934
|
-
const h = f.context(),
|
|
935
|
-
return
|
|
938
|
+
const h = f.context(), d = s(7, h.offset, h.startLoc);
|
|
939
|
+
return d.value = m, a(d, f.currentOffset(), f.currentPosition()), d;
|
|
936
940
|
}
|
|
937
941
|
function N(f) {
|
|
938
942
|
const m = f.context(), h = s(6, m.offset, m.startLoc);
|
|
939
|
-
let
|
|
940
|
-
if (
|
|
943
|
+
let d = f.nextToken();
|
|
944
|
+
if (d.type === 8) {
|
|
941
945
|
const O = I(f);
|
|
942
|
-
h.modifier = O.node,
|
|
946
|
+
h.modifier = O.node, d = O.nextConsumeToken || f.nextToken();
|
|
943
947
|
}
|
|
944
|
-
switch (
|
|
948
|
+
switch (d.type !== 9 && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ce(d)), d = f.nextToken(), d.type === 2 && (d = f.nextToken()), d.type) {
|
|
945
949
|
case 10:
|
|
946
|
-
|
|
950
|
+
d.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ce(d)), h.key = b(f, d.value || "");
|
|
947
951
|
break;
|
|
948
952
|
case 4:
|
|
949
|
-
|
|
953
|
+
d.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ce(d)), h.key = u(f, d.value || "");
|
|
950
954
|
break;
|
|
951
955
|
case 5:
|
|
952
|
-
|
|
956
|
+
d.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ce(d)), h.key = i(f, d.value || "");
|
|
953
957
|
break;
|
|
954
958
|
case 6:
|
|
955
|
-
|
|
959
|
+
d.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ce(d)), h.key = E(f, d.value || "");
|
|
956
960
|
break;
|
|
957
961
|
default: {
|
|
958
962
|
r(f, P.UNEXPECTED_EMPTY_LINKED_KEY, m.lastStartLoc, 0);
|
|
959
963
|
const O = f.context(), v = s(7, O.offset, O.startLoc);
|
|
960
964
|
return v.value = "", a(v, O.offset, O.startLoc), h.key = v, a(h, O.offset, O.startLoc), {
|
|
961
|
-
nextConsumeToken:
|
|
965
|
+
nextConsumeToken: d,
|
|
962
966
|
node: h
|
|
963
967
|
};
|
|
964
968
|
}
|
|
@@ -968,7 +972,7 @@ function ks(e = {}) {
|
|
|
968
972
|
};
|
|
969
973
|
}
|
|
970
974
|
function A(f) {
|
|
971
|
-
const m = f.context(), h = m.currentType === 1 ? f.currentOffset() : m.offset,
|
|
975
|
+
const m = f.context(), h = m.currentType === 1 ? f.currentOffset() : m.offset, d = m.currentType === 1 ? m.endLoc : m.startLoc, O = s(2, h, d);
|
|
972
976
|
O.items = [];
|
|
973
977
|
let v = null;
|
|
974
978
|
do {
|
|
@@ -984,7 +988,7 @@ function ks(e = {}) {
|
|
|
984
988
|
w.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ce(w)), O.items.push(u(f, w.value || ""));
|
|
985
989
|
break;
|
|
986
990
|
case 6:
|
|
987
|
-
w.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ce(w)), O.items.push(
|
|
991
|
+
w.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ce(w)), O.items.push(E(f, w.value || ""));
|
|
988
992
|
break;
|
|
989
993
|
case 7: {
|
|
990
994
|
const X = N(f);
|
|
@@ -996,11 +1000,11 @@ function ks(e = {}) {
|
|
|
996
1000
|
const p = m.currentType === 1 ? m.lastOffset : f.currentOffset(), k = m.currentType === 1 ? m.lastEndLoc : f.currentPosition();
|
|
997
1001
|
return a(O, p, k), O;
|
|
998
1002
|
}
|
|
999
|
-
function D(f, m, h,
|
|
1003
|
+
function D(f, m, h, d) {
|
|
1000
1004
|
const O = f.context();
|
|
1001
|
-
let v =
|
|
1005
|
+
let v = d.items.length === 0;
|
|
1002
1006
|
const p = s(1, m, h);
|
|
1003
|
-
p.cases = [], p.cases.push(
|
|
1007
|
+
p.cases = [], p.cases.push(d);
|
|
1004
1008
|
do {
|
|
1005
1009
|
const k = A(f);
|
|
1006
1010
|
v || (v = k.items.length === 0), p.cases.push(k);
|
|
@@ -1008,12 +1012,12 @@ function ks(e = {}) {
|
|
|
1008
1012
|
return v && r(f, P.MUST_HAVE_MESSAGES_IN_PLURAL, h, 0), a(p, f.currentOffset(), f.currentPosition()), p;
|
|
1009
1013
|
}
|
|
1010
1014
|
function C(f) {
|
|
1011
|
-
const m = f.context(), { offset: h, startLoc:
|
|
1012
|
-
return m.currentType === 13 ? O : D(f, h,
|
|
1015
|
+
const m = f.context(), { offset: h, startLoc: d } = m, O = A(f);
|
|
1016
|
+
return m.currentType === 13 ? O : D(f, h, d, O);
|
|
1013
1017
|
}
|
|
1014
1018
|
function S(f) {
|
|
1015
|
-
const m =
|
|
1016
|
-
return t &&
|
|
1019
|
+
const m = As(f, J({}, e)), h = m.context(), d = s(0, h.offset, h.startLoc);
|
|
1020
|
+
return t && d.loc && (d.loc.source = f), d.body = C(m), e.onCacheKey && (d.cacheKey = e.onCacheKey(f)), h.currentType !== 13 && r(m, P.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, f[h.offset] || ""), a(d, m.currentOffset(), m.currentPosition()), d;
|
|
1017
1021
|
}
|
|
1018
1022
|
return { parse: S };
|
|
1019
1023
|
}
|
|
@@ -1023,7 +1027,7 @@ function ce(e) {
|
|
|
1023
1027
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
1024
1028
|
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
1025
1029
|
}
|
|
1026
|
-
function
|
|
1030
|
+
function ks(e, t = {}) {
|
|
1027
1031
|
const n = {
|
|
1028
1032
|
ast: e,
|
|
1029
1033
|
helpers: /* @__PURE__ */ new Set()
|
|
@@ -1075,8 +1079,8 @@ function tn(e, t) {
|
|
|
1075
1079
|
break;
|
|
1076
1080
|
}
|
|
1077
1081
|
}
|
|
1078
|
-
function
|
|
1079
|
-
const n =
|
|
1082
|
+
function Rs(e, t = {}) {
|
|
1083
|
+
const n = ks(e);
|
|
1080
1084
|
n.helper(
|
|
1081
1085
|
"normalize"
|
|
1082
1086
|
/* HelperNameMap.NORMALIZE */
|
|
@@ -1084,7 +1088,7 @@ function Ms(e, t = {}) {
|
|
|
1084
1088
|
const r = n.context();
|
|
1085
1089
|
e.helpers = Array.from(r.helpers);
|
|
1086
1090
|
}
|
|
1087
|
-
function
|
|
1091
|
+
function Ms(e) {
|
|
1088
1092
|
const t = e.body;
|
|
1089
1093
|
return t.type === 2 ? bn(t) : t.cases.forEach((n) => bn(n)), e;
|
|
1090
1094
|
}
|
|
@@ -1109,25 +1113,25 @@ function bn(e) {
|
|
|
1109
1113
|
}
|
|
1110
1114
|
}
|
|
1111
1115
|
}
|
|
1112
|
-
const
|
|
1113
|
-
function
|
|
1116
|
+
const Fs = "minifier";
|
|
1117
|
+
function ke(e) {
|
|
1114
1118
|
switch (e.t = e.type, e.type) {
|
|
1115
1119
|
case 0: {
|
|
1116
1120
|
const t = e;
|
|
1117
|
-
|
|
1121
|
+
ke(t.body), t.b = t.body, delete t.body;
|
|
1118
1122
|
break;
|
|
1119
1123
|
}
|
|
1120
1124
|
case 1: {
|
|
1121
1125
|
const t = e, n = t.cases;
|
|
1122
1126
|
for (let r = 0; r < n.length; r++)
|
|
1123
|
-
|
|
1127
|
+
ke(n[r]);
|
|
1124
1128
|
t.c = n, delete t.cases;
|
|
1125
1129
|
break;
|
|
1126
1130
|
}
|
|
1127
1131
|
case 2: {
|
|
1128
1132
|
const t = e, n = t.items;
|
|
1129
1133
|
for (let r = 0; r < n.length; r++)
|
|
1130
|
-
|
|
1134
|
+
ke(n[r]);
|
|
1131
1135
|
t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
|
|
1132
1136
|
break;
|
|
1133
1137
|
}
|
|
@@ -1141,7 +1145,7 @@ function Re(e) {
|
|
|
1141
1145
|
}
|
|
1142
1146
|
case 6: {
|
|
1143
1147
|
const t = e;
|
|
1144
|
-
|
|
1148
|
+
ke(t.key), t.k = t.key, delete t.key, t.modifier && (ke(t.modifier), t.m = t.modifier, delete t.modifier);
|
|
1145
1149
|
break;
|
|
1146
1150
|
}
|
|
1147
1151
|
case 5: {
|
|
@@ -1156,15 +1160,15 @@ function Re(e) {
|
|
|
1156
1160
|
}
|
|
1157
1161
|
default:
|
|
1158
1162
|
if (process.env.NODE_ENV !== "production")
|
|
1159
|
-
throw
|
|
1160
|
-
domain:
|
|
1163
|
+
throw we(P.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
1164
|
+
domain: Fs,
|
|
1161
1165
|
args: [e.type]
|
|
1162
1166
|
});
|
|
1163
1167
|
}
|
|
1164
1168
|
delete e.type;
|
|
1165
1169
|
}
|
|
1166
|
-
const
|
|
1167
|
-
function
|
|
1170
|
+
const Us = "parser";
|
|
1171
|
+
function ws(e, t) {
|
|
1168
1172
|
const { filename: n, breakLineCode: r, needIndent: s } = t, a = t.location !== !1, o = {
|
|
1169
1173
|
filename: n,
|
|
1170
1174
|
code: "",
|
|
@@ -1181,20 +1185,20 @@ function Vs(e, t) {
|
|
|
1181
1185
|
function u(C, S) {
|
|
1182
1186
|
o.code += C;
|
|
1183
1187
|
}
|
|
1184
|
-
function
|
|
1188
|
+
function E(C, S = !0) {
|
|
1185
1189
|
const f = S ? r : "";
|
|
1186
1190
|
u(s ? f + " ".repeat(C) : f);
|
|
1187
1191
|
}
|
|
1188
1192
|
function I(C = !0) {
|
|
1189
1193
|
const S = ++o.indentLevel;
|
|
1190
|
-
C &&
|
|
1194
|
+
C && E(S);
|
|
1191
1195
|
}
|
|
1192
1196
|
function b(C = !0) {
|
|
1193
1197
|
const S = --o.indentLevel;
|
|
1194
|
-
C &&
|
|
1198
|
+
C && E(S);
|
|
1195
1199
|
}
|
|
1196
1200
|
function N() {
|
|
1197
|
-
|
|
1201
|
+
E(o.indentLevel);
|
|
1198
1202
|
}
|
|
1199
1203
|
return {
|
|
1200
1204
|
context: i,
|
|
@@ -1206,25 +1210,25 @@ function Vs(e, t) {
|
|
|
1206
1210
|
needIndent: () => o.needIndent
|
|
1207
1211
|
};
|
|
1208
1212
|
}
|
|
1209
|
-
function
|
|
1213
|
+
function Vs(e, t) {
|
|
1210
1214
|
const { helper: n } = e;
|
|
1211
1215
|
e.push(`${n(
|
|
1212
1216
|
"linked"
|
|
1213
1217
|
/* HelperNameMap.LINKED */
|
|
1214
|
-
)}(`),
|
|
1218
|
+
)}(`), Fe(e, t.key), t.modifier ? (e.push(", "), Fe(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
1215
1219
|
}
|
|
1216
|
-
function
|
|
1220
|
+
function $s(e, t) {
|
|
1217
1221
|
const { helper: n, needIndent: r } = e;
|
|
1218
1222
|
e.push(`${n(
|
|
1219
1223
|
"normalize"
|
|
1220
1224
|
/* HelperNameMap.NORMALIZE */
|
|
1221
1225
|
)}([`), e.indent(r());
|
|
1222
1226
|
const s = t.items.length;
|
|
1223
|
-
for (let a = 0; a < s && (
|
|
1227
|
+
for (let a = 0; a < s && (Fe(e, t.items[a]), a !== s - 1); a++)
|
|
1224
1228
|
e.push(", ");
|
|
1225
1229
|
e.deindent(r()), e.push("])");
|
|
1226
1230
|
}
|
|
1227
|
-
function
|
|
1231
|
+
function Ws(e, t) {
|
|
1228
1232
|
const { helper: n, needIndent: r } = e;
|
|
1229
1233
|
if (t.cases.length > 1) {
|
|
1230
1234
|
e.push(`${n(
|
|
@@ -1232,28 +1236,28 @@ function Gs(e, t) {
|
|
|
1232
1236
|
/* HelperNameMap.PLURAL */
|
|
1233
1237
|
)}([`), e.indent(r());
|
|
1234
1238
|
const s = t.cases.length;
|
|
1235
|
-
for (let a = 0; a < s && (
|
|
1239
|
+
for (let a = 0; a < s && (Fe(e, t.cases[a]), a !== s - 1); a++)
|
|
1236
1240
|
e.push(", ");
|
|
1237
1241
|
e.deindent(r()), e.push("])");
|
|
1238
1242
|
}
|
|
1239
1243
|
}
|
|
1240
|
-
function
|
|
1241
|
-
t.body ?
|
|
1244
|
+
function Gs(e, t) {
|
|
1245
|
+
t.body ? Fe(e, t.body) : e.push("null");
|
|
1242
1246
|
}
|
|
1243
|
-
function
|
|
1247
|
+
function Fe(e, t) {
|
|
1244
1248
|
const { helper: n } = e;
|
|
1245
1249
|
switch (t.type) {
|
|
1246
1250
|
case 0:
|
|
1247
|
-
|
|
1251
|
+
Gs(e, t);
|
|
1248
1252
|
break;
|
|
1249
1253
|
case 1:
|
|
1250
|
-
|
|
1254
|
+
Ws(e, t);
|
|
1251
1255
|
break;
|
|
1252
1256
|
case 2:
|
|
1253
|
-
|
|
1257
|
+
$s(e, t);
|
|
1254
1258
|
break;
|
|
1255
1259
|
case 6:
|
|
1256
|
-
|
|
1260
|
+
Vs(e, t);
|
|
1257
1261
|
break;
|
|
1258
1262
|
case 8:
|
|
1259
1263
|
e.push(JSON.stringify(t.value), t);
|
|
@@ -1287,74 +1291,74 @@ function Ue(e, t) {
|
|
|
1287
1291
|
break;
|
|
1288
1292
|
default:
|
|
1289
1293
|
if (process.env.NODE_ENV !== "production")
|
|
1290
|
-
throw
|
|
1291
|
-
domain:
|
|
1294
|
+
throw we(P.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
1295
|
+
domain: Us,
|
|
1292
1296
|
args: [t.type]
|
|
1293
1297
|
});
|
|
1294
1298
|
}
|
|
1295
1299
|
}
|
|
1296
|
-
const
|
|
1300
|
+
const xs = (e, t = {}) => {
|
|
1297
1301
|
const n = L(t.mode) ? t.mode : "normal", r = L(t.filename) ? t.filename : "message.intl";
|
|
1298
1302
|
t.sourceMap;
|
|
1299
1303
|
const s = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
1300
|
-
`, a = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], i =
|
|
1304
|
+
`, a = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], i = ws(e, {
|
|
1301
1305
|
filename: r,
|
|
1302
1306
|
breakLineCode: s,
|
|
1303
1307
|
needIndent: a
|
|
1304
1308
|
});
|
|
1305
|
-
i.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), i.indent(a), o.length > 0 && (i.push(`const { ${zt(o.map((I) => `${I}: _${I}`), ", ")} } = ctx`), i.newline()), i.push("return "),
|
|
1306
|
-
const { code: u, map:
|
|
1309
|
+
i.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), i.indent(a), o.length > 0 && (i.push(`const { ${zt(o.map((I) => `${I}: _${I}`), ", ")} } = ctx`), i.newline()), i.push("return "), Fe(i, e), i.deindent(a), i.push("}"), delete e.helpers;
|
|
1310
|
+
const { code: u, map: E } = i.context();
|
|
1307
1311
|
return {
|
|
1308
1312
|
ast: e,
|
|
1309
1313
|
code: u,
|
|
1310
|
-
map:
|
|
1314
|
+
map: E ? E.toJSON() : void 0
|
|
1311
1315
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1312
1316
|
};
|
|
1313
1317
|
};
|
|
1314
|
-
function
|
|
1315
|
-
const n = J({}, t), r = !!n.jit, s = !!n.minify, a = n.optimize == null ? !0 : n.optimize, i =
|
|
1316
|
-
return r ? (a &&
|
|
1318
|
+
function Hs(e, t = {}) {
|
|
1319
|
+
const n = J({}, t), r = !!n.jit, s = !!n.minify, a = n.optimize == null ? !0 : n.optimize, i = Ds(n).parse(e);
|
|
1320
|
+
return r ? (a && Ms(i), s && ke(i), { ast: i, code: "" }) : (Rs(i, n), xs(i, n));
|
|
1317
1321
|
}
|
|
1318
|
-
function
|
|
1319
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (
|
|
1322
|
+
function Ys() {
|
|
1323
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Le().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Le().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
1320
1324
|
}
|
|
1321
1325
|
function se(e) {
|
|
1322
1326
|
return M(e) && nn(e) === 0 && (oe(e, "b") || oe(e, "body"));
|
|
1323
1327
|
}
|
|
1324
|
-
const
|
|
1328
|
+
const nr = ["b", "body"];
|
|
1329
|
+
function Bs(e) {
|
|
1330
|
+
return ge(e, nr);
|
|
1331
|
+
}
|
|
1332
|
+
const rr = ["c", "cases"];
|
|
1325
1333
|
function Ks(e) {
|
|
1326
|
-
return
|
|
1334
|
+
return ge(e, rr, []);
|
|
1327
1335
|
}
|
|
1328
|
-
const sr = ["
|
|
1336
|
+
const sr = ["s", "static"];
|
|
1329
1337
|
function js(e) {
|
|
1330
|
-
return
|
|
1338
|
+
return ge(e, sr);
|
|
1331
1339
|
}
|
|
1332
|
-
const ar = ["
|
|
1340
|
+
const ar = ["i", "items"];
|
|
1333
1341
|
function Xs(e) {
|
|
1334
|
-
return
|
|
1342
|
+
return ge(e, ar, []);
|
|
1335
1343
|
}
|
|
1336
|
-
const or = ["
|
|
1337
|
-
function Js(e) {
|
|
1338
|
-
return Te(e, or, []);
|
|
1339
|
-
}
|
|
1340
|
-
const lr = ["t", "type"];
|
|
1344
|
+
const or = ["t", "type"];
|
|
1341
1345
|
function nn(e) {
|
|
1342
|
-
return
|
|
1346
|
+
return ge(e, or);
|
|
1343
1347
|
}
|
|
1344
|
-
const
|
|
1348
|
+
const lr = ["v", "value"];
|
|
1345
1349
|
function tt(e, t) {
|
|
1346
|
-
const n =
|
|
1350
|
+
const n = ge(e, lr);
|
|
1347
1351
|
if (n != null)
|
|
1348
1352
|
return n;
|
|
1349
1353
|
throw Be(t);
|
|
1350
1354
|
}
|
|
1351
|
-
const
|
|
1352
|
-
function
|
|
1353
|
-
return
|
|
1355
|
+
const ir = ["m", "modifier"];
|
|
1356
|
+
function Js(e) {
|
|
1357
|
+
return ge(e, ir);
|
|
1354
1358
|
}
|
|
1355
|
-
const
|
|
1356
|
-
function
|
|
1357
|
-
const t =
|
|
1359
|
+
const cr = ["k", "key"];
|
|
1360
|
+
function Qs(e) {
|
|
1361
|
+
const t = ge(e, cr);
|
|
1358
1362
|
if (t)
|
|
1359
1363
|
return t;
|
|
1360
1364
|
throw Be(
|
|
@@ -1362,7 +1366,7 @@ function qs(e) {
|
|
|
1362
1366
|
/* NodeTypes.Linked */
|
|
1363
1367
|
);
|
|
1364
1368
|
}
|
|
1365
|
-
function
|
|
1369
|
+
function ge(e, t, n) {
|
|
1366
1370
|
for (let r = 0; r < t.length; r++) {
|
|
1367
1371
|
const s = t[r];
|
|
1368
1372
|
if (oe(e, s) && e[s] != null)
|
|
@@ -1370,31 +1374,31 @@ function Te(e, t, n) {
|
|
|
1370
1374
|
}
|
|
1371
1375
|
return n;
|
|
1372
1376
|
}
|
|
1373
|
-
const
|
|
1377
|
+
const ur = [
|
|
1378
|
+
...nr,
|
|
1374
1379
|
...rr,
|
|
1375
1380
|
...sr,
|
|
1376
1381
|
...ar,
|
|
1377
|
-
...or,
|
|
1378
|
-
...ur,
|
|
1379
1382
|
...cr,
|
|
1380
1383
|
...ir,
|
|
1381
|
-
...lr
|
|
1384
|
+
...lr,
|
|
1385
|
+
...or
|
|
1382
1386
|
];
|
|
1383
1387
|
function Be(e) {
|
|
1384
1388
|
return new Error(`unhandled node type: ${e}`);
|
|
1385
1389
|
}
|
|
1386
1390
|
function yt(e) {
|
|
1387
|
-
return (n) =>
|
|
1391
|
+
return (n) => qs(n, e);
|
|
1388
1392
|
}
|
|
1389
|
-
function
|
|
1390
|
-
const n =
|
|
1393
|
+
function qs(e, t) {
|
|
1394
|
+
const n = Bs(t);
|
|
1391
1395
|
if (n == null)
|
|
1392
1396
|
throw Be(
|
|
1393
1397
|
0
|
|
1394
1398
|
/* NodeTypes.Resource */
|
|
1395
1399
|
);
|
|
1396
1400
|
if (nn(n) === 1) {
|
|
1397
|
-
const a =
|
|
1401
|
+
const a = Ks(n);
|
|
1398
1402
|
return e.plural(a.reduce((o, i) => [
|
|
1399
1403
|
...o,
|
|
1400
1404
|
hn(e, i)
|
|
@@ -1403,11 +1407,11 @@ function Zs(e, t) {
|
|
|
1403
1407
|
return hn(e, n);
|
|
1404
1408
|
}
|
|
1405
1409
|
function hn(e, t) {
|
|
1406
|
-
const n =
|
|
1410
|
+
const n = js(t);
|
|
1407
1411
|
if (n != null)
|
|
1408
1412
|
return e.type === "text" ? n : e.normalize([n]);
|
|
1409
1413
|
{
|
|
1410
|
-
const r =
|
|
1414
|
+
const r = Xs(t).reduce((s, a) => [...s, Mt(e, a)], []);
|
|
1411
1415
|
return e.normalize(r);
|
|
1412
1416
|
}
|
|
1413
1417
|
}
|
|
@@ -1435,7 +1439,7 @@ function Mt(e, t) {
|
|
|
1435
1439
|
throw Be(n);
|
|
1436
1440
|
}
|
|
1437
1441
|
case 6: {
|
|
1438
|
-
const r = t, s =
|
|
1442
|
+
const r = t, s = Js(r), a = Qs(r);
|
|
1439
1443
|
return e.linked(Mt(e, a), s ? Mt(e, s) : void 0, e.type);
|
|
1440
1444
|
}
|
|
1441
1445
|
case 7:
|
|
@@ -1446,28 +1450,28 @@ function Mt(e, t) {
|
|
|
1446
1450
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1447
1451
|
}
|
|
1448
1452
|
}
|
|
1449
|
-
const
|
|
1450
|
-
function
|
|
1451
|
-
t &&
|
|
1453
|
+
const Zs = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
1454
|
+
function zs(e, t) {
|
|
1455
|
+
t && bs(e) && ue(ct(Zs, { source: e }));
|
|
1452
1456
|
}
|
|
1453
|
-
const
|
|
1457
|
+
const ea = (e) => e;
|
|
1454
1458
|
let nt = $();
|
|
1455
|
-
function
|
|
1459
|
+
function ta(e, t = {}) {
|
|
1456
1460
|
let n = !1;
|
|
1457
|
-
const r = t.onError ||
|
|
1461
|
+
const r = t.onError || Ns;
|
|
1458
1462
|
return t.onError = (s) => {
|
|
1459
1463
|
n = !0, r(s);
|
|
1460
|
-
}, { ...
|
|
1464
|
+
}, { ...Hs(e, t), detectError: n };
|
|
1461
1465
|
}
|
|
1462
1466
|
// @__NO_SIDE_EFFECTS__
|
|
1463
|
-
function
|
|
1467
|
+
function na(e, t) {
|
|
1464
1468
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && L(e)) {
|
|
1465
1469
|
const n = F(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
1466
|
-
process.env.NODE_ENV !== "production" &&
|
|
1467
|
-
const s = (t.onCacheKey ||
|
|
1470
|
+
process.env.NODE_ENV !== "production" && zs(e, n);
|
|
1471
|
+
const s = (t.onCacheKey || ea)(e), a = nt[s];
|
|
1468
1472
|
if (a)
|
|
1469
1473
|
return a;
|
|
1470
|
-
const { ast: o, detectError: i } =
|
|
1474
|
+
const { ast: o, detectError: i } = ta(e, {
|
|
1471
1475
|
...t,
|
|
1472
1476
|
location: process.env.NODE_ENV !== "production",
|
|
1473
1477
|
jit: !0
|
|
@@ -1475,7 +1479,7 @@ function ra(e, t) {
|
|
|
1475
1479
|
return i ? u : nt[s] = u;
|
|
1476
1480
|
} else {
|
|
1477
1481
|
if (process.env.NODE_ENV !== "production" && !se(e))
|
|
1478
|
-
return
|
|
1482
|
+
return ue(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), (() => e);
|
|
1479
1483
|
const n = e.cacheKey;
|
|
1480
1484
|
if (n) {
|
|
1481
1485
|
const r = nt[n];
|
|
@@ -1485,10 +1489,10 @@ function ra(e, t) {
|
|
|
1485
1489
|
}
|
|
1486
1490
|
}
|
|
1487
1491
|
let Ke = null;
|
|
1488
|
-
function
|
|
1492
|
+
function ra(e) {
|
|
1489
1493
|
Ke = e;
|
|
1490
1494
|
}
|
|
1491
|
-
function
|
|
1495
|
+
function sa(e, t, n) {
|
|
1492
1496
|
Ke && Ke.emit("i18n:init", {
|
|
1493
1497
|
timestamp: Date.now(),
|
|
1494
1498
|
i18n: e,
|
|
@@ -1496,12 +1500,12 @@ function aa(e, t, n) {
|
|
|
1496
1500
|
meta: n
|
|
1497
1501
|
});
|
|
1498
1502
|
}
|
|
1499
|
-
const
|
|
1500
|
-
function
|
|
1503
|
+
const aa = /* @__PURE__ */ oa("function:translate");
|
|
1504
|
+
function oa(e) {
|
|
1501
1505
|
return (t) => Ke && Ke.emit(e, t);
|
|
1502
1506
|
}
|
|
1503
1507
|
const q = {
|
|
1504
|
-
INVALID_ARGUMENT:
|
|
1508
|
+
INVALID_ARGUMENT: ps,
|
|
1505
1509
|
// 17
|
|
1506
1510
|
INVALID_DATE_ARGUMENT: 18,
|
|
1507
1511
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1509,11 +1513,11 @@ const q = {
|
|
|
1509
1513
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1510
1514
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1511
1515
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1512
|
-
},
|
|
1513
|
-
function
|
|
1514
|
-
return
|
|
1516
|
+
}, la = 24;
|
|
1517
|
+
function Ee(e) {
|
|
1518
|
+
return we(e, null, process.env.NODE_ENV !== "production" ? { messages: ia } : void 0);
|
|
1515
1519
|
}
|
|
1516
|
-
const
|
|
1520
|
+
const ia = {
|
|
1517
1521
|
[q.INVALID_ARGUMENT]: "Invalid arguments",
|
|
1518
1522
|
[q.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
1519
1523
|
[q.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
@@ -1534,21 +1538,21 @@ function In(e) {
|
|
|
1534
1538
|
return Pt;
|
|
1535
1539
|
if (e.constructor.name === "Function") {
|
|
1536
1540
|
const t = e();
|
|
1537
|
-
if (
|
|
1538
|
-
throw
|
|
1541
|
+
if (_s(t))
|
|
1542
|
+
throw Ee(q.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1539
1543
|
return Pt = t;
|
|
1540
1544
|
} else
|
|
1541
|
-
throw
|
|
1545
|
+
throw Ee(q.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1542
1546
|
} else
|
|
1543
|
-
throw
|
|
1547
|
+
throw Ee(q.NOT_SUPPORT_LOCALE_TYPE);
|
|
1544
1548
|
}
|
|
1545
|
-
function
|
|
1549
|
+
function ca(e, t, n) {
|
|
1546
1550
|
return [.../* @__PURE__ */ new Set([
|
|
1547
1551
|
n,
|
|
1548
1552
|
...H(t) ? t : M(t) ? Object.keys(t) : L(t) ? [t] : [n]
|
|
1549
1553
|
])];
|
|
1550
1554
|
}
|
|
1551
|
-
function
|
|
1555
|
+
function fr(e, t, n) {
|
|
1552
1556
|
const r = L(n) ? n : je, s = e;
|
|
1553
1557
|
s.__localeChainCache || (s.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1554
1558
|
let a = s.__localeChainCache.get(r);
|
|
@@ -1566,20 +1570,20 @@ function Ln(e, t, n) {
|
|
|
1566
1570
|
let r = !0;
|
|
1567
1571
|
for (let s = 0; s < t.length && F(r); s++) {
|
|
1568
1572
|
const a = t[s];
|
|
1569
|
-
L(a) && (r =
|
|
1573
|
+
L(a) && (r = ua(e, t[s], n));
|
|
1570
1574
|
}
|
|
1571
1575
|
return r;
|
|
1572
1576
|
}
|
|
1573
|
-
function
|
|
1577
|
+
function ua(e, t, n) {
|
|
1574
1578
|
let r;
|
|
1575
1579
|
const s = t.split("-");
|
|
1576
1580
|
do {
|
|
1577
1581
|
const a = s.join("-");
|
|
1578
|
-
r =
|
|
1582
|
+
r = fa(e, a, n), s.splice(-1, 1);
|
|
1579
1583
|
} while (s.length && r === !0);
|
|
1580
1584
|
return r;
|
|
1581
1585
|
}
|
|
1582
|
-
function
|
|
1586
|
+
function fa(e, t, n) {
|
|
1583
1587
|
let r = !1;
|
|
1584
1588
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1585
1589
|
r = t[t.length - 1] !== "!";
|
|
@@ -1588,8 +1592,8 @@ function _a(e, t, n) {
|
|
|
1588
1592
|
}
|
|
1589
1593
|
return r;
|
|
1590
1594
|
}
|
|
1591
|
-
const
|
|
1592
|
-
|
|
1595
|
+
const Ne = [];
|
|
1596
|
+
Ne[
|
|
1593
1597
|
0
|
|
1594
1598
|
/* States.BEFORE_PATH */
|
|
1595
1599
|
] = {
|
|
@@ -1611,7 +1615,7 @@ be[
|
|
|
1611
1615
|
/* States.AFTER_PATH */
|
|
1612
1616
|
]
|
|
1613
1617
|
};
|
|
1614
|
-
|
|
1618
|
+
Ne[
|
|
1615
1619
|
1
|
|
1616
1620
|
/* States.IN_PATH */
|
|
1617
1621
|
] = {
|
|
@@ -1632,7 +1636,7 @@ be[
|
|
|
1632
1636
|
/* States.AFTER_PATH */
|
|
1633
1637
|
]
|
|
1634
1638
|
};
|
|
1635
|
-
|
|
1639
|
+
Ne[
|
|
1636
1640
|
2
|
|
1637
1641
|
/* States.BEFORE_IDENT */
|
|
1638
1642
|
] = {
|
|
@@ -1651,7 +1655,7 @@ be[
|
|
|
1651
1655
|
/* Actions.APPEND */
|
|
1652
1656
|
]
|
|
1653
1657
|
};
|
|
1654
|
-
|
|
1658
|
+
Ne[
|
|
1655
1659
|
3
|
|
1656
1660
|
/* States.IN_IDENT */
|
|
1657
1661
|
] = {
|
|
@@ -1686,7 +1690,7 @@ be[
|
|
|
1686
1690
|
/* Actions.PUSH */
|
|
1687
1691
|
]
|
|
1688
1692
|
};
|
|
1689
|
-
|
|
1693
|
+
Ne[
|
|
1690
1694
|
4
|
|
1691
1695
|
/* States.IN_SUB_PATH */
|
|
1692
1696
|
] = {
|
|
@@ -1717,7 +1721,7 @@ be[
|
|
|
1717
1721
|
/* Actions.APPEND */
|
|
1718
1722
|
]
|
|
1719
1723
|
};
|
|
1720
|
-
|
|
1724
|
+
Ne[
|
|
1721
1725
|
5
|
|
1722
1726
|
/* States.IN_SINGLE_QUOTE */
|
|
1723
1727
|
] = {
|
|
@@ -1733,7 +1737,7 @@ be[
|
|
|
1733
1737
|
/* Actions.APPEND */
|
|
1734
1738
|
]
|
|
1735
1739
|
};
|
|
1736
|
-
|
|
1740
|
+
Ne[
|
|
1737
1741
|
6
|
|
1738
1742
|
/* States.IN_DOUBLE_QUOTE */
|
|
1739
1743
|
] = {
|
|
@@ -1749,15 +1753,15 @@ be[
|
|
|
1749
1753
|
/* Actions.APPEND */
|
|
1750
1754
|
]
|
|
1751
1755
|
};
|
|
1752
|
-
const
|
|
1753
|
-
function
|
|
1754
|
-
return
|
|
1756
|
+
const _a = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1757
|
+
function ma(e) {
|
|
1758
|
+
return _a.test(e);
|
|
1755
1759
|
}
|
|
1756
|
-
function
|
|
1760
|
+
function da(e) {
|
|
1757
1761
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1758
1762
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1759
1763
|
}
|
|
1760
|
-
function
|
|
1764
|
+
function Ea(e) {
|
|
1761
1765
|
if (e == null)
|
|
1762
1766
|
return "o";
|
|
1763
1767
|
switch (e.charCodeAt(0)) {
|
|
@@ -1794,13 +1798,13 @@ function pa(e) {
|
|
|
1794
1798
|
}
|
|
1795
1799
|
return "i";
|
|
1796
1800
|
}
|
|
1797
|
-
function
|
|
1801
|
+
function pa(e) {
|
|
1798
1802
|
const t = e.trim();
|
|
1799
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1803
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : ma(t) ? da(t) : "*" + t;
|
|
1800
1804
|
}
|
|
1801
|
-
function
|
|
1805
|
+
function ga(e) {
|
|
1802
1806
|
const t = [];
|
|
1803
|
-
let n = -1, r = 0, s = 0, a, o, i, u,
|
|
1807
|
+
let n = -1, r = 0, s = 0, a, o, i, u, E, I, b;
|
|
1804
1808
|
const N = [];
|
|
1805
1809
|
N[
|
|
1806
1810
|
0
|
|
@@ -1830,7 +1834,7 @@ function Na(e) {
|
|
|
1830
1834
|
/* Actions.APPEND */
|
|
1831
1835
|
]();
|
|
1832
1836
|
else {
|
|
1833
|
-
if (s = 0, o === void 0 || (o =
|
|
1837
|
+
if (s = 0, o === void 0 || (o = pa(o), o === !1))
|
|
1834
1838
|
return !1;
|
|
1835
1839
|
N[
|
|
1836
1840
|
1
|
|
@@ -1848,27 +1852,27 @@ function Na(e) {
|
|
|
1848
1852
|
}
|
|
1849
1853
|
for (; r !== null; )
|
|
1850
1854
|
if (n++, a = e[n], !(a === "\\" && A())) {
|
|
1851
|
-
if (u =
|
|
1855
|
+
if (u = Ea(a), b = Ne[r], E = b[u] || b.l || 8, E === 8 || (r = E[0], E[1] !== void 0 && (I = N[E[1]], I && (i = a, I() === !1))))
|
|
1852
1856
|
return;
|
|
1853
1857
|
if (r === 7)
|
|
1854
1858
|
return t;
|
|
1855
1859
|
}
|
|
1856
1860
|
}
|
|
1857
1861
|
const On = /* @__PURE__ */ new Map();
|
|
1858
|
-
function
|
|
1862
|
+
function Na(e, t) {
|
|
1859
1863
|
return M(e) ? e[t] : null;
|
|
1860
1864
|
}
|
|
1861
|
-
function
|
|
1865
|
+
function Ta(e, t) {
|
|
1862
1866
|
if (!M(e))
|
|
1863
1867
|
return null;
|
|
1864
1868
|
let n = On.get(t);
|
|
1865
|
-
if (n || (n =
|
|
1869
|
+
if (n || (n = ga(t), n && On.set(t, n)), !n)
|
|
1866
1870
|
return null;
|
|
1867
1871
|
const r = n.length;
|
|
1868
1872
|
let s = e, a = 0;
|
|
1869
1873
|
for (; a < r; ) {
|
|
1870
1874
|
const o = n[a];
|
|
1871
|
-
if (
|
|
1875
|
+
if (ur.includes(o) && se(s))
|
|
1872
1876
|
return null;
|
|
1873
1877
|
const i = s[o];
|
|
1874
1878
|
if (i === void 0 || W(s))
|
|
@@ -1885,7 +1889,7 @@ const Z = {
|
|
|
1885
1889
|
CANNOT_FORMAT_DATE: 5,
|
|
1886
1890
|
FALLBACK_TO_DATE_FORMAT: 6,
|
|
1887
1891
|
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
|
|
1888
|
-
},
|
|
1892
|
+
}, ba = 8, ha = {
|
|
1889
1893
|
[Z.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
1890
1894
|
[Z.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
1891
1895
|
[Z.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
@@ -1894,17 +1898,21 @@ const Z = {
|
|
|
1894
1898
|
[Z.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
|
|
1895
1899
|
[Z.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."
|
|
1896
1900
|
};
|
|
1897
|
-
function
|
|
1898
|
-
return ct(
|
|
1901
|
+
function Ae(e, ...t) {
|
|
1902
|
+
return ct(ha[e], ...t);
|
|
1899
1903
|
}
|
|
1900
|
-
const
|
|
1901
|
-
function
|
|
1904
|
+
const Ia = "11.2.8", ft = -1, je = "en-US", at = "", vn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1905
|
+
function La() {
|
|
1902
1906
|
return {
|
|
1903
1907
|
upper: (e, t) => t === "text" && L(e) ? e.toUpperCase() : t === "vnode" && M(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1904
1908
|
lower: (e, t) => t === "text" && L(e) ? e.toLowerCase() : t === "vnode" && M(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1905
1909
|
capitalize: (e, t) => t === "text" && L(e) ? vn(e) : t === "vnode" && M(e) && "__v_isVNode" in e ? vn(e.children) : e
|
|
1906
1910
|
};
|
|
1907
1911
|
}
|
|
1912
|
+
let _r;
|
|
1913
|
+
function Oa(e) {
|
|
1914
|
+
_r = e;
|
|
1915
|
+
}
|
|
1908
1916
|
let mr;
|
|
1909
1917
|
function va(e) {
|
|
1910
1918
|
mr = e;
|
|
@@ -1913,23 +1921,19 @@ let dr;
|
|
|
1913
1921
|
function Ca(e) {
|
|
1914
1922
|
dr = e;
|
|
1915
1923
|
}
|
|
1916
|
-
let Er;
|
|
1917
|
-
|
|
1924
|
+
let Er = null;
|
|
1925
|
+
const Aa = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1918
1926
|
Er = e;
|
|
1919
|
-
}
|
|
1927
|
+
}, Sa = /* @__NO_SIDE_EFFECTS__ */ () => Er;
|
|
1920
1928
|
let pr = null;
|
|
1921
|
-
const Sa = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1922
|
-
pr = e;
|
|
1923
|
-
}, ya = /* @__NO_SIDE_EFFECTS__ */ () => pr;
|
|
1924
|
-
let gr = null;
|
|
1925
1929
|
const Cn = (e) => {
|
|
1926
|
-
|
|
1927
|
-
},
|
|
1930
|
+
pr = e;
|
|
1931
|
+
}, ya = () => pr;
|
|
1928
1932
|
let An = 0;
|
|
1929
|
-
function
|
|
1930
|
-
const t = W(e.onWarn) ? e.onWarn :
|
|
1931
|
-
process.env.NODE_ENV !== "production" && W(e.messageCompiler) && qt(
|
|
1932
|
-
const O = W(e.messageResolver) ? e.messageResolver :
|
|
1933
|
+
function Pa(e = {}) {
|
|
1934
|
+
const t = W(e.onWarn) ? e.onWarn : ue, n = L(e.version) ? e.version : Ia, r = L(e.locale) || W(e.locale) ? e.locale : je, s = W(r) ? je : r, a = H(e.fallbackLocale) || R(e.fallbackLocale) || L(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, o = R(e.messages) ? e.messages : Dt(s), i = R(e.datetimeFormats) ? e.datetimeFormats : Dt(s), u = R(e.numberFormats) ? e.numberFormats : Dt(s), E = J($(), e.modifiers, La()), I = e.pluralRules || $(), b = W(e.missing) ? e.missing : null, N = F(e.missingWarn) || Me(e.missingWarn) ? e.missingWarn : !0, A = F(e.fallbackWarn) || Me(e.fallbackWarn) ? e.fallbackWarn : !0, D = !!e.fallbackFormat, C = !!e.unresolving, S = W(e.postTranslation) ? e.postTranslation : null, f = R(e.processor) ? e.processor : null, m = F(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, h = !!e.escapeParameter, d = W(e.messageCompiler) ? e.messageCompiler : _r;
|
|
1935
|
+
process.env.NODE_ENV !== "production" && W(e.messageCompiler) && qt(Ae(Z.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1936
|
+
const O = W(e.messageResolver) ? e.messageResolver : mr || Na, v = W(e.localeFallbacker) ? e.localeFallbacker : dr || ca, p = M(e.fallbackContext) ? e.fallbackContext : void 0, k = e, w = M(k.__datetimeFormatters) ? k.__datetimeFormatters : /* @__PURE__ */ new Map(), X = M(k.__numberFormatters) ? k.__numberFormatters : /* @__PURE__ */ new Map(), ae = M(k.__meta) ? k.__meta : {};
|
|
1933
1937
|
An++;
|
|
1934
1938
|
const Y = {
|
|
1935
1939
|
version: n,
|
|
@@ -1937,7 +1941,7 @@ function Da(e = {}) {
|
|
|
1937
1941
|
locale: r,
|
|
1938
1942
|
fallbackLocale: a,
|
|
1939
1943
|
messages: o,
|
|
1940
|
-
modifiers:
|
|
1944
|
+
modifiers: E,
|
|
1941
1945
|
pluralRules: I,
|
|
1942
1946
|
missing: b,
|
|
1943
1947
|
missingWarn: N,
|
|
@@ -1948,20 +1952,20 @@ function Da(e = {}) {
|
|
|
1948
1952
|
processor: f,
|
|
1949
1953
|
warnHtmlMessage: m,
|
|
1950
1954
|
escapeParameter: h,
|
|
1951
|
-
messageCompiler:
|
|
1955
|
+
messageCompiler: d,
|
|
1952
1956
|
messageResolver: O,
|
|
1953
1957
|
localeFallbacker: v,
|
|
1954
1958
|
fallbackContext: p,
|
|
1955
1959
|
onWarn: t,
|
|
1956
1960
|
__meta: ae
|
|
1957
1961
|
};
|
|
1958
|
-
return Y.datetimeFormats = i, Y.numberFormats = u, Y.__datetimeFormatters = w, Y.__numberFormatters = X, process.env.NODE_ENV !== "production" && (Y.__v_emitter = k.__v_emitter != null ? k.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) &&
|
|
1962
|
+
return Y.datetimeFormats = i, Y.numberFormats = u, Y.__datetimeFormatters = w, Y.__numberFormatters = X, process.env.NODE_ENV !== "production" && (Y.__v_emitter = k.__v_emitter != null ? k.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && sa(Y, n, ae), Y;
|
|
1959
1963
|
}
|
|
1960
1964
|
const Dt = (e) => ({ [e]: $() });
|
|
1961
1965
|
function _t(e, t) {
|
|
1962
1966
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1963
1967
|
}
|
|
1964
|
-
function
|
|
1968
|
+
function gr(e, t) {
|
|
1965
1969
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1966
1970
|
}
|
|
1967
1971
|
function sn(e, t, n, r, s) {
|
|
@@ -1979,44 +1983,44 @@ function sn(e, t, n, r, s) {
|
|
|
1979
1983
|
const i = a(e, n, t, s);
|
|
1980
1984
|
return L(i) ? i : t;
|
|
1981
1985
|
} else
|
|
1982
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1986
|
+
return process.env.NODE_ENV !== "production" && gr(r, t) && o(Ae(Z.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
1983
1987
|
}
|
|
1984
|
-
function
|
|
1988
|
+
function He(e, t, n) {
|
|
1985
1989
|
const r = e;
|
|
1986
1990
|
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1987
1991
|
}
|
|
1988
|
-
function
|
|
1992
|
+
function Nr(e, t) {
|
|
1989
1993
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1990
1994
|
}
|
|
1991
|
-
function
|
|
1995
|
+
function Da(e, t) {
|
|
1992
1996
|
const n = t.indexOf(e);
|
|
1993
1997
|
if (n === -1)
|
|
1994
1998
|
return !1;
|
|
1995
1999
|
for (let r = n + 1; r < t.length; r++)
|
|
1996
|
-
if (
|
|
2000
|
+
if (Nr(e, t[r]))
|
|
1997
2001
|
return !0;
|
|
1998
2002
|
return !1;
|
|
1999
2003
|
}
|
|
2000
|
-
const Sn = typeof Intl < "u",
|
|
2004
|
+
const Sn = typeof Intl < "u", Tr = {
|
|
2001
2005
|
dateTimeFormat: Sn && typeof Intl.DateTimeFormat < "u",
|
|
2002
2006
|
numberFormat: Sn && typeof Intl.NumberFormat < "u"
|
|
2003
2007
|
};
|
|
2004
2008
|
function yn(e, ...t) {
|
|
2005
2009
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: s, onWarn: a, localeFallbacker: o } = e, { __datetimeFormatters: i } = e;
|
|
2006
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
2007
|
-
return a(
|
|
2008
|
-
const [u,
|
|
2010
|
+
if (process.env.NODE_ENV !== "production" && !Tr.dateTimeFormat)
|
|
2011
|
+
return a(Ae(Z.CANNOT_FORMAT_DATE)), at;
|
|
2012
|
+
const [u, E, I, b] = Ft(...t), N = F(I.missingWarn) ? I.missingWarn : e.missingWarn, A = F(I.fallbackWarn) ? I.fallbackWarn : e.fallbackWarn, D = !!I.part, C = rn(e, I), S = o(
|
|
2009
2013
|
e,
|
|
2010
2014
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2011
2015
|
s,
|
|
2012
2016
|
C
|
|
2013
2017
|
);
|
|
2014
2018
|
if (!L(u) || u === "")
|
|
2015
|
-
return new Intl.DateTimeFormat(C, b).format(
|
|
2016
|
-
let f = {}, m, h = null,
|
|
2019
|
+
return new Intl.DateTimeFormat(C, b).format(E);
|
|
2020
|
+
let f = {}, m, h = null, d = C, O = null;
|
|
2017
2021
|
const v = "datetime format";
|
|
2018
2022
|
for (let w = 0; w < S.length; w++) {
|
|
2019
|
-
if (m = O = S[w], process.env.NODE_ENV !== "production" && C !== m && _t(A, u) && a(
|
|
2023
|
+
if (m = O = S[w], process.env.NODE_ENV !== "production" && C !== m && _t(A, u) && a(Ae(Z.FALLBACK_TO_DATE_FORMAT, {
|
|
2020
2024
|
key: u,
|
|
2021
2025
|
target: m
|
|
2022
2026
|
})), process.env.NODE_ENV !== "production" && C !== m) {
|
|
@@ -2024,23 +2028,23 @@ function yn(e, ...t) {
|
|
|
2024
2028
|
X && X.emit("fallback", {
|
|
2025
2029
|
type: v,
|
|
2026
2030
|
key: u,
|
|
2027
|
-
from:
|
|
2031
|
+
from: d,
|
|
2028
2032
|
to: O,
|
|
2029
2033
|
groupId: `${v}:${u}`
|
|
2030
2034
|
});
|
|
2031
2035
|
}
|
|
2032
2036
|
if (f = n[m] || {}, h = f[u], R(h))
|
|
2033
2037
|
break;
|
|
2034
|
-
sn(e, u, m, N, v),
|
|
2038
|
+
sn(e, u, m, N, v), d = O;
|
|
2035
2039
|
}
|
|
2036
2040
|
if (!R(h) || !L(m))
|
|
2037
2041
|
return r ? ft : u;
|
|
2038
2042
|
let p = `${m}__${u}`;
|
|
2039
2043
|
ut(b) || (p = `${p}__${JSON.stringify(b)}`);
|
|
2040
2044
|
let k = i.get(p);
|
|
2041
|
-
return k || (k = new Intl.DateTimeFormat(m, J({}, h, b)), i.set(p, k)), D ? k.formatToParts(
|
|
2045
|
+
return k || (k = new Intl.DateTimeFormat(m, J({}, h, b)), i.set(p, k)), D ? k.formatToParts(E) : k.format(E);
|
|
2042
2046
|
}
|
|
2043
|
-
const
|
|
2047
|
+
const br = [
|
|
2044
2048
|
"localeMatcher",
|
|
2045
2049
|
"weekday",
|
|
2046
2050
|
"era",
|
|
@@ -2068,24 +2072,24 @@ function Ft(...e) {
|
|
|
2068
2072
|
if (L(t)) {
|
|
2069
2073
|
const u = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
2070
2074
|
if (!u)
|
|
2071
|
-
throw
|
|
2072
|
-
const
|
|
2073
|
-
i = new Date(
|
|
2075
|
+
throw Ee(q.INVALID_ISO_DATE_ARGUMENT);
|
|
2076
|
+
const E = u[3] ? u[3].trim().startsWith("T") ? `${u[1].trim()}${u[3].trim()}` : `${u[1].trim()}T${u[3].trim()}` : u[1].trim();
|
|
2077
|
+
i = new Date(E);
|
|
2074
2078
|
try {
|
|
2075
2079
|
i.toISOString();
|
|
2076
2080
|
} catch {
|
|
2077
|
-
throw
|
|
2081
|
+
throw Ee(q.INVALID_ISO_DATE_ARGUMENT);
|
|
2078
2082
|
}
|
|
2079
|
-
} else if (
|
|
2083
|
+
} else if (is(t)) {
|
|
2080
2084
|
if (isNaN(t.getTime()))
|
|
2081
|
-
throw
|
|
2085
|
+
throw Ee(q.INVALID_DATE_ARGUMENT);
|
|
2082
2086
|
i = t;
|
|
2083
2087
|
} else if (j(t))
|
|
2084
2088
|
i = t;
|
|
2085
2089
|
else
|
|
2086
|
-
throw
|
|
2090
|
+
throw Ee(q.INVALID_ARGUMENT);
|
|
2087
2091
|
return L(n) ? a.key = n : R(n) && Object.keys(n).forEach((u) => {
|
|
2088
|
-
|
|
2092
|
+
br.includes(u) ? o[u] = n[u] : a[u] = n[u];
|
|
2089
2093
|
}), L(r) ? a.locale = r : R(r) && (o = r), R(s) && (o = s), [a.key || "", i, a, o];
|
|
2090
2094
|
}
|
|
2091
2095
|
function Pn(e, t, n) {
|
|
@@ -2097,20 +2101,20 @@ function Pn(e, t, n) {
|
|
|
2097
2101
|
}
|
|
2098
2102
|
function Dn(e, ...t) {
|
|
2099
2103
|
const { numberFormats: n, unresolving: r, fallbackLocale: s, onWarn: a, localeFallbacker: o } = e, { __numberFormatters: i } = e;
|
|
2100
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
2101
|
-
return a(
|
|
2102
|
-
const [u,
|
|
2104
|
+
if (process.env.NODE_ENV !== "production" && !Tr.numberFormat)
|
|
2105
|
+
return a(Ae(Z.CANNOT_FORMAT_NUMBER)), at;
|
|
2106
|
+
const [u, E, I, b] = Ut(...t), N = F(I.missingWarn) ? I.missingWarn : e.missingWarn, A = F(I.fallbackWarn) ? I.fallbackWarn : e.fallbackWarn, D = !!I.part, C = rn(e, I), S = o(
|
|
2103
2107
|
e,
|
|
2104
2108
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2105
2109
|
s,
|
|
2106
2110
|
C
|
|
2107
2111
|
);
|
|
2108
2112
|
if (!L(u) || u === "")
|
|
2109
|
-
return new Intl.NumberFormat(C, b).format(
|
|
2110
|
-
let f = {}, m, h = null,
|
|
2113
|
+
return new Intl.NumberFormat(C, b).format(E);
|
|
2114
|
+
let f = {}, m, h = null, d = C, O = null;
|
|
2111
2115
|
const v = "number format";
|
|
2112
2116
|
for (let w = 0; w < S.length; w++) {
|
|
2113
|
-
if (m = O = S[w], process.env.NODE_ENV !== "production" && C !== m && _t(A, u) && a(
|
|
2117
|
+
if (m = O = S[w], process.env.NODE_ENV !== "production" && C !== m && _t(A, u) && a(Ae(Z.FALLBACK_TO_NUMBER_FORMAT, {
|
|
2114
2118
|
key: u,
|
|
2115
2119
|
target: m
|
|
2116
2120
|
})), process.env.NODE_ENV !== "production" && C !== m) {
|
|
@@ -2118,23 +2122,23 @@ function Dn(e, ...t) {
|
|
|
2118
2122
|
X && X.emit("fallback", {
|
|
2119
2123
|
type: v,
|
|
2120
2124
|
key: u,
|
|
2121
|
-
from:
|
|
2125
|
+
from: d,
|
|
2122
2126
|
to: O,
|
|
2123
2127
|
groupId: `${v}:${u}`
|
|
2124
2128
|
});
|
|
2125
2129
|
}
|
|
2126
2130
|
if (f = n[m] || {}, h = f[u], R(h))
|
|
2127
2131
|
break;
|
|
2128
|
-
sn(e, u, m, N, v),
|
|
2132
|
+
sn(e, u, m, N, v), d = O;
|
|
2129
2133
|
}
|
|
2130
2134
|
if (!R(h) || !L(m))
|
|
2131
2135
|
return r ? ft : u;
|
|
2132
2136
|
let p = `${m}__${u}`;
|
|
2133
2137
|
ut(b) || (p = `${p}__${JSON.stringify(b)}`);
|
|
2134
2138
|
let k = i.get(p);
|
|
2135
|
-
return k || (k = new Intl.NumberFormat(m, J({}, h, b)), i.set(p, k)), D ? k.formatToParts(
|
|
2139
|
+
return k || (k = new Intl.NumberFormat(m, J({}, h, b)), i.set(p, k)), D ? k.formatToParts(E) : k.format(E);
|
|
2136
2140
|
}
|
|
2137
|
-
const
|
|
2141
|
+
const hr = [
|
|
2138
2142
|
"localeMatcher",
|
|
2139
2143
|
"style",
|
|
2140
2144
|
"currency",
|
|
@@ -2160,10 +2164,10 @@ function Ut(...e) {
|
|
|
2160
2164
|
const [t, n, r, s] = e, a = $();
|
|
2161
2165
|
let o = $();
|
|
2162
2166
|
if (!j(t))
|
|
2163
|
-
throw
|
|
2167
|
+
throw Ee(q.INVALID_ARGUMENT);
|
|
2164
2168
|
const i = t;
|
|
2165
2169
|
return L(n) ? a.key = n : R(n) && Object.keys(n).forEach((u) => {
|
|
2166
|
-
|
|
2170
|
+
hr.includes(u) ? o[u] = n[u] : a[u] = n[u];
|
|
2167
2171
|
}), L(r) ? a.locale = r : R(r) && (o = r), R(s) && (o = s), [a.key || "", i, a, o];
|
|
2168
2172
|
}
|
|
2169
2173
|
function kn(e, t, n) {
|
|
@@ -2173,33 +2177,33 @@ function kn(e, t, n) {
|
|
|
2173
2177
|
r.__numberFormatters.has(a) && r.__numberFormatters.delete(a);
|
|
2174
2178
|
}
|
|
2175
2179
|
}
|
|
2176
|
-
const
|
|
2180
|
+
const ka = (e) => e, Ra = (e) => "", Ma = "text", Fa = (e) => e.length === 0 ? "" : zt(e), Ua = ms;
|
|
2177
2181
|
function Rn(e, t) {
|
|
2178
2182
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
2179
2183
|
}
|
|
2180
|
-
function
|
|
2184
|
+
function wa(e) {
|
|
2181
2185
|
const t = j(e.pluralIndex) ? e.pluralIndex : -1;
|
|
2182
2186
|
return e.named && (j(e.named.count) || j(e.named.n)) ? j(e.named.count) ? e.named.count : j(e.named.n) ? e.named.n : t : t;
|
|
2183
2187
|
}
|
|
2184
|
-
function
|
|
2188
|
+
function Va(e, t) {
|
|
2185
2189
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
2186
2190
|
}
|
|
2187
|
-
function
|
|
2188
|
-
const t = e.locale, n =
|
|
2189
|
-
j(e.pluralIndex) &&
|
|
2190
|
-
const
|
|
2191
|
+
function $a(e = {}) {
|
|
2192
|
+
const t = e.locale, n = wa(e), r = M(e.pluralRules) && L(t) && W(e.pluralRules[t]) ? e.pluralRules[t] : Rn, s = M(e.pluralRules) && L(t) && W(e.pluralRules[t]) ? Rn : void 0, a = (f) => f[r(n, f.length, s)], o = e.list || [], i = (f) => o[f], u = e.named || $();
|
|
2193
|
+
j(e.pluralIndex) && Va(n, u);
|
|
2194
|
+
const E = (f) => u[f];
|
|
2191
2195
|
function I(f, m) {
|
|
2192
2196
|
const h = W(e.messages) ? e.messages(f, !!m) : M(e.messages) ? e.messages[f] : !1;
|
|
2193
|
-
return h || (e.parent ? e.parent.message(f) :
|
|
2197
|
+
return h || (e.parent ? e.parent.message(f) : Ra);
|
|
2194
2198
|
}
|
|
2195
|
-
const b = (f) => e.modifiers ? e.modifiers[f] :
|
|
2199
|
+
const b = (f) => e.modifiers ? e.modifiers[f] : ka, N = R(e.processor) && W(e.processor.normalize) ? e.processor.normalize : Fa, A = R(e.processor) && W(e.processor.interpolate) ? e.processor.interpolate : Ua, D = R(e.processor) && L(e.processor.type) ? e.processor.type : Ma, S = {
|
|
2196
2200
|
list: i,
|
|
2197
|
-
named:
|
|
2201
|
+
named: E,
|
|
2198
2202
|
plural: a,
|
|
2199
2203
|
linked: (f, ...m) => {
|
|
2200
|
-
const [h,
|
|
2204
|
+
const [h, d] = m;
|
|
2201
2205
|
let O = "text", v = "";
|
|
2202
|
-
m.length === 1 ? M(h) ? (v = h.modifier || v, O = h.type || O) : L(h) && (v = h || v) : m.length === 2 && (L(h) && (v = h || v), L(
|
|
2206
|
+
m.length === 1 ? M(h) ? (v = h.modifier || v, O = h.type || O) : L(h) && (v = h || v) : m.length === 2 && (L(h) && (v = h || v), L(d) && (O = d || O));
|
|
2203
2207
|
const p = I(f, !0)(S), k = (
|
|
2204
2208
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
2205
2209
|
O === "vnode" && H(p) && v ? p[0] : p
|
|
@@ -2216,48 +2220,48 @@ function Wa(e = {}) {
|
|
|
2216
2220
|
}
|
|
2217
2221
|
const Mn = () => "", te = (e) => W(e);
|
|
2218
2222
|
function Fn(e, ...t) {
|
|
2219
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: a, fallbackLocale: o, messages: i } = e, [u,
|
|
2220
|
-
N &&
|
|
2223
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: a, fallbackLocale: o, messages: i } = e, [u, E] = wt(...t), I = F(E.missingWarn) ? E.missingWarn : e.missingWarn, b = F(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn, N = F(E.escapeParameter) ? E.escapeParameter : e.escapeParameter, A = !!E.resolvedMessage, D = L(E.default) || F(E.default) ? F(E.default) ? a ? u : () => u : E.default : n ? a ? u : () => u : null, C = n || D != null && (L(D) || W(D)), S = rn(e, E);
|
|
2224
|
+
N && Wa(E);
|
|
2221
2225
|
let [f, m, h] = A ? [
|
|
2222
2226
|
u,
|
|
2223
2227
|
S,
|
|
2224
2228
|
i[S] || $()
|
|
2225
|
-
] :
|
|
2226
|
-
if (!A && !(L(
|
|
2229
|
+
] : Ir(e, u, S, o, b, I), d = f, O = u;
|
|
2230
|
+
if (!A && !(L(d) || se(d) || te(d)) && C && (d = D, O = d), !A && (!(L(d) || se(d) || te(d)) || !L(m)))
|
|
2227
2231
|
return s ? ft : u;
|
|
2228
|
-
if (process.env.NODE_ENV !== "production" && L(
|
|
2229
|
-
return
|
|
2232
|
+
if (process.env.NODE_ENV !== "production" && L(d) && e.messageCompiler == null)
|
|
2233
|
+
return ue(`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 '${u}'.`), u;
|
|
2230
2234
|
let v = !1;
|
|
2231
2235
|
const p = () => {
|
|
2232
2236
|
v = !0;
|
|
2233
|
-
}, k = te(
|
|
2237
|
+
}, k = te(d) ? d : Lr(e, u, m, d, O, p);
|
|
2234
2238
|
if (v)
|
|
2235
|
-
return
|
|
2236
|
-
const w =
|
|
2239
|
+
return d;
|
|
2240
|
+
const w = Ya(e, m, h, E), X = $a(w), ae = Ga(e, k, X);
|
|
2237
2241
|
let Y = r ? r(ae, u) : ae;
|
|
2238
|
-
if (N && L(Y) && (Y =
|
|
2239
|
-
const
|
|
2242
|
+
if (N && L(Y) && (Y = us(Y)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2243
|
+
const ye = {
|
|
2240
2244
|
timestamp: Date.now(),
|
|
2241
|
-
key: L(u) ? u : te(
|
|
2242
|
-
locale: m || (te(
|
|
2243
|
-
format: L(
|
|
2245
|
+
key: L(u) ? u : te(d) ? d.key : "",
|
|
2246
|
+
locale: m || (te(d) ? d.locale : ""),
|
|
2247
|
+
format: L(d) ? d : te(d) ? d.source : "",
|
|
2244
2248
|
message: Y
|
|
2245
2249
|
};
|
|
2246
|
-
|
|
2250
|
+
ye.meta = J({}, e.__meta, /* @__PURE__ */ Sa() || {}), aa(ye);
|
|
2247
2251
|
}
|
|
2248
2252
|
return Y;
|
|
2249
2253
|
}
|
|
2250
|
-
function
|
|
2254
|
+
function Wa(e) {
|
|
2251
2255
|
H(e.list) ? e.list = e.list.map((t) => L(t) ? En(t) : t) : M(e.named) && Object.keys(e.named).forEach((t) => {
|
|
2252
2256
|
L(e.named[t]) && (e.named[t] = En(e.named[t]));
|
|
2253
2257
|
});
|
|
2254
2258
|
}
|
|
2255
|
-
function
|
|
2256
|
-
const { messages: o, onWarn: i, messageResolver: u, localeFallbacker:
|
|
2259
|
+
function Ir(e, t, n, r, s, a) {
|
|
2260
|
+
const { messages: o, onWarn: i, messageResolver: u, localeFallbacker: E } = e, I = E(e, r, n);
|
|
2257
2261
|
let b = $(), N, A = null, D = n, C = null;
|
|
2258
2262
|
const S = "translate";
|
|
2259
2263
|
for (let f = 0; f < I.length; f++) {
|
|
2260
|
-
if (N = C = I[f], process.env.NODE_ENV !== "production" && n !== N && !
|
|
2264
|
+
if (N = C = I[f], process.env.NODE_ENV !== "production" && n !== N && !Nr(n, N) && _t(s, t) && i(Ae(Z.FALLBACK_TO_TRANSLATE, {
|
|
2261
2265
|
key: t,
|
|
2262
2266
|
target: N
|
|
2263
2267
|
})), process.env.NODE_ENV !== "production" && n !== N) {
|
|
@@ -2271,8 +2275,8 @@ function Lr(e, t, n, r, s, a) {
|
|
|
2271
2275
|
});
|
|
2272
2276
|
}
|
|
2273
2277
|
b = o[N] || $();
|
|
2274
|
-
let m = null, h,
|
|
2275
|
-
if (process.env.NODE_ENV !== "production" && le && (m = window.performance.now(), h = "intlify-message-resolve-start",
|
|
2278
|
+
let m = null, h, d;
|
|
2279
|
+
if (process.env.NODE_ENV !== "production" && le && (m = window.performance.now(), h = "intlify-message-resolve-start", d = "intlify-message-resolve-end", ee && ee(h)), (A = u(b, t)) === null && (A = b[t]), process.env.NODE_ENV !== "production" && le) {
|
|
2276
2280
|
const O = window.performance.now(), v = e.__v_emitter;
|
|
2277
2281
|
v && m && A && v.emit("message-resolve", {
|
|
2278
2282
|
type: "message-resolve",
|
|
@@ -2280,11 +2284,11 @@ function Lr(e, t, n, r, s, a) {
|
|
|
2280
2284
|
message: A,
|
|
2281
2285
|
time: O - m,
|
|
2282
2286
|
groupId: `${S}:${t}`
|
|
2283
|
-
}), h &&
|
|
2287
|
+
}), h && d && ee && Ce && (ee(d), Ce("intlify message resolve", h, d));
|
|
2284
2288
|
}
|
|
2285
2289
|
if (L(A) || se(A) || te(A))
|
|
2286
2290
|
break;
|
|
2287
|
-
if (!
|
|
2291
|
+
if (!Da(N, I)) {
|
|
2288
2292
|
const O = sn(
|
|
2289
2293
|
e,
|
|
2290
2294
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -2299,7 +2303,7 @@ function Lr(e, t, n, r, s, a) {
|
|
|
2299
2303
|
}
|
|
2300
2304
|
return [A, N, b];
|
|
2301
2305
|
}
|
|
2302
|
-
function
|
|
2306
|
+
function Lr(e, t, n, r, s, a) {
|
|
2303
2307
|
const { messageCompiler: o, warnHtmlMessage: i } = e;
|
|
2304
2308
|
if (te(r)) {
|
|
2305
2309
|
const N = r;
|
|
@@ -2309,9 +2313,9 @@ function Or(e, t, n, r, s, a) {
|
|
|
2309
2313
|
const N = (() => r);
|
|
2310
2314
|
return N.locale = n, N.key = t, N;
|
|
2311
2315
|
}
|
|
2312
|
-
let u = null,
|
|
2313
|
-
process.env.NODE_ENV !== "production" && le && (u = window.performance.now(),
|
|
2314
|
-
const b = o(r,
|
|
2316
|
+
let u = null, E, I;
|
|
2317
|
+
process.env.NODE_ENV !== "production" && le && (u = window.performance.now(), E = "intlify-message-compilation-start", I = "intlify-message-compilation-end", ee && ee(E));
|
|
2318
|
+
const b = o(r, xa(e, n, s, r, i, a));
|
|
2315
2319
|
if (process.env.NODE_ENV !== "production" && le) {
|
|
2316
2320
|
const N = window.performance.now(), A = e.__v_emitter;
|
|
2317
2321
|
A && u && A.emit("message-compilation", {
|
|
@@ -2319,11 +2323,11 @@ function Or(e, t, n, r, s, a) {
|
|
|
2319
2323
|
message: r,
|
|
2320
2324
|
time: N - u,
|
|
2321
2325
|
groupId: `translate:${t}`
|
|
2322
|
-
}),
|
|
2326
|
+
}), E && I && ee && Ce && (ee(I), Ce("intlify message compilation", E, I));
|
|
2323
2327
|
}
|
|
2324
2328
|
return b.locale = n, b.key = t, b.source = r, b;
|
|
2325
2329
|
}
|
|
2326
|
-
function
|
|
2330
|
+
function Ga(e, t, n) {
|
|
2327
2331
|
let r = null, s, a;
|
|
2328
2332
|
process.env.NODE_ENV !== "production" && le && (r = window.performance.now(), s = "intlify-message-evaluation-start", a = "intlify-message-evaluation-end", ee && ee(s));
|
|
2329
2333
|
const o = t(n);
|
|
@@ -2334,67 +2338,67 @@ function xa(e, t, n) {
|
|
|
2334
2338
|
value: o,
|
|
2335
2339
|
time: i - r,
|
|
2336
2340
|
groupId: `translate:${t.key}`
|
|
2337
|
-
}), s && a && ee &&
|
|
2341
|
+
}), s && a && ee && Ce && (ee(a), Ce("intlify message evaluation", s, a));
|
|
2338
2342
|
}
|
|
2339
2343
|
return o;
|
|
2340
2344
|
}
|
|
2341
2345
|
function wt(...e) {
|
|
2342
2346
|
const [t, n, r] = e, s = $();
|
|
2343
2347
|
if (!L(t) && !j(t) && !te(t) && !se(t))
|
|
2344
|
-
throw
|
|
2348
|
+
throw Ee(q.INVALID_ARGUMENT);
|
|
2345
2349
|
const a = j(t) ? String(t) : (te(t), t);
|
|
2346
2350
|
return j(n) ? s.plural = n : L(n) ? s.default = n : R(n) && !ut(n) ? s.named = n : H(n) && (s.list = n), j(r) ? s.plural = r : L(r) ? s.default = r : R(r) && J(s, r), [a, s];
|
|
2347
2351
|
}
|
|
2348
|
-
function
|
|
2352
|
+
function xa(e, t, n, r, s, a) {
|
|
2349
2353
|
return {
|
|
2350
2354
|
locale: t,
|
|
2351
2355
|
key: n,
|
|
2352
2356
|
warnHtmlMessage: s,
|
|
2353
2357
|
onError: (o) => {
|
|
2354
2358
|
if (a && a(o), process.env.NODE_ENV !== "production") {
|
|
2355
|
-
const i =
|
|
2359
|
+
const i = Ha(r), u = `Message compilation error: ${o.message}`, E = o.location && i && ds(i, o.location.start.offset, o.location.end.offset), I = e.__v_emitter;
|
|
2356
2360
|
I && i && I.emit("compile-error", {
|
|
2357
2361
|
message: i,
|
|
2358
2362
|
error: o.message,
|
|
2359
2363
|
start: o.location && o.location.start.offset,
|
|
2360
2364
|
end: o.location && o.location.end.offset,
|
|
2361
2365
|
groupId: `translate:${n}`
|
|
2362
|
-
}), console.error(
|
|
2363
|
-
${
|
|
2366
|
+
}), console.error(E ? `${u}
|
|
2367
|
+
${E}` : u);
|
|
2364
2368
|
} else
|
|
2365
2369
|
throw o;
|
|
2366
2370
|
},
|
|
2367
|
-
onCacheKey: (o) =>
|
|
2371
|
+
onCacheKey: (o) => os(t, n, o)
|
|
2368
2372
|
};
|
|
2369
2373
|
}
|
|
2370
|
-
function
|
|
2374
|
+
function Ha(e) {
|
|
2371
2375
|
if (L(e))
|
|
2372
2376
|
return e;
|
|
2373
2377
|
if (e.loc && e.loc.source)
|
|
2374
2378
|
return e.loc.source;
|
|
2375
2379
|
}
|
|
2376
|
-
function
|
|
2377
|
-
const { modifiers: s, pluralRules: a, messageResolver: o, fallbackLocale: i, fallbackWarn: u, missingWarn:
|
|
2380
|
+
function Ya(e, t, n, r) {
|
|
2381
|
+
const { modifiers: s, pluralRules: a, messageResolver: o, fallbackLocale: i, fallbackWarn: u, missingWarn: E, fallbackContext: I } = e, N = {
|
|
2378
2382
|
locale: t,
|
|
2379
2383
|
modifiers: s,
|
|
2380
2384
|
pluralRules: a,
|
|
2381
2385
|
messages: (A, D) => {
|
|
2382
2386
|
let C = o(n, A);
|
|
2383
2387
|
if (C == null && (I || D)) {
|
|
2384
|
-
const [, , S] =
|
|
2388
|
+
const [, , S] = Ir(
|
|
2385
2389
|
I || e,
|
|
2386
2390
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
2387
2391
|
A,
|
|
2388
2392
|
t,
|
|
2389
2393
|
i,
|
|
2390
2394
|
u,
|
|
2391
|
-
|
|
2395
|
+
E
|
|
2392
2396
|
);
|
|
2393
2397
|
C = o(S, A);
|
|
2394
2398
|
}
|
|
2395
2399
|
if (L(C) || se(C)) {
|
|
2396
2400
|
let S = !1;
|
|
2397
|
-
const m =
|
|
2401
|
+
const m = Lr(e, A, t, C, A, () => {
|
|
2398
2402
|
S = !0;
|
|
2399
2403
|
});
|
|
2400
2404
|
return S ? Mn : m;
|
|
@@ -2403,23 +2407,23 @@ function Ba(e, t, n, r) {
|
|
|
2403
2407
|
};
|
|
2404
2408
|
return e.processor && (N.processor = e.processor), r.list && (N.list = r.list), r.named && (N.named = r.named), j(r.plural) && (N.pluralIndex = r.plural), N;
|
|
2405
2409
|
}
|
|
2406
|
-
|
|
2407
|
-
function
|
|
2408
|
-
return
|
|
2410
|
+
Ys();
|
|
2411
|
+
function Ba() {
|
|
2412
|
+
return Or().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
2409
2413
|
}
|
|
2410
|
-
function
|
|
2414
|
+
function Or() {
|
|
2411
2415
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
2412
2416
|
}
|
|
2413
|
-
const
|
|
2414
|
-
let
|
|
2415
|
-
function
|
|
2417
|
+
const Ka = typeof Proxy == "function", ja = "devtools-plugin:setup", Xa = "plugin:settings:set";
|
|
2418
|
+
let De, Vt;
|
|
2419
|
+
function Ja() {
|
|
2416
2420
|
var e;
|
|
2417
|
-
return
|
|
2421
|
+
return De !== void 0 || (typeof window < "u" && window.performance ? (De = !0, Vt = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (De = !0, Vt = globalThis.perf_hooks.performance) : De = !1), De;
|
|
2418
2422
|
}
|
|
2419
|
-
function
|
|
2420
|
-
return
|
|
2423
|
+
function Qa() {
|
|
2424
|
+
return Ja() ? Vt.now() : Date.now();
|
|
2421
2425
|
}
|
|
2422
|
-
class
|
|
2426
|
+
class qa {
|
|
2423
2427
|
constructor(t, n) {
|
|
2424
2428
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
2425
2429
|
const r = {};
|
|
@@ -2447,9 +2451,9 @@ class Za {
|
|
|
2447
2451
|
a = o;
|
|
2448
2452
|
},
|
|
2449
2453
|
now() {
|
|
2450
|
-
return
|
|
2454
|
+
return Qa();
|
|
2451
2455
|
}
|
|
2452
|
-
}, n && n.on(
|
|
2456
|
+
}, n && n.on(Xa, (o, i) => {
|
|
2453
2457
|
o === this.plugin.id && this.fallbacks.setSettings(i);
|
|
2454
2458
|
}), this.proxiedOn = new Proxy({}, {
|
|
2455
2459
|
get: (o, i) => this.target ? this.target.on[i] : (...u) => {
|
|
@@ -2464,11 +2468,11 @@ class Za {
|
|
|
2464
2468
|
args: u,
|
|
2465
2469
|
resolve: () => {
|
|
2466
2470
|
}
|
|
2467
|
-
}), this.fallbacks[i](...u)) : (...u) => new Promise((
|
|
2471
|
+
}), this.fallbacks[i](...u)) : (...u) => new Promise((E) => {
|
|
2468
2472
|
this.targetQueue.push({
|
|
2469
2473
|
method: i,
|
|
2470
2474
|
args: u,
|
|
2471
|
-
resolve:
|
|
2475
|
+
resolve: E
|
|
2472
2476
|
});
|
|
2473
2477
|
})
|
|
2474
2478
|
});
|
|
@@ -2481,12 +2485,12 @@ class Za {
|
|
|
2481
2485
|
n.resolve(await this.target[n.method](...n.args));
|
|
2482
2486
|
}
|
|
2483
2487
|
}
|
|
2484
|
-
function
|
|
2485
|
-
const n = e, r =
|
|
2488
|
+
function Za(e, t) {
|
|
2489
|
+
const n = e, r = Or(), s = Ba(), a = Ka && n.enableEarlyProxy;
|
|
2486
2490
|
if (s && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
|
|
2487
|
-
s.emit(
|
|
2491
|
+
s.emit(ja, e, t);
|
|
2488
2492
|
else {
|
|
2489
|
-
const o = a ? new
|
|
2493
|
+
const o = a ? new qa(n, s) : null;
|
|
2490
2494
|
(r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
2491
2495
|
pluginDescriptor: n,
|
|
2492
2496
|
setupFn: t,
|
|
@@ -2494,13 +2498,13 @@ function za(e, t) {
|
|
|
2494
2498
|
}), o && t(o.proxiedTarget);
|
|
2495
2499
|
}
|
|
2496
2500
|
}
|
|
2497
|
-
const
|
|
2498
|
-
function
|
|
2499
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (
|
|
2501
|
+
const za = "11.2.8";
|
|
2502
|
+
function eo() {
|
|
2503
|
+
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Le().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Le().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Le().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Le().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
2500
2504
|
}
|
|
2501
2505
|
const G = {
|
|
2502
2506
|
// composer module errors
|
|
2503
|
-
UNEXPECTED_RETURN_TYPE:
|
|
2507
|
+
UNEXPECTED_RETURN_TYPE: la,
|
|
2504
2508
|
// 24
|
|
2505
2509
|
// legacy module errors
|
|
2506
2510
|
INVALID_ARGUMENT: 25,
|
|
@@ -2521,9 +2525,9 @@ const G = {
|
|
|
2521
2525
|
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
2522
2526
|
};
|
|
2523
2527
|
function z(e, ...t) {
|
|
2524
|
-
return
|
|
2528
|
+
return we(e, null, process.env.NODE_ENV !== "production" ? { messages: to, args: t } : void 0);
|
|
2525
2529
|
}
|
|
2526
|
-
const
|
|
2530
|
+
const to = {
|
|
2527
2531
|
[G.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
2528
2532
|
[G.INVALID_ARGUMENT]: "Invalid argument",
|
|
2529
2533
|
[G.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
@@ -2535,8 +2539,8 @@ const no = {
|
|
|
2535
2539
|
[G.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
2536
2540
|
[G.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
2537
2541
|
[G.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
2538
|
-
}, $t = /* @__PURE__ */
|
|
2539
|
-
FALLBACK_TO_ROOT:
|
|
2542
|
+
}, $t = /* @__PURE__ */ _e("__translateVNode"), Wt = /* @__PURE__ */ _e("__datetimeParts"), Gt = /* @__PURE__ */ _e("__numberParts"), Se = /* @__PURE__ */ _e("__enableEmitter"), Xe = /* @__PURE__ */ _e("__disableEmitter"), vr = _e("__setPluralRules"), Cr = /* @__PURE__ */ _e("__injectWithOption"), xt = /* @__PURE__ */ _e("__dispose"), ne = {
|
|
2543
|
+
FALLBACK_TO_ROOT: ba,
|
|
2540
2544
|
// 8
|
|
2541
2545
|
NOT_FOUND_PARENT_SCOPE: 9,
|
|
2542
2546
|
IGNORE_OBJ_FLATTEN: 10,
|
|
@@ -2550,7 +2554,7 @@ const no = {
|
|
|
2550
2554
|
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12,
|
|
2551
2555
|
// duplicate `useI18n` calling
|
|
2552
2556
|
DUPLICATE_USE_I18N_CALLING: 13
|
|
2553
|
-
},
|
|
2557
|
+
}, no = {
|
|
2554
2558
|
[ne.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
2555
2559
|
[ne.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
2556
2560
|
[ne.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
@@ -2565,8 +2569,8 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
2565
2569
|
[ne.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",
|
|
2566
2570
|
[ne.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."
|
|
2567
2571
|
};
|
|
2568
|
-
function
|
|
2569
|
-
return ct(
|
|
2572
|
+
function Ue(e, ...t) {
|
|
2573
|
+
return ct(no[e], ...t);
|
|
2570
2574
|
}
|
|
2571
2575
|
function Je(e) {
|
|
2572
2576
|
if (!M(e) || se(e))
|
|
@@ -2582,14 +2586,14 @@ function Je(e) {
|
|
|
2582
2586
|
if (n[o] === "__proto__")
|
|
2583
2587
|
throw new Error(`unsafe key: ${n[o]}`);
|
|
2584
2588
|
if (n[o] in s || (s[n[o]] = $()), !M(s[n[o]])) {
|
|
2585
|
-
process.env.NODE_ENV !== "production" &&
|
|
2589
|
+
process.env.NODE_ENV !== "production" && ue(Ue(ne.IGNORE_OBJ_FLATTEN, {
|
|
2586
2590
|
key: n[o]
|
|
2587
2591
|
})), a = !0;
|
|
2588
2592
|
break;
|
|
2589
2593
|
}
|
|
2590
2594
|
s = s[n[o]];
|
|
2591
2595
|
}
|
|
2592
|
-
if (a || (se(s) ?
|
|
2596
|
+
if (a || (se(s) ? ur.includes(n[r]) || delete e[t] : (s[n[r]] = e[t], delete e[t])), !se(s)) {
|
|
2593
2597
|
const o = s[n[r]];
|
|
2594
2598
|
M(o) && Je(o);
|
|
2595
2599
|
}
|
|
@@ -2600,8 +2604,8 @@ function an(e, t) {
|
|
|
2600
2604
|
const { messages: n, __i18n: r, messageResolver: s, flatJson: a } = t, o = R(n) ? n : H(r) ? $() : { [e]: $() };
|
|
2601
2605
|
if (H(r) && r.forEach((i) => {
|
|
2602
2606
|
if ("locale" in i && "resource" in i) {
|
|
2603
|
-
const { locale: u, resource:
|
|
2604
|
-
u ? (o[u] = o[u] || $(), rt(
|
|
2607
|
+
const { locale: u, resource: E } = i;
|
|
2608
|
+
u ? (o[u] = o[u] || $(), rt(E, o[u])) : rt(E, o);
|
|
2605
2609
|
} else
|
|
2606
2610
|
L(i) && rt(JSON.parse(i), o);
|
|
2607
2611
|
}), s == null && a)
|
|
@@ -2609,10 +2613,10 @@ function an(e, t) {
|
|
|
2609
2613
|
oe(o, i) && Je(o[i]);
|
|
2610
2614
|
return o;
|
|
2611
2615
|
}
|
|
2612
|
-
function
|
|
2616
|
+
function Ar(e) {
|
|
2613
2617
|
return e.type;
|
|
2614
2618
|
}
|
|
2615
|
-
function
|
|
2619
|
+
function Sr(e, t, n) {
|
|
2616
2620
|
let r = M(t.messages) ? t.messages : $();
|
|
2617
2621
|
"__i18nGlobal" in n && (r = an(e.locale.value, {
|
|
2618
2622
|
messages: r,
|
|
@@ -2640,22 +2644,22 @@ function yr(e, t, n) {
|
|
|
2640
2644
|
function Un(e) {
|
|
2641
2645
|
return Zn(xr, null, e, 0);
|
|
2642
2646
|
}
|
|
2643
|
-
function
|
|
2647
|
+
function Re() {
|
|
2644
2648
|
const e = "currentInstance";
|
|
2645
2649
|
return e in St ? St[e] : St.getCurrentInstance();
|
|
2646
2650
|
}
|
|
2647
|
-
const wn = "__INTLIFY_META__", Vn = () => [],
|
|
2651
|
+
const wn = "__INTLIFY_META__", Vn = () => [], ro = () => !1;
|
|
2648
2652
|
let $n = 0;
|
|
2649
2653
|
function Wn(e) {
|
|
2650
|
-
return ((t, n, r, s) => e(n, r,
|
|
2654
|
+
return ((t, n, r, s) => e(n, r, Re() || void 0, s));
|
|
2651
2655
|
}
|
|
2652
|
-
const
|
|
2653
|
-
const e =
|
|
2656
|
+
const so = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2657
|
+
const e = Re();
|
|
2654
2658
|
let t = null;
|
|
2655
|
-
return e && (t =
|
|
2659
|
+
return e && (t = Ar(e)[wn]) ? { [wn]: t } : null;
|
|
2656
2660
|
};
|
|
2657
2661
|
function on(e = {}) {
|
|
2658
|
-
const { __root: t, __injectWithOption: n } = e, r = t === void 0, s = e.flatJson, a = le ?
|
|
2662
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, s = e.flatJson, a = le ? ot : $r;
|
|
2659
2663
|
let o = F(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2660
2664
|
const i = a(
|
|
2661
2665
|
// prettier-ignore
|
|
@@ -2663,17 +2667,17 @@ function on(e = {}) {
|
|
|
2663
2667
|
), u = a(
|
|
2664
2668
|
// prettier-ignore
|
|
2665
2669
|
t && o ? t.fallbackLocale.value : L(e.fallbackLocale) || H(e.fallbackLocale) || R(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i.value
|
|
2666
|
-
),
|
|
2667
|
-
let N = t ? t.missingWarn : F(e.missingWarn) ||
|
|
2670
|
+
), E = a(an(i.value, e)), I = a(R(e.datetimeFormats) ? e.datetimeFormats : { [i.value]: {} }), b = a(R(e.numberFormats) ? e.numberFormats : { [i.value]: {} });
|
|
2671
|
+
let N = t ? t.missingWarn : F(e.missingWarn) || Me(e.missingWarn) ? e.missingWarn : !0, A = t ? t.fallbackWarn : F(e.fallbackWarn) || Me(e.fallbackWarn) ? e.fallbackWarn : !0, D = t ? t.fallbackRoot : F(e.fallbackRoot) ? e.fallbackRoot : !0, C = !!e.fallbackFormat, S = W(e.missing) ? e.missing : null, f = W(e.missing) ? Wn(e.missing) : null, m = W(e.postTranslation) ? e.postTranslation : null, h = t ? t.warnHtmlMessage : F(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, d = !!e.escapeParameter;
|
|
2668
2672
|
const O = t ? t.modifiers : R(e.modifiers) ? e.modifiers : {};
|
|
2669
2673
|
let v = e.pluralRules || t && t.pluralRules, p;
|
|
2670
2674
|
p = (() => {
|
|
2671
2675
|
r && Cn(null);
|
|
2672
2676
|
const _ = {
|
|
2673
|
-
version:
|
|
2677
|
+
version: za,
|
|
2674
2678
|
locale: i.value,
|
|
2675
2679
|
fallbackLocale: u.value,
|
|
2676
|
-
messages:
|
|
2680
|
+
messages: E.value,
|
|
2677
2681
|
modifiers: O,
|
|
2678
2682
|
pluralRules: v,
|
|
2679
2683
|
missing: f === null ? void 0 : f,
|
|
@@ -2683,35 +2687,35 @@ function on(e = {}) {
|
|
|
2683
2687
|
unresolving: !0,
|
|
2684
2688
|
postTranslation: m === null ? void 0 : m,
|
|
2685
2689
|
warnHtmlMessage: h,
|
|
2686
|
-
escapeParameter:
|
|
2690
|
+
escapeParameter: d,
|
|
2687
2691
|
messageResolver: e.messageResolver,
|
|
2688
2692
|
messageCompiler: e.messageCompiler,
|
|
2689
2693
|
__meta: { framework: "vue" }
|
|
2690
2694
|
};
|
|
2691
2695
|
_.datetimeFormats = I.value, _.numberFormats = b.value, _.__datetimeFormatters = R(p) ? p.__datetimeFormatters : void 0, _.__numberFormatters = R(p) ? p.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (_.__v_emitter = R(p) ? p.__v_emitter : void 0);
|
|
2692
|
-
const T =
|
|
2696
|
+
const T = Pa(_);
|
|
2693
2697
|
return r && Cn(T), T;
|
|
2694
|
-
})(),
|
|
2698
|
+
})(), He(p, i.value, u.value);
|
|
2695
2699
|
function w() {
|
|
2696
2700
|
return [
|
|
2697
2701
|
i.value,
|
|
2698
2702
|
u.value,
|
|
2699
|
-
|
|
2703
|
+
E.value,
|
|
2700
2704
|
I.value,
|
|
2701
2705
|
b.value
|
|
2702
2706
|
];
|
|
2703
2707
|
}
|
|
2704
|
-
const X =
|
|
2708
|
+
const X = xe({
|
|
2705
2709
|
get: () => i.value,
|
|
2706
2710
|
set: (_) => {
|
|
2707
2711
|
p.locale = _, i.value = _;
|
|
2708
2712
|
}
|
|
2709
|
-
}), ae =
|
|
2713
|
+
}), ae = xe({
|
|
2710
2714
|
get: () => u.value,
|
|
2711
2715
|
set: (_) => {
|
|
2712
|
-
p.fallbackLocale = _, u.value = _,
|
|
2716
|
+
p.fallbackLocale = _, u.value = _, He(p, i.value, _);
|
|
2713
2717
|
}
|
|
2714
|
-
}), Y =
|
|
2718
|
+
}), Y = xe(() => E.value), ye = /* @__PURE__ */ xe(() => I.value), mt = /* @__PURE__ */ xe(() => b.value);
|
|
2715
2719
|
function dt() {
|
|
2716
2720
|
return W(m) ? m : null;
|
|
2717
2721
|
}
|
|
@@ -2727,50 +2731,50 @@ function on(e = {}) {
|
|
|
2727
2731
|
function Nt(_, T) {
|
|
2728
2732
|
return _ !== "translate" || !T.resolvedMessage;
|
|
2729
2733
|
}
|
|
2730
|
-
const
|
|
2734
|
+
const me = (_, T, V, K, be, ze) => {
|
|
2731
2735
|
w();
|
|
2732
|
-
let
|
|
2736
|
+
let Pe;
|
|
2733
2737
|
try {
|
|
2734
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = t ?
|
|
2738
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = t ? ya() : void 0), Pe = _(p);
|
|
2735
2739
|
} finally {
|
|
2736
2740
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = void 0);
|
|
2737
2741
|
}
|
|
2738
2742
|
if (V !== "translate exists" && // for not `te` (e.g `t`)
|
|
2739
|
-
j(
|
|
2740
|
-
const [
|
|
2741
|
-
if (process.env.NODE_ENV !== "production" && t && L(
|
|
2742
|
-
key:
|
|
2743
|
+
j(Pe) && Pe === ft || V === "translate exists" && !Pe) {
|
|
2744
|
+
const [he, Mr] = T();
|
|
2745
|
+
if (process.env.NODE_ENV !== "production" && t && L(he) && Nt(V, Mr) && (D && (_t(A, he) || gr(N, he)) && ue(Ue(ne.FALLBACK_TO_ROOT, {
|
|
2746
|
+
key: he,
|
|
2743
2747
|
type: V
|
|
2744
2748
|
})), process.env.NODE_ENV !== "production")) {
|
|
2745
2749
|
const { __v_emitter: _n } = p;
|
|
2746
2750
|
_n && D && _n.emit("fallback", {
|
|
2747
2751
|
type: V,
|
|
2748
|
-
key:
|
|
2752
|
+
key: he,
|
|
2749
2753
|
to: "global",
|
|
2750
|
-
groupId: `${V}:${
|
|
2754
|
+
groupId: `${V}:${he}`
|
|
2751
2755
|
});
|
|
2752
2756
|
}
|
|
2753
|
-
return t && D ? K(t) :
|
|
2757
|
+
return t && D ? K(t) : be(he);
|
|
2754
2758
|
} else {
|
|
2755
|
-
if (ze(
|
|
2756
|
-
return
|
|
2759
|
+
if (ze(Pe))
|
|
2760
|
+
return Pe;
|
|
2757
2761
|
throw z(G.UNEXPECTED_RETURN_TYPE);
|
|
2758
2762
|
}
|
|
2759
2763
|
};
|
|
2760
|
-
function
|
|
2761
|
-
return
|
|
2764
|
+
function Ve(..._) {
|
|
2765
|
+
return me((T) => Reflect.apply(Fn, null, [T, ..._]), () => wt(..._), "translate", (T) => Reflect.apply(T.t, T, [..._]), (T) => T, (T) => L(T));
|
|
2762
2766
|
}
|
|
2763
2767
|
function Tt(..._) {
|
|
2764
2768
|
const [T, V, K] = _;
|
|
2765
2769
|
if (K && !M(K))
|
|
2766
2770
|
throw z(G.INVALID_ARGUMENT);
|
|
2767
|
-
return
|
|
2771
|
+
return Ve(T, V, J({ resolvedMessage: !0 }, K || {}));
|
|
2768
2772
|
}
|
|
2769
2773
|
function bt(..._) {
|
|
2770
|
-
return
|
|
2774
|
+
return me((T) => Reflect.apply(yn, null, [T, ..._]), () => Ft(..._), "datetime format", (T) => Reflect.apply(T.d, T, [..._]), () => at, (T) => L(T) || H(T));
|
|
2771
2775
|
}
|
|
2772
2776
|
function ht(..._) {
|
|
2773
|
-
return
|
|
2777
|
+
return me((T) => Reflect.apply(Dn, null, [T, ..._]), () => Ut(..._), "number format", (T) => Reflect.apply(T.n, T, [..._]), () => at, (T) => L(T) || H(T));
|
|
2774
2778
|
}
|
|
2775
2779
|
function It(_) {
|
|
2776
2780
|
return _.map((T) => L(T) || j(T) || F(T) ? Un(String(T)) : T);
|
|
@@ -2781,7 +2785,7 @@ function on(e = {}) {
|
|
|
2781
2785
|
type: "vnode"
|
|
2782
2786
|
};
|
|
2783
2787
|
function qe(..._) {
|
|
2784
|
-
return
|
|
2788
|
+
return me((T) => {
|
|
2785
2789
|
let V;
|
|
2786
2790
|
const K = T;
|
|
2787
2791
|
try {
|
|
@@ -2793,27 +2797,27 @@ function on(e = {}) {
|
|
|
2793
2797
|
}, () => wt(..._), "translate", (T) => T[$t](..._), (T) => [Un(T)], (T) => H(T));
|
|
2794
2798
|
}
|
|
2795
2799
|
function Ot(..._) {
|
|
2796
|
-
return
|
|
2800
|
+
return me((T) => Reflect.apply(Dn, null, [T, ..._]), () => Ut(..._), "number format", (T) => T[Gt](..._), Vn, (T) => L(T) || H(T));
|
|
2797
2801
|
}
|
|
2798
2802
|
function Ze(..._) {
|
|
2799
|
-
return
|
|
2803
|
+
return me((T) => Reflect.apply(yn, null, [T, ..._]), () => Ft(..._), "datetime format", (T) => T[Wt](..._), Vn, (T) => L(T) || H(T));
|
|
2800
2804
|
}
|
|
2801
2805
|
function vt(_) {
|
|
2802
2806
|
v = _, p.pluralRules = v;
|
|
2803
2807
|
}
|
|
2804
2808
|
function Ct(_, T) {
|
|
2805
|
-
return
|
|
2809
|
+
return me(() => {
|
|
2806
2810
|
if (!_)
|
|
2807
2811
|
return !1;
|
|
2808
|
-
const V = L(T) ? T : i.value, K =
|
|
2809
|
-
return se(
|
|
2810
|
-
}, () => [_], "translate exists", (V) => Reflect.apply(V.te, V, [_, T]),
|
|
2812
|
+
const V = L(T) ? T : i.value, K = Te(V), be = p.messageResolver(K, _);
|
|
2813
|
+
return se(be) || te(be) || L(be);
|
|
2814
|
+
}, () => [_], "translate exists", (V) => Reflect.apply(V.te, V, [_, T]), ro, (V) => F(V));
|
|
2811
2815
|
}
|
|
2812
|
-
function
|
|
2816
|
+
function $e(_) {
|
|
2813
2817
|
let T = null;
|
|
2814
|
-
const V =
|
|
2818
|
+
const V = fr(p, u.value, i.value);
|
|
2815
2819
|
for (let K = 0; K < V.length; K++) {
|
|
2816
|
-
const
|
|
2820
|
+
const be = E.value[V[K]] || {}, ze = p.messageResolver(be, _);
|
|
2817
2821
|
if (ze != null) {
|
|
2818
2822
|
T = ze;
|
|
2819
2823
|
break;
|
|
@@ -2821,29 +2825,29 @@ function on(e = {}) {
|
|
|
2821
2825
|
}
|
|
2822
2826
|
return T;
|
|
2823
2827
|
}
|
|
2824
|
-
function
|
|
2825
|
-
const T =
|
|
2828
|
+
function We(_) {
|
|
2829
|
+
const T = $e(_);
|
|
2826
2830
|
return T ?? (t ? t.tm(_) || {} : {});
|
|
2827
2831
|
}
|
|
2828
|
-
function
|
|
2829
|
-
return
|
|
2832
|
+
function Te(_) {
|
|
2833
|
+
return E.value[_] || {};
|
|
2830
2834
|
}
|
|
2831
|
-
function
|
|
2835
|
+
function Ge(_, T) {
|
|
2832
2836
|
if (s) {
|
|
2833
2837
|
const V = { [_]: T };
|
|
2834
2838
|
for (const K in V)
|
|
2835
2839
|
oe(V, K) && Je(V[K]);
|
|
2836
2840
|
T = V[_];
|
|
2837
2841
|
}
|
|
2838
|
-
|
|
2842
|
+
E.value[_] = T, p.messages = E.value;
|
|
2839
2843
|
}
|
|
2840
2844
|
function At(_, T) {
|
|
2841
|
-
|
|
2845
|
+
E.value[_] = E.value[_] || {};
|
|
2842
2846
|
const V = { [_]: T };
|
|
2843
2847
|
if (s)
|
|
2844
2848
|
for (const K in V)
|
|
2845
2849
|
oe(V, K) && Je(V[K]);
|
|
2846
|
-
T = V[_], rt(T,
|
|
2850
|
+
T = V[_], rt(T, E.value[_]), p.messages = E.value;
|
|
2847
2851
|
}
|
|
2848
2852
|
function l(_) {
|
|
2849
2853
|
return I.value[_] || {};
|
|
@@ -2863,10 +2867,10 @@ function on(e = {}) {
|
|
|
2863
2867
|
function B(_, T) {
|
|
2864
2868
|
b.value[_] = J(b.value[_] || {}, T), p.numberFormats = b.value, kn(p, _, T);
|
|
2865
2869
|
}
|
|
2866
|
-
$n++, t && le && (
|
|
2867
|
-
o && (i.value = _, p.locale = _,
|
|
2868
|
-
}),
|
|
2869
|
-
o && (u.value = _, p.fallbackLocale = _,
|
|
2870
|
+
$n++, t && le && (ve(t.locale, (_) => {
|
|
2871
|
+
o && (i.value = _, p.locale = _, He(p, i.value, u.value));
|
|
2872
|
+
}), ve(t.fallbackLocale, (_) => {
|
|
2873
|
+
o && (u.value = _, p.fallbackLocale = _, He(p, i.value, u.value));
|
|
2870
2874
|
}));
|
|
2871
2875
|
const U = {
|
|
2872
2876
|
id: $n,
|
|
@@ -2876,10 +2880,10 @@ function on(e = {}) {
|
|
|
2876
2880
|
return o;
|
|
2877
2881
|
},
|
|
2878
2882
|
set inheritLocale(_) {
|
|
2879
|
-
o = _, _ && t && (i.value = t.locale.value, u.value = t.fallbackLocale.value,
|
|
2883
|
+
o = _, _ && t && (i.value = t.locale.value, u.value = t.fallbackLocale.value, He(p, i.value, u.value));
|
|
2880
2884
|
},
|
|
2881
2885
|
get availableLocales() {
|
|
2882
|
-
return Object.keys(
|
|
2886
|
+
return Object.keys(E.value).sort();
|
|
2883
2887
|
},
|
|
2884
2888
|
messages: Y,
|
|
2885
2889
|
get modifiers() {
|
|
@@ -2922,81 +2926,81 @@ function on(e = {}) {
|
|
|
2922
2926
|
h = _, p.warnHtmlMessage = _;
|
|
2923
2927
|
},
|
|
2924
2928
|
get escapeParameter() {
|
|
2925
|
-
return
|
|
2929
|
+
return d;
|
|
2926
2930
|
},
|
|
2927
2931
|
set escapeParameter(_) {
|
|
2928
|
-
|
|
2932
|
+
d = _, p.escapeParameter = _;
|
|
2929
2933
|
},
|
|
2930
|
-
t:
|
|
2931
|
-
getLocaleMessage:
|
|
2932
|
-
setLocaleMessage:
|
|
2934
|
+
t: Ve,
|
|
2935
|
+
getLocaleMessage: Te,
|
|
2936
|
+
setLocaleMessage: Ge,
|
|
2933
2937
|
mergeLocaleMessage: At,
|
|
2934
2938
|
getPostTranslationHandler: dt,
|
|
2935
2939
|
setPostTranslationHandler: Et,
|
|
2936
2940
|
getMissingHandler: pt,
|
|
2937
2941
|
setMissingHandler: gt,
|
|
2938
|
-
[
|
|
2942
|
+
[vr]: vt
|
|
2939
2943
|
};
|
|
2940
|
-
return U.datetimeFormats =
|
|
2944
|
+
return U.datetimeFormats = ye, U.numberFormats = mt, U.rt = Tt, U.te = Ct, U.tm = We, U.d = bt, U.n = ht, U.getDateTimeFormat = l, U.setDateTimeFormat = c, U.mergeDateTimeFormat = g, U.getNumberFormat = y, U.setNumberFormat = x, U.mergeNumberFormat = B, U[Cr] = n, U[$t] = qe, U[Wt] = Ze, U[Gt] = Ot, process.env.NODE_ENV !== "production" && (U[Se] = (_) => {
|
|
2941
2945
|
p.__v_emitter = _;
|
|
2942
2946
|
}, U[Xe] = () => {
|
|
2943
2947
|
p.__v_emitter = void 0;
|
|
2944
2948
|
}), U;
|
|
2945
2949
|
}
|
|
2946
|
-
const
|
|
2950
|
+
const yr = "vue-i18n: composer properties", kt = {
|
|
2947
2951
|
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
2948
2952
|
"vue-i18n-resource-inspector": "Vue I18n DevTools",
|
|
2949
2953
|
"vue-i18n-timeline": "Vue I18n"
|
|
2950
|
-
},
|
|
2954
|
+
}, ao = {
|
|
2951
2955
|
"vue-i18n-resource-inspector": "Search for scopes ..."
|
|
2952
|
-
},
|
|
2956
|
+
}, oo = {
|
|
2953
2957
|
"vue-i18n-timeline": 16764185
|
|
2954
2958
|
};
|
|
2955
2959
|
let Ht;
|
|
2956
|
-
async function
|
|
2960
|
+
async function lo(e, t) {
|
|
2957
2961
|
return new Promise((n, r) => {
|
|
2958
2962
|
try {
|
|
2959
|
-
|
|
2963
|
+
Za({
|
|
2960
2964
|
id: "vue-devtools-plugin-vue-i18n",
|
|
2961
2965
|
label: kt["vue-devtools-plugin-vue-i18n"],
|
|
2962
2966
|
packageName: "vue-i18n",
|
|
2963
2967
|
homepage: "https://vue-i18n.intlify.dev",
|
|
2964
2968
|
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
|
2965
|
-
componentStateTypes: [
|
|
2969
|
+
componentStateTypes: [yr],
|
|
2966
2970
|
app: e
|
|
2967
2971
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2968
2972
|
}, (s) => {
|
|
2969
2973
|
Ht = s, s.on.visitComponentTree(({ componentInstance: o, treeNode: i }) => {
|
|
2970
|
-
|
|
2974
|
+
io(o, i, t);
|
|
2971
2975
|
}), s.on.inspectComponent(({ componentInstance: o, instanceData: i }) => {
|
|
2972
2976
|
o.__VUE_I18N__ && i && (t.mode === "legacy" ? o.__VUE_I18N__ !== t.global.__composer && Gn(i, o.__VUE_I18N__) : Gn(i, o.__VUE_I18N__));
|
|
2973
2977
|
}), s.addInspector({
|
|
2974
2978
|
id: "vue-i18n-resource-inspector",
|
|
2975
2979
|
label: kt["vue-i18n-resource-inspector"],
|
|
2976
2980
|
icon: "language",
|
|
2977
|
-
treeFilterPlaceholder:
|
|
2981
|
+
treeFilterPlaceholder: ao["vue-i18n-resource-inspector"]
|
|
2978
2982
|
}), s.on.getInspectorTree((o) => {
|
|
2979
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2983
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && mo(o, t);
|
|
2980
2984
|
});
|
|
2981
2985
|
const a = /* @__PURE__ */ new Map();
|
|
2982
2986
|
s.on.getInspectorState(async (o) => {
|
|
2983
2987
|
if (o.app === e && o.inspectorId === "vue-i18n-resource-inspector")
|
|
2984
|
-
if (s.unhighlightElement(),
|
|
2988
|
+
if (s.unhighlightElement(), po(o, t), o.nodeId === "global") {
|
|
2985
2989
|
if (!a.has(o.app)) {
|
|
2986
2990
|
const [i] = await s.getComponentInstances(o.app);
|
|
2987
2991
|
a.set(o.app, i);
|
|
2988
2992
|
}
|
|
2989
2993
|
s.highlightElement(a.get(o.app));
|
|
2990
2994
|
} else {
|
|
2991
|
-
const i =
|
|
2995
|
+
const i = Eo(o.nodeId, t);
|
|
2992
2996
|
i && s.highlightElement(i);
|
|
2993
2997
|
}
|
|
2994
2998
|
}), s.on.editInspectorState((o) => {
|
|
2995
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2999
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && No(o, t);
|
|
2996
3000
|
}), s.addTimelineLayer({
|
|
2997
3001
|
id: "vue-i18n-timeline",
|
|
2998
3002
|
label: kt["vue-i18n-timeline"],
|
|
2999
|
-
color:
|
|
3003
|
+
color: oo["vue-i18n-timeline"]
|
|
3000
3004
|
}), n(!0);
|
|
3001
3005
|
});
|
|
3002
3006
|
} catch (s) {
|
|
@@ -3004,14 +3008,14 @@ async function io(e, t) {
|
|
|
3004
3008
|
}
|
|
3005
3009
|
});
|
|
3006
3010
|
}
|
|
3007
|
-
function
|
|
3011
|
+
function Pr(e) {
|
|
3008
3012
|
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
3009
3013
|
}
|
|
3010
|
-
function
|
|
3014
|
+
function io(e, t, n) {
|
|
3011
3015
|
const r = n.mode === "composition" ? n.global : n.global.__composer;
|
|
3012
3016
|
if (e && e.__VUE_I18N__ && e.__VUE_I18N__ !== r) {
|
|
3013
3017
|
const s = {
|
|
3014
|
-
label: `i18n (${
|
|
3018
|
+
label: `i18n (${Pr(e)} Scope)`,
|
|
3015
3019
|
textColor: 0,
|
|
3016
3020
|
backgroundColor: 16764185
|
|
3017
3021
|
};
|
|
@@ -3019,7 +3023,7 @@ function co(e, t, n) {
|
|
|
3019
3023
|
}
|
|
3020
3024
|
}
|
|
3021
3025
|
function Gn(e, t) {
|
|
3022
|
-
const n =
|
|
3026
|
+
const n = yr;
|
|
3023
3027
|
e.state.push({
|
|
3024
3028
|
type: n,
|
|
3025
3029
|
key: "locale",
|
|
@@ -3061,30 +3065,30 @@ function ln(e) {
|
|
|
3061
3065
|
const t = {};
|
|
3062
3066
|
return Object.keys(e).forEach((n) => {
|
|
3063
3067
|
const r = e[n];
|
|
3064
|
-
W(r) && "source" in r ? t[n] =
|
|
3068
|
+
W(r) && "source" in r ? t[n] = _o(r) : se(r) && r.loc && r.loc.source ? t[n] = r.loc.source : M(r) ? t[n] = ln(r) : t[n] = r;
|
|
3065
3069
|
}), t;
|
|
3066
3070
|
}
|
|
3067
|
-
const
|
|
3071
|
+
const co = {
|
|
3068
3072
|
"<": "<",
|
|
3069
3073
|
">": ">",
|
|
3070
3074
|
'"': """,
|
|
3071
3075
|
"&": "&"
|
|
3072
3076
|
};
|
|
3077
|
+
function uo(e) {
|
|
3078
|
+
return e.replace(/[<>"&]/g, fo);
|
|
3079
|
+
}
|
|
3073
3080
|
function fo(e) {
|
|
3074
|
-
return e
|
|
3081
|
+
return co[e] || e;
|
|
3075
3082
|
}
|
|
3076
3083
|
function _o(e) {
|
|
3077
|
-
return uo[e] || e;
|
|
3078
|
-
}
|
|
3079
|
-
function mo(e) {
|
|
3080
3084
|
return {
|
|
3081
3085
|
_custom: {
|
|
3082
3086
|
type: "function",
|
|
3083
|
-
display: `<span>ƒ</span> ${e.source ? `("${
|
|
3087
|
+
display: `<span>ƒ</span> ${e.source ? `("${uo(e.source)}")` : "(?)"}`
|
|
3084
3088
|
}
|
|
3085
3089
|
};
|
|
3086
3090
|
}
|
|
3087
|
-
function
|
|
3091
|
+
function mo(e, t) {
|
|
3088
3092
|
e.rootNodes.push({
|
|
3089
3093
|
id: "global",
|
|
3090
3094
|
label: "Global Scope"
|
|
@@ -3094,11 +3098,11 @@ function Eo(e, t) {
|
|
|
3094
3098
|
const a = t.mode === "composition" ? s : s.__composer;
|
|
3095
3099
|
n !== a && e.rootNodes.push({
|
|
3096
3100
|
id: a.id.toString(),
|
|
3097
|
-
label: `${
|
|
3101
|
+
label: `${Pr(r)} Scope`
|
|
3098
3102
|
});
|
|
3099
3103
|
}
|
|
3100
3104
|
}
|
|
3101
|
-
function
|
|
3105
|
+
function Eo(e, t) {
|
|
3102
3106
|
let n = null;
|
|
3103
3107
|
if (e !== "global") {
|
|
3104
3108
|
for (const [r, s] of t.__instances.entries())
|
|
@@ -3109,7 +3113,7 @@ function po(e, t) {
|
|
|
3109
3113
|
}
|
|
3110
3114
|
return n;
|
|
3111
3115
|
}
|
|
3112
|
-
function
|
|
3116
|
+
function Dr(e, t) {
|
|
3113
3117
|
if (e === "global")
|
|
3114
3118
|
return t.mode === "composition" ? t.global : t.global.__composer;
|
|
3115
3119
|
{
|
|
@@ -3117,11 +3121,11 @@ function kr(e, t) {
|
|
|
3117
3121
|
return n ? t.mode === "composition" ? n : n.__composer : null;
|
|
3118
3122
|
}
|
|
3119
3123
|
}
|
|
3120
|
-
function
|
|
3121
|
-
const n =
|
|
3122
|
-
return n && (e.state =
|
|
3124
|
+
function po(e, t) {
|
|
3125
|
+
const n = Dr(e.nodeId, t);
|
|
3126
|
+
return n && (e.state = go(n)), null;
|
|
3123
3127
|
}
|
|
3124
|
-
function
|
|
3128
|
+
function go(e) {
|
|
3125
3129
|
const t = {}, n = "Locale related info", r = [
|
|
3126
3130
|
{
|
|
3127
3131
|
type: n,
|
|
@@ -3168,7 +3172,7 @@ function No(e) {
|
|
|
3168
3172
|
}
|
|
3169
3173
|
];
|
|
3170
3174
|
t[o] = i;
|
|
3171
|
-
const u = "Datetime formats info",
|
|
3175
|
+
const u = "Datetime formats info", E = [
|
|
3172
3176
|
{
|
|
3173
3177
|
type: u,
|
|
3174
3178
|
key: "numberFormats",
|
|
@@ -3176,7 +3180,7 @@ function No(e) {
|
|
|
3176
3180
|
value: e.numberFormats.value
|
|
3177
3181
|
}
|
|
3178
3182
|
];
|
|
3179
|
-
t[u] =
|
|
3183
|
+
t[u] = E;
|
|
3180
3184
|
}
|
|
3181
3185
|
return t;
|
|
3182
3186
|
}
|
|
@@ -3196,15 +3200,15 @@ function Qe(e, t) {
|
|
|
3196
3200
|
});
|
|
3197
3201
|
}
|
|
3198
3202
|
}
|
|
3199
|
-
function
|
|
3200
|
-
const n =
|
|
3203
|
+
function No(e, t) {
|
|
3204
|
+
const n = Dr(e.nodeId, t);
|
|
3201
3205
|
if (n) {
|
|
3202
3206
|
const [r] = e.path;
|
|
3203
3207
|
r === "locale" && L(e.state.value) ? n.locale.value = e.state.value : r === "fallbackLocale" && (L(e.state.value) || H(e.state.value) || M(e.state.value)) ? n.fallbackLocale.value = e.state.value : r === "inheritLocale" && F(e.state.value) && (n.inheritLocale = e.state.value);
|
|
3204
3208
|
}
|
|
3205
3209
|
}
|
|
3206
|
-
function
|
|
3207
|
-
const t = L(e.locale) ? e.locale : je, n = L(e.fallbackLocale) || H(e.fallbackLocale) || R(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = W(e.missing) ? e.missing : void 0, s = F(e.silentTranslationWarn) ||
|
|
3210
|
+
function To(e) {
|
|
3211
|
+
const t = L(e.locale) ? e.locale : je, n = L(e.fallbackLocale) || H(e.fallbackLocale) || R(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = W(e.missing) ? e.missing : void 0, s = F(e.silentTranslationWarn) || Me(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, a = F(e.silentFallbackWarn) || Me(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = F(e.fallbackRoot) ? e.fallbackRoot : !0, i = !!e.formatFallbackMessages, u = R(e.modifiers) ? e.modifiers : {}, E = e.pluralizationRules, I = W(e.postTranslation) ? e.postTranslation : void 0, b = L(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, N = !!e.escapeParameterHtml, A = F(e.sync) ? e.sync : !0;
|
|
3208
3212
|
let D = e.messages;
|
|
3209
3213
|
if (R(e.sharedMessages)) {
|
|
3210
3214
|
const O = e.sharedMessages;
|
|
@@ -3213,12 +3217,12 @@ function bo(e) {
|
|
|
3213
3217
|
return J(w, O[k]), p;
|
|
3214
3218
|
}, D || {});
|
|
3215
3219
|
}
|
|
3216
|
-
const { __i18n: C, __root: S, __injectWithOption: f } = e, m = e.datetimeFormats, h = e.numberFormats,
|
|
3220
|
+
const { __i18n: C, __root: S, __injectWithOption: f } = e, m = e.datetimeFormats, h = e.numberFormats, d = e.flatJson;
|
|
3217
3221
|
return {
|
|
3218
3222
|
locale: t,
|
|
3219
3223
|
fallbackLocale: n,
|
|
3220
3224
|
messages: D,
|
|
3221
|
-
flatJson:
|
|
3225
|
+
flatJson: d,
|
|
3222
3226
|
datetimeFormats: m,
|
|
3223
3227
|
numberFormats: h,
|
|
3224
3228
|
missing: r,
|
|
@@ -3227,7 +3231,7 @@ function bo(e) {
|
|
|
3227
3231
|
fallbackRoot: o,
|
|
3228
3232
|
fallbackFormat: i,
|
|
3229
3233
|
modifiers: u,
|
|
3230
|
-
pluralRules:
|
|
3234
|
+
pluralRules: E,
|
|
3231
3235
|
postTranslation: I,
|
|
3232
3236
|
warnHtmlMessage: b,
|
|
3233
3237
|
escapeParameter: N,
|
|
@@ -3239,7 +3243,7 @@ function bo(e) {
|
|
|
3239
3243
|
};
|
|
3240
3244
|
}
|
|
3241
3245
|
function Yt(e = {}) {
|
|
3242
|
-
const t = on(
|
|
3246
|
+
const t = on(To(e)), { __extender: n } = e, r = {
|
|
3243
3247
|
// id
|
|
3244
3248
|
id: t.id,
|
|
3245
3249
|
// locale
|
|
@@ -3401,16 +3405,16 @@ function Yt(e = {}) {
|
|
|
3401
3405
|
};
|
|
3402
3406
|
return r.__extender = n, process.env.NODE_ENV !== "production" && (r.__enableEmitter = (s) => {
|
|
3403
3407
|
const a = t;
|
|
3404
|
-
a[
|
|
3408
|
+
a[Se] && a[Se](s);
|
|
3405
3409
|
}, r.__disableEmitter = () => {
|
|
3406
3410
|
const s = t;
|
|
3407
3411
|
s[Xe] && s[Xe]();
|
|
3408
3412
|
}), r;
|
|
3409
3413
|
}
|
|
3410
|
-
function
|
|
3414
|
+
function bo(e, t, n) {
|
|
3411
3415
|
return {
|
|
3412
3416
|
beforeCreate() {
|
|
3413
|
-
const r =
|
|
3417
|
+
const r = Re();
|
|
3414
3418
|
if (!r)
|
|
3415
3419
|
throw z(G.UNEXPECTED_ERROR);
|
|
3416
3420
|
const s = this.$options;
|
|
@@ -3438,11 +3442,11 @@ function ho(e, t, n) {
|
|
|
3438
3442
|
}
|
|
3439
3443
|
else
|
|
3440
3444
|
this.$i18n = e;
|
|
3441
|
-
s.__i18nGlobal &&
|
|
3445
|
+
s.__i18nGlobal && Sr(t, s, s), this.$t = (...a) => this.$i18n.t(...a), this.$rt = (...a) => this.$i18n.rt(...a), this.$te = (a, o) => this.$i18n.te(a, o), this.$d = (...a) => this.$i18n.d(...a), this.$n = (...a) => this.$i18n.n(...a), this.$tm = (a) => this.$i18n.tm(a), n.__setInstance(r, this.$i18n);
|
|
3442
3446
|
},
|
|
3443
3447
|
mounted() {
|
|
3444
3448
|
if (process.env.NODE_ENV !== "production" && this.$i18n) {
|
|
3445
|
-
const r =
|
|
3449
|
+
const r = Re();
|
|
3446
3450
|
if (!r)
|
|
3447
3451
|
return;
|
|
3448
3452
|
const s = this.$i18n;
|
|
@@ -3452,7 +3456,7 @@ function ho(e, t, n) {
|
|
|
3452
3456
|
}
|
|
3453
3457
|
},
|
|
3454
3458
|
unmounted() {
|
|
3455
|
-
const r =
|
|
3459
|
+
const r = Re();
|
|
3456
3460
|
if (!r)
|
|
3457
3461
|
throw z(G.UNEXPECTED_ERROR);
|
|
3458
3462
|
const s = this.$i18n;
|
|
@@ -3461,7 +3465,7 @@ function ho(e, t, n) {
|
|
|
3461
3465
|
};
|
|
3462
3466
|
}
|
|
3463
3467
|
function xn(e, t) {
|
|
3464
|
-
e.locale = t.locale || e.locale, e.fallbackLocale = t.fallbackLocale || e.fallbackLocale, e.missing = t.missing || e.missing, e.silentTranslationWarn = t.silentTranslationWarn || e.silentFallbackWarn, e.silentFallbackWarn = t.silentFallbackWarn || e.silentFallbackWarn, e.formatFallbackMessages = t.formatFallbackMessages || e.formatFallbackMessages, e.postTranslation = t.postTranslation || e.postTranslation, e.warnHtmlInMessage = t.warnHtmlInMessage || e.warnHtmlInMessage, e.escapeParameterHtml = t.escapeParameterHtml || e.escapeParameterHtml, e.sync = t.sync || e.sync, e.__composer[
|
|
3468
|
+
e.locale = t.locale || e.locale, e.fallbackLocale = t.fallbackLocale || e.fallbackLocale, e.missing = t.missing || e.missing, e.silentTranslationWarn = t.silentTranslationWarn || e.silentFallbackWarn, e.silentFallbackWarn = t.silentFallbackWarn || e.silentFallbackWarn, e.formatFallbackMessages = t.formatFallbackMessages || e.formatFallbackMessages, e.postTranslation = t.postTranslation || e.postTranslation, e.warnHtmlInMessage = t.warnHtmlInMessage || e.warnHtmlInMessage, e.escapeParameterHtml = t.escapeParameterHtml || e.escapeParameterHtml, e.sync = t.sync || e.sync, e.__composer[vr](t.pluralizationRules || e.pluralizationRules);
|
|
3465
3469
|
const n = an(e.locale, {
|
|
3466
3470
|
messages: t.messages,
|
|
3467
3471
|
__i18n: t.__i18n
|
|
@@ -3486,20 +3490,20 @@ const cn = {
|
|
|
3486
3490
|
type: Object
|
|
3487
3491
|
}
|
|
3488
3492
|
};
|
|
3489
|
-
function
|
|
3493
|
+
function ho({ slots: e }, t) {
|
|
3490
3494
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, s) => [
|
|
3491
3495
|
...r,
|
|
3492
3496
|
// prettier-ignore
|
|
3493
|
-
...s.type ===
|
|
3497
|
+
...s.type === jt ? s.children : [s]
|
|
3494
3498
|
], []) : t.reduce((n, r) => {
|
|
3495
3499
|
const s = e[r];
|
|
3496
3500
|
return s && (n[r] = s()), n;
|
|
3497
3501
|
}, $());
|
|
3498
3502
|
}
|
|
3499
|
-
function
|
|
3500
|
-
return
|
|
3503
|
+
function kr() {
|
|
3504
|
+
return jt;
|
|
3501
3505
|
}
|
|
3502
|
-
const
|
|
3506
|
+
const Io = /* @__PURE__ */ fe({
|
|
3503
3507
|
/* eslint-disable */
|
|
3504
3508
|
name: "i18n-t",
|
|
3505
3509
|
props: J({
|
|
@@ -3522,31 +3526,31 @@ const Lo = /* @__PURE__ */ _e({
|
|
|
3522
3526
|
return () => {
|
|
3523
3527
|
const a = Object.keys(n).filter((b) => b[0] !== "_"), o = $();
|
|
3524
3528
|
e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = L(e.plural) ? +e.plural : e.plural);
|
|
3525
|
-
const i =
|
|
3526
|
-
return
|
|
3529
|
+
const i = ho(t, a), u = s[$t](e.keypath, i, o), E = J($(), r), I = L(e.tag) || M(e.tag) ? e.tag : kr();
|
|
3530
|
+
return st(I, E, u);
|
|
3527
3531
|
};
|
|
3528
3532
|
}
|
|
3529
|
-
}), Hn =
|
|
3530
|
-
function
|
|
3533
|
+
}), Hn = Io;
|
|
3534
|
+
function Lo(e) {
|
|
3531
3535
|
return H(e) && !L(e[0]);
|
|
3532
3536
|
}
|
|
3533
|
-
function
|
|
3537
|
+
function Rr(e, t, n, r) {
|
|
3534
3538
|
const { slots: s, attrs: a } = t;
|
|
3535
3539
|
return () => {
|
|
3536
3540
|
const o = { part: !0 };
|
|
3537
3541
|
let i = $();
|
|
3538
3542
|
e.locale && (o.locale = e.locale), L(e.format) ? o.key = e.format : M(e.format) && (L(e.format.key) && (o.key = e.format.key), i = Object.keys(e.format).reduce((N, A) => n.includes(A) ? J($(), N, { [A]: e.format[A] }) : N, $()));
|
|
3539
3543
|
const u = r(e.value, o, i);
|
|
3540
|
-
let
|
|
3541
|
-
H(u) ?
|
|
3544
|
+
let E = [o.key];
|
|
3545
|
+
H(u) ? E = u.map((N, A) => {
|
|
3542
3546
|
const D = s[N.type], C = D ? D({ [N.type]: N.value, index: A, parts: u }) : [N.value];
|
|
3543
|
-
return
|
|
3544
|
-
}) : L(u) && (
|
|
3545
|
-
const I = J($(), a), b = L(e.tag) || M(e.tag) ? e.tag :
|
|
3546
|
-
return
|
|
3547
|
+
return Lo(C) && (C[0].key = `${N.type}-${A}`), C;
|
|
3548
|
+
}) : L(u) && (E = [u]);
|
|
3549
|
+
const I = J($(), a), b = L(e.tag) || M(e.tag) ? e.tag : kr();
|
|
3550
|
+
return st(b, I, E);
|
|
3547
3551
|
};
|
|
3548
3552
|
}
|
|
3549
|
-
const
|
|
3553
|
+
const Oo = /* @__PURE__ */ fe({
|
|
3550
3554
|
/* eslint-disable */
|
|
3551
3555
|
name: "i18n-n",
|
|
3552
3556
|
props: J({
|
|
@@ -3565,13 +3569,13 @@ const vo = /* @__PURE__ */ _e({
|
|
|
3565
3569
|
useScope: e.scope,
|
|
3566
3570
|
__useComponent: !0
|
|
3567
3571
|
});
|
|
3568
|
-
return
|
|
3572
|
+
return Rr(e, t, hr, (...r) => (
|
|
3569
3573
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3570
3574
|
n[Gt](...r)
|
|
3571
3575
|
));
|
|
3572
3576
|
}
|
|
3573
|
-
}), Yn =
|
|
3574
|
-
function
|
|
3577
|
+
}), Yn = Oo;
|
|
3578
|
+
function vo(e, t) {
|
|
3575
3579
|
const n = e;
|
|
3576
3580
|
if (e.mode === "composition")
|
|
3577
3581
|
return n.__getInstance(t) || e.global;
|
|
@@ -3580,33 +3584,33 @@ function Co(e, t) {
|
|
|
3580
3584
|
return r != null ? r.__composer : e.global.__composer;
|
|
3581
3585
|
}
|
|
3582
3586
|
}
|
|
3583
|
-
function
|
|
3587
|
+
function Co(e) {
|
|
3584
3588
|
const t = (o) => {
|
|
3585
|
-
process.env.NODE_ENV !== "production" && qt(
|
|
3589
|
+
process.env.NODE_ENV !== "production" && qt(Ue(ne.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
|
|
3586
3590
|
const { instance: i, value: u } = o;
|
|
3587
3591
|
if (!i || !i.$)
|
|
3588
3592
|
throw z(G.UNEXPECTED_ERROR);
|
|
3589
|
-
const
|
|
3593
|
+
const E = vo(e, i.$), I = Bn(u);
|
|
3590
3594
|
return [
|
|
3591
|
-
Reflect.apply(
|
|
3592
|
-
|
|
3595
|
+
Reflect.apply(E.t, E, [...Kn(I)]),
|
|
3596
|
+
E
|
|
3593
3597
|
];
|
|
3594
3598
|
};
|
|
3595
3599
|
return {
|
|
3596
3600
|
created: (o, i) => {
|
|
3597
|
-
const [u,
|
|
3598
|
-
le && e.global ===
|
|
3601
|
+
const [u, E] = t(i);
|
|
3602
|
+
le && e.global === E && (o.__i18nWatcher = ve(E.locale, () => {
|
|
3599
3603
|
i.instance && i.instance.$forceUpdate();
|
|
3600
|
-
})), o.__composer =
|
|
3604
|
+
})), o.__composer = E, o.textContent = u;
|
|
3601
3605
|
},
|
|
3602
3606
|
unmounted: (o) => {
|
|
3603
3607
|
le && o.__i18nWatcher && (o.__i18nWatcher(), o.__i18nWatcher = void 0, delete o.__i18nWatcher), o.__composer && (o.__composer = void 0, delete o.__composer);
|
|
3604
3608
|
},
|
|
3605
3609
|
beforeUpdate: (o, { value: i }) => {
|
|
3606
3610
|
if (o.__composer) {
|
|
3607
|
-
const u = o.__composer,
|
|
3611
|
+
const u = o.__composer, E = Bn(i);
|
|
3608
3612
|
o.textContent = Reflect.apply(u.t, u, [
|
|
3609
|
-
...Kn(
|
|
3613
|
+
...Kn(E)
|
|
3610
3614
|
]);
|
|
3611
3615
|
}
|
|
3612
3616
|
},
|
|
@@ -3630,22 +3634,22 @@ function Kn(e) {
|
|
|
3630
3634
|
const { path: t, locale: n, args: r, choice: s, plural: a } = e, o = {}, i = r || {};
|
|
3631
3635
|
return L(n) && (o.locale = n), j(s) && (o.plural = s), j(a) && (o.plural = a), [t, i, o];
|
|
3632
3636
|
}
|
|
3633
|
-
function
|
|
3637
|
+
function Ao(e, t, ...n) {
|
|
3634
3638
|
const r = R(n[0]) ? n[0] : {};
|
|
3635
|
-
(!F(r.globalInstall) || r.globalInstall) && ([Hn.name, "I18nT"].forEach((a) => e.component(a, Hn)), [Yn.name, "I18nN"].forEach((a) => e.component(a, Yn)), [Xn.name, "I18nD"].forEach((a) => e.component(a, Xn))), e.directive("t",
|
|
3639
|
+
(!F(r.globalInstall) || r.globalInstall) && ([Hn.name, "I18nT"].forEach((a) => e.component(a, Hn)), [Yn.name, "I18nN"].forEach((a) => e.component(a, Yn)), [Xn.name, "I18nD"].forEach((a) => e.component(a, Xn))), e.directive("t", Co(t));
|
|
3636
3640
|
}
|
|
3637
|
-
const
|
|
3638
|
-
function
|
|
3641
|
+
const So = /* @__PURE__ */ _e("global-vue-i18n");
|
|
3642
|
+
function yo(e = {}) {
|
|
3639
3643
|
const t = __VUE_I18N_LEGACY_API__ && F(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
|
|
3640
|
-
process.env.NODE_ENV !== "production" && t && qt(
|
|
3641
|
-
const n = F(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [s, a] =
|
|
3644
|
+
process.env.NODE_ENV !== "production" && t && qt(Ue(ne.DEPRECATE_LEGACY_MODE));
|
|
3645
|
+
const n = F(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [s, a] = Po(e, t), o = /* @__PURE__ */ _e(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
3642
3646
|
function i(b) {
|
|
3643
3647
|
return r.get(b) || null;
|
|
3644
3648
|
}
|
|
3645
3649
|
function u(b, N) {
|
|
3646
3650
|
r.set(b, N);
|
|
3647
3651
|
}
|
|
3648
|
-
function
|
|
3652
|
+
function E(b) {
|
|
3649
3653
|
r.delete(b);
|
|
3650
3654
|
}
|
|
3651
3655
|
const I = {
|
|
@@ -3660,12 +3664,12 @@ function Po(e = {}) {
|
|
|
3660
3664
|
I.__composerExtend = C.__composerExtend, I.__vueI18nExtend = C.__vueI18nExtend;
|
|
3661
3665
|
}
|
|
3662
3666
|
let A = null;
|
|
3663
|
-
!t && n && (A =
|
|
3667
|
+
!t && n && (A = Vo(b, I.global)), __VUE_I18N_FULL_INSTALL__ && Ao(b, I, ...N), __VUE_I18N_LEGACY_API__ && t && b.mixin(bo(a, a.__composer, I));
|
|
3664
3668
|
const D = b.unmount;
|
|
3665
3669
|
if (b.unmount = () => {
|
|
3666
3670
|
A && A(), I.dispose(), D();
|
|
3667
3671
|
}, process.env.NODE_ENV !== "production") {
|
|
3668
|
-
if (!await
|
|
3672
|
+
if (!await lo(b, I))
|
|
3669
3673
|
throw z(G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
3670
3674
|
const S = en();
|
|
3671
3675
|
if (t) {
|
|
@@ -3673,7 +3677,7 @@ function Po(e = {}) {
|
|
|
3673
3677
|
f.__enableEmitter && f.__enableEmitter(S);
|
|
3674
3678
|
} else {
|
|
3675
3679
|
const f = a;
|
|
3676
|
-
f[
|
|
3680
|
+
f[Se] && f[Se](S);
|
|
3677
3681
|
}
|
|
3678
3682
|
S.on("*", Qe);
|
|
3679
3683
|
}
|
|
@@ -3692,61 +3696,61 @@ function Po(e = {}) {
|
|
|
3692
3696
|
// @internal
|
|
3693
3697
|
__setInstance: u,
|
|
3694
3698
|
// @internal
|
|
3695
|
-
__deleteInstance:
|
|
3699
|
+
__deleteInstance: E
|
|
3696
3700
|
};
|
|
3697
3701
|
return I;
|
|
3698
3702
|
}
|
|
3699
3703
|
function un(e = {}) {
|
|
3700
|
-
const t =
|
|
3704
|
+
const t = Re();
|
|
3701
3705
|
if (t == null)
|
|
3702
3706
|
throw z(G.MUST_BE_CALL_SETUP_TOP);
|
|
3703
3707
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
3704
3708
|
throw z(G.NOT_INSTALLED);
|
|
3705
|
-
const n =
|
|
3709
|
+
const n = Do(t), r = Ro(n), s = Ar(t), a = ko(e, s);
|
|
3706
3710
|
if (a === "global")
|
|
3707
|
-
return
|
|
3711
|
+
return Sr(r, e, s), r;
|
|
3708
3712
|
if (a === "parent") {
|
|
3709
|
-
let u =
|
|
3710
|
-
return u == null && (process.env.NODE_ENV !== "production" &&
|
|
3713
|
+
let u = Mo(n, t, e.__useComponent);
|
|
3714
|
+
return u == null && (process.env.NODE_ENV !== "production" && ue(Ue(ne.NOT_FOUND_PARENT_SCOPE)), u = r), u;
|
|
3711
3715
|
}
|
|
3712
3716
|
const o = n;
|
|
3713
3717
|
let i = o.__getInstance(t);
|
|
3714
3718
|
if (i == null) {
|
|
3715
3719
|
const u = J({}, e);
|
|
3716
|
-
"__i18n" in s && (u.__i18n = s.__i18n), r && (u.__root = r), i = on(u), o.__composerExtend && (i[xt] = o.__composerExtend(i)),
|
|
3720
|
+
"__i18n" in s && (u.__i18n = s.__i18n), r && (u.__root = r), i = on(u), o.__composerExtend && (i[xt] = o.__composerExtend(i)), Uo(o, t, i), o.__setInstance(t, i);
|
|
3717
3721
|
} else
|
|
3718
|
-
process.env.NODE_ENV !== "production" && a === "local" &&
|
|
3722
|
+
process.env.NODE_ENV !== "production" && a === "local" && ue(Ue(ne.DUPLICATE_USE_I18N_CALLING));
|
|
3719
3723
|
return i;
|
|
3720
3724
|
}
|
|
3721
|
-
function
|
|
3725
|
+
function Po(e, t) {
|
|
3722
3726
|
const n = wr(), r = __VUE_I18N_LEGACY_API__ && t ? n.run(() => Yt(e)) : n.run(() => on(e));
|
|
3723
3727
|
if (r == null)
|
|
3724
3728
|
throw z(G.UNEXPECTED_ERROR);
|
|
3725
3729
|
return [n, r];
|
|
3726
3730
|
}
|
|
3727
|
-
function
|
|
3728
|
-
const t = Bt(e.isCE ?
|
|
3731
|
+
function Do(e) {
|
|
3732
|
+
const t = Bt(e.isCE ? So : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
3729
3733
|
if (!t)
|
|
3730
3734
|
throw z(e.isCE ? G.NOT_INSTALLED_WITH_PROVIDE : G.UNEXPECTED_ERROR);
|
|
3731
3735
|
return t;
|
|
3732
3736
|
}
|
|
3733
|
-
function
|
|
3737
|
+
function ko(e, t) {
|
|
3734
3738
|
return ut(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
3735
3739
|
}
|
|
3736
|
-
function
|
|
3740
|
+
function Ro(e) {
|
|
3737
3741
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
3738
3742
|
}
|
|
3739
|
-
function
|
|
3743
|
+
function Mo(e, t, n = !1) {
|
|
3740
3744
|
let r = null;
|
|
3741
3745
|
const s = t.root;
|
|
3742
|
-
let a =
|
|
3746
|
+
let a = Fo(t, n);
|
|
3743
3747
|
for (; a != null; ) {
|
|
3744
3748
|
const o = e;
|
|
3745
3749
|
if (e.mode === "composition")
|
|
3746
3750
|
r = o.__getInstance(a);
|
|
3747
3751
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
3748
3752
|
const i = o.__getInstance(a);
|
|
3749
|
-
i != null && (r = i.__composer, n && r && !r[
|
|
3753
|
+
i != null && (r = i.__composer, n && r && !r[Cr] && (r = null));
|
|
3750
3754
|
}
|
|
3751
3755
|
if (r != null || s === a)
|
|
3752
3756
|
break;
|
|
@@ -3754,16 +3758,16 @@ function Fo(e, t, n = !1) {
|
|
|
3754
3758
|
}
|
|
3755
3759
|
return r;
|
|
3756
3760
|
}
|
|
3757
|
-
function
|
|
3761
|
+
function Fo(e, t = !1) {
|
|
3758
3762
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
3759
3763
|
}
|
|
3760
|
-
function
|
|
3764
|
+
function Uo(e, t, n) {
|
|
3761
3765
|
let r = null;
|
|
3762
3766
|
Wr(() => {
|
|
3763
3767
|
if (process.env.NODE_ENV !== "production") {
|
|
3764
3768
|
t.__VUE_I18N__ = n, r = en();
|
|
3765
3769
|
const s = n;
|
|
3766
|
-
s[
|
|
3770
|
+
s[Se] && s[Se](r), r.on("*", Qe);
|
|
3767
3771
|
}
|
|
3768
3772
|
}, t), Gr(() => {
|
|
3769
3773
|
const s = n;
|
|
@@ -3772,14 +3776,14 @@ function wo(e, t, n) {
|
|
|
3772
3776
|
a && (a(), delete s[xt]);
|
|
3773
3777
|
}, t);
|
|
3774
3778
|
}
|
|
3775
|
-
const
|
|
3779
|
+
const wo = [
|
|
3776
3780
|
"locale",
|
|
3777
3781
|
"fallbackLocale",
|
|
3778
3782
|
"availableLocales"
|
|
3779
3783
|
], jn = ["t", "rt", "d", "n", "tm", "te"];
|
|
3780
|
-
function
|
|
3784
|
+
function Vo(e, t) {
|
|
3781
3785
|
const n = /* @__PURE__ */ Object.create(null);
|
|
3782
|
-
return
|
|
3786
|
+
return wo.forEach((s) => {
|
|
3783
3787
|
const a = Object.getOwnPropertyDescriptor(t, s);
|
|
3784
3788
|
if (!a)
|
|
3785
3789
|
throw z(G.UNEXPECTED_ERROR);
|
|
@@ -3808,7 +3812,7 @@ function $o(e, t) {
|
|
|
3808
3812
|
});
|
|
3809
3813
|
};
|
|
3810
3814
|
}
|
|
3811
|
-
const
|
|
3815
|
+
const $o = /* @__PURE__ */ fe({
|
|
3812
3816
|
/* eslint-disable */
|
|
3813
3817
|
name: "i18n-d",
|
|
3814
3818
|
props: J({
|
|
@@ -3827,127 +3831,127 @@ const Wo = /* @__PURE__ */ _e({
|
|
|
3827
3831
|
useScope: e.scope,
|
|
3828
3832
|
__useComponent: !0
|
|
3829
3833
|
});
|
|
3830
|
-
return
|
|
3834
|
+
return Rr(e, t, br, (...r) => (
|
|
3831
3835
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3832
3836
|
n[Wt](...r)
|
|
3833
3837
|
));
|
|
3834
3838
|
}
|
|
3835
|
-
}), Xn =
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3839
|
+
}), Xn = $o;
|
|
3840
|
+
eo();
|
|
3841
|
+
Oa(na);
|
|
3842
|
+
va(Ta);
|
|
3843
|
+
Ca(fr);
|
|
3840
3844
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3841
|
-
const e =
|
|
3842
|
-
e.__INTLIFY__ = !0,
|
|
3845
|
+
const e = Le();
|
|
3846
|
+
e.__INTLIFY__ = !0, ra(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
3843
3847
|
}
|
|
3844
3848
|
process.env.NODE_ENV;
|
|
3845
|
-
const
|
|
3846
|
-
name:
|
|
3847
|
-
supplier:
|
|
3848
|
-
version:
|
|
3849
|
-
description:
|
|
3850
|
-
category:
|
|
3851
|
-
general:
|
|
3852
|
-
ioMapping:
|
|
3853
|
-
modbusSlaveChannel:
|
|
3854
|
-
status:
|
|
3855
|
-
ethernet:
|
|
3856
|
-
modbusTcpServer:
|
|
3857
|
-
modbusTcpClient:
|
|
3858
|
-
modbusTCPSlaveDevice:
|
|
3859
|
-
company:
|
|
3860
|
-
descriptionMap:
|
|
3861
|
-
netInterface:
|
|
3862
|
-
ipAddress:
|
|
3863
|
-
subnetMask:
|
|
3864
|
-
defaultGateway:
|
|
3865
|
-
adaptedOSConfiguration:
|
|
3866
|
-
busCycleTask:
|
|
3867
|
-
defaultTask:
|
|
3868
|
-
responseTimeout:
|
|
3869
|
-
socketTimeout:
|
|
3870
|
-
reconnect:
|
|
3871
|
-
slaveIpAddress:
|
|
3872
|
-
port:
|
|
3873
|
-
watchDog:
|
|
3874
|
-
slavePort:
|
|
3875
|
-
bindToAdapter:
|
|
3876
|
-
holdingRegister:
|
|
3877
|
-
writable:
|
|
3878
|
-
inputRegister:
|
|
3879
|
-
discreteBitArea:
|
|
3880
|
-
coil:
|
|
3881
|
-
discreteInput:
|
|
3882
|
-
dataModel:
|
|
3883
|
-
startAddress:
|
|
3884
|
-
},
|
|
3885
|
-
name:
|
|
3886
|
-
supplier:
|
|
3887
|
-
version:
|
|
3888
|
-
description:
|
|
3889
|
-
category:
|
|
3890
|
-
general:
|
|
3891
|
-
ioMapping:
|
|
3892
|
-
modbusSlaveChannel:
|
|
3893
|
-
status:
|
|
3894
|
-
ethernet:
|
|
3895
|
-
modbusTcpServer:
|
|
3896
|
-
modbusTcpClient:
|
|
3897
|
-
modbusTCPSlaveDevice:
|
|
3898
|
-
company:
|
|
3899
|
-
descriptionMap:
|
|
3900
|
-
netInterface:
|
|
3901
|
-
ipAddress:
|
|
3902
|
-
subnetMask:
|
|
3903
|
-
defaultGateway:
|
|
3904
|
-
adaptedOSConfiguration:
|
|
3905
|
-
busCycleTask:
|
|
3906
|
-
defaultTask:
|
|
3907
|
-
responseTimeout:
|
|
3908
|
-
socketTimeout:
|
|
3909
|
-
reconnect:
|
|
3910
|
-
slaveIpAddress:
|
|
3911
|
-
port:
|
|
3912
|
-
watchDog:
|
|
3913
|
-
slavePort:
|
|
3914
|
-
bindToAdapter:
|
|
3915
|
-
holdingRegister:
|
|
3916
|
-
writable:
|
|
3917
|
-
inputRegister:
|
|
3918
|
-
discreteBitArea:
|
|
3919
|
-
coil:
|
|
3920
|
-
discreteInput:
|
|
3921
|
-
dataModel:
|
|
3922
|
-
startAddress:
|
|
3923
|
-
},
|
|
3924
|
-
zh:
|
|
3925
|
-
en:
|
|
3926
|
-
},
|
|
3849
|
+
const Wo = "名称", Go = "供应商", xo = "版本", Ho = "描述", Yo = "类别", Bo = "通用", Ko = "I/O映射", jo = "Modbus从站通道", Xo = "状态", Jo = "以太网", Qo = "Modbus TCP服务器", qo = "Modbus TCP客户端", Zo = "Modbus TCP从站设备", zo = "成都数字创新科技有限公司", el = { ethernet: "一种在以太网上充当Modbus服务器的设备。", modbusTcpServer: "一种在以太网上充当Modbus TCP服务器的设备。", modbusTcpClient: "一种在以太网上充当Modbus TCP客户端的设备。", modbusTCPSlaveDevice: "一种在以太网上充当Modbus TCP从站设备。" }, tl = "网络接口", nl = "IP地址", rl = "子网掩码", sl = "默认网关", al = "适配操作系统配置", ol = "总线周期任务", ll = "使用父总线循环设置", il = "响应超时(ms)", cl = "Socket超时(ms)", ul = "自动重连", fl = "从站IP地址", _l = "端口", ml = " 看门狗", dl = "从站端口", El = "绑定到适配器", pl = "保持寄存器", gl = "可写入", Nl = "输入寄存器", Tl = "离散位区域", bl = "线圈", hl = "离散输入", Il = "数据模型", Ll = "起始地址", Ol = {
|
|
3850
|
+
name: Wo,
|
|
3851
|
+
supplier: Go,
|
|
3852
|
+
version: xo,
|
|
3853
|
+
description: Ho,
|
|
3854
|
+
category: Yo,
|
|
3855
|
+
general: Bo,
|
|
3856
|
+
ioMapping: Ko,
|
|
3857
|
+
modbusSlaveChannel: jo,
|
|
3858
|
+
status: Xo,
|
|
3859
|
+
ethernet: Jo,
|
|
3860
|
+
modbusTcpServer: Qo,
|
|
3861
|
+
modbusTcpClient: qo,
|
|
3862
|
+
modbusTCPSlaveDevice: Zo,
|
|
3863
|
+
company: zo,
|
|
3864
|
+
descriptionMap: el,
|
|
3865
|
+
netInterface: tl,
|
|
3866
|
+
ipAddress: nl,
|
|
3867
|
+
subnetMask: rl,
|
|
3868
|
+
defaultGateway: sl,
|
|
3869
|
+
adaptedOSConfiguration: al,
|
|
3870
|
+
busCycleTask: ol,
|
|
3871
|
+
defaultTask: ll,
|
|
3872
|
+
responseTimeout: il,
|
|
3873
|
+
socketTimeout: cl,
|
|
3874
|
+
reconnect: ul,
|
|
3875
|
+
slaveIpAddress: fl,
|
|
3876
|
+
port: _l,
|
|
3877
|
+
watchDog: ml,
|
|
3878
|
+
slavePort: dl,
|
|
3879
|
+
bindToAdapter: El,
|
|
3880
|
+
holdingRegister: pl,
|
|
3881
|
+
writable: gl,
|
|
3882
|
+
inputRegister: Nl,
|
|
3883
|
+
discreteBitArea: Tl,
|
|
3884
|
+
coil: bl,
|
|
3885
|
+
discreteInput: hl,
|
|
3886
|
+
dataModel: Il,
|
|
3887
|
+
startAddress: Ll
|
|
3888
|
+
}, vl = "Name", Cl = "Supplier", Al = "Version", Sl = "Description", yl = "Category", Pl = "General", Dl = "I/O Mapping", kl = "Modbus Slave Channel", Rl = "Status", Ml = "Ethernet", Fl = "Modbus TCP Server", Ul = "Modbus TCP Client", wl = "Modbus TCP Slave Device", Vl = "Chengdu AIOSYS Innovation Technology Co., Ltd.", $l = { ethernet: "A device that works as a Modbus Server on Ethernet.", modbusTcpServer: "A device that works as a Modbus TCP Server.", modbusTcpClient: "A device that works as a Modbus TCP Client.", modbusTCPSlaveDevice: "A device that works as a Modbus TCP Slave Device." }, Wl = "Network Interface", Gl = "IP Address", xl = "Subnet Mask", Hl = "Default Gateway", Yl = "Adapted OS Configuration", Bl = "Bus Cycle Task", Kl = "Use Parent Bus Cycle Setting", jl = "Response Timeout(ms)", Xl = "Socket Timeout(ms)", Jl = "Reconnect", Ql = "Slave IP Address", ql = "Port", Zl = "Watch Dog", zl = "Slave Port", ei = "Bind to Adapter", ti = "Holding Register", ni = "Writable", ri = "Input Register", si = "Discrete Bit Area", ai = "Coil", oi = "Discrete Input", li = "Data Model", ii = "Start Address", ci = {
|
|
3889
|
+
name: vl,
|
|
3890
|
+
supplier: Cl,
|
|
3891
|
+
version: Al,
|
|
3892
|
+
description: Sl,
|
|
3893
|
+
category: yl,
|
|
3894
|
+
general: Pl,
|
|
3895
|
+
ioMapping: Dl,
|
|
3896
|
+
modbusSlaveChannel: kl,
|
|
3897
|
+
status: Rl,
|
|
3898
|
+
ethernet: Ml,
|
|
3899
|
+
modbusTcpServer: Fl,
|
|
3900
|
+
modbusTcpClient: Ul,
|
|
3901
|
+
modbusTCPSlaveDevice: wl,
|
|
3902
|
+
company: Vl,
|
|
3903
|
+
descriptionMap: $l,
|
|
3904
|
+
netInterface: Wl,
|
|
3905
|
+
ipAddress: Gl,
|
|
3906
|
+
subnetMask: xl,
|
|
3907
|
+
defaultGateway: Hl,
|
|
3908
|
+
adaptedOSConfiguration: Yl,
|
|
3909
|
+
busCycleTask: Bl,
|
|
3910
|
+
defaultTask: Kl,
|
|
3911
|
+
responseTimeout: jl,
|
|
3912
|
+
socketTimeout: Xl,
|
|
3913
|
+
reconnect: Jl,
|
|
3914
|
+
slaveIpAddress: Ql,
|
|
3915
|
+
port: ql,
|
|
3916
|
+
watchDog: Zl,
|
|
3917
|
+
slavePort: zl,
|
|
3918
|
+
bindToAdapter: ei,
|
|
3919
|
+
holdingRegister: ti,
|
|
3920
|
+
writable: ni,
|
|
3921
|
+
inputRegister: ri,
|
|
3922
|
+
discreteBitArea: si,
|
|
3923
|
+
coil: ai,
|
|
3924
|
+
discreteInput: oi,
|
|
3925
|
+
dataModel: li,
|
|
3926
|
+
startAddress: ii
|
|
3927
|
+
}, ui = {
|
|
3928
|
+
zh: Ol,
|
|
3929
|
+
en: ci
|
|
3930
|
+
}, Ie = yo({
|
|
3927
3931
|
legacy: !1,
|
|
3928
3932
|
locale: "zh",
|
|
3929
3933
|
fallbackLocale: "en",
|
|
3930
|
-
messages:
|
|
3934
|
+
messages: ui
|
|
3931
3935
|
});
|
|
3932
|
-
typeof window < "u" && (window.$t =
|
|
3936
|
+
typeof window < "u" && (window.$t = Ie.global.t.bind(Ie.global), Object.defineProperty(window, "$locale", {
|
|
3933
3937
|
get() {
|
|
3934
|
-
return typeof
|
|
3938
|
+
return typeof Ie.global.locale == "string" ? Ie.global.locale : Ie.global.locale.value;
|
|
3935
3939
|
},
|
|
3936
3940
|
set(e) {
|
|
3937
|
-
|
|
3941
|
+
Ie.global.locale = e;
|
|
3938
3942
|
}
|
|
3939
3943
|
}));
|
|
3940
|
-
const
|
|
3941
|
-
|
|
3942
|
-
const
|
|
3944
|
+
const fi = Hr(ss).use(Ie);
|
|
3945
|
+
fi.mount("#app");
|
|
3946
|
+
const _i = [
|
|
3943
3947
|
Br,
|
|
3944
3948
|
jr,
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
],
|
|
3949
|
+
er,
|
|
3950
|
+
Jr,
|
|
3951
|
+
Xr
|
|
3952
|
+
], Ei = {
|
|
3949
3953
|
install(e) {
|
|
3950
|
-
|
|
3954
|
+
_i.forEach((t) => {
|
|
3951
3955
|
e.component(t.name, t);
|
|
3952
3956
|
});
|
|
3953
3957
|
}
|
|
@@ -3955,17 +3959,17 @@ const mi = [
|
|
|
3955
3959
|
export {
|
|
3956
3960
|
jr as Button2,
|
|
3957
3961
|
lt as EthernetProtocolItem,
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3962
|
+
er as Input,
|
|
3963
|
+
Jr as InputNumber,
|
|
3964
|
+
Xr as IpInput,
|
|
3961
3965
|
Jt as ModbusTCPClientProtocolItem,
|
|
3962
3966
|
Xt as ModbusTCPServerProtocolItem,
|
|
3963
3967
|
Qt as ModbusTCPSlaveDeviceProtocolItem,
|
|
3964
3968
|
Br as MyButton,
|
|
3965
|
-
|
|
3966
|
-
|
|
3969
|
+
di as MyLibPlugin,
|
|
3970
|
+
ns as ProtocolCollection,
|
|
3967
3971
|
re as ProtocolItem,
|
|
3968
|
-
|
|
3969
|
-
|
|
3972
|
+
pe as ProtocolType,
|
|
3973
|
+
Ei as default,
|
|
3970
3974
|
it as protocolMap
|
|
3971
3975
|
};
|