@admin-core/design 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,2 +1,2352 @@
1
-
1
+ const tt = "light", Me = "default", ne = {
2
+ MODE: "theme-mode",
3
+ VARIANT: "theme-variant"
4
+ }, ae = {
5
+ DARK: "dark",
6
+ LIGHT: "light"
7
+ }, xe = {
8
+ THEME: "data-theme",
9
+ MODE: "data-mode"
10
+ }, Ye = 300, le = [
11
+ {
12
+ id: "default",
13
+ name: "经典蓝",
14
+ icon: "🔵",
15
+ description: "经典的蓝色主题,适合大多数场景",
16
+ primaryColor: "hsl(212, 100%, 48%)",
17
+ category: "colorful",
18
+ isDefault: !0
19
+ },
20
+ {
21
+ id: "slate",
22
+ name: "石板灰",
23
+ icon: "🔘",
24
+ description: "石板色主题,沉稳内敛",
25
+ primaryColor: "hsl(215, 20%, 40%)",
26
+ category: "neutral"
27
+ },
28
+ {
29
+ id: "burnished-lilac",
30
+ name: "烟熏薰衣草",
31
+ icon: "🪻",
32
+ description: "2026流行色 - 优雅的薰衣草紫,展现高贵气质",
33
+ primaryColor: "hsl(280, 35%, 65%)",
34
+ category: "colorful"
35
+ },
36
+ {
37
+ id: "teaberry",
38
+ name: "茶莓红",
39
+ icon: "🌹",
40
+ description: "2026流行色 - 浪漫的茶莓色,充满活力",
41
+ primaryColor: "hsl(345, 75%, 55%)",
42
+ category: "colorful"
43
+ },
44
+ {
45
+ id: "amaranth",
46
+ name: "苋菜紫",
47
+ icon: "💜",
48
+ description: "2026流行色 - 神秘的苋菜紫,时尚前卫",
49
+ primaryColor: "hsl(310, 60%, 45%)",
50
+ category: "colorful"
51
+ },
52
+ {
53
+ id: "pulse-blue",
54
+ name: "脉冲蓝",
55
+ icon: "💙",
56
+ description: "2026流行色 - 充满活力的脉冲蓝,现代时尚",
57
+ primaryColor: "hsl(200, 85%, 50%)",
58
+ category: "colorful"
59
+ },
60
+ {
61
+ id: "deep-teal",
62
+ name: "深邃青",
63
+ icon: "🩵",
64
+ description: "2026流行色 - 深邃的青色,沉稳大气",
65
+ primaryColor: "hsl(180, 65%, 35%)",
66
+ category: "colorful"
67
+ },
68
+ {
69
+ id: "mermaid-aqua",
70
+ name: "美人鱼蓝",
71
+ icon: "🧜‍♀️",
72
+ description: "2026流行色 - 梦幻的美人鱼蓝,清新可爱",
73
+ primaryColor: "hsl(185, 70%, 55%)",
74
+ category: "colorful"
75
+ },
76
+ {
77
+ id: "pearl-purple",
78
+ name: "珍珠紫",
79
+ icon: "🔮",
80
+ description: "2026流行色 - 柔和的珍珠紫,优雅迷人",
81
+ primaryColor: "hsl(270, 45%, 70%)",
82
+ category: "colorful"
83
+ },
84
+ {
85
+ id: "burgundy",
86
+ name: "勃艮第",
87
+ icon: "🍷",
88
+ description: "2026流行色 - 高端奢华的勃艮第红,尊贵典雅",
89
+ primaryColor: "hsl(345, 65%, 40%)",
90
+ category: "colorful"
91
+ },
92
+ {
93
+ id: "burnt-sienna",
94
+ name: "焦赭石",
95
+ icon: "🍂",
96
+ description: "2026流行色 - 温暖的焦赭石色,自然大地",
97
+ primaryColor: "hsl(15, 60%, 50%)",
98
+ category: "colorful"
99
+ },
100
+ {
101
+ id: "olive-sage",
102
+ name: "橄榄绿",
103
+ icon: "🫒",
104
+ description: "2026流行色 - 沉稳的橄榄绿,自然和谐",
105
+ primaryColor: "hsl(80, 30%, 45%)",
106
+ category: "colorful"
107
+ },
108
+ {
109
+ id: "champagne-gold",
110
+ name: "香槟金",
111
+ icon: "🥂",
112
+ description: "2026流行色 - 奢华的香槟金,高贵优雅",
113
+ primaryColor: "hsl(45, 55%, 60%)",
114
+ category: "colorful"
115
+ },
116
+ {
117
+ id: "dusty-rose",
118
+ name: "灰玫瑰",
119
+ icon: "🌸",
120
+ description: "2026流行色 - 柔和的灰玫瑰色,温柔可爱",
121
+ primaryColor: "hsl(350, 40%, 65%)",
122
+ category: "colorful"
123
+ },
124
+ {
125
+ id: "citrus-green",
126
+ name: "柑橘绿",
127
+ icon: "🍋",
128
+ description: "2026流行色 - 清新的柑橘绿,充满生机",
129
+ primaryColor: "hsl(75, 70%, 50%)",
130
+ category: "colorful"
131
+ }
132
+ ], Xr = {
133
+ colorful: le.filter((e) => e.category === "colorful"),
134
+ neutral: le.filter((e) => e.category === "neutral"),
135
+ monochrome: le.filter((e) => e.category === "monochrome")
136
+ }, nt = new Map(
137
+ le.map((e) => [e.id, e])
138
+ );
139
+ function V() {
140
+ return document.documentElement;
141
+ }
142
+ function un() {
143
+ if (typeof window > "u") return null;
144
+ const e = localStorage.getItem(ne.MODE);
145
+ return e === "dark" || e === "light" ? e : null;
146
+ }
147
+ function fn() {
148
+ if (typeof window > "u") return null;
149
+ const e = localStorage.getItem(ne.VARIANT);
150
+ return nt.has(e) ? e : null;
151
+ }
152
+ function dn(e) {
153
+ typeof window > "u" || localStorage.setItem(ne.MODE, e);
154
+ }
155
+ function pn(e) {
156
+ typeof window > "u" || localStorage.setItem(ne.VARIANT, e);
157
+ }
158
+ function eo() {
159
+ typeof window > "u" || (localStorage.removeItem(ne.MODE), localStorage.removeItem(ne.VARIANT));
160
+ }
161
+ function hn(e) {
162
+ const t = V();
163
+ e === "dark" ? (t.classList.add(ae.DARK), t.classList.remove(ae.LIGHT)) : (t.classList.remove(ae.DARK), t.classList.add(ae.LIGHT)), t.setAttribute(xe.MODE, e);
164
+ const n = localStorage.getItem("custom-theme-primary"), r = localStorage.getItem("custom-theme-active") === "true";
165
+ n && r && setTimeout(() => {
166
+ const o = Tt(n, e);
167
+ rt(o, !1);
168
+ }, 0);
169
+ }
170
+ function mn(e) {
171
+ const t = V();
172
+ e === "default" || e === Me ? t.removeAttribute(xe.THEME) : t.setAttribute(xe.THEME, e), localStorage.getItem("custom-theme-primary") && (localStorage.setItem("custom-theme-active", "false"), [
173
+ "primary",
174
+ "primary-foreground",
175
+ "secondary",
176
+ "secondary-foreground",
177
+ "accent",
178
+ "accent-foreground",
179
+ "muted",
180
+ "muted-foreground",
181
+ "background",
182
+ "background-deep",
183
+ "foreground",
184
+ "card",
185
+ "card-foreground",
186
+ "border",
187
+ "input",
188
+ "ring",
189
+ "sidebar",
190
+ "sidebar-deep",
191
+ "header",
192
+ "menu"
193
+ ].forEach((o) => {
194
+ t.style.removeProperty(`--${o}`);
195
+ }));
196
+ }
197
+ function Nt() {
198
+ return typeof window > "u" ? tt : V().classList.contains(ae.DARK) ? "dark" : "light";
199
+ }
200
+ function to() {
201
+ return typeof window > "u" ? Me : V().getAttribute(xe.THEME) || Me;
202
+ }
203
+ function ue(e, t = {}) {
204
+ const { mode: n, variant: r, persist: o = !0 } = e, { transition: s = !0 } = t;
205
+ s && gn(), n && (hn(n), o && dn(n)), r && (mn(r), o && pn(r)), s && setTimeout(() => {
206
+ _n();
207
+ }, Ye);
208
+ }
209
+ function gn() {
210
+ V().style.setProperty("transition", `background-color ${Ye}ms ease, color ${Ye}ms ease`);
211
+ }
212
+ function _n() {
213
+ V().style.removeProperty("transition");
214
+ }
215
+ function vn(e = {}) {
216
+ const n = Nt() === "dark" ? "light" : "dark";
217
+ return ue({ mode: n }, e), n;
218
+ }
219
+ function yn() {
220
+ const e = un(), t = fn(), n = {
221
+ mode: e || tt,
222
+ variant: t || Me,
223
+ persist: !0,
224
+ enableTransition: !1
225
+ // 初始化时不启用过渡
226
+ };
227
+ return ue(n, { transition: !1 }), n;
228
+ }
229
+ function no() {
230
+ return typeof window > "u" ? tt : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
231
+ }
232
+ function En(e) {
233
+ if (typeof window > "u") return () => {
234
+ };
235
+ const t = window.matchMedia("(prefers-color-scheme: dark)"), n = (r) => {
236
+ e(r.matches ? "dark" : "light");
237
+ };
238
+ return t.addEventListener("change", n), () => {
239
+ t.removeEventListener("change", n);
240
+ };
241
+ }
242
+ function wn() {
243
+ return le;
244
+ }
245
+ function bn(e) {
246
+ return nt.get(e);
247
+ }
248
+ function _t(e) {
249
+ const n = e.replace(/hsl\(|\)|%/g, "").trim().split(/[\s,]+/).map(Number);
250
+ if (n.length < 3 || n[0] === void 0 || n[1] === void 0 || n[2] === void 0)
251
+ return null;
252
+ const r = {
253
+ h: n[0],
254
+ s: n[1],
255
+ l: n[2]
256
+ };
257
+ return n[3] !== void 0 && (r.a = n[3]), r;
258
+ }
259
+ function ro(e) {
260
+ const { h: t, s: n, l: r, a: o } = e;
261
+ return o !== void 0 && o !== 1 ? `hsla(${t}, ${n}%, ${r}%, ${o})` : `hsl(${t}, ${n}%, ${r}%)`;
262
+ }
263
+ function Sn(e) {
264
+ if (typeof window > "u") return "";
265
+ const t = V();
266
+ return getComputedStyle(t).getPropertyValue(`--${e}`).trim();
267
+ }
268
+ function oo(e, t) {
269
+ if (typeof window > "u") return;
270
+ V().style.setProperty(`--${e}`, t);
271
+ }
272
+ function so(e) {
273
+ const t = Sn(e);
274
+ return t && !t.startsWith("hsl") ? `hsl(${t})` : t;
275
+ }
276
+ function io(e) {
277
+ return nt.has(e);
278
+ }
279
+ function co(e) {
280
+ return e === "light" || e === "dark";
281
+ }
282
+ function rt(e, t = !1) {
283
+ if (typeof window > "u") return;
284
+ const n = V(), r = (o) => o.replace(/hsl\(|\)|%/g, "").trim();
285
+ Object.entries(e).forEach(([o, s]) => {
286
+ if (s) {
287
+ const i = o.replace(/([A-Z])/g, "-$1").toLowerCase(), c = r(s);
288
+ n.style.setProperty(`--${i}`, c);
289
+ }
290
+ }), t && localStorage.setItem("custom-theme-colors", JSON.stringify(e));
291
+ }
292
+ function Nn() {
293
+ if (typeof window > "u") return null;
294
+ const e = localStorage.getItem("custom-theme-colors");
295
+ if (!e) return null;
296
+ try {
297
+ return JSON.parse(e);
298
+ } catch {
299
+ return null;
300
+ }
301
+ }
302
+ function ao() {
303
+ if (typeof window > "u") return;
304
+ const e = V();
305
+ [
306
+ "primary",
307
+ "primaryForeground",
308
+ "secondary",
309
+ "secondaryForeground",
310
+ "accent",
311
+ "accentForeground",
312
+ "muted",
313
+ "mutedForeground",
314
+ "background",
315
+ "backgroundDeep",
316
+ "foreground",
317
+ "card",
318
+ "cardForeground",
319
+ "border",
320
+ "input",
321
+ "ring",
322
+ "sidebar",
323
+ "sidebarDeep",
324
+ "header",
325
+ "menu"
326
+ ].forEach((n) => {
327
+ const r = n.replace(/([A-Z])/g, "-$1").toLowerCase();
328
+ e.style.removeProperty(`--${r}`);
329
+ }), localStorage.removeItem("custom-theme-colors"), localStorage.removeItem("custom-theme-primary"), localStorage.removeItem("custom-theme-active");
330
+ }
331
+ function lo() {
332
+ const e = Nn();
333
+ return e ? (rt(e, !1), !0) : !1;
334
+ }
335
+ function Tn(e) {
336
+ e = e.replace("#", "");
337
+ const t = Number.parseInt(e.substring(0, 2), 16) / 255, n = Number.parseInt(e.substring(2, 4), 16) / 255, r = Number.parseInt(e.substring(4, 6), 16) / 255, o = Math.max(t, n, r), s = Math.min(t, n, r);
338
+ let i = 0, c = 0;
339
+ const l = (o + s) / 2;
340
+ if (o !== s) {
341
+ const d = o - s;
342
+ switch (c = l > 0.5 ? d / (2 - o - s) : d / (o + s), o) {
343
+ case t:
344
+ i = ((n - r) / d + (n < r ? 6 : 0)) / 6;
345
+ break;
346
+ case n:
347
+ i = ((r - t) / d + 2) / 6;
348
+ break;
349
+ case r:
350
+ i = ((t - n) / d + 4) / 6;
351
+ break;
352
+ }
353
+ }
354
+ i = Math.round(i * 360), c = Math.round(c * 100);
355
+ const u = Math.round(l * 100);
356
+ return `${i} ${c}% ${u}%`;
357
+ }
358
+ function uo(e, t, n) {
359
+ e /= 255, t /= 255, n /= 255;
360
+ const r = Math.max(e, t, n), o = Math.min(e, t, n);
361
+ let s = 0, i = 0;
362
+ const c = (r + o) / 2;
363
+ if (r !== o) {
364
+ const u = r - o;
365
+ switch (i = c > 0.5 ? u / (2 - r - o) : u / (r + o), r) {
366
+ case e:
367
+ s = ((t - n) / u + (t < n ? 6 : 0)) / 6;
368
+ break;
369
+ case t:
370
+ s = ((n - e) / u + 2) / 6;
371
+ break;
372
+ case n:
373
+ s = ((e - t) / u + 4) / 6;
374
+ break;
375
+ }
376
+ }
377
+ s = Math.round(s * 360), i = Math.round(i * 100);
378
+ const l = Math.round(c * 100);
379
+ return `${s} ${i}% ${l}%`;
380
+ }
381
+ function Tt(e, t = "light") {
382
+ let n;
383
+ if (e.startsWith("#"))
384
+ n = Tn(e);
385
+ else if (e.startsWith("hsl")) {
386
+ const o = _t(e);
387
+ n = o ? `${o.h} ${o.s}% ${o.l}%` : e;
388
+ } else
389
+ n = e;
390
+ const r = _t(n);
391
+ if (!r)
392
+ throw new Error("Invalid color format");
393
+ return t === "light" ? {
394
+ // 主色
395
+ primary: n,
396
+ primaryForeground: r.l > 50 ? "0 0% 10%" : "0 0% 98%",
397
+ // 次要色(降低饱和度,提高亮度)
398
+ secondary: `${r.h} ${Math.max(5, r.s - 30)}% ${Math.min(96, r.l + 40)}%`,
399
+ secondaryForeground: `${r.h} ${Math.min(100, r.s + 20)}% ${Math.max(10, r.l - 40)}%`,
400
+ // 强调色(稍微调整色相,保持饱和度)
401
+ accent: `${r.h} ${Math.max(5, r.s - 25)}% ${Math.min(96, r.l + 35)}%`,
402
+ accentForeground: `${r.h} ${Math.min(100, r.s + 15)}% ${Math.max(10, r.l - 35)}%`,
403
+ // 柔和色(大幅降低饱和度)
404
+ muted: `${r.h} ${Math.max(5, r.s - 40)}% 96%`,
405
+ mutedForeground: `${r.h} ${Math.max(5, r.s - 35)}% 46%`,
406
+ // 背景和前景
407
+ background: "0 0% 100%",
408
+ backgroundDeep: `${r.h} ${Math.max(5, r.s - 45)}% 95%`,
409
+ foreground: `${r.h} ${Math.max(5, r.s - 40)}% 15%`,
410
+ // 卡片
411
+ card: "0 0% 100%",
412
+ cardForeground: `${r.h} ${Math.max(5, r.s - 40)}% 15%`,
413
+ // 边框和输入
414
+ border: `${r.h} ${Math.max(5, r.s - 40)}% 90%`,
415
+ input: `${r.h} ${Math.max(5, r.s - 40)}% 90%`,
416
+ ring: n,
417
+ // 侧边栏和头部
418
+ sidebar: "0 0% 100%",
419
+ sidebarDeep: "0 0% 100%",
420
+ header: "0 0% 100%",
421
+ menu: "0 0% 100%"
422
+ } : {
423
+ // 主色(暗色模式下稍微提高亮度)
424
+ primary: `${r.h} ${r.s}% ${Math.min(65, r.l + 10)}%`,
425
+ primaryForeground: "0 0% 98%",
426
+ // 次要色
427
+ secondary: `${r.h} ${Math.max(5, r.s - 30)}% 17%`,
428
+ secondaryForeground: "0 0% 98%",
429
+ // 强调色
430
+ accent: `${r.h} ${Math.max(5, r.s - 25)}% 19%`,
431
+ accentForeground: "0 0% 98%",
432
+ // 柔和色
433
+ muted: `${r.h} ${Math.max(5, r.s - 35)}% 16%`,
434
+ mutedForeground: `${r.h} ${Math.max(5, r.s - 30)}% 65%`,
435
+ // 背景和前景
436
+ background: `${r.h} ${Math.max(5, r.s - 30)}% 12%`,
437
+ backgroundDeep: `${r.h} ${Math.max(5, r.s - 35)}% 9%`,
438
+ foreground: "0 0% 95%",
439
+ // 卡片
440
+ card: `${r.h} ${Math.max(5, r.s - 30)}% 12%`,
441
+ cardForeground: "0 0% 95%",
442
+ // 边框和输入
443
+ border: `${r.h} ${Math.max(5, r.s - 35)}% 22%`,
444
+ input: `${r.h} ${Math.max(5, r.s - 35)}% 22%`,
445
+ ring: `${r.h} ${r.s}% ${Math.min(65, r.l + 10)}%`,
446
+ // 侧边栏和头部
447
+ sidebar: `${r.h} ${Math.max(5, r.s - 30)}% 12%`,
448
+ sidebarDeep: `${r.h} ${Math.max(5, r.s - 35)}% 9%`,
449
+ header: `${r.h} ${Math.max(5, r.s - 30)}% 12%`,
450
+ menu: `${r.h} ${Math.max(5, r.s - 30)}% 12%`
451
+ };
452
+ }
453
+ function fo(e, t, n = !1) {
454
+ const r = t || Nt(), o = Tt(e, r);
455
+ rt(o, n), localStorage.setItem("custom-theme-primary", e), localStorage.setItem("custom-theme-active", "true");
456
+ }
457
+ // @__NO_SIDE_EFFECTS__
458
+ function On(e) {
459
+ const t = /* @__PURE__ */ Object.create(null);
460
+ for (const n of e.split(",")) t[n] = 1;
461
+ return (n) => n in t;
462
+ }
463
+ const pe = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
464
+ process.env.NODE_ENV !== "production" && Object.freeze([]);
465
+ const Z = () => {
466
+ }, Dn = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
467
+ (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), W = Object.assign, $n = Object.prototype.hasOwnProperty, Be = (e, t) => $n.call(e, t), v = Array.isArray, X = (e) => He(e) === "[object Map]", Mn = (e) => He(e) === "[object Set]", w = (e) => typeof e == "function", A = (e) => typeof e == "string", Ee = (e) => typeof e == "symbol", S = (e) => e !== null && typeof e == "object", xn = (e) => (S(e) || w(e)) && w(e.then) && w(e.catch), Cn = Object.prototype.toString, He = (e) => Cn.call(e), Ot = (e) => He(e).slice(8, -1), Vn = (e) => He(e) === "[object Object]", ot = (e) => A(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Dt = (e) => {
468
+ const t = /* @__PURE__ */ Object.create(null);
469
+ return ((n) => t[n] || (t[n] = e(n)));
470
+ }, $t = Dt((e) => e.charAt(0).toUpperCase() + e.slice(1)), In = Dt(
471
+ (e) => e ? `on${$t(e)}` : ""
472
+ ), K = (e, t) => !Object.is(e, t);
473
+ let vt;
474
+ const Pe = () => vt || (vt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
475
+ function st(e) {
476
+ if (v(e)) {
477
+ const t = {};
478
+ for (let n = 0; n < e.length; n++) {
479
+ const r = e[n], o = A(r) ? Hn(r) : st(r);
480
+ if (o)
481
+ for (const s in o)
482
+ t[s] = o[s];
483
+ }
484
+ return t;
485
+ } else if (A(e) || S(e))
486
+ return e;
487
+ }
488
+ const Rn = /;(?![^(]*\))/g, An = /:([^]+)/, kn = /\/\*[^]*?\*\//g;
489
+ function Hn(e) {
490
+ const t = {};
491
+ return e.replace(kn, "").split(Rn).forEach((n) => {
492
+ if (n) {
493
+ const r = n.split(An);
494
+ r.length > 1 && (t[r[0].trim()] = r[1].trim());
495
+ }
496
+ }), t;
497
+ }
498
+ function it(e) {
499
+ let t = "";
500
+ if (A(e))
501
+ t = e;
502
+ else if (v(e))
503
+ for (let n = 0; n < e.length; n++) {
504
+ const r = it(e[n]);
505
+ r && (t += r + " ");
506
+ }
507
+ else if (S(e))
508
+ for (const n in e)
509
+ e[n] && (t += n + " ");
510
+ return t.trim();
511
+ }
512
+ function x(e, ...t) {
513
+ console.warn(`[Vue warn] ${e}`, ...t);
514
+ }
515
+ let g;
516
+ const Ke = /* @__PURE__ */ new WeakSet();
517
+ class Pn {
518
+ constructor(t) {
519
+ 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;
520
+ }
521
+ pause() {
522
+ this.flags |= 64;
523
+ }
524
+ resume() {
525
+ this.flags & 64 && (this.flags &= -65, Ke.has(this) && (Ke.delete(this), this.trigger()));
526
+ }
527
+ /**
528
+ * @internal
529
+ */
530
+ notify() {
531
+ this.flags & 2 && !(this.flags & 32) || this.flags & 8 || xt(this);
532
+ }
533
+ run() {
534
+ if (!(this.flags & 1))
535
+ return this.fn();
536
+ this.flags |= 2, yt(this), Ct(this);
537
+ const t = g, n = $;
538
+ g = this, $ = !0;
539
+ try {
540
+ return this.fn();
541
+ } finally {
542
+ process.env.NODE_ENV !== "production" && g !== this && x(
543
+ "Active effect was not restored correctly - this is likely a Vue internal bug."
544
+ ), Vt(this), g = t, $ = n, this.flags &= -3;
545
+ }
546
+ }
547
+ stop() {
548
+ if (this.flags & 1) {
549
+ for (let t = this.deps; t; t = t.nextDep)
550
+ lt(t);
551
+ this.deps = this.depsTail = void 0, yt(this), this.onStop && this.onStop(), this.flags &= -2;
552
+ }
553
+ }
554
+ trigger() {
555
+ this.flags & 64 ? Ke.add(this) : this.scheduler ? this.scheduler() : this.runIfDirty();
556
+ }
557
+ /**
558
+ * @internal
559
+ */
560
+ runIfDirty() {
561
+ qe(this) && this.run();
562
+ }
563
+ get dirty() {
564
+ return qe(this);
565
+ }
566
+ }
567
+ let Mt = 0, fe, de;
568
+ function xt(e, t = !1) {
569
+ if (e.flags |= 8, t) {
570
+ e.next = de, de = e;
571
+ return;
572
+ }
573
+ e.next = fe, fe = e;
574
+ }
575
+ function ct() {
576
+ Mt++;
577
+ }
578
+ function at() {
579
+ if (--Mt > 0)
580
+ return;
581
+ if (de) {
582
+ let t = de;
583
+ for (de = void 0; t; ) {
584
+ const n = t.next;
585
+ t.next = void 0, t.flags &= -9, t = n;
586
+ }
587
+ }
588
+ let e;
589
+ for (; fe; ) {
590
+ let t = fe;
591
+ for (fe = void 0; t; ) {
592
+ const n = t.next;
593
+ if (t.next = void 0, t.flags &= -9, t.flags & 1)
594
+ try {
595
+ t.trigger();
596
+ } catch (r) {
597
+ e || (e = r);
598
+ }
599
+ t = n;
600
+ }
601
+ }
602
+ if (e) throw e;
603
+ }
604
+ function Ct(e) {
605
+ for (let t = e.deps; t; t = t.nextDep)
606
+ t.version = -1, t.prevActiveLink = t.dep.activeLink, t.dep.activeLink = t;
607
+ }
608
+ function Vt(e) {
609
+ let t, n = e.depsTail, r = n;
610
+ for (; r; ) {
611
+ const o = r.prevDep;
612
+ r.version === -1 ? (r === n && (n = o), lt(r), Fn(r)) : t = r, r.dep.activeLink = r.prevActiveLink, r.prevActiveLink = void 0, r = o;
613
+ }
614
+ e.deps = t, e.depsTail = n;
615
+ }
616
+ function qe(e) {
617
+ for (let t = e.deps; t; t = t.nextDep)
618
+ if (t.dep.version !== t.version || t.dep.computed && (It(t.dep.computed) || t.dep.version !== t.version))
619
+ return !0;
620
+ return !!e._dirty;
621
+ }
622
+ function It(e) {
623
+ if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === he) || (e.globalVersion = he, !e.isSSR && e.flags & 128 && (!e.deps && !e._dirty || !qe(e))))
624
+ return;
625
+ e.flags |= 2;
626
+ const t = e.dep, n = g, r = $;
627
+ g = e, $ = !0;
628
+ try {
629
+ Ct(e);
630
+ const o = e.fn(e._value);
631
+ (t.version === 0 || K(o, e._value)) && (e.flags |= 128, e._value = o, t.version++);
632
+ } catch (o) {
633
+ throw t.version++, o;
634
+ } finally {
635
+ g = n, $ = r, Vt(e), e.flags &= -3;
636
+ }
637
+ }
638
+ function lt(e, t = !1) {
639
+ const { dep: n, prevSub: r, nextSub: o } = e;
640
+ if (r && (r.nextSub = o, e.prevSub = void 0), o && (o.prevSub = r, e.nextSub = void 0), process.env.NODE_ENV !== "production" && n.subsHead === e && (n.subsHead = o), n.subs === e && (n.subs = r, !r && n.computed)) {
641
+ n.computed.flags &= -5;
642
+ for (let s = n.computed.deps; s; s = s.nextDep)
643
+ lt(s, !0);
644
+ }
645
+ !t && !--n.sc && n.map && n.map.delete(n.key);
646
+ }
647
+ function Fn(e) {
648
+ const { prevDep: t, nextDep: n } = e;
649
+ t && (t.nextDep = n, e.prevDep = void 0), n && (n.prevDep = t, e.nextDep = void 0);
650
+ }
651
+ let $ = !0;
652
+ const Rt = [];
653
+ function re() {
654
+ Rt.push($), $ = !1;
655
+ }
656
+ function oe() {
657
+ const e = Rt.pop();
658
+ $ = e === void 0 ? !0 : e;
659
+ }
660
+ function yt(e) {
661
+ const { cleanup: t } = e;
662
+ if (e.cleanup = void 0, t) {
663
+ const n = g;
664
+ g = void 0;
665
+ try {
666
+ t();
667
+ } finally {
668
+ g = n;
669
+ }
670
+ }
671
+ }
672
+ let he = 0;
673
+ class Ln {
674
+ constructor(t, n) {
675
+ this.sub = t, this.dep = n, this.version = n.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
676
+ }
677
+ }
678
+ class ut {
679
+ // TODO isolatedDeclarations "__v_skip"
680
+ constructor(t) {
681
+ 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, process.env.NODE_ENV !== "production" && (this.subsHead = void 0);
682
+ }
683
+ track(t) {
684
+ if (!g || !$ || g === this.computed)
685
+ return;
686
+ let n = this.activeLink;
687
+ if (n === void 0 || n.sub !== g)
688
+ n = this.activeLink = new Ln(g, this), g.deps ? (n.prevDep = g.depsTail, g.depsTail.nextDep = n, g.depsTail = n) : g.deps = g.depsTail = n, At(n);
689
+ else if (n.version === -1 && (n.version = this.version, n.nextDep)) {
690
+ const r = n.nextDep;
691
+ r.prevDep = n.prevDep, n.prevDep && (n.prevDep.nextDep = r), n.prevDep = g.depsTail, n.nextDep = void 0, g.depsTail.nextDep = n, g.depsTail = n, g.deps === n && (g.deps = r);
692
+ }
693
+ return process.env.NODE_ENV !== "production" && g.onTrack && g.onTrack(
694
+ W(
695
+ {
696
+ effect: g
697
+ },
698
+ t
699
+ )
700
+ ), n;
701
+ }
702
+ trigger(t) {
703
+ this.version++, he++, this.notify(t);
704
+ }
705
+ notify(t) {
706
+ ct();
707
+ try {
708
+ if (process.env.NODE_ENV !== "production")
709
+ for (let n = this.subsHead; n; n = n.nextSub)
710
+ n.sub.onTrigger && !(n.sub.flags & 8) && n.sub.onTrigger(
711
+ W(
712
+ {
713
+ effect: n.sub
714
+ },
715
+ t
716
+ )
717
+ );
718
+ for (let n = this.subs; n; n = n.prevSub)
719
+ n.sub.notify() && n.sub.dep.notify();
720
+ } finally {
721
+ at();
722
+ }
723
+ }
724
+ }
725
+ function At(e) {
726
+ if (e.dep.sc++, e.sub.flags & 4) {
727
+ const t = e.dep.computed;
728
+ if (t && !e.dep.subs) {
729
+ t.flags |= 20;
730
+ for (let r = t.deps; r; r = r.nextDep)
731
+ At(r);
732
+ }
733
+ const n = e.dep.subs;
734
+ n !== e && (e.prevSub = n, n && (n.nextSub = e)), process.env.NODE_ENV !== "production" && e.dep.subsHead === void 0 && (e.dep.subsHead = e), e.dep.subs = e;
735
+ }
736
+ }
737
+ const Ge = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ Symbol(
738
+ process.env.NODE_ENV !== "production" ? "Object iterate" : ""
739
+ ), Qe = /* @__PURE__ */ Symbol(
740
+ process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
741
+ ), me = /* @__PURE__ */ Symbol(
742
+ process.env.NODE_ENV !== "production" ? "Array iterate" : ""
743
+ );
744
+ function b(e, t, n) {
745
+ if ($ && g) {
746
+ let r = Ge.get(e);
747
+ r || Ge.set(e, r = /* @__PURE__ */ new Map());
748
+ let o = r.get(n);
749
+ o || (r.set(n, o = new ut()), o.map = r, o.key = n), process.env.NODE_ENV !== "production" ? o.track({
750
+ target: e,
751
+ type: t,
752
+ key: n
753
+ }) : o.track();
754
+ }
755
+ }
756
+ function F(e, t, n, r, o, s) {
757
+ const i = Ge.get(e);
758
+ if (!i) {
759
+ he++;
760
+ return;
761
+ }
762
+ const c = (l) => {
763
+ l && (process.env.NODE_ENV !== "production" ? l.trigger({
764
+ target: e,
765
+ type: t,
766
+ key: n,
767
+ newValue: r,
768
+ oldValue: o,
769
+ oldTarget: s
770
+ }) : l.trigger());
771
+ };
772
+ if (ct(), t === "clear")
773
+ i.forEach(c);
774
+ else {
775
+ const l = v(e), u = l && ot(n);
776
+ if (l && n === "length") {
777
+ const d = Number(r);
778
+ i.forEach((a, f) => {
779
+ (f === "length" || f === me || !Ee(f) && f >= d) && c(a);
780
+ });
781
+ } else
782
+ switch ((n !== void 0 || i.has(void 0)) && c(i.get(n)), u && c(i.get(me)), t) {
783
+ case "add":
784
+ l ? u && c(i.get("length")) : (c(i.get(z)), X(e) && c(i.get(Qe)));
785
+ break;
786
+ case "delete":
787
+ l || (c(i.get(z)), X(e) && c(i.get(Qe)));
788
+ break;
789
+ case "set":
790
+ X(e) && c(i.get(z));
791
+ break;
792
+ }
793
+ }
794
+ at();
795
+ }
796
+ function B(e) {
797
+ const t = h(e);
798
+ return t === e ? t : (b(t, "iterate", me), N(e) ? t : t.map(k));
799
+ }
800
+ function ft(e) {
801
+ return b(e = h(e), "iterate", me), e;
802
+ }
803
+ function H(e, t) {
804
+ return C(e) ? ee(e) ? ge(k(t)) : ge(t) : k(t);
805
+ }
806
+ const Kn = {
807
+ __proto__: null,
808
+ [Symbol.iterator]() {
809
+ return We(this, Symbol.iterator, (e) => H(this, e));
810
+ },
811
+ concat(...e) {
812
+ return B(this).concat(
813
+ ...e.map((t) => v(t) ? B(t) : t)
814
+ );
815
+ },
816
+ entries() {
817
+ return We(this, "entries", (e) => (e[1] = H(this, e[1]), e));
818
+ },
819
+ every(e, t) {
820
+ return I(this, "every", e, t, void 0, arguments);
821
+ },
822
+ filter(e, t) {
823
+ return I(
824
+ this,
825
+ "filter",
826
+ e,
827
+ t,
828
+ (n) => n.map((r) => H(this, r)),
829
+ arguments
830
+ );
831
+ },
832
+ find(e, t) {
833
+ return I(
834
+ this,
835
+ "find",
836
+ e,
837
+ t,
838
+ (n) => H(this, n),
839
+ arguments
840
+ );
841
+ },
842
+ findIndex(e, t) {
843
+ return I(this, "findIndex", e, t, void 0, arguments);
844
+ },
845
+ findLast(e, t) {
846
+ return I(
847
+ this,
848
+ "findLast",
849
+ e,
850
+ t,
851
+ (n) => H(this, n),
852
+ arguments
853
+ );
854
+ },
855
+ findLastIndex(e, t) {
856
+ return I(this, "findLastIndex", e, t, void 0, arguments);
857
+ },
858
+ // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
859
+ forEach(e, t) {
860
+ return I(this, "forEach", e, t, void 0, arguments);
861
+ },
862
+ includes(...e) {
863
+ return je(this, "includes", e);
864
+ },
865
+ indexOf(...e) {
866
+ return je(this, "indexOf", e);
867
+ },
868
+ join(e) {
869
+ return B(this).join(e);
870
+ },
871
+ // keys() iterator only reads `length`, no optimization required
872
+ lastIndexOf(...e) {
873
+ return je(this, "lastIndexOf", e);
874
+ },
875
+ map(e, t) {
876
+ return I(this, "map", e, t, void 0, arguments);
877
+ },
878
+ pop() {
879
+ return ce(this, "pop");
880
+ },
881
+ push(...e) {
882
+ return ce(this, "push", e);
883
+ },
884
+ reduce(e, ...t) {
885
+ return Et(this, "reduce", e, t);
886
+ },
887
+ reduceRight(e, ...t) {
888
+ return Et(this, "reduceRight", e, t);
889
+ },
890
+ shift() {
891
+ return ce(this, "shift");
892
+ },
893
+ // slice could use ARRAY_ITERATE but also seems to beg for range tracking
894
+ some(e, t) {
895
+ return I(this, "some", e, t, void 0, arguments);
896
+ },
897
+ splice(...e) {
898
+ return ce(this, "splice", e);
899
+ },
900
+ toReversed() {
901
+ return B(this).toReversed();
902
+ },
903
+ toSorted(e) {
904
+ return B(this).toSorted(e);
905
+ },
906
+ toSpliced(...e) {
907
+ return B(this).toSpliced(...e);
908
+ },
909
+ unshift(...e) {
910
+ return ce(this, "unshift", e);
911
+ },
912
+ values() {
913
+ return We(this, "values", (e) => H(this, e));
914
+ }
915
+ };
916
+ function We(e, t, n) {
917
+ const r = ft(e), o = r[t]();
918
+ return r !== e && !N(e) && (o._next = o.next, o.next = () => {
919
+ const s = o._next();
920
+ return s.done || (s.value = n(s.value)), s;
921
+ }), o;
922
+ }
923
+ const Wn = Array.prototype;
924
+ function I(e, t, n, r, o, s) {
925
+ const i = ft(e), c = i !== e && !N(e), l = i[t];
926
+ if (l !== Wn[t]) {
927
+ const a = l.apply(e, s);
928
+ return c ? k(a) : a;
929
+ }
930
+ let u = n;
931
+ i !== e && (c ? u = function(a, f) {
932
+ return n.call(this, H(e, a), f, e);
933
+ } : n.length > 2 && (u = function(a, f) {
934
+ return n.call(this, a, f, e);
935
+ }));
936
+ const d = l.call(i, u, r);
937
+ return c && o ? o(d) : d;
938
+ }
939
+ function Et(e, t, n, r) {
940
+ const o = ft(e);
941
+ let s = n;
942
+ return o !== e && (N(e) ? n.length > 3 && (s = function(i, c, l) {
943
+ return n.call(this, i, c, l, e);
944
+ }) : s = function(i, c, l) {
945
+ return n.call(this, i, H(e, c), l, e);
946
+ }), o[t](s, ...r);
947
+ }
948
+ function je(e, t, n) {
949
+ const r = h(e);
950
+ b(r, "iterate", me);
951
+ const o = r[t](...n);
952
+ return (o === -1 || o === !1) && Ve(n[0]) ? (n[0] = h(n[0]), r[t](...n)) : o;
953
+ }
954
+ function ce(e, t, n = []) {
955
+ re(), ct();
956
+ const r = h(e)[t].apply(e, n);
957
+ return at(), oe(), r;
958
+ }
959
+ const jn = /* @__PURE__ */ On("__proto__,__v_isRef,__isVue"), kt = new Set(
960
+ /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(Ee)
961
+ );
962
+ function Un(e) {
963
+ Ee(e) || (e = String(e));
964
+ const t = h(this);
965
+ return b(t, "has", e), t.hasOwnProperty(e);
966
+ }
967
+ class Ht {
968
+ constructor(t = !1, n = !1) {
969
+ this._isReadonly = t, this._isShallow = n;
970
+ }
971
+ get(t, n, r) {
972
+ if (n === "__v_skip") return t.__v_skip;
973
+ const o = this._isReadonly, s = this._isShallow;
974
+ if (n === "__v_isReactive")
975
+ return !o;
976
+ if (n === "__v_isReadonly")
977
+ return o;
978
+ if (n === "__v_isShallow")
979
+ return s;
980
+ if (n === "__v_raw")
981
+ return r === (o ? s ? er : Lt : s ? Xn : Ft).get(t) || // receiver is not the reactive proxy, but has the same prototype
982
+ // this means the receiver is a user proxy of the reactive proxy
983
+ Object.getPrototypeOf(t) === Object.getPrototypeOf(r) ? t : void 0;
984
+ const i = v(t);
985
+ if (!o) {
986
+ let l;
987
+ if (i && (l = Kn[n]))
988
+ return l;
989
+ if (n === "hasOwnProperty")
990
+ return Un;
991
+ }
992
+ const c = Reflect.get(
993
+ t,
994
+ n,
995
+ // if this is a proxy wrapping a ref, return methods using the raw ref
996
+ // as receiver so that we don't have to call `toRaw` on the ref in all
997
+ // its class methods
998
+ D(t) ? t : r
999
+ );
1000
+ if ((Ee(n) ? kt.has(n) : jn(n)) || (o || b(t, "get", n), s))
1001
+ return c;
1002
+ if (D(c)) {
1003
+ const l = i && ot(n) ? c : c.value;
1004
+ return o && S(l) ? Ce(l) : l;
1005
+ }
1006
+ return S(c) ? o ? Ce(c) : Kt(c) : c;
1007
+ }
1008
+ }
1009
+ class zn extends Ht {
1010
+ constructor(t = !1) {
1011
+ super(!1, t);
1012
+ }
1013
+ set(t, n, r, o) {
1014
+ let s = t[n];
1015
+ const i = v(t) && ot(n);
1016
+ if (!this._isShallow) {
1017
+ const u = C(s);
1018
+ if (!N(r) && !C(r) && (s = h(s), r = h(r)), !i && D(s) && !D(r))
1019
+ return u ? (process.env.NODE_ENV !== "production" && x(
1020
+ `Set operation on key "${String(n)}" failed: target is readonly.`,
1021
+ t[n]
1022
+ ), !0) : (s.value = r, !0);
1023
+ }
1024
+ const c = i ? Number(n) < t.length : Be(t, n), l = Reflect.set(
1025
+ t,
1026
+ n,
1027
+ r,
1028
+ D(t) ? t : o
1029
+ );
1030
+ return t === h(o) && (c ? K(r, s) && F(t, "set", n, r, s) : F(t, "add", n, r)), l;
1031
+ }
1032
+ deleteProperty(t, n) {
1033
+ const r = Be(t, n), o = t[n], s = Reflect.deleteProperty(t, n);
1034
+ return s && r && F(t, "delete", n, void 0, o), s;
1035
+ }
1036
+ has(t, n) {
1037
+ const r = Reflect.has(t, n);
1038
+ return (!Ee(n) || !kt.has(n)) && b(t, "has", n), r;
1039
+ }
1040
+ ownKeys(t) {
1041
+ return b(
1042
+ t,
1043
+ "iterate",
1044
+ v(t) ? "length" : z
1045
+ ), Reflect.ownKeys(t);
1046
+ }
1047
+ }
1048
+ class Jn extends Ht {
1049
+ constructor(t = !1) {
1050
+ super(!0, t);
1051
+ }
1052
+ set(t, n) {
1053
+ return process.env.NODE_ENV !== "production" && x(
1054
+ `Set operation on key "${String(n)}" failed: target is readonly.`,
1055
+ t
1056
+ ), !0;
1057
+ }
1058
+ deleteProperty(t, n) {
1059
+ return process.env.NODE_ENV !== "production" && x(
1060
+ `Delete operation on key "${String(n)}" failed: target is readonly.`,
1061
+ t
1062
+ ), !0;
1063
+ }
1064
+ }
1065
+ const Yn = /* @__PURE__ */ new zn(), Bn = /* @__PURE__ */ new Jn(), Ze = (e) => e, Se = (e) => Reflect.getPrototypeOf(e);
1066
+ function qn(e, t, n) {
1067
+ return function(...r) {
1068
+ const o = this.__v_raw, s = h(o), i = X(s), c = e === "entries" || e === Symbol.iterator && i, l = e === "keys" && i, u = o[e](...r), d = n ? Ze : t ? ge : k;
1069
+ return !t && b(
1070
+ s,
1071
+ "iterate",
1072
+ l ? Qe : z
1073
+ ), {
1074
+ // iterator protocol
1075
+ next() {
1076
+ const { value: a, done: f } = u.next();
1077
+ return f ? { value: a, done: f } : {
1078
+ value: c ? [d(a[0]), d(a[1])] : d(a),
1079
+ done: f
1080
+ };
1081
+ },
1082
+ // iterable protocol
1083
+ [Symbol.iterator]() {
1084
+ return this;
1085
+ }
1086
+ };
1087
+ };
1088
+ }
1089
+ function Ne(e) {
1090
+ return function(...t) {
1091
+ if (process.env.NODE_ENV !== "production") {
1092
+ const n = t[0] ? `on key "${t[0]}" ` : "";
1093
+ x(
1094
+ `${$t(e)} operation ${n}failed: target is readonly.`,
1095
+ h(this)
1096
+ );
1097
+ }
1098
+ return e === "delete" ? !1 : e === "clear" ? void 0 : this;
1099
+ };
1100
+ }
1101
+ function Gn(e, t) {
1102
+ const n = {
1103
+ get(o) {
1104
+ const s = this.__v_raw, i = h(s), c = h(o);
1105
+ e || (K(o, c) && b(i, "get", o), b(i, "get", c));
1106
+ const { has: l } = Se(i), u = t ? Ze : e ? ge : k;
1107
+ if (l.call(i, o))
1108
+ return u(s.get(o));
1109
+ if (l.call(i, c))
1110
+ return u(s.get(c));
1111
+ s !== i && s.get(o);
1112
+ },
1113
+ get size() {
1114
+ const o = this.__v_raw;
1115
+ return !e && b(h(o), "iterate", z), o.size;
1116
+ },
1117
+ has(o) {
1118
+ const s = this.__v_raw, i = h(s), c = h(o);
1119
+ return e || (K(o, c) && b(i, "has", o), b(i, "has", c)), o === c ? s.has(o) : s.has(o) || s.has(c);
1120
+ },
1121
+ forEach(o, s) {
1122
+ const i = this, c = i.__v_raw, l = h(c), u = t ? Ze : e ? ge : k;
1123
+ return !e && b(l, "iterate", z), c.forEach((d, a) => o.call(s, u(d), u(a), i));
1124
+ }
1125
+ };
1126
+ return W(
1127
+ n,
1128
+ e ? {
1129
+ add: Ne("add"),
1130
+ set: Ne("set"),
1131
+ delete: Ne("delete"),
1132
+ clear: Ne("clear")
1133
+ } : {
1134
+ add(o) {
1135
+ !t && !N(o) && !C(o) && (o = h(o));
1136
+ const s = h(this);
1137
+ return Se(s).has.call(s, o) || (s.add(o), F(s, "add", o, o)), this;
1138
+ },
1139
+ set(o, s) {
1140
+ !t && !N(s) && !C(s) && (s = h(s));
1141
+ const i = h(this), { has: c, get: l } = Se(i);
1142
+ let u = c.call(i, o);
1143
+ u ? process.env.NODE_ENV !== "production" && wt(i, c, o) : (o = h(o), u = c.call(i, o));
1144
+ const d = l.call(i, o);
1145
+ return i.set(o, s), u ? K(s, d) && F(i, "set", o, s, d) : F(i, "add", o, s), this;
1146
+ },
1147
+ delete(o) {
1148
+ const s = h(this), { has: i, get: c } = Se(s);
1149
+ let l = i.call(s, o);
1150
+ l ? process.env.NODE_ENV !== "production" && wt(s, i, o) : (o = h(o), l = i.call(s, o));
1151
+ const u = c ? c.call(s, o) : void 0, d = s.delete(o);
1152
+ return l && F(s, "delete", o, void 0, u), d;
1153
+ },
1154
+ clear() {
1155
+ const o = h(this), s = o.size !== 0, i = process.env.NODE_ENV !== "production" ? X(o) ? new Map(o) : new Set(o) : void 0, c = o.clear();
1156
+ return s && F(
1157
+ o,
1158
+ "clear",
1159
+ void 0,
1160
+ void 0,
1161
+ i
1162
+ ), c;
1163
+ }
1164
+ }
1165
+ ), [
1166
+ "keys",
1167
+ "values",
1168
+ "entries",
1169
+ Symbol.iterator
1170
+ ].forEach((o) => {
1171
+ n[o] = qn(o, e, t);
1172
+ }), n;
1173
+ }
1174
+ function Pt(e, t) {
1175
+ const n = Gn(e, t);
1176
+ return (r, o, s) => o === "__v_isReactive" ? !e : o === "__v_isReadonly" ? e : o === "__v_raw" ? r : Reflect.get(
1177
+ Be(n, o) && o in r ? n : r,
1178
+ o,
1179
+ s
1180
+ );
1181
+ }
1182
+ const Qn = {
1183
+ get: /* @__PURE__ */ Pt(!1, !1)
1184
+ }, Zn = {
1185
+ get: /* @__PURE__ */ Pt(!0, !1)
1186
+ };
1187
+ function wt(e, t, n) {
1188
+ const r = h(n);
1189
+ if (r !== n && t.call(e, r)) {
1190
+ const o = Ot(e);
1191
+ x(
1192
+ `Reactive ${o} contains both the raw and reactive versions of the same object${o === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
1193
+ );
1194
+ }
1195
+ }
1196
+ const Ft = /* @__PURE__ */ new WeakMap(), Xn = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap(), er = /* @__PURE__ */ new WeakMap();
1197
+ function tr(e) {
1198
+ switch (e) {
1199
+ case "Object":
1200
+ case "Array":
1201
+ return 1;
1202
+ case "Map":
1203
+ case "Set":
1204
+ case "WeakMap":
1205
+ case "WeakSet":
1206
+ return 2;
1207
+ default:
1208
+ return 0;
1209
+ }
1210
+ }
1211
+ function nr(e) {
1212
+ return e.__v_skip || !Object.isExtensible(e) ? 0 : tr(Ot(e));
1213
+ }
1214
+ function Kt(e) {
1215
+ return C(e) ? e : Wt(
1216
+ e,
1217
+ !1,
1218
+ Yn,
1219
+ Qn,
1220
+ Ft
1221
+ );
1222
+ }
1223
+ function Ce(e) {
1224
+ return Wt(
1225
+ e,
1226
+ !0,
1227
+ Bn,
1228
+ Zn,
1229
+ Lt
1230
+ );
1231
+ }
1232
+ function Wt(e, t, n, r, o) {
1233
+ if (!S(e))
1234
+ return process.env.NODE_ENV !== "production" && x(
1235
+ `value cannot be made ${t ? "readonly" : "reactive"}: ${String(
1236
+ e
1237
+ )}`
1238
+ ), e;
1239
+ if (e.__v_raw && !(t && e.__v_isReactive))
1240
+ return e;
1241
+ const s = nr(e);
1242
+ if (s === 0)
1243
+ return e;
1244
+ const i = o.get(e);
1245
+ if (i)
1246
+ return i;
1247
+ const c = new Proxy(
1248
+ e,
1249
+ s === 2 ? r : n
1250
+ );
1251
+ return o.set(e, c), c;
1252
+ }
1253
+ function ee(e) {
1254
+ return C(e) ? ee(e.__v_raw) : !!(e && e.__v_isReactive);
1255
+ }
1256
+ function C(e) {
1257
+ return !!(e && e.__v_isReadonly);
1258
+ }
1259
+ function N(e) {
1260
+ return !!(e && e.__v_isShallow);
1261
+ }
1262
+ function Ve(e) {
1263
+ return e ? !!e.__v_raw : !1;
1264
+ }
1265
+ function h(e) {
1266
+ const t = e && e.__v_raw;
1267
+ return t ? h(t) : e;
1268
+ }
1269
+ const k = (e) => S(e) ? Kt(e) : e, ge = (e) => S(e) ? Ce(e) : e;
1270
+ function D(e) {
1271
+ return e ? e.__v_isRef === !0 : !1;
1272
+ }
1273
+ function dt(e) {
1274
+ return rr(e, !1);
1275
+ }
1276
+ function rr(e, t) {
1277
+ return D(e) ? e : new or(e, t);
1278
+ }
1279
+ class or {
1280
+ constructor(t, n) {
1281
+ this.dep = new ut(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? t : h(t), this._value = n ? t : k(t), this.__v_isShallow = n;
1282
+ }
1283
+ get value() {
1284
+ return process.env.NODE_ENV !== "production" ? this.dep.track({
1285
+ target: this,
1286
+ type: "get",
1287
+ key: "value"
1288
+ }) : this.dep.track(), this._value;
1289
+ }
1290
+ set value(t) {
1291
+ const n = this._rawValue, r = this.__v_isShallow || N(t) || C(t);
1292
+ t = r ? t : h(t), K(t, n) && (this._rawValue = t, this._value = r ? t : k(t), process.env.NODE_ENV !== "production" ? this.dep.trigger({
1293
+ target: this,
1294
+ type: "set",
1295
+ key: "value",
1296
+ newValue: t,
1297
+ oldValue: n
1298
+ }) : this.dep.trigger());
1299
+ }
1300
+ }
1301
+ class sr {
1302
+ constructor(t, n, r) {
1303
+ this.fn = t, this.setter = n, this._value = void 0, this.dep = new ut(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = he - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !n, this.isSSR = r;
1304
+ }
1305
+ /**
1306
+ * @internal
1307
+ */
1308
+ notify() {
1309
+ if (this.flags |= 16, !(this.flags & 8) && // avoid infinite self recursion
1310
+ g !== this)
1311
+ return xt(this, !0), !0;
1312
+ process.env.NODE_ENV;
1313
+ }
1314
+ get value() {
1315
+ const t = process.env.NODE_ENV !== "production" ? this.dep.track({
1316
+ target: this,
1317
+ type: "get",
1318
+ key: "value"
1319
+ }) : this.dep.track();
1320
+ return It(this), t && (t.version = this.dep.version), this._value;
1321
+ }
1322
+ set value(t) {
1323
+ this.setter ? this.setter(t) : process.env.NODE_ENV !== "production" && x("Write operation failed: computed value is readonly");
1324
+ }
1325
+ }
1326
+ function ir(e, t, n = !1) {
1327
+ let r, o;
1328
+ w(e) ? r = e : (r = e.get, o = e.set);
1329
+ const s = new sr(r, o, n);
1330
+ return process.env.NODE_ENV, s;
1331
+ }
1332
+ const Te = {}, Ie = /* @__PURE__ */ new WeakMap();
1333
+ let U;
1334
+ function cr(e, t = !1, n = U) {
1335
+ if (n) {
1336
+ let r = Ie.get(n);
1337
+ r || Ie.set(n, r = []), r.push(e);
1338
+ } else process.env.NODE_ENV !== "production" && !t && x(
1339
+ "onWatcherCleanup() was called when there was no active watcher to associate with."
1340
+ );
1341
+ }
1342
+ function ar(e, t, n = pe) {
1343
+ const { immediate: r, deep: o, once: s, scheduler: i, augmentJob: c, call: l } = n, u = (m) => {
1344
+ (n.onWarn || x)(
1345
+ "Invalid watch source: ",
1346
+ m,
1347
+ "A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
1348
+ );
1349
+ }, d = (m) => o ? m : N(m) || o === !1 || o === 0 ? L(m, 1) : L(m);
1350
+ let a, f, p, _, T = !1, we = !1;
1351
+ if (D(e) ? (f = () => e.value, T = N(e)) : ee(e) ? (f = () => d(e), T = !0) : v(e) ? (we = !0, T = e.some((m) => ee(m) || N(m)), f = () => e.map((m) => {
1352
+ if (D(m))
1353
+ return m.value;
1354
+ if (ee(m))
1355
+ return d(m);
1356
+ if (w(m))
1357
+ return l ? l(m, 2) : m();
1358
+ process.env.NODE_ENV !== "production" && u(m);
1359
+ })) : w(e) ? t ? f = l ? () => l(e, 2) : e : f = () => {
1360
+ if (p) {
1361
+ re();
1362
+ try {
1363
+ p();
1364
+ } finally {
1365
+ oe();
1366
+ }
1367
+ }
1368
+ const m = U;
1369
+ U = a;
1370
+ try {
1371
+ return l ? l(e, 3, [_]) : e(_);
1372
+ } finally {
1373
+ U = m;
1374
+ }
1375
+ } : (f = Z, process.env.NODE_ENV !== "production" && u(e)), t && o) {
1376
+ const m = f, M = o === !0 ? 1 / 0 : o;
1377
+ f = () => L(m(), M);
1378
+ }
1379
+ const Y = () => {
1380
+ a.stop();
1381
+ };
1382
+ if (s && t) {
1383
+ const m = t;
1384
+ t = (...M) => {
1385
+ m(...M), Y();
1386
+ };
1387
+ }
1388
+ let j = we ? new Array(e.length).fill(Te) : Te;
1389
+ const ie = (m) => {
1390
+ if (!(!(a.flags & 1) || !a.dirty && !m))
1391
+ if (t) {
1392
+ const M = a.run();
1393
+ if (o || T || (we ? M.some((Le, be) => K(Le, j[be])) : K(M, j))) {
1394
+ p && p();
1395
+ const Le = U;
1396
+ U = a;
1397
+ try {
1398
+ const be = [
1399
+ M,
1400
+ // pass undefined as the old value when it's changed for the first time
1401
+ j === Te ? void 0 : we && j[0] === Te ? [] : j,
1402
+ _
1403
+ ];
1404
+ j = M, l ? l(t, 3, be) : (
1405
+ // @ts-expect-error
1406
+ t(...be)
1407
+ );
1408
+ } finally {
1409
+ U = Le;
1410
+ }
1411
+ }
1412
+ } else
1413
+ a.run();
1414
+ };
1415
+ return c && c(ie), a = new Pn(f), a.scheduler = i ? () => i(ie, !1) : ie, _ = (m) => cr(m, !1, a), p = a.onStop = () => {
1416
+ const m = Ie.get(a);
1417
+ if (m) {
1418
+ if (l)
1419
+ l(m, 4);
1420
+ else
1421
+ for (const M of m) M();
1422
+ Ie.delete(a);
1423
+ }
1424
+ }, process.env.NODE_ENV !== "production" && (a.onTrack = n.onTrack, a.onTrigger = n.onTrigger), t ? r ? ie(!0) : j = a.run() : i ? i(ie.bind(null, !0), !0) : a.run(), Y.pause = a.pause.bind(a), Y.resume = a.resume.bind(a), Y.stop = Y, Y;
1425
+ }
1426
+ function L(e, t = 1 / 0, n) {
1427
+ if (t <= 0 || !S(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Map(), (n.get(e) || 0) >= t))
1428
+ return e;
1429
+ if (n.set(e, t), t--, D(e))
1430
+ L(e.value, t, n);
1431
+ else if (v(e))
1432
+ for (let r = 0; r < e.length; r++)
1433
+ L(e[r], t, n);
1434
+ else if (Mn(e) || X(e))
1435
+ e.forEach((r) => {
1436
+ L(r, t, n);
1437
+ });
1438
+ else if (Vn(e)) {
1439
+ for (const r in e)
1440
+ L(e[r], t, n);
1441
+ for (const r of Object.getOwnPropertySymbols(e))
1442
+ Object.prototype.propertyIsEnumerable.call(e, r) && L(e[r], t, n);
1443
+ }
1444
+ return e;
1445
+ }
1446
+ const J = [];
1447
+ function lr(e) {
1448
+ J.push(e);
1449
+ }
1450
+ function ur() {
1451
+ J.pop();
1452
+ }
1453
+ let Ue = !1;
1454
+ function E(e, ...t) {
1455
+ if (Ue) return;
1456
+ Ue = !0, re();
1457
+ const n = J.length ? J[J.length - 1].component : null, r = n && n.appContext.config.warnHandler, o = fr();
1458
+ if (r)
1459
+ Fe(
1460
+ r,
1461
+ n,
1462
+ 11,
1463
+ [
1464
+ // eslint-disable-next-line no-restricted-syntax
1465
+ e + t.map((s) => {
1466
+ var i, c;
1467
+ return (c = (i = s.toString) == null ? void 0 : i.call(s)) != null ? c : JSON.stringify(s);
1468
+ }).join(""),
1469
+ n && n.proxy,
1470
+ o.map(
1471
+ ({ vnode: s }) => `at <${cn(n, s.type)}>`
1472
+ ).join(`
1473
+ `),
1474
+ o
1475
+ ]
1476
+ );
1477
+ else {
1478
+ const s = [`[Vue warn]: ${e}`, ...t];
1479
+ o.length && s.push(`
1480
+ `, ...dr(o)), console.warn(...s);
1481
+ }
1482
+ oe(), Ue = !1;
1483
+ }
1484
+ function fr() {
1485
+ let e = J[J.length - 1];
1486
+ if (!e)
1487
+ return [];
1488
+ const t = [];
1489
+ for (; e; ) {
1490
+ const n = t[0];
1491
+ n && n.vnode === e ? n.recurseCount++ : t.push({
1492
+ vnode: e,
1493
+ recurseCount: 0
1494
+ });
1495
+ const r = e.component && e.component.parent;
1496
+ e = r && r.vnode;
1497
+ }
1498
+ return t;
1499
+ }
1500
+ function dr(e) {
1501
+ const t = [];
1502
+ return e.forEach((n, r) => {
1503
+ t.push(...r === 0 ? [] : [`
1504
+ `], ...pr(n));
1505
+ }), t;
1506
+ }
1507
+ function pr({ vnode: e, recurseCount: t }) {
1508
+ const n = t > 0 ? `... (${t} recursive calls)` : "", r = e.component ? e.component.parent == null : !1, o = ` at <${cn(
1509
+ e.component,
1510
+ e.type,
1511
+ r
1512
+ )}`, s = ">" + n;
1513
+ return e.props ? [o, ...hr(e.props), s] : [o + s];
1514
+ }
1515
+ function hr(e) {
1516
+ const t = [], n = Object.keys(e);
1517
+ return n.slice(0, 3).forEach((r) => {
1518
+ t.push(...jt(r, e[r]));
1519
+ }), n.length > 3 && t.push(" ..."), t;
1520
+ }
1521
+ function jt(e, t, n) {
1522
+ return A(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : D(t) ? (t = jt(e, h(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : w(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = h(t), n ? t : [`${e}=`, t]);
1523
+ }
1524
+ const pt = {
1525
+ sp: "serverPrefetch hook",
1526
+ bc: "beforeCreate hook",
1527
+ c: "created hook",
1528
+ bm: "beforeMount hook",
1529
+ m: "mounted hook",
1530
+ bu: "beforeUpdate hook",
1531
+ u: "updated",
1532
+ bum: "beforeUnmount hook",
1533
+ um: "unmounted hook",
1534
+ a: "activated hook",
1535
+ da: "deactivated hook",
1536
+ ec: "errorCaptured hook",
1537
+ rtc: "renderTracked hook",
1538
+ rtg: "renderTriggered hook",
1539
+ 0: "setup function",
1540
+ 1: "render function",
1541
+ 2: "watcher getter",
1542
+ 3: "watcher callback",
1543
+ 4: "watcher cleanup function",
1544
+ 5: "native event handler",
1545
+ 6: "component event handler",
1546
+ 7: "vnode hook",
1547
+ 8: "directive hook",
1548
+ 9: "transition hook",
1549
+ 10: "app errorHandler",
1550
+ 11: "app warnHandler",
1551
+ 12: "ref function",
1552
+ 13: "async component loader",
1553
+ 14: "scheduler flush",
1554
+ 15: "component update",
1555
+ 16: "app unmount cleanup function"
1556
+ };
1557
+ function Fe(e, t, n, r) {
1558
+ try {
1559
+ return r ? e(...r) : e();
1560
+ } catch (o) {
1561
+ mt(o, t, n);
1562
+ }
1563
+ }
1564
+ function ht(e, t, n, r) {
1565
+ if (w(e)) {
1566
+ const o = Fe(e, t, n, r);
1567
+ return o && xn(o) && o.catch((s) => {
1568
+ mt(s, t, n);
1569
+ }), o;
1570
+ }
1571
+ if (v(e)) {
1572
+ const o = [];
1573
+ for (let s = 0; s < e.length; s++)
1574
+ o.push(ht(e[s], t, n, r));
1575
+ return o;
1576
+ } else process.env.NODE_ENV !== "production" && E(
1577
+ `Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`
1578
+ );
1579
+ }
1580
+ function mt(e, t, n, r = !0) {
1581
+ const o = t ? t.vnode : null, { errorHandler: s, throwUnhandledErrorInProduction: i } = t && t.appContext.config || pe;
1582
+ if (t) {
1583
+ let c = t.parent;
1584
+ const l = t.proxy, u = process.env.NODE_ENV !== "production" ? pt[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
1585
+ for (; c; ) {
1586
+ const d = c.ec;
1587
+ if (d) {
1588
+ for (let a = 0; a < d.length; a++)
1589
+ if (d[a](e, l, u) === !1)
1590
+ return;
1591
+ }
1592
+ c = c.parent;
1593
+ }
1594
+ if (s) {
1595
+ re(), Fe(s, null, 10, [
1596
+ e,
1597
+ l,
1598
+ u
1599
+ ]), oe();
1600
+ return;
1601
+ }
1602
+ }
1603
+ mr(e, n, o, r, i);
1604
+ }
1605
+ function mr(e, t, n, r = !0, o = !1) {
1606
+ if (process.env.NODE_ENV !== "production") {
1607
+ const s = pt[t];
1608
+ if (n && lr(n), E(`Unhandled error${s ? ` during execution of ${s}` : ""}`), n && ur(), r)
1609
+ throw e;
1610
+ console.error(e);
1611
+ } else {
1612
+ if (o)
1613
+ throw e;
1614
+ console.error(e);
1615
+ }
1616
+ }
1617
+ const O = [];
1618
+ let R = -1;
1619
+ const te = [];
1620
+ let P = null, G = 0;
1621
+ const gr = /* @__PURE__ */ Promise.resolve();
1622
+ let Xe = null;
1623
+ const _r = 100;
1624
+ function vr(e) {
1625
+ let t = R + 1, n = O.length;
1626
+ for (; t < n; ) {
1627
+ const r = t + n >>> 1, o = O[r], s = _e(o);
1628
+ s < e || s === e && o.flags & 2 ? t = r + 1 : n = r;
1629
+ }
1630
+ return t;
1631
+ }
1632
+ function Ut(e) {
1633
+ if (!(e.flags & 1)) {
1634
+ const t = _e(e), n = O[O.length - 1];
1635
+ !n || // fast path when the job id is larger than the tail
1636
+ !(e.flags & 2) && t >= _e(n) ? O.push(e) : O.splice(vr(t), 0, e), e.flags |= 1, zt();
1637
+ }
1638
+ }
1639
+ function zt() {
1640
+ Xe || (Xe = gr.then(Yt));
1641
+ }
1642
+ function Jt(e) {
1643
+ v(e) ? te.push(...e) : P && e.id === -1 ? P.splice(G + 1, 0, e) : e.flags & 1 || (te.push(e), e.flags |= 1), zt();
1644
+ }
1645
+ function yr(e) {
1646
+ if (te.length) {
1647
+ const t = [...new Set(te)].sort(
1648
+ (n, r) => _e(n) - _e(r)
1649
+ );
1650
+ if (te.length = 0, P) {
1651
+ P.push(...t);
1652
+ return;
1653
+ }
1654
+ for (P = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), G = 0; G < P.length; G++) {
1655
+ const n = P[G];
1656
+ process.env.NODE_ENV !== "production" && Bt(e, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
1657
+ }
1658
+ P = null, G = 0;
1659
+ }
1660
+ }
1661
+ const _e = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
1662
+ function Yt(e) {
1663
+ process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
1664
+ const t = process.env.NODE_ENV !== "production" ? (n) => Bt(e, n) : Z;
1665
+ try {
1666
+ for (R = 0; R < O.length; R++) {
1667
+ const n = O[R];
1668
+ if (n && !(n.flags & 8)) {
1669
+ if (process.env.NODE_ENV !== "production" && t(n))
1670
+ continue;
1671
+ n.flags & 4 && (n.flags &= -2), Fe(
1672
+ n,
1673
+ n.i,
1674
+ n.i ? 15 : 14
1675
+ ), n.flags & 4 || (n.flags &= -2);
1676
+ }
1677
+ }
1678
+ } finally {
1679
+ for (; R < O.length; R++) {
1680
+ const n = O[R];
1681
+ n && (n.flags &= -2);
1682
+ }
1683
+ R = -1, O.length = 0, yr(e), Xe = null, (O.length || te.length) && Yt(e);
1684
+ }
1685
+ }
1686
+ function Bt(e, t) {
1687
+ const n = e.get(t) || 0;
1688
+ if (n > _r) {
1689
+ const r = t.i, o = r && sn(r.type);
1690
+ return mt(
1691
+ `Maximum recursive updates exceeded${o ? ` in component <${o}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
1692
+ null,
1693
+ 10
1694
+ ), !0;
1695
+ }
1696
+ return e.set(t, n + 1), !1;
1697
+ }
1698
+ const ze = /* @__PURE__ */ new Map();
1699
+ process.env.NODE_ENV !== "production" && (Pe().__VUE_HMR_RUNTIME__ = {
1700
+ createRecord: Je(Er),
1701
+ rerender: Je(wr),
1702
+ reload: Je(br)
1703
+ });
1704
+ const Re = /* @__PURE__ */ new Map();
1705
+ function Er(e, t) {
1706
+ return Re.has(e) ? !1 : (Re.set(e, {
1707
+ initialDef: Ae(t),
1708
+ instances: /* @__PURE__ */ new Set()
1709
+ }), !0);
1710
+ }
1711
+ function Ae(e) {
1712
+ return an(e) ? e.__vccOpts : e;
1713
+ }
1714
+ function wr(e, t) {
1715
+ const n = Re.get(e);
1716
+ n && (n.initialDef.render = t, [...n.instances].forEach((r) => {
1717
+ t && (r.render = t, Ae(r.type).render = t), r.renderCache = [], r.job.flags & 8 || r.update();
1718
+ }));
1719
+ }
1720
+ function br(e, t) {
1721
+ const n = Re.get(e);
1722
+ if (!n) return;
1723
+ t = Ae(t), bt(n.initialDef, t);
1724
+ const r = [...n.instances];
1725
+ for (let o = 0; o < r.length; o++) {
1726
+ const s = r[o], i = Ae(s.type);
1727
+ let c = ze.get(i);
1728
+ c || (i !== n.initialDef && bt(i, t), ze.set(i, c = /* @__PURE__ */ new Set())), c.add(s), s.appContext.propsCache.delete(s.type), s.appContext.emitsCache.delete(s.type), s.appContext.optionsCache.delete(s.type), s.ceReload ? (c.add(s), s.ceReload(t.styles), c.delete(s)) : s.parent ? Ut(() => {
1729
+ s.job.flags & 8 || (s.parent.update(), c.delete(s));
1730
+ }) : s.appContext.reload ? s.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
1731
+ "[HMR] Root or manually mounted instance modified. Full reload required."
1732
+ ), s.root.ce && s !== s.root && s.root.ce._removeChildStyle(i);
1733
+ }
1734
+ Jt(() => {
1735
+ ze.clear();
1736
+ });
1737
+ }
1738
+ function bt(e, t) {
1739
+ W(e, t);
1740
+ for (const n in e)
1741
+ n !== "__file" && !(n in t) && delete e[n];
1742
+ }
1743
+ function Je(e) {
1744
+ return (t, n) => {
1745
+ try {
1746
+ return e(t, n);
1747
+ } catch (r) {
1748
+ console.error(r), console.warn(
1749
+ "[HMR] Something went wrong during Vue component hot-reload. Full reload required."
1750
+ );
1751
+ }
1752
+ };
1753
+ }
1754
+ let Q, Oe = [];
1755
+ function qt(e, t) {
1756
+ var n, r;
1757
+ Q = e, Q ? (Q.enabled = !0, Oe.forEach(({ event: o, args: s }) => Q.emit(o, ...s)), Oe = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully
1758
+ window.HTMLElement && // also exclude jsdom
1759
+ // eslint-disable-next-line no-restricted-syntax
1760
+ !((r = (n = window.navigator) == null ? void 0 : n.userAgent) != null && r.includes("jsdom")) ? ((t.__VUE_DEVTOOLS_HOOK_REPLAY__ = t.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((s) => {
1761
+ qt(s, t);
1762
+ }), setTimeout(() => {
1763
+ Q || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, Oe = []);
1764
+ }, 3e3)) : Oe = [];
1765
+ }
1766
+ let ve = null, Sr = null;
1767
+ function Nr(e, t, n = !1) {
1768
+ const r = on();
1769
+ if (r || Rr) {
1770
+ let o = r ? r.parent == null || r.ce ? r.vnode.appContext && r.vnode.appContext.provides : r.parent.provides : void 0;
1771
+ if (o && e in o)
1772
+ return o[e];
1773
+ if (arguments.length > 1)
1774
+ return n && w(t) ? t.call(r && r.proxy) : t;
1775
+ process.env.NODE_ENV !== "production" && E(`injection "${String(e)}" not found.`);
1776
+ } else process.env.NODE_ENV !== "production" && E("inject() can only be used inside setup() or functional components.");
1777
+ }
1778
+ const Tr = /* @__PURE__ */ Symbol.for("v-scx"), Or = () => {
1779
+ {
1780
+ const e = Nr(Tr);
1781
+ return e || process.env.NODE_ENV !== "production" && E(
1782
+ "Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."
1783
+ ), e;
1784
+ }
1785
+ };
1786
+ function Dr(e, t, n) {
1787
+ return process.env.NODE_ENV !== "production" && !w(t) && E(
1788
+ "`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."
1789
+ ), $r(e, t, n);
1790
+ }
1791
+ function $r(e, t, n = pe) {
1792
+ const { immediate: r, deep: o, flush: s, once: i } = n;
1793
+ process.env.NODE_ENV !== "production" && !t && (r !== void 0 && E(
1794
+ 'watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'
1795
+ ), o !== void 0 && E(
1796
+ 'watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'
1797
+ ), i !== void 0 && E(
1798
+ 'watch() "once" option is only respected when using the watch(source, callback, options?) signature.'
1799
+ ));
1800
+ const c = W({}, n);
1801
+ process.env.NODE_ENV !== "production" && (c.onWarn = E);
1802
+ const l = t && r || !t && s !== "post";
1803
+ let u;
1804
+ if (ye) {
1805
+ if (s === "sync") {
1806
+ const p = Or();
1807
+ u = p.__watcherHandles || (p.__watcherHandles = []);
1808
+ } else if (!l) {
1809
+ const p = () => {
1810
+ };
1811
+ return p.stop = Z, p.resume = Z, p.pause = Z, p;
1812
+ }
1813
+ }
1814
+ const d = se;
1815
+ c.call = (p, _, T) => ht(p, d, _, T);
1816
+ let a = !1;
1817
+ s === "post" ? c.scheduler = (p) => {
1818
+ kr(p, d && d.suspense);
1819
+ } : s !== "sync" && (a = !0, c.scheduler = (p, _) => {
1820
+ _ ? p() : Ut(p);
1821
+ }), c.augmentJob = (p) => {
1822
+ t && (p.flags |= 4), a && (p.flags |= 2, d && (p.id = d.uid, p.i = d));
1823
+ };
1824
+ const f = ar(e, t, c);
1825
+ return ye && (u ? u.push(f) : l && f()), f;
1826
+ }
1827
+ const Mr = (e) => e.__isTeleport;
1828
+ function Gt(e, t) {
1829
+ e.shapeFlag & 6 && e.component ? (e.transition = t, Gt(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
1830
+ }
1831
+ Pe().requestIdleCallback;
1832
+ Pe().cancelIdleCallback;
1833
+ function xr(e, t, n = se, r = !1) {
1834
+ if (n) {
1835
+ const o = n[e] || (n[e] = []), s = t.__weh || (t.__weh = (...i) => {
1836
+ re();
1837
+ const c = Br(n), l = ht(t, n, e, i);
1838
+ return c(), oe(), l;
1839
+ });
1840
+ return r ? o.unshift(s) : o.push(s), s;
1841
+ } else if (process.env.NODE_ENV !== "production") {
1842
+ const o = In(pt[e].replace(/ hook$/, ""));
1843
+ E(
1844
+ `${o} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`
1845
+ );
1846
+ }
1847
+ }
1848
+ const Qt = (e) => (t, n = se) => {
1849
+ (!ye || e === "sp") && xr(e, (...r) => t(...r), n);
1850
+ }, Cr = Qt("m"), Zt = Qt("um"), Vr = /* @__PURE__ */ Symbol.for("v-ndc"), Ir = {};
1851
+ process.env.NODE_ENV !== "production" && (Ir.ownKeys = (e) => (E(
1852
+ "Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
1853
+ ), Reflect.ownKeys(e)));
1854
+ let Rr = null;
1855
+ const Ar = {}, Xt = (e) => Object.getPrototypeOf(e) === Ar, kr = Pr, Hr = (e) => e.__isSuspense;
1856
+ function Pr(e, t) {
1857
+ t && t.pendingBranch ? v(e) ? t.effects.push(...e) : t.effects.push(e) : Jt(e);
1858
+ }
1859
+ const en = /* @__PURE__ */ Symbol.for("v-fgt"), Fr = /* @__PURE__ */ Symbol.for("v-txt"), Lr = /* @__PURE__ */ Symbol.for("v-cmt");
1860
+ function Kr(e) {
1861
+ return e ? e.__v_isVNode === !0 : !1;
1862
+ }
1863
+ const Wr = (...e) => nn(
1864
+ ...e
1865
+ ), tn = ({ key: e }) => e ?? null, $e = ({
1866
+ ref: e,
1867
+ ref_key: t,
1868
+ ref_for: n
1869
+ }) => (typeof e == "number" && (e = "" + e), e != null ? A(e) || D(e) || w(e) ? { i: ve, r: e, k: t, f: !!n } : e : null);
1870
+ function jr(e, t = null, n = null, r = 0, o = null, s = e === en ? 0 : 1, i = !1, c = !1) {
1871
+ const l = {
1872
+ __v_isVNode: !0,
1873
+ __v_skip: !0,
1874
+ type: e,
1875
+ props: t,
1876
+ key: t && tn(t),
1877
+ ref: t && $e(t),
1878
+ scopeId: Sr,
1879
+ slotScopeIds: null,
1880
+ children: n,
1881
+ component: null,
1882
+ suspense: null,
1883
+ ssContent: null,
1884
+ ssFallback: null,
1885
+ dirs: null,
1886
+ transition: null,
1887
+ el: null,
1888
+ anchor: null,
1889
+ target: null,
1890
+ targetStart: null,
1891
+ targetAnchor: null,
1892
+ staticCount: 0,
1893
+ shapeFlag: s,
1894
+ patchFlag: r,
1895
+ dynamicProps: o,
1896
+ dynamicChildren: null,
1897
+ appContext: null,
1898
+ ctx: ve
1899
+ };
1900
+ return c ? (gt(l, n), s & 128 && e.normalize(l)) : n && (l.shapeFlag |= A(n) ? 8 : 16), process.env.NODE_ENV !== "production" && l.key !== l.key && E("VNode created with invalid key (NaN). VNode type:", l.type), l;
1901
+ }
1902
+ const Ur = process.env.NODE_ENV !== "production" ? Wr : nn;
1903
+ function nn(e, t = null, n = null, r = 0, o = null, s = !1) {
1904
+ if ((!e || e === Vr) && (process.env.NODE_ENV !== "production" && !e && E(`Invalid vnode type when creating vnode: ${e}.`), e = Lr), Kr(e)) {
1905
+ const c = ke(
1906
+ e,
1907
+ t,
1908
+ !0
1909
+ /* mergeRef: true */
1910
+ );
1911
+ return n && gt(c, n), c.patchFlag = -2, c;
1912
+ }
1913
+ if (an(e) && (e = e.__vccOpts), t) {
1914
+ t = zr(t);
1915
+ let { class: c, style: l } = t;
1916
+ c && !A(c) && (t.class = it(c)), S(l) && (Ve(l) && !v(l) && (l = W({}, l)), t.style = st(l));
1917
+ }
1918
+ const i = A(e) ? 1 : Hr(e) ? 128 : Mr(e) ? 64 : S(e) ? 4 : w(e) ? 2 : 0;
1919
+ return process.env.NODE_ENV !== "production" && i & 4 && Ve(e) && (e = h(e), E(
1920
+ "Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
1921
+ `
1922
+ Component that was made reactive: `,
1923
+ e
1924
+ )), jr(
1925
+ e,
1926
+ t,
1927
+ n,
1928
+ r,
1929
+ o,
1930
+ i,
1931
+ s,
1932
+ !0
1933
+ );
1934
+ }
1935
+ function zr(e) {
1936
+ return e ? Ve(e) || Xt(e) ? W({}, e) : e : null;
1937
+ }
1938
+ function ke(e, t, n = !1, r = !1) {
1939
+ const { props: o, ref: s, patchFlag: i, children: c, transition: l } = e, u = t ? Yr(o || {}, t) : o, d = {
1940
+ __v_isVNode: !0,
1941
+ __v_skip: !0,
1942
+ type: e.type,
1943
+ props: u,
1944
+ key: u && tn(u),
1945
+ ref: t && t.ref ? (
1946
+ // #2078 in the case of <component :is="vnode" ref="extra"/>
1947
+ // if the vnode itself already has a ref, cloneVNode will need to merge
1948
+ // the refs so the single vnode can be set on multiple refs
1949
+ n && s ? v(s) ? s.concat($e(t)) : [s, $e(t)] : $e(t)
1950
+ ) : s,
1951
+ scopeId: e.scopeId,
1952
+ slotScopeIds: e.slotScopeIds,
1953
+ children: process.env.NODE_ENV !== "production" && i === -1 && v(c) ? c.map(rn) : c,
1954
+ target: e.target,
1955
+ targetStart: e.targetStart,
1956
+ targetAnchor: e.targetAnchor,
1957
+ staticCount: e.staticCount,
1958
+ shapeFlag: e.shapeFlag,
1959
+ // if the vnode is cloned with extra props, we can no longer assume its
1960
+ // existing patch flag to be reliable and need to add the FULL_PROPS flag.
1961
+ // note: preserve flag for fragments since they use the flag for children
1962
+ // fast paths only.
1963
+ patchFlag: t && e.type !== en ? i === -1 ? 16 : i | 16 : i,
1964
+ dynamicProps: e.dynamicProps,
1965
+ dynamicChildren: e.dynamicChildren,
1966
+ appContext: e.appContext,
1967
+ dirs: e.dirs,
1968
+ transition: l,
1969
+ // These should technically only be non-null on mounted VNodes. However,
1970
+ // they *should* be copied for kept-alive vnodes. So we just always copy
1971
+ // them since them being non-null during a mount doesn't affect the logic as
1972
+ // they will simply be overwritten.
1973
+ component: e.component,
1974
+ suspense: e.suspense,
1975
+ ssContent: e.ssContent && ke(e.ssContent),
1976
+ ssFallback: e.ssFallback && ke(e.ssFallback),
1977
+ placeholder: e.placeholder,
1978
+ el: e.el,
1979
+ anchor: e.anchor,
1980
+ ctx: e.ctx,
1981
+ ce: e.ce
1982
+ };
1983
+ return l && r && Gt(
1984
+ d,
1985
+ l.clone(d)
1986
+ ), d;
1987
+ }
1988
+ function rn(e) {
1989
+ const t = ke(e);
1990
+ return v(e.children) && (t.children = e.children.map(rn)), t;
1991
+ }
1992
+ function Jr(e = " ", t = 0) {
1993
+ return Ur(Fr, null, e, t);
1994
+ }
1995
+ function gt(e, t) {
1996
+ let n = 0;
1997
+ const { shapeFlag: r } = e;
1998
+ if (t == null)
1999
+ t = null;
2000
+ else if (v(t))
2001
+ n = 16;
2002
+ else if (typeof t == "object")
2003
+ if (r & 65) {
2004
+ const o = t.default;
2005
+ o && (o._c && (o._d = !1), gt(e, o()), o._c && (o._d = !0));
2006
+ return;
2007
+ } else
2008
+ n = 32, !t._ && !Xt(t) && (t._ctx = ve);
2009
+ else w(t) ? (t = { default: t, _ctx: ve }, n = 32) : (t = String(t), r & 64 ? (n = 16, t = [Jr(t)]) : n = 8);
2010
+ e.children = t, e.shapeFlag |= n;
2011
+ }
2012
+ function Yr(...e) {
2013
+ const t = {};
2014
+ for (let n = 0; n < e.length; n++) {
2015
+ const r = e[n];
2016
+ for (const o in r)
2017
+ if (o === "class")
2018
+ t.class !== r.class && (t.class = it([t.class, r.class]));
2019
+ else if (o === "style")
2020
+ t.style = st([t.style, r.style]);
2021
+ else if (Dn(o)) {
2022
+ const s = t[o], i = r[o];
2023
+ i && s !== i && !(v(s) && s.includes(i)) && (t[o] = s ? [].concat(s, i) : i);
2024
+ } else o !== "" && (t[o] = r[o]);
2025
+ }
2026
+ return t;
2027
+ }
2028
+ let se = null;
2029
+ const on = () => se || ve;
2030
+ let et;
2031
+ {
2032
+ const e = Pe(), t = (n, r) => {
2033
+ let o;
2034
+ return (o = e[n]) || (o = e[n] = []), o.push(r), (s) => {
2035
+ o.length > 1 ? o.forEach((i) => i(s)) : o[0](s);
2036
+ };
2037
+ };
2038
+ et = t(
2039
+ "__VUE_INSTANCE_SETTERS__",
2040
+ (n) => se = n
2041
+ ), t(
2042
+ "__VUE_SSR_SETTERS__",
2043
+ (n) => ye = n
2044
+ );
2045
+ }
2046
+ const Br = (e) => {
2047
+ const t = se;
2048
+ return et(e), e.scope.on(), () => {
2049
+ e.scope.off(), et(t);
2050
+ };
2051
+ };
2052
+ let ye = !1;
2053
+ process.env.NODE_ENV;
2054
+ const qr = /(?:^|[-_])\w/g, Gr = (e) => e.replace(qr, (t) => t.toUpperCase()).replace(/[-_]/g, "");
2055
+ function sn(e, t = !0) {
2056
+ return w(e) ? e.displayName || e.name : e.name || t && e.__name;
2057
+ }
2058
+ function cn(e, t, n = !1) {
2059
+ let r = sn(t);
2060
+ if (!r && t.__file) {
2061
+ const o = t.__file.match(/([^/\\]+)\.\w+$/);
2062
+ o && (r = o[1]);
2063
+ }
2064
+ if (!r && e) {
2065
+ const o = (s) => {
2066
+ for (const i in s)
2067
+ if (s[i] === t)
2068
+ return i;
2069
+ };
2070
+ r = o(e.components) || e.parent && o(
2071
+ e.parent.type.components
2072
+ ) || o(e.appContext.components);
2073
+ }
2074
+ return r ? Gr(r) : n ? "App" : "Anonymous";
2075
+ }
2076
+ function an(e) {
2077
+ return w(e) && "__vccOpts" in e;
2078
+ }
2079
+ const De = (e, t) => {
2080
+ const n = ir(e, t, ye);
2081
+ if (process.env.NODE_ENV !== "production") {
2082
+ const r = on();
2083
+ r && r.appContext.config.warnRecursiveComputed && (n._warnRecursive = !0);
2084
+ }
2085
+ return n;
2086
+ };
2087
+ function Qr() {
2088
+ if (process.env.NODE_ENV === "production" || typeof window > "u")
2089
+ return;
2090
+ const e = { style: "color:#3ba776" }, t = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, r = { style: "color:#eb2f96" }, o = {
2091
+ __vue_custom_formatter: !0,
2092
+ header(a) {
2093
+ if (!S(a))
2094
+ return null;
2095
+ if (a.__isVue)
2096
+ return ["div", e, "VueInstance"];
2097
+ if (D(a)) {
2098
+ re();
2099
+ const f = a.value;
2100
+ return oe(), [
2101
+ "div",
2102
+ {},
2103
+ ["span", e, d(a)],
2104
+ "<",
2105
+ c(f),
2106
+ ">"
2107
+ ];
2108
+ } else {
2109
+ if (ee(a))
2110
+ return [
2111
+ "div",
2112
+ {},
2113
+ ["span", e, N(a) ? "ShallowReactive" : "Reactive"],
2114
+ "<",
2115
+ c(a),
2116
+ `>${C(a) ? " (readonly)" : ""}`
2117
+ ];
2118
+ if (C(a))
2119
+ return [
2120
+ "div",
2121
+ {},
2122
+ ["span", e, N(a) ? "ShallowReadonly" : "Readonly"],
2123
+ "<",
2124
+ c(a),
2125
+ ">"
2126
+ ];
2127
+ }
2128
+ return null;
2129
+ },
2130
+ hasBody(a) {
2131
+ return a && a.__isVue;
2132
+ },
2133
+ body(a) {
2134
+ if (a && a.__isVue)
2135
+ return [
2136
+ "div",
2137
+ {},
2138
+ ...s(a.$)
2139
+ ];
2140
+ }
2141
+ };
2142
+ function s(a) {
2143
+ const f = [];
2144
+ a.type.props && a.props && f.push(i("props", h(a.props))), a.setupState !== pe && f.push(i("setup", a.setupState)), a.data !== pe && f.push(i("data", h(a.data)));
2145
+ const p = l(a, "computed");
2146
+ p && f.push(i("computed", p));
2147
+ const _ = l(a, "inject");
2148
+ return _ && f.push(i("injected", _)), f.push([
2149
+ "div",
2150
+ {},
2151
+ [
2152
+ "span",
2153
+ {
2154
+ style: r.style + ";opacity:0.66"
2155
+ },
2156
+ "$ (internal): "
2157
+ ],
2158
+ ["object", { object: a }]
2159
+ ]), f;
2160
+ }
2161
+ function i(a, f) {
2162
+ return f = W({}, f), Object.keys(f).length ? [
2163
+ "div",
2164
+ { style: "line-height:1.25em;margin-bottom:0.6em" },
2165
+ [
2166
+ "div",
2167
+ {
2168
+ style: "color:#476582"
2169
+ },
2170
+ a
2171
+ ],
2172
+ [
2173
+ "div",
2174
+ {
2175
+ style: "padding-left:1.25em"
2176
+ },
2177
+ ...Object.keys(f).map((p) => [
2178
+ "div",
2179
+ {},
2180
+ ["span", r, p + ": "],
2181
+ c(f[p], !1)
2182
+ ])
2183
+ ]
2184
+ ] : ["span", {}];
2185
+ }
2186
+ function c(a, f = !0) {
2187
+ return typeof a == "number" ? ["span", t, a] : typeof a == "string" ? ["span", n, JSON.stringify(a)] : typeof a == "boolean" ? ["span", r, a] : S(a) ? ["object", { object: f ? h(a) : a }] : ["span", n, String(a)];
2188
+ }
2189
+ function l(a, f) {
2190
+ const p = a.type;
2191
+ if (w(p))
2192
+ return;
2193
+ const _ = {};
2194
+ for (const T in a.ctx)
2195
+ u(p, T, f) && (_[T] = a.ctx[T]);
2196
+ return _;
2197
+ }
2198
+ function u(a, f, p) {
2199
+ const _ = a[p];
2200
+ if (v(_) && _.includes(f) || S(_) && f in _ || a.extends && u(a.extends, f, p) || a.mixins && a.mixins.some((T) => u(T, f, p)))
2201
+ return !0;
2202
+ }
2203
+ function d(a) {
2204
+ return N(a) ? "ShallowRef" : a.effect ? "ComputedRef" : "Ref";
2205
+ }
2206
+ window.devtoolsFormatters ? window.devtoolsFormatters.push(o) : window.devtoolsFormatters = [o];
2207
+ }
2208
+ process.env.NODE_ENV;
2209
+ process.env.NODE_ENV;
2210
+ process.env.NODE_ENV;
2211
+ function Zr() {
2212
+ Qr();
2213
+ }
2214
+ process.env.NODE_ENV !== "production" && Zr();
2215
+ const y = dt({
2216
+ mode: "light",
2217
+ variant: "default",
2218
+ isChanging: !1
2219
+ });
2220
+ let St = !1, q = null;
2221
+ function ln() {
2222
+ if (!St && typeof window < "u") {
2223
+ const u = yn();
2224
+ y.value = {
2225
+ mode: u.mode,
2226
+ variant: u.variant,
2227
+ isChanging: !1
2228
+ }, St = !0;
2229
+ }
2230
+ const e = De(() => y.value.mode), t = De(() => y.value.variant), n = De(() => y.value.mode === "dark"), r = De(() => y.value.isChanging), o = (u, d = {}) => {
2231
+ y.value.isChanging = !0, ue({ mode: u }, d), y.value.mode = u, setTimeout(() => {
2232
+ y.value.isChanging = !1;
2233
+ }, 300);
2234
+ }, s = (u, d = {}) => {
2235
+ y.value.isChanging = !0, ue({ variant: u }, d), y.value.variant = u, setTimeout(() => {
2236
+ y.value.isChanging = !1;
2237
+ }, 300);
2238
+ }, i = (u = {}) => {
2239
+ const d = vn(u);
2240
+ y.value.mode = d;
2241
+ }, c = (u, d = {}) => {
2242
+ y.value.isChanging = !0, ue(u, d), u.mode && (y.value.mode = u.mode), u.variant && (y.value.variant = u.variant), setTimeout(() => {
2243
+ y.value.isChanging = !1;
2244
+ }, 300);
2245
+ }, l = () => bn(y.value.variant);
2246
+ return {
2247
+ theme: y.value,
2248
+ mode: e.value,
2249
+ variant: t.value,
2250
+ isDark: n.value,
2251
+ isChanging: r.value,
2252
+ setMode: o,
2253
+ setVariant: s,
2254
+ toggleDarkMode: i,
2255
+ setTheme: c,
2256
+ getAvailableThemes: wn,
2257
+ getCurrentThemeMetadata: l
2258
+ };
2259
+ }
2260
+ function po(e = dt(!0)) {
2261
+ const { setMode: t } = ln(), n = () => {
2262
+ q && q(), q = En((o) => {
2263
+ e.value && t(o, { transition: !0, persist: !1 });
2264
+ });
2265
+ }, r = () => {
2266
+ q && (q(), q = null);
2267
+ };
2268
+ Dr(
2269
+ e,
2270
+ (o) => {
2271
+ o ? n() : r();
2272
+ },
2273
+ { immediate: !0 }
2274
+ ), Zt(() => {
2275
+ r();
2276
+ });
2277
+ }
2278
+ function ho(e) {
2279
+ const t = dt(""), n = () => {
2280
+ if (typeof window > "u") return;
2281
+ const r = document.documentElement, o = getComputedStyle(r).getPropertyValue(`--${e}`).trim();
2282
+ o && !o.startsWith("hsl") ? t.value = `hsl(${o})` : t.value = o;
2283
+ };
2284
+ return Cr(() => {
2285
+ n();
2286
+ const r = new MutationObserver(() => {
2287
+ n();
2288
+ });
2289
+ r.observe(document.documentElement, {
2290
+ attributes: !0,
2291
+ attributeFilter: ["class", "data-theme"]
2292
+ }), Zt(() => {
2293
+ r.disconnect();
2294
+ });
2295
+ }), Ce(t);
2296
+ }
2297
+ function mo() {
2298
+ const { isChanging: e } = ln();
2299
+ return {
2300
+ isTransitioning: e
2301
+ };
2302
+ }
2303
+ export {
2304
+ ae as CSS_CLASSES,
2305
+ tt as DEFAULT_THEME_MODE,
2306
+ Me as DEFAULT_THEME_VARIANT,
2307
+ xe as HTML_ATTRIBUTES,
2308
+ ne as STORAGE_KEYS,
2309
+ Xr as THEMES_BY_CATEGORY,
2310
+ nt as THEME_MAP,
2311
+ le as THEME_METADATA,
2312
+ Ye as THEME_TRANSITION_DURATION,
2313
+ rt as applyCustomTheme,
2314
+ hn as applyMode,
2315
+ ue as applyTheme,
2316
+ fo as applyThemeFromPrimary,
2317
+ mn as applyVariant,
2318
+ ao as clearCustomTheme,
2319
+ eo as clearStoredTheme,
2320
+ no as detectSystemTheme,
2321
+ _n as disableTransition,
2322
+ gn as enableTransition,
2323
+ Tt as generateThemeFromPrimary,
2324
+ wn as getAvailableThemes,
2325
+ Sn as getCSSVariable,
2326
+ Nt as getCurrentMode,
2327
+ to as getCurrentVariant,
2328
+ V as getHtmlElement,
2329
+ Nn as getStoredCustomTheme,
2330
+ un as getStoredMode,
2331
+ fn as getStoredVariant,
2332
+ so as getThemeColor,
2333
+ bn as getThemeMetadata,
2334
+ Tn as hexToHSL,
2335
+ yn as initTheme,
2336
+ co as isValidMode,
2337
+ io as isValidVariant,
2338
+ _t as parseHSL,
2339
+ lo as restoreCustomTheme,
2340
+ uo as rgbToHSL,
2341
+ oo as setCSSVariable,
2342
+ dn as storeMode,
2343
+ pn as storeVariant,
2344
+ ro as toHSLString,
2345
+ vn as toggleDarkMode,
2346
+ po as useSystemTheme,
2347
+ ln as useTheme,
2348
+ ho as useThemeColor,
2349
+ mo as useThemeTransition,
2350
+ En as watchSystemTheme
2351
+ };
2
2352
  //# sourceMappingURL=index.js.map