@fox-js/fox 3.1.5 → 3.1.6

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,5 +1,5 @@
1
- import { defineComponent as $r, effectScope as us, getCurrentScope as Kr, h as ae, hasInjectionContext as xe, inject as L, onActivated as fs, onDeactivated as cs, onScopeDispose as Pe, provide as Z, reactive as hs, readonly as ys, ref as ds, shallowReactive as vs, shallowRef as jr, toRaw as Ot, watch as ms } from "vue";
2
- var Re = typeof window < "u", _ = function() {
1
+ import { defineComponent as $r, effectScope as us, getCurrentScope as Kr, h as ue, hasInjectionContext as Pe, inject as L, onActivated as fs, onDeactivated as cs, onScopeDispose as Ce, provide as Z, reactive as hs, readonly as ys, ref as ds, shallowReactive as ms, shallowRef as jr, toRaw as Ot, watch as vs } from "vue";
2
+ var Se = typeof window < "u", C = function() {
3
3
  return window;
4
4
  }, Be = function() {
5
5
  return window.document;
@@ -62,11 +62,11 @@ var Ie = class Ht {
62
62
  let t = ++Ht.seed;
63
63
  return t >= Number.MAX_VALUE && (Ht.seed = 0), t;
64
64
  }
65
- }, mt = Rs ? Promise.resolve() : null;
65
+ }, vt = Rs ? Promise.resolve() : null;
66
66
  function Oe(e, ...t) {
67
- mt !== null ? t && t.length > 0 ? mt.then(() => {
67
+ vt !== null ? t && t.length > 0 ? vt.then(() => {
68
68
  e(t);
69
- }) : mt.then(e) : t && t.length > 0 ? setTimeout(() => {
69
+ }) : vt.then(e) : t && t.length > 0 ? setTimeout(() => {
70
70
  e(t);
71
71
  }) : setTimeout(e);
72
72
  }
@@ -141,17 +141,17 @@ function Ir(e, t) {
141
141
  }, t);
142
142
  };
143
143
  }
144
- var or = /* @__PURE__ */ Symbol("idKey"), fe = /* @__PURE__ */ Symbol("valueKey"), R = /* @__PURE__ */ Symbol("childrenKey"), W = /* @__PURE__ */ Symbol("growKey"), Or = class {
144
+ var or = /* @__PURE__ */ Symbol("idKey"), ce = /* @__PURE__ */ Symbol("valueKey"), R = /* @__PURE__ */ Symbol("childrenKey"), W = /* @__PURE__ */ Symbol("growKey"), Or = class {
145
145
  [W] = !0;
146
146
  [or];
147
- [fe] = ds();
147
+ [ce] = ds();
148
148
  [R] = /* @__PURE__ */ new Map();
149
149
  constructor(e) {
150
150
  this[or] = e;
151
151
  }
152
152
  }, Ps = class {
153
153
  get(e, t) {
154
- if (t == "value") return e[fe].value;
154
+ if (t == "value") return e[ce].value;
155
155
  if (t === "grow") return e[W];
156
156
  let r = e[R].get(t);
157
157
  if (r) return De(r);
@@ -159,7 +159,7 @@ var or = /* @__PURE__ */ Symbol("idKey"), fe = /* @__PURE__ */ Symbol("valueKey"
159
159
  return r = er(t), r[W] = e[W], e[R].set(t, r), De(r);
160
160
  }
161
161
  set(e, t, r) {
162
- return t == "value" ? (e[fe].value = r, !0) : t === "grow" ? (e[W] = Tr(r), !0) : r == null ? (e[R].delete(t), !0) : (console.error(`[Fox]illegal property:${t}`), !1);
162
+ return t == "value" ? (e[ce].value = r, !0) : t === "grow" ? (e[W] = Tr(r), !0) : r == null ? (e[R].delete(t), !0) : (console.error(`[Fox]illegal property:${t}`), !1);
163
163
  }
164
164
  deleteProperty(e, t) {
165
165
  return t === "value" || t == "grow" ? (console.error(`[Fox]can not delete property:${String(t)}`), !1) : (e[R].delete(t), !0);
@@ -172,7 +172,7 @@ function er(e) {
172
172
  function De(e) {
173
173
  return Reflect.get(e, Yt);
174
174
  }
175
- var _s = class {
175
+ var Cs = class {
176
176
  name = "";
177
177
  persistPolicy = "memory";
178
178
  storage;
@@ -189,8 +189,8 @@ var _s = class {
189
189
  if (!this.persistPolicy || this.persistPolicy === "memory") return null;
190
190
  let e = null;
191
191
  if (this.persistPolicy === "custom") e = this.storage;
192
- else if (Re) {
193
- const t = _();
192
+ else if (Se) {
193
+ const t = C();
194
194
  e = this.persistPolicy === "session" ? t.sessionStorage : t.localStorage;
195
195
  }
196
196
  return e;
@@ -254,7 +254,7 @@ var _s = class {
254
254
  }, Hr = class extends Or {
255
255
  _persistHandler;
256
256
  constructor(e = {}, t) {
257
- super("__root__"), this._persistHandler = new _s(e, t), this._persistHandler.init(this);
257
+ super("__root__"), this._persistHandler = new Cs(e, t), this._persistHandler.init(this);
258
258
  }
259
259
  put(...e) {
260
260
  let t = e.length;
@@ -265,7 +265,7 @@ var _s = class {
265
265
  let i = e[s], n;
266
266
  r[R].has(i) ? n = r[R].get(i) : (n = er(i), r[R].set(i, n)), r = n;
267
267
  }
268
- return r[fe].value = e[t - 1], this._persistHandler.put(e), !0;
268
+ return r[ce].value = e[t - 1], this._persistHandler.put(e), !0;
269
269
  }
270
270
  get(...e) {
271
271
  let t = e.length;
@@ -276,7 +276,7 @@ var _s = class {
276
276
  if (r[R].has(i)) r = r[R].get(i);
277
277
  else return;
278
278
  }
279
- return r[fe].value;
279
+ return r[ce].value;
280
280
  }
281
281
  remove(...e) {
282
282
  let t = e.length;
@@ -305,7 +305,7 @@ var _s = class {
305
305
  clear() {
306
306
  this[R].clear(), this._persistHandler.clear();
307
307
  }
308
- }, Fs = [
308
+ }, _s = [
309
309
  "put",
310
310
  "get",
311
311
  "contains",
@@ -314,11 +314,11 @@ var _s = class {
314
314
  "_persistHandler"
315
315
  ];
316
316
  function lr(e) {
317
- return Fs.includes(e);
317
+ return _s.includes(e);
318
318
  }
319
- var Cs = class {
319
+ var Fs = class {
320
320
  get(e, t) {
321
- if (t == "value") return e[fe].value;
321
+ if (t == "value") return e[ce].value;
322
322
  if (t === "grow") return e[W];
323
323
  if (t === R) return e[R];
324
324
  if (typeof t == "string" && lr(t)) return e[t];
@@ -329,14 +329,14 @@ var Cs = class {
329
329
  return s = er(r), s[W] = e[W], e[R].set(r, s), De(s);
330
330
  }
331
331
  set(e, t, r) {
332
- return t == "value" ? (e[fe].value = r, !0) : t === "grow" ? (e[W] = Tr(r), !0) : lr(t) ? !1 : r == null ? (e[R].delete(t), !0) : (console.error(`[Fox]illegal property:${t}`), !1);
332
+ return t == "value" ? (e[ce].value = r, !0) : t === "grow" ? (e[W] = Tr(r), !0) : lr(t) ? !1 : r == null ? (e[R].delete(t), !0) : (console.error(`[Fox]illegal property:${t}`), !1);
333
333
  }
334
334
  deleteProperty(e, t) {
335
335
  return t === "value" || t == "grow" ? (console.error(`[Fox]can not delete property:${String(t)}`), !1) : (e[R].delete(t), !0);
336
336
  }
337
337
  };
338
338
  function Es(e, t) {
339
- const r = new Hr(e, t), s = new Cs(), i = new Proxy(r, s);
339
+ const r = new Hr(e, t), s = new Fs(), i = new Proxy(r, s);
340
340
  return Reflect.set(r, Yt, i), r;
341
341
  }
342
342
  var ar = new Proxy(Hr, { construct(e, t) {
@@ -354,8 +354,8 @@ var ar = new Proxy(Hr, { construct(e, t) {
354
354
  if (!this.persistPolicy || this.persistPolicy === "memory") return null;
355
355
  let e = null;
356
356
  if (this.persistPolicy === "custom") e = this.storage;
357
- else if (Re) {
358
- const t = _();
357
+ else if (Se) {
358
+ const t = C();
359
359
  e = this.persistPolicy === "session" ? t.sessionStorage : t.localStorage;
360
360
  }
361
361
  return e;
@@ -402,9 +402,9 @@ function Nr(e, t, r) {
402
402
  const a = r && r.debounceDelay ? r.debounceDelay : 250;
403
403
  n = Ir(i, a);
404
404
  }
405
- const o = e ? vs(t) : hs(t), l = us(!0);
405
+ const o = e ? ms(t) : hs(t), l = us(!0);
406
406
  return l.run(() => {
407
- ms(o, (a) => {
407
+ vs(o, (a) => {
408
408
  const u = Ot(a);
409
409
  n(u);
410
410
  });
@@ -530,13 +530,13 @@ function Ts(e, t) {
530
530
  if (h.type === We.Static)
531
531
  c || (i += "/"), i += h.value.replace(ks, "\\$&"), y += 40;
532
532
  else if (h.type === We.Param) {
533
- const { value: d, repeatable: v, optional: w, regexp: m } = h;
533
+ const { value: d, repeatable: m, optional: w, regexp: v } = h;
534
534
  n.push({
535
535
  name: d,
536
- repeatable: v,
536
+ repeatable: m,
537
537
  optional: w
538
538
  });
539
- const p = m || ur;
539
+ const p = v || ur;
540
540
  if (p !== ur) {
541
541
  y += 10;
542
542
  try {
@@ -545,8 +545,8 @@ function Ts(e, t) {
545
545
  throw new Error(`Invalid custom RegExp for param "${d}" (${p}): ` + K.message);
546
546
  }
547
547
  }
548
- let $ = v ? `((?:${p})(?:/(?:${p}))*)` : `(${p})`;
549
- c || ($ = w && u.length < 2 ? `(?:/${$})` : "/" + $), w && ($ += "?"), i += $, y += 20, w && (y += -8), v && (y += -20), p === ".*" && (y += -50);
548
+ let $ = m ? `((?:${p})(?:/(?:${p}))*)` : `(${p})`;
549
+ c || ($ = w && u.length < 2 ? `(?:/${$})` : "/" + $), w && ($ += "?"), i += $, y += 20, w && (y += -8), m && (y += -20), p === ".*" && (y += -50);
550
550
  }
551
551
  f.push(y);
552
552
  }
@@ -573,9 +573,9 @@ function Ts(e, t) {
573
573
  (!c || !f.endsWith("/")) && (f += "/"), c = !1;
574
574
  for (const y of h) if (y.type === We.Static) f += y.value;
575
575
  else if (y.type === We.Param) {
576
- const { value: d, repeatable: v, optional: w } = y, m = d in u ? u[d] : "";
577
- if (sr(m) && !v) throw new Error(`Provided param "${d}" is an array but it is not repeatable (* or + modifiers)`);
578
- const p = sr(m) ? m.join("/") : m;
576
+ const { value: d, repeatable: m, optional: w } = y, v = d in u ? u[d] : "";
577
+ if (sr(v) && !m) throw new Error(`Provided param "${d}" is an array but it is not repeatable (* or + modifiers)`);
578
+ const p = sr(v) ? v.join("/") : v;
579
579
  if (!p)
580
580
  if (w)
581
581
  h.length < 2 && (f.endsWith("/") ? f = f.slice(0, -1) : c = !0);
@@ -725,11 +725,11 @@ var Is = class {
725
725
  meta;
726
726
  matchedRoutes;
727
727
  layers = [];
728
- }, F = /* @__PURE__ */ (function(e) {
728
+ }, _ = /* @__PURE__ */ (function(e) {
729
729
  return e[e.Push = 0] = "Push", e[e.Replace = 1] = "Replace", e[e.Put = 2] = "Put", e[e.Append = 3] = "Append", e[e.Open = 4] = "Open", e;
730
730
  })({}), gt = /* @__PURE__ */ (function(e) {
731
731
  return e[e.Part = 0] = "Part", e[e.All = 1] = "All", e;
732
- })({}), V = /* @__PURE__ */ Symbol("rootKey"), B = /* @__PURE__ */ Symbol("rootNodeKey"), ue = /* @__PURE__ */ Symbol("parentNodeKey"), at = /* @__PURE__ */ Symbol("nameKey"), Y = class {
732
+ })({}), V = /* @__PURE__ */ Symbol("rootKey"), B = /* @__PURE__ */ Symbol("rootNodeKey"), fe = /* @__PURE__ */ Symbol("parentNodeKey"), at = /* @__PURE__ */ Symbol("nameKey"), Y = class {
733
733
  model;
734
734
  route;
735
735
  active = !0;
@@ -737,7 +737,7 @@ var Is = class {
737
737
  constructor(e, t, r = 0, s = !0) {
738
738
  this.route = e, this.model = t, this.index = r, this.active = s;
739
739
  }
740
- }, Ce = class {
740
+ }, Ee = class {
741
741
  _slots;
742
742
  get slots() {
743
743
  return this._slots == null && (this._slots = jr([])), this._slots;
@@ -748,7 +748,7 @@ var Is = class {
748
748
  [at];
749
749
  [V];
750
750
  [B] = null;
751
- [ue] = null;
751
+ [fe] = null;
752
752
  get name() {
753
753
  return this[at];
754
754
  }
@@ -777,44 +777,40 @@ var Is = class {
777
777
  time;
778
778
  route;
779
779
  }, Ns = class {
780
- forbidTime = 300;
780
+ submitCooldownTime = 300;
781
781
  submitRecorder = new Ds();
782
782
  isSameRoute(e, t) {
783
783
  return e == null || t == null ? !1 : e.name === t.name && e.path === t.path && e.root === t.root;
784
784
  }
785
785
  acquire(e) {
786
- let t = (/* @__PURE__ */ new Date()).getTime();
787
- if (this.isSameRoute(e, this.submitRecorder.route) && this.submitRecorder.time && t - this.submitRecorder.time <= this.forbidTime) {
788
- this.submitRecorder.time = t;
789
- return;
790
- }
791
- return this.submitRecorder.route = e, this.submitRecorder.time = t, t;
786
+ const t = (/* @__PURE__ */ new Date()).getTime();
787
+ return this.isSameRoute(e, this.submitRecorder.route) && this.submitRecorder.time && t - this.submitRecorder.time <= this.submitCooldownTime ? (this.submitRecorder.time = t, null) : (this.submitRecorder.route = e, this.submitRecorder.time = t, t);
792
788
  }
793
789
  release(e) {
794
790
  this.submitRecorder.time === e && (this.submitRecorder.route = void 0);
795
791
  }
796
- }, O = /* @__PURE__ */ Symbol("chainKey"), T = /* @__PURE__ */ Symbol("cursorKey"), bt = /* @__PURE__ */ Symbol("$persistentModeKey"), P = /* @__PURE__ */ Symbol("statusKey"), J = /* @__PURE__ */ Symbol("argsKey"), Je = /* @__PURE__ */ Symbol("exArgsKey"), ye = /* @__PURE__ */ Symbol("successFnsKey"), Ee = /* @__PURE__ */ Symbol("errorFnsKey"), ie = /* @__PURE__ */ Symbol("sessionKey"), G = /* @__PURE__ */ Symbol("_go"), ft = class {
792
+ }, O = /* @__PURE__ */ Symbol("chainKey"), T = /* @__PURE__ */ Symbol("cursorKey"), bt = /* @__PURE__ */ Symbol("$persistentModeKey"), P = /* @__PURE__ */ Symbol("statusKey"), J = /* @__PURE__ */ Symbol("argsKey"), Je = /* @__PURE__ */ Symbol("exArgsKey"), de = /* @__PURE__ */ Symbol("successFnsKey"), Ae = /* @__PURE__ */ Symbol("errorFnsKey"), ne = /* @__PURE__ */ Symbol("sessionKey"), G = /* @__PURE__ */ Symbol("_go"), ft = class {
797
793
  [O] = [];
798
794
  [T] = 0;
799
795
  [bt] = !1;
800
796
  [P] = "Free";
801
797
  [J] = [];
802
798
  [Je] = [];
803
- [ye] = [];
804
- [Ee] = [];
805
- [ie];
799
+ [de] = [];
800
+ [Ae] = [];
801
+ [ne];
806
802
  get session() {
807
- return this[ie];
803
+ return this[ne];
808
804
  }
809
805
  constructor(e, t = !1) {
810
- this[ie] = e, this[bt] = t;
806
+ this[ne] = e, this[bt] = t;
811
807
  }
812
808
  [G](e, ...t) {
813
809
  let r = this[P];
814
810
  if (this[P] = "Busy", this[T] += e, this[T] < 0 && (this[T] = 0), this[J] = t, r === "Exception" || r === "Reject") {
815
- let n = [{ session: this[ie] }, ...this[Je]];
816
- for (; this[Ee].length > 0; ) try {
817
- let o = this[Ee].shift();
811
+ let n = [{ session: this[ne] }, ...this[Je]];
812
+ for (; this[Ae].length > 0; ) try {
813
+ let o = this[Ae].shift();
818
814
  typeof o == "function" && Oe(() => {
819
815
  Reflect.apply(o, {}, n);
820
816
  });
@@ -823,9 +819,9 @@ var Is = class {
823
819
  }
824
820
  return this[P] = r, this[O] = [], this[T] = 0, this;
825
821
  } else if (r === "Finished" || this[T] >= this[O].length) {
826
- let n = [{ session: this[ie] }, ...this[J]];
827
- for (; this[ye].length > 0; ) {
828
- let o = this[ye].shift();
822
+ let n = [{ session: this[ne] }, ...this[J]];
823
+ for (; this[de].length > 0; ) {
824
+ let o = this[de].shift();
829
825
  typeof o == "function" && Oe(() => {
830
826
  Reflect.apply(o, {}, n);
831
827
  });
@@ -851,7 +847,7 @@ var Is = class {
851
847
  insert: (l) => {
852
848
  n || (this[O].splice(i, 0, l), i++);
853
849
  },
854
- session: this[ie]
850
+ session: this[ne]
855
851
  };
856
852
  Oe(() => {
857
853
  Reflect.apply(s, {}, [o, ...this[J]]);
@@ -875,9 +871,9 @@ var Is = class {
875
871
  }
876
872
  reset(...e) {
877
873
  this[P] = "Busy", this[J] = e, this[O] = [], this[T] = 0;
878
- let t = [{ session: this[ie] }, ...this[J]];
879
- for (; this[ye].length > 0; ) {
880
- let r = this[ye].shift();
874
+ let t = [{ session: this[ne] }, ...this[J]];
875
+ for (; this[de].length > 0; ) {
876
+ let r = this[de].shift();
881
877
  Oe(() => {
882
878
  Reflect.apply(r, this, t);
883
879
  });
@@ -888,25 +884,25 @@ var Is = class {
888
884
  return this[P] === "Reject" || this[P] === "Exception" ? this : (Array.isArray(e) ? this[O] = [...this[O], ...e] : this[O].push(e), this[P] === "Busy" ? this : (Reflect.apply(this[G], this, [0, ...this[J]]), this));
889
885
  }
890
886
  wait(e, t) {
891
- return e && typeof e == "function" && this[ye].push(e), t && typeof t == "function" && this[Ee].push(t), this[P] === "Busy" ? this : (Reflect.apply(this[G], this, [0, ...this[J]]), this);
887
+ return e && typeof e == "function" && this[de].push(e), t && typeof t == "function" && this[Ae].push(t), this[P] === "Busy" ? this : (Reflect.apply(this[G], this, [0, ...this[J]]), this);
892
888
  }
893
889
  exception(e) {
894
- return e && typeof e == "function" && this[Ee].push(e), this[P] === "Busy" ? this : Reflect.apply(this[G], this, [0, ...this[J]]);
890
+ return e && typeof e == "function" && this[Ae].push(e), this[P] === "Busy" ? this : Reflect.apply(this[G], this, [0, ...this[J]]);
895
891
  }
896
892
  isFinish() {
897
893
  return this[P] == "Reject" || this[P] == "Free" && this[T] >= this[O].length;
898
894
  }
899
- }, we = /* @__PURE__ */ Symbol("_notifyChange"), Rt = class {
895
+ }, be = /* @__PURE__ */ Symbol("_notifyChange"), Rt = class {
900
896
  currentRoute;
901
897
  routes;
902
898
  constructor(e, t) {
903
899
  this.currentRoute = e, this.routes = t;
904
900
  }
905
- }, ne = /* @__PURE__ */ Symbol("historyChangeConsumerKey"), hr = /* @__PURE__ */ Symbol("_navigateFirstRoute"), Ge = /* @__PURE__ */ Symbol("_getRouteMark"), St = /* @__PURE__ */ Symbol("_getUrlSearch"), xt = /* @__PURE__ */ Symbol("_generateLocation"), Xe = /* @__PURE__ */ Symbol("_setRouteMarkRecorder"), Ae = /* @__PURE__ */ Symbol("beforeRestoreFiltersKey"), yr = /* @__PURE__ */ Symbol("_beforeRestore"), dr = "Symbol(_fox_restore_point)";
901
+ }, oe = /* @__PURE__ */ Symbol("historyChangeConsumerKey"), hr = /* @__PURE__ */ Symbol("_navigateFirstRoute"), Ge = /* @__PURE__ */ Symbol("_getRouteMark"), St = /* @__PURE__ */ Symbol("_getUrlSearch"), xt = /* @__PURE__ */ Symbol("_generateLocation"), Xe = /* @__PURE__ */ Symbol("_setRouteMarkRecorder"), qe = /* @__PURE__ */ Symbol("beforeRestoreFiltersKey"), yr = /* @__PURE__ */ Symbol("_beforeRestore"), dr = "Symbol(_fox_restore_point)";
906
902
  function Qe(e, ...t) {
907
903
  return typeof e == "function" ? Reflect.apply(e, null, [...t]) : e;
908
904
  }
909
- function vr(e) {
905
+ function mr(e) {
910
906
  if (!Array.isArray(e)) return !1;
911
907
  if (e.length === 0) return !0;
912
908
  const t = e[0];
@@ -922,25 +918,25 @@ var Wr = class {
922
918
  traceless = !1;
923
919
  changeHandler;
924
920
  historyChange;
925
- [ne] = !1;
926
- [Ae] = new Array();
921
+ [oe] = !1;
922
+ [qe] = new Array();
927
923
  backTimeout = 320;
928
924
  constructor(e = "hash", t = "", r = "", s = !0, i = !0, n = !1, o, l) {
929
- this.mode = e, this.base = t, this.query = r, this.firstNavigate = s, this.historyMonitor = i, this.traceless = n, this.storage = o ?? _().sessionStorage, this.backTimeout = l ?? 320;
925
+ this.mode = e, this.base = t, this.query = r, this.firstNavigate = s, this.historyMonitor = i, this.traceless = n, this.storage = o ?? C().sessionStorage, this.backTimeout = l ?? 320;
930
926
  }
931
927
  init(e = !0) {
932
- const t = _();
928
+ const t = C();
933
929
  return typeof this.historyChange != "function" && (this.historyChange = () => {
934
- if (typeof this[ne] == "function") {
935
- const r = this[ne]();
936
- if (this[ne] = !1, r) return;
937
- } else if (this[ne] === !0) {
938
- this[ne] = !1;
930
+ if (typeof this[oe] == "function") {
931
+ const r = this[oe]();
932
+ if (this[oe] = !1, r) return;
933
+ } else if (this[oe] === !0) {
934
+ this[oe] = !1;
939
935
  return;
940
936
  }
941
937
  if (Qe(this.historyMonitor)) {
942
938
  const r = t.history.state;
943
- this[we](r);
939
+ this[be](r);
944
940
  try {
945
941
  let s = [];
946
942
  if (typeof r == "string" ? s = JSON.parse(r) : s = r, Array.isArray(s) && s.length > 0) {
@@ -954,12 +950,12 @@ var Wr = class {
954
950
  }
955
951
  destroy() {
956
952
  if (this.historyChange) {
957
- const e = _();
953
+ const e = C();
958
954
  Xt(e, "popstate", this.historyChange);
959
955
  }
960
956
  }
961
957
  [yr](e, t, r, s) {
962
- for (let i of this[Ae]) try {
958
+ for (let i of this[qe]) try {
963
959
  const n = Reflect.apply(i, {}, [
964
960
  e,
965
961
  t,
@@ -973,11 +969,11 @@ var Wr = class {
973
969
  return !0;
974
970
  }
975
971
  beforeRestoreEach(e) {
976
- this[Ae].push(e);
972
+ this[qe].push(e);
977
973
  }
978
974
  removeBeforeRestoreEach(e) {
979
- const t = this[Ae].indexOf(e);
980
- return t !== -1 ? (this[Ae].splice(t, 1), !0) : !1;
975
+ const t = this[qe].indexOf(e);
976
+ return t !== -1 ? (this[qe].splice(t, 1), !0) : !1;
981
977
  }
982
978
  [hr]() {
983
979
  const e = this[Ge]() ?? "/", t = this.storage.getItem(dr);
@@ -987,7 +983,7 @@ var Wr = class {
987
983
  const o = n.routes.filter((l, a) => (l.params = l.params ? Lr(l.params) : {}, this[yr](l, a, e, n.routes)));
988
984
  if (o.length > 0) {
989
985
  const l = this[St](), a = o.length - 1;
990
- o[a].query = l || o[a].query, this[we](o);
986
+ o[a].query = l || o[a].query, this[be](o);
991
987
  return;
992
988
  }
993
989
  }
@@ -997,7 +993,7 @@ var Wr = class {
997
993
  let s;
998
994
  r != -1 ? s = e.substring(r + 1) : s = e;
999
995
  const i = new x();
1000
- i.path = s, i.query = this[St](), this[we]([i]);
996
+ i.path = s, i.query = this[St](), this[be]([i]);
1001
997
  }
1002
998
  [Xe](e, t) {
1003
999
  try {
@@ -1017,11 +1013,11 @@ var Wr = class {
1017
1013
  const t = this[Ge]() ?? "/";
1018
1014
  this[Xe](t, e);
1019
1015
  }
1020
- [we](e) {
1016
+ [be](e) {
1021
1017
  typeof this.changeHandler == "function" && this.changeHandler(e);
1022
1018
  }
1023
1019
  [Ge]() {
1024
- const e = _();
1020
+ const e = C();
1025
1021
  if (this.mode === "path") {
1026
1022
  let t = e.location.pathname;
1027
1023
  return this.base && t.indexOf(this.base) === 0 && (t = t.substring(this.base.length)), t;
@@ -1032,19 +1028,19 @@ var Wr = class {
1032
1028
  return null;
1033
1029
  }
1034
1030
  [St]() {
1035
- let e = _().location.search;
1031
+ let e = C().location.search;
1036
1032
  return e.length > 0 && e.indexOf("?") === 0 && (e = e.substring(1)), e;
1037
1033
  }
1038
1034
  listen(e) {
1039
1035
  this.changeHandler = e;
1040
1036
  }
1041
1037
  go(e, t = !1) {
1042
- const r = _();
1043
- this[ne] = t, r.history.go(e);
1038
+ const r = C();
1039
+ this[oe] = t, r.history.go(e);
1044
1040
  }
1045
1041
  goBack(e, t) {
1046
- const r = _(), s = r.history.state;
1047
- if (vr(s) && s.length > 0) {
1042
+ const r = C(), s = r.history.state;
1043
+ if (mr(s) && s.length > 0) {
1048
1044
  let i = !1;
1049
1045
  for (let u = s.length - 1; u >= 0; u--) {
1050
1046
  const f = x.from(s[u]);
@@ -1063,8 +1059,8 @@ var Wr = class {
1063
1059
  r.history.go(-1), o = setTimeout(l, n);
1064
1060
  }, a = () => {
1065
1061
  clearTimeout(o);
1066
- const u = _().history.state;
1067
- if (vr(u) && u.length > 0) {
1062
+ const u = C().history.state;
1063
+ if (mr(u) && u.length > 0) {
1068
1064
  let f = u.length;
1069
1065
  const c = u[f - 1], h = x.from(c);
1070
1066
  if (x.isSame(h, e))
@@ -1072,8 +1068,8 @@ var Wr = class {
1072
1068
  if (f > 0) {
1073
1069
  let y = !1;
1074
1070
  for (let d = f - 1; d >= 0; d--) {
1075
- const v = x.from(u[d]);
1076
- if (!(v.traceless === !0 || Qe(this.traceless, v)) && x.isSame(v, e)) {
1071
+ const m = x.from(u[d]);
1072
+ if (!(m.traceless === !0 || Qe(this.traceless, m)) && x.isSame(m, e)) {
1077
1073
  y = !0;
1078
1074
  break;
1079
1075
  }
@@ -1094,14 +1090,14 @@ var Wr = class {
1094
1090
  }
1095
1091
  push(e) {
1096
1092
  const t = this[xt](e.currentRoute);
1097
- e.currentRoute.historyUpdatePolicy !== "traceless" && !Qe(this.traceless, e.currentRoute) && _().history.pushState(e.routes, "", t), this.setRouteMark(e);
1093
+ e.currentRoute.historyUpdatePolicy !== "traceless" && !Qe(this.traceless, e.currentRoute) && C().history.pushState(e.routes, "", t), this.setRouteMark(e);
1098
1094
  }
1099
1095
  replace(e) {
1100
1096
  const t = this[xt](e.currentRoute);
1101
- (e.currentRoute.historyUpdatePolicy !== "traceless" || !Qe(this.traceless, e.currentRoute)) && _().history.replaceState(e.routes, "", t), this.setRouteMark(e);
1097
+ (e.currentRoute.historyUpdatePolicy !== "traceless" || !Qe(this.traceless, e.currentRoute)) && C().history.replaceState(e.routes, "", t), this.setRouteMark(e);
1102
1098
  }
1103
1099
  [xt](e) {
1104
- const t = _();
1100
+ const t = C();
1105
1101
  let r = "";
1106
1102
  if (e.query) {
1107
1103
  let o = "";
@@ -1120,7 +1116,7 @@ var Wr = class {
1120
1116
  }
1121
1117
  };
1122
1118
  function Bi(e = !0, t = null, r = "", s = !0, i = !1, n) {
1123
- return t !== null && (t = _().location.pathname), t && t.endsWith("/") && (t = t.substring(0, t.length - 1)), new Wr("path", t ?? "", r, e, s, i, n);
1119
+ return t !== null && (t = C().location.pathname), t && t.endsWith("/") && (t = t.substring(0, t.length - 1)), new Wr("path", t ?? "", r, e, s, i, n);
1124
1120
  }
1125
1121
  function Us(e = !0, t = "", r = !0, s = !1, i) {
1126
1122
  return new Wr("hash", "", t, e, r, s, i);
@@ -1150,7 +1146,7 @@ var Bs = class {
1150
1146
  listen(e) {
1151
1147
  this.changeHandler = e;
1152
1148
  }
1153
- [we](e) {
1149
+ [be](e) {
1154
1150
  typeof this.changeHandler == "function" && this.changeHandler(e);
1155
1151
  }
1156
1152
  go(e, t = !1) {
@@ -1161,7 +1157,7 @@ var Bs = class {
1161
1157
  let s = !1;
1162
1158
  if (typeof t == "function" ? s = t() : s = t, !s) {
1163
1159
  const i = this.queue[r];
1164
- this[we](i.routes);
1160
+ this[be](i.routes);
1165
1161
  }
1166
1162
  }
1167
1163
  }
@@ -1195,48 +1191,48 @@ var Bs = class {
1195
1191
  function Vs(e = "", t = 50) {
1196
1192
  return new Bs(e, t);
1197
1193
  }
1198
- var Ze = /* @__PURE__ */ Symbol("_constructRouteModel"), Ye = /* @__PURE__ */ Symbol("_findRouteModel"), Pt = /* @__PURE__ */ Symbol("_findRootView"), Ws = /* @__PURE__ */ Symbol("_getFirstView"), oe = /* @__PURE__ */ Symbol("_removeView"), mr = /* @__PURE__ */ Symbol("_buildPage"), pr = /* @__PURE__ */ Symbol("_resolveComponent"), gr = /* @__PURE__ */ Symbol("_update"), ee = /* @__PURE__ */ Symbol("_merge"), _t = /* @__PURE__ */ Symbol("_handleHistoryChange"), de = /* @__PURE__ */ Symbol("_handleRouteUpdated"), et = /* @__PURE__ */ Symbol("routeUpdatedCallback"), Ft = /* @__PURE__ */ Symbol("currentRoute"), g = /* @__PURE__ */ Symbol("currentRoutes"), tt = /* @__PURE__ */ Symbol("routeSessionCacheKey"), wr = /* @__PURE__ */ Symbol("_addRouteRecorder"), qe = /* @__PURE__ */ Symbol("_removeRouteRecorder"), $e = /* @__PURE__ */ Symbol("_cloneRouteRecorder"), A = /* @__PURE__ */ Symbol("_handleError"), rt = /* @__PURE__ */ Symbol("errorCallback"), H = /* @__PURE__ */ Symbol("registerKey"), st = /* @__PURE__ */ Symbol("notFoundKey"), Ct = /* @__PURE__ */ Symbol("notFoundPathKey"), U = /* @__PURE__ */ Symbol("forestKey"), S = /* @__PURE__ */ Symbol("historyKey"), Ke = /* @__PURE__ */ Symbol("beforeFiltersKey"), je = /* @__PURE__ */ Symbol("afterFiltersKey"), ke = /* @__PURE__ */ Symbol("destroyFiltersKey"), Et = /* @__PURE__ */ Symbol("propsFilterKey"), ve = /* @__PURE__ */ Symbol("mainDispatcherKey"), it = /* @__PURE__ */ Symbol("initKey"), le = /* @__PURE__ */ Symbol("readyKey"), nt = /* @__PURE__ */ Symbol("readyHandlersKey"), ot = /* @__PURE__ */ Symbol("_markReady"), br = /* @__PURE__ */ Symbol("_createNextFn"), At = /* @__PURE__ */ Symbol("_start"), qt = /* @__PURE__ */ Symbol("_before"), $t = /* @__PURE__ */ Symbol("_after"), Rr = /* @__PURE__ */ Symbol("_destroy"), Kt = /* @__PURE__ */ Symbol("_load"), Te = /* @__PURE__ */ Symbol("_unload"), Me = /* @__PURE__ */ Symbol("routerGuardKey");
1194
+ var Ze = /* @__PURE__ */ Symbol("_constructRouteModel"), Ye = /* @__PURE__ */ Symbol("_findRouteModel"), Pt = /* @__PURE__ */ Symbol("_findRootView"), Ws = /* @__PURE__ */ Symbol("_getFirstView"), le = /* @__PURE__ */ Symbol("_removeView"), vr = /* @__PURE__ */ Symbol("_buildPage"), pr = /* @__PURE__ */ Symbol("_resolveComponent"), gr = /* @__PURE__ */ Symbol("_update"), ee = /* @__PURE__ */ Symbol("_merge"), Ct = /* @__PURE__ */ Symbol("_handleHistoryChange"), me = /* @__PURE__ */ Symbol("_handleRouteUpdated"), et = /* @__PURE__ */ Symbol("routeUpdatedCallback"), _t = /* @__PURE__ */ Symbol("currentRoute"), g = /* @__PURE__ */ Symbol("currentRoutes"), tt = /* @__PURE__ */ Symbol("routeSessionCacheKey"), wr = /* @__PURE__ */ Symbol("_addRouteRecorder"), $e = /* @__PURE__ */ Symbol("_removeRouteRecorder"), Ke = /* @__PURE__ */ Symbol("_cloneRouteRecorder"), A = /* @__PURE__ */ Symbol("_handleError"), rt = /* @__PURE__ */ Symbol("errorCallback"), H = /* @__PURE__ */ Symbol("registerKey"), st = /* @__PURE__ */ Symbol("notFoundKey"), Ft = /* @__PURE__ */ Symbol("notFoundPathKey"), U = /* @__PURE__ */ Symbol("forestKey"), S = /* @__PURE__ */ Symbol("historyKey"), je = /* @__PURE__ */ Symbol("beforeFiltersKey"), ke = /* @__PURE__ */ Symbol("afterFiltersKey"), Te = /* @__PURE__ */ Symbol("destroyFiltersKey"), Et = /* @__PURE__ */ Symbol("propsFilterKey"), ve = /* @__PURE__ */ Symbol("mainDispatcherKey"), it = /* @__PURE__ */ Symbol("initKey"), ae = /* @__PURE__ */ Symbol("readyKey"), nt = /* @__PURE__ */ Symbol("readyHandlersKey"), ot = /* @__PURE__ */ Symbol("_markReady"), br = /* @__PURE__ */ Symbol("_createNextFn"), At = /* @__PURE__ */ Symbol("_start"), qt = /* @__PURE__ */ Symbol("_before"), $t = /* @__PURE__ */ Symbol("_after"), Rr = /* @__PURE__ */ Symbol("_destroy"), Kt = /* @__PURE__ */ Symbol("_load"), Me = /* @__PURE__ */ Symbol("_unload"), te = /* @__PURE__ */ Symbol("routerGuardKey");
1199
1195
  function zs(e) {
1200
1196
  return e.layers.length == 0 || e.layers[0].views.length == 0;
1201
1197
  }
1202
1198
  var Js = class {
1203
1199
  [H] = new Array();
1204
1200
  [st];
1205
- [Ct] = "*";
1206
- [le] = !1;
1201
+ [Ft] = "*";
1202
+ [ae] = !1;
1207
1203
  [nt] = [];
1208
1204
  [U] = new Hs();
1209
1205
  [S];
1210
1206
  [g] = new Array();
1211
- [Ft] = jr(null);
1207
+ [_t] = jr(null);
1212
1208
  [tt] = /* @__PURE__ */ new WeakMap();
1213
1209
  [rt] = null;
1214
1210
  [et] = null;
1215
- [Ke] = new Array();
1216
1211
  [je] = new Array();
1217
1212
  [ke] = new Array();
1213
+ [Te] = new Array();
1218
1214
  [Et] = null;
1219
1215
  [ve] = new ft();
1220
- [Me] = new Ns();
1216
+ [te] = new Ns();
1221
1217
  [it] = !1;
1222
1218
  get currentRoute() {
1223
- return ys(this[Ft]);
1219
+ return ys(this[_t]);
1224
1220
  }
1225
1221
  options;
1226
1222
  constructor(e) {
1227
1223
  this.options = e ?? {}, this.options.notFoundPath && this.setNotFoundPath(this.options.notFoundPath);
1228
1224
  let t = this.options.routes || [];
1229
- this.addRoutes(t), this.options.notFound && this.setNotFoundRoute(this.options.notFound), e.history ? this[S] = e.history : this[S] = Re ? Us() : Vs(), this[S]?.listen(async (r) => {
1225
+ this.addRoutes(t), this.options.notFound && this.setNotFoundRoute(this.options.notFound), e.history ? this[S] = e.history : this[S] = Se ? Us() : Vs(), this[S]?.listen(async (r) => {
1230
1226
  let s = !0;
1231
1227
  try {
1232
1228
  if (typeof r == "string") {
1233
1229
  const i = this[M](r);
1234
- i && await this[_t]([i]);
1235
- } else await this[_t](r);
1230
+ i && await this[Ct]([i]);
1231
+ } else await this[Ct](r);
1236
1232
  } catch (i) {
1237
1233
  console.error(i.message, i), s = !1;
1238
1234
  }
1239
- this[le] === !1 && this[ot](s);
1235
+ this[ae] === !1 && this[ot](s);
1240
1236
  });
1241
1237
  }
1242
1238
  [A](e = "error", t) {
@@ -1251,18 +1247,18 @@ var Js = class {
1251
1247
  console.error(e);
1252
1248
  }
1253
1249
  init() {
1254
- this[it] !== !0 && (this[S]?.init(!this[le]), this[it] = !0);
1250
+ this[it] !== !0 && (this[S]?.init(!this[ae]), this[it] = !0);
1255
1251
  }
1256
1252
  destroy() {
1257
1253
  this[S]?.destroy(), this[it] = !1;
1258
1254
  }
1259
1255
  isReady() {
1260
- return this[le] ? Promise.resolve() : new Promise((e, t) => {
1256
+ return this[ae] ? Promise.resolve() : new Promise((e, t) => {
1261
1257
  this[nt].push([e, t]);
1262
1258
  });
1263
1259
  }
1264
1260
  [ot](e) {
1265
- this[le] = !0, this[nt].forEach(([t, r]) => {
1261
+ this[ae] = !0, this[nt].forEach(([t, r]) => {
1266
1262
  try {
1267
1263
  e ? t() : r();
1268
1264
  } catch (s) {
@@ -1270,11 +1266,11 @@ var Js = class {
1270
1266
  }
1271
1267
  }), this[nt] = [];
1272
1268
  }
1273
- [_t](e) {
1269
+ [Ct](e) {
1274
1270
  try {
1275
1271
  if (!e) {
1276
1272
  let n = [...this[g]].reverse();
1277
- return this[Te](n), Re && _().location.reload(), Promise.resolve();
1273
+ return this[Me](n), Se && C().location.reload(), Promise.resolve();
1278
1274
  }
1279
1275
  let t = null, r = [], s = [], i = 0;
1280
1276
  for (; i < e.length && i < this[g].length && x.isSame(e[i], this[g][i]); i++)
@@ -1285,7 +1281,7 @@ var Js = class {
1285
1281
  if (i < this[g].length && (s = this[g].slice(i).reverse()), s.length === 0 && r.length === 0) {
1286
1282
  if (t !== null) return this.restore([t]);
1287
1283
  } else if (s.length > 0) {
1288
- if (this[Te](s)) {
1284
+ if (this[Me](s)) {
1289
1285
  if (r.length > 0) return this.restore(r);
1290
1286
  if (t !== null) return this.restore([t]);
1291
1287
  }
@@ -1295,14 +1291,14 @@ var Js = class {
1295
1291
  }
1296
1292
  return Promise.resolve();
1297
1293
  }
1298
- [de](e = null) {
1299
- if (this[Ft].value = e, typeof this[et] == "function") try {
1294
+ [me](e = null) {
1295
+ if (this[_t].value = e, typeof this[et] == "function") try {
1300
1296
  this[et](e);
1301
1297
  } catch {
1302
1298
  }
1303
1299
  }
1304
1300
  [wr](e, t) {
1305
- if (e.opsType === F.Open) {
1301
+ if (e.opsType === _.Open) {
1306
1302
  let r = !1;
1307
1303
  const s = this[g].length - 1;
1308
1304
  for (let i = s; i >= 0; i--) {
@@ -1317,9 +1313,9 @@ var Js = class {
1317
1313
  }
1318
1314
  r || this[g].push(e);
1319
1315
  } else this[g].push(e);
1320
- this[tt].set(e, t), this[de](e);
1316
+ this[tt].set(e, t), this[me](e);
1321
1317
  }
1322
- [$e]() {
1318
+ [Ke]() {
1323
1319
  let e = [];
1324
1320
  for (let t of this[g]) {
1325
1321
  let r = x.clone(t, !0);
@@ -1327,9 +1323,9 @@ var Js = class {
1327
1323
  }
1328
1324
  return e;
1329
1325
  }
1330
- [qe](e) {
1326
+ [$e](e) {
1331
1327
  if (!this[g]) {
1332
- this[de](null);
1328
+ this[me](null);
1333
1329
  return;
1334
1330
  }
1335
1331
  let t = -1;
@@ -1348,7 +1344,7 @@ var Js = class {
1348
1344
  r = s;
1349
1345
  break;
1350
1346
  }
1351
- r !== -1 ? this[de](this[g][r]) : this[de](null);
1347
+ r !== -1 ? this[me](this[g][r]) : this[me](null);
1352
1348
  }
1353
1349
  set historyMonitor(e) {
1354
1350
  this[S] && (this[S].historyMonitor = e);
@@ -1362,6 +1358,12 @@ var Js = class {
1362
1358
  get traceless() {
1363
1359
  return this[S]?.traceless ?? !1;
1364
1360
  }
1361
+ set submitCooldownTime(e) {
1362
+ this[te] && (this[te].submitCooldownTime = e);
1363
+ }
1364
+ get submitCooldownTime() {
1365
+ return this[te]?.submitCooldownTime ?? 0;
1366
+ }
1365
1367
  set propsFilter(e) {
1366
1368
  this[Et] = e;
1367
1369
  }
@@ -1369,7 +1371,7 @@ var Js = class {
1369
1371
  return this[Et];
1370
1372
  }
1371
1373
  setRestorePoint() {
1372
- const e = this[$e]();
1374
+ const e = this[Ke]();
1373
1375
  this[S]?.setRestorePoint(e);
1374
1376
  }
1375
1377
  onRouteUpdated(e) {
@@ -1379,25 +1381,25 @@ var Js = class {
1379
1381
  this[rt] = e;
1380
1382
  }
1381
1383
  beforeEach(e) {
1382
- this[Ke].push(e);
1384
+ this[je].push(e);
1383
1385
  }
1384
1386
  removeBeforeEach(e) {
1385
- const t = this[Ke].indexOf(e);
1386
- return t !== -1 ? (this[Ke].splice(t, 1), !0) : !1;
1387
+ const t = this[je].indexOf(e);
1388
+ return t !== -1 ? (this[je].splice(t, 1), !0) : !1;
1387
1389
  }
1388
1390
  afterEach(e) {
1389
- this[je].push(e);
1391
+ this[ke].push(e);
1390
1392
  }
1391
1393
  removeAfterEach(e) {
1392
- const t = this[je].indexOf(e);
1393
- return t !== -1 ? (this[je].splice(t, 1), !0) : !1;
1394
+ const t = this[ke].indexOf(e);
1395
+ return t !== -1 ? (this[ke].splice(t, 1), !0) : !1;
1394
1396
  }
1395
1397
  destroyEach(e) {
1396
- this[ke].push(e);
1398
+ this[Te].push(e);
1397
1399
  }
1398
1400
  removeDestroyEach(e) {
1399
- const t = this[ke].indexOf(e);
1400
- return t !== -1 ? (this[ke].splice(t, 1), !0) : !1;
1401
+ const t = this[Te].indexOf(e);
1402
+ return t !== -1 ? (this[Te].splice(t, 1), !0) : !1;
1401
1403
  }
1402
1404
  beforeRestoreEach(e) {
1403
1405
  this[S]?.beforeRestoreEach(e);
@@ -1409,7 +1411,7 @@ var Js = class {
1409
1411
  for (let t of e) this.addRoute(t);
1410
1412
  }
1411
1413
  addRoute(e, t = -1) {
1412
- if (e.path === this[Ct]) {
1414
+ if (e.path === this[Ft]) {
1413
1415
  this.setNotFoundRoute(e);
1414
1416
  return;
1415
1417
  }
@@ -1437,7 +1439,7 @@ var Js = class {
1437
1439
  }) !== -1;
1438
1440
  }
1439
1441
  setNotFoundPath(e) {
1440
- this[Ct] = e;
1442
+ this[Ft] = e;
1441
1443
  }
1442
1444
  setNotFoundRoute(e) {
1443
1445
  const t = this[Ze](e);
@@ -1533,25 +1535,25 @@ var Js = class {
1533
1535
  let r = t.path.indexOf("?");
1534
1536
  r !== -1 && r < t.path.length - 1 && (t.query = t.path.substring(r + 1), t.path = t.path.substring(0, r));
1535
1537
  }
1536
- t.root = t.root ?? "default", t.opsType = t.opsType ?? this.options.defaultOperationType ?? F.Push, t.traceless && !t.historyUpdatePolicy && (t.historyUpdatePolicy = "traceless");
1538
+ t.root = t.root ?? "default", t.opsType = t.opsType ?? this.options.defaultOperationType ?? _.Push, t.traceless && !t.historyUpdatePolicy && (t.historyUpdatePolicy = "traceless");
1537
1539
  }
1538
1540
  return t;
1539
1541
  }
1540
1542
  push(...e) {
1541
1543
  const t = this[M](e);
1542
- return t ? (t.opsType = F.Push, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "push", this.to(t)) : (this[A]("resolve route fail", t), this);
1544
+ return t ? (t.opsType = _.Push, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "push", this.to(t)) : (this[A]("resolve route fail", t), this);
1543
1545
  }
1544
1546
  put(...e) {
1545
1547
  const t = this[M](e);
1546
- return t ? (t.opsType = F.Put, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "traceless", this.to(t)) : (this[A]("resolve route fail", t), this);
1548
+ return t ? (t.opsType = _.Put, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "traceless", this.to(t)) : (this[A]("resolve route fail", t), this);
1547
1549
  }
1548
1550
  replace(...e) {
1549
1551
  const t = this[M](e);
1550
- return t ? (t.opsType = F.Replace, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "replace", this.to(t)) : (this[A]("resolve route fail", t), this);
1552
+ return t ? (t.opsType = _.Replace, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "replace", this.to(t)) : (this[A]("resolve route fail", t), this);
1551
1553
  }
1552
1554
  append(...e) {
1553
1555
  const t = this[M](e);
1554
- return t ? (t.opsType = F.Append, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "push", this.to(t)) : (this[A]("resolve route fail", t), this);
1556
+ return t ? (t.opsType = _.Append, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "push", this.to(t)) : (this[A]("resolve route fail", t), this);
1555
1557
  }
1556
1558
  remove(e, t) {
1557
1559
  return new Promise((r) => {
@@ -1565,7 +1567,7 @@ var Js = class {
1565
1567
  if (e) {
1566
1568
  if (n = e.root ?? "default", e.all) for (let f = l; f > 0; f--) {
1567
1569
  const c = this[g][f];
1568
- if (c.opsType === F.Append) {
1570
+ if (c.opsType === _.Append) {
1569
1571
  const h = c.root ?? "default";
1570
1572
  if (n && n !== h) continue;
1571
1573
  o.splice(0, 0, c), i = f - 1;
@@ -1573,7 +1575,7 @@ var Js = class {
1573
1575
  }
1574
1576
  else if (e.until) for (let f = l; f > 0; f--) {
1575
1577
  let c = this[g][f];
1576
- if (c.opsType === F.Append && c.root === n) {
1578
+ if (c.opsType === _.Append && c.root === n) {
1577
1579
  if (e.until.charAt(0) === "/" && e.until === c.path) {
1578
1580
  i = f;
1579
1581
  break;
@@ -1586,7 +1588,7 @@ var Js = class {
1586
1588
  }
1587
1589
  else if (e.to) for (let f = l; f > 0; f--) {
1588
1590
  const c = this[g][f];
1589
- if (c.opsType === F.Append) {
1591
+ if (c.opsType === _.Append) {
1590
1592
  const h = c.root ?? "default";
1591
1593
  if (n && n !== h) continue;
1592
1594
  if (o.splice(0, 0, c), e.to.charAt(0) === "/" && e.to === c.path) {
@@ -1600,7 +1602,7 @@ var Js = class {
1600
1602
  }
1601
1603
  } else for (let f = l; f > 0; f--) {
1602
1604
  let c = this[g][f];
1603
- if (c.opsType === F.Append) {
1605
+ if (c.opsType === _.Append) {
1604
1606
  o.push(c), i = f - 1;
1605
1607
  break;
1606
1608
  }
@@ -1611,14 +1613,14 @@ var Js = class {
1611
1613
  return;
1612
1614
  }
1613
1615
  const u = i !== -1 ? this[g][i] : null;
1614
- if (this[Te](o)) {
1616
+ if (this[Me](o)) {
1615
1617
  if (t === !1)
1616
1618
  return s.resolve(), r(!0), !0;
1617
1619
  const f = () => (s.resolve(), r(!0), !0), c = this[g].length;
1618
1620
  if (u && x.isSame(u, this[g][c - 1])) {
1619
1621
  if (a?.historyUpdatePolicy === "traceless") {
1620
1622
  let h = x.clone(u, !0);
1621
- const y = new Rt(h, this[$e]());
1623
+ const y = new Rt(h, this[Ke]());
1622
1624
  this[S]?.replace(y), f();
1623
1625
  } else this[S]?.goBack(u, f);
1624
1626
  return;
@@ -1633,7 +1635,7 @@ var Js = class {
1633
1635
  }
1634
1636
  open(...e) {
1635
1637
  const t = this[M](e);
1636
- return t ? (t.opsType = F.Open, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "push", this.to(t)) : (this[A]("resolve route fail", t), this);
1638
+ return t ? (t.opsType = _.Open, t.historyUpdatePolicy = t.historyUpdatePolicy ?? "push", this.to(t)) : (this[A]("resolve route fail", t), this);
1637
1639
  }
1638
1640
  close(e) {
1639
1641
  return this[ve].post((t) => {
@@ -1664,7 +1666,7 @@ var Js = class {
1664
1666
  t.resolve();
1665
1667
  return;
1666
1668
  }
1667
- this[Te](s), t.resolve();
1669
+ this[Me](s), t.resolve();
1668
1670
  } catch (r) {
1669
1671
  this[A](r), t.resolve();
1670
1672
  }
@@ -1674,32 +1676,32 @@ var Js = class {
1674
1676
  const t = this[M](e);
1675
1677
  if (!t)
1676
1678
  return this[A]("resolve route fail", t), this;
1677
- const r = this[Me].acquire(t);
1678
- return r == null ? (this[A]("route forbid", t), this) : (this[ve].post((s) => {
1679
+ const r = this[te].acquire(t);
1680
+ return r ? (this[ve].post((s) => {
1679
1681
  try {
1680
1682
  let i = this[At](t);
1681
1683
  this[qt](i), this[Kt](i), this[$t](i), i.wait((n, o) => {
1682
1684
  const l = n.session.to;
1683
1685
  if (n.session.updateResult && n.session.updateResult.status === "success") try {
1684
1686
  let a = x.clone(l, !0);
1685
- const u = new Rt(a, this[$e]());
1687
+ const u = new Rt(a, this[Ke]());
1686
1688
  l.historyUpdatePolicy === "replace" ? this[S]?.replace(u) : l.historyUpdatePolicy === "traceless" ? this[S]?.setRouteMark(u) : this[S]?.push(u);
1687
1689
  } catch (a) {
1688
1690
  console.error(a.message, a);
1689
1691
  }
1690
- if (ze.clear(n.session), this[Me].release(r), typeof t.success == "function") try {
1692
+ if (ze.clear(n.session), this[te].release(r), typeof t.success == "function") try {
1691
1693
  Reflect.apply(t.success, {}, []);
1692
1694
  } catch (a) {
1693
1695
  console.error(a.message, a);
1694
1696
  }
1695
- this[le] === !1 && this[ot](!0), i = null, s.resolve();
1697
+ this[ae] === !1 && this[ot](!0), i = null, s.resolve();
1696
1698
  }, (n, o) => {
1697
- this[Me].release(r), o !== null && this[A](o, t), this[le] === !1 && this[ot](!1), ze.clear(n.session), i = null, s.resolve();
1699
+ this[te].release(r), o !== null && this[A](o, t), this[ae] === !1 && this[ot](!1), ze.clear(n.session), i = null, s.resolve();
1698
1700
  });
1699
1701
  } catch (i) {
1700
- this[Me].release(r), this[A](i, t), s.resolve();
1702
+ this[te].release(r), this[A](i, t), s.resolve();
1701
1703
  }
1702
- }), this);
1704
+ }), this) : (this[A]("route forbid", t), this);
1703
1705
  }
1704
1706
  back(e = 1) {
1705
1707
  this[S]?.go(-e, !1);
@@ -1736,7 +1738,7 @@ var Js = class {
1736
1738
  return new ft(r);
1737
1739
  }
1738
1740
  [qt](e) {
1739
- for (let t of this[Ke]) e.post((r) => {
1741
+ for (let t of this[je]) e.post((r) => {
1740
1742
  const s = this[br](r);
1741
1743
  Reflect.apply(t, {}, [
1742
1744
  r.session.to,
@@ -1748,7 +1750,7 @@ var Js = class {
1748
1750
  }
1749
1751
  [$t](e) {
1750
1752
  e.post((t) => {
1751
- for (let r of this[je]) try {
1753
+ for (let r of this[ke]) try {
1752
1754
  Reflect.apply(r, {}, [
1753
1755
  t.session.to,
1754
1756
  t.session.from,
@@ -1761,7 +1763,7 @@ var Js = class {
1761
1763
  });
1762
1764
  }
1763
1765
  [Rr](e, t) {
1764
- for (let r of this[ke]) try {
1766
+ for (let r of this[Te]) try {
1765
1767
  Reflect.apply(r, {}, [e, t]);
1766
1768
  } catch (s) {
1767
1769
  console.error(s.message, s);
@@ -1786,7 +1788,7 @@ var Js = class {
1786
1788
  }
1787
1789
  }
1788
1790
  const i = ze.from(t.session);
1789
- this[mr](r, s, i).then((n) => {
1791
+ this[vr](r, s, i).then((n) => {
1790
1792
  this[U], t.session.updateResult = n ?? {
1791
1793
  status: "success",
1792
1794
  message: ""
@@ -1796,7 +1798,7 @@ var Js = class {
1796
1798
  });
1797
1799
  });
1798
1800
  }
1799
- [Te](e) {
1801
+ [Me](e) {
1800
1802
  if (e.length == 0) return !0;
1801
1803
  let t = this[U], r = [];
1802
1804
  for (let s of e) {
@@ -1808,7 +1810,7 @@ var Js = class {
1808
1810
  }
1809
1811
  if (r.length == 0)
1810
1812
  return this[A]("can not find view index"), !1;
1811
- for (let s of r.reverse()) this[oe](t, {
1813
+ for (let s of r.reverse()) this[le](t, {
1812
1814
  x: s.x,
1813
1815
  y: s.y
1814
1816
  }, [s.route.index ?? 0], !0);
@@ -1833,12 +1835,12 @@ var Js = class {
1833
1835
  [Ws](e) {
1834
1836
  return e.layers.length > 0 && e.layers[0].views.length > 0 ? e.layers[0].views[0] : null;
1835
1837
  }
1836
- [oe](e, t, r = null, s = !0) {
1838
+ [le](e, t, r = null, s = !0) {
1837
1839
  if (t.y >= e.layers.length || t.x >= e.layers[t.y].views.length) return;
1838
1840
  let i = e.layers[t.y].views[t.x], n = !1, o = [], l = !1, a = [...i.slots.value];
1839
1841
  for (let f = a.length - 1; f >= 0; f--) {
1840
1842
  let c = a[f];
1841
- (!r || r.indexOf(c.index) != -1) && (c.route && i[V] && (this[qe](c.route), c.active === !0 && c.route.opsType == F.Append && (l = !0)), o.push(new I(i, c.index, t.y)), a.splice(f, 1));
1843
+ (!r || r.indexOf(c.index) != -1) && (c.route && i[V] && (this[$e](c.route), c.active === !0 && c.route.opsType == _.Append && (l = !0)), o.push(new I(i, c.index, t.y)), a.splice(f, 1));
1842
1844
  }
1843
1845
  if (a.length == 0)
1844
1846
  s ? i.slots.value = a : e.layers[t.y].views.splice(t.x, 1);
@@ -1855,11 +1857,11 @@ var Js = class {
1855
1857
  let f = e.layers[u].views, c = [];
1856
1858
  for (let h = f.length - 1; (n || o.length > 0) && h >= 0; h--) {
1857
1859
  let y = f[h];
1858
- if (y[ue] && (n || I.include(o, y[ue]))) {
1860
+ if (y[fe] && (n || I.include(o, y[fe]))) {
1859
1861
  let d = y.slots.value;
1860
- for (let v = d.length - 1; v >= 0; v--) {
1861
- let w = d[v];
1862
- w.route && y[V] && this[qe](w.route), c.push(new I(y, w.index, u)), d.splice(v, 1);
1862
+ for (let m = d.length - 1; m >= 0; m--) {
1863
+ let w = d[m];
1864
+ w.route && y[V] && this[$e](w.route), c.push(new I(y, w.index, u)), d.splice(m, 1);
1863
1865
  }
1864
1866
  e.layers[u].views.splice(h, 1);
1865
1867
  }
@@ -1874,7 +1876,7 @@ var Js = class {
1874
1876
  let r = t.layers[0].views;
1875
1877
  r.length > 0 && (r[0].slots.value = []);
1876
1878
  }
1877
- return this[g] = [], this[de](null), Promise.resolve();
1879
+ return this[g] = [], this[me](null), Promise.resolve();
1878
1880
  } else return new Promise((t, r) => {
1879
1881
  let s = null, i = !1;
1880
1882
  for (let n = 0; n < e.length; n++) {
@@ -1890,14 +1892,14 @@ var Js = class {
1890
1892
  }
1891
1893
  this[ve].post((n) => {
1892
1894
  if (s && i === !0) {
1893
- const o = x.clone(s, !0), l = new Rt(o, this[$e]());
1895
+ const o = x.clone(s, !0), l = new Rt(o, this[Ke]());
1894
1896
  this[S]?.replace(l);
1895
1897
  }
1896
1898
  n.resolve(), t();
1897
1899
  });
1898
1900
  });
1899
1901
  }
1900
- async [mr](e, t, r) {
1902
+ async [vr](e, t, r) {
1901
1903
  const s = e.updateType ?? gt.Part;
1902
1904
  await this[pr](t);
1903
1905
  const i = this[gr](t, e, r, s);
@@ -1928,7 +1930,7 @@ var Js = class {
1928
1930
  if (o || s === gt.All) {
1929
1931
  if (n.layers.length == 0 && (n.layers[0] = new wt()), n.layers[0].views.length == 0) {
1930
1932
  let c = t.root ?? "default";
1931
- u = new Ce(c, !0, null), n.layers[0].views = [u];
1933
+ u = new Ee(c, !0, null), n.layers[0].views = [u];
1932
1934
  } else u = n.layers[0].views[0];
1933
1935
  a = {
1934
1936
  x: 0,
@@ -1948,13 +1950,13 @@ var Js = class {
1948
1950
  let y;
1949
1951
  if (c.rootName) {
1950
1952
  let d = n.layers[h - 1];
1951
- for (let v of d.views) {
1952
- if (v[V] && v.name === c.rootName) {
1953
- y = new I(v, c.rootIndex ?? 0, h - 1);
1953
+ for (let m of d.views) {
1954
+ if (m[V] && m.name === c.rootName) {
1955
+ y = new I(m, c.rootIndex ?? 0, h - 1);
1954
1956
  break;
1955
1957
  }
1956
- if (v[B] && v[B].view.name === c.rootName && v[B].index === c.rootIndex) {
1957
- y = v[B];
1958
+ if (m[B] && m[B].view.name === c.rootName && m[B].index === c.rootIndex) {
1959
+ y = m[B];
1958
1960
  break;
1959
1961
  }
1960
1962
  }
@@ -1963,13 +1965,13 @@ var Js = class {
1963
1965
  status: "error",
1964
1966
  message: "can not insert view(not find root node ref)"
1965
1967
  };
1966
- u = new Ce(l, !0, y), n.layers[h].views.push(u), a = {
1968
+ u = new Ee(l, !0, y), n.layers[h].views.push(u), a = {
1967
1969
  x: n.layers[h].views.length - 1,
1968
1970
  y: h
1969
1971
  };
1970
1972
  }
1971
1973
  else u = n.layers[a.y].views[a.x];
1972
- if (f = a.y, u[V] = !0, t.opsType === F.Append) {
1974
+ if (f = a.y, u[V] = !0, t.opsType === _.Append) {
1973
1975
  t.index = t.index ?? Ie.get(), t.active = !0;
1974
1976
  let c = u.slots.value;
1975
1977
  if (c.length > 0) {
@@ -1978,9 +1980,9 @@ var Js = class {
1978
1980
  }
1979
1981
  let h = new Y(t, i, t.index, !0);
1980
1982
  u.slots.value = [...c, h];
1981
- let y = f + 1, d = 1, v = new I(u, t.index, f);
1982
- this[ee](n, y, e, d, v);
1983
- } else if (t.opsType === F.Open) {
1983
+ let y = f + 1, d = 1, m = new I(u, t.index, f);
1984
+ this[ee](n, y, e, d, m);
1985
+ } else if (t.opsType === _.Open) {
1984
1986
  let c = u.slots.value;
1985
1987
  const h = t.active ?? !0;
1986
1988
  let y = !1;
@@ -1999,8 +2001,8 @@ var Js = class {
1999
2001
  t.index = t.index ?? Ie.get(), t.active = h;
2000
2002
  let d = new Y(t, i, t.index, h);
2001
2003
  c.push(d);
2002
- let v = f + 1, w = 1, m = new I(u, t.index, f);
2003
- this[ee](n, v, e, w, m);
2004
+ let m = f + 1, w = 1, v = new I(u, t.index, f);
2005
+ this[ee](n, m, e, w, v);
2004
2006
  }
2005
2007
  u.slots.value = [...c];
2006
2008
  } else {
@@ -2012,59 +2014,59 @@ var Js = class {
2012
2014
  } else {
2013
2015
  let h = c[0];
2014
2016
  if (h.model !== i) {
2015
- this[oe](n, a, null, !0), t.index = t.index ?? Ie.get(), t.active = !0, u.slots.value = [new Y(t, i, t.index)];
2016
- let y = f + 1, d = 1, v = new I(u, t.index, f);
2017
- this[ee](n, y, e, d, v);
2017
+ this[le](n, a, null, !0), t.index = t.index ?? Ie.get(), t.active = !0, u.slots.value = [new Y(t, i, t.index)];
2018
+ let y = f + 1, d = 1, m = new I(u, t.index, f);
2019
+ this[ee](n, y, e, d, m);
2018
2020
  } else {
2019
- h.route !== null && this[qe](h.route);
2021
+ h.route !== null && this[$e](h.route);
2020
2022
  let y = !1;
2021
2023
  const d = t.active ?? !0;
2022
2024
  h.active !== d && (h.active = d, y = !0), t.active = d, t.index = h.index, h.route = t;
2023
- let v = [];
2024
- for (let K = 1; K < c.length; K++) v.push(c[K].index);
2025
- v.length > 0 ? this[oe](n, a, v, !0) : y && (u.slots.value = [...c]);
2026
- let w = [new I(u, t.index, f)], m = f + 1, p = 1, $ = new I(u, t.index, f);
2027
- for (; w.length > 0 && m < n.layers.length && p < e.layers.length; m++, p++) {
2025
+ let m = [];
2026
+ for (let K = 1; K < c.length; K++) m.push(c[K].index);
2027
+ m.length > 0 ? this[le](n, a, m, !0) : y && (u.slots.value = [...c]);
2028
+ let w = [new I(u, t.index, f)], v = f + 1, p = 1, $ = new I(u, t.index, f);
2029
+ for (; w.length > 0 && v < n.layers.length && p < e.layers.length; v++, p++) {
2028
2030
  let K = [];
2029
- for (let j = 0; j < n.layers[m].views.length; j++) {
2030
- let E = n.layers[m].views[j];
2031
- E[ue] && I.include(w, E[ue]) && K.unshift(j);
2031
+ for (let j = 0; j < n.layers[v].views.length; j++) {
2032
+ let E = n.layers[v].views[j];
2033
+ E[fe] && I.include(w, E[fe]) && K.unshift(j);
2032
2034
  }
2033
2035
  let _e = [];
2034
2036
  for (let j of K) {
2035
- let E = n.layers[m].views[j], se = e.layers[p].models, Q;
2036
- for (let k = 0; k < se.length; k++) if (E.name === se[k].name) {
2037
- Q = se[k];
2037
+ let E = n.layers[v].views[j], ie = e.layers[p].models, Q;
2038
+ for (let k = 0; k < ie.length; k++) if (E.name === ie[k].name) {
2039
+ Q = ie[k];
2038
2040
  break;
2039
2041
  }
2040
- if (!Q) this[oe](n, {
2042
+ if (!Q) this[le](n, {
2041
2043
  x: j,
2042
- y: m
2044
+ y: v
2043
2045
  }, null, !1);
2044
2046
  else {
2045
2047
  let k = E.slots.value;
2046
2048
  if (k.length == 0) {
2047
2049
  let z = 0;
2048
2050
  E.slots.value = [new Y(null, Q, z)];
2049
- let D = m + 1, N = p + 1;
2051
+ let D = v + 1, N = p + 1;
2050
2052
  this[ee](n, D, e, N, $);
2051
2053
  } else {
2052
2054
  let z = k[0];
2053
2055
  if (z.model !== Q) {
2054
- this[oe](n, {
2056
+ this[le](n, {
2055
2057
  x: j,
2056
- y: m
2058
+ y: v
2057
2059
  }, null, !0), E.slots.value = [new Y(null, Q, 0)];
2058
- let D = m + 1, N = p + 1;
2060
+ let D = v + 1, N = p + 1;
2059
2061
  this[ee](n, D, e, N, $);
2060
2062
  } else {
2061
- E[V] && z.route !== null && this[qe](z.route);
2063
+ E[V] && z.route !== null && this[$e](z.route);
2062
2064
  let D = [];
2063
2065
  for (let N = 1; N < k.length; N++) D.push(k[N].index);
2064
- D.length > 0 && this[oe](n, {
2066
+ D.length > 0 && this[le](n, {
2065
2067
  x: j,
2066
- y: m
2067
- }, D, !0), _e.push(new I(E, z.index, m));
2068
+ y: v
2069
+ }, D, !0), _e.push(new I(E, z.index, v));
2068
2070
  }
2069
2071
  }
2070
2072
  E[V] = !1;
@@ -2072,7 +2074,7 @@ var Js = class {
2072
2074
  }
2073
2075
  w = _e;
2074
2076
  }
2075
- this[ee](n, m, e, p, $);
2077
+ this[ee](n, v, e, p, $);
2076
2078
  }
2077
2079
  }
2078
2080
  }
@@ -2090,7 +2092,7 @@ var Js = class {
2090
2092
  for (; o < e.layers.length && n < r.layers.length; o++, n++) {
2091
2093
  let l = e.layers[o].views;
2092
2094
  for (let a of r.layers[n].models) {
2093
- let u = new Ce(a.name, !1, i), f = new Y(null, a);
2095
+ let u = new Ee(a.name, !1, i), f = new Y(null, a);
2094
2096
  u.slots.value = [f], l.push(u);
2095
2097
  }
2096
2098
  }
@@ -2098,7 +2100,7 @@ var Js = class {
2098
2100
  let l = new wt();
2099
2101
  l.views = [];
2100
2102
  for (let a of r.layers[n].models) {
2101
- let u = new Ce(a.name, !1, i), f = new Y(null, a);
2103
+ let u = new Ee(a.name, !1, i), f = new Y(null, a);
2102
2104
  u.slots.value = [f], l.views.push(u);
2103
2105
  }
2104
2106
  e.layers.push(l);
@@ -2111,7 +2113,7 @@ var Js = class {
2111
2113
  for (let c of u.views) {
2112
2114
  let h = !1;
2113
2115
  if (r !== null ? (h = c.name === e && c[B]?.view === r, h && s !== -1 && (h = c[B]?.index === s)) : h = c.name === e, !!h) {
2114
- i !== null && (c[ue] = {
2116
+ i !== null && (c[fe] = {
2115
2117
  view: i,
2116
2118
  index: n,
2117
2119
  level: t - 1
@@ -2131,8 +2133,8 @@ var Js = class {
2131
2133
  index: n,
2132
2134
  level: t - 1
2133
2135
  });
2134
- let a = new Ce(e, !0, o);
2135
- if (a[ue] = l, t == this[U].layers.length) {
2136
+ let a = new Ee(e, !0, o);
2137
+ if (a[fe] = l, t == this[U].layers.length) {
2136
2138
  let u = new wt();
2137
2139
  u.views = [a], this[U].layers.push(u);
2138
2140
  } else this[U].layers[t].views.push(a);
@@ -2161,12 +2163,12 @@ var Js = class {
2161
2163
  delete(e) {
2162
2164
  return this[Le].delete(e);
2163
2165
  }
2164
- }, re = /* @__PURE__ */ new WeakMap(), He = [];
2166
+ }, se = /* @__PURE__ */ new WeakMap(), He = [];
2165
2167
  function lt(e, t = !1) {
2166
- let r = e ? re.get(e) ?? null : null;
2168
+ let r = e ? se.get(e) ?? null : null;
2167
2169
  if (t && !r) {
2168
- r = new Gs(), e && re.set(e, r), Pe(() => {
2169
- e && re.delete(e);
2170
+ r = new Gs(), e && se.set(e, r), Ce(() => {
2171
+ e && se.delete(e);
2170
2172
  });
2171
2173
  const s = L(Ut, null);
2172
2174
  s && (r.parent = s), Z(Ut, r);
@@ -2174,8 +2176,8 @@ function lt(e, t = !1) {
2174
2176
  return r;
2175
2177
  }
2176
2178
  function ht(e) {
2177
- let t = e ? re.get(e) ?? null : null;
2178
- if (!t && xe() && (t = L(Ut, null)), !t && He.length > 0) {
2179
+ let t = e ? se.get(e) ?? null : null;
2180
+ if (!t && Pe() && (t = L(Ut, null)), !t && He.length > 0) {
2179
2181
  const r = He.length - 1;
2180
2182
  t = He[r];
2181
2183
  }
@@ -2194,11 +2196,11 @@ function Vi(e) {
2194
2196
  if (!t) return !1;
2195
2197
  const r = ht();
2196
2198
  if (!r) return !1;
2197
- if (re.set(t, r), Array.isArray(e))
2198
- for (let s = 0; s < e.length; s++) e[s] && typeof e[s] == "object" && re.set(e[s], r);
2199
- return Pe(() => {
2200
- if (re.delete(t), Array.isArray(e))
2201
- for (let s = 0; s < e.length; s++) e[s] && typeof e[s] == "object" && re.delete(e[s]);
2199
+ if (se.set(t, r), Array.isArray(e))
2200
+ for (let s = 0; s < e.length; s++) e[s] && typeof e[s] == "object" && se.set(e[s], r);
2201
+ return Ce(() => {
2202
+ if (se.delete(t), Array.isArray(e))
2203
+ for (let s = 0; s < e.length; s++) e[s] && typeof e[s] == "object" && se.delete(e[s]);
2202
2204
  }), !0;
2203
2205
  }
2204
2206
  function zr(e, t) {
@@ -2233,7 +2235,7 @@ function Pr(e, t) {
2233
2235
  }
2234
2236
  });
2235
2237
  }
2236
- var _r = /* @__PURE__ */ (function(e) {
2238
+ var Cr = /* @__PURE__ */ (function(e) {
2237
2239
  return e.INACTIVATED = "ia", e.ACTIVATED = "a", e;
2238
2240
  })({}), Zs = class {
2239
2241
  type;
@@ -2260,7 +2262,7 @@ function ei(e, t, r) {
2260
2262
  function Jr(e) {
2261
2263
  return (t) => {
2262
2264
  const r = zr(null, ct);
2263
- r && (Pe(() => {
2265
+ r && (Ce(() => {
2264
2266
  ei(r, e, t);
2265
2267
  }), Ys(r, e, t));
2266
2268
  };
@@ -2270,10 +2272,10 @@ var Ji = function(e) {
2270
2272
  }, Gi = function(e) {
2271
2273
  cs(e), Jr("ia")(e);
2272
2274
  }, Gr = /* @__PURE__ */ Symbol("routeKey");
2273
- function Fr(e, t) {
2275
+ function _r(e, t) {
2274
2276
  e.set(Gr, t);
2275
2277
  }
2276
- function Cr(e) {
2278
+ function Fr(e) {
2277
2279
  const t = zr(e ?? null, Gr);
2278
2280
  return typeof t == "function" ? t() : t;
2279
2281
  }
@@ -2348,17 +2350,17 @@ function rr(e) {
2348
2350
  hide: r
2349
2351
  }), t;
2350
2352
  }
2351
- function Se(e, t) {
2353
+ function xe(e, t) {
2352
2354
  e.classList.contains(t) || e.classList.add(t);
2353
2355
  }
2354
- function be(e, t) {
2356
+ function Re(e, t) {
2355
2357
  e.classList.remove(t);
2356
2358
  }
2357
- var vi = Re && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : setTimeout;
2359
+ var mi = Se && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : setTimeout;
2358
2360
  function yt(e) {
2359
- vi(e);
2361
+ mi(e);
2360
2362
  }
2361
- function C(e, t) {
2363
+ function F(e, t) {
2362
2364
  b(e) && Reflect.apply(e, null, t);
2363
2365
  }
2364
2366
  function es(e, t, r = -1, s, i, n) {
@@ -2411,14 +2413,14 @@ function es(e, t, r = -1, s, i, n) {
2411
2413
  }
2412
2414
  }
2413
2415
  function dt(e) {
2414
- return !Re || e === null ? !1 : e.opsType === F.Append || e.opsType === F.Open;
2416
+ return !Se || e === null ? !1 : e.opsType === _.Append || e.opsType === _.Open;
2415
2417
  }
2416
2418
  function ts(e, t, r = {}, s, i = -1) {
2417
2419
  if (e || dt(s)) {
2418
2420
  const n = Xr(r, e);
2419
- n && Se(t, n);
2421
+ n && xe(t, n);
2420
2422
  const o = Qr(r, e);
2421
- o && Se(t, o), C(li(r, e), [
2423
+ o && xe(t, o), F(li(r, e), [
2422
2424
  t,
2423
2425
  e,
2424
2426
  s,
@@ -2438,20 +2440,20 @@ function rs(e, t, r = {}, s, i, n, o) {
2438
2440
  }
2439
2441
  yt(() => {
2440
2442
  es(t, i, n, s, () => {
2441
- a && be(t, a), u && be(t, u), b(c) && C(c, [
2443
+ a && Re(t, a), u && Re(t, u), b(c) && F(c, [
2442
2444
  t,
2443
2445
  e,
2444
2446
  i,
2445
2447
  n
2446
2448
  ]), b(o) && o(o, [t]);
2447
2449
  }, () => {
2448
- b(h) && C(h, [
2450
+ b(h) && F(h, [
2449
2451
  t,
2450
2452
  e,
2451
2453
  i,
2452
2454
  n
2453
2455
  ]);
2454
- }), l && be(t, l), u && Se(t, u), b(f) && C(f, [
2456
+ }), l && Re(t, l), u && xe(t, u), b(f) && F(f, [
2455
2457
  t,
2456
2458
  e,
2457
2459
  i,
@@ -2462,9 +2464,9 @@ function rs(e, t, r = {}, s, i, n, o) {
2462
2464
  function ss(e, t, r = {}, s, i = -1) {
2463
2465
  if (e || dt(s)) {
2464
2466
  const n = Zr(r, e);
2465
- n && Se(t, n);
2467
+ n && xe(t, n);
2466
2468
  const o = Yr(r, e);
2467
- o && Se(t, o), C(ci(r, e), [
2469
+ o && xe(t, o), F(ci(r, e), [
2468
2470
  t,
2469
2471
  e,
2470
2472
  s,
@@ -2474,38 +2476,38 @@ function ss(e, t, r = {}, s, i = -1) {
2474
2476
  }
2475
2477
  function is(e, t, r = {}, s, i, n, o, l) {
2476
2478
  if (!dt(n) && !e) {
2477
- b(l) && C(l, [t]), !e && b(i) && i();
2479
+ b(l) && F(l, [t]), !e && b(i) && i();
2478
2480
  return;
2479
2481
  }
2480
2482
  const a = Zr(r, e), u = Yr(r, e), f = oi(r, e), c = hi(r, e), h = yi(r, e), y = di(r, e);
2481
2483
  if (!a && !u && !f && !c) {
2482
- b(l) && C(l, [t]), !e && b(i) && i();
2484
+ b(l) && F(l, [t]), !e && b(i) && i();
2483
2485
  return;
2484
2486
  }
2485
2487
  yt(() => {
2486
2488
  es(t, n, o, s, () => {
2487
2489
  try {
2488
- u && be(t, u), f && be(t, f), b(h) && C(h, [
2490
+ u && Re(t, u), f && Re(t, f), b(h) && F(h, [
2489
2491
  t,
2490
2492
  e,
2491
2493
  n,
2492
2494
  o
2493
- ]), b(l) && C(l, [t]);
2495
+ ]), b(l) && F(l, [t]);
2494
2496
  } finally {
2495
2497
  !e && b(i) && i();
2496
2498
  }
2497
2499
  }, () => {
2498
2500
  try {
2499
- b(y) && C(y, [
2501
+ b(y) && F(y, [
2500
2502
  t,
2501
2503
  e,
2502
2504
  n,
2503
2505
  o
2504
- ]), b(l) && C(l, [t]);
2506
+ ]), b(l) && F(l, [t]);
2505
2507
  } finally {
2506
2508
  !e && b(i) && i();
2507
2509
  }
2508
- }), a && be(t, a), f && Se(t, f), b(c) && C(c, [
2510
+ }), a && Re(t, a), f && xe(t, f), b(c) && F(c, [
2509
2511
  t,
2510
2512
  e,
2511
2513
  n,
@@ -2535,15 +2537,15 @@ function Vt(e, t = {}, r, s = -1) {
2535
2537
  function ns(e) {
2536
2538
  return e.el;
2537
2539
  }
2538
- function mi(e, t = {}, r, s, i, n) {
2540
+ function vi(e, t = {}, r, s, i, n) {
2539
2541
  if (i === !0) {
2540
2542
  const o = ns(e);
2541
2543
  if (o == null) return;
2542
2544
  const l = rr(t);
2543
2545
  ts(!0, o, t, r, s), rs(!0, o, t, l.show, r, s, (a) => {
2544
- b(n) && C(n, [a]);
2546
+ b(n) && F(n, [a]);
2545
2547
  });
2546
- } else b(n) && C(n, []);
2548
+ } else b(n) && F(n, []);
2547
2549
  }
2548
2550
  function pi(e, t = {}, r, s, i, n) {
2549
2551
  if (i === !0) {
@@ -2551,9 +2553,9 @@ function pi(e, t = {}, r, s, i, n) {
2551
2553
  if (o == null) return;
2552
2554
  const l = rr(t);
2553
2555
  ss(!0, o, t, r, s), is(!0, o, t, l.hide, null, r, s, (a) => {
2554
- b(n) && C(n, [a]);
2556
+ b(n) && F(n, [a]);
2555
2557
  });
2556
- } else b(n) && C(n, []);
2558
+ } else b(n) && F(n, []);
2557
2559
  }
2558
2560
  function gi(e) {
2559
2561
  yt(() => {
@@ -2581,7 +2583,7 @@ function os(e, t = {}, r, s = -1) {
2581
2583
  clone: (i) => os(e, t, r, s)
2582
2584
  };
2583
2585
  }
2584
- function te(e, t, r) {
2586
+ function re(e, t, r) {
2585
2587
  return typeof e == "function" ? Reflect.apply(e, {}, [t, r]) : e;
2586
2588
  }
2587
2589
  function Lt(e, t) {
@@ -2589,7 +2591,7 @@ function Lt(e, t) {
2589
2591
  const r = e(t);
2590
2592
  return r.length === 1 ? r[0] : r;
2591
2593
  }
2592
- function me(e, t) {
2594
+ function pe(e, t) {
2593
2595
  return typeof t == "function" ? t(e) : e;
2594
2596
  }
2595
2597
  var wi = class {
@@ -2796,7 +2798,7 @@ var wi = class {
2796
2798
  return;
2797
2799
  }
2798
2800
  const c = lt(u, !0);
2799
- c && (Qs(c), Fr(c, () => u?.route ?? null));
2801
+ c && (Qs(c), _r(c, () => u?.route ?? null));
2800
2802
  } else {
2801
2803
  if (i == null) {
2802
2804
  console.error("[Fox]router is not been injected");
@@ -2807,15 +2809,15 @@ var wi = class {
2807
2809
  Z(xr, a);
2808
2810
  const d = a[V] === !0;
2809
2811
  if (d && Z(Sr, a), !s && (Z(kt, -1), Z(jt, n + 1), Z(Tt, -1), d && r)) {
2810
- const v = lt(r, !0);
2811
- v && Fr(v, () => {
2812
+ const m = lt(r, !0);
2813
+ m && _r(m, () => {
2812
2814
  const w = a?.slots.value ?? [];
2813
2815
  return w.length > 0 ? w[0].route : null;
2814
2816
  });
2815
2817
  }
2816
2818
  }
2817
2819
  const f = { value: /* @__PURE__ */ new Map() };
2818
- return Pe(() => {
2820
+ return Ce(() => {
2819
2821
  if (f.value && f.value.clear(), u) {
2820
2822
  const c = u;
2821
2823
  c.route = null, c.model = null, c.instance = null, u = null;
@@ -2823,59 +2825,59 @@ var wi = class {
2823
2825
  }), () => {
2824
2826
  if (s) {
2825
2827
  const c = /* @__PURE__ */ new Map(), h = [], y = a?.slots.value, d = [];
2826
- for (let m = 0; m < y.length; m++) {
2827
- const p = y[m], $ = `${e.name}_${p.index}`, K = te(e.transition, p.route, m) ?? !0, _e = { modelSlot: p };
2828
+ for (let v = 0; v < y.length; v++) {
2829
+ const p = y[v], $ = `${e.name}_${p.index}`, K = re(e.transition, p.route, v) ?? !0, _e = { modelSlot: p };
2828
2830
  let j;
2829
- t.slots.default ? j = ae(Wt, _e, { default: t.slots.default }) : j = ae(Wt, _e);
2830
- const E = {}, se = te(e.viewClass, p.route, m);
2831
- typeof se == "string" && se.length > 0 && (E[se] = !0);
2832
- const Q = te(e.viewActiveClass, p.route, m), k = te(e.viewInactiveClass, p.route, m), z = f.value.get($);
2831
+ t.slots.default ? j = ue(Wt, _e, { default: t.slots.default }) : j = ue(Wt, _e);
2832
+ const E = {}, ie = re(e.viewClass, p.route, v);
2833
+ typeof ie == "string" && ie.length > 0 && (E[ie] = !0);
2834
+ const Q = re(e.viewActiveClass, p.route, v), k = re(e.viewInactiveClass, p.route, v), z = f.value.get($);
2833
2835
  if (typeof Q == "string" && Q.length > 0 && (E[Q] = p.active), typeof k == "string" && k.length > 0 && (E[k] = !p.active), z && p.active !== z.state) {
2834
- const he = z.node;
2836
+ const ye = z.node;
2835
2837
  p.active ? d.unshift(() => {
2836
- const vt = () => {
2838
+ const mt = () => {
2837
2839
  const Fe = lt(p);
2838
- Fe != null && Pr(Fe, _r.ACTIVATED);
2840
+ Fe != null && Pr(Fe, Cr.ACTIVATED);
2839
2841
  };
2840
- mi(he, e, p.route, m, K, vt);
2842
+ vi(ye, e, p.route, v, K, mt);
2841
2843
  }) : d.push(() => {
2842
- const vt = () => {
2844
+ const mt = () => {
2843
2845
  const Fe = lt(p);
2844
- Fe != null && Pr(Fe, _r.INACTIVATED);
2846
+ Fe != null && Pr(Fe, Cr.INACTIVATED);
2845
2847
  };
2846
- pi(he, e, p.route, m, K, vt);
2848
+ pi(ye, e, p.route, v, K, mt);
2847
2849
  });
2848
2850
  }
2849
2851
  const D = {
2850
2852
  class: E,
2851
2853
  key: $
2852
- }, N = te(e.viewTagProps, p.route, m);
2854
+ }, N = re(e.viewTagProps, p.route, v);
2853
2855
  if (N !== null && typeof N == "object") {
2854
- const he = me(N, i?.propsFilter);
2855
- q(!0, D, he);
2856
+ const ye = pe(N, i?.propsFilter);
2857
+ q(!0, D, ye);
2856
2858
  }
2857
2859
  if (p.route?.viewTagAttrs && typeof p.route?.viewTagAttrs == "object") {
2858
- const he = me(p.route.viewTagAttrs, i?.propsFilter);
2859
- q(!0, D, he);
2860
+ const ye = pe(p.route.viewTagAttrs, i?.propsFilter);
2861
+ q(!0, D, ye);
2860
2862
  }
2861
- const as = te(e.viewTag, p.route, m), ce = ae(as, D, { default: () => [j] });
2862
- c.set($, new wi(ce, p.active)), f.value.delete($), K === !0 ? ce.transition = Vt(ce, e, p.route, m) : K === "custom" && (ce.transition = os(ce, e, p.route, m)), h.push(ce);
2863
+ const as = re(e.viewTag, p.route, v), he = ue(as, D, { default: () => [j] });
2864
+ c.set($, new wi(he, p.active)), f.value.delete($), K === !0 ? he.transition = Vt(he, e, p.route, v) : K === "custom" && (he.transition = os(he, e, p.route, v)), h.push(he);
2863
2865
  }
2864
2866
  f.value = c, gi(d);
2865
- const v = te(e.tag, null, -1), w = {};
2866
- return Object.assign(w, t.attrs), ae(v, w, { default: () => h });
2867
+ const m = re(e.tag, null, -1), w = {};
2868
+ return Object.assign(w, t.attrs), ue(m, w, { default: () => h });
2867
2869
  } else if (u != null) {
2868
2870
  const c = u.model, h = {};
2869
2871
  if (c.props) {
2870
2872
  if (typeof c.props == "object") {
2871
- const d = me(c.props, i?.propsFilter);
2873
+ const d = pe(c.props, i?.propsFilter);
2872
2874
  q(!1, h, d);
2873
2875
  } else if (c.props === !0 && typeof u.route?.params == "object") {
2874
- const d = me(u.route.params, i?.propsFilter);
2876
+ const d = pe(u.route.params, i?.propsFilter);
2875
2877
  q(!1, h, d);
2876
2878
  }
2877
2879
  }
2878
- const y = ae(c.component, h);
2880
+ const y = ue(c.component, h);
2879
2881
  return Lt(t.slots.default, {
2880
2882
  Component: y,
2881
2883
  route: u.route
@@ -2883,18 +2885,18 @@ var wi = class {
2883
2885
  } else {
2884
2886
  const c = a?.slots.value ?? [];
2885
2887
  if (c.length > 0) {
2886
- const h = c[0], y = h.route, d = h.model, v = {};
2888
+ const h = c[0], y = h.route, d = h.model, m = {};
2887
2889
  if (d.props) {
2888
2890
  if (typeof d.props == "object") {
2889
- const m = me(d.props, i?.propsFilter);
2890
- q(!1, v, m);
2891
+ const v = pe(d.props, i?.propsFilter);
2892
+ q(!1, m, v);
2891
2893
  } else if (d.props === !0 && typeof y?.params == "object") {
2892
- const m = me(y.params, i?.propsFilter);
2893
- q(!1, v, m);
2894
+ const v = pe(y.params, i?.propsFilter);
2895
+ q(!1, m, v);
2894
2896
  }
2895
2897
  }
2896
- const w = ae(d.component, v);
2897
- return (te(e.transition, y, -1) ?? !0) && (w.transition = Vt(w, e, y, -1)), Lt(t.slots.default, {
2898
+ const w = ue(d.component, m);
2899
+ return (re(e.transition, y, -1) ?? !0) && (w.transition = Vt(w, e, y, -1)), Lt(t.slots.default, {
2898
2900
  Component: w,
2899
2901
  route: y
2900
2902
  }) ?? w;
@@ -2915,7 +2917,7 @@ function bi(e) {
2915
2917
  function Ri(e, t) {
2916
2918
  return e == null || t == null ? !1 : !!(e.path && t.path && t.path.startsWith(e.path) || e.name && e.name == t.name);
2917
2919
  }
2918
- function pe(e, t) {
2920
+ function ge(e, t) {
2919
2921
  return typeof e == "function" ? Reflect.apply(e, {}, [t]) : e;
2920
2922
  }
2921
2923
  var Si = $r({
@@ -2967,21 +2969,21 @@ var Si = $r({
2967
2969
  setup(e, t) {
2968
2970
  const r = L(Ne, null);
2969
2971
  return () => {
2970
- let s = pe(e.to, null), i = pe(e.tag, s);
2972
+ let s = ge(e.to, null), i = ge(e.tag, s);
2971
2973
  if (i == null) {
2972
2974
  console.warn("[Fox]can not resolve link tag");
2973
2975
  return;
2974
2976
  }
2975
2977
  let n = null, o = null;
2976
2978
  r !== null && (n = r[M](s), e.root && (n.root = e.root), o = r.currentRoute.value);
2977
- let l = {}, a = pe(e.activeClass, n);
2978
- if (typeof a == "string" && a.length > 0 && (l[a] = Ri(n, o)), pe(e.exact, n) === !0) {
2979
- let c = pe(e.exactActiveClass, n);
2979
+ let l = {}, a = ge(e.activeClass, n);
2980
+ if (typeof a == "string" && a.length > 0 && (l[a] = Ri(n, o)), ge(e.exact, n) === !0) {
2981
+ let c = ge(e.exactActiveClass, n);
2980
2982
  typeof c == "string" && c.length > 0 && (l[c] = x.isSamePathForRoute(n, o));
2981
2983
  }
2982
2984
  let u = { class: l };
2983
2985
  (i === "a" || i === "A") && (u.href = n?.path ?? n?.name ?? "#"), q(!0, u, t.attrs);
2984
- const f = pe(e.event, n);
2986
+ const f = ge(e.event, n);
2985
2987
  if (typeof f == "string") {
2986
2988
  const c = (h) => {
2987
2989
  if (r == null) {
@@ -2996,29 +2998,29 @@ var Si = $r({
2996
2998
  };
2997
2999
  u[f] = c;
2998
3000
  }
2999
- return ae(i, u, t.slots);
3001
+ return ue(i, u, t.slots);
3000
3002
  };
3001
3003
  }
3002
- }), ge = /* @__PURE__ */ Symbol("registerKey"), xi = class {
3004
+ }), we = /* @__PURE__ */ Symbol("registerKey"), xi = class {
3003
3005
  policy;
3004
3006
  callback;
3005
3007
  constructor(e, t) {
3006
3008
  this.callback = e, this.policy = t;
3007
3009
  }
3008
3010
  }, Er = class {
3009
- [ge] = /* @__PURE__ */ new Map();
3011
+ [we] = /* @__PURE__ */ new Map();
3010
3012
  constructor() {
3011
3013
  }
3012
3014
  on(e, t, r = !1) {
3013
- let s = this[ge].get(e);
3014
- s || (s = new Array(), this[ge].set(e, s));
3015
+ let s = this[we].get(e);
3016
+ s || (s = new Array(), this[we].set(e, s));
3015
3017
  let i = new xi(t, r === !0 ? 1 : 0);
3016
3018
  return s.push(i), this;
3017
3019
  }
3018
3020
  off(e, t) {
3019
3021
  if (!t)
3020
- return this[ge].delete(e), this;
3021
- let r = this[ge].get(e);
3022
+ return this[we].delete(e), this;
3023
+ let r = this[we].get(e);
3022
3024
  if (r) {
3023
3025
  for (let s = 0; s < r.length; s++) if (r[s].callback === t) {
3024
3026
  r.splice(s, 1);
@@ -3049,7 +3051,7 @@ var Si = $r({
3049
3051
  return this;
3050
3052
  }
3051
3053
  emit(e, ...t) {
3052
- let r = this[ge].get(e);
3054
+ let r = this[we].get(e);
3053
3055
  if (!r) return this;
3054
3056
  for (let s = 0; s < r.length; ) {
3055
3057
  let i = r[s];
@@ -3066,15 +3068,15 @@ var Si = $r({
3066
3068
  trigger(e, ...t) {
3067
3069
  return Reflect.apply(this.emit, this, [e, ...t]);
3068
3070
  }
3069
- }, Pi = "FoxRouterView", _i = "FoxRouterLink", X = /* @__PURE__ */ (function(e) {
3071
+ }, Pi = "FoxRouterView", Ci = "FoxRouterLink", X = /* @__PURE__ */ (function(e) {
3070
3072
  return e[e.Loading = 0] = "Loading", e[e.Loaded = 1] = "Loaded", e[e.Defining = 2] = "Defining", e[e.Defined = 3] = "Defined", e;
3071
3073
  })({});
3072
- function Fi(e) {
3074
+ function _i(e) {
3073
3075
  return e == 1 || e === 3;
3074
3076
  }
3075
3077
  var Ar = /* @__PURE__ */ (function(e) {
3076
3078
  return e[e.normal = 0] = "normal", e[e.factory = 1] = "factory", e;
3077
- })({}), Ci = class {
3079
+ })({}), Fi = class {
3078
3080
  register = /* @__PURE__ */ new Map();
3079
3081
  regExpRegisters = [];
3080
3082
  constructor() {
@@ -3121,7 +3123,7 @@ async function Ei(e) {
3121
3123
  return await new Function("url", "return import(url)")(e);
3122
3124
  }
3123
3125
  var qr = class {
3124
- moduleManager = new Ci();
3126
+ moduleManager = new Fi();
3125
3127
  _alias = {};
3126
3128
  set alias(e) {
3127
3129
  this._alias = e;
@@ -3180,10 +3182,10 @@ var qr = class {
3180
3182
  }
3181
3183
  getModuleExports(e) {
3182
3184
  const t = this.moduleManager.get(e);
3183
- return t && Fi(t.status) ? t.type === Ar.factory && typeof t.exports == "function" ? t.exports() : t.exports : null;
3185
+ return t && _i(t.status) ? t.type === Ar.factory && typeof t.exports == "function" ? t.exports() : t.exports : null;
3184
3186
  }
3185
3187
  exposeRequire(e = "__foxRequire", t, r) {
3186
- const s = t ?? _();
3188
+ const s = t ?? C();
3187
3189
  return s && typeof s == "object" ? (s[e] = (i) => {
3188
3190
  const n = this.getModuleExports(i);
3189
3191
  return r && !n && console.error(`[Fox] module:${i}, not found!`), n;
@@ -3368,7 +3370,7 @@ var qr = class {
3368
3370
  }
3369
3371
  const a = this.constructResourceUri(i.path);
3370
3372
  l.defer = !0, l.src = a;
3371
- const u = _(), f = this.createRequireLoad();
3373
+ const u = C(), f = this.createRequireLoad();
3372
3374
  u.__require = u.__require ?? u.require, u.require = f;
3373
3375
  const c = this.createDefine(o, f, t);
3374
3376
  u.__define = u.__define ?? u.define, u.define = c, typeof t.progress.finalCallback != "function" && (t.progress.finalCallback = function() {
@@ -3540,7 +3542,7 @@ function Xi(e = {}) {
3540
3542
  return Zt;
3541
3543
  },
3542
3544
  install(o, l = {}) {
3543
- o.provide(Ne, t), o.provide(zt, n), o.provide(Jt, r), o.provide(Gt, s), l.install !== !1 && (o.component(Pi, Wt), o.component(_i, Si)), l.optionsApi !== !1 && (Reflect.defineProperty(o.config.globalProperties, "$fox", { get() {
3545
+ o.provide(Ne, t), o.provide(zt, n), o.provide(Jt, r), o.provide(Gt, s), l.install !== !1 && (o.component(Pi, Wt), o.component(Ci, Si)), l.optionsApi !== !1 && (Reflect.defineProperty(o.config.globalProperties, "$fox", { get() {
3544
3546
  return n;
3545
3547
  } }), Reflect.defineProperty(o.config.globalProperties, "$router", { get() {
3546
3548
  return t;
@@ -3573,25 +3575,25 @@ function Xi(e = {}) {
3573
3575
  return n;
3574
3576
  }
3575
3577
  function ls(e) {
3576
- return xe() ? L(Ne, null) : e ? e.$?.appContext?.provides?.[Ne] ?? null : null;
3578
+ return Pe() ? L(Ne, null) : e ? e.$?.appContext?.provides?.[Ne] ?? null : null;
3577
3579
  }
3578
3580
  function $i(e) {
3579
- let t = Cr(e);
3580
- if (!t && e && !xe()) {
3581
+ let t = Fr(e);
3582
+ if (!t && e && !Pe()) {
3581
3583
  let r = e;
3582
- for (r = r.$parent; r && (t = Cr(r), !t); )
3584
+ for (r = r.$parent; r && (t = Fr(r), !t); )
3583
3585
  r = r.$parent;
3584
3586
  }
3585
3587
  return t;
3586
3588
  }
3587
3589
  function Qi(e) {
3588
- return xe() ? L(zt, null) : e ? e.$?.appContext?.provides?.[zt] ?? null : null;
3590
+ return Pe() ? L(zt, null) : e ? e.$?.appContext?.provides?.[zt] ?? null : null;
3589
3591
  }
3590
3592
  function Zi(e) {
3591
- return xe() ? L(Jt, null) : e ? e.$?.appContext?.provides?.[Jt] ?? null : null;
3593
+ return Pe() ? L(Jt, null) : e ? e.$?.appContext?.provides?.[Jt] ?? null : null;
3592
3594
  }
3593
3595
  function Yi(e) {
3594
- return xe() ? L(Gt, null) : e ? e.$?.appContext?.provides?.[Gt] ?? null : null;
3596
+ return Pe() ? L(Gt, null) : e ? e.$?.appContext?.provides?.[Gt] ?? null : null;
3595
3597
  }
3596
3598
  function en(e) {
3597
3599
  const t = ls();
@@ -3607,7 +3609,7 @@ function en(e) {
3607
3609
  }
3608
3610
  n();
3609
3611
  };
3610
- t?.beforeEach(r), Pe(() => {
3612
+ t?.beforeEach(r), Ce(() => {
3611
3613
  t?.removeBeforeEach(r);
3612
3614
  });
3613
3615
  }
@@ -3625,7 +3627,7 @@ function tn(e) {
3625
3627
  }
3626
3628
  n();
3627
3629
  };
3628
- t?.afterEach(r), Pe(() => {
3630
+ t?.afterEach(r), Ce(() => {
3629
3631
  t?.removeAfterEach(r);
3630
3632
  });
3631
3633
  }
@@ -3638,7 +3640,7 @@ export {
3638
3640
  ri as FoxEnter,
3639
3641
  ii as FoxLeave,
3640
3642
  Bt as FoxLeaveEnd,
3641
- F as OperationType,
3643
+ _ as OperationType,
3642
3644
  x as Route,
3643
3645
  Js as Router,
3644
3646
  Si as RouterLink,