vue-stack-tabs 0.1.36 → 0.1.38
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 +131 -49
- package/dist/src/lib/components/ContextMenu/ContextMenuItem.vue.d.ts +3 -12
- package/dist/src/lib/components/ContextMenu/index.vue.d.ts +6 -30
- package/dist/src/lib/components/PageLoading.vue.d.ts +3 -12
- package/dist/src/lib/components/TabHeader/TabHeaderButton.vue.d.ts +4 -29
- package/dist/src/lib/components/TabHeader/TabHeaderItem.vue.d.ts +7 -16
- package/dist/src/lib/components/TabHeader/TabHeaderScroll.vue.d.ts +5 -30
- package/dist/src/lib/components/TabHeader/index.vue.d.ts +8 -38
- package/dist/src/lib/hooks/useContextMenu.d.ts +3 -2
- package/dist/src/lib/hooks/useStackTab.d.ts +5 -2
- package/dist/src/lib/hooks/useTabMitt.d.ts +3 -2
- package/dist/src/lib/hooks/useTabRouter.d.ts +2 -1
- package/dist/src/lib/hooks/useTabpanel.d.ts +26 -6
- package/dist/src/lib/i18n/index.d.ts +1 -1
- package/dist/src/lib/iframe.vue.d.ts +1 -1
- package/dist/src/lib/index.d.ts +8 -8
- package/dist/src/lib/utils/TabIdHelper.d.ts +2 -1
- package/dist/src/lib/utils/TabScrollHelper.d.ts +3 -3
- package/dist/style.css +1 -1
- package/dist/vue-stack-tabs.es.js +1355 -1508
- package/dist/vue-stack-tabs.umd.js +2 -3
- package/package.json +49 -52
- package/src/lib/StackTabs.vue +135 -124
- package/src/lib/assets/style/transition.scss +62 -40
- package/src/lib/hooks/useStackTab.ts +119 -112
- package/src/lib/hooks/useTabRouter.ts +103 -99
- package/src/lib/hooks/useTabpanel.tsx +685 -684
- package/src/lib/utils/TabIdHelper.ts +70 -70
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { inject as
|
|
5
|
-
import { useRouter as
|
|
6
|
-
const
|
|
1
|
+
var hn = Object.defineProperty;
|
|
2
|
+
var pn = (t, e, n) => e in t ? hn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var gt = (t, e, n) => pn(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
+
import { inject as ot, ref as D, reactive as Ie, readonly as yt, toRaw as bn, defineComponent as ee, openBlock as z, createElementBlock as V, createElementVNode as Q, createCommentVNode as se, unref as T, nextTick as ce, onMounted as Fe, onDeactivated as vn, onActivated as mn, onUnmounted as He, createVNode as $, resolveComponent as Ft, normalizeClass as ue, withModifiers as _e, toDisplayString as Ht, normalizeStyle as it, Fragment as Ze, renderList as at, createBlock as me, computed as we, renderSlot as xe, watch as gn, withDirectives as Zt, vShow as jt, withCtx as le, TransitionGroup as Xt, mergeProps as yn, Transition as Gt, provide as wn, onBeforeMount as kn, onBeforeUnmount as _n, KeepAlive as xn, resolveDynamicComponent as Tn, getCurrentInstance as Yt } from "vue";
|
|
5
|
+
import { useRouter as ct, useRoute as Sn } from "vue-router";
|
|
6
|
+
const On = {
|
|
7
7
|
VueStackTab: {
|
|
8
8
|
close: "close",
|
|
9
9
|
closeLeft: "close left",
|
|
@@ -17,10 +17,10 @@ const $n = {
|
|
|
17
17
|
undefined: "undefined",
|
|
18
18
|
loading: "loading"
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, An = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21
21
|
__proto__: null,
|
|
22
|
-
default:
|
|
23
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
22
|
+
default: On
|
|
23
|
+
}, Symbol.toStringTag, { value: "Module" })), En = {
|
|
24
24
|
VueStackTab: {
|
|
25
25
|
close: "关闭",
|
|
26
26
|
closeLeft: "关闭左侧",
|
|
@@ -34,188 +34,188 @@ const $n = {
|
|
|
34
34
|
undefined: "未命名",
|
|
35
35
|
loading: "加载中"
|
|
36
36
|
}
|
|
37
|
-
},
|
|
37
|
+
}, In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
38
38
|
__proto__: null,
|
|
39
|
-
default:
|
|
39
|
+
default: En
|
|
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
|
|
48
|
-
const
|
|
49
|
-
return
|
|
46
|
+
const Bn = ["__proto__", "prototype", "constructor"];
|
|
47
|
+
function Mn(t) {
|
|
48
|
+
const e = typeof t;
|
|
49
|
+
return t !== null && (e === "object" || e === "function");
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
return !(Array.isArray(
|
|
51
|
+
function Cn(t) {
|
|
52
|
+
return !(Array.isArray(t) ? t.length : Object.keys(t).length);
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
return !
|
|
54
|
+
function Ln(t) {
|
|
55
|
+
return !t.some((e) => Bn.indexOf(e) !== -1);
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
const
|
|
59
|
-
for (let
|
|
60
|
-
let
|
|
61
|
-
for (;
|
|
62
|
-
|
|
63
|
-
n.push(
|
|
64
|
-
}
|
|
65
|
-
return
|
|
57
|
+
function zn(t) {
|
|
58
|
+
const e = t.split("."), n = [];
|
|
59
|
+
for (let s = 0; s < e.length; s++) {
|
|
60
|
+
let r = e[s];
|
|
61
|
+
for (; r[r.length - 1] === "\\" && e[s + 1] !== void 0; )
|
|
62
|
+
r = r.slice(0, -1) + ".", r += e[++s];
|
|
63
|
+
n.push(r);
|
|
64
|
+
}
|
|
65
|
+
return Ln(n) ? n : [];
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
if (!
|
|
67
|
+
function wt(t, e) {
|
|
68
|
+
if (!Mn(t))
|
|
69
69
|
return "";
|
|
70
|
-
const n =
|
|
70
|
+
const n = zn(e);
|
|
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 s = Object.assign({}, t);
|
|
74
|
+
for (let r = 0; r < n.length; r++) {
|
|
75
|
+
if (typeof s[n[r]] == "string")
|
|
76
|
+
return s[n[r]];
|
|
77
|
+
if (s = s[n[r]], s == null) {
|
|
78
|
+
if (r !== n.length - 1)
|
|
79
79
|
return "";
|
|
80
80
|
break;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
return "";
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
if (Array.isArray(
|
|
87
|
-
const n = {},
|
|
88
|
-
return
|
|
89
|
-
|
|
85
|
+
function Rn(t, e) {
|
|
86
|
+
if (Array.isArray(e)) {
|
|
87
|
+
const n = {}, s = [...t.matchAll(/{(.+?)}/g)];
|
|
88
|
+
return s && s.forEach((r, o) => {
|
|
89
|
+
e[o] && (n[r[1]] = e[o]);
|
|
90
90
|
}), n;
|
|
91
91
|
}
|
|
92
|
-
return t;
|
|
93
|
-
}
|
|
94
|
-
function qn(e, t) {
|
|
95
|
-
for (const n in t)
|
|
96
|
-
e = e.replace(`{${n}}`, String(t[n]));
|
|
97
92
|
return e;
|
|
98
93
|
}
|
|
99
|
-
function
|
|
100
|
-
|
|
101
|
-
t
|
|
102
|
-
|
|
94
|
+
function Dn(t, e) {
|
|
95
|
+
for (const n in e)
|
|
96
|
+
t = t.replace(`{${n}}`, String(e[n]));
|
|
97
|
+
return t;
|
|
98
|
+
}
|
|
99
|
+
function Kt(t, e) {
|
|
100
|
+
return Object.keys(e).forEach((n) => {
|
|
101
|
+
e[n] instanceof Object && n in t && (e[n] = { ...e[n], ...Kt(t[n], e[n]) });
|
|
102
|
+
}), { ...t || {}, ...e };
|
|
103
103
|
}
|
|
104
|
-
const
|
|
105
|
-
function
|
|
106
|
-
return
|
|
104
|
+
const $n = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol", Nn = (t) => $n ? Symbol(t) : "_vt_" + t, Jt = /* @__PURE__ */ Nn("i18n");
|
|
105
|
+
function Me() {
|
|
106
|
+
return ot(Jt);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
const
|
|
110
|
-
return Object.entries(
|
|
111
|
-
r
|
|
108
|
+
function Pn(t) {
|
|
109
|
+
const e = Object.assign({ locale: "en", fallbackLocale: "en", messages: {} }, t), n = D(e.locale), s = Ie({});
|
|
110
|
+
return Object.entries(e.messages).forEach(([r, o]) => {
|
|
111
|
+
s[r] = o;
|
|
112
112
|
}), {
|
|
113
|
-
t(
|
|
114
|
-
if (!
|
|
113
|
+
t(r, o) {
|
|
114
|
+
if (!r)
|
|
115
115
|
return "";
|
|
116
116
|
const i = typeof o == "string" && o ? o : n.value;
|
|
117
|
-
let f =
|
|
117
|
+
let f = wt(s[i], r) || wt(s[e.fallbackLocale], r);
|
|
118
118
|
if (o && typeof o != "string") {
|
|
119
|
-
const a =
|
|
120
|
-
|
|
119
|
+
const a = Rn(f, o);
|
|
120
|
+
Cn(a) || (f = Dn(f, a));
|
|
121
121
|
}
|
|
122
|
-
return f ||
|
|
122
|
+
return f || r;
|
|
123
123
|
},
|
|
124
|
-
current:
|
|
125
|
-
options:
|
|
126
|
-
install(
|
|
124
|
+
current: yt(n),
|
|
125
|
+
options: yt(t || {}),
|
|
126
|
+
install(r) {
|
|
127
127
|
const o = this;
|
|
128
|
-
|
|
128
|
+
r.config.globalProperties.$t = o.t, r.provide(Jt, o);
|
|
129
129
|
},
|
|
130
|
-
changeLocale(
|
|
131
|
-
n.value =
|
|
130
|
+
changeLocale(r) {
|
|
131
|
+
n.value = r;
|
|
132
132
|
},
|
|
133
|
-
setLocaleMessage(
|
|
134
|
-
r
|
|
133
|
+
setLocaleMessage(r, o) {
|
|
134
|
+
s[r] = Kt(bn(s[r] || {}), o);
|
|
135
135
|
},
|
|
136
|
-
getLocaleMessage(
|
|
137
|
-
return r
|
|
136
|
+
getLocaleMessage(r) {
|
|
137
|
+
return s[r] || {};
|
|
138
138
|
}
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
|
-
const
|
|
142
|
-
const
|
|
143
|
-
function
|
|
144
|
-
for (const i in
|
|
145
|
-
if (
|
|
141
|
+
const Wn = () => {
|
|
142
|
+
const t = /* @__PURE__ */ Object.assign({ "./lang/en.ts": An, "./lang/zh-CN.ts": In });
|
|
143
|
+
function e(r, o) {
|
|
144
|
+
for (const i in r)
|
|
145
|
+
if (r[i].default) {
|
|
146
146
|
const f = i.substring(i.lastIndexOf("/") + 1, i.lastIndexOf("."));
|
|
147
147
|
o[f] ? o[f] = {
|
|
148
|
-
...
|
|
149
|
-
...
|
|
150
|
-
} : o[f] =
|
|
148
|
+
...r[f],
|
|
149
|
+
...r[i].default
|
|
150
|
+
} : o[f] = r[i].default;
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
const n = () => {
|
|
154
|
-
const
|
|
155
|
-
return t
|
|
154
|
+
const r = {};
|
|
155
|
+
return e(t, r), r;
|
|
156
156
|
};
|
|
157
157
|
return {
|
|
158
|
-
getI18n: (
|
|
158
|
+
getI18n: (r) => {
|
|
159
159
|
const o = { ...n() };
|
|
160
|
-
if (
|
|
161
|
-
for (const i of
|
|
160
|
+
if (r)
|
|
161
|
+
for (const i of r)
|
|
162
162
|
o[i.locale] = i.messages;
|
|
163
|
-
return
|
|
163
|
+
return Pn({
|
|
164
164
|
locale: "zh-CN",
|
|
165
165
|
fallbackLocale: "en",
|
|
166
166
|
messages: o
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
};
|
|
170
|
-
},
|
|
171
|
-
wrap:
|
|
172
|
-
left:
|
|
170
|
+
}, Qt = ({
|
|
171
|
+
wrap: t,
|
|
172
|
+
left: e = 0,
|
|
173
173
|
top: n = 0,
|
|
174
|
-
smooth:
|
|
174
|
+
smooth: s = !0
|
|
175
175
|
}) => {
|
|
176
|
-
|
|
177
|
-
left:
|
|
176
|
+
t && (t.scrollTo ? t.scrollTo({
|
|
177
|
+
left: e,
|
|
178
178
|
top: n,
|
|
179
|
-
behavior:
|
|
180
|
-
}) : (
|
|
179
|
+
behavior: s ? "smooth" : "auto"
|
|
180
|
+
}) : (t.scrollLeft = e, t.scrollTop = n));
|
|
181
181
|
};
|
|
182
|
-
function
|
|
183
|
-
el:
|
|
184
|
-
wrap:
|
|
182
|
+
function Vn({
|
|
183
|
+
el: t,
|
|
184
|
+
wrap: e,
|
|
185
185
|
block: n = "start",
|
|
186
|
-
inline:
|
|
186
|
+
inline: s = "nearest"
|
|
187
187
|
}) {
|
|
188
|
-
if (!(!
|
|
189
|
-
if (
|
|
190
|
-
|
|
188
|
+
if (!(!t || !e))
|
|
189
|
+
if (t.scrollIntoView)
|
|
190
|
+
t.scrollIntoView({ behavior: "smooth", block: n, inline: s });
|
|
191
191
|
else {
|
|
192
|
-
const { offsetLeft:
|
|
192
|
+
const { offsetLeft: r, offsetTop: o } = t;
|
|
193
193
|
let i, f;
|
|
194
|
-
n === "center" ? f = o + (
|
|
194
|
+
n === "center" ? f = o + (t.clientHeight - e.clientHeight) / 2 : f = o, s === "center" ? i = r + (t.clientWidth - e.clientWidth) / 2 : i = r, Qt({ wrap: e, left: i, top: f });
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
const
|
|
198
|
-
const
|
|
197
|
+
const en = (t = ".stack-tab__container *") => {
|
|
198
|
+
const e = Array.from(document.querySelectorAll(t)).map(
|
|
199
199
|
(n) => +window.getComputedStyle(n).zIndex || 0
|
|
200
200
|
);
|
|
201
|
-
return
|
|
201
|
+
return e.length ? Math.max(...e.filter((n) => n < 9e4)) + 1 : 1;
|
|
202
202
|
};
|
|
203
|
-
var
|
|
204
|
-
class
|
|
203
|
+
var pe = /* @__PURE__ */ ((t) => (t.WHEEL = "wheel", t.BUTTON = "button", t.BOTH = "both", t))(pe || {});
|
|
204
|
+
class je {
|
|
205
205
|
//
|
|
206
|
-
constructor(
|
|
206
|
+
constructor(e) {
|
|
207
207
|
// 存储的Map
|
|
208
|
-
|
|
209
|
-
if (this.items = /* @__PURE__ */ new Map(),
|
|
210
|
-
for (const n of
|
|
208
|
+
gt(this, "items");
|
|
209
|
+
if (this.items = /* @__PURE__ */ new Map(), e)
|
|
210
|
+
for (const n of e)
|
|
211
211
|
this.push(n);
|
|
212
212
|
}
|
|
213
213
|
/**
|
|
214
214
|
* @description: 入栈
|
|
215
215
|
* @param {T} element 要入栈的元素
|
|
216
216
|
*/
|
|
217
|
-
push(
|
|
218
|
-
this.items.set(this.items.size,
|
|
217
|
+
push(e) {
|
|
218
|
+
this.items.set(this.items.size, e);
|
|
219
219
|
}
|
|
220
220
|
/**
|
|
221
221
|
* @description: 出栈
|
|
@@ -224,8 +224,8 @@ class Xe {
|
|
|
224
224
|
pop() {
|
|
225
225
|
if (this.isEmpty())
|
|
226
226
|
return;
|
|
227
|
-
const
|
|
228
|
-
return this.items.delete(this.items.size - 1),
|
|
227
|
+
const e = this.items.get(this.items.size - 1);
|
|
228
|
+
return this.items.delete(this.items.size - 1), e;
|
|
229
229
|
}
|
|
230
230
|
/**
|
|
231
231
|
* @description: 返回栈顶的元素
|
|
@@ -265,153 +265,78 @@ class Xe {
|
|
|
265
265
|
toString() {
|
|
266
266
|
if (this.isEmpty())
|
|
267
267
|
return "";
|
|
268
|
-
let
|
|
269
|
-
return this.items.forEach((n,
|
|
270
|
-
|
|
271
|
-
}),
|
|
268
|
+
let e = "";
|
|
269
|
+
return this.items.forEach((n, s) => {
|
|
270
|
+
e = `${e}${s === 0 ? "" : ", "}${n}`;
|
|
271
|
+
}), e;
|
|
272
272
|
}
|
|
273
273
|
toJSON() {
|
|
274
274
|
return Array.from(this.items.values());
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
|
-
function
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
}
|
|
281
|
-
function ht(e) {
|
|
282
|
-
return Jn(e) === "[object Error]" || e instanceof Error;
|
|
277
|
+
function We(t) {
|
|
278
|
+
var e = new Error(t);
|
|
279
|
+
return e.source = "ulid", e;
|
|
283
280
|
}
|
|
284
|
-
|
|
285
|
-
|
|
281
|
+
var lt = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", Oe = lt.length, kt = Math.pow(2, 48) - 1, Un = 10, qn = 16;
|
|
282
|
+
function Fn(t) {
|
|
283
|
+
var e = Math.floor(t() * Oe);
|
|
284
|
+
return e === Oe && (e = Oe - 1), lt.charAt(e);
|
|
286
285
|
}
|
|
287
|
-
function
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
else
|
|
300
|
-
throw new Error("Invalid arguments passed to Layerr");
|
|
301
|
-
return {
|
|
302
|
-
options: t,
|
|
303
|
-
shortMessage: n
|
|
304
|
-
};
|
|
286
|
+
function Hn(t, e) {
|
|
287
|
+
if (isNaN(t))
|
|
288
|
+
throw new Error(t + " must be a number");
|
|
289
|
+
if (t > kt)
|
|
290
|
+
throw We("cannot encode time greater than " + kt);
|
|
291
|
+
if (t < 0)
|
|
292
|
+
throw We("time must be positive");
|
|
293
|
+
if (Number.isInteger(t) === !1)
|
|
294
|
+
throw We("time must be an integer");
|
|
295
|
+
for (var n = void 0, s = ""; e > 0; e--)
|
|
296
|
+
n = t % Oe, s = lt.charAt(n) + s, t = (t - n) / Oe;
|
|
297
|
+
return s;
|
|
305
298
|
}
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
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 f = s.constructorOpt || this.constructor;
|
|
312
|
-
Error.captureStackTrace(this, f);
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
static cause(t) {
|
|
316
|
-
return Ye(t), t._cause && ht(t._cause) ? t._cause : null;
|
|
317
|
-
}
|
|
318
|
-
static fullStack(t) {
|
|
319
|
-
Ye(t);
|
|
320
|
-
const n = Z.cause(t);
|
|
321
|
-
return n ? `${t.stack}
|
|
322
|
-
caused by: ${Z.fullStack(n)}` : t.stack;
|
|
323
|
-
}
|
|
324
|
-
static info(t) {
|
|
325
|
-
Ye(t);
|
|
326
|
-
const n = {}, r = Z.cause(t);
|
|
327
|
-
return r && Object.assign(n, Z.info(r)), t._info && Object.assign(n, t._info), n;
|
|
328
|
-
}
|
|
329
|
-
cause() {
|
|
330
|
-
return Z.cause(this);
|
|
331
|
-
}
|
|
332
|
-
toString() {
|
|
333
|
-
let t = this.name || this.constructor.name || this.constructor.prototype.name;
|
|
334
|
-
return this.message && (t = `${t}: ${this.message}`), t;
|
|
335
|
-
}
|
|
299
|
+
function Zn(t, e) {
|
|
300
|
+
for (var n = ""; t > 0; t--)
|
|
301
|
+
n = Fn(e) + n;
|
|
302
|
+
return n;
|
|
336
303
|
}
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
const r = new Uint8Array(1);
|
|
304
|
+
function jn() {
|
|
305
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, e = arguments[1];
|
|
306
|
+
e || (e = typeof window < "u" ? window : null);
|
|
307
|
+
var n = e && (e.crypto || e.msCrypto);
|
|
308
|
+
if (n)
|
|
309
|
+
return function() {
|
|
310
|
+
var r = new Uint8Array(1);
|
|
345
311
|
return n.getRandomValues(r), r[0] / 255;
|
|
346
312
|
};
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
313
|
+
try {
|
|
314
|
+
var s = require("crypto");
|
|
315
|
+
return function() {
|
|
316
|
+
return s.randomBytes(1).readUInt8() / 255;
|
|
317
|
+
};
|
|
318
|
+
} catch {
|
|
319
|
+
}
|
|
320
|
+
if (t) {
|
|
321
|
+
try {
|
|
322
|
+
} catch {
|
|
353
323
|
}
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
function rr(e, t) {
|
|
360
|
-
let n = "";
|
|
361
|
-
for (; e > 0; e--)
|
|
362
|
-
n = ir(t) + n;
|
|
363
|
-
return n;
|
|
364
|
-
}
|
|
365
|
-
function sr(e, t) {
|
|
366
|
-
if (isNaN(e))
|
|
367
|
-
throw new Z({
|
|
368
|
-
info: {
|
|
369
|
-
code: "ENC_TIME_NAN",
|
|
370
|
-
...xe
|
|
371
|
-
}
|
|
372
|
-
}, `Time must be a number: ${e}`);
|
|
373
|
-
if (e > xt)
|
|
374
|
-
throw new Z({
|
|
375
|
-
info: {
|
|
376
|
-
code: "ENC_TIME_SIZE_EXCEED",
|
|
377
|
-
...xe
|
|
378
|
-
}
|
|
379
|
-
}, `Cannot encode a time larger than ${xt}: ${e}`);
|
|
380
|
-
if (e < 0)
|
|
381
|
-
throw new Z({
|
|
382
|
-
info: {
|
|
383
|
-
code: "ENC_TIME_NEG",
|
|
384
|
-
...xe
|
|
385
|
-
}
|
|
386
|
-
}, `Time must be positive: ${e}`);
|
|
387
|
-
if (Number.isInteger(e) === !1)
|
|
388
|
-
throw new Z({
|
|
389
|
-
info: {
|
|
390
|
-
code: "ENC_TIME_TYPE",
|
|
391
|
-
...xe
|
|
392
|
-
}
|
|
393
|
-
}, `Time must be an integer: ${e}`);
|
|
394
|
-
let n, r = "";
|
|
395
|
-
for (let s = t; s > 0; s--)
|
|
396
|
-
n = e % Oe, r = cn.charAt(n) + r, e = (e - n) / Oe;
|
|
397
|
-
return r;
|
|
398
|
-
}
|
|
399
|
-
function or() {
|
|
400
|
-
return typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope;
|
|
401
|
-
}
|
|
402
|
-
function ir(e) {
|
|
403
|
-
let t = Math.floor(e() * Oe);
|
|
404
|
-
return t === Oe && (t = Oe - 1), cn.charAt(t);
|
|
324
|
+
return function() {
|
|
325
|
+
return Math.random();
|
|
326
|
+
};
|
|
327
|
+
}
|
|
328
|
+
throw We("secure crypto unusable, insecure Math.random not allowed");
|
|
405
329
|
}
|
|
406
|
-
function
|
|
407
|
-
|
|
408
|
-
|
|
330
|
+
function Xn(t) {
|
|
331
|
+
return t || (t = jn()), function(n) {
|
|
332
|
+
return isNaN(n) && (n = Date.now()), Hn(n, Un) + Zn(qn, t);
|
|
333
|
+
};
|
|
409
334
|
}
|
|
410
|
-
var
|
|
411
|
-
|
|
412
|
-
(function(
|
|
413
|
-
var
|
|
414
|
-
var n = String.fromCharCode,
|
|
335
|
+
var Je = Xn(), ut = { exports: {} };
|
|
336
|
+
ut.exports;
|
|
337
|
+
(function(t) {
|
|
338
|
+
var e = function() {
|
|
339
|
+
var n = String.fromCharCode, s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$", o = {};
|
|
415
340
|
function i(a, c) {
|
|
416
341
|
if (!o[a]) {
|
|
417
342
|
o[a] = {};
|
|
@@ -422,10 +347,9 @@ pt.exports;
|
|
|
422
347
|
}
|
|
423
348
|
var f = {
|
|
424
349
|
compressToBase64: function(a) {
|
|
425
|
-
if (a == null)
|
|
426
|
-
return "";
|
|
350
|
+
if (a == null) return "";
|
|
427
351
|
var c = f._compress(a, 6, function(p) {
|
|
428
|
-
return
|
|
352
|
+
return s.charAt(p);
|
|
429
353
|
});
|
|
430
354
|
switch (c.length % 4) {
|
|
431
355
|
default:
|
|
@@ -441,7 +365,7 @@ pt.exports;
|
|
|
441
365
|
},
|
|
442
366
|
decompressFromBase64: function(a) {
|
|
443
367
|
return a == null ? "" : a == "" ? null : f._decompress(a.length, 32, function(c) {
|
|
444
|
-
return i(
|
|
368
|
+
return i(s, a.charAt(c));
|
|
445
369
|
});
|
|
446
370
|
},
|
|
447
371
|
compressToUTF16: function(a) {
|
|
@@ -456,9 +380,9 @@ pt.exports;
|
|
|
456
380
|
},
|
|
457
381
|
//compress into uint8array (UCS-2 big endian format)
|
|
458
382
|
compressToUint8Array: function(a) {
|
|
459
|
-
for (var c = f.compress(a), p = new Uint8Array(c.length * 2),
|
|
460
|
-
var
|
|
461
|
-
p[
|
|
383
|
+
for (var c = f.compress(a), p = new Uint8Array(c.length * 2), l = 0, u = c.length; l < u; l++) {
|
|
384
|
+
var k = c.charCodeAt(l);
|
|
385
|
+
p[l * 2] = k >>> 8, p[l * 2 + 1] = k % 256;
|
|
462
386
|
}
|
|
463
387
|
return p;
|
|
464
388
|
},
|
|
@@ -466,23 +390,23 @@ pt.exports;
|
|
|
466
390
|
decompressFromUint8Array: function(a) {
|
|
467
391
|
if (a == null)
|
|
468
392
|
return f.decompress(a);
|
|
469
|
-
for (var c = new Array(a.length / 2), p = 0,
|
|
393
|
+
for (var c = new Array(a.length / 2), p = 0, l = c.length; p < l; p++)
|
|
470
394
|
c[p] = a[p * 2] * 256 + a[p * 2 + 1];
|
|
471
|
-
var
|
|
472
|
-
return c.forEach(function(
|
|
473
|
-
|
|
474
|
-
}), f.decompress(
|
|
395
|
+
var u = [];
|
|
396
|
+
return c.forEach(function(k) {
|
|
397
|
+
u.push(n(k));
|
|
398
|
+
}), f.decompress(u.join(""));
|
|
475
399
|
},
|
|
476
400
|
//compress into a string that is already URI encoded
|
|
477
401
|
compressToEncodedURIComponent: function(a) {
|
|
478
402
|
return a == null ? "" : f._compress(a, 6, function(c) {
|
|
479
|
-
return
|
|
403
|
+
return r.charAt(c);
|
|
480
404
|
});
|
|
481
405
|
},
|
|
482
406
|
//decompress from an output of compressToEncodedURIComponent
|
|
483
407
|
decompressFromEncodedURIComponent: function(a) {
|
|
484
408
|
return a == null ? "" : a == "" ? null : (a = a.replace(/ /g, "+"), f._decompress(a.length, 32, function(c) {
|
|
485
|
-
return i(
|
|
409
|
+
return i(r, a.charAt(c));
|
|
486
410
|
}));
|
|
487
411
|
},
|
|
488
412
|
compress: function(a) {
|
|
@@ -491,59 +415,57 @@ pt.exports;
|
|
|
491
415
|
});
|
|
492
416
|
},
|
|
493
417
|
_compress: function(a, c, p) {
|
|
494
|
-
if (a == null)
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
k = T;
|
|
418
|
+
if (a == null) return "";
|
|
419
|
+
var l, u, k = {}, S = {}, B = "", I = "", y = "", g = 2, x = 3, b = 2, O = [], h = 0, _ = 0, w;
|
|
420
|
+
for (w = 0; w < a.length; w += 1)
|
|
421
|
+
if (B = a.charAt(w), Object.prototype.hasOwnProperty.call(k, B) || (k[B] = x++, S[B] = !0), I = y + B, Object.prototype.hasOwnProperty.call(k, I))
|
|
422
|
+
y = I;
|
|
500
423
|
else {
|
|
501
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
502
|
-
if (
|
|
503
|
-
for (
|
|
504
|
-
|
|
505
|
-
for (
|
|
506
|
-
|
|
424
|
+
if (Object.prototype.hasOwnProperty.call(S, y)) {
|
|
425
|
+
if (y.charCodeAt(0) < 256) {
|
|
426
|
+
for (l = 0; l < b; l++)
|
|
427
|
+
h = h << 1, _ == c - 1 ? (_ = 0, O.push(p(h)), h = 0) : _++;
|
|
428
|
+
for (u = y.charCodeAt(0), l = 0; l < 8; l++)
|
|
429
|
+
h = h << 1 | u & 1, _ == c - 1 ? (_ = 0, O.push(p(h)), h = 0) : _++, u = u >> 1;
|
|
507
430
|
} else {
|
|
508
|
-
for (
|
|
509
|
-
|
|
510
|
-
for (
|
|
511
|
-
|
|
431
|
+
for (u = 1, l = 0; l < b; l++)
|
|
432
|
+
h = h << 1 | u, _ == c - 1 ? (_ = 0, O.push(p(h)), h = 0) : _++, u = 0;
|
|
433
|
+
for (u = y.charCodeAt(0), l = 0; l < 16; l++)
|
|
434
|
+
h = h << 1 | u & 1, _ == c - 1 ? (_ = 0, O.push(p(h)), h = 0) : _++, u = u >> 1;
|
|
512
435
|
}
|
|
513
|
-
|
|
436
|
+
g--, g == 0 && (g = Math.pow(2, b), b++), delete S[y];
|
|
514
437
|
} else
|
|
515
|
-
for (
|
|
516
|
-
|
|
517
|
-
|
|
438
|
+
for (u = k[y], l = 0; l < b; l++)
|
|
439
|
+
h = h << 1 | u & 1, _ == c - 1 ? (_ = 0, O.push(p(h)), h = 0) : _++, u = u >> 1;
|
|
440
|
+
g--, g == 0 && (g = Math.pow(2, b), b++), k[I] = x++, y = String(B);
|
|
518
441
|
}
|
|
519
|
-
if (
|
|
520
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
521
|
-
if (
|
|
522
|
-
for (
|
|
523
|
-
|
|
524
|
-
for (
|
|
525
|
-
|
|
442
|
+
if (y !== "") {
|
|
443
|
+
if (Object.prototype.hasOwnProperty.call(S, y)) {
|
|
444
|
+
if (y.charCodeAt(0) < 256) {
|
|
445
|
+
for (l = 0; l < b; l++)
|
|
446
|
+
h = h << 1, _ == c - 1 ? (_ = 0, O.push(p(h)), h = 0) : _++;
|
|
447
|
+
for (u = y.charCodeAt(0), l = 0; l < 8; l++)
|
|
448
|
+
h = h << 1 | u & 1, _ == c - 1 ? (_ = 0, O.push(p(h)), h = 0) : _++, u = u >> 1;
|
|
526
449
|
} else {
|
|
527
|
-
for (
|
|
528
|
-
|
|
529
|
-
for (
|
|
530
|
-
|
|
450
|
+
for (u = 1, l = 0; l < b; l++)
|
|
451
|
+
h = h << 1 | u, _ == c - 1 ? (_ = 0, O.push(p(h)), h = 0) : _++, u = 0;
|
|
452
|
+
for (u = y.charCodeAt(0), l = 0; l < 16; l++)
|
|
453
|
+
h = h << 1 | u & 1, _ == c - 1 ? (_ = 0, O.push(p(h)), h = 0) : _++, u = u >> 1;
|
|
531
454
|
}
|
|
532
|
-
|
|
455
|
+
g--, g == 0 && (g = Math.pow(2, b), b++), delete S[y];
|
|
533
456
|
} else
|
|
534
|
-
for (
|
|
535
|
-
|
|
536
|
-
|
|
457
|
+
for (u = k[y], l = 0; l < b; l++)
|
|
458
|
+
h = h << 1 | u & 1, _ == c - 1 ? (_ = 0, O.push(p(h)), h = 0) : _++, u = u >> 1;
|
|
459
|
+
g--, g == 0 && (g = Math.pow(2, b), b++);
|
|
537
460
|
}
|
|
538
|
-
for (
|
|
539
|
-
|
|
461
|
+
for (u = 2, l = 0; l < b; l++)
|
|
462
|
+
h = h << 1 | u & 1, _ == c - 1 ? (_ = 0, O.push(p(h)), h = 0) : _++, u = u >> 1;
|
|
540
463
|
for (; ; )
|
|
541
|
-
if (
|
|
542
|
-
|
|
464
|
+
if (h = h << 1, _ == c - 1) {
|
|
465
|
+
O.push(p(h));
|
|
543
466
|
break;
|
|
544
|
-
} else
|
|
545
|
-
|
|
546
|
-
return S.join("");
|
|
467
|
+
} else _++;
|
|
468
|
+
return O.join("");
|
|
547
469
|
},
|
|
548
470
|
decompress: function(a) {
|
|
549
471
|
return a == null ? "" : a == "" ? null : f._decompress(a.length, 32768, function(c) {
|
|
@@ -551,238 +473,245 @@ pt.exports;
|
|
|
551
473
|
});
|
|
552
474
|
},
|
|
553
475
|
_decompress: function(a, c, p) {
|
|
554
|
-
var
|
|
555
|
-
for (
|
|
556
|
-
|
|
557
|
-
for (x = 0,
|
|
558
|
-
|
|
476
|
+
var l = [], u = 4, k = 4, S = 3, B = "", I = [], y, g, x, b, O, h, _, w = { val: p(0), position: c, index: 1 };
|
|
477
|
+
for (y = 0; y < 3; y += 1)
|
|
478
|
+
l[y] = y;
|
|
479
|
+
for (x = 0, O = Math.pow(2, 2), h = 1; h != O; )
|
|
480
|
+
b = w.val & w.position, w.position >>= 1, w.position == 0 && (w.position = c, w.val = p(w.index++)), x |= (b > 0 ? 1 : 0) * h, h <<= 1;
|
|
559
481
|
switch (x) {
|
|
560
482
|
case 0:
|
|
561
|
-
for (x = 0,
|
|
562
|
-
|
|
563
|
-
|
|
483
|
+
for (x = 0, O = Math.pow(2, 8), h = 1; h != O; )
|
|
484
|
+
b = w.val & w.position, w.position >>= 1, w.position == 0 && (w.position = c, w.val = p(w.index++)), x |= (b > 0 ? 1 : 0) * h, h <<= 1;
|
|
485
|
+
_ = n(x);
|
|
564
486
|
break;
|
|
565
487
|
case 1:
|
|
566
|
-
for (x = 0,
|
|
567
|
-
|
|
568
|
-
|
|
488
|
+
for (x = 0, O = Math.pow(2, 16), h = 1; h != O; )
|
|
489
|
+
b = w.val & w.position, w.position >>= 1, w.position == 0 && (w.position = c, w.val = p(w.index++)), x |= (b > 0 ? 1 : 0) * h, h <<= 1;
|
|
490
|
+
_ = n(x);
|
|
569
491
|
break;
|
|
570
492
|
case 2:
|
|
571
493
|
return "";
|
|
572
494
|
}
|
|
573
|
-
for (
|
|
574
|
-
if (
|
|
495
|
+
for (l[3] = _, g = _, I.push(_); ; ) {
|
|
496
|
+
if (w.index > a)
|
|
575
497
|
return "";
|
|
576
|
-
for (x = 0,
|
|
577
|
-
|
|
578
|
-
switch (
|
|
498
|
+
for (x = 0, O = Math.pow(2, S), h = 1; h != O; )
|
|
499
|
+
b = w.val & w.position, w.position >>= 1, w.position == 0 && (w.position = c, w.val = p(w.index++)), x |= (b > 0 ? 1 : 0) * h, h <<= 1;
|
|
500
|
+
switch (_ = x) {
|
|
579
501
|
case 0:
|
|
580
|
-
for (x = 0,
|
|
581
|
-
|
|
582
|
-
|
|
502
|
+
for (x = 0, O = Math.pow(2, 8), h = 1; h != O; )
|
|
503
|
+
b = w.val & w.position, w.position >>= 1, w.position == 0 && (w.position = c, w.val = p(w.index++)), x |= (b > 0 ? 1 : 0) * h, h <<= 1;
|
|
504
|
+
l[k++] = n(x), _ = k - 1, u--;
|
|
583
505
|
break;
|
|
584
506
|
case 1:
|
|
585
|
-
for (x = 0,
|
|
586
|
-
|
|
587
|
-
|
|
507
|
+
for (x = 0, O = Math.pow(2, 16), h = 1; h != O; )
|
|
508
|
+
b = w.val & w.position, w.position >>= 1, w.position == 0 && (w.position = c, w.val = p(w.index++)), x |= (b > 0 ? 1 : 0) * h, h <<= 1;
|
|
509
|
+
l[k++] = n(x), _ = k - 1, u--;
|
|
588
510
|
break;
|
|
589
511
|
case 2:
|
|
590
|
-
return
|
|
512
|
+
return I.join("");
|
|
591
513
|
}
|
|
592
|
-
if (
|
|
593
|
-
B =
|
|
594
|
-
else if (
|
|
595
|
-
B =
|
|
514
|
+
if (u == 0 && (u = Math.pow(2, S), S++), l[_])
|
|
515
|
+
B = l[_];
|
|
516
|
+
else if (_ === k)
|
|
517
|
+
B = g + g.charAt(0);
|
|
596
518
|
else
|
|
597
519
|
return null;
|
|
598
|
-
|
|
520
|
+
I.push(B), l[k++] = g + B.charAt(0), u--, g = B, u == 0 && (u = Math.pow(2, S), S++);
|
|
599
521
|
}
|
|
600
522
|
}
|
|
601
523
|
};
|
|
602
524
|
return f;
|
|
603
525
|
}();
|
|
604
|
-
|
|
605
|
-
return
|
|
526
|
+
t != null ? t.exports = e : typeof angular < "u" && angular != null && angular.module("LZString", []).factory("LZString", function() {
|
|
527
|
+
return e;
|
|
606
528
|
});
|
|
607
|
-
})(
|
|
608
|
-
var
|
|
609
|
-
const
|
|
529
|
+
})(ut);
|
|
530
|
+
var tn = ut.exports;
|
|
531
|
+
const Gn = new TextEncoder(), Yn = new TextDecoder("utf-8", { ignoreBOM: !0 }), _t = {
|
|
610
532
|
/* API */
|
|
611
|
-
encode: (
|
|
612
|
-
decode: (
|
|
613
|
-
},
|
|
614
|
-
const
|
|
615
|
-
for (let
|
|
616
|
-
n[
|
|
533
|
+
encode: (t) => Gn.encode(t),
|
|
534
|
+
decode: (t) => Yn.decode(t)
|
|
535
|
+
}, nn = (() => {
|
|
536
|
+
const e = [..."0123456789abcdef"], n = new Array(256);
|
|
537
|
+
for (let s = 0; s < 256; s++)
|
|
538
|
+
n[s] = `${e[s >>> 4 & 15]}${e[s & 15]}`;
|
|
617
539
|
return n;
|
|
618
|
-
})(),
|
|
619
|
-
const
|
|
620
|
-
for (let
|
|
621
|
-
const n =
|
|
622
|
-
|
|
540
|
+
})(), Kn = (() => {
|
|
541
|
+
const t = {};
|
|
542
|
+
for (let e = 0; e < 256; e++) {
|
|
543
|
+
const n = nn[e], s = n[0], r = s.toUpperCase(), o = n[1], i = o.toUpperCase();
|
|
544
|
+
t[n] = e, t[`${s}${i}`] = e, t[`${r}${o}`] = e, t[`${r}${i}`] = e;
|
|
623
545
|
}
|
|
624
|
-
return
|
|
625
|
-
})(),
|
|
546
|
+
return t;
|
|
547
|
+
})(), Jn = (t) => !(t.length % 2 || !/^[a-fA-F0-9]*$/.test(t)), Qe = {
|
|
626
548
|
/* API */
|
|
627
|
-
encode: (
|
|
628
|
-
let
|
|
629
|
-
for (let n = 0,
|
|
630
|
-
|
|
631
|
-
return
|
|
549
|
+
encode: (t) => {
|
|
550
|
+
let e = "";
|
|
551
|
+
for (let n = 0, s = t.length; n < s; n++)
|
|
552
|
+
e += nn[t[n]];
|
|
553
|
+
return e;
|
|
632
554
|
},
|
|
633
|
-
encodeStr: (
|
|
634
|
-
decode: (
|
|
635
|
-
const
|
|
636
|
-
for (let
|
|
637
|
-
n[
|
|
555
|
+
encodeStr: (t) => Qe.encode(_t.encode(t)),
|
|
556
|
+
decode: (t) => {
|
|
557
|
+
const e = t.length / 2, n = new Uint8Array(e);
|
|
558
|
+
for (let s = 0; s < e; s++)
|
|
559
|
+
n[s] = Kn[t.slice(s * 2, s * 2 + 2)];
|
|
638
560
|
return n;
|
|
639
561
|
},
|
|
640
|
-
decodeStr: (
|
|
641
|
-
is:
|
|
562
|
+
decodeStr: (t) => _t.decode(Qe.decode(t)),
|
|
563
|
+
is: Jn
|
|
642
564
|
};
|
|
643
|
-
function
|
|
644
|
-
if (!Number.isSafeInteger(
|
|
645
|
-
throw new Error(`
|
|
565
|
+
function Ae(t) {
|
|
566
|
+
if (!Number.isSafeInteger(t) || t < 0)
|
|
567
|
+
throw new Error(`positive integer expected, not ${t}`);
|
|
646
568
|
}
|
|
647
|
-
function
|
|
648
|
-
return
|
|
569
|
+
function Qn(t) {
|
|
570
|
+
return t instanceof Uint8Array || t != null && typeof t == "object" && t.constructor.name === "Uint8Array";
|
|
649
571
|
}
|
|
650
|
-
function
|
|
651
|
-
if (!
|
|
652
|
-
throw new Error("
|
|
653
|
-
if (
|
|
654
|
-
throw new Error(`
|
|
572
|
+
function ft(t, ...e) {
|
|
573
|
+
if (!Qn(t))
|
|
574
|
+
throw new Error("Uint8Array expected");
|
|
575
|
+
if (e.length > 0 && !e.includes(t.length))
|
|
576
|
+
throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`);
|
|
655
577
|
}
|
|
656
|
-
function
|
|
657
|
-
if (
|
|
578
|
+
function et(t, e = !0) {
|
|
579
|
+
if (t.destroyed)
|
|
658
580
|
throw new Error("Hash instance has been destroyed");
|
|
659
|
-
if (
|
|
581
|
+
if (e && t.finished)
|
|
660
582
|
throw new Error("Hash#digest() has already been called");
|
|
661
583
|
}
|
|
662
|
-
function
|
|
663
|
-
|
|
664
|
-
const n =
|
|
665
|
-
if (
|
|
584
|
+
function sn(t, e) {
|
|
585
|
+
ft(t);
|
|
586
|
+
const n = e.outputLen;
|
|
587
|
+
if (t.length < n)
|
|
666
588
|
throw new Error(`digestInto() expects output buffer of length at least ${n}`);
|
|
667
589
|
}
|
|
668
|
-
const
|
|
669
|
-
function
|
|
670
|
-
return
|
|
590
|
+
const ze = /* @__PURE__ */ BigInt(2 ** 32 - 1), xt = /* @__PURE__ */ BigInt(32);
|
|
591
|
+
function Tt(t, e = !1) {
|
|
592
|
+
return e ? { h: Number(t & ze), l: Number(t >> xt & ze) } : { h: Number(t >> xt & ze) | 0, l: Number(t & ze) | 0 };
|
|
671
593
|
}
|
|
672
594
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
673
|
-
const
|
|
674
|
-
function
|
|
675
|
-
|
|
595
|
+
const es = (t) => new Uint8Array(t.buffer, t.byteOffset, t.byteLength), Ue = (t) => new Uint32Array(t.buffer, t.byteOffset, Math.floor(t.byteLength / 4)), qe = (t, e) => t << 32 - e | t >>> e, j = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68, rn = (t) => t << 24 & 4278190080 | t << 8 & 16711680 | t >>> 8 & 65280 | t >>> 24 & 255, ts = j ? (t) => t : (t) => rn(t);
|
|
596
|
+
function H(t) {
|
|
597
|
+
for (let e = 0; e < t.length; e++)
|
|
598
|
+
t[e] = rn(t[e]);
|
|
676
599
|
}
|
|
677
|
-
|
|
678
|
-
if (
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
if (typeof e != "string")
|
|
682
|
-
throw new Error(`utf8ToBytes expected string, got ${typeof e}`);
|
|
683
|
-
return new Uint8Array(new TextEncoder().encode(e));
|
|
600
|
+
function ns(t) {
|
|
601
|
+
if (typeof t != "string")
|
|
602
|
+
throw new Error(`utf8ToBytes expected string, got ${typeof t}`);
|
|
603
|
+
return new Uint8Array(new TextEncoder().encode(t));
|
|
684
604
|
}
|
|
685
|
-
function
|
|
686
|
-
|
|
687
|
-
throw new Error(`expected Uint8Array, got ${typeof e}`);
|
|
688
|
-
return e;
|
|
605
|
+
function dt(t) {
|
|
606
|
+
return typeof t == "string" && (t = ns(t)), ft(t), t;
|
|
689
607
|
}
|
|
690
|
-
class
|
|
608
|
+
class ss {
|
|
691
609
|
// Safe version that clones internal state
|
|
692
610
|
clone() {
|
|
693
611
|
return this._cloneInto();
|
|
694
612
|
}
|
|
695
613
|
}
|
|
696
|
-
function
|
|
697
|
-
const
|
|
698
|
-
return
|
|
614
|
+
function rs(t) {
|
|
615
|
+
const e = (s, r) => t(r).update(dt(s)).digest(), n = t({});
|
|
616
|
+
return e.outputLen = n.outputLen, e.blockLen = n.blockLen, e.create = (s) => t(s), e;
|
|
699
617
|
}
|
|
700
|
-
class
|
|
701
|
-
constructor(
|
|
702
|
-
if (super(), this.blockLen =
|
|
618
|
+
class os extends ss {
|
|
619
|
+
constructor(e, n, s = {}, r, o, i) {
|
|
620
|
+
if (super(), this.blockLen = e, this.outputLen = n, this.length = 0, this.pos = 0, this.finished = !1, this.destroyed = !1, Ae(e), Ae(n), Ae(r), n < 0 || n > r)
|
|
703
621
|
throw new Error("outputLen bigger than keyLen");
|
|
704
|
-
if (
|
|
705
|
-
throw new Error(`key must be up 1..${
|
|
706
|
-
if (
|
|
622
|
+
if (s.key !== void 0 && (s.key.length < 1 || s.key.length > r))
|
|
623
|
+
throw new Error(`key must be up 1..${r} byte long or undefined`);
|
|
624
|
+
if (s.salt !== void 0 && s.salt.length !== o)
|
|
707
625
|
throw new Error(`salt must be ${o} byte long or undefined`);
|
|
708
|
-
if (
|
|
626
|
+
if (s.personalization !== void 0 && s.personalization.length !== i)
|
|
709
627
|
throw new Error(`personalization must be ${i} byte long or undefined`);
|
|
710
|
-
this.buffer32 = Ue(this.buffer = new Uint8Array(
|
|
628
|
+
this.buffer32 = Ue(this.buffer = new Uint8Array(e));
|
|
711
629
|
}
|
|
712
|
-
update(
|
|
713
|
-
|
|
714
|
-
const { blockLen: n, buffer:
|
|
715
|
-
|
|
716
|
-
const o =
|
|
630
|
+
update(e) {
|
|
631
|
+
et(this);
|
|
632
|
+
const { blockLen: n, buffer: s, buffer32: r } = this;
|
|
633
|
+
e = dt(e);
|
|
634
|
+
const o = e.length, i = e.byteOffset, f = e.buffer;
|
|
717
635
|
for (let a = 0; a < o; ) {
|
|
718
|
-
this.pos === n && (this.compress(
|
|
636
|
+
this.pos === n && (j || H(r), this.compress(r, 0, !1), j || H(r), this.pos = 0);
|
|
719
637
|
const c = Math.min(n - this.pos, o - a), p = i + a;
|
|
720
638
|
if (c === n && !(p % 4) && a + c < o) {
|
|
721
|
-
const
|
|
722
|
-
|
|
723
|
-
|
|
639
|
+
const l = new Uint32Array(f, p, Math.floor((o - a) / 4));
|
|
640
|
+
j || H(l);
|
|
641
|
+
for (let u = 0; a + n < o; u += r.length, a += n)
|
|
642
|
+
this.length += n, this.compress(l, u, !1);
|
|
643
|
+
j || H(l);
|
|
724
644
|
continue;
|
|
725
645
|
}
|
|
726
|
-
|
|
646
|
+
s.set(e.subarray(a, a + c), this.pos), this.pos += c, this.length += c, a += c;
|
|
727
647
|
}
|
|
728
648
|
return this;
|
|
729
649
|
}
|
|
730
|
-
digestInto(
|
|
731
|
-
|
|
732
|
-
const { pos: n, buffer32:
|
|
733
|
-
this.finished = !0, this.buffer.subarray(n).fill(0), this.compress(
|
|
734
|
-
const
|
|
735
|
-
this.get().forEach((o, i) =>
|
|
650
|
+
digestInto(e) {
|
|
651
|
+
et(this), sn(e, this);
|
|
652
|
+
const { pos: n, buffer32: s } = this;
|
|
653
|
+
this.finished = !0, this.buffer.subarray(n).fill(0), j || H(s), this.compress(s, 0, !0), j || H(s);
|
|
654
|
+
const r = Ue(e);
|
|
655
|
+
this.get().forEach((o, i) => r[i] = ts(o));
|
|
736
656
|
}
|
|
737
657
|
digest() {
|
|
738
|
-
const { buffer:
|
|
739
|
-
this.digestInto(
|
|
740
|
-
const
|
|
741
|
-
return this.destroy(),
|
|
658
|
+
const { buffer: e, outputLen: n } = this;
|
|
659
|
+
this.digestInto(e);
|
|
660
|
+
const s = e.slice(0, n);
|
|
661
|
+
return this.destroy(), s;
|
|
742
662
|
}
|
|
743
|
-
_cloneInto(
|
|
744
|
-
const { buffer: n, length:
|
|
745
|
-
return
|
|
663
|
+
_cloneInto(e) {
|
|
664
|
+
const { buffer: n, length: s, finished: r, destroyed: o, outputLen: i, pos: f } = this;
|
|
665
|
+
return e || (e = new this.constructor({ dkLen: i })), e.set(...this.get()), e.length = s, e.finished = r, e.destroyed = o, e.outputLen = i, e.buffer.set(n), e.pos = f, e;
|
|
746
666
|
}
|
|
747
667
|
}
|
|
748
|
-
const
|
|
749
|
-
|
|
750
|
-
|
|
668
|
+
const te = /* @__PURE__ */ new Uint32Array([
|
|
669
|
+
1779033703,
|
|
670
|
+
3144134277,
|
|
671
|
+
1013904242,
|
|
672
|
+
2773480762,
|
|
673
|
+
1359893119,
|
|
674
|
+
2600822924,
|
|
675
|
+
528734635,
|
|
676
|
+
1541459225
|
|
677
|
+
]);
|
|
678
|
+
function oe(t, e, n, s, r) {
|
|
679
|
+
return t = t + e + r | 0, s = qe(s ^ t, 16), n = n + s | 0, e = qe(e ^ n, 12), { a: t, b: e, c: n, d: s };
|
|
751
680
|
}
|
|
752
|
-
function
|
|
753
|
-
return
|
|
681
|
+
function ie(t, e, n, s, r) {
|
|
682
|
+
return t = t + e + r | 0, s = qe(s ^ t, 8), n = n + s | 0, e = qe(e ^ n, 7), { a: t, b: e, c: n, d: s };
|
|
754
683
|
}
|
|
755
|
-
function
|
|
756
|
-
let
|
|
757
|
-
for (let
|
|
758
|
-
({ a:
|
|
759
|
-
return { v0:
|
|
684
|
+
function St(t, e, n, s, r, o, i, f, a, c, p, l, u, k, S, B, I, y, g, x) {
|
|
685
|
+
let b = 0;
|
|
686
|
+
for (let O = 0; O < s; O++)
|
|
687
|
+
({ a: r, b: a, c: u, d: I } = oe(r, a, u, I, n[e + t[b++]])), { a: r, b: a, c: u, d: I } = ie(r, a, u, I, n[e + t[b++]]), { a: o, b: c, c: k, d: y } = oe(o, c, k, y, n[e + t[b++]]), { a: o, b: c, c: k, d: y } = ie(o, c, k, y, n[e + t[b++]]), { a: i, b: p, c: S, d: g } = oe(i, p, S, g, n[e + t[b++]]), { a: i, b: p, c: S, d: g } = ie(i, p, S, g, n[e + t[b++]]), { a: f, b: l, c: B, d: x } = oe(f, l, B, x, n[e + t[b++]]), { a: f, b: l, c: B, d: x } = ie(f, l, B, x, n[e + t[b++]]), { a: r, b: c, c: S, d: x } = oe(r, c, S, x, n[e + t[b++]]), { a: r, b: c, c: S, d: x } = ie(r, c, S, x, n[e + t[b++]]), { a: o, b: p, c: B, d: I } = oe(o, p, B, I, n[e + t[b++]]), { a: o, b: p, c: B, d: I } = ie(o, p, B, I, n[e + t[b++]]), { a: i, b: l, c: u, d: y } = oe(i, l, u, y, n[e + t[b++]]), { a: i, b: l, c: u, d: y } = ie(i, l, u, y, n[e + t[b++]]), { a: f, b: a, c: k, d: g } = oe(f, a, k, g, n[e + t[b++]]), { a: f, b: a, c: k, d: g } = ie(f, a, k, g, n[e + t[b++]]);
|
|
688
|
+
return { v0: r, v1: o, v2: i, v3: f, v4: a, v5: c, v6: p, v7: l, v8: u, v9: k, v10: S, v11: B, v12: I, v13: y, v14: g, v15: x };
|
|
760
689
|
}
|
|
761
|
-
const
|
|
762
|
-
const
|
|
763
|
-
for (let
|
|
764
|
-
n.push(...
|
|
690
|
+
const Ot = /* @__PURE__ */ (() => {
|
|
691
|
+
const t = Array.from({ length: 16 }, (s, r) => r), e = (s) => [2, 6, 3, 10, 7, 0, 4, 13, 1, 11, 12, 5, 9, 14, 15, 8].map((r) => s[r]), n = [];
|
|
692
|
+
for (let s = 0, r = t; s < 7; s++, r = e(r))
|
|
693
|
+
n.push(...r);
|
|
765
694
|
return Uint8Array.from(n);
|
|
766
695
|
})();
|
|
767
|
-
class
|
|
768
|
-
constructor(
|
|
769
|
-
if (super(64,
|
|
696
|
+
class ht extends os {
|
|
697
|
+
constructor(e = {}, n = 0) {
|
|
698
|
+
if (super(64, e.dkLen === void 0 ? 32 : e.dkLen, {}, Number.MAX_SAFE_INTEGER, 0, 0), this.flags = 0, this.chunkPos = 0, this.chunksDone = 0, this.stack = [], this.posOut = 0, this.bufferOut32 = new Uint32Array(16), this.chunkOut = 0, this.enableXOF = !0, this.outputLen = e.dkLen === void 0 ? 32 : e.dkLen, Ae(this.outputLen), e.key !== void 0 && e.context !== void 0)
|
|
770
699
|
throw new Error("Blake3: only key or context can be specified at same time");
|
|
771
|
-
if (
|
|
772
|
-
const
|
|
773
|
-
if (
|
|
700
|
+
if (e.key !== void 0) {
|
|
701
|
+
const s = dt(e.key).slice();
|
|
702
|
+
if (s.length !== 32)
|
|
774
703
|
throw new Error("Blake3: key should be 32 byte");
|
|
775
|
-
this.IV = Ue(
|
|
776
|
-
} else if (
|
|
777
|
-
const
|
|
704
|
+
this.IV = Ue(s), j || H(this.IV), this.flags = n | 16;
|
|
705
|
+
} else if (e.context !== void 0) {
|
|
706
|
+
const s = new ht(
|
|
778
707
|
{ dkLen: 32 },
|
|
779
708
|
32
|
|
780
|
-
/*
|
|
781
|
-
).update(
|
|
782
|
-
this.IV = Ue(
|
|
709
|
+
/* B3_Flags.DERIVE_KEY_CONTEXT */
|
|
710
|
+
).update(e.context).digest();
|
|
711
|
+
this.IV = Ue(s), j || H(this.IV), this.flags = n | 64;
|
|
783
712
|
} else
|
|
784
|
-
this.IV =
|
|
785
|
-
this.state = this.IV.slice(), this.bufferOut =
|
|
713
|
+
this.IV = te.slice(), this.flags = n;
|
|
714
|
+
this.state = this.IV.slice(), this.bufferOut = es(this.bufferOut32);
|
|
786
715
|
}
|
|
787
716
|
// Unused
|
|
788
717
|
get() {
|
|
@@ -790,75 +719,77 @@ class mt extends gr {
|
|
|
790
719
|
}
|
|
791
720
|
set() {
|
|
792
721
|
}
|
|
793
|
-
b2Compress(
|
|
794
|
-
const { state: o, pos: i } = this, { h: f, l: a } =
|
|
795
|
-
o[0] = c ^
|
|
722
|
+
b2Compress(e, n, s, r = 0) {
|
|
723
|
+
const { state: o, pos: i } = this, { h: f, l: a } = Tt(BigInt(e), !0), { v0: c, v1: p, v2: l, v3: u, v4: k, v5: S, v6: B, v7: I, v8: y, v9: g, v10: x, v11: b, v12: O, v13: h, v14: _, v15: w } = St(Ot, r, s, 7, o[0], o[1], o[2], o[3], o[4], o[5], o[6], o[7], te[0], te[1], te[2], te[3], f, a, i, n);
|
|
724
|
+
o[0] = c ^ y, o[1] = p ^ g, o[2] = l ^ x, o[3] = u ^ b, o[4] = k ^ O, o[5] = S ^ h, o[6] = B ^ _, o[7] = I ^ w;
|
|
796
725
|
}
|
|
797
|
-
compress(
|
|
798
|
-
let
|
|
799
|
-
if (this.chunkPos || (
|
|
726
|
+
compress(e, n = 0, s = !1) {
|
|
727
|
+
let r = this.flags;
|
|
728
|
+
if (this.chunkPos || (r |= 1), (this.chunkPos === 15 || s) && (r |= 2), s || (this.pos = this.blockLen), this.b2Compress(this.chunksDone, r, e, n), this.chunkPos += 1, this.chunkPos === 16 || s) {
|
|
800
729
|
let o = this.state;
|
|
801
730
|
this.state = this.IV.slice();
|
|
802
|
-
for (let i, f = this.chunksDone + 1; (
|
|
731
|
+
for (let i, f = this.chunksDone + 1; (s || !(f & 1)) && (i = this.stack.pop()); f >>= 1)
|
|
803
732
|
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();
|
|
804
733
|
this.chunksDone++, this.chunkPos = 0, this.stack.push(o);
|
|
805
734
|
}
|
|
806
735
|
this.pos = 0;
|
|
807
736
|
}
|
|
808
|
-
_cloneInto(
|
|
809
|
-
|
|
810
|
-
const { IV: n, flags:
|
|
811
|
-
return
|
|
737
|
+
_cloneInto(e) {
|
|
738
|
+
e = super._cloneInto(e);
|
|
739
|
+
const { IV: n, flags: s, state: r, chunkPos: o, posOut: i, chunkOut: f, stack: a, chunksDone: c } = this;
|
|
740
|
+
return e.state.set(r.slice()), e.stack = a.map((p) => Uint32Array.from(p)), e.IV.set(n), e.flags = s, e.chunkPos = o, e.chunksDone = c, e.posOut = i, e.chunkOut = f, e.enableXOF = this.enableXOF, e.bufferOut32.set(this.bufferOut32), e;
|
|
812
741
|
}
|
|
813
742
|
destroy() {
|
|
814
743
|
this.destroyed = !0, this.state.fill(0), this.buffer32.fill(0), this.IV.fill(0), this.bufferOut32.fill(0);
|
|
815
|
-
for (let
|
|
816
|
-
|
|
744
|
+
for (let e of this.stack)
|
|
745
|
+
e.fill(0);
|
|
817
746
|
}
|
|
818
747
|
// Same as b2Compress, but doesn't modify state and returns 16 u32 array (instead of 8)
|
|
819
748
|
b2CompressOut() {
|
|
820
|
-
const { state:
|
|
821
|
-
|
|
749
|
+
const { state: e, pos: n, flags: s, buffer32: r, bufferOut32: o } = this, { h: i, l: f } = Tt(BigInt(this.chunkOut++));
|
|
750
|
+
j || H(r);
|
|
751
|
+
const { v0: a, v1: c, v2: p, v3: l, v4: u, v5: k, v6: S, v7: B, v8: I, v9: y, v10: g, v11: x, v12: b, v13: O, v14: h, v15: _ } = St(Ot, 0, r, 7, e[0], e[1], e[2], e[3], e[4], e[5], e[6], e[7], te[0], te[1], te[2], te[3], f, i, n, s);
|
|
752
|
+
o[0] = a ^ I, o[1] = c ^ y, o[2] = p ^ g, o[3] = l ^ x, o[4] = u ^ b, o[5] = k ^ O, o[6] = S ^ h, o[7] = B ^ _, o[8] = e[0] ^ I, o[9] = e[1] ^ y, o[10] = e[2] ^ g, o[11] = e[3] ^ x, o[12] = e[4] ^ b, o[13] = e[5] ^ O, o[14] = e[6] ^ h, o[15] = e[7] ^ _, j || (H(r), H(o)), this.posOut = 0;
|
|
822
753
|
}
|
|
823
754
|
finish() {
|
|
824
755
|
if (this.finished)
|
|
825
756
|
return;
|
|
826
757
|
this.finished = !0, this.buffer.fill(0, this.pos);
|
|
827
|
-
let
|
|
828
|
-
this.stack.length ? (
|
|
758
|
+
let e = this.flags | 8;
|
|
759
|
+
this.stack.length ? (e |= 4, j || H(this.buffer32), this.compress(this.buffer32, 0, !0), j || H(this.buffer32), this.chunksDone = 0, this.pos = this.blockLen) : e |= (this.chunkPos ? 0 : 1) | 2, this.flags = e, this.b2CompressOut();
|
|
829
760
|
}
|
|
830
|
-
writeInto(
|
|
831
|
-
|
|
832
|
-
const { blockLen: n, bufferOut:
|
|
833
|
-
for (let
|
|
761
|
+
writeInto(e) {
|
|
762
|
+
et(this, !1), ft(e), this.finish();
|
|
763
|
+
const { blockLen: n, bufferOut: s } = this;
|
|
764
|
+
for (let r = 0, o = e.length; r < o; ) {
|
|
834
765
|
this.posOut >= n && this.b2CompressOut();
|
|
835
|
-
const i = Math.min(n - this.posOut, o -
|
|
836
|
-
|
|
766
|
+
const i = Math.min(n - this.posOut, o - r);
|
|
767
|
+
e.set(s.subarray(this.posOut, this.posOut + i), r), this.posOut += i, r += i;
|
|
837
768
|
}
|
|
838
|
-
return
|
|
769
|
+
return e;
|
|
839
770
|
}
|
|
840
|
-
xofInto(
|
|
771
|
+
xofInto(e) {
|
|
841
772
|
if (!this.enableXOF)
|
|
842
773
|
throw new Error("XOF is not possible after digest call");
|
|
843
|
-
return this.writeInto(
|
|
774
|
+
return this.writeInto(e);
|
|
844
775
|
}
|
|
845
|
-
xof(
|
|
846
|
-
return
|
|
776
|
+
xof(e) {
|
|
777
|
+
return Ae(e), this.xofInto(new Uint8Array(e));
|
|
847
778
|
}
|
|
848
|
-
digestInto(
|
|
849
|
-
if (
|
|
779
|
+
digestInto(e) {
|
|
780
|
+
if (sn(e, this), this.finished)
|
|
850
781
|
throw new Error("digest() was already called");
|
|
851
|
-
return this.enableXOF = !1, this.writeInto(
|
|
782
|
+
return this.enableXOF = !1, this.writeInto(e), this.destroy(), e;
|
|
852
783
|
}
|
|
853
784
|
digest() {
|
|
854
785
|
return this.digestInto(new Uint8Array(this.outputLen));
|
|
855
786
|
}
|
|
856
787
|
}
|
|
857
|
-
const
|
|
858
|
-
const
|
|
859
|
-
return
|
|
860
|
-
},
|
|
861
|
-
const n =
|
|
788
|
+
const is = /* @__PURE__ */ rs((t) => new ht(t)), tt = (t) => {
|
|
789
|
+
const e = `${t.id}|${t.title}|${t.iframe ? "Y" : "N"}|${t.closable ? "Y" : "N"}|${t.refreshable ? "Y" : "N"}`;
|
|
790
|
+
return tn.compressToEncodedURIComponent(e);
|
|
791
|
+
}, as = (t) => {
|
|
792
|
+
const n = tn.decompressFromEncodedURIComponent(t).split("|");
|
|
862
793
|
return {
|
|
863
794
|
id: n[0],
|
|
864
795
|
title: n[1],
|
|
@@ -866,495 +797,496 @@ const yr = /* @__PURE__ */ vr((e) => new mt(e)), ot = (e) => {
|
|
|
866
797
|
closable: n[3] === "Y",
|
|
867
798
|
refreshable: n[4] === "Y"
|
|
868
799
|
};
|
|
869
|
-
},
|
|
870
|
-
const
|
|
800
|
+
}, At = (t, e, n) => {
|
|
801
|
+
const s = [];
|
|
871
802
|
for (const o in n)
|
|
872
|
-
o.startsWith("__") ||
|
|
803
|
+
o.startsWith("__") || s.push({
|
|
873
804
|
key: o,
|
|
874
805
|
value: n[o]
|
|
875
806
|
});
|
|
876
|
-
|
|
807
|
+
s.sort((o, i) => {
|
|
877
808
|
let f = 0;
|
|
878
809
|
return o.key > i.key ? f = 1 : o.key < i.key && (f = -1), f;
|
|
879
810
|
});
|
|
880
|
-
const
|
|
881
|
-
return
|
|
811
|
+
const r = is(`${t}|${e}|${JSON.stringify(s)}`);
|
|
812
|
+
return Qe.encode(r);
|
|
882
813
|
};
|
|
883
|
-
function
|
|
884
|
-
if (
|
|
814
|
+
function Xe(t) {
|
|
815
|
+
if (t === null || typeof t != "object")
|
|
885
816
|
return !1;
|
|
886
|
-
const
|
|
887
|
-
return
|
|
817
|
+
const e = Object.getPrototypeOf(t);
|
|
818
|
+
return e !== null && e !== Object.prototype && Object.getPrototypeOf(e) !== null || Symbol.iterator in t ? !1 : Symbol.toStringTag in t ? Object.prototype.toString.call(t) === "[object Module]" : !0;
|
|
888
819
|
}
|
|
889
|
-
function
|
|
890
|
-
if (!
|
|
891
|
-
return
|
|
892
|
-
const
|
|
893
|
-
for (const o in
|
|
820
|
+
function nt(t, e, n = ".", s) {
|
|
821
|
+
if (!Xe(e))
|
|
822
|
+
return nt(t, {}, n, s);
|
|
823
|
+
const r = Object.assign({}, e);
|
|
824
|
+
for (const o in t) {
|
|
894
825
|
if (o === "__proto__" || o === "constructor")
|
|
895
826
|
continue;
|
|
896
|
-
const i =
|
|
897
|
-
i != null && (
|
|
827
|
+
const i = t[o];
|
|
828
|
+
i != null && (s && s(r, o, i, n) || (Array.isArray(i) && Array.isArray(r[o]) ? r[o] = [...i, ...r[o]] : Xe(i) && Xe(r[o]) ? r[o] = nt(
|
|
898
829
|
i,
|
|
899
|
-
|
|
830
|
+
r[o],
|
|
900
831
|
(n ? `${n}.` : "") + o.toString(),
|
|
901
|
-
|
|
902
|
-
) :
|
|
832
|
+
s
|
|
833
|
+
) : r[o] = i));
|
|
903
834
|
}
|
|
904
|
-
return
|
|
835
|
+
return r;
|
|
905
836
|
}
|
|
906
|
-
function
|
|
907
|
-
return (...
|
|
837
|
+
function cs(t) {
|
|
838
|
+
return (...e) => (
|
|
908
839
|
// eslint-disable-next-line unicorn/no-array-reduce
|
|
909
|
-
|
|
840
|
+
e.reduce((n, s) => nt(n, s, "", t), {})
|
|
910
841
|
);
|
|
911
842
|
}
|
|
912
|
-
const
|
|
913
|
-
const
|
|
914
|
-
if (
|
|
843
|
+
const ne = cs(), pt = (t) => {
|
|
844
|
+
const e = t.split("?");
|
|
845
|
+
if (e.length <= 1)
|
|
915
846
|
return {
|
|
916
|
-
path:
|
|
847
|
+
path: e[0],
|
|
917
848
|
query: {}
|
|
918
849
|
};
|
|
919
850
|
{
|
|
920
|
-
const n =
|
|
921
|
-
for (const
|
|
922
|
-
const o =
|
|
923
|
-
o[1] !== null && o[1] !== void 0 && o[1] !== "" && (
|
|
851
|
+
const n = e[1].split("&"), s = {};
|
|
852
|
+
for (const r of n) {
|
|
853
|
+
const o = r.split("=");
|
|
854
|
+
o[1] !== null && o[1] !== void 0 && o[1] !== "" && (s[o[0]] = o[1]);
|
|
924
855
|
}
|
|
925
856
|
return {
|
|
926
|
-
path:
|
|
927
|
-
query:
|
|
857
|
+
path: e[0],
|
|
858
|
+
query: s
|
|
928
859
|
};
|
|
929
860
|
}
|
|
930
861
|
};
|
|
931
|
-
function
|
|
932
|
-
return { all:
|
|
933
|
-
var
|
|
934
|
-
|
|
935
|
-
}, off: function(
|
|
936
|
-
var
|
|
937
|
-
|
|
938
|
-
}, emit: function(
|
|
939
|
-
var
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
}), (
|
|
943
|
-
|
|
862
|
+
function ls(t) {
|
|
863
|
+
return { all: t = t || /* @__PURE__ */ new Map(), on: function(e, n) {
|
|
864
|
+
var s = t.get(e);
|
|
865
|
+
s ? s.push(n) : t.set(e, [n]);
|
|
866
|
+
}, off: function(e, n) {
|
|
867
|
+
var s = t.get(e);
|
|
868
|
+
s && (n ? s.splice(s.indexOf(n) >>> 0, 1) : t.set(e, []));
|
|
869
|
+
}, emit: function(e, n) {
|
|
870
|
+
var s = t.get(e);
|
|
871
|
+
s && s.slice().map(function(r) {
|
|
872
|
+
r(n);
|
|
873
|
+
}), (s = t.get("*")) && s.slice().map(function(r) {
|
|
874
|
+
r(e, n);
|
|
944
875
|
});
|
|
945
876
|
} };
|
|
946
877
|
}
|
|
947
|
-
const
|
|
948
|
-
install(
|
|
949
|
-
|
|
878
|
+
const us = ls(), fs = {
|
|
879
|
+
install(t) {
|
|
880
|
+
t.provide("tabEmitter", us);
|
|
950
881
|
}
|
|
951
|
-
},
|
|
952
|
-
var
|
|
953
|
-
const
|
|
882
|
+
}, ge = () => ot("tabEmitter");
|
|
883
|
+
var Z = /* @__PURE__ */ ((t) => (t.PAGE_LOADING = "PAGE_LOADING", t.TAB_ACTIVE = "TAB_ACTIVE", t))(Z || {});
|
|
884
|
+
const ds = {
|
|
954
885
|
key: 0,
|
|
955
886
|
class: "stack-tab-loading-mask"
|
|
956
|
-
},
|
|
957
|
-
Or
|
|
958
|
-
], Ar = /* @__PURE__ */ Q({
|
|
887
|
+
}, hs = /* @__PURE__ */ ee({
|
|
959
888
|
__name: "PageLoading",
|
|
960
889
|
props: {
|
|
961
890
|
tId: {}
|
|
962
891
|
},
|
|
963
|
-
setup(
|
|
964
|
-
const
|
|
965
|
-
return n.on(
|
|
966
|
-
|
|
967
|
-
}), (
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
892
|
+
setup(t) {
|
|
893
|
+
const e = t, n = ge(), s = D(!1);
|
|
894
|
+
return n.on(Z.PAGE_LOADING, ({ tId: r, value: o }) => {
|
|
895
|
+
r === e.tId && (s.value = o);
|
|
896
|
+
}), (r, o) => s.value ? (z(), V("div", ds, o[0] || (o[0] = [
|
|
897
|
+
Q("div", { class: "stack-tab-loading--spin turn" }, null, -1)
|
|
898
|
+
]))) : se("", !0);
|
|
899
|
+
}
|
|
900
|
+
}), M = D([]), Ge = [], N = D([]), fe = /* @__PURE__ */ new Map(), Re = /* @__PURE__ */ new Set(), F = /* @__PURE__ */ new Set(), de = D(!0), Et = "stacktab-active-tab", he = /* @__PURE__ */ new Map();
|
|
901
|
+
let It = !1, De = 0, Bt = !1;
|
|
902
|
+
const Ce = () => {
|
|
903
|
+
const t = ct(), e = ge(), {
|
|
973
904
|
t: n
|
|
974
|
-
} =
|
|
975
|
-
for (const
|
|
976
|
-
const
|
|
977
|
-
id:
|
|
905
|
+
} = Me(), s = () => M.value.length, r = (m) => {
|
|
906
|
+
for (const E of m) {
|
|
907
|
+
const d = ne(E, {
|
|
908
|
+
id: Je(),
|
|
978
909
|
refreshable: !0,
|
|
979
910
|
closable: !0,
|
|
980
911
|
iframe: !1
|
|
981
|
-
}), L =
|
|
912
|
+
}), L = tt(d), q = pt(d.path), W = ne(d, {
|
|
982
913
|
closable: !0,
|
|
983
914
|
refreshable: !0,
|
|
984
915
|
iframe: !1
|
|
985
|
-
}),
|
|
986
|
-
id:
|
|
987
|
-
tabId:
|
|
988
|
-
path:
|
|
989
|
-
query:
|
|
916
|
+
}), Le = At(d.id, q.path, q.query), X = {
|
|
917
|
+
id: Le,
|
|
918
|
+
tabId: d.id,
|
|
919
|
+
path: q.path,
|
|
920
|
+
query: ne(q.query, {
|
|
990
921
|
__tab: L
|
|
991
922
|
})
|
|
992
|
-
},
|
|
993
|
-
|
|
994
|
-
const
|
|
995
|
-
id:
|
|
996
|
-
title:
|
|
997
|
-
closable:
|
|
998
|
-
refreshable:
|
|
999
|
-
iframe:
|
|
923
|
+
}, ye = new je();
|
|
924
|
+
ye.push(X);
|
|
925
|
+
const Y = {
|
|
926
|
+
id: d.id,
|
|
927
|
+
title: W.title,
|
|
928
|
+
closable: W.closable,
|
|
929
|
+
refreshable: W.refreshable,
|
|
930
|
+
iframe: W.iframe,
|
|
1000
931
|
active: !1,
|
|
1001
|
-
pages:
|
|
932
|
+
pages: ye
|
|
1002
933
|
};
|
|
1003
|
-
|
|
1004
|
-
...
|
|
934
|
+
N.value.push(Le), Ge.push(Y), M.value.push({
|
|
935
|
+
...Y
|
|
1005
936
|
});
|
|
1006
937
|
}
|
|
1007
|
-
const
|
|
1008
|
-
if (
|
|
1009
|
-
const
|
|
1010
|
-
let
|
|
1011
|
-
for (const L of
|
|
1012
|
-
if (L.id ===
|
|
1013
|
-
|
|
938
|
+
const v = window.sessionStorage.getItem(Et);
|
|
939
|
+
if (v != null) {
|
|
940
|
+
const E = JSON.parse(v, (L, q) => L === "pages" ? new je(q) : q);
|
|
941
|
+
let d = !1;
|
|
942
|
+
for (const L of M.value)
|
|
943
|
+
if (L.id === E.id) {
|
|
944
|
+
d = !0;
|
|
1014
945
|
break;
|
|
1015
946
|
}
|
|
1016
|
-
|
|
947
|
+
d || M.value.push(E);
|
|
1017
948
|
}
|
|
1018
|
-
|
|
949
|
+
It = !0;
|
|
1019
950
|
}, o = (m) => {
|
|
1020
|
-
for (const
|
|
1021
|
-
if (
|
|
951
|
+
for (const v of M.value)
|
|
952
|
+
if (v.id === m)
|
|
1022
953
|
return !0;
|
|
1023
954
|
return !1;
|
|
1024
|
-
}, i = () =>
|
|
1025
|
-
|
|
955
|
+
}, i = () => De <= 0 || De > 0 && De > M.value.length, f = (m) => new Promise((v) => {
|
|
956
|
+
M.value.push(m), v(!0);
|
|
1026
957
|
}), a = (m) => {
|
|
1027
|
-
for (const
|
|
1028
|
-
if (
|
|
1029
|
-
return
|
|
958
|
+
for (const v of M.value)
|
|
959
|
+
if (v.id === m)
|
|
960
|
+
return v;
|
|
1030
961
|
return null;
|
|
1031
|
-
}, c = (m,
|
|
1032
|
-
let
|
|
1033
|
-
if (m.query.__tab ?
|
|
1034
|
-
id:
|
|
962
|
+
}, c = (m, v) => {
|
|
963
|
+
let E, d;
|
|
964
|
+
if (m.query.__tab ? d = as(m.query.__tab) : (d = {
|
|
965
|
+
id: Je(),
|
|
1035
966
|
title: n("VueStackTab.undefined"),
|
|
1036
967
|
closable: !0,
|
|
1037
968
|
refreshable: !0,
|
|
1038
969
|
iframe: !1
|
|
1039
|
-
}, m.query.__tab =
|
|
970
|
+
}, m.query.__tab = tt(d)), F.has(d.id) || !v)
|
|
1040
971
|
return;
|
|
1041
|
-
const L = m.matched[m.matched.length - 1].path,
|
|
1042
|
-
let
|
|
1043
|
-
for (const
|
|
1044
|
-
|
|
1045
|
-
const
|
|
1046
|
-
id:
|
|
1047
|
-
tabId:
|
|
972
|
+
const L = m.matched[m.matched.length - 1].path, q = m.path.endsWith("/") ? m.path.substring(0, m.path.length - 1) : m.path, W = At(d.id, L === q ? q : m.path, m.query.valueOf()), Le = m.query.__src;
|
|
973
|
+
let X = null;
|
|
974
|
+
for (const Y of T(M))
|
|
975
|
+
Y.active = !1, Y.id === d.id && (X = Y);
|
|
976
|
+
const ye = {
|
|
977
|
+
id: W,
|
|
978
|
+
tabId: d.id,
|
|
1048
979
|
path: m.path,
|
|
1049
980
|
query: m.query
|
|
1050
981
|
};
|
|
1051
|
-
if (
|
|
1052
|
-
const
|
|
1053
|
-
|
|
1054
|
-
id:
|
|
1055
|
-
title:
|
|
1056
|
-
closable:
|
|
1057
|
-
refreshable:
|
|
1058
|
-
iframe:
|
|
1059
|
-
url: decodeURIComponent(
|
|
982
|
+
if (X === null) {
|
|
983
|
+
const Y = new je();
|
|
984
|
+
Y.push(ye), X = {
|
|
985
|
+
id: d.id,
|
|
986
|
+
title: d.title,
|
|
987
|
+
closable: d.closable,
|
|
988
|
+
refreshable: d.refreshable,
|
|
989
|
+
iframe: d.iframe,
|
|
990
|
+
url: decodeURIComponent(Le),
|
|
1060
991
|
active: !0,
|
|
1061
|
-
pages:
|
|
1062
|
-
}, f(
|
|
1063
|
-
|
|
1064
|
-
id:
|
|
992
|
+
pages: Y
|
|
993
|
+
}, f(X).then(() => {
|
|
994
|
+
e.emit(Z.TAB_ACTIVE, {
|
|
995
|
+
id: d.id,
|
|
1065
996
|
isRoute: !1
|
|
1066
997
|
});
|
|
1067
998
|
});
|
|
1068
999
|
} else
|
|
1069
|
-
|
|
1070
|
-
return U(
|
|
1071
|
-
name:
|
|
1000
|
+
X.active = !0, (X.pages.isEmpty() || X.pages.peek().id !== ye.id) && X.pages.push(ye);
|
|
1001
|
+
return U(X), fe.has(W) ? E = fe.get(W) : (E = /* @__PURE__ */ ee({
|
|
1002
|
+
name: W,
|
|
1072
1003
|
components: {
|
|
1073
|
-
DynamicComponent:
|
|
1004
|
+
DynamicComponent: v
|
|
1074
1005
|
},
|
|
1075
1006
|
emits: {
|
|
1076
1007
|
onLoaded: null
|
|
1077
1008
|
},
|
|
1078
|
-
setup(
|
|
1079
|
-
return
|
|
1080
|
-
|
|
1081
|
-
}),
|
|
1082
|
-
|
|
1083
|
-
}),
|
|
1084
|
-
|
|
1009
|
+
setup(Y, mt) {
|
|
1010
|
+
return Fe(() => {
|
|
1011
|
+
mt.emit("onLoaded"), k(W, ".cache-page-wrapper");
|
|
1012
|
+
}), vn(() => {
|
|
1013
|
+
l(W);
|
|
1014
|
+
}), mn(() => {
|
|
1015
|
+
mt.emit("onLoaded"), p(W), P(), F.clear(), v.props = null;
|
|
1085
1016
|
}), He(() => {
|
|
1086
|
-
|
|
1087
|
-
}), () =>
|
|
1017
|
+
u(W);
|
|
1018
|
+
}), () => $("div", {
|
|
1088
1019
|
class: "cache-page-wrapper",
|
|
1089
|
-
id: "W-" +
|
|
1090
|
-
style: [
|
|
1091
|
-
}, [
|
|
1092
|
-
tId:
|
|
1093
|
-
pId:
|
|
1094
|
-
}, null),
|
|
1095
|
-
tId:
|
|
1020
|
+
id: "W-" + d.id,
|
|
1021
|
+
style: [Bt ? "overflow:auto" : "overflow:hidden"]
|
|
1022
|
+
}, [$(Ft("dynamic-component"), {
|
|
1023
|
+
tId: d.id,
|
|
1024
|
+
pId: W
|
|
1025
|
+
}, null), $(hs, {
|
|
1026
|
+
tId: d.id
|
|
1096
1027
|
}, null)]);
|
|
1097
1028
|
}
|
|
1098
|
-
}),
|
|
1029
|
+
}), fe.set(W, E)), A(W), E;
|
|
1099
1030
|
}, p = (m) => {
|
|
1100
|
-
const
|
|
1101
|
-
if (
|
|
1102
|
-
for (const
|
|
1103
|
-
if (document.querySelector(
|
|
1104
|
-
const
|
|
1105
|
-
document.querySelector(
|
|
1031
|
+
const v = he.get(m);
|
|
1032
|
+
if (v) {
|
|
1033
|
+
for (const E of v.keys())
|
|
1034
|
+
if (document.querySelector(E)) {
|
|
1035
|
+
const d = v.get(E);
|
|
1036
|
+
document.querySelector(E).scrollTop = d.top, document.querySelector(E).scrollLeft = d.left;
|
|
1106
1037
|
}
|
|
1107
1038
|
}
|
|
1108
|
-
},
|
|
1109
|
-
var
|
|
1110
|
-
const
|
|
1111
|
-
if (
|
|
1112
|
-
for (const L of
|
|
1113
|
-
const
|
|
1114
|
-
top: ((
|
|
1115
|
-
left: ((
|
|
1039
|
+
}, l = (m) => {
|
|
1040
|
+
var E, d;
|
|
1041
|
+
const v = he.get(m);
|
|
1042
|
+
if (v)
|
|
1043
|
+
for (const L of v.keys()) {
|
|
1044
|
+
const q = {
|
|
1045
|
+
top: ((E = document.querySelector(L)) == null ? void 0 : E.scrollTop) ?? 0,
|
|
1046
|
+
left: ((d = document.querySelector(L)) == null ? void 0 : d.scrollLeft) ?? 0
|
|
1116
1047
|
};
|
|
1117
|
-
|
|
1048
|
+
v.set(L, q);
|
|
1118
1049
|
}
|
|
1119
|
-
},
|
|
1120
|
-
const
|
|
1121
|
-
|
|
1122
|
-
},
|
|
1123
|
-
|
|
1124
|
-
const
|
|
1125
|
-
for (const
|
|
1126
|
-
|
|
1050
|
+
}, u = (m) => {
|
|
1051
|
+
const v = he.get(m);
|
|
1052
|
+
v && (v.clear(), he.delete(m));
|
|
1053
|
+
}, k = (m, ...v) => {
|
|
1054
|
+
he.has(m) || he.set(m, /* @__PURE__ */ new Map());
|
|
1055
|
+
const E = he.get(m);
|
|
1056
|
+
for (const d of v)
|
|
1057
|
+
E.set(d, {
|
|
1127
1058
|
top: 0,
|
|
1128
1059
|
left: 0
|
|
1129
1060
|
});
|
|
1130
|
-
},
|
|
1131
|
-
const
|
|
1132
|
-
for (const
|
|
1133
|
-
|
|
1134
|
-
P(),
|
|
1061
|
+
}, S = (m) => {
|
|
1062
|
+
const v = a(m.id);
|
|
1063
|
+
for (const E of v.pages.list())
|
|
1064
|
+
w(E.id), R(E.id);
|
|
1065
|
+
P(), v.pages.clear();
|
|
1135
1066
|
}, B = (m) => {
|
|
1136
|
-
let
|
|
1137
|
-
const
|
|
1138
|
-
for (let
|
|
1139
|
-
if (m ===
|
|
1140
|
-
if (!
|
|
1067
|
+
let v = "";
|
|
1068
|
+
const E = a(m);
|
|
1069
|
+
for (let d = M.value.length - 1; d >= 0; d--)
|
|
1070
|
+
if (m === T(M)[d].id) {
|
|
1071
|
+
if (!T(M)[d].closable)
|
|
1141
1072
|
return m;
|
|
1142
|
-
for (const L of
|
|
1143
|
-
|
|
1144
|
-
|
|
1073
|
+
for (const L of T(M)[d].pages.list())
|
|
1074
|
+
w(L.id), R(L.id), F.add(T(M)[d].id);
|
|
1075
|
+
T(M)[d].pages.clear(), M.value.length > 1 && T(M)[d].active && (d === 0 ? v = T(M)[d + 1].id : v = T(M)[d - 1].id), T(M).splice(d, 1);
|
|
1145
1076
|
break;
|
|
1146
1077
|
}
|
|
1147
|
-
return
|
|
1148
|
-
id:
|
|
1149
|
-
}),
|
|
1150
|
-
},
|
|
1151
|
-
const m =
|
|
1152
|
-
for (let
|
|
1153
|
-
if (m[
|
|
1154
|
-
for (const
|
|
1155
|
-
|
|
1156
|
-
|
|
1078
|
+
return v !== "" && e.emit(Z.TAB_ACTIVE, {
|
|
1079
|
+
id: v
|
|
1080
|
+
}), E != null && E.active || (P(), F.clear()), v;
|
|
1081
|
+
}, I = () => {
|
|
1082
|
+
const m = T(M);
|
|
1083
|
+
for (let v = m.length - 1; v >= 0; v--)
|
|
1084
|
+
if (m[v].closable) {
|
|
1085
|
+
for (const E of m[v].pages.list())
|
|
1086
|
+
w(E.id), R(E.id), F.add(m[v].id);
|
|
1087
|
+
T(M)[v].pages.clear(), T(M).splice(v, 1);
|
|
1157
1088
|
}
|
|
1158
|
-
for (const
|
|
1159
|
-
if (
|
|
1089
|
+
for (const v of m)
|
|
1090
|
+
if (v.active) {
|
|
1160
1091
|
P(), F.clear();
|
|
1161
1092
|
return;
|
|
1162
1093
|
}
|
|
1163
|
-
|
|
1094
|
+
e.emit(Z.TAB_ACTIVE, {
|
|
1164
1095
|
id: m[m.length - 1].id
|
|
1165
1096
|
});
|
|
1166
|
-
},
|
|
1167
|
-
const
|
|
1168
|
-
let
|
|
1169
|
-
for (let
|
|
1170
|
-
if (
|
|
1171
|
-
|
|
1172
|
-
else if (
|
|
1173
|
-
for (const L of
|
|
1174
|
-
|
|
1175
|
-
|
|
1097
|
+
}, y = (m) => {
|
|
1098
|
+
const v = T(M);
|
|
1099
|
+
let E;
|
|
1100
|
+
for (let d = v.length - 1; d >= 0; d--)
|
|
1101
|
+
if (v[d].id === m)
|
|
1102
|
+
E = v[d];
|
|
1103
|
+
else if (v[d].closable && v[d].id !== m) {
|
|
1104
|
+
for (const L of v[d].pages.list())
|
|
1105
|
+
w(L.id), R(L.id), F.add(v[d].id);
|
|
1106
|
+
T(M)[d].pages.clear(), T(M).splice(d, 1);
|
|
1176
1107
|
}
|
|
1177
|
-
|
|
1108
|
+
E.active ? (P(), F.clear()) : e.emit(Z.TAB_ACTIVE, {
|
|
1178
1109
|
id: m
|
|
1179
1110
|
});
|
|
1180
|
-
},
|
|
1181
|
-
let
|
|
1182
|
-
const
|
|
1183
|
-
for (let
|
|
1184
|
-
if (
|
|
1185
|
-
|
|
1111
|
+
}, g = (m) => {
|
|
1112
|
+
let v = -1;
|
|
1113
|
+
const E = T(M);
|
|
1114
|
+
for (let d = 0; d < E.length; d++)
|
|
1115
|
+
if (E[d].id === m) {
|
|
1116
|
+
v = d - 1;
|
|
1186
1117
|
break;
|
|
1187
1118
|
}
|
|
1188
|
-
for (let
|
|
1189
|
-
if (
|
|
1190
|
-
for (const L of
|
|
1191
|
-
|
|
1192
|
-
|
|
1119
|
+
for (let d = v; d >= 0; d--)
|
|
1120
|
+
if (E[d].closable) {
|
|
1121
|
+
for (const L of E[d].pages.list())
|
|
1122
|
+
w(L.id), R(L.id), F.add(E[d].id);
|
|
1123
|
+
T(M)[d].pages.clear(), T(M).splice(d, 1);
|
|
1193
1124
|
}
|
|
1194
|
-
for (const
|
|
1195
|
-
if (
|
|
1125
|
+
for (const d of E)
|
|
1126
|
+
if (d.active) {
|
|
1196
1127
|
P(), F.clear();
|
|
1197
1128
|
return;
|
|
1198
1129
|
}
|
|
1199
|
-
|
|
1200
|
-
id:
|
|
1130
|
+
e.emit(Z.TAB_ACTIVE, {
|
|
1131
|
+
id: E[0].id
|
|
1201
1132
|
});
|
|
1202
1133
|
}, x = (m) => {
|
|
1203
|
-
const
|
|
1204
|
-
let
|
|
1205
|
-
for (let
|
|
1206
|
-
if (
|
|
1207
|
-
|
|
1134
|
+
const v = T(M);
|
|
1135
|
+
let E = v.length;
|
|
1136
|
+
for (let d = 0; d < v.length; d++)
|
|
1137
|
+
if (v[d].id === m) {
|
|
1138
|
+
E = d + 1;
|
|
1208
1139
|
break;
|
|
1209
1140
|
}
|
|
1210
|
-
for (let
|
|
1211
|
-
if (
|
|
1212
|
-
for (const L of
|
|
1213
|
-
|
|
1214
|
-
|
|
1141
|
+
for (let d = v.length - 1; d >= E; d--)
|
|
1142
|
+
if (v[d].closable) {
|
|
1143
|
+
for (const L of v[d].pages.list())
|
|
1144
|
+
w(L.id), R(L.id), F.add(v[d].id);
|
|
1145
|
+
T(M)[d].pages.clear(), T(M).splice(d, 1);
|
|
1215
1146
|
}
|
|
1216
|
-
for (const
|
|
1217
|
-
if (
|
|
1147
|
+
for (const d of v)
|
|
1148
|
+
if (d.active) {
|
|
1218
1149
|
P(), F.clear();
|
|
1219
1150
|
return;
|
|
1220
1151
|
}
|
|
1221
|
-
|
|
1222
|
-
id:
|
|
1152
|
+
e.emit(Z.TAB_ACTIVE, {
|
|
1153
|
+
id: v[v.length - 1].id
|
|
1223
1154
|
});
|
|
1224
|
-
},
|
|
1225
|
-
var
|
|
1226
|
-
for (const
|
|
1227
|
-
if (
|
|
1228
|
-
const
|
|
1229
|
-
for (let L =
|
|
1230
|
-
if (
|
|
1231
|
-
|
|
1232
|
-
|
|
1155
|
+
}, b = (m) => {
|
|
1156
|
+
var v;
|
|
1157
|
+
for (const E of T(M))
|
|
1158
|
+
if (E.id === m) {
|
|
1159
|
+
const d = (v = E.pages.peek()) == null ? void 0 : v.id;
|
|
1160
|
+
for (let L = N.value.length - 1; L >= 0; L--)
|
|
1161
|
+
if (N.value[L] === d) {
|
|
1162
|
+
N.value.splice(L, 1), E.active && (de.value = !1, ce(() => {
|
|
1163
|
+
de.value = !0;
|
|
1233
1164
|
}));
|
|
1234
1165
|
break;
|
|
1235
1166
|
}
|
|
1236
1167
|
break;
|
|
1237
1168
|
}
|
|
1238
|
-
},
|
|
1169
|
+
}, O = () => {
|
|
1239
1170
|
const m = /* @__PURE__ */ new Set();
|
|
1240
|
-
|
|
1241
|
-
m.add(
|
|
1171
|
+
M.value.forEach((v) => {
|
|
1172
|
+
m.add(v.pages.peek().id);
|
|
1242
1173
|
});
|
|
1243
|
-
for (let
|
|
1244
|
-
const
|
|
1245
|
-
m.has(
|
|
1174
|
+
for (let v = N.value.length - 1; v >= 0; v--) {
|
|
1175
|
+
const E = N.value[v];
|
|
1176
|
+
m.has(E) && N.value.splice(v, 1);
|
|
1246
1177
|
}
|
|
1247
|
-
|
|
1248
|
-
|
|
1178
|
+
ce(() => {
|
|
1179
|
+
de.value = !1, ce(() => {
|
|
1249
1180
|
setTimeout(() => {
|
|
1250
|
-
|
|
1181
|
+
de.value = !0;
|
|
1251
1182
|
}, 300);
|
|
1252
1183
|
});
|
|
1253
1184
|
});
|
|
1254
|
-
},
|
|
1255
|
-
|
|
1256
|
-
},
|
|
1257
|
-
|
|
1258
|
-
},
|
|
1185
|
+
}, h = (m, v) => {
|
|
1186
|
+
fe.set(m, v);
|
|
1187
|
+
}, _ = (m) => fe.get(m), w = (m) => {
|
|
1188
|
+
fe.delete(m);
|
|
1189
|
+
}, R = (m) => {
|
|
1259
1190
|
Re.add(m);
|
|
1260
1191
|
}, P = () => {
|
|
1261
|
-
for (let m =
|
|
1262
|
-
Re.has(
|
|
1192
|
+
for (let m = N.value.length - 1; m >= 0; m--)
|
|
1193
|
+
Re.has(N.value[m]) && T(N).splice(m, 1);
|
|
1263
1194
|
Re.clear();
|
|
1264
1195
|
}, G = (m) => {
|
|
1265
|
-
for (let
|
|
1266
|
-
m ===
|
|
1267
|
-
},
|
|
1268
|
-
new Set(
|
|
1269
|
-
},
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1196
|
+
for (let v = N.value.length - 1; v >= 0; v--)
|
|
1197
|
+
m === N.value[v] && T(N).splice(v, 1);
|
|
1198
|
+
}, A = (m) => {
|
|
1199
|
+
new Set(N.value).has(m) || N.value.push(m);
|
|
1200
|
+
}, C = (m, v = !0) => {
|
|
1201
|
+
e.emit("FORWARD");
|
|
1202
|
+
for (let E = M.value.length - 1; E >= 0; E--) {
|
|
1203
|
+
const d = M.value[E];
|
|
1204
|
+
if (d.id === m) {
|
|
1205
|
+
if (d.active)
|
|
1274
1206
|
break;
|
|
1275
|
-
if (
|
|
1276
|
-
const L =
|
|
1277
|
-
|
|
1207
|
+
if (d.active = !0, U(d), v) {
|
|
1208
|
+
const L = d.pages.peek();
|
|
1209
|
+
t.push({
|
|
1278
1210
|
path: L.path,
|
|
1279
1211
|
query: L.query
|
|
1280
1212
|
});
|
|
1281
1213
|
}
|
|
1282
1214
|
} else
|
|
1283
|
-
|
|
1215
|
+
M.value[E].active = !1;
|
|
1284
1216
|
}
|
|
1285
1217
|
}, U = (m) => {
|
|
1286
|
-
window.sessionStorage.setItem(
|
|
1218
|
+
window.sessionStorage.setItem(Et, JSON.stringify(m));
|
|
1287
1219
|
}, re = () => {
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
id:
|
|
1291
|
-
}),
|
|
1292
|
-
|
|
1220
|
+
de.value = !1, Te(), ce(() => {
|
|
1221
|
+
T(M).push(...Ge), e.emit(Z.TAB_ACTIVE, {
|
|
1222
|
+
id: Ge[0].id
|
|
1223
|
+
}), ce(() => {
|
|
1224
|
+
de.value = !0;
|
|
1293
1225
|
});
|
|
1294
1226
|
});
|
|
1295
|
-
},
|
|
1296
|
-
|
|
1227
|
+
}, Te = () => {
|
|
1228
|
+
T(M).splice(0), fe.clear(), Re.clear(), F.clear(), T(N).splice(0);
|
|
1297
1229
|
};
|
|
1298
1230
|
return {
|
|
1299
|
-
tabs:
|
|
1300
|
-
caches:
|
|
1301
|
-
pageShown:
|
|
1302
|
-
initialed:
|
|
1231
|
+
tabs: M,
|
|
1232
|
+
caches: N,
|
|
1233
|
+
pageShown: de,
|
|
1234
|
+
initialed: It,
|
|
1303
1235
|
setMaxSize: (m) => {
|
|
1304
|
-
|
|
1236
|
+
De = m;
|
|
1305
1237
|
},
|
|
1306
1238
|
canAddTab: i,
|
|
1307
|
-
initial:
|
|
1308
|
-
size:
|
|
1309
|
-
active:
|
|
1310
|
-
destroy:
|
|
1239
|
+
initial: r,
|
|
1240
|
+
size: s,
|
|
1241
|
+
active: C,
|
|
1242
|
+
destroy: Te,
|
|
1311
1243
|
reset: re,
|
|
1312
|
-
addCache:
|
|
1244
|
+
addCache: A,
|
|
1313
1245
|
removeCache: G,
|
|
1314
1246
|
getTab: a,
|
|
1315
1247
|
addTab: f,
|
|
1316
1248
|
removeTab: B,
|
|
1317
|
-
removeAllTabs:
|
|
1318
|
-
removeLeftTabs:
|
|
1249
|
+
removeAllTabs: I,
|
|
1250
|
+
removeLeftTabs: g,
|
|
1319
1251
|
removeRightTabs: x,
|
|
1320
|
-
removeOtherTabs:
|
|
1252
|
+
removeOtherTabs: y,
|
|
1321
1253
|
hasTab: o,
|
|
1322
|
-
renewTab:
|
|
1254
|
+
renewTab: S,
|
|
1323
1255
|
addPage: c,
|
|
1324
|
-
addComponent:
|
|
1325
|
-
getComponent:
|
|
1326
|
-
removeComponent:
|
|
1327
|
-
markDeletableCache:
|
|
1256
|
+
addComponent: h,
|
|
1257
|
+
getComponent: _,
|
|
1258
|
+
removeComponent: w,
|
|
1259
|
+
markDeletableCache: R,
|
|
1328
1260
|
removeDeletableCache: P,
|
|
1329
|
-
refreshTab:
|
|
1330
|
-
refreshAllTabs:
|
|
1331
|
-
addPageScroller:
|
|
1261
|
+
refreshTab: b,
|
|
1262
|
+
refreshAllTabs: O,
|
|
1263
|
+
addPageScroller: k,
|
|
1332
1264
|
setGlobalScroll: (m) => {
|
|
1333
|
-
|
|
1265
|
+
Bt = m;
|
|
1334
1266
|
}
|
|
1335
1267
|
};
|
|
1336
|
-
},
|
|
1268
|
+
}, ps = { class: "stack-tab__contextmenu-item" }, ae = /* @__PURE__ */ ee({
|
|
1337
1269
|
__name: "ContextMenuItem",
|
|
1338
1270
|
props: {
|
|
1339
1271
|
icon: {},
|
|
1340
1272
|
title: {}
|
|
1341
1273
|
},
|
|
1342
|
-
setup(
|
|
1343
|
-
return (
|
|
1344
|
-
|
|
1345
|
-
class:
|
|
1274
|
+
setup(t) {
|
|
1275
|
+
return (e, n) => (z(), V("div", ps, [
|
|
1276
|
+
Q("div", {
|
|
1277
|
+
class: ue(["stack-tab__contextmenu-icon", e.icon])
|
|
1346
1278
|
}, null, 2),
|
|
1347
|
-
|
|
1279
|
+
Q("div", {
|
|
1348
1280
|
style: { "margin-left": "8px" },
|
|
1349
1281
|
onContextmenu: n[0] || (n[0] = _e(() => {
|
|
1350
1282
|
}, ["prevent"]))
|
|
1351
|
-
},
|
|
1283
|
+
}, Ht(e.title), 33)
|
|
1352
1284
|
]));
|
|
1353
1285
|
}
|
|
1354
|
-
}),
|
|
1286
|
+
}), bs = {
|
|
1355
1287
|
key: 0,
|
|
1356
1288
|
class: "divider div-transparent"
|
|
1357
|
-
},
|
|
1289
|
+
}, vs = /* @__PURE__ */ ee({
|
|
1358
1290
|
__name: "index",
|
|
1359
1291
|
props: {
|
|
1360
1292
|
index: {},
|
|
@@ -1364,10 +1296,10 @@ const Le = () => {
|
|
|
1364
1296
|
tabItem: {},
|
|
1365
1297
|
max: {}
|
|
1366
1298
|
},
|
|
1367
|
-
setup(
|
|
1368
|
-
const
|
|
1369
|
-
left:
|
|
1370
|
-
top:
|
|
1299
|
+
setup(t) {
|
|
1300
|
+
const e = t, { t: n } = Me(), s = D(), r = Ie({
|
|
1301
|
+
left: e.left,
|
|
1302
|
+
top: e.top
|
|
1371
1303
|
}), {
|
|
1372
1304
|
removeTab: o,
|
|
1373
1305
|
removeAllTabs: i,
|
|
@@ -1375,193 +1307,193 @@ const Le = () => {
|
|
|
1375
1307
|
removeRightTabs: a,
|
|
1376
1308
|
refreshTab: c,
|
|
1377
1309
|
refreshAllTabs: p,
|
|
1378
|
-
removeOtherTabs:
|
|
1379
|
-
} =
|
|
1380
|
-
return
|
|
1381
|
-
const
|
|
1382
|
-
|
|
1383
|
-
}), (
|
|
1310
|
+
removeOtherTabs: l
|
|
1311
|
+
} = Ce();
|
|
1312
|
+
return Fe(() => {
|
|
1313
|
+
const u = s.value ? s.value.clientWidth : 0, k = window.innerWidth;
|
|
1314
|
+
r.left + u > k && (r.left = k - u - 5);
|
|
1315
|
+
}), (u, k) => (z(), V("div", {
|
|
1384
1316
|
ref_key: "contextmenu",
|
|
1385
|
-
ref:
|
|
1317
|
+
ref: s,
|
|
1386
1318
|
class: "stack-tab__contextmenu",
|
|
1387
|
-
style:
|
|
1388
|
-
left: `${
|
|
1389
|
-
top: `${
|
|
1390
|
-
"z-index":
|
|
1319
|
+
style: it({
|
|
1320
|
+
left: `${r.left}px`,
|
|
1321
|
+
top: `${r.top}px`,
|
|
1322
|
+
"z-index": T(en)(".stack-tab,.stack-tab *")
|
|
1391
1323
|
})
|
|
1392
1324
|
}, [
|
|
1393
|
-
|
|
1325
|
+
$(ae, {
|
|
1394
1326
|
icon: "stack-tab__icon-reload svg-mask",
|
|
1395
|
-
title:
|
|
1396
|
-
onClick:
|
|
1327
|
+
title: T(n)("VueStackTab.reload"),
|
|
1328
|
+
onClick: k[0] || (k[0] = (S) => T(c)(u.tabItem.id))
|
|
1397
1329
|
}, null, 8, ["title"]),
|
|
1398
|
-
|
|
1330
|
+
$(ae, {
|
|
1399
1331
|
icon: "stack-tab__icon-reload-all svg-mask",
|
|
1400
|
-
title:
|
|
1401
|
-
onClick:
|
|
1332
|
+
title: T(n)("VueStackTab.reloadAll"),
|
|
1333
|
+
onClick: T(p)
|
|
1402
1334
|
}, null, 8, ["title", "onClick"]),
|
|
1403
|
-
|
|
1335
|
+
$(ae, {
|
|
1404
1336
|
icon: "stack-tab__icon-close svg-mask",
|
|
1405
|
-
title:
|
|
1406
|
-
disabled:
|
|
1407
|
-
onClick:
|
|
1337
|
+
title: T(n)("VueStackTab.close"),
|
|
1338
|
+
disabled: u.tabItem.closable ? null : "disabled",
|
|
1339
|
+
onClick: k[1] || (k[1] = (S) => T(o)(u.tabItem.id))
|
|
1408
1340
|
}, null, 8, ["title", "disabled"]),
|
|
1409
|
-
|
|
1341
|
+
$(ae, {
|
|
1410
1342
|
icon: "stack-tab__icon-close-lefts svg-mask",
|
|
1411
|
-
title:
|
|
1412
|
-
disabled:
|
|
1413
|
-
onClick:
|
|
1343
|
+
title: T(n)("VueStackTab.closeLeft"),
|
|
1344
|
+
disabled: u.index <= 0 ? "disabled" : null,
|
|
1345
|
+
onClick: k[2] || (k[2] = (S) => T(f)(u.tabItem.id))
|
|
1414
1346
|
}, null, 8, ["title", "disabled"]),
|
|
1415
|
-
|
|
1347
|
+
$(ae, {
|
|
1416
1348
|
icon: "stack-tab__icon-close-rights svg-mask",
|
|
1417
|
-
title:
|
|
1418
|
-
disabled:
|
|
1419
|
-
onClick:
|
|
1349
|
+
title: T(n)("VueStackTab.closeRight"),
|
|
1350
|
+
disabled: u.index >= u.max - 1 ? "disabled" : null,
|
|
1351
|
+
onClick: k[3] || (k[3] = (S) => T(a)(u.tabItem.id))
|
|
1420
1352
|
}, null, 8, ["title", "disabled"]),
|
|
1421
|
-
|
|
1353
|
+
$(ae, {
|
|
1422
1354
|
icon: "stack-tab__icon-close-others svg-mask",
|
|
1423
|
-
title:
|
|
1424
|
-
onClick:
|
|
1355
|
+
title: T(n)("VueStackTab.closeOthers"),
|
|
1356
|
+
onClick: k[4] || (k[4] = (S) => T(l)(u.tabItem.id))
|
|
1425
1357
|
}, null, 8, ["title"]),
|
|
1426
|
-
|
|
1358
|
+
$(ae, {
|
|
1427
1359
|
icon: "stack-tab__icon-close-all svg-mask",
|
|
1428
|
-
title:
|
|
1429
|
-
onClick:
|
|
1360
|
+
title: T(n)("VueStackTab.closeAll"),
|
|
1361
|
+
onClick: T(i)
|
|
1430
1362
|
}, null, 8, ["title", "onClick"]),
|
|
1431
|
-
|
|
1432
|
-
(z(!0),
|
|
1363
|
+
u.contextMenu !== void 0 && u.contextMenu.length > 0 ? (z(), V("div", bs)) : se("", !0),
|
|
1364
|
+
(z(!0), V(Ze, null, at(u.contextMenu, (S, B) => (z(), me(ae, {
|
|
1433
1365
|
key: B,
|
|
1434
|
-
icon:
|
|
1435
|
-
title:
|
|
1436
|
-
disabled:
|
|
1437
|
-
onClick: (
|
|
1366
|
+
icon: S.icon,
|
|
1367
|
+
title: S.title,
|
|
1368
|
+
disabled: S.disabled(u.tabItem) ? "disabled" : null,
|
|
1369
|
+
onClick: (I) => !S.disabled && S.callback(u.tabItem.id)
|
|
1438
1370
|
}, null, 8, ["icon", "title", "disabled", "onClick"]))), 128))
|
|
1439
1371
|
], 4));
|
|
1440
1372
|
}
|
|
1441
|
-
}),
|
|
1442
|
-
const n =
|
|
1443
|
-
for (const [
|
|
1444
|
-
n[
|
|
1373
|
+
}), ms = (t, e) => {
|
|
1374
|
+
const n = t.__vccOpts || t;
|
|
1375
|
+
for (const [s, r] of e)
|
|
1376
|
+
n[s] = r;
|
|
1445
1377
|
return n;
|
|
1446
|
-
},
|
|
1447
|
-
const
|
|
1378
|
+
}, gs = /* @__PURE__ */ ms(vs, [["__scopeId", "data-v-d598be6e"]]), ys = () => {
|
|
1379
|
+
const t = Ie({
|
|
1448
1380
|
item: {},
|
|
1449
1381
|
index: -1,
|
|
1450
1382
|
left: 0,
|
|
1451
1383
|
top: 0,
|
|
1452
1384
|
max: 0
|
|
1453
|
-
}),
|
|
1454
|
-
|
|
1455
|
-
document.addEventListener("click",
|
|
1385
|
+
}), e = D(!1);
|
|
1386
|
+
Fe(() => {
|
|
1387
|
+
document.addEventListener("click", s);
|
|
1456
1388
|
}), He(() => {
|
|
1457
|
-
document.removeEventListener("click",
|
|
1389
|
+
document.removeEventListener("click", s);
|
|
1458
1390
|
});
|
|
1459
|
-
const n = async (
|
|
1460
|
-
|
|
1461
|
-
const { clientY: a, clientX: c } =
|
|
1462
|
-
|
|
1391
|
+
const n = async (r, o, i, f) => {
|
|
1392
|
+
e.value = !1, await ce(() => {
|
|
1393
|
+
const { clientY: a, clientX: c } = r;
|
|
1394
|
+
e.value = !0, Object.assign(t, { item: o, index: i, top: a, left: c, max: f });
|
|
1463
1395
|
});
|
|
1464
|
-
},
|
|
1465
|
-
|
|
1396
|
+
}, s = (r) => {
|
|
1397
|
+
r.target.classList.contains("stack-tab__contextmenu") || (e.value = !1);
|
|
1466
1398
|
};
|
|
1467
1399
|
return {
|
|
1468
|
-
shown:
|
|
1469
|
-
contextMenuData:
|
|
1400
|
+
shown: e,
|
|
1401
|
+
contextMenuData: t,
|
|
1470
1402
|
showContextMenu: n
|
|
1471
1403
|
};
|
|
1472
|
-
},
|
|
1404
|
+
}, ws = { class: "stack-tab__item-title" }, ks = ["title"], _s = ["title"], xs = /* @__PURE__ */ ee({
|
|
1473
1405
|
__name: "TabHeaderItem",
|
|
1474
1406
|
props: {
|
|
1475
1407
|
item: {}
|
|
1476
1408
|
},
|
|
1477
1409
|
emits: ["close", "active"],
|
|
1478
|
-
setup(
|
|
1479
|
-
const n =
|
|
1480
|
-
|
|
1481
|
-
i.item.id === p && c(
|
|
1410
|
+
setup(t, { emit: e }) {
|
|
1411
|
+
const n = e, s = ge(), { t: r } = Me(), o = D(), i = t;
|
|
1412
|
+
s.on(Z.TAB_ACTIVE, ({ id: p, isRoute: l }) => {
|
|
1413
|
+
i.item.id === p && c(l);
|
|
1482
1414
|
});
|
|
1483
|
-
const f =
|
|
1415
|
+
const f = we(() => i.item.title || r("undefined")), a = () => {
|
|
1484
1416
|
n("close", i.item);
|
|
1485
1417
|
}, c = (p = !0) => {
|
|
1486
1418
|
n("active", i.item, o, p);
|
|
1487
1419
|
};
|
|
1488
|
-
return (p,
|
|
1420
|
+
return (p, l) => (z(), V("li", {
|
|
1489
1421
|
ref_key: "curtab",
|
|
1490
1422
|
ref: o,
|
|
1491
|
-
class:
|
|
1423
|
+
class: ue(["stack-tab__item", {
|
|
1492
1424
|
"is-active": p.item.active,
|
|
1493
1425
|
"is-icon": p.item.closable
|
|
1494
1426
|
}]),
|
|
1495
|
-
onClick:
|
|
1427
|
+
onClick: l[0] || (l[0] = (u) => c(!0))
|
|
1496
1428
|
}, [
|
|
1497
|
-
|
|
1498
|
-
|
|
1429
|
+
Q("div", ws, [
|
|
1430
|
+
Q("div", {
|
|
1499
1431
|
class: "stack-tab__item-title-content",
|
|
1500
1432
|
title: f.value
|
|
1501
|
-
},
|
|
1433
|
+
}, Ht(f.value), 9, ks)
|
|
1502
1434
|
]),
|
|
1503
|
-
p.item.closable ? (z(),
|
|
1435
|
+
p.item.closable ? (z(), V("div", {
|
|
1504
1436
|
key: 0,
|
|
1505
1437
|
class: "stack-tab__icon-close-fill stack-tab__item-button",
|
|
1506
|
-
title:
|
|
1438
|
+
title: T(r)("VueStackTab.close"),
|
|
1507
1439
|
onClick: _e(a, ["stop"])
|
|
1508
|
-
}, null, 8,
|
|
1440
|
+
}, null, 8, _s)) : se("", !0)
|
|
1509
1441
|
], 2));
|
|
1510
1442
|
}
|
|
1511
1443
|
});
|
|
1512
|
-
var
|
|
1513
|
-
return
|
|
1514
|
-
return
|
|
1444
|
+
var be = [], Ts = function() {
|
|
1445
|
+
return be.some(function(t) {
|
|
1446
|
+
return t.activeTargets.length > 0;
|
|
1515
1447
|
});
|
|
1516
|
-
},
|
|
1517
|
-
return
|
|
1518
|
-
return
|
|
1448
|
+
}, Ss = function() {
|
|
1449
|
+
return be.some(function(t) {
|
|
1450
|
+
return t.skippedTargets.length > 0;
|
|
1519
1451
|
});
|
|
1520
|
-
},
|
|
1521
|
-
var
|
|
1522
|
-
typeof ErrorEvent == "function" ?
|
|
1523
|
-
message:
|
|
1524
|
-
}) : (
|
|
1452
|
+
}, Mt = "ResizeObserver loop completed with undelivered notifications.", Os = function() {
|
|
1453
|
+
var t;
|
|
1454
|
+
typeof ErrorEvent == "function" ? t = new ErrorEvent("error", {
|
|
1455
|
+
message: Mt
|
|
1456
|
+
}) : (t = document.createEvent("Event"), t.initEvent("error", !1, !1), t.message = Mt), window.dispatchEvent(t);
|
|
1525
1457
|
}, Be;
|
|
1526
|
-
(function(
|
|
1527
|
-
|
|
1458
|
+
(function(t) {
|
|
1459
|
+
t.BORDER_BOX = "border-box", t.CONTENT_BOX = "content-box", t.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
|
|
1528
1460
|
})(Be || (Be = {}));
|
|
1529
|
-
var
|
|
1530
|
-
return Object.freeze(
|
|
1531
|
-
},
|
|
1532
|
-
function e
|
|
1533
|
-
this.inlineSize =
|
|
1461
|
+
var ve = function(t) {
|
|
1462
|
+
return Object.freeze(t);
|
|
1463
|
+
}, As = /* @__PURE__ */ function() {
|
|
1464
|
+
function t(e, n) {
|
|
1465
|
+
this.inlineSize = e, this.blockSize = n, ve(this);
|
|
1534
1466
|
}
|
|
1535
|
-
return
|
|
1536
|
-
}(),
|
|
1537
|
-
function e
|
|
1538
|
-
return this.x =
|
|
1539
|
-
}
|
|
1540
|
-
return
|
|
1541
|
-
var
|
|
1542
|
-
return { x: n, y:
|
|
1543
|
-
},
|
|
1544
|
-
return new e
|
|
1545
|
-
},
|
|
1546
|
-
}(),
|
|
1547
|
-
return
|
|
1548
|
-
},
|
|
1549
|
-
if (
|
|
1550
|
-
var
|
|
1551
|
-
return !n && !
|
|
1552
|
-
}
|
|
1553
|
-
var
|
|
1554
|
-
return !(o || i ||
|
|
1555
|
-
},
|
|
1556
|
-
var
|
|
1557
|
-
if (
|
|
1467
|
+
return t;
|
|
1468
|
+
}(), on = function() {
|
|
1469
|
+
function t(e, n, s, r) {
|
|
1470
|
+
return this.x = e, this.y = n, this.width = s, this.height = r, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, ve(this);
|
|
1471
|
+
}
|
|
1472
|
+
return t.prototype.toJSON = function() {
|
|
1473
|
+
var e = this, n = e.x, s = e.y, r = e.top, o = e.right, i = e.bottom, f = e.left, a = e.width, c = e.height;
|
|
1474
|
+
return { x: n, y: s, top: r, right: o, bottom: i, left: f, width: a, height: c };
|
|
1475
|
+
}, t.fromRect = function(e) {
|
|
1476
|
+
return new t(e.x, e.y, e.width, e.height);
|
|
1477
|
+
}, t;
|
|
1478
|
+
}(), bt = function(t) {
|
|
1479
|
+
return t instanceof SVGElement && "getBBox" in t;
|
|
1480
|
+
}, an = function(t) {
|
|
1481
|
+
if (bt(t)) {
|
|
1482
|
+
var e = t.getBBox(), n = e.width, s = e.height;
|
|
1483
|
+
return !n && !s;
|
|
1484
|
+
}
|
|
1485
|
+
var r = t, o = r.offsetWidth, i = r.offsetHeight;
|
|
1486
|
+
return !(o || i || t.getClientRects().length);
|
|
1487
|
+
}, Ct = function(t) {
|
|
1488
|
+
var e;
|
|
1489
|
+
if (t instanceof Element)
|
|
1558
1490
|
return !0;
|
|
1559
|
-
var n = (
|
|
1560
|
-
return !!(n &&
|
|
1561
|
-
},
|
|
1562
|
-
switch (
|
|
1491
|
+
var n = (e = t == null ? void 0 : t.ownerDocument) === null || e === void 0 ? void 0 : e.defaultView;
|
|
1492
|
+
return !!(n && t instanceof n.Element);
|
|
1493
|
+
}, Es = function(t) {
|
|
1494
|
+
switch (t.tagName) {
|
|
1563
1495
|
case "INPUT":
|
|
1564
|
-
if (
|
|
1496
|
+
if (t.type !== "image")
|
|
1565
1497
|
break;
|
|
1566
1498
|
case "VIDEO":
|
|
1567
1499
|
case "AUDIO":
|
|
@@ -1573,99 +1505,99 @@ var be = function(e) {
|
|
|
1573
1505
|
return !0;
|
|
1574
1506
|
}
|
|
1575
1507
|
return !1;
|
|
1576
|
-
},
|
|
1577
|
-
return parseFloat(
|
|
1578
|
-
},
|
|
1579
|
-
return
|
|
1580
|
-
},
|
|
1581
|
-
devicePixelContentBoxSize:
|
|
1582
|
-
borderBoxSize:
|
|
1583
|
-
contentBoxSize:
|
|
1584
|
-
contentRect: new
|
|
1585
|
-
}),
|
|
1586
|
-
if (
|
|
1587
|
-
return
|
|
1588
|
-
if (
|
|
1589
|
-
return
|
|
1590
|
-
var n = getComputedStyle(
|
|
1591
|
-
devicePixelContentBoxSize:
|
|
1592
|
-
borderBoxSize:
|
|
1593
|
-
contentBoxSize:
|
|
1594
|
-
contentRect: new
|
|
1508
|
+
}, Ee = typeof window < "u" ? window : {}, $e = /* @__PURE__ */ new WeakMap(), Lt = /auto|scroll/, Is = /^tb|vertical/, Bs = /msie|trident/i.test(Ee.navigator && Ee.navigator.userAgent), K = function(t) {
|
|
1509
|
+
return parseFloat(t || "0");
|
|
1510
|
+
}, ke = function(t, e, n) {
|
|
1511
|
+
return t === void 0 && (t = 0), e === void 0 && (e = 0), n === void 0 && (n = !1), new As((n ? e : t) || 0, (n ? t : e) || 0);
|
|
1512
|
+
}, zt = ve({
|
|
1513
|
+
devicePixelContentBoxSize: ke(),
|
|
1514
|
+
borderBoxSize: ke(),
|
|
1515
|
+
contentBoxSize: ke(),
|
|
1516
|
+
contentRect: new on(0, 0, 0, 0)
|
|
1517
|
+
}), cn = function(t, e) {
|
|
1518
|
+
if (e === void 0 && (e = !1), $e.has(t) && !e)
|
|
1519
|
+
return $e.get(t);
|
|
1520
|
+
if (an(t))
|
|
1521
|
+
return $e.set(t, zt), zt;
|
|
1522
|
+
var n = getComputedStyle(t), s = bt(t) && t.ownerSVGElement && t.getBBox(), r = !Bs && n.boxSizing === "border-box", o = Is.test(n.writingMode || ""), i = !s && Lt.test(n.overflowY || ""), f = !s && Lt.test(n.overflowX || ""), a = s ? 0 : K(n.paddingTop), c = s ? 0 : K(n.paddingRight), p = s ? 0 : K(n.paddingBottom), l = s ? 0 : K(n.paddingLeft), u = s ? 0 : K(n.borderTopWidth), k = s ? 0 : K(n.borderRightWidth), S = s ? 0 : K(n.borderBottomWidth), B = s ? 0 : K(n.borderLeftWidth), I = l + c, y = a + p, g = B + k, x = u + S, b = f ? t.offsetHeight - x - t.clientHeight : 0, O = i ? t.offsetWidth - g - t.clientWidth : 0, h = r ? I + g : 0, _ = r ? y + x : 0, w = s ? s.width : K(n.width) - h - O, R = s ? s.height : K(n.height) - _ - b, P = w + I + O + g, G = R + y + b + x, A = ve({
|
|
1523
|
+
devicePixelContentBoxSize: ke(Math.round(w * devicePixelRatio), Math.round(R * devicePixelRatio), o),
|
|
1524
|
+
borderBoxSize: ke(P, G, o),
|
|
1525
|
+
contentBoxSize: ke(w, R, o),
|
|
1526
|
+
contentRect: new on(l, a, w, R)
|
|
1595
1527
|
});
|
|
1596
|
-
return
|
|
1597
|
-
},
|
|
1598
|
-
var
|
|
1599
|
-
switch (
|
|
1528
|
+
return $e.set(t, A), A;
|
|
1529
|
+
}, ln = function(t, e, n) {
|
|
1530
|
+
var s = cn(t, n), r = s.borderBoxSize, o = s.contentBoxSize, i = s.devicePixelContentBoxSize;
|
|
1531
|
+
switch (e) {
|
|
1600
1532
|
case Be.DEVICE_PIXEL_CONTENT_BOX:
|
|
1601
1533
|
return i;
|
|
1602
1534
|
case Be.BORDER_BOX:
|
|
1603
|
-
return
|
|
1535
|
+
return r;
|
|
1604
1536
|
default:
|
|
1605
1537
|
return o;
|
|
1606
1538
|
}
|
|
1607
|
-
},
|
|
1608
|
-
function e
|
|
1609
|
-
var n =
|
|
1610
|
-
this.target =
|
|
1539
|
+
}, Ms = /* @__PURE__ */ function() {
|
|
1540
|
+
function t(e) {
|
|
1541
|
+
var n = cn(e);
|
|
1542
|
+
this.target = e, this.contentRect = n.contentRect, this.borderBoxSize = ve([n.borderBoxSize]), this.contentBoxSize = ve([n.contentBoxSize]), this.devicePixelContentBoxSize = ve([n.devicePixelContentBoxSize]);
|
|
1611
1543
|
}
|
|
1612
|
-
return e;
|
|
1613
|
-
}(), vn = function(e) {
|
|
1614
|
-
if (pn(e))
|
|
1615
|
-
return 1 / 0;
|
|
1616
|
-
for (var t = 0, n = e.parentNode; n; )
|
|
1617
|
-
t += 1, n = n.parentNode;
|
|
1618
1544
|
return t;
|
|
1619
|
-
},
|
|
1620
|
-
|
|
1621
|
-
|
|
1545
|
+
}(), un = function(t) {
|
|
1546
|
+
if (an(t))
|
|
1547
|
+
return 1 / 0;
|
|
1548
|
+
for (var e = 0, n = t.parentNode; n; )
|
|
1549
|
+
e += 1, n = n.parentNode;
|
|
1550
|
+
return e;
|
|
1551
|
+
}, Cs = function() {
|
|
1552
|
+
var t = 1 / 0, e = [];
|
|
1553
|
+
be.forEach(function(i) {
|
|
1622
1554
|
if (i.activeTargets.length !== 0) {
|
|
1623
1555
|
var f = [];
|
|
1624
1556
|
i.activeTargets.forEach(function(c) {
|
|
1625
|
-
var p = new
|
|
1626
|
-
f.push(p), c.lastReportedSize =
|
|
1627
|
-
}),
|
|
1557
|
+
var p = new Ms(c.target), l = un(c.target);
|
|
1558
|
+
f.push(p), c.lastReportedSize = ln(c.target, c.observedBox), l < t && (t = l);
|
|
1559
|
+
}), e.push(function() {
|
|
1628
1560
|
i.callback.call(i.observer, f, i.observer);
|
|
1629
1561
|
}), i.activeTargets.splice(0, i.activeTargets.length);
|
|
1630
1562
|
}
|
|
1631
1563
|
});
|
|
1632
|
-
for (var n = 0,
|
|
1633
|
-
var
|
|
1634
|
-
|
|
1564
|
+
for (var n = 0, s = e; n < s.length; n++) {
|
|
1565
|
+
var r = s[n];
|
|
1566
|
+
r();
|
|
1635
1567
|
}
|
|
1636
|
-
return
|
|
1637
|
-
},
|
|
1638
|
-
|
|
1639
|
-
n.activeTargets.splice(0, n.activeTargets.length), n.skippedTargets.splice(0, n.skippedTargets.length), n.observationTargets.forEach(function(
|
|
1640
|
-
|
|
1568
|
+
return t;
|
|
1569
|
+
}, Rt = function(t) {
|
|
1570
|
+
be.forEach(function(n) {
|
|
1571
|
+
n.activeTargets.splice(0, n.activeTargets.length), n.skippedTargets.splice(0, n.skippedTargets.length), n.observationTargets.forEach(function(r) {
|
|
1572
|
+
r.isActive() && (un(r.target) > t ? n.activeTargets.push(r) : n.skippedTargets.push(r));
|
|
1641
1573
|
});
|
|
1642
1574
|
});
|
|
1643
|
-
},
|
|
1644
|
-
var
|
|
1645
|
-
for (
|
|
1646
|
-
|
|
1647
|
-
return
|
|
1648
|
-
},
|
|
1649
|
-
return
|
|
1650
|
-
return
|
|
1575
|
+
}, Ls = function() {
|
|
1576
|
+
var t = 0;
|
|
1577
|
+
for (Rt(t); Ts(); )
|
|
1578
|
+
t = Cs(), Rt(t);
|
|
1579
|
+
return Ss() && Os(), t > 0;
|
|
1580
|
+
}, Ye, fn = [], zs = function() {
|
|
1581
|
+
return fn.splice(0).forEach(function(t) {
|
|
1582
|
+
return t();
|
|
1651
1583
|
});
|
|
1652
|
-
},
|
|
1653
|
-
if (!
|
|
1654
|
-
var
|
|
1584
|
+
}, Rs = function(t) {
|
|
1585
|
+
if (!Ye) {
|
|
1586
|
+
var e = 0, n = document.createTextNode(""), s = { characterData: !0 };
|
|
1655
1587
|
new MutationObserver(function() {
|
|
1656
|
-
return
|
|
1657
|
-
}).observe(n,
|
|
1658
|
-
n.textContent = "".concat(
|
|
1588
|
+
return zs();
|
|
1589
|
+
}).observe(n, s), Ye = function() {
|
|
1590
|
+
n.textContent = "".concat(e ? e-- : e++);
|
|
1659
1591
|
};
|
|
1660
1592
|
}
|
|
1661
|
-
|
|
1662
|
-
},
|
|
1663
|
-
|
|
1664
|
-
requestAnimationFrame(
|
|
1593
|
+
fn.push(t), Ye();
|
|
1594
|
+
}, Ds = function(t) {
|
|
1595
|
+
Rs(function() {
|
|
1596
|
+
requestAnimationFrame(t);
|
|
1665
1597
|
});
|
|
1666
|
-
},
|
|
1667
|
-
return !!
|
|
1668
|
-
},
|
|
1598
|
+
}, Ve = 0, $s = function() {
|
|
1599
|
+
return !!Ve;
|
|
1600
|
+
}, Ns = 250, Ps = { attributes: !0, characterData: !0, childList: !0, subtree: !0 }, Dt = [
|
|
1669
1601
|
"resize",
|
|
1670
1602
|
"load",
|
|
1671
1603
|
"transitionend",
|
|
@@ -1680,122 +1612,122 @@ var be = function(e) {
|
|
|
1680
1612
|
"mouseout",
|
|
1681
1613
|
"blur",
|
|
1682
1614
|
"focus"
|
|
1683
|
-
],
|
|
1684
|
-
return
|
|
1685
|
-
},
|
|
1686
|
-
function
|
|
1687
|
-
var
|
|
1615
|
+
], $t = function(t) {
|
|
1616
|
+
return t === void 0 && (t = 0), Date.now() + t;
|
|
1617
|
+
}, Ke = !1, Ws = function() {
|
|
1618
|
+
function t() {
|
|
1619
|
+
var e = this;
|
|
1688
1620
|
this.stopped = !0, this.listener = function() {
|
|
1689
|
-
return
|
|
1621
|
+
return e.schedule();
|
|
1690
1622
|
};
|
|
1691
1623
|
}
|
|
1692
|
-
return
|
|
1624
|
+
return t.prototype.run = function(e) {
|
|
1693
1625
|
var n = this;
|
|
1694
|
-
if (
|
|
1695
|
-
|
|
1696
|
-
var
|
|
1697
|
-
|
|
1698
|
-
var
|
|
1626
|
+
if (e === void 0 && (e = Ns), !Ke) {
|
|
1627
|
+
Ke = !0;
|
|
1628
|
+
var s = $t(e);
|
|
1629
|
+
Ds(function() {
|
|
1630
|
+
var r = !1;
|
|
1699
1631
|
try {
|
|
1700
|
-
|
|
1632
|
+
r = Ls();
|
|
1701
1633
|
} finally {
|
|
1702
|
-
if (
|
|
1634
|
+
if (Ke = !1, e = s - $t(), !$s())
|
|
1703
1635
|
return;
|
|
1704
|
-
|
|
1636
|
+
r ? n.run(1e3) : e > 0 ? n.run(e) : n.start();
|
|
1705
1637
|
}
|
|
1706
1638
|
});
|
|
1707
1639
|
}
|
|
1708
|
-
},
|
|
1640
|
+
}, t.prototype.schedule = function() {
|
|
1709
1641
|
this.stop(), this.run();
|
|
1710
|
-
},
|
|
1711
|
-
var
|
|
1712
|
-
return
|
|
1642
|
+
}, t.prototype.observe = function() {
|
|
1643
|
+
var e = this, n = function() {
|
|
1644
|
+
return e.observer && e.observer.observe(document.body, Ps);
|
|
1713
1645
|
};
|
|
1714
|
-
document.body ? n() :
|
|
1715
|
-
},
|
|
1716
|
-
var
|
|
1646
|
+
document.body ? n() : Ee.addEventListener("DOMContentLoaded", n);
|
|
1647
|
+
}, t.prototype.start = function() {
|
|
1648
|
+
var e = this;
|
|
1717
1649
|
this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(), Dt.forEach(function(n) {
|
|
1718
|
-
return
|
|
1650
|
+
return Ee.addEventListener(n, e.listener, !0);
|
|
1719
1651
|
}));
|
|
1720
|
-
},
|
|
1721
|
-
var
|
|
1652
|
+
}, t.prototype.stop = function() {
|
|
1653
|
+
var e = this;
|
|
1722
1654
|
this.stopped || (this.observer && this.observer.disconnect(), Dt.forEach(function(n) {
|
|
1723
|
-
return
|
|
1655
|
+
return Ee.removeEventListener(n, e.listener, !0);
|
|
1724
1656
|
}), this.stopped = !0);
|
|
1725
|
-
},
|
|
1726
|
-
}(),
|
|
1727
|
-
!
|
|
1728
|
-
},
|
|
1729
|
-
return !
|
|
1730
|
-
},
|
|
1731
|
-
function e
|
|
1732
|
-
this.target =
|
|
1657
|
+
}, t;
|
|
1658
|
+
}(), st = new Ws(), Nt = function(t) {
|
|
1659
|
+
!Ve && t > 0 && st.start(), Ve += t, !Ve && st.stop();
|
|
1660
|
+
}, Vs = function(t) {
|
|
1661
|
+
return !bt(t) && !Es(t) && getComputedStyle(t).display === "inline";
|
|
1662
|
+
}, Us = function() {
|
|
1663
|
+
function t(e, n) {
|
|
1664
|
+
this.target = e, this.observedBox = n || Be.CONTENT_BOX, this.lastReportedSize = {
|
|
1733
1665
|
inlineSize: 0,
|
|
1734
1666
|
blockSize: 0
|
|
1735
1667
|
};
|
|
1736
1668
|
}
|
|
1737
|
-
return
|
|
1738
|
-
var
|
|
1739
|
-
return
|
|
1740
|
-
},
|
|
1741
|
-
}(),
|
|
1742
|
-
function e
|
|
1743
|
-
this.activeTargets = [], this.skippedTargets = [], this.observationTargets = [], this.observer =
|
|
1669
|
+
return t.prototype.isActive = function() {
|
|
1670
|
+
var e = ln(this.target, this.observedBox, !0);
|
|
1671
|
+
return Vs(this.target) && (this.lastReportedSize = e), this.lastReportedSize.inlineSize !== e.inlineSize || this.lastReportedSize.blockSize !== e.blockSize;
|
|
1672
|
+
}, t;
|
|
1673
|
+
}(), qs = /* @__PURE__ */ function() {
|
|
1674
|
+
function t(e, n) {
|
|
1675
|
+
this.activeTargets = [], this.skippedTargets = [], this.observationTargets = [], this.observer = e, this.callback = n;
|
|
1744
1676
|
}
|
|
1745
|
-
return
|
|
1746
|
-
}(),
|
|
1747
|
-
for (var n = 0; n <
|
|
1748
|
-
if (
|
|
1677
|
+
return t;
|
|
1678
|
+
}(), Ne = /* @__PURE__ */ new WeakMap(), Pt = function(t, e) {
|
|
1679
|
+
for (var n = 0; n < t.length; n += 1)
|
|
1680
|
+
if (t[n].target === e)
|
|
1749
1681
|
return n;
|
|
1750
1682
|
return -1;
|
|
1751
|
-
},
|
|
1752
|
-
function
|
|
1753
|
-
}
|
|
1754
|
-
return
|
|
1755
|
-
var
|
|
1756
|
-
|
|
1757
|
-
},
|
|
1758
|
-
var
|
|
1759
|
-
|
|
1760
|
-
},
|
|
1761
|
-
var
|
|
1762
|
-
|
|
1763
|
-
},
|
|
1764
|
-
var n = this,
|
|
1765
|
-
|
|
1766
|
-
return n.unobserve(
|
|
1767
|
-
}),
|
|
1768
|
-
},
|
|
1769
|
-
}(),
|
|
1770
|
-
function e
|
|
1683
|
+
}, Pe = function() {
|
|
1684
|
+
function t() {
|
|
1685
|
+
}
|
|
1686
|
+
return t.connect = function(e, n) {
|
|
1687
|
+
var s = new qs(e, n);
|
|
1688
|
+
Ne.set(e, s);
|
|
1689
|
+
}, t.observe = function(e, n, s) {
|
|
1690
|
+
var r = Ne.get(e), o = r.observationTargets.length === 0;
|
|
1691
|
+
Pt(r.observationTargets, n) < 0 && (o && be.push(r), r.observationTargets.push(new Us(n, s && s.box)), Nt(1), st.schedule());
|
|
1692
|
+
}, t.unobserve = function(e, n) {
|
|
1693
|
+
var s = Ne.get(e), r = Pt(s.observationTargets, n), o = s.observationTargets.length === 1;
|
|
1694
|
+
r >= 0 && (o && be.splice(be.indexOf(s), 1), s.observationTargets.splice(r, 1), Nt(-1));
|
|
1695
|
+
}, t.disconnect = function(e) {
|
|
1696
|
+
var n = this, s = Ne.get(e);
|
|
1697
|
+
s.observationTargets.slice().forEach(function(r) {
|
|
1698
|
+
return n.unobserve(e, r.target);
|
|
1699
|
+
}), s.activeTargets.splice(0, s.activeTargets.length);
|
|
1700
|
+
}, t;
|
|
1701
|
+
}(), Wt = function() {
|
|
1702
|
+
function t(e) {
|
|
1771
1703
|
if (arguments.length === 0)
|
|
1772
1704
|
throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
1773
|
-
if (typeof
|
|
1705
|
+
if (typeof e != "function")
|
|
1774
1706
|
throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");
|
|
1775
|
-
|
|
1707
|
+
Pe.connect(this, e);
|
|
1776
1708
|
}
|
|
1777
|
-
return
|
|
1709
|
+
return t.prototype.observe = function(e, n) {
|
|
1778
1710
|
if (arguments.length === 0)
|
|
1779
1711
|
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
1780
|
-
if (
|
|
1712
|
+
if (!Ct(e))
|
|
1781
1713
|
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
1782
|
-
|
|
1783
|
-
},
|
|
1714
|
+
Pe.observe(this, e, n);
|
|
1715
|
+
}, t.prototype.unobserve = function(e) {
|
|
1784
1716
|
if (arguments.length === 0)
|
|
1785
1717
|
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
1786
|
-
if (
|
|
1718
|
+
if (!Ct(e))
|
|
1787
1719
|
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
1788
|
-
|
|
1789
|
-
},
|
|
1790
|
-
|
|
1791
|
-
},
|
|
1720
|
+
Pe.unobserve(this, e);
|
|
1721
|
+
}, t.prototype.disconnect = function() {
|
|
1722
|
+
Pe.disconnect(this);
|
|
1723
|
+
}, t.toString = function() {
|
|
1792
1724
|
return "function ResizeObserver () { [polyfill code] }";
|
|
1793
|
-
},
|
|
1725
|
+
}, t;
|
|
1794
1726
|
}();
|
|
1795
|
-
const
|
|
1727
|
+
const Fs = ["disabled", "title"], Hs = {
|
|
1796
1728
|
key: 1,
|
|
1797
1729
|
class: "stack-tab__button"
|
|
1798
|
-
},
|
|
1730
|
+
}, rt = /* @__PURE__ */ ee({
|
|
1799
1731
|
__name: "TabHeaderButton",
|
|
1800
1732
|
props: {
|
|
1801
1733
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -1803,170 +1735,168 @@ const os = ["disabled", "title"], is = {
|
|
|
1803
1735
|
iconClass: { default: "" },
|
|
1804
1736
|
title: {}
|
|
1805
1737
|
},
|
|
1806
|
-
setup(
|
|
1807
|
-
return (
|
|
1808
|
-
class:
|
|
1809
|
-
"stack-tab__shadow-right":
|
|
1810
|
-
"stack-tab__shadow-left":
|
|
1738
|
+
setup(t) {
|
|
1739
|
+
return (e, n) => (z(), V("div", {
|
|
1740
|
+
class: ue(["stack-tab__header-button", {
|
|
1741
|
+
"stack-tab__shadow-right": e.shadow === "right",
|
|
1742
|
+
"stack-tab__shadow-left": e.shadow === "left"
|
|
1811
1743
|
}]),
|
|
1812
|
-
disabled:
|
|
1813
|
-
title:
|
|
1744
|
+
disabled: e.disabled ? "disabled" : null,
|
|
1745
|
+
title: e.title
|
|
1814
1746
|
}, [
|
|
1815
|
-
"icon" in
|
|
1747
|
+
"icon" in e.$slots ? se("", !0) : (z(), V("div", {
|
|
1816
1748
|
key: 0,
|
|
1817
|
-
class:
|
|
1749
|
+
class: ue(["stack-tab__mask-button", e.iconClass])
|
|
1818
1750
|
}, null, 2)),
|
|
1819
|
-
"icon" in
|
|
1820
|
-
|
|
1821
|
-
])) :
|
|
1822
|
-
], 10,
|
|
1751
|
+
"icon" in e.$slots ? (z(), V("div", Hs, [
|
|
1752
|
+
xe(e.$slots, "icon")
|
|
1753
|
+
])) : se("", !0)
|
|
1754
|
+
], 10, Fs));
|
|
1823
1755
|
}
|
|
1824
|
-
}),
|
|
1756
|
+
}), Zs = /* @__PURE__ */ ee({
|
|
1825
1757
|
__name: "TabHeaderScroll",
|
|
1826
1758
|
props: {
|
|
1827
1759
|
space: { default: 300 },
|
|
1828
1760
|
isScrollWheel: { type: Boolean, default: !0 },
|
|
1829
1761
|
isScrollButton: { type: Boolean, default: !0 }
|
|
1830
1762
|
},
|
|
1831
|
-
setup(
|
|
1832
|
-
const n =
|
|
1763
|
+
setup(t, { expose: e }) {
|
|
1764
|
+
const n = D(null), s = D(null), r = D(null), o = D(!1), i = D(!1), f = D(!1), a = D(!0), c = D(), p = t, l = Ie({
|
|
1833
1765
|
clientWidth: 0,
|
|
1834
1766
|
scrollWidth: 0,
|
|
1835
1767
|
scrollLeft: 0
|
|
1836
|
-
}),
|
|
1768
|
+
}), u = Ie({
|
|
1837
1769
|
thumbLeft: 0,
|
|
1838
1770
|
startScrollLeft: 0,
|
|
1839
1771
|
startThumbLeft: 0,
|
|
1840
1772
|
startPageX: 0
|
|
1841
1773
|
});
|
|
1842
|
-
|
|
1843
|
-
|
|
1774
|
+
gn(l, (A) => {
|
|
1775
|
+
k(A);
|
|
1844
1776
|
});
|
|
1845
|
-
const
|
|
1846
|
-
i.value =
|
|
1847
|
-
},
|
|
1848
|
-
if (!
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
return (I - B.value) * (U / (M - I));
|
|
1857
|
-
}), k = () => {
|
|
1777
|
+
const k = (A) => {
|
|
1778
|
+
i.value = A.scrollLeft <= 10, f.value = A.clientWidth + A.scrollLeft - A.scrollWidth >= -10, a.value = A.scrollWidth !== A.clientWidth;
|
|
1779
|
+
}, S = we(() => l.scrollWidth > l.clientWidth), B = we(() => {
|
|
1780
|
+
if (!S.value) return 0;
|
|
1781
|
+
const { clientWidth: A, scrollWidth: C } = l;
|
|
1782
|
+
return A / C * A;
|
|
1783
|
+
}), I = we(() => {
|
|
1784
|
+
if (!S.value) return 0;
|
|
1785
|
+
const { clientWidth: A, scrollWidth: C, scrollLeft: U } = l;
|
|
1786
|
+
return (A - B.value) * (U / (C - A));
|
|
1787
|
+
}), y = () => {
|
|
1858
1788
|
if (n.value === null || n.value === void 0)
|
|
1859
1789
|
return;
|
|
1860
|
-
const { clientWidth:
|
|
1861
|
-
Object.assign(
|
|
1862
|
-
},
|
|
1863
|
-
var
|
|
1864
|
-
|
|
1865
|
-
const
|
|
1866
|
-
|
|
1867
|
-
}), x = new
|
|
1868
|
-
var
|
|
1869
|
-
if (!
|
|
1870
|
-
const
|
|
1871
|
-
|
|
1790
|
+
const { clientWidth: A, scrollWidth: C, scrollLeft: U } = n.value;
|
|
1791
|
+
Object.assign(l, { clientWidth: A, scrollWidth: C, scrollLeft: U });
|
|
1792
|
+
}, g = new Wt(() => {
|
|
1793
|
+
var C;
|
|
1794
|
+
y();
|
|
1795
|
+
const A = (C = n.value) == null ? void 0 : C.querySelector(".stack-tab__item.is-active");
|
|
1796
|
+
A && (G(A) || P(A));
|
|
1797
|
+
}), x = new Wt(() => {
|
|
1798
|
+
var A;
|
|
1799
|
+
if (!S.value) {
|
|
1800
|
+
const C = (A = n.value) == null ? void 0 : A.querySelector(".stack-tab__item.is-active");
|
|
1801
|
+
C && (G(C) || P(C));
|
|
1872
1802
|
}
|
|
1873
|
-
|
|
1874
|
-
}),
|
|
1875
|
-
|
|
1876
|
-
},
|
|
1877
|
-
|
|
1878
|
-
},
|
|
1879
|
-
const
|
|
1880
|
-
|
|
1881
|
-
},
|
|
1882
|
-
var
|
|
1883
|
-
Object.assign(
|
|
1884
|
-
startPageX:
|
|
1885
|
-
startScrollLeft: (
|
|
1886
|
-
startThumbLeft:
|
|
1887
|
-
thumbLeft:
|
|
1888
|
-
}), o.value = !0, document.addEventListener("mousemove",
|
|
1889
|
-
},
|
|
1890
|
-
const { clientWidth:
|
|
1891
|
-
let re =
|
|
1892
|
-
const
|
|
1893
|
-
re < 0 ? re = 0 : re >
|
|
1894
|
-
},
|
|
1895
|
-
o.value = !1, document.removeEventListener("mousemove",
|
|
1803
|
+
y();
|
|
1804
|
+
}), b = (A, C = !0) => {
|
|
1805
|
+
Qt({ wrap: n.value, left: A, smooth: C });
|
|
1806
|
+
}, O = (A) => {
|
|
1807
|
+
b(n.value.scrollLeft + A);
|
|
1808
|
+
}, h = (A) => {
|
|
1809
|
+
const C = A.deltaY < 0;
|
|
1810
|
+
b(n.value.scrollLeft + (C ? -p.space : p.space));
|
|
1811
|
+
}, _ = (A) => {
|
|
1812
|
+
var C;
|
|
1813
|
+
Object.assign(u, {
|
|
1814
|
+
startPageX: A.pageX,
|
|
1815
|
+
startScrollLeft: (C = n.value) == null ? void 0 : C.scrollLeft,
|
|
1816
|
+
startThumbLeft: I.value,
|
|
1817
|
+
thumbLeft: I.value
|
|
1818
|
+
}), o.value = !0, document.addEventListener("mousemove", w), document.addEventListener("mouseup", R);
|
|
1819
|
+
}, w = (A) => {
|
|
1820
|
+
const { clientWidth: C, scrollWidth: U } = l;
|
|
1821
|
+
let re = u.startThumbLeft + A.pageX - u.startPageX;
|
|
1822
|
+
const Te = C - B.value;
|
|
1823
|
+
re < 0 ? re = 0 : re > Te && (re = Te), u.thumbLeft = re, b(re * (U - C) / (C - B.value), !1), A.preventDefault();
|
|
1824
|
+
}, R = (A) => {
|
|
1825
|
+
o.value = !1, document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", R), A.preventDefault();
|
|
1896
1826
|
};
|
|
1897
|
-
|
|
1898
|
-
var
|
|
1899
|
-
|
|
1900
|
-
const
|
|
1901
|
-
x.observe(
|
|
1827
|
+
Fe(() => {
|
|
1828
|
+
var C;
|
|
1829
|
+
g.observe(c.value);
|
|
1830
|
+
const A = (C = n.value) == null ? void 0 : C.querySelector(".stack-tab__nav");
|
|
1831
|
+
x.observe(A);
|
|
1902
1832
|
}), He(() => {
|
|
1903
|
-
|
|
1833
|
+
g.disconnect(), x.disconnect();
|
|
1904
1834
|
});
|
|
1905
|
-
const P = (
|
|
1906
|
-
|
|
1907
|
-
}, G = (
|
|
1908
|
-
if (!
|
|
1835
|
+
const P = (A) => {
|
|
1836
|
+
Vn({ el: A, wrap: n, block: "end", inline: "center" });
|
|
1837
|
+
}, G = (A) => {
|
|
1838
|
+
if (!S.value)
|
|
1909
1839
|
return !0;
|
|
1910
|
-
const
|
|
1911
|
-
return !(
|
|
1840
|
+
const C = A.offsetLeft, U = n.value.scrollLeft;
|
|
1841
|
+
return !(C < U || C + A.clientWidth > U + n.value.clientWidth);
|
|
1912
1842
|
};
|
|
1913
|
-
return
|
|
1914
|
-
a.value ? (z(), me(
|
|
1843
|
+
return e({ scrollIntoView: P, isInView: G }), (A, C) => (z(), V(Ze, null, [
|
|
1844
|
+
a.value ? (z(), me(rt, {
|
|
1915
1845
|
key: 0,
|
|
1916
1846
|
"icon-class": "stack-tab__icon-left-arrow",
|
|
1917
1847
|
disabled: i.value,
|
|
1918
|
-
onClick:
|
|
1919
|
-
}, null, 8, ["disabled"])) :
|
|
1920
|
-
|
|
1848
|
+
onClick: C[0] || (C[0] = (U) => !i.value && O(-1 * A.space))
|
|
1849
|
+
}, null, 8, ["disabled"])) : se("", !0),
|
|
1850
|
+
Q("div", {
|
|
1921
1851
|
ref_key: "headerScroll",
|
|
1922
1852
|
ref: c,
|
|
1923
1853
|
class: "stack-tab__scroll",
|
|
1924
|
-
onWheel: _e(
|
|
1854
|
+
onWheel: _e(h, ["prevent"])
|
|
1925
1855
|
}, [
|
|
1926
|
-
|
|
1856
|
+
Q("div", {
|
|
1927
1857
|
ref_key: "container",
|
|
1928
1858
|
ref: n,
|
|
1929
|
-
class:
|
|
1859
|
+
class: ue(["stack-tab__scroll-container", {
|
|
1930
1860
|
"stack-tab__shadow-inset-left": !i.value && f.value,
|
|
1931
1861
|
"stack-tab__shadow-inset-right": !f.value && i.value,
|
|
1932
1862
|
"stack-tab__shadow-inset-all": !i.value && !f.value
|
|
1933
1863
|
}]),
|
|
1934
|
-
onScrollPassive:
|
|
1864
|
+
onScrollPassive: y
|
|
1935
1865
|
}, [
|
|
1936
|
-
|
|
1866
|
+
xe(A.$slots, "default")
|
|
1937
1867
|
], 34),
|
|
1938
|
-
|
|
1868
|
+
Zt(Q("div", {
|
|
1939
1869
|
ref_key: "bar",
|
|
1940
|
-
ref:
|
|
1941
|
-
class:
|
|
1870
|
+
ref: s,
|
|
1871
|
+
class: ue(["stack-tab__scrollbar", { "is-dragging": o.value }])
|
|
1942
1872
|
}, [
|
|
1943
|
-
|
|
1873
|
+
Q("div", {
|
|
1944
1874
|
ref_key: "thumb",
|
|
1945
|
-
ref:
|
|
1946
|
-
class:
|
|
1947
|
-
style:
|
|
1875
|
+
ref: r,
|
|
1876
|
+
class: ue(["stack-tab__scrollbar-thumb", { "is-dragging": o.value }]),
|
|
1877
|
+
style: it({
|
|
1948
1878
|
width: `${B.value}px`,
|
|
1949
|
-
transform: `translateX(${
|
|
1879
|
+
transform: `translateX(${I.value}px)`
|
|
1950
1880
|
}),
|
|
1951
|
-
onMousedown: _e(
|
|
1881
|
+
onMousedown: _e(_, ["prevent"])
|
|
1952
1882
|
}, null, 38)
|
|
1953
1883
|
], 2), [
|
|
1954
|
-
[
|
|
1884
|
+
[jt, S.value]
|
|
1955
1885
|
])
|
|
1956
1886
|
], 544),
|
|
1957
|
-
a.value ? (z(), me(
|
|
1887
|
+
a.value ? (z(), me(rt, {
|
|
1958
1888
|
key: 1,
|
|
1959
1889
|
"icon-class": "stack-tab__icon-right-arrow",
|
|
1960
1890
|
disabled: f.value,
|
|
1961
|
-
onClick:
|
|
1962
|
-
}, null, 8, ["disabled"])) :
|
|
1891
|
+
onClick: C[1] || (C[1] = (U) => !f.value && O(A.space))
|
|
1892
|
+
}, null, 8, ["disabled"])) : se("", !0)
|
|
1963
1893
|
], 64));
|
|
1964
1894
|
}
|
|
1965
|
-
}),
|
|
1895
|
+
}), js = { class: "stack-tab__header" }, Xs = /* @__PURE__ */ ee({
|
|
1966
1896
|
__name: "index",
|
|
1967
1897
|
props: {
|
|
1968
1898
|
space: {},
|
|
1969
|
-
tabScrollMode: { default:
|
|
1899
|
+
tabScrollMode: { default: pe.BOTH },
|
|
1970
1900
|
tabTransition: { default: () => ({
|
|
1971
1901
|
name: "stack-tab-zoom"
|
|
1972
1902
|
}) },
|
|
@@ -1974,43 +1904,43 @@ const os = ["disabled", "title"], is = {
|
|
|
1974
1904
|
max: { default: 20 }
|
|
1975
1905
|
},
|
|
1976
1906
|
emits: ["active"],
|
|
1977
|
-
setup(
|
|
1978
|
-
const { t: n } =
|
|
1907
|
+
setup(t, { emit: e }) {
|
|
1908
|
+
const { t: n } = Me(), s = ot("maximum"), r = e, o = D(), { shown: i, contextMenuData: f, showContextMenu: a } = ys(), c = t, { removeTab: p, active: l, tabs: u } = Ce(), k = we(() => typeof c.tabTransition == "string" ? {
|
|
1979
1909
|
name: c.tabTransition
|
|
1980
|
-
} : c.tabTransition),
|
|
1981
|
-
|
|
1982
|
-
},
|
|
1983
|
-
o.value && (
|
|
1910
|
+
} : c.tabTransition), S = we(() => c.tabScrollMode === pe.BOTH || c.tabScrollMode === pe.BUTTON), B = c.tabScrollMode === pe.BOTH || c.tabScrollMode === pe.WHEEL, I = (g) => {
|
|
1911
|
+
g.closable && p(g.id), i.value = !1;
|
|
1912
|
+
}, y = (g, x, b) => {
|
|
1913
|
+
o.value && (ce(() => {
|
|
1984
1914
|
o.value.isInView(x.value) || o.value.scrollIntoView(x.value);
|
|
1985
|
-
}),
|
|
1915
|
+
}), l(g.id, b), r("active", g.id));
|
|
1986
1916
|
};
|
|
1987
|
-
return (
|
|
1988
|
-
|
|
1989
|
-
|
|
1917
|
+
return (g, x) => (z(), V("div", js, [
|
|
1918
|
+
xe(g.$slots, "leftButton"),
|
|
1919
|
+
$(Zs, {
|
|
1990
1920
|
ref_key: "scroll",
|
|
1991
1921
|
ref: o,
|
|
1992
|
-
space:
|
|
1993
|
-
"is-scroll-wheel":
|
|
1994
|
-
"is-scroll-button":
|
|
1922
|
+
space: g.space,
|
|
1923
|
+
"is-scroll-wheel": T(B),
|
|
1924
|
+
"is-scroll-button": S.value
|
|
1995
1925
|
}, {
|
|
1996
|
-
default:
|
|
1997
|
-
|
|
1926
|
+
default: le(() => [
|
|
1927
|
+
$(Xt, yn({
|
|
1998
1928
|
key: "tabItemTrans",
|
|
1999
1929
|
tag: "ul",
|
|
2000
1930
|
class: "stack-tab__nav"
|
|
2001
|
-
},
|
|
2002
|
-
default:
|
|
2003
|
-
(z(!0),
|
|
2004
|
-
key:
|
|
2005
|
-
contextmenu:
|
|
2006
|
-
item:
|
|
1931
|
+
}, k.value, { appear: "" }), {
|
|
1932
|
+
default: le(() => [
|
|
1933
|
+
(z(!0), V(Ze, null, at(T(u), (b, O) => (z(), me(xs, {
|
|
1934
|
+
key: b.id,
|
|
1935
|
+
contextmenu: g.contextmenu,
|
|
1936
|
+
item: b,
|
|
2007
1937
|
onContextmenu: _e(
|
|
2008
|
-
(
|
|
1938
|
+
(h) => T(a)(h, b, O, T(u).length),
|
|
2009
1939
|
["prevent"]
|
|
2010
1940
|
),
|
|
2011
|
-
onMouseup: _e((
|
|
2012
|
-
onClose:
|
|
2013
|
-
onActive:
|
|
1941
|
+
onMouseup: _e((h) => I(b), ["middle", "prevent"]),
|
|
1942
|
+
onClose: I,
|
|
1943
|
+
onActive: y
|
|
2014
1944
|
}, null, 8, ["contextmenu", "item", "onContextmenu", "onMouseup"]))), 128))
|
|
2015
1945
|
]),
|
|
2016
1946
|
_: 1
|
|
@@ -2018,196 +1948,108 @@ const os = ["disabled", "title"], is = {
|
|
|
2018
1948
|
]),
|
|
2019
1949
|
_: 1
|
|
2020
1950
|
}, 8, ["space", "is-scroll-wheel", "is-scroll-button"]),
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
"icon-class":
|
|
2024
|
-
title:
|
|
2025
|
-
onClick: x[0] || (x[0] = (
|
|
1951
|
+
xe(g.$slots, "rightButton"),
|
|
1952
|
+
$(rt, {
|
|
1953
|
+
"icon-class": T(s) ? "stack-tab__icon-restore" : "stack-tab__icon-fullscreen",
|
|
1954
|
+
title: T(n)("VueStackTab.maximum"),
|
|
1955
|
+
onClick: x[0] || (x[0] = (b) => s.value = !T(s))
|
|
2026
1956
|
}, null, 8, ["icon-class", "title"]),
|
|
2027
|
-
|
|
1957
|
+
$(Gt, {
|
|
2028
1958
|
name: "stack-tab-zoom",
|
|
2029
1959
|
appear: ""
|
|
2030
1960
|
}, {
|
|
2031
|
-
default:
|
|
2032
|
-
|
|
1961
|
+
default: le(() => [
|
|
1962
|
+
T(i) ? (z(), me(gs, {
|
|
2033
1963
|
key: "tabMenuTrans",
|
|
2034
|
-
left:
|
|
2035
|
-
top:
|
|
2036
|
-
"tab-item":
|
|
2037
|
-
max:
|
|
2038
|
-
index:
|
|
2039
|
-
}, null, 8, ["left", "top", "tab-item", "max", "index"])) :
|
|
1964
|
+
left: T(f).left,
|
|
1965
|
+
top: T(f).top,
|
|
1966
|
+
"tab-item": T(f).item,
|
|
1967
|
+
max: T(f).max,
|
|
1968
|
+
index: T(f).index
|
|
1969
|
+
}, null, 8, ["left", "top", "tab-item", "max", "index"])) : se("", !0)
|
|
2040
1970
|
]),
|
|
2041
1971
|
_: 1
|
|
2042
1972
|
})
|
|
2043
1973
|
]));
|
|
2044
1974
|
}
|
|
2045
1975
|
});
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
e[Te] = void 0;
|
|
2051
|
-
var r = !0;
|
|
2052
|
-
} catch {
|
|
1976
|
+
function Gs(t, e, n) {
|
|
1977
|
+
var s = {}, r = s.noTrailing, o = r === void 0 ? !1 : r, i = s.noLeading, f = i === void 0 ? !1 : i, a = s.debounceMode, c = a === void 0 ? void 0 : a, p, l = !1, u = 0;
|
|
1978
|
+
function k() {
|
|
1979
|
+
p && clearTimeout(p);
|
|
2053
1980
|
}
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
var bs = Object.prototype, ms = bs.toString;
|
|
2058
|
-
function vs(e) {
|
|
2059
|
-
return ms.call(e);
|
|
2060
|
-
}
|
|
2061
|
-
var gs = "[object Null]", ys = "[object Undefined]", Ft = Fe ? Fe.toStringTag : void 0;
|
|
2062
|
-
function _s(e) {
|
|
2063
|
-
return e == null ? e === void 0 ? ys : gs : Ft && Ft in Object(e) ? ps(e) : vs(e);
|
|
2064
|
-
}
|
|
2065
|
-
function ks(e) {
|
|
2066
|
-
return e != null && typeof e == "object";
|
|
2067
|
-
}
|
|
2068
|
-
var ws = "[object Symbol]";
|
|
2069
|
-
function Ts(e) {
|
|
2070
|
-
return typeof e == "symbol" || ks(e) && _s(e) == ws;
|
|
2071
|
-
}
|
|
2072
|
-
var xs = /\s/;
|
|
2073
|
-
function Ss(e) {
|
|
2074
|
-
for (var t = e.length; t-- && xs.test(e.charAt(t)); )
|
|
2075
|
-
;
|
|
2076
|
-
return t;
|
|
2077
|
-
}
|
|
2078
|
-
var Os = /^\s+/;
|
|
2079
|
-
function Es(e) {
|
|
2080
|
-
return e && e.slice(0, Ss(e) + 1).replace(Os, "");
|
|
2081
|
-
}
|
|
2082
|
-
function qe(e) {
|
|
2083
|
-
var t = typeof e;
|
|
2084
|
-
return e != null && (t == "object" || t == "function");
|
|
2085
|
-
}
|
|
2086
|
-
var qt = NaN, As = /^[-+]0x[0-9a-f]+$/i, Is = /^0b[01]+$/i, Bs = /^0o[0-7]+$/i, Cs = parseInt;
|
|
2087
|
-
function Gt(e) {
|
|
2088
|
-
if (typeof e == "number")
|
|
2089
|
-
return e;
|
|
2090
|
-
if (Ts(e))
|
|
2091
|
-
return qt;
|
|
2092
|
-
if (qe(e)) {
|
|
2093
|
-
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
2094
|
-
e = qe(t) ? t + "" : t;
|
|
2095
|
-
}
|
|
2096
|
-
if (typeof e != "string")
|
|
2097
|
-
return e === 0 ? e : +e;
|
|
2098
|
-
e = Es(e);
|
|
2099
|
-
var n = Is.test(e);
|
|
2100
|
-
return n || Bs.test(e) ? Cs(e.slice(2), n ? 2 : 8) : As.test(e) ? qt : +e;
|
|
2101
|
-
}
|
|
2102
|
-
var tt = function() {
|
|
2103
|
-
return yn.Date.now();
|
|
2104
|
-
}, Ms = "Expected a function", Ls = Math.max, zs = Math.min;
|
|
2105
|
-
function $s(e, t, n) {
|
|
2106
|
-
var r, s, o, i, f, a, c = 0, p = !1, d = !1, l = !0;
|
|
2107
|
-
if (typeof e != "function")
|
|
2108
|
-
throw new TypeError(Ms);
|
|
2109
|
-
t = Gt(t) || 0, qe(n) && (p = !!n.leading, d = "maxWait" in n, o = d ? Ls(Gt(n.maxWait) || 0, t) : o, l = "trailing" in n ? !!n.trailing : l);
|
|
2110
|
-
function w(u) {
|
|
2111
|
-
var y = r, v = s;
|
|
2112
|
-
return r = s = void 0, c = u, i = e.apply(v, y), i;
|
|
2113
|
-
}
|
|
2114
|
-
function E(u) {
|
|
2115
|
-
return c = u, f = setTimeout(k, t), p ? w(u) : i;
|
|
2116
|
-
}
|
|
2117
|
-
function B(u) {
|
|
2118
|
-
var y = u - a, v = u - c, $ = t - y;
|
|
2119
|
-
return d ? zs($, o - v) : $;
|
|
2120
|
-
}
|
|
2121
|
-
function T(u) {
|
|
2122
|
-
var y = u - a, v = u - c;
|
|
2123
|
-
return a === void 0 || y >= t || y < 0 || d && v >= o;
|
|
1981
|
+
function S(I) {
|
|
1982
|
+
var y = I || {}, g = y.upcomingOnly, x = g === void 0 ? !1 : g;
|
|
1983
|
+
k(), l = !x;
|
|
2124
1984
|
}
|
|
2125
|
-
function
|
|
2126
|
-
var
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
}
|
|
2137
|
-
function g() {
|
|
2138
|
-
return f === void 0 ? i : _(tt());
|
|
2139
|
-
}
|
|
2140
|
-
function S() {
|
|
2141
|
-
var u = tt(), y = T(u);
|
|
2142
|
-
if (r = arguments, s = this, a = u, y) {
|
|
2143
|
-
if (f === void 0)
|
|
2144
|
-
return E(a);
|
|
2145
|
-
if (d)
|
|
2146
|
-
return clearTimeout(f), f = setTimeout(k, t), w(a);
|
|
1985
|
+
function B() {
|
|
1986
|
+
for (var I = arguments.length, y = new Array(I), g = 0; g < I; g++)
|
|
1987
|
+
y[g] = arguments[g];
|
|
1988
|
+
var x = this, b = Date.now() - u;
|
|
1989
|
+
if (l)
|
|
1990
|
+
return;
|
|
1991
|
+
function O() {
|
|
1992
|
+
u = Date.now(), e.apply(x, y);
|
|
1993
|
+
}
|
|
1994
|
+
function h() {
|
|
1995
|
+
p = void 0;
|
|
2147
1996
|
}
|
|
2148
|
-
|
|
1997
|
+
!f && c && !p && O(), k(), c === void 0 && b > t ? f ? (u = Date.now(), o || (p = setTimeout(c ? h : O, t))) : O() : o !== !0 && (p = setTimeout(c ? h : O, c === void 0 ? t - b : t));
|
|
2149
1998
|
}
|
|
2150
|
-
return
|
|
1999
|
+
return B.cancel = S, B;
|
|
2151
2000
|
}
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
return qe(n) && (r = "leading" in n ? !!n.leading : r, s = "trailing" in n ? !!n.trailing : s), $s(e, t, {
|
|
2158
|
-
leading: r,
|
|
2159
|
-
maxWait: t,
|
|
2160
|
-
trailing: s
|
|
2161
|
-
});
|
|
2162
|
-
}
|
|
2163
|
-
let Ht;
|
|
2164
|
-
const Ps = () => {
|
|
2165
|
-
const e = dt(), { active: t, hasTab: n, pageShown: r, reset: s, canAddTab: o, renewTab: i, getTab: f } = Le(), a = Me(), c = Ns((l, w = !1) => new Promise((E, B) => {
|
|
2166
|
-
if (!r.value) {
|
|
2167
|
-
B();
|
|
2001
|
+
let Vt;
|
|
2002
|
+
const Ys = () => {
|
|
2003
|
+
const t = ct(), { active: e, hasTab: n, pageShown: s, reset: r, canAddTab: o, renewTab: i, getTab: f } = Ce(), a = ge(), c = Gs(500, (k, S = !1) => new Promise((B, I) => {
|
|
2004
|
+
if (!s.value) {
|
|
2005
|
+
I();
|
|
2168
2006
|
return;
|
|
2169
2007
|
}
|
|
2170
|
-
const
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2008
|
+
const y = ne(k, {
|
|
2009
|
+
refreshable: !0,
|
|
2010
|
+
closable: !0,
|
|
2011
|
+
iframe: !1
|
|
2012
|
+
});
|
|
2013
|
+
if (y.id && S && n(y.id)) {
|
|
2014
|
+
i(k);
|
|
2015
|
+
const g = f(k.id);
|
|
2016
|
+
g != null && g.active && (s.value = !1, ce(() => {
|
|
2017
|
+
s.value = !0;
|
|
2176
2018
|
}));
|
|
2177
2019
|
}
|
|
2178
|
-
if (n(
|
|
2179
|
-
a.emit(
|
|
2020
|
+
if (n(y.id) && !S) {
|
|
2021
|
+
a.emit(Z.TAB_ACTIVE, { id: y.id }), B(y.id);
|
|
2180
2022
|
return;
|
|
2181
2023
|
}
|
|
2182
|
-
if (
|
|
2183
|
-
|
|
2024
|
+
if (y.id || (y.id = Je()), !o()) {
|
|
2025
|
+
I("Max Size");
|
|
2184
2026
|
return;
|
|
2185
2027
|
}
|
|
2186
|
-
p(
|
|
2187
|
-
})
|
|
2188
|
-
const
|
|
2189
|
-
let
|
|
2028
|
+
p(k, y), B(y.id);
|
|
2029
|
+
})), p = (k, S) => {
|
|
2030
|
+
const B = tt(S);
|
|
2031
|
+
let I = ne(
|
|
2190
2032
|
{
|
|
2191
|
-
__tab:
|
|
2033
|
+
__tab: B
|
|
2192
2034
|
},
|
|
2193
|
-
|
|
2194
|
-
),
|
|
2195
|
-
if (
|
|
2196
|
-
const
|
|
2197
|
-
|
|
2035
|
+
k.query
|
|
2036
|
+
), y;
|
|
2037
|
+
if (k.iframe) {
|
|
2038
|
+
const g = encodeURIComponent(k.path);
|
|
2039
|
+
y = Vt, I.__src = g;
|
|
2198
2040
|
} else {
|
|
2199
|
-
const
|
|
2200
|
-
|
|
2041
|
+
const g = pt(k.path);
|
|
2042
|
+
y = g.path, I = ne(g.query, I);
|
|
2201
2043
|
}
|
|
2202
|
-
|
|
2203
|
-
path:
|
|
2204
|
-
query:
|
|
2044
|
+
t.push({
|
|
2045
|
+
path: y,
|
|
2046
|
+
query: I
|
|
2205
2047
|
});
|
|
2206
2048
|
};
|
|
2207
|
-
return { openNewTab: c, setIFramePath: (
|
|
2208
|
-
|
|
2209
|
-
}, active:
|
|
2210
|
-
},
|
|
2049
|
+
return { openNewTab: c, setIFramePath: (k) => {
|
|
2050
|
+
Vt = k;
|
|
2051
|
+
}, active: e, reset: r, getWrapper: () => document.getElementsByClassName("cache-page-wrapper")[0] };
|
|
2052
|
+
}, Ks = { class: "stack-tab__container" }, Js = ["src"], Qs = /* @__PURE__ */ ee({
|
|
2211
2053
|
__name: "StackTabs",
|
|
2212
2054
|
props: {
|
|
2213
2055
|
defaultTabs: { default: () => [] },
|
|
@@ -2215,8 +2057,9 @@ const Ps = () => {
|
|
|
2215
2057
|
append: { default: "last" },
|
|
2216
2058
|
contextmenu: { type: [Boolean, Object], default: !0 },
|
|
2217
2059
|
pageTransition: { default: "stack-tab-swap" },
|
|
2060
|
+
pageTransitionBack: { default: "stack-tab-swap-back" },
|
|
2218
2061
|
tabTransition: { default: "stack-tab-zoom" },
|
|
2219
|
-
tabScrollMode: { default:
|
|
2062
|
+
tabScrollMode: { default: pe.BOTH },
|
|
2220
2063
|
width: { default: "100%" },
|
|
2221
2064
|
height: { default: "100%" },
|
|
2222
2065
|
i18n: { default: "zh-CN" },
|
|
@@ -2225,60 +2068,64 @@ const Ps = () => {
|
|
|
2225
2068
|
iframePath: {}
|
|
2226
2069
|
},
|
|
2227
2070
|
emits: ["onActive", "onPageLoaded"],
|
|
2228
|
-
setup(
|
|
2229
|
-
const { tabs: n, pageShown:
|
|
2230
|
-
|
|
2231
|
-
const { setIFramePath:
|
|
2232
|
-
|
|
2233
|
-
f(
|
|
2071
|
+
setup(t, { emit: e }) {
|
|
2072
|
+
const { tabs: n, pageShown: s, caches: r, destroy: o, addPage: i, initial: f, setMaxSize: a, setGlobalScroll: c } = Ce(), p = e, l = t, { changeLocale: u } = Me(), k = D(!1);
|
|
2073
|
+
wn("maximum", k);
|
|
2074
|
+
const { setIFramePath: S } = Ys();
|
|
2075
|
+
S(l.iframePath), c(l.globalScroll), u(l.i18n), kn(() => {
|
|
2076
|
+
f(l.defaultTabs);
|
|
2234
2077
|
});
|
|
2235
|
-
const B = (
|
|
2236
|
-
p("onActive",
|
|
2078
|
+
const B = (b, O) => i(b, O), I = (b) => {
|
|
2079
|
+
p("onActive", b);
|
|
2237
2080
|
};
|
|
2238
|
-
a(
|
|
2081
|
+
a(l.max), _n(() => {
|
|
2239
2082
|
o();
|
|
2240
2083
|
});
|
|
2241
|
-
const
|
|
2084
|
+
const y = () => {
|
|
2242
2085
|
p("onPageLoaded");
|
|
2243
|
-
};
|
|
2244
|
-
return (
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2086
|
+
}, g = D(l.pageTransition), x = ge();
|
|
2087
|
+
return x.on("FORWARD", () => {
|
|
2088
|
+
g.value = l.pageTransition;
|
|
2089
|
+
}), x.on("BACKWARD", () => {
|
|
2090
|
+
g.value = l.pageTransitionBack;
|
|
2091
|
+
}), (b, O) => {
|
|
2092
|
+
const h = Ft("router-view");
|
|
2093
|
+
return z(), V("div", {
|
|
2094
|
+
class: ue(["stack-tab", { "stack-tab__maximum": k.value }]),
|
|
2095
|
+
style: it({
|
|
2096
|
+
width: b.width,
|
|
2097
|
+
height: b.height,
|
|
2098
|
+
"z-index": k.value ? T(en)("body *:not(.stack-tab,.stack-tab *)") : void 0
|
|
2252
2099
|
})
|
|
2253
2100
|
}, [
|
|
2254
|
-
|
|
2255
|
-
space:
|
|
2256
|
-
onActive:
|
|
2257
|
-
"tab-transition":
|
|
2258
|
-
max:
|
|
2101
|
+
$(Xs, {
|
|
2102
|
+
space: b.space,
|
|
2103
|
+
onActive: I,
|
|
2104
|
+
"tab-transition": b.tabTransition,
|
|
2105
|
+
max: b.max
|
|
2259
2106
|
}, {
|
|
2260
|
-
leftButton:
|
|
2261
|
-
|
|
2107
|
+
leftButton: le(() => [
|
|
2108
|
+
xe(b.$slots, "leftButton")
|
|
2262
2109
|
]),
|
|
2263
|
-
rightButton:
|
|
2264
|
-
|
|
2110
|
+
rightButton: le(() => [
|
|
2111
|
+
xe(b.$slots, "rightButton")
|
|
2265
2112
|
]),
|
|
2266
2113
|
_: 3
|
|
2267
2114
|
}, 8, ["space", "tab-transition", "max"]),
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
default:
|
|
2271
|
-
|
|
2272
|
-
name:
|
|
2115
|
+
Q("div", Ks, [
|
|
2116
|
+
$(h, null, {
|
|
2117
|
+
default: le(({ Component: _, route: w }) => [
|
|
2118
|
+
$(Gt, {
|
|
2119
|
+
name: g.value,
|
|
2273
2120
|
appear: "",
|
|
2274
2121
|
mode: "out-in"
|
|
2275
2122
|
}, {
|
|
2276
|
-
default:
|
|
2277
|
-
(z(), me(
|
|
2278
|
-
|
|
2279
|
-
key:
|
|
2280
|
-
onOnLoaded:
|
|
2281
|
-
}, null, 32)) :
|
|
2123
|
+
default: le(() => [
|
|
2124
|
+
(z(), me(xn, { include: T(r) }, [
|
|
2125
|
+
T(s) ? (z(), me(Tn(B(w, _)), {
|
|
2126
|
+
key: w.fullPath,
|
|
2127
|
+
onOnLoaded: y
|
|
2128
|
+
}, null, 32)) : se("", !0)
|
|
2282
2129
|
], 1032, ["include"]))
|
|
2283
2130
|
]),
|
|
2284
2131
|
_: 2
|
|
@@ -2286,18 +2133,18 @@ const Ps = () => {
|
|
|
2286
2133
|
]),
|
|
2287
2134
|
_: 1
|
|
2288
2135
|
}),
|
|
2289
|
-
|
|
2290
|
-
name:
|
|
2136
|
+
$(Xt, {
|
|
2137
|
+
name: b.pageTransition,
|
|
2291
2138
|
appear: ""
|
|
2292
2139
|
}, {
|
|
2293
|
-
default:
|
|
2294
|
-
(z(!0),
|
|
2295
|
-
key:
|
|
2140
|
+
default: le(() => [
|
|
2141
|
+
(z(!0), V(Ze, null, at(T(n).filter((_) => _.iframe), (_) => Zt((z(), V("iframe", {
|
|
2142
|
+
key: _.id,
|
|
2296
2143
|
class: "stack-tab__iframe",
|
|
2297
|
-
src: /^(javascript|data):/i.test(
|
|
2144
|
+
src: /^(javascript|data):/i.test(_.url ?? "") ? "about:blank" : _.url,
|
|
2298
2145
|
frameborder: "0"
|
|
2299
|
-
}, null, 8,
|
|
2300
|
-
[
|
|
2146
|
+
}, null, 8, Js)), [
|
|
2147
|
+
[jt, _.active]
|
|
2301
2148
|
])), 128))
|
|
2302
2149
|
]),
|
|
2303
2150
|
_: 1
|
|
@@ -2306,132 +2153,132 @@ const Ps = () => {
|
|
|
2306
2153
|
], 6);
|
|
2307
2154
|
};
|
|
2308
2155
|
}
|
|
2309
|
-
}),
|
|
2156
|
+
}), vt = typeof Buffer == "function";
|
|
2310
2157
|
typeof TextDecoder == "function" && new TextDecoder();
|
|
2311
|
-
const
|
|
2312
|
-
((
|
|
2313
|
-
let
|
|
2314
|
-
return
|
|
2158
|
+
const Ut = typeof TextEncoder == "function" ? new TextEncoder() : void 0, er = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Se = Array.prototype.slice.call(er);
|
|
2159
|
+
((t) => {
|
|
2160
|
+
let e = {};
|
|
2161
|
+
return t.forEach((n, s) => e[n] = s), e;
|
|
2315
2162
|
})(Se);
|
|
2316
2163
|
const J = String.fromCharCode.bind(String);
|
|
2317
2164
|
typeof Uint8Array.from == "function" && Uint8Array.from.bind(Uint8Array);
|
|
2318
|
-
const
|
|
2319
|
-
let
|
|
2320
|
-
const i =
|
|
2321
|
-
for (let f = 0; f <
|
|
2322
|
-
if ((n =
|
|
2165
|
+
const tr = (t) => t.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" : "_"), nr = (t) => {
|
|
2166
|
+
let e, n, s, r, o = "";
|
|
2167
|
+
const i = t.length % 3;
|
|
2168
|
+
for (let f = 0; f < t.length; ) {
|
|
2169
|
+
if ((n = t.charCodeAt(f++)) > 255 || (s = t.charCodeAt(f++)) > 255 || (r = t.charCodeAt(f++)) > 255)
|
|
2323
2170
|
throw new TypeError("invalid character found");
|
|
2324
|
-
|
|
2171
|
+
e = n << 16 | s << 8 | r, o += Se[e >> 18 & 63] + Se[e >> 12 & 63] + Se[e >> 6 & 63] + Se[e & 63];
|
|
2325
2172
|
}
|
|
2326
2173
|
return i ? o.slice(0, i - 3) + "===".substring(i) : o;
|
|
2327
|
-
},
|
|
2174
|
+
}, dn = typeof btoa == "function" ? (t) => btoa(t) : vt ? (t) => Buffer.from(t, "binary").toString("base64") : nr, sr = vt ? (t) => Buffer.from(t).toString("base64") : (t) => {
|
|
2328
2175
|
let n = [];
|
|
2329
|
-
for (let
|
|
2330
|
-
n.push(J.apply(null,
|
|
2331
|
-
return
|
|
2332
|
-
},
|
|
2333
|
-
if (
|
|
2334
|
-
var
|
|
2335
|
-
return
|
|
2176
|
+
for (let s = 0, r = t.length; s < r; s += 4096)
|
|
2177
|
+
n.push(J.apply(null, t.subarray(s, s + 4096)));
|
|
2178
|
+
return dn(n.join(""));
|
|
2179
|
+
}, rr = (t) => {
|
|
2180
|
+
if (t.length < 2) {
|
|
2181
|
+
var e = t.charCodeAt(0);
|
|
2182
|
+
return e < 128 ? t : e < 2048 ? J(192 | e >>> 6) + J(128 | e & 63) : J(224 | e >>> 12 & 15) + J(128 | e >>> 6 & 63) + J(128 | e & 63);
|
|
2336
2183
|
} else {
|
|
2337
|
-
var
|
|
2338
|
-
return J(240 |
|
|
2184
|
+
var e = 65536 + (t.charCodeAt(0) - 55296) * 1024 + (t.charCodeAt(1) - 56320);
|
|
2185
|
+
return J(240 | e >>> 18 & 7) + J(128 | e >>> 12 & 63) + J(128 | e >>> 6 & 63) + J(128 | e & 63);
|
|
2339
2186
|
}
|
|
2340
|
-
},
|
|
2341
|
-
const r = `<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1167.06 237.75"><path d="M79.24,19.73h108.91v29.7h-108.91v-29.7Z" style="fill:#79a7ff; stroke-width:0px;"/><path d="M179.24,199.67H20.26c-11.21-.07-20.26-9.17-20.26-20.38V20.39C0,9.18,9.05.07,20.26,0h59.49c3.51.07,6.34,2.9,6.41,6.42v44.36c0,3.54-2.87,6.41-6.41,6.41s-6.41-2.86-6.42-6.4V12.36H20.25c-4.13.07-7.44,3.44-7.44,7.56v159.41c0,4.13,3.31,7.49,7.44,7.56h158.98c4.13-.07,7.44-3.44,7.44-7.56V51.84c0-3.54,2.87-6.41,6.41-6.42,3.55,0,6.42,2.87,6.42,6.42v127.45c0,11.21-9.05,20.32-20.26,20.39h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M192.8,60.77c-3.66-.07-6.61-3.02-6.68-6.68v-18.23c.09-4.29-3.32-7.83-7.6-7.92h-96.43c-3.69,0-6.69-2.99-6.69-6.69s2.99-6.69,6.69-6.69h96.27c11.69.08,21.13,9.58,21.13,21.27v18.25c0,3.69-2.99,6.68-6.68,6.68h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M193.08,58.67H10.15c-3.61-.08-6.48-3.07-6.41-6.68-.08-3.62,2.79-6.61,6.4-6.69,0,0,0,0,0,0h182.93c3.62.08,6.48,3.08,6.41,6.69.07,3.61-2.79,6.6-6.41,6.68h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M137.2,58.67c-3.42.24-6.4-2.32-6.68-5.74v-28.15c.55-3.69,4-6.24,7.69-5.69,2.94.44,5.24,2.75,5.69,5.69v28.15c-.28,3.42-3.26,5.98-6.68,5.74h-.02Z" style="fill:#377dff; stroke-width:0px;"/><path d="M99.78,100.48l-12.83-22.22h-18.39l31.22,54.05,31.22-54.05h-18.39l-12.83,22.22Z" style="fill:#00d797; stroke-width:0px;"/><path d="M135.28,78.26l-35.49,61.43-35.44-61.43h-20.11l55.55,96.2,55.55-96.2s-20.06,0-20.06,0ZM313.33,59.95c0,.52-.67,1.84-2,3.95s-3.3,5.2-5.9,9.28-5.75,9.28-9.46,15.61c-3.7,6.33-7.52,13.34-11.45,21.04-4.51,8.85-7.76,15.8-9.76,20.86s-2.99,9.41-2.99,13.05c0,2.89,1.53,5.44,4.6,7.63,3.7-2.89,7.34-6.33,10.93-10.32,3.58-3.99,7.13-8.44,10.63-13.36s7.55-11.13,12.14-18.65c4.6-7.52,8.69-14.43,12.27-20.73-.17-.52-.36-1.04-.56-1.56s-.3-.95-.3-1.3c0-2.72.55-5.26,1.65-7.63,1.1-2.37,2.47-4.68,4.12-6.94s4.12-5.44,7.42-9.54c.87-1.1,1.94-1.65,3.21-1.65,2.08,0,3.12,1.33,3.12,3.99s-1.08,6.84-3.25,12.53c-2.17,5.7-5.37,12.39-9.59,20.08s-9.47,16.29-15.74,25.81c-6.28,9.51-13.37,19.45-21.3,29.8-8.04,10.47-13.79,15.7-17.26,15.7-1.97,0-4.19-1.08-6.68-3.25s-4.63-5.13-6.42-8.89-2.69-7.78-2.69-12.06c0-2.54.53-5.81,1.6-9.8s2.75-8.78,5.03-14.36,4.87-11.09,7.76-16.53c3.01-5.72,5.65-10.47,7.94-14.23,2.28-3.76,4.87-7.94,7.76-12.53,2.89-4.6,4.34-7.1,4.34-7.5,0-.87-.58-1.3-1.73-1.3-3.35,0-7.82,1.71-13.4,5.12s-12.85,8.59-21.82,15.53c-3.41,2.66-5.57,4.38-6.46,5.16s-1.34,1.43-1.34,1.95c0,.69.55,1.04,1.65,1.04.46,0,2.02-.17,4.68-.52s4.77-.52,6.33-.52c2.6,0,3.9.46,3.9,1.39,0,.81-.54,1.45-1.61,1.91-1.07.46-2.54.93-4.42,1.39s-4.44,1.1-7.68,1.91c-3.47.93-7.16,2.25-11.06,3.99-3.9,1.73-6.14,2.6-6.72,2.6-1.1,0-1.78-.4-2.04-1.21s-.39-2.14-.39-3.99c0-8.21,1.36-14.56,4.08-19.04s7.58-9.15,14.57-14.01c7.98-5.55,15.61-10.16,22.9-13.84,7.29-3.67,13.58-6.36,18.87-8.07s9.18-2.56,11.67-2.56,4.84,1.56,7.24,4.68,3.6,6.42,3.6,9.89h0ZM366.34,124.75c-8.39,11.1-14.76,19-19.13,23.68s-7.94,7.03-10.71,7.03c-2.2,0-4.22-.91-6.07-2.73-1.85-1.82-3.28-4.28-4.29-7.37s-1.52-6.4-1.52-9.93c0-2.31.22-4.39.65-6.25.43-1.85,1.26-3.89,2.47-6.12s2.82-4.64,4.81-7.24c2-2.6,4.44-5.55,7.33-8.85,1.73-2.02,3.19-3.73,4.38-5.12,1.18-1.39,2.34-2.33,3.47-2.82s2.96-.74,5.51-.74c1.85,0,3.61.25,5.29.74,1.68.49,2.52,1,2.52,1.52,0,1.04-.85,2.92-2.56,5.64s-4.45,6.03-8.24,9.93c-3.79,3.9-8.17,7.74-13.14,11.49-1.1,3.41-1.65,6.01-1.65,7.81,0,2.49.95,3.73,2.86,3.73.69,0,1.85-.59,3.47-1.78,1.62-1.18,4.35-3.47,8.2-6.85,3.84-3.38,7.3-6.38,10.37-8.98,2.25-1.97,4.87-4.9,7.85-8.8s5.39-6.84,7.24-8.8c4.28-4.51,7.2-7.44,8.76-8.8s3.06-2.04,4.51-2.04,2.33.43,2.82,1.3c.49.87.74,2.63.74,5.29,0,1.21-.12,2.2-.35,2.95s-.71,1.72-1.43,2.91-2.18,3.37-4.38,6.55-4.8,6.94-7.81,11.28c-1.66,2.38-3.09,4.93-4.25,7.59-1.21,2.75-1.82,4.81-1.82,6.2,0,3.01,1.18,4.51,3.56,4.51,1.96,0,4.25-.81,6.85-2.43s6.59-4.54,11.97-8.76v5.81c-6.77,6.25-11.77,10.79-15.01,13.62s-6.04,4.97-8.41,6.42-4.63,2.17-6.77,2.17c-4.86,0-7.29-2.89-7.29-8.67,0-2.2.72-5.16,2.17-8.89,1.44-3.73,3.79-9.12,7.03-16.18v-.02Z" style="fill:#306fff; stroke-width:0px;"/><path d="M407.71,133.77v2.17c0,3.41.84,6.07,2.52,7.98,1.68,1.91,3.87,2.86,6.59,2.86s5.77-.66,8.8-2c3.04-1.33,6.06-3.09,9.07-5.29s6.68-5.15,11.02-8.85v5.29c-6.54,7.87-12.67,13.89-18.39,18.09-5.72,4.19-11.54,6.29-17.44,6.29-5.15,0-9.22-2-12.23-5.99s-4.51-9.46-4.51-16.39c0-6.07,1.42-11.58,4.25-16.52s7.46-10.16,13.88-15.66c4.39-3.76,8.76-6.59,13.1-8.5s8.21-2.86,11.62-2.86c2.72,0,4.87.62,6.46,1.86s2.39,3.11,2.39,5.59c0,3.64-1.36,7.27-4.08,10.89s-6.87,7.2-12.45,10.76c-5.58,3.56-12.45,6.98-20.6,10.28h0ZM408.58,128.13c5.2-2.02,9.66-4.54,13.36-7.55,3.7-3.01,6.43-5.88,8.2-8.63,1.76-2.75,2.65-4.76,2.65-6.03s-.61-2-1.82-2c-1.04,0-2.73.67-5.07,2s-4.71,3.07-7.11,5.21-4.55,4.66-6.46,7.55c-1.9,2.86-3.17,6.08-3.73,9.46h-.02ZM585.37,132.9c-1.45-2.66-3.61-5.06-6.51-7.2-2.89-2.14-6.15-3.86-9.76-5.16s-7.39-2.27-11.32-2.91c-11.68-1.74-22.58-5.52-32.7-11.36-.87-.46-1.79-1.44-2.78-2.95-.98-1.5-1.47-2.95-1.47-4.34,0-5.09.85-10.19,2.56-15.31,1.71-5.12,3.89-9.12,6.55-12.01,4.28-4.8,11.98-8.99,23.12-12.58,11.13-3.58,23.67-5.38,37.6-5.38,8.33,0,14.76.64,19.3,1.91s6.81,3.24,6.81,5.9c0,4.34-.59,7.69-1.78,10.06s-2.46,3.95-3.82,4.73c-1.36.78-3.75,1.84-7.16,3.17-3.64,1.27-6.81,2.6-9.5,3.99s-4.99,2.72-6.9,3.99c-1.91,1.27-3.09,1.91-3.56,1.91-.58,0-.87-.23-.87-.69,0-.98,1.03-2.47,3.08-4.47s4.58-3.74,7.59-5.25c3.18-1.68,4.77-2.75,4.77-3.21,0-.75-1.76-1.13-5.29-1.13-10.7,0-20.59.95-29.67,2.86s-16.24,4.42-21.47,7.55c-5.23,3.12-7.85,6.3-7.85,9.54,0,2.02,1.08,3.46,3.25,4.29,2.17.84,6.95,2.24,14.36,4.21,7.4,1.97,14.02,4.22,19.86,6.77,8.38,3.59,14.6,7.32,18.65,11.19,4.05,3.88,6.07,8.21,6.07,13.01,0,3.3-.8,6.61-2.39,9.93-1.59,3.33-3.92,6.38-6.98,9.15-3.07,2.78-6.59,5.06-10.58,6.85-3.41,1.45-7.71,2.8-12.88,4.08-5.18,1.27-10.79,2.27-16.83,2.99-6.04.72-11.81,1.08-17.31,1.08-10.12,0-18.26-.95-24.42-2.86s-9.24-4.8-9.24-8.67c0-1.74,1.04-4.44,3.12-8.11s4.54-6.14,7.37-7.42c2.49-.98,4.89-1.55,7.2-1.69,2.31-.14,3.47.13,3.47.82,0,.17-.09.35-.26.52s-.38.32-.61.43c-.23.12-.46.23-.69.35-1.16.46-2.1.82-2.82,1.08-.72.26-1.3.52-1.74.78-.43.26-.65.62-.65,1.08,0,1.21,5.99,1.82,17.96,1.82,10.41,0,18.94-.38,25.59-1.13s12.52-2.11,17.61-4.08c5.09-1.97,9.71-4.68,13.88-8.15l.04.02ZM640.8,85.63h3.73c3.06-5.49,5.84-9.38,8.33-11.67,2.49-2.28,5.32-3.43,8.5-3.43s4.77.72,4.77,2.17c0,.69-1.24,2.57-3.73,5.64s-4.37,5.64-5.64,7.72c1.96.23,3.71.43,5.25.61,1.53.17,2.73.32,3.6.43-3.3,6.13-7.43,12.4-12.4,18.82l-4.08-.3c-1.1-.09-2.21-.17-3.34-.26s-2.5-.19-4.12-.3c-3.12,5.03-5.74,9.53-7.85,13.49s-3.73,7.59-4.86,10.89-1.69,6.42-1.69,9.37c0,3.99,1.59,5.99,4.77,5.99,2.2,0,5.07-1.17,8.63-3.51s8.31-5.94,14.27-10.8v5.81c-15.61,16.95-27.15,25.42-34.61,25.42-2.6,0-4.7-1.01-6.29-3.04-1.59-2.02-2.38-4.63-2.38-7.81,0-2.14.45-4.68,1.34-7.63.9-2.95,2.5-7.4,4.81-13.36-.81.69-1.58,1.37-2.3,2.04s-1.39,1.27-2,1.82-1.26,1.13-1.95,1.73c-.69.61-1.39,1.23-2.08,1.87v-5.99c6.07-5.09,13.42-14.02,22.03-26.8-.87-.06-1.68-.1-2.43-.13s-1.65-.04-2.69-.04c-3.41,0-5.96.23-7.63.69-.69.17-1.34.36-1.95.56s-1.03.3-1.26.3-.35-.17-.35-.52c0-1.91,1.18-4.77,3.56-8.59,1.91-3.24,3.72-5.64,5.42-7.2,1.71-1.56,3.79-2.62,6.25-3.17,2.46-.55,5.91-.82,10.37-.82h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M664.91,115.12c8.79-7.98,17.32-13.91,25.59-17.78s14.66-5.81,19.17-5.81c1.21,0,2.34.51,3.38,1.52,1.04,1,1.88,2.19,2.47,3.51.61,1.33.91,2.31.91,2.95,0,1.04-.41,1.81-1.21,2.3-.81.49-2.23,1.08-4.25,1.78.4.93.92,2.11,1.56,3.56s1.13,2.62,1.47,3.51c.35.9.52,1.69.52,2.39,0,1.39-1.4,3.98-4.21,7.76-2.81,3.79-4.77,6.58-5.9,8.37-1.13,1.79-1.69,3.99-1.69,6.59,0,4.28,1.96,6.42,5.9,6.42s10.38-3.79,19-11.36v5.29c-14.63,16.25-25.1,24.38-31.4,24.38-2.26,0-3.86-.74-4.81-2.21s-1.43-3.66-1.43-6.55c0-4.57,1.65-11.19,4.94-19.86-8.44,9.37-14.72,16.03-18.82,20-4.11,3.96-7.49,5.94-10.15,5.94-1.27,0-2.86-1.1-4.77-3.3-1.91-2.2-3.6-5.04-5.07-8.54-1.47-3.5-2.21-7.13-2.21-10.89,0-2.72.26-4.99.78-6.81s1.53-3.69,3.04-5.59c1.5-1.91,3.9-4.42,7.2-7.55v-.02ZM706.46,105.58c-15.04,6.88-25.75,12.72-32.14,17.52s-9.59,9.75-9.59,14.83c0,1.85.32,3.37.95,4.55.64,1.19,1.5,1.78,2.6,1.78.64,0,1.76-.4,3.38-1.21,6.07-3.58,11.62-8.25,16.66-14.01,5.03-5.75,11.07-13.58,18.13-23.46h.01Z" style="fill:#306fff; stroke-width:0px;"/><path d="M779.07,130.82v5.81c-6.19,6.07-11.23,10.79-15.14,14.14-3.9,3.35-7.55,5.96-10.93,7.81-3.38,1.85-6.69,2.78-9.93,2.78s-6.1-1.26-8.76-3.77c-2.66-2.52-4.74-5.81-6.25-9.89-1.5-4.08-2.26-8.4-2.26-12.97,0-3.93.87-7.43,2.6-10.5,1.74-3.07,5.09-7.03,10.06-11.88,5.9-5.78,11.38-10.25,16.44-13.4s9.04-4.73,11.93-4.73c2.08,0,3.85.72,5.29,2.17s2.17,3.27,2.17,5.46c0,1.85-.95,4.48-2.86,7.89-1.91,3.41-4.05,6.38-6.42,8.89-2.37,2.52-4.25,3.77-5.64,3.77-1.5,0-2.25-.81-2.25-2.43.06-.46.1-.9.13-1.3s.04-.81.04-1.21c0-.69-.25-1.08-.74-1.17s-1.08.13-1.78.65c-5.78,4.05-9.75,6.9-11.88,8.54-2.14,1.65-3.83,3.31-5.07,4.99s-1.87,3.44-1.87,5.29c0,3.41,1.1,6.19,3.3,8.33s5.06,3.21,8.59,3.21,8.02-1.4,13.14-4.21c5.12-2.8,11.15-6.9,18.09-12.27h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M844.13,130.65v5.81c-6.48,7.58-11.91,13.32-16.31,17.22s-8.07,5.86-11.02,5.86-5.39-.84-7.68-2.52c-2.29-1.68-4.34-3.99-6.16-6.94-1.82-2.95-3.98-7.05-6.46-12.32-2.95,3.64-5.61,7.04-7.98,10.19-2.37,3.15-4.02,5.25-4.94,6.29-.93,1.04-1.77,1.56-2.52,1.56-1.56,0-2.69-1-3.38-2.99-.69-2-1.04-4.9-1.04-8.72,0-5.21.62-10.22,1.87-15.05,1.24-4.83,3.04-9.53,5.38-14.1s5.35-9.5,9.02-14.79c3.67-5.29,7.79-10.83,12.36-16.61,6.3-7.98,11.74-14.5,16.31-19.56,4.57-5.06,8.54-8.88,11.93-11.45,3.38-2.57,6.2-3.86,8.46-3.86,2.78,0,4.16,1.24,4.16,3.73,0,2.14-5.12,9.85-15.35,23.12-10.24,13.27-25.16,31.39-44.76,54.35v7.46c13.13-14.05,23.69-24.49,31.71-31.31,8.01-6.82,14.21-10.24,18.61-10.24,1.79,0,3.18,1.06,4.16,3.17s1.47,4.55,1.47,7.33c0,5.67-2.43,10.92-7.29,15.74-4.86,4.83-12.32,10.37-22.38,16.61,1.74,2.6,3.27,4.5,4.6,5.68,1.33,1.19,3.01,1.78,5.03,1.78,1.79,0,3.73-.61,5.81-1.82s4.21-2.75,6.38-4.6,5.51-4.86,10.02-9.02h-.01ZM809.86,135.07c2.2-1.45,4.93-3.69,8.2-6.72,3.27-3.04,6.06-6.19,8.37-9.46s3.47-6,3.47-8.2c0-.92-.41-1.39-1.21-1.39-2.2,0-5.97,2.11-11.32,6.33-5.35,4.22-10.57,9.63-15.66,16.22,2.2,0,4.92,1.07,8.15,3.21h0ZM951.78,140.71l2.86,2.17c-.75,1.62-1.47,3.04-2.17,4.25-.69,1.21-1.53,2.69-2.52,4.42-.98,1.73-1.73,3.04-2.25,3.9-4.34,7.58-8.41,11.36-12.23,11.36-1.62,0-3.01-.64-4.16-1.91-1.16-1.27-1.73-3.01-1.73-5.2,0-3.12,1.11-7.4,3.34-12.84,2.23-5.43,5.67-12.13,10.32-20.08s10.51-16.96,17.57-27.02c7.05-10.06,15.01-20.67,23.85-31.84-5.09-.75-11.13-1.13-18.13-1.13-8.04,0-16.99.9-26.85,2.69s-18.45,3.86-25.76,6.2c-7.32,2.34-10.97,4.06-10.97,5.16,0,.41.14.68.43.82.29.15.77.26,1.43.35s1.52.19,2.56.3c6.77.93,10.15,1.97,10.15,3.12,0,.58-1.47.85-4.42.82s-6.51-.04-10.67-.04c-3.3,0-5.68-.13-7.16-.39s-2.46-.75-2.95-1.47-.74-1.84-.74-3.34c0-.98.29-3.12.87-6.42,1.1-6.13,2.79-11.04,5.07-14.75,2.28-3.7,5.78-6.72,10.5-9.06,4.71-2.34,11.2-4.21,19.47-5.59,13.88-2.37,25.36-3.56,34.44-3.56,6.71,0,12,.27,15.88.82,3.87.55,6.72,1.34,8.54,2.39,1.82,1.04,2.98,2.07,3.47,3.08s1.14,2.76,1.95,5.25l2.69,7.98c.17.52.32.94.43,1.26.12.32.22.65.3,1,.09.35.13.67.13.95,0,2.26-.51,4.28-1.52,6.07s-2.86,4.48-5.55,8.07-4.67,6.39-5.94,8.41c-14.92,24.23-25.1,42.16-30.53,53.78v.02ZM991.94,115.12c8.79-7.98,17.32-13.91,25.59-17.78s14.66-5.81,19.17-5.81c1.21,0,2.34.51,3.38,1.52,1.04,1,1.88,2.19,2.47,3.51.61,1.33.91,2.31.91,2.95,0,1.04-.41,1.81-1.21,2.3-.81.49-2.23,1.08-4.25,1.78.4.93.92,2.11,1.56,3.56s1.13,2.62,1.47,3.51c.35.9.52,1.69.52,2.39,0,1.39-1.4,3.98-4.21,7.76-2.81,3.79-4.77,6.58-5.9,8.37-1.13,1.79-1.69,3.99-1.69,6.59,0,4.28,1.96,6.42,5.9,6.42s10.38-3.79,19-11.36v5.29c-14.63,16.25-25.1,24.38-31.4,24.38-2.26,0-3.86-.74-4.81-2.21s-1.43-3.66-1.43-6.55c0-4.57,1.65-11.19,4.94-19.86-8.44,9.37-14.72,16.03-18.82,20-4.11,3.96-7.49,5.94-10.15,5.94-1.27,0-2.86-1.1-4.77-3.3-1.91-2.2-3.6-5.04-5.07-8.54-1.47-3.5-2.21-7.13-2.21-10.89,0-2.72.26-4.99.78-6.81s1.53-3.69,3.04-5.59c1.5-1.91,3.9-4.42,7.2-7.55v-.02ZM1033.49,105.58c-15.04,6.88-25.75,12.72-32.14,17.52s-9.59,9.75-9.59,14.83c0,1.85.32,3.37.95,4.55.64,1.19,1.5,1.78,2.6,1.78.64,0,1.76-.4,3.38-1.21,6.07-3.58,11.62-8.25,16.66-14.01,5.03-5.75,11.07-13.58,18.13-23.46h.01Z" style="fill:#306fff; stroke-width:0px;"/><path d="M1111.3,130.82v5.64c-6.02,3.82-10.76,5.72-14.23,5.72-1.91,0-3.93-.32-6.07-.95-5.2,6.59-9.67,11.42-13.4,14.49s-7.47,4.6-11.23,4.6c-4.34,0-7.68-2.29-10.02-6.85-2.34-4.57-3.51-10.24-3.51-17,0-9.2,2.78-19.21,8.33-30.06,5.56-10.85,12.29-21.07,20.08-30.45,7.84-9.46,15.43-17.28,22.77-23.46,7.34-6.19,12.32-9.28,14.92-9.28s3.73,1.71,3.73,5.12c0,15.15-19.43,41.58-58.29,79.29-.12,1.04-.17,3.09-.17,6.16,0,7.98,2.14,11.97,6.42,11.97,1.68,0,3.37-.68,5.07-2.04,1.71-1.36,4.32-3.95,7.85-7.76-1.39-3.12-2.08-5.44-2.08-6.94,0-3.18,1.3-6.62,3.9-10.32s5.57-6.9,8.89-9.59c3.33-2.69,5.74-4.03,7.24-4.03,2.37,0,3.56,1.71,3.56,5.12,0,2.6-.68,5.72-2.04,9.37-1.36,3.64-3.34,7.81-5.94,12.49.98.81,1.76,1.4,2.34,1.78s1.45.56,2.6.56c2.66,0,5.75-1.18,9.28-3.56v-.02ZM1067.24,117.81c3.01-2.6,6.03-5.68,9.06-9.24s7.47-9.01,13.32-16.35c5.61-7.05,10.02-12.94,13.23-17.65s5.62-8.63,7.24-11.75c1.62-3.12,2.43-5.26,2.43-6.42,0-.87-.23-1.3-.69-1.3-1.27,0-3.92,2.1-7.94,6.29-4.02,4.19-8.6,9.93-13.75,17.22-7.11,10.06-12.26,17.64-15.44,22.73-3.18,5.09-5.67,10.58-7.46,16.48h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M1110.96,133.08v-2.08c14.92-15.73,25.18-26.75,30.79-33.05,1.27-7.11,4.34-10.67,9.19-10.67,1.21,0,2.52.35,3.9,1.04l.52,1.65c-.23.69-.35,1.68-.35,2.95,0,1.1.42,3.14,1.26,6.12s1.49,5.48,1.95,7.5.69,4.31.69,6.85c0,3.82-.87,7.48-2.6,10.97-1.73,3.5-4.25,6.85-7.55,10.06-3.3,3.21-7.55,6.49-12.75,9.85,2.08.35,3.73.52,4.94.52,2.37,0,4.93-.59,7.68-1.78,2.75-1.18,5.55-2.78,8.41-4.77,2.86-2,6.2-4.58,10.02-7.76v5.81c-7.4,7.23-14.02,12.71-19.86,16.44s-10.87,5.59-15.09,5.59c-5.44,0-10.47-2.31-15.09-6.94-2.72-2.78-4.41-5.43-5.08-7.98-.67-2.54-1-5.99-1-10.32h.02ZM1143.31,119.8l-1.56-12.66c-3.59,4.05-11.25,11.83-22.99,23.33,3.47.75,5.84,1.76,7.11,3.04,1.27,1.27,3.06,3.73,5.38,7.37,3.93-1.62,6.95-3.83,9.07-6.64,2.11-2.8,3.17-6.64,3.17-11.49,0-.58-.01-1.1-.04-1.56s-.07-.92-.13-1.39h0Z" style="fill:#306fff; stroke-width:0px;"/><g style="isolation:isolate;"><text transform="translate(943.45 229.96)" style="fill:#00d797; font-family:ArialMT, Arial; font-size:24px; isolation:isolate;"><tspan x="0" y="0">version: ${e}</tspan></text></g></svg>`, i = "data:image/svg+xml;base64," + Xs(r), f = "font-size: 1px; padding: " + Math.floor(100 / 4) + "px " + Math.floor(580 / 2) + "px; line-height: " + Math.floor(100 / 2) + "px;";
|
|
2187
|
+
}, or = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, ir = (t) => t.replace(or, rr), qt = vt ? (t) => Buffer.from(t, "utf8").toString("base64") : Ut ? (t) => sr(Ut.encode(t)) : (t) => dn(ir(t)), ar = (t, e = !1) => e ? tr(qt(t)) : qt(t), cr = (t) => {
|
|
2188
|
+
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: ${t}</tspan></text></g></svg>`, i = "data:image/svg+xml;base64," + ar(s), f = "font-size: 1px; padding: " + Math.floor(100 / 4) + "px " + Math.floor(580 / 2) + "px; line-height: " + Math.floor(100 / 2) + "px;";
|
|
2342
2189
|
window.console.log(
|
|
2343
2190
|
"%c+",
|
|
2344
2191
|
f + `background-image: url(${i});background-size: 580px 100px;background-repeat: norepeat; color: transparent;`
|
|
2345
2192
|
);
|
|
2346
|
-
},
|
|
2347
|
-
const { attrs:
|
|
2348
|
-
let
|
|
2349
|
-
|
|
2350
|
-
const
|
|
2351
|
-
return
|
|
2352
|
-
forward: (
|
|
2353
|
-
const
|
|
2193
|
+
}, lr = () => {
|
|
2194
|
+
const { attrs: t, props: e } = Yt(), { pageShown: n, getTab: s, markDeletableCache: r, removeComponent: o, getComponent: i, addPageScroller: f } = Ce(), a = Sn(), c = ct(), p = ge();
|
|
2195
|
+
let l = "", u = "";
|
|
2196
|
+
l = t.tId || e.tId;
|
|
2197
|
+
const k = t.pId || e.pId;
|
|
2198
|
+
return u = a.query.__tab, {
|
|
2199
|
+
forward: (y) => {
|
|
2200
|
+
const g = ne(
|
|
2354
2201
|
{
|
|
2355
|
-
__tab:
|
|
2202
|
+
__tab: u
|
|
2356
2203
|
},
|
|
2357
|
-
|
|
2204
|
+
y.query
|
|
2358
2205
|
);
|
|
2359
|
-
c.push({
|
|
2360
|
-
path:
|
|
2361
|
-
query:
|
|
2206
|
+
p.emit("FORWARD"), c.push({
|
|
2207
|
+
path: y.path,
|
|
2208
|
+
query: g
|
|
2362
2209
|
});
|
|
2363
2210
|
},
|
|
2364
|
-
backward: (
|
|
2365
|
-
const
|
|
2366
|
-
if (!
|
|
2211
|
+
backward: (y, g) => {
|
|
2212
|
+
const x = s(l);
|
|
2213
|
+
if (!x)
|
|
2367
2214
|
return;
|
|
2368
|
-
const
|
|
2369
|
-
let
|
|
2370
|
-
if (typeof
|
|
2371
|
-
|
|
2215
|
+
const b = x.pages;
|
|
2216
|
+
let O = 0;
|
|
2217
|
+
if (typeof y == "number")
|
|
2218
|
+
O = Math.abs(y);
|
|
2372
2219
|
else {
|
|
2373
|
-
let
|
|
2374
|
-
const
|
|
2375
|
-
|
|
2376
|
-
for (let
|
|
2377
|
-
if (
|
|
2378
|
-
|
|
2220
|
+
let w = 1, R = !1;
|
|
2221
|
+
const P = b.list(), G = pt(y);
|
|
2222
|
+
g = ne(G.query, g);
|
|
2223
|
+
for (let A = b.size() - 2; A >= 0; A--) {
|
|
2224
|
+
if (P[A].path === G.path) {
|
|
2225
|
+
R = !0;
|
|
2379
2226
|
break;
|
|
2380
2227
|
}
|
|
2381
|
-
|
|
2228
|
+
w += 1;
|
|
2382
2229
|
}
|
|
2383
|
-
|
|
2230
|
+
R && (O = w);
|
|
2384
2231
|
}
|
|
2385
|
-
if (
|
|
2232
|
+
if (O === 0 || b.size() <= O)
|
|
2386
2233
|
return;
|
|
2387
|
-
for (let
|
|
2388
|
-
const
|
|
2389
|
-
o(
|
|
2234
|
+
for (let w = 0; w < O; w++) {
|
|
2235
|
+
const R = b.pop();
|
|
2236
|
+
o(R.id), r(R.id);
|
|
2390
2237
|
}
|
|
2391
|
-
const
|
|
2392
|
-
if (
|
|
2393
|
-
const
|
|
2394
|
-
|
|
2238
|
+
const h = b == null ? void 0 : b.peek(), _ = i(h.id);
|
|
2239
|
+
if (_ != null) {
|
|
2240
|
+
const w = _.components.DynamicComponent;
|
|
2241
|
+
w.props = ne(g, w.props);
|
|
2395
2242
|
}
|
|
2396
|
-
c.push({
|
|
2397
|
-
path:
|
|
2398
|
-
query:
|
|
2243
|
+
p.emit("BACKWARD"), c.push({
|
|
2244
|
+
path: h.path,
|
|
2245
|
+
query: h.query
|
|
2399
2246
|
});
|
|
2400
2247
|
},
|
|
2401
|
-
addScroller: (...
|
|
2402
|
-
f(
|
|
2248
|
+
addScroller: (...y) => {
|
|
2249
|
+
f(k, ...y);
|
|
2403
2250
|
}
|
|
2404
2251
|
};
|
|
2405
|
-
},
|
|
2252
|
+
}, br = /* @__PURE__ */ ee({
|
|
2406
2253
|
__name: "iframe",
|
|
2407
|
-
setup(
|
|
2408
|
-
return
|
|
2254
|
+
setup(t) {
|
|
2255
|
+
return lr(), () => {
|
|
2409
2256
|
};
|
|
2410
2257
|
}
|
|
2411
|
-
}),
|
|
2412
|
-
const
|
|
2258
|
+
}), vr = () => {
|
|
2259
|
+
const t = ge(), { attrs: e } = Yt();
|
|
2413
2260
|
He(() => {
|
|
2414
|
-
|
|
2261
|
+
s();
|
|
2415
2262
|
});
|
|
2416
2263
|
const n = () => {
|
|
2417
|
-
|
|
2418
|
-
},
|
|
2419
|
-
|
|
2264
|
+
t.emit(Z.PAGE_LOADING, { tId: e.tId, value: !0 });
|
|
2265
|
+
}, s = () => {
|
|
2266
|
+
t.emit(Z.PAGE_LOADING, { tId: e.tId, value: !1 });
|
|
2420
2267
|
};
|
|
2421
|
-
return { openTabLoading: n, closeTabLoading:
|
|
2422
|
-
},
|
|
2423
|
-
install(
|
|
2424
|
-
|
|
2268
|
+
return { openTabLoading: n, closeTabLoading: s };
|
|
2269
|
+
}, mr = {
|
|
2270
|
+
install(t, e) {
|
|
2271
|
+
cr("0.1.38"), t.component("VueStackTabs", Qs).use(fs).use(Wn().getI18n(e));
|
|
2425
2272
|
}
|
|
2426
2273
|
};
|
|
2427
2274
|
export {
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2275
|
+
br as IFrame,
|
|
2276
|
+
je as Stack,
|
|
2277
|
+
Qs as StackTab,
|
|
2278
|
+
rt as TabHeaderButton,
|
|
2279
|
+
pe as TabScrollMode,
|
|
2280
|
+
mr as default,
|
|
2281
|
+
Ys as useStackTab,
|
|
2282
|
+
vr as useTabLoading,
|
|
2283
|
+
lr as useTabRouter
|
|
2437
2284
|
};
|