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