vue-stack-tabs 0.1.40 → 0.1.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  var bn = Object.defineProperty;
2
2
  var vn = (t, e, n) => e in t ? bn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var wt = (t, e, n) => vn(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { inject as it, ref as D, reactive as Ee, readonly as kt, toRaw as mn, defineComponent as ee, openBlock as R, createElementBlock as V, createElementVNode as Q, createCommentVNode as se, unref as S, nextTick as ce, onMounted as Fe, onDeactivated as gn, onActivated as yn, onUnmounted as He, createVNode as $, resolveComponent as Zt, normalizeClass as ue, withModifiers as _e, toDisplayString as jt, normalizeStyle as at, Fragment as Ze, renderList as ct, createBlock as me, computed as we, renderSlot as xe, watch as wn, withDirectives as Xt, vShow as Gt, withCtx as le, TransitionGroup as Yt, mergeProps as kn, Transition as Kt, provide as _n, onBeforeMount as xn, onBeforeUnmount as _t, KeepAlive as Tn, resolveDynamicComponent as Sn, getCurrentInstance as Jt } from "vue";
4
+ import { inject as it, ref as D, reactive as Ie, readonly as kt, toRaw as mn, defineComponent as ee, openBlock as R, createElementBlock as V, createElementVNode as Q, createCommentVNode as se, unref as S, nextTick as le, onMounted as Fe, onDeactivated as gn, onActivated as yn, onUnmounted as He, createVNode as P, resolveComponent as Zt, normalizeClass as fe, withModifiers as _e, toDisplayString as jt, normalizeStyle as at, Fragment as Ze, renderList as ct, createBlock as me, computed as we, renderSlot as xe, watch as wn, withDirectives as Xt, vShow as Gt, withCtx as ue, TransitionGroup as Yt, mergeProps as kn, Transition as Kt, provide as _n, onBeforeMount as xn, onBeforeUnmount as _t, KeepAlive as Tn, resolveDynamicComponent as Sn, getCurrentInstance as Jt } from "vue";
5
5
  import { useRouter as lt, useRoute as On } from "vue-router";
6
6
  const An = {
7
7
  VueStackTab: {
@@ -102,11 +102,11 @@ function Qt(t, e) {
102
102
  }), { ...t || {}, ...e };
103
103
  }
104
104
  const Nn = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol", Pn = (t) => Nn ? Symbol(t) : "_vt_" + t, en = /* @__PURE__ */ Pn("i18n");
105
- function Be() {
105
+ function Me() {
106
106
  return it(en);
107
107
  }
108
108
  function Wn(t) {
109
- const e = Object.assign({ locale: "en", fallbackLocale: "en", messages: {} }, t), n = D(e.locale), s = Ee({});
109
+ const e = Object.assign({ locale: "en", fallbackLocale: "en", messages: {} }, t), n = D(e.locale), s = Ie({});
110
110
  return Object.entries(e.messages).forEach(([r, o]) => {
111
111
  s[r] = o;
112
112
  }), {
@@ -278,10 +278,10 @@ function We(t) {
278
278
  var e = new Error(t);
279
279
  return e.source = "ulid", e;
280
280
  }
281
- var ut = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", Se = ut.length, Tt = Math.pow(2, 48) - 1, qn = 10, Fn = 16;
281
+ var ut = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", Oe = ut.length, Tt = Math.pow(2, 48) - 1, qn = 10, Fn = 16;
282
282
  function Hn(t) {
283
- var e = Math.floor(t() * Se);
284
- return e === Se && (e = Se - 1), ut.charAt(e);
283
+ var e = Math.floor(t() * Oe);
284
+ return e === Oe && (e = Oe - 1), ut.charAt(e);
285
285
  }
286
286
  function Zn(t, e) {
287
287
  if (isNaN(t))
@@ -293,7 +293,7 @@ function Zn(t, e) {
293
293
  if (Number.isInteger(t) === !1)
294
294
  throw We("time must be an integer");
295
295
  for (var n = void 0, s = ""; e > 0; e--)
296
- n = t % Se, s = ut.charAt(n) + s, t = (t - n) / Se;
296
+ n = t % Oe, s = ut.charAt(n) + s, t = (t - n) / Oe;
297
297
  return s;
298
298
  }
299
299
  function jn(t, e) {
@@ -562,7 +562,7 @@ const Yn = new TextEncoder(), Kn = new TextDecoder("utf-8", { ignoreBOM: !0 }),
562
562
  decodeStr: (t) => St.decode(et.decode(t)),
563
563
  is: Qn
564
564
  };
565
- function Oe(t) {
565
+ function Ae(t) {
566
566
  if (!Number.isSafeInteger(t) || t < 0)
567
567
  throw new Error(`positive integer expected, not ${t}`);
568
568
  }
@@ -587,9 +587,9 @@ function on(t, e) {
587
587
  if (t.length < n)
588
588
  throw new Error(`digestInto() expects output buffer of length at least ${n}`);
589
589
  }
590
- const ze = /* @__PURE__ */ BigInt(2 ** 32 - 1), Ot = /* @__PURE__ */ BigInt(32);
590
+ const Re = /* @__PURE__ */ BigInt(2 ** 32 - 1), Ot = /* @__PURE__ */ BigInt(32);
591
591
  function At(t, e = !1) {
592
- return e ? { h: Number(t & ze), l: Number(t >> Ot & ze) } : { h: Number(t >> Ot & ze) | 0, l: Number(t & ze) | 0 };
592
+ return e ? { h: Number(t & Re), l: Number(t >> Ot & Re) } : { h: Number(t >> Ot & Re) | 0, l: Number(t & Re) | 0 };
593
593
  }
594
594
  /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
595
595
  const ts = (t) => new Uint8Array(t.buffer, t.byteOffset, t.byteLength), Ue = (t) => new Uint32Array(t.buffer, t.byteOffset, Math.floor(t.byteLength / 4)), qe = (t, e) => t << 32 - e | t >>> e, j = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68, an = (t) => t << 24 & 4278190080 | t << 8 & 16711680 | t >>> 8 & 65280 | t >>> 24 & 255, ns = j ? (t) => t : (t) => an(t);
@@ -617,7 +617,7 @@ function os(t) {
617
617
  }
618
618
  class is extends rs {
619
619
  constructor(e, n, s = {}, r, o, i) {
620
- if (super(), this.blockLen = e, this.outputLen = n, this.length = 0, this.pos = 0, this.finished = !1, this.destroyed = !1, Oe(e), Oe(n), Oe(r), n < 0 || n > r)
620
+ if (super(), this.blockLen = e, this.outputLen = n, this.length = 0, this.pos = 0, this.finished = !1, this.destroyed = !1, Ae(e), Ae(n), Ae(r), n < 0 || n > r)
621
621
  throw new Error("outputLen bigger than keyLen");
622
622
  if (s.key !== void 0 && (s.key.length < 1 || s.key.length > r))
623
623
  throw new Error(`key must be up 1..${r} byte long or undefined`);
@@ -695,7 +695,7 @@ const It = /* @__PURE__ */ (() => {
695
695
  })();
696
696
  class pt extends is {
697
697
  constructor(e = {}, n = 0) {
698
- if (super(64, e.dkLen === void 0 ? 32 : e.dkLen, {}, Number.MAX_SAFE_INTEGER, 0, 0), this.flags = 0, this.chunkPos = 0, this.chunksDone = 0, this.stack = [], this.posOut = 0, this.bufferOut32 = new Uint32Array(16), this.chunkOut = 0, this.enableXOF = !0, this.outputLen = e.dkLen === void 0 ? 32 : e.dkLen, Oe(this.outputLen), e.key !== void 0 && e.context !== void 0)
698
+ if (super(64, e.dkLen === void 0 ? 32 : e.dkLen, {}, Number.MAX_SAFE_INTEGER, 0, 0), this.flags = 0, this.chunkPos = 0, this.chunksDone = 0, this.stack = [], this.posOut = 0, this.bufferOut32 = new Uint32Array(16), this.chunkOut = 0, this.enableXOF = !0, this.outputLen = e.dkLen === void 0 ? 32 : e.dkLen, Ae(this.outputLen), e.key !== void 0 && e.context !== void 0)
699
699
  throw new Error("Blake3: only key or context can be specified at same time");
700
700
  if (e.key !== void 0) {
701
701
  const s = ht(e.key).slice();
@@ -774,7 +774,7 @@ class pt extends is {
774
774
  return this.writeInto(e);
775
775
  }
776
776
  xof(e) {
777
- return Oe(e), this.xofInto(new Uint8Array(e));
777
+ return Ae(e), this.xofInto(new Uint8Array(e));
778
778
  }
779
779
  digestInto(e) {
780
780
  if (on(e, this), this.finished)
@@ -897,24 +897,24 @@ const hs = {
897
897
  Q("div", { class: "stack-tab-loading--spin turn" }, null, -1)
898
898
  ]))) : se("", !0);
899
899
  }
900
- }), M = D([]), Ge = [], N = D([]), fe = /* @__PURE__ */ new Map(), Re = /* @__PURE__ */ new Set(), F = /* @__PURE__ */ new Set(), de = D(!0), Ye = "stacktab-active-tab", he = /* @__PURE__ */ new Map();
900
+ }), M = D([]), Ge = [], N = D([]), ae = /* @__PURE__ */ new Map(), Te = /* @__PURE__ */ new Set(), F = /* @__PURE__ */ new Set(), de = D(!0), Ye = "stacktab-active-tab", he = /* @__PURE__ */ new Map();
901
901
  let Mt = !1, De = 0, Ct = !1;
902
- const Me = () => {
902
+ const Ce = () => {
903
903
  const t = lt(), e = ge(), {
904
904
  t: n
905
- } = Be(), s = () => M.value.length, r = (v) => {
905
+ } = Me(), s = () => M.value.length, r = (v) => {
906
906
  for (const E of v) {
907
907
  const h = ne(E, {
908
908
  id: Qe(),
909
909
  refreshable: !0,
910
910
  closable: !0,
911
911
  iframe: !1
912
- }), L = nt(h), q = bt(h.path), W = ne(h, {
912
+ }), L = nt(h), q = bt(h.path), $ = ne(h, {
913
913
  closable: !0,
914
914
  refreshable: !0,
915
915
  iframe: !1
916
- }), Le = Bt(h.id, q.path, q.query), X = {
917
- id: Le,
916
+ }), ze = Bt(h.id, q.path, q.query), X = {
917
+ id: ze,
918
918
  tabId: h.id,
919
919
  path: q.path,
920
920
  query: ne(q.query, {
@@ -924,14 +924,14 @@ const Me = () => {
924
924
  ye.push(X);
925
925
  const Y = {
926
926
  id: h.id,
927
- title: W.title,
928
- closable: W.closable,
929
- refreshable: W.refreshable,
930
- iframe: W.iframe,
927
+ title: $.title,
928
+ closable: $.closable,
929
+ refreshable: $.refreshable,
930
+ iframe: $.iframe,
931
931
  active: !1,
932
932
  pages: ye
933
933
  };
934
- N.value.push(Le), Ge.push(Y), M.value.push({
934
+ N.value.push(ze), Ge.push(Y), M.value.push({
935
935
  ...Y
936
936
  });
937
937
  }
@@ -969,12 +969,15 @@ const Me = () => {
969
969
  iframe: !1
970
970
  }, v.query.__tab = nt(h)), F.has(h.id) || !b)
971
971
  return;
972
- const L = v.matched[v.matched.length - 1].path, q = v.path.endsWith("/") ? v.path.substring(0, v.path.length - 1) : v.path, W = Bt(h.id, L === q ? q : v.path, v.query.valueOf()), Le = v.query.__src;
972
+ const L = v.matched[v.matched.length - 1].path, q = v.path.endsWith("/") ? v.path.substring(0, v.path.length - 1) : v.path, $ = Bt(h.id, L === q ? q : v.path, v.query.valueOf());
973
+ if (Te.has($))
974
+ return ae.get($);
975
+ const ze = v.query.__src;
973
976
  let X = null;
974
977
  for (const Y of S(M))
975
978
  Y.active = !1, Y.id === h.id && (X = Y);
976
979
  const ye = {
977
- id: W,
980
+ id: $,
978
981
  tabId: h.id,
979
982
  path: v.path,
980
983
  query: v.query
@@ -987,7 +990,7 @@ const Me = () => {
987
990
  closable: h.closable,
988
991
  refreshable: h.refreshable,
989
992
  iframe: h.iframe,
990
- url: decodeURIComponent(Le),
993
+ url: decodeURIComponent(ze),
991
994
  active: !0,
992
995
  pages: Y
993
996
  }, f(X).then(() => {
@@ -998,8 +1001,8 @@ const Me = () => {
998
1001
  });
999
1002
  } else
1000
1003
  X.active = !0, (X.pages.isEmpty() || X.pages.peek().id !== ye.id) && X.pages.push(ye);
1001
- return U(X), fe.has(W) ? E = fe.get(W) : (E = /* @__PURE__ */ ee({
1002
- name: W,
1004
+ return U(X), ae.has($) ? E = ae.get($) : (E = /* @__PURE__ */ ee({
1005
+ name: $,
1003
1006
  components: {
1004
1007
  DynamicComponent: b
1005
1008
  },
@@ -1008,25 +1011,25 @@ const Me = () => {
1008
1011
  },
1009
1012
  setup(Y, yt) {
1010
1013
  return Fe(() => {
1011
- yt.emit("onLoaded"), k(W, ".cache-page-wrapper");
1014
+ yt.emit("onLoaded"), k($, ".cache-page-wrapper");
1012
1015
  }), gn(() => {
1013
- u(W);
1016
+ u($);
1014
1017
  }), yn(() => {
1015
- yt.emit("onLoaded"), p(W), P(), F.clear(), b.props = null;
1018
+ yt.emit("onLoaded"), p($), W(), F.clear(), b.props = null;
1016
1019
  }), He(() => {
1017
- l(W);
1018
- }), () => $("div", {
1020
+ l($);
1021
+ }), () => P("div", {
1019
1022
  class: "cache-page-wrapper",
1020
1023
  id: "W-" + h.id,
1021
1024
  style: [Ct ? "overflow:auto" : "overflow:hidden"]
1022
- }, [$(Zt("dynamic-component"), {
1025
+ }, [P(Zt("dynamic-component"), {
1023
1026
  tId: h.id,
1024
- pId: W
1025
- }, null), $(ps, {
1027
+ pId: $
1028
+ }, null), P(ps, {
1026
1029
  tId: h.id
1027
1030
  }, null)]);
1028
1031
  }
1029
- }), fe.set(W, E)), A(W), E;
1032
+ }), ae.set($, E)), A($), E;
1030
1033
  }, p = (v) => {
1031
1034
  const b = he.get(v);
1032
1035
  if (b) {
@@ -1062,7 +1065,7 @@ const Me = () => {
1062
1065
  const b = a(v.id);
1063
1066
  for (const E of b.pages.list())
1064
1067
  m(E.id), z(E.id);
1065
- P(), b.pages.clear();
1068
+ W(), b.pages.clear();
1066
1069
  }, B = (v) => {
1067
1070
  let b = "";
1068
1071
  const E = a(v);
@@ -1077,7 +1080,7 @@ const Me = () => {
1077
1080
  }
1078
1081
  return b !== "" && e.emit(Z.TAB_ACTIVE, {
1079
1082
  id: b
1080
- }), E != null && E.active || (P(), F.clear()), b;
1083
+ }), E != null && E.active || (W(), F.clear()), b;
1081
1084
  }, I = () => {
1082
1085
  const v = S(M);
1083
1086
  for (let b = v.length - 1; b >= 0; b--)
@@ -1088,7 +1091,7 @@ const Me = () => {
1088
1091
  }
1089
1092
  for (const b of v)
1090
1093
  if (b.active) {
1091
- P(), F.clear();
1094
+ W(), F.clear();
1092
1095
  return;
1093
1096
  }
1094
1097
  e.emit(Z.TAB_ACTIVE, {
@@ -1105,7 +1108,7 @@ const Me = () => {
1105
1108
  m(L.id), z(L.id), F.add(b[h].id);
1106
1109
  S(M)[h].pages.clear(), S(M).splice(h, 1);
1107
1110
  }
1108
- E.active ? (P(), F.clear()) : e.emit(Z.TAB_ACTIVE, {
1111
+ E.active ? (W(), F.clear()) : e.emit(Z.TAB_ACTIVE, {
1109
1112
  id: v
1110
1113
  });
1111
1114
  }, w = (v) => {
@@ -1124,7 +1127,7 @@ const Me = () => {
1124
1127
  }
1125
1128
  for (const h of E)
1126
1129
  if (h.active) {
1127
- P(), F.clear();
1130
+ W(), F.clear();
1128
1131
  return;
1129
1132
  }
1130
1133
  e.emit(Z.TAB_ACTIVE, {
@@ -1146,7 +1149,7 @@ const Me = () => {
1146
1149
  }
1147
1150
  for (const h of b)
1148
1151
  if (h.active) {
1149
- P(), F.clear();
1152
+ W(), F.clear();
1150
1153
  return;
1151
1154
  }
1152
1155
  e.emit(Z.TAB_ACTIVE, {
@@ -1159,7 +1162,7 @@ const Me = () => {
1159
1162
  const h = (b = E.pages.peek()) == null ? void 0 : b.id;
1160
1163
  for (let L = N.value.length - 1; L >= 0; L--)
1161
1164
  if (N.value[L] === h) {
1162
- N.value.splice(L, 1), E.active && (de.value = !1, ce(() => {
1165
+ N.value.splice(L, 1), E.active && (de.value = !1, le(() => {
1163
1166
  de.value = !0;
1164
1167
  }));
1165
1168
  break;
@@ -1175,23 +1178,23 @@ const Me = () => {
1175
1178
  const E = N.value[b];
1176
1179
  v.has(E) && N.value.splice(b, 1);
1177
1180
  }
1178
- ce(() => {
1179
- de.value = !1, ce(() => {
1181
+ le(() => {
1182
+ de.value = !1, le(() => {
1180
1183
  setTimeout(() => {
1181
1184
  de.value = !0;
1182
1185
  }, 300);
1183
1186
  });
1184
1187
  });
1185
1188
  }, d = (v, b) => {
1186
- fe.set(v, b);
1187
- }, x = (v) => fe.get(v), m = (v) => {
1188
- fe.delete(v);
1189
+ ae.set(v, b);
1190
+ }, x = (v) => ae.get(v), m = (v) => {
1191
+ ae.delete(v);
1189
1192
  }, z = (v) => {
1190
- Re.add(v);
1191
- }, P = () => {
1193
+ Te.add(v);
1194
+ }, W = () => {
1192
1195
  for (let v = N.value.length - 1; v >= 0; v--)
1193
- Re.has(N.value[v]) && S(N).splice(v, 1);
1194
- Re.clear();
1196
+ Te.has(N.value[v]) && (S(N).splice(v, 1), m(N.value[v]));
1197
+ Te.clear();
1195
1198
  }, G = (v) => {
1196
1199
  for (let b = N.value.length - 1; b >= 0; b--)
1197
1200
  v === N.value[b] && S(N).splice(b, 1);
@@ -1218,16 +1221,16 @@ const Me = () => {
1218
1221
  window.sessionStorage.setItem(Ye, JSON.stringify(v));
1219
1222
  }, re = () => {
1220
1223
  window.sessionStorage.removeItem(Ye);
1221
- }, Ce = () => {
1222
- de.value = !1, gt(), ce(() => {
1224
+ }, Le = () => {
1225
+ de.value = !1, gt(), le(() => {
1223
1226
  S(M).push(...Ge), e.emit(Z.TAB_ACTIVE, {
1224
1227
  id: Ge[0].id
1225
- }), ce(() => {
1228
+ }), le(() => {
1226
1229
  de.value = !0;
1227
1230
  });
1228
1231
  });
1229
1232
  }, gt = () => {
1230
- S(M).splice(0), fe.clear(), Re.clear(), F.clear(), S(N).splice(0);
1233
+ S(M).splice(0), ae.clear(), Te.clear(), F.clear(), S(N).splice(0);
1231
1234
  };
1232
1235
  return {
1233
1236
  tabs: M,
@@ -1242,7 +1245,7 @@ const Me = () => {
1242
1245
  size: s,
1243
1246
  active: C,
1244
1247
  destroy: gt,
1245
- reset: Ce,
1248
+ reset: Le,
1246
1249
  addCache: A,
1247
1250
  removeCache: G,
1248
1251
  getTab: a,
@@ -1259,7 +1262,7 @@ const Me = () => {
1259
1262
  getComponent: x,
1260
1263
  removeComponent: m,
1261
1264
  markDeletableCache: z,
1262
- removeDeletableCache: P,
1265
+ removeDeletableCache: W,
1263
1266
  refreshTab: g,
1264
1267
  refreshAllTabs: _,
1265
1268
  addPageScroller: k,
@@ -1268,7 +1271,7 @@ const Me = () => {
1268
1271
  },
1269
1272
  clearSession: re
1270
1273
  };
1271
- }, bs = { class: "stack-tab__contextmenu-item" }, ae = /* @__PURE__ */ ee({
1274
+ }, bs = { class: "stack-tab__contextmenu-item" }, ce = /* @__PURE__ */ ee({
1272
1275
  __name: "ContextMenuItem",
1273
1276
  props: {
1274
1277
  icon: {},
@@ -1277,7 +1280,7 @@ const Me = () => {
1277
1280
  setup(t) {
1278
1281
  return (e, n) => (R(), V("div", bs, [
1279
1282
  Q("div", {
1280
- class: ue(["stack-tab__contextmenu-icon", e.icon])
1283
+ class: fe(["stack-tab__contextmenu-icon", e.icon])
1281
1284
  }, null, 2),
1282
1285
  Q("div", {
1283
1286
  style: { "margin-left": "8px" },
@@ -1300,7 +1303,7 @@ const Me = () => {
1300
1303
  max: {}
1301
1304
  },
1302
1305
  setup(t) {
1303
- const e = t, { t: n } = Be(), s = D(), r = Ee({
1306
+ const e = t, { t: n } = Me(), s = D(), r = Ie({
1304
1307
  left: e.left,
1305
1308
  top: e.top
1306
1309
  }), {
@@ -1311,7 +1314,7 @@ const Me = () => {
1311
1314
  refreshTab: c,
1312
1315
  refreshAllTabs: p,
1313
1316
  removeOtherTabs: u
1314
- } = Me();
1317
+ } = Ce();
1315
1318
  return Fe(() => {
1316
1319
  const l = s.value ? s.value.clientWidth : 0, k = window.innerWidth;
1317
1320
  r.left + l > k && (r.left = k - l - 5);
@@ -1325,46 +1328,46 @@ const Me = () => {
1325
1328
  "z-index": S(nn)(".stack-tab,.stack-tab *")
1326
1329
  })
1327
1330
  }, [
1328
- $(ae, {
1331
+ P(ce, {
1329
1332
  icon: "stack-tab__icon-reload svg-mask",
1330
1333
  title: S(n)("VueStackTab.reload"),
1331
1334
  onClick: k[0] || (k[0] = (O) => S(c)(l.tabItem.id))
1332
1335
  }, null, 8, ["title"]),
1333
- $(ae, {
1336
+ P(ce, {
1334
1337
  icon: "stack-tab__icon-reload-all svg-mask",
1335
1338
  title: S(n)("VueStackTab.reloadAll"),
1336
1339
  onClick: S(p)
1337
1340
  }, null, 8, ["title", "onClick"]),
1338
- $(ae, {
1341
+ P(ce, {
1339
1342
  icon: "stack-tab__icon-close svg-mask",
1340
1343
  title: S(n)("VueStackTab.close"),
1341
1344
  disabled: l.tabItem.closable ? null : "disabled",
1342
1345
  onClick: k[1] || (k[1] = (O) => S(o)(l.tabItem.id))
1343
1346
  }, null, 8, ["title", "disabled"]),
1344
- $(ae, {
1347
+ P(ce, {
1345
1348
  icon: "stack-tab__icon-close-lefts svg-mask",
1346
1349
  title: S(n)("VueStackTab.closeLeft"),
1347
1350
  disabled: l.index <= 0 ? "disabled" : null,
1348
1351
  onClick: k[2] || (k[2] = (O) => S(f)(l.tabItem.id))
1349
1352
  }, null, 8, ["title", "disabled"]),
1350
- $(ae, {
1353
+ P(ce, {
1351
1354
  icon: "stack-tab__icon-close-rights svg-mask",
1352
1355
  title: S(n)("VueStackTab.closeRight"),
1353
1356
  disabled: l.index >= l.max - 1 ? "disabled" : null,
1354
1357
  onClick: k[3] || (k[3] = (O) => S(a)(l.tabItem.id))
1355
1358
  }, null, 8, ["title", "disabled"]),
1356
- $(ae, {
1359
+ P(ce, {
1357
1360
  icon: "stack-tab__icon-close-others svg-mask",
1358
1361
  title: S(n)("VueStackTab.closeOthers"),
1359
1362
  onClick: k[4] || (k[4] = (O) => S(u)(l.tabItem.id))
1360
1363
  }, null, 8, ["title"]),
1361
- $(ae, {
1364
+ P(ce, {
1362
1365
  icon: "stack-tab__icon-close-all svg-mask",
1363
1366
  title: S(n)("VueStackTab.closeAll"),
1364
1367
  onClick: S(i)
1365
1368
  }, null, 8, ["title", "onClick"]),
1366
1369
  l.contextMenu !== void 0 && l.contextMenu.length > 0 ? (R(), V("div", vs)) : se("", !0),
1367
- (R(!0), V(Ze, null, ct(l.contextMenu, (O, B) => (R(), me(ae, {
1370
+ (R(!0), V(Ze, null, ct(l.contextMenu, (O, B) => (R(), me(ce, {
1368
1371
  key: B,
1369
1372
  icon: O.icon,
1370
1373
  title: O.title,
@@ -1379,7 +1382,7 @@ const Me = () => {
1379
1382
  n[s] = r;
1380
1383
  return n;
1381
1384
  }, ys = /* @__PURE__ */ gs(ms, [["__scopeId", "data-v-d598be6e"]]), ws = () => {
1382
- const t = Ee({
1385
+ const t = Ie({
1383
1386
  item: {},
1384
1387
  index: -1,
1385
1388
  left: 0,
@@ -1392,7 +1395,7 @@ const Me = () => {
1392
1395
  document.removeEventListener("click", s);
1393
1396
  });
1394
1397
  const n = async (r, o, i, f) => {
1395
- e.value = !1, await ce(() => {
1398
+ e.value = !1, await le(() => {
1396
1399
  const { clientY: a, clientX: c } = r;
1397
1400
  e.value = !0, Object.assign(t, { item: o, index: i, top: a, left: c, max: f });
1398
1401
  });
@@ -1411,7 +1414,7 @@ const Me = () => {
1411
1414
  },
1412
1415
  emits: ["close", "active"],
1413
1416
  setup(t, { emit: e }) {
1414
- const n = e, s = ge(), { t: r } = Be(), o = D(), i = t;
1417
+ const n = e, s = ge(), { t: r } = Me(), o = D(), i = t;
1415
1418
  s.on(Z.TAB_ACTIVE, ({ id: p, isRoute: u }) => {
1416
1419
  i.item.id === p && c(u);
1417
1420
  });
@@ -1423,7 +1426,7 @@ const Me = () => {
1423
1426
  return (p, u) => (R(), V("li", {
1424
1427
  ref_key: "curtab",
1425
1428
  ref: o,
1426
- class: ue(["stack-tab__item", {
1429
+ class: fe(["stack-tab__item", {
1427
1430
  "is-active": p.item.active,
1428
1431
  "is-icon": p.item.closable
1429
1432
  }]),
@@ -1457,10 +1460,10 @@ var be = [], Ss = function() {
1457
1460
  typeof ErrorEvent == "function" ? t = new ErrorEvent("error", {
1458
1461
  message: Lt
1459
1462
  }) : (t = document.createEvent("Event"), t.initEvent("error", !1, !1), t.message = Lt), window.dispatchEvent(t);
1460
- }, Ie;
1463
+ }, Be;
1461
1464
  (function(t) {
1462
1465
  t.BORDER_BOX = "border-box", t.CONTENT_BOX = "content-box", t.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
1463
- })(Ie || (Ie = {}));
1466
+ })(Be || (Be = {}));
1464
1467
  var ve = function(t) {
1465
1468
  return Object.freeze(t);
1466
1469
  }, Es = /* @__PURE__ */ function() {
@@ -1508,7 +1511,7 @@ var ve = function(t) {
1508
1511
  return !0;
1509
1512
  }
1510
1513
  return !1;
1511
- }, Ae = typeof window < "u" ? window : {}, $e = /* @__PURE__ */ new WeakMap(), Rt = /auto|scroll/, Bs = /^tb|vertical/, Ms = /msie|trident/i.test(Ae.navigator && Ae.navigator.userAgent), K = function(t) {
1514
+ }, Ee = typeof window < "u" ? window : {}, $e = /* @__PURE__ */ new WeakMap(), Rt = /auto|scroll/, Bs = /^tb|vertical/, Ms = /msie|trident/i.test(Ee.navigator && Ee.navigator.userAgent), K = function(t) {
1512
1515
  return parseFloat(t || "0");
1513
1516
  }, ke = function(t, e, n) {
1514
1517
  return t === void 0 && (t = 0), e === void 0 && (e = 0), n === void 0 && (n = !1), new Es((n ? e : t) || 0, (n ? t : e) || 0);
@@ -1522,9 +1525,9 @@ var ve = function(t) {
1522
1525
  return $e.get(t);
1523
1526
  if (ln(t))
1524
1527
  return $e.set(t, Dt), Dt;
1525
- var n = getComputedStyle(t), s = vt(t) && t.ownerSVGElement && t.getBBox(), r = !Ms && n.boxSizing === "border-box", o = Bs.test(n.writingMode || ""), i = !s && Rt.test(n.overflowY || ""), f = !s && Rt.test(n.overflowX || ""), a = s ? 0 : K(n.paddingTop), c = s ? 0 : K(n.paddingRight), p = s ? 0 : K(n.paddingBottom), u = s ? 0 : K(n.paddingLeft), l = s ? 0 : K(n.borderTopWidth), k = s ? 0 : K(n.borderRightWidth), O = s ? 0 : K(n.borderBottomWidth), B = s ? 0 : K(n.borderLeftWidth), I = u + c, y = a + p, w = B + k, T = l + O, g = f ? t.offsetHeight - T - t.clientHeight : 0, _ = i ? t.offsetWidth - w - t.clientWidth : 0, d = r ? I + w : 0, x = r ? y + T : 0, m = s ? s.width : K(n.width) - d - _, z = s ? s.height : K(n.height) - x - g, P = m + I + _ + w, G = z + y + g + T, A = ve({
1528
+ var n = getComputedStyle(t), s = vt(t) && t.ownerSVGElement && t.getBBox(), r = !Ms && n.boxSizing === "border-box", o = Bs.test(n.writingMode || ""), i = !s && Rt.test(n.overflowY || ""), f = !s && Rt.test(n.overflowX || ""), a = s ? 0 : K(n.paddingTop), c = s ? 0 : K(n.paddingRight), p = s ? 0 : K(n.paddingBottom), u = s ? 0 : K(n.paddingLeft), l = s ? 0 : K(n.borderTopWidth), k = s ? 0 : K(n.borderRightWidth), O = s ? 0 : K(n.borderBottomWidth), B = s ? 0 : K(n.borderLeftWidth), I = u + c, y = a + p, w = B + k, T = l + O, g = f ? t.offsetHeight - T - t.clientHeight : 0, _ = i ? t.offsetWidth - w - t.clientWidth : 0, d = r ? I + w : 0, x = r ? y + T : 0, m = s ? s.width : K(n.width) - d - _, z = s ? s.height : K(n.height) - x - g, W = m + I + _ + w, G = z + y + g + T, A = ve({
1526
1529
  devicePixelContentBoxSize: ke(Math.round(m * devicePixelRatio), Math.round(z * devicePixelRatio), o),
1527
- borderBoxSize: ke(P, G, o),
1530
+ borderBoxSize: ke(W, G, o),
1528
1531
  contentBoxSize: ke(m, z, o),
1529
1532
  contentRect: new cn(u, a, m, z)
1530
1533
  });
@@ -1532,9 +1535,9 @@ var ve = function(t) {
1532
1535
  }, fn = function(t, e, n) {
1533
1536
  var s = un(t, n), r = s.borderBoxSize, o = s.contentBoxSize, i = s.devicePixelContentBoxSize;
1534
1537
  switch (e) {
1535
- case Ie.DEVICE_PIXEL_CONTENT_BOX:
1538
+ case Be.DEVICE_PIXEL_CONTENT_BOX:
1536
1539
  return i;
1537
- case Ie.BORDER_BOX:
1540
+ case Be.BORDER_BOX:
1538
1541
  return r;
1539
1542
  default:
1540
1543
  return o;
@@ -1646,16 +1649,16 @@ var ve = function(t) {
1646
1649
  var e = this, n = function() {
1647
1650
  return e.observer && e.observer.observe(document.body, Ws);
1648
1651
  };
1649
- document.body ? n() : Ae.addEventListener("DOMContentLoaded", n);
1652
+ document.body ? n() : Ee.addEventListener("DOMContentLoaded", n);
1650
1653
  }, t.prototype.start = function() {
1651
1654
  var e = this;
1652
1655
  this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(), Nt.forEach(function(n) {
1653
- return Ae.addEventListener(n, e.listener, !0);
1656
+ return Ee.addEventListener(n, e.listener, !0);
1654
1657
  }));
1655
1658
  }, t.prototype.stop = function() {
1656
1659
  var e = this;
1657
1660
  this.stopped || (this.observer && this.observer.disconnect(), Nt.forEach(function(n) {
1658
- return Ae.removeEventListener(n, e.listener, !0);
1661
+ return Ee.removeEventListener(n, e.listener, !0);
1659
1662
  }), this.stopped = !0);
1660
1663
  }, t;
1661
1664
  }(), rt = new Vs(), Wt = function(t) {
@@ -1664,7 +1667,7 @@ var ve = function(t) {
1664
1667
  return !vt(t) && !Is(t) && getComputedStyle(t).display === "inline";
1665
1668
  }, qs = function() {
1666
1669
  function t(e, n) {
1667
- this.target = e, this.observedBox = n || Ie.CONTENT_BOX, this.lastReportedSize = {
1670
+ this.target = e, this.observedBox = n || Be.CONTENT_BOX, this.lastReportedSize = {
1668
1671
  inlineSize: 0,
1669
1672
  blockSize: 0
1670
1673
  };
@@ -1740,7 +1743,7 @@ const Hs = ["disabled", "title"], Zs = {
1740
1743
  },
1741
1744
  setup(t) {
1742
1745
  return (e, n) => (R(), V("div", {
1743
- class: ue(["stack-tab__header-button", {
1746
+ class: fe(["stack-tab__header-button", {
1744
1747
  "stack-tab__shadow-right": e.shadow === "right",
1745
1748
  "stack-tab__shadow-left": e.shadow === "left"
1746
1749
  }]),
@@ -1749,7 +1752,7 @@ const Hs = ["disabled", "title"], Zs = {
1749
1752
  }, [
1750
1753
  "icon" in e.$slots ? se("", !0) : (R(), V("div", {
1751
1754
  key: 0,
1752
- class: ue(["stack-tab__mask-button", e.iconClass])
1755
+ class: fe(["stack-tab__mask-button", e.iconClass])
1753
1756
  }, null, 2)),
1754
1757
  "icon" in e.$slots ? (R(), V("div", Zs, [
1755
1758
  xe(e.$slots, "icon")
@@ -1764,11 +1767,11 @@ const Hs = ["disabled", "title"], Zs = {
1764
1767
  isScrollButton: { type: Boolean, default: !0 }
1765
1768
  },
1766
1769
  setup(t, { expose: e }) {
1767
- const n = D(null), s = D(null), r = D(null), o = D(!1), i = D(!1), f = D(!1), a = D(!0), c = D(), p = t, u = Ee({
1770
+ const n = D(null), s = D(null), r = D(null), o = D(!1), i = D(!1), f = D(!1), a = D(!0), c = D(), p = t, u = Ie({
1768
1771
  clientWidth: 0,
1769
1772
  scrollWidth: 0,
1770
1773
  scrollLeft: 0
1771
- }), l = Ee({
1774
+ }), l = Ie({
1772
1775
  thumbLeft: 0,
1773
1776
  startScrollLeft: 0,
1774
1777
  startThumbLeft: 0,
@@ -1796,12 +1799,12 @@ const Hs = ["disabled", "title"], Zs = {
1796
1799
  var C;
1797
1800
  y();
1798
1801
  const A = (C = n.value) == null ? void 0 : C.querySelector(".stack-tab__item.is-active");
1799
- A && (G(A) || P(A));
1802
+ A && (G(A) || W(A));
1800
1803
  }), T = new Ut(() => {
1801
1804
  var A;
1802
1805
  if (!O.value) {
1803
1806
  const C = (A = n.value) == null ? void 0 : A.querySelector(".stack-tab__item.is-active");
1804
- C && (G(C) || P(C));
1807
+ C && (G(C) || W(C));
1805
1808
  }
1806
1809
  y();
1807
1810
  }), g = (A, C = !0) => {
@@ -1822,8 +1825,8 @@ const Hs = ["disabled", "title"], Zs = {
1822
1825
  }, m = (A) => {
1823
1826
  const { clientWidth: C, scrollWidth: U } = u;
1824
1827
  let re = l.startThumbLeft + A.pageX - l.startPageX;
1825
- const Ce = C - B.value;
1826
- re < 0 ? re = 0 : re > Ce && (re = Ce), l.thumbLeft = re, g(re * (U - C) / (C - B.value), !1), A.preventDefault();
1828
+ const Le = C - B.value;
1829
+ re < 0 ? re = 0 : re > Le && (re = Le), l.thumbLeft = re, g(re * (U - C) / (C - B.value), !1), A.preventDefault();
1827
1830
  }, z = (A) => {
1828
1831
  o.value = !1, document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", z), A.preventDefault();
1829
1832
  };
@@ -1835,7 +1838,7 @@ const Hs = ["disabled", "title"], Zs = {
1835
1838
  }), He(() => {
1836
1839
  w.disconnect(), T.disconnect();
1837
1840
  });
1838
- const P = (A) => {
1841
+ const W = (A) => {
1839
1842
  Un({ el: A, wrap: n, block: "end", inline: "center" });
1840
1843
  }, G = (A) => {
1841
1844
  if (!O.value)
@@ -1843,7 +1846,7 @@ const Hs = ["disabled", "title"], Zs = {
1843
1846
  const C = A.offsetLeft, U = n.value.scrollLeft;
1844
1847
  return !(C < U || C + A.clientWidth > U + n.value.clientWidth);
1845
1848
  };
1846
- return e({ scrollIntoView: P, isInView: G }), (A, C) => (R(), V(Ze, null, [
1849
+ return e({ scrollIntoView: W, isInView: G }), (A, C) => (R(), V(Ze, null, [
1847
1850
  a.value ? (R(), me(ot, {
1848
1851
  key: 0,
1849
1852
  "icon-class": "stack-tab__icon-left-arrow",
@@ -1859,7 +1862,7 @@ const Hs = ["disabled", "title"], Zs = {
1859
1862
  Q("div", {
1860
1863
  ref_key: "container",
1861
1864
  ref: n,
1862
- class: ue(["stack-tab__scroll-container", {
1865
+ class: fe(["stack-tab__scroll-container", {
1863
1866
  "stack-tab__shadow-inset-left": !i.value && f.value,
1864
1867
  "stack-tab__shadow-inset-right": !f.value && i.value,
1865
1868
  "stack-tab__shadow-inset-all": !i.value && !f.value
@@ -1871,12 +1874,12 @@ const Hs = ["disabled", "title"], Zs = {
1871
1874
  Xt(Q("div", {
1872
1875
  ref_key: "bar",
1873
1876
  ref: s,
1874
- class: ue(["stack-tab__scrollbar", { "is-dragging": o.value }])
1877
+ class: fe(["stack-tab__scrollbar", { "is-dragging": o.value }])
1875
1878
  }, [
1876
1879
  Q("div", {
1877
1880
  ref_key: "thumb",
1878
1881
  ref: r,
1879
- class: ue(["stack-tab__scrollbar-thumb", { "is-dragging": o.value }]),
1882
+ class: fe(["stack-tab__scrollbar-thumb", { "is-dragging": o.value }]),
1880
1883
  style: at({
1881
1884
  width: `${B.value}px`,
1882
1885
  transform: `translateX(${I.value}px)`
@@ -1908,31 +1911,31 @@ const Hs = ["disabled", "title"], Zs = {
1908
1911
  },
1909
1912
  emits: ["active"],
1910
1913
  setup(t, { emit: e }) {
1911
- const { t: n } = Be(), s = it("maximum"), r = e, o = D(), { shown: i, contextMenuData: f, showContextMenu: a } = ws(), c = t, { removeTab: p, active: u, tabs: l } = Me(), k = we(() => typeof c.tabTransition == "string" ? {
1914
+ const { t: n } = Me(), s = it("maximum"), r = e, o = D(), { shown: i, contextMenuData: f, showContextMenu: a } = ws(), c = t, { removeTab: p, active: u, tabs: l } = Ce(), k = we(() => typeof c.tabTransition == "string" ? {
1912
1915
  name: c.tabTransition
1913
1916
  } : c.tabTransition), O = we(() => c.tabScrollMode === pe.BOTH || c.tabScrollMode === pe.BUTTON), B = c.tabScrollMode === pe.BOTH || c.tabScrollMode === pe.WHEEL, I = (w) => {
1914
1917
  w.closable && p(w.id), i.value = !1;
1915
1918
  }, y = (w, T, g) => {
1916
- o.value && (ce(() => {
1919
+ o.value && (le(() => {
1917
1920
  o.value.isInView(T.value) || o.value.scrollIntoView(T.value);
1918
1921
  }), u(w.id, g), r("active", w.id));
1919
1922
  };
1920
1923
  return (w, T) => (R(), V("div", Xs, [
1921
1924
  xe(w.$slots, "leftButton"),
1922
- $(js, {
1925
+ P(js, {
1923
1926
  ref_key: "scroll",
1924
1927
  ref: o,
1925
1928
  space: w.space,
1926
1929
  "is-scroll-wheel": S(B),
1927
1930
  "is-scroll-button": O.value
1928
1931
  }, {
1929
- default: le(() => [
1930
- $(Yt, kn({
1932
+ default: ue(() => [
1933
+ P(Yt, kn({
1931
1934
  key: "tabItemTrans",
1932
1935
  tag: "ul",
1933
1936
  class: "stack-tab__nav"
1934
1937
  }, k.value, { appear: "" }), {
1935
- default: le(() => [
1938
+ default: ue(() => [
1936
1939
  (R(!0), V(Ze, null, ct(S(l), (g, _) => (R(), me(Ts, {
1937
1940
  key: g.id,
1938
1941
  contextmenu: w.contextmenu,
@@ -1952,16 +1955,16 @@ const Hs = ["disabled", "title"], Zs = {
1952
1955
  _: 1
1953
1956
  }, 8, ["space", "is-scroll-wheel", "is-scroll-button"]),
1954
1957
  xe(w.$slots, "rightButton"),
1955
- $(ot, {
1958
+ P(ot, {
1956
1959
  "icon-class": S(s) ? "stack-tab__icon-restore" : "stack-tab__icon-fullscreen",
1957
1960
  title: S(n)("VueStackTab.maximum"),
1958
1961
  onClick: T[0] || (T[0] = (g) => s.value = !S(s))
1959
1962
  }, null, 8, ["icon-class", "title"]),
1960
- $(Kt, {
1963
+ P(Kt, {
1961
1964
  name: "stack-tab-zoom",
1962
1965
  appear: ""
1963
1966
  }, {
1964
- default: le(() => [
1967
+ default: ue(() => [
1965
1968
  S(i) ? (R(), me(ys, {
1966
1969
  key: "tabMenuTrans",
1967
1970
  left: S(f).left,
@@ -2003,7 +2006,7 @@ function Ys(t, e, n) {
2003
2006
  }
2004
2007
  let qt;
2005
2008
  const Ks = () => {
2006
- const t = lt(), { active: e, hasTab: n, pageShown: s, reset: r, canAddTab: o, renewTab: i, getTab: f } = Me(), a = ge(), c = Ys(500, (k, O = !1) => new Promise((B, I) => {
2009
+ const t = lt(), { active: e, hasTab: n, pageShown: s, reset: r, canAddTab: o, renewTab: i, getTab: f } = Ce(), a = ge(), c = Ys(500, (k, O = !1) => new Promise((B, I) => {
2007
2010
  if (!s.value) {
2008
2011
  I();
2009
2012
  return;
@@ -2016,7 +2019,7 @@ const Ks = () => {
2016
2019
  if (y.id && O && n(y.id)) {
2017
2020
  i(k);
2018
2021
  const w = f(k.id);
2019
- w != null && w.active && (s.value = !1, ce(() => {
2022
+ w != null && w.active && (s.value = !1, le(() => {
2020
2023
  s.value = !0;
2021
2024
  }));
2022
2025
  }
@@ -2072,7 +2075,7 @@ const Ks = () => {
2072
2075
  },
2073
2076
  emits: ["onActive", "onPageLoaded"],
2074
2077
  setup(t, { emit: e }) {
2075
- const { tabs: n, pageShown: s, caches: r, destroy: o, addPage: i, initial: f, setMaxSize: a, setGlobalScroll: c, clearSession: p } = Me(), u = e, l = t, { changeLocale: k } = Be(), O = D(!1);
2078
+ const { tabs: n, pageShown: s, caches: r, destroy: o, addPage: i, initial: f, setMaxSize: a, setGlobalScroll: c, clearSession: p } = Ce(), u = e, l = t, { changeLocale: k } = Me(), O = D(!1);
2076
2079
  _n("maximum", O);
2077
2080
  const { setIFramePath: B } = Ks();
2078
2081
  B(l.iframePath), c(l.globalScroll), k(l.i18n), xn(() => {
@@ -2096,36 +2099,36 @@ const Ks = () => {
2096
2099
  }), (_, d) => {
2097
2100
  const x = Zt("router-view");
2098
2101
  return R(), V("div", {
2099
- class: ue(["stack-tab", { "stack-tab__maximum": O.value }]),
2102
+ class: fe(["stack-tab", { "stack-tab__maximum": O.value }]),
2100
2103
  style: at({
2101
2104
  width: _.width,
2102
2105
  height: _.height,
2103
2106
  "z-index": O.value ? S(nn)("body *:not(.stack-tab,.stack-tab *)") : void 0
2104
2107
  })
2105
2108
  }, [
2106
- $(Gs, {
2109
+ P(Gs, {
2107
2110
  space: _.space,
2108
2111
  onActive: y,
2109
2112
  "tab-transition": _.tabTransition,
2110
2113
  max: _.max
2111
2114
  }, {
2112
- leftButton: le(() => [
2115
+ leftButton: ue(() => [
2113
2116
  xe(_.$slots, "leftButton")
2114
2117
  ]),
2115
- rightButton: le(() => [
2118
+ rightButton: ue(() => [
2116
2119
  xe(_.$slots, "rightButton")
2117
2120
  ]),
2118
2121
  _: 3
2119
2122
  }, 8, ["space", "tab-transition", "max"]),
2120
2123
  Q("div", Js, [
2121
- $(x, null, {
2122
- default: le(({ Component: m, route: z }) => [
2123
- $(Kt, {
2124
+ P(x, null, {
2125
+ default: ue(({ Component: m, route: z }) => [
2126
+ P(Kt, {
2124
2127
  name: T.value,
2125
2128
  appear: "",
2126
2129
  mode: "out-in"
2127
2130
  }, {
2128
- default: le(() => [
2131
+ default: ue(() => [
2129
2132
  (R(), me(Tn, { include: S(r) }, [
2130
2133
  S(s) ? (R(), me(Sn(I(z, m)), {
2131
2134
  key: z.fullPath,
@@ -2138,11 +2141,11 @@ const Ks = () => {
2138
2141
  ]),
2139
2142
  _: 1
2140
2143
  }),
2141
- $(Yt, {
2144
+ P(Yt, {
2142
2145
  name: _.pageTransition,
2143
2146
  appear: ""
2144
2147
  }, {
2145
- default: le(() => [
2148
+ default: ue(() => [
2146
2149
  (R(!0), V(Ze, null, ct(S(n).filter((m) => m.iframe), (m) => Xt((R(), V("iframe", {
2147
2150
  key: m.id,
2148
2151
  class: "stack-tab__iframe",
@@ -2160,11 +2163,11 @@ const Ks = () => {
2160
2163
  }
2161
2164
  }), mt = typeof Buffer == "function";
2162
2165
  typeof TextDecoder == "function" && new TextDecoder();
2163
- const Ft = typeof TextEncoder == "function" ? new TextEncoder() : void 0, tr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Te = Array.prototype.slice.call(tr);
2166
+ const Ft = typeof TextEncoder == "function" ? new TextEncoder() : void 0, tr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Se = Array.prototype.slice.call(tr);
2164
2167
  ((t) => {
2165
2168
  let e = {};
2166
2169
  return t.forEach((n, s) => e[n] = s), e;
2167
- })(Te);
2170
+ })(Se);
2168
2171
  const J = String.fromCharCode.bind(String);
2169
2172
  typeof Uint8Array.from == "function" && Uint8Array.from.bind(Uint8Array);
2170
2173
  const nr = (t) => t.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" : "_"), sr = (t) => {
@@ -2173,7 +2176,7 @@ const nr = (t) => t.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" :
2173
2176
  for (let f = 0; f < t.length; ) {
2174
2177
  if ((n = t.charCodeAt(f++)) > 255 || (s = t.charCodeAt(f++)) > 255 || (r = t.charCodeAt(f++)) > 255)
2175
2178
  throw new TypeError("invalid character found");
2176
- e = n << 16 | s << 8 | r, o += Te[e >> 18 & 63] + Te[e >> 12 & 63] + Te[e >> 6 & 63] + Te[e & 63];
2179
+ e = n << 16 | s << 8 | r, o += Se[e >> 18 & 63] + Se[e >> 12 & 63] + Se[e >> 6 & 63] + Se[e & 63];
2177
2180
  }
2178
2181
  return i ? o.slice(0, i - 3) + "===".substring(i) : o;
2179
2182
  }, pn = typeof btoa == "function" ? (t) => btoa(t) : mt ? (t) => Buffer.from(t, "binary").toString("base64") : sr, rr = mt ? (t) => Buffer.from(t).toString("base64") : (t) => {
@@ -2196,7 +2199,7 @@ const nr = (t) => t.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" :
2196
2199
  f + `background-image: url(${i});background-size: 580px 100px;background-repeat: norepeat; color: transparent;`
2197
2200
  );
2198
2201
  }, ur = () => {
2199
- const { attrs: t, props: e } = Jt(), { pageShown: n, getTab: s, markDeletableCache: r, removeComponent: o, getComponent: i, addPageScroller: f } = Me(), a = On(), c = lt(), p = ge();
2202
+ const { attrs: t, props: e } = Jt(), { pageShown: n, getTab: s, markDeletableCache: r, removeComponent: o, getComponent: i, addPageScroller: f } = Ce(), a = On(), c = lt(), p = ge();
2200
2203
  let u = "", l = "";
2201
2204
  u = t.tId || e.tId;
2202
2205
  const k = t.pId || e.pId;
@@ -2223,10 +2226,10 @@ const nr = (t) => t.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" :
2223
2226
  _ = Math.abs(y);
2224
2227
  else {
2225
2228
  let m = 1, z = !1;
2226
- const P = g.list(), G = bt(y);
2229
+ const W = g.list(), G = bt(y);
2227
2230
  w = ne(G.query, w);
2228
2231
  for (let A = g.size() - 2; A >= 0; A--) {
2229
- if (P[A].path === G.path) {
2232
+ if (W[A].path === G.path) {
2230
2233
  z = !0;
2231
2234
  break;
2232
2235
  }
@@ -2238,7 +2241,7 @@ const nr = (t) => t.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" :
2238
2241
  return;
2239
2242
  for (let m = 0; m < _; m++) {
2240
2243
  const z = g.pop();
2241
- o(z.id), r(z.id);
2244
+ r(z.id);
2242
2245
  }
2243
2246
  const d = g == null ? void 0 : g.peek(), x = i(d.id);
2244
2247
  if (x != null) {
@@ -2273,7 +2276,7 @@ const nr = (t) => t.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" :
2273
2276
  return { openTabLoading: n, closeTabLoading: s };
2274
2277
  }, gr = {
2275
2278
  install(t, e) {
2276
- lr("0.1.40"), t.component("VueStackTabs", er).use(ds).use(Vn().getI18n(e));
2279
+ lr("0.1.41"), t.component("VueStackTabs", er).use(ds).use(Vn().getI18n(e));
2277
2280
  }
2278
2281
  };
2279
2282
  export {