vue-stack-tabs 0.1.31 → 0.1.33

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,8 +1,8 @@
1
- var _n = Object.defineProperty;
2
- var Tn = (e, t, n) => t in e ? _n(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var yt = (e, t, n) => (Tn(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import { inject as at, ref as $, reactive as Ie, readonly as wt, toRaw as xn, defineComponent as Q, openBlock as z, createElementBlock as P, createCommentVNode as ne, createElementVNode as K, unref as x, nextTick as de, onMounted as qe, onDeactivated as Sn, onActivated as On, onUnmounted as Ge, createVNode as N, resolveComponent as Zt, normalizeClass as ce, withModifiers as we, toDisplayString as Xt, normalizeStyle as ct, Fragment as He, renderList as lt, createBlock as ve, computed as ge, renderSlot as ke, watch as En, withDirectives as Yt, vShow as Jt, withCtx as ae, TransitionGroup as Kt, mergeProps as An, Transition as Qt, provide as In, onBeforeMount as Bn, onBeforeUnmount as Cn, KeepAlive as Mn, resolveDynamicComponent as Ln, getCurrentInstance as en } from "vue";
5
- import { useRouter as ut, useRoute as zn } from "vue-router";
1
+ var wn = Object.defineProperty;
2
+ var Tn = (e, t, n) => t in e ? wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var kt = (e, t, n) => (Tn(e, typeof t != "symbol" ? t + "" : t, n), n);
4
+ import { inject as lt, ref as R, reactive as Ae, readonly as wt, toRaw as xn, defineComponent as Q, openBlock as z, createElementBlock as j, createCommentVNode as re, createElementVNode as K, unref as S, nextTick as de, onMounted as qe, onDeactivated as Sn, onActivated as On, onUnmounted as Ge, createVNode as N, resolveComponent as Yt, normalizeClass as ce, withModifiers as _e, toDisplayString as Jt, normalizeStyle as ut, Fragment as He, renderList as ft, createBlock as me, computed as ge, renderSlot as ke, watch as En, withDirectives as Kt, vShow as Qt, withCtx as ae, TransitionGroup as en, mergeProps as An, Transition as tn, provide as In, onBeforeMount as Bn, onBeforeUnmount as Cn, KeepAlive as Mn, resolveDynamicComponent as Ln, getCurrentInstance as nn } from "vue";
5
+ import { useRouter as dt, useRoute as zn } from "vue-router";
6
6
  const $n = {
7
7
  VueStackTab: {
8
8
  close: "close",
@@ -64,7 +64,7 @@ function Vn(e) {
64
64
  }
65
65
  return Un(n) ? n : [];
66
66
  }
67
- function kt(e, t) {
67
+ function Tt(e, t) {
68
68
  if (!jn(e))
69
69
  return "";
70
70
  const n = Vn(t);
@@ -96,17 +96,17 @@ function qn(e, t) {
96
96
  e = e.replace(`{${n}}`, String(t[n]));
97
97
  return e;
98
98
  }
99
- function tn(e, t) {
99
+ function rn(e, t) {
100
100
  return Object.keys(t).forEach((n) => {
101
- t[n] instanceof Object && n in e && (t[n] = { ...t[n], ...tn(e[n], t[n]) });
101
+ t[n] instanceof Object && n in e && (t[n] = { ...t[n], ...rn(e[n], t[n]) });
102
102
  }), { ...e || {}, ...t };
103
103
  }
104
- const Gn = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol", Hn = (e) => Gn ? Symbol(e) : "_vt_" + e, nn = /* @__PURE__ */ Hn("i18n");
105
- function Ze() {
106
- return at(nn);
104
+ const Gn = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol", Hn = (e) => Gn ? Symbol(e) : "_vt_" + e, sn = /* @__PURE__ */ Hn("i18n");
105
+ function Be() {
106
+ return lt(sn);
107
107
  }
108
108
  function Zn(e) {
109
- const t = Object.assign({ locale: "en", fallbackLocale: "en", messages: {} }, e), n = $(t.locale), r = Ie({});
109
+ const t = Object.assign({ locale: "en", fallbackLocale: "en", messages: {} }, e), n = R(t.locale), r = Ae({});
110
110
  return Object.entries(t.messages).forEach(([s, o]) => {
111
111
  r[s] = o;
112
112
  }), {
@@ -114,10 +114,10 @@ function Zn(e) {
114
114
  if (!s)
115
115
  return "";
116
116
  const i = typeof o == "string" && o ? o : n.value;
117
- let u = kt(r[i], s) || kt(r[t.fallbackLocale], s);
117
+ let u = Tt(r[i], s) || Tt(r[t.fallbackLocale], s);
118
118
  if (o && typeof o != "string") {
119
- const c = Fn(u, o);
120
- Wn(c) || (u = qn(u, c));
119
+ const a = Fn(u, o);
120
+ Wn(a) || (u = qn(u, a));
121
121
  }
122
122
  return u || s;
123
123
  },
@@ -125,13 +125,13 @@ function Zn(e) {
125
125
  options: wt(e || {}),
126
126
  install(s) {
127
127
  const o = this;
128
- s.config.globalProperties.$t = o.t, s.provide(nn, o);
128
+ s.config.globalProperties.$t = o.t, s.provide(sn, o);
129
129
  },
130
130
  changeLocale(s) {
131
131
  n.value = s;
132
132
  },
133
133
  setLocaleMessage(s, o) {
134
- r[s] = tn(xn(r[s] || {}), o);
134
+ r[s] = rn(xn(r[s] || {}), o);
135
135
  },
136
136
  getLocaleMessage(s) {
137
137
  return r[s] || {};
@@ -167,7 +167,7 @@ const Xn = () => {
167
167
  });
168
168
  }
169
169
  };
170
- }, rn = ({
170
+ }, on = ({
171
171
  wrap: e,
172
172
  left: t = 0,
173
173
  top: n = 0,
@@ -191,21 +191,21 @@ function Yn({
191
191
  else {
192
192
  const { offsetLeft: s, offsetTop: o } = e;
193
193
  let i, u;
194
- n === "center" ? u = o + (e.clientHeight - t.clientHeight) / 2 : u = o, r === "center" ? i = s + (e.clientWidth - t.clientWidth) / 2 : i = s, rn({ wrap: t, left: i, top: u });
194
+ n === "center" ? u = o + (e.clientHeight - t.clientHeight) / 2 : u = o, r === "center" ? i = s + (e.clientWidth - t.clientWidth) / 2 : i = s, on({ wrap: t, left: i, top: u });
195
195
  }
196
196
  }
197
- const sn = (e = ".stack-tab__container *") => {
197
+ const an = (e = ".stack-tab__container *") => {
198
198
  const t = Array.from(document.querySelectorAll(e)).map(
199
199
  (n) => +window.getComputedStyle(n).zIndex || 0
200
200
  );
201
201
  return t.length ? Math.max(...t.filter((n) => n < 9e4)) + 1 : 1;
202
202
  };
203
203
  var he = /* @__PURE__ */ ((e) => (e.WHEEL = "wheel", e.BUTTON = "button", e.BOTH = "both", e))(he || {});
204
- class Ye {
204
+ class Xe {
205
205
  //
206
206
  constructor(t) {
207
207
  // 存储的Map
208
- yt(this, "items");
208
+ kt(this, "items");
209
209
  if (this.items = /* @__PURE__ */ new Map(), t)
210
210
  for (const n of t)
211
211
  this.push(n);
@@ -274,11 +274,11 @@ class Ye {
274
274
  return Array.from(this.items.values());
275
275
  }
276
276
  }
277
- function Je(e) {
278
- if (!ft(e))
277
+ function Ye(e) {
278
+ if (!ht(e))
279
279
  throw new Error("Parameter was not an error");
280
280
  }
281
- function ft(e) {
281
+ function ht(e) {
282
282
  return Jn(e) === "[object Error]" || e instanceof Error;
283
283
  }
284
284
  function Jn(e) {
@@ -288,7 +288,7 @@ function Kn(e) {
288
288
  let t, n = "";
289
289
  if (e.length === 0)
290
290
  t = {};
291
- else if (ft(e[0]))
291
+ else if (ht(e[0]))
292
292
  t = {
293
293
  cause: e[0]
294
294
  }, n = e.slice(1).join(" ") || "";
@@ -303,7 +303,7 @@ function Kn(e) {
303
303
  shortMessage: n
304
304
  };
305
305
  }
306
- class Z extends Error {
306
+ class H extends Error {
307
307
  constructor(t, n) {
308
308
  const r = [...arguments], { options: s, shortMessage: o } = Kn(r);
309
309
  let i = o;
@@ -313,28 +313,28 @@ class Z extends Error {
313
313
  }
314
314
  }
315
315
  static cause(t) {
316
- return Je(t), t._cause && ft(t._cause) ? t._cause : null;
316
+ return Ye(t), t._cause && ht(t._cause) ? t._cause : null;
317
317
  }
318
318
  static fullStack(t) {
319
- Je(t);
320
- const n = Z.cause(t);
319
+ Ye(t);
320
+ const n = H.cause(t);
321
321
  return n ? `${t.stack}
322
- caused by: ${Z.fullStack(n)}` : t.stack;
322
+ caused by: ${H.fullStack(n)}` : t.stack;
323
323
  }
324
324
  static info(t) {
325
- Je(t);
326
- const n = {}, r = Z.cause(t);
327
- return r && Object.assign(n, Z.info(r)), t._info && Object.assign(n, t._info), n;
325
+ Ye(t);
326
+ const n = {}, r = H.cause(t);
327
+ return r && Object.assign(n, H.info(r)), t._info && Object.assign(n, t._info), n;
328
328
  }
329
329
  cause() {
330
- return Z.cause(this);
330
+ return H.cause(this);
331
331
  }
332
332
  toString() {
333
333
  let t = this.name || this.constructor.name || this.constructor.prototype.name;
334
334
  return this.message && (t = `${t}: ${this.message}`), t;
335
335
  }
336
336
  }
337
- const on = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", Oe = 32, _t = 281474976710655, Qn = 10, er = 16, xe = Object.freeze({
337
+ const cn = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", Se = 32, xt = 281474976710655, Qn = 10, er = 16, Te = Object.freeze({
338
338
  source: "ulid"
339
339
  });
340
340
  function tr(e) {
@@ -346,10 +346,10 @@ function tr(e) {
346
346
  };
347
347
  if (typeof (n == null ? void 0 : n.randomBytes) == "function")
348
348
  return () => n.randomBytes(1).readUInt8() / 255;
349
- throw new Z({
349
+ throw new H({
350
350
  info: {
351
351
  code: "PRNG_DETECT",
352
- ...xe
352
+ ...Te
353
353
  }
354
354
  }, "Failed to find a reliable PRNG");
355
355
  }
@@ -364,238 +364,238 @@ function rr(e, t) {
364
364
  }
365
365
  function sr(e, t) {
366
366
  if (isNaN(e))
367
- throw new Z({
367
+ throw new H({
368
368
  info: {
369
369
  code: "ENC_TIME_NAN",
370
- ...xe
370
+ ...Te
371
371
  }
372
372
  }, `Time must be a number: ${e}`);
373
- if (e > _t)
374
- throw new Z({
373
+ if (e > xt)
374
+ throw new H({
375
375
  info: {
376
376
  code: "ENC_TIME_SIZE_EXCEED",
377
- ...xe
377
+ ...Te
378
378
  }
379
- }, `Cannot encode a time larger than ${_t}: ${e}`);
379
+ }, `Cannot encode a time larger than ${xt}: ${e}`);
380
380
  if (e < 0)
381
- throw new Z({
381
+ throw new H({
382
382
  info: {
383
383
  code: "ENC_TIME_NEG",
384
- ...xe
384
+ ...Te
385
385
  }
386
386
  }, `Time must be positive: ${e}`);
387
387
  if (Number.isInteger(e) === !1)
388
- throw new Z({
388
+ throw new H({
389
389
  info: {
390
390
  code: "ENC_TIME_TYPE",
391
- ...xe
391
+ ...Te
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 % Oe, r = on.charAt(n) + r, e = (e - n) / Oe;
396
+ n = e % Se, r = cn.charAt(n) + r, e = (e - n) / Se;
397
397
  return r;
398
398
  }
399
399
  function or() {
400
400
  return typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope;
401
401
  }
402
402
  function ir(e) {
403
- let t = Math.floor(e() * Oe);
404
- return t === Oe && (t = Oe - 1), on.charAt(t);
403
+ let t = Math.floor(e() * Se);
404
+ return t === Se && (t = Se - 1), cn.charAt(t);
405
405
  }
406
- function an(e, t) {
406
+ function nt(e, t) {
407
407
  const n = t || tr(), r = isNaN(e) ? Date.now() : e;
408
408
  return sr(r, Qn) + rr(er, n);
409
409
  }
410
- var dt = { exports: {} };
411
- dt.exports;
410
+ var pt = { exports: {} };
411
+ pt.exports;
412
412
  (function(e) {
413
413
  var t = function() {
414
414
  var n = String.fromCharCode, r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$", o = {};
415
- function i(c, l) {
416
- if (!o[c]) {
417
- o[c] = {};
418
- for (var h = 0; h < c.length; h++)
419
- o[c][c.charAt(h)] = h;
415
+ function i(a, c) {
416
+ if (!o[a]) {
417
+ o[a] = {};
418
+ for (var h = 0; h < a.length; h++)
419
+ o[a][a.charAt(h)] = h;
420
420
  }
421
- return o[c][l];
421
+ return o[a][c];
422
422
  }
423
423
  var u = {
424
- compressToBase64: function(c) {
425
- if (c == null)
424
+ compressToBase64: function(a) {
425
+ if (a == null)
426
426
  return "";
427
- var l = u._compress(c, 6, function(h) {
427
+ var c = u._compress(a, 6, function(h) {
428
428
  return r.charAt(h);
429
429
  });
430
- switch (l.length % 4) {
430
+ switch (c.length % 4) {
431
431
  default:
432
432
  case 0:
433
- return l;
433
+ return c;
434
434
  case 1:
435
- return l + "===";
435
+ return c + "===";
436
436
  case 2:
437
- return l + "==";
437
+ return c + "==";
438
438
  case 3:
439
- return l + "=";
439
+ return c + "=";
440
440
  }
441
441
  },
442
- decompressFromBase64: function(c) {
443
- return c == null ? "" : c == "" ? null : u._decompress(c.length, 32, function(l) {
444
- return i(r, c.charAt(l));
442
+ decompressFromBase64: function(a) {
443
+ return a == null ? "" : a == "" ? null : u._decompress(a.length, 32, function(c) {
444
+ return i(r, a.charAt(c));
445
445
  });
446
446
  },
447
- compressToUTF16: function(c) {
448
- return c == null ? "" : u._compress(c, 15, function(l) {
449
- return n(l + 32);
447
+ compressToUTF16: function(a) {
448
+ return a == null ? "" : u._compress(a, 15, function(c) {
449
+ return n(c + 32);
450
450
  }) + " ";
451
451
  },
452
- decompressFromUTF16: function(c) {
453
- return c == null ? "" : c == "" ? null : u._decompress(c.length, 16384, function(l) {
454
- return c.charCodeAt(l) - 32;
452
+ decompressFromUTF16: function(a) {
453
+ return a == null ? "" : a == "" ? null : u._decompress(a.length, 16384, function(c) {
454
+ return a.charCodeAt(c) - 32;
455
455
  });
456
456
  },
457
457
  //compress into uint8array (UCS-2 big endian format)
458
- compressToUint8Array: function(c) {
459
- for (var l = u.compress(c), h = new Uint8Array(l.length * 2), f = 0, d = l.length; f < d; f++) {
460
- var w = l.charCodeAt(f);
461
- h[f * 2] = w >>> 8, h[f * 2 + 1] = w % 256;
458
+ compressToUint8Array: function(a) {
459
+ for (var c = u.compress(a), h = new Uint8Array(c.length * 2), f = 0, d = c.length; f < d; f++) {
460
+ var g = c.charCodeAt(f);
461
+ h[f * 2] = g >>> 8, h[f * 2 + 1] = g % 256;
462
462
  }
463
463
  return h;
464
464
  },
465
465
  //decompress from uint8array (UCS-2 big endian format)
466
- decompressFromUint8Array: function(c) {
467
- if (c == null)
468
- return u.decompress(c);
469
- for (var l = new Array(c.length / 2), h = 0, f = l.length; h < f; h++)
470
- l[h] = c[h * 2] * 256 + c[h * 2 + 1];
466
+ decompressFromUint8Array: function(a) {
467
+ if (a == null)
468
+ return u.decompress(a);
469
+ for (var c = new Array(a.length / 2), h = 0, f = c.length; h < f; h++)
470
+ c[h] = a[h * 2] * 256 + a[h * 2 + 1];
471
471
  var d = [];
472
- return l.forEach(function(w) {
473
- d.push(n(w));
472
+ return c.forEach(function(g) {
473
+ d.push(n(g));
474
474
  }), u.decompress(d.join(""));
475
475
  },
476
476
  //compress into a string that is already URI encoded
477
- compressToEncodedURIComponent: function(c) {
478
- return c == null ? "" : u._compress(c, 6, function(l) {
479
- return s.charAt(l);
477
+ compressToEncodedURIComponent: function(a) {
478
+ return a == null ? "" : u._compress(a, 6, function(c) {
479
+ return s.charAt(c);
480
480
  });
481
481
  },
482
482
  //decompress from an output of compressToEncodedURIComponent
483
- decompressFromEncodedURIComponent: function(c) {
484
- return c == null ? "" : c == "" ? null : (c = c.replace(/ /g, "+"), u._decompress(c.length, 32, function(l) {
485
- return i(s, c.charAt(l));
483
+ decompressFromEncodedURIComponent: function(a) {
484
+ return a == null ? "" : a == "" ? null : (a = a.replace(/ /g, "+"), u._decompress(a.length, 32, function(c) {
485
+ return i(s, a.charAt(c));
486
486
  }));
487
487
  },
488
- compress: function(c) {
489
- return u._compress(c, 16, function(l) {
490
- return n(l);
488
+ compress: function(a) {
489
+ return u._compress(a, 16, function(c) {
490
+ return n(c);
491
491
  });
492
492
  },
493
- _compress: function(c, l, h) {
494
- if (c == null)
493
+ _compress: function(a, c, h) {
494
+ if (a == null)
495
495
  return "";
496
- var f, d, w = {}, S = {}, B = "", I = "", T = "", _ = 2, k = 3, m = 2, O = [], a = 0, b = 0, y;
497
- for (y = 0; y < c.length; y += 1)
498
- if (B = c.charAt(y), Object.prototype.hasOwnProperty.call(w, B) || (w[B] = k++, S[B] = !0), I = T + B, Object.prototype.hasOwnProperty.call(w, I))
496
+ var f, d, g = {}, O = {}, B = "", I = "", T = "", k = 2, w = 3, y = 2, x = [], l = 0, v = 0, _;
497
+ for (_ = 0; _ < a.length; _ += 1)
498
+ if (B = a.charAt(_), Object.prototype.hasOwnProperty.call(g, B) || (g[B] = w++, O[B] = !0), I = T + B, Object.prototype.hasOwnProperty.call(g, I))
499
499
  T = I;
500
500
  else {
501
- if (Object.prototype.hasOwnProperty.call(S, T)) {
501
+ if (Object.prototype.hasOwnProperty.call(O, T)) {
502
502
  if (T.charCodeAt(0) < 256) {
503
- for (f = 0; f < m; f++)
504
- a = a << 1, b == l - 1 ? (b = 0, O.push(h(a)), a = 0) : b++;
503
+ for (f = 0; f < y; f++)
504
+ l = l << 1, v == c - 1 ? (v = 0, x.push(h(l)), l = 0) : v++;
505
505
  for (d = T.charCodeAt(0), f = 0; f < 8; f++)
506
- a = a << 1 | d & 1, b == l - 1 ? (b = 0, O.push(h(a)), a = 0) : b++, d = d >> 1;
506
+ l = l << 1 | d & 1, v == c - 1 ? (v = 0, x.push(h(l)), l = 0) : v++, d = d >> 1;
507
507
  } else {
508
- for (d = 1, f = 0; f < m; f++)
509
- a = a << 1 | d, b == l - 1 ? (b = 0, O.push(h(a)), a = 0) : b++, d = 0;
508
+ for (d = 1, f = 0; f < y; f++)
509
+ l = l << 1 | d, v == c - 1 ? (v = 0, x.push(h(l)), l = 0) : v++, d = 0;
510
510
  for (d = T.charCodeAt(0), f = 0; f < 16; f++)
511
- a = a << 1 | d & 1, b == l - 1 ? (b = 0, O.push(h(a)), a = 0) : b++, d = d >> 1;
511
+ l = l << 1 | d & 1, v == c - 1 ? (v = 0, x.push(h(l)), l = 0) : v++, d = d >> 1;
512
512
  }
513
- _--, _ == 0 && (_ = Math.pow(2, m), m++), delete S[T];
513
+ k--, k == 0 && (k = Math.pow(2, y), y++), delete O[T];
514
514
  } else
515
- for (d = w[T], f = 0; f < m; f++)
516
- a = a << 1 | d & 1, b == l - 1 ? (b = 0, O.push(h(a)), a = 0) : b++, d = d >> 1;
517
- _--, _ == 0 && (_ = Math.pow(2, m), m++), w[I] = k++, T = String(B);
515
+ for (d = g[T], f = 0; f < y; f++)
516
+ l = l << 1 | d & 1, v == c - 1 ? (v = 0, x.push(h(l)), l = 0) : v++, d = d >> 1;
517
+ k--, k == 0 && (k = Math.pow(2, y), y++), g[I] = w++, T = String(B);
518
518
  }
519
519
  if (T !== "") {
520
- if (Object.prototype.hasOwnProperty.call(S, T)) {
520
+ if (Object.prototype.hasOwnProperty.call(O, T)) {
521
521
  if (T.charCodeAt(0) < 256) {
522
- for (f = 0; f < m; f++)
523
- a = a << 1, b == l - 1 ? (b = 0, O.push(h(a)), a = 0) : b++;
522
+ for (f = 0; f < y; f++)
523
+ l = l << 1, v == c - 1 ? (v = 0, x.push(h(l)), l = 0) : v++;
524
524
  for (d = T.charCodeAt(0), f = 0; f < 8; f++)
525
- a = a << 1 | d & 1, b == l - 1 ? (b = 0, O.push(h(a)), a = 0) : b++, d = d >> 1;
525
+ l = l << 1 | d & 1, v == c - 1 ? (v = 0, x.push(h(l)), l = 0) : v++, d = d >> 1;
526
526
  } else {
527
- for (d = 1, f = 0; f < m; f++)
528
- a = a << 1 | d, b == l - 1 ? (b = 0, O.push(h(a)), a = 0) : b++, d = 0;
527
+ for (d = 1, f = 0; f < y; f++)
528
+ l = l << 1 | d, v == c - 1 ? (v = 0, x.push(h(l)), l = 0) : v++, d = 0;
529
529
  for (d = T.charCodeAt(0), f = 0; f < 16; f++)
530
- a = a << 1 | d & 1, b == l - 1 ? (b = 0, O.push(h(a)), a = 0) : b++, d = d >> 1;
530
+ l = l << 1 | d & 1, v == c - 1 ? (v = 0, x.push(h(l)), l = 0) : v++, d = d >> 1;
531
531
  }
532
- _--, _ == 0 && (_ = Math.pow(2, m), m++), delete S[T];
532
+ k--, k == 0 && (k = Math.pow(2, y), y++), delete O[T];
533
533
  } else
534
- for (d = w[T], f = 0; f < m; f++)
535
- a = a << 1 | d & 1, b == l - 1 ? (b = 0, O.push(h(a)), a = 0) : b++, d = d >> 1;
536
- _--, _ == 0 && (_ = Math.pow(2, m), m++);
534
+ for (d = g[T], f = 0; f < y; f++)
535
+ l = l << 1 | d & 1, v == c - 1 ? (v = 0, x.push(h(l)), l = 0) : v++, d = d >> 1;
536
+ k--, k == 0 && (k = Math.pow(2, y), y++);
537
537
  }
538
- for (d = 2, f = 0; f < m; f++)
539
- a = a << 1 | d & 1, b == l - 1 ? (b = 0, O.push(h(a)), a = 0) : b++, d = d >> 1;
538
+ for (d = 2, f = 0; f < y; f++)
539
+ l = l << 1 | d & 1, v == c - 1 ? (v = 0, x.push(h(l)), l = 0) : v++, d = d >> 1;
540
540
  for (; ; )
541
- if (a = a << 1, b == l - 1) {
542
- O.push(h(a));
541
+ if (l = l << 1, v == c - 1) {
542
+ x.push(h(l));
543
543
  break;
544
544
  } else
545
- b++;
546
- return O.join("");
545
+ v++;
546
+ return x.join("");
547
547
  },
548
- decompress: function(c) {
549
- return c == null ? "" : c == "" ? null : u._decompress(c.length, 32768, function(l) {
550
- return c.charCodeAt(l);
548
+ decompress: function(a) {
549
+ return a == null ? "" : a == "" ? null : u._decompress(a.length, 32768, function(c) {
550
+ return a.charCodeAt(c);
551
551
  });
552
552
  },
553
- _decompress: function(c, l, h) {
554
- var f = [], d = 4, w = 4, S = 3, B = "", I = [], T, _, k, m, O, a, b, y = { val: h(0), position: l, index: 1 };
553
+ _decompress: function(a, c, h) {
554
+ var f = [], d = 4, g = 4, O = 3, B = "", I = [], T, k, w, y, x, l, v, _ = { val: h(0), position: c, index: 1 };
555
555
  for (T = 0; T < 3; T += 1)
556
556
  f[T] = T;
557
- for (k = 0, O = Math.pow(2, 2), a = 1; a != O; )
558
- m = y.val & y.position, y.position >>= 1, y.position == 0 && (y.position = l, y.val = h(y.index++)), k |= (m > 0 ? 1 : 0) * a, a <<= 1;
559
- switch (k) {
557
+ for (w = 0, x = Math.pow(2, 2), l = 1; l != x; )
558
+ y = _.val & _.position, _.position >>= 1, _.position == 0 && (_.position = c, _.val = h(_.index++)), w |= (y > 0 ? 1 : 0) * l, l <<= 1;
559
+ switch (w) {
560
560
  case 0:
561
- for (k = 0, O = Math.pow(2, 8), a = 1; a != O; )
562
- m = y.val & y.position, y.position >>= 1, y.position == 0 && (y.position = l, y.val = h(y.index++)), k |= (m > 0 ? 1 : 0) * a, a <<= 1;
563
- b = n(k);
561
+ for (w = 0, x = Math.pow(2, 8), l = 1; l != x; )
562
+ y = _.val & _.position, _.position >>= 1, _.position == 0 && (_.position = c, _.val = h(_.index++)), w |= (y > 0 ? 1 : 0) * l, l <<= 1;
563
+ v = n(w);
564
564
  break;
565
565
  case 1:
566
- for (k = 0, O = Math.pow(2, 16), a = 1; a != O; )
567
- m = y.val & y.position, y.position >>= 1, y.position == 0 && (y.position = l, y.val = h(y.index++)), k |= (m > 0 ? 1 : 0) * a, a <<= 1;
568
- b = n(k);
566
+ for (w = 0, x = Math.pow(2, 16), l = 1; l != x; )
567
+ y = _.val & _.position, _.position >>= 1, _.position == 0 && (_.position = c, _.val = h(_.index++)), w |= (y > 0 ? 1 : 0) * l, l <<= 1;
568
+ v = n(w);
569
569
  break;
570
570
  case 2:
571
571
  return "";
572
572
  }
573
- for (f[3] = b, _ = b, I.push(b); ; ) {
574
- if (y.index > c)
573
+ for (f[3] = v, k = v, I.push(v); ; ) {
574
+ if (_.index > a)
575
575
  return "";
576
- for (k = 0, O = Math.pow(2, S), a = 1; a != O; )
577
- m = y.val & y.position, y.position >>= 1, y.position == 0 && (y.position = l, y.val = h(y.index++)), k |= (m > 0 ? 1 : 0) * a, a <<= 1;
578
- switch (b = k) {
576
+ for (w = 0, x = Math.pow(2, O), l = 1; l != x; )
577
+ y = _.val & _.position, _.position >>= 1, _.position == 0 && (_.position = c, _.val = h(_.index++)), w |= (y > 0 ? 1 : 0) * l, l <<= 1;
578
+ switch (v = w) {
579
579
  case 0:
580
- for (k = 0, O = Math.pow(2, 8), a = 1; a != O; )
581
- m = y.val & y.position, y.position >>= 1, y.position == 0 && (y.position = l, y.val = h(y.index++)), k |= (m > 0 ? 1 : 0) * a, a <<= 1;
582
- f[w++] = n(k), b = w - 1, d--;
580
+ for (w = 0, x = Math.pow(2, 8), l = 1; l != x; )
581
+ y = _.val & _.position, _.position >>= 1, _.position == 0 && (_.position = c, _.val = h(_.index++)), w |= (y > 0 ? 1 : 0) * l, l <<= 1;
582
+ f[g++] = n(w), v = g - 1, d--;
583
583
  break;
584
584
  case 1:
585
- for (k = 0, O = Math.pow(2, 16), a = 1; a != O; )
586
- m = y.val & y.position, y.position >>= 1, y.position == 0 && (y.position = l, y.val = h(y.index++)), k |= (m > 0 ? 1 : 0) * a, a <<= 1;
587
- f[w++] = n(k), b = w - 1, d--;
585
+ for (w = 0, x = Math.pow(2, 16), l = 1; l != x; )
586
+ y = _.val & _.position, _.position >>= 1, _.position == 0 && (_.position = c, _.val = h(_.index++)), w |= (y > 0 ? 1 : 0) * l, l <<= 1;
587
+ f[g++] = n(w), v = g - 1, d--;
588
588
  break;
589
589
  case 2:
590
590
  return I.join("");
591
591
  }
592
- if (d == 0 && (d = Math.pow(2, S), S++), f[b])
593
- B = f[b];
594
- else if (b === w)
595
- B = _ + _.charAt(0);
592
+ if (d == 0 && (d = Math.pow(2, O), O++), f[v])
593
+ B = f[v];
594
+ else if (v === g)
595
+ B = k + k.charAt(0);
596
596
  else
597
597
  return null;
598
- I.push(B), f[w++] = _ + B.charAt(0), d--, _ = B, d == 0 && (d = Math.pow(2, S), S++);
598
+ I.push(B), f[g++] = k + B.charAt(0), d--, k = B, d == 0 && (d = Math.pow(2, O), O++);
599
599
  }
600
600
  }
601
601
  };
@@ -604,13 +604,13 @@ dt.exports;
604
604
  e != null ? e.exports = t : typeof angular < "u" && angular != null && angular.module("LZString", []).factory("LZString", function() {
605
605
  return t;
606
606
  });
607
- })(dt);
608
- var cn = dt.exports;
609
- const ar = new TextEncoder(), cr = new TextDecoder("utf-8", { ignoreBOM: !0 }), Tt = {
607
+ })(pt);
608
+ var ln = pt.exports;
609
+ const ar = new TextEncoder(), cr = new TextDecoder("utf-8", { ignoreBOM: !0 }), St = {
610
610
  /* API */
611
611
  encode: (e) => ar.encode(e),
612
612
  decode: (e) => cr.decode(e)
613
- }, ln = (() => {
613
+ }, un = (() => {
614
614
  const t = [..."0123456789abcdef"], n = new Array(256);
615
615
  for (let r = 0; r < 256; r++)
616
616
  n[r] = `${t[r >>> 4 & 15]}${t[r & 15]}`;
@@ -618,56 +618,56 @@ const ar = new TextEncoder(), cr = new TextDecoder("utf-8", { ignoreBOM: !0 }),
618
618
  })(), lr = (() => {
619
619
  const e = {};
620
620
  for (let t = 0; t < 256; t++) {
621
- const n = ln[t], r = n[0], s = r.toUpperCase(), o = n[1], i = o.toUpperCase();
621
+ const n = un[t], r = n[0], s = r.toUpperCase(), o = n[1], i = o.toUpperCase();
622
622
  e[n] = t, e[`${r}${i}`] = t, e[`${s}${o}`] = t, e[`${s}${i}`] = t;
623
623
  }
624
624
  return e;
625
- })(), ur = (e) => !(e.length % 2 || !/^[a-fA-F0-9]*$/.test(e)), nt = {
625
+ })(), ur = (e) => !(e.length % 2 || !/^[a-fA-F0-9]*$/.test(e)), rt = {
626
626
  /* API */
627
627
  encode: (e) => {
628
628
  let t = "";
629
629
  for (let n = 0, r = e.length; n < r; n++)
630
- t += ln[e[n]];
630
+ t += un[e[n]];
631
631
  return t;
632
632
  },
633
- encodeStr: (e) => nt.encode(Tt.encode(e)),
633
+ encodeStr: (e) => rt.encode(St.encode(e)),
634
634
  decode: (e) => {
635
635
  const t = e.length / 2, n = new Uint8Array(t);
636
636
  for (let r = 0; r < t; r++)
637
637
  n[r] = lr[e.slice(r * 2, r * 2 + 2)];
638
638
  return n;
639
639
  },
640
- decodeStr: (e) => Tt.decode(nt.decode(e)),
640
+ decodeStr: (e) => St.decode(rt.decode(e)),
641
641
  is: ur
642
642
  };
643
- function Ee(e) {
643
+ function Oe(e) {
644
644
  if (!Number.isSafeInteger(e) || e < 0)
645
645
  throw new Error(`Wrong positive integer: ${e}`);
646
646
  }
647
647
  function fr(e) {
648
648
  return e instanceof Uint8Array || e != null && typeof e == "object" && e.constructor.name === "Uint8Array";
649
649
  }
650
- function un(e, ...t) {
650
+ function fn(e, ...t) {
651
651
  if (!fr(e))
652
652
  throw new Error("Expected Uint8Array");
653
653
  if (t.length > 0 && !t.includes(e.length))
654
654
  throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`);
655
655
  }
656
- function rt(e, t = !0) {
656
+ function st(e, t = !0) {
657
657
  if (e.destroyed)
658
658
  throw new Error("Hash instance has been destroyed");
659
659
  if (t && e.finished)
660
660
  throw new Error("Hash#digest() has already been called");
661
661
  }
662
- function fn(e, t) {
663
- un(e);
662
+ function dn(e, t) {
663
+ fn(e);
664
664
  const n = t.outputLen;
665
665
  if (e.length < n)
666
666
  throw new Error(`digestInto() expects output buffer of length at least ${n}`);
667
667
  }
668
- const ze = /* @__PURE__ */ BigInt(2 ** 32 - 1), xt = /* @__PURE__ */ BigInt(32);
669
- function St(e, t = !1) {
670
- return t ? { h: Number(e & ze), l: Number(e >> xt & ze) } : { h: Number(e >> xt & ze) | 0, l: Number(e & ze) | 0 };
668
+ const ze = /* @__PURE__ */ BigInt(2 ** 32 - 1), Ot = /* @__PURE__ */ BigInt(32);
669
+ function Et(e, t = !1) {
670
+ return t ? { h: Number(e & ze), l: Number(e >> Ot & ze) } : { h: Number(e >> Ot & ze) | 0, l: Number(e & ze) | 0 };
671
671
  }
672
672
  /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
673
673
  const dr = (e) => new Uint8Array(e.buffer, e.byteOffset, e.byteLength), We = (e) => new Uint32Array(e.buffer, e.byteOffset, Math.floor(e.byteLength / 4));
@@ -682,24 +682,24 @@ function br(e) {
682
682
  throw new Error(`utf8ToBytes expected string, got ${typeof e}`);
683
683
  return new Uint8Array(new TextEncoder().encode(e));
684
684
  }
685
- function ht(e) {
685
+ function bt(e) {
686
686
  if (typeof e == "string" && (e = br(e)), !hr(e))
687
687
  throw new Error(`expected Uint8Array, got ${typeof e}`);
688
688
  return e;
689
689
  }
690
- class vr {
690
+ class mr {
691
691
  // Safe version that clones internal state
692
692
  clone() {
693
693
  return this._cloneInto();
694
694
  }
695
695
  }
696
- function mr(e) {
697
- const t = (r, s) => e(s).update(ht(r)).digest(), n = e({});
696
+ function vr(e) {
697
+ const t = (r, s) => e(s).update(bt(r)).digest(), n = e({});
698
698
  return t.outputLen = n.outputLen, t.blockLen = n.blockLen, t.create = (r) => e(r), t;
699
699
  }
700
- class gr extends vr {
700
+ class gr extends mr {
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, Ee(t), Ee(n), Ee(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, Oe(t), Oe(n), Oe(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`);
@@ -710,25 +710,25 @@ class gr extends vr {
710
710
  this.buffer32 = We(this.buffer = new Uint8Array(t));
711
711
  }
712
712
  update(t) {
713
- rt(this);
713
+ st(this);
714
714
  const { blockLen: n, buffer: r, buffer32: s } = this;
715
- t = ht(t);
715
+ t = bt(t);
716
716
  const o = t.length, i = t.byteOffset, u = t.buffer;
717
- for (let c = 0; c < o; ) {
717
+ for (let a = 0; a < o; ) {
718
718
  this.pos === n && (this.compress(s, 0, !1), this.pos = 0);
719
- const l = Math.min(n - this.pos, o - c), h = i + c;
720
- if (l === n && !(h % 4) && c + l < o) {
721
- const f = new Uint32Array(u, h, Math.floor((o - c) / 4));
722
- for (let d = 0; c + n < o; d += s.length, c += n)
719
+ const c = Math.min(n - this.pos, o - a), h = i + a;
720
+ if (c === n && !(h % 4) && a + c < o) {
721
+ const f = new Uint32Array(u, h, Math.floor((o - a) / 4));
722
+ for (let d = 0; a + n < o; d += s.length, a += n)
723
723
  this.length += n, this.compress(f, d, !1);
724
724
  continue;
725
725
  }
726
- r.set(t.subarray(c, c + l), this.pos), this.pos += l, this.length += l, c += l;
726
+ r.set(t.subarray(a, a + c), this.pos), this.pos += c, this.length += c, a += c;
727
727
  }
728
728
  return this;
729
729
  }
730
730
  digestInto(t) {
731
- rt(this), fn(t, this);
731
+ st(this), dn(t, this);
732
732
  const { pos: n, buffer32: r } = this;
733
733
  this.finished = !0, this.buffer.subarray(n).fill(0), this.compress(r, 0, !0);
734
734
  const s = We(t);
@@ -745,43 +745,43 @@ class gr extends vr {
745
745
  return t || (t = new this.constructor({ dkLen: i })), t.set(...this.get()), t.length = r, t.finished = s, t.destroyed = o, t.outputLen = i, t.buffer.set(n), t.pos = u, t;
746
746
  }
747
747
  }
748
- const ee = /* @__PURE__ */ new Uint32Array([1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225]);
749
- function re(e, t, n, r, s) {
748
+ const te = /* @__PURE__ */ new Uint32Array([1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225]);
749
+ function se(e, t, n, r, s) {
750
750
  return e = e + t + s | 0, r = Ue(r ^ e, 16), n = n + r | 0, t = Ue(t ^ n, 12), { a: e, b: t, c: n, d: r };
751
751
  }
752
- function se(e, t, n, r, s) {
752
+ function oe(e, t, n, r, s) {
753
753
  return e = e + t + s | 0, r = Ue(r ^ e, 8), n = n + r | 0, t = Ue(t ^ n, 7), { a: e, b: t, c: n, d: r };
754
754
  }
755
- function Ot(e, t, n, r, s, o, i, u, c, l, h, f, d, w, S, B, I, T, _, k) {
756
- let m = 0;
757
- for (let O = 0; O < r; O++)
758
- ({ a: s, b: c, c: d, d: I } = re(s, c, d, I, n[t + e[m++]])), { a: s, b: c, c: d, d: I } = se(s, c, d, I, n[t + e[m++]]), { a: o, b: l, c: w, d: T } = re(o, l, w, T, n[t + e[m++]]), { a: o, b: l, c: w, d: T } = se(o, l, w, T, n[t + e[m++]]), { a: i, b: h, c: S, d: _ } = re(i, h, S, _, n[t + e[m++]]), { a: i, b: h, c: S, d: _ } = se(i, h, S, _, n[t + e[m++]]), { a: u, b: f, c: B, d: k } = re(u, f, B, k, n[t + e[m++]]), { a: u, b: f, c: B, d: k } = se(u, f, B, k, n[t + e[m++]]), { a: s, b: l, c: S, d: k } = re(s, l, S, k, n[t + e[m++]]), { a: s, b: l, c: S, d: k } = se(s, l, S, k, n[t + e[m++]]), { a: o, b: h, c: B, d: I } = re(o, h, B, I, n[t + e[m++]]), { a: o, b: h, c: B, d: I } = se(o, h, B, I, n[t + e[m++]]), { a: i, b: f, c: d, d: T } = re(i, f, d, T, n[t + e[m++]]), { a: i, b: f, c: d, d: T } = se(i, f, d, T, n[t + e[m++]]), { a: u, b: c, c: w, d: _ } = re(u, c, w, _, n[t + e[m++]]), { a: u, b: c, c: w, d: _ } = se(u, c, w, _, n[t + e[m++]]);
759
- return { v0: s, v1: o, v2: i, v3: u, v4: c, v5: l, v6: h, v7: f, v8: d, v9: w, v10: S, v11: B, v12: I, v13: T, v14: _, v15: k };
755
+ function At(e, t, n, r, s, o, i, u, a, c, h, f, d, g, O, B, I, T, k, w) {
756
+ let y = 0;
757
+ for (let x = 0; x < r; x++)
758
+ ({ a: s, b: a, c: d, d: I } = se(s, a, d, I, n[t + e[y++]])), { a: s, b: a, c: d, d: I } = oe(s, a, d, I, n[t + e[y++]]), { a: o, b: c, c: g, d: T } = se(o, c, g, T, n[t + e[y++]]), { a: o, b: c, c: g, d: T } = oe(o, c, g, T, n[t + e[y++]]), { a: i, b: h, c: O, d: k } = se(i, h, O, k, n[t + e[y++]]), { a: i, b: h, c: O, d: k } = oe(i, h, O, k, n[t + e[y++]]), { a: u, b: f, c: B, d: w } = se(u, f, B, w, n[t + e[y++]]), { a: u, b: f, c: B, d: w } = oe(u, f, B, w, n[t + e[y++]]), { a: s, b: c, c: O, d: w } = se(s, c, O, w, n[t + e[y++]]), { a: s, b: c, c: O, d: w } = oe(s, c, O, w, n[t + e[y++]]), { a: o, b: h, c: B, d: I } = se(o, h, B, I, n[t + e[y++]]), { a: o, b: h, c: B, d: I } = oe(o, h, B, I, n[t + e[y++]]), { a: i, b: f, c: d, d: T } = se(i, f, d, T, n[t + e[y++]]), { a: i, b: f, c: d, d: T } = oe(i, f, d, T, n[t + e[y++]]), { a: u, b: a, c: g, d: k } = se(u, a, g, k, n[t + e[y++]]), { a: u, b: a, c: g, d: k } = oe(u, a, g, k, n[t + e[y++]]);
759
+ return { v0: s, v1: o, v2: i, v3: u, v4: a, v5: c, v6: h, v7: f, v8: d, v9: g, v10: O, v11: B, v12: I, v13: T, v14: k, v15: w };
760
760
  }
761
- const Et = /* @__PURE__ */ (() => {
761
+ const It = /* @__PURE__ */ (() => {
762
762
  const e = Array.from({ length: 16 }, (r, s) => s), t = (r) => [2, 6, 3, 10, 7, 0, 4, 13, 1, 11, 12, 5, 9, 14, 15, 8].map((s) => r[s]), n = [];
763
763
  for (let r = 0, s = e; r < 7; r++, s = t(s))
764
764
  n.push(...s);
765
765
  return Uint8Array.from(n);
766
766
  })();
767
- class pt extends gr {
767
+ class mt extends gr {
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, Ee(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, Oe(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
- const r = ht(t.key).slice();
772
+ const r = bt(t.key).slice();
773
773
  if (r.length !== 32)
774
774
  throw new Error("Blake3: key should be 32 byte");
775
775
  this.IV = We(r), this.flags = n | 16;
776
776
  } else if (t.context !== void 0) {
777
- const r = new pt(
777
+ const r = new mt(
778
778
  { dkLen: 32 },
779
779
  32
780
780
  /* Flags.DERIVE_KEY_CONTEXT */
781
781
  ).update(t.context).digest();
782
782
  this.IV = We(r), this.flags = n | 64;
783
783
  } else
784
- this.IV = ee.slice(), this.flags = n;
784
+ this.IV = te.slice(), this.flags = n;
785
785
  this.state = this.IV.slice(), this.bufferOut = dr(this.bufferOut32);
786
786
  }
787
787
  // Unused
@@ -791,8 +791,8 @@ class pt extends gr {
791
791
  set() {
792
792
  }
793
793
  b2Compress(t, n, r, s = 0) {
794
- const { state: o, pos: i } = this, { h: u, l: c } = St(BigInt(t), !0), { v0: l, v1: h, v2: f, v3: d, v4: w, v5: S, v6: B, v7: I, v8: T, v9: _, v10: k, v11: m, v12: O, v13: a, v14: b, v15: y } = Ot(Et, s, r, 7, o[0], o[1], o[2], o[3], o[4], o[5], o[6], o[7], ee[0], ee[1], ee[2], ee[3], u, c, i, n);
795
- o[0] = l ^ T, o[1] = h ^ _, o[2] = f ^ k, o[3] = d ^ m, o[4] = w ^ O, o[5] = S ^ a, o[6] = B ^ b, o[7] = I ^ y;
794
+ const { state: o, pos: i } = this, { h: u, l: a } = Et(BigInt(t), !0), { v0: c, v1: h, v2: f, v3: d, v4: g, v5: O, v6: B, v7: I, v8: T, v9: k, v10: w, v11: y, v12: x, v13: l, v14: v, v15: _ } = At(It, s, r, 7, o[0], o[1], o[2], o[3], o[4], o[5], o[6], o[7], te[0], te[1], te[2], te[3], u, a, i, n);
795
+ o[0] = c ^ T, o[1] = h ^ k, o[2] = f ^ w, o[3] = d ^ y, o[4] = g ^ x, o[5] = O ^ l, o[6] = B ^ v, o[7] = I ^ _;
796
796
  }
797
797
  compress(t, n = 0, r = !1) {
798
798
  let s = this.flags;
@@ -807,8 +807,8 @@ class pt extends gr {
807
807
  }
808
808
  _cloneInto(t) {
809
809
  t = super._cloneInto(t);
810
- const { IV: n, flags: r, state: s, chunkPos: o, posOut: i, chunkOut: u, stack: c, chunksDone: l } = this;
811
- return t.state.set(s.slice()), t.stack = c.map((h) => Uint32Array.from(h)), t.IV.set(n), t.flags = r, t.chunkPos = o, t.chunksDone = l, t.posOut = i, t.chunkOut = u, t.enableXOF = this.enableXOF, t.bufferOut32.set(this.bufferOut32), t;
810
+ const { IV: n, flags: r, state: s, chunkPos: o, posOut: i, chunkOut: u, stack: a, chunksDone: c } = this;
811
+ return t.state.set(s.slice()), t.stack = a.map((h) => Uint32Array.from(h)), t.IV.set(n), t.flags = r, t.chunkPos = o, t.chunksDone = c, t.posOut = i, t.chunkOut = u, t.enableXOF = this.enableXOF, t.bufferOut32.set(this.bufferOut32), t;
812
812
  }
813
813
  destroy() {
814
814
  this.destroyed = !0, this.state.fill(0), this.buffer32.fill(0), this.IV.fill(0), this.bufferOut32.fill(0);
@@ -817,8 +817,8 @@ class pt extends gr {
817
817
  }
818
818
  // Same as b2Compress, but doesn't modify state and returns 16 u32 array (instead of 8)
819
819
  b2CompressOut() {
820
- const { state: t, pos: n, flags: r, buffer32: s, bufferOut32: o } = this, { h: i, l: u } = St(BigInt(this.chunkOut++)), { v0: c, v1: l, v2: h, v3: f, v4: d, v5: w, v6: S, v7: B, v8: I, v9: T, v10: _, v11: k, v12: m, v13: O, v14: a, v15: b } = Ot(Et, 0, s, 7, t[0], t[1], t[2], t[3], t[4], t[5], t[6], t[7], ee[0], ee[1], ee[2], ee[3], u, i, n, r);
821
- o[0] = c ^ I, o[1] = l ^ T, o[2] = h ^ _, o[3] = f ^ k, o[4] = d ^ m, o[5] = w ^ O, o[6] = S ^ a, o[7] = B ^ b, o[8] = t[0] ^ I, o[9] = t[1] ^ T, o[10] = t[2] ^ _, o[11] = t[3] ^ k, o[12] = t[4] ^ m, o[13] = t[5] ^ O, o[14] = t[6] ^ a, o[15] = t[7] ^ b, this.posOut = 0;
820
+ const { state: t, pos: n, flags: r, buffer32: s, bufferOut32: o } = this, { h: i, l: u } = Et(BigInt(this.chunkOut++)), { v0: a, v1: c, v2: h, v3: f, v4: d, v5: g, v6: O, v7: B, v8: I, v9: T, v10: k, v11: w, v12: y, v13: x, v14: l, v15: v } = At(It, 0, s, 7, t[0], t[1], t[2], t[3], t[4], t[5], t[6], t[7], te[0], te[1], te[2], te[3], u, i, n, r);
821
+ o[0] = a ^ I, o[1] = c ^ T, o[2] = h ^ k, o[3] = f ^ w, o[4] = d ^ y, o[5] = g ^ x, o[6] = O ^ l, o[7] = B ^ v, o[8] = t[0] ^ I, o[9] = t[1] ^ T, o[10] = t[2] ^ k, o[11] = t[3] ^ w, o[12] = t[4] ^ y, o[13] = t[5] ^ x, o[14] = t[6] ^ l, o[15] = t[7] ^ v, this.posOut = 0;
822
822
  }
823
823
  finish() {
824
824
  if (this.finished)
@@ -828,7 +828,7 @@ class pt extends gr {
828
828
  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();
829
829
  }
830
830
  writeInto(t) {
831
- rt(this, !1), un(t), this.finish();
831
+ st(this, !1), fn(t), this.finish();
832
832
  const { blockLen: n, bufferOut: r } = this;
833
833
  for (let s = 0, o = t.length; s < o; ) {
834
834
  this.posOut >= n && this.b2CompressOut();
@@ -843,10 +843,10 @@ class pt extends gr {
843
843
  return this.writeInto(t);
844
844
  }
845
845
  xof(t) {
846
- return Ee(t), this.xofInto(new Uint8Array(t));
846
+ return Oe(t), this.xofInto(new Uint8Array(t));
847
847
  }
848
848
  digestInto(t) {
849
- if (fn(t, this), this.finished)
849
+ if (dn(t, this), this.finished)
850
850
  throw new Error("digest() was already called");
851
851
  return this.enableXOF = !1, this.writeInto(t), this.destroy(), t;
852
852
  }
@@ -854,11 +854,11 @@ class pt extends gr {
854
854
  return this.digestInto(new Uint8Array(this.outputLen));
855
855
  }
856
856
  }
857
- const yr = /* @__PURE__ */ mr((e) => new pt(e)), dn = (e) => {
857
+ const yr = /* @__PURE__ */ vr((e) => new mt(e)), ot = (e) => {
858
858
  const t = `${e.id}|${e.title}|${e.iframe ? "Y" : "N"}|${e.closable ? "Y" : "N"}|${e.refreshable ? "Y" : "N"}`;
859
- return cn.compressToEncodedURIComponent(t);
860
- }, wr = (e) => {
861
- const n = cn.decompressFromEncodedURIComponent(e).split("|");
859
+ return ln.compressToEncodedURIComponent(t);
860
+ }, _r = (e) => {
861
+ const n = ln.decompressFromEncodedURIComponent(e).split("|");
862
862
  return {
863
863
  id: n[0],
864
864
  title: n[1],
@@ -866,7 +866,7 @@ const yr = /* @__PURE__ */ mr((e) => new pt(e)), dn = (e) => {
866
866
  closable: n[3] === "Y",
867
867
  refreshable: n[4] === "Y"
868
868
  };
869
- }, At = (e, t, n) => {
869
+ }, Bt = (e, t, n) => {
870
870
  const r = [];
871
871
  for (const o in n)
872
872
  o.startsWith("__") || r.push({
@@ -878,23 +878,23 @@ const yr = /* @__PURE__ */ mr((e) => new pt(e)), dn = (e) => {
878
878
  return o.key > i.key ? u = 1 : o.key < i.key && (u = -1), u;
879
879
  });
880
880
  const s = yr(`${e}|${t}|${JSON.stringify(r)}`);
881
- return nt.encode(s);
881
+ return rt.encode(s);
882
882
  };
883
- function Ke(e) {
883
+ function Je(e) {
884
884
  if (e === null || typeof e != "object")
885
885
  return !1;
886
886
  const t = Object.getPrototypeOf(e);
887
887
  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;
888
888
  }
889
- function st(e, t, n = ".", r) {
890
- if (!Ke(t))
891
- return st(e, {}, n, r);
889
+ function it(e, t, n = ".", r) {
890
+ if (!Je(t))
891
+ return it(e, {}, n, r);
892
892
  const s = Object.assign({}, t);
893
893
  for (const o in e) {
894
894
  if (o === "__proto__" || o === "constructor")
895
895
  continue;
896
896
  const i = e[o];
897
- i != null && (r && r(s, o, i, n) || (Array.isArray(i) && Array.isArray(s[o]) ? s[o] = [...i, ...s[o]] : Ke(i) && Ke(s[o]) ? s[o] = st(
897
+ i != null && (r && r(s, o, i, n) || (Array.isArray(i) && Array.isArray(s[o]) ? s[o] = [...i, ...s[o]] : Je(i) && Je(s[o]) ? s[o] = it(
898
898
  i,
899
899
  s[o],
900
900
  (n ? `${n}.` : "") + o.toString(),
@@ -906,10 +906,10 @@ function st(e, t, n = ".", r) {
906
906
  function kr(e) {
907
907
  return (...t) => (
908
908
  // eslint-disable-next-line unicorn/no-array-reduce
909
- t.reduce((n, r) => st(n, r, "", e), {})
909
+ t.reduce((n, r) => it(n, r, "", e), {})
910
910
  );
911
911
  }
912
- const te = kr(), bt = (e) => {
912
+ const ne = kr(), vt = (e) => {
913
913
  const t = e.split("?");
914
914
  if (t.length <= 1)
915
915
  return {
@@ -928,7 +928,7 @@ const te = kr(), bt = (e) => {
928
928
  };
929
929
  }
930
930
  };
931
- function _r(e) {
931
+ function wr(e) {
932
932
  return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, n) {
933
933
  var r = e.get(t);
934
934
  r ? r.push(n) : e.set(t, [n]);
@@ -944,12 +944,12 @@ function _r(e) {
944
944
  });
945
945
  } };
946
946
  }
947
- const Tr = _r(), xr = {
947
+ const Tr = wr(), xr = {
948
948
  install(e) {
949
949
  e.provide("tabEmitter", Tr);
950
950
  }
951
- }, Ce = () => at("tabEmitter");
952
- var F = /* @__PURE__ */ ((e) => (e.PAGE_LOADING = "PAGE_LOADING", e.TAB_ACTIVE = "TAB_ACTIVE", e))(F || {});
951
+ }, Ce = () => lt("tabEmitter");
952
+ var V = /* @__PURE__ */ ((e) => (e.PAGE_LOADING = "PAGE_LOADING", e.TAB_ACTIVE = "TAB_ACTIVE", e))(V || {});
953
953
  const Sr = {
954
954
  key: 0,
955
955
  class: "stack-tab-loading-mask"
@@ -961,32 +961,36 @@ const Sr = {
961
961
  tId: {}
962
962
  },
963
963
  setup(e) {
964
- const t = e, n = Ce(), r = $(!1);
965
- return n.on(F.PAGE_LOADING, ({ tId: s, value: o }) => {
964
+ const t = e, n = Ce(), r = R(!1);
965
+ return n.on(V.PAGE_LOADING, ({ tId: s, value: o }) => {
966
966
  s === t.tId && (r.value = o);
967
- }), (s, o) => r.value ? (z(), P("div", Sr, Er)) : ne("", !0);
967
+ }), (s, o) => r.value ? (z(), j("div", Sr, Er)) : re("", !0);
968
968
  }
969
- }), C = $([]), $e = [], R = $([]), oe = /* @__PURE__ */ new Map(), _e = /* @__PURE__ */ new Set(), W = /* @__PURE__ */ new Set(), ue = $(!0), It = "stacktab-active-tab", fe = /* @__PURE__ */ new Map();
970
- let Bt = !1, Re = 0, Ct = !1;
969
+ }), C = R([]), Ke = [], P = R([]), le = /* @__PURE__ */ new Map(), $e = /* @__PURE__ */ new Set(), U = /* @__PURE__ */ new Set(), ue = R(!0), Ct = "stacktab-active-tab", fe = /* @__PURE__ */ new Map();
970
+ let Mt = !1, Re = 0, Lt = !1;
971
971
  const Me = () => {
972
- const e = ut(), t = Ce(), n = () => C.value.length, r = (g) => {
973
- $e.splice(0), R.value.splice(0), _e.clear(), W.clear(), oe.clear();
974
- for (const A of g) {
975
- const p = te(A, {
976
- id: an()
977
- }), L = dn(p), V = bt(p.path), D = te(p, {
972
+ const e = dt(), t = Ce(), {
973
+ t: n
974
+ } = Be(), r = () => C.value.length, s = (m) => {
975
+ for (const A of m) {
976
+ const p = ne(A, {
977
+ id: nt(),
978
+ refreshable: !0,
979
+ closable: !0,
980
+ iframe: !1
981
+ }), L = ot(p), W = vt(p.path), D = ne(p, {
978
982
  closable: !0,
979
983
  refreshable: !0,
980
984
  iframe: !1
981
- }), Le = At(p.id, V.path, V.query), H = {
985
+ }), Le = Bt(p.id, W.path, W.query), G = {
982
986
  id: Le,
983
987
  tabId: p.id,
984
- path: V.path,
985
- query: te(V.query, {
988
+ path: W.path,
989
+ query: ne(W.query, {
986
990
  __tab: L
987
991
  })
988
- }, me = new Ye();
989
- me.push(H);
992
+ }, ve = new Xe();
993
+ ve.push(G);
990
994
  const X = {
991
995
  id: p.id,
992
996
  title: D.title,
@@ -994,15 +998,15 @@ const Me = () => {
994
998
  refreshable: D.refreshable,
995
999
  iframe: D.iframe,
996
1000
  active: !1,
997
- pages: me
1001
+ pages: ve
998
1002
  };
999
- $e.push(X), C.value.push({
1003
+ P.value.push(Le), Ke.push(X), C.value.push({
1000
1004
  ...X
1001
- }), R.value.push(Le);
1005
+ });
1002
1006
  }
1003
- const v = window.sessionStorage.getItem(It);
1004
- if (v != null) {
1005
- const A = JSON.parse(v, (L, V) => L === "pages" ? new Ye(V) : V);
1007
+ const b = window.sessionStorage.getItem(Ct);
1008
+ if (b != null) {
1009
+ const A = JSON.parse(b, (L, W) => L === "pages" ? new Xe(W) : W);
1006
1010
  let p = !1;
1007
1011
  for (const L of C.value)
1008
1012
  if (L.id === A.id) {
@@ -1011,37 +1015,42 @@ const Me = () => {
1011
1015
  }
1012
1016
  p || C.value.push(A);
1013
1017
  }
1014
- Bt = !0;
1015
- }, s = (g) => {
1016
- for (const v of C.value)
1017
- if (v.id === g)
1018
+ Mt = !0;
1019
+ }, o = (m) => {
1020
+ for (const b of C.value)
1021
+ if (b.id === m)
1018
1022
  return !0;
1019
1023
  return !1;
1020
- }, o = () => Re <= 0 || Re > 0 && Re > C.value.length, i = (g) => new Promise((v) => {
1021
- C.value.push(g), v(!0);
1022
- }), u = (g) => {
1023
- for (const v of C.value)
1024
- if (v.id === g)
1025
- return v;
1024
+ }, i = () => Re <= 0 || Re > 0 && Re > C.value.length, u = (m) => new Promise((b) => {
1025
+ C.value.push(m), b(!0);
1026
+ }), a = (m) => {
1027
+ for (const b of C.value)
1028
+ if (b.id === m)
1029
+ return b;
1026
1030
  return null;
1027
- }, c = (g, v) => {
1028
- let A;
1029
- const p = wr(g.query.__tab);
1030
- if (W.has(p.id))
1031
+ }, c = (m, b) => {
1032
+ let A, p;
1033
+ if (m.query.__tab ? p = _r(m.query.__tab) : (p = {
1034
+ id: nt(),
1035
+ title: n("VueStackTab.undefined"),
1036
+ closable: !0,
1037
+ refreshable: !0,
1038
+ iframe: !1
1039
+ }, m.query.__tab = ot(p)), U.has(p.id) || !b)
1031
1040
  return;
1032
- const L = g.matched[g.matched.length - 1].path, V = g.path.endsWith("/") ? g.path.substring(0, g.path.length - 1) : g.path, D = At(p.id, L === V ? V : g.path, g.query.valueOf()), Le = g.query.__src;
1033
- let H = null;
1034
- for (const X of x(C))
1035
- X.active = !1, X.id === p.id && (H = X);
1036
- const me = {
1041
+ const L = m.matched[m.matched.length - 1].path, W = m.path.endsWith("/") ? m.path.substring(0, m.path.length - 1) : m.path, D = Bt(p.id, L === W ? W : m.path, m.query.valueOf()), Le = m.query.__src;
1042
+ let G = null;
1043
+ for (const X of S(C))
1044
+ X.active = !1, X.id === p.id && (G = X);
1045
+ const ve = {
1037
1046
  id: D,
1038
1047
  tabId: p.id,
1039
- path: g.path,
1040
- query: g.query
1048
+ path: m.path,
1049
+ query: m.query
1041
1050
  };
1042
- if (H === null) {
1043
- const X = new Ye();
1044
- X.push(me), H = {
1051
+ if (G === null) {
1052
+ const X = new Xe();
1053
+ X.push(ve), G = {
1045
1054
  id: p.id,
1046
1055
  title: p.title,
1047
1056
  closable: p.closable,
@@ -1050,214 +1059,215 @@ const Me = () => {
1050
1059
  url: decodeURIComponent(Le),
1051
1060
  active: !0,
1052
1061
  pages: X
1053
- }, i(H).then(() => {
1054
- t.emit(F.TAB_ACTIVE, {
1062
+ }, u(G).then(() => {
1063
+ t.emit(V.TAB_ACTIVE, {
1055
1064
  id: p.id,
1056
1065
  isRoute: !1
1057
1066
  });
1058
1067
  });
1059
1068
  } else
1060
- H.active = !0, (H.pages.isEmpty() || H.pages.peek().id !== me.id) && H.pages.push(me);
1061
- return E(H), oe.has(D) ? A = oe.get(D) : (A = /* @__PURE__ */ Q({
1069
+ G.active = !0, (G.pages.isEmpty() || G.pages.peek().id !== ve.id) && G.pages.push(ve);
1070
+ return M(G), le.has(D) ? A = le.get(D) : (A = /* @__PURE__ */ Q({
1062
1071
  name: D,
1063
1072
  components: {
1064
- DynamicComponent: v
1073
+ DynamicComponent: b
1065
1074
  },
1066
1075
  emits: {
1067
1076
  onLoaded: null
1068
1077
  },
1069
- setup(X, gt) {
1078
+ setup(X, _t) {
1070
1079
  return qe(() => {
1071
- gt.emit("onLoaded"), d(D, ".cache-page-wrapper");
1080
+ _t.emit("onLoaded"), g(D, ".cache-page-wrapper");
1072
1081
  }), Sn(() => {
1073
- h(D);
1082
+ f(D);
1074
1083
  }), On(() => {
1075
- gt.emit("onLoaded"), l(D), y(), W.clear(), v.props = null;
1084
+ _t.emit("onLoaded"), h(D), $(), U.clear(), b.props = null;
1076
1085
  }), Ge(() => {
1077
- f(D);
1086
+ d(D);
1078
1087
  }), () => N("div", {
1079
1088
  class: "cache-page-wrapper",
1080
1089
  id: "W-" + p.id,
1081
- style: [Ct ? "overflow:auto" : "overflow:hidden"]
1082
- }, [N(Zt("dynamic-component"), {
1090
+ style: [Lt ? "overflow:auto" : "overflow:hidden"]
1091
+ }, [N(Yt("dynamic-component"), {
1083
1092
  tId: p.id,
1084
1093
  pId: D
1085
1094
  }, null), N(Ar, {
1086
1095
  tId: p.id
1087
1096
  }, null)]);
1088
1097
  }
1089
- }), oe.set(D, A)), q(D), A;
1090
- }, l = (g) => {
1091
- const v = fe.get(g);
1092
- if (v) {
1093
- for (const A of v.keys())
1098
+ }), le.set(D, A)), F(D), A;
1099
+ }, h = (m) => {
1100
+ const b = fe.get(m);
1101
+ if (b) {
1102
+ for (const A of b.keys())
1094
1103
  if (document.querySelector(A)) {
1095
- const p = v.get(A);
1104
+ const p = b.get(A);
1096
1105
  document.querySelector(A).scrollTop = p.top, document.querySelector(A).scrollLeft = p.left;
1097
1106
  }
1098
1107
  }
1099
- }, h = (g) => {
1108
+ }, f = (m) => {
1100
1109
  var A, p;
1101
- const v = fe.get(g);
1102
- if (v)
1103
- for (const L of v.keys()) {
1104
- const V = {
1110
+ const b = fe.get(m);
1111
+ if (b)
1112
+ for (const L of b.keys()) {
1113
+ const W = {
1105
1114
  top: ((A = document.querySelector(L)) == null ? void 0 : A.scrollTop) ?? 0,
1106
1115
  left: ((p = document.querySelector(L)) == null ? void 0 : p.scrollLeft) ?? 0
1107
1116
  };
1108
- v.set(L, V);
1117
+ b.set(L, W);
1109
1118
  }
1110
- }, f = (g) => {
1111
- const v = fe.get(g);
1112
- v && (v.clear(), fe.delete(g));
1113
- }, d = (g, ...v) => {
1114
- fe.has(g) || fe.set(g, /* @__PURE__ */ new Map());
1115
- const A = fe.get(g);
1116
- for (const p of v)
1119
+ }, d = (m) => {
1120
+ const b = fe.get(m);
1121
+ b && (b.clear(), fe.delete(m));
1122
+ }, g = (m, ...b) => {
1123
+ fe.has(m) || fe.set(m, /* @__PURE__ */ new Map());
1124
+ const A = fe.get(m);
1125
+ for (const p of b)
1117
1126
  A.set(p, {
1118
1127
  top: 0,
1119
1128
  left: 0
1120
1129
  });
1121
- }, w = (g) => {
1122
- let v = "";
1130
+ }, O = (m) => {
1131
+ let b = "";
1132
+ const A = a(m);
1123
1133
  for (let p = C.value.length - 1; p >= 0; p--)
1124
- if (g === x(C)[p].id) {
1125
- if (!x(C)[p].closable)
1126
- return g;
1127
- for (const L of x(C)[p].pages.list())
1128
- a(L.id), b(L.id), W.add(x(C)[p].id);
1129
- x(C)[p].pages.clear(), C.value.length > 1 && x(C)[p].active && (p === 0 ? v = x(C)[p + 1].id : v = x(C)[p - 1].id), x(C).splice(p, 1);
1134
+ if (m === S(C)[p].id) {
1135
+ if (!S(C)[p].closable)
1136
+ return m;
1137
+ for (const L of S(C)[p].pages.list())
1138
+ v(L.id), _(L.id), U.add(S(C)[p].id);
1139
+ S(C)[p].pages.clear(), C.value.length > 1 && S(C)[p].active && (p === 0 ? b = S(C)[p + 1].id : b = S(C)[p - 1].id), S(C).splice(p, 1);
1130
1140
  break;
1131
1141
  }
1132
- v !== "" && t.emit(F.TAB_ACTIVE, {
1133
- id: v
1134
- });
1135
- const A = u(g);
1136
- return A != null && A.active || (y(), W.clear()), v;
1137
- }, S = () => {
1138
- const g = x(C);
1139
- for (let v = g.length - 1; v >= 0; v--)
1140
- if (g[v].closable) {
1141
- for (const A of g[v].pages.list())
1142
- a(A.id), b(A.id), W.add(g[v].id);
1143
- x(C)[v].pages.clear(), x(C).splice(v, 1);
1142
+ return b !== "" && t.emit(V.TAB_ACTIVE, {
1143
+ id: b
1144
+ }), A != null && A.active || ($(), U.clear()), b;
1145
+ }, B = () => {
1146
+ const m = S(C);
1147
+ for (let b = m.length - 1; b >= 0; b--)
1148
+ if (m[b].closable) {
1149
+ for (const A of m[b].pages.list())
1150
+ v(A.id), _(A.id), U.add(m[b].id);
1151
+ S(C)[b].pages.clear(), S(C).splice(b, 1);
1144
1152
  }
1145
- for (const v of g)
1146
- if (v.active) {
1147
- y(), W.clear();
1153
+ for (const b of m)
1154
+ if (b.active) {
1155
+ $(), U.clear();
1148
1156
  return;
1149
1157
  }
1150
- t.emit(F.TAB_ACTIVE, {
1151
- id: g[g.length - 1].id
1158
+ t.emit(V.TAB_ACTIVE, {
1159
+ id: m[m.length - 1].id
1152
1160
  });
1153
- }, B = (g) => {
1154
- const v = x(C);
1161
+ }, I = (m) => {
1162
+ const b = S(C);
1155
1163
  let A;
1156
- for (let p = v.length - 1; p >= 0; p--)
1157
- if (v[p].id === g)
1158
- A = v[p];
1159
- else if (v[p].closable && v[p].id !== g) {
1160
- for (const L of v[p].pages.list())
1161
- a(L.id), b(L.id), W.add(v[p].id);
1162
- x(C)[p].pages.clear(), x(C).splice(p, 1);
1164
+ for (let p = b.length - 1; p >= 0; p--)
1165
+ if (b[p].id === m)
1166
+ A = b[p];
1167
+ else if (b[p].closable && b[p].id !== m) {
1168
+ for (const L of b[p].pages.list())
1169
+ v(L.id), _(L.id), U.add(b[p].id);
1170
+ S(C)[p].pages.clear(), S(C).splice(p, 1);
1163
1171
  }
1164
- A.active ? (y(), W.clear()) : t.emit(F.TAB_ACTIVE, {
1165
- id: g
1172
+ A.active ? ($(), U.clear()) : t.emit(V.TAB_ACTIVE, {
1173
+ id: m
1166
1174
  });
1167
- }, I = (g) => {
1168
- let v = -1;
1169
- const A = x(C);
1175
+ }, T = (m) => {
1176
+ let b = -1;
1177
+ const A = S(C);
1170
1178
  for (let p = 0; p < A.length; p++)
1171
- if (A[p].id === g) {
1172
- v = p - 1;
1179
+ if (A[p].id === m) {
1180
+ b = p - 1;
1173
1181
  break;
1174
1182
  }
1175
- for (let p = v; p >= 0; p--)
1183
+ for (let p = b; p >= 0; p--)
1176
1184
  if (A[p].closable) {
1177
1185
  for (const L of A[p].pages.list())
1178
- a(L.id), b(L.id), W.add(A[p].id);
1179
- x(C)[p].pages.clear(), x(C).splice(p, 1);
1186
+ v(L.id), _(L.id), U.add(A[p].id);
1187
+ S(C)[p].pages.clear(), S(C).splice(p, 1);
1180
1188
  }
1181
1189
  for (const p of A)
1182
1190
  if (p.active) {
1183
- y(), W.clear();
1191
+ $(), U.clear();
1184
1192
  return;
1185
1193
  }
1186
- t.emit(F.TAB_ACTIVE, {
1194
+ t.emit(V.TAB_ACTIVE, {
1187
1195
  id: A[0].id
1188
1196
  });
1189
- }, T = (g) => {
1190
- const v = x(C);
1191
- let A = v.length;
1192
- for (let p = 0; p < v.length; p++)
1193
- if (v[p].id === g) {
1197
+ }, k = (m) => {
1198
+ const b = S(C);
1199
+ let A = b.length;
1200
+ for (let p = 0; p < b.length; p++)
1201
+ if (b[p].id === m) {
1194
1202
  A = p + 1;
1195
1203
  break;
1196
1204
  }
1197
- for (let p = v.length - 1; p >= A; p--)
1198
- if (v[p].closable) {
1199
- for (const L of v[p].pages.list())
1200
- a(L.id), b(L.id), W.add(v[p].id);
1201
- x(C)[p].pages.clear(), x(C).splice(p, 1);
1205
+ for (let p = b.length - 1; p >= A; p--)
1206
+ if (b[p].closable) {
1207
+ for (const L of b[p].pages.list())
1208
+ v(L.id), _(L.id), U.add(b[p].id);
1209
+ S(C)[p].pages.clear(), S(C).splice(p, 1);
1202
1210
  }
1203
- for (const p of v)
1211
+ for (const p of b)
1204
1212
  if (p.active) {
1205
- y(), W.clear();
1213
+ $(), U.clear();
1206
1214
  return;
1207
1215
  }
1208
- t.emit(F.TAB_ACTIVE, {
1209
- id: v[v.length - 1].id
1216
+ t.emit(V.TAB_ACTIVE, {
1217
+ id: b[b.length - 1].id
1210
1218
  });
1211
- }, _ = (g) => {
1212
- var v;
1213
- for (const A of x(C))
1214
- if (A.id === g) {
1215
- const p = (v = A.pages.peek()) == null ? void 0 : v.id;
1216
- for (let L = R.value.length - 1; L >= 0; L--)
1217
- if (R.value[L] === p) {
1218
- R.value.splice(L, 1), A.active && (ue.value = !1, de(() => {
1219
+ }, w = (m) => {
1220
+ var b;
1221
+ for (const A of S(C))
1222
+ if (A.id === m) {
1223
+ const p = (b = A.pages.peek()) == null ? void 0 : b.id;
1224
+ for (let L = P.value.length - 1; L >= 0; L--)
1225
+ if (P.value[L] === p) {
1226
+ P.value.splice(L, 1), A.active && (ue.value = !1, de(() => {
1219
1227
  ue.value = !0;
1220
1228
  }));
1221
1229
  break;
1222
1230
  }
1223
1231
  break;
1224
1232
  }
1225
- }, k = () => {
1226
- const g = /* @__PURE__ */ new Set();
1227
- C.value.forEach((v) => {
1228
- g.add(v.pages.peek().id);
1233
+ }, y = () => {
1234
+ const m = /* @__PURE__ */ new Set();
1235
+ C.value.forEach((b) => {
1236
+ m.add(b.pages.peek().id);
1229
1237
  });
1230
- for (let v = R.value.length - 1; v >= 0; v--) {
1231
- const A = R.value[v];
1232
- g.has(A) && R.value.splice(v, 1);
1238
+ for (let b = P.value.length - 1; b >= 0; b--) {
1239
+ const A = P.value[b];
1240
+ m.has(A) && P.value.splice(b, 1);
1233
1241
  }
1234
1242
  de(() => {
1235
1243
  ue.value = !1, de(() => {
1236
- ue.value = !0;
1244
+ setTimeout(() => {
1245
+ ue.value = !0;
1246
+ }, 300);
1237
1247
  });
1238
1248
  });
1239
- }, m = (g, v) => {
1240
- oe.set(g, v);
1241
- }, O = (g) => oe.get(g), a = (g) => {
1242
- oe.delete(g);
1243
- }, b = (g) => {
1244
- _e.add(g);
1245
- }, y = () => {
1246
- for (let g = R.value.length - 1; g >= 0; g--)
1247
- _e.has(R.value[g]) && x(R).splice(g, 1);
1248
- _e.clear();
1249
- }, j = (g) => {
1250
- for (let v = R.value.length - 1; v >= 0; v--)
1251
- g === R.value[v] && x(R).splice(v, 1);
1252
- }, q = (g) => {
1253
- new Set(R.value).has(g) || R.value.push(g);
1254
- }, G = (g, v = !0) => {
1249
+ }, x = (m, b) => {
1250
+ le.set(m, b);
1251
+ }, l = (m) => le.get(m), v = (m) => {
1252
+ le.delete(m);
1253
+ }, _ = (m) => {
1254
+ $e.add(m);
1255
+ }, $ = () => {
1256
+ for (let m = P.value.length - 1; m >= 0; m--)
1257
+ $e.has(P.value[m]) && S(P).splice(m, 1);
1258
+ $e.clear();
1259
+ }, Z = (m) => {
1260
+ for (let b = P.value.length - 1; b >= 0; b--)
1261
+ m === P.value[b] && S(P).splice(b, 1);
1262
+ }, F = (m) => {
1263
+ new Set(P.value).has(m) || P.value.push(m);
1264
+ }, E = (m, b = !0) => {
1255
1265
  for (let A = C.value.length - 1; A >= 0; A--) {
1256
1266
  const p = C.value[A];
1257
- if (p.id === g) {
1267
+ if (p.id === m) {
1258
1268
  if (p.active)
1259
1269
  break;
1260
- if (p.active = !0, E(p), v) {
1270
+ if (p.active = !0, M(p), b) {
1261
1271
  const L = p.pages.peek();
1262
1272
  e.push({
1263
1273
  path: L.path,
@@ -1267,54 +1277,54 @@ const Me = () => {
1267
1277
  } else
1268
1278
  C.value[A].active = !1;
1269
1279
  }
1270
- }, E = (g) => {
1271
- window.sessionStorage.setItem(It, JSON.stringify(g));
1272
- }, M = () => {
1273
- ue.value = !1, U(), de(() => {
1274
- x(C).push(...$e), t.emit(F.TAB_ACTIVE, {
1275
- id: $e[0].id
1280
+ }, M = (m) => {
1281
+ window.sessionStorage.setItem(Ct, JSON.stringify(m));
1282
+ }, q = () => {
1283
+ ue.value = !1, ee(), de(() => {
1284
+ S(C).push(...Ke), t.emit(V.TAB_ACTIVE, {
1285
+ id: Ke[0].id
1276
1286
  }), de(() => {
1277
1287
  ue.value = !0;
1278
1288
  });
1279
1289
  });
1280
- }, U = () => {
1281
- x(C).splice(0), oe.clear(), _e.clear(), W.clear(), x(R).splice(0);
1290
+ }, ee = () => {
1291
+ S(C).splice(0), le.clear(), $e.clear(), U.clear(), S(P).splice(0);
1282
1292
  };
1283
1293
  return {
1284
1294
  tabs: C,
1285
- caches: R,
1295
+ caches: P,
1286
1296
  pageShown: ue,
1287
- initialed: Bt,
1288
- setMaxSize: (g) => {
1289
- Re = g;
1297
+ initialed: Mt,
1298
+ setMaxSize: (m) => {
1299
+ Re = m;
1290
1300
  },
1291
- canAddTab: o,
1292
- initial: r,
1293
- size: n,
1294
- active: G,
1295
- destroy: U,
1296
- reset: M,
1297
- addCache: q,
1298
- removeCache: j,
1299
- getTab: u,
1300
- addTab: i,
1301
- removeTab: w,
1302
- removeAllTabs: S,
1303
- removeLeftTabs: I,
1304
- removeRightTabs: T,
1305
- removeOtherTabs: B,
1306
- hasTab: s,
1301
+ canAddTab: i,
1302
+ initial: s,
1303
+ size: r,
1304
+ active: E,
1305
+ destroy: ee,
1306
+ reset: q,
1307
+ addCache: F,
1308
+ removeCache: Z,
1309
+ getTab: a,
1310
+ addTab: u,
1311
+ removeTab: O,
1312
+ removeAllTabs: B,
1313
+ removeLeftTabs: T,
1314
+ removeRightTabs: k,
1315
+ removeOtherTabs: I,
1316
+ hasTab: o,
1307
1317
  addPage: c,
1308
- addComponent: m,
1309
- getComponent: O,
1310
- removeComponent: a,
1311
- markDeletableCache: b,
1312
- removeDeletableCache: y,
1313
- refreshTab: _,
1314
- refreshAllTabs: k,
1315
- addPageScroller: d,
1316
- setGlobalScroll: (g) => {
1317
- Ct = g;
1318
+ addComponent: x,
1319
+ getComponent: l,
1320
+ removeComponent: v,
1321
+ markDeletableCache: _,
1322
+ removeDeletableCache: $,
1323
+ refreshTab: w,
1324
+ refreshAllTabs: y,
1325
+ addPageScroller: g,
1326
+ setGlobalScroll: (m) => {
1327
+ Lt = m;
1318
1328
  }
1319
1329
  };
1320
1330
  }, Ir = { class: "stack-tab__contextmenu-item" }, ie = /* @__PURE__ */ Q({
@@ -1324,15 +1334,15 @@ const Me = () => {
1324
1334
  title: {}
1325
1335
  },
1326
1336
  setup(e) {
1327
- return (t, n) => (z(), P("div", Ir, [
1337
+ return (t, n) => (z(), j("div", Ir, [
1328
1338
  K("div", {
1329
1339
  class: ce(["stack-tab__contextmenu-icon", t.icon])
1330
1340
  }, null, 2),
1331
1341
  K("div", {
1332
1342
  style: { "margin-left": "8px" },
1333
- onContextmenu: n[0] || (n[0] = we(() => {
1343
+ onContextmenu: n[0] || (n[0] = _e(() => {
1334
1344
  }, ["prevent"]))
1335
- }, Xt(t.title), 33)
1345
+ }, Jt(t.title), 33)
1336
1346
  ]));
1337
1347
  }
1338
1348
  }), Br = {
@@ -1349,76 +1359,76 @@ const Me = () => {
1349
1359
  max: {}
1350
1360
  },
1351
1361
  setup(e) {
1352
- const t = e, { t: n } = Ze(), r = $(), s = Ie({
1362
+ const t = e, { t: n } = Be(), r = R(), s = Ae({
1353
1363
  left: t.left,
1354
1364
  top: t.top
1355
1365
  }), {
1356
1366
  removeTab: o,
1357
1367
  removeAllTabs: i,
1358
1368
  removeLeftTabs: u,
1359
- removeRightTabs: c,
1360
- refreshTab: l,
1369
+ removeRightTabs: a,
1370
+ refreshTab: c,
1361
1371
  refreshAllTabs: h,
1362
1372
  removeOtherTabs: f
1363
1373
  } = Me();
1364
1374
  return qe(() => {
1365
- const d = r.value ? r.value.clientWidth : 0, w = window.innerWidth;
1366
- s.left + d > w && (s.left = w - d - 5);
1367
- }), (d, w) => (z(), P("div", {
1375
+ const d = r.value ? r.value.clientWidth : 0, g = window.innerWidth;
1376
+ s.left + d > g && (s.left = g - d - 5);
1377
+ }), (d, g) => (z(), j("div", {
1368
1378
  ref_key: "contextmenu",
1369
1379
  ref: r,
1370
1380
  class: "stack-tab__contextmenu",
1371
- style: ct({
1381
+ style: ut({
1372
1382
  left: `${s.left}px`,
1373
1383
  top: `${s.top}px`,
1374
- "z-index": x(sn)(".stack-tab,.stack-tab *")
1384
+ "z-index": S(an)(".stack-tab,.stack-tab *")
1375
1385
  })
1376
1386
  }, [
1377
1387
  N(ie, {
1378
1388
  icon: "stack-tab__icon-reload svg-mask",
1379
- title: x(n)("VueStackTab.reload"),
1380
- onClick: w[0] || (w[0] = (S) => x(l)(d.tabItem.id))
1389
+ title: S(n)("VueStackTab.reload"),
1390
+ onClick: g[0] || (g[0] = (O) => S(c)(d.tabItem.id))
1381
1391
  }, null, 8, ["title"]),
1382
1392
  N(ie, {
1383
1393
  icon: "stack-tab__icon-reload-all svg-mask",
1384
- title: x(n)("VueStackTab.reloadAll"),
1385
- onClick: x(h)
1394
+ title: S(n)("VueStackTab.reloadAll"),
1395
+ onClick: S(h)
1386
1396
  }, null, 8, ["title", "onClick"]),
1387
1397
  N(ie, {
1388
1398
  icon: "stack-tab__icon-close svg-mask",
1389
- title: x(n)("VueStackTab.close"),
1399
+ title: S(n)("VueStackTab.close"),
1390
1400
  disabled: d.tabItem.closable ? null : "disabled",
1391
- onClick: w[1] || (w[1] = (S) => x(o)(d.tabItem.id))
1401
+ onClick: g[1] || (g[1] = (O) => S(o)(d.tabItem.id))
1392
1402
  }, null, 8, ["title", "disabled"]),
1393
1403
  N(ie, {
1394
1404
  icon: "stack-tab__icon-close-lefts svg-mask",
1395
- title: x(n)("VueStackTab.closeLeft"),
1405
+ title: S(n)("VueStackTab.closeLeft"),
1396
1406
  disabled: d.index <= 0 ? "disabled" : null,
1397
- onClick: w[2] || (w[2] = (S) => x(u)(d.tabItem.id))
1407
+ onClick: g[2] || (g[2] = (O) => S(u)(d.tabItem.id))
1398
1408
  }, null, 8, ["title", "disabled"]),
1399
1409
  N(ie, {
1400
1410
  icon: "stack-tab__icon-close-rights svg-mask",
1401
- title: x(n)("VueStackTab.closeRight"),
1411
+ title: S(n)("VueStackTab.closeRight"),
1402
1412
  disabled: d.index >= d.max - 1 ? "disabled" : null,
1403
- onClick: w[3] || (w[3] = (S) => x(c)(d.tabItem.id))
1413
+ onClick: g[3] || (g[3] = (O) => S(a)(d.tabItem.id))
1404
1414
  }, null, 8, ["title", "disabled"]),
1405
1415
  N(ie, {
1406
1416
  icon: "stack-tab__icon-close-others svg-mask",
1407
- title: x(n)("VueStackTab.closeOthers"),
1408
- onClick: w[4] || (w[4] = (S) => x(f)(d.tabItem.id))
1417
+ title: S(n)("VueStackTab.closeOthers"),
1418
+ onClick: g[4] || (g[4] = (O) => S(f)(d.tabItem.id))
1409
1419
  }, null, 8, ["title"]),
1410
1420
  N(ie, {
1411
1421
  icon: "stack-tab__icon-close-all svg-mask",
1412
- title: x(n)("VueStackTab.closeAll"),
1413
- onClick: x(i)
1422
+ title: S(n)("VueStackTab.closeAll"),
1423
+ onClick: S(i)
1414
1424
  }, null, 8, ["title", "onClick"]),
1415
- d.contextMenu !== void 0 && d.contextMenu.length > 0 ? (z(), P("div", Br)) : ne("", !0),
1416
- (z(!0), P(He, null, lt(d.contextMenu, (S, B) => (z(), ve(ie, {
1425
+ d.contextMenu !== void 0 && d.contextMenu.length > 0 ? (z(), j("div", Br)) : re("", !0),
1426
+ (z(!0), j(He, null, ft(d.contextMenu, (O, B) => (z(), me(ie, {
1417
1427
  key: B,
1418
- icon: S.icon,
1419
- title: S.title,
1420
- disabled: S.disabled(d.tabItem) ? "disabled" : null,
1421
- onClick: (I) => !S.disabled && S.callback(d.tabItem.id)
1428
+ icon: O.icon,
1429
+ title: O.title,
1430
+ disabled: O.disabled(d.tabItem) ? "disabled" : null,
1431
+ onClick: (I) => !O.disabled && O.callback(d.tabItem.id)
1422
1432
  }, null, 8, ["icon", "title", "disabled", "onClick"]))), 128))
1423
1433
  ], 4));
1424
1434
  }
@@ -1428,13 +1438,13 @@ const Me = () => {
1428
1438
  n[r] = s;
1429
1439
  return n;
1430
1440
  }, Lr = /* @__PURE__ */ Mr(Cr, [["__scopeId", "data-v-d598be6e"]]), zr = () => {
1431
- const e = Ie({
1441
+ const e = Ae({
1432
1442
  item: {},
1433
1443
  index: -1,
1434
1444
  left: 0,
1435
1445
  top: 0,
1436
1446
  max: 0
1437
- }), t = $(!1);
1447
+ }), t = R(!1);
1438
1448
  qe(() => {
1439
1449
  document.addEventListener("click", r);
1440
1450
  }), Ge(() => {
@@ -1442,8 +1452,8 @@ const Me = () => {
1442
1452
  });
1443
1453
  const n = async (s, o, i, u) => {
1444
1454
  t.value = !1, await de(() => {
1445
- const { clientY: c, clientX: l } = s;
1446
- t.value = !0, Object.assign(e, { item: o, index: i, top: c, left: l, max: u });
1455
+ const { clientY: a, clientX: c } = s;
1456
+ t.value = !0, Object.assign(e, { item: o, index: i, top: a, left: c, max: u });
1447
1457
  });
1448
1458
  }, r = (s) => {
1449
1459
  s.target.classList.contains("stack-tab__contextmenu") || (t.value = !1);
@@ -1460,36 +1470,36 @@ const Me = () => {
1460
1470
  },
1461
1471
  emits: ["close", "active"],
1462
1472
  setup(e, { emit: t }) {
1463
- const n = t, r = Ce(), { t: s } = Ze(), o = $(), i = e;
1464
- r.on(F.TAB_ACTIVE, ({ id: h, isRoute: f }) => {
1465
- i.item.id === h && l(f);
1473
+ const n = t, r = Ce(), { t: s } = Be(), o = R(), i = e;
1474
+ r.on(V.TAB_ACTIVE, ({ id: h, isRoute: f }) => {
1475
+ i.item.id === h && c(f);
1466
1476
  });
1467
- const u = ge(() => i.item.title || s("undefined")), c = () => {
1477
+ const u = ge(() => i.item.title || s("undefined")), a = () => {
1468
1478
  n("close", i.item);
1469
- }, l = (h = !0) => {
1479
+ }, c = (h = !0) => {
1470
1480
  n("active", i.item, o, h);
1471
1481
  };
1472
- return (h, f) => (z(), P("li", {
1482
+ return (h, f) => (z(), j("li", {
1473
1483
  ref_key: "curtab",
1474
1484
  ref: o,
1475
1485
  class: ce(["stack-tab__item", {
1476
1486
  "is-active": h.item.active,
1477
1487
  "is-icon": h.item.closable
1478
1488
  }]),
1479
- onClick: f[0] || (f[0] = (d) => l(!0))
1489
+ onClick: f[0] || (f[0] = (d) => c(!0))
1480
1490
  }, [
1481
1491
  K("div", $r, [
1482
1492
  K("div", {
1483
1493
  class: "stack-tab__item-title-content",
1484
1494
  title: u.value
1485
- }, Xt(u.value), 9, Rr)
1495
+ }, Jt(u.value), 9, Rr)
1486
1496
  ]),
1487
- h.item.closable ? (z(), P("div", {
1497
+ h.item.closable ? (z(), j("div", {
1488
1498
  key: 0,
1489
1499
  class: "stack-tab__icon-close-fill stack-tab__item-button",
1490
- title: x(s)("VueStackTab.close"),
1491
- onClick: we(c, ["stop"])
1492
- }, null, 8, Nr)) : ne("", !0)
1500
+ title: S(s)("VueStackTab.close"),
1501
+ onClick: _e(a, ["stop"])
1502
+ }, null, 8, Nr)) : re("", !0)
1493
1503
  ], 2));
1494
1504
  }
1495
1505
  });
@@ -1501,15 +1511,15 @@ var pe = [], Dr = function() {
1501
1511
  return pe.some(function(e) {
1502
1512
  return e.skippedTargets.length > 0;
1503
1513
  });
1504
- }, Mt = "ResizeObserver loop completed with undelivered notifications.", Wr = function() {
1514
+ }, zt = "ResizeObserver loop completed with undelivered notifications.", Wr = function() {
1505
1515
  var e;
1506
1516
  typeof ErrorEvent == "function" ? e = new ErrorEvent("error", {
1507
- message: Mt
1508
- }) : (e = document.createEvent("Event"), e.initEvent("error", !1, !1), e.message = Mt), window.dispatchEvent(e);
1509
- }, Be;
1517
+ message: zt
1518
+ }) : (e = document.createEvent("Event"), e.initEvent("error", !1, !1), e.message = zt), window.dispatchEvent(e);
1519
+ }, Ie;
1510
1520
  (function(e) {
1511
1521
  e.BORDER_BOX = "border-box", e.CONTENT_BOX = "content-box", e.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
1512
- })(Be || (Be = {}));
1522
+ })(Ie || (Ie = {}));
1513
1523
  var be = function(e) {
1514
1524
  return Object.freeze(e);
1515
1525
  }, Ur = /* @__PURE__ */ function() {
@@ -1522,21 +1532,21 @@ var be = function(e) {
1522
1532
  return this.x = t, this.y = n, this.width = r, this.height = s, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, be(this);
1523
1533
  }
1524
1534
  return e.prototype.toJSON = function() {
1525
- var t = this, n = t.x, r = t.y, s = t.top, o = t.right, i = t.bottom, u = t.left, c = t.width, l = t.height;
1526
- return { x: n, y: r, top: s, right: o, bottom: i, left: u, width: c, height: l };
1535
+ var t = this, n = t.x, r = t.y, s = t.top, o = t.right, i = t.bottom, u = t.left, a = t.width, c = t.height;
1536
+ return { x: n, y: r, top: s, right: o, bottom: i, left: u, width: a, height: c };
1527
1537
  }, e.fromRect = function(t) {
1528
1538
  return new e(t.x, t.y, t.width, t.height);
1529
1539
  }, e;
1530
- }(), vt = function(e) {
1540
+ }(), gt = function(e) {
1531
1541
  return e instanceof SVGElement && "getBBox" in e;
1532
1542
  }, pn = function(e) {
1533
- if (vt(e)) {
1543
+ if (gt(e)) {
1534
1544
  var t = e.getBBox(), n = t.width, r = t.height;
1535
1545
  return !n && !r;
1536
1546
  }
1537
1547
  var s = e, o = s.offsetWidth, i = s.offsetHeight;
1538
1548
  return !(o || i || e.getClientRects().length);
1539
- }, Lt = function(e) {
1549
+ }, $t = function(e) {
1540
1550
  var t;
1541
1551
  if (e instanceof Element)
1542
1552
  return !0;
@@ -1557,11 +1567,11 @@ var be = function(e) {
1557
1567
  return !0;
1558
1568
  }
1559
1569
  return !1;
1560
- }, Ae = typeof window < "u" ? window : {}, Ne = /* @__PURE__ */ new WeakMap(), zt = /auto|scroll/, Fr = /^tb|vertical/, qr = /msie|trident/i.test(Ae.navigator && Ae.navigator.userAgent), Y = function(e) {
1570
+ }, Ee = typeof window < "u" ? window : {}, Ne = /* @__PURE__ */ new WeakMap(), Rt = /auto|scroll/, Fr = /^tb|vertical/, qr = /msie|trident/i.test(Ee.navigator && Ee.navigator.userAgent), Y = function(e) {
1561
1571
  return parseFloat(e || "0");
1562
1572
  }, ye = function(e, t, n) {
1563
1573
  return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = !1), new Ur((n ? t : e) || 0, (n ? e : t) || 0);
1564
- }, $t = be({
1574
+ }, Nt = be({
1565
1575
  devicePixelContentBoxSize: ye(),
1566
1576
  borderBoxSize: ye(),
1567
1577
  contentBoxSize: ye(),
@@ -1570,20 +1580,20 @@ var be = function(e) {
1570
1580
  if (t === void 0 && (t = !1), Ne.has(e) && !t)
1571
1581
  return Ne.get(e);
1572
1582
  if (pn(e))
1573
- return Ne.set(e, $t), $t;
1574
- var n = getComputedStyle(e), r = vt(e) && e.ownerSVGElement && e.getBBox(), s = !qr && n.boxSizing === "border-box", o = Fr.test(n.writingMode || ""), i = !r && zt.test(n.overflowY || ""), u = !r && zt.test(n.overflowX || ""), c = r ? 0 : Y(n.paddingTop), l = r ? 0 : Y(n.paddingRight), h = r ? 0 : Y(n.paddingBottom), f = r ? 0 : Y(n.paddingLeft), d = r ? 0 : Y(n.borderTopWidth), w = r ? 0 : Y(n.borderRightWidth), S = r ? 0 : Y(n.borderBottomWidth), B = r ? 0 : Y(n.borderLeftWidth), I = f + l, T = c + h, _ = B + w, k = d + S, m = u ? e.offsetHeight - k - e.clientHeight : 0, O = i ? e.offsetWidth - _ - e.clientWidth : 0, a = s ? I + _ : 0, b = s ? T + k : 0, y = r ? r.width : Y(n.width) - a - O, j = r ? r.height : Y(n.height) - b - m, q = y + I + O + _, G = j + T + m + k, E = be({
1575
- devicePixelContentBoxSize: ye(Math.round(y * devicePixelRatio), Math.round(j * devicePixelRatio), o),
1576
- borderBoxSize: ye(q, G, o),
1577
- contentBoxSize: ye(y, j, o),
1578
- contentRect: new hn(f, c, y, j)
1583
+ return Ne.set(e, Nt), Nt;
1584
+ var n = getComputedStyle(e), r = gt(e) && e.ownerSVGElement && e.getBBox(), s = !qr && n.boxSizing === "border-box", o = Fr.test(n.writingMode || ""), i = !r && Rt.test(n.overflowY || ""), u = !r && Rt.test(n.overflowX || ""), a = r ? 0 : Y(n.paddingTop), c = r ? 0 : Y(n.paddingRight), h = r ? 0 : Y(n.paddingBottom), f = r ? 0 : Y(n.paddingLeft), d = r ? 0 : Y(n.borderTopWidth), g = r ? 0 : Y(n.borderRightWidth), O = r ? 0 : Y(n.borderBottomWidth), B = r ? 0 : Y(n.borderLeftWidth), I = f + c, T = a + h, k = B + g, w = d + O, y = u ? e.offsetHeight - w - e.clientHeight : 0, x = i ? e.offsetWidth - k - e.clientWidth : 0, l = s ? I + k : 0, v = s ? T + w : 0, _ = r ? r.width : Y(n.width) - l - x, $ = r ? r.height : Y(n.height) - v - y, Z = _ + I + x + k, F = $ + T + y + w, E = be({
1585
+ devicePixelContentBoxSize: ye(Math.round(_ * devicePixelRatio), Math.round($ * devicePixelRatio), o),
1586
+ borderBoxSize: ye(Z, F, o),
1587
+ contentBoxSize: ye(_, $, o),
1588
+ contentRect: new hn(f, a, _, $)
1579
1589
  });
1580
1590
  return Ne.set(e, E), E;
1581
- }, vn = function(e, t, n) {
1591
+ }, mn = function(e, t, n) {
1582
1592
  var r = bn(e, n), s = r.borderBoxSize, o = r.contentBoxSize, i = r.devicePixelContentBoxSize;
1583
1593
  switch (t) {
1584
- case Be.DEVICE_PIXEL_CONTENT_BOX:
1594
+ case Ie.DEVICE_PIXEL_CONTENT_BOX:
1585
1595
  return i;
1586
- case Be.BORDER_BOX:
1596
+ case Ie.BORDER_BOX:
1587
1597
  return s;
1588
1598
  default:
1589
1599
  return o;
@@ -1594,7 +1604,7 @@ var be = function(e) {
1594
1604
  this.target = t, this.contentRect = n.contentRect, this.borderBoxSize = be([n.borderBoxSize]), this.contentBoxSize = be([n.contentBoxSize]), this.devicePixelContentBoxSize = be([n.devicePixelContentBoxSize]);
1595
1605
  }
1596
1606
  return e;
1597
- }(), mn = function(e) {
1607
+ }(), vn = function(e) {
1598
1608
  if (pn(e))
1599
1609
  return 1 / 0;
1600
1610
  for (var t = 0, n = e.parentNode; n; )
@@ -1605,9 +1615,9 @@ var be = function(e) {
1605
1615
  pe.forEach(function(i) {
1606
1616
  if (i.activeTargets.length !== 0) {
1607
1617
  var u = [];
1608
- i.activeTargets.forEach(function(l) {
1609
- var h = new Gr(l.target), f = mn(l.target);
1610
- u.push(h), l.lastReportedSize = vn(l.target, l.observedBox), f < e && (e = f);
1618
+ i.activeTargets.forEach(function(c) {
1619
+ var h = new Gr(c.target), f = vn(c.target);
1620
+ u.push(h), c.lastReportedSize = mn(c.target, c.observedBox), f < e && (e = f);
1611
1621
  }), t.push(function() {
1612
1622
  i.callback.call(i.observer, u, i.observer);
1613
1623
  }), i.activeTargets.splice(0, i.activeTargets.length);
@@ -1618,16 +1628,16 @@ var be = function(e) {
1618
1628
  s();
1619
1629
  }
1620
1630
  return e;
1621
- }, Rt = function(e) {
1631
+ }, Pt = function(e) {
1622
1632
  pe.forEach(function(n) {
1623
1633
  n.activeTargets.splice(0, n.activeTargets.length), n.skippedTargets.splice(0, n.skippedTargets.length), n.observationTargets.forEach(function(s) {
1624
- s.isActive() && (mn(s.target) > e ? n.activeTargets.push(s) : n.skippedTargets.push(s));
1634
+ s.isActive() && (vn(s.target) > e ? n.activeTargets.push(s) : n.skippedTargets.push(s));
1625
1635
  });
1626
1636
  });
1627
1637
  }, Zr = function() {
1628
1638
  var e = 0;
1629
- for (Rt(e); Dr(); )
1630
- e = Hr(), Rt(e);
1639
+ for (Pt(e); Dr(); )
1640
+ e = Hr(), Pt(e);
1631
1641
  return jr() && Wr(), e > 0;
1632
1642
  }, Qe, gn = [], Xr = function() {
1633
1643
  return gn.splice(0).forEach(function(e) {
@@ -1649,7 +1659,7 @@ var be = function(e) {
1649
1659
  });
1650
1660
  }, je = 0, Kr = function() {
1651
1661
  return !!je;
1652
- }, Qr = 250, es = { attributes: !0, characterData: !0, childList: !0, subtree: !0 }, Nt = [
1662
+ }, Qr = 250, es = { attributes: !0, characterData: !0, childList: !0, subtree: !0 }, Dt = [
1653
1663
  "resize",
1654
1664
  "load",
1655
1665
  "transitionend",
@@ -1664,7 +1674,7 @@ var be = function(e) {
1664
1674
  "mouseout",
1665
1675
  "blur",
1666
1676
  "focus"
1667
- ], Pt = function(e) {
1677
+ ], jt = function(e) {
1668
1678
  return e === void 0 && (e = 0), Date.now() + e;
1669
1679
  }, et = !1, ts = function() {
1670
1680
  function e() {
@@ -1677,13 +1687,13 @@ var be = function(e) {
1677
1687
  var n = this;
1678
1688
  if (t === void 0 && (t = Qr), !et) {
1679
1689
  et = !0;
1680
- var r = Pt(t);
1690
+ var r = jt(t);
1681
1691
  Jr(function() {
1682
1692
  var s = !1;
1683
1693
  try {
1684
1694
  s = Zr();
1685
1695
  } finally {
1686
- if (et = !1, t = r - Pt(), !Kr())
1696
+ if (et = !1, t = r - jt(), !Kr())
1687
1697
  return;
1688
1698
  s ? n.run(1e3) : t > 0 ? n.run(t) : n.start();
1689
1699
  }
@@ -1695,31 +1705,31 @@ var be = function(e) {
1695
1705
  var t = this, n = function() {
1696
1706
  return t.observer && t.observer.observe(document.body, es);
1697
1707
  };
1698
- document.body ? n() : Ae.addEventListener("DOMContentLoaded", n);
1708
+ document.body ? n() : Ee.addEventListener("DOMContentLoaded", n);
1699
1709
  }, e.prototype.start = function() {
1700
1710
  var t = this;
1701
- this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(), Nt.forEach(function(n) {
1702
- return Ae.addEventListener(n, t.listener, !0);
1711
+ this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(), Dt.forEach(function(n) {
1712
+ return Ee.addEventListener(n, t.listener, !0);
1703
1713
  }));
1704
1714
  }, e.prototype.stop = function() {
1705
1715
  var t = this;
1706
- this.stopped || (this.observer && this.observer.disconnect(), Nt.forEach(function(n) {
1707
- return Ae.removeEventListener(n, t.listener, !0);
1716
+ this.stopped || (this.observer && this.observer.disconnect(), Dt.forEach(function(n) {
1717
+ return Ee.removeEventListener(n, t.listener, !0);
1708
1718
  }), this.stopped = !0);
1709
1719
  }, e;
1710
- }(), ot = new ts(), Dt = function(e) {
1711
- !je && e > 0 && ot.start(), je += e, !je && ot.stop();
1720
+ }(), at = new ts(), Wt = function(e) {
1721
+ !je && e > 0 && at.start(), je += e, !je && at.stop();
1712
1722
  }, ns = function(e) {
1713
- return !vt(e) && !Vr(e) && getComputedStyle(e).display === "inline";
1723
+ return !gt(e) && !Vr(e) && getComputedStyle(e).display === "inline";
1714
1724
  }, rs = function() {
1715
1725
  function e(t, n) {
1716
- this.target = t, this.observedBox = n || Be.CONTENT_BOX, this.lastReportedSize = {
1726
+ this.target = t, this.observedBox = n || Ie.CONTENT_BOX, this.lastReportedSize = {
1717
1727
  inlineSize: 0,
1718
1728
  blockSize: 0
1719
1729
  };
1720
1730
  }
1721
1731
  return e.prototype.isActive = function() {
1722
- var t = vn(this.target, this.observedBox, !0);
1732
+ var t = mn(this.target, this.observedBox, !0);
1723
1733
  return ns(this.target) && (this.lastReportedSize = t), this.lastReportedSize.inlineSize !== t.inlineSize || this.lastReportedSize.blockSize !== t.blockSize;
1724
1734
  }, e;
1725
1735
  }(), ss = /* @__PURE__ */ function() {
@@ -1727,7 +1737,7 @@ var be = function(e) {
1727
1737
  this.activeTargets = [], this.skippedTargets = [], this.observationTargets = [], this.observer = t, this.callback = n;
1728
1738
  }
1729
1739
  return e;
1730
- }(), Pe = /* @__PURE__ */ new WeakMap(), jt = function(e, t) {
1740
+ }(), Pe = /* @__PURE__ */ new WeakMap(), Ut = function(e, t) {
1731
1741
  for (var n = 0; n < e.length; n += 1)
1732
1742
  if (e[n].target === t)
1733
1743
  return n;
@@ -1740,17 +1750,17 @@ var be = function(e) {
1740
1750
  Pe.set(t, r);
1741
1751
  }, e.observe = function(t, n, r) {
1742
1752
  var s = Pe.get(t), o = s.observationTargets.length === 0;
1743
- jt(s.observationTargets, n) < 0 && (o && pe.push(s), s.observationTargets.push(new rs(n, r && r.box)), Dt(1), ot.schedule());
1753
+ Ut(s.observationTargets, n) < 0 && (o && pe.push(s), s.observationTargets.push(new rs(n, r && r.box)), Wt(1), at.schedule());
1744
1754
  }, e.unobserve = function(t, n) {
1745
- var r = Pe.get(t), s = jt(r.observationTargets, n), o = r.observationTargets.length === 1;
1746
- s >= 0 && (o && pe.splice(pe.indexOf(r), 1), r.observationTargets.splice(s, 1), Dt(-1));
1755
+ var r = Pe.get(t), s = Ut(r.observationTargets, n), o = r.observationTargets.length === 1;
1756
+ s >= 0 && (o && pe.splice(pe.indexOf(r), 1), r.observationTargets.splice(s, 1), Wt(-1));
1747
1757
  }, e.disconnect = function(t) {
1748
1758
  var n = this, r = Pe.get(t);
1749
1759
  r.observationTargets.slice().forEach(function(s) {
1750
1760
  return n.unobserve(t, s.target);
1751
1761
  }), r.activeTargets.splice(0, r.activeTargets.length);
1752
1762
  }, e;
1753
- }(), Wt = function() {
1763
+ }(), Vt = function() {
1754
1764
  function e(t) {
1755
1765
  if (arguments.length === 0)
1756
1766
  throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
@@ -1761,13 +1771,13 @@ var be = function(e) {
1761
1771
  return e.prototype.observe = function(t, n) {
1762
1772
  if (arguments.length === 0)
1763
1773
  throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");
1764
- if (!Lt(t))
1774
+ if (!$t(t))
1765
1775
  throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");
1766
1776
  De.observe(this, t, n);
1767
1777
  }, e.prototype.unobserve = function(t) {
1768
1778
  if (arguments.length === 0)
1769
1779
  throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");
1770
- if (!Lt(t))
1780
+ if (!$t(t))
1771
1781
  throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");
1772
1782
  De.unobserve(this, t);
1773
1783
  }, e.prototype.disconnect = function() {
@@ -1779,7 +1789,7 @@ var be = function(e) {
1779
1789
  const os = ["disabled", "title"], is = {
1780
1790
  key: 1,
1781
1791
  class: "stack-tab__button"
1782
- }, it = /* @__PURE__ */ Q({
1792
+ }, ct = /* @__PURE__ */ Q({
1783
1793
  __name: "TabHeaderButton",
1784
1794
  props: {
1785
1795
  disabled: { type: Boolean, default: !1 },
@@ -1788,7 +1798,7 @@ const os = ["disabled", "title"], is = {
1788
1798
  title: {}
1789
1799
  },
1790
1800
  setup(e) {
1791
- return (t, n) => (z(), P("div", {
1801
+ return (t, n) => (z(), j("div", {
1792
1802
  class: ce(["stack-tab__header-button", {
1793
1803
  "stack-tab__shadow-right": t.shadow === "right",
1794
1804
  "stack-tab__shadow-left": t.shadow === "left"
@@ -1796,13 +1806,13 @@ const os = ["disabled", "title"], is = {
1796
1806
  disabled: t.disabled ? "disabled" : null,
1797
1807
  title: t.title
1798
1808
  }, [
1799
- "icon" in t.$slots ? ne("", !0) : (z(), P("div", {
1809
+ "icon" in t.$slots ? re("", !0) : (z(), j("div", {
1800
1810
  key: 0,
1801
1811
  class: ce(["stack-tab__mask-button", t.iconClass])
1802
1812
  }, null, 2)),
1803
- "icon" in t.$slots ? (z(), P("div", is, [
1813
+ "icon" in t.$slots ? (z(), j("div", is, [
1804
1814
  ke(t.$slots, "icon")
1805
- ])) : ne("", !0)
1815
+ ])) : re("", !0)
1806
1816
  ], 10, os));
1807
1817
  }
1808
1818
  }), as = /* @__PURE__ */ Q({
@@ -1813,99 +1823,99 @@ const os = ["disabled", "title"], is = {
1813
1823
  isScrollButton: { type: Boolean, default: !0 }
1814
1824
  },
1815
1825
  setup(e, { expose: t }) {
1816
- const n = $(null), r = $(null), s = $(null), o = $(!1), i = $(!1), u = $(!1), c = $(!0), l = $(), h = e, f = Ie({
1826
+ const n = R(null), r = R(null), s = R(null), o = R(!1), i = R(!1), u = R(!1), a = R(!0), c = R(), h = e, f = Ae({
1817
1827
  clientWidth: 0,
1818
1828
  scrollWidth: 0,
1819
1829
  scrollLeft: 0
1820
- }), d = Ie({
1830
+ }), d = Ae({
1821
1831
  thumbLeft: 0,
1822
1832
  startScrollLeft: 0,
1823
1833
  startThumbLeft: 0,
1824
1834
  startPageX: 0
1825
1835
  });
1826
1836
  En(f, (E) => {
1827
- w(E);
1837
+ g(E);
1828
1838
  });
1829
- const w = (E) => {
1830
- i.value = E.scrollLeft <= 10, u.value = E.clientWidth + E.scrollLeft - E.scrollWidth >= -10, c.value = E.scrollWidth !== E.clientWidth;
1831
- }, S = ge(() => f.scrollWidth > f.clientWidth), B = ge(() => {
1832
- if (!S.value)
1839
+ const g = (E) => {
1840
+ i.value = E.scrollLeft <= 10, u.value = E.clientWidth + E.scrollLeft - E.scrollWidth >= -10, a.value = E.scrollWidth !== E.clientWidth;
1841
+ }, O = ge(() => f.scrollWidth > f.clientWidth), B = ge(() => {
1842
+ if (!O.value)
1833
1843
  return 0;
1834
1844
  const { clientWidth: E, scrollWidth: M } = f;
1835
1845
  return E / M * E;
1836
1846
  }), I = ge(() => {
1837
- if (!S.value)
1847
+ if (!O.value)
1838
1848
  return 0;
1839
- const { clientWidth: E, scrollWidth: M, scrollLeft: U } = f;
1840
- return (E - B.value) * (U / (M - E));
1849
+ const { clientWidth: E, scrollWidth: M, scrollLeft: q } = f;
1850
+ return (E - B.value) * (q / (M - E));
1841
1851
  }), T = () => {
1842
1852
  if (n.value === null || n.value === void 0)
1843
1853
  return;
1844
- const { clientWidth: E, scrollWidth: M, scrollLeft: U } = n.value;
1845
- Object.assign(f, { clientWidth: E, scrollWidth: M, scrollLeft: U });
1846
- }, _ = new Wt(() => {
1854
+ const { clientWidth: E, scrollWidth: M, scrollLeft: q } = n.value;
1855
+ Object.assign(f, { clientWidth: E, scrollWidth: M, scrollLeft: q });
1856
+ }, k = new Vt(() => {
1847
1857
  var M;
1848
1858
  T();
1849
1859
  const E = (M = n.value) == null ? void 0 : M.querySelector(".stack-tab__item.is-active");
1850
- E && (G(E) || q(E));
1851
- }), k = new Wt(() => {
1860
+ E && (F(E) || Z(E));
1861
+ }), w = new Vt(() => {
1852
1862
  var E;
1853
- if (!S.value) {
1863
+ if (!O.value) {
1854
1864
  const M = (E = n.value) == null ? void 0 : E.querySelector(".stack-tab__item.is-active");
1855
- M && (G(M) || q(M));
1865
+ M && (F(M) || Z(M));
1856
1866
  }
1857
1867
  T();
1858
- }), m = (E, M = !0) => {
1859
- rn({ wrap: n.value, left: E, smooth: M });
1860
- }, O = (E) => {
1861
- m(n.value.scrollLeft + E);
1862
- }, a = (E) => {
1868
+ }), y = (E, M = !0) => {
1869
+ on({ wrap: n.value, left: E, smooth: M });
1870
+ }, x = (E) => {
1871
+ y(n.value.scrollLeft + E);
1872
+ }, l = (E) => {
1863
1873
  const M = E.deltaY < 0;
1864
- m(n.value.scrollLeft + (M ? -h.space : h.space));
1865
- }, b = (E) => {
1874
+ y(n.value.scrollLeft + (M ? -h.space : h.space));
1875
+ }, v = (E) => {
1866
1876
  var M;
1867
1877
  Object.assign(d, {
1868
1878
  startPageX: E.pageX,
1869
1879
  startScrollLeft: (M = n.value) == null ? void 0 : M.scrollLeft,
1870
1880
  startThumbLeft: I.value,
1871
1881
  thumbLeft: I.value
1872
- }), o.value = !0, document.addEventListener("mousemove", y), document.addEventListener("mouseup", j);
1873
- }, y = (E) => {
1874
- const { clientWidth: M, scrollWidth: U } = f;
1875
- let le = d.startThumbLeft + E.pageX - d.startPageX;
1876
- const Xe = M - B.value;
1877
- le < 0 ? le = 0 : le > Xe && (le = Xe), d.thumbLeft = le, m(le * (U - M) / (M - B.value), !1), E.preventDefault();
1878
- }, j = (E) => {
1879
- o.value = !1, document.removeEventListener("mousemove", y), document.removeEventListener("mouseup", j), E.preventDefault();
1882
+ }), o.value = !0, document.addEventListener("mousemove", _), document.addEventListener("mouseup", $);
1883
+ }, _ = (E) => {
1884
+ const { clientWidth: M, scrollWidth: q } = f;
1885
+ let ee = d.startThumbLeft + E.pageX - d.startPageX;
1886
+ const Ze = M - B.value;
1887
+ ee < 0 ? ee = 0 : ee > Ze && (ee = Ze), d.thumbLeft = ee, y(ee * (q - M) / (M - B.value), !1), E.preventDefault();
1888
+ }, $ = (E) => {
1889
+ o.value = !1, document.removeEventListener("mousemove", _), document.removeEventListener("mouseup", $), E.preventDefault();
1880
1890
  };
1881
1891
  qe(() => {
1882
1892
  var M;
1883
- _.observe(l.value);
1893
+ k.observe(c.value);
1884
1894
  const E = (M = n.value) == null ? void 0 : M.querySelector(".stack-tab__nav");
1885
- k.observe(E);
1895
+ w.observe(E);
1886
1896
  }), Ge(() => {
1887
- _.disconnect(), k.disconnect();
1897
+ k.disconnect(), w.disconnect();
1888
1898
  });
1889
- const q = (E) => {
1899
+ const Z = (E) => {
1890
1900
  Yn({ el: E, wrap: n, block: "end", inline: "center" });
1891
- }, G = (E) => {
1892
- if (!S.value)
1901
+ }, F = (E) => {
1902
+ if (!O.value)
1893
1903
  return !0;
1894
- const M = E.offsetLeft, U = n.value.scrollLeft;
1895
- return !(M < U || M + E.clientWidth > U + n.value.clientWidth);
1904
+ const M = E.offsetLeft, q = n.value.scrollLeft;
1905
+ return !(M < q || M + E.clientWidth > q + n.value.clientWidth);
1896
1906
  };
1897
- return t({ scrollIntoView: q, isInView: G }), (E, M) => (z(), P(He, null, [
1898
- c.value ? (z(), ve(it, {
1907
+ return t({ scrollIntoView: Z, isInView: F }), (E, M) => (z(), j(He, null, [
1908
+ a.value ? (z(), me(ct, {
1899
1909
  key: 0,
1900
1910
  "icon-class": "stack-tab__icon-left-arrow",
1901
1911
  disabled: i.value,
1902
- onClick: M[0] || (M[0] = (U) => !i.value && O(-1 * E.space))
1903
- }, null, 8, ["disabled"])) : ne("", !0),
1912
+ onClick: M[0] || (M[0] = (q) => !i.value && x(-1 * E.space))
1913
+ }, null, 8, ["disabled"])) : re("", !0),
1904
1914
  K("div", {
1905
1915
  ref_key: "headerScroll",
1906
- ref: l,
1916
+ ref: c,
1907
1917
  class: "stack-tab__scroll",
1908
- onWheel: we(a, ["prevent"])
1918
+ onWheel: _e(l, ["prevent"])
1909
1919
  }, [
1910
1920
  K("div", {
1911
1921
  ref_key: "container",
@@ -1919,7 +1929,7 @@ const os = ["disabled", "title"], is = {
1919
1929
  }, [
1920
1930
  ke(E.$slots, "default")
1921
1931
  ], 34),
1922
- Yt(K("div", {
1932
+ Kt(K("div", {
1923
1933
  ref_key: "bar",
1924
1934
  ref: r,
1925
1935
  class: ce(["stack-tab__scrollbar", { "is-dragging": o.value }])
@@ -1928,22 +1938,22 @@ const os = ["disabled", "title"], is = {
1928
1938
  ref_key: "thumb",
1929
1939
  ref: s,
1930
1940
  class: ce(["stack-tab__scrollbar-thumb", { "is-dragging": o.value }]),
1931
- style: ct({
1941
+ style: ut({
1932
1942
  width: `${B.value}px`,
1933
1943
  transform: `translateX(${I.value}px)`
1934
1944
  }),
1935
- onMousedown: we(b, ["prevent"])
1945
+ onMousedown: _e(v, ["prevent"])
1936
1946
  }, null, 38)
1937
1947
  ], 2), [
1938
- [Jt, S.value]
1948
+ [Qt, O.value]
1939
1949
  ])
1940
1950
  ], 544),
1941
- c.value ? (z(), ve(it, {
1951
+ a.value ? (z(), me(ct, {
1942
1952
  key: 1,
1943
1953
  "icon-class": "stack-tab__icon-right-arrow",
1944
1954
  disabled: u.value,
1945
- onClick: M[1] || (M[1] = (U) => !u.value && O(E.space))
1946
- }, null, 8, ["disabled"])) : ne("", !0)
1955
+ onClick: M[1] || (M[1] = (q) => !u.value && x(E.space))
1956
+ }, null, 8, ["disabled"])) : re("", !0)
1947
1957
  ], 64));
1948
1958
  }
1949
1959
  }), cs = { class: "stack-tab__header" }, ls = /* @__PURE__ */ Q({
@@ -1959,40 +1969,40 @@ const os = ["disabled", "title"], is = {
1959
1969
  },
1960
1970
  emits: ["active"],
1961
1971
  setup(e, { emit: t }) {
1962
- const { t: n } = Ze(), r = at("maximum"), s = t, o = $(), { shown: i, contextMenuData: u, showContextMenu: c } = zr(), l = e, { removeTab: h, active: f, tabs: d } = Me(), w = ge(() => typeof l.tabTransition == "string" ? {
1963
- name: l.tabTransition
1964
- } : l.tabTransition), S = ge(() => l.tabScrollMode === he.BOTH || l.tabScrollMode === he.BUTTON), B = l.tabScrollMode === he.BOTH || l.tabScrollMode === he.WHEEL, I = (_) => {
1965
- _.closable && h(_.id), i.value = !1;
1966
- }, T = (_, k, m) => {
1972
+ const { t: n } = Be(), r = lt("maximum"), s = t, o = R(), { shown: i, contextMenuData: u, showContextMenu: a } = zr(), c = e, { removeTab: h, active: f, tabs: d } = Me(), g = ge(() => typeof c.tabTransition == "string" ? {
1973
+ name: c.tabTransition
1974
+ } : c.tabTransition), O = ge(() => c.tabScrollMode === he.BOTH || c.tabScrollMode === he.BUTTON), B = c.tabScrollMode === he.BOTH || c.tabScrollMode === he.WHEEL, I = (k) => {
1975
+ k.closable && h(k.id), i.value = !1;
1976
+ }, T = (k, w, y) => {
1967
1977
  o.value && (de(() => {
1968
- o.value.isInView(k.value) || o.value.scrollIntoView(k.value);
1969
- }), f(_.id, m), s("active", _.id));
1978
+ o.value.isInView(w.value) || o.value.scrollIntoView(w.value);
1979
+ }), f(k.id, y), s("active", k.id));
1970
1980
  };
1971
- return (_, k) => (z(), P("div", cs, [
1972
- ke(_.$slots, "leftButton"),
1981
+ return (k, w) => (z(), j("div", cs, [
1982
+ ke(k.$slots, "leftButton"),
1973
1983
  N(as, {
1974
1984
  ref_key: "scroll",
1975
1985
  ref: o,
1976
- space: _.space,
1977
- "is-scroll-wheel": x(B),
1978
- "is-scroll-button": S.value
1986
+ space: k.space,
1987
+ "is-scroll-wheel": S(B),
1988
+ "is-scroll-button": O.value
1979
1989
  }, {
1980
1990
  default: ae(() => [
1981
- N(Kt, An({
1991
+ N(en, An({
1982
1992
  key: "tabItemTrans",
1983
1993
  tag: "ul",
1984
1994
  class: "stack-tab__nav"
1985
- }, w.value, { appear: "" }), {
1995
+ }, g.value, { appear: "" }), {
1986
1996
  default: ae(() => [
1987
- (z(!0), P(He, null, lt(x(d), (m, O) => (z(), ve(Pr, {
1988
- key: m.id,
1989
- contextmenu: _.contextmenu,
1990
- item: m,
1991
- onContextmenu: we(
1992
- (a) => x(c)(a, m, O, x(d).length),
1997
+ (z(!0), j(He, null, ft(S(d), (y, x) => (z(), me(Pr, {
1998
+ key: y.id,
1999
+ contextmenu: k.contextmenu,
2000
+ item: y,
2001
+ onContextmenu: _e(
2002
+ (l) => S(a)(l, y, x, S(d).length),
1993
2003
  ["prevent"]
1994
2004
  ),
1995
- onMouseup: we((a) => I(m), ["middle", "prevent"]),
2005
+ onMouseup: _e((l) => I(y), ["middle", "prevent"]),
1996
2006
  onClose: I,
1997
2007
  onActive: T
1998
2008
  }, null, 8, ["contextmenu", "item", "onContextmenu", "onMouseup"]))), 128))
@@ -2002,56 +2012,56 @@ const os = ["disabled", "title"], is = {
2002
2012
  ]),
2003
2013
  _: 1
2004
2014
  }, 8, ["space", "is-scroll-wheel", "is-scroll-button"]),
2005
- ke(_.$slots, "rightButton"),
2006
- N(it, {
2007
- "icon-class": x(r) ? "stack-tab__icon-restore" : "stack-tab__icon-fullscreen",
2008
- title: x(n)("VueStackTab.maximum"),
2009
- onClick: k[0] || (k[0] = (m) => r.value = !x(r))
2015
+ ke(k.$slots, "rightButton"),
2016
+ N(ct, {
2017
+ "icon-class": S(r) ? "stack-tab__icon-restore" : "stack-tab__icon-fullscreen",
2018
+ title: S(n)("VueStackTab.maximum"),
2019
+ onClick: w[0] || (w[0] = (y) => r.value = !S(r))
2010
2020
  }, null, 8, ["icon-class", "title"]),
2011
- N(Qt, {
2021
+ N(tn, {
2012
2022
  name: "stack-tab-zoom",
2013
2023
  appear: ""
2014
2024
  }, {
2015
2025
  default: ae(() => [
2016
- x(i) ? (z(), ve(Lr, {
2026
+ S(i) ? (z(), me(Lr, {
2017
2027
  key: "tabMenuTrans",
2018
- left: x(u).left,
2019
- top: x(u).top,
2020
- "tab-item": x(u).item,
2021
- max: x(u).max,
2022
- index: x(u).index
2023
- }, null, 8, ["left", "top", "tab-item", "max", "index"])) : ne("", !0)
2028
+ left: S(u).left,
2029
+ top: S(u).top,
2030
+ "tab-item": S(u).item,
2031
+ max: S(u).max,
2032
+ index: S(u).index
2033
+ }, null, 8, ["left", "top", "tab-item", "max", "index"])) : re("", !0)
2024
2034
  ]),
2025
2035
  _: 1
2026
2036
  })
2027
2037
  ]));
2028
2038
  }
2029
2039
  });
2030
- var us = typeof global == "object" && global && global.Object === Object && global, fs = typeof self == "object" && self && self.Object === Object && self, yn = us || fs || Function("return this")(), Ve = yn.Symbol, wn = Object.prototype, ds = wn.hasOwnProperty, hs = wn.toString, Te = Ve ? Ve.toStringTag : void 0;
2040
+ var us = typeof global == "object" && global && global.Object === Object && global, fs = typeof self == "object" && self && self.Object === Object && self, yn = us || fs || Function("return this")(), Ve = yn.Symbol, _n = Object.prototype, ds = _n.hasOwnProperty, hs = _n.toString, we = Ve ? Ve.toStringTag : void 0;
2031
2041
  function ps(e) {
2032
- var t = ds.call(e, Te), n = e[Te];
2042
+ var t = ds.call(e, we), n = e[we];
2033
2043
  try {
2034
- e[Te] = void 0;
2044
+ e[we] = void 0;
2035
2045
  var r = !0;
2036
2046
  } catch {
2037
2047
  }
2038
2048
  var s = hs.call(e);
2039
- return r && (t ? e[Te] = n : delete e[Te]), s;
2049
+ return r && (t ? e[we] = n : delete e[we]), s;
2040
2050
  }
2041
- var bs = Object.prototype, vs = bs.toString;
2042
- function ms(e) {
2043
- return vs.call(e);
2051
+ var bs = Object.prototype, ms = bs.toString;
2052
+ function vs(e) {
2053
+ return ms.call(e);
2044
2054
  }
2045
- var gs = "[object Null]", ys = "[object Undefined]", Ut = Ve ? Ve.toStringTag : void 0;
2046
- function ws(e) {
2047
- return e == null ? e === void 0 ? ys : gs : Ut && Ut in Object(e) ? ps(e) : ms(e);
2055
+ var gs = "[object Null]", ys = "[object Undefined]", Ft = Ve ? Ve.toStringTag : void 0;
2056
+ function _s(e) {
2057
+ return e == null ? e === void 0 ? ys : gs : Ft && Ft in Object(e) ? ps(e) : vs(e);
2048
2058
  }
2049
2059
  function ks(e) {
2050
2060
  return e != null && typeof e == "object";
2051
2061
  }
2052
- var _s = "[object Symbol]";
2062
+ var ws = "[object Symbol]";
2053
2063
  function Ts(e) {
2054
- return typeof e == "symbol" || ks(e) && ws(e) == _s;
2064
+ return typeof e == "symbol" || ks(e) && _s(e) == ws;
2055
2065
  }
2056
2066
  var xs = /\s/;
2057
2067
  function Ss(e) {
@@ -2067,12 +2077,12 @@ function Fe(e) {
2067
2077
  var t = typeof e;
2068
2078
  return e != null && (t == "object" || t == "function");
2069
2079
  }
2070
- var Vt = NaN, As = /^[-+]0x[0-9a-f]+$/i, Is = /^0b[01]+$/i, Bs = /^0o[0-7]+$/i, Cs = parseInt;
2071
- function Ft(e) {
2080
+ var qt = NaN, As = /^[-+]0x[0-9a-f]+$/i, Is = /^0b[01]+$/i, Bs = /^0o[0-7]+$/i, Cs = parseInt;
2081
+ function Gt(e) {
2072
2082
  if (typeof e == "number")
2073
2083
  return e;
2074
2084
  if (Ts(e))
2075
- return Vt;
2085
+ return qt;
2076
2086
  if (Fe(e)) {
2077
2087
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
2078
2088
  e = Fe(t) ? t + "" : t;
@@ -2081,57 +2091,57 @@ function Ft(e) {
2081
2091
  return e === 0 ? e : +e;
2082
2092
  e = Es(e);
2083
2093
  var n = Is.test(e);
2084
- return n || Bs.test(e) ? Cs(e.slice(2), n ? 2 : 8) : As.test(e) ? Vt : +e;
2094
+ return n || Bs.test(e) ? Cs(e.slice(2), n ? 2 : 8) : As.test(e) ? qt : +e;
2085
2095
  }
2086
2096
  var tt = function() {
2087
2097
  return yn.Date.now();
2088
2098
  }, Ms = "Expected a function", Ls = Math.max, zs = Math.min;
2089
2099
  function $s(e, t, n) {
2090
- var r, s, o, i, u, c, l = 0, h = !1, f = !1, d = !0;
2100
+ var r, s, o, i, u, a, c = 0, h = !1, f = !1, d = !0;
2091
2101
  if (typeof e != "function")
2092
2102
  throw new TypeError(Ms);
2093
- t = Ft(t) || 0, Fe(n) && (h = !!n.leading, f = "maxWait" in n, o = f ? Ls(Ft(n.maxWait) || 0, t) : o, d = "trailing" in n ? !!n.trailing : d);
2094
- function w(a) {
2095
- var b = r, y = s;
2096
- return r = s = void 0, l = a, i = e.apply(y, b), i;
2103
+ t = Gt(t) || 0, Fe(n) && (h = !!n.leading, f = "maxWait" in n, o = f ? Ls(Gt(n.maxWait) || 0, t) : o, d = "trailing" in n ? !!n.trailing : d);
2104
+ function g(l) {
2105
+ var v = r, _ = s;
2106
+ return r = s = void 0, c = l, i = e.apply(_, v), i;
2097
2107
  }
2098
- function S(a) {
2099
- return l = a, u = setTimeout(T, t), h ? w(a) : i;
2108
+ function O(l) {
2109
+ return c = l, u = setTimeout(T, t), h ? g(l) : i;
2100
2110
  }
2101
- function B(a) {
2102
- var b = a - c, y = a - l, j = t - b;
2103
- return f ? zs(j, o - y) : j;
2111
+ function B(l) {
2112
+ var v = l - a, _ = l - c, $ = t - v;
2113
+ return f ? zs($, o - _) : $;
2104
2114
  }
2105
- function I(a) {
2106
- var b = a - c, y = a - l;
2107
- return c === void 0 || b >= t || b < 0 || f && y >= o;
2115
+ function I(l) {
2116
+ var v = l - a, _ = l - c;
2117
+ return a === void 0 || v >= t || v < 0 || f && _ >= o;
2108
2118
  }
2109
2119
  function T() {
2110
- var a = tt();
2111
- if (I(a))
2112
- return _(a);
2113
- u = setTimeout(T, B(a));
2120
+ var l = tt();
2121
+ if (I(l))
2122
+ return k(l);
2123
+ u = setTimeout(T, B(l));
2114
2124
  }
2115
- function _(a) {
2116
- return u = void 0, d && r ? w(a) : (r = s = void 0, i);
2125
+ function k(l) {
2126
+ return u = void 0, d && r ? g(l) : (r = s = void 0, i);
2117
2127
  }
2118
- function k() {
2119
- u !== void 0 && clearTimeout(u), l = 0, r = c = s = u = void 0;
2128
+ function w() {
2129
+ u !== void 0 && clearTimeout(u), c = 0, r = a = s = u = void 0;
2120
2130
  }
2121
- function m() {
2122
- return u === void 0 ? i : _(tt());
2131
+ function y() {
2132
+ return u === void 0 ? i : k(tt());
2123
2133
  }
2124
- function O() {
2125
- var a = tt(), b = I(a);
2126
- if (r = arguments, s = this, c = a, b) {
2134
+ function x() {
2135
+ var l = tt(), v = I(l);
2136
+ if (r = arguments, s = this, a = l, v) {
2127
2137
  if (u === void 0)
2128
- return S(c);
2138
+ return O(a);
2129
2139
  if (f)
2130
- return clearTimeout(u), u = setTimeout(T, t), w(c);
2140
+ return clearTimeout(u), u = setTimeout(T, t), g(a);
2131
2141
  }
2132
2142
  return u === void 0 && (u = setTimeout(T, t)), i;
2133
2143
  }
2134
- return O.cancel = k, O.flush = m, O;
2144
+ return x.cancel = w, x.flush = y, x;
2135
2145
  }
2136
2146
  var Rs = "Expected a function";
2137
2147
  function Ns(e, t, n) {
@@ -2144,45 +2154,45 @@ function Ns(e, t, n) {
2144
2154
  trailing: s
2145
2155
  });
2146
2156
  }
2147
- let qt;
2157
+ let Ht;
2148
2158
  const Ps = () => {
2149
- const e = ut(), { active: t, hasTab: n, pageShown: r, reset: s, canAddTab: o } = Me(), i = Ce(), u = Ns((h) => new Promise((f, d) => {
2159
+ const e = dt(), { active: t, hasTab: n, pageShown: r, reset: s, canAddTab: o } = Me(), i = Ce(), u = Ns((h) => new Promise((f, d) => {
2150
2160
  if (!r.value) {
2151
2161
  d();
2152
2162
  return;
2153
2163
  }
2154
- const w = te(h, { refreshable: !0, closable: !0, iframe: !1 });
2155
- if (n(w.id)) {
2156
- i.emit(F.TAB_ACTIVE, { id: w.id }), f(w.id);
2164
+ const g = ne(h, { refreshable: !0, closable: !0, iframe: !1 });
2165
+ if (n(g.id)) {
2166
+ i.emit(V.TAB_ACTIVE, { id: g.id }), f(g.id);
2157
2167
  return;
2158
2168
  }
2159
- if (w.id || (w.id = an()), !o()) {
2169
+ if (g.id || (g.id = nt()), !o()) {
2160
2170
  d("Max Size");
2161
2171
  return;
2162
2172
  }
2163
- c(h, w), f(w.id);
2164
- }), 500), c = (h, f) => {
2165
- const d = dn(f);
2166
- let w = te(
2173
+ a(h, g), f(g.id);
2174
+ }), 500), a = (h, f) => {
2175
+ const d = ot(f);
2176
+ let g = ne(
2167
2177
  {
2168
2178
  __tab: d
2169
2179
  },
2170
2180
  h.query
2171
- ), S;
2181
+ ), O;
2172
2182
  if (h.iframe) {
2173
2183
  const B = encodeURIComponent(h.path);
2174
- S = qt, w.__src = B;
2184
+ O = Ht, g.__src = B;
2175
2185
  } else {
2176
- const B = bt(h.path);
2177
- S = B.path, w = te(B.query, w);
2186
+ const B = vt(h.path);
2187
+ O = B.path, g = ne(B.query, g);
2178
2188
  }
2179
2189
  e.push({
2180
- path: S,
2181
- query: w
2190
+ path: O,
2191
+ query: g
2182
2192
  });
2183
2193
  };
2184
2194
  return { openNewTab: u, setIFramePath: (h) => {
2185
- qt = h;
2195
+ Ht = h;
2186
2196
  }, active: t, reset: s };
2187
2197
  }, Ds = { class: "stack-tab__container" }, js = ["src"], Ws = /* @__PURE__ */ Q({
2188
2198
  __name: "StackTabs",
@@ -2203,29 +2213,29 @@ const Ps = () => {
2203
2213
  },
2204
2214
  emits: ["onActive", "onPageLoaded"],
2205
2215
  setup(e, { emit: t }) {
2206
- const { tabs: n, pageShown: r, caches: s, destroy: o, addPage: i, initial: u, setMaxSize: c, setGlobalScroll: l } = Me(), h = t, f = e, { changeLocale: d } = Ze(), w = $(!1);
2207
- In("maximum", w);
2208
- const { setIFramePath: S } = Ps();
2209
- S(f.iframePath), l(f.globalScroll), d(f.i18n), Bn(() => {
2216
+ const { tabs: n, pageShown: r, caches: s, destroy: o, addPage: i, initial: u, setMaxSize: a, setGlobalScroll: c } = Me(), h = t, f = e, { changeLocale: d } = Be(), g = R(!1);
2217
+ In("maximum", g);
2218
+ const { setIFramePath: O } = Ps();
2219
+ O(f.iframePath), c(f.globalScroll), d(f.i18n), Bn(() => {
2210
2220
  u(f.defaultTabs);
2211
2221
  });
2212
- const B = (k, m) => i(k, m), I = (k) => {
2222
+ const B = (k, w) => i(k, w), I = (k) => {
2213
2223
  h("onActive", k);
2214
2224
  };
2215
- c(f.max), Cn(() => {
2225
+ a(f.max), Cn(() => {
2216
2226
  o();
2217
2227
  });
2218
2228
  const T = () => {
2219
2229
  h("onPageLoaded");
2220
- }, _ = $(!0);
2221
- return (k, m) => {
2222
- const O = Zt("router-view");
2223
- return z(), P("div", {
2224
- class: ce(["stack-tab", { "stack-tab__maximum": w.value }]),
2225
- style: ct({
2230
+ };
2231
+ return (k, w) => {
2232
+ const y = Yt("router-view");
2233
+ return z(), j("div", {
2234
+ class: ce(["stack-tab", { "stack-tab__maximum": g.value }]),
2235
+ style: ut({
2226
2236
  width: k.width,
2227
2237
  height: k.height,
2228
- "z-index": w.value ? x(sn)("body *:not(.stack-tab,.stack-tab *)") : void 0
2238
+ "z-index": g.value ? S(an)("body *:not(.stack-tab,.stack-tab *)") : void 0
2229
2239
  })
2230
2240
  }, [
2231
2241
  N(ls, {
@@ -2243,21 +2253,19 @@ const Ps = () => {
2243
2253
  _: 3
2244
2254
  }, 8, ["space", "tab-transition", "max"]),
2245
2255
  K("div", Ds, [
2246
- N(O, null, {
2247
- default: ae(({ Component: a, route: b }) => [
2248
- N(Qt, {
2256
+ N(y, null, {
2257
+ default: ae(({ Component: x, route: l }) => [
2258
+ N(tn, {
2249
2259
  name: k.pageTransition,
2250
- onBeforeLeave: m[0] || (m[0] = (y) => _.value = !1),
2251
- onAfterLeave: m[1] || (m[1] = (y) => _.value = !0),
2252
2260
  appear: "",
2253
2261
  mode: "out-in"
2254
2262
  }, {
2255
2263
  default: ae(() => [
2256
- (z(), ve(Mn, { include: x(s) }, [
2257
- x(r) ? (z(), ve(Ln(B(b, a)), {
2258
- key: b.fullPath,
2264
+ (z(), me(Mn, { include: S(s) }, [
2265
+ S(r) ? (z(), me(Ln(B(l, x)), {
2266
+ key: l.fullPath,
2259
2267
  onOnLoaded: T
2260
- }, null, 32)) : ne("", !0)
2268
+ }, null, 32)) : re("", !0)
2261
2269
  ], 1032, ["include"]))
2262
2270
  ]),
2263
2271
  _: 2
@@ -2265,19 +2273,18 @@ const Ps = () => {
2265
2273
  ]),
2266
2274
  _: 1
2267
2275
  }),
2268
- N(Kt, {
2276
+ N(en, {
2269
2277
  name: k.pageTransition,
2270
- appear: "",
2271
- mode: "in-out"
2278
+ appear: ""
2272
2279
  }, {
2273
2280
  default: ae(() => [
2274
- (z(!0), P(He, null, lt(x(n).filter((a) => a.iframe), (a) => Yt((z(), P("iframe", {
2275
- key: a.id,
2281
+ (z(!0), j(He, null, ft(S(n).filter((x) => x.iframe), (x) => Kt((z(), j("iframe", {
2282
+ key: x.id,
2276
2283
  class: "stack-tab__iframe",
2277
- src: /^(javascript|data):/i.test(a.url ?? "") ? "about:blank" : a.url,
2284
+ src: /^(javascript|data):/i.test(x.url ?? "") ? "about:blank" : x.url,
2278
2285
  frameborder: "0"
2279
2286
  }, null, 8, js)), [
2280
- [Jt, a.active && _.value]
2287
+ [Qt, x.active]
2281
2288
  ])), 128))
2282
2289
  ]),
2283
2290
  _: 1
@@ -2286,13 +2293,13 @@ const Ps = () => {
2286
2293
  ], 6);
2287
2294
  };
2288
2295
  }
2289
- }), mt = typeof Buffer == "function";
2296
+ }), yt = typeof Buffer == "function";
2290
2297
  typeof TextDecoder == "function" && new TextDecoder();
2291
- const Gt = typeof TextEncoder == "function" ? new TextEncoder() : void 0, Us = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Se = Array.prototype.slice.call(Us);
2298
+ const Zt = typeof TextEncoder == "function" ? new TextEncoder() : void 0, Us = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", xe = Array.prototype.slice.call(Us);
2292
2299
  ((e) => {
2293
2300
  let t = {};
2294
2301
  return e.forEach((n, r) => t[n] = r), t;
2295
- })(Se);
2302
+ })(xe);
2296
2303
  const J = String.fromCharCode.bind(String);
2297
2304
  typeof Uint8Array.from == "function" && Uint8Array.from.bind(Uint8Array);
2298
2305
  const Vs = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" : "_"), Fs = (e) => {
@@ -2301,10 +2308,10 @@ const Vs = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
2301
2308
  for (let u = 0; u < e.length; ) {
2302
2309
  if ((n = e.charCodeAt(u++)) > 255 || (r = e.charCodeAt(u++)) > 255 || (s = e.charCodeAt(u++)) > 255)
2303
2310
  throw new TypeError("invalid character found");
2304
- t = n << 16 | r << 8 | s, o += Se[t >> 18 & 63] + Se[t >> 12 & 63] + Se[t >> 6 & 63] + Se[t & 63];
2311
+ t = n << 16 | r << 8 | s, o += xe[t >> 18 & 63] + xe[t >> 12 & 63] + xe[t >> 6 & 63] + xe[t & 63];
2305
2312
  }
2306
2313
  return i ? o.slice(0, i - 3) + "===".substring(i) : o;
2307
- }, kn = typeof btoa == "function" ? (e) => btoa(e) : mt ? (e) => Buffer.from(e, "binary").toString("base64") : Fs, qs = mt ? (e) => Buffer.from(e).toString("base64") : (e) => {
2314
+ }, kn = typeof btoa == "function" ? (e) => btoa(e) : yt ? (e) => Buffer.from(e, "binary").toString("base64") : Fs, qs = yt ? (e) => Buffer.from(e).toString("base64") : (e) => {
2308
2315
  let n = [];
2309
2316
  for (let r = 0, s = e.length; r < s; r += 4096)
2310
2317
  n.push(J.apply(null, e.subarray(r, r + 4096)));
@@ -2317,100 +2324,101 @@ const Vs = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
2317
2324
  var t = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
2318
2325
  return J(240 | t >>> 18 & 7) + J(128 | t >>> 12 & 63) + J(128 | t >>> 6 & 63) + J(128 | t & 63);
2319
2326
  }
2320
- }, Hs = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, Zs = (e) => e.replace(Hs, Gs), Ht = mt ? (e) => Buffer.from(e, "utf8").toString("base64") : Gt ? (e) => qs(Gt.encode(e)) : (e) => kn(Zs(e)), Xs = (e, t = !1) => t ? Vs(Ht(e)) : Ht(e), Ys = (e) => {
2327
+ }, Hs = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, Zs = (e) => e.replace(Hs, Gs), Xt = yt ? (e) => Buffer.from(e, "utf8").toString("base64") : Zt ? (e) => qs(Zt.encode(e)) : (e) => kn(Zs(e)), Xs = (e, t = !1) => t ? Vs(Xt(e)) : Xt(e), Ys = (e) => {
2321
2328
  const r = `<?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>`, i = "data:image/svg+xml;base64," + Xs(r), u = "font-size: 1px; padding: " + Math.floor(100 / 4) + "px " + Math.floor(580 / 2) + "px; line-height: " + Math.floor(100 / 2) + "px;";
2322
2329
  window.console.log(
2323
2330
  "%c+",
2324
2331
  u + `background-image: url(${i});background-size: 580px 100px;background-repeat: norepeat; color: transparent;`
2325
2332
  );
2326
2333
  }, Js = () => {
2327
- const { attrs: e, props: t } = en(), { pageShown: n, getTab: r, markDeletableCache: s, removeComponent: o, getComponent: i, addPageScroller: u } = Me(), c = zn(), l = ut();
2334
+ const { attrs: e, props: t } = nn(), { pageShown: n, getTab: r, markDeletableCache: s, removeComponent: o, getComponent: i, addPageScroller: u } = Me(), a = zn(), c = dt();
2328
2335
  let h = "", f = "";
2329
2336
  h = e.tId || t.tId;
2330
2337
  const d = e.pId || t.pId;
2331
- return f = c.query.__tab, {
2338
+ return f = a.query.__tab, {
2332
2339
  forward: (I) => {
2333
- const T = te(
2340
+ const T = ne(
2334
2341
  {
2335
2342
  __tab: f
2336
2343
  },
2337
2344
  I.query
2338
2345
  );
2339
- l.push({
2346
+ c.push({
2340
2347
  path: I.path,
2341
2348
  query: T
2342
2349
  });
2343
2350
  },
2344
2351
  backward: (I, T) => {
2345
- const _ = r(h);
2346
- if (!_)
2352
+ const k = r(h);
2353
+ if (!k)
2347
2354
  return;
2348
- const k = _.pages;
2349
- let m = 0;
2355
+ const w = k.pages;
2356
+ let y = 0;
2350
2357
  if (typeof I == "number")
2351
- m = Math.abs(I);
2358
+ y = Math.abs(I);
2352
2359
  else {
2353
- let b = 1, y = !1;
2354
- const j = k.list(), q = bt(I);
2355
- T = te(q.query, T);
2356
- for (let G = k.size() - 2; G >= 0; G--) {
2357
- if (j[G].path === q.path) {
2358
- y = !0;
2360
+ let v = 1, _ = !1;
2361
+ const $ = w.list(), Z = vt(I);
2362
+ T = ne(Z.query, T);
2363
+ for (let F = w.size() - 2; F >= 0; F--) {
2364
+ if ($[F].path === Z.path) {
2365
+ _ = !0;
2359
2366
  break;
2360
2367
  }
2361
- b += 1;
2368
+ v += 1;
2362
2369
  }
2363
- y && (m = b);
2370
+ _ && (y = v);
2364
2371
  }
2365
- if (m === 0 || k.size() <= m)
2372
+ if (y === 0 || w.size() <= y)
2366
2373
  return;
2367
- for (let b = 0; b < m; b++) {
2368
- const y = k.pop();
2369
- o(y.id), s(y.id);
2374
+ for (let v = 0; v < y; v++) {
2375
+ const _ = w.pop();
2376
+ o(_.id), s(_.id);
2370
2377
  }
2371
- const O = k == null ? void 0 : k.peek(), a = i(O.id);
2372
- if (a != null) {
2373
- const b = a.components.DynamicComponent;
2374
- b.props = te(T, b.props);
2378
+ const x = w == null ? void 0 : w.peek(), l = i(x.id);
2379
+ if (l != null) {
2380
+ const v = l.components.DynamicComponent;
2381
+ v.props = ne(T, v.props);
2375
2382
  }
2376
- l.push({
2377
- path: O.path,
2378
- query: O.query
2383
+ c.push({
2384
+ path: x.path,
2385
+ query: x.query
2379
2386
  });
2380
2387
  },
2381
2388
  addScroller: (...I) => {
2382
2389
  u(d, ...I);
2383
2390
  }
2384
2391
  };
2385
- }, to = /* @__PURE__ */ Q({
2392
+ }, no = /* @__PURE__ */ Q({
2386
2393
  __name: "iframe",
2387
2394
  setup(e) {
2388
- return Js(), (t, n) => (z(), P("div"));
2395
+ return Js(), () => {
2396
+ };
2389
2397
  }
2390
- }), no = () => {
2391
- const e = Ce(), { attrs: t } = en();
2398
+ }), ro = () => {
2399
+ const e = Ce(), { attrs: t } = nn();
2392
2400
  Ge(() => {
2393
2401
  r();
2394
2402
  });
2395
2403
  const n = () => {
2396
- e.emit(F.PAGE_LOADING, { tId: t.tId, value: !0 });
2404
+ e.emit(V.PAGE_LOADING, { tId: t.tId, value: !0 });
2397
2405
  }, r = () => {
2398
- e.emit(F.PAGE_LOADING, { tId: t.tId, value: !1 });
2406
+ e.emit(V.PAGE_LOADING, { tId: t.tId, value: !1 });
2399
2407
  };
2400
2408
  return { openTabLoading: n, closeTabLoading: r };
2401
- }, ro = {
2409
+ }, so = {
2402
2410
  install(e, t) {
2403
- Ys("0.1.31"), e.component("VueStackTabs", Ws).use(xr).use(Xn().getI18n(t));
2411
+ Ys("0.1.33"), e.component("VueStackTabs", Ws).use(xr).use(Xn().getI18n(t));
2404
2412
  }
2405
2413
  };
2406
2414
  export {
2407
- to as IFrame,
2408
- Ye as Stack,
2415
+ no as IFrame,
2416
+ Xe as Stack,
2409
2417
  Ws as StackTab,
2410
- it as TabHeaderButton,
2418
+ ct as TabHeaderButton,
2411
2419
  he as TabScrollMode,
2412
- ro as default,
2420
+ so as default,
2413
2421
  Ps as useStackTab,
2414
- no as useTabLoading,
2422
+ ro as useTabLoading,
2415
2423
  Js as useTabRouter
2416
2424
  };