@fox-js/fox 3.1.1-8 → 3.1.1-9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/libs/index.esm.js CHANGED
@@ -1,29 +1,29 @@
1
- import { ref as cr, shallowReactive as fr, reactive as hr, effectScope as yr, watch as dr, toRaw as Dt, getCurrentInstance as Jt, onUnmounted as ht, shallowRef as pr, defineComponent as Fs, inject as B, provide as te, h as fe } from "vue";
1
+ import { ref as fr, shallowReactive as hr, reactive as yr, effectScope as dr, watch as pr, toRaw as Ht, getCurrentInstance as Jt, onUnmounted as pt, shallowRef as _s, readonly as mr, defineComponent as Ks, inject as ne, provide as fe, h as Re } from "vue";
2
2
  /*!
3
- * fox v3.1.0 Fri Oct 18 2024 19:32:13 GMT+0800 (中国标准时间)
3
+ * fox v3.1.0 Fri Apr 18 2025 09:04:17 GMT+0800 (中国标准时间)
4
4
  */
5
- const de = typeof window < "u", $ = function() {
5
+ const $e = typeof window < "u", I = function() {
6
6
  return window;
7
- }, Be = function() {
7
+ }, Ge = function() {
8
8
  return window.document;
9
9
  };
10
- function mr(r) {
10
+ function gr(r) {
11
11
  let e = r, t = e.lastIndexOf("/");
12
12
  return t > 0 && t < e.length - 1 ? e = e.substring(0, t + 1) : t === 0 && e.indexOf(".") !== -1 ? e = "/" : t === -1 && (e.indexOf(".") == -1 ? e = `/${e}/` : e = "/"), e.indexOf("/") !== 0 && (e = `/${e}`), e;
13
13
  }
14
- function wt() {
15
- if (!de)
14
+ function bt() {
15
+ if (!$e)
16
16
  return "/";
17
- let r = $().location, e = `${r.protocol}//${r.host}`;
18
- return e += mr(r.pathname), e;
17
+ let r = I().location, e = `${r.protocol}//${r.host}`;
18
+ return e += gr(r.pathname), e;
19
19
  }
20
- function at(r, e, t, s = !1) {
20
+ function ft(r, e, t, s = !1) {
21
21
  r.addEventListener ? r.addEventListener(e, t, s) : r.attachEvent ? r.attachEvent(`on${e}`, t) : r[`on${e}`] = t;
22
22
  }
23
- function zt(r, e, t) {
23
+ function Wt(r, e, t) {
24
24
  r.removeEventListener ? r.removeEventListener(e, t) : r.detachEvent ? r.detachEvent(`on${e}`, t) : r[`on${e}`] = null;
25
25
  }
26
- const Je = (r, e, t) => {
26
+ const Xe = (r, e, t) => {
27
27
  e = e ?? {
28
28
  bubbles: !1,
29
29
  cancelable: !1,
@@ -34,12 +34,12 @@ const Je = (r, e, t) => {
34
34
  for (let a in e)
35
35
  a === "bubbles" ? n = !!e[a] : a === "cancelable" ? i = !!e[a] : s[a] = e[a];
36
36
  s.initEvent(r, n, i), (t ?? document).dispatchEvent(s);
37
- }, Mn = Array.isArray, In = (r) => Wt(r) === "[object Map]", Nn = (r) => Wt(r) === "[object Set]", Dn = (r) => r instanceof Date, b = (r) => typeof r == "function", Hn = (r) => typeof r == "string", Un = (r) => typeof r == "symbol", gr = (r) => r !== null && typeof r == "object", Vn = (r) => gr(r) && b(r.then) && b(r.catch), yt = (r) => r == null, vr = Object.prototype.toString, Wt = (r) => vr.call(r), wr = (r) => Wt(r) === "[object Object]", br = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol";
38
- function Ts(r) {
39
- return r.__esModule || br && r[Symbol.toStringTag] === "Module";
37
+ }, Cn = Array.isArray, En = (r) => Gt(r) === "[object Map]", An = (r) => Gt(r) === "[object Set]", Fn = (r) => r instanceof Date, q = (r) => typeof r == "function", Tn = (r) => typeof r == "string", _n = (r) => typeof r == "symbol", vr = (r) => r !== null && typeof r == "object", Kn = (r) => vr(r) && q(r.then) && q(r.catch), mt = (r) => r == null, wr = Object.prototype.toString, Gt = (r) => wr.call(r), br = (r) => Gt(r) === "[object Object]", xr = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol";
38
+ function qs(r) {
39
+ return r.__esModule || xr && r[Symbol.toStringTag] === "Module";
40
40
  }
41
- const xr = typeof Promise < "u" && Promise.toString().indexOf("[native code]") !== -1;
42
- function E(...r) {
41
+ const Rr = typeof Promise < "u" && Promise.toString().indexOf("[native code]") !== -1;
42
+ function N(...r) {
43
43
  let e = r[0] !== void 0 && r[0] !== null ? r[0] : {}, t = 1, s = r.length, n = !1;
44
44
  for (typeof e == "boolean" && (n = e, e = r[t] ?? {}, t++), typeof e != "object" && (e = {}); t < s; t++)
45
45
  if (r[t] !== null && r[t] !== void 0) {
@@ -49,15 +49,15 @@ function E(...r) {
49
49
  if (a !== l)
50
50
  if (n === !0 && l && typeof l == "object") {
51
51
  let u;
52
- Array.isArray(l) ? u = a && Array.isArray(a) ? a : [] : u = a && typeof a == "object" ? a : {}, e[o] = E(n, u, l);
52
+ Array.isArray(l) ? u = a && Array.isArray(a) ? a : [] : u = a && typeof a == "object" ? a : {}, e[o] = N(n, u, l);
53
53
  } else l !== void 0 && (e[o] = l);
54
54
  }
55
55
  }
56
56
  return e;
57
57
  }
58
- function Gt(r, e, t = !1) {
58
+ function Xt(r, e, t = !1) {
59
59
  if (!t)
60
- E(!0, r, e);
60
+ N(!0, r, e);
61
61
  else {
62
62
  if (typeof e != "object")
63
63
  return {};
@@ -66,9 +66,9 @@ function Gt(r, e, t = !1) {
66
66
  let n = r[s], i = e[s];
67
67
  if (n !== i)
68
68
  if (typeof i == "object") {
69
- if (!Array.isArray(i) && !wr(i))
69
+ if (!Array.isArray(i) && !br(i))
70
70
  continue;
71
- n = Gt(n, i, t), r[s] = n;
71
+ n = Xt(n, i, t), r[s] = n;
72
72
  } else {
73
73
  if (typeof i == "function")
74
74
  continue;
@@ -78,7 +78,7 @@ function Gt(r, e, t = !1) {
78
78
  }
79
79
  return r;
80
80
  }
81
- class ie {
81
+ class pe {
82
82
  /**
83
83
  * 初始ID
84
84
  */
@@ -87,25 +87,25 @@ class ie {
87
87
  * 获取唯一ID
88
88
  */
89
89
  static get() {
90
- let e = ++ie.seed;
91
- return e >= Number.MAX_VALUE && (ie.seed = 0), e;
90
+ let e = ++pe.seed;
91
+ return e >= Number.MAX_VALUE && (pe.seed = 0), e;
92
92
  }
93
93
  }
94
- const bt = xr ? Promise.resolve() : null;
95
- function De(r, ...e) {
96
- bt !== null ? e && e.length > 0 ? bt.then(() => {
94
+ const xt = Rr ? Promise.resolve() : null;
95
+ function Je(r, ...e) {
96
+ xt !== null ? e && e.length > 0 ? xt.then(() => {
97
97
  r(e);
98
- }) : bt.then(r) : e && e.length > 0 ? setTimeout(() => {
98
+ }) : xt.then(r) : e && e.length > 0 ? setTimeout(() => {
99
99
  r(e);
100
100
  }) : setTimeout(r);
101
101
  }
102
- function _s(r) {
102
+ function js(r) {
103
103
  return r == null ? !1 : typeof r == "boolean" ? r : typeof r == "string" ? r.toLocaleLowerCase() === "true" : !!r;
104
104
  }
105
- function Bn(r) {
105
+ function qn(r) {
106
106
  return typeof r == "number" ? r : Number(r);
107
107
  }
108
- const Rr = {
108
+ const Sr = {
109
109
  "[object Boolean]": "boolean",
110
110
  "[object Number]": "number",
111
111
  "[object String]": "string",
@@ -117,7 +117,7 @@ const Rr = {
117
117
  };
118
118
  function rs(r) {
119
119
  let t = Object.prototype.toString.call(r);
120
- return r == null ? String(r) : Rr[t] || "object";
120
+ return r == null ? String(r) : Sr[t] || "object";
121
121
  }
122
122
  function ns(r, e) {
123
123
  if (r == e)
@@ -149,19 +149,19 @@ function ns(r, e) {
149
149
  }
150
150
  return !1;
151
151
  }
152
- const Ks = (r) => {
152
+ const Ls = (r) => {
153
153
  const e = {};
154
154
  for (let t of Reflect.ownKeys(r)) {
155
155
  let s = r[t];
156
- s && !Array.isArray(s) && typeof s == "object" && (s = Ks(s)), typeof t == "symbol" ? e[String(t)] = s : e[t] = s;
156
+ s && !Array.isArray(s) && typeof s == "object" && (s = Ls(s)), typeof t == "symbol" ? e[String(t)] = s : e[t] = s;
157
157
  }
158
158
  return e;
159
- }, Sr = /^Symbol\((.*)\)$/, qs = (r) => {
159
+ }, Pr = /^Symbol\((.*)\)$/, ks = (r) => {
160
160
  const e = {};
161
161
  for (let t of Reflect.ownKeys(r)) {
162
162
  let s = r[t];
163
- s && !Array.isArray(s) && typeof s == "object" && (s = qs(s));
164
- const n = Sr.exec(t);
163
+ s && !Array.isArray(s) && typeof s == "object" && (s = ks(s));
164
+ const n = Pr.exec(t);
165
165
  if (n && n[1]) {
166
166
  const i = Symbol.for(n[1]);
167
167
  e[i] = s;
@@ -170,7 +170,7 @@ const Ks = (r) => {
170
170
  }
171
171
  return e;
172
172
  };
173
- function js(r, e) {
173
+ function Os(r, e) {
174
174
  let t = null;
175
175
  return function(...s) {
176
176
  t && clearTimeout(t), t = setTimeout(() => {
@@ -178,12 +178,12 @@ function js(r, e) {
178
178
  }, e);
179
179
  };
180
180
  }
181
- const is = Symbol("idKey"), pe = Symbol("valueKey"), x = Symbol("childrenKey"), J = Symbol("growKey");
182
- class Ls {
181
+ const is = Symbol("idKey"), Ce = Symbol("valueKey"), j = Symbol("childrenKey"), ie = Symbol("growKey");
182
+ class Ms {
183
183
  /**
184
184
  * 自动创建解决策略
185
185
  */
186
- [J] = !0;
186
+ [ie] = !0;
187
187
  /**
188
188
  * id
189
189
  */
@@ -191,11 +191,11 @@ class Ls {
191
191
  /**
192
192
  * value
193
193
  */
194
- [pe] = cr();
194
+ [Ce] = fr();
195
195
  /**
196
196
  * children
197
197
  */
198
- [x] = /* @__PURE__ */ new Map();
198
+ [j] = /* @__PURE__ */ new Map();
199
199
  /**
200
200
  * 构造函数
201
201
  * @param id
@@ -204,7 +204,7 @@ class Ls {
204
204
  this[is] = e;
205
205
  }
206
206
  }
207
- class Pr {
207
+ class $r {
208
208
  /**
209
209
  * 拦截get操作
210
210
  * @param target
@@ -212,14 +212,14 @@ class Pr {
212
212
  */
213
213
  get(e, t) {
214
214
  if (t == "value")
215
- return e[pe].value;
215
+ return e[Ce].value;
216
216
  if (t === "grow")
217
- return e[J];
218
- let s = e[x].get(t);
217
+ return e[ie];
218
+ let s = e[j].get(t);
219
219
  if (s)
220
- return Ue(s);
221
- if (e[J])
222
- return s = Qt(t), s[J] = e[J], e[x].set(t, s), Ue(s);
220
+ return We(s);
221
+ if (e[ie])
222
+ return s = Yt(t), s[ie] = e[ie], e[j].set(t, s), We(s);
223
223
  }
224
224
  /**
225
225
  * 拦截set操作
@@ -229,7 +229,7 @@ class Pr {
229
229
  * @returns
230
230
  */
231
231
  set(e, t, s) {
232
- return t == "value" ? (e[pe].value = s, !0) : t === "grow" ? (e[J] = _s(s), !0) : s == null ? (e[x].delete(t), !0) : (console.error(`illegal property:${t}`), !1);
232
+ return t == "value" ? (e[Ce].value = s, !0) : t === "grow" ? (e[ie] = js(s), !0) : s == null ? (e[j].delete(t), !0) : (console.error(`illegal property:${t}`), !1);
233
233
  }
234
234
  /**
235
235
  * 拦截删除property属性
@@ -238,18 +238,18 @@ class Pr {
238
238
  * @returns
239
239
  */
240
240
  deleteProperty(e, t) {
241
- return t === "value" || t == "grow" ? (console.error(`can not delete property:${String(t)}`), !1) : (e[x].delete(t), !0);
241
+ return t === "value" || t == "grow" ? (console.error(`can not delete property:${String(t)}`), !1) : (e[j].delete(t), !0);
242
242
  }
243
243
  }
244
- const Xt = "__proxy__";
245
- function Qt(r) {
246
- const e = new Ls(r);
247
- return Reflect.set(e, Xt, new Proxy(e, new Pr())), e;
244
+ const Qt = "__proxy__";
245
+ function Yt(r) {
246
+ const e = new Ms(r);
247
+ return Reflect.set(e, Qt, new Proxy(e, new $r())), e;
248
248
  }
249
- function Ue(r) {
250
- return Reflect.get(r, Xt);
249
+ function We(r) {
250
+ return Reflect.get(r, Qt);
251
251
  }
252
- let $r = class {
252
+ let Cr = class {
253
253
  /**
254
254
  * 名称
255
255
  */
@@ -276,7 +276,7 @@ let $r = class {
276
276
  * @param defaultValue
277
277
  */
278
278
  constructor(e = {}, t) {
279
- if (e.persistPolicy && e.persistPolicy !== "memory" && yt(e.name))
279
+ if (e.persistPolicy && e.persistPolicy !== "memory" && mt(e.name))
280
280
  throw new Error("name can not be empty, where persistPolicy is not memory.");
281
281
  this.name = e.name ?? "", this.persistPolicy = e.persistPolicy ?? "memory", this.storage = e.storage, t && typeof t == "object" && Object.assign(this.state, t);
282
282
  }
@@ -297,8 +297,8 @@ let $r = class {
297
297
  let e = null;
298
298
  if (this.persistPolicy === "custom")
299
299
  e = this.storage;
300
- else if (de) {
301
- const t = $();
300
+ else if ($e) {
301
+ const t = I();
302
302
  e = this.persistPolicy === "session" ? t.sessionStorage : t.localStorage;
303
303
  }
304
304
  return e;
@@ -387,7 +387,7 @@ let $r = class {
387
387
  }
388
388
  }
389
389
  };
390
- class ks extends Ls {
390
+ class Is extends Ms {
391
391
  /**
392
392
  * 持久化处理器
393
393
  */
@@ -396,7 +396,7 @@ class ks extends Ls {
396
396
  * 默认构造函数
397
397
  */
398
398
  constructor(e = {}, t) {
399
- super("__root__"), this._persistHandler = new $r(e, t), this._persistHandler.init(this);
399
+ super("__root__"), this._persistHandler = new Cr(e, t), this._persistHandler.init(this);
400
400
  }
401
401
  /**
402
402
  * 加入数据
@@ -410,9 +410,9 @@ class ks extends Ls {
410
410
  let s = this;
411
411
  for (let n = 0; n < t - 1; n++) {
412
412
  let i = e[n], o;
413
- s[x].has(i) ? o = s[x].get(i) : (o = Qt(i), s[x].set(i, o)), s = o;
413
+ s[j].has(i) ? o = s[j].get(i) : (o = Yt(i), s[j].set(i, o)), s = o;
414
414
  }
415
- return s[pe].value = e[t - 1], this._persistHandler.put(e), !0;
415
+ return s[Ce].value = e[t - 1], this._persistHandler.put(e), !0;
416
416
  }
417
417
  /**
418
418
  * 获取内容
@@ -426,12 +426,12 @@ class ks extends Ls {
426
426
  let s = this;
427
427
  for (let n = 0; n < t; n++) {
428
428
  let i = e[n];
429
- if (s[x].has(i))
430
- s = s[x].get(i);
429
+ if (s[j].has(i))
430
+ s = s[j].get(i);
431
431
  else
432
432
  return;
433
433
  }
434
- return s[pe].value;
434
+ return s[Ce].value;
435
435
  }
436
436
  /**
437
437
  * 移除数据
@@ -445,13 +445,13 @@ class ks extends Ls {
445
445
  let s = this;
446
446
  for (let i = 0; i < t - 1; i++) {
447
447
  const o = e[i];
448
- if (s[x].has(o))
449
- s = s[x].get(o);
448
+ if (s[j].has(o))
449
+ s = s[j].get(o);
450
450
  else
451
451
  return !1;
452
452
  }
453
453
  const n = e[t - 1];
454
- return s[x].has(n) ? (s[x].delete(n), this._persistHandler.remove(e), !0) : !1;
454
+ return s[j].has(n) ? (s[j].delete(n), this._persistHandler.remove(e), !0) : !1;
455
455
  }
456
456
  /**
457
457
  * 判断是否包含数据
@@ -465,26 +465,26 @@ class ks extends Ls {
465
465
  let s = this;
466
466
  for (let i = 0; i < t - 1; i++) {
467
467
  let o = e[i];
468
- if (s[x].has(o))
469
- s = s[x].get(o);
468
+ if (s[j].has(o))
469
+ s = s[j].get(o);
470
470
  else
471
471
  return !1;
472
472
  }
473
473
  const n = e[t - 1];
474
- return s[x].has(n);
474
+ return s[j].has(n);
475
475
  }
476
476
  /**
477
477
  * 清空所以数据
478
478
  */
479
479
  clear() {
480
- this[x].clear(), this._persistHandler.clear();
480
+ this[j].clear(), this._persistHandler.clear();
481
481
  }
482
482
  }
483
- const Cr = ["put", "get", "contains", "remove", "clear", "_persistHandler"];
483
+ const Er = ["put", "get", "contains", "remove", "clear", "_persistHandler"];
484
484
  function os(r) {
485
- return Cr.includes(r);
485
+ return Er.includes(r);
486
486
  }
487
- class Er {
487
+ class Ar {
488
488
  /**
489
489
  * 拦截get操作
490
490
  * @param target
@@ -492,19 +492,19 @@ class Er {
492
492
  */
493
493
  get(e, t) {
494
494
  if (t == "value")
495
- return e[pe].value;
495
+ return e[Ce].value;
496
496
  if (t === "grow")
497
- return e[J];
498
- if (t === x)
499
- return e[x];
497
+ return e[ie];
498
+ if (t === j)
499
+ return e[j];
500
500
  if (typeof t == "string" && os(t))
501
501
  return e[t];
502
502
  const s = String(t);
503
- let n = e[x].get(s);
503
+ let n = e[j].get(s);
504
504
  if (n)
505
- return Ue(n);
506
- if (e[J])
507
- return n = Qt(s), n[J] = e[J], e[x].set(s, n), Ue(n);
505
+ return We(n);
506
+ if (e[ie])
507
+ return n = Yt(s), n[ie] = e[ie], e[j].set(s, n), We(n);
508
508
  }
509
509
  /**
510
510
  * 拦截set操作
@@ -514,7 +514,7 @@ class Er {
514
514
  * @returns
515
515
  */
516
516
  set(e, t, s) {
517
- return t == "value" ? (e[pe].value = s, !0) : t === "grow" ? (e[J] = _s(s), !0) : os(t) ? !1 : s == null ? (e[x].delete(t), !0) : (console.error(`illegal property:${t}`), !1);
517
+ return t == "value" ? (e[Ce].value = s, !0) : t === "grow" ? (e[ie] = js(s), !0) : os(t) ? !1 : s == null ? (e[j].delete(t), !0) : (console.error(`illegal property:${t}`), !1);
518
518
  }
519
519
  /**
520
520
  * 拦截删除property属性
@@ -523,14 +523,14 @@ class Er {
523
523
  * @returns
524
524
  */
525
525
  deleteProperty(e, t) {
526
- return t === "value" || t == "grow" ? (console.error(`can not delete property:${String(t)}`), !1) : (e[x].delete(t), !0);
526
+ return t === "value" || t == "grow" ? (console.error(`can not delete property:${String(t)}`), !1) : (e[j].delete(t), !0);
527
527
  }
528
528
  }
529
- function Ar(r, e) {
530
- const t = new ks(r, e), s = new Er(), n = new Proxy(t, s);
531
- return Reflect.set(t, Xt, n), t;
529
+ function Fr(r, e) {
530
+ const t = new Is(r, e), s = new Ar(), n = new Proxy(t, s);
531
+ return Reflect.set(t, Qt, n), t;
532
532
  }
533
- const ls = new Proxy(ks, {
533
+ const ls = new Proxy(Is, {
534
534
  /**
535
535
  * 拦截构造函数
536
536
  * @param target
@@ -538,11 +538,11 @@ const ls = new Proxy(ks, {
538
538
  * @returns
539
539
  */
540
540
  construct(r, e) {
541
- const t = e[0] ?? {}, s = e[1], n = Ar(t, s);
542
- return Ue(n);
541
+ const t = e[0] ?? {}, s = e[1], n = Fr(t, s);
542
+ return We(n);
543
543
  }
544
- }), Yt = (r) => !r || typeof r != "object" ? !0 : Reflect.ownKeys(r).length === 0;
545
- class Os {
544
+ }), Zt = (r) => !r || typeof r != "object" ? !0 : Reflect.ownKeys(r).length === 0;
545
+ class Ns {
546
546
  /**
547
547
  * 名称
548
548
  */
@@ -562,7 +562,7 @@ class Os {
562
562
  * @param defaultValue
563
563
  */
564
564
  constructor(e = {}) {
565
- if (e.persistPolicy && e.persistPolicy !== "memory" && yt(e.name))
565
+ if (e.persistPolicy && e.persistPolicy !== "memory" && mt(e.name))
566
566
  throw new Error("name can not be empty, where persistPolicy is not memory.");
567
567
  this.name = e.name ?? "", this.persistPolicy = e.persistPolicy ?? "memory", this.storage = e.storage;
568
568
  }
@@ -576,8 +576,8 @@ class Os {
576
576
  let e = null;
577
577
  if (this.persistPolicy === "custom")
578
578
  e = this.storage;
579
- else if (de) {
580
- const t = $();
579
+ else if ($e) {
580
+ const t = I();
581
581
  e = this.persistPolicy === "session" ? t.sessionStorage : t.localStorage;
582
582
  }
583
583
  return e;
@@ -589,7 +589,7 @@ class Os {
589
589
  if (!this.persistPolicy || this.persistPolicy === "memory")
590
590
  return;
591
591
  let t = this.getStorage();
592
- if (t === null || Yt(e))
592
+ if (t === null || Zt(e))
593
593
  return;
594
594
  const s = `_state_${this.name}`, n = JSON.stringify(e ?? {});
595
595
  t.setItem(s, n);
@@ -622,55 +622,55 @@ class Os {
622
622
  }
623
623
  }
624
624
  }
625
- function Ms(r, e, t) {
626
- const s = new Os(t);
625
+ function Ds(r, e, t) {
626
+ const s = new Ns(t);
627
627
  s.restore(e);
628
628
  const n = (l) => {
629
- const u = Dt(l), c = {};
630
- for (let f in u) {
631
- const h = u[f];
632
- yt(h) || (c[f] = h);
629
+ const u = Ht(l), c = {};
630
+ for (let h in u) {
631
+ const f = u[h];
632
+ mt(f) || (c[h] = f);
633
633
  }
634
- Yt(c) ? s.removeState() : s.saveState(c);
634
+ Zt(c) ? s.removeState() : s.saveState(c);
635
635
  };
636
636
  let i = null;
637
637
  if (t && t.debounce === !1)
638
638
  i = n;
639
639
  else {
640
640
  const l = t && t.debounceDelay ? t.debounceDelay : 250;
641
- i = js(n, l);
641
+ i = Os(n, l);
642
642
  }
643
- const o = r ? fr(e) : hr(e);
644
- return yr(!0).run(() => {
645
- dr(o, (l) => {
646
- const u = Dt(l);
643
+ const o = r ? hr(e) : yr(e);
644
+ return dr(!0).run(() => {
645
+ pr(o, (l) => {
646
+ const u = Ht(l);
647
647
  i(u);
648
648
  });
649
649
  }), o;
650
650
  }
651
- function zn(r, e) {
652
- return Ms(!1, r, e);
651
+ function Ln(r, e) {
652
+ return Ds(!1, r, e);
653
653
  }
654
- function Wn(r, e) {
655
- return Ms(!0, r, e);
654
+ function kn(r, e) {
655
+ return Ds(!0, r, e);
656
656
  }
657
- function Fr(r, e) {
658
- const t = new Os(e);
657
+ function Tr(r, e) {
658
+ const t = new Ns(e);
659
659
  t.restore(r);
660
660
  const s = (a) => {
661
- const l = Dt(a), u = {};
661
+ const l = Ht(a), u = {};
662
662
  for (let c in l) {
663
- const f = l[c];
664
- yt(f) || (u[c] = f);
663
+ const h = l[c];
664
+ mt(h) || (u[c] = h);
665
665
  }
666
- Yt(u) ? t.removeState() : t.saveState(u);
666
+ Zt(u) ? t.removeState() : t.saveState(u);
667
667
  };
668
668
  let n = null;
669
669
  if (e && e.debounce === !1)
670
670
  n = s;
671
671
  else {
672
672
  const a = e && e.debounceDelay ? e.debounceDelay : 250;
673
- n = js(s, a);
673
+ n = Os(s, a);
674
674
  }
675
675
  const i = {
676
676
  /**
@@ -694,10 +694,10 @@ function Fr(r, e) {
694
694
  };
695
695
  return new Proxy(r, i);
696
696
  }
697
- function Gn(r, e) {
698
- return Fr(r, e);
697
+ function On(r, e) {
698
+ return Tr(r, e);
699
699
  }
700
- const X = "default", Is = Symbol("sync"), k = Symbol("resolveRoute");
700
+ const ae = "default", Hs = Symbol("sync"), G = Symbol("normalizeRoute");
701
701
  function as(r) {
702
702
  let e = !1;
703
703
  return function(...t) {
@@ -705,11 +705,11 @@ function as(r) {
705
705
  return e = !0, Reflect.apply(r, {}, t);
706
706
  };
707
707
  }
708
- function Tr(r) {
708
+ function _r(r) {
709
709
  let e = r.src;
710
710
  return new Promise((t, s) => {
711
711
  const n = as((a) => {
712
- Ts(a) && (a = a.default), r.component = a, console.debug("success load async module"), t();
712
+ qs(a) && (a = a.default), r.component = a, console.debug("success load async module"), t();
713
713
  }), i = as((a) => {
714
714
  console.debug("reject load async module"), s(a);
715
715
  });
@@ -728,7 +728,7 @@ function Tr(r) {
728
728
  }
729
729
  });
730
730
  }
731
- class _r {
731
+ class Kr {
732
732
  /**
733
733
  * 插槽名称
734
734
  */
@@ -755,7 +755,7 @@ class _r {
755
755
  this.name = e, this.level = t, this.rootName = s, this.rootIndex = n;
756
756
  }
757
757
  }
758
- class Pe {
758
+ class Ke {
759
759
  /**
760
760
  * 目标路由
761
761
  */
@@ -786,8 +786,8 @@ class Pe {
786
786
  * @returns
787
787
  */
788
788
  static from(e) {
789
- const t = new Pe(e.to, e.from), s = e.data ?? {};
790
- return E(!0, t.data, s), t;
789
+ const t = new Ke(e.to, e.from), s = e.data ?? {};
790
+ return N(!0, t.data, s), t;
791
791
  }
792
792
  /**
793
793
  * 清空session
@@ -798,7 +798,7 @@ class Pe {
798
798
  e[t] = void 0;
799
799
  }
800
800
  }
801
- class R {
801
+ class L {
802
802
  /**
803
803
  * 路径
804
804
  */
@@ -808,7 +808,7 @@ class R {
808
808
  */
809
809
  get fullPath() {
810
810
  const e = this.path ?? `/${this.name}`;
811
- return `${this.root ?? X}!${e}`;
811
+ return `${this.root ?? ae}!${e}`;
812
812
  }
813
813
  /**
814
814
  * 别名路径(设置了该属性后,url的route mark优先使用别名显示)
@@ -892,8 +892,8 @@ class R {
892
892
  * @param plain 是否只克隆plain对象
893
893
  */
894
894
  static clone(e, t) {
895
- let s = new R();
896
- return Gt(s, e, t), s;
895
+ let s = new L();
896
+ return Xt(s, e, t), s;
897
897
  }
898
898
  /**
899
899
  * 判断路由是否相同
@@ -919,7 +919,7 @@ class R {
919
919
  * @returns
920
920
  */
921
921
  static from(e) {
922
- let t = new R();
922
+ let t = new L();
923
923
  if (e == null)
924
924
  return t;
925
925
  let s = t;
@@ -934,7 +934,7 @@ class R {
934
934
  return t;
935
935
  }
936
936
  }
937
- class Kr {
937
+ class qr {
938
938
  /**
939
939
  * 唯一ID(用于区分model)
940
940
  */
@@ -968,7 +968,7 @@ class Kr {
968
968
  * @param meta
969
969
  */
970
970
  constructor(e, t, s, n) {
971
- this.id = ie.get(), this.name = e, this.src = t, typeof t != "function" && (this.component = t), this.props = s, this.meta = n;
971
+ this.id = pe.get(), this.name = e, this.src = t, typeof t != "function" && (this.component = t), this.props = s, this.meta = n;
972
972
  }
973
973
  /**
974
974
  * 是否已经解析完成
@@ -980,7 +980,7 @@ class Kr {
980
980
  * 解析组件
981
981
  */
982
982
  resolve() {
983
- return Tr(this);
983
+ return _r(this);
984
984
  }
985
985
  }
986
986
  class us {
@@ -989,7 +989,7 @@ class us {
989
989
  */
990
990
  models = [];
991
991
  }
992
- class xt {
992
+ class Rt {
993
993
  /**
994
994
  * 路径
995
995
  */
@@ -1011,50 +1011,50 @@ class xt {
1011
1011
  */
1012
1012
  layers = [];
1013
1013
  }
1014
- var C = /* @__PURE__ */ ((r) => (r[r.Push = 0] = "Push", r[r.Replace = 1] = "Replace", r[r.Put = 2] = "Put", r[r.Append = 3] = "Append", r[r.Open = 4] = "Open", r))(C || {});
1015
- const qr = "FoxBeforeEnter", jr = "FoxEnter", Lr = "FoxLeave", kr = "FoxLeave", Ht = "FoxLeaveEnd", M = Symbol("chainKey"), L = Symbol("cursorKey"), Rt = Symbol("$persistentModeKey"), P = Symbol("statusKey"), W = Symbol("argsKey"), ze = Symbol("exArgsKey"), we = Symbol("successFnsKey"), Te = Symbol("errorFnsKey"), le = Symbol("sessionKey"), G = Symbol("_go");
1016
- class ut {
1014
+ var M = /* @__PURE__ */ ((r) => (r[r.Push = 0] = "Push", r[r.Replace = 1] = "Replace", r[r.Put = 2] = "Put", r[r.Append = 3] = "Append", r[r.Open = 4] = "Open", r))(M || {});
1015
+ const jr = "FoxBeforeEnter", Lr = "FoxEnter", kr = "FoxLeave", Or = "FoxLeave", Ut = "FoxLeaveEnd", Q = Symbol("chainKey"), W = Symbol("cursorKey"), St = Symbol("$persistentModeKey"), O = Symbol("statusKey"), oe = Symbol("argsKey"), Qe = Symbol("exArgsKey"), Ee = Symbol("successFnsKey"), ke = Symbol("errorFnsKey"), ge = Symbol("sessionKey"), le = Symbol("_go");
1016
+ class ht {
1017
1017
  /**
1018
1018
  * 事件链路
1019
1019
  */
1020
- [M] = [];
1020
+ [Q] = [];
1021
1021
  /**
1022
1022
  * 游标
1023
1023
  */
1024
- [L] = 0;
1024
+ [W] = 0;
1025
1025
  /**
1026
1026
  * 是否持久模式(该状态为true的情况,已经执行的任务会继续保存在队列中)
1027
1027
  */
1028
- [Rt] = !1;
1028
+ [St] = !1;
1029
1029
  /**
1030
1030
  * 状态
1031
1031
  */
1032
- [P] = "Free";
1032
+ [O] = "Free";
1033
1033
  /**
1034
1034
  * 参数
1035
1035
  */
1036
- [W] = [];
1036
+ [oe] = [];
1037
1037
  /**
1038
1038
  * 异常参数
1039
1039
  */
1040
- [ze] = [];
1040
+ [Qe] = [];
1041
1041
  /**
1042
1042
  * 移除函数
1043
1043
  */
1044
- [we] = [];
1044
+ [Ee] = [];
1045
1045
  /**
1046
1046
  * 错误函数
1047
1047
  */
1048
- [Te] = [];
1048
+ [ke] = [];
1049
1049
  /**
1050
1050
  * 链路session
1051
1051
  */
1052
- [le];
1052
+ [ge];
1053
1053
  /**
1054
1054
  * 获取session
1055
1055
  */
1056
1056
  get session() {
1057
- return this[le];
1057
+ return this[ge];
1058
1058
  }
1059
1059
  /**
1060
1060
  * 构造函数
@@ -1063,55 +1063,55 @@ class ut {
1063
1063
  * @param persistentMode
1064
1064
  */
1065
1065
  constructor(e, t = !1) {
1066
- this[le] = e, this[Rt] = t;
1066
+ this[ge] = e, this[St] = t;
1067
1067
  }
1068
1068
  /**
1069
1069
  * 触发链路的下一个任务
1070
1070
  * @param step
1071
1071
  * @param params
1072
1072
  */
1073
- [G](e, ...t) {
1074
- let s = this[P];
1075
- if (this[P] = "Busy", this[L] += e, this[L] < 0 && (this[L] = 0), this[W] = t, s === "Exception" || s === "Reject") {
1073
+ [le](e, ...t) {
1074
+ let s = this[O];
1075
+ if (this[O] = "Busy", this[W] += e, this[W] < 0 && (this[W] = 0), this[oe] = t, s === "Exception" || s === "Reject") {
1076
1076
  let a = [{
1077
- session: this[le]
1078
- }, ...this[ze]];
1079
- for (; this[Te].length > 0; )
1077
+ session: this[ge]
1078
+ }, ...this[Qe]];
1079
+ for (; this[ke].length > 0; )
1080
1080
  try {
1081
- let l = this[Te].shift();
1082
- typeof l == "function" && De(() => {
1081
+ let l = this[ke].shift();
1082
+ typeof l == "function" && Je(() => {
1083
1083
  Reflect.apply(l, {}, a);
1084
1084
  });
1085
1085
  } catch (l) {
1086
1086
  console.error(l.message, l);
1087
1087
  }
1088
- return this[P] = s, this[M] = [], this[L] = 0, this;
1089
- } else if (s === "Finished" || this[L] >= this[M].length) {
1088
+ return this[O] = s, this[Q] = [], this[W] = 0, this;
1089
+ } else if (s === "Finished" || this[W] >= this[Q].length) {
1090
1090
  let a = [{
1091
- session: this[le]
1092
- }, ...this[W]];
1093
- for (; this[we].length > 0; ) {
1094
- let l = this[we].shift();
1095
- typeof l == "function" && De(() => {
1091
+ session: this[ge]
1092
+ }, ...this[oe]];
1093
+ for (; this[Ee].length > 0; ) {
1094
+ let l = this[Ee].shift();
1095
+ typeof l == "function" && Je(() => {
1096
1096
  Reflect.apply(l, {}, a);
1097
1097
  });
1098
1098
  }
1099
- return this[P] = "Free", this;
1099
+ return this[O] = "Free", this;
1100
1100
  }
1101
- if (this[L] >= this[M].length)
1102
- return this[P] = "Free", this;
1103
- let n = this[M][this[L]];
1104
- this[Rt] || (this[M].splice(0, this[L] + 1), this[L] = -1);
1105
- let i = this[L] + 1;
1101
+ if (this[W] >= this[Q].length)
1102
+ return this[O] = "Free", this;
1103
+ let n = this[Q][this[W]];
1104
+ this[St] || (this[Q].splice(0, this[W] + 1), this[W] = -1);
1105
+ let i = this[W] + 1;
1106
1106
  try {
1107
1107
  let o = !1, a = {
1108
1108
  //go
1109
1109
  go: (l, ...u) => {
1110
- o || (o = !0, Reflect.apply(this[G], this, [l, ...u]));
1110
+ o || (o = !0, Reflect.apply(this[le], this, [l, ...u]));
1111
1111
  },
1112
1112
  //resolve
1113
1113
  resolve: (...l) => {
1114
- o || (o = !0, Reflect.apply(this[G], this, [1, ...l]));
1114
+ o || (o = !0, Reflect.apply(this[le], this, [1, ...l]));
1115
1115
  },
1116
1116
  //reject
1117
1117
  reject: (...l) => {
@@ -1119,13 +1119,13 @@ class ut {
1119
1119
  },
1120
1120
  //insert
1121
1121
  insert: (l) => {
1122
- o || (this[M].splice(i, 0, l), i++);
1122
+ o || (this[Q].splice(i, 0, l), i++);
1123
1123
  },
1124
1124
  //session
1125
- session: this[le]
1125
+ session: this[ge]
1126
1126
  };
1127
- De(() => {
1128
- Reflect.apply(n, {}, [a, ...this[W]]);
1127
+ Je(() => {
1128
+ Reflect.apply(n, {}, [a, ...this[oe]]);
1129
1129
  });
1130
1130
  } catch (o) {
1131
1131
  this.throw(o);
@@ -1138,45 +1138,45 @@ class ut {
1138
1138
  * @param params
1139
1139
  */
1140
1140
  go(e, ...t) {
1141
- return Reflect.apply(this[G], this, [e, ...t]);
1141
+ return Reflect.apply(this[le], this, [e, ...t]);
1142
1142
  }
1143
1143
  /**
1144
1144
  * 结束事件链调用,直接触发wait函数(success方法)
1145
1145
  * @param params
1146
1146
  */
1147
1147
  finish(...e) {
1148
- return this[P] = "Finished", this[W] = e, Reflect.apply(this[G], this, [0]);
1148
+ return this[O] = "Finished", this[oe] = e, Reflect.apply(this[le], this, [0]);
1149
1149
  }
1150
1150
  /**
1151
1151
  * 结束事件链调用,直接触发wait函数(error方法)
1152
1152
  * @param params
1153
1153
  */
1154
1154
  reject(...e) {
1155
- return this[P] = "Reject", this[ze] = e, Reflect.apply(this[G], this, [0]);
1155
+ return this[O] = "Reject", this[Qe] = e, Reflect.apply(this[le], this, [0]);
1156
1156
  }
1157
1157
  /**
1158
1158
  * 结束事件链调用,直接触发error函数
1159
1159
  * @param params
1160
1160
  */
1161
1161
  throw(...e) {
1162
- return this[P] = "Exception", this[ze] = e, Reflect.apply(this[G], this, [0]);
1162
+ return this[O] = "Exception", this[Qe] = e, Reflect.apply(this[le], this, [0]);
1163
1163
  }
1164
1164
  /**
1165
1165
  * 重置事件链,直接触发wait函数
1166
1166
  * @param params
1167
1167
  */
1168
1168
  reset(...e) {
1169
- this[P] = "Busy", this[W] = e, this[M] = [], this[L] = 0;
1169
+ this[O] = "Busy", this[oe] = e, this[Q] = [], this[W] = 0;
1170
1170
  let s = [{
1171
- session: this[le]
1172
- }, ...this[W]];
1173
- for (; this[we].length > 0; ) {
1174
- let n = this[we].shift();
1175
- De(() => {
1171
+ session: this[ge]
1172
+ }, ...this[oe]];
1173
+ for (; this[Ee].length > 0; ) {
1174
+ let n = this[Ee].shift();
1175
+ Je(() => {
1176
1176
  Reflect.apply(n, this, s);
1177
1177
  });
1178
1178
  }
1179
- return this[P] = "Free", this;
1179
+ return this[O] = "Free", this;
1180
1180
  }
1181
1181
  /**
1182
1182
  * 加入任务
@@ -1184,7 +1184,7 @@ class ut {
1184
1184
  * @returns {EventChain}
1185
1185
  */
1186
1186
  post(e) {
1187
- return this[P] === "Reject" || this[P] === "Exception" ? this : (Array.isArray(e) ? this[M] = [...this[M], ...e] : this[M].push(e), this[P] === "Busy" ? this : (Reflect.apply(this[G], this, [0, ...this[W]]), this));
1187
+ return this[O] === "Reject" || this[O] === "Exception" ? this : (Array.isArray(e) ? this[Q] = [...this[Q], ...e] : this[Q].push(e), this[O] === "Busy" ? this : (Reflect.apply(this[le], this, [0, ...this[oe]]), this));
1188
1188
  }
1189
1189
  /**
1190
1190
  * 加入等待任务
@@ -1193,7 +1193,7 @@ class ut {
1193
1193
  * @returns
1194
1194
  */
1195
1195
  wait(e, t) {
1196
- return e && typeof e == "function" && this[we].push(e), t && typeof t == "function" && this[Te].push(t), this[P] === "Busy" ? this : (Reflect.apply(this[G], this, [0, ...this[W]]), this);
1196
+ return e && typeof e == "function" && this[Ee].push(e), t && typeof t == "function" && this[ke].push(t), this[O] === "Busy" ? this : (Reflect.apply(this[le], this, [0, ...this[oe]]), this);
1197
1197
  }
1198
1198
  /**
1199
1199
  * 加入异常处理任务
@@ -1201,18 +1201,18 @@ class ut {
1201
1201
  * @returns
1202
1202
  */
1203
1203
  exception(e) {
1204
- return e && typeof e == "function" && this[Te].push(e), this[P] === "Busy" ? this : Reflect.apply(this[G], this, [0, ...this[W]]);
1204
+ return e && typeof e == "function" && this[ke].push(e), this[O] === "Busy" ? this : Reflect.apply(this[le], this, [0, ...this[oe]]);
1205
1205
  }
1206
1206
  /**
1207
1207
  * 判断事件链是否已经执行完成
1208
1208
  * @returns {boolean}
1209
1209
  */
1210
1210
  isFinish() {
1211
- return this[P] == "Reject" || this[P] == "Free" && this[L] >= this[M].length;
1211
+ return this[O] == "Reject" || this[O] == "Free" && this[W] >= this[Q].length;
1212
1212
  }
1213
1213
  }
1214
- const be = Symbol("registerKey");
1215
- class Or {
1214
+ const Ae = Symbol("registerKey");
1215
+ class Mr {
1216
1216
  /**
1217
1217
  * 事件策略
1218
1218
  */
@@ -1234,7 +1234,7 @@ class cs {
1234
1234
  /**
1235
1235
  * 注册表
1236
1236
  */
1237
- [be] = /* @__PURE__ */ new Map();
1237
+ [Ae] = /* @__PURE__ */ new Map();
1238
1238
  /**
1239
1239
  * 构造函数
1240
1240
  */
@@ -1248,9 +1248,9 @@ class cs {
1248
1248
  * @returns
1249
1249
  */
1250
1250
  on(e, t, s = !1) {
1251
- let n = this[be].get(e);
1252
- n || (n = new Array(), this[be].set(e, n));
1253
- let i = s === !0 ? 1 : 0, o = new Or(t, i);
1251
+ let n = this[Ae].get(e);
1252
+ n || (n = new Array(), this[Ae].set(e, n));
1253
+ let i = s === !0 ? 1 : 0, o = new Mr(t, i);
1254
1254
  return n.push(o), this;
1255
1255
  }
1256
1256
  /**
@@ -1261,8 +1261,8 @@ class cs {
1261
1261
  */
1262
1262
  off(e, t) {
1263
1263
  if (!t)
1264
- return this[be].delete(e), this;
1265
- let s = this[be].get(e);
1264
+ return this[Ae].delete(e), this;
1265
+ let s = this[Ae].get(e);
1266
1266
  if (s) {
1267
1267
  for (let n = 0; n < s.length; n++)
1268
1268
  if (s[n].callback === t) {
@@ -1324,14 +1324,14 @@ class cs {
1324
1324
  * @param value
1325
1325
  */
1326
1326
  emit(e, ...t) {
1327
- let s = this[be].get(e);
1327
+ let s = this[Ae].get(e);
1328
1328
  if (!s)
1329
1329
  return this;
1330
1330
  for (let n = 0; n < s.length; ) {
1331
1331
  let i = s[n];
1332
1332
  if (i.policy == 1 ? s.splice(n, 1) : n++, typeof i.callback == "function")
1333
1333
  try {
1334
- De(() => {
1334
+ Je(() => {
1335
1335
  Reflect.apply(i.callback, {}, t);
1336
1336
  });
1337
1337
  } catch (o) {
@@ -1350,12 +1350,12 @@ class cs {
1350
1350
  return Reflect.apply(this.emit, this, [e, ...t]);
1351
1351
  }
1352
1352
  }
1353
- const _e = Symbol("registerKey");
1354
- class Mr {
1353
+ const Oe = Symbol("registerKey");
1354
+ class Ir {
1355
1355
  /**
1356
1356
  * 数据列表
1357
1357
  */
1358
- [_e] = /* @__PURE__ */ new Map();
1358
+ [Oe] = /* @__PURE__ */ new Map();
1359
1359
  /**
1360
1360
  * 构造函数
1361
1361
  */
@@ -1367,7 +1367,7 @@ class Mr {
1367
1367
  * @param value
1368
1368
  */
1369
1369
  set(e, t) {
1370
- this[_e].set(e, t);
1370
+ this[Oe].set(e, t);
1371
1371
  }
1372
1372
  /**
1373
1373
  * 获取数据
@@ -1375,7 +1375,7 @@ class Mr {
1375
1375
  * @returns
1376
1376
  */
1377
1377
  get(e) {
1378
- return this[_e].get(e);
1378
+ return this[Oe].get(e);
1379
1379
  }
1380
1380
  /**
1381
1381
  * 是否有对应的数据
@@ -1383,7 +1383,7 @@ class Mr {
1383
1383
  * @returns
1384
1384
  */
1385
1385
  has(e) {
1386
- return this[_e].has(e);
1386
+ return this[Oe].has(e);
1387
1387
  }
1388
1388
  /**
1389
1389
  * 删除数据
@@ -1391,35 +1391,35 @@ class Mr {
1391
1391
  * @returns
1392
1392
  */
1393
1393
  delete(e) {
1394
- return this[_e].delete(e);
1394
+ return this[Oe].delete(e);
1395
1395
  }
1396
1396
  }
1397
- const ye = Symbol("lc");
1398
- function ct(r, e = !1) {
1397
+ const Pe = Symbol("lc");
1398
+ function yt(r, e = !1) {
1399
1399
  let t = r;
1400
- if (Reflect.has(t, ye))
1401
- return t[ye];
1400
+ if (Reflect.has(t, Pe))
1401
+ return t[Pe];
1402
1402
  if (e) {
1403
- const s = new Mr();
1404
- return t[ye] = s, s;
1403
+ const s = new Ir();
1404
+ return t[Pe] = s, s;
1405
1405
  }
1406
1406
  return null;
1407
1407
  }
1408
- function Ns(r, e = !1) {
1408
+ function Us(r, e = !1) {
1409
1409
  let t = null, s = r;
1410
- for (; s && !(Reflect.has(s, ye) && (t = s[ye], t)); )
1410
+ for (; s && !(Reflect.has(s, Pe) && (t = s[Pe], t)); )
1411
1411
  s = s.$parent;
1412
1412
  if (!t && e) {
1413
1413
  const n = r;
1414
- n && n.$parent && (t = ct(n.$parent, e));
1414
+ n && n.$parent && (t = yt(n.$parent, e));
1415
1415
  }
1416
1416
  return t;
1417
1417
  }
1418
- function Ds(r, e) {
1418
+ function Vs(r, e) {
1419
1419
  let t = r;
1420
1420
  for (; t; ) {
1421
- if (Reflect.has(t, ye)) {
1422
- const s = t[ye];
1421
+ if (Reflect.has(t, Pe)) {
1422
+ const s = t[Pe];
1423
1423
  if (s.has(e))
1424
1424
  return s.get(e);
1425
1425
  }
@@ -1427,27 +1427,27 @@ function Ds(r, e) {
1427
1427
  }
1428
1428
  return null;
1429
1429
  }
1430
- function Xn(r, e, t) {
1431
- Ns(r, !0)?.set(e, t);
1430
+ function Mn(r, e, t) {
1431
+ Us(r, !0)?.set(e, t);
1432
1432
  }
1433
- function Qn(r, e) {
1434
- Ns(r, !0)?.delete(e);
1433
+ function In(r, e) {
1434
+ Us(r, !0)?.delete(e);
1435
1435
  }
1436
1436
  function fs(r) {
1437
1437
  if (Array.isArray(r.children) && r.children.length > 0) {
1438
1438
  let e = r.children[0];
1439
1439
  if (e != null && e.component != null && e.component.proxy != null)
1440
- return ct(e.component.proxy, !1);
1440
+ return yt(e.component.proxy, !1);
1441
1441
  }
1442
1442
  return null;
1443
1443
  }
1444
- const ft = Symbol("hooksKey");
1445
- function Ir(r) {
1446
- let e = r.get(ft);
1447
- e || (e = [], r.set(ft, e));
1444
+ const dt = Symbol("hooksKey");
1445
+ function Nr(r) {
1446
+ let e = r.get(dt);
1447
+ e || (e = [], r.set(dt, e));
1448
1448
  }
1449
1449
  function hs(r, e) {
1450
- let t = r.get(ft);
1450
+ let t = r.get(dt);
1451
1451
  if (t != null)
1452
1452
  for (let s = t.length - 1; s >= 0; s--) {
1453
1453
  let n = t[s];
@@ -1459,8 +1459,8 @@ function hs(r, e) {
1459
1459
  }
1460
1460
  }
1461
1461
  }
1462
- var Ut = /* @__PURE__ */ ((r) => (r.DEACTIVATED = "da", r.ACTIVATED = "a", r))(Ut || {});
1463
- class Nr {
1462
+ var Vt = /* @__PURE__ */ ((r) => (r.DEACTIVATED = "da", r.ACTIVATED = "a", r))(Vt || {});
1463
+ class Dr {
1464
1464
  /**
1465
1465
  * 类型
1466
1466
  */
@@ -1483,11 +1483,11 @@ class Nr {
1483
1483
  this.target = s, this.hook = t, this.type = e;
1484
1484
  }
1485
1485
  }
1486
- function Dr(r, e, t, s) {
1487
- let n = new Nr(e, t, s);
1486
+ function Hr(r, e, t, s) {
1487
+ let n = new Dr(e, t, s);
1488
1488
  return r.push(n), !0;
1489
1489
  }
1490
- function Hr(r, e, t, s) {
1490
+ function Ur(r, e, t, s) {
1491
1491
  let n = -1;
1492
1492
  for (let i = 0; i < r.length; i++) {
1493
1493
  let o = r[i];
@@ -1498,7 +1498,7 @@ function Hr(r, e, t, s) {
1498
1498
  }
1499
1499
  return n != -1 ? (r.splice(n, 1), !0) : !1;
1500
1500
  }
1501
- function Hs(r) {
1501
+ function Bs(r) {
1502
1502
  return (e, t) => {
1503
1503
  let s;
1504
1504
  if (t)
@@ -1511,323 +1511,323 @@ function Hs(r) {
1511
1511
  }
1512
1512
  s = i.proxy;
1513
1513
  }
1514
- const n = Ds(s, ft);
1514
+ const n = Vs(s, dt);
1515
1515
  if (n == null) {
1516
1516
  console.warn("hooks context not found");
1517
1517
  return;
1518
1518
  }
1519
- ht(() => {
1520
- Hr(n, r, e, s);
1521
- }), Dr(n, r, e, s);
1519
+ pt(() => {
1520
+ Ur(n, r, e, s);
1521
+ }), Hr(n, r, e, s);
1522
1522
  };
1523
1523
  }
1524
- const Yn = Hs(
1524
+ const Nn = Bs(
1525
1525
  "a"
1526
1526
  /* ACTIVATED */
1527
- ), Zn = Hs(
1527
+ ), Dn = Bs(
1528
1528
  "da"
1529
1529
  /* DEACTIVATED */
1530
- ), Us = Symbol("routeKey");
1530
+ ), zs = Symbol("routeKey");
1531
1531
  function ys(r, e) {
1532
- r.set(Us, e);
1532
+ r.set(zs, e);
1533
1533
  }
1534
- function Zt(r) {
1535
- let e = Ds(r, Us);
1534
+ function es(r) {
1535
+ let e = Vs(r, zs);
1536
1536
  return typeof e == "function" ? e() : e ?? null;
1537
1537
  }
1538
- const dt = Symbol("rk"), St = Symbol("vd"), ds = Symbol("rv"), Pt = Symbol("rvi"), ps = Symbol("pv"), $t = Symbol("pvi");
1539
- var me = {};
1540
- Object.defineProperty(me, "__esModule", { value: !0 });
1541
- me.TokenData = void 0;
1542
- me.parse = pt;
1543
- var Ur = me.compile = Xr, Vr = me.match = Zr;
1544
- me.pathToRegexp = sn;
1545
- const Br = "/", es = (r) => r, Jr = /^\p{XID_Continue}$/u, He = "https://git.new/pathToRegexpError", zr = {
1546
- "!": "!",
1547
- "@": "@",
1548
- ";": ";",
1549
- ",": ",",
1550
- "*": "*",
1551
- "+": "+",
1552
- "?": "?",
1553
- "{": "{",
1554
- "}": "}"
1555
- };
1556
- function Wr(r) {
1557
- const e = [...r], t = [];
1558
- let s = 0;
1559
- for (; s < e.length; ) {
1560
- const n = e[s], i = zr[n];
1561
- if (i) {
1562
- t.push({ type: i, index: s++, value: n });
1563
- continue;
1564
- }
1565
- if (n === "\\") {
1566
- t.push({ type: "ESCAPED", index: s++, value: e[s++] });
1567
- continue;
1568
- }
1569
- if (n === ":") {
1570
- let o = "";
1571
- for (; Jr.test(e[++s]); )
1572
- o += e[s];
1573
- if (!o)
1574
- throw new TypeError(`Missing parameter name at ${s}`);
1575
- t.push({ type: "NAME", index: s, value: o });
1576
- continue;
1577
- }
1578
- if (n === "(") {
1579
- const o = s++;
1580
- let a = 1, l = "";
1581
- if (e[s] === "?")
1582
- throw new TypeError(`Pattern cannot start with "?" at ${s}`);
1583
- for (; s < e.length; ) {
1584
- if (e[s] === "\\") {
1585
- l += e[s++] + e[s++];
1586
- continue;
1587
- }
1588
- if (e[s] === ")") {
1589
- if (a--, a === 0) {
1590
- s++;
1591
- break;
1538
+ const gt = Symbol("rk"), Pt = Symbol("vd"), ds = Symbol("rv"), $t = Symbol("rvi"), ps = Symbol("pv"), Ct = Symbol("pvi");
1539
+ var ue = {}, ms;
1540
+ function Vr() {
1541
+ if (ms) return ue;
1542
+ ms = 1, Object.defineProperty(ue, "__esModule", { value: !0 }), ue.TokenData = void 0, ue.parse = l, ue.compile = u, ue.match = f, ue.pathToRegexp = te;
1543
+ const r = "/", e = (p) => p, t = /^\p{XID_Continue}$/u, s = "https://git.new/pathToRegexpError", n = {
1544
+ "!": "!",
1545
+ "@": "@",
1546
+ ";": ";",
1547
+ ",": ",",
1548
+ "*": "*",
1549
+ "+": "+",
1550
+ "?": "?",
1551
+ "{": "{",
1552
+ "}": "}"
1553
+ };
1554
+ function i(p) {
1555
+ const y = [...p], m = [];
1556
+ let g = 0;
1557
+ for (; g < y.length; ) {
1558
+ const P = y[g], x = n[P];
1559
+ if (x) {
1560
+ m.push({ type: x, index: g++, value: P });
1561
+ continue;
1562
+ }
1563
+ if (P === "\\") {
1564
+ m.push({ type: "ESCAPED", index: g++, value: y[g++] });
1565
+ continue;
1566
+ }
1567
+ if (P === ":") {
1568
+ let C = "";
1569
+ for (; t.test(y[++g]); )
1570
+ C += y[g];
1571
+ if (!C)
1572
+ throw new TypeError(`Missing parameter name at ${g}`);
1573
+ m.push({ type: "NAME", index: g, value: C });
1574
+ continue;
1575
+ }
1576
+ if (P === "(") {
1577
+ const C = g++;
1578
+ let A = 1, S = "";
1579
+ if (y[g] === "?")
1580
+ throw new TypeError(`Pattern cannot start with "?" at ${g}`);
1581
+ for (; g < y.length; ) {
1582
+ if (y[g] === "\\") {
1583
+ S += y[g++] + y[g++];
1584
+ continue;
1592
1585
  }
1593
- } else if (e[s] === "(" && (a++, e[s + 1] !== "?"))
1594
- throw new TypeError(`Capturing groups are not allowed at ${s}`);
1595
- l += e[s++];
1586
+ if (y[g] === ")") {
1587
+ if (A--, A === 0) {
1588
+ g++;
1589
+ break;
1590
+ }
1591
+ } else if (y[g] === "(" && (A++, y[g + 1] !== "?"))
1592
+ throw new TypeError(`Capturing groups are not allowed at ${g}`);
1593
+ S += y[g++];
1594
+ }
1595
+ if (A)
1596
+ throw new TypeError(`Unbalanced pattern at ${C}`);
1597
+ if (!S)
1598
+ throw new TypeError(`Missing pattern at ${C}`);
1599
+ m.push({ type: "PATTERN", index: g, value: S });
1600
+ continue;
1596
1601
  }
1597
- if (a)
1598
- throw new TypeError(`Unbalanced pattern at ${o}`);
1599
- if (!l)
1600
- throw new TypeError(`Missing pattern at ${o}`);
1601
- t.push({ type: "PATTERN", index: s, value: l });
1602
- continue;
1602
+ m.push({ type: "CHAR", index: g, value: y[g++] });
1603
1603
  }
1604
- t.push({ type: "CHAR", index: s, value: e[s++] });
1605
- }
1606
- return t.push({ type: "END", index: s, value: "" }), new Gr(t);
1607
- }
1608
- class Gr {
1609
- constructor(e) {
1610
- this.tokens = e, this.index = 0;
1611
- }
1612
- peek() {
1613
- return this.tokens[this.index];
1614
- }
1615
- tryConsume(e) {
1616
- const t = this.peek();
1617
- if (t.type === e)
1618
- return this.index++, t.value;
1604
+ return m.push({ type: "END", index: g, value: "" }), new o(m);
1619
1605
  }
1620
- consume(e) {
1621
- const t = this.tryConsume(e);
1622
- if (t !== void 0)
1623
- return t;
1624
- const { type: s, index: n } = this.peek();
1625
- throw new TypeError(`Unexpected ${s} at ${n}, expected ${e}: ${He}`);
1626
- }
1627
- text() {
1628
- let e = "", t;
1629
- for (; t = this.tryConsume("CHAR") || this.tryConsume("ESCAPED"); )
1630
- e += t;
1631
- return e;
1632
- }
1633
- modifier() {
1634
- return this.tryConsume("?") || this.tryConsume("*") || this.tryConsume("+");
1635
- }
1636
- }
1637
- class Ve {
1638
- constructor(e, t) {
1639
- this.tokens = e, this.delimiter = t;
1640
- }
1641
- }
1642
- me.TokenData = Ve;
1643
- function pt(r, e = {}) {
1644
- const { encodePath: t = es, delimiter: s = t(Br) } = e, n = [], i = Wr(r);
1645
- let o = 0;
1646
- do {
1647
- const a = i.text();
1648
- a && n.push(t(a));
1649
- const l = i.tryConsume("NAME"), u = i.tryConsume("PATTERN");
1650
- if (l || u) {
1651
- n.push({
1652
- name: l || String(o++),
1653
- pattern: u
1654
- });
1655
- const h = i.peek();
1656
- if (h.type === "*")
1657
- throw new TypeError(`Unexpected * at ${h.index}, you probably want \`/*\` or \`{/:foo}*\`: ${He}`);
1658
- continue;
1606
+ class o {
1607
+ constructor(y) {
1608
+ this.tokens = y, this.index = 0;
1659
1609
  }
1660
- if (i.tryConsume("*")) {
1661
- n.push({
1662
- name: String(o++),
1663
- pattern: `(?:(?!${Ee(s)}).)*`,
1664
- modifier: "*",
1665
- separator: s
1666
- });
1667
- continue;
1610
+ peek() {
1611
+ return this.tokens[this.index];
1668
1612
  }
1669
- if (i.tryConsume("{")) {
1670
- const h = i.text(), y = i.tryConsume("NAME"), d = i.tryConsume("PATTERN"), p = i.text(), m = i.tryConsume(";") && i.text();
1671
- i.consume("}");
1672
- const v = i.modifier();
1673
- n.push({
1674
- name: y || (d ? String(o++) : ""),
1675
- prefix: t(h),
1676
- suffix: t(p),
1677
- pattern: d,
1678
- modifier: v,
1679
- separator: m
1680
- });
1681
- continue;
1613
+ tryConsume(y) {
1614
+ const m = this.peek();
1615
+ if (m.type === y)
1616
+ return this.index++, m.value;
1617
+ }
1618
+ consume(y) {
1619
+ const m = this.tryConsume(y);
1620
+ if (m !== void 0)
1621
+ return m;
1622
+ const { type: g, index: P } = this.peek();
1623
+ throw new TypeError(`Unexpected ${g} at ${P}, expected ${y}: ${s}`);
1624
+ }
1625
+ text() {
1626
+ let y = "", m;
1627
+ for (; m = this.tryConsume("CHAR") || this.tryConsume("ESCAPED"); )
1628
+ y += m;
1629
+ return y;
1630
+ }
1631
+ modifier() {
1632
+ return this.tryConsume("?") || this.tryConsume("*") || this.tryConsume("+");
1682
1633
  }
1683
- i.consume("END");
1684
- break;
1685
- } while (!0);
1686
- return new Ve(n, s);
1687
- }
1688
- function Xr(r, e = {}) {
1689
- const t = r instanceof Ve ? r : pt(r, e);
1690
- return Yr(t, e);
1691
- }
1692
- function Qr(r, e) {
1693
- if (typeof r == "string")
1694
- return () => r;
1695
- const t = e || es, s = r.modifier === "+" || r.modifier === "*", n = r.modifier === "?" || r.modifier === "*", { prefix: i = "", suffix: o = "", separator: a = o + i } = r;
1696
- if (e && s) {
1697
- const u = (f, h) => {
1698
- if (typeof f != "string")
1699
- throw new TypeError(`Expected "${r.name}/${h}" to be a string`);
1700
- return t(f);
1701
- }, c = (f) => {
1702
- if (!Array.isArray(f))
1703
- throw new TypeError(`Expected "${r.name}" to be an array`);
1704
- return f.length === 0 ? "" : i + f.map(u).join(a) + o;
1705
- };
1706
- return n ? (f) => {
1707
- const h = f[r.name];
1708
- return h == null ? "" : h.length ? c(h) : "";
1709
- } : (f) => {
1710
- const h = f[r.name];
1711
- return c(h);
1712
- };
1713
1634
  }
1714
- const l = (u) => {
1715
- if (typeof u != "string")
1716
- throw new TypeError(`Expected "${r.name}" to be a string`);
1717
- return i + t(u) + o;
1718
- };
1719
- return n ? (u) => {
1720
- const c = u[r.name];
1721
- return c == null ? "" : l(c);
1722
- } : (u) => {
1723
- const c = u[r.name];
1724
- return l(c);
1725
- };
1726
- }
1727
- function Yr(r, e) {
1728
- const { encode: t = encodeURIComponent, loose: s = !0, validate: n = !0, strict: i = !1 } = e, o = Vs(e), a = ts(s, r.delimiter), l = Js(r, a, [], o, i), u = r.tokens.map((c, f) => {
1729
- const h = Qr(c, t);
1730
- if (!n || typeof c == "string")
1731
- return h;
1732
- const y = new RegExp(`^${l[f]}$`, o);
1733
- return (d) => {
1734
- const p = h(d);
1735
- if (!y.test(p))
1736
- throw new TypeError(`Invalid value for "${c.name}": ${JSON.stringify(p)}`);
1737
- return p;
1738
- };
1739
- });
1740
- return function(f = {}) {
1741
- let h = "";
1742
- for (const y of u)
1743
- h += y(f);
1744
- return h;
1745
- };
1746
- }
1747
- function Zr(r, e = {}) {
1748
- const { decode: t = decodeURIComponent, loose: s = !0 } = e, n = r instanceof Ve ? r : pt(r, e), i = ts(s, n.delimiter), o = [], a = Bs(n, o, e), l = o.map((u) => {
1749
- if (t && (u.modifier === "+" || u.modifier === "*")) {
1750
- const { prefix: c = "", suffix: f = "", separator: h = f + c } = u, y = new RegExp(i(h), "g");
1751
- return (d) => d.split(y).map(t);
1635
+ class a {
1636
+ constructor(y, m) {
1637
+ this.tokens = y, this.delimiter = m;
1752
1638
  }
1753
- return t || es;
1754
- });
1755
- return function(c) {
1756
- const f = a.exec(c);
1757
- if (!f)
1758
- return !1;
1759
- const { 0: h, index: y } = f, d = /* @__PURE__ */ Object.create(null);
1760
- for (let p = 1; p < f.length; p++) {
1761
- if (f[p] === void 0)
1639
+ }
1640
+ ue.TokenData = a;
1641
+ function l(p, y = {}) {
1642
+ const { encodePath: m = e, delimiter: g = m(r) } = y, P = [], x = i(p);
1643
+ let C = 0;
1644
+ do {
1645
+ const A = x.text();
1646
+ A && P.push(m(A));
1647
+ const S = x.tryConsume("NAME"), K = x.tryConsume("PATTERN");
1648
+ if (S || K) {
1649
+ P.push({
1650
+ name: S || String(C++),
1651
+ pattern: K
1652
+ });
1653
+ const _ = x.peek();
1654
+ if (_.type === "*")
1655
+ throw new TypeError(`Unexpected * at ${_.index}, you probably want \`/*\` or \`{/:foo}*\`: ${s}`);
1762
1656
  continue;
1763
- const m = o[p - 1], v = l[p - 1];
1764
- d[m.name] = v(f[p]);
1657
+ }
1658
+ if (x.tryConsume("*")) {
1659
+ P.push({
1660
+ name: String(C++),
1661
+ pattern: `(?:(?!${d(g)}).)*`,
1662
+ modifier: "*",
1663
+ separator: g
1664
+ });
1665
+ continue;
1666
+ }
1667
+ if (x.tryConsume("{")) {
1668
+ const _ = x.text(), U = x.tryConsume("NAME"), J = x.tryConsume("PATTERN"), D = x.text(), ce = x.tryConsume(";") && x.text();
1669
+ x.consume("}");
1670
+ const me = x.modifier();
1671
+ P.push({
1672
+ name: U || (J ? String(C++) : ""),
1673
+ prefix: m(_),
1674
+ suffix: m(D),
1675
+ pattern: J,
1676
+ modifier: me,
1677
+ separator: ce
1678
+ });
1679
+ continue;
1680
+ }
1681
+ x.consume("END");
1682
+ break;
1683
+ } while (!0);
1684
+ return new a(P, g);
1685
+ }
1686
+ function u(p, y = {}) {
1687
+ const m = p instanceof a ? p : l(p, y);
1688
+ return h(m, y);
1689
+ }
1690
+ function c(p, y) {
1691
+ if (typeof p == "string")
1692
+ return () => p;
1693
+ const m = y || e, g = p.modifier === "+" || p.modifier === "*", P = p.modifier === "?" || p.modifier === "*", { prefix: x = "", suffix: C = "", separator: A = C + x } = p;
1694
+ if (y && g) {
1695
+ const K = (T, _) => {
1696
+ if (typeof T != "string")
1697
+ throw new TypeError(`Expected "${p.name}/${_}" to be a string`);
1698
+ return m(T);
1699
+ }, F = (T) => {
1700
+ if (!Array.isArray(T))
1701
+ throw new TypeError(`Expected "${p.name}" to be an array`);
1702
+ return T.length === 0 ? "" : x + T.map(K).join(A) + C;
1703
+ };
1704
+ return P ? (T) => {
1705
+ const _ = T[p.name];
1706
+ return _ == null ? "" : _.length ? F(_) : "";
1707
+ } : (T) => {
1708
+ const _ = T[p.name];
1709
+ return F(_);
1710
+ };
1765
1711
  }
1766
- return { path: h, index: y, params: d };
1767
- };
1768
- }
1769
- function Ee(r) {
1770
- return r.replace(/([.+*?^${}()[\]|/\\])/g, "\\$1");
1771
- }
1772
- function en(r, e) {
1773
- const t = Ee(r);
1774
- return e ? `(?:${t})+(?!${t})` : t;
1775
- }
1776
- function ts(r, e) {
1777
- if (!r)
1778
- return Ee;
1779
- const t = new RegExp(`(?:(?!${Ee(e)}).)+|(.)`, "g");
1780
- return (s) => s.replace(t, en);
1781
- }
1782
- function Vs(r) {
1783
- return r.sensitive ? "" : "i";
1784
- }
1785
- function Bs(r, e, t) {
1786
- const { trailing: s = !0, loose: n = !0, start: i = !0, end: o = !0, strict: a = !1 } = t, l = Vs(t), u = ts(n, r.delimiter), c = Js(r, u, e, l, a);
1787
- let f = i ? "^" : "";
1788
- return f += c.join(""), s && (f += `(?:${u(r.delimiter)})?`), f += o ? "$" : `(?=${Ee(r.delimiter)}|$)`, new RegExp(f, l);
1789
- }
1790
- function Js(r, e, t, s, n) {
1791
- const i = `(?:(?!${Ee(r.delimiter)}).)+?`;
1792
- let o = "", a = !0;
1793
- return r.tokens.map((l, u) => {
1794
- if (typeof l == "string")
1795
- return o = l, e(l);
1796
- const { prefix: c = "", suffix: f = "", separator: h = f + c, modifier: y = "" } = l, d = e(c), p = e(f);
1797
- if (l.name) {
1798
- const m = l.pattern ? `(?:${l.pattern})` : i, v = tn(m, l.name, s);
1799
- if (a || (a = Ct(v, c || o)), !a)
1800
- throw new TypeError(`Ambiguous pattern for "${l.name}": ${He}`);
1801
- if (a = !n || Ct(v, f), o = "", t.push(l), y === "+" || y === "*") {
1802
- const g = y === "*" ? "?" : "", T = e(h);
1803
- if (!T)
1804
- throw new TypeError(`Missing separator for "${l.name}": ${He}`);
1805
- if (a || (a = !n || Ct(v, h)), !a)
1806
- throw new TypeError(`Ambiguous pattern for "${l.name}" separator: ${He}`);
1807
- return a = !n, `(?:${d}(${m}(?:${T}${m})*)${p})${g}`;
1712
+ const S = (K) => {
1713
+ if (typeof K != "string")
1714
+ throw new TypeError(`Expected "${p.name}" to be a string`);
1715
+ return x + m(K) + C;
1716
+ };
1717
+ return P ? (K) => {
1718
+ const F = K[p.name];
1719
+ return F == null ? "" : S(F);
1720
+ } : (K) => {
1721
+ const F = K[p.name];
1722
+ return S(F);
1723
+ };
1724
+ }
1725
+ function h(p, y) {
1726
+ const { encode: m = encodeURIComponent, loose: g = !0, validate: P = !0, strict: x = !1 } = y, C = R(y), A = w(g, p.delimiter), S = b(p, A, [], C, x), K = p.tokens.map((F, T) => {
1727
+ const _ = c(F, m);
1728
+ if (!P || typeof F == "string")
1729
+ return _;
1730
+ const U = new RegExp(`^${S[T]}$`, C);
1731
+ return (J) => {
1732
+ const D = _(J);
1733
+ if (!U.test(D))
1734
+ throw new TypeError(`Invalid value for "${F.name}": ${JSON.stringify(D)}`);
1735
+ return D;
1736
+ };
1737
+ });
1738
+ return function(T = {}) {
1739
+ let _ = "";
1740
+ for (const U of K)
1741
+ _ += U(T);
1742
+ return _;
1743
+ };
1744
+ }
1745
+ function f(p, y = {}) {
1746
+ const { decode: m = decodeURIComponent, loose: g = !0 } = y, P = p instanceof a ? p : l(p, y), x = w(g, P.delimiter), C = [], A = E(P, C, y), S = C.map((K) => {
1747
+ if (m && (K.modifier === "+" || K.modifier === "*")) {
1748
+ const { prefix: F = "", suffix: T = "", separator: _ = T + F } = K, U = new RegExp(x(_), "g");
1749
+ return (J) => J.split(U).map(m);
1808
1750
  }
1809
- return `(?:${d}(${m})${p})${y}`;
1751
+ return m || e;
1752
+ });
1753
+ return function(F) {
1754
+ const T = A.exec(F);
1755
+ if (!T)
1756
+ return !1;
1757
+ const { 0: _, index: U } = T, J = /* @__PURE__ */ Object.create(null);
1758
+ for (let D = 1; D < T.length; D++) {
1759
+ if (T[D] === void 0)
1760
+ continue;
1761
+ const ce = C[D - 1], me = S[D - 1];
1762
+ J[ce.name] = me(T[D]);
1763
+ }
1764
+ return { path: _, index: U, params: J };
1765
+ };
1766
+ }
1767
+ function d(p) {
1768
+ return p.replace(/([.+*?^${}()[\]|/\\])/g, "\\$1");
1769
+ }
1770
+ function v(p, y) {
1771
+ const m = d(p);
1772
+ return y ? `(?:${m})+(?!${m})` : m;
1773
+ }
1774
+ function w(p, y) {
1775
+ if (!p)
1776
+ return d;
1777
+ const m = new RegExp(`(?:(?!${d(y)}).)+|(.)`, "g");
1778
+ return (g) => g.replace(m, v);
1779
+ }
1780
+ function R(p) {
1781
+ return p.sensitive ? "" : "i";
1782
+ }
1783
+ function E(p, y, m) {
1784
+ const { trailing: g = !0, loose: P = !0, start: x = !0, end: C = !0, strict: A = !1 } = m, S = R(m), K = w(P, p.delimiter), F = b(p, K, y, S, A);
1785
+ let T = x ? "^" : "";
1786
+ return T += F.join(""), g && (T += `(?:${K(p.delimiter)})?`), T += C ? "$" : `(?=${d(p.delimiter)}|$)`, new RegExp(T, S);
1787
+ }
1788
+ function b(p, y, m, g, P) {
1789
+ const x = `(?:(?!${d(p.delimiter)}).)+?`;
1790
+ let C = "", A = !0;
1791
+ return p.tokens.map((S, K) => {
1792
+ if (typeof S == "string")
1793
+ return C = S, y(S);
1794
+ const { prefix: F = "", suffix: T = "", separator: _ = T + F, modifier: U = "" } = S, J = y(F), D = y(T);
1795
+ if (S.name) {
1796
+ const ce = S.pattern ? `(?:${S.pattern})` : x, me = z(ce, S.name, g);
1797
+ if (A || (A = X(me, F || C)), !A)
1798
+ throw new TypeError(`Ambiguous pattern for "${S.name}": ${s}`);
1799
+ if (A = !P || X(me, T), C = "", m.push(S), U === "+" || U === "*") {
1800
+ const cr = U === "*" ? "?" : "", ss = y(_);
1801
+ if (!ss)
1802
+ throw new TypeError(`Missing separator for "${S.name}": ${s}`);
1803
+ if (A || (A = !P || X(me, _)), !A)
1804
+ throw new TypeError(`Ambiguous pattern for "${S.name}" separator: ${s}`);
1805
+ return A = !P, `(?:${J}(${ce}(?:${ss}${ce})*)${D})${cr}`;
1806
+ }
1807
+ return `(?:${J}(${ce})${D})${U}`;
1808
+ }
1809
+ return `(?:${J}${D})${U}`;
1810
+ });
1811
+ }
1812
+ function z(p, y, m) {
1813
+ try {
1814
+ return new RegExp(`^${p}$`, m);
1815
+ } catch (g) {
1816
+ throw new TypeError(`Invalid pattern for "${y}": ${g.message}`);
1810
1817
  }
1811
- return `(?:${d}${p})${y}`;
1812
- });
1813
- }
1814
- function tn(r, e, t) {
1815
- try {
1816
- return new RegExp(`^${r}$`, t);
1817
- } catch (s) {
1818
- throw new TypeError(`Invalid pattern for "${e}": ${s.message}`);
1819
1818
  }
1819
+ function X(p, y) {
1820
+ return y ? !p.test(y) : !1;
1821
+ }
1822
+ function te(p, y = {}) {
1823
+ const m = p instanceof a ? p : l(p, y), g = [], P = E(m, g, y);
1824
+ return Object.assign(P, { keys: g });
1825
+ }
1826
+ return ue;
1820
1827
  }
1821
- function Ct(r, e) {
1822
- return e ? !r.test(e) : !1;
1823
- }
1824
- function sn(r, e = {}) {
1825
- const t = r instanceof Ve ? r : pt(r, e), s = [], n = Bs(t, s, e);
1826
- return Object.assign(n, { keys: s });
1827
- }
1828
- var it = /* @__PURE__ */ ((r) => (r[r.Part = 0] = "Part", r[r.All = 1] = "All", r))(it || {});
1829
- const V = Symbol("rootKey"), U = Symbol("rootNodeKey"), he = Symbol("parentNodeKey"), ot = Symbol("nameKey");
1830
- class se {
1828
+ var gs = Vr(), at = /* @__PURE__ */ ((r) => (r[r.Part = 0] = "Part", r[r.All = 1] = "All", r))(at || {});
1829
+ const re = Symbol("rootKey"), se = Symbol("rootNodeKey"), Se = Symbol("parentNodeKey"), ut = Symbol("nameKey");
1830
+ class he {
1831
1831
  /**
1832
1832
  * 实例
1833
1833
  */
@@ -1859,7 +1859,7 @@ class se {
1859
1859
  this.route = e, this.model = t, this.index = s, this.active = n;
1860
1860
  }
1861
1861
  }
1862
- class Ke {
1862
+ class Me {
1863
1863
  /**
1864
1864
  * model slots列表
1865
1865
  */
@@ -1868,7 +1868,7 @@ class Ke {
1868
1868
  * getter for models
1869
1869
  */
1870
1870
  get slots() {
1871
- return this._slots == null && (this._slots = pr([])), this._slots;
1871
+ return this._slots == null && (this._slots = _s([])), this._slots;
1872
1872
  }
1873
1873
  /**
1874
1874
  * 是否为空视图
@@ -1879,24 +1879,24 @@ class Ke {
1879
1879
  /**
1880
1880
  * name
1881
1881
  */
1882
- [ot];
1882
+ [ut];
1883
1883
  /**
1884
1884
  * 是否分支根节点标志(true/false)
1885
1885
  */
1886
- [V];
1886
+ [re];
1887
1887
  /**
1888
1888
  * view的所在的root(最近一个)
1889
1889
  */
1890
- [U] = null;
1890
+ [se] = null;
1891
1891
  /**
1892
1892
  * view的父亲记得引用(会在router的[sync]方法中建立关系)
1893
1893
  */
1894
- [he] = null;
1894
+ [Se] = null;
1895
1895
  /**
1896
1896
  * 名称
1897
1897
  */
1898
1898
  get name() {
1899
- return this[ot];
1899
+ return this[ut];
1900
1900
  }
1901
1901
  /**
1902
1902
  * 构造函数
@@ -1905,10 +1905,10 @@ class Ke {
1905
1905
  * @param rootNodeRef
1906
1906
  */
1907
1907
  constructor(e, t, s) {
1908
- this[ot] = e, this[V] = t, s && (this[U] = s);
1908
+ this[ut] = e, this[re] = t, s && (this[se] = s);
1909
1909
  }
1910
1910
  }
1911
- class I {
1911
+ class Y {
1912
1912
  /**
1913
1913
  * view
1914
1914
  */
@@ -1950,13 +1950,13 @@ class Et {
1950
1950
  */
1951
1951
  views = [];
1952
1952
  }
1953
- class rn {
1953
+ class Br {
1954
1954
  /**
1955
1955
  * 层
1956
1956
  */
1957
1957
  layers = [];
1958
1958
  }
1959
- class nn {
1959
+ class zr {
1960
1960
  /**
1961
1961
  * time
1962
1962
  */
@@ -1966,7 +1966,7 @@ class nn {
1966
1966
  */
1967
1967
  route;
1968
1968
  }
1969
- class on {
1969
+ class Jr {
1970
1970
  /**
1971
1971
  * 禁止重复提交时间间隔
1972
1972
  */
@@ -1974,7 +1974,7 @@ class on {
1974
1974
  /**
1975
1975
  * 提交路由记录
1976
1976
  */
1977
- submitRecorder = new nn();
1977
+ submitRecorder = new zr();
1978
1978
  /**
1979
1979
  * 判断是否为同一个路由(只判断name、path和root是否一致)
1980
1980
  * @param x
@@ -2004,8 +2004,8 @@ class on {
2004
2004
  this.submitRecorder.time === e && (this.submitRecorder.route = void 0);
2005
2005
  }
2006
2006
  }
2007
- const $e = Symbol("_notifyChange");
2008
- class ms {
2007
+ const qe = Symbol("_notifyChange");
2008
+ class vs {
2009
2009
  //当前路由
2010
2010
  currentRoute;
2011
2011
  //当前页面的路由集合
@@ -2019,11 +2019,11 @@ class ms {
2019
2019
  this.currentRoute = e, this.routes = t;
2020
2020
  }
2021
2021
  }
2022
- const ae = Symbol("historyChangeConsumerKey"), gs = Symbol("_navigateFirstRoute"), We = Symbol("_getRouteMark"), At = Symbol("_getUrlSearch"), Ft = Symbol("_generateLocation"), Ge = Symbol("_setRouteMarkRecorder"), qe = Symbol("beforeRestoreFiltersKey"), vs = Symbol("_beforeRestore"), ws = "Symbol(_fox_restore_point)";
2023
- function je(r, ...e) {
2022
+ const ve = Symbol("historyChangeConsumerKey"), ws = Symbol("_navigateFirstRoute"), Ye = Symbol("_getRouteMark"), At = Symbol("_getUrlSearch"), Ft = Symbol("_generateLocation"), Ze = Symbol("_setRouteMarkRecorder"), Ie = Symbol("beforeRestoreFiltersKey"), bs = Symbol("_beforeRestore"), xs = "Symbol(_fox_restore_point)";
2023
+ function Ne(r, ...e) {
2024
2024
  return typeof r == "function" ? Reflect.apply(r, null, [...e]) : r;
2025
2025
  }
2026
- function bs(r) {
2026
+ function Rs(r) {
2027
2027
  if (!Array.isArray(r))
2028
2028
  return !1;
2029
2029
  if (r.length === 0)
@@ -2031,7 +2031,7 @@ function bs(r) {
2031
2031
  const e = r[0];
2032
2032
  return !!(Reflect.has(e, "path") && Reflect.has(e, "root"));
2033
2033
  }
2034
- class zs {
2034
+ class Js {
2035
2035
  /**
2036
2036
  * 基础路径
2037
2037
  */
@@ -2071,11 +2071,11 @@ class zs {
2071
2071
  /**
2072
2072
  * history change消费者标志
2073
2073
  */
2074
- [ae] = !1;
2074
+ [ve] = !1;
2075
2075
  /**
2076
2076
  * before restore 过滤器队列(用于刷新还原)
2077
2077
  */
2078
- [qe] = new Array();
2078
+ [Ie] = new Array();
2079
2079
  /**
2080
2080
  * 回退timeout
2081
2081
  */
@@ -2092,7 +2092,7 @@ class zs {
2092
2092
  * @param backTimeout
2093
2093
  */
2094
2094
  constructor(e = "hash", t = "", s = "", n = !0, i = !0, o = !1, a, l) {
2095
- this.mode = e, this.base = t, this.query = s, this.firstNavigate = n, this.historyMonitor = i, this.traceless = o, this.storage = a ?? $().sessionStorage, this.backTimeout = l ?? 320;
2095
+ this.mode = e, this.base = t, this.query = s, this.firstNavigate = n, this.historyMonitor = i, this.traceless = o, this.storage = a ?? I().sessionStorage, this.backTimeout = l ?? 320;
2096
2096
  }
2097
2097
  /**
2098
2098
  * 初始化
@@ -2100,37 +2100,37 @@ class zs {
2100
2100
  * @returns
2101
2101
  */
2102
2102
  init(e = !0) {
2103
- const t = $();
2103
+ const t = I();
2104
2104
  return typeof this.historyChange != "function" && (this.historyChange = () => {
2105
- if (typeof this[ae] == "function") {
2106
- const s = this[ae]();
2107
- if (this[ae] = !1, s)
2105
+ if (typeof this[ve] == "function") {
2106
+ const s = this[ve]();
2107
+ if (this[ve] = !1, s)
2108
2108
  return;
2109
- } else if (this[ae] === !0) {
2110
- this[ae] = !1;
2109
+ } else if (this[ve] === !0) {
2110
+ this[ve] = !1;
2111
2111
  return;
2112
2112
  }
2113
- if (je(this.historyMonitor)) {
2113
+ if (Ne(this.historyMonitor)) {
2114
2114
  const s = t.history.state;
2115
- this[$e](s);
2115
+ this[qe](s);
2116
2116
  try {
2117
2117
  let n = [];
2118
2118
  if (typeof s == "string" ? n = JSON.parse(s) : n = s, Array.isArray(n) && n.length > 0) {
2119
- const i = this[We]() ?? "/";
2120
- this[Ge](i, n);
2119
+ const i = this[Ye]() ?? "/";
2120
+ this[Ze](i, n);
2121
2121
  }
2122
2122
  } catch {
2123
2123
  }
2124
2124
  }
2125
- }), at(t, "popstate", this.historyChange), this.firstNavigate && e && this[gs](), Promise.resolve();
2125
+ }), ft(t, "popstate", this.historyChange), this.firstNavigate && e && this[ws](), Promise.resolve();
2126
2126
  }
2127
2127
  /**
2128
2128
  * 销毁
2129
2129
  */
2130
2130
  destroy() {
2131
2131
  if (this.historyChange) {
2132
- const e = $();
2133
- zt(e, "popstate", this.historyChange);
2132
+ const e = I();
2133
+ Wt(e, "popstate", this.historyChange);
2134
2134
  }
2135
2135
  }
2136
2136
  /**
@@ -2140,8 +2140,8 @@ class zs {
2140
2140
  * @param mark
2141
2141
  * @param routes
2142
2142
  */
2143
- [vs](e, t, s, n) {
2144
- for (let i of this[qe])
2143
+ [bs](e, t, s, n) {
2144
+ for (let i of this[Ie])
2145
2145
  try {
2146
2146
  const o = Reflect.apply(i, {}, [e, t, s, n]);
2147
2147
  if (o === !1)
@@ -2156,7 +2156,7 @@ class zs {
2156
2156
  * @param filter
2157
2157
  */
2158
2158
  beforeRestoreEach(e) {
2159
- this[qe].push(e);
2159
+ this[Ie].push(e);
2160
2160
  }
2161
2161
  /**
2162
2162
  * 移除before restore filter
@@ -2164,22 +2164,22 @@ class zs {
2164
2164
  * @returns
2165
2165
  */
2166
2166
  removeBeforeRestoreEach(e) {
2167
- const t = this[qe].indexOf(e);
2168
- return t !== -1 ? (this[qe].splice(t, 1), !0) : !1;
2167
+ const t = this[Ie].indexOf(e);
2168
+ return t !== -1 ? (this[Ie].splice(t, 1), !0) : !1;
2169
2169
  }
2170
2170
  /**
2171
2171
  * 导航到第一个route
2172
2172
  */
2173
- [gs]() {
2174
- const e = this[We]() ?? "/", t = this.storage.getItem(ws);
2173
+ [ws]() {
2174
+ const e = this[Ye]() ?? "/", t = this.storage.getItem(xs);
2175
2175
  if (t)
2176
2176
  try {
2177
2177
  const o = JSON.parse(t);
2178
2178
  if (o.mark === e && Array.isArray(o.routes) && o.routes.length > 0) {
2179
- const a = o.routes.filter((l, u) => (l.params = l.params ? qs(l.params) : {}, this[vs](l, u, e, o.routes)));
2179
+ const a = o.routes.filter((l, u) => (l.params = l.params ? ks(l.params) : {}, this[bs](l, u, e, o.routes)));
2180
2180
  if (a.length > 0) {
2181
2181
  const l = this[At](), u = a.length - 1;
2182
- a[u].query = l || a[u].query, this[$e](a);
2182
+ a[u].query = l || a[u].query, this[qe](a);
2183
2183
  return;
2184
2184
  }
2185
2185
  }
@@ -2188,24 +2188,24 @@ class zs {
2188
2188
  const s = e.indexOf("!");
2189
2189
  let n;
2190
2190
  s != -1 ? n = e.substring(s + 1) : n = e;
2191
- const i = new R();
2192
- i.path = n, i.query = this[At](), this[$e]([i]);
2191
+ const i = new L();
2192
+ i.path = n, i.query = this[At](), this[qe]([i]);
2193
2193
  }
2194
2194
  /**
2195
2195
  * 设置当前route mark的记录
2196
2196
  * @param mark
2197
2197
  * @param routes
2198
2198
  */
2199
- [Ge](e, t) {
2199
+ [Ze](e, t) {
2200
2200
  try {
2201
2201
  t.forEach((i) => {
2202
- i.params = i.params ? Ks(i.params) : {};
2202
+ i.params = i.params ? Ls(i.params) : {};
2203
2203
  });
2204
2204
  const n = JSON.stringify({
2205
2205
  mark: e,
2206
2206
  routes: t
2207
2207
  });
2208
- this.storage.setItem(ws, n);
2208
+ this.storage.setItem(xs, n);
2209
2209
  } catch (s) {
2210
2210
  console.error(s.message, s);
2211
2211
  }
@@ -2216,20 +2216,20 @@ class zs {
2216
2216
  * @param routes 路由记录
2217
2217
  */
2218
2218
  setRestorePoint(e) {
2219
- const t = this[We]() ?? "/";
2220
- this[Ge](t, e);
2219
+ const t = this[Ye]() ?? "/";
2220
+ this[Ze](t, e);
2221
2221
  }
2222
2222
  /**
2223
2223
  * 通知修改
2224
2224
  */
2225
- [$e](e) {
2225
+ [qe](e) {
2226
2226
  typeof this.changeHandler == "function" && this.changeHandler(e);
2227
2227
  }
2228
2228
  /**
2229
2229
  * 获取当前标志
2230
2230
  */
2231
- [We]() {
2232
- const e = $();
2231
+ [Ye]() {
2232
+ const e = I();
2233
2233
  if (this.mode === "path") {
2234
2234
  let t = e.location.pathname;
2235
2235
  return this.base && t.indexOf(this.base) === 0 && (t = t.substring(this.base.length)), t;
@@ -2244,7 +2244,7 @@ class zs {
2244
2244
  * 获取当前search
2245
2245
  */
2246
2246
  [At]() {
2247
- let t = $().location.search;
2247
+ let t = I().location.search;
2248
2248
  return t.length > 0 && t.indexOf("?") === 0 && (t = t.substring(1)), t;
2249
2249
  }
2250
2250
  /**
@@ -2260,8 +2260,8 @@ class zs {
2260
2260
  * @param consume
2261
2261
  */
2262
2262
  go(e, t = !1) {
2263
- const s = $();
2264
- this[ae] = t, s.history.go(e);
2263
+ const s = I();
2264
+ this[ve] = t, s.history.go(e);
2265
2265
  }
2266
2266
  /**
2267
2267
  * 回退到指定路由
@@ -2269,12 +2269,12 @@ class zs {
2269
2269
  * @param trigger
2270
2270
  */
2271
2271
  goBack(e, t) {
2272
- const s = $(), n = s.history.state;
2273
- if (bs(n) && n.length > 0) {
2272
+ const s = I(), n = s.history.state;
2273
+ if (Rs(n) && n.length > 0) {
2274
2274
  let i = !1;
2275
2275
  for (let c = n.length - 1; c >= 0; c--) {
2276
- const f = R.from(n[c]);
2277
- if (!(f.historyUpdatePolicy === "traceless" || je(this.traceless, f)) && R.isSame(f, e)) {
2276
+ const h = L.from(n[c]);
2277
+ if (!(h.historyUpdatePolicy === "traceless" || Ne(this.traceless, h)) && L.isSame(h, e)) {
2278
2278
  i = !0;
2279
2279
  break;
2280
2280
  }
@@ -2289,22 +2289,22 @@ class zs {
2289
2289
  s.history.go(-1), a = setTimeout(l, o);
2290
2290
  }, u = () => {
2291
2291
  clearTimeout(a);
2292
- const f = $().history.state;
2293
- if (bs(f) && f.length > 0) {
2294
- let h = f.length;
2295
- const y = f[h - 1], d = R.from(y);
2296
- if (R.isSame(d, e))
2292
+ const h = I().history.state;
2293
+ if (Rs(h) && h.length > 0) {
2294
+ let f = h.length;
2295
+ const d = h[f - 1], v = L.from(d);
2296
+ if (L.isSame(v, e))
2297
2297
  return t(), !0;
2298
- if (h > 0) {
2299
- let p = !1;
2300
- for (let m = h - 1; m >= 0; m--) {
2301
- const v = R.from(f[m]);
2302
- if (!(v.traceless === !0 || je(this.traceless, v)) && R.isSame(v, e)) {
2303
- p = !0;
2298
+ if (f > 0) {
2299
+ let w = !1;
2300
+ for (let R = f - 1; R >= 0; R--) {
2301
+ const E = L.from(h[R]);
2302
+ if (!(E.traceless === !0 || Ne(this.traceless, E)) && L.isSame(E, e)) {
2303
+ w = !0;
2304
2304
  break;
2305
2305
  }
2306
2306
  }
2307
- return p ? (setTimeout(() => {
2307
+ return w ? (setTimeout(() => {
2308
2308
  a = setTimeout(l, o), this.go(-1, u);
2309
2309
  }, 0), !0) : (t(), !0);
2310
2310
  }
@@ -2321,7 +2321,7 @@ class zs {
2321
2321
  */
2322
2322
  setRouteMark(e) {
2323
2323
  const t = e.currentRoute.fullPath;
2324
- this[Ge](t, e.routes);
2324
+ this[Ze](t, e.routes);
2325
2325
  }
2326
2326
  /**
2327
2327
  * 加入记录
@@ -2329,7 +2329,7 @@ class zs {
2329
2329
  */
2330
2330
  push(e) {
2331
2331
  const t = this[Ft](e.currentRoute);
2332
- e.currentRoute.historyUpdatePolicy !== "traceless" && !je(this.traceless, e.currentRoute) && $().history.pushState(e.routes, "", t), this.setRouteMark(e);
2332
+ e.currentRoute.historyUpdatePolicy !== "traceless" && !Ne(this.traceless, e.currentRoute) && I().history.pushState(e.routes, "", t), this.setRouteMark(e);
2333
2333
  }
2334
2334
  /**
2335
2335
  * 替换当前记录
@@ -2337,14 +2337,14 @@ class zs {
2337
2337
  */
2338
2338
  replace(e) {
2339
2339
  const t = this[Ft](e.currentRoute);
2340
- (e.currentRoute.historyUpdatePolicy !== "traceless" || !je(this.traceless, e.currentRoute)) && $().history.replaceState(e.routes, "", t), this.setRouteMark(e);
2340
+ (e.currentRoute.historyUpdatePolicy !== "traceless" || !Ne(this.traceless, e.currentRoute)) && I().history.replaceState(e.routes, "", t), this.setRouteMark(e);
2341
2341
  }
2342
2342
  /**
2343
2343
  * 生成Location
2344
2344
  * @param route
2345
2345
  */
2346
2346
  [Ft](e) {
2347
- const t = $();
2347
+ const t = I();
2348
2348
  let s = "";
2349
2349
  if (e.query) {
2350
2350
  let a = "";
@@ -2359,18 +2359,18 @@ class zs {
2359
2359
  }
2360
2360
  const n = t.location;
2361
2361
  let i = e.alias ?? e.fullPath;
2362
- i.startsWith(X) && (i = i.substring(X.length + 1));
2362
+ i.startsWith(ae) && (i = i.substring(ae.length + 1));
2363
2363
  let o;
2364
2364
  return s ? this.mode == "path" ? i.indexOf("/") === 0 ? o = `${this.base}${i}${s}` : o = `${this.base}/${i}${s}` : o = `${n.pathname}${s}#${i}` : this.mode == "path" ? i.indexOf("/") === 0 ? o = `${this.base}${i}` : o = `${this.base}/${i}` : o = `${n.pathname}#${i}`, `${n.origin}${o}`;
2365
2365
  }
2366
2366
  }
2367
- function ei(r = !0, e = null, t = "", s = !0, n = !1, i) {
2368
- return e !== null && (e = $().location.pathname), e && e.endsWith("/") && (e = e.substring(0, e.length - 1)), new zs("path", e ?? "", t, r, s, n, i);
2367
+ function Hn(r = !0, e = null, t = "", s = !0, n = !1, i) {
2368
+ return e !== null && (e = I().location.pathname), e && e.endsWith("/") && (e = e.substring(0, e.length - 1)), new Js("path", e ?? "", t, r, s, n, i);
2369
2369
  }
2370
- function ln(r = !0, e = "", t = !0, s = !1, n) {
2371
- return new zs("hash", "", e, r, t, s, n);
2370
+ function Wr(r = !0, e = "", t = !0, s = !1, n) {
2371
+ return new Js("hash", "", e, r, t, s, n);
2372
2372
  }
2373
- class an {
2373
+ class Gr {
2374
2374
  /**
2375
2375
  * 历史最大记录
2376
2376
  */
@@ -2445,7 +2445,7 @@ class an {
2445
2445
  /**
2446
2446
  * 通知修改
2447
2447
  */
2448
- [$e](e) {
2448
+ [qe](e) {
2449
2449
  typeof this.changeHandler == "function" && this.changeHandler(e);
2450
2450
  }
2451
2451
  /**
@@ -2462,7 +2462,7 @@ class an {
2462
2462
  let n = !1;
2463
2463
  if (typeof t == "function" ? n = t() : n = t, !n) {
2464
2464
  const i = this.queue[s];
2465
- this[$e](i.routes);
2465
+ this[qe](i.routes);
2466
2466
  }
2467
2467
  }
2468
2468
  }
@@ -2480,7 +2480,7 @@ class an {
2480
2480
  else
2481
2481
  for (let n = this.cursor; n >= 0; n--) {
2482
2482
  const i = this.queue[n];
2483
- if (R.isSame(i.currentRoute, e))
2483
+ if (L.isSame(i.currentRoute, e))
2484
2484
  break;
2485
2485
  s++;
2486
2486
  }
@@ -2519,104 +2519,107 @@ class an {
2519
2519
  setRestorePoint(e) {
2520
2520
  }
2521
2521
  }
2522
- function un(r = "", e = 50) {
2523
- return new an(r, e);
2522
+ function Xr(r = "", e = 50) {
2523
+ return new Gr(r, e);
2524
2524
  }
2525
- const Xe = Symbol("_constructRouteModel"), Qe = Symbol("_findRouteModel"), Tt = Symbol("_findRootView"), xs = Symbol("_getFirstView"), ue = Symbol("_removeView"), Rs = Symbol("_buildPage"), Ss = Symbol("_resolveComponent"), Ps = Symbol("_update"), re = Symbol("_merge"), _t = Symbol("_handleHistoryChange"), Ye = Symbol("_handleRouteUpdated"), Ze = Symbol("routeUpdatedCallback"), w = Symbol("currentRoutes"), et = Symbol("routeSessionCacheKey"), $s = Symbol("_addRouteRecorder"), Le = Symbol("_removeRouteRecorder"), tt = Symbol("_cloneRouteRecorder"), F = Symbol("_handleError"), st = Symbol("errorCallback"), N = Symbol("registerKey"), rt = Symbol("notFoundKey"), Kt = Symbol("notFoundPathKey"), D = Symbol("forestKey"), S = Symbol("historyKey"), ke = Symbol("beforeFiltersKey"), Oe = Symbol("afterFiltersKey"), Me = Symbol("destroyFiltersKey"), qt = Symbol("propsFilterKey"), xe = Symbol("mainDispatcherKey"), jt = Symbol("initKey"), ce = Symbol("readyKey"), Lt = Symbol("readyHandlersKey"), nt = Symbol("_markReady"), Cs = Symbol("_createNextFn"), kt = Symbol("_start"), Ot = Symbol("_before"), Mt = Symbol("_after"), Es = Symbol("_destroy"), It = Symbol("_load"), Ie = Symbol("_unload"), Ne = Symbol("routerGuardKey");
2526
- function cn(r) {
2525
+ const et = Symbol("_constructRouteModel"), tt = Symbol("_findRouteModel"), Tt = Symbol("_findRootView"), Ss = Symbol("_getFirstView"), we = Symbol("_removeView"), Ps = Symbol("_buildPage"), $s = Symbol("_resolveComponent"), Cs = Symbol("_update"), ye = Symbol("_merge"), _t = Symbol("_handleHistoryChange"), be = Symbol("_handleRouteUpdated"), st = Symbol("routeUpdatedCallback"), Kt = Symbol("currentRoute"), $ = Symbol("currentRoutes"), rt = Symbol("routeSessionCacheKey"), Es = Symbol("_addRouteRecorder"), De = Symbol("_removeRouteRecorder"), nt = Symbol("_cloneRouteRecorder"), V = Symbol("_handleError"), it = Symbol("errorCallback"), Z = Symbol("registerKey"), ot = Symbol("notFoundKey"), qt = Symbol("notFoundPathKey"), ee = Symbol("forestKey"), k = Symbol("historyKey"), He = Symbol("beforeFiltersKey"), Ue = Symbol("afterFiltersKey"), Ve = Symbol("destroyFiltersKey"), jt = Symbol("propsFilterKey"), Fe = Symbol("mainDispatcherKey"), Lt = Symbol("initKey"), xe = Symbol("readyKey"), kt = Symbol("readyHandlersKey"), lt = Symbol("_markReady"), As = Symbol("_createNextFn"), Ot = Symbol("_start"), Mt = Symbol("_before"), It = Symbol("_after"), Fs = Symbol("_destroy"), Nt = Symbol("_load"), Be = Symbol("_unload"), ze = Symbol("routerGuardKey");
2526
+ function Qr(r) {
2527
2527
  return r.layers.length == 0 || r.layers[0].views.length == 0;
2528
2528
  }
2529
- function fn(r) {
2529
+ function Yr(r) {
2530
2530
  let e = [];
2531
2531
  return r.layers.forEach((t) => {
2532
2532
  t.models == null || t.models == null || t.models.forEach((s) => {
2533
2533
  if (!(s == null || s == null))
2534
2534
  if (typeof s.meta == "object") {
2535
- let n = E(!0, {}, s.meta);
2535
+ let n = N(!0, {}, s.meta);
2536
2536
  e.push(n);
2537
2537
  } else s.meta && e.push(s.meta);
2538
2538
  });
2539
2539
  }), e;
2540
2540
  }
2541
- class hn {
2541
+ class Zr {
2542
2542
  /**
2543
2543
  * 注册表
2544
2544
  */
2545
- [N] = new Array();
2545
+ [Z] = new Array();
2546
2546
  /**
2547
2547
  * not found route
2548
2548
  */
2549
- [rt];
2549
+ [ot];
2550
2550
  /**
2551
2551
  * not found route path
2552
2552
  */
2553
- [Kt] = "*";
2553
+ [qt] = "*";
2554
2554
  /**
2555
2555
  * ready
2556
2556
  */
2557
- [ce] = !1;
2557
+ [xe] = !1;
2558
2558
  /**
2559
2559
  * ready handlers
2560
2560
  */
2561
- [Lt] = [];
2561
+ [kt] = [];
2562
2562
  /**
2563
2563
  * 页面根节点
2564
2564
  */
2565
- [D] = new rn();
2565
+ [ee] = new Br();
2566
2566
  /**
2567
2567
  * 历史记录控制器
2568
2568
  */
2569
- [S];
2569
+ [k];
2570
2570
  /**
2571
2571
  * 当前路由集合
2572
2572
  */
2573
- [w] = new Array();
2573
+ [$] = new Array();
2574
+ /**
2575
+ * 当前路由
2576
+ */
2577
+ [Kt] = _s(null);
2574
2578
  /**
2575
2579
  * route sessin key
2576
2580
  */
2577
- [et] = /* @__PURE__ */ new WeakMap();
2581
+ [rt] = /* @__PURE__ */ new WeakMap();
2578
2582
  /**
2579
2583
  * 错误回调
2580
2584
  */
2581
- [st] = null;
2585
+ [it] = null;
2582
2586
  /**
2583
2587
  * 全局route更新监听器
2584
2588
  */
2585
- [Ze] = null;
2589
+ [st] = null;
2586
2590
  /**
2587
2591
  * before过滤器队列
2588
2592
  */
2589
- [ke] = new Array();
2593
+ [He] = new Array();
2590
2594
  /**
2591
2595
  * after过滤器队列
2592
2596
  */
2593
- [Oe] = new Array();
2597
+ [Ue] = new Array();
2594
2598
  /**
2595
2599
  * destroy过滤器队列
2596
2600
  */
2597
- [Me] = new Array();
2601
+ [Ve] = new Array();
2598
2602
  /**
2599
2603
  * 属性传递过滤器
2600
2604
  */
2601
- [qt] = null;
2605
+ [jt] = null;
2602
2606
  /**
2603
2607
  * 主任务分发器
2604
2608
  */
2605
- [xe] = new ut();
2609
+ [Fe] = new ht();
2606
2610
  /**
2607
2611
  * 路由守护者
2608
2612
  */
2609
- [Ne] = new on();
2613
+ [ze] = new Jr();
2610
2614
  /**
2611
2615
  * 是否初始化
2612
2616
  */
2613
- [jt] = !1;
2617
+ [Lt] = !1;
2614
2618
  /**
2615
2619
  * 获取当前最新route
2616
2620
  */
2617
- get current() {
2618
- const e = this[w].length;
2619
- return e > 0 ? this[w][e - 1] : null;
2621
+ get currentRoute() {
2622
+ return mr(this[Kt]);
2620
2623
  }
2621
2624
  //属性
2622
2625
  options;
@@ -2627,18 +2630,18 @@ class hn {
2627
2630
  constructor(e) {
2628
2631
  this.options = e ?? {}, this.options.notFoundPath && this.setNotFoundPath(this.options.notFoundPath);
2629
2632
  let t = this.options.routes || [];
2630
- this.addRoutes(t), this.options.notFound && this.setNotFoundRoute(this.options.notFound), e.history ? this[S] = e.history : this[S] = de ? ln() : un(), this[S]?.listen(async (s) => {
2633
+ this.addRoutes(t), this.options.notFound && this.setNotFoundRoute(this.options.notFound), e.history ? this[k] = e.history : this[k] = $e ? Wr() : Xr(), this[k]?.listen(async (s) => {
2631
2634
  let n = !0;
2632
2635
  try {
2633
2636
  if (typeof s == "string") {
2634
- const i = this[k](s);
2637
+ const i = this[G](s);
2635
2638
  i && await this[_t]([i]);
2636
2639
  } else
2637
2640
  await this[_t](s);
2638
2641
  } catch (i) {
2639
2642
  console.error(i.message, i), n = !1;
2640
2643
  }
2641
- this[ce] === !1 && this[nt](n);
2644
+ this[xe] === !1 && this[lt](n);
2642
2645
  });
2643
2646
  }
2644
2647
  /**
@@ -2646,15 +2649,15 @@ class hn {
2646
2649
  * @param error
2647
2650
  * @param route
2648
2651
  */
2649
- [F](e = "error", t) {
2652
+ [V](e = "error", t) {
2650
2653
  if (t && typeof t.error == "function")
2651
2654
  try {
2652
2655
  t.error(e);
2653
2656
  } catch {
2654
2657
  }
2655
- if (typeof this[st] == "function")
2658
+ if (typeof this[it] == "function")
2656
2659
  try {
2657
- this[st](e, t);
2660
+ this[it](e, t);
2658
2661
  } catch {
2659
2662
  }
2660
2663
  console.error(e);
@@ -2663,21 +2666,21 @@ class hn {
2663
2666
  * 初始化
2664
2667
  */
2665
2668
  init() {
2666
- this[jt] !== !0 && (this[S]?.init(!this[ce]), this[jt] = !0);
2669
+ this[Lt] !== !0 && (this[k]?.init(!this[xe]), this[Lt] = !0);
2667
2670
  }
2668
2671
  /**
2669
2672
  * 第一次导航是否完成
2670
2673
  */
2671
2674
  isReady() {
2672
- return this[ce] ? Promise.resolve() : new Promise((e, t) => {
2673
- this[Lt].push([e, t]);
2675
+ return this[xe] ? Promise.resolve() : new Promise((e, t) => {
2676
+ this[kt].push([e, t]);
2674
2677
  });
2675
2678
  }
2676
2679
  /**
2677
2680
  * 设置第一导航完成
2678
2681
  */
2679
- [nt](e) {
2680
- this[ce] = !0, this[Lt].forEach(([t, s]) => {
2682
+ [lt](e) {
2683
+ this[xe] = !0, this[kt].forEach(([t, s]) => {
2681
2684
  try {
2682
2685
  e ? t() : s();
2683
2686
  } catch (n) {
@@ -2692,17 +2695,17 @@ class hn {
2692
2695
  [_t](e) {
2693
2696
  try {
2694
2697
  if (!e) {
2695
- let o = [...this[w]].reverse();
2696
- return this[Ie](o), de && $().location.reload(), Promise.resolve();
2698
+ let o = [...this[$]].reverse();
2699
+ return this[Be](o), $e && I().location.reload(), Promise.resolve();
2697
2700
  }
2698
2701
  let t = null, s = [], n = [], i = 0;
2699
- for (; i < e.length && i < this[w].length && R.isSame(e[i], this[w][i]); i++)
2700
- e[i].active === !0 && e[i].active !== this[w][i].active && (t = e[i]);
2701
- if (i < e.length && (s = e.slice(i)), i < this[w].length && (n = this[w].slice(i).reverse()), n.length === 0 && s.length === 0) {
2702
+ for (; i < e.length && i < this[$].length && L.isSame(e[i], this[$][i]); i++)
2703
+ e[i].active === !0 && e[i].active !== this[$][i].active && (t = e[i]);
2704
+ if (i < e.length && (s = e.slice(i)), i < this[$].length && (n = this[$].slice(i).reverse()), n.length === 0 && s.length === 0) {
2702
2705
  if (t !== null)
2703
2706
  return this.restore([t]);
2704
2707
  } else if (n.length > 0) {
2705
- if (this[Ie](n)) {
2708
+ if (this[Be](n)) {
2706
2709
  if (s.length > 0)
2707
2710
  return this.restore(s);
2708
2711
  if (t !== null)
@@ -2711,7 +2714,7 @@ class hn {
2711
2714
  } else
2712
2715
  return this.restore(s);
2713
2716
  } catch (t) {
2714
- this[F](t);
2717
+ this[V](t);
2715
2718
  }
2716
2719
  return Promise.resolve();
2717
2720
  }
@@ -2719,10 +2722,10 @@ class hn {
2719
2722
  * 处理route updated事件
2720
2723
  * @param route
2721
2724
  */
2722
- [Ye](e = null) {
2723
- if (e || (e = this.current), typeof this[Ze] == "function")
2725
+ [be](e = null) {
2726
+ if (this[Kt].value = e, typeof this[st] == "function")
2724
2727
  try {
2725
- this[Ze](e);
2728
+ this[st](e);
2726
2729
  } catch {
2727
2730
  }
2728
2731
  }
@@ -2730,33 +2733,33 @@ class hn {
2730
2733
  * 加入路由记录
2731
2734
  * @param route
2732
2735
  */
2733
- [$s](e, t) {
2734
- if (e.opsType === C.Open) {
2736
+ [Es](e, t) {
2737
+ if (e.opsType === M.Open) {
2735
2738
  let s = !1;
2736
- const n = this[w].length - 1;
2739
+ const n = this[$].length - 1;
2737
2740
  for (let i = n; i >= 0; i--) {
2738
- const o = this[w][i];
2741
+ const o = this[$][i];
2739
2742
  if (e.root == o.root) {
2740
2743
  if (e.path === o.path) {
2741
- this[w].splice(i, 1, e), s = !0;
2744
+ this[$].splice(i, 1, e), s = !0;
2742
2745
  continue;
2743
2746
  }
2744
2747
  e.active && (o.active = !1);
2745
2748
  }
2746
2749
  }
2747
- s || this[w].push(e);
2750
+ s || this[$].push(e);
2748
2751
  } else
2749
- this[w].push(e);
2750
- this[et].set(e, t);
2752
+ this[$].push(e);
2753
+ this[rt].set(e, t), this[be](e);
2751
2754
  }
2752
2755
  /**
2753
2756
  * 克隆路由记录
2754
2757
  * @returns
2755
2758
  */
2756
- [tt]() {
2759
+ [nt]() {
2757
2760
  let e = [];
2758
- for (let t of this[w]) {
2759
- let s = R.clone(t, !0);
2761
+ for (let t of this[$]) {
2762
+ let s = L.clone(t, !0);
2760
2763
  e.push(s);
2761
2764
  }
2762
2765
  return e;
@@ -2766,101 +2769,108 @@ class hn {
2766
2769
  *
2767
2770
  * @param route
2768
2771
  */
2769
- [Le](e) {
2770
- if (!this[w])
2772
+ [De](e) {
2773
+ if (!this[$]) {
2774
+ this[be](null);
2771
2775
  return;
2776
+ }
2772
2777
  let t = -1;
2773
- for (let s = 0; s < this[w].length; s++)
2774
- if (R.isSame(this[w][s], e)) {
2778
+ for (let s = 0; s < this[$].length; s++)
2779
+ if (L.isSame(this[$][s], e)) {
2775
2780
  t = s;
2776
2781
  break;
2777
2782
  }
2778
2783
  if (t != -1) {
2779
- let s = this[w][t];
2780
- this[w].splice(t, 1);
2781
- const n = this[et].get(s);
2782
- this[et].delete(s), this[Es](s, n);
2783
- }
2784
+ const s = this[$][t];
2785
+ this[$].splice(t, 1);
2786
+ const n = this[rt].get(s);
2787
+ if (this[rt].delete(s), this[Fs](s, n), s.opsType === M.Append) {
2788
+ const i = this[$].length - 1;
2789
+ this[be](this[$][i] ?? null);
2790
+ } else
2791
+ this[be](null);
2792
+ } else
2793
+ this[be](null);
2784
2794
  }
2785
2795
  /**
2786
2796
  * 设置history monitor是否启动
2787
2797
  */
2788
2798
  set historyMonitor(e) {
2789
- this[S] && (this[S].historyMonitor = e);
2799
+ this[k] && (this[k].historyMonitor = e);
2790
2800
  }
2791
2801
  /**
2792
2802
  * 获取history monitor
2793
2803
  */
2794
2804
  get historyMonitor() {
2795
- return this[S] ? this[S].historyMonitor : !1;
2805
+ return this[k] ? this[k].historyMonitor : !1;
2796
2806
  }
2797
2807
  /**
2798
2808
  * 设置无痕模式,不改变历史记录
2799
2809
  */
2800
2810
  set traceless(e) {
2801
- this[S] && (this[S].traceless = e);
2811
+ this[k] && (this[k].traceless = e);
2802
2812
  }
2803
2813
  /**
2804
2814
  * 获取无痕模式(不改变历史记录)
2805
2815
  */
2806
2816
  get traceless() {
2807
- return this[S] ? this[S].traceless : !1;
2817
+ return this[k] ? this[k].traceless : !1;
2808
2818
  }
2809
2819
  /**
2810
2820
  * 设置属性传递过滤器
2811
2821
  */
2812
2822
  set propsFilter(e) {
2813
- this[qt] = e;
2823
+ this[jt] = e;
2814
2824
  }
2815
2825
  /**
2816
2826
  * 获取属性传递过滤器
2817
2827
  */
2818
2828
  get propsFilter() {
2819
- return this[qt];
2829
+ return this[jt];
2820
2830
  }
2821
2831
  /**
2822
2832
  * 设置还原点
2823
2833
  *
2824
2834
  */
2825
2835
  setRestorePoint() {
2826
- const e = this[tt]();
2827
- this[S]?.setRestorePoint(e);
2836
+ const e = this[nt]();
2837
+ this[k]?.setRestorePoint(e);
2828
2838
  }
2829
2839
  /**
2830
2840
  * 注册route updated处理函数
2831
2841
  * @param callback
2832
2842
  */
2833
2843
  onRouteUpdated(e) {
2834
- this[Ze] = e;
2844
+ this[st] = e;
2835
2845
  }
2836
2846
  /**
2837
2847
  * 注册全局异常处理函数
2838
2848
  * @param callback
2839
2849
  */
2840
2850
  onError(e) {
2841
- this[st] = e;
2851
+ this[it] = e;
2842
2852
  }
2843
2853
  /**
2844
2854
  * 添加before filter
2845
2855
  * @param filter
2846
2856
  */
2847
2857
  beforeEach(e) {
2848
- this[ke].push(e);
2858
+ this[He].push(e);
2849
2859
  }
2850
2860
  /**
2851
2861
  * 移除before filter
2852
2862
  * @param filter
2853
2863
  */
2854
2864
  removeBeforeEach(e) {
2855
- const t = this[ke].indexOf(e);
2856
- return t !== -1 ? (this[ke].splice(t, 1), !0) : !1;
2865
+ const t = this[He].indexOf(e);
2866
+ return t !== -1 ? (this[He].splice(t, 1), !0) : !1;
2857
2867
  }
2858
2868
  /**
2859
2869
  * 添加after filter
2860
2870
  * @param filter
2861
2871
  */
2862
2872
  afterEach(e) {
2863
- this[Oe].push(e);
2873
+ this[Ue].push(e);
2864
2874
  }
2865
2875
  /**
2866
2876
  * 移除after filter
@@ -2868,15 +2878,15 @@ class hn {
2868
2878
  * @returns
2869
2879
  */
2870
2880
  removeAfterEach(e) {
2871
- const t = this[Oe].indexOf(e);
2872
- return t !== -1 ? (this[Oe].splice(t, 1), !0) : !1;
2881
+ const t = this[Ue].indexOf(e);
2882
+ return t !== -1 ? (this[Ue].splice(t, 1), !0) : !1;
2873
2883
  }
2874
2884
  /**
2875
2885
  * 添加destroy filter
2876
2886
  * @param filter
2877
2887
  */
2878
2888
  destroyEach(e) {
2879
- this[Me].push(e);
2889
+ this[Ve].push(e);
2880
2890
  }
2881
2891
  /**
2882
2892
  * 移除after filter
@@ -2884,15 +2894,15 @@ class hn {
2884
2894
  * @returns
2885
2895
  */
2886
2896
  removeDestroyEach(e) {
2887
- const t = this[Me].indexOf(e);
2888
- return t !== -1 ? (this[Me].splice(t, 1), !0) : !1;
2897
+ const t = this[Ve].indexOf(e);
2898
+ return t !== -1 ? (this[Ve].splice(t, 1), !0) : !1;
2889
2899
  }
2890
2900
  /**
2891
2901
  * 添加before restore filter
2892
2902
  * @param filter
2893
2903
  */
2894
2904
  beforeRestoreEach(e) {
2895
- this[S]?.beforeRestoreEach(e);
2905
+ this[k]?.beforeRestoreEach(e);
2896
2906
  }
2897
2907
  /**
2898
2908
  * 移除before restore filter
@@ -2900,7 +2910,7 @@ class hn {
2900
2910
  * @returns
2901
2911
  */
2902
2912
  removeBeforeRestoreEach(e) {
2903
- return this[S]?.removeBeforeRestoreEach(e) ?? !1;
2913
+ return this[k]?.removeBeforeRestoreEach(e) ?? !1;
2904
2914
  }
2905
2915
  /**
2906
2916
  * 加入路由配置列表
@@ -2916,16 +2926,16 @@ class hn {
2916
2926
  * @param index
2917
2927
  */
2918
2928
  addRoute(e, t = -1) {
2919
- if (e.path === this[Kt]) {
2929
+ if (e.path === this[qt]) {
2920
2930
  this.setNotFoundRoute(e);
2921
2931
  return;
2922
2932
  }
2923
- const s = this[Xe](e);
2933
+ const s = this[et](e);
2924
2934
  if (t == -1)
2925
- this[N] = [...this[N], ...s];
2935
+ this[Z] = [...this[Z], ...s];
2926
2936
  else
2927
2937
  for (let n = s.length - 1; n >= 0; n--)
2928
- this[N].splice(t, 0, s[n]);
2938
+ this[Z].splice(t, 0, s[n]);
2929
2939
  }
2930
2940
  /**
2931
2941
  * 移除路由
@@ -2933,15 +2943,15 @@ class hn {
2933
2943
  * @param route
2934
2944
  */
2935
2945
  removeRoute(e) {
2936
- const t = this[k](e);
2946
+ const t = this[G](e);
2937
2947
  if (t === null)
2938
2948
  return console.warn("route格式错误", e), !1;
2939
- for (let s = 0; s < this[N].length; s++) {
2940
- const n = this[N][s];
2949
+ for (let s = 0; s < this[Z].length; s++) {
2950
+ const n = this[Z][s];
2941
2951
  if (t?.path && n.path === t.path)
2942
- return this[N].splice(s, 1), !0;
2952
+ return this[Z].splice(s, 1), !0;
2943
2953
  if (t?.name && n.name === t.name)
2944
- return this[N].splice(s, 1), !0;
2954
+ return this[Z].splice(s, 1), !0;
2945
2955
  }
2946
2956
  return !1;
2947
2957
  }
@@ -2951,8 +2961,8 @@ class hn {
2951
2961
  * @param route
2952
2962
  */
2953
2963
  hasRoute(e) {
2954
- const t = this[k](e);
2955
- return t === null ? (console.warn("route格式错误", e), !1) : this[N].findIndex((n) => {
2964
+ const t = this[G](e);
2965
+ return t === null ? (console.warn("route格式错误", e), !1) : this[Z].findIndex((n) => {
2956
2966
  if (t?.path && n.path === t.path || t?.name && n.name === t.name)
2957
2967
  return !0;
2958
2968
  }) !== -1;
@@ -2962,57 +2972,57 @@ class hn {
2962
2972
  * @param path
2963
2973
  */
2964
2974
  setNotFoundPath(e) {
2965
- this[Kt] = e;
2975
+ this[qt] = e;
2966
2976
  }
2967
2977
  /**
2968
2978
  * 配置not found路由配置
2969
2979
  * @param routeConfig
2970
2980
  */
2971
2981
  setNotFoundRoute(e) {
2972
- const t = this[Xe](e);
2973
- this[rt] = t[0];
2982
+ const t = this[et](e);
2983
+ this[ot] = t[0];
2974
2984
  }
2975
2985
  /**
2976
2986
  * 返回目前加载的routes
2977
2987
  */
2978
2988
  getRoutes() {
2979
- return [...this[N]];
2989
+ return [...this[Z]];
2980
2990
  }
2981
2991
  /**
2982
2992
  * 根据路由构建route model
2983
2993
  *
2984
2994
  * @param routeConfig
2985
2995
  */
2986
- [Xe](e) {
2996
+ [et](e) {
2987
2997
  let t = e.path ?? "";
2988
2998
  t.length > 0 && t.charAt(0) !== "/" && (t = `/${t}`);
2989
2999
  let s = e.components ?? (e.component && { "": e.component });
2990
3000
  if (s == null) {
2991
- const a = new xt();
3001
+ const a = new Rt();
2992
3002
  return a.path = t, a.redirect = e.redirect, [a];
2993
3003
  }
2994
3004
  let n = [];
2995
3005
  for (let a in s) {
2996
3006
  let l = s[a];
2997
- a.length === 0 && (a = X);
2998
- let u = new Kr(a, l, e.props, e.meta);
3007
+ a.length === 0 && (a = ae);
3008
+ let u = new qr(a, l, e.props, e.meta);
2999
3009
  n.push(u);
3000
3010
  }
3001
3011
  let i = !1, o = [];
3002
3012
  if (e.children)
3003
3013
  for (let a of e.children) {
3004
- let l = this[Xe](a);
3014
+ let l = this[et](a);
3005
3015
  for (let u of l) {
3006
- let c = new xt();
3016
+ let c = new Rt();
3007
3017
  c.name = u.name, u.path && u.path.length > 0 ? t !== "/" ? c.path = `${t}${u.path}` : c.path = u.path : (i = !0, c.path = t);
3008
- let f = new us();
3009
- f.models = [...n], c.layers = [f, ...u.layers], o.push(c);
3018
+ let h = new us();
3019
+ h.models = [...n], c.layers = [h, ...u.layers], o.push(c);
3010
3020
  }
3011
3021
  }
3012
3022
  if (!i) {
3013
3023
  const a = new us();
3014
3024
  a.models = n;
3015
- const l = new xt();
3025
+ const l = new Rt();
3016
3026
  l.name = e.name, l.path = t, l.layers = [a], o.splice(0, 0, l);
3017
3027
  }
3018
3028
  return o;
@@ -3021,44 +3031,44 @@ class hn {
3021
3031
  * 查找route model
3022
3032
  * @param cite
3023
3033
  */
3024
- [Qe](e) {
3034
+ [tt](e) {
3025
3035
  const t = e.route;
3026
3036
  try {
3027
- for (let s of this[N]) {
3037
+ for (let s of this[Z]) {
3028
3038
  const n = t.template ?? t.path, i = t.template ?? t.name;
3029
3039
  if (n && s.path) {
3030
3040
  let o = s.match;
3031
- o || (o = s.match = Vr(s.path));
3041
+ o || (o = s.match = gs.match(s.path));
3032
3042
  const a = o(n);
3033
3043
  if (!a)
3034
3044
  continue;
3035
3045
  if (s.redirect) {
3036
- const l = new R();
3037
- E(!0, l, t), l.path = s.redirect;
3046
+ const l = new L();
3047
+ N(!0, l, t), l.path = s.redirect;
3038
3048
  const u = {
3039
3049
  route: l,
3040
3050
  find: void 0
3041
3051
  };
3042
- return this[Qe](u) ? (e.route = u.route, e.find = u.find, t.template && e.find && (e.find = { ...e.find }, e.find.path = t.path), !0) : !1;
3052
+ return this[tt](u) ? (e.route = u.route, e.find = u.find, t.template && e.find && (e.find = { ...e.find }, e.find.path = t.path), !0) : !1;
3043
3053
  }
3044
- if (t.params = t.params ?? {}, E(!0, t.params, a.params), t.query) {
3054
+ if (t.params = t.params ?? {}, N(!0, t.params, a.params), t.query) {
3045
3055
  const l = t.query;
3046
3056
  if (typeof l == "string") {
3047
3057
  const u = {}, c = l.split("&");
3048
- for (let f of c) {
3049
- const h = f.split("=");
3050
- if (h.length !== 2)
3058
+ for (let h of c) {
3059
+ const f = h.split("=");
3060
+ if (f.length !== 2)
3051
3061
  continue;
3052
- const y = decodeURIComponent(h[0].trim()), d = decodeURIComponent(h[1].trim());
3053
- u[y] = d;
3062
+ const d = decodeURIComponent(f[0].trim()), v = decodeURIComponent(f[1].trim());
3063
+ u[d] = v;
3054
3064
  }
3055
- E(!0, t.params, u);
3056
- } else typeof l == "object" && E(!0, t.params, l);
3065
+ N(!0, t.params, u);
3066
+ } else typeof l == "object" && N(!0, t.params, l);
3057
3067
  }
3058
3068
  return e.find = s, t.template && e.find && (e.find = { ...e.find }, e.find.path = t.path), !0;
3059
3069
  } else if (i === s.name) {
3060
3070
  t.params = t.params ?? {};
3061
- const o = Ur(s.path);
3071
+ const o = gs.compile(s.path);
3062
3072
  return t.path = o(t.params), e.find = s, t.template && e.find && (e.find = { ...e.find }, e.find.name = t.name), !0;
3063
3073
  }
3064
3074
  }
@@ -3068,25 +3078,25 @@ class hn {
3068
3078
  return !1;
3069
3079
  }
3070
3080
  /**
3071
- * 解释路由
3081
+ * 解析并格式化路由
3072
3082
  * @param args
3073
3083
  * @returns
3074
3084
  */
3075
- [k](e) {
3085
+ [G](e) {
3076
3086
  let t = null;
3077
3087
  if (Array.isArray(e))
3078
- if (t = new R(), typeof e[0] == "object")
3079
- t = R.from(e[0]);
3088
+ if (t = new L(), typeof e[0] == "object")
3089
+ t = L.from(e[0]);
3080
3090
  else
3081
3091
  for (let s = 0; s < e.length; s++)
3082
- s === 0 ? e[s].charAt(0) === "/" ? t.path = e[s] : t.name = e[s] : s === 1 ? t.params = e[s] : s === 2 ? t.root = e[s] : s === 3 && E(!1, t, e[s]);
3083
- else typeof e == "object" ? t = R.from(e) : typeof e == "string" && (t = new R(), e.charAt(0) == "/" ? t.path = e : t.name = e);
3092
+ s === 0 ? e[s].charAt(0) === "/" ? t.path = e[s] : t.name = e[s] : s === 1 ? t.params = e[s] : s === 2 ? t.root = e[s] : s === 3 && N(!1, t, e[s]);
3093
+ else typeof e == "object" ? t = L.from(e) : typeof e == "string" && (t = new L(), e.charAt(0) == "/" ? t.path = e : t.name = e);
3084
3094
  if (t) {
3085
3095
  if (t.path) {
3086
3096
  let s = t.path.indexOf("?");
3087
3097
  s !== -1 && s < t.path.length - 1 && (t.query = t.path.substring(s + 1), t.path = t.path.substring(0, s));
3088
3098
  }
3089
- t.root = t.root ?? X, t.opsType = t.opsType ?? this.options.defaultOperationType ?? C.Push, t.traceless && !t.historyUpdatePolicy && (t.historyUpdatePolicy = "traceless");
3099
+ t.root = t.root ?? ae, t.opsType = t.opsType ?? this.options.defaultOperationType ?? M.Push, t.traceless && !t.historyUpdatePolicy && (t.historyUpdatePolicy = "traceless");
3090
3100
  }
3091
3101
  return t;
3092
3102
  }
@@ -3095,32 +3105,32 @@ class hn {
3095
3105
  * @param args
3096
3106
  */
3097
3107
  push(...e) {
3098
- const t = this[k](e);
3099
- return t ? (t.opsType = C.Push, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "push", this.to(t)) : (this[F]("resolve route fail", t), this);
3108
+ const t = this[G](e);
3109
+ return t ? (t.opsType = M.Push, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "push", this.to(t)) : (this[V]("resolve route fail", t), this);
3100
3110
  }
3101
3111
  /**
3102
3112
  * 路由跳转(operation类型为Put)
3103
3113
  * @param args
3104
3114
  */
3105
3115
  put(...e) {
3106
- const t = this[k](e);
3107
- return t ? (t.opsType = C.Put, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "traceless", this.to(t)) : (this[F]("resolve route fail", t), this);
3116
+ const t = this[G](e);
3117
+ return t ? (t.opsType = M.Put, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "traceless", this.to(t)) : (this[V]("resolve route fail", t), this);
3108
3118
  }
3109
3119
  /**
3110
3120
  * 路由跳转(operation类型为Replace)
3111
3121
  * @param args
3112
3122
  */
3113
3123
  replace(...e) {
3114
- const t = this[k](e);
3115
- return t ? (t.opsType = C.Replace, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "replace", this.to(t)) : (this[F]("resolve route fail", t), this);
3124
+ const t = this[G](e);
3125
+ return t ? (t.opsType = M.Replace, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "replace", this.to(t)) : (this[V]("resolve route fail", t), this);
3116
3126
  }
3117
3127
  /**
3118
3128
  * 路由跳转(operation类型为Append)
3119
3129
  * @param args
3120
3130
  */
3121
3131
  append(...e) {
3122
- const t = this[k](e);
3123
- return t ? (t.opsType = C.Append, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "push", this.to(t)) : (this[F]("resolve route fail", t), this);
3132
+ const t = this[G](e);
3133
+ return t ? (t.opsType = M.Append, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "push", this.to(t)) : (this[V]("resolve route fail", t), this);
3124
3134
  }
3125
3135
  /**
3126
3136
  * 移除
@@ -3129,23 +3139,23 @@ class hn {
3129
3139
  */
3130
3140
  remove(e, t) {
3131
3141
  return new Promise((s) => {
3132
- this[xe].post((n) => {
3142
+ this[Fe].post((n) => {
3133
3143
  try {
3134
- if (this[w].length === 0) {
3144
+ if (this[$].length === 0) {
3135
3145
  n.resolve(), s(!1);
3136
3146
  return;
3137
3147
  }
3138
3148
  let i = -1, o, a = [];
3139
3149
  if (e) {
3140
- if (e.root ? o = e.root : o = this[w][0].root ?? X, e.all)
3141
- for (let u = this[w].length - 1; u > 0; u--) {
3142
- let c = this[w][u];
3143
- c.opsType === C.Append && c.root === o && (a.splice(0, 0, c), i = u - 1);
3150
+ if (e.root ? o = e.root : o = this[$][0].root ?? ae, e.all)
3151
+ for (let u = this[$].length - 1; u > 0; u--) {
3152
+ let c = this[$][u];
3153
+ c.opsType === M.Append && c.root === o && (a.splice(0, 0, c), i = u - 1);
3144
3154
  }
3145
3155
  else if (e.until)
3146
- for (let u = this[w].length - 1; u > 0; u--) {
3147
- let c = this[w][u];
3148
- if (c.opsType === C.Append && c.root === o) {
3156
+ for (let u = this[$].length - 1; u > 0; u--) {
3157
+ let c = this[$][u];
3158
+ if (c.opsType === M.Append && c.root === o) {
3149
3159
  if (e.until.charAt(0) === "/" && e.until === c.path) {
3150
3160
  i = u;
3151
3161
  break;
@@ -3157,9 +3167,9 @@ class hn {
3157
3167
  }
3158
3168
  }
3159
3169
  else if (e.to)
3160
- for (let u = this[w].length - 1; u > 0; u--) {
3161
- let c = this[w][u];
3162
- if (c.opsType === C.Append && c.root === o) {
3170
+ for (let u = this[$].length - 1; u > 0; u--) {
3171
+ let c = this[$][u];
3172
+ if (c.opsType === M.Append && c.root === o) {
3163
3173
  if (a.splice(0, 0, c), e.to.charAt(0) === "/" && e.to === c.path) {
3164
3174
  i = u - 1;
3165
3175
  break;
@@ -3170,13 +3180,13 @@ class hn {
3170
3180
  }
3171
3181
  }
3172
3182
  } else {
3173
- o = X;
3174
- let u = this[xs](this[D]);
3183
+ o = ae;
3184
+ let u = this[Ss](this[ee]);
3175
3185
  u && (o = u.name);
3176
- for (let c = this[w].length - 1; c > 0; c--) {
3177
- let f = this[w][c];
3178
- if (f.opsType === C.Append && f.root === o) {
3179
- a.push(f), i = c - 1;
3186
+ for (let c = this[$].length - 1; c > 0; c--) {
3187
+ let h = this[$][c];
3188
+ if (h.opsType === M.Append && h.root === o) {
3189
+ a.push(h), i = c - 1;
3180
3190
  break;
3181
3191
  }
3182
3192
  }
@@ -3187,18 +3197,18 @@ class hn {
3187
3197
  return;
3188
3198
  }
3189
3199
  let l = null;
3190
- if (i !== -1 && (l = this[w][i]), this[Ie](a)) {
3200
+ if (i !== -1 && (l = this[$][i]), this[Be](a)) {
3191
3201
  if (t === !1)
3192
3202
  return n.resolve(), s(!0), !0;
3193
- const u = () => (n.resolve(), s(!0), !0), c = this[w].length;
3194
- if (l && R.isSame(l, this[w][c - 1])) {
3195
- this[S]?.goBack(l, u);
3203
+ const u = () => (n.resolve(), s(!0), !0), c = this[$].length;
3204
+ if (l && L.isSame(l, this[$][c - 1])) {
3205
+ this[k]?.goBack(l, u);
3196
3206
  return;
3197
3207
  }
3198
3208
  u();
3199
3209
  }
3200
3210
  } catch (i) {
3201
- this[F](i), n.resolve(), s(!1);
3211
+ this[V](i), n.resolve(), s(!1);
3202
3212
  }
3203
3213
  });
3204
3214
  });
@@ -3208,24 +3218,24 @@ class hn {
3208
3218
  * @param args
3209
3219
  */
3210
3220
  open(...e) {
3211
- let t = this[k](e);
3212
- return t ? (t.opsType = C.Open, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "push", this.to(t)) : (this[F]("resolve route fail", t), this);
3221
+ let t = this[G](e);
3222
+ return t ? (t.opsType = M.Open, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "push", this.to(t)) : (this[V]("resolve route fail", t), this);
3213
3223
  }
3214
3224
  /**
3215
3225
  * 关闭路由跳转的页面
3216
3226
  * @param args
3217
3227
  */
3218
3228
  close(e) {
3219
- return this[xe].post((t) => {
3229
+ return this[Fe].post((t) => {
3220
3230
  try {
3221
- let s = this[k](e);
3231
+ let s = this[G](e);
3222
3232
  if (!s) {
3223
3233
  t.reject("resolve route fail");
3224
3234
  return;
3225
3235
  }
3226
3236
  let n = [];
3227
- for (let i = 0; i < this[w].length; i++) {
3228
- let o = this[w][i];
3237
+ for (let i = 0; i < this[$].length; i++) {
3238
+ let o = this[$][i];
3229
3239
  if (o.root === s.root) {
3230
3240
  if (!s.path && !s.name) {
3231
3241
  n.push(o);
@@ -3244,9 +3254,9 @@ class hn {
3244
3254
  t.resolve();
3245
3255
  return;
3246
3256
  }
3247
- this[Ie](n) && this[Ye](), t.resolve();
3257
+ this[Be](n), t.resolve();
3248
3258
  } catch (s) {
3249
- this[F](s), t.resolve();
3259
+ this[V](s), t.resolve();
3250
3260
  }
3251
3261
  }), this;
3252
3262
  }
@@ -3255,38 +3265,38 @@ class hn {
3255
3265
  * @param args
3256
3266
  */
3257
3267
  to(...e) {
3258
- let t = this[k](e);
3268
+ let t = this[G](e);
3259
3269
  if (!t)
3260
- return this[F]("resolve route fail", t), this;
3261
- let s = this[Ne].acquire(t);
3262
- return s == null ? (this[F]("route forbid", t), this) : (this[xe].post((n) => {
3270
+ return this[V]("resolve route fail", t), this;
3271
+ let s = this[ze].acquire(t);
3272
+ return s == null ? (this[V]("route forbid", t), this) : (this[Fe].post((n) => {
3263
3273
  try {
3264
- let i = this[kt](t);
3265
- this[Ot](i), this[It](i), this[Mt](i), i.wait(
3274
+ let i = this[Ot](t);
3275
+ this[Mt](i), this[Nt](i), this[It](i), i.wait(
3266
3276
  (o, a) => {
3267
3277
  const l = o.session.to;
3268
3278
  if (o.session.updateResult && o.session.updateResult.status === "success")
3269
3279
  try {
3270
- let u = R.clone(l, !0);
3271
- const c = new ms(u, this[tt]());
3272
- l.historyUpdatePolicy === "replace" ? this[S]?.replace(c) : l.historyUpdatePolicy === "traceless" ? this[S]?.setRouteMark(c) : this[S]?.push(c);
3280
+ let u = L.clone(l, !0);
3281
+ const c = new vs(u, this[nt]());
3282
+ l.historyUpdatePolicy === "replace" ? this[k]?.replace(c) : l.historyUpdatePolicy === "traceless" ? this[k]?.setRouteMark(c) : this[k]?.push(c);
3273
3283
  } catch (u) {
3274
3284
  console.error(u.message, u);
3275
3285
  }
3276
- if (Pe.clear(o.session), this[Ne].release(s), this[Ye](l), typeof t.success == "function")
3286
+ if (Ke.clear(o.session), this[ze].release(s), typeof t.success == "function")
3277
3287
  try {
3278
3288
  Reflect.apply(t.success, {}, []);
3279
3289
  } catch (u) {
3280
3290
  console.error(u.message, u);
3281
3291
  }
3282
- this[ce] === !1 && this[nt](!0), i = null, n.resolve();
3292
+ this[xe] === !1 && this[lt](!0), i = null, n.resolve();
3283
3293
  },
3284
3294
  (o, a) => {
3285
- this[Ne].release(s), a !== null && this[F](a, t), this[ce] === !1 && this[nt](!1), Pe.clear(o.session), i = null, n.resolve();
3295
+ this[ze].release(s), a !== null && this[V](a, t), this[xe] === !1 && this[lt](!1), Ke.clear(o.session), i = null, n.resolve();
3286
3296
  }
3287
3297
  );
3288
3298
  } catch (i) {
3289
- this[Ne].release(s), this[F](i, t), n.resolve();
3299
+ this[ze].release(s), this[V](i, t), n.resolve();
3290
3300
  }
3291
3301
  }), this);
3292
3302
  }
@@ -3295,17 +3305,17 @@ class hn {
3295
3305
  * @param delta
3296
3306
  */
3297
3307
  back(e = 1) {
3298
- this[S]?.go(-e, !1);
3308
+ this[k]?.go(-e, !1);
3299
3309
  }
3300
3310
  /**
3301
3311
  * 创建next函数
3302
3312
  */
3303
- [Cs](e) {
3313
+ [As](e) {
3304
3314
  return (t, s) => {
3305
3315
  if (typeof t == "boolean")
3306
3316
  e.session.redirect = !1, t ? e.resolve() : e.reject(s ?? null);
3307
3317
  else if (t) {
3308
- const n = this[k](t);
3318
+ const n = this[G](t);
3309
3319
  if (n) {
3310
3320
  const i = e.session.to;
3311
3321
  n.success = i.success, n.error = i.error, e.session.to = n, e.session.redirect = !0, e.session.routeModel = null, e.resolve();
@@ -3320,23 +3330,23 @@ class hn {
3320
3330
  * @param route
3321
3331
  * @returns {EventChain}
3322
3332
  */
3323
- [kt](e) {
3324
- const t = this[w].length > 0 ? this[w][this[w].length - 1] : void 0, s = new Pe(e, t), n = {
3333
+ [Ot](e) {
3334
+ const t = this[$].length > 0 ? this[$][this[$].length - 1] : void 0, s = new Ke(e, t), n = {
3325
3335
  //路由
3326
3336
  route: e,
3327
3337
  //查找结果
3328
3338
  find: null
3329
3339
  };
3330
- return this[Qe](n), n.find && (s.routeModel = n.find, e.matched = fn(n.find), Array.isArray(e.matched) && e.matched.length > 0 && (e.meta = n.find.layers[0].models[0].meta)), new ut(s);
3340
+ return this[tt](n), n.find && (s.routeModel = n.find, e.matched = Yr(n.find), Array.isArray(e.matched) && e.matched.length > 0 && (e.meta = n.find.layers[0].models[0].meta)), new ht(s);
3331
3341
  }
3332
3342
  /**
3333
3343
  * 执行before事件
3334
3344
  * @param chain
3335
3345
  */
3336
- [Ot](e) {
3337
- for (let t of this[ke])
3346
+ [Mt](e) {
3347
+ for (let t of this[He])
3338
3348
  e.post((s) => {
3339
- const n = this[Cs](s);
3349
+ const n = this[As](s);
3340
3350
  Reflect.apply(t, {}, [s.session.to, s.session.from, n, s.session]);
3341
3351
  });
3342
3352
  }
@@ -3344,9 +3354,9 @@ class hn {
3344
3354
  * 执行after事件
3345
3355
  * @param chain
3346
3356
  */
3347
- [Mt](e) {
3357
+ [It](e) {
3348
3358
  e.post((t) => {
3349
- for (let s of this[Oe])
3359
+ for (let s of this[Ue])
3350
3360
  try {
3351
3361
  Reflect.apply(s, {}, [t.session.to, t.session.from, t.session]);
3352
3362
  } catch (n) {
@@ -3360,8 +3370,8 @@ class hn {
3360
3370
  * @param route
3361
3371
  * @param session
3362
3372
  */
3363
- [Es](e, t) {
3364
- for (let s of this[Me])
3373
+ [Fs](e, t) {
3374
+ for (let s of this[Ve])
3365
3375
  try {
3366
3376
  Reflect.apply(s, {}, [e, t]);
3367
3377
  } catch (n) {
@@ -3373,7 +3383,7 @@ class hn {
3373
3383
  * 加载路由
3374
3384
  * @param chain
3375
3385
  */
3376
- [It](e) {
3386
+ [Nt](e) {
3377
3387
  e.post((t) => {
3378
3388
  const s = t.session.to;
3379
3389
  let n = t.session.routeModel;
@@ -3384,19 +3394,19 @@ class hn {
3384
3394
  //查找结果
3385
3395
  find: null
3386
3396
  };
3387
- if (this[Qe](o))
3397
+ if (this[tt](o))
3388
3398
  n = o.find, t.session.routeModel = n;
3389
- else if (this[rt])
3390
- n = this[rt];
3399
+ else if (this[ot])
3400
+ n = this[ot];
3391
3401
  else {
3392
3402
  t.reject(`not find route model, path:${s.path ?? s.name}`);
3393
3403
  return;
3394
3404
  }
3395
3405
  }
3396
- const i = Pe.from(t.session);
3397
- this[Rs](s, n, i).then(
3406
+ const i = Ke.from(t.session);
3407
+ this[Ps](s, n, i).then(
3398
3408
  (o) => {
3399
- this[D], t.session.updateResult = o ?? {
3409
+ this[ee], t.session.updateResult = o ?? {
3400
3410
  status: "success",
3401
3411
  message: ""
3402
3412
  }, t.resolve();
@@ -3412,10 +3422,10 @@ class hn {
3412
3422
  *
3413
3423
  * @param routes
3414
3424
  */
3415
- [Ie](e) {
3425
+ [Be](e) {
3416
3426
  if (e.length == 0)
3417
3427
  return !0;
3418
- let t = this[D], s = [];
3428
+ let t = this[ee], s = [];
3419
3429
  for (let n of e) {
3420
3430
  let i = this[Tt](t, n);
3421
3431
  i != null && s.push({
@@ -3424,9 +3434,9 @@ class hn {
3424
3434
  });
3425
3435
  }
3426
3436
  if (s.length == 0)
3427
- return this[F]("can not find view index"), !1;
3437
+ return this[V]("can not find view index"), !1;
3428
3438
  for (let n of s.reverse())
3429
- this[ue](t, { x: n.x, y: n.y }, [n.route.index ?? 0], !0);
3439
+ this[we](t, { x: n.x, y: n.y }, [n.route.index ?? 0], !0);
3430
3440
  return !0;
3431
3441
  }
3432
3442
  /**
@@ -3435,13 +3445,13 @@ class hn {
3435
3445
  * @param route
3436
3446
  */
3437
3447
  [Tt](e, t) {
3438
- const s = t.root ?? X;
3448
+ const s = t.root ?? ae;
3439
3449
  let n;
3440
3450
  for (let i = 0; i < e.layers.length; i++) {
3441
3451
  const o = e.layers[i];
3442
3452
  for (let a = o.views.length - 1; a >= 0; a--) {
3443
3453
  const l = o.views[a];
3444
- if (l[V] && l[ot] === s)
3454
+ if (l[re] && l[ut] === s)
3445
3455
  return n = { x: a, y: i }, n;
3446
3456
  }
3447
3457
  }
@@ -3451,7 +3461,7 @@ class hn {
3451
3461
  * 查找first view
3452
3462
  * @param page
3453
3463
  */
3454
- [xs](e) {
3464
+ [Ss](e) {
3455
3465
  return e.layers.length > 0 && e.layers[0].views.length > 0 ? e.layers[0].views[0] : null;
3456
3466
  }
3457
3467
  /**
@@ -3461,39 +3471,39 @@ class hn {
3461
3471
  * @param indexList
3462
3472
  * @param retainRoot
3463
3473
  */
3464
- [ue](e, t, s = null, n = !0) {
3474
+ [we](e, t, s = null, n = !0) {
3465
3475
  if (t.y >= e.layers.length || t.x >= e.layers[t.y].views.length)
3466
3476
  return;
3467
3477
  let i = e.layers[t.y].views[t.x], o = !1, a = [], l = !1, u = [...i.slots.value];
3468
- for (let f = u.length - 1; f >= 0; f--) {
3469
- let h = u[f];
3470
- (!s || s.indexOf(h.index) != -1) && (h.route && i[V] && (this[Le](h.route), h.active === !0 && h.route.opsType == C.Append && (l = !0)), a.push(new I(i, h.index, t.y)), u.splice(f, 1));
3478
+ for (let h = u.length - 1; h >= 0; h--) {
3479
+ let f = u[h];
3480
+ (!s || s.indexOf(f.index) != -1) && (f.route && i[re] && (this[De](f.route), f.active === !0 && f.route.opsType == M.Append && (l = !0)), a.push(new Y(i, f.index, t.y)), u.splice(h, 1));
3471
3481
  }
3472
3482
  if (u.length == 0)
3473
3483
  n ? i.slots.value = u : e.layers[t.y].views.splice(t.x, 1);
3474
3484
  else {
3475
3485
  if (l) {
3476
- let f = u.length - 1, h = u[f];
3477
- h.active = !0, h.route && (h.route.active = h.active);
3486
+ let h = u.length - 1, f = u[h];
3487
+ f.active = !0, f.route && (f.route.active = f.active);
3478
3488
  }
3479
3489
  i.slots.value = u;
3480
3490
  }
3481
3491
  e.layers[t.y].views.length == 0 && (o = !0);
3482
3492
  let c = t.y + 1;
3483
3493
  for (; c < e.layers.length; c++) {
3484
- let f = e.layers[c].views, h = [];
3485
- for (let y = f.length - 1; (o || a.length > 0) && y >= 0; y--) {
3486
- let d = f[y];
3487
- if (d[he] && (o || I.include(a, d[he]))) {
3488
- let p = d.slots.value;
3489
- for (let m = p.length - 1; m >= 0; m--) {
3490
- let v = p[m];
3491
- v.route && d[V] && this[Le](v.route), h.push(new I(d, v.index, c)), p.splice(m, 1);
3494
+ let h = e.layers[c].views, f = [];
3495
+ for (let d = h.length - 1; (o || a.length > 0) && d >= 0; d--) {
3496
+ let v = h[d];
3497
+ if (v[Se] && (o || Y.include(a, v[Se]))) {
3498
+ let w = v.slots.value;
3499
+ for (let R = w.length - 1; R >= 0; R--) {
3500
+ let E = w[R];
3501
+ E.route && v[re] && this[De](E.route), f.push(new Y(v, E.index, c)), w.splice(R, 1);
3492
3502
  }
3493
- e.layers[c].views.splice(y, 1);
3503
+ e.layers[c].views.splice(d, 1);
3494
3504
  }
3495
3505
  }
3496
- a = h, e.layers[c].views.length == 0 && (o = !0);
3506
+ a = f, e.layers[c].views.length == 0 && (o = !0);
3497
3507
  }
3498
3508
  }
3499
3509
  /**
@@ -3503,34 +3513,34 @@ class hn {
3503
3513
  * @returns
3504
3514
  */
3505
3515
  restore(e) {
3506
- if (!e || this[N].length == 0) {
3507
- let t = this[D];
3516
+ if (!e || this[Z].length == 0) {
3517
+ let t = this[ee];
3508
3518
  if (t.layers.length > 0) {
3509
3519
  let s = t.layers[0].views;
3510
3520
  s.length > 0 && (s[0].slots.value = []);
3511
3521
  }
3512
- return this[w] = [], this[Ye](), Promise.resolve();
3522
+ return this[$] = [], this[be](null), Promise.resolve();
3513
3523
  } else
3514
3524
  return new Promise((s, n) => {
3515
3525
  let i = null, o = !1;
3516
3526
  for (let a = 0; a < e.length; a++) {
3517
3527
  const l = e[a];
3518
- this[xe].post((u) => {
3519
- const c = this[kt](l);
3520
- this[Ot](c), this[It](c), this[Mt](c), c.wait(
3521
- (f, h) => {
3522
- i = f.session.to, o = f.session.redirect, u.resolve();
3528
+ this[Fe].post((u) => {
3529
+ const c = this[Ot](l);
3530
+ this[Mt](c), this[Nt](c), this[It](c), c.wait(
3531
+ (h, f) => {
3532
+ i = h.session.to, o = h.session.redirect, u.resolve();
3523
3533
  },
3524
- (f, h) => {
3525
- i = null, h !== null && this[F](h), u.resolve();
3534
+ (h, f) => {
3535
+ i = null, f !== null && this[V](f), u.resolve();
3526
3536
  }
3527
3537
  );
3528
3538
  });
3529
3539
  }
3530
- this[xe].post((a) => {
3540
+ this[Fe].post((a) => {
3531
3541
  if (i && o === !0) {
3532
- const l = R.clone(i, !0), u = new ms(l, this[tt]());
3533
- this[S]?.replace(u);
3542
+ const l = L.clone(i, !0), u = new vs(l, this[nt]());
3543
+ this[k]?.replace(u);
3534
3544
  }
3535
3545
  a.resolve(), s();
3536
3546
  });
@@ -3542,10 +3552,10 @@ class hn {
3542
3552
  * @param routeModel
3543
3553
  * @returns
3544
3554
  */
3545
- [Rs](e, t, s) {
3546
- const n = e.updateType ?? it.Part;
3547
- return this[Ss](t).then(() => {
3548
- const o = this[Ps](t, e, s, n);
3555
+ [Ps](e, t, s) {
3556
+ const n = e.updateType ?? at.Part;
3557
+ return this[$s](t).then(() => {
3558
+ const o = this[Cs](t, e, s, n);
3549
3559
  if (o.status === "error")
3550
3560
  throw Error(o.message);
3551
3561
  return o;
@@ -3554,7 +3564,7 @@ class hn {
3554
3564
  /**
3555
3565
  * 解析组件
3556
3566
  */
3557
- [Ss](e) {
3567
+ [$s](e) {
3558
3568
  let t = [];
3559
3569
  for (let s = 0; s < e.layers.length; s++) {
3560
3570
  let n = e.layers[s];
@@ -3573,167 +3583,167 @@ class hn {
3573
3583
  * @param updateType
3574
3584
  * @returns
3575
3585
  */
3576
- [Ps](e, t, s, n) {
3586
+ [Cs](e, t, s, n) {
3577
3587
  if (e.layers[0].models.length !== 1)
3578
3588
  return {
3579
3589
  status: "error",
3580
3590
  message: "illegal route structure(multi root node)"
3581
3591
  };
3582
3592
  const i = e.layers[0].models[0];
3583
- let o = this[D], a = cn(o), l = t.root ?? X, u;
3584
- !a && n == it.Part && (u = this[Tt](o, t));
3585
- let c, f = 0;
3593
+ let o = this[ee], a = Qr(o), l = t.root ?? ae, u;
3594
+ !a && n == at.Part && (u = this[Tt](o, t));
3595
+ let c, h = 0;
3586
3596
  if (u == null || u == null)
3587
- if (a || n === it.All) {
3597
+ if (a || n === at.All) {
3588
3598
  if (o.layers.length == 0 && (o.layers[0] = new Et()), o.layers[0].views.length == 0) {
3589
- let h = t.root ?? X;
3590
- c = new Ke(h, !0, null), o.layers[0].views = [c];
3599
+ let f = t.root ?? ae;
3600
+ c = new Me(f, !0, null), o.layers[0].views = [c];
3591
3601
  } else
3592
3602
  c = o.layers[0].views[0];
3593
3603
  u = { x: 0, y: 0 };
3594
3604
  } else {
3595
- let h = t.slot;
3596
- if (!h)
3605
+ let f = t.slot;
3606
+ if (!f)
3597
3607
  return {
3598
3608
  status: "error",
3599
3609
  message: "can not rebuild view(because not route slot)"
3600
3610
  };
3601
- let y = h.level;
3602
- if (y > o.layers.length)
3611
+ let d = f.level;
3612
+ if (d > o.layers.length)
3603
3613
  return {
3604
3614
  status: "error",
3605
3615
  message: "can not insert view(override level)"
3606
3616
  };
3607
- let d;
3608
- if (h.rootName) {
3609
- let p = o.layers[y - 1];
3610
- for (let m of p.views) {
3611
- if (m[V] && m.name === h.rootName) {
3612
- d = new I(m, h.rootIndex ?? 0, y - 1);
3617
+ let v;
3618
+ if (f.rootName) {
3619
+ let w = o.layers[d - 1];
3620
+ for (let R of w.views) {
3621
+ if (R[re] && R.name === f.rootName) {
3622
+ v = new Y(R, f.rootIndex ?? 0, d - 1);
3613
3623
  break;
3614
3624
  }
3615
- if (m[U] && m[U].view.name === h.rootName && m[U].index === h.rootIndex) {
3616
- d = m[U];
3625
+ if (R[se] && R[se].view.name === f.rootName && R[se].index === f.rootIndex) {
3626
+ v = R[se];
3617
3627
  break;
3618
3628
  }
3619
3629
  }
3620
3630
  }
3621
- if (!d)
3631
+ if (!v)
3622
3632
  return {
3623
3633
  status: "error",
3624
3634
  message: "can not insert view(not find root node ref)"
3625
3635
  };
3626
- c = new Ke(l, !0, d), o.layers[y].views.push(c), u = { x: o.layers[y].views.length - 1, y };
3636
+ c = new Me(l, !0, v), o.layers[d].views.push(c), u = { x: o.layers[d].views.length - 1, y: d };
3627
3637
  }
3628
3638
  else
3629
3639
  c = o.layers[u.y].views[u.x];
3630
- if (f = u.y, c[V] = !0, t.opsType === C.Append) {
3631
- t.index = t.index ?? ie.get(), t.active = !0;
3632
- let h = c.slots.value;
3633
- if (h.length > 0) {
3634
- let v = h[h.length - 1];
3635
- v.active = !1, v.route && (v.route.active = v.active);
3640
+ if (h = u.y, c[re] = !0, t.opsType === M.Append) {
3641
+ t.index = t.index ?? pe.get(), t.active = !0;
3642
+ let f = c.slots.value;
3643
+ if (f.length > 0) {
3644
+ let E = f[f.length - 1];
3645
+ E.active = !1, E.route && (E.route.active = E.active);
3636
3646
  }
3637
- let y = new se(t, i, t.index, !0);
3638
- c.slots.value = [...h, y];
3639
- let d = f + 1, p = 1, m = new I(c, t.index, f);
3640
- this[re](o, d, e, p, m);
3641
- } else if (t.opsType === C.Open) {
3642
- let h = c.slots.value;
3643
- const y = t.active ?? !0;
3644
- let d = !1;
3645
- for (let p of h) {
3646
- if (p.route !== null && R.isSameForRouteModel(p.route, t)) {
3647
- if (p.active === y)
3648
- return t.index = p.index, t.active = y, p.route = t, {
3647
+ let d = new he(t, i, t.index, !0);
3648
+ c.slots.value = [...f, d];
3649
+ let v = h + 1, w = 1, R = new Y(c, t.index, h);
3650
+ this[ye](o, v, e, w, R);
3651
+ } else if (t.opsType === M.Open) {
3652
+ let f = c.slots.value;
3653
+ const d = t.active ?? !0;
3654
+ let v = !1;
3655
+ for (let w of f) {
3656
+ if (w.route !== null && L.isSameForRouteModel(w.route, t)) {
3657
+ if (w.active === d)
3658
+ return t.index = w.index, t.active = d, w.route = t, {
3649
3659
  status: "no-change",
3650
3660
  message: ""
3651
3661
  };
3652
- p.active = y, d = !0, t.index = p.index, t.active = y, p.route = t;
3653
- } else y && (p.active = !1);
3654
- p.route && (p.route.active = p.active);
3662
+ w.active = d, v = !0, t.index = w.index, t.active = d, w.route = t;
3663
+ } else d && (w.active = !1);
3664
+ w.route && (w.route.active = w.active);
3655
3665
  }
3656
- if (!d) {
3657
- t.index = t.index ?? ie.get(), t.active = y;
3658
- let p = new se(t, i, t.index, y);
3659
- h.push(p);
3660
- let m = f + 1, v = 1, g = new I(c, t.index, f);
3661
- this[re](o, m, e, v, g);
3666
+ if (!v) {
3667
+ t.index = t.index ?? pe.get(), t.active = d;
3668
+ let w = new he(t, i, t.index, d);
3669
+ f.push(w);
3670
+ let R = h + 1, E = 1, b = new Y(c, t.index, h);
3671
+ this[ye](o, R, e, E, b);
3662
3672
  }
3663
- c.slots.value = [...h];
3673
+ c.slots.value = [...f];
3664
3674
  } else {
3665
- let h = c.slots.value;
3666
- if (h.length == 0) {
3667
- t.index = t.index ?? ie.get(), t.active = !0, c.slots.value = [new se(t, i, t.index)];
3668
- let y = f + 1, d = 1, p = new I(c, t.index, f);
3669
- this[re](o, y, e, d, p);
3675
+ let f = c.slots.value;
3676
+ if (f.length == 0) {
3677
+ t.index = t.index ?? pe.get(), t.active = !0, c.slots.value = [new he(t, i, t.index)];
3678
+ let d = h + 1, v = 1, w = new Y(c, t.index, h);
3679
+ this[ye](o, d, e, v, w);
3670
3680
  } else {
3671
- let y = h[0];
3672
- if (y.model !== i) {
3673
- this[ue](o, u, null, !0), t.index = t.index ?? ie.get(), t.active = !0, c.slots.value = [new se(t, i, t.index)];
3674
- let d = f + 1, p = 1, m = new I(c, t.index, f);
3675
- this[re](o, d, e, p, m);
3681
+ let d = f[0];
3682
+ if (d.model !== i) {
3683
+ this[we](o, u, null, !0), t.index = t.index ?? pe.get(), t.active = !0, c.slots.value = [new he(t, i, t.index)];
3684
+ let v = h + 1, w = 1, R = new Y(c, t.index, h);
3685
+ this[ye](o, v, e, w, R);
3676
3686
  } else {
3677
- y.route !== null && this[Le](y.route);
3678
- let d = !1;
3679
- const p = t.active ?? !0;
3680
- y.active !== p && (y.active = p, d = !0), t.active = p, t.index = y.index, y.route = t;
3681
- let m = [];
3682
- for (let Q = 1; Q < h.length; Q++)
3683
- m.push(h[Q].index);
3684
- m.length > 0 ? this[ue](o, u, m, !0) : d && (c.slots.value = [...h]);
3685
- let v = [new I(c, t.index, f)], g = f + 1, T = 1, ee = new I(c, t.index, f);
3686
- for (; v.length > 0 && g < o.layers.length && T < e.layers.length; g++, T++) {
3687
- let Q = [];
3688
- for (let _ = 0; _ < o.layers[g].views.length; _++) {
3689
- let K = o.layers[g].views[_];
3690
- K[he] && I.include(v, K[he]) && Q.unshift(_);
3687
+ d.route !== null && this[De](d.route);
3688
+ let v = !1;
3689
+ const w = t.active ?? !0;
3690
+ d.active !== w && (d.active = w, v = !0), t.active = w, t.index = d.index, d.route = t;
3691
+ let R = [];
3692
+ for (let te = 1; te < f.length; te++)
3693
+ R.push(f[te].index);
3694
+ R.length > 0 ? this[we](o, u, R, !0) : v && (c.slots.value = [...f]);
3695
+ let E = [new Y(c, t.index, h)], b = h + 1, z = 1, X = new Y(c, t.index, h);
3696
+ for (; E.length > 0 && b < o.layers.length && z < e.layers.length; b++, z++) {
3697
+ let te = [];
3698
+ for (let y = 0; y < o.layers[b].views.length; y++) {
3699
+ let m = o.layers[b].views[y];
3700
+ m[Se] && Y.include(E, m[Se]) && te.unshift(y);
3691
3701
  }
3692
- let ge = [];
3693
- for (let _ of Q) {
3694
- let K = o.layers[g].views[_], oe = e.layers[T].models, Y;
3695
- for (let j = 0; j < oe.length; j++)
3696
- if (K.name === oe[j].name) {
3697
- Y = oe[j];
3702
+ let p = [];
3703
+ for (let y of te) {
3704
+ let m = o.layers[b].views[y], g = e.layers[z].models, P;
3705
+ for (let x = 0; x < g.length; x++)
3706
+ if (m.name === g[x].name) {
3707
+ P = g[x];
3698
3708
  break;
3699
3709
  }
3700
- if (!Y)
3701
- this[ue](o, { x: _, y: g }, null, !1);
3710
+ if (!P)
3711
+ this[we](o, { x: y, y: b }, null, !1);
3702
3712
  else {
3703
- let j = K.slots.value;
3704
- if (j.length == 0) {
3705
- let z = 0;
3706
- K.slots.value = [new se(null, Y, z)];
3707
- let H = g + 1, Z = T + 1;
3708
- this[re](o, H, e, Z, ee);
3713
+ let x = m.slots.value;
3714
+ if (x.length == 0) {
3715
+ let C = 0;
3716
+ m.slots.value = [new he(null, P, C)];
3717
+ let A = b + 1, S = z + 1;
3718
+ this[ye](o, A, e, S, X);
3709
3719
  } else {
3710
- let z = j[0];
3711
- if (z.model !== Y) {
3712
- this[ue](o, { x: _, y: g }, null, !0), K.slots.value = [new se(null, Y, 0)];
3713
- let H = g + 1, Z = T + 1;
3714
- this[re](o, H, e, Z, ee);
3720
+ let C = x[0];
3721
+ if (C.model !== P) {
3722
+ this[we](o, { x: y, y: b }, null, !0), m.slots.value = [new he(null, P, 0)];
3723
+ let A = b + 1, S = z + 1;
3724
+ this[ye](o, A, e, S, X);
3715
3725
  } else {
3716
- K[V] && z.route !== null && this[Le](z.route);
3717
- let H = [];
3718
- for (let Z = 1; Z < j.length; Z++)
3719
- H.push(j[Z].index);
3720
- H.length > 0 && this[ue](o, { x: _, y: g }, H, !0), ge.push(new I(K, z.index, g));
3726
+ m[re] && C.route !== null && this[De](C.route);
3727
+ let A = [];
3728
+ for (let S = 1; S < x.length; S++)
3729
+ A.push(x[S].index);
3730
+ A.length > 0 && this[we](o, { x: y, y: b }, A, !0), p.push(new Y(m, C.index, b));
3721
3731
  }
3722
3732
  }
3723
- K[V] = !1;
3733
+ m[re] = !1;
3724
3734
  }
3725
3735
  }
3726
- v = ge;
3736
+ E = p;
3727
3737
  }
3728
- this[re](o, g, e, T, ee);
3738
+ this[ye](o, b, e, z, X);
3729
3739
  }
3730
3740
  }
3731
3741
  }
3732
- if (c && c[U]) {
3733
- let h = c[U];
3734
- h && (t.slot = new _r(l, f, h?.view.name, h?.index ?? 0));
3742
+ if (c && c[se]) {
3743
+ let f = c[se];
3744
+ f && (t.slot = new Kr(l, h, f?.view.name, f?.index ?? 0));
3735
3745
  }
3736
- return s.to = void 0, s.routeModel = void 0, this[$s](t, s), {
3746
+ return s.to = void 0, s.routeModel = void 0, this[Es](t, s), {
3737
3747
  status: "success",
3738
3748
  message: ""
3739
3749
  };
@@ -3746,21 +3756,21 @@ class hn {
3746
3756
  * @param startModelLevel
3747
3757
  * @param rootNodeRef
3748
3758
  */
3749
- [re](e, t, s, n, i) {
3759
+ [ye](e, t, s, n, i) {
3750
3760
  let o = n, a = t;
3751
3761
  for (; a < e.layers.length && o < s.layers.length; a++, o++) {
3752
3762
  let l = e.layers[a].views;
3753
3763
  for (let u of s.layers[o].models) {
3754
- let c = new Ke(u.name, !1, i), f = new se(null, u);
3755
- c.slots.value = [f], l.push(c);
3764
+ let c = new Me(u.name, !1, i), h = new he(null, u);
3765
+ c.slots.value = [h], l.push(c);
3756
3766
  }
3757
3767
  }
3758
3768
  for (; o < s.layers.length; o++) {
3759
3769
  let l = new Et();
3760
3770
  l.views = [];
3761
3771
  for (let u of s.layers[o].models) {
3762
- let c = new Ke(u.name, !1, i), f = new se(null, u);
3763
- c.slots.value = [f], l.views.push(c);
3772
+ let c = new Me(u.name, !1, i), h = new he(null, u);
3773
+ c.slots.value = [h], l.views.push(c);
3764
3774
  }
3765
3775
  e.layers.push(l);
3766
3776
  }
@@ -3775,45 +3785,45 @@ class hn {
3775
3785
  * @param parentViewIndex
3776
3786
  * @returns
3777
3787
  */
3778
- [Is](e, t, s, n, i, o) {
3779
- if (t < 0 || t > this[D].layers.length)
3788
+ [Hs](e, t, s, n, i, o) {
3789
+ if (t < 0 || t > this[ee].layers.length)
3780
3790
  return null;
3781
- if (t < this[D].layers.length) {
3782
- let c = this[D].layers[t], f = null;
3783
- for (let h of c.views) {
3784
- let y = !1;
3785
- if (s !== null ? (y = h.name === e && h[U]?.view === s, y && n !== -1 && (y = h[U]?.index === n)) : y = h.name === e, !!y) {
3786
- i !== null && (h[he] = {
3791
+ if (t < this[ee].layers.length) {
3792
+ let c = this[ee].layers[t], h = null;
3793
+ for (let f of c.views) {
3794
+ let d = !1;
3795
+ if (s !== null ? (d = f.name === e && f[se]?.view === s, d && n !== -1 && (d = f[se]?.index === n)) : d = f.name === e, !!d) {
3796
+ i !== null && (f[Se] = {
3787
3797
  view: i,
3788
3798
  index: o,
3789
3799
  level: t - 1
3790
- }), f = h;
3800
+ }), h = f;
3791
3801
  break;
3792
3802
  }
3793
3803
  }
3794
- if (f !== null)
3795
- return f;
3804
+ if (h !== null)
3805
+ return h;
3796
3806
  }
3797
3807
  let a = null, l = null;
3798
- i !== null && (i[V] ? a = {
3808
+ i !== null && (i[re] ? a = {
3799
3809
  view: i,
3800
3810
  index: o,
3801
3811
  level: t - 1
3802
- } : a = i[U], l = {
3812
+ } : a = i[se], l = {
3803
3813
  view: i,
3804
3814
  index: o,
3805
3815
  level: t - 1
3806
3816
  });
3807
- let u = new Ke(e, !0, a);
3808
- if (u[he] = l, t == this[D].layers.length) {
3817
+ let u = new Me(e, !0, a);
3818
+ if (u[Se] = l, t == this[ee].layers.length) {
3809
3819
  let c = new Et();
3810
- c.views = [u], this[D].layers.push(c);
3820
+ c.views = [u], this[ee].layers.push(c);
3811
3821
  } else
3812
- this[D].layers[t].views.push(u);
3822
+ this[ee].layers[t].views.push(u);
3813
3823
  return u;
3814
3824
  }
3815
3825
  }
3816
- const yn = "fox-router-view", dn = "fox-router-link";
3826
+ const en = "fox-router-view", tn = "fox-router-link";
3817
3827
  function Ws(r, e = !1) {
3818
3828
  let t = null;
3819
3829
  return e ? t = r.showFromClass ?? r.enterFromClass : t = r.enterFromClass, t || (t = r.transitionName, t ? e ? `${t}-show-from` : `${t}-enter-from` : null);
@@ -3822,7 +3832,7 @@ function Gs(r, e = !1) {
3822
3832
  let t = null;
3823
3833
  return e ? t = r.showActiveClass ?? r.enterActiveClass : t = r.enterActiveClass, t || (t = r.transitionName, t ? e ? `${t}-show-active` : `${t}-enter-active` : null);
3824
3834
  }
3825
- function pn(r, e = !1) {
3835
+ function sn(r, e = !1) {
3826
3836
  let t = null;
3827
3837
  return e ? t = r.showToClass ?? r.enterToClass : t = r.enterToClass, t || (t = r.transitionName, t ? e ? `${t}-show-to` : `${t}-enter-to` : null);
3828
3838
  }
@@ -3834,43 +3844,43 @@ function Qs(r, e = !1) {
3834
3844
  let t = null;
3835
3845
  return e ? t = r.hideActiveClass ?? r.leaveActiveClass : t = r.leaveActiveClass, t || (t = r.transitionName, t ? e ? `${t}-hide-active` : `${t}-leave-active` : null);
3836
3846
  }
3837
- function mn(r, e = !1) {
3847
+ function rn(r, e = !1) {
3838
3848
  let t = null;
3839
3849
  return e ? t = r.hideToClass ?? r.leaveToClass : t = r.leaveToClass, t || (t = r.transitionName, t ? e ? `${t}-hide-to` : `${t}-leave-to` : null);
3840
3850
  }
3841
- function gn(r, e = !1) {
3851
+ function nn(r, e = !1) {
3842
3852
  let t = null;
3843
3853
  return e ? t = r.beforeShow ?? r.beforeEnter : t = r.beforeEnter, t;
3844
3854
  }
3845
- function vn(r, e = !1) {
3855
+ function on(r, e = !1) {
3846
3856
  let t = null;
3847
3857
  return e ? t = r.show ?? r.enter : t = r.enter, t;
3848
3858
  }
3849
- function wn(r, e = !1) {
3859
+ function ln(r, e = !1) {
3850
3860
  let t = null;
3851
3861
  return e ? t = r.afterShow ?? r.afterEnter : t = r.afterEnter, t;
3852
3862
  }
3853
- function bn(r, e = !1) {
3863
+ function an(r, e = !1) {
3854
3864
  let t = null;
3855
3865
  return e ? t = r.showCancelled ?? r.enterCancelled : t = r.enterCancelled, t;
3856
3866
  }
3857
- function xn(r, e = !1) {
3867
+ function un(r, e = !1) {
3858
3868
  let t = null;
3859
3869
  return e ? t = r.beforeHide ?? r.beforeLeave : t = r.beforeLeave, t;
3860
3870
  }
3861
- function Rn(r, e = !1) {
3871
+ function cn(r, e = !1) {
3862
3872
  let t = null;
3863
3873
  return e ? t = r.hide ?? r.leave : t = r.leave, t;
3864
3874
  }
3865
- function Sn(r, e = !1) {
3875
+ function fn(r, e = !1) {
3866
3876
  let t = null;
3867
3877
  return e ? t = r.afterHide ?? r.afterLeave : t = r.afterLeave, t;
3868
3878
  }
3869
- function Pn(r, e = !1) {
3879
+ function hn(r, e = !1) {
3870
3880
  let t = null;
3871
3881
  return e ? t = r.hideCancelled ?? r.leaveCancelled : t = r.leaveCancelled, t;
3872
3882
  }
3873
- function ss(r) {
3883
+ function ts(r) {
3874
3884
  let e, t = r.duration;
3875
3885
  return typeof t == "object" ? e = {
3876
3886
  enter: t.enter ?? -1,
@@ -3884,116 +3894,116 @@ function ss(r) {
3884
3894
  hide: t
3885
3895
  }), e;
3886
3896
  }
3887
- function Ae(r, e) {
3897
+ function Le(r, e) {
3888
3898
  r.classList.contains(e) || r.classList.add(e);
3889
3899
  }
3890
- function Ce(r, e) {
3900
+ function je(r, e) {
3891
3901
  r.classList.remove(e);
3892
3902
  }
3893
- const $n = de && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : setTimeout;
3894
- function mt(r) {
3895
- $n(r);
3903
+ const yn = $e && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : setTimeout;
3904
+ function vt(r) {
3905
+ yn(r);
3896
3906
  }
3897
- function A(r, e, t) {
3898
- b(e) && (r == null && (r = {}), Reflect.apply(e, r, t));
3907
+ function H(r, e, t) {
3908
+ q(e) && (r == null && (r = {}), Reflect.apply(e, r, t));
3899
3909
  }
3900
3910
  function Ys(r, e, t, s = -1, n, i, o, a) {
3901
3911
  let l = [];
3902
3912
  const u = () => {
3903
3913
  for (let c of l)
3904
- zt(e, c.type, c.listener);
3914
+ Wt(e, c.type, c.listener);
3905
3915
  l = [];
3906
3916
  };
3907
- if (b(i)) {
3917
+ if (q(i)) {
3908
3918
  if (n !== void 0 && n >= 0) {
3909
3919
  setTimeout(() => {
3910
- Reflect.apply(i, r, [e, t, s]), b(a) && Reflect.apply(a, r, []);
3920
+ Reflect.apply(i, r, [e, t, s]), q(a) && Reflect.apply(a, r, []);
3911
3921
  }, n);
3912
3922
  return;
3913
3923
  }
3914
- const c = ["animationend", "transitionend", Ht], f = (h) => {
3915
- const y = h.target || h.srcElement, d = h.currentTarget;
3916
- y === d && (u(), Reflect.apply(i, r, [e, t, s]));
3924
+ const c = ["animationend", "transitionend", Ut], h = (f) => {
3925
+ const d = f.target || f.srcElement, v = f.currentTarget;
3926
+ d === v && (u(), Reflect.apply(i, r, [e, t, s]));
3917
3927
  };
3918
- c.forEach((h) => {
3919
- at(e, h, f), l.push({
3920
- type: h,
3921
- listener: f
3928
+ c.forEach((f) => {
3929
+ ft(e, f, h), l.push({
3930
+ type: f,
3931
+ listener: h
3922
3932
  });
3923
3933
  });
3924
3934
  }
3925
- if (b(o)) {
3926
- const c = "animationcancel", f = (h) => {
3927
- const y = h.target || h.srcElement, d = h.currentTarget;
3928
- y === d && (u(), Reflect.apply(o, r, [e, t, s]));
3935
+ if (q(o)) {
3936
+ const c = "animationcancel", h = (f) => {
3937
+ const d = f.target || f.srcElement, v = f.currentTarget;
3938
+ d === v && (u(), Reflect.apply(o, r, [e, t, s]));
3929
3939
  };
3930
- at(e, c, f), l.push({
3940
+ ft(e, c, h), l.push({
3931
3941
  type: c,
3932
- listener: f
3942
+ listener: h
3933
3943
  });
3934
3944
  }
3935
3945
  }
3936
- function gt(r) {
3937
- return !de || r === null ? !1 : r.opsType === C.Append || r.opsType === C.Open;
3946
+ function wt(r) {
3947
+ return !$e || r === null ? !1 : r.opsType === M.Append || r.opsType === M.Open;
3938
3948
  }
3939
3949
  function Zs(r, e, t, s = {}, n, i = -1) {
3940
- if (e || gt(n)) {
3950
+ if (e || wt(n)) {
3941
3951
  const o = Ws(s, e);
3942
- o && Ae(t, o);
3952
+ o && Le(t, o);
3943
3953
  const a = Gs(s, e);
3944
- a && Ae(t, a);
3945
- const l = gn(s, e);
3946
- A(r, l, [t, e, n, i]);
3954
+ a && Le(t, a);
3955
+ const l = nn(s, e);
3956
+ H(r, l, [t, e, n, i]);
3947
3957
  }
3948
3958
  }
3949
3959
  function er(r, e, t, s = {}, n, i, o, a) {
3950
- if (!gt(i) && !e) {
3951
- b(a) && a(r, a, [t]);
3960
+ if (!wt(i) && !e) {
3961
+ q(a) && a(r, a, [t]);
3952
3962
  return;
3953
3963
  }
3954
- const l = Ws(s, e), u = Gs(s, e), c = pn(s, e), f = vn(s, e), h = wn(s, e), y = bn(s, e);
3955
- if (!l && !u && !c && !f) {
3956
- b(a) && a(r, a, [t]);
3964
+ const l = Ws(s, e), u = Gs(s, e), c = sn(s, e), h = on(s, e), f = ln(s, e), d = an(s, e);
3965
+ if (!l && !u && !c && !h) {
3966
+ q(a) && a(r, a, [t]);
3957
3967
  return;
3958
3968
  }
3959
- mt(() => {
3969
+ vt(() => {
3960
3970
  Ys(r, t, i, o, n, () => {
3961
- u && Ce(t, u), c && Ce(t, c), b(h) && A(r, h, [t, e, i, o]), b(a) && a(r, a, [t]);
3971
+ u && je(t, u), c && je(t, c), q(f) && H(r, f, [t, e, i, o]), q(a) && a(r, a, [t]);
3962
3972
  }, () => {
3963
- b(y) && A(r, y, [t, e, i, o]);
3964
- }), l && Ce(t, l), c && Ae(t, c), b(f) && A(r, f, [t, e, i, o]);
3973
+ q(d) && H(r, d, [t, e, i, o]);
3974
+ }), l && je(t, l), c && Le(t, c), q(h) && H(r, h, [t, e, i, o]);
3965
3975
  });
3966
3976
  }
3967
3977
  function tr(r, e, t, s = {}, n, i = -1) {
3968
- if (e || gt(n)) {
3978
+ if (e || wt(n)) {
3969
3979
  const o = Xs(s, e);
3970
- o && Ae(t, o);
3980
+ o && Le(t, o);
3971
3981
  const a = Qs(s, e);
3972
- a && Ae(t, a);
3973
- const l = xn(s, e);
3974
- A(r, l, [t, e, n, i]);
3982
+ a && Le(t, a);
3983
+ const l = un(s, e);
3984
+ H(r, l, [t, e, n, i]);
3975
3985
  }
3976
3986
  }
3977
3987
  function sr(r, e, t, s = {}, n, i, o, a, l) {
3978
- if (!gt(o) && !e) {
3979
- b(l) && A(r, l, [t]), !e && b(i) && i();
3988
+ if (!wt(o) && !e) {
3989
+ q(l) && H(r, l, [t]), !e && q(i) && i();
3980
3990
  return;
3981
3991
  }
3982
- const u = Xs(s, e), c = Qs(s, e), f = mn(s, e), h = Rn(s, e), y = Sn(s, e), d = Pn(s, e);
3983
- if (!u && !c && !f && !h) {
3984
- b(l) && A(r, l, [t]), !e && b(i) && i();
3992
+ const u = Xs(s, e), c = Qs(s, e), h = rn(s, e), f = cn(s, e), d = fn(s, e), v = hn(s, e);
3993
+ if (!u && !c && !h && !f) {
3994
+ q(l) && H(r, l, [t]), !e && q(i) && i();
3985
3995
  return;
3986
3996
  }
3987
- mt(() => {
3997
+ vt(() => {
3988
3998
  Ys(r, t, o, a, n, () => {
3989
- c && Ce(t, c), f && Ce(t, f), b(y) && A(r, y, [t, e, o, a]), b(l) && A(r, l, [t]), !e && b(i) && i();
3999
+ c && je(t, c), h && je(t, h), q(d) && H(r, d, [t, e, o, a]), q(l) && H(r, l, [t]), !e && q(i) && i();
3990
4000
  }, () => {
3991
- b(d) && A(r, d, [t, e, o, a]), b(l) && A(r, l, [t]), !e && b(i) && i();
3992
- }), u && Ce(t, u), f && Ae(t, f), b(h) && A(r, h, [t, e, o, a]);
4001
+ q(v) && H(r, v, [t, e, o, a]), q(l) && H(r, l, [t]), !e && q(i) && i();
4002
+ }), u && je(t, u), h && Le(t, h), q(f) && H(r, f, [t, e, o, a]);
3993
4003
  });
3994
4004
  }
3995
- function Vt(r, e, t = {}, s, n = -1) {
3996
- const i = t.mode ?? "default", o = ss(t);
4005
+ function Bt(r, e, t = {}, s, n = -1) {
4006
+ const i = t.mode ?? "default", o = ts(t);
3997
4007
  return {
3998
4008
  //mode
3999
4009
  mode: i,
@@ -4014,38 +4024,38 @@ function Vt(r, e, t = {}, s, n = -1) {
4014
4024
  });
4015
4025
  },
4016
4026
  //clone
4017
- clone: (l) => Vt(r, e, t, s, n)
4027
+ clone: (l) => Bt(r, e, t, s, n)
4018
4028
  };
4019
4029
  }
4020
4030
  function rr(r) {
4021
4031
  return r.el;
4022
4032
  }
4023
- function Cn(r, e, t = {}, s, n, i, o) {
4033
+ function dn(r, e, t = {}, s, n, i, o) {
4024
4034
  if (i === !0) {
4025
4035
  const a = rr(e);
4026
4036
  if (a == null)
4027
4037
  return;
4028
- const l = ss(t);
4038
+ const l = ts(t);
4029
4039
  Zs(r, !0, a, t, s, n), er(r, !0, a, t, l.show, s, n, (u) => {
4030
- b(o) && A(r, o, [u]);
4040
+ q(o) && H(r, o, [u]);
4031
4041
  });
4032
4042
  } else
4033
- b(o) && A(r, o, []);
4043
+ q(o) && H(r, o, []);
4034
4044
  }
4035
- function En(r, e, t = {}, s, n, i, o) {
4045
+ function pn(r, e, t = {}, s, n, i, o) {
4036
4046
  if (i === !0) {
4037
4047
  const a = rr(e);
4038
4048
  if (a == null)
4039
4049
  return;
4040
- const l = ss(t);
4050
+ const l = ts(t);
4041
4051
  tr(r, !0, a, t, s, n), sr(r, !0, a, t, l.hide, null, s, n, (u) => {
4042
- b(o) && A(r, o, [u]);
4052
+ q(o) && H(r, o, [u]);
4043
4053
  });
4044
4054
  } else
4045
- b(o) && A(r, o, []);
4055
+ q(o) && H(r, o, []);
4046
4056
  }
4047
- function An(r, e = {}) {
4048
- mt(() => {
4057
+ function mn(r, e = {}) {
4058
+ vt(() => {
4049
4059
  for (let t = 0; t < r.length; t++)
4050
4060
  Reflect.apply(r[t], e, []);
4051
4061
  });
@@ -4058,39 +4068,39 @@ function nr(r, e, t = {}, s, n = -1) {
4058
4068
  persisted: !1,
4059
4069
  //before enter
4060
4070
  beforeEnter: (a) => {
4061
- Je(qr, {}, a);
4071
+ Xe(jr, {}, a);
4062
4072
  },
4063
4073
  //enter
4064
4074
  enter: (a) => {
4065
- Je(jr, {}, a);
4075
+ Xe(Lr, {}, a);
4066
4076
  },
4067
4077
  //leave
4068
4078
  leave: (a, l) => {
4069
- Je(Lr, {}, a), mt(() => {
4079
+ Xe(kr, {}, a), vt(() => {
4070
4080
  const u = (c) => {
4071
- const f = c.target || c.srcElement, h = c.currentTarget;
4072
- f === h && (zt(a, Ht, u), l && Reflect.apply(l, r, []), e.transition = null, e = null);
4081
+ const h = c.target || c.srcElement, f = c.currentTarget;
4082
+ h === f && (Wt(a, Ut, u), l && Reflect.apply(l, r, []), e.transition = null, e = null);
4073
4083
  };
4074
- at(a, Ht, u), Je(kr, {}, a);
4084
+ ft(a, Ut, u), Xe(Or, {}, a);
4075
4085
  });
4076
4086
  },
4077
4087
  //clone
4078
4088
  clone: (a) => nr(r, e, t, s, n)
4079
4089
  };
4080
4090
  }
4081
- function ne(r, e, t) {
4091
+ function de(r, e, t) {
4082
4092
  return typeof r == "function" ? Reflect.apply(r, {}, [e, t]) : r;
4083
4093
  }
4084
- function Nt(r, e) {
4094
+ function Dt(r, e) {
4085
4095
  if (!r)
4086
4096
  return null;
4087
4097
  const t = r(e);
4088
4098
  return t.length === 1 ? t[0] : t;
4089
4099
  }
4090
- function Re(r, e) {
4100
+ function Te(r, e) {
4091
4101
  return typeof e == "function" ? e(r) : r;
4092
4102
  }
4093
- class Fn {
4103
+ class gn {
4094
4104
  /**
4095
4105
  * vue node
4096
4106
  */
@@ -4106,7 +4116,7 @@ class Fn {
4106
4116
  this.node = e, this.state = t;
4107
4117
  }
4108
4118
  }
4109
- const Bt = Fs({
4119
+ const zt = Ks({
4110
4120
  //名称
4111
4121
  name: "RouterView",
4112
4122
  //继承特性
@@ -4324,129 +4334,129 @@ const Bt = Fs({
4324
4334
  console.error("instance or instance.proxy not exist");
4325
4335
  return;
4326
4336
  }
4327
- const s = r.multi === !0, n = B(dt, null), i = B(St, 0), o = B(ds, null), a = B(Pt, -1);
4337
+ const s = r.multi === !0, n = ne(gt, null), i = ne(Pt, 0), o = ne(ds, null), a = ne($t, -1);
4328
4338
  let l = null, u = r.modelSlot;
4329
4339
  if (u) {
4330
- if (te(St, i + 1), te(Pt, u.index), te($t, u.index), !u.route) {
4340
+ if (fe(Pt, i + 1), fe($t, u.index), fe(Ct, u.index), !u.route) {
4331
4341
  console.warn("child view render error, route not exist");
4332
4342
  return;
4333
4343
  }
4334
- const h = ct(t.proxy, !0);
4335
- Ir(h), ys(h, () => u?.route ?? null);
4344
+ const f = yt(t.proxy, !0);
4345
+ Nr(f), ys(f, () => u?.route ?? null);
4336
4346
  } else {
4337
4347
  if (n == null) {
4338
4348
  console.error("router is not been injected");
4339
4349
  return;
4340
4350
  }
4341
- const f = r.name, h = B(ps, null), y = B($t, 0);
4342
- if (l = n[Is](f, i, o, a, h, y), l === null)
4351
+ const h = r.name, f = ne(ps, null), d = ne(Ct, 0);
4352
+ if (l = n[Hs](h, i, o, a, f, d), l === null)
4343
4353
  return;
4344
- te(ps, l);
4345
- const d = l[V] === !0;
4346
- if (d && te(ds, l), !s && (te(Pt, -1), te(St, i + 1), te($t, -1), d)) {
4347
- const p = ct(t.proxy, !0);
4348
- ys(p, () => {
4349
- const m = l.slots.value;
4350
- return m.length > 0 ? m[0].route : null;
4354
+ fe(ps, l);
4355
+ const v = l[re] === !0;
4356
+ if (v && fe(ds, l), !s && (fe($t, -1), fe(Pt, i + 1), fe(Ct, -1), v)) {
4357
+ const w = yt(t.proxy, !0);
4358
+ ys(w, () => {
4359
+ const R = l.slots.value;
4360
+ return R.length > 0 ? R[0].route : null;
4351
4361
  });
4352
4362
  }
4353
4363
  }
4354
4364
  const c = { value: /* @__PURE__ */ new Map() };
4355
- return ht(() => {
4365
+ return pt(() => {
4356
4366
  if (c.value && c.value.clear(), u) {
4357
- const f = u;
4358
- f.route = null, f.model = null, f.instance = null, u = void 0;
4367
+ const h = u;
4368
+ h.route = null, h.model = null, h.instance = null, u = void 0;
4359
4369
  }
4360
4370
  }), () => {
4361
4371
  if (s) {
4362
- const f = /* @__PURE__ */ new Map(), h = [], y = l?.slots.value, d = [];
4363
- for (let v = 0; v < y.length; v++) {
4364
- const g = y[v], T = `${r.name}_${g.index}`, ee = ne(r.transition, g.route, v) ?? !0, Q = { modelSlot: g };
4365
- let ge;
4366
- e.slots.default ? ge = fe(Bt, Q, { default: e.slots.default }) : ge = fe(Bt, Q);
4367
- const _ = {}, K = ne(r.viewClass, g.route, v);
4368
- typeof K == "string" && K.length > 0 && (_[K] = !0);
4369
- const oe = ne(r.viewActiveClass, g.route, v), Y = ne(r.viewInactiveClass, g.route, v), j = c.value.get(T);
4370
- if (typeof oe == "string" && oe.length > 0 && (_[oe] = g.active), typeof Y == "string" && Y.length > 0 && (_[Y] = !g.active), j && g.active !== j.state) {
4371
- const O = j.node;
4372
- g.active ? d.unshift(() => {
4373
- const vt = () => {
4374
- let Fe = fs(O);
4375
- Fe != null && hs(Fe, Ut.ACTIVATED);
4372
+ const h = /* @__PURE__ */ new Map(), f = [], d = l?.slots.value, v = [];
4373
+ for (let E = 0; E < d.length; E++) {
4374
+ const b = d[E], z = `${r.name}_${b.index}`, X = de(r.transition, b.route, E) ?? !0, te = { modelSlot: b };
4375
+ let p;
4376
+ e.slots.default ? p = Re(zt, te, { default: e.slots.default }) : p = Re(zt, te);
4377
+ const y = {}, m = de(r.viewClass, b.route, E);
4378
+ typeof m == "string" && m.length > 0 && (y[m] = !0);
4379
+ const g = de(r.viewActiveClass, b.route, E), P = de(r.viewInactiveClass, b.route, E), x = c.value.get(z);
4380
+ if (typeof g == "string" && g.length > 0 && (y[g] = b.active), typeof P == "string" && P.length > 0 && (y[P] = !b.active), x && b.active !== x.state) {
4381
+ const F = x.node;
4382
+ b.active ? v.unshift(() => {
4383
+ const T = () => {
4384
+ let _ = fs(F);
4385
+ _ != null && hs(_, Vt.ACTIVATED);
4376
4386
  };
4377
- Cn(t, O, r, g.route, v, ee, vt);
4378
- }) : d.push(() => {
4379
- const vt = () => {
4380
- const Fe = fs(O);
4381
- Fe != null && hs(Fe, Ut.DEACTIVATED);
4387
+ dn(t, F, r, b.route, E, X, T);
4388
+ }) : v.push(() => {
4389
+ const T = () => {
4390
+ const _ = fs(F);
4391
+ _ != null && hs(_, Vt.DEACTIVATED);
4382
4392
  };
4383
- En(t, O, r, g.route, v, ee, vt);
4393
+ pn(t, F, r, b.route, E, X, T);
4384
4394
  });
4385
4395
  }
4386
- const z = {
4387
- class: _,
4388
- key: T
4389
- }, H = ne(r.viewTagProps, g.route, v);
4390
- if (H !== null && typeof H == "object") {
4391
- const O = Re(H, n?.propsFilter);
4392
- E(!0, z, O);
4396
+ const C = {
4397
+ class: y,
4398
+ key: z
4399
+ }, A = de(r.viewTagProps, b.route, E);
4400
+ if (A !== null && typeof A == "object") {
4401
+ const F = Te(A, n?.propsFilter);
4402
+ N(!0, C, F);
4393
4403
  }
4394
- if (g.route?.viewTagAttrs && typeof g.route?.viewTagAttrs == "object") {
4395
- const O = Re(g.route.viewTagAttrs, n?.propsFilter);
4396
- E(!0, z, O);
4404
+ if (b.route?.viewTagAttrs && typeof b.route?.viewTagAttrs == "object") {
4405
+ const F = Te(b.route.viewTagAttrs, n?.propsFilter);
4406
+ N(!0, C, F);
4397
4407
  }
4398
- const Z = ne(r.viewTag, g.route, v), ve = fe(Z, z, { default: () => [ge] });
4399
- if (f.set(T, new Fn(ve, g.active)), c.value.delete(T), ee === !0) {
4400
- const O = Vt(t, ve, r, g.route, v);
4401
- ve.transition = O;
4402
- } else if (ee === "custom") {
4403
- const O = nr(t, ve, r, g.route, v);
4404
- ve.transition = O;
4408
+ const S = de(r.viewTag, b.route, E), K = Re(S, C, { default: () => [p] });
4409
+ if (h.set(z, new gn(K, b.active)), c.value.delete(z), X === !0) {
4410
+ const F = Bt(t, K, r, b.route, E);
4411
+ K.transition = F;
4412
+ } else if (X === "custom") {
4413
+ const F = nr(t, K, r, b.route, E);
4414
+ K.transition = F;
4405
4415
  }
4406
- h.push(ve);
4416
+ f.push(K);
4407
4417
  }
4408
- c.value = f, An(d, t);
4409
- const p = ne(r.tag, null, -1), m = {};
4410
- return Object.assign(m, e.attrs), fe(p, m, { default: () => h });
4418
+ c.value = h, mn(v, t);
4419
+ const w = de(r.tag, null, -1), R = {};
4420
+ return Object.assign(R, e.attrs), Re(w, R, { default: () => f });
4411
4421
  } else if (u != null) {
4412
- const f = u.model, h = {};
4413
- if (f.props) {
4414
- if (typeof f.props == "object") {
4415
- const d = Re(f.props, n?.propsFilter);
4416
- E(!1, h, d);
4417
- } else if (f.props === !0 && typeof u.route?.params == "object") {
4418
- const d = Re(u.route.params, n?.propsFilter);
4419
- E(!1, h, d);
4422
+ const h = u.model, f = {};
4423
+ if (h.props) {
4424
+ if (typeof h.props == "object") {
4425
+ const v = Te(h.props, n?.propsFilter);
4426
+ N(!1, f, v);
4427
+ } else if (h.props === !0 && typeof u.route?.params == "object") {
4428
+ const v = Te(u.route.params, n?.propsFilter);
4429
+ N(!1, f, v);
4420
4430
  }
4421
4431
  }
4422
- const y = fe(f.component, h);
4423
- return Nt(e.slots.default, { Component: y, route: u.route }) ?? y;
4432
+ const d = Re(h.component, f);
4433
+ return Dt(e.slots.default, { Component: d, route: u.route }) ?? d;
4424
4434
  } else {
4425
- const f = l.slots.value;
4426
- if (f.length > 0) {
4427
- const h = f[0], y = h.route ?? (t.proxy && Zt(t.proxy)) ?? null, d = h.model, p = {};
4428
- if (d.props) {
4429
- if (typeof d.props == "object") {
4430
- const g = Re(d.props, n?.propsFilter);
4431
- E(!1, p, g);
4432
- } else if (d.props === !0 && typeof y?.params == "object") {
4433
- const g = Re(y.params, n?.propsFilter);
4434
- E(!1, p, g);
4435
+ const h = l.slots.value;
4436
+ if (h.length > 0) {
4437
+ const f = h[0], d = f.route ?? (t.proxy && es(t.proxy)) ?? null, v = f.model, w = {};
4438
+ if (v.props) {
4439
+ if (typeof v.props == "object") {
4440
+ const b = Te(v.props, n?.propsFilter);
4441
+ N(!1, w, b);
4442
+ } else if (v.props === !0 && typeof d?.params == "object") {
4443
+ const b = Te(d.params, n?.propsFilter);
4444
+ N(!1, w, b);
4435
4445
  }
4436
4446
  }
4437
- const m = fe(d.component, p);
4438
- if (ne(r.transition, y, -1) ?? !0) {
4439
- const g = Vt(t, m, r, y, -1);
4440
- m.transition = g;
4447
+ const R = Re(v.component, w);
4448
+ if (de(r.transition, d, -1) ?? !0) {
4449
+ const b = Bt(t, R, r, d, -1);
4450
+ R.transition = b;
4441
4451
  }
4442
- return Nt(e.slots.default, { Component: m, route: y }) ?? m;
4452
+ return Dt(e.slots.default, { Component: R, route: d }) ?? R;
4443
4453
  } else
4444
- return Nt(e.slots.fallback, {});
4454
+ return Dt(e.slots.fallback, {});
4445
4455
  }
4446
4456
  };
4447
4457
  }
4448
4458
  });
4449
- function Tn(r) {
4459
+ function vn(r) {
4450
4460
  if (!(r.metaKey || r.altKey || r.ctrlKey || r.shiftKey) && !r.defaultPrevented && !(r.button != null && r.button !== 0)) {
4451
4461
  if (r.currentTarget && r.currentTarget.getAttribute) {
4452
4462
  const e = r.currentTarget.getAttribute("target");
@@ -4455,16 +4465,16 @@ function Tn(r) {
4455
4465
  return r.preventDefault && r.preventDefault(), !0;
4456
4466
  }
4457
4467
  }
4458
- function _n(r, e) {
4468
+ function wn(r, e) {
4459
4469
  return r == null || e == null ? !1 : !!(r === e || r.path && r.path === e.path || r.name && r.name === e.name);
4460
4470
  }
4461
- function Kn(r, e) {
4471
+ function bn(r, e) {
4462
4472
  return r == null || e == null ? !1 : !!(r.path && e.path && e.path.startsWith(r.path) || r.name && r.name == e.name);
4463
4473
  }
4464
- function Se(r, e) {
4474
+ function _e(r, e) {
4465
4475
  return typeof r == "function" ? Reflect.apply(r, {}, [e]) : r;
4466
4476
  }
4467
- let qn = Fs({
4477
+ let xn = Ks({
4468
4478
  //名称
4469
4479
  name: "RouterLink",
4470
4480
  //继承特性
@@ -4512,27 +4522,27 @@ let qn = Fs({
4512
4522
  },
4513
4523
  //setup
4514
4524
  setup(r, e) {
4515
- const t = B(dt, null);
4525
+ const t = ne(gt, null);
4516
4526
  return () => {
4517
- let s = Se(r.to, null), n = Se(r.tag, s);
4527
+ let s = _e(r.to, null), n = _e(r.tag, s);
4518
4528
  if (n == null) {
4519
4529
  console.warn("can not resolve link tag");
4520
4530
  return;
4521
4531
  }
4522
4532
  let i = null, o = null;
4523
- t !== null && (i = t[k](s), r.root && (i.root = r.root), o = t.current);
4524
- let a = {}, l = Se(r.activeClass, i);
4525
- if (typeof l == "string" && l.length > 0 && (a[l] = Kn(i, o)), Se(r.exact, i) === !0) {
4526
- let h = Se(r.exactActiveClass, i);
4527
- typeof h == "string" && h.length > 0 && (a[h] = _n(i, o));
4533
+ t !== null && (i = t[G](s), r.root && (i.root = r.root), o = t.currentRoute.value);
4534
+ let a = {}, l = _e(r.activeClass, i);
4535
+ if (typeof l == "string" && l.length > 0 && (a[l] = bn(i, o)), _e(r.exact, i) === !0) {
4536
+ let f = _e(r.exactActiveClass, i);
4537
+ typeof f == "string" && f.length > 0 && (a[f] = wn(i, o));
4528
4538
  }
4529
4539
  let c = {
4530
4540
  class: a
4531
4541
  };
4532
- (n === "a" || n === "A") && (c.href = i?.path ?? i?.name ?? "#"), E(!0, c, e.attrs);
4533
- let f = Se(r.event, i);
4534
- if (typeof f == "string") {
4535
- const h = (y) => {
4542
+ (n === "a" || n === "A") && (c.href = i?.path ?? i?.name ?? "#"), N(!0, c, e.attrs);
4543
+ let h = _e(r.event, i);
4544
+ if (typeof h == "string") {
4545
+ const f = (d) => {
4536
4546
  if (t == null) {
4537
4547
  console.warn("router is not been injected");
4538
4548
  return;
@@ -4541,16 +4551,16 @@ let qn = Fs({
4541
4551
  console.warn("route is not been resolved");
4542
4552
  return;
4543
4553
  }
4544
- Tn(y) && t.to(i);
4554
+ vn(d) && t.to(i);
4545
4555
  };
4546
- c[f] = h;
4556
+ c[h] = f;
4547
4557
  }
4548
- return fe(n, c, e.slots);
4558
+ return Re(n, c, e.slots);
4549
4559
  };
4550
4560
  }
4551
4561
  });
4552
- var q = /* @__PURE__ */ ((r) => (r[r.Loading = 0] = "Loading", r[r.Loaded = 1] = "Loaded", r[r.Defining = 2] = "Defining", r[r.Defined = 3] = "Defined", r))(q || {}), lt = /* @__PURE__ */ ((r) => (r[r.normal = 0] = "normal", r[r.factory = 1] = "factory", r))(lt || {});
4553
- class jn {
4562
+ var B = /* @__PURE__ */ ((r) => (r[r.Loading = 0] = "Loading", r[r.Loaded = 1] = "Loaded", r[r.Defining = 2] = "Defining", r[r.Defined = 3] = "Defined", r))(B || {}), ct = /* @__PURE__ */ ((r) => (r[r.normal = 0] = "normal", r[r.factory = 1] = "factory", r))(ct || {});
4563
+ class Rn {
4554
4564
  /**
4555
4565
  * 注册表
4556
4566
  */
@@ -4599,11 +4609,11 @@ class jn {
4599
4609
  this.register.clear();
4600
4610
  }
4601
4611
  }
4602
- class As {
4612
+ class Ts {
4603
4613
  /**
4604
4614
  * module manager
4605
4615
  */
4606
- moduleManager = new jn();
4616
+ moduleManager = new Rn();
4607
4617
  /**
4608
4618
  * 参数配置
4609
4619
  */
@@ -4677,7 +4687,7 @@ class As {
4677
4687
  * 获取document head
4678
4688
  */
4679
4689
  get head() {
4680
- return Be().head;
4690
+ return Ge().head;
4681
4691
  }
4682
4692
  /**
4683
4693
  * 构造函数
@@ -4691,9 +4701,9 @@ class As {
4691
4701
  const s = {
4692
4702
  id: e,
4693
4703
  src: "",
4694
- status: q.Defined
4704
+ status: B.Defined
4695
4705
  };
4696
- typeof t == "function" ? (s.exports = t, s.type = lt.factory) : s.exports = t, this.moduleManager.set(e, s);
4706
+ typeof t == "function" ? (s.exports = t, s.type = ct.factory) : s.exports = t, this.moduleManager.set(e, s);
4697
4707
  }
4698
4708
  /**
4699
4709
  * 移除module
@@ -4722,7 +4732,7 @@ class As {
4722
4732
  for (let c = 0; c < u.length; c++)
4723
4733
  u[c] && t.push(this.resolvePath(u[c]));
4724
4734
  }
4725
- const o = new Ln(t.length, (l, u) => {
4735
+ const o = new Sn(t.length, (l, u) => {
4726
4736
  if (o.isOK())
4727
4737
  try {
4728
4738
  typeof i == "function" && Reflect.apply(i, {}, u);
@@ -4735,9 +4745,9 @@ class As {
4735
4745
  } catch (c) {
4736
4746
  console.error(c.message, c);
4737
4747
  }
4738
- }), a = new ut();
4748
+ }), a = new ht();
4739
4749
  for (let l = 0; l < t.length; l++) {
4740
- const u = new kn(l, t[l], n, o);
4750
+ const u = new Pn(l, t[l], n, o);
4741
4751
  this.mount(a, u);
4742
4752
  }
4743
4753
  return this;
@@ -4811,24 +4821,24 @@ class As {
4811
4821
  mountCSS(e, t, s) {
4812
4822
  e.post((n) => {
4813
4823
  const i = t.src, o = this.moduleManager.get(i);
4814
- if (o && (o.status == q.Defined || o.status == q.Loaded) && o.exports) {
4815
- o.type === lt.factory && typeof o.exports == "function" ? t.progress.work(!0, t.index, o.exports()) : t.progress.work(!0, t.index, o.exports), n.resolve();
4824
+ if (o && (o.status == B.Defined || o.status == B.Loaded) && o.exports) {
4825
+ o.type === ct.factory && typeof o.exports == "function" ? t.progress.work(!0, t.index, o.exports()) : t.progress.work(!0, t.index, o.exports), n.resolve();
4816
4826
  return;
4817
4827
  }
4818
- const a = Be(), l = a.createElement("link");
4828
+ const a = Ge(), l = a.createElement("link");
4819
4829
  if (Reflect.has(l, "onload"))
4820
4830
  l.onload = () => {
4821
4831
  l.onload = null, l.onerror = null, t.progress.work(!0, t.index, t.src), n.resolve();
4822
4832
  }, l.onerror = () => {
4823
4833
  try {
4824
4834
  s.removeChild(l);
4825
- } catch (f) {
4826
- console.error(f.message, f);
4835
+ } catch (h) {
4836
+ console.error(h.message, h);
4827
4837
  }
4828
4838
  l.onload = null, l.onerror = null, t.progress.work(!1, t.index, null), n.reject();
4829
4839
  };
4830
4840
  else {
4831
- const f = {
4841
+ const h = {
4832
4842
  //定义超时
4833
4843
  timeout: this.options.timeout ?? 3e3,
4834
4844
  //当前消耗时间
@@ -4841,14 +4851,14 @@ class As {
4841
4851
  error: () => {
4842
4852
  try {
4843
4853
  s.removeChild(l);
4844
- } catch (h) {
4845
- console.error(h.message, h);
4854
+ } catch (f) {
4855
+ console.error(f.message, f);
4846
4856
  }
4847
4857
  t.progress.work(!1, t.index, null), n.resolve();
4848
4858
  }
4849
4859
  };
4850
4860
  setTimeout(() => {
4851
- ir(l, f);
4861
+ ir(l, h);
4852
4862
  }, 1);
4853
4863
  }
4854
4864
  let c = a.getElementById(i);
@@ -4866,9 +4876,9 @@ class As {
4866
4876
  e.post((n) => {
4867
4877
  const i = t.src;
4868
4878
  let o = this.moduleManager.get(i);
4869
- if (o && (o.status == q.Defined || o.status == q.Loaded)) {
4879
+ if (o && (o.status == B.Defined || o.status == B.Loaded)) {
4870
4880
  if (o.exports) {
4871
- o.type === lt.factory && typeof o.exports == "function" ? t.progress.work(!0, t.index, o.exports()) : t.progress.work(!0, t.index, o.exports), n.resolve();
4881
+ o.type === ct.factory && typeof o.exports == "function" ? t.progress.work(!0, t.index, o.exports()) : t.progress.work(!0, t.index, o.exports), n.resolve();
4872
4882
  return;
4873
4883
  }
4874
4884
  if (document.querySelector(`script[src='${i}`)) {
@@ -4881,29 +4891,29 @@ class As {
4881
4891
  // ID
4882
4892
  src: i,
4883
4893
  // resource path
4884
- status: q.Loading
4894
+ status: B.Loading
4885
4895
  // 状态
4886
4896
  }, this.moduleManager.set(i, o);
4887
- const l = Be().createElement("script");
4897
+ const l = Ge().createElement("script");
4888
4898
  if ("onload" in l)
4889
4899
  l.onload = () => {
4890
- l.onload = null, l.onerror = null, o.status === q.Loading && (o.status = q.Loaded, t.progress.work(!0, t.index, i)), n.resolve();
4900
+ l.onload = null, l.onerror = null, o.status === B.Loading && (o.status = B.Loaded, t.progress.work(!0, t.index, i)), n.resolve();
4891
4901
  }, l.onerror = () => {
4892
4902
  try {
4893
4903
  s.removeChild(l);
4894
- } catch (f) {
4895
- console.error(f.message, f);
4904
+ } catch (h) {
4905
+ console.error(h.message, h);
4896
4906
  }
4897
4907
  l.onload = null, l.onerror = null, this.moduleManager.remove(i), t.progress.work(!1, t.index, null), n.resolve();
4898
4908
  };
4899
4909
  else {
4900
- const f = l;
4901
- f.onreadystatechange = () => {
4902
- /loaded|complete/.test(f.readyState) && (f.onreadystatechange = null, o.status == q.Loading && (o.status = q.Loaded, t.progress.work(!0, t.index, i)), n.resolve());
4910
+ const h = l;
4911
+ h.onreadystatechange = () => {
4912
+ /loaded|complete/.test(h.readyState) && (h.onreadystatechange = null, o.status == B.Loading && (o.status = B.Loaded, t.progress.work(!0, t.index, i)), n.resolve());
4903
4913
  };
4904
4914
  }
4905
4915
  l.defer = !0, l.src = i;
4906
- const c = $();
4916
+ const c = I();
4907
4917
  c.define = this.createDefine(o, t), s.appendChild(l);
4908
4918
  });
4909
4919
  }
@@ -4911,7 +4921,7 @@ class As {
4911
4921
  * 卸载资源
4912
4922
  */
4913
4923
  unmount(e, t = {}) {
4914
- const s = Be(), n = this.getFileNamePostfix(e);
4924
+ const s = Ge(), n = this.getFileNamePostfix(e);
4915
4925
  if (n === "js" || n.length === 0) {
4916
4926
  const i = s.querySelector(`script[src="${e}"]`);
4917
4927
  i && i.parentNode && i.parentNode.removeChild(i), this.moduleManager.remove(e);
@@ -4943,17 +4953,17 @@ class As {
4943
4953
  */
4944
4954
  createDefine(e, t) {
4945
4955
  const s = this, n = function(...i) {
4946
- e.status = q.Defining;
4956
+ e.status = B.Defining;
4947
4957
  let o, a, l, u = i.length;
4948
4958
  u === 1 ? (l = i[0], o = void 0) : u === 2 ? (l = i[1], Array.isArray(i[0]) ? (a = s.trimEmptyElement(i[0]), o = void 0) : a = void 0) : (o = i[0], a = s.trimEmptyElement(i[1]), l = i[2]), o && (e.id = o, s.options.alias[o] = e.src), a && a.length > 0 ? s.ensure(a, (...c) => {
4949
- const f = c.map((h) => h === "exports" ? ((!e.exports || typeof e.exports != "object") && (e.exports = {}), e.exports) : h === "module" ? e : h);
4959
+ const h = c.map((f) => f === "exports" ? ((!e.exports || typeof e.exports != "object") && (e.exports = {}), e.exports) : f === "module" ? e : f);
4950
4960
  if (typeof l == "function") {
4951
- const h = Reflect.apply(l, e, f);
4952
- h && typeof h == "object" && (e.exports = h);
4961
+ const f = Reflect.apply(l, e, h);
4962
+ f && typeof f == "object" && (e.exports = f);
4953
4963
  } else
4954
4964
  e.exports = l;
4955
- e.status = q.Defined, t.progress.work(!0, t.index, e.exports);
4956
- }) : (typeof l == "function" ? e.exports = Reflect.apply(l, e, []) : e.exports = l, e.status = q.Defined, t.progress.work(!0, t.index, e.exports));
4965
+ e.status = B.Defined, t.progress.work(!0, t.index, e.exports);
4966
+ }) : (typeof l == "function" ? e.exports = Reflect.apply(l, e, []) : e.exports = l, e.status = B.Defined, t.progress.work(!0, t.index, e.exports));
4957
4967
  };
4958
4968
  return n.amd = !0, n;
4959
4969
  }
@@ -5028,11 +5038,11 @@ class As {
5028
5038
  if (e.indexOf("http://") == 0 || e.indexOf("https://") == 0 || e.indexOf("file:///") == 0)
5029
5039
  return e;
5030
5040
  if (e.indexOf("/") == 0)
5031
- return `${wt()}${e.slice(1)}`;
5041
+ return `${bt()}${e.slice(1)}`;
5032
5042
  if (e.indexOf("./") == 0)
5033
- return `${wt()}${e.slice(2)}`;
5043
+ return `${bt()}${e.slice(2)}`;
5034
5044
  if (e.indexOf("//") == 0)
5035
- return `${$().location.protocol}${e}`;
5045
+ return `${I().location.protocol}${e}`;
5036
5046
  if (t) {
5037
5047
  let n = this.options.alias[e];
5038
5048
  if (!n) {
@@ -5046,7 +5056,7 @@ class As {
5046
5056
  }
5047
5057
  return this.parserPath(n, !1);
5048
5058
  }
5049
- return `${wt()}${e}`;
5059
+ return `${bt()}${e}`;
5050
5060
  }
5051
5061
  }
5052
5062
  function ir(r, e) {
@@ -5063,7 +5073,7 @@ function ir(r, e) {
5063
5073
  e.time += 20, s ? e.success() : e.timeout > e.timeout ? e.error() : ir(r, e);
5064
5074
  }, 20);
5065
5075
  }
5066
- class Ln {
5076
+ class Sn {
5067
5077
  /**
5068
5078
  * 回调函数
5069
5079
  */
@@ -5111,7 +5121,7 @@ class Ln {
5111
5121
  return this.status;
5112
5122
  }
5113
5123
  }
5114
- class kn {
5124
+ class Pn {
5115
5125
  /**
5116
5126
  * 索引
5117
5127
  */
@@ -5140,8 +5150,8 @@ class kn {
5140
5150
  }
5141
5151
  }
5142
5152
  const or = Symbol("fk"), lr = Symbol("fbk"), ar = Symbol("fepk");
5143
- function ti(r = {}) {
5144
- const e = new hn(r), t = new ls(), s = new cs(), n = new As(), i = {
5153
+ function Un(r = {}) {
5154
+ const e = new Zr(r), t = new ls(), s = new cs(), n = new Ts(), i = {
5145
5155
  /**
5146
5156
  * 返回router
5147
5157
  */
@@ -5176,13 +5186,13 @@ function ti(r = {}) {
5176
5186
  * 返回event chain类型
5177
5187
  */
5178
5188
  get EventChain() {
5179
- return ut;
5189
+ return ht;
5180
5190
  },
5181
5191
  /**
5182
5192
  * 返回Require构造函数
5183
5193
  */
5184
5194
  get Require() {
5185
- return As;
5195
+ return Ts;
5186
5196
  },
5187
5197
  /**
5188
5198
  * 返回require
@@ -5194,25 +5204,25 @@ function ti(r = {}) {
5194
5204
  * 返回extend
5195
5205
  */
5196
5206
  get extend() {
5197
- return E;
5207
+ return N;
5198
5208
  },
5199
5209
  /**
5200
5210
  * 返回clone
5201
5211
  */
5202
5212
  get clone() {
5203
- return Gt;
5213
+ return Xt;
5204
5214
  },
5205
5215
  /**
5206
5216
  * 判断是否为es模块
5207
5217
  */
5208
5218
  get isESModule() {
5209
- return Ts;
5219
+ return qs;
5210
5220
  },
5211
5221
  /**
5212
5222
  * 安装
5213
5223
  */
5214
5224
  install(o) {
5215
- o.provide(dt, e), o.provide(or, i), o.provide(lr, t), o.provide(ar, s), o.component(yn, Bt), o.component(dn, qn), Reflect.defineProperty(o.config.globalProperties, "$fox", {
5225
+ o.provide(gt, e), o.provide(or, i), o.provide(lr, t), o.provide(ar, s), o.component(en, zt), o.component(tn, xn), Reflect.defineProperty(o.config.globalProperties, "$fox", {
5216
5226
  get() {
5217
5227
  return i;
5218
5228
  }
@@ -5252,7 +5262,7 @@ function ti(r = {}) {
5252
5262
  computed: {
5253
5263
  //获取当前route
5254
5264
  $route() {
5255
- return Zt(this);
5265
+ return es(this);
5256
5266
  }
5257
5267
  }
5258
5268
  }), e.init();
@@ -5261,21 +5271,21 @@ function ti(r = {}) {
5261
5271
  return i;
5262
5272
  }
5263
5273
  function ur(r) {
5264
- return r ? r.$router : B(dt);
5274
+ return r ? r.$router : ne(gt);
5265
5275
  }
5266
- function si(r) {
5267
- return r || (r = Jt()?.proxy ?? void 0), r ? Zt(r) : null;
5276
+ function Vn(r) {
5277
+ return r || (r = Jt()?.proxy ?? void 0), r ? es(r) : null;
5268
5278
  }
5269
- function ri(r) {
5270
- return r ? r.$fox : B(or);
5279
+ function Bn(r) {
5280
+ return r ? r.$fox : ne(or);
5271
5281
  }
5272
- function ni(r) {
5273
- return r ? r.$bus : B(lr);
5282
+ function zn(r) {
5283
+ return r ? r.$bus : ne(lr);
5274
5284
  }
5275
- function ii(r) {
5276
- return r ? r.$eventProxy : B(ar);
5285
+ function Jn(r) {
5286
+ return r ? r.$eventProxy : ne(ar);
5277
5287
  }
5278
- function oi(r) {
5288
+ function Wn(r) {
5279
5289
  const e = ur(), t = (s, n, i) => {
5280
5290
  try {
5281
5291
  Reflect.apply(r, {}, [s, n]);
@@ -5284,11 +5294,11 @@ function oi(r) {
5284
5294
  }
5285
5295
  i();
5286
5296
  };
5287
- e.beforeEach(t), ht(() => {
5297
+ e.beforeEach(t), pt(() => {
5288
5298
  e.removeBeforeEach(t);
5289
5299
  });
5290
5300
  }
5291
- function li(r) {
5301
+ function Gn(r) {
5292
5302
  const e = ur(), t = (s, n, i) => {
5293
5303
  try {
5294
5304
  Reflect.apply(r, {}, [s, n]);
@@ -5297,61 +5307,61 @@ function li(r) {
5297
5307
  }
5298
5308
  i();
5299
5309
  };
5300
- e.afterEach(t), ht(() => {
5310
+ e.afterEach(t), pt(() => {
5301
5311
  e.removeAfterEach(t);
5302
5312
  });
5303
5313
  }
5304
5314
  export {
5305
5315
  ls as Bus,
5306
- ut as EventChain,
5316
+ ht as EventChain,
5307
5317
  cs as EventProxy,
5308
- qr as FoxBeforeEnter,
5309
- Lr as FoxBeforeLeave,
5310
- jr as FoxEnter,
5311
- kr as FoxLeave,
5312
- Ht as FoxLeaveEnd,
5313
- C as OperationType,
5314
- R as Route,
5315
- Gt as clone,
5316
- ti as createFox,
5317
- un as createMemoryHistory,
5318
- ln as createWebHashHistory,
5319
- ei as createWebHistory,
5320
- Qn as deleteContextValue,
5321
- E as extend,
5318
+ jr as FoxBeforeEnter,
5319
+ kr as FoxBeforeLeave,
5320
+ Lr as FoxEnter,
5321
+ Or as FoxLeave,
5322
+ Ut as FoxLeaveEnd,
5323
+ M as OperationType,
5324
+ L as Route,
5325
+ Xt as clone,
5326
+ Un as createFox,
5327
+ Xr as createMemoryHistory,
5328
+ Wr as createWebHashHistory,
5329
+ Hn as createWebHistory,
5330
+ In as deleteContextValue,
5331
+ N as extend,
5322
5332
  lr as foxBusKey,
5323
5333
  ar as foxEventProxyKey,
5324
5334
  or as foxKey,
5325
- Ds as injectContextValue,
5326
- Mn as isArray,
5327
- Dn as isDate,
5328
- Ts as isESModule,
5335
+ Vs as injectContextValue,
5336
+ Cn as isArray,
5337
+ Fn as isDate,
5338
+ qs as isESModule,
5329
5339
  ns as isEqual,
5330
- b as isFunction,
5331
- In as isMap,
5332
- yt as isNil,
5333
- gr as isObject,
5334
- wr as isPlainObject,
5335
- Vn as isPromise,
5336
- Nn as isSet,
5337
- Hn as isString,
5338
- Un as isSymbol,
5339
- li as onAfterRouteUpdate,
5340
- oi as onBeforeRouteUpdate,
5341
- Yn as onFoxActivated,
5342
- Zn as onFoxInactivated,
5343
- Xn as provideContextValue,
5344
- Gn as rawState,
5345
- zn as reactiveState,
5346
- le as sessionKey,
5347
- Wn as shallowReactiveState,
5348
- _s as toBoolean,
5349
- Bn as toNumber,
5350
- Wt as toTypeString,
5340
+ q as isFunction,
5341
+ En as isMap,
5342
+ mt as isNil,
5343
+ vr as isObject,
5344
+ br as isPlainObject,
5345
+ Kn as isPromise,
5346
+ An as isSet,
5347
+ Tn as isString,
5348
+ _n as isSymbol,
5349
+ Gn as onAfterRouteUpdate,
5350
+ Wn as onBeforeRouteUpdate,
5351
+ Nn as onFoxActivated,
5352
+ Dn as onFoxInactivated,
5353
+ Mn as provideContextValue,
5354
+ On as rawState,
5355
+ Ln as reactiveState,
5356
+ ge as sessionKey,
5357
+ kn as shallowReactiveState,
5358
+ js as toBoolean,
5359
+ qn as toNumber,
5360
+ Gt as toTypeString,
5351
5361
  rs as typeOf,
5352
- ni as useBus,
5353
- ii as useEventProxy,
5354
- ri as useFox,
5355
- si as useRoute,
5362
+ zn as useBus,
5363
+ Jn as useEventProxy,
5364
+ Bn as useFox,
5365
+ Vn as useRoute,
5356
5366
  ur as useRouter
5357
5367
  };