lty-protocol 1.0.16 → 1.0.17
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/InputNumber.vue.d.ts +9 -0
- package/dist/index.d.ts +2 -1
- package/dist/lty-protocol.mjs +775 -758
- package/dist/lty-protocol.umd.js +6 -6
- package/dist/plugin.d.ts +1 -0
- package/package.json +1 -1
package/dist/lty-protocol.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
const
|
|
1
|
+
import * as St from "vue";
|
|
2
|
+
import { defineComponent as _e, openBlock as ue, createElementBlock as Ce, renderSlot as Jn, inject as Bt, ref as at, watch as ge, createBlock as Kt, resolveDynamicComponent as Qn, unref as jt, Fragment as ot, renderList as qn, toDisplayString as Ur, createVNode as Zn, effectScope as wr, computed as He, isRef as Vr, shallowRef as $r, h as zn, onMounted as Wr, onUnmounted as Gr, Text as xr, createApp as Hr } from "vue";
|
|
3
|
+
const Yr = /* @__PURE__ */ _e({
|
|
4
4
|
name: "MyButton",
|
|
5
5
|
__name: "MyButton",
|
|
6
6
|
emits: ["click"],
|
|
@@ -8,19 +8,19 @@ const Hr = /* @__PURE__ */ ge({
|
|
|
8
8
|
const n = t, r = () => {
|
|
9
9
|
n("click");
|
|
10
10
|
};
|
|
11
|
-
return (s, a) => (
|
|
11
|
+
return (s, a) => (ue(), Ce("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
|
+
}), er = (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
|
-
},
|
|
23
|
+
}, Br = /* @__PURE__ */ er(Yr, [["__scopeId", "data-v-c654f959"]]), Kr = /* @__PURE__ */ _e({
|
|
24
24
|
name: "MyButton",
|
|
25
25
|
__name: "button2",
|
|
26
26
|
emits: ["click"],
|
|
@@ -28,44 +28,57 @@ const Hr = /* @__PURE__ */ ge({
|
|
|
28
28
|
const n = t, r = () => {
|
|
29
29
|
n("click");
|
|
30
30
|
};
|
|
31
|
-
return (s, a) => (
|
|
31
|
+
return (s, a) => (ue(), Ce("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
|
-
}),
|
|
38
|
+
}), jr = /* @__PURE__ */ er(Kr, [["__scopeId", "data-v-1477cfc3"]]), tr = /* @__PURE__ */ _e({
|
|
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 =
|
|
46
|
-
return
|
|
45
|
+
const n = e, r = t, s = Bt("UIComponents").Input, a = at(n.modelValue);
|
|
46
|
+
return ge(() => n.modelValue, (o) => a.value = o), ge(a, (o) => r("update:modelValue", o)), (o, i) => (ue(), Kt(Qn(jt(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 = { style: { display: "flex", gap: "4px" } },
|
|
51
|
+
}), Xr = { style: { display: "flex", gap: "4px" } }, Jr = /* @__PURE__ */ _e({
|
|
52
52
|
__name: "IpInput",
|
|
53
53
|
props: {
|
|
54
54
|
modelValue: {}
|
|
55
55
|
},
|
|
56
56
|
emits: ["update:modelValue"],
|
|
57
57
|
setup(e, { emit: t }) {
|
|
58
|
-
const n = e, r = t, s =
|
|
59
|
-
return
|
|
60
|
-
(
|
|
58
|
+
const n = e, r = t, s = at((n.modelValue || "0.0.0.0").split("."));
|
|
59
|
+
return ge(s, () => r("update:modelValue", s.value.join(".")), { deep: !0 }), ge(() => n.modelValue, (a) => s.value = (a || "0.0.0.0").split(".")), (a, o) => (ue(), Ce("div", Xr, [
|
|
60
|
+
(ue(!0), Ce(ot, null, qn(s.value, (i, u) => (ue(), Kt(tr, {
|
|
61
61
|
key: u,
|
|
62
62
|
modelValue: s.value[u],
|
|
63
63
|
"onUpdate:modelValue": (d) => s.value[u] = d
|
|
64
64
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]))), 128))
|
|
65
65
|
]));
|
|
66
66
|
}
|
|
67
|
+
}), Qr = /* @__PURE__ */ _e({
|
|
68
|
+
__name: "InputNumber",
|
|
69
|
+
props: {
|
|
70
|
+
modelValue: {}
|
|
71
|
+
},
|
|
72
|
+
emits: ["update:modelValue"],
|
|
73
|
+
setup(e, { emit: t }) {
|
|
74
|
+
const n = e, r = t, s = Bt("UIComponents").Input, a = at(n.modelValue);
|
|
75
|
+
return ge(() => n.modelValue, (o) => a.value = o), ge(a, (o) => r("update:modelValue", o)), (o, i) => (ue(), Kt(Qn(jt(s)), {
|
|
76
|
+
modelValue: a.value,
|
|
77
|
+
"onUpdate:modelValue": i[0] || (i[0] = (u) => a.value = u)
|
|
78
|
+
}, null, 8, ["modelValue"]));
|
|
79
|
+
}
|
|
67
80
|
});
|
|
68
|
-
function
|
|
81
|
+
function Ei(e, t) {
|
|
69
82
|
e.provide("UIComponents", t);
|
|
70
83
|
}
|
|
71
84
|
class re {
|
|
@@ -85,7 +98,7 @@ class re {
|
|
|
85
98
|
return n.fromPlain(t);
|
|
86
99
|
}
|
|
87
100
|
}
|
|
88
|
-
class
|
|
101
|
+
class qr {
|
|
89
102
|
static getDefaultConfig(t) {
|
|
90
103
|
console.log(1231231, t);
|
|
91
104
|
const n = t.baseInfo, r = t.configuration, s = t.tab;
|
|
@@ -96,59 +109,59 @@ class Jr {
|
|
|
96
109
|
};
|
|
97
110
|
}
|
|
98
111
|
}
|
|
99
|
-
const
|
|
100
|
-
type:
|
|
101
|
-
baseInfo:
|
|
102
|
-
tab:
|
|
103
|
-
configuration:
|
|
112
|
+
const Zr = "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" } }], es = [{ name: { i18nKey: "general" }, key: "general" }, { name: { i18nKey: "ioMapping" }, key: "ioMapping" }], ts = { 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" }] }, ns = {
|
|
113
|
+
type: Zr,
|
|
114
|
+
baseInfo: zr,
|
|
115
|
+
tab: es,
|
|
116
|
+
configuration: ts
|
|
104
117
|
};
|
|
105
|
-
class
|
|
106
|
-
type =
|
|
107
|
-
moduleType =
|
|
118
|
+
class lt extends re {
|
|
119
|
+
type = Ne.ETHERNET;
|
|
120
|
+
moduleType = it[Ne.ETHERNET];
|
|
108
121
|
baseInfo;
|
|
109
122
|
config;
|
|
110
123
|
tab;
|
|
111
124
|
constructor(t) {
|
|
112
125
|
super(t);
|
|
113
|
-
const { baseInfo: n, config: r, tab: s } =
|
|
126
|
+
const { baseInfo: n, config: r, tab: s } = qr.getDefaultConfig(ns);
|
|
114
127
|
this.baseInfo = n, this.config = r, this.tab = s;
|
|
115
128
|
}
|
|
116
129
|
static fromPlain(t) {
|
|
117
|
-
return new
|
|
130
|
+
return new lt(t);
|
|
118
131
|
}
|
|
119
132
|
}
|
|
120
|
-
class
|
|
121
|
-
type =
|
|
122
|
-
moduleType =
|
|
133
|
+
class Xt extends re {
|
|
134
|
+
type = Ne.MODBUS_TCP_SERVER;
|
|
135
|
+
moduleType = it[Ne.MODBUS_TCP_SERVER];
|
|
123
136
|
constructor(t) {
|
|
124
137
|
super(t);
|
|
125
138
|
}
|
|
126
139
|
static fromPlain(t) {
|
|
127
|
-
return new
|
|
140
|
+
return new Xt(t);
|
|
128
141
|
}
|
|
129
142
|
}
|
|
130
|
-
class
|
|
131
|
-
type =
|
|
132
|
-
moduleType =
|
|
143
|
+
class Jt extends re {
|
|
144
|
+
type = Ne.MODBUS_TCP_CLIENT;
|
|
145
|
+
moduleType = it[Ne.MODBUS_TCP_CLIENT];
|
|
133
146
|
constructor(t) {
|
|
134
147
|
super(t);
|
|
135
148
|
}
|
|
136
149
|
static fromPlain(t) {
|
|
137
|
-
return new
|
|
150
|
+
return new Jt(t);
|
|
138
151
|
}
|
|
139
152
|
}
|
|
140
|
-
class
|
|
141
|
-
type =
|
|
142
|
-
moduleType =
|
|
153
|
+
class Qt extends re {
|
|
154
|
+
type = Ne.MODBUS_TCP_SLAVE_DEVICE;
|
|
155
|
+
moduleType = it[Ne.MODBUS_TCP_SLAVE_DEVICE];
|
|
143
156
|
constructor(t) {
|
|
144
157
|
super(t);
|
|
145
158
|
}
|
|
146
159
|
static fromPlain(t) {
|
|
147
|
-
return new
|
|
160
|
+
return new Qt(t);
|
|
148
161
|
}
|
|
149
162
|
}
|
|
150
|
-
var
|
|
151
|
-
const
|
|
163
|
+
var Ne = /* @__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))(Ne || {});
|
|
164
|
+
const it = {
|
|
152
165
|
Pprogrammable: 4096,
|
|
153
166
|
// 根节点
|
|
154
167
|
Protgrammable_Safety: 4098,
|
|
@@ -202,10 +215,10 @@ const lt = {
|
|
|
202
215
|
EtherCatModule: 16384
|
|
203
216
|
// Ethercat子模块
|
|
204
217
|
};
|
|
205
|
-
class
|
|
218
|
+
class rs {
|
|
206
219
|
map = /* @__PURE__ */ new Map();
|
|
207
220
|
constructor() {
|
|
208
|
-
re.register("Ethernet",
|
|
221
|
+
re.register("Ethernet", lt), re.register("ModbusTCPServer", Xt), re.register("ModbusTCPClient", Jt), re.register("ModbusTCPSlaveDevice", Qt);
|
|
209
222
|
}
|
|
210
223
|
init(t) {
|
|
211
224
|
this.clear(), t.forEach((n) => {
|
|
@@ -232,36 +245,36 @@ class ts {
|
|
|
232
245
|
this.map.clear();
|
|
233
246
|
}
|
|
234
247
|
}
|
|
235
|
-
const
|
|
248
|
+
const ss = /* @__PURE__ */ _e({
|
|
236
249
|
__name: "Ethernet",
|
|
237
250
|
props: {
|
|
238
251
|
config: {}
|
|
239
252
|
},
|
|
240
253
|
setup(e) {
|
|
241
|
-
return (t, n) => (
|
|
254
|
+
return (t, n) => (ue(!0), Ce(ot, null, qn(e.config.tab, (r) => (ue(), Ce("div", {
|
|
242
255
|
key: r.key
|
|
243
|
-
},
|
|
256
|
+
}, Ur(t.$t(r.name.i18nKey)), 1))), 128));
|
|
244
257
|
}
|
|
245
|
-
}),
|
|
258
|
+
}), as = /* @__PURE__ */ _e({
|
|
246
259
|
__name: "App",
|
|
247
260
|
setup(e) {
|
|
248
|
-
new
|
|
249
|
-
const t = new
|
|
261
|
+
new rs();
|
|
262
|
+
const t = new lt({
|
|
250
263
|
id: 1,
|
|
251
264
|
deviceId: 1,
|
|
252
265
|
type: "Ethernet"
|
|
253
266
|
});
|
|
254
|
-
return (n, r) => (
|
|
255
|
-
|
|
267
|
+
return (n, r) => (ue(), Ce("div", null, [
|
|
268
|
+
Zn(ss, { config: jt(t) }, null, 8, ["config"])
|
|
256
269
|
]));
|
|
257
270
|
}
|
|
258
271
|
});
|
|
259
|
-
function
|
|
272
|
+
function fe(e, t) {
|
|
260
273
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
261
274
|
}
|
|
262
|
-
const
|
|
263
|
-
function
|
|
264
|
-
|
|
275
|
+
const mn = {};
|
|
276
|
+
function qt(e) {
|
|
277
|
+
mn[e] || (mn[e] = !0, fe(e));
|
|
265
278
|
}
|
|
266
279
|
const le = typeof window < "u";
|
|
267
280
|
let ee, Ae;
|
|
@@ -274,21 +287,21 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
274
287
|
e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
|
|
275
288
|
});
|
|
276
289
|
}
|
|
277
|
-
const
|
|
278
|
-
function
|
|
279
|
-
return t.length === 1 && M(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(
|
|
290
|
+
const os = /\{([0-9a-zA-Z]+)\}/g;
|
|
291
|
+
function ct(e, ...t) {
|
|
292
|
+
return t.length === 1 && M(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(os, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
280
293
|
}
|
|
281
|
-
const
|
|
282
|
-
let
|
|
283
|
-
const
|
|
284
|
-
function
|
|
294
|
+
const me = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), ls = (e, t, n) => is({ l: e, k: t, s: n }), is = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), j = (e) => typeof e == "number" && isFinite(e), cs = (e) => Zt(e) === "[object Date]", Fe = (e) => Zt(e) === "[object RegExp]", ut = (e) => R(e) && Object.keys(e).length === 0, J = Object.assign, us = Object.create, $ = (e = null) => us(e);
|
|
295
|
+
let dn;
|
|
296
|
+
const ve = () => dn || (dn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : $());
|
|
297
|
+
function En(e) {
|
|
285
298
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "=");
|
|
286
299
|
}
|
|
287
|
-
function
|
|
300
|
+
function pn(e) {
|
|
288
301
|
return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
289
302
|
}
|
|
290
|
-
function
|
|
291
|
-
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (r, s, a) => `${s}="${
|
|
303
|
+
function fs(e) {
|
|
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" && fe("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")), [
|
|
292
305
|
// In href, src, action, formaction attributes
|
|
293
306
|
/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,
|
|
294
307
|
// In style attributes within url()
|
|
@@ -297,22 +310,22 @@ function cs(e) {
|
|
|
297
310
|
e = e.replace(r, "$1javascript:");
|
|
298
311
|
}), e;
|
|
299
312
|
}
|
|
300
|
-
const
|
|
313
|
+
const _s = Object.prototype.hasOwnProperty;
|
|
301
314
|
function oe(e, t) {
|
|
302
|
-
return
|
|
315
|
+
return _s.call(e, t);
|
|
303
316
|
}
|
|
304
|
-
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",
|
|
305
|
-
function
|
|
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", ms = (e) => M(e) && W(e.then) && W(e.catch), nr = Object.prototype.toString, Zt = (e) => nr.call(e), R = (e) => Zt(e) === "[object Object]", ds = (e) => e == null ? "" : H(e) || R(e) && e.toString === nr ? JSON.stringify(e, null, 2) : String(e);
|
|
318
|
+
function zt(e, t = "") {
|
|
306
319
|
return e.reduce((n, r, s) => s === 0 ? n + r : n + t + r, "");
|
|
307
320
|
}
|
|
308
|
-
const
|
|
309
|
-
function
|
|
321
|
+
const gn = 2;
|
|
322
|
+
function Es(e, t = 0, n = e.length) {
|
|
310
323
|
const r = e.split(/\r?\n/);
|
|
311
324
|
let s = 0;
|
|
312
325
|
const a = [];
|
|
313
326
|
for (let o = 0; o < r.length; o++)
|
|
314
327
|
if (s += r[o].length + 1, s >= t) {
|
|
315
|
-
for (let i = o -
|
|
328
|
+
for (let i = o - gn; i <= o + gn || n > s; i++) {
|
|
316
329
|
if (i < 0 || i >= r.length)
|
|
317
330
|
continue;
|
|
318
331
|
const u = i + 1;
|
|
@@ -334,7 +347,7 @@ function ms(e, t = 0, n = e.length) {
|
|
|
334
347
|
return a.join(`
|
|
335
348
|
`);
|
|
336
349
|
}
|
|
337
|
-
function
|
|
350
|
+
function en() {
|
|
338
351
|
const e = /* @__PURE__ */ new Map();
|
|
339
352
|
return {
|
|
340
353
|
events: e,
|
|
@@ -363,10 +376,10 @@ function rt(e, t) {
|
|
|
363
376
|
});
|
|
364
377
|
}
|
|
365
378
|
}
|
|
366
|
-
function
|
|
379
|
+
function ps(e, t, n) {
|
|
367
380
|
return { line: e, column: t, offset: n };
|
|
368
381
|
}
|
|
369
|
-
function
|
|
382
|
+
function Rt(e, t, n) {
|
|
370
383
|
return { start: e, end: t };
|
|
371
384
|
}
|
|
372
385
|
const P = {
|
|
@@ -390,7 +403,7 @@ const P = {
|
|
|
390
403
|
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
391
404
|
// minifier error codes
|
|
392
405
|
UNHANDLED_MINIFIER_NODE_TYPE: 16
|
|
393
|
-
},
|
|
406
|
+
}, gs = 17, Ns = {
|
|
394
407
|
// tokenizer error messages
|
|
395
408
|
[P.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
396
409
|
[P.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
@@ -413,18 +426,18 @@ const P = {
|
|
|
413
426
|
[P.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
414
427
|
};
|
|
415
428
|
function Ve(e, t, n = {}) {
|
|
416
|
-
const { domain: r, messages: s, args: a } = n, o = process.env.NODE_ENV !== "production" ?
|
|
429
|
+
const { domain: r, messages: s, args: a } = n, o = process.env.NODE_ENV !== "production" ? ct((s || Ns)[e] || "", ...a || []) : e, i = new SyntaxError(String(o));
|
|
417
430
|
return i.code = e, t && (i.location = t), i.domain = r, i;
|
|
418
431
|
}
|
|
419
|
-
function
|
|
432
|
+
function Ts(e) {
|
|
420
433
|
throw e;
|
|
421
434
|
}
|
|
422
|
-
const
|
|
423
|
-
`,
|
|
424
|
-
function
|
|
435
|
+
const bs = /<\/?[\w\s="/.':;#-\/]+>/, hs = (e) => bs.test(e), ie = " ", Is = "\r", Q = `
|
|
436
|
+
`, Ls = "\u2028", Os = "\u2029";
|
|
437
|
+
function vs(e) {
|
|
425
438
|
const t = e;
|
|
426
439
|
let n = 0, r = 1, s = 1, a = 0;
|
|
427
|
-
const o = (p) => t[p] ===
|
|
440
|
+
const o = (p) => t[p] === Is && t[p + 1] === Q, i = (p) => t[p] === Q, u = (p) => t[p] === Os, d = (p) => t[p] === Ls, I = (p) => o(p) || i(p) || u(p) || d(p), b = () => n, N = () => r, A = () => s, D = () => a, C = (p) => o(p) || u(p) || d(p) ? Q : t[p], S = () => C(n), f = () => C(n + a);
|
|
428
441
|
function m() {
|
|
429
442
|
return a = 0, I(n) && (r++, s = 0), o(n) && n++, n++, s++, t[n];
|
|
430
443
|
}
|
|
@@ -458,9 +471,9 @@ function Ls(e) {
|
|
|
458
471
|
skipToPeek: v
|
|
459
472
|
};
|
|
460
473
|
}
|
|
461
|
-
const
|
|
462
|
-
function
|
|
463
|
-
const n = t.location !== !1, r =
|
|
474
|
+
const Ee = void 0, Cs = ".", Nn = "'", As = "tokenizer";
|
|
475
|
+
function Ss(e, t = {}) {
|
|
476
|
+
const n = t.location !== !1, r = vs(e), s = () => r.index(), a = () => ps(r.line(), r.column(), r.index()), o = a(), i = s(), u = {
|
|
464
477
|
currentType: 13,
|
|
465
478
|
offset: i,
|
|
466
479
|
startLoc: o,
|
|
@@ -476,8 +489,8 @@ function Cs(e, t = {}) {
|
|
|
476
489
|
function b(l, c, g, ...y) {
|
|
477
490
|
const x = d();
|
|
478
491
|
if (c.column += g, c.offset += g, I) {
|
|
479
|
-
const B = n ?
|
|
480
|
-
domain:
|
|
492
|
+
const B = n ? Rt(x.startLoc, c) : null, U = Ve(l, B, {
|
|
493
|
+
domain: As,
|
|
481
494
|
args: y
|
|
482
495
|
});
|
|
483
496
|
I(U);
|
|
@@ -486,7 +499,7 @@ function Cs(e, t = {}) {
|
|
|
486
499
|
function N(l, c, g) {
|
|
487
500
|
l.endLoc = a(), l.currentType = c;
|
|
488
501
|
const y = { type: c };
|
|
489
|
-
return n && (y.loc =
|
|
502
|
+
return n && (y.loc = Rt(l.startLoc, l.endLoc)), g != null && (y.value = g), y;
|
|
490
503
|
}
|
|
491
504
|
const A = (l) => N(
|
|
492
505
|
l,
|
|
@@ -507,7 +520,7 @@ function Cs(e, t = {}) {
|
|
|
507
520
|
return l.skipToPeek(), c;
|
|
508
521
|
}
|
|
509
522
|
function f(l) {
|
|
510
|
-
if (l ===
|
|
523
|
+
if (l === Ee)
|
|
511
524
|
return !1;
|
|
512
525
|
const c = l.charCodeAt(0);
|
|
513
526
|
return c >= 97 && c <= 122 || // a-z
|
|
@@ -515,7 +528,7 @@ function Cs(e, t = {}) {
|
|
|
515
528
|
c === 95;
|
|
516
529
|
}
|
|
517
530
|
function m(l) {
|
|
518
|
-
if (l ===
|
|
531
|
+
if (l === Ee)
|
|
519
532
|
return !1;
|
|
520
533
|
const c = l.charCodeAt(0);
|
|
521
534
|
return c >= 48 && c <= 57;
|
|
@@ -541,7 +554,7 @@ function Cs(e, t = {}) {
|
|
|
541
554
|
if (g !== 2)
|
|
542
555
|
return !1;
|
|
543
556
|
C(l);
|
|
544
|
-
const y = l.currentPeek() ===
|
|
557
|
+
const y = l.currentPeek() === Nn;
|
|
545
558
|
return l.resetPeek(), y;
|
|
546
559
|
}
|
|
547
560
|
function v(l, c) {
|
|
@@ -592,7 +605,7 @@ function Cs(e, t = {}) {
|
|
|
592
605
|
}
|
|
593
606
|
function Y(l, c) {
|
|
594
607
|
const g = l.currentChar();
|
|
595
|
-
return g ===
|
|
608
|
+
return g === Ee ? Ee : c(g) ? (l.next(), g) : null;
|
|
596
609
|
}
|
|
597
610
|
function Pe(l) {
|
|
598
611
|
const c = l.charCodeAt(0);
|
|
@@ -602,10 +615,10 @@ function Cs(e, t = {}) {
|
|
|
602
615
|
c === 95 || // _
|
|
603
616
|
c === 36;
|
|
604
617
|
}
|
|
605
|
-
function
|
|
618
|
+
function mt(l) {
|
|
606
619
|
return Y(l, Pe);
|
|
607
620
|
}
|
|
608
|
-
function
|
|
621
|
+
function dt(l) {
|
|
609
622
|
const c = l.charCodeAt(0);
|
|
610
623
|
return c >= 97 && c <= 122 || // a-z
|
|
611
624
|
c >= 65 && c <= 90 || // A-Z
|
|
@@ -614,32 +627,32 @@ function Cs(e, t = {}) {
|
|
|
614
627
|
c === 36 || // $
|
|
615
628
|
c === 45;
|
|
616
629
|
}
|
|
617
|
-
function dt(l) {
|
|
618
|
-
return Y(l, mt);
|
|
619
|
-
}
|
|
620
630
|
function Et(l) {
|
|
621
|
-
|
|
622
|
-
return c >= 48 && c <= 57;
|
|
631
|
+
return Y(l, dt);
|
|
623
632
|
}
|
|
624
633
|
function pt(l) {
|
|
625
|
-
|
|
634
|
+
const c = l.charCodeAt(0);
|
|
635
|
+
return c >= 48 && c <= 57;
|
|
626
636
|
}
|
|
627
637
|
function gt(l) {
|
|
638
|
+
return Y(l, pt);
|
|
639
|
+
}
|
|
640
|
+
function Nt(l) {
|
|
628
641
|
const c = l.charCodeAt(0);
|
|
629
642
|
return c >= 48 && c <= 57 || // 0-9
|
|
630
643
|
c >= 65 && c <= 70 || // A-F
|
|
631
644
|
c >= 97 && c <= 102;
|
|
632
645
|
}
|
|
633
|
-
function
|
|
634
|
-
return Y(l,
|
|
646
|
+
function de(l) {
|
|
647
|
+
return Y(l, Nt);
|
|
635
648
|
}
|
|
636
649
|
function $e(l) {
|
|
637
650
|
let c = "", g = "";
|
|
638
|
-
for (; c =
|
|
651
|
+
for (; c = gt(l); )
|
|
639
652
|
g += c;
|
|
640
653
|
return g;
|
|
641
654
|
}
|
|
642
|
-
function
|
|
655
|
+
function Tt(l) {
|
|
643
656
|
let c = "";
|
|
644
657
|
for (; ; ) {
|
|
645
658
|
const g = l.currentChar();
|
|
@@ -658,35 +671,35 @@ function Cs(e, t = {}) {
|
|
|
658
671
|
}
|
|
659
672
|
return c;
|
|
660
673
|
}
|
|
661
|
-
function
|
|
674
|
+
function bt(l) {
|
|
662
675
|
S(l);
|
|
663
676
|
let c = "", g = "";
|
|
664
|
-
for (; c =
|
|
677
|
+
for (; c = Et(l); )
|
|
665
678
|
g += c;
|
|
666
679
|
const y = l.currentChar();
|
|
667
|
-
if (y && y !== "}" && y !==
|
|
680
|
+
if (y && y !== "}" && y !== Ee && y !== ie && y !== Q && y !== " ") {
|
|
668
681
|
const x = Ze(l);
|
|
669
682
|
return b(P.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, g + x), g + x;
|
|
670
683
|
}
|
|
671
|
-
return l.currentChar() ===
|
|
684
|
+
return l.currentChar() === Ee && b(P.UNTERMINATED_CLOSING_BRACE, a(), 0), g;
|
|
672
685
|
}
|
|
673
|
-
function
|
|
686
|
+
function ht(l) {
|
|
674
687
|
S(l);
|
|
675
688
|
let c = "";
|
|
676
|
-
return l.currentChar() === "-" ? (l.next(), c += `-${$e(l)}`) : c += $e(l), l.currentChar() ===
|
|
689
|
+
return l.currentChar() === "-" ? (l.next(), c += `-${$e(l)}`) : c += $e(l), l.currentChar() === Ee && b(P.UNTERMINATED_CLOSING_BRACE, a(), 0), c;
|
|
677
690
|
}
|
|
678
|
-
function
|
|
679
|
-
return l !==
|
|
691
|
+
function It(l) {
|
|
692
|
+
return l !== Nn && l !== Q;
|
|
680
693
|
}
|
|
681
|
-
function
|
|
694
|
+
function fn(l) {
|
|
682
695
|
S(l), D(l, "'");
|
|
683
696
|
let c = "", g = "";
|
|
684
|
-
for (; c = Y(l,
|
|
685
|
-
c === "\\" ? g +=
|
|
697
|
+
for (; c = Y(l, It); )
|
|
698
|
+
c === "\\" ? g += Lt(l) : g += c;
|
|
686
699
|
const y = l.currentChar();
|
|
687
|
-
return y === Q || y ===
|
|
700
|
+
return y === Q || y === Ee ? (b(P.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), y === Q && (l.next(), D(l, "'")), g) : (D(l, "'"), g);
|
|
688
701
|
}
|
|
689
|
-
function
|
|
702
|
+
function Lt(l) {
|
|
690
703
|
const c = l.currentChar();
|
|
691
704
|
switch (c) {
|
|
692
705
|
case "\\":
|
|
@@ -704,7 +717,7 @@ function Cs(e, t = {}) {
|
|
|
704
717
|
D(l, c);
|
|
705
718
|
let y = "";
|
|
706
719
|
for (let x = 0; x < g; x++) {
|
|
707
|
-
const B =
|
|
720
|
+
const B = de(l);
|
|
708
721
|
if (!B) {
|
|
709
722
|
b(P.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${c}${y}${l.currentChar()}`);
|
|
710
723
|
break;
|
|
@@ -713,23 +726,23 @@ function Cs(e, t = {}) {
|
|
|
713
726
|
}
|
|
714
727
|
return `\\${c}${y}`;
|
|
715
728
|
}
|
|
716
|
-
function
|
|
729
|
+
function Ot(l) {
|
|
717
730
|
return l !== "{" && l !== "}" && l !== ie && l !== Q;
|
|
718
731
|
}
|
|
719
732
|
function Ze(l) {
|
|
720
733
|
S(l);
|
|
721
734
|
let c = "", g = "";
|
|
722
|
-
for (; c = Y(l,
|
|
735
|
+
for (; c = Y(l, Ot); )
|
|
723
736
|
g += c;
|
|
724
737
|
return g;
|
|
725
738
|
}
|
|
726
|
-
function
|
|
739
|
+
function vt(l) {
|
|
727
740
|
let c = "", g = "";
|
|
728
|
-
for (; c =
|
|
741
|
+
for (; c = mt(l); )
|
|
729
742
|
g += c;
|
|
730
743
|
return g;
|
|
731
744
|
}
|
|
732
|
-
function
|
|
745
|
+
function Ct(l) {
|
|
733
746
|
const c = (g) => {
|
|
734
747
|
const y = l.currentChar();
|
|
735
748
|
return y === "{" || y === "@" || y === "|" || y === "(" || y === ")" || !y || y === ie ? g : (g += y, l.next(), c(g));
|
|
@@ -763,7 +776,7 @@ function Cs(e, t = {}) {
|
|
|
763
776
|
/* TokenChars.BraceRight */
|
|
764
777
|
), c.braceNest--, c.braceNest > 0 && S(l), c.inLinked && c.braceNest === 0 && (c.inLinked = !1), g;
|
|
765
778
|
case "@":
|
|
766
|
-
return c.braceNest > 0 && b(P.UNTERMINATED_CLOSING_BRACE, a(), 0), g =
|
|
779
|
+
return c.braceNest > 0 && b(P.UNTERMINATED_CLOSING_BRACE, a(), 0), g = he(l, c) || A(c), c.braceNest = 0, g;
|
|
767
780
|
default: {
|
|
768
781
|
let x = !0, B = !0, U = !0;
|
|
769
782
|
if (X(l))
|
|
@@ -771,11 +784,11 @@ function Cs(e, t = {}) {
|
|
|
771
784
|
if (c.braceNest > 0 && (c.currentType === 4 || c.currentType === 5 || c.currentType === 6))
|
|
772
785
|
return b(P.UNTERMINATED_CLOSING_BRACE, a(), 0), c.braceNest = 0, xe(l, c);
|
|
773
786
|
if (x = h(l, c))
|
|
774
|
-
return g = N(c, 4,
|
|
787
|
+
return g = N(c, 4, bt(l)), S(l), g;
|
|
775
788
|
if (B = E(l, c))
|
|
776
|
-
return g = N(c, 5,
|
|
789
|
+
return g = N(c, 5, ht(l)), S(l), g;
|
|
777
790
|
if (U = O(l, c))
|
|
778
|
-
return g = N(c, 6,
|
|
791
|
+
return g = N(c, 6, fn(l)), S(l), g;
|
|
779
792
|
if (!x && !B && !U)
|
|
780
793
|
return g = N(c, 12, Ze(l)), b(P.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, g.value), S(l), g;
|
|
781
794
|
break;
|
|
@@ -783,7 +796,7 @@ function Cs(e, t = {}) {
|
|
|
783
796
|
}
|
|
784
797
|
return g;
|
|
785
798
|
}
|
|
786
|
-
function
|
|
799
|
+
function he(l, c) {
|
|
787
800
|
const { currentType: g } = c;
|
|
788
801
|
let y = null;
|
|
789
802
|
const x = l.currentChar();
|
|
@@ -810,7 +823,7 @@ function Cs(e, t = {}) {
|
|
|
810
823
|
/* TokenChars.LinkedDelimiter */
|
|
811
824
|
);
|
|
812
825
|
default:
|
|
813
|
-
return X(l) ? (y = N(c, 1, We(l)), c.braceNest = 0, c.inLinked = !1, y) : v(l, c) || k(l, c) ? (S(l),
|
|
826
|
+
return X(l) ? (y = N(c, 1, We(l)), c.braceNest = 0, c.inLinked = !1, y) : v(l, c) || k(l, c) ? (S(l), he(l, c)) : p(l, c) ? (S(l), N(c, 11, vt(l))) : w(l, c) ? (S(l), x === "{" ? Ge(l, c) || y : N(c, 10, Ct(l))) : (g === 7 && b(P.INVALID_LINKED_FORMAT, a(), 0), c.braceNest = 0, c.inLinked = !1, xe(l, c));
|
|
814
827
|
}
|
|
815
828
|
}
|
|
816
829
|
function xe(l, c) {
|
|
@@ -821,7 +834,7 @@ function Cs(e, t = {}) {
|
|
|
821
834
|
if (c.braceNest > 0)
|
|
822
835
|
return Ge(l, c) || A(c);
|
|
823
836
|
if (c.inLinked)
|
|
824
|
-
return
|
|
837
|
+
return he(l, c) || A(c);
|
|
825
838
|
switch (l.currentChar()) {
|
|
826
839
|
case "{":
|
|
827
840
|
return Ge(l, c) || A(c);
|
|
@@ -833,34 +846,34 @@ function Cs(e, t = {}) {
|
|
|
833
846
|
/* TokenChars.BraceRight */
|
|
834
847
|
);
|
|
835
848
|
case "@":
|
|
836
|
-
return
|
|
849
|
+
return he(l, c) || A(c);
|
|
837
850
|
default: {
|
|
838
851
|
if (X(l))
|
|
839
852
|
return g = N(c, 1, We(l)), c.braceNest = 0, c.inLinked = !1, g;
|
|
840
853
|
if (ae(l))
|
|
841
|
-
return N(c, 0,
|
|
854
|
+
return N(c, 0, Tt(l));
|
|
842
855
|
break;
|
|
843
856
|
}
|
|
844
857
|
}
|
|
845
858
|
return g;
|
|
846
859
|
}
|
|
847
|
-
function
|
|
860
|
+
function At() {
|
|
848
861
|
const { currentType: l, offset: c, startLoc: g, endLoc: y } = u;
|
|
849
|
-
return u.lastType = l, u.lastOffset = c, u.lastStartLoc = g, u.lastEndLoc = y, u.offset = s(), u.startLoc = a(), r.currentChar() ===
|
|
862
|
+
return u.lastType = l, u.lastOffset = c, u.lastStartLoc = g, u.lastEndLoc = y, u.offset = s(), u.startLoc = a(), r.currentChar() === Ee ? N(
|
|
850
863
|
u,
|
|
851
864
|
13
|
|
852
865
|
/* TokenTypes.EOF */
|
|
853
866
|
) : xe(r, u);
|
|
854
867
|
}
|
|
855
868
|
return {
|
|
856
|
-
nextToken:
|
|
869
|
+
nextToken: At,
|
|
857
870
|
currentOffset: s,
|
|
858
871
|
currentPosition: a,
|
|
859
872
|
context: d
|
|
860
873
|
};
|
|
861
874
|
}
|
|
862
|
-
const
|
|
863
|
-
function
|
|
875
|
+
const ys = "parser", Ps = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
876
|
+
function Ds(e, t, n) {
|
|
864
877
|
switch (e) {
|
|
865
878
|
case "\\\\":
|
|
866
879
|
return "\\";
|
|
@@ -873,13 +886,13 @@ function ys(e, t, n) {
|
|
|
873
886
|
}
|
|
874
887
|
}
|
|
875
888
|
}
|
|
876
|
-
function
|
|
889
|
+
function ks(e = {}) {
|
|
877
890
|
const t = e.location !== !1, { onError: n } = e;
|
|
878
891
|
function r(f, m, h, E, ...O) {
|
|
879
892
|
const v = f.currentPosition();
|
|
880
893
|
if (v.offset += E, v.column += E, n) {
|
|
881
|
-
const p = t ?
|
|
882
|
-
domain:
|
|
894
|
+
const p = t ? Rt(h, v) : null, k = Ve(m, p, {
|
|
895
|
+
domain: ys,
|
|
883
896
|
args: O
|
|
884
897
|
});
|
|
885
898
|
n(k);
|
|
@@ -906,7 +919,7 @@ function Ps(e = {}) {
|
|
|
906
919
|
}
|
|
907
920
|
function d(f, m) {
|
|
908
921
|
const h = f.context(), { lastOffset: E, lastStartLoc: O } = h, v = s(9, E, O);
|
|
909
|
-
return v.value = m.replace(
|
|
922
|
+
return v.value = m.replace(Ps, Ds), f.nextToken(), a(v, f.currentOffset(), f.currentPosition()), v;
|
|
910
923
|
}
|
|
911
924
|
function I(f) {
|
|
912
925
|
const m = f.nextToken(), h = f.context(), { lastOffset: E, lastStartLoc: O } = h, v = s(8, E, O);
|
|
@@ -999,7 +1012,7 @@ function Ps(e = {}) {
|
|
|
999
1012
|
return m.currentType === 13 ? O : D(f, h, E, O);
|
|
1000
1013
|
}
|
|
1001
1014
|
function S(f) {
|
|
1002
|
-
const m =
|
|
1015
|
+
const m = Ss(f, J({}, e)), h = m.context(), E = s(0, h.offset, h.startLoc);
|
|
1003
1016
|
return t && E.loc && (E.loc.source = f), E.body = C(m), e.onCacheKey && (E.cacheKey = e.onCacheKey(f)), h.currentType !== 13 && r(m, P.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, f[h.offset] || ""), a(E, m.currentOffset(), m.currentPosition()), E;
|
|
1004
1017
|
}
|
|
1005
1018
|
return { parse: S };
|
|
@@ -1010,30 +1023,30 @@ function ce(e) {
|
|
|
1010
1023
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
1011
1024
|
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
1012
1025
|
}
|
|
1013
|
-
function
|
|
1026
|
+
function Rs(e, t = {}) {
|
|
1014
1027
|
const n = {
|
|
1015
1028
|
ast: e,
|
|
1016
1029
|
helpers: /* @__PURE__ */ new Set()
|
|
1017
1030
|
};
|
|
1018
1031
|
return { context: () => n, helper: (a) => (n.helpers.add(a), a) };
|
|
1019
1032
|
}
|
|
1020
|
-
function
|
|
1033
|
+
function Tn(e, t) {
|
|
1021
1034
|
for (let n = 0; n < e.length; n++)
|
|
1022
|
-
|
|
1035
|
+
tn(e[n], t);
|
|
1023
1036
|
}
|
|
1024
|
-
function
|
|
1037
|
+
function tn(e, t) {
|
|
1025
1038
|
switch (e.type) {
|
|
1026
1039
|
case 1:
|
|
1027
|
-
|
|
1040
|
+
Tn(e.cases, t), t.helper(
|
|
1028
1041
|
"plural"
|
|
1029
1042
|
/* HelperNameMap.PLURAL */
|
|
1030
1043
|
);
|
|
1031
1044
|
break;
|
|
1032
1045
|
case 2:
|
|
1033
|
-
|
|
1046
|
+
Tn(e.items, t);
|
|
1034
1047
|
break;
|
|
1035
1048
|
case 6: {
|
|
1036
|
-
|
|
1049
|
+
tn(e.key, t), t.helper(
|
|
1037
1050
|
"linked"
|
|
1038
1051
|
/* HelperNameMap.LINKED */
|
|
1039
1052
|
), t.helper(
|
|
@@ -1062,20 +1075,20 @@ function Zt(e, t) {
|
|
|
1062
1075
|
break;
|
|
1063
1076
|
}
|
|
1064
1077
|
}
|
|
1065
|
-
function
|
|
1066
|
-
const n =
|
|
1078
|
+
function Ms(e, t = {}) {
|
|
1079
|
+
const n = Rs(e);
|
|
1067
1080
|
n.helper(
|
|
1068
1081
|
"normalize"
|
|
1069
1082
|
/* HelperNameMap.NORMALIZE */
|
|
1070
|
-
), e.body &&
|
|
1083
|
+
), e.body && tn(e.body, n);
|
|
1071
1084
|
const r = n.context();
|
|
1072
1085
|
e.helpers = Array.from(r.helpers);
|
|
1073
1086
|
}
|
|
1074
|
-
function
|
|
1087
|
+
function Fs(e) {
|
|
1075
1088
|
const t = e.body;
|
|
1076
|
-
return t.type === 2 ?
|
|
1089
|
+
return t.type === 2 ? bn(t) : t.cases.forEach((n) => bn(n)), e;
|
|
1077
1090
|
}
|
|
1078
|
-
function
|
|
1091
|
+
function bn(e) {
|
|
1079
1092
|
if (e.items.length === 1) {
|
|
1080
1093
|
const t = e.items[0];
|
|
1081
1094
|
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
@@ -1088,7 +1101,7 @@ function gn(e) {
|
|
|
1088
1101
|
t.push(r.value);
|
|
1089
1102
|
}
|
|
1090
1103
|
if (t.length === e.items.length) {
|
|
1091
|
-
e.static =
|
|
1104
|
+
e.static = zt(t);
|
|
1092
1105
|
for (let n = 0; n < e.items.length; n++) {
|
|
1093
1106
|
const r = e.items[n];
|
|
1094
1107
|
(r.type === 3 || r.type === 9) && delete r.value;
|
|
@@ -1096,7 +1109,7 @@ function gn(e) {
|
|
|
1096
1109
|
}
|
|
1097
1110
|
}
|
|
1098
1111
|
}
|
|
1099
|
-
const
|
|
1112
|
+
const Us = "minifier";
|
|
1100
1113
|
function Re(e) {
|
|
1101
1114
|
switch (e.t = e.type, e.type) {
|
|
1102
1115
|
case 0: {
|
|
@@ -1144,14 +1157,14 @@ function Re(e) {
|
|
|
1144
1157
|
default:
|
|
1145
1158
|
if (process.env.NODE_ENV !== "production")
|
|
1146
1159
|
throw Ve(P.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
1147
|
-
domain:
|
|
1160
|
+
domain: Us,
|
|
1148
1161
|
args: [e.type]
|
|
1149
1162
|
});
|
|
1150
1163
|
}
|
|
1151
1164
|
delete e.type;
|
|
1152
1165
|
}
|
|
1153
|
-
const
|
|
1154
|
-
function
|
|
1166
|
+
const ws = "parser";
|
|
1167
|
+
function Vs(e, t) {
|
|
1155
1168
|
const { filename: n, breakLineCode: r, needIndent: s } = t, a = t.location !== !1, o = {
|
|
1156
1169
|
filename: n,
|
|
1157
1170
|
code: "",
|
|
@@ -1193,14 +1206,14 @@ function Us(e, t) {
|
|
|
1193
1206
|
needIndent: () => o.needIndent
|
|
1194
1207
|
};
|
|
1195
1208
|
}
|
|
1196
|
-
function
|
|
1209
|
+
function $s(e, t) {
|
|
1197
1210
|
const { helper: n } = e;
|
|
1198
1211
|
e.push(`${n(
|
|
1199
1212
|
"linked"
|
|
1200
1213
|
/* HelperNameMap.LINKED */
|
|
1201
1214
|
)}(`), Ue(e, t.key), t.modifier ? (e.push(", "), Ue(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
1202
1215
|
}
|
|
1203
|
-
function
|
|
1216
|
+
function Ws(e, t) {
|
|
1204
1217
|
const { helper: n, needIndent: r } = e;
|
|
1205
1218
|
e.push(`${n(
|
|
1206
1219
|
"normalize"
|
|
@@ -1211,7 +1224,7 @@ function Vs(e, t) {
|
|
|
1211
1224
|
e.push(", ");
|
|
1212
1225
|
e.deindent(r()), e.push("])");
|
|
1213
1226
|
}
|
|
1214
|
-
function
|
|
1227
|
+
function Gs(e, t) {
|
|
1215
1228
|
const { helper: n, needIndent: r } = e;
|
|
1216
1229
|
if (t.cases.length > 1) {
|
|
1217
1230
|
e.push(`${n(
|
|
@@ -1224,23 +1237,23 @@ function $s(e, t) {
|
|
|
1224
1237
|
e.deindent(r()), e.push("])");
|
|
1225
1238
|
}
|
|
1226
1239
|
}
|
|
1227
|
-
function
|
|
1240
|
+
function xs(e, t) {
|
|
1228
1241
|
t.body ? Ue(e, t.body) : e.push("null");
|
|
1229
1242
|
}
|
|
1230
1243
|
function Ue(e, t) {
|
|
1231
1244
|
const { helper: n } = e;
|
|
1232
1245
|
switch (t.type) {
|
|
1233
1246
|
case 0:
|
|
1234
|
-
|
|
1247
|
+
xs(e, t);
|
|
1235
1248
|
break;
|
|
1236
1249
|
case 1:
|
|
1237
|
-
|
|
1250
|
+
Gs(e, t);
|
|
1238
1251
|
break;
|
|
1239
1252
|
case 2:
|
|
1240
|
-
|
|
1253
|
+
Ws(e, t);
|
|
1241
1254
|
break;
|
|
1242
1255
|
case 6:
|
|
1243
|
-
|
|
1256
|
+
$s(e, t);
|
|
1244
1257
|
break;
|
|
1245
1258
|
case 8:
|
|
1246
1259
|
e.push(JSON.stringify(t.value), t);
|
|
@@ -1275,21 +1288,21 @@ function Ue(e, t) {
|
|
|
1275
1288
|
default:
|
|
1276
1289
|
if (process.env.NODE_ENV !== "production")
|
|
1277
1290
|
throw Ve(P.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
1278
|
-
domain:
|
|
1291
|
+
domain: ws,
|
|
1279
1292
|
args: [t.type]
|
|
1280
1293
|
});
|
|
1281
1294
|
}
|
|
1282
1295
|
}
|
|
1283
|
-
const
|
|
1296
|
+
const Hs = (e, t = {}) => {
|
|
1284
1297
|
const n = L(t.mode) ? t.mode : "normal", r = L(t.filename) ? t.filename : "message.intl";
|
|
1285
1298
|
t.sourceMap;
|
|
1286
1299
|
const s = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
1287
|
-
`, a = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], i =
|
|
1300
|
+
`, a = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], i = Vs(e, {
|
|
1288
1301
|
filename: r,
|
|
1289
1302
|
breakLineCode: s,
|
|
1290
1303
|
needIndent: a
|
|
1291
1304
|
});
|
|
1292
|
-
i.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), i.indent(a), o.length > 0 && (i.push(`const { ${
|
|
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 "), Ue(i, e), i.deindent(a), i.push("}"), delete e.helpers;
|
|
1293
1306
|
const { code: u, map: d } = i.context();
|
|
1294
1307
|
return {
|
|
1295
1308
|
ast: e,
|
|
@@ -1298,50 +1311,50 @@ const Gs = (e, t = {}) => {
|
|
|
1298
1311
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1299
1312
|
};
|
|
1300
1313
|
};
|
|
1301
|
-
function
|
|
1302
|
-
const n = J({}, t), r = !!n.jit, s = !!n.minify, a = n.optimize == null ? !0 : n.optimize, i =
|
|
1303
|
-
return r ? (a &&
|
|
1314
|
+
function Ys(e, t = {}) {
|
|
1315
|
+
const n = J({}, t), r = !!n.jit, s = !!n.minify, a = n.optimize == null ? !0 : n.optimize, i = ks(n).parse(e);
|
|
1316
|
+
return r ? (a && Fs(i), s && Re(i), { ast: i, code: "" }) : (Ms(i, n), Hs(i, n));
|
|
1304
1317
|
}
|
|
1305
|
-
function
|
|
1306
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (
|
|
1318
|
+
function Bs() {
|
|
1319
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (ve().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (ve().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
1307
1320
|
}
|
|
1308
1321
|
function se(e) {
|
|
1309
|
-
return M(e) &&
|
|
1322
|
+
return M(e) && nn(e) === 0 && (oe(e, "b") || oe(e, "body"));
|
|
1310
1323
|
}
|
|
1311
|
-
const
|
|
1312
|
-
function Ys(e) {
|
|
1313
|
-
return Ne(e, tr);
|
|
1314
|
-
}
|
|
1315
|
-
const nr = ["c", "cases"];
|
|
1316
|
-
function Bs(e) {
|
|
1317
|
-
return Ne(e, nr, []);
|
|
1318
|
-
}
|
|
1319
|
-
const rr = ["s", "static"];
|
|
1324
|
+
const rr = ["b", "body"];
|
|
1320
1325
|
function Ks(e) {
|
|
1321
|
-
return
|
|
1326
|
+
return Te(e, rr);
|
|
1322
1327
|
}
|
|
1323
|
-
const sr = ["
|
|
1328
|
+
const sr = ["c", "cases"];
|
|
1324
1329
|
function js(e) {
|
|
1325
|
-
return
|
|
1330
|
+
return Te(e, sr, []);
|
|
1326
1331
|
}
|
|
1327
|
-
const ar = ["
|
|
1328
|
-
function
|
|
1329
|
-
return
|
|
1332
|
+
const ar = ["s", "static"];
|
|
1333
|
+
function Xs(e) {
|
|
1334
|
+
return Te(e, ar);
|
|
1330
1335
|
}
|
|
1331
|
-
const or = ["
|
|
1336
|
+
const or = ["i", "items"];
|
|
1337
|
+
function Js(e) {
|
|
1338
|
+
return Te(e, or, []);
|
|
1339
|
+
}
|
|
1340
|
+
const lr = ["t", "type"];
|
|
1341
|
+
function nn(e) {
|
|
1342
|
+
return Te(e, lr);
|
|
1343
|
+
}
|
|
1344
|
+
const ir = ["v", "value"];
|
|
1332
1345
|
function tt(e, t) {
|
|
1333
|
-
const n =
|
|
1346
|
+
const n = Te(e, ir);
|
|
1334
1347
|
if (n != null)
|
|
1335
1348
|
return n;
|
|
1336
1349
|
throw Be(t);
|
|
1337
1350
|
}
|
|
1338
|
-
const
|
|
1339
|
-
function
|
|
1340
|
-
return
|
|
1351
|
+
const cr = ["m", "modifier"];
|
|
1352
|
+
function Qs(e) {
|
|
1353
|
+
return Te(e, cr);
|
|
1341
1354
|
}
|
|
1342
|
-
const
|
|
1343
|
-
function
|
|
1344
|
-
const t =
|
|
1355
|
+
const ur = ["k", "key"];
|
|
1356
|
+
function qs(e) {
|
|
1357
|
+
const t = Te(e, ur);
|
|
1345
1358
|
if (t)
|
|
1346
1359
|
return t;
|
|
1347
1360
|
throw Be(
|
|
@@ -1349,7 +1362,7 @@ function Js(e) {
|
|
|
1349
1362
|
/* NodeTypes.Linked */
|
|
1350
1363
|
);
|
|
1351
1364
|
}
|
|
1352
|
-
function
|
|
1365
|
+
function Te(e, t, n) {
|
|
1353
1366
|
for (let r = 0; r < t.length; r++) {
|
|
1354
1367
|
const s = t[r];
|
|
1355
1368
|
if (oe(e, s) && e[s] != null)
|
|
@@ -1357,49 +1370,49 @@ function Ne(e, t, n) {
|
|
|
1357
1370
|
}
|
|
1358
1371
|
return n;
|
|
1359
1372
|
}
|
|
1360
|
-
const
|
|
1361
|
-
...tr,
|
|
1362
|
-
...nr,
|
|
1373
|
+
const fr = [
|
|
1363
1374
|
...rr,
|
|
1364
1375
|
...sr,
|
|
1365
|
-
...
|
|
1366
|
-
...lr,
|
|
1376
|
+
...ar,
|
|
1367
1377
|
...or,
|
|
1368
|
-
...
|
|
1378
|
+
...ur,
|
|
1379
|
+
...cr,
|
|
1380
|
+
...ir,
|
|
1381
|
+
...lr
|
|
1369
1382
|
];
|
|
1370
1383
|
function Be(e) {
|
|
1371
1384
|
return new Error(`unhandled node type: ${e}`);
|
|
1372
1385
|
}
|
|
1373
|
-
function
|
|
1374
|
-
return (n) =>
|
|
1386
|
+
function yt(e) {
|
|
1387
|
+
return (n) => Zs(n, e);
|
|
1375
1388
|
}
|
|
1376
|
-
function
|
|
1377
|
-
const n =
|
|
1389
|
+
function Zs(e, t) {
|
|
1390
|
+
const n = Ks(t);
|
|
1378
1391
|
if (n == null)
|
|
1379
1392
|
throw Be(
|
|
1380
1393
|
0
|
|
1381
1394
|
/* NodeTypes.Resource */
|
|
1382
1395
|
);
|
|
1383
|
-
if (
|
|
1384
|
-
const a =
|
|
1396
|
+
if (nn(n) === 1) {
|
|
1397
|
+
const a = js(n);
|
|
1385
1398
|
return e.plural(a.reduce((o, i) => [
|
|
1386
1399
|
...o,
|
|
1387
|
-
|
|
1400
|
+
hn(e, i)
|
|
1388
1401
|
], []));
|
|
1389
1402
|
} else
|
|
1390
|
-
return
|
|
1403
|
+
return hn(e, n);
|
|
1391
1404
|
}
|
|
1392
|
-
function
|
|
1393
|
-
const n =
|
|
1405
|
+
function hn(e, t) {
|
|
1406
|
+
const n = Xs(t);
|
|
1394
1407
|
if (n != null)
|
|
1395
1408
|
return e.type === "text" ? n : e.normalize([n]);
|
|
1396
1409
|
{
|
|
1397
|
-
const r =
|
|
1410
|
+
const r = Js(t).reduce((s, a) => [...s, Mt(e, a)], []);
|
|
1398
1411
|
return e.normalize(r);
|
|
1399
1412
|
}
|
|
1400
1413
|
}
|
|
1401
|
-
function
|
|
1402
|
-
const n =
|
|
1414
|
+
function Mt(e, t) {
|
|
1415
|
+
const n = nn(t);
|
|
1403
1416
|
switch (n) {
|
|
1404
1417
|
case 3:
|
|
1405
1418
|
return tt(t, n);
|
|
@@ -1422,8 +1435,8 @@ function Rt(e, t) {
|
|
|
1422
1435
|
throw Be(n);
|
|
1423
1436
|
}
|
|
1424
1437
|
case 6: {
|
|
1425
|
-
const r = t, s =
|
|
1426
|
-
return e.linked(
|
|
1438
|
+
const r = t, s = Qs(r), a = qs(r);
|
|
1439
|
+
return e.linked(Mt(e, a), s ? Mt(e, s) : void 0, e.type);
|
|
1427
1440
|
}
|
|
1428
1441
|
case 7:
|
|
1429
1442
|
return tt(t, n);
|
|
@@ -1433,49 +1446,49 @@ function Rt(e, t) {
|
|
|
1433
1446
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1434
1447
|
}
|
|
1435
1448
|
}
|
|
1436
|
-
const
|
|
1437
|
-
function
|
|
1438
|
-
t &&
|
|
1449
|
+
const zs = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
1450
|
+
function ea(e, t) {
|
|
1451
|
+
t && hs(e) && fe(ct(zs, { source: e }));
|
|
1439
1452
|
}
|
|
1440
|
-
const
|
|
1453
|
+
const ta = (e) => e;
|
|
1441
1454
|
let nt = $();
|
|
1442
|
-
function
|
|
1455
|
+
function na(e, t = {}) {
|
|
1443
1456
|
let n = !1;
|
|
1444
|
-
const r = t.onError ||
|
|
1457
|
+
const r = t.onError || Ts;
|
|
1445
1458
|
return t.onError = (s) => {
|
|
1446
1459
|
n = !0, r(s);
|
|
1447
|
-
}, { ...
|
|
1460
|
+
}, { ...Ys(e, t), detectError: n };
|
|
1448
1461
|
}
|
|
1449
1462
|
// @__NO_SIDE_EFFECTS__
|
|
1450
|
-
function
|
|
1463
|
+
function ra(e, t) {
|
|
1451
1464
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && L(e)) {
|
|
1452
1465
|
const n = F(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
1453
|
-
process.env.NODE_ENV !== "production" &&
|
|
1454
|
-
const s = (t.onCacheKey ||
|
|
1466
|
+
process.env.NODE_ENV !== "production" && ea(e, n);
|
|
1467
|
+
const s = (t.onCacheKey || ta)(e), a = nt[s];
|
|
1455
1468
|
if (a)
|
|
1456
1469
|
return a;
|
|
1457
|
-
const { ast: o, detectError: i } =
|
|
1470
|
+
const { ast: o, detectError: i } = na(e, {
|
|
1458
1471
|
...t,
|
|
1459
1472
|
location: process.env.NODE_ENV !== "production",
|
|
1460
1473
|
jit: !0
|
|
1461
|
-
}), u =
|
|
1474
|
+
}), u = yt(o);
|
|
1462
1475
|
return i ? u : nt[s] = u;
|
|
1463
1476
|
} else {
|
|
1464
1477
|
if (process.env.NODE_ENV !== "production" && !se(e))
|
|
1465
|
-
return
|
|
1478
|
+
return fe(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), (() => e);
|
|
1466
1479
|
const n = e.cacheKey;
|
|
1467
1480
|
if (n) {
|
|
1468
1481
|
const r = nt[n];
|
|
1469
|
-
return r || (nt[n] =
|
|
1482
|
+
return r || (nt[n] = yt(e));
|
|
1470
1483
|
} else
|
|
1471
|
-
return
|
|
1484
|
+
return yt(e);
|
|
1472
1485
|
}
|
|
1473
1486
|
}
|
|
1474
1487
|
let Ke = null;
|
|
1475
|
-
function
|
|
1488
|
+
function sa(e) {
|
|
1476
1489
|
Ke = e;
|
|
1477
1490
|
}
|
|
1478
|
-
function
|
|
1491
|
+
function aa(e, t, n) {
|
|
1479
1492
|
Ke && Ke.emit("i18n:init", {
|
|
1480
1493
|
timestamp: Date.now(),
|
|
1481
1494
|
i18n: e,
|
|
@@ -1483,12 +1496,12 @@ function ra(e, t, n) {
|
|
|
1483
1496
|
meta: n
|
|
1484
1497
|
});
|
|
1485
1498
|
}
|
|
1486
|
-
const
|
|
1487
|
-
function
|
|
1499
|
+
const oa = /* @__PURE__ */ la("function:translate");
|
|
1500
|
+
function la(e) {
|
|
1488
1501
|
return (t) => Ke && Ke.emit(e, t);
|
|
1489
1502
|
}
|
|
1490
1503
|
const q = {
|
|
1491
|
-
INVALID_ARGUMENT:
|
|
1504
|
+
INVALID_ARGUMENT: gs,
|
|
1492
1505
|
// 17
|
|
1493
1506
|
INVALID_DATE_ARGUMENT: 18,
|
|
1494
1507
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1496,11 +1509,11 @@ const q = {
|
|
|
1496
1509
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1497
1510
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1498
1511
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1499
|
-
},
|
|
1500
|
-
function
|
|
1501
|
-
return Ve(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
1512
|
+
}, ia = 24;
|
|
1513
|
+
function pe(e) {
|
|
1514
|
+
return Ve(e, null, process.env.NODE_ENV !== "production" ? { messages: ca } : void 0);
|
|
1502
1515
|
}
|
|
1503
|
-
const
|
|
1516
|
+
const ca = {
|
|
1504
1517
|
[q.INVALID_ARGUMENT]: "Invalid arguments",
|
|
1505
1518
|
[q.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
1506
1519
|
[q.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
@@ -1509,33 +1522,33 @@ const la = {
|
|
|
1509
1522
|
[q.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
|
|
1510
1523
|
[q.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
|
|
1511
1524
|
};
|
|
1512
|
-
function
|
|
1513
|
-
return t.locale != null ?
|
|
1525
|
+
function rn(e, t) {
|
|
1526
|
+
return t.locale != null ? In(t.locale) : In(e.locale);
|
|
1514
1527
|
}
|
|
1515
|
-
let
|
|
1516
|
-
function
|
|
1528
|
+
let Pt;
|
|
1529
|
+
function In(e) {
|
|
1517
1530
|
if (L(e))
|
|
1518
1531
|
return e;
|
|
1519
1532
|
if (W(e)) {
|
|
1520
|
-
if (e.resolvedOnce &&
|
|
1521
|
-
return
|
|
1533
|
+
if (e.resolvedOnce && Pt != null)
|
|
1534
|
+
return Pt;
|
|
1522
1535
|
if (e.constructor.name === "Function") {
|
|
1523
1536
|
const t = e();
|
|
1524
|
-
if (
|
|
1525
|
-
throw
|
|
1526
|
-
return
|
|
1537
|
+
if (ms(t))
|
|
1538
|
+
throw pe(q.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1539
|
+
return Pt = t;
|
|
1527
1540
|
} else
|
|
1528
|
-
throw
|
|
1541
|
+
throw pe(q.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1529
1542
|
} else
|
|
1530
|
-
throw
|
|
1543
|
+
throw pe(q.NOT_SUPPORT_LOCALE_TYPE);
|
|
1531
1544
|
}
|
|
1532
|
-
function
|
|
1545
|
+
function ua(e, t, n) {
|
|
1533
1546
|
return [.../* @__PURE__ */ new Set([
|
|
1534
1547
|
n,
|
|
1535
1548
|
...H(t) ? t : M(t) ? Object.keys(t) : L(t) ? [t] : [n]
|
|
1536
1549
|
])];
|
|
1537
1550
|
}
|
|
1538
|
-
function
|
|
1551
|
+
function _r(e, t, n) {
|
|
1539
1552
|
const r = L(n) ? n : je, s = e;
|
|
1540
1553
|
s.__localeChainCache || (s.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1541
1554
|
let a = s.__localeChainCache.get(r);
|
|
@@ -1543,30 +1556,30 @@ function ur(e, t, n) {
|
|
|
1543
1556
|
a = [];
|
|
1544
1557
|
let o = [n];
|
|
1545
1558
|
for (; H(o); )
|
|
1546
|
-
o =
|
|
1559
|
+
o = Ln(a, o, t);
|
|
1547
1560
|
const i = H(t) || !R(t) ? t : t.default ? t.default : null;
|
|
1548
|
-
o = L(i) ? [i] : i, H(o) &&
|
|
1561
|
+
o = L(i) ? [i] : i, H(o) && Ln(a, o, !1), s.__localeChainCache.set(r, a);
|
|
1549
1562
|
}
|
|
1550
1563
|
return a;
|
|
1551
1564
|
}
|
|
1552
|
-
function
|
|
1565
|
+
function Ln(e, t, n) {
|
|
1553
1566
|
let r = !0;
|
|
1554
1567
|
for (let s = 0; s < t.length && F(r); s++) {
|
|
1555
1568
|
const a = t[s];
|
|
1556
|
-
L(a) && (r =
|
|
1569
|
+
L(a) && (r = fa(e, t[s], n));
|
|
1557
1570
|
}
|
|
1558
1571
|
return r;
|
|
1559
1572
|
}
|
|
1560
|
-
function
|
|
1573
|
+
function fa(e, t, n) {
|
|
1561
1574
|
let r;
|
|
1562
1575
|
const s = t.split("-");
|
|
1563
1576
|
do {
|
|
1564
1577
|
const a = s.join("-");
|
|
1565
|
-
r =
|
|
1578
|
+
r = _a(e, a, n), s.splice(-1, 1);
|
|
1566
1579
|
} while (s.length && r === !0);
|
|
1567
1580
|
return r;
|
|
1568
1581
|
}
|
|
1569
|
-
function
|
|
1582
|
+
function _a(e, t, n) {
|
|
1570
1583
|
let r = !1;
|
|
1571
1584
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1572
1585
|
r = t[t.length - 1] !== "!";
|
|
@@ -1575,8 +1588,8 @@ function ua(e, t, n) {
|
|
|
1575
1588
|
}
|
|
1576
1589
|
return r;
|
|
1577
1590
|
}
|
|
1578
|
-
const
|
|
1579
|
-
|
|
1591
|
+
const be = [];
|
|
1592
|
+
be[
|
|
1580
1593
|
0
|
|
1581
1594
|
/* States.BEFORE_PATH */
|
|
1582
1595
|
] = {
|
|
@@ -1598,7 +1611,7 @@ Te[
|
|
|
1598
1611
|
/* States.AFTER_PATH */
|
|
1599
1612
|
]
|
|
1600
1613
|
};
|
|
1601
|
-
|
|
1614
|
+
be[
|
|
1602
1615
|
1
|
|
1603
1616
|
/* States.IN_PATH */
|
|
1604
1617
|
] = {
|
|
@@ -1619,7 +1632,7 @@ Te[
|
|
|
1619
1632
|
/* States.AFTER_PATH */
|
|
1620
1633
|
]
|
|
1621
1634
|
};
|
|
1622
|
-
|
|
1635
|
+
be[
|
|
1623
1636
|
2
|
|
1624
1637
|
/* States.BEFORE_IDENT */
|
|
1625
1638
|
] = {
|
|
@@ -1638,7 +1651,7 @@ Te[
|
|
|
1638
1651
|
/* Actions.APPEND */
|
|
1639
1652
|
]
|
|
1640
1653
|
};
|
|
1641
|
-
|
|
1654
|
+
be[
|
|
1642
1655
|
3
|
|
1643
1656
|
/* States.IN_IDENT */
|
|
1644
1657
|
] = {
|
|
@@ -1673,7 +1686,7 @@ Te[
|
|
|
1673
1686
|
/* Actions.PUSH */
|
|
1674
1687
|
]
|
|
1675
1688
|
};
|
|
1676
|
-
|
|
1689
|
+
be[
|
|
1677
1690
|
4
|
|
1678
1691
|
/* States.IN_SUB_PATH */
|
|
1679
1692
|
] = {
|
|
@@ -1704,7 +1717,7 @@ Te[
|
|
|
1704
1717
|
/* Actions.APPEND */
|
|
1705
1718
|
]
|
|
1706
1719
|
};
|
|
1707
|
-
|
|
1720
|
+
be[
|
|
1708
1721
|
5
|
|
1709
1722
|
/* States.IN_SINGLE_QUOTE */
|
|
1710
1723
|
] = {
|
|
@@ -1720,7 +1733,7 @@ Te[
|
|
|
1720
1733
|
/* Actions.APPEND */
|
|
1721
1734
|
]
|
|
1722
1735
|
};
|
|
1723
|
-
|
|
1736
|
+
be[
|
|
1724
1737
|
6
|
|
1725
1738
|
/* States.IN_DOUBLE_QUOTE */
|
|
1726
1739
|
] = {
|
|
@@ -1736,15 +1749,15 @@ Te[
|
|
|
1736
1749
|
/* Actions.APPEND */
|
|
1737
1750
|
]
|
|
1738
1751
|
};
|
|
1739
|
-
const
|
|
1740
|
-
function
|
|
1741
|
-
return
|
|
1752
|
+
const ma = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1753
|
+
function da(e) {
|
|
1754
|
+
return ma.test(e);
|
|
1742
1755
|
}
|
|
1743
|
-
function
|
|
1756
|
+
function Ea(e) {
|
|
1744
1757
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1745
1758
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1746
1759
|
}
|
|
1747
|
-
function
|
|
1760
|
+
function pa(e) {
|
|
1748
1761
|
if (e == null)
|
|
1749
1762
|
return "o";
|
|
1750
1763
|
switch (e.charCodeAt(0)) {
|
|
@@ -1781,11 +1794,11 @@ function da(e) {
|
|
|
1781
1794
|
}
|
|
1782
1795
|
return "i";
|
|
1783
1796
|
}
|
|
1784
|
-
function
|
|
1797
|
+
function ga(e) {
|
|
1785
1798
|
const t = e.trim();
|
|
1786
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1799
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : da(t) ? Ea(t) : "*" + t;
|
|
1787
1800
|
}
|
|
1788
|
-
function
|
|
1801
|
+
function Na(e) {
|
|
1789
1802
|
const t = [];
|
|
1790
1803
|
let n = -1, r = 0, s = 0, a, o, i, u, d, I, b;
|
|
1791
1804
|
const N = [];
|
|
@@ -1817,7 +1830,7 @@ function pa(e) {
|
|
|
1817
1830
|
/* Actions.APPEND */
|
|
1818
1831
|
]();
|
|
1819
1832
|
else {
|
|
1820
|
-
if (s = 0, o === void 0 || (o =
|
|
1833
|
+
if (s = 0, o === void 0 || (o = ga(o), o === !1))
|
|
1821
1834
|
return !1;
|
|
1822
1835
|
N[
|
|
1823
1836
|
1
|
|
@@ -1835,27 +1848,27 @@ function pa(e) {
|
|
|
1835
1848
|
}
|
|
1836
1849
|
for (; r !== null; )
|
|
1837
1850
|
if (n++, a = e[n], !(a === "\\" && A())) {
|
|
1838
|
-
if (u =
|
|
1851
|
+
if (u = pa(a), b = be[r], d = b[u] || b.l || 8, d === 8 || (r = d[0], d[1] !== void 0 && (I = N[d[1]], I && (i = a, I() === !1))))
|
|
1839
1852
|
return;
|
|
1840
1853
|
if (r === 7)
|
|
1841
1854
|
return t;
|
|
1842
1855
|
}
|
|
1843
1856
|
}
|
|
1844
|
-
const
|
|
1845
|
-
function
|
|
1857
|
+
const On = /* @__PURE__ */ new Map();
|
|
1858
|
+
function Ta(e, t) {
|
|
1846
1859
|
return M(e) ? e[t] : null;
|
|
1847
1860
|
}
|
|
1848
|
-
function
|
|
1861
|
+
function ba(e, t) {
|
|
1849
1862
|
if (!M(e))
|
|
1850
1863
|
return null;
|
|
1851
|
-
let n =
|
|
1852
|
-
if (n || (n =
|
|
1864
|
+
let n = On.get(t);
|
|
1865
|
+
if (n || (n = Na(t), n && On.set(t, n)), !n)
|
|
1853
1866
|
return null;
|
|
1854
1867
|
const r = n.length;
|
|
1855
1868
|
let s = e, a = 0;
|
|
1856
1869
|
for (; a < r; ) {
|
|
1857
1870
|
const o = n[a];
|
|
1858
|
-
if (
|
|
1871
|
+
if (fr.includes(o) && se(s))
|
|
1859
1872
|
return null;
|
|
1860
1873
|
const i = s[o];
|
|
1861
1874
|
if (i === void 0 || W(s))
|
|
@@ -1872,7 +1885,7 @@ const Z = {
|
|
|
1872
1885
|
CANNOT_FORMAT_DATE: 5,
|
|
1873
1886
|
FALLBACK_TO_DATE_FORMAT: 6,
|
|
1874
1887
|
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
|
|
1875
|
-
},
|
|
1888
|
+
}, ha = 8, Ia = {
|
|
1876
1889
|
[Z.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
1877
1890
|
[Z.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
1878
1891
|
[Z.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
@@ -1882,45 +1895,45 @@ const Z = {
|
|
|
1882
1895
|
[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."
|
|
1883
1896
|
};
|
|
1884
1897
|
function Se(e, ...t) {
|
|
1885
|
-
return
|
|
1898
|
+
return ct(Ia[e], ...t);
|
|
1886
1899
|
}
|
|
1887
|
-
const
|
|
1888
|
-
function
|
|
1900
|
+
const La = "11.2.8", ft = -1, je = "en-US", st = "", vn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1901
|
+
function Oa() {
|
|
1889
1902
|
return {
|
|
1890
1903
|
upper: (e, t) => t === "text" && L(e) ? e.toUpperCase() : t === "vnode" && M(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1891
1904
|
lower: (e, t) => t === "text" && L(e) ? e.toLowerCase() : t === "vnode" && M(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1892
|
-
capitalize: (e, t) => t === "text" && L(e) ?
|
|
1905
|
+
capitalize: (e, t) => t === "text" && L(e) ? vn(e) : t === "vnode" && M(e) && "__v_isVNode" in e ? vn(e.children) : e
|
|
1893
1906
|
};
|
|
1894
1907
|
}
|
|
1895
|
-
let fr;
|
|
1896
|
-
function La(e) {
|
|
1897
|
-
fr = e;
|
|
1898
|
-
}
|
|
1899
|
-
let _r;
|
|
1900
|
-
function Oa(e) {
|
|
1901
|
-
_r = e;
|
|
1902
|
-
}
|
|
1903
1908
|
let mr;
|
|
1904
1909
|
function va(e) {
|
|
1905
1910
|
mr = e;
|
|
1906
1911
|
}
|
|
1907
|
-
let dr
|
|
1908
|
-
|
|
1912
|
+
let dr;
|
|
1913
|
+
function Ca(e) {
|
|
1909
1914
|
dr = e;
|
|
1910
|
-
}
|
|
1911
|
-
let Er
|
|
1912
|
-
|
|
1915
|
+
}
|
|
1916
|
+
let Er;
|
|
1917
|
+
function Aa(e) {
|
|
1913
1918
|
Er = e;
|
|
1914
|
-
}
|
|
1915
|
-
let
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1919
|
+
}
|
|
1920
|
+
let pr = null;
|
|
1921
|
+
const Sa = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1922
|
+
pr = e;
|
|
1923
|
+
}, ya = /* @__NO_SIDE_EFFECTS__ */ () => pr;
|
|
1924
|
+
let gr = null;
|
|
1925
|
+
const Cn = (e) => {
|
|
1926
|
+
gr = e;
|
|
1927
|
+
}, Pa = () => gr;
|
|
1928
|
+
let An = 0;
|
|
1929
|
+
function Da(e = {}) {
|
|
1930
|
+
const t = W(e.onWarn) ? e.onWarn : fe, n = L(e.version) ? e.version : La, 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), d = J($(), e.modifiers, Oa()), I = e.pluralRules || $(), b = W(e.missing) ? e.missing : null, N = F(e.missingWarn) || Fe(e.missingWarn) ? e.missingWarn : !0, A = F(e.fallbackWarn) || Fe(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, E = W(e.messageCompiler) ? e.messageCompiler : mr;
|
|
1931
|
+
process.env.NODE_ENV !== "production" && W(e.messageCompiler) && qt(Se(Z.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1932
|
+
const O = W(e.messageResolver) ? e.messageResolver : dr || Ta, v = W(e.localeFallbacker) ? e.localeFallbacker : Er || ua, 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
|
+
An++;
|
|
1921
1934
|
const Y = {
|
|
1922
1935
|
version: n,
|
|
1923
|
-
cid:
|
|
1936
|
+
cid: An,
|
|
1924
1937
|
locale: r,
|
|
1925
1938
|
fallbackLocale: a,
|
|
1926
1939
|
messages: o,
|
|
@@ -1942,16 +1955,16 @@ function ya(e = {}) {
|
|
|
1942
1955
|
onWarn: t,
|
|
1943
1956
|
__meta: ae
|
|
1944
1957
|
};
|
|
1945
|
-
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__) &&
|
|
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__) && aa(Y, n, ae), Y;
|
|
1946
1959
|
}
|
|
1947
|
-
const
|
|
1948
|
-
function
|
|
1960
|
+
const Dt = (e) => ({ [e]: $() });
|
|
1961
|
+
function _t(e, t) {
|
|
1949
1962
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1950
1963
|
}
|
|
1951
|
-
function
|
|
1964
|
+
function Nr(e, t) {
|
|
1952
1965
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1953
1966
|
}
|
|
1954
|
-
function
|
|
1967
|
+
function sn(e, t, n, r, s) {
|
|
1955
1968
|
const { missing: a, onWarn: o } = e;
|
|
1956
1969
|
if (process.env.NODE_ENV !== "production") {
|
|
1957
1970
|
const i = e.__v_emitter;
|
|
@@ -1966,33 +1979,33 @@ function tn(e, t, n, r, s) {
|
|
|
1966
1979
|
const i = a(e, n, t, s);
|
|
1967
1980
|
return L(i) ? i : t;
|
|
1968
1981
|
} else
|
|
1969
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1982
|
+
return process.env.NODE_ENV !== "production" && Nr(r, t) && o(Se(Z.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
1970
1983
|
}
|
|
1971
1984
|
function Ye(e, t, n) {
|
|
1972
1985
|
const r = e;
|
|
1973
1986
|
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1974
1987
|
}
|
|
1975
|
-
function
|
|
1988
|
+
function Tr(e, t) {
|
|
1976
1989
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1977
1990
|
}
|
|
1978
|
-
function
|
|
1991
|
+
function ka(e, t) {
|
|
1979
1992
|
const n = t.indexOf(e);
|
|
1980
1993
|
if (n === -1)
|
|
1981
1994
|
return !1;
|
|
1982
1995
|
for (let r = n + 1; r < t.length; r++)
|
|
1983
|
-
if (
|
|
1996
|
+
if (Tr(e, t[r]))
|
|
1984
1997
|
return !0;
|
|
1985
1998
|
return !1;
|
|
1986
1999
|
}
|
|
1987
|
-
const
|
|
1988
|
-
dateTimeFormat:
|
|
1989
|
-
numberFormat:
|
|
2000
|
+
const Sn = typeof Intl < "u", br = {
|
|
2001
|
+
dateTimeFormat: Sn && typeof Intl.DateTimeFormat < "u",
|
|
2002
|
+
numberFormat: Sn && typeof Intl.NumberFormat < "u"
|
|
1990
2003
|
};
|
|
1991
|
-
function
|
|
2004
|
+
function yn(e, ...t) {
|
|
1992
2005
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: s, onWarn: a, localeFallbacker: o } = e, { __datetimeFormatters: i } = e;
|
|
1993
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
2006
|
+
if (process.env.NODE_ENV !== "production" && !br.dateTimeFormat)
|
|
1994
2007
|
return a(Se(Z.CANNOT_FORMAT_DATE)), st;
|
|
1995
|
-
const [u, d, I, b] =
|
|
2008
|
+
const [u, d, 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(
|
|
1996
2009
|
e,
|
|
1997
2010
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1998
2011
|
s,
|
|
@@ -2003,7 +2016,7 @@ function Cn(e, ...t) {
|
|
|
2003
2016
|
let f = {}, m, h = null, E = C, O = null;
|
|
2004
2017
|
const v = "datetime format";
|
|
2005
2018
|
for (let w = 0; w < S.length; w++) {
|
|
2006
|
-
if (m = O = S[w], process.env.NODE_ENV !== "production" && C !== m &&
|
|
2019
|
+
if (m = O = S[w], process.env.NODE_ENV !== "production" && C !== m && _t(A, u) && a(Se(Z.FALLBACK_TO_DATE_FORMAT, {
|
|
2007
2020
|
key: u,
|
|
2008
2021
|
target: m
|
|
2009
2022
|
})), process.env.NODE_ENV !== "production" && C !== m) {
|
|
@@ -2018,16 +2031,16 @@ function Cn(e, ...t) {
|
|
|
2018
2031
|
}
|
|
2019
2032
|
if (f = n[m] || {}, h = f[u], R(h))
|
|
2020
2033
|
break;
|
|
2021
|
-
|
|
2034
|
+
sn(e, u, m, N, v), E = O;
|
|
2022
2035
|
}
|
|
2023
2036
|
if (!R(h) || !L(m))
|
|
2024
|
-
return r ?
|
|
2037
|
+
return r ? ft : u;
|
|
2025
2038
|
let p = `${m}__${u}`;
|
|
2026
|
-
|
|
2039
|
+
ut(b) || (p = `${p}__${JSON.stringify(b)}`);
|
|
2027
2040
|
let k = i.get(p);
|
|
2028
2041
|
return k || (k = new Intl.DateTimeFormat(m, J({}, h, b)), i.set(p, k)), D ? k.formatToParts(d) : k.format(d);
|
|
2029
2042
|
}
|
|
2030
|
-
const
|
|
2043
|
+
const hr = [
|
|
2031
2044
|
"localeMatcher",
|
|
2032
2045
|
"weekday",
|
|
2033
2046
|
"era",
|
|
@@ -2049,44 +2062,44 @@ const Tr = [
|
|
|
2049
2062
|
"hourCycle",
|
|
2050
2063
|
"fractionalSecondDigits"
|
|
2051
2064
|
];
|
|
2052
|
-
function
|
|
2065
|
+
function Ft(...e) {
|
|
2053
2066
|
const [t, n, r, s] = e, a = $();
|
|
2054
2067
|
let o = $(), i;
|
|
2055
2068
|
if (L(t)) {
|
|
2056
2069
|
const u = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
2057
2070
|
if (!u)
|
|
2058
|
-
throw
|
|
2071
|
+
throw pe(q.INVALID_ISO_DATE_ARGUMENT);
|
|
2059
2072
|
const d = u[3] ? u[3].trim().startsWith("T") ? `${u[1].trim()}${u[3].trim()}` : `${u[1].trim()}T${u[3].trim()}` : u[1].trim();
|
|
2060
2073
|
i = new Date(d);
|
|
2061
2074
|
try {
|
|
2062
2075
|
i.toISOString();
|
|
2063
2076
|
} catch {
|
|
2064
|
-
throw
|
|
2077
|
+
throw pe(q.INVALID_ISO_DATE_ARGUMENT);
|
|
2065
2078
|
}
|
|
2066
|
-
} else if (
|
|
2079
|
+
} else if (cs(t)) {
|
|
2067
2080
|
if (isNaN(t.getTime()))
|
|
2068
|
-
throw
|
|
2081
|
+
throw pe(q.INVALID_DATE_ARGUMENT);
|
|
2069
2082
|
i = t;
|
|
2070
2083
|
} else if (j(t))
|
|
2071
2084
|
i = t;
|
|
2072
2085
|
else
|
|
2073
|
-
throw
|
|
2086
|
+
throw pe(q.INVALID_ARGUMENT);
|
|
2074
2087
|
return L(n) ? a.key = n : R(n) && Object.keys(n).forEach((u) => {
|
|
2075
|
-
|
|
2088
|
+
hr.includes(u) ? o[u] = n[u] : a[u] = n[u];
|
|
2076
2089
|
}), L(r) ? a.locale = r : R(r) && (o = r), R(s) && (o = s), [a.key || "", i, a, o];
|
|
2077
2090
|
}
|
|
2078
|
-
function
|
|
2091
|
+
function Pn(e, t, n) {
|
|
2079
2092
|
const r = e;
|
|
2080
2093
|
for (const s in n) {
|
|
2081
2094
|
const a = `${t}__${s}`;
|
|
2082
2095
|
r.__datetimeFormatters.has(a) && r.__datetimeFormatters.delete(a);
|
|
2083
2096
|
}
|
|
2084
2097
|
}
|
|
2085
|
-
function
|
|
2098
|
+
function Dn(e, ...t) {
|
|
2086
2099
|
const { numberFormats: n, unresolving: r, fallbackLocale: s, onWarn: a, localeFallbacker: o } = e, { __numberFormatters: i } = e;
|
|
2087
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
2100
|
+
if (process.env.NODE_ENV !== "production" && !br.numberFormat)
|
|
2088
2101
|
return a(Se(Z.CANNOT_FORMAT_NUMBER)), st;
|
|
2089
|
-
const [u, d, I, b] =
|
|
2102
|
+
const [u, d, 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(
|
|
2090
2103
|
e,
|
|
2091
2104
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2092
2105
|
s,
|
|
@@ -2097,7 +2110,7 @@ function Sn(e, ...t) {
|
|
|
2097
2110
|
let f = {}, m, h = null, E = C, O = null;
|
|
2098
2111
|
const v = "number format";
|
|
2099
2112
|
for (let w = 0; w < S.length; w++) {
|
|
2100
|
-
if (m = O = S[w], process.env.NODE_ENV !== "production" && C !== m &&
|
|
2113
|
+
if (m = O = S[w], process.env.NODE_ENV !== "production" && C !== m && _t(A, u) && a(Se(Z.FALLBACK_TO_NUMBER_FORMAT, {
|
|
2101
2114
|
key: u,
|
|
2102
2115
|
target: m
|
|
2103
2116
|
})), process.env.NODE_ENV !== "production" && C !== m) {
|
|
@@ -2112,16 +2125,16 @@ function Sn(e, ...t) {
|
|
|
2112
2125
|
}
|
|
2113
2126
|
if (f = n[m] || {}, h = f[u], R(h))
|
|
2114
2127
|
break;
|
|
2115
|
-
|
|
2128
|
+
sn(e, u, m, N, v), E = O;
|
|
2116
2129
|
}
|
|
2117
2130
|
if (!R(h) || !L(m))
|
|
2118
|
-
return r ?
|
|
2131
|
+
return r ? ft : u;
|
|
2119
2132
|
let p = `${m}__${u}`;
|
|
2120
|
-
|
|
2133
|
+
ut(b) || (p = `${p}__${JSON.stringify(b)}`);
|
|
2121
2134
|
let k = i.get(p);
|
|
2122
2135
|
return k || (k = new Intl.NumberFormat(m, J({}, h, b)), i.set(p, k)), D ? k.formatToParts(d) : k.format(d);
|
|
2123
2136
|
}
|
|
2124
|
-
const
|
|
2137
|
+
const Ir = [
|
|
2125
2138
|
"localeMatcher",
|
|
2126
2139
|
"style",
|
|
2127
2140
|
"currency",
|
|
@@ -2143,43 +2156,43 @@ const br = [
|
|
|
2143
2156
|
"roundingIncrement",
|
|
2144
2157
|
"trailingZeroDisplay"
|
|
2145
2158
|
];
|
|
2146
|
-
function
|
|
2159
|
+
function Ut(...e) {
|
|
2147
2160
|
const [t, n, r, s] = e, a = $();
|
|
2148
2161
|
let o = $();
|
|
2149
2162
|
if (!j(t))
|
|
2150
|
-
throw
|
|
2163
|
+
throw pe(q.INVALID_ARGUMENT);
|
|
2151
2164
|
const i = t;
|
|
2152
2165
|
return L(n) ? a.key = n : R(n) && Object.keys(n).forEach((u) => {
|
|
2153
|
-
|
|
2166
|
+
Ir.includes(u) ? o[u] = n[u] : a[u] = n[u];
|
|
2154
2167
|
}), L(r) ? a.locale = r : R(r) && (o = r), R(s) && (o = s), [a.key || "", i, a, o];
|
|
2155
2168
|
}
|
|
2156
|
-
function
|
|
2169
|
+
function kn(e, t, n) {
|
|
2157
2170
|
const r = e;
|
|
2158
2171
|
for (const s in n) {
|
|
2159
2172
|
const a = `${t}__${s}`;
|
|
2160
2173
|
r.__numberFormatters.has(a) && r.__numberFormatters.delete(a);
|
|
2161
2174
|
}
|
|
2162
2175
|
}
|
|
2163
|
-
const
|
|
2164
|
-
function
|
|
2176
|
+
const Ra = (e) => e, Ma = (e) => "", Fa = "text", Ua = (e) => e.length === 0 ? "" : zt(e), wa = ds;
|
|
2177
|
+
function Rn(e, t) {
|
|
2165
2178
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
2166
2179
|
}
|
|
2167
|
-
function
|
|
2180
|
+
function Va(e) {
|
|
2168
2181
|
const t = j(e.pluralIndex) ? e.pluralIndex : -1;
|
|
2169
2182
|
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;
|
|
2170
2183
|
}
|
|
2171
|
-
function
|
|
2184
|
+
function $a(e, t) {
|
|
2172
2185
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
2173
2186
|
}
|
|
2174
|
-
function
|
|
2175
|
-
const t = e.locale, n =
|
|
2176
|
-
j(e.pluralIndex) &&
|
|
2187
|
+
function Wa(e = {}) {
|
|
2188
|
+
const t = e.locale, n = Va(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 || $();
|
|
2189
|
+
j(e.pluralIndex) && $a(n, u);
|
|
2177
2190
|
const d = (f) => u[f];
|
|
2178
2191
|
function I(f, m) {
|
|
2179
2192
|
const h = W(e.messages) ? e.messages(f, !!m) : M(e.messages) ? e.messages[f] : !1;
|
|
2180
|
-
return h || (e.parent ? e.parent.message(f) :
|
|
2193
|
+
return h || (e.parent ? e.parent.message(f) : Ma);
|
|
2181
2194
|
}
|
|
2182
|
-
const b = (f) => e.modifiers ? e.modifiers[f] :
|
|
2195
|
+
const b = (f) => e.modifiers ? e.modifiers[f] : Ra, N = R(e.processor) && W(e.processor.normalize) ? e.processor.normalize : Ua, A = R(e.processor) && W(e.processor.interpolate) ? e.processor.interpolate : wa, D = R(e.processor) && L(e.processor.type) ? e.processor.type : Fa, S = {
|
|
2183
2196
|
list: i,
|
|
2184
2197
|
named: d,
|
|
2185
2198
|
plural: a,
|
|
@@ -2201,28 +2214,28 @@ function Va(e = {}) {
|
|
|
2201
2214
|
};
|
|
2202
2215
|
return S;
|
|
2203
2216
|
}
|
|
2204
|
-
const
|
|
2205
|
-
function
|
|
2206
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: a, fallbackLocale: o, messages: i } = e, [u, d] =
|
|
2207
|
-
N &&
|
|
2217
|
+
const Mn = () => "", te = (e) => W(e);
|
|
2218
|
+
function Fn(e, ...t) {
|
|
2219
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: a, fallbackLocale: o, messages: i } = e, [u, d] = wt(...t), I = F(d.missingWarn) ? d.missingWarn : e.missingWarn, b = F(d.fallbackWarn) ? d.fallbackWarn : e.fallbackWarn, N = F(d.escapeParameter) ? d.escapeParameter : e.escapeParameter, A = !!d.resolvedMessage, D = L(d.default) || F(d.default) ? F(d.default) ? a ? u : () => u : d.default : n ? a ? u : () => u : null, C = n || D != null && (L(D) || W(D)), S = rn(e, d);
|
|
2220
|
+
N && Ga(d);
|
|
2208
2221
|
let [f, m, h] = A ? [
|
|
2209
2222
|
u,
|
|
2210
2223
|
S,
|
|
2211
2224
|
i[S] || $()
|
|
2212
|
-
] :
|
|
2225
|
+
] : Lr(e, u, S, o, b, I), E = f, O = u;
|
|
2213
2226
|
if (!A && !(L(E) || se(E) || te(E)) && C && (E = D, O = E), !A && (!(L(E) || se(E) || te(E)) || !L(m)))
|
|
2214
|
-
return s ?
|
|
2227
|
+
return s ? ft : u;
|
|
2215
2228
|
if (process.env.NODE_ENV !== "production" && L(E) && e.messageCompiler == null)
|
|
2216
|
-
return
|
|
2229
|
+
return fe(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${u}'.`), u;
|
|
2217
2230
|
let v = !1;
|
|
2218
2231
|
const p = () => {
|
|
2219
2232
|
v = !0;
|
|
2220
|
-
}, k = te(E) ? E :
|
|
2233
|
+
}, k = te(E) ? E : Or(e, u, m, E, O, p);
|
|
2221
2234
|
if (v)
|
|
2222
2235
|
return E;
|
|
2223
|
-
const w =
|
|
2236
|
+
const w = Ba(e, m, h, d), X = Wa(w), ae = xa(e, k, X);
|
|
2224
2237
|
let Y = r ? r(ae, u) : ae;
|
|
2225
|
-
if (N && L(Y) && (Y =
|
|
2238
|
+
if (N && L(Y) && (Y = fs(Y)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2226
2239
|
const Pe = {
|
|
2227
2240
|
timestamp: Date.now(),
|
|
2228
2241
|
key: L(u) ? u : te(E) ? E.key : "",
|
|
@@ -2230,21 +2243,21 @@ function kn(e, ...t) {
|
|
|
2230
2243
|
format: L(E) ? E : te(E) ? E.source : "",
|
|
2231
2244
|
message: Y
|
|
2232
2245
|
};
|
|
2233
|
-
Pe.meta = J({}, e.__meta, /* @__PURE__ */
|
|
2246
|
+
Pe.meta = J({}, e.__meta, /* @__PURE__ */ ya() || {}), oa(Pe);
|
|
2234
2247
|
}
|
|
2235
2248
|
return Y;
|
|
2236
2249
|
}
|
|
2237
|
-
function
|
|
2238
|
-
H(e.list) ? e.list = e.list.map((t) => L(t) ?
|
|
2239
|
-
L(e.named[t]) && (e.named[t] =
|
|
2250
|
+
function Ga(e) {
|
|
2251
|
+
H(e.list) ? e.list = e.list.map((t) => L(t) ? En(t) : t) : M(e.named) && Object.keys(e.named).forEach((t) => {
|
|
2252
|
+
L(e.named[t]) && (e.named[t] = En(e.named[t]));
|
|
2240
2253
|
});
|
|
2241
2254
|
}
|
|
2242
|
-
function
|
|
2255
|
+
function Lr(e, t, n, r, s, a) {
|
|
2243
2256
|
const { messages: o, onWarn: i, messageResolver: u, localeFallbacker: d } = e, I = d(e, r, n);
|
|
2244
2257
|
let b = $(), N, A = null, D = n, C = null;
|
|
2245
2258
|
const S = "translate";
|
|
2246
2259
|
for (let f = 0; f < I.length; f++) {
|
|
2247
|
-
if (N = C = I[f], process.env.NODE_ENV !== "production" && n !== N && !
|
|
2260
|
+
if (N = C = I[f], process.env.NODE_ENV !== "production" && n !== N && !Tr(n, N) && _t(s, t) && i(Se(Z.FALLBACK_TO_TRANSLATE, {
|
|
2248
2261
|
key: t,
|
|
2249
2262
|
target: N
|
|
2250
2263
|
})), process.env.NODE_ENV !== "production" && n !== N) {
|
|
@@ -2271,8 +2284,8 @@ function hr(e, t, n, r, s, a) {
|
|
|
2271
2284
|
}
|
|
2272
2285
|
if (L(A) || se(A) || te(A))
|
|
2273
2286
|
break;
|
|
2274
|
-
if (!
|
|
2275
|
-
const O =
|
|
2287
|
+
if (!ka(N, I)) {
|
|
2288
|
+
const O = sn(
|
|
2276
2289
|
e,
|
|
2277
2290
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2278
2291
|
t,
|
|
@@ -2286,7 +2299,7 @@ function hr(e, t, n, r, s, a) {
|
|
|
2286
2299
|
}
|
|
2287
2300
|
return [A, N, b];
|
|
2288
2301
|
}
|
|
2289
|
-
function
|
|
2302
|
+
function Or(e, t, n, r, s, a) {
|
|
2290
2303
|
const { messageCompiler: o, warnHtmlMessage: i } = e;
|
|
2291
2304
|
if (te(r)) {
|
|
2292
2305
|
const N = r;
|
|
@@ -2298,7 +2311,7 @@ function Ir(e, t, n, r, s, a) {
|
|
|
2298
2311
|
}
|
|
2299
2312
|
let u = null, d, I;
|
|
2300
2313
|
process.env.NODE_ENV !== "production" && le && (u = window.performance.now(), d = "intlify-message-compilation-start", I = "intlify-message-compilation-end", ee && ee(d));
|
|
2301
|
-
const b = o(r,
|
|
2314
|
+
const b = o(r, Ha(e, n, s, r, i, a));
|
|
2302
2315
|
if (process.env.NODE_ENV !== "production" && le) {
|
|
2303
2316
|
const N = window.performance.now(), A = e.__v_emitter;
|
|
2304
2317
|
A && u && A.emit("message-compilation", {
|
|
@@ -2310,7 +2323,7 @@ function Ir(e, t, n, r, s, a) {
|
|
|
2310
2323
|
}
|
|
2311
2324
|
return b.locale = n, b.key = t, b.source = r, b;
|
|
2312
2325
|
}
|
|
2313
|
-
function
|
|
2326
|
+
function xa(e, t, n) {
|
|
2314
2327
|
let r = null, s, a;
|
|
2315
2328
|
process.env.NODE_ENV !== "production" && le && (r = window.performance.now(), s = "intlify-message-evaluation-start", a = "intlify-message-evaluation-end", ee && ee(s));
|
|
2316
2329
|
const o = t(n);
|
|
@@ -2325,21 +2338,21 @@ function Wa(e, t, n) {
|
|
|
2325
2338
|
}
|
|
2326
2339
|
return o;
|
|
2327
2340
|
}
|
|
2328
|
-
function
|
|
2341
|
+
function wt(...e) {
|
|
2329
2342
|
const [t, n, r] = e, s = $();
|
|
2330
2343
|
if (!L(t) && !j(t) && !te(t) && !se(t))
|
|
2331
|
-
throw
|
|
2344
|
+
throw pe(q.INVALID_ARGUMENT);
|
|
2332
2345
|
const a = j(t) ? String(t) : (te(t), t);
|
|
2333
|
-
return j(n) ? s.plural = n : L(n) ? s.default = n : R(n) && !
|
|
2346
|
+
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];
|
|
2334
2347
|
}
|
|
2335
|
-
function
|
|
2348
|
+
function Ha(e, t, n, r, s, a) {
|
|
2336
2349
|
return {
|
|
2337
2350
|
locale: t,
|
|
2338
2351
|
key: n,
|
|
2339
2352
|
warnHtmlMessage: s,
|
|
2340
2353
|
onError: (o) => {
|
|
2341
2354
|
if (a && a(o), process.env.NODE_ENV !== "production") {
|
|
2342
|
-
const i =
|
|
2355
|
+
const i = Ya(r), u = `Message compilation error: ${o.message}`, d = o.location && i && Es(i, o.location.start.offset, o.location.end.offset), I = e.__v_emitter;
|
|
2343
2356
|
I && i && I.emit("compile-error", {
|
|
2344
2357
|
message: i,
|
|
2345
2358
|
error: o.message,
|
|
@@ -2351,16 +2364,16 @@ ${d}` : u);
|
|
|
2351
2364
|
} else
|
|
2352
2365
|
throw o;
|
|
2353
2366
|
},
|
|
2354
|
-
onCacheKey: (o) =>
|
|
2367
|
+
onCacheKey: (o) => ls(t, n, o)
|
|
2355
2368
|
};
|
|
2356
2369
|
}
|
|
2357
|
-
function
|
|
2370
|
+
function Ya(e) {
|
|
2358
2371
|
if (L(e))
|
|
2359
2372
|
return e;
|
|
2360
2373
|
if (e.loc && e.loc.source)
|
|
2361
2374
|
return e.loc.source;
|
|
2362
2375
|
}
|
|
2363
|
-
function
|
|
2376
|
+
function Ba(e, t, n, r) {
|
|
2364
2377
|
const { modifiers: s, pluralRules: a, messageResolver: o, fallbackLocale: i, fallbackWarn: u, missingWarn: d, fallbackContext: I } = e, N = {
|
|
2365
2378
|
locale: t,
|
|
2366
2379
|
modifiers: s,
|
|
@@ -2368,7 +2381,7 @@ function Ha(e, t, n, r) {
|
|
|
2368
2381
|
messages: (A, D) => {
|
|
2369
2382
|
let C = o(n, A);
|
|
2370
2383
|
if (C == null && (I || D)) {
|
|
2371
|
-
const [, , S] =
|
|
2384
|
+
const [, , S] = Lr(
|
|
2372
2385
|
I || e,
|
|
2373
2386
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
2374
2387
|
A,
|
|
@@ -2381,32 +2394,32 @@ function Ha(e, t, n, r) {
|
|
|
2381
2394
|
}
|
|
2382
2395
|
if (L(C) || se(C)) {
|
|
2383
2396
|
let S = !1;
|
|
2384
|
-
const m =
|
|
2397
|
+
const m = Or(e, A, t, C, A, () => {
|
|
2385
2398
|
S = !0;
|
|
2386
2399
|
});
|
|
2387
|
-
return S ?
|
|
2388
|
-
} else return te(C) ? C :
|
|
2400
|
+
return S ? Mn : m;
|
|
2401
|
+
} else return te(C) ? C : Mn;
|
|
2389
2402
|
}
|
|
2390
2403
|
};
|
|
2391
2404
|
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;
|
|
2392
2405
|
}
|
|
2393
|
-
|
|
2394
|
-
function
|
|
2395
|
-
return
|
|
2406
|
+
Bs();
|
|
2407
|
+
function Ka() {
|
|
2408
|
+
return vr().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
2396
2409
|
}
|
|
2397
|
-
function
|
|
2410
|
+
function vr() {
|
|
2398
2411
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
2399
2412
|
}
|
|
2400
|
-
const
|
|
2401
|
-
let ke,
|
|
2402
|
-
function
|
|
2413
|
+
const ja = typeof Proxy == "function", Xa = "devtools-plugin:setup", Ja = "plugin:settings:set";
|
|
2414
|
+
let ke, Vt;
|
|
2415
|
+
function Qa() {
|
|
2403
2416
|
var e;
|
|
2404
|
-
return ke !== void 0 || (typeof window < "u" && window.performance ? (ke = !0,
|
|
2417
|
+
return ke !== void 0 || (typeof window < "u" && window.performance ? (ke = !0, Vt = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (ke = !0, Vt = globalThis.perf_hooks.performance) : ke = !1), ke;
|
|
2405
2418
|
}
|
|
2406
|
-
function
|
|
2407
|
-
return
|
|
2419
|
+
function qa() {
|
|
2420
|
+
return Qa() ? Vt.now() : Date.now();
|
|
2408
2421
|
}
|
|
2409
|
-
class
|
|
2422
|
+
class Za {
|
|
2410
2423
|
constructor(t, n) {
|
|
2411
2424
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
2412
2425
|
const r = {};
|
|
@@ -2434,9 +2447,9 @@ class Qa {
|
|
|
2434
2447
|
a = o;
|
|
2435
2448
|
},
|
|
2436
2449
|
now() {
|
|
2437
|
-
return
|
|
2450
|
+
return qa();
|
|
2438
2451
|
}
|
|
2439
|
-
}, n && n.on(
|
|
2452
|
+
}, n && n.on(Ja, (o, i) => {
|
|
2440
2453
|
o === this.plugin.id && this.fallbacks.setSettings(i);
|
|
2441
2454
|
}), this.proxiedOn = new Proxy({}, {
|
|
2442
2455
|
get: (o, i) => this.target ? this.target.on[i] : (...u) => {
|
|
@@ -2468,12 +2481,12 @@ class Qa {
|
|
|
2468
2481
|
n.resolve(await this.target[n.method](...n.args));
|
|
2469
2482
|
}
|
|
2470
2483
|
}
|
|
2471
|
-
function
|
|
2472
|
-
const n = e, r =
|
|
2484
|
+
function za(e, t) {
|
|
2485
|
+
const n = e, r = vr(), s = Ka(), a = ja && n.enableEarlyProxy;
|
|
2473
2486
|
if (s && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
|
|
2474
|
-
s.emit(
|
|
2487
|
+
s.emit(Xa, e, t);
|
|
2475
2488
|
else {
|
|
2476
|
-
const o = a ? new
|
|
2489
|
+
const o = a ? new Za(n, s) : null;
|
|
2477
2490
|
(r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
2478
2491
|
pluginDescriptor: n,
|
|
2479
2492
|
setupFn: t,
|
|
@@ -2481,13 +2494,13 @@ function qa(e, t) {
|
|
|
2481
2494
|
}), o && t(o.proxiedTarget);
|
|
2482
2495
|
}
|
|
2483
2496
|
}
|
|
2484
|
-
const
|
|
2485
|
-
function
|
|
2486
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (
|
|
2497
|
+
const eo = "11.2.8";
|
|
2498
|
+
function to() {
|
|
2499
|
+
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (ve().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (ve().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (ve().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (ve().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
2487
2500
|
}
|
|
2488
2501
|
const G = {
|
|
2489
2502
|
// composer module errors
|
|
2490
|
-
UNEXPECTED_RETURN_TYPE:
|
|
2503
|
+
UNEXPECTED_RETURN_TYPE: ia,
|
|
2491
2504
|
// 24
|
|
2492
2505
|
// legacy module errors
|
|
2493
2506
|
INVALID_ARGUMENT: 25,
|
|
@@ -2508,9 +2521,9 @@ const G = {
|
|
|
2508
2521
|
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
2509
2522
|
};
|
|
2510
2523
|
function z(e, ...t) {
|
|
2511
|
-
return Ve(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
2524
|
+
return Ve(e, null, process.env.NODE_ENV !== "production" ? { messages: no, args: t } : void 0);
|
|
2512
2525
|
}
|
|
2513
|
-
const
|
|
2526
|
+
const no = {
|
|
2514
2527
|
[G.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
2515
2528
|
[G.INVALID_ARGUMENT]: "Invalid argument",
|
|
2516
2529
|
[G.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
@@ -2522,8 +2535,8 @@ const eo = {
|
|
|
2522
2535
|
[G.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
2523
2536
|
[G.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
2524
2537
|
[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"
|
|
2525
|
-
},
|
|
2526
|
-
FALLBACK_TO_ROOT:
|
|
2538
|
+
}, $t = /* @__PURE__ */ me("__translateVNode"), Wt = /* @__PURE__ */ me("__datetimeParts"), Gt = /* @__PURE__ */ me("__numberParts"), ye = /* @__PURE__ */ me("__enableEmitter"), Xe = /* @__PURE__ */ me("__disableEmitter"), Cr = me("__setPluralRules"), Ar = /* @__PURE__ */ me("__injectWithOption"), xt = /* @__PURE__ */ me("__dispose"), ne = {
|
|
2539
|
+
FALLBACK_TO_ROOT: ha,
|
|
2527
2540
|
// 8
|
|
2528
2541
|
NOT_FOUND_PARENT_SCOPE: 9,
|
|
2529
2542
|
IGNORE_OBJ_FLATTEN: 10,
|
|
@@ -2537,7 +2550,7 @@ const eo = {
|
|
|
2537
2550
|
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12,
|
|
2538
2551
|
// duplicate `useI18n` calling
|
|
2539
2552
|
DUPLICATE_USE_I18N_CALLING: 13
|
|
2540
|
-
},
|
|
2553
|
+
}, ro = {
|
|
2541
2554
|
[ne.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
2542
2555
|
[ne.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
2543
2556
|
[ne.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
@@ -2553,7 +2566,7 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
2553
2566
|
[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."
|
|
2554
2567
|
};
|
|
2555
2568
|
function we(e, ...t) {
|
|
2556
|
-
return
|
|
2569
|
+
return ct(ro[e], ...t);
|
|
2557
2570
|
}
|
|
2558
2571
|
function Je(e) {
|
|
2559
2572
|
if (!M(e) || se(e))
|
|
@@ -2569,21 +2582,21 @@ function Je(e) {
|
|
|
2569
2582
|
if (n[o] === "__proto__")
|
|
2570
2583
|
throw new Error(`unsafe key: ${n[o]}`);
|
|
2571
2584
|
if (n[o] in s || (s[n[o]] = $()), !M(s[n[o]])) {
|
|
2572
|
-
process.env.NODE_ENV !== "production" &&
|
|
2585
|
+
process.env.NODE_ENV !== "production" && fe(we(ne.IGNORE_OBJ_FLATTEN, {
|
|
2573
2586
|
key: n[o]
|
|
2574
2587
|
})), a = !0;
|
|
2575
2588
|
break;
|
|
2576
2589
|
}
|
|
2577
2590
|
s = s[n[o]];
|
|
2578
2591
|
}
|
|
2579
|
-
if (a || (se(s) ?
|
|
2592
|
+
if (a || (se(s) ? fr.includes(n[r]) || delete e[t] : (s[n[r]] = e[t], delete e[t])), !se(s)) {
|
|
2580
2593
|
const o = s[n[r]];
|
|
2581
2594
|
M(o) && Je(o);
|
|
2582
2595
|
}
|
|
2583
2596
|
}
|
|
2584
2597
|
return e;
|
|
2585
2598
|
}
|
|
2586
|
-
function
|
|
2599
|
+
function an(e, t) {
|
|
2587
2600
|
const { messages: n, __i18n: r, messageResolver: s, flatJson: a } = t, o = R(n) ? n : H(r) ? $() : { [e]: $() };
|
|
2588
2601
|
if (H(r) && r.forEach((i) => {
|
|
2589
2602
|
if ("locale" in i && "resource" in i) {
|
|
@@ -2596,12 +2609,12 @@ function nn(e, t) {
|
|
|
2596
2609
|
oe(o, i) && Je(o[i]);
|
|
2597
2610
|
return o;
|
|
2598
2611
|
}
|
|
2599
|
-
function
|
|
2612
|
+
function Sr(e) {
|
|
2600
2613
|
return e.type;
|
|
2601
2614
|
}
|
|
2602
|
-
function
|
|
2615
|
+
function yr(e, t, n) {
|
|
2603
2616
|
let r = M(t.messages) ? t.messages : $();
|
|
2604
|
-
"__i18nGlobal" in n && (r =
|
|
2617
|
+
"__i18nGlobal" in n && (r = an(e.locale.value, {
|
|
2605
2618
|
messages: r,
|
|
2606
2619
|
__i18n: n.__i18nGlobal
|
|
2607
2620
|
}));
|
|
@@ -2624,25 +2637,25 @@ function Ar(e, t, n) {
|
|
|
2624
2637
|
}
|
|
2625
2638
|
}
|
|
2626
2639
|
}
|
|
2627
|
-
function
|
|
2628
|
-
return
|
|
2640
|
+
function Un(e) {
|
|
2641
|
+
return Zn(xr, null, e, 0);
|
|
2629
2642
|
}
|
|
2630
2643
|
function Me() {
|
|
2631
2644
|
const e = "currentInstance";
|
|
2632
|
-
return e in
|
|
2645
|
+
return e in St ? St[e] : St.getCurrentInstance();
|
|
2633
2646
|
}
|
|
2634
|
-
const
|
|
2635
|
-
let
|
|
2636
|
-
function
|
|
2647
|
+
const wn = "__INTLIFY_META__", Vn = () => [], so = () => !1;
|
|
2648
|
+
let $n = 0;
|
|
2649
|
+
function Wn(e) {
|
|
2637
2650
|
return ((t, n, r, s) => e(n, r, Me() || void 0, s));
|
|
2638
2651
|
}
|
|
2639
|
-
const
|
|
2652
|
+
const ao = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2640
2653
|
const e = Me();
|
|
2641
2654
|
let t = null;
|
|
2642
|
-
return e && (t =
|
|
2655
|
+
return e && (t = Sr(e)[wn]) ? { [wn]: t } : null;
|
|
2643
2656
|
};
|
|
2644
|
-
function
|
|
2645
|
-
const { __root: t, __injectWithOption: n } = e, r = t === void 0, s = e.flatJson, a = le ?
|
|
2657
|
+
function on(e = {}) {
|
|
2658
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, s = e.flatJson, a = le ? at : $r;
|
|
2646
2659
|
let o = F(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2647
2660
|
const i = a(
|
|
2648
2661
|
// prettier-ignore
|
|
@@ -2650,14 +2663,14 @@ function rn(e = {}) {
|
|
|
2650
2663
|
), u = a(
|
|
2651
2664
|
// prettier-ignore
|
|
2652
2665
|
t && o ? t.fallbackLocale.value : L(e.fallbackLocale) || H(e.fallbackLocale) || R(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i.value
|
|
2653
|
-
), d = a(
|
|
2654
|
-
let N = t ? t.missingWarn : F(e.missingWarn) || Fe(e.missingWarn) ? e.missingWarn : !0, A = t ? t.fallbackWarn : F(e.fallbackWarn) || Fe(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) ?
|
|
2666
|
+
), d = a(an(i.value, e)), I = a(R(e.datetimeFormats) ? e.datetimeFormats : { [i.value]: {} }), b = a(R(e.numberFormats) ? e.numberFormats : { [i.value]: {} });
|
|
2667
|
+
let N = t ? t.missingWarn : F(e.missingWarn) || Fe(e.missingWarn) ? e.missingWarn : !0, A = t ? t.fallbackWarn : F(e.fallbackWarn) || Fe(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, E = !!e.escapeParameter;
|
|
2655
2668
|
const O = t ? t.modifiers : R(e.modifiers) ? e.modifiers : {};
|
|
2656
2669
|
let v = e.pluralRules || t && t.pluralRules, p;
|
|
2657
2670
|
p = (() => {
|
|
2658
|
-
r &&
|
|
2671
|
+
r && Cn(null);
|
|
2659
2672
|
const _ = {
|
|
2660
|
-
version:
|
|
2673
|
+
version: eo,
|
|
2661
2674
|
locale: i.value,
|
|
2662
2675
|
fallbackLocale: u.value,
|
|
2663
2676
|
messages: d.value,
|
|
@@ -2676,8 +2689,8 @@ function rn(e = {}) {
|
|
|
2676
2689
|
__meta: { framework: "vue" }
|
|
2677
2690
|
};
|
|
2678
2691
|
_.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);
|
|
2679
|
-
const T =
|
|
2680
|
-
return r &&
|
|
2692
|
+
const T = Da(_);
|
|
2693
|
+
return r && Cn(T), T;
|
|
2681
2694
|
})(), Ye(p, i.value, u.value);
|
|
2682
2695
|
function w() {
|
|
2683
2696
|
return [
|
|
@@ -2698,46 +2711,46 @@ function rn(e = {}) {
|
|
|
2698
2711
|
set: (_) => {
|
|
2699
2712
|
p.fallbackLocale = _, u.value = _, Ye(p, i.value, _);
|
|
2700
2713
|
}
|
|
2701
|
-
}), Y = He(() => d.value), Pe = /* @__PURE__ */ He(() => I.value),
|
|
2702
|
-
function
|
|
2714
|
+
}), Y = He(() => d.value), Pe = /* @__PURE__ */ He(() => I.value), mt = /* @__PURE__ */ He(() => b.value);
|
|
2715
|
+
function dt() {
|
|
2703
2716
|
return W(m) ? m : null;
|
|
2704
2717
|
}
|
|
2705
|
-
function
|
|
2718
|
+
function Et(_) {
|
|
2706
2719
|
m = _, p.postTranslation = _;
|
|
2707
2720
|
}
|
|
2708
|
-
function
|
|
2721
|
+
function pt() {
|
|
2709
2722
|
return S;
|
|
2710
2723
|
}
|
|
2711
|
-
function
|
|
2712
|
-
_ !== null && (f =
|
|
2724
|
+
function gt(_) {
|
|
2725
|
+
_ !== null && (f = Wn(_)), S = _, p.missing = f;
|
|
2713
2726
|
}
|
|
2714
|
-
function
|
|
2727
|
+
function Nt(_, T) {
|
|
2715
2728
|
return _ !== "translate" || !T.resolvedMessage;
|
|
2716
2729
|
}
|
|
2717
|
-
const
|
|
2730
|
+
const de = (_, T, V, K, Ie, ze) => {
|
|
2718
2731
|
w();
|
|
2719
2732
|
let De;
|
|
2720
2733
|
try {
|
|
2721
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = t ?
|
|
2734
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = t ? Pa() : void 0), De = _(p);
|
|
2722
2735
|
} finally {
|
|
2723
2736
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = void 0);
|
|
2724
2737
|
}
|
|
2725
2738
|
if (V !== "translate exists" && // for not `te` (e.g `t`)
|
|
2726
|
-
j(De) && De ===
|
|
2727
|
-
const [
|
|
2728
|
-
if (process.env.NODE_ENV !== "production" && t && L(
|
|
2729
|
-
key:
|
|
2739
|
+
j(De) && De === ft || V === "translate exists" && !De) {
|
|
2740
|
+
const [Le, Fr] = T();
|
|
2741
|
+
if (process.env.NODE_ENV !== "production" && t && L(Le) && Nt(V, Fr) && (D && (_t(A, Le) || Nr(N, Le)) && fe(we(ne.FALLBACK_TO_ROOT, {
|
|
2742
|
+
key: Le,
|
|
2730
2743
|
type: V
|
|
2731
2744
|
})), process.env.NODE_ENV !== "production")) {
|
|
2732
|
-
const { __v_emitter:
|
|
2733
|
-
|
|
2745
|
+
const { __v_emitter: _n } = p;
|
|
2746
|
+
_n && D && _n.emit("fallback", {
|
|
2734
2747
|
type: V,
|
|
2735
|
-
key:
|
|
2748
|
+
key: Le,
|
|
2736
2749
|
to: "global",
|
|
2737
|
-
groupId: `${V}:${
|
|
2750
|
+
groupId: `${V}:${Le}`
|
|
2738
2751
|
});
|
|
2739
2752
|
}
|
|
2740
|
-
return t && D ? K(t) :
|
|
2753
|
+
return t && D ? K(t) : Ie(Le);
|
|
2741
2754
|
} else {
|
|
2742
2755
|
if (ze(De))
|
|
2743
2756
|
return De;
|
|
@@ -2745,62 +2758,62 @@ function rn(e = {}) {
|
|
|
2745
2758
|
}
|
|
2746
2759
|
};
|
|
2747
2760
|
function $e(..._) {
|
|
2748
|
-
return
|
|
2761
|
+
return de((T) => Reflect.apply(Fn, null, [T, ..._]), () => wt(..._), "translate", (T) => Reflect.apply(T.t, T, [..._]), (T) => T, (T) => L(T));
|
|
2749
2762
|
}
|
|
2750
|
-
function
|
|
2763
|
+
function Tt(..._) {
|
|
2751
2764
|
const [T, V, K] = _;
|
|
2752
2765
|
if (K && !M(K))
|
|
2753
2766
|
throw z(G.INVALID_ARGUMENT);
|
|
2754
2767
|
return $e(T, V, J({ resolvedMessage: !0 }, K || {}));
|
|
2755
2768
|
}
|
|
2756
|
-
function Tt(..._) {
|
|
2757
|
-
return _e((T) => Reflect.apply(Cn, null, [T, ..._]), () => Mt(..._), "datetime format", (T) => Reflect.apply(T.d, T, [..._]), () => st, (T) => L(T) || H(T));
|
|
2758
|
-
}
|
|
2759
2769
|
function bt(..._) {
|
|
2760
|
-
return
|
|
2770
|
+
return de((T) => Reflect.apply(yn, null, [T, ..._]), () => Ft(..._), "datetime format", (T) => Reflect.apply(T.d, T, [..._]), () => st, (T) => L(T) || H(T));
|
|
2761
2771
|
}
|
|
2762
|
-
function ht(_) {
|
|
2763
|
-
return
|
|
2772
|
+
function ht(..._) {
|
|
2773
|
+
return de((T) => Reflect.apply(Dn, null, [T, ..._]), () => Ut(..._), "number format", (T) => Reflect.apply(T.n, T, [..._]), () => st, (T) => L(T) || H(T));
|
|
2764
2774
|
}
|
|
2765
|
-
|
|
2766
|
-
|
|
2775
|
+
function It(_) {
|
|
2776
|
+
return _.map((T) => L(T) || j(T) || F(T) ? Un(String(T)) : T);
|
|
2777
|
+
}
|
|
2778
|
+
const Lt = {
|
|
2779
|
+
normalize: It,
|
|
2767
2780
|
interpolate: (_) => _,
|
|
2768
2781
|
type: "vnode"
|
|
2769
2782
|
};
|
|
2770
2783
|
function qe(..._) {
|
|
2771
|
-
return
|
|
2784
|
+
return de((T) => {
|
|
2772
2785
|
let V;
|
|
2773
2786
|
const K = T;
|
|
2774
2787
|
try {
|
|
2775
|
-
K.processor =
|
|
2788
|
+
K.processor = Lt, V = Reflect.apply(Fn, null, [K, ..._]);
|
|
2776
2789
|
} finally {
|
|
2777
2790
|
K.processor = null;
|
|
2778
2791
|
}
|
|
2779
2792
|
return V;
|
|
2780
|
-
}, () =>
|
|
2793
|
+
}, () => wt(..._), "translate", (T) => T[$t](..._), (T) => [Un(T)], (T) => H(T));
|
|
2781
2794
|
}
|
|
2782
|
-
function
|
|
2783
|
-
return
|
|
2795
|
+
function Ot(..._) {
|
|
2796
|
+
return de((T) => Reflect.apply(Dn, null, [T, ..._]), () => Ut(..._), "number format", (T) => T[Gt](..._), Vn, (T) => L(T) || H(T));
|
|
2784
2797
|
}
|
|
2785
2798
|
function Ze(..._) {
|
|
2786
|
-
return
|
|
2799
|
+
return de((T) => Reflect.apply(yn, null, [T, ..._]), () => Ft(..._), "datetime format", (T) => T[Wt](..._), Vn, (T) => L(T) || H(T));
|
|
2787
2800
|
}
|
|
2788
|
-
function
|
|
2801
|
+
function vt(_) {
|
|
2789
2802
|
v = _, p.pluralRules = v;
|
|
2790
2803
|
}
|
|
2791
|
-
function
|
|
2792
|
-
return
|
|
2804
|
+
function Ct(_, T) {
|
|
2805
|
+
return de(() => {
|
|
2793
2806
|
if (!_)
|
|
2794
2807
|
return !1;
|
|
2795
|
-
const V = L(T) ? T : i.value, K =
|
|
2796
|
-
return se(
|
|
2797
|
-
}, () => [_], "translate exists", (V) => Reflect.apply(V.te, V, [_, T]),
|
|
2808
|
+
const V = L(T) ? T : i.value, K = he(V), Ie = p.messageResolver(K, _);
|
|
2809
|
+
return se(Ie) || te(Ie) || L(Ie);
|
|
2810
|
+
}, () => [_], "translate exists", (V) => Reflect.apply(V.te, V, [_, T]), so, (V) => F(V));
|
|
2798
2811
|
}
|
|
2799
2812
|
function We(_) {
|
|
2800
2813
|
let T = null;
|
|
2801
|
-
const V =
|
|
2814
|
+
const V = _r(p, u.value, i.value);
|
|
2802
2815
|
for (let K = 0; K < V.length; K++) {
|
|
2803
|
-
const
|
|
2816
|
+
const Ie = d.value[V[K]] || {}, ze = p.messageResolver(Ie, _);
|
|
2804
2817
|
if (ze != null) {
|
|
2805
2818
|
T = ze;
|
|
2806
2819
|
break;
|
|
@@ -2812,7 +2825,7 @@ function rn(e = {}) {
|
|
|
2812
2825
|
const T = We(_);
|
|
2813
2826
|
return T ?? (t ? t.tm(_) || {} : {});
|
|
2814
2827
|
}
|
|
2815
|
-
function
|
|
2828
|
+
function he(_) {
|
|
2816
2829
|
return d.value[_] || {};
|
|
2817
2830
|
}
|
|
2818
2831
|
function xe(_, T) {
|
|
@@ -2824,7 +2837,7 @@ function rn(e = {}) {
|
|
|
2824
2837
|
}
|
|
2825
2838
|
d.value[_] = T, p.messages = d.value;
|
|
2826
2839
|
}
|
|
2827
|
-
function
|
|
2840
|
+
function At(_, T) {
|
|
2828
2841
|
d.value[_] = d.value[_] || {};
|
|
2829
2842
|
const V = { [_]: T };
|
|
2830
2843
|
if (s)
|
|
@@ -2836,27 +2849,27 @@ function rn(e = {}) {
|
|
|
2836
2849
|
return I.value[_] || {};
|
|
2837
2850
|
}
|
|
2838
2851
|
function c(_, T) {
|
|
2839
|
-
I.value[_] = T, p.datetimeFormats = I.value,
|
|
2852
|
+
I.value[_] = T, p.datetimeFormats = I.value, Pn(p, _, T);
|
|
2840
2853
|
}
|
|
2841
2854
|
function g(_, T) {
|
|
2842
|
-
I.value[_] = J(I.value[_] || {}, T), p.datetimeFormats = I.value,
|
|
2855
|
+
I.value[_] = J(I.value[_] || {}, T), p.datetimeFormats = I.value, Pn(p, _, T);
|
|
2843
2856
|
}
|
|
2844
2857
|
function y(_) {
|
|
2845
2858
|
return b.value[_] || {};
|
|
2846
2859
|
}
|
|
2847
2860
|
function x(_, T) {
|
|
2848
|
-
b.value[_] = T, p.numberFormats = b.value,
|
|
2861
|
+
b.value[_] = T, p.numberFormats = b.value, kn(p, _, T);
|
|
2849
2862
|
}
|
|
2850
2863
|
function B(_, T) {
|
|
2851
|
-
b.value[_] = J(b.value[_] || {}, T), p.numberFormats = b.value,
|
|
2864
|
+
b.value[_] = J(b.value[_] || {}, T), p.numberFormats = b.value, kn(p, _, T);
|
|
2852
2865
|
}
|
|
2853
|
-
|
|
2866
|
+
$n++, t && le && (ge(t.locale, (_) => {
|
|
2854
2867
|
o && (i.value = _, p.locale = _, Ye(p, i.value, u.value));
|
|
2855
|
-
}),
|
|
2868
|
+
}), ge(t.fallbackLocale, (_) => {
|
|
2856
2869
|
o && (u.value = _, p.fallbackLocale = _, Ye(p, i.value, u.value));
|
|
2857
2870
|
}));
|
|
2858
2871
|
const U = {
|
|
2859
|
-
id:
|
|
2872
|
+
id: $n,
|
|
2860
2873
|
locale: X,
|
|
2861
2874
|
fallbackLocale: ae,
|
|
2862
2875
|
get inheritLocale() {
|
|
@@ -2915,75 +2928,75 @@ function rn(e = {}) {
|
|
|
2915
2928
|
E = _, p.escapeParameter = _;
|
|
2916
2929
|
},
|
|
2917
2930
|
t: $e,
|
|
2918
|
-
getLocaleMessage:
|
|
2931
|
+
getLocaleMessage: he,
|
|
2919
2932
|
setLocaleMessage: xe,
|
|
2920
|
-
mergeLocaleMessage:
|
|
2921
|
-
getPostTranslationHandler:
|
|
2922
|
-
setPostTranslationHandler:
|
|
2923
|
-
getMissingHandler:
|
|
2924
|
-
setMissingHandler:
|
|
2925
|
-
[
|
|
2933
|
+
mergeLocaleMessage: At,
|
|
2934
|
+
getPostTranslationHandler: dt,
|
|
2935
|
+
setPostTranslationHandler: Et,
|
|
2936
|
+
getMissingHandler: pt,
|
|
2937
|
+
setMissingHandler: gt,
|
|
2938
|
+
[Cr]: vt
|
|
2926
2939
|
};
|
|
2927
|
-
return U.datetimeFormats = Pe, U.numberFormats =
|
|
2940
|
+
return U.datetimeFormats = Pe, U.numberFormats = mt, U.rt = Tt, U.te = Ct, U.tm = Ge, 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[Ar] = n, U[$t] = qe, U[Wt] = Ze, U[Gt] = Ot, process.env.NODE_ENV !== "production" && (U[ye] = (_) => {
|
|
2928
2941
|
p.__v_emitter = _;
|
|
2929
2942
|
}, U[Xe] = () => {
|
|
2930
2943
|
p.__v_emitter = void 0;
|
|
2931
2944
|
}), U;
|
|
2932
2945
|
}
|
|
2933
|
-
const
|
|
2946
|
+
const Pr = "vue-i18n: composer properties", kt = {
|
|
2934
2947
|
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
2935
2948
|
"vue-i18n-resource-inspector": "Vue I18n DevTools",
|
|
2936
2949
|
"vue-i18n-timeline": "Vue I18n"
|
|
2937
|
-
},
|
|
2950
|
+
}, oo = {
|
|
2938
2951
|
"vue-i18n-resource-inspector": "Search for scopes ..."
|
|
2939
|
-
},
|
|
2952
|
+
}, lo = {
|
|
2940
2953
|
"vue-i18n-timeline": 16764185
|
|
2941
2954
|
};
|
|
2942
|
-
let
|
|
2943
|
-
async function
|
|
2955
|
+
let Ht;
|
|
2956
|
+
async function io(e, t) {
|
|
2944
2957
|
return new Promise((n, r) => {
|
|
2945
2958
|
try {
|
|
2946
|
-
|
|
2959
|
+
za({
|
|
2947
2960
|
id: "vue-devtools-plugin-vue-i18n",
|
|
2948
|
-
label:
|
|
2961
|
+
label: kt["vue-devtools-plugin-vue-i18n"],
|
|
2949
2962
|
packageName: "vue-i18n",
|
|
2950
2963
|
homepage: "https://vue-i18n.intlify.dev",
|
|
2951
2964
|
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
|
2952
|
-
componentStateTypes: [
|
|
2965
|
+
componentStateTypes: [Pr],
|
|
2953
2966
|
app: e
|
|
2954
2967
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2955
2968
|
}, (s) => {
|
|
2956
|
-
|
|
2957
|
-
|
|
2969
|
+
Ht = s, s.on.visitComponentTree(({ componentInstance: o, treeNode: i }) => {
|
|
2970
|
+
co(o, i, t);
|
|
2958
2971
|
}), s.on.inspectComponent(({ componentInstance: o, instanceData: i }) => {
|
|
2959
|
-
o.__VUE_I18N__ && i && (t.mode === "legacy" ? o.__VUE_I18N__ !== t.global.__composer &&
|
|
2972
|
+
o.__VUE_I18N__ && i && (t.mode === "legacy" ? o.__VUE_I18N__ !== t.global.__composer && Gn(i, o.__VUE_I18N__) : Gn(i, o.__VUE_I18N__));
|
|
2960
2973
|
}), s.addInspector({
|
|
2961
2974
|
id: "vue-i18n-resource-inspector",
|
|
2962
|
-
label:
|
|
2975
|
+
label: kt["vue-i18n-resource-inspector"],
|
|
2963
2976
|
icon: "language",
|
|
2964
|
-
treeFilterPlaceholder:
|
|
2977
|
+
treeFilterPlaceholder: oo["vue-i18n-resource-inspector"]
|
|
2965
2978
|
}), s.on.getInspectorTree((o) => {
|
|
2966
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2979
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && Eo(o, t);
|
|
2967
2980
|
});
|
|
2968
2981
|
const a = /* @__PURE__ */ new Map();
|
|
2969
2982
|
s.on.getInspectorState(async (o) => {
|
|
2970
2983
|
if (o.app === e && o.inspectorId === "vue-i18n-resource-inspector")
|
|
2971
|
-
if (s.unhighlightElement(),
|
|
2984
|
+
if (s.unhighlightElement(), go(o, t), o.nodeId === "global") {
|
|
2972
2985
|
if (!a.has(o.app)) {
|
|
2973
2986
|
const [i] = await s.getComponentInstances(o.app);
|
|
2974
2987
|
a.set(o.app, i);
|
|
2975
2988
|
}
|
|
2976
2989
|
s.highlightElement(a.get(o.app));
|
|
2977
2990
|
} else {
|
|
2978
|
-
const i =
|
|
2991
|
+
const i = po(o.nodeId, t);
|
|
2979
2992
|
i && s.highlightElement(i);
|
|
2980
2993
|
}
|
|
2981
2994
|
}), s.on.editInspectorState((o) => {
|
|
2982
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2995
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && To(o, t);
|
|
2983
2996
|
}), s.addTimelineLayer({
|
|
2984
2997
|
id: "vue-i18n-timeline",
|
|
2985
|
-
label:
|
|
2986
|
-
color:
|
|
2998
|
+
label: kt["vue-i18n-timeline"],
|
|
2999
|
+
color: lo["vue-i18n-timeline"]
|
|
2987
3000
|
}), n(!0);
|
|
2988
3001
|
});
|
|
2989
3002
|
} catch (s) {
|
|
@@ -2991,22 +3004,22 @@ async function oo(e, t) {
|
|
|
2991
3004
|
}
|
|
2992
3005
|
});
|
|
2993
3006
|
}
|
|
2994
|
-
function
|
|
3007
|
+
function Dr(e) {
|
|
2995
3008
|
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
2996
3009
|
}
|
|
2997
|
-
function
|
|
3010
|
+
function co(e, t, n) {
|
|
2998
3011
|
const r = n.mode === "composition" ? n.global : n.global.__composer;
|
|
2999
3012
|
if (e && e.__VUE_I18N__ && e.__VUE_I18N__ !== r) {
|
|
3000
3013
|
const s = {
|
|
3001
|
-
label: `i18n (${
|
|
3014
|
+
label: `i18n (${Dr(e)} Scope)`,
|
|
3002
3015
|
textColor: 0,
|
|
3003
3016
|
backgroundColor: 16764185
|
|
3004
3017
|
};
|
|
3005
3018
|
t.tags.push(s);
|
|
3006
3019
|
}
|
|
3007
3020
|
}
|
|
3008
|
-
function
|
|
3009
|
-
const n =
|
|
3021
|
+
function Gn(e, t) {
|
|
3022
|
+
const n = Pr;
|
|
3010
3023
|
e.state.push({
|
|
3011
3024
|
type: n,
|
|
3012
3025
|
key: "locale",
|
|
@@ -3031,7 +3044,7 @@ function Vn(e, t) {
|
|
|
3031
3044
|
type: n,
|
|
3032
3045
|
key: "messages",
|
|
3033
3046
|
editable: !1,
|
|
3034
|
-
value:
|
|
3047
|
+
value: ln(t.messages.value)
|
|
3035
3048
|
}), e.state.push({
|
|
3036
3049
|
type: n,
|
|
3037
3050
|
key: "datetimeFormats",
|
|
@@ -3044,34 +3057,34 @@ function Vn(e, t) {
|
|
|
3044
3057
|
value: t.numberFormats.value
|
|
3045
3058
|
});
|
|
3046
3059
|
}
|
|
3047
|
-
function
|
|
3060
|
+
function ln(e) {
|
|
3048
3061
|
const t = {};
|
|
3049
3062
|
return Object.keys(e).forEach((n) => {
|
|
3050
3063
|
const r = e[n];
|
|
3051
|
-
W(r) && "source" in r ? t[n] =
|
|
3064
|
+
W(r) && "source" in r ? t[n] = mo(r) : se(r) && r.loc && r.loc.source ? t[n] = r.loc.source : M(r) ? t[n] = ln(r) : t[n] = r;
|
|
3052
3065
|
}), t;
|
|
3053
3066
|
}
|
|
3054
|
-
const
|
|
3067
|
+
const uo = {
|
|
3055
3068
|
"<": "<",
|
|
3056
3069
|
">": ">",
|
|
3057
3070
|
'"': """,
|
|
3058
3071
|
"&": "&"
|
|
3059
3072
|
};
|
|
3060
|
-
function
|
|
3061
|
-
return e.replace(/[<>"&]/g,
|
|
3073
|
+
function fo(e) {
|
|
3074
|
+
return e.replace(/[<>"&]/g, _o);
|
|
3062
3075
|
}
|
|
3063
|
-
function
|
|
3064
|
-
return
|
|
3076
|
+
function _o(e) {
|
|
3077
|
+
return uo[e] || e;
|
|
3065
3078
|
}
|
|
3066
|
-
function
|
|
3079
|
+
function mo(e) {
|
|
3067
3080
|
return {
|
|
3068
3081
|
_custom: {
|
|
3069
3082
|
type: "function",
|
|
3070
|
-
display: `<span>ƒ</span> ${e.source ? `("${
|
|
3083
|
+
display: `<span>ƒ</span> ${e.source ? `("${fo(e.source)}")` : "(?)"}`
|
|
3071
3084
|
}
|
|
3072
3085
|
};
|
|
3073
3086
|
}
|
|
3074
|
-
function
|
|
3087
|
+
function Eo(e, t) {
|
|
3075
3088
|
e.rootNodes.push({
|
|
3076
3089
|
id: "global",
|
|
3077
3090
|
label: "Global Scope"
|
|
@@ -3081,11 +3094,11 @@ function _o(e, t) {
|
|
|
3081
3094
|
const a = t.mode === "composition" ? s : s.__composer;
|
|
3082
3095
|
n !== a && e.rootNodes.push({
|
|
3083
3096
|
id: a.id.toString(),
|
|
3084
|
-
label: `${
|
|
3097
|
+
label: `${Dr(r)} Scope`
|
|
3085
3098
|
});
|
|
3086
3099
|
}
|
|
3087
3100
|
}
|
|
3088
|
-
function
|
|
3101
|
+
function po(e, t) {
|
|
3089
3102
|
let n = null;
|
|
3090
3103
|
if (e !== "global") {
|
|
3091
3104
|
for (const [r, s] of t.__instances.entries())
|
|
@@ -3096,7 +3109,7 @@ function mo(e, t) {
|
|
|
3096
3109
|
}
|
|
3097
3110
|
return n;
|
|
3098
3111
|
}
|
|
3099
|
-
function
|
|
3112
|
+
function kr(e, t) {
|
|
3100
3113
|
if (e === "global")
|
|
3101
3114
|
return t.mode === "composition" ? t.global : t.global.__composer;
|
|
3102
3115
|
{
|
|
@@ -3104,11 +3117,11 @@ function Pr(e, t) {
|
|
|
3104
3117
|
return n ? t.mode === "composition" ? n : n.__composer : null;
|
|
3105
3118
|
}
|
|
3106
3119
|
}
|
|
3107
|
-
function
|
|
3108
|
-
const n =
|
|
3109
|
-
return n && (e.state =
|
|
3120
|
+
function go(e, t) {
|
|
3121
|
+
const n = kr(e.nodeId, t);
|
|
3122
|
+
return n && (e.state = No(n)), null;
|
|
3110
3123
|
}
|
|
3111
|
-
function
|
|
3124
|
+
function No(e) {
|
|
3112
3125
|
const t = {}, n = "Locale related info", r = [
|
|
3113
3126
|
{
|
|
3114
3127
|
type: n,
|
|
@@ -3141,7 +3154,7 @@ function po(e) {
|
|
|
3141
3154
|
type: s,
|
|
3142
3155
|
key: "messages",
|
|
3143
3156
|
editable: !1,
|
|
3144
|
-
value:
|
|
3157
|
+
value: ln(e.messages.value)
|
|
3145
3158
|
}
|
|
3146
3159
|
];
|
|
3147
3160
|
t[s] = a;
|
|
@@ -3168,9 +3181,9 @@ function po(e) {
|
|
|
3168
3181
|
return t;
|
|
3169
3182
|
}
|
|
3170
3183
|
function Qe(e, t) {
|
|
3171
|
-
if (
|
|
3184
|
+
if (Ht) {
|
|
3172
3185
|
let n;
|
|
3173
|
-
t && "groupId" in t && (n = t.groupId, delete t.groupId),
|
|
3186
|
+
t && "groupId" in t && (n = t.groupId, delete t.groupId), Ht.addTimelineEvent({
|
|
3174
3187
|
layerId: "vue-i18n-timeline",
|
|
3175
3188
|
event: {
|
|
3176
3189
|
title: e,
|
|
@@ -3183,14 +3196,14 @@ function Qe(e, t) {
|
|
|
3183
3196
|
});
|
|
3184
3197
|
}
|
|
3185
3198
|
}
|
|
3186
|
-
function
|
|
3187
|
-
const n =
|
|
3199
|
+
function To(e, t) {
|
|
3200
|
+
const n = kr(e.nodeId, t);
|
|
3188
3201
|
if (n) {
|
|
3189
3202
|
const [r] = e.path;
|
|
3190
3203
|
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);
|
|
3191
3204
|
}
|
|
3192
3205
|
}
|
|
3193
|
-
function
|
|
3206
|
+
function bo(e) {
|
|
3194
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) || Fe(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, a = F(e.silentFallbackWarn) || Fe(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = F(e.fallbackRoot) ? e.fallbackRoot : !0, i = !!e.formatFallbackMessages, u = R(e.modifiers) ? e.modifiers : {}, d = 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;
|
|
3195
3208
|
let D = e.messages;
|
|
3196
3209
|
if (R(e.sharedMessages)) {
|
|
@@ -3225,8 +3238,8 @@ function No(e) {
|
|
|
3225
3238
|
__injectWithOption: f
|
|
3226
3239
|
};
|
|
3227
3240
|
}
|
|
3228
|
-
function
|
|
3229
|
-
const t =
|
|
3241
|
+
function Yt(e = {}) {
|
|
3242
|
+
const t = on(bo(e)), { __extender: n } = e, r = {
|
|
3230
3243
|
// id
|
|
3231
3244
|
id: t.id,
|
|
3232
3245
|
// locale
|
|
@@ -3394,7 +3407,7 @@ function Ht(e = {}) {
|
|
|
3394
3407
|
s[Xe] && s[Xe]();
|
|
3395
3408
|
}), r;
|
|
3396
3409
|
}
|
|
3397
|
-
function
|
|
3410
|
+
function ho(e, t, n) {
|
|
3398
3411
|
return {
|
|
3399
3412
|
beforeCreate() {
|
|
3400
3413
|
const r = Me();
|
|
@@ -3404,17 +3417,17 @@ function To(e, t, n) {
|
|
|
3404
3417
|
if (s.i18n) {
|
|
3405
3418
|
const a = s.i18n;
|
|
3406
3419
|
if (s.__i18n && (a.__i18n = s.__i18n), a.__root = t, this === this.$root)
|
|
3407
|
-
this.$i18n =
|
|
3420
|
+
this.$i18n = xn(e, a);
|
|
3408
3421
|
else {
|
|
3409
|
-
a.__injectWithOption = !0, a.__extender = n.__vueI18nExtend, this.$i18n =
|
|
3422
|
+
a.__injectWithOption = !0, a.__extender = n.__vueI18nExtend, this.$i18n = Yt(a);
|
|
3410
3423
|
const o = this.$i18n;
|
|
3411
3424
|
o.__extender && (o.__disposer = o.__extender(this.$i18n));
|
|
3412
3425
|
}
|
|
3413
3426
|
} else if (s.__i18n)
|
|
3414
3427
|
if (this === this.$root)
|
|
3415
|
-
this.$i18n =
|
|
3428
|
+
this.$i18n = xn(e, s);
|
|
3416
3429
|
else {
|
|
3417
|
-
this.$i18n =
|
|
3430
|
+
this.$i18n = Yt({
|
|
3418
3431
|
__i18n: s.__i18n,
|
|
3419
3432
|
__injectWithOption: !0,
|
|
3420
3433
|
__extender: n.__vueI18nExtend,
|
|
@@ -3425,7 +3438,7 @@ function To(e, t, n) {
|
|
|
3425
3438
|
}
|
|
3426
3439
|
else
|
|
3427
3440
|
this.$i18n = e;
|
|
3428
|
-
s.__i18nGlobal &&
|
|
3441
|
+
s.__i18nGlobal && yr(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);
|
|
3429
3442
|
},
|
|
3430
3443
|
mounted() {
|
|
3431
3444
|
if (process.env.NODE_ENV !== "production" && this.$i18n) {
|
|
@@ -3434,7 +3447,7 @@ function To(e, t, n) {
|
|
|
3434
3447
|
return;
|
|
3435
3448
|
const s = this.$i18n;
|
|
3436
3449
|
r.__VUE_I18N__ = s.__composer;
|
|
3437
|
-
const a = this.__v_emitter =
|
|
3450
|
+
const a = this.__v_emitter = en();
|
|
3438
3451
|
s.__enableEmitter && s.__enableEmitter(a), a.on("*", Qe);
|
|
3439
3452
|
}
|
|
3440
3453
|
},
|
|
@@ -3447,15 +3460,15 @@ function To(e, t, n) {
|
|
|
3447
3460
|
}
|
|
3448
3461
|
};
|
|
3449
3462
|
}
|
|
3450
|
-
function
|
|
3451
|
-
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[
|
|
3452
|
-
const n =
|
|
3463
|
+
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[Cr](t.pluralizationRules || e.pluralizationRules);
|
|
3465
|
+
const n = an(e.locale, {
|
|
3453
3466
|
messages: t.messages,
|
|
3454
3467
|
__i18n: t.__i18n
|
|
3455
3468
|
});
|
|
3456
3469
|
return Object.keys(n).forEach((r) => e.mergeLocaleMessage(r, n[r])), t.datetimeFormats && Object.keys(t.datetimeFormats).forEach((r) => e.mergeDateTimeFormat(r, t.datetimeFormats[r])), t.numberFormats && Object.keys(t.numberFormats).forEach((r) => e.mergeNumberFormat(r, t.numberFormats[r])), e;
|
|
3457
3470
|
}
|
|
3458
|
-
const
|
|
3471
|
+
const cn = {
|
|
3459
3472
|
tag: {
|
|
3460
3473
|
type: [String, Object]
|
|
3461
3474
|
},
|
|
@@ -3473,20 +3486,20 @@ const an = {
|
|
|
3473
3486
|
type: Object
|
|
3474
3487
|
}
|
|
3475
3488
|
};
|
|
3476
|
-
function
|
|
3489
|
+
function Io({ slots: e }, t) {
|
|
3477
3490
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, s) => [
|
|
3478
3491
|
...r,
|
|
3479
3492
|
// prettier-ignore
|
|
3480
|
-
...s.type ===
|
|
3493
|
+
...s.type === ot ? s.children : [s]
|
|
3481
3494
|
], []) : t.reduce((n, r) => {
|
|
3482
3495
|
const s = e[r];
|
|
3483
3496
|
return s && (n[r] = s()), n;
|
|
3484
3497
|
}, $());
|
|
3485
3498
|
}
|
|
3486
|
-
function
|
|
3487
|
-
return
|
|
3499
|
+
function Rr() {
|
|
3500
|
+
return ot;
|
|
3488
3501
|
}
|
|
3489
|
-
const
|
|
3502
|
+
const Lo = /* @__PURE__ */ _e({
|
|
3490
3503
|
/* eslint-disable */
|
|
3491
3504
|
name: "i18n-t",
|
|
3492
3505
|
props: J({
|
|
@@ -3498,26 +3511,26 @@ const ho = /* @__PURE__ */ ge({
|
|
|
3498
3511
|
type: [Number, String],
|
|
3499
3512
|
validator: (e) => j(e) || !isNaN(e)
|
|
3500
3513
|
}
|
|
3501
|
-
},
|
|
3514
|
+
}, cn),
|
|
3502
3515
|
/* eslint-enable */
|
|
3503
3516
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3504
3517
|
setup(e, t) {
|
|
3505
|
-
const { slots: n, attrs: r } = t, s = e.i18n ||
|
|
3518
|
+
const { slots: n, attrs: r } = t, s = e.i18n || un({
|
|
3506
3519
|
useScope: e.scope,
|
|
3507
3520
|
__useComponent: !0
|
|
3508
3521
|
});
|
|
3509
3522
|
return () => {
|
|
3510
3523
|
const a = Object.keys(n).filter((b) => b[0] !== "_"), o = $();
|
|
3511
3524
|
e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = L(e.plural) ? +e.plural : e.plural);
|
|
3512
|
-
const i =
|
|
3513
|
-
return
|
|
3525
|
+
const i = Io(t, a), u = s[$t](e.keypath, i, o), d = J($(), r), I = L(e.tag) || M(e.tag) ? e.tag : Rr();
|
|
3526
|
+
return zn(I, d, u);
|
|
3514
3527
|
};
|
|
3515
3528
|
}
|
|
3516
|
-
}),
|
|
3517
|
-
function
|
|
3529
|
+
}), Hn = Lo;
|
|
3530
|
+
function Oo(e) {
|
|
3518
3531
|
return H(e) && !L(e[0]);
|
|
3519
3532
|
}
|
|
3520
|
-
function
|
|
3533
|
+
function Mr(e, t, n, r) {
|
|
3521
3534
|
const { slots: s, attrs: a } = t;
|
|
3522
3535
|
return () => {
|
|
3523
3536
|
const o = { part: !0 };
|
|
@@ -3527,13 +3540,13 @@ function kr(e, t, n, r) {
|
|
|
3527
3540
|
let d = [o.key];
|
|
3528
3541
|
H(u) ? d = u.map((N, A) => {
|
|
3529
3542
|
const D = s[N.type], C = D ? D({ [N.type]: N.value, index: A, parts: u }) : [N.value];
|
|
3530
|
-
return
|
|
3543
|
+
return Oo(C) && (C[0].key = `${N.type}-${A}`), C;
|
|
3531
3544
|
}) : L(u) && (d = [u]);
|
|
3532
|
-
const I = J($(), a), b = L(e.tag) || M(e.tag) ? e.tag :
|
|
3533
|
-
return
|
|
3545
|
+
const I = J($(), a), b = L(e.tag) || M(e.tag) ? e.tag : Rr();
|
|
3546
|
+
return zn(b, I, d);
|
|
3534
3547
|
};
|
|
3535
3548
|
}
|
|
3536
|
-
const
|
|
3549
|
+
const vo = /* @__PURE__ */ _e({
|
|
3537
3550
|
/* eslint-disable */
|
|
3538
3551
|
name: "i18n-n",
|
|
3539
3552
|
props: J({
|
|
@@ -3544,21 +3557,21 @@ const Lo = /* @__PURE__ */ ge({
|
|
|
3544
3557
|
format: {
|
|
3545
3558
|
type: [String, Object]
|
|
3546
3559
|
}
|
|
3547
|
-
},
|
|
3560
|
+
}, cn),
|
|
3548
3561
|
/* eslint-enable */
|
|
3549
3562
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3550
3563
|
setup(e, t) {
|
|
3551
|
-
const n = e.i18n ||
|
|
3564
|
+
const n = e.i18n || un({
|
|
3552
3565
|
useScope: e.scope,
|
|
3553
3566
|
__useComponent: !0
|
|
3554
3567
|
});
|
|
3555
|
-
return
|
|
3568
|
+
return Mr(e, t, Ir, (...r) => (
|
|
3556
3569
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3557
|
-
n[
|
|
3570
|
+
n[Gt](...r)
|
|
3558
3571
|
));
|
|
3559
3572
|
}
|
|
3560
|
-
}),
|
|
3561
|
-
function
|
|
3573
|
+
}), Yn = vo;
|
|
3574
|
+
function Co(e, t) {
|
|
3562
3575
|
const n = e;
|
|
3563
3576
|
if (e.mode === "composition")
|
|
3564
3577
|
return n.__getInstance(t) || e.global;
|
|
@@ -3567,22 +3580,22 @@ function Oo(e, t) {
|
|
|
3567
3580
|
return r != null ? r.__composer : e.global.__composer;
|
|
3568
3581
|
}
|
|
3569
3582
|
}
|
|
3570
|
-
function
|
|
3583
|
+
function Ao(e) {
|
|
3571
3584
|
const t = (o) => {
|
|
3572
|
-
process.env.NODE_ENV !== "production" &&
|
|
3585
|
+
process.env.NODE_ENV !== "production" && qt(we(ne.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
|
|
3573
3586
|
const { instance: i, value: u } = o;
|
|
3574
3587
|
if (!i || !i.$)
|
|
3575
3588
|
throw z(G.UNEXPECTED_ERROR);
|
|
3576
|
-
const d =
|
|
3589
|
+
const d = Co(e, i.$), I = Bn(u);
|
|
3577
3590
|
return [
|
|
3578
|
-
Reflect.apply(d.t, d, [...
|
|
3591
|
+
Reflect.apply(d.t, d, [...Kn(I)]),
|
|
3579
3592
|
d
|
|
3580
3593
|
];
|
|
3581
3594
|
};
|
|
3582
3595
|
return {
|
|
3583
3596
|
created: (o, i) => {
|
|
3584
3597
|
const [u, d] = t(i);
|
|
3585
|
-
le && e.global === d && (o.__i18nWatcher =
|
|
3598
|
+
le && e.global === d && (o.__i18nWatcher = ge(d.locale, () => {
|
|
3586
3599
|
i.instance && i.instance.$forceUpdate();
|
|
3587
3600
|
})), o.__composer = d, o.textContent = u;
|
|
3588
3601
|
},
|
|
@@ -3591,9 +3604,9 @@ function vo(e) {
|
|
|
3591
3604
|
},
|
|
3592
3605
|
beforeUpdate: (o, { value: i }) => {
|
|
3593
3606
|
if (o.__composer) {
|
|
3594
|
-
const u = o.__composer, d =
|
|
3607
|
+
const u = o.__composer, d = Bn(i);
|
|
3595
3608
|
o.textContent = Reflect.apply(u.t, u, [
|
|
3596
|
-
...
|
|
3609
|
+
...Kn(d)
|
|
3597
3610
|
]);
|
|
3598
3611
|
}
|
|
3599
3612
|
},
|
|
@@ -3603,7 +3616,7 @@ function vo(e) {
|
|
|
3603
3616
|
}
|
|
3604
3617
|
};
|
|
3605
3618
|
}
|
|
3606
|
-
function
|
|
3619
|
+
function Bn(e) {
|
|
3607
3620
|
if (L(e))
|
|
3608
3621
|
return { path: e };
|
|
3609
3622
|
if (R(e)) {
|
|
@@ -3613,19 +3626,19 @@ function xn(e) {
|
|
|
3613
3626
|
} else
|
|
3614
3627
|
throw z(G.INVALID_VALUE);
|
|
3615
3628
|
}
|
|
3616
|
-
function
|
|
3629
|
+
function Kn(e) {
|
|
3617
3630
|
const { path: t, locale: n, args: r, choice: s, plural: a } = e, o = {}, i = r || {};
|
|
3618
3631
|
return L(n) && (o.locale = n), j(s) && (o.plural = s), j(a) && (o.plural = a), [t, i, o];
|
|
3619
3632
|
}
|
|
3620
|
-
function
|
|
3633
|
+
function So(e, t, ...n) {
|
|
3621
3634
|
const r = R(n[0]) ? n[0] : {};
|
|
3622
|
-
(!F(r.globalInstall) || r.globalInstall) && ([
|
|
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", Ao(t));
|
|
3623
3636
|
}
|
|
3624
|
-
const
|
|
3625
|
-
function
|
|
3637
|
+
const yo = /* @__PURE__ */ me("global-vue-i18n");
|
|
3638
|
+
function Po(e = {}) {
|
|
3626
3639
|
const t = __VUE_I18N_LEGACY_API__ && F(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
|
|
3627
|
-
process.env.NODE_ENV !== "production" && t &&
|
|
3628
|
-
const n = F(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [s, a] =
|
|
3640
|
+
process.env.NODE_ENV !== "production" && t && qt(we(ne.DEPRECATE_LEGACY_MODE));
|
|
3641
|
+
const n = F(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [s, a] = Do(e, t), o = /* @__PURE__ */ me(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
3629
3642
|
function i(b) {
|
|
3630
3643
|
return r.get(b) || null;
|
|
3631
3644
|
}
|
|
@@ -3647,14 +3660,14 @@ function So(e = {}) {
|
|
|
3647
3660
|
I.__composerExtend = C.__composerExtend, I.__vueI18nExtend = C.__vueI18nExtend;
|
|
3648
3661
|
}
|
|
3649
3662
|
let A = null;
|
|
3650
|
-
!t && n && (A =
|
|
3663
|
+
!t && n && (A = $o(b, I.global)), __VUE_I18N_FULL_INSTALL__ && So(b, I, ...N), __VUE_I18N_LEGACY_API__ && t && b.mixin(ho(a, a.__composer, I));
|
|
3651
3664
|
const D = b.unmount;
|
|
3652
3665
|
if (b.unmount = () => {
|
|
3653
3666
|
A && A(), I.dispose(), D();
|
|
3654
3667
|
}, process.env.NODE_ENV !== "production") {
|
|
3655
|
-
if (!await
|
|
3668
|
+
if (!await io(b, I))
|
|
3656
3669
|
throw z(G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
3657
|
-
const S =
|
|
3670
|
+
const S = en();
|
|
3658
3671
|
if (t) {
|
|
3659
3672
|
const f = a;
|
|
3660
3673
|
f.__enableEmitter && f.__enableEmitter(S);
|
|
@@ -3683,57 +3696,57 @@ function So(e = {}) {
|
|
|
3683
3696
|
};
|
|
3684
3697
|
return I;
|
|
3685
3698
|
}
|
|
3686
|
-
function
|
|
3699
|
+
function un(e = {}) {
|
|
3687
3700
|
const t = Me();
|
|
3688
3701
|
if (t == null)
|
|
3689
3702
|
throw z(G.MUST_BE_CALL_SETUP_TOP);
|
|
3690
3703
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
3691
3704
|
throw z(G.NOT_INSTALLED);
|
|
3692
|
-
const n =
|
|
3705
|
+
const n = ko(t), r = Mo(n), s = Sr(t), a = Ro(e, s);
|
|
3693
3706
|
if (a === "global")
|
|
3694
|
-
return
|
|
3707
|
+
return yr(r, e, s), r;
|
|
3695
3708
|
if (a === "parent") {
|
|
3696
|
-
let u =
|
|
3697
|
-
return u == null && (process.env.NODE_ENV !== "production" &&
|
|
3709
|
+
let u = Fo(n, t, e.__useComponent);
|
|
3710
|
+
return u == null && (process.env.NODE_ENV !== "production" && fe(we(ne.NOT_FOUND_PARENT_SCOPE)), u = r), u;
|
|
3698
3711
|
}
|
|
3699
3712
|
const o = n;
|
|
3700
3713
|
let i = o.__getInstance(t);
|
|
3701
3714
|
if (i == null) {
|
|
3702
3715
|
const u = J({}, e);
|
|
3703
|
-
"__i18n" in s && (u.__i18n = s.__i18n), r && (u.__root = r), i =
|
|
3716
|
+
"__i18n" in s && (u.__i18n = s.__i18n), r && (u.__root = r), i = on(u), o.__composerExtend && (i[xt] = o.__composerExtend(i)), wo(o, t, i), o.__setInstance(t, i);
|
|
3704
3717
|
} else
|
|
3705
|
-
process.env.NODE_ENV !== "production" && a === "local" &&
|
|
3718
|
+
process.env.NODE_ENV !== "production" && a === "local" && fe(we(ne.DUPLICATE_USE_I18N_CALLING));
|
|
3706
3719
|
return i;
|
|
3707
3720
|
}
|
|
3708
|
-
function
|
|
3709
|
-
const n =
|
|
3721
|
+
function Do(e, t) {
|
|
3722
|
+
const n = wr(), r = __VUE_I18N_LEGACY_API__ && t ? n.run(() => Yt(e)) : n.run(() => on(e));
|
|
3710
3723
|
if (r == null)
|
|
3711
3724
|
throw z(G.UNEXPECTED_ERROR);
|
|
3712
3725
|
return [n, r];
|
|
3713
3726
|
}
|
|
3714
|
-
function
|
|
3715
|
-
const t =
|
|
3727
|
+
function ko(e) {
|
|
3728
|
+
const t = Bt(e.isCE ? yo : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
3716
3729
|
if (!t)
|
|
3717
3730
|
throw z(e.isCE ? G.NOT_INSTALLED_WITH_PROVIDE : G.UNEXPECTED_ERROR);
|
|
3718
3731
|
return t;
|
|
3719
3732
|
}
|
|
3720
|
-
function
|
|
3721
|
-
return
|
|
3733
|
+
function Ro(e, t) {
|
|
3734
|
+
return ut(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
3722
3735
|
}
|
|
3723
|
-
function
|
|
3736
|
+
function Mo(e) {
|
|
3724
3737
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
3725
3738
|
}
|
|
3726
|
-
function
|
|
3739
|
+
function Fo(e, t, n = !1) {
|
|
3727
3740
|
let r = null;
|
|
3728
3741
|
const s = t.root;
|
|
3729
|
-
let a =
|
|
3742
|
+
let a = Uo(t, n);
|
|
3730
3743
|
for (; a != null; ) {
|
|
3731
3744
|
const o = e;
|
|
3732
3745
|
if (e.mode === "composition")
|
|
3733
3746
|
r = o.__getInstance(a);
|
|
3734
3747
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
3735
3748
|
const i = o.__getInstance(a);
|
|
3736
|
-
i != null && (r = i.__composer, n && r && !r[
|
|
3749
|
+
i != null && (r = i.__composer, n && r && !r[Ar] && (r = null));
|
|
3737
3750
|
}
|
|
3738
3751
|
if (r != null || s === a)
|
|
3739
3752
|
break;
|
|
@@ -3741,36 +3754,36 @@ function Ro(e, t, n = !1) {
|
|
|
3741
3754
|
}
|
|
3742
3755
|
return r;
|
|
3743
3756
|
}
|
|
3744
|
-
function
|
|
3757
|
+
function Uo(e, t = !1) {
|
|
3745
3758
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
3746
3759
|
}
|
|
3747
|
-
function
|
|
3760
|
+
function wo(e, t, n) {
|
|
3748
3761
|
let r = null;
|
|
3749
|
-
|
|
3762
|
+
Wr(() => {
|
|
3750
3763
|
if (process.env.NODE_ENV !== "production") {
|
|
3751
|
-
t.__VUE_I18N__ = n, r =
|
|
3764
|
+
t.__VUE_I18N__ = n, r = en();
|
|
3752
3765
|
const s = n;
|
|
3753
3766
|
s[ye] && s[ye](r), r.on("*", Qe);
|
|
3754
3767
|
}
|
|
3755
|
-
}, t),
|
|
3768
|
+
}, t), Gr(() => {
|
|
3756
3769
|
const s = n;
|
|
3757
3770
|
process.env.NODE_ENV !== "production" && (r && r.off("*", Qe), s[Xe] && s[Xe](), delete t.__VUE_I18N__), e.__deleteInstance(t);
|
|
3758
|
-
const a = s[
|
|
3759
|
-
a && (a(), delete s[
|
|
3771
|
+
const a = s[xt];
|
|
3772
|
+
a && (a(), delete s[xt]);
|
|
3760
3773
|
}, t);
|
|
3761
3774
|
}
|
|
3762
|
-
const
|
|
3775
|
+
const Vo = [
|
|
3763
3776
|
"locale",
|
|
3764
3777
|
"fallbackLocale",
|
|
3765
3778
|
"availableLocales"
|
|
3766
|
-
],
|
|
3767
|
-
function
|
|
3779
|
+
], jn = ["t", "rt", "d", "n", "tm", "te"];
|
|
3780
|
+
function $o(e, t) {
|
|
3768
3781
|
const n = /* @__PURE__ */ Object.create(null);
|
|
3769
|
-
return
|
|
3782
|
+
return Vo.forEach((s) => {
|
|
3770
3783
|
const a = Object.getOwnPropertyDescriptor(t, s);
|
|
3771
3784
|
if (!a)
|
|
3772
3785
|
throw z(G.UNEXPECTED_ERROR);
|
|
3773
|
-
const o =
|
|
3786
|
+
const o = Vr(a.value) ? {
|
|
3774
3787
|
get() {
|
|
3775
3788
|
return a.value.value;
|
|
3776
3789
|
},
|
|
@@ -3784,18 +3797,18 @@ function wo(e, t) {
|
|
|
3784
3797
|
}
|
|
3785
3798
|
};
|
|
3786
3799
|
Object.defineProperty(n, s, o);
|
|
3787
|
-
}), e.config.globalProperties.$i18n = n,
|
|
3800
|
+
}), e.config.globalProperties.$i18n = n, jn.forEach((s) => {
|
|
3788
3801
|
const a = Object.getOwnPropertyDescriptor(t, s);
|
|
3789
3802
|
if (!a || !a.value)
|
|
3790
3803
|
throw z(G.UNEXPECTED_ERROR);
|
|
3791
3804
|
Object.defineProperty(e.config.globalProperties, `$${s}`, a);
|
|
3792
3805
|
}), () => {
|
|
3793
|
-
delete e.config.globalProperties.$i18n,
|
|
3806
|
+
delete e.config.globalProperties.$i18n, jn.forEach((s) => {
|
|
3794
3807
|
delete e.config.globalProperties[`$${s}`];
|
|
3795
3808
|
});
|
|
3796
3809
|
};
|
|
3797
3810
|
}
|
|
3798
|
-
const
|
|
3811
|
+
const Wo = /* @__PURE__ */ _e({
|
|
3799
3812
|
/* eslint-disable */
|
|
3800
3813
|
name: "i18n-d",
|
|
3801
3814
|
props: J({
|
|
@@ -3806,149 +3819,153 @@ const Vo = /* @__PURE__ */ ge({
|
|
|
3806
3819
|
format: {
|
|
3807
3820
|
type: [String, Object]
|
|
3808
3821
|
}
|
|
3809
|
-
},
|
|
3822
|
+
}, cn),
|
|
3810
3823
|
/* eslint-enable */
|
|
3811
3824
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3812
3825
|
setup(e, t) {
|
|
3813
|
-
const n = e.i18n ||
|
|
3826
|
+
const n = e.i18n || un({
|
|
3814
3827
|
useScope: e.scope,
|
|
3815
3828
|
__useComponent: !0
|
|
3816
3829
|
});
|
|
3817
|
-
return
|
|
3830
|
+
return Mr(e, t, hr, (...r) => (
|
|
3818
3831
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3819
|
-
n[
|
|
3832
|
+
n[Wt](...r)
|
|
3820
3833
|
));
|
|
3821
3834
|
}
|
|
3822
|
-
}),
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3835
|
+
}), Xn = Wo;
|
|
3836
|
+
to();
|
|
3837
|
+
va(ra);
|
|
3838
|
+
Ca(ba);
|
|
3839
|
+
Aa(_r);
|
|
3827
3840
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3828
|
-
const e =
|
|
3829
|
-
e.__INTLIFY__ = !0,
|
|
3841
|
+
const e = ve();
|
|
3842
|
+
e.__INTLIFY__ = !0, sa(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
3830
3843
|
}
|
|
3831
3844
|
process.env.NODE_ENV;
|
|
3832
|
-
const
|
|
3833
|
-
name:
|
|
3834
|
-
supplier:
|
|
3835
|
-
version:
|
|
3836
|
-
description:
|
|
3837
|
-
category:
|
|
3838
|
-
general:
|
|
3839
|
-
ioMapping:
|
|
3840
|
-
modbusSlaveChannel:
|
|
3841
|
-
status:
|
|
3842
|
-
ethernet:
|
|
3843
|
-
modbusTcpServer:
|
|
3844
|
-
modbusTcpClient:
|
|
3845
|
-
modbusTCPSlaveDevice:
|
|
3846
|
-
company:
|
|
3847
|
-
descriptionMap:
|
|
3848
|
-
netInterface:
|
|
3849
|
-
ipAddress:
|
|
3850
|
-
subnetMask:
|
|
3851
|
-
defaultGateway:
|
|
3852
|
-
adaptedOSConfiguration:
|
|
3853
|
-
busCycleTask:
|
|
3854
|
-
defaultTask:
|
|
3855
|
-
responseTimeout:
|
|
3856
|
-
socketTimeout:
|
|
3857
|
-
reconnect:
|
|
3858
|
-
slaveIpAddress:
|
|
3859
|
-
port:
|
|
3860
|
-
watchDog:
|
|
3861
|
-
slavePort:
|
|
3862
|
-
bindToAdapter:
|
|
3863
|
-
holdingRegister:
|
|
3864
|
-
writable:
|
|
3865
|
-
inputRegister:
|
|
3866
|
-
discreteBitArea:
|
|
3867
|
-
coil:
|
|
3868
|
-
discreteInput:
|
|
3869
|
-
dataModel:
|
|
3870
|
-
startAddress:
|
|
3871
|
-
},
|
|
3872
|
-
name:
|
|
3873
|
-
supplier:
|
|
3874
|
-
version:
|
|
3875
|
-
description:
|
|
3876
|
-
category:
|
|
3877
|
-
general:
|
|
3878
|
-
ioMapping:
|
|
3879
|
-
modbusSlaveChannel:
|
|
3880
|
-
status:
|
|
3881
|
-
ethernet:
|
|
3882
|
-
modbusTcpServer:
|
|
3883
|
-
modbusTcpClient:
|
|
3884
|
-
modbusTCPSlaveDevice:
|
|
3885
|
-
company:
|
|
3886
|
-
descriptionMap:
|
|
3887
|
-
netInterface:
|
|
3888
|
-
ipAddress:
|
|
3889
|
-
subnetMask:
|
|
3890
|
-
defaultGateway:
|
|
3891
|
-
adaptedOSConfiguration:
|
|
3892
|
-
busCycleTask:
|
|
3893
|
-
defaultTask:
|
|
3894
|
-
responseTimeout:
|
|
3895
|
-
socketTimeout:
|
|
3896
|
-
reconnect:
|
|
3897
|
-
slaveIpAddress:
|
|
3898
|
-
port:
|
|
3899
|
-
watchDog:
|
|
3900
|
-
slavePort:
|
|
3901
|
-
bindToAdapter:
|
|
3902
|
-
holdingRegister:
|
|
3903
|
-
writable:
|
|
3904
|
-
inputRegister:
|
|
3905
|
-
discreteBitArea:
|
|
3906
|
-
coil:
|
|
3907
|
-
discreteInput:
|
|
3908
|
-
dataModel:
|
|
3909
|
-
startAddress:
|
|
3910
|
-
},
|
|
3911
|
-
zh:
|
|
3912
|
-
en:
|
|
3913
|
-
},
|
|
3845
|
+
const Go = "名称", xo = "供应商", Ho = "版本", Yo = "描述", Bo = "类别", Ko = "通用", jo = "I/O映射", Xo = "Modbus从站通道", Jo = "状态", Qo = "以太网", qo = "Modbus TCP服务器", Zo = "Modbus TCP客户端", zo = "Modbus TCP从站设备", el = "成都数字创新科技有限公司", tl = { ethernet: "一种在以太网上充当Modbus服务器的设备。", modbusTcpServer: "一种在以太网上充当Modbus TCP服务器的设备。", modbusTcpClient: "一种在以太网上充当Modbus TCP客户端的设备。", modbusTCPSlaveDevice: "一种在以太网上充当Modbus TCP从站设备。" }, nl = "网络接口", rl = "IP地址", sl = "子网掩码", al = "默认网关", ol = "适配操作系统配置", ll = "总线周期任务", il = "使用父总线循环设置", cl = "响应超时(ms)", ul = "Socket超时(ms)", fl = "自动重连", _l = "从站IP地址", ml = "端口", dl = " 看门狗", El = "从站端口", pl = "绑定到适配器", gl = "保持寄存器", Nl = "可写入", Tl = "输入寄存器", bl = "离散位区域", hl = "线圈", Il = "离散输入", Ll = "数据模型", Ol = "起始地址", vl = {
|
|
3846
|
+
name: Go,
|
|
3847
|
+
supplier: xo,
|
|
3848
|
+
version: Ho,
|
|
3849
|
+
description: Yo,
|
|
3850
|
+
category: Bo,
|
|
3851
|
+
general: Ko,
|
|
3852
|
+
ioMapping: jo,
|
|
3853
|
+
modbusSlaveChannel: Xo,
|
|
3854
|
+
status: Jo,
|
|
3855
|
+
ethernet: Qo,
|
|
3856
|
+
modbusTcpServer: qo,
|
|
3857
|
+
modbusTcpClient: Zo,
|
|
3858
|
+
modbusTCPSlaveDevice: zo,
|
|
3859
|
+
company: el,
|
|
3860
|
+
descriptionMap: tl,
|
|
3861
|
+
netInterface: nl,
|
|
3862
|
+
ipAddress: rl,
|
|
3863
|
+
subnetMask: sl,
|
|
3864
|
+
defaultGateway: al,
|
|
3865
|
+
adaptedOSConfiguration: ol,
|
|
3866
|
+
busCycleTask: ll,
|
|
3867
|
+
defaultTask: il,
|
|
3868
|
+
responseTimeout: cl,
|
|
3869
|
+
socketTimeout: ul,
|
|
3870
|
+
reconnect: fl,
|
|
3871
|
+
slaveIpAddress: _l,
|
|
3872
|
+
port: ml,
|
|
3873
|
+
watchDog: dl,
|
|
3874
|
+
slavePort: El,
|
|
3875
|
+
bindToAdapter: pl,
|
|
3876
|
+
holdingRegister: gl,
|
|
3877
|
+
writable: Nl,
|
|
3878
|
+
inputRegister: Tl,
|
|
3879
|
+
discreteBitArea: bl,
|
|
3880
|
+
coil: hl,
|
|
3881
|
+
discreteInput: Il,
|
|
3882
|
+
dataModel: Ll,
|
|
3883
|
+
startAddress: Ol
|
|
3884
|
+
}, Cl = "Name", Al = "Supplier", Sl = "Version", yl = "Description", Pl = "Category", Dl = "General", kl = "I/O Mapping", Rl = "Modbus Slave Channel", Ml = "Status", Fl = "Ethernet", Ul = "Modbus TCP Server", wl = "Modbus TCP Client", Vl = "Modbus TCP Slave Device", $l = "Chengdu AIOSYS Innovation Technology Co., Ltd.", Wl = { 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." }, Gl = "Network Interface", xl = "IP Address", Hl = "Subnet Mask", Yl = "Default Gateway", Bl = "Adapted OS Configuration", Kl = "Bus Cycle Task", jl = "Use Parent Bus Cycle Setting", Xl = "Response Timeout(ms)", Jl = "Socket Timeout(ms)", Ql = "Reconnect", ql = "Slave IP Address", Zl = "Port", zl = "Watch Dog", ei = "Slave Port", ti = "Bind to Adapter", ni = "Holding Register", ri = "Writable", si = "Input Register", ai = "Discrete Bit Area", oi = "Coil", li = "Discrete Input", ii = "Data Model", ci = "Start Address", ui = {
|
|
3885
|
+
name: Cl,
|
|
3886
|
+
supplier: Al,
|
|
3887
|
+
version: Sl,
|
|
3888
|
+
description: yl,
|
|
3889
|
+
category: Pl,
|
|
3890
|
+
general: Dl,
|
|
3891
|
+
ioMapping: kl,
|
|
3892
|
+
modbusSlaveChannel: Rl,
|
|
3893
|
+
status: Ml,
|
|
3894
|
+
ethernet: Fl,
|
|
3895
|
+
modbusTcpServer: Ul,
|
|
3896
|
+
modbusTcpClient: wl,
|
|
3897
|
+
modbusTCPSlaveDevice: Vl,
|
|
3898
|
+
company: $l,
|
|
3899
|
+
descriptionMap: Wl,
|
|
3900
|
+
netInterface: Gl,
|
|
3901
|
+
ipAddress: xl,
|
|
3902
|
+
subnetMask: Hl,
|
|
3903
|
+
defaultGateway: Yl,
|
|
3904
|
+
adaptedOSConfiguration: Bl,
|
|
3905
|
+
busCycleTask: Kl,
|
|
3906
|
+
defaultTask: jl,
|
|
3907
|
+
responseTimeout: Xl,
|
|
3908
|
+
socketTimeout: Jl,
|
|
3909
|
+
reconnect: Ql,
|
|
3910
|
+
slaveIpAddress: ql,
|
|
3911
|
+
port: Zl,
|
|
3912
|
+
watchDog: zl,
|
|
3913
|
+
slavePort: ei,
|
|
3914
|
+
bindToAdapter: ti,
|
|
3915
|
+
holdingRegister: ni,
|
|
3916
|
+
writable: ri,
|
|
3917
|
+
inputRegister: si,
|
|
3918
|
+
discreteBitArea: ai,
|
|
3919
|
+
coil: oi,
|
|
3920
|
+
discreteInput: li,
|
|
3921
|
+
dataModel: ii,
|
|
3922
|
+
startAddress: ci
|
|
3923
|
+
}, fi = {
|
|
3924
|
+
zh: vl,
|
|
3925
|
+
en: ui
|
|
3926
|
+
}, Oe = Po({
|
|
3914
3927
|
legacy: !1,
|
|
3915
3928
|
locale: "zh",
|
|
3916
3929
|
fallbackLocale: "en",
|
|
3917
|
-
messages:
|
|
3930
|
+
messages: fi
|
|
3918
3931
|
});
|
|
3919
|
-
typeof window < "u" && (window.$t =
|
|
3932
|
+
typeof window < "u" && (window.$t = Oe.global.t.bind(Oe.global), Object.defineProperty(window, "$locale", {
|
|
3920
3933
|
get() {
|
|
3921
|
-
return typeof
|
|
3934
|
+
return typeof Oe.global.locale == "string" ? Oe.global.locale : Oe.global.locale.value;
|
|
3922
3935
|
},
|
|
3923
3936
|
set(e) {
|
|
3924
|
-
|
|
3937
|
+
Oe.global.locale = e;
|
|
3925
3938
|
}
|
|
3926
3939
|
}));
|
|
3927
|
-
const
|
|
3928
|
-
|
|
3929
|
-
const
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3940
|
+
const _i = Hr(as).use(Oe);
|
|
3941
|
+
_i.mount("#app");
|
|
3942
|
+
const mi = [
|
|
3943
|
+
Br,
|
|
3944
|
+
jr,
|
|
3945
|
+
tr,
|
|
3946
|
+
Qr,
|
|
3947
|
+
Jr
|
|
3948
|
+
], pi = {
|
|
3933
3949
|
install(e) {
|
|
3934
|
-
|
|
3950
|
+
mi.forEach((t) => {
|
|
3935
3951
|
e.component(t.name, t);
|
|
3936
3952
|
});
|
|
3937
3953
|
}
|
|
3938
3954
|
};
|
|
3939
3955
|
export {
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3956
|
+
jr as Button2,
|
|
3957
|
+
lt as EthernetProtocolItem,
|
|
3958
|
+
tr as Input,
|
|
3959
|
+
Qr as InputNumber,
|
|
3960
|
+
Jr as IpInput,
|
|
3961
|
+
Jt as ModbusTCPClientProtocolItem,
|
|
3962
|
+
Xt as ModbusTCPServerProtocolItem,
|
|
3963
|
+
Qt as ModbusTCPSlaveDeviceProtocolItem,
|
|
3964
|
+
Br as MyButton,
|
|
3965
|
+
Ei as MyLibPlugin,
|
|
3966
|
+
rs as ProtocolCollection,
|
|
3950
3967
|
re as ProtocolItem,
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3968
|
+
Ne as ProtocolType,
|
|
3969
|
+
pi as default,
|
|
3970
|
+
it as protocolMap
|
|
3954
3971
|
};
|