@1024pix/epreuves-components 0.9.5 → 0.9.7

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.
@@ -1,4184 +0,0 @@
1
- /**
2
- * @vue/shared v3.5.18
3
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
- * @license MIT
5
- **/
6
- /*! #__NO_SIDE_EFFECTS__ */
7
- // @__NO_SIDE_EFFECTS__
8
- function Ms(t) {
9
- const e = /* @__PURE__ */ Object.create(null);
10
- for (const s of t.split(",")) e[s] = 1;
11
- return (s) => s in e;
12
- }
13
- const H = {}, Zt = [], Ct = () => {
14
- }, Bi = () => !1, Be = (t) => t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && // uppercase letter
15
- (t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), Is = (t) => t.startsWith("onUpdate:"), Y = Object.assign, Fs = (t, e) => {
16
- const s = t.indexOf(e);
17
- s > -1 && t.splice(s, 1);
18
- }, Wi = Object.prototype.hasOwnProperty, N = (t, e) => Wi.call(t, e), A = Array.isArray, Qt = (t) => We(t) === "[object Map]", Hn = (t) => We(t) === "[object Set]", O = (t) => typeof t == "function", G = (t) => typeof t == "string", Ft = (t) => typeof t == "symbol", U = (t) => t !== null && typeof t == "object", Ln = (t) => (U(t) || O(t)) && O(t.then) && O(t.catch), $n = Object.prototype.toString, We = (t) => $n.call(t), qi = (t) => We(t).slice(8, -1), qe = (t) => We(t) === "[object Object]", Ns = (t) => G(t) && t !== "NaN" && t[0] !== "-" && "" + parseInt(t, 10) === t, ae = /* @__PURE__ */ Ms(
19
- // the leading comma is intentional so empty string "" is also included
20
- ",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
21
- ), Ge = (t) => {
22
- const e = /* @__PURE__ */ Object.create(null);
23
- return (s) => e[s] || (e[s] = t(s));
24
- }, Gi = /-(\w)/g, rt = Ge(
25
- (t) => t.replace(Gi, (e, s) => s ? s.toUpperCase() : "")
26
- ), Ji = /\B([A-Z])/g, at = Ge(
27
- (t) => t.replace(Ji, "-$1").toLowerCase()
28
- ), Je = Ge((t) => t.charAt(0).toUpperCase() + t.slice(1)), rs = Ge(
29
- (t) => t ? `on${Je(t)}` : ""
30
- ), $t = (t, e) => !Object.is(t, e), Fe = (t, ...e) => {
31
- for (let s = 0; s < t.length; s++)
32
- t[s](...e);
33
- }, ms = (t, e, s, n = !1) => {
34
- Object.defineProperty(t, e, {
35
- configurable: !0,
36
- enumerable: !1,
37
- writable: n,
38
- value: s
39
- });
40
- }, bs = (t) => {
41
- const e = parseFloat(t);
42
- return isNaN(e) ? t : e;
43
- }, nn = (t) => {
44
- const e = G(t) ? Number(t) : NaN;
45
- return isNaN(e) ? t : e;
46
- };
47
- let rn;
48
- const Ye = () => rn || (rn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
49
- function Ds(t) {
50
- if (A(t)) {
51
- const e = {};
52
- for (let s = 0; s < t.length; s++) {
53
- const n = t[s], i = G(n) ? Zi(n) : Ds(n);
54
- if (i)
55
- for (const r in i)
56
- e[r] = i[r];
57
- }
58
- return e;
59
- } else if (G(t) || U(t))
60
- return t;
61
- }
62
- const Yi = /;(?![^(]*\))/g, zi = /:([^]+)/, Xi = /\/\*[^]*?\*\//g;
63
- function Zi(t) {
64
- const e = {};
65
- return t.replace(Xi, "").split(Yi).forEach((s) => {
66
- if (s) {
67
- const n = s.split(zi);
68
- n.length > 1 && (e[n[0].trim()] = n[1].trim());
69
- }
70
- }), e;
71
- }
72
- function js(t) {
73
- let e = "";
74
- if (G(t))
75
- e = t;
76
- else if (A(t))
77
- for (let s = 0; s < t.length; s++) {
78
- const n = js(t[s]);
79
- n && (e += n + " ");
80
- }
81
- else if (U(t))
82
- for (const s in t)
83
- t[s] && (e += s + " ");
84
- return e.trim();
85
- }
86
- const Qi = "itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly", ki = /* @__PURE__ */ Ms(Qi);
87
- function Vn(t) {
88
- return !!t || t === "";
89
- }
90
- const Kn = (t) => !!(t && t.__v_isRef === !0), tr = (t) => G(t) ? t : t == null ? "" : A(t) || U(t) && (t.toString === $n || !O(t.toString)) ? Kn(t) ? tr(t.value) : JSON.stringify(t, Un, 2) : String(t), Un = (t, e) => Kn(e) ? Un(t, e.value) : Qt(e) ? {
91
- [`Map(${e.size})`]: [...e.entries()].reduce(
92
- (s, [n, i], r) => (s[os(n, r) + " =>"] = i, s),
93
- {}
94
- )
95
- } : Hn(e) ? {
96
- [`Set(${e.size})`]: [...e.values()].map((s) => os(s))
97
- } : Ft(e) ? os(e) : U(e) && !A(e) && !qe(e) ? String(e) : e, os = (t, e = "") => {
98
- var s;
99
- return (
100
- // Symbol.description in es2019+ so we need to cast here to pass
101
- // the lib: es2016 check
102
- Ft(t) ? `Symbol(${(s = t.description) != null ? s : e})` : t
103
- );
104
- };
105
- /**
106
- * @vue/reactivity v3.5.18
107
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
108
- * @license MIT
109
- **/
110
- let ft;
111
- class er {
112
- constructor(e = !1) {
113
- this.detached = e, this._active = !0, this._on = 0, this.effects = [], this.cleanups = [], this._isPaused = !1, this.parent = ft, !e && ft && (this.index = (ft.scopes || (ft.scopes = [])).push(
114
- this
115
- ) - 1);
116
- }
117
- get active() {
118
- return this._active;
119
- }
120
- pause() {
121
- if (this._active) {
122
- this._isPaused = !0;
123
- let e, s;
124
- if (this.scopes)
125
- for (e = 0, s = this.scopes.length; e < s; e++)
126
- this.scopes[e].pause();
127
- for (e = 0, s = this.effects.length; e < s; e++)
128
- this.effects[e].pause();
129
- }
130
- }
131
- /**
132
- * Resumes the effect scope, including all child scopes and effects.
133
- */
134
- resume() {
135
- if (this._active && this._isPaused) {
136
- this._isPaused = !1;
137
- let e, s;
138
- if (this.scopes)
139
- for (e = 0, s = this.scopes.length; e < s; e++)
140
- this.scopes[e].resume();
141
- for (e = 0, s = this.effects.length; e < s; e++)
142
- this.effects[e].resume();
143
- }
144
- }
145
- run(e) {
146
- if (this._active) {
147
- const s = ft;
148
- try {
149
- return ft = this, e();
150
- } finally {
151
- ft = s;
152
- }
153
- }
154
- }
155
- /**
156
- * This should only be called on non-detached scopes
157
- * @internal
158
- */
159
- on() {
160
- ++this._on === 1 && (this.prevScope = ft, ft = this);
161
- }
162
- /**
163
- * This should only be called on non-detached scopes
164
- * @internal
165
- */
166
- off() {
167
- this._on > 0 && --this._on === 0 && (ft = this.prevScope, this.prevScope = void 0);
168
- }
169
- stop(e) {
170
- if (this._active) {
171
- this._active = !1;
172
- let s, n;
173
- for (s = 0, n = this.effects.length; s < n; s++)
174
- this.effects[s].stop();
175
- for (this.effects.length = 0, s = 0, n = this.cleanups.length; s < n; s++)
176
- this.cleanups[s]();
177
- if (this.cleanups.length = 0, this.scopes) {
178
- for (s = 0, n = this.scopes.length; s < n; s++)
179
- this.scopes[s].stop(!0);
180
- this.scopes.length = 0;
181
- }
182
- if (!this.detached && this.parent && !e) {
183
- const i = this.parent.scopes.pop();
184
- i && i !== this && (this.parent.scopes[this.index] = i, i.index = this.index);
185
- }
186
- this.parent = void 0;
187
- }
188
- }
189
- }
190
- function sr() {
191
- return ft;
192
- }
193
- let K;
194
- const ls = /* @__PURE__ */ new WeakSet();
195
- class Bn {
196
- constructor(e) {
197
- 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, ft && ft.active && ft.effects.push(this);
198
- }
199
- pause() {
200
- this.flags |= 64;
201
- }
202
- resume() {
203
- this.flags & 64 && (this.flags &= -65, ls.has(this) && (ls.delete(this), this.trigger()));
204
- }
205
- /**
206
- * @internal
207
- */
208
- notify() {
209
- this.flags & 2 && !(this.flags & 32) || this.flags & 8 || qn(this);
210
- }
211
- run() {
212
- if (!(this.flags & 1))
213
- return this.fn();
214
- this.flags |= 2, on(this), Gn(this);
215
- const e = K, s = gt;
216
- K = this, gt = !0;
217
- try {
218
- return this.fn();
219
- } finally {
220
- Jn(this), K = e, gt = s, this.flags &= -3;
221
- }
222
- }
223
- stop() {
224
- if (this.flags & 1) {
225
- for (let e = this.deps; e; e = e.nextDep)
226
- $s(e);
227
- this.deps = this.depsTail = void 0, on(this), this.onStop && this.onStop(), this.flags &= -2;
228
- }
229
- }
230
- trigger() {
231
- this.flags & 64 ? ls.add(this) : this.scheduler ? this.scheduler() : this.runIfDirty();
232
- }
233
- /**
234
- * @internal
235
- */
236
- runIfDirty() {
237
- ys(this) && this.run();
238
- }
239
- get dirty() {
240
- return ys(this);
241
- }
242
- }
243
- let Wn = 0, he, de;
244
- function qn(t, e = !1) {
245
- if (t.flags |= 8, e) {
246
- t.next = de, de = t;
247
- return;
248
- }
249
- t.next = he, he = t;
250
- }
251
- function Hs() {
252
- Wn++;
253
- }
254
- function Ls() {
255
- if (--Wn > 0)
256
- return;
257
- if (de) {
258
- let e = de;
259
- for (de = void 0; e; ) {
260
- const s = e.next;
261
- e.next = void 0, e.flags &= -9, e = s;
262
- }
263
- }
264
- let t;
265
- for (; he; ) {
266
- let e = he;
267
- for (he = void 0; e; ) {
268
- const s = e.next;
269
- if (e.next = void 0, e.flags &= -9, e.flags & 1)
270
- try {
271
- e.trigger();
272
- } catch (n) {
273
- t || (t = n);
274
- }
275
- e = s;
276
- }
277
- }
278
- if (t) throw t;
279
- }
280
- function Gn(t) {
281
- for (let e = t.deps; e; e = e.nextDep)
282
- e.version = -1, e.prevActiveLink = e.dep.activeLink, e.dep.activeLink = e;
283
- }
284
- function Jn(t) {
285
- let e, s = t.depsTail, n = s;
286
- for (; n; ) {
287
- const i = n.prevDep;
288
- n.version === -1 ? (n === s && (s = i), $s(n), nr(n)) : e = n, n.dep.activeLink = n.prevActiveLink, n.prevActiveLink = void 0, n = i;
289
- }
290
- t.deps = e, t.depsTail = s;
291
- }
292
- function ys(t) {
293
- for (let e = t.deps; e; e = e.nextDep)
294
- if (e.dep.version !== e.version || e.dep.computed && (Yn(e.dep.computed) || e.dep.version !== e.version))
295
- return !0;
296
- return !!t._dirty;
297
- }
298
- function Yn(t) {
299
- if (t.flags & 4 && !(t.flags & 16) || (t.flags &= -17, t.globalVersion === me) || (t.globalVersion = me, !t.isSSR && t.flags & 128 && (!t.deps && !t._dirty || !ys(t))))
300
- return;
301
- t.flags |= 2;
302
- const e = t.dep, s = K, n = gt;
303
- K = t, gt = !0;
304
- try {
305
- Gn(t);
306
- const i = t.fn(t._value);
307
- (e.version === 0 || $t(i, t._value)) && (t.flags |= 128, t._value = i, e.version++);
308
- } catch (i) {
309
- throw e.version++, i;
310
- } finally {
311
- K = s, gt = n, Jn(t), t.flags &= -3;
312
- }
313
- }
314
- function $s(t, e = !1) {
315
- const { dep: s, prevSub: n, nextSub: i } = t;
316
- if (n && (n.nextSub = i, t.prevSub = void 0), i && (i.prevSub = n, t.nextSub = void 0), s.subs === t && (s.subs = n, !n && s.computed)) {
317
- s.computed.flags &= -5;
318
- for (let r = s.computed.deps; r; r = r.nextDep)
319
- $s(r, !0);
320
- }
321
- !e && !--s.sc && s.map && s.map.delete(s.key);
322
- }
323
- function nr(t) {
324
- const { prevDep: e, nextDep: s } = t;
325
- e && (e.nextDep = s, t.prevDep = void 0), s && (s.prevDep = e, t.nextDep = void 0);
326
- }
327
- let gt = !0;
328
- const zn = [];
329
- function Ot() {
330
- zn.push(gt), gt = !1;
331
- }
332
- function Mt() {
333
- const t = zn.pop();
334
- gt = t === void 0 ? !0 : t;
335
- }
336
- function on(t) {
337
- const { cleanup: e } = t;
338
- if (t.cleanup = void 0, e) {
339
- const s = K;
340
- K = void 0;
341
- try {
342
- e();
343
- } finally {
344
- K = s;
345
- }
346
- }
347
- }
348
- let me = 0;
349
- class ir {
350
- constructor(e, s) {
351
- this.sub = e, this.dep = s, this.version = s.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
352
- }
353
- }
354
- class Vs {
355
- // TODO isolatedDeclarations "__v_skip"
356
- constructor(e) {
357
- 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;
358
- }
359
- track(e) {
360
- if (!K || !gt || K === this.computed)
361
- return;
362
- let s = this.activeLink;
363
- if (s === void 0 || s.sub !== K)
364
- s = this.activeLink = new ir(K, this), K.deps ? (s.prevDep = K.depsTail, K.depsTail.nextDep = s, K.depsTail = s) : K.deps = K.depsTail = s, Xn(s);
365
- else if (s.version === -1 && (s.version = this.version, s.nextDep)) {
366
- const n = s.nextDep;
367
- n.prevDep = s.prevDep, s.prevDep && (s.prevDep.nextDep = n), s.prevDep = K.depsTail, s.nextDep = void 0, K.depsTail.nextDep = s, K.depsTail = s, K.deps === s && (K.deps = n);
368
- }
369
- return s;
370
- }
371
- trigger(e) {
372
- this.version++, me++, this.notify(e);
373
- }
374
- notify(e) {
375
- Hs();
376
- try {
377
- for (let s = this.subs; s; s = s.prevSub)
378
- s.sub.notify() && s.sub.dep.notify();
379
- } finally {
380
- Ls();
381
- }
382
- }
383
- }
384
- function Xn(t) {
385
- if (t.dep.sc++, t.sub.flags & 4) {
386
- const e = t.dep.computed;
387
- if (e && !t.dep.subs) {
388
- e.flags |= 20;
389
- for (let n = e.deps; n; n = n.nextDep)
390
- Xn(n);
391
- }
392
- const s = t.dep.subs;
393
- s !== t && (t.prevSub = s, s && (s.nextSub = t)), t.dep.subs = t;
394
- }
395
- }
396
- const xs = /* @__PURE__ */ new WeakMap(), Jt = Symbol(
397
- ""
398
- ), vs = Symbol(
399
- ""
400
- ), be = Symbol(
401
- ""
402
- );
403
- function Q(t, e, s) {
404
- if (gt && K) {
405
- let n = xs.get(t);
406
- n || xs.set(t, n = /* @__PURE__ */ new Map());
407
- let i = n.get(s);
408
- i || (n.set(s, i = new Vs()), i.map = n, i.key = s), i.track();
409
- }
410
- }
411
- function Pt(t, e, s, n, i, r) {
412
- const o = xs.get(t);
413
- if (!o) {
414
- me++;
415
- return;
416
- }
417
- const l = (c) => {
418
- c && c.trigger();
419
- };
420
- if (Hs(), e === "clear")
421
- o.forEach(l);
422
- else {
423
- const c = A(t), d = c && Ns(s);
424
- if (c && s === "length") {
425
- const a = Number(n);
426
- o.forEach((p, S) => {
427
- (S === "length" || S === be || !Ft(S) && S >= a) && l(p);
428
- });
429
- } else
430
- switch ((s !== void 0 || o.has(void 0)) && l(o.get(s)), d && l(o.get(be)), e) {
431
- case "add":
432
- c ? d && l(o.get("length")) : (l(o.get(Jt)), Qt(t) && l(o.get(vs)));
433
- break;
434
- case "delete":
435
- c || (l(o.get(Jt)), Qt(t) && l(o.get(vs)));
436
- break;
437
- case "set":
438
- Qt(t) && l(o.get(Jt));
439
- break;
440
- }
441
- }
442
- Ls();
443
- }
444
- function Yt(t) {
445
- const e = D(t);
446
- return e === t ? e : (Q(e, "iterate", be), pt(t) ? e : e.map(z));
447
- }
448
- function ze(t) {
449
- return Q(t = D(t), "iterate", be), t;
450
- }
451
- const rr = {
452
- __proto__: null,
453
- [Symbol.iterator]() {
454
- return fs(this, Symbol.iterator, z);
455
- },
456
- concat(...t) {
457
- return Yt(this).concat(
458
- ...t.map((e) => A(e) ? Yt(e) : e)
459
- );
460
- },
461
- entries() {
462
- return fs(this, "entries", (t) => (t[1] = z(t[1]), t));
463
- },
464
- every(t, e) {
465
- return Et(this, "every", t, e, void 0, arguments);
466
- },
467
- filter(t, e) {
468
- return Et(this, "filter", t, e, (s) => s.map(z), arguments);
469
- },
470
- find(t, e) {
471
- return Et(this, "find", t, e, z, arguments);
472
- },
473
- findIndex(t, e) {
474
- return Et(this, "findIndex", t, e, void 0, arguments);
475
- },
476
- findLast(t, e) {
477
- return Et(this, "findLast", t, e, z, arguments);
478
- },
479
- findLastIndex(t, e) {
480
- return Et(this, "findLastIndex", t, e, void 0, arguments);
481
- },
482
- // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
483
- forEach(t, e) {
484
- return Et(this, "forEach", t, e, void 0, arguments);
485
- },
486
- includes(...t) {
487
- return cs(this, "includes", t);
488
- },
489
- indexOf(...t) {
490
- return cs(this, "indexOf", t);
491
- },
492
- join(t) {
493
- return Yt(this).join(t);
494
- },
495
- // keys() iterator only reads `length`, no optimisation required
496
- lastIndexOf(...t) {
497
- return cs(this, "lastIndexOf", t);
498
- },
499
- map(t, e) {
500
- return Et(this, "map", t, e, void 0, arguments);
501
- },
502
- pop() {
503
- return fe(this, "pop");
504
- },
505
- push(...t) {
506
- return fe(this, "push", t);
507
- },
508
- reduce(t, ...e) {
509
- return ln(this, "reduce", t, e);
510
- },
511
- reduceRight(t, ...e) {
512
- return ln(this, "reduceRight", t, e);
513
- },
514
- shift() {
515
- return fe(this, "shift");
516
- },
517
- // slice could use ARRAY_ITERATE but also seems to beg for range tracking
518
- some(t, e) {
519
- return Et(this, "some", t, e, void 0, arguments);
520
- },
521
- splice(...t) {
522
- return fe(this, "splice", t);
523
- },
524
- toReversed() {
525
- return Yt(this).toReversed();
526
- },
527
- toSorted(t) {
528
- return Yt(this).toSorted(t);
529
- },
530
- toSpliced(...t) {
531
- return Yt(this).toSpliced(...t);
532
- },
533
- unshift(...t) {
534
- return fe(this, "unshift", t);
535
- },
536
- values() {
537
- return fs(this, "values", z);
538
- }
539
- };
540
- function fs(t, e, s) {
541
- const n = ze(t), i = n[e]();
542
- return n !== t && !pt(t) && (i._next = i.next, i.next = () => {
543
- const r = i._next();
544
- return r.value && (r.value = s(r.value)), r;
545
- }), i;
546
- }
547
- const or = Array.prototype;
548
- function Et(t, e, s, n, i, r) {
549
- const o = ze(t), l = o !== t && !pt(t), c = o[e];
550
- if (c !== or[e]) {
551
- const p = c.apply(t, r);
552
- return l ? z(p) : p;
553
- }
554
- let d = s;
555
- o !== t && (l ? d = function(p, S) {
556
- return s.call(this, z(p), S, t);
557
- } : s.length > 2 && (d = function(p, S) {
558
- return s.call(this, p, S, t);
559
- }));
560
- const a = c.call(o, d, n);
561
- return l && i ? i(a) : a;
562
- }
563
- function ln(t, e, s, n) {
564
- const i = ze(t);
565
- let r = s;
566
- return i !== t && (pt(t) ? s.length > 3 && (r = function(o, l, c) {
567
- return s.call(this, o, l, c, t);
568
- }) : r = function(o, l, c) {
569
- return s.call(this, o, z(l), c, t);
570
- }), i[e](r, ...n);
571
- }
572
- function cs(t, e, s) {
573
- const n = D(t);
574
- Q(n, "iterate", be);
575
- const i = n[e](...s);
576
- return (i === -1 || i === !1) && Ws(s[0]) ? (s[0] = D(s[0]), n[e](...s)) : i;
577
- }
578
- function fe(t, e, s = []) {
579
- Ot(), Hs();
580
- const n = D(t)[e].apply(t, s);
581
- return Ls(), Mt(), n;
582
- }
583
- const lr = /* @__PURE__ */ Ms("__proto__,__v_isRef,__isVue"), Zn = new Set(
584
- /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter(Ft)
585
- );
586
- function fr(t) {
587
- Ft(t) || (t = String(t));
588
- const e = D(this);
589
- return Q(e, "has", t), e.hasOwnProperty(t);
590
- }
591
- class Qn {
592
- constructor(e = !1, s = !1) {
593
- this._isReadonly = e, this._isShallow = s;
594
- }
595
- get(e, s, n) {
596
- if (s === "__v_skip") return e.__v_skip;
597
- const i = this._isReadonly, r = this._isShallow;
598
- if (s === "__v_isReactive")
599
- return !i;
600
- if (s === "__v_isReadonly")
601
- return i;
602
- if (s === "__v_isShallow")
603
- return r;
604
- if (s === "__v_raw")
605
- return n === (i ? r ? br : si : r ? ei : ti).get(e) || // receiver is not the reactive proxy, but has the same prototype
606
- // this means the receiver is a user proxy of the reactive proxy
607
- Object.getPrototypeOf(e) === Object.getPrototypeOf(n) ? e : void 0;
608
- const o = A(e);
609
- if (!i) {
610
- let c;
611
- if (o && (c = rr[s]))
612
- return c;
613
- if (s === "hasOwnProperty")
614
- return fr;
615
- }
616
- const l = Reflect.get(
617
- e,
618
- s,
619
- // if this is a proxy wrapping a ref, return methods using the raw ref
620
- // as receiver so that we don't have to call `toRaw` on the ref in all
621
- // its class methods
622
- tt(e) ? e : n
623
- );
624
- return (Ft(s) ? Zn.has(s) : lr(s)) || (i || Q(e, "get", s), r) ? l : tt(l) ? o && Ns(s) ? l : l.value : U(l) ? i ? ni(l) : Us(l) : l;
625
- }
626
- }
627
- class kn extends Qn {
628
- constructor(e = !1) {
629
- super(!1, e);
630
- }
631
- set(e, s, n, i) {
632
- let r = e[s];
633
- if (!this._isShallow) {
634
- const c = Vt(r);
635
- if (!pt(n) && !Vt(n) && (r = D(r), n = D(n)), !A(e) && tt(r) && !tt(n))
636
- return c ? !1 : (r.value = n, !0);
637
- }
638
- const o = A(e) && Ns(s) ? Number(s) < e.length : N(e, s), l = Reflect.set(
639
- e,
640
- s,
641
- n,
642
- tt(e) ? e : i
643
- );
644
- return e === D(i) && (o ? $t(n, r) && Pt(e, "set", s, n) : Pt(e, "add", s, n)), l;
645
- }
646
- deleteProperty(e, s) {
647
- const n = N(e, s);
648
- e[s];
649
- const i = Reflect.deleteProperty(e, s);
650
- return i && n && Pt(e, "delete", s, void 0), i;
651
- }
652
- has(e, s) {
653
- const n = Reflect.has(e, s);
654
- return (!Ft(s) || !Zn.has(s)) && Q(e, "has", s), n;
655
- }
656
- ownKeys(e) {
657
- return Q(
658
- e,
659
- "iterate",
660
- A(e) ? "length" : Jt
661
- ), Reflect.ownKeys(e);
662
- }
663
- }
664
- class cr extends Qn {
665
- constructor(e = !1) {
666
- super(!0, e);
667
- }
668
- set(e, s) {
669
- return !0;
670
- }
671
- deleteProperty(e, s) {
672
- return !0;
673
- }
674
- }
675
- const ur = /* @__PURE__ */ new kn(), ar = /* @__PURE__ */ new cr(), hr = /* @__PURE__ */ new kn(!0);
676
- const ws = (t) => t, Oe = (t) => Reflect.getPrototypeOf(t);
677
- function dr(t, e, s) {
678
- return function(...n) {
679
- const i = this.__v_raw, r = D(i), o = Qt(r), l = t === "entries" || t === Symbol.iterator && o, c = t === "keys" && o, d = i[t](...n), a = s ? ws : e ? He : z;
680
- return !e && Q(
681
- r,
682
- "iterate",
683
- c ? vs : Jt
684
- ), {
685
- // iterator protocol
686
- next() {
687
- const { value: p, done: S } = d.next();
688
- return S ? { value: p, done: S } : {
689
- value: l ? [a(p[0]), a(p[1])] : a(p),
690
- done: S
691
- };
692
- },
693
- // iterable protocol
694
- [Symbol.iterator]() {
695
- return this;
696
- }
697
- };
698
- };
699
- }
700
- function Me(t) {
701
- return function(...e) {
702
- return t === "delete" ? !1 : t === "clear" ? void 0 : this;
703
- };
704
- }
705
- function pr(t, e) {
706
- const s = {
707
- get(i) {
708
- const r = this.__v_raw, o = D(r), l = D(i);
709
- t || ($t(i, l) && Q(o, "get", i), Q(o, "get", l));
710
- const { has: c } = Oe(o), d = e ? ws : t ? He : z;
711
- if (c.call(o, i))
712
- return d(r.get(i));
713
- if (c.call(o, l))
714
- return d(r.get(l));
715
- r !== o && r.get(i);
716
- },
717
- get size() {
718
- const i = this.__v_raw;
719
- return !t && Q(D(i), "iterate", Jt), Reflect.get(i, "size", i);
720
- },
721
- has(i) {
722
- const r = this.__v_raw, o = D(r), l = D(i);
723
- return t || ($t(i, l) && Q(o, "has", i), Q(o, "has", l)), i === l ? r.has(i) : r.has(i) || r.has(l);
724
- },
725
- forEach(i, r) {
726
- const o = this, l = o.__v_raw, c = D(l), d = e ? ws : t ? He : z;
727
- return !t && Q(c, "iterate", Jt), l.forEach((a, p) => i.call(r, d(a), d(p), o));
728
- }
729
- };
730
- return Y(
731
- s,
732
- t ? {
733
- add: Me("add"),
734
- set: Me("set"),
735
- delete: Me("delete"),
736
- clear: Me("clear")
737
- } : {
738
- add(i) {
739
- !e && !pt(i) && !Vt(i) && (i = D(i));
740
- const r = D(this);
741
- return Oe(r).has.call(r, i) || (r.add(i), Pt(r, "add", i, i)), this;
742
- },
743
- set(i, r) {
744
- !e && !pt(r) && !Vt(r) && (r = D(r));
745
- const o = D(this), { has: l, get: c } = Oe(o);
746
- let d = l.call(o, i);
747
- d || (i = D(i), d = l.call(o, i));
748
- const a = c.call(o, i);
749
- return o.set(i, r), d ? $t(r, a) && Pt(o, "set", i, r) : Pt(o, "add", i, r), this;
750
- },
751
- delete(i) {
752
- const r = D(this), { has: o, get: l } = Oe(r);
753
- let c = o.call(r, i);
754
- c || (i = D(i), c = o.call(r, i)), l && l.call(r, i);
755
- const d = r.delete(i);
756
- return c && Pt(r, "delete", i, void 0), d;
757
- },
758
- clear() {
759
- const i = D(this), r = i.size !== 0, o = i.clear();
760
- return r && Pt(
761
- i,
762
- "clear",
763
- void 0,
764
- void 0
765
- ), o;
766
- }
767
- }
768
- ), [
769
- "keys",
770
- "values",
771
- "entries",
772
- Symbol.iterator
773
- ].forEach((i) => {
774
- s[i] = dr(i, t, e);
775
- }), s;
776
- }
777
- function Ks(t, e) {
778
- const s = pr(t, e);
779
- return (n, i, r) => i === "__v_isReactive" ? !t : i === "__v_isReadonly" ? t : i === "__v_raw" ? n : Reflect.get(
780
- N(s, i) && i in n ? s : n,
781
- i,
782
- r
783
- );
784
- }
785
- const gr = {
786
- get: /* @__PURE__ */ Ks(!1, !1)
787
- }, _r = {
788
- get: /* @__PURE__ */ Ks(!1, !0)
789
- }, mr = {
790
- get: /* @__PURE__ */ Ks(!0, !1)
791
- };
792
- const ti = /* @__PURE__ */ new WeakMap(), ei = /* @__PURE__ */ new WeakMap(), si = /* @__PURE__ */ new WeakMap(), br = /* @__PURE__ */ new WeakMap();
793
- function yr(t) {
794
- switch (t) {
795
- case "Object":
796
- case "Array":
797
- return 1;
798
- case "Map":
799
- case "Set":
800
- case "WeakMap":
801
- case "WeakSet":
802
- return 2;
803
- default:
804
- return 0;
805
- }
806
- }
807
- function xr(t) {
808
- return t.__v_skip || !Object.isExtensible(t) ? 0 : yr(qi(t));
809
- }
810
- function Us(t) {
811
- return Vt(t) ? t : Bs(
812
- t,
813
- !1,
814
- ur,
815
- gr,
816
- ti
817
- );
818
- }
819
- function vr(t) {
820
- return Bs(
821
- t,
822
- !1,
823
- hr,
824
- _r,
825
- ei
826
- );
827
- }
828
- function ni(t) {
829
- return Bs(
830
- t,
831
- !0,
832
- ar,
833
- mr,
834
- si
835
- );
836
- }
837
- function Bs(t, e, s, n, i) {
838
- if (!U(t) || t.__v_raw && !(e && t.__v_isReactive))
839
- return t;
840
- const r = xr(t);
841
- if (r === 0)
842
- return t;
843
- const o = i.get(t);
844
- if (o)
845
- return o;
846
- const l = new Proxy(
847
- t,
848
- r === 2 ? n : s
849
- );
850
- return i.set(t, l), l;
851
- }
852
- function kt(t) {
853
- return Vt(t) ? kt(t.__v_raw) : !!(t && t.__v_isReactive);
854
- }
855
- function Vt(t) {
856
- return !!(t && t.__v_isReadonly);
857
- }
858
- function pt(t) {
859
- return !!(t && t.__v_isShallow);
860
- }
861
- function Ws(t) {
862
- return t ? !!t.__v_raw : !1;
863
- }
864
- function D(t) {
865
- const e = t && t.__v_raw;
866
- return e ? D(e) : t;
867
- }
868
- function wr(t) {
869
- return !N(t, "__v_skip") && Object.isExtensible(t) && ms(t, "__v_skip", !0), t;
870
- }
871
- const z = (t) => U(t) ? Us(t) : t, He = (t) => U(t) ? ni(t) : t;
872
- function tt(t) {
873
- return t ? t.__v_isRef === !0 : !1;
874
- }
875
- function xl(t) {
876
- return ii(t, !1);
877
- }
878
- function Sr(t) {
879
- return ii(t, !0);
880
- }
881
- function ii(t, e) {
882
- return tt(t) ? t : new Cr(t, e);
883
- }
884
- class Cr {
885
- constructor(e, s) {
886
- this.dep = new Vs(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = s ? e : D(e), this._value = s ? e : z(e), this.__v_isShallow = s;
887
- }
888
- get value() {
889
- return this.dep.track(), this._value;
890
- }
891
- set value(e) {
892
- const s = this._rawValue, n = this.__v_isShallow || pt(e) || Vt(e);
893
- e = n ? e : D(e), $t(e, s) && (this._rawValue = e, this._value = n ? e : z(e), this.dep.trigger());
894
- }
895
- }
896
- function ri(t) {
897
- return tt(t) ? t.value : t;
898
- }
899
- const Tr = {
900
- get: (t, e, s) => e === "__v_raw" ? t : ri(Reflect.get(t, e, s)),
901
- set: (t, e, s, n) => {
902
- const i = t[e];
903
- return tt(i) && !tt(s) ? (i.value = s, !0) : Reflect.set(t, e, s, n);
904
- }
905
- };
906
- function oi(t) {
907
- return kt(t) ? t : new Proxy(t, Tr);
908
- }
909
- class Er {
910
- constructor(e, s, n) {
911
- this.fn = e, this.setter = s, this._value = void 0, this.dep = new Vs(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = me - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !s, this.isSSR = n;
912
- }
913
- /**
914
- * @internal
915
- */
916
- notify() {
917
- if (this.flags |= 16, !(this.flags & 8) && // avoid infinite self recursion
918
- K !== this)
919
- return qn(this, !0), !0;
920
- }
921
- get value() {
922
- const e = this.dep.track();
923
- return Yn(this), e && (e.version = this.dep.version), this._value;
924
- }
925
- set value(e) {
926
- this.setter && this.setter(e);
927
- }
928
- }
929
- function Ar(t, e, s = !1) {
930
- let n, i;
931
- return O(t) ? n = t : (n = t.get, i = t.set), new Er(n, i, s);
932
- }
933
- const Ie = {}, Le = /* @__PURE__ */ new WeakMap();
934
- let Gt;
935
- function Pr(t, e = !1, s = Gt) {
936
- if (s) {
937
- let n = Le.get(s);
938
- n || Le.set(s, n = []), n.push(t);
939
- }
940
- }
941
- function Rr(t, e, s = H) {
942
- const { immediate: n, deep: i, once: r, scheduler: o, augmentJob: l, call: c } = s, d = (P) => i ? P : pt(P) || i === !1 || i === 0 ? Rt(P, 1) : Rt(P);
943
- let a, p, S, C, F = !1, I = !1;
944
- if (tt(t) ? (p = () => t.value, F = pt(t)) : kt(t) ? (p = () => d(t), F = !0) : A(t) ? (I = !0, F = t.some((P) => kt(P) || pt(P)), p = () => t.map((P) => {
945
- if (tt(P))
946
- return P.value;
947
- if (kt(P))
948
- return d(P);
949
- if (O(P))
950
- return c ? c(P, 2) : P();
951
- })) : O(t) ? e ? p = c ? () => c(t, 2) : t : p = () => {
952
- if (S) {
953
- Ot();
954
- try {
955
- S();
956
- } finally {
957
- Mt();
958
- }
959
- }
960
- const P = Gt;
961
- Gt = a;
962
- try {
963
- return c ? c(t, 3, [C]) : t(C);
964
- } finally {
965
- Gt = P;
966
- }
967
- } : p = Ct, e && i) {
968
- const P = p, J = i === !0 ? 1 / 0 : i;
969
- p = () => Rt(P(), J);
970
- }
971
- const Z = sr(), L = () => {
972
- a.stop(), Z && Z.active && Fs(Z.effects, a);
973
- };
974
- if (r && e) {
975
- const P = e;
976
- e = (...J) => {
977
- P(...J), L();
978
- };
979
- }
980
- let W = I ? new Array(t.length).fill(Ie) : Ie;
981
- const q = (P) => {
982
- if (!(!(a.flags & 1) || !a.dirty && !P))
983
- if (e) {
984
- const J = a.run();
985
- if (i || F || (I ? J.some((Dt, _t) => $t(Dt, W[_t])) : $t(J, W))) {
986
- S && S();
987
- const Dt = Gt;
988
- Gt = a;
989
- try {
990
- const _t = [
991
- J,
992
- // pass undefined as the old value when it's changed for the first time
993
- W === Ie ? void 0 : I && W[0] === Ie ? [] : W,
994
- C
995
- ];
996
- W = J, c ? c(e, 3, _t) : (
997
- // @ts-expect-error
998
- e(..._t)
999
- );
1000
- } finally {
1001
- Gt = Dt;
1002
- }
1003
- }
1004
- } else
1005
- a.run();
1006
- };
1007
- return l && l(q), a = new Bn(p), a.scheduler = o ? () => o(q, !1) : q, C = (P) => Pr(P, !1, a), S = a.onStop = () => {
1008
- const P = Le.get(a);
1009
- if (P) {
1010
- if (c)
1011
- c(P, 4);
1012
- else
1013
- for (const J of P) J();
1014
- Le.delete(a);
1015
- }
1016
- }, e ? n ? q(!0) : W = a.run() : o ? o(q.bind(null, !0), !0) : a.run(), L.pause = a.pause.bind(a), L.resume = a.resume.bind(a), L.stop = L, L;
1017
- }
1018
- function Rt(t, e = 1 / 0, s) {
1019
- if (e <= 0 || !U(t) || t.__v_skip || (s = s || /* @__PURE__ */ new Set(), s.has(t)))
1020
- return t;
1021
- if (s.add(t), e--, tt(t))
1022
- Rt(t.value, e, s);
1023
- else if (A(t))
1024
- for (let n = 0; n < t.length; n++)
1025
- Rt(t[n], e, s);
1026
- else if (Hn(t) || Qt(t))
1027
- t.forEach((n) => {
1028
- Rt(n, e, s);
1029
- });
1030
- else if (qe(t)) {
1031
- for (const n in t)
1032
- Rt(t[n], e, s);
1033
- for (const n of Object.getOwnPropertySymbols(t))
1034
- Object.prototype.propertyIsEnumerable.call(t, n) && Rt(t[n], e, s);
1035
- }
1036
- return t;
1037
- }
1038
- /**
1039
- * @vue/runtime-core v3.5.18
1040
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
1041
- * @license MIT
1042
- **/
1043
- function Se(t, e, s, n) {
1044
- try {
1045
- return n ? t(...n) : t();
1046
- } catch (i) {
1047
- Xe(i, e, s);
1048
- }
1049
- }
1050
- function Tt(t, e, s, n) {
1051
- if (O(t)) {
1052
- const i = Se(t, e, s, n);
1053
- return i && Ln(i) && i.catch((r) => {
1054
- Xe(r, e, s);
1055
- }), i;
1056
- }
1057
- if (A(t)) {
1058
- const i = [];
1059
- for (let r = 0; r < t.length; r++)
1060
- i.push(Tt(t[r], e, s, n));
1061
- return i;
1062
- }
1063
- }
1064
- function Xe(t, e, s, n = !0) {
1065
- const i = e ? e.vnode : null, { errorHandler: r, throwUnhandledErrorInProduction: o } = e && e.appContext.config || H;
1066
- if (e) {
1067
- let l = e.parent;
1068
- const c = e.proxy, d = `https://vuejs.org/error-reference/#runtime-${s}`;
1069
- for (; l; ) {
1070
- const a = l.ec;
1071
- if (a) {
1072
- for (let p = 0; p < a.length; p++)
1073
- if (a[p](t, c, d) === !1)
1074
- return;
1075
- }
1076
- l = l.parent;
1077
- }
1078
- if (r) {
1079
- Ot(), Se(r, null, 10, [
1080
- t,
1081
- c,
1082
- d
1083
- ]), Mt();
1084
- return;
1085
- }
1086
- }
1087
- Or(t, s, i, n, o);
1088
- }
1089
- function Or(t, e, s, n = !0, i = !1) {
1090
- if (i)
1091
- throw t;
1092
- console.error(t);
1093
- }
1094
- const nt = [];
1095
- let wt = -1;
1096
- const te = [];
1097
- let Ht = null, zt = 0;
1098
- const li = /* @__PURE__ */ Promise.resolve();
1099
- let $e = null;
1100
- function fi(t) {
1101
- const e = $e || li;
1102
- return t ? e.then(this ? t.bind(this) : t) : e;
1103
- }
1104
- function Mr(t) {
1105
- let e = wt + 1, s = nt.length;
1106
- for (; e < s; ) {
1107
- const n = e + s >>> 1, i = nt[n], r = ye(i);
1108
- r < t || r === t && i.flags & 2 ? e = n + 1 : s = n;
1109
- }
1110
- return e;
1111
- }
1112
- function qs(t) {
1113
- if (!(t.flags & 1)) {
1114
- const e = ye(t), s = nt[nt.length - 1];
1115
- !s || // fast path when the job id is larger than the tail
1116
- !(t.flags & 2) && e >= ye(s) ? nt.push(t) : nt.splice(Mr(e), 0, t), t.flags |= 1, ci();
1117
- }
1118
- }
1119
- function ci() {
1120
- $e || ($e = li.then(ai));
1121
- }
1122
- function Ir(t) {
1123
- A(t) ? te.push(...t) : Ht && t.id === -1 ? Ht.splice(zt + 1, 0, t) : t.flags & 1 || (te.push(t), t.flags |= 1), ci();
1124
- }
1125
- function fn(t, e, s = wt + 1) {
1126
- for (; s < nt.length; s++) {
1127
- const n = nt[s];
1128
- if (n && n.flags & 2) {
1129
- if (t && n.id !== t.uid)
1130
- continue;
1131
- nt.splice(s, 1), s--, n.flags & 4 && (n.flags &= -2), n(), n.flags & 4 || (n.flags &= -2);
1132
- }
1133
- }
1134
- }
1135
- function ui(t) {
1136
- if (te.length) {
1137
- const e = [...new Set(te)].sort(
1138
- (s, n) => ye(s) - ye(n)
1139
- );
1140
- if (te.length = 0, Ht) {
1141
- Ht.push(...e);
1142
- return;
1143
- }
1144
- for (Ht = e, zt = 0; zt < Ht.length; zt++) {
1145
- const s = Ht[zt];
1146
- s.flags & 4 && (s.flags &= -2), s.flags & 8 || s(), s.flags &= -2;
1147
- }
1148
- Ht = null, zt = 0;
1149
- }
1150
- }
1151
- const ye = (t) => t.id == null ? t.flags & 2 ? -1 : 1 / 0 : t.id;
1152
- function ai(t) {
1153
- try {
1154
- for (wt = 0; wt < nt.length; wt++) {
1155
- const e = nt[wt];
1156
- e && !(e.flags & 8) && (e.flags & 4 && (e.flags &= -2), Se(
1157
- e,
1158
- e.i,
1159
- e.i ? 15 : 14
1160
- ), e.flags & 4 || (e.flags &= -2));
1161
- }
1162
- } finally {
1163
- for (; wt < nt.length; wt++) {
1164
- const e = nt[wt];
1165
- e && (e.flags &= -2);
1166
- }
1167
- wt = -1, nt.length = 0, ui(), $e = null, (nt.length || te.length) && ai();
1168
- }
1169
- }
1170
- let X = null, hi = null;
1171
- function Ve(t) {
1172
- const e = X;
1173
- return X = t, hi = t && t.type.__scopeId || null, e;
1174
- }
1175
- function Fr(t, e = X, s) {
1176
- if (!e || t._n)
1177
- return t;
1178
- const n = (...i) => {
1179
- n._d && bn(-1);
1180
- const r = Ve(e);
1181
- let o;
1182
- try {
1183
- o = t(...i);
1184
- } finally {
1185
- Ve(r), n._d && bn(1);
1186
- }
1187
- return o;
1188
- };
1189
- return n._n = !0, n._c = !0, n._d = !0, n;
1190
- }
1191
- function vl(t, e) {
1192
- if (X === null)
1193
- return t;
1194
- const s = ss(X), n = t.dirs || (t.dirs = []);
1195
- for (let i = 0; i < e.length; i++) {
1196
- let [r, o, l, c = H] = e[i];
1197
- r && (O(r) && (r = {
1198
- mounted: r,
1199
- updated: r
1200
- }), r.deep && Rt(o), n.push({
1201
- dir: r,
1202
- instance: s,
1203
- value: o,
1204
- oldValue: void 0,
1205
- arg: l,
1206
- modifiers: c
1207
- }));
1208
- }
1209
- return t;
1210
- }
1211
- function Wt(t, e, s, n) {
1212
- const i = t.dirs, r = e && e.dirs;
1213
- for (let o = 0; o < i.length; o++) {
1214
- const l = i[o];
1215
- r && (l.oldValue = r[o].value);
1216
- let c = l.dir[n];
1217
- c && (Ot(), Tt(c, s, 8, [
1218
- t.el,
1219
- l,
1220
- t,
1221
- e
1222
- ]), Mt());
1223
- }
1224
- }
1225
- const Nr = Symbol("_vte"), Dr = (t) => t.__isTeleport;
1226
- function Gs(t, e) {
1227
- t.shapeFlag & 6 && t.component ? (t.transition = e, Gs(t.component.subTree, e)) : t.shapeFlag & 128 ? (t.ssContent.transition = e.clone(t.ssContent), t.ssFallback.transition = e.clone(t.ssFallback)) : t.transition = e;
1228
- }
1229
- /*! #__NO_SIDE_EFFECTS__ */
1230
- // @__NO_SIDE_EFFECTS__
1231
- function jr(t, e) {
1232
- return O(t) ? (
1233
- // #8236: extend call and options.name access are considered side-effects
1234
- // by Rollup, so we have to wrap it in a pure-annotated IIFE.
1235
- Y({ name: t.name }, e, { setup: t })
1236
- ) : t;
1237
- }
1238
- function wl() {
1239
- const t = es();
1240
- return t ? (t.appContext.config.idPrefix || "v") + "-" + t.ids[0] + t.ids[1]++ : "";
1241
- }
1242
- function di(t) {
1243
- t.ids = [t.ids[0] + t.ids[2]++ + "-", 0, 0];
1244
- }
1245
- function Sl(t) {
1246
- const e = es(), s = Sr(null);
1247
- if (e) {
1248
- const i = e.refs === H ? e.refs = {} : e.refs;
1249
- Object.defineProperty(i, t, {
1250
- enumerable: !0,
1251
- get: () => s.value,
1252
- set: (r) => s.value = r
1253
- });
1254
- }
1255
- return s;
1256
- }
1257
- function pe(t, e, s, n, i = !1) {
1258
- if (A(t)) {
1259
- t.forEach(
1260
- (F, I) => pe(
1261
- F,
1262
- e && (A(e) ? e[I] : e),
1263
- s,
1264
- n,
1265
- i
1266
- )
1267
- );
1268
- return;
1269
- }
1270
- if (ee(n) && !i) {
1271
- n.shapeFlag & 512 && n.type.__asyncResolved && n.component.subTree.component && pe(t, e, s, n.component.subTree);
1272
- return;
1273
- }
1274
- const r = n.shapeFlag & 4 ? ss(n.component) : n.el, o = i ? null : r, { i: l, r: c } = t, d = e && e.r, a = l.refs === H ? l.refs = {} : l.refs, p = l.setupState, S = D(p), C = p === H ? () => !1 : (F) => N(S, F);
1275
- if (d != null && d !== c && (G(d) ? (a[d] = null, C(d) && (p[d] = null)) : tt(d) && (d.value = null)), O(c))
1276
- Se(c, l, 12, [o, a]);
1277
- else {
1278
- const F = G(c), I = tt(c);
1279
- if (F || I) {
1280
- const Z = () => {
1281
- if (t.f) {
1282
- const L = F ? C(c) ? p[c] : a[c] : c.value;
1283
- i ? A(L) && Fs(L, r) : A(L) ? L.includes(r) || L.push(r) : F ? (a[c] = [r], C(c) && (p[c] = a[c])) : (c.value = [r], t.k && (a[t.k] = c.value));
1284
- } else F ? (a[c] = o, C(c) && (p[c] = o)) : I && (c.value = o, t.k && (a[t.k] = o));
1285
- };
1286
- o ? (Z.id = -1, ut(Z, s)) : Z();
1287
- }
1288
- }
1289
- }
1290
- Ye().requestIdleCallback;
1291
- Ye().cancelIdleCallback;
1292
- const ee = (t) => !!t.type.__asyncLoader, pi = (t) => t.type.__isKeepAlive;
1293
- function Hr(t, e) {
1294
- gi(t, "a", e);
1295
- }
1296
- function Lr(t, e) {
1297
- gi(t, "da", e);
1298
- }
1299
- function gi(t, e, s = k) {
1300
- const n = t.__wdc || (t.__wdc = () => {
1301
- let i = s;
1302
- for (; i; ) {
1303
- if (i.isDeactivated)
1304
- return;
1305
- i = i.parent;
1306
- }
1307
- return t();
1308
- });
1309
- if (Ze(e, n, s), s) {
1310
- let i = s.parent;
1311
- for (; i && i.parent; )
1312
- pi(i.parent.vnode) && $r(n, e, s, i), i = i.parent;
1313
- }
1314
- }
1315
- function $r(t, e, s, n) {
1316
- const i = Ze(
1317
- e,
1318
- t,
1319
- n,
1320
- !0
1321
- /* prepend */
1322
- );
1323
- _i(() => {
1324
- Fs(n[e], i);
1325
- }, s);
1326
- }
1327
- function Ze(t, e, s = k, n = !1) {
1328
- if (s) {
1329
- const i = s[t] || (s[t] = []), r = e.__weh || (e.__weh = (...o) => {
1330
- Ot();
1331
- const l = Ce(s), c = Tt(e, s, t, o);
1332
- return l(), Mt(), c;
1333
- });
1334
- return n ? i.unshift(r) : i.push(r), r;
1335
- }
1336
- }
1337
- const Nt = (t) => (e, s = k) => {
1338
- (!we || t === "sp") && Ze(t, (...n) => e(...n), s);
1339
- }, Vr = Nt("bm"), Kr = Nt("m"), Ur = Nt(
1340
- "bu"
1341
- ), Br = Nt("u"), Wr = Nt(
1342
- "bum"
1343
- ), _i = Nt("um"), qr = Nt(
1344
- "sp"
1345
- ), Gr = Nt("rtg"), Jr = Nt("rtc");
1346
- function Yr(t, e = k) {
1347
- Ze("ec", t, e);
1348
- }
1349
- const zr = "components";
1350
- function Cl(t, e) {
1351
- return Zr(zr, t, !0, e) || t;
1352
- }
1353
- const Xr = Symbol.for("v-ndc");
1354
- function Zr(t, e, s = !0, n = !1) {
1355
- const i = X || k;
1356
- if (i) {
1357
- const r = i.type;
1358
- {
1359
- const l = Vo(
1360
- r,
1361
- !1
1362
- );
1363
- if (l && (l === e || l === rt(e) || l === Je(rt(e))))
1364
- return r;
1365
- }
1366
- const o = (
1367
- // local registration
1368
- // check instance[type] first which is resolved for options API
1369
- cn(i[t] || r[t], e) || // global registration
1370
- cn(i.appContext[t], e)
1371
- );
1372
- return !o && n ? r : o;
1373
- }
1374
- }
1375
- function cn(t, e) {
1376
- return t && (t[e] || t[rt(e)] || t[Je(rt(e))]);
1377
- }
1378
- function Tl(t, e, s, n) {
1379
- let i;
1380
- const r = s, o = A(t);
1381
- if (o || G(t)) {
1382
- const l = o && kt(t);
1383
- let c = !1, d = !1;
1384
- l && (c = !pt(t), d = Vt(t), t = ze(t)), i = new Array(t.length);
1385
- for (let a = 0, p = t.length; a < p; a++)
1386
- i[a] = e(
1387
- c ? d ? He(z(t[a])) : z(t[a]) : t[a],
1388
- a,
1389
- void 0,
1390
- r
1391
- );
1392
- } else if (typeof t == "number") {
1393
- i = new Array(t);
1394
- for (let l = 0; l < t; l++)
1395
- i[l] = e(l + 1, l, void 0, r);
1396
- } else if (U(t))
1397
- if (t[Symbol.iterator])
1398
- i = Array.from(
1399
- t,
1400
- (l, c) => e(l, c, void 0, r)
1401
- );
1402
- else {
1403
- const l = Object.keys(t);
1404
- i = new Array(l.length);
1405
- for (let c = 0, d = l.length; c < d; c++) {
1406
- const a = l[c];
1407
- i[c] = e(t[a], a, c, r);
1408
- }
1409
- }
1410
- else
1411
- i = [];
1412
- return i;
1413
- }
1414
- function El(t, e, s = {}, n, i) {
1415
- if (X.ce || X.parent && ee(X.parent) && X.parent.ce)
1416
- return e !== "default" && (s.name = e), As(), Ps(
1417
- dt,
1418
- null,
1419
- [it("slot", s, n)],
1420
- 64
1421
- );
1422
- let r = t[e];
1423
- r && r._c && (r._d = !1), As();
1424
- const o = r && mi(r(s)), l = s.key || // slot content array of a dynamic conditional slot may have a branch
1425
- // key attached in the `createSlots` helper, respect that
1426
- o && o.key, c = Ps(
1427
- dt,
1428
- {
1429
- key: (l && !Ft(l) ? l : `_${e}`) + // #7256 force differentiate fallback content from actual content
1430
- (!o && n ? "_fb" : "")
1431
- },
1432
- o || [],
1433
- o && t._ === 1 ? 64 : -2
1434
- );
1435
- return c.scopeId && (c.slotScopeIds = [c.scopeId + "-s"]), r && r._c && (r._d = !0), c;
1436
- }
1437
- function mi(t) {
1438
- return t.some((e) => ve(e) ? !(e.type === It || e.type === dt && !mi(e.children)) : !0) ? t : null;
1439
- }
1440
- const Ss = (t) => t ? Hi(t) ? ss(t) : Ss(t.parent) : null, ge = (
1441
- // Move PURE marker to new line to workaround compiler discarding it
1442
- // due to type annotation
1443
- /* @__PURE__ */ Y(/* @__PURE__ */ Object.create(null), {
1444
- $: (t) => t,
1445
- $el: (t) => t.vnode.el,
1446
- $data: (t) => t.data,
1447
- $props: (t) => t.props,
1448
- $attrs: (t) => t.attrs,
1449
- $slots: (t) => t.slots,
1450
- $refs: (t) => t.refs,
1451
- $parent: (t) => Ss(t.parent),
1452
- $root: (t) => Ss(t.root),
1453
- $host: (t) => t.ce,
1454
- $emit: (t) => t.emit,
1455
- $options: (t) => yi(t),
1456
- $forceUpdate: (t) => t.f || (t.f = () => {
1457
- qs(t.update);
1458
- }),
1459
- $nextTick: (t) => t.n || (t.n = fi.bind(t.proxy)),
1460
- $watch: (t) => xo.bind(t)
1461
- })
1462
- ), us = (t, e) => t !== H && !t.__isScriptSetup && N(t, e), Qr = {
1463
- get({ _: t }, e) {
1464
- if (e === "__v_skip")
1465
- return !0;
1466
- const { ctx: s, setupState: n, data: i, props: r, accessCache: o, type: l, appContext: c } = t;
1467
- let d;
1468
- if (e[0] !== "$") {
1469
- const C = o[e];
1470
- if (C !== void 0)
1471
- switch (C) {
1472
- case 1:
1473
- return n[e];
1474
- case 2:
1475
- return i[e];
1476
- case 4:
1477
- return s[e];
1478
- case 3:
1479
- return r[e];
1480
- }
1481
- else {
1482
- if (us(n, e))
1483
- return o[e] = 1, n[e];
1484
- if (i !== H && N(i, e))
1485
- return o[e] = 2, i[e];
1486
- if (
1487
- // only cache other properties when instance has declared (thus stable)
1488
- // props
1489
- (d = t.propsOptions[0]) && N(d, e)
1490
- )
1491
- return o[e] = 3, r[e];
1492
- if (s !== H && N(s, e))
1493
- return o[e] = 4, s[e];
1494
- Cs && (o[e] = 0);
1495
- }
1496
- }
1497
- const a = ge[e];
1498
- let p, S;
1499
- if (a)
1500
- return e === "$attrs" && Q(t.attrs, "get", ""), a(t);
1501
- if (
1502
- // css module (injected by vue-loader)
1503
- (p = l.__cssModules) && (p = p[e])
1504
- )
1505
- return p;
1506
- if (s !== H && N(s, e))
1507
- return o[e] = 4, s[e];
1508
- if (
1509
- // global properties
1510
- S = c.config.globalProperties, N(S, e)
1511
- )
1512
- return S[e];
1513
- },
1514
- set({ _: t }, e, s) {
1515
- const { data: n, setupState: i, ctx: r } = t;
1516
- return us(i, e) ? (i[e] = s, !0) : n !== H && N(n, e) ? (n[e] = s, !0) : N(t.props, e) || e[0] === "$" && e.slice(1) in t ? !1 : (r[e] = s, !0);
1517
- },
1518
- has({
1519
- _: { data: t, setupState: e, accessCache: s, ctx: n, appContext: i, propsOptions: r }
1520
- }, o) {
1521
- let l;
1522
- return !!s[o] || t !== H && N(t, o) || us(e, o) || (l = r[0]) && N(l, o) || N(n, o) || N(ge, o) || N(i.config.globalProperties, o);
1523
- },
1524
- defineProperty(t, e, s) {
1525
- return s.get != null ? t._.accessCache[e] = 0 : N(s, "value") && this.set(t, e, s.value, null), Reflect.defineProperty(t, e, s);
1526
- }
1527
- };
1528
- function un(t) {
1529
- return A(t) ? t.reduce(
1530
- (e, s) => (e[s] = null, e),
1531
- {}
1532
- ) : t;
1533
- }
1534
- let Cs = !0;
1535
- function kr(t) {
1536
- const e = yi(t), s = t.proxy, n = t.ctx;
1537
- Cs = !1, e.beforeCreate && an(e.beforeCreate, t, "bc");
1538
- const {
1539
- // state
1540
- data: i,
1541
- computed: r,
1542
- methods: o,
1543
- watch: l,
1544
- provide: c,
1545
- inject: d,
1546
- // lifecycle
1547
- created: a,
1548
- beforeMount: p,
1549
- mounted: S,
1550
- beforeUpdate: C,
1551
- updated: F,
1552
- activated: I,
1553
- deactivated: Z,
1554
- beforeDestroy: L,
1555
- beforeUnmount: W,
1556
- destroyed: q,
1557
- unmounted: P,
1558
- render: J,
1559
- renderTracked: Dt,
1560
- renderTriggered: _t,
1561
- errorCaptured: jt,
1562
- serverPrefetch: Te,
1563
- // public API
1564
- expose: Kt,
1565
- inheritAttrs: ie,
1566
- // assets
1567
- components: Ee,
1568
- directives: Ae,
1569
- filters: ns
1570
- } = e;
1571
- if (d && to(d, n, null), o)
1572
- for (const B in o) {
1573
- const $ = o[B];
1574
- O($) && (n[B] = $.bind(s));
1575
- }
1576
- if (i) {
1577
- const B = i.call(s, s);
1578
- U(B) && (t.data = Us(B));
1579
- }
1580
- if (Cs = !0, r)
1581
- for (const B in r) {
1582
- const $ = r[B], Ut = O($) ? $.bind(s, s) : O($.get) ? $.get.bind(s, s) : Ct, Pe = !O($) && O($.set) ? $.set.bind(s) : Ct, Bt = Uo({
1583
- get: Ut,
1584
- set: Pe
1585
- });
1586
- Object.defineProperty(n, B, {
1587
- enumerable: !0,
1588
- configurable: !0,
1589
- get: () => Bt.value,
1590
- set: (mt) => Bt.value = mt
1591
- });
1592
- }
1593
- if (l)
1594
- for (const B in l)
1595
- bi(l[B], n, s, B);
1596
- if (c) {
1597
- const B = O(c) ? c.call(s) : c;
1598
- Reflect.ownKeys(B).forEach(($) => {
1599
- oo($, B[$]);
1600
- });
1601
- }
1602
- a && an(a, t, "c");
1603
- function et(B, $) {
1604
- A($) ? $.forEach((Ut) => B(Ut.bind(s))) : $ && B($.bind(s));
1605
- }
1606
- if (et(Vr, p), et(Kr, S), et(Ur, C), et(Br, F), et(Hr, I), et(Lr, Z), et(Yr, jt), et(Jr, Dt), et(Gr, _t), et(Wr, W), et(_i, P), et(qr, Te), A(Kt))
1607
- if (Kt.length) {
1608
- const B = t.exposed || (t.exposed = {});
1609
- Kt.forEach(($) => {
1610
- Object.defineProperty(B, $, {
1611
- get: () => s[$],
1612
- set: (Ut) => s[$] = Ut,
1613
- enumerable: !0
1614
- });
1615
- });
1616
- } else t.exposed || (t.exposed = {});
1617
- J && t.render === Ct && (t.render = J), ie != null && (t.inheritAttrs = ie), Ee && (t.components = Ee), Ae && (t.directives = Ae), Te && di(t);
1618
- }
1619
- function to(t, e, s = Ct) {
1620
- A(t) && (t = Ts(t));
1621
- for (const n in t) {
1622
- const i = t[n];
1623
- let r;
1624
- U(i) ? "default" in i ? r = Ne(
1625
- i.from || n,
1626
- i.default,
1627
- !0
1628
- ) : r = Ne(i.from || n) : r = Ne(i), tt(r) ? Object.defineProperty(e, n, {
1629
- enumerable: !0,
1630
- configurable: !0,
1631
- get: () => r.value,
1632
- set: (o) => r.value = o
1633
- }) : e[n] = r;
1634
- }
1635
- }
1636
- function an(t, e, s) {
1637
- Tt(
1638
- A(t) ? t.map((n) => n.bind(e.proxy)) : t.bind(e.proxy),
1639
- e,
1640
- s
1641
- );
1642
- }
1643
- function bi(t, e, s, n) {
1644
- let i = n.includes(".") ? Mi(s, n) : () => s[n];
1645
- if (G(t)) {
1646
- const r = e[t];
1647
- O(r) && hs(i, r);
1648
- } else if (O(t))
1649
- hs(i, t.bind(s));
1650
- else if (U(t))
1651
- if (A(t))
1652
- t.forEach((r) => bi(r, e, s, n));
1653
- else {
1654
- const r = O(t.handler) ? t.handler.bind(s) : e[t.handler];
1655
- O(r) && hs(i, r, t);
1656
- }
1657
- }
1658
- function yi(t) {
1659
- const e = t.type, { mixins: s, extends: n } = e, {
1660
- mixins: i,
1661
- optionsCache: r,
1662
- config: { optionMergeStrategies: o }
1663
- } = t.appContext, l = r.get(e);
1664
- let c;
1665
- return l ? c = l : !i.length && !s && !n ? c = e : (c = {}, i.length && i.forEach(
1666
- (d) => Ke(c, d, o, !0)
1667
- ), Ke(c, e, o)), U(e) && r.set(e, c), c;
1668
- }
1669
- function Ke(t, e, s, n = !1) {
1670
- const { mixins: i, extends: r } = e;
1671
- r && Ke(t, r, s, !0), i && i.forEach(
1672
- (o) => Ke(t, o, s, !0)
1673
- );
1674
- for (const o in e)
1675
- if (!(n && o === "expose")) {
1676
- const l = eo[o] || s && s[o];
1677
- t[o] = l ? l(t[o], e[o]) : e[o];
1678
- }
1679
- return t;
1680
- }
1681
- const eo = {
1682
- data: hn,
1683
- props: dn,
1684
- emits: dn,
1685
- // objects
1686
- methods: ue,
1687
- computed: ue,
1688
- // lifecycle
1689
- beforeCreate: st,
1690
- created: st,
1691
- beforeMount: st,
1692
- mounted: st,
1693
- beforeUpdate: st,
1694
- updated: st,
1695
- beforeDestroy: st,
1696
- beforeUnmount: st,
1697
- destroyed: st,
1698
- unmounted: st,
1699
- activated: st,
1700
- deactivated: st,
1701
- errorCaptured: st,
1702
- serverPrefetch: st,
1703
- // assets
1704
- components: ue,
1705
- directives: ue,
1706
- // watch
1707
- watch: no,
1708
- // provide / inject
1709
- provide: hn,
1710
- inject: so
1711
- };
1712
- function hn(t, e) {
1713
- return e ? t ? function() {
1714
- return Y(
1715
- O(t) ? t.call(this, this) : t,
1716
- O(e) ? e.call(this, this) : e
1717
- );
1718
- } : e : t;
1719
- }
1720
- function so(t, e) {
1721
- return ue(Ts(t), Ts(e));
1722
- }
1723
- function Ts(t) {
1724
- if (A(t)) {
1725
- const e = {};
1726
- for (let s = 0; s < t.length; s++)
1727
- e[t[s]] = t[s];
1728
- return e;
1729
- }
1730
- return t;
1731
- }
1732
- function st(t, e) {
1733
- return t ? [...new Set([].concat(t, e))] : e;
1734
- }
1735
- function ue(t, e) {
1736
- return t ? Y(/* @__PURE__ */ Object.create(null), t, e) : e;
1737
- }
1738
- function dn(t, e) {
1739
- return t ? A(t) && A(e) ? [.../* @__PURE__ */ new Set([...t, ...e])] : Y(
1740
- /* @__PURE__ */ Object.create(null),
1741
- un(t),
1742
- un(e ?? {})
1743
- ) : e;
1744
- }
1745
- function no(t, e) {
1746
- if (!t) return e;
1747
- if (!e) return t;
1748
- const s = Y(/* @__PURE__ */ Object.create(null), t);
1749
- for (const n in e)
1750
- s[n] = st(t[n], e[n]);
1751
- return s;
1752
- }
1753
- function xi() {
1754
- return {
1755
- app: null,
1756
- config: {
1757
- isNativeTag: Bi,
1758
- performance: !1,
1759
- globalProperties: {},
1760
- optionMergeStrategies: {},
1761
- errorHandler: void 0,
1762
- warnHandler: void 0,
1763
- compilerOptions: {}
1764
- },
1765
- mixins: [],
1766
- components: {},
1767
- directives: {},
1768
- provides: /* @__PURE__ */ Object.create(null),
1769
- optionsCache: /* @__PURE__ */ new WeakMap(),
1770
- propsCache: /* @__PURE__ */ new WeakMap(),
1771
- emitsCache: /* @__PURE__ */ new WeakMap()
1772
- };
1773
- }
1774
- let io = 0;
1775
- function ro(t, e) {
1776
- return function(n, i = null) {
1777
- O(n) || (n = Y({}, n)), i != null && !U(i) && (i = null);
1778
- const r = xi(), o = /* @__PURE__ */ new WeakSet(), l = [];
1779
- let c = !1;
1780
- const d = r.app = {
1781
- _uid: io++,
1782
- _component: n,
1783
- _props: i,
1784
- _container: null,
1785
- _context: r,
1786
- _instance: null,
1787
- version: Bo,
1788
- get config() {
1789
- return r.config;
1790
- },
1791
- set config(a) {
1792
- },
1793
- use(a, ...p) {
1794
- return o.has(a) || (a && O(a.install) ? (o.add(a), a.install(d, ...p)) : O(a) && (o.add(a), a(d, ...p))), d;
1795
- },
1796
- mixin(a) {
1797
- return r.mixins.includes(a) || r.mixins.push(a), d;
1798
- },
1799
- component(a, p) {
1800
- return p ? (r.components[a] = p, d) : r.components[a];
1801
- },
1802
- directive(a, p) {
1803
- return p ? (r.directives[a] = p, d) : r.directives[a];
1804
- },
1805
- mount(a, p, S) {
1806
- if (!c) {
1807
- const C = d._ceVNode || it(n, i);
1808
- return C.appContext = r, S === !0 ? S = "svg" : S === !1 && (S = void 0), t(C, a, S), c = !0, d._container = a, a.__vue_app__ = d, ss(C.component);
1809
- }
1810
- },
1811
- onUnmount(a) {
1812
- l.push(a);
1813
- },
1814
- unmount() {
1815
- c && (Tt(
1816
- l,
1817
- d._instance,
1818
- 16
1819
- ), t(null, d._container), delete d._container.__vue_app__);
1820
- },
1821
- provide(a, p) {
1822
- return r.provides[a] = p, d;
1823
- },
1824
- runWithContext(a) {
1825
- const p = se;
1826
- se = d;
1827
- try {
1828
- return a();
1829
- } finally {
1830
- se = p;
1831
- }
1832
- }
1833
- };
1834
- return d;
1835
- };
1836
- }
1837
- let se = null;
1838
- function oo(t, e) {
1839
- if (k) {
1840
- let s = k.provides;
1841
- const n = k.parent && k.parent.provides;
1842
- n === s && (s = k.provides = Object.create(n)), s[t] = e;
1843
- }
1844
- }
1845
- function Ne(t, e, s = !1) {
1846
- const n = es();
1847
- if (n || se) {
1848
- let i = se ? se._context.provides : n ? n.parent == null || n.ce ? n.vnode.appContext && n.vnode.appContext.provides : n.parent.provides : void 0;
1849
- if (i && t in i)
1850
- return i[t];
1851
- if (arguments.length > 1)
1852
- return s && O(e) ? e.call(n && n.proxy) : e;
1853
- }
1854
- }
1855
- const vi = {}, wi = () => Object.create(vi), Si = (t) => Object.getPrototypeOf(t) === vi;
1856
- function lo(t, e, s, n = !1) {
1857
- const i = {}, r = wi();
1858
- t.propsDefaults = /* @__PURE__ */ Object.create(null), Ci(t, e, i, r);
1859
- for (const o in t.propsOptions[0])
1860
- o in i || (i[o] = void 0);
1861
- s ? t.props = n ? i : vr(i) : t.type.props ? t.props = i : t.props = r, t.attrs = r;
1862
- }
1863
- function fo(t, e, s, n) {
1864
- const {
1865
- props: i,
1866
- attrs: r,
1867
- vnode: { patchFlag: o }
1868
- } = t, l = D(i), [c] = t.propsOptions;
1869
- let d = !1;
1870
- if (
1871
- // always force full diff in dev
1872
- // - #1942 if hmr is enabled with sfc component
1873
- // - vite#872 non-sfc component used by sfc component
1874
- (n || o > 0) && !(o & 16)
1875
- ) {
1876
- if (o & 8) {
1877
- const a = t.vnode.dynamicProps;
1878
- for (let p = 0; p < a.length; p++) {
1879
- let S = a[p];
1880
- if (ke(t.emitsOptions, S))
1881
- continue;
1882
- const C = e[S];
1883
- if (c)
1884
- if (N(r, S))
1885
- C !== r[S] && (r[S] = C, d = !0);
1886
- else {
1887
- const F = rt(S);
1888
- i[F] = Es(
1889
- c,
1890
- l,
1891
- F,
1892
- C,
1893
- t,
1894
- !1
1895
- );
1896
- }
1897
- else
1898
- C !== r[S] && (r[S] = C, d = !0);
1899
- }
1900
- }
1901
- } else {
1902
- Ci(t, e, i, r) && (d = !0);
1903
- let a;
1904
- for (const p in l)
1905
- (!e || // for camelCase
1906
- !N(e, p) && // it's possible the original props was passed in as kebab-case
1907
- // and converted to camelCase (#955)
1908
- ((a = at(p)) === p || !N(e, a))) && (c ? s && // for camelCase
1909
- (s[p] !== void 0 || // for kebab-case
1910
- s[a] !== void 0) && (i[p] = Es(
1911
- c,
1912
- l,
1913
- p,
1914
- void 0,
1915
- t,
1916
- !0
1917
- )) : delete i[p]);
1918
- if (r !== l)
1919
- for (const p in r)
1920
- (!e || !N(e, p)) && (delete r[p], d = !0);
1921
- }
1922
- d && Pt(t.attrs, "set", "");
1923
- }
1924
- function Ci(t, e, s, n) {
1925
- const [i, r] = t.propsOptions;
1926
- let o = !1, l;
1927
- if (e)
1928
- for (let c in e) {
1929
- if (ae(c))
1930
- continue;
1931
- const d = e[c];
1932
- let a;
1933
- i && N(i, a = rt(c)) ? !r || !r.includes(a) ? s[a] = d : (l || (l = {}))[a] = d : ke(t.emitsOptions, c) || (!(c in n) || d !== n[c]) && (n[c] = d, o = !0);
1934
- }
1935
- if (r) {
1936
- const c = D(s), d = l || H;
1937
- for (let a = 0; a < r.length; a++) {
1938
- const p = r[a];
1939
- s[p] = Es(
1940
- i,
1941
- c,
1942
- p,
1943
- d[p],
1944
- t,
1945
- !N(d, p)
1946
- );
1947
- }
1948
- }
1949
- return o;
1950
- }
1951
- function Es(t, e, s, n, i, r) {
1952
- const o = t[s];
1953
- if (o != null) {
1954
- const l = N(o, "default");
1955
- if (l && n === void 0) {
1956
- const c = o.default;
1957
- if (o.type !== Function && !o.skipFactory && O(c)) {
1958
- const { propsDefaults: d } = i;
1959
- if (s in d)
1960
- n = d[s];
1961
- else {
1962
- const a = Ce(i);
1963
- n = d[s] = c.call(
1964
- null,
1965
- e
1966
- ), a();
1967
- }
1968
- } else
1969
- n = c;
1970
- i.ce && i.ce._setProp(s, n);
1971
- }
1972
- o[
1973
- 0
1974
- /* shouldCast */
1975
- ] && (r && !l ? n = !1 : o[
1976
- 1
1977
- /* shouldCastTrue */
1978
- ] && (n === "" || n === at(s)) && (n = !0));
1979
- }
1980
- return n;
1981
- }
1982
- const co = /* @__PURE__ */ new WeakMap();
1983
- function Ti(t, e, s = !1) {
1984
- const n = s ? co : e.propsCache, i = n.get(t);
1985
- if (i)
1986
- return i;
1987
- const r = t.props, o = {}, l = [];
1988
- let c = !1;
1989
- if (!O(t)) {
1990
- const a = (p) => {
1991
- c = !0;
1992
- const [S, C] = Ti(p, e, !0);
1993
- Y(o, S), C && l.push(...C);
1994
- };
1995
- !s && e.mixins.length && e.mixins.forEach(a), t.extends && a(t.extends), t.mixins && t.mixins.forEach(a);
1996
- }
1997
- if (!r && !c)
1998
- return U(t) && n.set(t, Zt), Zt;
1999
- if (A(r))
2000
- for (let a = 0; a < r.length; a++) {
2001
- const p = rt(r[a]);
2002
- pn(p) && (o[p] = H);
2003
- }
2004
- else if (r)
2005
- for (const a in r) {
2006
- const p = rt(a);
2007
- if (pn(p)) {
2008
- const S = r[a], C = o[p] = A(S) || O(S) ? { type: S } : Y({}, S), F = C.type;
2009
- let I = !1, Z = !0;
2010
- if (A(F))
2011
- for (let L = 0; L < F.length; ++L) {
2012
- const W = F[L], q = O(W) && W.name;
2013
- if (q === "Boolean") {
2014
- I = !0;
2015
- break;
2016
- } else q === "String" && (Z = !1);
2017
- }
2018
- else
2019
- I = O(F) && F.name === "Boolean";
2020
- C[
2021
- 0
2022
- /* shouldCast */
2023
- ] = I, C[
2024
- 1
2025
- /* shouldCastTrue */
2026
- ] = Z, (I || N(C, "default")) && l.push(p);
2027
- }
2028
- }
2029
- const d = [o, l];
2030
- return U(t) && n.set(t, d), d;
2031
- }
2032
- function pn(t) {
2033
- return t[0] !== "$" && !ae(t);
2034
- }
2035
- const Js = (t) => t === "_" || t === "__" || t === "_ctx" || t === "$stable", Ys = (t) => A(t) ? t.map(St) : [St(t)], uo = (t, e, s) => {
2036
- if (e._n)
2037
- return e;
2038
- const n = Fr((...i) => Ys(e(...i)), s);
2039
- return n._c = !1, n;
2040
- }, Ei = (t, e, s) => {
2041
- const n = t._ctx;
2042
- for (const i in t) {
2043
- if (Js(i)) continue;
2044
- const r = t[i];
2045
- if (O(r))
2046
- e[i] = uo(i, r, n);
2047
- else if (r != null) {
2048
- const o = Ys(r);
2049
- e[i] = () => o;
2050
- }
2051
- }
2052
- }, Ai = (t, e) => {
2053
- const s = Ys(e);
2054
- t.slots.default = () => s;
2055
- }, Pi = (t, e, s) => {
2056
- for (const n in e)
2057
- (s || !Js(n)) && (t[n] = e[n]);
2058
- }, ao = (t, e, s) => {
2059
- const n = t.slots = wi();
2060
- if (t.vnode.shapeFlag & 32) {
2061
- const i = e.__;
2062
- i && ms(n, "__", i, !0);
2063
- const r = e._;
2064
- r ? (Pi(n, e, s), s && ms(n, "_", r, !0)) : Ei(e, n);
2065
- } else e && Ai(t, e);
2066
- }, ho = (t, e, s) => {
2067
- const { vnode: n, slots: i } = t;
2068
- let r = !0, o = H;
2069
- if (n.shapeFlag & 32) {
2070
- const l = e._;
2071
- l ? s && l === 1 ? r = !1 : Pi(i, e, s) : (r = !e.$stable, Ei(e, i)), o = e;
2072
- } else e && (Ai(t, e), o = { default: 1 });
2073
- if (r)
2074
- for (const l in i)
2075
- !Js(l) && o[l] == null && delete i[l];
2076
- }, ut = Ao;
2077
- function po(t) {
2078
- return go(t);
2079
- }
2080
- function go(t, e) {
2081
- const s = Ye();
2082
- s.__VUE__ = !0;
2083
- const {
2084
- insert: n,
2085
- remove: i,
2086
- patchProp: r,
2087
- createElement: o,
2088
- createText: l,
2089
- createComment: c,
2090
- setText: d,
2091
- setElementText: a,
2092
- parentNode: p,
2093
- nextSibling: S,
2094
- setScopeId: C = Ct,
2095
- insertStaticContent: F
2096
- } = t, I = (f, u, h, m = null, g = null, _ = null, v = void 0, x = null, y = !!u.dynamicChildren) => {
2097
- if (f === u)
2098
- return;
2099
- f && !ce(f, u) && (m = Re(f), mt(f, g, _, !0), f = null), u.patchFlag === -2 && (y = !1, u.dynamicChildren = null);
2100
- const { type: b, ref: E, shapeFlag: w } = u;
2101
- switch (b) {
2102
- case ts:
2103
- Z(f, u, h, m);
2104
- break;
2105
- case It:
2106
- L(f, u, h, m);
2107
- break;
2108
- case ds:
2109
- f == null && W(u, h, m, v);
2110
- break;
2111
- case dt:
2112
- Ee(
2113
- f,
2114
- u,
2115
- h,
2116
- m,
2117
- g,
2118
- _,
2119
- v,
2120
- x,
2121
- y
2122
- );
2123
- break;
2124
- default:
2125
- w & 1 ? J(
2126
- f,
2127
- u,
2128
- h,
2129
- m,
2130
- g,
2131
- _,
2132
- v,
2133
- x,
2134
- y
2135
- ) : w & 6 ? Ae(
2136
- f,
2137
- u,
2138
- h,
2139
- m,
2140
- g,
2141
- _,
2142
- v,
2143
- x,
2144
- y
2145
- ) : (w & 64 || w & 128) && b.process(
2146
- f,
2147
- u,
2148
- h,
2149
- m,
2150
- g,
2151
- _,
2152
- v,
2153
- x,
2154
- y,
2155
- oe
2156
- );
2157
- }
2158
- E != null && g ? pe(E, f && f.ref, _, u || f, !u) : E == null && f && f.ref != null && pe(f.ref, null, _, f, !0);
2159
- }, Z = (f, u, h, m) => {
2160
- if (f == null)
2161
- n(
2162
- u.el = l(u.children),
2163
- h,
2164
- m
2165
- );
2166
- else {
2167
- const g = u.el = f.el;
2168
- u.children !== f.children && d(g, u.children);
2169
- }
2170
- }, L = (f, u, h, m) => {
2171
- f == null ? n(
2172
- u.el = c(u.children || ""),
2173
- h,
2174
- m
2175
- ) : u.el = f.el;
2176
- }, W = (f, u, h, m) => {
2177
- [f.el, f.anchor] = F(
2178
- f.children,
2179
- u,
2180
- h,
2181
- m,
2182
- f.el,
2183
- f.anchor
2184
- );
2185
- }, q = ({ el: f, anchor: u }, h, m) => {
2186
- let g;
2187
- for (; f && f !== u; )
2188
- g = S(f), n(f, h, m), f = g;
2189
- n(u, h, m);
2190
- }, P = ({ el: f, anchor: u }) => {
2191
- let h;
2192
- for (; f && f !== u; )
2193
- h = S(f), i(f), f = h;
2194
- i(u);
2195
- }, J = (f, u, h, m, g, _, v, x, y) => {
2196
- u.type === "svg" ? v = "svg" : u.type === "math" && (v = "mathml"), f == null ? Dt(
2197
- u,
2198
- h,
2199
- m,
2200
- g,
2201
- _,
2202
- v,
2203
- x,
2204
- y
2205
- ) : Te(
2206
- f,
2207
- u,
2208
- g,
2209
- _,
2210
- v,
2211
- x,
2212
- y
2213
- );
2214
- }, Dt = (f, u, h, m, g, _, v, x) => {
2215
- let y, b;
2216
- const { props: E, shapeFlag: w, transition: T, dirs: R } = f;
2217
- if (y = f.el = o(
2218
- f.type,
2219
- _,
2220
- E && E.is,
2221
- E
2222
- ), w & 8 ? a(y, f.children) : w & 16 && jt(
2223
- f.children,
2224
- y,
2225
- null,
2226
- m,
2227
- g,
2228
- as(f, _),
2229
- v,
2230
- x
2231
- ), R && Wt(f, null, m, "created"), _t(y, f, f.scopeId, v, m), E) {
2232
- for (const V in E)
2233
- V !== "value" && !ae(V) && r(y, V, null, E[V], _, m);
2234
- "value" in E && r(y, "value", null, E.value, _), (b = E.onVnodeBeforeMount) && vt(b, m, f);
2235
- }
2236
- R && Wt(f, null, m, "beforeMount");
2237
- const M = _o(g, T);
2238
- M && T.beforeEnter(y), n(y, u, h), ((b = E && E.onVnodeMounted) || M || R) && ut(() => {
2239
- b && vt(b, m, f), M && T.enter(y), R && Wt(f, null, m, "mounted");
2240
- }, g);
2241
- }, _t = (f, u, h, m, g) => {
2242
- if (h && C(f, h), m)
2243
- for (let _ = 0; _ < m.length; _++)
2244
- C(f, m[_]);
2245
- if (g) {
2246
- let _ = g.subTree;
2247
- if (u === _ || Fi(_.type) && (_.ssContent === u || _.ssFallback === u)) {
2248
- const v = g.vnode;
2249
- _t(
2250
- f,
2251
- v,
2252
- v.scopeId,
2253
- v.slotScopeIds,
2254
- g.parent
2255
- );
2256
- }
2257
- }
2258
- }, jt = (f, u, h, m, g, _, v, x, y = 0) => {
2259
- for (let b = y; b < f.length; b++) {
2260
- const E = f[b] = x ? Lt(f[b]) : St(f[b]);
2261
- I(
2262
- null,
2263
- E,
2264
- u,
2265
- h,
2266
- m,
2267
- g,
2268
- _,
2269
- v,
2270
- x
2271
- );
2272
- }
2273
- }, Te = (f, u, h, m, g, _, v) => {
2274
- const x = u.el = f.el;
2275
- let { patchFlag: y, dynamicChildren: b, dirs: E } = u;
2276
- y |= f.patchFlag & 16;
2277
- const w = f.props || H, T = u.props || H;
2278
- let R;
2279
- if (h && qt(h, !1), (R = T.onVnodeBeforeUpdate) && vt(R, h, u, f), E && Wt(u, f, h, "beforeUpdate"), h && qt(h, !0), (w.innerHTML && T.innerHTML == null || w.textContent && T.textContent == null) && a(x, ""), b ? Kt(
2280
- f.dynamicChildren,
2281
- b,
2282
- x,
2283
- h,
2284
- m,
2285
- as(u, g),
2286
- _
2287
- ) : v || $(
2288
- f,
2289
- u,
2290
- x,
2291
- null,
2292
- h,
2293
- m,
2294
- as(u, g),
2295
- _,
2296
- !1
2297
- ), y > 0) {
2298
- if (y & 16)
2299
- ie(x, w, T, h, g);
2300
- else if (y & 2 && w.class !== T.class && r(x, "class", null, T.class, g), y & 4 && r(x, "style", w.style, T.style, g), y & 8) {
2301
- const M = u.dynamicProps;
2302
- for (let V = 0; V < M.length; V++) {
2303
- const j = M[V], ot = w[j], lt = T[j];
2304
- (lt !== ot || j === "value") && r(x, j, ot, lt, g, h);
2305
- }
2306
- }
2307
- y & 1 && f.children !== u.children && a(x, u.children);
2308
- } else !v && b == null && ie(x, w, T, h, g);
2309
- ((R = T.onVnodeUpdated) || E) && ut(() => {
2310
- R && vt(R, h, u, f), E && Wt(u, f, h, "updated");
2311
- }, m);
2312
- }, Kt = (f, u, h, m, g, _, v) => {
2313
- for (let x = 0; x < u.length; x++) {
2314
- const y = f[x], b = u[x], E = (
2315
- // oldVNode may be an errored async setup() component inside Suspense
2316
- // which will not have a mounted element
2317
- y.el && // - In the case of a Fragment, we need to provide the actual parent
2318
- // of the Fragment itself so it can move its children.
2319
- (y.type === dt || // - In the case of different nodes, there is going to be a replacement
2320
- // which also requires the correct parent container
2321
- !ce(y, b) || // - In the case of a component, it could contain anything.
2322
- y.shapeFlag & 198) ? p(y.el) : (
2323
- // In other cases, the parent container is not actually used so we
2324
- // just pass the block element here to avoid a DOM parentNode call.
2325
- h
2326
- )
2327
- );
2328
- I(
2329
- y,
2330
- b,
2331
- E,
2332
- null,
2333
- m,
2334
- g,
2335
- _,
2336
- v,
2337
- !0
2338
- );
2339
- }
2340
- }, ie = (f, u, h, m, g) => {
2341
- if (u !== h) {
2342
- if (u !== H)
2343
- for (const _ in u)
2344
- !ae(_) && !(_ in h) && r(
2345
- f,
2346
- _,
2347
- u[_],
2348
- null,
2349
- g,
2350
- m
2351
- );
2352
- for (const _ in h) {
2353
- if (ae(_)) continue;
2354
- const v = h[_], x = u[_];
2355
- v !== x && _ !== "value" && r(f, _, x, v, g, m);
2356
- }
2357
- "value" in h && r(f, "value", u.value, h.value, g);
2358
- }
2359
- }, Ee = (f, u, h, m, g, _, v, x, y) => {
2360
- const b = u.el = f ? f.el : l(""), E = u.anchor = f ? f.anchor : l("");
2361
- let { patchFlag: w, dynamicChildren: T, slotScopeIds: R } = u;
2362
- R && (x = x ? x.concat(R) : R), f == null ? (n(b, h, m), n(E, h, m), jt(
2363
- // #10007
2364
- // such fragment like `<></>` will be compiled into
2365
- // a fragment which doesn't have a children.
2366
- // In this case fallback to an empty array
2367
- u.children || [],
2368
- h,
2369
- E,
2370
- g,
2371
- _,
2372
- v,
2373
- x,
2374
- y
2375
- )) : w > 0 && w & 64 && T && // #2715 the previous fragment could've been a BAILed one as a result
2376
- // of renderSlot() with no valid children
2377
- f.dynamicChildren ? (Kt(
2378
- f.dynamicChildren,
2379
- T,
2380
- h,
2381
- g,
2382
- _,
2383
- v,
2384
- x
2385
- ), // #2080 if the stable fragment has a key, it's a <template v-for> that may
2386
- // get moved around. Make sure all root level vnodes inherit el.
2387
- // #2134 or if it's a component root, it may also get moved around
2388
- // as the component is being moved.
2389
- (u.key != null || g && u === g.subTree) && Ri(
2390
- f,
2391
- u,
2392
- !0
2393
- /* shallow */
2394
- )) : $(
2395
- f,
2396
- u,
2397
- h,
2398
- E,
2399
- g,
2400
- _,
2401
- v,
2402
- x,
2403
- y
2404
- );
2405
- }, Ae = (f, u, h, m, g, _, v, x, y) => {
2406
- u.slotScopeIds = x, f == null ? u.shapeFlag & 512 ? g.ctx.activate(
2407
- u,
2408
- h,
2409
- m,
2410
- v,
2411
- y
2412
- ) : ns(
2413
- u,
2414
- h,
2415
- m,
2416
- g,
2417
- _,
2418
- v,
2419
- y
2420
- ) : Zs(f, u, y);
2421
- }, ns = (f, u, h, m, g, _, v) => {
2422
- const x = f.component = Do(
2423
- f,
2424
- m,
2425
- g
2426
- );
2427
- if (pi(f) && (x.ctx.renderer = oe), jo(x, !1, v), x.asyncDep) {
2428
- if (g && g.registerDep(x, et, v), !f.el) {
2429
- const y = x.subTree = it(It);
2430
- L(null, y, u, h), f.placeholder = y.el;
2431
- }
2432
- } else
2433
- et(
2434
- x,
2435
- f,
2436
- u,
2437
- h,
2438
- g,
2439
- _,
2440
- v
2441
- );
2442
- }, Zs = (f, u, h) => {
2443
- const m = u.component = f.component;
2444
- if (To(f, u, h))
2445
- if (m.asyncDep && !m.asyncResolved) {
2446
- B(m, u, h);
2447
- return;
2448
- } else
2449
- m.next = u, m.update();
2450
- else
2451
- u.el = f.el, m.vnode = u;
2452
- }, et = (f, u, h, m, g, _, v) => {
2453
- const x = () => {
2454
- if (f.isMounted) {
2455
- let { next: w, bu: T, u: R, parent: M, vnode: V } = f;
2456
- {
2457
- const yt = Oi(f);
2458
- if (yt) {
2459
- w && (w.el = V.el, B(f, w, v)), yt.asyncDep.then(() => {
2460
- f.isUnmounted || x();
2461
- });
2462
- return;
2463
- }
2464
- }
2465
- let j = w, ot;
2466
- qt(f, !1), w ? (w.el = V.el, B(f, w, v)) : w = V, T && Fe(T), (ot = w.props && w.props.onVnodeBeforeUpdate) && vt(ot, M, w, V), qt(f, !0);
2467
- const lt = _n(f), bt = f.subTree;
2468
- f.subTree = lt, I(
2469
- bt,
2470
- lt,
2471
- // parent may have changed if it's in a teleport
2472
- p(bt.el),
2473
- // anchor may have changed if it's in a fragment
2474
- Re(bt),
2475
- f,
2476
- g,
2477
- _
2478
- ), w.el = lt.el, j === null && Eo(f, lt.el), R && ut(R, g), (ot = w.props && w.props.onVnodeUpdated) && ut(
2479
- () => vt(ot, M, w, V),
2480
- g
2481
- );
2482
- } else {
2483
- let w;
2484
- const { el: T, props: R } = u, { bm: M, m: V, parent: j, root: ot, type: lt } = f, bt = ee(u);
2485
- qt(f, !1), M && Fe(M), !bt && (w = R && R.onVnodeBeforeMount) && vt(w, j, u), qt(f, !0);
2486
- {
2487
- ot.ce && // @ts-expect-error _def is private
2488
- ot.ce._def.shadowRoot !== !1 && ot.ce._injectChildStyle(lt);
2489
- const yt = f.subTree = _n(f);
2490
- I(
2491
- null,
2492
- yt,
2493
- h,
2494
- m,
2495
- f,
2496
- g,
2497
- _
2498
- ), u.el = yt.el;
2499
- }
2500
- if (V && ut(V, g), !bt && (w = R && R.onVnodeMounted)) {
2501
- const yt = u;
2502
- ut(
2503
- () => vt(w, j, yt),
2504
- g
2505
- );
2506
- }
2507
- (u.shapeFlag & 256 || j && ee(j.vnode) && j.vnode.shapeFlag & 256) && f.a && ut(f.a, g), f.isMounted = !0, u = h = m = null;
2508
- }
2509
- };
2510
- f.scope.on();
2511
- const y = f.effect = new Bn(x);
2512
- f.scope.off();
2513
- const b = f.update = y.run.bind(y), E = f.job = y.runIfDirty.bind(y);
2514
- E.i = f, E.id = f.uid, y.scheduler = () => qs(E), qt(f, !0), b();
2515
- }, B = (f, u, h) => {
2516
- u.component = f;
2517
- const m = f.vnode.props;
2518
- f.vnode = u, f.next = null, fo(f, u.props, m, h), ho(f, u.children, h), Ot(), fn(f), Mt();
2519
- }, $ = (f, u, h, m, g, _, v, x, y = !1) => {
2520
- const b = f && f.children, E = f ? f.shapeFlag : 0, w = u.children, { patchFlag: T, shapeFlag: R } = u;
2521
- if (T > 0) {
2522
- if (T & 128) {
2523
- Pe(
2524
- b,
2525
- w,
2526
- h,
2527
- m,
2528
- g,
2529
- _,
2530
- v,
2531
- x,
2532
- y
2533
- );
2534
- return;
2535
- } else if (T & 256) {
2536
- Ut(
2537
- b,
2538
- w,
2539
- h,
2540
- m,
2541
- g,
2542
- _,
2543
- v,
2544
- x,
2545
- y
2546
- );
2547
- return;
2548
- }
2549
- }
2550
- R & 8 ? (E & 16 && re(b, g, _), w !== b && a(h, w)) : E & 16 ? R & 16 ? Pe(
2551
- b,
2552
- w,
2553
- h,
2554
- m,
2555
- g,
2556
- _,
2557
- v,
2558
- x,
2559
- y
2560
- ) : re(b, g, _, !0) : (E & 8 && a(h, ""), R & 16 && jt(
2561
- w,
2562
- h,
2563
- m,
2564
- g,
2565
- _,
2566
- v,
2567
- x,
2568
- y
2569
- ));
2570
- }, Ut = (f, u, h, m, g, _, v, x, y) => {
2571
- f = f || Zt, u = u || Zt;
2572
- const b = f.length, E = u.length, w = Math.min(b, E);
2573
- let T;
2574
- for (T = 0; T < w; T++) {
2575
- const R = u[T] = y ? Lt(u[T]) : St(u[T]);
2576
- I(
2577
- f[T],
2578
- R,
2579
- h,
2580
- null,
2581
- g,
2582
- _,
2583
- v,
2584
- x,
2585
- y
2586
- );
2587
- }
2588
- b > E ? re(
2589
- f,
2590
- g,
2591
- _,
2592
- !0,
2593
- !1,
2594
- w
2595
- ) : jt(
2596
- u,
2597
- h,
2598
- m,
2599
- g,
2600
- _,
2601
- v,
2602
- x,
2603
- y,
2604
- w
2605
- );
2606
- }, Pe = (f, u, h, m, g, _, v, x, y) => {
2607
- let b = 0;
2608
- const E = u.length;
2609
- let w = f.length - 1, T = E - 1;
2610
- for (; b <= w && b <= T; ) {
2611
- const R = f[b], M = u[b] = y ? Lt(u[b]) : St(u[b]);
2612
- if (ce(R, M))
2613
- I(
2614
- R,
2615
- M,
2616
- h,
2617
- null,
2618
- g,
2619
- _,
2620
- v,
2621
- x,
2622
- y
2623
- );
2624
- else
2625
- break;
2626
- b++;
2627
- }
2628
- for (; b <= w && b <= T; ) {
2629
- const R = f[w], M = u[T] = y ? Lt(u[T]) : St(u[T]);
2630
- if (ce(R, M))
2631
- I(
2632
- R,
2633
- M,
2634
- h,
2635
- null,
2636
- g,
2637
- _,
2638
- v,
2639
- x,
2640
- y
2641
- );
2642
- else
2643
- break;
2644
- w--, T--;
2645
- }
2646
- if (b > w) {
2647
- if (b <= T) {
2648
- const R = T + 1, M = R < E ? u[R].el : m;
2649
- for (; b <= T; )
2650
- I(
2651
- null,
2652
- u[b] = y ? Lt(u[b]) : St(u[b]),
2653
- h,
2654
- M,
2655
- g,
2656
- _,
2657
- v,
2658
- x,
2659
- y
2660
- ), b++;
2661
- }
2662
- } else if (b > T)
2663
- for (; b <= w; )
2664
- mt(f[b], g, _, !0), b++;
2665
- else {
2666
- const R = b, M = b, V = /* @__PURE__ */ new Map();
2667
- for (b = M; b <= T; b++) {
2668
- const ct = u[b] = y ? Lt(u[b]) : St(u[b]);
2669
- ct.key != null && V.set(ct.key, b);
2670
- }
2671
- let j, ot = 0;
2672
- const lt = T - M + 1;
2673
- let bt = !1, yt = 0;
2674
- const le = new Array(lt);
2675
- for (b = 0; b < lt; b++) le[b] = 0;
2676
- for (b = R; b <= w; b++) {
2677
- const ct = f[b];
2678
- if (ot >= lt) {
2679
- mt(ct, g, _, !0);
2680
- continue;
2681
- }
2682
- let xt;
2683
- if (ct.key != null)
2684
- xt = V.get(ct.key);
2685
- else
2686
- for (j = M; j <= T; j++)
2687
- if (le[j - M] === 0 && ce(ct, u[j])) {
2688
- xt = j;
2689
- break;
2690
- }
2691
- xt === void 0 ? mt(ct, g, _, !0) : (le[xt - M] = b + 1, xt >= yt ? yt = xt : bt = !0, I(
2692
- ct,
2693
- u[xt],
2694
- h,
2695
- null,
2696
- g,
2697
- _,
2698
- v,
2699
- x,
2700
- y
2701
- ), ot++);
2702
- }
2703
- const tn = bt ? mo(le) : Zt;
2704
- for (j = tn.length - 1, b = lt - 1; b >= 0; b--) {
2705
- const ct = M + b, xt = u[ct], en = u[ct + 1], sn = ct + 1 < E ? (
2706
- // #13559, fallback to el placeholder for unresolved async component
2707
- en.el || en.placeholder
2708
- ) : m;
2709
- le[b] === 0 ? I(
2710
- null,
2711
- xt,
2712
- h,
2713
- sn,
2714
- g,
2715
- _,
2716
- v,
2717
- x,
2718
- y
2719
- ) : bt && (j < 0 || b !== tn[j] ? Bt(xt, h, sn, 2) : j--);
2720
- }
2721
- }
2722
- }, Bt = (f, u, h, m, g = null) => {
2723
- const { el: _, type: v, transition: x, children: y, shapeFlag: b } = f;
2724
- if (b & 6) {
2725
- Bt(f.component.subTree, u, h, m);
2726
- return;
2727
- }
2728
- if (b & 128) {
2729
- f.suspense.move(u, h, m);
2730
- return;
2731
- }
2732
- if (b & 64) {
2733
- v.move(f, u, h, oe);
2734
- return;
2735
- }
2736
- if (v === dt) {
2737
- n(_, u, h);
2738
- for (let w = 0; w < y.length; w++)
2739
- Bt(y[w], u, h, m);
2740
- n(f.anchor, u, h);
2741
- return;
2742
- }
2743
- if (v === ds) {
2744
- q(f, u, h);
2745
- return;
2746
- }
2747
- if (m !== 2 && b & 1 && x)
2748
- if (m === 0)
2749
- x.beforeEnter(_), n(_, u, h), ut(() => x.enter(_), g);
2750
- else {
2751
- const { leave: w, delayLeave: T, afterLeave: R } = x, M = () => {
2752
- f.ctx.isUnmounted ? i(_) : n(_, u, h);
2753
- }, V = () => {
2754
- w(_, () => {
2755
- M(), R && R();
2756
- });
2757
- };
2758
- T ? T(_, M, V) : V();
2759
- }
2760
- else
2761
- n(_, u, h);
2762
- }, mt = (f, u, h, m = !1, g = !1) => {
2763
- const {
2764
- type: _,
2765
- props: v,
2766
- ref: x,
2767
- children: y,
2768
- dynamicChildren: b,
2769
- shapeFlag: E,
2770
- patchFlag: w,
2771
- dirs: T,
2772
- cacheIndex: R
2773
- } = f;
2774
- if (w === -2 && (g = !1), x != null && (Ot(), pe(x, null, h, f, !0), Mt()), R != null && (u.renderCache[R] = void 0), E & 256) {
2775
- u.ctx.deactivate(f);
2776
- return;
2777
- }
2778
- const M = E & 1 && T, V = !ee(f);
2779
- let j;
2780
- if (V && (j = v && v.onVnodeBeforeUnmount) && vt(j, u, f), E & 6)
2781
- Ui(f.component, h, m);
2782
- else {
2783
- if (E & 128) {
2784
- f.suspense.unmount(h, m);
2785
- return;
2786
- }
2787
- M && Wt(f, null, u, "beforeUnmount"), E & 64 ? f.type.remove(
2788
- f,
2789
- u,
2790
- h,
2791
- oe,
2792
- m
2793
- ) : b && // #5154
2794
- // when v-once is used inside a block, setBlockTracking(-1) marks the
2795
- // parent block with hasOnce: true
2796
- // so that it doesn't take the fast path during unmount - otherwise
2797
- // components nested in v-once are never unmounted.
2798
- !b.hasOnce && // #1153: fast path should not be taken for non-stable (v-for) fragments
2799
- (_ !== dt || w > 0 && w & 64) ? re(
2800
- b,
2801
- u,
2802
- h,
2803
- !1,
2804
- !0
2805
- ) : (_ === dt && w & 384 || !g && E & 16) && re(y, u, h), m && Qs(f);
2806
- }
2807
- (V && (j = v && v.onVnodeUnmounted) || M) && ut(() => {
2808
- j && vt(j, u, f), M && Wt(f, null, u, "unmounted");
2809
- }, h);
2810
- }, Qs = (f) => {
2811
- const { type: u, el: h, anchor: m, transition: g } = f;
2812
- if (u === dt) {
2813
- Ki(h, m);
2814
- return;
2815
- }
2816
- if (u === ds) {
2817
- P(f);
2818
- return;
2819
- }
2820
- const _ = () => {
2821
- i(h), g && !g.persisted && g.afterLeave && g.afterLeave();
2822
- };
2823
- if (f.shapeFlag & 1 && g && !g.persisted) {
2824
- const { leave: v, delayLeave: x } = g, y = () => v(h, _);
2825
- x ? x(f.el, _, y) : y();
2826
- } else
2827
- _();
2828
- }, Ki = (f, u) => {
2829
- let h;
2830
- for (; f !== u; )
2831
- h = S(f), i(f), f = h;
2832
- i(u);
2833
- }, Ui = (f, u, h) => {
2834
- const {
2835
- bum: m,
2836
- scope: g,
2837
- job: _,
2838
- subTree: v,
2839
- um: x,
2840
- m: y,
2841
- a: b,
2842
- parent: E,
2843
- slots: { __: w }
2844
- } = f;
2845
- gn(y), gn(b), m && Fe(m), E && A(w) && w.forEach((T) => {
2846
- E.renderCache[T] = void 0;
2847
- }), g.stop(), _ && (_.flags |= 8, mt(v, f, u, h)), x && ut(x, u), ut(() => {
2848
- f.isUnmounted = !0;
2849
- }, u), u && u.pendingBranch && !u.isUnmounted && f.asyncDep && !f.asyncResolved && f.suspenseId === u.pendingId && (u.deps--, u.deps === 0 && u.resolve());
2850
- }, re = (f, u, h, m = !1, g = !1, _ = 0) => {
2851
- for (let v = _; v < f.length; v++)
2852
- mt(f[v], u, h, m, g);
2853
- }, Re = (f) => {
2854
- if (f.shapeFlag & 6)
2855
- return Re(f.component.subTree);
2856
- if (f.shapeFlag & 128)
2857
- return f.suspense.next();
2858
- const u = S(f.anchor || f.el), h = u && u[Nr];
2859
- return h ? S(h) : u;
2860
- };
2861
- let is = !1;
2862
- const ks = (f, u, h) => {
2863
- f == null ? u._vnode && mt(u._vnode, null, null, !0) : I(
2864
- u._vnode || null,
2865
- f,
2866
- u,
2867
- null,
2868
- null,
2869
- null,
2870
- h
2871
- ), u._vnode = f, is || (is = !0, fn(), ui(), is = !1);
2872
- }, oe = {
2873
- p: I,
2874
- um: mt,
2875
- m: Bt,
2876
- r: Qs,
2877
- mt: ns,
2878
- mc: jt,
2879
- pc: $,
2880
- pbc: Kt,
2881
- n: Re,
2882
- o: t
2883
- };
2884
- return {
2885
- render: ks,
2886
- hydrate: void 0,
2887
- createApp: ro(ks)
2888
- };
2889
- }
2890
- function as({ type: t, props: e }, s) {
2891
- return s === "svg" && t === "foreignObject" || s === "mathml" && t === "annotation-xml" && e && e.encoding && e.encoding.includes("html") ? void 0 : s;
2892
- }
2893
- function qt({ effect: t, job: e }, s) {
2894
- s ? (t.flags |= 32, e.flags |= 4) : (t.flags &= -33, e.flags &= -5);
2895
- }
2896
- function _o(t, e) {
2897
- return (!t || t && !t.pendingBranch) && e && !e.persisted;
2898
- }
2899
- function Ri(t, e, s = !1) {
2900
- const n = t.children, i = e.children;
2901
- if (A(n) && A(i))
2902
- for (let r = 0; r < n.length; r++) {
2903
- const o = n[r];
2904
- let l = i[r];
2905
- l.shapeFlag & 1 && !l.dynamicChildren && ((l.patchFlag <= 0 || l.patchFlag === 32) && (l = i[r] = Lt(i[r]), l.el = o.el), !s && l.patchFlag !== -2 && Ri(o, l)), l.type === ts && (l.el = o.el), l.type === It && !l.el && (l.el = o.el);
2906
- }
2907
- }
2908
- function mo(t) {
2909
- const e = t.slice(), s = [0];
2910
- let n, i, r, o, l;
2911
- const c = t.length;
2912
- for (n = 0; n < c; n++) {
2913
- const d = t[n];
2914
- if (d !== 0) {
2915
- if (i = s[s.length - 1], t[i] < d) {
2916
- e[n] = i, s.push(n);
2917
- continue;
2918
- }
2919
- for (r = 0, o = s.length - 1; r < o; )
2920
- l = r + o >> 1, t[s[l]] < d ? r = l + 1 : o = l;
2921
- d < t[s[r]] && (r > 0 && (e[n] = s[r - 1]), s[r] = n);
2922
- }
2923
- }
2924
- for (r = s.length, o = s[r - 1]; r-- > 0; )
2925
- s[r] = o, o = e[o];
2926
- return s;
2927
- }
2928
- function Oi(t) {
2929
- const e = t.subTree.component;
2930
- if (e)
2931
- return e.asyncDep && !e.asyncResolved ? e : Oi(e);
2932
- }
2933
- function gn(t) {
2934
- if (t)
2935
- for (let e = 0; e < t.length; e++)
2936
- t[e].flags |= 8;
2937
- }
2938
- const bo = Symbol.for("v-scx"), yo = () => Ne(bo);
2939
- function Al(t, e) {
2940
- return Qe(t, null, e);
2941
- }
2942
- function Pl(t, e) {
2943
- return Qe(
2944
- t,
2945
- null,
2946
- { flush: "post" }
2947
- );
2948
- }
2949
- function hs(t, e, s) {
2950
- return Qe(t, e, s);
2951
- }
2952
- function Qe(t, e, s = H) {
2953
- const { immediate: n, deep: i, flush: r, once: o } = s, l = Y({}, s), c = e && n || !e && r !== "post";
2954
- let d;
2955
- if (we) {
2956
- if (r === "sync") {
2957
- const C = yo();
2958
- d = C.__watcherHandles || (C.__watcherHandles = []);
2959
- } else if (!c) {
2960
- const C = () => {
2961
- };
2962
- return C.stop = Ct, C.resume = Ct, C.pause = Ct, C;
2963
- }
2964
- }
2965
- const a = k;
2966
- l.call = (C, F, I) => Tt(C, a, F, I);
2967
- let p = !1;
2968
- r === "post" ? l.scheduler = (C) => {
2969
- ut(C, a && a.suspense);
2970
- } : r !== "sync" && (p = !0, l.scheduler = (C, F) => {
2971
- F ? C() : qs(C);
2972
- }), l.augmentJob = (C) => {
2973
- e && (C.flags |= 4), p && (C.flags |= 2, a && (C.id = a.uid, C.i = a));
2974
- };
2975
- const S = Rr(t, e, l);
2976
- return we && (d ? d.push(S) : c && S()), S;
2977
- }
2978
- function xo(t, e, s) {
2979
- const n = this.proxy, i = G(t) ? t.includes(".") ? Mi(n, t) : () => n[t] : t.bind(n, n);
2980
- let r;
2981
- O(e) ? r = e : (r = e.handler, s = e);
2982
- const o = Ce(this), l = Qe(i, r.bind(n), s);
2983
- return o(), l;
2984
- }
2985
- function Mi(t, e) {
2986
- const s = e.split(".");
2987
- return () => {
2988
- let n = t;
2989
- for (let i = 0; i < s.length && n; i++)
2990
- n = n[s[i]];
2991
- return n;
2992
- };
2993
- }
2994
- const vo = (t, e) => e === "modelValue" || e === "model-value" ? t.modelModifiers : t[`${e}Modifiers`] || t[`${rt(e)}Modifiers`] || t[`${at(e)}Modifiers`];
2995
- function wo(t, e, ...s) {
2996
- if (t.isUnmounted) return;
2997
- const n = t.vnode.props || H;
2998
- let i = s;
2999
- const r = e.startsWith("update:"), o = r && vo(n, e.slice(7));
3000
- o && (o.trim && (i = s.map((a) => G(a) ? a.trim() : a)), o.number && (i = s.map(bs)));
3001
- let l, c = n[l = rs(e)] || // also try camelCase event handler (#2249)
3002
- n[l = rs(rt(e))];
3003
- !c && r && (c = n[l = rs(at(e))]), c && Tt(
3004
- c,
3005
- t,
3006
- 6,
3007
- i
3008
- );
3009
- const d = n[l + "Once"];
3010
- if (d) {
3011
- if (!t.emitted)
3012
- t.emitted = {};
3013
- else if (t.emitted[l])
3014
- return;
3015
- t.emitted[l] = !0, Tt(
3016
- d,
3017
- t,
3018
- 6,
3019
- i
3020
- );
3021
- }
3022
- }
3023
- function Ii(t, e, s = !1) {
3024
- const n = e.emitsCache, i = n.get(t);
3025
- if (i !== void 0)
3026
- return i;
3027
- const r = t.emits;
3028
- let o = {}, l = !1;
3029
- if (!O(t)) {
3030
- const c = (d) => {
3031
- const a = Ii(d, e, !0);
3032
- a && (l = !0, Y(o, a));
3033
- };
3034
- !s && e.mixins.length && e.mixins.forEach(c), t.extends && c(t.extends), t.mixins && t.mixins.forEach(c);
3035
- }
3036
- return !r && !l ? (U(t) && n.set(t, null), null) : (A(r) ? r.forEach((c) => o[c] = null) : Y(o, r), U(t) && n.set(t, o), o);
3037
- }
3038
- function ke(t, e) {
3039
- return !t || !Be(e) ? !1 : (e = e.slice(2).replace(/Once$/, ""), N(t, e[0].toLowerCase() + e.slice(1)) || N(t, at(e)) || N(t, e));
3040
- }
3041
- function _n(t) {
3042
- const {
3043
- type: e,
3044
- vnode: s,
3045
- proxy: n,
3046
- withProxy: i,
3047
- propsOptions: [r],
3048
- slots: o,
3049
- attrs: l,
3050
- emit: c,
3051
- render: d,
3052
- renderCache: a,
3053
- props: p,
3054
- data: S,
3055
- setupState: C,
3056
- ctx: F,
3057
- inheritAttrs: I
3058
- } = t, Z = Ve(t);
3059
- let L, W;
3060
- try {
3061
- if (s.shapeFlag & 4) {
3062
- const P = i || n, J = P;
3063
- L = St(
3064
- d.call(
3065
- J,
3066
- P,
3067
- a,
3068
- p,
3069
- C,
3070
- S,
3071
- F
3072
- )
3073
- ), W = l;
3074
- } else {
3075
- const P = e;
3076
- L = St(
3077
- P.length > 1 ? P(
3078
- p,
3079
- { attrs: l, slots: o, emit: c }
3080
- ) : P(
3081
- p,
3082
- null
3083
- )
3084
- ), W = e.props ? l : So(l);
3085
- }
3086
- } catch (P) {
3087
- _e.length = 0, Xe(P, t, 1), L = it(It);
3088
- }
3089
- let q = L;
3090
- if (W && I !== !1) {
3091
- const P = Object.keys(W), { shapeFlag: J } = q;
3092
- P.length && J & 7 && (r && P.some(Is) && (W = Co(
3093
- W,
3094
- r
3095
- )), q = ne(q, W, !1, !0));
3096
- }
3097
- return s.dirs && (q = ne(q, null, !1, !0), q.dirs = q.dirs ? q.dirs.concat(s.dirs) : s.dirs), s.transition && Gs(q, s.transition), L = q, Ve(Z), L;
3098
- }
3099
- const So = (t) => {
3100
- let e;
3101
- for (const s in t)
3102
- (s === "class" || s === "style" || Be(s)) && ((e || (e = {}))[s] = t[s]);
3103
- return e;
3104
- }, Co = (t, e) => {
3105
- const s = {};
3106
- for (const n in t)
3107
- (!Is(n) || !(n.slice(9) in e)) && (s[n] = t[n]);
3108
- return s;
3109
- };
3110
- function To(t, e, s) {
3111
- const { props: n, children: i, component: r } = t, { props: o, children: l, patchFlag: c } = e, d = r.emitsOptions;
3112
- if (e.dirs || e.transition)
3113
- return !0;
3114
- if (s && c >= 0) {
3115
- if (c & 1024)
3116
- return !0;
3117
- if (c & 16)
3118
- return n ? mn(n, o, d) : !!o;
3119
- if (c & 8) {
3120
- const a = e.dynamicProps;
3121
- for (let p = 0; p < a.length; p++) {
3122
- const S = a[p];
3123
- if (o[S] !== n[S] && !ke(d, S))
3124
- return !0;
3125
- }
3126
- }
3127
- } else
3128
- return (i || l) && (!l || !l.$stable) ? !0 : n === o ? !1 : n ? o ? mn(n, o, d) : !0 : !!o;
3129
- return !1;
3130
- }
3131
- function mn(t, e, s) {
3132
- const n = Object.keys(e);
3133
- if (n.length !== Object.keys(t).length)
3134
- return !0;
3135
- for (let i = 0; i < n.length; i++) {
3136
- const r = n[i];
3137
- if (e[r] !== t[r] && !ke(s, r))
3138
- return !0;
3139
- }
3140
- return !1;
3141
- }
3142
- function Eo({ vnode: t, parent: e }, s) {
3143
- for (; e; ) {
3144
- const n = e.subTree;
3145
- if (n.suspense && n.suspense.activeBranch === t && (n.el = t.el), n === t)
3146
- (t = e.vnode).el = s, e = e.parent;
3147
- else
3148
- break;
3149
- }
3150
- }
3151
- const Fi = (t) => t.__isSuspense;
3152
- function Ao(t, e) {
3153
- e && e.pendingBranch ? A(t) ? e.effects.push(...t) : e.effects.push(t) : Ir(t);
3154
- }
3155
- const dt = Symbol.for("v-fgt"), ts = Symbol.for("v-txt"), It = Symbol.for("v-cmt"), ds = Symbol.for("v-stc"), _e = [];
3156
- let ht = null;
3157
- function As(t = !1) {
3158
- _e.push(ht = t ? null : []);
3159
- }
3160
- function Po() {
3161
- _e.pop(), ht = _e[_e.length - 1] || null;
3162
- }
3163
- let xe = 1;
3164
- function bn(t, e = !1) {
3165
- xe += t, t < 0 && ht && e && (ht.hasOnce = !0);
3166
- }
3167
- function Ni(t) {
3168
- return t.dynamicChildren = xe > 0 ? ht || Zt : null, Po(), xe > 0 && ht && ht.push(t), t;
3169
- }
3170
- function Rl(t, e, s, n, i, r) {
3171
- return Ni(
3172
- ji(
3173
- t,
3174
- e,
3175
- s,
3176
- n,
3177
- i,
3178
- r,
3179
- !0
3180
- )
3181
- );
3182
- }
3183
- function Ps(t, e, s, n, i) {
3184
- return Ni(
3185
- it(
3186
- t,
3187
- e,
3188
- s,
3189
- n,
3190
- i,
3191
- !0
3192
- )
3193
- );
3194
- }
3195
- function ve(t) {
3196
- return t ? t.__v_isVNode === !0 : !1;
3197
- }
3198
- function ce(t, e) {
3199
- return t.type === e.type && t.key === e.key;
3200
- }
3201
- const Di = ({ key: t }) => t ?? null, De = ({
3202
- ref: t,
3203
- ref_key: e,
3204
- ref_for: s
3205
- }) => (typeof t == "number" && (t = "" + t), t != null ? G(t) || tt(t) || O(t) ? { i: X, r: t, k: e, f: !!s } : t : null);
3206
- function ji(t, e = null, s = null, n = 0, i = null, r = t === dt ? 0 : 1, o = !1, l = !1) {
3207
- const c = {
3208
- __v_isVNode: !0,
3209
- __v_skip: !0,
3210
- type: t,
3211
- props: e,
3212
- key: e && Di(e),
3213
- ref: e && De(e),
3214
- scopeId: hi,
3215
- slotScopeIds: null,
3216
- children: s,
3217
- component: null,
3218
- suspense: null,
3219
- ssContent: null,
3220
- ssFallback: null,
3221
- dirs: null,
3222
- transition: null,
3223
- el: null,
3224
- anchor: null,
3225
- target: null,
3226
- targetStart: null,
3227
- targetAnchor: null,
3228
- staticCount: 0,
3229
- shapeFlag: r,
3230
- patchFlag: n,
3231
- dynamicProps: i,
3232
- dynamicChildren: null,
3233
- appContext: null,
3234
- ctx: X
3235
- };
3236
- return l ? (zs(c, s), r & 128 && t.normalize(c)) : s && (c.shapeFlag |= G(s) ? 8 : 16), xe > 0 && // avoid a block node from tracking itself
3237
- !o && // has current parent block
3238
- ht && // presence of a patch flag indicates this node needs patching on updates.
3239
- // component nodes also should always be patched, because even if the
3240
- // component doesn't need to update, it needs to persist the instance on to
3241
- // the next vnode so that it can be properly unmounted later.
3242
- (c.patchFlag > 0 || r & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
3243
- // vnode should not be considered dynamic due to handler caching.
3244
- c.patchFlag !== 32 && ht.push(c), c;
3245
- }
3246
- const it = Ro;
3247
- function Ro(t, e = null, s = null, n = 0, i = null, r = !1) {
3248
- if ((!t || t === Xr) && (t = It), ve(t)) {
3249
- const l = ne(
3250
- t,
3251
- e,
3252
- !0
3253
- /* mergeRef: true */
3254
- );
3255
- return s && zs(l, s), xe > 0 && !r && ht && (l.shapeFlag & 6 ? ht[ht.indexOf(t)] = l : ht.push(l)), l.patchFlag = -2, l;
3256
- }
3257
- if (Ko(t) && (t = t.__vccOpts), e) {
3258
- e = Oo(e);
3259
- let { class: l, style: c } = e;
3260
- l && !G(l) && (e.class = js(l)), U(c) && (Ws(c) && !A(c) && (c = Y({}, c)), e.style = Ds(c));
3261
- }
3262
- const o = G(t) ? 1 : Fi(t) ? 128 : Dr(t) ? 64 : U(t) ? 4 : O(t) ? 2 : 0;
3263
- return ji(
3264
- t,
3265
- e,
3266
- s,
3267
- n,
3268
- i,
3269
- o,
3270
- r,
3271
- !0
3272
- );
3273
- }
3274
- function Oo(t) {
3275
- return t ? Ws(t) || Si(t) ? Y({}, t) : t : null;
3276
- }
3277
- function ne(t, e, s = !1, n = !1) {
3278
- const { props: i, ref: r, patchFlag: o, children: l, transition: c } = t, d = e ? Io(i || {}, e) : i, a = {
3279
- __v_isVNode: !0,
3280
- __v_skip: !0,
3281
- type: t.type,
3282
- props: d,
3283
- key: d && Di(d),
3284
- ref: e && e.ref ? (
3285
- // #2078 in the case of <component :is="vnode" ref="extra"/>
3286
- // if the vnode itself already has a ref, cloneVNode will need to merge
3287
- // the refs so the single vnode can be set on multiple refs
3288
- s && r ? A(r) ? r.concat(De(e)) : [r, De(e)] : De(e)
3289
- ) : r,
3290
- scopeId: t.scopeId,
3291
- slotScopeIds: t.slotScopeIds,
3292
- children: l,
3293
- target: t.target,
3294
- targetStart: t.targetStart,
3295
- targetAnchor: t.targetAnchor,
3296
- staticCount: t.staticCount,
3297
- shapeFlag: t.shapeFlag,
3298
- // if the vnode is cloned with extra props, we can no longer assume its
3299
- // existing patch flag to be reliable and need to add the FULL_PROPS flag.
3300
- // note: preserve flag for fragments since they use the flag for children
3301
- // fast paths only.
3302
- patchFlag: e && t.type !== dt ? o === -1 ? 16 : o | 16 : o,
3303
- dynamicProps: t.dynamicProps,
3304
- dynamicChildren: t.dynamicChildren,
3305
- appContext: t.appContext,
3306
- dirs: t.dirs,
3307
- transition: c,
3308
- // These should technically only be non-null on mounted VNodes. However,
3309
- // they *should* be copied for kept-alive vnodes. So we just always copy
3310
- // them since them being non-null during a mount doesn't affect the logic as
3311
- // they will simply be overwritten.
3312
- component: t.component,
3313
- suspense: t.suspense,
3314
- ssContent: t.ssContent && ne(t.ssContent),
3315
- ssFallback: t.ssFallback && ne(t.ssFallback),
3316
- placeholder: t.placeholder,
3317
- el: t.el,
3318
- anchor: t.anchor,
3319
- ctx: t.ctx,
3320
- ce: t.ce
3321
- };
3322
- return c && n && Gs(
3323
- a,
3324
- c.clone(a)
3325
- ), a;
3326
- }
3327
- function Mo(t = " ", e = 0) {
3328
- return it(ts, null, t, e);
3329
- }
3330
- function Ol(t = "", e = !1) {
3331
- return e ? (As(), Ps(It, null, t)) : it(It, null, t);
3332
- }
3333
- function St(t) {
3334
- return t == null || typeof t == "boolean" ? it(It) : A(t) ? it(
3335
- dt,
3336
- null,
3337
- // #3666, avoid reference pollution when reusing vnode
3338
- t.slice()
3339
- ) : ve(t) ? Lt(t) : it(ts, null, String(t));
3340
- }
3341
- function Lt(t) {
3342
- return t.el === null && t.patchFlag !== -1 || t.memo ? t : ne(t);
3343
- }
3344
- function zs(t, e) {
3345
- let s = 0;
3346
- const { shapeFlag: n } = t;
3347
- if (e == null)
3348
- e = null;
3349
- else if (A(e))
3350
- s = 16;
3351
- else if (typeof e == "object")
3352
- if (n & 65) {
3353
- const i = e.default;
3354
- i && (i._c && (i._d = !1), zs(t, i()), i._c && (i._d = !0));
3355
- return;
3356
- } else {
3357
- s = 32;
3358
- const i = e._;
3359
- !i && !Si(e) ? e._ctx = X : i === 3 && X && (X.slots._ === 1 ? e._ = 1 : (e._ = 2, t.patchFlag |= 1024));
3360
- }
3361
- else O(e) ? (e = { default: e, _ctx: X }, s = 32) : (e = String(e), n & 64 ? (s = 16, e = [Mo(e)]) : s = 8);
3362
- t.children = e, t.shapeFlag |= s;
3363
- }
3364
- function Io(...t) {
3365
- const e = {};
3366
- for (let s = 0; s < t.length; s++) {
3367
- const n = t[s];
3368
- for (const i in n)
3369
- if (i === "class")
3370
- e.class !== n.class && (e.class = js([e.class, n.class]));
3371
- else if (i === "style")
3372
- e.style = Ds([e.style, n.style]);
3373
- else if (Be(i)) {
3374
- const r = e[i], o = n[i];
3375
- o && r !== o && !(A(r) && r.includes(o)) && (e[i] = r ? [].concat(r, o) : o);
3376
- } else i !== "" && (e[i] = n[i]);
3377
- }
3378
- return e;
3379
- }
3380
- function vt(t, e, s, n = null) {
3381
- Tt(t, e, 7, [
3382
- s,
3383
- n
3384
- ]);
3385
- }
3386
- const Fo = xi();
3387
- let No = 0;
3388
- function Do(t, e, s) {
3389
- const n = t.type, i = (e ? e.appContext : t.appContext) || Fo, r = {
3390
- uid: No++,
3391
- vnode: t,
3392
- type: n,
3393
- parent: e,
3394
- appContext: i,
3395
- root: null,
3396
- // to be immediately set
3397
- next: null,
3398
- subTree: null,
3399
- // will be set synchronously right after creation
3400
- effect: null,
3401
- update: null,
3402
- // will be set synchronously right after creation
3403
- job: null,
3404
- scope: new er(
3405
- !0
3406
- /* detached */
3407
- ),
3408
- render: null,
3409
- proxy: null,
3410
- exposed: null,
3411
- exposeProxy: null,
3412
- withProxy: null,
3413
- provides: e ? e.provides : Object.create(i.provides),
3414
- ids: e ? e.ids : ["", 0, 0],
3415
- accessCache: null,
3416
- renderCache: [],
3417
- // local resolved assets
3418
- components: null,
3419
- directives: null,
3420
- // resolved props and emits options
3421
- propsOptions: Ti(n, i),
3422
- emitsOptions: Ii(n, i),
3423
- // emit
3424
- emit: null,
3425
- // to be set immediately
3426
- emitted: null,
3427
- // props default value
3428
- propsDefaults: H,
3429
- // inheritAttrs
3430
- inheritAttrs: n.inheritAttrs,
3431
- // state
3432
- ctx: H,
3433
- data: H,
3434
- props: H,
3435
- attrs: H,
3436
- slots: H,
3437
- refs: H,
3438
- setupState: H,
3439
- setupContext: null,
3440
- // suspense related
3441
- suspense: s,
3442
- suspenseId: s ? s.pendingId : 0,
3443
- asyncDep: null,
3444
- asyncResolved: !1,
3445
- // lifecycle hooks
3446
- // not using enums here because it results in computed properties
3447
- isMounted: !1,
3448
- isUnmounted: !1,
3449
- isDeactivated: !1,
3450
- bc: null,
3451
- c: null,
3452
- bm: null,
3453
- m: null,
3454
- bu: null,
3455
- u: null,
3456
- um: null,
3457
- bum: null,
3458
- da: null,
3459
- a: null,
3460
- rtg: null,
3461
- rtc: null,
3462
- ec: null,
3463
- sp: null
3464
- };
3465
- return r.ctx = { _: r }, r.root = e ? e.root : r, r.emit = wo.bind(null, r), t.ce && t.ce(r), r;
3466
- }
3467
- let k = null;
3468
- const es = () => k || X;
3469
- let Ue, Rs;
3470
- {
3471
- const t = Ye(), e = (s, n) => {
3472
- let i;
3473
- return (i = t[s]) || (i = t[s] = []), i.push(n), (r) => {
3474
- i.length > 1 ? i.forEach((o) => o(r)) : i[0](r);
3475
- };
3476
- };
3477
- Ue = e(
3478
- "__VUE_INSTANCE_SETTERS__",
3479
- (s) => k = s
3480
- ), Rs = e(
3481
- "__VUE_SSR_SETTERS__",
3482
- (s) => we = s
3483
- );
3484
- }
3485
- const Ce = (t) => {
3486
- const e = k;
3487
- return Ue(t), t.scope.on(), () => {
3488
- t.scope.off(), Ue(e);
3489
- };
3490
- }, yn = () => {
3491
- k && k.scope.off(), Ue(null);
3492
- };
3493
- function Hi(t) {
3494
- return t.vnode.shapeFlag & 4;
3495
- }
3496
- let we = !1;
3497
- function jo(t, e = !1, s = !1) {
3498
- e && Rs(e);
3499
- const { props: n, children: i } = t.vnode, r = Hi(t);
3500
- lo(t, n, r, e), ao(t, i, s || e);
3501
- const o = r ? Ho(t, e) : void 0;
3502
- return e && Rs(!1), o;
3503
- }
3504
- function Ho(t, e) {
3505
- const s = t.type;
3506
- t.accessCache = /* @__PURE__ */ Object.create(null), t.proxy = new Proxy(t.ctx, Qr);
3507
- const { setup: n } = s;
3508
- if (n) {
3509
- Ot();
3510
- const i = t.setupContext = n.length > 1 ? $o(t) : null, r = Ce(t), o = Se(
3511
- n,
3512
- t,
3513
- 0,
3514
- [
3515
- t.props,
3516
- i
3517
- ]
3518
- ), l = Ln(o);
3519
- if (Mt(), r(), (l || t.sp) && !ee(t) && di(t), l) {
3520
- if (o.then(yn, yn), e)
3521
- return o.then((c) => {
3522
- xn(t, c);
3523
- }).catch((c) => {
3524
- Xe(c, t, 0);
3525
- });
3526
- t.asyncDep = o;
3527
- } else
3528
- xn(t, o);
3529
- } else
3530
- Li(t);
3531
- }
3532
- function xn(t, e, s) {
3533
- O(e) ? t.type.__ssrInlineRender ? t.ssrRender = e : t.render = e : U(e) && (t.setupState = oi(e)), Li(t);
3534
- }
3535
- function Li(t, e, s) {
3536
- const n = t.type;
3537
- t.render || (t.render = n.render || Ct);
3538
- {
3539
- const i = Ce(t);
3540
- Ot();
3541
- try {
3542
- kr(t);
3543
- } finally {
3544
- Mt(), i();
3545
- }
3546
- }
3547
- }
3548
- const Lo = {
3549
- get(t, e) {
3550
- return Q(t, "get", ""), t[e];
3551
- }
3552
- };
3553
- function $o(t) {
3554
- const e = (s) => {
3555
- t.exposed = s || {};
3556
- };
3557
- return {
3558
- attrs: new Proxy(t.attrs, Lo),
3559
- slots: t.slots,
3560
- emit: t.emit,
3561
- expose: e
3562
- };
3563
- }
3564
- function ss(t) {
3565
- return t.exposed ? t.exposeProxy || (t.exposeProxy = new Proxy(oi(wr(t.exposed)), {
3566
- get(e, s) {
3567
- if (s in e)
3568
- return e[s];
3569
- if (s in ge)
3570
- return ge[s](t);
3571
- },
3572
- has(e, s) {
3573
- return s in e || s in ge;
3574
- }
3575
- })) : t.proxy;
3576
- }
3577
- function Vo(t, e = !0) {
3578
- return O(t) ? t.displayName || t.name : t.name || e && t.__name;
3579
- }
3580
- function Ko(t) {
3581
- return O(t) && "__vccOpts" in t;
3582
- }
3583
- const Uo = (t, e) => Ar(t, e, we);
3584
- function Ml(t, e, s) {
3585
- const n = arguments.length;
3586
- return n === 2 ? U(e) && !A(e) ? ve(e) ? it(t, null, [e]) : it(t, e) : it(t, null, e) : (n > 3 ? s = Array.prototype.slice.call(arguments, 2) : n === 3 && ve(s) && (s = [s]), it(t, e, s));
3587
- }
3588
- const Bo = "3.5.18";
3589
- /**
3590
- * @vue/runtime-dom v3.5.18
3591
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
3592
- * @license MIT
3593
- **/
3594
- let Os;
3595
- const vn = typeof window < "u" && window.trustedTypes;
3596
- if (vn)
3597
- try {
3598
- Os = /* @__PURE__ */ vn.createPolicy("vue", {
3599
- createHTML: (t) => t
3600
- });
3601
- } catch {
3602
- }
3603
- const $i = Os ? (t) => Os.createHTML(t) : (t) => t, Wo = "http://www.w3.org/2000/svg", qo = "http://www.w3.org/1998/Math/MathML", At = typeof document < "u" ? document : null, wn = At && /* @__PURE__ */ At.createElement("template"), Go = {
3604
- insert: (t, e, s) => {
3605
- e.insertBefore(t, s || null);
3606
- },
3607
- remove: (t) => {
3608
- const e = t.parentNode;
3609
- e && e.removeChild(t);
3610
- },
3611
- createElement: (t, e, s, n) => {
3612
- const i = e === "svg" ? At.createElementNS(Wo, t) : e === "mathml" ? At.createElementNS(qo, t) : s ? At.createElement(t, { is: s }) : At.createElement(t);
3613
- return t === "select" && n && n.multiple != null && i.setAttribute("multiple", n.multiple), i;
3614
- },
3615
- createText: (t) => At.createTextNode(t),
3616
- createComment: (t) => At.createComment(t),
3617
- setText: (t, e) => {
3618
- t.nodeValue = e;
3619
- },
3620
- setElementText: (t, e) => {
3621
- t.textContent = e;
3622
- },
3623
- parentNode: (t) => t.parentNode,
3624
- nextSibling: (t) => t.nextSibling,
3625
- querySelector: (t) => At.querySelector(t),
3626
- setScopeId(t, e) {
3627
- t.setAttribute(e, "");
3628
- },
3629
- // __UNSAFE__
3630
- // Reason: innerHTML.
3631
- // Static content here can only come from compiled templates.
3632
- // As long as the user only uses trusted templates, this is safe.
3633
- insertStaticContent(t, e, s, n, i, r) {
3634
- const o = s ? s.previousSibling : e.lastChild;
3635
- if (i && (i === r || i.nextSibling))
3636
- for (; e.insertBefore(i.cloneNode(!0), s), !(i === r || !(i = i.nextSibling)); )
3637
- ;
3638
- else {
3639
- wn.innerHTML = $i(
3640
- n === "svg" ? `<svg>${t}</svg>` : n === "mathml" ? `<math>${t}</math>` : t
3641
- );
3642
- const l = wn.content;
3643
- if (n === "svg" || n === "mathml") {
3644
- const c = l.firstChild;
3645
- for (; c.firstChild; )
3646
- l.appendChild(c.firstChild);
3647
- l.removeChild(c);
3648
- }
3649
- e.insertBefore(l, s);
3650
- }
3651
- return [
3652
- // first
3653
- o ? o.nextSibling : e.firstChild,
3654
- // last
3655
- s ? s.previousSibling : e.lastChild
3656
- ];
3657
- }
3658
- }, Jo = Symbol("_vtc");
3659
- function Yo(t, e, s) {
3660
- const n = t[Jo];
3661
- n && (e = (e ? [e, ...n] : [...n]).join(" ")), e == null ? t.removeAttribute("class") : s ? t.setAttribute("class", e) : t.className = e;
3662
- }
3663
- const Sn = Symbol("_vod"), zo = Symbol("_vsh"), Xo = Symbol(""), Zo = /(^|;)\s*display\s*:/;
3664
- function Qo(t, e, s) {
3665
- const n = t.style, i = G(s);
3666
- let r = !1;
3667
- if (s && !i) {
3668
- if (e)
3669
- if (G(e))
3670
- for (const o of e.split(";")) {
3671
- const l = o.slice(0, o.indexOf(":")).trim();
3672
- s[l] == null && je(n, l, "");
3673
- }
3674
- else
3675
- for (const o in e)
3676
- s[o] == null && je(n, o, "");
3677
- for (const o in s)
3678
- o === "display" && (r = !0), je(n, o, s[o]);
3679
- } else if (i) {
3680
- if (e !== s) {
3681
- const o = n[Xo];
3682
- o && (s += ";" + o), n.cssText = s, r = Zo.test(s);
3683
- }
3684
- } else e && t.removeAttribute("style");
3685
- Sn in t && (t[Sn] = r ? n.display : "", t[zo] && (n.display = "none"));
3686
- }
3687
- const Cn = /\s*!important$/;
3688
- function je(t, e, s) {
3689
- if (A(s))
3690
- s.forEach((n) => je(t, e, n));
3691
- else if (s == null && (s = ""), e.startsWith("--"))
3692
- t.setProperty(e, s);
3693
- else {
3694
- const n = ko(t, e);
3695
- Cn.test(s) ? t.setProperty(
3696
- at(n),
3697
- s.replace(Cn, ""),
3698
- "important"
3699
- ) : t[n] = s;
3700
- }
3701
- }
3702
- const Tn = ["Webkit", "Moz", "ms"], ps = {};
3703
- function ko(t, e) {
3704
- const s = ps[e];
3705
- if (s)
3706
- return s;
3707
- let n = rt(e);
3708
- if (n !== "filter" && n in t)
3709
- return ps[e] = n;
3710
- n = Je(n);
3711
- for (let i = 0; i < Tn.length; i++) {
3712
- const r = Tn[i] + n;
3713
- if (r in t)
3714
- return ps[e] = r;
3715
- }
3716
- return e;
3717
- }
3718
- const En = "http://www.w3.org/1999/xlink";
3719
- function An(t, e, s, n, i, r = ki(e)) {
3720
- n && e.startsWith("xlink:") ? s == null ? t.removeAttributeNS(En, e.slice(6, e.length)) : t.setAttributeNS(En, e, s) : s == null || r && !Vn(s) ? t.removeAttribute(e) : t.setAttribute(
3721
- e,
3722
- r ? "" : Ft(s) ? String(s) : s
3723
- );
3724
- }
3725
- function Pn(t, e, s, n, i) {
3726
- if (e === "innerHTML" || e === "textContent") {
3727
- s != null && (t[e] = e === "innerHTML" ? $i(s) : s);
3728
- return;
3729
- }
3730
- const r = t.tagName;
3731
- if (e === "value" && r !== "PROGRESS" && // custom elements may use _value internally
3732
- !r.includes("-")) {
3733
- const l = r === "OPTION" ? t.getAttribute("value") || "" : t.value, c = s == null ? (
3734
- // #11647: value should be set as empty string for null and undefined,
3735
- // but <input type="checkbox"> should be set as 'on'.
3736
- t.type === "checkbox" ? "on" : ""
3737
- ) : String(s);
3738
- (l !== c || !("_value" in t)) && (t.value = c), s == null && t.removeAttribute(e), t._value = s;
3739
- return;
3740
- }
3741
- let o = !1;
3742
- if (s === "" || s == null) {
3743
- const l = typeof t[e];
3744
- l === "boolean" ? s = Vn(s) : s == null && l === "string" ? (s = "", o = !0) : l === "number" && (s = 0, o = !0);
3745
- }
3746
- try {
3747
- t[e] = s;
3748
- } catch {
3749
- }
3750
- o && t.removeAttribute(i || e);
3751
- }
3752
- function Xt(t, e, s, n) {
3753
- t.addEventListener(e, s, n);
3754
- }
3755
- function tl(t, e, s, n) {
3756
- t.removeEventListener(e, s, n);
3757
- }
3758
- const Rn = Symbol("_vei");
3759
- function el(t, e, s, n, i = null) {
3760
- const r = t[Rn] || (t[Rn] = {}), o = r[e];
3761
- if (n && o)
3762
- o.value = n;
3763
- else {
3764
- const [l, c] = sl(e);
3765
- if (n) {
3766
- const d = r[e] = rl(
3767
- n,
3768
- i
3769
- );
3770
- Xt(t, l, d, c);
3771
- } else o && (tl(t, l, o, c), r[e] = void 0);
3772
- }
3773
- }
3774
- const On = /(?:Once|Passive|Capture)$/;
3775
- function sl(t) {
3776
- let e;
3777
- if (On.test(t)) {
3778
- e = {};
3779
- let n;
3780
- for (; n = t.match(On); )
3781
- t = t.slice(0, t.length - n[0].length), e[n[0].toLowerCase()] = !0;
3782
- }
3783
- return [t[2] === ":" ? t.slice(3) : at(t.slice(2)), e];
3784
- }
3785
- let gs = 0;
3786
- const nl = /* @__PURE__ */ Promise.resolve(), il = () => gs || (nl.then(() => gs = 0), gs = Date.now());
3787
- function rl(t, e) {
3788
- const s = (n) => {
3789
- if (!n._vts)
3790
- n._vts = Date.now();
3791
- else if (n._vts <= s.attached)
3792
- return;
3793
- Tt(
3794
- ol(n, s.value),
3795
- e,
3796
- 5,
3797
- [n]
3798
- );
3799
- };
3800
- return s.value = t, s.attached = il(), s;
3801
- }
3802
- function ol(t, e) {
3803
- if (A(e)) {
3804
- const s = t.stopImmediatePropagation;
3805
- return t.stopImmediatePropagation = () => {
3806
- s.call(t), t._stopped = !0;
3807
- }, e.map(
3808
- (n) => (i) => !i._stopped && n && n(i)
3809
- );
3810
- } else
3811
- return e;
3812
- }
3813
- const Mn = (t) => t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && // lowercase letter
3814
- t.charCodeAt(2) > 96 && t.charCodeAt(2) < 123, ll = (t, e, s, n, i, r) => {
3815
- const o = i === "svg";
3816
- e === "class" ? Yo(t, n, o) : e === "style" ? Qo(t, s, n) : Be(e) ? Is(e) || el(t, e, s, n, r) : (e[0] === "." ? (e = e.slice(1), !0) : e[0] === "^" ? (e = e.slice(1), !1) : fl(t, e, n, o)) ? (Pn(t, e, n), !t.tagName.includes("-") && (e === "value" || e === "checked" || e === "selected") && An(t, e, n, o, r, e !== "value")) : /* #11081 force set props for possible async custom element */ t._isVueCE && (/[A-Z]/.test(e) || !G(n)) ? Pn(t, rt(e), n, r, e) : (e === "true-value" ? t._trueValue = n : e === "false-value" && (t._falseValue = n), An(t, e, n, o));
3817
- };
3818
- function fl(t, e, s, n) {
3819
- if (n)
3820
- return !!(e === "innerHTML" || e === "textContent" || e in t && Mn(e) && O(s));
3821
- if (e === "spellcheck" || e === "draggable" || e === "translate" || e === "autocorrect" || e === "form" || e === "list" && t.tagName === "INPUT" || e === "type" && t.tagName === "TEXTAREA")
3822
- return !1;
3823
- if (e === "width" || e === "height") {
3824
- const i = t.tagName;
3825
- if (i === "IMG" || i === "VIDEO" || i === "CANVAS" || i === "SOURCE")
3826
- return !1;
3827
- }
3828
- return Mn(e) && G(s) ? !1 : e in t;
3829
- }
3830
- const In = {};
3831
- /*! #__NO_SIDE_EFFECTS__ */
3832
- // @__NO_SIDE_EFFECTS__
3833
- function Il(t, e, s) {
3834
- const n = /* @__PURE__ */ jr(t, e);
3835
- qe(n) && Y(n, e);
3836
- class i extends Xs {
3837
- constructor(o) {
3838
- super(n, o, s);
3839
- }
3840
- }
3841
- return i.def = n, i;
3842
- }
3843
- const cl = typeof HTMLElement < "u" ? HTMLElement : class {
3844
- };
3845
- class Xs extends cl {
3846
- constructor(e, s = {}, n = jn) {
3847
- super(), this._def = e, this._props = s, this._createApp = n, this._isVueCE = !0, this._instance = null, this._app = null, this._nonce = this._def.nonce, this._connected = !1, this._resolved = !1, this._numberProps = null, this._styleChildren = /* @__PURE__ */ new WeakSet(), this._ob = null, this.shadowRoot && n !== jn ? this._root = this.shadowRoot : e.shadowRoot !== !1 ? (this.attachShadow({ mode: "open" }), this._root = this.shadowRoot) : this._root = this;
3848
- }
3849
- connectedCallback() {
3850
- if (!this.isConnected) return;
3851
- !this.shadowRoot && !this._resolved && this._parseSlots(), this._connected = !0;
3852
- let e = this;
3853
- for (; e = e && (e.parentNode || e.host); )
3854
- if (e instanceof Xs) {
3855
- this._parent = e;
3856
- break;
3857
- }
3858
- this._instance || (this._resolved ? this._mount(this._def) : e && e._pendingResolve ? this._pendingResolve = e._pendingResolve.then(() => {
3859
- this._pendingResolve = void 0, this._resolveDef();
3860
- }) : this._resolveDef());
3861
- }
3862
- _setParent(e = this._parent) {
3863
- e && (this._instance.parent = e._instance, this._inheritParentContext(e));
3864
- }
3865
- _inheritParentContext(e = this._parent) {
3866
- e && this._app && Object.setPrototypeOf(
3867
- this._app._context.provides,
3868
- e._instance.provides
3869
- );
3870
- }
3871
- disconnectedCallback() {
3872
- this._connected = !1, fi(() => {
3873
- this._connected || (this._ob && (this._ob.disconnect(), this._ob = null), this._app && this._app.unmount(), this._instance && (this._instance.ce = void 0), this._app = this._instance = null);
3874
- });
3875
- }
3876
- /**
3877
- * resolve inner component definition (handle possible async component)
3878
- */
3879
- _resolveDef() {
3880
- if (this._pendingResolve)
3881
- return;
3882
- for (let n = 0; n < this.attributes.length; n++)
3883
- this._setAttr(this.attributes[n].name);
3884
- this._ob = new MutationObserver((n) => {
3885
- for (const i of n)
3886
- this._setAttr(i.attributeName);
3887
- }), this._ob.observe(this, { attributes: !0 });
3888
- const e = (n, i = !1) => {
3889
- this._resolved = !0, this._pendingResolve = void 0;
3890
- const { props: r, styles: o } = n;
3891
- let l;
3892
- if (r && !A(r))
3893
- for (const c in r) {
3894
- const d = r[c];
3895
- (d === Number || d && d.type === Number) && (c in this._props && (this._props[c] = nn(this._props[c])), (l || (l = /* @__PURE__ */ Object.create(null)))[rt(c)] = !0);
3896
- }
3897
- this._numberProps = l, this._resolveProps(n), this.shadowRoot && this._applyStyles(o), this._mount(n);
3898
- }, s = this._def.__asyncLoader;
3899
- s ? this._pendingResolve = s().then((n) => {
3900
- n.configureApp = this._def.configureApp, e(this._def = n, !0);
3901
- }) : e(this._def);
3902
- }
3903
- _mount(e) {
3904
- this._app = this._createApp(e), this._inheritParentContext(), e.configureApp && e.configureApp(this._app), this._app._ceVNode = this._createVNode(), this._app.mount(this._root);
3905
- const s = this._instance && this._instance.exposed;
3906
- if (s)
3907
- for (const n in s)
3908
- N(this, n) || Object.defineProperty(this, n, {
3909
- // unwrap ref to be consistent with public instance behavior
3910
- get: () => ri(s[n])
3911
- });
3912
- }
3913
- _resolveProps(e) {
3914
- const { props: s } = e, n = A(s) ? s : Object.keys(s || {});
3915
- for (const i of Object.keys(this))
3916
- i[0] !== "_" && n.includes(i) && this._setProp(i, this[i]);
3917
- for (const i of n.map(rt))
3918
- Object.defineProperty(this, i, {
3919
- get() {
3920
- return this._getProp(i);
3921
- },
3922
- set(r) {
3923
- this._setProp(i, r, !0, !0);
3924
- }
3925
- });
3926
- }
3927
- _setAttr(e) {
3928
- if (e.startsWith("data-v-")) return;
3929
- const s = this.hasAttribute(e);
3930
- let n = s ? this.getAttribute(e) : In;
3931
- const i = rt(e);
3932
- s && this._numberProps && this._numberProps[i] && (n = nn(n)), this._setProp(i, n, !1, !0);
3933
- }
3934
- /**
3935
- * @internal
3936
- */
3937
- _getProp(e) {
3938
- return this._props[e];
3939
- }
3940
- /**
3941
- * @internal
3942
- */
3943
- _setProp(e, s, n = !0, i = !1) {
3944
- if (s !== this._props[e] && (s === In ? delete this._props[e] : (this._props[e] = s, e === "key" && this._app && (this._app._ceVNode.key = s)), i && this._instance && this._update(), n)) {
3945
- const r = this._ob;
3946
- r && r.disconnect(), s === !0 ? this.setAttribute(at(e), "") : typeof s == "string" || typeof s == "number" ? this.setAttribute(at(e), s + "") : s || this.removeAttribute(at(e)), r && r.observe(this, { attributes: !0 });
3947
- }
3948
- }
3949
- _update() {
3950
- const e = this._createVNode();
3951
- this._app && (e.appContext = this._app._context), _l(e, this._root);
3952
- }
3953
- _createVNode() {
3954
- const e = {};
3955
- this.shadowRoot || (e.onVnodeMounted = e.onVnodeUpdated = this._renderSlots.bind(this));
3956
- const s = it(this._def, Y(e, this._props));
3957
- return this._instance || (s.ce = (n) => {
3958
- this._instance = n, n.ce = this, n.isCE = !0;
3959
- const i = (r, o) => {
3960
- this.dispatchEvent(
3961
- new CustomEvent(
3962
- r,
3963
- qe(o[0]) ? Y({ detail: o }, o[0]) : { detail: o }
3964
- )
3965
- );
3966
- };
3967
- n.emit = (r, ...o) => {
3968
- i(r, o), at(r) !== r && i(at(r), o);
3969
- }, this._setParent();
3970
- }), s;
3971
- }
3972
- _applyStyles(e, s) {
3973
- if (!e) return;
3974
- if (s) {
3975
- if (s === this._def || this._styleChildren.has(s))
3976
- return;
3977
- this._styleChildren.add(s);
3978
- }
3979
- const n = this._nonce;
3980
- for (let i = e.length - 1; i >= 0; i--) {
3981
- const r = document.createElement("style");
3982
- n && r.setAttribute("nonce", n), r.textContent = e[i], this.shadowRoot.prepend(r);
3983
- }
3984
- }
3985
- /**
3986
- * Only called when shadowRoot is false
3987
- */
3988
- _parseSlots() {
3989
- const e = this._slots = {};
3990
- let s;
3991
- for (; s = this.firstChild; ) {
3992
- const n = s.nodeType === 1 && s.getAttribute("slot") || "default";
3993
- (e[n] || (e[n] = [])).push(s), this.removeChild(s);
3994
- }
3995
- }
3996
- /**
3997
- * Only called when shadowRoot is false
3998
- */
3999
- _renderSlots() {
4000
- const e = (this._teleportTarget || this).querySelectorAll("slot"), s = this._instance.type.__scopeId;
4001
- for (let n = 0; n < e.length; n++) {
4002
- const i = e[n], r = i.getAttribute("name") || "default", o = this._slots[r], l = i.parentNode;
4003
- if (o)
4004
- for (const c of o) {
4005
- if (s && c.nodeType === 1) {
4006
- const d = s + "-s", a = document.createTreeWalker(c, 1);
4007
- c.setAttribute(d, "");
4008
- let p;
4009
- for (; p = a.nextNode(); )
4010
- p.setAttribute(d, "");
4011
- }
4012
- l.insertBefore(c, i);
4013
- }
4014
- else
4015
- for (; i.firstChild; ) l.insertBefore(i.firstChild, i);
4016
- l.removeChild(i);
4017
- }
4018
- }
4019
- /**
4020
- * @internal
4021
- */
4022
- _injectChildStyle(e) {
4023
- this._applyStyles(e.styles, e);
4024
- }
4025
- /**
4026
- * @internal
4027
- */
4028
- _removeChildStyle(e) {
4029
- }
4030
- }
4031
- function ul(t) {
4032
- const e = es(), s = e && e.ce;
4033
- return s || null;
4034
- }
4035
- function Fl() {
4036
- const t = ul();
4037
- return t && t.shadowRoot;
4038
- }
4039
- const Fn = (t) => {
4040
- const e = t.props["onUpdate:modelValue"] || !1;
4041
- return A(e) ? (s) => Fe(e, s) : e;
4042
- };
4043
- function al(t) {
4044
- t.target.composing = !0;
4045
- }
4046
- function Nn(t) {
4047
- const e = t.target;
4048
- e.composing && (e.composing = !1, e.dispatchEvent(new Event("input")));
4049
- }
4050
- const _s = Symbol("_assign"), Nl = {
4051
- created(t, { modifiers: { lazy: e, trim: s, number: n } }, i) {
4052
- t[_s] = Fn(i);
4053
- const r = n || i.props && i.props.type === "number";
4054
- Xt(t, e ? "change" : "input", (o) => {
4055
- if (o.target.composing) return;
4056
- let l = t.value;
4057
- s && (l = l.trim()), r && (l = bs(l)), t[_s](l);
4058
- }), s && Xt(t, "change", () => {
4059
- t.value = t.value.trim();
4060
- }), e || (Xt(t, "compositionstart", al), Xt(t, "compositionend", Nn), Xt(t, "change", Nn));
4061
- },
4062
- // set value on mounted so it's after min/max for type="range"
4063
- mounted(t, { value: e }) {
4064
- t.value = e ?? "";
4065
- },
4066
- beforeUpdate(t, { value: e, oldValue: s, modifiers: { lazy: n, trim: i, number: r } }, o) {
4067
- if (t[_s] = Fn(o), t.composing) return;
4068
- const l = (r || t.type === "number") && !/^0\d/.test(t.value) ? bs(t.value) : t.value, c = e ?? "";
4069
- l !== c && (document.activeElement === t && t.type !== "range" && (n && e === s || i && t.value.trim() === c) || (t.value = c));
4070
- }
4071
- }, hl = ["ctrl", "shift", "alt", "meta"], dl = {
4072
- stop: (t) => t.stopPropagation(),
4073
- prevent: (t) => t.preventDefault(),
4074
- self: (t) => t.target !== t.currentTarget,
4075
- ctrl: (t) => !t.ctrlKey,
4076
- shift: (t) => !t.shiftKey,
4077
- alt: (t) => !t.altKey,
4078
- meta: (t) => !t.metaKey,
4079
- left: (t) => "button" in t && t.button !== 0,
4080
- middle: (t) => "button" in t && t.button !== 1,
4081
- right: (t) => "button" in t && t.button !== 2,
4082
- exact: (t, e) => hl.some((s) => t[`${s}Key`] && !e.includes(s))
4083
- }, Dl = (t, e) => {
4084
- const s = t._withMods || (t._withMods = {}), n = e.join(".");
4085
- return s[n] || (s[n] = (i, ...r) => {
4086
- for (let o = 0; o < e.length; o++) {
4087
- const l = dl[e[o]];
4088
- if (l && l(i, e)) return;
4089
- }
4090
- return t(i, ...r);
4091
- });
4092
- }, pl = {
4093
- esc: "escape",
4094
- space: " ",
4095
- up: "arrow-up",
4096
- left: "arrow-left",
4097
- right: "arrow-right",
4098
- down: "arrow-down",
4099
- delete: "backspace"
4100
- }, jl = (t, e) => {
4101
- const s = t._withKeys || (t._withKeys = {}), n = e.join(".");
4102
- return s[n] || (s[n] = (i) => {
4103
- if (!("key" in i))
4104
- return;
4105
- const r = at(i.key);
4106
- if (e.some(
4107
- (o) => o === r || pl[o] === r
4108
- ))
4109
- return t(i);
4110
- });
4111
- }, gl = /* @__PURE__ */ Y({ patchProp: ll }, Go);
4112
- let Dn;
4113
- function Vi() {
4114
- return Dn || (Dn = po(gl));
4115
- }
4116
- const _l = (...t) => {
4117
- Vi().render(...t);
4118
- }, jn = (...t) => {
4119
- const e = Vi().createApp(...t), { mount: s } = e;
4120
- return e.mount = (n) => {
4121
- const i = bl(n);
4122
- if (!i) return;
4123
- const r = e._component;
4124
- !O(r) && !r.render && !r.template && (r.template = i.innerHTML), i.nodeType === 1 && (i.textContent = "");
4125
- const o = s(i, !1, ml(i));
4126
- return i instanceof Element && (i.removeAttribute("v-cloak"), i.setAttribute("data-v-app", "")), o;
4127
- }, e;
4128
- };
4129
- function ml(t) {
4130
- if (t instanceof SVGElement)
4131
- return "svg";
4132
- if (typeof MathMLElement == "function" && t instanceof MathMLElement)
4133
- return "mathml";
4134
- }
4135
- function bl(t) {
4136
- return G(t) ? document.querySelector(t) : t;
4137
- }
4138
- const Hl = (t, e) => {
4139
- const s = t.__vccOpts || t;
4140
- for (const [n, i] of e)
4141
- s[n] = i;
4142
- return s;
4143
- };
4144
- export {
4145
- vl as A,
4146
- Nl as B,
4147
- Fr as C,
4148
- Ml as D,
4149
- Fl as E,
4150
- dt as F,
4151
- Ne as G,
4152
- oo as H,
4153
- Sr as I,
4154
- fi as J,
4155
- El as K,
4156
- Ds as L,
4157
- Hl as _,
4158
- jr as a,
4159
- Tl as b,
4160
- Rl as c,
4161
- Il as d,
4162
- Ps as e,
4163
- ji as f,
4164
- it as g,
4165
- Cl as h,
4166
- Mo as i,
4167
- Pl as j,
4168
- wl as k,
4169
- jl as l,
4170
- Io as m,
4171
- Dl as n,
4172
- As as o,
4173
- ri as p,
4174
- js as q,
4175
- xl as r,
4176
- Uo as s,
4177
- tr as t,
4178
- ul as u,
4179
- hs as v,
4180
- Al as w,
4181
- Sl as x,
4182
- Kr as y,
4183
- Ol as z
4184
- };