vue-stack-tabs 0.1.22 → 0.1.23

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 kn = Object.defineProperty;
2
2
  var wn = (e, t, n) => t in e ? kn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var vt = (e, t, n) => (wn(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import { inject as st, ref as $, reactive as Se, readonly as mt, toRaw as _n, defineComponent as J, openBlock as z, createElementBlock as P, createCommentVNode as te, createElementVNode as Y, unref as O, onMounted as Ve, onDeactivated as Tn, onActivated as xn, onUnmounted as Ee, createVNode as R, resolveComponent as qt, normalizeClass as oe, withModifiers as ve, toDisplayString as Gt, normalizeStyle as ot, Fragment as Fe, renderList as it, createBlock as ie, nextTick as Ht, computed as pe, renderSlot as me, watch as Sn, withDirectives as Zt, vShow as Xt, withCtx as X, TransitionGroup as Yt, mergeProps as On, Transition as Jt, provide as En, onBeforeMount as An, KeepAlive as In, Suspense as Bn, resolveDynamicComponent as Cn, createTextVNode as Mn, getCurrentInstance as Kt } from "vue";
4
+ import { inject as st, ref as R, reactive as Oe, readonly as mt, toRaw as _n, defineComponent as J, openBlock as z, createElementBlock as P, createCommentVNode as te, createElementVNode as Y, unref as O, onMounted as Ve, onDeactivated as Tn, onActivated as xn, onUnmounted as Ae, createVNode as N, resolveComponent as qt, normalizeClass as ie, withModifiers as ve, toDisplayString as Gt, normalizeStyle as ot, Fragment as Fe, renderList as it, createBlock as ae, nextTick as Ht, computed as pe, renderSlot as me, watch as Sn, withDirectives as Zt, vShow as Xt, withCtx as X, TransitionGroup as Yt, mergeProps as On, Transition as Jt, provide as En, onBeforeMount as An, KeepAlive as In, Suspense as Bn, resolveDynamicComponent as Cn, createTextVNode as Mn, getCurrentInstance as Kt } from "vue";
5
5
  import { useRouter as at, useRoute as Ln } from "vue-router";
6
6
  const zn = {
7
7
  VueStackTab: {
@@ -106,7 +106,7 @@ function qe() {
106
106
  return st(en);
107
107
  }
108
108
  function Hn(e) {
109
- const t = Object.assign({ locale: "en", fallbackLocale: "en", messages: {} }, e), n = $(t.locale), r = Se({});
109
+ const t = Object.assign({ locale: "en", fallbackLocale: "en", messages: {} }, e), n = R(t.locale), r = Oe({});
110
110
  return Object.entries(t.messages).forEach(([s, o]) => {
111
111
  r[s] = o;
112
112
  }), {
@@ -334,7 +334,7 @@ caused by: ${G.fullStack(n)}` : t.stack;
334
334
  return this.message && (t = `${t}: ${this.message}`), t;
335
335
  }
336
336
  }
337
- const rn = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", _e = 32, yt = 281474976710655, Kn = 10, Qn = 16, ke = Object.freeze({
337
+ const rn = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", Te = 32, yt = 281474976710655, Kn = 10, Qn = 16, we = Object.freeze({
338
338
  source: "ulid"
339
339
  });
340
340
  function er(e) {
@@ -349,7 +349,7 @@ function er(e) {
349
349
  throw new G({
350
350
  info: {
351
351
  code: "PRNG_DETECT",
352
- ...ke
352
+ ...we
353
353
  }
354
354
  }, "Failed to find a reliable PRNG");
355
355
  }
@@ -367,41 +367,41 @@ function rr(e, t) {
367
367
  throw new G({
368
368
  info: {
369
369
  code: "ENC_TIME_NAN",
370
- ...ke
370
+ ...we
371
371
  }
372
372
  }, `Time must be a number: ${e}`);
373
373
  if (e > yt)
374
374
  throw new G({
375
375
  info: {
376
376
  code: "ENC_TIME_SIZE_EXCEED",
377
- ...ke
377
+ ...we
378
378
  }
379
379
  }, `Cannot encode a time larger than ${yt}: ${e}`);
380
380
  if (e < 0)
381
381
  throw new G({
382
382
  info: {
383
383
  code: "ENC_TIME_NEG",
384
- ...ke
384
+ ...we
385
385
  }
386
386
  }, `Time must be positive: ${e}`);
387
387
  if (Number.isInteger(e) === !1)
388
388
  throw new G({
389
389
  info: {
390
390
  code: "ENC_TIME_TYPE",
391
- ...ke
391
+ ...we
392
392
  }
393
393
  }, `Time must be an integer: ${e}`);
394
394
  let n, r = "";
395
395
  for (let s = t; s > 0; s--)
396
- n = e % _e, r = rn.charAt(n) + r, e = (e - n) / _e;
396
+ n = e % Te, r = rn.charAt(n) + r, e = (e - n) / Te;
397
397
  return r;
398
398
  }
399
399
  function sr() {
400
400
  return typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope;
401
401
  }
402
402
  function or(e) {
403
- let t = Math.floor(e() * _e);
404
- return t === _e && (t = _e - 1), rn.charAt(t);
403
+ let t = Math.floor(e() * Te);
404
+ return t === Te && (t = Te - 1), rn.charAt(t);
405
405
  }
406
406
  function sn(e, t) {
407
407
  const n = t || er(), r = isNaN(e) ? Date.now() : e;
@@ -640,7 +640,7 @@ const ir = new TextEncoder(), ar = new TextDecoder("utf-8", { ignoreBOM: !0 }),
640
640
  decodeStr: (e) => kt.decode(Qe.decode(e)),
641
641
  is: lr
642
642
  };
643
- function Te(e) {
643
+ function xe(e) {
644
644
  if (!Number.isSafeInteger(e) || e < 0)
645
645
  throw new Error(`Wrong positive integer: ${e}`);
646
646
  }
@@ -665,9 +665,9 @@ function ln(e, t) {
665
665
  if (e.length < n)
666
666
  throw new Error(`digestInto() expects output buffer of length at least ${n}`);
667
667
  }
668
- const Ce = /* @__PURE__ */ BigInt(2 ** 32 - 1), wt = /* @__PURE__ */ BigInt(32);
668
+ const Me = /* @__PURE__ */ BigInt(2 ** 32 - 1), wt = /* @__PURE__ */ BigInt(32);
669
669
  function _t(e, t = !1) {
670
- return t ? { h: Number(e & Ce), l: Number(e >> wt & Ce) } : { h: Number(e >> wt & Ce) | 0, l: Number(e & Ce) | 0 };
670
+ return t ? { h: Number(e & Me), l: Number(e >> wt & Me) } : { h: Number(e >> wt & Me) | 0, l: Number(e & Me) | 0 };
671
671
  }
672
672
  /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
673
673
  const fr = (e) => new Uint8Array(e.buffer, e.byteOffset, e.byteLength), De = (e) => new Uint32Array(e.buffer, e.byteOffset, Math.floor(e.byteLength / 4));
@@ -699,7 +699,7 @@ function vr(e) {
699
699
  }
700
700
  class mr extends br {
701
701
  constructor(t, n, r = {}, s, o, i) {
702
- if (super(), this.blockLen = t, this.outputLen = n, this.length = 0, this.pos = 0, this.finished = !1, this.destroyed = !1, Te(t), Te(n), Te(s), n < 0 || n > s)
702
+ if (super(), this.blockLen = t, this.outputLen = n, this.length = 0, this.pos = 0, this.finished = !1, this.destroyed = !1, xe(t), xe(n), xe(s), n < 0 || n > s)
703
703
  throw new Error("outputLen bigger than keyLen");
704
704
  if (r.key !== void 0 && (r.key.length < 1 || r.key.length > s))
705
705
  throw new Error(`key must be up 1..${s} byte long or undefined`);
@@ -766,7 +766,7 @@ const xt = /* @__PURE__ */ (() => {
766
766
  })();
767
767
  class ft extends mr {
768
768
  constructor(t = {}, n = 0) {
769
- if (super(64, t.dkLen === void 0 ? 32 : t.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 = t.dkLen === void 0 ? 32 : t.dkLen, Te(this.outputLen), t.key !== void 0 && t.context !== void 0)
769
+ if (super(64, t.dkLen === void 0 ? 32 : t.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 = t.dkLen === void 0 ? 32 : t.dkLen, xe(this.outputLen), t.key !== void 0 && t.context !== void 0)
770
770
  throw new Error("Blake3: only key or context can be specified at same time");
771
771
  if (t.key !== void 0) {
772
772
  const r = ut(t.key).slice();
@@ -843,7 +843,7 @@ class ft extends mr {
843
843
  return this.writeInto(t);
844
844
  }
845
845
  xof(t) {
846
- return Te(t), this.xofInto(new Uint8Array(t));
846
+ return xe(t), this.xofInto(new Uint8Array(t));
847
847
  }
848
848
  digestInto(t) {
849
849
  if (ln(t, this), this.finished)
@@ -948,7 +948,7 @@ const _r = wr(), Tr = {
948
948
  install(e) {
949
949
  e.provide("tabEmitter", _r);
950
950
  }
951
- }, Ae = () => st("tabEmitter");
951
+ }, Ie = () => st("tabEmitter");
952
952
  var V = /* @__PURE__ */ ((e) => (e.PAGE_LOADING = "PAGE_LOADING", e.TAB_ACTIVE = "TAB_ACTIVE", e))(V || {});
953
953
  const xr = {
954
954
  key: 0,
@@ -961,16 +961,16 @@ const xr = {
961
961
  tId: {}
962
962
  },
963
963
  setup(e) {
964
- const t = e, n = Ae(), r = $(!1);
964
+ const t = e, n = Ie(), r = R(!1);
965
965
  return n.on(V.PAGE_LOADING, ({ tId: s, value: o }) => {
966
966
  s === t.tId && (r.value = o);
967
967
  }), (s, o) => r.value ? (z(), P("div", xr, Or)) : te("", !0);
968
968
  }
969
- }), M = $([]), Me = [], N = $([]), ce = /* @__PURE__ */ new Map(), Le = /* @__PURE__ */ new Set(), ge = $(!0), Ot = "stacktab-active-tab", le = /* @__PURE__ */ new Map();
969
+ }), M = R([]), Le = [], $ = R([]), se = /* @__PURE__ */ new Map(), ge = /* @__PURE__ */ new Set(), ye = R(!0), Ot = "stacktab-active-tab", le = /* @__PURE__ */ new Map();
970
970
  let Et = !1, ze = 0, At = !1;
971
- const Ie = () => {
972
- const e = at(), t = Ae(), n = () => M.value.length, r = (y) => {
973
- Me.splice(0);
971
+ const Be = () => {
972
+ const e = at(), t = Ie(), n = () => M.value.length, r = (y) => {
973
+ Le.splice(0), $.value.splice(0), ge.clear(), se.clear();
974
974
  for (const A of y) {
975
975
  const m = ee(A, {
976
976
  id: sn()
@@ -985,8 +985,8 @@ const Ie = () => {
985
985
  query: ee(D.query, {
986
986
  __tab: C
987
987
  })
988
- }, Be = new He();
989
- Be.push(K);
988
+ }, Ce = new He();
989
+ Ce.push(K);
990
990
  const bt = {
991
991
  id: m.id,
992
992
  title: W.title,
@@ -994,9 +994,9 @@ const Ie = () => {
994
994
  refreshable: W.refreshable,
995
995
  iframe: W.iframe,
996
996
  active: !1,
997
- pages: Be
997
+ pages: Ce
998
998
  };
999
- Me.push(bt), M.value.push(bt), N.value.push(he);
999
+ Le.push(bt), M.value.push(bt), $.value.push(he);
1000
1000
  }
1001
1001
  const b = window.sessionStorage.getItem(Ot);
1002
1002
  if (b != null) {
@@ -1053,7 +1053,7 @@ const Ie = () => {
1053
1053
  });
1054
1054
  } else
1055
1055
  W.active = !0, (W.pages.isEmpty() || W.pages.peek().id !== he.id) && W.pages.push(he);
1056
- return I(W), ce.has(C) ? A = ce.get(C) : (A = /* @__PURE__ */ J({
1056
+ return I(W), se.has(C) ? A = se.get(C) : (A = /* @__PURE__ */ J({
1057
1057
  name: C,
1058
1058
  components: {
1059
1059
  DynamicComponent: b
@@ -1061,27 +1061,27 @@ const Ie = () => {
1061
1061
  emits: {
1062
1062
  onLoaded: null
1063
1063
  },
1064
- setup(K, Be) {
1064
+ setup(K, Ce) {
1065
1065
  return Ve(() => {
1066
- Be.emit("onLoaded"), d(C, ".cache-page-wrapper");
1066
+ Ce.emit("onLoaded"), d(C, ".cache-page-wrapper");
1067
1067
  }), Tn(() => {
1068
1068
  h(C);
1069
1069
  }), xn(() => {
1070
1070
  l(C), v(), b.props = null;
1071
- }), Ee(() => {
1071
+ }), Ae(() => {
1072
1072
  u(C);
1073
- }), () => R("div", {
1073
+ }), () => N("div", {
1074
1074
  class: "cache-page-wrapper",
1075
1075
  id: "W-" + m.id,
1076
1076
  style: [At ? "overflow:auto" : "overflow:hidden"]
1077
- }, [R(qt("dynamic-component"), {
1077
+ }, [N(qt("dynamic-component"), {
1078
1078
  tId: m.id,
1079
1079
  pId: C
1080
- }, null), R(Er, {
1080
+ }, null), N(Er, {
1081
1081
  tId: m.id
1082
1082
  }, null)]);
1083
1083
  }
1084
- }), ce.set(C, A)), F(C), A;
1084
+ }), se.set(C, A)), F(C), A;
1085
1085
  }, l = (y) => {
1086
1086
  const b = le.get(y);
1087
1087
  if (b) {
@@ -1206,9 +1206,9 @@ const Ie = () => {
1206
1206
  for (const A of O(M))
1207
1207
  if (A.id === y) {
1208
1208
  const m = (b = A.pages.peek()) == null ? void 0 : b.id;
1209
- for (let C = N.value.length - 1; C >= 0; C--)
1210
- if (N.value[C] === m) {
1211
- N.value.splice(C, 1), A.active && (ge.value = !1);
1209
+ for (let C = $.value.length - 1; C >= 0; C--)
1210
+ if ($.value[C] === m) {
1211
+ $.value.splice(C, 1), A.active && (ye.value = !1);
1212
1212
  break;
1213
1213
  }
1214
1214
  break;
@@ -1218,33 +1218,33 @@ const Ie = () => {
1218
1218
  M.value.forEach((b) => {
1219
1219
  y.add(b.pages.peek().id);
1220
1220
  });
1221
- for (let b = N.value.length - 1; b >= 0; b--) {
1222
- const A = N.value[b];
1223
- y.has(A) && N.value.splice(b, 1);
1221
+ for (let b = $.value.length - 1; b >= 0; b--) {
1222
+ const A = $.value[b];
1223
+ y.has(A) && $.value.splice(b, 1);
1224
1224
  }
1225
- ge.value = !1;
1225
+ ye.value = !1;
1226
1226
  }, g = (y, b) => {
1227
- ce.set(y, b);
1228
- }, S = (y) => ce.get(y), c = (y) => {
1229
- ce.delete(y);
1227
+ se.set(y, b);
1228
+ }, S = (y) => se.get(y), c = (y) => {
1229
+ se.delete(y);
1230
1230
  }, p = (y) => {
1231
- Le.add(y);
1231
+ ge.add(y);
1232
1232
  }, v = () => {
1233
- for (let y = N.value.length - 1; y >= 0; y--)
1234
- Le.has(N.value[y]) && O(N).splice(y, 1);
1235
- Le.clear();
1233
+ for (let y = $.value.length - 1; y >= 0; y--)
1234
+ ge.has($.value[y]) && O($).splice(y, 1);
1235
+ ge.clear();
1236
1236
  }, j = (y) => {
1237
- for (let b = N.value.length - 1; b >= 0; b--)
1238
- y === N.value[b] && O(N).splice(b, 1);
1237
+ for (let b = $.value.length - 1; b >= 0; b--)
1238
+ y === $.value[b] && O($).splice(b, 1);
1239
1239
  }, F = (y) => {
1240
- new Set(N.value).has(y) || N.value.push(y);
1240
+ new Set($.value).has(y) || $.value.push(y);
1241
1241
  }, q = (y, b = !0) => new Promise((A) => {
1242
1242
  for (let m = M.value.length - 1; m >= 0; m--) {
1243
1243
  const C = M.value[m];
1244
1244
  if (C.id === y) {
1245
1245
  if (C.active)
1246
1246
  break;
1247
- if (C.active = !0, ge.value = !1, I(C), b) {
1247
+ if (C.active = !0, ye.value = !1, I(C), b) {
1248
1248
  const D = C.pages.peek();
1249
1249
  e.push({
1250
1250
  path: D.path,
@@ -1258,16 +1258,16 @@ const Ie = () => {
1258
1258
  }), I = (y) => {
1259
1259
  window.sessionStorage.setItem(Ot, JSON.stringify(y));
1260
1260
  }, L = () => {
1261
- U(), O(M).push(...Me), t.emit(V.TAB_ACTIVE, {
1262
- id: Me[0].id
1261
+ U(), O(M).push(...Le), t.emit(V.TAB_ACTIVE, {
1262
+ id: Le[0].id
1263
1263
  });
1264
1264
  }, U = () => {
1265
- O(M).splice(0), ce.clear(), Le.clear(), O(N).splice(0), ge.value = !0;
1265
+ O(M).splice(0), se.clear(), ge.clear(), O($).splice(0), ye.value = !1;
1266
1266
  };
1267
1267
  return {
1268
1268
  tabs: M,
1269
- caches: N,
1270
- pageShown: ge,
1269
+ caches: $,
1270
+ pageShown: ye,
1271
1271
  initialed: Et,
1272
1272
  setMaxSize: (y) => {
1273
1273
  ze = y;
@@ -1301,7 +1301,7 @@ const Ie = () => {
1301
1301
  At = y;
1302
1302
  }
1303
1303
  };
1304
- }, Ar = { class: "stack-tab__contextmenu-item" }, se = /* @__PURE__ */ J({
1304
+ }, Ar = { class: "stack-tab__contextmenu-item" }, oe = /* @__PURE__ */ J({
1305
1305
  __name: "ContextMenuItem",
1306
1306
  props: {
1307
1307
  icon: {},
@@ -1310,7 +1310,7 @@ const Ie = () => {
1310
1310
  setup(e) {
1311
1311
  return (t, n) => (z(), P("div", Ar, [
1312
1312
  Y("div", {
1313
- class: oe(["stack-tab__contextmenu-icon", t.icon])
1313
+ class: ie(["stack-tab__contextmenu-icon", t.icon])
1314
1314
  }, null, 2),
1315
1315
  Y("div", {
1316
1316
  style: { "margin-left": "8px" },
@@ -1333,7 +1333,7 @@ const Ie = () => {
1333
1333
  max: {}
1334
1334
  },
1335
1335
  setup(e) {
1336
- const t = e, { t: n } = qe(), r = $(), s = Se({
1336
+ const t = e, { t: n } = qe(), r = R(), s = Oe({
1337
1337
  left: t.left,
1338
1338
  top: t.top
1339
1339
  }), {
@@ -1344,7 +1344,7 @@ const Ie = () => {
1344
1344
  refreshTab: l,
1345
1345
  refreshAllTabs: h,
1346
1346
  removeOtherTabs: u
1347
- } = Ie();
1347
+ } = Be();
1348
1348
  return Ve(() => {
1349
1349
  const d = r.value ? r.value.clientWidth : 0, w = window.innerWidth;
1350
1350
  s.left + d > w && (s.left = w - d - 5);
@@ -1358,46 +1358,46 @@ const Ie = () => {
1358
1358
  "z-index": O(nn)(".stack-tab,.stack-tab *")
1359
1359
  })
1360
1360
  }, [
1361
- R(se, {
1361
+ N(oe, {
1362
1362
  icon: "stack-tab__icon-reload svg-mask",
1363
1363
  title: O(n)("VueStackTab.reload"),
1364
1364
  onClick: w[0] || (w[0] = (T) => O(l)(d.tabItem.id))
1365
1365
  }, null, 8, ["title"]),
1366
- R(se, {
1366
+ N(oe, {
1367
1367
  icon: "stack-tab__icon-reload-all svg-mask",
1368
1368
  title: O(n)("VueStackTab.reloadAll"),
1369
1369
  onClick: O(h)
1370
1370
  }, null, 8, ["title", "onClick"]),
1371
- R(se, {
1371
+ N(oe, {
1372
1372
  icon: "stack-tab__icon-close svg-mask",
1373
1373
  title: O(n)("VueStackTab.close"),
1374
1374
  disabled: d.tabItem.closable ? null : "disabled",
1375
1375
  onClick: w[1] || (w[1] = (T) => O(o)(d.tabItem.id))
1376
1376
  }, null, 8, ["title", "disabled"]),
1377
- R(se, {
1377
+ N(oe, {
1378
1378
  icon: "stack-tab__icon-close-lefts svg-mask",
1379
1379
  title: O(n)("VueStackTab.closeLeft"),
1380
1380
  disabled: d.index <= 0 ? "disabled" : null,
1381
1381
  onClick: w[2] || (w[2] = (T) => O(f)(d.tabItem.id))
1382
1382
  }, null, 8, ["title", "disabled"]),
1383
- R(se, {
1383
+ N(oe, {
1384
1384
  icon: "stack-tab__icon-close-rights svg-mask",
1385
1385
  title: O(n)("VueStackTab.closeRight"),
1386
1386
  disabled: d.index >= d.max - 1 ? "disabled" : null,
1387
1387
  onClick: w[3] || (w[3] = (T) => O(a)(d.tabItem.id))
1388
1388
  }, null, 8, ["title", "disabled"]),
1389
- R(se, {
1389
+ N(oe, {
1390
1390
  icon: "stack-tab__icon-close-others svg-mask",
1391
1391
  title: O(n)("VueStackTab.closeOthers"),
1392
1392
  onClick: w[4] || (w[4] = (T) => O(u)(d.tabItem.id))
1393
1393
  }, null, 8, ["title"]),
1394
- R(se, {
1394
+ N(oe, {
1395
1395
  icon: "stack-tab__icon-close-all svg-mask",
1396
1396
  title: O(n)("VueStackTab.closeAll"),
1397
1397
  onClick: O(i)
1398
1398
  }, null, 8, ["title", "onClick"]),
1399
1399
  d.contextMenu !== void 0 && d.contextMenu.length > 0 ? (z(), P("div", Ir)) : te("", !0),
1400
- (z(!0), P(Fe, null, it(d.contextMenu, (T, B) => (z(), ie(se, {
1400
+ (z(!0), P(Fe, null, it(d.contextMenu, (T, B) => (z(), ae(oe, {
1401
1401
  key: B,
1402
1402
  icon: T.icon,
1403
1403
  title: T.title,
@@ -1412,16 +1412,16 @@ const Ie = () => {
1412
1412
  n[r] = s;
1413
1413
  return n;
1414
1414
  }, Mr = /* @__PURE__ */ Cr(Br, [["__scopeId", "data-v-d598be6e"]]), Lr = () => {
1415
- const e = Se({
1415
+ const e = Oe({
1416
1416
  item: {},
1417
1417
  index: -1,
1418
1418
  left: 0,
1419
1419
  top: 0,
1420
1420
  max: 0
1421
- }), t = $(!1);
1421
+ }), t = R(!1);
1422
1422
  Ve(() => {
1423
1423
  document.addEventListener("click", r);
1424
- }), Ee(() => {
1424
+ }), Ae(() => {
1425
1425
  document.removeEventListener("click", r);
1426
1426
  });
1427
1427
  const n = async (s, o, i, f) => {
@@ -1444,7 +1444,7 @@ const Ie = () => {
1444
1444
  },
1445
1445
  emits: ["close", "active"],
1446
1446
  setup(e, { emit: t }) {
1447
- const n = t, r = Ae(), { t: s } = qe(), o = $(), i = e;
1447
+ const n = t, r = Ie(), { t: s } = qe(), o = R(), i = e;
1448
1448
  r.on(V.TAB_ACTIVE, ({ id: h, isRoute: u }) => {
1449
1449
  i.item.id === h && l(u);
1450
1450
  });
@@ -1456,7 +1456,7 @@ const Ie = () => {
1456
1456
  return (h, u) => (z(), P("li", {
1457
1457
  ref_key: "curtab",
1458
1458
  ref: o,
1459
- class: oe(["stack-tab__item", {
1459
+ class: ie(["stack-tab__item", {
1460
1460
  "is-active": h.item.active,
1461
1461
  "is-icon": h.item.closable
1462
1462
  }]),
@@ -1490,10 +1490,10 @@ var fe = [], Pr = function() {
1490
1490
  typeof ErrorEvent == "function" ? e = new ErrorEvent("error", {
1491
1491
  message: It
1492
1492
  }) : (e = document.createEvent("Event"), e.initEvent("error", !1, !1), e.message = It), window.dispatchEvent(e);
1493
- }, Oe;
1493
+ }, Ee;
1494
1494
  (function(e) {
1495
1495
  e.BORDER_BOX = "border-box", e.CONTENT_BOX = "content-box", e.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
1496
- })(Oe || (Oe = {}));
1496
+ })(Ee || (Ee = {}));
1497
1497
  var de = function(e) {
1498
1498
  return Object.freeze(e);
1499
1499
  }, Wr = /* @__PURE__ */ function() {
@@ -1541,7 +1541,7 @@ var de = function(e) {
1541
1541
  return !0;
1542
1542
  }
1543
1543
  return !1;
1544
- }, xe = typeof window < "u" ? window : {}, $e = /* @__PURE__ */ new WeakMap(), Ct = /auto|scroll/, Vr = /^tb|vertical/, Fr = /msie|trident/i.test(xe.navigator && xe.navigator.userAgent), H = function(e) {
1544
+ }, Se = typeof window < "u" ? window : {}, $e = /* @__PURE__ */ new WeakMap(), Ct = /auto|scroll/, Vr = /^tb|vertical/, Fr = /msie|trident/i.test(Se.navigator && Se.navigator.userAgent), H = function(e) {
1545
1545
  return parseFloat(e || "0");
1546
1546
  }, be = function(e, t, n) {
1547
1547
  return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = !1), new Wr((n ? t : e) || 0, (n ? e : t) || 0);
@@ -1565,9 +1565,9 @@ var de = function(e) {
1565
1565
  }, pn = function(e, t, n) {
1566
1566
  var r = hn(e, n), s = r.borderBoxSize, o = r.contentBoxSize, i = r.devicePixelContentBoxSize;
1567
1567
  switch (t) {
1568
- case Oe.DEVICE_PIXEL_CONTENT_BOX:
1568
+ case Ee.DEVICE_PIXEL_CONTENT_BOX:
1569
1569
  return i;
1570
- case Oe.BORDER_BOX:
1570
+ case Ee.BORDER_BOX:
1571
1571
  return s;
1572
1572
  default:
1573
1573
  return o;
@@ -1679,16 +1679,16 @@ var de = function(e) {
1679
1679
  var t = this, n = function() {
1680
1680
  return t.observer && t.observer.observe(document.body, Qr);
1681
1681
  };
1682
- document.body ? n() : xe.addEventListener("DOMContentLoaded", n);
1682
+ document.body ? n() : Se.addEventListener("DOMContentLoaded", n);
1683
1683
  }, e.prototype.start = function() {
1684
1684
  var t = this;
1685
1685
  this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(), zt.forEach(function(n) {
1686
- return xe.addEventListener(n, t.listener, !0);
1686
+ return Se.addEventListener(n, t.listener, !0);
1687
1687
  }));
1688
1688
  }, e.prototype.stop = function() {
1689
1689
  var t = this;
1690
1690
  this.stopped || (this.observer && this.observer.disconnect(), zt.forEach(function(n) {
1691
- return xe.removeEventListener(n, t.listener, !0);
1691
+ return Se.removeEventListener(n, t.listener, !0);
1692
1692
  }), this.stopped = !0);
1693
1693
  }, e;
1694
1694
  }(), nt = new es(), Rt = function(e) {
@@ -1697,7 +1697,7 @@ var de = function(e) {
1697
1697
  return !ht(e) && !Ur(e) && getComputedStyle(e).display === "inline";
1698
1698
  }, ns = function() {
1699
1699
  function e(t, n) {
1700
- this.target = t, this.observedBox = n || Oe.CONTENT_BOX, this.lastReportedSize = {
1700
+ this.target = t, this.observedBox = n || Ee.CONTENT_BOX, this.lastReportedSize = {
1701
1701
  inlineSize: 0,
1702
1702
  blockSize: 0
1703
1703
  };
@@ -1773,7 +1773,7 @@ const ss = ["disabled", "title"], os = {
1773
1773
  },
1774
1774
  setup(e) {
1775
1775
  return (t, n) => (z(), P("div", {
1776
- class: oe(["stack-tab__header-button", {
1776
+ class: ie(["stack-tab__header-button", {
1777
1777
  "stack-tab__shadow-right": t.shadow === "right",
1778
1778
  "stack-tab__shadow-left": t.shadow === "left"
1779
1779
  }]),
@@ -1782,7 +1782,7 @@ const ss = ["disabled", "title"], os = {
1782
1782
  }, [
1783
1783
  "icon" in t.$slots ? te("", !0) : (z(), P("div", {
1784
1784
  key: 0,
1785
- class: oe(["stack-tab__mask-button", t.iconClass])
1785
+ class: ie(["stack-tab__mask-button", t.iconClass])
1786
1786
  }, null, 2)),
1787
1787
  "icon" in t.$slots ? (z(), P("div", os, [
1788
1788
  me(t.$slots, "icon")
@@ -1797,11 +1797,11 @@ const ss = ["disabled", "title"], os = {
1797
1797
  isScrollButton: { type: Boolean, default: !0 }
1798
1798
  },
1799
1799
  setup(e, { expose: t }) {
1800
- const n = $(null), r = $(null), s = $(null), o = $(!1), i = $(!1), f = $(!1), a = $(!0), l = $(), h = e, u = Se({
1800
+ const n = R(null), r = R(null), s = R(null), o = R(!1), i = R(!1), f = R(!1), a = R(!0), l = R(), h = e, u = Oe({
1801
1801
  clientWidth: 0,
1802
1802
  scrollWidth: 0,
1803
1803
  scrollLeft: 0
1804
- }), d = Se({
1804
+ }), d = Oe({
1805
1805
  thumbLeft: 0,
1806
1806
  startScrollLeft: 0,
1807
1807
  startThumbLeft: 0,
@@ -1856,9 +1856,9 @@ const ss = ["disabled", "title"], os = {
1856
1856
  }), o.value = !0, document.addEventListener("mousemove", v), document.addEventListener("mouseup", j);
1857
1857
  }, v = (I) => {
1858
1858
  const { clientWidth: L, scrollWidth: U } = u;
1859
- let ae = d.startThumbLeft + I.pageX - d.startPageX;
1859
+ let ce = d.startThumbLeft + I.pageX - d.startPageX;
1860
1860
  const Ge = L - B.value;
1861
- ae < 0 ? ae = 0 : ae > Ge && (ae = Ge), d.thumbLeft = ae, g(ae * (U - L) / (L - B.value), !1), I.preventDefault();
1861
+ ce < 0 ? ce = 0 : ce > Ge && (ce = Ge), d.thumbLeft = ce, g(ce * (U - L) / (L - B.value), !1), I.preventDefault();
1862
1862
  }, j = (I) => {
1863
1863
  o.value = !1, document.removeEventListener("mousemove", v), document.removeEventListener("mouseup", j), I.preventDefault();
1864
1864
  };
@@ -1867,7 +1867,7 @@ const ss = ["disabled", "title"], os = {
1867
1867
  k.observe(l.value);
1868
1868
  const I = (L = n.value) == null ? void 0 : L.querySelector(".stack-tab__nav");
1869
1869
  _.observe(I);
1870
- }), Ee(() => {
1870
+ }), Ae(() => {
1871
1871
  k.disconnect(), _.disconnect();
1872
1872
  });
1873
1873
  const F = (I) => {
@@ -1879,7 +1879,7 @@ const ss = ["disabled", "title"], os = {
1879
1879
  return !(L < U || L + I.clientWidth > U + n.value.clientWidth);
1880
1880
  };
1881
1881
  return t({ scrollIntoView: F, isInView: q }), (I, L) => (z(), P(Fe, null, [
1882
- a.value ? (z(), ie(rt, {
1882
+ a.value ? (z(), ae(rt, {
1883
1883
  key: 0,
1884
1884
  "icon-class": "stack-tab__icon-left-arrow",
1885
1885
  disabled: i.value,
@@ -1894,7 +1894,7 @@ const ss = ["disabled", "title"], os = {
1894
1894
  Y("div", {
1895
1895
  ref_key: "container",
1896
1896
  ref: n,
1897
- class: oe(["stack-tab__scroll-container", {
1897
+ class: ie(["stack-tab__scroll-container", {
1898
1898
  "stack-tab__shadow-inset-left": !i.value && f.value,
1899
1899
  "stack-tab__shadow-inset-right": !f.value && i.value,
1900
1900
  "stack-tab__shadow-inset-all": !i.value && !f.value
@@ -1906,12 +1906,12 @@ const ss = ["disabled", "title"], os = {
1906
1906
  Zt(Y("div", {
1907
1907
  ref_key: "bar",
1908
1908
  ref: r,
1909
- class: oe(["stack-tab__scrollbar", { "is-dragging": o.value }])
1909
+ class: ie(["stack-tab__scrollbar", { "is-dragging": o.value }])
1910
1910
  }, [
1911
1911
  Y("div", {
1912
1912
  ref_key: "thumb",
1913
1913
  ref: s,
1914
- class: oe(["stack-tab__scrollbar-thumb", { "is-dragging": o.value }]),
1914
+ class: ie(["stack-tab__scrollbar-thumb", { "is-dragging": o.value }]),
1915
1915
  style: ot({
1916
1916
  width: `${B.value}px`,
1917
1917
  transform: `translateX(${E.value}px)`
@@ -1922,7 +1922,7 @@ const ss = ["disabled", "title"], os = {
1922
1922
  [Xt, T.value]
1923
1923
  ])
1924
1924
  ], 544),
1925
- a.value ? (z(), ie(rt, {
1925
+ a.value ? (z(), ae(rt, {
1926
1926
  key: 1,
1927
1927
  "icon-class": "stack-tab__icon-right-arrow",
1928
1928
  disabled: f.value,
@@ -1943,7 +1943,7 @@ const ss = ["disabled", "title"], os = {
1943
1943
  },
1944
1944
  emits: ["active"],
1945
1945
  setup(e, { emit: t }) {
1946
- const { t: n } = qe(), r = st("maximum"), s = t, o = $(), { shown: i, contextMenuData: f, showContextMenu: a } = Lr(), l = e, { removeTab: h, active: u, tabs: d } = Ie(), w = pe(() => typeof l.tabTransition == "string" ? {
1946
+ const { t: n } = qe(), r = st("maximum"), s = t, o = R(), { shown: i, contextMenuData: f, showContextMenu: a } = Lr(), l = e, { removeTab: h, active: u, tabs: d } = Be(), w = pe(() => typeof l.tabTransition == "string" ? {
1947
1947
  name: l.tabTransition
1948
1948
  } : l.tabTransition), T = pe(() => l.tabScrollMode === ue.BOTH || l.tabScrollMode === ue.BUTTON), B = l.tabScrollMode === ue.BOTH || l.tabScrollMode === ue.WHEEL, E = (k) => {
1949
1949
  if (k.closable) {
@@ -1958,7 +1958,7 @@ const ss = ["disabled", "title"], os = {
1958
1958
  };
1959
1959
  return (k, _) => (z(), P("div", as, [
1960
1960
  me(k.$slots, "leftButton"),
1961
- R(is, {
1961
+ N(is, {
1962
1962
  ref_key: "scroll",
1963
1963
  ref: o,
1964
1964
  space: k.space,
@@ -1966,13 +1966,13 @@ const ss = ["disabled", "title"], os = {
1966
1966
  "is-scroll-button": T.value
1967
1967
  }, {
1968
1968
  default: X(() => [
1969
- R(Yt, On({
1969
+ N(Yt, On({
1970
1970
  key: "tabItemTrans",
1971
1971
  tag: "ul",
1972
1972
  class: "stack-tab__nav"
1973
1973
  }, w.value, { appear: "" }), {
1974
1974
  default: X(() => [
1975
- (z(!0), P(Fe, null, it(O(d), (g, S) => (z(), ie(Nr, {
1975
+ (z(!0), P(Fe, null, it(O(d), (g, S) => (z(), ae(Nr, {
1976
1976
  key: g.id,
1977
1977
  contextmenu: k.contextmenu,
1978
1978
  item: g,
@@ -1991,17 +1991,17 @@ const ss = ["disabled", "title"], os = {
1991
1991
  _: 1
1992
1992
  }, 8, ["space", "is-scroll-wheel", "is-scroll-button"]),
1993
1993
  me(k.$slots, "rightButton"),
1994
- R(rt, {
1994
+ N(rt, {
1995
1995
  "icon-class": O(r) ? "stack-tab__icon-restore" : "stack-tab__icon-fullscreen",
1996
1996
  title: O(n)("VueStackTab.maximum"),
1997
1997
  onClick: _[0] || (_[0] = (g) => r.value = !O(r))
1998
1998
  }, null, 8, ["icon-class", "title"]),
1999
- R(Jt, {
1999
+ N(Jt, {
2000
2000
  name: "stack-tab-zoom",
2001
2001
  appear: ""
2002
2002
  }, {
2003
2003
  default: X(() => [
2004
- O(i) ? (z(), ie(Mr, {
2004
+ O(i) ? (z(), ae(Mr, {
2005
2005
  key: "tabMenuTrans",
2006
2006
  left: O(f).left,
2007
2007
  top: O(f).top,
@@ -2015,16 +2015,16 @@ const ss = ["disabled", "title"], os = {
2015
2015
  ]));
2016
2016
  }
2017
2017
  });
2018
- var ls = typeof global == "object" && global && global.Object === Object && global, us = typeof self == "object" && self && self.Object === Object && self, mn = ls || us || Function("return this")(), We = mn.Symbol, gn = Object.prototype, fs = gn.hasOwnProperty, ds = gn.toString, ye = We ? We.toStringTag : void 0;
2018
+ var ls = typeof global == "object" && global && global.Object === Object && global, us = typeof self == "object" && self && self.Object === Object && self, mn = ls || us || Function("return this")(), We = mn.Symbol, gn = Object.prototype, fs = gn.hasOwnProperty, ds = gn.toString, ke = We ? We.toStringTag : void 0;
2019
2019
  function hs(e) {
2020
- var t = fs.call(e, ye), n = e[ye];
2020
+ var t = fs.call(e, ke), n = e[ke];
2021
2021
  try {
2022
- e[ye] = void 0;
2022
+ e[ke] = void 0;
2023
2023
  var r = !0;
2024
2024
  } catch {
2025
2025
  }
2026
2026
  var s = ds.call(e);
2027
- return r && (t ? e[ye] = n : delete e[ye]), s;
2027
+ return r && (t ? e[ke] = n : delete e[ke]), s;
2028
2028
  }
2029
2029
  var ps = Object.prototype, bs = ps.toString;
2030
2030
  function vs(e) {
@@ -2134,7 +2134,7 @@ function Rs(e, t, n) {
2134
2134
  }
2135
2135
  let Ut;
2136
2136
  const Ns = () => {
2137
- const e = at(), { active: t, hasTab: n, pageShown: r, reset: s, canAddTab: o, destroy: i } = Ie(), f = Ae(), a = Rs((u) => new Promise((d, w) => {
2137
+ const e = at(), { active: t, hasTab: n, pageShown: r, reset: s, canAddTab: o, destroy: i } = Be(), f = Ie(), a = Rs((u) => new Promise((d, w) => {
2138
2138
  if (!r.value) {
2139
2139
  w();
2140
2140
  return;
@@ -2191,7 +2191,7 @@ const Ns = () => {
2191
2191
  },
2192
2192
  emits: ["onActive", "onPageLoaded"],
2193
2193
  setup(e, { emit: t }) {
2194
- const { tabs: n, pageShown: r, caches: s, addPage: o, destroy: i, initial: f, setMaxSize: a, setGlobalScroll: l } = Ie(), h = t, u = e, { changeLocale: d } = qe(), w = $(!1);
2194
+ const { tabs: n, pageShown: r, caches: s, addPage: o, destroy: i, initial: f, setMaxSize: a, setGlobalScroll: l } = Be(), h = t, u = e, { changeLocale: d } = qe(), w = R(!1);
2195
2195
  En("maximum", w);
2196
2196
  const { setIFramePath: T } = Ns();
2197
2197
  T(u.iframePath), l(u.globalScroll), d(u.i18n), An(() => {
@@ -2200,8 +2200,7 @@ const Ns = () => {
2200
2200
  const B = (k, _) => o(k, _), E = (k) => {
2201
2201
  h("onActive", k);
2202
2202
  };
2203
- a(u.max), Ee(() => {
2204
- i();
2203
+ a(u.max), Ae(() => {
2205
2204
  });
2206
2205
  const x = () => {
2207
2206
  h("onPageLoaded");
@@ -2209,14 +2208,14 @@ const Ns = () => {
2209
2208
  return (k, _) => {
2210
2209
  const g = qt("router-view");
2211
2210
  return z(), P("div", {
2212
- class: oe(["stack-tab", { "stack-tab__maximum": w.value }]),
2211
+ class: ie(["stack-tab", { "stack-tab__maximum": w.value }]),
2213
2212
  style: ot({
2214
2213
  width: k.width,
2215
2214
  height: k.height,
2216
2215
  "z-index": w.value ? O(nn)("body *:not(.stack-tab,.stack-tab *)") : void 0
2217
2216
  })
2218
2217
  }, [
2219
- R(cs, {
2218
+ N(cs, {
2220
2219
  space: k.space,
2221
2220
  onActive: E,
2222
2221
  "tab-transition": k.tabTransition,
@@ -2231,18 +2230,18 @@ const Ns = () => {
2231
2230
  _: 3
2232
2231
  }, 8, ["space", "tab-transition", "max"]),
2233
2232
  Y("div", Ps, [
2234
- R(g, null, {
2233
+ N(g, null, {
2235
2234
  default: X(({ Component: S, route: c }) => [
2236
- R(Jt, {
2235
+ N(Jt, {
2237
2236
  name: k.pageTransition,
2238
2237
  onAfterLeave: _[0] || (_[0] = (p) => r.value = !0),
2239
2238
  mode: "out-in"
2240
2239
  }, {
2241
2240
  default: X(() => [
2242
- (z(), ie(In, { include: O(s) }, [
2243
- (z(), ie(Bn, null, {
2241
+ (z(), ae(In, { include: O(s) }, [
2242
+ (z(), ae(Bn, null, {
2244
2243
  default: X(() => [
2245
- O(r) ? (z(), ie(Cn(B(c, S)), {
2244
+ O(r) ? (z(), ae(Cn(B(c, S)), {
2246
2245
  key: c.fullPath,
2247
2246
  onOnLoaded: x
2248
2247
  }, null, 32)) : te("", !0)
@@ -2259,7 +2258,7 @@ const Ns = () => {
2259
2258
  ]),
2260
2259
  _: 1
2261
2260
  }),
2262
- R(Yt, {
2261
+ N(Yt, {
2263
2262
  name: k.pageTransition,
2264
2263
  appear: ""
2265
2264
  }, {
@@ -2281,11 +2280,11 @@ const Ns = () => {
2281
2280
  }
2282
2281
  }), pt = typeof Buffer == "function";
2283
2282
  typeof TextDecoder == "function" && new TextDecoder();
2284
- const Vt = typeof TextEncoder == "function" ? new TextEncoder() : void 0, Ws = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", we = Array.prototype.slice.call(Ws);
2283
+ const Vt = typeof TextEncoder == "function" ? new TextEncoder() : void 0, Ws = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", _e = Array.prototype.slice.call(Ws);
2285
2284
  ((e) => {
2286
2285
  let t = {};
2287
2286
  return e.forEach((n, r) => t[n] = r), t;
2288
- })(we);
2287
+ })(_e);
2289
2288
  const Z = String.fromCharCode.bind(String);
2290
2289
  typeof Uint8Array.from == "function" && Uint8Array.from.bind(Uint8Array);
2291
2290
  const Us = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" : "_"), Vs = (e) => {
@@ -2294,7 +2293,7 @@ const Us = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
2294
2293
  for (let f = 0; f < e.length; ) {
2295
2294
  if ((n = e.charCodeAt(f++)) > 255 || (r = e.charCodeAt(f++)) > 255 || (s = e.charCodeAt(f++)) > 255)
2296
2295
  throw new TypeError("invalid character found");
2297
- t = n << 16 | r << 8 | s, o += we[t >> 18 & 63] + we[t >> 12 & 63] + we[t >> 6 & 63] + we[t & 63];
2296
+ t = n << 16 | r << 8 | s, o += _e[t >> 18 & 63] + _e[t >> 12 & 63] + _e[t >> 6 & 63] + _e[t & 63];
2298
2297
  }
2299
2298
  return i ? o.slice(0, i - 3) + "===".substring(i) : o;
2300
2299
  }, yn = typeof btoa == "function" ? (e) => btoa(e) : pt ? (e) => Buffer.from(e, "binary").toString("base64") : Vs, Fs = pt ? (e) => Buffer.from(e).toString("base64") : (e) => {
@@ -2317,7 +2316,7 @@ const Us = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
2317
2316
  f + `background-image: url(${i});background-size: 580px 100px;background-repeat: norepeat; color: transparent;`
2318
2317
  );
2319
2318
  }, Ys = () => {
2320
- const { attrs: e, props: t } = Kt(), { pageShown: n, getTab: r, markDeletableCache: s, removeComponent: o, getComponent: i, addPageScroller: f } = Ie(), a = Ln(), l = at();
2319
+ const { attrs: e, props: t } = Kt(), { pageShown: n, getTab: r, markDeletableCache: s, removeComponent: o, getComponent: i, addPageScroller: f } = Be(), a = Ln(), l = at();
2321
2320
  let h = "", u = "";
2322
2321
  h = e.tId || t.tId;
2323
2322
  const d = e.pId || t.pId;
@@ -2383,8 +2382,8 @@ const Us = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
2383
2382
  return Ys(), (t, n) => (z(), P("div"));
2384
2383
  }
2385
2384
  }), to = () => {
2386
- const e = Ae(), { attrs: t } = Kt();
2387
- Ee(() => {
2385
+ const e = Ie(), { attrs: t } = Kt();
2386
+ Ae(() => {
2388
2387
  r();
2389
2388
  });
2390
2389
  const n = () => {
@@ -2395,7 +2394,7 @@ const Us = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
2395
2394
  return { openTabLoading: n, closeTabLoading: r };
2396
2395
  }, no = {
2397
2396
  install(e, t) {
2398
- Xs("0.1.22"), e.component("VueStackTabs", js).use(Tr).use(Zn().getI18n(t));
2397
+ Xs("0.1.23"), e.component("VueStackTabs", js).use(Tr).use(Zn().getI18n(t));
2399
2398
  }
2400
2399
  };
2401
2400
  export {
@@ -2,5 +2,5 @@
2
2
  * vue-i18n-lite v1.0.2
3
3
  * (c) 2021 Erik Pham
4
4
  * @license MIT
5
- */const Yt=["__proto__","prototype","constructor"];function Jt(e){const t=typeof e;return e!==null&&(t==="object"||t==="function")}function Kt(e){return!(Array.isArray(e)?e.length:Object.keys(e).length)}function Qt(e){return!e.some(t=>Yt.indexOf(t)!==-1)}function en(e){const t=e.split("."),n=[];for(let o=0;o<t.length;o++){let s=t[o];for(;s[s.length-1]==="\\"&&t[o+1]!==void 0;)s=s.slice(0,-1)+".",s+=t[++o];n.push(s)}return Qt(n)?n:[]}function Ye(e,t){if(!Jt(e))return"";const n=en(t);if(n.length===0)return"";let o=Object.assign({},e);for(let s=0;s<n.length;s++){if(typeof o[n[s]]=="string")return o[n[s]];if(o=o[n[s]],o==null){if(s!==n.length-1)return"";break}}return""}function tn(e,t){if(Array.isArray(t)){const n={},o=[...e.matchAll(/{(.+?)}/g)];return o&&o.forEach((s,i)=>{t[i]&&(n[s[1]]=t[i])}),n}return t}function nn(e,t){for(const n in t)e=e.replace(`{${n}}`,String(t[n]));return e}function Je(e,t){return Object.keys(t).forEach(n=>{t[n]instanceof Object&&n in e&&(t[n]={...t[n],...Je(e[n],t[n])})}),{...e||{},...t}}const rn=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Ke=(e=>rn?Symbol(e):"_vt_"+e)("i18n");function ge(){return r.inject(Ke)}function on(e){const t=Object.assign({locale:"en",fallbackLocale:"en",messages:{}},e),n=r.ref(t.locale),o=r.reactive({});return Object.entries(t.messages).forEach(([s,i])=>{o[s]=i}),{t(s,i){if(!s)return"";const a=typeof i=="string"&&i?i:n.value;let d=Ye(o[a],s)||Ye(o[t.fallbackLocale],s);if(i&&typeof i!="string"){const c=tn(d,i);Kt(c)||(d=nn(d,c))}return d||s},current:r.readonly(n),options:r.readonly(e||{}),install(s){const i=this;s.config.globalProperties.$t=i.t,s.provide(Ke,i)},changeLocale(s){n.value=s},setLocaleMessage(s,i){o[s]=Je(r.toRaw(o[s]||{}),i)},getLocaleMessage(s){return o[s]||{}}}}const sn=()=>{const e=Object.assign({"./lang/en.ts":Zt,"./lang/zh-CN.ts":Xt});function t(s,i){for(const a in s)if(s[a].default){const d=a.substring(a.lastIndexOf("/")+1,a.lastIndexOf("."));i[d]?i[d]={...s[d],...s[a].default}:i[d]=s[a].default}}const n=()=>{const s={};return t(e,s),s};return{getI18n:s=>{const i={...n()};if(s)for(const a of s)i[a.locale]=a.messages;return on({locale:"zh-CN",fallbackLocale:"en",messages:i})}}},Qe=({wrap:e,left:t=0,top:n=0,smooth:o=!0})=>{e&&(e.scrollTo?e.scrollTo({left:t,top:n,behavior:o?"smooth":"auto"}):(e.scrollLeft=t,e.scrollTop=n))};function an({el:e,wrap:t,block:n="start",inline:o="nearest"}){if(!(!e||!t))if(e.scrollIntoView)e.scrollIntoView({behavior:"smooth",block:n,inline:o});else{const{offsetLeft:s,offsetTop:i}=e;let a,d;n==="center"?d=i+(e.clientHeight-t.clientHeight)/2:d=i,o==="center"?a=s+(e.clientWidth-t.clientWidth)/2:a=s,Qe({wrap:t,left:a,top:d})}}const et=(e=".stack-tab__container *")=>{const t=Array.from(document.querySelectorAll(e)).map(n=>+window.getComputedStyle(n).zIndex||0);return t.length?Math.max(...t.filter(n=>n<9e4))+1:1};var Y=(e=>(e.WHEEL="wheel",e.BUTTON="button",e.BOTH="both",e))(Y||{});class ye{constructor(t){Ht(this,"items");if(this.items=new Map,t)for(const n of t)this.push(n)}push(t){this.items.set(this.items.size,t)}pop(){if(this.isEmpty())return;const t=this.items.get(this.items.size-1);return this.items.delete(this.items.size-1),t}peek(){if(!this.isEmpty())return this.items.get(this.items.size-1)}isEmpty(){return this.items.size===0}size(){return this.items.size}clear(){this.items.clear()}list(){return Array.from(this.items.values())}toString(){if(this.isEmpty())return"";let t="";return this.items.forEach((n,o)=>{t=`${t}${o===0?"":", "}${n}`}),t}toJSON(){return Array.from(this.items.values())}}function Le(e){if(!Ne(e))throw new Error("Parameter was not an error")}function Ne(e){return cn(e)==="[object Error]"||e instanceof Error}function cn(e){return Object.prototype.toString.call(e)}function ln(e){let t,n="";if(e.length===0)t={};else if(Ne(e[0]))t={cause:e[0]},n=e.slice(1).join(" ")||"";else if(e[0]&&typeof e[0]=="object")t=Object.assign({},e[0]),n=e.slice(1).join(" ")||"";else if(typeof e[0]=="string")t={},n=n=e.join(" ")||"";else throw new Error("Invalid arguments passed to Layerr");return{options:t,shortMessage:n}}class D extends Error{constructor(t,n){const o=[...arguments],{options:s,shortMessage:i}=ln(o);let a=i;if(s.cause&&(a=`${a}: ${s.cause.message}`),super(a),this.message=a,s.name&&typeof s.name=="string"?this.name=s.name:this.name="Layerr",s.cause&&Object.defineProperty(this,"_cause",{value:s.cause}),Object.defineProperty(this,"_info",{value:{}}),s.info&&typeof s.info=="object"&&Object.assign(this._info,s.info),Error.captureStackTrace){const d=s.constructorOpt||this.constructor;Error.captureStackTrace(this,d)}}static cause(t){return Le(t),t._cause&&Ne(t._cause)?t._cause:null}static fullStack(t){Le(t);const n=D.cause(t);return n?`${t.stack}
6
- caused by: ${D.fullStack(n)}`:t.stack}static info(t){Le(t);const n={},o=D.cause(t);return o&&Object.assign(n,D.info(o)),t._info&&Object.assign(n,t._info),n}cause(){return D.cause(this)}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}}const tt="0123456789ABCDEFGHJKMNPQRSTVWXYZ",ae=32,nt=0xffffffffffff,fn=10,un=16,ce=Object.freeze({source:"ulid"});function dn(e){const t=e||hn(),n=t&&(t.crypto||t.msCrypto)||null;if(typeof(n==null?void 0:n.getRandomValues)=="function")return()=>{const o=new Uint8Array(1);return n.getRandomValues(o),o[0]/255};if(typeof(n==null?void 0:n.randomBytes)=="function")return()=>n.randomBytes(1).readUInt8()/255;throw new D({info:{code:"PRNG_DETECT",...ce}},"Failed to find a reliable PRNG")}function hn(){return mn()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function pn(e,t){let n="";for(;e>0;e--)n=gn(t)+n;return n}function bn(e,t){if(isNaN(e))throw new D({info:{code:"ENC_TIME_NAN",...ce}},`Time must be a number: ${e}`);if(e>nt)throw new D({info:{code:"ENC_TIME_SIZE_EXCEED",...ce}},`Cannot encode a time larger than ${nt}: ${e}`);if(e<0)throw new D({info:{code:"ENC_TIME_NEG",...ce}},`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new D({info:{code:"ENC_TIME_TYPE",...ce}},`Time must be an integer: ${e}`);let n,o="";for(let s=t;s>0;s--)n=e%ae,o=tt.charAt(n)+o,e=(e-n)/ae;return o}function mn(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function gn(e){let t=Math.floor(e()*ae);return t===ae&&(t=ae-1),tt.charAt(t)}function rt(e,t){const n=t||dn(),o=isNaN(e)?Date.now():e;return bn(o,fn)+pn(un,n)}var ze={exports:{}};ze.exports,function(e){var t=function(){var n=String.fromCharCode,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={};function a(c,f){if(!i[c]){i[c]={};for(var p=0;p<c.length;p++)i[c][c.charAt(p)]=p}return i[c][f]}var d={compressToBase64:function(c){if(c==null)return"";var f=d._compress(c,6,function(p){return o.charAt(p)});switch(f.length%4){default:case 0:return f;case 1:return f+"===";case 2:return f+"==";case 3:return f+"="}},decompressFromBase64:function(c){return c==null?"":c==""?null:d._decompress(c.length,32,function(f){return a(o,c.charAt(f))})},compressToUTF16:function(c){return c==null?"":d._compress(c,15,function(f){return n(f+32)})+" "},decompressFromUTF16:function(c){return c==null?"":c==""?null:d._decompress(c.length,16384,function(f){return c.charCodeAt(f)-32})},compressToUint8Array:function(c){for(var f=d.compress(c),p=new Uint8Array(f.length*2),u=0,h=f.length;u<h;u++){var T=f.charCodeAt(u);p[u*2]=T>>>8,p[u*2+1]=T%256}return p},decompressFromUint8Array:function(c){if(c==null)return d.decompress(c);for(var f=new Array(c.length/2),p=0,u=f.length;p<u;p++)f[p]=c[p*2]*256+c[p*2+1];var h=[];return f.forEach(function(T){h.push(n(T))}),d.decompress(h.join(""))},compressToEncodedURIComponent:function(c){return c==null?"":d._compress(c,6,function(f){return s.charAt(f)})},decompressFromEncodedURIComponent:function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),d._decompress(c.length,32,function(f){return a(s,c.charAt(f))}))},compress:function(c){return d._compress(c,16,function(f){return n(f)})},_compress:function(c,f,p){if(c==null)return"";var u,h,T={},x={},A="",O="",S="",_=2,v=3,k=2,E=[],l=0,b=0,g;for(g=0;g<c.length;g+=1)if(A=c.charAt(g),Object.prototype.hasOwnProperty.call(T,A)||(T[A]=v++,x[A]=!0),O=S+A,Object.prototype.hasOwnProperty.call(T,O))S=O;else{if(Object.prototype.hasOwnProperty.call(x,S)){if(S.charCodeAt(0)<256){for(u=0;u<k;u++)l=l<<1,b==f-1?(b=0,E.push(p(l)),l=0):b++;for(h=S.charCodeAt(0),u=0;u<8;u++)l=l<<1|h&1,b==f-1?(b=0,E.push(p(l)),l=0):b++,h=h>>1}else{for(h=1,u=0;u<k;u++)l=l<<1|h,b==f-1?(b=0,E.push(p(l)),l=0):b++,h=0;for(h=S.charCodeAt(0),u=0;u<16;u++)l=l<<1|h&1,b==f-1?(b=0,E.push(p(l)),l=0):b++,h=h>>1}_--,_==0&&(_=Math.pow(2,k),k++),delete x[S]}else for(h=T[S],u=0;u<k;u++)l=l<<1|h&1,b==f-1?(b=0,E.push(p(l)),l=0):b++,h=h>>1;_--,_==0&&(_=Math.pow(2,k),k++),T[O]=v++,S=String(A)}if(S!==""){if(Object.prototype.hasOwnProperty.call(x,S)){if(S.charCodeAt(0)<256){for(u=0;u<k;u++)l=l<<1,b==f-1?(b=0,E.push(p(l)),l=0):b++;for(h=S.charCodeAt(0),u=0;u<8;u++)l=l<<1|h&1,b==f-1?(b=0,E.push(p(l)),l=0):b++,h=h>>1}else{for(h=1,u=0;u<k;u++)l=l<<1|h,b==f-1?(b=0,E.push(p(l)),l=0):b++,h=0;for(h=S.charCodeAt(0),u=0;u<16;u++)l=l<<1|h&1,b==f-1?(b=0,E.push(p(l)),l=0):b++,h=h>>1}_--,_==0&&(_=Math.pow(2,k),k++),delete x[S]}else for(h=T[S],u=0;u<k;u++)l=l<<1|h&1,b==f-1?(b=0,E.push(p(l)),l=0):b++,h=h>>1;_--,_==0&&(_=Math.pow(2,k),k++)}for(h=2,u=0;u<k;u++)l=l<<1|h&1,b==f-1?(b=0,E.push(p(l)),l=0):b++,h=h>>1;for(;;)if(l=l<<1,b==f-1){E.push(p(l));break}else b++;return E.join("")},decompress:function(c){return c==null?"":c==""?null:d._decompress(c.length,32768,function(f){return c.charCodeAt(f)})},_decompress:function(c,f,p){var u=[],h=4,T=4,x=3,A="",O=[],S,_,v,k,E,l,b,g={val:p(0),position:f,index:1};for(S=0;S<3;S+=1)u[S]=S;for(v=0,E=Math.pow(2,2),l=1;l!=E;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=f,g.val=p(g.index++)),v|=(k>0?1:0)*l,l<<=1;switch(v){case 0:for(v=0,E=Math.pow(2,8),l=1;l!=E;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=f,g.val=p(g.index++)),v|=(k>0?1:0)*l,l<<=1;b=n(v);break;case 1:for(v=0,E=Math.pow(2,16),l=1;l!=E;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=f,g.val=p(g.index++)),v|=(k>0?1:0)*l,l<<=1;b=n(v);break;case 2:return""}for(u[3]=b,_=b,O.push(b);;){if(g.index>c)return"";for(v=0,E=Math.pow(2,x),l=1;l!=E;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=f,g.val=p(g.index++)),v|=(k>0?1:0)*l,l<<=1;switch(b=v){case 0:for(v=0,E=Math.pow(2,8),l=1;l!=E;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=f,g.val=p(g.index++)),v|=(k>0?1:0)*l,l<<=1;u[T++]=n(v),b=T-1,h--;break;case 1:for(v=0,E=Math.pow(2,16),l=1;l!=E;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=f,g.val=p(g.index++)),v|=(k>0?1:0)*l,l<<=1;u[T++]=n(v),b=T-1,h--;break;case 2:return O.join("")}if(h==0&&(h=Math.pow(2,x),x++),u[b])A=u[b];else if(b===T)A=_+_.charAt(0);else return null;O.push(A),u[T++]=_+A.charAt(0),h--,_=A,h==0&&(h=Math.pow(2,x),x++)}}};return d}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})}(ze);var ot=ze.exports;const yn=new TextEncoder,kn=new TextDecoder("utf-8",{ignoreBOM:!0}),st={encode:e=>yn.encode(e),decode:e=>kn.decode(e)},it=(()=>{const t=[..."0123456789abcdef"],n=new Array(256);for(let o=0;o<256;o++)n[o]=`${t[o>>>4&15]}${t[o&15]}`;return n})(),wn=(()=>{const e={};for(let t=0;t<256;t++){const n=it[t],o=n[0],s=o.toUpperCase(),i=n[1],a=i.toUpperCase();e[n]=t,e[`${o}${a}`]=t,e[`${s}${i}`]=t,e[`${s}${a}`]=t}return e})(),$e={encode:e=>{let t="";for(let n=0,o=e.length;n<o;n++)t+=it[e[n]];return t},encodeStr:e=>$e.encode(st.encode(e)),decode:e=>{const t=e.length/2,n=new Uint8Array(t);for(let o=0;o<t;o++)n[o]=wn[e.slice(o*2,o*2+2)];return n},decodeStr:e=>st.decode($e.decode(e)),is:e=>!(e.length%2||!/^[a-fA-F0-9]*$/.test(e))};function le(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function _n(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function at(e,...t){if(!_n(e))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function Re(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function ct(e,t){at(e);const n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}const ke=BigInt(2**32-1),lt=BigInt(32);function ft(e,t=!1){return t?{h:Number(e&ke),l:Number(e>>lt&ke)}:{h:Number(e>>lt&ke)|0,l:Number(e&ke)|0}}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Tn=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),we=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));function vn(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}const _e=(e,t)=>e<<32-t|e>>>t;if(!(new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68))throw new Error("Non little-endian hardware is not supported");function xn(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function Ve(e){if(typeof e=="string"&&(e=xn(e)),!vn(e))throw new Error(`expected Uint8Array, got ${typeof e}`);return e}class Sn{clone(){return this._cloneInto()}}function En(e){const t=(o,s)=>e(s).update(Ve(o)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=o=>e(o),t}class On extends Sn{constructor(t,n,o={},s,i,a){if(super(),this.blockLen=t,this.outputLen=n,this.length=0,this.pos=0,this.finished=!1,this.destroyed=!1,le(t),le(n),le(s),n<0||n>s)throw new Error("outputLen bigger than keyLen");if(o.key!==void 0&&(o.key.length<1||o.key.length>s))throw new Error(`key must be up 1..${s} byte long or undefined`);if(o.salt!==void 0&&o.salt.length!==i)throw new Error(`salt must be ${i} byte long or undefined`);if(o.personalization!==void 0&&o.personalization.length!==a)throw new Error(`personalization must be ${a} byte long or undefined`);this.buffer32=we(this.buffer=new Uint8Array(t))}update(t){Re(this);const{blockLen:n,buffer:o,buffer32:s}=this;t=Ve(t);const i=t.length,a=t.byteOffset,d=t.buffer;for(let c=0;c<i;){this.pos===n&&(this.compress(s,0,!1),this.pos=0);const f=Math.min(n-this.pos,i-c),p=a+c;if(f===n&&!(p%4)&&c+f<i){const u=new Uint32Array(d,p,Math.floor((i-c)/4));for(let h=0;c+n<i;h+=s.length,c+=n)this.length+=n,this.compress(u,h,!1);continue}o.set(t.subarray(c,c+f),this.pos),this.pos+=f,this.length+=f,c+=f}return this}digestInto(t){Re(this),ct(t,this);const{pos:n,buffer32:o}=this;this.finished=!0,this.buffer.subarray(n).fill(0),this.compress(o,0,!0);const s=we(t);this.get().forEach((i,a)=>s[a]=i)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const o=t.slice(0,n);return this.destroy(),o}_cloneInto(t){const{buffer:n,length:o,finished:s,destroyed:i,outputLen:a,pos:d}=this;return t||(t=new this.constructor({dkLen:a})),t.set(...this.get()),t.length=o,t.finished=s,t.destroyed=i,t.outputLen=a,t.buffer.set(n),t.pos=d,t}}const H=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);function J(e,t,n,o,s){return e=e+t+s|0,o=_e(o^e,16),n=n+o|0,t=_e(t^n,12),{a:e,b:t,c:n,d:o}}function K(e,t,n,o,s){return e=e+t+s|0,o=_e(o^e,8),n=n+o|0,t=_e(t^n,7),{a:e,b:t,c:n,d:o}}function ut(e,t,n,o,s,i,a,d,c,f,p,u,h,T,x,A,O,S,_,v){let k=0;for(let E=0;E<o;E++)({a:s,b:c,c:h,d:O}=J(s,c,h,O,n[t+e[k++]])),{a:s,b:c,c:h,d:O}=K(s,c,h,O,n[t+e[k++]]),{a:i,b:f,c:T,d:S}=J(i,f,T,S,n[t+e[k++]]),{a:i,b:f,c:T,d:S}=K(i,f,T,S,n[t+e[k++]]),{a,b:p,c:x,d:_}=J(a,p,x,_,n[t+e[k++]]),{a,b:p,c:x,d:_}=K(a,p,x,_,n[t+e[k++]]),{a:d,b:u,c:A,d:v}=J(d,u,A,v,n[t+e[k++]]),{a:d,b:u,c:A,d:v}=K(d,u,A,v,n[t+e[k++]]),{a:s,b:f,c:x,d:v}=J(s,f,x,v,n[t+e[k++]]),{a:s,b:f,c:x,d:v}=K(s,f,x,v,n[t+e[k++]]),{a:i,b:p,c:A,d:O}=J(i,p,A,O,n[t+e[k++]]),{a:i,b:p,c:A,d:O}=K(i,p,A,O,n[t+e[k++]]),{a,b:u,c:h,d:S}=J(a,u,h,S,n[t+e[k++]]),{a,b:u,c:h,d:S}=K(a,u,h,S,n[t+e[k++]]),{a:d,b:c,c:T,d:_}=J(d,c,T,_,n[t+e[k++]]),{a:d,b:c,c:T,d:_}=K(d,c,T,_,n[t+e[k++]]);return{v0:s,v1:i,v2:a,v3:d,v4:c,v5:f,v6:p,v7:u,v8:h,v9:T,v10:x,v11:A,v12:O,v13:S,v14:_,v15:v}}const dt=(()=>{const e=Array.from({length:16},(o,s)=>s),t=o=>[2,6,3,10,7,0,4,13,1,11,12,5,9,14,15,8].map(s=>o[s]),n=[];for(let o=0,s=e;o<7;o++,s=t(s))n.push(...s);return Uint8Array.from(n)})();class Pe extends On{constructor(t={},n=0){if(super(64,t.dkLen===void 0?32:t.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=t.dkLen===void 0?32:t.dkLen,le(this.outputLen),t.key!==void 0&&t.context!==void 0)throw new Error("Blake3: only key or context can be specified at same time");if(t.key!==void 0){const o=Ve(t.key).slice();if(o.length!==32)throw new Error("Blake3: key should be 32 byte");this.IV=we(o),this.flags=n|16}else if(t.context!==void 0){const o=new Pe({dkLen:32},32).update(t.context).digest();this.IV=we(o),this.flags=n|64}else this.IV=H.slice(),this.flags=n;this.state=this.IV.slice(),this.bufferOut=Tn(this.bufferOut32)}get(){return[]}set(){}b2Compress(t,n,o,s=0){const{state:i,pos:a}=this,{h:d,l:c}=ft(BigInt(t),!0),{v0:f,v1:p,v2:u,v3:h,v4:T,v5:x,v6:A,v7:O,v8:S,v9:_,v10:v,v11:k,v12:E,v13:l,v14:b,v15:g}=ut(dt,s,o,7,i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],H[0],H[1],H[2],H[3],d,c,a,n);i[0]=f^S,i[1]=p^_,i[2]=u^v,i[3]=h^k,i[4]=T^E,i[5]=x^l,i[6]=A^b,i[7]=O^g}compress(t,n=0,o=!1){let s=this.flags;if(this.chunkPos||(s|=1),(this.chunkPos===15||o)&&(s|=2),o||(this.pos=this.blockLen),this.b2Compress(this.chunksDone,s,t,n),this.chunkPos+=1,this.chunkPos===16||o){let i=this.state;this.state=this.IV.slice();for(let a,d=this.chunksDone+1;(o||!(d&1))&&(a=this.stack.pop());d>>=1)this.buffer32.set(a,0),this.buffer32.set(i,8),this.pos=this.blockLen,this.b2Compress(0,this.flags|4,this.buffer32,0),i=this.state,this.state=this.IV.slice();this.chunksDone++,this.chunkPos=0,this.stack.push(i)}this.pos=0}_cloneInto(t){t=super._cloneInto(t);const{IV:n,flags:o,state:s,chunkPos:i,posOut:a,chunkOut:d,stack:c,chunksDone:f}=this;return t.state.set(s.slice()),t.stack=c.map(p=>Uint32Array.from(p)),t.IV.set(n),t.flags=o,t.chunkPos=i,t.chunksDone=f,t.posOut=a,t.chunkOut=d,t.enableXOF=this.enableXOF,t.bufferOut32.set(this.bufferOut32),t}destroy(){this.destroyed=!0,this.state.fill(0),this.buffer32.fill(0),this.IV.fill(0),this.bufferOut32.fill(0);for(let t of this.stack)t.fill(0)}b2CompressOut(){const{state:t,pos:n,flags:o,buffer32:s,bufferOut32:i}=this,{h:a,l:d}=ft(BigInt(this.chunkOut++)),{v0:c,v1:f,v2:p,v3:u,v4:h,v5:T,v6:x,v7:A,v8:O,v9:S,v10:_,v11:v,v12:k,v13:E,v14:l,v15:b}=ut(dt,0,s,7,t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],H[0],H[1],H[2],H[3],d,a,n,o);i[0]=c^O,i[1]=f^S,i[2]=p^_,i[3]=u^v,i[4]=h^k,i[5]=T^E,i[6]=x^l,i[7]=A^b,i[8]=t[0]^O,i[9]=t[1]^S,i[10]=t[2]^_,i[11]=t[3]^v,i[12]=t[4]^k,i[13]=t[5]^E,i[14]=t[6]^l,i[15]=t[7]^b,this.posOut=0}finish(){if(this.finished)return;this.finished=!0,this.buffer.fill(0,this.pos);let t=this.flags|8;this.stack.length?(t|=4,this.compress(this.buffer32,0,!0),this.chunksDone=0,this.pos=this.blockLen):t|=(this.chunkPos?0:1)|2,this.flags=t,this.b2CompressOut()}writeInto(t){Re(this,!1),at(t),this.finish();const{blockLen:n,bufferOut:o}=this;for(let s=0,i=t.length;s<i;){this.posOut>=n&&this.b2CompressOut();const a=Math.min(n-this.posOut,i-s);t.set(o.subarray(this.posOut,this.posOut+a),s),this.posOut+=a,s+=a}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible after digest call");return this.writeInto(t)}xof(t){return le(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(ct(t,this),this.finished)throw new Error("digest() was already called");return this.enableXOF=!1,this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}}const Bn=En(e=>new Pe(e)),ht=e=>{const t=`${e.id}|${e.title}|${e.iframe?"Y":"N"}|${e.closable?"Y":"N"}|${e.refreshable?"Y":"N"}`;return ot.compressToEncodedURIComponent(t)},Cn=e=>{const n=ot.decompressFromEncodedURIComponent(e).split("|");return{id:n[0],title:n[1],iframe:n[2]==="Y",closable:n[3]==="Y",refreshable:n[4]==="Y"}},pt=(e,t,n)=>{const o=[];for(const i in n)i.startsWith("__")||o.push({key:i,value:n[i]});o.sort((i,a)=>{let d=0;return i.key>a.key?d=1:i.key<a.key&&(d=-1),d});const s=Bn(`${e}|${t}|${JSON.stringify(o)}`);return $e.encode(s)};function je(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function De(e,t,n=".",o){if(!je(t))return De(e,{},n,o);const s=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const a=e[i];a!=null&&(o&&o(s,i,a,n)||(Array.isArray(a)&&Array.isArray(s[i])?s[i]=[...a,...s[i]]:je(a)&&je(s[i])?s[i]=De(a,s[i],(n?`${n}.`:"")+i.toString(),o):s[i]=a))}return s}function An(e){return(...t)=>t.reduce((n,o)=>De(n,o,"",e),{})}const Z=An(),Ue=e=>{const t=e.split("?");if(t.length<=1)return{path:t[0],query:{}};{const n=t[1].split("&"),o={};for(const s of n){const i=s.split("=");i[1]!==null&&i[1]!==void 0&&i[1]!==""&&(o[i[0]]=i[1])}return{path:t[0],query:o}}};function In(e){return{all:e=e||new Map,on:function(t,n){var o=e.get(t);o?o.push(n):e.set(t,[n])},off:function(t,n){var o=e.get(t);o&&(n?o.splice(o.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var o=e.get(t);o&&o.slice().map(function(s){s(n)}),(o=e.get("*"))&&o.slice().map(function(s){s(t,n)})}}}const Mn=In(),Ln={install(e){e.provide("tabEmitter",Mn)}},fe=()=>r.inject("tabEmitter");var P=(e=>(e.PAGE_LOADING="PAGE_LOADING",e.TAB_ACTIVE="TAB_ACTIVE",e))(P||{});const Nn={key:0,class:"stack-tab-loading-mask"},zn=[r.createElementVNode("div",{class:"stack-tab-loading--spin turn"},null,-1)],$n=r.defineComponent({__name:"PageLoading",props:{tId:{}},setup(e){const t=e,n=fe(),o=r.ref(!1);return n.on(P.PAGE_LOADING,({tId:s,value:i})=>{s===t.tId&&(o.value=i)}),(s,i)=>o.value?(r.openBlock(),r.createElementBlock("div",Nn,zn)):r.createCommentVNode("",!0)}}),M=r.ref([]),Te=[],z=r.ref([]),ee=new Map,ve=new Set,ue=r.ref(!0),bt="stacktab-active-tab",te=new Map;let mt=!1,xe=0,gt=!1;const de=()=>{const e=F.useRouter(),t=fe(),n=()=>M.value.length,o=w=>{Te.splice(0);for(const B of w){const y=Z(B,{id:rt()}),I=ht(y),$=Ue(y.path),V=Z(y,{closable:!0,refreshable:!0,iframe:!1}),ie=pt(y.id,$.path,$.query),X={id:ie,tabId:y.id,path:$.path,query:Z($.query,{__tab:I})},Me=new ye;Me.push(X);const Gt={id:y.id,title:V.title,closable:V.closable,refreshable:V.refreshable,iframe:V.iframe,active:!1,pages:Me};Te.push(Gt),M.value.push(Gt),z.value.push(ie)}const m=window.sessionStorage.getItem(bt);if(m!=null){const B=JSON.parse(m,(I,$)=>I==="pages"?new ye($):$);let y=!1;for(const I of M.value)if(I.id===B.id){y=!0;break}y||M.value.push(B)}mt=!0},s=w=>{for(const m of M.value)if(m.id===w)return!0;return!1},i=()=>xe<=0||xe>0&&xe>M.value.length,a=w=>new Promise(m=>{M.value.push(w),m(!0)}),d=w=>{for(const m of M.value)if(m.id===w)return m;return null},c=(w,m)=>{let B;const y=Cn(w.query.__tab),I=pt(y.id,w.path,w.query.valueOf()),$=w.query.__src;let V=null;for(const X of r.unref(M))X.active=!1,X.id===y.id&&(V=X);const ie={id:I,tabId:y.id,path:w.path,query:w.query};if(V===null){const X=new ye;X.push(ie),V={id:y.id,title:y.title,closable:y.closable,refreshable:y.refreshable,iframe:y.iframe,url:decodeURIComponent($),active:!0,pages:X},a(V).then(()=>{t.emit(P.TAB_ACTIVE,{id:y.id,isRoute:!1})})}else V.active=!0,(V.pages.isEmpty()||V.pages.peek().id!==ie.id)&&V.pages.push(ie);return C(V),ee.has(I)?B=ee.get(I):(B=r.defineComponent({name:I,components:{DynamicComponent:m},emits:{onLoaded:null},setup(X,Me){return r.onMounted(()=>{Me.emit("onLoaded"),h(I,".cache-page-wrapper")}),r.onDeactivated(()=>{p(I)}),r.onActivated(()=>{f(I),g(),m.props=null}),r.onUnmounted(()=>{u(I)}),()=>r.createVNode("div",{class:"cache-page-wrapper",id:"W-"+y.id,style:[gt?"overflow:auto":"overflow:hidden"]},[r.createVNode(r.resolveComponent("dynamic-component"),{tId:y.id,pId:I},null),r.createVNode($n,{tId:y.id},null)])}}),ee.set(I,B)),U(I),B},f=w=>{const m=te.get(w);if(m){for(const B of m.keys())if(document.querySelector(B)){const y=m.get(B);document.querySelector(B).scrollTop=y.top,document.querySelector(B).scrollLeft=y.left}}},p=w=>{var B,y;const m=te.get(w);if(m)for(const I of m.keys()){const $={top:((B=document.querySelector(I))==null?void 0:B.scrollTop)??0,left:((y=document.querySelector(I))==null?void 0:y.scrollLeft)??0};m.set(I,$)}},u=w=>{const m=te.get(w);m&&(m.clear(),te.delete(w))},h=(w,...m)=>{te.has(w)||te.set(w,new Map);const B=te.get(w);for(const y of m)B.set(y,{top:0,left:0})},T=w=>{let m="";for(let B=M.value.length-1;B>=0;B--)if(w===r.unref(M)[B].id){if(!r.unref(M)[B].closable)return w;for(const y of r.unref(M)[B].pages.list())l(y.id),b(y.id);r.unref(M)[B].pages.clear(),M.value.length>1&&r.unref(M)[B].active&&(B===0?m=r.unref(M)[B+1].id:m=r.unref(M)[B-1].id),r.unref(M).splice(B,1);break}return m!==""&&t.emit(P.TAB_ACTIVE,{id:m}),g(),m},x=()=>{const w=r.unref(M);for(let m=w.length-1;m>=0;m--)if(w[m].closable){for(const B of w[m].pages.list())l(B.id),b(B.id);r.unref(M)[m].pages.clear(),r.unref(M).splice(m,1)}for(const m of w)if(m.active){g();return}t.emit(P.TAB_ACTIVE,{id:w[w.length-1].id})},A=w=>{const m=r.unref(M);let B;for(let y=m.length-1;y>=0;y--)if(m[y].id===w)B=m[y];else if(m[y].closable&&m[y].id!==w){for(const I of m[y].pages.list())l(I.id),b(I.id);r.unref(M)[y].pages.clear(),r.unref(M).splice(y,1)}B.active?g():t.emit(P.TAB_ACTIVE,{id:w})},O=w=>{let m=-1;const B=r.unref(M);for(let y=0;y<B.length;y++)if(B[y].id===w){m=y-1;break}for(let y=m;y>=0;y--)if(B[y].closable){for(const I of B[y].pages.list())l(I.id),b(I.id);r.unref(M)[y].pages.clear(),r.unref(M).splice(y,1)}for(const y of B)if(y.active){g();return}t.emit(P.TAB_ACTIVE,{id:B[0].id})},S=w=>{const m=r.unref(M);let B=m.length;for(let y=0;y<m.length;y++)if(m[y].id===w){B=y+1;break}for(let y=m.length-1;y>=B;y--)if(m[y].closable){for(const I of m[y].pages.list())l(I.id),b(I.id);r.unref(M)[y].pages.clear(),r.unref(M).splice(y,1)}for(const y of m)if(y.active){g();return}t.emit(P.TAB_ACTIVE,{id:m[m.length-1].id})},_=w=>{var m;for(const B of r.unref(M))if(B.id===w){const y=(m=B.pages.peek())==null?void 0:m.id;for(let I=z.value.length-1;I>=0;I--)if(z.value[I]===y){z.value.splice(I,1),B.active&&(ue.value=!1);break}break}},v=()=>{const w=new Set;M.value.forEach(m=>{w.add(m.pages.peek().id)});for(let m=z.value.length-1;m>=0;m--){const B=z.value[m];w.has(B)&&z.value.splice(m,1)}ue.value=!1},k=(w,m)=>{ee.set(w,m)},E=w=>ee.get(w),l=w=>{ee.delete(w)},b=w=>{ve.add(w)},g=()=>{for(let w=z.value.length-1;w>=0;w--)ve.has(z.value[w])&&r.unref(z).splice(w,1);ve.clear()},R=w=>{for(let m=z.value.length-1;m>=0;m--)w===z.value[m]&&r.unref(z).splice(m,1)},U=w=>{new Set(z.value).has(w)||z.value.push(w)},W=(w,m=!0)=>new Promise(B=>{for(let y=M.value.length-1;y>=0;y--){const I=M.value[y];if(I.id===w){if(I.active)break;if(I.active=!0,ue.value=!1,C(I),m){const $=I.pages.peek();e.push({path:$.path,query:$.query})}}else M.value[y].active=!1}B(!0)}),C=w=>{window.sessionStorage.setItem(bt,JSON.stringify(w))},L=()=>{j(),r.unref(M).push(...Te),t.emit(P.TAB_ACTIVE,{id:Te[0].id})},j=()=>{r.unref(M).splice(0),ee.clear(),ve.clear(),r.unref(z).splice(0),ue.value=!0};return{tabs:M,caches:z,pageShown:ue,initialed:mt,setMaxSize:w=>{xe=w},canAddTab:i,initial:o,size:n,active:W,destroy:j,reset:L,addCache:U,removeCache:R,getTab:d,addTab:a,removeTab:T,removeAllTabs:x,removeLeftTabs:O,removeRightTabs:S,removeOtherTabs:A,hasTab:s,addPage:c,addComponent:k,getComponent:E,removeComponent:l,markDeletableCache:b,removeDeletableCache:g,refreshTab:_,refreshAllTabs:v,addPageScroller:h,setGlobalScroll:w=>{gt=w}}},Rn={class:"stack-tab__contextmenu-item"},Q=r.defineComponent({__name:"ContextMenuItem",props:{icon:{},title:{}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",Rn,[r.createElementVNode("div",{class:r.normalizeClass(["stack-tab__contextmenu-icon",t.icon])},null,2),r.createElementVNode("div",{style:{"margin-left":"8px"},onContextmenu:n[0]||(n[0]=r.withModifiers(()=>{},["prevent"]))},r.toDisplayString(t.title),33)]))}}),Vn={key:0,class:"divider div-transparent"},Pn=((e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n})(r.defineComponent({__name:"index",props:{index:{},left:{default:0},top:{default:0},contextMenu:{},tabItem:{},max:{}},setup(e){const t=e,{t:n}=ge(),o=r.ref(),s=r.reactive({left:t.left,top:t.top}),{removeTab:i,removeAllTabs:a,removeLeftTabs:d,removeRightTabs:c,refreshTab:f,refreshAllTabs:p,removeOtherTabs:u}=de();return r.onMounted(()=>{const h=o.value?o.value.clientWidth:0,T=window.innerWidth;s.left+h>T&&(s.left=T-h-5)}),(h,T)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"contextmenu",ref:o,class:"stack-tab__contextmenu",style:r.normalizeStyle({left:`${s.left}px`,top:`${s.top}px`,"z-index":r.unref(et)(".stack-tab,.stack-tab *")})},[r.createVNode(Q,{icon:"stack-tab__icon-reload svg-mask",title:r.unref(n)("VueStackTab.reload"),onClick:T[0]||(T[0]=x=>r.unref(f)(h.tabItem.id))},null,8,["title"]),r.createVNode(Q,{icon:"stack-tab__icon-reload-all svg-mask",title:r.unref(n)("VueStackTab.reloadAll"),onClick:r.unref(p)},null,8,["title","onClick"]),r.createVNode(Q,{icon:"stack-tab__icon-close svg-mask",title:r.unref(n)("VueStackTab.close"),disabled:h.tabItem.closable?null:"disabled",onClick:T[1]||(T[1]=x=>r.unref(i)(h.tabItem.id))},null,8,["title","disabled"]),r.createVNode(Q,{icon:"stack-tab__icon-close-lefts svg-mask",title:r.unref(n)("VueStackTab.closeLeft"),disabled:h.index<=0?"disabled":null,onClick:T[2]||(T[2]=x=>r.unref(d)(h.tabItem.id))},null,8,["title","disabled"]),r.createVNode(Q,{icon:"stack-tab__icon-close-rights svg-mask",title:r.unref(n)("VueStackTab.closeRight"),disabled:h.index>=h.max-1?"disabled":null,onClick:T[3]||(T[3]=x=>r.unref(c)(h.tabItem.id))},null,8,["title","disabled"]),r.createVNode(Q,{icon:"stack-tab__icon-close-others svg-mask",title:r.unref(n)("VueStackTab.closeOthers"),onClick:T[4]||(T[4]=x=>r.unref(u)(h.tabItem.id))},null,8,["title"]),r.createVNode(Q,{icon:"stack-tab__icon-close-all svg-mask",title:r.unref(n)("VueStackTab.closeAll"),onClick:r.unref(a)},null,8,["title","onClick"]),h.contextMenu!==void 0&&h.contextMenu.length>0?(r.openBlock(),r.createElementBlock("div",Vn)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(h.contextMenu,(x,A)=>(r.openBlock(),r.createBlock(Q,{key:A,icon:x.icon,title:x.title,disabled:x.disabled(h.tabItem)?"disabled":null,onClick:O=>!x.disabled&&x.callback(h.tabItem.id)},null,8,["icon","title","disabled","onClick"]))),128))],4))}}),[["__scopeId","data-v-d598be6e"]]),jn=()=>{const e=r.reactive({item:{},index:-1,left:0,top:0,max:0}),t=r.ref(!1);r.onMounted(()=>{document.addEventListener("click",o)}),r.onUnmounted(()=>{document.removeEventListener("click",o)});const n=async(s,i,a,d)=>{t.value=!1,await r.nextTick(()=>{const{clientY:c,clientX:f}=s;t.value=!0,Object.assign(e,{item:i,index:a,top:c,left:f,max:d})})},o=s=>{s.target.classList.contains("stack-tab__contextmenu")||(t.value=!1)};return{shown:t,contextMenuData:e,showContextMenu:n}},Dn={class:"stack-tab__item-title"},Un=["title"],Wn=["title"],Fn=r.defineComponent({__name:"TabHeaderItem",props:{item:{}},emits:["close","active"],setup(e,{emit:t}){const n=t,o=fe(),{t:s}=ge(),i=r.ref(),a=e;o.on(P.TAB_ACTIVE,({id:p,isRoute:u})=>{a.item.id===p&&f(u)});const d=r.computed(()=>a.item.title||s("undefined")),c=()=>{n("close",a.item)},f=(p=!0)=>{n("active",a.item,i,p)};return(p,u)=>(r.openBlock(),r.createElementBlock("li",{ref_key:"curtab",ref:i,class:r.normalizeClass(["stack-tab__item",{"is-active":p.item.active,"is-icon":p.item.closable}]),onClick:u[0]||(u[0]=h=>f(!0))},[r.createElementVNode("div",Dn,[r.createElementVNode("div",{class:"stack-tab__item-title-content",title:d.value},r.toDisplayString(d.value),9,Un)]),p.item.closable?(r.openBlock(),r.createElementBlock("div",{key:0,class:"stack-tab__icon-close-fill stack-tab__item-button",title:r.unref(s)("VueStackTab.close"),onClick:r.withModifiers(c,["stop"])},null,8,Wn)):r.createCommentVNode("",!0)],2))}});var ne=[],qn=function(){return ne.some(function(e){return e.activeTargets.length>0})},Gn=function(){return ne.some(function(e){return e.skippedTargets.length>0})},yt="ResizeObserver loop completed with undelivered notifications.",Hn=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:yt}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=yt),window.dispatchEvent(e)},he;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(he||(he={}));var re=function(e){return Object.freeze(e)},Zn=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,re(this)}return e}(),kt=function(){function e(t,n,o,s){return this.x=t,this.y=n,this.width=o,this.height=s,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,re(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,o=t.y,s=t.top,i=t.right,a=t.bottom,d=t.left,c=t.width,f=t.height;return{x:n,y:o,top:s,right:i,bottom:a,left:d,width:c,height:f}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),We=function(e){return e instanceof SVGElement&&"getBBox"in e},wt=function(e){if(We(e)){var t=e.getBBox(),n=t.width,o=t.height;return!n&&!o}var s=e,i=s.offsetWidth,a=s.offsetHeight;return!(i||a||e.getClientRects().length)},_t=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},Xn=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},pe=typeof window<"u"?window:{},Se=new WeakMap,Tt=/auto|scroll/,Yn=/^tb|vertical/,Jn=/msie|trident/i.test(pe.navigator&&pe.navigator.userAgent),q=function(e){return parseFloat(e||"0")},se=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new Zn((n?t:e)||0,(n?e:t)||0)},vt=re({devicePixelContentBoxSize:se(),borderBoxSize:se(),contentBoxSize:se(),contentRect:new kt(0,0,0,0)}),xt=function(e,t){if(t===void 0&&(t=!1),Se.has(e)&&!t)return Se.get(e);if(wt(e))return Se.set(e,vt),vt;var n=getComputedStyle(e),o=We(e)&&e.ownerSVGElement&&e.getBBox(),s=!Jn&&n.boxSizing==="border-box",i=Yn.test(n.writingMode||""),a=!o&&Tt.test(n.overflowY||""),d=!o&&Tt.test(n.overflowX||""),c=o?0:q(n.paddingTop),f=o?0:q(n.paddingRight),p=o?0:q(n.paddingBottom),u=o?0:q(n.paddingLeft),h=o?0:q(n.borderTopWidth),T=o?0:q(n.borderRightWidth),x=o?0:q(n.borderBottomWidth),A=o?0:q(n.borderLeftWidth),O=u+f,S=c+p,_=A+T,v=h+x,k=d?e.offsetHeight-v-e.clientHeight:0,E=a?e.offsetWidth-_-e.clientWidth:0,l=s?O+_:0,b=s?S+v:0,g=o?o.width:q(n.width)-l-E,R=o?o.height:q(n.height)-b-k,U=g+O+E+_,W=R+S+k+v,C=re({devicePixelContentBoxSize:se(Math.round(g*devicePixelRatio),Math.round(R*devicePixelRatio),i),borderBoxSize:se(U,W,i),contentBoxSize:se(g,R,i),contentRect:new kt(u,c,g,R)});return Se.set(e,C),C},St=function(e,t,n){var o=xt(e,n),s=o.borderBoxSize,i=o.contentBoxSize,a=o.devicePixelContentBoxSize;switch(t){case he.DEVICE_PIXEL_CONTENT_BOX:return a;case he.BORDER_BOX:return s;default:return i}},Kn=function(){function e(t){var n=xt(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=re([n.borderBoxSize]),this.contentBoxSize=re([n.contentBoxSize]),this.devicePixelContentBoxSize=re([n.devicePixelContentBoxSize])}return e}(),Et=function(e){if(wt(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Qn=function(){var e=1/0,t=[];ne.forEach(function(a){if(a.activeTargets.length!==0){var d=[];a.activeTargets.forEach(function(f){var p=new Kn(f.target),u=Et(f.target);d.push(p),f.lastReportedSize=St(f.target,f.observedBox),u<e&&(e=u)}),t.push(function(){a.callback.call(a.observer,d,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,o=t;n<o.length;n++){var s=o[n];s()}return e},Ot=function(e){ne.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(s){s.isActive()&&(Et(s.target)>e?n.activeTargets.push(s):n.skippedTargets.push(s))})})},er=function(){var e=0;for(Ot(e);qn();)e=Qn(),Ot(e);return Gn()&&Hn(),e>0},Fe,Bt=[],tr=function(){return Bt.splice(0).forEach(function(e){return e()})},nr=function(e){if(!Fe){var t=0,n=document.createTextNode(""),o={characterData:!0};new MutationObserver(function(){return tr()}).observe(n,o),Fe=function(){n.textContent="".concat(t?t--:t++)}}Bt.push(e),Fe()},rr=function(e){nr(function(){requestAnimationFrame(e)})},Ee=0,or=function(){return!!Ee},sr=250,ir={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ct=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],At=function(e){return e===void 0&&(e=0),Date.now()+e},qe=!1,ar=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=sr),!qe){qe=!0;var o=At(t);rr(function(){var s=!1;try{s=er()}finally{if(qe=!1,t=o-At(),!or())return;s?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,ir)};document.body?n():pe.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ct.forEach(function(n){return pe.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Ct.forEach(function(n){return pe.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Ge=new ar,It=function(e){!Ee&&e>0&&Ge.start(),Ee+=e,!Ee&&Ge.stop()},cr=function(e){return!We(e)&&!Xn(e)&&getComputedStyle(e).display==="inline"},lr=function(){function e(t,n){this.target=t,this.observedBox=n||he.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=St(this.target,this.observedBox,!0);return cr(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),fr=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Oe=new WeakMap,Mt=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Be=function(){function e(){}return e.connect=function(t,n){var o=new fr(t,n);Oe.set(t,o)},e.observe=function(t,n,o){var s=Oe.get(t),i=s.observationTargets.length===0;Mt(s.observationTargets,n)<0&&(i&&ne.push(s),s.observationTargets.push(new lr(n,o&&o.box)),It(1),Ge.schedule())},e.unobserve=function(t,n){var o=Oe.get(t),s=Mt(o.observationTargets,n),i=o.observationTargets.length===1;s>=0&&(i&&ne.splice(ne.indexOf(o),1),o.observationTargets.splice(s,1),It(-1))},e.disconnect=function(t){var n=this,o=Oe.get(t);o.observationTargets.slice().forEach(function(s){return n.unobserve(t,s.target)}),o.activeTargets.splice(0,o.activeTargets.length)},e}(),Lt=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Be.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!_t(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Be.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!_t(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Be.unobserve(this,t)},e.prototype.disconnect=function(){Be.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const ur=["disabled","title"],dr={key:1,class:"stack-tab__button"},Ce=r.defineComponent({__name:"TabHeaderButton",props:{disabled:{type:Boolean,default:!1},shadow:{default:null},iconClass:{default:""},title:{}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["stack-tab__header-button",{"stack-tab__shadow-right":t.shadow==="right","stack-tab__shadow-left":t.shadow==="left"}]),disabled:t.disabled?"disabled":null,title:t.title},["icon"in t.$slots?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["stack-tab__mask-button",t.iconClass])},null,2)),"icon"in t.$slots?(r.openBlock(),r.createElementBlock("div",dr,[r.renderSlot(t.$slots,"icon")])):r.createCommentVNode("",!0)],10,ur))}}),hr=r.defineComponent({__name:"TabHeaderScroll",props:{space:{default:300},isScrollWheel:{type:Boolean,default:!0},isScrollButton:{type:Boolean,default:!0}},setup(e,{expose:t}){const n=r.ref(null),o=r.ref(null),s=r.ref(null),i=r.ref(!1),a=r.ref(!1),d=r.ref(!1),c=r.ref(!0),f=r.ref(),p=e,u=r.reactive({clientWidth:0,scrollWidth:0,scrollLeft:0}),h=r.reactive({thumbLeft:0,startScrollLeft:0,startThumbLeft:0,startPageX:0});r.watch(u,C=>{T(C)});const T=C=>{a.value=C.scrollLeft<=10,d.value=C.clientWidth+C.scrollLeft-C.scrollWidth>=-10,c.value=C.scrollWidth!==C.clientWidth},x=r.computed(()=>u.scrollWidth>u.clientWidth),A=r.computed(()=>{if(!x.value)return 0;const{clientWidth:C,scrollWidth:L}=u;return C/L*C}),O=r.computed(()=>{if(!x.value)return 0;const{clientWidth:C,scrollWidth:L,scrollLeft:j}=u;return(C-A.value)*(j/(L-C))}),S=()=>{if(n.value===null||n.value===void 0)return;const{clientWidth:C,scrollWidth:L,scrollLeft:j}=n.value;Object.assign(u,{clientWidth:C,scrollWidth:L,scrollLeft:j})},_=new Lt(()=>{var L;S();const C=(L=n.value)==null?void 0:L.querySelector(".stack-tab__item.is-active");C&&(W(C)||U(C))}),v=new Lt(()=>{var C;if(!x.value){const L=(C=n.value)==null?void 0:C.querySelector(".stack-tab__item.is-active");L&&(W(L)||U(L))}S()}),k=(C,L=!0)=>{Qe({wrap:n.value,left:C,smooth:L})},E=C=>{k(n.value.scrollLeft+C)},l=C=>{const L=C.deltaY<0;k(n.value.scrollLeft+(L?-p.space:p.space))},b=C=>{var L;Object.assign(h,{startPageX:C.pageX,startScrollLeft:(L=n.value)==null?void 0:L.scrollLeft,startThumbLeft:O.value,thumbLeft:O.value}),i.value=!0,document.addEventListener("mousemove",g),document.addEventListener("mouseup",R)},g=C=>{const{clientWidth:L,scrollWidth:j}=u;let oe=h.startThumbLeft+C.pageX-h.startPageX;const Xe=L-A.value;oe<0?oe=0:oe>Xe&&(oe=Xe),h.thumbLeft=oe,k(oe*(j-L)/(L-A.value),!1),C.preventDefault()},R=C=>{i.value=!1,document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",R),C.preventDefault()};r.onMounted(()=>{var L;_.observe(f.value);const C=(L=n.value)==null?void 0:L.querySelector(".stack-tab__nav");v.observe(C)}),r.onUnmounted(()=>{_.disconnect(),v.disconnect()});const U=C=>{an({el:C,wrap:n,block:"end",inline:"center"})},W=C=>{if(!x.value)return!0;const L=C.offsetLeft,j=n.value.scrollLeft;return!(L<j||L+C.clientWidth>j+n.value.clientWidth)};return t({scrollIntoView:U,isInView:W}),(C,L)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[c.value?(r.openBlock(),r.createBlock(Ce,{key:0,"icon-class":"stack-tab__icon-left-arrow",disabled:a.value,onClick:L[0]||(L[0]=j=>!a.value&&E(-1*C.space))},null,8,["disabled"])):r.createCommentVNode("",!0),r.createElementVNode("div",{ref_key:"headerScroll",ref:f,class:"stack-tab__scroll",onWheel:r.withModifiers(l,["prevent"])},[r.createElementVNode("div",{ref_key:"container",ref:n,class:r.normalizeClass(["stack-tab__scroll-container",{"stack-tab__shadow-inset-left":!a.value&&d.value,"stack-tab__shadow-inset-right":!d.value&&a.value,"stack-tab__shadow-inset-all":!a.value&&!d.value}]),onScrollPassive:S},[r.renderSlot(C.$slots,"default")],34),r.withDirectives(r.createElementVNode("div",{ref_key:"bar",ref:o,class:r.normalizeClass(["stack-tab__scrollbar",{"is-dragging":i.value}])},[r.createElementVNode("div",{ref_key:"thumb",ref:s,class:r.normalizeClass(["stack-tab__scrollbar-thumb",{"is-dragging":i.value}]),style:r.normalizeStyle({width:`${A.value}px`,transform:`translateX(${O.value}px)`}),onMousedown:r.withModifiers(b,["prevent"])},null,38)],2),[[r.vShow,x.value]])],544),c.value?(r.openBlock(),r.createBlock(Ce,{key:1,"icon-class":"stack-tab__icon-right-arrow",disabled:d.value,onClick:L[1]||(L[1]=j=>!d.value&&E(C.space))},null,8,["disabled"])):r.createCommentVNode("",!0)],64))}}),pr={class:"stack-tab__header"},br=r.defineComponent({__name:"index",props:{space:{},tabScrollMode:{default:Y.BOTH},tabTransition:{default:()=>({name:"stack-tab-zoom"})},contextmenu:{type:[Boolean,Object],default:!0},max:{default:20}},emits:["active"],setup(e,{emit:t}){const{t:n}=ge(),o=r.inject("maximum"),s=t,i=r.ref(),{shown:a,contextMenuData:d,showContextMenu:c}=jn(),f=e,{removeTab:p,active:u,tabs:h}=de(),T=r.computed(()=>typeof f.tabTransition=="string"?{name:f.tabTransition}:f.tabTransition),x=r.computed(()=>f.tabScrollMode===Y.BOTH||f.tabScrollMode===Y.BUTTON),A=f.tabScrollMode===Y.BOTH||f.tabScrollMode===Y.WHEEL,O=_=>{if(_.closable){const v=p(_.id);s("active",v)}a.value=!1},S=(_,v,k)=>{i.value&&(r.nextTick(()=>{i.value.isInView(v.value)||i.value.scrollIntoView(v.value)}),u(_.id,k),s("active",_.id))};return(_,v)=>(r.openBlock(),r.createElementBlock("div",pr,[r.renderSlot(_.$slots,"leftButton"),r.createVNode(hr,{ref_key:"scroll",ref:i,space:_.space,"is-scroll-wheel":r.unref(A),"is-scroll-button":x.value},{default:r.withCtx(()=>[r.createVNode(r.TransitionGroup,r.mergeProps({key:"tabItemTrans",tag:"ul",class:"stack-tab__nav"},T.value,{appear:""}),{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(h),(k,E)=>(r.openBlock(),r.createBlock(Fn,{key:k.id,contextmenu:_.contextmenu,item:k,onContextmenu:r.withModifiers(l=>r.unref(c)(l,k,E,r.unref(h).length),["prevent"]),onMouseup:r.withModifiers(l=>O(k),["middle","prevent"]),onClose:O,onActive:S},null,8,["contextmenu","item","onContextmenu","onMouseup"]))),128))]),_:1},16)]),_:1},8,["space","is-scroll-wheel","is-scroll-button"]),r.renderSlot(_.$slots,"rightButton"),r.createVNode(Ce,{"icon-class":r.unref(o)?"stack-tab__icon-restore":"stack-tab__icon-fullscreen",title:r.unref(n)("VueStackTab.maximum"),onClick:v[0]||(v[0]=k=>o.value=!r.unref(o))},null,8,["icon-class","title"]),r.createVNode(r.Transition,{name:"stack-tab-zoom",appear:""},{default:r.withCtx(()=>[r.unref(a)?(r.openBlock(),r.createBlock(Pn,{key:"tabMenuTrans",left:r.unref(d).left,top:r.unref(d).top,"tab-item":r.unref(d).item,max:r.unref(d).max,index:r.unref(d).index},null,8,["left","top","tab-item","max","index"])):r.createCommentVNode("",!0)]),_:1})]))}});var mr=typeof global=="object"&&global&&global.Object===Object&&global,gr=typeof self=="object"&&self&&self.Object===Object&&self,Nt=mr||gr||Function("return this")(),Ae=Nt.Symbol,zt=Object.prototype,yr=zt.hasOwnProperty,kr=zt.toString,be=Ae?Ae.toStringTag:void 0;function wr(e){var t=yr.call(e,be),n=e[be];try{e[be]=void 0;var o=!0}catch{}var s=kr.call(e);return o&&(t?e[be]=n:delete e[be]),s}var _r=Object.prototype,Tr=_r.toString;function vr(e){return Tr.call(e)}var xr="[object Null]",Sr="[object Undefined]",$t=Ae?Ae.toStringTag:void 0;function Er(e){return e==null?e===void 0?Sr:xr:$t&&$t in Object(e)?wr(e):vr(e)}function Or(e){return e!=null&&typeof e=="object"}var Br="[object Symbol]";function Cr(e){return typeof e=="symbol"||Or(e)&&Er(e)==Br}var Ar=/\s/;function Ir(e){for(var t=e.length;t--&&Ar.test(e.charAt(t)););return t}var Mr=/^\s+/;function Lr(e){return e&&e.slice(0,Ir(e)+1).replace(Mr,"")}function Ie(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Rt=NaN,Nr=/^[-+]0x[0-9a-f]+$/i,zr=/^0b[01]+$/i,$r=/^0o[0-7]+$/i,Rr=parseInt;function Vt(e){if(typeof e=="number")return e;if(Cr(e))return Rt;if(Ie(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ie(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Lr(e);var n=zr.test(e);return n||$r.test(e)?Rr(e.slice(2),n?2:8):Nr.test(e)?Rt:+e}var He=function(){return Nt.Date.now()},Vr="Expected a function",Pr=Math.max,jr=Math.min;function Dr(e,t,n){var o,s,i,a,d,c,f=0,p=!1,u=!1,h=!0;if(typeof e!="function")throw new TypeError(Vr);t=Vt(t)||0,Ie(n)&&(p=!!n.leading,u="maxWait"in n,i=u?Pr(Vt(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function T(l){var b=o,g=s;return o=s=void 0,f=l,a=e.apply(g,b),a}function x(l){return f=l,d=setTimeout(S,t),p?T(l):a}function A(l){var b=l-c,g=l-f,R=t-b;return u?jr(R,i-g):R}function O(l){var b=l-c,g=l-f;return c===void 0||b>=t||b<0||u&&g>=i}function S(){var l=He();if(O(l))return _(l);d=setTimeout(S,A(l))}function _(l){return d=void 0,h&&o?T(l):(o=s=void 0,a)}function v(){d!==void 0&&clearTimeout(d),f=0,o=c=s=d=void 0}function k(){return d===void 0?a:_(He())}function E(){var l=He(),b=O(l);if(o=arguments,s=this,c=l,b){if(d===void 0)return x(c);if(u)return clearTimeout(d),d=setTimeout(S,t),T(c)}return d===void 0&&(d=setTimeout(S,t)),a}return E.cancel=v,E.flush=k,E}var Ur="Expected a function";function Wr(e,t,n){var o=!0,s=!0;if(typeof e!="function")throw new TypeError(Ur);return Ie(n)&&(o="leading"in n?!!n.leading:o,s="trailing"in n?!!n.trailing:s),Dr(e,t,{leading:o,maxWait:t,trailing:s})}let Pt;const jt=()=>{const e=F.useRouter(),{active:t,hasTab:n,pageShown:o,reset:s,canAddTab:i,destroy:a}=de(),d=fe(),c=Wr(u=>new Promise((h,T)=>{if(!o.value){T();return}const x=Z(u,{refreshable:!0,closable:!0,iframe:!1});if(n(x.id)){d.emit(P.TAB_ACTIVE,{id:x.id}),h(x.id);return}if(x.id||(x.id=rt()),!i()){T("Max Size");return}f(u,x),h(x.id)}),500),f=(u,h)=>{const T=ht(h);let x=Z({__tab:T},u.query),A;if(u.iframe){const O=encodeURIComponent(u.path);A=Pt,x.__src=O}else{const O=Ue(u.path);A=O.path,x=Z(O.query,x)}e.push({path:A,query:x})};return{openNewTab:c,setIFramePath:u=>{Pt=u},active:t,reset:s,destroy:a}},Fr={class:"stack-tab__container"},qr=["src"],Dt=r.defineComponent({__name:"StackTabs",props:{defaultTabs:{default:()=>[]},max:{default:20},append:{default:"last"},contextmenu:{type:[Boolean,Object],default:!0},pageTransition:{default:"stack-tab-swap"},tabTransition:{default:"stack-tab-zoom"},tabScrollMode:{default:Y.BOTH},width:{default:"100%"},height:{default:"100%"},i18n:{default:"zh-CN"},space:{default:300},globalScroll:{type:Boolean,default:!1},iframePath:{}},emits:["onActive","onPageLoaded"],setup(e,{emit:t}){const{tabs:n,pageShown:o,caches:s,addPage:i,destroy:a,initial:d,setMaxSize:c,setGlobalScroll:f}=de(),p=t,u=e,{changeLocale:h}=ge(),T=r.ref(!1);r.provide("maximum",T);const{setIFramePath:x}=jt();x(u.iframePath),f(u.globalScroll),h(u.i18n),r.onBeforeMount(()=>{d(u.defaultTabs)});const A=(_,v)=>i(_,v),O=_=>{p("onActive",_)};c(u.max),r.onUnmounted(()=>{a()});const S=()=>{p("onPageLoaded")};return(_,v)=>{const k=r.resolveComponent("router-view");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["stack-tab",{"stack-tab__maximum":T.value}]),style:r.normalizeStyle({width:_.width,height:_.height,"z-index":T.value?r.unref(et)("body *:not(.stack-tab,.stack-tab *)"):void 0})},[r.createVNode(br,{space:_.space,onActive:O,"tab-transition":_.tabTransition,max:_.max},{leftButton:r.withCtx(()=>[r.renderSlot(_.$slots,"leftButton")]),rightButton:r.withCtx(()=>[r.renderSlot(_.$slots,"rightButton")]),_:3},8,["space","tab-transition","max"]),r.createElementVNode("div",Fr,[r.createVNode(k,null,{default:r.withCtx(({Component:E,route:l})=>[r.createVNode(r.Transition,{name:_.pageTransition,onAfterLeave:v[0]||(v[0]=b=>o.value=!0),mode:"out-in"},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.KeepAlive,{include:r.unref(s)},[(r.openBlock(),r.createBlock(r.Suspense,null,{default:r.withCtx(()=>[r.unref(o)?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(A(l,E)),{key:l.fullPath,onOnLoaded:S},null,32)):r.createCommentVNode("",!0)]),fallback:r.withCtx(()=>[r.createTextVNode(" Loading.... ")]),_:2},1024))],1032,["include"]))]),_:2},1032,["name"])]),_:1}),r.createVNode(r.TransitionGroup,{name:_.pageTransition,appear:""},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(n).filter(E=>E.iframe),E=>r.withDirectives((r.openBlock(),r.createElementBlock("iframe",{key:E.id,class:"stack-tab__iframe",src:/^(javascript|data):/i.test(E.url??"")?"about:blank":E.url,frameborder:"0"},null,8,qr)),[[r.vShow,E.active&&r.unref(o)]])),128))]),_:1},8,["name"])])],6)}}}),Ze=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const Ut=typeof TextEncoder=="function"?new TextEncoder:void 0,me=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");(e=>{let t={};return e.forEach((n,o)=>t[n]=o),t})(me);const G=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const Gr=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),Wt=typeof btoa=="function"?e=>btoa(e):Ze?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,n,o,s,i="";const a=e.length%3;for(let d=0;d<e.length;){if((n=e.charCodeAt(d++))>255||(o=e.charCodeAt(d++))>255||(s=e.charCodeAt(d++))>255)throw new TypeError("invalid character found");t=n<<16|o<<8|s,i+=me[t>>18&63]+me[t>>12&63]+me[t>>6&63]+me[t&63]}return a?i.slice(0,a-3)+"===".substring(a):i},Hr=Ze?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let o=0,s=e.length;o<s;o+=4096)n.push(G.apply(null,e.subarray(o,o+4096)));return Wt(n.join(""))},Zr=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?G(192|t>>>6)+G(128|t&63):G(224|t>>>12&15)+G(128|t>>>6&63)+G(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return G(240|t>>>18&7)+G(128|t>>>12&63)+G(128|t>>>6&63)+G(128|t&63)}},Xr=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Yr=e=>e.replace(Xr,Zr),Ft=Ze?e=>Buffer.from(e,"utf8").toString("base64"):Ut?e=>Hr(Ut.encode(e)):e=>Wt(Yr(e)),Jr=(e,t=!1)=>t?Gr(Ft(e)):Ft(e),Kr=e=>{const o=`<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1167.06 237.75"><path d="M79.24,19.73h108.91v29.7h-108.91v-29.7Z" style="fill:#79a7ff; stroke-width:0px;"/><path d="M179.24,199.67H20.26c-11.21-.07-20.26-9.17-20.26-20.38V20.39C0,9.18,9.05.07,20.26,0h59.49c3.51.07,6.34,2.9,6.41,6.42v44.36c0,3.54-2.87,6.41-6.41,6.41s-6.41-2.86-6.42-6.4V12.36H20.25c-4.13.07-7.44,3.44-7.44,7.56v159.41c0,4.13,3.31,7.49,7.44,7.56h158.98c4.13-.07,7.44-3.44,7.44-7.56V51.84c0-3.54,2.87-6.41,6.41-6.42,3.55,0,6.42,2.87,6.42,6.42v127.45c0,11.21-9.05,20.32-20.26,20.39h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M192.8,60.77c-3.66-.07-6.61-3.02-6.68-6.68v-18.23c.09-4.29-3.32-7.83-7.6-7.92h-96.43c-3.69,0-6.69-2.99-6.69-6.69s2.99-6.69,6.69-6.69h96.27c11.69.08,21.13,9.58,21.13,21.27v18.25c0,3.69-2.99,6.68-6.68,6.68h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M193.08,58.67H10.15c-3.61-.08-6.48-3.07-6.41-6.68-.08-3.62,2.79-6.61,6.4-6.69,0,0,0,0,0,0h182.93c3.62.08,6.48,3.08,6.41,6.69.07,3.61-2.79,6.6-6.41,6.68h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M137.2,58.67c-3.42.24-6.4-2.32-6.68-5.74v-28.15c.55-3.69,4-6.24,7.69-5.69,2.94.44,5.24,2.75,5.69,5.69v28.15c-.28,3.42-3.26,5.98-6.68,5.74h-.02Z" style="fill:#377dff; stroke-width:0px;"/><path d="M99.78,100.48l-12.83-22.22h-18.39l31.22,54.05,31.22-54.05h-18.39l-12.83,22.22Z" style="fill:#00d797; stroke-width:0px;"/><path d="M135.28,78.26l-35.49,61.43-35.44-61.43h-20.11l55.55,96.2,55.55-96.2s-20.06,0-20.06,0ZM313.33,59.95c0,.52-.67,1.84-2,3.95s-3.3,5.2-5.9,9.28-5.75,9.28-9.46,15.61c-3.7,6.33-7.52,13.34-11.45,21.04-4.51,8.85-7.76,15.8-9.76,20.86s-2.99,9.41-2.99,13.05c0,2.89,1.53,5.44,4.6,7.63,3.7-2.89,7.34-6.33,10.93-10.32,3.58-3.99,7.13-8.44,10.63-13.36s7.55-11.13,12.14-18.65c4.6-7.52,8.69-14.43,12.27-20.73-.17-.52-.36-1.04-.56-1.56s-.3-.95-.3-1.3c0-2.72.55-5.26,1.65-7.63,1.1-2.37,2.47-4.68,4.12-6.94s4.12-5.44,7.42-9.54c.87-1.1,1.94-1.65,3.21-1.65,2.08,0,3.12,1.33,3.12,3.99s-1.08,6.84-3.25,12.53c-2.17,5.7-5.37,12.39-9.59,20.08s-9.47,16.29-15.74,25.81c-6.28,9.51-13.37,19.45-21.3,29.8-8.04,10.47-13.79,15.7-17.26,15.7-1.97,0-4.19-1.08-6.68-3.25s-4.63-5.13-6.42-8.89-2.69-7.78-2.69-12.06c0-2.54.53-5.81,1.6-9.8s2.75-8.78,5.03-14.36,4.87-11.09,7.76-16.53c3.01-5.72,5.65-10.47,7.94-14.23,2.28-3.76,4.87-7.94,7.76-12.53,2.89-4.6,4.34-7.1,4.34-7.5,0-.87-.58-1.3-1.73-1.3-3.35,0-7.82,1.71-13.4,5.12s-12.85,8.59-21.82,15.53c-3.41,2.66-5.57,4.38-6.46,5.16s-1.34,1.43-1.34,1.95c0,.69.55,1.04,1.65,1.04.46,0,2.02-.17,4.68-.52s4.77-.52,6.33-.52c2.6,0,3.9.46,3.9,1.39,0,.81-.54,1.45-1.61,1.91-1.07.46-2.54.93-4.42,1.39s-4.44,1.1-7.68,1.91c-3.47.93-7.16,2.25-11.06,3.99-3.9,1.73-6.14,2.6-6.72,2.6-1.1,0-1.78-.4-2.04-1.21s-.39-2.14-.39-3.99c0-8.21,1.36-14.56,4.08-19.04s7.58-9.15,14.57-14.01c7.98-5.55,15.61-10.16,22.9-13.84,7.29-3.67,13.58-6.36,18.87-8.07s9.18-2.56,11.67-2.56,4.84,1.56,7.24,4.68,3.6,6.42,3.6,9.89h0ZM366.34,124.75c-8.39,11.1-14.76,19-19.13,23.68s-7.94,7.03-10.71,7.03c-2.2,0-4.22-.91-6.07-2.73-1.85-1.82-3.28-4.28-4.29-7.37s-1.52-6.4-1.52-9.93c0-2.31.22-4.39.65-6.25.43-1.85,1.26-3.89,2.47-6.12s2.82-4.64,4.81-7.24c2-2.6,4.44-5.55,7.33-8.85,1.73-2.02,3.19-3.73,4.38-5.12,1.18-1.39,2.34-2.33,3.47-2.82s2.96-.74,5.51-.74c1.85,0,3.61.25,5.29.74,1.68.49,2.52,1,2.52,1.52,0,1.04-.85,2.92-2.56,5.64s-4.45,6.03-8.24,9.93c-3.79,3.9-8.17,7.74-13.14,11.49-1.1,3.41-1.65,6.01-1.65,7.81,0,2.49.95,3.73,2.86,3.73.69,0,1.85-.59,3.47-1.78,1.62-1.18,4.35-3.47,8.2-6.85,3.84-3.38,7.3-6.38,10.37-8.98,2.25-1.97,4.87-4.9,7.85-8.8s5.39-6.84,7.24-8.8c4.28-4.51,7.2-7.44,8.76-8.8s3.06-2.04,4.51-2.04,2.33.43,2.82,1.3c.49.87.74,2.63.74,5.29,0,1.21-.12,2.2-.35,2.95s-.71,1.72-1.43,2.91-2.18,3.37-4.38,6.55-4.8,6.94-7.81,11.28c-1.66,2.38-3.09,4.93-4.25,7.59-1.21,2.75-1.82,4.81-1.82,6.2,0,3.01,1.18,4.51,3.56,4.51,1.96,0,4.25-.81,6.85-2.43s6.59-4.54,11.97-8.76v5.81c-6.77,6.25-11.77,10.79-15.01,13.62s-6.04,4.97-8.41,6.42-4.63,2.17-6.77,2.17c-4.86,0-7.29-2.89-7.29-8.67,0-2.2.72-5.16,2.17-8.89,1.44-3.73,3.79-9.12,7.03-16.18v-.02Z" style="fill:#306fff; stroke-width:0px;"/><path d="M407.71,133.77v2.17c0,3.41.84,6.07,2.52,7.98,1.68,1.91,3.87,2.86,6.59,2.86s5.77-.66,8.8-2c3.04-1.33,6.06-3.09,9.07-5.29s6.68-5.15,11.02-8.85v5.29c-6.54,7.87-12.67,13.89-18.39,18.09-5.72,4.19-11.54,6.29-17.44,6.29-5.15,0-9.22-2-12.23-5.99s-4.51-9.46-4.51-16.39c0-6.07,1.42-11.58,4.25-16.52s7.46-10.16,13.88-15.66c4.39-3.76,8.76-6.59,13.1-8.5s8.21-2.86,11.62-2.86c2.72,0,4.87.62,6.46,1.86s2.39,3.11,2.39,5.59c0,3.64-1.36,7.27-4.08,10.89s-6.87,7.2-12.45,10.76c-5.58,3.56-12.45,6.98-20.6,10.28h0ZM408.58,128.13c5.2-2.02,9.66-4.54,13.36-7.55,3.7-3.01,6.43-5.88,8.2-8.63,1.76-2.75,2.65-4.76,2.65-6.03s-.61-2-1.82-2c-1.04,0-2.73.67-5.07,2s-4.71,3.07-7.11,5.21-4.55,4.66-6.46,7.55c-1.9,2.86-3.17,6.08-3.73,9.46h-.02ZM585.37,132.9c-1.45-2.66-3.61-5.06-6.51-7.2-2.89-2.14-6.15-3.86-9.76-5.16s-7.39-2.27-11.32-2.91c-11.68-1.74-22.58-5.52-32.7-11.36-.87-.46-1.79-1.44-2.78-2.95-.98-1.5-1.47-2.95-1.47-4.34,0-5.09.85-10.19,2.56-15.31,1.71-5.12,3.89-9.12,6.55-12.01,4.28-4.8,11.98-8.99,23.12-12.58,11.13-3.58,23.67-5.38,37.6-5.38,8.33,0,14.76.64,19.3,1.91s6.81,3.24,6.81,5.9c0,4.34-.59,7.69-1.78,10.06s-2.46,3.95-3.82,4.73c-1.36.78-3.75,1.84-7.16,3.17-3.64,1.27-6.81,2.6-9.5,3.99s-4.99,2.72-6.9,3.99c-1.91,1.27-3.09,1.91-3.56,1.91-.58,0-.87-.23-.87-.69,0-.98,1.03-2.47,3.08-4.47s4.58-3.74,7.59-5.25c3.18-1.68,4.77-2.75,4.77-3.21,0-.75-1.76-1.13-5.29-1.13-10.7,0-20.59.95-29.67,2.86s-16.24,4.42-21.47,7.55c-5.23,3.12-7.85,6.3-7.85,9.54,0,2.02,1.08,3.46,3.25,4.29,2.17.84,6.95,2.24,14.36,4.21,7.4,1.97,14.02,4.22,19.86,6.77,8.38,3.59,14.6,7.32,18.65,11.19,4.05,3.88,6.07,8.21,6.07,13.01,0,3.3-.8,6.61-2.39,9.93-1.59,3.33-3.92,6.38-6.98,9.15-3.07,2.78-6.59,5.06-10.58,6.85-3.41,1.45-7.71,2.8-12.88,4.08-5.18,1.27-10.79,2.27-16.83,2.99-6.04.72-11.81,1.08-17.31,1.08-10.12,0-18.26-.95-24.42-2.86s-9.24-4.8-9.24-8.67c0-1.74,1.04-4.44,3.12-8.11s4.54-6.14,7.37-7.42c2.49-.98,4.89-1.55,7.2-1.69,2.31-.14,3.47.13,3.47.82,0,.17-.09.35-.26.52s-.38.32-.61.43c-.23.12-.46.23-.69.35-1.16.46-2.1.82-2.82,1.08-.72.26-1.3.52-1.74.78-.43.26-.65.62-.65,1.08,0,1.21,5.99,1.82,17.96,1.82,10.41,0,18.94-.38,25.59-1.13s12.52-2.11,17.61-4.08c5.09-1.97,9.71-4.68,13.88-8.15l.04.02ZM640.8,85.63h3.73c3.06-5.49,5.84-9.38,8.33-11.67,2.49-2.28,5.32-3.43,8.5-3.43s4.77.72,4.77,2.17c0,.69-1.24,2.57-3.73,5.64s-4.37,5.64-5.64,7.72c1.96.23,3.71.43,5.25.61,1.53.17,2.73.32,3.6.43-3.3,6.13-7.43,12.4-12.4,18.82l-4.08-.3c-1.1-.09-2.21-.17-3.34-.26s-2.5-.19-4.12-.3c-3.12,5.03-5.74,9.53-7.85,13.49s-3.73,7.59-4.86,10.89-1.69,6.42-1.69,9.37c0,3.99,1.59,5.99,4.77,5.99,2.2,0,5.07-1.17,8.63-3.51s8.31-5.94,14.27-10.8v5.81c-15.61,16.95-27.15,25.42-34.61,25.42-2.6,0-4.7-1.01-6.29-3.04-1.59-2.02-2.38-4.63-2.38-7.81,0-2.14.45-4.68,1.34-7.63.9-2.95,2.5-7.4,4.81-13.36-.81.69-1.58,1.37-2.3,2.04s-1.39,1.27-2,1.82-1.26,1.13-1.95,1.73c-.69.61-1.39,1.23-2.08,1.87v-5.99c6.07-5.09,13.42-14.02,22.03-26.8-.87-.06-1.68-.1-2.43-.13s-1.65-.04-2.69-.04c-3.41,0-5.96.23-7.63.69-.69.17-1.34.36-1.95.56s-1.03.3-1.26.3-.35-.17-.35-.52c0-1.91,1.18-4.77,3.56-8.59,1.91-3.24,3.72-5.64,5.42-7.2,1.71-1.56,3.79-2.62,6.25-3.17,2.46-.55,5.91-.82,10.37-.82h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M664.91,115.12c8.79-7.98,17.32-13.91,25.59-17.78s14.66-5.81,19.17-5.81c1.21,0,2.34.51,3.38,1.52,1.04,1,1.88,2.19,2.47,3.51.61,1.33.91,2.31.91,2.95,0,1.04-.41,1.81-1.21,2.3-.81.49-2.23,1.08-4.25,1.78.4.93.92,2.11,1.56,3.56s1.13,2.62,1.47,3.51c.35.9.52,1.69.52,2.39,0,1.39-1.4,3.98-4.21,7.76-2.81,3.79-4.77,6.58-5.9,8.37-1.13,1.79-1.69,3.99-1.69,6.59,0,4.28,1.96,6.42,5.9,6.42s10.38-3.79,19-11.36v5.29c-14.63,16.25-25.1,24.38-31.4,24.38-2.26,0-3.86-.74-4.81-2.21s-1.43-3.66-1.43-6.55c0-4.57,1.65-11.19,4.94-19.86-8.44,9.37-14.72,16.03-18.82,20-4.11,3.96-7.49,5.94-10.15,5.94-1.27,0-2.86-1.1-4.77-3.3-1.91-2.2-3.6-5.04-5.07-8.54-1.47-3.5-2.21-7.13-2.21-10.89,0-2.72.26-4.99.78-6.81s1.53-3.69,3.04-5.59c1.5-1.91,3.9-4.42,7.2-7.55v-.02ZM706.46,105.58c-15.04,6.88-25.75,12.72-32.14,17.52s-9.59,9.75-9.59,14.83c0,1.85.32,3.37.95,4.55.64,1.19,1.5,1.78,2.6,1.78.64,0,1.76-.4,3.38-1.21,6.07-3.58,11.62-8.25,16.66-14.01,5.03-5.75,11.07-13.58,18.13-23.46h.01Z" style="fill:#306fff; stroke-width:0px;"/><path d="M779.07,130.82v5.81c-6.19,6.07-11.23,10.79-15.14,14.14-3.9,3.35-7.55,5.96-10.93,7.81-3.38,1.85-6.69,2.78-9.93,2.78s-6.1-1.26-8.76-3.77c-2.66-2.52-4.74-5.81-6.25-9.89-1.5-4.08-2.26-8.4-2.26-12.97,0-3.93.87-7.43,2.6-10.5,1.74-3.07,5.09-7.03,10.06-11.88,5.9-5.78,11.38-10.25,16.44-13.4s9.04-4.73,11.93-4.73c2.08,0,3.85.72,5.29,2.17s2.17,3.27,2.17,5.46c0,1.85-.95,4.48-2.86,7.89-1.91,3.41-4.05,6.38-6.42,8.89-2.37,2.52-4.25,3.77-5.64,3.77-1.5,0-2.25-.81-2.25-2.43.06-.46.1-.9.13-1.3s.04-.81.04-1.21c0-.69-.25-1.08-.74-1.17s-1.08.13-1.78.65c-5.78,4.05-9.75,6.9-11.88,8.54-2.14,1.65-3.83,3.31-5.07,4.99s-1.87,3.44-1.87,5.29c0,3.41,1.1,6.19,3.3,8.33s5.06,3.21,8.59,3.21,8.02-1.4,13.14-4.21c5.12-2.8,11.15-6.9,18.09-12.27h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M844.13,130.65v5.81c-6.48,7.58-11.91,13.32-16.31,17.22s-8.07,5.86-11.02,5.86-5.39-.84-7.68-2.52c-2.29-1.68-4.34-3.99-6.16-6.94-1.82-2.95-3.98-7.05-6.46-12.32-2.95,3.64-5.61,7.04-7.98,10.19-2.37,3.15-4.02,5.25-4.94,6.29-.93,1.04-1.77,1.56-2.52,1.56-1.56,0-2.69-1-3.38-2.99-.69-2-1.04-4.9-1.04-8.72,0-5.21.62-10.22,1.87-15.05,1.24-4.83,3.04-9.53,5.38-14.1s5.35-9.5,9.02-14.79c3.67-5.29,7.79-10.83,12.36-16.61,6.3-7.98,11.74-14.5,16.31-19.56,4.57-5.06,8.54-8.88,11.93-11.45,3.38-2.57,6.2-3.86,8.46-3.86,2.78,0,4.16,1.24,4.16,3.73,0,2.14-5.12,9.85-15.35,23.12-10.24,13.27-25.16,31.39-44.76,54.35v7.46c13.13-14.05,23.69-24.49,31.71-31.31,8.01-6.82,14.21-10.24,18.61-10.24,1.79,0,3.18,1.06,4.16,3.17s1.47,4.55,1.47,7.33c0,5.67-2.43,10.92-7.29,15.74-4.86,4.83-12.32,10.37-22.38,16.61,1.74,2.6,3.27,4.5,4.6,5.68,1.33,1.19,3.01,1.78,5.03,1.78,1.79,0,3.73-.61,5.81-1.82s4.21-2.75,6.38-4.6,5.51-4.86,10.02-9.02h-.01ZM809.86,135.07c2.2-1.45,4.93-3.69,8.2-6.72,3.27-3.04,6.06-6.19,8.37-9.46s3.47-6,3.47-8.2c0-.92-.41-1.39-1.21-1.39-2.2,0-5.97,2.11-11.32,6.33-5.35,4.22-10.57,9.63-15.66,16.22,2.2,0,4.92,1.07,8.15,3.21h0ZM951.78,140.71l2.86,2.17c-.75,1.62-1.47,3.04-2.17,4.25-.69,1.21-1.53,2.69-2.52,4.42-.98,1.73-1.73,3.04-2.25,3.9-4.34,7.58-8.41,11.36-12.23,11.36-1.62,0-3.01-.64-4.16-1.91-1.16-1.27-1.73-3.01-1.73-5.2,0-3.12,1.11-7.4,3.34-12.84,2.23-5.43,5.67-12.13,10.32-20.08s10.51-16.96,17.57-27.02c7.05-10.06,15.01-20.67,23.85-31.84-5.09-.75-11.13-1.13-18.13-1.13-8.04,0-16.99.9-26.85,2.69s-18.45,3.86-25.76,6.2c-7.32,2.34-10.97,4.06-10.97,5.16,0,.41.14.68.43.82.29.15.77.26,1.43.35s1.52.19,2.56.3c6.77.93,10.15,1.97,10.15,3.12,0,.58-1.47.85-4.42.82s-6.51-.04-10.67-.04c-3.3,0-5.68-.13-7.16-.39s-2.46-.75-2.95-1.47-.74-1.84-.74-3.34c0-.98.29-3.12.87-6.42,1.1-6.13,2.79-11.04,5.07-14.75,2.28-3.7,5.78-6.72,10.5-9.06,4.71-2.34,11.2-4.21,19.47-5.59,13.88-2.37,25.36-3.56,34.44-3.56,6.71,0,12,.27,15.88.82,3.87.55,6.72,1.34,8.54,2.39,1.82,1.04,2.98,2.07,3.47,3.08s1.14,2.76,1.95,5.25l2.69,7.98c.17.52.32.94.43,1.26.12.32.22.65.3,1,.09.35.13.67.13.95,0,2.26-.51,4.28-1.52,6.07s-2.86,4.48-5.55,8.07-4.67,6.39-5.94,8.41c-14.92,24.23-25.1,42.16-30.53,53.78v.02ZM991.94,115.12c8.79-7.98,17.32-13.91,25.59-17.78s14.66-5.81,19.17-5.81c1.21,0,2.34.51,3.38,1.52,1.04,1,1.88,2.19,2.47,3.51.61,1.33.91,2.31.91,2.95,0,1.04-.41,1.81-1.21,2.3-.81.49-2.23,1.08-4.25,1.78.4.93.92,2.11,1.56,3.56s1.13,2.62,1.47,3.51c.35.9.52,1.69.52,2.39,0,1.39-1.4,3.98-4.21,7.76-2.81,3.79-4.77,6.58-5.9,8.37-1.13,1.79-1.69,3.99-1.69,6.59,0,4.28,1.96,6.42,5.9,6.42s10.38-3.79,19-11.36v5.29c-14.63,16.25-25.1,24.38-31.4,24.38-2.26,0-3.86-.74-4.81-2.21s-1.43-3.66-1.43-6.55c0-4.57,1.65-11.19,4.94-19.86-8.44,9.37-14.72,16.03-18.82,20-4.11,3.96-7.49,5.94-10.15,5.94-1.27,0-2.86-1.1-4.77-3.3-1.91-2.2-3.6-5.04-5.07-8.54-1.47-3.5-2.21-7.13-2.21-10.89,0-2.72.26-4.99.78-6.81s1.53-3.69,3.04-5.59c1.5-1.91,3.9-4.42,7.2-7.55v-.02ZM1033.49,105.58c-15.04,6.88-25.75,12.72-32.14,17.52s-9.59,9.75-9.59,14.83c0,1.85.32,3.37.95,4.55.64,1.19,1.5,1.78,2.6,1.78.64,0,1.76-.4,3.38-1.21,6.07-3.58,11.62-8.25,16.66-14.01,5.03-5.75,11.07-13.58,18.13-23.46h.01Z" style="fill:#306fff; stroke-width:0px;"/><path d="M1111.3,130.82v5.64c-6.02,3.82-10.76,5.72-14.23,5.72-1.91,0-3.93-.32-6.07-.95-5.2,6.59-9.67,11.42-13.4,14.49s-7.47,4.6-11.23,4.6c-4.34,0-7.68-2.29-10.02-6.85-2.34-4.57-3.51-10.24-3.51-17,0-9.2,2.78-19.21,8.33-30.06,5.56-10.85,12.29-21.07,20.08-30.45,7.84-9.46,15.43-17.28,22.77-23.46,7.34-6.19,12.32-9.28,14.92-9.28s3.73,1.71,3.73,5.12c0,15.15-19.43,41.58-58.29,79.29-.12,1.04-.17,3.09-.17,6.16,0,7.98,2.14,11.97,6.42,11.97,1.68,0,3.37-.68,5.07-2.04,1.71-1.36,4.32-3.95,7.85-7.76-1.39-3.12-2.08-5.44-2.08-6.94,0-3.18,1.3-6.62,3.9-10.32s5.57-6.9,8.89-9.59c3.33-2.69,5.74-4.03,7.24-4.03,2.37,0,3.56,1.71,3.56,5.12,0,2.6-.68,5.72-2.04,9.37-1.36,3.64-3.34,7.81-5.94,12.49.98.81,1.76,1.4,2.34,1.78s1.45.56,2.6.56c2.66,0,5.75-1.18,9.28-3.56v-.02ZM1067.24,117.81c3.01-2.6,6.03-5.68,9.06-9.24s7.47-9.01,13.32-16.35c5.61-7.05,10.02-12.94,13.23-17.65s5.62-8.63,7.24-11.75c1.62-3.12,2.43-5.26,2.43-6.42,0-.87-.23-1.3-.69-1.3-1.27,0-3.92,2.1-7.94,6.29-4.02,4.19-8.6,9.93-13.75,17.22-7.11,10.06-12.26,17.64-15.44,22.73-3.18,5.09-5.67,10.58-7.46,16.48h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M1110.96,133.08v-2.08c14.92-15.73,25.18-26.75,30.79-33.05,1.27-7.11,4.34-10.67,9.19-10.67,1.21,0,2.52.35,3.9,1.04l.52,1.65c-.23.69-.35,1.68-.35,2.95,0,1.1.42,3.14,1.26,6.12s1.49,5.48,1.95,7.5.69,4.31.69,6.85c0,3.82-.87,7.48-2.6,10.97-1.73,3.5-4.25,6.85-7.55,10.06-3.3,3.21-7.55,6.49-12.75,9.85,2.08.35,3.73.52,4.94.52,2.37,0,4.93-.59,7.68-1.78,2.75-1.18,5.55-2.78,8.41-4.77,2.86-2,6.2-4.58,10.02-7.76v5.81c-7.4,7.23-14.02,12.71-19.86,16.44s-10.87,5.59-15.09,5.59c-5.44,0-10.47-2.31-15.09-6.94-2.72-2.78-4.41-5.43-5.08-7.98-.67-2.54-1-5.99-1-10.32h.02ZM1143.31,119.8l-1.56-12.66c-3.59,4.05-11.25,11.83-22.99,23.33,3.47.75,5.84,1.76,7.11,3.04,1.27,1.27,3.06,3.73,5.38,7.37,3.93-1.62,6.95-3.83,9.07-6.64,2.11-2.8,3.17-6.64,3.17-11.49,0-.58-.01-1.1-.04-1.56s-.07-.92-.13-1.39h0Z" style="fill:#306fff; stroke-width:0px;"/><g style="isolation:isolate;"><text transform="translate(943.45 229.96)" style="fill:#00d797; font-family:ArialMT, Arial; font-size:24px; isolation:isolate;"><tspan x="0" y="0">version: ${e}</tspan></text></g></svg>`,a="data:image/svg+xml;base64,"+Jr(o),d="font-size: 1px; padding: "+Math.floor(100/4)+"px "+Math.floor(580/2)+"px; line-height: "+Math.floor(100/2)+"px;";window.console.log("%c+",d+`background-image: url(${a});background-size: 580px 100px;background-repeat: norepeat; color: transparent;`)},qt=()=>{const{attrs:e,props:t}=r.getCurrentInstance(),{pageShown:n,getTab:o,markDeletableCache:s,removeComponent:i,getComponent:a,addPageScroller:d}=de(),c=F.useRoute(),f=F.useRouter();let p="",u="";p=e.tId||t.tId;const h=e.pId||t.pId;return u=c.query.__tab,{forward:O=>{n.value=!1;const S=Z({__tab:u},O.query);f.push({path:O.path,query:S})},backward:(O,S)=>{n.value=!1;const _=o(p);if(!_)return;const v=_.pages;let k=0;if(typeof O=="number")k=Math.abs(O);else{let b=1,g=!1;const R=v.list(),U=Ue(O);S=Z(U.query,S);for(let W=v.size()-2;W>=0;W--){if(R[W].path===U.path){g=!0;break}b+=1}g&&(k=b)}if(k===0||v.size()<=k)return;for(let b=0;b<k;b++){const g=v.pop();i(g.id),s(g.id)}const E=v==null?void 0:v.peek(),l=a(E.id);if(l!=null){const b=l.components.DynamicComponent;b.props=Z(S,b.props)}f.push({path:E.path,query:E.query})},addScroller:(...O)=>{d(h,...O)}}},Qr=r.defineComponent({__name:"iframe",setup(e){return qt(),(t,n)=>(r.openBlock(),r.createElementBlock("div"))}}),eo=()=>{const e=fe(),{attrs:t}=r.getCurrentInstance();r.onUnmounted(()=>{o()});const n=()=>{e.emit(P.PAGE_LOADING,{tId:t.tId,value:!0})},o=()=>{e.emit(P.PAGE_LOADING,{tId:t.tId,value:!1})};return{openTabLoading:n,closeTabLoading:o}},to={install(e,t){Kr("0.1.22"),e.component("VueStackTabs",Dt).use(Ln).use(sn().getI18n(t))}};N.IFrame=Qr,N.Stack=ye,N.StackTab=Dt,N.TabHeaderButton=Ce,N.TabScrollMode=Y,N.default=to,N.useStackTab=jt,N.useTabLoading=eo,N.useTabRouter=qt,Object.defineProperties(N,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
5
+ */const Yt=["__proto__","prototype","constructor"];function Jt(e){const t=typeof e;return e!==null&&(t==="object"||t==="function")}function Kt(e){return!(Array.isArray(e)?e.length:Object.keys(e).length)}function Qt(e){return!e.some(t=>Yt.indexOf(t)!==-1)}function en(e){const t=e.split("."),n=[];for(let o=0;o<t.length;o++){let s=t[o];for(;s[s.length-1]==="\\"&&t[o+1]!==void 0;)s=s.slice(0,-1)+".",s+=t[++o];n.push(s)}return Qt(n)?n:[]}function Ye(e,t){if(!Jt(e))return"";const n=en(t);if(n.length===0)return"";let o=Object.assign({},e);for(let s=0;s<n.length;s++){if(typeof o[n[s]]=="string")return o[n[s]];if(o=o[n[s]],o==null){if(s!==n.length-1)return"";break}}return""}function tn(e,t){if(Array.isArray(t)){const n={},o=[...e.matchAll(/{(.+?)}/g)];return o&&o.forEach((s,i)=>{t[i]&&(n[s[1]]=t[i])}),n}return t}function nn(e,t){for(const n in t)e=e.replace(`{${n}}`,String(t[n]));return e}function Je(e,t){return Object.keys(t).forEach(n=>{t[n]instanceof Object&&n in e&&(t[n]={...t[n],...Je(e[n],t[n])})}),{...e||{},...t}}const rn=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Ke=(e=>rn?Symbol(e):"_vt_"+e)("i18n");function ye(){return r.inject(Ke)}function on(e){const t=Object.assign({locale:"en",fallbackLocale:"en",messages:{}},e),n=r.ref(t.locale),o=r.reactive({});return Object.entries(t.messages).forEach(([s,i])=>{o[s]=i}),{t(s,i){if(!s)return"";const a=typeof i=="string"&&i?i:n.value;let d=Ye(o[a],s)||Ye(o[t.fallbackLocale],s);if(i&&typeof i!="string"){const c=tn(d,i);Kt(c)||(d=nn(d,c))}return d||s},current:r.readonly(n),options:r.readonly(e||{}),install(s){const i=this;s.config.globalProperties.$t=i.t,s.provide(Ke,i)},changeLocale(s){n.value=s},setLocaleMessage(s,i){o[s]=Je(r.toRaw(o[s]||{}),i)},getLocaleMessage(s){return o[s]||{}}}}const sn=()=>{const e=Object.assign({"./lang/en.ts":Zt,"./lang/zh-CN.ts":Xt});function t(s,i){for(const a in s)if(s[a].default){const d=a.substring(a.lastIndexOf("/")+1,a.lastIndexOf("."));i[d]?i[d]={...s[d],...s[a].default}:i[d]=s[a].default}}const n=()=>{const s={};return t(e,s),s};return{getI18n:s=>{const i={...n()};if(s)for(const a of s)i[a.locale]=a.messages;return on({locale:"zh-CN",fallbackLocale:"en",messages:i})}}},Qe=({wrap:e,left:t=0,top:n=0,smooth:o=!0})=>{e&&(e.scrollTo?e.scrollTo({left:t,top:n,behavior:o?"smooth":"auto"}):(e.scrollLeft=t,e.scrollTop=n))};function an({el:e,wrap:t,block:n="start",inline:o="nearest"}){if(!(!e||!t))if(e.scrollIntoView)e.scrollIntoView({behavior:"smooth",block:n,inline:o});else{const{offsetLeft:s,offsetTop:i}=e;let a,d;n==="center"?d=i+(e.clientHeight-t.clientHeight)/2:d=i,o==="center"?a=s+(e.clientWidth-t.clientWidth)/2:a=s,Qe({wrap:t,left:a,top:d})}}const et=(e=".stack-tab__container *")=>{const t=Array.from(document.querySelectorAll(e)).map(n=>+window.getComputedStyle(n).zIndex||0);return t.length?Math.max(...t.filter(n=>n<9e4))+1:1};var Y=(e=>(e.WHEEL="wheel",e.BUTTON="button",e.BOTH="both",e))(Y||{});class ke{constructor(t){Ht(this,"items");if(this.items=new Map,t)for(const n of t)this.push(n)}push(t){this.items.set(this.items.size,t)}pop(){if(this.isEmpty())return;const t=this.items.get(this.items.size-1);return this.items.delete(this.items.size-1),t}peek(){if(!this.isEmpty())return this.items.get(this.items.size-1)}isEmpty(){return this.items.size===0}size(){return this.items.size}clear(){this.items.clear()}list(){return Array.from(this.items.values())}toString(){if(this.isEmpty())return"";let t="";return this.items.forEach((n,o)=>{t=`${t}${o===0?"":", "}${n}`}),t}toJSON(){return Array.from(this.items.values())}}function Le(e){if(!Ne(e))throw new Error("Parameter was not an error")}function Ne(e){return cn(e)==="[object Error]"||e instanceof Error}function cn(e){return Object.prototype.toString.call(e)}function ln(e){let t,n="";if(e.length===0)t={};else if(Ne(e[0]))t={cause:e[0]},n=e.slice(1).join(" ")||"";else if(e[0]&&typeof e[0]=="object")t=Object.assign({},e[0]),n=e.slice(1).join(" ")||"";else if(typeof e[0]=="string")t={},n=n=e.join(" ")||"";else throw new Error("Invalid arguments passed to Layerr");return{options:t,shortMessage:n}}class D extends Error{constructor(t,n){const o=[...arguments],{options:s,shortMessage:i}=ln(o);let a=i;if(s.cause&&(a=`${a}: ${s.cause.message}`),super(a),this.message=a,s.name&&typeof s.name=="string"?this.name=s.name:this.name="Layerr",s.cause&&Object.defineProperty(this,"_cause",{value:s.cause}),Object.defineProperty(this,"_info",{value:{}}),s.info&&typeof s.info=="object"&&Object.assign(this._info,s.info),Error.captureStackTrace){const d=s.constructorOpt||this.constructor;Error.captureStackTrace(this,d)}}static cause(t){return Le(t),t._cause&&Ne(t._cause)?t._cause:null}static fullStack(t){Le(t);const n=D.cause(t);return n?`${t.stack}
6
+ caused by: ${D.fullStack(n)}`:t.stack}static info(t){Le(t);const n={},o=D.cause(t);return o&&Object.assign(n,D.info(o)),t._info&&Object.assign(n,t._info),n}cause(){return D.cause(this)}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}}const tt="0123456789ABCDEFGHJKMNPQRSTVWXYZ",ae=32,nt=0xffffffffffff,fn=10,un=16,ce=Object.freeze({source:"ulid"});function dn(e){const t=e||hn(),n=t&&(t.crypto||t.msCrypto)||null;if(typeof(n==null?void 0:n.getRandomValues)=="function")return()=>{const o=new Uint8Array(1);return n.getRandomValues(o),o[0]/255};if(typeof(n==null?void 0:n.randomBytes)=="function")return()=>n.randomBytes(1).readUInt8()/255;throw new D({info:{code:"PRNG_DETECT",...ce}},"Failed to find a reliable PRNG")}function hn(){return mn()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function pn(e,t){let n="";for(;e>0;e--)n=gn(t)+n;return n}function bn(e,t){if(isNaN(e))throw new D({info:{code:"ENC_TIME_NAN",...ce}},`Time must be a number: ${e}`);if(e>nt)throw new D({info:{code:"ENC_TIME_SIZE_EXCEED",...ce}},`Cannot encode a time larger than ${nt}: ${e}`);if(e<0)throw new D({info:{code:"ENC_TIME_NEG",...ce}},`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new D({info:{code:"ENC_TIME_TYPE",...ce}},`Time must be an integer: ${e}`);let n,o="";for(let s=t;s>0;s--)n=e%ae,o=tt.charAt(n)+o,e=(e-n)/ae;return o}function mn(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function gn(e){let t=Math.floor(e()*ae);return t===ae&&(t=ae-1),tt.charAt(t)}function rt(e,t){const n=t||dn(),o=isNaN(e)?Date.now():e;return bn(o,fn)+pn(un,n)}var ze={exports:{}};ze.exports,function(e){var t=function(){var n=String.fromCharCode,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={};function a(c,f){if(!i[c]){i[c]={};for(var p=0;p<c.length;p++)i[c][c.charAt(p)]=p}return i[c][f]}var d={compressToBase64:function(c){if(c==null)return"";var f=d._compress(c,6,function(p){return o.charAt(p)});switch(f.length%4){default:case 0:return f;case 1:return f+"===";case 2:return f+"==";case 3:return f+"="}},decompressFromBase64:function(c){return c==null?"":c==""?null:d._decompress(c.length,32,function(f){return a(o,c.charAt(f))})},compressToUTF16:function(c){return c==null?"":d._compress(c,15,function(f){return n(f+32)})+" "},decompressFromUTF16:function(c){return c==null?"":c==""?null:d._decompress(c.length,16384,function(f){return c.charCodeAt(f)-32})},compressToUint8Array:function(c){for(var f=d.compress(c),p=new Uint8Array(f.length*2),u=0,h=f.length;u<h;u++){var T=f.charCodeAt(u);p[u*2]=T>>>8,p[u*2+1]=T%256}return p},decompressFromUint8Array:function(c){if(c==null)return d.decompress(c);for(var f=new Array(c.length/2),p=0,u=f.length;p<u;p++)f[p]=c[p*2]*256+c[p*2+1];var h=[];return f.forEach(function(T){h.push(n(T))}),d.decompress(h.join(""))},compressToEncodedURIComponent:function(c){return c==null?"":d._compress(c,6,function(f){return s.charAt(f)})},decompressFromEncodedURIComponent:function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),d._decompress(c.length,32,function(f){return a(s,c.charAt(f))}))},compress:function(c){return d._compress(c,16,function(f){return n(f)})},_compress:function(c,f,p){if(c==null)return"";var u,h,T={},x={},A="",O="",S="",_=2,v=3,k=2,E=[],l=0,b=0,g;for(g=0;g<c.length;g+=1)if(A=c.charAt(g),Object.prototype.hasOwnProperty.call(T,A)||(T[A]=v++,x[A]=!0),O=S+A,Object.prototype.hasOwnProperty.call(T,O))S=O;else{if(Object.prototype.hasOwnProperty.call(x,S)){if(S.charCodeAt(0)<256){for(u=0;u<k;u++)l=l<<1,b==f-1?(b=0,E.push(p(l)),l=0):b++;for(h=S.charCodeAt(0),u=0;u<8;u++)l=l<<1|h&1,b==f-1?(b=0,E.push(p(l)),l=0):b++,h=h>>1}else{for(h=1,u=0;u<k;u++)l=l<<1|h,b==f-1?(b=0,E.push(p(l)),l=0):b++,h=0;for(h=S.charCodeAt(0),u=0;u<16;u++)l=l<<1|h&1,b==f-1?(b=0,E.push(p(l)),l=0):b++,h=h>>1}_--,_==0&&(_=Math.pow(2,k),k++),delete x[S]}else for(h=T[S],u=0;u<k;u++)l=l<<1|h&1,b==f-1?(b=0,E.push(p(l)),l=0):b++,h=h>>1;_--,_==0&&(_=Math.pow(2,k),k++),T[O]=v++,S=String(A)}if(S!==""){if(Object.prototype.hasOwnProperty.call(x,S)){if(S.charCodeAt(0)<256){for(u=0;u<k;u++)l=l<<1,b==f-1?(b=0,E.push(p(l)),l=0):b++;for(h=S.charCodeAt(0),u=0;u<8;u++)l=l<<1|h&1,b==f-1?(b=0,E.push(p(l)),l=0):b++,h=h>>1}else{for(h=1,u=0;u<k;u++)l=l<<1|h,b==f-1?(b=0,E.push(p(l)),l=0):b++,h=0;for(h=S.charCodeAt(0),u=0;u<16;u++)l=l<<1|h&1,b==f-1?(b=0,E.push(p(l)),l=0):b++,h=h>>1}_--,_==0&&(_=Math.pow(2,k),k++),delete x[S]}else for(h=T[S],u=0;u<k;u++)l=l<<1|h&1,b==f-1?(b=0,E.push(p(l)),l=0):b++,h=h>>1;_--,_==0&&(_=Math.pow(2,k),k++)}for(h=2,u=0;u<k;u++)l=l<<1|h&1,b==f-1?(b=0,E.push(p(l)),l=0):b++,h=h>>1;for(;;)if(l=l<<1,b==f-1){E.push(p(l));break}else b++;return E.join("")},decompress:function(c){return c==null?"":c==""?null:d._decompress(c.length,32768,function(f){return c.charCodeAt(f)})},_decompress:function(c,f,p){var u=[],h=4,T=4,x=3,A="",O=[],S,_,v,k,E,l,b,g={val:p(0),position:f,index:1};for(S=0;S<3;S+=1)u[S]=S;for(v=0,E=Math.pow(2,2),l=1;l!=E;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=f,g.val=p(g.index++)),v|=(k>0?1:0)*l,l<<=1;switch(v){case 0:for(v=0,E=Math.pow(2,8),l=1;l!=E;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=f,g.val=p(g.index++)),v|=(k>0?1:0)*l,l<<=1;b=n(v);break;case 1:for(v=0,E=Math.pow(2,16),l=1;l!=E;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=f,g.val=p(g.index++)),v|=(k>0?1:0)*l,l<<=1;b=n(v);break;case 2:return""}for(u[3]=b,_=b,O.push(b);;){if(g.index>c)return"";for(v=0,E=Math.pow(2,x),l=1;l!=E;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=f,g.val=p(g.index++)),v|=(k>0?1:0)*l,l<<=1;switch(b=v){case 0:for(v=0,E=Math.pow(2,8),l=1;l!=E;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=f,g.val=p(g.index++)),v|=(k>0?1:0)*l,l<<=1;u[T++]=n(v),b=T-1,h--;break;case 1:for(v=0,E=Math.pow(2,16),l=1;l!=E;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=f,g.val=p(g.index++)),v|=(k>0?1:0)*l,l<<=1;u[T++]=n(v),b=T-1,h--;break;case 2:return O.join("")}if(h==0&&(h=Math.pow(2,x),x++),u[b])A=u[b];else if(b===T)A=_+_.charAt(0);else return null;O.push(A),u[T++]=_+A.charAt(0),h--,_=A,h==0&&(h=Math.pow(2,x),x++)}}};return d}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})}(ze);var ot=ze.exports;const yn=new TextEncoder,kn=new TextDecoder("utf-8",{ignoreBOM:!0}),st={encode:e=>yn.encode(e),decode:e=>kn.decode(e)},it=(()=>{const t=[..."0123456789abcdef"],n=new Array(256);for(let o=0;o<256;o++)n[o]=`${t[o>>>4&15]}${t[o&15]}`;return n})(),wn=(()=>{const e={};for(let t=0;t<256;t++){const n=it[t],o=n[0],s=o.toUpperCase(),i=n[1],a=i.toUpperCase();e[n]=t,e[`${o}${a}`]=t,e[`${s}${i}`]=t,e[`${s}${a}`]=t}return e})(),$e={encode:e=>{let t="";for(let n=0,o=e.length;n<o;n++)t+=it[e[n]];return t},encodeStr:e=>$e.encode(st.encode(e)),decode:e=>{const t=e.length/2,n=new Uint8Array(t);for(let o=0;o<t;o++)n[o]=wn[e.slice(o*2,o*2+2)];return n},decodeStr:e=>st.decode($e.decode(e)),is:e=>!(e.length%2||!/^[a-fA-F0-9]*$/.test(e))};function le(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function _n(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function at(e,...t){if(!_n(e))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function Re(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function ct(e,t){at(e);const n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}const we=BigInt(2**32-1),lt=BigInt(32);function ft(e,t=!1){return t?{h:Number(e&we),l:Number(e>>lt&we)}:{h:Number(e>>lt&we)|0,l:Number(e&we)|0}}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Tn=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),_e=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));function vn(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}const Te=(e,t)=>e<<32-t|e>>>t;if(!(new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68))throw new Error("Non little-endian hardware is not supported");function xn(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function Ve(e){if(typeof e=="string"&&(e=xn(e)),!vn(e))throw new Error(`expected Uint8Array, got ${typeof e}`);return e}class Sn{clone(){return this._cloneInto()}}function En(e){const t=(o,s)=>e(s).update(Ve(o)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=o=>e(o),t}class On extends Sn{constructor(t,n,o={},s,i,a){if(super(),this.blockLen=t,this.outputLen=n,this.length=0,this.pos=0,this.finished=!1,this.destroyed=!1,le(t),le(n),le(s),n<0||n>s)throw new Error("outputLen bigger than keyLen");if(o.key!==void 0&&(o.key.length<1||o.key.length>s))throw new Error(`key must be up 1..${s} byte long or undefined`);if(o.salt!==void 0&&o.salt.length!==i)throw new Error(`salt must be ${i} byte long or undefined`);if(o.personalization!==void 0&&o.personalization.length!==a)throw new Error(`personalization must be ${a} byte long or undefined`);this.buffer32=_e(this.buffer=new Uint8Array(t))}update(t){Re(this);const{blockLen:n,buffer:o,buffer32:s}=this;t=Ve(t);const i=t.length,a=t.byteOffset,d=t.buffer;for(let c=0;c<i;){this.pos===n&&(this.compress(s,0,!1),this.pos=0);const f=Math.min(n-this.pos,i-c),p=a+c;if(f===n&&!(p%4)&&c+f<i){const u=new Uint32Array(d,p,Math.floor((i-c)/4));for(let h=0;c+n<i;h+=s.length,c+=n)this.length+=n,this.compress(u,h,!1);continue}o.set(t.subarray(c,c+f),this.pos),this.pos+=f,this.length+=f,c+=f}return this}digestInto(t){Re(this),ct(t,this);const{pos:n,buffer32:o}=this;this.finished=!0,this.buffer.subarray(n).fill(0),this.compress(o,0,!0);const s=_e(t);this.get().forEach((i,a)=>s[a]=i)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const o=t.slice(0,n);return this.destroy(),o}_cloneInto(t){const{buffer:n,length:o,finished:s,destroyed:i,outputLen:a,pos:d}=this;return t||(t=new this.constructor({dkLen:a})),t.set(...this.get()),t.length=o,t.finished=s,t.destroyed=i,t.outputLen=a,t.buffer.set(n),t.pos=d,t}}const H=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);function J(e,t,n,o,s){return e=e+t+s|0,o=Te(o^e,16),n=n+o|0,t=Te(t^n,12),{a:e,b:t,c:n,d:o}}function K(e,t,n,o,s){return e=e+t+s|0,o=Te(o^e,8),n=n+o|0,t=Te(t^n,7),{a:e,b:t,c:n,d:o}}function ut(e,t,n,o,s,i,a,d,c,f,p,u,h,T,x,A,O,S,_,v){let k=0;for(let E=0;E<o;E++)({a:s,b:c,c:h,d:O}=J(s,c,h,O,n[t+e[k++]])),{a:s,b:c,c:h,d:O}=K(s,c,h,O,n[t+e[k++]]),{a:i,b:f,c:T,d:S}=J(i,f,T,S,n[t+e[k++]]),{a:i,b:f,c:T,d:S}=K(i,f,T,S,n[t+e[k++]]),{a,b:p,c:x,d:_}=J(a,p,x,_,n[t+e[k++]]),{a,b:p,c:x,d:_}=K(a,p,x,_,n[t+e[k++]]),{a:d,b:u,c:A,d:v}=J(d,u,A,v,n[t+e[k++]]),{a:d,b:u,c:A,d:v}=K(d,u,A,v,n[t+e[k++]]),{a:s,b:f,c:x,d:v}=J(s,f,x,v,n[t+e[k++]]),{a:s,b:f,c:x,d:v}=K(s,f,x,v,n[t+e[k++]]),{a:i,b:p,c:A,d:O}=J(i,p,A,O,n[t+e[k++]]),{a:i,b:p,c:A,d:O}=K(i,p,A,O,n[t+e[k++]]),{a,b:u,c:h,d:S}=J(a,u,h,S,n[t+e[k++]]),{a,b:u,c:h,d:S}=K(a,u,h,S,n[t+e[k++]]),{a:d,b:c,c:T,d:_}=J(d,c,T,_,n[t+e[k++]]),{a:d,b:c,c:T,d:_}=K(d,c,T,_,n[t+e[k++]]);return{v0:s,v1:i,v2:a,v3:d,v4:c,v5:f,v6:p,v7:u,v8:h,v9:T,v10:x,v11:A,v12:O,v13:S,v14:_,v15:v}}const dt=(()=>{const e=Array.from({length:16},(o,s)=>s),t=o=>[2,6,3,10,7,0,4,13,1,11,12,5,9,14,15,8].map(s=>o[s]),n=[];for(let o=0,s=e;o<7;o++,s=t(s))n.push(...s);return Uint8Array.from(n)})();class Pe extends On{constructor(t={},n=0){if(super(64,t.dkLen===void 0?32:t.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=t.dkLen===void 0?32:t.dkLen,le(this.outputLen),t.key!==void 0&&t.context!==void 0)throw new Error("Blake3: only key or context can be specified at same time");if(t.key!==void 0){const o=Ve(t.key).slice();if(o.length!==32)throw new Error("Blake3: key should be 32 byte");this.IV=_e(o),this.flags=n|16}else if(t.context!==void 0){const o=new Pe({dkLen:32},32).update(t.context).digest();this.IV=_e(o),this.flags=n|64}else this.IV=H.slice(),this.flags=n;this.state=this.IV.slice(),this.bufferOut=Tn(this.bufferOut32)}get(){return[]}set(){}b2Compress(t,n,o,s=0){const{state:i,pos:a}=this,{h:d,l:c}=ft(BigInt(t),!0),{v0:f,v1:p,v2:u,v3:h,v4:T,v5:x,v6:A,v7:O,v8:S,v9:_,v10:v,v11:k,v12:E,v13:l,v14:b,v15:g}=ut(dt,s,o,7,i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],H[0],H[1],H[2],H[3],d,c,a,n);i[0]=f^S,i[1]=p^_,i[2]=u^v,i[3]=h^k,i[4]=T^E,i[5]=x^l,i[6]=A^b,i[7]=O^g}compress(t,n=0,o=!1){let s=this.flags;if(this.chunkPos||(s|=1),(this.chunkPos===15||o)&&(s|=2),o||(this.pos=this.blockLen),this.b2Compress(this.chunksDone,s,t,n),this.chunkPos+=1,this.chunkPos===16||o){let i=this.state;this.state=this.IV.slice();for(let a,d=this.chunksDone+1;(o||!(d&1))&&(a=this.stack.pop());d>>=1)this.buffer32.set(a,0),this.buffer32.set(i,8),this.pos=this.blockLen,this.b2Compress(0,this.flags|4,this.buffer32,0),i=this.state,this.state=this.IV.slice();this.chunksDone++,this.chunkPos=0,this.stack.push(i)}this.pos=0}_cloneInto(t){t=super._cloneInto(t);const{IV:n,flags:o,state:s,chunkPos:i,posOut:a,chunkOut:d,stack:c,chunksDone:f}=this;return t.state.set(s.slice()),t.stack=c.map(p=>Uint32Array.from(p)),t.IV.set(n),t.flags=o,t.chunkPos=i,t.chunksDone=f,t.posOut=a,t.chunkOut=d,t.enableXOF=this.enableXOF,t.bufferOut32.set(this.bufferOut32),t}destroy(){this.destroyed=!0,this.state.fill(0),this.buffer32.fill(0),this.IV.fill(0),this.bufferOut32.fill(0);for(let t of this.stack)t.fill(0)}b2CompressOut(){const{state:t,pos:n,flags:o,buffer32:s,bufferOut32:i}=this,{h:a,l:d}=ft(BigInt(this.chunkOut++)),{v0:c,v1:f,v2:p,v3:u,v4:h,v5:T,v6:x,v7:A,v8:O,v9:S,v10:_,v11:v,v12:k,v13:E,v14:l,v15:b}=ut(dt,0,s,7,t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],H[0],H[1],H[2],H[3],d,a,n,o);i[0]=c^O,i[1]=f^S,i[2]=p^_,i[3]=u^v,i[4]=h^k,i[5]=T^E,i[6]=x^l,i[7]=A^b,i[8]=t[0]^O,i[9]=t[1]^S,i[10]=t[2]^_,i[11]=t[3]^v,i[12]=t[4]^k,i[13]=t[5]^E,i[14]=t[6]^l,i[15]=t[7]^b,this.posOut=0}finish(){if(this.finished)return;this.finished=!0,this.buffer.fill(0,this.pos);let t=this.flags|8;this.stack.length?(t|=4,this.compress(this.buffer32,0,!0),this.chunksDone=0,this.pos=this.blockLen):t|=(this.chunkPos?0:1)|2,this.flags=t,this.b2CompressOut()}writeInto(t){Re(this,!1),at(t),this.finish();const{blockLen:n,bufferOut:o}=this;for(let s=0,i=t.length;s<i;){this.posOut>=n&&this.b2CompressOut();const a=Math.min(n-this.posOut,i-s);t.set(o.subarray(this.posOut,this.posOut+a),s),this.posOut+=a,s+=a}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible after digest call");return this.writeInto(t)}xof(t){return le(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(ct(t,this),this.finished)throw new Error("digest() was already called");return this.enableXOF=!1,this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}}const Bn=En(e=>new Pe(e)),ht=e=>{const t=`${e.id}|${e.title}|${e.iframe?"Y":"N"}|${e.closable?"Y":"N"}|${e.refreshable?"Y":"N"}`;return ot.compressToEncodedURIComponent(t)},Cn=e=>{const n=ot.decompressFromEncodedURIComponent(e).split("|");return{id:n[0],title:n[1],iframe:n[2]==="Y",closable:n[3]==="Y",refreshable:n[4]==="Y"}},pt=(e,t,n)=>{const o=[];for(const i in n)i.startsWith("__")||o.push({key:i,value:n[i]});o.sort((i,a)=>{let d=0;return i.key>a.key?d=1:i.key<a.key&&(d=-1),d});const s=Bn(`${e}|${t}|${JSON.stringify(o)}`);return $e.encode(s)};function je(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function De(e,t,n=".",o){if(!je(t))return De(e,{},n,o);const s=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const a=e[i];a!=null&&(o&&o(s,i,a,n)||(Array.isArray(a)&&Array.isArray(s[i])?s[i]=[...a,...s[i]]:je(a)&&je(s[i])?s[i]=De(a,s[i],(n?`${n}.`:"")+i.toString(),o):s[i]=a))}return s}function An(e){return(...t)=>t.reduce((n,o)=>De(n,o,"",e),{})}const Z=An(),Ue=e=>{const t=e.split("?");if(t.length<=1)return{path:t[0],query:{}};{const n=t[1].split("&"),o={};for(const s of n){const i=s.split("=");i[1]!==null&&i[1]!==void 0&&i[1]!==""&&(o[i[0]]=i[1])}return{path:t[0],query:o}}};function In(e){return{all:e=e||new Map,on:function(t,n){var o=e.get(t);o?o.push(n):e.set(t,[n])},off:function(t,n){var o=e.get(t);o&&(n?o.splice(o.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var o=e.get(t);o&&o.slice().map(function(s){s(n)}),(o=e.get("*"))&&o.slice().map(function(s){s(t,n)})}}}const Mn=In(),Ln={install(e){e.provide("tabEmitter",Mn)}},fe=()=>r.inject("tabEmitter");var P=(e=>(e.PAGE_LOADING="PAGE_LOADING",e.TAB_ACTIVE="TAB_ACTIVE",e))(P||{});const Nn={key:0,class:"stack-tab-loading-mask"},zn=[r.createElementVNode("div",{class:"stack-tab-loading--spin turn"},null,-1)],$n=r.defineComponent({__name:"PageLoading",props:{tId:{}},setup(e){const t=e,n=fe(),o=r.ref(!1);return n.on(P.PAGE_LOADING,({tId:s,value:i})=>{s===t.tId&&(o.value=i)}),(s,i)=>o.value?(r.openBlock(),r.createElementBlock("div",Nn,zn)):r.createCommentVNode("",!0)}}),M=r.ref([]),ve=[],z=r.ref([]),Q=new Map,ue=new Set,de=r.ref(!0),bt="stacktab-active-tab",te=new Map;let mt=!1,xe=0,gt=!1;const he=()=>{const e=F.useRouter(),t=fe(),n=()=>M.value.length,o=w=>{ve.splice(0),z.value.splice(0),ue.clear(),Q.clear();for(const B of w){const y=Z(B,{id:rt()}),I=ht(y),$=Ue(y.path),V=Z(y,{closable:!0,refreshable:!0,iframe:!1}),ie=pt(y.id,$.path,$.query),X={id:ie,tabId:y.id,path:$.path,query:Z($.query,{__tab:I})},Me=new ke;Me.push(X);const Gt={id:y.id,title:V.title,closable:V.closable,refreshable:V.refreshable,iframe:V.iframe,active:!1,pages:Me};ve.push(Gt),M.value.push(Gt),z.value.push(ie)}const m=window.sessionStorage.getItem(bt);if(m!=null){const B=JSON.parse(m,(I,$)=>I==="pages"?new ke($):$);let y=!1;for(const I of M.value)if(I.id===B.id){y=!0;break}y||M.value.push(B)}mt=!0},s=w=>{for(const m of M.value)if(m.id===w)return!0;return!1},i=()=>xe<=0||xe>0&&xe>M.value.length,a=w=>new Promise(m=>{M.value.push(w),m(!0)}),d=w=>{for(const m of M.value)if(m.id===w)return m;return null},c=(w,m)=>{let B;const y=Cn(w.query.__tab),I=pt(y.id,w.path,w.query.valueOf()),$=w.query.__src;let V=null;for(const X of r.unref(M))X.active=!1,X.id===y.id&&(V=X);const ie={id:I,tabId:y.id,path:w.path,query:w.query};if(V===null){const X=new ke;X.push(ie),V={id:y.id,title:y.title,closable:y.closable,refreshable:y.refreshable,iframe:y.iframe,url:decodeURIComponent($),active:!0,pages:X},a(V).then(()=>{t.emit(P.TAB_ACTIVE,{id:y.id,isRoute:!1})})}else V.active=!0,(V.pages.isEmpty()||V.pages.peek().id!==ie.id)&&V.pages.push(ie);return C(V),Q.has(I)?B=Q.get(I):(B=r.defineComponent({name:I,components:{DynamicComponent:m},emits:{onLoaded:null},setup(X,Me){return r.onMounted(()=>{Me.emit("onLoaded"),h(I,".cache-page-wrapper")}),r.onDeactivated(()=>{p(I)}),r.onActivated(()=>{f(I),g(),m.props=null}),r.onUnmounted(()=>{u(I)}),()=>r.createVNode("div",{class:"cache-page-wrapper",id:"W-"+y.id,style:[gt?"overflow:auto":"overflow:hidden"]},[r.createVNode(r.resolveComponent("dynamic-component"),{tId:y.id,pId:I},null),r.createVNode($n,{tId:y.id},null)])}}),Q.set(I,B)),U(I),B},f=w=>{const m=te.get(w);if(m){for(const B of m.keys())if(document.querySelector(B)){const y=m.get(B);document.querySelector(B).scrollTop=y.top,document.querySelector(B).scrollLeft=y.left}}},p=w=>{var B,y;const m=te.get(w);if(m)for(const I of m.keys()){const $={top:((B=document.querySelector(I))==null?void 0:B.scrollTop)??0,left:((y=document.querySelector(I))==null?void 0:y.scrollLeft)??0};m.set(I,$)}},u=w=>{const m=te.get(w);m&&(m.clear(),te.delete(w))},h=(w,...m)=>{te.has(w)||te.set(w,new Map);const B=te.get(w);for(const y of m)B.set(y,{top:0,left:0})},T=w=>{let m="";for(let B=M.value.length-1;B>=0;B--)if(w===r.unref(M)[B].id){if(!r.unref(M)[B].closable)return w;for(const y of r.unref(M)[B].pages.list())l(y.id),b(y.id);r.unref(M)[B].pages.clear(),M.value.length>1&&r.unref(M)[B].active&&(B===0?m=r.unref(M)[B+1].id:m=r.unref(M)[B-1].id),r.unref(M).splice(B,1);break}return m!==""&&t.emit(P.TAB_ACTIVE,{id:m}),g(),m},x=()=>{const w=r.unref(M);for(let m=w.length-1;m>=0;m--)if(w[m].closable){for(const B of w[m].pages.list())l(B.id),b(B.id);r.unref(M)[m].pages.clear(),r.unref(M).splice(m,1)}for(const m of w)if(m.active){g();return}t.emit(P.TAB_ACTIVE,{id:w[w.length-1].id})},A=w=>{const m=r.unref(M);let B;for(let y=m.length-1;y>=0;y--)if(m[y].id===w)B=m[y];else if(m[y].closable&&m[y].id!==w){for(const I of m[y].pages.list())l(I.id),b(I.id);r.unref(M)[y].pages.clear(),r.unref(M).splice(y,1)}B.active?g():t.emit(P.TAB_ACTIVE,{id:w})},O=w=>{let m=-1;const B=r.unref(M);for(let y=0;y<B.length;y++)if(B[y].id===w){m=y-1;break}for(let y=m;y>=0;y--)if(B[y].closable){for(const I of B[y].pages.list())l(I.id),b(I.id);r.unref(M)[y].pages.clear(),r.unref(M).splice(y,1)}for(const y of B)if(y.active){g();return}t.emit(P.TAB_ACTIVE,{id:B[0].id})},S=w=>{const m=r.unref(M);let B=m.length;for(let y=0;y<m.length;y++)if(m[y].id===w){B=y+1;break}for(let y=m.length-1;y>=B;y--)if(m[y].closable){for(const I of m[y].pages.list())l(I.id),b(I.id);r.unref(M)[y].pages.clear(),r.unref(M).splice(y,1)}for(const y of m)if(y.active){g();return}t.emit(P.TAB_ACTIVE,{id:m[m.length-1].id})},_=w=>{var m;for(const B of r.unref(M))if(B.id===w){const y=(m=B.pages.peek())==null?void 0:m.id;for(let I=z.value.length-1;I>=0;I--)if(z.value[I]===y){z.value.splice(I,1),B.active&&(de.value=!1);break}break}},v=()=>{const w=new Set;M.value.forEach(m=>{w.add(m.pages.peek().id)});for(let m=z.value.length-1;m>=0;m--){const B=z.value[m];w.has(B)&&z.value.splice(m,1)}de.value=!1},k=(w,m)=>{Q.set(w,m)},E=w=>Q.get(w),l=w=>{Q.delete(w)},b=w=>{ue.add(w)},g=()=>{for(let w=z.value.length-1;w>=0;w--)ue.has(z.value[w])&&r.unref(z).splice(w,1);ue.clear()},R=w=>{for(let m=z.value.length-1;m>=0;m--)w===z.value[m]&&r.unref(z).splice(m,1)},U=w=>{new Set(z.value).has(w)||z.value.push(w)},W=(w,m=!0)=>new Promise(B=>{for(let y=M.value.length-1;y>=0;y--){const I=M.value[y];if(I.id===w){if(I.active)break;if(I.active=!0,de.value=!1,C(I),m){const $=I.pages.peek();e.push({path:$.path,query:$.query})}}else M.value[y].active=!1}B(!0)}),C=w=>{window.sessionStorage.setItem(bt,JSON.stringify(w))},L=()=>{j(),r.unref(M).push(...ve),t.emit(P.TAB_ACTIVE,{id:ve[0].id})},j=()=>{r.unref(M).splice(0),Q.clear(),ue.clear(),r.unref(z).splice(0),de.value=!1};return{tabs:M,caches:z,pageShown:de,initialed:mt,setMaxSize:w=>{xe=w},canAddTab:i,initial:o,size:n,active:W,destroy:j,reset:L,addCache:U,removeCache:R,getTab:d,addTab:a,removeTab:T,removeAllTabs:x,removeLeftTabs:O,removeRightTabs:S,removeOtherTabs:A,hasTab:s,addPage:c,addComponent:k,getComponent:E,removeComponent:l,markDeletableCache:b,removeDeletableCache:g,refreshTab:_,refreshAllTabs:v,addPageScroller:h,setGlobalScroll:w=>{gt=w}}},Rn={class:"stack-tab__contextmenu-item"},ee=r.defineComponent({__name:"ContextMenuItem",props:{icon:{},title:{}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",Rn,[r.createElementVNode("div",{class:r.normalizeClass(["stack-tab__contextmenu-icon",t.icon])},null,2),r.createElementVNode("div",{style:{"margin-left":"8px"},onContextmenu:n[0]||(n[0]=r.withModifiers(()=>{},["prevent"]))},r.toDisplayString(t.title),33)]))}}),Vn={key:0,class:"divider div-transparent"},Pn=((e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n})(r.defineComponent({__name:"index",props:{index:{},left:{default:0},top:{default:0},contextMenu:{},tabItem:{},max:{}},setup(e){const t=e,{t:n}=ye(),o=r.ref(),s=r.reactive({left:t.left,top:t.top}),{removeTab:i,removeAllTabs:a,removeLeftTabs:d,removeRightTabs:c,refreshTab:f,refreshAllTabs:p,removeOtherTabs:u}=he();return r.onMounted(()=>{const h=o.value?o.value.clientWidth:0,T=window.innerWidth;s.left+h>T&&(s.left=T-h-5)}),(h,T)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"contextmenu",ref:o,class:"stack-tab__contextmenu",style:r.normalizeStyle({left:`${s.left}px`,top:`${s.top}px`,"z-index":r.unref(et)(".stack-tab,.stack-tab *")})},[r.createVNode(ee,{icon:"stack-tab__icon-reload svg-mask",title:r.unref(n)("VueStackTab.reload"),onClick:T[0]||(T[0]=x=>r.unref(f)(h.tabItem.id))},null,8,["title"]),r.createVNode(ee,{icon:"stack-tab__icon-reload-all svg-mask",title:r.unref(n)("VueStackTab.reloadAll"),onClick:r.unref(p)},null,8,["title","onClick"]),r.createVNode(ee,{icon:"stack-tab__icon-close svg-mask",title:r.unref(n)("VueStackTab.close"),disabled:h.tabItem.closable?null:"disabled",onClick:T[1]||(T[1]=x=>r.unref(i)(h.tabItem.id))},null,8,["title","disabled"]),r.createVNode(ee,{icon:"stack-tab__icon-close-lefts svg-mask",title:r.unref(n)("VueStackTab.closeLeft"),disabled:h.index<=0?"disabled":null,onClick:T[2]||(T[2]=x=>r.unref(d)(h.tabItem.id))},null,8,["title","disabled"]),r.createVNode(ee,{icon:"stack-tab__icon-close-rights svg-mask",title:r.unref(n)("VueStackTab.closeRight"),disabled:h.index>=h.max-1?"disabled":null,onClick:T[3]||(T[3]=x=>r.unref(c)(h.tabItem.id))},null,8,["title","disabled"]),r.createVNode(ee,{icon:"stack-tab__icon-close-others svg-mask",title:r.unref(n)("VueStackTab.closeOthers"),onClick:T[4]||(T[4]=x=>r.unref(u)(h.tabItem.id))},null,8,["title"]),r.createVNode(ee,{icon:"stack-tab__icon-close-all svg-mask",title:r.unref(n)("VueStackTab.closeAll"),onClick:r.unref(a)},null,8,["title","onClick"]),h.contextMenu!==void 0&&h.contextMenu.length>0?(r.openBlock(),r.createElementBlock("div",Vn)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(h.contextMenu,(x,A)=>(r.openBlock(),r.createBlock(ee,{key:A,icon:x.icon,title:x.title,disabled:x.disabled(h.tabItem)?"disabled":null,onClick:O=>!x.disabled&&x.callback(h.tabItem.id)},null,8,["icon","title","disabled","onClick"]))),128))],4))}}),[["__scopeId","data-v-d598be6e"]]),jn=()=>{const e=r.reactive({item:{},index:-1,left:0,top:0,max:0}),t=r.ref(!1);r.onMounted(()=>{document.addEventListener("click",o)}),r.onUnmounted(()=>{document.removeEventListener("click",o)});const n=async(s,i,a,d)=>{t.value=!1,await r.nextTick(()=>{const{clientY:c,clientX:f}=s;t.value=!0,Object.assign(e,{item:i,index:a,top:c,left:f,max:d})})},o=s=>{s.target.classList.contains("stack-tab__contextmenu")||(t.value=!1)};return{shown:t,contextMenuData:e,showContextMenu:n}},Dn={class:"stack-tab__item-title"},Un=["title"],Wn=["title"],Fn=r.defineComponent({__name:"TabHeaderItem",props:{item:{}},emits:["close","active"],setup(e,{emit:t}){const n=t,o=fe(),{t:s}=ye(),i=r.ref(),a=e;o.on(P.TAB_ACTIVE,({id:p,isRoute:u})=>{a.item.id===p&&f(u)});const d=r.computed(()=>a.item.title||s("undefined")),c=()=>{n("close",a.item)},f=(p=!0)=>{n("active",a.item,i,p)};return(p,u)=>(r.openBlock(),r.createElementBlock("li",{ref_key:"curtab",ref:i,class:r.normalizeClass(["stack-tab__item",{"is-active":p.item.active,"is-icon":p.item.closable}]),onClick:u[0]||(u[0]=h=>f(!0))},[r.createElementVNode("div",Dn,[r.createElementVNode("div",{class:"stack-tab__item-title-content",title:d.value},r.toDisplayString(d.value),9,Un)]),p.item.closable?(r.openBlock(),r.createElementBlock("div",{key:0,class:"stack-tab__icon-close-fill stack-tab__item-button",title:r.unref(s)("VueStackTab.close"),onClick:r.withModifiers(c,["stop"])},null,8,Wn)):r.createCommentVNode("",!0)],2))}});var ne=[],qn=function(){return ne.some(function(e){return e.activeTargets.length>0})},Gn=function(){return ne.some(function(e){return e.skippedTargets.length>0})},yt="ResizeObserver loop completed with undelivered notifications.",Hn=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:yt}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=yt),window.dispatchEvent(e)},pe;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(pe||(pe={}));var re=function(e){return Object.freeze(e)},Zn=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,re(this)}return e}(),kt=function(){function e(t,n,o,s){return this.x=t,this.y=n,this.width=o,this.height=s,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,re(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,o=t.y,s=t.top,i=t.right,a=t.bottom,d=t.left,c=t.width,f=t.height;return{x:n,y:o,top:s,right:i,bottom:a,left:d,width:c,height:f}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),We=function(e){return e instanceof SVGElement&&"getBBox"in e},wt=function(e){if(We(e)){var t=e.getBBox(),n=t.width,o=t.height;return!n&&!o}var s=e,i=s.offsetWidth,a=s.offsetHeight;return!(i||a||e.getClientRects().length)},_t=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},Xn=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},be=typeof window<"u"?window:{},Se=new WeakMap,Tt=/auto|scroll/,Yn=/^tb|vertical/,Jn=/msie|trident/i.test(be.navigator&&be.navigator.userAgent),q=function(e){return parseFloat(e||"0")},se=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new Zn((n?t:e)||0,(n?e:t)||0)},vt=re({devicePixelContentBoxSize:se(),borderBoxSize:se(),contentBoxSize:se(),contentRect:new kt(0,0,0,0)}),xt=function(e,t){if(t===void 0&&(t=!1),Se.has(e)&&!t)return Se.get(e);if(wt(e))return Se.set(e,vt),vt;var n=getComputedStyle(e),o=We(e)&&e.ownerSVGElement&&e.getBBox(),s=!Jn&&n.boxSizing==="border-box",i=Yn.test(n.writingMode||""),a=!o&&Tt.test(n.overflowY||""),d=!o&&Tt.test(n.overflowX||""),c=o?0:q(n.paddingTop),f=o?0:q(n.paddingRight),p=o?0:q(n.paddingBottom),u=o?0:q(n.paddingLeft),h=o?0:q(n.borderTopWidth),T=o?0:q(n.borderRightWidth),x=o?0:q(n.borderBottomWidth),A=o?0:q(n.borderLeftWidth),O=u+f,S=c+p,_=A+T,v=h+x,k=d?e.offsetHeight-v-e.clientHeight:0,E=a?e.offsetWidth-_-e.clientWidth:0,l=s?O+_:0,b=s?S+v:0,g=o?o.width:q(n.width)-l-E,R=o?o.height:q(n.height)-b-k,U=g+O+E+_,W=R+S+k+v,C=re({devicePixelContentBoxSize:se(Math.round(g*devicePixelRatio),Math.round(R*devicePixelRatio),i),borderBoxSize:se(U,W,i),contentBoxSize:se(g,R,i),contentRect:new kt(u,c,g,R)});return Se.set(e,C),C},St=function(e,t,n){var o=xt(e,n),s=o.borderBoxSize,i=o.contentBoxSize,a=o.devicePixelContentBoxSize;switch(t){case pe.DEVICE_PIXEL_CONTENT_BOX:return a;case pe.BORDER_BOX:return s;default:return i}},Kn=function(){function e(t){var n=xt(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=re([n.borderBoxSize]),this.contentBoxSize=re([n.contentBoxSize]),this.devicePixelContentBoxSize=re([n.devicePixelContentBoxSize])}return e}(),Et=function(e){if(wt(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Qn=function(){var e=1/0,t=[];ne.forEach(function(a){if(a.activeTargets.length!==0){var d=[];a.activeTargets.forEach(function(f){var p=new Kn(f.target),u=Et(f.target);d.push(p),f.lastReportedSize=St(f.target,f.observedBox),u<e&&(e=u)}),t.push(function(){a.callback.call(a.observer,d,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,o=t;n<o.length;n++){var s=o[n];s()}return e},Ot=function(e){ne.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(s){s.isActive()&&(Et(s.target)>e?n.activeTargets.push(s):n.skippedTargets.push(s))})})},er=function(){var e=0;for(Ot(e);qn();)e=Qn(),Ot(e);return Gn()&&Hn(),e>0},Fe,Bt=[],tr=function(){return Bt.splice(0).forEach(function(e){return e()})},nr=function(e){if(!Fe){var t=0,n=document.createTextNode(""),o={characterData:!0};new MutationObserver(function(){return tr()}).observe(n,o),Fe=function(){n.textContent="".concat(t?t--:t++)}}Bt.push(e),Fe()},rr=function(e){nr(function(){requestAnimationFrame(e)})},Ee=0,or=function(){return!!Ee},sr=250,ir={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ct=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],At=function(e){return e===void 0&&(e=0),Date.now()+e},qe=!1,ar=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=sr),!qe){qe=!0;var o=At(t);rr(function(){var s=!1;try{s=er()}finally{if(qe=!1,t=o-At(),!or())return;s?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,ir)};document.body?n():be.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ct.forEach(function(n){return be.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Ct.forEach(function(n){return be.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Ge=new ar,It=function(e){!Ee&&e>0&&Ge.start(),Ee+=e,!Ee&&Ge.stop()},cr=function(e){return!We(e)&&!Xn(e)&&getComputedStyle(e).display==="inline"},lr=function(){function e(t,n){this.target=t,this.observedBox=n||pe.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=St(this.target,this.observedBox,!0);return cr(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),fr=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Oe=new WeakMap,Mt=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Be=function(){function e(){}return e.connect=function(t,n){var o=new fr(t,n);Oe.set(t,o)},e.observe=function(t,n,o){var s=Oe.get(t),i=s.observationTargets.length===0;Mt(s.observationTargets,n)<0&&(i&&ne.push(s),s.observationTargets.push(new lr(n,o&&o.box)),It(1),Ge.schedule())},e.unobserve=function(t,n){var o=Oe.get(t),s=Mt(o.observationTargets,n),i=o.observationTargets.length===1;s>=0&&(i&&ne.splice(ne.indexOf(o),1),o.observationTargets.splice(s,1),It(-1))},e.disconnect=function(t){var n=this,o=Oe.get(t);o.observationTargets.slice().forEach(function(s){return n.unobserve(t,s.target)}),o.activeTargets.splice(0,o.activeTargets.length)},e}(),Lt=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Be.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!_t(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Be.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!_t(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Be.unobserve(this,t)},e.prototype.disconnect=function(){Be.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const ur=["disabled","title"],dr={key:1,class:"stack-tab__button"},Ce=r.defineComponent({__name:"TabHeaderButton",props:{disabled:{type:Boolean,default:!1},shadow:{default:null},iconClass:{default:""},title:{}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["stack-tab__header-button",{"stack-tab__shadow-right":t.shadow==="right","stack-tab__shadow-left":t.shadow==="left"}]),disabled:t.disabled?"disabled":null,title:t.title},["icon"in t.$slots?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["stack-tab__mask-button",t.iconClass])},null,2)),"icon"in t.$slots?(r.openBlock(),r.createElementBlock("div",dr,[r.renderSlot(t.$slots,"icon")])):r.createCommentVNode("",!0)],10,ur))}}),hr=r.defineComponent({__name:"TabHeaderScroll",props:{space:{default:300},isScrollWheel:{type:Boolean,default:!0},isScrollButton:{type:Boolean,default:!0}},setup(e,{expose:t}){const n=r.ref(null),o=r.ref(null),s=r.ref(null),i=r.ref(!1),a=r.ref(!1),d=r.ref(!1),c=r.ref(!0),f=r.ref(),p=e,u=r.reactive({clientWidth:0,scrollWidth:0,scrollLeft:0}),h=r.reactive({thumbLeft:0,startScrollLeft:0,startThumbLeft:0,startPageX:0});r.watch(u,C=>{T(C)});const T=C=>{a.value=C.scrollLeft<=10,d.value=C.clientWidth+C.scrollLeft-C.scrollWidth>=-10,c.value=C.scrollWidth!==C.clientWidth},x=r.computed(()=>u.scrollWidth>u.clientWidth),A=r.computed(()=>{if(!x.value)return 0;const{clientWidth:C,scrollWidth:L}=u;return C/L*C}),O=r.computed(()=>{if(!x.value)return 0;const{clientWidth:C,scrollWidth:L,scrollLeft:j}=u;return(C-A.value)*(j/(L-C))}),S=()=>{if(n.value===null||n.value===void 0)return;const{clientWidth:C,scrollWidth:L,scrollLeft:j}=n.value;Object.assign(u,{clientWidth:C,scrollWidth:L,scrollLeft:j})},_=new Lt(()=>{var L;S();const C=(L=n.value)==null?void 0:L.querySelector(".stack-tab__item.is-active");C&&(W(C)||U(C))}),v=new Lt(()=>{var C;if(!x.value){const L=(C=n.value)==null?void 0:C.querySelector(".stack-tab__item.is-active");L&&(W(L)||U(L))}S()}),k=(C,L=!0)=>{Qe({wrap:n.value,left:C,smooth:L})},E=C=>{k(n.value.scrollLeft+C)},l=C=>{const L=C.deltaY<0;k(n.value.scrollLeft+(L?-p.space:p.space))},b=C=>{var L;Object.assign(h,{startPageX:C.pageX,startScrollLeft:(L=n.value)==null?void 0:L.scrollLeft,startThumbLeft:O.value,thumbLeft:O.value}),i.value=!0,document.addEventListener("mousemove",g),document.addEventListener("mouseup",R)},g=C=>{const{clientWidth:L,scrollWidth:j}=u;let oe=h.startThumbLeft+C.pageX-h.startPageX;const Xe=L-A.value;oe<0?oe=0:oe>Xe&&(oe=Xe),h.thumbLeft=oe,k(oe*(j-L)/(L-A.value),!1),C.preventDefault()},R=C=>{i.value=!1,document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",R),C.preventDefault()};r.onMounted(()=>{var L;_.observe(f.value);const C=(L=n.value)==null?void 0:L.querySelector(".stack-tab__nav");v.observe(C)}),r.onUnmounted(()=>{_.disconnect(),v.disconnect()});const U=C=>{an({el:C,wrap:n,block:"end",inline:"center"})},W=C=>{if(!x.value)return!0;const L=C.offsetLeft,j=n.value.scrollLeft;return!(L<j||L+C.clientWidth>j+n.value.clientWidth)};return t({scrollIntoView:U,isInView:W}),(C,L)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[c.value?(r.openBlock(),r.createBlock(Ce,{key:0,"icon-class":"stack-tab__icon-left-arrow",disabled:a.value,onClick:L[0]||(L[0]=j=>!a.value&&E(-1*C.space))},null,8,["disabled"])):r.createCommentVNode("",!0),r.createElementVNode("div",{ref_key:"headerScroll",ref:f,class:"stack-tab__scroll",onWheel:r.withModifiers(l,["prevent"])},[r.createElementVNode("div",{ref_key:"container",ref:n,class:r.normalizeClass(["stack-tab__scroll-container",{"stack-tab__shadow-inset-left":!a.value&&d.value,"stack-tab__shadow-inset-right":!d.value&&a.value,"stack-tab__shadow-inset-all":!a.value&&!d.value}]),onScrollPassive:S},[r.renderSlot(C.$slots,"default")],34),r.withDirectives(r.createElementVNode("div",{ref_key:"bar",ref:o,class:r.normalizeClass(["stack-tab__scrollbar",{"is-dragging":i.value}])},[r.createElementVNode("div",{ref_key:"thumb",ref:s,class:r.normalizeClass(["stack-tab__scrollbar-thumb",{"is-dragging":i.value}]),style:r.normalizeStyle({width:`${A.value}px`,transform:`translateX(${O.value}px)`}),onMousedown:r.withModifiers(b,["prevent"])},null,38)],2),[[r.vShow,x.value]])],544),c.value?(r.openBlock(),r.createBlock(Ce,{key:1,"icon-class":"stack-tab__icon-right-arrow",disabled:d.value,onClick:L[1]||(L[1]=j=>!d.value&&E(C.space))},null,8,["disabled"])):r.createCommentVNode("",!0)],64))}}),pr={class:"stack-tab__header"},br=r.defineComponent({__name:"index",props:{space:{},tabScrollMode:{default:Y.BOTH},tabTransition:{default:()=>({name:"stack-tab-zoom"})},contextmenu:{type:[Boolean,Object],default:!0},max:{default:20}},emits:["active"],setup(e,{emit:t}){const{t:n}=ye(),o=r.inject("maximum"),s=t,i=r.ref(),{shown:a,contextMenuData:d,showContextMenu:c}=jn(),f=e,{removeTab:p,active:u,tabs:h}=he(),T=r.computed(()=>typeof f.tabTransition=="string"?{name:f.tabTransition}:f.tabTransition),x=r.computed(()=>f.tabScrollMode===Y.BOTH||f.tabScrollMode===Y.BUTTON),A=f.tabScrollMode===Y.BOTH||f.tabScrollMode===Y.WHEEL,O=_=>{if(_.closable){const v=p(_.id);s("active",v)}a.value=!1},S=(_,v,k)=>{i.value&&(r.nextTick(()=>{i.value.isInView(v.value)||i.value.scrollIntoView(v.value)}),u(_.id,k),s("active",_.id))};return(_,v)=>(r.openBlock(),r.createElementBlock("div",pr,[r.renderSlot(_.$slots,"leftButton"),r.createVNode(hr,{ref_key:"scroll",ref:i,space:_.space,"is-scroll-wheel":r.unref(A),"is-scroll-button":x.value},{default:r.withCtx(()=>[r.createVNode(r.TransitionGroup,r.mergeProps({key:"tabItemTrans",tag:"ul",class:"stack-tab__nav"},T.value,{appear:""}),{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(h),(k,E)=>(r.openBlock(),r.createBlock(Fn,{key:k.id,contextmenu:_.contextmenu,item:k,onContextmenu:r.withModifiers(l=>r.unref(c)(l,k,E,r.unref(h).length),["prevent"]),onMouseup:r.withModifiers(l=>O(k),["middle","prevent"]),onClose:O,onActive:S},null,8,["contextmenu","item","onContextmenu","onMouseup"]))),128))]),_:1},16)]),_:1},8,["space","is-scroll-wheel","is-scroll-button"]),r.renderSlot(_.$slots,"rightButton"),r.createVNode(Ce,{"icon-class":r.unref(o)?"stack-tab__icon-restore":"stack-tab__icon-fullscreen",title:r.unref(n)("VueStackTab.maximum"),onClick:v[0]||(v[0]=k=>o.value=!r.unref(o))},null,8,["icon-class","title"]),r.createVNode(r.Transition,{name:"stack-tab-zoom",appear:""},{default:r.withCtx(()=>[r.unref(a)?(r.openBlock(),r.createBlock(Pn,{key:"tabMenuTrans",left:r.unref(d).left,top:r.unref(d).top,"tab-item":r.unref(d).item,max:r.unref(d).max,index:r.unref(d).index},null,8,["left","top","tab-item","max","index"])):r.createCommentVNode("",!0)]),_:1})]))}});var mr=typeof global=="object"&&global&&global.Object===Object&&global,gr=typeof self=="object"&&self&&self.Object===Object&&self,Nt=mr||gr||Function("return this")(),Ae=Nt.Symbol,zt=Object.prototype,yr=zt.hasOwnProperty,kr=zt.toString,me=Ae?Ae.toStringTag:void 0;function wr(e){var t=yr.call(e,me),n=e[me];try{e[me]=void 0;var o=!0}catch{}var s=kr.call(e);return o&&(t?e[me]=n:delete e[me]),s}var _r=Object.prototype,Tr=_r.toString;function vr(e){return Tr.call(e)}var xr="[object Null]",Sr="[object Undefined]",$t=Ae?Ae.toStringTag:void 0;function Er(e){return e==null?e===void 0?Sr:xr:$t&&$t in Object(e)?wr(e):vr(e)}function Or(e){return e!=null&&typeof e=="object"}var Br="[object Symbol]";function Cr(e){return typeof e=="symbol"||Or(e)&&Er(e)==Br}var Ar=/\s/;function Ir(e){for(var t=e.length;t--&&Ar.test(e.charAt(t)););return t}var Mr=/^\s+/;function Lr(e){return e&&e.slice(0,Ir(e)+1).replace(Mr,"")}function Ie(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Rt=NaN,Nr=/^[-+]0x[0-9a-f]+$/i,zr=/^0b[01]+$/i,$r=/^0o[0-7]+$/i,Rr=parseInt;function Vt(e){if(typeof e=="number")return e;if(Cr(e))return Rt;if(Ie(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ie(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Lr(e);var n=zr.test(e);return n||$r.test(e)?Rr(e.slice(2),n?2:8):Nr.test(e)?Rt:+e}var He=function(){return Nt.Date.now()},Vr="Expected a function",Pr=Math.max,jr=Math.min;function Dr(e,t,n){var o,s,i,a,d,c,f=0,p=!1,u=!1,h=!0;if(typeof e!="function")throw new TypeError(Vr);t=Vt(t)||0,Ie(n)&&(p=!!n.leading,u="maxWait"in n,i=u?Pr(Vt(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function T(l){var b=o,g=s;return o=s=void 0,f=l,a=e.apply(g,b),a}function x(l){return f=l,d=setTimeout(S,t),p?T(l):a}function A(l){var b=l-c,g=l-f,R=t-b;return u?jr(R,i-g):R}function O(l){var b=l-c,g=l-f;return c===void 0||b>=t||b<0||u&&g>=i}function S(){var l=He();if(O(l))return _(l);d=setTimeout(S,A(l))}function _(l){return d=void 0,h&&o?T(l):(o=s=void 0,a)}function v(){d!==void 0&&clearTimeout(d),f=0,o=c=s=d=void 0}function k(){return d===void 0?a:_(He())}function E(){var l=He(),b=O(l);if(o=arguments,s=this,c=l,b){if(d===void 0)return x(c);if(u)return clearTimeout(d),d=setTimeout(S,t),T(c)}return d===void 0&&(d=setTimeout(S,t)),a}return E.cancel=v,E.flush=k,E}var Ur="Expected a function";function Wr(e,t,n){var o=!0,s=!0;if(typeof e!="function")throw new TypeError(Ur);return Ie(n)&&(o="leading"in n?!!n.leading:o,s="trailing"in n?!!n.trailing:s),Dr(e,t,{leading:o,maxWait:t,trailing:s})}let Pt;const jt=()=>{const e=F.useRouter(),{active:t,hasTab:n,pageShown:o,reset:s,canAddTab:i,destroy:a}=he(),d=fe(),c=Wr(u=>new Promise((h,T)=>{if(!o.value){T();return}const x=Z(u,{refreshable:!0,closable:!0,iframe:!1});if(n(x.id)){d.emit(P.TAB_ACTIVE,{id:x.id}),h(x.id);return}if(x.id||(x.id=rt()),!i()){T("Max Size");return}f(u,x),h(x.id)}),500),f=(u,h)=>{const T=ht(h);let x=Z({__tab:T},u.query),A;if(u.iframe){const O=encodeURIComponent(u.path);A=Pt,x.__src=O}else{const O=Ue(u.path);A=O.path,x=Z(O.query,x)}e.push({path:A,query:x})};return{openNewTab:c,setIFramePath:u=>{Pt=u},active:t,reset:s,destroy:a}},Fr={class:"stack-tab__container"},qr=["src"],Dt=r.defineComponent({__name:"StackTabs",props:{defaultTabs:{default:()=>[]},max:{default:20},append:{default:"last"},contextmenu:{type:[Boolean,Object],default:!0},pageTransition:{default:"stack-tab-swap"},tabTransition:{default:"stack-tab-zoom"},tabScrollMode:{default:Y.BOTH},width:{default:"100%"},height:{default:"100%"},i18n:{default:"zh-CN"},space:{default:300},globalScroll:{type:Boolean,default:!1},iframePath:{}},emits:["onActive","onPageLoaded"],setup(e,{emit:t}){const{tabs:n,pageShown:o,caches:s,addPage:i,destroy:a,initial:d,setMaxSize:c,setGlobalScroll:f}=he(),p=t,u=e,{changeLocale:h}=ye(),T=r.ref(!1);r.provide("maximum",T);const{setIFramePath:x}=jt();x(u.iframePath),f(u.globalScroll),h(u.i18n),r.onBeforeMount(()=>{d(u.defaultTabs)});const A=(_,v)=>i(_,v),O=_=>{p("onActive",_)};c(u.max),r.onUnmounted(()=>{});const S=()=>{p("onPageLoaded")};return(_,v)=>{const k=r.resolveComponent("router-view");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["stack-tab",{"stack-tab__maximum":T.value}]),style:r.normalizeStyle({width:_.width,height:_.height,"z-index":T.value?r.unref(et)("body *:not(.stack-tab,.stack-tab *)"):void 0})},[r.createVNode(br,{space:_.space,onActive:O,"tab-transition":_.tabTransition,max:_.max},{leftButton:r.withCtx(()=>[r.renderSlot(_.$slots,"leftButton")]),rightButton:r.withCtx(()=>[r.renderSlot(_.$slots,"rightButton")]),_:3},8,["space","tab-transition","max"]),r.createElementVNode("div",Fr,[r.createVNode(k,null,{default:r.withCtx(({Component:E,route:l})=>[r.createVNode(r.Transition,{name:_.pageTransition,onAfterLeave:v[0]||(v[0]=b=>o.value=!0),mode:"out-in"},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.KeepAlive,{include:r.unref(s)},[(r.openBlock(),r.createBlock(r.Suspense,null,{default:r.withCtx(()=>[r.unref(o)?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(A(l,E)),{key:l.fullPath,onOnLoaded:S},null,32)):r.createCommentVNode("",!0)]),fallback:r.withCtx(()=>[r.createTextVNode(" Loading.... ")]),_:2},1024))],1032,["include"]))]),_:2},1032,["name"])]),_:1}),r.createVNode(r.TransitionGroup,{name:_.pageTransition,appear:""},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(n).filter(E=>E.iframe),E=>r.withDirectives((r.openBlock(),r.createElementBlock("iframe",{key:E.id,class:"stack-tab__iframe",src:/^(javascript|data):/i.test(E.url??"")?"about:blank":E.url,frameborder:"0"},null,8,qr)),[[r.vShow,E.active&&r.unref(o)]])),128))]),_:1},8,["name"])])],6)}}}),Ze=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const Ut=typeof TextEncoder=="function"?new TextEncoder:void 0,ge=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");(e=>{let t={};return e.forEach((n,o)=>t[n]=o),t})(ge);const G=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const Gr=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),Wt=typeof btoa=="function"?e=>btoa(e):Ze?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,n,o,s,i="";const a=e.length%3;for(let d=0;d<e.length;){if((n=e.charCodeAt(d++))>255||(o=e.charCodeAt(d++))>255||(s=e.charCodeAt(d++))>255)throw new TypeError("invalid character found");t=n<<16|o<<8|s,i+=ge[t>>18&63]+ge[t>>12&63]+ge[t>>6&63]+ge[t&63]}return a?i.slice(0,a-3)+"===".substring(a):i},Hr=Ze?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let o=0,s=e.length;o<s;o+=4096)n.push(G.apply(null,e.subarray(o,o+4096)));return Wt(n.join(""))},Zr=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?G(192|t>>>6)+G(128|t&63):G(224|t>>>12&15)+G(128|t>>>6&63)+G(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return G(240|t>>>18&7)+G(128|t>>>12&63)+G(128|t>>>6&63)+G(128|t&63)}},Xr=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Yr=e=>e.replace(Xr,Zr),Ft=Ze?e=>Buffer.from(e,"utf8").toString("base64"):Ut?e=>Hr(Ut.encode(e)):e=>Wt(Yr(e)),Jr=(e,t=!1)=>t?Gr(Ft(e)):Ft(e),Kr=e=>{const o=`<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1167.06 237.75"><path d="M79.24,19.73h108.91v29.7h-108.91v-29.7Z" style="fill:#79a7ff; stroke-width:0px;"/><path d="M179.24,199.67H20.26c-11.21-.07-20.26-9.17-20.26-20.38V20.39C0,9.18,9.05.07,20.26,0h59.49c3.51.07,6.34,2.9,6.41,6.42v44.36c0,3.54-2.87,6.41-6.41,6.41s-6.41-2.86-6.42-6.4V12.36H20.25c-4.13.07-7.44,3.44-7.44,7.56v159.41c0,4.13,3.31,7.49,7.44,7.56h158.98c4.13-.07,7.44-3.44,7.44-7.56V51.84c0-3.54,2.87-6.41,6.41-6.42,3.55,0,6.42,2.87,6.42,6.42v127.45c0,11.21-9.05,20.32-20.26,20.39h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M192.8,60.77c-3.66-.07-6.61-3.02-6.68-6.68v-18.23c.09-4.29-3.32-7.83-7.6-7.92h-96.43c-3.69,0-6.69-2.99-6.69-6.69s2.99-6.69,6.69-6.69h96.27c11.69.08,21.13,9.58,21.13,21.27v18.25c0,3.69-2.99,6.68-6.68,6.68h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M193.08,58.67H10.15c-3.61-.08-6.48-3.07-6.41-6.68-.08-3.62,2.79-6.61,6.4-6.69,0,0,0,0,0,0h182.93c3.62.08,6.48,3.08,6.41,6.69.07,3.61-2.79,6.6-6.41,6.68h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M137.2,58.67c-3.42.24-6.4-2.32-6.68-5.74v-28.15c.55-3.69,4-6.24,7.69-5.69,2.94.44,5.24,2.75,5.69,5.69v28.15c-.28,3.42-3.26,5.98-6.68,5.74h-.02Z" style="fill:#377dff; stroke-width:0px;"/><path d="M99.78,100.48l-12.83-22.22h-18.39l31.22,54.05,31.22-54.05h-18.39l-12.83,22.22Z" style="fill:#00d797; stroke-width:0px;"/><path d="M135.28,78.26l-35.49,61.43-35.44-61.43h-20.11l55.55,96.2,55.55-96.2s-20.06,0-20.06,0ZM313.33,59.95c0,.52-.67,1.84-2,3.95s-3.3,5.2-5.9,9.28-5.75,9.28-9.46,15.61c-3.7,6.33-7.52,13.34-11.45,21.04-4.51,8.85-7.76,15.8-9.76,20.86s-2.99,9.41-2.99,13.05c0,2.89,1.53,5.44,4.6,7.63,3.7-2.89,7.34-6.33,10.93-10.32,3.58-3.99,7.13-8.44,10.63-13.36s7.55-11.13,12.14-18.65c4.6-7.52,8.69-14.43,12.27-20.73-.17-.52-.36-1.04-.56-1.56s-.3-.95-.3-1.3c0-2.72.55-5.26,1.65-7.63,1.1-2.37,2.47-4.68,4.12-6.94s4.12-5.44,7.42-9.54c.87-1.1,1.94-1.65,3.21-1.65,2.08,0,3.12,1.33,3.12,3.99s-1.08,6.84-3.25,12.53c-2.17,5.7-5.37,12.39-9.59,20.08s-9.47,16.29-15.74,25.81c-6.28,9.51-13.37,19.45-21.3,29.8-8.04,10.47-13.79,15.7-17.26,15.7-1.97,0-4.19-1.08-6.68-3.25s-4.63-5.13-6.42-8.89-2.69-7.78-2.69-12.06c0-2.54.53-5.81,1.6-9.8s2.75-8.78,5.03-14.36,4.87-11.09,7.76-16.53c3.01-5.72,5.65-10.47,7.94-14.23,2.28-3.76,4.87-7.94,7.76-12.53,2.89-4.6,4.34-7.1,4.34-7.5,0-.87-.58-1.3-1.73-1.3-3.35,0-7.82,1.71-13.4,5.12s-12.85,8.59-21.82,15.53c-3.41,2.66-5.57,4.38-6.46,5.16s-1.34,1.43-1.34,1.95c0,.69.55,1.04,1.65,1.04.46,0,2.02-.17,4.68-.52s4.77-.52,6.33-.52c2.6,0,3.9.46,3.9,1.39,0,.81-.54,1.45-1.61,1.91-1.07.46-2.54.93-4.42,1.39s-4.44,1.1-7.68,1.91c-3.47.93-7.16,2.25-11.06,3.99-3.9,1.73-6.14,2.6-6.72,2.6-1.1,0-1.78-.4-2.04-1.21s-.39-2.14-.39-3.99c0-8.21,1.36-14.56,4.08-19.04s7.58-9.15,14.57-14.01c7.98-5.55,15.61-10.16,22.9-13.84,7.29-3.67,13.58-6.36,18.87-8.07s9.18-2.56,11.67-2.56,4.84,1.56,7.24,4.68,3.6,6.42,3.6,9.89h0ZM366.34,124.75c-8.39,11.1-14.76,19-19.13,23.68s-7.94,7.03-10.71,7.03c-2.2,0-4.22-.91-6.07-2.73-1.85-1.82-3.28-4.28-4.29-7.37s-1.52-6.4-1.52-9.93c0-2.31.22-4.39.65-6.25.43-1.85,1.26-3.89,2.47-6.12s2.82-4.64,4.81-7.24c2-2.6,4.44-5.55,7.33-8.85,1.73-2.02,3.19-3.73,4.38-5.12,1.18-1.39,2.34-2.33,3.47-2.82s2.96-.74,5.51-.74c1.85,0,3.61.25,5.29.74,1.68.49,2.52,1,2.52,1.52,0,1.04-.85,2.92-2.56,5.64s-4.45,6.03-8.24,9.93c-3.79,3.9-8.17,7.74-13.14,11.49-1.1,3.41-1.65,6.01-1.65,7.81,0,2.49.95,3.73,2.86,3.73.69,0,1.85-.59,3.47-1.78,1.62-1.18,4.35-3.47,8.2-6.85,3.84-3.38,7.3-6.38,10.37-8.98,2.25-1.97,4.87-4.9,7.85-8.8s5.39-6.84,7.24-8.8c4.28-4.51,7.2-7.44,8.76-8.8s3.06-2.04,4.51-2.04,2.33.43,2.82,1.3c.49.87.74,2.63.74,5.29,0,1.21-.12,2.2-.35,2.95s-.71,1.72-1.43,2.91-2.18,3.37-4.38,6.55-4.8,6.94-7.81,11.28c-1.66,2.38-3.09,4.93-4.25,7.59-1.21,2.75-1.82,4.81-1.82,6.2,0,3.01,1.18,4.51,3.56,4.51,1.96,0,4.25-.81,6.85-2.43s6.59-4.54,11.97-8.76v5.81c-6.77,6.25-11.77,10.79-15.01,13.62s-6.04,4.97-8.41,6.42-4.63,2.17-6.77,2.17c-4.86,0-7.29-2.89-7.29-8.67,0-2.2.72-5.16,2.17-8.89,1.44-3.73,3.79-9.12,7.03-16.18v-.02Z" style="fill:#306fff; stroke-width:0px;"/><path d="M407.71,133.77v2.17c0,3.41.84,6.07,2.52,7.98,1.68,1.91,3.87,2.86,6.59,2.86s5.77-.66,8.8-2c3.04-1.33,6.06-3.09,9.07-5.29s6.68-5.15,11.02-8.85v5.29c-6.54,7.87-12.67,13.89-18.39,18.09-5.72,4.19-11.54,6.29-17.44,6.29-5.15,0-9.22-2-12.23-5.99s-4.51-9.46-4.51-16.39c0-6.07,1.42-11.58,4.25-16.52s7.46-10.16,13.88-15.66c4.39-3.76,8.76-6.59,13.1-8.5s8.21-2.86,11.62-2.86c2.72,0,4.87.62,6.46,1.86s2.39,3.11,2.39,5.59c0,3.64-1.36,7.27-4.08,10.89s-6.87,7.2-12.45,10.76c-5.58,3.56-12.45,6.98-20.6,10.28h0ZM408.58,128.13c5.2-2.02,9.66-4.54,13.36-7.55,3.7-3.01,6.43-5.88,8.2-8.63,1.76-2.75,2.65-4.76,2.65-6.03s-.61-2-1.82-2c-1.04,0-2.73.67-5.07,2s-4.71,3.07-7.11,5.21-4.55,4.66-6.46,7.55c-1.9,2.86-3.17,6.08-3.73,9.46h-.02ZM585.37,132.9c-1.45-2.66-3.61-5.06-6.51-7.2-2.89-2.14-6.15-3.86-9.76-5.16s-7.39-2.27-11.32-2.91c-11.68-1.74-22.58-5.52-32.7-11.36-.87-.46-1.79-1.44-2.78-2.95-.98-1.5-1.47-2.95-1.47-4.34,0-5.09.85-10.19,2.56-15.31,1.71-5.12,3.89-9.12,6.55-12.01,4.28-4.8,11.98-8.99,23.12-12.58,11.13-3.58,23.67-5.38,37.6-5.38,8.33,0,14.76.64,19.3,1.91s6.81,3.24,6.81,5.9c0,4.34-.59,7.69-1.78,10.06s-2.46,3.95-3.82,4.73c-1.36.78-3.75,1.84-7.16,3.17-3.64,1.27-6.81,2.6-9.5,3.99s-4.99,2.72-6.9,3.99c-1.91,1.27-3.09,1.91-3.56,1.91-.58,0-.87-.23-.87-.69,0-.98,1.03-2.47,3.08-4.47s4.58-3.74,7.59-5.25c3.18-1.68,4.77-2.75,4.77-3.21,0-.75-1.76-1.13-5.29-1.13-10.7,0-20.59.95-29.67,2.86s-16.24,4.42-21.47,7.55c-5.23,3.12-7.85,6.3-7.85,9.54,0,2.02,1.08,3.46,3.25,4.29,2.17.84,6.95,2.24,14.36,4.21,7.4,1.97,14.02,4.22,19.86,6.77,8.38,3.59,14.6,7.32,18.65,11.19,4.05,3.88,6.07,8.21,6.07,13.01,0,3.3-.8,6.61-2.39,9.93-1.59,3.33-3.92,6.38-6.98,9.15-3.07,2.78-6.59,5.06-10.58,6.85-3.41,1.45-7.71,2.8-12.88,4.08-5.18,1.27-10.79,2.27-16.83,2.99-6.04.72-11.81,1.08-17.31,1.08-10.12,0-18.26-.95-24.42-2.86s-9.24-4.8-9.24-8.67c0-1.74,1.04-4.44,3.12-8.11s4.54-6.14,7.37-7.42c2.49-.98,4.89-1.55,7.2-1.69,2.31-.14,3.47.13,3.47.82,0,.17-.09.35-.26.52s-.38.32-.61.43c-.23.12-.46.23-.69.35-1.16.46-2.1.82-2.82,1.08-.72.26-1.3.52-1.74.78-.43.26-.65.62-.65,1.08,0,1.21,5.99,1.82,17.96,1.82,10.41,0,18.94-.38,25.59-1.13s12.52-2.11,17.61-4.08c5.09-1.97,9.71-4.68,13.88-8.15l.04.02ZM640.8,85.63h3.73c3.06-5.49,5.84-9.38,8.33-11.67,2.49-2.28,5.32-3.43,8.5-3.43s4.77.72,4.77,2.17c0,.69-1.24,2.57-3.73,5.64s-4.37,5.64-5.64,7.72c1.96.23,3.71.43,5.25.61,1.53.17,2.73.32,3.6.43-3.3,6.13-7.43,12.4-12.4,18.82l-4.08-.3c-1.1-.09-2.21-.17-3.34-.26s-2.5-.19-4.12-.3c-3.12,5.03-5.74,9.53-7.85,13.49s-3.73,7.59-4.86,10.89-1.69,6.42-1.69,9.37c0,3.99,1.59,5.99,4.77,5.99,2.2,0,5.07-1.17,8.63-3.51s8.31-5.94,14.27-10.8v5.81c-15.61,16.95-27.15,25.42-34.61,25.42-2.6,0-4.7-1.01-6.29-3.04-1.59-2.02-2.38-4.63-2.38-7.81,0-2.14.45-4.68,1.34-7.63.9-2.95,2.5-7.4,4.81-13.36-.81.69-1.58,1.37-2.3,2.04s-1.39,1.27-2,1.82-1.26,1.13-1.95,1.73c-.69.61-1.39,1.23-2.08,1.87v-5.99c6.07-5.09,13.42-14.02,22.03-26.8-.87-.06-1.68-.1-2.43-.13s-1.65-.04-2.69-.04c-3.41,0-5.96.23-7.63.69-.69.17-1.34.36-1.95.56s-1.03.3-1.26.3-.35-.17-.35-.52c0-1.91,1.18-4.77,3.56-8.59,1.91-3.24,3.72-5.64,5.42-7.2,1.71-1.56,3.79-2.62,6.25-3.17,2.46-.55,5.91-.82,10.37-.82h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M664.91,115.12c8.79-7.98,17.32-13.91,25.59-17.78s14.66-5.81,19.17-5.81c1.21,0,2.34.51,3.38,1.52,1.04,1,1.88,2.19,2.47,3.51.61,1.33.91,2.31.91,2.95,0,1.04-.41,1.81-1.21,2.3-.81.49-2.23,1.08-4.25,1.78.4.93.92,2.11,1.56,3.56s1.13,2.62,1.47,3.51c.35.9.52,1.69.52,2.39,0,1.39-1.4,3.98-4.21,7.76-2.81,3.79-4.77,6.58-5.9,8.37-1.13,1.79-1.69,3.99-1.69,6.59,0,4.28,1.96,6.42,5.9,6.42s10.38-3.79,19-11.36v5.29c-14.63,16.25-25.1,24.38-31.4,24.38-2.26,0-3.86-.74-4.81-2.21s-1.43-3.66-1.43-6.55c0-4.57,1.65-11.19,4.94-19.86-8.44,9.37-14.72,16.03-18.82,20-4.11,3.96-7.49,5.94-10.15,5.94-1.27,0-2.86-1.1-4.77-3.3-1.91-2.2-3.6-5.04-5.07-8.54-1.47-3.5-2.21-7.13-2.21-10.89,0-2.72.26-4.99.78-6.81s1.53-3.69,3.04-5.59c1.5-1.91,3.9-4.42,7.2-7.55v-.02ZM706.46,105.58c-15.04,6.88-25.75,12.72-32.14,17.52s-9.59,9.75-9.59,14.83c0,1.85.32,3.37.95,4.55.64,1.19,1.5,1.78,2.6,1.78.64,0,1.76-.4,3.38-1.21,6.07-3.58,11.62-8.25,16.66-14.01,5.03-5.75,11.07-13.58,18.13-23.46h.01Z" style="fill:#306fff; stroke-width:0px;"/><path d="M779.07,130.82v5.81c-6.19,6.07-11.23,10.79-15.14,14.14-3.9,3.35-7.55,5.96-10.93,7.81-3.38,1.85-6.69,2.78-9.93,2.78s-6.1-1.26-8.76-3.77c-2.66-2.52-4.74-5.81-6.25-9.89-1.5-4.08-2.26-8.4-2.26-12.97,0-3.93.87-7.43,2.6-10.5,1.74-3.07,5.09-7.03,10.06-11.88,5.9-5.78,11.38-10.25,16.44-13.4s9.04-4.73,11.93-4.73c2.08,0,3.85.72,5.29,2.17s2.17,3.27,2.17,5.46c0,1.85-.95,4.48-2.86,7.89-1.91,3.41-4.05,6.38-6.42,8.89-2.37,2.52-4.25,3.77-5.64,3.77-1.5,0-2.25-.81-2.25-2.43.06-.46.1-.9.13-1.3s.04-.81.04-1.21c0-.69-.25-1.08-.74-1.17s-1.08.13-1.78.65c-5.78,4.05-9.75,6.9-11.88,8.54-2.14,1.65-3.83,3.31-5.07,4.99s-1.87,3.44-1.87,5.29c0,3.41,1.1,6.19,3.3,8.33s5.06,3.21,8.59,3.21,8.02-1.4,13.14-4.21c5.12-2.8,11.15-6.9,18.09-12.27h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M844.13,130.65v5.81c-6.48,7.58-11.91,13.32-16.31,17.22s-8.07,5.86-11.02,5.86-5.39-.84-7.68-2.52c-2.29-1.68-4.34-3.99-6.16-6.94-1.82-2.95-3.98-7.05-6.46-12.32-2.95,3.64-5.61,7.04-7.98,10.19-2.37,3.15-4.02,5.25-4.94,6.29-.93,1.04-1.77,1.56-2.52,1.56-1.56,0-2.69-1-3.38-2.99-.69-2-1.04-4.9-1.04-8.72,0-5.21.62-10.22,1.87-15.05,1.24-4.83,3.04-9.53,5.38-14.1s5.35-9.5,9.02-14.79c3.67-5.29,7.79-10.83,12.36-16.61,6.3-7.98,11.74-14.5,16.31-19.56,4.57-5.06,8.54-8.88,11.93-11.45,3.38-2.57,6.2-3.86,8.46-3.86,2.78,0,4.16,1.24,4.16,3.73,0,2.14-5.12,9.85-15.35,23.12-10.24,13.27-25.16,31.39-44.76,54.35v7.46c13.13-14.05,23.69-24.49,31.71-31.31,8.01-6.82,14.21-10.24,18.61-10.24,1.79,0,3.18,1.06,4.16,3.17s1.47,4.55,1.47,7.33c0,5.67-2.43,10.92-7.29,15.74-4.86,4.83-12.32,10.37-22.38,16.61,1.74,2.6,3.27,4.5,4.6,5.68,1.33,1.19,3.01,1.78,5.03,1.78,1.79,0,3.73-.61,5.81-1.82s4.21-2.75,6.38-4.6,5.51-4.86,10.02-9.02h-.01ZM809.86,135.07c2.2-1.45,4.93-3.69,8.2-6.72,3.27-3.04,6.06-6.19,8.37-9.46s3.47-6,3.47-8.2c0-.92-.41-1.39-1.21-1.39-2.2,0-5.97,2.11-11.32,6.33-5.35,4.22-10.57,9.63-15.66,16.22,2.2,0,4.92,1.07,8.15,3.21h0ZM951.78,140.71l2.86,2.17c-.75,1.62-1.47,3.04-2.17,4.25-.69,1.21-1.53,2.69-2.52,4.42-.98,1.73-1.73,3.04-2.25,3.9-4.34,7.58-8.41,11.36-12.23,11.36-1.62,0-3.01-.64-4.16-1.91-1.16-1.27-1.73-3.01-1.73-5.2,0-3.12,1.11-7.4,3.34-12.84,2.23-5.43,5.67-12.13,10.32-20.08s10.51-16.96,17.57-27.02c7.05-10.06,15.01-20.67,23.85-31.84-5.09-.75-11.13-1.13-18.13-1.13-8.04,0-16.99.9-26.85,2.69s-18.45,3.86-25.76,6.2c-7.32,2.34-10.97,4.06-10.97,5.16,0,.41.14.68.43.82.29.15.77.26,1.43.35s1.52.19,2.56.3c6.77.93,10.15,1.97,10.15,3.12,0,.58-1.47.85-4.42.82s-6.51-.04-10.67-.04c-3.3,0-5.68-.13-7.16-.39s-2.46-.75-2.95-1.47-.74-1.84-.74-3.34c0-.98.29-3.12.87-6.42,1.1-6.13,2.79-11.04,5.07-14.75,2.28-3.7,5.78-6.72,10.5-9.06,4.71-2.34,11.2-4.21,19.47-5.59,13.88-2.37,25.36-3.56,34.44-3.56,6.71,0,12,.27,15.88.82,3.87.55,6.72,1.34,8.54,2.39,1.82,1.04,2.98,2.07,3.47,3.08s1.14,2.76,1.95,5.25l2.69,7.98c.17.52.32.94.43,1.26.12.32.22.65.3,1,.09.35.13.67.13.95,0,2.26-.51,4.28-1.52,6.07s-2.86,4.48-5.55,8.07-4.67,6.39-5.94,8.41c-14.92,24.23-25.1,42.16-30.53,53.78v.02ZM991.94,115.12c8.79-7.98,17.32-13.91,25.59-17.78s14.66-5.81,19.17-5.81c1.21,0,2.34.51,3.38,1.52,1.04,1,1.88,2.19,2.47,3.51.61,1.33.91,2.31.91,2.95,0,1.04-.41,1.81-1.21,2.3-.81.49-2.23,1.08-4.25,1.78.4.93.92,2.11,1.56,3.56s1.13,2.62,1.47,3.51c.35.9.52,1.69.52,2.39,0,1.39-1.4,3.98-4.21,7.76-2.81,3.79-4.77,6.58-5.9,8.37-1.13,1.79-1.69,3.99-1.69,6.59,0,4.28,1.96,6.42,5.9,6.42s10.38-3.79,19-11.36v5.29c-14.63,16.25-25.1,24.38-31.4,24.38-2.26,0-3.86-.74-4.81-2.21s-1.43-3.66-1.43-6.55c0-4.57,1.65-11.19,4.94-19.86-8.44,9.37-14.72,16.03-18.82,20-4.11,3.96-7.49,5.94-10.15,5.94-1.27,0-2.86-1.1-4.77-3.3-1.91-2.2-3.6-5.04-5.07-8.54-1.47-3.5-2.21-7.13-2.21-10.89,0-2.72.26-4.99.78-6.81s1.53-3.69,3.04-5.59c1.5-1.91,3.9-4.42,7.2-7.55v-.02ZM1033.49,105.58c-15.04,6.88-25.75,12.72-32.14,17.52s-9.59,9.75-9.59,14.83c0,1.85.32,3.37.95,4.55.64,1.19,1.5,1.78,2.6,1.78.64,0,1.76-.4,3.38-1.21,6.07-3.58,11.62-8.25,16.66-14.01,5.03-5.75,11.07-13.58,18.13-23.46h.01Z" style="fill:#306fff; stroke-width:0px;"/><path d="M1111.3,130.82v5.64c-6.02,3.82-10.76,5.72-14.23,5.72-1.91,0-3.93-.32-6.07-.95-5.2,6.59-9.67,11.42-13.4,14.49s-7.47,4.6-11.23,4.6c-4.34,0-7.68-2.29-10.02-6.85-2.34-4.57-3.51-10.24-3.51-17,0-9.2,2.78-19.21,8.33-30.06,5.56-10.85,12.29-21.07,20.08-30.45,7.84-9.46,15.43-17.28,22.77-23.46,7.34-6.19,12.32-9.28,14.92-9.28s3.73,1.71,3.73,5.12c0,15.15-19.43,41.58-58.29,79.29-.12,1.04-.17,3.09-.17,6.16,0,7.98,2.14,11.97,6.42,11.97,1.68,0,3.37-.68,5.07-2.04,1.71-1.36,4.32-3.95,7.85-7.76-1.39-3.12-2.08-5.44-2.08-6.94,0-3.18,1.3-6.62,3.9-10.32s5.57-6.9,8.89-9.59c3.33-2.69,5.74-4.03,7.24-4.03,2.37,0,3.56,1.71,3.56,5.12,0,2.6-.68,5.72-2.04,9.37-1.36,3.64-3.34,7.81-5.94,12.49.98.81,1.76,1.4,2.34,1.78s1.45.56,2.6.56c2.66,0,5.75-1.18,9.28-3.56v-.02ZM1067.24,117.81c3.01-2.6,6.03-5.68,9.06-9.24s7.47-9.01,13.32-16.35c5.61-7.05,10.02-12.94,13.23-17.65s5.62-8.63,7.24-11.75c1.62-3.12,2.43-5.26,2.43-6.42,0-.87-.23-1.3-.69-1.3-1.27,0-3.92,2.1-7.94,6.29-4.02,4.19-8.6,9.93-13.75,17.22-7.11,10.06-12.26,17.64-15.44,22.73-3.18,5.09-5.67,10.58-7.46,16.48h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M1110.96,133.08v-2.08c14.92-15.73,25.18-26.75,30.79-33.05,1.27-7.11,4.34-10.67,9.19-10.67,1.21,0,2.52.35,3.9,1.04l.52,1.65c-.23.69-.35,1.68-.35,2.95,0,1.1.42,3.14,1.26,6.12s1.49,5.48,1.95,7.5.69,4.31.69,6.85c0,3.82-.87,7.48-2.6,10.97-1.73,3.5-4.25,6.85-7.55,10.06-3.3,3.21-7.55,6.49-12.75,9.85,2.08.35,3.73.52,4.94.52,2.37,0,4.93-.59,7.68-1.78,2.75-1.18,5.55-2.78,8.41-4.77,2.86-2,6.2-4.58,10.02-7.76v5.81c-7.4,7.23-14.02,12.71-19.86,16.44s-10.87,5.59-15.09,5.59c-5.44,0-10.47-2.31-15.09-6.94-2.72-2.78-4.41-5.43-5.08-7.98-.67-2.54-1-5.99-1-10.32h.02ZM1143.31,119.8l-1.56-12.66c-3.59,4.05-11.25,11.83-22.99,23.33,3.47.75,5.84,1.76,7.11,3.04,1.27,1.27,3.06,3.73,5.38,7.37,3.93-1.62,6.95-3.83,9.07-6.64,2.11-2.8,3.17-6.64,3.17-11.49,0-.58-.01-1.1-.04-1.56s-.07-.92-.13-1.39h0Z" style="fill:#306fff; stroke-width:0px;"/><g style="isolation:isolate;"><text transform="translate(943.45 229.96)" style="fill:#00d797; font-family:ArialMT, Arial; font-size:24px; isolation:isolate;"><tspan x="0" y="0">version: ${e}</tspan></text></g></svg>`,a="data:image/svg+xml;base64,"+Jr(o),d="font-size: 1px; padding: "+Math.floor(100/4)+"px "+Math.floor(580/2)+"px; line-height: "+Math.floor(100/2)+"px;";window.console.log("%c+",d+`background-image: url(${a});background-size: 580px 100px;background-repeat: norepeat; color: transparent;`)},qt=()=>{const{attrs:e,props:t}=r.getCurrentInstance(),{pageShown:n,getTab:o,markDeletableCache:s,removeComponent:i,getComponent:a,addPageScroller:d}=he(),c=F.useRoute(),f=F.useRouter();let p="",u="";p=e.tId||t.tId;const h=e.pId||t.pId;return u=c.query.__tab,{forward:O=>{n.value=!1;const S=Z({__tab:u},O.query);f.push({path:O.path,query:S})},backward:(O,S)=>{n.value=!1;const _=o(p);if(!_)return;const v=_.pages;let k=0;if(typeof O=="number")k=Math.abs(O);else{let b=1,g=!1;const R=v.list(),U=Ue(O);S=Z(U.query,S);for(let W=v.size()-2;W>=0;W--){if(R[W].path===U.path){g=!0;break}b+=1}g&&(k=b)}if(k===0||v.size()<=k)return;for(let b=0;b<k;b++){const g=v.pop();i(g.id),s(g.id)}const E=v==null?void 0:v.peek(),l=a(E.id);if(l!=null){const b=l.components.DynamicComponent;b.props=Z(S,b.props)}f.push({path:E.path,query:E.query})},addScroller:(...O)=>{d(h,...O)}}},Qr=r.defineComponent({__name:"iframe",setup(e){return qt(),(t,n)=>(r.openBlock(),r.createElementBlock("div"))}}),eo=()=>{const e=fe(),{attrs:t}=r.getCurrentInstance();r.onUnmounted(()=>{o()});const n=()=>{e.emit(P.PAGE_LOADING,{tId:t.tId,value:!0})},o=()=>{e.emit(P.PAGE_LOADING,{tId:t.tId,value:!1})};return{openTabLoading:n,closeTabLoading:o}},to={install(e,t){Kr("0.1.23"),e.component("VueStackTabs",Dt).use(Ln).use(sn().getI18n(t))}};N.IFrame=Qr,N.Stack=ke,N.StackTab=Dt,N.TabHeaderButton=Ce,N.TabScrollMode=Y,N.default=to,N.useStackTab=jt,N.useTabLoading=eo,N.useTabRouter=qt,Object.defineProperties(N,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-stack-tabs",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "description": "Vue.js component for router tab.",
5
5
  "private": false,
6
6
  "type": "module",
@@ -71,7 +71,7 @@ const onTabActive = (id: string) => {
71
71
  }
72
72
  setMaxSize(props.max)
73
73
  onUnmounted(() => {
74
- destroy()
74
+ // destroy()
75
75
  })
76
76
  const onComponentLoaded = () => {
77
77
  emit('onPageLoaded')
@@ -43,6 +43,9 @@ export default () => {
43
43
  const initial = (staticTabs: ITabData[]) => {
44
44
  // add default tabs
45
45
  defaultTabs.splice(0)
46
+ caches.value.splice(0)
47
+ deletableCache.clear()
48
+ components.clear()
46
49
  for (const item of staticTabs) {
47
50
  // const id = ulid()
48
51
  const fullItem = defu(item, { id: ulid() })
@@ -552,7 +555,7 @@ export default () => {
552
555
  components.clear()
553
556
  deletableCache.clear()
554
557
  unref(caches).splice(0)
555
- pageShown.value = true
558
+ pageShown.value = false
556
559
  }
557
560
  const setMaxSize = (size: number) => {
558
561
  max = size