@fox-js/fox 3.0.1-34 → 3.0.1-35

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,6 +1,6 @@
1
- import { ref as wr, getCurrentInstance as Mt, onUnmounted as ot, shallowRef as Wr, defineComponent as br, inject as G, provide as se, h as he } from "vue";
1
+ import { ref as gr, getCurrentInstance as Lt, onUnmounted as ot, shallowRef as Wr, defineComponent as wr, inject as G, provide as se, h as he } from "vue";
2
2
  /*!
3
- * fox v3.0.0 Thu Nov 30 2023 15:24:17 GMT+0800 (中国标准时间)
3
+ * fox v3.0.0 Fri Jan 05 2024 00:02:58 GMT+0800 (中国标准时间)
4
4
  */
5
5
  const Ae = typeof window < "u", $ = function() {
6
6
  return window;
@@ -23,8 +23,8 @@ function Tt(s, e, t) {
23
23
  function $t(s, e, t) {
24
24
  s.removeEventListener ? s.removeEventListener(e, t) : s.detachEvent ? s.detachEvent(`on${e}`, t) : s[`on${e}`] = null;
25
25
  }
26
- const ln = Array.isArray, an = (s) => Nt(s) === "[object Map]", un = (s) => Nt(s) === "[object Set]", fn = (s) => s instanceof Date, x = (s) => typeof s == "function", cn = (s) => typeof s == "string", hn = (s) => typeof s == "symbol", Jr = (s) => s !== null && typeof s == "object", yn = (s) => Jr(s) && x(s.then) && x(s.catch), Gr = (s) => s == null, Qr = Object.prototype.toString, Nt = (s) => Qr.call(s), Xr = (s) => Nt(s) === "[object Object]", Yr = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol";
27
- function xr(s) {
26
+ const ln = Array.isArray, an = (s) => Mt(s) === "[object Map]", un = (s) => Mt(s) === "[object Set]", fn = (s) => s instanceof Date, x = (s) => typeof s == "function", cn = (s) => typeof s == "string", hn = (s) => typeof s == "symbol", Jr = (s) => s !== null && typeof s == "object", yn = (s) => Jr(s) && x(s.then) && x(s.catch), Gr = (s) => s == null, Qr = Object.prototype.toString, Mt = (s) => Qr.call(s), Xr = (s) => Mt(s) === "[object Object]", Yr = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol";
27
+ function br(s) {
28
28
  return s.__esModule || Yr && s[Symbol.toStringTag] === "Module";
29
29
  }
30
30
  const Zr = typeof Promise < "u" && Promise.toString().indexOf("[native code]") !== -1;
@@ -45,7 +45,7 @@ function q(...s) {
45
45
  }
46
46
  return e;
47
47
  }
48
- function It(s, e, t = !1) {
48
+ function Nt(s, e, t = !1) {
49
49
  if (!t)
50
50
  q(!0, s, e);
51
51
  else {
@@ -58,7 +58,7 @@ function It(s, e, t = !1) {
58
58
  if (typeof i == "object") {
59
59
  if (!Array.isArray(i) && !Xr(i))
60
60
  continue;
61
- n = It(n, i, t), s[r] = n;
61
+ n = Nt(n, i, t), s[r] = n;
62
62
  } else {
63
63
  if (typeof i == "function")
64
64
  continue;
@@ -89,7 +89,7 @@ function He(s, ...e) {
89
89
  s(e);
90
90
  }) : setTimeout(s);
91
91
  }
92
- function Rr(s) {
92
+ function xr(s) {
93
93
  return s == null ? !1 : typeof s == "boolean" ? s : typeof s == "string" ? s.toLocaleLowerCase() === "true" : !!s;
94
94
  }
95
95
  function dn(s) {
@@ -105,16 +105,16 @@ const es = {
105
105
  "[object RegExp]": "regExp",
106
106
  "[object Object]": "object"
107
107
  };
108
- function zt(s) {
108
+ function Wt(s) {
109
109
  let t = Object.prototype.toString.call(s);
110
110
  return s == null ? String(s) : es[t] || "object";
111
111
  }
112
- function Jt(s, e) {
112
+ function zt(s, e) {
113
113
  if (s == e)
114
114
  return !0;
115
115
  if (s === void 0 || e === void 0)
116
116
  return !1;
117
- let t = zt(s), r = zt(e);
117
+ let t = Wt(s), r = Wt(e);
118
118
  if (t !== r)
119
119
  return !1;
120
120
  if (t === "object") {
@@ -123,7 +123,7 @@ function Jt(s, e) {
123
123
  return !1;
124
124
  for (let o = 0; o < n.length; o++) {
125
125
  let a = n[o], l = s[a], u = e[a];
126
- if (!Jt(l, u))
126
+ if (!zt(l, u))
127
127
  return !1;
128
128
  }
129
129
  return !0;
@@ -132,25 +132,25 @@ function Jt(s, e) {
132
132
  return !1;
133
133
  for (let n = 0; n < s.length; n++) {
134
134
  let i = s[n], o = e[n];
135
- if (!Jt(i, o))
135
+ if (!zt(i, o))
136
136
  return !1;
137
137
  }
138
138
  return !0;
139
139
  }
140
140
  return !1;
141
141
  }
142
- const Sr = (s) => {
142
+ const Rr = (s) => {
143
143
  const e = {};
144
144
  for (let t of Reflect.ownKeys(s)) {
145
145
  let r = s[t];
146
- r && !Array.isArray(r) && typeof r == "object" && (r = Sr(r)), typeof t == "symbol" ? e[String(t)] = r : e[t] = r;
146
+ r && !Array.isArray(r) && typeof r == "object" && (r = Rr(r)), typeof t == "symbol" ? e[String(t)] = r : e[t] = r;
147
147
  }
148
148
  return e;
149
- }, ts = /^Symbol\((.*)\)$/, Pr = (s) => {
149
+ }, ts = /^Symbol\((.*)\)$/, Sr = (s) => {
150
150
  const e = {};
151
151
  for (let t of Reflect.ownKeys(s)) {
152
152
  let r = s[t];
153
- r && !Array.isArray(r) && typeof r == "object" && (r = Pr(r));
153
+ r && !Array.isArray(r) && typeof r == "object" && (r = Sr(r));
154
154
  const n = ts.exec(t);
155
155
  if (n && n[1]) {
156
156
  const i = Symbol.for(n[1]);
@@ -159,8 +159,8 @@ const Sr = (s) => {
159
159
  e[t] = r;
160
160
  }
161
161
  return e;
162
- }, Gt = Symbol("idKey"), pe = Symbol("valueKey"), R = Symbol("childrenKey"), Q = Symbol("growKey");
163
- class Cr {
162
+ }, Jt = Symbol("idKey"), pe = Symbol("valueKey"), R = Symbol("childrenKey"), Q = Symbol("growKey");
163
+ class Pr {
164
164
  /**
165
165
  * 自动创建解决策略
166
166
  */
@@ -168,11 +168,11 @@ class Cr {
168
168
  /**
169
169
  * id
170
170
  */
171
- [Gt];
171
+ [Jt];
172
172
  /**
173
173
  * value
174
174
  */
175
- [pe] = wr();
175
+ [pe] = gr();
176
176
  /**
177
177
  * children
178
178
  */
@@ -182,7 +182,7 @@ class Cr {
182
182
  * @param id
183
183
  */
184
184
  constructor(e) {
185
- this[Gt] = e;
185
+ this[Jt] = e;
186
186
  }
187
187
  }
188
188
  class rs {
@@ -200,7 +200,7 @@ class rs {
200
200
  if (r)
201
201
  return De(r);
202
202
  if (e[Q])
203
- return r = Dt(t), r[Q] = e[Q], e[R].set(t, r), De(r);
203
+ return r = Ht(t), r[Q] = e[Q], e[R].set(t, r), De(r);
204
204
  }
205
205
  /**
206
206
  * 拦截set操作
@@ -210,7 +210,7 @@ class rs {
210
210
  * @returns
211
211
  */
212
212
  set(e, t, r) {
213
- return t == "value" ? (e[pe].value = r, !0) : t === "grow" ? (e[Q] = Rr(r), !0) : r == null ? (e[R].delete(t), !0) : (console.error(`illegal property:${t}`), !1);
213
+ return t == "value" ? (e[pe].value = r, !0) : t === "grow" ? (e[Q] = xr(r), !0) : r == null ? (e[R].delete(t), !0) : (console.error(`illegal property:${t}`), !1);
214
214
  }
215
215
  /**
216
216
  * 拦截删除property属性
@@ -222,13 +222,13 @@ class rs {
222
222
  return t === "value" || t == "grow" ? (console.error(`can not delete property:${String(t)}`), !1) : (e[R].delete(t), !0);
223
223
  }
224
224
  }
225
- const Ht = "__proxy__";
226
- function Dt(s) {
227
- const e = new Cr(s);
228
- return Reflect.set(e, Ht, new Proxy(e, new rs())), e;
225
+ const It = "__proxy__";
226
+ function Ht(s) {
227
+ const e = new Pr(s);
228
+ return Reflect.set(e, It, new Proxy(e, new rs())), e;
229
229
  }
230
230
  function De(s) {
231
- return Reflect.get(s, Ht);
231
+ return Reflect.get(s, It);
232
232
  }
233
233
  class ss {
234
234
  /**
@@ -365,7 +365,7 @@ class ss {
365
365
  }
366
366
  }
367
367
  }
368
- class Ar extends Cr {
368
+ class Cr extends Pr {
369
369
  /**
370
370
  * 持久化处理器
371
371
  */
@@ -388,7 +388,7 @@ class Ar extends Cr {
388
388
  let r = this;
389
389
  for (let n = 0; n < t - 1; n++) {
390
390
  let i = e[n], o;
391
- r[R].has(i) ? o = r[R].get(i) : (o = Dt(i), r[R].set(i, o)), r = o;
391
+ r[R].has(i) ? o = r[R].get(i) : (o = Ht(i), r[R].set(i, o)), r = o;
392
392
  }
393
393
  return r[pe].value = e[t - 1], this._persistHandler.put(e), !0;
394
394
  }
@@ -459,7 +459,7 @@ class Ar extends Cr {
459
459
  }
460
460
  }
461
461
  const ns = ["put", "get", "contains", "remove", "clear", "_persistHandler"];
462
- function Qt(s) {
462
+ function Gt(s) {
463
463
  return ns.includes(s);
464
464
  }
465
465
  class is {
@@ -475,13 +475,13 @@ class is {
475
475
  return e[Q];
476
476
  if (t === R)
477
477
  return e[R];
478
- if (typeof t == "string" && Qt(t))
478
+ if (typeof t == "string" && Gt(t))
479
479
  return e[t];
480
480
  let r = String(t), n = e[R].get(r);
481
481
  if (n)
482
482
  return De(n);
483
483
  if (e[Q])
484
- return n = Dt(r), n[Q] = e[Q], e[R].set(r, n), De(n);
484
+ return n = Ht(r), n[Q] = e[Q], e[R].set(r, n), De(n);
485
485
  }
486
486
  /**
487
487
  * 拦截set操作
@@ -491,7 +491,7 @@ class is {
491
491
  * @returns
492
492
  */
493
493
  set(e, t, r) {
494
- return t == "value" ? (e[pe].value = r, !0) : t === "grow" ? (e[Q] = Rr(r), !0) : Qt(t) ? !1 : r == null ? (e[R].delete(t), !0) : (console.error(`illegal property:${t}`), !1);
494
+ return t == "value" ? (e[pe].value = r, !0) : t === "grow" ? (e[Q] = xr(r), !0) : Gt(t) ? !1 : r == null ? (e[R].delete(t), !0) : (console.error(`illegal property:${t}`), !1);
495
495
  }
496
496
  /**
497
497
  * 拦截删除property属性
@@ -504,10 +504,10 @@ class is {
504
504
  }
505
505
  }
506
506
  function os(s) {
507
- const e = new Ar(s), t = new is(), r = new Proxy(e, t);
508
- return Reflect.set(e, Ht, r), e;
507
+ const e = new Cr(s), t = new is(), r = new Proxy(e, t);
508
+ return Reflect.set(e, It, r), e;
509
509
  }
510
- const Xt = new Proxy(Ar, {
510
+ const Qt = new Proxy(Cr, {
511
511
  /**
512
512
  * 拦截构造函数
513
513
  * @param target
@@ -518,8 +518,8 @@ const Xt = new Proxy(Ar, {
518
518
  const t = os(e[0] ?? {});
519
519
  return De(t);
520
520
  }
521
- }), te = "default", Er = Symbol("sync"), I = Symbol("resolveRoute");
522
- function Yt(s) {
521
+ }), te = "default", Ar = Symbol("sync"), I = Symbol("resolveRoute");
522
+ function Xt(s) {
523
523
  let e = !1;
524
524
  return function(...t) {
525
525
  if (!e)
@@ -529,9 +529,9 @@ function Yt(s) {
529
529
  function ls(s) {
530
530
  let e = s.src;
531
531
  return new Promise((t, r) => {
532
- const n = Yt((a) => {
533
- xr(a) && (a = a.default), s.component = a, console.debug("success load async module"), t();
534
- }), i = Yt((a) => {
532
+ const n = Xt((a) => {
533
+ br(a) && (a = a.default), s.component = a, console.debug("success load async module"), t();
534
+ }), i = Xt((a) => {
535
535
  console.debug("reject load async module"), r(a);
536
536
  });
537
537
  let o;
@@ -706,7 +706,7 @@ class S {
706
706
  */
707
707
  static clone(e, t) {
708
708
  let r = new S();
709
- return It(r, e, t), r;
709
+ return Nt(r, e, t), r;
710
710
  }
711
711
  /**
712
712
  * 判断路由是否相同
@@ -796,7 +796,7 @@ class us {
796
796
  return ls(this);
797
797
  }
798
798
  }
799
- class Zt {
799
+ class Yt {
800
800
  /**
801
801
  * 节点
802
802
  */
@@ -1042,7 +1042,7 @@ class fs {
1042
1042
  this.callback = e, this.policy = t;
1043
1043
  }
1044
1044
  }
1045
- class er {
1045
+ class Zt {
1046
1046
  /**
1047
1047
  * 注册表
1048
1048
  */
@@ -1217,7 +1217,7 @@ function nt(s, e = !1) {
1217
1217
  }
1218
1218
  return null;
1219
1219
  }
1220
- function Fr(s, e = !1) {
1220
+ function Er(s, e = !1) {
1221
1221
  let t = null, r = s;
1222
1222
  for (; r && !(Reflect.has(r, de) && (t = r[de], t)); )
1223
1223
  r = r.$parent;
@@ -1227,7 +1227,7 @@ function Fr(s, e = !1) {
1227
1227
  }
1228
1228
  return t;
1229
1229
  }
1230
- function _r(s, e) {
1230
+ function Fr(s, e) {
1231
1231
  let t = s;
1232
1232
  for (; t; ) {
1233
1233
  if (Reflect.has(t, de)) {
@@ -1240,12 +1240,12 @@ function _r(s, e) {
1240
1240
  return null;
1241
1241
  }
1242
1242
  function pn(s, e, t) {
1243
- Fr(s, !0)?.set(e, t);
1243
+ Er(s, !0)?.set(e, t);
1244
1244
  }
1245
1245
  function mn(s, e) {
1246
- Fr(s, !0)?.delete(e);
1246
+ Er(s, !0)?.delete(e);
1247
1247
  }
1248
- function tr(s) {
1248
+ function er(s) {
1249
1249
  if (Array.isArray(s.children) && s.children.length > 0) {
1250
1250
  let e = s.children[0];
1251
1251
  if (e != null && e.component != null && e.component.proxy != null)
@@ -1258,7 +1258,7 @@ function hs(s) {
1258
1258
  let e = s.get(it);
1259
1259
  e || (e = [], s.set(it, e));
1260
1260
  }
1261
- function rr(s, e) {
1261
+ function tr(s, e) {
1262
1262
  let t = s.get(it);
1263
1263
  if (t != null)
1264
1264
  for (let r = t.length - 1; r >= 0; r--) {
@@ -1310,22 +1310,22 @@ function ps(s, e, t, r) {
1310
1310
  }
1311
1311
  return n != -1 ? (s.splice(n, 1), !0) : !1;
1312
1312
  }
1313
- function Kr(s) {
1313
+ function _r(s) {
1314
1314
  return (e, t) => {
1315
1315
  let r;
1316
1316
  if (t)
1317
1317
  r = t;
1318
1318
  else {
1319
- const i = Mt();
1319
+ const i = Lt();
1320
1320
  if (i == null || i.proxy == null) {
1321
1321
  console.error("can not get current instance or proxy");
1322
1322
  return;
1323
1323
  }
1324
1324
  r = i.proxy;
1325
1325
  }
1326
- const n = _r(r, it);
1326
+ const n = Fr(r, it);
1327
1327
  if (n == null) {
1328
- console.warn("can not get hooks context");
1328
+ console.warn("hooks context not found");
1329
1329
  return;
1330
1330
  }
1331
1331
  ot(() => {
@@ -1333,21 +1333,21 @@ function Kr(s) {
1333
1333
  }), ds(n, s, e, r);
1334
1334
  };
1335
1335
  }
1336
- const vn = Kr(
1336
+ const vn = _r(
1337
1337
  "a"
1338
1338
  /* ACTIVATED */
1339
- ), gn = Kr(
1339
+ ), gn = _r(
1340
1340
  "da"
1341
1341
  /* DEACTIVATED */
1342
- ), jt = Symbol("routeKey");
1343
- function sr(s, e) {
1344
- s.set(jt, e);
1342
+ ), Kr = Symbol("routeKey");
1343
+ function rr(s, e) {
1344
+ s.set(Kr, e);
1345
1345
  }
1346
- function Vt(s) {
1347
- let e = _r(s, jt);
1346
+ function Dt(s) {
1347
+ let e = Fr(s, Kr);
1348
1348
  return typeof e == "function" ? e() : e ?? null;
1349
1349
  }
1350
- const lt = Symbol("rk"), dt = Symbol("vd"), nr = Symbol("rv"), pt = Symbol("rvi"), ir = Symbol("pv"), mt = Symbol("pvi");
1350
+ const lt = Symbol("rk"), dt = Symbol("vd"), sr = Symbol("rv"), pt = Symbol("rvi"), nr = Symbol("pv"), mt = Symbol("pvi");
1351
1351
  function ms(s) {
1352
1352
  for (var e = [], t = 0; t < s.length; ) {
1353
1353
  var r = s[t];
@@ -1471,7 +1471,7 @@ function vs(s, e) {
1471
1471
  }
1472
1472
  function gs(s, e) {
1473
1473
  e === void 0 && (e = {});
1474
- var t = Bt(e), r = e.encode, n = r === void 0 ? function(l) {
1474
+ var t = Vt(e), r = e.encode, n = r === void 0 ? function(l) {
1475
1475
  return l;
1476
1476
  } : r, i = e.validate, o = i === void 0 ? !0 : i, a = s.map(function(l) {
1477
1477
  if (typeof l == "object")
@@ -1544,7 +1544,7 @@ function bs(s, e, t) {
1544
1544
  function Re(s) {
1545
1545
  return s.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
1546
1546
  }
1547
- function Bt(s) {
1547
+ function Vt(s) {
1548
1548
  return s && s.sensitive ? "" : "i";
1549
1549
  }
1550
1550
  function xs(s, e) {
@@ -1565,7 +1565,7 @@ function Rs(s, e, t) {
1565
1565
  var r = s.map(function(n) {
1566
1566
  return $r(n, e, t).source;
1567
1567
  });
1568
- return new RegExp("(?:".concat(r.join("|"), ")"), Bt(t));
1568
+ return new RegExp("(?:".concat(r.join("|"), ")"), Vt(t));
1569
1569
  }
1570
1570
  function Ss(s, e, t) {
1571
1571
  return Ps(Tr(s, t), e, t);
@@ -1599,7 +1599,7 @@ function Ps(s, e, t) {
1599
1599
  var C = s[s.length - 1], U = typeof C == "string" ? p.indexOf(C[C.length - 1]) > -1 : C === void 0;
1600
1600
  n || (v += "(?:".concat(p, "(?=").concat(m, "))?")), U || (v += "(?=".concat(p, "|").concat(m, ")"));
1601
1601
  }
1602
- return new RegExp(v, Bt(t));
1602
+ return new RegExp(v, Vt(t));
1603
1603
  }
1604
1604
  function $r(s, e, t) {
1605
1605
  return s instanceof RegExp ? xs(s, e) : Array.isArray(s) ? Rs(s, e, t) : Ss(s, e, t);
@@ -1784,7 +1784,7 @@ class Es {
1784
1784
  }
1785
1785
  }
1786
1786
  const Se = Symbol("_notifyChange");
1787
- class or {
1787
+ class ir {
1788
1788
  //当前路由
1789
1789
  currentRoute;
1790
1790
  //当前页面的路由集合
@@ -1798,11 +1798,11 @@ class or {
1798
1798
  this.currentRoute = e, this.routes = t;
1799
1799
  }
1800
1800
  }
1801
- const ue = Symbol("historyChangeConsumerKey"), lr = Symbol("_navigateFirstRoute"), ke = Symbol("_getRouteMark"), gt = Symbol("_getUrlSearch"), wt = Symbol("_generateLocation"), Te = Symbol("_setRouteMarkRecorder"), $e = Symbol("beforeRestoreFiltersKey"), ar = Symbol("_beforeRestore"), ur = "Symbol(_fox_restore_point)";
1801
+ const ue = Symbol("historyChangeConsumerKey"), or = Symbol("_navigateFirstRoute"), ke = Symbol("_getRouteMark"), gt = Symbol("_getUrlSearch"), wt = Symbol("_generateLocation"), Te = Symbol("_setRouteMarkRecorder"), $e = Symbol("beforeRestoreFiltersKey"), lr = Symbol("_beforeRestore"), ar = "Symbol(_fox_restore_point)";
1802
1802
  function qe(s, ...e) {
1803
1803
  return typeof s == "function" ? Reflect.apply(s, null, [...e]) : s;
1804
1804
  }
1805
- function fr(s) {
1805
+ function ur(s) {
1806
1806
  if (!Array.isArray(s))
1807
1807
  return !1;
1808
1808
  if (s.length === 0)
@@ -1901,7 +1901,7 @@ class qr {
1901
1901
  } catch {
1902
1902
  }
1903
1903
  }
1904
- }), Tt(t, "popstate", this.historyChange), this.firstNavigate && e && this[lr](), Promise.resolve();
1904
+ }), Tt(t, "popstate", this.historyChange), this.firstNavigate && e && this[or](), Promise.resolve();
1905
1905
  }
1906
1906
  /**
1907
1907
  * 销毁
@@ -1919,7 +1919,7 @@ class qr {
1919
1919
  * @param mark
1920
1920
  * @param routes
1921
1921
  */
1922
- [ar](e, t, r, n) {
1922
+ [lr](e, t, r, n) {
1923
1923
  for (let i of this[$e])
1924
1924
  try {
1925
1925
  const o = Reflect.apply(i, {}, [e, t, r, n]);
@@ -1949,13 +1949,13 @@ class qr {
1949
1949
  /**
1950
1950
  * 导航到第一个route
1951
1951
  */
1952
- [lr]() {
1953
- const e = this[ke]() ?? "/", t = this.storage.getItem(ur);
1952
+ [or]() {
1953
+ const e = this[ke]() ?? "/", t = this.storage.getItem(ar);
1954
1954
  if (t)
1955
1955
  try {
1956
1956
  const o = JSON.parse(t);
1957
1957
  if (o.mark === e && Array.isArray(o.routes) && o.routes.length > 0) {
1958
- const a = o.routes.filter((l, u) => (l.params = l.params ? Pr(l.params) : {}, this[ar](l, u, e, o.routes)));
1958
+ const a = o.routes.filter((l, u) => (l.params = l.params ? Sr(l.params) : {}, this[lr](l, u, e, o.routes)));
1959
1959
  if (a.length > 0) {
1960
1960
  const l = this[gt](), u = a.length - 1;
1961
1961
  a[u].query = l || a[u].query, this[Se](a);
@@ -1978,13 +1978,13 @@ class qr {
1978
1978
  [Te](e, t) {
1979
1979
  try {
1980
1980
  t.forEach((i) => {
1981
- i.params = i.params ? Sr(i.params) : {};
1981
+ i.params = i.params ? Rr(i.params) : {};
1982
1982
  });
1983
1983
  const n = JSON.stringify({
1984
1984
  mark: e,
1985
1985
  routes: t
1986
1986
  });
1987
- this.storage.setItem(ur, n);
1987
+ this.storage.setItem(ar, n);
1988
1988
  } catch (r) {
1989
1989
  console.error(r.message, r);
1990
1990
  }
@@ -2049,7 +2049,7 @@ class qr {
2049
2049
  */
2050
2050
  goBack(e, t) {
2051
2051
  const r = $(), n = r.history.state;
2052
- if (fr(n) && n.length > 0) {
2052
+ if (ur(n) && n.length > 0) {
2053
2053
  let i = !1;
2054
2054
  for (let f = n.length - 1; f >= 0; f--) {
2055
2055
  const c = S.from(n[f]);
@@ -2069,7 +2069,7 @@ class qr {
2069
2069
  }, u = () => {
2070
2070
  clearTimeout(a);
2071
2071
  const c = $().history.state;
2072
- if (fr(c) && c.length > 0) {
2072
+ if (ur(c) && c.length > 0) {
2073
2073
  let h = c.length;
2074
2074
  const y = c[h - 1], d = S.from(y);
2075
2075
  if (S.isSame(d, e))
@@ -2291,7 +2291,7 @@ class _s {
2291
2291
  function Ks(s = "", e = 50) {
2292
2292
  return new _s(s, e);
2293
2293
  }
2294
- const Ue = Symbol("_constructRouteModel"), We = Symbol("_findRouteModel"), bt = Symbol("_findRootView"), cr = Symbol("_getFirstView"), fe = Symbol("_removeView"), hr = Symbol("_buildPage"), yr = Symbol("_resolveComponent"), dr = Symbol("_update"), ie = Symbol("_merge"), xt = Symbol("_handleHistoryChange"), ze = Symbol("_handleRouteUpdated"), Je = Symbol("routeUpdatedCallback"), w = Symbol("currentRoutes"), ge = Symbol("current"), pr = Symbol("_addRouteRecorder"), je = Symbol("_removeRouteRecorder"), Ge = Symbol("_cloneRouteRecorder"), j = Symbol("_handleError"), Qe = Symbol("errorCallback"), B = Symbol("registerKey"), Xe = Symbol("notFoundKey"), Rt = Symbol("notFoundPathKey"), k = Symbol("forestKey"), A = Symbol("historyKey"), Oe = Symbol("beforeFiltersKey"), Le = Symbol("afterFiltersKey"), Me = Symbol("destroyFiltersKey"), St = Symbol("propsFilterKey"), we = Symbol("mainDispatcherKey"), Pt = Symbol("initKey"), ce = Symbol("readyKey"), Ct = Symbol("readyHandlersKey"), Ye = Symbol("_markReady"), mr = Symbol("_createNextFn"), At = Symbol("_start"), Et = Symbol("_before"), Ft = Symbol("_after"), vr = Symbol("_destroy"), _t = Symbol("_load"), Ne = Symbol("_unload"), Ie = Symbol("routerGuardKey");
2294
+ const Ue = Symbol("_constructRouteModel"), We = Symbol("_findRouteModel"), bt = Symbol("_findRootView"), fr = Symbol("_getFirstView"), fe = Symbol("_removeView"), cr = Symbol("_buildPage"), hr = Symbol("_resolveComponent"), yr = Symbol("_update"), ie = Symbol("_merge"), xt = Symbol("_handleHistoryChange"), ze = Symbol("_handleRouteUpdated"), Je = Symbol("routeUpdatedCallback"), w = Symbol("currentRoutes"), ge = Symbol("current"), dr = Symbol("_addRouteRecorder"), je = Symbol("_removeRouteRecorder"), Ge = Symbol("_cloneRouteRecorder"), j = Symbol("_handleError"), Qe = Symbol("errorCallback"), B = Symbol("registerKey"), Xe = Symbol("notFoundKey"), Rt = Symbol("notFoundPathKey"), k = Symbol("forestKey"), A = Symbol("historyKey"), Oe = Symbol("beforeFiltersKey"), Le = Symbol("afterFiltersKey"), Me = Symbol("destroyFiltersKey"), St = Symbol("propsFilterKey"), we = Symbol("mainDispatcherKey"), Pt = Symbol("initKey"), ce = Symbol("readyKey"), Ct = Symbol("readyHandlersKey"), Ye = Symbol("_markReady"), pr = Symbol("_createNextFn"), At = Symbol("_start"), Et = Symbol("_before"), Ft = Symbol("_after"), mr = Symbol("_destroy"), _t = Symbol("_load"), Ne = Symbol("_unload"), Ie = Symbol("routerGuardKey");
2295
2295
  function Ts(s) {
2296
2296
  return s.layers.length == 0 || s.layers[0].views.length == 0;
2297
2297
  }
@@ -2380,7 +2380,7 @@ class qs {
2380
2380
  /**
2381
2381
  * 当前最新路由
2382
2382
  */
2383
- [ge] = wr(null);
2383
+ [ge] = gr(null);
2384
2384
  /**
2385
2385
  * 获取当前最新route
2386
2386
  */
@@ -2505,7 +2505,7 @@ class qs {
2505
2505
  * 加入路由记录
2506
2506
  * @param route
2507
2507
  */
2508
- [pr](e) {
2508
+ [dr](e) {
2509
2509
  if (e.opsType === T.Open) {
2510
2510
  let t = !1;
2511
2511
  const r = this[w].length - 1;
@@ -2551,7 +2551,7 @@ class qs {
2551
2551
  }
2552
2552
  if (t != -1) {
2553
2553
  let r = this[w][t];
2554
- this[w].splice(t, 1), this[vr](r, r.session);
2554
+ this[w].splice(t, 1), this[mr](r, r.session);
2555
2555
  }
2556
2556
  }
2557
2557
  /**
@@ -2777,12 +2777,12 @@ class qs {
2777
2777
  for (let u of l) {
2778
2778
  let f = new ht();
2779
2779
  f.name = u.name, u.path && u.path.length > 0 ? t !== "/" ? f.path = `${t}${u.path}` : f.path = u.path : (i = !0, f.path = t);
2780
- let c = new Zt();
2780
+ let c = new Yt();
2781
2781
  c.models = [...n], f.layers = [c, ...u.layers], o.push(f);
2782
2782
  }
2783
2783
  }
2784
2784
  if (!i) {
2785
- const a = new Zt();
2785
+ const a = new Yt();
2786
2786
  a.models = n;
2787
2787
  const l = new ht();
2788
2788
  l.name = e.name, l.path = t, l.layers = [a], o.splice(0, 0, l);
@@ -2932,7 +2932,7 @@ class qs {
2932
2932
  }
2933
2933
  } else {
2934
2934
  o = te;
2935
- let u = this[cr](this[k]);
2935
+ let u = this[fr](this[k]);
2936
2936
  u && (o = u.name);
2937
2937
  for (let f = this[w].length - 1; f > 0; f--) {
2938
2938
  let c = this[w][f];
@@ -3029,7 +3029,7 @@ class qs {
3029
3029
  if (o.session.updateResult && o.session.updateResult.status === "success")
3030
3030
  try {
3031
3031
  let u = S.clone(l, !0);
3032
- const f = new or(u, this[Ge]());
3032
+ const f = new ir(u, this[Ge]());
3033
3033
  l.opsType === T.Replace ? this[A]?.replace(f) : this[A]?.push(f);
3034
3034
  } catch (u) {
3035
3035
  console.error(u.message, u);
@@ -3061,7 +3061,7 @@ class qs {
3061
3061
  /**
3062
3062
  * 创建next函数
3063
3063
  */
3064
- [mr](e) {
3064
+ [pr](e) {
3065
3065
  return (t, r) => {
3066
3066
  if (typeof t == "boolean")
3067
3067
  e.session.redirect = !1, t ? e.resolve() : e.reject(r ?? null);
@@ -3097,7 +3097,7 @@ class qs {
3097
3097
  [Et](e) {
3098
3098
  for (let t of this[Oe])
3099
3099
  e.post((r) => {
3100
- const n = this[mr](r);
3100
+ const n = this[pr](r);
3101
3101
  Reflect.apply(t, {}, [r.session.to, r.session.from, n, r.session]);
3102
3102
  });
3103
3103
  }
@@ -3121,7 +3121,7 @@ class qs {
3121
3121
  * @param route
3122
3122
  * @param session
3123
3123
  */
3124
- [vr](e, t) {
3124
+ [mr](e, t) {
3125
3125
  for (let r of this[Me])
3126
3126
  try {
3127
3127
  Reflect.apply(r, {}, [e, t]);
@@ -3154,7 +3154,7 @@ class qs {
3154
3154
  }
3155
3155
  }
3156
3156
  let i = rt.from(t.session);
3157
- this[hr](r, n, i).then(
3157
+ this[cr](r, n, i).then(
3158
3158
  (o) => {
3159
3159
  this[k], t.session.updateResult = o ?? {
3160
3160
  status: "success",
@@ -3213,7 +3213,7 @@ class qs {
3213
3213
  * 查找first view
3214
3214
  * @param page
3215
3215
  */
3216
- [cr](e) {
3216
+ [fr](e) {
3217
3217
  return e.layers.length > 0 && e.layers[0].views.length > 0 ? e.layers[0].views[0] : null;
3218
3218
  }
3219
3219
  /**
@@ -3291,7 +3291,7 @@ class qs {
3291
3291
  }
3292
3292
  this[we].post((a) => {
3293
3293
  if (i && o === !0) {
3294
- const l = S.clone(i, !0), u = new or(l, this[Ge]());
3294
+ const l = S.clone(i, !0), u = new ir(l, this[Ge]());
3295
3295
  this[A]?.replace(u);
3296
3296
  }
3297
3297
  a.resolve(), r();
@@ -3304,10 +3304,10 @@ class qs {
3304
3304
  * @param routeModel
3305
3305
  * @returns
3306
3306
  */
3307
- [hr](e, t, r) {
3307
+ [cr](e, t, r) {
3308
3308
  const n = e.updateType ?? Ze.Part;
3309
- return this[yr](t).then(() => {
3310
- const o = this[dr](t, e, r, n);
3309
+ return this[hr](t).then(() => {
3310
+ const o = this[yr](t, e, r, n);
3311
3311
  if (o.status === "error")
3312
3312
  throw Error(o.message);
3313
3313
  return o;
@@ -3316,7 +3316,7 @@ class qs {
3316
3316
  /**
3317
3317
  * 解析组件
3318
3318
  */
3319
- [yr](e) {
3319
+ [hr](e) {
3320
3320
  let t = [];
3321
3321
  for (let r = 0; r < e.layers.length; r++) {
3322
3322
  let n = e.layers[r];
@@ -3335,7 +3335,7 @@ class qs {
3335
3335
  * @param updateType
3336
3336
  * @returns
3337
3337
  */
3338
- [dr](e, t, r, n) {
3338
+ [yr](e, t, r, n) {
3339
3339
  if (e.layers[0].models.length !== 1)
3340
3340
  return {
3341
3341
  status: "error",
@@ -3496,7 +3496,7 @@ class qs {
3496
3496
  let h = f[z];
3497
3497
  h && (t.slot = new as(l, c, h?.view.name, h?.index ?? 0));
3498
3498
  }
3499
- return r.to = void 0, r.routeModel = void 0, t.session = r, this[pr](t), {
3499
+ return r.to = void 0, r.routeModel = void 0, t.session = r, this[dr](t), {
3500
3500
  status: "success",
3501
3501
  message: ""
3502
3502
  };
@@ -3538,7 +3538,7 @@ class qs {
3538
3538
  * @param parentViewIndex
3539
3539
  * @returns
3540
3540
  */
3541
- [Er](e, t, r, n, i, o) {
3541
+ [Ar](e, t, r, n, i, o) {
3542
3542
  if (t < 0 || t > this[k].layers.length)
3543
3543
  return null;
3544
3544
  if (t < this[k].layers.length) {
@@ -3629,7 +3629,7 @@ function Ws(s, e = !1) {
3629
3629
  let t = null;
3630
3630
  return e ? t = s.hideCancelled ?? s.leaveCancelled : t = s.leaveCancelled, t;
3631
3631
  }
3632
- function kt(s) {
3632
+ function Bt(s) {
3633
3633
  let e, t = s.duration;
3634
3634
  return typeof t == "object" ? e = {
3635
3635
  enter: t.enter ?? -1,
@@ -3650,7 +3650,7 @@ function Ce(s, e) {
3650
3650
  s.classList.remove(e);
3651
3651
  }
3652
3652
  const zs = Ae && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : setTimeout;
3653
- function Ut(s) {
3653
+ function kt(s) {
3654
3654
  zs(s);
3655
3655
  }
3656
3656
  function H(s, e, t) {
@@ -3680,11 +3680,11 @@ function Lr(s, e, t, r = -1, n, i, o, a) {
3680
3680
  Tt(e, l, u);
3681
3681
  }
3682
3682
  }
3683
- function Wt(s) {
3683
+ function Ut(s) {
3684
3684
  return !Ae || s === null ? !1 : s.opsType === T.Append || s.opsType === T.Open;
3685
3685
  }
3686
3686
  function Mr(s, e, t, r = {}, n, i = -1) {
3687
- if (e || Wt(n)) {
3687
+ if (e || Ut(n)) {
3688
3688
  const o = jr(r, e);
3689
3689
  o && Pe(t, o);
3690
3690
  const a = Or(r, e);
@@ -3694,7 +3694,7 @@ function Mr(s, e, t, r = {}, n, i = -1) {
3694
3694
  }
3695
3695
  }
3696
3696
  function Nr(s, e, t, r = {}, n, i, o, a) {
3697
- if (!Wt(i) && !e) {
3697
+ if (!Ut(i) && !e) {
3698
3698
  x(a) && a(s, a, [t]);
3699
3699
  return;
3700
3700
  }
@@ -3703,7 +3703,7 @@ function Nr(s, e, t, r = {}, n, i, o, a) {
3703
3703
  x(a) && a(s, a, [t]);
3704
3704
  return;
3705
3705
  }
3706
- Ut(() => {
3706
+ kt(() => {
3707
3707
  Lr(s, t, i, o, n, () => {
3708
3708
  u && Ce(t, u), f && Ce(t, f), x(h) && H(s, h, [t, e, i, o]), x(a) && a(s, a, [t]);
3709
3709
  }, () => {
@@ -3712,7 +3712,7 @@ function Nr(s, e, t, r = {}, n, i, o, a) {
3712
3712
  });
3713
3713
  }
3714
3714
  function Ir(s, e, t, r = {}, n, i, o, a, l) {
3715
- if (!Wt(o) && !e) {
3715
+ if (console.info("------------- leave -------------"), !Ut(o) && !e) {
3716
3716
  !e && x(i) && i();
3717
3717
  return;
3718
3718
  }
@@ -3721,7 +3721,7 @@ function Ir(s, e, t, r = {}, n, i, o, a, l) {
3721
3721
  !e && x(i) && i();
3722
3722
  return;
3723
3723
  }
3724
- u && Pe(t, u), f && Pe(t, f), x(h) && H(s, h, [t, e, o, a]), Ut(() => {
3724
+ u && Pe(t, u), f && Pe(t, f), x(h) && H(s, h, [t, e, o, a]), kt(() => {
3725
3725
  Lr(s, t, o, a, n, () => {
3726
3726
  f && Ce(t, f), c && Ce(t, c), x(y) && H(s, y, [t, e, o, a]), x(l) && H(s, l, [t]), !e && x(i) && i();
3727
3727
  }, () => {
@@ -3729,8 +3729,8 @@ function Ir(s, e, t, r = {}, n, i, o, a, l) {
3729
3729
  }), u && Ce(t, u), c && Pe(t, c);
3730
3730
  });
3731
3731
  }
3732
- function Ot(s, e = {}, t, r = -1) {
3733
- const n = e.mode ?? "default", i = kt(e);
3732
+ function jt(s, e = {}, t, r = -1) {
3733
+ const n = e.mode ?? "default", i = Bt(e);
3734
3734
  return {
3735
3735
  //mode
3736
3736
  mode: n,
@@ -3749,7 +3749,7 @@ function Ot(s, e = {}, t, r = -1) {
3749
3749
  Ir(s, !1, a, e, i.leave, l, t, r);
3750
3750
  },
3751
3751
  //clone
3752
- clone: (a) => Ot(s, e, t, r)
3752
+ clone: (a) => jt(s, e, t, r)
3753
3753
  };
3754
3754
  }
3755
3755
  function Hr(s) {
@@ -3760,7 +3760,7 @@ function Js(s, e, t = {}, r, n, i, o) {
3760
3760
  const a = Hr(e);
3761
3761
  if (a == null)
3762
3762
  return;
3763
- const l = kt(t);
3763
+ const l = Bt(t);
3764
3764
  Mr(s, !0, a, t, r, n), Nr(s, !0, a, t, l.show, r, n, (u) => {
3765
3765
  x(o) && H(s, o, [u]);
3766
3766
  });
@@ -3772,7 +3772,7 @@ function Gs(s, e, t = {}, r, n, i, o) {
3772
3772
  const a = Hr(e);
3773
3773
  if (a == null)
3774
3774
  return;
3775
- const l = kt(t);
3775
+ const l = Bt(t);
3776
3776
  Ir(s, !0, a, t, l.hide, null, r, n, (u) => {
3777
3777
  x(o) && H(s, o, [u]);
3778
3778
  });
@@ -3780,7 +3780,7 @@ function Gs(s, e, t = {}, r, n, i, o) {
3780
3780
  x(o) && H(s, o, []);
3781
3781
  }
3782
3782
  function Qs(s, e = {}) {
3783
- Ut(() => {
3783
+ kt(() => {
3784
3784
  for (let t = 0; t < s.length; t++)
3785
3785
  Reflect.apply(s[t], e, []);
3786
3786
  });
@@ -3813,7 +3813,7 @@ class Xs {
3813
3813
  this.node = e, this.state = t;
3814
3814
  }
3815
3815
  }
3816
- const Lt = br({
3816
+ const Ot = wr({
3817
3817
  //名称
3818
3818
  name: "RouterView",
3819
3819
  //继承特性
@@ -4026,12 +4026,12 @@ const Lt = br({
4026
4026
  },
4027
4027
  //setup
4028
4028
  setup(s, e) {
4029
- const t = Mt();
4029
+ const t = Lt();
4030
4030
  if (t === null || t.proxy === null) {
4031
4031
  console.error("instance or instance.proxy not exist");
4032
4032
  return;
4033
4033
  }
4034
- const r = s.multi === !0, n = G(lt, null), i = G(dt, 0), o = G(nr, null), a = G(pt, -1);
4034
+ const r = s.multi === !0, n = G(lt, null), i = G(dt, 0), o = G(sr, null), a = G(pt, -1);
4035
4035
  let l = null;
4036
4036
  const u = s.modelSlot;
4037
4037
  if (u) {
@@ -4040,20 +4040,20 @@ const Lt = br({
4040
4040
  return;
4041
4041
  }
4042
4042
  const h = nt(t.proxy, !0);
4043
- hs(h), sr(h, () => u.route ?? null);
4043
+ hs(h), rr(h, () => u.route ?? null);
4044
4044
  } else {
4045
4045
  if (n == null) {
4046
4046
  console.error("router is not been injected");
4047
4047
  return;
4048
4048
  }
4049
- const c = s.name, h = G(ir, null), y = G(mt, 0);
4050
- if (l = n[Er](c, i, o, a, h, y), l === null)
4049
+ const c = s.name, h = G(nr, null), y = G(mt, 0);
4050
+ if (l = n[Ar](c, i, o, a, h, y), l === null)
4051
4051
  return;
4052
- se(ir, l);
4052
+ se(nr, l);
4053
4053
  const d = l[J] === !0;
4054
- if (d && se(nr, l), !r && (se(pt, -1), se(dt, i + 1), se(mt, -1), d)) {
4054
+ if (d && se(sr, l), !r && (se(pt, -1), se(dt, i + 1), se(mt, -1), d)) {
4055
4055
  const m = nt(t.proxy, !0);
4056
- sr(m, () => {
4056
+ rr(m, () => {
4057
4057
  const p = l.slots.value;
4058
4058
  return p.length > 0 ? p[0].route : null;
4059
4059
  });
@@ -4068,7 +4068,7 @@ const Lt = br({
4068
4068
  for (let v = 0; v < y.length; v++) {
4069
4069
  const g = y[v], _ = `${s.name}_${g.index}`, b = oe(s.transition, g.route, v) ?? !0, K = { modelSlot: g };
4070
4070
  let E;
4071
- e.slots.default ? E = he(Lt, K, { default: e.slots.default }) : E = he(Lt, K);
4071
+ e.slots.default ? E = he(Ot, K, { default: e.slots.default }) : E = he(Ot, K);
4072
4072
  const P = {}, C = oe(s.viewClass, g.route, v);
4073
4073
  typeof C == "string" && C.length > 0 && (P[C] = !0);
4074
4074
  const U = oe(s.viewActiveClass, g.route, v), L = oe(s.viewInactiveClass, g.route, v), M = f.value.get(_);
@@ -4076,14 +4076,14 @@ const Lt = br({
4076
4076
  const Y = M.node;
4077
4077
  g.active ? d.unshift(() => {
4078
4078
  const ut = () => {
4079
- let Ee = tr(Y);
4080
- Ee != null && rr(Ee, qt.ACTIVATED);
4079
+ let Ee = er(Y);
4080
+ Ee != null && tr(Ee, qt.ACTIVATED);
4081
4081
  };
4082
4082
  Js(t, Y, s, g.route, v, b, ut);
4083
4083
  }) : d.push(() => {
4084
4084
  const ut = () => {
4085
- const Ee = tr(Y);
4086
- Ee != null && rr(Ee, qt.DEACTIVATED);
4085
+ const Ee = er(Y);
4086
+ Ee != null && tr(Ee, qt.DEACTIVATED);
4087
4087
  };
4088
4088
  Gs(t, Y, s, g.route, v, b, ut);
4089
4089
  });
@@ -4102,14 +4102,12 @@ const Lt = br({
4102
4102
  }
4103
4103
  const re = oe(s.viewTag, g.route, v), at = he(re, X, { default: () => [E] });
4104
4104
  if (c.set(_, new Xs(at, g.active)), f.value.delete(_), b) {
4105
- const Y = Ot(t, s, g.route, v);
4105
+ const Y = jt(t, s, g.route, v);
4106
4106
  at.transition = Y;
4107
4107
  }
4108
4108
  h.push(at);
4109
4109
  }
4110
- f.value.forEach((v) => {
4111
- v.node.transition = null;
4112
- }), f.value = c, Qs(d, t);
4110
+ f.value = c, Qs(d, t);
4113
4111
  const m = oe(s.tag, null, -1), p = {};
4114
4112
  return Object.assign(p, e.attrs), he(m, p, { default: () => h });
4115
4113
  } else if (u != null) {
@@ -4128,7 +4126,7 @@ const Lt = br({
4128
4126
  } else {
4129
4127
  const c = l.slots.value;
4130
4128
  if (c.length > 0) {
4131
- const h = c[0], y = h.route ?? (t.proxy && Vt(t.proxy)) ?? null, d = h.model, m = {};
4129
+ const h = c[0], y = h.route ?? (t.proxy && Dt(t.proxy)) ?? null, d = h.model, m = {};
4132
4130
  if (d.props) {
4133
4131
  if (typeof d.props == "object") {
4134
4132
  const g = be(d.props, n?.propsFilter);
@@ -4140,7 +4138,7 @@ const Lt = br({
4140
4138
  }
4141
4139
  const p = he(d.component, m);
4142
4140
  if (oe(s.transition, y, -1) ?? !0) {
4143
- const g = Ot(t, s, y, -1);
4141
+ const g = jt(t, s, y, -1);
4144
4142
  p.transition = g;
4145
4143
  }
4146
4144
  return Kt(e.slots.default, { Component: p, route: y }) ?? p;
@@ -4169,7 +4167,7 @@ function en(s, e) {
4169
4167
  function xe(s, e) {
4170
4168
  return typeof s == "function" ? Reflect.apply(s, {}, [e]) : s;
4171
4169
  }
4172
- let tn = br({
4170
+ let tn = wr({
4173
4171
  //名称
4174
4172
  name: "RouterLink",
4175
4173
  //继承特性
@@ -4304,7 +4302,7 @@ class rn {
4304
4302
  this.register.clear();
4305
4303
  }
4306
4304
  }
4307
- class gr {
4305
+ class vr {
4308
4306
  /**
4309
4307
  * module manager
4310
4308
  */
@@ -4846,7 +4844,7 @@ class nn {
4846
4844
  }
4847
4845
  const Vr = Symbol("fk"), Br = Symbol("fbk"), kr = Symbol("fepk");
4848
4846
  function bn(s = {}) {
4849
- const e = new qs(s), t = new Xt(), r = new er(), n = new gr(), i = {
4847
+ const e = new qs(s), t = new Qt(), r = new Zt(), n = new vr(), i = {
4850
4848
  /**
4851
4849
  * 返回router
4852
4850
  */
@@ -4863,13 +4861,13 @@ function bn(s = {}) {
4863
4861
  * 返回Bus类型
4864
4862
  */
4865
4863
  get Bus() {
4866
- return Xt;
4864
+ return Qt;
4867
4865
  },
4868
4866
  /**
4869
4867
  * 返回全局event proxy
4870
4868
  */
4871
4869
  get EventProxy() {
4872
- return er;
4870
+ return Zt;
4873
4871
  },
4874
4872
  /**
4875
4873
  * 返回event proxy类型
@@ -4887,7 +4885,7 @@ function bn(s = {}) {
4887
4885
  * 返回Require构造函数
4888
4886
  */
4889
4887
  get Require() {
4890
- return gr;
4888
+ return vr;
4891
4889
  },
4892
4890
  /**
4893
4891
  * 返回require
@@ -4905,19 +4903,19 @@ function bn(s = {}) {
4905
4903
  * 返回clone
4906
4904
  */
4907
4905
  get clone() {
4908
- return It;
4906
+ return Nt;
4909
4907
  },
4910
4908
  /**
4911
4909
  * 判断是否为es模块
4912
4910
  */
4913
4911
  get isESModule() {
4914
- return xr;
4912
+ return br;
4915
4913
  },
4916
4914
  /**
4917
4915
  * 安装
4918
4916
  */
4919
4917
  install(o) {
4920
- o.provide(lt, e), o.provide(Vr, i), o.provide(Br, t), o.provide(kr, r), o.component(js, Lt), o.component(Os, tn), Reflect.defineProperty(o.config.globalProperties, "$fox", {
4918
+ o.provide(lt, e), o.provide(Vr, i), o.provide(Br, t), o.provide(kr, r), o.component(js, Ot), o.component(Os, tn), Reflect.defineProperty(o.config.globalProperties, "$fox", {
4921
4919
  get() {
4922
4920
  return i;
4923
4921
  }
@@ -4957,7 +4955,7 @@ function bn(s = {}) {
4957
4955
  computed: {
4958
4956
  //获取当前route
4959
4957
  $route() {
4960
- return Vt(this);
4958
+ return Dt(this);
4961
4959
  }
4962
4960
  }
4963
4961
  }), e.init();
@@ -4969,7 +4967,7 @@ function Ur(s) {
4969
4967
  return s ? s.$router : G(lt);
4970
4968
  }
4971
4969
  function xn(s) {
4972
- return s || (s = Mt()?.proxy ?? void 0), s ? Vt(s) : null;
4970
+ return s || (s = Lt()?.proxy ?? void 0), s ? Dt(s) : null;
4973
4971
  }
4974
4972
  function Rn(s) {
4975
4973
  return s ? s.$fox : G(Vr);
@@ -5007,11 +5005,11 @@ function An(s) {
5007
5005
  });
5008
5006
  }
5009
5007
  export {
5010
- Xt as Bus,
5008
+ Qt as Bus,
5011
5009
  st as EventChain,
5012
- er as EventProxy,
5010
+ Zt as EventProxy,
5013
5011
  S as Route,
5014
- It as clone,
5012
+ Nt as clone,
5015
5013
  bn as createFox,
5016
5014
  Ks as createMemoryHistory,
5017
5015
  Fs as createWebHashHistory,
@@ -5021,11 +5019,11 @@ export {
5021
5019
  Br as foxBusKey,
5022
5020
  kr as foxEventProxyKey,
5023
5021
  Vr as foxKey,
5024
- _r as injectContextValue,
5022
+ Fr as injectContextValue,
5025
5023
  ln as isArray,
5026
5024
  fn as isDate,
5027
- xr as isESModule,
5028
- Jt as isEqual,
5025
+ br as isESModule,
5026
+ zt as isEqual,
5029
5027
  x as isFunction,
5030
5028
  an as isMap,
5031
5029
  Gr as isNil,
@@ -5041,10 +5039,10 @@ export {
5041
5039
  gn as onFoxInactivated,
5042
5040
  pn as provideContextValue,
5043
5041
  ae as sessionKey,
5044
- Rr as toBoolean,
5042
+ xr as toBoolean,
5045
5043
  dn as toNumber,
5046
- Nt as toTypeString,
5047
- zt as typeOf,
5044
+ Mt as toTypeString,
5045
+ Wt as typeOf,
5048
5046
  Sn as useBus,
5049
5047
  Pn as useEventProxy,
5050
5048
  Rn as useFox,