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