@inpageedit/core 0.9.3 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +62 -55
  3. package/dist/ActionButton-BgbTKTg7.js.map +1 -1
  4. package/dist/CheckBox-D3rHnX7I.js.map +1 -1
  5. package/dist/IconQuickEdit-CAL1HXIb.js.map +1 -1
  6. package/dist/InputBox-BV4m05Xs.js.map +1 -1
  7. package/dist/PluginPrefSync-PIoKRRu2.js +254 -0
  8. package/dist/PluginPrefSync-PIoKRRu2.js.map +1 -0
  9. package/dist/Preferences-DS4-CFWe.js.map +1 -1
  10. package/dist/RadioBox-nJqWsxW2.js.map +1 -1
  11. package/dist/__test__/utils/constants.d.ts +3 -2
  12. package/dist/components/index.js.map +1 -1
  13. package/dist/constants/endpoints.d.ts +1 -1
  14. package/dist/{index-D968kDLW.js → index-B5vDBMEh.js} +44 -38
  15. package/dist/index-B5vDBMEh.js.map +1 -0
  16. package/dist/{index-DRaYlg2d.js → index-BP-e8PeH.js} +2 -2
  17. package/dist/{index-DRaYlg2d.js.map → index-BP-e8PeH.js.map} +1 -1
  18. package/dist/{index-D8zKl2eU.js → index-BVkdBJNf.js} +6 -2
  19. package/dist/index-BVkdBJNf.js.map +1 -0
  20. package/dist/index-Bh70Udzi.js.map +1 -1
  21. package/dist/{index-BJ2aqva1.js → index-BjwVNZ_h.js} +46 -35
  22. package/dist/index-BjwVNZ_h.js.map +1 -0
  23. package/dist/{index-CMuITxgX.js → index-BzCqww16.js} +22 -21
  24. package/dist/index-BzCqww16.js.map +1 -0
  25. package/dist/index-CFb1PSJg.js +185 -0
  26. package/dist/index-CFb1PSJg.js.map +1 -0
  27. package/dist/index-CvhkVj_L.js.map +1 -1
  28. package/dist/{index-CNsfHvio.js → index-D7NpqwUe.js} +148 -110
  29. package/dist/index-D7NpqwUe.js.map +1 -0
  30. package/dist/{index-BKxuoVoX.js → index-DFPN4uYd.js} +771 -683
  31. package/dist/index-DFPN4uYd.js.map +1 -0
  32. package/dist/index-DGOY4X1J.js +4912 -0
  33. package/dist/{index-DtLiqtR8.js.map → index-DGOY4X1J.js.map} +1 -1
  34. package/dist/{index-CiceXP5j.js → index-DKDtc9IF.js} +42 -42
  35. package/dist/index-DKDtc9IF.js.map +1 -0
  36. package/dist/index-DkQLtTG0.js +211 -0
  37. package/dist/index-DkQLtTG0.js.map +1 -0
  38. package/dist/index-lZkYoUca.js.map +1 -1
  39. package/dist/index.js +1 -1
  40. package/dist/makeCallable-LDU0xZMJ.js.map +1 -1
  41. package/dist/models/WikiTitle/index.d.ts +2 -2
  42. package/dist/noop-ClDc6zv4.js.map +1 -1
  43. package/dist/plugins/analytics/index.d.ts +41 -0
  44. package/dist/plugins/in-article-links/index.d.ts +14 -0
  45. package/dist/plugins/preferences-ui/PluginPrefSync.d.ts +27 -0
  46. package/dist/plugins/preferences-ui/index.d.ts +7 -1
  47. package/dist/plugins/quick-delete/index.d.ts +3 -0
  48. package/dist/plugins/quick-diff/index.d.ts +17 -0
  49. package/dist/plugins/quick-edit/index.d.ts +8 -0
  50. package/dist/plugins/quick-move/index.d.ts +16 -0
  51. package/dist/plugins/quick-redirect/index.d.ts +15 -0
  52. package/dist/plugins/toolbox/index.d.ts +9 -0
  53. package/dist/services/PreferencesService.d.ts +14 -0
  54. package/dist/services/WikiMetadataService.d.ts +23 -23
  55. package/dist/services/storage/IPEStorageManager.d.ts +25 -0
  56. package/dist/services/storage/index.d.ts +3 -26
  57. package/dist/style.css +1 -1
  58. package/dist/types/WikiMetadata.d.ts +6 -8
  59. package/lib/index.umd.js +27 -20
  60. package/lib/index.umd.js.map +1 -1
  61. package/lib/style.css +1 -1
  62. package/package.json +2 -1
  63. package/dist/index-BJ2aqva1.js.map +0 -1
  64. package/dist/index-BKxuoVoX.js.map +0 -1
  65. package/dist/index-CA_JNRF8.js +0 -193
  66. package/dist/index-CA_JNRF8.js.map +0 -1
  67. package/dist/index-CMuITxgX.js.map +0 -1
  68. package/dist/index-CNsfHvio.js.map +0 -1
  69. package/dist/index-CiceXP5j.js.map +0 -1
  70. package/dist/index-D8zKl2eU.js.map +0 -1
  71. package/dist/index-D968kDLW.js.map +0 -1
  72. package/dist/index-DtLiqtR8.js +0 -4853
  73. package/dist/services/storage/IDBStorage.d.ts +0 -90
@@ -0,0 +1,4912 @@
1
+ import { j as J, P as Lr, F as Dr } from "./index-CvhkVj_L.js";
2
+ import { B as jr, S as An, I as Hr } from "./index-DFPN4uYd.js";
3
+ import { A as Ur } from "./ActionButton-BgbTKTg7.js";
4
+ /**
5
+ * @vue/shared v3.5.22
6
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
7
+ * @license MIT
8
+ **/
9
+ // @__NO_SIDE_EFFECTS__
10
+ function Ys(e) {
11
+ const t = /* @__PURE__ */ Object.create(null);
12
+ for (const s of e.split(",")) t[s] = 1;
13
+ return (s) => s in t;
14
+ }
15
+ const k = {}, ft = [], Pe = () => {
16
+ }, li = () => !1, as = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
17
+ (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), Xs = (e) => e.startsWith("onUpdate:"), se = Object.assign, Qs = (e, t) => {
18
+ const s = e.indexOf(t);
19
+ s > -1 && e.splice(s, 1);
20
+ }, kr = Object.prototype.hasOwnProperty, B = (e, t) => kr.call(e, t), O = Array.isArray, dt = (e) => us(e) === "[object Map]", ci = (e) => us(e) === "[object Set]", F = (e) => typeof e == "function", Z = (e) => typeof e == "string", Je = (e) => typeof e == "symbol", G = (e) => e !== null && typeof e == "object", ai = (e) => (G(e) || F(e)) && F(e.then) && F(e.catch), ui = Object.prototype.toString, us = (e) => ui.call(e), Vr = (e) => us(e).slice(8, -1), fi = (e) => us(e) === "[object Object]", Zs = (e) => Z(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, $t = /* @__PURE__ */ Ys(
21
+ // the leading comma is intentional so empty string "" is also included
22
+ ",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
23
+ ), fs = (e) => {
24
+ const t = /* @__PURE__ */ Object.create(null);
25
+ return (s) => t[s] || (t[s] = e(s));
26
+ }, Br = /-\w/g, De = fs(
27
+ (e) => e.replace(Br, (t) => t.slice(1).toUpperCase())
28
+ ), Wr = /\B([A-Z])/g, Ge = fs(
29
+ (e) => e.replace(Wr, "-$1").toLowerCase()
30
+ ), di = fs((e) => e.charAt(0).toUpperCase() + e.slice(1)), Es = fs(
31
+ (e) => e ? `on${di(e)}` : ""
32
+ ), fe = (e, t) => !Object.is(e, t), Ss = (e, ...t) => {
33
+ for (let s = 0; s < e.length; s++)
34
+ e[s](...t);
35
+ }, hi = (e, t, s, n = !1) => {
36
+ Object.defineProperty(e, t, {
37
+ configurable: !0,
38
+ enumerable: !1,
39
+ writable: n,
40
+ value: s
41
+ });
42
+ }, Kr = (e) => {
43
+ const t = parseFloat(e);
44
+ return isNaN(t) ? e : t;
45
+ };
46
+ let Pn;
47
+ const ds = () => Pn || (Pn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
48
+ function en(e) {
49
+ if (O(e)) {
50
+ const t = {};
51
+ for (let s = 0; s < e.length; s++) {
52
+ const n = e[s], i = Z(n) ? Gr(n) : en(n);
53
+ if (i)
54
+ for (const r in i)
55
+ t[r] = i[r];
56
+ }
57
+ return t;
58
+ } else if (Z(e) || G(e))
59
+ return e;
60
+ }
61
+ const qr = /;(?![^(]*\))/g, zr = /:([^]+)/, Jr = /\/\*[^]*?\*\//g;
62
+ function Gr(e) {
63
+ const t = {};
64
+ return e.replace(Jr, "").split(qr).forEach((s) => {
65
+ if (s) {
66
+ const n = s.split(zr);
67
+ n.length > 1 && (t[n[0].trim()] = n[1].trim());
68
+ }
69
+ }), t;
70
+ }
71
+ function hs(e) {
72
+ let t = "";
73
+ if (Z(e))
74
+ t = e;
75
+ else if (O(e))
76
+ for (let s = 0; s < e.length; s++) {
77
+ const n = hs(e[s]);
78
+ n && (t += n + " ");
79
+ }
80
+ else if (G(e))
81
+ for (const s in e)
82
+ e[s] && (t += s + " ");
83
+ return t.trim();
84
+ }
85
+ const Yr = "itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly", Xr = /* @__PURE__ */ Ys(Yr);
86
+ function pi(e) {
87
+ return !!e || e === "";
88
+ }
89
+ const mi = (e) => !!(e && e.__v_isRef === !0), Ns = (e) => Z(e) ? e : e == null ? "" : O(e) || G(e) && (e.toString === ui || !F(e.toString)) ? mi(e) ? Ns(e.value) : JSON.stringify(e, gi, 2) : String(e), gi = (e, t) => mi(t) ? gi(e, t.value) : dt(t) ? {
90
+ [`Map(${t.size})`]: [...t.entries()].reduce(
91
+ (s, [n, i], r) => (s[ws(n, r) + " =>"] = i, s),
92
+ {}
93
+ )
94
+ } : ci(t) ? {
95
+ [`Set(${t.size})`]: [...t.values()].map((s) => ws(s))
96
+ } : Je(t) ? ws(t) : G(t) && !O(t) && !fi(t) ? String(t) : t, ws = (e, t = "") => {
97
+ var s;
98
+ return (
99
+ // Symbol.description in es2019+ so we need to cast here to pass
100
+ // the lib: es2016 check
101
+ Je(e) ? `Symbol(${(s = e.description) != null ? s : t})` : e
102
+ );
103
+ };
104
+ /**
105
+ * @vue/reactivity v3.5.22
106
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
107
+ * @license MIT
108
+ **/
109
+ let ue;
110
+ class Qr {
111
+ constructor(t = !1) {
112
+ this.detached = t, this._active = !0, this._on = 0, this.effects = [], this.cleanups = [], this._isPaused = !1, this.parent = ue, !t && ue && (this.index = (ue.scopes || (ue.scopes = [])).push(
113
+ this
114
+ ) - 1);
115
+ }
116
+ get active() {
117
+ return this._active;
118
+ }
119
+ pause() {
120
+ if (this._active) {
121
+ this._isPaused = !0;
122
+ let t, s;
123
+ if (this.scopes)
124
+ for (t = 0, s = this.scopes.length; t < s; t++)
125
+ this.scopes[t].pause();
126
+ for (t = 0, s = this.effects.length; t < s; t++)
127
+ this.effects[t].pause();
128
+ }
129
+ }
130
+ /**
131
+ * Resumes the effect scope, including all child scopes and effects.
132
+ */
133
+ resume() {
134
+ if (this._active && this._isPaused) {
135
+ this._isPaused = !1;
136
+ let t, s;
137
+ if (this.scopes)
138
+ for (t = 0, s = this.scopes.length; t < s; t++)
139
+ this.scopes[t].resume();
140
+ for (t = 0, s = this.effects.length; t < s; t++)
141
+ this.effects[t].resume();
142
+ }
143
+ }
144
+ run(t) {
145
+ if (this._active) {
146
+ const s = ue;
147
+ try {
148
+ return ue = this, t();
149
+ } finally {
150
+ ue = s;
151
+ }
152
+ }
153
+ }
154
+ /**
155
+ * This should only be called on non-detached scopes
156
+ * @internal
157
+ */
158
+ on() {
159
+ ++this._on === 1 && (this.prevScope = ue, ue = this);
160
+ }
161
+ /**
162
+ * This should only be called on non-detached scopes
163
+ * @internal
164
+ */
165
+ off() {
166
+ this._on > 0 && --this._on === 0 && (ue = this.prevScope, this.prevScope = void 0);
167
+ }
168
+ stop(t) {
169
+ if (this._active) {
170
+ this._active = !1;
171
+ let s, n;
172
+ for (s = 0, n = this.effects.length; s < n; s++)
173
+ this.effects[s].stop();
174
+ for (this.effects.length = 0, s = 0, n = this.cleanups.length; s < n; s++)
175
+ this.cleanups[s]();
176
+ if (this.cleanups.length = 0, this.scopes) {
177
+ for (s = 0, n = this.scopes.length; s < n; s++)
178
+ this.scopes[s].stop(!0);
179
+ this.scopes.length = 0;
180
+ }
181
+ if (!this.detached && this.parent && !t) {
182
+ const i = this.parent.scopes.pop();
183
+ i && i !== this && (this.parent.scopes[this.index] = i, i.index = this.index);
184
+ }
185
+ this.parent = void 0;
186
+ }
187
+ }
188
+ }
189
+ function Zr() {
190
+ return ue;
191
+ }
192
+ let z;
193
+ const Ts = /* @__PURE__ */ new WeakSet();
194
+ class _i {
195
+ constructor(t) {
196
+ 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, ue && ue.active && ue.effects.push(this);
197
+ }
198
+ pause() {
199
+ this.flags |= 64;
200
+ }
201
+ resume() {
202
+ this.flags & 64 && (this.flags &= -65, Ts.has(this) && (Ts.delete(this), this.trigger()));
203
+ }
204
+ /**
205
+ * @internal
206
+ */
207
+ notify() {
208
+ this.flags & 2 && !(this.flags & 32) || this.flags & 8 || vi(this);
209
+ }
210
+ run() {
211
+ if (!(this.flags & 1))
212
+ return this.fn();
213
+ this.flags |= 2, In(this), yi(this);
214
+ const t = z, s = be;
215
+ z = this, be = !0;
216
+ try {
217
+ return this.fn();
218
+ } finally {
219
+ xi(this), z = t, be = s, this.flags &= -3;
220
+ }
221
+ }
222
+ stop() {
223
+ if (this.flags & 1) {
224
+ for (let t = this.deps; t; t = t.nextDep)
225
+ nn(t);
226
+ this.deps = this.depsTail = void 0, In(this), this.onStop && this.onStop(), this.flags &= -2;
227
+ }
228
+ }
229
+ trigger() {
230
+ this.flags & 64 ? Ts.add(this) : this.scheduler ? this.scheduler() : this.runIfDirty();
231
+ }
232
+ /**
233
+ * @internal
234
+ */
235
+ runIfDirty() {
236
+ Rs(this) && this.run();
237
+ }
238
+ get dirty() {
239
+ return Rs(this);
240
+ }
241
+ }
242
+ let bi = 0, At, Pt;
243
+ function vi(e, t = !1) {
244
+ if (e.flags |= 8, t) {
245
+ e.next = Pt, Pt = e;
246
+ return;
247
+ }
248
+ e.next = At, At = e;
249
+ }
250
+ function tn() {
251
+ bi++;
252
+ }
253
+ function sn() {
254
+ if (--bi > 0)
255
+ return;
256
+ if (Pt) {
257
+ let t = Pt;
258
+ for (Pt = void 0; t; ) {
259
+ const s = t.next;
260
+ t.next = void 0, t.flags &= -9, t = s;
261
+ }
262
+ }
263
+ let e;
264
+ for (; At; ) {
265
+ let t = At;
266
+ for (At = void 0; t; ) {
267
+ const s = t.next;
268
+ if (t.next = void 0, t.flags &= -9, t.flags & 1)
269
+ try {
270
+ t.trigger();
271
+ } catch (n) {
272
+ e || (e = n);
273
+ }
274
+ t = s;
275
+ }
276
+ }
277
+ if (e) throw e;
278
+ }
279
+ function yi(e) {
280
+ for (let t = e.deps; t; t = t.nextDep)
281
+ t.version = -1, t.prevActiveLink = t.dep.activeLink, t.dep.activeLink = t;
282
+ }
283
+ function xi(e) {
284
+ let t, s = e.depsTail, n = s;
285
+ for (; n; ) {
286
+ const i = n.prevDep;
287
+ n.version === -1 ? (n === s && (s = i), nn(n), eo(n)) : t = n, n.dep.activeLink = n.prevActiveLink, n.prevActiveLink = void 0, n = i;
288
+ }
289
+ e.deps = t, e.depsTail = s;
290
+ }
291
+ function Rs(e) {
292
+ for (let t = e.deps; t; t = t.nextDep)
293
+ if (t.dep.version !== t.version || t.dep.computed && (Ci(t.dep.computed) || t.dep.version !== t.version))
294
+ return !0;
295
+ return !!e._dirty;
296
+ }
297
+ function Ci(e) {
298
+ if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === Rt) || (e.globalVersion = Rt, !e.isSSR && e.flags & 128 && (!e.deps && !e._dirty || !Rs(e))))
299
+ return;
300
+ e.flags |= 2;
301
+ const t = e.dep, s = z, n = be;
302
+ z = e, be = !0;
303
+ try {
304
+ yi(e);
305
+ const i = e.fn(e._value);
306
+ (t.version === 0 || fe(i, e._value)) && (e.flags |= 128, e._value = i, t.version++);
307
+ } catch (i) {
308
+ throw t.version++, i;
309
+ } finally {
310
+ z = s, be = n, xi(e), e.flags &= -3;
311
+ }
312
+ }
313
+ function nn(e, t = !1) {
314
+ const { dep: s, prevSub: n, nextSub: i } = e;
315
+ 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)) {
316
+ s.computed.flags &= -5;
317
+ for (let r = s.computed.deps; r; r = r.nextDep)
318
+ nn(r, !0);
319
+ }
320
+ !t && !--s.sc && s.map && s.map.delete(s.key);
321
+ }
322
+ function eo(e) {
323
+ const { prevDep: t, nextDep: s } = e;
324
+ t && (t.nextDep = s, e.prevDep = void 0), s && (s.prevDep = t, e.nextDep = void 0);
325
+ }
326
+ let be = !0;
327
+ const Ei = [];
328
+ function je() {
329
+ Ei.push(be), be = !1;
330
+ }
331
+ function He() {
332
+ const e = Ei.pop();
333
+ be = e === void 0 ? !0 : e;
334
+ }
335
+ function In(e) {
336
+ const { cleanup: t } = e;
337
+ if (e.cleanup = void 0, t) {
338
+ const s = z;
339
+ z = void 0;
340
+ try {
341
+ t();
342
+ } finally {
343
+ z = s;
344
+ }
345
+ }
346
+ }
347
+ let Rt = 0;
348
+ class to {
349
+ constructor(t, s) {
350
+ this.sub = t, this.dep = s, this.version = s.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
351
+ }
352
+ }
353
+ class ps {
354
+ // TODO isolatedDeclarations "__v_skip"
355
+ constructor(t) {
356
+ 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;
357
+ }
358
+ track(t) {
359
+ if (!z || !be || z === this.computed)
360
+ return;
361
+ let s = this.activeLink;
362
+ if (s === void 0 || s.sub !== z)
363
+ s = this.activeLink = new to(z, this), z.deps ? (s.prevDep = z.depsTail, z.depsTail.nextDep = s, z.depsTail = s) : z.deps = z.depsTail = s, Si(s);
364
+ else if (s.version === -1 && (s.version = this.version, s.nextDep)) {
365
+ const n = s.nextDep;
366
+ n.prevDep = s.prevDep, s.prevDep && (s.prevDep.nextDep = n), s.prevDep = z.depsTail, s.nextDep = void 0, z.depsTail.nextDep = s, z.depsTail = s, z.deps === s && (z.deps = n);
367
+ }
368
+ return s;
369
+ }
370
+ trigger(t) {
371
+ this.version++, Rt++, this.notify(t);
372
+ }
373
+ notify(t) {
374
+ tn();
375
+ try {
376
+ for (let s = this.subs; s; s = s.prevSub)
377
+ s.sub.notify() && s.sub.dep.notify();
378
+ } finally {
379
+ sn();
380
+ }
381
+ }
382
+ }
383
+ function Si(e) {
384
+ if (e.dep.sc++, e.sub.flags & 4) {
385
+ const t = e.dep.computed;
386
+ if (t && !e.dep.subs) {
387
+ t.flags |= 20;
388
+ for (let n = t.deps; n; n = n.nextDep)
389
+ Si(n);
390
+ }
391
+ const s = e.dep.subs;
392
+ s !== e && (e.prevSub = s, s && (s.nextSub = e)), e.dep.subs = e;
393
+ }
394
+ }
395
+ const Ls = /* @__PURE__ */ new WeakMap(), nt = Symbol(
396
+ ""
397
+ ), Ds = Symbol(
398
+ ""
399
+ ), Lt = Symbol(
400
+ ""
401
+ );
402
+ function ne(e, t, s) {
403
+ if (be && z) {
404
+ let n = Ls.get(e);
405
+ n || Ls.set(e, n = /* @__PURE__ */ new Map());
406
+ let i = n.get(s);
407
+ i || (n.set(s, i = new ps()), i.map = n, i.key = s), i.track();
408
+ }
409
+ }
410
+ function Re(e, t, s, n, i, r) {
411
+ const o = Ls.get(e);
412
+ if (!o) {
413
+ Rt++;
414
+ return;
415
+ }
416
+ const l = (c) => {
417
+ c && c.trigger();
418
+ };
419
+ if (tn(), t === "clear")
420
+ o.forEach(l);
421
+ else {
422
+ const c = O(e), d = c && Zs(s);
423
+ if (c && s === "length") {
424
+ const u = Number(n);
425
+ o.forEach((h, p) => {
426
+ (p === "length" || p === Lt || !Je(p) && p >= u) && l(h);
427
+ });
428
+ } else
429
+ switch ((s !== void 0 || o.has(void 0)) && l(o.get(s)), d && l(o.get(Lt)), t) {
430
+ case "add":
431
+ c ? d && l(o.get("length")) : (l(o.get(nt)), dt(e) && l(o.get(Ds)));
432
+ break;
433
+ case "delete":
434
+ c || (l(o.get(nt)), dt(e) && l(o.get(Ds)));
435
+ break;
436
+ case "set":
437
+ dt(e) && l(o.get(nt));
438
+ break;
439
+ }
440
+ }
441
+ sn();
442
+ }
443
+ function lt(e) {
444
+ const t = U(e);
445
+ return t === e ? t : (ne(t, "iterate", Lt), me(e) ? t : t.map(ee));
446
+ }
447
+ function ms(e) {
448
+ return ne(e = U(e), "iterate", Lt), e;
449
+ }
450
+ const so = {
451
+ __proto__: null,
452
+ [Symbol.iterator]() {
453
+ return $s(this, Symbol.iterator, ee);
454
+ },
455
+ concat(...e) {
456
+ return lt(this).concat(
457
+ ...e.map((t) => O(t) ? lt(t) : t)
458
+ );
459
+ },
460
+ entries() {
461
+ return $s(this, "entries", (e) => (e[1] = ee(e[1]), e));
462
+ },
463
+ every(e, t) {
464
+ return Fe(this, "every", e, t, void 0, arguments);
465
+ },
466
+ filter(e, t) {
467
+ return Fe(this, "filter", e, t, (s) => s.map(ee), arguments);
468
+ },
469
+ find(e, t) {
470
+ return Fe(this, "find", e, t, ee, arguments);
471
+ },
472
+ findIndex(e, t) {
473
+ return Fe(this, "findIndex", e, t, void 0, arguments);
474
+ },
475
+ findLast(e, t) {
476
+ return Fe(this, "findLast", e, t, ee, arguments);
477
+ },
478
+ findLastIndex(e, t) {
479
+ return Fe(this, "findLastIndex", e, t, void 0, arguments);
480
+ },
481
+ // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
482
+ forEach(e, t) {
483
+ return Fe(this, "forEach", e, t, void 0, arguments);
484
+ },
485
+ includes(...e) {
486
+ return As(this, "includes", e);
487
+ },
488
+ indexOf(...e) {
489
+ return As(this, "indexOf", e);
490
+ },
491
+ join(e) {
492
+ return lt(this).join(e);
493
+ },
494
+ // keys() iterator only reads `length`, no optimization required
495
+ lastIndexOf(...e) {
496
+ return As(this, "lastIndexOf", e);
497
+ },
498
+ map(e, t) {
499
+ return Fe(this, "map", e, t, void 0, arguments);
500
+ },
501
+ pop() {
502
+ return Et(this, "pop");
503
+ },
504
+ push(...e) {
505
+ return Et(this, "push", e);
506
+ },
507
+ reduce(e, ...t) {
508
+ return Mn(this, "reduce", e, t);
509
+ },
510
+ reduceRight(e, ...t) {
511
+ return Mn(this, "reduceRight", e, t);
512
+ },
513
+ shift() {
514
+ return Et(this, "shift");
515
+ },
516
+ // slice could use ARRAY_ITERATE but also seems to beg for range tracking
517
+ some(e, t) {
518
+ return Fe(this, "some", e, t, void 0, arguments);
519
+ },
520
+ splice(...e) {
521
+ return Et(this, "splice", e);
522
+ },
523
+ toReversed() {
524
+ return lt(this).toReversed();
525
+ },
526
+ toSorted(e) {
527
+ return lt(this).toSorted(e);
528
+ },
529
+ toSpliced(...e) {
530
+ return lt(this).toSpliced(...e);
531
+ },
532
+ unshift(...e) {
533
+ return Et(this, "unshift", e);
534
+ },
535
+ values() {
536
+ return $s(this, "values", ee);
537
+ }
538
+ };
539
+ function $s(e, t, s) {
540
+ const n = ms(e), i = n[t]();
541
+ return n !== e && !me(e) && (i._next = i.next, i.next = () => {
542
+ const r = i._next();
543
+ return r.done || (r.value = s(r.value)), r;
544
+ }), i;
545
+ }
546
+ const no = Array.prototype;
547
+ function Fe(e, t, s, n, i, r) {
548
+ const o = ms(e), l = o !== e && !me(e), c = o[t];
549
+ if (c !== no[t]) {
550
+ const h = c.apply(e, r);
551
+ return l ? ee(h) : h;
552
+ }
553
+ let d = s;
554
+ o !== e && (l ? d = function(h, p) {
555
+ return s.call(this, ee(h), p, e);
556
+ } : s.length > 2 && (d = function(h, p) {
557
+ return s.call(this, h, p, e);
558
+ }));
559
+ const u = c.call(o, d, n);
560
+ return l && i ? i(u) : u;
561
+ }
562
+ function Mn(e, t, s, n) {
563
+ const i = ms(e);
564
+ let r = s;
565
+ return i !== e && (me(e) ? s.length > 3 && (r = function(o, l, c) {
566
+ return s.call(this, o, l, c, e);
567
+ }) : r = function(o, l, c) {
568
+ return s.call(this, o, ee(l), c, e);
569
+ }), i[t](r, ...n);
570
+ }
571
+ function As(e, t, s) {
572
+ const n = U(e);
573
+ ne(n, "iterate", Lt);
574
+ const i = n[t](...s);
575
+ return (i === -1 || i === !1) && cn(s[0]) ? (s[0] = U(s[0]), n[t](...s)) : i;
576
+ }
577
+ function Et(e, t, s = []) {
578
+ je(), tn();
579
+ const n = U(e)[t].apply(e, s);
580
+ return sn(), He(), n;
581
+ }
582
+ const io = /* @__PURE__ */ Ys("__proto__,__v_isRef,__isVue"), wi = new Set(
583
+ /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(Je)
584
+ );
585
+ function ro(e) {
586
+ Je(e) || (e = String(e));
587
+ const t = U(this);
588
+ return ne(t, "has", e), t.hasOwnProperty(e);
589
+ }
590
+ class Ti {
591
+ constructor(t = !1, s = !1) {
592
+ this._isReadonly = t, this._isShallow = s;
593
+ }
594
+ get(t, s, n) {
595
+ if (s === "__v_skip") return t.__v_skip;
596
+ const i = this._isReadonly, r = this._isShallow;
597
+ if (s === "__v_isReactive")
598
+ return !i;
599
+ if (s === "__v_isReadonly")
600
+ return i;
601
+ if (s === "__v_isShallow")
602
+ return r;
603
+ if (s === "__v_raw")
604
+ return n === (i ? r ? go : Ii : r ? Pi : Ai).get(t) || // receiver is not the reactive proxy, but has the same prototype
605
+ // this means the receiver is a user proxy of the reactive proxy
606
+ Object.getPrototypeOf(t) === Object.getPrototypeOf(n) ? t : void 0;
607
+ const o = O(t);
608
+ if (!i) {
609
+ let c;
610
+ if (o && (c = so[s]))
611
+ return c;
612
+ if (s === "hasOwnProperty")
613
+ return ro;
614
+ }
615
+ const l = Reflect.get(
616
+ t,
617
+ s,
618
+ // if this is a proxy wrapping a ref, return methods using the raw ref
619
+ // as receiver so that we don't have to call `toRaw` on the ref in all
620
+ // its class methods
621
+ te(t) ? t : n
622
+ );
623
+ if ((Je(s) ? wi.has(s) : io(s)) || (i || ne(t, "get", s), r))
624
+ return l;
625
+ if (te(l)) {
626
+ const c = o && Zs(s) ? l : l.value;
627
+ return i && G(c) ? Hs(c) : c;
628
+ }
629
+ return G(l) ? i ? Hs(l) : on(l) : l;
630
+ }
631
+ }
632
+ class $i extends Ti {
633
+ constructor(t = !1) {
634
+ super(!1, t);
635
+ }
636
+ set(t, s, n, i) {
637
+ let r = t[s];
638
+ if (!this._isShallow) {
639
+ const c = Ke(r);
640
+ if (!me(n) && !Ke(n) && (r = U(r), n = U(n)), !O(t) && te(r) && !te(n))
641
+ return c || (r.value = n), !0;
642
+ }
643
+ const o = O(t) && Zs(s) ? Number(s) < t.length : B(t, s), l = Reflect.set(
644
+ t,
645
+ s,
646
+ n,
647
+ te(t) ? t : i
648
+ );
649
+ return t === U(i) && (o ? fe(n, r) && Re(t, "set", s, n) : Re(t, "add", s, n)), l;
650
+ }
651
+ deleteProperty(t, s) {
652
+ const n = B(t, s);
653
+ t[s];
654
+ const i = Reflect.deleteProperty(t, s);
655
+ return i && n && Re(t, "delete", s, void 0), i;
656
+ }
657
+ has(t, s) {
658
+ const n = Reflect.has(t, s);
659
+ return (!Je(s) || !wi.has(s)) && ne(t, "has", s), n;
660
+ }
661
+ ownKeys(t) {
662
+ return ne(
663
+ t,
664
+ "iterate",
665
+ O(t) ? "length" : nt
666
+ ), Reflect.ownKeys(t);
667
+ }
668
+ }
669
+ class oo extends Ti {
670
+ constructor(t = !1) {
671
+ super(!0, t);
672
+ }
673
+ set(t, s) {
674
+ return !0;
675
+ }
676
+ deleteProperty(t, s) {
677
+ return !0;
678
+ }
679
+ }
680
+ const lo = /* @__PURE__ */ new $i(), co = /* @__PURE__ */ new oo(), ao = /* @__PURE__ */ new $i(!0);
681
+ const js = (e) => e, qt = (e) => Reflect.getPrototypeOf(e);
682
+ function uo(e, t, s) {
683
+ return function(...n) {
684
+ const i = this.__v_raw, r = U(i), o = dt(r), l = e === "entries" || e === Symbol.iterator && o, c = e === "keys" && o, d = i[e](...n), u = s ? js : t ? es : ee;
685
+ return !t && ne(
686
+ r,
687
+ "iterate",
688
+ c ? Ds : nt
689
+ ), {
690
+ // iterator protocol
691
+ next() {
692
+ const { value: h, done: p } = d.next();
693
+ return p ? { value: h, done: p } : {
694
+ value: l ? [u(h[0]), u(h[1])] : u(h),
695
+ done: p
696
+ };
697
+ },
698
+ // iterable protocol
699
+ [Symbol.iterator]() {
700
+ return this;
701
+ }
702
+ };
703
+ };
704
+ }
705
+ function zt(e) {
706
+ return function(...t) {
707
+ return e === "delete" ? !1 : e === "clear" ? void 0 : this;
708
+ };
709
+ }
710
+ function fo(e, t) {
711
+ const s = {
712
+ get(i) {
713
+ const r = this.__v_raw, o = U(r), l = U(i);
714
+ e || (fe(i, l) && ne(o, "get", i), ne(o, "get", l));
715
+ const { has: c } = qt(o), d = t ? js : e ? es : ee;
716
+ if (c.call(o, i))
717
+ return d(r.get(i));
718
+ if (c.call(o, l))
719
+ return d(r.get(l));
720
+ r !== o && r.get(i);
721
+ },
722
+ get size() {
723
+ const i = this.__v_raw;
724
+ return !e && ne(U(i), "iterate", nt), i.size;
725
+ },
726
+ has(i) {
727
+ const r = this.__v_raw, o = U(r), l = U(i);
728
+ return e || (fe(i, l) && ne(o, "has", i), ne(o, "has", l)), i === l ? r.has(i) : r.has(i) || r.has(l);
729
+ },
730
+ forEach(i, r) {
731
+ const o = this, l = o.__v_raw, c = U(l), d = t ? js : e ? es : ee;
732
+ return !e && ne(c, "iterate", nt), l.forEach((u, h) => i.call(r, d(u), d(h), o));
733
+ }
734
+ };
735
+ return se(
736
+ s,
737
+ e ? {
738
+ add: zt("add"),
739
+ set: zt("set"),
740
+ delete: zt("delete"),
741
+ clear: zt("clear")
742
+ } : {
743
+ add(i) {
744
+ !t && !me(i) && !Ke(i) && (i = U(i));
745
+ const r = U(this);
746
+ return qt(r).has.call(r, i) || (r.add(i), Re(r, "add", i, i)), this;
747
+ },
748
+ set(i, r) {
749
+ !t && !me(r) && !Ke(r) && (r = U(r));
750
+ const o = U(this), { has: l, get: c } = qt(o);
751
+ let d = l.call(o, i);
752
+ d || (i = U(i), d = l.call(o, i));
753
+ const u = c.call(o, i);
754
+ return o.set(i, r), d ? fe(r, u) && Re(o, "set", i, r) : Re(o, "add", i, r), this;
755
+ },
756
+ delete(i) {
757
+ const r = U(this), { has: o, get: l } = qt(r);
758
+ let c = o.call(r, i);
759
+ c || (i = U(i), c = o.call(r, i)), l && l.call(r, i);
760
+ const d = r.delete(i);
761
+ return c && Re(r, "delete", i, void 0), d;
762
+ },
763
+ clear() {
764
+ const i = U(this), r = i.size !== 0, o = i.clear();
765
+ return r && Re(
766
+ i,
767
+ "clear",
768
+ void 0,
769
+ void 0
770
+ ), o;
771
+ }
772
+ }
773
+ ), [
774
+ "keys",
775
+ "values",
776
+ "entries",
777
+ Symbol.iterator
778
+ ].forEach((i) => {
779
+ s[i] = uo(i, e, t);
780
+ }), s;
781
+ }
782
+ function rn(e, t) {
783
+ const s = fo(e, t);
784
+ return (n, i, r) => i === "__v_isReactive" ? !e : i === "__v_isReadonly" ? e : i === "__v_raw" ? n : Reflect.get(
785
+ B(s, i) && i in n ? s : n,
786
+ i,
787
+ r
788
+ );
789
+ }
790
+ const ho = {
791
+ get: /* @__PURE__ */ rn(!1, !1)
792
+ }, po = {
793
+ get: /* @__PURE__ */ rn(!1, !0)
794
+ }, mo = {
795
+ get: /* @__PURE__ */ rn(!0, !1)
796
+ };
797
+ const Ai = /* @__PURE__ */ new WeakMap(), Pi = /* @__PURE__ */ new WeakMap(), Ii = /* @__PURE__ */ new WeakMap(), go = /* @__PURE__ */ new WeakMap();
798
+ function _o(e) {
799
+ switch (e) {
800
+ case "Object":
801
+ case "Array":
802
+ return 1;
803
+ case "Map":
804
+ case "Set":
805
+ case "WeakMap":
806
+ case "WeakSet":
807
+ return 2;
808
+ default:
809
+ return 0;
810
+ }
811
+ }
812
+ function bo(e) {
813
+ return e.__v_skip || !Object.isExtensible(e) ? 0 : _o(Vr(e));
814
+ }
815
+ function on(e) {
816
+ return Ke(e) ? e : ln(
817
+ e,
818
+ !1,
819
+ lo,
820
+ ho,
821
+ Ai
822
+ );
823
+ }
824
+ function vo(e) {
825
+ return ln(
826
+ e,
827
+ !1,
828
+ ao,
829
+ po,
830
+ Pi
831
+ );
832
+ }
833
+ function Hs(e) {
834
+ return ln(
835
+ e,
836
+ !0,
837
+ co,
838
+ mo,
839
+ Ii
840
+ );
841
+ }
842
+ function ln(e, t, s, n, i) {
843
+ if (!G(e) || e.__v_raw && !(t && e.__v_isReactive))
844
+ return e;
845
+ const r = bo(e);
846
+ if (r === 0)
847
+ return e;
848
+ const o = i.get(e);
849
+ if (o)
850
+ return o;
851
+ const l = new Proxy(
852
+ e,
853
+ r === 2 ? n : s
854
+ );
855
+ return i.set(e, l), l;
856
+ }
857
+ function ht(e) {
858
+ return Ke(e) ? ht(e.__v_raw) : !!(e && e.__v_isReactive);
859
+ }
860
+ function Ke(e) {
861
+ return !!(e && e.__v_isReadonly);
862
+ }
863
+ function me(e) {
864
+ return !!(e && e.__v_isShallow);
865
+ }
866
+ function cn(e) {
867
+ return e ? !!e.__v_raw : !1;
868
+ }
869
+ function U(e) {
870
+ const t = e && e.__v_raw;
871
+ return t ? U(t) : e;
872
+ }
873
+ function yo(e) {
874
+ return !B(e, "__v_skip") && Object.isExtensible(e) && hi(e, "__v_skip", !0), e;
875
+ }
876
+ const ee = (e) => G(e) ? on(e) : e, es = (e) => G(e) ? Hs(e) : e;
877
+ function te(e) {
878
+ return e ? e.__v_isRef === !0 : !1;
879
+ }
880
+ function On(e) {
881
+ return Mi(e, !1);
882
+ }
883
+ function Yt(e) {
884
+ return Mi(e, !0);
885
+ }
886
+ function Mi(e, t) {
887
+ return te(e) ? e : new xo(e, t);
888
+ }
889
+ class xo {
890
+ constructor(t, s) {
891
+ this.dep = new ps(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = s ? t : U(t), this._value = s ? t : ee(t), this.__v_isShallow = s;
892
+ }
893
+ get value() {
894
+ return this.dep.track(), this._value;
895
+ }
896
+ set value(t) {
897
+ const s = this._rawValue, n = this.__v_isShallow || me(t) || Ke(t);
898
+ t = n ? t : U(t), fe(t, s) && (this._rawValue = t, this._value = n ? t : ee(t), this.dep.trigger());
899
+ }
900
+ }
901
+ function Us(e) {
902
+ return te(e) ? e.value : e;
903
+ }
904
+ const Co = {
905
+ get: (e, t, s) => t === "__v_raw" ? e : Us(Reflect.get(e, t, s)),
906
+ set: (e, t, s, n) => {
907
+ const i = e[t];
908
+ return te(i) && !te(s) ? (i.value = s, !0) : Reflect.set(e, t, s, n);
909
+ }
910
+ };
911
+ function Oi(e) {
912
+ return ht(e) ? e : new Proxy(e, Co);
913
+ }
914
+ class Eo {
915
+ constructor(t) {
916
+ this.__v_isRef = !0, this._value = void 0;
917
+ const s = this.dep = new ps(), { get: n, set: i } = t(s.track.bind(s), s.trigger.bind(s));
918
+ this._get = n, this._set = i;
919
+ }
920
+ get value() {
921
+ return this._value = this._get();
922
+ }
923
+ set value(t) {
924
+ this._set(t);
925
+ }
926
+ }
927
+ function So(e) {
928
+ return new Eo(e);
929
+ }
930
+ class wo {
931
+ constructor(t, s, n) {
932
+ this.fn = t, this.setter = s, this._value = void 0, this.dep = new ps(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = Rt - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !s, this.isSSR = n;
933
+ }
934
+ /**
935
+ * @internal
936
+ */
937
+ notify() {
938
+ if (this.flags |= 16, !(this.flags & 8) && // avoid infinite self recursion
939
+ z !== this)
940
+ return vi(this, !0), !0;
941
+ }
942
+ get value() {
943
+ const t = this.dep.track();
944
+ return Ci(this), t && (t.version = this.dep.version), this._value;
945
+ }
946
+ set value(t) {
947
+ this.setter && this.setter(t);
948
+ }
949
+ }
950
+ function To(e, t, s = !1) {
951
+ let n, i;
952
+ return F(e) ? n = e : (n = e.get, i = e.set), new wo(n, i, s);
953
+ }
954
+ const Jt = {}, ts = /* @__PURE__ */ new WeakMap();
955
+ let tt;
956
+ function $o(e, t = !1, s = tt) {
957
+ if (s) {
958
+ let n = ts.get(s);
959
+ n || ts.set(s, n = []), n.push(e);
960
+ }
961
+ }
962
+ function Ao(e, t, s = k) {
963
+ const { immediate: n, deep: i, once: r, scheduler: o, augmentJob: l, call: c } = s, d = (T) => i ? T : me(T) || i === !1 || i === 0 ? We(T, 1) : We(T);
964
+ let u, h, p, b, x = !1, $ = !1;
965
+ if (te(e) ? (h = () => e.value, x = me(e)) : ht(e) ? (h = () => d(e), x = !0) : O(e) ? ($ = !0, x = e.some((T) => ht(T) || me(T)), h = () => e.map((T) => {
966
+ if (te(T))
967
+ return T.value;
968
+ if (ht(T))
969
+ return d(T);
970
+ if (F(T))
971
+ return c ? c(T, 2) : T();
972
+ })) : F(e) ? t ? h = c ? () => c(e, 2) : e : h = () => {
973
+ if (p) {
974
+ je();
975
+ try {
976
+ p();
977
+ } finally {
978
+ He();
979
+ }
980
+ }
981
+ const T = tt;
982
+ tt = u;
983
+ try {
984
+ return c ? c(e, 3, [b]) : e(b);
985
+ } finally {
986
+ tt = T;
987
+ }
988
+ } : h = Pe, t && i) {
989
+ const T = h, N = i === !0 ? 1 / 0 : i;
990
+ h = () => We(T(), N);
991
+ }
992
+ const H = Zr(), I = () => {
993
+ u.stop(), H && H.active && Qs(H.effects, u);
994
+ };
995
+ if (r && t) {
996
+ const T = t;
997
+ t = (...N) => {
998
+ T(...N), I();
999
+ };
1000
+ }
1001
+ let R = $ ? new Array(e.length).fill(Jt) : Jt;
1002
+ const L = (T) => {
1003
+ if (!(!(u.flags & 1) || !u.dirty && !T))
1004
+ if (t) {
1005
+ const N = u.run();
1006
+ if (i || x || ($ ? N.some((V, Q) => fe(V, R[Q])) : fe(N, R))) {
1007
+ p && p();
1008
+ const V = tt;
1009
+ tt = u;
1010
+ try {
1011
+ const Q = [
1012
+ N,
1013
+ // pass undefined as the old value when it's changed for the first time
1014
+ R === Jt ? void 0 : $ && R[0] === Jt ? [] : R,
1015
+ b
1016
+ ];
1017
+ R = N, c ? c(t, 3, Q) : (
1018
+ // @ts-expect-error
1019
+ t(...Q)
1020
+ );
1021
+ } finally {
1022
+ tt = V;
1023
+ }
1024
+ }
1025
+ } else
1026
+ u.run();
1027
+ };
1028
+ return l && l(L), u = new _i(h), u.scheduler = o ? () => o(L, !1) : L, b = (T) => $o(T, !1, u), p = u.onStop = () => {
1029
+ const T = ts.get(u);
1030
+ if (T) {
1031
+ if (c)
1032
+ c(T, 4);
1033
+ else
1034
+ for (const N of T) N();
1035
+ ts.delete(u);
1036
+ }
1037
+ }, t ? n ? L(!0) : R = u.run() : o ? o(L.bind(null, !0), !0) : u.run(), I.pause = u.pause.bind(u), I.resume = u.resume.bind(u), I.stop = I, I;
1038
+ }
1039
+ function We(e, t = 1 / 0, s) {
1040
+ if (t <= 0 || !G(e) || e.__v_skip || (s = s || /* @__PURE__ */ new Map(), (s.get(e) || 0) >= t))
1041
+ return e;
1042
+ if (s.set(e, t), t--, te(e))
1043
+ We(e.value, t, s);
1044
+ else if (O(e))
1045
+ for (let n = 0; n < e.length; n++)
1046
+ We(e[n], t, s);
1047
+ else if (ci(e) || dt(e))
1048
+ e.forEach((n) => {
1049
+ We(n, t, s);
1050
+ });
1051
+ else if (fi(e)) {
1052
+ for (const n in e)
1053
+ We(e[n], t, s);
1054
+ for (const n of Object.getOwnPropertySymbols(e))
1055
+ Object.prototype.propertyIsEnumerable.call(e, n) && We(e[n], t, s);
1056
+ }
1057
+ return e;
1058
+ }
1059
+ /**
1060
+ * @vue/runtime-core v3.5.22
1061
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
1062
+ * @license MIT
1063
+ **/
1064
+ function Ut(e, t, s, n) {
1065
+ try {
1066
+ return n ? e(...n) : e();
1067
+ } catch (i) {
1068
+ gs(i, t, s);
1069
+ }
1070
+ }
1071
+ function Ie(e, t, s, n) {
1072
+ if (F(e)) {
1073
+ const i = Ut(e, t, s, n);
1074
+ return i && ai(i) && i.catch((r) => {
1075
+ gs(r, t, s);
1076
+ }), i;
1077
+ }
1078
+ if (O(e)) {
1079
+ const i = [];
1080
+ for (let r = 0; r < e.length; r++)
1081
+ i.push(Ie(e[r], t, s, n));
1082
+ return i;
1083
+ }
1084
+ }
1085
+ function gs(e, t, s, n = !0) {
1086
+ const i = t ? t.vnode : null, { errorHandler: r, throwUnhandledErrorInProduction: o } = t && t.appContext.config || k;
1087
+ if (t) {
1088
+ let l = t.parent;
1089
+ const c = t.proxy, d = `https://vuejs.org/error-reference/#runtime-${s}`;
1090
+ for (; l; ) {
1091
+ const u = l.ec;
1092
+ if (u) {
1093
+ for (let h = 0; h < u.length; h++)
1094
+ if (u[h](e, c, d) === !1)
1095
+ return;
1096
+ }
1097
+ l = l.parent;
1098
+ }
1099
+ if (r) {
1100
+ je(), Ut(r, null, 10, [
1101
+ e,
1102
+ c,
1103
+ d
1104
+ ]), He();
1105
+ return;
1106
+ }
1107
+ }
1108
+ Po(e, s, i, n, o);
1109
+ }
1110
+ function Po(e, t, s, n = !0, i = !1) {
1111
+ if (i)
1112
+ throw e;
1113
+ }
1114
+ const oe = [];
1115
+ let Te = -1;
1116
+ const pt = [];
1117
+ let ke = null, ct = 0;
1118
+ const Fi = /* @__PURE__ */ Promise.resolve();
1119
+ let ss = null;
1120
+ function Xt(e) {
1121
+ const t = ss || Fi;
1122
+ return e ? t.then(this ? e.bind(this) : e) : t;
1123
+ }
1124
+ function Io(e) {
1125
+ let t = Te + 1, s = oe.length;
1126
+ for (; t < s; ) {
1127
+ const n = t + s >>> 1, i = oe[n], r = Dt(i);
1128
+ r < e || r === e && i.flags & 2 ? t = n + 1 : s = n;
1129
+ }
1130
+ return t;
1131
+ }
1132
+ function an(e) {
1133
+ if (!(e.flags & 1)) {
1134
+ const t = Dt(e), s = oe[oe.length - 1];
1135
+ !s || // fast path when the job id is larger than the tail
1136
+ !(e.flags & 2) && t >= Dt(s) ? oe.push(e) : oe.splice(Io(t), 0, e), e.flags |= 1, Ni();
1137
+ }
1138
+ }
1139
+ function Ni() {
1140
+ ss || (ss = Fi.then(Li));
1141
+ }
1142
+ function Mo(e) {
1143
+ O(e) ? pt.push(...e) : ke && e.id === -1 ? ke.splice(ct + 1, 0, e) : e.flags & 1 || (pt.push(e), e.flags |= 1), Ni();
1144
+ }
1145
+ function Fn(e, t, s = Te + 1) {
1146
+ for (; s < oe.length; s++) {
1147
+ const n = oe[s];
1148
+ if (n && n.flags & 2) {
1149
+ if (e && n.id !== e.uid)
1150
+ continue;
1151
+ oe.splice(s, 1), s--, n.flags & 4 && (n.flags &= -2), n(), n.flags & 4 || (n.flags &= -2);
1152
+ }
1153
+ }
1154
+ }
1155
+ function Ri(e) {
1156
+ if (pt.length) {
1157
+ const t = [...new Set(pt)].sort(
1158
+ (s, n) => Dt(s) - Dt(n)
1159
+ );
1160
+ if (pt.length = 0, ke) {
1161
+ ke.push(...t);
1162
+ return;
1163
+ }
1164
+ for (ke = t, ct = 0; ct < ke.length; ct++) {
1165
+ const s = ke[ct];
1166
+ s.flags & 4 && (s.flags &= -2), s.flags & 8 || s(), s.flags &= -2;
1167
+ }
1168
+ ke = null, ct = 0;
1169
+ }
1170
+ }
1171
+ const Dt = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
1172
+ function Li(e) {
1173
+ try {
1174
+ for (Te = 0; Te < oe.length; Te++) {
1175
+ const t = oe[Te];
1176
+ t && !(t.flags & 8) && (t.flags & 4 && (t.flags &= -2), Ut(
1177
+ t,
1178
+ t.i,
1179
+ t.i ? 15 : 14
1180
+ ), t.flags & 4 || (t.flags &= -2));
1181
+ }
1182
+ } finally {
1183
+ for (; Te < oe.length; Te++) {
1184
+ const t = oe[Te];
1185
+ t && (t.flags &= -2);
1186
+ }
1187
+ Te = -1, oe.length = 0, Ri(), ss = null, (oe.length || pt.length) && Li();
1188
+ }
1189
+ }
1190
+ let Ae = null, Di = null;
1191
+ function ns(e) {
1192
+ const t = Ae;
1193
+ return Ae = e, Di = e && e.type.__scopeId || null, t;
1194
+ }
1195
+ function Oo(e, t = Ae, s) {
1196
+ if (!t || e._n)
1197
+ return e;
1198
+ const n = (...i) => {
1199
+ n._d && Kn(-1);
1200
+ const r = ns(t);
1201
+ let o;
1202
+ try {
1203
+ o = e(...i);
1204
+ } finally {
1205
+ ns(r), n._d && Kn(1);
1206
+ }
1207
+ return o;
1208
+ };
1209
+ return n._n = !0, n._c = !0, n._d = !0, n;
1210
+ }
1211
+ function Ze(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 c = l.dir[n];
1217
+ c && (je(), Ie(c, s, 8, [
1218
+ e.el,
1219
+ l,
1220
+ e,
1221
+ t
1222
+ ]), He());
1223
+ }
1224
+ }
1225
+ const Fo = Symbol("_vte"), No = (e) => e.__isTeleport, Ro = Symbol("_leaveCb");
1226
+ function un(e, t) {
1227
+ e.shapeFlag & 6 && e.component ? (e.transition = t, un(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
+ function ji(e, t) {
1231
+ return F(e) ? (
1232
+ // #8236: extend call and options.name access are considered side-effects
1233
+ // by Rollup, so we have to wrap it in a pure-annotated IIFE.
1234
+ se({ name: e.name }, t, { setup: e })
1235
+ ) : e;
1236
+ }
1237
+ function Hi(e) {
1238
+ e.ids = [e.ids[0] + e.ids[2]++ + "-", 0, 0];
1239
+ }
1240
+ function Lo(e) {
1241
+ const t = gn(), s = Yt(null);
1242
+ if (t) {
1243
+ const i = t.refs === k ? t.refs = {} : t.refs;
1244
+ Object.defineProperty(i, e, {
1245
+ enumerable: !0,
1246
+ get: () => s.value,
1247
+ set: (r) => s.value = r
1248
+ });
1249
+ }
1250
+ return s;
1251
+ }
1252
+ const is = /* @__PURE__ */ new WeakMap();
1253
+ function It(e, t, s, n, i = !1) {
1254
+ if (O(e)) {
1255
+ e.forEach(
1256
+ (x, $) => It(
1257
+ x,
1258
+ t && (O(t) ? t[$] : t),
1259
+ s,
1260
+ n,
1261
+ i
1262
+ )
1263
+ );
1264
+ return;
1265
+ }
1266
+ if (Mt(n) && !i) {
1267
+ n.shapeFlag & 512 && n.type.__asyncResolved && n.component.subTree.component && It(e, t, s, n.component.subTree);
1268
+ return;
1269
+ }
1270
+ const r = n.shapeFlag & 4 ? _n(n.component) : n.el, o = i ? null : r, { i: l, r: c } = e, d = t && t.r, u = l.refs === k ? l.refs = {} : l.refs, h = l.setupState, p = U(h), b = h === k ? li : (x) => B(p, x);
1271
+ if (d != null && d !== c) {
1272
+ if (Nn(t), Z(d))
1273
+ u[d] = null, b(d) && (h[d] = null);
1274
+ else if (te(d)) {
1275
+ d.value = null;
1276
+ const x = t;
1277
+ x.k && (u[x.k] = null);
1278
+ }
1279
+ }
1280
+ if (F(c))
1281
+ Ut(c, l, 12, [o, u]);
1282
+ else {
1283
+ const x = Z(c), $ = te(c);
1284
+ if (x || $) {
1285
+ const H = () => {
1286
+ if (e.f) {
1287
+ const I = x ? b(c) ? h[c] : u[c] : c.value;
1288
+ if (i)
1289
+ O(I) && Qs(I, r);
1290
+ else if (O(I))
1291
+ I.includes(r) || I.push(r);
1292
+ else if (x)
1293
+ u[c] = [r], b(c) && (h[c] = u[c]);
1294
+ else {
1295
+ const R = [r];
1296
+ c.value = R, e.k && (u[e.k] = R);
1297
+ }
1298
+ } else x ? (u[c] = o, b(c) && (h[c] = o)) : $ && (c.value = o, e.k && (u[e.k] = o));
1299
+ };
1300
+ if (o) {
1301
+ const I = () => {
1302
+ H(), is.delete(e);
1303
+ };
1304
+ I.id = -1, is.set(e, I), he(I, s);
1305
+ } else
1306
+ Nn(e), H();
1307
+ }
1308
+ }
1309
+ }
1310
+ function Nn(e) {
1311
+ const t = is.get(e);
1312
+ t && (t.flags |= 8, is.delete(e));
1313
+ }
1314
+ ds().requestIdleCallback;
1315
+ ds().cancelIdleCallback;
1316
+ const Mt = (e) => !!e.type.__asyncLoader, Ui = (e) => e.type.__isKeepAlive;
1317
+ function Do(e, t) {
1318
+ ki(e, "a", t);
1319
+ }
1320
+ function jo(e, t) {
1321
+ ki(e, "da", t);
1322
+ }
1323
+ function ki(e, t, s = le) {
1324
+ const n = e.__wdc || (e.__wdc = () => {
1325
+ let i = s;
1326
+ for (; i; ) {
1327
+ if (i.isDeactivated)
1328
+ return;
1329
+ i = i.parent;
1330
+ }
1331
+ return e();
1332
+ });
1333
+ if (_s(t, n, s), s) {
1334
+ let i = s.parent;
1335
+ for (; i && i.parent; )
1336
+ Ui(i.parent.vnode) && Ho(n, t, s, i), i = i.parent;
1337
+ }
1338
+ }
1339
+ function Ho(e, t, s, n) {
1340
+ const i = _s(
1341
+ t,
1342
+ e,
1343
+ n,
1344
+ !0
1345
+ /* prepend */
1346
+ );
1347
+ Wi(() => {
1348
+ Qs(n[t], i);
1349
+ }, s);
1350
+ }
1351
+ function _s(e, t, s = le, n = !1) {
1352
+ if (s) {
1353
+ const i = s[e] || (s[e] = []), r = t.__weh || (t.__weh = (...o) => {
1354
+ je();
1355
+ const l = kt(s), c = Ie(t, s, e, o);
1356
+ return l(), He(), c;
1357
+ });
1358
+ return n ? i.unshift(r) : i.push(r), r;
1359
+ }
1360
+ }
1361
+ const Ue = (e) => (t, s = le) => {
1362
+ (!Ht || e === "sp") && _s(e, (...n) => t(...n), s);
1363
+ }, Vi = Ue("bm"), fn = Ue("m"), Uo = Ue(
1364
+ "bu"
1365
+ ), ko = Ue("u"), Bi = Ue(
1366
+ "bum"
1367
+ ), Wi = Ue("um"), Vo = Ue(
1368
+ "sp"
1369
+ ), Bo = Ue("rtg"), Wo = Ue("rtc");
1370
+ function Ko(e, t = le) {
1371
+ _s("ec", e, t);
1372
+ }
1373
+ const qo = Symbol.for("v-ndc");
1374
+ function Rn(e, t, s, n) {
1375
+ let i;
1376
+ const r = s, o = O(e);
1377
+ if (o || Z(e)) {
1378
+ const l = o && ht(e);
1379
+ let c = !1, d = !1;
1380
+ l && (c = !me(e), d = Ke(e), e = ms(e)), i = new Array(e.length);
1381
+ for (let u = 0, h = e.length; u < h; u++)
1382
+ i[u] = t(
1383
+ c ? d ? es(ee(e[u])) : ee(e[u]) : e[u],
1384
+ u,
1385
+ void 0,
1386
+ r
1387
+ );
1388
+ } else if (typeof e == "number") {
1389
+ i = new Array(e);
1390
+ for (let l = 0; l < e; l++)
1391
+ i[l] = t(l + 1, l, void 0, r);
1392
+ } else if (G(e))
1393
+ if (e[Symbol.iterator])
1394
+ i = Array.from(
1395
+ e,
1396
+ (l, c) => t(l, c, void 0, r)
1397
+ );
1398
+ else {
1399
+ const l = Object.keys(e);
1400
+ i = new Array(l.length);
1401
+ for (let c = 0, d = l.length; c < d; c++) {
1402
+ const u = l[c];
1403
+ i[c] = t(e[u], u, c, r);
1404
+ }
1405
+ }
1406
+ else
1407
+ i = [];
1408
+ return i;
1409
+ }
1410
+ const ks = (e) => e ? pr(e) ? _n(e) : ks(e.parent) : null, Ot = (
1411
+ // Move PURE marker to new line to workaround compiler discarding it
1412
+ // due to type annotation
1413
+ /* @__PURE__ */ se(/* @__PURE__ */ Object.create(null), {
1414
+ $: (e) => e,
1415
+ $el: (e) => e.vnode.el,
1416
+ $data: (e) => e.data,
1417
+ $props: (e) => e.props,
1418
+ $attrs: (e) => e.attrs,
1419
+ $slots: (e) => e.slots,
1420
+ $refs: (e) => e.refs,
1421
+ $parent: (e) => ks(e.parent),
1422
+ $root: (e) => ks(e.root),
1423
+ $host: (e) => e.ce,
1424
+ $emit: (e) => e.emit,
1425
+ $options: (e) => qi(e),
1426
+ $forceUpdate: (e) => e.f || (e.f = () => {
1427
+ an(e.update);
1428
+ }),
1429
+ $nextTick: (e) => e.n || (e.n = Xt.bind(e.proxy)),
1430
+ $watch: (e) => pl.bind(e)
1431
+ })
1432
+ ), Ps = (e, t) => e !== k && !e.__isScriptSetup && B(e, t), zo = {
1433
+ get({ _: e }, t) {
1434
+ if (t === "__v_skip")
1435
+ return !0;
1436
+ const { ctx: s, setupState: n, data: i, props: r, accessCache: o, type: l, appContext: c } = e;
1437
+ let d;
1438
+ if (t[0] !== "$") {
1439
+ const b = o[t];
1440
+ if (b !== void 0)
1441
+ switch (b) {
1442
+ case 1:
1443
+ return n[t];
1444
+ case 2:
1445
+ return i[t];
1446
+ case 4:
1447
+ return s[t];
1448
+ case 3:
1449
+ return r[t];
1450
+ }
1451
+ else {
1452
+ if (Ps(n, t))
1453
+ return o[t] = 1, n[t];
1454
+ if (i !== k && B(i, t))
1455
+ return o[t] = 2, i[t];
1456
+ if (
1457
+ // only cache other properties when instance has declared (thus stable)
1458
+ // props
1459
+ (d = e.propsOptions[0]) && B(d, t)
1460
+ )
1461
+ return o[t] = 3, r[t];
1462
+ if (s !== k && B(s, t))
1463
+ return o[t] = 4, s[t];
1464
+ Vs && (o[t] = 0);
1465
+ }
1466
+ }
1467
+ const u = Ot[t];
1468
+ let h, p;
1469
+ if (u)
1470
+ return t === "$attrs" && ne(e.attrs, "get", ""), u(e);
1471
+ if (
1472
+ // css module (injected by vue-loader)
1473
+ (h = l.__cssModules) && (h = h[t])
1474
+ )
1475
+ return h;
1476
+ if (s !== k && B(s, t))
1477
+ return o[t] = 4, s[t];
1478
+ if (
1479
+ // global properties
1480
+ p = c.config.globalProperties, B(p, t)
1481
+ )
1482
+ return p[t];
1483
+ },
1484
+ set({ _: e }, t, s) {
1485
+ const { data: n, setupState: i, ctx: r } = e;
1486
+ return Ps(i, t) ? (i[t] = s, !0) : n !== k && B(n, t) ? (n[t] = s, !0) : B(e.props, t) || t[0] === "$" && t.slice(1) in e ? !1 : (r[t] = s, !0);
1487
+ },
1488
+ has({
1489
+ _: { data: e, setupState: t, accessCache: s, ctx: n, appContext: i, propsOptions: r, type: o }
1490
+ }, l) {
1491
+ let c, d;
1492
+ return !!(s[l] || e !== k && l[0] !== "$" && B(e, l) || Ps(t, l) || (c = r[0]) && B(c, l) || B(n, l) || B(Ot, l) || B(i.config.globalProperties, l) || (d = o.__cssModules) && d[l]);
1493
+ },
1494
+ defineProperty(e, t, s) {
1495
+ return s.get != null ? e._.accessCache[t] = 0 : B(s, "value") && this.set(e, t, s.value, null), Reflect.defineProperty(e, t, s);
1496
+ }
1497
+ };
1498
+ function rs(e) {
1499
+ return O(e) ? e.reduce(
1500
+ (t, s) => (t[s] = null, t),
1501
+ {}
1502
+ ) : e;
1503
+ }
1504
+ function Ln(e, t) {
1505
+ return !e || !t ? e || t : O(e) && O(t) ? e.concat(t) : se({}, rs(e), rs(t));
1506
+ }
1507
+ let Vs = !0;
1508
+ function Jo(e) {
1509
+ const t = qi(e), s = e.proxy, n = e.ctx;
1510
+ Vs = !1, t.beforeCreate && Dn(t.beforeCreate, e, "bc");
1511
+ const {
1512
+ // state
1513
+ data: i,
1514
+ computed: r,
1515
+ methods: o,
1516
+ watch: l,
1517
+ provide: c,
1518
+ inject: d,
1519
+ // lifecycle
1520
+ created: u,
1521
+ beforeMount: h,
1522
+ mounted: p,
1523
+ beforeUpdate: b,
1524
+ updated: x,
1525
+ activated: $,
1526
+ deactivated: H,
1527
+ beforeDestroy: I,
1528
+ beforeUnmount: R,
1529
+ destroyed: L,
1530
+ unmounted: T,
1531
+ render: N,
1532
+ renderTracked: V,
1533
+ renderTriggered: Q,
1534
+ errorCaptured: ye,
1535
+ serverPrefetch: Ye,
1536
+ // public API
1537
+ expose: Oe,
1538
+ inheritAttrs: rt,
1539
+ // assets
1540
+ components: ot,
1541
+ directives: Bt,
1542
+ filters: xs
1543
+ } = t;
1544
+ if (d && Go(d, n, null), o)
1545
+ for (const Y in o) {
1546
+ const K = o[Y];
1547
+ F(K) && (n[Y] = K.bind(s));
1548
+ }
1549
+ if (i) {
1550
+ const Y = i.call(s, s);
1551
+ G(Y) && (e.data = on(Y));
1552
+ }
1553
+ if (Vs = !0, r)
1554
+ for (const Y in r) {
1555
+ const K = r[Y], Xe = F(K) ? K.bind(s, s) : F(K.get) ? K.get.bind(s, s) : Pe, Wt = !F(K) && F(K.set) ? K.set.bind(s) : Pe, Qe = gr({
1556
+ get: Xe,
1557
+ set: Wt
1558
+ });
1559
+ Object.defineProperty(n, Y, {
1560
+ enumerable: !0,
1561
+ configurable: !0,
1562
+ get: () => Qe.value,
1563
+ set: (xe) => Qe.value = xe
1564
+ });
1565
+ }
1566
+ if (l)
1567
+ for (const Y in l)
1568
+ Ki(l[Y], n, s, Y);
1569
+ if (c) {
1570
+ const Y = F(c) ? c.call(s) : c;
1571
+ Reflect.ownKeys(Y).forEach((K) => {
1572
+ Ji(K, Y[K]);
1573
+ });
1574
+ }
1575
+ u && Dn(u, e, "c");
1576
+ function ie(Y, K) {
1577
+ O(K) ? K.forEach((Xe) => Y(Xe.bind(s))) : K && Y(K.bind(s));
1578
+ }
1579
+ if (ie(Vi, h), ie(fn, p), ie(Uo, b), ie(ko, x), ie(Do, $), ie(jo, H), ie(Ko, ye), ie(Wo, V), ie(Bo, Q), ie(Bi, R), ie(Wi, T), ie(Vo, Ye), O(Oe))
1580
+ if (Oe.length) {
1581
+ const Y = e.exposed || (e.exposed = {});
1582
+ Oe.forEach((K) => {
1583
+ Object.defineProperty(Y, K, {
1584
+ get: () => s[K],
1585
+ set: (Xe) => s[K] = Xe,
1586
+ enumerable: !0
1587
+ });
1588
+ });
1589
+ } else e.exposed || (e.exposed = {});
1590
+ N && e.render === Pe && (e.render = N), rt != null && (e.inheritAttrs = rt), ot && (e.components = ot), Bt && (e.directives = Bt), Ye && Hi(e);
1591
+ }
1592
+ function Go(e, t, s = Pe) {
1593
+ O(e) && (e = Bs(e));
1594
+ for (const n in e) {
1595
+ const i = e[n];
1596
+ let r;
1597
+ G(i) ? "default" in i ? r = Ft(
1598
+ i.from || n,
1599
+ i.default,
1600
+ !0
1601
+ ) : r = Ft(i.from || n) : r = Ft(i), te(r) ? Object.defineProperty(t, n, {
1602
+ enumerable: !0,
1603
+ configurable: !0,
1604
+ get: () => r.value,
1605
+ set: (o) => r.value = o
1606
+ }) : t[n] = r;
1607
+ }
1608
+ }
1609
+ function Dn(e, t, s) {
1610
+ Ie(
1611
+ O(e) ? e.map((n) => n.bind(t.proxy)) : e.bind(t.proxy),
1612
+ t,
1613
+ s
1614
+ );
1615
+ }
1616
+ function Ki(e, t, s, n) {
1617
+ let i = n.includes(".") ? rr(s, n) : () => s[n];
1618
+ if (Z(e)) {
1619
+ const r = t[e];
1620
+ F(r) && gt(i, r);
1621
+ } else if (F(e))
1622
+ gt(i, e.bind(s));
1623
+ else if (G(e))
1624
+ if (O(e))
1625
+ e.forEach((r) => Ki(r, t, s, n));
1626
+ else {
1627
+ const r = F(e.handler) ? e.handler.bind(s) : t[e.handler];
1628
+ F(r) && gt(i, r, e);
1629
+ }
1630
+ }
1631
+ function qi(e) {
1632
+ const t = e.type, { mixins: s, extends: n } = t, {
1633
+ mixins: i,
1634
+ optionsCache: r,
1635
+ config: { optionMergeStrategies: o }
1636
+ } = e.appContext, l = r.get(t);
1637
+ let c;
1638
+ return l ? c = l : !i.length && !s && !n ? c = t : (c = {}, i.length && i.forEach(
1639
+ (d) => os(c, d, o, !0)
1640
+ ), os(c, t, o)), G(t) && r.set(t, c), c;
1641
+ }
1642
+ function os(e, t, s, n = !1) {
1643
+ const { mixins: i, extends: r } = t;
1644
+ r && os(e, r, s, !0), i && i.forEach(
1645
+ (o) => os(e, o, s, !0)
1646
+ );
1647
+ for (const o in t)
1648
+ if (!(n && o === "expose")) {
1649
+ const l = Yo[o] || s && s[o];
1650
+ e[o] = l ? l(e[o], t[o]) : t[o];
1651
+ }
1652
+ return e;
1653
+ }
1654
+ const Yo = {
1655
+ data: jn,
1656
+ props: Hn,
1657
+ emits: Hn,
1658
+ // objects
1659
+ methods: wt,
1660
+ computed: wt,
1661
+ // lifecycle
1662
+ beforeCreate: re,
1663
+ created: re,
1664
+ beforeMount: re,
1665
+ mounted: re,
1666
+ beforeUpdate: re,
1667
+ updated: re,
1668
+ beforeDestroy: re,
1669
+ beforeUnmount: re,
1670
+ destroyed: re,
1671
+ unmounted: re,
1672
+ activated: re,
1673
+ deactivated: re,
1674
+ errorCaptured: re,
1675
+ serverPrefetch: re,
1676
+ // assets
1677
+ components: wt,
1678
+ directives: wt,
1679
+ // watch
1680
+ watch: Qo,
1681
+ // provide / inject
1682
+ provide: jn,
1683
+ inject: Xo
1684
+ };
1685
+ function jn(e, t) {
1686
+ return t ? e ? function() {
1687
+ return se(
1688
+ F(e) ? e.call(this, this) : e,
1689
+ F(t) ? t.call(this, this) : t
1690
+ );
1691
+ } : t : e;
1692
+ }
1693
+ function Xo(e, t) {
1694
+ return wt(Bs(e), Bs(t));
1695
+ }
1696
+ function Bs(e) {
1697
+ if (O(e)) {
1698
+ const t = {};
1699
+ for (let s = 0; s < e.length; s++)
1700
+ t[e[s]] = e[s];
1701
+ return t;
1702
+ }
1703
+ return e;
1704
+ }
1705
+ function re(e, t) {
1706
+ return e ? [...new Set([].concat(e, t))] : t;
1707
+ }
1708
+ function wt(e, t) {
1709
+ return e ? se(/* @__PURE__ */ Object.create(null), e, t) : t;
1710
+ }
1711
+ function Hn(e, t) {
1712
+ return e ? O(e) && O(t) ? [.../* @__PURE__ */ new Set([...e, ...t])] : se(
1713
+ /* @__PURE__ */ Object.create(null),
1714
+ rs(e),
1715
+ rs(t ?? {})
1716
+ ) : t;
1717
+ }
1718
+ function Qo(e, t) {
1719
+ if (!e) return t;
1720
+ if (!t) return e;
1721
+ const s = se(/* @__PURE__ */ Object.create(null), e);
1722
+ for (const n in t)
1723
+ s[n] = re(e[n], t[n]);
1724
+ return s;
1725
+ }
1726
+ function zi() {
1727
+ return {
1728
+ app: null,
1729
+ config: {
1730
+ isNativeTag: li,
1731
+ performance: !1,
1732
+ globalProperties: {},
1733
+ optionMergeStrategies: {},
1734
+ errorHandler: void 0,
1735
+ warnHandler: void 0,
1736
+ compilerOptions: {}
1737
+ },
1738
+ mixins: [],
1739
+ components: {},
1740
+ directives: {},
1741
+ provides: /* @__PURE__ */ Object.create(null),
1742
+ optionsCache: /* @__PURE__ */ new WeakMap(),
1743
+ propsCache: /* @__PURE__ */ new WeakMap(),
1744
+ emitsCache: /* @__PURE__ */ new WeakMap()
1745
+ };
1746
+ }
1747
+ let Zo = 0;
1748
+ function el(e, t) {
1749
+ return function(n, i = null) {
1750
+ F(n) || (n = se({}, n)), i != null && !G(i) && (i = null);
1751
+ const r = zi(), o = /* @__PURE__ */ new WeakSet(), l = [];
1752
+ let c = !1;
1753
+ const d = r.app = {
1754
+ _uid: Zo++,
1755
+ _component: n,
1756
+ _props: i,
1757
+ _container: null,
1758
+ _context: r,
1759
+ _instance: null,
1760
+ version: Rl,
1761
+ get config() {
1762
+ return r.config;
1763
+ },
1764
+ set config(u) {
1765
+ },
1766
+ use(u, ...h) {
1767
+ return o.has(u) || (u && F(u.install) ? (o.add(u), u.install(d, ...h)) : F(u) && (o.add(u), u(d, ...h))), d;
1768
+ },
1769
+ mixin(u) {
1770
+ return r.mixins.includes(u) || r.mixins.push(u), d;
1771
+ },
1772
+ component(u, h) {
1773
+ return h ? (r.components[u] = h, d) : r.components[u];
1774
+ },
1775
+ directive(u, h) {
1776
+ return h ? (r.directives[u] = h, d) : r.directives[u];
1777
+ },
1778
+ mount(u, h, p) {
1779
+ if (!c) {
1780
+ const b = d._ceVNode || Le(n, i);
1781
+ return b.appContext = r, p === !0 ? p = "svg" : p === !1 && (p = void 0), e(b, u, p), c = !0, d._container = u, u.__vue_app__ = d, _n(b.component);
1782
+ }
1783
+ },
1784
+ onUnmount(u) {
1785
+ l.push(u);
1786
+ },
1787
+ unmount() {
1788
+ c && (Ie(
1789
+ l,
1790
+ d._instance,
1791
+ 16
1792
+ ), e(null, d._container), delete d._container.__vue_app__);
1793
+ },
1794
+ provide(u, h) {
1795
+ return r.provides[u] = h, d;
1796
+ },
1797
+ runWithContext(u) {
1798
+ const h = mt;
1799
+ mt = d;
1800
+ try {
1801
+ return u();
1802
+ } finally {
1803
+ mt = h;
1804
+ }
1805
+ }
1806
+ };
1807
+ return d;
1808
+ };
1809
+ }
1810
+ let mt = null;
1811
+ function Ji(e, t) {
1812
+ if (le) {
1813
+ let s = le.provides;
1814
+ const n = le.parent && le.parent.provides;
1815
+ n === s && (s = le.provides = Object.create(n)), s[e] = t;
1816
+ }
1817
+ }
1818
+ function Ft(e, t, s = !1) {
1819
+ const n = gn();
1820
+ if (n || mt) {
1821
+ let i = mt ? mt._context.provides : n ? n.parent == null || n.ce ? n.vnode.appContext && n.vnode.appContext.provides : n.parent.provides : void 0;
1822
+ if (i && e in i)
1823
+ return i[e];
1824
+ if (arguments.length > 1)
1825
+ return s && F(t) ? t.call(n && n.proxy) : t;
1826
+ }
1827
+ }
1828
+ const Gi = {}, Yi = () => Object.create(Gi), Xi = (e) => Object.getPrototypeOf(e) === Gi;
1829
+ function tl(e, t, s, n = !1) {
1830
+ const i = {}, r = Yi();
1831
+ e.propsDefaults = /* @__PURE__ */ Object.create(null), Qi(e, t, i, r);
1832
+ for (const o in e.propsOptions[0])
1833
+ o in i || (i[o] = void 0);
1834
+ s ? e.props = n ? i : vo(i) : e.type.props ? e.props = i : e.props = r, e.attrs = r;
1835
+ }
1836
+ function sl(e, t, s, n) {
1837
+ const {
1838
+ props: i,
1839
+ attrs: r,
1840
+ vnode: { patchFlag: o }
1841
+ } = e, l = U(i), [c] = e.propsOptions;
1842
+ let d = !1;
1843
+ if (
1844
+ // always force full diff in dev
1845
+ // - #1942 if hmr is enabled with sfc component
1846
+ // - vite#872 non-sfc component used by sfc component
1847
+ (n || o > 0) && !(o & 16)
1848
+ ) {
1849
+ if (o & 8) {
1850
+ const u = e.vnode.dynamicProps;
1851
+ for (let h = 0; h < u.length; h++) {
1852
+ let p = u[h];
1853
+ if (bs(e.emitsOptions, p))
1854
+ continue;
1855
+ const b = t[p];
1856
+ if (c)
1857
+ if (B(r, p))
1858
+ b !== r[p] && (r[p] = b, d = !0);
1859
+ else {
1860
+ const x = De(p);
1861
+ i[x] = Ws(
1862
+ c,
1863
+ l,
1864
+ x,
1865
+ b,
1866
+ e,
1867
+ !1
1868
+ );
1869
+ }
1870
+ else
1871
+ b !== r[p] && (r[p] = b, d = !0);
1872
+ }
1873
+ }
1874
+ } else {
1875
+ Qi(e, t, i, r) && (d = !0);
1876
+ let u;
1877
+ for (const h in l)
1878
+ (!t || // for camelCase
1879
+ !B(t, h) && // it's possible the original props was passed in as kebab-case
1880
+ // and converted to camelCase (#955)
1881
+ ((u = Ge(h)) === h || !B(t, u))) && (c ? s && // for camelCase
1882
+ (s[h] !== void 0 || // for kebab-case
1883
+ s[u] !== void 0) && (i[h] = Ws(
1884
+ c,
1885
+ l,
1886
+ h,
1887
+ void 0,
1888
+ e,
1889
+ !0
1890
+ )) : delete i[h]);
1891
+ if (r !== l)
1892
+ for (const h in r)
1893
+ (!t || !B(t, h)) && (delete r[h], d = !0);
1894
+ }
1895
+ d && Re(e.attrs, "set", "");
1896
+ }
1897
+ function Qi(e, t, s, n) {
1898
+ const [i, r] = e.propsOptions;
1899
+ let o = !1, l;
1900
+ if (t)
1901
+ for (let c in t) {
1902
+ if ($t(c))
1903
+ continue;
1904
+ const d = t[c];
1905
+ let u;
1906
+ i && B(i, u = De(c)) ? !r || !r.includes(u) ? s[u] = d : (l || (l = {}))[u] = d : bs(e.emitsOptions, c) || (!(c in n) || d !== n[c]) && (n[c] = d, o = !0);
1907
+ }
1908
+ if (r) {
1909
+ const c = U(s), d = l || k;
1910
+ for (let u = 0; u < r.length; u++) {
1911
+ const h = r[u];
1912
+ s[h] = Ws(
1913
+ i,
1914
+ c,
1915
+ h,
1916
+ d[h],
1917
+ e,
1918
+ !B(d, h)
1919
+ );
1920
+ }
1921
+ }
1922
+ return o;
1923
+ }
1924
+ function Ws(e, t, s, n, i, r) {
1925
+ const o = e[s];
1926
+ if (o != null) {
1927
+ const l = B(o, "default");
1928
+ if (l && n === void 0) {
1929
+ const c = o.default;
1930
+ if (o.type !== Function && !o.skipFactory && F(c)) {
1931
+ const { propsDefaults: d } = i;
1932
+ if (s in d)
1933
+ n = d[s];
1934
+ else {
1935
+ const u = kt(i);
1936
+ n = d[s] = c.call(
1937
+ null,
1938
+ t
1939
+ ), u();
1940
+ }
1941
+ } else
1942
+ n = c;
1943
+ i.ce && i.ce._setProp(s, n);
1944
+ }
1945
+ o[
1946
+ 0
1947
+ /* shouldCast */
1948
+ ] && (r && !l ? n = !1 : o[
1949
+ 1
1950
+ /* shouldCastTrue */
1951
+ ] && (n === "" || n === Ge(s)) && (n = !0));
1952
+ }
1953
+ return n;
1954
+ }
1955
+ const nl = /* @__PURE__ */ new WeakMap();
1956
+ function Zi(e, t, s = !1) {
1957
+ const n = s ? nl : t.propsCache, i = n.get(e);
1958
+ if (i)
1959
+ return i;
1960
+ const r = e.props, o = {}, l = [];
1961
+ let c = !1;
1962
+ if (!F(e)) {
1963
+ const u = (h) => {
1964
+ c = !0;
1965
+ const [p, b] = Zi(h, t, !0);
1966
+ se(o, p), b && l.push(...b);
1967
+ };
1968
+ !s && t.mixins.length && t.mixins.forEach(u), e.extends && u(e.extends), e.mixins && e.mixins.forEach(u);
1969
+ }
1970
+ if (!r && !c)
1971
+ return G(e) && n.set(e, ft), ft;
1972
+ if (O(r))
1973
+ for (let u = 0; u < r.length; u++) {
1974
+ const h = De(r[u]);
1975
+ Un(h) && (o[h] = k);
1976
+ }
1977
+ else if (r)
1978
+ for (const u in r) {
1979
+ const h = De(u);
1980
+ if (Un(h)) {
1981
+ const p = r[u], b = o[h] = O(p) || F(p) ? { type: p } : se({}, p), x = b.type;
1982
+ let $ = !1, H = !0;
1983
+ if (O(x))
1984
+ for (let I = 0; I < x.length; ++I) {
1985
+ const R = x[I], L = F(R) && R.name;
1986
+ if (L === "Boolean") {
1987
+ $ = !0;
1988
+ break;
1989
+ } else L === "String" && (H = !1);
1990
+ }
1991
+ else
1992
+ $ = F(x) && x.name === "Boolean";
1993
+ b[
1994
+ 0
1995
+ /* shouldCast */
1996
+ ] = $, b[
1997
+ 1
1998
+ /* shouldCastTrue */
1999
+ ] = H, ($ || B(b, "default")) && l.push(h);
2000
+ }
2001
+ }
2002
+ const d = [o, l];
2003
+ return G(e) && n.set(e, d), d;
2004
+ }
2005
+ function Un(e) {
2006
+ return e[0] !== "$" && !$t(e);
2007
+ }
2008
+ const dn = (e) => e === "_" || e === "_ctx" || e === "$stable", hn = (e) => O(e) ? e.map($e) : [$e(e)], il = (e, t, s) => {
2009
+ if (t._n)
2010
+ return t;
2011
+ const n = Oo((...i) => hn(t(...i)), s);
2012
+ return n._c = !1, n;
2013
+ }, er = (e, t, s) => {
2014
+ const n = e._ctx;
2015
+ for (const i in e) {
2016
+ if (dn(i)) continue;
2017
+ const r = e[i];
2018
+ if (F(r))
2019
+ t[i] = il(i, r, n);
2020
+ else if (r != null) {
2021
+ const o = hn(r);
2022
+ t[i] = () => o;
2023
+ }
2024
+ }
2025
+ }, tr = (e, t) => {
2026
+ const s = hn(t);
2027
+ e.slots.default = () => s;
2028
+ }, sr = (e, t, s) => {
2029
+ for (const n in t)
2030
+ (s || !dn(n)) && (e[n] = t[n]);
2031
+ }, rl = (e, t, s) => {
2032
+ const n = e.slots = Yi();
2033
+ if (e.vnode.shapeFlag & 32) {
2034
+ const i = t._;
2035
+ i ? (sr(n, t, s), s && hi(n, "_", i, !0)) : er(t, n);
2036
+ } else t && tr(e, t);
2037
+ }, ol = (e, t, s) => {
2038
+ const { vnode: n, slots: i } = e;
2039
+ let r = !0, o = k;
2040
+ if (n.shapeFlag & 32) {
2041
+ const l = t._;
2042
+ l ? s && l === 1 ? r = !1 : sr(i, t, s) : (r = !t.$stable, er(t, i)), o = t;
2043
+ } else t && (tr(e, t), o = { default: 1 });
2044
+ if (r)
2045
+ for (const l in i)
2046
+ !dn(l) && o[l] == null && delete i[l];
2047
+ }, he = xl;
2048
+ function ll(e) {
2049
+ return cl(e);
2050
+ }
2051
+ function cl(e, t) {
2052
+ const s = ds();
2053
+ s.__VUE__ = !0;
2054
+ const {
2055
+ insert: n,
2056
+ remove: i,
2057
+ patchProp: r,
2058
+ createElement: o,
2059
+ createText: l,
2060
+ createComment: c,
2061
+ setText: d,
2062
+ setElementText: u,
2063
+ parentNode: h,
2064
+ nextSibling: p,
2065
+ setScopeId: b = Pe,
2066
+ insertStaticContent: x
2067
+ } = e, $ = (a, f, m, v = null, g = null, _ = null, S = void 0, E = null, C = !!f.dynamicChildren) => {
2068
+ if (a === f)
2069
+ return;
2070
+ a && !St(a, f) && (v = Kt(a), xe(a, g, _, !0), a = null), f.patchFlag === -2 && (C = !1, f.dynamicChildren = null);
2071
+ const { type: y, ref: P, shapeFlag: w } = f;
2072
+ switch (y) {
2073
+ case vs:
2074
+ H(a, f, m, v);
2075
+ break;
2076
+ case qe:
2077
+ I(a, f, m, v);
2078
+ break;
2079
+ case Ms:
2080
+ a == null && R(f, m, v, S);
2081
+ break;
2082
+ case _e:
2083
+ ot(
2084
+ a,
2085
+ f,
2086
+ m,
2087
+ v,
2088
+ g,
2089
+ _,
2090
+ S,
2091
+ E,
2092
+ C
2093
+ );
2094
+ break;
2095
+ default:
2096
+ w & 1 ? N(
2097
+ a,
2098
+ f,
2099
+ m,
2100
+ v,
2101
+ g,
2102
+ _,
2103
+ S,
2104
+ E,
2105
+ C
2106
+ ) : w & 6 ? Bt(
2107
+ a,
2108
+ f,
2109
+ m,
2110
+ v,
2111
+ g,
2112
+ _,
2113
+ S,
2114
+ E,
2115
+ C
2116
+ ) : (w & 64 || w & 128) && y.process(
2117
+ a,
2118
+ f,
2119
+ m,
2120
+ v,
2121
+ g,
2122
+ _,
2123
+ S,
2124
+ E,
2125
+ C,
2126
+ xt
2127
+ );
2128
+ }
2129
+ P != null && g ? It(P, a && a.ref, _, f || a, !f) : P == null && a && a.ref != null && It(a.ref, null, _, a, !0);
2130
+ }, H = (a, f, m, v) => {
2131
+ if (a == null)
2132
+ n(
2133
+ f.el = l(f.children),
2134
+ m,
2135
+ v
2136
+ );
2137
+ else {
2138
+ const g = f.el = a.el;
2139
+ f.children !== a.children && d(g, f.children);
2140
+ }
2141
+ }, I = (a, f, m, v) => {
2142
+ a == null ? n(
2143
+ f.el = c(f.children || ""),
2144
+ m,
2145
+ v
2146
+ ) : f.el = a.el;
2147
+ }, R = (a, f, m, v) => {
2148
+ [a.el, a.anchor] = x(
2149
+ a.children,
2150
+ f,
2151
+ m,
2152
+ v,
2153
+ a.el,
2154
+ a.anchor
2155
+ );
2156
+ }, L = ({ el: a, anchor: f }, m, v) => {
2157
+ let g;
2158
+ for (; a && a !== f; )
2159
+ g = p(a), n(a, m, v), a = g;
2160
+ n(f, m, v);
2161
+ }, T = ({ el: a, anchor: f }) => {
2162
+ let m;
2163
+ for (; a && a !== f; )
2164
+ m = p(a), i(a), a = m;
2165
+ i(f);
2166
+ }, N = (a, f, m, v, g, _, S, E, C) => {
2167
+ f.type === "svg" ? S = "svg" : f.type === "math" && (S = "mathml"), a == null ? V(
2168
+ f,
2169
+ m,
2170
+ v,
2171
+ g,
2172
+ _,
2173
+ S,
2174
+ E,
2175
+ C
2176
+ ) : Ye(
2177
+ a,
2178
+ f,
2179
+ g,
2180
+ _,
2181
+ S,
2182
+ E,
2183
+ C
2184
+ );
2185
+ }, V = (a, f, m, v, g, _, S, E) => {
2186
+ let C, y;
2187
+ const { props: P, shapeFlag: w, transition: A, dirs: M } = a;
2188
+ if (C = a.el = o(
2189
+ a.type,
2190
+ _,
2191
+ P && P.is,
2192
+ P
2193
+ ), w & 8 ? u(C, a.children) : w & 16 && ye(
2194
+ a.children,
2195
+ C,
2196
+ null,
2197
+ v,
2198
+ g,
2199
+ Is(a, _),
2200
+ S,
2201
+ E
2202
+ ), M && Ze(a, null, v, "created"), Q(C, a, a.scopeId, S, v), P) {
2203
+ for (const q in P)
2204
+ q !== "value" && !$t(q) && r(C, q, null, P[q], _, v);
2205
+ "value" in P && r(C, "value", null, P.value, _), (y = P.onVnodeBeforeMount) && we(y, v, a);
2206
+ }
2207
+ M && Ze(a, null, v, "beforeMount");
2208
+ const D = al(g, A);
2209
+ D && A.beforeEnter(C), n(C, f, m), ((y = P && P.onVnodeMounted) || D || M) && he(() => {
2210
+ y && we(y, v, a), D && A.enter(C), M && Ze(a, null, v, "mounted");
2211
+ }, g);
2212
+ }, Q = (a, f, m, v, g) => {
2213
+ if (m && b(a, m), v)
2214
+ for (let _ = 0; _ < v.length; _++)
2215
+ b(a, v[_]);
2216
+ if (g) {
2217
+ let _ = g.subTree;
2218
+ if (f === _ || cr(_.type) && (_.ssContent === f || _.ssFallback === f)) {
2219
+ const S = g.vnode;
2220
+ Q(
2221
+ a,
2222
+ S,
2223
+ S.scopeId,
2224
+ S.slotScopeIds,
2225
+ g.parent
2226
+ );
2227
+ }
2228
+ }
2229
+ }, ye = (a, f, m, v, g, _, S, E, C = 0) => {
2230
+ for (let y = C; y < a.length; y++) {
2231
+ const P = a[y] = E ? Be(a[y]) : $e(a[y]);
2232
+ $(
2233
+ null,
2234
+ P,
2235
+ f,
2236
+ m,
2237
+ v,
2238
+ g,
2239
+ _,
2240
+ S,
2241
+ E
2242
+ );
2243
+ }
2244
+ }, Ye = (a, f, m, v, g, _, S) => {
2245
+ const E = f.el = a.el;
2246
+ let { patchFlag: C, dynamicChildren: y, dirs: P } = f;
2247
+ C |= a.patchFlag & 16;
2248
+ const w = a.props || k, A = f.props || k;
2249
+ let M;
2250
+ if (m && et(m, !1), (M = A.onVnodeBeforeUpdate) && we(M, m, f, a), P && Ze(f, a, m, "beforeUpdate"), m && et(m, !0), (w.innerHTML && A.innerHTML == null || w.textContent && A.textContent == null) && u(E, ""), y ? Oe(
2251
+ a.dynamicChildren,
2252
+ y,
2253
+ E,
2254
+ m,
2255
+ v,
2256
+ Is(f, g),
2257
+ _
2258
+ ) : S || K(
2259
+ a,
2260
+ f,
2261
+ E,
2262
+ null,
2263
+ m,
2264
+ v,
2265
+ Is(f, g),
2266
+ _,
2267
+ !1
2268
+ ), C > 0) {
2269
+ if (C & 16)
2270
+ rt(E, w, A, m, g);
2271
+ else if (C & 2 && w.class !== A.class && r(E, "class", null, A.class, g), C & 4 && r(E, "style", w.style, A.style, g), C & 8) {
2272
+ const D = f.dynamicProps;
2273
+ for (let q = 0; q < D.length; q++) {
2274
+ const W = D[q], ce = w[W], ae = A[W];
2275
+ (ae !== ce || W === "value") && r(E, W, ce, ae, g, m);
2276
+ }
2277
+ }
2278
+ C & 1 && a.children !== f.children && u(E, f.children);
2279
+ } else !S && y == null && rt(E, w, A, m, g);
2280
+ ((M = A.onVnodeUpdated) || P) && he(() => {
2281
+ M && we(M, m, f, a), P && Ze(f, a, m, "updated");
2282
+ }, v);
2283
+ }, Oe = (a, f, m, v, g, _, S) => {
2284
+ for (let E = 0; E < f.length; E++) {
2285
+ const C = a[E], y = f[E], P = (
2286
+ // oldVNode may be an errored async setup() component inside Suspense
2287
+ // which will not have a mounted element
2288
+ C.el && // - In the case of a Fragment, we need to provide the actual parent
2289
+ // of the Fragment itself so it can move its children.
2290
+ (C.type === _e || // - In the case of different nodes, there is going to be a replacement
2291
+ // which also requires the correct parent container
2292
+ !St(C, y) || // - In the case of a component, it could contain anything.
2293
+ C.shapeFlag & 198) ? h(C.el) : (
2294
+ // In other cases, the parent container is not actually used so we
2295
+ // just pass the block element here to avoid a DOM parentNode call.
2296
+ m
2297
+ )
2298
+ );
2299
+ $(
2300
+ C,
2301
+ y,
2302
+ P,
2303
+ null,
2304
+ v,
2305
+ g,
2306
+ _,
2307
+ S,
2308
+ !0
2309
+ );
2310
+ }
2311
+ }, rt = (a, f, m, v, g) => {
2312
+ if (f !== m) {
2313
+ if (f !== k)
2314
+ for (const _ in f)
2315
+ !$t(_) && !(_ in m) && r(
2316
+ a,
2317
+ _,
2318
+ f[_],
2319
+ null,
2320
+ g,
2321
+ v
2322
+ );
2323
+ for (const _ in m) {
2324
+ if ($t(_)) continue;
2325
+ const S = m[_], E = f[_];
2326
+ S !== E && _ !== "value" && r(a, _, E, S, g, v);
2327
+ }
2328
+ "value" in m && r(a, "value", f.value, m.value, g);
2329
+ }
2330
+ }, ot = (a, f, m, v, g, _, S, E, C) => {
2331
+ const y = f.el = a ? a.el : l(""), P = f.anchor = a ? a.anchor : l("");
2332
+ let { patchFlag: w, dynamicChildren: A, slotScopeIds: M } = f;
2333
+ M && (E = E ? E.concat(M) : M), a == null ? (n(y, m, v), n(P, m, v), ye(
2334
+ // #10007
2335
+ // such fragment like `<></>` will be compiled into
2336
+ // a fragment which doesn't have a children.
2337
+ // In this case fallback to an empty array
2338
+ f.children || [],
2339
+ m,
2340
+ P,
2341
+ g,
2342
+ _,
2343
+ S,
2344
+ E,
2345
+ C
2346
+ )) : w > 0 && w & 64 && A && // #2715 the previous fragment could've been a BAILed one as a result
2347
+ // of renderSlot() with no valid children
2348
+ a.dynamicChildren ? (Oe(
2349
+ a.dynamicChildren,
2350
+ A,
2351
+ m,
2352
+ g,
2353
+ _,
2354
+ S,
2355
+ E
2356
+ ), // #2080 if the stable fragment has a key, it's a <template v-for> that may
2357
+ // get moved around. Make sure all root level vnodes inherit el.
2358
+ // #2134 or if it's a component root, it may also get moved around
2359
+ // as the component is being moved.
2360
+ (f.key != null || g && f === g.subTree) && nr(
2361
+ a,
2362
+ f,
2363
+ !0
2364
+ /* shallow */
2365
+ )) : K(
2366
+ a,
2367
+ f,
2368
+ m,
2369
+ P,
2370
+ g,
2371
+ _,
2372
+ S,
2373
+ E,
2374
+ C
2375
+ );
2376
+ }, Bt = (a, f, m, v, g, _, S, E, C) => {
2377
+ f.slotScopeIds = E, a == null ? f.shapeFlag & 512 ? g.ctx.activate(
2378
+ f,
2379
+ m,
2380
+ v,
2381
+ S,
2382
+ C
2383
+ ) : xs(
2384
+ f,
2385
+ m,
2386
+ v,
2387
+ g,
2388
+ _,
2389
+ S,
2390
+ C
2391
+ ) : Cn(a, f, C);
2392
+ }, xs = (a, f, m, v, g, _, S) => {
2393
+ const E = a.component = Pl(
2394
+ a,
2395
+ v,
2396
+ g
2397
+ );
2398
+ if (Ui(a) && (E.ctx.renderer = xt), Il(E, !1, S), E.asyncDep) {
2399
+ if (g && g.registerDep(E, ie, S), !a.el) {
2400
+ const C = E.subTree = Le(qe);
2401
+ I(null, C, f, m), a.placeholder = C.el;
2402
+ }
2403
+ } else
2404
+ ie(
2405
+ E,
2406
+ a,
2407
+ f,
2408
+ m,
2409
+ g,
2410
+ _,
2411
+ S
2412
+ );
2413
+ }, Cn = (a, f, m) => {
2414
+ const v = f.component = a.component;
2415
+ if (vl(a, f, m))
2416
+ if (v.asyncDep && !v.asyncResolved) {
2417
+ Y(v, f, m);
2418
+ return;
2419
+ } else
2420
+ v.next = f, v.update();
2421
+ else
2422
+ f.el = a.el, v.vnode = f;
2423
+ }, ie = (a, f, m, v, g, _, S) => {
2424
+ const E = () => {
2425
+ if (a.isMounted) {
2426
+ let { next: w, bu: A, u: M, parent: D, vnode: q } = a;
2427
+ {
2428
+ const Ee = ir(a);
2429
+ if (Ee) {
2430
+ w && (w.el = q.el, Y(a, w, S)), Ee.asyncDep.then(() => {
2431
+ a.isUnmounted || E();
2432
+ });
2433
+ return;
2434
+ }
2435
+ }
2436
+ let W = w, ce;
2437
+ et(a, !1), w ? (w.el = q.el, Y(a, w, S)) : w = q, A && Ss(A), (ce = w.props && w.props.onVnodeBeforeUpdate) && we(ce, D, w, q), et(a, !0);
2438
+ const ae = Bn(a), Ce = a.subTree;
2439
+ a.subTree = ae, $(
2440
+ Ce,
2441
+ ae,
2442
+ // parent may have changed if it's in a teleport
2443
+ h(Ce.el),
2444
+ // anchor may have changed if it's in a fragment
2445
+ Kt(Ce),
2446
+ a,
2447
+ g,
2448
+ _
2449
+ ), w.el = ae.el, W === null && yl(a, ae.el), M && he(M, g), (ce = w.props && w.props.onVnodeUpdated) && he(
2450
+ () => we(ce, D, w, q),
2451
+ g
2452
+ );
2453
+ } else {
2454
+ let w;
2455
+ const { el: A, props: M } = f, { bm: D, m: q, parent: W, root: ce, type: ae } = a, Ce = Mt(f);
2456
+ et(a, !1), D && Ss(D), !Ce && (w = M && M.onVnodeBeforeMount) && we(w, W, f), et(a, !0);
2457
+ {
2458
+ ce.ce && // @ts-expect-error _def is private
2459
+ ce.ce._def.shadowRoot !== !1 && ce.ce._injectChildStyle(ae);
2460
+ const Ee = a.subTree = Bn(a);
2461
+ $(
2462
+ null,
2463
+ Ee,
2464
+ m,
2465
+ v,
2466
+ a,
2467
+ g,
2468
+ _
2469
+ ), f.el = Ee.el;
2470
+ }
2471
+ if (q && he(q, g), !Ce && (w = M && M.onVnodeMounted)) {
2472
+ const Ee = f;
2473
+ he(
2474
+ () => we(w, W, Ee),
2475
+ g
2476
+ );
2477
+ }
2478
+ (f.shapeFlag & 256 || W && Mt(W.vnode) && W.vnode.shapeFlag & 256) && a.a && he(a.a, g), a.isMounted = !0, f = m = v = null;
2479
+ }
2480
+ };
2481
+ a.scope.on();
2482
+ const C = a.effect = new _i(E);
2483
+ a.scope.off();
2484
+ const y = a.update = C.run.bind(C), P = a.job = C.runIfDirty.bind(C);
2485
+ P.i = a, P.id = a.uid, C.scheduler = () => an(P), et(a, !0), y();
2486
+ }, Y = (a, f, m) => {
2487
+ f.component = a;
2488
+ const v = a.vnode.props;
2489
+ a.vnode = f, a.next = null, sl(a, f.props, v, m), ol(a, f.children, m), je(), Fn(a), He();
2490
+ }, K = (a, f, m, v, g, _, S, E, C = !1) => {
2491
+ const y = a && a.children, P = a ? a.shapeFlag : 0, w = f.children, { patchFlag: A, shapeFlag: M } = f;
2492
+ if (A > 0) {
2493
+ if (A & 128) {
2494
+ Wt(
2495
+ y,
2496
+ w,
2497
+ m,
2498
+ v,
2499
+ g,
2500
+ _,
2501
+ S,
2502
+ E,
2503
+ C
2504
+ );
2505
+ return;
2506
+ } else if (A & 256) {
2507
+ Xe(
2508
+ y,
2509
+ w,
2510
+ m,
2511
+ v,
2512
+ g,
2513
+ _,
2514
+ S,
2515
+ E,
2516
+ C
2517
+ );
2518
+ return;
2519
+ }
2520
+ }
2521
+ M & 8 ? (P & 16 && yt(y, g, _), w !== y && u(m, w)) : P & 16 ? M & 16 ? Wt(
2522
+ y,
2523
+ w,
2524
+ m,
2525
+ v,
2526
+ g,
2527
+ _,
2528
+ S,
2529
+ E,
2530
+ C
2531
+ ) : yt(y, g, _, !0) : (P & 8 && u(m, ""), M & 16 && ye(
2532
+ w,
2533
+ m,
2534
+ v,
2535
+ g,
2536
+ _,
2537
+ S,
2538
+ E,
2539
+ C
2540
+ ));
2541
+ }, Xe = (a, f, m, v, g, _, S, E, C) => {
2542
+ a = a || ft, f = f || ft;
2543
+ const y = a.length, P = f.length, w = Math.min(y, P);
2544
+ let A;
2545
+ for (A = 0; A < w; A++) {
2546
+ const M = f[A] = C ? Be(f[A]) : $e(f[A]);
2547
+ $(
2548
+ a[A],
2549
+ M,
2550
+ m,
2551
+ null,
2552
+ g,
2553
+ _,
2554
+ S,
2555
+ E,
2556
+ C
2557
+ );
2558
+ }
2559
+ y > P ? yt(
2560
+ a,
2561
+ g,
2562
+ _,
2563
+ !0,
2564
+ !1,
2565
+ w
2566
+ ) : ye(
2567
+ f,
2568
+ m,
2569
+ v,
2570
+ g,
2571
+ _,
2572
+ S,
2573
+ E,
2574
+ C,
2575
+ w
2576
+ );
2577
+ }, Wt = (a, f, m, v, g, _, S, E, C) => {
2578
+ let y = 0;
2579
+ const P = f.length;
2580
+ let w = a.length - 1, A = P - 1;
2581
+ for (; y <= w && y <= A; ) {
2582
+ const M = a[y], D = f[y] = C ? Be(f[y]) : $e(f[y]);
2583
+ if (St(M, D))
2584
+ $(
2585
+ M,
2586
+ D,
2587
+ m,
2588
+ null,
2589
+ g,
2590
+ _,
2591
+ S,
2592
+ E,
2593
+ C
2594
+ );
2595
+ else
2596
+ break;
2597
+ y++;
2598
+ }
2599
+ for (; y <= w && y <= A; ) {
2600
+ const M = a[w], D = f[A] = C ? Be(f[A]) : $e(f[A]);
2601
+ if (St(M, D))
2602
+ $(
2603
+ M,
2604
+ D,
2605
+ m,
2606
+ null,
2607
+ g,
2608
+ _,
2609
+ S,
2610
+ E,
2611
+ C
2612
+ );
2613
+ else
2614
+ break;
2615
+ w--, A--;
2616
+ }
2617
+ if (y > w) {
2618
+ if (y <= A) {
2619
+ const M = A + 1, D = M < P ? f[M].el : v;
2620
+ for (; y <= A; )
2621
+ $(
2622
+ null,
2623
+ f[y] = C ? Be(f[y]) : $e(f[y]),
2624
+ m,
2625
+ D,
2626
+ g,
2627
+ _,
2628
+ S,
2629
+ E,
2630
+ C
2631
+ ), y++;
2632
+ }
2633
+ } else if (y > A)
2634
+ for (; y <= w; )
2635
+ xe(a[y], g, _, !0), y++;
2636
+ else {
2637
+ const M = y, D = y, q = /* @__PURE__ */ new Map();
2638
+ for (y = D; y <= A; y++) {
2639
+ const de = f[y] = C ? Be(f[y]) : $e(f[y]);
2640
+ de.key != null && q.set(de.key, y);
2641
+ }
2642
+ let W, ce = 0;
2643
+ const ae = A - D + 1;
2644
+ let Ce = !1, Ee = 0;
2645
+ const Ct = new Array(ae);
2646
+ for (y = 0; y < ae; y++) Ct[y] = 0;
2647
+ for (y = M; y <= w; y++) {
2648
+ const de = a[y];
2649
+ if (ce >= ae) {
2650
+ xe(de, g, _, !0);
2651
+ continue;
2652
+ }
2653
+ let Se;
2654
+ if (de.key != null)
2655
+ Se = q.get(de.key);
2656
+ else
2657
+ for (W = D; W <= A; W++)
2658
+ if (Ct[W - D] === 0 && St(de, f[W])) {
2659
+ Se = W;
2660
+ break;
2661
+ }
2662
+ Se === void 0 ? xe(de, g, _, !0) : (Ct[Se - D] = y + 1, Se >= Ee ? Ee = Se : Ce = !0, $(
2663
+ de,
2664
+ f[Se],
2665
+ m,
2666
+ null,
2667
+ g,
2668
+ _,
2669
+ S,
2670
+ E,
2671
+ C
2672
+ ), ce++);
2673
+ }
2674
+ const wn = Ce ? ul(Ct) : ft;
2675
+ for (W = wn.length - 1, y = ae - 1; y >= 0; y--) {
2676
+ const de = D + y, Se = f[de], Tn = f[de + 1], $n = de + 1 < P ? (
2677
+ // #13559, fallback to el placeholder for unresolved async component
2678
+ Tn.el || Tn.placeholder
2679
+ ) : v;
2680
+ Ct[y] === 0 ? $(
2681
+ null,
2682
+ Se,
2683
+ m,
2684
+ $n,
2685
+ g,
2686
+ _,
2687
+ S,
2688
+ E,
2689
+ C
2690
+ ) : Ce && (W < 0 || y !== wn[W] ? Qe(Se, m, $n, 2) : W--);
2691
+ }
2692
+ }
2693
+ }, Qe = (a, f, m, v, g = null) => {
2694
+ const { el: _, type: S, transition: E, children: C, shapeFlag: y } = a;
2695
+ if (y & 6) {
2696
+ Qe(a.component.subTree, f, m, v);
2697
+ return;
2698
+ }
2699
+ if (y & 128) {
2700
+ a.suspense.move(f, m, v);
2701
+ return;
2702
+ }
2703
+ if (y & 64) {
2704
+ S.move(a, f, m, xt);
2705
+ return;
2706
+ }
2707
+ if (S === _e) {
2708
+ n(_, f, m);
2709
+ for (let w = 0; w < C.length; w++)
2710
+ Qe(C[w], f, m, v);
2711
+ n(a.anchor, f, m);
2712
+ return;
2713
+ }
2714
+ if (S === Ms) {
2715
+ L(a, f, m);
2716
+ return;
2717
+ }
2718
+ if (v !== 2 && y & 1 && E)
2719
+ if (v === 0)
2720
+ E.beforeEnter(_), n(_, f, m), he(() => E.enter(_), g);
2721
+ else {
2722
+ const { leave: w, delayLeave: A, afterLeave: M } = E, D = () => {
2723
+ a.ctx.isUnmounted ? i(_) : n(_, f, m);
2724
+ }, q = () => {
2725
+ _._isLeaving && _[Ro](
2726
+ !0
2727
+ /* cancelled */
2728
+ ), w(_, () => {
2729
+ D(), M && M();
2730
+ });
2731
+ };
2732
+ A ? A(_, D, q) : q();
2733
+ }
2734
+ else
2735
+ n(_, f, m);
2736
+ }, xe = (a, f, m, v = !1, g = !1) => {
2737
+ const {
2738
+ type: _,
2739
+ props: S,
2740
+ ref: E,
2741
+ children: C,
2742
+ dynamicChildren: y,
2743
+ shapeFlag: P,
2744
+ patchFlag: w,
2745
+ dirs: A,
2746
+ cacheIndex: M
2747
+ } = a;
2748
+ if (w === -2 && (g = !1), E != null && (je(), It(E, null, m, a, !0), He()), M != null && (f.renderCache[M] = void 0), P & 256) {
2749
+ f.ctx.deactivate(a);
2750
+ return;
2751
+ }
2752
+ const D = P & 1 && A, q = !Mt(a);
2753
+ let W;
2754
+ if (q && (W = S && S.onVnodeBeforeUnmount) && we(W, f, a), P & 6)
2755
+ Rr(a.component, m, v);
2756
+ else {
2757
+ if (P & 128) {
2758
+ a.suspense.unmount(m, v);
2759
+ return;
2760
+ }
2761
+ D && Ze(a, null, f, "beforeUnmount"), P & 64 ? a.type.remove(
2762
+ a,
2763
+ f,
2764
+ m,
2765
+ xt,
2766
+ v
2767
+ ) : y && // #5154
2768
+ // when v-once is used inside a block, setBlockTracking(-1) marks the
2769
+ // parent block with hasOnce: true
2770
+ // so that it doesn't take the fast path during unmount - otherwise
2771
+ // components nested in v-once are never unmounted.
2772
+ !y.hasOnce && // #1153: fast path should not be taken for non-stable (v-for) fragments
2773
+ (_ !== _e || w > 0 && w & 64) ? yt(
2774
+ y,
2775
+ f,
2776
+ m,
2777
+ !1,
2778
+ !0
2779
+ ) : (_ === _e && w & 384 || !g && P & 16) && yt(C, f, m), v && En(a);
2780
+ }
2781
+ (q && (W = S && S.onVnodeUnmounted) || D) && he(() => {
2782
+ W && we(W, f, a), D && Ze(a, null, f, "unmounted");
2783
+ }, m);
2784
+ }, En = (a) => {
2785
+ const { type: f, el: m, anchor: v, transition: g } = a;
2786
+ if (f === _e) {
2787
+ Nr(m, v);
2788
+ return;
2789
+ }
2790
+ if (f === Ms) {
2791
+ T(a);
2792
+ return;
2793
+ }
2794
+ const _ = () => {
2795
+ i(m), g && !g.persisted && g.afterLeave && g.afterLeave();
2796
+ };
2797
+ if (a.shapeFlag & 1 && g && !g.persisted) {
2798
+ const { leave: S, delayLeave: E } = g, C = () => S(m, _);
2799
+ E ? E(a.el, _, C) : C();
2800
+ } else
2801
+ _();
2802
+ }, Nr = (a, f) => {
2803
+ let m;
2804
+ for (; a !== f; )
2805
+ m = p(a), i(a), a = m;
2806
+ i(f);
2807
+ }, Rr = (a, f, m) => {
2808
+ const { bum: v, scope: g, job: _, subTree: S, um: E, m: C, a: y } = a;
2809
+ kn(C), kn(y), v && Ss(v), g.stop(), _ && (_.flags |= 8, xe(S, a, f, m)), E && he(E, f), he(() => {
2810
+ a.isUnmounted = !0;
2811
+ }, f);
2812
+ }, yt = (a, f, m, v = !1, g = !1, _ = 0) => {
2813
+ for (let S = _; S < a.length; S++)
2814
+ xe(a[S], f, m, v, g);
2815
+ }, Kt = (a) => {
2816
+ if (a.shapeFlag & 6)
2817
+ return Kt(a.component.subTree);
2818
+ if (a.shapeFlag & 128)
2819
+ return a.suspense.next();
2820
+ const f = p(a.anchor || a.el), m = f && f[Fo];
2821
+ return m ? p(m) : f;
2822
+ };
2823
+ let Cs = !1;
2824
+ const Sn = (a, f, m) => {
2825
+ a == null ? f._vnode && xe(f._vnode, null, null, !0) : $(
2826
+ f._vnode || null,
2827
+ a,
2828
+ f,
2829
+ null,
2830
+ null,
2831
+ null,
2832
+ m
2833
+ ), f._vnode = a, Cs || (Cs = !0, Fn(), Ri(), Cs = !1);
2834
+ }, xt = {
2835
+ p: $,
2836
+ um: xe,
2837
+ m: Qe,
2838
+ r: En,
2839
+ mt: xs,
2840
+ mc: ye,
2841
+ pc: K,
2842
+ pbc: Oe,
2843
+ n: Kt,
2844
+ o: e
2845
+ };
2846
+ return {
2847
+ render: Sn,
2848
+ hydrate: void 0,
2849
+ createApp: el(Sn)
2850
+ };
2851
+ }
2852
+ function Is({ type: e, props: t }, s) {
2853
+ return s === "svg" && e === "foreignObject" || s === "mathml" && e === "annotation-xml" && t && t.encoding && t.encoding.includes("html") ? void 0 : s;
2854
+ }
2855
+ function et({ effect: e, job: t }, s) {
2856
+ s ? (e.flags |= 32, t.flags |= 4) : (e.flags &= -33, t.flags &= -5);
2857
+ }
2858
+ function al(e, t) {
2859
+ return (!e || e && !e.pendingBranch) && t && !t.persisted;
2860
+ }
2861
+ function nr(e, t, s = !1) {
2862
+ const n = e.children, i = t.children;
2863
+ if (O(n) && O(i))
2864
+ for (let r = 0; r < n.length; r++) {
2865
+ const o = n[r];
2866
+ let l = i[r];
2867
+ l.shapeFlag & 1 && !l.dynamicChildren && ((l.patchFlag <= 0 || l.patchFlag === 32) && (l = i[r] = Be(i[r]), l.el = o.el), !s && l.patchFlag !== -2 && nr(o, l)), l.type === vs && // avoid cached text nodes retaining detached dom nodes
2868
+ l.patchFlag !== -1 && (l.el = o.el), l.type === qe && !l.el && (l.el = o.el);
2869
+ }
2870
+ }
2871
+ function ul(e) {
2872
+ const t = e.slice(), s = [0];
2873
+ let n, i, r, o, l;
2874
+ const c = e.length;
2875
+ for (n = 0; n < c; n++) {
2876
+ const d = e[n];
2877
+ if (d !== 0) {
2878
+ if (i = s[s.length - 1], e[i] < d) {
2879
+ t[n] = i, s.push(n);
2880
+ continue;
2881
+ }
2882
+ for (r = 0, o = s.length - 1; r < o; )
2883
+ l = r + o >> 1, e[s[l]] < d ? r = l + 1 : o = l;
2884
+ d < e[s[r]] && (r > 0 && (t[n] = s[r - 1]), s[r] = n);
2885
+ }
2886
+ }
2887
+ for (r = s.length, o = s[r - 1]; r-- > 0; )
2888
+ s[r] = o, o = t[o];
2889
+ return s;
2890
+ }
2891
+ function ir(e) {
2892
+ const t = e.subTree.component;
2893
+ if (t)
2894
+ return t.asyncDep && !t.asyncResolved ? t : ir(t);
2895
+ }
2896
+ function kn(e) {
2897
+ if (e)
2898
+ for (let t = 0; t < e.length; t++)
2899
+ e[t].flags |= 8;
2900
+ }
2901
+ const fl = Symbol.for("v-scx"), dl = () => Ft(fl);
2902
+ function hl(e, t) {
2903
+ return pn(
2904
+ e,
2905
+ null,
2906
+ { flush: "sync" }
2907
+ );
2908
+ }
2909
+ function gt(e, t, s) {
2910
+ return pn(e, t, s);
2911
+ }
2912
+ function pn(e, t, s = k) {
2913
+ const { immediate: n, deep: i, flush: r, once: o } = s, l = se({}, s), c = t && n || !t && r !== "post";
2914
+ let d;
2915
+ if (Ht) {
2916
+ if (r === "sync") {
2917
+ const b = dl();
2918
+ d = b.__watcherHandles || (b.__watcherHandles = []);
2919
+ } else if (!c) {
2920
+ const b = () => {
2921
+ };
2922
+ return b.stop = Pe, b.resume = Pe, b.pause = Pe, b;
2923
+ }
2924
+ }
2925
+ const u = le;
2926
+ l.call = (b, x, $) => Ie(b, u, x, $);
2927
+ let h = !1;
2928
+ r === "post" ? l.scheduler = (b) => {
2929
+ he(b, u && u.suspense);
2930
+ } : r !== "sync" && (h = !0, l.scheduler = (b, x) => {
2931
+ x ? b() : an(b);
2932
+ }), l.augmentJob = (b) => {
2933
+ t && (b.flags |= 4), h && (b.flags |= 2, u && (b.id = u.uid, b.i = u));
2934
+ };
2935
+ const p = Ao(e, t, l);
2936
+ return Ht && (d ? d.push(p) : c && p()), p;
2937
+ }
2938
+ function pl(e, t, s) {
2939
+ const n = this.proxy, i = Z(e) ? e.includes(".") ? rr(n, e) : () => n[e] : e.bind(n, n);
2940
+ let r;
2941
+ F(t) ? r = t : (r = t.handler, s = t);
2942
+ const o = kt(this), l = pn(i, r.bind(n), s);
2943
+ return o(), l;
2944
+ }
2945
+ function rr(e, t) {
2946
+ const s = t.split(".");
2947
+ return () => {
2948
+ let n = e;
2949
+ for (let i = 0; i < s.length && n; i++)
2950
+ n = n[s[i]];
2951
+ return n;
2952
+ };
2953
+ }
2954
+ function Vn(e, t, s = k) {
2955
+ const n = gn(), i = De(t), r = Ge(t), o = or(e, i), l = So((c, d) => {
2956
+ let u, h = k, p;
2957
+ return hl(() => {
2958
+ const b = e[i];
2959
+ fe(u, b) && (u = b, d());
2960
+ }), {
2961
+ get() {
2962
+ return c(), s.get ? s.get(u) : u;
2963
+ },
2964
+ set(b) {
2965
+ const x = s.set ? s.set(b) : b;
2966
+ if (!fe(x, u) && !(h !== k && fe(b, h)))
2967
+ return;
2968
+ const $ = n.vnode.props;
2969
+ $ && // check if parent has passed v-model
2970
+ (t in $ || i in $ || r in $) && (`onUpdate:${t}` in $ || `onUpdate:${i}` in $ || `onUpdate:${r}` in $) || (u = b, d()), n.emit(`update:${t}`, x), fe(b, x) && fe(b, h) && !fe(x, p) && d(), h = b, p = x;
2971
+ }
2972
+ };
2973
+ });
2974
+ return l[Symbol.iterator] = () => {
2975
+ let c = 0;
2976
+ return {
2977
+ next() {
2978
+ return c < 2 ? { value: c++ ? o || k : l, done: !1 } : { done: !0 };
2979
+ }
2980
+ };
2981
+ }, l;
2982
+ }
2983
+ const or = (e, t) => t === "modelValue" || t === "model-value" ? e.modelModifiers : e[`${t}Modifiers`] || e[`${De(t)}Modifiers`] || e[`${Ge(t)}Modifiers`];
2984
+ function ml(e, t, ...s) {
2985
+ if (e.isUnmounted) return;
2986
+ const n = e.vnode.props || k;
2987
+ let i = s;
2988
+ const r = t.startsWith("update:"), o = r && or(n, t.slice(7));
2989
+ o && (o.trim && (i = s.map((u) => Z(u) ? u.trim() : u)), o.number && (i = s.map(Kr)));
2990
+ let l, c = n[l = Es(t)] || // also try camelCase event handler (#2249)
2991
+ n[l = Es(De(t))];
2992
+ !c && r && (c = n[l = Es(Ge(t))]), c && Ie(
2993
+ c,
2994
+ e,
2995
+ 6,
2996
+ i
2997
+ );
2998
+ const d = n[l + "Once"];
2999
+ if (d) {
3000
+ if (!e.emitted)
3001
+ e.emitted = {};
3002
+ else if (e.emitted[l])
3003
+ return;
3004
+ e.emitted[l] = !0, Ie(
3005
+ d,
3006
+ e,
3007
+ 6,
3008
+ i
3009
+ );
3010
+ }
3011
+ }
3012
+ const gl = /* @__PURE__ */ new WeakMap();
3013
+ function lr(e, t, s = !1) {
3014
+ const n = s ? gl : t.emitsCache, i = n.get(e);
3015
+ if (i !== void 0)
3016
+ return i;
3017
+ const r = e.emits;
3018
+ let o = {}, l = !1;
3019
+ if (!F(e)) {
3020
+ const c = (d) => {
3021
+ const u = lr(d, t, !0);
3022
+ u && (l = !0, se(o, u));
3023
+ };
3024
+ !s && t.mixins.length && t.mixins.forEach(c), e.extends && c(e.extends), e.mixins && e.mixins.forEach(c);
3025
+ }
3026
+ return !r && !l ? (G(e) && n.set(e, null), null) : (O(r) ? r.forEach((c) => o[c] = null) : se(o, r), G(e) && n.set(e, o), o);
3027
+ }
3028
+ function bs(e, t) {
3029
+ return !e || !as(t) ? !1 : (t = t.slice(2).replace(/Once$/, ""), B(e, t[0].toLowerCase() + t.slice(1)) || B(e, Ge(t)) || B(e, t));
3030
+ }
3031
+ function Bn(e) {
3032
+ const {
3033
+ type: t,
3034
+ vnode: s,
3035
+ proxy: n,
3036
+ withProxy: i,
3037
+ propsOptions: [r],
3038
+ slots: o,
3039
+ attrs: l,
3040
+ emit: c,
3041
+ render: d,
3042
+ renderCache: u,
3043
+ props: h,
3044
+ data: p,
3045
+ setupState: b,
3046
+ ctx: x,
3047
+ inheritAttrs: $
3048
+ } = e, H = ns(e);
3049
+ let I, R;
3050
+ try {
3051
+ if (s.shapeFlag & 4) {
3052
+ const T = i || n, N = T;
3053
+ I = $e(
3054
+ d.call(
3055
+ N,
3056
+ T,
3057
+ u,
3058
+ h,
3059
+ b,
3060
+ p,
3061
+ x
3062
+ )
3063
+ ), R = l;
3064
+ } else {
3065
+ const T = t;
3066
+ I = $e(
3067
+ T.length > 1 ? T(
3068
+ h,
3069
+ { attrs: l, slots: o, emit: c }
3070
+ ) : T(
3071
+ h,
3072
+ null
3073
+ )
3074
+ ), R = t.props ? l : _l(l);
3075
+ }
3076
+ } catch (T) {
3077
+ Nt.length = 0, gs(T, e, 1), I = Le(qe);
3078
+ }
3079
+ let L = I;
3080
+ if (R && $ !== !1) {
3081
+ const T = Object.keys(R), { shapeFlag: N } = L;
3082
+ T.length && N & 7 && (r && T.some(Xs) && (R = bl(
3083
+ R,
3084
+ r
3085
+ )), L = _t(L, R, !1, !0));
3086
+ }
3087
+ return s.dirs && (L = _t(L, null, !1, !0), L.dirs = L.dirs ? L.dirs.concat(s.dirs) : s.dirs), s.transition && un(L, s.transition), I = L, ns(H), I;
3088
+ }
3089
+ const _l = (e) => {
3090
+ let t;
3091
+ for (const s in e)
3092
+ (s === "class" || s === "style" || as(s)) && ((t || (t = {}))[s] = e[s]);
3093
+ return t;
3094
+ }, bl = (e, t) => {
3095
+ const s = {};
3096
+ for (const n in e)
3097
+ (!Xs(n) || !(n.slice(9) in t)) && (s[n] = e[n]);
3098
+ return s;
3099
+ };
3100
+ function vl(e, t, s) {
3101
+ const { props: n, children: i, component: r } = e, { props: o, children: l, patchFlag: c } = t, d = r.emitsOptions;
3102
+ if (t.dirs || t.transition)
3103
+ return !0;
3104
+ if (s && c >= 0) {
3105
+ if (c & 1024)
3106
+ return !0;
3107
+ if (c & 16)
3108
+ return n ? Wn(n, o, d) : !!o;
3109
+ if (c & 8) {
3110
+ const u = t.dynamicProps;
3111
+ for (let h = 0; h < u.length; h++) {
3112
+ const p = u[h];
3113
+ if (o[p] !== n[p] && !bs(d, p))
3114
+ return !0;
3115
+ }
3116
+ }
3117
+ } else
3118
+ return (i || l) && (!l || !l.$stable) ? !0 : n === o ? !1 : n ? o ? Wn(n, o, d) : !0 : !!o;
3119
+ return !1;
3120
+ }
3121
+ function Wn(e, t, s) {
3122
+ const n = Object.keys(t);
3123
+ if (n.length !== Object.keys(e).length)
3124
+ return !0;
3125
+ for (let i = 0; i < n.length; i++) {
3126
+ const r = n[i];
3127
+ if (t[r] !== e[r] && !bs(s, r))
3128
+ return !0;
3129
+ }
3130
+ return !1;
3131
+ }
3132
+ function yl({ vnode: e, parent: t }, s) {
3133
+ for (; t; ) {
3134
+ const n = t.subTree;
3135
+ if (n.suspense && n.suspense.activeBranch === e && (n.el = e.el), n === e)
3136
+ (e = t.vnode).el = s, t = t.parent;
3137
+ else
3138
+ break;
3139
+ }
3140
+ }
3141
+ const cr = (e) => e.__isSuspense;
3142
+ function xl(e, t) {
3143
+ t && t.pendingBranch ? O(e) ? t.effects.push(...e) : t.effects.push(e) : Mo(e);
3144
+ }
3145
+ const _e = Symbol.for("v-fgt"), vs = Symbol.for("v-txt"), qe = Symbol.for("v-cmt"), Ms = Symbol.for("v-stc"), Nt = [];
3146
+ let pe = null;
3147
+ function Ve(e = !1) {
3148
+ Nt.push(pe = e ? null : []);
3149
+ }
3150
+ function Cl() {
3151
+ Nt.pop(), pe = Nt[Nt.length - 1] || null;
3152
+ }
3153
+ let jt = 1;
3154
+ function Kn(e, t = !1) {
3155
+ jt += e, e < 0 && pe && t && (pe.hasOnce = !0);
3156
+ }
3157
+ function ar(e) {
3158
+ return e.dynamicChildren = jt > 0 ? pe || ft : null, Cl(), jt > 0 && pe && pe.push(e), e;
3159
+ }
3160
+ function at(e, t, s, n, i, r) {
3161
+ return ar(
3162
+ ut(
3163
+ e,
3164
+ t,
3165
+ s,
3166
+ n,
3167
+ i,
3168
+ r,
3169
+ !0
3170
+ )
3171
+ );
3172
+ }
3173
+ function ur(e, t, s, n, i) {
3174
+ return ar(
3175
+ Le(
3176
+ e,
3177
+ t,
3178
+ s,
3179
+ n,
3180
+ i,
3181
+ !0
3182
+ )
3183
+ );
3184
+ }
3185
+ function fr(e) {
3186
+ return e ? e.__v_isVNode === !0 : !1;
3187
+ }
3188
+ function St(e, t) {
3189
+ return e.type === t.type && e.key === t.key;
3190
+ }
3191
+ const dr = ({ key: e }) => e ?? null, Qt = ({
3192
+ ref: e,
3193
+ ref_key: t,
3194
+ ref_for: s
3195
+ }) => (typeof e == "number" && (e = "" + e), e != null ? Z(e) || te(e) || F(e) ? { i: Ae, r: e, k: t, f: !!s } : e : null);
3196
+ function ut(e, t = null, s = null, n = 0, i = null, r = e === _e ? 0 : 1, o = !1, l = !1) {
3197
+ const c = {
3198
+ __v_isVNode: !0,
3199
+ __v_skip: !0,
3200
+ type: e,
3201
+ props: t,
3202
+ key: t && dr(t),
3203
+ ref: t && Qt(t),
3204
+ scopeId: Di,
3205
+ slotScopeIds: null,
3206
+ children: s,
3207
+ component: null,
3208
+ suspense: null,
3209
+ ssContent: null,
3210
+ ssFallback: null,
3211
+ dirs: null,
3212
+ transition: null,
3213
+ el: null,
3214
+ anchor: null,
3215
+ target: null,
3216
+ targetStart: null,
3217
+ targetAnchor: null,
3218
+ staticCount: 0,
3219
+ shapeFlag: r,
3220
+ patchFlag: n,
3221
+ dynamicProps: i,
3222
+ dynamicChildren: null,
3223
+ appContext: null,
3224
+ ctx: Ae
3225
+ };
3226
+ return l ? (mn(c, s), r & 128 && e.normalize(c)) : s && (c.shapeFlag |= Z(s) ? 8 : 16), jt > 0 && // avoid a block node from tracking itself
3227
+ !o && // has current parent block
3228
+ pe && // presence of a patch flag indicates this node needs patching on updates.
3229
+ // component nodes also should always be patched, because even if the
3230
+ // component doesn't need to update, it needs to persist the instance on to
3231
+ // the next vnode so that it can be properly unmounted later.
3232
+ (c.patchFlag > 0 || r & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
3233
+ // vnode should not be considered dynamic due to handler caching.
3234
+ c.patchFlag !== 32 && pe.push(c), c;
3235
+ }
3236
+ const Le = El;
3237
+ function El(e, t = null, s = null, n = 0, i = null, r = !1) {
3238
+ if ((!e || e === qo) && (e = qe), fr(e)) {
3239
+ const l = _t(
3240
+ e,
3241
+ t,
3242
+ !0
3243
+ /* mergeRef: true */
3244
+ );
3245
+ return s && mn(l, s), jt > 0 && !r && pe && (l.shapeFlag & 6 ? pe[pe.indexOf(e)] = l : pe.push(l)), l.patchFlag = -2, l;
3246
+ }
3247
+ if (Nl(e) && (e = e.__vccOpts), t) {
3248
+ t = Sl(t);
3249
+ let { class: l, style: c } = t;
3250
+ l && !Z(l) && (t.class = hs(l)), G(c) && (cn(c) && !O(c) && (c = se({}, c)), t.style = en(c));
3251
+ }
3252
+ const o = Z(e) ? 1 : cr(e) ? 128 : No(e) ? 64 : G(e) ? 4 : F(e) ? 2 : 0;
3253
+ return ut(
3254
+ e,
3255
+ t,
3256
+ s,
3257
+ n,
3258
+ i,
3259
+ o,
3260
+ r,
3261
+ !0
3262
+ );
3263
+ }
3264
+ function Sl(e) {
3265
+ return e ? cn(e) || Xi(e) ? se({}, e) : e : null;
3266
+ }
3267
+ function _t(e, t, s = !1, n = !1) {
3268
+ const { props: i, ref: r, patchFlag: o, children: l, transition: c } = e, d = t ? hr(i || {}, t) : i, u = {
3269
+ __v_isVNode: !0,
3270
+ __v_skip: !0,
3271
+ type: e.type,
3272
+ props: d,
3273
+ key: d && dr(d),
3274
+ ref: t && t.ref ? (
3275
+ // #2078 in the case of <component :is="vnode" ref="extra"/>
3276
+ // if the vnode itself already has a ref, cloneVNode will need to merge
3277
+ // the refs so the single vnode can be set on multiple refs
3278
+ s && r ? O(r) ? r.concat(Qt(t)) : [r, Qt(t)] : Qt(t)
3279
+ ) : r,
3280
+ scopeId: e.scopeId,
3281
+ slotScopeIds: e.slotScopeIds,
3282
+ children: l,
3283
+ target: e.target,
3284
+ targetStart: e.targetStart,
3285
+ targetAnchor: e.targetAnchor,
3286
+ staticCount: e.staticCount,
3287
+ shapeFlag: e.shapeFlag,
3288
+ // if the vnode is cloned with extra props, we can no longer assume its
3289
+ // existing patch flag to be reliable and need to add the FULL_PROPS flag.
3290
+ // note: preserve flag for fragments since they use the flag for children
3291
+ // fast paths only.
3292
+ patchFlag: t && e.type !== _e ? o === -1 ? 16 : o | 16 : o,
3293
+ dynamicProps: e.dynamicProps,
3294
+ dynamicChildren: e.dynamicChildren,
3295
+ appContext: e.appContext,
3296
+ dirs: e.dirs,
3297
+ transition: c,
3298
+ // These should technically only be non-null on mounted VNodes. However,
3299
+ // they *should* be copied for kept-alive vnodes. So we just always copy
3300
+ // them since them being non-null during a mount doesn't affect the logic as
3301
+ // they will simply be overwritten.
3302
+ component: e.component,
3303
+ suspense: e.suspense,
3304
+ ssContent: e.ssContent && _t(e.ssContent),
3305
+ ssFallback: e.ssFallback && _t(e.ssFallback),
3306
+ placeholder: e.placeholder,
3307
+ el: e.el,
3308
+ anchor: e.anchor,
3309
+ ctx: e.ctx,
3310
+ ce: e.ce
3311
+ };
3312
+ return c && n && un(
3313
+ u,
3314
+ c.clone(u)
3315
+ ), u;
3316
+ }
3317
+ function wl(e = " ", t = 0) {
3318
+ return Le(vs, null, e, t);
3319
+ }
3320
+ function Tl(e = "", t = !1) {
3321
+ return t ? (Ve(), ur(qe, null, e)) : Le(qe, null, e);
3322
+ }
3323
+ function $e(e) {
3324
+ return e == null || typeof e == "boolean" ? Le(qe) : O(e) ? Le(
3325
+ _e,
3326
+ null,
3327
+ // #3666, avoid reference pollution when reusing vnode
3328
+ e.slice()
3329
+ ) : fr(e) ? Be(e) : Le(vs, null, String(e));
3330
+ }
3331
+ function Be(e) {
3332
+ return e.el === null && e.patchFlag !== -1 || e.memo ? e : _t(e);
3333
+ }
3334
+ function mn(e, t) {
3335
+ let s = 0;
3336
+ const { shapeFlag: n } = e;
3337
+ if (t == null)
3338
+ t = null;
3339
+ else if (O(t))
3340
+ s = 16;
3341
+ else if (typeof t == "object")
3342
+ if (n & 65) {
3343
+ const i = t.default;
3344
+ i && (i._c && (i._d = !1), mn(e, i()), i._c && (i._d = !0));
3345
+ return;
3346
+ } else {
3347
+ s = 32;
3348
+ const i = t._;
3349
+ !i && !Xi(t) ? t._ctx = Ae : i === 3 && Ae && (Ae.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
3350
+ }
3351
+ else F(t) ? (t = { default: t, _ctx: Ae }, s = 32) : (t = String(t), n & 64 ? (s = 16, t = [wl(t)]) : s = 8);
3352
+ e.children = t, e.shapeFlag |= s;
3353
+ }
3354
+ function hr(...e) {
3355
+ const t = {};
3356
+ for (let s = 0; s < e.length; s++) {
3357
+ const n = e[s];
3358
+ for (const i in n)
3359
+ if (i === "class")
3360
+ t.class !== n.class && (t.class = hs([t.class, n.class]));
3361
+ else if (i === "style")
3362
+ t.style = en([t.style, n.style]);
3363
+ else if (as(i)) {
3364
+ const r = t[i], o = n[i];
3365
+ o && r !== o && !(O(r) && r.includes(o)) && (t[i] = r ? [].concat(r, o) : o);
3366
+ } else i !== "" && (t[i] = n[i]);
3367
+ }
3368
+ return t;
3369
+ }
3370
+ function we(e, t, s, n = null) {
3371
+ Ie(e, t, 7, [
3372
+ s,
3373
+ n
3374
+ ]);
3375
+ }
3376
+ const $l = zi();
3377
+ let Al = 0;
3378
+ function Pl(e, t, s) {
3379
+ const n = e.type, i = (t ? t.appContext : e.appContext) || $l, r = {
3380
+ uid: Al++,
3381
+ vnode: e,
3382
+ type: n,
3383
+ parent: t,
3384
+ appContext: i,
3385
+ root: null,
3386
+ // to be immediately set
3387
+ next: null,
3388
+ subTree: null,
3389
+ // will be set synchronously right after creation
3390
+ effect: null,
3391
+ update: null,
3392
+ // will be set synchronously right after creation
3393
+ job: null,
3394
+ scope: new Qr(
3395
+ !0
3396
+ /* detached */
3397
+ ),
3398
+ render: null,
3399
+ proxy: null,
3400
+ exposed: null,
3401
+ exposeProxy: null,
3402
+ withProxy: null,
3403
+ provides: t ? t.provides : Object.create(i.provides),
3404
+ ids: t ? t.ids : ["", 0, 0],
3405
+ accessCache: null,
3406
+ renderCache: [],
3407
+ // local resolved assets
3408
+ components: null,
3409
+ directives: null,
3410
+ // resolved props and emits options
3411
+ propsOptions: Zi(n, i),
3412
+ emitsOptions: lr(n, i),
3413
+ // emit
3414
+ emit: null,
3415
+ // to be set immediately
3416
+ emitted: null,
3417
+ // props default value
3418
+ propsDefaults: k,
3419
+ // inheritAttrs
3420
+ inheritAttrs: n.inheritAttrs,
3421
+ // state
3422
+ ctx: k,
3423
+ data: k,
3424
+ props: k,
3425
+ attrs: k,
3426
+ slots: k,
3427
+ refs: k,
3428
+ setupState: k,
3429
+ setupContext: null,
3430
+ // suspense related
3431
+ suspense: s,
3432
+ suspenseId: s ? s.pendingId : 0,
3433
+ asyncDep: null,
3434
+ asyncResolved: !1,
3435
+ // lifecycle hooks
3436
+ // not using enums here because it results in computed properties
3437
+ isMounted: !1,
3438
+ isUnmounted: !1,
3439
+ isDeactivated: !1,
3440
+ bc: null,
3441
+ c: null,
3442
+ bm: null,
3443
+ m: null,
3444
+ bu: null,
3445
+ u: null,
3446
+ um: null,
3447
+ bum: null,
3448
+ da: null,
3449
+ a: null,
3450
+ rtg: null,
3451
+ rtc: null,
3452
+ ec: null,
3453
+ sp: null
3454
+ };
3455
+ return r.ctx = { _: r }, r.root = t ? t.root : r, r.emit = ml.bind(null, r), e.ce && e.ce(r), r;
3456
+ }
3457
+ let le = null;
3458
+ const gn = () => le || Ae;
3459
+ let ls, Ks;
3460
+ {
3461
+ const e = ds(), t = (s, n) => {
3462
+ let i;
3463
+ return (i = e[s]) || (i = e[s] = []), i.push(n), (r) => {
3464
+ i.length > 1 ? i.forEach((o) => o(r)) : i[0](r);
3465
+ };
3466
+ };
3467
+ ls = t(
3468
+ "__VUE_INSTANCE_SETTERS__",
3469
+ (s) => le = s
3470
+ ), Ks = t(
3471
+ "__VUE_SSR_SETTERS__",
3472
+ (s) => Ht = s
3473
+ );
3474
+ }
3475
+ const kt = (e) => {
3476
+ const t = le;
3477
+ return ls(e), e.scope.on(), () => {
3478
+ e.scope.off(), ls(t);
3479
+ };
3480
+ }, qn = () => {
3481
+ le && le.scope.off(), ls(null);
3482
+ };
3483
+ function pr(e) {
3484
+ return e.vnode.shapeFlag & 4;
3485
+ }
3486
+ let Ht = !1;
3487
+ function Il(e, t = !1, s = !1) {
3488
+ t && Ks(t);
3489
+ const { props: n, children: i } = e.vnode, r = pr(e);
3490
+ tl(e, n, r, t), rl(e, i, s || t);
3491
+ const o = r ? Ml(e, t) : void 0;
3492
+ return t && Ks(!1), o;
3493
+ }
3494
+ function Ml(e, t) {
3495
+ const s = e.type;
3496
+ e.accessCache = /* @__PURE__ */ Object.create(null), e.proxy = new Proxy(e.ctx, zo);
3497
+ const { setup: n } = s;
3498
+ if (n) {
3499
+ je();
3500
+ const i = e.setupContext = n.length > 1 ? Fl(e) : null, r = kt(e), o = Ut(
3501
+ n,
3502
+ e,
3503
+ 0,
3504
+ [
3505
+ e.props,
3506
+ i
3507
+ ]
3508
+ ), l = ai(o);
3509
+ if (He(), r(), (l || e.sp) && !Mt(e) && Hi(e), l) {
3510
+ if (o.then(qn, qn), t)
3511
+ return o.then((c) => {
3512
+ zn(e, c);
3513
+ }).catch((c) => {
3514
+ gs(c, e, 0);
3515
+ });
3516
+ e.asyncDep = o;
3517
+ } else
3518
+ zn(e, o);
3519
+ } else
3520
+ mr(e);
3521
+ }
3522
+ function zn(e, t, s) {
3523
+ F(t) ? e.type.__ssrInlineRender ? e.ssrRender = t : e.render = t : G(t) && (e.setupState = Oi(t)), mr(e);
3524
+ }
3525
+ function mr(e, t, s) {
3526
+ const n = e.type;
3527
+ e.render || (e.render = n.render || Pe);
3528
+ {
3529
+ const i = kt(e);
3530
+ je();
3531
+ try {
3532
+ Jo(e);
3533
+ } finally {
3534
+ He(), i();
3535
+ }
3536
+ }
3537
+ }
3538
+ const Ol = {
3539
+ get(e, t) {
3540
+ return ne(e, "get", ""), e[t];
3541
+ }
3542
+ };
3543
+ function Fl(e) {
3544
+ const t = (s) => {
3545
+ e.exposed = s || {};
3546
+ };
3547
+ return {
3548
+ attrs: new Proxy(e.attrs, Ol),
3549
+ slots: e.slots,
3550
+ emit: e.emit,
3551
+ expose: t
3552
+ };
3553
+ }
3554
+ function _n(e) {
3555
+ return e.exposed ? e.exposeProxy || (e.exposeProxy = new Proxy(Oi(yo(e.exposed)), {
3556
+ get(t, s) {
3557
+ if (s in t)
3558
+ return t[s];
3559
+ if (s in Ot)
3560
+ return Ot[s](e);
3561
+ },
3562
+ has(t, s) {
3563
+ return s in t || s in Ot;
3564
+ }
3565
+ })) : e.proxy;
3566
+ }
3567
+ function Nl(e) {
3568
+ return F(e) && "__vccOpts" in e;
3569
+ }
3570
+ const gr = (e, t) => To(e, t, Ht), Rl = "3.5.22";
3571
+ /**
3572
+ * @vue/runtime-dom v3.5.22
3573
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
3574
+ * @license MIT
3575
+ **/
3576
+ let qs;
3577
+ const Jn = typeof window < "u" && window.trustedTypes;
3578
+ if (Jn)
3579
+ try {
3580
+ qs = /* @__PURE__ */ Jn.createPolicy("vue", {
3581
+ createHTML: (e) => e
3582
+ });
3583
+ } catch {
3584
+ }
3585
+ const _r = qs ? (e) => qs.createHTML(e) : (e) => e, Ll = "http://www.w3.org/2000/svg", Dl = "http://www.w3.org/1998/Math/MathML", Ne = typeof document < "u" ? document : null, Gn = Ne && /* @__PURE__ */ Ne.createElement("template"), jl = {
3586
+ insert: (e, t, s) => {
3587
+ t.insertBefore(e, s || null);
3588
+ },
3589
+ remove: (e) => {
3590
+ const t = e.parentNode;
3591
+ t && t.removeChild(e);
3592
+ },
3593
+ createElement: (e, t, s, n) => {
3594
+ const i = t === "svg" ? Ne.createElementNS(Ll, e) : t === "mathml" ? Ne.createElementNS(Dl, e) : s ? Ne.createElement(e, { is: s }) : Ne.createElement(e);
3595
+ return e === "select" && n && n.multiple != null && i.setAttribute("multiple", n.multiple), i;
3596
+ },
3597
+ createText: (e) => Ne.createTextNode(e),
3598
+ createComment: (e) => Ne.createComment(e),
3599
+ setText: (e, t) => {
3600
+ e.nodeValue = t;
3601
+ },
3602
+ setElementText: (e, t) => {
3603
+ e.textContent = t;
3604
+ },
3605
+ parentNode: (e) => e.parentNode,
3606
+ nextSibling: (e) => e.nextSibling,
3607
+ querySelector: (e) => Ne.querySelector(e),
3608
+ setScopeId(e, t) {
3609
+ e.setAttribute(t, "");
3610
+ },
3611
+ // __UNSAFE__
3612
+ // Reason: innerHTML.
3613
+ // Static content here can only come from compiled templates.
3614
+ // As long as the user only uses trusted templates, this is safe.
3615
+ insertStaticContent(e, t, s, n, i, r) {
3616
+ const o = s ? s.previousSibling : t.lastChild;
3617
+ if (i && (i === r || i.nextSibling))
3618
+ for (; t.insertBefore(i.cloneNode(!0), s), !(i === r || !(i = i.nextSibling)); )
3619
+ ;
3620
+ else {
3621
+ Gn.innerHTML = _r(
3622
+ n === "svg" ? `<svg>${e}</svg>` : n === "mathml" ? `<math>${e}</math>` : e
3623
+ );
3624
+ const l = Gn.content;
3625
+ if (n === "svg" || n === "mathml") {
3626
+ const c = l.firstChild;
3627
+ for (; c.firstChild; )
3628
+ l.appendChild(c.firstChild);
3629
+ l.removeChild(c);
3630
+ }
3631
+ t.insertBefore(l, s);
3632
+ }
3633
+ return [
3634
+ // first
3635
+ o ? o.nextSibling : t.firstChild,
3636
+ // last
3637
+ s ? s.previousSibling : t.lastChild
3638
+ ];
3639
+ }
3640
+ }, Hl = Symbol("_vtc");
3641
+ function Ul(e, t, s) {
3642
+ const n = e[Hl];
3643
+ n && (t = (t ? [t, ...n] : [...n]).join(" ")), t == null ? e.removeAttribute("class") : s ? e.setAttribute("class", t) : e.className = t;
3644
+ }
3645
+ const Yn = Symbol("_vod"), kl = Symbol("_vsh"), Vl = Symbol(""), Bl = /(?:^|;)\s*display\s*:/;
3646
+ function Wl(e, t, s) {
3647
+ const n = e.style, i = Z(s);
3648
+ let r = !1;
3649
+ if (s && !i) {
3650
+ if (t)
3651
+ if (Z(t))
3652
+ for (const o of t.split(";")) {
3653
+ const l = o.slice(0, o.indexOf(":")).trim();
3654
+ s[l] == null && Zt(n, l, "");
3655
+ }
3656
+ else
3657
+ for (const o in t)
3658
+ s[o] == null && Zt(n, o, "");
3659
+ for (const o in s)
3660
+ o === "display" && (r = !0), Zt(n, o, s[o]);
3661
+ } else if (i) {
3662
+ if (t !== s) {
3663
+ const o = n[Vl];
3664
+ o && (s += ";" + o), n.cssText = s, r = Bl.test(s);
3665
+ }
3666
+ } else t && e.removeAttribute("style");
3667
+ Yn in e && (e[Yn] = r ? n.display : "", e[kl] && (n.display = "none"));
3668
+ }
3669
+ const Xn = /\s*!important$/;
3670
+ function Zt(e, t, s) {
3671
+ if (O(s))
3672
+ s.forEach((n) => Zt(e, t, n));
3673
+ else if (s == null && (s = ""), t.startsWith("--"))
3674
+ e.setProperty(t, s);
3675
+ else {
3676
+ const n = Kl(e, t);
3677
+ Xn.test(s) ? e.setProperty(
3678
+ Ge(n),
3679
+ s.replace(Xn, ""),
3680
+ "important"
3681
+ ) : e[n] = s;
3682
+ }
3683
+ }
3684
+ const Qn = ["Webkit", "Moz", "ms"], Os = {};
3685
+ function Kl(e, t) {
3686
+ const s = Os[t];
3687
+ if (s)
3688
+ return s;
3689
+ let n = De(t);
3690
+ if (n !== "filter" && n in e)
3691
+ return Os[t] = n;
3692
+ n = di(n);
3693
+ for (let i = 0; i < Qn.length; i++) {
3694
+ const r = Qn[i] + n;
3695
+ if (r in e)
3696
+ return Os[t] = r;
3697
+ }
3698
+ return t;
3699
+ }
3700
+ const Zn = "http://www.w3.org/1999/xlink";
3701
+ function ei(e, t, s, n, i, r = Xr(t)) {
3702
+ n && t.startsWith("xlink:") ? s == null ? e.removeAttributeNS(Zn, t.slice(6, t.length)) : e.setAttributeNS(Zn, t, s) : s == null || r && !pi(s) ? e.removeAttribute(t) : e.setAttribute(
3703
+ t,
3704
+ r ? "" : Je(s) ? String(s) : s
3705
+ );
3706
+ }
3707
+ function ti(e, t, s, n, i) {
3708
+ if (t === "innerHTML" || t === "textContent") {
3709
+ s != null && (e[t] = t === "innerHTML" ? _r(s) : s);
3710
+ return;
3711
+ }
3712
+ const r = e.tagName;
3713
+ if (t === "value" && r !== "PROGRESS" && // custom elements may use _value internally
3714
+ !r.includes("-")) {
3715
+ const l = r === "OPTION" ? e.getAttribute("value") || "" : e.value, c = s == null ? (
3716
+ // #11647: value should be set as empty string for null and undefined,
3717
+ // but <input type="checkbox"> should be set as 'on'.
3718
+ e.type === "checkbox" ? "on" : ""
3719
+ ) : String(s);
3720
+ (l !== c || !("_value" in e)) && (e.value = c), s == null && e.removeAttribute(t), e._value = s;
3721
+ return;
3722
+ }
3723
+ let o = !1;
3724
+ if (s === "" || s == null) {
3725
+ const l = typeof e[t];
3726
+ l === "boolean" ? s = pi(s) : s == null && l === "string" ? (s = "", o = !0) : l === "number" && (s = 0, o = !0);
3727
+ }
3728
+ try {
3729
+ e[t] = s;
3730
+ } catch {
3731
+ }
3732
+ o && e.removeAttribute(i || t);
3733
+ }
3734
+ function ql(e, t, s, n) {
3735
+ e.addEventListener(t, s, n);
3736
+ }
3737
+ function zl(e, t, s, n) {
3738
+ e.removeEventListener(t, s, n);
3739
+ }
3740
+ const si = Symbol("_vei");
3741
+ function Jl(e, t, s, n, i = null) {
3742
+ const r = e[si] || (e[si] = {}), o = r[t];
3743
+ if (n && o)
3744
+ o.value = n;
3745
+ else {
3746
+ const [l, c] = Gl(t);
3747
+ if (n) {
3748
+ const d = r[t] = Ql(
3749
+ n,
3750
+ i
3751
+ );
3752
+ ql(e, l, d, c);
3753
+ } else o && (zl(e, l, o, c), r[t] = void 0);
3754
+ }
3755
+ }
3756
+ const ni = /(?:Once|Passive|Capture)$/;
3757
+ function Gl(e) {
3758
+ let t;
3759
+ if (ni.test(e)) {
3760
+ t = {};
3761
+ let n;
3762
+ for (; n = e.match(ni); )
3763
+ e = e.slice(0, e.length - n[0].length), t[n[0].toLowerCase()] = !0;
3764
+ }
3765
+ return [e[2] === ":" ? e.slice(3) : Ge(e.slice(2)), t];
3766
+ }
3767
+ let Fs = 0;
3768
+ const Yl = /* @__PURE__ */ Promise.resolve(), Xl = () => Fs || (Yl.then(() => Fs = 0), Fs = Date.now());
3769
+ function Ql(e, t) {
3770
+ const s = (n) => {
3771
+ if (!n._vts)
3772
+ n._vts = Date.now();
3773
+ else if (n._vts <= s.attached)
3774
+ return;
3775
+ Ie(
3776
+ Zl(n, s.value),
3777
+ t,
3778
+ 5,
3779
+ [n]
3780
+ );
3781
+ };
3782
+ return s.value = e, s.attached = Xl(), s;
3783
+ }
3784
+ function Zl(e, t) {
3785
+ if (O(t)) {
3786
+ const s = e.stopImmediatePropagation;
3787
+ return e.stopImmediatePropagation = () => {
3788
+ s.call(e), e._stopped = !0;
3789
+ }, t.map(
3790
+ (n) => (i) => !i._stopped && n && n(i)
3791
+ );
3792
+ } else
3793
+ return t;
3794
+ }
3795
+ const ii = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // lowercase letter
3796
+ e.charCodeAt(2) > 96 && e.charCodeAt(2) < 123, ec = (e, t, s, n, i, r) => {
3797
+ const o = i === "svg";
3798
+ t === "class" ? Ul(e, n, o) : t === "style" ? Wl(e, s, n) : as(t) ? Xs(t) || Jl(e, t, s, n, r) : (t[0] === "." ? (t = t.slice(1), !0) : t[0] === "^" ? (t = t.slice(1), !1) : tc(e, t, n, o)) ? (ti(e, t, n), !e.tagName.includes("-") && (t === "value" || t === "checked" || t === "selected") && ei(e, t, n, o, r, t !== "value")) : /* #11081 force set props for possible async custom element */ e._isVueCE && (/[A-Z]/.test(t) || !Z(n)) ? ti(e, De(t), n, r, t) : (t === "true-value" ? e._trueValue = n : t === "false-value" && (e._falseValue = n), ei(e, t, n, o));
3799
+ };
3800
+ function tc(e, t, s, n) {
3801
+ if (n)
3802
+ return !!(t === "innerHTML" || t === "textContent" || t in e && ii(t) && F(s));
3803
+ if (t === "spellcheck" || t === "draggable" || t === "translate" || t === "autocorrect" || t === "form" || t === "list" && e.tagName === "INPUT" || t === "type" && e.tagName === "TEXTAREA")
3804
+ return !1;
3805
+ if (t === "width" || t === "height") {
3806
+ const i = e.tagName;
3807
+ if (i === "IMG" || i === "VIDEO" || i === "CANVAS" || i === "SOURCE")
3808
+ return !1;
3809
+ }
3810
+ return ii(t) && Z(s) ? !1 : t in e;
3811
+ }
3812
+ const sc = /* @__PURE__ */ se({ patchProp: ec }, jl);
3813
+ let ri;
3814
+ function nc() {
3815
+ return ri || (ri = ll(sc));
3816
+ }
3817
+ const ic = (...e) => {
3818
+ const t = nc().createApp(...e), { mount: s } = t;
3819
+ return t.mount = (n) => {
3820
+ const i = oc(n);
3821
+ if (!i) return;
3822
+ const r = t._component;
3823
+ !F(r) && !r.render && !r.template && (r.template = i.innerHTML), i.nodeType === 1 && (i.textContent = "");
3824
+ const o = s(i, !1, rc(i));
3825
+ return i instanceof Element && (i.removeAttribute("v-cloak"), i.setAttribute("data-v-app", "")), o;
3826
+ }, t;
3827
+ };
3828
+ function rc(e) {
3829
+ if (e instanceof SVGElement)
3830
+ return "svg";
3831
+ if (typeof MathMLElement == "function" && e instanceof MathMLElement)
3832
+ return "mathml";
3833
+ }
3834
+ function oc(e) {
3835
+ return Z(e) ? document.querySelector(e) : e;
3836
+ }
3837
+ const zs = Symbol("IPEInjectKey"), lc = (e, t) => (t ? t.provide(zs, e) : Ji(zs, e), e), cc = () => {
3838
+ const e = Ft(zs);
3839
+ if (!e)
3840
+ throw new Error("InPageEdit instance is not provided");
3841
+ return e;
3842
+ }, ac = (e, ...t) => {
3843
+ const s = ic(...t);
3844
+ return lc(e, s), s;
3845
+ }, ge = '@charset "UTF-8";:host{display:block;font-family:var(--schema-font-family, ui-sans-serif, system-ui, -apple-system);color:var(--schema-color-fg, #111827)}*,*:before,*:after{box-sizing:border-box}.wrapper{display:block;background:var(--schema-color-bg, #ffffff)}.form{display:grid;gap:12px}.field{display:grid;gap:6px;padding:8px 10px;border:1px solid var(--schema-color-muted, #e5e7eb);border-radius:var(--schema-radius, 10px);background:var(--schema-surface, #fff)}.label{font-size:12px;color:var(--schema-color-muted-text, #6b7280)}.input,select,textarea{width:100%;padding:8px 10px;border-radius:8px;border:1px solid var(--schema-color-muted, #e5e7eb);background:var(--schema-input-bg, #fff);color:inherit}.checkbox{display:inline-flex;align-items:center;gap:8px}.helper{font-size:12px;color:var(--schema-color-muted-text, #6b7280)}.row{display:grid;gap:8px}.actions{display:flex;gap:8px}.btn{padding:6px 10px;border:1px solid var(--schema-color-muted, #e5e7eb);background:var(--schema-btn-bg, #f8fafc);border-radius:8px;cursor:pointer}.btn.primary{background:var(--schema-color-primary, #2563eb);color:#fff;border-color:transparent}.btn:disabled{opacity:.5;cursor:not-allowed}.btn.danger{background:var(--schema-color-danger, #dc2626);color:#fff;border-color:transparent}.group{display:grid;gap:10px;border-left:3px solid var(--schema-color-muted, #e5e7eb);padding-left:10px}.kv{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:center}.badge{display:inline-flex;padding:2px 6px;border-radius:999px;font-size:11px;background:var(--schema-badge-bg, #eef2ff);color:var(--schema-badge-fg, #4f46e5)}.hidden{display:none!important}.toolbar{display:flex;gap:6px}.schema-collection-row{position:relative;transition:transform var(--schema-collection-transition-duration, .25s) var(--schema-collection-transition-ease, ease),opacity var(--schema-collection-transition-duration, .25s) var(--schema-collection-transition-ease, ease)}.schema-collection-row.enter{opacity:0}.schema-collection-row.enter.enter-active{opacity:1}.schema-collection-row.leaving{opacity:0}.field.schema-type-array .group,.field.schema-type-array .group .row{position:relative}';
3846
+ /**
3847
+ * SchemaForm
3848
+ * 一个基于 Schemastery 的 Web Components 表单生成器
3849
+ *
3850
+ * ✅ 使用 TypeScript,组件前缀统一为 <schema-*>
3851
+ * ✅ 简单样式 + 通过 CSS 变量 --schema-* 配置主题
3852
+ * ✅ 暴露 API:设置/获取表单数据、设置 Schema、校验
3853
+ * ✅ 支持的类型:string / number / boolean / date / const / object / array / tuple / dict / union
3854
+ * ✅ 支持按类型拆分的独立 Field 组件:<schema-form-string> 等,可单独使用
3855
+ * ✅ 字段容器带类名:schema-form-item schema-type-xxx,并带 data-path="a.b.0.c"
3856
+ * ✅ schema-form-array 支持条目上下移动
3857
+ * ✅ 主类为泛型:SchemaForm<T>
3858
+ * ✅ 提供 createSchemasteryForm<T>() 工厂,返回带强类型的 FormInstance<T>
3859
+ *
3860
+ * @license MIT
3861
+ * @author dragon-fish
3862
+ * @author @openai/gpt-5
3863
+ */
3864
+ const br = {
3865
+ arrayAdd: "+",
3866
+ arrayMoveUp: "↑",
3867
+ arrayMoveDown: "↓",
3868
+ arrayRemove: "×",
3869
+ dictAdd: "+",
3870
+ dictRemove: "×",
3871
+ rootLabel: "root"
3872
+ }, X = (e, t) => {
3873
+ customElements.get(e) || customElements.define(e, t);
3874
+ }, uc = (e, t, s) => {
3875
+ if (!t.length) return;
3876
+ let n = e, i = null, r = null;
3877
+ for (let l = 0; l < t.length - 1; l++) {
3878
+ const c = t[l];
3879
+ let d = n?.[c];
3880
+ d == null ? (d = typeof t[l + 1] == "number" ? [] : {}, n[c] = d) : typeof d != "object" && (d = typeof t[l + 1] == "number" ? [] : {}, n[c] = d), i = n, r = c, n = d;
3881
+ }
3882
+ const o = t[t.length - 1];
3883
+ if (n == null || typeof n != "object") {
3884
+ const l = typeof o == "number" ? [] : {};
3885
+ if (i)
3886
+ i[r] = l, n = l;
3887
+ else
3888
+ return;
3889
+ }
3890
+ try {
3891
+ n[o] = s;
3892
+ } catch {
3893
+ try {
3894
+ const l = Array.isArray(n) ? n.slice() : { ...n };
3895
+ l[o] = s, i && (i[r] = l);
3896
+ } catch {
3897
+ }
3898
+ }
3899
+ }, Vt = (e) => e.map(String).join("."), fc = (e) => e.replace(/[^a-zA-Z0-9_-]/g, "_"), ze = (e) => `schema_${fc(Vt(e) || "root")}`, it = (e) => Vt(e), j = (e, ...t) => {
3900
+ const s = new Set(...t);
3901
+ s.size && e.setAttribute("part", Array.from(s).join(" "));
3902
+ }, dc = [
3903
+ "wrapper",
3904
+ "form",
3905
+ "field",
3906
+ "field-string",
3907
+ "field-number",
3908
+ "field-boolean",
3909
+ "field-date",
3910
+ "field-const",
3911
+ "field-array",
3912
+ "field-object",
3913
+ "field-tuple",
3914
+ "field-union",
3915
+ "field-dict",
3916
+ "field-label",
3917
+ "field-helper",
3918
+ "field-group",
3919
+ "field-row",
3920
+ "field-actions",
3921
+ "field-button",
3922
+ "field-button-primary",
3923
+ "field-button-danger",
3924
+ "field-button-secondary",
3925
+ "field-toolbar",
3926
+ "field-badge",
3927
+ "field-input",
3928
+ "field-input-text",
3929
+ "field-input-number",
3930
+ "field-input-date",
3931
+ "field-input-select",
3932
+ "field-input-textarea",
3933
+ "field-input-checkbox",
3934
+ "field-const-value",
3935
+ "collection-row",
3936
+ "field-checkbox",
3937
+ "field-checkbox-text",
3938
+ "field-toolbar-select"
3939
+ ].join(" ");
3940
+ function bn(e, t) {
3941
+ if (t == null) return t;
3942
+ switch (e) {
3943
+ case "number":
3944
+ case "natural":
3945
+ case "percent": {
3946
+ if (t === "") return;
3947
+ const s = Number(t);
3948
+ return Number.isNaN(s) ? void 0 : s;
3949
+ }
3950
+ case "boolean":
3951
+ return !!t;
3952
+ case "date": {
3953
+ if (!t) return;
3954
+ const s = new Date(t);
3955
+ return Number.isNaN(+s) ? void 0 : s;
3956
+ }
3957
+ case "const":
3958
+ case "string":
3959
+ default:
3960
+ return t;
3961
+ }
3962
+ }
3963
+ function oi(e) {
3964
+ return typeof e == "function" && !!e?.type;
3965
+ }
3966
+ function vr(e) {
3967
+ if (!e) throw new Error("schema is required");
3968
+ if (oi(e)) return e;
3969
+ try {
3970
+ const t = Schema.from(e);
3971
+ if (oi(t)) return t;
3972
+ } catch {
3973
+ }
3974
+ if (e?.type) {
3975
+ const t = e.type;
3976
+ if (Schema[t]) return Schema[t](e.inner ?? e.list ?? e.dict);
3977
+ }
3978
+ throw new Error("无法从传入对象生成 Schemastery 实例,请传入 schema 或 schema.toJSON() 的结果。");
3979
+ }
3980
+ function ve(e) {
3981
+ return e?.meta ?? {};
3982
+ }
3983
+ function hc(e) {
3984
+ return e.length > 0 && e.every((t) => t?.type === "const");
3985
+ }
3986
+ function bt(e) {
3987
+ if (!e) return;
3988
+ const t = e, s = t.meta || {};
3989
+ if (Object.prototype.hasOwnProperty.call(s, "default")) return s.default;
3990
+ const n = t.type;
3991
+ try {
3992
+ const i = e();
3993
+ if (i !== void 0) return i;
3994
+ } catch {
3995
+ }
3996
+ switch (n) {
3997
+ case "string":
3998
+ return "";
3999
+ case "number":
4000
+ case "natural":
4001
+ case "percent":
4002
+ return 0;
4003
+ case "boolean":
4004
+ return !1;
4005
+ case "array":
4006
+ return [];
4007
+ case "tuple":
4008
+ return [];
4009
+ case "object":
4010
+ return {};
4011
+ case "dict":
4012
+ return {};
4013
+ case "union": {
4014
+ const i = t.list || [];
4015
+ return i.length ? bt(i[0]) : void 0;
4016
+ }
4017
+ case "const":
4018
+ return t.value;
4019
+ case "date":
4020
+ return;
4021
+ default:
4022
+ return;
4023
+ }
4024
+ }
4025
+ class Me extends HTMLElement {
4026
+ constructor() {
4027
+ super(), this._path = [], this._i18n = br, this.$root = this.attachShadow({ mode: "open" });
4028
+ const t = document.createElement("style");
4029
+ t.textContent = ge, this.$root.appendChild(t);
4030
+ }
4031
+ /** 初始化公共容器(带类名与 data-path) */
4032
+ makeFieldContainer(t, s) {
4033
+ const n = document.createElement("div");
4034
+ if (n.className = `field schema-form-item schema-type-${t}`, n.setAttribute("data-path", Vt(this._path)), j(n, "field", `field-${t}`), this._label) {
4035
+ const i = document.createElement("label");
4036
+ i.className = "label", i.textContent = this._label, j(i, "field-label"), n.appendChild(i);
4037
+ }
4038
+ if (s) {
4039
+ const i = document.createElement("div");
4040
+ i.className = "helper", i.textContent = s, j(i, "field-helper"), n.appendChild(i);
4041
+ }
4042
+ return n;
4043
+ }
4044
+ /** 外部设置 schema/path/label/value */
4045
+ set schema(t) {
4046
+ this._schema = vr(t), this.render();
4047
+ }
4048
+ get schema() {
4049
+ return this._schema;
4050
+ }
4051
+ set path(t) {
4052
+ this._path = t ?? [], this.render();
4053
+ }
4054
+ get path() {
4055
+ return this._path;
4056
+ }
4057
+ set label(t) {
4058
+ this._label = t, this.render();
4059
+ }
4060
+ get label() {
4061
+ return this._label;
4062
+ }
4063
+ set i18n(t) {
4064
+ t && (this._i18n = { ...this._i18n, ...t }), this.render();
4065
+ }
4066
+ get i18n() {
4067
+ return this._i18n;
4068
+ }
4069
+ setValue(t) {
4070
+ this._value = t, this.render();
4071
+ }
4072
+ getValue() {
4073
+ return this._value;
4074
+ }
4075
+ /** 触发变更事件(冒泡) */
4076
+ emitChange(t) {
4077
+ this._value = t, this.dispatchEvent(
4078
+ new CustomEvent("change", {
4079
+ bubbles: !0,
4080
+ composed: !0,
4081
+ detail: { path: this._path, value: t }
4082
+ })
4083
+ );
4084
+ }
4085
+ }
4086
+ class yr extends Me {
4087
+ render() {
4088
+ if (this.$input && this.$root.contains(this.$input)) {
4089
+ const r = this._value ?? "";
4090
+ this.$input.value !== r && document.activeElement !== this.$input && (this.$input.value = r);
4091
+ return;
4092
+ }
4093
+ this.$root.innerHTML = `<style>${ge}</style>`;
4094
+ const t = ve(this._schema), s = this.makeFieldContainer("string", t.description), n = document.createElement("input");
4095
+ this.$input = n, n.className = "input", j(n, "field-input", "field-input-text"), n.type = "text", n.name = it(this._path), n.id = ze(this._path), t?.pattern?.source && (n.pattern = t.pattern.source), t?.max != null && (n.maxLength = t.max), n.value = this._value ?? "", n.oninput = () => this.emitChange(bn("string", n.value));
4096
+ const i = s.querySelector("label.label");
4097
+ i && (i.htmlFor = n.id), s.appendChild(n), this.$root.appendChild(s);
4098
+ }
4099
+ }
4100
+ X("schema-form-string", yr);
4101
+ class xr extends Me {
4102
+ render() {
4103
+ if (this.$input && this.$root.contains(this.$input)) {
4104
+ const o = this._value ?? "";
4105
+ this.$input.value !== String(o) && document.activeElement !== this.$input && (this.$input.value = o);
4106
+ return;
4107
+ }
4108
+ this.$root.innerHTML = `<style>${ge}</style>`;
4109
+ const t = this._schema?.type ?? "number", s = ve(this._schema), n = this.makeFieldContainer("number", s.description), i = document.createElement("input");
4110
+ this.$input = i, i.className = "input", j(i, "field-input", "field-input-number"), i.name = it(this._path), i.id = ze(this._path), s?.min != null && (i.min = String(s.min)), s?.max != null && (i.max = String(s.max)), s?.step != null && (i.step = String(s.step)), t === "percent" && !i.step && (i.step = "0.01"), i.value = this._value ?? "", i.oninput = () => this.emitChange(bn(t, i.value));
4111
+ const r = n.querySelector("label.label");
4112
+ r && (r.htmlFor = i.id), s.role === "slider" ? i.type = "range" : i.type = "number", n.appendChild(i), this.$root.appendChild(n);
4113
+ }
4114
+ }
4115
+ X("schema-form-number", xr);
4116
+ class Cr extends Me {
4117
+ render() {
4118
+ this.$root.innerHTML = `<style>${ge}</style>`;
4119
+ const t = ve(this._schema), s = this.makeFieldContainer("boolean", t.description), n = document.createElement("label");
4120
+ n.className = "checkbox", j(n, "field-checkbox");
4121
+ const i = document.createElement("input");
4122
+ i.type = "checkbox", i.checked = !!this._value, i.name = it(this._path), i.id = ze(this._path), j(i, "field-input", "field-input-checkbox");
4123
+ const r = document.createElement("span");
4124
+ r.textContent = t.description ?? this._label ?? "", j(r, "field-checkbox-text"), i.onchange = () => this.emitChange(i.checked);
4125
+ const o = s.querySelector("label.label");
4126
+ o && (o.htmlFor = i.id), n.append(i, r), s.appendChild(n), this.$root.appendChild(s);
4127
+ }
4128
+ }
4129
+ X("schema-form-boolean", Cr);
4130
+ function cs(e) {
4131
+ return String(e).padStart(2, "0");
4132
+ }
4133
+ function Tt(e) {
4134
+ return `${e.getFullYear()}-${cs(e.getMonth() + 1)}-${cs(e.getDate())}`;
4135
+ }
4136
+ function Js(e) {
4137
+ return `${cs(e.getHours())}:${cs(e.getMinutes())}`;
4138
+ }
4139
+ function Gt(e) {
4140
+ return `${Tt(e)}T${Js(e)}`;
4141
+ }
4142
+ class Er extends Me {
4143
+ render() {
4144
+ if (this.$input && this.$root.contains(this.$input)) {
4145
+ const o = ve(this._schema).role || "date";
4146
+ if (document.activeElement !== this.$input)
4147
+ if (this._value instanceof Date)
4148
+ o === "date" ? this.$input.value = Tt(this._value) : o === "time" ? this.$input.value = Js(this._value) : o === "datetime" && (this.$input.value = Gt(this._value));
4149
+ else if (typeof this._value == "string" && o !== "time") {
4150
+ const l = new Date(this._value);
4151
+ isNaN(+l) || (o === "date" ? this.$input.value = Tt(l) : o === "datetime" && (this.$input.value = Gt(l)));
4152
+ } else this._value || (this.$input.value = "");
4153
+ return;
4154
+ }
4155
+ this.$root.innerHTML = `<style>${ge}</style>`;
4156
+ const t = ve(this._schema), s = this.makeFieldContainer("date", t.description), n = document.createElement("input");
4157
+ this.$input = n, n.className = "input", j(n, "field-input", "field-input-date");
4158
+ const i = t.role || "date";
4159
+ if (i === "datetime" ? n.type = "datetime-local" : i === "time" ? n.type = "time" : n.type = "date", n.name = it(this._path), n.id = ze(this._path), this._value instanceof Date)
4160
+ i === "date" ? n.value = Tt(this._value) : i === "time" ? n.value = Js(this._value) : i === "datetime" && (n.value = Gt(this._value));
4161
+ else if (typeof this._value == "string" && i !== "time") {
4162
+ const o = new Date(this._value);
4163
+ isNaN(+o) || (i === "date" ? n.value = Tt(o) : i === "datetime" && (n.value = Gt(o)));
4164
+ }
4165
+ n.oninput = () => {
4166
+ t.role;
4167
+ let o;
4168
+ if (!n.value)
4169
+ o = void 0;
4170
+ else {
4171
+ const l = new Date(n.value);
4172
+ o = Number.isNaN(+l) ? void 0 : l;
4173
+ }
4174
+ this.emitChange(o);
4175
+ };
4176
+ const r = s.querySelector("label.label");
4177
+ r && (r.htmlFor = n.id), s.appendChild(n), this.$root.appendChild(s);
4178
+ }
4179
+ }
4180
+ X("schema-form-date", Er);
4181
+ class vn extends Me {
4182
+ render() {
4183
+ this.$root.innerHTML = `<style>${ge}</style>`;
4184
+ const t = ve(this._schema), s = this._schema.value;
4185
+ if (t.role === "raw-html") {
4186
+ if (s instanceof Node) {
4187
+ this.$root.appendChild(s);
4188
+ return;
4189
+ }
4190
+ const o = document.createElement("div");
4191
+ o.innerHTML = String(s), j(o, "field-const-value"), this.$root.appendChild(o);
4192
+ return;
4193
+ }
4194
+ const n = this.makeFieldContainer("const", t.description), i = document.createElement("section");
4195
+ i.className = "const content", i.textContent = String(s), i.id = ze(this._path), j(i, "field-const-value");
4196
+ const r = n.querySelector("label.label");
4197
+ r && (r.htmlFor = i.id), n.appendChild(i), this.$root.appendChild(n);
4198
+ }
4199
+ }
4200
+ X("schema-form-const", vn);
4201
+ function pc(e) {
4202
+ switch (e.type) {
4203
+ case "string":
4204
+ return "schema-form-string";
4205
+ case "number":
4206
+ case "natural":
4207
+ case "percent":
4208
+ return "schema-form-number";
4209
+ case "boolean":
4210
+ return "schema-form-boolean";
4211
+ case "date":
4212
+ return "schema-form-date";
4213
+ case "const":
4214
+ return "schema-form-const";
4215
+ case "array":
4216
+ return "schema-form-array";
4217
+ case "object":
4218
+ return "schema-form-object";
4219
+ case "tuple":
4220
+ return "schema-form-tuple";
4221
+ case "dict":
4222
+ return "schema-form-dict";
4223
+ case "union": {
4224
+ const t = e.list || [];
4225
+ return t.length === 2 && t[0]?.type === "is" && t[0]?.constructor === Date && t[1]?.type === "transform" && (t[1]?.inner?.meta?.role === "datetime" || t[1]?.inner?.meta?.role === "date" || t[1]?.inner?.meta?.role === "time") ? "schema-form-date" : "schema-form-union";
4226
+ }
4227
+ default:
4228
+ return "schema-form-string";
4229
+ }
4230
+ }
4231
+ function vt(e, t, s, n, i) {
4232
+ const r = pc(e), o = document.createElement(r);
4233
+ return o.schema = e, o.path = t, o.label = n, i && (o.i18n = i), o.setValue?.(s), o.setAttribute("exportparts", dc), o;
4234
+ }
4235
+ class Sr extends Me {
4236
+ render() {
4237
+ this.$root.innerHTML = `<style>${ge}</style>`;
4238
+ const t = ve(this._schema), s = this.makeFieldContainer("union", t.description), n = this._schema.list || [];
4239
+ if (hc(n)) {
4240
+ const i = document.createElement("select");
4241
+ i.className = "input", j(i, "field-input", "field-input-select"), i.name = it(this._path), i.id = ze(this._path), n.forEach((o) => {
4242
+ const l = document.createElement("option");
4243
+ l.value = String(o.value), l.textContent = String(o.meta?.description || o.value || o.type), this._value === o.value && (l.selected = !0), i.appendChild(l);
4244
+ }), i.onchange = () => this.emitChange(bn("string", i.value));
4245
+ const r = s.querySelector("label.label");
4246
+ r && (r.htmlFor = i.id), s.appendChild(i);
4247
+ } else {
4248
+ const i = document.createElement("div");
4249
+ i.className = "toolbar", j(i, "field-toolbar");
4250
+ const r = document.createElement("select");
4251
+ r.className = "input", j(r, "field-input", "field-input-select", "field-toolbar-select"), r.name = it(this._path) + ".__type", r.id = ze(this._path) + "__type";
4252
+ let o = 0;
4253
+ n.forEach((u, h) => {
4254
+ const p = document.createElement("option");
4255
+ p.value = String(h), p.textContent = String(u.meta?.description || u.value || u.type), r.appendChild(p);
4256
+ }), r.onchange = () => {
4257
+ o = Number(r.value);
4258
+ const u = n[o], h = bt(u);
4259
+ this.emitChange(h), d();
4260
+ };
4261
+ const l = s.querySelector("label.label");
4262
+ l && (l.htmlFor = r.id), i.appendChild(r), s.appendChild(i);
4263
+ const c = document.createElement("div");
4264
+ c.className = "group", j(c, "field-group");
4265
+ const d = () => {
4266
+ c.innerHTML = "";
4267
+ const u = n[o], h = vt(u, this._path, this._value, this._label);
4268
+ h instanceof vn || (h.addEventListener("change", (p) => {
4269
+ p.stopPropagation(), this.emitChange(p.detail.value);
4270
+ }), c.appendChild(h));
4271
+ };
4272
+ d(), s.appendChild(c);
4273
+ }
4274
+ this.$root.appendChild(s);
4275
+ }
4276
+ }
4277
+ X("schema-form-union", Sr);
4278
+ class wr extends Me {
4279
+ render() {
4280
+ this.$root.innerHTML = `<style>${ge}</style>`;
4281
+ const t = ve(this._schema), s = this.makeFieldContainer("tuple", t.description), n = document.createElement("div");
4282
+ n.className = "group", j(n, "field-group");
4283
+ const i = Array.isArray(this._value) ? this._value : [];
4284
+ (this._schema.list || []).forEach((r, o) => {
4285
+ const l = vt(
4286
+ r,
4287
+ [...this._path, o],
4288
+ i[o],
4289
+ `${this._label ?? ""}[${o}]`
4290
+ );
4291
+ l.addEventListener("change", (c) => {
4292
+ c.stopPropagation();
4293
+ const d = Array.isArray(this._value) ? this._value.slice() : [];
4294
+ d[o] = c.detail.value, this.emitChange(d);
4295
+ }), n.appendChild(l);
4296
+ }), s.appendChild(n), this.$root.appendChild(s);
4297
+ }
4298
+ }
4299
+ X("schema-form-tuple", wr);
4300
+ class Tr extends Me {
4301
+ render() {
4302
+ this.$root.innerHTML = `<style>${ge}</style>`;
4303
+ const t = ve(this._schema), s = this.makeFieldContainer("object", t.description), n = document.createElement("div");
4304
+ n.className = "group", j(n, "field-group");
4305
+ const i = this._schema.dict || {};
4306
+ Object.keys(i).forEach((r) => {
4307
+ if (i[r]?.meta?.hidden) return;
4308
+ const o = (this._value ?? {})[r], l = vt(i[r], [...this._path, r], o, r);
4309
+ l.addEventListener("change", (c) => {
4310
+ c.stopPropagation();
4311
+ const d = { ...this._value ?? {} };
4312
+ d[r] = c.detail.value, this.emitChange(d);
4313
+ }), n.appendChild(l);
4314
+ }), s.appendChild(n), this.$root.appendChild(s);
4315
+ }
4316
+ }
4317
+ X("schema-form-object", Tr);
4318
+ class ys extends Me {
4319
+ constructor() {
4320
+ super(...arguments), this._itemIds = [];
4321
+ }
4322
+ static {
4323
+ this._idCounter = 0;
4324
+ }
4325
+ generateItemId() {
4326
+ try {
4327
+ if (typeof crypto < "u" && typeof crypto.randomUUID == "function")
4328
+ return crypto.randomUUID();
4329
+ } catch {
4330
+ }
4331
+ return "i" + ys._idCounter++;
4332
+ }
4333
+ ensureItemIds(t) {
4334
+ for (; this._itemIds.length < t; ) this._itemIds.push(this.generateItemId());
4335
+ this._itemIds.length > t && (this._itemIds.length = t);
4336
+ }
4337
+ // 采集当前行位置信息(用于 FLIP)
4338
+ capturePositions(t) {
4339
+ const s = {};
4340
+ return t.querySelectorAll(".row").forEach((n) => {
4341
+ const i = n.dataset.uid;
4342
+ i && (s[i] = n.getBoundingClientRect());
4343
+ }), s;
4344
+ }
4345
+ playFLIP(t, s) {
4346
+ Array.from(t.querySelectorAll(".row")).forEach((n) => {
4347
+ const i = n.dataset.uid;
4348
+ if (!i) return;
4349
+ const r = s[i];
4350
+ if (!r) return;
4351
+ const o = n.getBoundingClientRect(), l = r.left - o.left, c = r.top - o.top;
4352
+ (l || c) && (n.style.transition = "none", n.style.transform = `translate(${l}px, ${c}px)`, requestAnimationFrame(() => {
4353
+ n.style.transition = "transform .25s ease", n.style.transform = "";
4354
+ }));
4355
+ });
4356
+ }
4357
+ render() {
4358
+ this.$root.innerHTML = `<style>${ge}</style>`;
4359
+ const t = ve(this._schema), s = this.makeFieldContainer("array", t.description), n = document.createElement("div");
4360
+ n.className = "group", j(n, "field-group");
4361
+ const i = this._schema.inner, r = () => Array.isArray(this._value) ? this._value : [];
4362
+ this.ensureItemIds(r().length);
4363
+ const o = (d, u) => {
4364
+ n.innerHTML = "", r().forEach((h, p) => {
4365
+ const b = [...this._path, p], x = document.createElement("div");
4366
+ x.className = "row schema-collection-row", j(x, "field-row", "collection-row");
4367
+ const $ = this._itemIds[p];
4368
+ x.dataset.uid = $, x.setAttribute("data-path", Vt(b));
4369
+ const H = vt(
4370
+ i,
4371
+ b,
4372
+ h,
4373
+ `${this._label ?? ""}[${p}]`
4374
+ );
4375
+ H.addEventListener("change", (N) => {
4376
+ N.stopPropagation();
4377
+ const V = r().slice();
4378
+ V[p] = N.detail.value, this._value = V, this.emitChange(V);
4379
+ });
4380
+ const I = document.createElement("div");
4381
+ I.className = "actions", j(I, "field-actions");
4382
+ const R = document.createElement("button");
4383
+ R.type = "button", R.className = "btn", j(R, "field-button", "field-button-secondary"), R.textContent = this._i18n.arrayMoveUp ?? "↑", R.onclick = () => {
4384
+ if (p <= 0) return;
4385
+ const N = this.capturePositions(n), V = r().slice();
4386
+ [V[p - 1], V[p]] = [V[p], V[p - 1]], [this._itemIds[p - 1], this._itemIds[p]] = [
4387
+ this._itemIds[p],
4388
+ this._itemIds[p - 1]
4389
+ ], this._value = V, o(N), this.emitChange(V);
4390
+ };
4391
+ const L = document.createElement("button");
4392
+ L.type = "button", L.className = "btn", j(L, "field-button", "field-button-secondary"), L.textContent = this._i18n.arrayMoveDown ?? "↓", L.onclick = () => {
4393
+ const N = r();
4394
+ if (p >= N.length - 1) return;
4395
+ const V = this.capturePositions(n), Q = N.slice();
4396
+ [Q[p + 1], Q[p]] = [Q[p], Q[p + 1]], [this._itemIds[p + 1], this._itemIds[p]] = [
4397
+ this._itemIds[p],
4398
+ this._itemIds[p + 1]
4399
+ ], this._value = Q, o(V), this.emitChange(Q);
4400
+ };
4401
+ const T = document.createElement("button");
4402
+ T.type = "button", T.className = "btn danger", j(T, "field-button", "field-button-danger"), T.textContent = this._i18n.arrayRemove ?? "×", T.onclick = () => {
4403
+ x.classList.add("leaving");
4404
+ const N = 250;
4405
+ let V = !1;
4406
+ const Q = () => {
4407
+ if (V) return;
4408
+ V = !0, clearTimeout(ye);
4409
+ const Ye = r().filter((rt, ot) => ot !== p);
4410
+ this._itemIds.splice(p, 1);
4411
+ const Oe = this.capturePositions(n);
4412
+ this._value = Ye, o(Oe), this.emitChange(Ye);
4413
+ };
4414
+ x.addEventListener("transitionend", Q, { once: !0 });
4415
+ const ye = setTimeout(Q, N + 80);
4416
+ }, I.append(R, L, T), x.appendChild(H), x.appendChild(I), n.appendChild(x), u && u === $ && (x.classList.add("enter"), requestAnimationFrame(() => {
4417
+ x.classList.add("enter-active");
4418
+ }), requestAnimationFrame(() => {
4419
+ x.classList.remove("enter");
4420
+ }));
4421
+ }), d && this.playFLIP(n, d);
4422
+ };
4423
+ o();
4424
+ const l = document.createElement("button");
4425
+ l.type = "button", l.className = "btn primary", j(l, "field-button", "field-button-primary"), l.textContent = this._i18n.arrayAdd ?? "+", l.onclick = () => {
4426
+ const d = this.capturePositions(n), u = r().slice(), h = bt(i);
4427
+ u.push(h);
4428
+ const p = this.generateItemId();
4429
+ this._itemIds.push(p), this._value = u, o(d, p), this.emitChange(u);
4430
+ };
4431
+ const c = document.createElement("div");
4432
+ c.className = "actions", j(c, "field-actions"), c.appendChild(l), s.appendChild(n), s.appendChild(c), this.$root.appendChild(s);
4433
+ }
4434
+ }
4435
+ X("schema-form-array", ys);
4436
+ class $r extends Me {
4437
+ render() {
4438
+ this.$root.innerHTML = `<style>${ge}</style>`;
4439
+ const t = ve(this._schema), s = this.makeFieldContainer("dict", t.description), n = document.createElement("div");
4440
+ n.className = "group", j(n, "field-group");
4441
+ const i = this._schema.inner, r = this._value ?? {}, o = (p) => `d_${p}`, l = () => {
4442
+ const p = {};
4443
+ return n.querySelectorAll(".kv").forEach((b) => {
4444
+ const x = b.dataset.uid;
4445
+ x && (p[x] = b.getBoundingClientRect());
4446
+ }), p;
4447
+ }, c = (p) => {
4448
+ n.querySelectorAll(".kv").forEach((b) => {
4449
+ const x = b.dataset.uid;
4450
+ if (!x) return;
4451
+ const $ = p[x];
4452
+ if (!$) return;
4453
+ const H = b.getBoundingClientRect(), I = $.left - H.left, R = $.top - H.top;
4454
+ (I || R) && (b.style.transition = "none", b.style.transform = `translate(${I}px, ${R}px)`, requestAnimationFrame(() => {
4455
+ b.style.transition = "transform .25s ease", b.style.transform = "";
4456
+ }));
4457
+ });
4458
+ }, d = (p, b) => {
4459
+ n.innerHTML = "", Object.keys(r).forEach((x) => {
4460
+ const $ = [...this._path, x], H = document.createElement("div");
4461
+ H.className = "kv schema-collection-row", j(H, "field-row", "collection-row"), H.dataset.uid = o(x), H.setAttribute("data-path", Vt($));
4462
+ const I = document.createElement("input");
4463
+ I.className = "input", j(I, "field-input", "field-input-text"), I.value = x, I.name = it($) + ".__key", I.id = ze($) + "__key";
4464
+ const R = vt(i, $, r[x], `${this._label ?? ""}[${x}]`), L = document.createElement("button");
4465
+ L.type = "button", L.className = "btn danger", j(L, "field-button", "field-button-danger"), L.textContent = this._i18n.dictRemove ?? "×", L.onclick = () => {
4466
+ const T = l();
4467
+ delete r[x];
4468
+ const N = { ...this._value ?? {} };
4469
+ delete N[x], this._value = N, d(T), this.emitChange(N);
4470
+ }, I.onchange = () => {
4471
+ const T = I.value.trim();
4472
+ if (!T || T === x || r[T] !== void 0) return;
4473
+ const N = l();
4474
+ r[T] = r[x], delete r[x];
4475
+ const V = { ...this._value ?? {} };
4476
+ V[T] = V[x], delete V[x], this._value = V, d(N), this.emitChange(V);
4477
+ }, R.addEventListener("change", (T) => {
4478
+ T.stopPropagation();
4479
+ const N = { ...this._value ?? {} };
4480
+ N[x] = T.detail.value, this._value = N, this.emitChange(N);
4481
+ }), H.append(I, R, L), n.appendChild(H), b === x && (H.classList.add("enter"), requestAnimationFrame(() => H.classList.add("enter-active")), requestAnimationFrame(() => H.classList.remove("enter")));
4482
+ }), p && c(p);
4483
+ };
4484
+ d();
4485
+ const u = document.createElement("button");
4486
+ u.type = "button", u.className = "btn primary", j(u, "field-button", "field-button-primary"), u.textContent = this._i18n.dictAdd ?? "+", u.onclick = () => {
4487
+ let p = Object.keys(r).length + 1, b = `k${p}`;
4488
+ for (; r[b] !== void 0; ) b = `k${++p}`;
4489
+ const x = l();
4490
+ r[b] = bt(i);
4491
+ const $ = { ...this._value ?? {}, [b]: r[b] };
4492
+ this._value = $, d(x, b), this.emitChange($);
4493
+ };
4494
+ const h = document.createElement("div");
4495
+ h.className = "actions", j(h, "field-actions"), h.appendChild(u), s.appendChild(n), s.appendChild(h), this.$root.appendChild(s);
4496
+ }
4497
+ }
4498
+ X("schema-form-dict", $r);
4499
+ class Ar extends HTMLElement {
4500
+ constructor() {
4501
+ super(), this._i18n = { ...br }, this.$root = this.attachShadow({ mode: "open" });
4502
+ const t = document.createElement("style");
4503
+ t.textContent = ge, this.$root.appendChild(t);
4504
+ const s = document.createElement("div");
4505
+ s.className = "wrapper", j(s, "wrapper");
4506
+ const n = document.createElement("form");
4507
+ n.className = "form", j(n, "form"), s.appendChild(n), this.$root.appendChild(s), this.addEventListener("change", (i) => {
4508
+ if (!i?.detail) return;
4509
+ const { path: r, value: o } = i.detail;
4510
+ Array.isArray(r) && r.length === 0 ? this._state = o : uc(this._state ?? (this._state = {}), r, o), this.dispatchEvent(
4511
+ new CustomEvent("form-change", { detail: { path: r, value: o, state: this._state } })
4512
+ );
4513
+ });
4514
+ }
4515
+ // --- 对外 API ---
4516
+ set schema(t) {
4517
+ this._schema = vr(t);
4518
+ try {
4519
+ this._state = this._schema(null, { autofix: !0 });
4520
+ } catch {
4521
+ this._state = bt(this._schema);
4522
+ }
4523
+ this.render();
4524
+ }
4525
+ get schema() {
4526
+ return this._schema;
4527
+ }
4528
+ set schemaJSON(t) {
4529
+ this.schema = t;
4530
+ }
4531
+ get schemaJSON() {
4532
+ return this._schema?.toJSON?.();
4533
+ }
4534
+ setData(t, s = { validate: !0, autofix: !0 }) {
4535
+ if (!this._schema) throw new Error("请先设置 schema");
4536
+ const n = s.validate ? this._schema(t ?? null, { autofix: s.autofix }) : t;
4537
+ this._state = n, this.render();
4538
+ }
4539
+ getData(t = { validate: !0, autofix: !0 }) {
4540
+ if (!this._schema) throw new Error("请先设置 schema");
4541
+ const s = this._state;
4542
+ return t.validate ? this._schema(s ?? null, { autofix: t.autofix }) : s;
4543
+ }
4544
+ reset() {
4545
+ try {
4546
+ this._state = this._schema(null, { autofix: !0 });
4547
+ } catch {
4548
+ this._state = bt(this._schema);
4549
+ }
4550
+ this.render();
4551
+ }
4552
+ refresh() {
4553
+ this.render();
4554
+ }
4555
+ // i18n 相关
4556
+ set i18n(t) {
4557
+ this._i18n = { ...this._i18n, ...t }, this.render();
4558
+ }
4559
+ get i18n() {
4560
+ return this._i18n;
4561
+ }
4562
+ render() {
4563
+ if (!this._schema) return;
4564
+ const t = this.$root.querySelector("form");
4565
+ t.innerHTML = "";
4566
+ const s = vt(
4567
+ this._schema,
4568
+ [],
4569
+ this._state,
4570
+ this._i18n.rootLabel,
4571
+ this._i18n
4572
+ );
4573
+ t.appendChild(s);
4574
+ }
4575
+ }
4576
+ X("schema-form", Ar);
4577
+ function mc() {
4578
+ X("schema-form", Ar), X("schema-form-string", yr), X("schema-form-number", xr), X("schema-form-boolean", Cr), X("schema-form-date", Er), X("schema-form-const", vn), X("schema-form-union", Sr), X("schema-form-tuple", wr), X("schema-form-object", Tr), X("schema-form-array", ys), X("schema-form-dict", $r);
4579
+ }
4580
+ const gc = /* @__PURE__ */ ji({
4581
+ __name: "SchemasteryFormVue",
4582
+ props: /* @__PURE__ */ Ln({
4583
+ schema: {},
4584
+ value: {},
4585
+ validateOnChange: { type: Boolean, default: !1 }
4586
+ }, {
4587
+ schema: { required: !0 },
4588
+ schemaModifiers: {},
4589
+ value: { required: !1, default: {} },
4590
+ valueModifiers: {}
4591
+ }),
4592
+ emits: /* @__PURE__ */ Ln(["change"], ["update:schema", "update:value"]),
4593
+ setup(e, { expose: t, emit: s }) {
4594
+ const n = Vn(e, "schema"), i = Vn(e, "value"), r = s, o = Lo("elRef");
4595
+ let l = !1, c = !1;
4596
+ const d = (u) => {
4597
+ if (c)
4598
+ return;
4599
+ const h = o.value, p = e.validateOnChange ? h.getData({ validate: !0 }) : u.detail.state;
4600
+ l = !0, i.value = p, Xt(() => {
4601
+ l = !1;
4602
+ }), r("change", u.detail);
4603
+ };
4604
+ return Vi(() => {
4605
+ mc();
4606
+ }), fn(() => {
4607
+ const u = o.value;
4608
+ n.value && (u.schema = n.value), i.value !== void 0 && u.setData(i.value, { validate: !1, autofix: !0 }), u.addEventListener("form-change", d);
4609
+ }), Bi(() => {
4610
+ o.value?.removeEventListener("form-change", d);
4611
+ }), gt(
4612
+ () => n,
4613
+ (u) => {
4614
+ l || o.value && u && o.value.schema !== u.value && (c = !0, o.value.schema = u.value, Xt(() => {
4615
+ c = !1;
4616
+ }));
4617
+ },
4618
+ { deep: !0, immediate: !0 }
4619
+ ), gt(
4620
+ () => i,
4621
+ (u) => {
4622
+ if (l || !o.value || u.value === void 0) return;
4623
+ const h = o.value.getData({ validate: !1 });
4624
+ JSON.stringify(h) !== JSON.stringify(u.value) && (c = !0, o.value.setData(u.value, { validate: !1 }), Xt(() => {
4625
+ c = !1;
4626
+ }));
4627
+ },
4628
+ { deep: !0, immediate: !0 }
4629
+ ), t({
4630
+ /** 手动设置数据并可选择是否触发 v-model:data */
4631
+ setData(u, h) {
4632
+ const p = o.value;
4633
+ p.setData(u, { validate: !!h?.validate }), h?.emit && (i.value = p.getData({ validate: !!h?.validate }));
4634
+ },
4635
+ /** 获取数据 */
4636
+ getData(u) {
4637
+ return o.value.getData(u);
4638
+ },
4639
+ /** 设置 schema,并同步到 v-model:schema */
4640
+ setSchema(u, h = !0) {
4641
+ o.value.schema = u, h && (n.value = u);
4642
+ },
4643
+ refresh() {
4644
+ o.value.refresh();
4645
+ },
4646
+ reset() {
4647
+ o.value.reset();
4648
+ },
4649
+ /** 原生元素 */
4650
+ el: o
4651
+ }), (u, h) => (Ve(), at("schema-form", hr({
4652
+ ref_key: "elRef",
4653
+ ref: o
4654
+ }, u.$attrs), null, 16));
4655
+ }
4656
+ });
4657
+ function st(e, t = /* @__PURE__ */ new WeakMap()) {
4658
+ if (te(e))
4659
+ return st(e.value, t);
4660
+ if (e === null || typeof e != "object")
4661
+ return e;
4662
+ if (t.has(e))
4663
+ return t.get(e);
4664
+ if (e instanceof Date)
4665
+ return new Date(e);
4666
+ if (e instanceof RegExp)
4667
+ return new RegExp(e);
4668
+ if (e instanceof Map) {
4669
+ const i = /* @__PURE__ */ new Map();
4670
+ return t.set(e, i), Array.from(e.entries()).forEach(([r, o]) => {
4671
+ i.set(r, st(o, t));
4672
+ }), i;
4673
+ }
4674
+ if (e instanceof Set) {
4675
+ const i = /* @__PURE__ */ new Set();
4676
+ return t.set(e, i), Array.from(e).forEach((r) => {
4677
+ i.add(st(r, t));
4678
+ }), i;
4679
+ }
4680
+ if (Array.isArray(e)) {
4681
+ const i = [];
4682
+ t.set(e, i);
4683
+ for (const r of e)
4684
+ i.push(st(r, t));
4685
+ return i;
4686
+ }
4687
+ const s = U(e), n = {};
4688
+ t.set(e, n);
4689
+ for (const i of Object.keys(s))
4690
+ n[i] = st(s[i], t);
4691
+ for (const i of Object.getOwnPropertySymbols(s))
4692
+ n[i] = st(s[i], t);
4693
+ return n;
4694
+ }
4695
+ const _c = { class: "preferences-ui-app" }, bc = { class: "tabbar" }, vc = { class: "tabbar-tabs" }, yc = ["onClick", "data-value"], xc = { class: "tabbar-content" }, Cc = { key: 0 }, Ec = { style: { "max-height": "20em", overflow: "auto" } }, Sc = /* @__PURE__ */ ji({
4696
+ __name: "PreferencesForm",
4697
+ setup(e, { expose: t }) {
4698
+ const s = cc(), n = !1, i = On([]), r = On(""), o = Yt([]), l = gr(() => o.value.map((u) => u.schema)), c = Yt({}), d = Yt({});
4699
+ return t({
4700
+ getValue() {
4701
+ return st(d);
4702
+ }
4703
+ }), gt(
4704
+ r,
4705
+ (u) => {
4706
+ u && (c.value = d.value, o.value = s.preferences.getConfigRegistries(u));
4707
+ },
4708
+ { immediate: !0 }
4709
+ ), fn(async () => {
4710
+ s.inject(["preferences"], async (u) => {
4711
+ const h = await u.preferences.getAll();
4712
+ c.value = d.value = h, i.value = u.preferences.getConfigCategories(), r.value = i.value[0].name;
4713
+ });
4714
+ }), (u, h) => (Ve(), at("div", _c, [
4715
+ ut("div", bc, [
4716
+ ut("div", vc, [
4717
+ (Ve(!0), at(_e, null, Rn(i.value, (p) => (Ve(), at("a", {
4718
+ class: hs(["tab", { active: r.value === p.name }]),
4719
+ key: p.name,
4720
+ onClick: (b) => r.value = p.name,
4721
+ "data-value": p.name
4722
+ }, Ns(p.label), 11, yc))), 128))
4723
+ ]),
4724
+ ut("div", xc, [
4725
+ (Ve(!0), at(_e, null, Rn(l.value, (p, b) => (Ve(), ur(Us(gc), {
4726
+ key: `${r.value}-${b}`,
4727
+ schema: p,
4728
+ value: c.value,
4729
+ "onUpdate:value": h[0] || (h[0] = (x) => d.value = x),
4730
+ "validate-on-change": !1,
4731
+ i18n: { rootLabel: "" }
4732
+ }, null, 8, ["schema", "value"]))), 128))
4733
+ ])
4734
+ ]),
4735
+ Us(n) ? (Ve(), at("details", Cc, [
4736
+ ut("pre", Ec, Ns(d.value), 1)
4737
+ ])) : Tl("", !0)
4738
+ ]));
4739
+ }
4740
+ }), wc = (e, t) => {
4741
+ const s = e.__vccOpts || e;
4742
+ for (const [n, i] of t)
4743
+ s[n] = i;
4744
+ return s;
4745
+ }, Tc = /* @__PURE__ */ wc(Sc, [["__scopeId", "data-v-59cb1172"]]);
4746
+ var $c = Object.create, yn = Object.defineProperty, Ac = Object.getOwnPropertyDescriptor, Pr = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), Ir = (e) => {
4747
+ throw TypeError(e);
4748
+ }, Pc = (e, t, s) => t in e ? yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, Ic = (e, t) => yn(e, "name", { value: t, configurable: !0 }), Mc = (e) => [, , , $c(e?.[Pr("metadata")] ?? null)], Oc = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Mr = (e) => e !== void 0 && typeof e != "function" ? Ir("Function expected") : e, Fc = (e, t, s, n, i) => ({ kind: Oc[e], name: t, metadata: n, addInitializer: (r) => s._ ? Ir("Already initialized") : i.push(Mr(r || null)) }), Nc = (e, t) => Pc(t, Pr("metadata"), e[3]), Rc = (e, t, s, n) => {
4749
+ for (var i = 0, r = e[t >> 1], o = r && r.length; i < o; i++) r[i].call(s);
4750
+ return n;
4751
+ }, Lc = (e, t, s, n, i, r) => {
4752
+ var o, l, c, d = t & 7, u = !1, h = 0, p = e[h] || (e[h] = []), b = d && (i = i.prototype, d < 5 && (d > 3 || !u) && Ac(i, s));
4753
+ Ic(i, s);
4754
+ for (var x = n.length - 1; x >= 0; x--)
4755
+ c = Fc(d, s, l = {}, e[3], p), o = (0, n[x])(i, c), l._ = 1, Mr(o) && (i = o);
4756
+ return Nc(e, i), b && yn(i, s, b), u ? d ^ 4 ? r : b : i;
4757
+ }, Or, xn, Fr;
4758
+ Or = [Hr(["preferences", "modal"])];
4759
+ class Gs extends (Fr = jr) {
4760
+ constructor(t) {
4761
+ super(t, {}, "preferences-ui"), this.ctx = t, this._latestModal = null, t.set("preferencesUI", this), t.set("prefsModal", this), t.preferences.defineCategory({
4762
+ name: "about",
4763
+ label: "About",
4764
+ description: "About InPageEdit",
4765
+ index: 99
4766
+ }), t.preferences.registerCustomConfig(
4767
+ "about",
4768
+ An.object({
4769
+ about: An.const(
4770
+ /* @__PURE__ */ J("div", { className: "prose", children: [
4771
+ /* @__PURE__ */ J("h2", { children: "✏️ InPageEdit NEXT" }),
4772
+ /* @__PURE__ */ J("i", { children: [
4773
+ "v",
4774
+ this.ctx.version
4775
+ ] }),
4776
+ /* @__PURE__ */ J("h2", { children: "Portals" }),
4777
+ /* @__PURE__ */ J("div", { style: "display: flex; flex-direction: column; gap: 1rem", children: [
4778
+ /* @__PURE__ */ J(
4779
+ "a",
4780
+ {
4781
+ href: this.ctx.Endpoints.HOME_URL,
4782
+ target: "_blank",
4783
+ style: { display: "block", width: "100%" },
4784
+ children: "Official Website & Help Center"
4785
+ }
4786
+ ),
4787
+ /* @__PURE__ */ J(
4788
+ Ur,
4789
+ {
4790
+ href: `${this.ctx.Endpoints.UPDATE_LOGS_URL}#${this.ctx.version}`,
4791
+ style: { display: "block", width: "100%" },
4792
+ children: "Update Logs"
4793
+ }
4794
+ )
4795
+ ] }),
4796
+ /* @__PURE__ */ J("h2", { children: "Join us" }),
4797
+ /* @__PURE__ */ J("ul", { children: [
4798
+ /* @__PURE__ */ J("li", { children: [
4799
+ /* @__PURE__ */ J("strong", { children: "GitHub" }),
4800
+ ":",
4801
+ " ",
4802
+ /* @__PURE__ */ J("a", { href: this.ctx.Endpoints.GITHUB_URL, target: "_blank", children: "inpageedit/inpageedit-next" })
4803
+ ] }),
4804
+ /* @__PURE__ */ J("li", { children: [
4805
+ /* @__PURE__ */ J("strong", { children: "QQ Group" }),
4806
+ ": 1026023666"
4807
+ ] })
4808
+ ] }),
4809
+ /* @__PURE__ */ J("hr", {}),
4810
+ /* @__PURE__ */ J("p", { children: "🚀 Modular, Extensible Supercharged Plugin for MediaWiki." }),
4811
+ /* @__PURE__ */ J("p", { children: "InPageEdit-NEXT Copyright © 2025-present dragon-fish" })
4812
+ ] })
4813
+ ).role("raw-html")
4814
+ }).description(""),
4815
+ "about"
4816
+ ), t.inject(["toolbox"], (s) => {
4817
+ s.toolbox.addButton({
4818
+ id: "preferences",
4819
+ icon: /* @__PURE__ */ J(
4820
+ "svg",
4821
+ {
4822
+ xmlns: "http://www.w3.org/2000/svg",
4823
+ width: "24",
4824
+ height: "24",
4825
+ viewBox: "0 0 24 24",
4826
+ fill: "currentColor",
4827
+ class: "icon icon-tabler icons-tabler-filled icon-tabler-settings",
4828
+ children: [
4829
+ /* @__PURE__ */ J("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
4830
+ /* @__PURE__ */ J("path", { d: "M14.647 4.081a.724 .724 0 0 0 1.08 .448c2.439 -1.485 5.23 1.305 3.745 3.744a.724 .724 0 0 0 .447 1.08c2.775 .673 2.775 4.62 0 5.294a.724 .724 0 0 0 -.448 1.08c1.485 2.439 -1.305 5.23 -3.744 3.745a.724 .724 0 0 0 -1.08 .447c-.673 2.775 -4.62 2.775 -5.294 0a.724 .724 0 0 0 -1.08 -.448c-2.439 1.485 -5.23 -1.305 -3.745 -3.744a.724 .724 0 0 0 -.447 -1.08c-2.775 -.673 -2.775 -4.62 0 -5.294a.724 .724 0 0 0 .448 -1.08c-1.485 -2.439 1.305 -5.23 3.744 -3.745a.722 .722 0 0 0 1.08 -.447c.673 -2.775 4.62 -2.775 5.294 0zm-2.647 4.919a3 3 0 1 0 0 6a3 3 0 0 0 0 -6z" })
4831
+ ]
4832
+ }
4833
+ ),
4834
+ tooltip: "Configure Preferences",
4835
+ group: "group2",
4836
+ index: 1 / 0,
4837
+ onClick: () => this.showModal()
4838
+ }), this.addDisposeHandler((n) => {
4839
+ n.toolbox.removeButton("preferences");
4840
+ });
4841
+ });
4842
+ }
4843
+ async start() {
4844
+ import("./PluginPrefSync-PIoKRRu2.js").then(({ PluginPrefSync: t }) => {
4845
+ this.ctx.plugin(t);
4846
+ }).catch(this.ctx.logger.warn);
4847
+ }
4848
+ stop() {
4849
+ }
4850
+ showModal() {
4851
+ if (this._latestModal && !this._latestModal.isDestroyed)
4852
+ return this._latestModal;
4853
+ const t = this.ctx.modal.show({
4854
+ className: "ipe-preference compact-buttons",
4855
+ sizeClass: "small",
4856
+ outSideClose: !1,
4857
+ center: !0,
4858
+ title: `InPageEdit Preferences (${this.ctx.version})`,
4859
+ content: /* @__PURE__ */ J(Dr, { children: /* @__PURE__ */ J(Lr, {}) })
4860
+ });
4861
+ t.get$window().classList.add("dialog");
4862
+ const s = /* @__PURE__ */ J("div", { id: "ipe-preferences-app", style: { minHeight: "65vh" } });
4863
+ t.setContent(s);
4864
+ const n = this.createForm(), i = n.mount(s);
4865
+ return t.setButtons([
4866
+ {
4867
+ label: "Cancel",
4868
+ className: "is-danger is-ghost",
4869
+ method: () => {
4870
+ t.close();
4871
+ }
4872
+ },
4873
+ {
4874
+ label: "Save",
4875
+ className: "is-primary is-ghost",
4876
+ method: () => {
4877
+ const r = i.getValue();
4878
+ this.logger.info("saving preferences", r);
4879
+ try {
4880
+ Object.entries(r).forEach(([o, l]) => {
4881
+ this.ctx.preferences.set(o, l).catch(console.error);
4882
+ });
4883
+ } catch (o) {
4884
+ this.logger.error("failed to save preferences", o);
4885
+ }
4886
+ t.close(), this.ctx.modal.notify("success", {
4887
+ title: "Preferences Saved",
4888
+ content: /* @__PURE__ */ J("p", { children: "Some settings may take effect after reloading the page." })
4889
+ });
4890
+ }
4891
+ }
4892
+ ]), this._latestModal = t, t.on(t.Event.Close, () => {
4893
+ this.logger.debug("preferences modal closed, vue app unmounting"), n.unmount(), this._latestModal = null;
4894
+ }), t;
4895
+ }
4896
+ closeModal() {
4897
+ this._latestModal?.close();
4898
+ }
4899
+ getExistingModal() {
4900
+ return this._latestModal;
4901
+ }
4902
+ createForm() {
4903
+ return ac(this.ctx, Tc);
4904
+ }
4905
+ }
4906
+ xn = Mc(Fr);
4907
+ Gs = Lc(xn, 0, "PluginPreferencesUI", Or, Gs);
4908
+ Rc(xn, 1, Gs);
4909
+ export {
4910
+ Gs as PluginPreferencesUI
4911
+ };
4912
+ //# sourceMappingURL=index-DGOY4X1J.js.map