@stonecrop/desktop 0.2.21 → 0.2.23

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/desktop.js CHANGED
@@ -1,5 +1,5 @@
1
- import { defineComponent as Z, ref as T, onMounted as zt, openBlock as x, createElementBlock as A, normalizeClass as uo, createElementVNode as D, Fragment as Oe, renderList as Pe, toDisplayString as le, createCommentVNode as ge, withDirectives as ze, vShow as qt, pushScopeId as fo, popScopeId as po, computed as L, createBlock as Se, resolveDynamicComponent as Kt, mergeProps as Jt, effectScope as ho, markRaw as ke, inject as ne, onBeforeMount as _r, shallowRef as br, toRaw as gt, hasInjectionContext as Er, getCurrentInstance as Yt, unref as E, shallowReactive as kr, watch as J, reactive as Ee, isRef as qe, isReactive as Qt, toRef as it, nextTick as Ke, getCurrentScope as Xt, onScopeDispose as Zt, h as mo, provide as ct, toRefs as kn, watchEffect as Sr, readonly as Ir, customRef as Or, normalizeStyle as ce, renderSlot as me, createVNode as pt, withCtx as ht, useCssVars as vo, createTextVNode as go, onBeforeUnmount as Pr, resolveComponent as xr, withKeys as tt, vModelText as $r } from "vue";
2
- const en = (e) => (fo("data-v-b7fdfbec"), e = e(), po(), e), Nr = { class: "action-menu-icon" }, Cr = /* @__PURE__ */ en(() => /* @__PURE__ */ D("svg", {
1
+ import { defineComponent as Z, ref as T, onMounted as Gt, openBlock as x, createElementBlock as A, normalizeClass as lo, createElementVNode as D, Fragment as Oe, renderList as Pe, toDisplayString as le, createCommentVNode as ge, withDirectives as ze, vShow as zt, pushScopeId as uo, popScopeId as fo, computed as L, createBlock as Se, resolveDynamicComponent as qt, mergeProps as Kt, effectScope as po, markRaw as ke, inject as ne, onBeforeMount as yr, shallowRef as wr, toRaw as vt, hasInjectionContext as _r, getCurrentInstance as Jt, unref as k, shallowReactive as br, watch as J, reactive as Ee, isRef as qe, isReactive as Yt, toRef as at, nextTick as Ke, getCurrentScope as Qt, onScopeDispose as Xt, h as ho, provide as it, toRefs as En, watchEffect as Er, normalizeStyle as ce, renderSlot as me, createVNode as ft, withCtx as pt, createTextVNode as mo, onBeforeUnmount as kr, readonly as Sr, customRef as Ir, resolveComponent as Or, withKeys as et, vModelText as Pr } from "vue";
2
+ const Zt = (e) => (uo("data-v-b7fdfbec"), e = e(), fo(), e), xr = { class: "action-menu-icon" }, $r = /* @__PURE__ */ Zt(() => /* @__PURE__ */ D("svg", {
3
3
  class: "leftBar",
4
4
  version: "1.1",
5
5
  id: "Layer_1",
@@ -13,7 +13,7 @@ const en = (e) => (fo("data-v-b7fdfbec"), e = e(), po(), e), Nr = { class: "acti
13
13
  height: "50"
14
14
  }, [
15
15
  /* @__PURE__ */ D("polygon", { points: "54.2,33.4 29.2,58.8 25,54.6 50,29.2 " })
16
- ], -1)), Rr = /* @__PURE__ */ en(() => /* @__PURE__ */ D("svg", {
16
+ ], -1)), Nr = /* @__PURE__ */ Zt(() => /* @__PURE__ */ D("svg", {
17
17
  class: "rightBar",
18
18
  version: "1.1",
19
19
  id: "Layer_1",
@@ -27,17 +27,17 @@ const en = (e) => (fo("data-v-b7fdfbec"), e = e(), po(), e), Nr = { class: "acti
27
27
  height: "50"
28
28
  }, [
29
29
  /* @__PURE__ */ D("polygon", { points: "70.8,58.8 45.8,33.4 50,29.2 75,54.6 " })
30
- ], -1)), Ar = [
31
- Cr,
32
- Rr
33
- ], Tr = /* @__PURE__ */ en(() => /* @__PURE__ */ D("div", { style: { "margin-right": "30px" } }, null, -1)), Dr = ["onclick"], Mr = { key: 1 }, Vr = ["onClick"], Lr = { class: "dropdown-container" }, jr = { class: "dropdown" }, Br = ["onclick"], Ur = ["href"], Hr = { class: "dropdown-item" }, Wr = /* @__PURE__ */ Z({
30
+ ], -1)), Cr = [
31
+ $r,
32
+ Nr
33
+ ], Rr = /* @__PURE__ */ Zt(() => /* @__PURE__ */ D("div", { style: { "margin-right": "30px" } }, null, -1)), Ar = ["onclick"], Tr = { key: 1 }, Dr = ["onClick"], Mr = { class: "dropdown-container" }, Vr = { class: "dropdown" }, Lr = ["onclick"], jr = ["href"], Br = { class: "dropdown-item" }, Ur = /* @__PURE__ */ Z({
34
34
  __name: "ActionSet",
35
35
  props: {
36
36
  elements: {}
37
37
  },
38
38
  setup(e) {
39
39
  const t = e, n = T([]), o = T(!1), r = T(null), s = T(!1), i = T(!1);
40
- zt(() => {
40
+ Gt(() => {
41
41
  n.value = t.elements, a();
42
42
  });
43
43
  const a = () => {
@@ -54,17 +54,17 @@ const en = (e) => (fo("data-v-b7fdfbec"), e = e(), po(), e), Nr = { class: "acti
54
54
  a(), n.value[d].show = f;
55
55
  };
56
56
  return (d, f) => (x(), A("div", {
57
- class: uo([{ "open-set": o.value, "hovered-and-closed": i.value }, "action-set collapse"]),
57
+ class: lo([{ "open-set": o.value, "hovered-and-closed": i.value }, "action-set collapse"]),
58
58
  onMouseover: c,
59
59
  onMouseleave: u
60
60
  }, [
61
- D("div", Nr, [
61
+ D("div", xr, [
62
62
  D("div", {
63
63
  id: "chevron",
64
64
  onClick: f[0] || (f[0] = (p) => i.value = !i.value)
65
- }, Ar)
65
+ }, Cr)
66
66
  ]),
67
- Tr,
67
+ Rr,
68
68
  (x(!0), A(Oe, null, Pe(n.value, (p, m) => (x(), A("div", {
69
69
  class: "action-element",
70
70
  key: m
@@ -73,14 +73,14 @@ const en = (e) => (fo("data-v-b7fdfbec"), e = e(), po(), e), Nr = { class: "acti
73
73
  key: 0,
74
74
  onclick: p.action,
75
75
  class: "button-default"
76
- }, le(p.label), 9, Dr)) : ge("", !0),
77
- p.elementType == "dropdown" ? (x(), A("div", Mr, [
76
+ }, le(p.label), 9, Ar)) : ge("", !0),
77
+ p.elementType == "dropdown" ? (x(), A("div", Tr, [
78
78
  D("button", {
79
79
  class: "button-default",
80
80
  onClick: (v) => l(m)
81
- }, le(p.label), 9, Vr),
82
- ze(D("div", Lr, [
83
- D("div", jr, [
81
+ }, le(p.label), 9, Dr),
82
+ ze(D("div", Mr, [
83
+ D("div", Vr, [
84
84
  (x(!0), A(Oe, null, Pe(p.actions, (v) => (x(), A("div", {
85
85
  key: v.label
86
86
  }, [
@@ -88,38 +88,38 @@ const en = (e) => (fo("data-v-b7fdfbec"), e = e(), po(), e), Nr = { class: "acti
88
88
  key: 0,
89
89
  onclick: v.action,
90
90
  class: "dropdown-item"
91
- }, le(v.label), 9, Br)) : v.link != null ? (x(), A("a", {
91
+ }, le(v.label), 9, Lr)) : v.link != null ? (x(), A("a", {
92
92
  key: 1,
93
93
  href: v.link
94
94
  }, [
95
- D("button", Hr, le(v.label), 1)
96
- ], 8, Ur)) : ge("", !0)
95
+ D("button", Br, le(v.label), 1)
96
+ ], 8, jr)) : ge("", !0)
97
97
  ]))), 128))
98
98
  ])
99
99
  ], 512), [
100
- [qt, p.show]
100
+ [zt, p.show]
101
101
  ])
102
102
  ])) : ge("", !0)
103
103
  ]))), 128))
104
104
  ], 34));
105
105
  }
106
- }), tn = (e, t) => {
106
+ }), en = (e, t) => {
107
107
  const n = e.__vccOpts || e;
108
108
  for (const [o, r] of t)
109
109
  n[o] = r;
110
110
  return n;
111
- }, Fr = /* @__PURE__ */ tn(Wr, [["__scopeId", "data-v-b7fdfbec"]]), Gr = {};
112
- function zr(e, t) {
111
+ }, Hr = /* @__PURE__ */ en(Ur, [["__scopeId", "data-v-b7fdfbec"]]), Wr = {};
112
+ function Fr(e, t) {
113
113
  return x(), A("dialog");
114
114
  }
115
- const qr = /* @__PURE__ */ tn(Gr, [["render", zr]]), Kr = (e, t) => {
115
+ const Gr = /* @__PURE__ */ en(Wr, [["render", Fr]]), zr = (e, t) => {
116
116
  const n = e.__vccOpts || e;
117
117
  for (const [o, r] of t)
118
118
  n[o] = r;
119
119
  return n;
120
120
  };
121
121
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
122
- const Jr = /* @__PURE__ */ Z({
122
+ const qr = { class: "aform" }, Kr = /* @__PURE__ */ Z({
123
123
  __name: "AForm",
124
124
  props: {
125
125
  modelValue: {},
@@ -145,8 +145,8 @@ const Jr = /* @__PURE__ */ Z({
145
145
  set: () => {
146
146
  }
147
147
  });
148
- return (a, c) => (x(), A("form", null, [
149
- (x(!0), A(Oe, null, Pe(a.modelValue, (u, l) => (x(), Se(Kt(u.component), Jt({
148
+ return (a, c) => (x(), A("form", qr, [
149
+ (x(!0), A(Oe, null, Pe(a.modelValue, (u, l) => (x(), Se(qt(u.component), Kt({
150
150
  key: l,
151
151
  schema: u,
152
152
  modelValue: i.value[l].value,
@@ -156,12 +156,12 @@ const Jr = /* @__PURE__ */ Z({
156
156
  }, s(u)), null, 16, ["schema", "modelValue", "onUpdate:modelValue", "data", "readonly"]))), 128))
157
157
  ]));
158
158
  }
159
- }), Yr = /* @__PURE__ */ Kr(Jr, [["__scopeId", "data-v-74d66cf2"]]);
160
- function At(e) {
159
+ }), Jr = /* @__PURE__ */ zr(Kr, [["__scopeId", "data-v-88047a70"]]);
160
+ function Rt(e) {
161
161
  this.message = e || "";
162
162
  }
163
- At.prototype = Object.create(Error.prototype, {
164
- constructor: { value: At },
163
+ Rt.prototype = Object.create(Error.prototype, {
164
+ constructor: { value: Rt },
165
165
  name: { value: "NotImplemented" },
166
166
  stack: {
167
167
  get: function() {
@@ -213,7 +213,7 @@ class Be {
213
213
  * const meta = stonecrop.getMeta(doctype)
214
214
  */
215
215
  getMeta(t) {
216
- return this.registry.getMeta ? this.registry.getMeta(t.doctype) : new At(t.doctype);
216
+ return this.registry.getMeta ? this.registry.getMeta(t.doctype) : new Rt(t.doctype);
217
217
  }
218
218
  /**
219
219
  * @method getWorkflow
@@ -302,33 +302,33 @@ class Be {
302
302
  });
303
303
  }
304
304
  }
305
- var yo = !1;
306
- function nt(e, t, n) {
305
+ var vo = !1;
306
+ function tt(e, t, n) {
307
307
  return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
308
308
  }
309
- function It(e, t) {
309
+ function St(e, t) {
310
310
  if (Array.isArray(e)) {
311
311
  e.splice(t, 1);
312
312
  return;
313
313
  }
314
314
  delete e[t];
315
315
  }
316
- function Qr() {
317
- return wo().__VUE_DEVTOOLS_GLOBAL_HOOK__;
316
+ function Yr() {
317
+ return go().__VUE_DEVTOOLS_GLOBAL_HOOK__;
318
318
  }
319
- function wo() {
319
+ function go() {
320
320
  return typeof navigator < "u" && typeof window < "u" ? window : typeof global < "u" ? global : {};
321
321
  }
322
- const Xr = typeof Proxy == "function", Zr = "devtools-plugin:setup", es = "plugin:settings:set";
323
- let Ne, Tt;
324
- function ts() {
322
+ const Qr = typeof Proxy == "function", Xr = "devtools-plugin:setup", Zr = "plugin:settings:set";
323
+ let Ne, At;
324
+ function es() {
325
325
  var e;
326
- return Ne !== void 0 || (typeof window < "u" && window.performance ? (Ne = !0, Tt = window.performance) : typeof global < "u" && (!((e = global.perf_hooks) === null || e === void 0) && e.performance) ? (Ne = !0, Tt = global.perf_hooks.performance) : Ne = !1), Ne;
326
+ return Ne !== void 0 || (typeof window < "u" && window.performance ? (Ne = !0, At = window.performance) : typeof global < "u" && (!((e = global.perf_hooks) === null || e === void 0) && e.performance) ? (Ne = !0, At = global.perf_hooks.performance) : Ne = !1), Ne;
327
327
  }
328
- function ns() {
329
- return ts() ? Tt.now() : Date.now();
328
+ function ts() {
329
+ return es() ? At.now() : Date.now();
330
330
  }
331
- class os {
331
+ class ns {
332
332
  constructor(t, n) {
333
333
  this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
334
334
  const o = {};
@@ -356,9 +356,9 @@ class os {
356
356
  s = i;
357
357
  },
358
358
  now() {
359
- return ns();
359
+ return ts();
360
360
  }
361
- }, n && n.on(es, (i, a) => {
361
+ }, n && n.on(Zr, (i, a) => {
362
362
  i === this.plugin.id && this.fallbacks.setSettings(a);
363
363
  }), this.proxiedOn = new Proxy({}, {
364
364
  get: (i, a) => this.target ? this.target.on[a] : (...c) => {
@@ -390,12 +390,12 @@ class os {
390
390
  n.resolve(await this.target[n.method](...n.args));
391
391
  }
392
392
  }
393
- function nn(e, t) {
394
- const n = e, o = wo(), r = Qr(), s = Xr && n.enableEarlyProxy;
393
+ function tn(e, t) {
394
+ const n = e, o = go(), r = Yr(), s = Qr && n.enableEarlyProxy;
395
395
  if (r && (o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
396
- r.emit(Zr, e, t);
396
+ r.emit(Xr, e, t);
397
397
  else {
398
- const i = s ? new os(n, r) : null;
398
+ const i = s ? new ns(n, r) : null;
399
399
  (o.__VUE_DEVTOOLS_PLUGINS__ = o.__VUE_DEVTOOLS_PLUGINS__ || []).push({
400
400
  pluginDescriptor: n,
401
401
  setupFn: t,
@@ -409,7 +409,7 @@ function nn(e, t) {
409
409
  * @license MIT
410
410
  */
411
411
  let Le;
412
- const Je = (e) => Le = e, _o = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
412
+ const Je = (e) => Le = e, yo = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
413
413
  /* istanbul ignore next */
414
414
  Symbol()
415
415
  );
@@ -420,19 +420,19 @@ var re;
420
420
  (function(e) {
421
421
  e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
422
422
  })(re || (re = {}));
423
- const yt = typeof window < "u", Ue = (process.env.NODE_ENV !== "production" || !1) && process.env.NODE_ENV !== "test" && yt, Sn = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
424
- function rs(e, { autoBom: t = !1 } = {}) {
423
+ const gt = typeof window < "u", Ue = (process.env.NODE_ENV !== "production" || !1) && process.env.NODE_ENV !== "test" && gt, kn = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
424
+ function os(e, { autoBom: t = !1 } = {}) {
425
425
  return t && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
426
426
  }
427
- function on(e, t, n) {
427
+ function nn(e, t, n) {
428
428
  const o = new XMLHttpRequest();
429
429
  o.open("GET", e), o.responseType = "blob", o.onload = function() {
430
- ko(o.response, t, n);
430
+ bo(o.response, t, n);
431
431
  }, o.onerror = function() {
432
432
  console.error("could not download file");
433
433
  }, o.send();
434
434
  }
435
- function bo(e) {
435
+ function wo(e) {
436
436
  const t = new XMLHttpRequest();
437
437
  t.open("HEAD", e, !1);
438
438
  try {
@@ -441,7 +441,7 @@ function bo(e) {
441
441
  }
442
442
  return t.status >= 200 && t.status <= 299;
443
443
  }
444
- function lt(e) {
444
+ function ct(e) {
445
445
  try {
446
446
  e.dispatchEvent(new MouseEvent("click"));
447
447
  } catch {
@@ -449,43 +449,43 @@ function lt(e) {
449
449
  n.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(n);
450
450
  }
451
451
  }
452
- const ut = typeof navigator == "object" ? navigator : { userAgent: "" }, Eo = /Macintosh/.test(ut.userAgent) && /AppleWebKit/.test(ut.userAgent) && !/Safari/.test(ut.userAgent), ko = yt ? (
452
+ const lt = typeof navigator == "object" ? navigator : { userAgent: "" }, _o = /Macintosh/.test(lt.userAgent) && /AppleWebKit/.test(lt.userAgent) && !/Safari/.test(lt.userAgent), bo = gt ? (
453
453
  // Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
454
- typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !Eo ? ss : (
454
+ typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !_o ? rs : (
455
455
  // Use msSaveOrOpenBlob as a second approach
456
- "msSaveOrOpenBlob" in ut ? as : (
456
+ "msSaveOrOpenBlob" in lt ? ss : (
457
457
  // Fallback to using FileReader and a popup
458
- is
458
+ as
459
459
  )
460
460
  )
461
461
  ) : () => {
462
462
  };
463
- function ss(e, t = "download", n) {
463
+ function rs(e, t = "download", n) {
464
464
  const o = document.createElement("a");
465
- o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin !== location.origin ? bo(o.href) ? on(e, t, n) : (o.target = "_blank", lt(o)) : lt(o)) : (o.href = URL.createObjectURL(e), setTimeout(function() {
465
+ o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin !== location.origin ? wo(o.href) ? nn(e, t, n) : (o.target = "_blank", ct(o)) : ct(o)) : (o.href = URL.createObjectURL(e), setTimeout(function() {
466
466
  URL.revokeObjectURL(o.href);
467
467
  }, 4e4), setTimeout(function() {
468
- lt(o);
468
+ ct(o);
469
469
  }, 0));
470
470
  }
471
- function as(e, t = "download", n) {
471
+ function ss(e, t = "download", n) {
472
472
  if (typeof e == "string")
473
- if (bo(e))
474
- on(e, t, n);
473
+ if (wo(e))
474
+ nn(e, t, n);
475
475
  else {
476
476
  const o = document.createElement("a");
477
477
  o.href = e, o.target = "_blank", setTimeout(function() {
478
- lt(o);
478
+ ct(o);
479
479
  });
480
480
  }
481
481
  else
482
- navigator.msSaveOrOpenBlob(rs(e, n), t);
482
+ navigator.msSaveOrOpenBlob(os(e, n), t);
483
483
  }
484
- function is(e, t, n, o) {
484
+ function as(e, t, n, o) {
485
485
  if (o = o || open("", "_blank"), o && (o.document.title = o.document.body.innerText = "downloading..."), typeof e == "string")
486
- return on(e, t, n);
487
- const r = e.type === "application/octet-stream", s = /constructor/i.test(String(Sn.HTMLElement)) || "safari" in Sn, i = /CriOS\/[\d]+/.test(navigator.userAgent);
488
- if ((i || r && s || Eo) && typeof FileReader < "u") {
486
+ return nn(e, t, n);
487
+ const r = e.type === "application/octet-stream", s = /constructor/i.test(String(kn.HTMLElement)) || "safari" in kn, i = /CriOS\/[\d]+/.test(navigator.userAgent);
488
+ if ((i || r && s || _o) && typeof FileReader < "u") {
489
489
  const a = new FileReader();
490
490
  a.onloadend = function() {
491
491
  let c = a.result;
@@ -504,39 +504,39 @@ function H(e, t) {
504
504
  const n = "🍍 " + e;
505
505
  typeof __VUE_DEVTOOLS_TOAST__ == "function" ? __VUE_DEVTOOLS_TOAST__(n, t) : t === "error" ? console.error(n) : t === "warn" ? console.warn(n) : console.log(n);
506
506
  }
507
- function rn(e) {
507
+ function on(e) {
508
508
  return "_a" in e && "install" in e;
509
509
  }
510
- function So() {
510
+ function Eo() {
511
511
  if (!("clipboard" in navigator))
512
512
  return H("Your browser doesn't support the Clipboard API", "error"), !0;
513
513
  }
514
- function Io(e) {
514
+ function ko(e) {
515
515
  return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (H('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
516
516
  }
517
- async function cs(e) {
518
- if (!So())
517
+ async function is(e) {
518
+ if (!Eo())
519
519
  try {
520
520
  await navigator.clipboard.writeText(JSON.stringify(e.state.value)), H("Global state copied to clipboard.");
521
521
  } catch (t) {
522
- if (Io(t))
522
+ if (ko(t))
523
523
  return;
524
524
  H("Failed to serialize the state. Check the console for more details.", "error"), console.error(t);
525
525
  }
526
526
  }
527
- async function ls(e) {
528
- if (!So())
527
+ async function cs(e) {
528
+ if (!Eo())
529
529
  try {
530
- Oo(e, JSON.parse(await navigator.clipboard.readText())), H("Global state pasted from clipboard.");
530
+ So(e, JSON.parse(await navigator.clipboard.readText())), H("Global state pasted from clipboard.");
531
531
  } catch (t) {
532
- if (Io(t))
532
+ if (ko(t))
533
533
  return;
534
534
  H("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(t);
535
535
  }
536
536
  }
537
- async function us(e) {
537
+ async function ls(e) {
538
538
  try {
539
- ko(new Blob([JSON.stringify(e.state.value)], {
539
+ bo(new Blob([JSON.stringify(e.state.value)], {
540
540
  type: "text/plain;charset=utf-8"
541
541
  }), "pinia-state.json");
542
542
  } catch (t) {
@@ -544,7 +544,7 @@ async function us(e) {
544
544
  }
545
545
  }
546
546
  let se;
547
- function ds() {
547
+ function us() {
548
548
  se || (se = document.createElement("input"), se.type = "file", se.accept = ".json");
549
549
  function e() {
550
550
  return new Promise((t, n) => {
@@ -559,18 +559,18 @@ function ds() {
559
559
  }
560
560
  return e;
561
561
  }
562
- async function fs(e) {
562
+ async function ds(e) {
563
563
  try {
564
- const n = await ds()();
564
+ const n = await us()();
565
565
  if (!n)
566
566
  return;
567
567
  const { text: o, file: r } = n;
568
- Oo(e, JSON.parse(o)), H(`Global state imported from "${r.name}".`);
568
+ So(e, JSON.parse(o)), H(`Global state imported from "${r.name}".`);
569
569
  } catch (t) {
570
570
  H("Failed to import the state from JSON. Check the console for more details.", "error"), console.error(t);
571
571
  }
572
572
  }
573
- function Oo(e, t) {
573
+ function So(e, t) {
574
574
  for (const n in t) {
575
575
  const o = e.state.value[n];
576
576
  o ? Object.assign(o, t[n]) : e.state.value[n] = t[n];
@@ -583,18 +583,18 @@ function te(e) {
583
583
  }
584
584
  };
585
585
  }
586
- const Po = "🍍 Pinia (root)", Dt = "_root";
587
- function ps(e) {
588
- return rn(e) ? {
589
- id: Dt,
590
- label: Po
586
+ const Io = "🍍 Pinia (root)", Tt = "_root";
587
+ function fs(e) {
588
+ return on(e) ? {
589
+ id: Tt,
590
+ label: Io
591
591
  } : {
592
592
  id: e.$id,
593
593
  label: e.$id
594
594
  };
595
595
  }
596
- function hs(e) {
597
- if (rn(e)) {
596
+ function ps(e) {
597
+ if (on(e)) {
598
598
  const n = Array.from(e._s.keys()), o = e._s;
599
599
  return {
600
600
  state: n.map((s) => ({
@@ -629,7 +629,7 @@ function hs(e) {
629
629
  value: e[n]
630
630
  }))), t;
631
631
  }
632
- function ms(e) {
632
+ function hs(e) {
633
633
  return e ? Array.isArray(e) ? e.reduce((t, n) => (t.keys.push(n.key), t.operations.push(n.type), t.oldValue[n.key] = n.oldValue, t.newValue[n.key] = n.newValue, t), {
634
634
  oldValue: {},
635
635
  keys: [],
@@ -642,7 +642,7 @@ function ms(e) {
642
642
  newValue: e.newValue
643
643
  } : {};
644
644
  }
645
- function vs(e) {
645
+ function ms(e) {
646
646
  switch (e) {
647
647
  case re.direct:
648
648
  return "mutation";
@@ -655,15 +655,15 @@ function vs(e) {
655
655
  }
656
656
  }
657
657
  let Re = !0;
658
- const dt = [], be = "pinia:mutations", z = "pinia", { assign: gs } = Object, mt = (e) => "🍍 " + e;
659
- function ys(e, t) {
660
- nn({
658
+ const ut = [], be = "pinia:mutations", z = "pinia", { assign: vs } = Object, ht = (e) => "🍍 " + e;
659
+ function gs(e, t) {
660
+ tn({
661
661
  id: "dev.esm.pinia",
662
662
  label: "Pinia 🍍",
663
663
  logo: "https://pinia.vuejs.org/logo.svg",
664
664
  packageName: "pinia",
665
665
  homepage: "https://pinia.vuejs.org",
666
- componentStateTypes: dt,
666
+ componentStateTypes: ut,
667
667
  app: e
668
668
  }, (n) => {
669
669
  typeof n.now != "function" && H("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."), n.addTimelineLayer({
@@ -679,28 +679,28 @@ function ys(e, t) {
679
679
  {
680
680
  icon: "content_copy",
681
681
  action: () => {
682
- cs(t);
682
+ is(t);
683
683
  },
684
684
  tooltip: "Serialize and copy the state"
685
685
  },
686
686
  {
687
687
  icon: "content_paste",
688
688
  action: async () => {
689
- await ls(t), n.sendInspectorTree(z), n.sendInspectorState(z);
689
+ await cs(t), n.sendInspectorTree(z), n.sendInspectorState(z);
690
690
  },
691
691
  tooltip: "Replace the state with the content of your clipboard"
692
692
  },
693
693
  {
694
694
  icon: "save",
695
695
  action: () => {
696
- us(t);
696
+ ls(t);
697
697
  },
698
698
  tooltip: "Save the state as a JSON file"
699
699
  },
700
700
  {
701
701
  icon: "folder_open",
702
702
  action: async () => {
703
- await fs(t), n.sendInspectorTree(z), n.sendInspectorState(z);
703
+ await ds(t), n.sendInspectorTree(z), n.sendInspectorState(z);
704
704
  },
705
705
  tooltip: "Import the state from a JSON file"
706
706
  }
@@ -721,12 +721,12 @@ function ys(e, t) {
721
721
  const i = o.componentInstance.proxy._pStores;
722
722
  Object.values(i).forEach((a) => {
723
723
  o.instanceData.state.push({
724
- type: mt(a.$id),
724
+ type: ht(a.$id),
725
725
  key: "state",
726
726
  editable: !0,
727
727
  value: a._isOptionsAPI ? {
728
728
  _custom: {
729
- value: gt(a.$state),
729
+ value: vt(a.$state),
730
730
  actions: [
731
731
  {
732
732
  icon: "restore",
@@ -740,7 +740,7 @@ function ys(e, t) {
740
740
  Object.keys(a.$state).reduce((c, u) => (c[u] = a.$state[u], c), {})
741
741
  )
742
742
  }), a._getters && a._getters.length && o.instanceData.state.push({
743
- type: mt(a.$id),
743
+ type: ht(a.$id),
744
744
  key: "getters",
745
745
  editable: !1,
746
746
  value: a._getters.reduce((c, u) => {
@@ -757,22 +757,22 @@ function ys(e, t) {
757
757
  }), n.on.getInspectorTree((o) => {
758
758
  if (o.app === e && o.inspectorId === z) {
759
759
  let r = [t];
760
- r = r.concat(Array.from(t._s.values())), o.rootNodes = (o.filter ? r.filter((s) => "$id" in s ? s.$id.toLowerCase().includes(o.filter.toLowerCase()) : Po.toLowerCase().includes(o.filter.toLowerCase())) : r).map(ps);
760
+ r = r.concat(Array.from(t._s.values())), o.rootNodes = (o.filter ? r.filter((s) => "$id" in s ? s.$id.toLowerCase().includes(o.filter.toLowerCase()) : Io.toLowerCase().includes(o.filter.toLowerCase())) : r).map(fs);
761
761
  }
762
762
  }), n.on.getInspectorState((o) => {
763
763
  if (o.app === e && o.inspectorId === z) {
764
- const r = o.nodeId === Dt ? t : t._s.get(o.nodeId);
764
+ const r = o.nodeId === Tt ? t : t._s.get(o.nodeId);
765
765
  if (!r)
766
766
  return;
767
- r && (o.state = hs(r));
767
+ r && (o.state = ps(r));
768
768
  }
769
769
  }), n.on.editInspectorState((o, r) => {
770
770
  if (o.app === e && o.inspectorId === z) {
771
- const s = o.nodeId === Dt ? t : t._s.get(o.nodeId);
771
+ const s = o.nodeId === Tt ? t : t._s.get(o.nodeId);
772
772
  if (!s)
773
773
  return H(`store "${o.nodeId}" not found`, "error");
774
774
  const { path: i } = o;
775
- rn(s) ? i.unshift("state") : (i.length !== 1 || !s._customProperties.has(i[0]) || i[0] in s.$state) && i.unshift("$state"), Re = !1, o.set(s, i, o.state.value), Re = !0;
775
+ on(s) ? i.unshift("state") : (i.length !== 1 || !s._customProperties.has(i[0]) || i[0] in s.$state) && i.unshift("$state"), Re = !1, o.set(s, i, o.state.value), Re = !0;
776
776
  }
777
777
  }), n.on.editComponentState((o) => {
778
778
  if (o.type.startsWith("🍍")) {
@@ -789,14 +789,14 @@ Only state can be modified.`);
789
789
  });
790
790
  });
791
791
  }
792
- function ws(e, t) {
793
- dt.includes(mt(t.$id)) || dt.push(mt(t.$id)), nn({
792
+ function ys(e, t) {
793
+ ut.includes(ht(t.$id)) || ut.push(ht(t.$id)), tn({
794
794
  id: "dev.esm.pinia",
795
795
  label: "Pinia 🍍",
796
796
  logo: "https://pinia.vuejs.org/logo.svg",
797
797
  packageName: "pinia",
798
798
  homepage: "https://pinia.vuejs.org",
799
- componentStateTypes: dt,
799
+ componentStateTypes: ut,
800
800
  app: e,
801
801
  settings: {
802
802
  logStoreChanges: {
@@ -813,7 +813,7 @@ function ws(e, t) {
813
813
  }, (n) => {
814
814
  const o = typeof n.now == "function" ? n.now.bind(n) : Date.now;
815
815
  t.$onAction(({ after: i, onError: a, name: c, args: u }) => {
816
- const l = xo++;
816
+ const l = Oo++;
817
817
  n.addTimelineEvent({
818
818
  layerId: be,
819
819
  event: {
@@ -862,7 +862,7 @@ function ws(e, t) {
862
862
  });
863
863
  });
864
864
  }, !0), t._customProperties.forEach((i) => {
865
- J(() => E(t[i]), (a, c) => {
865
+ J(() => k(t[i]), (a, c) => {
866
866
  n.notifyComponentUpdate(), n.sendInspectorState(z), Re && n.addTimelineEvent({
867
867
  layerId: be,
868
868
  event: {
@@ -882,8 +882,8 @@ function ws(e, t) {
882
882
  return;
883
883
  const u = {
884
884
  time: o(),
885
- title: vs(a),
886
- data: gs({ store: te(t.$id) }, ms(i)),
885
+ title: ms(a),
886
+ data: vs({ store: te(t.$id) }, hs(i)),
887
887
  groupId: ve
888
888
  };
889
889
  a === re.patchFunction ? u.subtitle = "⤵️" : a === re.patchObject ? u.subtitle = "🧩" : i && !Array.isArray(i) && (u.subtitle = i.type), i && (u.data["rawEvent(s)"] = {
@@ -919,12 +919,12 @@ function ws(e, t) {
919
919
  }, n.notifyComponentUpdate(), n.sendInspectorTree(z), n.sendInspectorState(z), n.getSettings().logStoreChanges && H(`"${t.$id}" store installed 🆕`);
920
920
  });
921
921
  }
922
- let xo = 0, ve;
923
- function In(e, t, n) {
924
- const o = t.reduce((r, s) => (r[s] = gt(e)[s], r), {});
922
+ let Oo = 0, ve;
923
+ function Sn(e, t, n) {
924
+ const o = t.reduce((r, s) => (r[s] = vt(e)[s], r), {});
925
925
  for (const r in o)
926
926
  e[r] = function() {
927
- const s = xo, i = n ? new Proxy(e, {
927
+ const s = Oo, i = n ? new Proxy(e, {
928
928
  get(...c) {
929
929
  return ve = s, Reflect.get(...c);
930
930
  },
@@ -937,28 +937,28 @@ function In(e, t, n) {
937
937
  return ve = void 0, a;
938
938
  };
939
939
  }
940
- function _s({ app: e, store: t, options: n }) {
940
+ function ws({ app: e, store: t, options: n }) {
941
941
  if (t.$id.startsWith("__hot:"))
942
942
  return;
943
- t._isOptionsAPI = !!n.state, In(t, Object.keys(n.actions), t._isOptionsAPI);
943
+ t._isOptionsAPI = !!n.state, Sn(t, Object.keys(n.actions), t._isOptionsAPI);
944
944
  const o = t._hotUpdate;
945
- gt(t)._hotUpdate = function(r) {
946
- o.apply(this, arguments), In(t, Object.keys(r._hmrPayload.actions), !!t._isOptionsAPI);
947
- }, ws(
945
+ vt(t)._hotUpdate = function(r) {
946
+ o.apply(this, arguments), Sn(t, Object.keys(r._hmrPayload.actions), !!t._isOptionsAPI);
947
+ }, ys(
948
948
  e,
949
949
  // FIXME: is there a way to allow the assignment from Store<Id, S, G, A> to StoreGeneric?
950
950
  t
951
951
  );
952
952
  }
953
- function bs() {
954
- const e = ho(!0), t = e.run(() => T({}));
953
+ function _s() {
954
+ const e = po(!0), t = e.run(() => T({}));
955
955
  let n = [], o = [];
956
956
  const r = ke({
957
957
  install(s) {
958
- Je(r), r._a = s, s.provide(_o, r), s.config.globalProperties.$pinia = r, Ue && ys(s, r), o.forEach((i) => n.push(i)), o = [];
958
+ Je(r), r._a = s, s.provide(yo, r), s.config.globalProperties.$pinia = r, Ue && gs(s, r), o.forEach((i) => n.push(i)), o = [];
959
959
  },
960
960
  use(s) {
961
- return !this._a && !yo ? o.push(s) : n.push(s), this;
961
+ return !this._a && !vo ? o.push(s) : n.push(s), this;
962
962
  },
963
963
  _p: n,
964
964
  // it's actually undefined here
@@ -968,73 +968,73 @@ function bs() {
968
968
  _s: /* @__PURE__ */ new Map(),
969
969
  state: t
970
970
  });
971
- return Ue && typeof Proxy < "u" && r.use(_s), r;
971
+ return Ue && typeof Proxy < "u" && r.use(ws), r;
972
972
  }
973
- function $o(e, t) {
973
+ function Po(e, t) {
974
974
  for (const n in t) {
975
975
  const o = t[n];
976
976
  if (!(n in e))
977
977
  continue;
978
978
  const r = e[n];
979
- xe(r) && xe(o) && !qe(o) && !Qt(o) ? e[n] = $o(r, o) : e[n] = o;
979
+ xe(r) && xe(o) && !qe(o) && !Yt(o) ? e[n] = Po(r, o) : e[n] = o;
980
980
  }
981
981
  return e;
982
982
  }
983
- const No = () => {
983
+ const xo = () => {
984
984
  };
985
- function On(e, t, n, o = No) {
985
+ function In(e, t, n, o = xo) {
986
986
  e.push(t);
987
987
  const r = () => {
988
988
  const s = e.indexOf(t);
989
989
  s > -1 && (e.splice(s, 1), o());
990
990
  };
991
- return !n && Xt() && Zt(r), r;
991
+ return !n && Qt() && Xt(r), r;
992
992
  }
993
993
  function Ce(e, ...t) {
994
994
  e.slice().forEach((n) => {
995
995
  n(...t);
996
996
  });
997
997
  }
998
- const Es = (e) => e();
999
- function Mt(e, t) {
998
+ const bs = (e) => e();
999
+ function Dt(e, t) {
1000
1000
  e instanceof Map && t instanceof Map && t.forEach((n, o) => e.set(o, n)), e instanceof Set && t instanceof Set && t.forEach(e.add, e);
1001
1001
  for (const n in t) {
1002
1002
  if (!t.hasOwnProperty(n))
1003
1003
  continue;
1004
1004
  const o = t[n], r = e[n];
1005
- xe(r) && xe(o) && e.hasOwnProperty(n) && !qe(o) && !Qt(o) ? e[n] = Mt(r, o) : e[n] = o;
1005
+ xe(r) && xe(o) && e.hasOwnProperty(n) && !qe(o) && !Yt(o) ? e[n] = Dt(r, o) : e[n] = o;
1006
1006
  }
1007
1007
  return e;
1008
1008
  }
1009
- const ks = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
1009
+ const Es = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
1010
1010
  /* istanbul ignore next */
1011
1011
  Symbol()
1012
1012
  );
1013
- function Ss(e) {
1014
- return !xe(e) || !e.hasOwnProperty(ks);
1013
+ function ks(e) {
1014
+ return !xe(e) || !e.hasOwnProperty(Es);
1015
1015
  }
1016
1016
  const { assign: X } = Object;
1017
- function Pn(e) {
1017
+ function On(e) {
1018
1018
  return !!(qe(e) && e.effect);
1019
1019
  }
1020
- function xn(e, t, n, o) {
1020
+ function Pn(e, t, n, o) {
1021
1021
  const { state: r, actions: s, getters: i } = t, a = n.state.value[e];
1022
1022
  let c;
1023
1023
  function u() {
1024
1024
  !a && (process.env.NODE_ENV === "production" || !o) && (n.state.value[e] = r ? r() : {});
1025
1025
  const l = process.env.NODE_ENV !== "production" && o ? (
1026
1026
  // use ref() to unwrap refs inside state TODO: check if this is still necessary
1027
- kn(T(r ? r() : {}).value)
1028
- ) : kn(n.state.value[e]);
1027
+ En(T(r ? r() : {}).value)
1028
+ ) : En(n.state.value[e]);
1029
1029
  return X(l, s, Object.keys(i || {}).reduce((d, f) => (process.env.NODE_ENV !== "production" && f in l && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`), d[f] = ke(L(() => {
1030
1030
  Je(n);
1031
1031
  const p = n._s.get(e);
1032
1032
  return i[f].call(p, p);
1033
1033
  })), d), {}));
1034
1034
  }
1035
- return c = Vt(e, u, t, n, o, !0), c;
1035
+ return c = Mt(e, u, t, n, o, !0), c;
1036
1036
  }
1037
- function Vt(e, t, n = {}, o, r, s) {
1037
+ function Mt(e, t, n = {}, o, r, s) {
1038
1038
  let i;
1039
1039
  const a = X({ actions: {} }, n);
1040
1040
  if (process.env.NODE_ENV !== "production" && !o._e.active)
@@ -1043,23 +1043,23 @@ function Vt(e, t, n = {}, o, r, s) {
1043
1043
  deep: !0
1044
1044
  // flush: 'post',
1045
1045
  };
1046
- process.env.NODE_ENV !== "production" && !yo && (c.onTrigger = (k) => {
1047
- u ? p = k : u == !1 && !I._hotUpdating && (Array.isArray(p) ? p.push(k) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
1046
+ process.env.NODE_ENV !== "production" && !vo && (c.onTrigger = (E) => {
1047
+ u ? p = E : u == !1 && !I._hotUpdating && (Array.isArray(p) ? p.push(E) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
1048
1048
  });
1049
1049
  let u, l, d = [], f = [], p;
1050
1050
  const m = o.state.value[e];
1051
1051
  !s && !m && (process.env.NODE_ENV === "production" || !r) && (o.state.value[e] = {});
1052
1052
  const v = T({});
1053
1053
  let g;
1054
- function S(k) {
1054
+ function S(E) {
1055
1055
  let _;
1056
- u = l = !1, process.env.NODE_ENV !== "production" && (p = []), typeof k == "function" ? (k(o.state.value[e]), _ = {
1056
+ u = l = !1, process.env.NODE_ENV !== "production" && (p = []), typeof E == "function" ? (E(o.state.value[e]), _ = {
1057
1057
  type: re.patchFunction,
1058
1058
  storeId: e,
1059
1059
  events: p
1060
- }) : (Mt(o.state.value[e], k), _ = {
1060
+ }) : (Dt(o.state.value[e], E), _ = {
1061
1061
  type: re.patchObject,
1062
- payload: k,
1062
+ payload: E,
1063
1063
  storeId: e,
1064
1064
  events: p
1065
1065
  });
@@ -1077,27 +1077,27 @@ function Vt(e, t, n = {}, o, r, s) {
1077
1077
  /* istanbul ignore next */
1078
1078
  process.env.NODE_ENV !== "production" ? () => {
1079
1079
  throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
1080
- } : No
1080
+ } : xo
1081
1081
  );
1082
1082
  function V() {
1083
1083
  i.stop(), d = [], f = [], o._s.delete(e);
1084
1084
  }
1085
- function W(k, _) {
1085
+ function W(E, _) {
1086
1086
  return function() {
1087
1087
  Je(o);
1088
1088
  const M = Array.from(arguments), U = [], we = [];
1089
1089
  function De(G) {
1090
1090
  U.push(G);
1091
1091
  }
1092
- function Ze(G) {
1092
+ function Xe(G) {
1093
1093
  we.push(G);
1094
1094
  }
1095
1095
  Ce(f, {
1096
1096
  args: M,
1097
- name: k,
1097
+ name: E,
1098
1098
  store: I,
1099
1099
  after: De,
1100
- onError: Ze
1100
+ onError: Xe
1101
1101
  });
1102
1102
  let oe;
1103
1103
  try {
@@ -1117,12 +1117,12 @@ function Vt(e, t, n = {}, o, r, s) {
1117
1117
  _p: o,
1118
1118
  // _s: scope,
1119
1119
  $id: e,
1120
- $onAction: On.bind(null, f),
1120
+ $onAction: In.bind(null, f),
1121
1121
  $patch: S,
1122
1122
  $reset: O,
1123
- $subscribe(k, _ = {}) {
1124
- const M = On(d, k, _.detached, () => U()), U = i.run(() => J(() => o.state.value[e], (we) => {
1125
- (_.flush === "sync" ? l : u) && k({
1123
+ $subscribe(E, _ = {}) {
1124
+ const M = In(d, E, _.detached, () => U()), U = i.run(() => J(() => o.state.value[e], (we) => {
1125
+ (_.flush === "sync" ? l : u) && E({
1126
1126
  storeId: e,
1127
1127
  type: re.direct,
1128
1128
  events: p
@@ -1142,72 +1142,72 @@ function Vt(e, t, n = {}, o, r, s) {
1142
1142
  // setupStore
1143
1143
  ) : Q);
1144
1144
  o._s.set(e, I);
1145
- const ee = (o._a && o._a.runWithContext || Es)(() => o._e.run(() => (i = ho()).run(t)));
1146
- for (const k in ee) {
1147
- const _ = ee[k];
1148
- if (qe(_) && !Pn(_) || Qt(_))
1149
- process.env.NODE_ENV !== "production" && r ? nt(v.value, k, it(ee, k)) : s || (m && Ss(_) && (qe(_) ? _.value = m[k] : Mt(_, m[k])), o.state.value[e][k] = _), process.env.NODE_ENV !== "production" && Y.state.push(k);
1145
+ const ee = (o._a && o._a.runWithContext || bs)(() => o._e.run(() => (i = po()).run(t)));
1146
+ for (const E in ee) {
1147
+ const _ = ee[E];
1148
+ if (qe(_) && !On(_) || Yt(_))
1149
+ process.env.NODE_ENV !== "production" && r ? tt(v.value, E, at(ee, E)) : s || (m && ks(_) && (qe(_) ? _.value = m[E] : Dt(_, m[E])), o.state.value[e][E] = _), process.env.NODE_ENV !== "production" && Y.state.push(E);
1150
1150
  else if (typeof _ == "function") {
1151
- const M = process.env.NODE_ENV !== "production" && r ? _ : W(k, _);
1152
- ee[k] = M, process.env.NODE_ENV !== "production" && (Y.actions[k] = _), a.actions[k] = _;
1151
+ const M = process.env.NODE_ENV !== "production" && r ? _ : W(E, _);
1152
+ ee[E] = M, process.env.NODE_ENV !== "production" && (Y.actions[E] = _), a.actions[E] = _;
1153
1153
  } else
1154
- process.env.NODE_ENV !== "production" && Pn(_) && (Y.getters[k] = s ? (
1154
+ process.env.NODE_ENV !== "production" && On(_) && (Y.getters[E] = s ? (
1155
1155
  // @ts-expect-error
1156
- n.getters[k]
1157
- ) : _, yt && (ee._getters || // @ts-expect-error: same
1158
- (ee._getters = ke([]))).push(k));
1156
+ n.getters[E]
1157
+ ) : _, gt && (ee._getters || // @ts-expect-error: same
1158
+ (ee._getters = ke([]))).push(E));
1159
1159
  }
1160
- if (X(I, ee), X(gt(I), ee), Object.defineProperty(I, "$state", {
1160
+ if (X(I, ee), X(vt(I), ee), Object.defineProperty(I, "$state", {
1161
1161
  get: () => process.env.NODE_ENV !== "production" && r ? v.value : o.state.value[e],
1162
- set: (k) => {
1162
+ set: (E) => {
1163
1163
  if (process.env.NODE_ENV !== "production" && r)
1164
1164
  throw new Error("cannot set hotState");
1165
1165
  S((_) => {
1166
- X(_, k);
1166
+ X(_, E);
1167
1167
  });
1168
1168
  }
1169
- }), process.env.NODE_ENV !== "production" && (I._hotUpdate = ke((k) => {
1170
- I._hotUpdating = !0, k._hmrPayload.state.forEach((_) => {
1169
+ }), process.env.NODE_ENV !== "production" && (I._hotUpdate = ke((E) => {
1170
+ I._hotUpdating = !0, E._hmrPayload.state.forEach((_) => {
1171
1171
  if (_ in I.$state) {
1172
- const M = k.$state[_], U = I.$state[_];
1173
- typeof M == "object" && xe(M) && xe(U) ? $o(M, U) : k.$state[_] = U;
1172
+ const M = E.$state[_], U = I.$state[_];
1173
+ typeof M == "object" && xe(M) && xe(U) ? Po(M, U) : E.$state[_] = U;
1174
1174
  }
1175
- nt(I, _, it(k.$state, _));
1175
+ tt(I, _, at(E.$state, _));
1176
1176
  }), Object.keys(I.$state).forEach((_) => {
1177
- _ in k.$state || It(I, _);
1178
- }), u = !1, l = !1, o.state.value[e] = it(k._hmrPayload, "hotState"), l = !0, Ke().then(() => {
1177
+ _ in E.$state || St(I, _);
1178
+ }), u = !1, l = !1, o.state.value[e] = at(E._hmrPayload, "hotState"), l = !0, Ke().then(() => {
1179
1179
  u = !0;
1180
1180
  });
1181
- for (const _ in k._hmrPayload.actions) {
1182
- const M = k[_];
1183
- nt(I, _, W(_, M));
1181
+ for (const _ in E._hmrPayload.actions) {
1182
+ const M = E[_];
1183
+ tt(I, _, W(_, M));
1184
1184
  }
1185
- for (const _ in k._hmrPayload.getters) {
1186
- const M = k._hmrPayload.getters[_], U = s ? (
1185
+ for (const _ in E._hmrPayload.getters) {
1186
+ const M = E._hmrPayload.getters[_], U = s ? (
1187
1187
  // special handling of options api
1188
1188
  L(() => (Je(o), M.call(I, I)))
1189
1189
  ) : M;
1190
- nt(I, _, U);
1190
+ tt(I, _, U);
1191
1191
  }
1192
1192
  Object.keys(I._hmrPayload.getters).forEach((_) => {
1193
- _ in k._hmrPayload.getters || It(I, _);
1193
+ _ in E._hmrPayload.getters || St(I, _);
1194
1194
  }), Object.keys(I._hmrPayload.actions).forEach((_) => {
1195
- _ in k._hmrPayload.actions || It(I, _);
1196
- }), I._hmrPayload = k._hmrPayload, I._getters = k._getters, I._hotUpdating = !1;
1195
+ _ in E._hmrPayload.actions || St(I, _);
1196
+ }), I._hmrPayload = E._hmrPayload, I._getters = E._getters, I._hotUpdating = !1;
1197
1197
  })), Ue) {
1198
- const k = {
1198
+ const E = {
1199
1199
  writable: !0,
1200
1200
  configurable: !0,
1201
1201
  // avoid warning on devtools trying to display this property
1202
1202
  enumerable: !1
1203
1203
  };
1204
1204
  ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((_) => {
1205
- Object.defineProperty(I, _, X({ value: I[_] }, k));
1205
+ Object.defineProperty(I, _, X({ value: I[_] }, E));
1206
1206
  });
1207
1207
  }
1208
- return o._p.forEach((k) => {
1208
+ return o._p.forEach((E) => {
1209
1209
  if (Ue) {
1210
- const _ = i.run(() => k({
1210
+ const _ = i.run(() => E({
1211
1211
  store: I,
1212
1212
  app: o._a,
1213
1213
  pinia: o,
@@ -1215,7 +1215,7 @@ function Vt(e, t, n = {}, o, r, s) {
1215
1215
  }));
1216
1216
  Object.keys(_ || {}).forEach((M) => I._customProperties.add(M)), X(I, _);
1217
1217
  } else
1218
- X(I, i.run(() => k({
1218
+ X(I, i.run(() => E({
1219
1219
  store: I,
1220
1220
  app: o._a,
1221
1221
  pinia: o,
@@ -1225,7 +1225,7 @@ function Vt(e, t, n = {}, o, r, s) {
1225
1225
  state: () => new MyClass()
1226
1226
  Found in store "${I.$id}".`), m && s && n.hydrate && n.hydrate(I.$state, m), u = !0, l = !0, I;
1227
1227
  }
1228
- function Is(e, t, n) {
1228
+ function Ss(e, t, n) {
1229
1229
  let o, r;
1230
1230
  const s = typeof t == "function";
1231
1231
  if (typeof e == "string")
@@ -1233,21 +1233,21 @@ function Is(e, t, n) {
1233
1233
  else if (r = e, o = e.id, process.env.NODE_ENV !== "production" && typeof o != "string")
1234
1234
  throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');
1235
1235
  function i(a, c) {
1236
- const u = Er();
1236
+ const u = _r();
1237
1237
  if (a = // in test mode, ignore the argument provided as we can always retrieve a
1238
1238
  // pinia instance with getActivePinia()
1239
- (process.env.NODE_ENV === "test" && Le && Le._testing ? null : a) || (u ? ne(_o, null) : null), a && Je(a), process.env.NODE_ENV !== "production" && !Le)
1239
+ (process.env.NODE_ENV === "test" && Le && Le._testing ? null : a) || (u ? ne(yo, null) : null), a && Je(a), process.env.NODE_ENV !== "production" && !Le)
1240
1240
  throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
1241
1241
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
1242
1242
  This will fail in production.`);
1243
- a = Le, a._s.has(o) || (s ? Vt(o, t, r, a) : xn(o, r, a), process.env.NODE_ENV !== "production" && (i._pinia = a));
1243
+ a = Le, a._s.has(o) || (s ? Mt(o, t, r, a) : Pn(o, r, a), process.env.NODE_ENV !== "production" && (i._pinia = a));
1244
1244
  const l = a._s.get(o);
1245
1245
  if (process.env.NODE_ENV !== "production" && c) {
1246
- const d = "__hot:" + o, f = s ? Vt(d, t, r, a, !0) : xn(d, X({}, r), a, !0);
1246
+ const d = "__hot:" + o, f = s ? Mt(d, t, r, a, !0) : Pn(d, X({}, r), a, !0);
1247
1247
  c._hotUpdate(f), delete a.state.value[d], a._s.delete(d);
1248
1248
  }
1249
- if (process.env.NODE_ENV !== "production" && yt) {
1250
- const d = Yt();
1249
+ if (process.env.NODE_ENV !== "production" && gt) {
1250
+ const d = Jt();
1251
1251
  if (d && d.proxy && // avoid adding stores that are just built for hot module replacement
1252
1252
  !c) {
1253
1253
  const f = d.proxy, p = "_pStores" in f ? f._pStores : f._pStores = {};
@@ -1258,14 +1258,14 @@ This will fail in production.`);
1258
1258
  }
1259
1259
  return i.$id = o, i;
1260
1260
  }
1261
- const Os = Is("data", () => {
1261
+ const Is = Ss("data", () => {
1262
1262
  const e = T([]), t = T({});
1263
1263
  return { records: e, record: t };
1264
1264
  });
1265
- function Co(e) {
1265
+ function $o(e) {
1266
1266
  e || (e = ne("$registry"));
1267
- const t = Os(), n = T(new Be(e, t)), o = T(!1);
1268
- return _r(async () => {
1267
+ const t = Is(), n = T(new Be(e, t)), o = T(!1);
1268
+ return yr(async () => {
1269
1269
  var r, s;
1270
1270
  const i = e.router.currentRoute.value, a = (r = i.params.records) == null ? void 0 : r.toString().toLowerCase(), c = (s = i.params.record) == null ? void 0 : s.toString().toLowerCase();
1271
1271
  if (!a && !c)
@@ -1280,11 +1280,11 @@ function Co(e) {
1280
1280
  * @license MIT
1281
1281
  */
1282
1282
  const ie = typeof window < "u";
1283
- function Ps(e) {
1283
+ function Os(e) {
1284
1284
  return e.__esModule || e[Symbol.toStringTag] === "Module";
1285
1285
  }
1286
1286
  const R = Object.assign;
1287
- function Ot(e, t) {
1287
+ function It(e, t) {
1288
1288
  const n = {};
1289
1289
  for (const o in t) {
1290
1290
  const r = t[o];
@@ -1298,47 +1298,47 @@ function N(e) {
1298
1298
  const t = Array.from(arguments).slice(1);
1299
1299
  console.warn.apply(console, ["[Vue Router warn]: " + e].concat(t));
1300
1300
  }
1301
- const xs = /\/$/, $s = (e) => e.replace(xs, "");
1302
- function Pt(e, t, n = "/") {
1301
+ const Ps = /\/$/, xs = (e) => e.replace(Ps, "");
1302
+ function Ot(e, t, n = "/") {
1303
1303
  let o, r = {}, s = "", i = "";
1304
1304
  const a = t.indexOf("#");
1305
1305
  let c = t.indexOf("?");
1306
- return a < c && a >= 0 && (c = -1), c > -1 && (o = t.slice(0, c), s = t.slice(c + 1, a > -1 ? a : t.length), r = e(s)), a > -1 && (o = o || t.slice(0, a), i = t.slice(a, t.length)), o = Rs(o ?? t, n), {
1306
+ return a < c && a >= 0 && (c = -1), c > -1 && (o = t.slice(0, c), s = t.slice(c + 1, a > -1 ? a : t.length), r = e(s)), a > -1 && (o = o || t.slice(0, a), i = t.slice(a, t.length)), o = Cs(o ?? t, n), {
1307
1307
  fullPath: o + (s && "?") + s + i,
1308
1308
  path: o,
1309
1309
  query: r,
1310
1310
  hash: i
1311
1311
  };
1312
1312
  }
1313
- function Ns(e, t) {
1313
+ function $s(e, t) {
1314
1314
  const n = t.query ? e(t.query) : "";
1315
1315
  return t.path + (n && "?") + n + (t.hash || "");
1316
1316
  }
1317
- function $n(e, t) {
1317
+ function xn(e, t) {
1318
1318
  return !t || !e.toLowerCase().startsWith(t.toLowerCase()) ? e : e.slice(t.length) || "/";
1319
1319
  }
1320
- function Nn(e, t, n) {
1320
+ function $n(e, t, n) {
1321
1321
  const o = t.matched.length - 1, r = n.matched.length - 1;
1322
- return o > -1 && o === r && ye(t.matched[o], n.matched[r]) && Ro(t.params, n.params) && e(t.query) === e(n.query) && t.hash === n.hash;
1322
+ return o > -1 && o === r && ye(t.matched[o], n.matched[r]) && No(t.params, n.params) && e(t.query) === e(n.query) && t.hash === n.hash;
1323
1323
  }
1324
1324
  function ye(e, t) {
1325
1325
  return (e.aliasOf || e) === (t.aliasOf || t);
1326
1326
  }
1327
- function Ro(e, t) {
1327
+ function No(e, t) {
1328
1328
  if (Object.keys(e).length !== Object.keys(t).length)
1329
1329
  return !1;
1330
1330
  for (const n in e)
1331
- if (!Cs(e[n], t[n]))
1331
+ if (!Ns(e[n], t[n]))
1332
1332
  return !1;
1333
1333
  return !0;
1334
1334
  }
1335
- function Cs(e, t) {
1336
- return K(e) ? Cn(e, t) : K(t) ? Cn(t, e) : e === t;
1335
+ function Ns(e, t) {
1336
+ return K(e) ? Nn(e, t) : K(t) ? Nn(t, e) : e === t;
1337
1337
  }
1338
- function Cn(e, t) {
1338
+ function Nn(e, t) {
1339
1339
  return K(t) ? e.length === t.length && e.every((n, o) => n === t[o]) : e.length === 1 && e[0] === t;
1340
1340
  }
1341
- function Rs(e, t) {
1341
+ function Cs(e, t) {
1342
1342
  if (e.startsWith("/"))
1343
1343
  return e;
1344
1344
  if (process.env.NODE_ENV !== "production" && !t.startsWith("/"))
@@ -1364,20 +1364,20 @@ var We;
1364
1364
  (function(e) {
1365
1365
  e.back = "back", e.forward = "forward", e.unknown = "";
1366
1366
  })(We || (We = {}));
1367
- function As(e) {
1367
+ function Rs(e) {
1368
1368
  if (!e)
1369
1369
  if (ie) {
1370
1370
  const t = document.querySelector("base");
1371
1371
  e = t && t.getAttribute("href") || "/", e = e.replace(/^\w+:\/\/[^\/]+/, "");
1372
1372
  } else
1373
1373
  e = "/";
1374
- return e[0] !== "/" && e[0] !== "#" && (e = "/" + e), $s(e);
1374
+ return e[0] !== "/" && e[0] !== "#" && (e = "/" + e), xs(e);
1375
1375
  }
1376
- const Ts = /^[^#]+#/;
1377
- function Ds(e, t) {
1378
- return e.replace(Ts, "#") + t;
1376
+ const As = /^[^#]+#/;
1377
+ function Ts(e, t) {
1378
+ return e.replace(As, "#") + t;
1379
1379
  }
1380
- function Ms(e, t) {
1380
+ function Ds(e, t) {
1381
1381
  const n = document.documentElement.getBoundingClientRect(), o = e.getBoundingClientRect();
1382
1382
  return {
1383
1383
  behavior: t.behavior,
@@ -1385,11 +1385,11 @@ function Ms(e, t) {
1385
1385
  top: o.top - n.top - (t.top || 0)
1386
1386
  };
1387
1387
  }
1388
- const wt = () => ({
1388
+ const yt = () => ({
1389
1389
  left: window.pageXOffset,
1390
1390
  top: window.pageYOffset
1391
1391
  });
1392
- function Vs(e) {
1392
+ function Ms(e) {
1393
1393
  let t;
1394
1394
  if ("el" in e) {
1395
1395
  const n = e.el, o = typeof n == "string" && n.startsWith("#");
@@ -1409,35 +1409,35 @@ function Vs(e) {
1409
1409
  process.env.NODE_ENV !== "production" && N(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);
1410
1410
  return;
1411
1411
  }
1412
- t = Ms(r, e);
1412
+ t = Ds(r, e);
1413
1413
  } else
1414
1414
  t = e;
1415
1415
  "scrollBehavior" in document.documentElement.style ? window.scrollTo(t) : window.scrollTo(t.left != null ? t.left : window.pageXOffset, t.top != null ? t.top : window.pageYOffset);
1416
1416
  }
1417
- function Rn(e, t) {
1417
+ function Cn(e, t) {
1418
1418
  return (history.state ? history.state.position - t : -1) + e;
1419
1419
  }
1420
- const Lt = /* @__PURE__ */ new Map();
1421
- function Ls(e, t) {
1422
- Lt.set(e, t);
1420
+ const Vt = /* @__PURE__ */ new Map();
1421
+ function Vs(e, t) {
1422
+ Vt.set(e, t);
1423
1423
  }
1424
- function js(e) {
1425
- const t = Lt.get(e);
1426
- return Lt.delete(e), t;
1424
+ function Ls(e) {
1425
+ const t = Vt.get(e);
1426
+ return Vt.delete(e), t;
1427
1427
  }
1428
- let Bs = () => location.protocol + "//" + location.host;
1429
- function Ao(e, t) {
1428
+ let js = () => location.protocol + "//" + location.host;
1429
+ function Co(e, t) {
1430
1430
  const { pathname: n, search: o, hash: r } = t, s = e.indexOf("#");
1431
1431
  if (s > -1) {
1432
1432
  let a = r.includes(e.slice(s)) ? e.slice(s).length : 1, c = r.slice(a);
1433
- return c[0] !== "/" && (c = "/" + c), $n(c, "");
1433
+ return c[0] !== "/" && (c = "/" + c), xn(c, "");
1434
1434
  }
1435
- return $n(n, e) + o + r;
1435
+ return xn(n, e) + o + r;
1436
1436
  }
1437
- function Us(e, t, n, o) {
1437
+ function Bs(e, t, n, o) {
1438
1438
  let r = [], s = [], i = null;
1439
1439
  const a = ({ state: f }) => {
1440
- const p = Ao(e, location), m = n.value, v = t.value;
1440
+ const p = Co(e, location), m = n.value, v = t.value;
1441
1441
  let g = 0;
1442
1442
  if (f) {
1443
1443
  if (n.value = p, t.value = f, i && i === m) {
@@ -1468,7 +1468,7 @@ function Us(e, t, n, o) {
1468
1468
  }
1469
1469
  function l() {
1470
1470
  const { history: f } = window;
1471
- f.state && f.replaceState(R({}, f.state, { scroll: wt() }), "");
1471
+ f.state && f.replaceState(R({}, f.state, { scroll: yt() }), "");
1472
1472
  }
1473
1473
  function d() {
1474
1474
  for (const f of s)
@@ -1483,19 +1483,19 @@ function Us(e, t, n, o) {
1483
1483
  destroy: d
1484
1484
  };
1485
1485
  }
1486
- function An(e, t, n, o = !1, r = !1) {
1486
+ function Rn(e, t, n, o = !1, r = !1) {
1487
1487
  return {
1488
1488
  back: e,
1489
1489
  current: t,
1490
1490
  forward: n,
1491
1491
  replaced: o,
1492
1492
  position: window.history.length,
1493
- scroll: r ? wt() : null
1493
+ scroll: r ? yt() : null
1494
1494
  };
1495
1495
  }
1496
- function Hs(e) {
1496
+ function Us(e) {
1497
1497
  const { history: t, location: n } = window, o = {
1498
- value: Ao(e, n)
1498
+ value: Co(e, n)
1499
1499
  }, r = { value: t.state };
1500
1500
  r.value || s(o.value, {
1501
1501
  back: null,
@@ -1509,7 +1509,7 @@ function Hs(e) {
1509
1509
  scroll: null
1510
1510
  }, !0);
1511
1511
  function s(c, u, l) {
1512
- const d = e.indexOf("#"), f = d > -1 ? (n.host && document.querySelector("base") ? e : e.slice(d)) + c : Bs() + e + c;
1512
+ const d = e.indexOf("#"), f = d > -1 ? (n.host && document.querySelector("base") ? e : e.slice(d)) + c : js() + e + c;
1513
1513
  try {
1514
1514
  t[l ? "replaceState" : "pushState"](u, "", f), r.value = u;
1515
1515
  } catch (p) {
@@ -1517,7 +1517,7 @@ function Hs(e) {
1517
1517
  }
1518
1518
  }
1519
1519
  function i(c, u) {
1520
- const l = R({}, t.state, An(
1520
+ const l = R({}, t.state, Rn(
1521
1521
  r.value.back,
1522
1522
  // keep back and forward entries but override current position
1523
1523
  c,
@@ -1536,7 +1536,7 @@ function Hs(e) {
1536
1536
  t.state,
1537
1537
  {
1538
1538
  forward: c,
1539
- scroll: wt()
1539
+ scroll: yt()
1540
1540
  }
1541
1541
  );
1542
1542
  process.env.NODE_ENV !== "production" && !t.state && N(`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:
@@ -1544,7 +1544,7 @@ function Hs(e) {
1544
1544
  history.replaceState(history.state, '', url)
1545
1545
 
1546
1546
  You can find more information at https://next.router.vuejs.org/guide/migration/#usage-of-history-state.`), s(l.current, l, !0);
1547
- const d = R({}, An(o.value, c, null), { position: l.position + 1 }, u);
1547
+ const d = R({}, Rn(o.value, c, null), { position: l.position + 1 }, u);
1548
1548
  s(c, d, !1), o.value = c;
1549
1549
  }
1550
1550
  return {
@@ -1554,9 +1554,9 @@ You can find more information at https://next.router.vuejs.org/guide/migration/#
1554
1554
  replace: i
1555
1555
  };
1556
1556
  }
1557
- function Ws(e) {
1558
- e = As(e);
1559
- const t = Hs(e), n = Us(e, t.state, t.location, t.replace);
1557
+ function Hs(e) {
1558
+ e = Rs(e);
1559
+ const t = Us(e), n = Bs(e, t.state, t.location, t.replace);
1560
1560
  function o(s, i = !0) {
1561
1561
  i || n.pauseListeners(), history.go(s);
1562
1562
  }
@@ -1565,7 +1565,7 @@ function Ws(e) {
1565
1565
  location: "",
1566
1566
  base: e,
1567
1567
  go: o,
1568
- createHref: Ds.bind(null, e)
1568
+ createHref: Ts.bind(null, e)
1569
1569
  }, t, n);
1570
1570
  return Object.defineProperty(r, "location", {
1571
1571
  enumerable: !0,
@@ -1575,10 +1575,10 @@ function Ws(e) {
1575
1575
  get: () => t.state.value
1576
1576
  }), r;
1577
1577
  }
1578
- function Fs(e) {
1578
+ function Ws(e) {
1579
1579
  return typeof e == "string" || e && typeof e == "object";
1580
1580
  }
1581
- function To(e) {
1581
+ function Ro(e) {
1582
1582
  return typeof e == "string" || typeof e == "symbol";
1583
1583
  }
1584
1584
  const pe = {
@@ -1591,12 +1591,12 @@ const pe = {
1591
1591
  matched: [],
1592
1592
  meta: {},
1593
1593
  redirectedFrom: void 0
1594
- }, jt = Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
1595
- var Tn;
1594
+ }, Lt = Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
1595
+ var An;
1596
1596
  (function(e) {
1597
1597
  e[e.aborted = 4] = "aborted", e[e.cancelled = 8] = "cancelled", e[e.duplicated = 16] = "duplicated";
1598
- })(Tn || (Tn = {}));
1599
- const Gs = {
1598
+ })(An || (An = {}));
1599
+ const Fs = {
1600
1600
  1({ location: e, currentLocation: t }) {
1601
1601
  return `No match for
1602
1602
  ${JSON.stringify(e)}${t ? `
@@ -1604,7 +1604,7 @@ while being at
1604
1604
  ` + JSON.stringify(t) : ""}`;
1605
1605
  },
1606
1606
  2({ from: e, to: t }) {
1607
- return `Redirected from "${e.fullPath}" to "${qs(t)}" via a navigation guard.`;
1607
+ return `Redirected from "${e.fullPath}" to "${zs(t)}" via a navigation guard.`;
1608
1608
  },
1609
1609
  4({ from: e, to: t }) {
1610
1610
  return `Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`;
@@ -1617,36 +1617,36 @@ while being at
1617
1617
  }
1618
1618
  };
1619
1619
  function Te(e, t) {
1620
- return process.env.NODE_ENV !== "production" ? R(new Error(Gs[e](t)), {
1620
+ return process.env.NODE_ENV !== "production" ? R(new Error(Fs[e](t)), {
1621
1621
  type: e,
1622
- [jt]: !0
1622
+ [Lt]: !0
1623
1623
  }, t) : R(new Error(), {
1624
1624
  type: e,
1625
- [jt]: !0
1625
+ [Lt]: !0
1626
1626
  }, t);
1627
1627
  }
1628
1628
  function ae(e, t) {
1629
- return e instanceof Error && jt in e && (t == null || !!(e.type & t));
1629
+ return e instanceof Error && Lt in e && (t == null || !!(e.type & t));
1630
1630
  }
1631
- const zs = ["params", "query", "hash"];
1632
- function qs(e) {
1631
+ const Gs = ["params", "query", "hash"];
1632
+ function zs(e) {
1633
1633
  if (typeof e == "string")
1634
1634
  return e;
1635
1635
  if ("path" in e)
1636
1636
  return e.path;
1637
1637
  const t = {};
1638
- for (const n of zs)
1638
+ for (const n of Gs)
1639
1639
  n in e && (t[n] = e[n]);
1640
1640
  return JSON.stringify(t, null, 2);
1641
1641
  }
1642
- const Dn = "[^/]+?", Ks = {
1642
+ const Tn = "[^/]+?", qs = {
1643
1643
  sensitive: !1,
1644
1644
  strict: !1,
1645
1645
  start: !0,
1646
1646
  end: !0
1647
- }, Js = /[.+*?^${}()[\]/\\]/g;
1648
- function Ys(e, t) {
1649
- const n = R({}, Ks, t), o = [];
1647
+ }, Ks = /[.+*?^${}()[\]/\\]/g;
1648
+ function Js(e, t) {
1649
+ const n = R({}, qs, t), o = [];
1650
1650
  let r = n.start ? "^" : "";
1651
1651
  const s = [];
1652
1652
  for (const u of e) {
@@ -1659,7 +1659,7 @@ function Ys(e, t) {
1659
1659
  const f = u[d];
1660
1660
  let p = 40 + (n.sensitive ? 0.25 : 0);
1661
1661
  if (f.type === 0)
1662
- d || (r += "/"), r += f.value.replace(Js, "\\$&"), p += 40;
1662
+ d || (r += "/"), r += f.value.replace(Ks, "\\$&"), p += 40;
1663
1663
  else if (f.type === 1) {
1664
1664
  const { value: m, repeatable: v, optional: g, regexp: S } = f;
1665
1665
  s.push({
@@ -1667,8 +1667,8 @@ function Ys(e, t) {
1667
1667
  repeatable: v,
1668
1668
  optional: g
1669
1669
  });
1670
- const O = S || Dn;
1671
- if (O !== Dn) {
1670
+ const O = S || Tn;
1671
+ if (O !== Tn) {
1672
1672
  p += 10;
1673
1673
  try {
1674
1674
  new RegExp(`(${O})`);
@@ -1731,7 +1731,7 @@ function Ys(e, t) {
1731
1731
  stringify: c
1732
1732
  };
1733
1733
  }
1734
- function Qs(e, t) {
1734
+ function Ys(e, t) {
1735
1735
  let n = 0;
1736
1736
  for (; n < e.length && n < t.length; ) {
1737
1737
  const o = t[n] - e[n];
@@ -1741,36 +1741,36 @@ function Qs(e, t) {
1741
1741
  }
1742
1742
  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;
1743
1743
  }
1744
- function Xs(e, t) {
1744
+ function Qs(e, t) {
1745
1745
  let n = 0;
1746
1746
  const o = e.score, r = t.score;
1747
1747
  for (; n < o.length && n < r.length; ) {
1748
- const s = Qs(o[n], r[n]);
1748
+ const s = Ys(o[n], r[n]);
1749
1749
  if (s)
1750
1750
  return s;
1751
1751
  n++;
1752
1752
  }
1753
1753
  if (Math.abs(r.length - o.length) === 1) {
1754
- if (Mn(o))
1754
+ if (Dn(o))
1755
1755
  return 1;
1756
- if (Mn(r))
1756
+ if (Dn(r))
1757
1757
  return -1;
1758
1758
  }
1759
1759
  return r.length - o.length;
1760
1760
  }
1761
- function Mn(e) {
1761
+ function Dn(e) {
1762
1762
  const t = e[e.length - 1];
1763
1763
  return e.length > 0 && t[t.length - 1] < 0;
1764
1764
  }
1765
- const Zs = {
1765
+ const Xs = {
1766
1766
  type: 0,
1767
1767
  value: ""
1768
- }, ea = /[a-zA-Z0-9_]/;
1769
- function ta(e) {
1768
+ }, Zs = /[a-zA-Z0-9_]/;
1769
+ function ea(e) {
1770
1770
  if (!e)
1771
1771
  return [[]];
1772
1772
  if (e === "/")
1773
- return [[Zs]];
1773
+ return [[Xs]];
1774
1774
  if (!e.startsWith("/"))
1775
1775
  throw new Error(process.env.NODE_ENV !== "production" ? `Route paths should start with a "/": "${e}" should be "/${e}".` : `Invalid path "${e}"`);
1776
1776
  function t(p) {
@@ -1811,7 +1811,7 @@ function ta(e) {
1811
1811
  f(), n = o;
1812
1812
  break;
1813
1813
  case 1:
1814
- c === "(" ? n = 2 : ea.test(c) ? f() : (d(), n = 0, c !== "*" && c !== "?" && c !== "+" && a--);
1814
+ c === "(" ? n = 2 : Zs.test(c) ? f() : (d(), n = 0, c !== "*" && c !== "?" && c !== "+" && a--);
1815
1815
  break;
1816
1816
  case 2:
1817
1817
  c === ")" ? l[l.length - 1] == "\\" ? l = l.slice(0, -1) + c : n = 3 : l += c;
@@ -1826,8 +1826,8 @@ function ta(e) {
1826
1826
  }
1827
1827
  return n === 2 && t(`Unfinished custom RegExp for param "${u}"`), d(), i(), r;
1828
1828
  }
1829
- function na(e, t, n) {
1830
- const o = Ys(ta(e.path), n);
1829
+ function ta(e, t, n) {
1830
+ const o = Js(ea(e.path), n);
1831
1831
  if (process.env.NODE_ENV !== "production") {
1832
1832
  const s = /* @__PURE__ */ new Set();
1833
1833
  for (const i of o.keys)
@@ -1842,16 +1842,16 @@ function na(e, t, n) {
1842
1842
  });
1843
1843
  return t && !r.record.aliasOf == !t.record.aliasOf && t.children.push(r), r;
1844
1844
  }
1845
- function oa(e, t) {
1845
+ function na(e, t) {
1846
1846
  const n = [], o = /* @__PURE__ */ new Map();
1847
- t = jn({ strict: !1, end: !0, sensitive: !1 }, t);
1847
+ t = Ln({ strict: !1, end: !0, sensitive: !1 }, t);
1848
1848
  function r(l) {
1849
1849
  return o.get(l);
1850
1850
  }
1851
1851
  function s(l, d, f) {
1852
- const p = !f, m = ra(l);
1853
- process.env.NODE_ENV !== "production" && ca(m, d), m.aliasOf = f && f.record;
1854
- const v = jn(t, l), g = [
1852
+ const p = !f, m = oa(l);
1853
+ process.env.NODE_ENV !== "production" && ia(m, d), m.aliasOf = f && f.record;
1854
+ const v = Ln(t, l), g = [
1855
1855
  m
1856
1856
  ];
1857
1857
  if ("alias" in l) {
@@ -1878,7 +1878,7 @@ function oa(e, t) {
1878
1878
  if (process.env.NODE_ENV !== "production" && V.path === "*")
1879
1879
  throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
1880
1880
  See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.`);
1881
- if (S = na(V, d, v), process.env.NODE_ENV !== "production" && d && W[0] === "/" && la(S, d), f ? (f.alias.push(S), process.env.NODE_ENV !== "production" && ia(f, S)) : (O = O || S, O !== S && O.alias.push(S), p && l.name && !Ln(S) && i(l.name)), m.children) {
1881
+ if (S = ta(V, d, v), process.env.NODE_ENV !== "production" && d && W[0] === "/" && ca(S, d), f ? (f.alias.push(S), process.env.NODE_ENV !== "production" && aa(f, S)) : (O = O || S, O !== S && O.alias.push(S), p && l.name && !Vn(S) && i(l.name)), m.children) {
1882
1882
  const Y = m.children;
1883
1883
  for (let Q = 0; Q < Y.length; Q++)
1884
1884
  s(Y[Q], S, f && f.children[Q]);
@@ -1890,7 +1890,7 @@ See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch
1890
1890
  } : He;
1891
1891
  }
1892
1892
  function i(l) {
1893
- if (To(l)) {
1893
+ if (Ro(l)) {
1894
1894
  const d = o.get(l);
1895
1895
  d && (o.delete(l), n.splice(n.indexOf(d), 1), d.children.forEach(i), d.alias.forEach(i));
1896
1896
  } else {
@@ -1903,11 +1903,11 @@ See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch
1903
1903
  }
1904
1904
  function c(l) {
1905
1905
  let d = 0;
1906
- for (; d < n.length && Xs(l, n[d]) >= 0 && // Adding children with empty path should still appear before the parent
1906
+ for (; d < n.length && Qs(l, n[d]) >= 0 && // Adding children with empty path should still appear before the parent
1907
1907
  // https://github.com/vuejs/router/issues/1124
1908
- (l.record.path !== n[d].record.path || !Do(l, n[d])); )
1908
+ (l.record.path !== n[d].record.path || !Ao(l, n[d])); )
1909
1909
  d++;
1910
- n.splice(d, 0, l), l.record.name && !Ln(l) && o.set(l.record.name, l);
1910
+ n.splice(d, 0, l), l.record.name && !Vn(l) && o.set(l.record.name, l);
1911
1911
  }
1912
1912
  function u(l, d) {
1913
1913
  let f, p = {}, m, v;
@@ -1922,7 +1922,7 @@ See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch
1922
1922
  }
1923
1923
  v = f.record.name, p = R(
1924
1924
  // paramsFromLocation is a new object
1925
- Vn(
1925
+ Mn(
1926
1926
  d.params,
1927
1927
  // only keep params that exist in the resolved location
1928
1928
  // TODO: only keep optional params coming from a parent record
@@ -1930,7 +1930,7 @@ See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch
1930
1930
  ),
1931
1931
  // discard any existing params in the current location that do not exist here
1932
1932
  // #1497 this ensures better active/exact matching
1933
- l.params && Vn(l.params, f.keys.map((O) => O.name))
1933
+ l.params && Mn(l.params, f.keys.map((O) => O.name))
1934
1934
  ), m = f.stringify(p);
1935
1935
  } else if ("path" in l)
1936
1936
  m = l.path, process.env.NODE_ENV !== "production" && !m.startsWith("/") && N(`The Matcher cannot resolve relative paths but received "${m}". Unless you directly called \`matcher.resolve("${m}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`), f = n.find((O) => O.re.test(m)), f && (p = f.parse(m), v = f.record.name);
@@ -1951,18 +1951,18 @@ See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch
1951
1951
  path: m,
1952
1952
  params: p,
1953
1953
  matched: g,
1954
- meta: aa(g)
1954
+ meta: sa(g)
1955
1955
  };
1956
1956
  }
1957
1957
  return e.forEach((l) => s(l)), { addRoute: s, resolve: u, removeRoute: i, getRoutes: a, getRecordMatcher: r };
1958
1958
  }
1959
- function Vn(e, t) {
1959
+ function Mn(e, t) {
1960
1960
  const n = {};
1961
1961
  for (const o of t)
1962
1962
  o in e && (n[o] = e[o]);
1963
1963
  return n;
1964
1964
  }
1965
- function ra(e) {
1965
+ function oa(e) {
1966
1966
  return {
1967
1967
  path: e.path,
1968
1968
  redirect: e.redirect,
@@ -1970,7 +1970,7 @@ function ra(e) {
1970
1970
  meta: e.meta || {},
1971
1971
  aliasOf: void 0,
1972
1972
  beforeEnter: e.beforeEnter,
1973
- props: sa(e),
1973
+ props: ra(e),
1974
1974
  children: e.children || [],
1975
1975
  instances: {},
1976
1976
  leaveGuards: /* @__PURE__ */ new Set(),
@@ -1979,7 +1979,7 @@ function ra(e) {
1979
1979
  components: "components" in e ? e.components || null : e.component && { default: e.component }
1980
1980
  };
1981
1981
  }
1982
- function sa(e) {
1982
+ function ra(e) {
1983
1983
  const t = {}, n = e.props || !1;
1984
1984
  if ("component" in e)
1985
1985
  t.default = n;
@@ -1988,7 +1988,7 @@ function sa(e) {
1988
1988
  t[o] = typeof n == "object" ? n[o] : n;
1989
1989
  return t;
1990
1990
  }
1991
- function Ln(e) {
1991
+ function Vn(e) {
1992
1992
  for (; e; ) {
1993
1993
  if (e.record.aliasOf)
1994
1994
  return !0;
@@ -1996,55 +1996,55 @@ function Ln(e) {
1996
1996
  }
1997
1997
  return !1;
1998
1998
  }
1999
- function aa(e) {
1999
+ function sa(e) {
2000
2000
  return e.reduce((t, n) => R(t, n.meta), {});
2001
2001
  }
2002
- function jn(e, t) {
2002
+ function Ln(e, t) {
2003
2003
  const n = {};
2004
2004
  for (const o in e)
2005
2005
  n[o] = o in t ? t[o] : e[o];
2006
2006
  return n;
2007
2007
  }
2008
- function Bt(e, t) {
2008
+ function jt(e, t) {
2009
2009
  return e.name === t.name && e.optional === t.optional && e.repeatable === t.repeatable;
2010
2010
  }
2011
- function ia(e, t) {
2011
+ function aa(e, t) {
2012
2012
  for (const n of e.keys)
2013
- if (!n.optional && !t.keys.find(Bt.bind(null, n)))
2013
+ if (!n.optional && !t.keys.find(jt.bind(null, n)))
2014
2014
  return N(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
2015
2015
  for (const n of t.keys)
2016
- if (!n.optional && !e.keys.find(Bt.bind(null, n)))
2016
+ if (!n.optional && !e.keys.find(jt.bind(null, n)))
2017
2017
  return N(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
2018
2018
  }
2019
- function ca(e, t) {
2019
+ function ia(e, t) {
2020
2020
  t && t.record.name && !e.name && !e.path && N(`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.`);
2021
2021
  }
2022
- function la(e, t) {
2022
+ function ca(e, t) {
2023
2023
  for (const n of t.keys)
2024
- if (!e.keys.find(Bt.bind(null, n)))
2024
+ if (!e.keys.find(jt.bind(null, n)))
2025
2025
  return N(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`);
2026
2026
  }
2027
- function Do(e, t) {
2028
- return t.children.some((n) => n === e || Do(e, n));
2027
+ function Ao(e, t) {
2028
+ return t.children.some((n) => n === e || Ao(e, n));
2029
+ }
2030
+ const To = /#/g, la = /&/g, ua = /\//g, da = /=/g, fa = /\?/g, Do = /\+/g, pa = /%5B/g, ha = /%5D/g, Mo = /%5E/g, ma = /%60/g, Vo = /%7B/g, va = /%7C/g, Lo = /%7D/g, ga = /%20/g;
2031
+ function rn(e) {
2032
+ return encodeURI("" + e).replace(va, "|").replace(pa, "[").replace(ha, "]");
2029
2033
  }
2030
- const Mo = /#/g, ua = /&/g, da = /\//g, fa = /=/g, pa = /\?/g, Vo = /\+/g, ha = /%5B/g, ma = /%5D/g, Lo = /%5E/g, va = /%60/g, jo = /%7B/g, ga = /%7C/g, Bo = /%7D/g, ya = /%20/g;
2031
- function sn(e) {
2032
- return encodeURI("" + e).replace(ga, "|").replace(ha, "[").replace(ma, "]");
2034
+ function ya(e) {
2035
+ return rn(e).replace(Vo, "{").replace(Lo, "}").replace(Mo, "^");
2033
2036
  }
2034
- function wa(e) {
2035
- return sn(e).replace(jo, "{").replace(Bo, "}").replace(Lo, "^");
2037
+ function Bt(e) {
2038
+ return rn(e).replace(Do, "%2B").replace(ga, "+").replace(To, "%23").replace(la, "%26").replace(ma, "`").replace(Vo, "{").replace(Lo, "}").replace(Mo, "^");
2036
2039
  }
2037
- function Ut(e) {
2038
- return sn(e).replace(Vo, "%2B").replace(ya, "+").replace(Mo, "%23").replace(ua, "%26").replace(va, "`").replace(jo, "{").replace(Bo, "}").replace(Lo, "^");
2040
+ function wa(e) {
2041
+ return Bt(e).replace(da, "%3D");
2039
2042
  }
2040
2043
  function _a(e) {
2041
- return Ut(e).replace(fa, "%3D");
2044
+ return rn(e).replace(To, "%23").replace(fa, "%3F");
2042
2045
  }
2043
2046
  function ba(e) {
2044
- return sn(e).replace(Mo, "%23").replace(pa, "%3F");
2045
- }
2046
- function Ea(e) {
2047
- return e == null ? "" : ba(e).replace(da, "%2F");
2047
+ return e == null ? "" : _a(e).replace(ua, "%2F");
2048
2048
  }
2049
2049
  function Qe(e) {
2050
2050
  try {
@@ -2054,13 +2054,13 @@ function Qe(e) {
2054
2054
  }
2055
2055
  return "" + e;
2056
2056
  }
2057
- function ka(e) {
2057
+ function Ea(e) {
2058
2058
  const t = {};
2059
2059
  if (e === "" || e === "?")
2060
2060
  return t;
2061
2061
  const o = (e[0] === "?" ? e.slice(1) : e).split("&");
2062
2062
  for (let r = 0; r < o.length; ++r) {
2063
- const s = o[r].replace(Vo, " "), i = s.indexOf("="), a = Qe(i < 0 ? s : s.slice(0, i)), c = i < 0 ? null : Qe(s.slice(i + 1));
2063
+ const s = o[r].replace(Do, " "), i = s.indexOf("="), a = Qe(i < 0 ? s : s.slice(0, i)), c = i < 0 ? null : Qe(s.slice(i + 1));
2064
2064
  if (a in t) {
2065
2065
  let u = t[a];
2066
2066
  K(u) || (u = t[a] = [u]), u.push(c);
@@ -2069,21 +2069,21 @@ function ka(e) {
2069
2069
  }
2070
2070
  return t;
2071
2071
  }
2072
- function Bn(e) {
2072
+ function jn(e) {
2073
2073
  let t = "";
2074
2074
  for (let n in e) {
2075
2075
  const o = e[n];
2076
- if (n = _a(n), o == null) {
2076
+ if (n = wa(n), o == null) {
2077
2077
  o !== void 0 && (t += (t.length ? "&" : "") + n);
2078
2078
  continue;
2079
2079
  }
2080
- (K(o) ? o.map((s) => s && Ut(s)) : [o && Ut(o)]).forEach((s) => {
2080
+ (K(o) ? o.map((s) => s && Bt(s)) : [o && Bt(o)]).forEach((s) => {
2081
2081
  s !== void 0 && (t += (t.length ? "&" : "") + n, s != null && (t += "=" + s));
2082
2082
  });
2083
2083
  }
2084
2084
  return t;
2085
2085
  }
2086
- function Sa(e) {
2086
+ function ka(e) {
2087
2087
  const t = {};
2088
2088
  for (const n in e) {
2089
2089
  const o = e[n];
@@ -2091,7 +2091,7 @@ function Sa(e) {
2091
2091
  }
2092
2092
  return t;
2093
2093
  }
2094
- const Ia = Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : ""), Un = Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : ""), an = Symbol(process.env.NODE_ENV !== "production" ? "router" : ""), Uo = Symbol(process.env.NODE_ENV !== "production" ? "route location" : ""), Ht = Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
2094
+ const Sa = Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : ""), Bn = Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : ""), sn = Symbol(process.env.NODE_ENV !== "production" ? "router" : ""), jo = Symbol(process.env.NODE_ENV !== "production" ? "route location" : ""), Ut = Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
2095
2095
  function Me() {
2096
2096
  let e = [];
2097
2097
  function t(o) {
@@ -2117,12 +2117,12 @@ function he(e, t, n, o, r) {
2117
2117
  d === !1 ? a(Te(4, {
2118
2118
  from: n,
2119
2119
  to: t
2120
- })) : d instanceof Error ? a(d) : Fs(d) ? a(Te(2, {
2120
+ })) : d instanceof Error ? a(d) : Ws(d) ? a(Te(2, {
2121
2121
  from: t,
2122
2122
  to: d
2123
2123
  })) : (s && // since enterCallbackArray is truthy, both record and name also are
2124
2124
  o.enterCallbacks[r] === s && typeof d == "function" && s.push(d), i());
2125
- }, u = e.call(o && o.instances[r], t, n, process.env.NODE_ENV !== "production" ? Oa(c, t, n) : c);
2125
+ }, u = e.call(o && o.instances[r], t, n, process.env.NODE_ENV !== "production" ? Ia(c, t, n) : c);
2126
2126
  let l = Promise.resolve(u);
2127
2127
  if (e.length < 3 && (l = l.then(c)), process.env.NODE_ENV !== "production" && e.length > 2) {
2128
2128
  const d = `The "next" callback was never called inside of ${e.name ? '"' + e.name + '"' : ""}:
@@ -2138,13 +2138,13 @@ ${e.toString()}
2138
2138
  l.catch((d) => a(d));
2139
2139
  });
2140
2140
  }
2141
- function Oa(e, t, n) {
2141
+ function Ia(e, t, n) {
2142
2142
  let o = 0;
2143
2143
  return function() {
2144
2144
  o++ === 1 && N(`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);
2145
2145
  };
2146
2146
  }
2147
- function xt(e, t, n, o) {
2147
+ function Pt(e, t, n, o) {
2148
2148
  const r = [];
2149
2149
  for (const s of e) {
2150
2150
  process.env.NODE_ENV !== "production" && !s.components && !s.children.length && N(`Record with path "${s.path}" is either missing a "component(s)" or "children" property.`);
@@ -2162,7 +2162,7 @@ function xt(e, t, n, o) {
2162
2162
  !a.__warnedDefineAsync && (a.__warnedDefineAsync = !0, N(`Component "${i}" in record with path "${s.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`));
2163
2163
  }
2164
2164
  if (!(t !== "beforeRouteEnter" && !s.instances[i]))
2165
- if (Pa(a)) {
2165
+ if (Oa(a)) {
2166
2166
  const u = (a.__vccOpts || a)[t];
2167
2167
  u && r.push(he(u, n, o, s, i));
2168
2168
  } else {
@@ -2170,7 +2170,7 @@ function xt(e, t, n, o) {
2170
2170
  process.env.NODE_ENV !== "production" && !("catch" in c) && (N(`Component "${i}" in record with path "${s.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.`), c = Promise.resolve(c)), r.push(() => c.then((u) => {
2171
2171
  if (!u)
2172
2172
  return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${s.path}"`));
2173
- const l = Ps(u) ? u.default : u;
2173
+ const l = Os(u) ? u.default : u;
2174
2174
  s.components[i] = l;
2175
2175
  const f = (l.__vccOpts || l)[t];
2176
2176
  return f && he(f, n, o, s, i)();
@@ -2180,42 +2180,42 @@ function xt(e, t, n, o) {
2180
2180
  }
2181
2181
  return r;
2182
2182
  }
2183
- function Pa(e) {
2183
+ function Oa(e) {
2184
2184
  return typeof e == "object" || "displayName" in e || "props" in e || "__vccOpts" in e;
2185
2185
  }
2186
- function Hn(e) {
2187
- const t = ne(an), n = ne(Uo), o = L(() => t.resolve(E(e.to))), r = L(() => {
2186
+ function Un(e) {
2187
+ const t = ne(sn), n = ne(jo), o = L(() => t.resolve(k(e.to))), r = L(() => {
2188
2188
  const { matched: c } = o.value, { length: u } = c, l = c[u - 1], d = n.matched;
2189
2189
  if (!l || !d.length)
2190
2190
  return -1;
2191
2191
  const f = d.findIndex(ye.bind(null, l));
2192
2192
  if (f > -1)
2193
2193
  return f;
2194
- const p = Wn(c[u - 2]);
2194
+ const p = Hn(c[u - 2]);
2195
2195
  return (
2196
2196
  // we are dealing with nested routes
2197
2197
  u > 1 && // if the parent and matched route have the same path, this link is
2198
2198
  // referring to the empty child. Or we currently are on a different
2199
2199
  // child of the same parent
2200
- Wn(l) === p && // avoid comparing the child with its parent
2200
+ Hn(l) === p && // avoid comparing the child with its parent
2201
2201
  d[d.length - 1].path !== p ? d.findIndex(ye.bind(null, c[u - 2])) : f
2202
2202
  );
2203
- }), s = L(() => r.value > -1 && Ca(n.params, o.value.params)), i = L(() => r.value > -1 && r.value === n.matched.length - 1 && Ro(n.params, o.value.params));
2203
+ }), s = L(() => r.value > -1 && Na(n.params, o.value.params)), i = L(() => r.value > -1 && r.value === n.matched.length - 1 && No(n.params, o.value.params));
2204
2204
  function a(c = {}) {
2205
- return Na(c) ? t[E(e.replace) ? "replace" : "push"](
2206
- E(e.to)
2205
+ return $a(c) ? t[k(e.replace) ? "replace" : "push"](
2206
+ k(e.to)
2207
2207
  // avoid uncaught errors are they are logged anyway
2208
2208
  ).catch(He) : Promise.resolve();
2209
2209
  }
2210
2210
  if (process.env.NODE_ENV !== "production" && ie) {
2211
- const c = Yt();
2211
+ const c = Jt();
2212
2212
  if (c) {
2213
2213
  const u = {
2214
2214
  route: o.value,
2215
2215
  isActive: s.value,
2216
2216
  isExactActive: i.value
2217
2217
  };
2218
- c.__vrl_devtools = c.__vrl_devtools || [], c.__vrl_devtools.push(u), Sr(() => {
2218
+ c.__vrl_devtools = c.__vrl_devtools || [], c.__vrl_devtools.push(u), Er(() => {
2219
2219
  u.route = o.value, u.isActive = s.value, u.isExactActive = i.value;
2220
2220
  }, { flush: "post" });
2221
2221
  }
@@ -2228,7 +2228,7 @@ function Hn(e) {
2228
2228
  navigate: a
2229
2229
  };
2230
2230
  }
2231
- const xa = /* @__PURE__ */ Z({
2231
+ const Pa = /* @__PURE__ */ Z({
2232
2232
  name: "RouterLink",
2233
2233
  compatConfig: { MODE: 3 },
2234
2234
  props: {
@@ -2246,20 +2246,20 @@ const xa = /* @__PURE__ */ Z({
2246
2246
  default: "page"
2247
2247
  }
2248
2248
  },
2249
- useLink: Hn,
2249
+ useLink: Un,
2250
2250
  setup(e, { slots: t }) {
2251
- const n = Ee(Hn(e)), { options: o } = ne(an), r = L(() => ({
2252
- [Fn(e.activeClass, o.linkActiveClass, "router-link-active")]: n.isActive,
2251
+ const n = Ee(Un(e)), { options: o } = ne(sn), r = L(() => ({
2252
+ [Wn(e.activeClass, o.linkActiveClass, "router-link-active")]: n.isActive,
2253
2253
  // [getLinkClass(
2254
2254
  // props.inactiveClass,
2255
2255
  // options.linkInactiveClass,
2256
2256
  // 'router-link-inactive'
2257
2257
  // )]: !link.isExactActive,
2258
- [Fn(e.exactActiveClass, o.linkExactActiveClass, "router-link-exact-active")]: n.isExactActive
2258
+ [Wn(e.exactActiveClass, o.linkExactActiveClass, "router-link-exact-active")]: n.isExactActive
2259
2259
  }));
2260
2260
  return () => {
2261
2261
  const s = t.default && t.default(n);
2262
- return e.custom ? s : mo("a", {
2262
+ return e.custom ? s : ho("a", {
2263
2263
  "aria-current": n.isExactActive ? e.ariaCurrentValue : null,
2264
2264
  href: n.href,
2265
2265
  // this would override user added attrs but Vue will still add
@@ -2269,8 +2269,8 @@ const xa = /* @__PURE__ */ Z({
2269
2269
  }, s);
2270
2270
  };
2271
2271
  }
2272
- }), $a = xa;
2273
- function Na(e) {
2272
+ }), xa = Pa;
2273
+ function $a(e) {
2274
2274
  if (!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) && !e.defaultPrevented && !(e.button !== void 0 && e.button !== 0)) {
2275
2275
  if (e.currentTarget && e.currentTarget.getAttribute) {
2276
2276
  const t = e.currentTarget.getAttribute("target");
@@ -2280,7 +2280,7 @@ function Na(e) {
2280
2280
  return e.preventDefault && e.preventDefault(), !0;
2281
2281
  }
2282
2282
  }
2283
- function Ca(e, t) {
2283
+ function Na(e, t) {
2284
2284
  for (const n in t) {
2285
2285
  const o = t[n], r = e[n];
2286
2286
  if (typeof o == "string") {
@@ -2291,10 +2291,10 @@ function Ca(e, t) {
2291
2291
  }
2292
2292
  return !0;
2293
2293
  }
2294
- function Wn(e) {
2294
+ function Hn(e) {
2295
2295
  return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
2296
2296
  }
2297
- const Fn = (e, t, n) => e ?? t ?? n, Ra = /* @__PURE__ */ Z({
2297
+ const Wn = (e, t, n) => e ?? t ?? n, Ca = /* @__PURE__ */ Z({
2298
2298
  name: "RouterView",
2299
2299
  // #674 we manually inherit them
2300
2300
  inheritAttrs: !1,
@@ -2309,16 +2309,16 @@ const Fn = (e, t, n) => e ?? t ?? n, Ra = /* @__PURE__ */ Z({
2309
2309
  // https://github.com/vuejs/router/issues/1315
2310
2310
  compatConfig: { MODE: 3 },
2311
2311
  setup(e, { attrs: t, slots: n }) {
2312
- process.env.NODE_ENV !== "production" && Ta();
2313
- const o = ne(Ht), r = L(() => e.route || o.value), s = ne(Un, 0), i = L(() => {
2314
- let u = E(s);
2312
+ process.env.NODE_ENV !== "production" && Aa();
2313
+ const o = ne(Ut), r = L(() => e.route || o.value), s = ne(Bn, 0), i = L(() => {
2314
+ let u = k(s);
2315
2315
  const { matched: l } = r.value;
2316
2316
  let d;
2317
2317
  for (; (d = l[u]) && !d.components; )
2318
2318
  u++;
2319
2319
  return u;
2320
2320
  }), a = L(() => r.value.matched[i.value]);
2321
- ct(Un, L(() => i.value + 1)), ct(Ia, a), ct(Ht, r);
2321
+ it(Bn, L(() => i.value + 1)), it(Sa, a), it(Ut, r);
2322
2322
  const c = T();
2323
2323
  return J(() => [c.value, a.value, e.name], ([u, l, d], [f, p, m]) => {
2324
2324
  l && (l.instances[d] = u, p && p !== l && u && u === f && (l.leaveGuards.size || (l.leaveGuards = p.leaveGuards), l.updateGuards.size || (l.updateGuards = p.updateGuards))), u && l && // if there is no instance but to and from are the same this might be
@@ -2327,8 +2327,8 @@ const Fn = (e, t, n) => e ?? t ?? n, Ra = /* @__PURE__ */ Z({
2327
2327
  }, { flush: "post" }), () => {
2328
2328
  const u = r.value, l = e.name, d = a.value, f = d && d.components[l];
2329
2329
  if (!f)
2330
- return Gn(n.default, { Component: f, route: u });
2331
- const p = d.props[l], m = p ? p === !0 ? u.params : typeof p == "function" ? p(u) : p : null, g = mo(f, R({}, m, t, {
2330
+ return Fn(n.default, { Component: f, route: u });
2331
+ const p = d.props[l], m = p ? p === !0 ? u.params : typeof p == "function" ? p(u) : p : null, g = ho(f, R({}, m, t, {
2332
2332
  onVnodeUnmounted: (S) => {
2333
2333
  S.component.isUnmounted && (d.instances[l] = null);
2334
2334
  },
@@ -2348,20 +2348,20 @@ const Fn = (e, t, n) => e ?? t ?? n, Ra = /* @__PURE__ */ Z({
2348
2348
  return (
2349
2349
  // pass the vnode to the slot as a prop.
2350
2350
  // h and <component :is="..."> both accept vnodes
2351
- Gn(n.default, { Component: g, route: u }) || g
2351
+ Fn(n.default, { Component: g, route: u }) || g
2352
2352
  );
2353
2353
  };
2354
2354
  }
2355
2355
  });
2356
- function Gn(e, t) {
2356
+ function Fn(e, t) {
2357
2357
  if (!e)
2358
2358
  return null;
2359
2359
  const n = e(t);
2360
2360
  return n.length === 1 ? n[0] : n;
2361
2361
  }
2362
- const Aa = Ra;
2363
- function Ta() {
2364
- const e = Yt(), t = e.parent && e.parent.type.name, n = e.parent && e.parent.subTree && e.parent.subTree.type;
2362
+ const Ra = Ca;
2363
+ function Aa() {
2364
+ const e = Jt(), t = e.parent && e.parent.type.name, n = e.parent && e.parent.subTree && e.parent.subTree.type;
2365
2365
  if (t && (t === "KeepAlive" || t.includes("Transition")) && typeof n == "object" && n.name === "RouterView") {
2366
2366
  const o = t === "KeepAlive" ? "keep-alive" : "transition";
2367
2367
  N(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
@@ -2377,7 +2377,7 @@ Use slot props instead:
2377
2377
  function Ve(e, t) {
2378
2378
  const n = R({}, e, {
2379
2379
  // remove variables that can contain vue instances
2380
- matched: e.matched.map((o) => Wa(o, ["instances", "children", "aliasOf"]))
2380
+ matched: e.matched.map((o) => Ha(o, ["instances", "children", "aliasOf"]))
2381
2381
  });
2382
2382
  return {
2383
2383
  _custom: {
@@ -2389,20 +2389,20 @@ function Ve(e, t) {
2389
2389
  }
2390
2390
  };
2391
2391
  }
2392
- function ot(e) {
2392
+ function nt(e) {
2393
2393
  return {
2394
2394
  _custom: {
2395
2395
  display: e
2396
2396
  }
2397
2397
  };
2398
2398
  }
2399
- let Da = 0;
2400
- function Ma(e, t, n) {
2399
+ let Ta = 0;
2400
+ function Da(e, t, n) {
2401
2401
  if (t.__hasDevtools)
2402
2402
  return;
2403
2403
  t.__hasDevtools = !0;
2404
- const o = Da++;
2405
- nn({
2404
+ const o = Ta++;
2405
+ tn({
2406
2406
  id: "org.vuejs.router" + (o ? "." + o : ""),
2407
2407
  label: "Vue Router",
2408
2408
  packageName: "vue-router",
@@ -2425,12 +2425,12 @@ function Ma(e, t, n) {
2425
2425
  label: (f.name ? `${f.name.toString()}: ` : "") + f.path,
2426
2426
  textColor: 0,
2427
2427
  tooltip: "This component is rendered by &lt;router-view&gt;",
2428
- backgroundColor: Ho
2428
+ backgroundColor: Bo
2429
2429
  });
2430
2430
  }
2431
2431
  K(d.__vrl_devtools) && (d.__devtoolsApi = r, d.__vrl_devtools.forEach((f) => {
2432
- let p = Go, m = "";
2433
- f.isExactActive ? (p = Fo, m = "This is exactly active") : f.isActive && (p = Wo, m = "This link is active"), l.tags.push({
2432
+ let p = Wo, m = "";
2433
+ f.isExactActive ? (p = Ho, m = "This is exactly active") : f.isActive && (p = Uo, m = "This link is active"), l.tags.push({
2434
2434
  label: f.route.path,
2435
2435
  textColor: 0,
2436
2436
  tooltip: m,
@@ -2461,7 +2461,7 @@ function Ma(e, t, n) {
2461
2461
  let i = 0;
2462
2462
  t.beforeEach((l, d) => {
2463
2463
  const f = {
2464
- guard: ot("beforeEach"),
2464
+ guard: nt("beforeEach"),
2465
2465
  from: Ve(d, "Current Location during this navigation"),
2466
2466
  to: Ve(l, "Target location")
2467
2467
  };
@@ -2479,7 +2479,7 @@ function Ma(e, t, n) {
2479
2479
  });
2480
2480
  }), t.afterEach((l, d, f) => {
2481
2481
  const p = {
2482
- guard: ot("afterEach")
2482
+ guard: nt("afterEach")
2483
2483
  };
2484
2484
  f ? (p.failure = {
2485
2485
  _custom: {
@@ -2489,7 +2489,7 @@ function Ma(e, t, n) {
2489
2489
  tooltip: "Navigation Failure",
2490
2490
  value: f
2491
2491
  }
2492
- }, p.status = ot("❌")) : p.status = ot("✅"), p.from = Ve(d, "Current Location during this navigation"), p.to = Ve(l, "Target location"), r.addTimelineEvent({
2492
+ }, p.status = nt("❌")) : p.status = nt("✅"), p.from = Ve(d, "Current Location during this navigation"), p.to = Ve(l, "Target location"), r.addTimelineEvent({
2493
2493
  layerId: s,
2494
2494
  event: {
2495
2495
  title: "End of navigation",
@@ -2515,10 +2515,10 @@ function Ma(e, t, n) {
2515
2515
  let d = n.getRoutes().filter((f) => !f.parent || // these routes have a parent with no component which will not appear in the view
2516
2516
  // therefore we still need to include them
2517
2517
  !f.parent.record.components);
2518
- d.forEach(Ko), l.filter && (d = d.filter((f) => (
2518
+ d.forEach(zo), l.filter && (d = d.filter((f) => (
2519
2519
  // save matches state based on the payload
2520
- Wt(f, l.filter.toLowerCase())
2521
- ))), d.forEach((f) => qo(f, t.currentRoute.value)), l.rootNodes = d.map(zo);
2520
+ Ht(f, l.filter.toLowerCase())
2521
+ ))), d.forEach((f) => Go(f, t.currentRoute.value)), l.rootNodes = d.map(Fo);
2522
2522
  }
2523
2523
  let u;
2524
2524
  r.on.getInspectorTree((l) => {
@@ -2527,16 +2527,16 @@ function Ma(e, t, n) {
2527
2527
  if (l.app === e && l.inspectorId === a) {
2528
2528
  const f = n.getRoutes().find((p) => p.record.__vd_id === l.nodeId);
2529
2529
  f && (l.state = {
2530
- options: La(f)
2530
+ options: Va(f)
2531
2531
  });
2532
2532
  }
2533
2533
  }), r.sendInspectorTree(a), r.sendInspectorState(a);
2534
2534
  });
2535
2535
  }
2536
- function Va(e) {
2536
+ function Ma(e) {
2537
2537
  return e.optional ? e.repeatable ? "*" : "?" : e.repeatable ? "+" : "";
2538
2538
  }
2539
- function La(e) {
2539
+ function Va(e) {
2540
2540
  const { record: t } = e, n = [
2541
2541
  { editable: !1, key: "path", value: t.path }
2542
2542
  ];
@@ -2551,7 +2551,7 @@ function La(e) {
2551
2551
  _custom: {
2552
2552
  type: null,
2553
2553
  readOnly: !0,
2554
- display: e.keys.map((o) => `${o.name}${Va(o)}`).join(" "),
2554
+ display: e.keys.map((o) => `${o.name}${Ma(o)}`).join(" "),
2555
2555
  tooltip: "Param keys",
2556
2556
  value: e.keys
2557
2557
  }
@@ -2582,80 +2582,80 @@ function La(e) {
2582
2582
  }
2583
2583
  }), n;
2584
2584
  }
2585
- const Ho = 15485081, Wo = 2450411, Fo = 8702998, ja = 2282478, Go = 16486972, Ba = 6710886;
2586
- function zo(e) {
2585
+ const Bo = 15485081, Uo = 2450411, Ho = 8702998, La = 2282478, Wo = 16486972, ja = 6710886;
2586
+ function Fo(e) {
2587
2587
  const t = [], { record: n } = e;
2588
2588
  n.name != null && t.push({
2589
2589
  label: String(n.name),
2590
2590
  textColor: 0,
2591
- backgroundColor: ja
2591
+ backgroundColor: La
2592
2592
  }), n.aliasOf && t.push({
2593
2593
  label: "alias",
2594
2594
  textColor: 0,
2595
- backgroundColor: Go
2595
+ backgroundColor: Wo
2596
2596
  }), e.__vd_match && t.push({
2597
2597
  label: "matches",
2598
2598
  textColor: 0,
2599
- backgroundColor: Ho
2599
+ backgroundColor: Bo
2600
2600
  }), e.__vd_exactActive && t.push({
2601
2601
  label: "exact",
2602
2602
  textColor: 0,
2603
- backgroundColor: Fo
2603
+ backgroundColor: Ho
2604
2604
  }), e.__vd_active && t.push({
2605
2605
  label: "active",
2606
2606
  textColor: 0,
2607
- backgroundColor: Wo
2607
+ backgroundColor: Uo
2608
2608
  }), n.redirect && t.push({
2609
2609
  label: typeof n.redirect == "string" ? `redirect: ${n.redirect}` : "redirects",
2610
2610
  textColor: 16777215,
2611
- backgroundColor: Ba
2611
+ backgroundColor: ja
2612
2612
  });
2613
2613
  let o = n.__vd_id;
2614
- return o == null && (o = String(Ua++), n.__vd_id = o), {
2614
+ return o == null && (o = String(Ba++), n.__vd_id = o), {
2615
2615
  id: o,
2616
2616
  label: n.path,
2617
2617
  tags: t,
2618
- children: e.children.map(zo)
2618
+ children: e.children.map(Fo)
2619
2619
  };
2620
2620
  }
2621
- let Ua = 0;
2622
- const Ha = /^\/(.*)\/([a-z]*)$/;
2623
- function qo(e, t) {
2621
+ let Ba = 0;
2622
+ const Ua = /^\/(.*)\/([a-z]*)$/;
2623
+ function Go(e, t) {
2624
2624
  const n = t.matched.length && ye(t.matched[t.matched.length - 1], e.record);
2625
- e.__vd_exactActive = e.__vd_active = n, n || (e.__vd_active = t.matched.some((o) => ye(o, e.record))), e.children.forEach((o) => qo(o, t));
2625
+ e.__vd_exactActive = e.__vd_active = n, n || (e.__vd_active = t.matched.some((o) => ye(o, e.record))), e.children.forEach((o) => Go(o, t));
2626
2626
  }
2627
- function Ko(e) {
2628
- e.__vd_match = !1, e.children.forEach(Ko);
2627
+ function zo(e) {
2628
+ e.__vd_match = !1, e.children.forEach(zo);
2629
2629
  }
2630
- function Wt(e, t) {
2631
- const n = String(e.re).match(Ha);
2630
+ function Ht(e, t) {
2631
+ const n = String(e.re).match(Ua);
2632
2632
  if (e.__vd_match = !1, !n || n.length < 3)
2633
2633
  return !1;
2634
2634
  if (new RegExp(n[1].replace(/\$$/, ""), n[2]).test(t))
2635
- return e.children.forEach((i) => Wt(i, t)), e.record.path !== "/" || t === "/" ? (e.__vd_match = e.re.test(t), !0) : !1;
2635
+ return e.children.forEach((i) => Ht(i, t)), e.record.path !== "/" || t === "/" ? (e.__vd_match = e.re.test(t), !0) : !1;
2636
2636
  const r = e.record.path.toLowerCase(), s = Qe(r);
2637
- return !t.startsWith("/") && (s.includes(t) || r.includes(t)) || s.startsWith(t) || r.startsWith(t) || e.record.name && String(e.record.name).includes(t) ? !0 : e.children.some((i) => Wt(i, t));
2637
+ return !t.startsWith("/") && (s.includes(t) || r.includes(t)) || s.startsWith(t) || r.startsWith(t) || e.record.name && String(e.record.name).includes(t) ? !0 : e.children.some((i) => Ht(i, t));
2638
2638
  }
2639
- function Wa(e, t) {
2639
+ function Ha(e, t) {
2640
2640
  const n = {};
2641
2641
  for (const o in e)
2642
2642
  t.includes(o) || (n[o] = e[o]);
2643
2643
  return n;
2644
2644
  }
2645
- function Fa(e) {
2646
- const t = oa(e.routes, e), n = e.parseQuery || ka, o = e.stringifyQuery || Bn, r = e.history;
2645
+ function Wa(e) {
2646
+ const t = na(e.routes, e), n = e.parseQuery || Ea, o = e.stringifyQuery || jn, r = e.history;
2647
2647
  if (process.env.NODE_ENV !== "production" && !r)
2648
2648
  throw new Error('Provide the "history" option when calling "createRouter()": https://next.router.vuejs.org/api/#history.');
2649
- const s = Me(), i = Me(), a = Me(), c = br(pe);
2649
+ const s = Me(), i = Me(), a = Me(), c = wr(pe);
2650
2650
  let u = pe;
2651
2651
  ie && e.scrollBehavior && "scrollRestoration" in history && (history.scrollRestoration = "manual");
2652
- const l = Ot.bind(null, (h) => "" + h), d = Ot.bind(null, Ea), f = (
2652
+ const l = It.bind(null, (h) => "" + h), d = It.bind(null, ba), f = (
2653
2653
  // @ts-expect-error: intentionally avoid the type check
2654
- Ot.bind(null, Qe)
2654
+ It.bind(null, Qe)
2655
2655
  );
2656
2656
  function p(h, w) {
2657
2657
  let y, b;
2658
- return To(h) ? (y = t.getRecordMatcher(h), b = w) : b = h, t.addRoute(b, y);
2658
+ return Ro(h) ? (y = t.getRecordMatcher(h), b = w) : b = h, t.addRoute(b, y);
2659
2659
  }
2660
2660
  function m(h) {
2661
2661
  const w = t.getRecordMatcher(h);
@@ -2669,7 +2669,7 @@ function Fa(e) {
2669
2669
  }
2670
2670
  function S(h, w) {
2671
2671
  if (w = R({}, w || c.value), typeof h == "string") {
2672
- const P = Pt(n, h, w.path), j = t.resolve({ path: P.path }, w), _e = r.createHref(P.fullPath);
2672
+ const P = Ot(n, h, w.path), j = t.resolve({ path: P.path }, w), _e = r.createHref(P.fullPath);
2673
2673
  return process.env.NODE_ENV !== "production" && (_e.startsWith("//") ? N(`Location "${h}" resolved to "${_e}". A resolved location cannot start with multiple slashes.`) : j.matched.length || N(`No match found for location with path "${h}"`)), R(P, j, {
2674
2674
  params: f(j.params),
2675
2675
  hash: Qe(P.hash),
@@ -2681,7 +2681,7 @@ function Fa(e) {
2681
2681
  if ("path" in h)
2682
2682
  process.env.NODE_ENV !== "production" && "params" in h && !("name" in h) && // @ts-expect-error: the type is never
2683
2683
  Object.keys(h.params).length && N(`Path "${h.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`), y = R({}, h, {
2684
- path: Pt(n, h.path, w.path).path
2684
+ path: Ot(n, h.path, w.path).path
2685
2685
  });
2686
2686
  else {
2687
2687
  const P = R({}, h.params);
@@ -2693,8 +2693,8 @@ function Fa(e) {
2693
2693
  }
2694
2694
  const b = t.resolve(y, w), C = h.hash || "";
2695
2695
  process.env.NODE_ENV !== "production" && C && !C.startsWith("#") && N(`A \`hash\` should always start with the character "#". Replace "${C}" with "#${C}".`), b.params = l(f(b.params));
2696
- const B = Ns(o, R({}, h, {
2697
- hash: wa(C),
2696
+ const B = $s(o, R({}, h, {
2697
+ hash: ya(C),
2698
2698
  path: b.path
2699
2699
  })), $ = r.createHref(B);
2700
2700
  return process.env.NODE_ENV !== "production" && ($.startsWith("//") ? N(`Location "${h}" resolved to "${$}". A resolved location cannot start with multiple slashes.`) : b.matched.length || N(`No match found for location with path "${"path" in h ? h.path : h}"`)), R({
@@ -2708,7 +2708,7 @@ function Fa(e) {
2708
2708
  // numbers at `$route.query`, but at the point, the user will have to
2709
2709
  // use their own type anyway.
2710
2710
  // https://github.com/vuejs/router/issues/328#issuecomment-649481567
2711
- o === Bn ? Sa(h.query) : h.query || {}
2711
+ o === jn ? ka(h.query) : h.query || {}
2712
2712
  )
2713
2713
  }, b, {
2714
2714
  redirectedFrom: void 0,
@@ -2716,7 +2716,7 @@ function Fa(e) {
2716
2716
  });
2717
2717
  }
2718
2718
  function O(h) {
2719
- return typeof h == "string" ? Pt(n, h, c.value.path) : R({}, h);
2719
+ return typeof h == "string" ? Ot(n, h, c.value.path) : R({}, h);
2720
2720
  }
2721
2721
  function V(h, w) {
2722
2722
  if (u !== h)
@@ -2766,7 +2766,7 @@ ${JSON.stringify(b, null, 2)}
2766
2766
  const j = y;
2767
2767
  j.redirectedFrom = w;
2768
2768
  let _e;
2769
- return !B && Nn(o, b, y) && (_e = Te(16, { to: j, from: b }), En(
2769
+ return !B && $n(o, b, y) && (_e = Te(16, { to: j, from: b }), bn(
2770
2770
  b,
2771
2771
  b,
2772
2772
  // this is a push, the only way for it to be triggered from a
@@ -2775,13 +2775,13 @@ ${JSON.stringify(b, null, 2)}
2775
2775
  // This cannot be the first navigation because the initial location
2776
2776
  // cannot be manually navigated to
2777
2777
  !1
2778
- )), (_e ? Promise.resolve(_e) : k(j, b)).catch((q) => ae(q) ? (
2778
+ )), (_e ? Promise.resolve(_e) : E(j, b)).catch((q) => ae(q) ? (
2779
2779
  // navigation redirects still mark the router as ready
2780
2780
  ae(
2781
2781
  q,
2782
2782
  2
2783
2783
  /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
2784
- ) ? q : Et(q)
2784
+ ) ? q : bt(q)
2785
2785
  ) : (
2786
2786
  // reject any unknown error
2787
2787
  G(q, j, b)
@@ -2793,7 +2793,7 @@ ${JSON.stringify(b, null, 2)}
2793
2793
  /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
2794
2794
  ))
2795
2795
  return process.env.NODE_ENV !== "production" && // we are redirecting to the same location we were already at
2796
- Nn(o, S(q.to), j) && // and we have done it a couple of times
2796
+ $n(o, S(q.to), j) && // and we have done it a couple of times
2797
2797
  w && // @ts-expect-error: added only in dev
2798
2798
  (w._count = w._count ? (
2799
2799
  // @ts-expect-error
@@ -2816,30 +2816,30 @@ ${JSON.stringify(b, null, 2)}
2816
2816
  return _(j, b, q), q;
2817
2817
  });
2818
2818
  }
2819
- function bn(h, w) {
2819
+ function _n(h, w) {
2820
2820
  const y = V(h, w);
2821
2821
  return y ? Promise.reject(y) : Promise.resolve();
2822
2822
  }
2823
2823
  function ee(h) {
2824
- const w = et.values().next().value;
2824
+ const w = Ze.values().next().value;
2825
2825
  return w && typeof w.runWithContext == "function" ? w.runWithContext(h) : h();
2826
2826
  }
2827
- function k(h, w) {
2827
+ function E(h, w) {
2828
2828
  let y;
2829
- const [b, C, B] = Ga(h, w);
2830
- y = xt(b.reverse(), "beforeRouteLeave", h, w);
2829
+ const [b, C, B] = Fa(h, w);
2830
+ y = Pt(b.reverse(), "beforeRouteLeave", h, w);
2831
2831
  for (const P of b)
2832
2832
  P.leaveGuards.forEach((j) => {
2833
2833
  y.push(he(j, h, w));
2834
2834
  });
2835
- const $ = bn.bind(null, h, w);
2835
+ const $ = _n.bind(null, h, w);
2836
2836
  return y.push($), $e(y).then(() => {
2837
2837
  y = [];
2838
2838
  for (const P of s.list())
2839
2839
  y.push(he(P, h, w));
2840
2840
  return y.push($), $e(y);
2841
2841
  }).then(() => {
2842
- y = xt(C, "beforeRouteUpdate", h, w);
2842
+ y = Pt(C, "beforeRouteUpdate", h, w);
2843
2843
  for (const P of C)
2844
2844
  P.updateGuards.forEach((j) => {
2845
2845
  y.push(he(j, h, w));
@@ -2855,7 +2855,7 @@ ${JSON.stringify(b, null, 2)}
2855
2855
  else
2856
2856
  y.push(he(P.beforeEnter, h, w));
2857
2857
  return y.push($), $e(y);
2858
- }).then(() => (h.matched.forEach((P) => P.enterCallbacks = {}), y = xt(B, "beforeRouteEnter", h, w), y.push($), $e(y))).then(() => {
2858
+ }).then(() => (h.matched.forEach((P) => P.enterCallbacks = {}), y = Pt(B, "beforeRouteEnter", h, w), y.push($), $e(y))).then(() => {
2859
2859
  y = [];
2860
2860
  for (const P of i.list())
2861
2861
  y.push(he(P, h, w));
@@ -2876,7 +2876,7 @@ ${JSON.stringify(b, null, 2)}
2876
2876
  const $ = w === pe, P = ie ? history.state : {};
2877
2877
  y && (b || $ ? r.replace(h.fullPath, R({
2878
2878
  scroll: $ && P && P.scroll
2879
- }, C)) : r.push(h.fullPath, C)), c.value = h, En(h, w, y, $), Et();
2879
+ }, C)) : r.push(h.fullPath, C)), c.value = h, bn(h, w, y, $), bt();
2880
2880
  }
2881
2881
  let U;
2882
2882
  function we() {
@@ -2888,7 +2888,7 @@ ${JSON.stringify(b, null, 2)}
2888
2888
  }
2889
2889
  u = b;
2890
2890
  const B = c.value;
2891
- ie && Ls(Rn(B.fullPath, y.delta), wt()), k(b, B).catch(($) => ae(
2891
+ ie && Vs(Cn(B.fullPath, y.delta), yt()), E(b, B).catch(($) => ae(
2892
2892
  $,
2893
2893
  12
2894
2894
  /* ErrorTypes.NAVIGATION_CANCELLED */
@@ -2926,30 +2926,30 @@ ${JSON.stringify(b, null, 2)}
2926
2926
  }).catch(He);
2927
2927
  }));
2928
2928
  }
2929
- let De = Me(), Ze = Me(), oe;
2929
+ let De = Me(), Xe = Me(), oe;
2930
2930
  function G(h, w, y) {
2931
- Et(h);
2932
- const b = Ze.list();
2931
+ bt(h);
2932
+ const b = Xe.list();
2933
2933
  return b.length ? b.forEach((C) => C(h, w, y)) : (process.env.NODE_ENV !== "production" && N("uncaught error during route navigation:"), console.error(h)), Promise.reject(h);
2934
2934
  }
2935
- function yr() {
2935
+ function vr() {
2936
2936
  return oe && c.value !== pe ? Promise.resolve() : new Promise((h, w) => {
2937
2937
  De.add([h, w]);
2938
2938
  });
2939
2939
  }
2940
- function Et(h) {
2940
+ function bt(h) {
2941
2941
  return oe || (oe = !h, we(), De.list().forEach(([w, y]) => h ? y(h) : w()), De.reset()), h;
2942
2942
  }
2943
- function En(h, w, y, b) {
2943
+ function bn(h, w, y, b) {
2944
2944
  const { scrollBehavior: C } = e;
2945
2945
  if (!ie || !C)
2946
2946
  return Promise.resolve();
2947
- const B = !y && js(Rn(h.fullPath, 0)) || (b || !y) && history.state && history.state.scroll || null;
2948
- return Ke().then(() => C(h, w, B)).then(($) => $ && Vs($)).catch(($) => G($, h, w));
2947
+ const B = !y && Ls(Cn(h.fullPath, 0)) || (b || !y) && history.state && history.state.scroll || null;
2948
+ return Ke().then(() => C(h, w, B)).then(($) => $ && Ms($)).catch(($) => G($, h, w));
2949
2949
  }
2950
- const kt = (h) => r.go(h);
2951
- let St;
2952
- const et = /* @__PURE__ */ new Set(), wr = {
2950
+ const Et = (h) => r.go(h);
2951
+ let kt;
2952
+ const Ze = /* @__PURE__ */ new Set(), gr = {
2953
2953
  currentRoute: c,
2954
2954
  listening: !0,
2955
2955
  addRoute: p,
@@ -2960,22 +2960,22 @@ ${JSON.stringify(b, null, 2)}
2960
2960
  options: e,
2961
2961
  push: W,
2962
2962
  replace: Y,
2963
- go: kt,
2964
- back: () => kt(-1),
2965
- forward: () => kt(1),
2963
+ go: Et,
2964
+ back: () => Et(-1),
2965
+ forward: () => Et(1),
2966
2966
  beforeEach: s.add,
2967
2967
  beforeResolve: i.add,
2968
2968
  afterEach: a.add,
2969
- onError: Ze.add,
2970
- isReady: yr,
2969
+ onError: Xe.add,
2970
+ isReady: vr,
2971
2971
  install(h) {
2972
2972
  const w = this;
2973
- h.component("RouterLink", $a), h.component("RouterView", Aa), h.config.globalProperties.$router = w, Object.defineProperty(h.config.globalProperties, "$route", {
2973
+ h.component("RouterLink", xa), h.component("RouterView", Ra), h.config.globalProperties.$router = w, Object.defineProperty(h.config.globalProperties, "$route", {
2974
2974
  enumerable: !0,
2975
- get: () => E(c)
2975
+ get: () => k(c)
2976
2976
  }), ie && // used for the initial navigation client side to avoid pushing
2977
2977
  // multiple times when the router is used in multiple apps
2978
- !St && c.value === pe && (St = !0, W(r.location).catch((C) => {
2978
+ !kt && c.value === pe && (kt = !0, W(r.location).catch((C) => {
2979
2979
  process.env.NODE_ENV !== "production" && N("Unexpected error when starting the router:", C);
2980
2980
  }));
2981
2981
  const y = {};
@@ -2984,19 +2984,19 @@ ${JSON.stringify(b, null, 2)}
2984
2984
  get: () => c.value[C],
2985
2985
  enumerable: !0
2986
2986
  });
2987
- h.provide(an, w), h.provide(Uo, kr(y)), h.provide(Ht, c);
2987
+ h.provide(sn, w), h.provide(jo, br(y)), h.provide(Ut, c);
2988
2988
  const b = h.unmount;
2989
- et.add(h), h.unmount = function() {
2990
- et.delete(h), et.size < 1 && (u = pe, U && U(), U = null, c.value = pe, St = !1, oe = !1), b();
2991
- }, process.env.NODE_ENV !== "production" && ie && Ma(h, w, t);
2989
+ Ze.add(h), h.unmount = function() {
2990
+ Ze.delete(h), Ze.size < 1 && (u = pe, U && U(), U = null, c.value = pe, kt = !1, oe = !1), b();
2991
+ }, process.env.NODE_ENV !== "production" && ie && Da(h, w, t);
2992
2992
  }
2993
2993
  };
2994
2994
  function $e(h) {
2995
2995
  return h.reduce((w, y) => w.then(() => ee(y)), Promise.resolve());
2996
2996
  }
2997
- return wr;
2997
+ return gr;
2998
2998
  }
2999
- function Ga(e, t) {
2999
+ function Fa(e, t) {
3000
3000
  const n = [], o = [], r = [], s = Math.max(t.matched.length, e.matched.length);
3001
3001
  for (let i = 0; i < s; i++) {
3002
3002
  const a = t.matched[i];
@@ -3006,36 +3006,36 @@ function Ga(e, t) {
3006
3006
  }
3007
3007
  return [n, o, r];
3008
3008
  }
3009
- Fa({
3010
- history: Ws(),
3009
+ Wa({
3010
+ history: Hs(),
3011
3011
  routes: []
3012
3012
  });
3013
- function za(e) {
3013
+ function Ga(e) {
3014
3014
  return e && typeof e.then == "function";
3015
3015
  }
3016
3016
  Promise.resolve(!1);
3017
3017
  Promise.resolve(!0);
3018
3018
  var Ie = Promise.resolve();
3019
- function Jo(e, t) {
3019
+ function qo(e, t) {
3020
3020
  return e || (e = 0), new Promise(function(n) {
3021
3021
  return setTimeout(function() {
3022
3022
  return n(t);
3023
3023
  }, e);
3024
3024
  });
3025
3025
  }
3026
- function qa(e, t) {
3026
+ function za(e, t) {
3027
3027
  return Math.floor(Math.random() * (t - e + 1) + e);
3028
3028
  }
3029
- function cn() {
3029
+ function an() {
3030
3030
  return Math.random().toString(36).substring(2);
3031
3031
  }
3032
- var zn = 0, $t = 0;
3033
- function _t() {
3032
+ var Gn = 0, xt = 0;
3033
+ function wt() {
3034
3034
  var e = (/* @__PURE__ */ new Date()).getTime();
3035
- return e === zn ? ($t++, e * 1e3 + $t) : (zn = e, $t = 0, e * 1e3);
3035
+ return e === Gn ? (xt++, e * 1e3 + xt) : (Gn = e, xt = 0, e * 1e3);
3036
3036
  }
3037
- var Ka = _t, Ja = "native";
3038
- function Ya(e) {
3037
+ var qa = wt, Ka = "native";
3038
+ function Ja(e) {
3039
3039
  var t = {
3040
3040
  messagesCallback: null,
3041
3041
  bc: new BroadcastChannel(e),
@@ -3046,20 +3046,20 @@ function Ya(e) {
3046
3046
  t.messagesCallback && t.messagesCallback(n.data);
3047
3047
  }, t;
3048
3048
  }
3049
- function Qa(e) {
3049
+ function Ya(e) {
3050
3050
  e.bc.close(), e.subFns = [];
3051
3051
  }
3052
- function Xa(e, t) {
3052
+ function Qa(e, t) {
3053
3053
  try {
3054
3054
  return e.bc.postMessage(t, !1), Ie;
3055
3055
  } catch (n) {
3056
3056
  return Promise.reject(n);
3057
3057
  }
3058
3058
  }
3059
- function Za(e, t) {
3059
+ function Xa(e, t) {
3060
3060
  e.messagesCallback = t;
3061
3061
  }
3062
- function ei() {
3062
+ function Za() {
3063
3063
  if (typeof window > "u")
3064
3064
  return !1;
3065
3065
  if (typeof BroadcastChannel == "function") {
@@ -3069,19 +3069,19 @@ function ei() {
3069
3069
  } else
3070
3070
  return !1;
3071
3071
  }
3072
- function ti() {
3072
+ function ei() {
3073
3073
  return 150;
3074
3074
  }
3075
- var ni = {
3076
- create: Ya,
3077
- close: Qa,
3078
- onMessage: Za,
3079
- postMessage: Xa,
3080
- canBeUsed: ei,
3081
- type: Ja,
3082
- averageResponseTime: ti,
3083
- microSeconds: Ka
3084
- }, Yo = (
3075
+ var ti = {
3076
+ create: Ja,
3077
+ close: Ya,
3078
+ onMessage: Xa,
3079
+ postMessage: Qa,
3080
+ canBeUsed: Za,
3081
+ type: Ka,
3082
+ averageResponseTime: ei,
3083
+ microSeconds: qa
3084
+ }, Ko = (
3085
3085
  /** @class */
3086
3086
  function() {
3087
3087
  function e(t) {
@@ -3091,16 +3091,16 @@ var ni = {
3091
3091
  return this.map.has(t);
3092
3092
  }, e.prototype.add = function(t) {
3093
3093
  var n = this;
3094
- this.map.set(t, Qo()), this._to || (this._to = !0, setTimeout(function() {
3095
- n._to = !1, oi(n);
3094
+ this.map.set(t, Jo()), this._to || (this._to = !0, setTimeout(function() {
3095
+ n._to = !1, ni(n);
3096
3096
  }, 0));
3097
3097
  }, e.prototype.clear = function() {
3098
3098
  this.map.clear();
3099
3099
  }, e;
3100
3100
  }()
3101
3101
  );
3102
- function oi(e) {
3103
- for (var t = Qo() - e.ttl, n = e.map[Symbol.iterator](); ; ) {
3102
+ function ni(e) {
3103
+ for (var t = Jo() - e.ttl, n = e.map[Symbol.iterator](); ; ) {
3104
3104
  var o = n.next().value;
3105
3105
  if (!o)
3106
3106
  return;
@@ -3111,17 +3111,17 @@ function oi(e) {
3111
3111
  return;
3112
3112
  }
3113
3113
  }
3114
- function Qo() {
3114
+ function Jo() {
3115
3115
  return (/* @__PURE__ */ new Date()).getTime();
3116
3116
  }
3117
- function ln() {
3117
+ function cn() {
3118
3118
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = JSON.parse(JSON.stringify(e));
3119
3119
  return typeof t.webWorkerSupport > "u" && (t.webWorkerSupport = !0), t.idb || (t.idb = {}), t.idb.ttl || (t.idb.ttl = 1e3 * 45), t.idb.fallbackInterval || (t.idb.fallbackInterval = 150), e.idb && typeof e.idb.onclose == "function" && (t.idb.onclose = e.idb.onclose), t.localstorage || (t.localstorage = {}), t.localstorage.removeTimeout || (t.localstorage.removeTimeout = 1e3 * 60), e.methods && (t.methods = e.methods), t.node || (t.node = {}), t.node.ttl || (t.node.ttl = 1e3 * 60 * 2), t.node.maxParallelWrites || (t.node.maxParallelWrites = 2048), typeof t.node.useFastPath > "u" && (t.node.useFastPath = !0), t;
3120
3120
  }
3121
- var ri = _t, si = "pubkey.broadcast-channel-0-", ue = "messages", bt = {
3121
+ var oi = wt, ri = "pubkey.broadcast-channel-0-", ue = "messages", _t = {
3122
3122
  durability: "relaxed"
3123
- }, ai = "idb";
3124
- function Xo() {
3123
+ }, si = "idb";
3124
+ function Yo() {
3125
3125
  if (typeof indexedDB < "u")
3126
3126
  return indexedDB;
3127
3127
  if (typeof window < "u") {
@@ -3134,11 +3134,11 @@ function Xo() {
3134
3134
  }
3135
3135
  return !1;
3136
3136
  }
3137
- function un(e) {
3137
+ function ln(e) {
3138
3138
  e.commit && e.commit();
3139
3139
  }
3140
- function ii(e) {
3141
- var t = Xo(), n = si + e, o = t.open(n);
3140
+ function ai(e) {
3141
+ var t = Yo(), n = ri + e, o = t.open(n);
3142
3142
  return o.onupgradeneeded = function(r) {
3143
3143
  var s = r.target.result;
3144
3144
  s.createObjectStore(ue, {
@@ -3153,12 +3153,12 @@ function ii(e) {
3153
3153
  };
3154
3154
  });
3155
3155
  }
3156
- function ci(e, t, n) {
3156
+ function ii(e, t, n) {
3157
3157
  var o = (/* @__PURE__ */ new Date()).getTime(), r = {
3158
3158
  uuid: t,
3159
3159
  time: o,
3160
3160
  data: n
3161
- }, s = e.transaction([ue], "readwrite", bt);
3161
+ }, s = e.transaction([ue], "readwrite", _t);
3162
3162
  return new Promise(function(i, a) {
3163
3163
  s.oncomplete = function() {
3164
3164
  return i();
@@ -3166,11 +3166,11 @@ function ci(e, t, n) {
3166
3166
  return a(u);
3167
3167
  };
3168
3168
  var c = s.objectStore(ue);
3169
- c.add(r), un(s);
3169
+ c.add(r), ln(s);
3170
3170
  });
3171
3171
  }
3172
- function li(e, t) {
3173
- var n = e.transaction(ue, "readonly", bt), o = n.objectStore(ue), r = [], s = IDBKeyRange.bound(t + 1, 1 / 0);
3172
+ function ci(e, t) {
3173
+ var n = e.transaction(ue, "readonly", _t), o = n.objectStore(ue), r = [], s = IDBKeyRange.bound(t + 1, 1 / 0);
3174
3174
  if (o.getAll) {
3175
3175
  var i = o.getAll(s);
3176
3176
  return new Promise(function(c, u) {
@@ -3194,14 +3194,14 @@ function li(e, t) {
3194
3194
  return u(d);
3195
3195
  }, l.onsuccess = function(d) {
3196
3196
  var f = d.target.result;
3197
- f ? f.value.id < t + 1 ? f.continue(t + 1) : (r.push(f.value), f.continue()) : (un(n), c(r));
3197
+ f ? f.value.id < t + 1 ? f.continue(t + 1) : (r.push(f.value), f.continue()) : (ln(n), c(r));
3198
3198
  };
3199
3199
  });
3200
3200
  }
3201
- function ui(e, t) {
3201
+ function li(e, t) {
3202
3202
  if (e.closed)
3203
3203
  return Promise.resolve([]);
3204
- var n = e.db.transaction(ue, "readwrite", bt), o = n.objectStore(ue);
3204
+ var n = e.db.transaction(ue, "readwrite", _t), o = n.objectStore(ue);
3205
3205
  return Promise.all(t.map(function(r) {
3206
3206
  var s = o.delete(r);
3207
3207
  return new Promise(function(i) {
@@ -3211,40 +3211,40 @@ function ui(e, t) {
3211
3211
  });
3212
3212
  }));
3213
3213
  }
3214
- function di(e, t) {
3215
- var n = (/* @__PURE__ */ new Date()).getTime() - t, o = e.transaction(ue, "readonly", bt), r = o.objectStore(ue), s = [];
3214
+ function ui(e, t) {
3215
+ var n = (/* @__PURE__ */ new Date()).getTime() - t, o = e.transaction(ue, "readonly", _t), r = o.objectStore(ue), s = [];
3216
3216
  return new Promise(function(i) {
3217
3217
  r.openCursor().onsuccess = function(a) {
3218
3218
  var c = a.target.result;
3219
3219
  if (c) {
3220
3220
  var u = c.value;
3221
- u.time < n ? (s.push(u), c.continue()) : (un(o), i(s));
3221
+ u.time < n ? (s.push(u), c.continue()) : (ln(o), i(s));
3222
3222
  } else
3223
3223
  i(s);
3224
3224
  };
3225
3225
  });
3226
3226
  }
3227
- function fi(e) {
3228
- return di(e.db, e.options.idb.ttl).then(function(t) {
3229
- return ui(e, t.map(function(n) {
3227
+ function di(e) {
3228
+ return ui(e.db, e.options.idb.ttl).then(function(t) {
3229
+ return li(e, t.map(function(n) {
3230
3230
  return n.id;
3231
3231
  }));
3232
3232
  });
3233
3233
  }
3234
- function pi(e, t) {
3235
- return t = ln(t), ii(e).then(function(n) {
3234
+ function fi(e, t) {
3235
+ return t = cn(t), ai(e).then(function(n) {
3236
3236
  var o = {
3237
3237
  closed: !1,
3238
3238
  lastCursorId: 0,
3239
3239
  channelName: e,
3240
3240
  options: t,
3241
- uuid: cn(),
3241
+ uuid: an(),
3242
3242
  /**
3243
3243
  * emittedMessagesIds
3244
3244
  * contains all messages that have been emitted before
3245
3245
  * @type {ObliviousSet}
3246
3246
  */
3247
- eMIs: new Yo(t.idb.ttl * 2),
3247
+ eMIs: new Ko(t.idb.ttl * 2),
3248
3248
  // ensures we do not read messages in parallel
3249
3249
  writeBlockPromise: Ie,
3250
3250
  messagesCallback: null,
@@ -3253,27 +3253,27 @@ function pi(e, t) {
3253
3253
  };
3254
3254
  return n.onclose = function() {
3255
3255
  o.closed = !0, t.idb.onclose && t.idb.onclose();
3256
- }, Zo(o), o;
3256
+ }, Qo(o), o;
3257
3257
  });
3258
3258
  }
3259
- function Zo(e) {
3260
- e.closed || er(e).then(function() {
3261
- return Jo(e.options.idb.fallbackInterval);
3259
+ function Qo(e) {
3260
+ e.closed || Xo(e).then(function() {
3261
+ return qo(e.options.idb.fallbackInterval);
3262
3262
  }).then(function() {
3263
- return Zo(e);
3263
+ return Qo(e);
3264
3264
  });
3265
3265
  }
3266
- function hi(e, t) {
3266
+ function pi(e, t) {
3267
3267
  return !(e.uuid === t.uuid || t.eMIs.has(e.id) || e.data.time < t.messagesCallbackTime);
3268
3268
  }
3269
- function er(e) {
3270
- return e.closed || !e.messagesCallback ? Ie : li(e.db, e.lastCursorId).then(function(t) {
3269
+ function Xo(e) {
3270
+ return e.closed || !e.messagesCallback ? Ie : ci(e.db, e.lastCursorId).then(function(t) {
3271
3271
  var n = t.filter(function(o) {
3272
3272
  return !!o;
3273
3273
  }).map(function(o) {
3274
3274
  return o.id > e.lastCursorId && (e.lastCursorId = o.id), o;
3275
3275
  }).filter(function(o) {
3276
- return hi(o, e);
3276
+ return pi(o, e);
3277
3277
  }).sort(function(o, r) {
3278
3278
  return o.time - r.time;
3279
3279
  });
@@ -3282,36 +3282,36 @@ function er(e) {
3282
3282
  }), Ie;
3283
3283
  });
3284
3284
  }
3285
- function mi(e) {
3285
+ function hi(e) {
3286
3286
  e.closed = !0, e.db.close();
3287
3287
  }
3288
- function vi(e, t) {
3288
+ function mi(e, t) {
3289
3289
  return e.writeBlockPromise = e.writeBlockPromise.then(function() {
3290
- return ci(e.db, e.uuid, t);
3290
+ return ii(e.db, e.uuid, t);
3291
3291
  }).then(function() {
3292
- qa(0, 10) === 0 && fi(e);
3292
+ za(0, 10) === 0 && di(e);
3293
3293
  }), e.writeBlockPromise;
3294
3294
  }
3295
- function gi(e, t, n) {
3296
- e.messagesCallbackTime = n, e.messagesCallback = t, er(e);
3295
+ function vi(e, t, n) {
3296
+ e.messagesCallbackTime = n, e.messagesCallback = t, Xo(e);
3297
3297
  }
3298
- function yi() {
3299
- return !!Xo();
3298
+ function gi() {
3299
+ return !!Yo();
3300
3300
  }
3301
- function wi(e) {
3301
+ function yi(e) {
3302
3302
  return e.idb.fallbackInterval * 2;
3303
3303
  }
3304
- var _i = {
3305
- create: pi,
3306
- close: mi,
3307
- onMessage: gi,
3308
- postMessage: vi,
3309
- canBeUsed: yi,
3310
- type: ai,
3311
- averageResponseTime: wi,
3312
- microSeconds: ri
3313
- }, bi = _t, Ei = "pubkey.broadcastChannel-", ki = "localstorage";
3314
- function tr() {
3304
+ var wi = {
3305
+ create: fi,
3306
+ close: hi,
3307
+ onMessage: vi,
3308
+ postMessage: mi,
3309
+ canBeUsed: gi,
3310
+ type: si,
3311
+ averageResponseTime: yi,
3312
+ microSeconds: oi
3313
+ }, _i = wt, bi = "pubkey.broadcastChannel-", Ei = "localstorage";
3314
+ function Zo() {
3315
3315
  var e;
3316
3316
  if (typeof window > "u")
3317
3317
  return null;
@@ -3321,54 +3321,54 @@ function tr() {
3321
3321
  }
3322
3322
  return e;
3323
3323
  }
3324
- function nr(e) {
3325
- return Ei + e;
3324
+ function er(e) {
3325
+ return bi + e;
3326
3326
  }
3327
- function Si(e, t) {
3327
+ function ki(e, t) {
3328
3328
  return new Promise(function(n) {
3329
- Jo().then(function() {
3330
- var o = nr(e.channelName), r = {
3331
- token: cn(),
3329
+ qo().then(function() {
3330
+ var o = er(e.channelName), r = {
3331
+ token: an(),
3332
3332
  time: (/* @__PURE__ */ new Date()).getTime(),
3333
3333
  data: t,
3334
3334
  uuid: e.uuid
3335
3335
  }, s = JSON.stringify(r);
3336
- tr().setItem(o, s);
3336
+ Zo().setItem(o, s);
3337
3337
  var i = document.createEvent("Event");
3338
3338
  i.initEvent("storage", !0, !0), i.key = o, i.newValue = s, window.dispatchEvent(i), n();
3339
3339
  });
3340
3340
  });
3341
3341
  }
3342
- function Ii(e, t) {
3343
- var n = nr(e), o = function(s) {
3342
+ function Si(e, t) {
3343
+ var n = er(e), o = function(s) {
3344
3344
  s.key === n && t(JSON.parse(s.newValue));
3345
3345
  };
3346
3346
  return window.addEventListener("storage", o), o;
3347
3347
  }
3348
- function Oi(e) {
3348
+ function Ii(e) {
3349
3349
  window.removeEventListener("storage", e);
3350
3350
  }
3351
- function Pi(e, t) {
3352
- if (t = ln(t), !or())
3351
+ function Oi(e, t) {
3352
+ if (t = cn(t), !tr())
3353
3353
  throw new Error("BroadcastChannel: localstorage cannot be used");
3354
- var n = cn(), o = new Yo(t.localstorage.removeTimeout), r = {
3354
+ var n = an(), o = new Ko(t.localstorage.removeTimeout), r = {
3355
3355
  channelName: e,
3356
3356
  uuid: n,
3357
3357
  eMIs: o
3358
3358
  // emittedMessagesIds
3359
3359
  };
3360
- return r.listener = Ii(e, function(s) {
3360
+ return r.listener = Si(e, function(s) {
3361
3361
  r.messagesCallback && s.uuid !== n && (!s.token || o.has(s.token) || s.data.time && s.data.time < r.messagesCallbackTime || (o.add(s.token), r.messagesCallback(s.data)));
3362
3362
  }), r;
3363
3363
  }
3364
- function xi(e) {
3365
- Oi(e.listener);
3364
+ function Pi(e) {
3365
+ Ii(e.listener);
3366
3366
  }
3367
- function $i(e, t, n) {
3367
+ function xi(e, t, n) {
3368
3368
  e.messagesCallbackTime = n, e.messagesCallback = t;
3369
3369
  }
3370
- function or() {
3371
- var e = tr();
3370
+ function tr() {
3371
+ var e = Zo();
3372
3372
  if (!e)
3373
3373
  return !1;
3374
3374
  try {
@@ -3379,34 +3379,34 @@ function or() {
3379
3379
  }
3380
3380
  return !0;
3381
3381
  }
3382
- function Ni() {
3382
+ function $i() {
3383
3383
  var e = 120, t = navigator.userAgent.toLowerCase();
3384
3384
  return t.includes("safari") && !t.includes("chrome") ? e * 2 : e;
3385
3385
  }
3386
- var Ci = {
3387
- create: Pi,
3388
- close: xi,
3389
- onMessage: $i,
3390
- postMessage: Si,
3391
- canBeUsed: or,
3392
- type: ki,
3393
- averageResponseTime: Ni,
3394
- microSeconds: bi
3395
- }, Ri = _t, Ai = "simulate", dn = /* @__PURE__ */ new Set();
3396
- function Ti(e) {
3386
+ var Ni = {
3387
+ create: Oi,
3388
+ close: Pi,
3389
+ onMessage: xi,
3390
+ postMessage: ki,
3391
+ canBeUsed: tr,
3392
+ type: Ei,
3393
+ averageResponseTime: $i,
3394
+ microSeconds: _i
3395
+ }, Ci = wt, Ri = "simulate", un = /* @__PURE__ */ new Set();
3396
+ function Ai(e) {
3397
3397
  var t = {
3398
3398
  name: e,
3399
3399
  messagesCallback: null
3400
3400
  };
3401
- return dn.add(t), t;
3401
+ return un.add(t), t;
3402
3402
  }
3403
- function Di(e) {
3404
- dn.delete(e);
3403
+ function Ti(e) {
3404
+ un.delete(e);
3405
3405
  }
3406
- function Mi(e, t) {
3406
+ function Di(e, t) {
3407
3407
  return new Promise(function(n) {
3408
3408
  return setTimeout(function() {
3409
- var o = Array.from(dn);
3409
+ var o = Array.from(un);
3410
3410
  o.filter(function(r) {
3411
3411
  return r.name === e.name;
3412
3412
  }).filter(function(r) {
@@ -3419,35 +3419,35 @@ function Mi(e, t) {
3419
3419
  }, 5);
3420
3420
  });
3421
3421
  }
3422
- function Vi(e, t) {
3422
+ function Mi(e, t) {
3423
3423
  e.messagesCallback = t;
3424
3424
  }
3425
- function Li() {
3425
+ function Vi() {
3426
3426
  return !0;
3427
3427
  }
3428
- function ji() {
3428
+ function Li() {
3429
3429
  return 5;
3430
3430
  }
3431
- var Bi = {
3432
- create: Ti,
3433
- close: Di,
3434
- onMessage: Vi,
3435
- postMessage: Mi,
3436
- canBeUsed: Li,
3437
- type: Ai,
3438
- averageResponseTime: ji,
3439
- microSeconds: Ri
3440
- }, qn = [
3441
- ni,
3431
+ var ji = {
3432
+ create: Ai,
3433
+ close: Ti,
3434
+ onMessage: Mi,
3435
+ postMessage: Di,
3436
+ canBeUsed: Vi,
3437
+ type: Ri,
3438
+ averageResponseTime: Li,
3439
+ microSeconds: Ci
3440
+ }, zn = [
3441
+ ti,
3442
3442
  // fastest
3443
- _i,
3444
- Ci
3443
+ wi,
3444
+ Ni
3445
3445
  ];
3446
- function Ui(e) {
3447
- var t = [].concat(e.methods, qn).filter(Boolean);
3446
+ function Bi(e) {
3447
+ var t = [].concat(e.methods, zn).filter(Boolean);
3448
3448
  if (e.type) {
3449
3449
  if (e.type === "simulate")
3450
- return Bi;
3450
+ return ji;
3451
3451
  var n = t.find(function(r) {
3452
3452
  return r.type === e.type;
3453
3453
  });
@@ -3463,18 +3463,18 @@ function Ui(e) {
3463
3463
  });
3464
3464
  if (o)
3465
3465
  return o;
3466
- throw new Error("No usable method found in " + JSON.stringify(qn.map(function(r) {
3466
+ throw new Error("No usable method found in " + JSON.stringify(zn.map(function(r) {
3467
3467
  return r.type;
3468
3468
  })));
3469
3469
  }
3470
- var rr = /* @__PURE__ */ new Set(), Hi = 0, fn = function(t, n) {
3471
- this.id = Hi++, rr.add(this), this.name = t, this.options = ln(n), this.method = Ui(this.options), this._iL = !1, this._onML = null, this._addEL = {
3470
+ var nr = /* @__PURE__ */ new Set(), Ui = 0, dn = function(t, n) {
3471
+ this.id = Ui++, nr.add(this), this.name = t, this.options = cn(n), this.method = Bi(this.options), this._iL = !1, this._onML = null, this._addEL = {
3472
3472
  message: [],
3473
3473
  internal: []
3474
- }, this._uMP = /* @__PURE__ */ new Set(), this._befC = [], this._prepP = null, Wi(this);
3474
+ }, this._uMP = /* @__PURE__ */ new Set(), this._befC = [], this._prepP = null, Hi(this);
3475
3475
  };
3476
- fn._pubkey = !0;
3477
- fn.prototype = {
3476
+ dn._pubkey = !0;
3477
+ dn.prototype = {
3478
3478
  postMessage: function(t) {
3479
3479
  if (this.closed)
3480
3480
  throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed " + /**
@@ -3483,35 +3483,35 @@ fn.prototype = {
3483
3483
  * gives some clue about where in your application this happens.
3484
3484
  */
3485
3485
  JSON.stringify(t));
3486
- return Kn(this, "message", t);
3486
+ return qn(this, "message", t);
3487
3487
  },
3488
3488
  postInternal: function(t) {
3489
- return Kn(this, "internal", t);
3489
+ return qn(this, "internal", t);
3490
3490
  },
3491
3491
  set onmessage(e) {
3492
3492
  var t = this.method.microSeconds(), n = {
3493
3493
  time: t,
3494
3494
  fn: e
3495
3495
  };
3496
- Yn(this, "message", this._onML), e && typeof e == "function" ? (this._onML = n, Jn(this, "message", n)) : this._onML = null;
3496
+ Jn(this, "message", this._onML), e && typeof e == "function" ? (this._onML = n, Kn(this, "message", n)) : this._onML = null;
3497
3497
  },
3498
3498
  addEventListener: function(t, n) {
3499
3499
  var o = this.method.microSeconds(), r = {
3500
3500
  time: o,
3501
3501
  fn: n
3502
3502
  };
3503
- Jn(this, t, r);
3503
+ Kn(this, t, r);
3504
3504
  },
3505
3505
  removeEventListener: function(t, n) {
3506
3506
  var o = this._addEL[t].find(function(r) {
3507
3507
  return r.fn === n;
3508
3508
  });
3509
- Yn(this, t, o);
3509
+ Jn(this, t, o);
3510
3510
  },
3511
3511
  close: function() {
3512
3512
  var t = this;
3513
3513
  if (!this.closed) {
3514
- rr.delete(this), this.closed = !0;
3514
+ nr.delete(this), this.closed = !0;
3515
3515
  var n = this._prepP ? this._prepP : Ie;
3516
3516
  return this._onML = null, this._addEL.message = [], n.then(function() {
3517
3517
  return Promise.all(Array.from(t._uMP));
@@ -3531,7 +3531,7 @@ fn.prototype = {
3531
3531
  return this.closed;
3532
3532
  }
3533
3533
  };
3534
- function Kn(e, t, n) {
3534
+ function qn(e, t, n) {
3535
3535
  var o = e.method.microSeconds(), r = {
3536
3536
  time: o,
3537
3537
  type: t,
@@ -3544,25 +3544,25 @@ function Kn(e, t, n) {
3544
3544
  }), i;
3545
3545
  });
3546
3546
  }
3547
- function Wi(e) {
3547
+ function Hi(e) {
3548
3548
  var t = e.method.create(e.name, e.options);
3549
- za(t) ? (e._prepP = t, t.then(function(n) {
3549
+ Ga(t) ? (e._prepP = t, t.then(function(n) {
3550
3550
  e._state = n;
3551
3551
  })) : e._state = t;
3552
3552
  }
3553
- function sr(e) {
3553
+ function or(e) {
3554
3554
  return e._addEL.message.length > 0 || e._addEL.internal.length > 0;
3555
3555
  }
3556
- function Jn(e, t, n) {
3557
- e._addEL[t].push(n), Fi(e);
3556
+ function Kn(e, t, n) {
3557
+ e._addEL[t].push(n), Wi(e);
3558
3558
  }
3559
- function Yn(e, t, n) {
3559
+ function Jn(e, t, n) {
3560
3560
  e._addEL[t] = e._addEL[t].filter(function(o) {
3561
3561
  return o !== n;
3562
- }), Gi(e);
3562
+ }), Fi(e);
3563
3563
  }
3564
- function Fi(e) {
3565
- if (!e._iL && sr(e)) {
3564
+ function Wi(e) {
3565
+ if (!e._iL && or(e)) {
3566
3566
  var t = function(r) {
3567
3567
  e._addEL[r.type].forEach(function(s) {
3568
3568
  var i = 1e5, a = s.time - i;
@@ -3574,14 +3574,14 @@ function Fi(e) {
3574
3574
  }) : (e._iL = !0, e.method.onMessage(e._state, t, n));
3575
3575
  }
3576
3576
  }
3577
- function Gi(e) {
3578
- if (e._iL && !sr(e)) {
3577
+ function Fi(e) {
3578
+ if (e._iL && !or(e)) {
3579
3579
  e._iL = !1;
3580
3580
  var t = e.method.microSeconds();
3581
3581
  e.method.onMessage(e._state, null, t);
3582
3582
  }
3583
3583
  }
3584
- class Nt extends Error {
3584
+ class $t extends Error {
3585
3585
  /**
3586
3586
  * @param {string} message
3587
3587
  * @param {string[]} keys
@@ -3590,20 +3590,20 @@ class Nt extends Error {
3590
3590
  super(t), this.name = "DevalueError", this.path = n.join("");
3591
3591
  }
3592
3592
  }
3593
- function Qn(e) {
3593
+ function Yn(e) {
3594
3594
  return Object(e) !== e;
3595
3595
  }
3596
- const zi = /* @__PURE__ */ Object.getOwnPropertyNames(
3596
+ const Gi = /* @__PURE__ */ Object.getOwnPropertyNames(
3597
3597
  Object.prototype
3598
3598
  ).sort().join("\0");
3599
- function qi(e) {
3599
+ function zi(e) {
3600
3600
  const t = Object.getPrototypeOf(e);
3601
- return t === Object.prototype || t === null || Object.getOwnPropertyNames(t).sort().join("\0") === zi;
3601
+ return t === Object.prototype || t === null || Object.getOwnPropertyNames(t).sort().join("\0") === Gi;
3602
3602
  }
3603
- function Ki(e) {
3603
+ function qi(e) {
3604
3604
  return Object.prototype.toString.call(e).slice(8, -1);
3605
3605
  }
3606
- function Ji(e) {
3606
+ function Ki(e) {
3607
3607
  switch (e) {
3608
3608
  case '"':
3609
3609
  return '\\"';
@@ -3634,16 +3634,16 @@ function Ae(e) {
3634
3634
  let t = "", n = 0;
3635
3635
  const o = e.length;
3636
3636
  for (let r = 0; r < o; r += 1) {
3637
- const s = e[r], i = Ji(s);
3637
+ const s = e[r], i = Ki(s);
3638
3638
  i && (t += e.slice(n, r) + i, n = r + 1);
3639
3639
  }
3640
3640
  return `"${n === 0 ? e : t + e.slice(n)}"`;
3641
3641
  }
3642
- const pn = -1, ar = -2, ir = -3, cr = -4, lr = -5, hn = -6;
3643
- function Xn(e, t) {
3644
- return Yi(JSON.parse(e), t);
3642
+ const fn = -1, rr = -2, sr = -3, ar = -4, ir = -5, pn = -6;
3643
+ function Qn(e, t) {
3644
+ return Ji(JSON.parse(e), t);
3645
3645
  }
3646
- function Yi(e, t) {
3646
+ function Ji(e, t) {
3647
3647
  if (typeof e == "number")
3648
3648
  return r(e, !0);
3649
3649
  if (!Array.isArray(e) || e.length === 0)
@@ -3653,15 +3653,15 @@ function Yi(e, t) {
3653
3653
  e
3654
3654
  ), o = Array(n.length);
3655
3655
  function r(s, i = !1) {
3656
- if (s === pn)
3656
+ if (s === fn)
3657
3657
  return;
3658
- if (s === ir)
3658
+ if (s === sr)
3659
3659
  return NaN;
3660
- if (s === cr)
3660
+ if (s === ar)
3661
3661
  return 1 / 0;
3662
- if (s === lr)
3662
+ if (s === ir)
3663
3663
  return -1 / 0;
3664
- if (s === hn)
3664
+ if (s === pn)
3665
3665
  return -0;
3666
3666
  if (i)
3667
3667
  throw new Error("Invalid input");
@@ -3714,7 +3714,7 @@ function Yi(e, t) {
3714
3714
  o[s] = c;
3715
3715
  for (let u = 0; u < a.length; u += 1) {
3716
3716
  const l = a[u];
3717
- l !== ar && (c[u] = r(l));
3717
+ l !== rr && (c[u] = r(l));
3718
3718
  }
3719
3719
  }
3720
3720
  else {
@@ -3729,7 +3729,7 @@ function Yi(e, t) {
3729
3729
  }
3730
3730
  return r(0);
3731
3731
  }
3732
- function Zn(e, t) {
3732
+ function Xn(e, t) {
3733
3733
  const n = [], o = /* @__PURE__ */ new Map(), r = [];
3734
3734
  for (const u in t)
3735
3735
  r.push({ key: u, fn: t[u] });
@@ -3737,19 +3737,19 @@ function Zn(e, t) {
3737
3737
  let i = 0;
3738
3738
  function a(u) {
3739
3739
  if (typeof u == "function")
3740
- throw new Nt("Cannot stringify a function", s);
3740
+ throw new $t("Cannot stringify a function", s);
3741
3741
  if (o.has(u))
3742
3742
  return o.get(u);
3743
3743
  if (u === void 0)
3744
- return pn;
3744
+ return fn;
3745
3745
  if (Number.isNaN(u))
3746
- return ir;
3746
+ return sr;
3747
3747
  if (u === 1 / 0)
3748
- return cr;
3748
+ return ar;
3749
3749
  if (u === -1 / 0)
3750
- return lr;
3750
+ return ir;
3751
3751
  if (u === 0 && 1 / u < 0)
3752
- return hn;
3752
+ return pn;
3753
3753
  const l = i++;
3754
3754
  o.set(u, l);
3755
3755
  for (const { key: f, fn: p } of r) {
@@ -3758,14 +3758,14 @@ function Zn(e, t) {
3758
3758
  return n[l] = `["${f}",${a(m)}]`, l;
3759
3759
  }
3760
3760
  let d = "";
3761
- if (Qn(u))
3762
- d = Ct(u);
3761
+ if (Yn(u))
3762
+ d = Nt(u);
3763
3763
  else
3764
- switch (Ki(u)) {
3764
+ switch (qi(u)) {
3765
3765
  case "Number":
3766
3766
  case "String":
3767
3767
  case "Boolean":
3768
- d = `["Object",${Ct(u)}]`;
3768
+ d = `["Object",${Nt(u)}]`;
3769
3769
  break;
3770
3770
  case "BigInt":
3771
3771
  d = `["BigInt",${u}]`;
@@ -3780,7 +3780,7 @@ function Zn(e, t) {
3780
3780
  case "Array":
3781
3781
  d = "[";
3782
3782
  for (let v = 0; v < u.length; v += 1)
3783
- v > 0 && (d += ","), v in u ? (s.push(`[${v}]`), d += a(u[v]), s.pop()) : d += ar;
3783
+ v > 0 && (d += ","), v in u ? (s.push(`[${v}]`), d += a(u[v]), s.pop()) : d += rr;
3784
3784
  d += "]";
3785
3785
  break;
3786
3786
  case "Set":
@@ -3793,18 +3793,18 @@ function Zn(e, t) {
3793
3793
  d = '["Map"';
3794
3794
  for (const [v, g] of u)
3795
3795
  s.push(
3796
- `.get(${Qn(v) ? Ct(v) : "..."})`
3796
+ `.get(${Yn(v) ? Nt(v) : "..."})`
3797
3797
  ), d += `,${a(v)},${a(g)}`;
3798
3798
  d += "]";
3799
3799
  break;
3800
3800
  default:
3801
- if (!qi(u))
3802
- throw new Nt(
3801
+ if (!zi(u))
3802
+ throw new $t(
3803
3803
  "Cannot stringify arbitrary non-POJOs",
3804
3804
  s
3805
3805
  );
3806
3806
  if (Object.getOwnPropertySymbols(u).length > 0)
3807
- throw new Nt(
3807
+ throw new $t(
3808
3808
  "Cannot stringify POJOs with symbolic keys",
3809
3809
  s
3810
3810
  );
@@ -3826,17 +3826,17 @@ function Zn(e, t) {
3826
3826
  const c = a(e);
3827
3827
  return c < 0 ? `${c}` : `[${n.join(",")}]`;
3828
3828
  }
3829
- function Ct(e) {
3829
+ function Nt(e) {
3830
3830
  const t = typeof e;
3831
- return t === "string" ? Ae(e) : e instanceof String ? Ae(e.toString()) : e === void 0 ? pn.toString() : e === 0 && 1 / e < 0 ? hn.toString() : t === "bigint" ? `["BigInt","${e}"]` : String(e);
3831
+ return t === "string" ? Ae(e) : e instanceof String ? Ae(e.toString()) : e === void 0 ? fn.toString() : e === 0 && 1 / e < 0 ? pn.toString() : t === "bigint" ? `["BigInt","${e}"]` : String(e);
3832
3832
  }
3833
- function Qi(e, t, { initialize: n, type: o }) {
3834
- let r = `${t.$id}-${e.toString()}`, s = new fn(r, { type: o }), i = !1, a = 0;
3833
+ function Yi(e, t, { initialize: n, type: o }) {
3834
+ let r = `${t.$id}-${e.toString()}`, s = new dn(r, { type: o }), i = !1, a = 0;
3835
3835
  J(() => t[e], (l) => {
3836
- i || (a = Date.now(), s.postMessage({ timestamp: a, state: Xn(Zn(l)) })), i = !1;
3836
+ i || (a = Date.now(), s.postMessage({ timestamp: a, state: Qn(Xn(l)) })), i = !1;
3837
3837
  }, { deep: !0 }), s.onmessage = (l) => {
3838
3838
  if (l === void 0) {
3839
- s.postMessage({ timestamp: a, state: Xn(Zn(t[e])) });
3839
+ s.postMessage({ timestamp: a, state: Qn(Xn(t[e])) });
3840
3840
  return;
3841
3841
  }
3842
3842
  l.timestamp <= a || (i = !0, a = l.timestamp, t[e] = l.state);
@@ -3844,25 +3844,25 @@ function Qi(e, t, { initialize: n, type: o }) {
3844
3844
  let c = () => s.postMessage(void 0), u = () => s.close();
3845
3845
  return n && c(), { sync: c, unshare: u };
3846
3846
  }
3847
- var Xi = (e, t) => Object.keys(t).includes(e), Zi = ({ initialize: e = !0, enable: t = !0, type: n }) => ({ store: o, options: r }) => {
3847
+ var Qi = (e, t) => Object.keys(t).includes(e), Xi = ({ initialize: e = !0, enable: t = !0, type: n }) => ({ store: o, options: r }) => {
3848
3848
  var s, i;
3849
3849
  let a = ((s = r == null ? void 0 : r.share) == null ? void 0 : s.enable) ?? t, c = ((i = r == null ? void 0 : r.share) == null ? void 0 : i.omit) ?? [];
3850
3850
  !a || Object.keys(o.$state).forEach((u) => {
3851
3851
  var l;
3852
- c.includes(u) || !Xi(u, o.$state) || Qi(u, o, { initialize: ((l = r == null ? void 0 : r.share) == null ? void 0 : l.initialize) ?? e, type: n });
3852
+ c.includes(u) || !Qi(u, o.$state) || Yi(u, o, { initialize: ((l = r == null ? void 0 : r.share) == null ? void 0 : l.initialize) ?? e, type: n });
3853
3853
  });
3854
3854
  };
3855
- const ec = bs();
3856
- ec.use(
3857
- Zi({
3855
+ const Zi = _s();
3856
+ Zi.use(
3857
+ Xi({
3858
3858
  enable: !0,
3859
3859
  initialize: !0
3860
3860
  })
3861
3861
  );
3862
- const tc = /* @__PURE__ */ Z({
3862
+ const ec = /* @__PURE__ */ Z({
3863
3863
  __name: "Doctype",
3864
3864
  setup(e) {
3865
- const { stonecrop: t, isReady: n } = Co(), o = T([]);
3865
+ const { stonecrop: t, isReady: n } = $o(), o = T([]);
3866
3866
  return J(n, () => {
3867
3867
  if (n.value) {
3868
3868
  let r = t.value.schema.schema.toArray();
@@ -3871,7 +3871,7 @@ const tc = /* @__PURE__ */ Z({
3871
3871
  r[i].value = c;
3872
3872
  }), o.value = r;
3873
3873
  }
3874
- }), (r, s) => E(n) ? (x(), Se(E(Yr), {
3874
+ }), (r, s) => k(n) ? (x(), Se(k(Jr), {
3875
3875
  key: 0,
3876
3876
  class: "aform-main",
3877
3877
  modelValue: o.value,
@@ -3879,35 +3879,35 @@ const tc = /* @__PURE__ */ Z({
3879
3879
  }, null, 8, ["modelValue"])) : ge("", !0);
3880
3880
  }
3881
3881
  });
3882
- function nc(e) {
3883
- return Xt() ? (Zt(e), !0) : !1;
3882
+ function tc(e) {
3883
+ return Qt() ? (Xt(e), !0) : !1;
3884
3884
  }
3885
- function ur(e) {
3886
- return typeof e == "function" ? e() : E(e);
3885
+ function cr(e) {
3886
+ return typeof e == "function" ? e() : k(e);
3887
3887
  }
3888
- const oc = typeof window < "u" && typeof document < "u";
3888
+ const nc = typeof window < "u" && typeof document < "u";
3889
3889
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
3890
- const rc = Object.prototype.toString, sc = (e) => rc.call(e) === "[object Object]", ac = () => {
3890
+ const oc = Object.prototype.toString, rc = (e) => oc.call(e) === "[object Object]", sc = () => {
3891
3891
  };
3892
- function vt(e) {
3892
+ function mt(e) {
3893
3893
  var t;
3894
- const n = ur(e);
3894
+ const n = cr(e);
3895
3895
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
3896
3896
  }
3897
- const mn = oc ? window : void 0;
3898
- function Ft(...e) {
3897
+ const hn = nc ? window : void 0;
3898
+ function Wt(...e) {
3899
3899
  let t, n, o, r;
3900
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = mn) : [t, n, o, r] = e, !t)
3901
- return ac;
3900
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = hn) : [t, n, o, r] = e, !t)
3901
+ return sc;
3902
3902
  Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
3903
3903
  const s = [], i = () => {
3904
3904
  s.forEach((l) => l()), s.length = 0;
3905
3905
  }, a = (l, d, f, p) => (l.addEventListener(d, f, p), () => l.removeEventListener(d, f, p)), c = J(
3906
- () => [vt(t), ur(r)],
3906
+ () => [mt(t), cr(r)],
3907
3907
  ([l, d]) => {
3908
3908
  if (i(), !l)
3909
3909
  return;
3910
- const f = sc(d) ? { ...d } : d;
3910
+ const f = rc(d) ? { ...d } : d;
3911
3911
  s.push(
3912
3912
  ...n.flatMap((p) => o.map((m) => a(l, p, m, f)))
3913
3913
  );
@@ -3916,12 +3916,12 @@ function Ft(...e) {
3916
3916
  ), u = () => {
3917
3917
  c(), i();
3918
3918
  };
3919
- return nc(u), u;
3919
+ return tc(u), u;
3920
3920
  }
3921
- function ic(e = {}) {
3921
+ function ac(e = {}) {
3922
3922
  var t;
3923
3923
  const {
3924
- window: n = mn,
3924
+ window: n = hn,
3925
3925
  deep: o = !0
3926
3926
  } = e, r = (t = e.document) != null ? t : n == null ? void 0 : n.document, s = () => {
3927
3927
  var c;
@@ -3933,19 +3933,19 @@ function ic(e = {}) {
3933
3933
  }, i = T(), a = () => {
3934
3934
  i.value = s();
3935
3935
  };
3936
- return n && (Ft(n, "blur", (c) => {
3936
+ return n && (Wt(n, "blur", (c) => {
3937
3937
  c.relatedTarget === null && a();
3938
- }, !0), Ft(n, "focus", a, !0)), a(), i;
3938
+ }, !0), Wt(n, "focus", a, !0)), a(), i;
3939
3939
  }
3940
- function cc(e, t = {}) {
3941
- const n = ic(t), o = L(() => vt(e));
3940
+ function ic(e, t = {}) {
3941
+ const n = ac(t), o = L(() => mt(e));
3942
3942
  return { focused: L(() => o.value && n.value ? o.value.contains(n.value) : !1) };
3943
3943
  }
3944
- function lc(e, { window: t = mn, scrollTarget: n } = {}) {
3944
+ function cc(e, { window: t = hn, scrollTarget: n } = {}) {
3945
3945
  const o = T(!1), r = () => {
3946
3946
  if (!t)
3947
3947
  return;
3948
- const s = t.document, i = vt(e);
3948
+ const s = t.document, i = mt(e);
3949
3949
  if (!i)
3950
3950
  o.value = !1;
3951
3951
  else {
@@ -3954,21 +3954,21 @@ function lc(e, { window: t = mn, scrollTarget: n } = {}) {
3954
3954
  }
3955
3955
  };
3956
3956
  return J(
3957
- () => vt(e),
3957
+ () => mt(e),
3958
3958
  () => r(),
3959
3959
  { immediate: !0, flush: "post" }
3960
- ), t && Ft(n || t, "scroll", r, {
3960
+ ), t && Wt(n || t, "scroll", r, {
3961
3961
  capture: !1,
3962
3962
  passive: !0
3963
3963
  }), o;
3964
3964
  }
3965
3965
  const de = (e) => {
3966
- let t = lc(e).value;
3966
+ let t = cc(e).value;
3967
3967
  return t = t && e.offsetHeight > 0, t;
3968
- }, fe = (e) => e.tabIndex >= 0, eo = (e) => {
3968
+ }, fe = (e) => e.tabIndex >= 0, Zn = (e) => {
3969
3969
  const t = e.target;
3970
- return vn(t);
3971
- }, vn = (e) => {
3970
+ return mn(t);
3971
+ }, mn = (e) => {
3972
3972
  var t;
3973
3973
  let n;
3974
3974
  if (e instanceof HTMLTableCellElement) {
@@ -3981,8 +3981,8 @@ const de = (e) => {
3981
3981
  const o = e.previousElementSibling;
3982
3982
  o && (n = o);
3983
3983
  }
3984
- return n && (!fe(n) || !de(n)) ? vn(n) : n;
3985
- }, uc = (e) => {
3984
+ return n && (!fe(n) || !de(n)) ? mn(n) : n;
3985
+ }, lc = (e) => {
3986
3986
  var t;
3987
3987
  const n = e.target;
3988
3988
  let o;
@@ -3999,11 +3999,11 @@ const de = (e) => {
3999
3999
  s && (o = s);
4000
4000
  }
4001
4001
  }
4002
- return o && (!fe(o) || !de(o)) ? gn(o) : o;
4003
- }, to = (e) => {
4002
+ return o && (!fe(o) || !de(o)) ? vn(o) : o;
4003
+ }, eo = (e) => {
4004
4004
  const t = e.target;
4005
- return gn(t);
4006
- }, gn = (e) => {
4005
+ return vn(t);
4006
+ }, vn = (e) => {
4007
4007
  var t;
4008
4008
  let n;
4009
4009
  if (e instanceof HTMLTableCellElement) {
@@ -4016,8 +4016,8 @@ const de = (e) => {
4016
4016
  const o = e.nextElementSibling;
4017
4017
  o && (n = o);
4018
4018
  }
4019
- return n && (!fe(n) || !de(n)) ? gn(n) : n;
4020
- }, dc = (e) => {
4019
+ return n && (!fe(n) || !de(n)) ? vn(n) : n;
4020
+ }, uc = (e) => {
4021
4021
  var t;
4022
4022
  const n = e.target;
4023
4023
  let o;
@@ -4034,11 +4034,11 @@ const de = (e) => {
4034
4034
  s && (o = s);
4035
4035
  }
4036
4036
  }
4037
- return o && (!fe(o) || !de(o)) ? vn(o) : o;
4038
- }, no = (e) => {
4037
+ return o && (!fe(o) || !de(o)) ? mn(o) : o;
4038
+ }, to = (e) => {
4039
4039
  const t = e.target;
4040
- return yn(t);
4041
- }, yn = (e) => {
4040
+ return gn(t);
4041
+ }, gn = (e) => {
4042
4042
  var t;
4043
4043
  let n;
4044
4044
  if (e.previousElementSibling)
@@ -4047,11 +4047,11 @@ const de = (e) => {
4047
4047
  const o = (t = e.parentElement) == null ? void 0 : t.previousElementSibling;
4048
4048
  n = o == null ? void 0 : o.lastElementChild;
4049
4049
  }
4050
- return n && (!fe(n) || !de(n)) ? yn(n) : n;
4051
- }, oo = (e) => {
4050
+ return n && (!fe(n) || !de(n)) ? gn(n) : n;
4051
+ }, no = (e) => {
4052
4052
  const t = e.target;
4053
- return wn(t);
4054
- }, wn = (e) => {
4053
+ return yn(t);
4054
+ }, yn = (e) => {
4055
4055
  var t;
4056
4056
  let n;
4057
4057
  if (e.nextElementSibling)
@@ -4060,83 +4060,83 @@ const de = (e) => {
4060
4060
  const o = (t = e.parentElement) == null ? void 0 : t.nextElementSibling;
4061
4061
  n = o == null ? void 0 : o.firstElementChild;
4062
4062
  }
4063
- return n && (!fe(n) || !de(n)) ? wn(n) : n;
4064
- }, ro = (e) => {
4063
+ return n && (!fe(n) || !de(n)) ? yn(n) : n;
4064
+ }, oo = (e) => {
4065
4065
  const t = e.target.parentElement.firstElementChild;
4066
- return t && (!fe(t) || !de(t)) ? wn(t) : t;
4067
- }, so = (e) => {
4068
- const t = e.target.parentElement.lastElementChild;
4069
4066
  return t && (!fe(t) || !de(t)) ? yn(t) : t;
4070
- }, rt = ["alt", "control", "shift", "meta"], fc = {
4067
+ }, ro = (e) => {
4068
+ const t = e.target.parentElement.lastElementChild;
4069
+ return t && (!fe(t) || !de(t)) ? gn(t) : t;
4070
+ }, ot = ["alt", "control", "shift", "meta"], dc = {
4071
4071
  ArrowUp: "up",
4072
4072
  ArrowDown: "down",
4073
4073
  ArrowLeft: "left",
4074
4074
  ArrowRight: "right"
4075
- }, _n = {
4075
+ }, wn = {
4076
4076
  "keydown.up": (e) => {
4077
- const t = eo(e);
4077
+ const t = Zn(e);
4078
4078
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
4079
4079
  },
4080
4080
  "keydown.down": (e) => {
4081
- const t = to(e);
4081
+ const t = eo(e);
4082
4082
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
4083
4083
  },
4084
4084
  "keydown.left": (e) => {
4085
- const t = no(e);
4085
+ const t = to(e);
4086
4086
  e.preventDefault(), e.stopPropagation(), t && t.focus();
4087
4087
  },
4088
4088
  "keydown.right": (e) => {
4089
- const t = oo(e);
4089
+ const t = no(e);
4090
4090
  e.preventDefault(), e.stopPropagation(), t && t.focus();
4091
4091
  },
4092
4092
  "keydown.control.up": (e) => {
4093
- const t = uc(e);
4093
+ const t = lc(e);
4094
4094
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
4095
4095
  },
4096
4096
  "keydown.control.down": (e) => {
4097
- const t = dc(e);
4097
+ const t = uc(e);
4098
4098
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
4099
4099
  },
4100
4100
  "keydown.control.left": (e) => {
4101
- const t = ro(e);
4101
+ const t = oo(e);
4102
4102
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
4103
4103
  },
4104
4104
  "keydown.control.right": (e) => {
4105
- const t = so(e);
4105
+ const t = ro(e);
4106
4106
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
4107
4107
  },
4108
4108
  "keydown.end": (e) => {
4109
- const t = so(e);
4109
+ const t = ro(e);
4110
4110
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
4111
4111
  },
4112
4112
  "keydown.enter": (e) => {
4113
4113
  if (e.target instanceof HTMLTableCellElement) {
4114
4114
  e.preventDefault(), e.stopPropagation();
4115
- const t = to(e);
4115
+ const t = eo(e);
4116
4116
  t && t.focus();
4117
4117
  }
4118
4118
  },
4119
4119
  "keydown.shift.enter": (e) => {
4120
4120
  if (e.target instanceof HTMLTableCellElement) {
4121
4121
  e.preventDefault(), e.stopPropagation();
4122
- const t = eo(e);
4122
+ const t = Zn(e);
4123
4123
  t && t.focus();
4124
4124
  }
4125
4125
  },
4126
4126
  "keydown.home": (e) => {
4127
- const t = ro(e);
4127
+ const t = oo(e);
4128
4128
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
4129
4129
  },
4130
4130
  "keydown.tab": (e) => {
4131
- const t = oo(e);
4131
+ const t = no(e);
4132
4132
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
4133
4133
  },
4134
4134
  "keydown.shift.tab": (e) => {
4135
- const t = no(e);
4135
+ const t = to(e);
4136
4136
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
4137
4137
  }
4138
4138
  };
4139
- function dr(e) {
4139
+ function lr(e) {
4140
4140
  const t = (i) => {
4141
4141
  let a = null;
4142
4142
  return i.parent && (typeof i.parent == "string" ? a = document.querySelector(i.parent) : i.parent instanceof HTMLElement ? a = i.parent : a = i.parent.value), a;
@@ -4161,20 +4161,20 @@ function dr(e) {
4161
4161
  let c = [];
4162
4162
  return i.selectors ? c = n(i) : a && (c = Array.from(a.children).filter((u) => fe(u) && de(u))), c;
4163
4163
  }, r = (i) => (a) => {
4164
- const c = fc[a.key] || a.key.toLowerCase();
4165
- if (rt.includes(c))
4164
+ const c = dc[a.key] || a.key.toLowerCase();
4165
+ if (ot.includes(c))
4166
4166
  return;
4167
- const u = i.handlers || _n;
4167
+ const u = i.handlers || wn;
4168
4168
  for (const l of Object.keys(u)) {
4169
4169
  const [d, ...f] = l.split(".");
4170
4170
  if (d === "keydown" && f.includes(c)) {
4171
- const p = u[l], m = f.filter((g) => rt.includes(g)), v = rt.some((g) => {
4171
+ const p = u[l], m = f.filter((g) => ot.includes(g)), v = ot.some((g) => {
4172
4172
  const S = g.charAt(0).toUpperCase() + g.slice(1);
4173
4173
  return a.getModifierState(S);
4174
4174
  });
4175
4175
  if (m.length > 0) {
4176
4176
  if (v) {
4177
- for (const g of rt)
4177
+ for (const g of ot)
4178
4178
  if (f.includes(g)) {
4179
4179
  const S = g.charAt(0).toUpperCase() + g.slice(1);
4180
4180
  a.getModifierState(S) && p(a);
@@ -4185,22 +4185,22 @@ function dr(e) {
4185
4185
  }
4186
4186
  }
4187
4187
  }, s = [];
4188
- zt(() => {
4188
+ Gt(() => {
4189
4189
  for (const i of e) {
4190
4190
  const a = t(i), c = o(i), u = r(i), l = a ? [a] : c;
4191
4191
  for (const d of l) {
4192
- const { focused: f } = cc(T(d)), p = J(f, (m) => {
4192
+ const { focused: f } = ic(T(d)), p = J(f, (m) => {
4193
4193
  m ? d.addEventListener("keydown", u) : d.removeEventListener("keydown", u);
4194
4194
  });
4195
4195
  s.push(p);
4196
4196
  }
4197
4197
  }
4198
- }), Pr(() => {
4198
+ }), kr(() => {
4199
4199
  for (const i of s)
4200
4200
  i();
4201
4201
  });
4202
4202
  }
4203
- const pc = ["data-colindex", "data-rowindex", "data-editable", "contenteditable", "tabindex"], hc = { key: 1 }, mc = /* @__PURE__ */ Z({
4203
+ const fc = ["data-colindex", "data-rowindex", "data-editable", "contenteditable", "tabindex"], pc = { key: 1 }, hc = /* @__PURE__ */ Z({
4204
4204
  __name: "ACell",
4205
4205
  props: {
4206
4206
  colIndex: {},
@@ -4226,7 +4226,7 @@ const pc = ["data-colindex", "data-rowindex", "data-editable", "contenteditable"
4226
4226
  };
4227
4227
  if (n.addNavigation) {
4228
4228
  let v = {
4229
- ..._n,
4229
+ ...wn,
4230
4230
  "keydown.f2": c,
4231
4231
  "keydown.alt.up": c,
4232
4232
  "keydown.alt.down": c,
@@ -4236,7 +4236,7 @@ const pc = ["data-colindex", "data-rowindex", "data-editable", "contenteditable"
4236
4236
  typeof n.addNavigation == "object" && (v = {
4237
4237
  ...v,
4238
4238
  ...n.addNavigation
4239
- }), dr([
4239
+ }), lr([
4240
4240
  {
4241
4241
  selectors: r,
4242
4242
  handlers: v
@@ -4259,8 +4259,8 @@ const pc = ["data-colindex", "data-rowindex", "data-editable", "contenteditable"
4259
4259
  ref: r,
4260
4260
  "data-colindex": v.colIndex,
4261
4261
  "data-rowindex": v.rowIndex,
4262
- "data-editable": E(o).columns[v.colIndex].edit,
4263
- contenteditable: E(o).columns[v.colIndex].edit,
4262
+ "data-editable": k(o).columns[v.colIndex].edit,
4263
+ contenteditable: k(o).columns[v.colIndex].edit,
4264
4264
  tabindex: v.tabIndex,
4265
4265
  spellcheck: !1,
4266
4266
  style: m,
@@ -4269,24 +4269,20 @@ const pc = ["data-colindex", "data-rowindex", "data-editable", "contenteditable"
4269
4269
  onBlur: f,
4270
4270
  onInput: f,
4271
4271
  onClick: c,
4272
- onMousedown: c
4272
+ onMousedown: c,
4273
+ class: "atable__cell"
4273
4274
  }, [
4274
- E(o).columns[v.colIndex].cellComponent ? (x(), Se(Kt(E(o).columns[v.colIndex].cellComponent), Jt({
4275
+ k(o).columns[v.colIndex].cellComponent ? (x(), Se(qt(k(o).columns[v.colIndex].cellComponent), Kt({
4275
4276
  key: 0,
4276
4277
  value: a.value
4277
- }, E(o).columns[v.colIndex].cellComponentProps), null, 16, ["value"])) : (x(), A("span", hc, le(a.value), 1))
4278
- ], 40, pc));
4278
+ }, k(o).columns[v.colIndex].cellComponentProps), null, 16, ["value"])) : (x(), A("span", pc, le(a.value), 1))
4279
+ ], 40, fc));
4279
4280
  }
4280
- }), Xe = (e, t) => {
4281
- const n = e.__vccOpts || e;
4282
- for (const [o, r] of t)
4283
- n[o] = r;
4284
- return n;
4285
- }, vc = /* @__PURE__ */ Xe(mc, [["__scopeId", "data-v-f3597719"]]), gc = ["tabindex"], yc = {
4281
+ }), mc = ["tabindex"], vc = {
4286
4282
  key: 0,
4287
4283
  tabIndex: -1,
4288
4284
  class: "list-index"
4289
- }, wc = /* @__PURE__ */ Z({
4285
+ }, gc = /* @__PURE__ */ Z({
4290
4286
  __name: "ARow",
4291
4287
  props: {
4292
4288
  row: {},
@@ -4296,107 +4292,106 @@ const pc = ["data-colindex", "data-rowindex", "data-editable", "contenteditable"
4296
4292
  addNavigation: { type: [Boolean, Object], default: !1 }
4297
4293
  },
4298
4294
  setup(e) {
4299
- vo((c) => ({
4300
- "30f057ab": E(r)
4301
- }));
4302
- const t = e, n = ne(t.tableid), o = T(null), r = n.numberedRowWidth.value, s = () => n.config.view !== "tree" ? "" : n.display[t.rowIndex].isRoot || n.display[t.rowIndex].isParent ? n.display[t.rowIndex].childrenOpen ? "-" : "+" : "", i = L(() => n.config.view !== "tree" || n.display[t.rowIndex].isRoot || n.display[t.rowIndex].open), a = (c) => {
4303
- n.toggleRowExpand(c);
4295
+ const t = e, n = ne(t.tableid), o = T(null);
4296
+ n.numberedRowWidth.value;
4297
+ const r = () => n.config.view !== "tree" ? "" : n.display[t.rowIndex].isRoot || n.display[t.rowIndex].isParent ? n.display[t.rowIndex].childrenOpen ? "-" : "+" : "", s = L(() => n.config.view !== "tree" || n.display[t.rowIndex].isRoot || n.display[t.rowIndex].open), i = (a) => {
4298
+ n.toggleRowExpand(a);
4304
4299
  };
4305
4300
  if (t.addNavigation) {
4306
- let c = _n;
4307
- typeof t.addNavigation == "object" && (c = {
4308
- ...c,
4301
+ let a = wn;
4302
+ typeof t.addNavigation == "object" && (a = {
4303
+ ...a,
4309
4304
  ...t.addNavigation
4310
- }), dr([
4305
+ }), lr([
4311
4306
  {
4312
4307
  selectors: o,
4313
- handlers: c
4308
+ handlers: a
4314
4309
  }
4315
4310
  ]);
4316
4311
  }
4317
- return (c, u) => ze((x(), A("tr", {
4312
+ return (a, c) => ze((x(), A("tr", {
4318
4313
  ref_key: "rowEl",
4319
4314
  ref: o,
4320
- tabindex: c.tabIndex,
4315
+ tabindex: a.tabIndex,
4321
4316
  class: "table-row"
4322
4317
  }, [
4323
- me(c.$slots, "index", {}, () => [
4324
- E(n).config.view === "list" ? (x(), A("td", yc, le(c.rowIndex + 1), 1)) : E(n).config.view === "tree" ? (x(), A("td", {
4318
+ me(a.$slots, "index", {}, () => [
4319
+ k(n).config.view === "list" ? (x(), A("td", vc, le(a.rowIndex + 1), 1)) : k(n).config.view === "tree" ? (x(), A("td", {
4325
4320
  key: 1,
4326
4321
  tabIndex: -1,
4327
4322
  class: "tree-index",
4328
- onClick: u[0] || (u[0] = (l) => a(c.rowIndex))
4329
- }, le(s()), 1)) : ge("", !0)
4330
- ], !0),
4331
- me(c.$slots, "default", {}, void 0, !0)
4332
- ], 8, gc)), [
4333
- [qt, i.value]
4323
+ onClick: c[0] || (c[0] = (u) => i(a.rowIndex))
4324
+ }, le(r()), 1)) : ge("", !0)
4325
+ ]),
4326
+ me(a.$slots, "default")
4327
+ ], 8, mc)), [
4328
+ [zt, s.value]
4334
4329
  ]);
4335
4330
  }
4336
- }), _c = /* @__PURE__ */ Xe(wc, [["__scopeId", "data-v-762810eb"]]);
4337
- let st;
4338
- const bc = new Uint8Array(16);
4339
- function Ec() {
4340
- if (!st && (st = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !st))
4331
+ });
4332
+ let rt;
4333
+ const yc = new Uint8Array(16);
4334
+ function wc() {
4335
+ if (!rt && (rt = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !rt))
4341
4336
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
4342
- return st(bc);
4337
+ return rt(yc);
4343
4338
  }
4344
4339
  const F = [];
4345
4340
  for (let e = 0; e < 256; ++e)
4346
4341
  F.push((e + 256).toString(16).slice(1));
4347
- function kc(e, t = 0) {
4342
+ function _c(e, t = 0) {
4348
4343
  return F[e[t + 0]] + F[e[t + 1]] + F[e[t + 2]] + F[e[t + 3]] + "-" + F[e[t + 4]] + F[e[t + 5]] + "-" + F[e[t + 6]] + F[e[t + 7]] + "-" + F[e[t + 8]] + F[e[t + 9]] + "-" + F[e[t + 10]] + F[e[t + 11]] + F[e[t + 12]] + F[e[t + 13]] + F[e[t + 14]] + F[e[t + 15]];
4349
4344
  }
4350
- const Sc = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ao = {
4351
- randomUUID: Sc
4345
+ const bc = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), so = {
4346
+ randomUUID: bc
4352
4347
  };
4353
- function fr(e, t, n) {
4354
- if (ao.randomUUID && !t && !e)
4355
- return ao.randomUUID();
4348
+ function ur(e, t, n) {
4349
+ if (so.randomUUID && !t && !e)
4350
+ return so.randomUUID();
4356
4351
  e = e || {};
4357
- const o = e.random || (e.rng || Ec)();
4352
+ const o = e.random || (e.rng || wc)();
4358
4353
  if (o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, t) {
4359
4354
  n = n || 0;
4360
4355
  for (let r = 0; r < 16; ++r)
4361
4356
  t[n + r] = o[r];
4362
4357
  return t;
4363
4358
  }
4364
- return kc(o);
4359
+ return _c(o);
4365
4360
  }
4366
- function pr(e) {
4367
- return Xt() ? (Zt(e), !0) : !1;
4361
+ function dr(e) {
4362
+ return Qt() ? (Xt(e), !0) : !1;
4368
4363
  }
4369
4364
  function Fe(e) {
4370
- return typeof e == "function" ? e() : E(e);
4365
+ return typeof e == "function" ? e() : k(e);
4371
4366
  }
4372
- const hr = typeof window < "u" && typeof document < "u";
4367
+ const fr = typeof window < "u" && typeof document < "u";
4373
4368
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
4374
- const Ic = Object.prototype.toString, Oc = (e) => Ic.call(e) === "[object Object]", Ge = () => {
4375
- }, Gt = /* @__PURE__ */ Pc();
4376
- function Pc() {
4369
+ const Ec = Object.prototype.toString, kc = (e) => Ec.call(e) === "[object Object]", Ge = () => {
4370
+ }, Ft = /* @__PURE__ */ Sc();
4371
+ function Sc() {
4377
4372
  var e, t;
4378
- return hr && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
4373
+ return fr && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
4379
4374
  }
4380
- const io = {
4375
+ const ao = {
4381
4376
  mounted: "mounted",
4382
4377
  updated: "updated",
4383
4378
  unmounted: "unmounted"
4384
4379
  };
4385
- function xc(...e) {
4380
+ function Ic(...e) {
4386
4381
  if (e.length !== 1)
4387
- return it(...e);
4382
+ return at(...e);
4388
4383
  const t = e[0];
4389
- return typeof t == "function" ? Ir(Or(() => ({ get: t, set: Ge }))) : T(t);
4384
+ return typeof t == "function" ? Sr(Ir(() => ({ get: t, set: Ge }))) : T(t);
4390
4385
  }
4391
4386
  function je(e) {
4392
4387
  var t;
4393
4388
  const n = Fe(e);
4394
4389
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
4395
4390
  }
4396
- const mr = hr ? window : void 0;
4397
- function ft(...e) {
4391
+ const pr = fr ? window : void 0;
4392
+ function dt(...e) {
4398
4393
  let t, n, o, r;
4399
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = mr) : [t, n, o, r] = e, !t)
4394
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = pr) : [t, n, o, r] = e, !t)
4400
4395
  return Ge;
4401
4396
  Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
4402
4397
  const s = [], i = () => {
@@ -4406,7 +4401,7 @@ function ft(...e) {
4406
4401
  ([l, d]) => {
4407
4402
  if (i(), !l)
4408
4403
  return;
4409
- const f = Oc(d) ? { ...d } : d;
4404
+ const f = kc(d) ? { ...d } : d;
4410
4405
  s.push(
4411
4406
  ...n.flatMap((p) => o.map((m) => a(l, p, m, f)))
4412
4407
  );
@@ -4415,14 +4410,14 @@ function ft(...e) {
4415
4410
  ), u = () => {
4416
4411
  c(), i();
4417
4412
  };
4418
- return pr(u), u;
4413
+ return dr(u), u;
4419
4414
  }
4420
- let co = !1;
4421
- function lo(e, t, n = {}) {
4422
- const { window: o = mr, ignore: r = [], capture: s = !0, detectIframe: i = !1 } = n;
4415
+ let io = !1;
4416
+ function co(e, t, n = {}) {
4417
+ const { window: o = pr, ignore: r = [], capture: s = !0, detectIframe: i = !1 } = n;
4423
4418
  if (!o)
4424
4419
  return Ge;
4425
- Gt && !co && (co = !0, Array.from(o.document.body.children).forEach((l) => l.addEventListener("click", Ge)), o.document.documentElement.addEventListener("click", Ge));
4420
+ Ft && !io && (io = !0, Array.from(o.document.body.children).forEach((l) => l.addEventListener("click", Ge)), o.document.documentElement.addEventListener("click", Ge));
4426
4421
  let a = !0;
4427
4422
  const c = (l) => r.some((d) => {
4428
4423
  if (typeof d == "string")
@@ -4432,7 +4427,7 @@ function lo(e, t, n = {}) {
4432
4427
  return f && (l.target === f || l.composedPath().includes(f));
4433
4428
  }
4434
4429
  }), u = [
4435
- ft(o, "click", (l) => {
4430
+ dt(o, "click", (l) => {
4436
4431
  const d = je(e);
4437
4432
  if (!(!d || d === l.target || l.composedPath().includes(d))) {
4438
4433
  if (l.detail === 0 && (a = !c(l)), !a) {
@@ -4442,11 +4437,11 @@ function lo(e, t, n = {}) {
4442
4437
  t(l);
4443
4438
  }
4444
4439
  }, { passive: !0, capture: s }),
4445
- ft(o, "pointerdown", (l) => {
4440
+ dt(o, "pointerdown", (l) => {
4446
4441
  const d = je(e);
4447
4442
  a = !c(l) && !!(d && !l.composedPath().includes(d));
4448
4443
  }, { passive: !0 }),
4449
- i && ft(o, "blur", (l) => {
4444
+ i && dt(o, "blur", (l) => {
4450
4445
  setTimeout(() => {
4451
4446
  var d;
4452
4447
  const f = je(e);
@@ -4456,65 +4451,65 @@ function lo(e, t, n = {}) {
4456
4451
  ].filter(Boolean);
4457
4452
  return () => u.forEach((l) => l());
4458
4453
  }
4459
- const $c = {
4460
- [io.mounted](e, t) {
4454
+ const Oc = {
4455
+ [ao.mounted](e, t) {
4461
4456
  const n = !t.modifiers.bubble;
4462
4457
  if (typeof t.value == "function")
4463
- e.__onClickOutside_stop = lo(e, t.value, { capture: n });
4458
+ e.__onClickOutside_stop = co(e, t.value, { capture: n });
4464
4459
  else {
4465
4460
  const [o, r] = t.value;
4466
- e.__onClickOutside_stop = lo(e, o, Object.assign({ capture: n }, r));
4461
+ e.__onClickOutside_stop = co(e, o, Object.assign({ capture: n }, r));
4467
4462
  }
4468
4463
  },
4469
- [io.unmounted](e) {
4464
+ [ao.unmounted](e) {
4470
4465
  e.__onClickOutside_stop();
4471
4466
  }
4472
4467
  };
4473
- function Rt(e) {
4468
+ function Ct(e) {
4474
4469
  return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
4475
4470
  }
4476
- function vr(e) {
4471
+ function hr(e) {
4477
4472
  const t = window.getComputedStyle(e);
4478
4473
  if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientWidth < e.scrollWidth || t.overflowY === "auto" && e.clientHeight < e.scrollHeight)
4479
4474
  return !0;
4480
4475
  {
4481
4476
  const n = e.parentNode;
4482
- return !n || n.tagName === "BODY" ? !1 : vr(n);
4477
+ return !n || n.tagName === "BODY" ? !1 : hr(n);
4483
4478
  }
4484
4479
  }
4485
- function Nc(e) {
4480
+ function Pc(e) {
4486
4481
  const t = e || window.event, n = t.target;
4487
- return vr(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
4482
+ return hr(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
4488
4483
  }
4489
- const at = /* @__PURE__ */ new WeakMap();
4490
- function Cc(e, t = !1) {
4484
+ const st = /* @__PURE__ */ new WeakMap();
4485
+ function xc(e, t = !1) {
4491
4486
  const n = T(t);
4492
4487
  let o = null;
4493
- J(xc(e), (i) => {
4494
- const a = Rt(Fe(i));
4488
+ J(Ic(e), (i) => {
4489
+ const a = Ct(Fe(i));
4495
4490
  if (a) {
4496
4491
  const c = a;
4497
- at.get(c) || at.set(c, c.style.overflow), n.value && (c.style.overflow = "hidden");
4492
+ st.get(c) || st.set(c, c.style.overflow), n.value && (c.style.overflow = "hidden");
4498
4493
  }
4499
4494
  }, {
4500
4495
  immediate: !0
4501
4496
  });
4502
4497
  const r = () => {
4503
- const i = Rt(Fe(e));
4504
- !i || n.value || (Gt && (o = ft(
4498
+ const i = Ct(Fe(e));
4499
+ !i || n.value || (Ft && (o = dt(
4505
4500
  i,
4506
4501
  "touchmove",
4507
4502
  (a) => {
4508
- Nc(a);
4503
+ Pc(a);
4509
4504
  },
4510
4505
  { passive: !1 }
4511
4506
  )), i.style.overflow = "hidden", n.value = !0);
4512
4507
  }, s = () => {
4513
4508
  var i;
4514
- const a = Rt(Fe(e));
4515
- !a || !n.value || (Gt && (o == null || o()), a.style.overflow = (i = at.get(a)) != null ? i : "", at.delete(a), n.value = !1);
4509
+ const a = Ct(Fe(e));
4510
+ !a || !n.value || (Ft && (o == null || o()), a.style.overflow = (i = st.get(a)) != null ? i : "", st.delete(a), n.value = !1);
4516
4511
  };
4517
- return pr(s), L({
4512
+ return dr(s), L({
4518
4513
  get() {
4519
4514
  return n.value;
4520
4515
  },
@@ -4523,21 +4518,21 @@ function Cc(e, t = !1) {
4523
4518
  }
4524
4519
  });
4525
4520
  }
4526
- function Rc() {
4521
+ function $c() {
4527
4522
  let e = !1;
4528
4523
  const t = T(!1);
4529
4524
  return (n, o) => {
4530
4525
  if (t.value = o.value, e)
4531
4526
  return;
4532
4527
  e = !0;
4533
- const r = Cc(n, o.value);
4528
+ const r = xc(n, o.value);
4534
4529
  J(t, (s) => r.value = s);
4535
4530
  };
4536
4531
  }
4537
- Rc();
4538
- class Ac {
4532
+ $c();
4533
+ class Nc {
4539
4534
  constructor(t, n, o, r, s, i) {
4540
- this.id = t || fr(), this.rows = o, this.columns = Ee(n), this.config = Ee(r), this.table = s || Ee(this.createTableObject()), this.display = this.createDisplayObject(i), this.modal = Ee({ visible: !1 });
4535
+ this.id = t || ur(), this.rows = o, this.columns = Ee(n), this.config = Ee(r), this.table = s || Ee(this.createTableObject()), this.display = this.createDisplayObject(i), this.modal = Ee({ visible: !1 });
4541
4536
  }
4542
4537
  createTableObject() {
4543
4538
  const t = {};
@@ -4589,16 +4584,16 @@ class Ac {
4589
4584
  this.config.view === "list-expansion" && (this.display[t].expanded = !this.display[t].expanded);
4590
4585
  }
4591
4586
  }
4592
- const Tc = {
4587
+ const Cc = {
4593
4588
  key: 0,
4594
4589
  id: "resizable"
4595
- }, Dc = {
4590
+ }, Rc = {
4596
4591
  class: "atable-header-row",
4597
4592
  tabindex: "-1"
4598
- }, Mc = {
4593
+ }, Ac = {
4599
4594
  key: 0,
4600
4595
  id: "header-index"
4601
- }, Vc = /* @__PURE__ */ Z({
4596
+ }, Tc = /* @__PURE__ */ Z({
4602
4597
  __name: "ATableHeader",
4603
4598
  props: {
4604
4599
  columns: {},
@@ -4606,30 +4601,29 @@ const Tc = {
4606
4601
  tableid: {}
4607
4602
  },
4608
4603
  setup(e) {
4609
- vo((r) => ({
4610
- "0c61081d": E(n)
4611
- }));
4612
- const t = ne(e.tableid), n = t.numberedRowWidth.value, o = (r) => ({
4613
- minWidth: r.width || "40ch",
4614
- textAlign: r.align || "center",
4604
+ const t = ne(e.tableid);
4605
+ t.numberedRowWidth.value;
4606
+ const n = (o) => ({
4607
+ minWidth: o.width || "40ch",
4608
+ textAlign: o.align || "center",
4615
4609
  width: t.config.fullWidth ? "auto" : null
4616
4610
  });
4617
- return (r, s) => r.columns.length ? (x(), A("thead", Tc, [
4618
- D("tr", Dc, [
4619
- E(t).zeroColumn ? (x(), A("th", Mc)) : ge("", !0),
4620
- (x(!0), A(Oe, null, Pe(r.columns, (i, a) => (x(), A("th", {
4621
- key: a,
4611
+ return (o, r) => o.columns.length ? (x(), A("thead", Cc, [
4612
+ D("tr", Rc, [
4613
+ k(t).zeroColumn ? (x(), A("th", Ac)) : ge("", !0),
4614
+ (x(!0), A(Oe, null, Pe(o.columns, (s, i) => (x(), A("th", {
4615
+ key: i,
4622
4616
  tabindex: "-1",
4623
- style: ce(o(i))
4617
+ style: ce(n(s))
4624
4618
  }, [
4625
- me(r.$slots, "default", {}, () => [
4626
- go(le(i.label || String.fromCharCode(a + 97).toUpperCase()), 1)
4627
- ], !0)
4619
+ me(o.$slots, "default", {}, () => [
4620
+ mo(le(s.label || String.fromCharCode(i + 97).toUpperCase()), 1)
4621
+ ])
4628
4622
  ], 4))), 128))
4629
4623
  ])
4630
4624
  ])) : ge("", !0);
4631
4625
  }
4632
- }), Lc = /* @__PURE__ */ Xe(Vc, [["__scopeId", "data-v-b0bfa37f"]]), jc = /* @__PURE__ */ Z({
4626
+ }), Dc = /* @__PURE__ */ Z({
4633
4627
  __name: "ATableModal",
4634
4628
  props: {
4635
4629
  colIndex: {},
@@ -4648,10 +4642,10 @@ const Tc = {
4648
4642
  onClick: t,
4649
4643
  onInput: t
4650
4644
  }, [
4651
- me(n.$slots, "default", {}, void 0, !0)
4645
+ me(n.$slots, "default")
4652
4646
  ], 544));
4653
4647
  }
4654
- }), Bc = /* @__PURE__ */ Xe(jc, [["__scopeId", "data-v-10a48b2a"]]), Uc = /* @__PURE__ */ Z({
4648
+ }), Mc = /* @__PURE__ */ Z({
4655
4649
  __name: "ATable",
4656
4650
  props: {
4657
4651
  id: {},
@@ -4664,8 +4658,8 @@ const Tc = {
4664
4658
  emits: ["update:modelValue"],
4665
4659
  setup(e, { emit: t }) {
4666
4660
  const n = e, o = t;
4667
- let r = n.modelValue ? n.modelValue : n.rows, s = new Ac(n.id, n.columns, r, n.config);
4668
- ct(s.id, s), J(
4661
+ let r = n.modelValue ? n.modelValue : n.rows, s = new Nc(n.id, n.columns, r, n.config);
4662
+ it(s.id, s), J(
4669
4663
  () => s.rows,
4670
4664
  (a) => {
4671
4665
  o("update:modelValue", a);
@@ -4684,84 +4678,84 @@ const Tc = {
4684
4678
  }
4685
4679
  }), (a, c) => ze((x(), A("table", {
4686
4680
  class: "atable",
4687
- style: ce({ width: E(s).config.fullWidth ? "100%" : "auto" })
4681
+ style: ce({ width: k(s).config.fullWidth ? "100%" : "auto" })
4688
4682
  }, [
4689
- me(a.$slots, "header", { data: E(s) }, () => [
4690
- pt(Lc, {
4691
- columns: E(s).columns,
4692
- config: E(s).config,
4693
- tableid: E(s).id
4683
+ me(a.$slots, "header", { data: k(s) }, () => [
4684
+ ft(Tc, {
4685
+ columns: k(s).columns,
4686
+ config: k(s).config,
4687
+ tableid: k(s).id
4694
4688
  }, null, 8, ["columns", "config", "tableid"])
4695
- ], !0),
4689
+ ]),
4696
4690
  D("tbody", null, [
4697
- me(a.$slots, "body", { data: E(s) }, () => [
4698
- (x(!0), A(Oe, null, Pe(E(s).rows, (u, l) => (x(), Se(_c, {
4699
- key: u.id || E(fr)(),
4691
+ me(a.$slots, "body", { data: k(s) }, () => [
4692
+ (x(!0), A(Oe, null, Pe(k(s).rows, (u, l) => (x(), Se(gc, {
4693
+ key: u.id || k(ur)(),
4700
4694
  row: u,
4701
4695
  rowIndex: l,
4702
- tableid: E(s).id
4696
+ tableid: k(s).id
4703
4697
  }, {
4704
- default: ht(() => [
4705
- (x(!0), A(Oe, null, Pe(E(s).columns, (d, f) => (x(), Se(vc, {
4698
+ default: pt(() => [
4699
+ (x(!0), A(Oe, null, Pe(k(s).columns, (d, f) => (x(), Se(hc, {
4706
4700
  key: `${f}:${l}`,
4707
- tableid: E(s).id,
4701
+ tableid: k(s).id,
4708
4702
  col: d,
4709
4703
  spellcheck: "false",
4710
4704
  rowIndex: l,
4711
- colIndex: f + (E(s).zeroColumn ? 0 : -1),
4705
+ colIndex: f + (k(s).zeroColumn ? 0 : -1),
4712
4706
  component: d.cellComponent,
4713
4707
  style: ce({
4714
4708
  textAlign: (d == null ? void 0 : d.align) || "center",
4715
4709
  minWidth: (d == null ? void 0 : d.width) || "40ch",
4716
- width: E(s).config.fullWidth ? "auto" : null
4710
+ width: k(s).config.fullWidth ? "auto" : null
4717
4711
  })
4718
4712
  }, null, 8, ["tableid", "col", "rowIndex", "colIndex", "component", "style"]))), 128))
4719
4713
  ]),
4720
4714
  _: 2
4721
4715
  }, 1032, ["row", "rowIndex", "tableid"]))), 128))
4722
- ], !0)
4716
+ ])
4723
4717
  ]),
4724
- me(a.$slots, "footer", { data: E(s) }, void 0, !0),
4725
- me(a.$slots, "modal", { data: E(s) }, () => [
4726
- ze(pt(Bc, {
4727
- colIndex: E(s).modal.colIndex,
4728
- rowIndex: E(s).modal.rowIndex,
4729
- tableid: E(s).id,
4718
+ me(a.$slots, "footer", { data: k(s) }),
4719
+ me(a.$slots, "modal", { data: k(s) }, () => [
4720
+ ze(ft(Dc, {
4721
+ colIndex: k(s).modal.colIndex,
4722
+ rowIndex: k(s).modal.rowIndex,
4723
+ tableid: k(s).id,
4730
4724
  style: ce({
4731
- left: E(s).modal.left + "px",
4732
- top: E(s).modal.top + "px",
4733
- maxWidth: E(s).modal.width + "px"
4725
+ left: k(s).modal.left + "px",
4726
+ top: k(s).modal.top + "px",
4727
+ maxWidth: k(s).modal.width + "px"
4734
4728
  })
4735
4729
  }, {
4736
- default: ht(() => [
4737
- (x(), Se(Kt(E(s).modal.component), Jt({
4738
- key: `${E(s).modal.rowIndex}:${E(s).modal.colIndex}`,
4739
- colIndex: E(s).modal.colIndex,
4740
- rowIndex: E(s).modal.rowIndex,
4741
- tableid: E(s).id
4742
- }, E(s).modal.componentProps), null, 16, ["colIndex", "rowIndex", "tableid"]))
4730
+ default: pt(() => [
4731
+ (x(), Se(qt(k(s).modal.component), Kt({
4732
+ key: `${k(s).modal.rowIndex}:${k(s).modal.colIndex}`,
4733
+ colIndex: k(s).modal.colIndex,
4734
+ rowIndex: k(s).modal.rowIndex,
4735
+ tableid: k(s).id
4736
+ }, k(s).modal.componentProps), null, 16, ["colIndex", "rowIndex", "tableid"]))
4743
4737
  ]),
4744
4738
  _: 1
4745
4739
  }, 8, ["colIndex", "rowIndex", "tableid", "style"]), [
4746
- [qt, E(s).modal.visible]
4740
+ [zt, k(s).modal.visible]
4747
4741
  ])
4748
- ], !0)
4742
+ ])
4749
4743
  ], 4)), [
4750
- [E($c), i]
4744
+ [k(Oc), i]
4751
4745
  ]);
4752
4746
  }
4753
- }), Hc = /* @__PURE__ */ Xe(Uc, [["__scopeId", "data-v-f0f87ebf"]]), Wc = /* @__PURE__ */ Z({
4747
+ }), Vc = /* @__PURE__ */ Z({
4754
4748
  __name: "Records",
4755
4749
  setup(e) {
4756
- const { stonecrop: t, isReady: n } = Co(), o = { view: "list" };
4757
- return (r, s) => E(n) ? (x(), Se(E(Hc), {
4750
+ const { stonecrop: t, isReady: n } = $o(), o = { view: "list" };
4751
+ return (r, s) => k(n) ? (x(), Se(k(Mc), {
4758
4752
  key: 0,
4759
- columns: E(t).schema.schema.toArray(),
4760
- rows: E(t).store.records,
4753
+ columns: k(t).schema.schema.toArray(),
4754
+ rows: k(t).store.records,
4761
4755
  config: o
4762
4756
  }, null, 8, ["columns", "rows"])) : ge("", !0);
4763
4757
  }
4764
- }), gr = (e) => (fo("data-v-18bfde6e"), e = e(), po(), e), Fc = { class: "tabs" }, Gc = { tabindex: "0" }, zc = {
4758
+ }), mr = (e) => (uo("data-v-18bfde6e"), e = e(), fo(), e), Lc = { class: "tabs" }, jc = { tabindex: "0" }, Bc = {
4765
4759
  version: "1.1",
4766
4760
  id: "Capa_1",
4767
4761
  xmlns: "http://www.w3.org/2000/svg",
@@ -4771,7 +4765,7 @@ const Tc = {
4771
4765
  viewBox: "0 0 424.098 424.098",
4772
4766
  style: { "enable-background": "new 0 0 424.098 424.098" },
4773
4767
  "xml:space": "preserve"
4774
- }, qc = /* @__PURE__ */ gr(() => /* @__PURE__ */ D("g", null, [
4768
+ }, Uc = /* @__PURE__ */ mr(() => /* @__PURE__ */ D("g", null, [
4775
4769
  /* @__PURE__ */ D("path", {
4776
4770
  style: { fill: "#010002" },
4777
4771
  d: `M351.191,401.923H72.901c-4.487,0-8.129-3.633-8.129-8.129V242.262l-56.664-0.114
@@ -4784,24 +4778,24 @@ const Tc = {
4784
4778
  c-3.032,1.268-6.527,0.569-8.86-1.764l-57.038-57.038l-183.95,183.95l45.203,0.089c4.487,0.008,8.112,3.642,8.112,8.129
4785
4779
  C81.03,234.149,81.03,385.666,81.03,385.666z`
4786
4780
  })
4787
- ], -1)), Kc = [
4788
- qc
4789
- ], Jc = { tabindex: "0" }, Yc = { style: { width: "11pt" } }, Qc = /* @__PURE__ */ gr(() => /* @__PURE__ */ D("g", { transform: "matrix(-0.08088215,0,0,0.08088215,9.8016177,3.1263021e-6)" }, [
4781
+ ], -1)), Hc = [
4782
+ Uc
4783
+ ], Wc = { tabindex: "0" }, Fc = { style: { width: "11pt" } }, Gc = /* @__PURE__ */ mr(() => /* @__PURE__ */ D("g", { transform: "matrix(-0.08088215,0,0,0.08088215,9.8016177,3.1263021e-6)" }, [
4790
4784
  /* @__PURE__ */ D("path", {
4791
4785
  d: "M 93.148438,80.832031 C 109.5,57.742188 104.03125,25.769531 80.941406,9.421875 57.851562,-6.925781 25.878906,-1.460938 9.53125,21.632812 -6.816406,44.722656 -1.351562,76.691406 21.742188,93.039062 38.222656,104.70703 60.011719,105.60547 77.394531,95.339844 l 37.769529,37.542966 c 4.07813,4.29297 10.86328,4.46485 15.15625,0.38672 4.29297,-4.07422 4.46485,-10.85937 0.39063,-15.15234 -0.12891,-0.13672 -0.25391,-0.26172 -0.39063,-0.39063 z m -41.839844,3.5 C 33.0625,84.335938 18.269531,69.554688 18.257812,51.308594 18.253906,33.0625 33.035156,18.269531 51.285156,18.261719 c 18.222656,-0.0078 33.007813,14.75 33.042969,32.972656 0.03125,18.25 -14.742187,33.066406 -32.996094,33.097656 -0.0078,0 -0.01172,0 -0.02344,0 z m 0,0",
4792
4786
  style: { fill: "#000000", "fill-opacity": "1", "fill-rule": "nonzero", stroke: "none" },
4793
4787
  id: "path2"
4794
4788
  })
4795
- ], -1)), Xc = [
4796
- Qc
4797
- ], Zc = /* @__PURE__ */ Z({
4789
+ ], -1)), zc = [
4790
+ Gc
4791
+ ], qc = /* @__PURE__ */ Z({
4798
4792
  __name: "SheetNav",
4799
4793
  props: {
4800
4794
  breadcrumbs: {}
4801
4795
  },
4802
4796
  setup(e) {
4803
4797
  const t = e, n = T([]), o = T(!0), r = T(!1), s = T(""), i = T(null), a = L(() => o.value ? "unrotated" : "rotated");
4804
- zt(() => {
4798
+ Gt(() => {
4805
4799
  n.value = t.breadcrumbs || [];
4806
4800
  });
4807
4801
  const c = () => {
@@ -4817,32 +4811,32 @@ const Tc = {
4817
4811
  }, f = () => {
4818
4812
  };
4819
4813
  return (p, m) => {
4820
- const v = xr("router-link");
4814
+ const v = Or("router-link");
4821
4815
  return x(), A("footer", null, [
4822
- D("ul", Fc, [
4816
+ D("ul", Lc, [
4823
4817
  D("li", {
4824
4818
  class: "hidebreadcrumbs",
4825
4819
  onClick: c,
4826
- onKeydown: tt(c, ["enter"])
4820
+ onKeydown: et(c, ["enter"])
4827
4821
  }, [
4828
- D("a", Gc, [
4822
+ D("a", jc, [
4829
4823
  D("div", {
4830
- class: uo(a.value)
4824
+ class: lo(a.value)
4831
4825
  }, "×", 2)
4832
4826
  ])
4833
4827
  ], 32),
4834
4828
  D("li", {
4835
4829
  class: "hometab",
4836
4830
  onClick: f,
4837
- onKeydown: tt(f, ["enter"]),
4831
+ onKeydown: et(f, ["enter"]),
4838
4832
  style: ce({ display: o.value ? "block" : "none" })
4839
4833
  }, [
4840
- pt(v, {
4834
+ ft(v, {
4841
4835
  to: "/home",
4842
4836
  tabindex: "0"
4843
4837
  }, {
4844
- default: ht(() => [
4845
- (x(), A("svg", zc, Kc))
4838
+ default: pt(() => [
4839
+ (x(), A("svg", Bc, Hc))
4846
4840
  ]),
4847
4841
  _: 1
4848
4842
  })
@@ -4850,14 +4844,14 @@ const Tc = {
4850
4844
  D("li", {
4851
4845
  class: "searchtab",
4852
4846
  onClick: u,
4853
- onKeydown: tt(u, ["enter"]),
4847
+ onKeydown: et(u, ["enter"]),
4854
4848
  style: ce({ display: o.value ? "block" : "none" })
4855
4849
  }, [
4856
- D("a", Jc, [
4850
+ D("a", Wc, [
4857
4851
  D("span", {
4858
4852
  style: ce({ display: r.value ? "none" : "block" })
4859
4853
  }, [
4860
- (x(), A("svg", Yc, Xc))
4854
+ (x(), A("svg", Fc, zc))
4861
4855
  ], 4),
4862
4856
  ze(D("input", {
4863
4857
  "onUpdate:modelValue": m[0] || (m[0] = (g) => s.value = g),
@@ -4867,10 +4861,10 @@ const Tc = {
4867
4861
  onClick: m[1] || (m[1] = (g) => l(g)),
4868
4862
  onInput: m[2] || (m[2] = (g) => l(g)),
4869
4863
  onBlur: m[3] || (m[3] = (g) => d(g)),
4870
- onKeydown: m[4] || (m[4] = tt((g) => d(g), ["enter"])),
4864
+ onKeydown: m[4] || (m[4] = et((g) => d(g), ["enter"])),
4871
4865
  type: "text"
4872
4866
  }, null, 36), [
4873
- [$r, s.value]
4867
+ [Pr, s.value]
4874
4868
  ])
4875
4869
  ])
4876
4870
  ], 36),
@@ -4878,12 +4872,12 @@ const Tc = {
4878
4872
  key: S,
4879
4873
  style: ce({ display: o.value ? "block" : "none" })
4880
4874
  }, [
4881
- pt(v, {
4875
+ ft(v, {
4882
4876
  tabindex: "0",
4883
4877
  to: g.to
4884
4878
  }, {
4885
- default: ht(() => [
4886
- go(le(g.title), 1)
4879
+ default: pt(() => [
4880
+ mo(le(g.title), 1)
4887
4881
  ]),
4888
4882
  _: 2
4889
4883
  }, 1032, ["to"])
@@ -4892,17 +4886,17 @@ const Tc = {
4892
4886
  ]);
4893
4887
  };
4894
4888
  }
4895
- }), el = /* @__PURE__ */ tn(Zc, [["__scopeId", "data-v-18bfde6e"]]), nl = {
4889
+ }), Kc = /* @__PURE__ */ en(qc, [["__scopeId", "data-v-18bfde6e"]]), Yc = {
4896
4890
  install: (e) => {
4897
- e.component("ActionSet", Fr), e.component("CommandPalette", qr), e.component("Doctype", tc), e.component("Records", Wc), e.component("SheetNav", el);
4891
+ e.component("ActionSet", Hr), e.component("CommandPalette", Gr), e.component("Doctype", ec), e.component("Records", Vc), e.component("SheetNav", Kc);
4898
4892
  }
4899
4893
  };
4900
4894
  export {
4901
- Fr as ActionSet,
4902
- qr as CommandPalette,
4903
- tc as Doctype,
4904
- Wc as Records,
4905
- el as SheetNav,
4906
- nl as StonecropDesktop
4895
+ Hr as ActionSet,
4896
+ Gr as CommandPalette,
4897
+ ec as Doctype,
4898
+ Vc as Records,
4899
+ Kc as SheetNav,
4900
+ Yc as StonecropDesktop
4907
4901
  };
4908
4902
  //# sourceMappingURL=desktop.js.map