instaui 0.1.16__py2.py3-none-any.whl → 0.1.18__py2.py3-none-any.whl

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