vue-chrts 0.0.80 → 0.0.81

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.
@@ -0,0 +1,2334 @@
1
+ import { shallowRef as ce, defineComponent as Be, unref as Y, shallowReactive as Yt, reactive as Xt, inject as ee, computed as M, h as vt, provide as Oe, ref as _e, watch as oe, getCurrentInstance as fe, watchEffect as yt, nextTick as Ue, createElementBlock as He, openBlock as ze, createElementVNode as ye, renderSlot as Zt, toRef as en, readonly as Et, customRef as tn, onMounted as _t, hasInjectionContext as wt, getCurrentScope as nn, onScopeDispose as on, toValue as F, resolveComponent as Je, createVNode as pe, withCtx as rn, createApp as sn } from "vue";
2
+ function an() {
3
+ return bt().__VUE_DEVTOOLS_GLOBAL_HOOK__;
4
+ }
5
+ function bt() {
6
+ return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
7
+ }
8
+ const cn = typeof Proxy == "function", ln = "devtools-plugin:setup", un = "plugin:settings:set";
9
+ let Z, Te;
10
+ function fn() {
11
+ var e;
12
+ return Z !== void 0 || (typeof window < "u" && window.performance ? (Z = !0, Te = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (Z = !0, Te = globalThis.perf_hooks.performance) : Z = !1), Z;
13
+ }
14
+ function dn() {
15
+ return fn() ? Te.now() : Date.now();
16
+ }
17
+ class hn {
18
+ constructor(t, n) {
19
+ this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
20
+ const o = {};
21
+ if (t.settings)
22
+ for (const u in t.settings) {
23
+ const d = t.settings[u];
24
+ o[u] = d.defaultValue;
25
+ }
26
+ const r = `__vue-devtools-plugin-settings__${t.id}`;
27
+ let l = Object.assign({}, o);
28
+ try {
29
+ const u = localStorage.getItem(r), d = JSON.parse(u);
30
+ Object.assign(l, d);
31
+ } catch {
32
+ }
33
+ this.fallbacks = {
34
+ getSettings() {
35
+ return l;
36
+ },
37
+ setSettings(u) {
38
+ try {
39
+ localStorage.setItem(r, JSON.stringify(u));
40
+ } catch {
41
+ }
42
+ l = u;
43
+ },
44
+ now() {
45
+ return dn();
46
+ }
47
+ }, n && n.on(un, (u, d) => {
48
+ u === this.plugin.id && this.fallbacks.setSettings(d);
49
+ }), this.proxiedOn = new Proxy({}, {
50
+ get: (u, d) => this.target ? this.target.on[d] : (...a) => {
51
+ this.onQueue.push({
52
+ method: d,
53
+ args: a
54
+ });
55
+ }
56
+ }), this.proxiedTarget = new Proxy({}, {
57
+ get: (u, d) => this.target ? this.target[d] : d === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(d) ? (...a) => (this.targetQueue.push({
58
+ method: d,
59
+ args: a,
60
+ resolve: () => {
61
+ }
62
+ }), this.fallbacks[d](...a)) : (...a) => new Promise((p) => {
63
+ this.targetQueue.push({
64
+ method: d,
65
+ args: a,
66
+ resolve: p
67
+ });
68
+ })
69
+ });
70
+ }
71
+ async setRealTarget(t) {
72
+ this.target = t;
73
+ for (const n of this.onQueue)
74
+ this.target.on[n.method](...n.args);
75
+ for (const n of this.targetQueue)
76
+ n.resolve(await this.target[n.method](...n.args));
77
+ }
78
+ }
79
+ function pn(e, t) {
80
+ const n = e, o = bt(), r = an(), l = cn && n.enableEarlyProxy;
81
+ if (r && (o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !l))
82
+ r.emit(ln, e, t);
83
+ else {
84
+ const u = l ? new hn(n, r) : null;
85
+ (o.__VUE_DEVTOOLS_PLUGINS__ = o.__VUE_DEVTOOLS_PLUGINS__ || []).push({
86
+ pluginDescriptor: n,
87
+ setupFn: t,
88
+ proxy: u
89
+ }), u && t(u.proxiedTarget);
90
+ }
91
+ }
92
+ /*!
93
+ * vue-router v4.5.0
94
+ * (c) 2024 Eduardo San Martin Morote
95
+ * @license MIT
96
+ */
97
+ const z = typeof document < "u";
98
+ function St(e) {
99
+ return typeof e == "object" || "displayName" in e || "props" in e || "__vccOpts" in e;
100
+ }
101
+ function mn(e) {
102
+ return e.__esModule || e[Symbol.toStringTag] === "Module" || // support CF with dynamic imports that do not
103
+ // add the Module string tag
104
+ e.default && St(e.default);
105
+ }
106
+ const P = Object.assign;
107
+ function Pe(e, t) {
108
+ const n = {};
109
+ for (const o in t) {
110
+ const r = t[o];
111
+ n[o] = B(r) ? r.map(e) : e(r);
112
+ }
113
+ return n;
114
+ }
115
+ const ie = () => {
116
+ }, B = Array.isArray;
117
+ function S(e) {
118
+ const t = Array.from(arguments).slice(1);
119
+ console.warn.apply(console, ["[Vue Router warn]: " + e].concat(t));
120
+ }
121
+ const Rt = /#/g, gn = /&/g, vn = /\//g, yn = /=/g, En = /\?/g, Nt = /\+/g, _n = /%5B/g, wn = /%5D/g, kt = /%5E/g, bn = /%60/g, Ot = /%7B/g, Sn = /%7C/g, Pt = /%7D/g, Rn = /%20/g;
122
+ function Ge(e) {
123
+ return encodeURI("" + e).replace(Sn, "|").replace(_n, "[").replace(wn, "]");
124
+ }
125
+ function Nn(e) {
126
+ return Ge(e).replace(Ot, "{").replace(Pt, "}").replace(kt, "^");
127
+ }
128
+ function Ve(e) {
129
+ return Ge(e).replace(Nt, "%2B").replace(Rn, "+").replace(Rt, "%23").replace(gn, "%26").replace(bn, "`").replace(Ot, "{").replace(Pt, "}").replace(kt, "^");
130
+ }
131
+ function kn(e) {
132
+ return Ve(e).replace(yn, "%3D");
133
+ }
134
+ function On(e) {
135
+ return Ge(e).replace(Rt, "%23").replace(En, "%3F");
136
+ }
137
+ function Pn(e) {
138
+ return e == null ? "" : On(e).replace(vn, "%2F");
139
+ }
140
+ function te(e) {
141
+ try {
142
+ return decodeURIComponent("" + e);
143
+ } catch {
144
+ process.env.NODE_ENV !== "production" && S(`Error decoding "${e}". Using original value`);
145
+ }
146
+ return "" + e;
147
+ }
148
+ const Cn = /\/$/, An = (e) => e.replace(Cn, "");
149
+ function Ce(e, t, n = "/") {
150
+ let o, r = {}, l = "", u = "";
151
+ const d = t.indexOf("#");
152
+ let a = t.indexOf("?");
153
+ return d < a && d >= 0 && (a = -1), a > -1 && (o = t.slice(0, a), l = t.slice(a + 1, d > -1 ? d : t.length), r = e(l)), d > -1 && (o = o || t.slice(0, d), u = t.slice(d, t.length)), o = Tn(o ?? t, n), {
154
+ fullPath: o + (l && "?") + l + u,
155
+ path: o,
156
+ query: r,
157
+ hash: te(u)
158
+ };
159
+ }
160
+ function $n(e, t) {
161
+ const n = t.query ? e(t.query) : "";
162
+ return t.path + (n && "?") + n + (t.hash || "");
163
+ }
164
+ function Ye(e, t) {
165
+ return !t || !e.toLowerCase().startsWith(t.toLowerCase()) ? e : e.slice(t.length) || "/";
166
+ }
167
+ function Xe(e, t, n) {
168
+ const o = t.matched.length - 1, r = n.matched.length - 1;
169
+ return o > -1 && o === r && q(t.matched[o], n.matched[r]) && Ct(t.params, n.params) && e(t.query) === e(n.query) && t.hash === n.hash;
170
+ }
171
+ function q(e, t) {
172
+ return (e.aliasOf || e) === (t.aliasOf || t);
173
+ }
174
+ function Ct(e, t) {
175
+ if (Object.keys(e).length !== Object.keys(t).length)
176
+ return !1;
177
+ for (const n in e)
178
+ if (!xn(e[n], t[n]))
179
+ return !1;
180
+ return !0;
181
+ }
182
+ function xn(e, t) {
183
+ return B(e) ? Ze(e, t) : B(t) ? Ze(t, e) : e === t;
184
+ }
185
+ function Ze(e, t) {
186
+ return B(t) ? e.length === t.length && e.every((n, o) => n === t[o]) : e.length === 1 && e[0] === t;
187
+ }
188
+ function Tn(e, t) {
189
+ if (e.startsWith("/"))
190
+ return e;
191
+ if (process.env.NODE_ENV !== "production" && !t.startsWith("/"))
192
+ return S(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`), e;
193
+ if (!e)
194
+ return t;
195
+ const n = t.split("/"), o = e.split("/"), r = o[o.length - 1];
196
+ (r === ".." || r === ".") && o.push("");
197
+ let l = n.length - 1, u, d;
198
+ for (u = 0; u < o.length; u++)
199
+ if (d = o[u], d !== ".")
200
+ if (d === "..")
201
+ l > 1 && l--;
202
+ else
203
+ break;
204
+ return n.slice(0, l).join("/") + "/" + o.slice(u).join("/");
205
+ }
206
+ const G = {
207
+ path: "/",
208
+ // TODO: could we use a symbol in the future?
209
+ name: void 0,
210
+ params: {},
211
+ query: {},
212
+ hash: "",
213
+ fullPath: "/",
214
+ matched: [],
215
+ meta: {},
216
+ redirectedFrom: void 0
217
+ };
218
+ var le;
219
+ (function(e) {
220
+ e.pop = "pop", e.push = "push";
221
+ })(le || (le = {}));
222
+ var ae;
223
+ (function(e) {
224
+ e.back = "back", e.forward = "forward", e.unknown = "";
225
+ })(ae || (ae = {}));
226
+ function Vn(e) {
227
+ if (!e)
228
+ if (z) {
229
+ const t = document.querySelector("base");
230
+ e = t && t.getAttribute("href") || "/", e = e.replace(/^\w+:\/\/[^\/]+/, "");
231
+ } else
232
+ e = "/";
233
+ return e[0] !== "/" && e[0] !== "#" && (e = "/" + e), An(e);
234
+ }
235
+ const Dn = /^[^#]+#/;
236
+ function In(e, t) {
237
+ return e.replace(Dn, "#") + t;
238
+ }
239
+ function Mn(e, t) {
240
+ const n = document.documentElement.getBoundingClientRect(), o = e.getBoundingClientRect();
241
+ return {
242
+ behavior: t.behavior,
243
+ left: o.left - n.left - (t.left || 0),
244
+ top: o.top - n.top - (t.top || 0)
245
+ };
246
+ }
247
+ const we = () => ({
248
+ left: window.scrollX,
249
+ top: window.scrollY
250
+ });
251
+ function jn(e) {
252
+ let t;
253
+ if ("el" in e) {
254
+ const n = e.el, o = typeof n == "string" && n.startsWith("#");
255
+ if (process.env.NODE_ENV !== "production" && typeof e.el == "string" && (!o || !document.getElementById(e.el.slice(1))))
256
+ try {
257
+ const l = document.querySelector(e.el);
258
+ if (o && l) {
259
+ S(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);
260
+ return;
261
+ }
262
+ } catch {
263
+ S(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);
264
+ return;
265
+ }
266
+ const r = typeof n == "string" ? o ? document.getElementById(n.slice(1)) : document.querySelector(n) : n;
267
+ if (!r) {
268
+ process.env.NODE_ENV !== "production" && S(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);
269
+ return;
270
+ }
271
+ t = Mn(r, e);
272
+ } else
273
+ t = e;
274
+ "scrollBehavior" in document.documentElement.style ? window.scrollTo(t) : window.scrollTo(t.left != null ? t.left : window.scrollX, t.top != null ? t.top : window.scrollY);
275
+ }
276
+ function et(e, t) {
277
+ return (history.state ? history.state.position - t : -1) + e;
278
+ }
279
+ const De = /* @__PURE__ */ new Map();
280
+ function Ln(e, t) {
281
+ De.set(e, t);
282
+ }
283
+ function Wn(e) {
284
+ const t = De.get(e);
285
+ return De.delete(e), t;
286
+ }
287
+ let Bn = () => location.protocol + "//" + location.host;
288
+ function At(e, t) {
289
+ const { pathname: n, search: o, hash: r } = t, l = e.indexOf("#");
290
+ if (l > -1) {
291
+ let d = r.includes(e.slice(l)) ? e.slice(l).length : 1, a = r.slice(d);
292
+ return a[0] !== "/" && (a = "/" + a), Ye(a, "");
293
+ }
294
+ return Ye(n, e) + o + r;
295
+ }
296
+ function Un(e, t, n, o) {
297
+ let r = [], l = [], u = null;
298
+ const d = ({ state: c }) => {
299
+ const h = At(e, location), v = n.value, E = t.value;
300
+ let w = 0;
301
+ if (c) {
302
+ if (n.value = h, t.value = c, u && u === v) {
303
+ u = null;
304
+ return;
305
+ }
306
+ w = E ? c.position - E.position : 0;
307
+ } else
308
+ o(h);
309
+ r.forEach((N) => {
310
+ N(n.value, v, {
311
+ delta: w,
312
+ type: le.pop,
313
+ direction: w ? w > 0 ? ae.forward : ae.back : ae.unknown
314
+ });
315
+ });
316
+ };
317
+ function a() {
318
+ u = n.value;
319
+ }
320
+ function p(c) {
321
+ r.push(c);
322
+ const h = () => {
323
+ const v = r.indexOf(c);
324
+ v > -1 && r.splice(v, 1);
325
+ };
326
+ return l.push(h), h;
327
+ }
328
+ function i() {
329
+ const { history: c } = window;
330
+ c.state && c.replaceState(P({}, c.state, { scroll: we() }), "");
331
+ }
332
+ function s() {
333
+ for (const c of l)
334
+ c();
335
+ l = [], window.removeEventListener("popstate", d), window.removeEventListener("beforeunload", i);
336
+ }
337
+ return window.addEventListener("popstate", d), window.addEventListener("beforeunload", i, {
338
+ passive: !0
339
+ }), {
340
+ pauseListeners: a,
341
+ listen: p,
342
+ destroy: s
343
+ };
344
+ }
345
+ function tt(e, t, n, o = !1, r = !1) {
346
+ return {
347
+ back: e,
348
+ current: t,
349
+ forward: n,
350
+ replaced: o,
351
+ position: window.history.length,
352
+ scroll: r ? we() : null
353
+ };
354
+ }
355
+ function Hn(e) {
356
+ const { history: t, location: n } = window, o = {
357
+ value: At(e, n)
358
+ }, r = { value: t.state };
359
+ r.value || l(o.value, {
360
+ back: null,
361
+ current: o.value,
362
+ forward: null,
363
+ // the length is off by one, we need to decrease it
364
+ position: t.length - 1,
365
+ replaced: !0,
366
+ // don't add a scroll as the user may have an anchor, and we want
367
+ // scrollBehavior to be triggered without a saved position
368
+ scroll: null
369
+ }, !0);
370
+ function l(a, p, i) {
371
+ const s = e.indexOf("#"), c = s > -1 ? (n.host && document.querySelector("base") ? e : e.slice(s)) + a : Bn() + e + a;
372
+ try {
373
+ t[i ? "replaceState" : "pushState"](p, "", c), r.value = p;
374
+ } catch (h) {
375
+ process.env.NODE_ENV !== "production" ? S("Error with push/replace State", h) : console.error(h), n[i ? "replace" : "assign"](c);
376
+ }
377
+ }
378
+ function u(a, p) {
379
+ const i = P({}, t.state, tt(
380
+ r.value.back,
381
+ // keep back and forward entries but override current position
382
+ a,
383
+ r.value.forward,
384
+ !0
385
+ ), p, { position: r.value.position });
386
+ l(a, i, !0), o.value = a;
387
+ }
388
+ function d(a, p) {
389
+ const i = P(
390
+ {},
391
+ // use current history state to gracefully handle a wrong call to
392
+ // history.replaceState
393
+ // https://github.com/vuejs/router/issues/366
394
+ r.value,
395
+ t.state,
396
+ {
397
+ forward: a,
398
+ scroll: we()
399
+ }
400
+ );
401
+ process.env.NODE_ENV !== "production" && !t.state && S(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
402
+
403
+ history.replaceState(history.state, '', url)
404
+
405
+ You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`), l(i.current, i, !0);
406
+ const s = P({}, tt(o.value, a, null), { position: i.position + 1 }, p);
407
+ l(a, s, !1), o.value = a;
408
+ }
409
+ return {
410
+ location: o,
411
+ state: r,
412
+ push: d,
413
+ replace: u
414
+ };
415
+ }
416
+ function zn(e) {
417
+ e = Vn(e);
418
+ const t = Hn(e), n = Un(e, t.state, t.location, t.replace);
419
+ function o(l, u = !0) {
420
+ u || n.pauseListeners(), history.go(l);
421
+ }
422
+ const r = P({
423
+ // it's overridden right after
424
+ location: "",
425
+ base: e,
426
+ go: o,
427
+ createHref: In.bind(null, e)
428
+ }, t, n);
429
+ return Object.defineProperty(r, "location", {
430
+ enumerable: !0,
431
+ get: () => t.location.value
432
+ }), Object.defineProperty(r, "state", {
433
+ enumerable: !0,
434
+ get: () => t.state.value
435
+ }), r;
436
+ }
437
+ function Ee(e) {
438
+ return typeof e == "string" || e && typeof e == "object";
439
+ }
440
+ function $t(e) {
441
+ return typeof e == "string" || typeof e == "symbol";
442
+ }
443
+ const Ie = Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
444
+ var nt;
445
+ (function(e) {
446
+ e[e.aborted = 4] = "aborted", e[e.cancelled = 8] = "cancelled", e[e.duplicated = 16] = "duplicated";
447
+ })(nt || (nt = {}));
448
+ const Gn = {
449
+ 1({ location: e, currentLocation: t }) {
450
+ return `No match for
451
+ ${JSON.stringify(e)}${t ? `
452
+ while being at
453
+ ` + JSON.stringify(t) : ""}`;
454
+ },
455
+ 2({ from: e, to: t }) {
456
+ return `Redirected from "${e.fullPath}" to "${Fn(t)}" via a navigation guard.`;
457
+ },
458
+ 4({ from: e, to: t }) {
459
+ return `Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`;
460
+ },
461
+ 8({ from: e, to: t }) {
462
+ return `Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`;
463
+ },
464
+ 16({ from: e, to: t }) {
465
+ return `Avoided redundant navigation to current location: "${e.fullPath}".`;
466
+ }
467
+ };
468
+ function ne(e, t) {
469
+ return process.env.NODE_ENV !== "production" ? P(new Error(Gn[e](t)), {
470
+ type: e,
471
+ [Ie]: !0
472
+ }, t) : P(new Error(), {
473
+ type: e,
474
+ [Ie]: !0
475
+ }, t);
476
+ }
477
+ function H(e, t) {
478
+ return e instanceof Error && Ie in e && (t == null || !!(e.type & t));
479
+ }
480
+ const Kn = ["params", "query", "hash"];
481
+ function Fn(e) {
482
+ if (typeof e == "string")
483
+ return e;
484
+ if (e.path != null)
485
+ return e.path;
486
+ const t = {};
487
+ for (const n of Kn)
488
+ n in e && (t[n] = e[n]);
489
+ return JSON.stringify(t, null, 2);
490
+ }
491
+ const ot = "[^/]+?", qn = {
492
+ sensitive: !1,
493
+ strict: !1,
494
+ start: !0,
495
+ end: !0
496
+ }, Qn = /[.+*?^${}()[\]/\\]/g;
497
+ function Jn(e, t) {
498
+ const n = P({}, qn, t), o = [];
499
+ let r = n.start ? "^" : "";
500
+ const l = [];
501
+ for (const p of e) {
502
+ const i = p.length ? [] : [
503
+ 90
504
+ /* PathScore.Root */
505
+ ];
506
+ n.strict && !p.length && (r += "/");
507
+ for (let s = 0; s < p.length; s++) {
508
+ const c = p[s];
509
+ let h = 40 + (n.sensitive ? 0.25 : 0);
510
+ if (c.type === 0)
511
+ s || (r += "/"), r += c.value.replace(Qn, "\\$&"), h += 40;
512
+ else if (c.type === 1) {
513
+ const { value: v, repeatable: E, optional: w, regexp: N } = c;
514
+ l.push({
515
+ name: v,
516
+ repeatable: E,
517
+ optional: w
518
+ });
519
+ const b = N || ot;
520
+ if (b !== ot) {
521
+ h += 10;
522
+ try {
523
+ new RegExp(`(${b})`);
524
+ } catch (A) {
525
+ throw new Error(`Invalid custom RegExp for param "${v}" (${b}): ` + A.message);
526
+ }
527
+ }
528
+ let _ = E ? `((?:${b})(?:/(?:${b}))*)` : `(${b})`;
529
+ s || (_ = // avoid an optional / if there are more segments e.g. /:p?-static
530
+ // or /:p?-:p2
531
+ w && p.length < 2 ? `(?:/${_})` : "/" + _), w && (_ += "?"), r += _, h += 20, w && (h += -8), E && (h += -20), b === ".*" && (h += -50);
532
+ }
533
+ i.push(h);
534
+ }
535
+ o.push(i);
536
+ }
537
+ if (n.strict && n.end) {
538
+ const p = o.length - 1;
539
+ o[p][o[p].length - 1] += 0.7000000000000001;
540
+ }
541
+ n.strict || (r += "/?"), n.end ? r += "$" : n.strict && !r.endsWith("/") && (r += "(?:/|$)");
542
+ const u = new RegExp(r, n.sensitive ? "" : "i");
543
+ function d(p) {
544
+ const i = p.match(u), s = {};
545
+ if (!i)
546
+ return null;
547
+ for (let c = 1; c < i.length; c++) {
548
+ const h = i[c] || "", v = l[c - 1];
549
+ s[v.name] = h && v.repeatable ? h.split("/") : h;
550
+ }
551
+ return s;
552
+ }
553
+ function a(p) {
554
+ let i = "", s = !1;
555
+ for (const c of e) {
556
+ (!s || !i.endsWith("/")) && (i += "/"), s = !1;
557
+ for (const h of c)
558
+ if (h.type === 0)
559
+ i += h.value;
560
+ else if (h.type === 1) {
561
+ const { value: v, repeatable: E, optional: w } = h, N = v in p ? p[v] : "";
562
+ if (B(N) && !E)
563
+ throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);
564
+ const b = B(N) ? N.join("/") : N;
565
+ if (!b)
566
+ if (w)
567
+ c.length < 2 && (i.endsWith("/") ? i = i.slice(0, -1) : s = !0);
568
+ else
569
+ throw new Error(`Missing required param "${v}"`);
570
+ i += b;
571
+ }
572
+ }
573
+ return i || "/";
574
+ }
575
+ return {
576
+ re: u,
577
+ score: o,
578
+ keys: l,
579
+ parse: d,
580
+ stringify: a
581
+ };
582
+ }
583
+ function Yn(e, t) {
584
+ let n = 0;
585
+ for (; n < e.length && n < t.length; ) {
586
+ const o = t[n] - e[n];
587
+ if (o)
588
+ return o;
589
+ n++;
590
+ }
591
+ return e.length < t.length ? e.length === 1 && e[0] === 80 ? -1 : 1 : e.length > t.length ? t.length === 1 && t[0] === 80 ? 1 : -1 : 0;
592
+ }
593
+ function xt(e, t) {
594
+ let n = 0;
595
+ const o = e.score, r = t.score;
596
+ for (; n < o.length && n < r.length; ) {
597
+ const l = Yn(o[n], r[n]);
598
+ if (l)
599
+ return l;
600
+ n++;
601
+ }
602
+ if (Math.abs(r.length - o.length) === 1) {
603
+ if (rt(o))
604
+ return 1;
605
+ if (rt(r))
606
+ return -1;
607
+ }
608
+ return r.length - o.length;
609
+ }
610
+ function rt(e) {
611
+ const t = e[e.length - 1];
612
+ return e.length > 0 && t[t.length - 1] < 0;
613
+ }
614
+ const Xn = {
615
+ type: 0,
616
+ value: ""
617
+ }, Zn = /[a-zA-Z0-9_]/;
618
+ function eo(e) {
619
+ if (!e)
620
+ return [[]];
621
+ if (e === "/")
622
+ return [[Xn]];
623
+ if (!e.startsWith("/"))
624
+ throw new Error(process.env.NODE_ENV !== "production" ? `Route paths should start with a "/": "${e}" should be "/${e}".` : `Invalid path "${e}"`);
625
+ function t(h) {
626
+ throw new Error(`ERR (${n})/"${p}": ${h}`);
627
+ }
628
+ let n = 0, o = n;
629
+ const r = [];
630
+ let l;
631
+ function u() {
632
+ l && r.push(l), l = [];
633
+ }
634
+ let d = 0, a, p = "", i = "";
635
+ function s() {
636
+ p && (n === 0 ? l.push({
637
+ type: 0,
638
+ value: p
639
+ }) : n === 1 || n === 2 || n === 3 ? (l.length > 1 && (a === "*" || a === "+") && t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`), l.push({
640
+ type: 1,
641
+ value: p,
642
+ regexp: i,
643
+ repeatable: a === "*" || a === "+",
644
+ optional: a === "*" || a === "?"
645
+ })) : t("Invalid state to consume buffer"), p = "");
646
+ }
647
+ function c() {
648
+ p += a;
649
+ }
650
+ for (; d < e.length; ) {
651
+ if (a = e[d++], a === "\\" && n !== 2) {
652
+ o = n, n = 4;
653
+ continue;
654
+ }
655
+ switch (n) {
656
+ case 0:
657
+ a === "/" ? (p && s(), u()) : a === ":" ? (s(), n = 1) : c();
658
+ break;
659
+ case 4:
660
+ c(), n = o;
661
+ break;
662
+ case 1:
663
+ a === "(" ? n = 2 : Zn.test(a) ? c() : (s(), n = 0, a !== "*" && a !== "?" && a !== "+" && d--);
664
+ break;
665
+ case 2:
666
+ a === ")" ? i[i.length - 1] == "\\" ? i = i.slice(0, -1) + a : n = 3 : i += a;
667
+ break;
668
+ case 3:
669
+ s(), n = 0, a !== "*" && a !== "?" && a !== "+" && d--, i = "";
670
+ break;
671
+ default:
672
+ t("Unknown state");
673
+ break;
674
+ }
675
+ }
676
+ return n === 2 && t(`Unfinished custom RegExp for param "${p}"`), s(), u(), r;
677
+ }
678
+ function to(e, t, n) {
679
+ const o = Jn(eo(e.path), n);
680
+ if (process.env.NODE_ENV !== "production") {
681
+ const l = /* @__PURE__ */ new Set();
682
+ for (const u of o.keys)
683
+ l.has(u.name) && S(`Found duplicated params with name "${u.name}" for path "${e.path}". Only the last one will be available on "$route.params".`), l.add(u.name);
684
+ }
685
+ const r = P(o, {
686
+ record: e,
687
+ parent: t,
688
+ // these needs to be populated by the parent
689
+ children: [],
690
+ alias: []
691
+ });
692
+ return t && !r.record.aliasOf == !t.record.aliasOf && t.children.push(r), r;
693
+ }
694
+ function no(e, t) {
695
+ const n = [], o = /* @__PURE__ */ new Map();
696
+ t = ct({ strict: !1, end: !0, sensitive: !1 }, t);
697
+ function r(s) {
698
+ return o.get(s);
699
+ }
700
+ function l(s, c, h) {
701
+ const v = !h, E = it(s);
702
+ process.env.NODE_ENV !== "production" && io(E, c), E.aliasOf = h && h.record;
703
+ const w = ct(t, s), N = [E];
704
+ if ("alias" in s) {
705
+ const A = typeof s.alias == "string" ? [s.alias] : s.alias;
706
+ for (const D of A)
707
+ N.push(
708
+ // we need to normalize again to ensure the `mods` property
709
+ // being non enumerable
710
+ it(P({}, E, {
711
+ // this allows us to hold a copy of the `components` option
712
+ // so that async components cache is hold on the original record
713
+ components: h ? h.record.components : E.components,
714
+ path: D,
715
+ // we might be the child of an alias
716
+ aliasOf: h ? h.record : E
717
+ // the aliases are always of the same kind as the original since they
718
+ // are defined on the same record
719
+ }))
720
+ );
721
+ }
722
+ let b, _;
723
+ for (const A of N) {
724
+ const { path: D } = A;
725
+ if (c && D[0] !== "/") {
726
+ const L = c.record.path, I = L[L.length - 1] === "/" ? "" : "/";
727
+ A.path = c.record.path + (D && I + D);
728
+ }
729
+ if (process.env.NODE_ENV !== "production" && A.path === "*")
730
+ throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
731
+ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.`);
732
+ if (b = to(A, c, w), process.env.NODE_ENV !== "production" && c && D[0] === "/" && co(b, c), h ? (h.alias.push(b), process.env.NODE_ENV !== "production" && so(h, b)) : (_ = _ || b, _ !== b && _.alias.push(b), v && s.name && !at(b) && (process.env.NODE_ENV !== "production" && ao(s, c), u(s.name))), Tt(b) && a(b), E.children) {
733
+ const L = E.children;
734
+ for (let I = 0; I < L.length; I++)
735
+ l(L[I], b, h && h.children[I]);
736
+ }
737
+ h = h || b;
738
+ }
739
+ return _ ? () => {
740
+ u(_);
741
+ } : ie;
742
+ }
743
+ function u(s) {
744
+ if ($t(s)) {
745
+ const c = o.get(s);
746
+ c && (o.delete(s), n.splice(n.indexOf(c), 1), c.children.forEach(u), c.alias.forEach(u));
747
+ } else {
748
+ const c = n.indexOf(s);
749
+ c > -1 && (n.splice(c, 1), s.record.name && o.delete(s.record.name), s.children.forEach(u), s.alias.forEach(u));
750
+ }
751
+ }
752
+ function d() {
753
+ return n;
754
+ }
755
+ function a(s) {
756
+ const c = lo(s, n);
757
+ n.splice(c, 0, s), s.record.name && !at(s) && o.set(s.record.name, s);
758
+ }
759
+ function p(s, c) {
760
+ let h, v = {}, E, w;
761
+ if ("name" in s && s.name) {
762
+ if (h = o.get(s.name), !h)
763
+ throw ne(1, {
764
+ location: s
765
+ });
766
+ if (process.env.NODE_ENV !== "production") {
767
+ const _ = Object.keys(s.params || {}).filter((A) => !h.keys.find((D) => D.name === A));
768
+ _.length && S(`Discarded invalid param(s) "${_.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`);
769
+ }
770
+ w = h.record.name, v = P(
771
+ // paramsFromLocation is a new object
772
+ st(
773
+ c.params,
774
+ // only keep params that exist in the resolved location
775
+ // only keep optional params coming from a parent record
776
+ h.keys.filter((_) => !_.optional).concat(h.parent ? h.parent.keys.filter((_) => _.optional) : []).map((_) => _.name)
777
+ ),
778
+ // discard any existing params in the current location that do not exist here
779
+ // #1497 this ensures better active/exact matching
780
+ s.params && st(s.params, h.keys.map((_) => _.name))
781
+ ), E = h.stringify(v);
782
+ } else if (s.path != null)
783
+ E = s.path, process.env.NODE_ENV !== "production" && !E.startsWith("/") && S(`The Matcher cannot resolve relative paths but received "${E}". Unless you directly called \`matcher.resolve("${E}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`), h = n.find((_) => _.re.test(E)), h && (v = h.parse(E), w = h.record.name);
784
+ else {
785
+ if (h = c.name ? o.get(c.name) : n.find((_) => _.re.test(c.path)), !h)
786
+ throw ne(1, {
787
+ location: s,
788
+ currentLocation: c
789
+ });
790
+ w = h.record.name, v = P({}, c.params, s.params), E = h.stringify(v);
791
+ }
792
+ const N = [];
793
+ let b = h;
794
+ for (; b; )
795
+ N.unshift(b.record), b = b.parent;
796
+ return {
797
+ name: w,
798
+ path: E,
799
+ params: v,
800
+ matched: N,
801
+ meta: ro(N)
802
+ };
803
+ }
804
+ e.forEach((s) => l(s));
805
+ function i() {
806
+ n.length = 0, o.clear();
807
+ }
808
+ return {
809
+ addRoute: l,
810
+ resolve: p,
811
+ removeRoute: u,
812
+ clearRoutes: i,
813
+ getRoutes: d,
814
+ getRecordMatcher: r
815
+ };
816
+ }
817
+ function st(e, t) {
818
+ const n = {};
819
+ for (const o of t)
820
+ o in e && (n[o] = e[o]);
821
+ return n;
822
+ }
823
+ function it(e) {
824
+ const t = {
825
+ path: e.path,
826
+ redirect: e.redirect,
827
+ name: e.name,
828
+ meta: e.meta || {},
829
+ aliasOf: e.aliasOf,
830
+ beforeEnter: e.beforeEnter,
831
+ props: oo(e),
832
+ children: e.children || [],
833
+ instances: {},
834
+ leaveGuards: /* @__PURE__ */ new Set(),
835
+ updateGuards: /* @__PURE__ */ new Set(),
836
+ enterCallbacks: {},
837
+ // must be declared afterwards
838
+ // mods: {},
839
+ components: "components" in e ? e.components || null : e.component && { default: e.component }
840
+ };
841
+ return Object.defineProperty(t, "mods", {
842
+ value: {}
843
+ }), t;
844
+ }
845
+ function oo(e) {
846
+ const t = {}, n = e.props || !1;
847
+ if ("component" in e)
848
+ t.default = n;
849
+ else
850
+ for (const o in e.components)
851
+ t[o] = typeof n == "object" ? n[o] : n;
852
+ return t;
853
+ }
854
+ function at(e) {
855
+ for (; e; ) {
856
+ if (e.record.aliasOf)
857
+ return !0;
858
+ e = e.parent;
859
+ }
860
+ return !1;
861
+ }
862
+ function ro(e) {
863
+ return e.reduce((t, n) => P(t, n.meta), {});
864
+ }
865
+ function ct(e, t) {
866
+ const n = {};
867
+ for (const o in e)
868
+ n[o] = o in t ? t[o] : e[o];
869
+ return n;
870
+ }
871
+ function Me(e, t) {
872
+ return e.name === t.name && e.optional === t.optional && e.repeatable === t.repeatable;
873
+ }
874
+ function so(e, t) {
875
+ for (const n of e.keys)
876
+ if (!n.optional && !t.keys.find(Me.bind(null, n)))
877
+ return S(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
878
+ for (const n of t.keys)
879
+ if (!n.optional && !e.keys.find(Me.bind(null, n)))
880
+ return S(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
881
+ }
882
+ function io(e, t) {
883
+ t && t.record.name && !e.name && !e.path && S(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`);
884
+ }
885
+ function ao(e, t) {
886
+ for (let n = t; n; n = n.parent)
887
+ if (n.record.name === e.name)
888
+ throw new Error(`A route named "${String(e.name)}" has been added as a ${t === n ? "child" : "descendant"} of a route with the same name. Route names must be unique and a nested route cannot use the same name as an ancestor.`);
889
+ }
890
+ function co(e, t) {
891
+ for (const n of t.keys)
892
+ if (!e.keys.find(Me.bind(null, n)))
893
+ return S(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`);
894
+ }
895
+ function lo(e, t) {
896
+ let n = 0, o = t.length;
897
+ for (; n !== o; ) {
898
+ const l = n + o >> 1;
899
+ xt(e, t[l]) < 0 ? o = l : n = l + 1;
900
+ }
901
+ const r = uo(e);
902
+ return r && (o = t.lastIndexOf(r, o - 1), process.env.NODE_ENV !== "production" && o < 0 && S(`Finding ancestor route "${r.record.path}" failed for "${e.record.path}"`)), o;
903
+ }
904
+ function uo(e) {
905
+ let t = e;
906
+ for (; t = t.parent; )
907
+ if (Tt(t) && xt(e, t) === 0)
908
+ return t;
909
+ }
910
+ function Tt({ record: e }) {
911
+ return !!(e.name || e.components && Object.keys(e.components).length || e.redirect);
912
+ }
913
+ function fo(e) {
914
+ const t = {};
915
+ if (e === "" || e === "?")
916
+ return t;
917
+ const o = (e[0] === "?" ? e.slice(1) : e).split("&");
918
+ for (let r = 0; r < o.length; ++r) {
919
+ const l = o[r].replace(Nt, " "), u = l.indexOf("="), d = te(u < 0 ? l : l.slice(0, u)), a = u < 0 ? null : te(l.slice(u + 1));
920
+ if (d in t) {
921
+ let p = t[d];
922
+ B(p) || (p = t[d] = [p]), p.push(a);
923
+ } else
924
+ t[d] = a;
925
+ }
926
+ return t;
927
+ }
928
+ function lt(e) {
929
+ let t = "";
930
+ for (let n in e) {
931
+ const o = e[n];
932
+ if (n = kn(n), o == null) {
933
+ o !== void 0 && (t += (t.length ? "&" : "") + n);
934
+ continue;
935
+ }
936
+ (B(o) ? o.map((l) => l && Ve(l)) : [o && Ve(o)]).forEach((l) => {
937
+ l !== void 0 && (t += (t.length ? "&" : "") + n, l != null && (t += "=" + l));
938
+ });
939
+ }
940
+ return t;
941
+ }
942
+ function ho(e) {
943
+ const t = {};
944
+ for (const n in e) {
945
+ const o = e[n];
946
+ o !== void 0 && (t[n] = B(o) ? o.map((r) => r == null ? null : "" + r) : o == null ? o : "" + o);
947
+ }
948
+ return t;
949
+ }
950
+ const po = Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : ""), ut = Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : ""), Ke = Symbol(process.env.NODE_ENV !== "production" ? "router" : ""), Vt = Symbol(process.env.NODE_ENV !== "production" ? "route location" : ""), je = Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
951
+ function re() {
952
+ let e = [];
953
+ function t(o) {
954
+ return e.push(o), () => {
955
+ const r = e.indexOf(o);
956
+ r > -1 && e.splice(r, 1);
957
+ };
958
+ }
959
+ function n() {
960
+ e = [];
961
+ }
962
+ return {
963
+ add: t,
964
+ list: () => e.slice(),
965
+ reset: n
966
+ };
967
+ }
968
+ function K(e, t, n, o, r, l = (u) => u()) {
969
+ const u = o && // name is defined if record is because of the function overload
970
+ (o.enterCallbacks[r] = o.enterCallbacks[r] || []);
971
+ return () => new Promise((d, a) => {
972
+ const p = (c) => {
973
+ c === !1 ? a(ne(4, {
974
+ from: n,
975
+ to: t
976
+ })) : c instanceof Error ? a(c) : Ee(c) ? a(ne(2, {
977
+ from: t,
978
+ to: c
979
+ })) : (u && // since enterCallbackArray is truthy, both record and name also are
980
+ o.enterCallbacks[r] === u && typeof c == "function" && u.push(c), d());
981
+ }, i = l(() => e.call(o && o.instances[r], t, n, process.env.NODE_ENV !== "production" ? mo(p, t, n) : p));
982
+ let s = Promise.resolve(i);
983
+ if (e.length < 3 && (s = s.then(p)), process.env.NODE_ENV !== "production" && e.length > 2) {
984
+ const c = `The "next" callback was never called inside of ${e.name ? '"' + e.name + '"' : ""}:
985
+ ${e.toString()}
986
+ . If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;
987
+ if (typeof i == "object" && "then" in i)
988
+ s = s.then((h) => p._called ? h : (S(c), Promise.reject(new Error("Invalid navigation guard"))));
989
+ else if (i !== void 0 && !p._called) {
990
+ S(c), a(new Error("Invalid navigation guard"));
991
+ return;
992
+ }
993
+ }
994
+ s.catch((c) => a(c));
995
+ });
996
+ }
997
+ function mo(e, t, n) {
998
+ let o = 0;
999
+ return function() {
1000
+ o++ === 1 && S(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`), e._called = !0, o === 1 && e.apply(null, arguments);
1001
+ };
1002
+ }
1003
+ function Ae(e, t, n, o, r = (l) => l()) {
1004
+ const l = [];
1005
+ for (const u of e) {
1006
+ process.env.NODE_ENV !== "production" && !u.components && !u.children.length && S(`Record with path "${u.path}" is either missing a "component(s)" or "children" property.`);
1007
+ for (const d in u.components) {
1008
+ let a = u.components[d];
1009
+ if (process.env.NODE_ENV !== "production") {
1010
+ if (!a || typeof a != "object" && typeof a != "function")
1011
+ throw S(`Component "${d}" in record with path "${u.path}" is not a valid component. Received "${String(a)}".`), new Error("Invalid route component");
1012
+ if ("then" in a) {
1013
+ S(`Component "${d}" in record with path "${u.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);
1014
+ const p = a;
1015
+ a = () => p;
1016
+ } else a.__asyncLoader && // warn only once per component
1017
+ !a.__warnedDefineAsync && (a.__warnedDefineAsync = !0, S(`Component "${d}" in record with path "${u.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`));
1018
+ }
1019
+ if (!(t !== "beforeRouteEnter" && !u.instances[d]))
1020
+ if (St(a)) {
1021
+ const i = (a.__vccOpts || a)[t];
1022
+ i && l.push(K(i, n, o, u, d, r));
1023
+ } else {
1024
+ let p = a();
1025
+ process.env.NODE_ENV !== "production" && !("catch" in p) && (S(`Component "${d}" in record with path "${u.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`), p = Promise.resolve(p)), l.push(() => p.then((i) => {
1026
+ if (!i)
1027
+ throw new Error(`Couldn't resolve component "${d}" at "${u.path}"`);
1028
+ const s = mn(i) ? i.default : i;
1029
+ u.mods[d] = i, u.components[d] = s;
1030
+ const h = (s.__vccOpts || s)[t];
1031
+ return h && K(h, n, o, u, d, r)();
1032
+ }));
1033
+ }
1034
+ }
1035
+ }
1036
+ return l;
1037
+ }
1038
+ function ft(e) {
1039
+ const t = ee(Ke), n = ee(Vt);
1040
+ let o = !1, r = null;
1041
+ const l = M(() => {
1042
+ const i = Y(e.to);
1043
+ return process.env.NODE_ENV !== "production" && (!o || i !== r) && (Ee(i) || (o ? S(`Invalid value for prop "to" in useLink()
1044
+ - to:`, i, `
1045
+ - previous to:`, r, `
1046
+ - props:`, e) : S(`Invalid value for prop "to" in useLink()
1047
+ - to:`, i, `
1048
+ - props:`, e)), r = i, o = !0), t.resolve(i);
1049
+ }), u = M(() => {
1050
+ const { matched: i } = l.value, { length: s } = i, c = i[s - 1], h = n.matched;
1051
+ if (!c || !h.length)
1052
+ return -1;
1053
+ const v = h.findIndex(q.bind(null, c));
1054
+ if (v > -1)
1055
+ return v;
1056
+ const E = dt(i[s - 2]);
1057
+ return (
1058
+ // we are dealing with nested routes
1059
+ s > 1 && // if the parent and matched route have the same path, this link is
1060
+ // referring to the empty child. Or we currently are on a different
1061
+ // child of the same parent
1062
+ dt(c) === E && // avoid comparing the child with its parent
1063
+ h[h.length - 1].path !== E ? h.findIndex(q.bind(null, i[s - 2])) : v
1064
+ );
1065
+ }), d = M(() => u.value > -1 && _o(n.params, l.value.params)), a = M(() => u.value > -1 && u.value === n.matched.length - 1 && Ct(n.params, l.value.params));
1066
+ function p(i = {}) {
1067
+ if (Eo(i)) {
1068
+ const s = t[Y(e.replace) ? "replace" : "push"](
1069
+ Y(e.to)
1070
+ // avoid uncaught errors are they are logged anyway
1071
+ ).catch(ie);
1072
+ return e.viewTransition && typeof document < "u" && "startViewTransition" in document && document.startViewTransition(() => s), s;
1073
+ }
1074
+ return Promise.resolve();
1075
+ }
1076
+ if (process.env.NODE_ENV !== "production" && z) {
1077
+ const i = fe();
1078
+ if (i) {
1079
+ const s = {
1080
+ route: l.value,
1081
+ isActive: d.value,
1082
+ isExactActive: a.value,
1083
+ error: null
1084
+ };
1085
+ i.__vrl_devtools = i.__vrl_devtools || [], i.__vrl_devtools.push(s), yt(() => {
1086
+ s.route = l.value, s.isActive = d.value, s.isExactActive = a.value, s.error = Ee(Y(e.to)) ? null : 'Invalid "to" value';
1087
+ }, { flush: "post" });
1088
+ }
1089
+ }
1090
+ return {
1091
+ route: l,
1092
+ href: M(() => l.value.href),
1093
+ isActive: d,
1094
+ isExactActive: a,
1095
+ navigate: p
1096
+ };
1097
+ }
1098
+ function go(e) {
1099
+ return e.length === 1 ? e[0] : e;
1100
+ }
1101
+ const vo = /* @__PURE__ */ Be({
1102
+ name: "RouterLink",
1103
+ compatConfig: { MODE: 3 },
1104
+ props: {
1105
+ to: {
1106
+ type: [String, Object],
1107
+ required: !0
1108
+ },
1109
+ replace: Boolean,
1110
+ activeClass: String,
1111
+ // inactiveClass: String,
1112
+ exactActiveClass: String,
1113
+ custom: Boolean,
1114
+ ariaCurrentValue: {
1115
+ type: String,
1116
+ default: "page"
1117
+ }
1118
+ },
1119
+ useLink: ft,
1120
+ setup(e, { slots: t }) {
1121
+ const n = Xt(ft(e)), { options: o } = ee(Ke), r = M(() => ({
1122
+ [ht(e.activeClass, o.linkActiveClass, "router-link-active")]: n.isActive,
1123
+ // [getLinkClass(
1124
+ // props.inactiveClass,
1125
+ // options.linkInactiveClass,
1126
+ // 'router-link-inactive'
1127
+ // )]: !link.isExactActive,
1128
+ [ht(e.exactActiveClass, o.linkExactActiveClass, "router-link-exact-active")]: n.isExactActive
1129
+ }));
1130
+ return () => {
1131
+ const l = t.default && go(t.default(n));
1132
+ return e.custom ? l : vt("a", {
1133
+ "aria-current": n.isExactActive ? e.ariaCurrentValue : null,
1134
+ href: n.href,
1135
+ // this would override user added attrs but Vue will still add
1136
+ // the listener, so we end up triggering both
1137
+ onClick: n.navigate,
1138
+ class: r.value
1139
+ }, l);
1140
+ };
1141
+ }
1142
+ }), yo = vo;
1143
+ function Eo(e) {
1144
+ if (!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) && !e.defaultPrevented && !(e.button !== void 0 && e.button !== 0)) {
1145
+ if (e.currentTarget && e.currentTarget.getAttribute) {
1146
+ const t = e.currentTarget.getAttribute("target");
1147
+ if (/\b_blank\b/i.test(t))
1148
+ return;
1149
+ }
1150
+ return e.preventDefault && e.preventDefault(), !0;
1151
+ }
1152
+ }
1153
+ function _o(e, t) {
1154
+ for (const n in t) {
1155
+ const o = t[n], r = e[n];
1156
+ if (typeof o == "string") {
1157
+ if (o !== r)
1158
+ return !1;
1159
+ } else if (!B(r) || r.length !== o.length || o.some((l, u) => l !== r[u]))
1160
+ return !1;
1161
+ }
1162
+ return !0;
1163
+ }
1164
+ function dt(e) {
1165
+ return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
1166
+ }
1167
+ const ht = (e, t, n) => e ?? t ?? n, wo = /* @__PURE__ */ Be({
1168
+ name: "RouterView",
1169
+ // #674 we manually inherit them
1170
+ inheritAttrs: !1,
1171
+ props: {
1172
+ name: {
1173
+ type: String,
1174
+ default: "default"
1175
+ },
1176
+ route: Object
1177
+ },
1178
+ // Better compat for @vue/compat users
1179
+ // https://github.com/vuejs/router/issues/1315
1180
+ compatConfig: { MODE: 3 },
1181
+ setup(e, { attrs: t, slots: n }) {
1182
+ process.env.NODE_ENV !== "production" && So();
1183
+ const o = ee(je), r = M(() => e.route || o.value), l = ee(ut, 0), u = M(() => {
1184
+ let p = Y(l);
1185
+ const { matched: i } = r.value;
1186
+ let s;
1187
+ for (; (s = i[p]) && !s.components; )
1188
+ p++;
1189
+ return p;
1190
+ }), d = M(() => r.value.matched[u.value]);
1191
+ Oe(ut, M(() => u.value + 1)), Oe(po, d), Oe(je, r);
1192
+ const a = _e();
1193
+ return oe(() => [a.value, d.value, e.name], ([p, i, s], [c, h, v]) => {
1194
+ i && (i.instances[s] = p, h && h !== i && p && p === c && (i.leaveGuards.size || (i.leaveGuards = h.leaveGuards), i.updateGuards.size || (i.updateGuards = h.updateGuards))), p && i && // if there is no instance but to and from are the same this might be
1195
+ // the first visit
1196
+ (!h || !q(i, h) || !c) && (i.enterCallbacks[s] || []).forEach((E) => E(p));
1197
+ }, { flush: "post" }), () => {
1198
+ const p = r.value, i = e.name, s = d.value, c = s && s.components[i];
1199
+ if (!c)
1200
+ return pt(n.default, { Component: c, route: p });
1201
+ const h = s.props[i], v = h ? h === !0 ? p.params : typeof h == "function" ? h(p) : h : null, w = vt(c, P({}, v, t, {
1202
+ onVnodeUnmounted: (N) => {
1203
+ N.component.isUnmounted && (s.instances[i] = null);
1204
+ },
1205
+ ref: a
1206
+ }));
1207
+ if (process.env.NODE_ENV !== "production" && z && w.ref) {
1208
+ const N = {
1209
+ depth: u.value,
1210
+ name: s.name,
1211
+ path: s.path,
1212
+ meta: s.meta
1213
+ };
1214
+ (B(w.ref) ? w.ref.map((_) => _.i) : [w.ref.i]).forEach((_) => {
1215
+ _.__vrv_devtools = N;
1216
+ });
1217
+ }
1218
+ return (
1219
+ // pass the vnode to the slot as a prop.
1220
+ // h and <component :is="..."> both accept vnodes
1221
+ pt(n.default, { Component: w, route: p }) || w
1222
+ );
1223
+ };
1224
+ }
1225
+ });
1226
+ function pt(e, t) {
1227
+ if (!e)
1228
+ return null;
1229
+ const n = e(t);
1230
+ return n.length === 1 ? n[0] : n;
1231
+ }
1232
+ const bo = wo;
1233
+ function So() {
1234
+ const e = fe(), t = e.parent && e.parent.type.name, n = e.parent && e.parent.subTree && e.parent.subTree.type;
1235
+ if (t && (t === "KeepAlive" || t.includes("Transition")) && typeof n == "object" && n.name === "RouterView") {
1236
+ const o = t === "KeepAlive" ? "keep-alive" : "transition";
1237
+ S(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
1238
+ Use slot props instead:
1239
+
1240
+ <router-view v-slot="{ Component }">
1241
+ <${o}>
1242
+ <component :is="Component" />
1243
+ </${o}>
1244
+ </router-view>`);
1245
+ }
1246
+ }
1247
+ function se(e, t) {
1248
+ const n = P({}, e, {
1249
+ // remove variables that can contain vue instances
1250
+ matched: e.matched.map((o) => Vo(o, ["instances", "children", "aliasOf"]))
1251
+ });
1252
+ return {
1253
+ _custom: {
1254
+ type: null,
1255
+ readOnly: !0,
1256
+ display: e.fullPath,
1257
+ tooltip: t,
1258
+ value: n
1259
+ }
1260
+ };
1261
+ }
1262
+ function me(e) {
1263
+ return {
1264
+ _custom: {
1265
+ display: e
1266
+ }
1267
+ };
1268
+ }
1269
+ let Ro = 0;
1270
+ function No(e, t, n) {
1271
+ if (t.__hasDevtools)
1272
+ return;
1273
+ t.__hasDevtools = !0;
1274
+ const o = Ro++;
1275
+ pn({
1276
+ id: "org.vuejs.router" + (o ? "." + o : ""),
1277
+ label: "Vue Router",
1278
+ packageName: "vue-router",
1279
+ homepage: "https://router.vuejs.org",
1280
+ logo: "https://router.vuejs.org/logo.png",
1281
+ componentStateTypes: ["Routing"],
1282
+ app: e
1283
+ }, (r) => {
1284
+ typeof r.now != "function" && console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), r.on.inspectComponent((i, s) => {
1285
+ i.instanceData && i.instanceData.state.push({
1286
+ type: "Routing",
1287
+ key: "$route",
1288
+ editable: !1,
1289
+ value: se(t.currentRoute.value, "Current Route")
1290
+ });
1291
+ }), r.on.visitComponentTree(({ treeNode: i, componentInstance: s }) => {
1292
+ if (s.__vrv_devtools) {
1293
+ const c = s.__vrv_devtools;
1294
+ i.tags.push({
1295
+ label: (c.name ? `${c.name.toString()}: ` : "") + c.path,
1296
+ textColor: 0,
1297
+ tooltip: "This component is rendered by &lt;router-view&gt;",
1298
+ backgroundColor: Dt
1299
+ });
1300
+ }
1301
+ B(s.__vrl_devtools) && (s.__devtoolsApi = r, s.__vrl_devtools.forEach((c) => {
1302
+ let h = c.route.path, v = jt, E = "", w = 0;
1303
+ c.error ? (h = c.error, v = Ao, w = $o) : c.isExactActive ? (v = Mt, E = "This is exactly active") : c.isActive && (v = It, E = "This link is active"), i.tags.push({
1304
+ label: h,
1305
+ textColor: w,
1306
+ tooltip: E,
1307
+ backgroundColor: v
1308
+ });
1309
+ }));
1310
+ }), oe(t.currentRoute, () => {
1311
+ a(), r.notifyComponentUpdate(), r.sendInspectorTree(d), r.sendInspectorState(d);
1312
+ });
1313
+ const l = "router:navigations:" + o;
1314
+ r.addTimelineLayer({
1315
+ id: l,
1316
+ label: `Router${o ? " " + o : ""} Navigations`,
1317
+ color: 4237508
1318
+ }), t.onError((i, s) => {
1319
+ r.addTimelineEvent({
1320
+ layerId: l,
1321
+ event: {
1322
+ title: "Error during Navigation",
1323
+ subtitle: s.fullPath,
1324
+ logType: "error",
1325
+ time: r.now(),
1326
+ data: { error: i },
1327
+ groupId: s.meta.__navigationId
1328
+ }
1329
+ });
1330
+ });
1331
+ let u = 0;
1332
+ t.beforeEach((i, s) => {
1333
+ const c = {
1334
+ guard: me("beforeEach"),
1335
+ from: se(s, "Current Location during this navigation"),
1336
+ to: se(i, "Target location")
1337
+ };
1338
+ Object.defineProperty(i.meta, "__navigationId", {
1339
+ value: u++
1340
+ }), r.addTimelineEvent({
1341
+ layerId: l,
1342
+ event: {
1343
+ time: r.now(),
1344
+ title: "Start of navigation",
1345
+ subtitle: i.fullPath,
1346
+ data: c,
1347
+ groupId: i.meta.__navigationId
1348
+ }
1349
+ });
1350
+ }), t.afterEach((i, s, c) => {
1351
+ const h = {
1352
+ guard: me("afterEach")
1353
+ };
1354
+ c ? (h.failure = {
1355
+ _custom: {
1356
+ type: Error,
1357
+ readOnly: !0,
1358
+ display: c ? c.message : "",
1359
+ tooltip: "Navigation Failure",
1360
+ value: c
1361
+ }
1362
+ }, h.status = me("❌")) : h.status = me("✅"), h.from = se(s, "Current Location during this navigation"), h.to = se(i, "Target location"), r.addTimelineEvent({
1363
+ layerId: l,
1364
+ event: {
1365
+ title: "End of navigation",
1366
+ subtitle: i.fullPath,
1367
+ time: r.now(),
1368
+ data: h,
1369
+ logType: c ? "warning" : "default",
1370
+ groupId: i.meta.__navigationId
1371
+ }
1372
+ });
1373
+ });
1374
+ const d = "router-inspector:" + o;
1375
+ r.addInspector({
1376
+ id: d,
1377
+ label: "Routes" + (o ? " " + o : ""),
1378
+ icon: "book",
1379
+ treeFilterPlaceholder: "Search routes"
1380
+ });
1381
+ function a() {
1382
+ if (!p)
1383
+ return;
1384
+ const i = p;
1385
+ let s = n.getRoutes().filter((c) => !c.parent || // these routes have a parent with no component which will not appear in the view
1386
+ // therefore we still need to include them
1387
+ !c.parent.record.components);
1388
+ s.forEach(Bt), i.filter && (s = s.filter((c) => (
1389
+ // save matches state based on the payload
1390
+ Le(c, i.filter.toLowerCase())
1391
+ ))), s.forEach((c) => Wt(c, t.currentRoute.value)), i.rootNodes = s.map(Lt);
1392
+ }
1393
+ let p;
1394
+ r.on.getInspectorTree((i) => {
1395
+ p = i, i.app === e && i.inspectorId === d && a();
1396
+ }), r.on.getInspectorState((i) => {
1397
+ if (i.app === e && i.inspectorId === d) {
1398
+ const c = n.getRoutes().find((h) => h.record.__vd_id === i.nodeId);
1399
+ c && (i.state = {
1400
+ options: Oo(c)
1401
+ });
1402
+ }
1403
+ }), r.sendInspectorTree(d), r.sendInspectorState(d);
1404
+ });
1405
+ }
1406
+ function ko(e) {
1407
+ return e.optional ? e.repeatable ? "*" : "?" : e.repeatable ? "+" : "";
1408
+ }
1409
+ function Oo(e) {
1410
+ const { record: t } = e, n = [
1411
+ { editable: !1, key: "path", value: t.path }
1412
+ ];
1413
+ return t.name != null && n.push({
1414
+ editable: !1,
1415
+ key: "name",
1416
+ value: t.name
1417
+ }), n.push({ editable: !1, key: "regexp", value: e.re }), e.keys.length && n.push({
1418
+ editable: !1,
1419
+ key: "keys",
1420
+ value: {
1421
+ _custom: {
1422
+ type: null,
1423
+ readOnly: !0,
1424
+ display: e.keys.map((o) => `${o.name}${ko(o)}`).join(" "),
1425
+ tooltip: "Param keys",
1426
+ value: e.keys
1427
+ }
1428
+ }
1429
+ }), t.redirect != null && n.push({
1430
+ editable: !1,
1431
+ key: "redirect",
1432
+ value: t.redirect
1433
+ }), e.alias.length && n.push({
1434
+ editable: !1,
1435
+ key: "aliases",
1436
+ value: e.alias.map((o) => o.record.path)
1437
+ }), Object.keys(e.record.meta).length && n.push({
1438
+ editable: !1,
1439
+ key: "meta",
1440
+ value: e.record.meta
1441
+ }), n.push({
1442
+ key: "score",
1443
+ editable: !1,
1444
+ value: {
1445
+ _custom: {
1446
+ type: null,
1447
+ readOnly: !0,
1448
+ display: e.score.map((o) => o.join(", ")).join(" | "),
1449
+ tooltip: "Score used to sort routes",
1450
+ value: e.score
1451
+ }
1452
+ }
1453
+ }), n;
1454
+ }
1455
+ const Dt = 15485081, It = 2450411, Mt = 8702998, Po = 2282478, jt = 16486972, Co = 6710886, Ao = 16704226, $o = 12131356;
1456
+ function Lt(e) {
1457
+ const t = [], { record: n } = e;
1458
+ n.name != null && t.push({
1459
+ label: String(n.name),
1460
+ textColor: 0,
1461
+ backgroundColor: Po
1462
+ }), n.aliasOf && t.push({
1463
+ label: "alias",
1464
+ textColor: 0,
1465
+ backgroundColor: jt
1466
+ }), e.__vd_match && t.push({
1467
+ label: "matches",
1468
+ textColor: 0,
1469
+ backgroundColor: Dt
1470
+ }), e.__vd_exactActive && t.push({
1471
+ label: "exact",
1472
+ textColor: 0,
1473
+ backgroundColor: Mt
1474
+ }), e.__vd_active && t.push({
1475
+ label: "active",
1476
+ textColor: 0,
1477
+ backgroundColor: It
1478
+ }), n.redirect && t.push({
1479
+ label: typeof n.redirect == "string" ? `redirect: ${n.redirect}` : "redirects",
1480
+ textColor: 16777215,
1481
+ backgroundColor: Co
1482
+ });
1483
+ let o = n.__vd_id;
1484
+ return o == null && (o = String(xo++), n.__vd_id = o), {
1485
+ id: o,
1486
+ label: n.path,
1487
+ tags: t,
1488
+ children: e.children.map(Lt)
1489
+ };
1490
+ }
1491
+ let xo = 0;
1492
+ const To = /^\/(.*)\/([a-z]*)$/;
1493
+ function Wt(e, t) {
1494
+ const n = t.matched.length && q(t.matched[t.matched.length - 1], e.record);
1495
+ e.__vd_exactActive = e.__vd_active = n, n || (e.__vd_active = t.matched.some((o) => q(o, e.record))), e.children.forEach((o) => Wt(o, t));
1496
+ }
1497
+ function Bt(e) {
1498
+ e.__vd_match = !1, e.children.forEach(Bt);
1499
+ }
1500
+ function Le(e, t) {
1501
+ const n = String(e.re).match(To);
1502
+ if (e.__vd_match = !1, !n || n.length < 3)
1503
+ return !1;
1504
+ if (new RegExp(n[1].replace(/\$$/, ""), n[2]).test(t))
1505
+ return e.children.forEach((u) => Le(u, t)), e.record.path !== "/" || t === "/" ? (e.__vd_match = e.re.test(t), !0) : !1;
1506
+ const r = e.record.path.toLowerCase(), l = te(r);
1507
+ return !t.startsWith("/") && (l.includes(t) || r.includes(t)) || l.startsWith(t) || r.startsWith(t) || e.record.name && String(e.record.name).includes(t) ? !0 : e.children.some((u) => Le(u, t));
1508
+ }
1509
+ function Vo(e, t) {
1510
+ const n = {};
1511
+ for (const o in e)
1512
+ t.includes(o) || (n[o] = e[o]);
1513
+ return n;
1514
+ }
1515
+ function Do(e) {
1516
+ const t = no(e.routes, e), n = e.parseQuery || fo, o = e.stringifyQuery || lt, r = e.history;
1517
+ if (process.env.NODE_ENV !== "production" && !r)
1518
+ throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');
1519
+ const l = re(), u = re(), d = re(), a = ce(G);
1520
+ let p = G;
1521
+ z && e.scrollBehavior && "scrollRestoration" in history && (history.scrollRestoration = "manual");
1522
+ const i = Pe.bind(null, (f) => "" + f), s = Pe.bind(null, Pn), c = (
1523
+ // @ts-expect-error: intentionally avoid the type check
1524
+ Pe.bind(null, te)
1525
+ );
1526
+ function h(f, g) {
1527
+ let m, y;
1528
+ return $t(f) ? (m = t.getRecordMatcher(f), process.env.NODE_ENV !== "production" && !m && S(`Parent route "${String(f)}" not found when adding child route`, g), y = g) : y = f, t.addRoute(y, m);
1529
+ }
1530
+ function v(f) {
1531
+ const g = t.getRecordMatcher(f);
1532
+ g ? t.removeRoute(g) : process.env.NODE_ENV !== "production" && S(`Cannot remove non-existent route "${String(f)}"`);
1533
+ }
1534
+ function E() {
1535
+ return t.getRoutes().map((f) => f.record);
1536
+ }
1537
+ function w(f) {
1538
+ return !!t.getRecordMatcher(f);
1539
+ }
1540
+ function N(f, g) {
1541
+ if (g = P({}, g || a.value), typeof f == "string") {
1542
+ const R = Ce(n, f, g.path), T = t.resolve({ path: R.path }, g), J = r.createHref(R.fullPath);
1543
+ return process.env.NODE_ENV !== "production" && (J.startsWith("//") ? S(`Location "${f}" resolved to "${J}". A resolved location cannot start with multiple slashes.`) : T.matched.length || S(`No match found for location with path "${f}"`)), P(R, T, {
1544
+ params: c(T.params),
1545
+ hash: te(R.hash),
1546
+ redirectedFrom: void 0,
1547
+ href: J
1548
+ });
1549
+ }
1550
+ if (process.env.NODE_ENV !== "production" && !Ee(f))
1551
+ return S(`router.resolve() was passed an invalid location. This will fail in production.
1552
+ - Location:`, f), N({});
1553
+ let m;
1554
+ if (f.path != null)
1555
+ process.env.NODE_ENV !== "production" && "params" in f && !("name" in f) && // @ts-expect-error: the type is never
1556
+ Object.keys(f.params).length && S(`Path "${f.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`), m = P({}, f, {
1557
+ path: Ce(n, f.path, g.path).path
1558
+ });
1559
+ else {
1560
+ const R = P({}, f.params);
1561
+ for (const T in R)
1562
+ R[T] == null && delete R[T];
1563
+ m = P({}, f, {
1564
+ params: s(R)
1565
+ }), g.params = s(g.params);
1566
+ }
1567
+ const y = t.resolve(m, g), C = f.hash || "";
1568
+ process.env.NODE_ENV !== "production" && C && !C.startsWith("#") && S(`A \`hash\` should always start with the character "#". Replace "${C}" with "#${C}".`), y.params = i(c(y.params));
1569
+ const V = $n(o, P({}, f, {
1570
+ hash: Nn(C),
1571
+ path: y.path
1572
+ })), O = r.createHref(V);
1573
+ return process.env.NODE_ENV !== "production" && (O.startsWith("//") ? S(`Location "${f}" resolved to "${O}". A resolved location cannot start with multiple slashes.`) : y.matched.length || S(`No match found for location with path "${f.path != null ? f.path : f}"`)), P({
1574
+ fullPath: V,
1575
+ // keep the hash encoded so fullPath is effectively path + encodedQuery +
1576
+ // hash
1577
+ hash: C,
1578
+ query: (
1579
+ // if the user is using a custom query lib like qs, we might have
1580
+ // nested objects, so we keep the query as is, meaning it can contain
1581
+ // numbers at `$route.query`, but at the point, the user will have to
1582
+ // use their own type anyway.
1583
+ // https://github.com/vuejs/router/issues/328#issuecomment-649481567
1584
+ o === lt ? ho(f.query) : f.query || {}
1585
+ )
1586
+ }, y, {
1587
+ redirectedFrom: void 0,
1588
+ href: O
1589
+ });
1590
+ }
1591
+ function b(f) {
1592
+ return typeof f == "string" ? Ce(n, f, a.value.path) : P({}, f);
1593
+ }
1594
+ function _(f, g) {
1595
+ if (p !== f)
1596
+ return ne(8, {
1597
+ from: g,
1598
+ to: f
1599
+ });
1600
+ }
1601
+ function A(f) {
1602
+ return I(f);
1603
+ }
1604
+ function D(f) {
1605
+ return A(P(b(f), { replace: !0 }));
1606
+ }
1607
+ function L(f) {
1608
+ const g = f.matched[f.matched.length - 1];
1609
+ if (g && g.redirect) {
1610
+ const { redirect: m } = g;
1611
+ let y = typeof m == "function" ? m(f) : m;
1612
+ if (typeof y == "string" && (y = y.includes("?") || y.includes("#") ? y = b(y) : (
1613
+ // force empty params
1614
+ { path: y }
1615
+ ), y.params = {}), process.env.NODE_ENV !== "production" && y.path == null && !("name" in y))
1616
+ throw S(`Invalid redirect found:
1617
+ ${JSON.stringify(y, null, 2)}
1618
+ when navigating to "${f.fullPath}". A redirect must contain a name or path. This will break in production.`), new Error("Invalid redirect");
1619
+ return P({
1620
+ query: f.query,
1621
+ hash: f.hash,
1622
+ // avoid transferring params if the redirect has a path
1623
+ params: y.path != null ? {} : f.params
1624
+ }, y);
1625
+ }
1626
+ }
1627
+ function I(f, g) {
1628
+ const m = p = N(f), y = a.value, C = f.state, V = f.force, O = f.replace === !0, R = L(m);
1629
+ if (R)
1630
+ return I(
1631
+ P(b(R), {
1632
+ state: typeof R == "object" ? P({}, C, R.state) : C,
1633
+ force: V,
1634
+ replace: O
1635
+ }),
1636
+ // keep original redirectedFrom if it exists
1637
+ g || m
1638
+ );
1639
+ const T = m;
1640
+ T.redirectedFrom = g;
1641
+ let J;
1642
+ return !V && Xe(o, y, m) && (J = ne(16, { to: T, from: y }), qe(
1643
+ y,
1644
+ y,
1645
+ // this is a push, the only way for it to be triggered from a
1646
+ // history.listen is with a redirect, which makes it become a push
1647
+ !0,
1648
+ // This cannot be the first navigation because the initial location
1649
+ // cannot be manually navigated to
1650
+ !1
1651
+ )), (J ? Promise.resolve(J) : U(T, y)).catch((j) => H(j) ? (
1652
+ // navigation redirects still mark the router as ready
1653
+ H(
1654
+ j,
1655
+ 2
1656
+ /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
1657
+ ) ? j : Re(j)
1658
+ ) : (
1659
+ // reject any unknown error
1660
+ Se(j, T, y)
1661
+ )).then((j) => {
1662
+ if (j) {
1663
+ if (H(
1664
+ j,
1665
+ 2
1666
+ /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
1667
+ ))
1668
+ return process.env.NODE_ENV !== "production" && // we are redirecting to the same location we were already at
1669
+ Xe(o, N(j.to), T) && // and we have done it a couple of times
1670
+ g && // @ts-expect-error: added only in dev
1671
+ (g._count = g._count ? (
1672
+ // @ts-expect-error
1673
+ g._count + 1
1674
+ ) : 1) > 30 ? (S(`Detected a possibly infinite redirection in a navigation guard when going from "${y.fullPath}" to "${T.fullPath}". Aborting to avoid a Stack Overflow.
1675
+ Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`), Promise.reject(new Error("Infinite redirect in navigation guard"))) : I(
1676
+ // keep options
1677
+ P({
1678
+ // preserve an existing replacement but allow the redirect to override it
1679
+ replace: O
1680
+ }, b(j.to), {
1681
+ state: typeof j.to == "object" ? P({}, C, j.to.state) : C,
1682
+ force: V
1683
+ }),
1684
+ // preserve the original redirectedFrom if any
1685
+ g || T
1686
+ );
1687
+ } else
1688
+ j = $(T, y, !0, O, C);
1689
+ return k(T, y, j), j;
1690
+ });
1691
+ }
1692
+ function Q(f, g) {
1693
+ const m = _(f, g);
1694
+ return m ? Promise.reject(m) : Promise.resolve();
1695
+ }
1696
+ function W(f) {
1697
+ const g = he.values().next().value;
1698
+ return g && typeof g.runWithContext == "function" ? g.runWithContext(f) : f();
1699
+ }
1700
+ function U(f, g) {
1701
+ let m;
1702
+ const [y, C, V] = Io(f, g);
1703
+ m = Ae(y.reverse(), "beforeRouteLeave", f, g);
1704
+ for (const R of y)
1705
+ R.leaveGuards.forEach((T) => {
1706
+ m.push(K(T, f, g));
1707
+ });
1708
+ const O = Q.bind(null, f, g);
1709
+ return m.push(O), X(m).then(() => {
1710
+ m = [];
1711
+ for (const R of l.list())
1712
+ m.push(K(R, f, g));
1713
+ return m.push(O), X(m);
1714
+ }).then(() => {
1715
+ m = Ae(C, "beforeRouteUpdate", f, g);
1716
+ for (const R of C)
1717
+ R.updateGuards.forEach((T) => {
1718
+ m.push(K(T, f, g));
1719
+ });
1720
+ return m.push(O), X(m);
1721
+ }).then(() => {
1722
+ m = [];
1723
+ for (const R of V)
1724
+ if (R.beforeEnter)
1725
+ if (B(R.beforeEnter))
1726
+ for (const T of R.beforeEnter)
1727
+ m.push(K(T, f, g));
1728
+ else
1729
+ m.push(K(R.beforeEnter, f, g));
1730
+ return m.push(O), X(m);
1731
+ }).then(() => (f.matched.forEach((R) => R.enterCallbacks = {}), m = Ae(V, "beforeRouteEnter", f, g, W), m.push(O), X(m))).then(() => {
1732
+ m = [];
1733
+ for (const R of u.list())
1734
+ m.push(K(R, f, g));
1735
+ return m.push(O), X(m);
1736
+ }).catch((R) => H(
1737
+ R,
1738
+ 8
1739
+ /* ErrorTypes.NAVIGATION_CANCELLED */
1740
+ ) ? R : Promise.reject(R));
1741
+ }
1742
+ function k(f, g, m) {
1743
+ d.list().forEach((y) => W(() => y(f, g, m)));
1744
+ }
1745
+ function $(f, g, m, y, C) {
1746
+ const V = _(f, g);
1747
+ if (V)
1748
+ return V;
1749
+ const O = g === G, R = z ? history.state : {};
1750
+ m && (y || O ? r.replace(f.fullPath, P({
1751
+ scroll: O && R && R.scroll
1752
+ }, C)) : r.push(f.fullPath, C)), a.value = f, qe(f, g, m, O), Re();
1753
+ }
1754
+ let x;
1755
+ function Qt() {
1756
+ x || (x = r.listen((f, g, m) => {
1757
+ if (!Qe.listening)
1758
+ return;
1759
+ const y = N(f), C = L(y);
1760
+ if (C) {
1761
+ I(P(C, { replace: !0, force: !0 }), y).catch(ie);
1762
+ return;
1763
+ }
1764
+ p = y;
1765
+ const V = a.value;
1766
+ z && Ln(et(V.fullPath, m.delta), we()), U(y, V).catch((O) => H(
1767
+ O,
1768
+ 12
1769
+ /* ErrorTypes.NAVIGATION_CANCELLED */
1770
+ ) ? O : H(
1771
+ O,
1772
+ 2
1773
+ /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
1774
+ ) ? (I(
1775
+ P(b(O.to), {
1776
+ force: !0
1777
+ }),
1778
+ y
1779
+ // avoid an uncaught rejection, let push call triggerError
1780
+ ).then((R) => {
1781
+ H(
1782
+ R,
1783
+ 20
1784
+ /* ErrorTypes.NAVIGATION_DUPLICATED */
1785
+ ) && !m.delta && m.type === le.pop && r.go(-1, !1);
1786
+ }).catch(ie), Promise.reject()) : (m.delta && r.go(-m.delta, !1), Se(O, y, V))).then((O) => {
1787
+ O = O || $(
1788
+ // after navigation, all matched components are resolved
1789
+ y,
1790
+ V,
1791
+ !1
1792
+ ), O && (m.delta && // a new navigation has been triggered, so we do not want to revert, that will change the current history
1793
+ // entry while a different route is displayed
1794
+ !H(
1795
+ O,
1796
+ 8
1797
+ /* ErrorTypes.NAVIGATION_CANCELLED */
1798
+ ) ? r.go(-m.delta, !1) : m.type === le.pop && H(
1799
+ O,
1800
+ 20
1801
+ /* ErrorTypes.NAVIGATION_DUPLICATED */
1802
+ ) && r.go(-1, !1)), k(y, V, O);
1803
+ }).catch(ie);
1804
+ }));
1805
+ }
1806
+ let be = re(), Fe = re(), de;
1807
+ function Se(f, g, m) {
1808
+ Re(f);
1809
+ const y = Fe.list();
1810
+ return y.length ? y.forEach((C) => C(f, g, m)) : (process.env.NODE_ENV !== "production" && S("uncaught error during route navigation:"), console.error(f)), Promise.reject(f);
1811
+ }
1812
+ function Jt() {
1813
+ return de && a.value !== G ? Promise.resolve() : new Promise((f, g) => {
1814
+ be.add([f, g]);
1815
+ });
1816
+ }
1817
+ function Re(f) {
1818
+ return de || (de = !f, Qt(), be.list().forEach(([g, m]) => f ? m(f) : g()), be.reset()), f;
1819
+ }
1820
+ function qe(f, g, m, y) {
1821
+ const { scrollBehavior: C } = e;
1822
+ if (!z || !C)
1823
+ return Promise.resolve();
1824
+ const V = !m && Wn(et(f.fullPath, 0)) || (y || !m) && history.state && history.state.scroll || null;
1825
+ return Ue().then(() => C(f, g, V)).then((O) => O && jn(O)).catch((O) => Se(O, f, g));
1826
+ }
1827
+ const Ne = (f) => r.go(f);
1828
+ let ke;
1829
+ const he = /* @__PURE__ */ new Set(), Qe = {
1830
+ currentRoute: a,
1831
+ listening: !0,
1832
+ addRoute: h,
1833
+ removeRoute: v,
1834
+ clearRoutes: t.clearRoutes,
1835
+ hasRoute: w,
1836
+ getRoutes: E,
1837
+ resolve: N,
1838
+ options: e,
1839
+ push: A,
1840
+ replace: D,
1841
+ go: Ne,
1842
+ back: () => Ne(-1),
1843
+ forward: () => Ne(1),
1844
+ beforeEach: l.add,
1845
+ beforeResolve: u.add,
1846
+ afterEach: d.add,
1847
+ onError: Fe.add,
1848
+ isReady: Jt,
1849
+ install(f) {
1850
+ const g = this;
1851
+ f.component("RouterLink", yo), f.component("RouterView", bo), f.config.globalProperties.$router = g, Object.defineProperty(f.config.globalProperties, "$route", {
1852
+ enumerable: !0,
1853
+ get: () => Y(a)
1854
+ }), z && // used for the initial navigation client side to avoid pushing
1855
+ // multiple times when the router is used in multiple apps
1856
+ !ke && a.value === G && (ke = !0, A(r.location).catch((C) => {
1857
+ process.env.NODE_ENV !== "production" && S("Unexpected error when starting the router:", C);
1858
+ }));
1859
+ const m = {};
1860
+ for (const C in G)
1861
+ Object.defineProperty(m, C, {
1862
+ get: () => a.value[C],
1863
+ enumerable: !0
1864
+ });
1865
+ f.provide(Ke, g), f.provide(Vt, Yt(m)), f.provide(je, a);
1866
+ const y = f.unmount;
1867
+ he.add(f), f.unmount = function() {
1868
+ he.delete(f), he.size < 1 && (p = G, x && x(), x = null, a.value = G, ke = !1, de = !1), y();
1869
+ }, process.env.NODE_ENV !== "production" && z && No(f, g, t);
1870
+ }
1871
+ };
1872
+ function X(f) {
1873
+ return f.reduce((g, m) => g.then(() => W(m)), Promise.resolve());
1874
+ }
1875
+ return Qe;
1876
+ }
1877
+ function Io(e, t) {
1878
+ const n = [], o = [], r = [], l = Math.max(t.matched.length, e.matched.length);
1879
+ for (let u = 0; u < l; u++) {
1880
+ const d = t.matched[u];
1881
+ d && (e.matched.find((p) => q(p, d)) ? o.push(d) : n.push(d));
1882
+ const a = e.matched[u];
1883
+ a && (t.matched.find((p) => q(p, a)) || r.push(a));
1884
+ }
1885
+ return [n, o, r];
1886
+ }
1887
+ const Ut = (e, t) => {
1888
+ const n = e.__vccOpts || e;
1889
+ for (const [o, r] of t)
1890
+ n[o] = r;
1891
+ return n;
1892
+ }, Mo = {}, jo = { class: "flex items-center justify-between" };
1893
+ function Lo(e, t) {
1894
+ return ze(), He("div", jo, t[0] || (t[0] = [
1895
+ ye("div", { class: "flex items-center gap-2" }, [
1896
+ ye("img", {
1897
+ width: "40",
1898
+ src: "https://nuxterror.com/logo.svg",
1899
+ alt: ""
1900
+ }),
1901
+ ye("h6", { class: "text-xl font-bold" }, "Nuxt Charts")
1902
+ ], -1)
1903
+ ]));
1904
+ }
1905
+ const Wo = /* @__PURE__ */ Ut(Mo, [["render", Lo]]), Bo = {}, Uo = { class: "rounded font-medium inline-flex items-center focus:outline-hidden disabled:cursor-not-allowed aria-disabled:cursor-not-allowed disabled:opacity-75 aria-disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-background bg-primary hover:bg-primary/75 disabled:bg-(--ui-primary) aria-disabled:bg-(--ui-primary) focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-(--ui-primary)" };
1906
+ function Ho(e, t) {
1907
+ return ze(), He("button", Uo, [
1908
+ Zt(e.$slots, "default")
1909
+ ]);
1910
+ }
1911
+ const zo = /* @__PURE__ */ Ut(Bo, [["render", Ho]]);
1912
+ function Go(e) {
1913
+ return nn() ? (on(e), !0) : !1;
1914
+ }
1915
+ const $e = /* @__PURE__ */ new WeakMap(), Ko = (...e) => {
1916
+ var t;
1917
+ const n = e[0], o = (t = fe()) == null ? void 0 : t.proxy;
1918
+ if (o == null && !wt())
1919
+ throw new Error("injectLocal must be called in setup");
1920
+ return o && $e.has(o) && n in $e.get(o) ? $e.get(o)[n] : ee(...e);
1921
+ }, Fo = typeof window < "u" && typeof document < "u";
1922
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
1923
+ const qo = Object.prototype.toString, Qo = (e) => qo.call(e) === "[object Object]", Jo = () => {
1924
+ };
1925
+ function Yo(e, t) {
1926
+ function n(...o) {
1927
+ return new Promise((r, l) => {
1928
+ Promise.resolve(e(() => t.apply(this, o), { fn: t, thisArg: this, args: o })).then(r).catch(l);
1929
+ });
1930
+ }
1931
+ return n;
1932
+ }
1933
+ const Ht = (e) => e();
1934
+ function Xo(e = Ht, t = {}) {
1935
+ const {
1936
+ initialState: n = "active"
1937
+ } = t, o = zt(n === "active");
1938
+ function r() {
1939
+ o.value = !1;
1940
+ }
1941
+ function l() {
1942
+ o.value = !0;
1943
+ }
1944
+ const u = (...d) => {
1945
+ o.value && e(...d);
1946
+ };
1947
+ return { isActive: Et(o), pause: r, resume: l, eventFilter: u };
1948
+ }
1949
+ function mt(e) {
1950
+ return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
1951
+ }
1952
+ function Zo(e) {
1953
+ return fe();
1954
+ }
1955
+ function xe(e) {
1956
+ return Array.isArray(e) ? e : [e];
1957
+ }
1958
+ function zt(...e) {
1959
+ if (e.length !== 1)
1960
+ return en(...e);
1961
+ const t = e[0];
1962
+ return typeof t == "function" ? Et(tn(() => ({ get: t, set: Jo }))) : _e(t);
1963
+ }
1964
+ function er(e, t, n = {}) {
1965
+ const {
1966
+ eventFilter: o = Ht,
1967
+ ...r
1968
+ } = n;
1969
+ return oe(
1970
+ e,
1971
+ Yo(
1972
+ o,
1973
+ t
1974
+ ),
1975
+ r
1976
+ );
1977
+ }
1978
+ function tr(e, t, n = {}) {
1979
+ const {
1980
+ eventFilter: o,
1981
+ initialState: r = "active",
1982
+ ...l
1983
+ } = n, { eventFilter: u, pause: d, resume: a, isActive: p } = Xo(o, { initialState: r });
1984
+ return { stop: er(
1985
+ e,
1986
+ t,
1987
+ {
1988
+ ...l,
1989
+ eventFilter: u
1990
+ }
1991
+ ), pause: d, resume: a, isActive: p };
1992
+ }
1993
+ function Gt(e, t = !0, n) {
1994
+ Zo() ? _t(e, n) : t ? e() : Ue(e);
1995
+ }
1996
+ function nr(e, t, n) {
1997
+ return oe(
1998
+ e,
1999
+ t,
2000
+ {
2001
+ ...n,
2002
+ immediate: !0
2003
+ }
2004
+ );
2005
+ }
2006
+ const ue = Fo ? window : void 0;
2007
+ function Kt(e) {
2008
+ var t;
2009
+ const n = F(e);
2010
+ return (t = n == null ? void 0 : n.$el) != null ? t : n;
2011
+ }
2012
+ function We(...e) {
2013
+ const t = [], n = () => {
2014
+ t.forEach((d) => d()), t.length = 0;
2015
+ }, o = (d, a, p, i) => (d.addEventListener(a, p, i), () => d.removeEventListener(a, p, i)), r = M(() => {
2016
+ const d = xe(F(e[0])).filter((a) => a != null);
2017
+ return d.every((a) => typeof a != "string") ? d : void 0;
2018
+ }), l = nr(
2019
+ () => {
2020
+ var d, a;
2021
+ return [
2022
+ (a = (d = r.value) == null ? void 0 : d.map((p) => Kt(p))) != null ? a : [ue].filter((p) => p != null),
2023
+ xe(F(r.value ? e[1] : e[0])),
2024
+ xe(Y(r.value ? e[2] : e[1])),
2025
+ // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
2026
+ F(r.value ? e[3] : e[2])
2027
+ ];
2028
+ },
2029
+ ([d, a, p, i]) => {
2030
+ if (n(), !(d != null && d.length) || !(a != null && a.length) || !(p != null && p.length))
2031
+ return;
2032
+ const s = Qo(i) ? { ...i } : i;
2033
+ t.push(
2034
+ ...d.flatMap(
2035
+ (c) => a.flatMap(
2036
+ (h) => p.map((v) => o(c, h, v, s))
2037
+ )
2038
+ )
2039
+ );
2040
+ },
2041
+ { flush: "post" }
2042
+ ), u = () => {
2043
+ l(), n();
2044
+ };
2045
+ return Go(n), u;
2046
+ }
2047
+ function or() {
2048
+ const e = ce(!1), t = fe();
2049
+ return t && _t(() => {
2050
+ e.value = !0;
2051
+ }, t), e;
2052
+ }
2053
+ function rr(e) {
2054
+ const t = or();
2055
+ return M(() => (t.value, !!e()));
2056
+ }
2057
+ const sr = Symbol("vueuse-ssr-width");
2058
+ function ir() {
2059
+ const e = wt() ? Ko(sr, null) : null;
2060
+ return typeof e == "number" ? e : void 0;
2061
+ }
2062
+ function ar(e, t = {}) {
2063
+ const { window: n = ue, ssrWidth: o = ir() } = t, r = rr(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), l = _e(typeof o == "number"), u = ce(), d = ce(!1), a = (p) => {
2064
+ d.value = p.matches;
2065
+ };
2066
+ return yt(() => {
2067
+ if (l.value) {
2068
+ l.value = !r.value;
2069
+ const p = F(e).split(",");
2070
+ d.value = p.some((i) => {
2071
+ const s = i.includes("not all"), c = i.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), h = i.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
2072
+ let v = !!(c || h);
2073
+ return c && v && (v = o >= mt(c[1])), h && v && (v = o <= mt(h[1])), s ? !v : v;
2074
+ });
2075
+ return;
2076
+ }
2077
+ r.value && (u.value = n.matchMedia(F(e)), d.value = u.value.matches);
2078
+ }), We(u, "change", a, { passive: !0 }), M(() => d.value);
2079
+ }
2080
+ const ge = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ve = "__vueuse_ssr_handlers__", cr = /* @__PURE__ */ lr();
2081
+ function lr() {
2082
+ return ve in ge || (ge[ve] = ge[ve] || {}), ge[ve];
2083
+ }
2084
+ function Ft(e, t) {
2085
+ return cr[e] || t;
2086
+ }
2087
+ function ur(e) {
2088
+ return ar("(prefers-color-scheme: dark)", e);
2089
+ }
2090
+ function fr(e) {
2091
+ return e == null ? "any" : e instanceof Set ? "set" : e instanceof Map ? "map" : e instanceof Date ? "date" : typeof e == "boolean" ? "boolean" : typeof e == "string" ? "string" : typeof e == "object" ? "object" : Number.isNaN(e) ? "any" : "number";
2092
+ }
2093
+ const dr = {
2094
+ boolean: {
2095
+ read: (e) => e === "true",
2096
+ write: (e) => String(e)
2097
+ },
2098
+ object: {
2099
+ read: (e) => JSON.parse(e),
2100
+ write: (e) => JSON.stringify(e)
2101
+ },
2102
+ number: {
2103
+ read: (e) => Number.parseFloat(e),
2104
+ write: (e) => String(e)
2105
+ },
2106
+ any: {
2107
+ read: (e) => e,
2108
+ write: (e) => String(e)
2109
+ },
2110
+ string: {
2111
+ read: (e) => e,
2112
+ write: (e) => String(e)
2113
+ },
2114
+ map: {
2115
+ read: (e) => new Map(JSON.parse(e)),
2116
+ write: (e) => JSON.stringify(Array.from(e.entries()))
2117
+ },
2118
+ set: {
2119
+ read: (e) => new Set(JSON.parse(e)),
2120
+ write: (e) => JSON.stringify(Array.from(e))
2121
+ },
2122
+ date: {
2123
+ read: (e) => new Date(e),
2124
+ write: (e) => e.toISOString()
2125
+ }
2126
+ }, gt = "vueuse-storage";
2127
+ function hr(e, t, n, o = {}) {
2128
+ var r;
2129
+ const {
2130
+ flush: l = "pre",
2131
+ deep: u = !0,
2132
+ listenToStorageChanges: d = !0,
2133
+ writeDefaults: a = !0,
2134
+ mergeDefaults: p = !1,
2135
+ shallow: i,
2136
+ window: s = ue,
2137
+ eventFilter: c,
2138
+ onError: h = (k) => {
2139
+ console.error(k);
2140
+ },
2141
+ initOnMounted: v
2142
+ } = o, E = (i ? ce : _e)(typeof t == "function" ? t() : t), w = M(() => F(e));
2143
+ if (!n)
2144
+ try {
2145
+ n = Ft("getDefaultStorage", () => {
2146
+ var k;
2147
+ return (k = ue) == null ? void 0 : k.localStorage;
2148
+ })();
2149
+ } catch (k) {
2150
+ h(k);
2151
+ }
2152
+ if (!n)
2153
+ return E;
2154
+ const N = F(t), b = fr(N), _ = (r = o.serializer) != null ? r : dr[b], { pause: A, resume: D } = tr(
2155
+ E,
2156
+ () => I(E.value),
2157
+ { flush: l, deep: u, eventFilter: c }
2158
+ );
2159
+ oe(w, () => W(), { flush: l }), s && d && Gt(() => {
2160
+ n instanceof Storage ? We(s, "storage", W, { passive: !0 }) : We(s, gt, U), v && W();
2161
+ }), v || W();
2162
+ function L(k, $) {
2163
+ if (s) {
2164
+ const x = {
2165
+ key: w.value,
2166
+ oldValue: k,
2167
+ newValue: $,
2168
+ storageArea: n
2169
+ };
2170
+ s.dispatchEvent(n instanceof Storage ? new StorageEvent("storage", x) : new CustomEvent(gt, {
2171
+ detail: x
2172
+ }));
2173
+ }
2174
+ }
2175
+ function I(k) {
2176
+ try {
2177
+ const $ = n.getItem(w.value);
2178
+ if (k == null)
2179
+ L($, null), n.removeItem(w.value);
2180
+ else {
2181
+ const x = _.write(k);
2182
+ $ !== x && (n.setItem(w.value, x), L($, x));
2183
+ }
2184
+ } catch ($) {
2185
+ h($);
2186
+ }
2187
+ }
2188
+ function Q(k) {
2189
+ const $ = k ? k.newValue : n.getItem(w.value);
2190
+ if ($ == null)
2191
+ return a && N != null && n.setItem(w.value, _.write(N)), N;
2192
+ if (!k && p) {
2193
+ const x = _.read($);
2194
+ return typeof p == "function" ? p(x, N) : b === "object" && !Array.isArray(x) ? { ...N, ...x } : x;
2195
+ } else return typeof $ != "string" ? $ : _.read($);
2196
+ }
2197
+ function W(k) {
2198
+ if (!(k && k.storageArea !== n)) {
2199
+ if (k && k.key == null) {
2200
+ E.value = N;
2201
+ return;
2202
+ }
2203
+ if (!(k && k.key !== w.value)) {
2204
+ A();
2205
+ try {
2206
+ (k == null ? void 0 : k.newValue) !== _.write(E.value) && (E.value = Q(k));
2207
+ } catch ($) {
2208
+ h($);
2209
+ } finally {
2210
+ k ? Ue(D) : D();
2211
+ }
2212
+ }
2213
+ }
2214
+ }
2215
+ function U(k) {
2216
+ W(k.detail);
2217
+ }
2218
+ return E;
2219
+ }
2220
+ const pr = "*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";
2221
+ function mr(e = {}) {
2222
+ const {
2223
+ selector: t = "html",
2224
+ attribute: n = "class",
2225
+ initialValue: o = "auto",
2226
+ window: r = ue,
2227
+ storage: l,
2228
+ storageKey: u = "vueuse-color-scheme",
2229
+ listenToStorageChanges: d = !0,
2230
+ storageRef: a,
2231
+ emitAuto: p,
2232
+ disableTransition: i = !0
2233
+ } = e, s = {
2234
+ auto: "",
2235
+ light: "light",
2236
+ dark: "dark",
2237
+ ...e.modes || {}
2238
+ }, c = ur({ window: r }), h = M(() => c.value ? "dark" : "light"), v = a || (u == null ? zt(o) : hr(u, o, l, { window: r, listenToStorageChanges: d })), E = M(() => v.value === "auto" ? h.value : v.value), w = Ft(
2239
+ "updateHTMLAttrs",
2240
+ (A, D, L) => {
2241
+ const I = typeof A == "string" ? r == null ? void 0 : r.document.querySelector(A) : Kt(A);
2242
+ if (!I)
2243
+ return;
2244
+ const Q = /* @__PURE__ */ new Set(), W = /* @__PURE__ */ new Set();
2245
+ let U = null;
2246
+ if (D === "class") {
2247
+ const $ = L.split(/\s/g);
2248
+ Object.values(s).flatMap((x) => (x || "").split(/\s/g)).filter(Boolean).forEach((x) => {
2249
+ $.includes(x) ? Q.add(x) : W.add(x);
2250
+ });
2251
+ } else
2252
+ U = { key: D, value: L };
2253
+ if (Q.size === 0 && W.size === 0 && U === null)
2254
+ return;
2255
+ let k;
2256
+ i && (k = r.document.createElement("style"), k.appendChild(document.createTextNode(pr)), r.document.head.appendChild(k));
2257
+ for (const $ of Q)
2258
+ I.classList.add($);
2259
+ for (const $ of W)
2260
+ I.classList.remove($);
2261
+ U && I.setAttribute(U.key, U.value), i && (r.getComputedStyle(k).opacity, document.head.removeChild(k));
2262
+ }
2263
+ );
2264
+ function N(A) {
2265
+ var D;
2266
+ w(t, n, (D = s[A]) != null ? D : A);
2267
+ }
2268
+ function b(A) {
2269
+ e.onChanged ? e.onChanged(A, N) : N(A);
2270
+ }
2271
+ oe(E, b, { flush: "post", immediate: !0 }), Gt(() => b(E.value));
2272
+ const _ = M({
2273
+ get() {
2274
+ return p ? v.value : E.value;
2275
+ },
2276
+ set(A) {
2277
+ v.value = A;
2278
+ }
2279
+ });
2280
+ return Object.assign(_, { store: v, system: h, state: E });
2281
+ }
2282
+ const gr = { class: "max-w-7xl mx-auto py-4 flex items-center justify-between" }, vr = /* @__PURE__ */ Be({
2283
+ __name: "App",
2284
+ setup(e) {
2285
+ const t = mr(), n = M(() => t.value === "dark");
2286
+ function o() {
2287
+ t.value = n.value ? "light" : "dark";
2288
+ }
2289
+ return (r, l) => {
2290
+ const u = Je("RouterLink"), d = Je("RouterView");
2291
+ return ze(), He("div", null, [
2292
+ ye("div", gr, [
2293
+ pe(u, { to: "/" }, {
2294
+ default: rn(() => [
2295
+ pe(Wo)
2296
+ ]),
2297
+ _: 1
2298
+ }),
2299
+ pe(zo, {
2300
+ icon: n.value ? "i-heroicons-moon-20-solid" : "i-heroicons-sun-20-solid",
2301
+ color: "gray",
2302
+ variant: "ghost",
2303
+ "aria-label": "Theme",
2304
+ onClick: o,
2305
+ class: "cursor-pointer"
2306
+ }, null, 8, ["icon"])
2307
+ ]),
2308
+ pe(d)
2309
+ ]);
2310
+ };
2311
+ }
2312
+ }), qt = sn(vr), yr = Do({
2313
+ routes: [
2314
+ {
2315
+ path: "/",
2316
+ name: "Home",
2317
+ component: () => import("./Homepage-DIu5Y175.js")
2318
+ }
2319
+ // {
2320
+ // path: '/overview',
2321
+ // name: 'Overview',
2322
+ // component: () => import('./components/Overview.vue') // Replace with your OverviewPage component path
2323
+ // }
2324
+ ],
2325
+ history: zn()
2326
+ });
2327
+ qt.use(yr);
2328
+ qt.mount("#app");
2329
+ const _r = {};
2330
+ export {
2331
+ zo as B,
2332
+ Wo as L,
2333
+ _r as i
2334
+ };