@i18n-micro/astro 1.3.25 → 2.0.0

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