@1024pix/epreuves-components 1.0.2 → 1.2.0

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