@i18n-micro/astro 1.3.13 → 1.3.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.js +6 -17
- package/dist/client/preact.js +35 -64
- package/dist/client/react.js +35 -64
- package/dist/client/svelte.js +60 -62
- package/dist/client/vue.js +2 -1552
- package/dist/core-DwkpOV-H.cjs +1 -0
- package/dist/core-VSnkGRWR.js +28 -0
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +498 -564
- package/dist/vue-BVFyDsja.cjs +5 -0
- package/dist/vue-CyIbewNw.js +1723 -0
- package/package.json +11 -11
- package/dist/core-B-Ia_nzr.cjs +0 -1
- package/dist/core-Bk6qZuDf.js +0 -37
package/dist/client/vue.js
CHANGED
|
@@ -1,1552 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
// @__NO_SIDE_EFFECTS__
|
|
4
|
-
function Rt(e) {
|
|
5
|
-
const t = /* @__PURE__ */ Object.create(null);
|
|
6
|
-
for (const n of e.split(",")) t[n] = 1;
|
|
7
|
-
return (n) => n in t;
|
|
8
|
-
}
|
|
9
|
-
const Ee = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
10
|
-
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
11
|
-
const He = () => {
|
|
12
|
-
}, Dt = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
13
|
-
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), j = Object.assign, xt = Object.prototype.hasOwnProperty, be = (e, t) => xt.call(e, t), _ = Array.isArray, Y = (e) => Ke(e) === "[object Map]", T = (e) => typeof e == "function", D = (e) => typeof e == "string", ee = (e) => typeof e == "symbol", E = (e) => e !== null && typeof e == "object", Vt = Object.prototype.toString, Ke = (e) => Vt.call(e), We = (e) => Ke(e).slice(8, -1), Re = (e) => D(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Tt = (e) => {
|
|
14
|
-
const t = /* @__PURE__ */ Object.create(null);
|
|
15
|
-
return ((n) => t[n] || (t[n] = e(n)));
|
|
16
|
-
}, It = Tt((e) => e.charAt(0).toUpperCase() + e.slice(1)), z = (e, t) => !Object.is(e, t);
|
|
17
|
-
let $e;
|
|
18
|
-
const le = () => $e || ($e = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
19
|
-
function De(e) {
|
|
20
|
-
if (_(e)) {
|
|
21
|
-
const t = {};
|
|
22
|
-
for (let n = 0; n < e.length; n++) {
|
|
23
|
-
const s = e[n], r = D(s) ? Pt(s) : De(s);
|
|
24
|
-
if (r)
|
|
25
|
-
for (const o in r)
|
|
26
|
-
t[o] = r[o];
|
|
27
|
-
}
|
|
28
|
-
return t;
|
|
29
|
-
} else if (D(e) || E(e))
|
|
30
|
-
return e;
|
|
31
|
-
}
|
|
32
|
-
const Ct = /;(?![^(]*\))/g, At = /:([^]+)/, Mt = /\/\*[^]*?\*\//g;
|
|
33
|
-
function Pt(e) {
|
|
34
|
-
const t = {};
|
|
35
|
-
return e.replace(Mt, "").split(Ct).forEach((n) => {
|
|
36
|
-
if (n) {
|
|
37
|
-
const s = n.split(At);
|
|
38
|
-
s.length > 1 && (t[s[0].trim()] = s[1].trim());
|
|
39
|
-
}
|
|
40
|
-
}), t;
|
|
41
|
-
}
|
|
42
|
-
function xe(e) {
|
|
43
|
-
let t = "";
|
|
44
|
-
if (D(e))
|
|
45
|
-
t = e;
|
|
46
|
-
else if (_(e))
|
|
47
|
-
for (let n = 0; n < e.length; n++) {
|
|
48
|
-
const s = xe(e[n]);
|
|
49
|
-
s && (t += s + " ");
|
|
50
|
-
}
|
|
51
|
-
else if (E(e))
|
|
52
|
-
for (const n in e)
|
|
53
|
-
e[n] && (t += n + " ");
|
|
54
|
-
return t.trim();
|
|
55
|
-
}
|
|
56
|
-
function L(e, ...t) {
|
|
57
|
-
console.warn(`[Vue warn] ${e}`, ...t);
|
|
58
|
-
}
|
|
59
|
-
let h, ze = 0, J, B;
|
|
60
|
-
function $t(e, t = !1) {
|
|
61
|
-
if (e.flags |= 8, t) {
|
|
62
|
-
e.next = B, B = e;
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
e.next = J, J = e;
|
|
66
|
-
}
|
|
67
|
-
function Ve() {
|
|
68
|
-
ze++;
|
|
69
|
-
}
|
|
70
|
-
function Te() {
|
|
71
|
-
if (--ze > 0)
|
|
72
|
-
return;
|
|
73
|
-
if (B) {
|
|
74
|
-
let t = B;
|
|
75
|
-
for (B = void 0; t; ) {
|
|
76
|
-
const n = t.next;
|
|
77
|
-
t.next = void 0, t.flags &= -9, t = n;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
let e;
|
|
81
|
-
for (; J; ) {
|
|
82
|
-
let t = J;
|
|
83
|
-
for (J = void 0; t; ) {
|
|
84
|
-
const n = t.next;
|
|
85
|
-
if (t.next = void 0, t.flags &= -9, t.flags & 1)
|
|
86
|
-
try {
|
|
87
|
-
t.trigger();
|
|
88
|
-
} catch (s) {
|
|
89
|
-
e || (e = s);
|
|
90
|
-
}
|
|
91
|
-
t = n;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
if (e) throw e;
|
|
95
|
-
}
|
|
96
|
-
function Ft(e) {
|
|
97
|
-
for (let t = e.deps; t; t = t.nextDep)
|
|
98
|
-
t.version = -1, t.prevActiveLink = t.dep.activeLink, t.dep.activeLink = t;
|
|
99
|
-
}
|
|
100
|
-
function jt(e) {
|
|
101
|
-
let t, n = e.depsTail, s = n;
|
|
102
|
-
for (; s; ) {
|
|
103
|
-
const r = s.prevDep;
|
|
104
|
-
s.version === -1 ? (s === n && (n = r), ke(s), Ht(s)) : t = s, s.dep.activeLink = s.prevActiveLink, s.prevActiveLink = void 0, s = r;
|
|
105
|
-
}
|
|
106
|
-
e.deps = t, e.depsTail = n;
|
|
107
|
-
}
|
|
108
|
-
function Lt(e) {
|
|
109
|
-
for (let t = e.deps; t; t = t.nextDep)
|
|
110
|
-
if (t.dep.version !== t.version || t.dep.computed && (Ue(t.dep.computed) || t.dep.version !== t.version))
|
|
111
|
-
return !0;
|
|
112
|
-
return !!e._dirty;
|
|
113
|
-
}
|
|
114
|
-
function Ue(e) {
|
|
115
|
-
if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === q) || (e.globalVersion = q, !e.isSSR && e.flags & 128 && (!e.deps && !e._dirty || !Lt(e))))
|
|
116
|
-
return;
|
|
117
|
-
e.flags |= 2;
|
|
118
|
-
const t = e.dep, n = h, s = M;
|
|
119
|
-
h = e, M = !0;
|
|
120
|
-
try {
|
|
121
|
-
Ft(e);
|
|
122
|
-
const r = e.fn(e._value);
|
|
123
|
-
(t.version === 0 || z(r, e._value)) && (e.flags |= 128, e._value = r, t.version++);
|
|
124
|
-
} catch (r) {
|
|
125
|
-
throw t.version++, r;
|
|
126
|
-
} finally {
|
|
127
|
-
h = n, M = s, jt(e), e.flags &= -3;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
function ke(e, t = !1) {
|
|
131
|
-
const { dep: n, prevSub: s, nextSub: r } = e;
|
|
132
|
-
if (s && (s.nextSub = r, e.prevSub = void 0), r && (r.prevSub = s, e.nextSub = void 0), process.env.NODE_ENV !== "production" && n.subsHead === e && (n.subsHead = r), n.subs === e && (n.subs = s, !s && n.computed)) {
|
|
133
|
-
n.computed.flags &= -5;
|
|
134
|
-
for (let o = n.computed.deps; o; o = o.nextDep)
|
|
135
|
-
ke(o, !0);
|
|
136
|
-
}
|
|
137
|
-
!t && !--n.sc && n.map && n.map.delete(n.key);
|
|
138
|
-
}
|
|
139
|
-
function Ht(e) {
|
|
140
|
-
const { prevDep: t, nextDep: n } = e;
|
|
141
|
-
t && (t.nextDep = n, e.prevDep = void 0), n && (n.prevDep = t, e.nextDep = void 0);
|
|
142
|
-
}
|
|
143
|
-
let M = !0;
|
|
144
|
-
const Ye = [];
|
|
145
|
-
function ue() {
|
|
146
|
-
Ye.push(M), M = !1;
|
|
147
|
-
}
|
|
148
|
-
function fe() {
|
|
149
|
-
const e = Ye.pop();
|
|
150
|
-
M = e === void 0 ? !0 : e;
|
|
151
|
-
}
|
|
152
|
-
let q = 0;
|
|
153
|
-
class Kt {
|
|
154
|
-
constructor(t, n) {
|
|
155
|
-
this.sub = t, this.dep = n, this.version = n.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
class Ie {
|
|
159
|
-
// TODO isolatedDeclarations "__v_skip"
|
|
160
|
-
constructor(t) {
|
|
161
|
-
this.computed = t, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0, this.__v_skip = !0, process.env.NODE_ENV !== "production" && (this.subsHead = void 0);
|
|
162
|
-
}
|
|
163
|
-
track(t) {
|
|
164
|
-
if (!h || !M || h === this.computed)
|
|
165
|
-
return;
|
|
166
|
-
let n = this.activeLink;
|
|
167
|
-
if (n === void 0 || n.sub !== h)
|
|
168
|
-
n = this.activeLink = new Kt(h, this), h.deps ? (n.prevDep = h.depsTail, h.depsTail.nextDep = n, h.depsTail = n) : h.deps = h.depsTail = n, Je(n);
|
|
169
|
-
else if (n.version === -1 && (n.version = this.version, n.nextDep)) {
|
|
170
|
-
const s = n.nextDep;
|
|
171
|
-
s.prevDep = n.prevDep, n.prevDep && (n.prevDep.nextDep = s), n.prevDep = h.depsTail, n.nextDep = void 0, h.depsTail.nextDep = n, h.depsTail = n, h.deps === n && (h.deps = s);
|
|
172
|
-
}
|
|
173
|
-
return process.env.NODE_ENV !== "production" && h.onTrack && h.onTrack(
|
|
174
|
-
j(
|
|
175
|
-
{
|
|
176
|
-
effect: h
|
|
177
|
-
},
|
|
178
|
-
t
|
|
179
|
-
)
|
|
180
|
-
), n;
|
|
181
|
-
}
|
|
182
|
-
trigger(t) {
|
|
183
|
-
this.version++, q++, this.notify(t);
|
|
184
|
-
}
|
|
185
|
-
notify(t) {
|
|
186
|
-
Ve();
|
|
187
|
-
try {
|
|
188
|
-
if (process.env.NODE_ENV !== "production")
|
|
189
|
-
for (let n = this.subsHead; n; n = n.nextSub)
|
|
190
|
-
n.sub.onTrigger && !(n.sub.flags & 8) && n.sub.onTrigger(
|
|
191
|
-
j(
|
|
192
|
-
{
|
|
193
|
-
effect: n.sub
|
|
194
|
-
},
|
|
195
|
-
t
|
|
196
|
-
)
|
|
197
|
-
);
|
|
198
|
-
for (let n = this.subs; n; n = n.prevSub)
|
|
199
|
-
n.sub.notify() && n.sub.dep.notify();
|
|
200
|
-
} finally {
|
|
201
|
-
Te();
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
function Je(e) {
|
|
206
|
-
if (e.dep.sc++, e.sub.flags & 4) {
|
|
207
|
-
const t = e.dep.computed;
|
|
208
|
-
if (t && !e.dep.subs) {
|
|
209
|
-
t.flags |= 20;
|
|
210
|
-
for (let s = t.deps; s; s = s.nextDep)
|
|
211
|
-
Je(s);
|
|
212
|
-
}
|
|
213
|
-
const n = e.dep.subs;
|
|
214
|
-
n !== e && (e.prevSub = n, n && (n.nextSub = e)), process.env.NODE_ENV !== "production" && e.dep.subsHead === void 0 && (e.dep.subsHead = e), e.dep.subs = e;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
const Ne = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ Symbol(
|
|
218
|
-
process.env.NODE_ENV !== "production" ? "Object iterate" : ""
|
|
219
|
-
), we = /* @__PURE__ */ Symbol(
|
|
220
|
-
process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
|
|
221
|
-
), G = /* @__PURE__ */ Symbol(
|
|
222
|
-
process.env.NODE_ENV !== "production" ? "Array iterate" : ""
|
|
223
|
-
);
|
|
224
|
-
function v(e, t, n) {
|
|
225
|
-
if (M && h) {
|
|
226
|
-
let s = Ne.get(e);
|
|
227
|
-
s || Ne.set(e, s = /* @__PURE__ */ new Map());
|
|
228
|
-
let r = s.get(n);
|
|
229
|
-
r || (s.set(n, r = new Ie()), r.map = s, r.key = n), process.env.NODE_ENV !== "production" ? r.track({
|
|
230
|
-
target: e,
|
|
231
|
-
type: t,
|
|
232
|
-
key: n
|
|
233
|
-
}) : r.track();
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
function A(e, t, n, s, r, o) {
|
|
237
|
-
const i = Ne.get(e);
|
|
238
|
-
if (!i) {
|
|
239
|
-
q++;
|
|
240
|
-
return;
|
|
241
|
-
}
|
|
242
|
-
const c = (a) => {
|
|
243
|
-
a && (process.env.NODE_ENV !== "production" ? a.trigger({
|
|
244
|
-
target: e,
|
|
245
|
-
type: t,
|
|
246
|
-
key: n,
|
|
247
|
-
newValue: s,
|
|
248
|
-
oldValue: r,
|
|
249
|
-
oldTarget: o
|
|
250
|
-
}) : a.trigger());
|
|
251
|
-
};
|
|
252
|
-
if (Ve(), t === "clear")
|
|
253
|
-
i.forEach(c);
|
|
254
|
-
else {
|
|
255
|
-
const a = _(e), u = a && Re(n);
|
|
256
|
-
if (a && n === "length") {
|
|
257
|
-
const d = Number(s);
|
|
258
|
-
i.forEach((l, f) => {
|
|
259
|
-
(f === "length" || f === G || !ee(f) && f >= d) && c(l);
|
|
260
|
-
});
|
|
261
|
-
} else
|
|
262
|
-
switch ((n !== void 0 || i.has(void 0)) && c(i.get(n)), u && c(i.get(G)), t) {
|
|
263
|
-
case "add":
|
|
264
|
-
a ? u && c(i.get("length")) : (c(i.get($)), Y(e) && c(i.get(we)));
|
|
265
|
-
break;
|
|
266
|
-
case "delete":
|
|
267
|
-
a || (c(i.get($)), Y(e) && c(i.get(we)));
|
|
268
|
-
break;
|
|
269
|
-
case "set":
|
|
270
|
-
Y(e) && c(i.get($));
|
|
271
|
-
break;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
Te();
|
|
275
|
-
}
|
|
276
|
-
function H(e) {
|
|
277
|
-
const t = p(e);
|
|
278
|
-
return t === e ? t : (v(t, "iterate", G), N(e) ? t : t.map(x));
|
|
279
|
-
}
|
|
280
|
-
function Ce(e) {
|
|
281
|
-
return v(e = p(e), "iterate", G), e;
|
|
282
|
-
}
|
|
283
|
-
function I(e, t) {
|
|
284
|
-
return w(e) ? Ae(e) ? Q(x(t)) : Q(t) : x(t);
|
|
285
|
-
}
|
|
286
|
-
const Wt = {
|
|
287
|
-
__proto__: null,
|
|
288
|
-
[Symbol.iterator]() {
|
|
289
|
-
return pe(this, Symbol.iterator, (e) => I(this, e));
|
|
290
|
-
},
|
|
291
|
-
concat(...e) {
|
|
292
|
-
return H(this).concat(
|
|
293
|
-
...e.map((t) => _(t) ? H(t) : t)
|
|
294
|
-
);
|
|
295
|
-
},
|
|
296
|
-
entries() {
|
|
297
|
-
return pe(this, "entries", (e) => (e[1] = I(this, e[1]), e));
|
|
298
|
-
},
|
|
299
|
-
every(e, t) {
|
|
300
|
-
return y(this, "every", e, t, void 0, arguments);
|
|
301
|
-
},
|
|
302
|
-
filter(e, t) {
|
|
303
|
-
return y(
|
|
304
|
-
this,
|
|
305
|
-
"filter",
|
|
306
|
-
e,
|
|
307
|
-
t,
|
|
308
|
-
(n) => n.map((s) => I(this, s)),
|
|
309
|
-
arguments
|
|
310
|
-
);
|
|
311
|
-
},
|
|
312
|
-
find(e, t) {
|
|
313
|
-
return y(
|
|
314
|
-
this,
|
|
315
|
-
"find",
|
|
316
|
-
e,
|
|
317
|
-
t,
|
|
318
|
-
(n) => I(this, n),
|
|
319
|
-
arguments
|
|
320
|
-
);
|
|
321
|
-
},
|
|
322
|
-
findIndex(e, t) {
|
|
323
|
-
return y(this, "findIndex", e, t, void 0, arguments);
|
|
324
|
-
},
|
|
325
|
-
findLast(e, t) {
|
|
326
|
-
return y(
|
|
327
|
-
this,
|
|
328
|
-
"findLast",
|
|
329
|
-
e,
|
|
330
|
-
t,
|
|
331
|
-
(n) => I(this, n),
|
|
332
|
-
arguments
|
|
333
|
-
);
|
|
334
|
-
},
|
|
335
|
-
findLastIndex(e, t) {
|
|
336
|
-
return y(this, "findLastIndex", e, t, void 0, arguments);
|
|
337
|
-
},
|
|
338
|
-
// flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
|
|
339
|
-
forEach(e, t) {
|
|
340
|
-
return y(this, "forEach", e, t, void 0, arguments);
|
|
341
|
-
},
|
|
342
|
-
includes(...e) {
|
|
343
|
-
return de(this, "includes", e);
|
|
344
|
-
},
|
|
345
|
-
indexOf(...e) {
|
|
346
|
-
return de(this, "indexOf", e);
|
|
347
|
-
},
|
|
348
|
-
join(e) {
|
|
349
|
-
return H(this).join(e);
|
|
350
|
-
},
|
|
351
|
-
// keys() iterator only reads `length`, no optimization required
|
|
352
|
-
lastIndexOf(...e) {
|
|
353
|
-
return de(this, "lastIndexOf", e);
|
|
354
|
-
},
|
|
355
|
-
map(e, t) {
|
|
356
|
-
return y(this, "map", e, t, void 0, arguments);
|
|
357
|
-
},
|
|
358
|
-
pop() {
|
|
359
|
-
return k(this, "pop");
|
|
360
|
-
},
|
|
361
|
-
push(...e) {
|
|
362
|
-
return k(this, "push", e);
|
|
363
|
-
},
|
|
364
|
-
reduce(e, ...t) {
|
|
365
|
-
return Fe(this, "reduce", e, t);
|
|
366
|
-
},
|
|
367
|
-
reduceRight(e, ...t) {
|
|
368
|
-
return Fe(this, "reduceRight", e, t);
|
|
369
|
-
},
|
|
370
|
-
shift() {
|
|
371
|
-
return k(this, "shift");
|
|
372
|
-
},
|
|
373
|
-
// slice could use ARRAY_ITERATE but also seems to beg for range tracking
|
|
374
|
-
some(e, t) {
|
|
375
|
-
return y(this, "some", e, t, void 0, arguments);
|
|
376
|
-
},
|
|
377
|
-
splice(...e) {
|
|
378
|
-
return k(this, "splice", e);
|
|
379
|
-
},
|
|
380
|
-
toReversed() {
|
|
381
|
-
return H(this).toReversed();
|
|
382
|
-
},
|
|
383
|
-
toSorted(e) {
|
|
384
|
-
return H(this).toSorted(e);
|
|
385
|
-
},
|
|
386
|
-
toSpliced(...e) {
|
|
387
|
-
return H(this).toSpliced(...e);
|
|
388
|
-
},
|
|
389
|
-
unshift(...e) {
|
|
390
|
-
return k(this, "unshift", e);
|
|
391
|
-
},
|
|
392
|
-
values() {
|
|
393
|
-
return pe(this, "values", (e) => I(this, e));
|
|
394
|
-
}
|
|
395
|
-
};
|
|
396
|
-
function pe(e, t, n) {
|
|
397
|
-
const s = Ce(e), r = s[t]();
|
|
398
|
-
return s !== e && !N(e) && (r._next = r.next, r.next = () => {
|
|
399
|
-
const o = r._next();
|
|
400
|
-
return o.done || (o.value = n(o.value)), o;
|
|
401
|
-
}), r;
|
|
402
|
-
}
|
|
403
|
-
const zt = Array.prototype;
|
|
404
|
-
function y(e, t, n, s, r, o) {
|
|
405
|
-
const i = Ce(e), c = i !== e && !N(e), a = i[t];
|
|
406
|
-
if (a !== zt[t]) {
|
|
407
|
-
const l = a.apply(e, o);
|
|
408
|
-
return c ? x(l) : l;
|
|
409
|
-
}
|
|
410
|
-
let u = n;
|
|
411
|
-
i !== e && (c ? u = function(l, f) {
|
|
412
|
-
return n.call(this, I(e, l), f, e);
|
|
413
|
-
} : n.length > 2 && (u = function(l, f) {
|
|
414
|
-
return n.call(this, l, f, e);
|
|
415
|
-
}));
|
|
416
|
-
const d = a.call(i, u, s);
|
|
417
|
-
return c && r ? r(d) : d;
|
|
418
|
-
}
|
|
419
|
-
function Fe(e, t, n, s) {
|
|
420
|
-
const r = Ce(e);
|
|
421
|
-
let o = n;
|
|
422
|
-
return r !== e && (N(e) ? n.length > 3 && (o = function(i, c, a) {
|
|
423
|
-
return n.call(this, i, c, a, e);
|
|
424
|
-
}) : o = function(i, c, a) {
|
|
425
|
-
return n.call(this, i, I(e, c), a, e);
|
|
426
|
-
}), r[t](o, ...s);
|
|
427
|
-
}
|
|
428
|
-
function de(e, t, n) {
|
|
429
|
-
const s = p(e);
|
|
430
|
-
v(s, "iterate", G);
|
|
431
|
-
const r = s[t](...n);
|
|
432
|
-
return (r === -1 || r === !1) && oe(n[0]) ? (n[0] = p(n[0]), s[t](...n)) : r;
|
|
433
|
-
}
|
|
434
|
-
function k(e, t, n = []) {
|
|
435
|
-
ue(), Ve();
|
|
436
|
-
const s = p(e)[t].apply(e, n);
|
|
437
|
-
return Te(), fe(), s;
|
|
438
|
-
}
|
|
439
|
-
const Ut = /* @__PURE__ */ Rt("__proto__,__v_isRef,__isVue"), Be = new Set(
|
|
440
|
-
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(ee)
|
|
441
|
-
);
|
|
442
|
-
function kt(e) {
|
|
443
|
-
ee(e) || (e = String(e));
|
|
444
|
-
const t = p(this);
|
|
445
|
-
return v(t, "has", e), t.hasOwnProperty(e);
|
|
446
|
-
}
|
|
447
|
-
class qe {
|
|
448
|
-
constructor(t = !1, n = !1) {
|
|
449
|
-
this._isReadonly = t, this._isShallow = n;
|
|
450
|
-
}
|
|
451
|
-
get(t, n, s) {
|
|
452
|
-
if (n === "__v_skip") return t.__v_skip;
|
|
453
|
-
const r = this._isReadonly, o = this._isShallow;
|
|
454
|
-
if (n === "__v_isReactive")
|
|
455
|
-
return !r;
|
|
456
|
-
if (n === "__v_isReadonly")
|
|
457
|
-
return r;
|
|
458
|
-
if (n === "__v_isShallow")
|
|
459
|
-
return o;
|
|
460
|
-
if (n === "__v_raw")
|
|
461
|
-
return s === (r ? o ? tn : Xe : o ? en : Qe).get(t) || // receiver is not the reactive proxy, but has the same prototype
|
|
462
|
-
// this means the receiver is a user proxy of the reactive proxy
|
|
463
|
-
Object.getPrototypeOf(t) === Object.getPrototypeOf(s) ? t : void 0;
|
|
464
|
-
const i = _(t);
|
|
465
|
-
if (!r) {
|
|
466
|
-
let a;
|
|
467
|
-
if (i && (a = Wt[n]))
|
|
468
|
-
return a;
|
|
469
|
-
if (n === "hasOwnProperty")
|
|
470
|
-
return kt;
|
|
471
|
-
}
|
|
472
|
-
const c = Reflect.get(
|
|
473
|
-
t,
|
|
474
|
-
n,
|
|
475
|
-
// if this is a proxy wrapping a ref, return methods using the raw ref
|
|
476
|
-
// as receiver so that we don't have to call `toRaw` on the ref in all
|
|
477
|
-
// its class methods
|
|
478
|
-
R(t) ? t : s
|
|
479
|
-
);
|
|
480
|
-
if ((ee(n) ? Be.has(n) : Ut(n)) || (r || v(t, "get", n), o))
|
|
481
|
-
return c;
|
|
482
|
-
if (R(c)) {
|
|
483
|
-
const a = i && Re(n) ? c : c.value;
|
|
484
|
-
return r && E(a) ? Se(a) : a;
|
|
485
|
-
}
|
|
486
|
-
return E(c) ? r ? Se(c) : Ze(c) : c;
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
class Yt extends qe {
|
|
490
|
-
constructor(t = !1) {
|
|
491
|
-
super(!1, t);
|
|
492
|
-
}
|
|
493
|
-
set(t, n, s, r) {
|
|
494
|
-
let o = t[n];
|
|
495
|
-
const i = _(t) && Re(n);
|
|
496
|
-
if (!this._isShallow) {
|
|
497
|
-
const u = w(o);
|
|
498
|
-
if (!N(s) && !w(s) && (o = p(o), s = p(s)), !i && R(o) && !R(s))
|
|
499
|
-
return u ? (process.env.NODE_ENV !== "production" && L(
|
|
500
|
-
`Set operation on key "${String(n)}" failed: target is readonly.`,
|
|
501
|
-
t[n]
|
|
502
|
-
), !0) : (o.value = s, !0);
|
|
503
|
-
}
|
|
504
|
-
const c = i ? Number(n) < t.length : be(t, n), a = Reflect.set(
|
|
505
|
-
t,
|
|
506
|
-
n,
|
|
507
|
-
s,
|
|
508
|
-
R(t) ? t : r
|
|
509
|
-
);
|
|
510
|
-
return t === p(r) && (c ? z(s, o) && A(t, "set", n, s, o) : A(t, "add", n, s)), a;
|
|
511
|
-
}
|
|
512
|
-
deleteProperty(t, n) {
|
|
513
|
-
const s = be(t, n), r = t[n], o = Reflect.deleteProperty(t, n);
|
|
514
|
-
return o && s && A(t, "delete", n, void 0, r), o;
|
|
515
|
-
}
|
|
516
|
-
has(t, n) {
|
|
517
|
-
const s = Reflect.has(t, n);
|
|
518
|
-
return (!ee(n) || !Be.has(n)) && v(t, "has", n), s;
|
|
519
|
-
}
|
|
520
|
-
ownKeys(t) {
|
|
521
|
-
return v(
|
|
522
|
-
t,
|
|
523
|
-
"iterate",
|
|
524
|
-
_(t) ? "length" : $
|
|
525
|
-
), Reflect.ownKeys(t);
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
class Jt extends qe {
|
|
529
|
-
constructor(t = !1) {
|
|
530
|
-
super(!0, t);
|
|
531
|
-
}
|
|
532
|
-
set(t, n) {
|
|
533
|
-
return process.env.NODE_ENV !== "production" && L(
|
|
534
|
-
`Set operation on key "${String(n)}" failed: target is readonly.`,
|
|
535
|
-
t
|
|
536
|
-
), !0;
|
|
537
|
-
}
|
|
538
|
-
deleteProperty(t, n) {
|
|
539
|
-
return process.env.NODE_ENV !== "production" && L(
|
|
540
|
-
`Delete operation on key "${String(n)}" failed: target is readonly.`,
|
|
541
|
-
t
|
|
542
|
-
), !0;
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
const Bt = /* @__PURE__ */ new Yt(), qt = /* @__PURE__ */ new Jt(), ye = (e) => e, te = (e) => Reflect.getPrototypeOf(e);
|
|
546
|
-
function Gt(e, t, n) {
|
|
547
|
-
return function(...s) {
|
|
548
|
-
const r = this.__v_raw, o = p(r), i = Y(o), c = e === "entries" || e === Symbol.iterator && i, a = e === "keys" && i, u = r[e](...s), d = n ? ye : t ? Q : x;
|
|
549
|
-
return !t && v(
|
|
550
|
-
o,
|
|
551
|
-
"iterate",
|
|
552
|
-
a ? we : $
|
|
553
|
-
), {
|
|
554
|
-
// iterator protocol
|
|
555
|
-
next() {
|
|
556
|
-
const { value: l, done: f } = u.next();
|
|
557
|
-
return f ? { value: l, done: f } : {
|
|
558
|
-
value: c ? [d(l[0]), d(l[1])] : d(l),
|
|
559
|
-
done: f
|
|
560
|
-
};
|
|
561
|
-
},
|
|
562
|
-
// iterable protocol
|
|
563
|
-
[Symbol.iterator]() {
|
|
564
|
-
return this;
|
|
565
|
-
}
|
|
566
|
-
};
|
|
567
|
-
};
|
|
568
|
-
}
|
|
569
|
-
function ne(e) {
|
|
570
|
-
return function(...t) {
|
|
571
|
-
if (process.env.NODE_ENV !== "production") {
|
|
572
|
-
const n = t[0] ? `on key "${t[0]}" ` : "";
|
|
573
|
-
L(
|
|
574
|
-
`${It(e)} operation ${n}failed: target is readonly.`,
|
|
575
|
-
p(this)
|
|
576
|
-
);
|
|
577
|
-
}
|
|
578
|
-
return e === "delete" ? !1 : e === "clear" ? void 0 : this;
|
|
579
|
-
};
|
|
580
|
-
}
|
|
581
|
-
function Qt(e, t) {
|
|
582
|
-
const n = {
|
|
583
|
-
get(r) {
|
|
584
|
-
const o = this.__v_raw, i = p(o), c = p(r);
|
|
585
|
-
e || (z(r, c) && v(i, "get", r), v(i, "get", c));
|
|
586
|
-
const { has: a } = te(i), u = t ? ye : e ? Q : x;
|
|
587
|
-
if (a.call(i, r))
|
|
588
|
-
return u(o.get(r));
|
|
589
|
-
if (a.call(i, c))
|
|
590
|
-
return u(o.get(c));
|
|
591
|
-
o !== i && o.get(r);
|
|
592
|
-
},
|
|
593
|
-
get size() {
|
|
594
|
-
const r = this.__v_raw;
|
|
595
|
-
return !e && v(p(r), "iterate", $), r.size;
|
|
596
|
-
},
|
|
597
|
-
has(r) {
|
|
598
|
-
const o = this.__v_raw, i = p(o), c = p(r);
|
|
599
|
-
return e || (z(r, c) && v(i, "has", r), v(i, "has", c)), r === c ? o.has(r) : o.has(r) || o.has(c);
|
|
600
|
-
},
|
|
601
|
-
forEach(r, o) {
|
|
602
|
-
const i = this, c = i.__v_raw, a = p(c), u = t ? ye : e ? Q : x;
|
|
603
|
-
return !e && v(a, "iterate", $), c.forEach((d, l) => r.call(o, u(d), u(l), i));
|
|
604
|
-
}
|
|
605
|
-
};
|
|
606
|
-
return j(
|
|
607
|
-
n,
|
|
608
|
-
e ? {
|
|
609
|
-
add: ne("add"),
|
|
610
|
-
set: ne("set"),
|
|
611
|
-
delete: ne("delete"),
|
|
612
|
-
clear: ne("clear")
|
|
613
|
-
} : {
|
|
614
|
-
add(r) {
|
|
615
|
-
!t && !N(r) && !w(r) && (r = p(r));
|
|
616
|
-
const o = p(this);
|
|
617
|
-
return te(o).has.call(o, r) || (o.add(r), A(o, "add", r, r)), this;
|
|
618
|
-
},
|
|
619
|
-
set(r, o) {
|
|
620
|
-
!t && !N(o) && !w(o) && (o = p(o));
|
|
621
|
-
const i = p(this), { has: c, get: a } = te(i);
|
|
622
|
-
let u = c.call(i, r);
|
|
623
|
-
u ? process.env.NODE_ENV !== "production" && je(i, c, r) : (r = p(r), u = c.call(i, r));
|
|
624
|
-
const d = a.call(i, r);
|
|
625
|
-
return i.set(r, o), u ? z(o, d) && A(i, "set", r, o, d) : A(i, "add", r, o), this;
|
|
626
|
-
},
|
|
627
|
-
delete(r) {
|
|
628
|
-
const o = p(this), { has: i, get: c } = te(o);
|
|
629
|
-
let a = i.call(o, r);
|
|
630
|
-
a ? process.env.NODE_ENV !== "production" && je(o, i, r) : (r = p(r), a = i.call(o, r));
|
|
631
|
-
const u = c ? c.call(o, r) : void 0, d = o.delete(r);
|
|
632
|
-
return a && A(o, "delete", r, void 0, u), d;
|
|
633
|
-
},
|
|
634
|
-
clear() {
|
|
635
|
-
const r = p(this), o = r.size !== 0, i = process.env.NODE_ENV !== "production" ? Y(r) ? new Map(r) : new Set(r) : void 0, c = r.clear();
|
|
636
|
-
return o && A(
|
|
637
|
-
r,
|
|
638
|
-
"clear",
|
|
639
|
-
void 0,
|
|
640
|
-
void 0,
|
|
641
|
-
i
|
|
642
|
-
), c;
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
), [
|
|
646
|
-
"keys",
|
|
647
|
-
"values",
|
|
648
|
-
"entries",
|
|
649
|
-
Symbol.iterator
|
|
650
|
-
].forEach((r) => {
|
|
651
|
-
n[r] = Gt(r, e, t);
|
|
652
|
-
}), n;
|
|
653
|
-
}
|
|
654
|
-
function Ge(e, t) {
|
|
655
|
-
const n = Qt(e, t);
|
|
656
|
-
return (s, r, o) => r === "__v_isReactive" ? !e : r === "__v_isReadonly" ? e : r === "__v_raw" ? s : Reflect.get(
|
|
657
|
-
be(n, r) && r in s ? n : s,
|
|
658
|
-
r,
|
|
659
|
-
o
|
|
660
|
-
);
|
|
661
|
-
}
|
|
662
|
-
const Xt = {
|
|
663
|
-
get: /* @__PURE__ */ Ge(!1, !1)
|
|
664
|
-
}, Zt = {
|
|
665
|
-
get: /* @__PURE__ */ Ge(!0, !1)
|
|
666
|
-
};
|
|
667
|
-
function je(e, t, n) {
|
|
668
|
-
const s = p(n);
|
|
669
|
-
if (s !== n && t.call(e, s)) {
|
|
670
|
-
const r = We(e);
|
|
671
|
-
L(
|
|
672
|
-
`Reactive ${r} contains both the raw and reactive versions of the same object${r === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
|
|
673
|
-
);
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
const Qe = /* @__PURE__ */ new WeakMap(), en = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), tn = /* @__PURE__ */ new WeakMap();
|
|
677
|
-
function nn(e) {
|
|
678
|
-
switch (e) {
|
|
679
|
-
case "Object":
|
|
680
|
-
case "Array":
|
|
681
|
-
return 1;
|
|
682
|
-
case "Map":
|
|
683
|
-
case "Set":
|
|
684
|
-
case "WeakMap":
|
|
685
|
-
case "WeakSet":
|
|
686
|
-
return 2;
|
|
687
|
-
default:
|
|
688
|
-
return 0;
|
|
689
|
-
}
|
|
690
|
-
}
|
|
691
|
-
function rn(e) {
|
|
692
|
-
return e.__v_skip || !Object.isExtensible(e) ? 0 : nn(We(e));
|
|
693
|
-
}
|
|
694
|
-
function Ze(e) {
|
|
695
|
-
return w(e) ? e : et(
|
|
696
|
-
e,
|
|
697
|
-
!1,
|
|
698
|
-
Bt,
|
|
699
|
-
Xt,
|
|
700
|
-
Qe
|
|
701
|
-
);
|
|
702
|
-
}
|
|
703
|
-
function Se(e) {
|
|
704
|
-
return et(
|
|
705
|
-
e,
|
|
706
|
-
!0,
|
|
707
|
-
qt,
|
|
708
|
-
Zt,
|
|
709
|
-
Xe
|
|
710
|
-
);
|
|
711
|
-
}
|
|
712
|
-
function et(e, t, n, s, r) {
|
|
713
|
-
if (!E(e))
|
|
714
|
-
return process.env.NODE_ENV !== "production" && L(
|
|
715
|
-
`value cannot be made ${t ? "readonly" : "reactive"}: ${String(
|
|
716
|
-
e
|
|
717
|
-
)}`
|
|
718
|
-
), e;
|
|
719
|
-
if (e.__v_raw && !(t && e.__v_isReactive))
|
|
720
|
-
return e;
|
|
721
|
-
const o = rn(e);
|
|
722
|
-
if (o === 0)
|
|
723
|
-
return e;
|
|
724
|
-
const i = r.get(e);
|
|
725
|
-
if (i)
|
|
726
|
-
return i;
|
|
727
|
-
const c = new Proxy(
|
|
728
|
-
e,
|
|
729
|
-
o === 2 ? s : n
|
|
730
|
-
);
|
|
731
|
-
return r.set(e, c), c;
|
|
732
|
-
}
|
|
733
|
-
function Ae(e) {
|
|
734
|
-
return w(e) ? Ae(e.__v_raw) : !!(e && e.__v_isReactive);
|
|
735
|
-
}
|
|
736
|
-
function w(e) {
|
|
737
|
-
return !!(e && e.__v_isReadonly);
|
|
738
|
-
}
|
|
739
|
-
function N(e) {
|
|
740
|
-
return !!(e && e.__v_isShallow);
|
|
741
|
-
}
|
|
742
|
-
function oe(e) {
|
|
743
|
-
return e ? !!e.__v_raw : !1;
|
|
744
|
-
}
|
|
745
|
-
function p(e) {
|
|
746
|
-
const t = e && e.__v_raw;
|
|
747
|
-
return t ? p(t) : e;
|
|
748
|
-
}
|
|
749
|
-
const x = (e) => E(e) ? Ze(e) : e, Q = (e) => E(e) ? Se(e) : e;
|
|
750
|
-
function R(e) {
|
|
751
|
-
return e ? e.__v_isRef === !0 : !1;
|
|
752
|
-
}
|
|
753
|
-
function sn(e) {
|
|
754
|
-
return on(e, !1);
|
|
755
|
-
}
|
|
756
|
-
function on(e, t) {
|
|
757
|
-
return R(e) ? e : new cn(e, t);
|
|
758
|
-
}
|
|
759
|
-
class cn {
|
|
760
|
-
constructor(t, n) {
|
|
761
|
-
this.dep = new Ie(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? t : p(t), this._value = n ? t : x(t), this.__v_isShallow = n;
|
|
762
|
-
}
|
|
763
|
-
get value() {
|
|
764
|
-
return process.env.NODE_ENV !== "production" ? this.dep.track({
|
|
765
|
-
target: this,
|
|
766
|
-
type: "get",
|
|
767
|
-
key: "value"
|
|
768
|
-
}) : this.dep.track(), this._value;
|
|
769
|
-
}
|
|
770
|
-
set value(t) {
|
|
771
|
-
const n = this._rawValue, s = this.__v_isShallow || N(t) || w(t);
|
|
772
|
-
t = s ? t : p(t), z(t, n) && (this._rawValue = t, this._value = s ? t : x(t), process.env.NODE_ENV !== "production" ? this.dep.trigger({
|
|
773
|
-
target: this,
|
|
774
|
-
type: "set",
|
|
775
|
-
key: "value",
|
|
776
|
-
newValue: t,
|
|
777
|
-
oldValue: n
|
|
778
|
-
}) : this.dep.trigger());
|
|
779
|
-
}
|
|
780
|
-
}
|
|
781
|
-
class an {
|
|
782
|
-
constructor(t, n, s) {
|
|
783
|
-
this.fn = t, this.setter = n, this._value = void 0, this.dep = new Ie(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = q - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !n, this.isSSR = s;
|
|
784
|
-
}
|
|
785
|
-
/**
|
|
786
|
-
* @internal
|
|
787
|
-
*/
|
|
788
|
-
notify() {
|
|
789
|
-
if (this.flags |= 16, !(this.flags & 8) && // avoid infinite self recursion
|
|
790
|
-
h !== this)
|
|
791
|
-
return $t(this, !0), !0;
|
|
792
|
-
process.env.NODE_ENV;
|
|
793
|
-
}
|
|
794
|
-
get value() {
|
|
795
|
-
const t = process.env.NODE_ENV !== "production" ? this.dep.track({
|
|
796
|
-
target: this,
|
|
797
|
-
type: "get",
|
|
798
|
-
key: "value"
|
|
799
|
-
}) : this.dep.track();
|
|
800
|
-
return Ue(this), t && (t.version = this.dep.version), this._value;
|
|
801
|
-
}
|
|
802
|
-
set value(t) {
|
|
803
|
-
this.setter ? this.setter(t) : process.env.NODE_ENV !== "production" && L("Write operation failed: computed value is readonly");
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
function ln(e, t, n = !1) {
|
|
807
|
-
let s, r;
|
|
808
|
-
T(e) ? s = e : (s = e.get, r = e.set);
|
|
809
|
-
const o = new an(s, r, n);
|
|
810
|
-
return process.env.NODE_ENV, o;
|
|
811
|
-
}
|
|
812
|
-
const F = [];
|
|
813
|
-
function un(e) {
|
|
814
|
-
F.push(e);
|
|
815
|
-
}
|
|
816
|
-
function fn() {
|
|
817
|
-
F.pop();
|
|
818
|
-
}
|
|
819
|
-
let he = !1;
|
|
820
|
-
function V(e, ...t) {
|
|
821
|
-
if (he) return;
|
|
822
|
-
he = !0, ue();
|
|
823
|
-
const n = F.length ? F[F.length - 1].component : null, s = n && n.appContext.config.warnHandler, r = pn();
|
|
824
|
-
if (s)
|
|
825
|
-
Me(
|
|
826
|
-
s,
|
|
827
|
-
n,
|
|
828
|
-
11,
|
|
829
|
-
[
|
|
830
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
831
|
-
e + t.map((o) => {
|
|
832
|
-
var i, c;
|
|
833
|
-
return (c = (i = o.toString) == null ? void 0 : i.call(o)) != null ? c : JSON.stringify(o);
|
|
834
|
-
}).join(""),
|
|
835
|
-
n && n.proxy,
|
|
836
|
-
r.map(
|
|
837
|
-
({ vnode: o }) => `at <${vt(n, o.type)}>`
|
|
838
|
-
).join(`
|
|
839
|
-
`),
|
|
840
|
-
r
|
|
841
|
-
]
|
|
842
|
-
);
|
|
843
|
-
else {
|
|
844
|
-
const o = [`[Vue warn]: ${e}`, ...t];
|
|
845
|
-
r.length && o.push(`
|
|
846
|
-
`, ...dn(r)), console.warn(...o);
|
|
847
|
-
}
|
|
848
|
-
fe(), he = !1;
|
|
849
|
-
}
|
|
850
|
-
function pn() {
|
|
851
|
-
let e = F[F.length - 1];
|
|
852
|
-
if (!e)
|
|
853
|
-
return [];
|
|
854
|
-
const t = [];
|
|
855
|
-
for (; e; ) {
|
|
856
|
-
const n = t[0];
|
|
857
|
-
n && n.vnode === e ? n.recurseCount++ : t.push({
|
|
858
|
-
vnode: e,
|
|
859
|
-
recurseCount: 0
|
|
860
|
-
});
|
|
861
|
-
const s = e.component && e.component.parent;
|
|
862
|
-
e = s && s.vnode;
|
|
863
|
-
}
|
|
864
|
-
return t;
|
|
865
|
-
}
|
|
866
|
-
function dn(e) {
|
|
867
|
-
const t = [];
|
|
868
|
-
return e.forEach((n, s) => {
|
|
869
|
-
t.push(...s === 0 ? [] : [`
|
|
870
|
-
`], ...hn(n));
|
|
871
|
-
}), t;
|
|
872
|
-
}
|
|
873
|
-
function hn({ vnode: e, recurseCount: t }) {
|
|
874
|
-
const n = t > 0 ? `... (${t} recursive calls)` : "", s = e.component ? e.component.parent == null : !1, r = ` at <${vt(
|
|
875
|
-
e.component,
|
|
876
|
-
e.type,
|
|
877
|
-
s
|
|
878
|
-
)}`, o = ">" + n;
|
|
879
|
-
return e.props ? [r, ..._n(e.props), o] : [r + o];
|
|
880
|
-
}
|
|
881
|
-
function _n(e) {
|
|
882
|
-
const t = [], n = Object.keys(e);
|
|
883
|
-
return n.slice(0, 3).forEach((s) => {
|
|
884
|
-
t.push(...tt(s, e[s]));
|
|
885
|
-
}), n.length > 3 && t.push(" ..."), t;
|
|
886
|
-
}
|
|
887
|
-
function tt(e, t, n) {
|
|
888
|
-
return D(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : R(t) ? (t = tt(e, p(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : T(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = p(t), n ? t : [`${e}=`, t]);
|
|
889
|
-
}
|
|
890
|
-
const nt = {
|
|
891
|
-
sp: "serverPrefetch hook",
|
|
892
|
-
bc: "beforeCreate hook",
|
|
893
|
-
c: "created hook",
|
|
894
|
-
bm: "beforeMount hook",
|
|
895
|
-
m: "mounted hook",
|
|
896
|
-
bu: "beforeUpdate hook",
|
|
897
|
-
u: "updated",
|
|
898
|
-
bum: "beforeUnmount hook",
|
|
899
|
-
um: "unmounted hook",
|
|
900
|
-
a: "activated hook",
|
|
901
|
-
da: "deactivated hook",
|
|
902
|
-
ec: "errorCaptured hook",
|
|
903
|
-
rtc: "renderTracked hook",
|
|
904
|
-
rtg: "renderTriggered hook",
|
|
905
|
-
0: "setup function",
|
|
906
|
-
1: "render function",
|
|
907
|
-
2: "watcher getter",
|
|
908
|
-
3: "watcher callback",
|
|
909
|
-
4: "watcher cleanup function",
|
|
910
|
-
5: "native event handler",
|
|
911
|
-
6: "component event handler",
|
|
912
|
-
7: "vnode hook",
|
|
913
|
-
8: "directive hook",
|
|
914
|
-
9: "transition hook",
|
|
915
|
-
10: "app errorHandler",
|
|
916
|
-
11: "app warnHandler",
|
|
917
|
-
12: "ref function",
|
|
918
|
-
13: "async component loader",
|
|
919
|
-
14: "scheduler flush",
|
|
920
|
-
15: "component update",
|
|
921
|
-
16: "app unmount cleanup function"
|
|
922
|
-
};
|
|
923
|
-
function Me(e, t, n, s) {
|
|
924
|
-
try {
|
|
925
|
-
return s ? e(...s) : e();
|
|
926
|
-
} catch (r) {
|
|
927
|
-
rt(r, t, n);
|
|
928
|
-
}
|
|
929
|
-
}
|
|
930
|
-
function rt(e, t, n, s = !0) {
|
|
931
|
-
const r = t ? t.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = t && t.appContext.config || Ee;
|
|
932
|
-
if (t) {
|
|
933
|
-
let c = t.parent;
|
|
934
|
-
const a = t.proxy, u = process.env.NODE_ENV !== "production" ? nt[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
935
|
-
for (; c; ) {
|
|
936
|
-
const d = c.ec;
|
|
937
|
-
if (d) {
|
|
938
|
-
for (let l = 0; l < d.length; l++)
|
|
939
|
-
if (d[l](e, a, u) === !1)
|
|
940
|
-
return;
|
|
941
|
-
}
|
|
942
|
-
c = c.parent;
|
|
943
|
-
}
|
|
944
|
-
if (o) {
|
|
945
|
-
ue(), Me(o, null, 10, [
|
|
946
|
-
e,
|
|
947
|
-
a,
|
|
948
|
-
u
|
|
949
|
-
]), fe();
|
|
950
|
-
return;
|
|
951
|
-
}
|
|
952
|
-
}
|
|
953
|
-
gn(e, n, r, s, i);
|
|
954
|
-
}
|
|
955
|
-
function gn(e, t, n, s = !0, r = !1) {
|
|
956
|
-
if (process.env.NODE_ENV !== "production") {
|
|
957
|
-
const o = nt[t];
|
|
958
|
-
if (n && un(n), V(`Unhandled error${o ? ` during execution of ${o}` : ""}`), n && fn(), s)
|
|
959
|
-
throw e;
|
|
960
|
-
console.error(e);
|
|
961
|
-
} else {
|
|
962
|
-
if (r)
|
|
963
|
-
throw e;
|
|
964
|
-
console.error(e);
|
|
965
|
-
}
|
|
966
|
-
}
|
|
967
|
-
const m = [];
|
|
968
|
-
let S = -1;
|
|
969
|
-
const U = [];
|
|
970
|
-
let C = null, K = 0;
|
|
971
|
-
const vn = /* @__PURE__ */ Promise.resolve();
|
|
972
|
-
let Oe = null;
|
|
973
|
-
const mn = 100;
|
|
974
|
-
function En(e) {
|
|
975
|
-
let t = S + 1, n = m.length;
|
|
976
|
-
for (; t < n; ) {
|
|
977
|
-
const s = t + n >>> 1, r = m[s], o = X(r);
|
|
978
|
-
o < e || o === e && r.flags & 2 ? t = s + 1 : n = s;
|
|
979
|
-
}
|
|
980
|
-
return t;
|
|
981
|
-
}
|
|
982
|
-
function bn(e) {
|
|
983
|
-
if (!(e.flags & 1)) {
|
|
984
|
-
const t = X(e), n = m[m.length - 1];
|
|
985
|
-
!n || // fast path when the job id is larger than the tail
|
|
986
|
-
!(e.flags & 2) && t >= X(n) ? m.push(e) : m.splice(En(t), 0, e), e.flags |= 1, st();
|
|
987
|
-
}
|
|
988
|
-
}
|
|
989
|
-
function st() {
|
|
990
|
-
Oe || (Oe = vn.then(ot));
|
|
991
|
-
}
|
|
992
|
-
function Nn(e) {
|
|
993
|
-
_(e) ? U.push(...e) : C && e.id === -1 ? C.splice(K + 1, 0, e) : e.flags & 1 || (U.push(e), e.flags |= 1), st();
|
|
994
|
-
}
|
|
995
|
-
function wn(e) {
|
|
996
|
-
if (U.length) {
|
|
997
|
-
const t = [...new Set(U)].sort(
|
|
998
|
-
(n, s) => X(n) - X(s)
|
|
999
|
-
);
|
|
1000
|
-
if (U.length = 0, C) {
|
|
1001
|
-
C.push(...t);
|
|
1002
|
-
return;
|
|
1003
|
-
}
|
|
1004
|
-
for (C = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), K = 0; K < C.length; K++) {
|
|
1005
|
-
const n = C[K];
|
|
1006
|
-
process.env.NODE_ENV !== "production" && it(e, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
|
|
1007
|
-
}
|
|
1008
|
-
C = null, K = 0;
|
|
1009
|
-
}
|
|
1010
|
-
}
|
|
1011
|
-
const X = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
|
|
1012
|
-
function ot(e) {
|
|
1013
|
-
process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
|
|
1014
|
-
const t = process.env.NODE_ENV !== "production" ? (n) => it(e, n) : He;
|
|
1015
|
-
try {
|
|
1016
|
-
for (S = 0; S < m.length; S++) {
|
|
1017
|
-
const n = m[S];
|
|
1018
|
-
if (n && !(n.flags & 8)) {
|
|
1019
|
-
if (process.env.NODE_ENV !== "production" && t(n))
|
|
1020
|
-
continue;
|
|
1021
|
-
n.flags & 4 && (n.flags &= -2), Me(
|
|
1022
|
-
n,
|
|
1023
|
-
n.i,
|
|
1024
|
-
n.i ? 15 : 14
|
|
1025
|
-
), n.flags & 4 || (n.flags &= -2);
|
|
1026
|
-
}
|
|
1027
|
-
}
|
|
1028
|
-
} finally {
|
|
1029
|
-
for (; S < m.length; S++) {
|
|
1030
|
-
const n = m[S];
|
|
1031
|
-
n && (n.flags &= -2);
|
|
1032
|
-
}
|
|
1033
|
-
S = -1, m.length = 0, wn(e), Oe = null, (m.length || U.length) && ot(e);
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
1036
|
-
function it(e, t) {
|
|
1037
|
-
const n = e.get(t) || 0;
|
|
1038
|
-
if (n > mn) {
|
|
1039
|
-
const s = t.i, r = s && gt(s.type);
|
|
1040
|
-
return rt(
|
|
1041
|
-
`Maximum recursive updates exceeded${r ? ` in component <${r}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
|
|
1042
|
-
null,
|
|
1043
|
-
10
|
|
1044
|
-
), !0;
|
|
1045
|
-
}
|
|
1046
|
-
return e.set(t, n + 1), !1;
|
|
1047
|
-
}
|
|
1048
|
-
const _e = /* @__PURE__ */ new Map();
|
|
1049
|
-
process.env.NODE_ENV !== "production" && (le().__VUE_HMR_RUNTIME__ = {
|
|
1050
|
-
createRecord: ge(yn),
|
|
1051
|
-
rerender: ge(Sn),
|
|
1052
|
-
reload: ge(On)
|
|
1053
|
-
});
|
|
1054
|
-
const ie = /* @__PURE__ */ new Map();
|
|
1055
|
-
function yn(e, t) {
|
|
1056
|
-
return ie.has(e) ? !1 : (ie.set(e, {
|
|
1057
|
-
initialDef: ce(t),
|
|
1058
|
-
instances: /* @__PURE__ */ new Set()
|
|
1059
|
-
}), !0);
|
|
1060
|
-
}
|
|
1061
|
-
function ce(e) {
|
|
1062
|
-
return mt(e) ? e.__vccOpts : e;
|
|
1063
|
-
}
|
|
1064
|
-
function Sn(e, t) {
|
|
1065
|
-
const n = ie.get(e);
|
|
1066
|
-
n && (n.initialDef.render = t, [...n.instances].forEach((s) => {
|
|
1067
|
-
t && (s.render = t, ce(s.type).render = t), s.renderCache = [], s.job.flags & 8 || s.update();
|
|
1068
|
-
}));
|
|
1069
|
-
}
|
|
1070
|
-
function On(e, t) {
|
|
1071
|
-
const n = ie.get(e);
|
|
1072
|
-
if (!n) return;
|
|
1073
|
-
t = ce(t), Le(n.initialDef, t);
|
|
1074
|
-
const s = [...n.instances];
|
|
1075
|
-
for (let r = 0; r < s.length; r++) {
|
|
1076
|
-
const o = s[r], i = ce(o.type);
|
|
1077
|
-
let c = _e.get(i);
|
|
1078
|
-
c || (i !== n.initialDef && Le(i, t), _e.set(i, c = /* @__PURE__ */ new Set())), c.add(o), o.appContext.propsCache.delete(o.type), o.appContext.emitsCache.delete(o.type), o.appContext.optionsCache.delete(o.type), o.ceReload ? (c.add(o), o.ceReload(t.styles), c.delete(o)) : o.parent ? bn(() => {
|
|
1079
|
-
o.job.flags & 8 || (o.parent.update(), c.delete(o));
|
|
1080
|
-
}) : o.appContext.reload ? o.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
|
|
1081
|
-
"[HMR] Root or manually mounted instance modified. Full reload required."
|
|
1082
|
-
), o.root.ce && o !== o.root && o.root.ce._removeChildStyle(i);
|
|
1083
|
-
}
|
|
1084
|
-
Nn(() => {
|
|
1085
|
-
_e.clear();
|
|
1086
|
-
});
|
|
1087
|
-
}
|
|
1088
|
-
function Le(e, t) {
|
|
1089
|
-
j(e, t);
|
|
1090
|
-
for (const n in e)
|
|
1091
|
-
n !== "__file" && !(n in t) && delete e[n];
|
|
1092
|
-
}
|
|
1093
|
-
function ge(e) {
|
|
1094
|
-
return (t, n) => {
|
|
1095
|
-
try {
|
|
1096
|
-
return e(t, n);
|
|
1097
|
-
} catch (s) {
|
|
1098
|
-
console.error(s), console.warn(
|
|
1099
|
-
"[HMR] Something went wrong during Vue component hot-reload. Full reload required."
|
|
1100
|
-
);
|
|
1101
|
-
}
|
|
1102
|
-
};
|
|
1103
|
-
}
|
|
1104
|
-
let W, re = [];
|
|
1105
|
-
function ct(e, t) {
|
|
1106
|
-
var n, s;
|
|
1107
|
-
W = e, W ? (W.enabled = !0, re.forEach(({ event: r, args: o }) => W.emit(r, ...o)), re = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully
|
|
1108
|
-
window.HTMLElement && // also exclude jsdom
|
|
1109
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
1110
|
-
!((s = (n = window.navigator) == null ? void 0 : n.userAgent) != null && s.includes("jsdom")) ? ((t.__VUE_DEVTOOLS_HOOK_REPLAY__ = t.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((o) => {
|
|
1111
|
-
ct(o, t);
|
|
1112
|
-
}), setTimeout(() => {
|
|
1113
|
-
W || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, re = []);
|
|
1114
|
-
}, 3e3)) : re = [];
|
|
1115
|
-
}
|
|
1116
|
-
let Z = null, Rn = null;
|
|
1117
|
-
const Dn = (e) => e.__isTeleport;
|
|
1118
|
-
function at(e, t) {
|
|
1119
|
-
e.shapeFlag & 6 && e.component ? (e.transition = t, at(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
|
|
1120
|
-
}
|
|
1121
|
-
le().requestIdleCallback;
|
|
1122
|
-
le().cancelIdleCallback;
|
|
1123
|
-
const xn = /* @__PURE__ */ Symbol.for("v-ndc"), Vn = {};
|
|
1124
|
-
process.env.NODE_ENV !== "production" && (Vn.ownKeys = (e) => (V(
|
|
1125
|
-
"Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
|
|
1126
|
-
), Reflect.ownKeys(e)));
|
|
1127
|
-
let Tn = null;
|
|
1128
|
-
function In(e, t) {
|
|
1129
|
-
if (process.env.NODE_ENV !== "production" && (!O || O.isMounted) && V("provide() can only be used inside setup()."), O) {
|
|
1130
|
-
let n = O.provides;
|
|
1131
|
-
const s = O.parent && O.parent.provides;
|
|
1132
|
-
s === n && (n = O.provides = Object.create(s)), n[e] = t;
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1135
|
-
function Cn(e, t, n = !1) {
|
|
1136
|
-
const s = ht();
|
|
1137
|
-
if (s || Tn) {
|
|
1138
|
-
let r = s ? s.parent == null || s.ce ? s.vnode.appContext && s.vnode.appContext.provides : s.parent.provides : void 0;
|
|
1139
|
-
if (r && e in r)
|
|
1140
|
-
return r[e];
|
|
1141
|
-
if (arguments.length > 1)
|
|
1142
|
-
return n && T(t) ? t.call(s && s.proxy) : t;
|
|
1143
|
-
process.env.NODE_ENV !== "production" && V(`injection "${String(e)}" not found.`);
|
|
1144
|
-
} else process.env.NODE_ENV !== "production" && V("inject() can only be used inside setup() or functional components.");
|
|
1145
|
-
}
|
|
1146
|
-
const An = {}, lt = (e) => Object.getPrototypeOf(e) === An, Mn = (e) => e.__isSuspense, ut = /* @__PURE__ */ Symbol.for("v-fgt"), Pn = /* @__PURE__ */ Symbol.for("v-txt"), $n = /* @__PURE__ */ Symbol.for("v-cmt");
|
|
1147
|
-
function Fn(e) {
|
|
1148
|
-
return e ? e.__v_isVNode === !0 : !1;
|
|
1149
|
-
}
|
|
1150
|
-
const jn = (...e) => pt(
|
|
1151
|
-
...e
|
|
1152
|
-
), ft = ({ key: e }) => e ?? null, se = ({
|
|
1153
|
-
ref: e,
|
|
1154
|
-
ref_key: t,
|
|
1155
|
-
ref_for: n
|
|
1156
|
-
}) => (typeof e == "number" && (e = "" + e), e != null ? D(e) || R(e) || T(e) ? { i: Z, r: e, k: t, f: !!n } : e : null);
|
|
1157
|
-
function Ln(e, t = null, n = null, s = 0, r = null, o = e === ut ? 0 : 1, i = !1, c = !1) {
|
|
1158
|
-
const a = {
|
|
1159
|
-
__v_isVNode: !0,
|
|
1160
|
-
__v_skip: !0,
|
|
1161
|
-
type: e,
|
|
1162
|
-
props: t,
|
|
1163
|
-
key: t && ft(t),
|
|
1164
|
-
ref: t && se(t),
|
|
1165
|
-
scopeId: Rn,
|
|
1166
|
-
slotScopeIds: null,
|
|
1167
|
-
children: n,
|
|
1168
|
-
component: null,
|
|
1169
|
-
suspense: null,
|
|
1170
|
-
ssContent: null,
|
|
1171
|
-
ssFallback: null,
|
|
1172
|
-
dirs: null,
|
|
1173
|
-
transition: null,
|
|
1174
|
-
el: null,
|
|
1175
|
-
anchor: null,
|
|
1176
|
-
target: null,
|
|
1177
|
-
targetStart: null,
|
|
1178
|
-
targetAnchor: null,
|
|
1179
|
-
staticCount: 0,
|
|
1180
|
-
shapeFlag: o,
|
|
1181
|
-
patchFlag: s,
|
|
1182
|
-
dynamicProps: r,
|
|
1183
|
-
dynamicChildren: null,
|
|
1184
|
-
appContext: null,
|
|
1185
|
-
ctx: Z
|
|
1186
|
-
};
|
|
1187
|
-
return c ? (Pe(a, n), o & 128 && e.normalize(a)) : n && (a.shapeFlag |= D(n) ? 8 : 16), process.env.NODE_ENV !== "production" && a.key !== a.key && V("VNode created with invalid key (NaN). VNode type:", a.type), a;
|
|
1188
|
-
}
|
|
1189
|
-
const Hn = process.env.NODE_ENV !== "production" ? jn : pt;
|
|
1190
|
-
function pt(e, t = null, n = null, s = 0, r = null, o = !1) {
|
|
1191
|
-
if ((!e || e === xn) && (process.env.NODE_ENV !== "production" && !e && V(`Invalid vnode type when creating vnode: ${e}.`), e = $n), Fn(e)) {
|
|
1192
|
-
const c = ae(
|
|
1193
|
-
e,
|
|
1194
|
-
t,
|
|
1195
|
-
!0
|
|
1196
|
-
/* mergeRef: true */
|
|
1197
|
-
);
|
|
1198
|
-
return n && Pe(c, n), c.patchFlag = -2, c;
|
|
1199
|
-
}
|
|
1200
|
-
if (mt(e) && (e = e.__vccOpts), t) {
|
|
1201
|
-
t = Kn(t);
|
|
1202
|
-
let { class: c, style: a } = t;
|
|
1203
|
-
c && !D(c) && (t.class = xe(c)), E(a) && (oe(a) && !_(a) && (a = j({}, a)), t.style = De(a));
|
|
1204
|
-
}
|
|
1205
|
-
const i = D(e) ? 1 : Mn(e) ? 128 : Dn(e) ? 64 : E(e) ? 4 : T(e) ? 2 : 0;
|
|
1206
|
-
return process.env.NODE_ENV !== "production" && i & 4 && oe(e) && (e = p(e), V(
|
|
1207
|
-
"Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
|
|
1208
|
-
`
|
|
1209
|
-
Component that was made reactive: `,
|
|
1210
|
-
e
|
|
1211
|
-
)), Ln(
|
|
1212
|
-
e,
|
|
1213
|
-
t,
|
|
1214
|
-
n,
|
|
1215
|
-
s,
|
|
1216
|
-
r,
|
|
1217
|
-
i,
|
|
1218
|
-
o,
|
|
1219
|
-
!0
|
|
1220
|
-
);
|
|
1221
|
-
}
|
|
1222
|
-
function Kn(e) {
|
|
1223
|
-
return e ? oe(e) || lt(e) ? j({}, e) : e : null;
|
|
1224
|
-
}
|
|
1225
|
-
function ae(e, t, n = !1, s = !1) {
|
|
1226
|
-
const { props: r, ref: o, patchFlag: i, children: c, transition: a } = e, u = t ? zn(r || {}, t) : r, d = {
|
|
1227
|
-
__v_isVNode: !0,
|
|
1228
|
-
__v_skip: !0,
|
|
1229
|
-
type: e.type,
|
|
1230
|
-
props: u,
|
|
1231
|
-
key: u && ft(u),
|
|
1232
|
-
ref: t && t.ref ? (
|
|
1233
|
-
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
1234
|
-
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
1235
|
-
// the refs so the single vnode can be set on multiple refs
|
|
1236
|
-
n && o ? _(o) ? o.concat(se(t)) : [o, se(t)] : se(t)
|
|
1237
|
-
) : o,
|
|
1238
|
-
scopeId: e.scopeId,
|
|
1239
|
-
slotScopeIds: e.slotScopeIds,
|
|
1240
|
-
children: process.env.NODE_ENV !== "production" && i === -1 && _(c) ? c.map(dt) : c,
|
|
1241
|
-
target: e.target,
|
|
1242
|
-
targetStart: e.targetStart,
|
|
1243
|
-
targetAnchor: e.targetAnchor,
|
|
1244
|
-
staticCount: e.staticCount,
|
|
1245
|
-
shapeFlag: e.shapeFlag,
|
|
1246
|
-
// if the vnode is cloned with extra props, we can no longer assume its
|
|
1247
|
-
// existing patch flag to be reliable and need to add the FULL_PROPS flag.
|
|
1248
|
-
// note: preserve flag for fragments since they use the flag for children
|
|
1249
|
-
// fast paths only.
|
|
1250
|
-
patchFlag: t && e.type !== ut ? i === -1 ? 16 : i | 16 : i,
|
|
1251
|
-
dynamicProps: e.dynamicProps,
|
|
1252
|
-
dynamicChildren: e.dynamicChildren,
|
|
1253
|
-
appContext: e.appContext,
|
|
1254
|
-
dirs: e.dirs,
|
|
1255
|
-
transition: a,
|
|
1256
|
-
// These should technically only be non-null on mounted VNodes. However,
|
|
1257
|
-
// they *should* be copied for kept-alive vnodes. So we just always copy
|
|
1258
|
-
// them since them being non-null during a mount doesn't affect the logic as
|
|
1259
|
-
// they will simply be overwritten.
|
|
1260
|
-
component: e.component,
|
|
1261
|
-
suspense: e.suspense,
|
|
1262
|
-
ssContent: e.ssContent && ae(e.ssContent),
|
|
1263
|
-
ssFallback: e.ssFallback && ae(e.ssFallback),
|
|
1264
|
-
placeholder: e.placeholder,
|
|
1265
|
-
el: e.el,
|
|
1266
|
-
anchor: e.anchor,
|
|
1267
|
-
ctx: e.ctx,
|
|
1268
|
-
ce: e.ce
|
|
1269
|
-
};
|
|
1270
|
-
return a && s && at(
|
|
1271
|
-
d,
|
|
1272
|
-
a.clone(d)
|
|
1273
|
-
), d;
|
|
1274
|
-
}
|
|
1275
|
-
function dt(e) {
|
|
1276
|
-
const t = ae(e);
|
|
1277
|
-
return _(e.children) && (t.children = e.children.map(dt)), t;
|
|
1278
|
-
}
|
|
1279
|
-
function Wn(e = " ", t = 0) {
|
|
1280
|
-
return Hn(Pn, null, e, t);
|
|
1281
|
-
}
|
|
1282
|
-
function Pe(e, t) {
|
|
1283
|
-
let n = 0;
|
|
1284
|
-
const { shapeFlag: s } = e;
|
|
1285
|
-
if (t == null)
|
|
1286
|
-
t = null;
|
|
1287
|
-
else if (_(t))
|
|
1288
|
-
n = 16;
|
|
1289
|
-
else if (typeof t == "object")
|
|
1290
|
-
if (s & 65) {
|
|
1291
|
-
const r = t.default;
|
|
1292
|
-
r && (r._c && (r._d = !1), Pe(e, r()), r._c && (r._d = !0));
|
|
1293
|
-
return;
|
|
1294
|
-
} else
|
|
1295
|
-
n = 32, !t._ && !lt(t) && (t._ctx = Z);
|
|
1296
|
-
else T(t) ? (t = { default: t, _ctx: Z }, n = 32) : (t = String(t), s & 64 ? (n = 16, t = [Wn(t)]) : n = 8);
|
|
1297
|
-
e.children = t, e.shapeFlag |= n;
|
|
1298
|
-
}
|
|
1299
|
-
function zn(...e) {
|
|
1300
|
-
const t = {};
|
|
1301
|
-
for (let n = 0; n < e.length; n++) {
|
|
1302
|
-
const s = e[n];
|
|
1303
|
-
for (const r in s)
|
|
1304
|
-
if (r === "class")
|
|
1305
|
-
t.class !== s.class && (t.class = xe([t.class, s.class]));
|
|
1306
|
-
else if (r === "style")
|
|
1307
|
-
t.style = De([t.style, s.style]);
|
|
1308
|
-
else if (Dt(r)) {
|
|
1309
|
-
const o = t[r], i = s[r];
|
|
1310
|
-
i && o !== i && !(_(o) && o.includes(i)) && (t[r] = o ? [].concat(o, i) : i);
|
|
1311
|
-
} else r !== "" && (t[r] = s[r]);
|
|
1312
|
-
}
|
|
1313
|
-
return t;
|
|
1314
|
-
}
|
|
1315
|
-
let O = null;
|
|
1316
|
-
const ht = () => O || Z;
|
|
1317
|
-
{
|
|
1318
|
-
const e = le(), t = (n, s) => {
|
|
1319
|
-
let r;
|
|
1320
|
-
return (r = e[n]) || (r = e[n] = []), r.push(s), (o) => {
|
|
1321
|
-
r.length > 1 ? r.forEach((i) => i(o)) : r[0](o);
|
|
1322
|
-
};
|
|
1323
|
-
};
|
|
1324
|
-
t(
|
|
1325
|
-
"__VUE_INSTANCE_SETTERS__",
|
|
1326
|
-
(n) => O = n
|
|
1327
|
-
), t(
|
|
1328
|
-
"__VUE_SSR_SETTERS__",
|
|
1329
|
-
(n) => _t = n
|
|
1330
|
-
);
|
|
1331
|
-
}
|
|
1332
|
-
let _t = !1;
|
|
1333
|
-
process.env.NODE_ENV;
|
|
1334
|
-
const Un = /(?:^|[-_])\w/g, kn = (e) => e.replace(Un, (t) => t.toUpperCase()).replace(/[-_]/g, "");
|
|
1335
|
-
function gt(e, t = !0) {
|
|
1336
|
-
return T(e) ? e.displayName || e.name : e.name || t && e.__name;
|
|
1337
|
-
}
|
|
1338
|
-
function vt(e, t, n = !1) {
|
|
1339
|
-
let s = gt(t);
|
|
1340
|
-
if (!s && t.__file) {
|
|
1341
|
-
const r = t.__file.match(/([^/\\]+)\.\w+$/);
|
|
1342
|
-
r && (s = r[1]);
|
|
1343
|
-
}
|
|
1344
|
-
if (!s && e) {
|
|
1345
|
-
const r = (o) => {
|
|
1346
|
-
for (const i in o)
|
|
1347
|
-
if (o[i] === t)
|
|
1348
|
-
return i;
|
|
1349
|
-
};
|
|
1350
|
-
s = r(e.components) || e.parent && r(
|
|
1351
|
-
e.parent.type.components
|
|
1352
|
-
) || r(e.appContext.components);
|
|
1353
|
-
}
|
|
1354
|
-
return s ? kn(s) : n ? "App" : "Anonymous";
|
|
1355
|
-
}
|
|
1356
|
-
function mt(e) {
|
|
1357
|
-
return T(e) && "__vccOpts" in e;
|
|
1358
|
-
}
|
|
1359
|
-
const ve = (e, t) => {
|
|
1360
|
-
const n = ln(e, t, _t);
|
|
1361
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1362
|
-
const s = ht();
|
|
1363
|
-
s && s.appContext.config.warnRecursiveComputed && (n._warnRecursive = !0);
|
|
1364
|
-
}
|
|
1365
|
-
return n;
|
|
1366
|
-
};
|
|
1367
|
-
function Yn() {
|
|
1368
|
-
if (process.env.NODE_ENV === "production" || typeof window > "u")
|
|
1369
|
-
return;
|
|
1370
|
-
const e = { style: "color:#3ba776" }, t = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, s = { style: "color:#eb2f96" }, r = {
|
|
1371
|
-
__vue_custom_formatter: !0,
|
|
1372
|
-
header(l) {
|
|
1373
|
-
if (!E(l))
|
|
1374
|
-
return null;
|
|
1375
|
-
if (l.__isVue)
|
|
1376
|
-
return ["div", e, "VueInstance"];
|
|
1377
|
-
if (R(l)) {
|
|
1378
|
-
ue();
|
|
1379
|
-
const f = l.value;
|
|
1380
|
-
return fe(), [
|
|
1381
|
-
"div",
|
|
1382
|
-
{},
|
|
1383
|
-
["span", e, d(l)],
|
|
1384
|
-
"<",
|
|
1385
|
-
c(f),
|
|
1386
|
-
">"
|
|
1387
|
-
];
|
|
1388
|
-
} else {
|
|
1389
|
-
if (Ae(l))
|
|
1390
|
-
return [
|
|
1391
|
-
"div",
|
|
1392
|
-
{},
|
|
1393
|
-
["span", e, N(l) ? "ShallowReactive" : "Reactive"],
|
|
1394
|
-
"<",
|
|
1395
|
-
c(l),
|
|
1396
|
-
`>${w(l) ? " (readonly)" : ""}`
|
|
1397
|
-
];
|
|
1398
|
-
if (w(l))
|
|
1399
|
-
return [
|
|
1400
|
-
"div",
|
|
1401
|
-
{},
|
|
1402
|
-
["span", e, N(l) ? "ShallowReadonly" : "Readonly"],
|
|
1403
|
-
"<",
|
|
1404
|
-
c(l),
|
|
1405
|
-
">"
|
|
1406
|
-
];
|
|
1407
|
-
}
|
|
1408
|
-
return null;
|
|
1409
|
-
},
|
|
1410
|
-
hasBody(l) {
|
|
1411
|
-
return l && l.__isVue;
|
|
1412
|
-
},
|
|
1413
|
-
body(l) {
|
|
1414
|
-
if (l && l.__isVue)
|
|
1415
|
-
return [
|
|
1416
|
-
"div",
|
|
1417
|
-
{},
|
|
1418
|
-
...o(l.$)
|
|
1419
|
-
];
|
|
1420
|
-
}
|
|
1421
|
-
};
|
|
1422
|
-
function o(l) {
|
|
1423
|
-
const f = [];
|
|
1424
|
-
l.type.props && l.props && f.push(i("props", p(l.props))), l.setupState !== Ee && f.push(i("setup", l.setupState)), l.data !== Ee && f.push(i("data", p(l.data)));
|
|
1425
|
-
const g = a(l, "computed");
|
|
1426
|
-
g && f.push(i("computed", g));
|
|
1427
|
-
const b = a(l, "inject");
|
|
1428
|
-
return b && f.push(i("injected", b)), f.push([
|
|
1429
|
-
"div",
|
|
1430
|
-
{},
|
|
1431
|
-
[
|
|
1432
|
-
"span",
|
|
1433
|
-
{
|
|
1434
|
-
style: s.style + ";opacity:0.66"
|
|
1435
|
-
},
|
|
1436
|
-
"$ (internal): "
|
|
1437
|
-
],
|
|
1438
|
-
["object", { object: l }]
|
|
1439
|
-
]), f;
|
|
1440
|
-
}
|
|
1441
|
-
function i(l, f) {
|
|
1442
|
-
return f = j({}, f), Object.keys(f).length ? [
|
|
1443
|
-
"div",
|
|
1444
|
-
{ style: "line-height:1.25em;margin-bottom:0.6em" },
|
|
1445
|
-
[
|
|
1446
|
-
"div",
|
|
1447
|
-
{
|
|
1448
|
-
style: "color:#476582"
|
|
1449
|
-
},
|
|
1450
|
-
l
|
|
1451
|
-
],
|
|
1452
|
-
[
|
|
1453
|
-
"div",
|
|
1454
|
-
{
|
|
1455
|
-
style: "padding-left:1.25em"
|
|
1456
|
-
},
|
|
1457
|
-
...Object.keys(f).map((g) => [
|
|
1458
|
-
"div",
|
|
1459
|
-
{},
|
|
1460
|
-
["span", s, g + ": "],
|
|
1461
|
-
c(f[g], !1)
|
|
1462
|
-
])
|
|
1463
|
-
]
|
|
1464
|
-
] : ["span", {}];
|
|
1465
|
-
}
|
|
1466
|
-
function c(l, f = !0) {
|
|
1467
|
-
return typeof l == "number" ? ["span", t, l] : typeof l == "string" ? ["span", n, JSON.stringify(l)] : typeof l == "boolean" ? ["span", s, l] : E(l) ? ["object", { object: f ? p(l) : l }] : ["span", n, String(l)];
|
|
1468
|
-
}
|
|
1469
|
-
function a(l, f) {
|
|
1470
|
-
const g = l.type;
|
|
1471
|
-
if (T(g))
|
|
1472
|
-
return;
|
|
1473
|
-
const b = {};
|
|
1474
|
-
for (const P in l.ctx)
|
|
1475
|
-
u(g, P, f) && (b[P] = l.ctx[P]);
|
|
1476
|
-
return b;
|
|
1477
|
-
}
|
|
1478
|
-
function u(l, f, g) {
|
|
1479
|
-
const b = l[g];
|
|
1480
|
-
if (_(b) && b.includes(f) || E(b) && f in b || l.extends && u(l.extends, f, g) || l.mixins && l.mixins.some((P) => u(P, f, g)))
|
|
1481
|
-
return !0;
|
|
1482
|
-
}
|
|
1483
|
-
function d(l) {
|
|
1484
|
-
return N(l) ? "ShallowRef" : l.effect ? "ComputedRef" : "Ref";
|
|
1485
|
-
}
|
|
1486
|
-
window.devtoolsFormatters ? window.devtoolsFormatters.push(r) : window.devtoolsFormatters = [r];
|
|
1487
|
-
}
|
|
1488
|
-
process.env.NODE_ENV;
|
|
1489
|
-
process.env.NODE_ENV;
|
|
1490
|
-
process.env.NODE_ENV;
|
|
1491
|
-
function Jn() {
|
|
1492
|
-
Yn();
|
|
1493
|
-
}
|
|
1494
|
-
process.env.NODE_ENV !== "production" && Jn();
|
|
1495
|
-
const me = new wt(), Et = /* @__PURE__ */ Symbol("i18n-astro");
|
|
1496
|
-
function Gn(e) {
|
|
1497
|
-
const t = sn({
|
|
1498
|
-
locale: e.locale,
|
|
1499
|
-
fallbackLocale: e.fallbackLocale,
|
|
1500
|
-
translations: e.translations,
|
|
1501
|
-
currentRoute: e.currentRoute
|
|
1502
|
-
});
|
|
1503
|
-
return In(Et, t), t;
|
|
1504
|
-
}
|
|
1505
|
-
function Qn() {
|
|
1506
|
-
const e = Cn(Et);
|
|
1507
|
-
if (!e)
|
|
1508
|
-
throw new Error("useAstroI18n must be used within a component that calls provideI18n");
|
|
1509
|
-
const t = (a, u, d, l) => Ot(e.value, a, u, d, l);
|
|
1510
|
-
return {
|
|
1511
|
-
// Translation methods
|
|
1512
|
-
t,
|
|
1513
|
-
ts: (a, u, d, l) => t(a, u, d, l)?.toString() ?? d ?? a,
|
|
1514
|
-
tc: (a, u, d) => {
|
|
1515
|
-
const { count: l, ...f } = typeof u == "number" ? { count: u } : u;
|
|
1516
|
-
if (l === void 0)
|
|
1517
|
-
return d ?? a;
|
|
1518
|
-
const g = (P, bt, Nt) => t(P, bt, Nt);
|
|
1519
|
-
return yt(a, Number.parseInt(l.toString(), 10), f, e.value.locale, g) ?? d ?? a;
|
|
1520
|
-
},
|
|
1521
|
-
tn: (a, u) => me.formatNumber(a, e.value.locale, u),
|
|
1522
|
-
td: (a, u) => me.formatDate(a, e.value.locale, u),
|
|
1523
|
-
tdr: (a, u) => me.formatRelativeTime(a, e.value.locale, u),
|
|
1524
|
-
has: (a, u) => St(e.value, a, u),
|
|
1525
|
-
// Reactive locale state
|
|
1526
|
-
locale: ve({
|
|
1527
|
-
get: () => e.value.locale,
|
|
1528
|
-
set: (a) => {
|
|
1529
|
-
e.value = { ...e.value, locale: a };
|
|
1530
|
-
}
|
|
1531
|
-
}),
|
|
1532
|
-
fallbackLocale: ve(() => e.value.fallbackLocale),
|
|
1533
|
-
currentRoute: ve({
|
|
1534
|
-
get: () => e.value.currentRoute,
|
|
1535
|
-
set: (a) => {
|
|
1536
|
-
e.value = { ...e.value, currentRoute: a };
|
|
1537
|
-
}
|
|
1538
|
-
}),
|
|
1539
|
-
// Route management
|
|
1540
|
-
setLocale: (a) => {
|
|
1541
|
-
e.value = { ...e.value, locale: a };
|
|
1542
|
-
},
|
|
1543
|
-
setRoute: (a) => {
|
|
1544
|
-
e.value = { ...e.value, currentRoute: a };
|
|
1545
|
-
},
|
|
1546
|
-
getRoute: () => e.value.currentRoute
|
|
1547
|
-
};
|
|
1548
|
-
}
|
|
1549
|
-
export {
|
|
1550
|
-
Gn as provideI18n,
|
|
1551
|
-
Qn as useAstroI18n
|
|
1552
|
-
};
|
|
1
|
+
import { n as e, t } from "../vue-CyIbewNw.js";
|
|
2
|
+
export { t as provideI18n, e as useAstroI18n };
|