instaui 0.3.0__py2.py3-none-any.whl → 0.3.1__py2.py3-none-any.whl

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.
@@ -1,14 +1,14 @@
1
- var Ln = Object.defineProperty;
2
- var Bn = (e, t, n) => t in e ? Ln(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var x = (e, t, n) => Bn(e, typeof t != "symbol" ? t + "" : t, n);
4
- import * as Fn from "vue";
5
- import { unref as W, watch as G, nextTick as ke, isRef as Kt, ref as Q, shallowRef as H, watchEffect as Gt, computed as L, toRaw as zt, customRef as ae, toValue as Qe, readonly as Un, provide as ye, inject as J, shallowReactive as Hn, defineComponent as D, reactive as Kn, h as $, getCurrentInstance as qt, renderList as Gn, TransitionGroup as Qt, normalizeStyle as zn, normalizeClass as Ne, toDisplayString as Ae, cloneVNode as Je, vModelDynamic as qn, vShow as Qn, withDirectives as Jn, resolveDynamicComponent as Yn, normalizeProps as Xn, onErrorCaptured as Zn, openBlock as me, createElementBlock as ve, createElementVNode as er, createVNode as tr, createCommentVNode as nr, Fragment as rr, KeepAlive as or } from "vue";
6
- let Jt;
7
- function sr(e) {
8
- Jt = e;
1
+ var Bn = Object.defineProperty;
2
+ var Fn = (e, t, n) => t in e ? Bn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var $ = (e, t, n) => Fn(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import * as Un from "vue";
5
+ import { unref as W, watch as G, nextTick as ke, isRef as Gt, ref as Q, shallowRef as H, watchEffect as zt, computed as L, toRaw as qt, customRef as se, toValue as Qe, readonly as Hn, provide as ve, inject as J, shallowReactive as Kn, defineComponent as j, reactive as Gn, h as x, getCurrentInstance as Qt, renderList as zn, TransitionGroup as Jt, normalizeStyle as qn, normalizeClass as Ne, toDisplayString as Ae, cloneVNode as Je, vModelDynamic as Qn, vShow as Jn, withDirectives as Yn, resolveDynamicComponent as Xn, normalizeProps as Zn, onErrorCaptured as er, openBlock as ge, createElementBlock as me, createElementVNode as tr, createVNode as nr, createCommentVNode as rr, Fragment as or, KeepAlive as sr } from "vue";
6
+ let Yt;
7
+ function ir(e) {
8
+ Yt = e;
9
9
  }
10
10
  function Ye() {
11
- return Jt;
11
+ return Yt;
12
12
  }
13
13
  function Ve() {
14
14
  const { queryPath: e, pathParams: t, queryParams: n } = Ye();
@@ -18,20 +18,20 @@ function Ve() {
18
18
  ...n === void 0 ? {} : { queryParams: n }
19
19
  };
20
20
  }
21
- const ft = /* @__PURE__ */ new Map();
22
- function ir(e) {
21
+ const dt = /* @__PURE__ */ new Map();
22
+ function ar(e) {
23
23
  var t;
24
24
  (t = e.scopes) == null || t.forEach((n) => {
25
- ft.set(n.id, n);
25
+ dt.set(n.id, n);
26
26
  });
27
27
  }
28
28
  function Ue(e) {
29
- return ft.get(e);
29
+ return dt.get(e);
30
30
  }
31
- function fe(e) {
32
- return e && ft.has(e);
31
+ function Re(e) {
32
+ return e && dt.has(e);
33
33
  }
34
- function he(e) {
34
+ function de(e) {
35
35
  return typeof e == "function" ? e() : W(e);
36
36
  }
37
37
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
@@ -43,9 +43,9 @@ function Ze(e, t = !1, n = "Timeout") {
43
43
  });
44
44
  }
45
45
  function et(e, t = !1) {
46
- function n(u, { flush: f = "sync", deep: h = !1, timeout: g, throwOnTimeout: m } = {}) {
46
+ function n(u, { flush: f = "sync", deep: h = !1, timeout: m, throwOnTimeout: g } = {}) {
47
47
  let v = null;
48
- const _ = [new Promise((R) => {
48
+ const E = [new Promise((R) => {
49
49
  v = G(
50
50
  e,
51
51
  (C) => {
@@ -58,30 +58,30 @@ function et(e, t = !1) {
58
58
  }
59
59
  );
60
60
  })];
61
- return g != null && _.push(
62
- Ze(g, m).then(() => he(e)).finally(() => v == null ? void 0 : v())
63
- ), Promise.race(_);
61
+ return m != null && E.push(
62
+ Ze(m, g).then(() => de(e)).finally(() => v == null ? void 0 : v())
63
+ ), Promise.race(E);
64
64
  }
65
65
  function r(u, f) {
66
- if (!Kt(u))
66
+ if (!Gt(u))
67
67
  return n((C) => C === u, f);
68
- const { flush: h = "sync", deep: g = !1, timeout: m, throwOnTimeout: v } = f ?? {};
69
- let E = null;
68
+ const { flush: h = "sync", deep: m = !1, timeout: g, throwOnTimeout: v } = f ?? {};
69
+ let _ = null;
70
70
  const R = [new Promise((C) => {
71
- E = G(
71
+ _ = G(
72
72
  [e, u],
73
73
  ([M, U]) => {
74
- t !== (M === U) && (E ? E() : ke(() => E == null ? void 0 : E()), C(M));
74
+ t !== (M === U) && (_ ? _() : ke(() => _ == null ? void 0 : _()), C(M));
75
75
  },
76
76
  {
77
77
  flush: h,
78
- deep: g,
78
+ deep: m,
79
79
  immediate: !0
80
80
  }
81
81
  );
82
82
  })];
83
- return m != null && R.push(
84
- Ze(m, v).then(() => he(e)).finally(() => (E == null || E(), he(e)))
83
+ return g != null && R.push(
84
+ Ze(g, v).then(() => de(e)).finally(() => (_ == null || _(), de(e)))
85
85
  ), Promise.race(R);
86
86
  }
87
87
  function o(u) {
@@ -98,8 +98,8 @@ function et(e, t = !1) {
98
98
  }
99
99
  function l(u, f) {
100
100
  return n((h) => {
101
- const g = Array.from(h);
102
- return g.includes(u) || g.includes(he(u));
101
+ const m = Array.from(h);
102
+ return m.includes(u) || m.includes(de(u));
103
103
  }, f);
104
104
  }
105
105
  function d(u) {
@@ -109,7 +109,7 @@ function et(e, t = !1) {
109
109
  let h = -1;
110
110
  return n(() => (h += 1, h >= u), f);
111
111
  }
112
- return Array.isArray(he(e)) ? {
112
+ return Array.isArray(de(e)) ? {
113
113
  toMatch: n,
114
114
  toContains: l,
115
115
  changed: d,
@@ -131,12 +131,12 @@ function et(e, t = !1) {
131
131
  }
132
132
  };
133
133
  }
134
- function ar(e) {
134
+ function cr(e) {
135
135
  return et(e);
136
136
  }
137
- function cr(e, t, n) {
137
+ function ur(e, t, n) {
138
138
  let r;
139
- Kt(n) ? r = {
139
+ Gt(n) ? r = {
140
140
  evaluating: n
141
141
  } : r = n || {};
142
142
  const {
@@ -146,7 +146,7 @@ function cr(e, t, n) {
146
146
  onError: a = Xe
147
147
  } = r, l = Q(!o), d = i ? H(t) : Q(t);
148
148
  let c = 0;
149
- return Gt(async (u) => {
149
+ return zt(async (u) => {
150
150
  if (!l.value)
151
151
  return;
152
152
  c++;
@@ -156,20 +156,20 @@ function cr(e, t, n) {
156
156
  s.value = !0;
157
157
  });
158
158
  try {
159
- const g = await e((m) => {
159
+ const m = await e((g) => {
160
160
  u(() => {
161
- s && (s.value = !1), h || m();
161
+ s && (s.value = !1), h || g();
162
162
  });
163
163
  });
164
- f === c && (d.value = g);
165
- } catch (g) {
166
- a(g);
164
+ f === c && (d.value = m);
165
+ } catch (m) {
166
+ a(m);
167
167
  } finally {
168
168
  s && f === c && (s.value = !1), h = !0;
169
169
  }
170
170
  }), o ? L(() => (l.value = !0, d.value)) : d;
171
171
  }
172
- function ur(e, t, n) {
172
+ function lr(e, t, n) {
173
173
  const {
174
174
  immediate: r = !0,
175
175
  delay: o = 0,
@@ -179,9 +179,9 @@ function ur(e, t, n) {
179
179
  shallow: l = !0,
180
180
  throwError: d
181
181
  } = {}, c = l ? H(t) : Q(t), u = Q(!1), f = Q(!1), h = H(void 0);
182
- async function g(E = 0, ..._) {
183
- a && (c.value = t), h.value = void 0, u.value = !1, f.value = !0, E > 0 && await Ze(E);
184
- const R = typeof e == "function" ? e(..._) : e;
182
+ async function m(_ = 0, ...E) {
183
+ a && (c.value = t), h.value = void 0, u.value = !1, f.value = !0, _ > 0 && await Ze(_);
184
+ const R = typeof e == "function" ? e(...E) : e;
185
185
  try {
186
186
  const C = await R;
187
187
  c.value = C, u.value = !0, i(C);
@@ -193,64 +193,64 @@ function ur(e, t, n) {
193
193
  }
194
194
  return c.value;
195
195
  }
196
- r && g(o);
197
- const m = {
196
+ r && m(o);
197
+ const g = {
198
198
  state: c,
199
199
  isReady: u,
200
200
  isLoading: f,
201
201
  error: h,
202
- execute: g
202
+ execute: m
203
203
  };
204
204
  function v() {
205
- return new Promise((E, _) => {
206
- ar(f).toBe(!1).then(() => E(m)).catch(_);
205
+ return new Promise((_, E) => {
206
+ cr(f).toBe(!1).then(() => _(g)).catch(E);
207
207
  });
208
208
  }
209
209
  return {
210
- ...m,
211
- then(E, _) {
212
- return v().then(E, _);
210
+ ...g,
211
+ then(_, E) {
212
+ return v().then(_, E);
213
213
  }
214
214
  };
215
215
  }
216
- function j(e, t) {
216
+ function D(e, t) {
217
217
  t = t || {};
218
- const n = [...Object.keys(t), "__Vue"], r = [...Object.values(t), Fn];
218
+ const n = [...Object.keys(t), "__Vue"], r = [...Object.values(t), Un];
219
219
  try {
220
220
  return new Function(...n, `return (${e})`)(...r);
221
221
  } catch (o) {
222
222
  throw new Error(o + " in function code: " + e);
223
223
  }
224
224
  }
225
- function lr(e) {
225
+ function fr(e) {
226
226
  if (e.startsWith(":")) {
227
227
  e = e.slice(1);
228
228
  try {
229
- return j(e);
229
+ return D(e);
230
230
  } catch (t) {
231
231
  throw new Error(t + " in function code: " + e);
232
232
  }
233
233
  }
234
234
  }
235
- function Yt(e) {
235
+ function Xt(e) {
236
236
  return e.constructor.name === "AsyncFunction";
237
237
  }
238
- class fr {
238
+ class dr {
239
239
  toString() {
240
240
  return "";
241
241
  }
242
242
  }
243
- const be = new fr();
244
- function Re(e) {
245
- return zt(e) === be;
243
+ const Ee = new dr();
244
+ function be(e) {
245
+ return qt(e) === Ee;
246
246
  }
247
- function dr(e) {
247
+ function hr(e) {
248
248
  return Array.isArray(e) && e[0] === "bind";
249
249
  }
250
- function hr(e) {
250
+ function pr(e) {
251
251
  return e[1];
252
252
  }
253
- function Xt(e, t, n) {
253
+ function Zt(e, t, n) {
254
254
  if (Array.isArray(t)) {
255
255
  const [o, ...s] = t;
256
256
  switch (o) {
@@ -262,10 +262,10 @@ function Xt(e, t, n) {
262
262
  return s[0] + e;
263
263
  }
264
264
  }
265
- const r = Zt(t, n);
265
+ const r = en(t, n);
266
266
  return e[r];
267
267
  }
268
- function Zt(e, t) {
268
+ function en(e, t) {
269
269
  if (typeof e == "string" || typeof e == "number")
270
270
  return e;
271
271
  if (!Array.isArray(e))
@@ -280,26 +280,26 @@ function Zt(e, t) {
280
280
  throw new Error(`Invalid flag ${n} in array at ${e}`);
281
281
  }
282
282
  }
283
- function en(e, t, n) {
283
+ function tn(e, t, n) {
284
284
  return t.reduce(
285
- (r, o) => Xt(r, o, n),
285
+ (r, o) => Zt(r, o, n),
286
286
  e
287
287
  );
288
288
  }
289
- function tn(e, t, n, r) {
289
+ function nn(e, t, n, r) {
290
290
  t.reduce((o, s, i) => {
291
291
  if (i === t.length - 1)
292
- o[Zt(s, r)] = n;
292
+ o[en(s, r)] = n;
293
293
  else
294
- return Xt(o, s, r);
294
+ return Zt(o, s, r);
295
295
  }, e);
296
296
  }
297
- function pr(e, t, n) {
297
+ function gr(e, t, n) {
298
298
  const { paths: r, getBindableValueFn: o } = t, { paths: s, getBindableValueFn: i } = t;
299
- return r === void 0 || r.length === 0 ? e : ae(() => ({
299
+ return r === void 0 || r.length === 0 ? e : se(() => ({
300
300
  get() {
301
301
  try {
302
- return en(
302
+ return tn(
303
303
  Qe(e),
304
304
  r,
305
305
  o
@@ -309,7 +309,7 @@ function pr(e, t, n) {
309
309
  }
310
310
  },
311
311
  set(a) {
312
- tn(
312
+ nn(
313
313
  Qe(e),
314
314
  s || r,
315
315
  a,
@@ -318,43 +318,43 @@ function pr(e, t, n) {
318
318
  }
319
319
  }));
320
320
  }
321
- function dt(e) {
322
- return ae((t, n) => ({
321
+ function ht(e) {
322
+ return se((t, n) => ({
323
323
  get() {
324
324
  return t(), e;
325
325
  },
326
326
  set(r) {
327
- !Re(e) && JSON.stringify(r) === JSON.stringify(e) || (e = r, n());
327
+ !be(e) && JSON.stringify(r) === JSON.stringify(e) || (e = r, n());
328
328
  }
329
329
  }));
330
330
  }
331
- function gr(e, t) {
331
+ function mr(e, t) {
332
332
  const { deepCompare: n = !1 } = e;
333
- return n ? dt(e.value) : Q(e.value);
333
+ return n ? ht(e.value) : Q(e.value);
334
334
  }
335
- function mr(e, t, n) {
335
+ function vr(e, t, n) {
336
336
  const { bind: r = {}, code: o, const: s = [] } = e, i = Object.values(r).map((c, u) => s[u] === 1 ? c : t.getVueRefObject(c));
337
- if (Yt(new Function(o)))
338
- return cr(
337
+ if (Xt(new Function(o)))
338
+ return ur(
339
339
  async () => {
340
340
  const c = Object.fromEntries(
341
341
  Object.keys(r).map((u, f) => [u, i[f]])
342
342
  );
343
- return await j(o, c)();
343
+ return await D(o, c)();
344
344
  },
345
345
  null,
346
346
  { lazy: !0 }
347
347
  );
348
348
  const a = Object.fromEntries(
349
349
  Object.keys(r).map((c, u) => [c, i[u]])
350
- ), l = j(o, a);
350
+ ), l = D(o, a);
351
351
  return L(l);
352
352
  }
353
- function vr(e) {
353
+ function yr(e) {
354
354
  const { init: t, deepEqOnInput: n } = e;
355
- return n === void 0 ? H(t ?? be) : dt(t ?? be);
355
+ return n === void 0 ? H(t ?? Ee) : ht(t ?? Ee);
356
356
  }
357
- function yr(e, t, n) {
357
+ function wr(e, t, n) {
358
358
  const {
359
359
  inputs: r = [],
360
360
  code: o,
@@ -362,47 +362,47 @@ function yr(e, t, n) {
362
362
  data: i,
363
363
  asyncInit: a = null,
364
364
  deepEqOnInput: l = 0
365
- } = e, d = s || Array(r.length).fill(0), c = i || Array(r.length).fill(0), u = r.filter((v, E) => d[E] === 0 && c[E] === 0).map((v) => t.getVueRefObject(v));
365
+ } = e, d = s || Array(r.length).fill(0), c = i || Array(r.length).fill(0), u = r.filter((v, _) => d[_] === 0 && c[_] === 0).map((v) => t.getVueRefObject(v));
366
366
  function f() {
367
367
  return r.map(
368
- (v, E) => c[E] === 1 ? v : t.getValue(v)
368
+ (v, _) => c[_] === 1 ? v : t.getValue(v)
369
369
  );
370
370
  }
371
- const h = j(o), g = l === 0 ? H(be) : dt(be), m = { immediate: !0, deep: !0 };
372
- return Yt(h) ? (g.value = a, G(
371
+ const h = D(o), m = l === 0 ? H(Ee) : ht(Ee), g = { immediate: !0, deep: !0 };
372
+ return Xt(h) ? (m.value = a, G(
373
373
  u,
374
374
  async () => {
375
- f().some(Re) || (g.value = await h(...f()));
375
+ f().some(be) || (m.value = await h(...f()));
376
376
  },
377
- m
377
+ g
378
378
  )) : G(
379
379
  u,
380
380
  () => {
381
381
  const v = f();
382
- v.some(Re) || (g.value = h(...v));
382
+ v.some(be) || (m.value = h(...v));
383
383
  },
384
- m
385
- ), Un(g);
384
+ g
385
+ ), Hn(m);
386
386
  }
387
- function wr(e) {
387
+ function _r(e) {
388
388
  return e.tag === "vfor";
389
389
  }
390
390
  function Er(e) {
391
391
  return e.tag === "vif";
392
392
  }
393
- function _r(e) {
393
+ function br(e) {
394
394
  return e.tag === "match";
395
395
  }
396
- function nn(e) {
396
+ function rn(e) {
397
397
  return !("type" in e);
398
398
  }
399
- function br(e) {
399
+ function Rr(e) {
400
400
  return "type" in e && e.type === "rp";
401
401
  }
402
- function ht(e) {
402
+ function pt(e) {
403
403
  return "sid" in e && "id" in e;
404
404
  }
405
- class Rr extends Map {
405
+ class Pr extends Map {
406
406
  constructor(t) {
407
407
  super(), this.factory = t;
408
408
  }
@@ -414,10 +414,10 @@ class Rr extends Map {
414
414
  return super.get(t);
415
415
  }
416
416
  }
417
- function rn(e) {
418
- return new Rr(e);
417
+ function on(e) {
418
+ return new Pr(e);
419
419
  }
420
- class Pr {
420
+ class Sr {
421
421
  async eventSend(t, n) {
422
422
  const { fType: r, hKey: o, key: s } = t, i = Ye().webServerInfo, a = s !== void 0 ? { key: s } : {}, l = r === "sync" ? i.event_url : i.event_async_url;
423
423
  let d = {};
@@ -453,7 +453,7 @@ class Pr {
453
453
  })).json();
454
454
  }
455
455
  }
456
- class Sr {
456
+ class Or {
457
457
  async eventSend(t, n) {
458
458
  const { fType: r, hKey: o, key: s } = t, i = s !== void 0 ? { key: s } : {};
459
459
  let a = {};
@@ -478,27 +478,27 @@ class Sr {
478
478
  }
479
479
  }
480
480
  let tt;
481
- function Or(e) {
481
+ function kr(e) {
482
482
  switch (e) {
483
483
  case "web":
484
- tt = new Pr();
484
+ tt = new Sr();
485
485
  break;
486
486
  case "webview":
487
- tt = new Sr();
487
+ tt = new Or();
488
488
  break;
489
489
  }
490
490
  }
491
- function on() {
491
+ function sn() {
492
492
  return tt;
493
493
  }
494
- var K = /* @__PURE__ */ ((e) => (e[e.Ref = 0] = "Ref", e[e.EventContext = 1] = "EventContext", e[e.Data = 2] = "Data", e[e.JsFn = 3] = "JsFn", e))(K || {}), nt = /* @__PURE__ */ ((e) => (e.const = "c", e.ref = "r", e.range = "n", e))(nt || {}), we = /* @__PURE__ */ ((e) => (e[e.Ref = 0] = "Ref", e[e.RouterAction = 1] = "RouterAction", e[e.ElementRefAction = 2] = "ElementRefAction", e))(we || {});
495
- function kr(e, t) {
494
+ var K = /* @__PURE__ */ ((e) => (e[e.Ref = 0] = "Ref", e[e.EventContext = 1] = "EventContext", e[e.Data = 2] = "Data", e[e.JsFn = 3] = "JsFn", e))(K || {}), nt = /* @__PURE__ */ ((e) => (e.const = "c", e.ref = "r", e.range = "n", e))(nt || {}), ye = /* @__PURE__ */ ((e) => (e[e.Ref = 0] = "Ref", e[e.RouterAction = 1] = "RouterAction", e[e.ElementRefAction = 2] = "ElementRefAction", e))(ye || {});
495
+ function Nr(e, t) {
496
496
  const r = {
497
497
  ref: {
498
498
  id: t.id,
499
499
  sid: e
500
500
  },
501
- type: we.Ref
501
+ type: ye.Ref
502
502
  };
503
503
  return {
504
504
  ...t,
@@ -506,7 +506,7 @@ function kr(e, t) {
506
506
  outputs: [r, ...t.outputs || []]
507
507
  };
508
508
  }
509
- function sn(e) {
509
+ function an(e) {
510
510
  const { config: t, varGetter: n } = e;
511
511
  if (!t)
512
512
  return {
@@ -522,7 +522,7 @@ function sn(e) {
522
522
  preValue: a.value,
523
523
  newValue: i.value,
524
524
  reset: !0
525
- } : Nr(a, i, n);
525
+ } : Vr(a, i, n);
526
526
  });
527
527
  return {
528
528
  run: () => {
@@ -537,8 +537,8 @@ function sn(e) {
537
537
  }
538
538
  };
539
539
  }
540
- function Nr(e, t, n) {
541
- const r = j(t.code), o = t.inputs.map((s) => n.getValue(s));
540
+ function Vr(e, t, n) {
541
+ const r = D(t.code), o = t.inputs.map((s) => n.getValue(s));
542
542
  return {
543
543
  refObj: e,
544
544
  preValue: e.value,
@@ -546,11 +546,11 @@ function Nr(e, t, n) {
546
546
  newValue: r(...o)
547
547
  };
548
548
  }
549
- function bt(e) {
549
+ function Rt(e) {
550
550
  return e == null;
551
551
  }
552
552
  function $e(e, t, n) {
553
- if (bt(t) || bt(e.values))
553
+ if (Rt(t) || Rt(e.values))
554
554
  return;
555
555
  t = t;
556
556
  const r = e.values, o = e.types ?? Array.from({ length: t.length }).fill(0);
@@ -558,7 +558,7 @@ function $e(e, t, n) {
558
558
  const a = o[i];
559
559
  if (a === 1)
560
560
  return;
561
- if (s.type === we.Ref) {
561
+ if (s.type === ye.Ref) {
562
562
  if (a === 2) {
563
563
  r[i].forEach(([c, u]) => {
564
564
  const f = s.ref, h = {
@@ -572,12 +572,12 @@ function $e(e, t, n) {
572
572
  n.updateValue(s.ref, r[i]);
573
573
  return;
574
574
  }
575
- if (s.type === we.RouterAction) {
575
+ if (s.type === ye.RouterAction) {
576
576
  const d = r[i], c = n.getRouter()[d.fn];
577
577
  c(...d.args);
578
578
  return;
579
579
  }
580
- if (s.type === we.ElementRefAction) {
580
+ if (s.type === ye.ElementRefAction) {
581
581
  const d = s.ref, c = n.getVueRefObject(d).value, u = r[i], { method: f, args: h = [] } = u;
582
582
  c[f](...h);
583
583
  return;
@@ -588,26 +588,26 @@ function $e(e, t, n) {
588
588
  l.value = r[i];
589
589
  });
590
590
  }
591
- function Vr(e) {
591
+ function Cr(e) {
592
592
  const { watchConfigs: t, computedConfigs: n, varMapGetter: r, sid: o } = e;
593
- return new Cr(t, n, r, o);
593
+ return new Ir(t, n, r, o);
594
594
  }
595
- class Cr {
595
+ class Ir {
596
596
  constructor(t, n, r, o) {
597
- x(this, "taskQueue", []);
598
- x(this, "id2TaskMap", /* @__PURE__ */ new Map());
599
- x(this, "input2TaskIdMap", rn(() => []));
597
+ $(this, "taskQueue", []);
598
+ $(this, "id2TaskMap", /* @__PURE__ */ new Map());
599
+ $(this, "input2TaskIdMap", on(() => []));
600
600
  this.varMapGetter = r;
601
601
  const s = [], i = (a) => {
602
602
  var d;
603
- const l = new Ir(a, r);
603
+ const l = new Ar(a, r);
604
604
  return this.id2TaskMap.set(l.id, l), (d = a.inputs) == null || d.forEach((c, u) => {
605
- var h, g;
606
- if (((h = a.data) == null ? void 0 : h[u]) === 0 && ((g = a.slient) == null ? void 0 : g[u]) === 0) {
607
- if (!nn(c))
605
+ var h, m;
606
+ if (((h = a.data) == null ? void 0 : h[u]) === 0 && ((m = a.slient) == null ? void 0 : m[u]) === 0) {
607
+ if (!rn(c))
608
608
  throw new Error("Non-var input bindings are not supported.");
609
- const m = `${c.sid}-${c.id}`;
610
- this.input2TaskIdMap.getOrDefault(m).push(l.id);
609
+ const g = `${c.sid}-${c.id}`;
610
+ this.input2TaskIdMap.getOrDefault(g).push(l.id);
611
611
  }
612
612
  }), l;
613
613
  };
@@ -616,7 +616,7 @@ class Cr {
616
616
  s.push(l);
617
617
  }), n == null || n.forEach((a) => {
618
618
  const l = i(
619
- kr(o, a)
619
+ Nr(o, a)
620
620
  );
621
621
  s.push(l);
622
622
  }), s.forEach((a) => {
@@ -633,8 +633,8 @@ class Cr {
633
633
  }, h = this._getWatchTargets(a);
634
634
  G(
635
635
  h,
636
- (g) => {
637
- g.some(Re) || (a.modify = !0, this.taskQueue.push(new Ar(a)), this._scheduleNextTick());
636
+ (m) => {
637
+ m.some(be) || (a.modify = !0, this.taskQueue.push(new $r(a)), this._scheduleNextTick());
638
638
  },
639
639
  f
640
640
  );
@@ -679,21 +679,21 @@ class Cr {
679
679
  _getCalculatorTasksByOutput(t) {
680
680
  const n = /* @__PURE__ */ new Set();
681
681
  return t == null || t.forEach((r) => {
682
- if (!ht(r.ref))
682
+ if (!pt(r.ref))
683
683
  throw new Error("Non-var output bindings are not supported.");
684
684
  const { sid: o, id: s } = r.ref, i = `${o}-${s}`;
685
685
  (this.input2TaskIdMap.get(i) || []).forEach((l) => n.add(l));
686
686
  }), n;
687
687
  }
688
688
  }
689
- class Ir {
689
+ class Ar {
690
690
  constructor(t, n) {
691
- x(this, "modify", !0);
692
- x(this, "_running", !1);
693
- x(this, "id");
694
- x(this, "_runningPromise", null);
695
- x(this, "_runningPromiseResolve", null);
696
- x(this, "_inputInfos");
691
+ $(this, "modify", !0);
692
+ $(this, "_running", !1);
693
+ $(this, "id");
694
+ $(this, "_runningPromise", null);
695
+ $(this, "_runningPromiseResolve", null);
696
+ $(this, "_inputInfos");
697
697
  this.watchConfig = t, this.varMapGetter = n, this.id = Symbol(t.debug), this._inputInfos = this.createInputInfos();
698
698
  }
699
699
  createInputInfos() {
@@ -742,14 +742,14 @@ class Ir {
742
742
  }
743
743
  }
744
744
  }
745
- class Ar {
745
+ class $r {
746
746
  /**
747
747
  *
748
748
  */
749
749
  constructor(t) {
750
- x(this, "prevNodes", []);
751
- x(this, "nextNodes", []);
752
- x(this, "_runningPrev", !1);
750
+ $(this, "prevNodes", []);
751
+ $(this, "nextNodes", []);
752
+ $(this, "_runningPrev", !1);
753
753
  this.watchTask = t;
754
754
  }
755
755
  /**
@@ -787,21 +787,21 @@ class Ar {
787
787
  if (this.watchTask.modify) {
788
788
  this.watchTask.modify = !1, this.watchTask.setRunning();
789
789
  try {
790
- await $r(this.watchTask);
790
+ await xr(this.watchTask);
791
791
  } finally {
792
792
  this.watchTask.taskDone();
793
793
  }
794
794
  }
795
795
  }
796
796
  }
797
- async function $r(e) {
798
- const { varMapGetter: t } = e, { outputs: n, preSetup: r } = e.watchConfig, o = sn({
797
+ async function xr(e) {
798
+ const { varMapGetter: t } = e, { outputs: n, preSetup: r } = e.watchConfig, o = an({
799
799
  config: r,
800
800
  varGetter: t
801
801
  });
802
802
  try {
803
803
  o.run();
804
- const s = await on().watchSend(e);
804
+ const s = await sn().watchSend(e);
805
805
  if (!s)
806
806
  return;
807
807
  $e(s, n, t);
@@ -809,15 +809,15 @@ async function $r(e) {
809
809
  o.tryReset();
810
810
  }
811
811
  }
812
- function Rt(e, t) {
812
+ function Pt(e, t) {
813
813
  Object.entries(e).forEach(([n, r]) => t(r, n));
814
814
  }
815
815
  function xe(e, t) {
816
- return an(e, {
816
+ return cn(e, {
817
817
  valueFn: t
818
818
  });
819
819
  }
820
- function an(e, t) {
820
+ function cn(e, t) {
821
821
  const { valueFn: n, keyFn: r } = t;
822
822
  return Object.fromEntries(
823
823
  Object.entries(e).map(([o, s], i) => [
@@ -826,7 +826,7 @@ function an(e, t) {
826
826
  ])
827
827
  );
828
828
  }
829
- function xr(e, t, n) {
829
+ function Tr(e, t, n) {
830
830
  if (Array.isArray(t)) {
831
831
  const [o, ...s] = t;
832
832
  switch (o) {
@@ -838,10 +838,10 @@ function xr(e, t, n) {
838
838
  return s[0] + e;
839
839
  }
840
840
  }
841
- const r = Tr(t);
841
+ const r = Dr(t);
842
842
  return e[r];
843
843
  }
844
- function Tr(e, t) {
844
+ function Dr(e, t) {
845
845
  if (typeof e == "string" || typeof e == "number")
846
846
  return e;
847
847
  if (!Array.isArray(e))
@@ -854,20 +854,20 @@ function Tr(e, t) {
854
854
  throw new Error(`Invalid flag ${n} in array at ${e}`);
855
855
  }
856
856
  }
857
- function Dr(e, t, n) {
857
+ function jr(e, t, n) {
858
858
  return t.reduce(
859
- (r, o) => xr(r, o),
859
+ (r, o) => Tr(r, o),
860
860
  e
861
861
  );
862
862
  }
863
- function jr(e, t) {
863
+ function Mr(e, t) {
864
864
  return t ? t.reduce((n, r) => n[r], e) : e;
865
865
  }
866
- const Mr = window.structuredClone || ((e) => JSON.parse(JSON.stringify(e)));
867
- function cn(e) {
868
- return typeof e == "function" ? e : Mr(zt(e));
866
+ const Wr = window.structuredClone || ((e) => JSON.parse(JSON.stringify(e)));
867
+ function un(e) {
868
+ return typeof e == "function" ? e : Wr(qt(e));
869
869
  }
870
- function Wr(e, t) {
870
+ function Lr(e, t) {
871
871
  const {
872
872
  on: n,
873
873
  code: r,
@@ -880,16 +880,16 @@ function Wr(e, t) {
880
880
  bindData: c
881
881
  } = e, u = d || Array.from({ length: n.length }).fill(0), f = c || Array.from({ length: Object.keys(l).length }).fill(0), h = xe(
882
882
  l,
883
- (v, E, _) => f[_] === 0 ? t.getVueRefObject(v) : v
884
- ), g = j(r, h), m = n.length === 1 ? Pt(u[0] === 1, n[0], t) : n.map(
885
- (v, E) => Pt(u[E] === 1, v, t)
883
+ (v, _, E) => f[E] === 0 ? t.getVueRefObject(v) : v
884
+ ), m = D(r, h), g = n.length === 1 ? St(u[0] === 1, n[0], t) : n.map(
885
+ (v, _) => St(u[_] === 1, v, t)
886
886
  );
887
- return G(m, g, { immediate: o, deep: s, once: i, flush: a });
887
+ return G(g, m, { immediate: o, deep: s, once: i, flush: a });
888
888
  }
889
- function Pt(e, t, n) {
889
+ function St(e, t, n) {
890
890
  return e ? () => t : n.getVueRefObject(t);
891
891
  }
892
- function Lr(e, t) {
892
+ function Br(e, t) {
893
893
  const {
894
894
  inputs: n = [],
895
895
  outputs: r,
@@ -900,20 +900,20 @@ function Lr(e, t) {
900
900
  deep: l,
901
901
  once: d,
902
902
  flush: c
903
- } = e, u = o || Array.from({ length: n.length }).fill(0), f = s || Array.from({ length: n.length }).fill(0), h = j(i), g = n.filter((v, E) => u[E] === 0 && f[E] === 0).map((v) => t.getVueRefObject(v));
904
- function m() {
905
- return n.map((v, E) => f[E] === 0 ? cn(t.getValue(v)) : v);
903
+ } = e, u = o || Array.from({ length: n.length }).fill(0), f = s || Array.from({ length: n.length }).fill(0), h = D(i), m = n.filter((v, _) => u[_] === 0 && f[_] === 0).map((v) => t.getVueRefObject(v));
904
+ function g() {
905
+ return n.map((v, _) => f[_] === 0 ? un(t.getValue(v)) : v);
906
906
  }
907
907
  G(
908
- g,
908
+ m,
909
909
  () => {
910
- let v = h(...m());
910
+ let v = h(...g());
911
911
  if (!r)
912
912
  return;
913
- const _ = r.length === 1 ? [v] : v, R = _.map((C) => C === void 0 ? 1 : 0);
913
+ const E = r.length === 1 ? [v] : v, R = E.map((C) => C === void 0 ? 1 : 0);
914
914
  $e(
915
915
  {
916
- values: _,
916
+ values: E,
917
917
  types: R
918
918
  },
919
919
  r,
@@ -923,31 +923,31 @@ function Lr(e, t) {
923
923
  { immediate: a, deep: l, once: d, flush: c }
924
924
  );
925
925
  }
926
- const rt = rn(() => Symbol());
927
- function Br(e, t) {
926
+ const rt = on(() => Symbol());
927
+ function Fr(e, t) {
928
928
  const n = e.sid, r = rt.getOrDefault(n);
929
- rt.set(n, r), ye(r, t);
929
+ rt.set(n, r), ve(r, t);
930
930
  }
931
- function Fr(e) {
931
+ function Ur(e) {
932
932
  const t = rt.get(e);
933
933
  return J(t);
934
934
  }
935
- function Ur() {
936
- return un().__VUE_DEVTOOLS_GLOBAL_HOOK__;
935
+ function Hr() {
936
+ return ln().__VUE_DEVTOOLS_GLOBAL_HOOK__;
937
937
  }
938
- function un() {
938
+ function ln() {
939
939
  return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
940
940
  }
941
- const Hr = typeof Proxy == "function", Kr = "devtools-plugin:setup", Gr = "plugin:settings:set";
942
- let ie, ot;
943
- function zr() {
941
+ const Kr = typeof Proxy == "function", Gr = "devtools-plugin:setup", zr = "plugin:settings:set";
942
+ let oe, ot;
943
+ function qr() {
944
944
  var e;
945
- return ie !== void 0 || (typeof window < "u" && window.performance ? (ie = !0, ot = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (ie = !0, ot = globalThis.perf_hooks.performance) : ie = !1), ie;
945
+ return oe !== void 0 || (typeof window < "u" && window.performance ? (oe = !0, ot = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (oe = !0, ot = globalThis.perf_hooks.performance) : oe = !1), oe;
946
946
  }
947
- function qr() {
948
- return zr() ? ot.now() : Date.now();
947
+ function Qr() {
948
+ return qr() ? ot.now() : Date.now();
949
949
  }
950
- class Qr {
950
+ class Jr {
951
951
  constructor(t, n) {
952
952
  this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
953
953
  const r = {};
@@ -975,9 +975,9 @@ class Qr {
975
975
  s = i;
976
976
  },
977
977
  now() {
978
- return qr();
978
+ return Qr();
979
979
  }
980
- }, n && n.on(Gr, (i, a) => {
980
+ }, n && n.on(zr, (i, a) => {
981
981
  i === this.plugin.id && this.fallbacks.setSettings(a);
982
982
  }), this.proxiedOn = new Proxy({}, {
983
983
  get: (i, a) => this.target ? this.target.on[a] : (...l) => {
@@ -1009,12 +1009,12 @@ class Qr {
1009
1009
  n.resolve(await this.target[n.method](...n.args));
1010
1010
  }
1011
1011
  }
1012
- function Jr(e, t) {
1013
- const n = e, r = un(), o = Ur(), s = Hr && n.enableEarlyProxy;
1012
+ function Yr(e, t) {
1013
+ const n = e, r = ln(), o = Hr(), s = Kr && n.enableEarlyProxy;
1014
1014
  if (o && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
1015
- o.emit(Kr, e, t);
1015
+ o.emit(Gr, e, t);
1016
1016
  else {
1017
- const i = s ? new Qr(n, o) : null;
1017
+ const i = s ? new Jr(n, o) : null;
1018
1018
  (r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
1019
1019
  pluginDescriptor: n,
1020
1020
  setupFn: t,
@@ -1024,13 +1024,13 @@ function Jr(e, t) {
1024
1024
  }
1025
1025
  var P = {};
1026
1026
  const q = typeof document < "u";
1027
- function ln(e) {
1027
+ function fn(e) {
1028
1028
  return typeof e == "object" || "displayName" in e || "props" in e || "__vccOpts" in e;
1029
1029
  }
1030
- function Yr(e) {
1030
+ function Xr(e) {
1031
1031
  return e.__esModule || e[Symbol.toStringTag] === "Module" || // support CF with dynamic imports that do not
1032
1032
  // add the Module string tag
1033
- e.default && ln(e.default);
1033
+ e.default && fn(e.default);
1034
1034
  }
1035
1035
  const N = Object.assign;
1036
1036
  function He(e, t) {
@@ -1041,32 +1041,32 @@ function He(e, t) {
1041
1041
  }
1042
1042
  return n;
1043
1043
  }
1044
- const Ee = () => {
1044
+ const we = () => {
1045
1045
  }, B = Array.isArray;
1046
1046
  function S(e) {
1047
1047
  const t = Array.from(arguments).slice(1);
1048
1048
  console.warn.apply(console, ["[Vue Router warn]: " + e].concat(t));
1049
1049
  }
1050
- const fn = /#/g, Xr = /&/g, Zr = /\//g, eo = /=/g, to = /\?/g, dn = /\+/g, no = /%5B/g, ro = /%5D/g, hn = /%5E/g, oo = /%60/g, pn = /%7B/g, so = /%7C/g, gn = /%7D/g, io = /%20/g;
1051
- function pt(e) {
1052
- return encodeURI("" + e).replace(so, "|").replace(no, "[").replace(ro, "]");
1050
+ const dn = /#/g, Zr = /&/g, eo = /\//g, to = /=/g, no = /\?/g, hn = /\+/g, ro = /%5B/g, oo = /%5D/g, pn = /%5E/g, so = /%60/g, gn = /%7B/g, io = /%7C/g, mn = /%7D/g, ao = /%20/g;
1051
+ function gt(e) {
1052
+ return encodeURI("" + e).replace(io, "|").replace(ro, "[").replace(oo, "]");
1053
1053
  }
1054
- function ao(e) {
1055
- return pt(e).replace(pn, "{").replace(gn, "}").replace(hn, "^");
1054
+ function co(e) {
1055
+ return gt(e).replace(gn, "{").replace(mn, "}").replace(pn, "^");
1056
1056
  }
1057
1057
  function st(e) {
1058
- return pt(e).replace(dn, "%2B").replace(io, "+").replace(fn, "%23").replace(Xr, "%26").replace(oo, "`").replace(pn, "{").replace(gn, "}").replace(hn, "^");
1059
- }
1060
- function co(e) {
1061
- return st(e).replace(eo, "%3D");
1058
+ return gt(e).replace(hn, "%2B").replace(ao, "+").replace(dn, "%23").replace(Zr, "%26").replace(so, "`").replace(gn, "{").replace(mn, "}").replace(pn, "^");
1062
1059
  }
1063
1060
  function uo(e) {
1064
- return pt(e).replace(fn, "%23").replace(to, "%3F");
1061
+ return st(e).replace(to, "%3D");
1065
1062
  }
1066
1063
  function lo(e) {
1067
- return e == null ? "" : uo(e).replace(Zr, "%2F");
1064
+ return gt(e).replace(dn, "%23").replace(no, "%3F");
1065
+ }
1066
+ function fo(e) {
1067
+ return e == null ? "" : lo(e).replace(eo, "%2F");
1068
1068
  }
1069
- function ce(e) {
1069
+ function ie(e) {
1070
1070
  try {
1071
1071
  return decodeURIComponent("" + e);
1072
1072
  } catch {
@@ -1074,47 +1074,47 @@ function ce(e) {
1074
1074
  }
1075
1075
  return "" + e;
1076
1076
  }
1077
- const fo = /\/$/, ho = (e) => e.replace(fo, "");
1077
+ const ho = /\/$/, po = (e) => e.replace(ho, "");
1078
1078
  function Ke(e, t, n = "/") {
1079
1079
  let r, o = {}, s = "", i = "";
1080
1080
  const a = t.indexOf("#");
1081
1081
  let l = t.indexOf("?");
1082
- return a < l && a >= 0 && (l = -1), l > -1 && (r = t.slice(0, l), s = t.slice(l + 1, a > -1 ? a : t.length), o = e(s)), a > -1 && (r = r || t.slice(0, a), i = t.slice(a, t.length)), r = mo(r ?? t, n), {
1082
+ return a < l && a >= 0 && (l = -1), l > -1 && (r = t.slice(0, l), s = t.slice(l + 1, a > -1 ? a : t.length), o = e(s)), a > -1 && (r = r || t.slice(0, a), i = t.slice(a, t.length)), r = vo(r ?? t, n), {
1083
1083
  fullPath: r + (s && "?") + s + i,
1084
1084
  path: r,
1085
1085
  query: o,
1086
- hash: ce(i)
1086
+ hash: ie(i)
1087
1087
  };
1088
1088
  }
1089
- function po(e, t) {
1089
+ function go(e, t) {
1090
1090
  const n = t.query ? e(t.query) : "";
1091
1091
  return t.path + (n && "?") + n + (t.hash || "");
1092
1092
  }
1093
- function St(e, t) {
1093
+ function Ot(e, t) {
1094
1094
  return !t || !e.toLowerCase().startsWith(t.toLowerCase()) ? e : e.slice(t.length) || "/";
1095
1095
  }
1096
- function Ot(e, t, n) {
1096
+ function kt(e, t, n) {
1097
1097
  const r = t.matched.length - 1, o = n.matched.length - 1;
1098
- return r > -1 && r === o && Z(t.matched[r], n.matched[o]) && mn(t.params, n.params) && e(t.query) === e(n.query) && t.hash === n.hash;
1098
+ return r > -1 && r === o && Z(t.matched[r], n.matched[o]) && vn(t.params, n.params) && e(t.query) === e(n.query) && t.hash === n.hash;
1099
1099
  }
1100
1100
  function Z(e, t) {
1101
1101
  return (e.aliasOf || e) === (t.aliasOf || t);
1102
1102
  }
1103
- function mn(e, t) {
1103
+ function vn(e, t) {
1104
1104
  if (Object.keys(e).length !== Object.keys(t).length)
1105
1105
  return !1;
1106
1106
  for (const n in e)
1107
- if (!go(e[n], t[n]))
1107
+ if (!mo(e[n], t[n]))
1108
1108
  return !1;
1109
1109
  return !0;
1110
1110
  }
1111
- function go(e, t) {
1112
- return B(e) ? kt(e, t) : B(t) ? kt(t, e) : e === t;
1111
+ function mo(e, t) {
1112
+ return B(e) ? Nt(e, t) : B(t) ? Nt(t, e) : e === t;
1113
1113
  }
1114
- function kt(e, t) {
1114
+ function Nt(e, t) {
1115
1115
  return B(t) ? e.length === t.length && e.every((n, r) => n === t[r]) : e.length === 1 && e[0] === t;
1116
1116
  }
1117
- function mo(e, t) {
1117
+ function vo(e, t) {
1118
1118
  if (e.startsWith("/"))
1119
1119
  return e;
1120
1120
  if (P.NODE_ENV !== "production" && !t.startsWith("/"))
@@ -1144,29 +1144,29 @@ const Y = {
1144
1144
  meta: {},
1145
1145
  redirectedFrom: void 0
1146
1146
  };
1147
- var ue;
1147
+ var ae;
1148
1148
  (function(e) {
1149
1149
  e.pop = "pop", e.push = "push";
1150
- })(ue || (ue = {}));
1150
+ })(ae || (ae = {}));
1151
1151
  var te;
1152
1152
  (function(e) {
1153
1153
  e.back = "back", e.forward = "forward", e.unknown = "";
1154
1154
  })(te || (te = {}));
1155
1155
  const Ge = "";
1156
- function vn(e) {
1156
+ function yn(e) {
1157
1157
  if (!e)
1158
1158
  if (q) {
1159
1159
  const t = document.querySelector("base");
1160
1160
  e = t && t.getAttribute("href") || "/", e = e.replace(/^\w+:\/\/[^\/]+/, "");
1161
1161
  } else
1162
1162
  e = "/";
1163
- return e[0] !== "/" && e[0] !== "#" && (e = "/" + e), ho(e);
1163
+ return e[0] !== "/" && e[0] !== "#" && (e = "/" + e), po(e);
1164
1164
  }
1165
- const vo = /^[^#]+#/;
1166
- function yn(e, t) {
1167
- return e.replace(vo, "#") + t;
1165
+ const yo = /^[^#]+#/;
1166
+ function wn(e, t) {
1167
+ return e.replace(yo, "#") + t;
1168
1168
  }
1169
- function yo(e, t) {
1169
+ function wo(e, t) {
1170
1170
  const n = document.documentElement.getBoundingClientRect(), r = e.getBoundingClientRect();
1171
1171
  return {
1172
1172
  behavior: t.behavior,
@@ -1178,7 +1178,7 @@ const Te = () => ({
1178
1178
  left: window.scrollX,
1179
1179
  top: window.scrollY
1180
1180
  });
1181
- function wo(e) {
1181
+ function _o(e) {
1182
1182
  let t;
1183
1183
  if ("el" in e) {
1184
1184
  const n = e.el, r = typeof n == "string" && n.startsWith("#");
@@ -1198,48 +1198,48 @@ function wo(e) {
1198
1198
  P.NODE_ENV !== "production" && S(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);
1199
1199
  return;
1200
1200
  }
1201
- t = yo(o, e);
1201
+ t = wo(o, e);
1202
1202
  } else
1203
1203
  t = e;
1204
1204
  "scrollBehavior" in document.documentElement.style ? window.scrollTo(t) : window.scrollTo(t.left != null ? t.left : window.scrollX, t.top != null ? t.top : window.scrollY);
1205
1205
  }
1206
- function Nt(e, t) {
1206
+ function Vt(e, t) {
1207
1207
  return (history.state ? history.state.position - t : -1) + e;
1208
1208
  }
1209
1209
  const it = /* @__PURE__ */ new Map();
1210
1210
  function Eo(e, t) {
1211
1211
  it.set(e, t);
1212
1212
  }
1213
- function _o(e) {
1213
+ function bo(e) {
1214
1214
  const t = it.get(e);
1215
1215
  return it.delete(e), t;
1216
1216
  }
1217
- let bo = () => location.protocol + "//" + location.host;
1218
- function wn(e, t) {
1217
+ let Ro = () => location.protocol + "//" + location.host;
1218
+ function _n(e, t) {
1219
1219
  const { pathname: n, search: r, hash: o } = t, s = e.indexOf("#");
1220
1220
  if (s > -1) {
1221
1221
  let a = o.includes(e.slice(s)) ? e.slice(s).length : 1, l = o.slice(a);
1222
- return l[0] !== "/" && (l = "/" + l), St(l, "");
1222
+ return l[0] !== "/" && (l = "/" + l), Ot(l, "");
1223
1223
  }
1224
- return St(n, e) + r + o;
1224
+ return Ot(n, e) + r + o;
1225
1225
  }
1226
- function Ro(e, t, n, r) {
1226
+ function Po(e, t, n, r) {
1227
1227
  let o = [], s = [], i = null;
1228
1228
  const a = ({ state: f }) => {
1229
- const h = wn(e, location), g = n.value, m = t.value;
1229
+ const h = _n(e, location), m = n.value, g = t.value;
1230
1230
  let v = 0;
1231
1231
  if (f) {
1232
- if (n.value = h, t.value = f, i && i === g) {
1232
+ if (n.value = h, t.value = f, i && i === m) {
1233
1233
  i = null;
1234
1234
  return;
1235
1235
  }
1236
- v = m ? f.position - m.position : 0;
1236
+ v = g ? f.position - g.position : 0;
1237
1237
  } else
1238
1238
  r(h);
1239
- o.forEach((E) => {
1240
- E(n.value, g, {
1239
+ o.forEach((_) => {
1240
+ _(n.value, m, {
1241
1241
  delta: v,
1242
- type: ue.pop,
1242
+ type: ae.pop,
1243
1243
  direction: v ? v > 0 ? te.forward : te.back : te.unknown
1244
1244
  });
1245
1245
  });
@@ -1250,8 +1250,8 @@ function Ro(e, t, n, r) {
1250
1250
  function d(f) {
1251
1251
  o.push(f);
1252
1252
  const h = () => {
1253
- const g = o.indexOf(f);
1254
- g > -1 && o.splice(g, 1);
1253
+ const m = o.indexOf(f);
1254
+ m > -1 && o.splice(m, 1);
1255
1255
  };
1256
1256
  return s.push(h), h;
1257
1257
  }
@@ -1272,7 +1272,7 @@ function Ro(e, t, n, r) {
1272
1272
  destroy: u
1273
1273
  };
1274
1274
  }
1275
- function Vt(e, t, n, r = !1, o = !1) {
1275
+ function Ct(e, t, n, r = !1, o = !1) {
1276
1276
  return {
1277
1277
  back: e,
1278
1278
  current: t,
@@ -1282,9 +1282,9 @@ function Vt(e, t, n, r = !1, o = !1) {
1282
1282
  scroll: o ? Te() : null
1283
1283
  };
1284
1284
  }
1285
- function Po(e) {
1285
+ function So(e) {
1286
1286
  const { history: t, location: n } = window, r = {
1287
- value: wn(e, n)
1287
+ value: _n(e, n)
1288
1288
  }, o = { value: t.state };
1289
1289
  o.value || s(r.value, {
1290
1290
  back: null,
@@ -1298,7 +1298,7 @@ function Po(e) {
1298
1298
  scroll: null
1299
1299
  }, !0);
1300
1300
  function s(l, d, c) {
1301
- const u = e.indexOf("#"), f = u > -1 ? (n.host && document.querySelector("base") ? e : e.slice(u)) + l : bo() + e + l;
1301
+ const u = e.indexOf("#"), f = u > -1 ? (n.host && document.querySelector("base") ? e : e.slice(u)) + l : Ro() + e + l;
1302
1302
  try {
1303
1303
  t[c ? "replaceState" : "pushState"](d, "", f), o.value = d;
1304
1304
  } catch (h) {
@@ -1306,7 +1306,7 @@ function Po(e) {
1306
1306
  }
1307
1307
  }
1308
1308
  function i(l, d) {
1309
- const c = N({}, t.state, Vt(
1309
+ const c = N({}, t.state, Ct(
1310
1310
  o.value.back,
1311
1311
  // keep back and forward entries but override current position
1312
1312
  l,
@@ -1333,7 +1333,7 @@ function Po(e) {
1333
1333
  history.replaceState(history.state, '', url)
1334
1334
 
1335
1335
  You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`), s(c.current, c, !0);
1336
- const u = N({}, Vt(r.value, l, null), { position: c.position + 1 }, d);
1336
+ const u = N({}, Ct(r.value, l, null), { position: c.position + 1 }, d);
1337
1337
  s(l, u, !1), r.value = l;
1338
1338
  }
1339
1339
  return {
@@ -1344,8 +1344,8 @@ You can find more information at https://router.vuejs.org/guide/migration/#Usage
1344
1344
  };
1345
1345
  }
1346
1346
  function En(e) {
1347
- e = vn(e);
1348
- const t = Po(e), n = Ro(e, t.state, t.location, t.replace);
1347
+ e = yn(e);
1348
+ const t = So(e), n = Po(e, t.state, t.location, t.replace);
1349
1349
  function r(s, i = !0) {
1350
1350
  i || n.pauseListeners(), history.go(s);
1351
1351
  }
@@ -1354,7 +1354,7 @@ function En(e) {
1354
1354
  location: "",
1355
1355
  base: e,
1356
1356
  go: r,
1357
- createHref: yn.bind(null, e)
1357
+ createHref: wn.bind(null, e)
1358
1358
  }, t, n);
1359
1359
  return Object.defineProperty(o, "location", {
1360
1360
  enumerable: !0,
@@ -1364,9 +1364,9 @@ function En(e) {
1364
1364
  get: () => t.state.value
1365
1365
  }), o;
1366
1366
  }
1367
- function So(e = "") {
1367
+ function Oo(e = "") {
1368
1368
  let t = [], n = [Ge], r = 0;
1369
- e = vn(e);
1369
+ e = yn(e);
1370
1370
  function o(a) {
1371
1371
  r++, r !== n.length && n.splice(r), n.push(a);
1372
1372
  }
@@ -1374,7 +1374,7 @@ function So(e = "") {
1374
1374
  const u = {
1375
1375
  direction: d,
1376
1376
  delta: c,
1377
- type: ue.pop
1377
+ type: ae.pop
1378
1378
  };
1379
1379
  for (const f of t)
1380
1380
  f(a, l, u);
@@ -1385,7 +1385,7 @@ function So(e = "") {
1385
1385
  // TODO: should be kept in queue
1386
1386
  state: {},
1387
1387
  base: e,
1388
- createHref: yn.bind(null, e),
1388
+ createHref: wn.bind(null, e),
1389
1389
  replace(a) {
1390
1390
  n.splice(r--, 1), o(a);
1391
1391
  },
@@ -1419,22 +1419,22 @@ function So(e = "") {
1419
1419
  get: () => n[r]
1420
1420
  }), i;
1421
1421
  }
1422
- function Oo(e) {
1422
+ function ko(e) {
1423
1423
  return e = location.host ? e || location.pathname + location.search : "", e.includes("#") || (e += "#"), P.NODE_ENV !== "production" && !e.endsWith("#/") && !e.endsWith("#") && S(`A hash base must end with a "#":
1424
1424
  "${e}" should be "${e.replace(/#.*$/, "#")}".`), En(e);
1425
1425
  }
1426
1426
  function Ce(e) {
1427
1427
  return typeof e == "string" || e && typeof e == "object";
1428
1428
  }
1429
- function _n(e) {
1429
+ function bn(e) {
1430
1430
  return typeof e == "string" || typeof e == "symbol";
1431
1431
  }
1432
1432
  const at = Symbol(P.NODE_ENV !== "production" ? "navigation failure" : "");
1433
- var Ct;
1433
+ var It;
1434
1434
  (function(e) {
1435
1435
  e[e.aborted = 4] = "aborted", e[e.cancelled = 8] = "cancelled", e[e.duplicated = 16] = "duplicated";
1436
- })(Ct || (Ct = {}));
1437
- const ko = {
1436
+ })(It || (It = {}));
1437
+ const No = {
1438
1438
  1({ location: e, currentLocation: t }) {
1439
1439
  return `No match for
1440
1440
  ${JSON.stringify(e)}${t ? `
@@ -1442,7 +1442,7 @@ while being at
1442
1442
  ` + JSON.stringify(t) : ""}`;
1443
1443
  },
1444
1444
  2({ from: e, to: t }) {
1445
- return `Redirected from "${e.fullPath}" to "${Vo(t)}" via a navigation guard.`;
1445
+ return `Redirected from "${e.fullPath}" to "${Co(t)}" via a navigation guard.`;
1446
1446
  },
1447
1447
  4({ from: e, to: t }) {
1448
1448
  return `Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`;
@@ -1454,8 +1454,8 @@ while being at
1454
1454
  return `Avoided redundant navigation to current location: "${e.fullPath}".`;
1455
1455
  }
1456
1456
  };
1457
- function le(e, t) {
1458
- return P.NODE_ENV !== "production" ? N(new Error(ko[e](t)), {
1457
+ function ce(e, t) {
1458
+ return P.NODE_ENV !== "production" ? N(new Error(No[e](t)), {
1459
1459
  type: e,
1460
1460
  [at]: !0
1461
1461
  }, t) : N(new Error(), {
@@ -1466,25 +1466,25 @@ function le(e, t) {
1466
1466
  function z(e, t) {
1467
1467
  return e instanceof Error && at in e && (t == null || !!(e.type & t));
1468
1468
  }
1469
- const No = ["params", "query", "hash"];
1470
- function Vo(e) {
1469
+ const Vo = ["params", "query", "hash"];
1470
+ function Co(e) {
1471
1471
  if (typeof e == "string")
1472
1472
  return e;
1473
1473
  if (e.path != null)
1474
1474
  return e.path;
1475
1475
  const t = {};
1476
- for (const n of No)
1476
+ for (const n of Vo)
1477
1477
  n in e && (t[n] = e[n]);
1478
1478
  return JSON.stringify(t, null, 2);
1479
1479
  }
1480
- const It = "[^/]+?", Co = {
1480
+ const At = "[^/]+?", Io = {
1481
1481
  sensitive: !1,
1482
1482
  strict: !1,
1483
1483
  start: !0,
1484
1484
  end: !0
1485
- }, Io = /[.+*?^${}()[\]/\\]/g;
1486
- function Ao(e, t) {
1487
- const n = N({}, Co, t), r = [];
1485
+ }, Ao = /[.+*?^${}()[\]/\\]/g;
1486
+ function $o(e, t) {
1487
+ const n = N({}, Io, t), r = [];
1488
1488
  let o = n.start ? "^" : "";
1489
1489
  const s = [];
1490
1490
  for (const d of e) {
@@ -1497,27 +1497,27 @@ function Ao(e, t) {
1497
1497
  const f = d[u];
1498
1498
  let h = 40 + (n.sensitive ? 0.25 : 0);
1499
1499
  if (f.type === 0)
1500
- u || (o += "/"), o += f.value.replace(Io, "\\$&"), h += 40;
1500
+ u || (o += "/"), o += f.value.replace(Ao, "\\$&"), h += 40;
1501
1501
  else if (f.type === 1) {
1502
- const { value: g, repeatable: m, optional: v, regexp: E } = f;
1502
+ const { value: m, repeatable: g, optional: v, regexp: _ } = f;
1503
1503
  s.push({
1504
- name: g,
1505
- repeatable: m,
1504
+ name: m,
1505
+ repeatable: g,
1506
1506
  optional: v
1507
1507
  });
1508
- const _ = E || It;
1509
- if (_ !== It) {
1508
+ const E = _ || At;
1509
+ if (E !== At) {
1510
1510
  h += 10;
1511
1511
  try {
1512
- new RegExp(`(${_})`);
1512
+ new RegExp(`(${E})`);
1513
1513
  } catch (C) {
1514
- throw new Error(`Invalid custom RegExp for param "${g}" (${_}): ` + C.message);
1514
+ throw new Error(`Invalid custom RegExp for param "${m}" (${E}): ` + C.message);
1515
1515
  }
1516
1516
  }
1517
- let R = m ? `((?:${_})(?:/(?:${_}))*)` : `(${_})`;
1517
+ let R = g ? `((?:${E})(?:/(?:${E}))*)` : `(${E})`;
1518
1518
  u || (R = // avoid an optional / if there are more segments e.g. /:p?-static
1519
1519
  // or /:p?-:p2
1520
- v && d.length < 2 ? `(?:/${R})` : "/" + R), v && (R += "?"), o += R, h += 20, v && (h += -8), m && (h += -20), _ === ".*" && (h += -50);
1520
+ v && d.length < 2 ? `(?:/${R})` : "/" + R), v && (R += "?"), o += R, h += 20, v && (h += -8), g && (h += -20), E === ".*" && (h += -50);
1521
1521
  }
1522
1522
  c.push(h);
1523
1523
  }
@@ -1534,8 +1534,8 @@ function Ao(e, t) {
1534
1534
  if (!c)
1535
1535
  return null;
1536
1536
  for (let f = 1; f < c.length; f++) {
1537
- const h = c[f] || "", g = s[f - 1];
1538
- u[g.name] = h && g.repeatable ? h.split("/") : h;
1537
+ const h = c[f] || "", m = s[f - 1];
1538
+ u[m.name] = h && m.repeatable ? h.split("/") : h;
1539
1539
  }
1540
1540
  return u;
1541
1541
  }
@@ -1547,16 +1547,16 @@ function Ao(e, t) {
1547
1547
  if (h.type === 0)
1548
1548
  c += h.value;
1549
1549
  else if (h.type === 1) {
1550
- const { value: g, repeatable: m, optional: v } = h, E = g in d ? d[g] : "";
1551
- if (B(E) && !m)
1552
- throw new Error(`Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`);
1553
- const _ = B(E) ? E.join("/") : E;
1554
- if (!_)
1550
+ const { value: m, repeatable: g, optional: v } = h, _ = m in d ? d[m] : "";
1551
+ if (B(_) && !g)
1552
+ throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);
1553
+ const E = B(_) ? _.join("/") : _;
1554
+ if (!E)
1555
1555
  if (v)
1556
1556
  f.length < 2 && (c.endsWith("/") ? c = c.slice(0, -1) : u = !0);
1557
1557
  else
1558
- throw new Error(`Missing required param "${g}"`);
1559
- c += _;
1558
+ throw new Error(`Missing required param "${m}"`);
1559
+ c += E;
1560
1560
  }
1561
1561
  }
1562
1562
  return c || "/";
@@ -1569,7 +1569,7 @@ function Ao(e, t) {
1569
1569
  stringify: l
1570
1570
  };
1571
1571
  }
1572
- function $o(e, t) {
1572
+ function xo(e, t) {
1573
1573
  let n = 0;
1574
1574
  for (; n < e.length && n < t.length; ) {
1575
1575
  const r = t[n] - e[n];
@@ -1579,36 +1579,36 @@ function $o(e, t) {
1579
1579
  }
1580
1580
  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;
1581
1581
  }
1582
- function bn(e, t) {
1582
+ function Rn(e, t) {
1583
1583
  let n = 0;
1584
1584
  const r = e.score, o = t.score;
1585
1585
  for (; n < r.length && n < o.length; ) {
1586
- const s = $o(r[n], o[n]);
1586
+ const s = xo(r[n], o[n]);
1587
1587
  if (s)
1588
1588
  return s;
1589
1589
  n++;
1590
1590
  }
1591
1591
  if (Math.abs(o.length - r.length) === 1) {
1592
- if (At(r))
1592
+ if ($t(r))
1593
1593
  return 1;
1594
- if (At(o))
1594
+ if ($t(o))
1595
1595
  return -1;
1596
1596
  }
1597
1597
  return o.length - r.length;
1598
1598
  }
1599
- function At(e) {
1599
+ function $t(e) {
1600
1600
  const t = e[e.length - 1];
1601
1601
  return e.length > 0 && t[t.length - 1] < 0;
1602
1602
  }
1603
- const xo = {
1603
+ const To = {
1604
1604
  type: 0,
1605
1605
  value: ""
1606
- }, To = /[a-zA-Z0-9_]/;
1607
- function Do(e) {
1606
+ }, Do = /[a-zA-Z0-9_]/;
1607
+ function jo(e) {
1608
1608
  if (!e)
1609
1609
  return [[]];
1610
1610
  if (e === "/")
1611
- return [[xo]];
1611
+ return [[To]];
1612
1612
  if (!e.startsWith("/"))
1613
1613
  throw new Error(P.NODE_ENV !== "production" ? `Route paths should start with a "/": "${e}" should be "/${e}".` : `Invalid path "${e}"`);
1614
1614
  function t(h) {
@@ -1649,7 +1649,7 @@ function Do(e) {
1649
1649
  f(), n = r;
1650
1650
  break;
1651
1651
  case 1:
1652
- l === "(" ? n = 2 : To.test(l) ? f() : (u(), n = 0, l !== "*" && l !== "?" && l !== "+" && a--);
1652
+ l === "(" ? n = 2 : Do.test(l) ? f() : (u(), n = 0, l !== "*" && l !== "?" && l !== "+" && a--);
1653
1653
  break;
1654
1654
  case 2:
1655
1655
  l === ")" ? c[c.length - 1] == "\\" ? c = c.slice(0, -1) + l : n = 3 : c += l;
@@ -1664,8 +1664,8 @@ function Do(e) {
1664
1664
  }
1665
1665
  return n === 2 && t(`Unfinished custom RegExp for param "${d}"`), u(), i(), o;
1666
1666
  }
1667
- function jo(e, t, n) {
1668
- const r = Ao(Do(e.path), n);
1667
+ function Mo(e, t, n) {
1668
+ const r = $o(jo(e.path), n);
1669
1669
  if (P.NODE_ENV !== "production") {
1670
1670
  const s = /* @__PURE__ */ new Set();
1671
1671
  for (const i of r.keys)
@@ -1680,36 +1680,36 @@ function jo(e, t, n) {
1680
1680
  });
1681
1681
  return t && !o.record.aliasOf == !t.record.aliasOf && t.children.push(o), o;
1682
1682
  }
1683
- function Mo(e, t) {
1683
+ function Wo(e, t) {
1684
1684
  const n = [], r = /* @__PURE__ */ new Map();
1685
- t = Dt({ strict: !1, end: !0, sensitive: !1 }, t);
1685
+ t = jt({ strict: !1, end: !0, sensitive: !1 }, t);
1686
1686
  function o(u) {
1687
1687
  return r.get(u);
1688
1688
  }
1689
1689
  function s(u, f, h) {
1690
- const g = !h, m = xt(u);
1691
- P.NODE_ENV !== "production" && Fo(m, f), m.aliasOf = h && h.record;
1692
- const v = Dt(t, u), E = [m];
1690
+ const m = !h, g = Tt(u);
1691
+ P.NODE_ENV !== "production" && Uo(g, f), g.aliasOf = h && h.record;
1692
+ const v = jt(t, u), _ = [g];
1693
1693
  if ("alias" in u) {
1694
1694
  const C = typeof u.alias == "string" ? [u.alias] : u.alias;
1695
1695
  for (const M of C)
1696
- E.push(
1696
+ _.push(
1697
1697
  // we need to normalize again to ensure the `mods` property
1698
1698
  // being non enumerable
1699
- xt(N({}, m, {
1699
+ Tt(N({}, g, {
1700
1700
  // this allows us to hold a copy of the `components` option
1701
1701
  // so that async components cache is hold on the original record
1702
- components: h ? h.record.components : m.components,
1702
+ components: h ? h.record.components : g.components,
1703
1703
  path: M,
1704
1704
  // we might be the child of an alias
1705
- aliasOf: h ? h.record : m
1705
+ aliasOf: h ? h.record : g
1706
1706
  // the aliases are always of the same kind as the original since they
1707
1707
  // are defined on the same record
1708
1708
  }))
1709
1709
  );
1710
1710
  }
1711
- let _, R;
1712
- for (const C of E) {
1711
+ let E, R;
1712
+ for (const C of _) {
1713
1713
  const { path: M } = C;
1714
1714
  if (f && M[0] !== "/") {
1715
1715
  const U = f.record.path, F = U[U.length - 1] === "/" ? "" : "/";
@@ -1718,19 +1718,19 @@ function Mo(e, t) {
1718
1718
  if (P.NODE_ENV !== "production" && C.path === "*")
1719
1719
  throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
1720
1720
  See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.`);
1721
- if (_ = jo(C, f, v), P.NODE_ENV !== "production" && f && M[0] === "/" && Ho(_, f), h ? (h.alias.push(_), P.NODE_ENV !== "production" && Bo(h, _)) : (R = R || _, R !== _ && R.alias.push(_), g && u.name && !Tt(_) && (P.NODE_ENV !== "production" && Uo(u, f), i(u.name))), Rn(_) && l(_), m.children) {
1722
- const U = m.children;
1721
+ if (E = Mo(C, f, v), P.NODE_ENV !== "production" && f && M[0] === "/" && Ko(E, f), h ? (h.alias.push(E), P.NODE_ENV !== "production" && Fo(h, E)) : (R = R || E, R !== E && R.alias.push(E), m && u.name && !Dt(E) && (P.NODE_ENV !== "production" && Ho(u, f), i(u.name))), Pn(E) && l(E), g.children) {
1722
+ const U = g.children;
1723
1723
  for (let F = 0; F < U.length; F++)
1724
- s(U[F], _, h && h.children[F]);
1724
+ s(U[F], E, h && h.children[F]);
1725
1725
  }
1726
- h = h || _;
1726
+ h = h || E;
1727
1727
  }
1728
1728
  return R ? () => {
1729
1729
  i(R);
1730
- } : Ee;
1730
+ } : we;
1731
1731
  }
1732
1732
  function i(u) {
1733
- if (_n(u)) {
1733
+ if (bn(u)) {
1734
1734
  const f = r.get(u);
1735
1735
  f && (r.delete(u), n.splice(n.indexOf(f), 1), f.children.forEach(i), f.alias.forEach(i));
1736
1736
  } else {
@@ -1742,23 +1742,23 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
1742
1742
  return n;
1743
1743
  }
1744
1744
  function l(u) {
1745
- const f = Ko(u, n);
1746
- n.splice(f, 0, u), u.record.name && !Tt(u) && r.set(u.record.name, u);
1745
+ const f = Go(u, n);
1746
+ n.splice(f, 0, u), u.record.name && !Dt(u) && r.set(u.record.name, u);
1747
1747
  }
1748
1748
  function d(u, f) {
1749
- let h, g = {}, m, v;
1749
+ let h, m = {}, g, v;
1750
1750
  if ("name" in u && u.name) {
1751
1751
  if (h = r.get(u.name), !h)
1752
- throw le(1, {
1752
+ throw ce(1, {
1753
1753
  location: u
1754
1754
  });
1755
1755
  if (P.NODE_ENV !== "production") {
1756
1756
  const R = Object.keys(u.params || {}).filter((C) => !h.keys.find((M) => M.name === C));
1757
1757
  R.length && S(`Discarded invalid param(s) "${R.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`);
1758
1758
  }
1759
- v = h.record.name, g = N(
1759
+ v = h.record.name, m = N(
1760
1760
  // paramsFromLocation is a new object
1761
- $t(
1761
+ xt(
1762
1762
  f.params,
1763
1763
  // only keep params that exist in the resolved location
1764
1764
  // only keep optional params coming from a parent record
@@ -1766,28 +1766,28 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
1766
1766
  ),
1767
1767
  // discard any existing params in the current location that do not exist here
1768
1768
  // #1497 this ensures better active/exact matching
1769
- u.params && $t(u.params, h.keys.map((R) => R.name))
1770
- ), m = h.stringify(g);
1769
+ u.params && xt(u.params, h.keys.map((R) => R.name))
1770
+ ), g = h.stringify(m);
1771
1771
  } else if (u.path != null)
1772
- m = u.path, P.NODE_ENV !== "production" && !m.startsWith("/") && S(`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.`), h = n.find((R) => R.re.test(m)), h && (g = h.parse(m), v = h.record.name);
1772
+ g = u.path, P.NODE_ENV !== "production" && !g.startsWith("/") && S(`The Matcher cannot resolve relative paths but received "${g}". Unless you directly called \`matcher.resolve("${g}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`), h = n.find((R) => R.re.test(g)), h && (m = h.parse(g), v = h.record.name);
1773
1773
  else {
1774
1774
  if (h = f.name ? r.get(f.name) : n.find((R) => R.re.test(f.path)), !h)
1775
- throw le(1, {
1775
+ throw ce(1, {
1776
1776
  location: u,
1777
1777
  currentLocation: f
1778
1778
  });
1779
- v = h.record.name, g = N({}, f.params, u.params), m = h.stringify(g);
1779
+ v = h.record.name, m = N({}, f.params, u.params), g = h.stringify(m);
1780
1780
  }
1781
- const E = [];
1782
- let _ = h;
1783
- for (; _; )
1784
- E.unshift(_.record), _ = _.parent;
1781
+ const _ = [];
1782
+ let E = h;
1783
+ for (; E; )
1784
+ _.unshift(E.record), E = E.parent;
1785
1785
  return {
1786
1786
  name: v,
1787
- path: m,
1788
- params: g,
1789
- matched: E,
1790
- meta: Lo(E)
1787
+ path: g,
1788
+ params: m,
1789
+ matched: _,
1790
+ meta: Bo(_)
1791
1791
  };
1792
1792
  }
1793
1793
  e.forEach((u) => s(u));
@@ -1803,13 +1803,13 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
1803
1803
  getRecordMatcher: o
1804
1804
  };
1805
1805
  }
1806
- function $t(e, t) {
1806
+ function xt(e, t) {
1807
1807
  const n = {};
1808
1808
  for (const r of t)
1809
1809
  r in e && (n[r] = e[r]);
1810
1810
  return n;
1811
1811
  }
1812
- function xt(e) {
1812
+ function Tt(e) {
1813
1813
  const t = {
1814
1814
  path: e.path,
1815
1815
  redirect: e.redirect,
@@ -1817,7 +1817,7 @@ function xt(e) {
1817
1817
  meta: e.meta || {},
1818
1818
  aliasOf: e.aliasOf,
1819
1819
  beforeEnter: e.beforeEnter,
1820
- props: Wo(e),
1820
+ props: Lo(e),
1821
1821
  children: e.children || [],
1822
1822
  instances: {},
1823
1823
  leaveGuards: /* @__PURE__ */ new Set(),
@@ -1831,7 +1831,7 @@ function xt(e) {
1831
1831
  value: {}
1832
1832
  }), t;
1833
1833
  }
1834
- function Wo(e) {
1834
+ function Lo(e) {
1835
1835
  const t = {}, n = e.props || !1;
1836
1836
  if ("component" in e)
1837
1837
  t.default = n;
@@ -1840,7 +1840,7 @@ function Wo(e) {
1840
1840
  t[r] = typeof n == "object" ? n[r] : n;
1841
1841
  return t;
1842
1842
  }
1843
- function Tt(e) {
1843
+ function Dt(e) {
1844
1844
  for (; e; ) {
1845
1845
  if (e.record.aliasOf)
1846
1846
  return !0;
@@ -1848,10 +1848,10 @@ function Tt(e) {
1848
1848
  }
1849
1849
  return !1;
1850
1850
  }
1851
- function Lo(e) {
1851
+ function Bo(e) {
1852
1852
  return e.reduce((t, n) => N(t, n.meta), {});
1853
1853
  }
1854
- function Dt(e, t) {
1854
+ function jt(e, t) {
1855
1855
  const n = {};
1856
1856
  for (const r in e)
1857
1857
  n[r] = r in t ? t[r] : e[r];
@@ -1860,7 +1860,7 @@ function Dt(e, t) {
1860
1860
  function ct(e, t) {
1861
1861
  return e.name === t.name && e.optional === t.optional && e.repeatable === t.repeatable;
1862
1862
  }
1863
- function Bo(e, t) {
1863
+ function Fo(e, t) {
1864
1864
  for (const n of e.keys)
1865
1865
  if (!n.optional && !t.keys.find(ct.bind(null, n)))
1866
1866
  return S(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
@@ -1868,44 +1868,44 @@ function Bo(e, t) {
1868
1868
  if (!n.optional && !e.keys.find(ct.bind(null, n)))
1869
1869
  return S(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
1870
1870
  }
1871
- function Fo(e, t) {
1871
+ function Uo(e, t) {
1872
1872
  t && t.record.name && !e.name && !e.path && S(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`);
1873
1873
  }
1874
- function Uo(e, t) {
1874
+ function Ho(e, t) {
1875
1875
  for (let n = t; n; n = n.parent)
1876
1876
  if (n.record.name === e.name)
1877
1877
  throw new Error(`A route named "${String(e.name)}" has been added as a ${t === n ? "child" : "descendant"} of a route with the same name. Route names must be unique and a nested route cannot use the same name as an ancestor.`);
1878
1878
  }
1879
- function Ho(e, t) {
1879
+ function Ko(e, t) {
1880
1880
  for (const n of t.keys)
1881
1881
  if (!e.keys.find(ct.bind(null, n)))
1882
1882
  return S(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`);
1883
1883
  }
1884
- function Ko(e, t) {
1884
+ function Go(e, t) {
1885
1885
  let n = 0, r = t.length;
1886
1886
  for (; n !== r; ) {
1887
1887
  const s = n + r >> 1;
1888
- bn(e, t[s]) < 0 ? r = s : n = s + 1;
1888
+ Rn(e, t[s]) < 0 ? r = s : n = s + 1;
1889
1889
  }
1890
- const o = Go(e);
1890
+ const o = zo(e);
1891
1891
  return o && (r = t.lastIndexOf(o, r - 1), P.NODE_ENV !== "production" && r < 0 && S(`Finding ancestor route "${o.record.path}" failed for "${e.record.path}"`)), r;
1892
1892
  }
1893
- function Go(e) {
1893
+ function zo(e) {
1894
1894
  let t = e;
1895
1895
  for (; t = t.parent; )
1896
- if (Rn(t) && bn(e, t) === 0)
1896
+ if (Pn(t) && Rn(e, t) === 0)
1897
1897
  return t;
1898
1898
  }
1899
- function Rn({ record: e }) {
1899
+ function Pn({ record: e }) {
1900
1900
  return !!(e.name || e.components && Object.keys(e.components).length || e.redirect);
1901
1901
  }
1902
- function zo(e) {
1902
+ function qo(e) {
1903
1903
  const t = {};
1904
1904
  if (e === "" || e === "?")
1905
1905
  return t;
1906
1906
  const r = (e[0] === "?" ? e.slice(1) : e).split("&");
1907
1907
  for (let o = 0; o < r.length; ++o) {
1908
- const s = r[o].replace(dn, " "), i = s.indexOf("="), a = ce(i < 0 ? s : s.slice(0, i)), l = i < 0 ? null : ce(s.slice(i + 1));
1908
+ const s = r[o].replace(hn, " "), i = s.indexOf("="), a = ie(i < 0 ? s : s.slice(0, i)), l = i < 0 ? null : ie(s.slice(i + 1));
1909
1909
  if (a in t) {
1910
1910
  let d = t[a];
1911
1911
  B(d) || (d = t[a] = [d]), d.push(l);
@@ -1914,11 +1914,11 @@ function zo(e) {
1914
1914
  }
1915
1915
  return t;
1916
1916
  }
1917
- function jt(e) {
1917
+ function Mt(e) {
1918
1918
  let t = "";
1919
1919
  for (let n in e) {
1920
1920
  const r = e[n];
1921
- if (n = co(n), r == null) {
1921
+ if (n = uo(n), r == null) {
1922
1922
  r !== void 0 && (t += (t.length ? "&" : "") + n);
1923
1923
  continue;
1924
1924
  }
@@ -1928,7 +1928,7 @@ function jt(e) {
1928
1928
  }
1929
1929
  return t;
1930
1930
  }
1931
- function qo(e) {
1931
+ function Qo(e) {
1932
1932
  const t = {};
1933
1933
  for (const n in e) {
1934
1934
  const r = e[n];
@@ -1936,8 +1936,8 @@ function qo(e) {
1936
1936
  }
1937
1937
  return t;
1938
1938
  }
1939
- const Qo = Symbol(P.NODE_ENV !== "production" ? "router view location matched" : ""), Mt = Symbol(P.NODE_ENV !== "production" ? "router view depth" : ""), De = Symbol(P.NODE_ENV !== "production" ? "router" : ""), gt = Symbol(P.NODE_ENV !== "production" ? "route location" : ""), ut = Symbol(P.NODE_ENV !== "production" ? "router view location" : "");
1940
- function pe() {
1939
+ const Jo = Symbol(P.NODE_ENV !== "production" ? "router view location matched" : ""), Wt = Symbol(P.NODE_ENV !== "production" ? "router view depth" : ""), De = Symbol(P.NODE_ENV !== "production" ? "router" : ""), mt = Symbol(P.NODE_ENV !== "production" ? "route location" : ""), ut = Symbol(P.NODE_ENV !== "production" ? "router view location" : "");
1940
+ function he() {
1941
1941
  let e = [];
1942
1942
  function t(r) {
1943
1943
  return e.push(r), () => {
@@ -1959,15 +1959,15 @@ function X(e, t, n, r, o, s = (i) => i()) {
1959
1959
  (r.enterCallbacks[o] = r.enterCallbacks[o] || []);
1960
1960
  return () => new Promise((a, l) => {
1961
1961
  const d = (f) => {
1962
- f === !1 ? l(le(4, {
1962
+ f === !1 ? l(ce(4, {
1963
1963
  from: n,
1964
1964
  to: t
1965
- })) : f instanceof Error ? l(f) : Ce(f) ? l(le(2, {
1965
+ })) : f instanceof Error ? l(f) : Ce(f) ? l(ce(2, {
1966
1966
  from: t,
1967
1967
  to: f
1968
1968
  })) : (i && // since enterCallbackArray is truthy, both record and name also are
1969
1969
  r.enterCallbacks[o] === i && typeof f == "function" && i.push(f), a());
1970
- }, c = s(() => e.call(r && r.instances[o], t, n, P.NODE_ENV !== "production" ? Jo(d, t, n) : d));
1970
+ }, c = s(() => e.call(r && r.instances[o], t, n, P.NODE_ENV !== "production" ? Yo(d, t, n) : d));
1971
1971
  let u = Promise.resolve(c);
1972
1972
  if (e.length < 3 && (u = u.then(d)), P.NODE_ENV !== "production" && e.length > 2) {
1973
1973
  const f = `The "next" callback was never called inside of ${e.name ? '"' + e.name + '"' : ""}:
@@ -1983,7 +1983,7 @@ ${e.toString()}
1983
1983
  u.catch((f) => l(f));
1984
1984
  });
1985
1985
  }
1986
- function Jo(e, t, n) {
1986
+ function Yo(e, t, n) {
1987
1987
  let r = 0;
1988
1988
  return function() {
1989
1989
  r++ === 1 && S(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`), e._called = !0, r === 1 && e.apply(null, arguments);
@@ -2006,7 +2006,7 @@ function ze(e, t, n, r, o = (s) => s()) {
2006
2006
  !l.__warnedDefineAsync && (l.__warnedDefineAsync = !0, S(`Component "${a}" in record with path "${i.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`));
2007
2007
  }
2008
2008
  if (!(t !== "beforeRouteEnter" && !i.instances[a]))
2009
- if (ln(l)) {
2009
+ if (fn(l)) {
2010
2010
  const c = (l.__vccOpts || l)[t];
2011
2011
  c && s.push(X(c, n, r, i, a, o));
2012
2012
  } else {
@@ -2014,7 +2014,7 @@ function ze(e, t, n, r, o = (s) => s()) {
2014
2014
  P.NODE_ENV !== "production" && !("catch" in d) && (S(`Component "${a}" in record with path "${i.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.`), d = Promise.resolve(d)), s.push(() => d.then((c) => {
2015
2015
  if (!c)
2016
2016
  throw new Error(`Couldn't resolve component "${a}" at "${i.path}"`);
2017
- const u = Yr(c) ? c.default : c;
2017
+ const u = Xr(c) ? c.default : c;
2018
2018
  i.mods[a] = c, i.components[a] = u;
2019
2019
  const h = (u.__vccOpts || u)[t];
2020
2020
  return h && X(h, n, r, i, a, o)();
@@ -2024,8 +2024,8 @@ function ze(e, t, n, r, o = (s) => s()) {
2024
2024
  }
2025
2025
  return s;
2026
2026
  }
2027
- function Wt(e) {
2028
- const t = J(De), n = J(gt);
2027
+ function Lt(e) {
2028
+ const t = J(De), n = J(mt);
2029
2029
  let r = !1, o = null;
2030
2030
  const s = L(() => {
2031
2031
  const c = W(e.to);
@@ -2039,31 +2039,31 @@ function Wt(e) {
2039
2039
  const { matched: c } = s.value, { length: u } = c, f = c[u - 1], h = n.matched;
2040
2040
  if (!f || !h.length)
2041
2041
  return -1;
2042
- const g = h.findIndex(Z.bind(null, f));
2043
- if (g > -1)
2044
- return g;
2045
- const m = Lt(c[u - 2]);
2042
+ const m = h.findIndex(Z.bind(null, f));
2043
+ if (m > -1)
2044
+ return m;
2045
+ const g = Bt(c[u - 2]);
2046
2046
  return (
2047
2047
  // we are dealing with nested routes
2048
2048
  u > 1 && // if the parent and matched route have the same path, this link is
2049
2049
  // referring to the empty child. Or we currently are on a different
2050
2050
  // child of the same parent
2051
- Lt(f) === m && // avoid comparing the child with its parent
2052
- h[h.length - 1].path !== m ? h.findIndex(Z.bind(null, c[u - 2])) : g
2051
+ Bt(f) === g && // avoid comparing the child with its parent
2052
+ h[h.length - 1].path !== g ? h.findIndex(Z.bind(null, c[u - 2])) : m
2053
2053
  );
2054
- }), a = L(() => i.value > -1 && ts(n.params, s.value.params)), l = L(() => i.value > -1 && i.value === n.matched.length - 1 && mn(n.params, s.value.params));
2054
+ }), a = L(() => i.value > -1 && ns(n.params, s.value.params)), l = L(() => i.value > -1 && i.value === n.matched.length - 1 && vn(n.params, s.value.params));
2055
2055
  function d(c = {}) {
2056
- if (es(c)) {
2056
+ if (ts(c)) {
2057
2057
  const u = t[W(e.replace) ? "replace" : "push"](
2058
2058
  W(e.to)
2059
2059
  // avoid uncaught errors are they are logged anyway
2060
- ).catch(Ee);
2060
+ ).catch(we);
2061
2061
  return e.viewTransition && typeof document < "u" && "startViewTransition" in document && document.startViewTransition(() => u), u;
2062
2062
  }
2063
2063
  return Promise.resolve();
2064
2064
  }
2065
2065
  if (P.NODE_ENV !== "production" && q) {
2066
- const c = qt();
2066
+ const c = Qt();
2067
2067
  if (c) {
2068
2068
  const u = {
2069
2069
  route: s.value,
@@ -2071,7 +2071,7 @@ function Wt(e) {
2071
2071
  isExactActive: l.value,
2072
2072
  error: null
2073
2073
  };
2074
- c.__vrl_devtools = c.__vrl_devtools || [], c.__vrl_devtools.push(u), Gt(() => {
2074
+ c.__vrl_devtools = c.__vrl_devtools || [], c.__vrl_devtools.push(u), zt(() => {
2075
2075
  u.route = s.value, u.isActive = a.value, u.isExactActive = l.value, u.error = Ce(W(e.to)) ? null : 'Invalid "to" value';
2076
2076
  }, { flush: "post" });
2077
2077
  }
@@ -2084,10 +2084,10 @@ function Wt(e) {
2084
2084
  navigate: d
2085
2085
  };
2086
2086
  }
2087
- function Yo(e) {
2087
+ function Xo(e) {
2088
2088
  return e.length === 1 ? e[0] : e;
2089
2089
  }
2090
- const Xo = /* @__PURE__ */ D({
2090
+ const Zo = /* @__PURE__ */ j({
2091
2091
  name: "RouterLink",
2092
2092
  compatConfig: { MODE: 3 },
2093
2093
  props: {
@@ -2105,20 +2105,20 @@ const Xo = /* @__PURE__ */ D({
2105
2105
  default: "page"
2106
2106
  }
2107
2107
  },
2108
- useLink: Wt,
2108
+ useLink: Lt,
2109
2109
  setup(e, { slots: t }) {
2110
- const n = Kn(Wt(e)), { options: r } = J(De), o = L(() => ({
2111
- [Bt(e.activeClass, r.linkActiveClass, "router-link-active")]: n.isActive,
2110
+ const n = Gn(Lt(e)), { options: r } = J(De), o = L(() => ({
2111
+ [Ft(e.activeClass, r.linkActiveClass, "router-link-active")]: n.isActive,
2112
2112
  // [getLinkClass(
2113
2113
  // props.inactiveClass,
2114
2114
  // options.linkInactiveClass,
2115
2115
  // 'router-link-inactive'
2116
2116
  // )]: !link.isExactActive,
2117
- [Bt(e.exactActiveClass, r.linkExactActiveClass, "router-link-exact-active")]: n.isExactActive
2117
+ [Ft(e.exactActiveClass, r.linkExactActiveClass, "router-link-exact-active")]: n.isExactActive
2118
2118
  }));
2119
2119
  return () => {
2120
- const s = t.default && Yo(t.default(n));
2121
- return e.custom ? s : $("a", {
2120
+ const s = t.default && Xo(t.default(n));
2121
+ return e.custom ? s : x("a", {
2122
2122
  "aria-current": n.isExactActive ? e.ariaCurrentValue : null,
2123
2123
  href: n.href,
2124
2124
  // this would override user added attrs but Vue will still add
@@ -2128,8 +2128,8 @@ const Xo = /* @__PURE__ */ D({
2128
2128
  }, s);
2129
2129
  };
2130
2130
  }
2131
- }), Zo = Xo;
2132
- function es(e) {
2131
+ }), es = Zo;
2132
+ function ts(e) {
2133
2133
  if (!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) && !e.defaultPrevented && !(e.button !== void 0 && e.button !== 0)) {
2134
2134
  if (e.currentTarget && e.currentTarget.getAttribute) {
2135
2135
  const t = e.currentTarget.getAttribute("target");
@@ -2139,7 +2139,7 @@ function es(e) {
2139
2139
  return e.preventDefault && e.preventDefault(), !0;
2140
2140
  }
2141
2141
  }
2142
- function ts(e, t) {
2142
+ function ns(e, t) {
2143
2143
  for (const n in t) {
2144
2144
  const r = t[n], o = e[n];
2145
2145
  if (typeof r == "string") {
@@ -2150,10 +2150,10 @@ function ts(e, t) {
2150
2150
  }
2151
2151
  return !0;
2152
2152
  }
2153
- function Lt(e) {
2153
+ function Bt(e) {
2154
2154
  return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
2155
2155
  }
2156
- const Bt = (e, t, n) => e ?? t ?? n, ns = /* @__PURE__ */ D({
2156
+ const Ft = (e, t, n) => e ?? t ?? n, rs = /* @__PURE__ */ j({
2157
2157
  name: "RouterView",
2158
2158
  // #674 we manually inherit them
2159
2159
  inheritAttrs: !1,
@@ -2168,8 +2168,8 @@ const Bt = (e, t, n) => e ?? t ?? n, ns = /* @__PURE__ */ D({
2168
2168
  // https://github.com/vuejs/router/issues/1315
2169
2169
  compatConfig: { MODE: 3 },
2170
2170
  setup(e, { attrs: t, slots: n }) {
2171
- P.NODE_ENV !== "production" && os();
2172
- const r = J(ut), o = L(() => e.route || r.value), s = J(Mt, 0), i = L(() => {
2171
+ P.NODE_ENV !== "production" && ss();
2172
+ const r = J(ut), o = L(() => e.route || r.value), s = J(Wt, 0), i = L(() => {
2173
2173
  let d = W(s);
2174
2174
  const { matched: c } = o.value;
2175
2175
  let u;
@@ -2177,50 +2177,50 @@ const Bt = (e, t, n) => e ?? t ?? n, ns = /* @__PURE__ */ D({
2177
2177
  d++;
2178
2178
  return d;
2179
2179
  }), a = L(() => o.value.matched[i.value]);
2180
- ye(Mt, L(() => i.value + 1)), ye(Qo, a), ye(ut, o);
2180
+ ve(Wt, L(() => i.value + 1)), ve(Jo, a), ve(ut, o);
2181
2181
  const l = Q();
2182
- return G(() => [l.value, a.value, e.name], ([d, c, u], [f, h, g]) => {
2182
+ return G(() => [l.value, a.value, e.name], ([d, c, u], [f, h, m]) => {
2183
2183
  c && (c.instances[u] = d, h && h !== c && d && d === f && (c.leaveGuards.size || (c.leaveGuards = h.leaveGuards), c.updateGuards.size || (c.updateGuards = h.updateGuards))), d && c && // if there is no instance but to and from are the same this might be
2184
2184
  // the first visit
2185
- (!h || !Z(c, h) || !f) && (c.enterCallbacks[u] || []).forEach((m) => m(d));
2185
+ (!h || !Z(c, h) || !f) && (c.enterCallbacks[u] || []).forEach((g) => g(d));
2186
2186
  }, { flush: "post" }), () => {
2187
2187
  const d = o.value, c = e.name, u = a.value, f = u && u.components[c];
2188
2188
  if (!f)
2189
- return Ft(n.default, { Component: f, route: d });
2190
- const h = u.props[c], g = h ? h === !0 ? d.params : typeof h == "function" ? h(d) : h : null, v = $(f, N({}, g, t, {
2191
- onVnodeUnmounted: (E) => {
2192
- E.component.isUnmounted && (u.instances[c] = null);
2189
+ return Ut(n.default, { Component: f, route: d });
2190
+ const h = u.props[c], m = h ? h === !0 ? d.params : typeof h == "function" ? h(d) : h : null, v = x(f, N({}, m, t, {
2191
+ onVnodeUnmounted: (_) => {
2192
+ _.component.isUnmounted && (u.instances[c] = null);
2193
2193
  },
2194
2194
  ref: l
2195
2195
  }));
2196
2196
  if (P.NODE_ENV !== "production" && q && v.ref) {
2197
- const E = {
2197
+ const _ = {
2198
2198
  depth: i.value,
2199
2199
  name: u.name,
2200
2200
  path: u.path,
2201
2201
  meta: u.meta
2202
2202
  };
2203
2203
  (B(v.ref) ? v.ref.map((R) => R.i) : [v.ref.i]).forEach((R) => {
2204
- R.__vrv_devtools = E;
2204
+ R.__vrv_devtools = _;
2205
2205
  });
2206
2206
  }
2207
2207
  return (
2208
2208
  // pass the vnode to the slot as a prop.
2209
2209
  // h and <component :is="..."> both accept vnodes
2210
- Ft(n.default, { Component: v, route: d }) || v
2210
+ Ut(n.default, { Component: v, route: d }) || v
2211
2211
  );
2212
2212
  };
2213
2213
  }
2214
2214
  });
2215
- function Ft(e, t) {
2215
+ function Ut(e, t) {
2216
2216
  if (!e)
2217
2217
  return null;
2218
2218
  const n = e(t);
2219
2219
  return n.length === 1 ? n[0] : n;
2220
2220
  }
2221
- const rs = ns;
2222
- function os() {
2223
- const e = qt(), t = e.parent && e.parent.type.name, n = e.parent && e.parent.subTree && e.parent.subTree.type;
2221
+ const os = rs;
2222
+ function ss() {
2223
+ const e = Qt(), t = e.parent && e.parent.type.name, n = e.parent && e.parent.subTree && e.parent.subTree.type;
2224
2224
  if (t && (t === "KeepAlive" || t.includes("Transition")) && typeof n == "object" && n.name === "RouterView") {
2225
2225
  const r = t === "KeepAlive" ? "keep-alive" : "transition";
2226
2226
  S(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
@@ -2233,10 +2233,10 @@ Use slot props instead:
2233
2233
  </router-view>`);
2234
2234
  }
2235
2235
  }
2236
- function ge(e, t) {
2236
+ function pe(e, t) {
2237
2237
  const n = N({}, e, {
2238
2238
  // remove variables that can contain vue instances
2239
- matched: e.matched.map((r) => gs(r, ["instances", "children", "aliasOf"]))
2239
+ matched: e.matched.map((r) => ms(r, ["instances", "children", "aliasOf"]))
2240
2240
  });
2241
2241
  return {
2242
2242
  _custom: {
@@ -2255,13 +2255,13 @@ function Oe(e) {
2255
2255
  }
2256
2256
  };
2257
2257
  }
2258
- let ss = 0;
2259
- function is(e, t, n) {
2258
+ let is = 0;
2259
+ function as(e, t, n) {
2260
2260
  if (t.__hasDevtools)
2261
2261
  return;
2262
2262
  t.__hasDevtools = !0;
2263
- const r = ss++;
2264
- Jr({
2263
+ const r = is++;
2264
+ Yr({
2265
2265
  id: "org.vuejs.router" + (r ? "." + r : ""),
2266
2266
  label: "Vue Router",
2267
2267
  packageName: "vue-router",
@@ -2275,7 +2275,7 @@ function is(e, t, n) {
2275
2275
  type: "Routing",
2276
2276
  key: "$route",
2277
2277
  editable: !1,
2278
- value: ge(t.currentRoute.value, "Current Route")
2278
+ value: pe(t.currentRoute.value, "Current Route")
2279
2279
  });
2280
2280
  }), o.on.visitComponentTree(({ treeNode: c, componentInstance: u }) => {
2281
2281
  if (u.__vrv_devtools) {
@@ -2284,16 +2284,16 @@ function is(e, t, n) {
2284
2284
  label: (f.name ? `${f.name.toString()}: ` : "") + f.path,
2285
2285
  textColor: 0,
2286
2286
  tooltip: "This component is rendered by &lt;router-view&gt;",
2287
- backgroundColor: Pn
2287
+ backgroundColor: Sn
2288
2288
  });
2289
2289
  }
2290
2290
  B(u.__vrl_devtools) && (u.__devtoolsApi = o, u.__vrl_devtools.forEach((f) => {
2291
- let h = f.route.path, g = kn, m = "", v = 0;
2292
- f.error ? (h = f.error, g = fs, v = ds) : f.isExactActive ? (g = On, m = "This is exactly active") : f.isActive && (g = Sn, m = "This link is active"), c.tags.push({
2291
+ let h = f.route.path, m = Nn, g = "", v = 0;
2292
+ f.error ? (h = f.error, m = ds, v = hs) : f.isExactActive ? (m = kn, g = "This is exactly active") : f.isActive && (m = On, g = "This link is active"), c.tags.push({
2293
2293
  label: h,
2294
2294
  textColor: v,
2295
- tooltip: m,
2296
- backgroundColor: g
2295
+ tooltip: g,
2296
+ backgroundColor: m
2297
2297
  });
2298
2298
  }));
2299
2299
  }), G(t.currentRoute, () => {
@@ -2321,8 +2321,8 @@ function is(e, t, n) {
2321
2321
  t.beforeEach((c, u) => {
2322
2322
  const f = {
2323
2323
  guard: Oe("beforeEach"),
2324
- from: ge(u, "Current Location during this navigation"),
2325
- to: ge(c, "Target location")
2324
+ from: pe(u, "Current Location during this navigation"),
2325
+ to: pe(c, "Target location")
2326
2326
  };
2327
2327
  Object.defineProperty(c.meta, "__navigationId", {
2328
2328
  value: i++
@@ -2348,7 +2348,7 @@ function is(e, t, n) {
2348
2348
  tooltip: "Navigation Failure",
2349
2349
  value: f
2350
2350
  }
2351
- }, h.status = Oe("❌")) : h.status = Oe("✅"), h.from = ge(u, "Current Location during this navigation"), h.to = ge(c, "Target location"), o.addTimelineEvent({
2351
+ }, h.status = Oe("❌")) : h.status = Oe("✅"), h.from = pe(u, "Current Location during this navigation"), h.to = pe(c, "Target location"), o.addTimelineEvent({
2352
2352
  layerId: s,
2353
2353
  event: {
2354
2354
  title: "End of navigation",
@@ -2374,10 +2374,10 @@ function is(e, t, n) {
2374
2374
  let u = n.getRoutes().filter((f) => !f.parent || // these routes have a parent with no component which will not appear in the view
2375
2375
  // therefore we still need to include them
2376
2376
  !f.parent.record.components);
2377
- u.forEach(Cn), c.filter && (u = u.filter((f) => (
2377
+ u.forEach(In), c.filter && (u = u.filter((f) => (
2378
2378
  // save matches state based on the payload
2379
2379
  lt(f, c.filter.toLowerCase())
2380
- ))), u.forEach((f) => Vn(f, t.currentRoute.value)), c.rootNodes = u.map(Nn);
2380
+ ))), u.forEach((f) => Cn(f, t.currentRoute.value)), c.rootNodes = u.map(Vn);
2381
2381
  }
2382
2382
  let d;
2383
2383
  o.on.getInspectorTree((c) => {
@@ -2386,16 +2386,16 @@ function is(e, t, n) {
2386
2386
  if (c.app === e && c.inspectorId === a) {
2387
2387
  const f = n.getRoutes().find((h) => h.record.__vd_id === c.nodeId);
2388
2388
  f && (c.state = {
2389
- options: cs(f)
2389
+ options: us(f)
2390
2390
  });
2391
2391
  }
2392
2392
  }), o.sendInspectorTree(a), o.sendInspectorState(a);
2393
2393
  });
2394
2394
  }
2395
- function as(e) {
2395
+ function cs(e) {
2396
2396
  return e.optional ? e.repeatable ? "*" : "?" : e.repeatable ? "+" : "";
2397
2397
  }
2398
- function cs(e) {
2398
+ function us(e) {
2399
2399
  const { record: t } = e, n = [
2400
2400
  { editable: !1, key: "path", value: t.path }
2401
2401
  ];
@@ -2410,7 +2410,7 @@ function cs(e) {
2410
2410
  _custom: {
2411
2411
  type: null,
2412
2412
  readOnly: !0,
2413
- display: e.keys.map((r) => `${r.name}${as(r)}`).join(" "),
2413
+ display: e.keys.map((r) => `${r.name}${cs(r)}`).join(" "),
2414
2414
  tooltip: "Param keys",
2415
2415
  value: e.keys
2416
2416
  }
@@ -2441,104 +2441,104 @@ function cs(e) {
2441
2441
  }
2442
2442
  }), n;
2443
2443
  }
2444
- const Pn = 15485081, Sn = 2450411, On = 8702998, us = 2282478, kn = 16486972, ls = 6710886, fs = 16704226, ds = 12131356;
2445
- function Nn(e) {
2444
+ const Sn = 15485081, On = 2450411, kn = 8702998, ls = 2282478, Nn = 16486972, fs = 6710886, ds = 16704226, hs = 12131356;
2445
+ function Vn(e) {
2446
2446
  const t = [], { record: n } = e;
2447
2447
  n.name != null && t.push({
2448
2448
  label: String(n.name),
2449
2449
  textColor: 0,
2450
- backgroundColor: us
2450
+ backgroundColor: ls
2451
2451
  }), n.aliasOf && t.push({
2452
2452
  label: "alias",
2453
2453
  textColor: 0,
2454
- backgroundColor: kn
2454
+ backgroundColor: Nn
2455
2455
  }), e.__vd_match && t.push({
2456
2456
  label: "matches",
2457
2457
  textColor: 0,
2458
- backgroundColor: Pn
2458
+ backgroundColor: Sn
2459
2459
  }), e.__vd_exactActive && t.push({
2460
2460
  label: "exact",
2461
2461
  textColor: 0,
2462
- backgroundColor: On
2462
+ backgroundColor: kn
2463
2463
  }), e.__vd_active && t.push({
2464
2464
  label: "active",
2465
2465
  textColor: 0,
2466
- backgroundColor: Sn
2466
+ backgroundColor: On
2467
2467
  }), n.redirect && t.push({
2468
2468
  label: typeof n.redirect == "string" ? `redirect: ${n.redirect}` : "redirects",
2469
2469
  textColor: 16777215,
2470
- backgroundColor: ls
2470
+ backgroundColor: fs
2471
2471
  });
2472
2472
  let r = n.__vd_id;
2473
- return r == null && (r = String(hs++), n.__vd_id = r), {
2473
+ return r == null && (r = String(ps++), n.__vd_id = r), {
2474
2474
  id: r,
2475
2475
  label: n.path,
2476
2476
  tags: t,
2477
- children: e.children.map(Nn)
2477
+ children: e.children.map(Vn)
2478
2478
  };
2479
2479
  }
2480
- let hs = 0;
2481
- const ps = /^\/(.*)\/([a-z]*)$/;
2482
- function Vn(e, t) {
2480
+ let ps = 0;
2481
+ const gs = /^\/(.*)\/([a-z]*)$/;
2482
+ function Cn(e, t) {
2483
2483
  const n = t.matched.length && Z(t.matched[t.matched.length - 1], e.record);
2484
- e.__vd_exactActive = e.__vd_active = n, n || (e.__vd_active = t.matched.some((r) => Z(r, e.record))), e.children.forEach((r) => Vn(r, t));
2484
+ e.__vd_exactActive = e.__vd_active = n, n || (e.__vd_active = t.matched.some((r) => Z(r, e.record))), e.children.forEach((r) => Cn(r, t));
2485
2485
  }
2486
- function Cn(e) {
2487
- e.__vd_match = !1, e.children.forEach(Cn);
2486
+ function In(e) {
2487
+ e.__vd_match = !1, e.children.forEach(In);
2488
2488
  }
2489
2489
  function lt(e, t) {
2490
- const n = String(e.re).match(ps);
2490
+ const n = String(e.re).match(gs);
2491
2491
  if (e.__vd_match = !1, !n || n.length < 3)
2492
2492
  return !1;
2493
2493
  if (new RegExp(n[1].replace(/\$$/, ""), n[2]).test(t))
2494
2494
  return e.children.forEach((i) => lt(i, t)), e.record.path !== "/" || t === "/" ? (e.__vd_match = e.re.test(t), !0) : !1;
2495
- const o = e.record.path.toLowerCase(), s = ce(o);
2495
+ const o = e.record.path.toLowerCase(), s = ie(o);
2496
2496
  return !t.startsWith("/") && (s.includes(t) || o.includes(t)) || s.startsWith(t) || o.startsWith(t) || e.record.name && String(e.record.name).includes(t) ? !0 : e.children.some((i) => lt(i, t));
2497
2497
  }
2498
- function gs(e, t) {
2498
+ function ms(e, t) {
2499
2499
  const n = {};
2500
2500
  for (const r in e)
2501
2501
  t.includes(r) || (n[r] = e[r]);
2502
2502
  return n;
2503
2503
  }
2504
- function ms(e) {
2505
- const t = Mo(e.routes, e), n = e.parseQuery || zo, r = e.stringifyQuery || jt, o = e.history;
2504
+ function vs(e) {
2505
+ const t = Wo(e.routes, e), n = e.parseQuery || qo, r = e.stringifyQuery || Mt, o = e.history;
2506
2506
  if (P.NODE_ENV !== "production" && !o)
2507
2507
  throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');
2508
- const s = pe(), i = pe(), a = pe(), l = H(Y);
2508
+ const s = he(), i = he(), a = he(), l = H(Y);
2509
2509
  let d = Y;
2510
2510
  q && e.scrollBehavior && "scrollRestoration" in history && (history.scrollRestoration = "manual");
2511
- const c = He.bind(null, (p) => "" + p), u = He.bind(null, lo), f = (
2511
+ const c = He.bind(null, (p) => "" + p), u = He.bind(null, fo), f = (
2512
2512
  // @ts-expect-error: intentionally avoid the type check
2513
- He.bind(null, ce)
2513
+ He.bind(null, ie)
2514
2514
  );
2515
2515
  function h(p, w) {
2516
2516
  let y, b;
2517
- return _n(p) ? (y = t.getRecordMatcher(p), P.NODE_ENV !== "production" && !y && S(`Parent route "${String(p)}" not found when adding child route`, w), b = w) : b = p, t.addRoute(b, y);
2517
+ return bn(p) ? (y = t.getRecordMatcher(p), P.NODE_ENV !== "production" && !y && S(`Parent route "${String(p)}" not found when adding child route`, w), b = w) : b = p, t.addRoute(b, y);
2518
2518
  }
2519
- function g(p) {
2519
+ function m(p) {
2520
2520
  const w = t.getRecordMatcher(p);
2521
2521
  w ? t.removeRoute(w) : P.NODE_ENV !== "production" && S(`Cannot remove non-existent route "${String(p)}"`);
2522
2522
  }
2523
- function m() {
2523
+ function g() {
2524
2524
  return t.getRoutes().map((p) => p.record);
2525
2525
  }
2526
2526
  function v(p) {
2527
2527
  return !!t.getRecordMatcher(p);
2528
2528
  }
2529
- function E(p, w) {
2529
+ function _(p, w) {
2530
2530
  if (w = N({}, w || l.value), typeof p == "string") {
2531
2531
  const O = Ke(n, p, w.path), I = t.resolve({ path: O.path }, w), ee = o.createHref(O.fullPath);
2532
2532
  return P.NODE_ENV !== "production" && (ee.startsWith("//") ? S(`Location "${p}" resolved to "${ee}". A resolved location cannot start with multiple slashes.`) : I.matched.length || S(`No match found for location with path "${p}"`)), N(O, I, {
2533
2533
  params: f(I.params),
2534
- hash: ce(O.hash),
2534
+ hash: ie(O.hash),
2535
2535
  redirectedFrom: void 0,
2536
2536
  href: ee
2537
2537
  });
2538
2538
  }
2539
2539
  if (P.NODE_ENV !== "production" && !Ce(p))
2540
2540
  return S(`router.resolve() was passed an invalid location. This will fail in production.
2541
- - Location:`, p), E({});
2541
+ - Location:`, p), _({});
2542
2542
  let y;
2543
2543
  if (p.path != null)
2544
2544
  P.NODE_ENV !== "production" && "params" in p && !("name" in p) && // @ts-expect-error: the type is never
@@ -2555,8 +2555,8 @@ function ms(e) {
2555
2555
  }
2556
2556
  const b = t.resolve(y, w), V = p.hash || "";
2557
2557
  P.NODE_ENV !== "production" && V && !V.startsWith("#") && S(`A \`hash\` should always start with the character "#". Replace "${V}" with "#${V}".`), b.params = c(f(b.params));
2558
- const A = po(r, N({}, p, {
2559
- hash: ao(V),
2558
+ const A = go(r, N({}, p, {
2559
+ hash: co(V),
2560
2560
  path: b.path
2561
2561
  })), k = o.createHref(A);
2562
2562
  return P.NODE_ENV !== "production" && (k.startsWith("//") ? S(`Location "${p}" resolved to "${k}". A resolved location cannot start with multiple slashes.`) : b.matched.length || S(`No match found for location with path "${p.path != null ? p.path : p}"`)), N({
@@ -2570,19 +2570,19 @@ function ms(e) {
2570
2570
  // numbers at `$route.query`, but at the point, the user will have to
2571
2571
  // use their own type anyway.
2572
2572
  // https://github.com/vuejs/router/issues/328#issuecomment-649481567
2573
- r === jt ? qo(p.query) : p.query || {}
2573
+ r === Mt ? Qo(p.query) : p.query || {}
2574
2574
  )
2575
2575
  }, b, {
2576
2576
  redirectedFrom: void 0,
2577
2577
  href: k
2578
2578
  });
2579
2579
  }
2580
- function _(p) {
2580
+ function E(p) {
2581
2581
  return typeof p == "string" ? Ke(n, p, l.value.path) : N({}, p);
2582
2582
  }
2583
2583
  function R(p, w) {
2584
2584
  if (d !== p)
2585
- return le(8, {
2585
+ return ce(8, {
2586
2586
  from: w,
2587
2587
  to: p
2588
2588
  });
@@ -2591,14 +2591,14 @@ function ms(e) {
2591
2591
  return F(p);
2592
2592
  }
2593
2593
  function M(p) {
2594
- return C(N(_(p), { replace: !0 }));
2594
+ return C(N(E(p), { replace: !0 }));
2595
2595
  }
2596
2596
  function U(p) {
2597
2597
  const w = p.matched[p.matched.length - 1];
2598
2598
  if (w && w.redirect) {
2599
2599
  const { redirect: y } = w;
2600
2600
  let b = typeof y == "function" ? y(p) : y;
2601
- if (typeof b == "string" && (b = b.includes("?") || b.includes("#") ? b = _(b) : (
2601
+ if (typeof b == "string" && (b = b.includes("?") || b.includes("#") ? b = E(b) : (
2602
2602
  // force empty params
2603
2603
  { path: b }
2604
2604
  ), b.params = {}), P.NODE_ENV !== "production" && b.path == null && !("name" in b))
@@ -2614,10 +2614,10 @@ ${JSON.stringify(b, null, 2)}
2614
2614
  }
2615
2615
  }
2616
2616
  function F(p, w) {
2617
- const y = d = E(p), b = l.value, V = p.state, A = p.force, k = p.replace === !0, O = U(y);
2617
+ const y = d = _(p), b = l.value, V = p.state, A = p.force, k = p.replace === !0, O = U(y);
2618
2618
  if (O)
2619
2619
  return F(
2620
- N(_(O), {
2620
+ N(E(O), {
2621
2621
  state: typeof O == "object" ? N({}, V, O.state) : V,
2622
2622
  force: A,
2623
2623
  replace: k
@@ -2628,7 +2628,7 @@ ${JSON.stringify(b, null, 2)}
2628
2628
  const I = y;
2629
2629
  I.redirectedFrom = w;
2630
2630
  let ee;
2631
- return !A && Ot(r, b, y) && (ee = le(16, { to: I, from: b }), Et(
2631
+ return !A && kt(r, b, y) && (ee = ce(16, { to: I, from: b }), Et(
2632
2632
  b,
2633
2633
  b,
2634
2634
  // this is a push, the only way for it to be triggered from a
@@ -2637,7 +2637,7 @@ ${JSON.stringify(b, null, 2)}
2637
2637
  // This cannot be the first navigation because the initial location
2638
2638
  // cannot be manually navigated to
2639
2639
  !1
2640
- )), (ee ? Promise.resolve(ee) : mt(I, b)).catch((T) => z(T) ? (
2640
+ )), (ee ? Promise.resolve(ee) : vt(I, b)).catch((T) => z(T) ? (
2641
2641
  // navigation redirects still mark the router as ready
2642
2642
  z(
2643
2643
  T,
@@ -2655,7 +2655,7 @@ ${JSON.stringify(b, null, 2)}
2655
2655
  /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
2656
2656
  ))
2657
2657
  return P.NODE_ENV !== "production" && // we are redirecting to the same location we were already at
2658
- Ot(r, E(T.to), I) && // and we have done it a couple of times
2658
+ kt(r, _(T.to), I) && // and we have done it a couple of times
2659
2659
  w && // @ts-expect-error: added only in dev
2660
2660
  (w._count = w._count ? (
2661
2661
  // @ts-expect-error
@@ -2666,7 +2666,7 @@ ${JSON.stringify(b, null, 2)}
2666
2666
  N({
2667
2667
  // preserve an existing replacement but allow the redirect to override it
2668
2668
  replace: k
2669
- }, _(T.to), {
2669
+ }, E(T.to), {
2670
2670
  state: typeof T.to == "object" ? N({}, V, T.to.state) : V,
2671
2671
  force: A
2672
2672
  }),
@@ -2674,11 +2674,11 @@ ${JSON.stringify(b, null, 2)}
2674
2674
  w || I
2675
2675
  );
2676
2676
  } else
2677
- T = yt(I, b, !0, k, V);
2678
- return vt(I, b, T), T;
2677
+ T = wt(I, b, !0, k, V);
2678
+ return yt(I, b, T), T;
2679
2679
  });
2680
2680
  }
2681
- function jn(p, w) {
2681
+ function Mn(p, w) {
2682
2682
  const y = R(p, w);
2683
2683
  return y ? Promise.reject(y) : Promise.resolve();
2684
2684
  }
@@ -2686,27 +2686,27 @@ ${JSON.stringify(b, null, 2)}
2686
2686
  const w = Se.values().next().value;
2687
2687
  return w && typeof w.runWithContext == "function" ? w.runWithContext(p) : p();
2688
2688
  }
2689
- function mt(p, w) {
2689
+ function vt(p, w) {
2690
2690
  let y;
2691
- const [b, V, A] = vs(p, w);
2691
+ const [b, V, A] = ys(p, w);
2692
2692
  y = ze(b.reverse(), "beforeRouteLeave", p, w);
2693
2693
  for (const O of b)
2694
2694
  O.leaveGuards.forEach((I) => {
2695
2695
  y.push(X(I, p, w));
2696
2696
  });
2697
- const k = jn.bind(null, p, w);
2698
- return y.push(k), se(y).then(() => {
2697
+ const k = Mn.bind(null, p, w);
2698
+ return y.push(k), re(y).then(() => {
2699
2699
  y = [];
2700
2700
  for (const O of s.list())
2701
2701
  y.push(X(O, p, w));
2702
- return y.push(k), se(y);
2702
+ return y.push(k), re(y);
2703
2703
  }).then(() => {
2704
2704
  y = ze(V, "beforeRouteUpdate", p, w);
2705
2705
  for (const O of V)
2706
2706
  O.updateGuards.forEach((I) => {
2707
2707
  y.push(X(I, p, w));
2708
2708
  });
2709
- return y.push(k), se(y);
2709
+ return y.push(k), re(y);
2710
2710
  }).then(() => {
2711
2711
  y = [];
2712
2712
  for (const O of A)
@@ -2716,22 +2716,22 @@ ${JSON.stringify(b, null, 2)}
2716
2716
  y.push(X(I, p, w));
2717
2717
  else
2718
2718
  y.push(X(O.beforeEnter, p, w));
2719
- return y.push(k), se(y);
2720
- }).then(() => (p.matched.forEach((O) => O.enterCallbacks = {}), y = ze(A, "beforeRouteEnter", p, w, je), y.push(k), se(y))).then(() => {
2719
+ return y.push(k), re(y);
2720
+ }).then(() => (p.matched.forEach((O) => O.enterCallbacks = {}), y = ze(A, "beforeRouteEnter", p, w, je), y.push(k), re(y))).then(() => {
2721
2721
  y = [];
2722
2722
  for (const O of i.list())
2723
2723
  y.push(X(O, p, w));
2724
- return y.push(k), se(y);
2724
+ return y.push(k), re(y);
2725
2725
  }).catch((O) => z(
2726
2726
  O,
2727
2727
  8
2728
2728
  /* ErrorTypes.NAVIGATION_CANCELLED */
2729
2729
  ) ? O : Promise.reject(O));
2730
2730
  }
2731
- function vt(p, w, y) {
2731
+ function yt(p, w, y) {
2732
2732
  a.list().forEach((b) => je(() => b(p, w, y)));
2733
2733
  }
2734
- function yt(p, w, y, b, V) {
2734
+ function wt(p, w, y, b, V) {
2735
2735
  const A = R(p, w);
2736
2736
  if (A)
2737
2737
  return A;
@@ -2740,19 +2740,19 @@ ${JSON.stringify(b, null, 2)}
2740
2740
  scroll: k && O && O.scroll
2741
2741
  }, V)) : o.push(p.fullPath, V)), l.value = p, Et(p, w, y, k), Le();
2742
2742
  }
2743
- let de;
2744
- function Mn() {
2745
- de || (de = o.listen((p, w, y) => {
2746
- if (!_t.listening)
2743
+ let fe;
2744
+ function Wn() {
2745
+ fe || (fe = o.listen((p, w, y) => {
2746
+ if (!bt.listening)
2747
2747
  return;
2748
- const b = E(p), V = U(b);
2748
+ const b = _(p), V = U(b);
2749
2749
  if (V) {
2750
- F(N(V, { replace: !0, force: !0 }), b).catch(Ee);
2750
+ F(N(V, { replace: !0, force: !0 }), b).catch(we);
2751
2751
  return;
2752
2752
  }
2753
2753
  d = b;
2754
2754
  const A = l.value;
2755
- q && Eo(Nt(A.fullPath, y.delta), Te()), mt(b, A).catch((k) => z(
2755
+ q && Eo(Vt(A.fullPath, y.delta), Te()), vt(b, A).catch((k) => z(
2756
2756
  k,
2757
2757
  12
2758
2758
  /* ErrorTypes.NAVIGATION_CANCELLED */
@@ -2761,7 +2761,7 @@ ${JSON.stringify(b, null, 2)}
2761
2761
  2
2762
2762
  /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
2763
2763
  ) ? (F(
2764
- N(_(k.to), {
2764
+ N(E(k.to), {
2765
2765
  force: !0
2766
2766
  }),
2767
2767
  b
@@ -2771,9 +2771,9 @@ ${JSON.stringify(b, null, 2)}
2771
2771
  O,
2772
2772
  20
2773
2773
  /* ErrorTypes.NAVIGATION_DUPLICATED */
2774
- ) && !y.delta && y.type === ue.pop && o.go(-1, !1);
2775
- }).catch(Ee), Promise.reject()) : (y.delta && o.go(-y.delta, !1), We(k, b, A))).then((k) => {
2776
- k = k || yt(
2774
+ ) && !y.delta && y.type === ae.pop && o.go(-1, !1);
2775
+ }).catch(we), Promise.reject()) : (y.delta && o.go(-y.delta, !1), We(k, b, A))).then((k) => {
2776
+ k = k || wt(
2777
2777
  // after navigation, all matched components are resolved
2778
2778
  b,
2779
2779
  A,
@@ -2784,46 +2784,46 @@ ${JSON.stringify(b, null, 2)}
2784
2784
  k,
2785
2785
  8
2786
2786
  /* ErrorTypes.NAVIGATION_CANCELLED */
2787
- ) ? o.go(-y.delta, !1) : y.type === ue.pop && z(
2787
+ ) ? o.go(-y.delta, !1) : y.type === ae.pop && z(
2788
2788
  k,
2789
2789
  20
2790
2790
  /* ErrorTypes.NAVIGATION_DUPLICATED */
2791
- ) && o.go(-1, !1)), vt(b, A, k);
2792
- }).catch(Ee);
2791
+ ) && o.go(-1, !1)), yt(b, A, k);
2792
+ }).catch(we);
2793
2793
  }));
2794
2794
  }
2795
- let Me = pe(), wt = pe(), Pe;
2795
+ let Me = he(), _t = he(), Pe;
2796
2796
  function We(p, w, y) {
2797
2797
  Le(p);
2798
- const b = wt.list();
2798
+ const b = _t.list();
2799
2799
  return b.length ? b.forEach((V) => V(p, w, y)) : (P.NODE_ENV !== "production" && S("uncaught error during route navigation:"), console.error(p)), Promise.reject(p);
2800
2800
  }
2801
- function Wn() {
2801
+ function Ln() {
2802
2802
  return Pe && l.value !== Y ? Promise.resolve() : new Promise((p, w) => {
2803
2803
  Me.add([p, w]);
2804
2804
  });
2805
2805
  }
2806
2806
  function Le(p) {
2807
- return Pe || (Pe = !p, Mn(), Me.list().forEach(([w, y]) => p ? y(p) : w()), Me.reset()), p;
2807
+ return Pe || (Pe = !p, Wn(), Me.list().forEach(([w, y]) => p ? y(p) : w()), Me.reset()), p;
2808
2808
  }
2809
2809
  function Et(p, w, y, b) {
2810
2810
  const { scrollBehavior: V } = e;
2811
2811
  if (!q || !V)
2812
2812
  return Promise.resolve();
2813
- const A = !y && _o(Nt(p.fullPath, 0)) || (b || !y) && history.state && history.state.scroll || null;
2814
- return ke().then(() => V(p, w, A)).then((k) => k && wo(k)).catch((k) => We(k, p, w));
2813
+ const A = !y && bo(Vt(p.fullPath, 0)) || (b || !y) && history.state && history.state.scroll || null;
2814
+ return ke().then(() => V(p, w, A)).then((k) => k && _o(k)).catch((k) => We(k, p, w));
2815
2815
  }
2816
2816
  const Be = (p) => o.go(p);
2817
2817
  let Fe;
2818
- const Se = /* @__PURE__ */ new Set(), _t = {
2818
+ const Se = /* @__PURE__ */ new Set(), bt = {
2819
2819
  currentRoute: l,
2820
2820
  listening: !0,
2821
2821
  addRoute: h,
2822
- removeRoute: g,
2822
+ removeRoute: m,
2823
2823
  clearRoutes: t.clearRoutes,
2824
2824
  hasRoute: v,
2825
- getRoutes: m,
2826
- resolve: E,
2825
+ getRoutes: g,
2826
+ resolve: _,
2827
2827
  options: e,
2828
2828
  push: C,
2829
2829
  replace: M,
@@ -2833,11 +2833,11 @@ ${JSON.stringify(b, null, 2)}
2833
2833
  beforeEach: s.add,
2834
2834
  beforeResolve: i.add,
2835
2835
  afterEach: a.add,
2836
- onError: wt.add,
2837
- isReady: Wn,
2836
+ onError: _t.add,
2837
+ isReady: Ln,
2838
2838
  install(p) {
2839
2839
  const w = this;
2840
- p.component("RouterLink", Zo), p.component("RouterView", rs), p.config.globalProperties.$router = w, Object.defineProperty(p.config.globalProperties, "$route", {
2840
+ p.component("RouterLink", es), p.component("RouterView", os), p.config.globalProperties.$router = w, Object.defineProperty(p.config.globalProperties, "$route", {
2841
2841
  enumerable: !0,
2842
2842
  get: () => W(l)
2843
2843
  }), q && // used for the initial navigation client side to avoid pushing
@@ -2851,19 +2851,19 @@ ${JSON.stringify(b, null, 2)}
2851
2851
  get: () => l.value[V],
2852
2852
  enumerable: !0
2853
2853
  });
2854
- p.provide(De, w), p.provide(gt, Hn(y)), p.provide(ut, l);
2854
+ p.provide(De, w), p.provide(mt, Kn(y)), p.provide(ut, l);
2855
2855
  const b = p.unmount;
2856
2856
  Se.add(p), p.unmount = function() {
2857
- Se.delete(p), Se.size < 1 && (d = Y, de && de(), de = null, l.value = Y, Fe = !1, Pe = !1), b();
2858
- }, P.NODE_ENV !== "production" && q && is(p, w, t);
2857
+ Se.delete(p), Se.size < 1 && (d = Y, fe && fe(), fe = null, l.value = Y, Fe = !1, Pe = !1), b();
2858
+ }, P.NODE_ENV !== "production" && q && as(p, w, t);
2859
2859
  }
2860
2860
  };
2861
- function se(p) {
2861
+ function re(p) {
2862
2862
  return p.reduce((w, y) => w.then(() => je(y)), Promise.resolve());
2863
2863
  }
2864
- return _t;
2864
+ return bt;
2865
2865
  }
2866
- function vs(e, t) {
2866
+ function ys(e, t) {
2867
2867
  const n = [], r = [], o = [], s = Math.max(t.matched.length, e.matched.length);
2868
2868
  for (let i = 0; i < s; i++) {
2869
2869
  const a = t.matched[i];
@@ -2873,42 +2873,42 @@ function vs(e, t) {
2873
2873
  }
2874
2874
  return [n, r, o];
2875
2875
  }
2876
- function ys() {
2876
+ function ws() {
2877
2877
  return J(De);
2878
2878
  }
2879
- function ws(e) {
2880
- return J(gt);
2879
+ function _s(e) {
2880
+ return J(mt);
2881
2881
  }
2882
2882
  function Es(e) {
2883
2883
  const { immediately: t = !1, code: n } = e;
2884
- let r = j(n);
2884
+ let r = D(n);
2885
2885
  return t && (r = r()), r;
2886
2886
  }
2887
2887
  const _e = /* @__PURE__ */ new Map();
2888
- function _s(e) {
2888
+ function bs(e) {
2889
2889
  if (!_e.has(e)) {
2890
2890
  const t = Symbol();
2891
2891
  return _e.set(e, t), t;
2892
2892
  }
2893
2893
  return _e.get(e);
2894
2894
  }
2895
- function re(e, t) {
2895
+ function le(e, t) {
2896
2896
  var a, l;
2897
- const n = Ue(e), r = Rs(n, t);
2897
+ const n = Ue(e), r = Ps(n, t);
2898
2898
  if (r.size > 0) {
2899
- const d = _s(e);
2900
- ye(d, r);
2899
+ const d = bs(e);
2900
+ ve(d, r);
2901
2901
  }
2902
- const o = oe({ attached: { varMap: r, sid: e } });
2903
- Vr({
2902
+ const o = ne({ attached: { varMap: r, sid: e } });
2903
+ Cr({
2904
2904
  watchConfigs: n.py_watch || [],
2905
2905
  computedConfigs: n.web_computed || [],
2906
2906
  varMapGetter: o,
2907
2907
  sid: e
2908
2908
  }), (a = n.js_watch) == null || a.forEach((d) => {
2909
- Lr(d, o);
2909
+ Br(d, o);
2910
2910
  }), (l = n.vue_watch) == null || l.forEach((d) => {
2911
- Wr(d, o);
2911
+ Lr(d, o);
2912
2912
  });
2913
2913
  function s(d, c) {
2914
2914
  const u = Ue(d);
@@ -2921,72 +2921,72 @@ function re(e, t) {
2921
2921
  const { sid: c, value: u } = d;
2922
2922
  if (!c)
2923
2923
  return;
2924
- const f = Ue(c), { id: h } = f.sp, g = r.get(h);
2925
- g.value = u;
2924
+ const f = Ue(c), { id: h } = f.sp, m = r.get(h);
2925
+ m.value = u;
2926
2926
  }
2927
2927
  return {
2928
2928
  updateVforInfo: s,
2929
2929
  updateSlotPropValue: i
2930
2930
  };
2931
2931
  }
2932
- function oe(e) {
2933
- const { attached: t, sidCollector: n } = e || {}, [r, o, s] = Ps(n);
2932
+ function ne(e) {
2933
+ const { attached: t, sidCollector: n } = e || {}, [r, o, s] = Ss(n);
2934
2934
  t && r.set(t.sid, t.varMap);
2935
- const i = o ? ws() : null, a = s ? ys() : null, l = o ? () => i : () => {
2935
+ const i = o ? _s() : null, a = s ? ws() : null, l = o ? () => i : () => {
2936
2936
  throw new Error("Route params not found");
2937
2937
  }, d = s ? () => a : () => {
2938
2938
  throw new Error("Router not found");
2939
2939
  };
2940
- function c(m) {
2941
- const v = Qe(f(m));
2942
- return en(v, m.path ?? [], c);
2943
- }
2944
- function u(m) {
2945
- const v = f(m);
2946
- return pr(v, {
2947
- paths: m.path,
2940
+ function c(g) {
2941
+ const v = Qe(f(g));
2942
+ return tn(v, g.path ?? [], c);
2943
+ }
2944
+ function u(g) {
2945
+ const v = f(g);
2946
+ return gr(v, {
2947
+ paths: g.path,
2948
2948
  getBindableValueFn: c
2949
2949
  });
2950
2950
  }
2951
- function f(m) {
2952
- return br(m) ? () => l()[m.prop] : r.get(m.sid).get(m.id);
2951
+ function f(g) {
2952
+ return Rr(g) ? () => l()[g.prop] : r.get(g.sid).get(g.id);
2953
2953
  }
2954
- function h(m, v) {
2955
- if (ht(m)) {
2956
- const E = f(m);
2957
- if (m.path) {
2958
- tn(E.value, m.path, v, c);
2954
+ function h(g, v) {
2955
+ if (pt(g)) {
2956
+ const _ = f(g);
2957
+ if (g.path) {
2958
+ nn(_.value, g.path, v, c);
2959
2959
  return;
2960
2960
  }
2961
- E.value = v;
2961
+ _.value = v;
2962
2962
  return;
2963
2963
  }
2964
- throw new Error(`Unsupported output binding: ${m}`);
2964
+ throw new Error(`Unsupported output binding: ${g}`);
2965
2965
  }
2966
- function g() {
2966
+ function m() {
2967
2967
  return d();
2968
2968
  }
2969
2969
  return {
2970
2970
  getValue: c,
2971
- getRouter: g,
2971
+ getRouter: m,
2972
2972
  getVueRefObject: u,
2973
2973
  updateValue: h,
2974
2974
  getVueRefObjectWithoutPath: f
2975
2975
  };
2976
2976
  }
2977
- function In(e) {
2977
+ function An(e) {
2978
2978
  const t = _e.get(e);
2979
2979
  return J(t);
2980
2980
  }
2981
- function bs(e) {
2982
- const t = In(e);
2981
+ function Rs(e) {
2982
+ const t = An(e);
2983
2983
  if (t === void 0)
2984
2984
  throw new Error(`Scope not found: ${e}`);
2985
2985
  return t;
2986
2986
  }
2987
- function Rs(e, t) {
2987
+ function Ps(e, t) {
2988
2988
  var o, s, i, a, l;
2989
- const n = /* @__PURE__ */ new Map(), r = oe({
2989
+ const n = /* @__PURE__ */ new Map(), r = ne({
2990
2990
  attached: { varMap: n, sid: e.id }
2991
2991
  });
2992
2992
  if (e.data && e.data.forEach((d) => {
@@ -2995,23 +2995,23 @@ function Rs(e, t) {
2995
2995
  const c = Es(d);
2996
2996
  n.set(d.id, () => c);
2997
2997
  }), e.vfor && (t != null && t.initVforInfo)) {
2998
- const { fv: d, fi: c, fk: u } = e.vfor, { index: f = 0, keyValue: h = null, config: g } = t.initVforInfo, { sid: m } = g, v = Fr(m);
2998
+ const { fv: d, fi: c, fk: u } = e.vfor, { index: f = 0, keyValue: h = null, config: m } = t.initVforInfo, { sid: g } = m, v = Ur(g);
2999
2999
  if (d) {
3000
- const E = ae(() => ({
3000
+ const _ = se(() => ({
3001
3001
  get() {
3002
- const _ = v.value;
3003
- return Array.isArray(_) ? _[f] : Object.values(_)[f];
3002
+ const E = v.value;
3003
+ return Array.isArray(E) ? E[f] : Object.values(E)[f];
3004
3004
  },
3005
- set(_) {
3005
+ set(E) {
3006
3006
  const R = v.value;
3007
3007
  if (!Array.isArray(R)) {
3008
- R[h] = _;
3008
+ R[h] = E;
3009
3009
  return;
3010
3010
  }
3011
- R[f] = _;
3011
+ R[f] = E;
3012
3012
  }
3013
3013
  }));
3014
- n.set(d.id, E);
3014
+ n.set(d.id, _);
3015
3015
  }
3016
3016
  c && n.set(c.id, H(f)), u && n.set(u.id, H(h));
3017
3017
  }
@@ -3022,44 +3022,44 @@ function Rs(e, t) {
3022
3022
  return (o = e.eRefs) == null || o.forEach((d) => {
3023
3023
  n.set(d.id, H(null));
3024
3024
  }), (s = e.refs) == null || s.forEach((d) => {
3025
- const c = gr(d);
3025
+ const c = mr(d);
3026
3026
  n.set(d.id, c);
3027
3027
  }), (i = e.web_computed) == null || i.forEach((d) => {
3028
- const c = vr(d);
3028
+ const c = yr(d);
3029
3029
  n.set(d.id, c);
3030
3030
  }), (a = e.js_computed) == null || a.forEach((d) => {
3031
- const c = yr(
3031
+ const c = wr(
3032
3032
  d,
3033
3033
  r
3034
3034
  );
3035
3035
  n.set(d.id, c);
3036
3036
  }), (l = e.vue_computed) == null || l.forEach((d) => {
3037
- const c = mr(
3037
+ const c = vr(
3038
3038
  d,
3039
3039
  r
3040
3040
  );
3041
3041
  n.set(d.id, c);
3042
3042
  }), n;
3043
3043
  }
3044
- function Ps(e) {
3044
+ function Ss(e) {
3045
3045
  const t = /* @__PURE__ */ new Map();
3046
3046
  if (e) {
3047
3047
  const { sids: n, needRouteParams: r = !0, needRouter: o = !0 } = e;
3048
3048
  for (const s of n)
3049
- t.set(s, bs(s));
3049
+ t.set(s, Rs(s));
3050
3050
  return [t, r, o];
3051
3051
  }
3052
3052
  for (const n of _e.keys()) {
3053
- const r = In(n);
3053
+ const r = An(n);
3054
3054
  r !== void 0 && t.set(n, r);
3055
3055
  }
3056
3056
  return [t, !0, !0];
3057
3057
  }
3058
- const Ss = D(Os, {
3058
+ const Os = j(ks, {
3059
3059
  props: ["vforConfig", "vforIndex", "vforKeyValue"]
3060
3060
  });
3061
- function Os(e) {
3062
- const { sid: t, items: n = [] } = e.vforConfig, { updateVforInfo: r } = re(t, {
3061
+ function ks(e) {
3062
+ const { sid: t, items: n = [] } = e.vforConfig, { updateVforInfo: r } = le(t, {
3063
3063
  initVforInfo: {
3064
3064
  config: e.vforConfig,
3065
3065
  index: e.vforIndex,
@@ -3069,9 +3069,9 @@ function Os(e) {
3069
3069
  return () => (r(t, {
3070
3070
  index: e.vforIndex,
3071
3071
  keyValue: e.vforKeyValue
3072
- }), n.length === 1 ? ne(n[0]) : n.map((o) => ne(o)));
3072
+ }), n.length === 1 ? ue(n[0]) : n.map((o) => ue(o)));
3073
3073
  }
3074
- function Ut(e) {
3074
+ function Ht(e) {
3075
3075
  const { start: t = 0, end: n, step: r = 1 } = e;
3076
3076
  let o = [];
3077
3077
  if (r > 0)
@@ -3082,15 +3082,15 @@ function Ut(e) {
3082
3082
  o.push(s);
3083
3083
  return o;
3084
3084
  }
3085
- const An = D(ks, {
3085
+ const $n = j(Ns, {
3086
3086
  props: ["config"]
3087
3087
  });
3088
- function ks(e) {
3089
- const { fkey: t, tsGroup: n = {} } = e.config, r = oe(), s = Cs(t ?? "index"), i = Is(e.config, r);
3090
- return Br(e.config, i), () => {
3091
- const a = Gn(i.value, (...l) => {
3088
+ function Ns(e) {
3089
+ const { fkey: t, tsGroup: n = {} } = e.config, r = ne(), s = Is(t ?? "index"), i = As(e.config, r);
3090
+ return Fr(e.config, i), () => {
3091
+ const a = zn(i.value, (...l) => {
3092
3092
  const d = l[0], c = l[2] !== void 0, u = c ? l[2] : l[1], f = c ? l[1] : u, h = s(d, u);
3093
- return $(Ss, {
3093
+ return x(Os, {
3094
3094
  key: h,
3095
3095
  vforValue: d,
3096
3096
  vforIndex: u,
@@ -3098,23 +3098,23 @@ function ks(e) {
3098
3098
  vforConfig: e.config
3099
3099
  });
3100
3100
  });
3101
- return n && Object.keys(n).length > 0 ? $(Qt, n, {
3101
+ return n && Object.keys(n).length > 0 ? x(Jt, n, {
3102
3102
  default: () => a
3103
3103
  }) : a;
3104
3104
  };
3105
3105
  }
3106
- const Ns = (e) => e, Vs = (e, t) => t;
3107
- function Cs(e) {
3108
- const t = lr(e);
3109
- return typeof t == "function" ? t : e === "item" ? Ns : Vs;
3106
+ const Vs = (e) => e, Cs = (e, t) => t;
3107
+ function Is(e) {
3108
+ const t = fr(e);
3109
+ return typeof t == "function" ? t : e === "item" ? Vs : Cs;
3110
3110
  }
3111
- function Is(e, t) {
3111
+ function As(e, t) {
3112
3112
  const { type: n, value: r } = e.array, o = n === nt.range;
3113
3113
  if (n === nt.const || o && typeof r == "number") {
3114
- const i = o ? Ut({
3114
+ const i = o ? Ht({
3115
3115
  end: Math.max(0, r)
3116
3116
  }) : r;
3117
- return ae(() => ({
3117
+ return se(() => ({
3118
3118
  get() {
3119
3119
  return i;
3120
3120
  },
@@ -3125,9 +3125,9 @@ function Is(e, t) {
3125
3125
  }
3126
3126
  if (o) {
3127
3127
  const i = r, a = t.getVueRefObject(i);
3128
- return ae(() => ({
3128
+ return se(() => ({
3129
3129
  get() {
3130
- return Ut({
3130
+ return Ht({
3131
3131
  end: Math.max(0, a.value)
3132
3132
  });
3133
3133
  },
@@ -3136,7 +3136,7 @@ function Is(e, t) {
3136
3136
  }
3137
3137
  }));
3138
3138
  }
3139
- return ae(() => {
3139
+ return se(() => {
3140
3140
  const i = t.getVueRefObject(
3141
3141
  r
3142
3142
  );
@@ -3150,56 +3150,56 @@ function Is(e, t) {
3150
3150
  };
3151
3151
  });
3152
3152
  }
3153
- const $n = D(As, {
3153
+ const xn = j($s, {
3154
3154
  props: ["config"]
3155
3155
  });
3156
- function As(e) {
3156
+ function $s(e) {
3157
3157
  const { sid: t, items: n, on: r } = e.config;
3158
- fe(t) && re(t);
3159
- const o = oe();
3160
- return () => (typeof r == "boolean" ? r : o.getValue(r)) ? n.map((i) => ne(i)) : void 0;
3158
+ Re(t) && le(t);
3159
+ const o = ne();
3160
+ return () => (typeof r == "boolean" ? r : o.getValue(r)) ? n.map((i) => ue(i)) : void 0;
3161
3161
  }
3162
- const Ht = D($s, {
3162
+ const Kt = j(xs, {
3163
3163
  props: ["slotConfig"]
3164
3164
  });
3165
- function $s(e) {
3165
+ function xs(e) {
3166
3166
  const { sid: t, items: n } = e.slotConfig;
3167
- return fe(t) && re(t), () => n.map((r) => ne(r));
3167
+ return Re(t) && le(t), () => n.map((r) => ue(r));
3168
3168
  }
3169
- const qe = ":default", xn = D(xs, {
3169
+ const qe = ":default", Tn = j(Ts, {
3170
3170
  props: ["config"]
3171
3171
  });
3172
- function xs(e) {
3172
+ function Ts(e) {
3173
3173
  const { on: t, caseValues: n, slots: r, sid: o } = e.config;
3174
- fe(o) && re(o);
3175
- const s = oe();
3174
+ Re(o) && le(o);
3175
+ const s = ne();
3176
3176
  return () => {
3177
3177
  const i = s.getValue(t), a = n.map((l, d) => {
3178
3178
  const c = d.toString(), u = r[c];
3179
- return l === i ? $(Ht, { slotConfig: u, key: c }) : null;
3179
+ return l === i ? x(Kt, { slotConfig: u, key: c }) : null;
3180
3180
  }).filter(Boolean);
3181
- return a.length === 0 && qe in r ? $(Ht, {
3181
+ return a.length === 0 && qe in r ? x(Kt, {
3182
3182
  slotConfig: r[qe],
3183
3183
  key: qe
3184
3184
  }) : a;
3185
3185
  };
3186
3186
  }
3187
- function Ts(e, t) {
3187
+ function Ds(e, t) {
3188
3188
  return Object.assign(
3189
3189
  {},
3190
3190
  ...Object.entries(e ?? {}).map(([n, r]) => {
3191
3191
  const o = r.map((a) => {
3192
3192
  if (a.type === "web") {
3193
- const l = Ds(a, t);
3194
- return js(a, l, t);
3193
+ const l = js(a, t);
3194
+ return Ms(a, l, t);
3195
3195
  } else {
3196
3196
  if (a.type === "vue")
3197
- return Ws(a, t);
3197
+ return Ls(a, t);
3198
3198
  if (a.type === "js")
3199
- return Ms(a, t);
3199
+ return Ws(a, t);
3200
3200
  }
3201
3201
  throw new Error(`unknown event type ${a}`);
3202
- }), i = j(
3202
+ }), i = D(
3203
3203
  " (...args)=> Promise.all(promises(...args))",
3204
3204
  {
3205
3205
  promises: (...a) => o.map(async (l) => {
@@ -3211,29 +3211,29 @@ function Ts(e, t) {
3211
3211
  })
3212
3212
  );
3213
3213
  }
3214
- function Ds(e, t) {
3214
+ function js(e, t) {
3215
3215
  const { inputs: n = [] } = e;
3216
3216
  return (...r) => n.map(({ value: o, type: s }) => {
3217
3217
  if (s === K.EventContext) {
3218
3218
  const { path: i } = o;
3219
3219
  if (i.startsWith(":")) {
3220
3220
  const a = i.slice(1);
3221
- return j(a)(...r);
3221
+ return D(a)(...r);
3222
3222
  }
3223
- return jr(r[0], i.split("."));
3223
+ return Mr(r[0], i.split("."));
3224
3224
  }
3225
3225
  return s === K.Ref ? t.getValue(o) : o;
3226
3226
  });
3227
3227
  }
3228
- function js(e, t, n) {
3228
+ function Ms(e, t, n) {
3229
3229
  async function r(...o) {
3230
- const s = t(...o), i = sn({
3230
+ const s = t(...o), i = an({
3231
3231
  config: e.preSetup,
3232
3232
  varGetter: n
3233
3233
  });
3234
3234
  try {
3235
3235
  i.run();
3236
- const a = await on().eventSend(e, s);
3236
+ const a = await sn().eventSend(e, s);
3237
3237
  if (!a)
3238
3238
  return;
3239
3239
  $e(a, e.sets, n);
@@ -3243,19 +3243,19 @@ function js(e, t, n) {
3243
3243
  }
3244
3244
  return r;
3245
3245
  }
3246
- function Ms(e, t) {
3247
- const { sets: n, code: r, inputs: o = [] } = e, s = j(r);
3246
+ function Ws(e, t) {
3247
+ const { sets: n, code: r, inputs: o = [] } = e, s = D(r);
3248
3248
  function i(...a) {
3249
3249
  const l = o.map(({ value: c, type: u }) => {
3250
3250
  if (u === K.EventContext) {
3251
3251
  if (c.path.startsWith(":")) {
3252
3252
  const f = c.path.slice(1);
3253
- return j(f)(...a);
3253
+ return D(f)(...a);
3254
3254
  }
3255
- return Dr(a[0], c.path.split("."));
3255
+ return jr(a[0], c.path.split("."));
3256
3256
  }
3257
3257
  if (u === K.Ref)
3258
- return cn(t.getValue(c));
3258
+ return un(t.getValue(c));
3259
3259
  if (u === K.Data)
3260
3260
  return c;
3261
3261
  if (u === K.JsFn)
@@ -3273,17 +3273,17 @@ function Ms(e, t) {
3273
3273
  }
3274
3274
  return i;
3275
3275
  }
3276
- function Ws(e, t) {
3276
+ function Ls(e, t) {
3277
3277
  const { code: n, inputs: r = {} } = e, o = xe(
3278
3278
  r,
3279
3279
  (a) => a.type !== K.Data ? t.getVueRefObject(a.value) : a.value
3280
- ), s = j(n, o);
3280
+ ), s = D(n, o);
3281
3281
  function i(...a) {
3282
3282
  s(...a);
3283
3283
  }
3284
3284
  return i;
3285
3285
  }
3286
- function Ls(e, t) {
3286
+ function Bs(e, t) {
3287
3287
  const n = [];
3288
3288
  (e.bStyle || []).forEach((s) => {
3289
3289
  Array.isArray(s) ? n.push(
@@ -3295,13 +3295,13 @@ function Ls(e, t) {
3295
3295
  )
3296
3296
  );
3297
3297
  });
3298
- const r = zn([e.style || {}, n]);
3298
+ const r = qn([e.style || {}, n]);
3299
3299
  return {
3300
3300
  hasStyle: r && Object.keys(r).length > 0,
3301
3301
  styles: r
3302
3302
  };
3303
3303
  }
3304
- function Bs(e, t) {
3304
+ function Fs(e, t) {
3305
3305
  const n = e.classes;
3306
3306
  if (!n)
3307
3307
  return null;
@@ -3335,59 +3335,46 @@ function Ie(e, t = !0) {
3335
3335
  t && Ie(r, !0);
3336
3336
  }
3337
3337
  }
3338
- function Fs(e, t) {
3338
+ function Us(e, t) {
3339
3339
  const n = e.startsWith(":");
3340
- return n && (e = e.slice(1), t = j(t)), { name: e, value: t, isFunc: n };
3340
+ return n && (e = e.slice(1), t = D(t)), { name: e, value: t, isFunc: n };
3341
3341
  }
3342
- function Us(e, t, n) {
3342
+ function Hs(e, t, n) {
3343
3343
  var o;
3344
3344
  const r = {};
3345
- return Rt(e.bProps || {}, (s, i) => {
3345
+ return Pt(e.bProps || {}, (s, i) => {
3346
3346
  const a = n.getValue(s);
3347
- Re(a) || (Ie(a), r[i] = Hs(a, i));
3347
+ be(a) || (Ie(a), r[i] = Ks(a, i));
3348
3348
  }), (o = e.proxyProps) == null || o.forEach((s) => {
3349
3349
  const i = n.getValue(s);
3350
- typeof i == "object" && Rt(i, (a, l) => {
3351
- const { name: d, value: c } = Fs(l, a);
3350
+ typeof i == "object" && Pt(i, (a, l) => {
3351
+ const { name: d, value: c } = Us(l, a);
3352
3352
  r[d] = c;
3353
3353
  });
3354
3354
  }), { ...t, ...r };
3355
3355
  }
3356
- function Hs(e, t) {
3356
+ function Ks(e, t) {
3357
3357
  return t === "innerText" ? Ae(e) : e;
3358
3358
  }
3359
- const Ks = D(Gs, {
3359
+ const Gs = j(zs, {
3360
3360
  props: ["slotPropValue", "config"]
3361
3361
  });
3362
- function Gs(e) {
3363
- const { sid: t, items: n } = e.config, r = fe(t) ? re(t).updateSlotPropValue : zs;
3364
- return () => (r({ sid: t, value: e.slotPropValue }), n.map((o) => ne(o)));
3362
+ function zs(e) {
3363
+ const { sid: t, items: n } = e.config, r = Re(t) ? le(t).updateSlotPropValue : qs;
3364
+ return () => (r({ sid: t, value: e.slotPropValue }), n.map((o) => ue(o)));
3365
3365
  }
3366
- function zs() {
3366
+ function qs() {
3367
3367
  }
3368
- const qs = D(Qs, {
3369
- props: ["config", "sid"]
3370
- });
3371
- function Qs(e) {
3372
- const { sid: t } = e;
3373
- return fe(t) && re(t), () => ne(e.config);
3374
- }
3375
- function Js(e) {
3368
+ function Qs(e, t) {
3376
3369
  if (!e.slots)
3377
3370
  return null;
3378
- const t = e.slots ?? {};
3379
- return an(t, { keyFn: (s) => s === ":" ? "default" : s, valueFn: (s) => {
3380
- const { items: i } = s;
3381
- return (a) => s.use_prop ? Ys(a, s) : Xs(i, s.sid);
3382
- } });
3371
+ const n = e.slots ?? {};
3372
+ return t ? ft(n[":"]) : cn(n, { keyFn: (i) => i === ":" ? "default" : i, valueFn: (i) => (a) => i.use_prop ? Js(a, i) : ft(i) });
3383
3373
  }
3384
- function Ys(e, t) {
3385
- return $(Ks, { config: t, slotPropValue: e });
3374
+ function Js(e, t) {
3375
+ return x(Gs, { config: t, slotPropValue: e });
3386
3376
  }
3387
- function Xs(e, t) {
3388
- return (e ?? []).map((n) => $(qs, { config: n, sid: t }));
3389
- }
3390
- function Zs(e, t, n) {
3377
+ function Ys(e, t, n) {
3391
3378
  const r = [], { dir: o = [] } = t;
3392
3379
  return o.forEach((s) => {
3393
3380
  const { sys: i, name: a, arg: l, value: d, mf: c } = s;
@@ -3399,44 +3386,44 @@ function Zs(e, t, n) {
3399
3386
  }
3400
3387
  }), i === 1) {
3401
3388
  const f = c ? Object.fromEntries(c.map((h) => [h, !0])) : {};
3402
- r.push([qn, u.value, void 0, f]);
3389
+ r.push([Qn, u.value, void 0, f]);
3403
3390
  } else
3404
3391
  e = Je(e, {
3405
3392
  [l]: u.value
3406
3393
  });
3407
3394
  } else if (a === "vshow") {
3408
3395
  const u = n.getVueRefObject(d);
3409
- r.push([Qn, u.value]);
3396
+ r.push([Jn, u.value]);
3410
3397
  } else
3411
3398
  console.warn(`Directive ${a} is not supported yet`);
3412
- }), Jn(e, r);
3399
+ }), Yn(e, r);
3413
3400
  }
3414
- function ei(e, t, n) {
3401
+ function Xs(e, t, n) {
3415
3402
  const { eRef: r } = t;
3416
3403
  return r ? Je(e, { ref: n.getVueRefObject(r) }) : e;
3417
3404
  }
3418
- const ti = D(ni, {
3405
+ const Zs = j(ei, {
3419
3406
  props: ["config"]
3420
3407
  });
3421
- function ni(e) {
3422
- const { config: t } = e, n = oe({
3423
- sidCollector: new ri(t).getCollectInfo()
3408
+ function ei(e) {
3409
+ const { config: t } = e, n = ne({
3410
+ sidCollector: new ti(t).getCollectInfo()
3424
3411
  }), r = t.props ?? {};
3425
3412
  return Ie(r, !0), () => {
3426
- const { tag: o } = t, s = typeof o == "string" ? o : n.getValue(o), i = Yn(s), a = Bs(t, n), { styles: l, hasStyle: d } = Ls(t, n), c = Ts(t.events ?? {}, n), u = Js(t), f = Us(t, r, n), h = Xn({
3427
- ...f,
3428
- ...c
3413
+ const { tag: o } = t, s = typeof o == "string" ? o : n.getValue(o), i = Xn(s), a = typeof i == "string", l = Fs(t, n), { styles: d, hasStyle: c } = Bs(t, n), u = Ds(t.events ?? {}, n), f = Qs(t, a), h = Hs(t, r, n), m = Zn({
3414
+ ...h,
3415
+ ...u
3429
3416
  }) || {};
3430
- d && (h.style = l), a && (h.class = a);
3431
- let g = $(i, { ...h }, u);
3432
- return g = ei(g, t, n), Zs(g, t, n);
3417
+ c && (m.style = d), l && (m.class = l);
3418
+ let g = x(i, { ...m }, f);
3419
+ return g = Xs(g, t, n), Ys(g, t, n);
3433
3420
  };
3434
3421
  }
3435
- class ri {
3422
+ class ti {
3436
3423
  constructor(t) {
3437
- x(this, "sids", /* @__PURE__ */ new Set());
3438
- x(this, "needRouteParams", !0);
3439
- x(this, "needRouter", !0);
3424
+ $(this, "sids", /* @__PURE__ */ new Set());
3425
+ $(this, "needRouteParams", !0);
3426
+ $(this, "needRouter", !0);
3440
3427
  this.config = t;
3441
3428
  }
3442
3429
  /**
@@ -3473,7 +3460,7 @@ class ri {
3473
3460
  };
3474
3461
  }
3475
3462
  _tryExtractSidToCollection(t) {
3476
- nn(t) && this.sids.add(t.sid);
3463
+ rn(t) && this.sids.add(t.sid);
3477
3464
  }
3478
3465
  _handleEventInputs(t) {
3479
3466
  t.forEach((n) => {
@@ -3504,7 +3491,7 @@ class ri {
3504
3491
  if (n.type === "js" || n.type === "web") {
3505
3492
  const { sets: r } = n;
3506
3493
  r == null || r.forEach((o) => {
3507
- ht(o.ref) && (this.sids.add(o.ref.sid), this._extendWithPaths(o.ref));
3494
+ pt(o.ref) && (this.sids.add(o.ref.sid), this._extendWithPaths(o.ref));
3508
3495
  });
3509
3496
  }
3510
3497
  });
@@ -3517,28 +3504,28 @@ class ri {
3517
3504
  const r = n.pop();
3518
3505
  if (r === void 0)
3519
3506
  break;
3520
- if (dr(r)) {
3521
- const o = hr(r);
3507
+ if (hr(r)) {
3508
+ const o = pr(r);
3522
3509
  this._tryExtractSidToCollection(o), o.path && n.push(...o.path);
3523
3510
  }
3524
3511
  }
3525
3512
  }
3526
3513
  }
3527
- function ne(e, t) {
3528
- return wr(e) ? $(An, { config: e, key: t }) : Er(e) ? $($n, { config: e, key: t }) : _r(e) ? $(xn, { config: e, key: t }) : $(ti, { config: e, key: t });
3514
+ function ue(e, t) {
3515
+ return _r(e) ? x($n, { config: e, key: t }) : Er(e) ? x(xn, { config: e, key: t }) : br(e) ? x(Tn, { config: e, key: t }) : x(Zs, { config: e, key: t });
3529
3516
  }
3530
- function oi(e, t) {
3531
- return $(Tn, { slotConfig: e, key: t });
3517
+ function ft(e, t) {
3518
+ return x(Dn, { slotConfig: e, key: t });
3532
3519
  }
3533
- const Tn = D(si, {
3520
+ const Dn = j(ni, {
3534
3521
  props: ["slotConfig"]
3535
3522
  });
3536
- function si(e) {
3523
+ function ni(e) {
3537
3524
  const { sid: t, items: n } = e.slotConfig;
3538
- return fe(t) && re(t), () => n.map((r) => ne(r));
3525
+ return Re(t) && le(t), () => n.map((r) => ue(r));
3539
3526
  }
3540
- function ii(e, t) {
3541
- const { state: n, isReady: r, isLoading: o } = ur(async () => {
3527
+ function ri(e, t) {
3528
+ const { state: n, isReady: r, isLoading: o } = lr(async () => {
3542
3529
  let s = e;
3543
3530
  const i = t;
3544
3531
  if (!s && !i)
@@ -3549,24 +3536,24 @@ function ii(e, t) {
3549
3536
  }, {});
3550
3537
  return { config: n, isReady: r, isLoading: o };
3551
3538
  }
3552
- function ai(e) {
3539
+ function oi(e) {
3553
3540
  const t = Q(!1), n = Q("");
3554
3541
  function r(o, s) {
3555
3542
  let i;
3556
3543
  return s.component ? i = `Error captured from component:tag: ${s.component.tag} ; id: ${s.component.id} ` : i = "Error captured from app init", console.group(i), console.error("Component:", s.component), console.error("Error:", o), console.groupEnd(), e && (t.value = !0, n.value = `${i} ${o.message}`), !1;
3557
3544
  }
3558
- return Zn(r), { hasError: t, errorMessage: n };
3545
+ return er(r), { hasError: t, errorMessage: n };
3559
3546
  }
3560
- const ci = {
3547
+ const si = {
3561
3548
  class: "app-box insta-themes",
3562
3549
  "data-scaling": "100%"
3563
- }, ui = {
3550
+ }, ii = {
3564
3551
  key: 0,
3565
3552
  style: { position: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }
3566
- }, li = {
3553
+ }, ai = {
3567
3554
  key: 0,
3568
3555
  style: { color: "red", "font-size": "1.2em", margin: "1rem", border: "1px dashed red", padding: "1rem" }
3569
- }, fi = /* @__PURE__ */ D({
3556
+ }, ci = /* @__PURE__ */ j({
3570
3557
  __name: "App",
3571
3558
  props: {
3572
3559
  config: {},
@@ -3574,63 +3561,63 @@ const ci = {
3574
3561
  configUrl: {}
3575
3562
  },
3576
3563
  setup(e) {
3577
- const t = e, { debug: n = !1 } = t.meta, { config: r, isLoading: o } = ii(
3564
+ const t = e, { debug: n = !1 } = t.meta, { config: r, isLoading: o } = ri(
3578
3565
  t.config,
3579
3566
  t.configUrl
3580
3567
  );
3581
3568
  G(r, (a) => {
3582
- a.url && (sr({
3569
+ a.url && (ir({
3583
3570
  mode: t.meta.mode,
3584
3571
  version: t.meta.version,
3585
3572
  queryPath: a.url.path,
3586
3573
  pathParams: a.url.params,
3587
3574
  webServerInfo: a.webInfo
3588
- }), Or(t.meta.mode)), ir(a);
3575
+ }), kr(t.meta.mode)), ar(a);
3589
3576
  });
3590
- const { hasError: s, errorMessage: i } = ai(n);
3591
- return (a, l) => (me(), ve("div", ci, [
3592
- W(o) ? (me(), ve("div", ui, l[0] || (l[0] = [
3593
- er("p", { style: { margin: "auto" } }, "Loading ...", -1)
3594
- ]))) : (me(), ve("div", {
3577
+ const { hasError: s, errorMessage: i } = oi(n);
3578
+ return (a, l) => (ge(), me("div", si, [
3579
+ W(o) ? (ge(), me("div", ii, l[0] || (l[0] = [
3580
+ tr("p", { style: { margin: "auto" } }, "Loading ...", -1)
3581
+ ]))) : (ge(), me("div", {
3595
3582
  key: 1,
3596
3583
  class: Ne(["insta-main", W(r).class])
3597
3584
  }, [
3598
- tr(W(Tn), { "slot-config": W(r) }, null, 8, ["slot-config"]),
3599
- W(s) ? (me(), ve("div", li, Ae(W(i)), 1)) : nr("", !0)
3585
+ nr(W(Dn), { "slot-config": W(r) }, null, 8, ["slot-config"]),
3586
+ W(s) ? (ge(), me("div", ai, Ae(W(i)), 1)) : rr("", !0)
3600
3587
  ], 2))
3601
3588
  ]));
3602
3589
  }
3603
3590
  });
3604
- function di(e, { slots: t }) {
3591
+ function ui(e, { slots: t }) {
3605
3592
  const { name: n = "fade", tag: r } = e;
3606
- return () => $(
3607
- Qt,
3593
+ return () => x(
3594
+ Jt,
3608
3595
  { name: n, tag: r },
3609
3596
  {
3610
3597
  default: t.default
3611
3598
  }
3612
3599
  );
3613
3600
  }
3614
- const hi = D(di, {
3601
+ const li = j(ui, {
3615
3602
  props: ["name", "tag"]
3616
3603
  });
3617
- function pi(e) {
3618
- const { content: t, r: n = 0 } = e, r = oe(), o = n === 1 ? () => r.getValue(t) : () => t;
3604
+ function fi(e) {
3605
+ const { content: t, r: n = 0 } = e, r = ne(), o = n === 1 ? () => r.getValue(t) : () => t;
3619
3606
  return () => Ae(o());
3620
3607
  }
3621
- const gi = D(pi, {
3608
+ const di = j(fi, {
3622
3609
  props: ["content", "r"]
3623
3610
  });
3624
- function mi(e) {
3611
+ function hi(e) {
3625
3612
  return `i-size-${e}`;
3626
3613
  }
3627
- function vi(e) {
3614
+ function pi(e) {
3628
3615
  return e ? `i-weight-${e}` : "";
3629
3616
  }
3630
- function yi(e) {
3617
+ function gi(e) {
3631
3618
  return e ? `i-text-align-${e}` : "";
3632
3619
  }
3633
- const wi = /* @__PURE__ */ D({
3620
+ const mi = /* @__PURE__ */ j({
3634
3621
  __name: "Heading",
3635
3622
  props: {
3636
3623
  text: {},
@@ -3640,31 +3627,31 @@ const wi = /* @__PURE__ */ D({
3640
3627
  },
3641
3628
  setup(e) {
3642
3629
  const t = e, n = L(() => [
3643
- mi(t.size ?? "6"),
3644
- vi(t.weight),
3645
- yi(t.align)
3630
+ hi(t.size ?? "6"),
3631
+ pi(t.weight),
3632
+ gi(t.align)
3646
3633
  ]);
3647
- return (r, o) => (me(), ve("h1", {
3634
+ return (r, o) => (ge(), me("h1", {
3648
3635
  class: Ne(["insta-Heading", n.value])
3649
3636
  }, Ae(r.text), 3));
3650
3637
  }
3651
3638
  });
3652
- function Ei(e) {
3639
+ function vi(e) {
3653
3640
  if (!e.router)
3654
3641
  throw new Error("Router config is not provided.");
3655
3642
  const { routes: t, kAlive: n = !1 } = e.router;
3656
3643
  return t.map(
3657
- (o) => Dn(o, n)
3644
+ (o) => jn(o, n)
3658
3645
  );
3659
3646
  }
3660
- function Dn(e, t) {
3647
+ function jn(e, t) {
3661
3648
  var a;
3662
3649
  const { server: n = !1, vueItem: r } = e, o = () => {
3663
3650
  if (n)
3664
3651
  throw new Error("Server-side rendering is not supported yet.");
3665
- return Promise.resolve(_i(e, t));
3652
+ return Promise.resolve(yi(e, t));
3666
3653
  }, s = (a = r.children) == null ? void 0 : a.map(
3667
- (l) => Dn(l, t)
3654
+ (l) => jn(l, t)
3668
3655
  ), i = {
3669
3656
  ...r,
3670
3657
  children: s,
@@ -3672,30 +3659,30 @@ function Dn(e, t) {
3672
3659
  };
3673
3660
  return r.component.length === 0 && delete i.component, s === void 0 && delete i.children, i;
3674
3661
  }
3675
- function _i(e, t) {
3676
- const { sid: n, vueItem: r } = e, { path: o, component: s } = r, i = oi(
3662
+ function yi(e, t) {
3663
+ const { sid: n, vueItem: r } = e, { path: o, component: s } = r, i = ft(
3677
3664
  {
3678
3665
  items: s,
3679
3666
  sid: n
3680
3667
  },
3681
3668
  o
3682
- ), a = $(rr, null, i);
3683
- return t ? $(or, null, () => i) : a;
3669
+ ), a = x(or, null, i);
3670
+ return t ? x(sr, null, () => i) : a;
3684
3671
  }
3685
- function bi(e, t) {
3686
- const { mode: n = "hash" } = t.router, r = n === "hash" ? Oo() : n === "memory" ? So() : En();
3672
+ function wi(e, t) {
3673
+ const { mode: n = "hash" } = t.router, r = n === "hash" ? ko() : n === "memory" ? Oo() : En();
3687
3674
  e.use(
3688
- ms({
3675
+ vs({
3689
3676
  history: r,
3690
- routes: Ei(t)
3677
+ routes: vi(t)
3691
3678
  })
3692
3679
  );
3693
3680
  }
3694
- function Si(e, t) {
3695
- e.component("insta-ui", fi), e.component("vif", $n), e.component("vfor", An), e.component("match", xn), e.component("ts-group", hi), e.component("content", gi), e.component("heading", wi), t.router && bi(e, t);
3681
+ function bi(e, t) {
3682
+ e.component("insta-ui", ci), e.component("vif", xn), e.component("vfor", $n), e.component("match", Tn), e.component("ts-group", li), e.component("content", di), e.component("heading", mi), t.router && wi(e, t);
3696
3683
  }
3697
3684
  export {
3698
3685
  Ie as convertDynamicProperties,
3699
- Si as install
3686
+ bi as install
3700
3687
  };
3701
3688
  //# sourceMappingURL=insta-ui.js.map