vue-stack-tabs 0.1.19 → 0.1.21

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