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

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,8 +1,8 @@
1
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";
2
2
  /*!
3
- * fox v3.0.0 Wed Nov 29 2023 16:14:35 GMT+0800 (中国标准时间)
3
+ * fox v3.0.0 Thu Nov 30 2023 15:24:17 GMT+0800 (中国标准时间)
4
4
  */
5
- const Ae = typeof window < "u", T = function() {
5
+ const Ae = typeof window < "u", $ = function() {
6
6
  return window;
7
7
  }, Ve = function() {
8
8
  return window.document;
@@ -14,13 +14,13 @@ function zr(s) {
14
14
  function ft() {
15
15
  if (!Ae)
16
16
  return "/";
17
- let s = T().location, e = `${s.protocol}//${s.host}`;
17
+ let s = $().location, e = `${s.protocol}//${s.host}`;
18
18
  return e += zr(s.pathname), e;
19
19
  }
20
- function $t(s, e, t) {
20
+ function Tt(s, e, t) {
21
21
  s.addEventListener ? s.addEventListener(e, t, !1) : s.attachEvent ? s.attachEvent(`on${e}`, t) : s[`on${e}`] = t;
22
22
  }
23
- function Tt(s, e, t) {
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
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";
@@ -279,7 +279,7 @@ class ss {
279
279
  if (this.persistPolicy === "custom")
280
280
  e = this.storage;
281
281
  else if (Ae) {
282
- const t = T();
282
+ const t = $();
283
283
  e = this.persistPolicy === "session" ? t.sessionStorage : t.localStorage;
284
284
  }
285
285
  return e;
@@ -1416,7 +1416,7 @@ function ms(s) {
1416
1416
  }
1417
1417
  return e.push({ type: "END", index: t, value: "" }), e;
1418
1418
  }
1419
- function $r(s, e) {
1419
+ function Tr(s, e) {
1420
1420
  e === void 0 && (e = {});
1421
1421
  for (var t = ms(s), r = e.prefixes, n = r === void 0 ? "./" : r, i = "[^".concat(Re(e.delimiter || "/#?"), "]+?"), o = [], a = 0, l = 0, u = "", f = function(E) {
1422
1422
  if (l < t.length && t[l].type === E)
@@ -1467,7 +1467,7 @@ function $r(s, e) {
1467
1467
  return o;
1468
1468
  }
1469
1469
  function vs(s, e) {
1470
- return gs($r(s, e), e);
1470
+ return gs(Tr(s, e), e);
1471
1471
  }
1472
1472
  function gs(s, e) {
1473
1473
  e === void 0 && (e = {});
@@ -1517,7 +1517,7 @@ function gs(s, e) {
1517
1517
  };
1518
1518
  }
1519
1519
  function ws(s, e) {
1520
- var t = [], r = Tr(s, t, e);
1520
+ var t = [], r = $r(s, t, e);
1521
1521
  return bs(r, t, e);
1522
1522
  }
1523
1523
  function bs(s, e, t) {
@@ -1563,12 +1563,12 @@ function xs(s, e) {
1563
1563
  }
1564
1564
  function Rs(s, e, t) {
1565
1565
  var r = s.map(function(n) {
1566
- return Tr(n, e, t).source;
1566
+ return $r(n, e, t).source;
1567
1567
  });
1568
1568
  return new RegExp("(?:".concat(r.join("|"), ")"), Bt(t));
1569
1569
  }
1570
1570
  function Ss(s, e, t) {
1571
- return Ps($r(s, t), e, t);
1571
+ return Ps(Tr(s, t), e, t);
1572
1572
  }
1573
1573
  function Ps(s, e, t) {
1574
1574
  t === void 0 && (t = {});
@@ -1601,10 +1601,10 @@ function Ps(s, e, t) {
1601
1601
  }
1602
1602
  return new RegExp(v, Bt(t));
1603
1603
  }
1604
- function Tr(s, e, t) {
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);
1606
1606
  }
1607
- var $ = /* @__PURE__ */ ((s) => (s[s.Push = 0] = "Push", s[s.Replace = 1] = "Replace", s[s.Put = 2] = "Put", s[s.Append = 3] = "Append", s[s.Open = 4] = "Open", s))($ || {}), Ze = /* @__PURE__ */ ((s) => (s[s.Part = 0] = "Part", s[s.All = 1] = "All", s))(Ze || {});
1607
+ var T = /* @__PURE__ */ ((s) => (s[s.Push = 0] = "Push", s[s.Replace = 1] = "Replace", s[s.Put = 2] = "Put", s[s.Append = 3] = "Append", s[s.Open = 4] = "Open", s))(T || {}), Ze = /* @__PURE__ */ ((s) => (s[s.Part = 0] = "Part", s[s.All = 1] = "All", s))(Ze || {});
1608
1608
  const J = Symbol("rootKey"), z = Symbol("rootNodeKey"), ye = Symbol("parentNodeKey"), et = Symbol("nameKey");
1609
1609
  class ne {
1610
1610
  /**
@@ -1798,7 +1798,7 @@ 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"), $e = Symbol("_setRouteMarkRecorder"), Te = Symbol("beforeRestoreFiltersKey"), ar = Symbol("_beforeRestore"), ur = "Symbol(_fox_restore_point)";
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)";
1802
1802
  function qe(s, ...e) {
1803
1803
  return typeof s == "function" ? Reflect.apply(s, null, [...e]) : s;
1804
1804
  }
@@ -1854,7 +1854,7 @@ class qr {
1854
1854
  /**
1855
1855
  * before restore 过滤器队列(用于刷新还原)
1856
1856
  */
1857
- [Te] = new Array();
1857
+ [$e] = new Array();
1858
1858
  /**
1859
1859
  * 回退timeout
1860
1860
  */
@@ -1871,7 +1871,7 @@ class qr {
1871
1871
  * @param backTimeout
1872
1872
  */
1873
1873
  constructor(e = "hash", t = "", r = "", n = !0, i = !0, o = !1, a, l) {
1874
- this.mode = e, this.base = t, this.query = r, this.firstNavigate = n, this.historyMonitor = i, this.traceless = o, this.storage = a ?? T().sessionStorage, this.backTimeout = l ?? 320;
1874
+ this.mode = e, this.base = t, this.query = r, this.firstNavigate = n, this.historyMonitor = i, this.traceless = o, this.storage = a ?? $().sessionStorage, this.backTimeout = l ?? 320;
1875
1875
  }
1876
1876
  /**
1877
1877
  * 初始化
@@ -1879,7 +1879,7 @@ class qr {
1879
1879
  * @returns
1880
1880
  */
1881
1881
  init(e = !0) {
1882
- const t = T();
1882
+ const t = $();
1883
1883
  return typeof this.historyChange != "function" && (this.historyChange = () => {
1884
1884
  if (typeof this[ue] == "function") {
1885
1885
  const r = this[ue]();
@@ -1896,20 +1896,20 @@ class qr {
1896
1896
  let n = [];
1897
1897
  if (typeof r == "string" ? n = JSON.parse(r) : n = r, Array.isArray(n) && n.length > 0) {
1898
1898
  const i = this[ke]() ?? "/";
1899
- this[$e](i, n);
1899
+ this[Te](i, n);
1900
1900
  }
1901
1901
  } catch {
1902
1902
  }
1903
1903
  }
1904
- }), $t(t, "popstate", this.historyChange), this.firstNavigate && e && this[lr](), Promise.resolve();
1904
+ }), Tt(t, "popstate", this.historyChange), this.firstNavigate && e && this[lr](), Promise.resolve();
1905
1905
  }
1906
1906
  /**
1907
1907
  * 销毁
1908
1908
  */
1909
1909
  destroy() {
1910
1910
  if (this.historyChange) {
1911
- const e = T();
1912
- Tt(e, "popstate", this.historyChange);
1911
+ const e = $();
1912
+ $t(e, "popstate", this.historyChange);
1913
1913
  }
1914
1914
  }
1915
1915
  /**
@@ -1920,7 +1920,7 @@ class qr {
1920
1920
  * @param routes
1921
1921
  */
1922
1922
  [ar](e, t, r, n) {
1923
- for (let i of this[Te])
1923
+ for (let i of this[$e])
1924
1924
  try {
1925
1925
  const o = Reflect.apply(i, {}, [e, t, r, n]);
1926
1926
  if (o === !1)
@@ -1935,7 +1935,7 @@ class qr {
1935
1935
  * @param filter
1936
1936
  */
1937
1937
  beforeRestoreEach(e) {
1938
- this[Te].push(e);
1938
+ this[$e].push(e);
1939
1939
  }
1940
1940
  /**
1941
1941
  * 移除before restore filter
@@ -1943,8 +1943,8 @@ class qr {
1943
1943
  * @returns
1944
1944
  */
1945
1945
  removeBeforeRestoreEach(e) {
1946
- const t = this[Te].indexOf(e);
1947
- return t !== -1 ? (this[Te].splice(t, 1), !0) : !1;
1946
+ const t = this[$e].indexOf(e);
1947
+ return t !== -1 ? (this[$e].splice(t, 1), !0) : !1;
1948
1948
  }
1949
1949
  /**
1950
1950
  * 导航到第一个route
@@ -1975,7 +1975,7 @@ class qr {
1975
1975
  * @param mark
1976
1976
  * @param routes
1977
1977
  */
1978
- [$e](e, t) {
1978
+ [Te](e, t) {
1979
1979
  try {
1980
1980
  t.forEach((i) => {
1981
1981
  i.params = i.params ? Sr(i.params) : {};
@@ -1996,7 +1996,7 @@ class qr {
1996
1996
  */
1997
1997
  setRestorePoint(e) {
1998
1998
  const t = this[ke]() ?? "/";
1999
- this[$e](t, e);
1999
+ this[Te](t, e);
2000
2000
  }
2001
2001
  /**
2002
2002
  * 通知修改
@@ -2008,7 +2008,7 @@ class qr {
2008
2008
  * 获取当前标志
2009
2009
  */
2010
2010
  [ke]() {
2011
- const e = T();
2011
+ const e = $();
2012
2012
  if (this.mode === "path") {
2013
2013
  let t = e.location.pathname;
2014
2014
  return this.base && t.indexOf(this.base) === 0 && (t = t.substring(this.base.length)), t;
@@ -2023,7 +2023,7 @@ class qr {
2023
2023
  * 获取当前search
2024
2024
  */
2025
2025
  [gt]() {
2026
- let t = T().location.search;
2026
+ let t = $().location.search;
2027
2027
  return t.length > 0 && t.indexOf("?") === 0 && (t = t.substring(1)), t;
2028
2028
  }
2029
2029
  /**
@@ -2039,7 +2039,7 @@ class qr {
2039
2039
  * @param consume
2040
2040
  */
2041
2041
  go(e, t = !1) {
2042
- const r = T();
2042
+ const r = $();
2043
2043
  this[ue] = t, r.history.go(e);
2044
2044
  }
2045
2045
  /**
@@ -2048,7 +2048,7 @@ class qr {
2048
2048
  * @param trigger
2049
2049
  */
2050
2050
  goBack(e, t) {
2051
- const r = T(), n = r.history.state;
2051
+ const r = $(), n = r.history.state;
2052
2052
  if (fr(n) && n.length > 0) {
2053
2053
  let i = !1;
2054
2054
  for (let f = n.length - 1; f >= 0; f--) {
@@ -2066,11 +2066,9 @@ class qr {
2066
2066
  let a = null;
2067
2067
  const l = () => {
2068
2068
  r.history.go(-1), a = setTimeout(l, o);
2069
- };
2070
- a = setTimeout(l, o);
2071
- const u = () => {
2069
+ }, u = () => {
2072
2070
  clearTimeout(a);
2073
- const c = T().history.state;
2071
+ const c = $().history.state;
2074
2072
  if (fr(c) && c.length > 0) {
2075
2073
  let h = c.length;
2076
2074
  const y = c[h - 1], d = S.from(y);
@@ -2085,12 +2083,14 @@ class qr {
2085
2083
  break;
2086
2084
  }
2087
2085
  }
2088
- return m ? (a = setTimeout(l, o), this.go(-1, u), !0) : (t(), !0);
2086
+ return m ? (setTimeout(() => {
2087
+ a = setTimeout(l, o), this.go(-1, u);
2088
+ }, 0), !0) : (t(), !0);
2089
2089
  }
2090
2090
  }
2091
2091
  return t(), !0;
2092
2092
  };
2093
- this.go(-1, u);
2093
+ a = setTimeout(l, o), this.go(-1, u);
2094
2094
  } else
2095
2095
  t();
2096
2096
  }
@@ -2100,9 +2100,9 @@ class qr {
2100
2100
  */
2101
2101
  push(e) {
2102
2102
  const t = this[wt](e.currentRoute);
2103
- e.currentRoute.traceless !== !0 && !qe(this.traceless, e.currentRoute) && T().history.pushState(e.routes, "", t);
2103
+ e.currentRoute.traceless !== !0 && !qe(this.traceless, e.currentRoute) && $().history.pushState(e.routes, "", t);
2104
2104
  const r = e.currentRoute.fullPath;
2105
- this[$e](r, e.routes);
2105
+ this[Te](r, e.routes);
2106
2106
  }
2107
2107
  /**
2108
2108
  * 替换当前记录
@@ -2110,16 +2110,16 @@ class qr {
2110
2110
  */
2111
2111
  replace(e) {
2112
2112
  const t = this[wt](e.currentRoute);
2113
- e.currentRoute.traceless !== !0 && !qe(this.traceless, e.currentRoute) && T().history.replaceState(e.routes, "", t);
2113
+ e.currentRoute.traceless !== !0 && !qe(this.traceless, e.currentRoute) && $().history.replaceState(e.routes, "", t);
2114
2114
  const r = e.currentRoute.fullPath;
2115
- this[$e](r, e.routes);
2115
+ this[Te](r, e.routes);
2116
2116
  }
2117
2117
  /**
2118
2118
  * 生成Location
2119
2119
  * @param route
2120
2120
  */
2121
2121
  [wt](e) {
2122
- const t = T();
2122
+ const t = $();
2123
2123
  let r = "";
2124
2124
  if (e.query) {
2125
2125
  let a = "";
@@ -2140,7 +2140,7 @@ class qr {
2140
2140
  }
2141
2141
  }
2142
2142
  function wn(s = !0, e = null, t = "", r = !0, n = !1, i) {
2143
- return e !== null && (e = T().location.pathname), e && e.endsWith("/") && (e = e.substring(0, e.length - 1)), new qr("path", e ?? "", t, s, r, n, i);
2143
+ return e !== null && (e = $().location.pathname), e && e.endsWith("/") && (e = e.substring(0, e.length - 1)), new qr("path", e ?? "", t, s, r, n, i);
2144
2144
  }
2145
2145
  function Fs(s = !0, e = "", t = !0, r = !1, n) {
2146
2146
  return new qr("hash", "", e, s, t, r, n);
@@ -2292,10 +2292,10 @@ function Ks(s = "", e = 50) {
2292
2292
  return new _s(s, e);
2293
2293
  }
2294
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");
2295
- function $s(s) {
2295
+ function Ts(s) {
2296
2296
  return s.layers.length == 0 || s.layers[0].views.length == 0;
2297
2297
  }
2298
- function Ts(s) {
2298
+ function $s(s) {
2299
2299
  let e = [];
2300
2300
  return s.layers.forEach((t) => {
2301
2301
  t.models == null || t.models == null || t.models.forEach((r) => {
@@ -2462,7 +2462,7 @@ class qs {
2462
2462
  try {
2463
2463
  if (!e) {
2464
2464
  let o = [...this[w]].reverse();
2465
- return this[Ne](o), Ae && T().location.reload(), Promise.resolve();
2465
+ return this[Ne](o), Ae && $().location.reload(), Promise.resolve();
2466
2466
  }
2467
2467
  let t = null, r = [], n = [], i = 0;
2468
2468
  for (; i < e.length && i < this[w].length && S.isSame(e[i], this[w][i]); i++)
@@ -2506,7 +2506,7 @@ class qs {
2506
2506
  * @param route
2507
2507
  */
2508
2508
  [pr](e) {
2509
- if (e.opsType === $.Open) {
2509
+ if (e.opsType === T.Open) {
2510
2510
  let t = !1;
2511
2511
  const r = this[w].length - 1;
2512
2512
  for (let n = r; n >= 0; n--) {
@@ -2860,7 +2860,7 @@ class qs {
2860
2860
  let r = t.path.indexOf("?");
2861
2861
  r !== -1 && r < t.path.length - 1 && (t.query = t.path.substring(r + 1), t.path = t.path.substring(0, r));
2862
2862
  }
2863
- t.root = t.root ?? te, t.opsType = t.opsType ?? this.options.defaultOperationType ?? $.Push;
2863
+ t.root = t.root ?? te, t.opsType = t.opsType ?? this.options.defaultOperationType ?? T.Push;
2864
2864
  }
2865
2865
  return t;
2866
2866
  }
@@ -2870,7 +2870,7 @@ class qs {
2870
2870
  */
2871
2871
  push(...e) {
2872
2872
  let t = this[I](e);
2873
- return t ? (t.opsType = t.opsType || $.Push, this.to(t)) : (this[j]("resolve route fail", t), this);
2873
+ return t ? (t.opsType = t.opsType || T.Push, this.to(t)) : (this[j]("resolve route fail", t), this);
2874
2874
  }
2875
2875
  /**
2876
2876
  * 路由跳转(operation类型为Put)
@@ -2878,7 +2878,7 @@ class qs {
2878
2878
  */
2879
2879
  put(...e) {
2880
2880
  let t = this[I](e);
2881
- return t ? (t.opsType = $.Put, t.traceless = !0, this.to(t)) : (this[j]("resolve route fail", t), this);
2881
+ return t ? (t.opsType = T.Put, t.traceless = !0, this.to(t)) : (this[j]("resolve route fail", t), this);
2882
2882
  }
2883
2883
  /**
2884
2884
  * 路由跳转(operation类型为Replace)
@@ -2886,7 +2886,7 @@ class qs {
2886
2886
  */
2887
2887
  replace(...e) {
2888
2888
  let t = this[I](e);
2889
- return t ? (t.opsType = $.Replace, this.to(t)) : (this[j]("resolve route fail", t), this);
2889
+ return t ? (t.opsType = T.Replace, this.to(t)) : (this[j]("resolve route fail", t), this);
2890
2890
  }
2891
2891
  /**
2892
2892
  * 路由跳转(operation类型为Append)
@@ -2894,7 +2894,7 @@ class qs {
2894
2894
  */
2895
2895
  append(...e) {
2896
2896
  let t = this[I](e);
2897
- return t ? (t.opsType = $.Append, this.to(t)) : (this[j]("resolve route fail", t), this);
2897
+ return t ? (t.opsType = T.Append, this.to(t)) : (this[j]("resolve route fail", t), this);
2898
2898
  }
2899
2899
  /**
2900
2900
  * 移除
@@ -2914,12 +2914,12 @@ class qs {
2914
2914
  if (e.root ? o = e.root : o = this[w][0].root ?? te, e.all)
2915
2915
  for (let u = this[w].length - 1; u > 0; u--) {
2916
2916
  let f = this[w][u];
2917
- f.opsType === $.Append && f.root === o && (a.splice(0, 0, f), i = u - 1);
2917
+ f.opsType === T.Append && f.root === o && (a.splice(0, 0, f), i = u - 1);
2918
2918
  }
2919
2919
  else if (e.until)
2920
2920
  for (let u = this[w].length - 1; u > 0; u--) {
2921
2921
  let f = this[w][u];
2922
- if (f.opsType === $.Append && f.root === o) {
2922
+ if (f.opsType === T.Append && f.root === o) {
2923
2923
  if (e.until.charAt(0) === "/" && e.until === f.path) {
2924
2924
  i = u;
2925
2925
  break;
@@ -2936,7 +2936,7 @@ class qs {
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];
2939
- if (c.opsType === $.Append && c.root === o) {
2939
+ if (c.opsType === T.Append && c.root === o) {
2940
2940
  a.push(c), i = f - 1;
2941
2941
  break;
2942
2942
  }
@@ -2951,8 +2951,8 @@ class qs {
2951
2951
  if (i !== -1 && (l = this[w][i]), this[Ne](a)) {
2952
2952
  if (t === !1)
2953
2953
  return n.resolve(), r(!0), !0;
2954
- const u = () => (n.resolve(), r(!0), !0);
2955
- if (l && S.isSame(l, this[w][len - 1])) {
2954
+ const u = () => (n.resolve(), r(!0), !0), f = this[w].length;
2955
+ if (l && S.isSame(l, this[w][f - 1])) {
2956
2956
  this[A]?.goBack(l, u);
2957
2957
  return;
2958
2958
  }
@@ -2970,7 +2970,7 @@ class qs {
2970
2970
  */
2971
2971
  open(...e) {
2972
2972
  let t = this[I](e);
2973
- return t ? (t.opsType = $.Open, this.to(t)) : (this[j]("resolve route fail", t), this);
2973
+ return t ? (t.opsType = T.Open, this.to(t)) : (this[j]("resolve route fail", t), this);
2974
2974
  }
2975
2975
  /**
2976
2976
  * 关闭路由跳转的页面
@@ -3030,7 +3030,7 @@ class qs {
3030
3030
  try {
3031
3031
  let u = S.clone(l, !0);
3032
3032
  const f = new or(u, this[Ge]());
3033
- l.opsType === $.Replace ? this[A]?.replace(f) : this[A]?.push(f);
3033
+ l.opsType === T.Replace ? this[A]?.replace(f) : this[A]?.push(f);
3034
3034
  } catch (u) {
3035
3035
  console.error(u.message, u);
3036
3036
  }
@@ -3088,7 +3088,7 @@ class qs {
3088
3088
  //查找结果
3089
3089
  find: null
3090
3090
  };
3091
- return this[We](n), n.find && (r.routeModel = n.find, e.matched = Ts(n.find), Array.isArray(e.matched) && e.matched.length > 0 && (e.meta = n.find.layers[0].models[0].meta)), new st(r);
3091
+ return this[We](n), n.find && (r.routeModel = n.find, e.matched = $s(n.find), Array.isArray(e.matched) && e.matched.length > 0 && (e.meta = n.find.layers[0].models[0].meta)), new st(r);
3092
3092
  }
3093
3093
  /**
3094
3094
  * 执行before事件
@@ -3229,7 +3229,7 @@ class qs {
3229
3229
  let i = e.layers[t.y].views[t.x], o = !1, a = [], l = !1, u = [...i.slots.value];
3230
3230
  for (let c = u.length - 1; c >= 0; c--) {
3231
3231
  let h = u[c];
3232
- (!r || r.indexOf(h.index) != -1) && (h.route && i[J] && (this[je](h.route), h.active === !0 && h.route.opsType == $.Append && (l = !0)), a.push(new V(i, h.index, t.y)), u.splice(c, 1));
3232
+ (!r || r.indexOf(h.index) != -1) && (h.route && i[J] && (this[je](h.route), h.active === !0 && h.route.opsType == T.Append && (l = !0)), a.push(new V(i, h.index, t.y)), u.splice(c, 1));
3233
3233
  }
3234
3234
  if (u.length == 0)
3235
3235
  n ? i.slots.value = u : e.layers[t.y].views.splice(t.x, 1);
@@ -3342,7 +3342,7 @@ class qs {
3342
3342
  message: "illegal route structure(multi root node)"
3343
3343
  };
3344
3344
  const i = e.layers[0].models[0];
3345
- let o = this[k], a = $s(o), l = t.root ?? te, u;
3345
+ let o = this[k], a = Ts(o), l = t.root ?? te, u;
3346
3346
  !a && n == Ze.Part && (u = this[bt](o, t));
3347
3347
  let f, c = 0;
3348
3348
  if (u == null || u == null)
@@ -3389,7 +3389,7 @@ class qs {
3389
3389
  }
3390
3390
  else
3391
3391
  f = o.layers[u.y].views[u.x];
3392
- if (c = u.y, f[J] = !0, t.opsType === $.Append) {
3392
+ if (c = u.y, f[J] = !0, t.opsType === T.Append) {
3393
3393
  t.index = t.index ?? le.get(), t.active = !0;
3394
3394
  let h = f.slots.value;
3395
3395
  if (h.length > 0) {
@@ -3400,7 +3400,7 @@ class qs {
3400
3400
  f.slots.value = [...h, y];
3401
3401
  let d = c + 1, m = 1, p = new V(f, t.index, c);
3402
3402
  this[ie](o, d, e, m, p);
3403
- } else if (t.opsType === $.Open) {
3403
+ } else if (t.opsType === T.Open) {
3404
3404
  let h = f.slots.value;
3405
3405
  const y = t.active ?? !0;
3406
3406
  let d = !1;
@@ -3666,22 +3666,22 @@ function Lr(s, e, t, r = -1, n, i, o, a) {
3666
3666
  }
3667
3667
  const l = ["animationend", "transitionend"], u = (f) => {
3668
3668
  l.forEach((c) => {
3669
- Tt(e, c, u);
3669
+ $t(e, c, u);
3670
3670
  }), Reflect.apply(i, s, [e, t, r]), a && Reflect.apply(a, s, []);
3671
3671
  };
3672
3672
  l.forEach((f) => {
3673
- $t(e, f, u);
3673
+ Tt(e, f, u);
3674
3674
  });
3675
3675
  }
3676
3676
  if (x(o)) {
3677
3677
  const l = "animationcancel", u = (f) => {
3678
- Reflect.apply(o, s, [e, t, r]), Tt(e, l, u);
3678
+ Reflect.apply(o, s, [e, t, r]), $t(e, l, u);
3679
3679
  };
3680
- $t(e, l, u);
3680
+ Tt(e, l, u);
3681
3681
  }
3682
3682
  }
3683
3683
  function Wt(s) {
3684
- return !Ae || s === null ? !1 : s.opsType === $.Append || s.opsType === $.Open;
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
3687
  if (e || Wt(n)) {
@@ -4608,7 +4608,7 @@ class gr {
4608
4608
  };
4609
4609
  }
4610
4610
  l.defer = !0, l.src = i;
4611
- const f = T();
4611
+ const f = $();
4612
4612
  f.define = this.createDefine(o, t), r.appendChild(l);
4613
4613
  });
4614
4614
  }
@@ -4737,7 +4737,7 @@ class gr {
4737
4737
  if (e.indexOf("./") == 0)
4738
4738
  return `${ft()}${e.slice(2)}`;
4739
4739
  if (e.indexOf("//") == 0)
4740
- return `${T().location.protocol}${e}`;
4740
+ return `${$().location.protocol}${e}`;
4741
4741
  if (t) {
4742
4742
  let n = this.options.alias[e];
4743
4743
  if (!n) {