my-header-yichong 2.0.4 → 2.0.6
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/my-header.js +1083 -1081
- package/my-header.umd.cjs +11 -11
- package/package.json +2 -2
- package/style.css +1 -1
package/my-header.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { warn as
|
|
2
|
-
function
|
|
1
|
+
import { warn as xo, inject as H, ref as T, computed as x, unref as z, isRef as Se, getCurrentInstance as pn, provide as oe, reactive as hn, defineComponent as U, h as j, Transition as dr, withCtx as be, withDirectives as Ke, createVNode as ue, vShow as fr, createApp as Po, toRefs as Xt, nextTick as Xe, cloneVNode as Oo, Fragment as ve, onMounted as K, watchEffect as se, onUnmounted as re, watch as tt, Teleport as To, shallowRef as pr, openBlock as k, createElementBlock as $, createElementVNode as g, toDisplayString as J, createTextVNode as pt, createCommentVNode as B, vModelText as It, pushScopeId as nt, popScopeId as rt, resolveComponent as Co, hasInjectionContext as No, markRaw as Ge, effectScope as Ao, isReactive as mn, toRef as Bt, toRaw as ko, getCurrentScope as Lo, onScopeDispose as $o, normalizeStyle as Fo, normalizeClass as Ro, createBlock as Be, renderList as Mt } from "vue";
|
|
2
|
+
function hr(e, t) {
|
|
3
3
|
return function() {
|
|
4
4
|
return e.apply(t, arguments);
|
|
5
5
|
};
|
|
6
6
|
}
|
|
7
|
-
const { toString:
|
|
8
|
-
const n =
|
|
7
|
+
const { toString: Do } = Object.prototype, { getPrototypeOf: vn } = Object, Et = ((e) => (t) => {
|
|
8
|
+
const n = Do.call(t);
|
|
9
9
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
10
|
-
})(/* @__PURE__ */ Object.create(null)), de = (e) => (e = e.toLowerCase(), (t) =>
|
|
11
|
-
function Do(e) {
|
|
12
|
-
return e !== null && !Xe(e) && e.constructor !== null && !Xe(e.constructor) && Q(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
13
|
-
}
|
|
14
|
-
const hr = de("ArrayBuffer");
|
|
10
|
+
})(/* @__PURE__ */ Object.create(null)), de = (e) => (e = e.toLowerCase(), (t) => Et(t) === e), St = (e) => (t) => typeof t === e, { isArray: Re } = Array, Ze = St("undefined");
|
|
15
11
|
function jo(e) {
|
|
12
|
+
return e !== null && !Ze(e) && e.constructor !== null && !Ze(e.constructor) && Q(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
13
|
+
}
|
|
14
|
+
const mr = de("ArrayBuffer");
|
|
15
|
+
function Io(e) {
|
|
16
16
|
let t;
|
|
17
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
17
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && mr(e.buffer), t;
|
|
18
18
|
}
|
|
19
|
-
const
|
|
20
|
-
if (
|
|
19
|
+
const Bo = St("string"), Q = St("function"), vr = St("number"), xt = (e) => e !== null && typeof e == "object", Mo = (e) => e === !0 || e === !1, ht = (e) => {
|
|
20
|
+
if (Et(e) !== "object")
|
|
21
21
|
return !1;
|
|
22
|
-
const t =
|
|
22
|
+
const t = vn(e);
|
|
23
23
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
24
|
-
},
|
|
24
|
+
}, Uo = de("Date"), Ho = de("File"), Vo = de("Blob"), zo = de("FileList"), qo = (e) => xt(e) && Q(e.pipe), Go = (e) => {
|
|
25
25
|
let t;
|
|
26
|
-
return e && (typeof FormData == "function" && e instanceof FormData || Q(e.append) && ((t =
|
|
26
|
+
return e && (typeof FormData == "function" && e instanceof FormData || Q(e.append) && ((t = Et(e)) === "formdata" || // detect form-data instance
|
|
27
27
|
t === "object" && Q(e.toString) && e.toString() === "[object FormData]"));
|
|
28
|
-
},
|
|
29
|
-
function
|
|
28
|
+
}, Wo = de("URLSearchParams"), Jo = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
29
|
+
function ot(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
30
30
|
if (e === null || typeof e > "u")
|
|
31
31
|
return;
|
|
32
32
|
let r, o;
|
|
33
|
-
if (typeof e != "object" && (e = [e]),
|
|
33
|
+
if (typeof e != "object" && (e = [e]), Re(e))
|
|
34
34
|
for (r = 0, o = e.length; r < o; r++)
|
|
35
35
|
t.call(null, e[r], r, e);
|
|
36
36
|
else {
|
|
@@ -40,7 +40,7 @@ function tt(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
40
40
|
i = s[r], t.call(null, e[i], i, e);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function gr(e, t) {
|
|
44
44
|
t = t.toLowerCase();
|
|
45
45
|
const n = Object.keys(e);
|
|
46
46
|
let r = n.length, o;
|
|
@@ -49,23 +49,23 @@ function vr(e, t) {
|
|
|
49
49
|
return o;
|
|
50
50
|
return null;
|
|
51
51
|
}
|
|
52
|
-
const
|
|
53
|
-
function
|
|
54
|
-
const { caseless: e } =
|
|
55
|
-
const s = e &&
|
|
56
|
-
|
|
52
|
+
const yr = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), br = (e) => !Ze(e) && e !== yr;
|
|
53
|
+
function Zt() {
|
|
54
|
+
const { caseless: e } = br(this) && this || {}, t = {}, n = (r, o) => {
|
|
55
|
+
const s = e && gr(t, o) || o;
|
|
56
|
+
ht(t[s]) && ht(r) ? t[s] = Zt(t[s], r) : ht(r) ? t[s] = Zt({}, r) : Re(r) ? t[s] = r.slice() : t[s] = r;
|
|
57
57
|
};
|
|
58
58
|
for (let r = 0, o = arguments.length; r < o; r++)
|
|
59
|
-
arguments[r] &&
|
|
59
|
+
arguments[r] && ot(arguments[r], n);
|
|
60
60
|
return t;
|
|
61
61
|
}
|
|
62
|
-
const
|
|
63
|
-
n && Q(o) ? e[s] =
|
|
64
|
-
}, { allOwnKeys: r }), e),
|
|
62
|
+
const Ko = (e, t, n, { allOwnKeys: r } = {}) => (ot(t, (o, s) => {
|
|
63
|
+
n && Q(o) ? e[s] = hr(o, n) : e[s] = o;
|
|
64
|
+
}, { allOwnKeys: r }), e), Yo = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Xo = (e, t, n, r) => {
|
|
65
65
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
66
66
|
value: t.prototype
|
|
67
67
|
}), n && Object.assign(e.prototype, n);
|
|
68
|
-
},
|
|
68
|
+
}, Zo = (e, t, n, r) => {
|
|
69
69
|
let o, s, a;
|
|
70
70
|
const i = {};
|
|
71
71
|
if (t = t || {}, e == null)
|
|
@@ -73,50 +73,50 @@ const Jo = (e, t, n, { allOwnKeys: r } = {}) => (tt(t, (o, s) => {
|
|
|
73
73
|
do {
|
|
74
74
|
for (o = Object.getOwnPropertyNames(e), s = o.length; s-- > 0; )
|
|
75
75
|
a = o[s], (!r || r(a, e, t)) && !i[a] && (t[a] = e[a], i[a] = !0);
|
|
76
|
-
e = n !== !1 &&
|
|
76
|
+
e = n !== !1 && vn(e);
|
|
77
77
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
78
78
|
return t;
|
|
79
|
-
},
|
|
79
|
+
}, Qo = (e, t, n) => {
|
|
80
80
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
81
81
|
const r = e.indexOf(t, n);
|
|
82
82
|
return r !== -1 && r === n;
|
|
83
|
-
},
|
|
83
|
+
}, es = (e) => {
|
|
84
84
|
if (!e)
|
|
85
85
|
return null;
|
|
86
|
-
if (
|
|
86
|
+
if (Re(e))
|
|
87
87
|
return e;
|
|
88
88
|
let t = e.length;
|
|
89
|
-
if (!
|
|
89
|
+
if (!vr(t))
|
|
90
90
|
return null;
|
|
91
91
|
const n = new Array(t);
|
|
92
92
|
for (; t-- > 0; )
|
|
93
93
|
n[t] = e[t];
|
|
94
94
|
return n;
|
|
95
|
-
},
|
|
95
|
+
}, ts = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && vn(Uint8Array)), ns = (e, t) => {
|
|
96
96
|
const r = (e && e[Symbol.iterator]).call(e);
|
|
97
97
|
let o;
|
|
98
98
|
for (; (o = r.next()) && !o.done; ) {
|
|
99
99
|
const s = o.value;
|
|
100
100
|
t.call(e, s[0], s[1]);
|
|
101
101
|
}
|
|
102
|
-
},
|
|
102
|
+
}, rs = (e, t) => {
|
|
103
103
|
let n;
|
|
104
104
|
const r = [];
|
|
105
105
|
for (; (n = e.exec(t)) !== null; )
|
|
106
106
|
r.push(n);
|
|
107
107
|
return r;
|
|
108
|
-
},
|
|
108
|
+
}, os = de("HTMLFormElement"), ss = (e) => e.toLowerCase().replace(
|
|
109
109
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
110
110
|
function(n, r, o) {
|
|
111
111
|
return r.toUpperCase() + o;
|
|
112
112
|
}
|
|
113
|
-
),
|
|
113
|
+
), Ln = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), as = de("RegExp"), wr = (e, t) => {
|
|
114
114
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
115
|
-
|
|
115
|
+
ot(n, (o, s) => {
|
|
116
116
|
t(o, s, e) !== !1 && (r[s] = o);
|
|
117
117
|
}), Object.defineProperties(e, r);
|
|
118
|
-
},
|
|
119
|
-
|
|
118
|
+
}, is = (e) => {
|
|
119
|
+
wr(e, (t, n) => {
|
|
120
120
|
if (Q(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
121
121
|
return !1;
|
|
122
122
|
const r = e[n];
|
|
@@ -130,98 +130,98 @@ const Jo = (e, t, n, { allOwnKeys: r } = {}) => (tt(t, (o, s) => {
|
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
|
-
},
|
|
133
|
+
}, ls = (e, t) => {
|
|
134
134
|
const n = {}, r = (o) => {
|
|
135
135
|
o.forEach((s) => {
|
|
136
136
|
n[s] = !0;
|
|
137
137
|
});
|
|
138
138
|
};
|
|
139
|
-
return
|
|
140
|
-
},
|
|
141
|
-
},
|
|
142
|
-
DIGIT:
|
|
143
|
-
ALPHA:
|
|
144
|
-
ALPHA_DIGIT:
|
|
145
|
-
},
|
|
139
|
+
return Re(e) ? r(e) : r(String(e).split(t)), n;
|
|
140
|
+
}, us = () => {
|
|
141
|
+
}, cs = (e, t) => (e = +e, Number.isFinite(e) ? e : t), Ut = "abcdefghijklmnopqrstuvwxyz", $n = "0123456789", _r = {
|
|
142
|
+
DIGIT: $n,
|
|
143
|
+
ALPHA: Ut,
|
|
144
|
+
ALPHA_DIGIT: Ut + Ut.toUpperCase() + $n
|
|
145
|
+
}, ds = (e = 16, t = _r.ALPHA_DIGIT) => {
|
|
146
146
|
let n = "";
|
|
147
147
|
const { length: r } = t;
|
|
148
148
|
for (; e--; )
|
|
149
149
|
n += t[Math.random() * r | 0];
|
|
150
150
|
return n;
|
|
151
151
|
};
|
|
152
|
-
function
|
|
152
|
+
function fs(e) {
|
|
153
153
|
return !!(e && Q(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
154
154
|
}
|
|
155
|
-
const
|
|
155
|
+
const ps = (e) => {
|
|
156
156
|
const t = new Array(10), n = (r, o) => {
|
|
157
|
-
if (
|
|
157
|
+
if (xt(r)) {
|
|
158
158
|
if (t.indexOf(r) >= 0)
|
|
159
159
|
return;
|
|
160
160
|
if (!("toJSON" in r)) {
|
|
161
161
|
t[o] = r;
|
|
162
|
-
const s =
|
|
163
|
-
return
|
|
162
|
+
const s = Re(r) ? [] : {};
|
|
163
|
+
return ot(r, (a, i) => {
|
|
164
164
|
const d = n(a, o + 1);
|
|
165
|
-
!
|
|
165
|
+
!Ze(d) && (s[i] = d);
|
|
166
166
|
}), t[o] = void 0, s;
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
return r;
|
|
170
170
|
};
|
|
171
171
|
return n(e, 0);
|
|
172
|
-
},
|
|
173
|
-
isArray:
|
|
174
|
-
isArrayBuffer:
|
|
175
|
-
isBuffer:
|
|
176
|
-
isFormData:
|
|
177
|
-
isArrayBufferView:
|
|
178
|
-
isString:
|
|
179
|
-
isNumber:
|
|
180
|
-
isBoolean:
|
|
181
|
-
isObject:
|
|
182
|
-
isPlainObject:
|
|
183
|
-
isUndefined:
|
|
184
|
-
isDate:
|
|
185
|
-
isFile:
|
|
186
|
-
isBlob:
|
|
187
|
-
isRegExp:
|
|
172
|
+
}, hs = de("AsyncFunction"), ms = (e) => e && (xt(e) || Q(e)) && Q(e.then) && Q(e.catch), h = {
|
|
173
|
+
isArray: Re,
|
|
174
|
+
isArrayBuffer: mr,
|
|
175
|
+
isBuffer: jo,
|
|
176
|
+
isFormData: Go,
|
|
177
|
+
isArrayBufferView: Io,
|
|
178
|
+
isString: Bo,
|
|
179
|
+
isNumber: vr,
|
|
180
|
+
isBoolean: Mo,
|
|
181
|
+
isObject: xt,
|
|
182
|
+
isPlainObject: ht,
|
|
183
|
+
isUndefined: Ze,
|
|
184
|
+
isDate: Uo,
|
|
185
|
+
isFile: Ho,
|
|
186
|
+
isBlob: Vo,
|
|
187
|
+
isRegExp: as,
|
|
188
188
|
isFunction: Q,
|
|
189
|
-
isStream:
|
|
190
|
-
isURLSearchParams:
|
|
191
|
-
isTypedArray:
|
|
192
|
-
isFileList:
|
|
193
|
-
forEach:
|
|
194
|
-
merge:
|
|
195
|
-
extend:
|
|
196
|
-
trim:
|
|
197
|
-
stripBOM:
|
|
198
|
-
inherits:
|
|
199
|
-
toFlatObject:
|
|
200
|
-
kindOf:
|
|
189
|
+
isStream: qo,
|
|
190
|
+
isURLSearchParams: Wo,
|
|
191
|
+
isTypedArray: ts,
|
|
192
|
+
isFileList: zo,
|
|
193
|
+
forEach: ot,
|
|
194
|
+
merge: Zt,
|
|
195
|
+
extend: Ko,
|
|
196
|
+
trim: Jo,
|
|
197
|
+
stripBOM: Yo,
|
|
198
|
+
inherits: Xo,
|
|
199
|
+
toFlatObject: Zo,
|
|
200
|
+
kindOf: Et,
|
|
201
201
|
kindOfTest: de,
|
|
202
|
-
endsWith:
|
|
203
|
-
toArray:
|
|
204
|
-
forEachEntry:
|
|
205
|
-
matchAll:
|
|
206
|
-
isHTMLForm:
|
|
207
|
-
hasOwnProperty:
|
|
208
|
-
hasOwnProp:
|
|
202
|
+
endsWith: Qo,
|
|
203
|
+
toArray: es,
|
|
204
|
+
forEachEntry: ns,
|
|
205
|
+
matchAll: rs,
|
|
206
|
+
isHTMLForm: os,
|
|
207
|
+
hasOwnProperty: Ln,
|
|
208
|
+
hasOwnProp: Ln,
|
|
209
209
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
210
|
-
reduceDescriptors:
|
|
211
|
-
freezeMethods:
|
|
212
|
-
toObjectSet:
|
|
213
|
-
toCamelCase:
|
|
214
|
-
noop:
|
|
215
|
-
toFiniteNumber:
|
|
216
|
-
findKey:
|
|
217
|
-
global:
|
|
218
|
-
isContextDefined:
|
|
219
|
-
ALPHABET:
|
|
220
|
-
generateString:
|
|
221
|
-
isSpecCompliantForm:
|
|
222
|
-
toJSONObject:
|
|
223
|
-
isAsyncFn:
|
|
224
|
-
isThenable:
|
|
210
|
+
reduceDescriptors: wr,
|
|
211
|
+
freezeMethods: is,
|
|
212
|
+
toObjectSet: ls,
|
|
213
|
+
toCamelCase: ss,
|
|
214
|
+
noop: us,
|
|
215
|
+
toFiniteNumber: cs,
|
|
216
|
+
findKey: gr,
|
|
217
|
+
global: yr,
|
|
218
|
+
isContextDefined: br,
|
|
219
|
+
ALPHABET: _r,
|
|
220
|
+
generateString: ds,
|
|
221
|
+
isSpecCompliantForm: fs,
|
|
222
|
+
toJSONObject: ps,
|
|
223
|
+
isAsyncFn: hs,
|
|
224
|
+
isThenable: ms
|
|
225
225
|
};
|
|
226
226
|
function L(e, t, n, r, o) {
|
|
227
227
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), o && (this.response = o);
|
|
@@ -247,7 +247,7 @@ h.inherits(L, Error, {
|
|
|
247
247
|
};
|
|
248
248
|
}
|
|
249
249
|
});
|
|
250
|
-
const
|
|
250
|
+
const Er = L.prototype, Sr = {};
|
|
251
251
|
[
|
|
252
252
|
"ERR_BAD_OPTION_VALUE",
|
|
253
253
|
"ERR_BAD_OPTION",
|
|
@@ -263,35 +263,35 @@ const _r = L.prototype, Er = {};
|
|
|
263
263
|
"ERR_INVALID_URL"
|
|
264
264
|
// eslint-disable-next-line func-names
|
|
265
265
|
].forEach((e) => {
|
|
266
|
-
|
|
266
|
+
Sr[e] = { value: e };
|
|
267
267
|
});
|
|
268
|
-
Object.defineProperties(L,
|
|
269
|
-
Object.defineProperty(
|
|
268
|
+
Object.defineProperties(L, Sr);
|
|
269
|
+
Object.defineProperty(Er, "isAxiosError", { value: !0 });
|
|
270
270
|
L.from = (e, t, n, r, o, s) => {
|
|
271
|
-
const a = Object.create(
|
|
271
|
+
const a = Object.create(Er);
|
|
272
272
|
return h.toFlatObject(e, a, function(d) {
|
|
273
273
|
return d !== Error.prototype;
|
|
274
274
|
}, (i) => i !== "isAxiosError"), L.call(a, e.message, t, n, r, o), a.cause = e, a.name = e.name, s && Object.assign(a, s), a;
|
|
275
275
|
};
|
|
276
|
-
const
|
|
277
|
-
function
|
|
276
|
+
const vs = null;
|
|
277
|
+
function Qt(e) {
|
|
278
278
|
return h.isPlainObject(e) || h.isArray(e);
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function xr(e) {
|
|
281
281
|
return h.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function Fn(e, t, n) {
|
|
284
284
|
return e ? e.concat(t).map(function(o, s) {
|
|
285
|
-
return o =
|
|
285
|
+
return o = xr(o), !n && s ? "[" + o + "]" : o;
|
|
286
286
|
}).join(n ? "." : "") : t;
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
return h.isArray(e) && !e.some(
|
|
288
|
+
function gs(e) {
|
|
289
|
+
return h.isArray(e) && !e.some(Qt);
|
|
290
290
|
}
|
|
291
|
-
const
|
|
291
|
+
const ys = h.toFlatObject(h, {}, null, function(t) {
|
|
292
292
|
return /^is[A-Z]/.test(t);
|
|
293
293
|
});
|
|
294
|
-
function
|
|
294
|
+
function Pt(e, t, n) {
|
|
295
295
|
if (!h.isObject(e))
|
|
296
296
|
throw new TypeError("target must be an object");
|
|
297
297
|
t = t || new FormData(), n = h.toFlatObject(n, {
|
|
@@ -318,21 +318,21 @@ function xt(e, t, n) {
|
|
|
318
318
|
if (m && !y && typeof m == "object") {
|
|
319
319
|
if (h.endsWith(p, "{}"))
|
|
320
320
|
p = r ? p : p.slice(0, -2), m = JSON.stringify(m);
|
|
321
|
-
else if (h.isArray(m) &&
|
|
322
|
-
return p =
|
|
321
|
+
else if (h.isArray(m) && gs(m) || (h.isFileList(m) || h.endsWith(p, "[]")) && (S = h.toArray(m)))
|
|
322
|
+
return p = xr(p), S.forEach(function(C, A) {
|
|
323
323
|
!(h.isUndefined(C) || C === null) && t.append(
|
|
324
324
|
// eslint-disable-next-line no-nested-ternary
|
|
325
|
-
a === !0 ?
|
|
325
|
+
a === !0 ? Fn([p], A, s) : a === null ? p : p + "[]",
|
|
326
326
|
l(C)
|
|
327
327
|
);
|
|
328
328
|
}), !1;
|
|
329
329
|
}
|
|
330
|
-
return
|
|
330
|
+
return Qt(m) ? !0 : (t.append(Fn(y, p, s), l(m)), !1);
|
|
331
331
|
}
|
|
332
|
-
const u = [], f = Object.assign(
|
|
332
|
+
const u = [], f = Object.assign(ys, {
|
|
333
333
|
defaultVisitor: c,
|
|
334
334
|
convertValue: l,
|
|
335
|
-
isVisitable:
|
|
335
|
+
isVisitable: Qt
|
|
336
336
|
});
|
|
337
337
|
function v(m, p) {
|
|
338
338
|
if (!h.isUndefined(m)) {
|
|
@@ -353,7 +353,7 @@ function xt(e, t, n) {
|
|
|
353
353
|
throw new TypeError("data must be an object");
|
|
354
354
|
return v(e), t;
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function Rn(e) {
|
|
357
357
|
const t = {
|
|
358
358
|
"!": "%21",
|
|
359
359
|
"'": "%27",
|
|
@@ -367,36 +367,36 @@ function Fn(e) {
|
|
|
367
367
|
return t[r];
|
|
368
368
|
});
|
|
369
369
|
}
|
|
370
|
-
function
|
|
371
|
-
this._pairs = [], e &&
|
|
370
|
+
function gn(e, t) {
|
|
371
|
+
this._pairs = [], e && Pt(e, this, t);
|
|
372
372
|
}
|
|
373
|
-
const
|
|
374
|
-
|
|
373
|
+
const Pr = gn.prototype;
|
|
374
|
+
Pr.append = function(t, n) {
|
|
375
375
|
this._pairs.push([t, n]);
|
|
376
376
|
};
|
|
377
|
-
|
|
377
|
+
Pr.toString = function(t) {
|
|
378
378
|
const n = t ? function(r) {
|
|
379
|
-
return t.call(this, r,
|
|
380
|
-
} :
|
|
379
|
+
return t.call(this, r, Rn);
|
|
380
|
+
} : Rn;
|
|
381
381
|
return this._pairs.map(function(o) {
|
|
382
382
|
return n(o[0]) + "=" + n(o[1]);
|
|
383
383
|
}, "").join("&");
|
|
384
384
|
};
|
|
385
|
-
function
|
|
385
|
+
function bs(e) {
|
|
386
386
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function Or(e, t, n) {
|
|
389
389
|
if (!t)
|
|
390
390
|
return e;
|
|
391
|
-
const r = n && n.encode ||
|
|
391
|
+
const r = n && n.encode || bs, o = n && n.serialize;
|
|
392
392
|
let s;
|
|
393
|
-
if (o ? s = o(t, n) : s = h.isURLSearchParams(t) ? t.toString() : new
|
|
393
|
+
if (o ? s = o(t, n) : s = h.isURLSearchParams(t) ? t.toString() : new gn(t, n).toString(r), s) {
|
|
394
394
|
const a = e.indexOf("#");
|
|
395
395
|
a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
|
|
396
396
|
}
|
|
397
397
|
return e;
|
|
398
398
|
}
|
|
399
|
-
class
|
|
399
|
+
class ws {
|
|
400
400
|
constructor() {
|
|
401
401
|
this.handlers = [];
|
|
402
402
|
}
|
|
@@ -450,36 +450,36 @@ class bs {
|
|
|
450
450
|
});
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
const
|
|
453
|
+
const Dn = ws, Tr = {
|
|
454
454
|
silentJSONParsing: !0,
|
|
455
455
|
forcedJSONParsing: !0,
|
|
456
456
|
clarifyTimeoutError: !1
|
|
457
|
-
},
|
|
457
|
+
}, _s = typeof URLSearchParams < "u" ? URLSearchParams : gn, Es = typeof FormData < "u" ? FormData : null, Ss = typeof Blob < "u" ? Blob : null, xs = (() => {
|
|
458
458
|
let e;
|
|
459
459
|
return typeof navigator < "u" && ((e = navigator.product) === "ReactNative" || e === "NativeScript" || e === "NS") ? !1 : typeof window < "u" && typeof document < "u";
|
|
460
|
-
})(),
|
|
460
|
+
})(), Ps = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
461
461
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), ce = {
|
|
462
462
|
isBrowser: !0,
|
|
463
463
|
classes: {
|
|
464
|
-
URLSearchParams:
|
|
465
|
-
FormData:
|
|
466
|
-
Blob:
|
|
464
|
+
URLSearchParams: _s,
|
|
465
|
+
FormData: Es,
|
|
466
|
+
Blob: Ss
|
|
467
467
|
},
|
|
468
|
-
isStandardBrowserEnv:
|
|
469
|
-
isStandardBrowserWebWorkerEnv:
|
|
468
|
+
isStandardBrowserEnv: xs,
|
|
469
|
+
isStandardBrowserWebWorkerEnv: Ps,
|
|
470
470
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
471
471
|
};
|
|
472
|
-
function
|
|
473
|
-
return
|
|
472
|
+
function Os(e, t) {
|
|
473
|
+
return Pt(e, new ce.classes.URLSearchParams(), Object.assign({
|
|
474
474
|
visitor: function(n, r, o, s) {
|
|
475
475
|
return ce.isNode && h.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
476
476
|
}
|
|
477
477
|
}, t));
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function Ts(e) {
|
|
480
480
|
return h.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function Cs(e) {
|
|
483
483
|
const t = {}, n = Object.keys(e);
|
|
484
484
|
let r;
|
|
485
485
|
const o = n.length;
|
|
@@ -488,24 +488,24 @@ function Ts(e) {
|
|
|
488
488
|
s = n[r], t[s] = e[s];
|
|
489
489
|
return t;
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function Cr(e) {
|
|
492
492
|
function t(n, r, o, s) {
|
|
493
493
|
let a = n[s++];
|
|
494
494
|
const i = Number.isFinite(+a), d = s >= n.length;
|
|
495
|
-
return a = !a && h.isArray(o) ? o.length : a, d ? (h.hasOwnProp(o, a) ? o[a] = [o[a], r] : o[a] = r, !i) : ((!o[a] || !h.isObject(o[a])) && (o[a] = []), t(n, r, o[a], s) && h.isArray(o[a]) && (o[a] =
|
|
495
|
+
return a = !a && h.isArray(o) ? o.length : a, d ? (h.hasOwnProp(o, a) ? o[a] = [o[a], r] : o[a] = r, !i) : ((!o[a] || !h.isObject(o[a])) && (o[a] = []), t(n, r, o[a], s) && h.isArray(o[a]) && (o[a] = Cs(o[a])), !i);
|
|
496
496
|
}
|
|
497
497
|
if (h.isFormData(e) && h.isFunction(e.entries)) {
|
|
498
498
|
const n = {};
|
|
499
499
|
return h.forEachEntry(e, (r, o) => {
|
|
500
|
-
t(
|
|
500
|
+
t(Ts(r), o, n, 0);
|
|
501
501
|
}), n;
|
|
502
502
|
}
|
|
503
503
|
return null;
|
|
504
504
|
}
|
|
505
|
-
const
|
|
505
|
+
const Ns = {
|
|
506
506
|
"Content-Type": void 0
|
|
507
507
|
};
|
|
508
|
-
function
|
|
508
|
+
function As(e, t, n) {
|
|
509
509
|
if (h.isString(e))
|
|
510
510
|
try {
|
|
511
511
|
return (t || JSON.parse)(e), h.trim(e);
|
|
@@ -515,13 +515,13 @@ function Ns(e, t, n) {
|
|
|
515
515
|
}
|
|
516
516
|
return (n || JSON.stringify)(e);
|
|
517
517
|
}
|
|
518
|
-
const
|
|
519
|
-
transitional:
|
|
518
|
+
const Ot = {
|
|
519
|
+
transitional: Tr,
|
|
520
520
|
adapter: ["xhr", "http"],
|
|
521
521
|
transformRequest: [function(t, n) {
|
|
522
522
|
const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = h.isObject(t);
|
|
523
523
|
if (s && h.isHTMLForm(t) && (t = new FormData(t)), h.isFormData(t))
|
|
524
|
-
return o && o ? JSON.stringify(
|
|
524
|
+
return o && o ? JSON.stringify(Cr(t)) : t;
|
|
525
525
|
if (h.isArrayBuffer(t) || h.isBuffer(t) || h.isStream(t) || h.isFile(t) || h.isBlob(t))
|
|
526
526
|
return t;
|
|
527
527
|
if (h.isArrayBufferView(t))
|
|
@@ -531,20 +531,20 @@ const Pt = {
|
|
|
531
531
|
let i;
|
|
532
532
|
if (s) {
|
|
533
533
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
534
|
-
return
|
|
534
|
+
return Os(t, this.formSerializer).toString();
|
|
535
535
|
if ((i = h.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
536
536
|
const d = this.env && this.env.FormData;
|
|
537
|
-
return
|
|
537
|
+
return Pt(
|
|
538
538
|
i ? { "files[]": t } : t,
|
|
539
539
|
d && new d(),
|
|
540
540
|
this.formSerializer
|
|
541
541
|
);
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
|
-
return s || o ? (n.setContentType("application/json", !1),
|
|
544
|
+
return s || o ? (n.setContentType("application/json", !1), As(t)) : t;
|
|
545
545
|
}],
|
|
546
546
|
transformResponse: [function(t) {
|
|
547
|
-
const n = this.transitional ||
|
|
547
|
+
const n = this.transitional || Ot.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
|
|
548
548
|
if (t && h.isString(t) && (r && !this.responseType || o)) {
|
|
549
549
|
const a = !(n && n.silentJSONParsing) && o;
|
|
550
550
|
try {
|
|
@@ -579,12 +579,12 @@ const Pt = {
|
|
|
579
579
|
}
|
|
580
580
|
};
|
|
581
581
|
h.forEach(["delete", "get", "head"], function(t) {
|
|
582
|
-
|
|
582
|
+
Ot.headers[t] = {};
|
|
583
583
|
});
|
|
584
584
|
h.forEach(["post", "put", "patch"], function(t) {
|
|
585
|
-
|
|
585
|
+
Ot.headers[t] = h.merge(Ns);
|
|
586
586
|
});
|
|
587
|
-
const
|
|
587
|
+
const yn = Ot, ks = h.toObjectSet([
|
|
588
588
|
"age",
|
|
589
589
|
"authorization",
|
|
590
590
|
"content-length",
|
|
@@ -602,29 +602,29 @@ const gn = Pt, As = h.toObjectSet([
|
|
|
602
602
|
"referer",
|
|
603
603
|
"retry-after",
|
|
604
604
|
"user-agent"
|
|
605
|
-
]),
|
|
605
|
+
]), Ls = (e) => {
|
|
606
606
|
const t = {};
|
|
607
607
|
let n, r, o;
|
|
608
608
|
return e && e.split(`
|
|
609
609
|
`).forEach(function(a) {
|
|
610
|
-
o = a.indexOf(":"), n = a.substring(0, o).trim().toLowerCase(), r = a.substring(o + 1).trim(), !(!n || t[n] &&
|
|
610
|
+
o = a.indexOf(":"), n = a.substring(0, o).trim().toLowerCase(), r = a.substring(o + 1).trim(), !(!n || t[n] && ks[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
611
611
|
}), t;
|
|
612
|
-
},
|
|
613
|
-
function
|
|
612
|
+
}, jn = Symbol("internals");
|
|
613
|
+
function Me(e) {
|
|
614
614
|
return e && String(e).trim().toLowerCase();
|
|
615
615
|
}
|
|
616
|
-
function
|
|
617
|
-
return e === !1 || e == null ? e : h.isArray(e) ? e.map(
|
|
616
|
+
function mt(e) {
|
|
617
|
+
return e === !1 || e == null ? e : h.isArray(e) ? e.map(mt) : String(e);
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function $s(e) {
|
|
620
620
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
621
621
|
let r;
|
|
622
622
|
for (; r = n.exec(e); )
|
|
623
623
|
t[r[1]] = r[2];
|
|
624
624
|
return t;
|
|
625
625
|
}
|
|
626
|
-
const
|
|
627
|
-
function
|
|
626
|
+
const Fs = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
627
|
+
function Ht(e, t, n, r, o) {
|
|
628
628
|
if (h.isFunction(r))
|
|
629
629
|
return r.call(this, t, n);
|
|
630
630
|
if (o && (t = n), !!h.isString(t)) {
|
|
@@ -634,10 +634,10 @@ function Ut(e, t, n, r, o) {
|
|
|
634
634
|
return r.test(t);
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function Rs(e) {
|
|
638
638
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
639
639
|
}
|
|
640
|
-
function
|
|
640
|
+
function Ds(e, t) {
|
|
641
641
|
const n = h.toCamelCase(" " + t);
|
|
642
642
|
["get", "set", "has"].forEach((r) => {
|
|
643
643
|
Object.defineProperty(e, r + n, {
|
|
@@ -648,31 +648,31 @@ function Rs(e, t) {
|
|
|
648
648
|
});
|
|
649
649
|
});
|
|
650
650
|
}
|
|
651
|
-
class
|
|
651
|
+
class Tt {
|
|
652
652
|
constructor(t) {
|
|
653
653
|
t && this.set(t);
|
|
654
654
|
}
|
|
655
655
|
set(t, n, r) {
|
|
656
656
|
const o = this;
|
|
657
657
|
function s(i, d, l) {
|
|
658
|
-
const c =
|
|
658
|
+
const c = Me(d);
|
|
659
659
|
if (!c)
|
|
660
660
|
throw new Error("header name must be a non-empty string");
|
|
661
661
|
const u = h.findKey(o, c);
|
|
662
|
-
(!u || o[u] === void 0 || l === !0 || l === void 0 && o[u] !== !1) && (o[u || d] =
|
|
662
|
+
(!u || o[u] === void 0 || l === !0 || l === void 0 && o[u] !== !1) && (o[u || d] = mt(i));
|
|
663
663
|
}
|
|
664
664
|
const a = (i, d) => h.forEach(i, (l, c) => s(l, c, d));
|
|
665
|
-
return h.isPlainObject(t) || t instanceof this.constructor ? a(t, n) : h.isString(t) && (t = t.trim()) &&
|
|
665
|
+
return h.isPlainObject(t) || t instanceof this.constructor ? a(t, n) : h.isString(t) && (t = t.trim()) && !Fs(t) ? a(Ls(t), n) : t != null && s(n, t, r), this;
|
|
666
666
|
}
|
|
667
667
|
get(t, n) {
|
|
668
|
-
if (t =
|
|
668
|
+
if (t = Me(t), t) {
|
|
669
669
|
const r = h.findKey(this, t);
|
|
670
670
|
if (r) {
|
|
671
671
|
const o = this[r];
|
|
672
672
|
if (!n)
|
|
673
673
|
return o;
|
|
674
674
|
if (n === !0)
|
|
675
|
-
return
|
|
675
|
+
return $s(o);
|
|
676
676
|
if (h.isFunction(n))
|
|
677
677
|
return n.call(this, o, r);
|
|
678
678
|
if (h.isRegExp(n))
|
|
@@ -682,9 +682,9 @@ class Ot {
|
|
|
682
682
|
}
|
|
683
683
|
}
|
|
684
684
|
has(t, n) {
|
|
685
|
-
if (t =
|
|
685
|
+
if (t = Me(t), t) {
|
|
686
686
|
const r = h.findKey(this, t);
|
|
687
|
-
return !!(r && this[r] !== void 0 && (!n ||
|
|
687
|
+
return !!(r && this[r] !== void 0 && (!n || Ht(this, this[r], r, n)));
|
|
688
688
|
}
|
|
689
689
|
return !1;
|
|
690
690
|
}
|
|
@@ -692,9 +692,9 @@ class Ot {
|
|
|
692
692
|
const r = this;
|
|
693
693
|
let o = !1;
|
|
694
694
|
function s(a) {
|
|
695
|
-
if (a =
|
|
695
|
+
if (a = Me(a), a) {
|
|
696
696
|
const i = h.findKey(r, a);
|
|
697
|
-
i && (!n ||
|
|
697
|
+
i && (!n || Ht(r, r[i], i, n)) && (delete r[i], o = !0);
|
|
698
698
|
}
|
|
699
699
|
}
|
|
700
700
|
return h.isArray(t) ? t.forEach(s) : s(t), o;
|
|
@@ -704,7 +704,7 @@ class Ot {
|
|
|
704
704
|
let r = n.length, o = !1;
|
|
705
705
|
for (; r--; ) {
|
|
706
706
|
const s = n[r];
|
|
707
|
-
(!t ||
|
|
707
|
+
(!t || Ht(this, this[s], s, t, !0)) && (delete this[s], o = !0);
|
|
708
708
|
}
|
|
709
709
|
return o;
|
|
710
710
|
}
|
|
@@ -713,11 +713,11 @@ class Ot {
|
|
|
713
713
|
return h.forEach(this, (o, s) => {
|
|
714
714
|
const a = h.findKey(r, s);
|
|
715
715
|
if (a) {
|
|
716
|
-
n[a] =
|
|
716
|
+
n[a] = mt(o), delete n[s];
|
|
717
717
|
return;
|
|
718
718
|
}
|
|
719
|
-
const i = t ?
|
|
720
|
-
i !== s && delete n[s], n[i] =
|
|
719
|
+
const i = t ? Rs(s) : String(s).trim();
|
|
720
|
+
i !== s && delete n[s], n[i] = mt(o), r[i] = !0;
|
|
721
721
|
}), this;
|
|
722
722
|
}
|
|
723
723
|
concat(...t) {
|
|
@@ -747,37 +747,37 @@ class Ot {
|
|
|
747
747
|
return n.forEach((o) => r.set(o)), r;
|
|
748
748
|
}
|
|
749
749
|
static accessor(t) {
|
|
750
|
-
const r = (this[
|
|
750
|
+
const r = (this[jn] = this[jn] = {
|
|
751
751
|
accessors: {}
|
|
752
752
|
}).accessors, o = this.prototype;
|
|
753
753
|
function s(a) {
|
|
754
|
-
const i =
|
|
755
|
-
r[i] || (
|
|
754
|
+
const i = Me(a);
|
|
755
|
+
r[i] || (Ds(o, a), r[i] = !0);
|
|
756
756
|
}
|
|
757
757
|
return h.isArray(t) ? t.forEach(s) : s(t), this;
|
|
758
758
|
}
|
|
759
759
|
}
|
|
760
|
-
|
|
761
|
-
h.freezeMethods(
|
|
762
|
-
h.freezeMethods(
|
|
763
|
-
const he =
|
|
764
|
-
function
|
|
765
|
-
const n = this ||
|
|
760
|
+
Tt.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
761
|
+
h.freezeMethods(Tt.prototype);
|
|
762
|
+
h.freezeMethods(Tt);
|
|
763
|
+
const he = Tt;
|
|
764
|
+
function Vt(e, t) {
|
|
765
|
+
const n = this || yn, r = t || n, o = he.from(r.headers);
|
|
766
766
|
let s = r.data;
|
|
767
767
|
return h.forEach(e, function(i) {
|
|
768
768
|
s = i.call(n, s, o.normalize(), t ? t.status : void 0);
|
|
769
769
|
}), o.normalize(), s;
|
|
770
770
|
}
|
|
771
|
-
function
|
|
771
|
+
function Nr(e) {
|
|
772
772
|
return !!(e && e.__CANCEL__);
|
|
773
773
|
}
|
|
774
|
-
function
|
|
774
|
+
function st(e, t, n) {
|
|
775
775
|
L.call(this, e ?? "canceled", L.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
776
776
|
}
|
|
777
|
-
h.inherits(
|
|
777
|
+
h.inherits(st, L, {
|
|
778
778
|
__CANCEL__: !0
|
|
779
779
|
});
|
|
780
|
-
function
|
|
780
|
+
function js(e, t, n) {
|
|
781
781
|
const r = n.config.validateStatus;
|
|
782
782
|
!n.status || !r || r(n.status) ? e(n) : t(new L(
|
|
783
783
|
"Request failed with status code " + n.status,
|
|
@@ -787,7 +787,7 @@ function Ds(e, t, n) {
|
|
|
787
787
|
n
|
|
788
788
|
));
|
|
789
789
|
}
|
|
790
|
-
const
|
|
790
|
+
const Is = ce.isStandardBrowserEnv ? (
|
|
791
791
|
// Standard browser envs support document.cookie
|
|
792
792
|
function() {
|
|
793
793
|
return {
|
|
@@ -818,16 +818,16 @@ const js = ce.isStandardBrowserEnv ? (
|
|
|
818
818
|
};
|
|
819
819
|
}()
|
|
820
820
|
);
|
|
821
|
-
function
|
|
821
|
+
function Bs(e) {
|
|
822
822
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
823
823
|
}
|
|
824
|
-
function
|
|
824
|
+
function Ms(e, t) {
|
|
825
825
|
return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
826
826
|
}
|
|
827
|
-
function
|
|
828
|
-
return e && !
|
|
827
|
+
function Ar(e, t) {
|
|
828
|
+
return e && !Bs(t) ? Ms(e, t) : t;
|
|
829
829
|
}
|
|
830
|
-
const
|
|
830
|
+
const Us = ce.isStandardBrowserEnv ? (
|
|
831
831
|
// Standard browser envs have full support of the APIs needed to test
|
|
832
832
|
// whether the request URL is of the same origin as current location.
|
|
833
833
|
function() {
|
|
@@ -859,11 +859,11 @@ const Ms = ce.isStandardBrowserEnv ? (
|
|
|
859
859
|
};
|
|
860
860
|
}()
|
|
861
861
|
);
|
|
862
|
-
function
|
|
862
|
+
function Hs(e) {
|
|
863
863
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
864
864
|
return t && t[1] || "";
|
|
865
865
|
}
|
|
866
|
-
function
|
|
866
|
+
function Vs(e, t) {
|
|
867
867
|
e = e || 10;
|
|
868
868
|
const n = new Array(e), r = new Array(e);
|
|
869
869
|
let o = 0, s = 0, a;
|
|
@@ -879,9 +879,9 @@ function Hs(e, t) {
|
|
|
879
879
|
return v ? Math.round(f * 1e3 / v) : void 0;
|
|
880
880
|
};
|
|
881
881
|
}
|
|
882
|
-
function
|
|
882
|
+
function In(e, t) {
|
|
883
883
|
let n = 0;
|
|
884
|
-
const r =
|
|
884
|
+
const r = Vs(50, 250);
|
|
885
885
|
return (o) => {
|
|
886
886
|
const s = o.loaded, a = o.lengthComputable ? o.total : void 0, i = s - n, d = r(i), l = s <= a;
|
|
887
887
|
n = s;
|
|
@@ -897,7 +897,7 @@ function jn(e, t) {
|
|
|
897
897
|
c[t ? "download" : "upload"] = !0, e(c);
|
|
898
898
|
};
|
|
899
899
|
}
|
|
900
|
-
const
|
|
900
|
+
const zs = typeof XMLHttpRequest < "u", qs = zs && function(e) {
|
|
901
901
|
return new Promise(function(n, r) {
|
|
902
902
|
let o = e.data;
|
|
903
903
|
const s = he.from(e.headers).normalize(), a = e.responseType;
|
|
@@ -911,8 +911,8 @@ const Vs = typeof XMLHttpRequest < "u", zs = Vs && function(e) {
|
|
|
911
911
|
const v = e.auth.username || "", m = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
|
|
912
912
|
s.set("Authorization", "Basic " + btoa(v + ":" + m));
|
|
913
913
|
}
|
|
914
|
-
const c =
|
|
915
|
-
l.open(e.method.toUpperCase(),
|
|
914
|
+
const c = Ar(e.baseURL, e.url);
|
|
915
|
+
l.open(e.method.toUpperCase(), Or(c, e.params, e.paramsSerializer), !0), l.timeout = e.timeout;
|
|
916
916
|
function u() {
|
|
917
917
|
if (!l)
|
|
918
918
|
return;
|
|
@@ -926,7 +926,7 @@ const Vs = typeof XMLHttpRequest < "u", zs = Vs && function(e) {
|
|
|
926
926
|
config: e,
|
|
927
927
|
request: l
|
|
928
928
|
};
|
|
929
|
-
|
|
929
|
+
js(function(S) {
|
|
930
930
|
n(S), d();
|
|
931
931
|
}, function(S) {
|
|
932
932
|
r(S), d();
|
|
@@ -940,7 +940,7 @@ const Vs = typeof XMLHttpRequest < "u", zs = Vs && function(e) {
|
|
|
940
940
|
r(new L("Network Error", L.ERR_NETWORK, e, l)), l = null;
|
|
941
941
|
}, l.ontimeout = function() {
|
|
942
942
|
let m = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
|
|
943
|
-
const p = e.transitional ||
|
|
943
|
+
const p = e.transitional || Tr;
|
|
944
944
|
e.timeoutErrorMessage && (m = e.timeoutErrorMessage), r(new L(
|
|
945
945
|
m,
|
|
946
946
|
p.clarifyTimeoutError ? L.ETIMEDOUT : L.ECONNABORTED,
|
|
@@ -948,26 +948,26 @@ const Vs = typeof XMLHttpRequest < "u", zs = Vs && function(e) {
|
|
|
948
948
|
l
|
|
949
949
|
)), l = null;
|
|
950
950
|
}, ce.isStandardBrowserEnv) {
|
|
951
|
-
const v = (e.withCredentials ||
|
|
951
|
+
const v = (e.withCredentials || Us(c)) && e.xsrfCookieName && Is.read(e.xsrfCookieName);
|
|
952
952
|
v && s.set(e.xsrfHeaderName, v);
|
|
953
953
|
}
|
|
954
954
|
o === void 0 && s.setContentType(null), "setRequestHeader" in l && h.forEach(s.toJSON(), function(m, p) {
|
|
955
955
|
l.setRequestHeader(p, m);
|
|
956
|
-
}), h.isUndefined(e.withCredentials) || (l.withCredentials = !!e.withCredentials), a && a !== "json" && (l.responseType = e.responseType), typeof e.onDownloadProgress == "function" && l.addEventListener("progress",
|
|
957
|
-
l && (r(!v || v.type ? new
|
|
956
|
+
}), h.isUndefined(e.withCredentials) || (l.withCredentials = !!e.withCredentials), a && a !== "json" && (l.responseType = e.responseType), typeof e.onDownloadProgress == "function" && l.addEventListener("progress", In(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && l.upload && l.upload.addEventListener("progress", In(e.onUploadProgress)), (e.cancelToken || e.signal) && (i = (v) => {
|
|
957
|
+
l && (r(!v || v.type ? new st(null, e, l) : v), l.abort(), l = null);
|
|
958
958
|
}, e.cancelToken && e.cancelToken.subscribe(i), e.signal && (e.signal.aborted ? i() : e.signal.addEventListener("abort", i)));
|
|
959
|
-
const f =
|
|
959
|
+
const f = Hs(c);
|
|
960
960
|
if (f && ce.protocols.indexOf(f) === -1) {
|
|
961
961
|
r(new L("Unsupported protocol " + f + ":", L.ERR_BAD_REQUEST, e));
|
|
962
962
|
return;
|
|
963
963
|
}
|
|
964
964
|
l.send(o || null);
|
|
965
965
|
});
|
|
966
|
-
},
|
|
967
|
-
http:
|
|
968
|
-
xhr:
|
|
966
|
+
}, vt = {
|
|
967
|
+
http: vs,
|
|
968
|
+
xhr: qs
|
|
969
969
|
};
|
|
970
|
-
h.forEach(
|
|
970
|
+
h.forEach(vt, (e, t) => {
|
|
971
971
|
if (e) {
|
|
972
972
|
try {
|
|
973
973
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -976,50 +976,50 @@ h.forEach(pt, (e, t) => {
|
|
|
976
976
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
977
977
|
}
|
|
978
978
|
});
|
|
979
|
-
const
|
|
979
|
+
const Gs = {
|
|
980
980
|
getAdapter: (e) => {
|
|
981
981
|
e = h.isArray(e) ? e : [e];
|
|
982
982
|
const { length: t } = e;
|
|
983
983
|
let n, r;
|
|
984
|
-
for (let o = 0; o < t && (n = e[o], !(r = h.isString(n) ?
|
|
984
|
+
for (let o = 0; o < t && (n = e[o], !(r = h.isString(n) ? vt[n.toLowerCase()] : n)); o++)
|
|
985
985
|
;
|
|
986
986
|
if (!r)
|
|
987
987
|
throw r === !1 ? new L(
|
|
988
988
|
`Adapter ${n} is not supported by the environment`,
|
|
989
989
|
"ERR_NOT_SUPPORT"
|
|
990
990
|
) : new Error(
|
|
991
|
-
h.hasOwnProp(
|
|
991
|
+
h.hasOwnProp(vt, n) ? `Adapter '${n}' is not available in the build` : `Unknown adapter '${n}'`
|
|
992
992
|
);
|
|
993
993
|
if (!h.isFunction(r))
|
|
994
994
|
throw new TypeError("adapter is not a function");
|
|
995
995
|
return r;
|
|
996
996
|
},
|
|
997
|
-
adapters:
|
|
997
|
+
adapters: vt
|
|
998
998
|
};
|
|
999
|
-
function
|
|
999
|
+
function zt(e) {
|
|
1000
1000
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1001
|
-
throw new
|
|
1001
|
+
throw new st(null, e);
|
|
1002
1002
|
}
|
|
1003
|
-
function
|
|
1004
|
-
return
|
|
1003
|
+
function Bn(e) {
|
|
1004
|
+
return zt(e), e.headers = he.from(e.headers), e.data = Vt.call(
|
|
1005
1005
|
e,
|
|
1006
1006
|
e.transformRequest
|
|
1007
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1008
|
-
return
|
|
1007
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Gs.getAdapter(e.adapter || yn.adapter)(e).then(function(r) {
|
|
1008
|
+
return zt(e), r.data = Vt.call(
|
|
1009
1009
|
e,
|
|
1010
1010
|
e.transformResponse,
|
|
1011
1011
|
r
|
|
1012
1012
|
), r.headers = he.from(r.headers), r;
|
|
1013
1013
|
}, function(r) {
|
|
1014
|
-
return
|
|
1014
|
+
return Nr(r) || (zt(e), r && r.response && (r.response.data = Vt.call(
|
|
1015
1015
|
e,
|
|
1016
1016
|
e.transformResponse,
|
|
1017
1017
|
r.response
|
|
1018
1018
|
), r.response.headers = he.from(r.response.headers))), Promise.reject(r);
|
|
1019
1019
|
});
|
|
1020
1020
|
}
|
|
1021
|
-
const
|
|
1022
|
-
function
|
|
1021
|
+
const Mn = (e) => e instanceof he ? e.toJSON() : e;
|
|
1022
|
+
function Le(e, t) {
|
|
1023
1023
|
t = t || {};
|
|
1024
1024
|
const n = {};
|
|
1025
1025
|
function r(l, c, u) {
|
|
@@ -1077,23 +1077,23 @@ function ke(e, t) {
|
|
|
1077
1077
|
socketPath: a,
|
|
1078
1078
|
responseEncoding: a,
|
|
1079
1079
|
validateStatus: i,
|
|
1080
|
-
headers: (l, c) => o(
|
|
1080
|
+
headers: (l, c) => o(Mn(l), Mn(c), !0)
|
|
1081
1081
|
};
|
|
1082
1082
|
return h.forEach(Object.keys(Object.assign({}, e, t)), function(c) {
|
|
1083
1083
|
const u = d[c] || o, f = u(e[c], t[c], c);
|
|
1084
1084
|
h.isUndefined(f) && u !== i || (n[c] = f);
|
|
1085
1085
|
}), n;
|
|
1086
1086
|
}
|
|
1087
|
-
const
|
|
1087
|
+
const kr = "1.4.0", bn = {};
|
|
1088
1088
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1089
|
-
|
|
1089
|
+
bn[e] = function(r) {
|
|
1090
1090
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1091
1091
|
};
|
|
1092
1092
|
});
|
|
1093
|
-
const
|
|
1094
|
-
|
|
1093
|
+
const Un = {};
|
|
1094
|
+
bn.transitional = function(t, n, r) {
|
|
1095
1095
|
function o(s, a) {
|
|
1096
|
-
return "[Axios v" +
|
|
1096
|
+
return "[Axios v" + kr + "] Transitional option '" + s + "'" + a + (r ? ". " + r : "");
|
|
1097
1097
|
}
|
|
1098
1098
|
return (s, a, i) => {
|
|
1099
1099
|
if (t === !1)
|
|
@@ -1101,7 +1101,7 @@ yn.transitional = function(t, n, r) {
|
|
|
1101
1101
|
o(a, " has been removed" + (n ? " in " + n : "")),
|
|
1102
1102
|
L.ERR_DEPRECATED
|
|
1103
1103
|
);
|
|
1104
|
-
return n && !
|
|
1104
|
+
return n && !Un[a] && (Un[a] = !0, console.warn(
|
|
1105
1105
|
o(
|
|
1106
1106
|
a,
|
|
1107
1107
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
@@ -1109,7 +1109,7 @@ yn.transitional = function(t, n, r) {
|
|
|
1109
1109
|
)), t ? t(s, a, i) : !0;
|
|
1110
1110
|
};
|
|
1111
1111
|
};
|
|
1112
|
-
function
|
|
1112
|
+
function Ws(e, t, n) {
|
|
1113
1113
|
if (typeof e != "object")
|
|
1114
1114
|
throw new L("options must be an object", L.ERR_BAD_OPTION_VALUE);
|
|
1115
1115
|
const r = Object.keys(e);
|
|
@@ -1126,15 +1126,15 @@ function Gs(e, t, n) {
|
|
|
1126
1126
|
throw new L("Unknown option " + s, L.ERR_BAD_OPTION);
|
|
1127
1127
|
}
|
|
1128
1128
|
}
|
|
1129
|
-
const
|
|
1130
|
-
assertOptions:
|
|
1131
|
-
validators:
|
|
1132
|
-
}, me =
|
|
1133
|
-
class
|
|
1129
|
+
const en = {
|
|
1130
|
+
assertOptions: Ws,
|
|
1131
|
+
validators: bn
|
|
1132
|
+
}, me = en.validators;
|
|
1133
|
+
class yt {
|
|
1134
1134
|
constructor(t) {
|
|
1135
1135
|
this.defaults = t, this.interceptors = {
|
|
1136
|
-
request: new
|
|
1137
|
-
response: new
|
|
1136
|
+
request: new Dn(),
|
|
1137
|
+
response: new Dn()
|
|
1138
1138
|
};
|
|
1139
1139
|
}
|
|
1140
1140
|
/**
|
|
@@ -1146,15 +1146,15 @@ class mt {
|
|
|
1146
1146
|
* @returns {Promise} The Promise to be fulfilled
|
|
1147
1147
|
*/
|
|
1148
1148
|
request(t, n) {
|
|
1149
|
-
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n =
|
|
1149
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = Le(this.defaults, n);
|
|
1150
1150
|
const { transitional: r, paramsSerializer: o, headers: s } = n;
|
|
1151
|
-
r !== void 0 &&
|
|
1151
|
+
r !== void 0 && en.assertOptions(r, {
|
|
1152
1152
|
silentJSONParsing: me.transitional(me.boolean),
|
|
1153
1153
|
forcedJSONParsing: me.transitional(me.boolean),
|
|
1154
1154
|
clarifyTimeoutError: me.transitional(me.boolean)
|
|
1155
1155
|
}, !1), o != null && (h.isFunction(o) ? n.paramsSerializer = {
|
|
1156
1156
|
serialize: o
|
|
1157
|
-
} :
|
|
1157
|
+
} : en.assertOptions(o, {
|
|
1158
1158
|
encode: me.function,
|
|
1159
1159
|
serialize: me.function
|
|
1160
1160
|
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -1179,7 +1179,7 @@ class mt {
|
|
|
1179
1179
|
});
|
|
1180
1180
|
let c, u = 0, f;
|
|
1181
1181
|
if (!d) {
|
|
1182
|
-
const m = [
|
|
1182
|
+
const m = [Bn.bind(this), void 0];
|
|
1183
1183
|
for (m.unshift.apply(m, i), m.push.apply(m, l), f = m.length, c = Promise.resolve(n); u < f; )
|
|
1184
1184
|
c = c.then(m[u++], m[u++]);
|
|
1185
1185
|
return c;
|
|
@@ -1196,7 +1196,7 @@ class mt {
|
|
|
1196
1196
|
}
|
|
1197
1197
|
}
|
|
1198
1198
|
try {
|
|
1199
|
-
c =
|
|
1199
|
+
c = Bn.call(this, v);
|
|
1200
1200
|
} catch (m) {
|
|
1201
1201
|
return Promise.reject(m);
|
|
1202
1202
|
}
|
|
@@ -1205,14 +1205,14 @@ class mt {
|
|
|
1205
1205
|
return c;
|
|
1206
1206
|
}
|
|
1207
1207
|
getUri(t) {
|
|
1208
|
-
t =
|
|
1209
|
-
const n =
|
|
1210
|
-
return
|
|
1208
|
+
t = Le(this.defaults, t);
|
|
1209
|
+
const n = Ar(t.baseURL, t.url);
|
|
1210
|
+
return Or(n, t.params, t.paramsSerializer);
|
|
1211
1211
|
}
|
|
1212
1212
|
}
|
|
1213
1213
|
h.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1214
|
-
|
|
1215
|
-
return this.request(
|
|
1214
|
+
yt.prototype[t] = function(n, r) {
|
|
1215
|
+
return this.request(Le(r || {}, {
|
|
1216
1216
|
method: t,
|
|
1217
1217
|
url: n,
|
|
1218
1218
|
data: (r || {}).data
|
|
@@ -1222,7 +1222,7 @@ h.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
1222
1222
|
h.forEach(["post", "put", "patch"], function(t) {
|
|
1223
1223
|
function n(r) {
|
|
1224
1224
|
return function(s, a, i) {
|
|
1225
|
-
return this.request(
|
|
1225
|
+
return this.request(Le(i || {}, {
|
|
1226
1226
|
method: t,
|
|
1227
1227
|
headers: r ? {
|
|
1228
1228
|
"Content-Type": "multipart/form-data"
|
|
@@ -1232,10 +1232,10 @@ h.forEach(["post", "put", "patch"], function(t) {
|
|
|
1232
1232
|
}));
|
|
1233
1233
|
};
|
|
1234
1234
|
}
|
|
1235
|
-
|
|
1235
|
+
yt.prototype[t] = n(), yt.prototype[t + "Form"] = n(!0);
|
|
1236
1236
|
});
|
|
1237
|
-
const
|
|
1238
|
-
class
|
|
1237
|
+
const gt = yt;
|
|
1238
|
+
class wn {
|
|
1239
1239
|
constructor(t) {
|
|
1240
1240
|
if (typeof t != "function")
|
|
1241
1241
|
throw new TypeError("executor must be a function.");
|
|
@@ -1260,7 +1260,7 @@ class bn {
|
|
|
1260
1260
|
r.unsubscribe(s);
|
|
1261
1261
|
}, a;
|
|
1262
1262
|
}, t(function(s, a, i) {
|
|
1263
|
-
r.reason || (r.reason = new
|
|
1263
|
+
r.reason || (r.reason = new st(s, a, i), n(r.reason));
|
|
1264
1264
|
});
|
|
1265
1265
|
}
|
|
1266
1266
|
/**
|
|
@@ -1296,23 +1296,23 @@ class bn {
|
|
|
1296
1296
|
static source() {
|
|
1297
1297
|
let t;
|
|
1298
1298
|
return {
|
|
1299
|
-
token: new
|
|
1299
|
+
token: new wn(function(o) {
|
|
1300
1300
|
t = o;
|
|
1301
1301
|
}),
|
|
1302
1302
|
cancel: t
|
|
1303
1303
|
};
|
|
1304
1304
|
}
|
|
1305
1305
|
}
|
|
1306
|
-
const
|
|
1307
|
-
function
|
|
1306
|
+
const Js = wn;
|
|
1307
|
+
function Ks(e) {
|
|
1308
1308
|
return function(n) {
|
|
1309
1309
|
return e.apply(null, n);
|
|
1310
1310
|
};
|
|
1311
1311
|
}
|
|
1312
|
-
function
|
|
1312
|
+
function Ys(e) {
|
|
1313
1313
|
return h.isObject(e) && e.isAxiosError === !0;
|
|
1314
1314
|
}
|
|
1315
|
-
const
|
|
1315
|
+
const tn = {
|
|
1316
1316
|
Continue: 100,
|
|
1317
1317
|
SwitchingProtocols: 101,
|
|
1318
1318
|
Processing: 102,
|
|
@@ -1377,45 +1377,45 @@ const en = {
|
|
|
1377
1377
|
NotExtended: 510,
|
|
1378
1378
|
NetworkAuthenticationRequired: 511
|
|
1379
1379
|
};
|
|
1380
|
-
Object.entries(
|
|
1381
|
-
|
|
1380
|
+
Object.entries(tn).forEach(([e, t]) => {
|
|
1381
|
+
tn[t] = e;
|
|
1382
1382
|
});
|
|
1383
|
-
const
|
|
1384
|
-
function
|
|
1385
|
-
const t = new
|
|
1386
|
-
return h.extend(n,
|
|
1387
|
-
return
|
|
1383
|
+
const Xs = tn;
|
|
1384
|
+
function Lr(e) {
|
|
1385
|
+
const t = new gt(e), n = hr(gt.prototype.request, t);
|
|
1386
|
+
return h.extend(n, gt.prototype, t, { allOwnKeys: !0 }), h.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
1387
|
+
return Lr(Le(e, o));
|
|
1388
1388
|
}, n;
|
|
1389
1389
|
}
|
|
1390
|
-
const M =
|
|
1391
|
-
M.Axios =
|
|
1392
|
-
M.CanceledError =
|
|
1393
|
-
M.CancelToken =
|
|
1394
|
-
M.isCancel =
|
|
1395
|
-
M.VERSION =
|
|
1396
|
-
M.toFormData =
|
|
1390
|
+
const M = Lr(yn);
|
|
1391
|
+
M.Axios = gt;
|
|
1392
|
+
M.CanceledError = st;
|
|
1393
|
+
M.CancelToken = Js;
|
|
1394
|
+
M.isCancel = Nr;
|
|
1395
|
+
M.VERSION = kr;
|
|
1396
|
+
M.toFormData = Pt;
|
|
1397
1397
|
M.AxiosError = L;
|
|
1398
1398
|
M.Cancel = M.CanceledError;
|
|
1399
1399
|
M.all = function(t) {
|
|
1400
1400
|
return Promise.all(t);
|
|
1401
1401
|
};
|
|
1402
|
-
M.spread =
|
|
1403
|
-
M.isAxiosError =
|
|
1404
|
-
M.mergeConfig =
|
|
1402
|
+
M.spread = Ks;
|
|
1403
|
+
M.isAxiosError = Ys;
|
|
1404
|
+
M.mergeConfig = Le;
|
|
1405
1405
|
M.AxiosHeaders = he;
|
|
1406
|
-
M.formToJSON = (e) =>
|
|
1407
|
-
M.HttpStatusCode =
|
|
1406
|
+
M.formToJSON = (e) => Cr(h.isHTMLForm(e) ? new FormData(e) : e);
|
|
1407
|
+
M.HttpStatusCode = Xs;
|
|
1408
1408
|
M.default = M;
|
|
1409
|
-
const
|
|
1409
|
+
const Zs = M, $r = Zs.create({
|
|
1410
1410
|
// 配置对象
|
|
1411
1411
|
// 基础路径:发请求的时候路径当中会出现api
|
|
1412
1412
|
// 请求超时的时间5s
|
|
1413
1413
|
baseURL: "https://a2.imgkits.com",
|
|
1414
1414
|
timeout: 5e4
|
|
1415
1415
|
});
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
const
|
|
1416
|
+
$r.interceptors.request.use((e) => (console.log(e), e), (e) => Promise.reject(e));
|
|
1417
|
+
$r.interceptors.response.use((e) => e.data, (e) => Promise.reject(new Error(e)));
|
|
1418
|
+
const qt = "@", Ue = window.localStorage, Hn = {
|
|
1419
1419
|
number: {
|
|
1420
1420
|
save: (e) => e,
|
|
1421
1421
|
parse: (e) => Number.parseFloat(e)
|
|
@@ -1434,137 +1434,137 @@ const zt = "@", Me = window.localStorage, Un = {
|
|
|
1434
1434
|
parse: (e) => e
|
|
1435
1435
|
}
|
|
1436
1436
|
};
|
|
1437
|
-
function
|
|
1438
|
-
return
|
|
1437
|
+
function Vn(e) {
|
|
1438
|
+
return Hn[e] || Hn.default;
|
|
1439
1439
|
}
|
|
1440
|
-
const
|
|
1440
|
+
const ut = {
|
|
1441
1441
|
get(e) {
|
|
1442
|
-
let t =
|
|
1442
|
+
let t = Ue.getItem(e);
|
|
1443
1443
|
if (t) {
|
|
1444
1444
|
let n = t.split("@"), r, o = Date.now();
|
|
1445
1445
|
if (n.length > 2 && n[2] < o)
|
|
1446
|
-
return
|
|
1446
|
+
return Ue.removeItem(e), null;
|
|
1447
1447
|
{
|
|
1448
1448
|
let s = decodeURIComponent(n[1]);
|
|
1449
|
-
return r =
|
|
1449
|
+
return r = Vn(n[0]).parse(s), r;
|
|
1450
1450
|
}
|
|
1451
1451
|
}
|
|
1452
1452
|
return null;
|
|
1453
1453
|
},
|
|
1454
1454
|
put(e, t, n) {
|
|
1455
|
-
const r = typeof t, o =
|
|
1455
|
+
const r = typeof t, o = Vn(r);
|
|
1456
1456
|
if (!n)
|
|
1457
|
-
t = r +
|
|
1457
|
+
t = r + qt + encodeURIComponent(o.save(t));
|
|
1458
1458
|
else {
|
|
1459
1459
|
let s = n * 24 * 60 * 60 * 1e3 + (/* @__PURE__ */ new Date()).getTime();
|
|
1460
|
-
t = r +
|
|
1460
|
+
t = r + qt + encodeURIComponent(o.save(t)) + qt + s;
|
|
1461
1461
|
}
|
|
1462
|
-
|
|
1462
|
+
Ue.setItem(e, t);
|
|
1463
1463
|
},
|
|
1464
1464
|
clear() {
|
|
1465
|
-
|
|
1465
|
+
Ue.clear();
|
|
1466
1466
|
},
|
|
1467
1467
|
remove(e) {
|
|
1468
|
-
|
|
1468
|
+
Ue.removeItem(e);
|
|
1469
1469
|
}
|
|
1470
1470
|
};
|
|
1471
|
-
var
|
|
1472
|
-
function
|
|
1471
|
+
var Qs = !1;
|
|
1472
|
+
function ct(e, t, n) {
|
|
1473
1473
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
|
|
1474
1474
|
}
|
|
1475
|
-
function
|
|
1475
|
+
function Gt(e, t) {
|
|
1476
1476
|
if (Array.isArray(e)) {
|
|
1477
1477
|
e.splice(t, 1);
|
|
1478
1478
|
return;
|
|
1479
1479
|
}
|
|
1480
1480
|
delete e[t];
|
|
1481
1481
|
}
|
|
1482
|
-
var
|
|
1483
|
-
const
|
|
1484
|
-
|
|
1482
|
+
var zn;
|
|
1483
|
+
const _n = typeof window < "u";
|
|
1484
|
+
_n && ((zn = window == null ? void 0 : window.navigator) != null && zn.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
1485
1485
|
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
1486
1486
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
1487
|
-
const
|
|
1487
|
+
const ea = Object.prototype.hasOwnProperty, qn = (e, t) => ea.call(e, t), En = (e) => typeof e == "string", Ct = (e) => e !== null && typeof e == "object", Fr = (e) => {
|
|
1488
1488
|
const t = /* @__PURE__ */ Object.create(null);
|
|
1489
1489
|
return (n) => t[n] || (t[n] = e(n));
|
|
1490
|
-
},
|
|
1491
|
-
(e) => e.replace(
|
|
1490
|
+
}, ta = /-(\w)/g, na = Fr((e) => e.replace(ta, (t, n) => n ? n.toUpperCase() : "")), ra = /\B([A-Z])/g, oa = Fr(
|
|
1491
|
+
(e) => e.replace(ra, "-$1").toLowerCase()
|
|
1492
1492
|
);
|
|
1493
|
-
var
|
|
1494
|
-
const
|
|
1495
|
-
var
|
|
1496
|
-
const
|
|
1497
|
-
var
|
|
1498
|
-
const
|
|
1499
|
-
var
|
|
1500
|
-
function
|
|
1501
|
-
var t =
|
|
1493
|
+
var sa = typeof global == "object" && global && global.Object === Object && global;
|
|
1494
|
+
const aa = sa;
|
|
1495
|
+
var ia = typeof self == "object" && self && self.Object === Object && self, la = aa || ia || Function("return this")();
|
|
1496
|
+
const Sn = la;
|
|
1497
|
+
var ua = Sn.Symbol;
|
|
1498
|
+
const $e = ua;
|
|
1499
|
+
var Rr = Object.prototype, ca = Rr.hasOwnProperty, da = Rr.toString, He = $e ? $e.toStringTag : void 0;
|
|
1500
|
+
function fa(e) {
|
|
1501
|
+
var t = ca.call(e, He), n = e[He];
|
|
1502
1502
|
try {
|
|
1503
|
-
e[
|
|
1503
|
+
e[He] = void 0;
|
|
1504
1504
|
var r = !0;
|
|
1505
1505
|
} catch {
|
|
1506
1506
|
}
|
|
1507
|
-
var o =
|
|
1508
|
-
return r && (t ? e[
|
|
1507
|
+
var o = da.call(e);
|
|
1508
|
+
return r && (t ? e[He] = n : delete e[He]), o;
|
|
1509
1509
|
}
|
|
1510
|
-
var
|
|
1511
|
-
function
|
|
1512
|
-
return
|
|
1510
|
+
var pa = Object.prototype, ha = pa.toString;
|
|
1511
|
+
function ma(e) {
|
|
1512
|
+
return ha.call(e);
|
|
1513
1513
|
}
|
|
1514
|
-
var
|
|
1515
|
-
function
|
|
1516
|
-
return e == null ? e === void 0 ?
|
|
1514
|
+
var va = "[object Null]", ga = "[object Undefined]", Gn = $e ? $e.toStringTag : void 0;
|
|
1515
|
+
function Dr(e) {
|
|
1516
|
+
return e == null ? e === void 0 ? ga : va : Gn && Gn in Object(e) ? fa(e) : ma(e);
|
|
1517
1517
|
}
|
|
1518
|
-
function
|
|
1518
|
+
function ya(e) {
|
|
1519
1519
|
return e != null && typeof e == "object";
|
|
1520
1520
|
}
|
|
1521
|
-
var
|
|
1522
|
-
function
|
|
1523
|
-
return typeof e == "symbol" ||
|
|
1521
|
+
var ba = "[object Symbol]";
|
|
1522
|
+
function xn(e) {
|
|
1523
|
+
return typeof e == "symbol" || ya(e) && Dr(e) == ba;
|
|
1524
1524
|
}
|
|
1525
|
-
function
|
|
1525
|
+
function wa(e, t) {
|
|
1526
1526
|
for (var n = -1, r = e == null ? 0 : e.length, o = Array(r); ++n < r; )
|
|
1527
1527
|
o[n] = t(e[n], n, e);
|
|
1528
1528
|
return o;
|
|
1529
1529
|
}
|
|
1530
|
-
var
|
|
1531
|
-
const
|
|
1532
|
-
var
|
|
1533
|
-
function
|
|
1530
|
+
var _a = Array.isArray;
|
|
1531
|
+
const Pn = _a;
|
|
1532
|
+
var Ea = 1 / 0, Wn = $e ? $e.prototype : void 0, Jn = Wn ? Wn.toString : void 0;
|
|
1533
|
+
function jr(e) {
|
|
1534
1534
|
if (typeof e == "string")
|
|
1535
1535
|
return e;
|
|
1536
|
+
if (Pn(e))
|
|
1537
|
+
return wa(e, jr) + "";
|
|
1536
1538
|
if (xn(e))
|
|
1537
|
-
return
|
|
1538
|
-
if (Sn(e))
|
|
1539
|
-
return Wn ? Wn.call(e) : "";
|
|
1539
|
+
return Jn ? Jn.call(e) : "";
|
|
1540
1540
|
var t = e + "";
|
|
1541
|
-
return t == "0" && 1 / e == -
|
|
1541
|
+
return t == "0" && 1 / e == -Ea ? "-0" : t;
|
|
1542
1542
|
}
|
|
1543
|
-
function
|
|
1543
|
+
function Ir(e) {
|
|
1544
1544
|
var t = typeof e;
|
|
1545
1545
|
return e != null && (t == "object" || t == "function");
|
|
1546
1546
|
}
|
|
1547
|
-
var
|
|
1548
|
-
function
|
|
1549
|
-
if (!
|
|
1547
|
+
var Sa = "[object AsyncFunction]", xa = "[object Function]", Pa = "[object GeneratorFunction]", Oa = "[object Proxy]";
|
|
1548
|
+
function Ta(e) {
|
|
1549
|
+
if (!Ir(e))
|
|
1550
1550
|
return !1;
|
|
1551
|
-
var t =
|
|
1552
|
-
return t ==
|
|
1551
|
+
var t = Dr(e);
|
|
1552
|
+
return t == xa || t == Pa || t == Sa || t == Oa;
|
|
1553
1553
|
}
|
|
1554
|
-
var
|
|
1555
|
-
const
|
|
1556
|
-
var
|
|
1557
|
-
var e = /[^.]+$/.exec(
|
|
1554
|
+
var Ca = Sn["__core-js_shared__"];
|
|
1555
|
+
const Wt = Ca;
|
|
1556
|
+
var Kn = function() {
|
|
1557
|
+
var e = /[^.]+$/.exec(Wt && Wt.keys && Wt.keys.IE_PROTO || "");
|
|
1558
1558
|
return e ? "Symbol(src)_1." + e : "";
|
|
1559
1559
|
}();
|
|
1560
|
-
function
|
|
1561
|
-
return !!
|
|
1560
|
+
function Na(e) {
|
|
1561
|
+
return !!Kn && Kn in e;
|
|
1562
1562
|
}
|
|
1563
|
-
var
|
|
1564
|
-
function
|
|
1563
|
+
var Aa = Function.prototype, ka = Aa.toString;
|
|
1564
|
+
function La(e) {
|
|
1565
1565
|
if (e != null) {
|
|
1566
1566
|
try {
|
|
1567
|
-
return
|
|
1567
|
+
return ka.call(e);
|
|
1568
1568
|
} catch {
|
|
1569
1569
|
}
|
|
1570
1570
|
try {
|
|
@@ -1574,59 +1574,59 @@ function ka(e) {
|
|
|
1574
1574
|
}
|
|
1575
1575
|
return "";
|
|
1576
1576
|
}
|
|
1577
|
-
var
|
|
1578
|
-
"^" +
|
|
1577
|
+
var $a = /[\\^$.*+?()[\]{}|]/g, Fa = /^\[object .+?Constructor\]$/, Ra = Function.prototype, Da = Object.prototype, ja = Ra.toString, Ia = Da.hasOwnProperty, Ba = RegExp(
|
|
1578
|
+
"^" + ja.call(Ia).replace($a, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1579
1579
|
);
|
|
1580
|
-
function
|
|
1581
|
-
if (!
|
|
1580
|
+
function Ma(e) {
|
|
1581
|
+
if (!Ir(e) || Na(e))
|
|
1582
1582
|
return !1;
|
|
1583
|
-
var t =
|
|
1584
|
-
return t.test(
|
|
1583
|
+
var t = Ta(e) ? Ba : Fa;
|
|
1584
|
+
return t.test(La(e));
|
|
1585
1585
|
}
|
|
1586
|
-
function
|
|
1586
|
+
function Ua(e, t) {
|
|
1587
1587
|
return e == null ? void 0 : e[t];
|
|
1588
1588
|
}
|
|
1589
|
-
function
|
|
1590
|
-
var n =
|
|
1591
|
-
return
|
|
1589
|
+
function Br(e, t) {
|
|
1590
|
+
var n = Ua(e, t);
|
|
1591
|
+
return Ma(n) ? n : void 0;
|
|
1592
1592
|
}
|
|
1593
|
-
function
|
|
1593
|
+
function Ha(e, t) {
|
|
1594
1594
|
return e === t || e !== e && t !== t;
|
|
1595
1595
|
}
|
|
1596
|
-
var
|
|
1597
|
-
function
|
|
1598
|
-
if (
|
|
1596
|
+
var Va = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, za = /^\w*$/;
|
|
1597
|
+
function qa(e, t) {
|
|
1598
|
+
if (Pn(e))
|
|
1599
1599
|
return !1;
|
|
1600
1600
|
var n = typeof e;
|
|
1601
|
-
return n == "number" || n == "symbol" || n == "boolean" || e == null ||
|
|
1601
|
+
return n == "number" || n == "symbol" || n == "boolean" || e == null || xn(e) ? !0 : za.test(e) || !Va.test(e) || t != null && e in Object(t);
|
|
1602
1602
|
}
|
|
1603
|
-
var
|
|
1604
|
-
const
|
|
1605
|
-
function
|
|
1606
|
-
this.__data__ =
|
|
1603
|
+
var Ga = Br(Object, "create");
|
|
1604
|
+
const Qe = Ga;
|
|
1605
|
+
function Wa() {
|
|
1606
|
+
this.__data__ = Qe ? Qe(null) : {}, this.size = 0;
|
|
1607
1607
|
}
|
|
1608
|
-
function
|
|
1608
|
+
function Ja(e) {
|
|
1609
1609
|
var t = this.has(e) && delete this.__data__[e];
|
|
1610
1610
|
return this.size -= t ? 1 : 0, t;
|
|
1611
1611
|
}
|
|
1612
|
-
var
|
|
1613
|
-
function
|
|
1612
|
+
var Ka = "__lodash_hash_undefined__", Ya = Object.prototype, Xa = Ya.hasOwnProperty;
|
|
1613
|
+
function Za(e) {
|
|
1614
1614
|
var t = this.__data__;
|
|
1615
|
-
if (
|
|
1615
|
+
if (Qe) {
|
|
1616
1616
|
var n = t[e];
|
|
1617
|
-
return n ===
|
|
1617
|
+
return n === Ka ? void 0 : n;
|
|
1618
1618
|
}
|
|
1619
|
-
return
|
|
1619
|
+
return Xa.call(t, e) ? t[e] : void 0;
|
|
1620
1620
|
}
|
|
1621
|
-
var
|
|
1622
|
-
function
|
|
1621
|
+
var Qa = Object.prototype, ei = Qa.hasOwnProperty;
|
|
1622
|
+
function ti(e) {
|
|
1623
1623
|
var t = this.__data__;
|
|
1624
|
-
return
|
|
1624
|
+
return Qe ? t[e] !== void 0 : ei.call(t, e);
|
|
1625
1625
|
}
|
|
1626
|
-
var
|
|
1627
|
-
function
|
|
1626
|
+
var ni = "__lodash_hash_undefined__";
|
|
1627
|
+
function ri(e, t) {
|
|
1628
1628
|
var n = this.__data__;
|
|
1629
|
-
return this.size += this.has(e) ? 0 : 1, n[e] =
|
|
1629
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = Qe && t === void 0 ? ni : t, this;
|
|
1630
1630
|
}
|
|
1631
1631
|
function xe(e) {
|
|
1632
1632
|
var t = -1, n = e == null ? 0 : e.length;
|
|
@@ -1635,80 +1635,80 @@ function xe(e) {
|
|
|
1635
1635
|
this.set(r[0], r[1]);
|
|
1636
1636
|
}
|
|
1637
1637
|
}
|
|
1638
|
-
xe.prototype.clear =
|
|
1639
|
-
xe.prototype.delete =
|
|
1640
|
-
xe.prototype.get =
|
|
1641
|
-
xe.prototype.has =
|
|
1642
|
-
xe.prototype.set =
|
|
1643
|
-
function
|
|
1638
|
+
xe.prototype.clear = Wa;
|
|
1639
|
+
xe.prototype.delete = Ja;
|
|
1640
|
+
xe.prototype.get = Za;
|
|
1641
|
+
xe.prototype.has = ti;
|
|
1642
|
+
xe.prototype.set = ri;
|
|
1643
|
+
function oi() {
|
|
1644
1644
|
this.__data__ = [], this.size = 0;
|
|
1645
1645
|
}
|
|
1646
|
-
function
|
|
1646
|
+
function Nt(e, t) {
|
|
1647
1647
|
for (var n = e.length; n--; )
|
|
1648
|
-
if (
|
|
1648
|
+
if (Ha(e[n][0], t))
|
|
1649
1649
|
return n;
|
|
1650
1650
|
return -1;
|
|
1651
1651
|
}
|
|
1652
|
-
var
|
|
1653
|
-
function
|
|
1654
|
-
var t = this.__data__, n =
|
|
1652
|
+
var si = Array.prototype, ai = si.splice;
|
|
1653
|
+
function ii(e) {
|
|
1654
|
+
var t = this.__data__, n = Nt(t, e);
|
|
1655
1655
|
if (n < 0)
|
|
1656
1656
|
return !1;
|
|
1657
1657
|
var r = t.length - 1;
|
|
1658
|
-
return n == r ? t.pop() :
|
|
1658
|
+
return n == r ? t.pop() : ai.call(t, n, 1), --this.size, !0;
|
|
1659
1659
|
}
|
|
1660
|
-
function
|
|
1661
|
-
var t = this.__data__, n =
|
|
1660
|
+
function li(e) {
|
|
1661
|
+
var t = this.__data__, n = Nt(t, e);
|
|
1662
1662
|
return n < 0 ? void 0 : t[n][1];
|
|
1663
1663
|
}
|
|
1664
|
-
function
|
|
1665
|
-
return
|
|
1664
|
+
function ui(e) {
|
|
1665
|
+
return Nt(this.__data__, e) > -1;
|
|
1666
1666
|
}
|
|
1667
|
-
function
|
|
1668
|
-
var n = this.__data__, r =
|
|
1667
|
+
function ci(e, t) {
|
|
1668
|
+
var n = this.__data__, r = Nt(n, e);
|
|
1669
1669
|
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
|
|
1670
1670
|
}
|
|
1671
|
-
function
|
|
1671
|
+
function De(e) {
|
|
1672
1672
|
var t = -1, n = e == null ? 0 : e.length;
|
|
1673
1673
|
for (this.clear(); ++t < n; ) {
|
|
1674
1674
|
var r = e[t];
|
|
1675
1675
|
this.set(r[0], r[1]);
|
|
1676
1676
|
}
|
|
1677
1677
|
}
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
var
|
|
1684
|
-
const
|
|
1685
|
-
function
|
|
1678
|
+
De.prototype.clear = oi;
|
|
1679
|
+
De.prototype.delete = ii;
|
|
1680
|
+
De.prototype.get = li;
|
|
1681
|
+
De.prototype.has = ui;
|
|
1682
|
+
De.prototype.set = ci;
|
|
1683
|
+
var di = Br(Sn, "Map");
|
|
1684
|
+
const fi = di;
|
|
1685
|
+
function pi() {
|
|
1686
1686
|
this.size = 0, this.__data__ = {
|
|
1687
1687
|
hash: new xe(),
|
|
1688
|
-
map: new (
|
|
1688
|
+
map: new (fi || De)(),
|
|
1689
1689
|
string: new xe()
|
|
1690
1690
|
};
|
|
1691
1691
|
}
|
|
1692
|
-
function
|
|
1692
|
+
function hi(e) {
|
|
1693
1693
|
var t = typeof e;
|
|
1694
1694
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
1695
1695
|
}
|
|
1696
|
-
function
|
|
1696
|
+
function At(e, t) {
|
|
1697
1697
|
var n = e.__data__;
|
|
1698
|
-
return
|
|
1699
|
-
}
|
|
1700
|
-
function hi(e) {
|
|
1701
|
-
var t = Nt(this, e).delete(e);
|
|
1702
|
-
return this.size -= t ? 1 : 0, t;
|
|
1698
|
+
return hi(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
1703
1699
|
}
|
|
1704
1700
|
function mi(e) {
|
|
1705
|
-
|
|
1701
|
+
var t = At(this, e).delete(e);
|
|
1702
|
+
return this.size -= t ? 1 : 0, t;
|
|
1706
1703
|
}
|
|
1707
1704
|
function vi(e) {
|
|
1708
|
-
return
|
|
1705
|
+
return At(this, e).get(e);
|
|
1709
1706
|
}
|
|
1710
|
-
function gi(e
|
|
1711
|
-
|
|
1707
|
+
function gi(e) {
|
|
1708
|
+
return At(this, e).has(e);
|
|
1709
|
+
}
|
|
1710
|
+
function yi(e, t) {
|
|
1711
|
+
var n = At(this, e), r = n.size;
|
|
1712
1712
|
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
|
|
1713
1713
|
}
|
|
1714
1714
|
function Ce(e) {
|
|
@@ -1718,15 +1718,15 @@ function Ce(e) {
|
|
|
1718
1718
|
this.set(r[0], r[1]);
|
|
1719
1719
|
}
|
|
1720
1720
|
}
|
|
1721
|
-
Ce.prototype.clear =
|
|
1722
|
-
Ce.prototype.delete =
|
|
1723
|
-
Ce.prototype.get =
|
|
1724
|
-
Ce.prototype.has =
|
|
1725
|
-
Ce.prototype.set =
|
|
1726
|
-
var
|
|
1727
|
-
function
|
|
1721
|
+
Ce.prototype.clear = pi;
|
|
1722
|
+
Ce.prototype.delete = mi;
|
|
1723
|
+
Ce.prototype.get = vi;
|
|
1724
|
+
Ce.prototype.has = gi;
|
|
1725
|
+
Ce.prototype.set = yi;
|
|
1726
|
+
var bi = "Expected a function";
|
|
1727
|
+
function On(e, t) {
|
|
1728
1728
|
if (typeof e != "function" || t != null && typeof t != "function")
|
|
1729
|
-
throw new TypeError(
|
|
1729
|
+
throw new TypeError(bi);
|
|
1730
1730
|
var n = function() {
|
|
1731
1731
|
var r = arguments, o = t ? t.apply(this, r) : r[0], s = n.cache;
|
|
1732
1732
|
if (s.has(o))
|
|
@@ -1734,67 +1734,67 @@ function Pn(e, t) {
|
|
|
1734
1734
|
var a = e.apply(this, r);
|
|
1735
1735
|
return n.cache = s.set(o, a) || s, a;
|
|
1736
1736
|
};
|
|
1737
|
-
return n.cache = new (
|
|
1737
|
+
return n.cache = new (On.Cache || Ce)(), n;
|
|
1738
1738
|
}
|
|
1739
|
-
|
|
1740
|
-
var
|
|
1741
|
-
function
|
|
1742
|
-
var t =
|
|
1743
|
-
return n.size ===
|
|
1739
|
+
On.Cache = Ce;
|
|
1740
|
+
var wi = 500;
|
|
1741
|
+
function _i(e) {
|
|
1742
|
+
var t = On(e, function(r) {
|
|
1743
|
+
return n.size === wi && n.clear(), r;
|
|
1744
1744
|
}), n = t.cache;
|
|
1745
1745
|
return t;
|
|
1746
1746
|
}
|
|
1747
|
-
var
|
|
1747
|
+
var Ei = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Si = /\\(\\)?/g, xi = _i(function(e) {
|
|
1748
1748
|
var t = [];
|
|
1749
|
-
return e.charCodeAt(0) === 46 && t.push(""), e.replace(
|
|
1750
|
-
t.push(o ? s.replace(
|
|
1749
|
+
return e.charCodeAt(0) === 46 && t.push(""), e.replace(Ei, function(n, r, o, s) {
|
|
1750
|
+
t.push(o ? s.replace(Si, "$1") : r || n);
|
|
1751
1751
|
}), t;
|
|
1752
1752
|
});
|
|
1753
|
-
const
|
|
1754
|
-
function
|
|
1755
|
-
return e == null ? "" :
|
|
1753
|
+
const Pi = xi;
|
|
1754
|
+
function Oi(e) {
|
|
1755
|
+
return e == null ? "" : jr(e);
|
|
1756
1756
|
}
|
|
1757
|
-
function
|
|
1758
|
-
return
|
|
1757
|
+
function Ti(e, t) {
|
|
1758
|
+
return Pn(e) ? e : qa(e, t) ? [e] : Pi(Oi(e));
|
|
1759
1759
|
}
|
|
1760
|
-
var
|
|
1761
|
-
function
|
|
1762
|
-
if (typeof e == "string" ||
|
|
1760
|
+
var Ci = 1 / 0;
|
|
1761
|
+
function Ni(e) {
|
|
1762
|
+
if (typeof e == "string" || xn(e))
|
|
1763
1763
|
return e;
|
|
1764
1764
|
var t = e + "";
|
|
1765
|
-
return t == "0" && 1 / e == -
|
|
1765
|
+
return t == "0" && 1 / e == -Ci ? "-0" : t;
|
|
1766
1766
|
}
|
|
1767
|
-
function
|
|
1768
|
-
t =
|
|
1767
|
+
function Ai(e, t) {
|
|
1768
|
+
t = Ti(t, e);
|
|
1769
1769
|
for (var n = 0, r = t.length; e != null && n < r; )
|
|
1770
|
-
e = e[
|
|
1770
|
+
e = e[Ni(t[n++])];
|
|
1771
1771
|
return n && n == r ? e : void 0;
|
|
1772
1772
|
}
|
|
1773
|
-
function
|
|
1774
|
-
var r = e == null ? void 0 :
|
|
1773
|
+
function ki(e, t, n) {
|
|
1774
|
+
var r = e == null ? void 0 : Ai(e, t);
|
|
1775
1775
|
return r === void 0 ? n : r;
|
|
1776
1776
|
}
|
|
1777
|
-
const
|
|
1778
|
-
class
|
|
1777
|
+
const Li = (e) => typeof e == "number", Yn = (e) => Object.keys(e);
|
|
1778
|
+
class $i extends Error {
|
|
1779
1779
|
constructor(t) {
|
|
1780
1780
|
super(t), this.name = "ElementPlusError";
|
|
1781
1781
|
}
|
|
1782
1782
|
}
|
|
1783
|
-
function
|
|
1783
|
+
function Fi(e, t) {
|
|
1784
1784
|
if (process.env.NODE_ENV !== "production") {
|
|
1785
|
-
const n =
|
|
1785
|
+
const n = En(e) ? new $i(`[${e}] ${t}`) : e;
|
|
1786
1786
|
console.warn(n);
|
|
1787
1787
|
}
|
|
1788
1788
|
}
|
|
1789
|
-
const
|
|
1790
|
-
!e || !t.trim() || e.classList.add(...
|
|
1791
|
-
},
|
|
1792
|
-
!e || !t.trim() || e.classList.remove(...
|
|
1793
|
-
},
|
|
1789
|
+
const Mr = (e = "") => e.split(" ").filter((t) => !!t.trim()), Xn = (e, t) => {
|
|
1790
|
+
!e || !t.trim() || e.classList.add(...Mr(t));
|
|
1791
|
+
}, bt = (e, t) => {
|
|
1792
|
+
!e || !t.trim() || e.classList.remove(...Mr(t));
|
|
1793
|
+
}, Ve = (e, t) => {
|
|
1794
1794
|
var n;
|
|
1795
|
-
if (!
|
|
1795
|
+
if (!_n || !e || !t)
|
|
1796
1796
|
return "";
|
|
1797
|
-
let r =
|
|
1797
|
+
let r = na(t);
|
|
1798
1798
|
r === "float" && (r = "cssFloat");
|
|
1799
1799
|
try {
|
|
1800
1800
|
const o = e.style[r];
|
|
@@ -1805,25 +1805,25 @@ const Br = (e = "") => e.split(" ").filter((t) => !!t.trim()), Yn = (e, t) => {
|
|
|
1805
1805
|
} catch {
|
|
1806
1806
|
return e.style[r];
|
|
1807
1807
|
}
|
|
1808
|
-
},
|
|
1809
|
-
if (!
|
|
1808
|
+
}, Ur = "__epPropKey", Ri = (e) => Ct(e) && !!e[Ur], Di = (e, t) => {
|
|
1809
|
+
if (!Ct(e) || Ri(e))
|
|
1810
1810
|
return e;
|
|
1811
1811
|
const { values: n, required: r, default: o, type: s, validator: a } = e, d = {
|
|
1812
1812
|
type: s,
|
|
1813
1813
|
required: !!r,
|
|
1814
1814
|
validator: n || a ? (l) => {
|
|
1815
1815
|
let c = !1, u = [];
|
|
1816
|
-
if (n && (u = Array.from(n),
|
|
1816
|
+
if (n && (u = Array.from(n), qn(e, "default") && u.push(o), c || (c = u.includes(l))), a && (c || (c = a(l))), !c && u.length > 0) {
|
|
1817
1817
|
const f = [...new Set(u)].map((v) => JSON.stringify(v)).join(", ");
|
|
1818
|
-
|
|
1818
|
+
xo(`Invalid prop: validation failed${t ? ` for prop "${t}"` : ""}. Expected one of [${f}], got value ${JSON.stringify(l)}.`);
|
|
1819
1819
|
}
|
|
1820
1820
|
return c;
|
|
1821
1821
|
} : void 0,
|
|
1822
|
-
[
|
|
1822
|
+
[Ur]: !0
|
|
1823
1823
|
};
|
|
1824
|
-
return
|
|
1825
|
-
},
|
|
1826
|
-
var
|
|
1824
|
+
return qn(e, "default") && (d.default = o), d;
|
|
1825
|
+
}, ji = ["", "default", "small", "large"];
|
|
1826
|
+
var Ii = {
|
|
1827
1827
|
name: "en",
|
|
1828
1828
|
el: {
|
|
1829
1829
|
colorpicker: {
|
|
@@ -1985,27 +1985,27 @@ var ji = {
|
|
|
1985
1985
|
}
|
|
1986
1986
|
}
|
|
1987
1987
|
};
|
|
1988
|
-
const
|
|
1988
|
+
const Bi = (e) => (t, n) => Mi(t, n, z(e)), Mi = (e, t, n) => ki(n, e, e).replace(/\{(\w+)\}/g, (r, o) => {
|
|
1989
1989
|
var s;
|
|
1990
1990
|
return `${(s = t == null ? void 0 : t[o]) != null ? s : `{${o}}`}`;
|
|
1991
|
-
}),
|
|
1991
|
+
}), Ui = (e) => {
|
|
1992
1992
|
const t = x(() => z(e).name), n = Se(e) ? e : T(e);
|
|
1993
1993
|
return {
|
|
1994
1994
|
lang: t,
|
|
1995
1995
|
locale: n,
|
|
1996
|
-
t:
|
|
1996
|
+
t: Bi(e)
|
|
1997
1997
|
};
|
|
1998
|
-
},
|
|
1999
|
-
const t = e || H(
|
|
2000
|
-
return
|
|
2001
|
-
},
|
|
1998
|
+
}, Hr = Symbol("localeContextKey"), Hi = (e) => {
|
|
1999
|
+
const t = e || H(Hr, T());
|
|
2000
|
+
return Ui(x(() => t.value || Ii));
|
|
2001
|
+
}, nn = "el", Vi = "is-", ye = (e, t, n, r, o) => {
|
|
2002
2002
|
let s = `${e}-${t}`;
|
|
2003
2003
|
return n && (s += `-${n}`), r && (s += `__${r}`), o && (s += `--${o}`), s;
|
|
2004
|
-
},
|
|
2005
|
-
const t = e || H(
|
|
2006
|
-
return x(() => z(t) ||
|
|
2007
|
-
},
|
|
2008
|
-
const n =
|
|
2004
|
+
}, Vr = Symbol("namespaceContextKey"), zi = (e) => {
|
|
2005
|
+
const t = e || H(Vr, T(nn));
|
|
2006
|
+
return x(() => z(t) || nn);
|
|
2007
|
+
}, qi = (e, t) => {
|
|
2008
|
+
const n = zi(t);
|
|
2009
2009
|
return {
|
|
2010
2010
|
namespace: n,
|
|
2011
2011
|
b: (p = "") => ye(n.value, e, p, "", ""),
|
|
@@ -2017,7 +2017,7 @@ const Ii = (e) => (t, n) => Bi(t, n, z(e)), Bi = (e, t, n) => Ai(n, e, e).replac
|
|
|
2017
2017
|
bem: (p, y, S) => p && y && S ? ye(n.value, e, p, y, S) : "",
|
|
2018
2018
|
is: (p, ...y) => {
|
|
2019
2019
|
const S = y.length >= 1 ? y[0] : !0;
|
|
2020
|
-
return p && S ? `${
|
|
2020
|
+
return p && S ? `${Vi}${p}` : "";
|
|
2021
2021
|
},
|
|
2022
2022
|
cssVar: (p) => {
|
|
2023
2023
|
const y = {};
|
|
@@ -2034,75 +2034,75 @@ const Ii = (e) => (t, n) => Bi(t, n, z(e)), Bi = (e, t, n) => Ai(n, e, e).replac
|
|
|
2034
2034
|
},
|
|
2035
2035
|
cssVarBlockName: (p) => `--${n.value}-${e}-${p}`
|
|
2036
2036
|
};
|
|
2037
|
-
},
|
|
2038
|
-
const t = e || H(
|
|
2037
|
+
}, Zn = T(0), zr = 2e3, qr = Symbol("zIndexContextKey"), Gi = (e) => {
|
|
2038
|
+
const t = e || H(qr, void 0), n = x(() => {
|
|
2039
2039
|
const s = z(t);
|
|
2040
|
-
return
|
|
2041
|
-
}), r = x(() => n.value +
|
|
2040
|
+
return Li(s) ? s : zr;
|
|
2041
|
+
}), r = x(() => n.value + Zn.value);
|
|
2042
2042
|
return {
|
|
2043
2043
|
initialZIndex: n,
|
|
2044
2044
|
currentZIndex: r,
|
|
2045
|
-
nextZIndex: () => (
|
|
2045
|
+
nextZIndex: () => (Zn.value++, r.value)
|
|
2046
2046
|
};
|
|
2047
2047
|
};
|
|
2048
|
-
|
|
2048
|
+
Di({
|
|
2049
2049
|
type: String,
|
|
2050
|
-
values:
|
|
2050
|
+
values: ji,
|
|
2051
2051
|
required: !1
|
|
2052
2052
|
});
|
|
2053
|
-
const
|
|
2054
|
-
function
|
|
2055
|
-
const n =
|
|
2053
|
+
const Wi = Symbol("size"), Gr = Symbol(), wt = T();
|
|
2054
|
+
function Wr(e, t = void 0) {
|
|
2055
|
+
const n = pn() ? H(Gr, wt) : wt;
|
|
2056
2056
|
return e ? x(() => {
|
|
2057
2057
|
var r, o;
|
|
2058
2058
|
return (o = (r = n.value) == null ? void 0 : r[e]) != null ? o : t;
|
|
2059
2059
|
}) : n;
|
|
2060
2060
|
}
|
|
2061
|
-
function
|
|
2062
|
-
const n =
|
|
2061
|
+
function Ji(e, t) {
|
|
2062
|
+
const n = Wr(), r = qi(e, x(() => {
|
|
2063
2063
|
var i;
|
|
2064
|
-
return ((i = n.value) == null ? void 0 : i.namespace) ||
|
|
2065
|
-
})), o =
|
|
2064
|
+
return ((i = n.value) == null ? void 0 : i.namespace) || nn;
|
|
2065
|
+
})), o = Hi(x(() => {
|
|
2066
2066
|
var i;
|
|
2067
2067
|
return (i = n.value) == null ? void 0 : i.locale;
|
|
2068
|
-
})), s =
|
|
2068
|
+
})), s = Gi(x(() => {
|
|
2069
2069
|
var i;
|
|
2070
|
-
return ((i = n.value) == null ? void 0 : i.zIndex) ||
|
|
2070
|
+
return ((i = n.value) == null ? void 0 : i.zIndex) || zr;
|
|
2071
2071
|
})), a = x(() => {
|
|
2072
2072
|
var i;
|
|
2073
2073
|
return z(t) || ((i = n.value) == null ? void 0 : i.size) || "";
|
|
2074
2074
|
});
|
|
2075
|
-
return
|
|
2075
|
+
return Ki(x(() => z(n) || {})), {
|
|
2076
2076
|
ns: r,
|
|
2077
2077
|
locale: o,
|
|
2078
2078
|
zIndex: s,
|
|
2079
2079
|
size: a
|
|
2080
2080
|
};
|
|
2081
2081
|
}
|
|
2082
|
-
const
|
|
2082
|
+
const Ki = (e, t, n = !1) => {
|
|
2083
2083
|
var r;
|
|
2084
|
-
const o = !!
|
|
2084
|
+
const o = !!pn(), s = o ? Wr() : void 0, a = (r = t == null ? void 0 : t.provide) != null ? r : o ? oe : void 0;
|
|
2085
2085
|
if (!a) {
|
|
2086
|
-
|
|
2086
|
+
Fi("provideGlobalConfig", "provideGlobalConfig() can only be used inside setup().");
|
|
2087
2087
|
return;
|
|
2088
2088
|
}
|
|
2089
2089
|
const i = x(() => {
|
|
2090
2090
|
const d = z(e);
|
|
2091
|
-
return s != null && s.value ?
|
|
2091
|
+
return s != null && s.value ? Yi(s.value, d) : d;
|
|
2092
2092
|
});
|
|
2093
|
-
return a(
|
|
2093
|
+
return a(Gr, i), a(Hr, x(() => i.value.locale)), a(Vr, x(() => i.value.namespace)), a(qr, x(() => i.value.zIndex)), a(Wi, {
|
|
2094
2094
|
size: x(() => i.value.size || "")
|
|
2095
|
-
}), (n || !
|
|
2096
|
-
},
|
|
2095
|
+
}), (n || !wt.value) && (wt.value = i.value), i;
|
|
2096
|
+
}, Yi = (e, t) => {
|
|
2097
2097
|
var n;
|
|
2098
|
-
const r = [.../* @__PURE__ */ new Set([...
|
|
2098
|
+
const r = [.../* @__PURE__ */ new Set([...Yn(e), ...Yn(t)])], o = {};
|
|
2099
2099
|
for (const s of r)
|
|
2100
2100
|
o[s] = (n = t[s]) != null ? n : e[s];
|
|
2101
2101
|
return o;
|
|
2102
2102
|
};
|
|
2103
|
-
function
|
|
2103
|
+
function Xi(e) {
|
|
2104
2104
|
let t;
|
|
2105
|
-
const n = T(!1), r =
|
|
2105
|
+
const n = T(!1), r = hn({
|
|
2106
2106
|
...e,
|
|
2107
2107
|
originalPosition: "",
|
|
2108
2108
|
originalOverflow: "",
|
|
@@ -2115,7 +2115,7 @@ function Yi(e) {
|
|
|
2115
2115
|
const f = r.parent, v = u.ns;
|
|
2116
2116
|
if (!f.vLoadingAddClassList) {
|
|
2117
2117
|
let m = f.getAttribute("loading-number");
|
|
2118
|
-
m = Number.parseInt(m) - 1, m ? f.setAttribute("loading-number", m.toString()) : (
|
|
2118
|
+
m = Number.parseInt(m) - 1, m ? f.setAttribute("loading-number", m.toString()) : (bt(f, v.bm("parent", "relative")), f.removeAttribute("loading-number")), bt(f, v.bm("parent", "hidden"));
|
|
2119
2119
|
}
|
|
2120
2120
|
a(), c.unmount();
|
|
2121
2121
|
}
|
|
@@ -2136,7 +2136,7 @@ function Yi(e) {
|
|
|
2136
2136
|
const l = U({
|
|
2137
2137
|
name: "ElLoading",
|
|
2138
2138
|
setup(f, { expose: v }) {
|
|
2139
|
-
const { ns: m, zIndex: p } =
|
|
2139
|
+
const { ns: m, zIndex: p } = Ji("loading");
|
|
2140
2140
|
return v({
|
|
2141
2141
|
ns: m,
|
|
2142
2142
|
zIndex: p
|
|
@@ -2154,12 +2154,12 @@ function Yi(e) {
|
|
|
2154
2154
|
fill: "none"
|
|
2155
2155
|
})
|
|
2156
2156
|
]), N = r.text ? j("p", { class: m.b("text") }, [r.text]) : void 0;
|
|
2157
|
-
return j(
|
|
2157
|
+
return j(dr, {
|
|
2158
2158
|
name: m.b("fade"),
|
|
2159
2159
|
onAfterLeave: d
|
|
2160
2160
|
}, {
|
|
2161
2161
|
default: be(() => [
|
|
2162
|
-
|
|
2162
|
+
Ke(ue("div", {
|
|
2163
2163
|
style: {
|
|
2164
2164
|
backgroundColor: r.background || ""
|
|
2165
2165
|
},
|
|
@@ -2172,14 +2172,14 @@ function Yi(e) {
|
|
|
2172
2172
|
j("div", {
|
|
2173
2173
|
class: m.b("spinner")
|
|
2174
2174
|
}, [S, N])
|
|
2175
|
-
]), [[
|
|
2175
|
+
]), [[fr, r.visible]])
|
|
2176
2176
|
])
|
|
2177
2177
|
});
|
|
2178
2178
|
};
|
|
2179
2179
|
}
|
|
2180
|
-
}), c =
|
|
2180
|
+
}), c = Po(l), u = c.mount(document.createElement("div"));
|
|
2181
2181
|
return {
|
|
2182
|
-
...
|
|
2182
|
+
...Xt(r),
|
|
2183
2183
|
setText: o,
|
|
2184
2184
|
removeElLoadingChild: a,
|
|
2185
2185
|
close: i,
|
|
@@ -2190,27 +2190,27 @@ function Yi(e) {
|
|
|
2190
2190
|
}
|
|
2191
2191
|
};
|
|
2192
2192
|
}
|
|
2193
|
-
let
|
|
2194
|
-
const
|
|
2195
|
-
if (!
|
|
2193
|
+
let dt;
|
|
2194
|
+
const rn = function(e = {}) {
|
|
2195
|
+
if (!_n)
|
|
2196
2196
|
return;
|
|
2197
|
-
const t =
|
|
2198
|
-
if (t.fullscreen &&
|
|
2199
|
-
return
|
|
2200
|
-
const n =
|
|
2197
|
+
const t = Zi(e);
|
|
2198
|
+
if (t.fullscreen && dt)
|
|
2199
|
+
return dt;
|
|
2200
|
+
const n = Xi({
|
|
2201
2201
|
...t,
|
|
2202
2202
|
closed: () => {
|
|
2203
2203
|
var o;
|
|
2204
|
-
(o = t.closed) == null || o.call(t), t.fullscreen && (
|
|
2204
|
+
(o = t.closed) == null || o.call(t), t.fullscreen && (dt = void 0);
|
|
2205
2205
|
}
|
|
2206
2206
|
});
|
|
2207
|
-
|
|
2207
|
+
Qi(t, t.parent, n), Qn(t, t.parent, n), t.parent.vLoadingAddClassList = () => Qn(t, t.parent, n);
|
|
2208
2208
|
let r = t.parent.getAttribute("loading-number");
|
|
2209
|
-
return r ? r = `${Number.parseInt(r) + 1}` : r = "1", t.parent.setAttribute("loading-number", r), t.parent.appendChild(n.$el),
|
|
2210
|
-
},
|
|
2209
|
+
return r ? r = `${Number.parseInt(r) + 1}` : r = "1", t.parent.setAttribute("loading-number", r), t.parent.appendChild(n.$el), Xe(() => n.visible.value = t.visible), t.fullscreen && (dt = n), n;
|
|
2210
|
+
}, Zi = (e) => {
|
|
2211
2211
|
var t, n, r, o;
|
|
2212
2212
|
let s;
|
|
2213
|
-
return
|
|
2213
|
+
return En(e.target) ? s = (t = document.querySelector(e.target)) != null ? t : document.body : s = e.target || document.body, {
|
|
2214
2214
|
parent: s === document.body || e.body ? document.body : s,
|
|
2215
2215
|
background: e.background || "",
|
|
2216
2216
|
svg: e.svg || "",
|
|
@@ -2223,31 +2223,31 @@ const nn = function(e = {}) {
|
|
|
2223
2223
|
visible: (o = e.visible) != null ? o : !0,
|
|
2224
2224
|
target: s
|
|
2225
2225
|
};
|
|
2226
|
-
},
|
|
2226
|
+
}, Qi = async (e, t, n) => {
|
|
2227
2227
|
const { nextZIndex: r } = n.vm.zIndex || n.vm._.exposed.zIndex, o = {};
|
|
2228
2228
|
if (e.fullscreen)
|
|
2229
|
-
n.originalPosition.value =
|
|
2229
|
+
n.originalPosition.value = Ve(document.body, "position"), n.originalOverflow.value = Ve(document.body, "overflow"), o.zIndex = r();
|
|
2230
2230
|
else if (e.parent === document.body) {
|
|
2231
|
-
n.originalPosition.value =
|
|
2231
|
+
n.originalPosition.value = Ve(document.body, "position"), await Xe();
|
|
2232
2232
|
for (const s of ["top", "left"]) {
|
|
2233
2233
|
const a = s === "top" ? "scrollTop" : "scrollLeft";
|
|
2234
|
-
o[s] = `${e.target.getBoundingClientRect()[s] + document.body[a] + document.documentElement[a] - Number.parseInt(
|
|
2234
|
+
o[s] = `${e.target.getBoundingClientRect()[s] + document.body[a] + document.documentElement[a] - Number.parseInt(Ve(document.body, `margin-${s}`), 10)}px`;
|
|
2235
2235
|
}
|
|
2236
2236
|
for (const s of ["height", "width"])
|
|
2237
2237
|
o[s] = `${e.target.getBoundingClientRect()[s]}px`;
|
|
2238
2238
|
} else
|
|
2239
|
-
n.originalPosition.value =
|
|
2239
|
+
n.originalPosition.value = Ve(t, "position");
|
|
2240
2240
|
for (const [s, a] of Object.entries(o))
|
|
2241
2241
|
n.$el.style[s] = a;
|
|
2242
|
-
},
|
|
2242
|
+
}, Qn = (e, t, n) => {
|
|
2243
2243
|
const r = n.vm.ns || n.vm._.exposed.ns;
|
|
2244
|
-
["absolute", "fixed", "sticky"].includes(n.originalPosition.value) ?
|
|
2245
|
-
},
|
|
2244
|
+
["absolute", "fixed", "sticky"].includes(n.originalPosition.value) ? bt(t, r.bm("parent", "relative")) : Xn(t, r.bm("parent", "relative")), e.fullscreen && e.lock ? Xn(t, r.bm("parent", "hidden")) : bt(t, r.bm("parent", "hidden"));
|
|
2245
|
+
}, on = Symbol("ElLoading"), er = (e, t) => {
|
|
2246
2246
|
var n, r, o, s;
|
|
2247
|
-
const a = t.instance, i = (f) =>
|
|
2248
|
-
const v =
|
|
2247
|
+
const a = t.instance, i = (f) => Ct(t.value) ? t.value[f] : void 0, d = (f) => {
|
|
2248
|
+
const v = En(f) && (a == null ? void 0 : a[f]) || f;
|
|
2249
2249
|
return v && T(v);
|
|
2250
|
-
}, l = (f) => d(i(f) || e.getAttribute(`element-loading-${
|
|
2250
|
+
}, l = (f) => d(i(f) || e.getAttribute(`element-loading-${oa(f)}`)), c = (n = i("fullscreen")) != null ? n : t.modifiers.fullscreen, u = {
|
|
2251
2251
|
text: l("text"),
|
|
2252
2252
|
svg: l("svg"),
|
|
2253
2253
|
svgViewBox: l("svgViewBox"),
|
|
@@ -2259,60 +2259,60 @@ const nn = function(e = {}) {
|
|
|
2259
2259
|
body: (o = i("body")) != null ? o : t.modifiers.body,
|
|
2260
2260
|
lock: (s = i("lock")) != null ? s : t.modifiers.lock
|
|
2261
2261
|
};
|
|
2262
|
-
e[
|
|
2262
|
+
e[on] = {
|
|
2263
2263
|
options: u,
|
|
2264
|
-
instance:
|
|
2264
|
+
instance: rn(u)
|
|
2265
2265
|
};
|
|
2266
|
-
},
|
|
2266
|
+
}, el = (e, t) => {
|
|
2267
2267
|
for (const n of Object.keys(t))
|
|
2268
2268
|
Se(t[n]) && (t[n].value = e[n]);
|
|
2269
|
-
},
|
|
2269
|
+
}, tr = {
|
|
2270
2270
|
mounted(e, t) {
|
|
2271
|
-
t.value &&
|
|
2271
|
+
t.value && er(e, t);
|
|
2272
2272
|
},
|
|
2273
2273
|
updated(e, t) {
|
|
2274
|
-
const n = e[
|
|
2275
|
-
t.oldValue !== t.value && (t.value && !t.oldValue ?
|
|
2274
|
+
const n = e[on];
|
|
2275
|
+
t.oldValue !== t.value && (t.value && !t.oldValue ? er(e, t) : t.value && t.oldValue ? Ct(t.value) && el(t.value, n.options) : n == null || n.instance.close());
|
|
2276
2276
|
},
|
|
2277
2277
|
unmounted(e) {
|
|
2278
2278
|
var t;
|
|
2279
|
-
(t = e[
|
|
2279
|
+
(t = e[on]) == null || t.instance.close();
|
|
2280
2280
|
}
|
|
2281
|
-
},
|
|
2281
|
+
}, We = {
|
|
2282
2282
|
install(e) {
|
|
2283
|
-
e.directive("loading",
|
|
2283
|
+
e.directive("loading", tr), e.config.globalProperties.$loading = rn;
|
|
2284
2284
|
},
|
|
2285
|
-
directive:
|
|
2286
|
-
service:
|
|
2285
|
+
directive: tr,
|
|
2286
|
+
service: rn
|
|
2287
2287
|
};
|
|
2288
|
-
function
|
|
2288
|
+
function kt() {
|
|
2289
2289
|
let e = "";
|
|
2290
2290
|
return typeof app_config == "object" && app_config && Object.keys(app_config).length > 0 && (e = app_config.base_url || ""), e;
|
|
2291
2291
|
}
|
|
2292
|
-
function
|
|
2293
|
-
const e =
|
|
2292
|
+
function tl() {
|
|
2293
|
+
const e = Kr(), t = kt();
|
|
2294
2294
|
return e.product ? e.product : t ? t.slice(1) : location.href.indexOf("convert") != -1 ? "convert" : location.href.indexOf("translate") != -1 ? "translate" : "recorder";
|
|
2295
2295
|
}
|
|
2296
|
-
function
|
|
2296
|
+
function Jr(e, t) {
|
|
2297
2297
|
window.__bl && __bl.error(new Error(JSON.stringify(e)), {
|
|
2298
2298
|
filename: t,
|
|
2299
2299
|
lineno: 384,
|
|
2300
2300
|
colno: 18
|
|
2301
2301
|
});
|
|
2302
2302
|
}
|
|
2303
|
-
function
|
|
2303
|
+
function Kr() {
|
|
2304
2304
|
var e = {};
|
|
2305
2305
|
if (location.search.length > 1)
|
|
2306
2306
|
for (var t, n = 0, r = location.search.substr(1).split("&"); n < r.length; n++)
|
|
2307
2307
|
t = r[n].split("="), e[decodeURIComponent(t[0])] = t.length > 1 ? decodeURIComponent(t[1]) : "";
|
|
2308
2308
|
return e;
|
|
2309
2309
|
}
|
|
2310
|
-
function
|
|
2310
|
+
function je({ url: e, data: t = null, method: n = "GET", headers: r = null, cacheKey: o, cacheTime: s }) {
|
|
2311
2311
|
try {
|
|
2312
2312
|
var a = new AbortController(), i = a.signal;
|
|
2313
2313
|
} catch {
|
|
2314
2314
|
}
|
|
2315
|
-
const d =
|
|
2315
|
+
const d = tl();
|
|
2316
2316
|
let l = {
|
|
2317
2317
|
method: n,
|
|
2318
2318
|
headers: {
|
|
@@ -2331,21 +2331,21 @@ function De({ url: e, data: t = null, method: n = "GET", headers: r = null, cach
|
|
|
2331
2331
|
u(new Response("timeout", { status: 504, statusText: "timeout" })), a && a.abort();
|
|
2332
2332
|
}, 6e4);
|
|
2333
2333
|
});
|
|
2334
|
-
return Promise.race([c(), fetch(e, l).then((u) => u.json())]).then((u) => (console.log(u), u.success == !0 || u.ok === 0 || u.code == 0 ? (o && (s ?
|
|
2334
|
+
return Promise.race([c(), fetch(e, l).then((u) => u.json())]).then((u) => (console.log(u), u.success == !0 || u.ok === 0 || u.code == 0 ? (o && (s ? ut.put(o, u.data, s) : ut.put(o, u.data)), (u.message || u.message == 0) && (window.g_message = u.message), Promise.resolve(u.data)) : u && u.image || u && u.GOOGLE_ACCESS_TOKEN ? (o && (s ? ut.put(o, u, s) : ut.put(o, u)), Promise.resolve(u)) : u.statusText == "timeout" ? Promise.reject("The system is busy, please try again later") : Promise.reject(u.message || u.msg && u || "failed, please check your network and try again"))).catch((u) => Promise.reject(u));
|
|
2335
2335
|
}
|
|
2336
|
-
let
|
|
2337
|
-
function
|
|
2336
|
+
let Ie = kt();
|
|
2337
|
+
function nr() {
|
|
2338
2338
|
const e = {
|
|
2339
2339
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
|
|
2340
2340
|
};
|
|
2341
|
-
return
|
|
2342
|
-
url:
|
|
2341
|
+
return je({
|
|
2342
|
+
url: Ie + "/api/user/status",
|
|
2343
2343
|
method: "POST",
|
|
2344
2344
|
headers: e
|
|
2345
2345
|
});
|
|
2346
2346
|
}
|
|
2347
|
-
const
|
|
2348
|
-
url:
|
|
2347
|
+
const nl = (e) => je({
|
|
2348
|
+
url: Ie + "/api/user/active-passport",
|
|
2349
2349
|
data: {
|
|
2350
2350
|
passport: e
|
|
2351
2351
|
},
|
|
@@ -2354,9 +2354,9 @@ const tl = (e) => De({
|
|
|
2354
2354
|
"Content-Type": "application/json"
|
|
2355
2355
|
}
|
|
2356
2356
|
});
|
|
2357
|
-
function
|
|
2358
|
-
return
|
|
2359
|
-
url:
|
|
2357
|
+
function rl(e) {
|
|
2358
|
+
return je({
|
|
2359
|
+
url: Ie + "/api/user/facebooklogin",
|
|
2360
2360
|
data: {
|
|
2361
2361
|
token: e
|
|
2362
2362
|
},
|
|
@@ -2366,9 +2366,9 @@ function nl(e) {
|
|
|
2366
2366
|
}
|
|
2367
2367
|
});
|
|
2368
2368
|
}
|
|
2369
|
-
function
|
|
2370
|
-
return
|
|
2371
|
-
url:
|
|
2369
|
+
function Yr(e) {
|
|
2370
|
+
return je({
|
|
2371
|
+
url: Ie + "/api/user/google",
|
|
2372
2372
|
data: {
|
|
2373
2373
|
token: e
|
|
2374
2374
|
},
|
|
@@ -2378,9 +2378,9 @@ function Kr(e) {
|
|
|
2378
2378
|
}
|
|
2379
2379
|
});
|
|
2380
2380
|
}
|
|
2381
|
-
function
|
|
2382
|
-
return
|
|
2383
|
-
url:
|
|
2381
|
+
function ol(e, t) {
|
|
2382
|
+
return je({
|
|
2383
|
+
url: Ie + "/api/user/emaillogin?email=" + encodeURIComponent(e) + "&password=" + encodeURIComponent(t)
|
|
2384
2384
|
// data: {
|
|
2385
2385
|
// email,
|
|
2386
2386
|
// password
|
|
@@ -2388,9 +2388,9 @@ function rl(e, t) {
|
|
|
2388
2388
|
// method: "POST"
|
|
2389
2389
|
});
|
|
2390
2390
|
}
|
|
2391
|
-
function
|
|
2392
|
-
return
|
|
2393
|
-
url:
|
|
2391
|
+
function sl(e, t, n) {
|
|
2392
|
+
return je({
|
|
2393
|
+
url: Ie + "/api/user/emailsignup?email=" + encodeURIComponent(e) + "&username=" + encodeURIComponent(t) + "&password=" + encodeURIComponent(n)
|
|
2394
2394
|
// data: {
|
|
2395
2395
|
// email,
|
|
2396
2396
|
// username,
|
|
@@ -2407,25 +2407,25 @@ function X(e, t, ...n) {
|
|
|
2407
2407
|
let r = new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((o) => `"${o}"`).join(", ")}.`);
|
|
2408
2408
|
throw Error.captureStackTrace && Error.captureStackTrace(r, X), r;
|
|
2409
2409
|
}
|
|
2410
|
-
var Pe = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(Pe || {}),
|
|
2410
|
+
var Pe = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(Pe || {}), al = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(al || {});
|
|
2411
2411
|
function G({ visible: e = !0, features: t = 0, ourProps: n, theirProps: r, ...o }) {
|
|
2412
2412
|
var s;
|
|
2413
|
-
let a =
|
|
2413
|
+
let a = Zr(r, n), i = Object.assign(o, { props: a });
|
|
2414
2414
|
if (e || t & 2 && a.static)
|
|
2415
|
-
return
|
|
2415
|
+
return Jt(i);
|
|
2416
2416
|
if (t & 1) {
|
|
2417
2417
|
let d = (s = a.unmount) == null || s ? 0 : 1;
|
|
2418
2418
|
return X(d, { [0]() {
|
|
2419
2419
|
return null;
|
|
2420
2420
|
}, [1]() {
|
|
2421
|
-
return
|
|
2421
|
+
return Jt({ ...o, props: { ...a, hidden: !0, style: { display: "none" } } });
|
|
2422
2422
|
} });
|
|
2423
2423
|
}
|
|
2424
|
-
return
|
|
2424
|
+
return Jt(i);
|
|
2425
2425
|
}
|
|
2426
|
-
function
|
|
2426
|
+
function Jt({ props: e, attrs: t, slots: n, slot: r, name: o }) {
|
|
2427
2427
|
var s, a;
|
|
2428
|
-
let { as: i, ...d } =
|
|
2428
|
+
let { as: i, ...d } = il(e, ["unmount", "static"]), l = (s = n.default) == null ? void 0 : s.call(n, r), c = {};
|
|
2429
2429
|
if (r) {
|
|
2430
2430
|
let u = !1, f = [];
|
|
2431
2431
|
for (let [v, m] of Object.entries(r))
|
|
@@ -2433,14 +2433,14 @@ function Wt({ props: e, attrs: t, slots: n, slot: r, name: o }) {
|
|
|
2433
2433
|
u && (c["data-headlessui-state"] = f.join(" "));
|
|
2434
2434
|
}
|
|
2435
2435
|
if (i === "template") {
|
|
2436
|
-
if (l =
|
|
2436
|
+
if (l = Xr(l ?? []), Object.keys(d).length > 0 || Object.keys(t).length > 0) {
|
|
2437
2437
|
let [u, ...f] = l ?? [];
|
|
2438
|
-
if (!
|
|
2438
|
+
if (!ll(u) || f.length > 0)
|
|
2439
2439
|
throw new Error(['Passing props on "template"!', "", `The current component <${o} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(d).concat(Object.keys(t)).map((p) => p.trim()).filter((p, y, S) => S.indexOf(p) === y).sort((p, y) => p.localeCompare(y)).map((p) => ` - ${p}`).join(`
|
|
2440
2440
|
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((p) => ` - ${p}`).join(`
|
|
2441
2441
|
`)].join(`
|
|
2442
2442
|
`));
|
|
2443
|
-
let v =
|
|
2443
|
+
let v = Zr((a = u.props) != null ? a : {}, d), m = Oo(u, v);
|
|
2444
2444
|
for (let p in v)
|
|
2445
2445
|
p.startsWith("on") && (m.props || (m.props = {}), m.props[p] = v[p]);
|
|
2446
2446
|
return m;
|
|
@@ -2449,10 +2449,10 @@ function Wt({ props: e, attrs: t, slots: n, slot: r, name: o }) {
|
|
|
2449
2449
|
}
|
|
2450
2450
|
return j(i, Object.assign({}, d, c), { default: () => l });
|
|
2451
2451
|
}
|
|
2452
|
-
function
|
|
2453
|
-
return e.flatMap((t) => t.type === ve ?
|
|
2452
|
+
function Xr(e) {
|
|
2453
|
+
return e.flatMap((t) => t.type === ve ? Xr(t.children) : [t]);
|
|
2454
2454
|
}
|
|
2455
|
-
function
|
|
2455
|
+
function Zr(...e) {
|
|
2456
2456
|
if (e.length === 0)
|
|
2457
2457
|
return {};
|
|
2458
2458
|
if (e.length === 1)
|
|
@@ -2474,55 +2474,55 @@ function Xr(...e) {
|
|
|
2474
2474
|
} });
|
|
2475
2475
|
return t;
|
|
2476
2476
|
}
|
|
2477
|
-
function
|
|
2477
|
+
function il(e, t = []) {
|
|
2478
2478
|
let n = Object.assign({}, e);
|
|
2479
2479
|
for (let r of t)
|
|
2480
2480
|
r in n && delete n[r];
|
|
2481
2481
|
return n;
|
|
2482
2482
|
}
|
|
2483
|
-
function
|
|
2483
|
+
function ll(e) {
|
|
2484
2484
|
return e == null ? !1 : typeof e.type == "string" || typeof e.type == "object" || typeof e.type == "function";
|
|
2485
2485
|
}
|
|
2486
|
-
let
|
|
2487
|
-
function
|
|
2488
|
-
return ++
|
|
2486
|
+
let ul = 0;
|
|
2487
|
+
function cl() {
|
|
2488
|
+
return ++ul;
|
|
2489
2489
|
}
|
|
2490
2490
|
function ee() {
|
|
2491
|
-
return
|
|
2491
|
+
return cl();
|
|
2492
2492
|
}
|
|
2493
2493
|
var pe = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(pe || {});
|
|
2494
2494
|
function _(e) {
|
|
2495
2495
|
var t;
|
|
2496
2496
|
return e == null || e.value == null ? null : (t = e.value.$el) != null ? t : e.value;
|
|
2497
2497
|
}
|
|
2498
|
-
let
|
|
2498
|
+
let Qr = Symbol("Context");
|
|
2499
2499
|
var te = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(te || {});
|
|
2500
|
-
function
|
|
2501
|
-
return H(
|
|
2500
|
+
function Tn() {
|
|
2501
|
+
return H(Qr, null);
|
|
2502
2502
|
}
|
|
2503
|
-
function
|
|
2504
|
-
oe(
|
|
2503
|
+
function dl(e) {
|
|
2504
|
+
oe(Qr, e);
|
|
2505
2505
|
}
|
|
2506
|
-
function
|
|
2506
|
+
function rr(e, t) {
|
|
2507
2507
|
if (e)
|
|
2508
2508
|
return e;
|
|
2509
2509
|
let n = t ?? "button";
|
|
2510
2510
|
if (typeof n == "string" && n.toLowerCase() === "button")
|
|
2511
2511
|
return "button";
|
|
2512
2512
|
}
|
|
2513
|
-
function
|
|
2514
|
-
let n = T(
|
|
2513
|
+
function fl(e, t) {
|
|
2514
|
+
let n = T(rr(e.value.type, e.value.as));
|
|
2515
2515
|
return K(() => {
|
|
2516
|
-
n.value =
|
|
2516
|
+
n.value = rr(e.value.type, e.value.as);
|
|
2517
2517
|
}), se(() => {
|
|
2518
2518
|
var r;
|
|
2519
2519
|
n.value || _(t) && _(t) instanceof HTMLButtonElement && !((r = _(t)) != null && r.hasAttribute("type")) && (n.value = "button");
|
|
2520
2520
|
}), n;
|
|
2521
2521
|
}
|
|
2522
|
-
var
|
|
2523
|
-
class
|
|
2522
|
+
var pl = Object.defineProperty, hl = (e, t, n) => t in e ? pl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, or = (e, t, n) => (hl(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
2523
|
+
class ml {
|
|
2524
2524
|
constructor() {
|
|
2525
|
-
|
|
2525
|
+
or(this, "current", this.detect()), or(this, "currentId", 0);
|
|
2526
2526
|
}
|
|
2527
2527
|
set(t) {
|
|
2528
2528
|
this.current !== t && (this.currentId = 0, this.current = t);
|
|
@@ -2543,9 +2543,9 @@ class hl {
|
|
|
2543
2543
|
return typeof window > "u" || typeof document > "u" ? "server" : "client";
|
|
2544
2544
|
}
|
|
2545
2545
|
}
|
|
2546
|
-
let
|
|
2546
|
+
let Lt = new ml();
|
|
2547
2547
|
function fe(e) {
|
|
2548
|
-
if (
|
|
2548
|
+
if (Lt.isServer)
|
|
2549
2549
|
return null;
|
|
2550
2550
|
if (e instanceof Node)
|
|
2551
2551
|
return e.ownerDocument;
|
|
@@ -2556,27 +2556,27 @@ function fe(e) {
|
|
|
2556
2556
|
}
|
|
2557
2557
|
return document;
|
|
2558
2558
|
}
|
|
2559
|
-
let
|
|
2560
|
-
var q = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e))(q || {}),
|
|
2561
|
-
function
|
|
2562
|
-
return e == null ? [] : Array.from(e.querySelectorAll(
|
|
2559
|
+
let sn = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
|
|
2560
|
+
var q = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e))(q || {}), et = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(et || {}), vl = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(vl || {});
|
|
2561
|
+
function $t(e = document.body) {
|
|
2562
|
+
return e == null ? [] : Array.from(e.querySelectorAll(sn)).sort((t, n) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
2563
2563
|
}
|
|
2564
|
-
var
|
|
2565
|
-
function
|
|
2564
|
+
var Cn = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(Cn || {});
|
|
2565
|
+
function eo(e, t = 0) {
|
|
2566
2566
|
var n;
|
|
2567
2567
|
return e === ((n = fe(e)) == null ? void 0 : n.body) ? !1 : X(t, { [0]() {
|
|
2568
|
-
return e.matches(
|
|
2568
|
+
return e.matches(sn);
|
|
2569
2569
|
}, [1]() {
|
|
2570
2570
|
let r = e;
|
|
2571
2571
|
for (; r !== null; ) {
|
|
2572
|
-
if (r.matches(
|
|
2572
|
+
if (r.matches(sn))
|
|
2573
2573
|
return !0;
|
|
2574
2574
|
r = r.parentElement;
|
|
2575
2575
|
}
|
|
2576
2576
|
return !1;
|
|
2577
2577
|
} });
|
|
2578
2578
|
}
|
|
2579
|
-
var
|
|
2579
|
+
var gl = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(gl || {});
|
|
2580
2580
|
typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (e) => {
|
|
2581
2581
|
e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
2582
2582
|
}, !0), document.addEventListener("click", (e) => {
|
|
@@ -2585,12 +2585,12 @@ typeof window < "u" && typeof document < "u" && (document.addEventListener("keyd
|
|
|
2585
2585
|
function Ee(e) {
|
|
2586
2586
|
e == null || e.focus({ preventScroll: !0 });
|
|
2587
2587
|
}
|
|
2588
|
-
let
|
|
2589
|
-
function
|
|
2588
|
+
let yl = ["textarea", "input"].join(",");
|
|
2589
|
+
function bl(e) {
|
|
2590
2590
|
var t, n;
|
|
2591
|
-
return (n = (t = e == null ? void 0 : e.matches) == null ? void 0 : t.call(e,
|
|
2591
|
+
return (n = (t = e == null ? void 0 : e.matches) == null ? void 0 : t.call(e, yl)) != null ? n : !1;
|
|
2592
2592
|
}
|
|
2593
|
-
function
|
|
2593
|
+
function wl(e, t = (n) => n) {
|
|
2594
2594
|
return e.slice().sort((n, r) => {
|
|
2595
2595
|
let o = t(n), s = t(r);
|
|
2596
2596
|
if (o === null || s === null)
|
|
@@ -2601,7 +2601,7 @@ function bl(e, t = (n) => n) {
|
|
|
2601
2601
|
}
|
|
2602
2602
|
function ne(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] } = {}) {
|
|
2603
2603
|
var s;
|
|
2604
|
-
let a = (s = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e == null ? void 0 : e.ownerDocument) != null ? s : document, i = Array.isArray(e) ? n ?
|
|
2604
|
+
let a = (s = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e == null ? void 0 : e.ownerDocument) != null ? s : document, i = Array.isArray(e) ? n ? wl(e) : e : $t(e);
|
|
2605
2605
|
o.length > 0 && i.length > 1 && (i = i.filter((m) => !o.includes(m))), r = r ?? a.activeElement;
|
|
2606
2606
|
let d = (() => {
|
|
2607
2607
|
if (t & 5)
|
|
@@ -2634,19 +2634,19 @@ function ne(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] }
|
|
|
2634
2634
|
}
|
|
2635
2635
|
v = i[m], v == null || v.focus(c), u += d;
|
|
2636
2636
|
} while (v !== a.activeElement);
|
|
2637
|
-
return t & 6 &&
|
|
2637
|
+
return t & 6 && bl(v) && v.select(), 2;
|
|
2638
2638
|
}
|
|
2639
|
-
function
|
|
2640
|
-
|
|
2639
|
+
function sr(e, t, n) {
|
|
2640
|
+
Lt.isServer || se((r) => {
|
|
2641
2641
|
document.addEventListener(e, t, n), r(() => document.removeEventListener(e, t, n));
|
|
2642
2642
|
});
|
|
2643
2643
|
}
|
|
2644
|
-
function
|
|
2645
|
-
|
|
2644
|
+
function to(e, t, n) {
|
|
2645
|
+
Lt.isServer || se((r) => {
|
|
2646
2646
|
window.addEventListener(e, t, n), r(() => window.removeEventListener(e, t, n));
|
|
2647
2647
|
});
|
|
2648
2648
|
}
|
|
2649
|
-
function
|
|
2649
|
+
function no(e, t, n = x(() => !0)) {
|
|
2650
2650
|
function r(s, a) {
|
|
2651
2651
|
if (!n.value || s.defaultPrevented)
|
|
2652
2652
|
return;
|
|
@@ -2663,27 +2663,27 @@ function to(e, t, n = x(() => !0)) {
|
|
|
2663
2663
|
if (c != null && c.contains(i) || s.composed && s.composedPath().includes(c))
|
|
2664
2664
|
return;
|
|
2665
2665
|
}
|
|
2666
|
-
return !
|
|
2666
|
+
return !eo(i, Cn.Loose) && i.tabIndex !== -1 && s.preventDefault(), t(s, i);
|
|
2667
2667
|
}
|
|
2668
2668
|
let o = T(null);
|
|
2669
|
-
|
|
2669
|
+
sr("mousedown", (s) => {
|
|
2670
2670
|
var a, i;
|
|
2671
2671
|
n.value && (o.value = ((i = (a = s.composedPath) == null ? void 0 : a.call(s)) == null ? void 0 : i[0]) || s.target);
|
|
2672
|
-
}, !0),
|
|
2672
|
+
}, !0), sr("click", (s) => {
|
|
2673
2673
|
o.value && (r(s, () => o.value), o.value = null);
|
|
2674
|
-
}, !0),
|
|
2674
|
+
}, !0), to("blur", (s) => r(s, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
2675
2675
|
}
|
|
2676
2676
|
var Oe = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(Oe || {});
|
|
2677
|
-
let
|
|
2677
|
+
let Fe = U({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: t, attrs: n }) {
|
|
2678
2678
|
return () => {
|
|
2679
2679
|
let { features: r, ...o } = e, s = { "aria-hidden": (r & 2) === 2 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(r & 4) === 4 && (r & 2) !== 2 && { display: "none" } } };
|
|
2680
2680
|
return G({ ourProps: s, theirProps: o, slot: {}, attrs: n, slots: t, name: "Hidden" });
|
|
2681
2681
|
};
|
|
2682
2682
|
} });
|
|
2683
|
-
function
|
|
2683
|
+
function _l() {
|
|
2684
2684
|
return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
|
|
2685
2685
|
}
|
|
2686
|
-
function
|
|
2686
|
+
function ro() {
|
|
2687
2687
|
let e = [], t = { addEventListener(n, r, o, s) {
|
|
2688
2688
|
return n.addEventListener(r, o, s), t.add(() => n.removeEventListener(r, o, s));
|
|
2689
2689
|
}, requestAnimationFrame(...n) {
|
|
@@ -2702,7 +2702,7 @@ function no() {
|
|
|
2702
2702
|
Object.assign(n.style, { [r]: s });
|
|
2703
2703
|
});
|
|
2704
2704
|
}, group(n) {
|
|
2705
|
-
let r =
|
|
2705
|
+
let r = ro();
|
|
2706
2706
|
return n(r), this.add(() => r.dispose());
|
|
2707
2707
|
}, add(n) {
|
|
2708
2708
|
return e.push(n), () => {
|
|
@@ -2718,29 +2718,29 @@ function no() {
|
|
|
2718
2718
|
return t;
|
|
2719
2719
|
}
|
|
2720
2720
|
var Y = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(Y || {});
|
|
2721
|
-
function
|
|
2721
|
+
function Nn() {
|
|
2722
2722
|
let e = T(0);
|
|
2723
|
-
return
|
|
2723
|
+
return to("keydown", (t) => {
|
|
2724
2724
|
t.key === "Tab" && (e.value = t.shiftKey ? 1 : 0);
|
|
2725
2725
|
}), e;
|
|
2726
2726
|
}
|
|
2727
|
-
function
|
|
2728
|
-
|
|
2727
|
+
function An(e, t, n, r) {
|
|
2728
|
+
Lt.isServer || se((o) => {
|
|
2729
2729
|
e = e ?? window, e.addEventListener(t, n, r), o(() => e.removeEventListener(t, n, r));
|
|
2730
2730
|
});
|
|
2731
2731
|
}
|
|
2732
|
-
function
|
|
2732
|
+
function oo(e) {
|
|
2733
2733
|
typeof queueMicrotask == "function" ? queueMicrotask(e) : Promise.resolve().then(e).catch((t) => setTimeout(() => {
|
|
2734
2734
|
throw t;
|
|
2735
2735
|
}));
|
|
2736
2736
|
}
|
|
2737
|
-
function
|
|
2737
|
+
function El(e) {
|
|
2738
2738
|
function t() {
|
|
2739
2739
|
document.readyState !== "loading" && (e(), document.removeEventListener("DOMContentLoaded", t));
|
|
2740
2740
|
}
|
|
2741
2741
|
typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", t), t());
|
|
2742
2742
|
}
|
|
2743
|
-
function
|
|
2743
|
+
function so(e) {
|
|
2744
2744
|
if (!e)
|
|
2745
2745
|
return /* @__PURE__ */ new Set();
|
|
2746
2746
|
if (typeof e == "function")
|
|
@@ -2752,15 +2752,15 @@ function oo(e) {
|
|
|
2752
2752
|
}
|
|
2753
2753
|
return t;
|
|
2754
2754
|
}
|
|
2755
|
-
var
|
|
2756
|
-
let
|
|
2755
|
+
var ao = ((e) => (e[e.None = 1] = "None", e[e.InitialFocus = 2] = "InitialFocus", e[e.TabLock = 4] = "TabLock", e[e.FocusLock = 8] = "FocusLock", e[e.RestoreFocus = 16] = "RestoreFocus", e[e.All = 30] = "All", e))(ao || {});
|
|
2756
|
+
let ze = Object.assign(U({ name: "FocusTrap", props: { as: { type: [Object, String], default: "div" }, initialFocus: { type: Object, default: null }, features: { type: Number, default: 30 }, containers: { type: [Object, Function], default: T(/* @__PURE__ */ new Set()) } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: r }) {
|
|
2757
2757
|
let o = T(null);
|
|
2758
2758
|
r({ el: o, $el: o });
|
|
2759
2759
|
let s = x(() => fe(o)), a = T(!1);
|
|
2760
|
-
K(() => a.value = !0), re(() => a.value = !1),
|
|
2761
|
-
let i =
|
|
2762
|
-
|
|
2763
|
-
let d =
|
|
2760
|
+
K(() => a.value = !0), re(() => a.value = !1), xl({ ownerDocument: s }, x(() => a.value && !!(e.features & 16)));
|
|
2761
|
+
let i = Pl({ ownerDocument: s, container: o, initialFocus: x(() => e.initialFocus) }, x(() => a.value && !!(e.features & 2)));
|
|
2762
|
+
Ol({ ownerDocument: s, container: o, containers: e.containers, previousActiveElement: i }, x(() => a.value && !!(e.features & 8)));
|
|
2763
|
+
let d = Nn();
|
|
2764
2764
|
function l(v) {
|
|
2765
2765
|
let m = _(o);
|
|
2766
2766
|
m && ((p) => p())(() => {
|
|
@@ -2780,26 +2780,26 @@ let Ve = Object.assign(U({ name: "FocusTrap", props: { as: { type: [Object, Stri
|
|
|
2780
2780
|
function f(v) {
|
|
2781
2781
|
if (!a.value)
|
|
2782
2782
|
return;
|
|
2783
|
-
let m =
|
|
2783
|
+
let m = so(e.containers);
|
|
2784
2784
|
_(o) instanceof HTMLElement && m.add(_(o));
|
|
2785
2785
|
let p = v.relatedTarget;
|
|
2786
|
-
p instanceof HTMLElement && p.dataset.headlessuiFocusGuard !== "true" && (
|
|
2786
|
+
p instanceof HTMLElement && p.dataset.headlessuiFocusGuard !== "true" && (io(m, p) || (c.value ? ne(_(o), X(d.value, { [Y.Forwards]: () => q.Next, [Y.Backwards]: () => q.Previous }) | q.WrapAround, { relativeTo: v.target }) : v.target instanceof HTMLElement && Ee(v.target)));
|
|
2787
2787
|
}
|
|
2788
2788
|
return () => {
|
|
2789
2789
|
let v = {}, m = { ref: o, onKeydown: u, onFocusout: f }, { features: p, initialFocus: y, containers: S, ...N } = e;
|
|
2790
|
-
return j(ve, [!!(p & 4) && j(
|
|
2790
|
+
return j(ve, [!!(p & 4) && j(Fe, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: l, features: Oe.Focusable }), G({ ourProps: m, theirProps: { ...t, ...N }, slot: v, attrs: t, slots: n, name: "FocusTrap" }), !!(p & 4) && j(Fe, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: l, features: Oe.Focusable })]);
|
|
2791
2791
|
};
|
|
2792
|
-
} }), { features:
|
|
2793
|
-
|
|
2792
|
+
} }), { features: ao }), we = [];
|
|
2793
|
+
El(() => {
|
|
2794
2794
|
function e(t) {
|
|
2795
2795
|
t.target instanceof HTMLElement && t.target !== document.body && we[0] !== t.target && (we.unshift(t.target), we = we.filter((n) => n != null && n.isConnected), we.splice(10));
|
|
2796
2796
|
}
|
|
2797
2797
|
window.addEventListener("click", e, { capture: !0 }), window.addEventListener("mousedown", e, { capture: !0 }), window.addEventListener("focus", e, { capture: !0 }), document.body.addEventListener("click", e, { capture: !0 }), document.body.addEventListener("mousedown", e, { capture: !0 }), document.body.addEventListener("focus", e, { capture: !0 });
|
|
2798
2798
|
});
|
|
2799
|
-
function
|
|
2799
|
+
function Sl(e) {
|
|
2800
2800
|
let t = T(we.slice());
|
|
2801
|
-
return
|
|
2802
|
-
r === !0 && n === !1 ?
|
|
2801
|
+
return tt([e], ([n], [r]) => {
|
|
2802
|
+
r === !0 && n === !1 ? oo(() => {
|
|
2803
2803
|
t.value.splice(0);
|
|
2804
2804
|
}) : r === !1 && n === !0 && (t.value = we.slice());
|
|
2805
2805
|
}, { flush: "post" }), () => {
|
|
@@ -2807,8 +2807,8 @@ function El(e) {
|
|
|
2807
2807
|
return (n = t.value.find((r) => r != null && r.isConnected)) != null ? n : null;
|
|
2808
2808
|
};
|
|
2809
2809
|
}
|
|
2810
|
-
function
|
|
2811
|
-
let n =
|
|
2810
|
+
function xl({ ownerDocument: e }, t) {
|
|
2811
|
+
let n = Sl(t);
|
|
2812
2812
|
K(() => {
|
|
2813
2813
|
se(() => {
|
|
2814
2814
|
var r, o;
|
|
@@ -2818,14 +2818,14 @@ function Sl({ ownerDocument: e }, t) {
|
|
|
2818
2818
|
t.value && Ee(n());
|
|
2819
2819
|
});
|
|
2820
2820
|
}
|
|
2821
|
-
function
|
|
2821
|
+
function Pl({ ownerDocument: e, container: t, initialFocus: n }, r) {
|
|
2822
2822
|
let o = T(null), s = T(!1);
|
|
2823
2823
|
return K(() => s.value = !0), re(() => s.value = !1), K(() => {
|
|
2824
|
-
|
|
2824
|
+
tt([t, n, r], (a, i) => {
|
|
2825
2825
|
if (a.every((l, c) => (i == null ? void 0 : i[c]) === l) || !r.value)
|
|
2826
2826
|
return;
|
|
2827
2827
|
let d = _(t);
|
|
2828
|
-
d &&
|
|
2828
|
+
d && oo(() => {
|
|
2829
2829
|
var l, c;
|
|
2830
2830
|
if (!s.value)
|
|
2831
2831
|
return;
|
|
@@ -2839,33 +2839,33 @@ function xl({ ownerDocument: e, container: t, initialFocus: n }, r) {
|
|
|
2839
2839
|
o.value = f;
|
|
2840
2840
|
return;
|
|
2841
2841
|
}
|
|
2842
|
-
u ? Ee(u) : ne(d, q.First | q.NoScroll) ===
|
|
2842
|
+
u ? Ee(u) : ne(d, q.First | q.NoScroll) === et.Error && console.warn("There are no focusable elements inside the <FocusTrap />"), o.value = (c = e.value) == null ? void 0 : c.activeElement;
|
|
2843
2843
|
});
|
|
2844
2844
|
}, { immediate: !0, flush: "post" });
|
|
2845
2845
|
}), o;
|
|
2846
2846
|
}
|
|
2847
|
-
function
|
|
2847
|
+
function Ol({ ownerDocument: e, container: t, containers: n, previousActiveElement: r }, o) {
|
|
2848
2848
|
var s;
|
|
2849
|
-
|
|
2849
|
+
An((s = e.value) == null ? void 0 : s.defaultView, "focus", (a) => {
|
|
2850
2850
|
if (!o.value)
|
|
2851
2851
|
return;
|
|
2852
|
-
let i =
|
|
2852
|
+
let i = so(n);
|
|
2853
2853
|
_(t) instanceof HTMLElement && i.add(_(t));
|
|
2854
2854
|
let d = r.value;
|
|
2855
2855
|
if (!d)
|
|
2856
2856
|
return;
|
|
2857
2857
|
let l = a.target;
|
|
2858
|
-
l && l instanceof HTMLElement ?
|
|
2858
|
+
l && l instanceof HTMLElement ? io(i, l) ? (r.value = l, Ee(l)) : (a.preventDefault(), a.stopPropagation(), Ee(d)) : Ee(r.value);
|
|
2859
2859
|
}, !0);
|
|
2860
2860
|
}
|
|
2861
|
-
function
|
|
2861
|
+
function io(e, t) {
|
|
2862
2862
|
for (let n of e)
|
|
2863
2863
|
if (n.contains(t))
|
|
2864
2864
|
return !0;
|
|
2865
2865
|
return !1;
|
|
2866
2866
|
}
|
|
2867
|
-
let
|
|
2868
|
-
function
|
|
2867
|
+
let Kt = /* @__PURE__ */ new Map(), qe = /* @__PURE__ */ new Map();
|
|
2868
|
+
function ar(e, t = T(!0)) {
|
|
2869
2869
|
se((n) => {
|
|
2870
2870
|
var r;
|
|
2871
2871
|
if (!t.value)
|
|
@@ -2877,27 +2877,27 @@ function sr(e, t = T(!0)) {
|
|
|
2877
2877
|
var a;
|
|
2878
2878
|
if (!o)
|
|
2879
2879
|
return;
|
|
2880
|
-
let i = (a =
|
|
2881
|
-
if (i === 1 ?
|
|
2880
|
+
let i = (a = qe.get(o)) != null ? a : 1;
|
|
2881
|
+
if (i === 1 ? qe.delete(o) : qe.set(o, i - 1), i !== 1)
|
|
2882
2882
|
return;
|
|
2883
|
-
let d =
|
|
2884
|
-
d && (d["aria-hidden"] === null ? o.removeAttribute("aria-hidden") : o.setAttribute("aria-hidden", d["aria-hidden"]), o.inert = d.inert,
|
|
2883
|
+
let d = Kt.get(o);
|
|
2884
|
+
d && (d["aria-hidden"] === null ? o.removeAttribute("aria-hidden") : o.setAttribute("aria-hidden", d["aria-hidden"]), o.inert = d.inert, Kt.delete(o));
|
|
2885
2885
|
});
|
|
2886
|
-
let s = (r =
|
|
2887
|
-
|
|
2886
|
+
let s = (r = qe.get(o)) != null ? r : 0;
|
|
2887
|
+
qe.set(o, s + 1), s === 0 && (Kt.set(o, { "aria-hidden": o.getAttribute("aria-hidden"), inert: o.inert }), o.setAttribute("aria-hidden", "true"), o.inert = !0);
|
|
2888
2888
|
});
|
|
2889
2889
|
}
|
|
2890
|
-
let
|
|
2891
|
-
function
|
|
2892
|
-
return H(
|
|
2890
|
+
let lo = Symbol("ForcePortalRootContext");
|
|
2891
|
+
function Tl() {
|
|
2892
|
+
return H(lo, !1);
|
|
2893
2893
|
}
|
|
2894
|
-
let
|
|
2895
|
-
return oe(
|
|
2894
|
+
let an = U({ name: "ForcePortalRoot", props: { as: { type: [Object, String], default: "template" }, force: { type: Boolean, default: !1 } }, setup(e, { slots: t, attrs: n }) {
|
|
2895
|
+
return oe(lo, e.force), () => {
|
|
2896
2896
|
let { force: r, ...o } = e;
|
|
2897
2897
|
return G({ theirProps: o, ourProps: {}, slot: {}, slots: t, attrs: n, name: "ForcePortalRoot" });
|
|
2898
2898
|
};
|
|
2899
2899
|
} });
|
|
2900
|
-
function
|
|
2900
|
+
function Cl(e) {
|
|
2901
2901
|
let t = fe(e);
|
|
2902
2902
|
if (!t) {
|
|
2903
2903
|
if (e === null)
|
|
@@ -2910,12 +2910,12 @@ function Tl(e) {
|
|
|
2910
2910
|
let r = t.createElement("div");
|
|
2911
2911
|
return r.setAttribute("id", "headlessui-portal-root"), t.body.appendChild(r);
|
|
2912
2912
|
}
|
|
2913
|
-
let
|
|
2914
|
-
let r = T(null), o = x(() => fe(r)), s =
|
|
2913
|
+
let uo = U({ name: "Portal", props: { as: { type: [Object, String], default: "div" } }, setup(e, { slots: t, attrs: n }) {
|
|
2914
|
+
let r = T(null), o = x(() => fe(r)), s = Tl(), a = H(fo, null), i = T(s === !0 || a == null ? Cl(r.value) : a.resolveTarget());
|
|
2915
2915
|
se(() => {
|
|
2916
2916
|
s || a != null && (i.value = a.resolveTarget());
|
|
2917
2917
|
});
|
|
2918
|
-
let d = H(
|
|
2918
|
+
let d = H(ln, null);
|
|
2919
2919
|
return K(() => {
|
|
2920
2920
|
let l = _(r);
|
|
2921
2921
|
l && d && re(d.register(l));
|
|
@@ -2927,11 +2927,11 @@ let lo = U({ name: "Portal", props: { as: { type: [Object, String], default: "di
|
|
|
2927
2927
|
if (i.value === null)
|
|
2928
2928
|
return null;
|
|
2929
2929
|
let l = { ref: r, "data-headlessui-portal": "" };
|
|
2930
|
-
return j(
|
|
2930
|
+
return j(To, { to: i.value }, G({ ourProps: l, theirProps: e, slot: {}, attrs: n, slots: t, name: "Portal" }));
|
|
2931
2931
|
};
|
|
2932
|
-
} }),
|
|
2933
|
-
function
|
|
2934
|
-
let e = H(
|
|
2932
|
+
} }), ln = Symbol("PortalParentContext");
|
|
2933
|
+
function co() {
|
|
2934
|
+
let e = H(ln, null), t = T([]);
|
|
2935
2935
|
function n(s) {
|
|
2936
2936
|
return t.value.push(s), e && e.register(s), () => r(s);
|
|
2937
2937
|
}
|
|
@@ -2941,47 +2941,47 @@ function uo() {
|
|
|
2941
2941
|
}
|
|
2942
2942
|
let o = { register: n, unregister: r, portals: t };
|
|
2943
2943
|
return [t, U({ name: "PortalWrapper", setup(s, { slots: a }) {
|
|
2944
|
-
return oe(
|
|
2944
|
+
return oe(ln, o), () => {
|
|
2945
2945
|
var i;
|
|
2946
2946
|
return (i = a.default) == null ? void 0 : i.call(a);
|
|
2947
2947
|
};
|
|
2948
2948
|
} })];
|
|
2949
2949
|
}
|
|
2950
|
-
let
|
|
2951
|
-
let r =
|
|
2950
|
+
let fo = Symbol("PortalGroupContext"), Nl = U({ name: "PortalGroup", props: { as: { type: [Object, String], default: "template" }, target: { type: Object, default: null } }, setup(e, { attrs: t, slots: n }) {
|
|
2951
|
+
let r = hn({ resolveTarget() {
|
|
2952
2952
|
return e.target;
|
|
2953
2953
|
} });
|
|
2954
|
-
return oe(
|
|
2954
|
+
return oe(fo, r), () => {
|
|
2955
2955
|
let { target: o, ...s } = e;
|
|
2956
2956
|
return G({ theirProps: s, ourProps: {}, slot: {}, attrs: t, slots: n, name: "PortalGroup" });
|
|
2957
2957
|
};
|
|
2958
|
-
} }),
|
|
2959
|
-
var
|
|
2960
|
-
function
|
|
2961
|
-
return H(
|
|
2958
|
+
} }), po = Symbol("StackContext");
|
|
2959
|
+
var un = ((e) => (e[e.Add = 0] = "Add", e[e.Remove = 1] = "Remove", e))(un || {});
|
|
2960
|
+
function Al() {
|
|
2961
|
+
return H(po, () => {
|
|
2962
2962
|
});
|
|
2963
2963
|
}
|
|
2964
|
-
function
|
|
2965
|
-
let o =
|
|
2964
|
+
function kl({ type: e, enabled: t, element: n, onUpdate: r }) {
|
|
2965
|
+
let o = Al();
|
|
2966
2966
|
function s(...a) {
|
|
2967
2967
|
r == null || r(...a), o(...a);
|
|
2968
2968
|
}
|
|
2969
2969
|
K(() => {
|
|
2970
|
-
|
|
2970
|
+
tt(t, (a, i) => {
|
|
2971
2971
|
a ? s(0, e, n) : i === !0 && s(1, e, n);
|
|
2972
2972
|
}, { immediate: !0, flush: "sync" });
|
|
2973
2973
|
}), re(() => {
|
|
2974
2974
|
t.value && s(1, e, n);
|
|
2975
|
-
}), oe(
|
|
2975
|
+
}), oe(po, s);
|
|
2976
2976
|
}
|
|
2977
|
-
let
|
|
2978
|
-
function
|
|
2979
|
-
let e = H(
|
|
2977
|
+
let ho = Symbol("DescriptionContext");
|
|
2978
|
+
function Ll() {
|
|
2979
|
+
let e = H(ho, null);
|
|
2980
2980
|
if (e === null)
|
|
2981
2981
|
throw new Error("Missing parent");
|
|
2982
2982
|
return e;
|
|
2983
2983
|
}
|
|
2984
|
-
function
|
|
2984
|
+
function $l({ slot: e = T({}), name: t = "Description", props: n = {} } = {}) {
|
|
2985
2985
|
let r = T([]);
|
|
2986
2986
|
function o(s) {
|
|
2987
2987
|
return r.value.push(s), () => {
|
|
@@ -2989,22 +2989,22 @@ function Ll({ slot: e = T({}), name: t = "Description", props: n = {} } = {}) {
|
|
|
2989
2989
|
a !== -1 && r.value.splice(a, 1);
|
|
2990
2990
|
};
|
|
2991
2991
|
}
|
|
2992
|
-
return oe(
|
|
2992
|
+
return oe(ho, { register: o, slot: e, name: t, props: n }), x(() => r.value.length > 0 ? r.value.join(" ") : void 0);
|
|
2993
2993
|
}
|
|
2994
2994
|
U({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: () => `headlessui-description-${ee()}` } }, setup(e, { attrs: t, slots: n }) {
|
|
2995
|
-
let r =
|
|
2995
|
+
let r = Ll();
|
|
2996
2996
|
return K(() => re(r.register(e.id))), () => {
|
|
2997
2997
|
let { name: o = "Description", slot: s = T({}), props: a = {} } = r, { id: i, ...d } = e, l = { ...Object.entries(a).reduce((c, [u, f]) => Object.assign(c, { [u]: z(f) }), {}), id: i };
|
|
2998
2998
|
return G({ ourProps: l, theirProps: d, slot: s.value, attrs: t, slots: n, name: o });
|
|
2999
2999
|
};
|
|
3000
3000
|
} });
|
|
3001
|
-
function
|
|
3002
|
-
let t =
|
|
3001
|
+
function Fl(e) {
|
|
3002
|
+
let t = pr(e.getSnapshot());
|
|
3003
3003
|
return re(e.subscribe(() => {
|
|
3004
3004
|
t.value = e.getSnapshot();
|
|
3005
3005
|
})), t;
|
|
3006
3006
|
}
|
|
3007
|
-
function
|
|
3007
|
+
function Rl(e, t) {
|
|
3008
3008
|
let n = e(), r = /* @__PURE__ */ new Set();
|
|
3009
3009
|
return { getSnapshot() {
|
|
3010
3010
|
return n;
|
|
@@ -3015,7 +3015,7 @@ function Fl(e, t) {
|
|
|
3015
3015
|
a && (n = a, r.forEach((i) => i()));
|
|
3016
3016
|
} };
|
|
3017
3017
|
}
|
|
3018
|
-
function
|
|
3018
|
+
function Dl() {
|
|
3019
3019
|
let e;
|
|
3020
3020
|
return { before({ doc: t }) {
|
|
3021
3021
|
var n;
|
|
@@ -3026,8 +3026,8 @@ function Rl() {
|
|
|
3026
3026
|
n.style(r, "paddingRight", `${s}px`);
|
|
3027
3027
|
} };
|
|
3028
3028
|
}
|
|
3029
|
-
function
|
|
3030
|
-
if (!
|
|
3029
|
+
function jl() {
|
|
3030
|
+
if (!_l())
|
|
3031
3031
|
return {};
|
|
3032
3032
|
let e;
|
|
3033
3033
|
return { before() {
|
|
@@ -3055,26 +3055,26 @@ function Dl() {
|
|
|
3055
3055
|
});
|
|
3056
3056
|
} };
|
|
3057
3057
|
}
|
|
3058
|
-
function
|
|
3058
|
+
function Il() {
|
|
3059
3059
|
return { before({ doc: e, d: t }) {
|
|
3060
3060
|
t.style(e.documentElement, "overflow", "hidden");
|
|
3061
3061
|
} };
|
|
3062
3062
|
}
|
|
3063
|
-
function
|
|
3063
|
+
function Bl(e) {
|
|
3064
3064
|
let t = {};
|
|
3065
3065
|
for (let n of e)
|
|
3066
3066
|
Object.assign(t, n(t));
|
|
3067
3067
|
return t;
|
|
3068
3068
|
}
|
|
3069
|
-
let _e =
|
|
3069
|
+
let _e = Rl(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
|
|
3070
3070
|
var n;
|
|
3071
|
-
let r = (n = this.get(e)) != null ? n : { doc: e, count: 0, d:
|
|
3071
|
+
let r = (n = this.get(e)) != null ? n : { doc: e, count: 0, d: ro(), meta: /* @__PURE__ */ new Set() };
|
|
3072
3072
|
return r.count++, r.meta.add(t), this.set(e, r), this;
|
|
3073
3073
|
}, POP(e, t) {
|
|
3074
3074
|
let n = this.get(e);
|
|
3075
3075
|
return n && (n.count--, n.meta.delete(t)), this;
|
|
3076
3076
|
}, SCROLL_PREVENT({ doc: e, d: t, meta: n }) {
|
|
3077
|
-
let r = { doc: e, d: t, meta:
|
|
3077
|
+
let r = { doc: e, d: t, meta: Bl(n) }, o = [jl(), Dl(), Il()];
|
|
3078
3078
|
o.forEach(({ before: s }) => s == null ? void 0 : s(r)), o.forEach(({ after: s }) => s == null ? void 0 : s(r));
|
|
3079
3079
|
}, SCROLL_ALLOW({ d: e }) {
|
|
3080
3080
|
e.dispose();
|
|
@@ -3090,12 +3090,12 @@ _e.subscribe(() => {
|
|
|
3090
3090
|
(o && !r || !o && r) && _e.dispatch(n.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", n), n.count === 0 && _e.dispatch("TEARDOWN", n);
|
|
3091
3091
|
}
|
|
3092
3092
|
});
|
|
3093
|
-
function
|
|
3094
|
-
let r =
|
|
3093
|
+
function Ml(e, t, n) {
|
|
3094
|
+
let r = Fl(_e), o = x(() => {
|
|
3095
3095
|
let s = e.value ? r.value.get(e.value) : void 0;
|
|
3096
3096
|
return s ? s.count > 0 : !1;
|
|
3097
3097
|
});
|
|
3098
|
-
return
|
|
3098
|
+
return tt([e, t], ([s, a], [i], d) => {
|
|
3099
3099
|
if (!s || !a)
|
|
3100
3100
|
return;
|
|
3101
3101
|
_e.dispatch("PUSH", s, n);
|
|
@@ -3105,7 +3105,7 @@ function Bl(e, t, n) {
|
|
|
3105
3105
|
});
|
|
3106
3106
|
}, { immediate: !0 }), o;
|
|
3107
3107
|
}
|
|
3108
|
-
function
|
|
3108
|
+
function mo({ defaultContainers: e = [], portals: t } = {}) {
|
|
3109
3109
|
let n = T(null), r = fe(n);
|
|
3110
3110
|
function o() {
|
|
3111
3111
|
var s;
|
|
@@ -3122,62 +3122,62 @@ function ho({ defaultContainers: e = [], portals: t } = {}) {
|
|
|
3122
3122
|
return { resolveContainers: o, contains(s) {
|
|
3123
3123
|
return o().some((a) => a.contains(s));
|
|
3124
3124
|
}, mainTreeNodeRef: n, MainTreeNode() {
|
|
3125
|
-
return j(
|
|
3125
|
+
return j(Fe, { features: Oe.Hidden, ref: n });
|
|
3126
3126
|
} };
|
|
3127
3127
|
}
|
|
3128
|
-
var
|
|
3129
|
-
let
|
|
3130
|
-
function
|
|
3131
|
-
let t = H(
|
|
3128
|
+
var Ul = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Ul || {});
|
|
3129
|
+
let cn = Symbol("DialogContext");
|
|
3130
|
+
function at(e) {
|
|
3131
|
+
let t = H(cn, null);
|
|
3132
3132
|
if (t === null) {
|
|
3133
3133
|
let n = new Error(`<${e} /> is missing a parent <Dialog /> component.`);
|
|
3134
|
-
throw Error.captureStackTrace && Error.captureStackTrace(n,
|
|
3134
|
+
throw Error.captureStackTrace && Error.captureStackTrace(n, at), n;
|
|
3135
3135
|
}
|
|
3136
3136
|
return t;
|
|
3137
3137
|
}
|
|
3138
|
-
let
|
|
3138
|
+
let ft = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Hl = U({ name: "Dialog", inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, open: { type: [Boolean, String], default: ft }, initialFocus: { type: Object, default: null }, id: { type: String, default: () => `headlessui-dialog-${ee()}` } }, emits: { close: (e) => !0 }, setup(e, { emit: t, attrs: n, slots: r, expose: o }) {
|
|
3139
3139
|
var s;
|
|
3140
3140
|
let a = T(!1);
|
|
3141
3141
|
K(() => {
|
|
3142
3142
|
a.value = !0;
|
|
3143
3143
|
});
|
|
3144
|
-
let i = T(0), d =
|
|
3145
|
-
if (o({ el: c, $el: c }), !(e.open !==
|
|
3144
|
+
let i = T(0), d = Tn(), l = x(() => e.open === ft && d !== null ? (d.value & te.Open) === te.Open : e.open), c = T(null), u = x(() => fe(c));
|
|
3145
|
+
if (o({ el: c, $el: c }), !(e.open !== ft || d !== null))
|
|
3146
3146
|
throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
|
|
3147
3147
|
if (typeof l.value != "boolean")
|
|
3148
|
-
throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${l.value ===
|
|
3149
|
-
let f = x(() => a.value && l.value ? 0 : 1), v = x(() => f.value === 0), m = x(() => i.value > 1), p = H(
|
|
3148
|
+
throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${l.value === ft ? void 0 : e.open}`);
|
|
3149
|
+
let f = x(() => a.value && l.value ? 0 : 1), v = x(() => f.value === 0), m = x(() => i.value > 1), p = H(cn, null) !== null, [y, S] = co(), { resolveContainers: N, mainTreeNodeRef: C, MainTreeNode: A } = mo({ portals: y, defaultContainers: [x(() => {
|
|
3150
3150
|
var F;
|
|
3151
3151
|
return (F = I.panelRef.value) != null ? F : c.value;
|
|
3152
3152
|
})] }), E = x(() => m.value ? "parent" : "leaf"), O = x(() => d !== null ? (d.value & te.Closing) === te.Closing : !1), b = x(() => p || O.value ? !1 : v.value), V = x(() => {
|
|
3153
3153
|
var F, R, ie;
|
|
3154
3154
|
return (ie = Array.from((R = (F = u.value) == null ? void 0 : F.querySelectorAll("body > *")) != null ? R : []).find((le) => le.id === "headlessui-portal-root" ? !1 : le.contains(_(C)) && le instanceof HTMLElement)) != null ? ie : null;
|
|
3155
3155
|
});
|
|
3156
|
-
|
|
3156
|
+
ar(V, b);
|
|
3157
3157
|
let W = x(() => m.value ? !0 : v.value), P = x(() => {
|
|
3158
3158
|
var F, R, ie;
|
|
3159
3159
|
return (ie = Array.from((R = (F = u.value) == null ? void 0 : F.querySelectorAll("[data-headlessui-portal]")) != null ? R : []).find((le) => le.contains(_(C)) && le instanceof HTMLElement)) != null ? ie : null;
|
|
3160
3160
|
});
|
|
3161
|
-
|
|
3161
|
+
ar(P, W), kl({ type: "Dialog", enabled: x(() => f.value === 0), element: c, onUpdate: (F, R) => {
|
|
3162
3162
|
if (R === "Dialog")
|
|
3163
|
-
return X(F, { [
|
|
3163
|
+
return X(F, { [un.Add]: () => i.value += 1, [un.Remove]: () => i.value -= 1 });
|
|
3164
3164
|
} });
|
|
3165
|
-
let w =
|
|
3165
|
+
let w = $l({ name: "DialogDescription", slot: x(() => ({ open: l.value })) }), D = T(null), I = { titleId: D, panelRef: T(null), dialogState: f, setTitleId(F) {
|
|
3166
3166
|
D.value !== F && (D.value = F);
|
|
3167
3167
|
}, close() {
|
|
3168
3168
|
t("close", !1);
|
|
3169
3169
|
} };
|
|
3170
|
-
oe(
|
|
3170
|
+
oe(cn, I);
|
|
3171
3171
|
let ge = x(() => !(!v.value || m.value));
|
|
3172
|
-
|
|
3173
|
-
I.close(),
|
|
3172
|
+
no(N, (F, R) => {
|
|
3173
|
+
I.close(), Xe(() => R == null ? void 0 : R.focus());
|
|
3174
3174
|
}, ge);
|
|
3175
|
-
let
|
|
3176
|
-
|
|
3177
|
-
|
|
3175
|
+
let Rt = x(() => !(m.value || f.value !== 0));
|
|
3176
|
+
An((s = u.value) == null ? void 0 : s.defaultView, "keydown", (F) => {
|
|
3177
|
+
Rt.value && (F.defaultPrevented || F.key === pe.Escape && (F.preventDefault(), F.stopPropagation(), I.close()));
|
|
3178
3178
|
});
|
|
3179
|
-
let
|
|
3180
|
-
return
|
|
3179
|
+
let Dt = x(() => !(O.value || f.value !== 0 || p));
|
|
3180
|
+
return Ml(u, Dt, (F) => {
|
|
3181
3181
|
var R;
|
|
3182
3182
|
return { containers: [...(R = F.containers) != null ? R : [], N] };
|
|
3183
3183
|
}), se((F) => {
|
|
@@ -3187,19 +3187,19 @@ let ut = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Ul = U({ name: "Dialog", inheri
|
|
|
3187
3187
|
if (!R)
|
|
3188
3188
|
return;
|
|
3189
3189
|
let ie = new ResizeObserver((le) => {
|
|
3190
|
-
for (let
|
|
3191
|
-
let
|
|
3192
|
-
|
|
3190
|
+
for (let jt of le) {
|
|
3191
|
+
let Ae = jt.target.getBoundingClientRect();
|
|
3192
|
+
Ae.x === 0 && Ae.y === 0 && Ae.width === 0 && Ae.height === 0 && I.close();
|
|
3193
3193
|
}
|
|
3194
3194
|
});
|
|
3195
3195
|
ie.observe(R), F(() => ie.disconnect());
|
|
3196
3196
|
}), () => {
|
|
3197
|
-
let { id: F, open: R, initialFocus: ie, ...le } = e,
|
|
3198
|
-
return j(
|
|
3197
|
+
let { id: F, open: R, initialFocus: ie, ...le } = e, jt = { ...n, ref: c, id: F, role: "dialog", "aria-modal": f.value === 0 ? !0 : void 0, "aria-labelledby": D.value, "aria-describedby": w.value }, Ae = { open: f.value === 0 };
|
|
3198
|
+
return j(an, { force: !0 }, () => [j(uo, () => j(Nl, { target: c.value }, () => j(an, { force: !1 }, () => j(ze, { initialFocus: ie, containers: N, features: v.value ? X(E.value, { parent: ze.features.RestoreFocus, leaf: ze.features.All & ~ze.features.FocusLock }) : ze.features.None }, () => j(S, {}, () => G({ ourProps: jt, theirProps: { ...le, ...n }, slot: Ae, attrs: n, slots: r, visible: f.value === 0, features: Pe.RenderStrategy | Pe.Static, name: "Dialog" })))))), j(A)]);
|
|
3199
3199
|
};
|
|
3200
3200
|
} });
|
|
3201
3201
|
U({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-overlay-${ee()}` } }, setup(e, { attrs: t, slots: n }) {
|
|
3202
|
-
let r =
|
|
3202
|
+
let r = at("DialogOverlay");
|
|
3203
3203
|
function o(s) {
|
|
3204
3204
|
s.target === s.currentTarget && (s.preventDefault(), s.stopPropagation(), r.close());
|
|
3205
3205
|
}
|
|
@@ -3209,17 +3209,17 @@ U({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div"
|
|
|
3209
3209
|
};
|
|
3210
3210
|
} });
|
|
3211
3211
|
U({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-backdrop-${ee()}` } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: r }) {
|
|
3212
|
-
let o =
|
|
3212
|
+
let o = at("DialogBackdrop"), s = T(null);
|
|
3213
3213
|
return r({ el: s, $el: s }), K(() => {
|
|
3214
3214
|
if (o.panelRef.value === null)
|
|
3215
3215
|
throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.");
|
|
3216
3216
|
}), () => {
|
|
3217
3217
|
let { id: a, ...i } = e, d = { id: a, ref: s, "aria-hidden": !0 };
|
|
3218
|
-
return j(
|
|
3218
|
+
return j(an, { force: !0 }, () => j(uo, () => G({ ourProps: d, theirProps: { ...t, ...i }, slot: { open: o.dialogState.value === 0 }, attrs: t, slots: n, name: "DialogBackdrop" })));
|
|
3219
3219
|
};
|
|
3220
3220
|
} });
|
|
3221
|
-
let
|
|
3222
|
-
let o =
|
|
3221
|
+
let Vl = U({ name: "DialogPanel", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-panel-${ee()}` } }, setup(e, { attrs: t, slots: n, expose: r }) {
|
|
3222
|
+
let o = at("DialogPanel");
|
|
3223
3223
|
r({ el: o.panelRef, $el: o.panelRef });
|
|
3224
3224
|
function s(a) {
|
|
3225
3225
|
a.stopPropagation();
|
|
@@ -3230,7 +3230,7 @@ let Hl = U({ name: "DialogPanel", props: { as: { type: [Object, String], default
|
|
|
3230
3230
|
};
|
|
3231
3231
|
} });
|
|
3232
3232
|
U({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: () => `headlessui-dialog-title-${ee()}` } }, setup(e, { attrs: t, slots: n }) {
|
|
3233
|
-
let r =
|
|
3233
|
+
let r = at("DialogTitle");
|
|
3234
3234
|
return K(() => {
|
|
3235
3235
|
r.setTitleId(e.id), re(() => r.setTitleId(null));
|
|
3236
3236
|
}), () => {
|
|
@@ -3238,25 +3238,25 @@ U({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" },
|
|
|
3238
3238
|
return G({ ourProps: { id: o }, theirProps: s, slot: { open: r.dialogState.value === 0 }, attrs: t, slots: n, name: "DialogTitle" });
|
|
3239
3239
|
};
|
|
3240
3240
|
} });
|
|
3241
|
-
var
|
|
3242
|
-
let
|
|
3243
|
-
function
|
|
3244
|
-
let t = H(
|
|
3241
|
+
var zl = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(zl || {});
|
|
3242
|
+
let vo = Symbol("PopoverContext");
|
|
3243
|
+
function Ft(e) {
|
|
3244
|
+
let t = H(vo, null);
|
|
3245
3245
|
if (t === null) {
|
|
3246
|
-
let n = new Error(`<${e} /> is missing a parent <${
|
|
3247
|
-
throw Error.captureStackTrace && Error.captureStackTrace(n,
|
|
3246
|
+
let n = new Error(`<${e} /> is missing a parent <${wo.name} /> component.`);
|
|
3247
|
+
throw Error.captureStackTrace && Error.captureStackTrace(n, Ft), n;
|
|
3248
3248
|
}
|
|
3249
3249
|
return t;
|
|
3250
3250
|
}
|
|
3251
|
-
let
|
|
3252
|
-
function
|
|
3253
|
-
return H(
|
|
3251
|
+
let go = Symbol("PopoverGroupContext");
|
|
3252
|
+
function yo() {
|
|
3253
|
+
return H(go, null);
|
|
3254
3254
|
}
|
|
3255
|
-
let
|
|
3256
|
-
function
|
|
3257
|
-
return H(
|
|
3255
|
+
let bo = Symbol("PopoverPanelContext");
|
|
3256
|
+
function ql() {
|
|
3257
|
+
return H(bo, null);
|
|
3258
3258
|
}
|
|
3259
|
-
let
|
|
3259
|
+
let wo = U({ name: "Popover", props: { as: { type: [Object, String], default: "div" } }, setup(e, { slots: t, attrs: n, expose: r }) {
|
|
3260
3260
|
var o;
|
|
3261
3261
|
let s = T(null);
|
|
3262
3262
|
r({ el: s, $el: s });
|
|
@@ -3267,7 +3267,7 @@ let bo = U({ name: "Popover", props: { as: { type: [Object, String], default: "d
|
|
|
3267
3267
|
for (let I of document.querySelectorAll("body > *"))
|
|
3268
3268
|
if (Number(I == null ? void 0 : I.contains(_(i))) ^ Number(I == null ? void 0 : I.contains(_(c))))
|
|
3269
3269
|
return !0;
|
|
3270
|
-
let b =
|
|
3270
|
+
let b = $t(), V = b.indexOf(_(i)), W = (V + b.length - 1) % b.length, P = (V + 1) % b.length, w = b[W], D = b[P];
|
|
3271
3271
|
return !((E = _(c)) != null && E.contains(w)) && !((O = _(c)) != null && O.contains(D));
|
|
3272
3272
|
}), v = { popoverState: a, buttonId: T(null), panelId: T(null), panel: c, button: i, isPortalled: f, beforePanelSentinel: d, afterPanelSentinel: l, togglePopover() {
|
|
3273
3273
|
a.value = X(a.value, { [0]: 1, [1]: 0 });
|
|
@@ -3278,36 +3278,36 @@ let bo = U({ name: "Popover", props: { as: { type: [Object, String], default: "d
|
|
|
3278
3278
|
let O = (() => E ? E instanceof HTMLElement ? E : E.value instanceof HTMLElement ? _(E) : _(v.button) : _(v.button))();
|
|
3279
3279
|
O == null || O.focus();
|
|
3280
3280
|
} };
|
|
3281
|
-
oe(
|
|
3281
|
+
oe(vo, v), dl(x(() => X(a.value, { [0]: te.Open, [1]: te.Closed })));
|
|
3282
3282
|
let m = { buttonId: v.buttonId, panelId: v.panelId, close() {
|
|
3283
3283
|
v.closePopover();
|
|
3284
|
-
} }, p =
|
|
3284
|
+
} }, p = yo(), y = p == null ? void 0 : p.registerPopover, [S, N] = co(), C = mo({ portals: S, defaultContainers: [i, c] });
|
|
3285
3285
|
function A() {
|
|
3286
3286
|
var E, O, b, V;
|
|
3287
3287
|
return (V = p == null ? void 0 : p.isFocusWithinPopoverGroup()) != null ? V : ((E = u.value) == null ? void 0 : E.activeElement) && (((O = _(i)) == null ? void 0 : O.contains(u.value.activeElement)) || ((b = _(c)) == null ? void 0 : b.contains(u.value.activeElement)));
|
|
3288
3288
|
}
|
|
3289
|
-
return se(() => y == null ? void 0 : y(m)),
|
|
3289
|
+
return se(() => y == null ? void 0 : y(m)), An((o = u.value) == null ? void 0 : o.defaultView, "focus", (E) => {
|
|
3290
3290
|
var O, b;
|
|
3291
3291
|
E.target !== window && E.target instanceof HTMLElement && a.value === 0 && (A() || i && c && (C.contains(E.target) || (O = _(v.beforePanelSentinel)) != null && O.contains(E.target) || (b = _(v.afterPanelSentinel)) != null && b.contains(E.target) || v.closePopover()));
|
|
3292
|
-
}, !0),
|
|
3292
|
+
}, !0), no(C.resolveContainers, (E, O) => {
|
|
3293
3293
|
var b;
|
|
3294
|
-
v.closePopover(),
|
|
3294
|
+
v.closePopover(), eo(O, Cn.Loose) || (E.preventDefault(), (b = _(i)) == null || b.focus());
|
|
3295
3295
|
}, x(() => a.value === 0)), () => {
|
|
3296
3296
|
let E = { open: a.value === 0, close: v.close };
|
|
3297
3297
|
return j(N, {}, () => G({ theirProps: { ...e, ...n }, ourProps: { ref: s }, slot: E, slots: t, attrs: n, name: "Popover" }));
|
|
3298
3298
|
};
|
|
3299
|
-
} }),
|
|
3300
|
-
let o =
|
|
3299
|
+
} }), Gl = U({ name: "PopoverButton", props: { as: { type: [Object, String], default: "button" }, disabled: { type: [Boolean], default: !1 }, id: { type: String, default: () => `headlessui-popover-button-${ee()}` } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: r }) {
|
|
3300
|
+
let o = Ft("PopoverButton"), s = x(() => fe(o.button));
|
|
3301
3301
|
r({ el: o.button, $el: o.button }), K(() => {
|
|
3302
3302
|
o.buttonId.value = e.id;
|
|
3303
3303
|
}), re(() => {
|
|
3304
3304
|
o.buttonId.value = null;
|
|
3305
3305
|
});
|
|
3306
|
-
let a =
|
|
3306
|
+
let a = yo(), i = a == null ? void 0 : a.closeOthers, d = ql(), l = x(() => d === null ? !1 : d.value === o.panelId.value), c = T(null), u = `headlessui-focus-sentinel-${ee()}`;
|
|
3307
3307
|
l.value || se(() => {
|
|
3308
3308
|
o.button.value = c.value;
|
|
3309
3309
|
});
|
|
3310
|
-
let f =
|
|
3310
|
+
let f = fl(x(() => ({ as: e.as, type: t.type })), c);
|
|
3311
3311
|
function v(C) {
|
|
3312
3312
|
var A, E, O, b, V;
|
|
3313
3313
|
if (l.value) {
|
|
@@ -3344,23 +3344,23 @@ let bo = U({ name: "Popover", props: { as: { type: [Object, String], default: "d
|
|
|
3344
3344
|
function y(C) {
|
|
3345
3345
|
C.preventDefault(), C.stopPropagation();
|
|
3346
3346
|
}
|
|
3347
|
-
let S =
|
|
3347
|
+
let S = Nn();
|
|
3348
3348
|
function N() {
|
|
3349
3349
|
let C = _(o.panel);
|
|
3350
3350
|
if (!C)
|
|
3351
3351
|
return;
|
|
3352
3352
|
function A() {
|
|
3353
|
-
X(S.value, { [Y.Forwards]: () => ne(C, q.First), [Y.Backwards]: () => ne(C, q.Last) }) ===
|
|
3353
|
+
X(S.value, { [Y.Forwards]: () => ne(C, q.First), [Y.Backwards]: () => ne(C, q.Last) }) === et.Error && ne($t().filter((E) => E.dataset.headlessuiFocusGuard !== "true"), X(S.value, { [Y.Forwards]: q.Next, [Y.Backwards]: q.Previous }), { relativeTo: _(o.button) });
|
|
3354
3354
|
}
|
|
3355
3355
|
A();
|
|
3356
3356
|
}
|
|
3357
3357
|
return () => {
|
|
3358
3358
|
let C = o.popoverState.value === 0, A = { open: C }, { id: E, ...O } = e, b = l.value ? { ref: c, type: f.value, onKeydown: v, onClick: p } : { ref: c, id: E, type: f.value, "aria-expanded": e.disabled ? void 0 : o.popoverState.value === 0, "aria-controls": _(o.panel) ? o.panelId.value : void 0, disabled: e.disabled ? !0 : void 0, onKeydown: v, onKeyup: m, onClick: p, onMousedown: y };
|
|
3359
|
-
return j(ve, [G({ ourProps: b, theirProps: { ...t, ...O }, slot: A, attrs: t, slots: n, name: "PopoverButton" }), C && !l.value && o.isPortalled.value && j(
|
|
3359
|
+
return j(ve, [G({ ourProps: b, theirProps: { ...t, ...O }, slot: A, attrs: t, slots: n, name: "PopoverButton" }), C && !l.value && o.isPortalled.value && j(Fe, { id: u, features: Oe.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: N })]);
|
|
3360
3360
|
};
|
|
3361
3361
|
} });
|
|
3362
3362
|
U({ name: "PopoverOverlay", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 } }, setup(e, { attrs: t, slots: n }) {
|
|
3363
|
-
let r =
|
|
3363
|
+
let r = Ft("PopoverOverlay"), o = `headlessui-popover-overlay-${ee()}`, s = Tn(), a = x(() => s !== null ? (s.value & te.Open) === te.Open : r.popoverState.value === 0);
|
|
3364
3364
|
function i() {
|
|
3365
3365
|
r.closePopover();
|
|
3366
3366
|
}
|
|
@@ -3369,20 +3369,20 @@ U({ name: "PopoverOverlay", props: { as: { type: [Object, String], default: "div
|
|
|
3369
3369
|
return G({ ourProps: { id: o, "aria-hidden": !0, onClick: i }, theirProps: e, slot: d, attrs: t, slots: n, features: Pe.RenderStrategy | Pe.Static, visible: a.value, name: "PopoverOverlay" });
|
|
3370
3370
|
};
|
|
3371
3371
|
} });
|
|
3372
|
-
let
|
|
3373
|
-
let { focus: o } = e, s =
|
|
3372
|
+
let Wl = U({ name: "PopoverPanel", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, focus: { type: Boolean, default: !1 }, id: { type: String, default: () => `headlessui-popover-panel-${ee()}` } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: r }) {
|
|
3373
|
+
let { focus: o } = e, s = Ft("PopoverPanel"), a = x(() => fe(s.panel)), i = `headlessui-focus-sentinel-before-${ee()}`, d = `headlessui-focus-sentinel-after-${ee()}`;
|
|
3374
3374
|
r({ el: s.panel, $el: s.panel }), K(() => {
|
|
3375
3375
|
s.panelId.value = e.id;
|
|
3376
3376
|
}), re(() => {
|
|
3377
3377
|
s.panelId.value = null;
|
|
3378
|
-
}), oe(
|
|
3378
|
+
}), oe(bo, s.panelId), se(() => {
|
|
3379
3379
|
var y, S;
|
|
3380
3380
|
if (!o || s.popoverState.value !== 0 || !s.panel)
|
|
3381
3381
|
return;
|
|
3382
3382
|
let N = (y = a.value) == null ? void 0 : y.activeElement;
|
|
3383
3383
|
(S = _(s.panel)) != null && S.contains(N) || ne(_(s.panel), q.First);
|
|
3384
3384
|
});
|
|
3385
|
-
let l =
|
|
3385
|
+
let l = Tn(), c = x(() => l !== null ? (l.value & te.Open) === te.Open : s.popoverState.value === 0);
|
|
3386
3386
|
function u(y) {
|
|
3387
3387
|
var S, N;
|
|
3388
3388
|
switch (y.key) {
|
|
@@ -3398,7 +3398,7 @@ let Gl = U({ name: "PopoverPanel", props: { as: { type: [Object, String], defaul
|
|
|
3398
3398
|
let O = y.relatedTarget;
|
|
3399
3399
|
O && _(s.panel) && ((S = _(s.panel)) != null && S.contains(O) || (s.closePopover(), ((C = (N = _(s.beforePanelSentinel)) == null ? void 0 : N.contains) != null && C.call(N, O) || (E = (A = _(s.afterPanelSentinel)) == null ? void 0 : A.contains) != null && E.call(A, O)) && O.focus({ preventScroll: !0 })));
|
|
3400
3400
|
}
|
|
3401
|
-
let v =
|
|
3401
|
+
let v = Nn();
|
|
3402
3402
|
function m() {
|
|
3403
3403
|
let y = _(s.panel);
|
|
3404
3404
|
if (!y)
|
|
@@ -3406,7 +3406,7 @@ let Gl = U({ name: "PopoverPanel", props: { as: { type: [Object, String], defaul
|
|
|
3406
3406
|
function S() {
|
|
3407
3407
|
X(v.value, { [Y.Forwards]: () => {
|
|
3408
3408
|
var N;
|
|
3409
|
-
ne(y, q.First) ===
|
|
3409
|
+
ne(y, q.First) === et.Error && ((N = _(s.afterPanelSentinel)) == null || N.focus());
|
|
3410
3410
|
}, [Y.Backwards]: () => {
|
|
3411
3411
|
var N;
|
|
3412
3412
|
(N = _(s.button)) == null || N.focus({ preventScroll: !0 });
|
|
@@ -3423,7 +3423,7 @@ let Gl = U({ name: "PopoverPanel", props: { as: { type: [Object, String], defaul
|
|
|
3423
3423
|
let N = _(s.button), C = _(s.panel);
|
|
3424
3424
|
if (!N)
|
|
3425
3425
|
return;
|
|
3426
|
-
let A =
|
|
3426
|
+
let A = $t(), E = A.indexOf(N), O = A.slice(0, E + 1), b = [...A.slice(E + 1), ...O];
|
|
3427
3427
|
for (let V of b.slice())
|
|
3428
3428
|
if (V.dataset.headlessuiFocusGuard === "true" || C != null && C.contains(V)) {
|
|
3429
3429
|
let W = b.indexOf(V);
|
|
@@ -3432,7 +3432,7 @@ let Gl = U({ name: "PopoverPanel", props: { as: { type: [Object, String], defaul
|
|
|
3432
3432
|
ne(b, q.First, { sorted: !1 });
|
|
3433
3433
|
}, [Y.Backwards]: () => {
|
|
3434
3434
|
var N;
|
|
3435
|
-
ne(y, q.Previous) ===
|
|
3435
|
+
ne(y, q.Previous) === et.Error && ((N = _(s.button)) == null || N.focus());
|
|
3436
3436
|
} });
|
|
3437
3437
|
}
|
|
3438
3438
|
S();
|
|
@@ -3441,12 +3441,12 @@ let Gl = U({ name: "PopoverPanel", props: { as: { type: [Object, String], defaul
|
|
|
3441
3441
|
let y = { open: s.popoverState.value === 0, close: s.close }, { id: S, focus: N, ...C } = e, A = { ref: s.panel, id: S, onKeydown: u, onFocusout: o && s.popoverState.value === 0 ? f : void 0, tabIndex: -1 };
|
|
3442
3442
|
return G({ ourProps: A, theirProps: { ...t, ...C }, attrs: t, slot: y, slots: { ...n, default: (...E) => {
|
|
3443
3443
|
var O;
|
|
3444
|
-
return [j(ve, [c.value && s.isPortalled.value && j(
|
|
3444
|
+
return [j(ve, [c.value && s.isPortalled.value && j(Fe, { id: i, ref: s.beforePanelSentinel, features: Oe.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: m }), (O = n.default) == null ? void 0 : O.call(n, ...E), c.value && s.isPortalled.value && j(Fe, { id: d, ref: s.afterPanelSentinel, features: Oe.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: p })])];
|
|
3445
3445
|
} }, features: Pe.RenderStrategy | Pe.Static, visible: c.value, name: "PopoverPanel" });
|
|
3446
3446
|
};
|
|
3447
3447
|
} });
|
|
3448
3448
|
U({ name: "PopoverGroup", props: { as: { type: [Object, String], default: "div" } }, setup(e, { attrs: t, slots: n, expose: r }) {
|
|
3449
|
-
let o = T(null), s =
|
|
3449
|
+
let o = T(null), s = pr([]), a = x(() => fe(o));
|
|
3450
3450
|
r({ el: o, $el: o });
|
|
3451
3451
|
function i(u) {
|
|
3452
3452
|
let f = s.value.indexOf(u);
|
|
@@ -3472,9 +3472,9 @@ U({ name: "PopoverGroup", props: { as: { type: [Object, String], default: "div"
|
|
|
3472
3472
|
for (let f of s.value)
|
|
3473
3473
|
f.buttonId.value !== u && f.close();
|
|
3474
3474
|
}
|
|
3475
|
-
return oe(
|
|
3475
|
+
return oe(go, { registerPopover: d, unregisterPopover: i, isFocusWithinPopoverGroup: l, closeOthers: c }), () => G({ ourProps: { ref: o }, theirProps: e, slot: {}, attrs: t, slots: n, name: "PopoverGroup" });
|
|
3476
3476
|
} });
|
|
3477
|
-
function
|
|
3477
|
+
function Jl(e, t) {
|
|
3478
3478
|
return k(), $("svg", {
|
|
3479
3479
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3480
3480
|
fill: "none",
|
|
@@ -3490,7 +3490,7 @@ function Wl(e, t) {
|
|
|
3490
3490
|
})
|
|
3491
3491
|
]);
|
|
3492
3492
|
}
|
|
3493
|
-
function
|
|
3493
|
+
function Kl(e, t) {
|
|
3494
3494
|
return k(), $("svg", {
|
|
3495
3495
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3496
3496
|
fill: "none",
|
|
@@ -3506,12 +3506,12 @@ function Jl(e, t) {
|
|
|
3506
3506
|
})
|
|
3507
3507
|
]);
|
|
3508
3508
|
}
|
|
3509
|
-
const
|
|
3509
|
+
const it = (e, t) => {
|
|
3510
3510
|
const n = e.__vccOpts || e;
|
|
3511
3511
|
for (const [r, o] of t)
|
|
3512
3512
|
n[r] = o;
|
|
3513
3513
|
return n;
|
|
3514
|
-
},
|
|
3514
|
+
}, Yl = {
|
|
3515
3515
|
data() {
|
|
3516
3516
|
return {
|
|
3517
3517
|
isSignup: !1,
|
|
@@ -3545,13 +3545,13 @@ const ot = (e, t) => {
|
|
|
3545
3545
|
methods: {
|
|
3546
3546
|
handleFbLogin() {
|
|
3547
3547
|
if (typeof FB < "u") {
|
|
3548
|
-
const e =
|
|
3548
|
+
const e = We.service({
|
|
3549
3549
|
text: "logining...",
|
|
3550
3550
|
background: "rgba(0, 0, 0, 0.7)"
|
|
3551
3551
|
});
|
|
3552
3552
|
FB.login((t) => {
|
|
3553
3553
|
if (console.log(t), t.status === "connected")
|
|
3554
|
-
|
|
3554
|
+
rl(t.authResponse.accessToken).then((n) => {
|
|
3555
3555
|
e.close(), this.$emit("success");
|
|
3556
3556
|
try {
|
|
3557
3557
|
document.body.classList.remove("el-loading-parent--relative");
|
|
@@ -3573,11 +3573,11 @@ const ot = (e, t) => {
|
|
|
3573
3573
|
handleCredentialResponse(e) {
|
|
3574
3574
|
if (console.log(e, "response"), !e || !e.credential)
|
|
3575
3575
|
return;
|
|
3576
|
-
const t =
|
|
3576
|
+
const t = We.service({
|
|
3577
3577
|
text: "logining...",
|
|
3578
3578
|
background: "rgba(0, 0, 0, 0.7)"
|
|
3579
3579
|
});
|
|
3580
|
-
|
|
3580
|
+
Yr(e.credential).then((n) => {
|
|
3581
3581
|
console.log("loginGoogle", n), t.close(), this.$emit("success");
|
|
3582
3582
|
try {
|
|
3583
3583
|
document.body.classList.remove("el-loading-parent--relative");
|
|
@@ -3628,11 +3628,11 @@ const ot = (e, t) => {
|
|
|
3628
3628
|
this.showToast("Password must no be empty");
|
|
3629
3629
|
return;
|
|
3630
3630
|
}
|
|
3631
|
-
const e =
|
|
3631
|
+
const e = We.service({
|
|
3632
3632
|
text: "logining...",
|
|
3633
3633
|
background: "rgba(0, 0, 0, 0.7)"
|
|
3634
3634
|
});
|
|
3635
|
-
|
|
3635
|
+
ol(this.email, this.password).then((t) => {
|
|
3636
3636
|
e.close(), this.$emit("success");
|
|
3637
3637
|
try {
|
|
3638
3638
|
document.body.classList.remove("el-loading-parent--relative");
|
|
@@ -3663,11 +3663,11 @@ const ot = (e, t) => {
|
|
|
3663
3663
|
this.showToast("Password must no be empty");
|
|
3664
3664
|
return;
|
|
3665
3665
|
}
|
|
3666
|
-
const e =
|
|
3666
|
+
const e = We.service({
|
|
3667
3667
|
text: "registering...",
|
|
3668
3668
|
background: "rgba(0, 0, 0, 0.7)"
|
|
3669
3669
|
});
|
|
3670
|
-
|
|
3670
|
+
sl(this.email, this.name, this.password).then((t) => {
|
|
3671
3671
|
e.close(), location.href = t.url;
|
|
3672
3672
|
try {
|
|
3673
3673
|
document.body.classList.remove("el-loading-parent--relative");
|
|
@@ -3685,19 +3685,19 @@ const ot = (e, t) => {
|
|
|
3685
3685
|
console.log(e, 4);
|
|
3686
3686
|
}
|
|
3687
3687
|
}
|
|
3688
|
-
}, ae = (e) => (
|
|
3688
|
+
}, ae = (e) => (nt("data-v-4682235c"), e = e(), rt(), e), Xl = { class: "login-wapper" }, Zl = /* @__PURE__ */ ae(() => /* @__PURE__ */ g(
|
|
3689
3689
|
"span",
|
|
3690
3690
|
null,
|
|
3691
3691
|
"Login here",
|
|
3692
3692
|
-1
|
|
3693
3693
|
/* HOISTED */
|
|
3694
|
-
)),
|
|
3694
|
+
)), Ql = /* @__PURE__ */ ae(() => /* @__PURE__ */ g(
|
|
3695
3695
|
"span",
|
|
3696
3696
|
null,
|
|
3697
3697
|
"Sign up here",
|
|
3698
3698
|
-1
|
|
3699
3699
|
/* HOISTED */
|
|
3700
|
-
)),
|
|
3700
|
+
)), eu = { class: "accounts" }, tu = /* @__PURE__ */ ae(() => /* @__PURE__ */ g(
|
|
3701
3701
|
"div",
|
|
3702
3702
|
{ class: "account" },
|
|
3703
3703
|
[
|
|
@@ -3705,7 +3705,7 @@ const ot = (e, t) => {
|
|
|
3705
3705
|
],
|
|
3706
3706
|
-1
|
|
3707
3707
|
/* HOISTED */
|
|
3708
|
-
)),
|
|
3708
|
+
)), nu = /* @__PURE__ */ ae(() => /* @__PURE__ */ g(
|
|
3709
3709
|
"svg",
|
|
3710
3710
|
{
|
|
3711
3711
|
t: "1661493482810",
|
|
@@ -3731,13 +3731,13 @@ const ot = (e, t) => {
|
|
|
3731
3731
|
],
|
|
3732
3732
|
-1
|
|
3733
3733
|
/* HOISTED */
|
|
3734
|
-
)),
|
|
3734
|
+
)), ru = /* @__PURE__ */ ae(() => /* @__PURE__ */ g(
|
|
3735
3735
|
"div",
|
|
3736
3736
|
{ style: { flex: "1", "margin-left": "5px", "font-size": "14px", "font-weight": "500" } },
|
|
3737
3737
|
"Login With Facebook",
|
|
3738
3738
|
-1
|
|
3739
3739
|
/* HOISTED */
|
|
3740
|
-
)),
|
|
3740
|
+
)), ou = /* @__PURE__ */ ae(() => /* @__PURE__ */ g(
|
|
3741
3741
|
"div",
|
|
3742
3742
|
{ class: "divider" },
|
|
3743
3743
|
[
|
|
@@ -3745,34 +3745,34 @@ const ot = (e, t) => {
|
|
|
3745
3745
|
],
|
|
3746
3746
|
-1
|
|
3747
3747
|
/* HOISTED */
|
|
3748
|
-
)),
|
|
3748
|
+
)), su = { class: "form-group" }, au = /* @__PURE__ */ ae(() => /* @__PURE__ */ g(
|
|
3749
3749
|
"label",
|
|
3750
3750
|
{ for: "user_email" },
|
|
3751
3751
|
"Email",
|
|
3752
3752
|
-1
|
|
3753
3753
|
/* HOISTED */
|
|
3754
|
-
)),
|
|
3754
|
+
)), iu = {
|
|
3755
3755
|
key: 0,
|
|
3756
3756
|
class: "help-block-error"
|
|
3757
|
-
},
|
|
3757
|
+
}, lu = {
|
|
3758
3758
|
key: 0,
|
|
3759
3759
|
class: "form-group"
|
|
3760
|
-
},
|
|
3760
|
+
}, uu = /* @__PURE__ */ ae(() => /* @__PURE__ */ g(
|
|
3761
3761
|
"label",
|
|
3762
3762
|
{ for: "user_name" },
|
|
3763
3763
|
"Username",
|
|
3764
3764
|
-1
|
|
3765
3765
|
/* HOISTED */
|
|
3766
|
-
)),
|
|
3766
|
+
)), cu = { class: "form-group" }, du = /* @__PURE__ */ ae(() => /* @__PURE__ */ g(
|
|
3767
3767
|
"label",
|
|
3768
3768
|
{ for: "user_password" },
|
|
3769
3769
|
"Password",
|
|
3770
3770
|
-1
|
|
3771
3771
|
/* HOISTED */
|
|
3772
|
-
)),
|
|
3772
|
+
)), fu = {
|
|
3773
3773
|
key: 0,
|
|
3774
3774
|
class: "help-block-error"
|
|
3775
|
-
},
|
|
3775
|
+
}, pu = { key: 0 }, hu = /* @__PURE__ */ ae(() => /* @__PURE__ */ g(
|
|
3776
3776
|
"a",
|
|
3777
3777
|
{
|
|
3778
3778
|
href: "/user/resend-verify",
|
|
@@ -3781,12 +3781,12 @@ const ot = (e, t) => {
|
|
|
3781
3781
|
"Resend email",
|
|
3782
3782
|
-1
|
|
3783
3783
|
/* HOISTED */
|
|
3784
|
-
)),
|
|
3785
|
-
|
|
3786
|
-
],
|
|
3784
|
+
)), mu = [
|
|
3785
|
+
hu
|
|
3786
|
+
], vu = ["disabled"], gu = ["disabled"], yu = {
|
|
3787
3787
|
key: 2,
|
|
3788
3788
|
class: "link"
|
|
3789
|
-
},
|
|
3789
|
+
}, bu = /* @__PURE__ */ ae(() => /* @__PURE__ */ g(
|
|
3790
3790
|
"a",
|
|
3791
3791
|
{
|
|
3792
3792
|
href: "/user/password-reset",
|
|
@@ -3796,8 +3796,8 @@ const ot = (e, t) => {
|
|
|
3796
3796
|
-1
|
|
3797
3797
|
/* HOISTED */
|
|
3798
3798
|
));
|
|
3799
|
-
function
|
|
3800
|
-
return k(), $("div",
|
|
3799
|
+
function wu(e, t, n, r, o, s) {
|
|
3800
|
+
return k(), $("div", Xl, [
|
|
3801
3801
|
g(
|
|
3802
3802
|
"h1",
|
|
3803
3803
|
null,
|
|
@@ -3810,25 +3810,25 @@ function bu(e, t, n, r, o, s) {
|
|
|
3810
3810
|
class: "link",
|
|
3811
3811
|
onClick: t[0] || (t[0] = (...a) => s.handleToLogin && s.handleToLogin(...a))
|
|
3812
3812
|
}, [
|
|
3813
|
-
|
|
3814
|
-
|
|
3813
|
+
pt("Already registered? "),
|
|
3814
|
+
Zl
|
|
3815
3815
|
])) : (k(), $("div", {
|
|
3816
3816
|
key: 1,
|
|
3817
3817
|
class: "link",
|
|
3818
3818
|
onClick: t[1] || (t[1] = (...a) => s.handleToSignup && s.handleToSignup(...a))
|
|
3819
3819
|
}, [
|
|
3820
|
-
|
|
3820
|
+
pt(
|
|
3821
3821
|
"New to " + J(o.appName) + "? ",
|
|
3822
3822
|
1
|
|
3823
3823
|
/* TEXT */
|
|
3824
3824
|
),
|
|
3825
|
-
|
|
3825
|
+
Ql
|
|
3826
3826
|
])),
|
|
3827
|
-
g("div",
|
|
3827
|
+
g("div", eu, [
|
|
3828
3828
|
B(` <div class="account">
|
|
3829
3829
|
<div class="fb-login-button" scope="public_profile,email" data-width="255px" data-size="large" data-button-type="login_with" data-layout="default" data-auto-logout-link="false" data-use-continue-as="false" data-onlogin="checkLoginState"></div>
|
|
3830
3830
|
</div> `),
|
|
3831
|
-
|
|
3831
|
+
tu,
|
|
3832
3832
|
g("div", {
|
|
3833
3833
|
class: "account flew-row-v-center",
|
|
3834
3834
|
style: { padding: "0 12px", "border-radius": "4px" },
|
|
@@ -3836,15 +3836,15 @@ function bu(e, t, n, r, o, s) {
|
|
|
3836
3836
|
}, [
|
|
3837
3837
|
B(` <img class="img" src="https://statics.imgkits.com/images/facebook_logo.png" alt="facebook logo" width="24" height="24" style="width: 24pxheight: 24px;margin: 8px 8px 8px 12px;">
|
|
3838
3838
|
<div style="flex: 1;margin-right: 12px;color: #fff;font-size: 16px;text-align: center;font-weight: bold;">Log in With Facebook</div> `),
|
|
3839
|
-
|
|
3840
|
-
|
|
3839
|
+
nu,
|
|
3840
|
+
ru
|
|
3841
3841
|
])
|
|
3842
3842
|
]),
|
|
3843
|
-
|
|
3843
|
+
ou,
|
|
3844
3844
|
g("div", null, [
|
|
3845
|
-
g("div",
|
|
3846
|
-
|
|
3847
|
-
|
|
3845
|
+
g("div", su, [
|
|
3846
|
+
au,
|
|
3847
|
+
Ke(g(
|
|
3848
3848
|
"input",
|
|
3849
3849
|
{
|
|
3850
3850
|
id: "user_email",
|
|
@@ -3857,19 +3857,19 @@ function bu(e, t, n, r, o, s) {
|
|
|
3857
3857
|
544
|
|
3858
3858
|
/* HYDRATE_EVENTS, NEED_PATCH */
|
|
3859
3859
|
), [
|
|
3860
|
-
[
|
|
3860
|
+
[It, o.email]
|
|
3861
3861
|
]),
|
|
3862
3862
|
o.emailErrorHelp ? (k(), $(
|
|
3863
3863
|
"p",
|
|
3864
|
-
|
|
3864
|
+
iu,
|
|
3865
3865
|
J(o.emailErrorHelp),
|
|
3866
3866
|
1
|
|
3867
3867
|
/* TEXT */
|
|
3868
3868
|
)) : B("v-if", !0)
|
|
3869
3869
|
]),
|
|
3870
|
-
o.isSignup ? (k(), $("div",
|
|
3871
|
-
|
|
3872
|
-
|
|
3870
|
+
o.isSignup ? (k(), $("div", lu, [
|
|
3871
|
+
uu,
|
|
3872
|
+
Ke(g(
|
|
3873
3873
|
"input",
|
|
3874
3874
|
{
|
|
3875
3875
|
id: "user_name",
|
|
@@ -3880,12 +3880,12 @@ function bu(e, t, n, r, o, s) {
|
|
|
3880
3880
|
512
|
|
3881
3881
|
/* NEED_PATCH */
|
|
3882
3882
|
), [
|
|
3883
|
-
[
|
|
3883
|
+
[It, o.name]
|
|
3884
3884
|
])
|
|
3885
3885
|
])) : B("v-if", !0),
|
|
3886
|
-
g("div",
|
|
3887
|
-
|
|
3888
|
-
|
|
3886
|
+
g("div", cu, [
|
|
3887
|
+
du,
|
|
3888
|
+
Ke(g(
|
|
3889
3889
|
"input",
|
|
3890
3890
|
{
|
|
3891
3891
|
id: "user_password",
|
|
@@ -3897,15 +3897,15 @@ function bu(e, t, n, r, o, s) {
|
|
|
3897
3897
|
544
|
|
3898
3898
|
/* HYDRATE_EVENTS, NEED_PATCH */
|
|
3899
3899
|
), [
|
|
3900
|
-
[
|
|
3900
|
+
[It, o.password]
|
|
3901
3901
|
]),
|
|
3902
|
-
o.passwordErrorHelp ? (k(), $("p",
|
|
3903
|
-
|
|
3902
|
+
o.passwordErrorHelp ? (k(), $("p", fu, [
|
|
3903
|
+
pt(
|
|
3904
3904
|
J(o.passwordErrorHelp) + " ",
|
|
3905
3905
|
1
|
|
3906
3906
|
/* TEXT */
|
|
3907
3907
|
),
|
|
3908
|
-
o.errCode == 2 ? (k(), $("span",
|
|
3908
|
+
o.errCode == 2 ? (k(), $("span", pu, mu)) : B("v-if", !0)
|
|
3909
3909
|
])) : B("v-if", !0)
|
|
3910
3910
|
]),
|
|
3911
3911
|
o.isSignup ? (k(), $("button", {
|
|
@@ -3913,15 +3913,15 @@ function bu(e, t, n, r, o, s) {
|
|
|
3913
3913
|
class: "form-button",
|
|
3914
3914
|
disabled: o.disabled,
|
|
3915
3915
|
onClick: t[9] || (t[9] = (...a) => s.handleSignup && s.handleSignup(...a))
|
|
3916
|
-
}, "Create Your Account", 8,
|
|
3916
|
+
}, "Create Your Account", 8, vu)) : (k(), $("button", {
|
|
3917
3917
|
key: 2,
|
|
3918
3918
|
class: "form-button",
|
|
3919
3919
|
disabled: o.disabled,
|
|
3920
3920
|
onClick: t[10] || (t[10] = (...a) => s.handleLogin && s.handleLogin(...a))
|
|
3921
|
-
}, "Login", 8,
|
|
3921
|
+
}, "Login", 8, gu))
|
|
3922
3922
|
]),
|
|
3923
|
-
o.isSignup ? B("v-if", !0) : (k(), $("div",
|
|
3924
|
-
|
|
3923
|
+
o.isSignup ? B("v-if", !0) : (k(), $("div", yu, [
|
|
3924
|
+
bu,
|
|
3925
3925
|
B(' <a href="/user/resend-verification-email"> Need new verification email?</a> ')
|
|
3926
3926
|
])),
|
|
3927
3927
|
B(` <div class="link">
|
|
@@ -3929,13 +3929,13 @@ function bu(e, t, n, r, o, s) {
|
|
|
3929
3929
|
</div> `)
|
|
3930
3930
|
]);
|
|
3931
3931
|
}
|
|
3932
|
-
const
|
|
3933
|
-
const
|
|
3932
|
+
const _u = /* @__PURE__ */ it(Yl, [["render", wu], ["__scopeId", "data-v-4682235c"], ["__file", "/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/Login1.vue"]]);
|
|
3933
|
+
const Eu = {
|
|
3934
3934
|
data() {
|
|
3935
3935
|
return {};
|
|
3936
3936
|
},
|
|
3937
3937
|
components: {
|
|
3938
|
-
Login1:
|
|
3938
|
+
Login1: _u
|
|
3939
3939
|
},
|
|
3940
3940
|
mounted() {
|
|
3941
3941
|
},
|
|
@@ -3943,13 +3943,13 @@ const _u = {
|
|
|
3943
3943
|
handleLoginSuccess() {
|
|
3944
3944
|
this.$emit("success");
|
|
3945
3945
|
const e = localStorage.getItem("cache_passport");
|
|
3946
|
-
e && (
|
|
3946
|
+
e && (nl(e), localStorage.removeItem("cache_passport"), Jr({ passport: e }, "active_passport_success"));
|
|
3947
3947
|
},
|
|
3948
3948
|
handleClose() {
|
|
3949
3949
|
this.$emit("close");
|
|
3950
3950
|
}
|
|
3951
3951
|
}
|
|
3952
|
-
},
|
|
3952
|
+
}, Su = (e) => (nt("data-v-47199182"), e = e(), rt(), e), xu = { class: "background-cover" }, Pu = { class: "login-content" }, Ou = /* @__PURE__ */ Su(() => /* @__PURE__ */ g(
|
|
3953
3953
|
"svg",
|
|
3954
3954
|
{
|
|
3955
3955
|
t: "1641536858080",
|
|
@@ -3970,105 +3970,105 @@ const _u = {
|
|
|
3970
3970
|
],
|
|
3971
3971
|
-1
|
|
3972
3972
|
/* HOISTED */
|
|
3973
|
-
)),
|
|
3974
|
-
|
|
3973
|
+
)), Tu = [
|
|
3974
|
+
Ou
|
|
3975
3975
|
];
|
|
3976
|
-
function
|
|
3977
|
-
const a =
|
|
3978
|
-
return k(), $("div",
|
|
3979
|
-
g("div",
|
|
3976
|
+
function Cu(e, t, n, r, o, s) {
|
|
3977
|
+
const a = Co("Login1");
|
|
3978
|
+
return k(), $("div", xu, [
|
|
3979
|
+
g("div", Pu, [
|
|
3980
3980
|
ue(a, { onSuccess: s.handleLoginSuccess }, null, 8, ["onSuccess"]),
|
|
3981
3981
|
g("div", {
|
|
3982
3982
|
class: "cancel",
|
|
3983
3983
|
onClick: t[0] || (t[0] = (...i) => s.handleClose && s.handleClose(...i))
|
|
3984
|
-
},
|
|
3984
|
+
}, Tu)
|
|
3985
3985
|
])
|
|
3986
3986
|
]);
|
|
3987
3987
|
}
|
|
3988
|
-
const
|
|
3988
|
+
const Nu = /* @__PURE__ */ it(Eu, [["render", Cu], ["__scopeId", "data-v-47199182"], ["__file", "/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/Login.vue"]]);
|
|
3989
3989
|
/*!
|
|
3990
3990
|
* pinia v2.1.4
|
|
3991
3991
|
* (c) 2023 Eduardo San Martin Morote
|
|
3992
3992
|
* @license MIT
|
|
3993
3993
|
*/
|
|
3994
|
-
let
|
|
3995
|
-
const
|
|
3994
|
+
let Je;
|
|
3995
|
+
const _t = (e) => Je = e, Au = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
|
|
3996
3996
|
/* istanbul ignore next */
|
|
3997
3997
|
Symbol()
|
|
3998
3998
|
);
|
|
3999
3999
|
function Te(e) {
|
|
4000
4000
|
return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
|
|
4001
4001
|
}
|
|
4002
|
-
var
|
|
4002
|
+
var Ye;
|
|
4003
4003
|
(function(e) {
|
|
4004
4004
|
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
4005
|
-
})(
|
|
4006
|
-
const
|
|
4007
|
-
function
|
|
4005
|
+
})(Ye || (Ye = {}));
|
|
4006
|
+
const kn = typeof window < "u", Yt = (process.env.NODE_ENV !== "production" || !1) && process.env.NODE_ENV !== "test" && kn;
|
|
4007
|
+
function _o(e, t) {
|
|
4008
4008
|
for (const n in t) {
|
|
4009
4009
|
const r = t[n];
|
|
4010
4010
|
if (!(n in e))
|
|
4011
4011
|
continue;
|
|
4012
4012
|
const o = e[n];
|
|
4013
|
-
Te(o) && Te(r) && !Se(r) && !
|
|
4013
|
+
Te(o) && Te(r) && !Se(r) && !mn(r) ? e[n] = _o(o, r) : e[n] = r;
|
|
4014
4014
|
}
|
|
4015
4015
|
return e;
|
|
4016
4016
|
}
|
|
4017
|
-
const
|
|
4017
|
+
const Eo = () => {
|
|
4018
4018
|
};
|
|
4019
|
-
function
|
|
4019
|
+
function ir(e, t, n, r = Eo) {
|
|
4020
4020
|
e.push(t);
|
|
4021
4021
|
const o = () => {
|
|
4022
4022
|
const s = e.indexOf(t);
|
|
4023
4023
|
s > -1 && (e.splice(s, 1), r());
|
|
4024
4024
|
};
|
|
4025
|
-
return !n &&
|
|
4025
|
+
return !n && Lo() && $o(o), o;
|
|
4026
4026
|
}
|
|
4027
|
-
function
|
|
4027
|
+
function ke(e, ...t) {
|
|
4028
4028
|
e.slice().forEach((n) => {
|
|
4029
4029
|
n(...t);
|
|
4030
4030
|
});
|
|
4031
4031
|
}
|
|
4032
|
-
const
|
|
4033
|
-
function
|
|
4032
|
+
const ku = (e) => e();
|
|
4033
|
+
function dn(e, t) {
|
|
4034
4034
|
e instanceof Map && t instanceof Map && t.forEach((n, r) => e.set(r, n)), e instanceof Set && t instanceof Set && t.forEach(e.add, e);
|
|
4035
4035
|
for (const n in t) {
|
|
4036
4036
|
if (!t.hasOwnProperty(n))
|
|
4037
4037
|
continue;
|
|
4038
4038
|
const r = t[n], o = e[n];
|
|
4039
|
-
Te(o) && Te(r) && e.hasOwnProperty(n) && !Se(r) && !
|
|
4039
|
+
Te(o) && Te(r) && e.hasOwnProperty(n) && !Se(r) && !mn(r) ? e[n] = dn(o, r) : e[n] = r;
|
|
4040
4040
|
}
|
|
4041
4041
|
return e;
|
|
4042
4042
|
}
|
|
4043
|
-
const
|
|
4043
|
+
const Lu = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
|
|
4044
4044
|
/* istanbul ignore next */
|
|
4045
4045
|
Symbol()
|
|
4046
4046
|
);
|
|
4047
|
-
function
|
|
4048
|
-
return !Te(e) || !e.hasOwnProperty(
|
|
4047
|
+
function $u(e) {
|
|
4048
|
+
return !Te(e) || !e.hasOwnProperty(Lu);
|
|
4049
4049
|
}
|
|
4050
4050
|
const { assign: Z } = Object;
|
|
4051
|
-
function
|
|
4051
|
+
function lr(e) {
|
|
4052
4052
|
return !!(Se(e) && e.effect);
|
|
4053
4053
|
}
|
|
4054
|
-
function
|
|
4054
|
+
function ur(e, t, n, r) {
|
|
4055
4055
|
const { state: o, actions: s, getters: a } = t, i = n.state.value[e];
|
|
4056
4056
|
let d;
|
|
4057
4057
|
function l() {
|
|
4058
4058
|
!i && (process.env.NODE_ENV === "production" || !r) && (n.state.value[e] = o ? o() : {});
|
|
4059
4059
|
const c = process.env.NODE_ENV !== "production" && r ? (
|
|
4060
4060
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
4061
|
-
|
|
4062
|
-
) :
|
|
4063
|
-
return Z(c, s, Object.keys(a || {}).reduce((u, f) => (process.env.NODE_ENV !== "production" && f in c && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`), u[f] =
|
|
4064
|
-
|
|
4061
|
+
Xt(T(o ? o() : {}).value)
|
|
4062
|
+
) : Xt(n.state.value[e]);
|
|
4063
|
+
return Z(c, s, Object.keys(a || {}).reduce((u, f) => (process.env.NODE_ENV !== "production" && f in c && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`), u[f] = Ge(x(() => {
|
|
4064
|
+
_t(n);
|
|
4065
4065
|
const v = n._s.get(e);
|
|
4066
4066
|
return a[f].call(v, v);
|
|
4067
4067
|
})), u), {}));
|
|
4068
4068
|
}
|
|
4069
|
-
return d =
|
|
4069
|
+
return d = fn(e, l, t, n, r, !0), d;
|
|
4070
4070
|
}
|
|
4071
|
-
function
|
|
4071
|
+
function fn(e, t, n = {}, r, o, s) {
|
|
4072
4072
|
let a;
|
|
4073
4073
|
const i = Z({ actions: {} }, n);
|
|
4074
4074
|
if (process.env.NODE_ENV !== "production" && !r._e.active)
|
|
@@ -4077,7 +4077,7 @@ function dn(e, t, n = {}, r, o, s) {
|
|
|
4077
4077
|
deep: !0
|
|
4078
4078
|
// flush: 'post',
|
|
4079
4079
|
};
|
|
4080
|
-
process.env.NODE_ENV !== "production" && !
|
|
4080
|
+
process.env.NODE_ENV !== "production" && !Qs && (d.onTrigger = (P) => {
|
|
4081
4081
|
l ? v = P : l == !1 && !b._hotUpdating && (Array.isArray(v) ? v.push(P) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
4082
4082
|
});
|
|
4083
4083
|
let l, c, u = [], f = [], v;
|
|
@@ -4088,19 +4088,19 @@ function dn(e, t, n = {}, r, o, s) {
|
|
|
4088
4088
|
function S(P) {
|
|
4089
4089
|
let w;
|
|
4090
4090
|
l = c = !1, process.env.NODE_ENV !== "production" && (v = []), typeof P == "function" ? (P(r.state.value[e]), w = {
|
|
4091
|
-
type:
|
|
4091
|
+
type: Ye.patchFunction,
|
|
4092
4092
|
storeId: e,
|
|
4093
4093
|
events: v
|
|
4094
|
-
}) : (
|
|
4095
|
-
type:
|
|
4094
|
+
}) : (dn(r.state.value[e], P), w = {
|
|
4095
|
+
type: Ye.patchObject,
|
|
4096
4096
|
payload: P,
|
|
4097
4097
|
storeId: e,
|
|
4098
4098
|
events: v
|
|
4099
4099
|
});
|
|
4100
4100
|
const D = y = Symbol();
|
|
4101
|
-
|
|
4101
|
+
Xe().then(() => {
|
|
4102
4102
|
y === D && (l = !0);
|
|
4103
|
-
}), c = !0,
|
|
4103
|
+
}), c = !0, ke(u, w, r.state.value[e]);
|
|
4104
4104
|
}
|
|
4105
4105
|
const N = s ? function() {
|
|
4106
4106
|
const { state: w } = n, D = w ? w() : {};
|
|
@@ -4111,38 +4111,38 @@ function dn(e, t, n = {}, r, o, s) {
|
|
|
4111
4111
|
/* istanbul ignore next */
|
|
4112
4112
|
process.env.NODE_ENV !== "production" ? () => {
|
|
4113
4113
|
throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
|
|
4114
|
-
} :
|
|
4114
|
+
} : Eo
|
|
4115
4115
|
);
|
|
4116
4116
|
function C() {
|
|
4117
4117
|
a.stop(), u = [], f = [], r._s.delete(e);
|
|
4118
4118
|
}
|
|
4119
4119
|
function A(P, w) {
|
|
4120
4120
|
return function() {
|
|
4121
|
-
|
|
4121
|
+
_t(r);
|
|
4122
4122
|
const D = Array.from(arguments), I = [], ge = [];
|
|
4123
|
-
function
|
|
4123
|
+
function Rt(R) {
|
|
4124
4124
|
I.push(R);
|
|
4125
4125
|
}
|
|
4126
|
-
function
|
|
4126
|
+
function Dt(R) {
|
|
4127
4127
|
ge.push(R);
|
|
4128
4128
|
}
|
|
4129
|
-
|
|
4129
|
+
ke(f, {
|
|
4130
4130
|
args: D,
|
|
4131
4131
|
name: P,
|
|
4132
4132
|
store: b,
|
|
4133
|
-
after:
|
|
4134
|
-
onError:
|
|
4133
|
+
after: Rt,
|
|
4134
|
+
onError: Dt
|
|
4135
4135
|
});
|
|
4136
4136
|
let F;
|
|
4137
4137
|
try {
|
|
4138
4138
|
F = w.apply(this && this.$id === e ? this : b, D);
|
|
4139
4139
|
} catch (R) {
|
|
4140
|
-
throw
|
|
4140
|
+
throw ke(ge, R), R;
|
|
4141
4141
|
}
|
|
4142
|
-
return F instanceof Promise ? F.then((R) => (
|
|
4142
|
+
return F instanceof Promise ? F.then((R) => (ke(I, R), R)).catch((R) => (ke(ge, R), Promise.reject(R))) : (ke(I, F), F);
|
|
4143
4143
|
};
|
|
4144
4144
|
}
|
|
4145
|
-
const E = /* @__PURE__ */
|
|
4145
|
+
const E = /* @__PURE__ */ Ge({
|
|
4146
4146
|
actions: {},
|
|
4147
4147
|
getters: {},
|
|
4148
4148
|
state: [],
|
|
@@ -4151,24 +4151,24 @@ function dn(e, t, n = {}, r, o, s) {
|
|
|
4151
4151
|
_p: r,
|
|
4152
4152
|
// _s: scope,
|
|
4153
4153
|
$id: e,
|
|
4154
|
-
$onAction:
|
|
4154
|
+
$onAction: ir.bind(null, f),
|
|
4155
4155
|
$patch: S,
|
|
4156
4156
|
$reset: N,
|
|
4157
4157
|
$subscribe(P, w = {}) {
|
|
4158
|
-
const D =
|
|
4158
|
+
const D = ir(u, P, w.detached, () => I()), I = a.run(() => tt(() => r.state.value[e], (ge) => {
|
|
4159
4159
|
(w.flush === "sync" ? c : l) && P({
|
|
4160
4160
|
storeId: e,
|
|
4161
|
-
type:
|
|
4161
|
+
type: Ye.direct,
|
|
4162
4162
|
events: v
|
|
4163
4163
|
}, ge);
|
|
4164
4164
|
}, Z({}, d, w)));
|
|
4165
4165
|
return D;
|
|
4166
4166
|
},
|
|
4167
4167
|
$dispose: C
|
|
4168
|
-
}, b =
|
|
4168
|
+
}, b = hn(process.env.NODE_ENV !== "production" || Yt ? Z(
|
|
4169
4169
|
{
|
|
4170
4170
|
_hmrPayload: E,
|
|
4171
|
-
_customProperties:
|
|
4171
|
+
_customProperties: Ge(/* @__PURE__ */ new Set())
|
|
4172
4172
|
// devtools custom properties
|
|
4173
4173
|
},
|
|
4174
4174
|
O
|
|
@@ -4176,22 +4176,22 @@ function dn(e, t, n = {}, r, o, s) {
|
|
|
4176
4176
|
// setupStore
|
|
4177
4177
|
) : O);
|
|
4178
4178
|
r._s.set(e, b);
|
|
4179
|
-
const V = r._a && r._a.runWithContext ||
|
|
4179
|
+
const V = r._a && r._a.runWithContext || ku, W = r._e.run(() => (a = Ao(), V(() => a.run(t))));
|
|
4180
4180
|
for (const P in W) {
|
|
4181
4181
|
const w = W[P];
|
|
4182
|
-
if (Se(w) && !
|
|
4183
|
-
process.env.NODE_ENV !== "production" && o ?
|
|
4182
|
+
if (Se(w) && !lr(w) || mn(w))
|
|
4183
|
+
process.env.NODE_ENV !== "production" && o ? ct(p.value, P, Bt(W, P)) : s || (m && $u(w) && (Se(w) ? w.value = m[P] : dn(w, m[P])), r.state.value[e][P] = w), process.env.NODE_ENV !== "production" && E.state.push(P);
|
|
4184
4184
|
else if (typeof w == "function") {
|
|
4185
4185
|
const D = process.env.NODE_ENV !== "production" && o ? w : A(P, w);
|
|
4186
4186
|
W[P] = D, process.env.NODE_ENV !== "production" && (E.actions[P] = w), i.actions[P] = w;
|
|
4187
4187
|
} else
|
|
4188
|
-
process.env.NODE_ENV !== "production" &&
|
|
4188
|
+
process.env.NODE_ENV !== "production" && lr(w) && (E.getters[P] = s ? (
|
|
4189
4189
|
// @ts-expect-error
|
|
4190
4190
|
n.getters[P]
|
|
4191
|
-
) : w,
|
|
4192
|
-
(W._getters =
|
|
4191
|
+
) : w, kn && (W._getters || // @ts-expect-error: same
|
|
4192
|
+
(W._getters = Ge([]))).push(P));
|
|
4193
4193
|
}
|
|
4194
|
-
if (Z(b, W), Z(
|
|
4194
|
+
if (Z(b, W), Z(ko(b), W), Object.defineProperty(b, "$state", {
|
|
4195
4195
|
get: () => process.env.NODE_ENV !== "production" && o ? p.value : r.state.value[e],
|
|
4196
4196
|
set: (P) => {
|
|
4197
4197
|
if (process.env.NODE_ENV !== "production" && o)
|
|
@@ -4200,35 +4200,35 @@ function dn(e, t, n = {}, r, o, s) {
|
|
|
4200
4200
|
Z(w, P);
|
|
4201
4201
|
});
|
|
4202
4202
|
}
|
|
4203
|
-
}), process.env.NODE_ENV !== "production" && (b._hotUpdate =
|
|
4203
|
+
}), process.env.NODE_ENV !== "production" && (b._hotUpdate = Ge((P) => {
|
|
4204
4204
|
b._hotUpdating = !0, P._hmrPayload.state.forEach((w) => {
|
|
4205
4205
|
if (w in b.$state) {
|
|
4206
4206
|
const D = P.$state[w], I = b.$state[w];
|
|
4207
|
-
typeof D == "object" && Te(D) && Te(I) ?
|
|
4207
|
+
typeof D == "object" && Te(D) && Te(I) ? _o(D, I) : P.$state[w] = I;
|
|
4208
4208
|
}
|
|
4209
|
-
|
|
4209
|
+
ct(b, w, Bt(P.$state, w));
|
|
4210
4210
|
}), Object.keys(b.$state).forEach((w) => {
|
|
4211
|
-
w in P.$state ||
|
|
4212
|
-
}), l = !1, c = !1, r.state.value[e] =
|
|
4211
|
+
w in P.$state || Gt(b, w);
|
|
4212
|
+
}), l = !1, c = !1, r.state.value[e] = Bt(P._hmrPayload, "hotState"), c = !0, Xe().then(() => {
|
|
4213
4213
|
l = !0;
|
|
4214
4214
|
});
|
|
4215
4215
|
for (const w in P._hmrPayload.actions) {
|
|
4216
4216
|
const D = P[w];
|
|
4217
|
-
|
|
4217
|
+
ct(b, w, A(w, D));
|
|
4218
4218
|
}
|
|
4219
4219
|
for (const w in P._hmrPayload.getters) {
|
|
4220
4220
|
const D = P._hmrPayload.getters[w], I = s ? (
|
|
4221
4221
|
// special handling of options api
|
|
4222
|
-
x(() => (
|
|
4222
|
+
x(() => (_t(r), D.call(b, b)))
|
|
4223
4223
|
) : D;
|
|
4224
|
-
|
|
4224
|
+
ct(b, w, I);
|
|
4225
4225
|
}
|
|
4226
4226
|
Object.keys(b._hmrPayload.getters).forEach((w) => {
|
|
4227
|
-
w in P._hmrPayload.getters ||
|
|
4227
|
+
w in P._hmrPayload.getters || Gt(b, w);
|
|
4228
4228
|
}), Object.keys(b._hmrPayload.actions).forEach((w) => {
|
|
4229
|
-
w in P._hmrPayload.actions ||
|
|
4229
|
+
w in P._hmrPayload.actions || Gt(b, w);
|
|
4230
4230
|
}), b._hmrPayload = P._hmrPayload, b._getters = P._getters, b._hotUpdating = !1;
|
|
4231
|
-
})),
|
|
4231
|
+
})), Yt) {
|
|
4232
4232
|
const P = {
|
|
4233
4233
|
writable: !0,
|
|
4234
4234
|
configurable: !0,
|
|
@@ -4240,7 +4240,7 @@ function dn(e, t, n = {}, r, o, s) {
|
|
|
4240
4240
|
});
|
|
4241
4241
|
}
|
|
4242
4242
|
return r._p.forEach((P) => {
|
|
4243
|
-
if (
|
|
4243
|
+
if (Yt) {
|
|
4244
4244
|
const w = a.run(() => P({
|
|
4245
4245
|
store: b,
|
|
4246
4246
|
app: r._a,
|
|
@@ -4259,7 +4259,7 @@ function dn(e, t, n = {}, r, o, s) {
|
|
|
4259
4259
|
state: () => new MyClass()
|
|
4260
4260
|
Found in store "${b.$id}".`), m && s && n.hydrate && n.hydrate(b.$state, m), l = !0, c = !0, b;
|
|
4261
4261
|
}
|
|
4262
|
-
function
|
|
4262
|
+
function Fu(e, t, n) {
|
|
4263
4263
|
let r, o;
|
|
4264
4264
|
const s = typeof t == "function";
|
|
4265
4265
|
if (typeof e == "string")
|
|
@@ -4267,22 +4267,22 @@ function $u(e, t, n) {
|
|
|
4267
4267
|
else if (o = e, r = e.id, process.env.NODE_ENV !== "production" && typeof r != "string")
|
|
4268
4268
|
throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');
|
|
4269
4269
|
function a(i, d) {
|
|
4270
|
-
const l =
|
|
4270
|
+
const l = No();
|
|
4271
4271
|
if (i = // in test mode, ignore the argument provided as we can always retrieve a
|
|
4272
4272
|
// pinia instance with getActivePinia()
|
|
4273
|
-
(process.env.NODE_ENV === "test" &&
|
|
4273
|
+
(process.env.NODE_ENV === "test" && Je && Je._testing ? null : i) || (l ? H(Au, null) : null), i && _t(i), process.env.NODE_ENV !== "production" && !Je)
|
|
4274
4274
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Did you forget to install pinia?
|
|
4275
4275
|
const pinia = createPinia()
|
|
4276
4276
|
app.use(pinia)
|
|
4277
4277
|
This will fail in production.`);
|
|
4278
|
-
i =
|
|
4278
|
+
i = Je, i._s.has(r) || (s ? fn(r, t, o, i) : ur(r, o, i), process.env.NODE_ENV !== "production" && (a._pinia = i));
|
|
4279
4279
|
const c = i._s.get(r);
|
|
4280
4280
|
if (process.env.NODE_ENV !== "production" && d) {
|
|
4281
|
-
const u = "__hot:" + r, f = s ?
|
|
4281
|
+
const u = "__hot:" + r, f = s ? fn(u, t, o, i, !0) : ur(u, Z({}, o), i, !0);
|
|
4282
4282
|
d._hotUpdate(f), delete i.state.value[u], i._s.delete(u);
|
|
4283
4283
|
}
|
|
4284
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
4285
|
-
const u =
|
|
4284
|
+
if (process.env.NODE_ENV !== "production" && kn) {
|
|
4285
|
+
const u = pn();
|
|
4286
4286
|
if (u && u.proxy && // avoid adding stores that are just built for hot module replacement
|
|
4287
4287
|
!d) {
|
|
4288
4288
|
const f = u.proxy, v = "_pStores" in f ? f._pStores : f._pStores = {};
|
|
@@ -4293,14 +4293,14 @@ This will fail in production.`);
|
|
|
4293
4293
|
}
|
|
4294
4294
|
return a.$id = r, a;
|
|
4295
4295
|
}
|
|
4296
|
-
function
|
|
4296
|
+
function Ru(e, t) {
|
|
4297
4297
|
return Array.isArray(t) ? t.reduce((n, r) => (n[r] = function(...o) {
|
|
4298
4298
|
return e(this.$pinia)[r](...o);
|
|
4299
4299
|
}, n), {}) : Object.keys(t).reduce((n, r) => (n[r] = function(...o) {
|
|
4300
4300
|
return e(this.$pinia)[t[r]](...o);
|
|
4301
4301
|
}, n), {});
|
|
4302
4302
|
}
|
|
4303
|
-
const
|
|
4303
|
+
const Du = Fu("user", {
|
|
4304
4304
|
state: () => ({
|
|
4305
4305
|
user: null,
|
|
4306
4306
|
isShowLogin: !1,
|
|
@@ -4310,7 +4310,7 @@ const Ru = $u("user", {
|
|
|
4310
4310
|
actions: {
|
|
4311
4311
|
getUser() {
|
|
4312
4312
|
return window.getUserStatusPromise = new Promise((e, t) => {
|
|
4313
|
-
|
|
4313
|
+
nr().then(({ profile: n, subscription: r, drive: o }) => {
|
|
4314
4314
|
if (n) {
|
|
4315
4315
|
let { free_cnt: s, is_subscribed: a, detail: i } = r;
|
|
4316
4316
|
s || (s = 0), i && i.ends_at && (a = new Date(i.ends_at) > /* @__PURE__ */ new Date());
|
|
@@ -4333,7 +4333,7 @@ const Ru = $u("user", {
|
|
|
4333
4333
|
});
|
|
4334
4334
|
let r = 1;
|
|
4335
4335
|
const o = () => {
|
|
4336
|
-
|
|
4336
|
+
nr().then(({ profile: s, subscription: a, drive: i }) => {
|
|
4337
4337
|
let { free_cnt: d, is_subscribed: l, detail: c } = a;
|
|
4338
4338
|
if (d || (d = 0), c && c.ends_at && (l = new Date(c.ends_at) > /* @__PURE__ */ new Date()), l || t == "purchase" && d) {
|
|
4339
4339
|
const u = { ...s, free_cnt: d, is_subscribed: l, subscribedType: l && c.name || "", detail: c, drive: i };
|
|
@@ -4343,11 +4343,11 @@ const Ru = $u("user", {
|
|
|
4343
4343
|
// token: profile.token,
|
|
4344
4344
|
// expire_at: profile.expire_at
|
|
4345
4345
|
};
|
|
4346
|
-
|
|
4346
|
+
Jr({ message: f, user: u }, "subscribed:success"), window.opener.postMessage(f, process.env.NODE_ENV == "development" ? "http://localhost:8080" : "*");
|
|
4347
4347
|
}
|
|
4348
4348
|
n.close(), this.isShowToast = !0, this.toastContent = t == "purchase" ? "purchased credits" : "upgraded to a member", setTimeout(() => {
|
|
4349
4349
|
this.isShowToast = !1;
|
|
4350
|
-
const f =
|
|
4350
|
+
const f = Kr();
|
|
4351
4351
|
(window.opener && !e || f.product && f.product == "image_translator" || f.close) && window.close();
|
|
4352
4352
|
}, 3e3);
|
|
4353
4353
|
} else
|
|
@@ -4365,25 +4365,25 @@ const Ru = $u("user", {
|
|
|
4365
4365
|
}
|
|
4366
4366
|
}
|
|
4367
4367
|
});
|
|
4368
|
-
let
|
|
4369
|
-
console.log("childPath3",
|
|
4370
|
-
const
|
|
4368
|
+
let So = kt();
|
|
4369
|
+
console.log("childPath3", So);
|
|
4370
|
+
const ju = {
|
|
4371
4371
|
props: ["user", "from"],
|
|
4372
4372
|
data() {
|
|
4373
4373
|
return {
|
|
4374
|
-
path:
|
|
4374
|
+
path: So
|
|
4375
4375
|
};
|
|
4376
4376
|
},
|
|
4377
4377
|
methods: {
|
|
4378
|
-
...
|
|
4378
|
+
...Ru(Du, ["logout"]),
|
|
4379
4379
|
handlePay() {
|
|
4380
4380
|
console.log("user", this.user), this.user.is_subscribed || this.$emit("subscribe");
|
|
4381
4381
|
}
|
|
4382
4382
|
}
|
|
4383
|
-
},
|
|
4383
|
+
}, lt = (e) => (nt("data-v-8580ad75"), e = e(), rt(), e), Iu = { class: "user-center-content" }, Bu = { class: "user-info flew-row-v-center" }, Mu = ["src"], Uu = {
|
|
4384
4384
|
class: "user-name",
|
|
4385
4385
|
style: { color: "#000" }
|
|
4386
|
-
},
|
|
4386
|
+
}, Hu = { class: "user-email" }, Vu = { class: "flew-row-v-center" }, zu = {
|
|
4387
4387
|
key: 0,
|
|
4388
4388
|
t: "1637834706702",
|
|
4389
4389
|
class: "user-item-icon",
|
|
@@ -4393,7 +4393,7 @@ const Du = {
|
|
|
4393
4393
|
"p-id": "10206",
|
|
4394
4394
|
width: "32",
|
|
4395
4395
|
height: "32"
|
|
4396
|
-
},
|
|
4396
|
+
}, qu = /* @__PURE__ */ lt(() => /* @__PURE__ */ g(
|
|
4397
4397
|
"path",
|
|
4398
4398
|
{
|
|
4399
4399
|
d: "M319.786667 74.666667h384.490666A85.333333 85.333333 0 0 1 772.266667 108.458667l207.594666 273.834666a85.333333 85.333333 0 0 1-6.592 110.805334L573.866667 907.136a85.333333 85.333333 0 0 1-122.688 0.149333L50.88 494.144a85.333333 85.333333 0 0 1-6.805333-110.826667L251.733333 108.544A85.333333 85.333333 0 0 1 319.786667 74.666667z",
|
|
@@ -4405,7 +4405,7 @@ const Du = {
|
|
|
4405
4405
|
null,
|
|
4406
4406
|
-1
|
|
4407
4407
|
/* HOISTED */
|
|
4408
|
-
)),
|
|
4408
|
+
)), Gu = /* @__PURE__ */ lt(() => /* @__PURE__ */ g(
|
|
4409
4409
|
"path",
|
|
4410
4410
|
{
|
|
4411
4411
|
d: "M685.482667 350.72a32 32 0 0 1 47.445333 42.816l-2.197333 2.432-196.096 196.096a32 32 0 0 1-42.837334 2.197333l-2.432-2.197333-196.096-196.096a32 32 0 0 1 42.816-47.466667l2.432 2.197334L512 524.181333l173.482667-173.482666z",
|
|
@@ -4415,10 +4415,10 @@ const Du = {
|
|
|
4415
4415
|
null,
|
|
4416
4416
|
-1
|
|
4417
4417
|
/* HOISTED */
|
|
4418
|
-
)),
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
],
|
|
4418
|
+
)), Wu = [
|
|
4419
|
+
qu,
|
|
4420
|
+
Gu
|
|
4421
|
+
], Ju = {
|
|
4422
4422
|
key: 1,
|
|
4423
4423
|
t: "1637055277290",
|
|
4424
4424
|
class: "user-item-icon",
|
|
@@ -4428,7 +4428,7 @@ const Du = {
|
|
|
4428
4428
|
"p-id": "8080",
|
|
4429
4429
|
width: "32",
|
|
4430
4430
|
height: "32"
|
|
4431
|
-
},
|
|
4431
|
+
}, Ku = /* @__PURE__ */ lt(() => /* @__PURE__ */ g(
|
|
4432
4432
|
"path",
|
|
4433
4433
|
{
|
|
4434
4434
|
d: "M957.942003 407.418107c4.937452-6.197142 4.954849-15.143908-0.297782-21.406542L718.393185 100.883665c-1.357927-1.623987-2.981914-2.916423-4.738931-3.89368-2.765997-5.600555-8.532327-9.42772-15.193027-9.42772L326.247924 87.562265c-6.329149 0-11.978822 3.612271-14.877849 8.930393-2.15406 0.994654-4.142343 2.469238-5.733585 4.391007L66.386478 386.011564c-3.048429 3.628644-4.340865 8.16803-3.90903 12.541641-0.464581 4.391007 0.794086 8.964162 3.859911 12.625552L501.444085 929.709497c5.997598 7.175423 16.634866 8.037047 23.825638 2.02103 3.13234-2.650363 5.086855-6.145977 5.799076-9.841136 0.38067-0.379647 0.762363-0.777713 1.110287-1.209548L953.899944 418.089144C956.533934 414.956803 957.859116 411.17978 957.942003 407.418107zM520.830621 727.291344 754.099409 449.304076c8.963139-10.686387 25.00244-12.06171 35.754319-3.032056 10.852162 9.096169 12.211113 25.035186 3.230578 35.755342L542.071388 781.172509c-5.418406 6.445806-13.387915 9.509585-21.240767 8.930393-7.837502 0.579191-15.807011-2.484587-21.224394-8.930393L248.57489 482.027361c-8.979512-10.720156-7.605212-26.659173 3.247974-35.755342 10.769274-9.029654 26.774807-7.65433 35.754319 3.032056L520.830621 727.291344z",
|
|
@@ -4438,20 +4438,20 @@ const Du = {
|
|
|
4438
4438
|
null,
|
|
4439
4439
|
-1
|
|
4440
4440
|
/* HOISTED */
|
|
4441
|
-
)),
|
|
4442
|
-
|
|
4443
|
-
],
|
|
4441
|
+
)), Yu = [
|
|
4442
|
+
Ku
|
|
4443
|
+
], Xu = {
|
|
4444
4444
|
key: 0,
|
|
4445
4445
|
class: "user-upgrade"
|
|
4446
|
-
},
|
|
4446
|
+
}, Zu = /* @__PURE__ */ lt(() => /* @__PURE__ */ g(
|
|
4447
4447
|
"span",
|
|
4448
4448
|
null,
|
|
4449
4449
|
"Upgrade",
|
|
4450
4450
|
-1
|
|
4451
4451
|
/* HOISTED */
|
|
4452
|
-
)),
|
|
4453
|
-
|
|
4454
|
-
],
|
|
4452
|
+
)), Qu = [
|
|
4453
|
+
Zu
|
|
4454
|
+
], ec = ["href"], tc = /* @__PURE__ */ lt(() => /* @__PURE__ */ g(
|
|
4455
4455
|
"div",
|
|
4456
4456
|
{ class: "user-item user-item-active flew-row-v-center" },
|
|
4457
4457
|
[
|
|
@@ -4480,19 +4480,19 @@ const Du = {
|
|
|
4480
4480
|
],
|
|
4481
4481
|
-1
|
|
4482
4482
|
/* HOISTED */
|
|
4483
|
-
)),
|
|
4484
|
-
|
|
4483
|
+
)), nc = [
|
|
4484
|
+
tc
|
|
4485
4485
|
];
|
|
4486
|
-
function
|
|
4487
|
-
return k(), $("div",
|
|
4488
|
-
g("div",
|
|
4486
|
+
function rc(e, t, n, r, o, s) {
|
|
4487
|
+
return k(), $("div", Iu, [
|
|
4488
|
+
g("div", Bu, [
|
|
4489
4489
|
g("img", {
|
|
4490
4490
|
class: "user-avatar",
|
|
4491
4491
|
src: n.user.avatar || "https://statics.imgkits.com/images/default_user_avatar_black.png",
|
|
4492
4492
|
alt: "user avatar"
|
|
4493
|
-
}, null, 8,
|
|
4493
|
+
}, null, 8, Mu),
|
|
4494
4494
|
g("div", null, [
|
|
4495
|
-
g("div",
|
|
4495
|
+
g("div", Uu, [
|
|
4496
4496
|
g(
|
|
4497
4497
|
"span",
|
|
4498
4498
|
null,
|
|
@@ -4501,7 +4501,7 @@ function nc(e, t, n, r, o, s) {
|
|
|
4501
4501
|
/* TEXT */
|
|
4502
4502
|
)
|
|
4503
4503
|
]),
|
|
4504
|
-
g("div",
|
|
4504
|
+
g("div", Hu, [
|
|
4505
4505
|
g(
|
|
4506
4506
|
"span",
|
|
4507
4507
|
null,
|
|
@@ -4523,8 +4523,8 @@ function nc(e, t, n, r, o, s) {
|
|
|
4523
4523
|
class: "user-item flew-row-v-center space-between",
|
|
4524
4524
|
onClick: t[0] || (t[0] = (...a) => s.handlePay && s.handlePay(...a))
|
|
4525
4525
|
}, [
|
|
4526
|
-
g("div",
|
|
4527
|
-
n.user.is_subscribed ? (k(), $("svg",
|
|
4526
|
+
g("div", Vu, [
|
|
4527
|
+
n.user.is_subscribed ? (k(), $("svg", zu, Wu)) : (k(), $("svg", Ju, Yu)),
|
|
4528
4528
|
g(
|
|
4529
4529
|
"span",
|
|
4530
4530
|
null,
|
|
@@ -4533,19 +4533,19 @@ function nc(e, t, n, r, o, s) {
|
|
|
4533
4533
|
/* TEXT */
|
|
4534
4534
|
)
|
|
4535
4535
|
]),
|
|
4536
|
-
!n.user.is_subscribed && n.from == "addon" ? (k(), $("div",
|
|
4536
|
+
!n.user.is_subscribed && n.from == "addon" ? (k(), $("div", Xu, Qu)) : B("v-if", !0)
|
|
4537
4537
|
]),
|
|
4538
4538
|
n.from != "addon" ? (k(), $("a", {
|
|
4539
4539
|
key: 0,
|
|
4540
4540
|
rel: "nofollow",
|
|
4541
4541
|
href: o.path + "/user/logout"
|
|
4542
|
-
},
|
|
4542
|
+
}, nc, 8, ec)) : B("v-if", !0)
|
|
4543
4543
|
]);
|
|
4544
4544
|
}
|
|
4545
|
-
const
|
|
4546
|
-
const
|
|
4545
|
+
const cr = /* @__PURE__ */ it(ju, [["render", rc], ["__scopeId", "data-v-8580ad75"], ["__file", "/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/PersonalCenter.vue"]]);
|
|
4546
|
+
const oc = {
|
|
4547
4547
|
props: ["content", "top"]
|
|
4548
|
-
},
|
|
4548
|
+
}, sc = (e) => (nt("data-v-7b6def48"), e = e(), rt(), e), ac = /* @__PURE__ */ sc(() => /* @__PURE__ */ g(
|
|
4549
4549
|
"svg",
|
|
4550
4550
|
{
|
|
4551
4551
|
t: "1637907583780",
|
|
@@ -4566,15 +4566,15 @@ const rc = {
|
|
|
4566
4566
|
-1
|
|
4567
4567
|
/* HOISTED */
|
|
4568
4568
|
));
|
|
4569
|
-
function
|
|
4569
|
+
function ic(e, t, n, r, o, s) {
|
|
4570
4570
|
return k(), $(
|
|
4571
4571
|
"div",
|
|
4572
4572
|
{
|
|
4573
4573
|
class: "toast-wrapper",
|
|
4574
|
-
style:
|
|
4574
|
+
style: Fo({ top: n.top || "60PX" })
|
|
4575
4575
|
},
|
|
4576
4576
|
[
|
|
4577
|
-
|
|
4577
|
+
ac,
|
|
4578
4578
|
g(
|
|
4579
4579
|
"span",
|
|
4580
4580
|
null,
|
|
@@ -4587,8 +4587,8 @@ function ac(e, t, n, r, o, s) {
|
|
|
4587
4587
|
/* STYLE */
|
|
4588
4588
|
);
|
|
4589
4589
|
}
|
|
4590
|
-
const
|
|
4591
|
-
function
|
|
4590
|
+
const lc = /* @__PURE__ */ it(oc, [["render", ic], ["__scopeId", "data-v-7b6def48"], ["__file", "/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/Toast.vue"]]);
|
|
4591
|
+
function uc(e, t) {
|
|
4592
4592
|
return k(), $("svg", {
|
|
4593
4593
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4594
4594
|
viewBox: "0 0 20 20",
|
|
@@ -4602,69 +4602,71 @@ function lc(e, t) {
|
|
|
4602
4602
|
})
|
|
4603
4603
|
]);
|
|
4604
4604
|
}
|
|
4605
|
-
const
|
|
4605
|
+
const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
4606
4606
|
class: "flex items-center justify-between py-6 lg:px-0 px-6",
|
|
4607
4607
|
"aria-label": "Global"
|
|
4608
|
-
},
|
|
4608
|
+
}, dc = { class: "flex lg:flex-1" }, fc = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g(
|
|
4609
4609
|
"span",
|
|
4610
4610
|
{ class: "hidden items-center gap-x-1 text-sm font-semibold h-7 leading-7 text-gray-900" },
|
|
4611
4611
|
null,
|
|
4612
4612
|
-1
|
|
4613
4613
|
/* HOISTED */
|
|
4614
|
-
),
|
|
4614
|
+
)), pc = ["href"], hc = ["src", "alt"], mc = { class: "pl-2 text-xl" }, vc = { class: "flex lg:hidden" }, gc = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g(
|
|
4615
4615
|
"span",
|
|
4616
4616
|
{ class: "sr-only" },
|
|
4617
4617
|
"Open main menu",
|
|
4618
4618
|
-1
|
|
4619
4619
|
/* HOISTED */
|
|
4620
|
-
),
|
|
4621
|
-
"
|
|
4622
|
-
|
|
4623
|
-
|
|
4620
|
+
)), yc = { class: "hidden lg:flex lg:gap-x-12" }, bc = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g(
|
|
4621
|
+
"div",
|
|
4622
|
+
{ class: "inline-flex flex_item_center items-center" },
|
|
4623
|
+
[
|
|
4624
|
+
/* @__PURE__ */ g("span", null, "Apps")
|
|
4625
|
+
],
|
|
4624
4626
|
-1
|
|
4625
4627
|
/* HOISTED */
|
|
4626
|
-
),
|
|
4628
|
+
)), wc = { class: "w-56 shrink rounded-xl bg-white p-4 text-sm font-semibold leading-6 text-gray-900 shadow-lg ring-1 ring-gray-900/5" }, _c = ["href"], Ec = ["href", "target"], Sc = {
|
|
4627
4629
|
key: 0,
|
|
4628
4630
|
class: "hidden lg:flex lg:flex-1 lg:justify-end"
|
|
4629
|
-
},
|
|
4631
|
+
}, xc = {
|
|
4630
4632
|
key: 1,
|
|
4631
4633
|
class: "hidden lg:flex lg:flex-1 lg:justify-end"
|
|
4632
|
-
},
|
|
4634
|
+
}, Pc = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g(
|
|
4633
4635
|
"span",
|
|
4634
4636
|
{ "aria-hidden": "true" },
|
|
4635
4637
|
null,
|
|
4636
4638
|
-1
|
|
4637
4639
|
/* HOISTED */
|
|
4638
|
-
),
|
|
4640
|
+
)), Oc = {
|
|
4639
4641
|
key: 2,
|
|
4640
4642
|
class: "hidden lg:flex lg:flex-1 lg:justify-end text-sm font-semibold leading-6 text-gray-900 items-center"
|
|
4641
|
-
},
|
|
4643
|
+
}, Tc = { class: "pr-4" }, Cc = ["src"], Nc = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g(
|
|
4642
4644
|
"div",
|
|
4643
4645
|
{ class: "open-icon" },
|
|
4644
4646
|
null,
|
|
4645
4647
|
-1
|
|
4646
4648
|
/* HOISTED */
|
|
4647
|
-
),
|
|
4649
|
+
)), Ac = { class: "user-center-dialog shadow-xl" }, kc = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g(
|
|
4648
4650
|
"div",
|
|
4649
4651
|
{ class: "fixed inset-0 z-50" },
|
|
4650
4652
|
null,
|
|
4651
4653
|
-1
|
|
4652
4654
|
/* HOISTED */
|
|
4653
|
-
),
|
|
4655
|
+
)), Lc = { class: "flex items-center justify-between" }, $c = ["href"], Fc = { class: "sr-only" }, Rc = ["src", "alt"], Dc = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g(
|
|
4654
4656
|
"span",
|
|
4655
4657
|
{ class: "sr-only" },
|
|
4656
4658
|
"Close menu",
|
|
4657
4659
|
-1
|
|
4658
4660
|
/* HOISTED */
|
|
4659
|
-
),
|
|
4661
|
+
)), jc = { class: "mt-6 flow-root" }, Ic = { class: "-my-6 divide-y divide-gray-500/10" }, Bc = { class: "space-y-2 py-6" }, Mc = {
|
|
4660
4662
|
key: 0,
|
|
4661
4663
|
target: "_blank",
|
|
4662
4664
|
href: "https://www.livepolls.app/apps",
|
|
4663
|
-
class: "-mx-3
|
|
4664
|
-
},
|
|
4665
|
+
class: "-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"
|
|
4666
|
+
}, Uc = ["href", "target"], Hc = {
|
|
4665
4667
|
key: 0,
|
|
4666
4668
|
class: "py-6"
|
|
4667
|
-
},
|
|
4669
|
+
}, Vc = {
|
|
4668
4670
|
__name: "Header",
|
|
4669
4671
|
props: {
|
|
4670
4672
|
isShenHe: {
|
|
@@ -4693,7 +4695,7 @@ const uc = {
|
|
|
4693
4695
|
name: "Video Translator"
|
|
4694
4696
|
};
|
|
4695
4697
|
typeof app_config == "object" && app_config && Object.keys(app_config).length > 0 && (r = app_config), console.log("appInfo", r);
|
|
4696
|
-
const o = T(r), s =
|
|
4698
|
+
const o = T(r), s = kt(), a = [
|
|
4697
4699
|
{ name: "Live Poll Maker for Slides", href: "https://workspace.google.com/marketplace/app/live_polls_maker/964324417500" },
|
|
4698
4700
|
{ name: "Geocode for Sheets", href: "https://workspace.google.com/marketplace/app/geocode_for_sheets/1083994590944" },
|
|
4699
4701
|
{ name: "Slides Translator", href: "https://workspace.google.com/marketplace/app/translate_slides_slides_translator/552662411825" },
|
|
@@ -4720,7 +4722,7 @@ const uc = {
|
|
|
4720
4722
|
});
|
|
4721
4723
|
async function v() {
|
|
4722
4724
|
m();
|
|
4723
|
-
const A =
|
|
4725
|
+
const A = We.service({
|
|
4724
4726
|
text: "logining...",
|
|
4725
4727
|
background: "rgba(0, 0, 0, 0.7)"
|
|
4726
4728
|
});
|
|
@@ -4750,7 +4752,7 @@ const uc = {
|
|
|
4750
4752
|
}), google.accounts.id.prompt());
|
|
4751
4753
|
}
|
|
4752
4754
|
function C(A) {
|
|
4753
|
-
!A || !A.credential ||
|
|
4755
|
+
!A || !A.credential || Yr(A.credential).then(
|
|
4754
4756
|
(E) => {
|
|
4755
4757
|
console.log("fetch_success", E), n.userStore ? n.userStore.getUser() : location.href = location.pathname;
|
|
4756
4758
|
},
|
|
@@ -4766,12 +4768,12 @@ const uc = {
|
|
|
4766
4768
|
g(
|
|
4767
4769
|
"header",
|
|
4768
4770
|
{
|
|
4769
|
-
class:
|
|
4771
|
+
class: Ro(["absolute inset-x-0 px-1 top-0 z-30 mx-auto", [e.className]])
|
|
4770
4772
|
},
|
|
4771
4773
|
[
|
|
4772
|
-
g("nav",
|
|
4773
|
-
g("div",
|
|
4774
|
-
|
|
4774
|
+
g("nav", cc, [
|
|
4775
|
+
g("div", dc, [
|
|
4776
|
+
fc,
|
|
4775
4777
|
g("a", {
|
|
4776
4778
|
href: d.value,
|
|
4777
4779
|
class: "-m-1.5 p-1.5 flex items-center"
|
|
@@ -4780,39 +4782,39 @@ const uc = {
|
|
|
4780
4782
|
class: "h-8 w-auto",
|
|
4781
4783
|
src: o.value.logo,
|
|
4782
4784
|
alt: o.value.name
|
|
4783
|
-
}, null, 8,
|
|
4785
|
+
}, null, 8, hc),
|
|
4784
4786
|
g(
|
|
4785
4787
|
"span",
|
|
4786
|
-
|
|
4788
|
+
mc,
|
|
4787
4789
|
J(o.value.name),
|
|
4788
4790
|
1
|
|
4789
4791
|
/* TEXT */
|
|
4790
4792
|
)
|
|
4791
|
-
], 8,
|
|
4793
|
+
], 8, pc)
|
|
4792
4794
|
]),
|
|
4793
|
-
g("div",
|
|
4795
|
+
g("div", vc, [
|
|
4794
4796
|
g("button", {
|
|
4795
4797
|
type: "button",
|
|
4796
4798
|
class: "-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700",
|
|
4797
4799
|
onClick: E[0] || (E[0] = (O) => f.value = !0)
|
|
4798
4800
|
}, [
|
|
4799
|
-
|
|
4800
|
-
ue(z(
|
|
4801
|
+
gc,
|
|
4802
|
+
ue(z(Jl), {
|
|
4801
4803
|
class: "h-6 w-6",
|
|
4802
4804
|
"aria-hidden": "true"
|
|
4803
4805
|
})
|
|
4804
4806
|
])
|
|
4805
4807
|
]),
|
|
4806
|
-
g("div",
|
|
4807
|
-
e.isShenHe ? B("v-if", !0) : (k(),
|
|
4808
|
+
g("div", yc, [
|
|
4809
|
+
e.isShenHe ? B("v-if", !0) : (k(), Be(z(wo), {
|
|
4808
4810
|
key: 0,
|
|
4809
4811
|
class: "relative"
|
|
4810
4812
|
}, {
|
|
4811
4813
|
default: be(() => [
|
|
4812
|
-
ue(z(
|
|
4814
|
+
ue(z(Gl), { class: "inline-flex flex_item_center items-center gap-x-1 text-sm font-semibold bt_t h-7 leading-7 text-gray-900" }, {
|
|
4813
4815
|
default: be(() => [
|
|
4814
|
-
|
|
4815
|
-
ue(z(
|
|
4816
|
+
bc,
|
|
4817
|
+
ue(z(uc), {
|
|
4816
4818
|
class: "h-5 w-5",
|
|
4817
4819
|
"aria-hidden": "true"
|
|
4818
4820
|
})
|
|
@@ -4820,7 +4822,7 @@ const uc = {
|
|
|
4820
4822
|
_: 1
|
|
4821
4823
|
/* STABLE */
|
|
4822
4824
|
}),
|
|
4823
|
-
ue(
|
|
4825
|
+
ue(dr, {
|
|
4824
4826
|
"enter-active-class": "transition ease-out duration-200",
|
|
4825
4827
|
"enter-from-class": "opacity-0 translate-y-1",
|
|
4826
4828
|
"enter-to-class": "opacity-100 translate-y-0",
|
|
@@ -4829,18 +4831,18 @@ const uc = {
|
|
|
4829
4831
|
"leave-to-class": "opacity-0 translate-y-1"
|
|
4830
4832
|
}, {
|
|
4831
4833
|
default: be(() => [
|
|
4832
|
-
ue(z(
|
|
4834
|
+
ue(z(Wl), { class: "absolute left-1/2 z-10 mt-5 flex w-screen max-w-min -translate-x-1/2 px-4" }, {
|
|
4833
4835
|
default: be(() => [
|
|
4834
|
-
g("div",
|
|
4836
|
+
g("div", wc, [
|
|
4835
4837
|
(k(), $(
|
|
4836
4838
|
ve,
|
|
4837
4839
|
null,
|
|
4838
|
-
|
|
4840
|
+
Mt(a, (O) => g("a", {
|
|
4839
4841
|
key: O.name,
|
|
4840
4842
|
href: O.href,
|
|
4841
4843
|
class: "block p-2 hover:text-indigo-600",
|
|
4842
4844
|
target: "_blank"
|
|
4843
|
-
}, J(O.name), 9,
|
|
4845
|
+
}, J(O.name), 9, _c)),
|
|
4844
4846
|
64
|
|
4845
4847
|
/* STABLE_FRAGMENT */
|
|
4846
4848
|
))
|
|
@@ -4860,17 +4862,17 @@ const uc = {
|
|
|
4860
4862
|
(k(!0), $(
|
|
4861
4863
|
ve,
|
|
4862
4864
|
null,
|
|
4863
|
-
|
|
4865
|
+
Mt(i.value, (O) => (k(), $("a", {
|
|
4864
4866
|
key: O.name,
|
|
4865
4867
|
href: O.href,
|
|
4866
4868
|
target: O.target,
|
|
4867
|
-
class: "text-sm h-7 leading-7 font-semibold text-gray-900"
|
|
4868
|
-
}, J(O.name), 9,
|
|
4869
|
+
class: "inline-flex items-center text-sm h-7 leading-7 font-semibold text-gray-900"
|
|
4870
|
+
}, J(O.name), 9, Ec))),
|
|
4869
4871
|
128
|
|
4870
4872
|
/* KEYED_FRAGMENT */
|
|
4871
4873
|
))
|
|
4872
4874
|
]),
|
|
4873
|
-
e.isShenHe ? (k(), $("div",
|
|
4875
|
+
e.isShenHe ? (k(), $("div", Sc)) : c.value ? (k(), $("div", Oc, [
|
|
4874
4876
|
g(
|
|
4875
4877
|
"div",
|
|
4876
4878
|
{
|
|
@@ -4879,7 +4881,7 @@ const uc = {
|
|
|
4879
4881
|
onMouseleave: y
|
|
4880
4882
|
},
|
|
4881
4883
|
[
|
|
4882
|
-
g("div",
|
|
4884
|
+
g("div", Tc, [
|
|
4883
4885
|
g(
|
|
4884
4886
|
"span",
|
|
4885
4887
|
null,
|
|
@@ -4892,14 +4894,14 @@ const uc = {
|
|
|
4892
4894
|
class: "user-avatar h-10 rounded-full",
|
|
4893
4895
|
src: c.value.avatar || "https://statics.imgkits.com/images/default_user_avatar_black.png",
|
|
4894
4896
|
alt: "user avatar"
|
|
4895
|
-
}, null, 8,
|
|
4896
|
-
|
|
4897
|
-
|
|
4897
|
+
}, null, 8, Cc),
|
|
4898
|
+
Nc,
|
|
4899
|
+
Ke(g(
|
|
4898
4900
|
"div",
|
|
4899
4901
|
null,
|
|
4900
4902
|
[
|
|
4901
|
-
g("div",
|
|
4902
|
-
c.value ? (k(),
|
|
4903
|
+
g("div", Ac, [
|
|
4904
|
+
c.value ? (k(), Be(cr, {
|
|
4903
4905
|
key: 0,
|
|
4904
4906
|
user: c.value
|
|
4905
4907
|
}, null, 8, ["user"])) : B("v-if", !0)
|
|
@@ -4908,41 +4910,41 @@ const uc = {
|
|
|
4908
4910
|
512
|
|
4909
4911
|
/* NEED_PATCH */
|
|
4910
4912
|
), [
|
|
4911
|
-
[
|
|
4913
|
+
[fr, l.value]
|
|
4912
4914
|
])
|
|
4913
4915
|
],
|
|
4914
4916
|
32
|
|
4915
4917
|
/* HYDRATE_EVENTS */
|
|
4916
4918
|
)
|
|
4917
|
-
])) : (k(), $("div",
|
|
4919
|
+
])) : (k(), $("div", xc, [
|
|
4918
4920
|
g("a", {
|
|
4919
4921
|
onClick: u,
|
|
4920
4922
|
href: "javscript:void(0)",
|
|
4921
4923
|
class: "text-sm leading-6 rounded-3xl bg-indigo-600 px-8 py-1.5 font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
|
|
4922
4924
|
}, [
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
+
pt("Log in"),
|
|
4926
|
+
Pc
|
|
4925
4927
|
])
|
|
4926
4928
|
]))
|
|
4927
4929
|
]),
|
|
4928
|
-
ue(z(
|
|
4930
|
+
ue(z(Hl), {
|
|
4929
4931
|
as: "div",
|
|
4930
4932
|
class: "lg:hidden",
|
|
4931
4933
|
onClose: E[2] || (E[2] = (O) => f.value = !1),
|
|
4932
4934
|
open: f.value
|
|
4933
4935
|
}, {
|
|
4934
4936
|
default: be(() => [
|
|
4935
|
-
|
|
4936
|
-
ue(z(
|
|
4937
|
+
kc,
|
|
4938
|
+
ue(z(Vl), { class: "fixed inset-y-0 right-0 z-50 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10" }, {
|
|
4937
4939
|
default: be(() => [
|
|
4938
|
-
g("div",
|
|
4940
|
+
g("div", Lc, [
|
|
4939
4941
|
g("a", {
|
|
4940
4942
|
href: d.value,
|
|
4941
4943
|
class: "-m-1.5 p-1.5"
|
|
4942
4944
|
}, [
|
|
4943
4945
|
g(
|
|
4944
4946
|
"span",
|
|
4945
|
-
|
|
4947
|
+
Fc,
|
|
4946
4948
|
J(o.value.name),
|
|
4947
4949
|
1
|
|
4948
4950
|
/* TEXT */
|
|
@@ -4951,33 +4953,33 @@ const uc = {
|
|
|
4951
4953
|
class: "h-8 w-auto",
|
|
4952
4954
|
src: o.value.logo,
|
|
4953
4955
|
alt: o.value.name
|
|
4954
|
-
}, null, 8,
|
|
4955
|
-
], 8,
|
|
4956
|
+
}, null, 8, Rc)
|
|
4957
|
+
], 8, $c),
|
|
4956
4958
|
g("button", {
|
|
4957
4959
|
type: "button",
|
|
4958
4960
|
class: "-m-2.5 rounded-md p-2.5 text-gray-700",
|
|
4959
4961
|
onClick: E[1] || (E[1] = (O) => f.value = !1)
|
|
4960
4962
|
}, [
|
|
4961
|
-
|
|
4962
|
-
ue(z(
|
|
4963
|
+
Dc,
|
|
4964
|
+
ue(z(Kl), {
|
|
4963
4965
|
class: "h-6 w-6",
|
|
4964
4966
|
"aria-hidden": "true"
|
|
4965
4967
|
})
|
|
4966
4968
|
])
|
|
4967
4969
|
]),
|
|
4968
|
-
g("div",
|
|
4969
|
-
g("div",
|
|
4970
|
-
g("div",
|
|
4971
|
-
e.isShenHe ? B("v-if", !0) : (k(), $("a",
|
|
4970
|
+
g("div", jc, [
|
|
4971
|
+
g("div", Ic, [
|
|
4972
|
+
g("div", Bc, [
|
|
4973
|
+
e.isShenHe ? B("v-if", !0) : (k(), $("a", Mc, "More Extensions")),
|
|
4972
4974
|
(k(!0), $(
|
|
4973
4975
|
ve,
|
|
4974
4976
|
null,
|
|
4975
|
-
|
|
4977
|
+
Mt(i.value, (O) => (k(), $("a", {
|
|
4976
4978
|
key: O.name,
|
|
4977
4979
|
href: O.href,
|
|
4978
4980
|
target: O.target,
|
|
4979
|
-
class: "-mx-3
|
|
4980
|
-
}, J(O.name), 9,
|
|
4981
|
+
class: "-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"
|
|
4982
|
+
}, J(O.name), 9, Uc))),
|
|
4981
4983
|
128
|
|
4982
4984
|
/* KEYED_FRAGMENT */
|
|
4983
4985
|
))
|
|
@@ -4987,11 +4989,11 @@ const uc = {
|
|
|
4987
4989
|
class: "relative sm-user-center-dialog py-6 right flew-center",
|
|
4988
4990
|
onClick: S
|
|
4989
4991
|
}, [
|
|
4990
|
-
c.value ? (k(),
|
|
4992
|
+
c.value ? (k(), Be(cr, {
|
|
4991
4993
|
key: 0,
|
|
4992
4994
|
user: c.value
|
|
4993
4995
|
}, null, 8, ["user"])) : B("v-if", !0)
|
|
4994
|
-
])) : (k(), $("div",
|
|
4996
|
+
])) : (k(), $("div", Hc, [
|
|
4995
4997
|
g("a", {
|
|
4996
4998
|
href: "#",
|
|
4997
4999
|
onClick: u,
|
|
@@ -5013,12 +5015,12 @@ const uc = {
|
|
|
5013
5015
|
/* CLASS */
|
|
5014
5016
|
),
|
|
5015
5017
|
B(" 引入登录 "),
|
|
5016
|
-
e.userStore.isShowLogin ? (k(),
|
|
5018
|
+
e.userStore.isShowLogin ? (k(), Be(Nu, {
|
|
5017
5019
|
key: 0,
|
|
5018
5020
|
onSuccess: v,
|
|
5019
5021
|
onClose: m
|
|
5020
5022
|
})) : B("v-if", !0),
|
|
5021
|
-
e.userStore.isShowToast ? (k(),
|
|
5023
|
+
e.userStore.isShowToast ? (k(), Be(lc, {
|
|
5022
5024
|
key: 1,
|
|
5023
5025
|
content: e.userStore.toastContent
|
|
5024
5026
|
}, null, 8, ["content"])) : B("v-if", !0)
|
|
@@ -5027,11 +5029,11 @@ const uc = {
|
|
|
5027
5029
|
/* STABLE_FRAGMENT */
|
|
5028
5030
|
));
|
|
5029
5031
|
}
|
|
5030
|
-
},
|
|
5032
|
+
}, zc = /* @__PURE__ */ it(Vc, [["__scopeId", "data-v-c970699f"], ["__file", "/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/Header.vue"]]), Gc = {
|
|
5031
5033
|
install(e) {
|
|
5032
|
-
e.component("my-header",
|
|
5034
|
+
e.component("my-header", zc);
|
|
5033
5035
|
}
|
|
5034
5036
|
};
|
|
5035
5037
|
export {
|
|
5036
|
-
|
|
5038
|
+
Gc as default
|
|
5037
5039
|
};
|