instaui 0.1.17__py2.py3-none-any.whl → 0.1.19__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,24 +1,24 @@
1
- var Wn = Object.defineProperty;
2
- var Un = (e, t, n) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var B = (e, t, n) => Un(e, typeof t != "symbol" ? t + "" : t, n);
4
- import * as Kn from "vue";
5
- import { toRaw as Gn, customRef as Ce, toValue as q, unref as W, watch as G, nextTick as Te, isRef as Ht, ref as Z, shallowRef as J, watchEffect as zt, computed as U, readonly as qn, provide as Ie, inject as ee, shallowReactive as Hn, defineComponent as F, reactive as zn, h as A, getCurrentInstance as Jt, normalizeStyle as Jn, normalizeClass as Ye, toDisplayString as Qt, onUnmounted as xe, Fragment as De, vModelDynamic as Qn, vShow as Yn, resolveDynamicComponent as ft, normalizeProps as Xn, withDirectives as Zn, onErrorCaptured as er, openBlock as he, createElementBlock as Ve, createElementVNode as tr, createVNode as nr, withCtx as rr, renderList as or, createBlock as sr, TransitionGroup as Yt, KeepAlive as ir } from "vue";
6
- let Xt;
7
- function ar(e) {
8
- Xt = e;
9
- }
10
- function Xe() {
11
- return Xt;
12
- }
13
- function ye() {
14
- const { queryPath: e, pathParams: t, queryParams: n } = Xe();
1
+ var Gn = Object.defineProperty;
2
+ var qn = (e, t, n) => t in e ? Gn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var B = (e, t, n) => qn(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import * as Hn from "vue";
5
+ import { toRaw as zn, customRef as Ce, toValue as q, unref as L, watch as G, nextTick as Te, isRef as zt, ref as Z, shallowRef as J, watchEffect as Jt, computed as K, readonly as Jn, provide as Ie, inject as ee, shallowReactive as Qn, defineComponent as F, reactive as Yn, h as A, getCurrentInstance as Qt, normalizeStyle as Xn, normalizeClass as Xe, toDisplayString as Yt, onUnmounted as xe, Fragment as De, vModelDynamic as Zn, vShow as er, resolveDynamicComponent as dt, normalizeProps as tr, withDirectives as nr, onErrorCaptured as rr, openBlock as he, createElementBlock as Ve, createElementVNode as or, createVNode as sr, withCtx as ir, renderList as ar, createBlock as cr, TransitionGroup as Xt, KeepAlive as ur } from "vue";
6
+ let Zt;
7
+ function lr(e) {
8
+ Zt = e;
9
+ }
10
+ function Ze() {
11
+ return Zt;
12
+ }
13
+ function we() {
14
+ const { queryPath: e, pathParams: t, queryParams: n } = Ze();
15
15
  return {
16
16
  path: e,
17
17
  ...t === void 0 ? {} : { params: t },
18
18
  ...n === void 0 ? {} : { queryParams: n }
19
19
  };
20
20
  }
21
- class cr extends Map {
21
+ class fr extends Map {
22
22
  constructor(t) {
23
23
  super(), this.factory = t;
24
24
  }
@@ -30,18 +30,18 @@ class cr extends Map {
30
30
  return super.get(t);
31
31
  }
32
32
  }
33
- function _e(e) {
34
- return new cr(e);
33
+ function Se(e) {
34
+ return new fr(e);
35
35
  }
36
- function bt(e, t) {
36
+ function Ot(e, t) {
37
37
  Object.entries(e).forEach(([n, r]) => t(r, n));
38
38
  }
39
- function Oe(e, t) {
40
- return Zt(e, {
39
+ function Me(e, t) {
40
+ return en(e, {
41
41
  valueFn: t
42
42
  });
43
43
  }
44
- function Zt(e, t) {
44
+ function en(e, t) {
45
45
  const { valueFn: n, keyFn: r } = t;
46
46
  return Object.fromEntries(
47
47
  Object.entries(e).map(([o, s], i) => [
@@ -50,7 +50,7 @@ function Zt(e, t) {
50
50
  ])
51
51
  );
52
52
  }
53
- function en(e, t, n) {
53
+ function tn(e, t, n) {
54
54
  if (Array.isArray(t)) {
55
55
  const [o, ...s] = t;
56
56
  switch (o) {
@@ -62,10 +62,10 @@ function en(e, t, n) {
62
62
  return s[0] + e;
63
63
  }
64
64
  }
65
- const r = tn(t, n);
65
+ const r = nn(t, n);
66
66
  return e[r];
67
67
  }
68
- function tn(e, t) {
68
+ function nn(e, t) {
69
69
  if (typeof e == "string" || typeof e == "number")
70
70
  return e;
71
71
  if (!Array.isArray(e))
@@ -82,31 +82,31 @@ function tn(e, t) {
82
82
  }
83
83
  function be(e, t, n) {
84
84
  return t.reduce(
85
- (r, o) => en(r, o, n),
85
+ (r, o) => tn(r, o, n),
86
86
  e
87
87
  );
88
88
  }
89
- function Ze(e, t, n, r) {
89
+ function et(e, t, n, r) {
90
90
  t.reduce((o, s, i) => {
91
91
  if (i === t.length - 1)
92
- o[tn(s, r)] = n;
92
+ o[nn(s, r)] = n;
93
93
  else
94
- return en(o, s, r);
94
+ return tn(o, s, r);
95
95
  }, e);
96
96
  }
97
- function nn(e) {
97
+ function rn(e) {
98
98
  return JSON.parse(JSON.stringify(e));
99
99
  }
100
- class ur {
100
+ class dr {
101
101
  toString() {
102
102
  return "";
103
103
  }
104
104
  }
105
- const we = new ur();
106
- function Ee(e) {
107
- return Gn(e) === we;
105
+ const Ee = new dr();
106
+ function _e(e) {
107
+ return zn(e) === Ee;
108
108
  }
109
- function St(e, t, n) {
109
+ function Rt(e, t, n) {
110
110
  const { paths: r, getBindableValueFn: o } = t, { paths: s, getBindableValueFn: i } = t;
111
111
  return r === void 0 || r.length === 0 ? e : Ce(() => ({
112
112
  get() {
@@ -120,11 +120,11 @@ function St(e, t, n) {
120
120
  return;
121
121
  }
122
122
  },
123
- set(c) {
124
- Ze(
123
+ set(u) {
124
+ et(
125
125
  q(e),
126
126
  s || r,
127
- c,
127
+ u,
128
128
  i
129
129
  );
130
130
  }
@@ -136,183 +136,183 @@ function ht(e) {
136
136
  return t(), e;
137
137
  },
138
138
  set(r) {
139
- !Ee(e) && JSON.stringify(r) === JSON.stringify(e) || (e = r, n());
139
+ !_e(e) && JSON.stringify(r) === JSON.stringify(e) || (e = r, n());
140
140
  }
141
141
  }));
142
142
  }
143
- function de(e) {
144
- return typeof e == "function" ? e() : W(e);
143
+ function pe(e) {
144
+ return typeof e == "function" ? e() : L(e);
145
145
  }
146
146
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
147
- const et = () => {
147
+ const tt = () => {
148
148
  };
149
- function tt(e, t = !1, n = "Timeout") {
149
+ function nt(e, t = !1, n = "Timeout") {
150
150
  return new Promise((r, o) => {
151
151
  setTimeout(t ? () => o(n) : r, e);
152
152
  });
153
153
  }
154
- function nt(e, t = !1) {
155
- function n(u, { flush: f = "sync", deep: d = !1, timeout: v, throwOnTimeout: p } = {}) {
154
+ function rt(e, t = !1) {
155
+ function n(a, { flush: f = "sync", deep: h = !1, timeout: v, throwOnTimeout: p } = {}) {
156
156
  let g = null;
157
- const _ = [new Promise((O) => {
157
+ const _ = [new Promise((b) => {
158
158
  g = G(
159
159
  e,
160
- (R) => {
161
- u(R) !== t && (g ? g() : Te(() => g == null ? void 0 : g()), O(R));
160
+ (P) => {
161
+ a(P) !== t && (g ? g() : Te(() => g == null ? void 0 : g()), b(P));
162
162
  },
163
163
  {
164
164
  flush: f,
165
- deep: d,
165
+ deep: h,
166
166
  immediate: !0
167
167
  }
168
168
  );
169
169
  })];
170
170
  return v != null && _.push(
171
- tt(v, p).then(() => de(e)).finally(() => g == null ? void 0 : g())
171
+ nt(v, p).then(() => pe(e)).finally(() => g == null ? void 0 : g())
172
172
  ), Promise.race(_);
173
173
  }
174
- function r(u, f) {
175
- if (!Ht(u))
176
- return n((R) => R === u, f);
177
- const { flush: d = "sync", deep: v = !1, timeout: p, throwOnTimeout: g } = f ?? {};
174
+ function r(a, f) {
175
+ if (!zt(a))
176
+ return n((P) => P === a, f);
177
+ const { flush: h = "sync", deep: v = !1, timeout: p, throwOnTimeout: g } = f ?? {};
178
178
  let y = null;
179
- const O = [new Promise((R) => {
179
+ const b = [new Promise((P) => {
180
180
  y = G(
181
- [e, u],
182
- ([D, C]) => {
183
- t !== (D === C) && (y ? y() : Te(() => y == null ? void 0 : y()), R(D));
181
+ [e, a],
182
+ ([j, x]) => {
183
+ t !== (j === x) && (y ? y() : Te(() => y == null ? void 0 : y()), P(j));
184
184
  },
185
185
  {
186
- flush: d,
186
+ flush: h,
187
187
  deep: v,
188
188
  immediate: !0
189
189
  }
190
190
  );
191
191
  })];
192
- return p != null && O.push(
193
- tt(p, g).then(() => de(e)).finally(() => (y == null || y(), de(e)))
194
- ), Promise.race(O);
192
+ return p != null && b.push(
193
+ nt(p, g).then(() => pe(e)).finally(() => (y == null || y(), pe(e)))
194
+ ), Promise.race(b);
195
195
  }
196
- function o(u) {
197
- return n((f) => !!f, u);
196
+ function o(a) {
197
+ return n((f) => !!f, a);
198
198
  }
199
- function s(u) {
200
- return r(null, u);
199
+ function s(a) {
200
+ return r(null, a);
201
201
  }
202
- function i(u) {
203
- return r(void 0, u);
202
+ function i(a) {
203
+ return r(void 0, a);
204
204
  }
205
- function c(u) {
206
- return n(Number.isNaN, u);
205
+ function u(a) {
206
+ return n(Number.isNaN, a);
207
207
  }
208
- function l(u, f) {
209
- return n((d) => {
210
- const v = Array.from(d);
211
- return v.includes(u) || v.includes(de(u));
208
+ function l(a, f) {
209
+ return n((h) => {
210
+ const v = Array.from(h);
211
+ return v.includes(a) || v.includes(pe(a));
212
212
  }, f);
213
213
  }
214
- function h(u) {
215
- return a(1, u);
214
+ function d(a) {
215
+ return c(1, a);
216
216
  }
217
- function a(u = 1, f) {
218
- let d = -1;
219
- return n(() => (d += 1, d >= u), f);
217
+ function c(a = 1, f) {
218
+ let h = -1;
219
+ return n(() => (h += 1, h >= a), f);
220
220
  }
221
- return Array.isArray(de(e)) ? {
221
+ return Array.isArray(pe(e)) ? {
222
222
  toMatch: n,
223
223
  toContains: l,
224
- changed: h,
225
- changedTimes: a,
224
+ changed: d,
225
+ changedTimes: c,
226
226
  get not() {
227
- return nt(e, !t);
227
+ return rt(e, !t);
228
228
  }
229
229
  } : {
230
230
  toMatch: n,
231
231
  toBe: r,
232
232
  toBeTruthy: o,
233
233
  toBeNull: s,
234
- toBeNaN: c,
234
+ toBeNaN: u,
235
235
  toBeUndefined: i,
236
- changed: h,
237
- changedTimes: a,
236
+ changed: d,
237
+ changedTimes: c,
238
238
  get not() {
239
- return nt(e, !t);
239
+ return rt(e, !t);
240
240
  }
241
241
  };
242
242
  }
243
- function lr(e) {
244
- return nt(e);
243
+ function hr(e) {
244
+ return rt(e);
245
245
  }
246
- function fr(e, t, n) {
246
+ function pr(e, t, n) {
247
247
  let r;
248
- Ht(n) ? r = {
248
+ zt(n) ? r = {
249
249
  evaluating: n
250
250
  } : r = n || {};
251
251
  const {
252
252
  lazy: o = !1,
253
253
  evaluating: s = void 0,
254
254
  shallow: i = !0,
255
- onError: c = et
256
- } = r, l = Z(!o), h = i ? J(t) : Z(t);
257
- let a = 0;
258
- return zt(async (u) => {
255
+ onError: u = tt
256
+ } = r, l = Z(!o), d = i ? J(t) : Z(t);
257
+ let c = 0;
258
+ return Jt(async (a) => {
259
259
  if (!l.value)
260
260
  return;
261
- a++;
262
- const f = a;
263
- let d = !1;
261
+ c++;
262
+ const f = c;
263
+ let h = !1;
264
264
  s && Promise.resolve().then(() => {
265
265
  s.value = !0;
266
266
  });
267
267
  try {
268
268
  const v = await e((p) => {
269
- u(() => {
270
- s && (s.value = !1), d || p();
269
+ a(() => {
270
+ s && (s.value = !1), h || p();
271
271
  });
272
272
  });
273
- f === a && (h.value = v);
273
+ f === c && (d.value = v);
274
274
  } catch (v) {
275
- c(v);
275
+ u(v);
276
276
  } finally {
277
- s && f === a && (s.value = !1), d = !0;
277
+ s && f === c && (s.value = !1), h = !0;
278
278
  }
279
- }), o ? U(() => (l.value = !0, h.value)) : h;
279
+ }), o ? K(() => (l.value = !0, d.value)) : d;
280
280
  }
281
- function hr(e, t, n) {
281
+ function mr(e, t, n) {
282
282
  const {
283
283
  immediate: r = !0,
284
284
  delay: o = 0,
285
- onError: s = et,
286
- onSuccess: i = et,
287
- resetOnExecute: c = !0,
285
+ onError: s = tt,
286
+ onSuccess: i = tt,
287
+ resetOnExecute: u = !0,
288
288
  shallow: l = !0,
289
- throwError: h
290
- } = {}, a = l ? J(t) : Z(t), u = Z(!1), f = Z(!1), d = J(void 0);
289
+ throwError: d
290
+ } = {}, c = l ? J(t) : Z(t), a = Z(!1), f = Z(!1), h = J(void 0);
291
291
  async function v(y = 0, ..._) {
292
- c && (a.value = t), d.value = void 0, u.value = !1, f.value = !0, y > 0 && await tt(y);
293
- const O = typeof e == "function" ? e(..._) : e;
292
+ u && (c.value = t), h.value = void 0, a.value = !1, f.value = !0, y > 0 && await nt(y);
293
+ const b = typeof e == "function" ? e(..._) : e;
294
294
  try {
295
- const R = await O;
296
- a.value = R, u.value = !0, i(R);
297
- } catch (R) {
298
- if (d.value = R, s(R), h)
299
- throw R;
295
+ const P = await b;
296
+ c.value = P, a.value = !0, i(P);
297
+ } catch (P) {
298
+ if (h.value = P, s(P), d)
299
+ throw P;
300
300
  } finally {
301
301
  f.value = !1;
302
302
  }
303
- return a.value;
303
+ return c.value;
304
304
  }
305
305
  r && v(o);
306
306
  const p = {
307
- state: a,
308
- isReady: u,
307
+ state: c,
308
+ isReady: a,
309
309
  isLoading: f,
310
- error: d,
310
+ error: h,
311
311
  execute: v
312
312
  };
313
313
  function g() {
314
314
  return new Promise((y, _) => {
315
- lr(f).toBe(!1).then(() => y(p)).catch(_);
315
+ hr(f).toBe(!1).then(() => y(p)).catch(_);
316
316
  });
317
317
  }
318
318
  return {
@@ -322,129 +322,129 @@ function hr(e, t, n) {
322
322
  }
323
323
  };
324
324
  }
325
- function L(e, t) {
325
+ function W(e, t) {
326
326
  t = t || {};
327
- const n = [...Object.keys(t), "__Vue"], r = [...Object.values(t), Kn];
327
+ const n = [...Object.keys(t), "__Vue"], r = [...Object.values(t), Hn];
328
328
  try {
329
329
  return new Function(...n, `return (${e})`)(...r);
330
330
  } catch (o) {
331
331
  throw new Error(o + " in function code: " + e);
332
332
  }
333
333
  }
334
- function dr(e) {
334
+ function gr(e) {
335
335
  if (e.startsWith(":")) {
336
336
  e = e.slice(1);
337
337
  try {
338
- return L(e);
338
+ return W(e);
339
339
  } catch (t) {
340
340
  throw new Error(t + " in function code: " + e);
341
341
  }
342
342
  }
343
343
  }
344
- function rn(e) {
344
+ function on(e) {
345
345
  return e.constructor.name === "AsyncFunction";
346
346
  }
347
- function pr(e, t) {
347
+ function vr(e, t) {
348
348
  const { deepCompare: n = !1 } = e;
349
349
  return n ? ht(e.value) : Z(e.value);
350
350
  }
351
- function mr(e, t, n) {
352
- const { bind: r = {}, code: o, const: s = [] } = e, i = Object.values(r).map((a, u) => s[u] === 1 ? a : t.getVueRefObjectOrValue(a));
353
- if (rn(new Function(o)))
354
- return fr(
351
+ function yr(e, t, n) {
352
+ const { bind: r = {}, code: o, const: s = [] } = e, i = Object.values(r).map((c, a) => s[a] === 1 ? c : t.getVueRefObjectOrValue(c));
353
+ if (on(new Function(o)))
354
+ return pr(
355
355
  async () => {
356
- const a = Object.fromEntries(
357
- Object.keys(r).map((u, f) => [u, i[f]])
356
+ const c = Object.fromEntries(
357
+ Object.keys(r).map((a, f) => [a, i[f]])
358
358
  );
359
- return await L(o, a)();
359
+ return await W(o, c)();
360
360
  },
361
361
  null,
362
362
  { lazy: !0 }
363
363
  );
364
- const c = Object.fromEntries(
365
- Object.keys(r).map((a, u) => [a, i[u]])
366
- ), l = L(o, c);
367
- return U(l);
364
+ const u = Object.fromEntries(
365
+ Object.keys(r).map((c, a) => [c, i[a]])
366
+ ), l = W(o, u);
367
+ return K(l);
368
368
  }
369
- function gr(e, t, n) {
369
+ function wr(e, t, n) {
370
370
  const {
371
371
  inputs: r = [],
372
372
  code: o,
373
373
  slient: s,
374
374
  data: i,
375
- asyncInit: c = null,
375
+ asyncInit: u = null,
376
376
  deepEqOnInput: l = 0
377
- } = e, h = s || Array(r.length).fill(0), a = i || Array(r.length).fill(0), u = r.filter((g, y) => h[y] === 0 && a[y] === 0).map((g) => t.getVueRefObject(g));
377
+ } = e, d = s || Array(r.length).fill(0), c = i || Array(r.length).fill(0), a = r.filter((g, y) => d[y] === 0 && c[y] === 0).map((g) => t.getVueRefObject(g));
378
378
  function f() {
379
379
  return r.map(
380
- (g, y) => a[y] === 1 ? g : t.getObjectToValue(g)
380
+ (g, y) => c[y] === 1 ? g : t.getObjectToValue(g)
381
381
  );
382
382
  }
383
- const d = L(o), v = l === 0 ? J(we) : ht(we), p = { immediate: !0, deep: !0 };
384
- return rn(d) ? (v.value = c, G(
385
- u,
383
+ const h = W(o), v = l === 0 ? J(Ee) : ht(Ee), p = { immediate: !0, deep: !0 };
384
+ return on(h) ? (v.value = u, G(
385
+ a,
386
386
  async () => {
387
- f().some(Ee) || (v.value = await d(...f()));
387
+ f().some(_e) || (v.value = await h(...f()));
388
388
  },
389
389
  p
390
390
  )) : G(
391
- u,
391
+ a,
392
392
  () => {
393
393
  const g = f();
394
- g.some(Ee) || (v.value = d(...g));
394
+ g.some(_e) || (v.value = h(...g));
395
395
  },
396
396
  p
397
- ), qn(v);
397
+ ), Jn(v);
398
398
  }
399
- function vr() {
399
+ function Er() {
400
400
  return [];
401
401
  }
402
- const Se = _e(vr);
403
- function on(e, t) {
404
- var s, i, c, l, h;
405
- const n = Se.getOrDefault(e.id), r = /* @__PURE__ */ new Map();
402
+ const Oe = Se(Er);
403
+ function sn(e, t) {
404
+ var s, i, u, l, d;
405
+ const n = Oe.getOrDefault(e.id), r = /* @__PURE__ */ new Map();
406
406
  n.push(r), t.replaceSnapshot({
407
- scopeSnapshot: sn()
407
+ scopeSnapshot: an()
408
408
  });
409
- const o = (a, u) => {
410
- r.set(a.id, u);
409
+ const o = (c, a) => {
410
+ r.set(c.id, a);
411
411
  };
412
- return (s = e.refs) == null || s.forEach((a) => {
413
- o(a, pr(a));
414
- }), (i = e.web_computed) == null || i.forEach((a) => {
415
- const { init: u } = a, f = a.deepEqOnInput === void 0 ? J(u ?? we) : ht(u ?? we);
416
- o(a, f);
417
- }), (c = e.vue_computed) == null || c.forEach((a) => {
412
+ return (s = e.refs) == null || s.forEach((c) => {
413
+ o(c, vr(c));
414
+ }), (i = e.web_computed) == null || i.forEach((c) => {
415
+ const { init: a } = c, f = c.deepEqOnInput === void 0 ? J(a ?? Ee) : ht(a ?? Ee);
416
+ o(c, f);
417
+ }), (u = e.vue_computed) == null || u.forEach((c) => {
418
418
  o(
419
- a,
420
- mr(a, t)
419
+ c,
420
+ yr(c, t)
421
421
  );
422
- }), (l = e.js_computed) == null || l.forEach((a) => {
422
+ }), (l = e.js_computed) == null || l.forEach((c) => {
423
423
  o(
424
- a,
425
- gr(a, t)
424
+ c,
425
+ wr(c, t)
426
426
  );
427
- }), (h = e.data) == null || h.forEach((a) => {
428
- o(a, a.value);
427
+ }), (d = e.data) == null || d.forEach((c) => {
428
+ o(c, c.value);
429
429
  }), n.length - 1;
430
430
  }
431
- function sn() {
431
+ function an() {
432
432
  const e = /* @__PURE__ */ new Map();
433
- for (const [n, r] of Se) {
433
+ for (const [n, r] of Oe) {
434
434
  const o = r[r.length - 1];
435
435
  e.set(n, [o]);
436
436
  }
437
437
  function t(n) {
438
- return an(n, e);
438
+ return cn(n, e);
439
439
  }
440
440
  return {
441
441
  getVueRef: t
442
442
  };
443
443
  }
444
- function yr(e) {
445
- return an(e, Se);
444
+ function _r(e) {
445
+ return cn(e, Oe);
446
446
  }
447
- function an(e, t) {
447
+ function cn(e, t) {
448
448
  const n = t.get(e.sid);
449
449
  if (!n)
450
450
  throw new Error(`Scope ${e.sid} not found`);
@@ -453,29 +453,29 @@ function an(e, t) {
453
453
  throw new Error(`Var ${e.id} not found in scope ${e.sid}`);
454
454
  return o;
455
455
  }
456
- function wr(e) {
457
- Se.delete(e);
456
+ function Sr(e) {
457
+ Oe.delete(e);
458
458
  }
459
- function cn(e, t) {
460
- const n = Se.get(e);
459
+ function un(e, t) {
460
+ const n = Oe.get(e);
461
461
  n && n.splice(t, 1);
462
462
  }
463
- const dt = _e(() => []);
464
- function Er(e) {
463
+ const pt = Se(() => []);
464
+ function br(e) {
465
465
  var r;
466
- const t = /* @__PURE__ */ new Map(), n = dt.getOrDefault(e.id).push(t);
466
+ const t = /* @__PURE__ */ new Map(), n = pt.getOrDefault(e.id).push(t);
467
467
  return (r = e.eRefs) == null || r.forEach((o) => {
468
468
  const s = J();
469
469
  t.set(o.id, s);
470
470
  }), n;
471
471
  }
472
- function _r(e, t) {
473
- const n = dt.get(e);
472
+ function Or(e, t) {
473
+ const n = pt.get(e);
474
474
  n && n.splice(t, 1);
475
475
  }
476
- function un() {
476
+ function ln() {
477
477
  const e = new Map(
478
- Array.from(dt.entries()).map(([n, r]) => [
478
+ Array.from(pt.entries()).map(([n, r]) => [
479
479
  n,
480
480
  r[r.length - 1]
481
481
  ])
@@ -489,65 +489,61 @@ function un() {
489
489
  }
490
490
  var N;
491
491
  ((e) => {
492
- function t(f) {
493
- return f.type === "var";
492
+ function t(a) {
493
+ return a.type === "var";
494
494
  }
495
495
  e.isVar = t;
496
- function n(f) {
497
- return f.type === "routePar";
496
+ function n(a) {
497
+ return a.type === "routePar";
498
498
  }
499
499
  e.isRouterParams = n;
500
- function r(f) {
501
- return f.type === "routeAct";
500
+ function r(a) {
501
+ return a.type === "routeAct";
502
502
  }
503
503
  e.isRouterAction = r;
504
- function o(f) {
505
- return f.type === "js";
504
+ function o(a) {
505
+ return a.type === "jsFn";
506
506
  }
507
- e.isJs = o;
508
- function s(f) {
509
- return f.type === "jsOutput";
507
+ e.isJsFn = o;
508
+ function s(a) {
509
+ return a.type === "vf";
510
510
  }
511
- e.isJsOutput = s;
512
- function i(f) {
513
- return f.type === "vf";
511
+ e.isVForItem = s;
512
+ function i(a) {
513
+ return a.type === "vf-i";
514
514
  }
515
- e.isVForItem = i;
516
- function c(f) {
517
- return f.type === "vf-i";
515
+ e.isVForIndex = i;
516
+ function u(a) {
517
+ return a.type === "sp";
518
518
  }
519
- e.isVForIndex = c;
520
- function l(f) {
521
- return f.type === "sp";
519
+ e.isSlotProp = u;
520
+ function l(a) {
521
+ return a.type === "event";
522
522
  }
523
- e.isSlotProp = l;
524
- function h(f) {
525
- return f.type === "event";
523
+ e.isEventContext = l;
524
+ function d(a) {
525
+ return a.type === "ele_ref";
526
526
  }
527
- e.isEventContext = h;
528
- function a(f) {
529
- return f.type === "ele_ref";
527
+ e.isElementRef = d;
528
+ function c(a) {
529
+ return a.type !== void 0;
530
530
  }
531
- e.isElementRef = a;
532
- function u(f) {
533
- return f.type !== void 0;
534
- }
535
- e.IsBinding = u;
531
+ e.IsBinding = c;
536
532
  })(N || (N = {}));
537
- const Me = _e(() => []);
538
- function Or(e) {
539
- const t = Me.getOrDefault(e);
533
+ const Fe = Se(() => []);
534
+ function Rr(e) {
535
+ const t = Fe.getOrDefault(e);
540
536
  return t.push(J({})), t.length - 1;
541
537
  }
542
- function br(e, t, n) {
543
- Me.get(e)[t].value = n;
538
+ function Pr(e, t, n) {
539
+ Fe.get(e)[t].value = n;
544
540
  }
545
- function Sr(e) {
546
- Me.delete(e);
541
+ function kr(e) {
542
+ Fe.delete(e);
547
543
  }
548
- function Rr() {
544
+ function Vr() {
549
545
  const e = /* @__PURE__ */ new Map();
550
- for (const [n, r] of Me) {
546
+ for (const [n, r] of Fe) {
551
547
  const o = r[r.length - 1];
552
548
  e.set(n, o);
553
549
  }
@@ -558,45 +554,45 @@ function Rr() {
558
554
  getPropsValue: t
559
555
  };
560
556
  }
561
- const ln = /* @__PURE__ */ new Map(), pt = _e(() => /* @__PURE__ */ new Map()), fn = /* @__PURE__ */ new Set(), hn = Symbol("vfor");
562
- function Pr(e) {
563
- const t = dn() ?? {};
557
+ const fn = /* @__PURE__ */ new Map(), mt = Se(() => /* @__PURE__ */ new Map()), dn = /* @__PURE__ */ new Set(), hn = Symbol("vfor");
558
+ function Nr(e) {
559
+ const t = pn() ?? {};
564
560
  Ie(hn, { ...t, [e.fid]: e.key });
565
561
  }
566
- function dn() {
562
+ function pn() {
567
563
  return ee(hn, void 0);
568
564
  }
569
- function kr() {
570
- const e = dn(), t = /* @__PURE__ */ new Map();
565
+ function Ir() {
566
+ const e = pn(), t = /* @__PURE__ */ new Map();
571
567
  return e === void 0 || Object.keys(e).forEach((n) => {
572
568
  t.set(n, e[n]);
573
569
  }), t;
574
570
  }
575
- function Vr(e, t, n, r) {
571
+ function Tr(e, t, n, r) {
576
572
  if (r) {
577
- fn.add(e);
573
+ dn.add(e);
578
574
  return;
579
575
  }
580
576
  let o;
581
577
  if (n)
582
- o = new Cr(t);
578
+ o = new Mr(t);
583
579
  else {
584
- const s = Array.isArray(t) ? t : Object.entries(t).map(([i, c], l) => [c, i, l]);
585
- o = new jr(s);
580
+ const s = Array.isArray(t) ? t : Object.entries(t).map(([i, u], l) => [u, i, l]);
581
+ o = new Dr(s);
586
582
  }
587
- ln.set(e, o);
583
+ fn.set(e, o);
588
584
  }
589
- function Nr(e, t, n) {
590
- const r = pt.getOrDefault(e);
585
+ function Ar(e, t, n) {
586
+ const r = mt.getOrDefault(e);
591
587
  r.has(t) || r.set(t, Z(n)), r.get(t).value = n;
592
588
  }
593
- function Ir(e) {
589
+ function $r(e) {
594
590
  const t = /* @__PURE__ */ new Set();
595
591
  function n(o) {
596
592
  t.add(o);
597
593
  }
598
594
  function r() {
599
- const o = pt.get(e);
595
+ const o = mt.get(e);
600
596
  o !== void 0 && o.forEach((s, i) => {
601
597
  t.has(i) || o.delete(i);
602
598
  });
@@ -606,23 +602,23 @@ function Ir(e) {
606
602
  removeUnusedKeys: r
607
603
  };
608
604
  }
609
- function Tr(e) {
610
- const t = e, n = kr();
605
+ function jr(e) {
606
+ const t = e, n = Ir();
611
607
  function r(o) {
612
608
  const s = n.get(o) ?? t;
613
- return pt.get(o).get(s).value;
609
+ return mt.get(o).get(s).value;
614
610
  }
615
611
  return {
616
612
  getVForIndex: r
617
613
  };
618
614
  }
619
- function Ar(e) {
620
- return ln.get(e.binding.fid).createRefObjectWithPaths(e);
615
+ function Cr(e) {
616
+ return fn.get(e.binding.fid).createRefObjectWithPaths(e);
621
617
  }
622
- function $r(e) {
623
- return fn.has(e);
618
+ function xr(e) {
619
+ return dn.has(e);
624
620
  }
625
- class jr {
621
+ class Dr {
626
622
  constructor(t) {
627
623
  this.array = t;
628
624
  }
@@ -640,7 +636,7 @@ class jr {
640
636
  }));
641
637
  }
642
638
  }
643
- class Cr {
639
+ class Mr {
644
640
  constructor(t) {
645
641
  B(this, "_isDictSource");
646
642
  this.binding = t;
@@ -653,17 +649,17 @@ class Cr {
653
649
  return this._isDictSource;
654
650
  }
655
651
  createRefObjectWithPaths(t) {
656
- const { binding: n } = t, { path: r = [] } = n, o = [...r], { snapshot: s } = t, i = s.getVueRefObject(this.binding), c = this.isDictSource(i), l = s.getVForIndex(n.fid), h = c && o.length === 0 ? [0] : [];
657
- return o.unshift(l, ...h), Ce(() => ({
652
+ const { binding: n } = t, { path: r = [] } = n, o = [...r], { snapshot: s } = t, i = s.getVueRefObject(this.binding), u = this.isDictSource(i), l = s.getVForIndex(n.fid), d = u && o.length === 0 ? [0] : [];
653
+ return o.unshift(l, ...d), Ce(() => ({
658
654
  get: () => {
659
- const a = q(i), u = c ? Object.entries(a).map(([f, d], v) => [
660
- d,
655
+ const c = q(i), a = u ? Object.entries(c).map(([f, h], v) => [
656
+ h,
661
657
  f,
662
658
  v
663
- ]) : a;
659
+ ]) : c;
664
660
  try {
665
661
  return be(
666
- q(u),
662
+ q(a),
667
663
  o,
668
664
  s.getObjectToValue
669
665
  );
@@ -671,66 +667,63 @@ class Cr {
671
667
  return;
672
668
  }
673
669
  },
674
- set: (a) => {
675
- const u = q(i);
676
- if (c) {
677
- const f = Object.keys(u);
670
+ set: (c) => {
671
+ const a = q(i);
672
+ if (u) {
673
+ const f = Object.keys(a);
678
674
  if (l >= f.length)
679
675
  throw new Error("Cannot set value to a non-existent key");
680
- const d = f[l];
681
- Ze(
682
- u,
683
- [d],
676
+ const h = f[l];
677
+ et(
684
678
  a,
679
+ [h],
680
+ c,
685
681
  s.getObjectToValue
686
682
  );
687
683
  return;
688
684
  }
689
- Ze(
690
- u,
691
- o,
685
+ et(
692
686
  a,
687
+ o,
688
+ c,
693
689
  s.getObjectToValue
694
690
  );
695
691
  }
696
692
  }));
697
693
  }
698
694
  }
699
- function xr(e, t, n = !1) {
700
- return n && (e = `$computed(${e})`, t = { ...t, $computed: U }), L(e, t);
701
- }
702
- function Rt(e) {
695
+ function Pt(e) {
703
696
  return e == null;
704
697
  }
705
- function Dr() {
706
- return pn().__VUE_DEVTOOLS_GLOBAL_HOOK__;
698
+ function Fr() {
699
+ return mn().__VUE_DEVTOOLS_GLOBAL_HOOK__;
707
700
  }
708
- function pn() {
701
+ function mn() {
709
702
  return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
710
703
  }
711
- const Mr = typeof Proxy == "function", Fr = "devtools-plugin:setup", Br = "plugin:settings:set";
712
- let ie, rt;
713
- function Lr() {
704
+ const Br = typeof Proxy == "function", Lr = "devtools-plugin:setup", Wr = "plugin:settings:set";
705
+ let ie, ot;
706
+ function Ur() {
714
707
  var e;
715
- return ie !== void 0 || (typeof window < "u" && window.performance ? (ie = !0, rt = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (ie = !0, rt = globalThis.perf_hooks.performance) : ie = !1), ie;
708
+ 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;
716
709
  }
717
- function Wr() {
718
- return Lr() ? rt.now() : Date.now();
710
+ function Kr() {
711
+ return Ur() ? ot.now() : Date.now();
719
712
  }
720
- class Ur {
713
+ class Gr {
721
714
  constructor(t, n) {
722
715
  this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
723
716
  const r = {};
724
717
  if (t.settings)
725
718
  for (const i in t.settings) {
726
- const c = t.settings[i];
727
- r[i] = c.defaultValue;
719
+ const u = t.settings[i];
720
+ r[i] = u.defaultValue;
728
721
  }
729
722
  const o = `__vue-devtools-plugin-settings__${t.id}`;
730
723
  let s = Object.assign({}, r);
731
724
  try {
732
- const i = localStorage.getItem(o), c = JSON.parse(i);
733
- Object.assign(s, c);
725
+ const i = localStorage.getItem(o), u = JSON.parse(i);
726
+ Object.assign(s, u);
734
727
  } catch {
735
728
  }
736
729
  this.fallbacks = {
@@ -745,28 +738,28 @@ class Ur {
745
738
  s = i;
746
739
  },
747
740
  now() {
748
- return Wr();
741
+ return Kr();
749
742
  }
750
- }, n && n.on(Br, (i, c) => {
751
- i === this.plugin.id && this.fallbacks.setSettings(c);
743
+ }, n && n.on(Wr, (i, u) => {
744
+ i === this.plugin.id && this.fallbacks.setSettings(u);
752
745
  }), this.proxiedOn = new Proxy({}, {
753
- get: (i, c) => this.target ? this.target.on[c] : (...l) => {
746
+ get: (i, u) => this.target ? this.target.on[u] : (...l) => {
754
747
  this.onQueue.push({
755
- method: c,
748
+ method: u,
756
749
  args: l
757
750
  });
758
751
  }
759
752
  }), this.proxiedTarget = new Proxy({}, {
760
- get: (i, c) => this.target ? this.target[c] : c === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(c) ? (...l) => (this.targetQueue.push({
761
- method: c,
753
+ get: (i, u) => this.target ? this.target[u] : u === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(u) ? (...l) => (this.targetQueue.push({
754
+ method: u,
762
755
  args: l,
763
756
  resolve: () => {
764
757
  }
765
- }), this.fallbacks[c](...l)) : (...l) => new Promise((h) => {
758
+ }), this.fallbacks[u](...l)) : (...l) => new Promise((d) => {
766
759
  this.targetQueue.push({
767
- method: c,
760
+ method: u,
768
761
  args: l,
769
- resolve: h
762
+ resolve: d
770
763
  });
771
764
  })
772
765
  });
@@ -779,12 +772,12 @@ class Ur {
779
772
  n.resolve(await this.target[n.method](...n.args));
780
773
  }
781
774
  }
782
- function Kr(e, t) {
783
- const n = e, r = pn(), o = Dr(), s = Mr && n.enableEarlyProxy;
775
+ function qr(e, t) {
776
+ const n = e, r = mn(), o = Fr(), s = Br && n.enableEarlyProxy;
784
777
  if (o && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
785
- o.emit(Fr, e, t);
778
+ o.emit(Lr, e, t);
786
779
  else {
787
- const i = s ? new Ur(n, o) : null;
780
+ const i = s ? new Gr(n, o) : null;
788
781
  (r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
789
782
  pluginDescriptor: n,
790
783
  setupFn: t,
@@ -792,111 +785,111 @@ function Kr(e, t) {
792
785
  }), i && t(i.proxiedTarget);
793
786
  }
794
787
  }
795
- var S = {};
788
+ var O = {};
796
789
  const z = typeof document < "u";
797
- function mn(e) {
790
+ function gn(e) {
798
791
  return typeof e == "object" || "displayName" in e || "props" in e || "__vccOpts" in e;
799
792
  }
800
- function Gr(e) {
793
+ function Hr(e) {
801
794
  return e.__esModule || e[Symbol.toStringTag] === "Module" || // support CF with dynamic imports that do not
802
795
  // add the Module string tag
803
- e.default && mn(e.default);
796
+ e.default && gn(e.default);
804
797
  }
805
798
  const I = Object.assign;
806
- function He(e, t) {
799
+ function ze(e, t) {
807
800
  const n = {};
808
801
  for (const r in t) {
809
802
  const o = t[r];
810
- n[r] = K(o) ? o.map(e) : e(o);
803
+ n[r] = U(o) ? o.map(e) : e(o);
811
804
  }
812
805
  return n;
813
806
  }
814
- const ve = () => {
815
- }, K = Array.isArray;
816
- function P(e) {
807
+ const ye = () => {
808
+ }, U = Array.isArray;
809
+ function R(e) {
817
810
  const t = Array.from(arguments).slice(1);
818
811
  console.warn.apply(console, ["[Vue Router warn]: " + e].concat(t));
819
812
  }
820
- const gn = /#/g, qr = /&/g, Hr = /\//g, zr = /=/g, Jr = /\?/g, vn = /\+/g, Qr = /%5B/g, Yr = /%5D/g, yn = /%5E/g, Xr = /%60/g, wn = /%7B/g, Zr = /%7C/g, En = /%7D/g, eo = /%20/g;
821
- function mt(e) {
822
- return encodeURI("" + e).replace(Zr, "|").replace(Qr, "[").replace(Yr, "]");
813
+ const vn = /#/g, zr = /&/g, Jr = /\//g, Qr = /=/g, Yr = /\?/g, yn = /\+/g, Xr = /%5B/g, Zr = /%5D/g, wn = /%5E/g, eo = /%60/g, En = /%7B/g, to = /%7C/g, _n = /%7D/g, no = /%20/g;
814
+ function gt(e) {
815
+ return encodeURI("" + e).replace(to, "|").replace(Xr, "[").replace(Zr, "]");
823
816
  }
824
- function to(e) {
825
- return mt(e).replace(wn, "{").replace(En, "}").replace(yn, "^");
817
+ function ro(e) {
818
+ return gt(e).replace(En, "{").replace(_n, "}").replace(wn, "^");
826
819
  }
827
- function ot(e) {
828
- return mt(e).replace(vn, "%2B").replace(eo, "+").replace(gn, "%23").replace(qr, "%26").replace(Xr, "`").replace(wn, "{").replace(En, "}").replace(yn, "^");
820
+ function st(e) {
821
+ return gt(e).replace(yn, "%2B").replace(no, "+").replace(vn, "%23").replace(zr, "%26").replace(eo, "`").replace(En, "{").replace(_n, "}").replace(wn, "^");
829
822
  }
830
- function no(e) {
831
- return ot(e).replace(zr, "%3D");
823
+ function oo(e) {
824
+ return st(e).replace(Qr, "%3D");
832
825
  }
833
- function ro(e) {
834
- return mt(e).replace(gn, "%23").replace(Jr, "%3F");
826
+ function so(e) {
827
+ return gt(e).replace(vn, "%23").replace(Yr, "%3F");
835
828
  }
836
- function oo(e) {
837
- return e == null ? "" : ro(e).replace(Hr, "%2F");
829
+ function io(e) {
830
+ return e == null ? "" : so(e).replace(Jr, "%2F");
838
831
  }
839
832
  function ae(e) {
840
833
  try {
841
834
  return decodeURIComponent("" + e);
842
835
  } catch {
843
- S.NODE_ENV !== "production" && P(`Error decoding "${e}". Using original value`);
836
+ O.NODE_ENV !== "production" && R(`Error decoding "${e}". Using original value`);
844
837
  }
845
838
  return "" + e;
846
839
  }
847
- const so = /\/$/, io = (e) => e.replace(so, "");
848
- function ze(e, t, n = "/") {
840
+ const ao = /\/$/, co = (e) => e.replace(ao, "");
841
+ function Je(e, t, n = "/") {
849
842
  let r, o = {}, s = "", i = "";
850
- const c = t.indexOf("#");
843
+ const u = t.indexOf("#");
851
844
  let l = t.indexOf("?");
852
- return c < l && c >= 0 && (l = -1), l > -1 && (r = t.slice(0, l), s = t.slice(l + 1, c > -1 ? c : t.length), o = e(s)), c > -1 && (r = r || t.slice(0, c), i = t.slice(c, t.length)), r = uo(r ?? t, n), {
845
+ return u < l && u >= 0 && (l = -1), l > -1 && (r = t.slice(0, l), s = t.slice(l + 1, u > -1 ? u : t.length), o = e(s)), u > -1 && (r = r || t.slice(0, u), i = t.slice(u, t.length)), r = fo(r ?? t, n), {
853
846
  fullPath: r + (s && "?") + s + i,
854
847
  path: r,
855
848
  query: o,
856
849
  hash: ae(i)
857
850
  };
858
851
  }
859
- function ao(e, t) {
852
+ function uo(e, t) {
860
853
  const n = t.query ? e(t.query) : "";
861
854
  return t.path + (n && "?") + n + (t.hash || "");
862
855
  }
863
- function Pt(e, t) {
856
+ function kt(e, t) {
864
857
  return !t || !e.toLowerCase().startsWith(t.toLowerCase()) ? e : e.slice(t.length) || "/";
865
858
  }
866
- function kt(e, t, n) {
859
+ function Vt(e, t, n) {
867
860
  const r = t.matched.length - 1, o = n.matched.length - 1;
868
- return r > -1 && r === o && te(t.matched[r], n.matched[o]) && _n(t.params, n.params) && e(t.query) === e(n.query) && t.hash === n.hash;
861
+ return r > -1 && r === o && te(t.matched[r], n.matched[o]) && Sn(t.params, n.params) && e(t.query) === e(n.query) && t.hash === n.hash;
869
862
  }
870
863
  function te(e, t) {
871
864
  return (e.aliasOf || e) === (t.aliasOf || t);
872
865
  }
873
- function _n(e, t) {
866
+ function Sn(e, t) {
874
867
  if (Object.keys(e).length !== Object.keys(t).length)
875
868
  return !1;
876
869
  for (const n in e)
877
- if (!co(e[n], t[n]))
870
+ if (!lo(e[n], t[n]))
878
871
  return !1;
879
872
  return !0;
880
873
  }
881
- function co(e, t) {
882
- return K(e) ? Vt(e, t) : K(t) ? Vt(t, e) : e === t;
874
+ function lo(e, t) {
875
+ return U(e) ? Nt(e, t) : U(t) ? Nt(t, e) : e === t;
883
876
  }
884
- function Vt(e, t) {
885
- return K(t) ? e.length === t.length && e.every((n, r) => n === t[r]) : e.length === 1 && e[0] === t;
877
+ function Nt(e, t) {
878
+ return U(t) ? e.length === t.length && e.every((n, r) => n === t[r]) : e.length === 1 && e[0] === t;
886
879
  }
887
- function uo(e, t) {
880
+ function fo(e, t) {
888
881
  if (e.startsWith("/"))
889
882
  return e;
890
- if (S.NODE_ENV !== "production" && !t.startsWith("/"))
891
- return P(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`), e;
883
+ if (O.NODE_ENV !== "production" && !t.startsWith("/"))
884
+ return R(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`), e;
892
885
  if (!e)
893
886
  return t;
894
887
  const n = t.split("/"), r = e.split("/"), o = r[r.length - 1];
895
888
  (o === ".." || o === ".") && r.push("");
896
- let s = n.length - 1, i, c;
889
+ let s = n.length - 1, i, u;
897
890
  for (i = 0; i < r.length; i++)
898
- if (c = r[i], c !== ".")
899
- if (c === "..")
891
+ if (u = r[i], u !== ".")
892
+ if (u === "..")
900
893
  s > 1 && s--;
901
894
  else
902
895
  break;
@@ -922,21 +915,21 @@ var oe;
922
915
  (function(e) {
923
916
  e.back = "back", e.forward = "forward", e.unknown = "";
924
917
  })(oe || (oe = {}));
925
- const Je = "";
926
- function On(e) {
918
+ const Qe = "";
919
+ function bn(e) {
927
920
  if (!e)
928
921
  if (z) {
929
922
  const t = document.querySelector("base");
930
923
  e = t && t.getAttribute("href") || "/", e = e.replace(/^\w+:\/\/[^\/]+/, "");
931
924
  } else
932
925
  e = "/";
933
- return e[0] !== "/" && e[0] !== "#" && (e = "/" + e), io(e);
926
+ return e[0] !== "/" && e[0] !== "#" && (e = "/" + e), co(e);
934
927
  }
935
- const lo = /^[^#]+#/;
936
- function bn(e, t) {
937
- return e.replace(lo, "#") + t;
928
+ const ho = /^[^#]+#/;
929
+ function On(e, t) {
930
+ return e.replace(ho, "#") + t;
938
931
  }
939
- function fo(e, t) {
932
+ function po(e, t) {
940
933
  const n = document.documentElement.getBoundingClientRect(), r = e.getBoundingClientRect();
941
934
  return {
942
935
  behavior: t.behavior,
@@ -944,68 +937,68 @@ function fo(e, t) {
944
937
  top: r.top - n.top - (t.top || 0)
945
938
  };
946
939
  }
947
- const Fe = () => ({
940
+ const Be = () => ({
948
941
  left: window.scrollX,
949
942
  top: window.scrollY
950
943
  });
951
- function ho(e) {
944
+ function mo(e) {
952
945
  let t;
953
946
  if ("el" in e) {
954
947
  const n = e.el, r = typeof n == "string" && n.startsWith("#");
955
- if (S.NODE_ENV !== "production" && typeof e.el == "string" && (!r || !document.getElementById(e.el.slice(1))))
948
+ if (O.NODE_ENV !== "production" && typeof e.el == "string" && (!r || !document.getElementById(e.el.slice(1))))
956
949
  try {
957
950
  const s = document.querySelector(e.el);
958
951
  if (r && s) {
959
- P(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);
952
+ R(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);
960
953
  return;
961
954
  }
962
955
  } catch {
963
- P(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);
956
+ R(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);
964
957
  return;
965
958
  }
966
959
  const o = typeof n == "string" ? r ? document.getElementById(n.slice(1)) : document.querySelector(n) : n;
967
960
  if (!o) {
968
- S.NODE_ENV !== "production" && P(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);
961
+ O.NODE_ENV !== "production" && R(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);
969
962
  return;
970
963
  }
971
- t = fo(o, e);
964
+ t = po(o, e);
972
965
  } else
973
966
  t = e;
974
967
  "scrollBehavior" in document.documentElement.style ? window.scrollTo(t) : window.scrollTo(t.left != null ? t.left : window.scrollX, t.top != null ? t.top : window.scrollY);
975
968
  }
976
- function Nt(e, t) {
969
+ function It(e, t) {
977
970
  return (history.state ? history.state.position - t : -1) + e;
978
971
  }
979
- const st = /* @__PURE__ */ new Map();
980
- function po(e, t) {
981
- st.set(e, t);
972
+ const it = /* @__PURE__ */ new Map();
973
+ function go(e, t) {
974
+ it.set(e, t);
982
975
  }
983
- function mo(e) {
984
- const t = st.get(e);
985
- return st.delete(e), t;
976
+ function vo(e) {
977
+ const t = it.get(e);
978
+ return it.delete(e), t;
986
979
  }
987
- let go = () => location.protocol + "//" + location.host;
988
- function Sn(e, t) {
980
+ let yo = () => location.protocol + "//" + location.host;
981
+ function Rn(e, t) {
989
982
  const { pathname: n, search: r, hash: o } = t, s = e.indexOf("#");
990
983
  if (s > -1) {
991
- let c = o.includes(e.slice(s)) ? e.slice(s).length : 1, l = o.slice(c);
992
- return l[0] !== "/" && (l = "/" + l), Pt(l, "");
984
+ let u = o.includes(e.slice(s)) ? e.slice(s).length : 1, l = o.slice(u);
985
+ return l[0] !== "/" && (l = "/" + l), kt(l, "");
993
986
  }
994
- return Pt(n, e) + r + o;
987
+ return kt(n, e) + r + o;
995
988
  }
996
- function vo(e, t, n, r) {
989
+ function wo(e, t, n, r) {
997
990
  let o = [], s = [], i = null;
998
- const c = ({ state: f }) => {
999
- const d = Sn(e, location), v = n.value, p = t.value;
991
+ const u = ({ state: f }) => {
992
+ const h = Rn(e, location), v = n.value, p = t.value;
1000
993
  let g = 0;
1001
994
  if (f) {
1002
- if (n.value = d, t.value = f, i && i === v) {
995
+ if (n.value = h, t.value = f, i && i === v) {
1003
996
  i = null;
1004
997
  return;
1005
998
  }
1006
999
  g = p ? f.position - p.position : 0;
1007
1000
  } else
1008
- r(d);
1001
+ r(h);
1009
1002
  o.forEach((y) => {
1010
1003
  y(n.value, v, {
1011
1004
  delta: g,
@@ -1017,44 +1010,44 @@ function vo(e, t, n, r) {
1017
1010
  function l() {
1018
1011
  i = n.value;
1019
1012
  }
1020
- function h(f) {
1013
+ function d(f) {
1021
1014
  o.push(f);
1022
- const d = () => {
1015
+ const h = () => {
1023
1016
  const v = o.indexOf(f);
1024
1017
  v > -1 && o.splice(v, 1);
1025
1018
  };
1026
- return s.push(d), d;
1019
+ return s.push(h), h;
1027
1020
  }
1028
- function a() {
1021
+ function c() {
1029
1022
  const { history: f } = window;
1030
- f.state && f.replaceState(I({}, f.state, { scroll: Fe() }), "");
1023
+ f.state && f.replaceState(I({}, f.state, { scroll: Be() }), "");
1031
1024
  }
1032
- function u() {
1025
+ function a() {
1033
1026
  for (const f of s)
1034
1027
  f();
1035
- s = [], window.removeEventListener("popstate", c), window.removeEventListener("beforeunload", a);
1028
+ s = [], window.removeEventListener("popstate", u), window.removeEventListener("beforeunload", c);
1036
1029
  }
1037
- return window.addEventListener("popstate", c), window.addEventListener("beforeunload", a, {
1030
+ return window.addEventListener("popstate", u), window.addEventListener("beforeunload", c, {
1038
1031
  passive: !0
1039
1032
  }), {
1040
1033
  pauseListeners: l,
1041
- listen: h,
1042
- destroy: u
1034
+ listen: d,
1035
+ destroy: a
1043
1036
  };
1044
1037
  }
1045
- function It(e, t, n, r = !1, o = !1) {
1038
+ function Tt(e, t, n, r = !1, o = !1) {
1046
1039
  return {
1047
1040
  back: e,
1048
1041
  current: t,
1049
1042
  forward: n,
1050
1043
  replaced: r,
1051
1044
  position: window.history.length,
1052
- scroll: o ? Fe() : null
1045
+ scroll: o ? Be() : null
1053
1046
  };
1054
1047
  }
1055
- function yo(e) {
1048
+ function Eo(e) {
1056
1049
  const { history: t, location: n } = window, r = {
1057
- value: Sn(e, n)
1050
+ value: Rn(e, n)
1058
1051
  }, o = { value: t.state };
1059
1052
  o.value || s(r.value, {
1060
1053
  back: null,
@@ -1067,26 +1060,26 @@ function yo(e) {
1067
1060
  // scrollBehavior to be triggered without a saved position
1068
1061
  scroll: null
1069
1062
  }, !0);
1070
- function s(l, h, a) {
1071
- const u = e.indexOf("#"), f = u > -1 ? (n.host && document.querySelector("base") ? e : e.slice(u)) + l : go() + e + l;
1063
+ function s(l, d, c) {
1064
+ const a = e.indexOf("#"), f = a > -1 ? (n.host && document.querySelector("base") ? e : e.slice(a)) + l : yo() + e + l;
1072
1065
  try {
1073
- t[a ? "replaceState" : "pushState"](h, "", f), o.value = h;
1074
- } catch (d) {
1075
- S.NODE_ENV !== "production" ? P("Error with push/replace State", d) : console.error(d), n[a ? "replace" : "assign"](f);
1066
+ t[c ? "replaceState" : "pushState"](d, "", f), o.value = d;
1067
+ } catch (h) {
1068
+ O.NODE_ENV !== "production" ? R("Error with push/replace State", h) : console.error(h), n[c ? "replace" : "assign"](f);
1076
1069
  }
1077
1070
  }
1078
- function i(l, h) {
1079
- const a = I({}, t.state, It(
1071
+ function i(l, d) {
1072
+ const c = I({}, t.state, Tt(
1080
1073
  o.value.back,
1081
1074
  // keep back and forward entries but override current position
1082
1075
  l,
1083
1076
  o.value.forward,
1084
1077
  !0
1085
- ), h, { position: o.value.position });
1086
- s(l, a, !0), r.value = l;
1078
+ ), d, { position: o.value.position });
1079
+ s(l, c, !0), r.value = l;
1087
1080
  }
1088
- function c(l, h) {
1089
- const a = I(
1081
+ function u(l, d) {
1082
+ const c = I(
1090
1083
  {},
1091
1084
  // use current history state to gracefully handle a wrong call to
1092
1085
  // history.replaceState
@@ -1095,27 +1088,27 @@ function yo(e) {
1095
1088
  t.state,
1096
1089
  {
1097
1090
  forward: l,
1098
- scroll: Fe()
1091
+ scroll: Be()
1099
1092
  }
1100
1093
  );
1101
- S.NODE_ENV !== "production" && !t.state && P(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
1094
+ O.NODE_ENV !== "production" && !t.state && R(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
1102
1095
 
1103
1096
  history.replaceState(history.state, '', url)
1104
1097
 
1105
- You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`), s(a.current, a, !0);
1106
- const u = I({}, It(r.value, l, null), { position: a.position + 1 }, h);
1107
- s(l, u, !1), r.value = l;
1098
+ You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`), s(c.current, c, !0);
1099
+ const a = I({}, Tt(r.value, l, null), { position: c.position + 1 }, d);
1100
+ s(l, a, !1), r.value = l;
1108
1101
  }
1109
1102
  return {
1110
1103
  location: r,
1111
1104
  state: o,
1112
- push: c,
1105
+ push: u,
1113
1106
  replace: i
1114
1107
  };
1115
1108
  }
1116
- function Rn(e) {
1117
- e = On(e);
1118
- const t = yo(e), n = vo(e, t.state, t.location, t.replace);
1109
+ function Pn(e) {
1110
+ e = bn(e);
1111
+ const t = Eo(e), n = wo(e, t.state, t.location, t.replace);
1119
1112
  function r(s, i = !0) {
1120
1113
  i || n.pauseListeners(), history.go(s);
1121
1114
  }
@@ -1124,7 +1117,7 @@ function Rn(e) {
1124
1117
  location: "",
1125
1118
  base: e,
1126
1119
  go: r,
1127
- createHref: bn.bind(null, e)
1120
+ createHref: On.bind(null, e)
1128
1121
  }, t, n);
1129
1122
  return Object.defineProperty(o, "location", {
1130
1123
  enumerable: !0,
@@ -1134,53 +1127,53 @@ function Rn(e) {
1134
1127
  get: () => t.state.value
1135
1128
  }), o;
1136
1129
  }
1137
- function wo(e = "") {
1138
- let t = [], n = [Je], r = 0;
1139
- e = On(e);
1140
- function o(c) {
1141
- r++, r !== n.length && n.splice(r), n.push(c);
1130
+ function _o(e = "") {
1131
+ let t = [], n = [Qe], r = 0;
1132
+ e = bn(e);
1133
+ function o(u) {
1134
+ r++, r !== n.length && n.splice(r), n.push(u);
1142
1135
  }
1143
- function s(c, l, { direction: h, delta: a }) {
1144
- const u = {
1145
- direction: h,
1146
- delta: a,
1136
+ function s(u, l, { direction: d, delta: c }) {
1137
+ const a = {
1138
+ direction: d,
1139
+ delta: c,
1147
1140
  type: ce.pop
1148
1141
  };
1149
1142
  for (const f of t)
1150
- f(c, l, u);
1143
+ f(u, l, a);
1151
1144
  }
1152
1145
  const i = {
1153
1146
  // rewritten by Object.defineProperty
1154
- location: Je,
1147
+ location: Qe,
1155
1148
  // TODO: should be kept in queue
1156
1149
  state: {},
1157
1150
  base: e,
1158
- createHref: bn.bind(null, e),
1159
- replace(c) {
1160
- n.splice(r--, 1), o(c);
1151
+ createHref: On.bind(null, e),
1152
+ replace(u) {
1153
+ n.splice(r--, 1), o(u);
1161
1154
  },
1162
- push(c, l) {
1163
- o(c);
1155
+ push(u, l) {
1156
+ o(u);
1164
1157
  },
1165
- listen(c) {
1166
- return t.push(c), () => {
1167
- const l = t.indexOf(c);
1158
+ listen(u) {
1159
+ return t.push(u), () => {
1160
+ const l = t.indexOf(u);
1168
1161
  l > -1 && t.splice(l, 1);
1169
1162
  };
1170
1163
  },
1171
1164
  destroy() {
1172
- t = [], n = [Je], r = 0;
1165
+ t = [], n = [Qe], r = 0;
1173
1166
  },
1174
- go(c, l = !0) {
1175
- const h = this.location, a = (
1167
+ go(u, l = !0) {
1168
+ const d = this.location, c = (
1176
1169
  // we are considering delta === 0 going forward, but in abstract mode
1177
1170
  // using 0 for the delta doesn't make sense like it does in html5 where
1178
1171
  // it reloads the page
1179
- c < 0 ? oe.back : oe.forward
1172
+ u < 0 ? oe.back : oe.forward
1180
1173
  );
1181
- r = Math.max(0, Math.min(r + c, n.length - 1)), l && s(this.location, h, {
1182
- direction: a,
1183
- delta: c
1174
+ r = Math.max(0, Math.min(r + u, n.length - 1)), l && s(this.location, d, {
1175
+ direction: c,
1176
+ delta: u
1184
1177
  });
1185
1178
  }
1186
1179
  };
@@ -1189,22 +1182,22 @@ function wo(e = "") {
1189
1182
  get: () => n[r]
1190
1183
  }), i;
1191
1184
  }
1192
- function Eo(e) {
1193
- return e = location.host ? e || location.pathname + location.search : "", e.includes("#") || (e += "#"), S.NODE_ENV !== "production" && !e.endsWith("#/") && !e.endsWith("#") && P(`A hash base must end with a "#":
1194
- "${e}" should be "${e.replace(/#.*$/, "#")}".`), Rn(e);
1185
+ function So(e) {
1186
+ return e = location.host ? e || location.pathname + location.search : "", e.includes("#") || (e += "#"), O.NODE_ENV !== "production" && !e.endsWith("#/") && !e.endsWith("#") && R(`A hash base must end with a "#":
1187
+ "${e}" should be "${e.replace(/#.*$/, "#")}".`), Pn(e);
1195
1188
  }
1196
1189
  function Ae(e) {
1197
1190
  return typeof e == "string" || e && typeof e == "object";
1198
1191
  }
1199
- function Pn(e) {
1192
+ function kn(e) {
1200
1193
  return typeof e == "string" || typeof e == "symbol";
1201
1194
  }
1202
- const it = Symbol(S.NODE_ENV !== "production" ? "navigation failure" : "");
1203
- var Tt;
1195
+ const at = Symbol(O.NODE_ENV !== "production" ? "navigation failure" : "");
1196
+ var At;
1204
1197
  (function(e) {
1205
1198
  e[e.aborted = 4] = "aborted", e[e.cancelled = 8] = "cancelled", e[e.duplicated = 16] = "duplicated";
1206
- })(Tt || (Tt = {}));
1207
- const _o = {
1199
+ })(At || (At = {}));
1200
+ const bo = {
1208
1201
  1({ location: e, currentLocation: t }) {
1209
1202
  return `No match for
1210
1203
  ${JSON.stringify(e)}${t ? `
@@ -1212,7 +1205,7 @@ while being at
1212
1205
  ` + JSON.stringify(t) : ""}`;
1213
1206
  },
1214
1207
  2({ from: e, to: t }) {
1215
- return `Redirected from "${e.fullPath}" to "${bo(t)}" via a navigation guard.`;
1208
+ return `Redirected from "${e.fullPath}" to "${Ro(t)}" via a navigation guard.`;
1216
1209
  },
1217
1210
  4({ from: e, to: t }) {
1218
1211
  return `Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`;
@@ -1225,19 +1218,19 @@ while being at
1225
1218
  }
1226
1219
  };
1227
1220
  function ue(e, t) {
1228
- return S.NODE_ENV !== "production" ? I(new Error(_o[e](t)), {
1221
+ return O.NODE_ENV !== "production" ? I(new Error(bo[e](t)), {
1229
1222
  type: e,
1230
- [it]: !0
1223
+ [at]: !0
1231
1224
  }, t) : I(new Error(), {
1232
1225
  type: e,
1233
- [it]: !0
1226
+ [at]: !0
1234
1227
  }, t);
1235
1228
  }
1236
1229
  function H(e, t) {
1237
- return e instanceof Error && it in e && (t == null || !!(e.type & t));
1230
+ return e instanceof Error && at in e && (t == null || !!(e.type & t));
1238
1231
  }
1239
1232
  const Oo = ["params", "query", "hash"];
1240
- function bo(e) {
1233
+ function Ro(e) {
1241
1234
  if (typeof e == "string")
1242
1235
  return e;
1243
1236
  if (e.path != null)
@@ -1247,27 +1240,27 @@ function bo(e) {
1247
1240
  n in e && (t[n] = e[n]);
1248
1241
  return JSON.stringify(t, null, 2);
1249
1242
  }
1250
- const At = "[^/]+?", So = {
1243
+ const $t = "[^/]+?", Po = {
1251
1244
  sensitive: !1,
1252
1245
  strict: !1,
1253
1246
  start: !0,
1254
1247
  end: !0
1255
- }, Ro = /[.+*?^${}()[\]/\\]/g;
1256
- function Po(e, t) {
1257
- const n = I({}, So, t), r = [];
1248
+ }, ko = /[.+*?^${}()[\]/\\]/g;
1249
+ function Vo(e, t) {
1250
+ const n = I({}, Po, t), r = [];
1258
1251
  let o = n.start ? "^" : "";
1259
1252
  const s = [];
1260
- for (const h of e) {
1261
- const a = h.length ? [] : [
1253
+ for (const d of e) {
1254
+ const c = d.length ? [] : [
1262
1255
  90
1263
1256
  /* PathScore.Root */
1264
1257
  ];
1265
- n.strict && !h.length && (o += "/");
1266
- for (let u = 0; u < h.length; u++) {
1267
- const f = h[u];
1268
- let d = 40 + (n.sensitive ? 0.25 : 0);
1258
+ n.strict && !d.length && (o += "/");
1259
+ for (let a = 0; a < d.length; a++) {
1260
+ const f = d[a];
1261
+ let h = 40 + (n.sensitive ? 0.25 : 0);
1269
1262
  if (f.type === 0)
1270
- u || (o += "/"), o += f.value.replace(Ro, "\\$&"), d += 40;
1263
+ a || (o += "/"), o += f.value.replace(ko, "\\$&"), h += 40;
1271
1264
  else if (f.type === 1) {
1272
1265
  const { value: v, repeatable: p, optional: g, regexp: y } = f;
1273
1266
  s.push({
@@ -1275,71 +1268,71 @@ function Po(e, t) {
1275
1268
  repeatable: p,
1276
1269
  optional: g
1277
1270
  });
1278
- const _ = y || At;
1279
- if (_ !== At) {
1280
- d += 10;
1271
+ const _ = y || $t;
1272
+ if (_ !== $t) {
1273
+ h += 10;
1281
1274
  try {
1282
1275
  new RegExp(`(${_})`);
1283
- } catch (R) {
1284
- throw new Error(`Invalid custom RegExp for param "${v}" (${_}): ` + R.message);
1276
+ } catch (P) {
1277
+ throw new Error(`Invalid custom RegExp for param "${v}" (${_}): ` + P.message);
1285
1278
  }
1286
1279
  }
1287
- let O = p ? `((?:${_})(?:/(?:${_}))*)` : `(${_})`;
1288
- u || (O = // avoid an optional / if there are more segments e.g. /:p?-static
1280
+ let b = p ? `((?:${_})(?:/(?:${_}))*)` : `(${_})`;
1281
+ a || (b = // avoid an optional / if there are more segments e.g. /:p?-static
1289
1282
  // or /:p?-:p2
1290
- g && h.length < 2 ? `(?:/${O})` : "/" + O), g && (O += "?"), o += O, d += 20, g && (d += -8), p && (d += -20), _ === ".*" && (d += -50);
1283
+ g && d.length < 2 ? `(?:/${b})` : "/" + b), g && (b += "?"), o += b, h += 20, g && (h += -8), p && (h += -20), _ === ".*" && (h += -50);
1291
1284
  }
1292
- a.push(d);
1285
+ c.push(h);
1293
1286
  }
1294
- r.push(a);
1287
+ r.push(c);
1295
1288
  }
1296
1289
  if (n.strict && n.end) {
1297
- const h = r.length - 1;
1298
- r[h][r[h].length - 1] += 0.7000000000000001;
1290
+ const d = r.length - 1;
1291
+ r[d][r[d].length - 1] += 0.7000000000000001;
1299
1292
  }
1300
1293
  n.strict || (o += "/?"), n.end ? o += "$" : n.strict && !o.endsWith("/") && (o += "(?:/|$)");
1301
1294
  const i = new RegExp(o, n.sensitive ? "" : "i");
1302
- function c(h) {
1303
- const a = h.match(i), u = {};
1304
- if (!a)
1295
+ function u(d) {
1296
+ const c = d.match(i), a = {};
1297
+ if (!c)
1305
1298
  return null;
1306
- for (let f = 1; f < a.length; f++) {
1307
- const d = a[f] || "", v = s[f - 1];
1308
- u[v.name] = d && v.repeatable ? d.split("/") : d;
1299
+ for (let f = 1; f < c.length; f++) {
1300
+ const h = c[f] || "", v = s[f - 1];
1301
+ a[v.name] = h && v.repeatable ? h.split("/") : h;
1309
1302
  }
1310
- return u;
1303
+ return a;
1311
1304
  }
1312
- function l(h) {
1313
- let a = "", u = !1;
1305
+ function l(d) {
1306
+ let c = "", a = !1;
1314
1307
  for (const f of e) {
1315
- (!u || !a.endsWith("/")) && (a += "/"), u = !1;
1316
- for (const d of f)
1317
- if (d.type === 0)
1318
- a += d.value;
1319
- else if (d.type === 1) {
1320
- const { value: v, repeatable: p, optional: g } = d, y = v in h ? h[v] : "";
1321
- if (K(y) && !p)
1308
+ (!a || !c.endsWith("/")) && (c += "/"), a = !1;
1309
+ for (const h of f)
1310
+ if (h.type === 0)
1311
+ c += h.value;
1312
+ else if (h.type === 1) {
1313
+ const { value: v, repeatable: p, optional: g } = h, y = v in d ? d[v] : "";
1314
+ if (U(y) && !p)
1322
1315
  throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);
1323
- const _ = K(y) ? y.join("/") : y;
1316
+ const _ = U(y) ? y.join("/") : y;
1324
1317
  if (!_)
1325
1318
  if (g)
1326
- f.length < 2 && (a.endsWith("/") ? a = a.slice(0, -1) : u = !0);
1319
+ f.length < 2 && (c.endsWith("/") ? c = c.slice(0, -1) : a = !0);
1327
1320
  else
1328
1321
  throw new Error(`Missing required param "${v}"`);
1329
- a += _;
1322
+ c += _;
1330
1323
  }
1331
1324
  }
1332
- return a || "/";
1325
+ return c || "/";
1333
1326
  }
1334
1327
  return {
1335
1328
  re: i,
1336
1329
  score: r,
1337
1330
  keys: s,
1338
- parse: c,
1331
+ parse: u,
1339
1332
  stringify: l
1340
1333
  };
1341
1334
  }
1342
- function ko(e, t) {
1335
+ function No(e, t) {
1343
1336
  let n = 0;
1344
1337
  for (; n < e.length && n < t.length; ) {
1345
1338
  const r = t[n] - e[n];
@@ -1349,40 +1342,40 @@ function ko(e, t) {
1349
1342
  }
1350
1343
  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;
1351
1344
  }
1352
- function kn(e, t) {
1345
+ function Vn(e, t) {
1353
1346
  let n = 0;
1354
1347
  const r = e.score, o = t.score;
1355
1348
  for (; n < r.length && n < o.length; ) {
1356
- const s = ko(r[n], o[n]);
1349
+ const s = No(r[n], o[n]);
1357
1350
  if (s)
1358
1351
  return s;
1359
1352
  n++;
1360
1353
  }
1361
1354
  if (Math.abs(o.length - r.length) === 1) {
1362
- if ($t(r))
1355
+ if (jt(r))
1363
1356
  return 1;
1364
- if ($t(o))
1357
+ if (jt(o))
1365
1358
  return -1;
1366
1359
  }
1367
1360
  return o.length - r.length;
1368
1361
  }
1369
- function $t(e) {
1362
+ function jt(e) {
1370
1363
  const t = e[e.length - 1];
1371
1364
  return e.length > 0 && t[t.length - 1] < 0;
1372
1365
  }
1373
- const Vo = {
1366
+ const Io = {
1374
1367
  type: 0,
1375
1368
  value: ""
1376
- }, No = /[a-zA-Z0-9_]/;
1377
- function Io(e) {
1369
+ }, To = /[a-zA-Z0-9_]/;
1370
+ function Ao(e) {
1378
1371
  if (!e)
1379
1372
  return [[]];
1380
1373
  if (e === "/")
1381
- return [[Vo]];
1374
+ return [[Io]];
1382
1375
  if (!e.startsWith("/"))
1383
- throw new Error(S.NODE_ENV !== "production" ? `Route paths should start with a "/": "${e}" should be "/${e}".` : `Invalid path "${e}"`);
1384
- function t(d) {
1385
- throw new Error(`ERR (${n})/"${h}": ${d}`);
1376
+ throw new Error(O.NODE_ENV !== "production" ? `Route paths should start with a "/": "${e}" should be "/${e}".` : `Invalid path "${e}"`);
1377
+ function t(h) {
1378
+ throw new Error(`ERR (${n})/"${d}": ${h}`);
1386
1379
  }
1387
1380
  let n = 0, r = n;
1388
1381
  const o = [];
@@ -1390,56 +1383,56 @@ function Io(e) {
1390
1383
  function i() {
1391
1384
  s && o.push(s), s = [];
1392
1385
  }
1393
- let c = 0, l, h = "", a = "";
1394
- function u() {
1395
- h && (n === 0 ? s.push({
1386
+ let u = 0, l, d = "", c = "";
1387
+ function a() {
1388
+ d && (n === 0 ? s.push({
1396
1389
  type: 0,
1397
- value: h
1398
- }) : n === 1 || n === 2 || n === 3 ? (s.length > 1 && (l === "*" || l === "+") && t(`A repeatable param (${h}) must be alone in its segment. eg: '/:ids+.`), s.push({
1390
+ value: d
1391
+ }) : n === 1 || n === 2 || n === 3 ? (s.length > 1 && (l === "*" || l === "+") && t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`), s.push({
1399
1392
  type: 1,
1400
- value: h,
1401
- regexp: a,
1393
+ value: d,
1394
+ regexp: c,
1402
1395
  repeatable: l === "*" || l === "+",
1403
1396
  optional: l === "*" || l === "?"
1404
- })) : t("Invalid state to consume buffer"), h = "");
1397
+ })) : t("Invalid state to consume buffer"), d = "");
1405
1398
  }
1406
1399
  function f() {
1407
- h += l;
1400
+ d += l;
1408
1401
  }
1409
- for (; c < e.length; ) {
1410
- if (l = e[c++], l === "\\" && n !== 2) {
1402
+ for (; u < e.length; ) {
1403
+ if (l = e[u++], l === "\\" && n !== 2) {
1411
1404
  r = n, n = 4;
1412
1405
  continue;
1413
1406
  }
1414
1407
  switch (n) {
1415
1408
  case 0:
1416
- l === "/" ? (h && u(), i()) : l === ":" ? (u(), n = 1) : f();
1409
+ l === "/" ? (d && a(), i()) : l === ":" ? (a(), n = 1) : f();
1417
1410
  break;
1418
1411
  case 4:
1419
1412
  f(), n = r;
1420
1413
  break;
1421
1414
  case 1:
1422
- l === "(" ? n = 2 : No.test(l) ? f() : (u(), n = 0, l !== "*" && l !== "?" && l !== "+" && c--);
1415
+ l === "(" ? n = 2 : To.test(l) ? f() : (a(), n = 0, l !== "*" && l !== "?" && l !== "+" && u--);
1423
1416
  break;
1424
1417
  case 2:
1425
- l === ")" ? a[a.length - 1] == "\\" ? a = a.slice(0, -1) + l : n = 3 : a += l;
1418
+ l === ")" ? c[c.length - 1] == "\\" ? c = c.slice(0, -1) + l : n = 3 : c += l;
1426
1419
  break;
1427
1420
  case 3:
1428
- u(), n = 0, l !== "*" && l !== "?" && l !== "+" && c--, a = "";
1421
+ a(), n = 0, l !== "*" && l !== "?" && l !== "+" && u--, c = "";
1429
1422
  break;
1430
1423
  default:
1431
1424
  t("Unknown state");
1432
1425
  break;
1433
1426
  }
1434
1427
  }
1435
- return n === 2 && t(`Unfinished custom RegExp for param "${h}"`), u(), i(), o;
1428
+ return n === 2 && t(`Unfinished custom RegExp for param "${d}"`), a(), i(), o;
1436
1429
  }
1437
- function To(e, t, n) {
1438
- const r = Po(Io(e.path), n);
1439
- if (S.NODE_ENV !== "production") {
1430
+ function $o(e, t, n) {
1431
+ const r = Vo(Ao(e.path), n);
1432
+ if (O.NODE_ENV !== "production") {
1440
1433
  const s = /* @__PURE__ */ new Set();
1441
1434
  for (const i of r.keys)
1442
- s.has(i.name) && P(`Found duplicated params with name "${i.name}" for path "${e.path}". Only the last one will be available on "$route.params".`), s.add(i.name);
1435
+ s.has(i.name) && R(`Found duplicated params with name "${i.name}" for path "${e.path}". Only the last one will be available on "$route.params".`), s.add(i.name);
1443
1436
  }
1444
1437
  const o = I(r, {
1445
1438
  record: e,
@@ -1450,106 +1443,106 @@ function To(e, t, n) {
1450
1443
  });
1451
1444
  return t && !o.record.aliasOf == !t.record.aliasOf && t.children.push(o), o;
1452
1445
  }
1453
- function Ao(e, t) {
1446
+ function jo(e, t) {
1454
1447
  const n = [], r = /* @__PURE__ */ new Map();
1455
- t = Dt({ strict: !1, end: !0, sensitive: !1 }, t);
1456
- function o(u) {
1457
- return r.get(u);
1458
- }
1459
- function s(u, f, d) {
1460
- const v = !d, p = Ct(u);
1461
- S.NODE_ENV !== "production" && xo(p, f), p.aliasOf = d && d.record;
1462
- const g = Dt(t, u), y = [p];
1463
- if ("alias" in u) {
1464
- const R = typeof u.alias == "string" ? [u.alias] : u.alias;
1465
- for (const D of R)
1448
+ t = Mt({ strict: !1, end: !0, sensitive: !1 }, t);
1449
+ function o(a) {
1450
+ return r.get(a);
1451
+ }
1452
+ function s(a, f, h) {
1453
+ const v = !h, p = xt(a);
1454
+ O.NODE_ENV !== "production" && Mo(p, f), p.aliasOf = h && h.record;
1455
+ const g = Mt(t, a), y = [p];
1456
+ if ("alias" in a) {
1457
+ const P = typeof a.alias == "string" ? [a.alias] : a.alias;
1458
+ for (const j of P)
1466
1459
  y.push(
1467
1460
  // we need to normalize again to ensure the `mods` property
1468
1461
  // being non enumerable
1469
- Ct(I({}, p, {
1462
+ xt(I({}, p, {
1470
1463
  // this allows us to hold a copy of the `components` option
1471
1464
  // so that async components cache is hold on the original record
1472
- components: d ? d.record.components : p.components,
1473
- path: D,
1465
+ components: h ? h.record.components : p.components,
1466
+ path: j,
1474
1467
  // we might be the child of an alias
1475
- aliasOf: d ? d.record : p
1468
+ aliasOf: h ? h.record : p
1476
1469
  // the aliases are always of the same kind as the original since they
1477
1470
  // are defined on the same record
1478
1471
  }))
1479
1472
  );
1480
1473
  }
1481
- let _, O;
1482
- for (const R of y) {
1483
- const { path: D } = R;
1484
- if (f && D[0] !== "/") {
1485
- const C = f.record.path, x = C[C.length - 1] === "/" ? "" : "/";
1486
- R.path = f.record.path + (D && x + D);
1474
+ let _, b;
1475
+ for (const P of y) {
1476
+ const { path: j } = P;
1477
+ if (f && j[0] !== "/") {
1478
+ const x = f.record.path, D = x[x.length - 1] === "/" ? "" : "/";
1479
+ P.path = f.record.path + (j && D + j);
1487
1480
  }
1488
- if (S.NODE_ENV !== "production" && R.path === "*")
1481
+ if (O.NODE_ENV !== "production" && P.path === "*")
1489
1482
  throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
1490
1483
  See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.`);
1491
- if (_ = To(R, f, g), S.NODE_ENV !== "production" && f && D[0] === "/" && Mo(_, f), d ? (d.alias.push(_), S.NODE_ENV !== "production" && Co(d, _)) : (O = O || _, O !== _ && O.alias.push(_), v && u.name && !xt(_) && (S.NODE_ENV !== "production" && Do(u, f), i(u.name))), Vn(_) && l(_), p.children) {
1492
- const C = p.children;
1493
- for (let x = 0; x < C.length; x++)
1494
- s(C[x], _, d && d.children[x]);
1484
+ if (_ = $o(P, f, g), O.NODE_ENV !== "production" && f && j[0] === "/" && Bo(_, f), h ? (h.alias.push(_), O.NODE_ENV !== "production" && Do(h, _)) : (b = b || _, b !== _ && b.alias.push(_), v && a.name && !Dt(_) && (O.NODE_ENV !== "production" && Fo(a, f), i(a.name))), Nn(_) && l(_), p.children) {
1485
+ const x = p.children;
1486
+ for (let D = 0; D < x.length; D++)
1487
+ s(x[D], _, h && h.children[D]);
1495
1488
  }
1496
- d = d || _;
1489
+ h = h || _;
1497
1490
  }
1498
- return O ? () => {
1499
- i(O);
1500
- } : ve;
1501
- }
1502
- function i(u) {
1503
- if (Pn(u)) {
1504
- const f = r.get(u);
1505
- f && (r.delete(u), n.splice(n.indexOf(f), 1), f.children.forEach(i), f.alias.forEach(i));
1491
+ return b ? () => {
1492
+ i(b);
1493
+ } : ye;
1494
+ }
1495
+ function i(a) {
1496
+ if (kn(a)) {
1497
+ const f = r.get(a);
1498
+ f && (r.delete(a), n.splice(n.indexOf(f), 1), f.children.forEach(i), f.alias.forEach(i));
1506
1499
  } else {
1507
- const f = n.indexOf(u);
1508
- f > -1 && (n.splice(f, 1), u.record.name && r.delete(u.record.name), u.children.forEach(i), u.alias.forEach(i));
1500
+ const f = n.indexOf(a);
1501
+ f > -1 && (n.splice(f, 1), a.record.name && r.delete(a.record.name), a.children.forEach(i), a.alias.forEach(i));
1509
1502
  }
1510
1503
  }
1511
- function c() {
1504
+ function u() {
1512
1505
  return n;
1513
1506
  }
1514
- function l(u) {
1515
- const f = Fo(u, n);
1516
- n.splice(f, 0, u), u.record.name && !xt(u) && r.set(u.record.name, u);
1507
+ function l(a) {
1508
+ const f = Lo(a, n);
1509
+ n.splice(f, 0, a), a.record.name && !Dt(a) && r.set(a.record.name, a);
1517
1510
  }
1518
- function h(u, f) {
1519
- let d, v = {}, p, g;
1520
- if ("name" in u && u.name) {
1521
- if (d = r.get(u.name), !d)
1511
+ function d(a, f) {
1512
+ let h, v = {}, p, g;
1513
+ if ("name" in a && a.name) {
1514
+ if (h = r.get(a.name), !h)
1522
1515
  throw ue(1, {
1523
- location: u
1516
+ location: a
1524
1517
  });
1525
- if (S.NODE_ENV !== "production") {
1526
- const O = Object.keys(u.params || {}).filter((R) => !d.keys.find((D) => D.name === R));
1527
- O.length && P(`Discarded invalid param(s) "${O.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`);
1518
+ if (O.NODE_ENV !== "production") {
1519
+ const b = Object.keys(a.params || {}).filter((P) => !h.keys.find((j) => j.name === P));
1520
+ b.length && R(`Discarded invalid param(s) "${b.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`);
1528
1521
  }
1529
- g = d.record.name, v = I(
1522
+ g = h.record.name, v = I(
1530
1523
  // paramsFromLocation is a new object
1531
- jt(
1524
+ Ct(
1532
1525
  f.params,
1533
1526
  // only keep params that exist in the resolved location
1534
1527
  // only keep optional params coming from a parent record
1535
- d.keys.filter((O) => !O.optional).concat(d.parent ? d.parent.keys.filter((O) => O.optional) : []).map((O) => O.name)
1528
+ h.keys.filter((b) => !b.optional).concat(h.parent ? h.parent.keys.filter((b) => b.optional) : []).map((b) => b.name)
1536
1529
  ),
1537
1530
  // discard any existing params in the current location that do not exist here
1538
1531
  // #1497 this ensures better active/exact matching
1539
- u.params && jt(u.params, d.keys.map((O) => O.name))
1540
- ), p = d.stringify(v);
1541
- } else if (u.path != null)
1542
- p = u.path, S.NODE_ENV !== "production" && !p.startsWith("/") && P(`The Matcher cannot resolve relative paths but received "${p}". Unless you directly called \`matcher.resolve("${p}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`), d = n.find((O) => O.re.test(p)), d && (v = d.parse(p), g = d.record.name);
1532
+ a.params && Ct(a.params, h.keys.map((b) => b.name))
1533
+ ), p = h.stringify(v);
1534
+ } else if (a.path != null)
1535
+ p = a.path, O.NODE_ENV !== "production" && !p.startsWith("/") && R(`The Matcher cannot resolve relative paths but received "${p}". Unless you directly called \`matcher.resolve("${p}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`), h = n.find((b) => b.re.test(p)), h && (v = h.parse(p), g = h.record.name);
1543
1536
  else {
1544
- if (d = f.name ? r.get(f.name) : n.find((O) => O.re.test(f.path)), !d)
1537
+ if (h = f.name ? r.get(f.name) : n.find((b) => b.re.test(f.path)), !h)
1545
1538
  throw ue(1, {
1546
- location: u,
1539
+ location: a,
1547
1540
  currentLocation: f
1548
1541
  });
1549
- g = d.record.name, v = I({}, f.params, u.params), p = d.stringify(v);
1542
+ g = h.record.name, v = I({}, f.params, a.params), p = h.stringify(v);
1550
1543
  }
1551
1544
  const y = [];
1552
- let _ = d;
1545
+ let _ = h;
1553
1546
  for (; _; )
1554
1547
  y.unshift(_.record), _ = _.parent;
1555
1548
  return {
@@ -1557,29 +1550,29 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
1557
1550
  path: p,
1558
1551
  params: v,
1559
1552
  matched: y,
1560
- meta: jo(y)
1553
+ meta: xo(y)
1561
1554
  };
1562
1555
  }
1563
- e.forEach((u) => s(u));
1564
- function a() {
1556
+ e.forEach((a) => s(a));
1557
+ function c() {
1565
1558
  n.length = 0, r.clear();
1566
1559
  }
1567
1560
  return {
1568
1561
  addRoute: s,
1569
- resolve: h,
1562
+ resolve: d,
1570
1563
  removeRoute: i,
1571
- clearRoutes: a,
1572
- getRoutes: c,
1564
+ clearRoutes: c,
1565
+ getRoutes: u,
1573
1566
  getRecordMatcher: o
1574
1567
  };
1575
1568
  }
1576
- function jt(e, t) {
1569
+ function Ct(e, t) {
1577
1570
  const n = {};
1578
1571
  for (const r of t)
1579
1572
  r in e && (n[r] = e[r]);
1580
1573
  return n;
1581
1574
  }
1582
- function Ct(e) {
1575
+ function xt(e) {
1583
1576
  const t = {
1584
1577
  path: e.path,
1585
1578
  redirect: e.redirect,
@@ -1587,7 +1580,7 @@ function Ct(e) {
1587
1580
  meta: e.meta || {},
1588
1581
  aliasOf: e.aliasOf,
1589
1582
  beforeEnter: e.beforeEnter,
1590
- props: $o(e),
1583
+ props: Co(e),
1591
1584
  children: e.children || [],
1592
1585
  instances: {},
1593
1586
  leaveGuards: /* @__PURE__ */ new Set(),
@@ -1601,7 +1594,7 @@ function Ct(e) {
1601
1594
  value: {}
1602
1595
  }), t;
1603
1596
  }
1604
- function $o(e) {
1597
+ function Co(e) {
1605
1598
  const t = {}, n = e.props || !1;
1606
1599
  if ("component" in e)
1607
1600
  t.default = n;
@@ -1610,7 +1603,7 @@ function $o(e) {
1610
1603
  t[r] = typeof n == "object" ? n[r] : n;
1611
1604
  return t;
1612
1605
  }
1613
- function xt(e) {
1606
+ function Dt(e) {
1614
1607
  for (; e; ) {
1615
1608
  if (e.record.aliasOf)
1616
1609
  return !0;
@@ -1618,96 +1611,96 @@ function xt(e) {
1618
1611
  }
1619
1612
  return !1;
1620
1613
  }
1621
- function jo(e) {
1614
+ function xo(e) {
1622
1615
  return e.reduce((t, n) => I(t, n.meta), {});
1623
1616
  }
1624
- function Dt(e, t) {
1617
+ function Mt(e, t) {
1625
1618
  const n = {};
1626
1619
  for (const r in e)
1627
1620
  n[r] = r in t ? t[r] : e[r];
1628
1621
  return n;
1629
1622
  }
1630
- function at(e, t) {
1623
+ function ct(e, t) {
1631
1624
  return e.name === t.name && e.optional === t.optional && e.repeatable === t.repeatable;
1632
1625
  }
1633
- function Co(e, t) {
1626
+ function Do(e, t) {
1634
1627
  for (const n of e.keys)
1635
- if (!n.optional && !t.keys.find(at.bind(null, n)))
1636
- return P(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
1628
+ if (!n.optional && !t.keys.find(ct.bind(null, n)))
1629
+ return R(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
1637
1630
  for (const n of t.keys)
1638
- if (!n.optional && !e.keys.find(at.bind(null, n)))
1639
- return P(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
1631
+ if (!n.optional && !e.keys.find(ct.bind(null, n)))
1632
+ return R(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
1640
1633
  }
1641
- function xo(e, t) {
1642
- t && t.record.name && !e.name && !e.path && P(`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.`);
1634
+ function Mo(e, t) {
1635
+ t && t.record.name && !e.name && !e.path && R(`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.`);
1643
1636
  }
1644
- function Do(e, t) {
1637
+ function Fo(e, t) {
1645
1638
  for (let n = t; n; n = n.parent)
1646
1639
  if (n.record.name === e.name)
1647
1640
  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.`);
1648
1641
  }
1649
- function Mo(e, t) {
1642
+ function Bo(e, t) {
1650
1643
  for (const n of t.keys)
1651
- if (!e.keys.find(at.bind(null, n)))
1652
- return P(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`);
1644
+ if (!e.keys.find(ct.bind(null, n)))
1645
+ return R(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`);
1653
1646
  }
1654
- function Fo(e, t) {
1647
+ function Lo(e, t) {
1655
1648
  let n = 0, r = t.length;
1656
1649
  for (; n !== r; ) {
1657
1650
  const s = n + r >> 1;
1658
- kn(e, t[s]) < 0 ? r = s : n = s + 1;
1651
+ Vn(e, t[s]) < 0 ? r = s : n = s + 1;
1659
1652
  }
1660
- const o = Bo(e);
1661
- return o && (r = t.lastIndexOf(o, r - 1), S.NODE_ENV !== "production" && r < 0 && P(`Finding ancestor route "${o.record.path}" failed for "${e.record.path}"`)), r;
1653
+ const o = Wo(e);
1654
+ return o && (r = t.lastIndexOf(o, r - 1), O.NODE_ENV !== "production" && r < 0 && R(`Finding ancestor route "${o.record.path}" failed for "${e.record.path}"`)), r;
1662
1655
  }
1663
- function Bo(e) {
1656
+ function Wo(e) {
1664
1657
  let t = e;
1665
1658
  for (; t = t.parent; )
1666
- if (Vn(t) && kn(e, t) === 0)
1659
+ if (Nn(t) && Vn(e, t) === 0)
1667
1660
  return t;
1668
1661
  }
1669
- function Vn({ record: e }) {
1662
+ function Nn({ record: e }) {
1670
1663
  return !!(e.name || e.components && Object.keys(e.components).length || e.redirect);
1671
1664
  }
1672
- function Lo(e) {
1665
+ function Uo(e) {
1673
1666
  const t = {};
1674
1667
  if (e === "" || e === "?")
1675
1668
  return t;
1676
1669
  const r = (e[0] === "?" ? e.slice(1) : e).split("&");
1677
1670
  for (let o = 0; o < r.length; ++o) {
1678
- const s = r[o].replace(vn, " "), i = s.indexOf("="), c = ae(i < 0 ? s : s.slice(0, i)), l = i < 0 ? null : ae(s.slice(i + 1));
1679
- if (c in t) {
1680
- let h = t[c];
1681
- K(h) || (h = t[c] = [h]), h.push(l);
1671
+ const s = r[o].replace(yn, " "), i = s.indexOf("="), u = ae(i < 0 ? s : s.slice(0, i)), l = i < 0 ? null : ae(s.slice(i + 1));
1672
+ if (u in t) {
1673
+ let d = t[u];
1674
+ U(d) || (d = t[u] = [d]), d.push(l);
1682
1675
  } else
1683
- t[c] = l;
1676
+ t[u] = l;
1684
1677
  }
1685
1678
  return t;
1686
1679
  }
1687
- function Mt(e) {
1680
+ function Ft(e) {
1688
1681
  let t = "";
1689
1682
  for (let n in e) {
1690
1683
  const r = e[n];
1691
- if (n = no(n), r == null) {
1684
+ if (n = oo(n), r == null) {
1692
1685
  r !== void 0 && (t += (t.length ? "&" : "") + n);
1693
1686
  continue;
1694
1687
  }
1695
- (K(r) ? r.map((s) => s && ot(s)) : [r && ot(r)]).forEach((s) => {
1688
+ (U(r) ? r.map((s) => s && st(s)) : [r && st(r)]).forEach((s) => {
1696
1689
  s !== void 0 && (t += (t.length ? "&" : "") + n, s != null && (t += "=" + s));
1697
1690
  });
1698
1691
  }
1699
1692
  return t;
1700
1693
  }
1701
- function Wo(e) {
1694
+ function Ko(e) {
1702
1695
  const t = {};
1703
1696
  for (const n in e) {
1704
1697
  const r = e[n];
1705
- r !== void 0 && (t[n] = K(r) ? r.map((o) => o == null ? null : "" + o) : r == null ? r : "" + r);
1698
+ r !== void 0 && (t[n] = U(r) ? r.map((o) => o == null ? null : "" + o) : r == null ? r : "" + r);
1706
1699
  }
1707
1700
  return t;
1708
1701
  }
1709
- const Uo = Symbol(S.NODE_ENV !== "production" ? "router view location matched" : ""), Ft = Symbol(S.NODE_ENV !== "production" ? "router view depth" : ""), Be = Symbol(S.NODE_ENV !== "production" ? "router" : ""), gt = Symbol(S.NODE_ENV !== "production" ? "route location" : ""), ct = Symbol(S.NODE_ENV !== "production" ? "router view location" : "");
1710
- function pe() {
1702
+ const Go = Symbol(O.NODE_ENV !== "production" ? "router view location matched" : ""), Bt = Symbol(O.NODE_ENV !== "production" ? "router view depth" : ""), Le = Symbol(O.NODE_ENV !== "production" ? "router" : ""), vt = Symbol(O.NODE_ENV !== "production" ? "route location" : ""), ut = Symbol(O.NODE_ENV !== "production" ? "router view location" : "");
1703
+ function me() {
1711
1704
  let e = [];
1712
1705
  function t(r) {
1713
1706
  return e.push(r), () => {
@@ -1727,8 +1720,8 @@ function pe() {
1727
1720
  function X(e, t, n, r, o, s = (i) => i()) {
1728
1721
  const i = r && // name is defined if record is because of the function overload
1729
1722
  (r.enterCallbacks[o] = r.enterCallbacks[o] || []);
1730
- return () => new Promise((c, l) => {
1731
- const h = (f) => {
1723
+ return () => new Promise((u, l) => {
1724
+ const d = (f) => {
1732
1725
  f === !1 ? l(ue(4, {
1733
1726
  from: n,
1734
1727
  to: t
@@ -1736,128 +1729,128 @@ function X(e, t, n, r, o, s = (i) => i()) {
1736
1729
  from: t,
1737
1730
  to: f
1738
1731
  })) : (i && // since enterCallbackArray is truthy, both record and name also are
1739
- r.enterCallbacks[o] === i && typeof f == "function" && i.push(f), c());
1740
- }, a = s(() => e.call(r && r.instances[o], t, n, S.NODE_ENV !== "production" ? Ko(h, t, n) : h));
1741
- let u = Promise.resolve(a);
1742
- if (e.length < 3 && (u = u.then(h)), S.NODE_ENV !== "production" && e.length > 2) {
1732
+ r.enterCallbacks[o] === i && typeof f == "function" && i.push(f), u());
1733
+ }, c = s(() => e.call(r && r.instances[o], t, n, O.NODE_ENV !== "production" ? qo(d, t, n) : d));
1734
+ let a = Promise.resolve(c);
1735
+ if (e.length < 3 && (a = a.then(d)), O.NODE_ENV !== "production" && e.length > 2) {
1743
1736
  const f = `The "next" callback was never called inside of ${e.name ? '"' + e.name + '"' : ""}:
1744
1737
  ${e.toString()}
1745
1738
  . If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;
1746
- if (typeof a == "object" && "then" in a)
1747
- u = u.then((d) => h._called ? d : (P(f), Promise.reject(new Error("Invalid navigation guard"))));
1748
- else if (a !== void 0 && !h._called) {
1749
- P(f), l(new Error("Invalid navigation guard"));
1739
+ if (typeof c == "object" && "then" in c)
1740
+ a = a.then((h) => d._called ? h : (R(f), Promise.reject(new Error("Invalid navigation guard"))));
1741
+ else if (c !== void 0 && !d._called) {
1742
+ R(f), l(new Error("Invalid navigation guard"));
1750
1743
  return;
1751
1744
  }
1752
1745
  }
1753
- u.catch((f) => l(f));
1746
+ a.catch((f) => l(f));
1754
1747
  });
1755
1748
  }
1756
- function Ko(e, t, n) {
1749
+ function qo(e, t, n) {
1757
1750
  let r = 0;
1758
1751
  return function() {
1759
- r++ === 1 && P(`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);
1752
+ r++ === 1 && R(`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);
1760
1753
  };
1761
1754
  }
1762
- function Qe(e, t, n, r, o = (s) => s()) {
1755
+ function Ye(e, t, n, r, o = (s) => s()) {
1763
1756
  const s = [];
1764
1757
  for (const i of e) {
1765
- S.NODE_ENV !== "production" && !i.components && !i.children.length && P(`Record with path "${i.path}" is either missing a "component(s)" or "children" property.`);
1766
- for (const c in i.components) {
1767
- let l = i.components[c];
1768
- if (S.NODE_ENV !== "production") {
1758
+ O.NODE_ENV !== "production" && !i.components && !i.children.length && R(`Record with path "${i.path}" is either missing a "component(s)" or "children" property.`);
1759
+ for (const u in i.components) {
1760
+ let l = i.components[u];
1761
+ if (O.NODE_ENV !== "production") {
1769
1762
  if (!l || typeof l != "object" && typeof l != "function")
1770
- throw P(`Component "${c}" in record with path "${i.path}" is not a valid component. Received "${String(l)}".`), new Error("Invalid route component");
1763
+ throw R(`Component "${u}" in record with path "${i.path}" is not a valid component. Received "${String(l)}".`), new Error("Invalid route component");
1771
1764
  if ("then" in l) {
1772
- P(`Component "${c}" in record with path "${i.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);
1773
- const h = l;
1774
- l = () => h;
1765
+ R(`Component "${u}" in record with path "${i.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);
1766
+ const d = l;
1767
+ l = () => d;
1775
1768
  } else l.__asyncLoader && // warn only once per component
1776
- !l.__warnedDefineAsync && (l.__warnedDefineAsync = !0, P(`Component "${c}" in record with path "${i.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`));
1769
+ !l.__warnedDefineAsync && (l.__warnedDefineAsync = !0, R(`Component "${u}" in record with path "${i.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`));
1777
1770
  }
1778
- if (!(t !== "beforeRouteEnter" && !i.instances[c]))
1779
- if (mn(l)) {
1780
- const a = (l.__vccOpts || l)[t];
1781
- a && s.push(X(a, n, r, i, c, o));
1771
+ if (!(t !== "beforeRouteEnter" && !i.instances[u]))
1772
+ if (gn(l)) {
1773
+ const c = (l.__vccOpts || l)[t];
1774
+ c && s.push(X(c, n, r, i, u, o));
1782
1775
  } else {
1783
- let h = l();
1784
- S.NODE_ENV !== "production" && !("catch" in h) && (P(`Component "${c}" 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.`), h = Promise.resolve(h)), s.push(() => h.then((a) => {
1785
- if (!a)
1786
- throw new Error(`Couldn't resolve component "${c}" at "${i.path}"`);
1787
- const u = Gr(a) ? a.default : a;
1788
- i.mods[c] = a, i.components[c] = u;
1789
- const d = (u.__vccOpts || u)[t];
1790
- return d && X(d, n, r, i, c, o)();
1776
+ let d = l();
1777
+ O.NODE_ENV !== "production" && !("catch" in d) && (R(`Component "${u}" 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) => {
1778
+ if (!c)
1779
+ throw new Error(`Couldn't resolve component "${u}" at "${i.path}"`);
1780
+ const a = Hr(c) ? c.default : c;
1781
+ i.mods[u] = c, i.components[u] = a;
1782
+ const h = (a.__vccOpts || a)[t];
1783
+ return h && X(h, n, r, i, u, o)();
1791
1784
  }));
1792
1785
  }
1793
1786
  }
1794
1787
  }
1795
1788
  return s;
1796
1789
  }
1797
- function Bt(e) {
1798
- const t = ee(Be), n = ee(gt);
1790
+ function Lt(e) {
1791
+ const t = ee(Le), n = ee(vt);
1799
1792
  let r = !1, o = null;
1800
- const s = U(() => {
1801
- const a = W(e.to);
1802
- return S.NODE_ENV !== "production" && (!r || a !== o) && (Ae(a) || (r ? P(`Invalid value for prop "to" in useLink()
1803
- - to:`, a, `
1793
+ const s = K(() => {
1794
+ const c = L(e.to);
1795
+ return O.NODE_ENV !== "production" && (!r || c !== o) && (Ae(c) || (r ? R(`Invalid value for prop "to" in useLink()
1796
+ - to:`, c, `
1804
1797
  - previous to:`, o, `
1805
- - props:`, e) : P(`Invalid value for prop "to" in useLink()
1806
- - to:`, a, `
1807
- - props:`, e)), o = a, r = !0), t.resolve(a);
1808
- }), i = U(() => {
1809
- const { matched: a } = s.value, { length: u } = a, f = a[u - 1], d = n.matched;
1810
- if (!f || !d.length)
1798
+ - props:`, e) : R(`Invalid value for prop "to" in useLink()
1799
+ - to:`, c, `
1800
+ - props:`, e)), o = c, r = !0), t.resolve(c);
1801
+ }), i = K(() => {
1802
+ const { matched: c } = s.value, { length: a } = c, f = c[a - 1], h = n.matched;
1803
+ if (!f || !h.length)
1811
1804
  return -1;
1812
- const v = d.findIndex(te.bind(null, f));
1805
+ const v = h.findIndex(te.bind(null, f));
1813
1806
  if (v > -1)
1814
1807
  return v;
1815
- const p = Lt(a[u - 2]);
1808
+ const p = Wt(c[a - 2]);
1816
1809
  return (
1817
1810
  // we are dealing with nested routes
1818
- u > 1 && // if the parent and matched route have the same path, this link is
1811
+ a > 1 && // if the parent and matched route have the same path, this link is
1819
1812
  // referring to the empty child. Or we currently are on a different
1820
1813
  // child of the same parent
1821
- Lt(f) === p && // avoid comparing the child with its parent
1822
- d[d.length - 1].path !== p ? d.findIndex(te.bind(null, a[u - 2])) : v
1814
+ Wt(f) === p && // avoid comparing the child with its parent
1815
+ h[h.length - 1].path !== p ? h.findIndex(te.bind(null, c[a - 2])) : v
1823
1816
  );
1824
- }), c = U(() => i.value > -1 && Jo(n.params, s.value.params)), l = U(() => i.value > -1 && i.value === n.matched.length - 1 && _n(n.params, s.value.params));
1825
- function h(a = {}) {
1826
- if (zo(a)) {
1827
- const u = t[W(e.replace) ? "replace" : "push"](
1828
- W(e.to)
1817
+ }), u = K(() => i.value > -1 && Yo(n.params, s.value.params)), l = K(() => i.value > -1 && i.value === n.matched.length - 1 && Sn(n.params, s.value.params));
1818
+ function d(c = {}) {
1819
+ if (Qo(c)) {
1820
+ const a = t[L(e.replace) ? "replace" : "push"](
1821
+ L(e.to)
1829
1822
  // avoid uncaught errors are they are logged anyway
1830
- ).catch(ve);
1831
- return e.viewTransition && typeof document < "u" && "startViewTransition" in document && document.startViewTransition(() => u), u;
1823
+ ).catch(ye);
1824
+ return e.viewTransition && typeof document < "u" && "startViewTransition" in document && document.startViewTransition(() => a), a;
1832
1825
  }
1833
1826
  return Promise.resolve();
1834
1827
  }
1835
- if (S.NODE_ENV !== "production" && z) {
1836
- const a = Jt();
1837
- if (a) {
1838
- const u = {
1828
+ if (O.NODE_ENV !== "production" && z) {
1829
+ const c = Qt();
1830
+ if (c) {
1831
+ const a = {
1839
1832
  route: s.value,
1840
- isActive: c.value,
1833
+ isActive: u.value,
1841
1834
  isExactActive: l.value,
1842
1835
  error: null
1843
1836
  };
1844
- a.__vrl_devtools = a.__vrl_devtools || [], a.__vrl_devtools.push(u), zt(() => {
1845
- u.route = s.value, u.isActive = c.value, u.isExactActive = l.value, u.error = Ae(W(e.to)) ? null : 'Invalid "to" value';
1837
+ c.__vrl_devtools = c.__vrl_devtools || [], c.__vrl_devtools.push(a), Jt(() => {
1838
+ a.route = s.value, a.isActive = u.value, a.isExactActive = l.value, a.error = Ae(L(e.to)) ? null : 'Invalid "to" value';
1846
1839
  }, { flush: "post" });
1847
1840
  }
1848
1841
  }
1849
1842
  return {
1850
1843
  route: s,
1851
- href: U(() => s.value.href),
1852
- isActive: c,
1844
+ href: K(() => s.value.href),
1845
+ isActive: u,
1853
1846
  isExactActive: l,
1854
- navigate: h
1847
+ navigate: d
1855
1848
  };
1856
1849
  }
1857
- function Go(e) {
1850
+ function Ho(e) {
1858
1851
  return e.length === 1 ? e[0] : e;
1859
1852
  }
1860
- const qo = /* @__PURE__ */ F({
1853
+ const zo = /* @__PURE__ */ F({
1861
1854
  name: "RouterLink",
1862
1855
  compatConfig: { MODE: 3 },
1863
1856
  props: {
@@ -1875,19 +1868,19 @@ const qo = /* @__PURE__ */ F({
1875
1868
  default: "page"
1876
1869
  }
1877
1870
  },
1878
- useLink: Bt,
1871
+ useLink: Lt,
1879
1872
  setup(e, { slots: t }) {
1880
- const n = zn(Bt(e)), { options: r } = ee(Be), o = U(() => ({
1881
- [Wt(e.activeClass, r.linkActiveClass, "router-link-active")]: n.isActive,
1873
+ const n = Yn(Lt(e)), { options: r } = ee(Le), o = K(() => ({
1874
+ [Ut(e.activeClass, r.linkActiveClass, "router-link-active")]: n.isActive,
1882
1875
  // [getLinkClass(
1883
1876
  // props.inactiveClass,
1884
1877
  // options.linkInactiveClass,
1885
1878
  // 'router-link-inactive'
1886
1879
  // )]: !link.isExactActive,
1887
- [Wt(e.exactActiveClass, r.linkExactActiveClass, "router-link-exact-active")]: n.isExactActive
1880
+ [Ut(e.exactActiveClass, r.linkExactActiveClass, "router-link-exact-active")]: n.isExactActive
1888
1881
  }));
1889
1882
  return () => {
1890
- const s = t.default && Go(t.default(n));
1883
+ const s = t.default && Ho(t.default(n));
1891
1884
  return e.custom ? s : A("a", {
1892
1885
  "aria-current": n.isExactActive ? e.ariaCurrentValue : null,
1893
1886
  href: n.href,
@@ -1898,8 +1891,8 @@ const qo = /* @__PURE__ */ F({
1898
1891
  }, s);
1899
1892
  };
1900
1893
  }
1901
- }), Ho = qo;
1902
- function zo(e) {
1894
+ }), Jo = zo;
1895
+ function Qo(e) {
1903
1896
  if (!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) && !e.defaultPrevented && !(e.button !== void 0 && e.button !== 0)) {
1904
1897
  if (e.currentTarget && e.currentTarget.getAttribute) {
1905
1898
  const t = e.currentTarget.getAttribute("target");
@@ -1909,21 +1902,21 @@ function zo(e) {
1909
1902
  return e.preventDefault && e.preventDefault(), !0;
1910
1903
  }
1911
1904
  }
1912
- function Jo(e, t) {
1905
+ function Yo(e, t) {
1913
1906
  for (const n in t) {
1914
1907
  const r = t[n], o = e[n];
1915
1908
  if (typeof r == "string") {
1916
1909
  if (r !== o)
1917
1910
  return !1;
1918
- } else if (!K(o) || o.length !== r.length || r.some((s, i) => s !== o[i]))
1911
+ } else if (!U(o) || o.length !== r.length || r.some((s, i) => s !== o[i]))
1919
1912
  return !1;
1920
1913
  }
1921
1914
  return !0;
1922
1915
  }
1923
- function Lt(e) {
1916
+ function Wt(e) {
1924
1917
  return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
1925
1918
  }
1926
- const Wt = (e, t, n) => e ?? t ?? n, Qo = /* @__PURE__ */ F({
1919
+ const Ut = (e, t, n) => e ?? t ?? n, Xo = /* @__PURE__ */ F({
1927
1920
  name: "RouterView",
1928
1921
  // #674 we manually inherit them
1929
1922
  inheritAttrs: !1,
@@ -1938,62 +1931,62 @@ const Wt = (e, t, n) => e ?? t ?? n, Qo = /* @__PURE__ */ F({
1938
1931
  // https://github.com/vuejs/router/issues/1315
1939
1932
  compatConfig: { MODE: 3 },
1940
1933
  setup(e, { attrs: t, slots: n }) {
1941
- S.NODE_ENV !== "production" && Xo();
1942
- const r = ee(ct), o = U(() => e.route || r.value), s = ee(Ft, 0), i = U(() => {
1943
- let h = W(s);
1944
- const { matched: a } = o.value;
1945
- let u;
1946
- for (; (u = a[h]) && !u.components; )
1947
- h++;
1948
- return h;
1949
- }), c = U(() => o.value.matched[i.value]);
1950
- Ie(Ft, U(() => i.value + 1)), Ie(Uo, c), Ie(ct, o);
1934
+ O.NODE_ENV !== "production" && es();
1935
+ const r = ee(ut), o = K(() => e.route || r.value), s = ee(Bt, 0), i = K(() => {
1936
+ let d = L(s);
1937
+ const { matched: c } = o.value;
1938
+ let a;
1939
+ for (; (a = c[d]) && !a.components; )
1940
+ d++;
1941
+ return d;
1942
+ }), u = K(() => o.value.matched[i.value]);
1943
+ Ie(Bt, K(() => i.value + 1)), Ie(Go, u), Ie(ut, o);
1951
1944
  const l = Z();
1952
- return G(() => [l.value, c.value, e.name], ([h, a, u], [f, d, v]) => {
1953
- a && (a.instances[u] = h, d && d !== a && h && h === f && (a.leaveGuards.size || (a.leaveGuards = d.leaveGuards), a.updateGuards.size || (a.updateGuards = d.updateGuards))), h && a && // if there is no instance but to and from are the same this might be
1945
+ return G(() => [l.value, u.value, e.name], ([d, c, a], [f, h, v]) => {
1946
+ c && (c.instances[a] = 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
1954
1947
  // the first visit
1955
- (!d || !te(a, d) || !f) && (a.enterCallbacks[u] || []).forEach((p) => p(h));
1948
+ (!h || !te(c, h) || !f) && (c.enterCallbacks[a] || []).forEach((p) => p(d));
1956
1949
  }, { flush: "post" }), () => {
1957
- const h = o.value, a = e.name, u = c.value, f = u && u.components[a];
1950
+ const d = o.value, c = e.name, a = u.value, f = a && a.components[c];
1958
1951
  if (!f)
1959
- return Ut(n.default, { Component: f, route: h });
1960
- const d = u.props[a], v = d ? d === !0 ? h.params : typeof d == "function" ? d(h) : d : null, g = A(f, I({}, v, t, {
1952
+ return Kt(n.default, { Component: f, route: d });
1953
+ const h = a.props[c], v = h ? h === !0 ? d.params : typeof h == "function" ? h(d) : h : null, g = A(f, I({}, v, t, {
1961
1954
  onVnodeUnmounted: (y) => {
1962
- y.component.isUnmounted && (u.instances[a] = null);
1955
+ y.component.isUnmounted && (a.instances[c] = null);
1963
1956
  },
1964
1957
  ref: l
1965
1958
  }));
1966
- if (S.NODE_ENV !== "production" && z && g.ref) {
1959
+ if (O.NODE_ENV !== "production" && z && g.ref) {
1967
1960
  const y = {
1968
1961
  depth: i.value,
1969
- name: u.name,
1970
- path: u.path,
1971
- meta: u.meta
1962
+ name: a.name,
1963
+ path: a.path,
1964
+ meta: a.meta
1972
1965
  };
1973
- (K(g.ref) ? g.ref.map((O) => O.i) : [g.ref.i]).forEach((O) => {
1974
- O.__vrv_devtools = y;
1966
+ (U(g.ref) ? g.ref.map((b) => b.i) : [g.ref.i]).forEach((b) => {
1967
+ b.__vrv_devtools = y;
1975
1968
  });
1976
1969
  }
1977
1970
  return (
1978
1971
  // pass the vnode to the slot as a prop.
1979
1972
  // h and <component :is="..."> both accept vnodes
1980
- Ut(n.default, { Component: g, route: h }) || g
1973
+ Kt(n.default, { Component: g, route: d }) || g
1981
1974
  );
1982
1975
  };
1983
1976
  }
1984
1977
  });
1985
- function Ut(e, t) {
1978
+ function Kt(e, t) {
1986
1979
  if (!e)
1987
1980
  return null;
1988
1981
  const n = e(t);
1989
1982
  return n.length === 1 ? n[0] : n;
1990
1983
  }
1991
- const Yo = Qo;
1992
- function Xo() {
1993
- const e = Jt(), t = e.parent && e.parent.type.name, n = e.parent && e.parent.subTree && e.parent.subTree.type;
1984
+ const Zo = Xo;
1985
+ function es() {
1986
+ const e = Qt(), t = e.parent && e.parent.type.name, n = e.parent && e.parent.subTree && e.parent.subTree.type;
1994
1987
  if (t && (t === "KeepAlive" || t.includes("Transition")) && typeof n == "object" && n.name === "RouterView") {
1995
1988
  const r = t === "KeepAlive" ? "keep-alive" : "transition";
1996
- P(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
1989
+ R(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
1997
1990
  Use slot props instead:
1998
1991
 
1999
1992
  <router-view v-slot="{ Component }">
@@ -2003,10 +1996,10 @@ Use slot props instead:
2003
1996
  </router-view>`);
2004
1997
  }
2005
1998
  }
2006
- function me(e, t) {
1999
+ function ge(e, t) {
2007
2000
  const n = I({}, e, {
2008
2001
  // remove variables that can contain vue instances
2009
- matched: e.matched.map((r) => us(r, ["instances", "children", "aliasOf"]))
2002
+ matched: e.matched.map((r) => fs(r, ["instances", "children", "aliasOf"]))
2010
2003
  });
2011
2004
  return {
2012
2005
  _custom: {
@@ -2025,13 +2018,13 @@ function Ne(e) {
2025
2018
  }
2026
2019
  };
2027
2020
  }
2028
- let Zo = 0;
2029
- function es(e, t, n) {
2021
+ let ts = 0;
2022
+ function ns(e, t, n) {
2030
2023
  if (t.__hasDevtools)
2031
2024
  return;
2032
2025
  t.__hasDevtools = !0;
2033
- const r = Zo++;
2034
- Kr({
2026
+ const r = ts++;
2027
+ qr({
2035
2028
  id: "org.vuejs.router" + (r ? "." + r : ""),
2036
2029
  label: "Vue Router",
2037
2030
  packageName: "vue-router",
@@ -2040,77 +2033,77 @@ function es(e, t, n) {
2040
2033
  componentStateTypes: ["Routing"],
2041
2034
  app: e
2042
2035
  }, (o) => {
2043
- typeof o.now != "function" && console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), o.on.inspectComponent((a, u) => {
2044
- a.instanceData && a.instanceData.state.push({
2036
+ typeof o.now != "function" && console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), o.on.inspectComponent((c, a) => {
2037
+ c.instanceData && c.instanceData.state.push({
2045
2038
  type: "Routing",
2046
2039
  key: "$route",
2047
2040
  editable: !1,
2048
- value: me(t.currentRoute.value, "Current Route")
2041
+ value: ge(t.currentRoute.value, "Current Route")
2049
2042
  });
2050
- }), o.on.visitComponentTree(({ treeNode: a, componentInstance: u }) => {
2051
- if (u.__vrv_devtools) {
2052
- const f = u.__vrv_devtools;
2053
- a.tags.push({
2043
+ }), o.on.visitComponentTree(({ treeNode: c, componentInstance: a }) => {
2044
+ if (a.__vrv_devtools) {
2045
+ const f = a.__vrv_devtools;
2046
+ c.tags.push({
2054
2047
  label: (f.name ? `${f.name.toString()}: ` : "") + f.path,
2055
2048
  textColor: 0,
2056
2049
  tooltip: "This component is rendered by &lt;router-view&gt;",
2057
- backgroundColor: Nn
2050
+ backgroundColor: In
2058
2051
  });
2059
2052
  }
2060
- K(u.__vrl_devtools) && (u.__devtoolsApi = o, u.__vrl_devtools.forEach((f) => {
2061
- let d = f.route.path, v = An, p = "", g = 0;
2062
- f.error ? (d = f.error, v = ss, g = is) : f.isExactActive ? (v = Tn, p = "This is exactly active") : f.isActive && (v = In, p = "This link is active"), a.tags.push({
2063
- label: d,
2053
+ U(a.__vrl_devtools) && (a.__devtoolsApi = o, a.__vrl_devtools.forEach((f) => {
2054
+ let h = f.route.path, v = $n, p = "", g = 0;
2055
+ f.error ? (h = f.error, v = as, g = cs) : f.isExactActive ? (v = An, p = "This is exactly active") : f.isActive && (v = Tn, p = "This link is active"), c.tags.push({
2056
+ label: h,
2064
2057
  textColor: g,
2065
2058
  tooltip: p,
2066
2059
  backgroundColor: v
2067
2060
  });
2068
2061
  }));
2069
2062
  }), G(t.currentRoute, () => {
2070
- l(), o.notifyComponentUpdate(), o.sendInspectorTree(c), o.sendInspectorState(c);
2063
+ l(), o.notifyComponentUpdate(), o.sendInspectorTree(u), o.sendInspectorState(u);
2071
2064
  });
2072
2065
  const s = "router:navigations:" + r;
2073
2066
  o.addTimelineLayer({
2074
2067
  id: s,
2075
2068
  label: `Router${r ? " " + r : ""} Navigations`,
2076
2069
  color: 4237508
2077
- }), t.onError((a, u) => {
2070
+ }), t.onError((c, a) => {
2078
2071
  o.addTimelineEvent({
2079
2072
  layerId: s,
2080
2073
  event: {
2081
2074
  title: "Error during Navigation",
2082
- subtitle: u.fullPath,
2075
+ subtitle: a.fullPath,
2083
2076
  logType: "error",
2084
2077
  time: o.now(),
2085
- data: { error: a },
2086
- groupId: u.meta.__navigationId
2078
+ data: { error: c },
2079
+ groupId: a.meta.__navigationId
2087
2080
  }
2088
2081
  });
2089
2082
  });
2090
2083
  let i = 0;
2091
- t.beforeEach((a, u) => {
2084
+ t.beforeEach((c, a) => {
2092
2085
  const f = {
2093
2086
  guard: Ne("beforeEach"),
2094
- from: me(u, "Current Location during this navigation"),
2095
- to: me(a, "Target location")
2087
+ from: ge(a, "Current Location during this navigation"),
2088
+ to: ge(c, "Target location")
2096
2089
  };
2097
- Object.defineProperty(a.meta, "__navigationId", {
2090
+ Object.defineProperty(c.meta, "__navigationId", {
2098
2091
  value: i++
2099
2092
  }), o.addTimelineEvent({
2100
2093
  layerId: s,
2101
2094
  event: {
2102
2095
  time: o.now(),
2103
2096
  title: "Start of navigation",
2104
- subtitle: a.fullPath,
2097
+ subtitle: c.fullPath,
2105
2098
  data: f,
2106
- groupId: a.meta.__navigationId
2099
+ groupId: c.meta.__navigationId
2107
2100
  }
2108
2101
  });
2109
- }), t.afterEach((a, u, f) => {
2110
- const d = {
2102
+ }), t.afterEach((c, a, f) => {
2103
+ const h = {
2111
2104
  guard: Ne("afterEach")
2112
2105
  };
2113
- f ? (d.failure = {
2106
+ f ? (h.failure = {
2114
2107
  _custom: {
2115
2108
  type: Error,
2116
2109
  readOnly: !0,
@@ -2118,54 +2111,54 @@ function es(e, t, n) {
2118
2111
  tooltip: "Navigation Failure",
2119
2112
  value: f
2120
2113
  }
2121
- }, d.status = Ne("❌")) : d.status = Ne("✅"), d.from = me(u, "Current Location during this navigation"), d.to = me(a, "Target location"), o.addTimelineEvent({
2114
+ }, h.status = Ne("❌")) : h.status = Ne("✅"), h.from = ge(a, "Current Location during this navigation"), h.to = ge(c, "Target location"), o.addTimelineEvent({
2122
2115
  layerId: s,
2123
2116
  event: {
2124
2117
  title: "End of navigation",
2125
- subtitle: a.fullPath,
2118
+ subtitle: c.fullPath,
2126
2119
  time: o.now(),
2127
- data: d,
2120
+ data: h,
2128
2121
  logType: f ? "warning" : "default",
2129
- groupId: a.meta.__navigationId
2122
+ groupId: c.meta.__navigationId
2130
2123
  }
2131
2124
  });
2132
2125
  });
2133
- const c = "router-inspector:" + r;
2126
+ const u = "router-inspector:" + r;
2134
2127
  o.addInspector({
2135
- id: c,
2128
+ id: u,
2136
2129
  label: "Routes" + (r ? " " + r : ""),
2137
2130
  icon: "book",
2138
2131
  treeFilterPlaceholder: "Search routes"
2139
2132
  });
2140
2133
  function l() {
2141
- if (!h)
2134
+ if (!d)
2142
2135
  return;
2143
- const a = h;
2144
- let u = n.getRoutes().filter((f) => !f.parent || // these routes have a parent with no component which will not appear in the view
2136
+ const c = d;
2137
+ let a = n.getRoutes().filter((f) => !f.parent || // these routes have a parent with no component which will not appear in the view
2145
2138
  // therefore we still need to include them
2146
2139
  !f.parent.record.components);
2147
- u.forEach(Cn), a.filter && (u = u.filter((f) => (
2140
+ a.forEach(xn), c.filter && (a = a.filter((f) => (
2148
2141
  // save matches state based on the payload
2149
- ut(f, a.filter.toLowerCase())
2150
- ))), u.forEach((f) => jn(f, t.currentRoute.value)), a.rootNodes = u.map($n);
2142
+ lt(f, c.filter.toLowerCase())
2143
+ ))), a.forEach((f) => Cn(f, t.currentRoute.value)), c.rootNodes = a.map(jn);
2151
2144
  }
2152
- let h;
2153
- o.on.getInspectorTree((a) => {
2154
- h = a, a.app === e && a.inspectorId === c && l();
2155
- }), o.on.getInspectorState((a) => {
2156
- if (a.app === e && a.inspectorId === c) {
2157
- const f = n.getRoutes().find((d) => d.record.__vd_id === a.nodeId);
2158
- f && (a.state = {
2159
- options: ns(f)
2145
+ let d;
2146
+ o.on.getInspectorTree((c) => {
2147
+ d = c, c.app === e && c.inspectorId === u && l();
2148
+ }), o.on.getInspectorState((c) => {
2149
+ if (c.app === e && c.inspectorId === u) {
2150
+ const f = n.getRoutes().find((h) => h.record.__vd_id === c.nodeId);
2151
+ f && (c.state = {
2152
+ options: os(f)
2160
2153
  });
2161
2154
  }
2162
- }), o.sendInspectorTree(c), o.sendInspectorState(c);
2155
+ }), o.sendInspectorTree(u), o.sendInspectorState(u);
2163
2156
  });
2164
2157
  }
2165
- function ts(e) {
2158
+ function rs(e) {
2166
2159
  return e.optional ? e.repeatable ? "*" : "?" : e.repeatable ? "+" : "";
2167
2160
  }
2168
- function ns(e) {
2161
+ function os(e) {
2169
2162
  const { record: t } = e, n = [
2170
2163
  { editable: !1, key: "path", value: t.path }
2171
2164
  ];
@@ -2180,7 +2173,7 @@ function ns(e) {
2180
2173
  _custom: {
2181
2174
  type: null,
2182
2175
  readOnly: !0,
2183
- display: e.keys.map((r) => `${r.name}${ts(r)}`).join(" "),
2176
+ display: e.keys.map((r) => `${r.name}${rs(r)}`).join(" "),
2184
2177
  tooltip: "Param keys",
2185
2178
  value: e.keys
2186
2179
  }
@@ -2211,84 +2204,84 @@ function ns(e) {
2211
2204
  }
2212
2205
  }), n;
2213
2206
  }
2214
- const Nn = 15485081, In = 2450411, Tn = 8702998, rs = 2282478, An = 16486972, os = 6710886, ss = 16704226, is = 12131356;
2215
- function $n(e) {
2207
+ const In = 15485081, Tn = 2450411, An = 8702998, ss = 2282478, $n = 16486972, is = 6710886, as = 16704226, cs = 12131356;
2208
+ function jn(e) {
2216
2209
  const t = [], { record: n } = e;
2217
2210
  n.name != null && t.push({
2218
2211
  label: String(n.name),
2219
2212
  textColor: 0,
2220
- backgroundColor: rs
2213
+ backgroundColor: ss
2221
2214
  }), n.aliasOf && t.push({
2222
2215
  label: "alias",
2223
2216
  textColor: 0,
2224
- backgroundColor: An
2217
+ backgroundColor: $n
2225
2218
  }), e.__vd_match && t.push({
2226
2219
  label: "matches",
2227
2220
  textColor: 0,
2228
- backgroundColor: Nn
2221
+ backgroundColor: In
2229
2222
  }), e.__vd_exactActive && t.push({
2230
2223
  label: "exact",
2231
2224
  textColor: 0,
2232
- backgroundColor: Tn
2225
+ backgroundColor: An
2233
2226
  }), e.__vd_active && t.push({
2234
2227
  label: "active",
2235
2228
  textColor: 0,
2236
- backgroundColor: In
2229
+ backgroundColor: Tn
2237
2230
  }), n.redirect && t.push({
2238
2231
  label: typeof n.redirect == "string" ? `redirect: ${n.redirect}` : "redirects",
2239
2232
  textColor: 16777215,
2240
- backgroundColor: os
2233
+ backgroundColor: is
2241
2234
  });
2242
2235
  let r = n.__vd_id;
2243
- return r == null && (r = String(as++), n.__vd_id = r), {
2236
+ return r == null && (r = String(us++), n.__vd_id = r), {
2244
2237
  id: r,
2245
2238
  label: n.path,
2246
2239
  tags: t,
2247
- children: e.children.map($n)
2240
+ children: e.children.map(jn)
2248
2241
  };
2249
2242
  }
2250
- let as = 0;
2251
- const cs = /^\/(.*)\/([a-z]*)$/;
2252
- function jn(e, t) {
2243
+ let us = 0;
2244
+ const ls = /^\/(.*)\/([a-z]*)$/;
2245
+ function Cn(e, t) {
2253
2246
  const n = t.matched.length && te(t.matched[t.matched.length - 1], e.record);
2254
- e.__vd_exactActive = e.__vd_active = n, n || (e.__vd_active = t.matched.some((r) => te(r, e.record))), e.children.forEach((r) => jn(r, t));
2247
+ e.__vd_exactActive = e.__vd_active = n, n || (e.__vd_active = t.matched.some((r) => te(r, e.record))), e.children.forEach((r) => Cn(r, t));
2255
2248
  }
2256
- function Cn(e) {
2257
- e.__vd_match = !1, e.children.forEach(Cn);
2249
+ function xn(e) {
2250
+ e.__vd_match = !1, e.children.forEach(xn);
2258
2251
  }
2259
- function ut(e, t) {
2260
- const n = String(e.re).match(cs);
2252
+ function lt(e, t) {
2253
+ const n = String(e.re).match(ls);
2261
2254
  if (e.__vd_match = !1, !n || n.length < 3)
2262
2255
  return !1;
2263
2256
  if (new RegExp(n[1].replace(/\$$/, ""), n[2]).test(t))
2264
- return e.children.forEach((i) => ut(i, t)), e.record.path !== "/" || t === "/" ? (e.__vd_match = e.re.test(t), !0) : !1;
2257
+ return e.children.forEach((i) => lt(i, t)), e.record.path !== "/" || t === "/" ? (e.__vd_match = e.re.test(t), !0) : !1;
2265
2258
  const o = e.record.path.toLowerCase(), s = ae(o);
2266
- 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) => ut(i, t));
2259
+ 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));
2267
2260
  }
2268
- function us(e, t) {
2261
+ function fs(e, t) {
2269
2262
  const n = {};
2270
2263
  for (const r in e)
2271
2264
  t.includes(r) || (n[r] = e[r]);
2272
2265
  return n;
2273
2266
  }
2274
- function ls(e) {
2275
- const t = Ao(e.routes, e), n = e.parseQuery || Lo, r = e.stringifyQuery || Mt, o = e.history;
2276
- if (S.NODE_ENV !== "production" && !o)
2267
+ function ds(e) {
2268
+ const t = jo(e.routes, e), n = e.parseQuery || Uo, r = e.stringifyQuery || Ft, o = e.history;
2269
+ if (O.NODE_ENV !== "production" && !o)
2277
2270
  throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');
2278
- const s = pe(), i = pe(), c = pe(), l = J(Y);
2279
- let h = Y;
2271
+ const s = me(), i = me(), u = me(), l = J(Y);
2272
+ let d = Y;
2280
2273
  z && e.scrollBehavior && "scrollRestoration" in history && (history.scrollRestoration = "manual");
2281
- const a = He.bind(null, (m) => "" + m), u = He.bind(null, oo), f = (
2274
+ const c = ze.bind(null, (m) => "" + m), a = ze.bind(null, io), f = (
2282
2275
  // @ts-expect-error: intentionally avoid the type check
2283
- He.bind(null, ae)
2276
+ ze.bind(null, ae)
2284
2277
  );
2285
- function d(m, E) {
2286
- let w, b;
2287
- return Pn(m) ? (w = t.getRecordMatcher(m), S.NODE_ENV !== "production" && !w && P(`Parent route "${String(m)}" not found when adding child route`, E), b = E) : b = m, t.addRoute(b, w);
2278
+ function h(m, E) {
2279
+ let w, S;
2280
+ return kn(m) ? (w = t.getRecordMatcher(m), O.NODE_ENV !== "production" && !w && R(`Parent route "${String(m)}" not found when adding child route`, E), S = E) : S = m, t.addRoute(S, w);
2288
2281
  }
2289
2282
  function v(m) {
2290
2283
  const E = t.getRecordMatcher(m);
2291
- E ? t.removeRoute(E) : S.NODE_ENV !== "production" && P(`Cannot remove non-existent route "${String(m)}"`);
2284
+ E ? t.removeRoute(E) : O.NODE_ENV !== "production" && R(`Cannot remove non-existent route "${String(m)}"`);
2292
2285
  }
2293
2286
  function p() {
2294
2287
  return t.getRoutes().map((m) => m.record);
@@ -2298,39 +2291,39 @@ function ls(e) {
2298
2291
  }
2299
2292
  function y(m, E) {
2300
2293
  if (E = I({}, E || l.value), typeof m == "string") {
2301
- const k = ze(n, m, E.path), $ = t.resolve({ path: k.path }, E), re = o.createHref(k.fullPath);
2302
- return S.NODE_ENV !== "production" && (re.startsWith("//") ? P(`Location "${m}" resolved to "${re}". A resolved location cannot start with multiple slashes.`) : $.matched.length || P(`No match found for location with path "${m}"`)), I(k, $, {
2294
+ const k = Je(n, m, E.path), $ = t.resolve({ path: k.path }, E), re = o.createHref(k.fullPath);
2295
+ return O.NODE_ENV !== "production" && (re.startsWith("//") ? R(`Location "${m}" resolved to "${re}". A resolved location cannot start with multiple slashes.`) : $.matched.length || R(`No match found for location with path "${m}"`)), I(k, $, {
2303
2296
  params: f($.params),
2304
2297
  hash: ae(k.hash),
2305
2298
  redirectedFrom: void 0,
2306
2299
  href: re
2307
2300
  });
2308
2301
  }
2309
- if (S.NODE_ENV !== "production" && !Ae(m))
2310
- return P(`router.resolve() was passed an invalid location. This will fail in production.
2302
+ if (O.NODE_ENV !== "production" && !Ae(m))
2303
+ return R(`router.resolve() was passed an invalid location. This will fail in production.
2311
2304
  - Location:`, m), y({});
2312
2305
  let w;
2313
2306
  if (m.path != null)
2314
- S.NODE_ENV !== "production" && "params" in m && !("name" in m) && // @ts-expect-error: the type is never
2315
- Object.keys(m.params).length && P(`Path "${m.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`), w = I({}, m, {
2316
- path: ze(n, m.path, E.path).path
2307
+ O.NODE_ENV !== "production" && "params" in m && !("name" in m) && // @ts-expect-error: the type is never
2308
+ Object.keys(m.params).length && R(`Path "${m.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`), w = I({}, m, {
2309
+ path: Je(n, m.path, E.path).path
2317
2310
  });
2318
2311
  else {
2319
2312
  const k = I({}, m.params);
2320
2313
  for (const $ in k)
2321
2314
  k[$] == null && delete k[$];
2322
2315
  w = I({}, m, {
2323
- params: u(k)
2324
- }), E.params = u(E.params);
2316
+ params: a(k)
2317
+ }), E.params = a(E.params);
2325
2318
  }
2326
- const b = t.resolve(w, E), T = m.hash || "";
2327
- S.NODE_ENV !== "production" && T && !T.startsWith("#") && P(`A \`hash\` should always start with the character "#". Replace "${T}" with "#${T}".`), b.params = a(f(b.params));
2328
- const j = ao(r, I({}, m, {
2329
- hash: to(T),
2330
- path: b.path
2331
- })), V = o.createHref(j);
2332
- return S.NODE_ENV !== "production" && (V.startsWith("//") ? P(`Location "${m}" resolved to "${V}". A resolved location cannot start with multiple slashes.`) : b.matched.length || P(`No match found for location with path "${m.path != null ? m.path : m}"`)), I({
2333
- fullPath: j,
2319
+ const S = t.resolve(w, E), T = m.hash || "";
2320
+ O.NODE_ENV !== "production" && T && !T.startsWith("#") && R(`A \`hash\` should always start with the character "#". Replace "${T}" with "#${T}".`), S.params = c(f(S.params));
2321
+ const C = uo(r, I({}, m, {
2322
+ hash: ro(T),
2323
+ path: S.path
2324
+ })), V = o.createHref(C);
2325
+ return O.NODE_ENV !== "production" && (V.startsWith("//") ? R(`Location "${m}" resolved to "${V}". A resolved location cannot start with multiple slashes.`) : S.matched.length || R(`No match found for location with path "${m.path != null ? m.path : m}"`)), I({
2326
+ fullPath: C,
2334
2327
  // keep the hash encoded so fullPath is effectively path + encodedQuery +
2335
2328
  // hash
2336
2329
  hash: T,
@@ -2340,56 +2333,56 @@ function ls(e) {
2340
2333
  // numbers at `$route.query`, but at the point, the user will have to
2341
2334
  // use their own type anyway.
2342
2335
  // https://github.com/vuejs/router/issues/328#issuecomment-649481567
2343
- r === Mt ? Wo(m.query) : m.query || {}
2336
+ r === Ft ? Ko(m.query) : m.query || {}
2344
2337
  )
2345
- }, b, {
2338
+ }, S, {
2346
2339
  redirectedFrom: void 0,
2347
2340
  href: V
2348
2341
  });
2349
2342
  }
2350
2343
  function _(m) {
2351
- return typeof m == "string" ? ze(n, m, l.value.path) : I({}, m);
2344
+ return typeof m == "string" ? Je(n, m, l.value.path) : I({}, m);
2352
2345
  }
2353
- function O(m, E) {
2354
- if (h !== m)
2346
+ function b(m, E) {
2347
+ if (d !== m)
2355
2348
  return ue(8, {
2356
2349
  from: E,
2357
2350
  to: m
2358
2351
  });
2359
2352
  }
2360
- function R(m) {
2361
- return x(m);
2353
+ function P(m) {
2354
+ return D(m);
2362
2355
  }
2363
- function D(m) {
2364
- return R(I(_(m), { replace: !0 }));
2356
+ function j(m) {
2357
+ return P(I(_(m), { replace: !0 }));
2365
2358
  }
2366
- function C(m) {
2359
+ function x(m) {
2367
2360
  const E = m.matched[m.matched.length - 1];
2368
2361
  if (E && E.redirect) {
2369
2362
  const { redirect: w } = E;
2370
- let b = typeof w == "function" ? w(m) : w;
2371
- if (typeof b == "string" && (b = b.includes("?") || b.includes("#") ? b = _(b) : (
2363
+ let S = typeof w == "function" ? w(m) : w;
2364
+ if (typeof S == "string" && (S = S.includes("?") || S.includes("#") ? S = _(S) : (
2372
2365
  // force empty params
2373
- { path: b }
2374
- ), b.params = {}), S.NODE_ENV !== "production" && b.path == null && !("name" in b))
2375
- throw P(`Invalid redirect found:
2376
- ${JSON.stringify(b, null, 2)}
2366
+ { path: S }
2367
+ ), S.params = {}), O.NODE_ENV !== "production" && S.path == null && !("name" in S))
2368
+ throw R(`Invalid redirect found:
2369
+ ${JSON.stringify(S, null, 2)}
2377
2370
  when navigating to "${m.fullPath}". A redirect must contain a name or path. This will break in production.`), new Error("Invalid redirect");
2378
2371
  return I({
2379
2372
  query: m.query,
2380
2373
  hash: m.hash,
2381
2374
  // avoid transferring params if the redirect has a path
2382
- params: b.path != null ? {} : m.params
2383
- }, b);
2375
+ params: S.path != null ? {} : m.params
2376
+ }, S);
2384
2377
  }
2385
2378
  }
2386
- function x(m, E) {
2387
- const w = h = y(m), b = l.value, T = m.state, j = m.force, V = m.replace === !0, k = C(w);
2379
+ function D(m, E) {
2380
+ const w = d = y(m), S = l.value, T = m.state, C = m.force, V = m.replace === !0, k = x(w);
2388
2381
  if (k)
2389
- return x(
2382
+ return D(
2390
2383
  I(_(k), {
2391
2384
  state: typeof k == "object" ? I({}, T, k.state) : T,
2392
- force: j,
2385
+ force: C,
2393
2386
  replace: V
2394
2387
  }),
2395
2388
  // keep original redirectedFrom if it exists
@@ -2398,25 +2391,25 @@ ${JSON.stringify(b, null, 2)}
2398
2391
  const $ = w;
2399
2392
  $.redirectedFrom = E;
2400
2393
  let re;
2401
- return !j && kt(r, b, w) && (re = ue(16, { to: $, from: b }), _t(
2402
- b,
2403
- b,
2394
+ return !C && Vt(r, S, w) && (re = ue(16, { to: $, from: S }), St(
2395
+ S,
2396
+ S,
2404
2397
  // this is a push, the only way for it to be triggered from a
2405
2398
  // history.listen is with a redirect, which makes it become a push
2406
2399
  !0,
2407
2400
  // This cannot be the first navigation because the initial location
2408
2401
  // cannot be manually navigated to
2409
2402
  !1
2410
- )), (re ? Promise.resolve(re) : vt($, b)).catch((M) => H(M) ? (
2403
+ )), (re ? Promise.resolve(re) : yt($, S)).catch((M) => H(M) ? (
2411
2404
  // navigation redirects still mark the router as ready
2412
2405
  H(
2413
2406
  M,
2414
2407
  2
2415
2408
  /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
2416
- ) ? M : Ke(M)
2409
+ ) ? M : Ge(M)
2417
2410
  ) : (
2418
2411
  // reject any unknown error
2419
- Ue(M, $, b)
2412
+ Ke(M, $, S)
2420
2413
  )).then((M) => {
2421
2414
  if (M) {
2422
2415
  if (H(
@@ -2424,54 +2417,54 @@ ${JSON.stringify(b, null, 2)}
2424
2417
  2
2425
2418
  /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
2426
2419
  ))
2427
- return S.NODE_ENV !== "production" && // we are redirecting to the same location we were already at
2428
- kt(r, y(M.to), $) && // and we have done it a couple of times
2420
+ return O.NODE_ENV !== "production" && // we are redirecting to the same location we were already at
2421
+ Vt(r, y(M.to), $) && // and we have done it a couple of times
2429
2422
  E && // @ts-expect-error: added only in dev
2430
2423
  (E._count = E._count ? (
2431
2424
  // @ts-expect-error
2432
2425
  E._count + 1
2433
- ) : 1) > 30 ? (P(`Detected a possibly infinite redirection in a navigation guard when going from "${b.fullPath}" to "${$.fullPath}". Aborting to avoid a Stack Overflow.
2434
- Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`), Promise.reject(new Error("Infinite redirect in navigation guard"))) : x(
2426
+ ) : 1) > 30 ? (R(`Detected a possibly infinite redirection in a navigation guard when going from "${S.fullPath}" to "${$.fullPath}". Aborting to avoid a Stack Overflow.
2427
+ Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`), Promise.reject(new Error("Infinite redirect in navigation guard"))) : D(
2435
2428
  // keep options
2436
2429
  I({
2437
2430
  // preserve an existing replacement but allow the redirect to override it
2438
2431
  replace: V
2439
2432
  }, _(M.to), {
2440
2433
  state: typeof M.to == "object" ? I({}, T, M.to.state) : T,
2441
- force: j
2434
+ force: C
2442
2435
  }),
2443
2436
  // preserve the original redirectedFrom if any
2444
2437
  E || $
2445
2438
  );
2446
2439
  } else
2447
- M = wt($, b, !0, V, T);
2448
- return yt($, b, M), M;
2440
+ M = Et($, S, !0, V, T);
2441
+ return wt($, S, M), M;
2449
2442
  });
2450
2443
  }
2451
- function Le(m, E) {
2452
- const w = O(m, E);
2444
+ function We(m, E) {
2445
+ const w = b(m, E);
2453
2446
  return w ? Promise.reject(w) : Promise.resolve();
2454
2447
  }
2455
- function le(m) {
2448
+ function fe(m) {
2456
2449
  const E = ke.values().next().value;
2457
2450
  return E && typeof E.runWithContext == "function" ? E.runWithContext(m) : m();
2458
2451
  }
2459
- function vt(m, E) {
2452
+ function yt(m, E) {
2460
2453
  let w;
2461
- const [b, T, j] = fs(m, E);
2462
- w = Qe(b.reverse(), "beforeRouteLeave", m, E);
2463
- for (const k of b)
2454
+ const [S, T, C] = hs(m, E);
2455
+ w = Ye(S.reverse(), "beforeRouteLeave", m, E);
2456
+ for (const k of S)
2464
2457
  k.leaveGuards.forEach(($) => {
2465
2458
  w.push(X($, m, E));
2466
2459
  });
2467
- const V = Le.bind(null, m, E);
2460
+ const V = We.bind(null, m, E);
2468
2461
  return w.push(V), se(w).then(() => {
2469
2462
  w = [];
2470
2463
  for (const k of s.list())
2471
2464
  w.push(X(k, m, E));
2472
2465
  return w.push(V), se(w);
2473
2466
  }).then(() => {
2474
- w = Qe(T, "beforeRouteUpdate", m, E);
2467
+ w = Ye(T, "beforeRouteUpdate", m, E);
2475
2468
  for (const k of T)
2476
2469
  k.updateGuards.forEach(($) => {
2477
2470
  w.push(X($, m, E));
@@ -2479,15 +2472,15 @@ ${JSON.stringify(b, null, 2)}
2479
2472
  return w.push(V), se(w);
2480
2473
  }).then(() => {
2481
2474
  w = [];
2482
- for (const k of j)
2475
+ for (const k of C)
2483
2476
  if (k.beforeEnter)
2484
- if (K(k.beforeEnter))
2477
+ if (U(k.beforeEnter))
2485
2478
  for (const $ of k.beforeEnter)
2486
2479
  w.push(X($, m, E));
2487
2480
  else
2488
2481
  w.push(X(k.beforeEnter, m, E));
2489
2482
  return w.push(V), se(w);
2490
- }).then(() => (m.matched.forEach((k) => k.enterCallbacks = {}), w = Qe(j, "beforeRouteEnter", m, E, le), w.push(V), se(w))).then(() => {
2483
+ }).then(() => (m.matched.forEach((k) => k.enterCallbacks = {}), w = Ye(C, "beforeRouteEnter", m, E, fe), w.push(V), se(w))).then(() => {
2491
2484
  w = [];
2492
2485
  for (const k of i.list())
2493
2486
  w.push(X(k, m, E));
@@ -2498,31 +2491,31 @@ ${JSON.stringify(b, null, 2)}
2498
2491
  /* ErrorTypes.NAVIGATION_CANCELLED */
2499
2492
  ) ? k : Promise.reject(k));
2500
2493
  }
2501
- function yt(m, E, w) {
2502
- c.list().forEach((b) => le(() => b(m, E, w)));
2494
+ function wt(m, E, w) {
2495
+ u.list().forEach((S) => fe(() => S(m, E, w)));
2503
2496
  }
2504
- function wt(m, E, w, b, T) {
2505
- const j = O(m, E);
2506
- if (j)
2507
- return j;
2497
+ function Et(m, E, w, S, T) {
2498
+ const C = b(m, E);
2499
+ if (C)
2500
+ return C;
2508
2501
  const V = E === Y, k = z ? history.state : {};
2509
- w && (b || V ? o.replace(m.fullPath, I({
2502
+ w && (S || V ? o.replace(m.fullPath, I({
2510
2503
  scroll: V && k && k.scroll
2511
- }, T)) : o.push(m.fullPath, T)), l.value = m, _t(m, E, w, V), Ke();
2504
+ }, T)) : o.push(m.fullPath, T)), l.value = m, St(m, E, w, V), Ge();
2512
2505
  }
2513
- let fe;
2514
- function Bn() {
2515
- fe || (fe = o.listen((m, E, w) => {
2516
- if (!Ot.listening)
2506
+ let de;
2507
+ function Un() {
2508
+ de || (de = o.listen((m, E, w) => {
2509
+ if (!bt.listening)
2517
2510
  return;
2518
- const b = y(m), T = C(b);
2511
+ const S = y(m), T = x(S);
2519
2512
  if (T) {
2520
- x(I(T, { replace: !0, force: !0 }), b).catch(ve);
2513
+ D(I(T, { replace: !0, force: !0 }), S).catch(ye);
2521
2514
  return;
2522
2515
  }
2523
- h = b;
2524
- const j = l.value;
2525
- z && po(Nt(j.fullPath, w.delta), Fe()), vt(b, j).catch((V) => H(
2516
+ d = S;
2517
+ const C = l.value;
2518
+ z && go(It(C.fullPath, w.delta), Be()), yt(S, C).catch((V) => H(
2526
2519
  V,
2527
2520
  12
2528
2521
  /* ErrorTypes.NAVIGATION_CANCELLED */
@@ -2530,11 +2523,11 @@ ${JSON.stringify(b, null, 2)}
2530
2523
  V,
2531
2524
  2
2532
2525
  /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
2533
- ) ? (x(
2526
+ ) ? (D(
2534
2527
  I(_(V.to), {
2535
2528
  force: !0
2536
2529
  }),
2537
- b
2530
+ S
2538
2531
  // avoid an uncaught rejection, let push call triggerError
2539
2532
  ).then((k) => {
2540
2533
  H(
@@ -2542,11 +2535,11 @@ ${JSON.stringify(b, null, 2)}
2542
2535
  20
2543
2536
  /* ErrorTypes.NAVIGATION_DUPLICATED */
2544
2537
  ) && !w.delta && w.type === ce.pop && o.go(-1, !1);
2545
- }).catch(ve), Promise.reject()) : (w.delta && o.go(-w.delta, !1), Ue(V, b, j))).then((V) => {
2546
- V = V || wt(
2538
+ }).catch(ye), Promise.reject()) : (w.delta && o.go(-w.delta, !1), Ke(V, S, C))).then((V) => {
2539
+ V = V || Et(
2547
2540
  // after navigation, all matched components are resolved
2548
- b,
2549
- j,
2541
+ S,
2542
+ C,
2550
2543
  !1
2551
2544
  ), V && (w.delta && // a new navigation has been triggered, so we do not want to revert, that will change the current history
2552
2545
  // entry while a different route is displayed
@@ -2558,62 +2551,62 @@ ${JSON.stringify(b, null, 2)}
2558
2551
  V,
2559
2552
  20
2560
2553
  /* ErrorTypes.NAVIGATION_DUPLICATED */
2561
- ) && o.go(-1, !1)), yt(b, j, V);
2562
- }).catch(ve);
2554
+ ) && o.go(-1, !1)), wt(S, C, V);
2555
+ }).catch(ye);
2563
2556
  }));
2564
2557
  }
2565
- let We = pe(), Et = pe(), Pe;
2566
- function Ue(m, E, w) {
2567
- Ke(m);
2568
- const b = Et.list();
2569
- return b.length ? b.forEach((T) => T(m, E, w)) : (S.NODE_ENV !== "production" && P("uncaught error during route navigation:"), console.error(m)), Promise.reject(m);
2558
+ let Ue = me(), _t = me(), Pe;
2559
+ function Ke(m, E, w) {
2560
+ Ge(m);
2561
+ const S = _t.list();
2562
+ return S.length ? S.forEach((T) => T(m, E, w)) : (O.NODE_ENV !== "production" && R("uncaught error during route navigation:"), console.error(m)), Promise.reject(m);
2570
2563
  }
2571
- function Ln() {
2564
+ function Kn() {
2572
2565
  return Pe && l.value !== Y ? Promise.resolve() : new Promise((m, E) => {
2573
- We.add([m, E]);
2566
+ Ue.add([m, E]);
2574
2567
  });
2575
2568
  }
2576
- function Ke(m) {
2577
- return Pe || (Pe = !m, Bn(), We.list().forEach(([E, w]) => m ? w(m) : E()), We.reset()), m;
2569
+ function Ge(m) {
2570
+ return Pe || (Pe = !m, Un(), Ue.list().forEach(([E, w]) => m ? w(m) : E()), Ue.reset()), m;
2578
2571
  }
2579
- function _t(m, E, w, b) {
2572
+ function St(m, E, w, S) {
2580
2573
  const { scrollBehavior: T } = e;
2581
2574
  if (!z || !T)
2582
2575
  return Promise.resolve();
2583
- const j = !w && mo(Nt(m.fullPath, 0)) || (b || !w) && history.state && history.state.scroll || null;
2584
- return Te().then(() => T(m, E, j)).then((V) => V && ho(V)).catch((V) => Ue(V, m, E));
2576
+ const C = !w && vo(It(m.fullPath, 0)) || (S || !w) && history.state && history.state.scroll || null;
2577
+ return Te().then(() => T(m, E, C)).then((V) => V && mo(V)).catch((V) => Ke(V, m, E));
2585
2578
  }
2586
- const Ge = (m) => o.go(m);
2587
- let qe;
2588
- const ke = /* @__PURE__ */ new Set(), Ot = {
2579
+ const qe = (m) => o.go(m);
2580
+ let He;
2581
+ const ke = /* @__PURE__ */ new Set(), bt = {
2589
2582
  currentRoute: l,
2590
2583
  listening: !0,
2591
- addRoute: d,
2584
+ addRoute: h,
2592
2585
  removeRoute: v,
2593
2586
  clearRoutes: t.clearRoutes,
2594
2587
  hasRoute: g,
2595
2588
  getRoutes: p,
2596
2589
  resolve: y,
2597
2590
  options: e,
2598
- push: R,
2599
- replace: D,
2600
- go: Ge,
2601
- back: () => Ge(-1),
2602
- forward: () => Ge(1),
2591
+ push: P,
2592
+ replace: j,
2593
+ go: qe,
2594
+ back: () => qe(-1),
2595
+ forward: () => qe(1),
2603
2596
  beforeEach: s.add,
2604
2597
  beforeResolve: i.add,
2605
- afterEach: c.add,
2606
- onError: Et.add,
2607
- isReady: Ln,
2598
+ afterEach: u.add,
2599
+ onError: _t.add,
2600
+ isReady: Kn,
2608
2601
  install(m) {
2609
2602
  const E = this;
2610
- m.component("RouterLink", Ho), m.component("RouterView", Yo), m.config.globalProperties.$router = E, Object.defineProperty(m.config.globalProperties, "$route", {
2603
+ m.component("RouterLink", Jo), m.component("RouterView", Zo), m.config.globalProperties.$router = E, Object.defineProperty(m.config.globalProperties, "$route", {
2611
2604
  enumerable: !0,
2612
- get: () => W(l)
2605
+ get: () => L(l)
2613
2606
  }), z && // used for the initial navigation client side to avoid pushing
2614
2607
  // multiple times when the router is used in multiple apps
2615
- !qe && l.value === Y && (qe = !0, R(o.location).catch((T) => {
2616
- S.NODE_ENV !== "production" && P("Unexpected error when starting the router:", T);
2608
+ !He && l.value === Y && (He = !0, P(o.location).catch((T) => {
2609
+ O.NODE_ENV !== "production" && R("Unexpected error when starting the router:", T);
2617
2610
  }));
2618
2611
  const w = {};
2619
2612
  for (const T in Y)
@@ -2621,66 +2614,76 @@ ${JSON.stringify(b, null, 2)}
2621
2614
  get: () => l.value[T],
2622
2615
  enumerable: !0
2623
2616
  });
2624
- m.provide(Be, E), m.provide(gt, Hn(w)), m.provide(ct, l);
2625
- const b = m.unmount;
2617
+ m.provide(Le, E), m.provide(vt, Qn(w)), m.provide(ut, l);
2618
+ const S = m.unmount;
2626
2619
  ke.add(m), m.unmount = function() {
2627
- ke.delete(m), ke.size < 1 && (h = Y, fe && fe(), fe = null, l.value = Y, qe = !1, Pe = !1), b();
2628
- }, S.NODE_ENV !== "production" && z && es(m, E, t);
2620
+ ke.delete(m), ke.size < 1 && (d = Y, de && de(), de = null, l.value = Y, He = !1, Pe = !1), S();
2621
+ }, O.NODE_ENV !== "production" && z && ns(m, E, t);
2629
2622
  }
2630
2623
  };
2631
2624
  function se(m) {
2632
- return m.reduce((E, w) => E.then(() => le(w)), Promise.resolve());
2625
+ return m.reduce((E, w) => E.then(() => fe(w)), Promise.resolve());
2633
2626
  }
2634
- return Ot;
2627
+ return bt;
2635
2628
  }
2636
- function fs(e, t) {
2629
+ function hs(e, t) {
2637
2630
  const n = [], r = [], o = [], s = Math.max(t.matched.length, e.matched.length);
2638
2631
  for (let i = 0; i < s; i++) {
2639
- const c = t.matched[i];
2640
- c && (e.matched.find((h) => te(h, c)) ? r.push(c) : n.push(c));
2632
+ const u = t.matched[i];
2633
+ u && (e.matched.find((d) => te(d, u)) ? r.push(u) : n.push(u));
2641
2634
  const l = e.matched[i];
2642
- l && (t.matched.find((h) => te(h, l)) || o.push(l));
2635
+ l && (t.matched.find((d) => te(d, l)) || o.push(l));
2643
2636
  }
2644
2637
  return [n, r, o];
2645
2638
  }
2646
- function hs() {
2647
- return ee(Be);
2639
+ function ps() {
2640
+ return ee(Le);
2648
2641
  }
2649
- function ds(e) {
2650
- return ee(gt);
2642
+ function ms(e) {
2643
+ return ee(vt);
2644
+ }
2645
+ const Dn = /* @__PURE__ */ new Map();
2646
+ function gs(e) {
2647
+ var t;
2648
+ (t = e.jsFn) == null || t.forEach((n) => {
2649
+ Dn.set(n.id, W(n.code));
2650
+ });
2651
+ }
2652
+ function vs(e) {
2653
+ return Dn.get(e);
2651
2654
  }
2652
2655
  function ne(e) {
2653
- let t = sn(), n = Rr(), r = Tr(e), o = un(), s = hs(), i = ds();
2654
- function c(p) {
2656
+ let t = an(), n = Vr(), r = jr(e), o = ln(), s = ps(), i = ms();
2657
+ function u(p) {
2655
2658
  p.scopeSnapshot && (t = p.scopeSnapshot), p.slotSnapshot && (n = p.slotSnapshot), p.vforSnapshot && (r = p.vforSnapshot), p.elementRefSnapshot && (o = p.elementRefSnapshot), p.routerSnapshot && (s = p.routerSnapshot);
2656
2659
  }
2657
2660
  function l(p) {
2658
2661
  if (N.isVar(p))
2659
- return q(h(p));
2662
+ return q(d(p));
2660
2663
  if (N.isVForItem(p))
2661
- return $r(p.fid) ? r.getVForIndex(p.fid) : q(h(p));
2664
+ return xr(p.fid) ? r.getVForIndex(p.fid) : q(d(p));
2662
2665
  if (N.isVForIndex(p))
2663
2666
  return r.getVForIndex(p.fid);
2664
- if (N.isJs(p)) {
2665
- const { code: g, bind: y } = p, _ = Oe(y, (O) => a(O));
2666
- return xr(g, _)();
2667
+ if (N.isJsFn(p)) {
2668
+ const { id: g } = p;
2669
+ return vs(g);
2667
2670
  }
2668
2671
  if (N.isSlotProp(p))
2669
2672
  return n.getPropsValue(p);
2670
2673
  if (N.isRouterParams(p))
2671
- return q(h(p));
2674
+ return q(d(p));
2672
2675
  throw new Error(`Invalid binding: ${p}`);
2673
2676
  }
2674
- function h(p) {
2677
+ function d(p) {
2675
2678
  if (N.isVar(p)) {
2676
- const g = t.getVueRef(p) || yr(p);
2677
- return St(g, {
2679
+ const g = t.getVueRef(p) || _r(p);
2680
+ return Rt(g, {
2678
2681
  paths: p.path,
2679
2682
  getBindableValueFn: l
2680
2683
  });
2681
2684
  }
2682
2685
  if (N.isVForItem(p))
2683
- return Ar({
2686
+ return Cr({
2684
2687
  binding: p,
2685
2688
  snapshot: v
2686
2689
  });
@@ -2688,25 +2691,23 @@ function ne(e) {
2688
2691
  return () => l(p);
2689
2692
  if (N.isRouterParams(p)) {
2690
2693
  const { prop: g = "params" } = p;
2691
- return St(() => i[g], {
2694
+ return Rt(() => i[g], {
2692
2695
  paths: p.path,
2693
2696
  getBindableValueFn: l
2694
2697
  });
2695
2698
  }
2696
2699
  throw new Error(`Invalid binding: ${p}`);
2697
2700
  }
2698
- function a(p) {
2701
+ function c(p) {
2699
2702
  if (N.isVar(p) || N.isVForItem(p))
2700
- return h(p);
2701
- if (N.isVForIndex(p))
2703
+ return d(p);
2704
+ if (N.isVForIndex(p) || N.isJsFn(p))
2702
2705
  return l(p);
2703
- if (N.isJs(p))
2704
- return null;
2705
2706
  if (N.isRouterParams(p))
2706
- return h(p);
2707
+ return d(p);
2707
2708
  throw new Error(`Invalid binding: ${p}`);
2708
2709
  }
2709
- function u(p) {
2710
+ function a(p) {
2710
2711
  if (N.isVar(p))
2711
2712
  return {
2712
2713
  sid: p.sid,
@@ -2723,13 +2724,13 @@ function ne(e) {
2723
2724
  fid: p.fid,
2724
2725
  value: null
2725
2726
  };
2726
- if (N.isJs(p))
2727
- return null;
2727
+ if (N.isJsFn(p))
2728
+ return l(p);
2728
2729
  }
2729
2730
  function f(p) {
2730
2731
  var g, y;
2731
2732
  (g = p.vars) == null || g.forEach((_) => {
2732
- h({ type: "var", ..._ }).value = _.val;
2733
+ d({ type: "var", ..._ }).value = _.val;
2733
2734
  }), (y = p.ele_refs) == null || y.forEach((_) => {
2734
2735
  o.getRef({
2735
2736
  sid: _.sid,
@@ -2737,55 +2738,50 @@ function ne(e) {
2737
2738
  }).value[_.method](..._.args);
2738
2739
  });
2739
2740
  }
2740
- function d(p, g) {
2741
- if (Rt(g) || Rt(p.values))
2741
+ function h(p, g) {
2742
+ if (Pt(g) || Pt(p.values))
2742
2743
  return;
2743
2744
  g = g;
2744
2745
  const y = p.values, _ = p.skips || new Array(g.length).fill(0);
2745
- g.forEach((O, R) => {
2746
- if (_[R] === 1)
2746
+ g.forEach((b, P) => {
2747
+ if (_[P] === 1)
2747
2748
  return;
2748
- if (N.isVar(O)) {
2749
- const C = h(O);
2750
- C.value = y[R];
2749
+ if (N.isVar(b)) {
2750
+ const x = d(b);
2751
+ x.value = y[P];
2751
2752
  return;
2752
2753
  }
2753
- if (N.isRouterAction(O)) {
2754
- const C = y[R], x = s[C.fn];
2755
- x(...C.args);
2754
+ if (N.isRouterAction(b)) {
2755
+ const x = y[P], D = s[x.fn];
2756
+ D(...x.args);
2756
2757
  return;
2757
2758
  }
2758
- if (N.isElementRef(O)) {
2759
- const C = o.getRef(O).value, x = y[R], { method: Le, args: le = [] } = x;
2760
- C[Le](...le);
2759
+ if (N.isElementRef(b)) {
2760
+ const x = o.getRef(b).value, D = y[P], { method: We, args: fe = [] } = D;
2761
+ x[We](...fe);
2761
2762
  return;
2762
2763
  }
2763
- if (N.isJsOutput(O)) {
2764
- const C = y[R], x = L(C);
2765
- typeof x == "function" && x();
2766
- return;
2767
- }
2768
- const D = h(O);
2769
- D.value = y[R];
2764
+ const j = d(b);
2765
+ j.value = y[P];
2770
2766
  });
2771
2767
  }
2772
2768
  const v = {
2773
2769
  getVForIndex: r.getVForIndex,
2774
2770
  getObjectToValue: l,
2775
- getVueRefObject: h,
2776
- getVueRefObjectOrValue: a,
2777
- getBindingServerInfo: u,
2771
+ getVueRefObject: d,
2772
+ getVueRefObjectOrValue: c,
2773
+ getBindingServerInfo: a,
2778
2774
  updateRefFromServer: f,
2779
- updateOutputsRefFromServer: d,
2780
- replaceSnapshot: c
2775
+ updateOutputsRefFromServer: h,
2776
+ replaceSnapshot: u
2781
2777
  };
2782
2778
  return v;
2783
2779
  }
2784
- class ps {
2780
+ class ys {
2785
2781
  async eventSend(t, n) {
2786
- const { fType: r, hKey: o, key: s } = t, i = Xe().webServerInfo, c = s !== void 0 ? { key: s } : {}, l = r === "sync" ? i.event_url : i.event_async_url;
2787
- let h = {};
2788
- const a = await fetch(l, {
2782
+ const { fType: r, hKey: o, key: s } = t, i = Ze().webServerInfo, u = s !== void 0 ? { key: s } : {}, l = r === "sync" ? i.event_url : i.event_async_url;
2783
+ let d = {};
2784
+ const c = await fetch(l, {
2789
2785
  method: "POST",
2790
2786
  headers: {
2791
2787
  "Content-Type": "application/json"
@@ -2793,20 +2789,20 @@ class ps {
2793
2789
  body: JSON.stringify({
2794
2790
  bind: n,
2795
2791
  hKey: o,
2796
- ...c,
2797
- page: ye(),
2798
- ...h
2792
+ ...u,
2793
+ page: we(),
2794
+ ...d
2799
2795
  })
2800
2796
  });
2801
- if (!a.ok)
2802
- throw new Error(`HTTP error! status: ${a.status}`);
2803
- return await a.json();
2797
+ if (!c.ok)
2798
+ throw new Error(`HTTP error! status: ${c.status}`);
2799
+ return await c.json();
2804
2800
  }
2805
2801
  async watchSend(t) {
2806
- const { outputs: n, fType: r, key: o } = t.watchConfig, s = Xe().webServerInfo, i = r === "sync" ? s.watch_url : s.watch_async_url, c = t.getServerInputs(), l = {
2802
+ const { outputs: n, fType: r, key: o } = t.watchConfig, s = Ze().webServerInfo, i = r === "sync" ? s.watch_url : s.watch_async_url, u = t.getServerInputs(), l = {
2807
2803
  key: o,
2808
- input: c,
2809
- page: ye()
2804
+ input: u,
2805
+ page: we()
2810
2806
  };
2811
2807
  return await (await fetch(i, {
2812
2808
  method: "POST",
@@ -2817,17 +2813,17 @@ class ps {
2817
2813
  })).json();
2818
2814
  }
2819
2815
  }
2820
- class ms {
2816
+ class ws {
2821
2817
  async eventSend(t, n) {
2822
2818
  const { fType: r, hKey: o, key: s } = t, i = s !== void 0 ? { key: s } : {};
2823
- let c = {};
2819
+ let u = {};
2824
2820
  const l = {
2825
2821
  bind: n,
2826
2822
  fType: r,
2827
2823
  hKey: o,
2828
2824
  ...i,
2829
- page: ye(),
2830
- ...c
2825
+ page: we(),
2826
+ ...u
2831
2827
  };
2832
2828
  return await window.pywebview.api.event_call(l);
2833
2829
  }
@@ -2836,26 +2832,26 @@ class ms {
2836
2832
  key: o,
2837
2833
  input: s,
2838
2834
  fType: r,
2839
- page: ye()
2835
+ page: we()
2840
2836
  };
2841
2837
  return await window.pywebview.api.watch_call(i);
2842
2838
  }
2843
2839
  }
2844
- let lt;
2845
- function gs(e) {
2840
+ let ft;
2841
+ function Es(e) {
2846
2842
  switch (e.mode) {
2847
2843
  case "web":
2848
- lt = new ps();
2844
+ ft = new ys();
2849
2845
  break;
2850
2846
  case "webview":
2851
- lt = new ms();
2847
+ ft = new ws();
2852
2848
  break;
2853
2849
  }
2854
2850
  }
2855
- function xn() {
2856
- return lt;
2851
+ function Mn() {
2852
+ return ft;
2857
2853
  }
2858
- function vs(e) {
2854
+ function _s(e) {
2859
2855
  const t = {
2860
2856
  type: "var",
2861
2857
  sid: e.sid,
@@ -2867,52 +2863,52 @@ function vs(e) {
2867
2863
  outputs: [t, ...e.outputs || []]
2868
2864
  };
2869
2865
  }
2870
- function ys(e, t, n) {
2871
- return new ws(e, t, n);
2866
+ function Ss(e, t, n) {
2867
+ return new bs(e, t, n);
2872
2868
  }
2873
- class ws {
2869
+ class bs {
2874
2870
  constructor(t, n, r) {
2875
2871
  B(this, "taskQueue", []);
2876
2872
  B(this, "id2TaskMap", /* @__PURE__ */ new Map());
2877
- B(this, "input2TaskIdMap", _e(() => []));
2873
+ B(this, "input2TaskIdMap", Se(() => []));
2878
2874
  this.snapshots = r;
2879
2875
  const o = [], s = (i) => {
2880
2876
  var l;
2881
- const c = new Es(i, r);
2882
- return this.id2TaskMap.set(c.id, c), (l = i.inputs) == null || l.forEach((h, a) => {
2883
- var f, d;
2884
- if (((f = i.data) == null ? void 0 : f[a]) === 0 && ((d = i.slient) == null ? void 0 : d[a]) === 0) {
2885
- const v = `${h.sid}-${h.id}`;
2886
- this.input2TaskIdMap.getOrDefault(v).push(c.id);
2877
+ const u = new Os(i, r);
2878
+ return this.id2TaskMap.set(u.id, u), (l = i.inputs) == null || l.forEach((d, c) => {
2879
+ var f, h;
2880
+ if (((f = i.data) == null ? void 0 : f[c]) === 0 && ((h = i.slient) == null ? void 0 : h[c]) === 0) {
2881
+ const v = `${d.sid}-${d.id}`;
2882
+ this.input2TaskIdMap.getOrDefault(v).push(u.id);
2887
2883
  }
2888
- }), c;
2884
+ }), u;
2889
2885
  };
2890
2886
  t == null || t.forEach((i) => {
2891
- const c = s(i);
2892
- o.push(c);
2887
+ const u = s(i);
2888
+ o.push(u);
2893
2889
  }), n == null || n.forEach((i) => {
2894
- const c = s(
2895
- vs(i)
2890
+ const u = s(
2891
+ _s(i)
2896
2892
  );
2897
- o.push(c);
2893
+ o.push(u);
2898
2894
  }), o.forEach((i) => {
2899
2895
  const {
2900
- deep: c = !0,
2896
+ deep: u = !0,
2901
2897
  once: l,
2902
- flush: h,
2903
- immediate: a = !0
2904
- } = i.watchConfig, u = {
2905
- immediate: a,
2906
- deep: c,
2898
+ flush: d,
2899
+ immediate: c = !0
2900
+ } = i.watchConfig, a = {
2901
+ immediate: c,
2902
+ deep: u,
2907
2903
  once: l,
2908
- flush: h
2904
+ flush: d
2909
2905
  }, f = this._getWatchTargets(i);
2910
2906
  G(
2911
2907
  f,
2912
- (d) => {
2913
- d.some(Ee) || (i.modify = !0, this.taskQueue.push(new _s(i)), this._scheduleNextTick());
2908
+ (h) => {
2909
+ h.some(_e) || (i.modify = !0, this.taskQueue.push(new Rs(i)), this._scheduleNextTick());
2914
2910
  },
2915
- u
2911
+ a
2916
2912
  );
2917
2913
  });
2918
2914
  }
@@ -2960,7 +2956,7 @@ class ws {
2960
2956
  }), n;
2961
2957
  }
2962
2958
  }
2963
- class Es {
2959
+ class Os {
2964
2960
  constructor(t, n) {
2965
2961
  B(this, "modify", !0);
2966
2962
  B(this, "_running", !1);
@@ -3016,7 +3012,7 @@ class Es {
3016
3012
  }
3017
3013
  }
3018
3014
  }
3019
- class _s {
3015
+ class Rs {
3020
3016
  /**
3021
3017
  *
3022
3018
  */
@@ -3061,89 +3057,89 @@ class _s {
3061
3057
  if (this.watchTask.modify) {
3062
3058
  this.watchTask.modify = !1, this.watchTask.setRunning();
3063
3059
  try {
3064
- await Os(this.watchTask);
3060
+ await Ps(this.watchTask);
3065
3061
  } finally {
3066
3062
  this.watchTask.taskDone();
3067
3063
  }
3068
3064
  }
3069
3065
  }
3070
3066
  }
3071
- async function Os(e) {
3072
- const { snapshot: t } = e, { outputs: n } = e.watchConfig, r = await xn().watchSend(e);
3067
+ async function Ps(e) {
3068
+ const { snapshot: t } = e, { outputs: n } = e.watchConfig, r = await Mn().watchSend(e);
3073
3069
  r && t.updateOutputsRefFromServer(r, n);
3074
3070
  }
3075
- function bs(e, t) {
3071
+ function ks(e, t) {
3076
3072
  const {
3077
3073
  on: n,
3078
3074
  code: r,
3079
3075
  immediate: o,
3080
3076
  deep: s,
3081
3077
  once: i,
3082
- flush: c,
3078
+ flush: u,
3083
3079
  bind: l = {},
3084
- onData: h,
3085
- bindData: a
3086
- } = e, u = h || new Array(n.length).fill(0), f = a || new Array(Object.keys(l).length).fill(0), d = Oe(
3080
+ onData: d,
3081
+ bindData: c
3082
+ } = e, a = d || new Array(n.length).fill(0), f = c || new Array(Object.keys(l).length).fill(0), h = Me(
3087
3083
  l,
3088
3084
  (g, y, _) => f[_] === 0 ? t.getVueRefObject(g) : g
3089
- ), v = L(r, d), p = n.length === 1 ? Kt(u[0] === 1, n[0], t) : n.map(
3090
- (g, y) => Kt(u[y] === 1, g, t)
3085
+ ), v = W(r, h), p = n.length === 1 ? Gt(a[0] === 1, n[0], t) : n.map(
3086
+ (g, y) => Gt(a[y] === 1, g, t)
3091
3087
  );
3092
- return G(p, v, { immediate: o, deep: s, once: i, flush: c });
3088
+ return G(p, v, { immediate: o, deep: s, once: i, flush: u });
3093
3089
  }
3094
- function Kt(e, t, n) {
3090
+ function Gt(e, t, n) {
3095
3091
  return e ? () => t : n.getVueRefObject(t);
3096
3092
  }
3097
- function Ss(e, t) {
3093
+ function Vs(e, t) {
3098
3094
  const {
3099
3095
  inputs: n = [],
3100
3096
  outputs: r,
3101
3097
  slient: o,
3102
3098
  data: s,
3103
3099
  code: i,
3104
- immediate: c = !0,
3100
+ immediate: u = !0,
3105
3101
  deep: l,
3106
- once: h,
3107
- flush: a
3108
- } = e, u = o || new Array(n.length).fill(0), f = s || new Array(n.length).fill(0), d = L(i), v = n.filter((g, y) => u[y] === 0 && f[y] === 0).map((g) => t.getVueRefObject(g));
3102
+ once: d,
3103
+ flush: c
3104
+ } = e, a = o || new Array(n.length).fill(0), f = s || new Array(n.length).fill(0), h = W(i), v = n.filter((g, y) => a[y] === 0 && f[y] === 0).map((g) => t.getVueRefObject(g));
3109
3105
  function p() {
3110
- return n.map((g, y) => f[y] === 0 ? nn(q(t.getVueRefObject(g))) : g);
3106
+ return n.map((g, y) => f[y] === 0 ? rn(q(t.getVueRefObject(g))) : g);
3111
3107
  }
3112
3108
  G(
3113
3109
  v,
3114
3110
  () => {
3115
- let g = d(...p());
3111
+ let g = h(...p());
3116
3112
  if (!r)
3117
3113
  return;
3118
- const _ = r.length === 1 ? [g] : g, O = _.map((R) => R === void 0 ? 1 : 0);
3114
+ const _ = r.length === 1 ? [g] : g, b = _.map((P) => P === void 0 ? 1 : 0);
3119
3115
  t.updateOutputsRefFromServer(
3120
- { values: _, skips: O },
3116
+ { values: _, skips: b },
3121
3117
  r
3122
3118
  );
3123
3119
  },
3124
- { immediate: c, deep: l, once: h, flush: a }
3120
+ { immediate: u, deep: l, once: d, flush: c }
3125
3121
  );
3126
3122
  }
3127
- function Rs(e, t) {
3123
+ function Ns(e, t) {
3128
3124
  return Object.assign(
3129
3125
  {},
3130
3126
  ...Object.entries(e ?? {}).map(([n, r]) => {
3131
- const o = r.map((c) => {
3132
- if (c.type === "web") {
3133
- const l = Ps(c.bind, t);
3134
- return ks(c, l, t);
3127
+ const o = r.map((u) => {
3128
+ if (u.type === "web") {
3129
+ const l = Is(u.bind, t);
3130
+ return Ts(u, l, t);
3135
3131
  } else {
3136
- if (c.type === "vue")
3137
- return Ns(c, t);
3138
- if (c.type === "js")
3139
- return Vs(c, t);
3132
+ if (u.type === "vue")
3133
+ return $s(u, t);
3134
+ if (u.type === "js")
3135
+ return As(u, t);
3140
3136
  }
3141
- throw new Error(`unknown event type ${c}`);
3142
- }), i = L(
3137
+ throw new Error(`unknown event type ${u}`);
3138
+ }), i = W(
3143
3139
  " (...args)=> Promise.all(promises(...args))",
3144
3140
  {
3145
- promises: (...c) => o.map(async (l) => {
3146
- await l(...c);
3141
+ promises: (...u) => o.map(async (l) => {
3142
+ await l(...u);
3147
3143
  })
3148
3144
  }
3149
3145
  );
@@ -3151,86 +3147,86 @@ function Rs(e, t) {
3151
3147
  })
3152
3148
  );
3153
3149
  }
3154
- function Ps(e, t) {
3150
+ function Is(e, t) {
3155
3151
  return (...n) => (e ?? []).map((r) => {
3156
3152
  if (N.isEventContext(r)) {
3157
3153
  if (r.path.startsWith(":")) {
3158
3154
  const o = r.path.slice(1);
3159
- return L(o)(...n);
3155
+ return W(o)(...n);
3160
3156
  }
3161
3157
  return be(n[0], r.path.split("."));
3162
3158
  }
3163
3159
  return N.IsBinding(r) ? t.getObjectToValue(r) : r;
3164
3160
  });
3165
3161
  }
3166
- function ks(e, t, n) {
3162
+ function Ts(e, t, n) {
3167
3163
  async function r(...o) {
3168
- const s = t(...o), i = await xn().eventSend(e, s);
3164
+ const s = t(...o), i = await Mn().eventSend(e, s);
3169
3165
  i && n.updateOutputsRefFromServer(i, e.set);
3170
3166
  }
3171
3167
  return r;
3172
3168
  }
3173
- function Vs(e, t) {
3174
- const { code: n, inputs: r = [], set: o } = e, s = L(n);
3175
- function i(...c) {
3176
- const l = (r ?? []).map((a) => {
3177
- if (N.isEventContext(a)) {
3178
- if (a.path.startsWith(":")) {
3179
- const u = a.path.slice(1);
3180
- return L(u)(...c);
3169
+ function As(e, t) {
3170
+ const { code: n, inputs: r = [], set: o } = e, s = W(n);
3171
+ function i(...u) {
3172
+ const l = (r ?? []).map((c) => {
3173
+ if (N.isEventContext(c)) {
3174
+ if (c.path.startsWith(":")) {
3175
+ const a = c.path.slice(1);
3176
+ return W(a)(...u);
3181
3177
  }
3182
- return be(c[0], a.path.split("."));
3178
+ return be(u[0], c.path.split("."));
3183
3179
  }
3184
- return N.IsBinding(a) ? nn(t.getObjectToValue(a)) : a;
3185
- }), h = s(...l);
3180
+ return N.IsBinding(c) ? rn(t.getObjectToValue(c)) : c;
3181
+ }), d = s(...l);
3186
3182
  if (o !== void 0) {
3187
- const u = o.length === 1 ? [h] : h, f = u.map((d) => d === void 0 ? 1 : 0);
3188
- t.updateOutputsRefFromServer({ values: u, skips: f }, o);
3183
+ const a = o.length === 1 ? [d] : d, f = a.map((h) => h === void 0 ? 1 : 0);
3184
+ t.updateOutputsRefFromServer({ values: a, skips: f }, o);
3189
3185
  }
3190
3186
  }
3191
3187
  return i;
3192
3188
  }
3193
- function Ns(e, t) {
3194
- const { code: n, bind: r = {}, bindData: o } = e, s = o || new Array(Object.keys(r).length).fill(0), i = Oe(
3189
+ function $s(e, t) {
3190
+ const { code: n, bind: r = {}, bindData: o } = e, s = o || new Array(Object.keys(r).length).fill(0), i = Me(
3195
3191
  r,
3196
- (h, a, u) => s[u] === 0 ? t.getVueRefObject(h) : h
3197
- ), c = L(n, i);
3198
- function l(...h) {
3199
- c(...h);
3192
+ (d, c, a) => s[a] === 0 ? t.getVueRefObject(d) : d
3193
+ ), u = W(n, i);
3194
+ function l(...d) {
3195
+ u(...d);
3200
3196
  }
3201
3197
  return l;
3202
3198
  }
3203
- function Is(e, t) {
3199
+ function js(e, t) {
3204
3200
  const n = [];
3205
3201
  (e.bStyle || []).forEach((s) => {
3206
3202
  Array.isArray(s) ? n.push(
3207
3203
  ...s.map((i) => t.getObjectToValue(i))
3208
3204
  ) : n.push(
3209
- Oe(
3205
+ Me(
3210
3206
  s,
3211
3207
  (i) => t.getObjectToValue(i)
3212
3208
  )
3213
3209
  );
3214
3210
  });
3215
- const r = Jn([e.style || {}, n]);
3211
+ const r = Xn([e.style || {}, n]);
3216
3212
  return {
3217
3213
  hasStyle: r && Object.keys(r).length > 0,
3218
3214
  styles: r
3219
3215
  };
3220
3216
  }
3221
- function Ts(e, t) {
3217
+ function Cs(e, t) {
3222
3218
  const n = e.classes;
3223
3219
  if (!n)
3224
3220
  return null;
3225
3221
  if (typeof n == "string")
3226
- return Ye(n);
3222
+ return Xe(n);
3227
3223
  const { str: r, map: o, bind: s } = n, i = [];
3228
3224
  return r && i.push(r), o && i.push(
3229
- Oe(
3225
+ Me(
3230
3226
  o,
3231
- (c) => t.getObjectToValue(c)
3227
+ (u) => t.getObjectToValue(u)
3232
3228
  )
3233
- ), s && i.push(...s.map((c) => t.getObjectToValue(c))), Ye(i);
3229
+ ), s && i.push(...s.map((u) => t.getObjectToValue(u))), Xe(i);
3234
3230
  }
3235
3231
  function $e(e, t = !0) {
3236
3232
  if (!(typeof e != "object" || e === null)) {
@@ -3252,34 +3248,34 @@ function $e(e, t = !0) {
3252
3248
  t && $e(r, !0);
3253
3249
  }
3254
3250
  }
3255
- function As(e, t) {
3251
+ function xs(e, t) {
3256
3252
  const n = e.startsWith(":");
3257
- return n && (e = e.slice(1), t = L(t)), { name: e, value: t, isFunc: n };
3253
+ return n && (e = e.slice(1), t = W(t)), { name: e, value: t, isFunc: n };
3258
3254
  }
3259
- function $s(e, t, n) {
3255
+ function Ds(e, t, n) {
3260
3256
  var o;
3261
3257
  const r = {};
3262
- return bt(e.bProps || {}, (s, i) => {
3263
- const c = n.getObjectToValue(s);
3264
- Ee(c) || ($e(c), r[i] = js(c, i));
3258
+ return Ot(e.bProps || {}, (s, i) => {
3259
+ const u = n.getObjectToValue(s);
3260
+ _e(u) || ($e(u), r[i] = Ms(u, i));
3265
3261
  }), (o = e.proxyProps) == null || o.forEach((s) => {
3266
3262
  const i = n.getObjectToValue(s);
3267
- typeof i == "object" && bt(i, (c, l) => {
3268
- const { name: h, value: a } = As(l, c);
3269
- r[h] = a;
3263
+ typeof i == "object" && Ot(i, (u, l) => {
3264
+ const { name: d, value: c } = xs(l, u);
3265
+ r[d] = c;
3270
3266
  });
3271
3267
  }), { ...t || {}, ...r };
3272
3268
  }
3273
- function js(e, t) {
3274
- return t === "innerText" ? Qt(e) : e;
3269
+ function Ms(e, t) {
3270
+ return t === "innerText" ? Yt(e) : e;
3275
3271
  }
3276
- function Cs(e, { slots: t }) {
3277
- const { id: n, use: r } = e.propsInfo, o = Or(n);
3272
+ function Fs(e, { slots: t }) {
3273
+ const { id: n, use: r } = e.propsInfo, o = Rr(n);
3278
3274
  return xe(() => {
3279
- Sr(n);
3275
+ kr(n);
3280
3276
  }), () => {
3281
3277
  const s = e.propsValue;
3282
- return br(
3278
+ return Pr(
3283
3279
  n,
3284
3280
  o,
3285
3281
  Object.fromEntries(
@@ -3288,53 +3284,66 @@ function Cs(e, { slots: t }) {
3288
3284
  ), A(De, null, t.default());
3289
3285
  };
3290
3286
  }
3291
- const xs = F(Cs, {
3287
+ const Bs = F(Fs, {
3292
3288
  props: ["propsInfo", "propsValue"]
3293
- });
3294
- function Ds(e, t) {
3289
+ }), Fn = /* @__PURE__ */ new Map();
3290
+ function Ls(e) {
3291
+ var t;
3292
+ (t = e.scopes) == null || t.forEach((n) => {
3293
+ Fn.set(n.id, n);
3294
+ });
3295
+ }
3296
+ function le(e) {
3297
+ return Fn.get(e);
3298
+ }
3299
+ function Ws(e, t) {
3295
3300
  if (!e.slots)
3296
3301
  return null;
3297
3302
  const n = e.slots ?? {};
3298
- return Array.isArray(n) ? t ? ge(n) : () => ge(n) : Zt(n, { keyFn: (i) => i === ":" ? "default" : i, valueFn: (i) => {
3299
- const { items: c } = i;
3303
+ return Array.isArray(n) ? t ? ve(n) : () => ve(n) : en(n, { keyFn: (i) => i === ":" ? "default" : i, valueFn: (i) => {
3304
+ const { items: u } = i;
3300
3305
  return (l) => {
3301
- if (i.scope) {
3302
- const h = () => i.props ? Gt(i.props, l, c) : ge(c);
3303
- return A(Re, { scope: i.scope }, h);
3306
+ if (i.scopeId) {
3307
+ const d = () => i.props ? qt(i.props, l, u) : ve(u);
3308
+ return A(
3309
+ Re,
3310
+ { scope: le(i.scopeId) },
3311
+ d
3312
+ );
3304
3313
  }
3305
- return i.props ? Gt(i.props, l, c) : ge(c);
3314
+ return i.props ? qt(i.props, l, u) : ve(u);
3306
3315
  };
3307
3316
  } });
3308
3317
  }
3309
- function Gt(e, t, n) {
3318
+ function qt(e, t, n) {
3310
3319
  return A(
3311
- xs,
3320
+ Bs,
3312
3321
  { propsInfo: e, propsValue: t },
3313
- () => ge(n)
3322
+ () => ve(n)
3314
3323
  );
3315
3324
  }
3316
- function ge(e) {
3325
+ function ve(e) {
3317
3326
  const t = (e ?? []).map((n) => A(Q, {
3318
3327
  component: n
3319
3328
  }));
3320
3329
  return t.length <= 0 ? null : t;
3321
3330
  }
3322
- function Ms(e, t) {
3331
+ function Us(e, t) {
3323
3332
  const n = {}, r = [];
3324
3333
  return (e || []).forEach((o) => {
3325
- const { sys: s, name: i, arg: c, value: l, mf: h } = o;
3334
+ const { sys: s, name: i, arg: u, value: l, mf: d } = o;
3326
3335
  if (i === "vmodel") {
3327
- const a = t.getVueRefObject(l);
3328
- if (n[`onUpdate:${c}`] = (u) => {
3329
- a.value = u;
3336
+ const c = t.getVueRefObject(l);
3337
+ if (n[`onUpdate:${u}`] = (a) => {
3338
+ c.value = a;
3330
3339
  }, s === 1) {
3331
- const u = h ? Object.fromEntries(h.map((f) => [f, !0])) : {};
3332
- r.push([Qn, a.value, void 0, u]);
3340
+ const a = d ? Object.fromEntries(d.map((f) => [f, !0])) : {};
3341
+ r.push([Zn, c.value, void 0, a]);
3333
3342
  } else
3334
- n[c] = a.value;
3343
+ n[u] = c.value;
3335
3344
  } else if (i === "vshow") {
3336
- const a = t.getVueRefObject(l);
3337
- r.push([Yn, a.value]);
3345
+ const c = t.getVueRefObject(l);
3346
+ r.push([er, c.value]);
3338
3347
  } else
3339
3348
  console.warn(`Directive ${i} is not supported yet`);
3340
3349
  }), {
@@ -3342,56 +3351,56 @@ function Ms(e, t) {
3342
3351
  directiveArray: r
3343
3352
  };
3344
3353
  }
3345
- function Fs(e, t) {
3354
+ function Ks(e, t) {
3346
3355
  const { eRef: n } = e;
3347
3356
  return n === void 0 ? {} : { ref: t.getRef(n) };
3348
3357
  }
3349
- function Bs(e) {
3350
- const t = ne(), n = un(), r = e.component.props ?? {};
3358
+ function Gs(e) {
3359
+ const t = ne(), n = ln(), r = e.component.props ?? {};
3351
3360
  return $e(r, !0), () => {
3352
- const { tag: o } = e.component, s = N.IsBinding(o) ? t.getObjectToValue(o) : o, i = ft(s), c = typeof i == "string", l = Ts(e.component, t), { styles: h, hasStyle: a } = Is(e.component, t), u = Rs(e.component.events ?? {}, t), f = Ds(e.component, c), d = $s(e.component, r, t), { newProps: v, directiveArray: p } = Ms(
3361
+ const { tag: o } = e.component, s = N.IsBinding(o) ? t.getObjectToValue(o) : o, i = dt(s), u = typeof i == "string", l = Cs(e.component, t), { styles: d, hasStyle: c } = js(e.component, t), a = Ns(e.component.events ?? {}, t), f = Ws(e.component, u), h = Ds(e.component, r, t), { newProps: v, directiveArray: p } = Us(
3353
3362
  e.component.dir,
3354
3363
  t
3355
- ), g = Fs(
3364
+ ), g = Ks(
3356
3365
  e.component,
3357
3366
  n
3358
- ), y = Xn({
3359
- ...d,
3360
- ...u,
3367
+ ), y = tr({
3368
+ ...h,
3369
+ ...a,
3361
3370
  ...v,
3362
3371
  ...g
3363
3372
  }) || {};
3364
- a && (y.style = h), l && (y.class = l);
3373
+ c && (y.style = d), l && (y.class = l);
3365
3374
  const _ = A(i, { ...y }, f);
3366
- return p.length > 0 ? Zn(
3375
+ return p.length > 0 ? nr(
3367
3376
  // @ts-ignore
3368
3377
  _,
3369
3378
  p
3370
3379
  ) : _;
3371
3380
  };
3372
3381
  }
3373
- const Q = F(Bs, {
3382
+ const Q = F(Gs, {
3374
3383
  props: ["component"]
3375
3384
  });
3376
- function Dn(e, t) {
3385
+ function Bn(e, t) {
3377
3386
  var n, r;
3378
3387
  if (e) {
3379
- const o = Er(e), s = on(e, ne(t)), i = ne(t);
3380
- ys(e.py_watch, e.web_computed, i), (n = e.vue_watch) == null || n.forEach((c) => bs(c, i)), (r = e.js_watch) == null || r.forEach((c) => Ss(c, i)), xe(() => {
3381
- cn(e.id, s), _r(e.id, o);
3388
+ const o = br(e), s = sn(e, ne(t)), i = ne(t);
3389
+ Ss(e.py_watch, e.web_computed, i), (n = e.vue_watch) == null || n.forEach((u) => ks(u, i)), (r = e.js_watch) == null || r.forEach((u) => Vs(u, i)), xe(() => {
3390
+ un(e.id, s), Or(e.id, o);
3382
3391
  });
3383
3392
  }
3384
3393
  }
3385
- function Ls(e, { slots: t }) {
3394
+ function qs(e, { slots: t }) {
3386
3395
  const { scope: n } = e;
3387
- return Dn(n), () => A(De, null, t.default());
3396
+ return Bn(n), () => A(De, null, t.default());
3388
3397
  }
3389
- const Re = F(Ls, {
3398
+ const Re = F(qs, {
3390
3399
  props: ["scope"]
3391
- }), Ws = F(
3400
+ }), Hs = F(
3392
3401
  (e) => {
3393
3402
  const { scope: t, items: n, vforInfo: r } = e;
3394
- return Pr(r), Dn(t, r.key), n.length === 1 ? () => A(Q, {
3403
+ return Nr(r), Bn(t, r.key), n.length === 1 ? () => A(Q, {
3395
3404
  component: n[0]
3396
3405
  }) : () => n.map(
3397
3406
  (s) => A(Q, {
@@ -3403,8 +3412,8 @@ const Re = F(Ls, {
3403
3412
  props: ["scope", "items", "vforInfo"]
3404
3413
  }
3405
3414
  );
3406
- function Us(e, t) {
3407
- const { state: n, isReady: r, isLoading: o } = hr(async () => {
3415
+ function zs(e, t) {
3416
+ const { state: n, isReady: r, isLoading: o } = mr(async () => {
3408
3417
  let s = e;
3409
3418
  const i = t;
3410
3419
  if (!s && !i)
@@ -3415,45 +3424,45 @@ function Us(e, t) {
3415
3424
  }, {});
3416
3425
  return { config: n, isReady: r, isLoading: o };
3417
3426
  }
3418
- function Ks(e, t) {
3427
+ function Js(e, t) {
3419
3428
  let n;
3420
3429
  return t.component ? n = `Error captured from component:tag: ${t.component.tag} ; id: ${t.component.id} ` : n = "Error captured from app init", console.group(n), console.error("Component:", t.component), console.error("Error:", e), console.groupEnd(), !1;
3421
3430
  }
3422
- const Gs = { class: "app-box" }, qs = {
3431
+ const Qs = { class: "app-box" }, Ys = {
3423
3432
  key: 0,
3424
3433
  style: { position: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }
3425
- }, Hs = /* @__PURE__ */ F({
3434
+ }, Xs = /* @__PURE__ */ F({
3426
3435
  __name: "App",
3427
3436
  props: {
3428
3437
  config: {},
3429
3438
  configUrl: {}
3430
3439
  },
3431
3440
  setup(e) {
3432
- const t = e, { config: n, isLoading: r } = Us(
3441
+ const t = e, { config: n, isLoading: r } = zs(
3433
3442
  t.config,
3434
3443
  t.configUrl
3435
3444
  );
3436
3445
  let o = null;
3437
3446
  return G(n, (s) => {
3438
- o = s, s.url && (ar({
3447
+ o = s, s.url && (lr({
3439
3448
  mode: s.mode,
3440
3449
  version: s.version,
3441
3450
  queryPath: s.url.path,
3442
3451
  pathParams: s.url.params,
3443
3452
  webServerInfo: s.webInfo
3444
- }), gs(s));
3445
- }), er(Ks), (s, i) => (he(), Ve("div", Gs, [
3446
- W(r) ? (he(), Ve("div", qs, i[0] || (i[0] = [
3447
- tr("p", { style: { margin: "auto" } }, "Loading ...", -1)
3453
+ }), Es(s)), Ls(s), gs(s);
3454
+ }), rr(Js), (s, i) => (he(), Ve("div", Qs, [
3455
+ L(r) ? (he(), Ve("div", Ys, i[0] || (i[0] = [
3456
+ or("p", { style: { margin: "auto" } }, "Loading ...", -1)
3448
3457
  ]))) : (he(), Ve("div", {
3449
3458
  key: 1,
3450
- class: Ye(["insta-main", W(n).class])
3459
+ class: Xe(["insta-main", L(n).class])
3451
3460
  }, [
3452
- nr(W(Re), {
3453
- scope: W(o).scope
3461
+ sr(L(Re), {
3462
+ scope: L(le)(L(o).scopeId)
3454
3463
  }, {
3455
- default: rr(() => [
3456
- (he(!0), Ve(De, null, or(W(o).items, (c) => (he(), sr(W(Q), { component: c }, null, 8, ["component"]))), 256))
3464
+ default: ir(() => [
3465
+ (he(!0), Ve(De, null, ar(L(o).items, (u) => (he(), cr(L(Q), { component: u }, null, 8, ["component"]))), 256))
3457
3466
  ]),
3458
3467
  _: 1
3459
3468
  }, 8, ["scope"])
@@ -3461,19 +3470,19 @@ const Gs = { class: "app-box" }, qs = {
3461
3470
  ]));
3462
3471
  }
3463
3472
  });
3464
- function zs(e) {
3465
- const { on: t, scope: n, items: r } = e, o = ne();
3473
+ function Zs(e) {
3474
+ const { on: t, scopeId: n, items: r } = e, o = le(n), s = ne();
3466
3475
  return () => {
3467
- const s = typeof t == "boolean" ? t : o.getObjectToValue(t);
3468
- return A(Re, { scope: n }, () => s ? r.map(
3469
- (c) => A(Q, { component: c })
3476
+ const i = typeof t == "boolean" ? t : s.getObjectToValue(t);
3477
+ return A(Re, { scope: o }, () => i ? r.map(
3478
+ (l) => A(Q, { component: l })
3470
3479
  ) : void 0);
3471
3480
  };
3472
3481
  }
3473
- const Js = F(zs, {
3474
- props: ["on", "scope", "items"]
3482
+ const ei = F(Zs, {
3483
+ props: ["on", "scopeId", "items"]
3475
3484
  });
3476
- function Qs(e) {
3485
+ function ti(e) {
3477
3486
  const { start: t = 0, end: n, step: r = 1 } = e;
3478
3487
  let o = [];
3479
3488
  if (r > 0)
@@ -3484,92 +3493,103 @@ function Qs(e) {
3484
3493
  o.push(s);
3485
3494
  return o;
3486
3495
  }
3487
- function Ys(e) {
3488
- const { array: t, bArray: n, items: r, fkey: o, fid: s, scope: i, num: c, tsGroup: l = {} } = e, h = t === void 0, a = c !== void 0, u = h ? n : t, f = ne();
3489
- Vr(s, u, h, a);
3490
- const v = ni(o ?? "index");
3491
- return xe(() => {
3492
- wr(i.id);
3493
- }), () => {
3494
- const p = Zs(
3496
+ function ni(e) {
3497
+ const { array: t, bArray: n, items: r, fkey: o, fid: s, scopeId: i, num: u, tsGroup: l = {} } = e, d = t === void 0, c = u !== void 0, a = d ? n : t, f = ne();
3498
+ Tr(s, a, d, c);
3499
+ const v = ai(o ?? "index");
3500
+ xe(() => {
3501
+ Sr(i);
3502
+ });
3503
+ const p = le(i);
3504
+ return () => {
3505
+ const g = oi(
3506
+ c,
3507
+ d,
3495
3508
  a,
3496
- h,
3497
- u,
3498
3509
  f,
3499
- c
3500
- ), g = Ir(s), y = p.map((_, O) => {
3501
- const R = v(_, O);
3502
- return g.add(R), Nr(s, R, O), A(Ws, {
3503
- scope: e.scope,
3510
+ u
3511
+ ), y = $r(s), _ = g.map((b, P) => {
3512
+ const j = v(b, P);
3513
+ return y.add(j), Ar(s, j, P), A(Hs, {
3514
+ scope: p,
3504
3515
  items: r,
3505
3516
  vforInfo: {
3506
3517
  fid: s,
3507
- key: R
3518
+ key: j
3508
3519
  },
3509
- key: R
3520
+ key: j
3510
3521
  });
3511
3522
  });
3512
- return g.removeUnusedKeys(), l && Object.keys(l).length > 0 ? A(Yt, l, {
3513
- default: () => y
3514
- }) : y;
3523
+ return y.removeUnusedKeys(), l && Object.keys(l).length > 0 ? A(Xt, l, {
3524
+ default: () => _
3525
+ }) : _;
3515
3526
  };
3516
3527
  }
3517
- const Xs = F(Ys, {
3518
- props: ["array", "items", "fid", "bArray", "scope", "num", "fkey", "tsGroup"]
3528
+ const ri = F(ni, {
3529
+ props: [
3530
+ "array",
3531
+ "items",
3532
+ "fid",
3533
+ "bArray",
3534
+ "scopeId",
3535
+ "num",
3536
+ "fkey",
3537
+ "tsGroup"
3538
+ ]
3519
3539
  });
3520
- function Zs(e, t, n, r, o) {
3540
+ function oi(e, t, n, r, o) {
3521
3541
  if (e) {
3522
3542
  let i = 0;
3523
- return typeof o == "number" ? i = o : i = r.getObjectToValue(o) ?? 0, Qs({
3543
+ return typeof o == "number" ? i = o : i = r.getObjectToValue(o) ?? 0, ti({
3524
3544
  end: Math.max(0, i)
3525
3545
  });
3526
3546
  }
3527
3547
  const s = t ? r.getObjectToValue(n) || [] : n;
3528
3548
  return typeof s == "object" ? Object.values(s) : s;
3529
3549
  }
3530
- const ei = (e) => e, ti = (e, t) => t;
3531
- function ni(e) {
3532
- const t = dr(e);
3533
- return typeof t == "function" ? t : e === "item" ? ei : ti;
3550
+ const si = (e) => e, ii = (e, t) => t;
3551
+ function ai(e) {
3552
+ const t = gr(e);
3553
+ return typeof t == "function" ? t : e === "item" ? si : ii;
3534
3554
  }
3535
- function ri(e) {
3555
+ function ci(e) {
3536
3556
  return e.map((n) => {
3537
3557
  if (n.tag)
3538
3558
  return A(Q, { component: n });
3539
- const r = ft(Mn);
3559
+ const r = dt(Ln);
3540
3560
  return A(r, {
3541
3561
  scope: n
3542
3562
  });
3543
3563
  });
3544
3564
  }
3545
- const Mn = F(
3565
+ const Ln = F(
3546
3566
  (e) => {
3547
3567
  const t = e.scope;
3548
- return () => ri(t.items ?? []);
3568
+ return () => ci(t.items ?? []);
3549
3569
  },
3550
3570
  {
3551
3571
  props: ["scope"]
3552
3572
  }
3553
3573
  );
3554
- function oi(e) {
3574
+ function ui(e) {
3555
3575
  return e.map((t) => {
3556
3576
  if (t.tag)
3557
3577
  return A(Q, { component: t });
3558
- const n = ft(Mn);
3578
+ const n = dt(Ln);
3559
3579
  return A(n, {
3560
3580
  scope: t
3561
3581
  });
3562
3582
  });
3563
3583
  }
3564
- const si = F(
3584
+ const li = F(
3565
3585
  (e) => {
3566
- const { scope: t, on: n, items: r } = e, o = J(r), s = on(t), i = ne();
3586
+ const { scope: t, on: n, items: r } = e, o = J(r), s = sn(t), i = ne();
3567
3587
  return je.createDynamicWatchRefresh(n, i, async () => {
3568
- const { items: c, on: l } = await je.fetchRemote(e, i);
3569
- return o.value = c, l;
3588
+ const { items: u, on: l } = await je.fetchRemote(e, i);
3589
+ return o.value = u, l;
3570
3590
  }), xe(() => {
3571
- cn(t.id, s);
3572
- }), () => oi(o.value);
3591
+ un(t.id, s);
3592
+ }), () => ui(o.value);
3573
3593
  },
3574
3594
  {
3575
3595
  props: ["sid", "url", "hKey", "on", "bind", "items", "scope"]
@@ -3578,141 +3598,143 @@ const si = F(
3578
3598
  var je;
3579
3599
  ((e) => {
3580
3600
  function t(r, o, s) {
3581
- let i = null, c = r, l = c.map((a) => o.getVueRefObject(a));
3582
- function h() {
3601
+ let i = null, u = r, l = u.map((c) => o.getVueRefObject(c));
3602
+ function d() {
3583
3603
  i && i(), i = G(
3584
3604
  l,
3585
3605
  async () => {
3586
- c = await s(), l = c.map((a) => o.getVueRefObject(a)), h();
3606
+ u = await s(), l = u.map((c) => o.getVueRefObject(c)), d();
3587
3607
  },
3588
3608
  { deep: !0 }
3589
3609
  );
3590
3610
  }
3591
- return h(), () => {
3611
+ return d(), () => {
3592
3612
  i && i();
3593
3613
  };
3594
3614
  }
3595
3615
  e.createDynamicWatchRefresh = t;
3596
3616
  async function n(r, o) {
3597
- const s = Object.values(r.bind).map((a) => ({
3598
- sid: a.sid,
3599
- id: a.id,
3600
- value: o.getObjectToValue(a)
3617
+ const s = Object.values(r.bind).map((c) => ({
3618
+ sid: c.sid,
3619
+ id: c.id,
3620
+ value: o.getObjectToValue(c)
3601
3621
  })), i = {
3602
3622
  sid: r.sid,
3603
3623
  bind: s,
3604
3624
  hKey: r.hKey,
3605
- page: ye()
3606
- }, c = {
3625
+ page: we()
3626
+ }, u = {
3607
3627
  method: "POST",
3608
3628
  headers: {
3609
3629
  "Content-Type": "application/json"
3610
3630
  },
3611
3631
  body: JSON.stringify(i)
3612
- }, l = await fetch(r.url, c);
3632
+ }, l = await fetch(r.url, u);
3613
3633
  if (!l.ok)
3614
3634
  throw new Error("Failed to fetch data");
3615
3635
  return await l.json();
3616
3636
  }
3617
3637
  e.fetchRemote = n;
3618
3638
  })(je || (je = {}));
3619
- function ii(e) {
3620
- const { scope: t, items: n } = e;
3639
+ function fi(e) {
3640
+ const { scopeId: t, items: n } = e, r = le(t);
3621
3641
  return () => {
3622
- const r = n.map((o) => A(Q, { component: o }));
3623
- return A(Re, { scope: t }, () => r);
3642
+ const o = n.map((s) => A(Q, { component: s }));
3643
+ return A(Re, { scope: r }, () => o);
3624
3644
  };
3625
3645
  }
3626
- const qt = F(ii, {
3627
- props: ["scope", "items"]
3646
+ const Ht = F(fi, {
3647
+ props: ["scopeId", "items"]
3628
3648
  });
3629
- function ai(e) {
3649
+ function di(e) {
3630
3650
  const { on: t, case: n, default: r } = e, o = ne();
3631
3651
  return () => {
3632
- const s = o.getObjectToValue(t), i = n.map((c) => {
3633
- const { value: l, items: h, scope: a } = c.props;
3652
+ const s = o.getObjectToValue(t), i = n.map((u) => {
3653
+ const { value: l, items: d, scopeId: c } = u.props;
3634
3654
  if (s === l)
3635
- return A(qt, {
3636
- scope: a,
3637
- items: h,
3655
+ return A(Ht, {
3656
+ scopeId: c,
3657
+ items: d,
3638
3658
  key: ["case", l].join("-")
3639
3659
  });
3640
- }).filter((c) => c);
3660
+ }).filter((u) => u);
3641
3661
  if (r && !i.length) {
3642
- const { items: c, scope: l } = r.props;
3643
- i.push(A(qt, { scope: l, items: c, key: "default" }));
3662
+ const { items: u, scopeId: l } = r.props;
3663
+ i.push(A(Ht, { scopeId: l, items: u, key: "default" }));
3644
3664
  }
3645
3665
  return A(De, i);
3646
3666
  };
3647
3667
  }
3648
- const ci = F(ai, {
3668
+ const hi = F(di, {
3649
3669
  props: ["case", "on", "default"]
3650
3670
  });
3651
- function ui(e, { slots: t }) {
3671
+ function pi(e, { slots: t }) {
3652
3672
  const { name: n = "fade", tag: r } = e;
3653
3673
  return () => A(
3654
- Yt,
3674
+ Xt,
3655
3675
  { name: n, tag: r },
3656
3676
  {
3657
3677
  default: t.default
3658
3678
  }
3659
3679
  );
3660
3680
  }
3661
- const li = F(ui, {
3681
+ const mi = F(pi, {
3662
3682
  props: ["name", "tag"]
3663
3683
  });
3664
- function fi(e) {
3684
+ function gi(e) {
3665
3685
  const { content: t, r: n = 0 } = e, r = ne(), o = n === 1 ? () => r.getObjectToValue(t) : () => t;
3666
- return () => Qt(o());
3686
+ return () => Yt(o());
3667
3687
  }
3668
- const hi = F(fi, {
3688
+ const vi = F(gi, {
3669
3689
  props: ["content", "r"]
3670
3690
  });
3671
- function di(e) {
3691
+ function yi(e) {
3672
3692
  if (!e.router)
3673
3693
  throw new Error("Router config is not provided.");
3674
3694
  const { routes: t, kAlive: n = !1 } = e.router;
3675
3695
  return t.map(
3676
- (o) => Fn(o, n)
3696
+ (o) => Wn(o, n)
3677
3697
  );
3678
3698
  }
3679
- function Fn(e, t) {
3699
+ function Wn(e, t) {
3680
3700
  var l;
3681
- const { server: n = !1, vueItem: r, scope: o } = e, s = () => {
3701
+ const { server: n = !1, vueItem: r, scopeId: o } = e, s = () => {
3682
3702
  if (n)
3683
3703
  throw new Error("Server-side rendering is not supported yet.");
3684
- return Promise.resolve(pi(r, o, t));
3704
+ return Promise.resolve(
3705
+ wi(r, le(o), t)
3706
+ );
3685
3707
  }, i = (l = r.children) == null ? void 0 : l.map(
3686
- (h) => Fn(h, t)
3687
- ), c = {
3708
+ (d) => Wn(d, t)
3709
+ ), u = {
3688
3710
  ...r,
3689
3711
  children: i,
3690
3712
  component: s
3691
3713
  };
3692
- return r.component.length === 0 && delete c.component, i === void 0 && delete c.children, c;
3714
+ return r.component.length === 0 && delete u.component, i === void 0 && delete u.children, u;
3693
3715
  }
3694
- function pi(e, t, n) {
3716
+ function wi(e, t, n) {
3695
3717
  const { path: r, component: o } = e, s = A(
3696
3718
  Re,
3697
3719
  { scope: t, key: r },
3698
- () => o.map((c) => A(Q, { component: c }))
3720
+ () => o.map((u) => A(Q, { component: u }))
3699
3721
  );
3700
- return n ? A(ir, null, () => s) : s;
3722
+ return n ? A(ur, null, () => s) : s;
3701
3723
  }
3702
- function mi(e, t) {
3703
- const { mode: n = "hash" } = t.router, r = n === "hash" ? Eo() : n === "memory" ? wo() : Rn();
3724
+ function Ei(e, t) {
3725
+ const { mode: n = "hash" } = t.router, r = n === "hash" ? So() : n === "memory" ? _o() : Pn();
3704
3726
  e.use(
3705
- ls({
3727
+ ds({
3706
3728
  history: r,
3707
- routes: di(t)
3729
+ routes: yi(t)
3708
3730
  })
3709
3731
  );
3710
3732
  }
3711
- function yi(e, t) {
3712
- e.component("insta-ui", Hs), e.component("vif", Js), e.component("vfor", Xs), e.component("match", ci), e.component("refresh", si), e.component("ts-group", li), e.component("content", hi), t.router && mi(e, t);
3733
+ function bi(e, t) {
3734
+ e.component("insta-ui", Xs), e.component("vif", ei), e.component("vfor", ri), e.component("match", hi), e.component("refresh", li), e.component("ts-group", mi), e.component("content", vi), t.router && Ei(e, t);
3713
3735
  }
3714
3736
  export {
3715
3737
  $e as convertDynamicProperties,
3716
- yi as install
3738
+ bi as install
3717
3739
  };
3718
3740
  //# sourceMappingURL=insta-ui.js.map