lty-protocol 1.0.23 → 1.0.25
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/Input.vue.d.ts +3 -3
- package/dist/components/IpInput.vue.d.ts +3 -3
- package/dist/index.d.ts +0 -1
- package/dist/keys.d.ts +8 -0
- package/dist/lty-protocol.mjs +892 -888
- package/dist/lty-protocol.umd.js +6 -6
- package/dist/plugin.d.ts +4 -7
- package/package.json +1 -1
package/dist/lty-protocol.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { defineComponent as pe, openBlock as
|
|
3
|
-
const
|
|
1
|
+
import * as St from "vue";
|
|
2
|
+
import { defineComponent as pe, openBlock as Ne, createElementBlock as He, renderSlot as Zn, inject as jt, computed as ge, createBlock as Xt, resolveDynamicComponent as zn, unref as er, normalizeProps as tr, guardReactiveProps as nr, Fragment as Jt, renderList as xr, ref as nt, resolveComponent as yt, createVNode as rt, effectScope as Hr, watch as Mt, isRef as Yr, shallowRef as Kr, h as rr, onMounted as Br, onUnmounted as jr, Text as Xr, createApp as Jr } from "vue";
|
|
3
|
+
const Qr = /* @__PURE__ */ pe({
|
|
4
4
|
name: "MyButton",
|
|
5
5
|
__name: "MyButton",
|
|
6
6
|
emits: ["click"],
|
|
@@ -8,19 +8,19 @@ const Jr = /* @__PURE__ */ pe({
|
|
|
8
8
|
const n = t, r = () => {
|
|
9
9
|
n("click");
|
|
10
10
|
};
|
|
11
|
-
return (s, a) => (
|
|
11
|
+
return (s, a) => (Ne(), He("button", {
|
|
12
12
|
class: "my-btn",
|
|
13
13
|
onClick: r
|
|
14
14
|
}, [
|
|
15
|
-
|
|
15
|
+
Zn(s.$slots, "default", {}, void 0, !0)
|
|
16
16
|
]));
|
|
17
17
|
}
|
|
18
|
-
}),
|
|
18
|
+
}), sr = (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
|
+
}, qr = /* @__PURE__ */ sr(Qr, [["__scopeId", "data-v-c654f959"]]), Zr = /* @__PURE__ */ pe({
|
|
24
24
|
name: "MyButton",
|
|
25
25
|
__name: "button2",
|
|
26
26
|
emits: ["click"],
|
|
@@ -28,49 +28,52 @@ const Jr = /* @__PURE__ */ pe({
|
|
|
28
28
|
const n = t, r = () => {
|
|
29
29
|
n("click");
|
|
30
30
|
};
|
|
31
|
-
return (s, a) => (
|
|
31
|
+
return (s, a) => (Ne(), He("button", {
|
|
32
32
|
class: "my-btn",
|
|
33
33
|
onClick: r
|
|
34
34
|
}, [
|
|
35
|
-
|
|
35
|
+
Zn(s.$slots, "default", {}, void 0, !0)
|
|
36
36
|
]));
|
|
37
37
|
}
|
|
38
|
-
}),
|
|
38
|
+
}), zr = /* @__PURE__ */ sr(Zr, [["__scopeId", "data-v-1477cfc3"]]), ar = /* @__PURE__ */ Symbol("UI_KEY"), Qt = /* @__PURE__ */ pe({
|
|
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,
|
|
46
|
-
if (!
|
|
45
|
+
const n = e, r = t, s = jt(ar);
|
|
46
|
+
if (!s || !s.Input)
|
|
47
47
|
throw new Error("Input not registered");
|
|
48
|
-
const o = a.modelProp ?? "modelValue", i = a.modelEvent ?? "update:modelValue", u = "on" + i.charAt(0).toUpperCase() + i.slice(1),
|
|
48
|
+
const a = s.Input, o = a.modelProp ?? "modelValue", i = a.modelEvent ?? "update:modelValue", u = "on" + i.charAt(0).toUpperCase() + i.slice(1), m = ge(() => ({
|
|
49
49
|
[o]: n.modelValue,
|
|
50
50
|
[u]: (T) => r("update:modelValue", T)
|
|
51
51
|
})), b = a.component;
|
|
52
|
-
return (T, N) => (
|
|
52
|
+
return (T, N) => (Ne(), Xt(zn(er(b)), tr(nr(m.value)), null, 16));
|
|
53
53
|
}
|
|
54
|
-
}),
|
|
54
|
+
}), es = { style: { display: "flex", gap: "6px" } }, or = /* @__PURE__ */ pe({
|
|
55
55
|
__name: "IpInput",
|
|
56
56
|
props: {
|
|
57
57
|
modelValue: {}
|
|
58
58
|
},
|
|
59
59
|
emits: ["update:modelValue"],
|
|
60
60
|
setup(e, { emit: t }) {
|
|
61
|
-
const n = e, r = t, s =
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
modelValue: s.value[_],
|
|
68
|
-
"onUpdate:modelValue": (b) => s.value[_] = b
|
|
69
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"]))), 128))
|
|
70
|
-
]);
|
|
61
|
+
const n = e, r = t, s = ge({
|
|
62
|
+
get: () => (n.modelValue || "0.0.0.0").split("."),
|
|
63
|
+
set: (o) => r("update:modelValue", o.join("."))
|
|
64
|
+
}), a = (o, i) => {
|
|
65
|
+
const u = [...s.value];
|
|
66
|
+
u[o] = i, s.value = u;
|
|
71
67
|
};
|
|
68
|
+
return (o, i) => (Ne(), He("div", es, [
|
|
69
|
+
(Ne(!0), He(Jt, null, xr(s.value, (u, m) => (Ne(), Xt(Qt, {
|
|
70
|
+
key: m,
|
|
71
|
+
"model-value": u,
|
|
72
|
+
"onUpdate:modelValue": (b) => a(m, b)
|
|
73
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"]))), 128))
|
|
74
|
+
]));
|
|
72
75
|
}
|
|
73
|
-
}),
|
|
76
|
+
}), lr = /* @__PURE__ */ pe({
|
|
74
77
|
__name: "InputNumber",
|
|
75
78
|
props: {
|
|
76
79
|
modelValue: {}
|
|
@@ -80,16 +83,17 @@ const Jr = /* @__PURE__ */ pe({
|
|
|
80
83
|
const n = e, r = t, a = jt("UIComponents", {}).InputNumber;
|
|
81
84
|
if (!a)
|
|
82
85
|
throw new Error("InputNumber not registered");
|
|
83
|
-
const o = a.modelProp ?? "modelValue", i = a.modelEvent ?? "update:modelValue", u = "on" + i.charAt(0).toUpperCase() + i.slice(1),
|
|
86
|
+
const o = a.modelProp ?? "modelValue", i = a.modelEvent ?? "update:modelValue", u = "on" + i.charAt(0).toUpperCase() + i.slice(1), m = ge(() => ({
|
|
84
87
|
[o]: n.modelValue,
|
|
85
88
|
[u]: (T) => r("update:modelValue", T)
|
|
86
89
|
})), b = a.component;
|
|
87
|
-
return (T, N) => (
|
|
90
|
+
return (T, N) => (Ne(), Xt(zn(er(b)), tr(nr(m.value)), null, 16));
|
|
88
91
|
}
|
|
89
|
-
})
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
92
|
+
}), gi = {
|
|
93
|
+
install(e, t) {
|
|
94
|
+
e.provide(ar, t);
|
|
95
|
+
}
|
|
96
|
+
};
|
|
93
97
|
class re {
|
|
94
98
|
id;
|
|
95
99
|
deviceId;
|
|
@@ -107,7 +111,7 @@ class re {
|
|
|
107
111
|
return n.fromPlain(t);
|
|
108
112
|
}
|
|
109
113
|
}
|
|
110
|
-
class
|
|
114
|
+
class ts {
|
|
111
115
|
static getDefaultConfig(t) {
|
|
112
116
|
console.log(1231231, t);
|
|
113
117
|
const n = t.baseInfo, r = t.configuration, s = t.tab;
|
|
@@ -118,59 +122,59 @@ class es {
|
|
|
118
122
|
};
|
|
119
123
|
}
|
|
120
124
|
}
|
|
121
|
-
const
|
|
122
|
-
type:
|
|
123
|
-
baseInfo:
|
|
124
|
-
tab:
|
|
125
|
-
configuration:
|
|
125
|
+
const ns = "Ethernet", rs = [{ 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" } }], ss = [{ name: { i18nKey: "general" }, key: "general" }, { name: { i18nKey: "ioMapping" }, key: "ioMapping" }], as = { 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" }] }, os = {
|
|
126
|
+
type: ns,
|
|
127
|
+
baseInfo: rs,
|
|
128
|
+
tab: ss,
|
|
129
|
+
configuration: as
|
|
126
130
|
};
|
|
127
|
-
class
|
|
131
|
+
class ot extends re {
|
|
128
132
|
type = Ee.ETHERNET;
|
|
129
|
-
moduleType =
|
|
133
|
+
moduleType = lt[Ee.ETHERNET];
|
|
130
134
|
baseInfo;
|
|
131
135
|
config;
|
|
132
136
|
tab;
|
|
133
137
|
constructor(t) {
|
|
134
138
|
super(t);
|
|
135
|
-
const { baseInfo: n, config: r, tab: s } =
|
|
139
|
+
const { baseInfo: n, config: r, tab: s } = ts.getDefaultConfig(os);
|
|
136
140
|
this.baseInfo = n, this.config = r, this.tab = s;
|
|
137
141
|
}
|
|
138
142
|
static fromPlain(t) {
|
|
139
|
-
return new
|
|
143
|
+
return new ot(t);
|
|
140
144
|
}
|
|
141
145
|
}
|
|
142
|
-
class
|
|
146
|
+
class qt extends re {
|
|
143
147
|
type = Ee.MODBUS_TCP_SERVER;
|
|
144
|
-
moduleType =
|
|
148
|
+
moduleType = lt[Ee.MODBUS_TCP_SERVER];
|
|
145
149
|
constructor(t) {
|
|
146
150
|
super(t);
|
|
147
151
|
}
|
|
148
152
|
static fromPlain(t) {
|
|
149
|
-
return new
|
|
153
|
+
return new qt(t);
|
|
150
154
|
}
|
|
151
155
|
}
|
|
152
|
-
class
|
|
156
|
+
class Zt extends re {
|
|
153
157
|
type = Ee.MODBUS_TCP_CLIENT;
|
|
154
|
-
moduleType =
|
|
158
|
+
moduleType = lt[Ee.MODBUS_TCP_CLIENT];
|
|
155
159
|
constructor(t) {
|
|
156
160
|
super(t);
|
|
157
161
|
}
|
|
158
162
|
static fromPlain(t) {
|
|
159
|
-
return new
|
|
163
|
+
return new Zt(t);
|
|
160
164
|
}
|
|
161
165
|
}
|
|
162
|
-
class
|
|
166
|
+
class zt extends re {
|
|
163
167
|
type = Ee.MODBUS_TCP_SLAVE_DEVICE;
|
|
164
|
-
moduleType =
|
|
168
|
+
moduleType = lt[Ee.MODBUS_TCP_SLAVE_DEVICE];
|
|
165
169
|
constructor(t) {
|
|
166
170
|
super(t);
|
|
167
171
|
}
|
|
168
172
|
static fromPlain(t) {
|
|
169
|
-
return new
|
|
173
|
+
return new zt(t);
|
|
170
174
|
}
|
|
171
175
|
}
|
|
172
176
|
var Ee = /* @__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))(Ee || {});
|
|
173
|
-
const
|
|
177
|
+
const lt = {
|
|
174
178
|
Pprogrammable: 4096,
|
|
175
179
|
// 根节点
|
|
176
180
|
Protgrammable_Safety: 4098,
|
|
@@ -224,10 +228,10 @@ const ct = {
|
|
|
224
228
|
EtherCatModule: 16384
|
|
225
229
|
// Ethercat子模块
|
|
226
230
|
};
|
|
227
|
-
class
|
|
231
|
+
class ls {
|
|
228
232
|
map = /* @__PURE__ */ new Map();
|
|
229
233
|
constructor() {
|
|
230
|
-
re.register("Ethernet",
|
|
234
|
+
re.register("Ethernet", ot), re.register("ModbusTCPServer", qt), re.register("ModbusTCPClient", Zt), re.register("ModbusTCPSlaveDevice", zt);
|
|
231
235
|
}
|
|
232
236
|
init(t) {
|
|
233
237
|
this.clear(), t.forEach((n) => {
|
|
@@ -254,28 +258,28 @@ class os {
|
|
|
254
258
|
this.map.clear();
|
|
255
259
|
}
|
|
256
260
|
}
|
|
257
|
-
const
|
|
261
|
+
const is = /* @__PURE__ */ pe({
|
|
258
262
|
__name: "App",
|
|
259
263
|
setup(e) {
|
|
260
|
-
const t =
|
|
261
|
-
return new
|
|
264
|
+
const t = nt("192.168.1.1"), n = nt("123"), r = nt(12345);
|
|
265
|
+
return new ls(), new ot({
|
|
262
266
|
id: 1,
|
|
263
267
|
deviceId: 1,
|
|
264
268
|
type: "Ethernet"
|
|
265
269
|
}), (s, a) => {
|
|
266
|
-
const o =
|
|
267
|
-
return
|
|
268
|
-
|
|
270
|
+
const o = yt("IpInput"), i = yt("Input"), u = yt("InputNumber");
|
|
271
|
+
return Ne(), He("div", null, [
|
|
272
|
+
rt(o, {
|
|
269
273
|
modelValue: t.value,
|
|
270
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
274
|
+
"onUpdate:modelValue": a[0] || (a[0] = (m) => t.value = m)
|
|
271
275
|
}, null, 8, ["modelValue"]),
|
|
272
|
-
|
|
276
|
+
rt(i, {
|
|
273
277
|
value: n.value,
|
|
274
|
-
"onUpdate:value": a[1] || (a[1] = (
|
|
278
|
+
"onUpdate:value": a[1] || (a[1] = (m) => n.value = m)
|
|
275
279
|
}, null, 8, ["value"]),
|
|
276
|
-
|
|
280
|
+
rt(u, {
|
|
277
281
|
value: r.value,
|
|
278
|
-
"onUpdate:value": a[2] || (a[2] = (
|
|
282
|
+
"onUpdate:value": a[2] || (a[2] = (m) => r.value = m),
|
|
279
283
|
"show-button": !1
|
|
280
284
|
}, null, 8, ["value"])
|
|
281
285
|
]);
|
|
@@ -285,9 +289,9 @@ const ls = /* @__PURE__ */ pe({
|
|
|
285
289
|
function ue(e, t) {
|
|
286
290
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
287
291
|
}
|
|
288
|
-
const
|
|
289
|
-
function
|
|
290
|
-
|
|
292
|
+
const pn = {};
|
|
293
|
+
function en(e) {
|
|
294
|
+
pn[e] || (pn[e] = !0, ue(e));
|
|
291
295
|
}
|
|
292
296
|
const le = typeof window < "u";
|
|
293
297
|
let ee, Ce;
|
|
@@ -300,21 +304,21 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
300
304
|
e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
|
|
301
305
|
});
|
|
302
306
|
}
|
|
303
|
-
const
|
|
304
|
-
function
|
|
305
|
-
return t.length === 1 && M(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(
|
|
307
|
+
const cs = /\{([0-9a-zA-Z]+)\}/g;
|
|
308
|
+
function it(e, ...t) {
|
|
309
|
+
return t.length === 1 && M(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(cs, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
306
310
|
}
|
|
307
|
-
const fe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e),
|
|
308
|
-
let
|
|
309
|
-
const ve = () =>
|
|
310
|
-
function
|
|
311
|
+
const fe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), us = (e, t, n) => fs({ l: e, k: t, s: n }), fs = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), j = (e) => typeof e == "number" && isFinite(e), _s = (e) => tn(e) === "[object Date]", Me = (e) => tn(e) === "[object RegExp]", ct = (e) => R(e) && Object.keys(e).length === 0, J = Object.assign, ms = Object.create, $ = (e = null) => ms(e);
|
|
312
|
+
let gn;
|
|
313
|
+
const ve = () => gn || (gn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : $());
|
|
314
|
+
function Nn(e) {
|
|
311
315
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "=");
|
|
312
316
|
}
|
|
313
|
-
function
|
|
317
|
+
function Tn(e) {
|
|
314
318
|
return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
315
319
|
}
|
|
316
|
-
function
|
|
317
|
-
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (r, s, a) => `${s}="${
|
|
320
|
+
function ds(e) {
|
|
321
|
+
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (r, s, a) => `${s}="${Tn(a)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (r, s, a) => `${s}='${Tn(a)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (process.env.NODE_ENV !== "production" && ue("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."), e = e.replace(/(\s+)(on)(\w+\s*=)/gi, "$1on$3")), [
|
|
318
322
|
// In href, src, action, formaction attributes
|
|
319
323
|
/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,
|
|
320
324
|
// In style attributes within url()
|
|
@@ -323,36 +327,36 @@ function ms(e) {
|
|
|
323
327
|
e = e.replace(r, "$1javascript:");
|
|
324
328
|
}), e;
|
|
325
329
|
}
|
|
326
|
-
const
|
|
330
|
+
const Es = Object.prototype.hasOwnProperty;
|
|
327
331
|
function oe(e, t) {
|
|
328
|
-
return
|
|
332
|
+
return Es.call(e, t);
|
|
329
333
|
}
|
|
330
|
-
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",
|
|
331
|
-
function
|
|
334
|
+
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", ps = (e) => M(e) && W(e.then) && W(e.catch), ir = Object.prototype.toString, tn = (e) => ir.call(e), R = (e) => tn(e) === "[object Object]", gs = (e) => e == null ? "" : H(e) || R(e) && e.toString === ir ? JSON.stringify(e, null, 2) : String(e);
|
|
335
|
+
function nn(e, t = "") {
|
|
332
336
|
return e.reduce((n, r, s) => s === 0 ? n + r : n + t + r, "");
|
|
333
337
|
}
|
|
334
|
-
const
|
|
335
|
-
function
|
|
338
|
+
const bn = 2;
|
|
339
|
+
function Ns(e, t = 0, n = e.length) {
|
|
336
340
|
const r = e.split(/\r?\n/);
|
|
337
341
|
let s = 0;
|
|
338
342
|
const a = [];
|
|
339
343
|
for (let o = 0; o < r.length; o++)
|
|
340
344
|
if (s += r[o].length + 1, s >= t) {
|
|
341
|
-
for (let i = o -
|
|
345
|
+
for (let i = o - bn; i <= o + bn || n > s; i++) {
|
|
342
346
|
if (i < 0 || i >= r.length)
|
|
343
347
|
continue;
|
|
344
348
|
const u = i + 1;
|
|
345
349
|
a.push(`${u}${" ".repeat(3 - String(u).length)}| ${r[i]}`);
|
|
346
|
-
const
|
|
350
|
+
const m = r[i].length;
|
|
347
351
|
if (i === o) {
|
|
348
|
-
const b = t - (s -
|
|
352
|
+
const b = t - (s - m) + 1, T = Math.max(1, n > s ? m - b : n - t);
|
|
349
353
|
a.push(" | " + " ".repeat(b) + "^".repeat(T));
|
|
350
354
|
} else if (i > o) {
|
|
351
355
|
if (n > s) {
|
|
352
|
-
const b = Math.max(Math.min(n - s,
|
|
356
|
+
const b = Math.max(Math.min(n - s, m), 1);
|
|
353
357
|
a.push(" | " + "^".repeat(b));
|
|
354
358
|
}
|
|
355
|
-
s +=
|
|
359
|
+
s += m + 1;
|
|
356
360
|
}
|
|
357
361
|
}
|
|
358
362
|
break;
|
|
@@ -360,7 +364,7 @@ function gs(e, t = 0, n = e.length) {
|
|
|
360
364
|
return a.join(`
|
|
361
365
|
`);
|
|
362
366
|
}
|
|
363
|
-
function
|
|
367
|
+
function rn() {
|
|
364
368
|
const e = /* @__PURE__ */ new Map();
|
|
365
369
|
return {
|
|
366
370
|
events: e,
|
|
@@ -377,19 +381,19 @@ function nn() {
|
|
|
377
381
|
}
|
|
378
382
|
};
|
|
379
383
|
}
|
|
380
|
-
const
|
|
381
|
-
function
|
|
382
|
-
if (
|
|
384
|
+
const ze = (e) => !M(e) || H(e);
|
|
385
|
+
function st(e, t) {
|
|
386
|
+
if (ze(e) || ze(t))
|
|
383
387
|
throw new Error("Invalid value");
|
|
384
388
|
const n = [{ src: e, des: t }];
|
|
385
389
|
for (; n.length; ) {
|
|
386
390
|
const { src: r, des: s } = n.pop();
|
|
387
391
|
Object.keys(r).forEach((a) => {
|
|
388
|
-
a !== "__proto__" && (M(r[a]) && !M(s[a]) && (s[a] = Array.isArray(r[a]) ? [] : $()),
|
|
392
|
+
a !== "__proto__" && (M(r[a]) && !M(s[a]) && (s[a] = Array.isArray(r[a]) ? [] : $()), ze(s[a]) || ze(r[a]) ? s[a] = r[a] : n.push({ src: r[a], des: s[a] }));
|
|
389
393
|
});
|
|
390
394
|
}
|
|
391
395
|
}
|
|
392
|
-
function
|
|
396
|
+
function Ts(e, t, n) {
|
|
393
397
|
return { line: e, column: t, offset: n };
|
|
394
398
|
}
|
|
395
399
|
function Ft(e, t, n) {
|
|
@@ -416,7 +420,7 @@ const P = {
|
|
|
416
420
|
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
417
421
|
// minifier error codes
|
|
418
422
|
UNHANDLED_MINIFIER_NODE_TYPE: 16
|
|
419
|
-
},
|
|
423
|
+
}, bs = 17, Is = {
|
|
420
424
|
// tokenizer error messages
|
|
421
425
|
[P.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
422
426
|
[P.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
@@ -439,18 +443,18 @@ const P = {
|
|
|
439
443
|
[P.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
440
444
|
};
|
|
441
445
|
function we(e, t, n = {}) {
|
|
442
|
-
const { domain: r, messages: s, args: a } = n, o = process.env.NODE_ENV !== "production" ?
|
|
446
|
+
const { domain: r, messages: s, args: a } = n, o = process.env.NODE_ENV !== "production" ? it((s || Is)[e] || "", ...a || []) : e, i = new SyntaxError(String(o));
|
|
443
447
|
return i.code = e, t && (i.location = t), i.domain = r, i;
|
|
444
448
|
}
|
|
445
|
-
function
|
|
449
|
+
function hs(e) {
|
|
446
450
|
throw e;
|
|
447
451
|
}
|
|
448
|
-
const
|
|
449
|
-
`,
|
|
450
|
-
function
|
|
452
|
+
const Ls = /<\/?[\w\s="/.':;#-\/]+>/, Os = (e) => Ls.test(e), ie = " ", vs = "\r", Q = `
|
|
453
|
+
`, Cs = "\u2028", As = "\u2029";
|
|
454
|
+
function Ss(e) {
|
|
451
455
|
const t = e;
|
|
452
456
|
let n = 0, r = 1, s = 1, a = 0;
|
|
453
|
-
const o = (p) => t[p] ===
|
|
457
|
+
const o = (p) => t[p] === vs && t[p + 1] === Q, i = (p) => t[p] === Q, u = (p) => t[p] === As, m = (p) => t[p] === Cs, b = (p) => o(p) || i(p) || u(p) || m(p), T = () => n, N = () => r, A = () => s, D = () => a, C = (p) => o(p) || u(p) || m(p) ? Q : t[p], S = () => C(n), f = () => C(n + a);
|
|
454
458
|
function d() {
|
|
455
459
|
return a = 0, b(n) && (r++, s = 0), o(n) && n++, n++, s++, t[n];
|
|
456
460
|
}
|
|
@@ -484,9 +488,9 @@ function As(e) {
|
|
|
484
488
|
skipToPeek: v
|
|
485
489
|
};
|
|
486
490
|
}
|
|
487
|
-
const me = void 0,
|
|
488
|
-
function
|
|
489
|
-
const n = t.location !== !1, r =
|
|
491
|
+
const me = void 0, ys = ".", In = "'", Ps = "tokenizer";
|
|
492
|
+
function Ds(e, t = {}) {
|
|
493
|
+
const n = t.location !== !1, r = Ss(e), s = () => r.index(), a = () => Ts(r.line(), r.column(), r.index()), o = a(), i = s(), u = {
|
|
490
494
|
currentType: 13,
|
|
491
495
|
offset: i,
|
|
492
496
|
startLoc: o,
|
|
@@ -498,12 +502,12 @@ function Ps(e, t = {}) {
|
|
|
498
502
|
braceNest: 0,
|
|
499
503
|
inLinked: !1,
|
|
500
504
|
text: ""
|
|
501
|
-
},
|
|
505
|
+
}, m = () => u, { onError: b } = t;
|
|
502
506
|
function T(l, c, g, ...y) {
|
|
503
|
-
const x =
|
|
507
|
+
const x = m();
|
|
504
508
|
if (c.column += g, c.offset += g, b) {
|
|
505
|
-
const
|
|
506
|
-
domain:
|
|
509
|
+
const K = n ? Ft(x.startLoc, c) : null, U = we(l, K, {
|
|
510
|
+
domain: Ps,
|
|
507
511
|
args: y
|
|
508
512
|
});
|
|
509
513
|
b(U);
|
|
@@ -567,7 +571,7 @@ function Ps(e, t = {}) {
|
|
|
567
571
|
if (g !== 2)
|
|
568
572
|
return !1;
|
|
569
573
|
C(l);
|
|
570
|
-
const y = l.currentPeek() ===
|
|
574
|
+
const y = l.currentPeek() === In;
|
|
571
575
|
return l.resetPeek(), y;
|
|
572
576
|
}
|
|
573
577
|
function v(l, c) {
|
|
@@ -599,8 +603,8 @@ function Ps(e, t = {}) {
|
|
|
599
603
|
if (g !== 9)
|
|
600
604
|
return !1;
|
|
601
605
|
const y = () => {
|
|
602
|
-
const
|
|
603
|
-
return
|
|
606
|
+
const K = l.currentPeek();
|
|
607
|
+
return K === "{" ? f(l.peek()) : K === "@" || K === "|" || K === ":" || K === "." || K === ie || !K ? !1 : K === Q ? (l.peek(), y()) : ae(l, !1);
|
|
604
608
|
}, x = y();
|
|
605
609
|
return l.resetPeek(), x;
|
|
606
610
|
}
|
|
@@ -610,9 +614,9 @@ function Ps(e, t = {}) {
|
|
|
610
614
|
return l.resetPeek(), c;
|
|
611
615
|
}
|
|
612
616
|
function ae(l, c = !0) {
|
|
613
|
-
const g = (x = !1,
|
|
617
|
+
const g = (x = !1, K = "") => {
|
|
614
618
|
const U = l.currentPeek();
|
|
615
|
-
return U === "{" || U === "@" || !U ? x : U === "|" ? !(
|
|
619
|
+
return U === "{" || U === "@" || !U ? x : U === "|" ? !(K === ie || K === Q) : U === ie ? (l.peek(), g(!0, ie)) : U === Q ? (l.peek(), g(!0, Q)) : !0;
|
|
616
620
|
}, y = g();
|
|
617
621
|
return c && l.resetPeek(), y;
|
|
618
622
|
}
|
|
@@ -628,10 +632,10 @@ function Ps(e, t = {}) {
|
|
|
628
632
|
c === 95 || // _
|
|
629
633
|
c === 36;
|
|
630
634
|
}
|
|
631
|
-
function
|
|
635
|
+
function mt(l) {
|
|
632
636
|
return Y(l, ye);
|
|
633
637
|
}
|
|
634
|
-
function
|
|
638
|
+
function dt(l) {
|
|
635
639
|
const c = l.charCodeAt(0);
|
|
636
640
|
return c >= 97 && c <= 122 || // a-z
|
|
637
641
|
c >= 65 && c <= 90 || // A-Z
|
|
@@ -640,32 +644,32 @@ function Ps(e, t = {}) {
|
|
|
640
644
|
c === 36 || // $
|
|
641
645
|
c === 45;
|
|
642
646
|
}
|
|
643
|
-
function
|
|
644
|
-
return Y(l,
|
|
647
|
+
function Et(l) {
|
|
648
|
+
return Y(l, dt);
|
|
645
649
|
}
|
|
646
|
-
function
|
|
650
|
+
function pt(l) {
|
|
647
651
|
const c = l.charCodeAt(0);
|
|
648
652
|
return c >= 48 && c <= 57;
|
|
649
653
|
}
|
|
650
|
-
function
|
|
651
|
-
return Y(l,
|
|
654
|
+
function gt(l) {
|
|
655
|
+
return Y(l, pt);
|
|
652
656
|
}
|
|
653
|
-
function
|
|
657
|
+
function Nt(l) {
|
|
654
658
|
const c = l.charCodeAt(0);
|
|
655
659
|
return c >= 48 && c <= 57 || // 0-9
|
|
656
660
|
c >= 65 && c <= 70 || // A-F
|
|
657
661
|
c >= 97 && c <= 102;
|
|
658
662
|
}
|
|
659
663
|
function _e(l) {
|
|
660
|
-
return Y(l,
|
|
664
|
+
return Y(l, Nt);
|
|
661
665
|
}
|
|
662
666
|
function Ve(l) {
|
|
663
667
|
let c = "", g = "";
|
|
664
|
-
for (; c =
|
|
668
|
+
for (; c = gt(l); )
|
|
665
669
|
g += c;
|
|
666
670
|
return g;
|
|
667
671
|
}
|
|
668
|
-
function
|
|
672
|
+
function Tt(l) {
|
|
669
673
|
let c = "";
|
|
670
674
|
for (; ; ) {
|
|
671
675
|
const g = l.currentChar();
|
|
@@ -684,78 +688,78 @@ function Ps(e, t = {}) {
|
|
|
684
688
|
}
|
|
685
689
|
return c;
|
|
686
690
|
}
|
|
687
|
-
function
|
|
691
|
+
function bt(l) {
|
|
688
692
|
S(l);
|
|
689
693
|
let c = "", g = "";
|
|
690
|
-
for (; c =
|
|
694
|
+
for (; c = Et(l); )
|
|
691
695
|
g += c;
|
|
692
696
|
const y = l.currentChar();
|
|
693
697
|
if (y && y !== "}" && y !== me && y !== ie && y !== Q && y !== " ") {
|
|
694
|
-
const x =
|
|
698
|
+
const x = qe(l);
|
|
695
699
|
return T(P.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, g + x), g + x;
|
|
696
700
|
}
|
|
697
701
|
return l.currentChar() === me && T(P.UNTERMINATED_CLOSING_BRACE, a(), 0), g;
|
|
698
702
|
}
|
|
699
|
-
function
|
|
703
|
+
function It(l) {
|
|
700
704
|
S(l);
|
|
701
705
|
let c = "";
|
|
702
706
|
return l.currentChar() === "-" ? (l.next(), c += `-${Ve(l)}`) : c += Ve(l), l.currentChar() === me && T(P.UNTERMINATED_CLOSING_BRACE, a(), 0), c;
|
|
703
707
|
}
|
|
704
|
-
function
|
|
705
|
-
return l !==
|
|
708
|
+
function ht(l) {
|
|
709
|
+
return l !== In && l !== Q;
|
|
706
710
|
}
|
|
707
|
-
function
|
|
711
|
+
function dn(l) {
|
|
708
712
|
S(l), D(l, "'");
|
|
709
713
|
let c = "", g = "";
|
|
710
|
-
for (; c = Y(l,
|
|
711
|
-
c === "\\" ? g +=
|
|
714
|
+
for (; c = Y(l, ht); )
|
|
715
|
+
c === "\\" ? g += Lt(l) : g += c;
|
|
712
716
|
const y = l.currentChar();
|
|
713
717
|
return y === Q || y === me ? (T(P.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), y === Q && (l.next(), D(l, "'")), g) : (D(l, "'"), g);
|
|
714
718
|
}
|
|
715
|
-
function
|
|
719
|
+
function Lt(l) {
|
|
716
720
|
const c = l.currentChar();
|
|
717
721
|
switch (c) {
|
|
718
722
|
case "\\":
|
|
719
723
|
case "'":
|
|
720
724
|
return l.next(), `\\${c}`;
|
|
721
725
|
case "u":
|
|
722
|
-
return
|
|
726
|
+
return Qe(l, c, 4);
|
|
723
727
|
case "U":
|
|
724
|
-
return
|
|
728
|
+
return Qe(l, c, 6);
|
|
725
729
|
default:
|
|
726
730
|
return T(P.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, c), "";
|
|
727
731
|
}
|
|
728
732
|
}
|
|
729
|
-
function
|
|
733
|
+
function Qe(l, c, g) {
|
|
730
734
|
D(l, c);
|
|
731
735
|
let y = "";
|
|
732
736
|
for (let x = 0; x < g; x++) {
|
|
733
|
-
const
|
|
734
|
-
if (!
|
|
737
|
+
const K = _e(l);
|
|
738
|
+
if (!K) {
|
|
735
739
|
T(P.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${c}${y}${l.currentChar()}`);
|
|
736
740
|
break;
|
|
737
741
|
}
|
|
738
|
-
y +=
|
|
742
|
+
y += K;
|
|
739
743
|
}
|
|
740
744
|
return `\\${c}${y}`;
|
|
741
745
|
}
|
|
742
|
-
function
|
|
746
|
+
function Ot(l) {
|
|
743
747
|
return l !== "{" && l !== "}" && l !== ie && l !== Q;
|
|
744
748
|
}
|
|
745
|
-
function
|
|
749
|
+
function qe(l) {
|
|
746
750
|
S(l);
|
|
747
751
|
let c = "", g = "";
|
|
748
|
-
for (; c = Y(l,
|
|
752
|
+
for (; c = Y(l, Ot); )
|
|
749
753
|
g += c;
|
|
750
754
|
return g;
|
|
751
755
|
}
|
|
752
|
-
function
|
|
756
|
+
function vt(l) {
|
|
753
757
|
let c = "", g = "";
|
|
754
|
-
for (; c =
|
|
758
|
+
for (; c = mt(l); )
|
|
755
759
|
g += c;
|
|
756
760
|
return g;
|
|
757
761
|
}
|
|
758
|
-
function
|
|
762
|
+
function Ct(l) {
|
|
759
763
|
const c = (g) => {
|
|
760
764
|
const y = l.currentChar();
|
|
761
765
|
return y === "{" || y === "@" || y === "|" || y === "(" || y === ")" || !y || y === ie ? g : (g += y, l.next(), c(g));
|
|
@@ -789,27 +793,27 @@ function Ps(e, t = {}) {
|
|
|
789
793
|
/* TokenChars.BraceRight */
|
|
790
794
|
), c.braceNest--, c.braceNest > 0 && S(l), c.inLinked && c.braceNest === 0 && (c.inLinked = !1), g;
|
|
791
795
|
case "@":
|
|
792
|
-
return c.braceNest > 0 && T(P.UNTERMINATED_CLOSING_BRACE, a(), 0), g =
|
|
796
|
+
return c.braceNest > 0 && T(P.UNTERMINATED_CLOSING_BRACE, a(), 0), g = Ie(l, c) || A(c), c.braceNest = 0, g;
|
|
793
797
|
default: {
|
|
794
|
-
let x = !0,
|
|
798
|
+
let x = !0, K = !0, U = !0;
|
|
795
799
|
if (X(l))
|
|
796
800
|
return c.braceNest > 0 && T(P.UNTERMINATED_CLOSING_BRACE, a(), 0), g = N(c, 1, $e(l)), c.braceNest = 0, c.inLinked = !1, g;
|
|
797
801
|
if (c.braceNest > 0 && (c.currentType === 4 || c.currentType === 5 || c.currentType === 6))
|
|
798
802
|
return T(P.UNTERMINATED_CLOSING_BRACE, a(), 0), c.braceNest = 0, Ge(l, c);
|
|
799
803
|
if (x = h(l, c))
|
|
800
|
-
return g = N(c, 4,
|
|
801
|
-
if (
|
|
802
|
-
return g = N(c, 5,
|
|
804
|
+
return g = N(c, 4, bt(l)), S(l), g;
|
|
805
|
+
if (K = E(l, c))
|
|
806
|
+
return g = N(c, 5, It(l)), S(l), g;
|
|
803
807
|
if (U = O(l, c))
|
|
804
|
-
return g = N(c, 6,
|
|
805
|
-
if (!x && !
|
|
806
|
-
return g = N(c, 12,
|
|
808
|
+
return g = N(c, 6, dn(l)), S(l), g;
|
|
809
|
+
if (!x && !K && !U)
|
|
810
|
+
return g = N(c, 12, qe(l)), T(P.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, g.value), S(l), g;
|
|
807
811
|
break;
|
|
808
812
|
}
|
|
809
813
|
}
|
|
810
814
|
return g;
|
|
811
815
|
}
|
|
812
|
-
function
|
|
816
|
+
function Ie(l, c) {
|
|
813
817
|
const { currentType: g } = c;
|
|
814
818
|
let y = null;
|
|
815
819
|
const x = l.currentChar();
|
|
@@ -836,7 +840,7 @@ function Ps(e, t = {}) {
|
|
|
836
840
|
/* TokenChars.LinkedDelimiter */
|
|
837
841
|
);
|
|
838
842
|
default:
|
|
839
|
-
return X(l) ? (y = N(c, 1, $e(l)), c.braceNest = 0, c.inLinked = !1, y) : v(l, c) || k(l, c) ? (S(l),
|
|
843
|
+
return X(l) ? (y = N(c, 1, $e(l)), c.braceNest = 0, c.inLinked = !1, y) : v(l, c) || k(l, c) ? (S(l), Ie(l, c)) : p(l, c) ? (S(l), N(c, 11, vt(l))) : w(l, c) ? (S(l), x === "{" ? We(l, c) || y : N(c, 10, Ct(l))) : (g === 7 && T(P.INVALID_LINKED_FORMAT, a(), 0), c.braceNest = 0, c.inLinked = !1, Ge(l, c));
|
|
840
844
|
}
|
|
841
845
|
}
|
|
842
846
|
function Ge(l, c) {
|
|
@@ -847,7 +851,7 @@ function Ps(e, t = {}) {
|
|
|
847
851
|
if (c.braceNest > 0)
|
|
848
852
|
return We(l, c) || A(c);
|
|
849
853
|
if (c.inLinked)
|
|
850
|
-
return
|
|
854
|
+
return Ie(l, c) || A(c);
|
|
851
855
|
switch (l.currentChar()) {
|
|
852
856
|
case "{":
|
|
853
857
|
return We(l, c) || A(c);
|
|
@@ -859,18 +863,18 @@ function Ps(e, t = {}) {
|
|
|
859
863
|
/* TokenChars.BraceRight */
|
|
860
864
|
);
|
|
861
865
|
case "@":
|
|
862
|
-
return
|
|
866
|
+
return Ie(l, c) || A(c);
|
|
863
867
|
default: {
|
|
864
868
|
if (X(l))
|
|
865
869
|
return g = N(c, 1, $e(l)), c.braceNest = 0, c.inLinked = !1, g;
|
|
866
870
|
if (ae(l))
|
|
867
|
-
return N(c, 0,
|
|
871
|
+
return N(c, 0, Tt(l));
|
|
868
872
|
break;
|
|
869
873
|
}
|
|
870
874
|
}
|
|
871
875
|
return g;
|
|
872
876
|
}
|
|
873
|
-
function
|
|
877
|
+
function At() {
|
|
874
878
|
const { currentType: l, offset: c, startLoc: g, endLoc: y } = u;
|
|
875
879
|
return u.lastType = l, u.lastOffset = c, u.lastStartLoc = g, u.lastEndLoc = y, u.offset = s(), u.startLoc = a(), r.currentChar() === me ? N(
|
|
876
880
|
u,
|
|
@@ -879,14 +883,14 @@ function Ps(e, t = {}) {
|
|
|
879
883
|
) : Ge(r, u);
|
|
880
884
|
}
|
|
881
885
|
return {
|
|
882
|
-
nextToken:
|
|
886
|
+
nextToken: At,
|
|
883
887
|
currentOffset: s,
|
|
884
888
|
currentPosition: a,
|
|
885
|
-
context:
|
|
889
|
+
context: m
|
|
886
890
|
};
|
|
887
891
|
}
|
|
888
|
-
const
|
|
889
|
-
function
|
|
892
|
+
const ks = "parser", Rs = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
893
|
+
function Ms(e, t, n) {
|
|
890
894
|
switch (e) {
|
|
891
895
|
case "\\\\":
|
|
892
896
|
return "\\";
|
|
@@ -899,13 +903,13 @@ function Rs(e, t, n) {
|
|
|
899
903
|
}
|
|
900
904
|
}
|
|
901
905
|
}
|
|
902
|
-
function
|
|
906
|
+
function Fs(e = {}) {
|
|
903
907
|
const t = e.location !== !1, { onError: n } = e;
|
|
904
908
|
function r(f, d, h, E, ...O) {
|
|
905
909
|
const v = f.currentPosition();
|
|
906
910
|
if (v.offset += E, v.column += E, n) {
|
|
907
911
|
const p = t ? Ft(h, v) : null, k = we(d, p, {
|
|
908
|
-
domain:
|
|
912
|
+
domain: ks,
|
|
909
913
|
args: O
|
|
910
914
|
});
|
|
911
915
|
n(k);
|
|
@@ -930,9 +934,9 @@ function Ms(e = {}) {
|
|
|
930
934
|
const h = f.context(), { lastOffset: E, lastStartLoc: O } = h, v = s(4, E, O);
|
|
931
935
|
return v.key = d, f.nextToken(), a(v, f.currentOffset(), f.currentPosition()), v;
|
|
932
936
|
}
|
|
933
|
-
function
|
|
937
|
+
function m(f, d) {
|
|
934
938
|
const h = f.context(), { lastOffset: E, lastStartLoc: O } = h, v = s(9, E, O);
|
|
935
|
-
return v.value = d.replace(
|
|
939
|
+
return v.value = d.replace(Rs, Ms), f.nextToken(), a(v, f.currentOffset(), f.currentPosition()), v;
|
|
936
940
|
}
|
|
937
941
|
function b(f) {
|
|
938
942
|
const d = f.nextToken(), h = f.context(), { lastOffset: E, lastStartLoc: O } = h, v = s(8, E, O);
|
|
@@ -965,7 +969,7 @@ function Ms(e = {}) {
|
|
|
965
969
|
E.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ce(E)), h.key = i(f, E.value || "");
|
|
966
970
|
break;
|
|
967
971
|
case 6:
|
|
968
|
-
E.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ce(E)), h.key =
|
|
972
|
+
E.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ce(E)), h.key = m(f, E.value || "");
|
|
969
973
|
break;
|
|
970
974
|
default: {
|
|
971
975
|
r(f, P.UNEXPECTED_EMPTY_LINKED_KEY, d.lastStartLoc, 0);
|
|
@@ -997,7 +1001,7 @@ function Ms(e = {}) {
|
|
|
997
1001
|
w.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ce(w)), O.items.push(u(f, w.value || ""));
|
|
998
1002
|
break;
|
|
999
1003
|
case 6:
|
|
1000
|
-
w.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ce(w)), O.items.push(
|
|
1004
|
+
w.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ce(w)), O.items.push(m(f, w.value || ""));
|
|
1001
1005
|
break;
|
|
1002
1006
|
case 7: {
|
|
1003
1007
|
const X = N(f);
|
|
@@ -1025,7 +1029,7 @@ function Ms(e = {}) {
|
|
|
1025
1029
|
return d.currentType === 13 ? O : D(f, h, E, O);
|
|
1026
1030
|
}
|
|
1027
1031
|
function S(f) {
|
|
1028
|
-
const d =
|
|
1032
|
+
const d = Ds(f, J({}, e)), h = d.context(), E = s(0, h.offset, h.startLoc);
|
|
1029
1033
|
return t && E.loc && (E.loc.source = f), E.body = C(d), e.onCacheKey && (E.cacheKey = e.onCacheKey(f)), h.currentType !== 13 && r(d, P.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, f[h.offset] || ""), a(E, d.currentOffset(), d.currentPosition()), E;
|
|
1030
1034
|
}
|
|
1031
1035
|
return { parse: S };
|
|
@@ -1036,30 +1040,30 @@ function ce(e) {
|
|
|
1036
1040
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
1037
1041
|
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
1038
1042
|
}
|
|
1039
|
-
function
|
|
1043
|
+
function Us(e, t = {}) {
|
|
1040
1044
|
const n = {
|
|
1041
1045
|
ast: e,
|
|
1042
1046
|
helpers: /* @__PURE__ */ new Set()
|
|
1043
1047
|
};
|
|
1044
1048
|
return { context: () => n, helper: (a) => (n.helpers.add(a), a) };
|
|
1045
1049
|
}
|
|
1046
|
-
function
|
|
1050
|
+
function hn(e, t) {
|
|
1047
1051
|
for (let n = 0; n < e.length; n++)
|
|
1048
|
-
|
|
1052
|
+
sn(e[n], t);
|
|
1049
1053
|
}
|
|
1050
|
-
function
|
|
1054
|
+
function sn(e, t) {
|
|
1051
1055
|
switch (e.type) {
|
|
1052
1056
|
case 1:
|
|
1053
|
-
|
|
1057
|
+
hn(e.cases, t), t.helper(
|
|
1054
1058
|
"plural"
|
|
1055
1059
|
/* HelperNameMap.PLURAL */
|
|
1056
1060
|
);
|
|
1057
1061
|
break;
|
|
1058
1062
|
case 2:
|
|
1059
|
-
|
|
1063
|
+
hn(e.items, t);
|
|
1060
1064
|
break;
|
|
1061
1065
|
case 6: {
|
|
1062
|
-
|
|
1066
|
+
sn(e.key, t), t.helper(
|
|
1063
1067
|
"linked"
|
|
1064
1068
|
/* HelperNameMap.LINKED */
|
|
1065
1069
|
), t.helper(
|
|
@@ -1088,20 +1092,20 @@ function rn(e, t) {
|
|
|
1088
1092
|
break;
|
|
1089
1093
|
}
|
|
1090
1094
|
}
|
|
1091
|
-
function
|
|
1092
|
-
const n =
|
|
1095
|
+
function ws(e, t = {}) {
|
|
1096
|
+
const n = Us(e);
|
|
1093
1097
|
n.helper(
|
|
1094
1098
|
"normalize"
|
|
1095
1099
|
/* HelperNameMap.NORMALIZE */
|
|
1096
|
-
), e.body &&
|
|
1100
|
+
), e.body && sn(e.body, n);
|
|
1097
1101
|
const r = n.context();
|
|
1098
1102
|
e.helpers = Array.from(r.helpers);
|
|
1099
1103
|
}
|
|
1100
|
-
function
|
|
1104
|
+
function Vs(e) {
|
|
1101
1105
|
const t = e.body;
|
|
1102
|
-
return t.type === 2 ?
|
|
1106
|
+
return t.type === 2 ? Ln(t) : t.cases.forEach((n) => Ln(n)), e;
|
|
1103
1107
|
}
|
|
1104
|
-
function
|
|
1108
|
+
function Ln(e) {
|
|
1105
1109
|
if (e.items.length === 1) {
|
|
1106
1110
|
const t = e.items[0];
|
|
1107
1111
|
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
@@ -1114,7 +1118,7 @@ function hn(e) {
|
|
|
1114
1118
|
t.push(r.value);
|
|
1115
1119
|
}
|
|
1116
1120
|
if (t.length === e.items.length) {
|
|
1117
|
-
e.static =
|
|
1121
|
+
e.static = nn(t);
|
|
1118
1122
|
for (let n = 0; n < e.items.length; n++) {
|
|
1119
1123
|
const r = e.items[n];
|
|
1120
1124
|
(r.type === 3 || r.type === 9) && delete r.value;
|
|
@@ -1122,7 +1126,7 @@ function hn(e) {
|
|
|
1122
1126
|
}
|
|
1123
1127
|
}
|
|
1124
1128
|
}
|
|
1125
|
-
const
|
|
1129
|
+
const $s = "minifier";
|
|
1126
1130
|
function ke(e) {
|
|
1127
1131
|
switch (e.t = e.type, e.type) {
|
|
1128
1132
|
case 0: {
|
|
@@ -1170,14 +1174,14 @@ function ke(e) {
|
|
|
1170
1174
|
default:
|
|
1171
1175
|
if (process.env.NODE_ENV !== "production")
|
|
1172
1176
|
throw we(P.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
1173
|
-
domain:
|
|
1177
|
+
domain: $s,
|
|
1174
1178
|
args: [e.type]
|
|
1175
1179
|
});
|
|
1176
1180
|
}
|
|
1177
1181
|
delete e.type;
|
|
1178
1182
|
}
|
|
1179
|
-
const
|
|
1180
|
-
function
|
|
1183
|
+
const Ws = "parser";
|
|
1184
|
+
function Gs(e, t) {
|
|
1181
1185
|
const { filename: n, breakLineCode: r, needIndent: s } = t, a = t.location !== !1, o = {
|
|
1182
1186
|
filename: n,
|
|
1183
1187
|
code: "",
|
|
@@ -1194,20 +1198,20 @@ function Ws(e, t) {
|
|
|
1194
1198
|
function u(C, S) {
|
|
1195
1199
|
o.code += C;
|
|
1196
1200
|
}
|
|
1197
|
-
function
|
|
1201
|
+
function m(C, S = !0) {
|
|
1198
1202
|
const f = S ? r : "";
|
|
1199
1203
|
u(s ? f + " ".repeat(C) : f);
|
|
1200
1204
|
}
|
|
1201
1205
|
function b(C = !0) {
|
|
1202
1206
|
const S = ++o.indentLevel;
|
|
1203
|
-
C &&
|
|
1207
|
+
C && m(S);
|
|
1204
1208
|
}
|
|
1205
1209
|
function T(C = !0) {
|
|
1206
1210
|
const S = --o.indentLevel;
|
|
1207
|
-
C &&
|
|
1211
|
+
C && m(S);
|
|
1208
1212
|
}
|
|
1209
1213
|
function N() {
|
|
1210
|
-
|
|
1214
|
+
m(o.indentLevel);
|
|
1211
1215
|
}
|
|
1212
1216
|
return {
|
|
1213
1217
|
context: i,
|
|
@@ -1219,14 +1223,14 @@ function Ws(e, t) {
|
|
|
1219
1223
|
needIndent: () => o.needIndent
|
|
1220
1224
|
};
|
|
1221
1225
|
}
|
|
1222
|
-
function
|
|
1226
|
+
function xs(e, t) {
|
|
1223
1227
|
const { helper: n } = e;
|
|
1224
1228
|
e.push(`${n(
|
|
1225
1229
|
"linked"
|
|
1226
1230
|
/* HelperNameMap.LINKED */
|
|
1227
1231
|
)}(`), Fe(e, t.key), t.modifier ? (e.push(", "), Fe(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
1228
1232
|
}
|
|
1229
|
-
function
|
|
1233
|
+
function Hs(e, t) {
|
|
1230
1234
|
const { helper: n, needIndent: r } = e;
|
|
1231
1235
|
e.push(`${n(
|
|
1232
1236
|
"normalize"
|
|
@@ -1237,7 +1241,7 @@ function xs(e, t) {
|
|
|
1237
1241
|
e.push(", ");
|
|
1238
1242
|
e.deindent(r()), e.push("])");
|
|
1239
1243
|
}
|
|
1240
|
-
function
|
|
1244
|
+
function Ys(e, t) {
|
|
1241
1245
|
const { helper: n, needIndent: r } = e;
|
|
1242
1246
|
if (t.cases.length > 1) {
|
|
1243
1247
|
e.push(`${n(
|
|
@@ -1250,23 +1254,23 @@ function Hs(e, t) {
|
|
|
1250
1254
|
e.deindent(r()), e.push("])");
|
|
1251
1255
|
}
|
|
1252
1256
|
}
|
|
1253
|
-
function
|
|
1257
|
+
function Ks(e, t) {
|
|
1254
1258
|
t.body ? Fe(e, t.body) : e.push("null");
|
|
1255
1259
|
}
|
|
1256
1260
|
function Fe(e, t) {
|
|
1257
1261
|
const { helper: n } = e;
|
|
1258
1262
|
switch (t.type) {
|
|
1259
1263
|
case 0:
|
|
1260
|
-
|
|
1264
|
+
Ks(e, t);
|
|
1261
1265
|
break;
|
|
1262
1266
|
case 1:
|
|
1263
|
-
|
|
1267
|
+
Ys(e, t);
|
|
1264
1268
|
break;
|
|
1265
1269
|
case 2:
|
|
1266
|
-
|
|
1270
|
+
Hs(e, t);
|
|
1267
1271
|
break;
|
|
1268
1272
|
case 6:
|
|
1269
|
-
|
|
1273
|
+
xs(e, t);
|
|
1270
1274
|
break;
|
|
1271
1275
|
case 8:
|
|
1272
1276
|
e.push(JSON.stringify(t.value), t);
|
|
@@ -1301,7 +1305,7 @@ function Fe(e, t) {
|
|
|
1301
1305
|
default:
|
|
1302
1306
|
if (process.env.NODE_ENV !== "production")
|
|
1303
1307
|
throw we(P.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
1304
|
-
domain:
|
|
1308
|
+
domain: Ws,
|
|
1305
1309
|
args: [t.type]
|
|
1306
1310
|
});
|
|
1307
1311
|
}
|
|
@@ -1310,72 +1314,72 @@ const Bs = (e, t = {}) => {
|
|
|
1310
1314
|
const n = L(t.mode) ? t.mode : "normal", r = L(t.filename) ? t.filename : "message.intl";
|
|
1311
1315
|
t.sourceMap;
|
|
1312
1316
|
const s = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
1313
|
-
`, a = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], i =
|
|
1317
|
+
`, a = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], i = Gs(e, {
|
|
1314
1318
|
filename: r,
|
|
1315
1319
|
breakLineCode: s,
|
|
1316
1320
|
needIndent: a
|
|
1317
1321
|
});
|
|
1318
|
-
i.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), i.indent(a), o.length > 0 && (i.push(`const { ${
|
|
1319
|
-
const { code: u, map:
|
|
1322
|
+
i.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), i.indent(a), o.length > 0 && (i.push(`const { ${nn(o.map((b) => `${b}: _${b}`), ", ")} } = ctx`), i.newline()), i.push("return "), Fe(i, e), i.deindent(a), i.push("}"), delete e.helpers;
|
|
1323
|
+
const { code: u, map: m } = i.context();
|
|
1320
1324
|
return {
|
|
1321
1325
|
ast: e,
|
|
1322
1326
|
code: u,
|
|
1323
|
-
map:
|
|
1327
|
+
map: m ? m.toJSON() : void 0
|
|
1324
1328
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1325
1329
|
};
|
|
1326
1330
|
};
|
|
1327
|
-
function
|
|
1328
|
-
const n = J({}, t), r = !!n.jit, s = !!n.minify, a = n.optimize == null ? !0 : n.optimize, i =
|
|
1329
|
-
return r ? (a &&
|
|
1331
|
+
function js(e, t = {}) {
|
|
1332
|
+
const n = J({}, t), r = !!n.jit, s = !!n.minify, a = n.optimize == null ? !0 : n.optimize, i = Fs(n).parse(e);
|
|
1333
|
+
return r ? (a && Vs(i), s && ke(i), { ast: i, code: "" }) : (ws(i, n), Bs(i, n));
|
|
1330
1334
|
}
|
|
1331
|
-
function
|
|
1335
|
+
function Xs() {
|
|
1332
1336
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (ve().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (ve().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
1333
1337
|
}
|
|
1334
1338
|
function se(e) {
|
|
1335
|
-
return M(e) &&
|
|
1336
|
-
}
|
|
1337
|
-
const ir = ["b", "body"];
|
|
1338
|
-
function Xs(e) {
|
|
1339
|
-
return Ne(e, ir);
|
|
1339
|
+
return M(e) && an(e) === 0 && (oe(e, "b") || oe(e, "body"));
|
|
1340
1340
|
}
|
|
1341
|
-
const cr = ["
|
|
1341
|
+
const cr = ["b", "body"];
|
|
1342
1342
|
function Js(e) {
|
|
1343
|
-
return
|
|
1343
|
+
return Te(e, cr);
|
|
1344
1344
|
}
|
|
1345
|
-
const ur = ["
|
|
1345
|
+
const ur = ["c", "cases"];
|
|
1346
1346
|
function Qs(e) {
|
|
1347
|
-
return
|
|
1347
|
+
return Te(e, ur, []);
|
|
1348
1348
|
}
|
|
1349
|
-
const fr = ["
|
|
1349
|
+
const fr = ["s", "static"];
|
|
1350
1350
|
function qs(e) {
|
|
1351
|
-
return
|
|
1351
|
+
return Te(e, fr);
|
|
1352
1352
|
}
|
|
1353
|
-
const _r = ["
|
|
1354
|
-
function
|
|
1355
|
-
return
|
|
1353
|
+
const _r = ["i", "items"];
|
|
1354
|
+
function Zs(e) {
|
|
1355
|
+
return Te(e, _r, []);
|
|
1356
|
+
}
|
|
1357
|
+
const mr = ["t", "type"];
|
|
1358
|
+
function an(e) {
|
|
1359
|
+
return Te(e, mr);
|
|
1356
1360
|
}
|
|
1357
|
-
const
|
|
1358
|
-
function
|
|
1359
|
-
const n =
|
|
1361
|
+
const dr = ["v", "value"];
|
|
1362
|
+
function et(e, t) {
|
|
1363
|
+
const n = Te(e, dr);
|
|
1360
1364
|
if (n != null)
|
|
1361
1365
|
return n;
|
|
1362
|
-
throw
|
|
1366
|
+
throw Ye(t);
|
|
1363
1367
|
}
|
|
1364
|
-
const
|
|
1365
|
-
function Zs(e) {
|
|
1366
|
-
return Ne(e, dr);
|
|
1367
|
-
}
|
|
1368
|
-
const Er = ["k", "key"];
|
|
1368
|
+
const Er = ["m", "modifier"];
|
|
1369
1369
|
function zs(e) {
|
|
1370
|
-
|
|
1370
|
+
return Te(e, Er);
|
|
1371
|
+
}
|
|
1372
|
+
const pr = ["k", "key"];
|
|
1373
|
+
function ea(e) {
|
|
1374
|
+
const t = Te(e, pr);
|
|
1371
1375
|
if (t)
|
|
1372
1376
|
return t;
|
|
1373
|
-
throw
|
|
1377
|
+
throw Ye(
|
|
1374
1378
|
6
|
|
1375
1379
|
/* NodeTypes.Linked */
|
|
1376
1380
|
);
|
|
1377
1381
|
}
|
|
1378
|
-
function
|
|
1382
|
+
function Te(e, t, n) {
|
|
1379
1383
|
for (let r = 0; r < t.length; r++) {
|
|
1380
1384
|
const s = t[r];
|
|
1381
1385
|
if (oe(e, s) && e[s] != null)
|
|
@@ -1383,61 +1387,61 @@ function Ne(e, t, n) {
|
|
|
1383
1387
|
}
|
|
1384
1388
|
return n;
|
|
1385
1389
|
}
|
|
1386
|
-
const
|
|
1387
|
-
...ir,
|
|
1390
|
+
const gr = [
|
|
1388
1391
|
...cr,
|
|
1389
1392
|
...ur,
|
|
1390
1393
|
...fr,
|
|
1394
|
+
..._r,
|
|
1395
|
+
...pr,
|
|
1391
1396
|
...Er,
|
|
1392
1397
|
...dr,
|
|
1393
|
-
...mr
|
|
1394
|
-
..._r
|
|
1398
|
+
...mr
|
|
1395
1399
|
];
|
|
1396
|
-
function
|
|
1400
|
+
function Ye(e) {
|
|
1397
1401
|
return new Error(`unhandled node type: ${e}`);
|
|
1398
1402
|
}
|
|
1399
|
-
function
|
|
1400
|
-
return (n) =>
|
|
1403
|
+
function Pt(e) {
|
|
1404
|
+
return (n) => ta(n, e);
|
|
1401
1405
|
}
|
|
1402
|
-
function
|
|
1403
|
-
const n =
|
|
1406
|
+
function ta(e, t) {
|
|
1407
|
+
const n = Js(t);
|
|
1404
1408
|
if (n == null)
|
|
1405
|
-
throw
|
|
1409
|
+
throw Ye(
|
|
1406
1410
|
0
|
|
1407
1411
|
/* NodeTypes.Resource */
|
|
1408
1412
|
);
|
|
1409
|
-
if (
|
|
1410
|
-
const a =
|
|
1413
|
+
if (an(n) === 1) {
|
|
1414
|
+
const a = Qs(n);
|
|
1411
1415
|
return e.plural(a.reduce((o, i) => [
|
|
1412
1416
|
...o,
|
|
1413
|
-
|
|
1417
|
+
On(e, i)
|
|
1414
1418
|
], []));
|
|
1415
1419
|
} else
|
|
1416
|
-
return
|
|
1420
|
+
return On(e, n);
|
|
1417
1421
|
}
|
|
1418
|
-
function
|
|
1419
|
-
const n =
|
|
1422
|
+
function On(e, t) {
|
|
1423
|
+
const n = qs(t);
|
|
1420
1424
|
if (n != null)
|
|
1421
1425
|
return e.type === "text" ? n : e.normalize([n]);
|
|
1422
1426
|
{
|
|
1423
|
-
const r =
|
|
1427
|
+
const r = Zs(t).reduce((s, a) => [...s, Ut(e, a)], []);
|
|
1424
1428
|
return e.normalize(r);
|
|
1425
1429
|
}
|
|
1426
1430
|
}
|
|
1427
1431
|
function Ut(e, t) {
|
|
1428
|
-
const n =
|
|
1432
|
+
const n = an(t);
|
|
1429
1433
|
switch (n) {
|
|
1430
1434
|
case 3:
|
|
1431
|
-
return
|
|
1435
|
+
return et(t, n);
|
|
1432
1436
|
case 9:
|
|
1433
|
-
return
|
|
1437
|
+
return et(t, n);
|
|
1434
1438
|
case 4: {
|
|
1435
1439
|
const r = t;
|
|
1436
1440
|
if (oe(r, "k") && r.k)
|
|
1437
1441
|
return e.interpolate(e.named(r.k));
|
|
1438
1442
|
if (oe(r, "key") && r.key)
|
|
1439
1443
|
return e.interpolate(e.named(r.key));
|
|
1440
|
-
throw
|
|
1444
|
+
throw Ye(n);
|
|
1441
1445
|
}
|
|
1442
1446
|
case 5: {
|
|
1443
1447
|
const r = t;
|
|
@@ -1445,76 +1449,76 @@ function Ut(e, t) {
|
|
|
1445
1449
|
return e.interpolate(e.list(r.i));
|
|
1446
1450
|
if (oe(r, "index") && j(r.index))
|
|
1447
1451
|
return e.interpolate(e.list(r.index));
|
|
1448
|
-
throw
|
|
1452
|
+
throw Ye(n);
|
|
1449
1453
|
}
|
|
1450
1454
|
case 6: {
|
|
1451
|
-
const r = t, s =
|
|
1455
|
+
const r = t, s = zs(r), a = ea(r);
|
|
1452
1456
|
return e.linked(Ut(e, a), s ? Ut(e, s) : void 0, e.type);
|
|
1453
1457
|
}
|
|
1454
1458
|
case 7:
|
|
1455
|
-
return
|
|
1459
|
+
return et(t, n);
|
|
1456
1460
|
case 8:
|
|
1457
|
-
return
|
|
1461
|
+
return et(t, n);
|
|
1458
1462
|
default:
|
|
1459
1463
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1460
1464
|
}
|
|
1461
1465
|
}
|
|
1462
|
-
const
|
|
1463
|
-
function
|
|
1464
|
-
t &&
|
|
1466
|
+
const na = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
1467
|
+
function ra(e, t) {
|
|
1468
|
+
t && Os(e) && ue(it(na, { source: e }));
|
|
1465
1469
|
}
|
|
1466
|
-
const
|
|
1467
|
-
let
|
|
1468
|
-
function
|
|
1470
|
+
const sa = (e) => e;
|
|
1471
|
+
let tt = $();
|
|
1472
|
+
function aa(e, t = {}) {
|
|
1469
1473
|
let n = !1;
|
|
1470
|
-
const r = t.onError ||
|
|
1474
|
+
const r = t.onError || hs;
|
|
1471
1475
|
return t.onError = (s) => {
|
|
1472
1476
|
n = !0, r(s);
|
|
1473
|
-
}, { ...
|
|
1477
|
+
}, { ...js(e, t), detectError: n };
|
|
1474
1478
|
}
|
|
1475
1479
|
// @__NO_SIDE_EFFECTS__
|
|
1476
|
-
function
|
|
1480
|
+
function oa(e, t) {
|
|
1477
1481
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && L(e)) {
|
|
1478
1482
|
const n = F(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
1479
|
-
process.env.NODE_ENV !== "production" &&
|
|
1480
|
-
const s = (t.onCacheKey ||
|
|
1483
|
+
process.env.NODE_ENV !== "production" && ra(e, n);
|
|
1484
|
+
const s = (t.onCacheKey || sa)(e), a = tt[s];
|
|
1481
1485
|
if (a)
|
|
1482
1486
|
return a;
|
|
1483
|
-
const { ast: o, detectError: i } =
|
|
1487
|
+
const { ast: o, detectError: i } = aa(e, {
|
|
1484
1488
|
...t,
|
|
1485
1489
|
location: process.env.NODE_ENV !== "production",
|
|
1486
1490
|
jit: !0
|
|
1487
|
-
}), u =
|
|
1488
|
-
return i ? u :
|
|
1491
|
+
}), u = Pt(o);
|
|
1492
|
+
return i ? u : tt[s] = u;
|
|
1489
1493
|
} else {
|
|
1490
1494
|
if (process.env.NODE_ENV !== "production" && !se(e))
|
|
1491
1495
|
return ue(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), (() => e);
|
|
1492
1496
|
const n = e.cacheKey;
|
|
1493
1497
|
if (n) {
|
|
1494
|
-
const r =
|
|
1495
|
-
return r || (
|
|
1498
|
+
const r = tt[n];
|
|
1499
|
+
return r || (tt[n] = Pt(e));
|
|
1496
1500
|
} else
|
|
1497
|
-
return
|
|
1501
|
+
return Pt(e);
|
|
1498
1502
|
}
|
|
1499
1503
|
}
|
|
1500
|
-
let
|
|
1501
|
-
function
|
|
1502
|
-
|
|
1504
|
+
let Ke = null;
|
|
1505
|
+
function la(e) {
|
|
1506
|
+
Ke = e;
|
|
1503
1507
|
}
|
|
1504
|
-
function
|
|
1505
|
-
|
|
1508
|
+
function ia(e, t, n) {
|
|
1509
|
+
Ke && Ke.emit("i18n:init", {
|
|
1506
1510
|
timestamp: Date.now(),
|
|
1507
1511
|
i18n: e,
|
|
1508
1512
|
version: t,
|
|
1509
1513
|
meta: n
|
|
1510
1514
|
});
|
|
1511
1515
|
}
|
|
1512
|
-
const
|
|
1513
|
-
function
|
|
1514
|
-
return (t) =>
|
|
1516
|
+
const ca = /* @__PURE__ */ ua("function:translate");
|
|
1517
|
+
function ua(e) {
|
|
1518
|
+
return (t) => Ke && Ke.emit(e, t);
|
|
1515
1519
|
}
|
|
1516
1520
|
const q = {
|
|
1517
|
-
INVALID_ARGUMENT:
|
|
1521
|
+
INVALID_ARGUMENT: bs,
|
|
1518
1522
|
// 17
|
|
1519
1523
|
INVALID_DATE_ARGUMENT: 18,
|
|
1520
1524
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1522,11 +1526,11 @@ const q = {
|
|
|
1522
1526
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1523
1527
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1524
1528
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1525
|
-
},
|
|
1529
|
+
}, fa = 24;
|
|
1526
1530
|
function de(e) {
|
|
1527
|
-
return we(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
1531
|
+
return we(e, null, process.env.NODE_ENV !== "production" ? { messages: _a } : void 0);
|
|
1528
1532
|
}
|
|
1529
|
-
const
|
|
1533
|
+
const _a = {
|
|
1530
1534
|
[q.INVALID_ARGUMENT]: "Invalid arguments",
|
|
1531
1535
|
[q.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
1532
1536
|
[q.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
@@ -1535,64 +1539,64 @@ const fa = {
|
|
|
1535
1539
|
[q.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
|
|
1536
1540
|
[q.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
|
|
1537
1541
|
};
|
|
1538
|
-
function
|
|
1539
|
-
return t.locale != null ?
|
|
1542
|
+
function on(e, t) {
|
|
1543
|
+
return t.locale != null ? vn(t.locale) : vn(e.locale);
|
|
1540
1544
|
}
|
|
1541
|
-
let
|
|
1542
|
-
function
|
|
1545
|
+
let Dt;
|
|
1546
|
+
function vn(e) {
|
|
1543
1547
|
if (L(e))
|
|
1544
1548
|
return e;
|
|
1545
1549
|
if (W(e)) {
|
|
1546
|
-
if (e.resolvedOnce &&
|
|
1547
|
-
return
|
|
1550
|
+
if (e.resolvedOnce && Dt != null)
|
|
1551
|
+
return Dt;
|
|
1548
1552
|
if (e.constructor.name === "Function") {
|
|
1549
1553
|
const t = e();
|
|
1550
|
-
if (
|
|
1554
|
+
if (ps(t))
|
|
1551
1555
|
throw de(q.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1552
|
-
return
|
|
1556
|
+
return Dt = t;
|
|
1553
1557
|
} else
|
|
1554
1558
|
throw de(q.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1555
1559
|
} else
|
|
1556
1560
|
throw de(q.NOT_SUPPORT_LOCALE_TYPE);
|
|
1557
1561
|
}
|
|
1558
|
-
function
|
|
1562
|
+
function ma(e, t, n) {
|
|
1559
1563
|
return [.../* @__PURE__ */ new Set([
|
|
1560
1564
|
n,
|
|
1561
1565
|
...H(t) ? t : M(t) ? Object.keys(t) : L(t) ? [t] : [n]
|
|
1562
1566
|
])];
|
|
1563
1567
|
}
|
|
1564
|
-
function
|
|
1565
|
-
const r = L(n) ? n :
|
|
1568
|
+
function Nr(e, t, n) {
|
|
1569
|
+
const r = L(n) ? n : Be, s = e;
|
|
1566
1570
|
s.__localeChainCache || (s.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1567
1571
|
let a = s.__localeChainCache.get(r);
|
|
1568
1572
|
if (!a) {
|
|
1569
1573
|
a = [];
|
|
1570
1574
|
let o = [n];
|
|
1571
1575
|
for (; H(o); )
|
|
1572
|
-
o =
|
|
1576
|
+
o = Cn(a, o, t);
|
|
1573
1577
|
const i = H(t) || !R(t) ? t : t.default ? t.default : null;
|
|
1574
|
-
o = L(i) ? [i] : i, H(o) &&
|
|
1578
|
+
o = L(i) ? [i] : i, H(o) && Cn(a, o, !1), s.__localeChainCache.set(r, a);
|
|
1575
1579
|
}
|
|
1576
1580
|
return a;
|
|
1577
1581
|
}
|
|
1578
|
-
function
|
|
1582
|
+
function Cn(e, t, n) {
|
|
1579
1583
|
let r = !0;
|
|
1580
1584
|
for (let s = 0; s < t.length && F(r); s++) {
|
|
1581
1585
|
const a = t[s];
|
|
1582
|
-
L(a) && (r =
|
|
1586
|
+
L(a) && (r = da(e, t[s], n));
|
|
1583
1587
|
}
|
|
1584
1588
|
return r;
|
|
1585
1589
|
}
|
|
1586
|
-
function
|
|
1590
|
+
function da(e, t, n) {
|
|
1587
1591
|
let r;
|
|
1588
1592
|
const s = t.split("-");
|
|
1589
1593
|
do {
|
|
1590
1594
|
const a = s.join("-");
|
|
1591
|
-
r =
|
|
1595
|
+
r = Ea(e, a, n), s.splice(-1, 1);
|
|
1592
1596
|
} while (s.length && r === !0);
|
|
1593
1597
|
return r;
|
|
1594
1598
|
}
|
|
1595
|
-
function
|
|
1599
|
+
function Ea(e, t, n) {
|
|
1596
1600
|
let r = !1;
|
|
1597
1601
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1598
1602
|
r = t[t.length - 1] !== "!";
|
|
@@ -1601,8 +1605,8 @@ function da(e, t, n) {
|
|
|
1601
1605
|
}
|
|
1602
1606
|
return r;
|
|
1603
1607
|
}
|
|
1604
|
-
const
|
|
1605
|
-
|
|
1608
|
+
const be = [];
|
|
1609
|
+
be[
|
|
1606
1610
|
0
|
|
1607
1611
|
/* States.BEFORE_PATH */
|
|
1608
1612
|
] = {
|
|
@@ -1624,7 +1628,7 @@ Te[
|
|
|
1624
1628
|
/* States.AFTER_PATH */
|
|
1625
1629
|
]
|
|
1626
1630
|
};
|
|
1627
|
-
|
|
1631
|
+
be[
|
|
1628
1632
|
1
|
|
1629
1633
|
/* States.IN_PATH */
|
|
1630
1634
|
] = {
|
|
@@ -1645,7 +1649,7 @@ Te[
|
|
|
1645
1649
|
/* States.AFTER_PATH */
|
|
1646
1650
|
]
|
|
1647
1651
|
};
|
|
1648
|
-
|
|
1652
|
+
be[
|
|
1649
1653
|
2
|
|
1650
1654
|
/* States.BEFORE_IDENT */
|
|
1651
1655
|
] = {
|
|
@@ -1664,7 +1668,7 @@ Te[
|
|
|
1664
1668
|
/* Actions.APPEND */
|
|
1665
1669
|
]
|
|
1666
1670
|
};
|
|
1667
|
-
|
|
1671
|
+
be[
|
|
1668
1672
|
3
|
|
1669
1673
|
/* States.IN_IDENT */
|
|
1670
1674
|
] = {
|
|
@@ -1699,7 +1703,7 @@ Te[
|
|
|
1699
1703
|
/* Actions.PUSH */
|
|
1700
1704
|
]
|
|
1701
1705
|
};
|
|
1702
|
-
|
|
1706
|
+
be[
|
|
1703
1707
|
4
|
|
1704
1708
|
/* States.IN_SUB_PATH */
|
|
1705
1709
|
] = {
|
|
@@ -1730,7 +1734,7 @@ Te[
|
|
|
1730
1734
|
/* Actions.APPEND */
|
|
1731
1735
|
]
|
|
1732
1736
|
};
|
|
1733
|
-
|
|
1737
|
+
be[
|
|
1734
1738
|
5
|
|
1735
1739
|
/* States.IN_SINGLE_QUOTE */
|
|
1736
1740
|
] = {
|
|
@@ -1746,7 +1750,7 @@ Te[
|
|
|
1746
1750
|
/* Actions.APPEND */
|
|
1747
1751
|
]
|
|
1748
1752
|
};
|
|
1749
|
-
|
|
1753
|
+
be[
|
|
1750
1754
|
6
|
|
1751
1755
|
/* States.IN_DOUBLE_QUOTE */
|
|
1752
1756
|
] = {
|
|
@@ -1762,15 +1766,15 @@ Te[
|
|
|
1762
1766
|
/* Actions.APPEND */
|
|
1763
1767
|
]
|
|
1764
1768
|
};
|
|
1765
|
-
const
|
|
1766
|
-
function pa(e) {
|
|
1767
|
-
return Ea.test(e);
|
|
1768
|
-
}
|
|
1769
|
+
const pa = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1769
1770
|
function ga(e) {
|
|
1771
|
+
return pa.test(e);
|
|
1772
|
+
}
|
|
1773
|
+
function Na(e) {
|
|
1770
1774
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1771
1775
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1772
1776
|
}
|
|
1773
|
-
function
|
|
1777
|
+
function Ta(e) {
|
|
1774
1778
|
if (e == null)
|
|
1775
1779
|
return "o";
|
|
1776
1780
|
switch (e.charCodeAt(0)) {
|
|
@@ -1807,13 +1811,13 @@ function Na(e) {
|
|
|
1807
1811
|
}
|
|
1808
1812
|
return "i";
|
|
1809
1813
|
}
|
|
1810
|
-
function
|
|
1814
|
+
function ba(e) {
|
|
1811
1815
|
const t = e.trim();
|
|
1812
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1816
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : ga(t) ? Na(t) : "*" + t;
|
|
1813
1817
|
}
|
|
1814
|
-
function
|
|
1818
|
+
function Ia(e) {
|
|
1815
1819
|
const t = [];
|
|
1816
|
-
let n = -1, r = 0, s = 0, a, o, i, u,
|
|
1820
|
+
let n = -1, r = 0, s = 0, a, o, i, u, m, b, T;
|
|
1817
1821
|
const N = [];
|
|
1818
1822
|
N[
|
|
1819
1823
|
0
|
|
@@ -1843,7 +1847,7 @@ function ba(e) {
|
|
|
1843
1847
|
/* Actions.APPEND */
|
|
1844
1848
|
]();
|
|
1845
1849
|
else {
|
|
1846
|
-
if (s = 0, o === void 0 || (o =
|
|
1850
|
+
if (s = 0, o === void 0 || (o = ba(o), o === !1))
|
|
1847
1851
|
return !1;
|
|
1848
1852
|
N[
|
|
1849
1853
|
1
|
|
@@ -1861,27 +1865,27 @@ function ba(e) {
|
|
|
1861
1865
|
}
|
|
1862
1866
|
for (; r !== null; )
|
|
1863
1867
|
if (n++, a = e[n], !(a === "\\" && A())) {
|
|
1864
|
-
if (u =
|
|
1868
|
+
if (u = Ta(a), T = be[r], m = T[u] || T.l || 8, m === 8 || (r = m[0], m[1] !== void 0 && (b = N[m[1]], b && (i = a, b() === !1))))
|
|
1865
1869
|
return;
|
|
1866
1870
|
if (r === 7)
|
|
1867
1871
|
return t;
|
|
1868
1872
|
}
|
|
1869
1873
|
}
|
|
1870
|
-
const
|
|
1871
|
-
function
|
|
1874
|
+
const An = /* @__PURE__ */ new Map();
|
|
1875
|
+
function ha(e, t) {
|
|
1872
1876
|
return M(e) ? e[t] : null;
|
|
1873
1877
|
}
|
|
1874
|
-
function
|
|
1878
|
+
function La(e, t) {
|
|
1875
1879
|
if (!M(e))
|
|
1876
1880
|
return null;
|
|
1877
|
-
let n =
|
|
1878
|
-
if (n || (n =
|
|
1881
|
+
let n = An.get(t);
|
|
1882
|
+
if (n || (n = Ia(t), n && An.set(t, n)), !n)
|
|
1879
1883
|
return null;
|
|
1880
1884
|
const r = n.length;
|
|
1881
1885
|
let s = e, a = 0;
|
|
1882
1886
|
for (; a < r; ) {
|
|
1883
1887
|
const o = n[a];
|
|
1884
|
-
if (
|
|
1888
|
+
if (gr.includes(o) && se(s))
|
|
1885
1889
|
return null;
|
|
1886
1890
|
const i = s[o];
|
|
1887
1891
|
if (i === void 0 || W(s))
|
|
@@ -1898,7 +1902,7 @@ const Z = {
|
|
|
1898
1902
|
CANNOT_FORMAT_DATE: 5,
|
|
1899
1903
|
FALLBACK_TO_DATE_FORMAT: 6,
|
|
1900
1904
|
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
|
|
1901
|
-
},
|
|
1905
|
+
}, Oa = 8, va = {
|
|
1902
1906
|
[Z.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
1903
1907
|
[Z.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
1904
1908
|
[Z.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
@@ -1908,20 +1912,16 @@ const Z = {
|
|
|
1908
1912
|
[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."
|
|
1909
1913
|
};
|
|
1910
1914
|
function Ae(e, ...t) {
|
|
1911
|
-
return
|
|
1915
|
+
return it(va[e], ...t);
|
|
1912
1916
|
}
|
|
1913
|
-
const
|
|
1914
|
-
function
|
|
1917
|
+
const Ca = "11.2.8", ut = -1, Be = "en-US", at = "", Sn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1918
|
+
function Aa() {
|
|
1915
1919
|
return {
|
|
1916
1920
|
upper: (e, t) => t === "text" && L(e) ? e.toUpperCase() : t === "vnode" && M(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1917
1921
|
lower: (e, t) => t === "text" && L(e) ? e.toLowerCase() : t === "vnode" && M(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1918
|
-
capitalize: (e, t) => t === "text" && L(e) ?
|
|
1922
|
+
capitalize: (e, t) => t === "text" && L(e) ? Sn(e) : t === "vnode" && M(e) && "__v_isVNode" in e ? Sn(e.children) : e
|
|
1919
1923
|
};
|
|
1920
1924
|
}
|
|
1921
|
-
let Nr;
|
|
1922
|
-
function Aa(e) {
|
|
1923
|
-
Nr = e;
|
|
1924
|
-
}
|
|
1925
1925
|
let Tr;
|
|
1926
1926
|
function Sa(e) {
|
|
1927
1927
|
Tr = e;
|
|
@@ -1930,27 +1930,31 @@ let br;
|
|
|
1930
1930
|
function ya(e) {
|
|
1931
1931
|
br = e;
|
|
1932
1932
|
}
|
|
1933
|
-
let Ir
|
|
1934
|
-
|
|
1933
|
+
let Ir;
|
|
1934
|
+
function Pa(e) {
|
|
1935
1935
|
Ir = e;
|
|
1936
|
-
}
|
|
1936
|
+
}
|
|
1937
1937
|
let hr = null;
|
|
1938
|
-
const
|
|
1938
|
+
const Da = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1939
1939
|
hr = e;
|
|
1940
|
-
}, ka = () => hr;
|
|
1941
|
-
let
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1940
|
+
}, ka = /* @__NO_SIDE_EFFECTS__ */ () => hr;
|
|
1941
|
+
let Lr = null;
|
|
1942
|
+
const yn = (e) => {
|
|
1943
|
+
Lr = e;
|
|
1944
|
+
}, Ra = () => Lr;
|
|
1945
|
+
let Pn = 0;
|
|
1946
|
+
function Ma(e = {}) {
|
|
1947
|
+
const t = W(e.onWarn) ? e.onWarn : ue, n = L(e.version) ? e.version : Ca, r = L(e.locale) || W(e.locale) ? e.locale : Be, s = W(r) ? Be : r, a = H(e.fallbackLocale) || R(e.fallbackLocale) || L(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, o = R(e.messages) ? e.messages : kt(s), i = R(e.datetimeFormats) ? e.datetimeFormats : kt(s), u = R(e.numberFormats) ? e.numberFormats : kt(s), m = J($(), e.modifiers, Aa()), b = e.pluralRules || $(), T = W(e.missing) ? e.missing : null, N = F(e.missingWarn) || Me(e.missingWarn) ? e.missingWarn : !0, A = F(e.fallbackWarn) || Me(e.fallbackWarn) ? e.fallbackWarn : !0, D = !!e.fallbackFormat, C = !!e.unresolving, S = W(e.postTranslation) ? e.postTranslation : null, f = R(e.processor) ? e.processor : null, d = F(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, h = !!e.escapeParameter, E = W(e.messageCompiler) ? e.messageCompiler : Tr;
|
|
1948
|
+
process.env.NODE_ENV !== "production" && W(e.messageCompiler) && en(Ae(Z.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1949
|
+
const O = W(e.messageResolver) ? e.messageResolver : br || ha, v = W(e.localeFallbacker) ? e.localeFallbacker : Ir || ma, 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 : {};
|
|
1950
|
+
Pn++;
|
|
1947
1951
|
const Y = {
|
|
1948
1952
|
version: n,
|
|
1949
|
-
cid:
|
|
1953
|
+
cid: Pn,
|
|
1950
1954
|
locale: r,
|
|
1951
1955
|
fallbackLocale: a,
|
|
1952
1956
|
messages: o,
|
|
1953
|
-
modifiers:
|
|
1957
|
+
modifiers: m,
|
|
1954
1958
|
pluralRules: b,
|
|
1955
1959
|
missing: T,
|
|
1956
1960
|
missingWarn: N,
|
|
@@ -1968,16 +1972,16 @@ function Ra(e = {}) {
|
|
|
1968
1972
|
onWarn: t,
|
|
1969
1973
|
__meta: ae
|
|
1970
1974
|
};
|
|
1971
|
-
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__) &&
|
|
1975
|
+
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__) && ia(Y, n, ae), Y;
|
|
1972
1976
|
}
|
|
1973
|
-
const
|
|
1974
|
-
function
|
|
1977
|
+
const kt = (e) => ({ [e]: $() });
|
|
1978
|
+
function ft(e, t) {
|
|
1975
1979
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1976
1980
|
}
|
|
1977
|
-
function
|
|
1981
|
+
function Or(e, t) {
|
|
1978
1982
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1979
1983
|
}
|
|
1980
|
-
function
|
|
1984
|
+
function ln(e, t, n, r, s) {
|
|
1981
1985
|
const { missing: a, onWarn: o } = e;
|
|
1982
1986
|
if (process.env.NODE_ENV !== "production") {
|
|
1983
1987
|
const i = e.__v_emitter;
|
|
@@ -1992,44 +1996,44 @@ function on(e, t, n, r, s) {
|
|
|
1992
1996
|
const i = a(e, n, t, s);
|
|
1993
1997
|
return L(i) ? i : t;
|
|
1994
1998
|
} else
|
|
1995
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1999
|
+
return process.env.NODE_ENV !== "production" && Or(r, t) && o(Ae(Z.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
1996
2000
|
}
|
|
1997
2001
|
function xe(e, t, n) {
|
|
1998
2002
|
const r = e;
|
|
1999
2003
|
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
2000
2004
|
}
|
|
2001
|
-
function
|
|
2005
|
+
function vr(e, t) {
|
|
2002
2006
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
2003
2007
|
}
|
|
2004
|
-
function
|
|
2008
|
+
function Fa(e, t) {
|
|
2005
2009
|
const n = t.indexOf(e);
|
|
2006
2010
|
if (n === -1)
|
|
2007
2011
|
return !1;
|
|
2008
2012
|
for (let r = n + 1; r < t.length; r++)
|
|
2009
|
-
if (
|
|
2013
|
+
if (vr(e, t[r]))
|
|
2010
2014
|
return !0;
|
|
2011
2015
|
return !1;
|
|
2012
2016
|
}
|
|
2013
|
-
const
|
|
2014
|
-
dateTimeFormat:
|
|
2015
|
-
numberFormat:
|
|
2017
|
+
const Dn = typeof Intl < "u", Cr = {
|
|
2018
|
+
dateTimeFormat: Dn && typeof Intl.DateTimeFormat < "u",
|
|
2019
|
+
numberFormat: Dn && typeof Intl.NumberFormat < "u"
|
|
2016
2020
|
};
|
|
2017
|
-
function
|
|
2021
|
+
function kn(e, ...t) {
|
|
2018
2022
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: s, onWarn: a, localeFallbacker: o } = e, { __datetimeFormatters: i } = e;
|
|
2019
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
2020
|
-
return a(Ae(Z.CANNOT_FORMAT_DATE)),
|
|
2021
|
-
const [u,
|
|
2023
|
+
if (process.env.NODE_ENV !== "production" && !Cr.dateTimeFormat)
|
|
2024
|
+
return a(Ae(Z.CANNOT_FORMAT_DATE)), at;
|
|
2025
|
+
const [u, m, b, T] = wt(...t), N = F(b.missingWarn) ? b.missingWarn : e.missingWarn, A = F(b.fallbackWarn) ? b.fallbackWarn : e.fallbackWarn, D = !!b.part, C = on(e, b), S = o(
|
|
2022
2026
|
e,
|
|
2023
2027
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2024
2028
|
s,
|
|
2025
2029
|
C
|
|
2026
2030
|
);
|
|
2027
2031
|
if (!L(u) || u === "")
|
|
2028
|
-
return new Intl.DateTimeFormat(C, T).format(
|
|
2032
|
+
return new Intl.DateTimeFormat(C, T).format(m);
|
|
2029
2033
|
let f = {}, d, h = null, E = C, O = null;
|
|
2030
2034
|
const v = "datetime format";
|
|
2031
2035
|
for (let w = 0; w < S.length; w++) {
|
|
2032
|
-
if (d = O = S[w], process.env.NODE_ENV !== "production" && C !== d &&
|
|
2036
|
+
if (d = O = S[w], process.env.NODE_ENV !== "production" && C !== d && ft(A, u) && a(Ae(Z.FALLBACK_TO_DATE_FORMAT, {
|
|
2033
2037
|
key: u,
|
|
2034
2038
|
target: d
|
|
2035
2039
|
})), process.env.NODE_ENV !== "production" && C !== d) {
|
|
@@ -2044,16 +2048,16 @@ function Dn(e, ...t) {
|
|
|
2044
2048
|
}
|
|
2045
2049
|
if (f = n[d] || {}, h = f[u], R(h))
|
|
2046
2050
|
break;
|
|
2047
|
-
|
|
2051
|
+
ln(e, u, d, N, v), E = O;
|
|
2048
2052
|
}
|
|
2049
2053
|
if (!R(h) || !L(d))
|
|
2050
|
-
return r ?
|
|
2054
|
+
return r ? ut : u;
|
|
2051
2055
|
let p = `${d}__${u}`;
|
|
2052
|
-
|
|
2056
|
+
ct(T) || (p = `${p}__${JSON.stringify(T)}`);
|
|
2053
2057
|
let k = i.get(p);
|
|
2054
|
-
return k || (k = new Intl.DateTimeFormat(d, J({}, h, T)), i.set(p, k)), D ? k.formatToParts(
|
|
2058
|
+
return k || (k = new Intl.DateTimeFormat(d, J({}, h, T)), i.set(p, k)), D ? k.formatToParts(m) : k.format(m);
|
|
2055
2059
|
}
|
|
2056
|
-
const
|
|
2060
|
+
const Ar = [
|
|
2057
2061
|
"localeMatcher",
|
|
2058
2062
|
"weekday",
|
|
2059
2063
|
"era",
|
|
@@ -2082,14 +2086,14 @@ function wt(...e) {
|
|
|
2082
2086
|
const u = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
2083
2087
|
if (!u)
|
|
2084
2088
|
throw de(q.INVALID_ISO_DATE_ARGUMENT);
|
|
2085
|
-
const
|
|
2086
|
-
i = new Date(
|
|
2089
|
+
const m = u[3] ? u[3].trim().startsWith("T") ? `${u[1].trim()}${u[3].trim()}` : `${u[1].trim()}T${u[3].trim()}` : u[1].trim();
|
|
2090
|
+
i = new Date(m);
|
|
2087
2091
|
try {
|
|
2088
2092
|
i.toISOString();
|
|
2089
2093
|
} catch {
|
|
2090
2094
|
throw de(q.INVALID_ISO_DATE_ARGUMENT);
|
|
2091
2095
|
}
|
|
2092
|
-
} else if (
|
|
2096
|
+
} else if (_s(t)) {
|
|
2093
2097
|
if (isNaN(t.getTime()))
|
|
2094
2098
|
throw de(q.INVALID_DATE_ARGUMENT);
|
|
2095
2099
|
i = t;
|
|
@@ -2098,32 +2102,32 @@ function wt(...e) {
|
|
|
2098
2102
|
else
|
|
2099
2103
|
throw de(q.INVALID_ARGUMENT);
|
|
2100
2104
|
return L(n) ? a.key = n : R(n) && Object.keys(n).forEach((u) => {
|
|
2101
|
-
|
|
2105
|
+
Ar.includes(u) ? o[u] = n[u] : a[u] = n[u];
|
|
2102
2106
|
}), L(r) ? a.locale = r : R(r) && (o = r), R(s) && (o = s), [a.key || "", i, a, o];
|
|
2103
2107
|
}
|
|
2104
|
-
function
|
|
2108
|
+
function Rn(e, t, n) {
|
|
2105
2109
|
const r = e;
|
|
2106
2110
|
for (const s in n) {
|
|
2107
2111
|
const a = `${t}__${s}`;
|
|
2108
2112
|
r.__datetimeFormatters.has(a) && r.__datetimeFormatters.delete(a);
|
|
2109
2113
|
}
|
|
2110
2114
|
}
|
|
2111
|
-
function
|
|
2115
|
+
function Mn(e, ...t) {
|
|
2112
2116
|
const { numberFormats: n, unresolving: r, fallbackLocale: s, onWarn: a, localeFallbacker: o } = e, { __numberFormatters: i } = e;
|
|
2113
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
2114
|
-
return a(Ae(Z.CANNOT_FORMAT_NUMBER)),
|
|
2115
|
-
const [u,
|
|
2117
|
+
if (process.env.NODE_ENV !== "production" && !Cr.numberFormat)
|
|
2118
|
+
return a(Ae(Z.CANNOT_FORMAT_NUMBER)), at;
|
|
2119
|
+
const [u, m, b, T] = Vt(...t), N = F(b.missingWarn) ? b.missingWarn : e.missingWarn, A = F(b.fallbackWarn) ? b.fallbackWarn : e.fallbackWarn, D = !!b.part, C = on(e, b), S = o(
|
|
2116
2120
|
e,
|
|
2117
2121
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2118
2122
|
s,
|
|
2119
2123
|
C
|
|
2120
2124
|
);
|
|
2121
2125
|
if (!L(u) || u === "")
|
|
2122
|
-
return new Intl.NumberFormat(C, T).format(
|
|
2126
|
+
return new Intl.NumberFormat(C, T).format(m);
|
|
2123
2127
|
let f = {}, d, h = null, E = C, O = null;
|
|
2124
2128
|
const v = "number format";
|
|
2125
2129
|
for (let w = 0; w < S.length; w++) {
|
|
2126
|
-
if (d = O = S[w], process.env.NODE_ENV !== "production" && C !== d &&
|
|
2130
|
+
if (d = O = S[w], process.env.NODE_ENV !== "production" && C !== d && ft(A, u) && a(Ae(Z.FALLBACK_TO_NUMBER_FORMAT, {
|
|
2127
2131
|
key: u,
|
|
2128
2132
|
target: d
|
|
2129
2133
|
})), process.env.NODE_ENV !== "production" && C !== d) {
|
|
@@ -2138,16 +2142,16 @@ function Rn(e, ...t) {
|
|
|
2138
2142
|
}
|
|
2139
2143
|
if (f = n[d] || {}, h = f[u], R(h))
|
|
2140
2144
|
break;
|
|
2141
|
-
|
|
2145
|
+
ln(e, u, d, N, v), E = O;
|
|
2142
2146
|
}
|
|
2143
2147
|
if (!R(h) || !L(d))
|
|
2144
|
-
return r ?
|
|
2148
|
+
return r ? ut : u;
|
|
2145
2149
|
let p = `${d}__${u}`;
|
|
2146
|
-
|
|
2150
|
+
ct(T) || (p = `${p}__${JSON.stringify(T)}`);
|
|
2147
2151
|
let k = i.get(p);
|
|
2148
|
-
return k || (k = new Intl.NumberFormat(d, J({}, h, T)), i.set(p, k)), D ? k.formatToParts(
|
|
2152
|
+
return k || (k = new Intl.NumberFormat(d, J({}, h, T)), i.set(p, k)), D ? k.formatToParts(m) : k.format(m);
|
|
2149
2153
|
}
|
|
2150
|
-
const
|
|
2154
|
+
const Sr = [
|
|
2151
2155
|
"localeMatcher",
|
|
2152
2156
|
"style",
|
|
2153
2157
|
"currency",
|
|
@@ -2176,38 +2180,38 @@ function Vt(...e) {
|
|
|
2176
2180
|
throw de(q.INVALID_ARGUMENT);
|
|
2177
2181
|
const i = t;
|
|
2178
2182
|
return L(n) ? a.key = n : R(n) && Object.keys(n).forEach((u) => {
|
|
2179
|
-
|
|
2183
|
+
Sr.includes(u) ? o[u] = n[u] : a[u] = n[u];
|
|
2180
2184
|
}), L(r) ? a.locale = r : R(r) && (o = r), R(s) && (o = s), [a.key || "", i, a, o];
|
|
2181
2185
|
}
|
|
2182
|
-
function
|
|
2186
|
+
function Fn(e, t, n) {
|
|
2183
2187
|
const r = e;
|
|
2184
2188
|
for (const s in n) {
|
|
2185
2189
|
const a = `${t}__${s}`;
|
|
2186
2190
|
r.__numberFormatters.has(a) && r.__numberFormatters.delete(a);
|
|
2187
2191
|
}
|
|
2188
2192
|
}
|
|
2189
|
-
const
|
|
2190
|
-
function
|
|
2193
|
+
const Ua = (e) => e, wa = (e) => "", Va = "text", $a = (e) => e.length === 0 ? "" : nn(e), Wa = gs;
|
|
2194
|
+
function Un(e, t) {
|
|
2191
2195
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
2192
2196
|
}
|
|
2193
|
-
function
|
|
2197
|
+
function Ga(e) {
|
|
2194
2198
|
const t = j(e.pluralIndex) ? e.pluralIndex : -1;
|
|
2195
2199
|
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;
|
|
2196
2200
|
}
|
|
2197
|
-
function
|
|
2201
|
+
function xa(e, t) {
|
|
2198
2202
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
2199
2203
|
}
|
|
2200
|
-
function
|
|
2201
|
-
const t = e.locale, n =
|
|
2202
|
-
j(e.pluralIndex) &&
|
|
2203
|
-
const
|
|
2204
|
+
function Ha(e = {}) {
|
|
2205
|
+
const t = e.locale, n = Ga(e), r = M(e.pluralRules) && L(t) && W(e.pluralRules[t]) ? e.pluralRules[t] : Un, s = M(e.pluralRules) && L(t) && W(e.pluralRules[t]) ? Un : void 0, a = (f) => f[r(n, f.length, s)], o = e.list || [], i = (f) => o[f], u = e.named || $();
|
|
2206
|
+
j(e.pluralIndex) && xa(n, u);
|
|
2207
|
+
const m = (f) => u[f];
|
|
2204
2208
|
function b(f, d) {
|
|
2205
2209
|
const h = W(e.messages) ? e.messages(f, !!d) : M(e.messages) ? e.messages[f] : !1;
|
|
2206
|
-
return h || (e.parent ? e.parent.message(f) :
|
|
2210
|
+
return h || (e.parent ? e.parent.message(f) : wa);
|
|
2207
2211
|
}
|
|
2208
|
-
const T = (f) => e.modifiers ? e.modifiers[f] :
|
|
2212
|
+
const T = (f) => e.modifiers ? e.modifiers[f] : Ua, N = R(e.processor) && W(e.processor.normalize) ? e.processor.normalize : $a, A = R(e.processor) && W(e.processor.interpolate) ? e.processor.interpolate : Wa, D = R(e.processor) && L(e.processor.type) ? e.processor.type : Va, S = {
|
|
2209
2213
|
list: i,
|
|
2210
|
-
named:
|
|
2214
|
+
named: m,
|
|
2211
2215
|
plural: a,
|
|
2212
2216
|
linked: (f, ...d) => {
|
|
2213
2217
|
const [h, E] = d;
|
|
@@ -2227,28 +2231,28 @@ function xa(e = {}) {
|
|
|
2227
2231
|
};
|
|
2228
2232
|
return S;
|
|
2229
2233
|
}
|
|
2230
|
-
const
|
|
2231
|
-
function
|
|
2232
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: a, fallbackLocale: o, messages: i } = e, [u,
|
|
2233
|
-
N &&
|
|
2234
|
+
const wn = () => "", te = (e) => W(e);
|
|
2235
|
+
function Vn(e, ...t) {
|
|
2236
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: a, fallbackLocale: o, messages: i } = e, [u, m] = $t(...t), b = F(m.missingWarn) ? m.missingWarn : e.missingWarn, T = F(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, N = F(m.escapeParameter) ? m.escapeParameter : e.escapeParameter, A = !!m.resolvedMessage, D = L(m.default) || F(m.default) ? F(m.default) ? a ? u : () => u : m.default : n ? a ? u : () => u : null, C = n || D != null && (L(D) || W(D)), S = on(e, m);
|
|
2237
|
+
N && Ya(m);
|
|
2234
2238
|
let [f, d, h] = A ? [
|
|
2235
2239
|
u,
|
|
2236
2240
|
S,
|
|
2237
2241
|
i[S] || $()
|
|
2238
|
-
] :
|
|
2242
|
+
] : yr(e, u, S, o, T, b), E = f, O = u;
|
|
2239
2243
|
if (!A && !(L(E) || se(E) || te(E)) && C && (E = D, O = E), !A && (!(L(E) || se(E) || te(E)) || !L(d)))
|
|
2240
|
-
return s ?
|
|
2244
|
+
return s ? ut : u;
|
|
2241
2245
|
if (process.env.NODE_ENV !== "production" && L(E) && e.messageCompiler == null)
|
|
2242
2246
|
return ue(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${u}'.`), u;
|
|
2243
2247
|
let v = !1;
|
|
2244
2248
|
const p = () => {
|
|
2245
2249
|
v = !0;
|
|
2246
|
-
}, k = te(E) ? E :
|
|
2250
|
+
}, k = te(E) ? E : Pr(e, u, d, E, O, p);
|
|
2247
2251
|
if (v)
|
|
2248
2252
|
return E;
|
|
2249
|
-
const w =
|
|
2253
|
+
const w = Xa(e, d, h, m), X = Ha(w), ae = Ka(e, k, X);
|
|
2250
2254
|
let Y = r ? r(ae, u) : ae;
|
|
2251
|
-
if (N && L(Y) && (Y =
|
|
2255
|
+
if (N && L(Y) && (Y = ds(Y)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2252
2256
|
const ye = {
|
|
2253
2257
|
timestamp: Date.now(),
|
|
2254
2258
|
key: L(u) ? u : te(E) ? E.key : "",
|
|
@@ -2256,21 +2260,21 @@ function wn(e, ...t) {
|
|
|
2256
2260
|
format: L(E) ? E : te(E) ? E.source : "",
|
|
2257
2261
|
message: Y
|
|
2258
2262
|
};
|
|
2259
|
-
ye.meta = J({}, e.__meta, /* @__PURE__ */
|
|
2263
|
+
ye.meta = J({}, e.__meta, /* @__PURE__ */ ka() || {}), ca(ye);
|
|
2260
2264
|
}
|
|
2261
2265
|
return Y;
|
|
2262
2266
|
}
|
|
2263
|
-
function
|
|
2264
|
-
H(e.list) ? e.list = e.list.map((t) => L(t) ?
|
|
2265
|
-
L(e.named[t]) && (e.named[t] =
|
|
2267
|
+
function Ya(e) {
|
|
2268
|
+
H(e.list) ? e.list = e.list.map((t) => L(t) ? Nn(t) : t) : M(e.named) && Object.keys(e.named).forEach((t) => {
|
|
2269
|
+
L(e.named[t]) && (e.named[t] = Nn(e.named[t]));
|
|
2266
2270
|
});
|
|
2267
2271
|
}
|
|
2268
|
-
function
|
|
2269
|
-
const { messages: o, onWarn: i, messageResolver: u, localeFallbacker:
|
|
2272
|
+
function yr(e, t, n, r, s, a) {
|
|
2273
|
+
const { messages: o, onWarn: i, messageResolver: u, localeFallbacker: m } = e, b = m(e, r, n);
|
|
2270
2274
|
let T = $(), N, A = null, D = n, C = null;
|
|
2271
2275
|
const S = "translate";
|
|
2272
2276
|
for (let f = 0; f < b.length; f++) {
|
|
2273
|
-
if (N = C = b[f], process.env.NODE_ENV !== "production" && n !== N && !
|
|
2277
|
+
if (N = C = b[f], process.env.NODE_ENV !== "production" && n !== N && !vr(n, N) && ft(s, t) && i(Ae(Z.FALLBACK_TO_TRANSLATE, {
|
|
2274
2278
|
key: t,
|
|
2275
2279
|
target: N
|
|
2276
2280
|
})), process.env.NODE_ENV !== "production" && n !== N) {
|
|
@@ -2297,8 +2301,8 @@ function Sr(e, t, n, r, s, a) {
|
|
|
2297
2301
|
}
|
|
2298
2302
|
if (L(A) || se(A) || te(A))
|
|
2299
2303
|
break;
|
|
2300
|
-
if (!
|
|
2301
|
-
const O =
|
|
2304
|
+
if (!Fa(N, b)) {
|
|
2305
|
+
const O = ln(
|
|
2302
2306
|
e,
|
|
2303
2307
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2304
2308
|
t,
|
|
@@ -2312,7 +2316,7 @@ function Sr(e, t, n, r, s, a) {
|
|
|
2312
2316
|
}
|
|
2313
2317
|
return [A, N, T];
|
|
2314
2318
|
}
|
|
2315
|
-
function
|
|
2319
|
+
function Pr(e, t, n, r, s, a) {
|
|
2316
2320
|
const { messageCompiler: o, warnHtmlMessage: i } = e;
|
|
2317
2321
|
if (te(r)) {
|
|
2318
2322
|
const N = r;
|
|
@@ -2322,8 +2326,8 @@ function yr(e, t, n, r, s, a) {
|
|
|
2322
2326
|
const N = (() => r);
|
|
2323
2327
|
return N.locale = n, N.key = t, N;
|
|
2324
2328
|
}
|
|
2325
|
-
let u = null,
|
|
2326
|
-
process.env.NODE_ENV !== "production" && le && (u = window.performance.now(),
|
|
2329
|
+
let u = null, m, b;
|
|
2330
|
+
process.env.NODE_ENV !== "production" && le && (u = window.performance.now(), m = "intlify-message-compilation-start", b = "intlify-message-compilation-end", ee && ee(m));
|
|
2327
2331
|
const T = o(r, Ba(e, n, s, r, i, a));
|
|
2328
2332
|
if (process.env.NODE_ENV !== "production" && le) {
|
|
2329
2333
|
const N = window.performance.now(), A = e.__v_emitter;
|
|
@@ -2332,11 +2336,11 @@ function yr(e, t, n, r, s, a) {
|
|
|
2332
2336
|
message: r,
|
|
2333
2337
|
time: N - u,
|
|
2334
2338
|
groupId: `translate:${t}`
|
|
2335
|
-
}),
|
|
2339
|
+
}), m && b && ee && Ce && (ee(b), Ce("intlify message compilation", m, b));
|
|
2336
2340
|
}
|
|
2337
2341
|
return T.locale = n, T.key = t, T.source = r, T;
|
|
2338
2342
|
}
|
|
2339
|
-
function
|
|
2343
|
+
function Ka(e, t, n) {
|
|
2340
2344
|
let r = null, s, a;
|
|
2341
2345
|
process.env.NODE_ENV !== "production" && le && (r = window.performance.now(), s = "intlify-message-evaluation-start", a = "intlify-message-evaluation-end", ee && ee(s));
|
|
2342
2346
|
const o = t(n);
|
|
@@ -2356,7 +2360,7 @@ function $t(...e) {
|
|
|
2356
2360
|
if (!L(t) && !j(t) && !te(t) && !se(t))
|
|
2357
2361
|
throw de(q.INVALID_ARGUMENT);
|
|
2358
2362
|
const a = j(t) ? String(t) : (te(t), t);
|
|
2359
|
-
return j(n) ? s.plural = n : L(n) ? s.default = n : R(n) && !
|
|
2363
|
+
return j(n) ? s.plural = n : L(n) ? s.default = n : R(n) && !ct(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];
|
|
2360
2364
|
}
|
|
2361
2365
|
function Ba(e, t, n, r, s, a) {
|
|
2362
2366
|
return {
|
|
@@ -2365,74 +2369,74 @@ function Ba(e, t, n, r, s, a) {
|
|
|
2365
2369
|
warnHtmlMessage: s,
|
|
2366
2370
|
onError: (o) => {
|
|
2367
2371
|
if (a && a(o), process.env.NODE_ENV !== "production") {
|
|
2368
|
-
const i =
|
|
2372
|
+
const i = ja(r), u = `Message compilation error: ${o.message}`, m = o.location && i && Ns(i, o.location.start.offset, o.location.end.offset), b = e.__v_emitter;
|
|
2369
2373
|
b && i && b.emit("compile-error", {
|
|
2370
2374
|
message: i,
|
|
2371
2375
|
error: o.message,
|
|
2372
2376
|
start: o.location && o.location.start.offset,
|
|
2373
2377
|
end: o.location && o.location.end.offset,
|
|
2374
2378
|
groupId: `translate:${n}`
|
|
2375
|
-
}), console.error(
|
|
2376
|
-
${
|
|
2379
|
+
}), console.error(m ? `${u}
|
|
2380
|
+
${m}` : u);
|
|
2377
2381
|
} else
|
|
2378
2382
|
throw o;
|
|
2379
2383
|
},
|
|
2380
|
-
onCacheKey: (o) =>
|
|
2384
|
+
onCacheKey: (o) => us(t, n, o)
|
|
2381
2385
|
};
|
|
2382
2386
|
}
|
|
2383
|
-
function
|
|
2387
|
+
function ja(e) {
|
|
2384
2388
|
if (L(e))
|
|
2385
2389
|
return e;
|
|
2386
2390
|
if (e.loc && e.loc.source)
|
|
2387
2391
|
return e.loc.source;
|
|
2388
2392
|
}
|
|
2389
|
-
function
|
|
2390
|
-
const { modifiers: s, pluralRules: a, messageResolver: o, fallbackLocale: i, fallbackWarn: u, missingWarn:
|
|
2393
|
+
function Xa(e, t, n, r) {
|
|
2394
|
+
const { modifiers: s, pluralRules: a, messageResolver: o, fallbackLocale: i, fallbackWarn: u, missingWarn: m, fallbackContext: b } = e, N = {
|
|
2391
2395
|
locale: t,
|
|
2392
2396
|
modifiers: s,
|
|
2393
2397
|
pluralRules: a,
|
|
2394
2398
|
messages: (A, D) => {
|
|
2395
2399
|
let C = o(n, A);
|
|
2396
2400
|
if (C == null && (b || D)) {
|
|
2397
|
-
const [, , S] =
|
|
2401
|
+
const [, , S] = yr(
|
|
2398
2402
|
b || e,
|
|
2399
2403
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
2400
2404
|
A,
|
|
2401
2405
|
t,
|
|
2402
2406
|
i,
|
|
2403
2407
|
u,
|
|
2404
|
-
|
|
2408
|
+
m
|
|
2405
2409
|
);
|
|
2406
2410
|
C = o(S, A);
|
|
2407
2411
|
}
|
|
2408
2412
|
if (L(C) || se(C)) {
|
|
2409
2413
|
let S = !1;
|
|
2410
|
-
const d =
|
|
2414
|
+
const d = Pr(e, A, t, C, A, () => {
|
|
2411
2415
|
S = !0;
|
|
2412
2416
|
});
|
|
2413
|
-
return S ?
|
|
2414
|
-
} else return te(C) ? C :
|
|
2417
|
+
return S ? wn : d;
|
|
2418
|
+
} else return te(C) ? C : wn;
|
|
2415
2419
|
}
|
|
2416
2420
|
};
|
|
2417
2421
|
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;
|
|
2418
2422
|
}
|
|
2419
|
-
|
|
2420
|
-
function
|
|
2421
|
-
return
|
|
2423
|
+
Xs();
|
|
2424
|
+
function Ja() {
|
|
2425
|
+
return Dr().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
2422
2426
|
}
|
|
2423
|
-
function
|
|
2427
|
+
function Dr() {
|
|
2424
2428
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
2425
2429
|
}
|
|
2426
|
-
const
|
|
2430
|
+
const Qa = typeof Proxy == "function", qa = "devtools-plugin:setup", Za = "plugin:settings:set";
|
|
2427
2431
|
let De, Wt;
|
|
2428
|
-
function
|
|
2432
|
+
function za() {
|
|
2429
2433
|
var e;
|
|
2430
2434
|
return De !== void 0 || (typeof window < "u" && window.performance ? (De = !0, Wt = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (De = !0, Wt = globalThis.perf_hooks.performance) : De = !1), De;
|
|
2431
2435
|
}
|
|
2432
|
-
function
|
|
2433
|
-
return
|
|
2436
|
+
function eo() {
|
|
2437
|
+
return za() ? Wt.now() : Date.now();
|
|
2434
2438
|
}
|
|
2435
|
-
class
|
|
2439
|
+
class to {
|
|
2436
2440
|
constructor(t, n) {
|
|
2437
2441
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
2438
2442
|
const r = {};
|
|
@@ -2460,9 +2464,9 @@ class eo {
|
|
|
2460
2464
|
a = o;
|
|
2461
2465
|
},
|
|
2462
2466
|
now() {
|
|
2463
|
-
return
|
|
2467
|
+
return eo();
|
|
2464
2468
|
}
|
|
2465
|
-
}, n && n.on(
|
|
2469
|
+
}, n && n.on(Za, (o, i) => {
|
|
2466
2470
|
o === this.plugin.id && this.fallbacks.setSettings(i);
|
|
2467
2471
|
}), this.proxiedOn = new Proxy({}, {
|
|
2468
2472
|
get: (o, i) => this.target ? this.target.on[i] : (...u) => {
|
|
@@ -2477,11 +2481,11 @@ class eo {
|
|
|
2477
2481
|
args: u,
|
|
2478
2482
|
resolve: () => {
|
|
2479
2483
|
}
|
|
2480
|
-
}), this.fallbacks[i](...u)) : (...u) => new Promise((
|
|
2484
|
+
}), this.fallbacks[i](...u)) : (...u) => new Promise((m) => {
|
|
2481
2485
|
this.targetQueue.push({
|
|
2482
2486
|
method: i,
|
|
2483
2487
|
args: u,
|
|
2484
|
-
resolve:
|
|
2488
|
+
resolve: m
|
|
2485
2489
|
});
|
|
2486
2490
|
})
|
|
2487
2491
|
});
|
|
@@ -2494,12 +2498,12 @@ class eo {
|
|
|
2494
2498
|
n.resolve(await this.target[n.method](...n.args));
|
|
2495
2499
|
}
|
|
2496
2500
|
}
|
|
2497
|
-
function
|
|
2498
|
-
const n = e, r =
|
|
2501
|
+
function no(e, t) {
|
|
2502
|
+
const n = e, r = Dr(), s = Ja(), a = Qa && n.enableEarlyProxy;
|
|
2499
2503
|
if (s && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
|
|
2500
|
-
s.emit(
|
|
2504
|
+
s.emit(qa, e, t);
|
|
2501
2505
|
else {
|
|
2502
|
-
const o = a ? new
|
|
2506
|
+
const o = a ? new to(n, s) : null;
|
|
2503
2507
|
(r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
2504
2508
|
pluginDescriptor: n,
|
|
2505
2509
|
setupFn: t,
|
|
@@ -2507,13 +2511,13 @@ function to(e, t) {
|
|
|
2507
2511
|
}), o && t(o.proxiedTarget);
|
|
2508
2512
|
}
|
|
2509
2513
|
}
|
|
2510
|
-
const
|
|
2511
|
-
function
|
|
2514
|
+
const ro = "11.2.8";
|
|
2515
|
+
function so() {
|
|
2512
2516
|
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);
|
|
2513
2517
|
}
|
|
2514
2518
|
const G = {
|
|
2515
2519
|
// composer module errors
|
|
2516
|
-
UNEXPECTED_RETURN_TYPE:
|
|
2520
|
+
UNEXPECTED_RETURN_TYPE: fa,
|
|
2517
2521
|
// 24
|
|
2518
2522
|
// legacy module errors
|
|
2519
2523
|
INVALID_ARGUMENT: 25,
|
|
@@ -2534,9 +2538,9 @@ const G = {
|
|
|
2534
2538
|
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
2535
2539
|
};
|
|
2536
2540
|
function z(e, ...t) {
|
|
2537
|
-
return we(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
2541
|
+
return we(e, null, process.env.NODE_ENV !== "production" ? { messages: ao, args: t } : void 0);
|
|
2538
2542
|
}
|
|
2539
|
-
const
|
|
2543
|
+
const ao = {
|
|
2540
2544
|
[G.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
2541
2545
|
[G.INVALID_ARGUMENT]: "Invalid argument",
|
|
2542
2546
|
[G.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
@@ -2548,8 +2552,8 @@ const so = {
|
|
|
2548
2552
|
[G.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
2549
2553
|
[G.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
2550
2554
|
[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"
|
|
2551
|
-
}, Gt = /* @__PURE__ */ fe("__translateVNode"), xt = /* @__PURE__ */ fe("__datetimeParts"), Ht = /* @__PURE__ */ fe("__numberParts"), Se = /* @__PURE__ */ fe("__enableEmitter"),
|
|
2552
|
-
FALLBACK_TO_ROOT:
|
|
2555
|
+
}, Gt = /* @__PURE__ */ fe("__translateVNode"), xt = /* @__PURE__ */ fe("__datetimeParts"), Ht = /* @__PURE__ */ fe("__numberParts"), Se = /* @__PURE__ */ fe("__enableEmitter"), je = /* @__PURE__ */ fe("__disableEmitter"), kr = fe("__setPluralRules"), Rr = /* @__PURE__ */ fe("__injectWithOption"), Yt = /* @__PURE__ */ fe("__dispose"), ne = {
|
|
2556
|
+
FALLBACK_TO_ROOT: Oa,
|
|
2553
2557
|
// 8
|
|
2554
2558
|
NOT_FOUND_PARENT_SCOPE: 9,
|
|
2555
2559
|
IGNORE_OBJ_FLATTEN: 10,
|
|
@@ -2563,7 +2567,7 @@ const so = {
|
|
|
2563
2567
|
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12,
|
|
2564
2568
|
// duplicate `useI18n` calling
|
|
2565
2569
|
DUPLICATE_USE_I18N_CALLING: 13
|
|
2566
|
-
},
|
|
2570
|
+
}, oo = {
|
|
2567
2571
|
[ne.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
2568
2572
|
[ne.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
2569
2573
|
[ne.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
@@ -2579,15 +2583,15 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
2579
2583
|
[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."
|
|
2580
2584
|
};
|
|
2581
2585
|
function Ue(e, ...t) {
|
|
2582
|
-
return
|
|
2586
|
+
return it(oo[e], ...t);
|
|
2583
2587
|
}
|
|
2584
|
-
function
|
|
2588
|
+
function Xe(e) {
|
|
2585
2589
|
if (!M(e) || se(e))
|
|
2586
2590
|
return e;
|
|
2587
2591
|
for (const t in e)
|
|
2588
2592
|
if (oe(e, t))
|
|
2589
2593
|
if (!t.includes("."))
|
|
2590
|
-
M(e[t]) &&
|
|
2594
|
+
M(e[t]) && Xe(e[t]);
|
|
2591
2595
|
else {
|
|
2592
2596
|
const n = t.split("."), r = n.length - 1;
|
|
2593
2597
|
let s = e, a = !1;
|
|
@@ -2602,32 +2606,32 @@ function Qe(e) {
|
|
|
2602
2606
|
}
|
|
2603
2607
|
s = s[n[o]];
|
|
2604
2608
|
}
|
|
2605
|
-
if (a || (se(s) ?
|
|
2609
|
+
if (a || (se(s) ? gr.includes(n[r]) || delete e[t] : (s[n[r]] = e[t], delete e[t])), !se(s)) {
|
|
2606
2610
|
const o = s[n[r]];
|
|
2607
|
-
M(o) &&
|
|
2611
|
+
M(o) && Xe(o);
|
|
2608
2612
|
}
|
|
2609
2613
|
}
|
|
2610
2614
|
return e;
|
|
2611
2615
|
}
|
|
2612
|
-
function
|
|
2616
|
+
function cn(e, t) {
|
|
2613
2617
|
const { messages: n, __i18n: r, messageResolver: s, flatJson: a } = t, o = R(n) ? n : H(r) ? $() : { [e]: $() };
|
|
2614
2618
|
if (H(r) && r.forEach((i) => {
|
|
2615
2619
|
if ("locale" in i && "resource" in i) {
|
|
2616
|
-
const { locale: u, resource:
|
|
2617
|
-
u ? (o[u] = o[u] || $(),
|
|
2620
|
+
const { locale: u, resource: m } = i;
|
|
2621
|
+
u ? (o[u] = o[u] || $(), st(m, o[u])) : st(m, o);
|
|
2618
2622
|
} else
|
|
2619
|
-
L(i) &&
|
|
2623
|
+
L(i) && st(JSON.parse(i), o);
|
|
2620
2624
|
}), s == null && a)
|
|
2621
2625
|
for (const i in o)
|
|
2622
|
-
oe(o, i) &&
|
|
2626
|
+
oe(o, i) && Xe(o[i]);
|
|
2623
2627
|
return o;
|
|
2624
2628
|
}
|
|
2625
|
-
function
|
|
2629
|
+
function Mr(e) {
|
|
2626
2630
|
return e.type;
|
|
2627
2631
|
}
|
|
2628
|
-
function
|
|
2632
|
+
function Fr(e, t, n) {
|
|
2629
2633
|
let r = M(t.messages) ? t.messages : $();
|
|
2630
|
-
"__i18nGlobal" in n && (r =
|
|
2634
|
+
"__i18nGlobal" in n && (r = cn(e.locale.value, {
|
|
2631
2635
|
messages: r,
|
|
2632
2636
|
__i18n: n.__i18nGlobal
|
|
2633
2637
|
}));
|
|
@@ -2650,43 +2654,43 @@ function Mr(e, t, n) {
|
|
|
2650
2654
|
}
|
|
2651
2655
|
}
|
|
2652
2656
|
}
|
|
2653
|
-
function
|
|
2654
|
-
return
|
|
2657
|
+
function $n(e) {
|
|
2658
|
+
return rt(Xr, null, e, 0);
|
|
2655
2659
|
}
|
|
2656
2660
|
function Re() {
|
|
2657
2661
|
const e = "currentInstance";
|
|
2658
|
-
return e in
|
|
2662
|
+
return e in St ? St[e] : St.getCurrentInstance();
|
|
2659
2663
|
}
|
|
2660
|
-
const
|
|
2661
|
-
let
|
|
2662
|
-
function
|
|
2664
|
+
const Wn = "__INTLIFY_META__", Gn = () => [], lo = () => !1;
|
|
2665
|
+
let xn = 0;
|
|
2666
|
+
function Hn(e) {
|
|
2663
2667
|
return ((t, n, r, s) => e(n, r, Re() || void 0, s));
|
|
2664
2668
|
}
|
|
2665
|
-
const
|
|
2669
|
+
const io = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2666
2670
|
const e = Re();
|
|
2667
2671
|
let t = null;
|
|
2668
|
-
return e && (t =
|
|
2672
|
+
return e && (t = Mr(e)[Wn]) ? { [Wn]: t } : null;
|
|
2669
2673
|
};
|
|
2670
|
-
function
|
|
2671
|
-
const { __root: t, __injectWithOption: n } = e, r = t === void 0, s = e.flatJson, a = le ?
|
|
2674
|
+
function un(e = {}) {
|
|
2675
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, s = e.flatJson, a = le ? nt : Kr;
|
|
2672
2676
|
let o = F(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2673
2677
|
const i = a(
|
|
2674
2678
|
// prettier-ignore
|
|
2675
|
-
t && o ? t.locale.value : L(e.locale) ? e.locale :
|
|
2679
|
+
t && o ? t.locale.value : L(e.locale) ? e.locale : Be
|
|
2676
2680
|
), u = a(
|
|
2677
2681
|
// prettier-ignore
|
|
2678
2682
|
t && o ? t.fallbackLocale.value : L(e.fallbackLocale) || H(e.fallbackLocale) || R(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i.value
|
|
2679
|
-
),
|
|
2680
|
-
let N = t ? t.missingWarn : F(e.missingWarn) || Me(e.missingWarn) ? e.missingWarn : !0, A = t ? t.fallbackWarn : F(e.fallbackWarn) || Me(e.fallbackWarn) ? e.fallbackWarn : !0, D = t ? t.fallbackRoot : F(e.fallbackRoot) ? e.fallbackRoot : !0, C = !!e.fallbackFormat, S = W(e.missing) ? e.missing : null, f = W(e.missing) ?
|
|
2683
|
+
), m = a(cn(i.value, e)), b = a(R(e.datetimeFormats) ? e.datetimeFormats : { [i.value]: {} }), T = a(R(e.numberFormats) ? e.numberFormats : { [i.value]: {} });
|
|
2684
|
+
let N = t ? t.missingWarn : F(e.missingWarn) || Me(e.missingWarn) ? e.missingWarn : !0, A = t ? t.fallbackWarn : F(e.fallbackWarn) || Me(e.fallbackWarn) ? e.fallbackWarn : !0, D = t ? t.fallbackRoot : F(e.fallbackRoot) ? e.fallbackRoot : !0, C = !!e.fallbackFormat, S = W(e.missing) ? e.missing : null, f = W(e.missing) ? Hn(e.missing) : null, d = W(e.postTranslation) ? e.postTranslation : null, h = t ? t.warnHtmlMessage : F(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, E = !!e.escapeParameter;
|
|
2681
2685
|
const O = t ? t.modifiers : R(e.modifiers) ? e.modifiers : {};
|
|
2682
2686
|
let v = e.pluralRules || t && t.pluralRules, p;
|
|
2683
2687
|
p = (() => {
|
|
2684
|
-
r &&
|
|
2685
|
-
const
|
|
2686
|
-
version:
|
|
2688
|
+
r && yn(null);
|
|
2689
|
+
const _ = {
|
|
2690
|
+
version: ro,
|
|
2687
2691
|
locale: i.value,
|
|
2688
2692
|
fallbackLocale: u.value,
|
|
2689
|
-
messages:
|
|
2693
|
+
messages: m.value,
|
|
2690
2694
|
modifiers: O,
|
|
2691
2695
|
pluralRules: v,
|
|
2692
2696
|
missing: f === null ? void 0 : f,
|
|
@@ -2701,198 +2705,198 @@ function cn(e = {}) {
|
|
|
2701
2705
|
messageCompiler: e.messageCompiler,
|
|
2702
2706
|
__meta: { framework: "vue" }
|
|
2703
2707
|
};
|
|
2704
|
-
|
|
2705
|
-
const I =
|
|
2706
|
-
return r &&
|
|
2708
|
+
_.datetimeFormats = b.value, _.numberFormats = T.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);
|
|
2709
|
+
const I = Ma(_);
|
|
2710
|
+
return r && yn(I), I;
|
|
2707
2711
|
})(), xe(p, i.value, u.value);
|
|
2708
2712
|
function w() {
|
|
2709
2713
|
return [
|
|
2710
2714
|
i.value,
|
|
2711
2715
|
u.value,
|
|
2712
|
-
|
|
2716
|
+
m.value,
|
|
2713
2717
|
b.value,
|
|
2714
2718
|
T.value
|
|
2715
2719
|
];
|
|
2716
2720
|
}
|
|
2717
|
-
const X =
|
|
2721
|
+
const X = ge({
|
|
2718
2722
|
get: () => i.value,
|
|
2719
|
-
set: (
|
|
2720
|
-
p.locale =
|
|
2723
|
+
set: (_) => {
|
|
2724
|
+
p.locale = _, i.value = _;
|
|
2721
2725
|
}
|
|
2722
|
-
}), ae =
|
|
2726
|
+
}), ae = ge({
|
|
2723
2727
|
get: () => u.value,
|
|
2724
|
-
set: (
|
|
2725
|
-
p.fallbackLocale =
|
|
2728
|
+
set: (_) => {
|
|
2729
|
+
p.fallbackLocale = _, u.value = _, xe(p, i.value, _);
|
|
2726
2730
|
}
|
|
2727
|
-
}), Y =
|
|
2728
|
-
function
|
|
2731
|
+
}), Y = ge(() => m.value), ye = /* @__PURE__ */ ge(() => b.value), mt = /* @__PURE__ */ ge(() => T.value);
|
|
2732
|
+
function dt() {
|
|
2729
2733
|
return W(d) ? d : null;
|
|
2730
2734
|
}
|
|
2731
|
-
function
|
|
2732
|
-
d =
|
|
2735
|
+
function Et(_) {
|
|
2736
|
+
d = _, p.postTranslation = _;
|
|
2733
2737
|
}
|
|
2734
|
-
function
|
|
2738
|
+
function pt() {
|
|
2735
2739
|
return S;
|
|
2736
2740
|
}
|
|
2737
|
-
function
|
|
2738
|
-
|
|
2741
|
+
function gt(_) {
|
|
2742
|
+
_ !== null && (f = Hn(_)), S = _, p.missing = f;
|
|
2739
2743
|
}
|
|
2740
|
-
function
|
|
2741
|
-
return
|
|
2744
|
+
function Nt(_, I) {
|
|
2745
|
+
return _ !== "translate" || !I.resolvedMessage;
|
|
2742
2746
|
}
|
|
2743
|
-
const _e = (
|
|
2747
|
+
const _e = (_, I, V, B, he, Ze) => {
|
|
2744
2748
|
w();
|
|
2745
2749
|
let Pe;
|
|
2746
2750
|
try {
|
|
2747
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = t ?
|
|
2751
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = t ? Ra() : void 0), Pe = _(p);
|
|
2748
2752
|
} finally {
|
|
2749
2753
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = void 0);
|
|
2750
2754
|
}
|
|
2751
2755
|
if (V !== "translate exists" && // for not `te` (e.g `t`)
|
|
2752
|
-
j(Pe) && Pe ===
|
|
2753
|
-
const [
|
|
2754
|
-
if (process.env.NODE_ENV !== "production" && t && L(
|
|
2755
|
-
key:
|
|
2756
|
+
j(Pe) && Pe === ut || V === "translate exists" && !Pe) {
|
|
2757
|
+
const [Le, Gr] = I();
|
|
2758
|
+
if (process.env.NODE_ENV !== "production" && t && L(Le) && Nt(V, Gr) && (D && (ft(A, Le) || Or(N, Le)) && ue(Ue(ne.FALLBACK_TO_ROOT, {
|
|
2759
|
+
key: Le,
|
|
2756
2760
|
type: V
|
|
2757
2761
|
})), process.env.NODE_ENV !== "production")) {
|
|
2758
|
-
const { __v_emitter:
|
|
2759
|
-
|
|
2762
|
+
const { __v_emitter: En } = p;
|
|
2763
|
+
En && D && En.emit("fallback", {
|
|
2760
2764
|
type: V,
|
|
2761
|
-
key:
|
|
2765
|
+
key: Le,
|
|
2762
2766
|
to: "global",
|
|
2763
|
-
groupId: `${V}:${
|
|
2767
|
+
groupId: `${V}:${Le}`
|
|
2764
2768
|
});
|
|
2765
2769
|
}
|
|
2766
|
-
return t && D ?
|
|
2770
|
+
return t && D ? B(t) : he(Le);
|
|
2767
2771
|
} else {
|
|
2768
|
-
if (
|
|
2772
|
+
if (Ze(Pe))
|
|
2769
2773
|
return Pe;
|
|
2770
2774
|
throw z(G.UNEXPECTED_RETURN_TYPE);
|
|
2771
2775
|
}
|
|
2772
2776
|
};
|
|
2773
|
-
function Ve(...
|
|
2774
|
-
return _e((I) => Reflect.apply(
|
|
2777
|
+
function Ve(..._) {
|
|
2778
|
+
return _e((I) => Reflect.apply(Vn, null, [I, ..._]), () => $t(..._), "translate", (I) => Reflect.apply(I.t, I, [..._]), (I) => I, (I) => L(I));
|
|
2775
2779
|
}
|
|
2776
|
-
function
|
|
2777
|
-
const [I, V,
|
|
2778
|
-
if (
|
|
2780
|
+
function Tt(..._) {
|
|
2781
|
+
const [I, V, B] = _;
|
|
2782
|
+
if (B && !M(B))
|
|
2779
2783
|
throw z(G.INVALID_ARGUMENT);
|
|
2780
|
-
return Ve(I, V, J({ resolvedMessage: !0 },
|
|
2784
|
+
return Ve(I, V, J({ resolvedMessage: !0 }, B || {}));
|
|
2781
2785
|
}
|
|
2782
|
-
function
|
|
2783
|
-
return _e((I) => Reflect.apply(
|
|
2786
|
+
function bt(..._) {
|
|
2787
|
+
return _e((I) => Reflect.apply(kn, null, [I, ..._]), () => wt(..._), "datetime format", (I) => Reflect.apply(I.d, I, [..._]), () => at, (I) => L(I) || H(I));
|
|
2784
2788
|
}
|
|
2785
|
-
function
|
|
2786
|
-
return _e((I) => Reflect.apply(
|
|
2789
|
+
function It(..._) {
|
|
2790
|
+
return _e((I) => Reflect.apply(Mn, null, [I, ..._]), () => Vt(..._), "number format", (I) => Reflect.apply(I.n, I, [..._]), () => at, (I) => L(I) || H(I));
|
|
2787
2791
|
}
|
|
2788
|
-
function
|
|
2789
|
-
return
|
|
2792
|
+
function ht(_) {
|
|
2793
|
+
return _.map((I) => L(I) || j(I) || F(I) ? $n(String(I)) : I);
|
|
2790
2794
|
}
|
|
2791
|
-
const
|
|
2792
|
-
normalize:
|
|
2793
|
-
interpolate: (
|
|
2795
|
+
const Lt = {
|
|
2796
|
+
normalize: ht,
|
|
2797
|
+
interpolate: (_) => _,
|
|
2794
2798
|
type: "vnode"
|
|
2795
2799
|
};
|
|
2796
|
-
function
|
|
2800
|
+
function Qe(..._) {
|
|
2797
2801
|
return _e((I) => {
|
|
2798
2802
|
let V;
|
|
2799
|
-
const
|
|
2803
|
+
const B = I;
|
|
2800
2804
|
try {
|
|
2801
|
-
|
|
2805
|
+
B.processor = Lt, V = Reflect.apply(Vn, null, [B, ..._]);
|
|
2802
2806
|
} finally {
|
|
2803
|
-
|
|
2807
|
+
B.processor = null;
|
|
2804
2808
|
}
|
|
2805
2809
|
return V;
|
|
2806
|
-
}, () => $t(...
|
|
2810
|
+
}, () => $t(..._), "translate", (I) => I[Gt](..._), (I) => [$n(I)], (I) => H(I));
|
|
2807
2811
|
}
|
|
2808
|
-
function
|
|
2809
|
-
return _e((I) => Reflect.apply(
|
|
2812
|
+
function Ot(..._) {
|
|
2813
|
+
return _e((I) => Reflect.apply(Mn, null, [I, ..._]), () => Vt(..._), "number format", (I) => I[Ht](..._), Gn, (I) => L(I) || H(I));
|
|
2810
2814
|
}
|
|
2811
|
-
function
|
|
2812
|
-
return _e((I) => Reflect.apply(
|
|
2815
|
+
function qe(..._) {
|
|
2816
|
+
return _e((I) => Reflect.apply(kn, null, [I, ..._]), () => wt(..._), "datetime format", (I) => I[xt](..._), Gn, (I) => L(I) || H(I));
|
|
2813
2817
|
}
|
|
2814
|
-
function
|
|
2815
|
-
v =
|
|
2818
|
+
function vt(_) {
|
|
2819
|
+
v = _, p.pluralRules = v;
|
|
2816
2820
|
}
|
|
2817
|
-
function
|
|
2821
|
+
function Ct(_, I) {
|
|
2818
2822
|
return _e(() => {
|
|
2819
|
-
if (!
|
|
2823
|
+
if (!_)
|
|
2820
2824
|
return !1;
|
|
2821
|
-
const V = L(I) ? I : i.value,
|
|
2822
|
-
return se(
|
|
2823
|
-
}, () => [
|
|
2825
|
+
const V = L(I) ? I : i.value, B = Ie(V), he = p.messageResolver(B, _);
|
|
2826
|
+
return se(he) || te(he) || L(he);
|
|
2827
|
+
}, () => [_], "translate exists", (V) => Reflect.apply(V.te, V, [_, I]), lo, (V) => F(V));
|
|
2824
2828
|
}
|
|
2825
|
-
function $e(
|
|
2829
|
+
function $e(_) {
|
|
2826
2830
|
let I = null;
|
|
2827
|
-
const V =
|
|
2828
|
-
for (let
|
|
2829
|
-
const
|
|
2830
|
-
if (
|
|
2831
|
-
I =
|
|
2831
|
+
const V = Nr(p, u.value, i.value);
|
|
2832
|
+
for (let B = 0; B < V.length; B++) {
|
|
2833
|
+
const he = m.value[V[B]] || {}, Ze = p.messageResolver(he, _);
|
|
2834
|
+
if (Ze != null) {
|
|
2835
|
+
I = Ze;
|
|
2832
2836
|
break;
|
|
2833
2837
|
}
|
|
2834
2838
|
}
|
|
2835
2839
|
return I;
|
|
2836
2840
|
}
|
|
2837
|
-
function We(
|
|
2838
|
-
const I = $e(
|
|
2839
|
-
return I ?? (t ? t.tm(
|
|
2841
|
+
function We(_) {
|
|
2842
|
+
const I = $e(_);
|
|
2843
|
+
return I ?? (t ? t.tm(_) || {} : {});
|
|
2840
2844
|
}
|
|
2841
|
-
function
|
|
2842
|
-
return
|
|
2845
|
+
function Ie(_) {
|
|
2846
|
+
return m.value[_] || {};
|
|
2843
2847
|
}
|
|
2844
|
-
function Ge(
|
|
2848
|
+
function Ge(_, I) {
|
|
2845
2849
|
if (s) {
|
|
2846
|
-
const V = { [
|
|
2847
|
-
for (const
|
|
2848
|
-
oe(V,
|
|
2849
|
-
I = V[
|
|
2850
|
+
const V = { [_]: I };
|
|
2851
|
+
for (const B in V)
|
|
2852
|
+
oe(V, B) && Xe(V[B]);
|
|
2853
|
+
I = V[_];
|
|
2850
2854
|
}
|
|
2851
|
-
|
|
2855
|
+
m.value[_] = I, p.messages = m.value;
|
|
2852
2856
|
}
|
|
2853
|
-
function
|
|
2854
|
-
|
|
2855
|
-
const V = { [
|
|
2857
|
+
function At(_, I) {
|
|
2858
|
+
m.value[_] = m.value[_] || {};
|
|
2859
|
+
const V = { [_]: I };
|
|
2856
2860
|
if (s)
|
|
2857
|
-
for (const
|
|
2858
|
-
oe(V,
|
|
2859
|
-
I = V[
|
|
2861
|
+
for (const B in V)
|
|
2862
|
+
oe(V, B) && Xe(V[B]);
|
|
2863
|
+
I = V[_], st(I, m.value[_]), p.messages = m.value;
|
|
2860
2864
|
}
|
|
2861
|
-
function l(
|
|
2862
|
-
return b.value[
|
|
2865
|
+
function l(_) {
|
|
2866
|
+
return b.value[_] || {};
|
|
2863
2867
|
}
|
|
2864
|
-
function c(
|
|
2865
|
-
b.value[
|
|
2868
|
+
function c(_, I) {
|
|
2869
|
+
b.value[_] = I, p.datetimeFormats = b.value, Rn(p, _, I);
|
|
2866
2870
|
}
|
|
2867
|
-
function g(
|
|
2868
|
-
b.value[
|
|
2871
|
+
function g(_, I) {
|
|
2872
|
+
b.value[_] = J(b.value[_] || {}, I), p.datetimeFormats = b.value, Rn(p, _, I);
|
|
2869
2873
|
}
|
|
2870
|
-
function y(
|
|
2871
|
-
return T.value[
|
|
2874
|
+
function y(_) {
|
|
2875
|
+
return T.value[_] || {};
|
|
2872
2876
|
}
|
|
2873
|
-
function x(
|
|
2874
|
-
T.value[
|
|
2877
|
+
function x(_, I) {
|
|
2878
|
+
T.value[_] = I, p.numberFormats = T.value, Fn(p, _, I);
|
|
2875
2879
|
}
|
|
2876
|
-
function
|
|
2877
|
-
T.value[
|
|
2880
|
+
function K(_, I) {
|
|
2881
|
+
T.value[_] = J(T.value[_] || {}, I), p.numberFormats = T.value, Fn(p, _, I);
|
|
2878
2882
|
}
|
|
2879
|
-
|
|
2880
|
-
o && (i.value =
|
|
2881
|
-
}),
|
|
2882
|
-
o && (u.value =
|
|
2883
|
+
xn++, t && le && (Mt(t.locale, (_) => {
|
|
2884
|
+
o && (i.value = _, p.locale = _, xe(p, i.value, u.value));
|
|
2885
|
+
}), Mt(t.fallbackLocale, (_) => {
|
|
2886
|
+
o && (u.value = _, p.fallbackLocale = _, xe(p, i.value, u.value));
|
|
2883
2887
|
}));
|
|
2884
2888
|
const U = {
|
|
2885
|
-
id:
|
|
2889
|
+
id: xn,
|
|
2886
2890
|
locale: X,
|
|
2887
2891
|
fallbackLocale: ae,
|
|
2888
2892
|
get inheritLocale() {
|
|
2889
2893
|
return o;
|
|
2890
2894
|
},
|
|
2891
|
-
set inheritLocale(
|
|
2892
|
-
o =
|
|
2895
|
+
set inheritLocale(_) {
|
|
2896
|
+
o = _, _ && t && (i.value = t.locale.value, u.value = t.fallbackLocale.value, xe(p, i.value, u.value));
|
|
2893
2897
|
},
|
|
2894
2898
|
get availableLocales() {
|
|
2895
|
-
return Object.keys(
|
|
2899
|
+
return Object.keys(m.value).sort();
|
|
2896
2900
|
},
|
|
2897
2901
|
messages: Y,
|
|
2898
2902
|
get modifiers() {
|
|
@@ -2907,109 +2911,109 @@ function cn(e = {}) {
|
|
|
2907
2911
|
get missingWarn() {
|
|
2908
2912
|
return N;
|
|
2909
2913
|
},
|
|
2910
|
-
set missingWarn(
|
|
2911
|
-
N =
|
|
2914
|
+
set missingWarn(_) {
|
|
2915
|
+
N = _, p.missingWarn = N;
|
|
2912
2916
|
},
|
|
2913
2917
|
get fallbackWarn() {
|
|
2914
2918
|
return A;
|
|
2915
2919
|
},
|
|
2916
|
-
set fallbackWarn(
|
|
2917
|
-
A =
|
|
2920
|
+
set fallbackWarn(_) {
|
|
2921
|
+
A = _, p.fallbackWarn = A;
|
|
2918
2922
|
},
|
|
2919
2923
|
get fallbackRoot() {
|
|
2920
2924
|
return D;
|
|
2921
2925
|
},
|
|
2922
|
-
set fallbackRoot(
|
|
2923
|
-
D =
|
|
2926
|
+
set fallbackRoot(_) {
|
|
2927
|
+
D = _;
|
|
2924
2928
|
},
|
|
2925
2929
|
get fallbackFormat() {
|
|
2926
2930
|
return C;
|
|
2927
2931
|
},
|
|
2928
|
-
set fallbackFormat(
|
|
2929
|
-
C =
|
|
2932
|
+
set fallbackFormat(_) {
|
|
2933
|
+
C = _, p.fallbackFormat = C;
|
|
2930
2934
|
},
|
|
2931
2935
|
get warnHtmlMessage() {
|
|
2932
2936
|
return h;
|
|
2933
2937
|
},
|
|
2934
|
-
set warnHtmlMessage(
|
|
2935
|
-
h =
|
|
2938
|
+
set warnHtmlMessage(_) {
|
|
2939
|
+
h = _, p.warnHtmlMessage = _;
|
|
2936
2940
|
},
|
|
2937
2941
|
get escapeParameter() {
|
|
2938
2942
|
return E;
|
|
2939
2943
|
},
|
|
2940
|
-
set escapeParameter(
|
|
2941
|
-
E =
|
|
2944
|
+
set escapeParameter(_) {
|
|
2945
|
+
E = _, p.escapeParameter = _;
|
|
2942
2946
|
},
|
|
2943
2947
|
t: Ve,
|
|
2944
|
-
getLocaleMessage:
|
|
2948
|
+
getLocaleMessage: Ie,
|
|
2945
2949
|
setLocaleMessage: Ge,
|
|
2946
|
-
mergeLocaleMessage:
|
|
2947
|
-
getPostTranslationHandler:
|
|
2948
|
-
setPostTranslationHandler:
|
|
2949
|
-
getMissingHandler:
|
|
2950
|
-
setMissingHandler:
|
|
2951
|
-
[
|
|
2950
|
+
mergeLocaleMessage: At,
|
|
2951
|
+
getPostTranslationHandler: dt,
|
|
2952
|
+
setPostTranslationHandler: Et,
|
|
2953
|
+
getMissingHandler: pt,
|
|
2954
|
+
setMissingHandler: gt,
|
|
2955
|
+
[kr]: vt
|
|
2952
2956
|
};
|
|
2953
|
-
return U.datetimeFormats = ye, U.numberFormats =
|
|
2954
|
-
p.__v_emitter =
|
|
2955
|
-
}, U[
|
|
2957
|
+
return U.datetimeFormats = ye, U.numberFormats = mt, U.rt = Tt, U.te = Ct, U.tm = We, U.d = bt, U.n = It, U.getDateTimeFormat = l, U.setDateTimeFormat = c, U.mergeDateTimeFormat = g, U.getNumberFormat = y, U.setNumberFormat = x, U.mergeNumberFormat = K, U[Rr] = n, U[Gt] = Qe, U[xt] = qe, U[Ht] = Ot, process.env.NODE_ENV !== "production" && (U[Se] = (_) => {
|
|
2958
|
+
p.__v_emitter = _;
|
|
2959
|
+
}, U[je] = () => {
|
|
2956
2960
|
p.__v_emitter = void 0;
|
|
2957
2961
|
}), U;
|
|
2958
2962
|
}
|
|
2959
|
-
const
|
|
2963
|
+
const Ur = "vue-i18n: composer properties", Rt = {
|
|
2960
2964
|
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
2961
2965
|
"vue-i18n-resource-inspector": "Vue I18n DevTools",
|
|
2962
2966
|
"vue-i18n-timeline": "Vue I18n"
|
|
2963
|
-
}, io = {
|
|
2964
|
-
"vue-i18n-resource-inspector": "Search for scopes ..."
|
|
2965
2967
|
}, co = {
|
|
2968
|
+
"vue-i18n-resource-inspector": "Search for scopes ..."
|
|
2969
|
+
}, uo = {
|
|
2966
2970
|
"vue-i18n-timeline": 16764185
|
|
2967
2971
|
};
|
|
2968
|
-
let
|
|
2969
|
-
async function
|
|
2972
|
+
let Kt;
|
|
2973
|
+
async function fo(e, t) {
|
|
2970
2974
|
return new Promise((n, r) => {
|
|
2971
2975
|
try {
|
|
2972
|
-
|
|
2976
|
+
no({
|
|
2973
2977
|
id: "vue-devtools-plugin-vue-i18n",
|
|
2974
|
-
label:
|
|
2978
|
+
label: Rt["vue-devtools-plugin-vue-i18n"],
|
|
2975
2979
|
packageName: "vue-i18n",
|
|
2976
2980
|
homepage: "https://vue-i18n.intlify.dev",
|
|
2977
2981
|
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
|
2978
|
-
componentStateTypes: [
|
|
2982
|
+
componentStateTypes: [Ur],
|
|
2979
2983
|
app: e
|
|
2980
2984
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2981
2985
|
}, (s) => {
|
|
2982
|
-
|
|
2983
|
-
|
|
2986
|
+
Kt = s, s.on.visitComponentTree(({ componentInstance: o, treeNode: i }) => {
|
|
2987
|
+
_o(o, i, t);
|
|
2984
2988
|
}), s.on.inspectComponent(({ componentInstance: o, instanceData: i }) => {
|
|
2985
|
-
o.__VUE_I18N__ && i && (t.mode === "legacy" ? o.__VUE_I18N__ !== t.global.__composer &&
|
|
2989
|
+
o.__VUE_I18N__ && i && (t.mode === "legacy" ? o.__VUE_I18N__ !== t.global.__composer && Yn(i, o.__VUE_I18N__) : Yn(i, o.__VUE_I18N__));
|
|
2986
2990
|
}), s.addInspector({
|
|
2987
2991
|
id: "vue-i18n-resource-inspector",
|
|
2988
|
-
label:
|
|
2992
|
+
label: Rt["vue-i18n-resource-inspector"],
|
|
2989
2993
|
icon: "language",
|
|
2990
|
-
treeFilterPlaceholder:
|
|
2994
|
+
treeFilterPlaceholder: co["vue-i18n-resource-inspector"]
|
|
2991
2995
|
}), s.on.getInspectorTree((o) => {
|
|
2992
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2996
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && No(o, t);
|
|
2993
2997
|
});
|
|
2994
2998
|
const a = /* @__PURE__ */ new Map();
|
|
2995
2999
|
s.on.getInspectorState(async (o) => {
|
|
2996
3000
|
if (o.app === e && o.inspectorId === "vue-i18n-resource-inspector")
|
|
2997
|
-
if (s.unhighlightElement(),
|
|
3001
|
+
if (s.unhighlightElement(), bo(o, t), o.nodeId === "global") {
|
|
2998
3002
|
if (!a.has(o.app)) {
|
|
2999
3003
|
const [i] = await s.getComponentInstances(o.app);
|
|
3000
3004
|
a.set(o.app, i);
|
|
3001
3005
|
}
|
|
3002
3006
|
s.highlightElement(a.get(o.app));
|
|
3003
3007
|
} else {
|
|
3004
|
-
const i =
|
|
3008
|
+
const i = To(o.nodeId, t);
|
|
3005
3009
|
i && s.highlightElement(i);
|
|
3006
3010
|
}
|
|
3007
3011
|
}), s.on.editInspectorState((o) => {
|
|
3008
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
3012
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && ho(o, t);
|
|
3009
3013
|
}), s.addTimelineLayer({
|
|
3010
3014
|
id: "vue-i18n-timeline",
|
|
3011
|
-
label:
|
|
3012
|
-
color:
|
|
3015
|
+
label: Rt["vue-i18n-timeline"],
|
|
3016
|
+
color: uo["vue-i18n-timeline"]
|
|
3013
3017
|
}), n(!0);
|
|
3014
3018
|
});
|
|
3015
3019
|
} catch (s) {
|
|
@@ -3017,22 +3021,22 @@ async function uo(e, t) {
|
|
|
3017
3021
|
}
|
|
3018
3022
|
});
|
|
3019
3023
|
}
|
|
3020
|
-
function
|
|
3024
|
+
function wr(e) {
|
|
3021
3025
|
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
3022
3026
|
}
|
|
3023
|
-
function
|
|
3027
|
+
function _o(e, t, n) {
|
|
3024
3028
|
const r = n.mode === "composition" ? n.global : n.global.__composer;
|
|
3025
3029
|
if (e && e.__VUE_I18N__ && e.__VUE_I18N__ !== r) {
|
|
3026
3030
|
const s = {
|
|
3027
|
-
label: `i18n (${
|
|
3031
|
+
label: `i18n (${wr(e)} Scope)`,
|
|
3028
3032
|
textColor: 0,
|
|
3029
3033
|
backgroundColor: 16764185
|
|
3030
3034
|
};
|
|
3031
3035
|
t.tags.push(s);
|
|
3032
3036
|
}
|
|
3033
3037
|
}
|
|
3034
|
-
function
|
|
3035
|
-
const n =
|
|
3038
|
+
function Yn(e, t) {
|
|
3039
|
+
const n = Ur;
|
|
3036
3040
|
e.state.push({
|
|
3037
3041
|
type: n,
|
|
3038
3042
|
key: "locale",
|
|
@@ -3057,7 +3061,7 @@ function Hn(e, t) {
|
|
|
3057
3061
|
type: n,
|
|
3058
3062
|
key: "messages",
|
|
3059
3063
|
editable: !1,
|
|
3060
|
-
value:
|
|
3064
|
+
value: fn(t.messages.value)
|
|
3061
3065
|
}), e.state.push({
|
|
3062
3066
|
type: n,
|
|
3063
3067
|
key: "datetimeFormats",
|
|
@@ -3070,34 +3074,34 @@ function Hn(e, t) {
|
|
|
3070
3074
|
value: t.numberFormats.value
|
|
3071
3075
|
});
|
|
3072
3076
|
}
|
|
3073
|
-
function
|
|
3077
|
+
function fn(e) {
|
|
3074
3078
|
const t = {};
|
|
3075
3079
|
return Object.keys(e).forEach((n) => {
|
|
3076
3080
|
const r = e[n];
|
|
3077
|
-
W(r) && "source" in r ? t[n] =
|
|
3081
|
+
W(r) && "source" in r ? t[n] = go(r) : se(r) && r.loc && r.loc.source ? t[n] = r.loc.source : M(r) ? t[n] = fn(r) : t[n] = r;
|
|
3078
3082
|
}), t;
|
|
3079
3083
|
}
|
|
3080
|
-
const
|
|
3084
|
+
const mo = {
|
|
3081
3085
|
"<": "<",
|
|
3082
3086
|
">": ">",
|
|
3083
3087
|
'"': """,
|
|
3084
3088
|
"&": "&"
|
|
3085
3089
|
};
|
|
3086
|
-
function mo(e) {
|
|
3087
|
-
return e.replace(/[<>"&]/g, Eo);
|
|
3088
|
-
}
|
|
3089
3090
|
function Eo(e) {
|
|
3090
|
-
return
|
|
3091
|
+
return e.replace(/[<>"&]/g, po);
|
|
3091
3092
|
}
|
|
3092
3093
|
function po(e) {
|
|
3094
|
+
return mo[e] || e;
|
|
3095
|
+
}
|
|
3096
|
+
function go(e) {
|
|
3093
3097
|
return {
|
|
3094
3098
|
_custom: {
|
|
3095
3099
|
type: "function",
|
|
3096
|
-
display: `<span>ƒ</span> ${e.source ? `("${
|
|
3100
|
+
display: `<span>ƒ</span> ${e.source ? `("${Eo(e.source)}")` : "(?)"}`
|
|
3097
3101
|
}
|
|
3098
3102
|
};
|
|
3099
3103
|
}
|
|
3100
|
-
function
|
|
3104
|
+
function No(e, t) {
|
|
3101
3105
|
e.rootNodes.push({
|
|
3102
3106
|
id: "global",
|
|
3103
3107
|
label: "Global Scope"
|
|
@@ -3107,11 +3111,11 @@ function go(e, t) {
|
|
|
3107
3111
|
const a = t.mode === "composition" ? s : s.__composer;
|
|
3108
3112
|
n !== a && e.rootNodes.push({
|
|
3109
3113
|
id: a.id.toString(),
|
|
3110
|
-
label: `${
|
|
3114
|
+
label: `${wr(r)} Scope`
|
|
3111
3115
|
});
|
|
3112
3116
|
}
|
|
3113
3117
|
}
|
|
3114
|
-
function
|
|
3118
|
+
function To(e, t) {
|
|
3115
3119
|
let n = null;
|
|
3116
3120
|
if (e !== "global") {
|
|
3117
3121
|
for (const [r, s] of t.__instances.entries())
|
|
@@ -3122,7 +3126,7 @@ function No(e, t) {
|
|
|
3122
3126
|
}
|
|
3123
3127
|
return n;
|
|
3124
3128
|
}
|
|
3125
|
-
function
|
|
3129
|
+
function Vr(e, t) {
|
|
3126
3130
|
if (e === "global")
|
|
3127
3131
|
return t.mode === "composition" ? t.global : t.global.__composer;
|
|
3128
3132
|
{
|
|
@@ -3130,11 +3134,11 @@ function wr(e, t) {
|
|
|
3130
3134
|
return n ? t.mode === "composition" ? n : n.__composer : null;
|
|
3131
3135
|
}
|
|
3132
3136
|
}
|
|
3133
|
-
function
|
|
3134
|
-
const n =
|
|
3135
|
-
return n && (e.state =
|
|
3137
|
+
function bo(e, t) {
|
|
3138
|
+
const n = Vr(e.nodeId, t);
|
|
3139
|
+
return n && (e.state = Io(n)), null;
|
|
3136
3140
|
}
|
|
3137
|
-
function
|
|
3141
|
+
function Io(e) {
|
|
3138
3142
|
const t = {}, n = "Locale related info", r = [
|
|
3139
3143
|
{
|
|
3140
3144
|
type: n,
|
|
@@ -3167,7 +3171,7 @@ function bo(e) {
|
|
|
3167
3171
|
type: s,
|
|
3168
3172
|
key: "messages",
|
|
3169
3173
|
editable: !1,
|
|
3170
|
-
value:
|
|
3174
|
+
value: fn(e.messages.value)
|
|
3171
3175
|
}
|
|
3172
3176
|
];
|
|
3173
3177
|
t[s] = a;
|
|
@@ -3181,7 +3185,7 @@ function bo(e) {
|
|
|
3181
3185
|
}
|
|
3182
3186
|
];
|
|
3183
3187
|
t[o] = i;
|
|
3184
|
-
const u = "Datetime formats info",
|
|
3188
|
+
const u = "Datetime formats info", m = [
|
|
3185
3189
|
{
|
|
3186
3190
|
type: u,
|
|
3187
3191
|
key: "numberFormats",
|
|
@@ -3189,14 +3193,14 @@ function bo(e) {
|
|
|
3189
3193
|
value: e.numberFormats.value
|
|
3190
3194
|
}
|
|
3191
3195
|
];
|
|
3192
|
-
t[u] =
|
|
3196
|
+
t[u] = m;
|
|
3193
3197
|
}
|
|
3194
3198
|
return t;
|
|
3195
3199
|
}
|
|
3196
|
-
function
|
|
3197
|
-
if (
|
|
3200
|
+
function Je(e, t) {
|
|
3201
|
+
if (Kt) {
|
|
3198
3202
|
let n;
|
|
3199
|
-
t && "groupId" in t && (n = t.groupId, delete t.groupId),
|
|
3203
|
+
t && "groupId" in t && (n = t.groupId, delete t.groupId), Kt.addTimelineEvent({
|
|
3200
3204
|
layerId: "vue-i18n-timeline",
|
|
3201
3205
|
event: {
|
|
3202
3206
|
title: e,
|
|
@@ -3209,15 +3213,15 @@ function qe(e, t) {
|
|
|
3209
3213
|
});
|
|
3210
3214
|
}
|
|
3211
3215
|
}
|
|
3212
|
-
function
|
|
3213
|
-
const n =
|
|
3216
|
+
function ho(e, t) {
|
|
3217
|
+
const n = Vr(e.nodeId, t);
|
|
3214
3218
|
if (n) {
|
|
3215
3219
|
const [r] = e.path;
|
|
3216
3220
|
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);
|
|
3217
3221
|
}
|
|
3218
3222
|
}
|
|
3219
|
-
function
|
|
3220
|
-
const t = L(e.locale) ? e.locale :
|
|
3223
|
+
function Lo(e) {
|
|
3224
|
+
const t = L(e.locale) ? e.locale : Be, n = L(e.fallbackLocale) || H(e.fallbackLocale) || R(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = W(e.missing) ? e.missing : void 0, s = F(e.silentTranslationWarn) || Me(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, a = F(e.silentFallbackWarn) || Me(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = F(e.fallbackRoot) ? e.fallbackRoot : !0, i = !!e.formatFallbackMessages, u = R(e.modifiers) ? e.modifiers : {}, m = e.pluralizationRules, b = W(e.postTranslation) ? e.postTranslation : void 0, T = L(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, N = !!e.escapeParameterHtml, A = F(e.sync) ? e.sync : !0;
|
|
3221
3225
|
let D = e.messages;
|
|
3222
3226
|
if (R(e.sharedMessages)) {
|
|
3223
3227
|
const O = e.sharedMessages;
|
|
@@ -3240,7 +3244,7 @@ function ho(e) {
|
|
|
3240
3244
|
fallbackRoot: o,
|
|
3241
3245
|
fallbackFormat: i,
|
|
3242
3246
|
modifiers: u,
|
|
3243
|
-
pluralRules:
|
|
3247
|
+
pluralRules: m,
|
|
3244
3248
|
postTranslation: b,
|
|
3245
3249
|
warnHtmlMessage: T,
|
|
3246
3250
|
escapeParameter: N,
|
|
@@ -3251,8 +3255,8 @@ function ho(e) {
|
|
|
3251
3255
|
__injectWithOption: f
|
|
3252
3256
|
};
|
|
3253
3257
|
}
|
|
3254
|
-
function
|
|
3255
|
-
const t =
|
|
3258
|
+
function Bt(e = {}) {
|
|
3259
|
+
const t = un(Lo(e)), { __extender: n } = e, r = {
|
|
3256
3260
|
// id
|
|
3257
3261
|
id: t.id,
|
|
3258
3262
|
// locale
|
|
@@ -3417,10 +3421,10 @@ function Kt(e = {}) {
|
|
|
3417
3421
|
a[Se] && a[Se](s);
|
|
3418
3422
|
}, r.__disableEmitter = () => {
|
|
3419
3423
|
const s = t;
|
|
3420
|
-
s[
|
|
3424
|
+
s[je] && s[je]();
|
|
3421
3425
|
}), r;
|
|
3422
3426
|
}
|
|
3423
|
-
function
|
|
3427
|
+
function Oo(e, t, n) {
|
|
3424
3428
|
return {
|
|
3425
3429
|
beforeCreate() {
|
|
3426
3430
|
const r = Re();
|
|
@@ -3430,17 +3434,17 @@ function Lo(e, t, n) {
|
|
|
3430
3434
|
if (s.i18n) {
|
|
3431
3435
|
const a = s.i18n;
|
|
3432
3436
|
if (s.__i18n && (a.__i18n = s.__i18n), a.__root = t, this === this.$root)
|
|
3433
|
-
this.$i18n =
|
|
3437
|
+
this.$i18n = Kn(e, a);
|
|
3434
3438
|
else {
|
|
3435
|
-
a.__injectWithOption = !0, a.__extender = n.__vueI18nExtend, this.$i18n =
|
|
3439
|
+
a.__injectWithOption = !0, a.__extender = n.__vueI18nExtend, this.$i18n = Bt(a);
|
|
3436
3440
|
const o = this.$i18n;
|
|
3437
3441
|
o.__extender && (o.__disposer = o.__extender(this.$i18n));
|
|
3438
3442
|
}
|
|
3439
3443
|
} else if (s.__i18n)
|
|
3440
3444
|
if (this === this.$root)
|
|
3441
|
-
this.$i18n =
|
|
3445
|
+
this.$i18n = Kn(e, s);
|
|
3442
3446
|
else {
|
|
3443
|
-
this.$i18n =
|
|
3447
|
+
this.$i18n = Bt({
|
|
3444
3448
|
__i18n: s.__i18n,
|
|
3445
3449
|
__injectWithOption: !0,
|
|
3446
3450
|
__extender: n.__vueI18nExtend,
|
|
@@ -3451,7 +3455,7 @@ function Lo(e, t, n) {
|
|
|
3451
3455
|
}
|
|
3452
3456
|
else
|
|
3453
3457
|
this.$i18n = e;
|
|
3454
|
-
s.__i18nGlobal &&
|
|
3458
|
+
s.__i18nGlobal && Fr(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);
|
|
3455
3459
|
},
|
|
3456
3460
|
mounted() {
|
|
3457
3461
|
if (process.env.NODE_ENV !== "production" && this.$i18n) {
|
|
@@ -3460,8 +3464,8 @@ function Lo(e, t, n) {
|
|
|
3460
3464
|
return;
|
|
3461
3465
|
const s = this.$i18n;
|
|
3462
3466
|
r.__VUE_I18N__ = s.__composer;
|
|
3463
|
-
const a = this.__v_emitter =
|
|
3464
|
-
s.__enableEmitter && s.__enableEmitter(a), a.on("*",
|
|
3467
|
+
const a = this.__v_emitter = rn();
|
|
3468
|
+
s.__enableEmitter && s.__enableEmitter(a), a.on("*", Je);
|
|
3465
3469
|
}
|
|
3466
3470
|
},
|
|
3467
3471
|
unmounted() {
|
|
@@ -3469,19 +3473,19 @@ function Lo(e, t, n) {
|
|
|
3469
3473
|
if (!r)
|
|
3470
3474
|
throw z(G.UNEXPECTED_ERROR);
|
|
3471
3475
|
const s = this.$i18n;
|
|
3472
|
-
process.env.NODE_ENV !== "production" && r.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*",
|
|
3476
|
+
process.env.NODE_ENV !== "production" && r.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", Je), delete this.__v_emitter), this.$i18n && (s.__disableEmitter && s.__disableEmitter(), delete r.__VUE_I18N__)), delete this.$t, delete this.$rt, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, s.__disposer && (s.__disposer(), delete s.__disposer, delete s.__extender), n.__deleteInstance(r), delete this.$i18n;
|
|
3473
3477
|
}
|
|
3474
3478
|
};
|
|
3475
3479
|
}
|
|
3476
|
-
function
|
|
3477
|
-
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[
|
|
3478
|
-
const n =
|
|
3480
|
+
function Kn(e, t) {
|
|
3481
|
+
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[kr](t.pluralizationRules || e.pluralizationRules);
|
|
3482
|
+
const n = cn(e.locale, {
|
|
3479
3483
|
messages: t.messages,
|
|
3480
3484
|
__i18n: t.__i18n
|
|
3481
3485
|
});
|
|
3482
3486
|
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;
|
|
3483
3487
|
}
|
|
3484
|
-
const
|
|
3488
|
+
const _n = {
|
|
3485
3489
|
tag: {
|
|
3486
3490
|
type: [String, Object]
|
|
3487
3491
|
},
|
|
@@ -3499,7 +3503,7 @@ const fn = {
|
|
|
3499
3503
|
type: Object
|
|
3500
3504
|
}
|
|
3501
3505
|
};
|
|
3502
|
-
function
|
|
3506
|
+
function vo({ slots: e }, t) {
|
|
3503
3507
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, s) => [
|
|
3504
3508
|
...r,
|
|
3505
3509
|
// prettier-ignore
|
|
@@ -3509,10 +3513,10 @@ function Oo({ slots: e }, t) {
|
|
|
3509
3513
|
return s && (n[r] = s()), n;
|
|
3510
3514
|
}, $());
|
|
3511
3515
|
}
|
|
3512
|
-
function
|
|
3516
|
+
function $r() {
|
|
3513
3517
|
return Jt;
|
|
3514
3518
|
}
|
|
3515
|
-
const
|
|
3519
|
+
const Co = /* @__PURE__ */ pe({
|
|
3516
3520
|
/* eslint-disable */
|
|
3517
3521
|
name: "i18n-t",
|
|
3518
3522
|
props: J({
|
|
@@ -3524,42 +3528,42 @@ const vo = /* @__PURE__ */ pe({
|
|
|
3524
3528
|
type: [Number, String],
|
|
3525
3529
|
validator: (e) => j(e) || !isNaN(e)
|
|
3526
3530
|
}
|
|
3527
|
-
},
|
|
3531
|
+
}, _n),
|
|
3528
3532
|
/* eslint-enable */
|
|
3529
3533
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3530
3534
|
setup(e, t) {
|
|
3531
|
-
const { slots: n, attrs: r } = t, s = e.i18n ||
|
|
3535
|
+
const { slots: n, attrs: r } = t, s = e.i18n || mn({
|
|
3532
3536
|
useScope: e.scope,
|
|
3533
3537
|
__useComponent: !0
|
|
3534
3538
|
});
|
|
3535
3539
|
return () => {
|
|
3536
3540
|
const a = Object.keys(n).filter((T) => T[0] !== "_"), o = $();
|
|
3537
3541
|
e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = L(e.plural) ? +e.plural : e.plural);
|
|
3538
|
-
const i =
|
|
3539
|
-
return
|
|
3542
|
+
const i = vo(t, a), u = s[Gt](e.keypath, i, o), m = J($(), r), b = L(e.tag) || M(e.tag) ? e.tag : $r();
|
|
3543
|
+
return rr(b, m, u);
|
|
3540
3544
|
};
|
|
3541
3545
|
}
|
|
3542
|
-
}), Bn =
|
|
3543
|
-
function
|
|
3546
|
+
}), Bn = Co;
|
|
3547
|
+
function Ao(e) {
|
|
3544
3548
|
return H(e) && !L(e[0]);
|
|
3545
3549
|
}
|
|
3546
|
-
function
|
|
3550
|
+
function Wr(e, t, n, r) {
|
|
3547
3551
|
const { slots: s, attrs: a } = t;
|
|
3548
3552
|
return () => {
|
|
3549
3553
|
const o = { part: !0 };
|
|
3550
3554
|
let i = $();
|
|
3551
3555
|
e.locale && (o.locale = e.locale), L(e.format) ? o.key = e.format : M(e.format) && (L(e.format.key) && (o.key = e.format.key), i = Object.keys(e.format).reduce((N, A) => n.includes(A) ? J($(), N, { [A]: e.format[A] }) : N, $()));
|
|
3552
3556
|
const u = r(e.value, o, i);
|
|
3553
|
-
let
|
|
3554
|
-
H(u) ?
|
|
3557
|
+
let m = [o.key];
|
|
3558
|
+
H(u) ? m = u.map((N, A) => {
|
|
3555
3559
|
const D = s[N.type], C = D ? D({ [N.type]: N.value, index: A, parts: u }) : [N.value];
|
|
3556
|
-
return
|
|
3557
|
-
}) : L(u) && (
|
|
3558
|
-
const b = J($(), a), T = L(e.tag) || M(e.tag) ? e.tag :
|
|
3559
|
-
return
|
|
3560
|
+
return Ao(C) && (C[0].key = `${N.type}-${A}`), C;
|
|
3561
|
+
}) : L(u) && (m = [u]);
|
|
3562
|
+
const b = J($(), a), T = L(e.tag) || M(e.tag) ? e.tag : $r();
|
|
3563
|
+
return rr(T, b, m);
|
|
3560
3564
|
};
|
|
3561
3565
|
}
|
|
3562
|
-
const
|
|
3566
|
+
const So = /* @__PURE__ */ pe({
|
|
3563
3567
|
/* eslint-disable */
|
|
3564
3568
|
name: "i18n-n",
|
|
3565
3569
|
props: J({
|
|
@@ -3570,21 +3574,21 @@ const Ao = /* @__PURE__ */ pe({
|
|
|
3570
3574
|
format: {
|
|
3571
3575
|
type: [String, Object]
|
|
3572
3576
|
}
|
|
3573
|
-
},
|
|
3577
|
+
}, _n),
|
|
3574
3578
|
/* eslint-enable */
|
|
3575
3579
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3576
3580
|
setup(e, t) {
|
|
3577
|
-
const n = e.i18n ||
|
|
3581
|
+
const n = e.i18n || mn({
|
|
3578
3582
|
useScope: e.scope,
|
|
3579
3583
|
__useComponent: !0
|
|
3580
3584
|
});
|
|
3581
|
-
return
|
|
3585
|
+
return Wr(e, t, Sr, (...r) => (
|
|
3582
3586
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3583
3587
|
n[Ht](...r)
|
|
3584
3588
|
));
|
|
3585
3589
|
}
|
|
3586
|
-
}),
|
|
3587
|
-
function
|
|
3590
|
+
}), jn = So;
|
|
3591
|
+
function yo(e, t) {
|
|
3588
3592
|
const n = e;
|
|
3589
3593
|
if (e.mode === "composition")
|
|
3590
3594
|
return n.__getInstance(t) || e.global;
|
|
@@ -3593,33 +3597,33 @@ function So(e, t) {
|
|
|
3593
3597
|
return r != null ? r.__composer : e.global.__composer;
|
|
3594
3598
|
}
|
|
3595
3599
|
}
|
|
3596
|
-
function
|
|
3600
|
+
function Po(e) {
|
|
3597
3601
|
const t = (o) => {
|
|
3598
|
-
process.env.NODE_ENV !== "production" &&
|
|
3602
|
+
process.env.NODE_ENV !== "production" && en(Ue(ne.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
|
|
3599
3603
|
const { instance: i, value: u } = o;
|
|
3600
3604
|
if (!i || !i.$)
|
|
3601
3605
|
throw z(G.UNEXPECTED_ERROR);
|
|
3602
|
-
const
|
|
3606
|
+
const m = yo(e, i.$), b = Xn(u);
|
|
3603
3607
|
return [
|
|
3604
|
-
Reflect.apply(
|
|
3605
|
-
|
|
3608
|
+
Reflect.apply(m.t, m, [...Jn(b)]),
|
|
3609
|
+
m
|
|
3606
3610
|
];
|
|
3607
3611
|
};
|
|
3608
3612
|
return {
|
|
3609
3613
|
created: (o, i) => {
|
|
3610
|
-
const [u,
|
|
3611
|
-
le && e.global ===
|
|
3614
|
+
const [u, m] = t(i);
|
|
3615
|
+
le && e.global === m && (o.__i18nWatcher = Mt(m.locale, () => {
|
|
3612
3616
|
i.instance && i.instance.$forceUpdate();
|
|
3613
|
-
})), o.__composer =
|
|
3617
|
+
})), o.__composer = m, o.textContent = u;
|
|
3614
3618
|
},
|
|
3615
3619
|
unmounted: (o) => {
|
|
3616
3620
|
le && o.__i18nWatcher && (o.__i18nWatcher(), o.__i18nWatcher = void 0, delete o.__i18nWatcher), o.__composer && (o.__composer = void 0, delete o.__composer);
|
|
3617
3621
|
},
|
|
3618
3622
|
beforeUpdate: (o, { value: i }) => {
|
|
3619
3623
|
if (o.__composer) {
|
|
3620
|
-
const u = o.__composer,
|
|
3624
|
+
const u = o.__composer, m = Xn(i);
|
|
3621
3625
|
o.textContent = Reflect.apply(u.t, u, [
|
|
3622
|
-
...
|
|
3626
|
+
...Jn(m)
|
|
3623
3627
|
]);
|
|
3624
3628
|
}
|
|
3625
3629
|
},
|
|
@@ -3629,7 +3633,7 @@ function yo(e) {
|
|
|
3629
3633
|
}
|
|
3630
3634
|
};
|
|
3631
3635
|
}
|
|
3632
|
-
function
|
|
3636
|
+
function Xn(e) {
|
|
3633
3637
|
if (L(e))
|
|
3634
3638
|
return { path: e };
|
|
3635
3639
|
if (R(e)) {
|
|
@@ -3639,26 +3643,26 @@ function jn(e) {
|
|
|
3639
3643
|
} else
|
|
3640
3644
|
throw z(G.INVALID_VALUE);
|
|
3641
3645
|
}
|
|
3642
|
-
function
|
|
3646
|
+
function Jn(e) {
|
|
3643
3647
|
const { path: t, locale: n, args: r, choice: s, plural: a } = e, o = {}, i = r || {};
|
|
3644
3648
|
return L(n) && (o.locale = n), j(s) && (o.plural = s), j(a) && (o.plural = a), [t, i, o];
|
|
3645
3649
|
}
|
|
3646
|
-
function
|
|
3650
|
+
function Do(e, t, ...n) {
|
|
3647
3651
|
const r = R(n[0]) ? n[0] : {};
|
|
3648
|
-
(!F(r.globalInstall) || r.globalInstall) && ([Bn.name, "I18nT"].forEach((a) => e.component(a, Bn)), [
|
|
3652
|
+
(!F(r.globalInstall) || r.globalInstall) && ([Bn.name, "I18nT"].forEach((a) => e.component(a, Bn)), [jn.name, "I18nN"].forEach((a) => e.component(a, jn)), [qn.name, "I18nD"].forEach((a) => e.component(a, qn))), e.directive("t", Po(t));
|
|
3649
3653
|
}
|
|
3650
|
-
const
|
|
3651
|
-
function
|
|
3654
|
+
const ko = /* @__PURE__ */ fe("global-vue-i18n");
|
|
3655
|
+
function Ro(e = {}) {
|
|
3652
3656
|
const t = __VUE_I18N_LEGACY_API__ && F(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
|
|
3653
|
-
process.env.NODE_ENV !== "production" && t &&
|
|
3654
|
-
const n = F(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [s, a] =
|
|
3657
|
+
process.env.NODE_ENV !== "production" && t && en(Ue(ne.DEPRECATE_LEGACY_MODE));
|
|
3658
|
+
const n = F(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [s, a] = Mo(e, t), o = /* @__PURE__ */ fe(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
3655
3659
|
function i(T) {
|
|
3656
3660
|
return r.get(T) || null;
|
|
3657
3661
|
}
|
|
3658
3662
|
function u(T, N) {
|
|
3659
3663
|
r.set(T, N);
|
|
3660
3664
|
}
|
|
3661
|
-
function
|
|
3665
|
+
function m(T) {
|
|
3662
3666
|
r.delete(T);
|
|
3663
3667
|
}
|
|
3664
3668
|
const b = {
|
|
@@ -3673,14 +3677,14 @@ function ko(e = {}) {
|
|
|
3673
3677
|
b.__composerExtend = C.__composerExtend, b.__vueI18nExtend = C.__vueI18nExtend;
|
|
3674
3678
|
}
|
|
3675
3679
|
let A = null;
|
|
3676
|
-
!t && n && (A =
|
|
3680
|
+
!t && n && (A = xo(T, b.global)), __VUE_I18N_FULL_INSTALL__ && Do(T, b, ...N), __VUE_I18N_LEGACY_API__ && t && T.mixin(Oo(a, a.__composer, b));
|
|
3677
3681
|
const D = T.unmount;
|
|
3678
3682
|
if (T.unmount = () => {
|
|
3679
3683
|
A && A(), b.dispose(), D();
|
|
3680
3684
|
}, process.env.NODE_ENV !== "production") {
|
|
3681
|
-
if (!await
|
|
3685
|
+
if (!await fo(T, b))
|
|
3682
3686
|
throw z(G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
3683
|
-
const S =
|
|
3687
|
+
const S = rn();
|
|
3684
3688
|
if (t) {
|
|
3685
3689
|
const f = a;
|
|
3686
3690
|
f.__enableEmitter && f.__enableEmitter(S);
|
|
@@ -3688,7 +3692,7 @@ function ko(e = {}) {
|
|
|
3688
3692
|
const f = a;
|
|
3689
3693
|
f[Se] && f[Se](S);
|
|
3690
3694
|
}
|
|
3691
|
-
S.on("*",
|
|
3695
|
+
S.on("*", Je);
|
|
3692
3696
|
}
|
|
3693
3697
|
},
|
|
3694
3698
|
// global accessor
|
|
@@ -3705,61 +3709,61 @@ function ko(e = {}) {
|
|
|
3705
3709
|
// @internal
|
|
3706
3710
|
__setInstance: u,
|
|
3707
3711
|
// @internal
|
|
3708
|
-
__deleteInstance:
|
|
3712
|
+
__deleteInstance: m
|
|
3709
3713
|
};
|
|
3710
3714
|
return b;
|
|
3711
3715
|
}
|
|
3712
|
-
function
|
|
3716
|
+
function mn(e = {}) {
|
|
3713
3717
|
const t = Re();
|
|
3714
3718
|
if (t == null)
|
|
3715
3719
|
throw z(G.MUST_BE_CALL_SETUP_TOP);
|
|
3716
3720
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
3717
3721
|
throw z(G.NOT_INSTALLED);
|
|
3718
|
-
const n =
|
|
3722
|
+
const n = Fo(t), r = wo(n), s = Mr(t), a = Uo(e, s);
|
|
3719
3723
|
if (a === "global")
|
|
3720
|
-
return
|
|
3724
|
+
return Fr(r, e, s), r;
|
|
3721
3725
|
if (a === "parent") {
|
|
3722
|
-
let u =
|
|
3726
|
+
let u = Vo(n, t, e.__useComponent);
|
|
3723
3727
|
return u == null && (process.env.NODE_ENV !== "production" && ue(Ue(ne.NOT_FOUND_PARENT_SCOPE)), u = r), u;
|
|
3724
3728
|
}
|
|
3725
3729
|
const o = n;
|
|
3726
3730
|
let i = o.__getInstance(t);
|
|
3727
3731
|
if (i == null) {
|
|
3728
3732
|
const u = J({}, e);
|
|
3729
|
-
"__i18n" in s && (u.__i18n = s.__i18n), r && (u.__root = r), i =
|
|
3733
|
+
"__i18n" in s && (u.__i18n = s.__i18n), r && (u.__root = r), i = un(u), o.__composerExtend && (i[Yt] = o.__composerExtend(i)), Wo(o, t, i), o.__setInstance(t, i);
|
|
3730
3734
|
} else
|
|
3731
3735
|
process.env.NODE_ENV !== "production" && a === "local" && ue(Ue(ne.DUPLICATE_USE_I18N_CALLING));
|
|
3732
3736
|
return i;
|
|
3733
3737
|
}
|
|
3734
|
-
function
|
|
3735
|
-
const n =
|
|
3738
|
+
function Mo(e, t) {
|
|
3739
|
+
const n = Hr(), r = __VUE_I18N_LEGACY_API__ && t ? n.run(() => Bt(e)) : n.run(() => un(e));
|
|
3736
3740
|
if (r == null)
|
|
3737
3741
|
throw z(G.UNEXPECTED_ERROR);
|
|
3738
3742
|
return [n, r];
|
|
3739
3743
|
}
|
|
3740
|
-
function
|
|
3741
|
-
const t = jt(e.isCE ?
|
|
3744
|
+
function Fo(e) {
|
|
3745
|
+
const t = jt(e.isCE ? ko : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
3742
3746
|
if (!t)
|
|
3743
3747
|
throw z(e.isCE ? G.NOT_INSTALLED_WITH_PROVIDE : G.UNEXPECTED_ERROR);
|
|
3744
3748
|
return t;
|
|
3745
3749
|
}
|
|
3746
|
-
function
|
|
3747
|
-
return
|
|
3750
|
+
function Uo(e, t) {
|
|
3751
|
+
return ct(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
3748
3752
|
}
|
|
3749
|
-
function
|
|
3753
|
+
function wo(e) {
|
|
3750
3754
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
3751
3755
|
}
|
|
3752
|
-
function
|
|
3756
|
+
function Vo(e, t, n = !1) {
|
|
3753
3757
|
let r = null;
|
|
3754
3758
|
const s = t.root;
|
|
3755
|
-
let a =
|
|
3759
|
+
let a = $o(t, n);
|
|
3756
3760
|
for (; a != null; ) {
|
|
3757
3761
|
const o = e;
|
|
3758
3762
|
if (e.mode === "composition")
|
|
3759
3763
|
r = o.__getInstance(a);
|
|
3760
3764
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
3761
3765
|
const i = o.__getInstance(a);
|
|
3762
|
-
i != null && (r = i.__composer, n && r && !r[
|
|
3766
|
+
i != null && (r = i.__composer, n && r && !r[Rr] && (r = null));
|
|
3763
3767
|
}
|
|
3764
3768
|
if (r != null || s === a)
|
|
3765
3769
|
break;
|
|
@@ -3767,36 +3771,36 @@ function wo(e, t, n = !1) {
|
|
|
3767
3771
|
}
|
|
3768
3772
|
return r;
|
|
3769
3773
|
}
|
|
3770
|
-
function
|
|
3774
|
+
function $o(e, t = !1) {
|
|
3771
3775
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
3772
3776
|
}
|
|
3773
|
-
function
|
|
3777
|
+
function Wo(e, t, n) {
|
|
3774
3778
|
let r = null;
|
|
3775
3779
|
Br(() => {
|
|
3776
3780
|
if (process.env.NODE_ENV !== "production") {
|
|
3777
|
-
t.__VUE_I18N__ = n, r =
|
|
3781
|
+
t.__VUE_I18N__ = n, r = rn();
|
|
3778
3782
|
const s = n;
|
|
3779
|
-
s[Se] && s[Se](r), r.on("*",
|
|
3783
|
+
s[Se] && s[Se](r), r.on("*", Je);
|
|
3780
3784
|
}
|
|
3781
|
-
}, t),
|
|
3785
|
+
}, t), jr(() => {
|
|
3782
3786
|
const s = n;
|
|
3783
|
-
process.env.NODE_ENV !== "production" && (r && r.off("*",
|
|
3787
|
+
process.env.NODE_ENV !== "production" && (r && r.off("*", Je), s[je] && s[je](), delete t.__VUE_I18N__), e.__deleteInstance(t);
|
|
3784
3788
|
const a = s[Yt];
|
|
3785
3789
|
a && (a(), delete s[Yt]);
|
|
3786
3790
|
}, t);
|
|
3787
3791
|
}
|
|
3788
|
-
const
|
|
3792
|
+
const Go = [
|
|
3789
3793
|
"locale",
|
|
3790
3794
|
"fallbackLocale",
|
|
3791
3795
|
"availableLocales"
|
|
3792
|
-
],
|
|
3793
|
-
function
|
|
3796
|
+
], Qn = ["t", "rt", "d", "n", "tm", "te"];
|
|
3797
|
+
function xo(e, t) {
|
|
3794
3798
|
const n = /* @__PURE__ */ Object.create(null);
|
|
3795
|
-
return
|
|
3799
|
+
return Go.forEach((s) => {
|
|
3796
3800
|
const a = Object.getOwnPropertyDescriptor(t, s);
|
|
3797
3801
|
if (!a)
|
|
3798
3802
|
throw z(G.UNEXPECTED_ERROR);
|
|
3799
|
-
const o =
|
|
3803
|
+
const o = Yr(a.value) ? {
|
|
3800
3804
|
get() {
|
|
3801
3805
|
return a.value.value;
|
|
3802
3806
|
},
|
|
@@ -3810,18 +3814,18 @@ function Go(e, t) {
|
|
|
3810
3814
|
}
|
|
3811
3815
|
};
|
|
3812
3816
|
Object.defineProperty(n, s, o);
|
|
3813
|
-
}), e.config.globalProperties.$i18n = n,
|
|
3817
|
+
}), e.config.globalProperties.$i18n = n, Qn.forEach((s) => {
|
|
3814
3818
|
const a = Object.getOwnPropertyDescriptor(t, s);
|
|
3815
3819
|
if (!a || !a.value)
|
|
3816
3820
|
throw z(G.UNEXPECTED_ERROR);
|
|
3817
3821
|
Object.defineProperty(e.config.globalProperties, `$${s}`, a);
|
|
3818
3822
|
}), () => {
|
|
3819
|
-
delete e.config.globalProperties.$i18n,
|
|
3823
|
+
delete e.config.globalProperties.$i18n, Qn.forEach((s) => {
|
|
3820
3824
|
delete e.config.globalProperties[`$${s}`];
|
|
3821
3825
|
});
|
|
3822
3826
|
};
|
|
3823
3827
|
}
|
|
3824
|
-
const
|
|
3828
|
+
const Ho = /* @__PURE__ */ pe({
|
|
3825
3829
|
/* eslint-disable */
|
|
3826
3830
|
name: "i18n-d",
|
|
3827
3831
|
props: J({
|
|
@@ -3832,156 +3836,156 @@ const xo = /* @__PURE__ */ pe({
|
|
|
3832
3836
|
format: {
|
|
3833
3837
|
type: [String, Object]
|
|
3834
3838
|
}
|
|
3835
|
-
},
|
|
3839
|
+
}, _n),
|
|
3836
3840
|
/* eslint-enable */
|
|
3837
3841
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3838
3842
|
setup(e, t) {
|
|
3839
|
-
const n = e.i18n ||
|
|
3843
|
+
const n = e.i18n || mn({
|
|
3840
3844
|
useScope: e.scope,
|
|
3841
3845
|
__useComponent: !0
|
|
3842
3846
|
});
|
|
3843
|
-
return
|
|
3847
|
+
return Wr(e, t, Ar, (...r) => (
|
|
3844
3848
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3845
3849
|
n[xt](...r)
|
|
3846
3850
|
));
|
|
3847
3851
|
}
|
|
3848
|
-
}),
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3852
|
+
}), qn = Ho;
|
|
3853
|
+
so();
|
|
3854
|
+
Sa(oa);
|
|
3855
|
+
ya(La);
|
|
3856
|
+
Pa(Nr);
|
|
3853
3857
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3854
3858
|
const e = ve();
|
|
3855
|
-
e.__INTLIFY__ = !0,
|
|
3859
|
+
e.__INTLIFY__ = !0, la(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
3856
3860
|
}
|
|
3857
3861
|
process.env.NODE_ENV;
|
|
3858
|
-
const
|
|
3859
|
-
name:
|
|
3860
|
-
supplier:
|
|
3862
|
+
const Yo = "名称", Ko = "供应商", Bo = "版本", jo = "描述", Xo = "类别", Jo = "通用", Qo = "I/O映射", qo = "Modbus从站通道", Zo = "状态", zo = "以太网", el = "Modbus TCP服务器", tl = "Modbus TCP客户端", nl = "Modbus TCP从站设备", rl = "成都数字创新科技有限公司", sl = { ethernet: "一种在以太网上充当Modbus服务器的设备。", modbusTcpServer: "一种在以太网上充当Modbus TCP服务器的设备。", modbusTcpClient: "一种在以太网上充当Modbus TCP客户端的设备。", modbusTCPSlaveDevice: "一种在以太网上充当Modbus TCP从站设备。" }, al = "网络接口", ol = "IP地址", ll = "子网掩码", il = "默认网关", cl = "适配操作系统配置", ul = "总线周期任务", fl = "使用父总线循环设置", _l = "响应超时(ms)", ml = "Socket超时(ms)", dl = "自动重连", El = "从站IP地址", pl = "端口", gl = " 看门狗", Nl = "从站端口", Tl = "绑定到适配器", bl = "保持寄存器", Il = "可写入", hl = "输入寄存器", Ll = "离散位区域", Ol = "线圈", vl = "离散输入", Cl = "数据模型", Al = "起始地址", Sl = {
|
|
3863
|
+
name: Yo,
|
|
3864
|
+
supplier: Ko,
|
|
3861
3865
|
version: Bo,
|
|
3862
|
-
description:
|
|
3863
|
-
category:
|
|
3864
|
-
general:
|
|
3865
|
-
ioMapping:
|
|
3866
|
-
modbusSlaveChannel:
|
|
3867
|
-
status:
|
|
3868
|
-
ethernet:
|
|
3869
|
-
modbusTcpServer:
|
|
3870
|
-
modbusTcpClient:
|
|
3871
|
-
modbusTCPSlaveDevice:
|
|
3872
|
-
company:
|
|
3873
|
-
descriptionMap:
|
|
3874
|
-
netInterface:
|
|
3875
|
-
ipAddress:
|
|
3876
|
-
subnetMask:
|
|
3877
|
-
defaultGateway:
|
|
3878
|
-
adaptedOSConfiguration:
|
|
3879
|
-
busCycleTask:
|
|
3880
|
-
defaultTask:
|
|
3881
|
-
responseTimeout:
|
|
3882
|
-
socketTimeout:
|
|
3883
|
-
reconnect:
|
|
3884
|
-
slaveIpAddress:
|
|
3885
|
-
port:
|
|
3886
|
-
watchDog:
|
|
3887
|
-
slavePort:
|
|
3888
|
-
bindToAdapter:
|
|
3889
|
-
holdingRegister:
|
|
3890
|
-
writable:
|
|
3891
|
-
inputRegister:
|
|
3892
|
-
discreteBitArea:
|
|
3893
|
-
coil:
|
|
3894
|
-
discreteInput:
|
|
3895
|
-
dataModel:
|
|
3896
|
-
startAddress:
|
|
3897
|
-
},
|
|
3898
|
-
name:
|
|
3899
|
-
supplier:
|
|
3900
|
-
version:
|
|
3901
|
-
description:
|
|
3902
|
-
category:
|
|
3903
|
-
general:
|
|
3904
|
-
ioMapping:
|
|
3905
|
-
modbusSlaveChannel:
|
|
3906
|
-
status:
|
|
3907
|
-
ethernet:
|
|
3908
|
-
modbusTcpServer:
|
|
3909
|
-
modbusTcpClient:
|
|
3910
|
-
modbusTCPSlaveDevice:
|
|
3911
|
-
company:
|
|
3912
|
-
descriptionMap:
|
|
3913
|
-
netInterface:
|
|
3914
|
-
ipAddress:
|
|
3866
|
+
description: jo,
|
|
3867
|
+
category: Xo,
|
|
3868
|
+
general: Jo,
|
|
3869
|
+
ioMapping: Qo,
|
|
3870
|
+
modbusSlaveChannel: qo,
|
|
3871
|
+
status: Zo,
|
|
3872
|
+
ethernet: zo,
|
|
3873
|
+
modbusTcpServer: el,
|
|
3874
|
+
modbusTcpClient: tl,
|
|
3875
|
+
modbusTCPSlaveDevice: nl,
|
|
3876
|
+
company: rl,
|
|
3877
|
+
descriptionMap: sl,
|
|
3878
|
+
netInterface: al,
|
|
3879
|
+
ipAddress: ol,
|
|
3880
|
+
subnetMask: ll,
|
|
3881
|
+
defaultGateway: il,
|
|
3882
|
+
adaptedOSConfiguration: cl,
|
|
3883
|
+
busCycleTask: ul,
|
|
3884
|
+
defaultTask: fl,
|
|
3885
|
+
responseTimeout: _l,
|
|
3886
|
+
socketTimeout: ml,
|
|
3887
|
+
reconnect: dl,
|
|
3888
|
+
slaveIpAddress: El,
|
|
3889
|
+
port: pl,
|
|
3890
|
+
watchDog: gl,
|
|
3891
|
+
slavePort: Nl,
|
|
3892
|
+
bindToAdapter: Tl,
|
|
3893
|
+
holdingRegister: bl,
|
|
3894
|
+
writable: Il,
|
|
3895
|
+
inputRegister: hl,
|
|
3896
|
+
discreteBitArea: Ll,
|
|
3897
|
+
coil: Ol,
|
|
3898
|
+
discreteInput: vl,
|
|
3899
|
+
dataModel: Cl,
|
|
3900
|
+
startAddress: Al
|
|
3901
|
+
}, yl = "Name", Pl = "Supplier", Dl = "Version", kl = "Description", Rl = "Category", Ml = "General", Fl = "I/O Mapping", Ul = "Modbus Slave Channel", wl = "Status", Vl = "Ethernet", $l = "Modbus TCP Server", Wl = "Modbus TCP Client", Gl = "Modbus TCP Slave Device", xl = "Chengdu AIOSYS Innovation Technology Co., Ltd.", Hl = { 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." }, Yl = "Network Interface", Kl = "IP Address", Bl = "Subnet Mask", jl = "Default Gateway", Xl = "Adapted OS Configuration", Jl = "Bus Cycle Task", Ql = "Use Parent Bus Cycle Setting", ql = "Response Timeout(ms)", Zl = "Socket Timeout(ms)", zl = "Reconnect", ei = "Slave IP Address", ti = "Port", ni = "Watch Dog", ri = "Slave Port", si = "Bind to Adapter", ai = "Holding Register", oi = "Writable", li = "Input Register", ii = "Discrete Bit Area", ci = "Coil", ui = "Discrete Input", fi = "Data Model", _i = "Start Address", mi = {
|
|
3902
|
+
name: yl,
|
|
3903
|
+
supplier: Pl,
|
|
3904
|
+
version: Dl,
|
|
3905
|
+
description: kl,
|
|
3906
|
+
category: Rl,
|
|
3907
|
+
general: Ml,
|
|
3908
|
+
ioMapping: Fl,
|
|
3909
|
+
modbusSlaveChannel: Ul,
|
|
3910
|
+
status: wl,
|
|
3911
|
+
ethernet: Vl,
|
|
3912
|
+
modbusTcpServer: $l,
|
|
3913
|
+
modbusTcpClient: Wl,
|
|
3914
|
+
modbusTCPSlaveDevice: Gl,
|
|
3915
|
+
company: xl,
|
|
3916
|
+
descriptionMap: Hl,
|
|
3917
|
+
netInterface: Yl,
|
|
3918
|
+
ipAddress: Kl,
|
|
3915
3919
|
subnetMask: Bl,
|
|
3916
|
-
defaultGateway:
|
|
3917
|
-
adaptedOSConfiguration:
|
|
3918
|
-
busCycleTask:
|
|
3919
|
-
defaultTask:
|
|
3920
|
-
responseTimeout:
|
|
3921
|
-
socketTimeout:
|
|
3922
|
-
reconnect:
|
|
3923
|
-
slaveIpAddress:
|
|
3924
|
-
port:
|
|
3925
|
-
watchDog:
|
|
3926
|
-
slavePort:
|
|
3927
|
-
bindToAdapter:
|
|
3928
|
-
holdingRegister:
|
|
3929
|
-
writable:
|
|
3930
|
-
inputRegister:
|
|
3931
|
-
discreteBitArea:
|
|
3932
|
-
coil:
|
|
3933
|
-
discreteInput:
|
|
3934
|
-
dataModel:
|
|
3935
|
-
startAddress:
|
|
3936
|
-
},
|
|
3937
|
-
zh:
|
|
3938
|
-
en:
|
|
3939
|
-
},
|
|
3920
|
+
defaultGateway: jl,
|
|
3921
|
+
adaptedOSConfiguration: Xl,
|
|
3922
|
+
busCycleTask: Jl,
|
|
3923
|
+
defaultTask: Ql,
|
|
3924
|
+
responseTimeout: ql,
|
|
3925
|
+
socketTimeout: Zl,
|
|
3926
|
+
reconnect: zl,
|
|
3927
|
+
slaveIpAddress: ei,
|
|
3928
|
+
port: ti,
|
|
3929
|
+
watchDog: ni,
|
|
3930
|
+
slavePort: ri,
|
|
3931
|
+
bindToAdapter: si,
|
|
3932
|
+
holdingRegister: ai,
|
|
3933
|
+
writable: oi,
|
|
3934
|
+
inputRegister: li,
|
|
3935
|
+
discreteBitArea: ii,
|
|
3936
|
+
coil: ci,
|
|
3937
|
+
discreteInput: ui,
|
|
3938
|
+
dataModel: fi,
|
|
3939
|
+
startAddress: _i
|
|
3940
|
+
}, di = {
|
|
3941
|
+
zh: Sl,
|
|
3942
|
+
en: mi
|
|
3943
|
+
}, Oe = Ro({
|
|
3940
3944
|
legacy: !1,
|
|
3941
3945
|
locale: "zh",
|
|
3942
3946
|
fallbackLocale: "en",
|
|
3943
|
-
messages:
|
|
3947
|
+
messages: di
|
|
3944
3948
|
});
|
|
3945
|
-
typeof window < "u" && (window.$t =
|
|
3949
|
+
typeof window < "u" && (window.$t = Oe.global.t.bind(Oe.global), Object.defineProperty(window, "$locale", {
|
|
3946
3950
|
get() {
|
|
3947
|
-
return typeof
|
|
3951
|
+
return typeof Oe.global.locale == "string" ? Oe.global.locale : Oe.global.locale.value;
|
|
3948
3952
|
},
|
|
3949
3953
|
set(e) {
|
|
3950
|
-
|
|
3954
|
+
Oe.global.locale = e;
|
|
3951
3955
|
}
|
|
3952
3956
|
}));
|
|
3953
|
-
const
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
const
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
],
|
|
3957
|
+
const _t = Jr(is).use(Oe);
|
|
3958
|
+
_t.component("Input", Qt);
|
|
3959
|
+
_t.component("InputNumber", lr);
|
|
3960
|
+
_t.component("IpInput", or);
|
|
3961
|
+
_t.mount("#app");
|
|
3962
|
+
const Ei = [
|
|
3963
|
+
qr,
|
|
3964
|
+
zr,
|
|
3965
|
+
Qt,
|
|
3966
|
+
lr,
|
|
3967
|
+
or
|
|
3968
|
+
], Ni = {
|
|
3965
3969
|
install(e) {
|
|
3966
|
-
|
|
3970
|
+
Ei.forEach((t) => {
|
|
3967
3971
|
e.component(t.name, t);
|
|
3968
3972
|
});
|
|
3969
3973
|
}
|
|
3970
3974
|
};
|
|
3971
3975
|
export {
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3976
|
+
zr as Button2,
|
|
3977
|
+
ot as EthernetProtocolItem,
|
|
3978
|
+
Qt as Input,
|
|
3979
|
+
lr as InputNumber,
|
|
3980
|
+
or as IpInput,
|
|
3981
|
+
Zt as ModbusTCPClientProtocolItem,
|
|
3982
|
+
qt as ModbusTCPServerProtocolItem,
|
|
3983
|
+
zt as ModbusTCPSlaveDeviceProtocolItem,
|
|
3984
|
+
qr as MyButton,
|
|
3985
|
+
gi as MyLibPlugin,
|
|
3986
|
+
ls as ProtocolCollection,
|
|
3983
3987
|
re as ProtocolItem,
|
|
3984
3988
|
Ee as ProtocolType,
|
|
3985
|
-
|
|
3986
|
-
|
|
3989
|
+
Ni as default,
|
|
3990
|
+
lt as protocolMap
|
|
3987
3991
|
};
|