altcha 2.0.3 → 2.0.5
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/dist/altcha.i18n.js +793 -793
- package/dist/altcha.i18n.umd.js +4 -4
- package/dist/altcha.js +703 -703
- package/dist/altcha.umd.cjs +4 -4
- package/dist_external/altcha.js +668 -668
- package/dist_external/altcha.umd.cjs +3 -3
- package/dist_i18n/all.js +1 -1
- package/dist_i18n/all.umd.cjs +1 -1
- package/dist_i18n/asia.js +1 -1
- package/dist_i18n/asia.umd.cjs +1 -1
- package/dist_i18n/ja.js +1 -1
- package/dist_i18n/ja.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/altcha.i18n.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Sn = Object.defineProperty;
|
|
2
|
+
var ja = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var Ae = (e, t, r) =>
|
|
7
|
-
var se = (e, t, r) => (
|
|
8
|
-
var
|
|
5
|
+
var Pn = (e, t, r) => t in e ? Sn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
6
|
+
var Ae = (e, t, r) => Pn(e, typeof t != "symbol" ? t + "" : t, r), $a = (e, t, r) => t.has(e) || ja("Cannot " + r);
|
|
7
|
+
var se = (e, t, r) => ($a(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Cr = (e, t, r) => t.has(e) ? ja("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), Lr = (e, t, r, i) => ($a(e, t, "write to private field"), i ? i.call(e, r) : t.set(e, r), r);
|
|
8
|
+
var Wa = Array.isArray, Nn = Array.prototype.indexOf, zn = Array.from, Qt = Object.keys, St = Object.defineProperty, Qe = Object.getOwnPropertyDescriptor, Dn = Object.getOwnPropertyDescriptors, qn = Object.prototype, On = Array.prototype, Ka = Object.getPrototypeOf, Sa = Object.isExtensible;
|
|
9
9
|
const bt = () => {
|
|
10
10
|
};
|
|
11
|
-
function
|
|
11
|
+
function Ja(e) {
|
|
12
12
|
for (var t = 0; t < e.length; t++)
|
|
13
13
|
e[t]();
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Hn(e, t, r = !1) {
|
|
16
16
|
return e === void 0 ? r ? (
|
|
17
17
|
/** @type {() => V} */
|
|
18
18
|
t()
|
|
@@ -21,70 +21,70 @@ function On(e, t, r = !1) {
|
|
|
21
21
|
t
|
|
22
22
|
) : e;
|
|
23
23
|
}
|
|
24
|
-
const ke = 2,
|
|
25
|
-
let Pt = [],
|
|
26
|
-
function
|
|
24
|
+
const ke = 2, Xa = 4, or = 8, zr = 16, Pe = 32, rt = 64, er = 128, he = 256, tr = 512, fe = 1024, Se = 2048, at = 4096, mt = 8192, lr = 16384, Fn = 32768, Dr = 65536, Mn = 1 << 19, Qa = 1 << 20, Ir = 1 << 21, jt = Symbol("$state"), ei = Symbol("legacy props"), Bn = Symbol(""), Un = typeof requestIdleCallback > "u" ? (e) => setTimeout(e, 1) : requestIdleCallback;
|
|
25
|
+
let Pt = [], Nt = [];
|
|
26
|
+
function ti() {
|
|
27
27
|
var e = Pt;
|
|
28
|
-
Pt = [],
|
|
28
|
+
Pt = [], Ja(e);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
var e =
|
|
32
|
-
|
|
30
|
+
function ri() {
|
|
31
|
+
var e = Nt;
|
|
32
|
+
Nt = [], Ja(e);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
Pt.length === 0 && queueMicrotask(
|
|
34
|
+
function qr(e) {
|
|
35
|
+
Pt.length === 0 && queueMicrotask(ti), Pt.push(e);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
|
|
37
|
+
function Zn(e) {
|
|
38
|
+
Nt.length === 0 && Un(ri), Nt.push(e);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
Pt.length > 0 &&
|
|
40
|
+
function Gn() {
|
|
41
|
+
Pt.length > 0 && ti(), Nt.length > 0 && ri();
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function ai(e) {
|
|
44
44
|
return e === this.v;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function ii(e, t) {
|
|
47
47
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
return !
|
|
49
|
+
function Or(e) {
|
|
50
|
+
return !ii(e, this.v);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Yn(e) {
|
|
53
53
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Wn() {
|
|
56
56
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function Kn(e) {
|
|
59
59
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Jn() {
|
|
62
62
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function Xn() {
|
|
65
65
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function Qn(e) {
|
|
68
68
|
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function eo() {
|
|
71
71
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function to() {
|
|
74
74
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function ro() {
|
|
77
77
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
78
78
|
}
|
|
79
|
-
const
|
|
80
|
-
function
|
|
79
|
+
const ao = 1, io = 4, no = 8, oo = 16, lo = 1, so = 2, Hr = "[", ni = "[!", oi = "]", pt = {}, ue = Symbol(), uo = "http://www.w3.org/1999/xhtml";
|
|
80
|
+
function li(e) {
|
|
81
81
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
82
82
|
}
|
|
83
83
|
let ie = null;
|
|
84
|
-
function
|
|
84
|
+
function Pa(e) {
|
|
85
85
|
ie = e;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function si(e, t = !1, r) {
|
|
88
88
|
var i = ie = {
|
|
89
89
|
p: ie,
|
|
90
90
|
c: null,
|
|
@@ -95,11 +95,11 @@ function oi(e, t = !1, r) {
|
|
|
95
95
|
x: null,
|
|
96
96
|
l: null
|
|
97
97
|
};
|
|
98
|
-
|
|
98
|
+
Br(() => {
|
|
99
99
|
i.d = !0;
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function ui(e) {
|
|
103
103
|
const t = ie;
|
|
104
104
|
if (t !== null) {
|
|
105
105
|
e !== void 0 && (t.x = e);
|
|
@@ -110,7 +110,7 @@ function li(e) {
|
|
|
110
110
|
try {
|
|
111
111
|
for (var o = 0; o < u.length; o++) {
|
|
112
112
|
var n = u[o];
|
|
113
|
-
Ue(n.effect), Ve(n.reaction),
|
|
113
|
+
Ue(n.effect), Ve(n.reaction), Ur(n.fn);
|
|
114
114
|
}
|
|
115
115
|
} finally {
|
|
116
116
|
Ue(r), Ve(i);
|
|
@@ -121,16 +121,16 @@ function li(e) {
|
|
|
121
121
|
return e || /** @type {T} */
|
|
122
122
|
{};
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function fi() {
|
|
125
125
|
return !0;
|
|
126
126
|
}
|
|
127
127
|
function Fe(e) {
|
|
128
128
|
if (typeof e != "object" || e === null || jt in e)
|
|
129
129
|
return e;
|
|
130
|
-
const t =
|
|
131
|
-
if (t !==
|
|
130
|
+
const t = Ka(e);
|
|
131
|
+
if (t !== qn && t !== On)
|
|
132
132
|
return e;
|
|
133
|
-
var r = /* @__PURE__ */ new Map(), i =
|
|
133
|
+
var r = /* @__PURE__ */ new Map(), i = Wa(e), o = /* @__PURE__ */ D(0), n = j, u = (s) => {
|
|
134
134
|
var c = j;
|
|
135
135
|
Ve(n);
|
|
136
136
|
var d = s();
|
|
@@ -144,7 +144,7 @@ function Fe(e) {
|
|
|
144
144
|
e,
|
|
145
145
|
{
|
|
146
146
|
defineProperty(s, c, d) {
|
|
147
|
-
(!("value" in d) || d.configurable === !1 || d.enumerable === !1 || d.writable === !1) &&
|
|
147
|
+
(!("value" in d) || d.configurable === !1 || d.enumerable === !1 || d.writable === !1) && eo();
|
|
148
148
|
var p = r.get(c);
|
|
149
149
|
return p === void 0 ? (p = u(() => /* @__PURE__ */ D(d.value)), r.set(c, p)) : y(
|
|
150
150
|
p,
|
|
@@ -157,7 +157,7 @@ function Fe(e) {
|
|
|
157
157
|
c in s && (r.set(
|
|
158
158
|
c,
|
|
159
159
|
u(() => /* @__PURE__ */ D(ue))
|
|
160
|
-
),
|
|
160
|
+
), Er(o));
|
|
161
161
|
else {
|
|
162
162
|
if (i && typeof c == "string") {
|
|
163
163
|
var p = (
|
|
@@ -166,7 +166,7 @@ function Fe(e) {
|
|
|
166
166
|
), h = Number(c);
|
|
167
167
|
Number.isInteger(h) && h < p.v && y(p, h);
|
|
168
168
|
}
|
|
169
|
-
y(d, ue),
|
|
169
|
+
y(d, ue), Er(o);
|
|
170
170
|
}
|
|
171
171
|
return !0;
|
|
172
172
|
},
|
|
@@ -236,7 +236,7 @@ function Fe(e) {
|
|
|
236
236
|
), ce = Number(c);
|
|
237
237
|
Number.isInteger(ce) && ce >= q.v && y(q, ce + 1);
|
|
238
238
|
}
|
|
239
|
-
|
|
239
|
+
Er(o);
|
|
240
240
|
}
|
|
241
241
|
return !0;
|
|
242
242
|
},
|
|
@@ -251,25 +251,25 @@ function Fe(e) {
|
|
|
251
251
|
return c;
|
|
252
252
|
},
|
|
253
253
|
setPrototypeOf() {
|
|
254
|
-
|
|
254
|
+
to();
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
);
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function Er(e, t = 1) {
|
|
260
260
|
y(e, e.v + t);
|
|
261
261
|
}
|
|
262
262
|
// @__NO_SIDE_EFFECTS__
|
|
263
|
-
function
|
|
263
|
+
function sr(e) {
|
|
264
264
|
var t = ke | Se, r = j !== null && (j.f & ke) !== 0 ? (
|
|
265
265
|
/** @type {Derived} */
|
|
266
266
|
j
|
|
267
267
|
) : null;
|
|
268
|
-
return $ === null || r !== null && (r.f & he) !== 0 ? t |= he : $.f |=
|
|
268
|
+
return $ === null || r !== null && (r.f & he) !== 0 ? t |= he : $.f |= Qa, {
|
|
269
269
|
ctx: ie,
|
|
270
270
|
deps: null,
|
|
271
271
|
effects: null,
|
|
272
|
-
equals:
|
|
272
|
+
equals: ai,
|
|
273
273
|
f: t,
|
|
274
274
|
fn: e,
|
|
275
275
|
reactions: null,
|
|
@@ -284,15 +284,15 @@ function lr(e) {
|
|
|
284
284
|
}
|
|
285
285
|
// @__NO_SIDE_EFFECTS__
|
|
286
286
|
function It(e) {
|
|
287
|
-
const t = /* @__PURE__ */
|
|
288
|
-
return
|
|
287
|
+
const t = /* @__PURE__ */ sr(e);
|
|
288
|
+
return yi(t), t;
|
|
289
289
|
}
|
|
290
290
|
// @__NO_SIDE_EFFECTS__
|
|
291
|
-
function
|
|
292
|
-
const t = /* @__PURE__ */
|
|
293
|
-
return t.equals =
|
|
291
|
+
function fo(e) {
|
|
292
|
+
const t = /* @__PURE__ */ sr(e);
|
|
293
|
+
return t.equals = Or, t;
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function ci(e) {
|
|
296
296
|
var t = e.effects;
|
|
297
297
|
if (t !== null) {
|
|
298
298
|
e.effects = null;
|
|
@@ -303,7 +303,7 @@ function ui(e) {
|
|
|
303
303
|
);
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function co(e) {
|
|
307
307
|
for (var t = e.parent; t !== null; ) {
|
|
308
308
|
if ((t.f & ke) === 0)
|
|
309
309
|
return (
|
|
@@ -314,28 +314,28 @@ function fo(e) {
|
|
|
314
314
|
}
|
|
315
315
|
return null;
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function di(e) {
|
|
318
318
|
var t, r = $;
|
|
319
|
-
Ue(
|
|
319
|
+
Ue(co(e));
|
|
320
320
|
try {
|
|
321
|
-
|
|
321
|
+
ci(e), t = wi(e);
|
|
322
322
|
} finally {
|
|
323
323
|
Ue(r);
|
|
324
324
|
}
|
|
325
325
|
return t;
|
|
326
326
|
}
|
|
327
|
-
function
|
|
328
|
-
var t =
|
|
329
|
-
_e(e, r), e.equals(t) || (e.v = t, e.wv =
|
|
327
|
+
function hi(e) {
|
|
328
|
+
var t = di(e), r = (Me || (e.f & he) !== 0) && e.deps !== null ? at : fe;
|
|
329
|
+
_e(e, r), e.equals(t) || (e.v = t, e.wv = ki());
|
|
330
330
|
}
|
|
331
|
-
const
|
|
332
|
-
function
|
|
331
|
+
const zt = /* @__PURE__ */ new Map();
|
|
332
|
+
function gi(e, t) {
|
|
333
333
|
var r = {
|
|
334
334
|
f: 0,
|
|
335
335
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
336
336
|
v: e,
|
|
337
337
|
reactions: null,
|
|
338
|
-
equals:
|
|
338
|
+
equals: ai,
|
|
339
339
|
rv: 0,
|
|
340
340
|
wv: 0
|
|
341
341
|
};
|
|
@@ -343,81 +343,81 @@ function di(e, t) {
|
|
|
343
343
|
}
|
|
344
344
|
// @__NO_SIDE_EFFECTS__
|
|
345
345
|
function D(e, t) {
|
|
346
|
-
const r =
|
|
347
|
-
return
|
|
346
|
+
const r = gi(e);
|
|
347
|
+
return yi(r), r;
|
|
348
348
|
}
|
|
349
349
|
// @__NO_SIDE_EFFECTS__
|
|
350
|
-
function
|
|
351
|
-
const r =
|
|
352
|
-
return t || (r.equals =
|
|
350
|
+
function Fr(e, t = !1) {
|
|
351
|
+
const r = gi(e);
|
|
352
|
+
return t || (r.equals = Or), r;
|
|
353
353
|
}
|
|
354
354
|
function y(e, t, r = !1) {
|
|
355
|
-
j !== null && !Te &&
|
|
355
|
+
j !== null && !Te && fi() && (j.f & (ke | zr)) !== 0 && !(ne != null && ne.includes(e)) && ro();
|
|
356
356
|
let i = r ? Fe(t) : t;
|
|
357
|
-
return
|
|
357
|
+
return ho(e, i);
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function ho(e, t) {
|
|
360
360
|
if (!e.equals(t)) {
|
|
361
361
|
var r = e.v;
|
|
362
|
-
Dt ?
|
|
362
|
+
Dt ? zt.set(e, t) : zt.set(e, r), e.v = t, (e.f & ke) !== 0 && ((e.f & Se) !== 0 && di(
|
|
363
363
|
/** @type {Derived} */
|
|
364
364
|
e
|
|
365
|
-
), _e(e, (e.f & he) === 0 ? fe : at)), e.wv =
|
|
365
|
+
), _e(e, (e.f & he) === 0 ? fe : at)), e.wv = ki(), vi(e, Se), $ !== null && ($.f & fe) !== 0 && ($.f & (Pe | rt)) === 0 && (ve === null ? bo([e]) : ve.push(e));
|
|
366
366
|
}
|
|
367
367
|
return t;
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function vi(e, t) {
|
|
370
370
|
var r = e.reactions;
|
|
371
371
|
if (r !== null)
|
|
372
372
|
for (var i = r.length, o = 0; o < i; o++) {
|
|
373
373
|
var n = r[o], u = n.f;
|
|
374
|
-
(u & Se) === 0 && (_e(n, t), (u & (fe | he)) !== 0 && ((u & ke) !== 0 ?
|
|
374
|
+
(u & Se) === 0 && (_e(n, t), (u & (fe | he)) !== 0 && ((u & ke) !== 0 ? vi(
|
|
375
375
|
/** @type {Derived} */
|
|
376
376
|
n,
|
|
377
377
|
at
|
|
378
|
-
) :
|
|
378
|
+
) : dr(
|
|
379
379
|
/** @type {Effect} */
|
|
380
380
|
n
|
|
381
381
|
)));
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function ur(e) {
|
|
385
385
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
386
386
|
}
|
|
387
|
-
let
|
|
387
|
+
let z = !1;
|
|
388
388
|
function vt(e) {
|
|
389
|
-
|
|
389
|
+
z = e;
|
|
390
390
|
}
|
|
391
|
-
let
|
|
391
|
+
let N;
|
|
392
392
|
function Be(e) {
|
|
393
393
|
if (e === null)
|
|
394
|
-
throw
|
|
395
|
-
return
|
|
394
|
+
throw ur(), pt;
|
|
395
|
+
return N = e;
|
|
396
396
|
}
|
|
397
397
|
function yt() {
|
|
398
398
|
return Be(
|
|
399
399
|
/** @type {TemplateNode} */
|
|
400
|
-
/* @__PURE__ */ Ge(
|
|
400
|
+
/* @__PURE__ */ Ge(N)
|
|
401
401
|
);
|
|
402
402
|
}
|
|
403
403
|
function Z(e) {
|
|
404
|
-
if (
|
|
405
|
-
if (/* @__PURE__ */ Ge(
|
|
406
|
-
throw
|
|
407
|
-
|
|
404
|
+
if (z) {
|
|
405
|
+
if (/* @__PURE__ */ Ge(N) !== null)
|
|
406
|
+
throw ur(), pt;
|
|
407
|
+
N = e;
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
for (var e = 0, t =
|
|
410
|
+
function go() {
|
|
411
|
+
for (var e = 0, t = N; ; ) {
|
|
412
412
|
if (t.nodeType === 8) {
|
|
413
413
|
var r = (
|
|
414
414
|
/** @type {Comment} */
|
|
415
415
|
t.data
|
|
416
416
|
);
|
|
417
|
-
if (r ===
|
|
417
|
+
if (r === oi) {
|
|
418
418
|
if (e === 0) return t;
|
|
419
419
|
e -= 1;
|
|
420
|
-
} else (r ===
|
|
420
|
+
} else (r === Hr || r === ni) && (e += 1);
|
|
421
421
|
}
|
|
422
422
|
var i = (
|
|
423
423
|
/** @type {TemplateNode} */
|
|
@@ -426,36 +426,36 @@ function ho() {
|
|
|
426
426
|
t.remove(), t = i;
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
var
|
|
430
|
-
function
|
|
431
|
-
if (
|
|
432
|
-
|
|
429
|
+
var Na, bi, pi, mi;
|
|
430
|
+
function Vr() {
|
|
431
|
+
if (Na === void 0) {
|
|
432
|
+
Na = window, bi = /Firefox/.test(navigator.userAgent);
|
|
433
433
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
434
|
-
|
|
434
|
+
pi = Qe(t, "firstChild").get, mi = Qe(t, "nextSibling").get, Sa(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Sa(r) && (r.__t = void 0);
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
|
-
function
|
|
437
|
+
function fr(e = "") {
|
|
438
438
|
return document.createTextNode(e);
|
|
439
439
|
}
|
|
440
440
|
// @__NO_SIDE_EFFECTS__
|
|
441
441
|
function pe(e) {
|
|
442
|
-
return
|
|
442
|
+
return pi.call(e);
|
|
443
443
|
}
|
|
444
444
|
// @__NO_SIDE_EFFECTS__
|
|
445
445
|
function Ge(e) {
|
|
446
|
-
return
|
|
446
|
+
return mi.call(e);
|
|
447
447
|
}
|
|
448
448
|
function G(e, t) {
|
|
449
|
-
if (!
|
|
449
|
+
if (!z)
|
|
450
450
|
return /* @__PURE__ */ pe(e);
|
|
451
451
|
var r = (
|
|
452
452
|
/** @type {TemplateNode} */
|
|
453
|
-
/* @__PURE__ */ pe(
|
|
453
|
+
/* @__PURE__ */ pe(N)
|
|
454
454
|
);
|
|
455
|
-
return r === null && (r =
|
|
455
|
+
return r === null && (r = N.appendChild(fr())), Be(r), r;
|
|
456
456
|
}
|
|
457
457
|
function Vt(e, t) {
|
|
458
|
-
if (!
|
|
458
|
+
if (!z) {
|
|
459
459
|
var r = (
|
|
460
460
|
/** @type {DocumentFragment} */
|
|
461
461
|
/* @__PURE__ */ pe(
|
|
@@ -465,28 +465,28 @@ function Vt(e, t) {
|
|
|
465
465
|
);
|
|
466
466
|
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ Ge(r) : r;
|
|
467
467
|
}
|
|
468
|
-
return
|
|
468
|
+
return N;
|
|
469
469
|
}
|
|
470
470
|
function Y(e, t = 1, r = !1) {
|
|
471
|
-
let i =
|
|
471
|
+
let i = z ? N : e;
|
|
472
472
|
for (var o; t--; )
|
|
473
473
|
o = i, i = /** @type {TemplateNode} */
|
|
474
474
|
/* @__PURE__ */ Ge(i);
|
|
475
|
-
if (!
|
|
475
|
+
if (!z)
|
|
476
476
|
return i;
|
|
477
477
|
var n = i == null ? void 0 : i.nodeType;
|
|
478
478
|
if (r && n !== 3) {
|
|
479
|
-
var u =
|
|
479
|
+
var u = fr();
|
|
480
480
|
return i === null ? o == null || o.after(u) : i.before(u), Be(u), u;
|
|
481
481
|
}
|
|
482
482
|
return Be(i), /** @type {TemplateNode} */
|
|
483
483
|
i;
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function vo(e) {
|
|
486
486
|
e.textContent = "";
|
|
487
487
|
}
|
|
488
|
-
let
|
|
489
|
-
function
|
|
488
|
+
let Kt = !1, rr = !1, ar = null, et = !1, Dt = !1;
|
|
489
|
+
function za(e) {
|
|
490
490
|
Dt = e;
|
|
491
491
|
}
|
|
492
492
|
let $t = [];
|
|
@@ -499,16 +499,16 @@ function Ue(e) {
|
|
|
499
499
|
$ = e;
|
|
500
500
|
}
|
|
501
501
|
let ne = null;
|
|
502
|
-
function
|
|
503
|
-
j !== null && j.f &
|
|
502
|
+
function yi(e) {
|
|
503
|
+
j !== null && j.f & Ir && (ne === null ? ne = [e] : ne.push(e));
|
|
504
504
|
}
|
|
505
505
|
let ae = null, de = 0, ve = null;
|
|
506
|
-
function
|
|
506
|
+
function bo(e) {
|
|
507
507
|
ve = e;
|
|
508
508
|
}
|
|
509
|
-
let
|
|
510
|
-
function
|
|
511
|
-
return ++
|
|
509
|
+
let Ai = 1, ir = 0, Me = !1;
|
|
510
|
+
function ki() {
|
|
511
|
+
return ++Ai;
|
|
512
512
|
}
|
|
513
513
|
function qt(e) {
|
|
514
514
|
var h;
|
|
@@ -518,7 +518,7 @@ function qt(e) {
|
|
|
518
518
|
if ((t & at) !== 0) {
|
|
519
519
|
var r = e.deps, i = (t & he) !== 0;
|
|
520
520
|
if (r !== null) {
|
|
521
|
-
var o, n, u = (t &
|
|
521
|
+
var o, n, u = (t & tr) !== 0, s = i && $ !== null && !Me, c = r.length;
|
|
522
522
|
if (u || s) {
|
|
523
523
|
var d = (
|
|
524
524
|
/** @type {Derived} */
|
|
@@ -526,13 +526,13 @@ function qt(e) {
|
|
|
526
526
|
), p = d.parent;
|
|
527
527
|
for (o = 0; o < c; o++)
|
|
528
528
|
n = r[o], (u || !((h = n == null ? void 0 : n.reactions) != null && h.includes(d))) && (n.reactions ?? (n.reactions = [])).push(d);
|
|
529
|
-
u && (d.f ^=
|
|
529
|
+
u && (d.f ^= tr), s && p !== null && (p.f & he) === 0 && (d.f ^= he);
|
|
530
530
|
}
|
|
531
531
|
for (o = 0; o < c; o++)
|
|
532
532
|
if (n = r[o], qt(
|
|
533
533
|
/** @type {Derived} */
|
|
534
534
|
n
|
|
535
|
-
) &&
|
|
535
|
+
) && hi(
|
|
536
536
|
/** @type {Derived} */
|
|
537
537
|
n
|
|
538
538
|
), n.wv > e.wv)
|
|
@@ -542,52 +542,52 @@ function qt(e) {
|
|
|
542
542
|
}
|
|
543
543
|
return !1;
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function po(e, t) {
|
|
546
546
|
for (var r = t; r !== null; ) {
|
|
547
|
-
if ((r.f &
|
|
547
|
+
if ((r.f & er) !== 0)
|
|
548
548
|
try {
|
|
549
549
|
r.fn(e);
|
|
550
550
|
return;
|
|
551
551
|
} catch {
|
|
552
|
-
r.f ^=
|
|
552
|
+
r.f ^= er;
|
|
553
553
|
}
|
|
554
554
|
r = r.parent;
|
|
555
555
|
}
|
|
556
|
-
throw
|
|
556
|
+
throw Kt = !1, e;
|
|
557
557
|
}
|
|
558
|
-
function
|
|
559
|
-
return (e.f &
|
|
558
|
+
function Da(e) {
|
|
559
|
+
return (e.f & lr) === 0 && (e.parent === null || (e.parent.f & er) === 0);
|
|
560
560
|
}
|
|
561
|
-
function
|
|
562
|
-
if (
|
|
563
|
-
if (r === null && (
|
|
561
|
+
function cr(e, t, r, i) {
|
|
562
|
+
if (Kt) {
|
|
563
|
+
if (r === null && (Kt = !1), Da(t))
|
|
564
564
|
throw e;
|
|
565
565
|
return;
|
|
566
566
|
}
|
|
567
|
-
if (r !== null && (
|
|
567
|
+
if (r !== null && (Kt = !0), po(e, t), Da(t))
|
|
568
568
|
throw e;
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function _i(e, t, r = !0) {
|
|
571
571
|
var i = e.reactions;
|
|
572
572
|
if (i !== null)
|
|
573
573
|
for (var o = 0; o < i.length; o++) {
|
|
574
574
|
var n = i[o];
|
|
575
|
-
ne != null && ne.includes(e) || ((n.f & ke) !== 0 ?
|
|
575
|
+
ne != null && ne.includes(e) || ((n.f & ke) !== 0 ? _i(
|
|
576
576
|
/** @type {Derived} */
|
|
577
577
|
n,
|
|
578
578
|
t,
|
|
579
579
|
!1
|
|
580
|
-
) : t === n && (r ? _e(n, Se) : (n.f & fe) !== 0 && _e(n, at),
|
|
580
|
+
) : t === n && (r ? _e(n, Se) : (n.f & fe) !== 0 && _e(n, at), dr(
|
|
581
581
|
/** @type {Effect} */
|
|
582
582
|
n
|
|
583
583
|
)));
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function wi(e) {
|
|
587
587
|
var k;
|
|
588
588
|
var t = ae, r = de, i = ve, o = j, n = Me, u = ne, s = ie, c = Te, d = e.f;
|
|
589
589
|
ae = /** @type {null | Value[]} */
|
|
590
|
-
null, de = 0, ve = null, Me = (d & he) !== 0 && (Te || !et || j === null), j = (d & (Pe | rt)) === 0 ? e : null, ne = null,
|
|
590
|
+
null, de = 0, ve = null, Me = (d & he) !== 0 && (Te || !et || j === null), j = (d & (Pe | rt)) === 0 ? e : null, ne = null, Pa(e.ctx), Te = !1, ir++, e.f |= Ir;
|
|
591
591
|
try {
|
|
592
592
|
var p = (
|
|
593
593
|
/** @type {Function} */
|
|
@@ -595,7 +595,7 @@ function ki(e) {
|
|
|
595
595
|
), h = e.deps;
|
|
596
596
|
if (ae !== null) {
|
|
597
597
|
var v;
|
|
598
|
-
if (
|
|
598
|
+
if (nr(e, de), h !== null && de > 0)
|
|
599
599
|
for (h.length = de + ae.length, v = 0; v < ae.length; v++)
|
|
600
600
|
h[de + v] = ae[v];
|
|
601
601
|
else
|
|
@@ -603,25 +603,25 @@ function ki(e) {
|
|
|
603
603
|
if (!Me)
|
|
604
604
|
for (v = de; v < h.length; v++)
|
|
605
605
|
((k = h[v]).reactions ?? (k.reactions = [])).push(e);
|
|
606
|
-
} else h !== null && de < h.length && (
|
|
607
|
-
if (
|
|
606
|
+
} else h !== null && de < h.length && (nr(e, de), h.length = de);
|
|
607
|
+
if (fi() && ve !== null && !Te && h !== null && (e.f & (ke | at | Se)) === 0)
|
|
608
608
|
for (v = 0; v < /** @type {Source[]} */
|
|
609
609
|
ve.length; v++)
|
|
610
|
-
|
|
610
|
+
_i(
|
|
611
611
|
ve[v],
|
|
612
612
|
/** @type {Effect} */
|
|
613
613
|
e
|
|
614
614
|
);
|
|
615
|
-
return o !== null && o !== e && (
|
|
615
|
+
return o !== null && o !== e && (ir++, ve !== null && (i === null ? i = ve : i.push(.../** @type {Source[]} */
|
|
616
616
|
ve))), p;
|
|
617
617
|
} finally {
|
|
618
|
-
ae = t, de = r, ve = i, j = o, Me = n, ne = u,
|
|
618
|
+
ae = t, de = r, ve = i, j = o, Me = n, ne = u, Pa(s), Te = c, e.f ^= Ir;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function mo(e, t) {
|
|
622
622
|
let r = t.reactions;
|
|
623
623
|
if (r !== null) {
|
|
624
|
-
var i =
|
|
624
|
+
var i = Nn.call(r, e);
|
|
625
625
|
if (i !== -1) {
|
|
626
626
|
var o = r.length - 1;
|
|
627
627
|
o === 0 ? r = t.reactions = null : (r[i] = r[o], r.pop());
|
|
@@ -630,83 +630,83 @@ function po(e, t) {
|
|
|
630
630
|
r === null && (t.f & ke) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
631
631
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
632
632
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
633
|
-
(ae === null || !ae.includes(t)) && (_e(t, at), (t.f & (he |
|
|
633
|
+
(ae === null || !ae.includes(t)) && (_e(t, at), (t.f & (he | tr)) === 0 && (t.f ^= tr), ci(
|
|
634
634
|
/** @type {Derived} **/
|
|
635
635
|
t
|
|
636
|
-
),
|
|
636
|
+
), nr(
|
|
637
637
|
/** @type {Derived} **/
|
|
638
638
|
t,
|
|
639
639
|
0
|
|
640
640
|
));
|
|
641
641
|
}
|
|
642
|
-
function
|
|
642
|
+
function nr(e, t) {
|
|
643
643
|
var r = e.deps;
|
|
644
644
|
if (r !== null)
|
|
645
645
|
for (var i = t; i < r.length; i++)
|
|
646
|
-
|
|
646
|
+
mo(e, r[i]);
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function Mr(e) {
|
|
649
649
|
var t = e.f;
|
|
650
|
-
if ((t &
|
|
650
|
+
if ((t & lr) === 0) {
|
|
651
651
|
_e(e, fe);
|
|
652
652
|
var r = $, i = ie, o = et;
|
|
653
653
|
$ = e, et = !0;
|
|
654
654
|
try {
|
|
655
|
-
(t & zr) !== 0 ?
|
|
656
|
-
var n =
|
|
657
|
-
e.teardown = typeof n == "function" ? n : null, e.wv =
|
|
655
|
+
(t & zr) !== 0 ? xo(e) : xi(e), Ei(e);
|
|
656
|
+
var n = wi(e);
|
|
657
|
+
e.teardown = typeof n == "function" ? n : null, e.wv = Ai;
|
|
658
658
|
var u = e.deps, s;
|
|
659
659
|
} catch (c) {
|
|
660
|
-
|
|
660
|
+
cr(c, e, r, i || e.ctx);
|
|
661
661
|
} finally {
|
|
662
662
|
et = o, $ = r;
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function yo() {
|
|
667
667
|
try {
|
|
668
|
-
|
|
668
|
+
Jn();
|
|
669
669
|
} catch (e) {
|
|
670
|
-
if (
|
|
671
|
-
|
|
670
|
+
if (ar !== null)
|
|
671
|
+
cr(e, ar, null);
|
|
672
672
|
else
|
|
673
673
|
throw e;
|
|
674
674
|
}
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function Ci() {
|
|
677
677
|
var e = et;
|
|
678
678
|
try {
|
|
679
679
|
var t = 0;
|
|
680
680
|
for (et = !0; $t.length > 0; ) {
|
|
681
|
-
t++ > 1e3 &&
|
|
681
|
+
t++ > 1e3 && yo();
|
|
682
682
|
var r = $t, i = r.length;
|
|
683
683
|
$t = [];
|
|
684
684
|
for (var o = 0; o < i; o++) {
|
|
685
|
-
var n =
|
|
686
|
-
|
|
685
|
+
var n = ko(r[o]);
|
|
686
|
+
Ao(n);
|
|
687
687
|
}
|
|
688
|
-
|
|
688
|
+
zt.clear();
|
|
689
689
|
}
|
|
690
690
|
} finally {
|
|
691
|
-
|
|
691
|
+
rr = !1, et = e, ar = null;
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
|
-
function
|
|
694
|
+
function Ao(e) {
|
|
695
695
|
var t = e.length;
|
|
696
696
|
if (t !== 0)
|
|
697
697
|
for (var r = 0; r < t; r++) {
|
|
698
698
|
var i = e[r];
|
|
699
|
-
if ((i.f & (
|
|
699
|
+
if ((i.f & (lr | mt)) === 0)
|
|
700
700
|
try {
|
|
701
|
-
qt(i) && (
|
|
701
|
+
qt(i) && (Mr(i), i.deps === null && i.first === null && i.nodes_start === null && (i.teardown === null ? Ii(i) : i.fn = null));
|
|
702
702
|
} catch (o) {
|
|
703
|
-
|
|
703
|
+
cr(o, i, null, i.ctx);
|
|
704
704
|
}
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
|
-
function
|
|
708
|
-
|
|
709
|
-
for (var t =
|
|
707
|
+
function dr(e) {
|
|
708
|
+
rr || (rr = !0, queueMicrotask(Ci));
|
|
709
|
+
for (var t = ar = e; t.parent !== null; ) {
|
|
710
710
|
t = t.parent;
|
|
711
711
|
var r = t.f;
|
|
712
712
|
if ((r & (rt | Pe)) !== 0) {
|
|
@@ -716,19 +716,19 @@ function cr(e) {
|
|
|
716
716
|
}
|
|
717
717
|
$t.push(t);
|
|
718
718
|
}
|
|
719
|
-
function
|
|
719
|
+
function ko(e) {
|
|
720
720
|
for (var t = [], r = e; r !== null; ) {
|
|
721
721
|
var i = r.f, o = (i & (Pe | rt)) !== 0, n = o && (i & fe) !== 0;
|
|
722
722
|
if (!n && (i & mt) === 0) {
|
|
723
|
-
if ((i &
|
|
723
|
+
if ((i & Xa) !== 0)
|
|
724
724
|
t.push(r);
|
|
725
725
|
else if (o)
|
|
726
726
|
r.f ^= fe;
|
|
727
727
|
else
|
|
728
728
|
try {
|
|
729
|
-
qt(r) &&
|
|
729
|
+
qt(r) && Mr(r);
|
|
730
730
|
} catch (c) {
|
|
731
|
-
|
|
731
|
+
cr(c, r, null, r.ctx);
|
|
732
732
|
}
|
|
733
733
|
var u = r.first;
|
|
734
734
|
if (u !== null) {
|
|
@@ -744,15 +744,15 @@ function Ao(e) {
|
|
|
744
744
|
}
|
|
745
745
|
function E(e) {
|
|
746
746
|
for (var t; ; ) {
|
|
747
|
-
if (
|
|
747
|
+
if (Gn(), $t.length === 0)
|
|
748
748
|
return (
|
|
749
749
|
/** @type {T} */
|
|
750
750
|
t
|
|
751
751
|
);
|
|
752
|
-
|
|
752
|
+
rr = !0, Ci();
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
|
-
async function
|
|
755
|
+
async function xr() {
|
|
756
756
|
await Promise.resolve(), E();
|
|
757
757
|
}
|
|
758
758
|
function l(e) {
|
|
@@ -760,7 +760,7 @@ function l(e) {
|
|
|
760
760
|
if (j !== null && !Te) {
|
|
761
761
|
if (!(ne != null && ne.includes(e))) {
|
|
762
762
|
var i = j.deps;
|
|
763
|
-
e.rv <
|
|
763
|
+
e.rv < ir && (e.rv = ir, ae === null && i !== null && i[de] === e ? de++ : ae === null ? ae = [e] : (!Me || !ae.includes(e)) && ae.push(e));
|
|
764
764
|
}
|
|
765
765
|
} else if (r && /** @type {Derived} */
|
|
766
766
|
e.deps === null && /** @type {Derived} */
|
|
@@ -772,7 +772,7 @@ function l(e) {
|
|
|
772
772
|
n !== null && (n.f & he) === 0 && (o.f ^= he);
|
|
773
773
|
}
|
|
774
774
|
return r && (o = /** @type {Derived} */
|
|
775
|
-
e, qt(o) &&
|
|
775
|
+
e, qt(o) && hi(o)), Dt && zt.has(e) ? zt.get(e) : e.v;
|
|
776
776
|
}
|
|
777
777
|
function tt(e) {
|
|
778
778
|
var t = Te;
|
|
@@ -782,14 +782,14 @@ function tt(e) {
|
|
|
782
782
|
Te = t;
|
|
783
783
|
}
|
|
784
784
|
}
|
|
785
|
-
const
|
|
785
|
+
const _o = -7169;
|
|
786
786
|
function _e(e, t) {
|
|
787
|
-
e.f = e.f &
|
|
787
|
+
e.f = e.f & _o | t;
|
|
788
788
|
}
|
|
789
|
-
function
|
|
790
|
-
$ === null && j === null &&
|
|
789
|
+
function wo(e) {
|
|
790
|
+
$ === null && j === null && Kn(), j !== null && (j.f & he) !== 0 && $ === null && Wn(), Dt && Yn();
|
|
791
791
|
}
|
|
792
|
-
function
|
|
792
|
+
function Co(e, t) {
|
|
793
793
|
var r = t.last;
|
|
794
794
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
795
795
|
}
|
|
@@ -812,13 +812,13 @@ function it(e, t, r, i = !0) {
|
|
|
812
812
|
};
|
|
813
813
|
if (r)
|
|
814
814
|
try {
|
|
815
|
-
|
|
815
|
+
Mr(n), n.f |= Fn;
|
|
816
816
|
} catch (c) {
|
|
817
817
|
throw Ze(n), c;
|
|
818
818
|
}
|
|
819
|
-
else t !== null &&
|
|
820
|
-
var u = r && n.deps === null && n.first === null && n.nodes_start === null && n.teardown === null && (n.f & (
|
|
821
|
-
if (!u && i && (o !== null &&
|
|
819
|
+
else t !== null && dr(n);
|
|
820
|
+
var u = r && n.deps === null && n.first === null && n.nodes_start === null && n.teardown === null && (n.f & (Qa | er)) === 0;
|
|
821
|
+
if (!u && i && (o !== null && Co(n, o), j !== null && (j.f & ke) !== 0)) {
|
|
822
822
|
var s = (
|
|
823
823
|
/** @type {Derived} */
|
|
824
824
|
j
|
|
@@ -827,12 +827,12 @@ function it(e, t, r, i = !0) {
|
|
|
827
827
|
}
|
|
828
828
|
return n;
|
|
829
829
|
}
|
|
830
|
-
function
|
|
831
|
-
const t = it(
|
|
830
|
+
function Br(e) {
|
|
831
|
+
const t = it(or, null, !1);
|
|
832
832
|
return _e(t, fe), t.teardown = e, t;
|
|
833
833
|
}
|
|
834
|
-
function
|
|
835
|
-
|
|
834
|
+
function Rr(e) {
|
|
835
|
+
wo();
|
|
836
836
|
var t = $ !== null && ($.f & Pe) !== 0 && ie !== null && !ie.m;
|
|
837
837
|
if (t) {
|
|
838
838
|
var r = (
|
|
@@ -845,60 +845,60 @@ function Vr(e) {
|
|
|
845
845
|
reaction: j
|
|
846
846
|
});
|
|
847
847
|
} else {
|
|
848
|
-
var i =
|
|
848
|
+
var i = Ur(e);
|
|
849
849
|
return i;
|
|
850
850
|
}
|
|
851
851
|
}
|
|
852
|
-
function
|
|
852
|
+
function Lo(e) {
|
|
853
853
|
const t = it(rt, e, !0);
|
|
854
854
|
return () => {
|
|
855
855
|
Ze(t);
|
|
856
856
|
};
|
|
857
857
|
}
|
|
858
|
-
function
|
|
858
|
+
function Eo(e) {
|
|
859
859
|
const t = it(rt, e, !0);
|
|
860
860
|
return (r = {}) => new Promise((i) => {
|
|
861
|
-
r.outro ?
|
|
861
|
+
r.outro ? $r(t, () => {
|
|
862
862
|
Ze(t), i(void 0);
|
|
863
863
|
}) : (Ze(t), i(void 0));
|
|
864
864
|
});
|
|
865
865
|
}
|
|
866
|
-
function Br(e) {
|
|
867
|
-
return it(Ka, e, !1);
|
|
868
|
-
}
|
|
869
866
|
function Ur(e) {
|
|
870
|
-
return it(
|
|
867
|
+
return it(Xa, e, !1);
|
|
871
868
|
}
|
|
872
|
-
function
|
|
869
|
+
function Zr(e) {
|
|
870
|
+
return it(or, e, !0);
|
|
871
|
+
}
|
|
872
|
+
function xe(e, t = [], r = sr) {
|
|
873
873
|
const i = t.map(r);
|
|
874
|
-
return
|
|
874
|
+
return Li(() => e(...i.map(l)));
|
|
875
875
|
}
|
|
876
|
-
function
|
|
877
|
-
return it(
|
|
876
|
+
function Li(e, t = 0) {
|
|
877
|
+
return it(or | zr | t, e, !0);
|
|
878
878
|
}
|
|
879
|
-
function
|
|
880
|
-
return it(
|
|
879
|
+
function jr(e, t = !0) {
|
|
880
|
+
return it(or | Pe, e, !0, t);
|
|
881
881
|
}
|
|
882
|
-
function
|
|
882
|
+
function Ei(e) {
|
|
883
883
|
var t = e.teardown;
|
|
884
884
|
if (t !== null) {
|
|
885
885
|
const r = Dt, i = j;
|
|
886
|
-
|
|
886
|
+
za(!0), Ve(null);
|
|
887
887
|
try {
|
|
888
888
|
t.call(null);
|
|
889
889
|
} finally {
|
|
890
|
-
|
|
890
|
+
za(r), Ve(i);
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
893
|
}
|
|
894
|
-
function
|
|
894
|
+
function xi(e, t = !1) {
|
|
895
895
|
var r = e.first;
|
|
896
896
|
for (e.first = e.last = null; r !== null; ) {
|
|
897
897
|
var i = r.next;
|
|
898
898
|
(r.f & rt) !== 0 ? r.parent = null : Ze(r, t), r = i;
|
|
899
899
|
}
|
|
900
900
|
}
|
|
901
|
-
function
|
|
901
|
+
function xo(e) {
|
|
902
902
|
for (var t = e.first; t !== null; ) {
|
|
903
903
|
var r = t.next;
|
|
904
904
|
(t.f & Pe) === 0 && Ze(t), t = r;
|
|
@@ -906,20 +906,20 @@ function Eo(e) {
|
|
|
906
906
|
}
|
|
907
907
|
function Ze(e, t = !0) {
|
|
908
908
|
var r = !1;
|
|
909
|
-
(t || (e.f &
|
|
909
|
+
(t || (e.f & Mn) !== 0) && e.nodes_start !== null && (Ti(
|
|
910
910
|
e.nodes_start,
|
|
911
911
|
/** @type {TemplateNode} */
|
|
912
912
|
e.nodes_end
|
|
913
|
-
), r = !0),
|
|
913
|
+
), r = !0), xi(e, t && !r), nr(e, 0), _e(e, lr);
|
|
914
914
|
var i = e.transitions;
|
|
915
915
|
if (i !== null)
|
|
916
916
|
for (const n of i)
|
|
917
917
|
n.stop();
|
|
918
|
-
|
|
918
|
+
Ei(e);
|
|
919
919
|
var o = e.parent;
|
|
920
|
-
o !== null && o.first !== null &&
|
|
920
|
+
o !== null && o.first !== null && Ii(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes_start = e.nodes_end = null;
|
|
921
921
|
}
|
|
922
|
-
function
|
|
922
|
+
function Ti(e, t) {
|
|
923
923
|
for (; e !== null; ) {
|
|
924
924
|
var r = e === t ? null : (
|
|
925
925
|
/** @type {TemplateNode} */
|
|
@@ -928,17 +928,17 @@ function Ei(e, t) {
|
|
|
928
928
|
e.remove(), e = r;
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
|
-
function
|
|
931
|
+
function Ii(e) {
|
|
932
932
|
var t = e.parent, r = e.prev, i = e.next;
|
|
933
933
|
r !== null && (r.next = i), i !== null && (i.prev = r), t !== null && (t.first === e && (t.first = i), t.last === e && (t.last = r));
|
|
934
934
|
}
|
|
935
|
-
function
|
|
935
|
+
function $r(e, t) {
|
|
936
936
|
var r = [];
|
|
937
|
-
|
|
937
|
+
Vi(e, r, !0), To(r, () => {
|
|
938
938
|
Ze(e), t && t();
|
|
939
939
|
});
|
|
940
940
|
}
|
|
941
|
-
function
|
|
941
|
+
function To(e, t) {
|
|
942
942
|
var r = e.length;
|
|
943
943
|
if (r > 0) {
|
|
944
944
|
var i = () => --r || t();
|
|
@@ -947,47 +947,47 @@ function xo(e, t) {
|
|
|
947
947
|
} else
|
|
948
948
|
t();
|
|
949
949
|
}
|
|
950
|
-
function
|
|
950
|
+
function Vi(e, t, r) {
|
|
951
951
|
if ((e.f & mt) === 0) {
|
|
952
952
|
if (e.f ^= mt, e.transitions !== null)
|
|
953
953
|
for (const u of e.transitions)
|
|
954
954
|
(u.is_global || r) && t.push(u);
|
|
955
955
|
for (var i = e.first; i !== null; ) {
|
|
956
|
-
var o = i.next, n = (i.f &
|
|
957
|
-
|
|
956
|
+
var o = i.next, n = (i.f & Dr) !== 0 || (i.f & Pe) !== 0;
|
|
957
|
+
Vi(i, t, n ? r : !1), i = o;
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
|
-
function
|
|
962
|
-
|
|
961
|
+
function qa(e) {
|
|
962
|
+
Ri(e, !0);
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function Ri(e, t) {
|
|
965
965
|
if ((e.f & mt) !== 0) {
|
|
966
|
-
e.f ^= mt, (e.f & fe) === 0 && (e.f ^= fe), qt(e) && (_e(e, Se),
|
|
966
|
+
e.f ^= mt, (e.f & fe) === 0 && (e.f ^= fe), qt(e) && (_e(e, Se), dr(e));
|
|
967
967
|
for (var r = e.first; r !== null; ) {
|
|
968
|
-
var i = r.next, o = (r.f &
|
|
969
|
-
|
|
968
|
+
var i = r.next, o = (r.f & Dr) !== 0 || (r.f & Pe) !== 0;
|
|
969
|
+
Ri(r, o ? t : !1), r = i;
|
|
970
970
|
}
|
|
971
971
|
if (e.transitions !== null)
|
|
972
972
|
for (const n of e.transitions)
|
|
973
973
|
(n.is_global || t) && n.in();
|
|
974
974
|
}
|
|
975
975
|
}
|
|
976
|
-
const
|
|
977
|
-
function
|
|
978
|
-
return
|
|
976
|
+
const Io = ["touchstart", "touchmove"];
|
|
977
|
+
function Vo(e) {
|
|
978
|
+
return Io.includes(e);
|
|
979
979
|
}
|
|
980
|
-
function
|
|
980
|
+
function Ro(e, t) {
|
|
981
981
|
if (t) {
|
|
982
982
|
const r = document.body;
|
|
983
|
-
e.autofocus = !0,
|
|
983
|
+
e.autofocus = !0, qr(() => {
|
|
984
984
|
document.activeElement === r && e.focus();
|
|
985
985
|
});
|
|
986
986
|
}
|
|
987
987
|
}
|
|
988
|
-
let
|
|
989
|
-
function
|
|
990
|
-
|
|
988
|
+
let Oa = !1;
|
|
989
|
+
function ji() {
|
|
990
|
+
Oa || (Oa = !0, document.addEventListener(
|
|
991
991
|
"reset",
|
|
992
992
|
(e) => {
|
|
993
993
|
Promise.resolve().then(() => {
|
|
@@ -1005,7 +1005,7 @@ function Vi() {
|
|
|
1005
1005
|
{ capture: !0 }
|
|
1006
1006
|
));
|
|
1007
1007
|
}
|
|
1008
|
-
function
|
|
1008
|
+
function $i(e) {
|
|
1009
1009
|
var t = j, r = $;
|
|
1010
1010
|
Ve(null), Ue(null);
|
|
1011
1011
|
try {
|
|
@@ -1014,33 +1014,33 @@ function Ri(e) {
|
|
|
1014
1014
|
Ve(t), Ue(r);
|
|
1015
1015
|
}
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1018
|
-
e.addEventListener(t, () =>
|
|
1017
|
+
function jo(e, t, r, i = r) {
|
|
1018
|
+
e.addEventListener(t, () => $i(r));
|
|
1019
1019
|
const o = e.__on_r;
|
|
1020
1020
|
o ? e.__on_r = () => {
|
|
1021
1021
|
o(), i(!0);
|
|
1022
|
-
} : e.__on_r = () => i(!0),
|
|
1022
|
+
} : e.__on_r = () => i(!0), ji();
|
|
1023
1023
|
}
|
|
1024
|
-
const
|
|
1025
|
-
function
|
|
1024
|
+
const Si = /* @__PURE__ */ new Set(), Sr = /* @__PURE__ */ new Set();
|
|
1025
|
+
function $o(e, t, r, i = {}) {
|
|
1026
1026
|
function o(n) {
|
|
1027
1027
|
if (i.capture || Rt.call(t, n), !n.cancelBubble)
|
|
1028
|
-
return
|
|
1028
|
+
return $i(() => r == null ? void 0 : r.call(this, n));
|
|
1029
1029
|
}
|
|
1030
|
-
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ?
|
|
1030
|
+
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? qr(() => {
|
|
1031
1031
|
t.addEventListener(e, o, i);
|
|
1032
1032
|
}) : t.addEventListener(e, o, i), o;
|
|
1033
1033
|
}
|
|
1034
1034
|
function He(e, t, r, i, o) {
|
|
1035
|
-
var n = { capture: i, passive: o }, u =
|
|
1036
|
-
(t === document.body || t === window || t === document) &&
|
|
1035
|
+
var n = { capture: i, passive: o }, u = $o(e, t, r, n);
|
|
1036
|
+
(t === document.body || t === window || t === document) && Br(() => {
|
|
1037
1037
|
t.removeEventListener(e, u, n);
|
|
1038
1038
|
});
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1040
|
+
function So(e) {
|
|
1041
1041
|
for (var t = 0; t < e.length; t++)
|
|
1042
|
-
|
|
1043
|
-
for (var r of
|
|
1042
|
+
Si.add(e[t]);
|
|
1043
|
+
for (var r of Sr)
|
|
1044
1044
|
r(e);
|
|
1045
1045
|
}
|
|
1046
1046
|
function Rt(e) {
|
|
@@ -1084,7 +1084,7 @@ function Rt(e) {
|
|
|
1084
1084
|
n.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
1085
1085
|
// -> the target could not have been disabled because it emits the event in the first place
|
|
1086
1086
|
e.target === n))
|
|
1087
|
-
if (
|
|
1087
|
+
if (Wa(_)) {
|
|
1088
1088
|
var [q, ...ce] = _;
|
|
1089
1089
|
q.apply(n, [e, ...ce]);
|
|
1090
1090
|
} else
|
|
@@ -1108,7 +1108,7 @@ function Rt(e) {
|
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
1110
|
}
|
|
1111
|
-
function
|
|
1111
|
+
function Gr(e) {
|
|
1112
1112
|
var t = document.createElement("template");
|
|
1113
1113
|
return t.innerHTML = e, t.content;
|
|
1114
1114
|
}
|
|
@@ -1121,15 +1121,15 @@ function Ie(e, t) {
|
|
|
1121
1121
|
}
|
|
1122
1122
|
// @__NO_SIDE_EFFECTS__
|
|
1123
1123
|
function we(e, t) {
|
|
1124
|
-
var r = (t &
|
|
1124
|
+
var r = (t & lo) !== 0, i = (t & so) !== 0, o, n = !e.startsWith("<!>");
|
|
1125
1125
|
return () => {
|
|
1126
|
-
if (
|
|
1127
|
-
return Ie(
|
|
1128
|
-
o === void 0 && (o =
|
|
1126
|
+
if (z)
|
|
1127
|
+
return Ie(N, null), N;
|
|
1128
|
+
o === void 0 && (o = Gr(n ? e : "<!>" + e), r || (o = /** @type {Node} */
|
|
1129
1129
|
/* @__PURE__ */ pe(o)));
|
|
1130
1130
|
var u = (
|
|
1131
1131
|
/** @type {TemplateNode} */
|
|
1132
|
-
i ||
|
|
1132
|
+
i || bi ? document.importNode(o, !0) : o.cloneNode(!0)
|
|
1133
1133
|
);
|
|
1134
1134
|
if (r) {
|
|
1135
1135
|
var s = (
|
|
@@ -1146,15 +1146,15 @@ function we(e, t) {
|
|
|
1146
1146
|
};
|
|
1147
1147
|
}
|
|
1148
1148
|
// @__NO_SIDE_EFFECTS__
|
|
1149
|
-
function
|
|
1149
|
+
function hr(e, t, r = "svg") {
|
|
1150
1150
|
var i = !e.startsWith("<!>"), o = `<${r}>${i ? e : "<!>" + e}</${r}>`, n;
|
|
1151
1151
|
return () => {
|
|
1152
|
-
if (
|
|
1153
|
-
return Ie(
|
|
1152
|
+
if (z)
|
|
1153
|
+
return Ie(N, null), N;
|
|
1154
1154
|
if (!n) {
|
|
1155
1155
|
var u = (
|
|
1156
1156
|
/** @type {DocumentFragment} */
|
|
1157
|
-
|
|
1157
|
+
Gr(o)
|
|
1158
1158
|
), s = (
|
|
1159
1159
|
/** @type {Element} */
|
|
1160
1160
|
/* @__PURE__ */ pe(u)
|
|
@@ -1169,15 +1169,15 @@ function dr(e, t, r = "svg") {
|
|
|
1169
1169
|
return Ie(c, c), c;
|
|
1170
1170
|
};
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1173
|
-
if (
|
|
1174
|
-
return Ie(
|
|
1175
|
-
var e = document.createDocumentFragment(), t = document.createComment(""), r =
|
|
1172
|
+
function Gt() {
|
|
1173
|
+
if (z)
|
|
1174
|
+
return Ie(N, null), N;
|
|
1175
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), r = fr();
|
|
1176
1176
|
return e.append(t, r), Ie(t, r), e;
|
|
1177
1177
|
}
|
|
1178
1178
|
function O(e, t) {
|
|
1179
|
-
if (
|
|
1180
|
-
$.nodes_end =
|
|
1179
|
+
if (z) {
|
|
1180
|
+
$.nodes_end = N, yt();
|
|
1181
1181
|
return;
|
|
1182
1182
|
}
|
|
1183
1183
|
e !== null && e.before(
|
|
@@ -1185,22 +1185,22 @@ function O(e, t) {
|
|
|
1185
1185
|
t
|
|
1186
1186
|
);
|
|
1187
1187
|
}
|
|
1188
|
-
function
|
|
1188
|
+
function Po(e, t) {
|
|
1189
1189
|
var r = t == null ? "" : typeof t == "object" ? t + "" : t;
|
|
1190
1190
|
r !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = r, e.nodeValue = r + "");
|
|
1191
1191
|
}
|
|
1192
|
-
function
|
|
1193
|
-
return
|
|
1192
|
+
function Pi(e, t) {
|
|
1193
|
+
return Ni(e, t);
|
|
1194
1194
|
}
|
|
1195
|
-
function
|
|
1196
|
-
|
|
1197
|
-
const r = t.target, i =
|
|
1195
|
+
function No(e, t) {
|
|
1196
|
+
Vr(), t.intro = t.intro ?? !1;
|
|
1197
|
+
const r = t.target, i = z, o = N;
|
|
1198
1198
|
try {
|
|
1199
1199
|
for (var n = (
|
|
1200
1200
|
/** @type {TemplateNode} */
|
|
1201
1201
|
/* @__PURE__ */ pe(r)
|
|
1202
1202
|
); n && (n.nodeType !== 8 || /** @type {Comment} */
|
|
1203
|
-
n.data !==
|
|
1203
|
+
n.data !== Hr); )
|
|
1204
1204
|
n = /** @type {TemplateNode} */
|
|
1205
1205
|
/* @__PURE__ */ Ge(n);
|
|
1206
1206
|
if (!n)
|
|
@@ -1209,52 +1209,52 @@ function Po(e, t) {
|
|
|
1209
1209
|
/** @type {Comment} */
|
|
1210
1210
|
n
|
|
1211
1211
|
), yt();
|
|
1212
|
-
const u =
|
|
1213
|
-
if (
|
|
1214
|
-
|
|
1215
|
-
throw
|
|
1212
|
+
const u = Ni(e, { ...t, anchor: n });
|
|
1213
|
+
if (N === null || N.nodeType !== 8 || /** @type {Comment} */
|
|
1214
|
+
N.data !== oi)
|
|
1215
|
+
throw ur(), pt;
|
|
1216
1216
|
return vt(!1), /** @type {Exports} */
|
|
1217
1217
|
u;
|
|
1218
1218
|
} catch (u) {
|
|
1219
1219
|
if (u === pt)
|
|
1220
|
-
return t.recover === !1 &&
|
|
1220
|
+
return t.recover === !1 && Xn(), Vr(), vo(r), vt(!1), Pi(e, t);
|
|
1221
1221
|
throw u;
|
|
1222
1222
|
} finally {
|
|
1223
1223
|
vt(i), Be(o);
|
|
1224
1224
|
}
|
|
1225
1225
|
}
|
|
1226
1226
|
const ht = /* @__PURE__ */ new Map();
|
|
1227
|
-
function
|
|
1228
|
-
|
|
1227
|
+
function Ni(e, { target: t, anchor: r, props: i = {}, events: o, context: n, intro: u = !0 }) {
|
|
1228
|
+
Vr();
|
|
1229
1229
|
var s = /* @__PURE__ */ new Set(), c = (h) => {
|
|
1230
1230
|
for (var v = 0; v < h.length; v++) {
|
|
1231
1231
|
var k = h[v];
|
|
1232
1232
|
if (!s.has(k)) {
|
|
1233
1233
|
s.add(k);
|
|
1234
|
-
var V =
|
|
1234
|
+
var V = Vo(k);
|
|
1235
1235
|
t.addEventListener(k, Rt, { passive: V });
|
|
1236
1236
|
var _ = ht.get(k);
|
|
1237
1237
|
_ === void 0 ? (document.addEventListener(k, Rt, { passive: V }), ht.set(k, 1)) : ht.set(k, _ + 1);
|
|
1238
1238
|
}
|
|
1239
1239
|
}
|
|
1240
1240
|
};
|
|
1241
|
-
c(zn(
|
|
1242
|
-
var d = void 0, p =
|
|
1243
|
-
var h = r ?? t.appendChild(
|
|
1244
|
-
return
|
|
1241
|
+
c(zn(Si)), Sr.add(c);
|
|
1242
|
+
var d = void 0, p = Eo(() => {
|
|
1243
|
+
var h = r ?? t.appendChild(fr());
|
|
1244
|
+
return jr(() => {
|
|
1245
1245
|
if (n) {
|
|
1246
|
-
|
|
1246
|
+
si({});
|
|
1247
1247
|
var v = (
|
|
1248
1248
|
/** @type {ComponentContext} */
|
|
1249
1249
|
ie
|
|
1250
1250
|
);
|
|
1251
1251
|
v.c = n;
|
|
1252
1252
|
}
|
|
1253
|
-
o && (i.$$events = o),
|
|
1253
|
+
o && (i.$$events = o), z && Ie(
|
|
1254
1254
|
/** @type {TemplateNode} */
|
|
1255
1255
|
h,
|
|
1256
1256
|
null
|
|
1257
|
-
), d = e(h, i) || {},
|
|
1257
|
+
), d = e(h, i) || {}, z && ($.nodes_end = N), n && ui();
|
|
1258
1258
|
}), () => {
|
|
1259
1259
|
var V;
|
|
1260
1260
|
for (var v of s) {
|
|
@@ -1265,44 +1265,44 @@ function Si(e, { target: t, anchor: r, props: i = {}, events: o, context: n, int
|
|
|
1265
1265
|
);
|
|
1266
1266
|
--k === 0 ? (document.removeEventListener(v, Rt), ht.delete(v)) : ht.set(v, k);
|
|
1267
1267
|
}
|
|
1268
|
-
|
|
1268
|
+
Sr.delete(c), h !== r && ((V = h.parentNode) == null || V.removeChild(h));
|
|
1269
1269
|
};
|
|
1270
1270
|
});
|
|
1271
|
-
return
|
|
1271
|
+
return Pr.set(d, p), d;
|
|
1272
1272
|
}
|
|
1273
|
-
let
|
|
1273
|
+
let Pr = /* @__PURE__ */ new WeakMap();
|
|
1274
1274
|
function zo(e, t) {
|
|
1275
|
-
const r =
|
|
1276
|
-
return r ? (
|
|
1275
|
+
const r = Pr.get(e);
|
|
1276
|
+
return r ? (Pr.delete(e), r(t)) : Promise.resolve();
|
|
1277
1277
|
}
|
|
1278
1278
|
function W(e, t, [r, i] = [0, 0]) {
|
|
1279
|
-
|
|
1280
|
-
var o = e, n = null, u = null, s = ue, c = r > 0 ?
|
|
1279
|
+
z && r === 0 && yt();
|
|
1280
|
+
var o = e, n = null, u = null, s = ue, c = r > 0 ? Dr : 0, d = !1;
|
|
1281
1281
|
const p = (v, k = !0) => {
|
|
1282
1282
|
d = !0, h(k, v);
|
|
1283
1283
|
}, h = (v, k) => {
|
|
1284
1284
|
if (s === (s = v)) return;
|
|
1285
1285
|
let V = !1;
|
|
1286
|
-
if (
|
|
1286
|
+
if (z && i !== -1) {
|
|
1287
1287
|
if (r === 0) {
|
|
1288
1288
|
const q = (
|
|
1289
1289
|
/** @type {Comment} */
|
|
1290
1290
|
o.data
|
|
1291
1291
|
);
|
|
1292
|
-
q ===
|
|
1292
|
+
q === Hr ? i = 0 : q === ni ? i = 1 / 0 : (i = parseInt(q.substring(1)), i !== i && (i = s ? 1 / 0 : -1));
|
|
1293
1293
|
}
|
|
1294
1294
|
const _ = i > r;
|
|
1295
|
-
!!s === _ && (o =
|
|
1295
|
+
!!s === _ && (o = go(), Be(o), vt(!1), V = !0, i = -1);
|
|
1296
1296
|
}
|
|
1297
|
-
s ? (n ?
|
|
1297
|
+
s ? (n ? qa(n) : k && (n = jr(() => k(o))), u && $r(u, () => {
|
|
1298
1298
|
u = null;
|
|
1299
|
-
})) : (u ?
|
|
1299
|
+
})) : (u ? qa(u) : k && (u = jr(() => k(o, [r + 1, i]))), n && $r(n, () => {
|
|
1300
1300
|
n = null;
|
|
1301
1301
|
})), V && vt(!0);
|
|
1302
1302
|
};
|
|
1303
|
-
|
|
1303
|
+
Li(() => {
|
|
1304
1304
|
d = !1, t(p), d || h(null, null);
|
|
1305
|
-
}, c),
|
|
1305
|
+
}, c), z && (o = N);
|
|
1306
1306
|
}
|
|
1307
1307
|
function Xe(e, t, r = !1, i = !1, o = !1) {
|
|
1308
1308
|
var n = e, u = "";
|
|
@@ -1312,28 +1312,28 @@ function Xe(e, t, r = !1, i = !1, o = !1) {
|
|
|
1312
1312
|
$
|
|
1313
1313
|
);
|
|
1314
1314
|
if (u === (u = t() ?? "")) {
|
|
1315
|
-
|
|
1315
|
+
z && yt();
|
|
1316
1316
|
return;
|
|
1317
1317
|
}
|
|
1318
|
-
if (s.nodes_start !== null && (
|
|
1318
|
+
if (s.nodes_start !== null && (Ti(
|
|
1319
1319
|
s.nodes_start,
|
|
1320
1320
|
/** @type {TemplateNode} */
|
|
1321
1321
|
s.nodes_end
|
|
1322
1322
|
), s.nodes_start = s.nodes_end = null), u !== "") {
|
|
1323
|
-
if (
|
|
1324
|
-
|
|
1323
|
+
if (z) {
|
|
1324
|
+
N.data;
|
|
1325
1325
|
for (var c = yt(), d = c; c !== null && (c.nodeType !== 8 || /** @type {Comment} */
|
|
1326
1326
|
c.data !== ""); )
|
|
1327
1327
|
d = c, c = /** @type {TemplateNode} */
|
|
1328
1328
|
/* @__PURE__ */ Ge(c);
|
|
1329
1329
|
if (c === null)
|
|
1330
|
-
throw
|
|
1331
|
-
Ie(
|
|
1330
|
+
throw ur(), pt;
|
|
1331
|
+
Ie(N, d), n = Be(c);
|
|
1332
1332
|
return;
|
|
1333
1333
|
}
|
|
1334
1334
|
var p = u + "";
|
|
1335
1335
|
r ? p = `<svg>${p}</svg>` : i && (p = `<math>${p}</math>`);
|
|
1336
|
-
var h =
|
|
1336
|
+
var h = Gr(p);
|
|
1337
1337
|
if ((r || i) && (h = /** @type {Element} */
|
|
1338
1338
|
/* @__PURE__ */ pe(h)), Ie(
|
|
1339
1339
|
/** @type {TemplateNode} */
|
|
@@ -1351,15 +1351,15 @@ function Xe(e, t, r = !1, i = !1, o = !1) {
|
|
|
1351
1351
|
}
|
|
1352
1352
|
});
|
|
1353
1353
|
}
|
|
1354
|
-
function
|
|
1354
|
+
function Do(e, t, r, i, o) {
|
|
1355
1355
|
var s;
|
|
1356
|
-
|
|
1356
|
+
z && yt();
|
|
1357
1357
|
var n = (s = t.$$slots) == null ? void 0 : s[r], u = !1;
|
|
1358
1358
|
n === !0 && (n = t.children, u = !0), n === void 0 || n(e, u ? () => i : i);
|
|
1359
1359
|
}
|
|
1360
|
-
const
|
|
1360
|
+
const Ha = [...`
|
|
1361
1361
|
\r\f \v\uFEFF`];
|
|
1362
|
-
function
|
|
1362
|
+
function qo(e, t, r) {
|
|
1363
1363
|
var i = "" + e;
|
|
1364
1364
|
if (r) {
|
|
1365
1365
|
for (var o in r)
|
|
@@ -1368,16 +1368,16 @@ function Do(e, t, r) {
|
|
|
1368
1368
|
else if (i.length)
|
|
1369
1369
|
for (var n = o.length, u = 0; (u = i.indexOf(o, u)) >= 0; ) {
|
|
1370
1370
|
var s = u + n;
|
|
1371
|
-
(u === 0 ||
|
|
1371
|
+
(u === 0 || Ha.includes(i[u - 1])) && (s === i.length || Ha.includes(i[s])) ? i = (u === 0 ? "" : i.substring(0, u)) + i.substring(s + 1) : u = s;
|
|
1372
1372
|
}
|
|
1373
1373
|
}
|
|
1374
1374
|
return i === "" ? null : i;
|
|
1375
1375
|
}
|
|
1376
|
-
function
|
|
1376
|
+
function Oo(e, t, r, i, o, n) {
|
|
1377
1377
|
var u = e.__className;
|
|
1378
|
-
if (
|
|
1379
|
-
var s =
|
|
1380
|
-
(!
|
|
1378
|
+
if (z || u !== r || u === void 0) {
|
|
1379
|
+
var s = qo(r, i, n);
|
|
1380
|
+
(!z || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : e.className = s), e.__className = r;
|
|
1381
1381
|
} else if (n && o !== n)
|
|
1382
1382
|
for (var c in n) {
|
|
1383
1383
|
var d = !!n[c];
|
|
@@ -1385,9 +1385,9 @@ function qo(e, t, r, i, o, n) {
|
|
|
1385
1385
|
}
|
|
1386
1386
|
return n;
|
|
1387
1387
|
}
|
|
1388
|
-
const
|
|
1389
|
-
function
|
|
1390
|
-
if (
|
|
1388
|
+
const Ho = Symbol("is custom element"), Fo = Symbol("is html");
|
|
1389
|
+
function Fa(e) {
|
|
1390
|
+
if (z) {
|
|
1391
1391
|
var t = !1, r = () => {
|
|
1392
1392
|
if (!t) {
|
|
1393
1393
|
if (t = !0, e.hasAttribute("value")) {
|
|
@@ -1400,97 +1400,97 @@ function Oa(e) {
|
|
|
1400
1400
|
}
|
|
1401
1401
|
}
|
|
1402
1402
|
};
|
|
1403
|
-
e.__on_r = r,
|
|
1403
|
+
e.__on_r = r, Zn(r), ji();
|
|
1404
1404
|
}
|
|
1405
1405
|
}
|
|
1406
|
-
function
|
|
1407
|
-
var r =
|
|
1406
|
+
function Mo(e, t) {
|
|
1407
|
+
var r = zi(e);
|
|
1408
1408
|
r.value === (r.value = // treat null and undefined the same for the initial value
|
|
1409
1409
|
t ?? void 0) || // @ts-expect-error
|
|
1410
1410
|
// `progress` elements always need their value set when it's `0`
|
|
1411
1411
|
e.value === t && (t !== 0 || e.nodeName !== "PROGRESS") || (e.value = t ?? "");
|
|
1412
1412
|
}
|
|
1413
1413
|
function R(e, t, r, i) {
|
|
1414
|
-
var o =
|
|
1415
|
-
|
|
1414
|
+
var o = zi(e);
|
|
1415
|
+
z && (o[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === "LINK") || o[t] !== (o[t] = r) && (t === "loading" && (e[Bn] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Bo(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
|
|
1416
1416
|
}
|
|
1417
|
-
function
|
|
1417
|
+
function zi(e) {
|
|
1418
1418
|
return (
|
|
1419
1419
|
/** @type {Record<string | symbol, unknown>} **/
|
|
1420
1420
|
// @ts-expect-error
|
|
1421
1421
|
e.__attributes ?? (e.__attributes = {
|
|
1422
|
-
[
|
|
1423
|
-
[
|
|
1422
|
+
[Ho]: e.nodeName.includes("-"),
|
|
1423
|
+
[Fo]: e.namespaceURI === uo
|
|
1424
1424
|
})
|
|
1425
1425
|
);
|
|
1426
1426
|
}
|
|
1427
|
-
var
|
|
1428
|
-
function
|
|
1429
|
-
var t =
|
|
1427
|
+
var Ma = /* @__PURE__ */ new Map();
|
|
1428
|
+
function Bo(e) {
|
|
1429
|
+
var t = Ma.get(e.nodeName);
|
|
1430
1430
|
if (t) return t;
|
|
1431
|
-
|
|
1431
|
+
Ma.set(e.nodeName, t = []);
|
|
1432
1432
|
for (var r, i = e, o = Element.prototype; o !== i; ) {
|
|
1433
|
-
r =
|
|
1433
|
+
r = Dn(i);
|
|
1434
1434
|
for (var n in r)
|
|
1435
1435
|
r[n].set && t.push(n);
|
|
1436
|
-
i =
|
|
1436
|
+
i = Ka(i);
|
|
1437
1437
|
}
|
|
1438
1438
|
return t;
|
|
1439
1439
|
}
|
|
1440
|
-
function
|
|
1441
|
-
|
|
1440
|
+
function Uo(e, t, r = t) {
|
|
1441
|
+
jo(e, "change", (i) => {
|
|
1442
1442
|
var o = i ? e.defaultChecked : e.checked;
|
|
1443
1443
|
r(o);
|
|
1444
1444
|
}), // If we are hydrating and the value has since changed,
|
|
1445
1445
|
// then use the update value from the input instead.
|
|
1446
|
-
(
|
|
1447
|
-
tt(t) == null) && r(e.checked),
|
|
1446
|
+
(z && e.defaultChecked !== e.checked || // If defaultChecked is set, then checked == defaultChecked
|
|
1447
|
+
tt(t) == null) && r(e.checked), Zr(() => {
|
|
1448
1448
|
var i = t();
|
|
1449
1449
|
e.checked = !!i;
|
|
1450
1450
|
});
|
|
1451
1451
|
}
|
|
1452
|
-
function
|
|
1452
|
+
function Ba(e, t) {
|
|
1453
1453
|
return e === t || (e == null ? void 0 : e[jt]) === t;
|
|
1454
1454
|
}
|
|
1455
|
-
function
|
|
1456
|
-
return
|
|
1455
|
+
function Yt(e = {}, t, r, i) {
|
|
1456
|
+
return Ur(() => {
|
|
1457
1457
|
var o, n;
|
|
1458
|
-
return
|
|
1458
|
+
return Zr(() => {
|
|
1459
1459
|
o = n, n = [], tt(() => {
|
|
1460
|
-
e !== r(...n) && (t(e, ...n), o &&
|
|
1460
|
+
e !== r(...n) && (t(e, ...n), o && Ba(r(...o), e) && t(null, ...o));
|
|
1461
1461
|
});
|
|
1462
1462
|
}), () => {
|
|
1463
|
-
|
|
1464
|
-
n &&
|
|
1463
|
+
qr(() => {
|
|
1464
|
+
n && Ba(r(...n), e) && t(null, ...n);
|
|
1465
1465
|
});
|
|
1466
1466
|
};
|
|
1467
1467
|
}), e;
|
|
1468
1468
|
}
|
|
1469
|
-
let
|
|
1470
|
-
function
|
|
1469
|
+
let Wt = !1, Nr = Symbol();
|
|
1470
|
+
function Zo(e, t, r) {
|
|
1471
1471
|
const i = r[t] ?? (r[t] = {
|
|
1472
1472
|
store: null,
|
|
1473
|
-
source: /* @__PURE__ */
|
|
1473
|
+
source: /* @__PURE__ */ Fr(void 0),
|
|
1474
1474
|
unsubscribe: bt
|
|
1475
1475
|
});
|
|
1476
|
-
if (i.store !== e && !(
|
|
1476
|
+
if (i.store !== e && !(Nr in r))
|
|
1477
1477
|
if (i.unsubscribe(), i.store = e ?? null, e == null)
|
|
1478
1478
|
i.source.v = void 0, i.unsubscribe = bt;
|
|
1479
1479
|
else {
|
|
1480
1480
|
var o = !0;
|
|
1481
|
-
i.unsubscribe =
|
|
1481
|
+
i.unsubscribe = Oi(e, (n) => {
|
|
1482
1482
|
o ? i.source.v = n : y(i.source, n);
|
|
1483
1483
|
}), o = !1;
|
|
1484
1484
|
}
|
|
1485
|
-
return e &&
|
|
1485
|
+
return e && Nr in r ? Xt(e) : l(i.source);
|
|
1486
1486
|
}
|
|
1487
|
-
function
|
|
1487
|
+
function Go() {
|
|
1488
1488
|
const e = {};
|
|
1489
1489
|
function t() {
|
|
1490
|
-
|
|
1490
|
+
Br(() => {
|
|
1491
1491
|
for (var r in e)
|
|
1492
1492
|
e[r].unsubscribe();
|
|
1493
|
-
St(e,
|
|
1493
|
+
St(e, Nr, {
|
|
1494
1494
|
enumerable: !1,
|
|
1495
1495
|
value: !0
|
|
1496
1496
|
});
|
|
@@ -1498,27 +1498,27 @@ function Zo() {
|
|
|
1498
1498
|
}
|
|
1499
1499
|
return [e, t];
|
|
1500
1500
|
}
|
|
1501
|
-
function
|
|
1502
|
-
var t =
|
|
1501
|
+
function Yo(e) {
|
|
1502
|
+
var t = Wt;
|
|
1503
1503
|
try {
|
|
1504
|
-
return
|
|
1504
|
+
return Wt = !1, [e(), Wt];
|
|
1505
1505
|
} finally {
|
|
1506
|
-
|
|
1506
|
+
Wt = t;
|
|
1507
1507
|
}
|
|
1508
1508
|
}
|
|
1509
|
-
function
|
|
1509
|
+
function Ua(e) {
|
|
1510
1510
|
var t;
|
|
1511
1511
|
return ((t = e.ctx) == null ? void 0 : t.d) ?? !1;
|
|
1512
1512
|
}
|
|
1513
1513
|
function x(e, t, r, i) {
|
|
1514
1514
|
var nt;
|
|
1515
|
-
var o = (r &
|
|
1516
|
-
u ? [d, c] =
|
|
1515
|
+
var o = (r & ao) !== 0, n = !0, u = (r & no) !== 0, s = (r & oo) !== 0, c = !1, d;
|
|
1516
|
+
u ? [d, c] = Yo(() => (
|
|
1517
1517
|
/** @type {V} */
|
|
1518
1518
|
e[t]
|
|
1519
1519
|
)) : d = /** @type {V} */
|
|
1520
1520
|
e[t];
|
|
1521
|
-
var p = jt in e ||
|
|
1521
|
+
var p = jt in e || ei in e, h = u && (((nt = Qe(e, t)) == null ? void 0 : nt.set) ?? (p && t in e && ((H) => e[t] = H))) || void 0, v = (
|
|
1522
1522
|
/** @type {V} */
|
|
1523
1523
|
i
|
|
1524
1524
|
), k = !0, V = !1, _ = () => (V = !0, k && (k = !1, s ? v = tt(
|
|
@@ -1526,7 +1526,7 @@ function x(e, t, r, i) {
|
|
|
1526
1526
|
i
|
|
1527
1527
|
) : v = /** @type {V} */
|
|
1528
1528
|
i), v);
|
|
1529
|
-
d === void 0 && i !== void 0 && (h && n &&
|
|
1529
|
+
d === void 0 && i !== void 0 && (h && n && Qn(), d = _(), h && h(d));
|
|
1530
1530
|
var q;
|
|
1531
1531
|
if (q = () => {
|
|
1532
1532
|
var H = (
|
|
@@ -1534,7 +1534,7 @@ function x(e, t, r, i) {
|
|
|
1534
1534
|
e[t]
|
|
1535
1535
|
);
|
|
1536
1536
|
return H === void 0 ? _() : (k = !0, V = !1, H);
|
|
1537
|
-
}, (r &
|
|
1537
|
+
}, (r & io) === 0)
|
|
1538
1538
|
return q;
|
|
1539
1539
|
if (h) {
|
|
1540
1540
|
var ce = e.$$legacy;
|
|
@@ -1542,28 +1542,28 @@ function x(e, t, r, i) {
|
|
|
1542
1542
|
return arguments.length > 0 ? ((!oe || ce || c) && h(oe ? q() : H), H) : q();
|
|
1543
1543
|
};
|
|
1544
1544
|
}
|
|
1545
|
-
var K = !1, ee = /* @__PURE__ */
|
|
1545
|
+
var K = !1, ee = /* @__PURE__ */ Fr(d), J = /* @__PURE__ */ sr(() => {
|
|
1546
1546
|
var H = q(), oe = l(ee);
|
|
1547
1547
|
return K ? (K = !1, oe) : ee.v = H;
|
|
1548
1548
|
});
|
|
1549
|
-
return u && l(J), o || (J.equals =
|
|
1549
|
+
return u && l(J), o || (J.equals = Or), function(H, oe) {
|
|
1550
1550
|
if (arguments.length > 0) {
|
|
1551
1551
|
const me = oe ? l(J) : u ? Fe(H) : H;
|
|
1552
1552
|
if (!J.equals(me)) {
|
|
1553
|
-
if (K = !0, y(ee, me), V && v !== void 0 && (v = me),
|
|
1553
|
+
if (K = !0, y(ee, me), V && v !== void 0 && (v = me), Ua(J))
|
|
1554
1554
|
return H;
|
|
1555
1555
|
tt(() => l(J));
|
|
1556
1556
|
}
|
|
1557
1557
|
return H;
|
|
1558
1558
|
}
|
|
1559
|
-
return
|
|
1559
|
+
return Ua(J) ? J.v : l(J);
|
|
1560
1560
|
};
|
|
1561
1561
|
}
|
|
1562
|
-
function
|
|
1563
|
-
return new
|
|
1562
|
+
function Wo(e) {
|
|
1563
|
+
return new Ko(e);
|
|
1564
1564
|
}
|
|
1565
1565
|
var $e, be;
|
|
1566
|
-
class
|
|
1566
|
+
class Ko {
|
|
1567
1567
|
/**
|
|
1568
1568
|
* @param {ComponentConstructorOptions & {
|
|
1569
1569
|
* component: any;
|
|
@@ -1571,12 +1571,12 @@ class Wo {
|
|
|
1571
1571
|
*/
|
|
1572
1572
|
constructor(t) {
|
|
1573
1573
|
/** @type {any} */
|
|
1574
|
-
|
|
1574
|
+
Cr(this, $e);
|
|
1575
1575
|
/** @type {Record<string, any>} */
|
|
1576
|
-
|
|
1576
|
+
Cr(this, be);
|
|
1577
1577
|
var n;
|
|
1578
1578
|
var r = /* @__PURE__ */ new Map(), i = (u, s) => {
|
|
1579
|
-
var c = /* @__PURE__ */
|
|
1579
|
+
var c = /* @__PURE__ */ Fr(s);
|
|
1580
1580
|
return r.set(u, c), c;
|
|
1581
1581
|
};
|
|
1582
1582
|
const o = new Proxy(
|
|
@@ -1586,21 +1586,21 @@ class Wo {
|
|
|
1586
1586
|
return l(r.get(s) ?? i(s, Reflect.get(u, s)));
|
|
1587
1587
|
},
|
|
1588
1588
|
has(u, s) {
|
|
1589
|
-
return s ===
|
|
1589
|
+
return s === ei ? !0 : (l(r.get(s) ?? i(s, Reflect.get(u, s))), Reflect.has(u, s));
|
|
1590
1590
|
},
|
|
1591
1591
|
set(u, s, c) {
|
|
1592
1592
|
return y(r.get(s) ?? i(s, c), c), Reflect.set(u, s, c);
|
|
1593
1593
|
}
|
|
1594
1594
|
}
|
|
1595
1595
|
);
|
|
1596
|
-
|
|
1596
|
+
Lr(this, be, (t.hydrate ? No : Pi)(t.component, {
|
|
1597
1597
|
target: t.target,
|
|
1598
1598
|
anchor: t.anchor,
|
|
1599
1599
|
props: o,
|
|
1600
1600
|
context: t.context,
|
|
1601
1601
|
intro: t.intro ?? !1,
|
|
1602
1602
|
recover: t.recover
|
|
1603
|
-
})), (!((n = t == null ? void 0 : t.props) != null && n.$$host) || t.sync === !1) && E(),
|
|
1603
|
+
})), (!((n = t == null ? void 0 : t.props) != null && n.$$host) || t.sync === !1) && E(), Lr(this, $e, o.$$events);
|
|
1604
1604
|
for (const u of Object.keys(se(this, be)))
|
|
1605
1605
|
u === "$set" || u === "$destroy" || u === "$on" || St(this, u, {
|
|
1606
1606
|
get() {
|
|
@@ -1643,8 +1643,8 @@ class Wo {
|
|
|
1643
1643
|
}
|
|
1644
1644
|
}
|
|
1645
1645
|
$e = new WeakMap(), be = new WeakMap();
|
|
1646
|
-
let
|
|
1647
|
-
typeof HTMLElement == "function" && (
|
|
1646
|
+
let Di;
|
|
1647
|
+
typeof HTMLElement == "function" && (Di = class extends HTMLElement {
|
|
1648
1648
|
/**
|
|
1649
1649
|
* @param {*} $$componentCtor
|
|
1650
1650
|
* @param {*} $$slots
|
|
@@ -1707,16 +1707,16 @@ typeof HTMLElement == "function" && (zi = class extends HTMLElement {
|
|
|
1707
1707
|
};
|
|
1708
1708
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
1709
1709
|
return;
|
|
1710
|
-
const r = {}, i =
|
|
1710
|
+
const r = {}, i = Jo(this);
|
|
1711
1711
|
for (const o of this.$$s)
|
|
1712
1712
|
o in i && (o === "default" && !this.$$d.children ? (this.$$d.children = t(o), r.default = !0) : r[o] = t(o));
|
|
1713
1713
|
for (const o of this.attributes) {
|
|
1714
1714
|
const n = this.$$g_p(o.name);
|
|
1715
|
-
n in this.$$d || (this.$$d[n] =
|
|
1715
|
+
n in this.$$d || (this.$$d[n] = Jt(n, o.value, this.$$p_d, "toProp"));
|
|
1716
1716
|
}
|
|
1717
1717
|
for (const o in this.$$p_d)
|
|
1718
1718
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
1719
|
-
this.$$c =
|
|
1719
|
+
this.$$c = Wo({
|
|
1720
1720
|
component: this.$$ctor,
|
|
1721
1721
|
target: this.shadowRoot || this,
|
|
1722
1722
|
props: {
|
|
@@ -1724,14 +1724,14 @@ typeof HTMLElement == "function" && (zi = class extends HTMLElement {
|
|
|
1724
1724
|
$$slots: r,
|
|
1725
1725
|
$$host: this
|
|
1726
1726
|
}
|
|
1727
|
-
}), this.$$me =
|
|
1728
|
-
|
|
1727
|
+
}), this.$$me = Lo(() => {
|
|
1728
|
+
Zr(() => {
|
|
1729
1729
|
var o;
|
|
1730
1730
|
this.$$r = !0;
|
|
1731
|
-
for (const n of
|
|
1731
|
+
for (const n of Qt(this.$$c)) {
|
|
1732
1732
|
if (!((o = this.$$p_d[n]) != null && o.reflect)) continue;
|
|
1733
1733
|
this.$$d[n] = this.$$c[n];
|
|
1734
|
-
const u =
|
|
1734
|
+
const u = Jt(
|
|
1735
1735
|
n,
|
|
1736
1736
|
this.$$d[n],
|
|
1737
1737
|
this.$$p_d,
|
|
@@ -1759,7 +1759,7 @@ typeof HTMLElement == "function" && (zi = class extends HTMLElement {
|
|
|
1759
1759
|
*/
|
|
1760
1760
|
attributeChangedCallback(t, r, i) {
|
|
1761
1761
|
var o;
|
|
1762
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
1762
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Jt(t, i, this.$$p_d, "toProp"), (o = this.$$c) == null || o.$set({ [t]: this.$$d[t] }));
|
|
1763
1763
|
}
|
|
1764
1764
|
disconnectedCallback() {
|
|
1765
1765
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -1770,12 +1770,12 @@ typeof HTMLElement == "function" && (zi = class extends HTMLElement {
|
|
|
1770
1770
|
* @param {string} attribute_name
|
|
1771
1771
|
*/
|
|
1772
1772
|
$$g_p(t) {
|
|
1773
|
-
return
|
|
1773
|
+
return Qt(this.$$p_d).find(
|
|
1774
1774
|
(r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
|
|
1775
1775
|
) || t;
|
|
1776
1776
|
}
|
|
1777
1777
|
});
|
|
1778
|
-
function
|
|
1778
|
+
function Jt(e, t, r, i) {
|
|
1779
1779
|
var n;
|
|
1780
1780
|
const o = (n = r[e]) == null ? void 0 : n.type;
|
|
1781
1781
|
if (t = o === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !r[e])
|
|
@@ -1806,7 +1806,7 @@ function Kt(e, t, r, i) {
|
|
|
1806
1806
|
return t;
|
|
1807
1807
|
}
|
|
1808
1808
|
}
|
|
1809
|
-
function
|
|
1809
|
+
function Jo(e) {
|
|
1810
1810
|
const t = {};
|
|
1811
1811
|
return e.childNodes.forEach((r) => {
|
|
1812
1812
|
t[
|
|
@@ -1815,25 +1815,25 @@ function Ko(e) {
|
|
|
1815
1815
|
] = !0;
|
|
1816
1816
|
}), t;
|
|
1817
1817
|
}
|
|
1818
|
-
function
|
|
1819
|
-
let u = class extends
|
|
1818
|
+
function Xo(e, t, r, i, o, n) {
|
|
1819
|
+
let u = class extends Di {
|
|
1820
1820
|
constructor() {
|
|
1821
1821
|
super(e, r, o), this.$$p_d = t;
|
|
1822
1822
|
}
|
|
1823
1823
|
static get observedAttributes() {
|
|
1824
|
-
return
|
|
1824
|
+
return Qt(t).map(
|
|
1825
1825
|
(s) => (t[s].attribute || s).toLowerCase()
|
|
1826
1826
|
);
|
|
1827
1827
|
}
|
|
1828
1828
|
};
|
|
1829
|
-
return
|
|
1829
|
+
return Qt(t).forEach((s) => {
|
|
1830
1830
|
St(u.prototype, s, {
|
|
1831
1831
|
get() {
|
|
1832
1832
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
1833
1833
|
},
|
|
1834
1834
|
set(c) {
|
|
1835
1835
|
var h;
|
|
1836
|
-
c =
|
|
1836
|
+
c = Jt(s, c, t), this.$$d[s] = c;
|
|
1837
1837
|
var d = this.$$c;
|
|
1838
1838
|
if (d) {
|
|
1839
1839
|
var p = (h = Qe(d, s)) == null ? void 0 : h.get;
|
|
@@ -1851,8 +1851,8 @@ function Jo(e, t, r, i, o, n) {
|
|
|
1851
1851
|
}), e.element = /** @type {any} */
|
|
1852
1852
|
u, u;
|
|
1853
1853
|
}
|
|
1854
|
-
function
|
|
1855
|
-
ie === null &&
|
|
1854
|
+
function qi(e) {
|
|
1855
|
+
ie === null && li(), Rr(() => {
|
|
1856
1856
|
const t = tt(e);
|
|
1857
1857
|
if (typeof t == "function") return (
|
|
1858
1858
|
/** @type {() => void} */
|
|
@@ -1860,10 +1860,10 @@ function Ni(e) {
|
|
|
1860
1860
|
);
|
|
1861
1861
|
});
|
|
1862
1862
|
}
|
|
1863
|
-
function
|
|
1864
|
-
ie === null &&
|
|
1863
|
+
function Qo(e) {
|
|
1864
|
+
ie === null && li(), qi(() => () => tt(e));
|
|
1865
1865
|
}
|
|
1866
|
-
function
|
|
1866
|
+
function Oi(e, t, r) {
|
|
1867
1867
|
if (e == null)
|
|
1868
1868
|
return t(void 0), bt;
|
|
1869
1869
|
const i = tt(
|
|
@@ -1876,11 +1876,11 @@ function Di(e, t, r) {
|
|
|
1876
1876
|
return i.unsubscribe ? () => i.unsubscribe() : i;
|
|
1877
1877
|
}
|
|
1878
1878
|
const gt = [];
|
|
1879
|
-
function
|
|
1879
|
+
function el(e, t = bt) {
|
|
1880
1880
|
let r = null;
|
|
1881
1881
|
const i = /* @__PURE__ */ new Set();
|
|
1882
1882
|
function o(s) {
|
|
1883
|
-
if (
|
|
1883
|
+
if (ii(e, s) && (e = s, r)) {
|
|
1884
1884
|
const c = !gt.length;
|
|
1885
1885
|
for (const d of i)
|
|
1886
1886
|
d[1](), gt.push(d, e);
|
|
@@ -1908,21 +1908,21 @@ function Qo(e, t = bt) {
|
|
|
1908
1908
|
}
|
|
1909
1909
|
return { set: o, update: n, subscribe: u };
|
|
1910
1910
|
}
|
|
1911
|
-
function
|
|
1911
|
+
function Xt(e) {
|
|
1912
1912
|
let t;
|
|
1913
|
-
return
|
|
1913
|
+
return Oi(e, (r) => t = r)(), t;
|
|
1914
1914
|
}
|
|
1915
1915
|
globalThis.altchaPlugins = globalThis.altchaPlugins || [];
|
|
1916
1916
|
globalThis.altchaI18n = globalThis.altchaI18n || {
|
|
1917
|
-
get: (e) =>
|
|
1917
|
+
get: (e) => Xt(globalThis.altchaI18n.store)[e],
|
|
1918
1918
|
set: (e, t) => {
|
|
1919
|
-
Object.assign(
|
|
1919
|
+
Object.assign(Xt(globalThis.altchaI18n.store), {
|
|
1920
1920
|
[e]: t
|
|
1921
|
-
}), globalThis.altchaI18n.store.set(
|
|
1921
|
+
}), globalThis.altchaI18n.store.set(Xt(globalThis.altchaI18n.store));
|
|
1922
1922
|
},
|
|
1923
|
-
store:
|
|
1923
|
+
store: el({})
|
|
1924
1924
|
};
|
|
1925
|
-
const
|
|
1925
|
+
const tl = {
|
|
1926
1926
|
ariaLinkLabel: "Besoek Altcha.org",
|
|
1927
1927
|
enterCode: "Voer kode in",
|
|
1928
1928
|
enterCodeAria: "Voer die kode in wat jy hoor. Druk Spasie om die klank af te speel.",
|
|
@@ -1939,8 +1939,8 @@ const el = {
|
|
|
1939
1939
|
verifying: "Verifieer...",
|
|
1940
1940
|
waitAlert: "Verifieer... wag asseblief."
|
|
1941
1941
|
};
|
|
1942
|
-
globalThis.altchaI18n.set("af",
|
|
1943
|
-
const
|
|
1942
|
+
globalThis.altchaI18n.set("af", tl);
|
|
1943
|
+
const rl = {
|
|
1944
1944
|
ariaLinkLabel: "زور Altcha.org",
|
|
1945
1945
|
enterCode: "أدخل الرمز",
|
|
1946
1946
|
enterCodeAria: "أدخل الرمز الذي تسمعه. اضغط على المسافة لتشغيل الصوت.",
|
|
@@ -1957,8 +1957,8 @@ const tl = {
|
|
|
1957
1957
|
verifying: "جارٍ التحقق...",
|
|
1958
1958
|
waitAlert: "جارٍ التحقق... يرجى الانتظار."
|
|
1959
1959
|
};
|
|
1960
|
-
globalThis.altchaI18n.set("ar",
|
|
1961
|
-
const
|
|
1960
|
+
globalThis.altchaI18n.set("ar", rl);
|
|
1961
|
+
const al = {
|
|
1962
1962
|
ariaLinkLabel: "Посетете Altcha.org",
|
|
1963
1963
|
enterCode: "Въведете код",
|
|
1964
1964
|
enterCodeAria: "Въведете кода, който чувате. Натиснете Space за възпроизвеждане на аудио.",
|
|
@@ -1975,8 +1975,8 @@ const rl = {
|
|
|
1975
1975
|
verifying: "Проверява се...",
|
|
1976
1976
|
waitAlert: "Проверката е в процес... моля изчакайте."
|
|
1977
1977
|
};
|
|
1978
|
-
globalThis.altchaI18n.set("bg",
|
|
1979
|
-
const
|
|
1978
|
+
globalThis.altchaI18n.set("bg", al);
|
|
1979
|
+
const il = {
|
|
1980
1980
|
ariaLinkLabel: "Наведаць Altcha.org",
|
|
1981
1981
|
enterCode: "Увядзіце код",
|
|
1982
1982
|
enterCodeAria: "Увядзіце код, які вы чуеце. Націсніце прабел, каб прайграць аўдыё.",
|
|
@@ -1993,8 +1993,8 @@ const al = {
|
|
|
1993
1993
|
verifying: "Правяраем...",
|
|
1994
1994
|
waitAlert: "Праверка... калі ласка, пачакайце."
|
|
1995
1995
|
};
|
|
1996
|
-
globalThis.altchaI18n.set("be",
|
|
1997
|
-
const
|
|
1996
|
+
globalThis.altchaI18n.set("be", il);
|
|
1997
|
+
const nl = {
|
|
1998
1998
|
ariaLinkLabel: "Posjetite Altcha.org",
|
|
1999
1999
|
enterCode: "Unesite kod",
|
|
2000
2000
|
enterCodeAria: "Unesite kod koji čujete. Pritisnite Space da biste pustili zvuk.",
|
|
@@ -2011,8 +2011,8 @@ const il = {
|
|
|
2011
2011
|
verifying: "Verifikacija u toku...",
|
|
2012
2012
|
waitAlert: "Verifikacija u toku... molimo vas da sačekate."
|
|
2013
2013
|
};
|
|
2014
|
-
globalThis.altchaI18n.set("bs",
|
|
2015
|
-
const
|
|
2014
|
+
globalThis.altchaI18n.set("bs", nl);
|
|
2015
|
+
const ol = {
|
|
2016
2016
|
ariaLinkLabel: "Visita Altcha.org",
|
|
2017
2017
|
enterCode: "Introdueix el codi",
|
|
2018
2018
|
enterCodeAria: "Introdueix el codi que escoltes. Prem Espai per reproduir l’àudio.",
|
|
@@ -2029,8 +2029,8 @@ const nl = {
|
|
|
2029
2029
|
verifying: "Verificant...",
|
|
2030
2030
|
waitAlert: "Verificant... si us plau, espera."
|
|
2031
2031
|
};
|
|
2032
|
-
globalThis.altchaI18n.set("ca",
|
|
2033
|
-
const
|
|
2032
|
+
globalThis.altchaI18n.set("ca", ol);
|
|
2033
|
+
const ll = {
|
|
2034
2034
|
ariaLinkLabel: "Navštivte Altcha.org",
|
|
2035
2035
|
enterCode: "Zadejte kód",
|
|
2036
2036
|
enterCodeAria: "Zadejte kód, který slyšíte. Stisknutím mezerníku přehrajete zvuk.",
|
|
@@ -2047,8 +2047,8 @@ const ol = {
|
|
|
2047
2047
|
verifying: "Ověřování...",
|
|
2048
2048
|
waitAlert: "Probíhá ověření... prosím počkejte."
|
|
2049
2049
|
};
|
|
2050
|
-
globalThis.altchaI18n.set("cs",
|
|
2051
|
-
const
|
|
2050
|
+
globalThis.altchaI18n.set("cs", ll);
|
|
2051
|
+
const sl = {
|
|
2052
2052
|
ariaLinkLabel: "Besøg Altcha.org",
|
|
2053
2053
|
enterCode: "Indtast kode",
|
|
2054
2054
|
enterCodeAria: "Indtast den kode, du hører. Tryk på mellemrumstasten for at afspille lyd.",
|
|
@@ -2065,8 +2065,8 @@ const ll = {
|
|
|
2065
2065
|
verifying: "Verificerer...",
|
|
2066
2066
|
waitAlert: "Verificerer... vent venligst."
|
|
2067
2067
|
};
|
|
2068
|
-
globalThis.altchaI18n.set("da",
|
|
2069
|
-
const
|
|
2068
|
+
globalThis.altchaI18n.set("da", sl);
|
|
2069
|
+
const ul = {
|
|
2070
2070
|
ariaLinkLabel: "Besuche Altcha.org",
|
|
2071
2071
|
enterCode: "Code eingeben",
|
|
2072
2072
|
enterCodeAria: "Geben Sie den Code ein, den Sie hören. Drücken Sie die Leertaste, um die Audio abzuspielen.",
|
|
@@ -2083,8 +2083,8 @@ const sl = {
|
|
|
2083
2083
|
verifying: "Wird überprüft...",
|
|
2084
2084
|
waitAlert: "Überprüfung läuft... bitte warten."
|
|
2085
2085
|
};
|
|
2086
|
-
globalThis.altchaI18n.set("de",
|
|
2087
|
-
const
|
|
2086
|
+
globalThis.altchaI18n.set("de", ul);
|
|
2087
|
+
const fl = {
|
|
2088
2088
|
ariaLinkLabel: "Επισκεφθείτε το Altcha.org",
|
|
2089
2089
|
enterCode: "Εισαγάγετε κωδικό",
|
|
2090
2090
|
enterCodeAria: "Εισαγάγετε τον κωδικό που ακούτε. Πατήστε Space για να παίξετε τον ήχο.",
|
|
@@ -2101,8 +2101,8 @@ const ul = {
|
|
|
2101
2101
|
verifying: "Γίνεται επαλήθευση...",
|
|
2102
2102
|
waitAlert: "Γίνεται επαλήθευση... παρακαλώ περιμένετε."
|
|
2103
2103
|
};
|
|
2104
|
-
globalThis.altchaI18n.set("el",
|
|
2105
|
-
const
|
|
2104
|
+
globalThis.altchaI18n.set("el", fl);
|
|
2105
|
+
const cl = {
|
|
2106
2106
|
ariaLinkLabel: "Visitar Altcha.org",
|
|
2107
2107
|
enterCode: "Introduce el código",
|
|
2108
2108
|
enterCodeAria: "Introduce el código que escuchas. Pulsa Espacio para reproducir el audio.",
|
|
@@ -2119,8 +2119,8 @@ const fl = {
|
|
|
2119
2119
|
verifying: "Verificando...",
|
|
2120
2120
|
waitAlert: "Verificando... por favor espere."
|
|
2121
2121
|
};
|
|
2122
|
-
globalThis.altchaI18n.set("es-es",
|
|
2123
|
-
const
|
|
2122
|
+
globalThis.altchaI18n.set("es-es", cl);
|
|
2123
|
+
const dl = {
|
|
2124
2124
|
ariaLinkLabel: "Visitar Altcha.org",
|
|
2125
2125
|
enterCode: "Ingresa el código",
|
|
2126
2126
|
enterCodeAria: "Ingresa el código que escuchas. Presiona Espacio para reproducir el audio.",
|
|
@@ -2137,8 +2137,8 @@ const cl = {
|
|
|
2137
2137
|
verifying: "Verificando...",
|
|
2138
2138
|
waitAlert: "Verificando... por favor espera."
|
|
2139
2139
|
};
|
|
2140
|
-
globalThis.altchaI18n.set("es-419",
|
|
2141
|
-
const
|
|
2140
|
+
globalThis.altchaI18n.set("es-419", dl);
|
|
2141
|
+
const hl = {
|
|
2142
2142
|
ariaLinkLabel: "Külasta Altcha.org",
|
|
2143
2143
|
enterCode: "Sisesta kood",
|
|
2144
2144
|
enterCodeAria: "Sisestage kuuldu kood. Vajutage tühikut, et esitada heli.",
|
|
@@ -2155,8 +2155,8 @@ const dl = {
|
|
|
2155
2155
|
verifying: "Kinnitamine...",
|
|
2156
2156
|
waitAlert: "Kinnitamine... palun oota."
|
|
2157
2157
|
};
|
|
2158
|
-
globalThis.altchaI18n.set("et",
|
|
2159
|
-
const
|
|
2158
|
+
globalThis.altchaI18n.set("et", hl);
|
|
2159
|
+
const gl = {
|
|
2160
2160
|
ariaLinkLabel: "Bisitatu Altcha.org",
|
|
2161
2161
|
enterCode: "Sartu kodea",
|
|
2162
2162
|
enterCodeAria: "Sartu entzun duzun kodea. Sakatu Espazioa audioa erreproduzitzeko.",
|
|
@@ -2173,8 +2173,8 @@ const hl = {
|
|
|
2173
2173
|
verifying: "Egiaztatzen...",
|
|
2174
2174
|
waitAlert: "Egiaztatzen... itxaron mesedez."
|
|
2175
2175
|
};
|
|
2176
|
-
globalThis.altchaI18n.set("eu",
|
|
2177
|
-
const
|
|
2176
|
+
globalThis.altchaI18n.set("eu", gl);
|
|
2177
|
+
const vl = {
|
|
2178
2178
|
ariaLinkLabel: "Vieraile sivulla Altcha.org",
|
|
2179
2179
|
enterCode: "Syötä koodi",
|
|
2180
2180
|
enterCodeAria: "Kirjoita kuulemasi koodi. Paina välilyöntiä toistaaksesi äänen.",
|
|
@@ -2191,8 +2191,8 @@ const gl = {
|
|
|
2191
2191
|
verifying: "Vahvistetaan...",
|
|
2192
2192
|
waitAlert: "Vahvistetaan... odota hetki."
|
|
2193
2193
|
};
|
|
2194
|
-
globalThis.altchaI18n.set("fi",
|
|
2195
|
-
const
|
|
2194
|
+
globalThis.altchaI18n.set("fi", vl);
|
|
2195
|
+
const bl = {
|
|
2196
2196
|
ariaLinkLabel: "Visitez Altcha.org",
|
|
2197
2197
|
enterCode: "Entrez le code",
|
|
2198
2198
|
enterCodeAria: "Entrez le code que vous entendez. Appuyez sur la barre d'espace pour écouter l'audio.",
|
|
@@ -2209,8 +2209,8 @@ const vl = {
|
|
|
2209
2209
|
verifying: "Vérification en cours...",
|
|
2210
2210
|
waitAlert: "Vérification en cours... veuillez patienter."
|
|
2211
2211
|
};
|
|
2212
|
-
globalThis.altchaI18n.set("fr-ca",
|
|
2213
|
-
const
|
|
2212
|
+
globalThis.altchaI18n.set("fr-ca", bl);
|
|
2213
|
+
const pl = {
|
|
2214
2214
|
ariaLinkLabel: "Visitez Altcha.org",
|
|
2215
2215
|
enterCode: "Entrez le code",
|
|
2216
2216
|
enterCodeAria: "Entrez le code que vous entendez. Appuyez sur Espace pour écouter l'audio.",
|
|
@@ -2227,8 +2227,8 @@ const bl = {
|
|
|
2227
2227
|
verifying: "Vérification en cours...",
|
|
2228
2228
|
waitAlert: "Vérification en cours... veuillez patienter."
|
|
2229
2229
|
};
|
|
2230
|
-
globalThis.altchaI18n.set("fr-fr",
|
|
2231
|
-
const
|
|
2230
|
+
globalThis.altchaI18n.set("fr-fr", pl);
|
|
2231
|
+
const ml = {
|
|
2232
2232
|
ariaLinkLabel: "Tabhair cuairt ar Altcha.org",
|
|
2233
2233
|
enterCode: "Iontráil cód",
|
|
2234
2234
|
enterCodeAria: "Cuir isteach an cód a chloiseann tú. Brúigh Spás chun an fuaime a sheinm.",
|
|
@@ -2245,8 +2245,8 @@ const pl = {
|
|
|
2245
2245
|
verifying: "Fíorú ar siúl...",
|
|
2246
2246
|
waitAlert: "Fíorú ar siúl... fan go fóill."
|
|
2247
2247
|
};
|
|
2248
|
-
globalThis.altchaI18n.set("ga",
|
|
2249
|
-
const
|
|
2248
|
+
globalThis.altchaI18n.set("ga", ml);
|
|
2249
|
+
const yl = {
|
|
2250
2250
|
ariaLinkLabel: "Posjetite Altcha.org",
|
|
2251
2251
|
enterCode: "Unesite kod",
|
|
2252
2252
|
enterCodeAria: "Unesite kod koji čujete. Pritisnite razmaknicu za reprodukciju zvuka.",
|
|
@@ -2263,8 +2263,8 @@ const ml = {
|
|
|
2263
2263
|
verifying: "Provjeravanje...",
|
|
2264
2264
|
waitAlert: "Provjera je u tijeku... molimo pričekajte."
|
|
2265
2265
|
};
|
|
2266
|
-
globalThis.altchaI18n.set("hr",
|
|
2267
|
-
const
|
|
2266
|
+
globalThis.altchaI18n.set("hr", yl);
|
|
2267
|
+
const Al = {
|
|
2268
2268
|
ariaLinkLabel: "Látogass el az Altcha.org oldalra",
|
|
2269
2269
|
enterCode: "Írja be a kódot",
|
|
2270
2270
|
enterCodeAria: "Írja be a hallott kódot. Nyomja meg a Szóköz billentyűt a hang lejátszásához.",
|
|
@@ -2281,8 +2281,8 @@ const yl = {
|
|
|
2281
2281
|
verifying: "Ellenőrzés folyamatban...",
|
|
2282
2282
|
waitAlert: "Ellenőrzés folyamatban... kérlek várj."
|
|
2283
2283
|
};
|
|
2284
|
-
globalThis.altchaI18n.set("hu",
|
|
2285
|
-
const
|
|
2284
|
+
globalThis.altchaI18n.set("hu", Al);
|
|
2285
|
+
const kl = {
|
|
2286
2286
|
ariaLinkLabel: "Heimsækja Altcha.org",
|
|
2287
2287
|
enterCode: "Sláðu inn kóða",
|
|
2288
2288
|
enterCodeAria: "Sláðu inn kóðann sem þú heyrir. Ýttu á Space til að spila hljóðið.",
|
|
@@ -2299,8 +2299,8 @@ const Al = {
|
|
|
2299
2299
|
verifying: "Að staðfesta...",
|
|
2300
2300
|
waitAlert: "Að staðfesta... vinsamlegast bíða."
|
|
2301
2301
|
};
|
|
2302
|
-
globalThis.altchaI18n.set("is",
|
|
2303
|
-
const
|
|
2302
|
+
globalThis.altchaI18n.set("is", kl);
|
|
2303
|
+
const _l = {
|
|
2304
2304
|
ariaLinkLabel: "Visita Altcha.org",
|
|
2305
2305
|
enterCode: "Inserisci il codice",
|
|
2306
2306
|
enterCodeAria: "Inserisci il codice che senti. Premi Spazio per riprodurre l'audio.",
|
|
@@ -2317,8 +2317,8 @@ const kl = {
|
|
|
2317
2317
|
verifying: "Verifica in corso...",
|
|
2318
2318
|
waitAlert: "Verifica in corso... attendere."
|
|
2319
2319
|
};
|
|
2320
|
-
globalThis.altchaI18n.set("it",
|
|
2321
|
-
const
|
|
2320
|
+
globalThis.altchaI18n.set("it", _l);
|
|
2321
|
+
const wl = {
|
|
2322
2322
|
ariaLinkLabel: "Apsilankykite Altcha.org",
|
|
2323
2323
|
enterCode: "Įveskite kodą",
|
|
2324
2324
|
enterCodeAria: "Įveskite girdimą kodą. Paspauskite tarpo klavišą, kad grotumėte garso įrašą.",
|
|
@@ -2335,8 +2335,8 @@ const _l = {
|
|
|
2335
2335
|
verifying: "Tikrinama...",
|
|
2336
2336
|
waitAlert: "Tikrinama... prašome palaukti."
|
|
2337
2337
|
};
|
|
2338
|
-
globalThis.altchaI18n.set("lt",
|
|
2339
|
-
const
|
|
2338
|
+
globalThis.altchaI18n.set("lt", wl);
|
|
2339
|
+
const Cl = {
|
|
2340
2340
|
ariaLinkLabel: "Apmeklējiet Altcha.org",
|
|
2341
2341
|
enterCode: "Ievadiet kodu",
|
|
2342
2342
|
enterCodeAria: "Ievadiet dzirdamo kodu. Nospiediet atstarpes taustiņu, lai atskaņotu audio.",
|
|
@@ -2353,8 +2353,8 @@ const wl = {
|
|
|
2353
2353
|
verifying: "Notiek verifikācija...",
|
|
2354
2354
|
waitAlert: "Notiek verifikācija... lūdzu, uzgaidiet."
|
|
2355
2355
|
};
|
|
2356
|
-
globalThis.altchaI18n.set("lv",
|
|
2357
|
-
const
|
|
2356
|
+
globalThis.altchaI18n.set("lv", Cl);
|
|
2357
|
+
const Ll = {
|
|
2358
2358
|
ariaLinkLabel: "Żur Altcha.org",
|
|
2359
2359
|
enterCode: "Idħol il-kodiċi",
|
|
2360
2360
|
enterCodeAria: "Idħol il-kodiċi li tisma'. Agħfas Spazju biex tindaqq l-awdjo.",
|
|
@@ -2371,8 +2371,8 @@ const Cl = {
|
|
|
2371
2371
|
verifying: "Verifika għaddejja...",
|
|
2372
2372
|
waitAlert: "Verifika għaddejja... stenna ftit."
|
|
2373
2373
|
};
|
|
2374
|
-
globalThis.altchaI18n.set("mt",
|
|
2375
|
-
const
|
|
2374
|
+
globalThis.altchaI18n.set("mt", Ll);
|
|
2375
|
+
const Hi = {
|
|
2376
2376
|
ariaLinkLabel: "Besøk Altcha.org",
|
|
2377
2377
|
enterCode: "Skriv inn kode",
|
|
2378
2378
|
enterCodeAria: "Skriv inn koden du hører. Trykk på Space for å spille av lyden.",
|
|
@@ -2389,9 +2389,9 @@ const qi = {
|
|
|
2389
2389
|
verifying: "Verifiserer...",
|
|
2390
2390
|
waitAlert: "Verifiserer... vennligst vent."
|
|
2391
2391
|
};
|
|
2392
|
-
globalThis.altchaI18n.set("nb",
|
|
2393
|
-
globalThis.altchaI18n.set("no",
|
|
2394
|
-
const
|
|
2392
|
+
globalThis.altchaI18n.set("nb", Hi);
|
|
2393
|
+
globalThis.altchaI18n.set("no", Hi);
|
|
2394
|
+
const El = {
|
|
2395
2395
|
ariaLinkLabel: "Bezoek Altcha.org",
|
|
2396
2396
|
enterCode: "Voer code in",
|
|
2397
2397
|
enterCodeAria: "Voer de code in die je hoort. Druk op Spatie om de audio af te spelen.",
|
|
@@ -2408,8 +2408,8 @@ const Ll = {
|
|
|
2408
2408
|
verifying: "Bezig met verifiëren...",
|
|
2409
2409
|
waitAlert: "Bezig met verifiëren... even geduld a.u.b."
|
|
2410
2410
|
};
|
|
2411
|
-
globalThis.altchaI18n.set("nl",
|
|
2412
|
-
const
|
|
2411
|
+
globalThis.altchaI18n.set("nl", El);
|
|
2412
|
+
const xl = {
|
|
2413
2413
|
ariaLinkLabel: "Odwiedź Altcha.org",
|
|
2414
2414
|
enterCode: "Wprowadź kod",
|
|
2415
2415
|
enterCodeAria: "Wpisz kod, który słyszysz. Naciśnij Spację, aby odtworzyć dźwięk.",
|
|
@@ -2426,8 +2426,8 @@ const El = {
|
|
|
2426
2426
|
verifying: "Weryfikacja...",
|
|
2427
2427
|
waitAlert: "Trwa weryfikacja... proszę czekać."
|
|
2428
2428
|
};
|
|
2429
|
-
globalThis.altchaI18n.set("pl",
|
|
2430
|
-
const
|
|
2429
|
+
globalThis.altchaI18n.set("pl", xl);
|
|
2430
|
+
const Tl = {
|
|
2431
2431
|
ariaLinkLabel: "Visitar Altcha.org",
|
|
2432
2432
|
enterCode: "Introduza o código",
|
|
2433
2433
|
enterCodeAria: "Introduza o código que ouve. Prima Espaço para reproduzir o áudio.",
|
|
@@ -2444,8 +2444,8 @@ const xl = {
|
|
|
2444
2444
|
verifying: "A verificar...",
|
|
2445
2445
|
waitAlert: "A verificar... por favor aguarde."
|
|
2446
2446
|
};
|
|
2447
|
-
globalThis.altchaI18n.set("pt-pt",
|
|
2448
|
-
const
|
|
2447
|
+
globalThis.altchaI18n.set("pt-pt", Tl);
|
|
2448
|
+
const Il = {
|
|
2449
2449
|
ariaLinkLabel: "Visitar Altcha.org",
|
|
2450
2450
|
enterCode: "Digite o código",
|
|
2451
2451
|
enterCodeAria: "Digite o código que você ouve. Pressione Espaço para reproduzir o áudio.",
|
|
@@ -2462,8 +2462,8 @@ const Tl = {
|
|
|
2462
2462
|
verifying: "Verificando...",
|
|
2463
2463
|
waitAlert: "Verificando... por favor aguarde."
|
|
2464
2464
|
};
|
|
2465
|
-
globalThis.altchaI18n.set("pt-br",
|
|
2466
|
-
const
|
|
2465
|
+
globalThis.altchaI18n.set("pt-br", Il);
|
|
2466
|
+
const Vl = {
|
|
2467
2467
|
ariaLinkLabel: "Vizitează Altcha.org",
|
|
2468
2468
|
enterCode: "Introduceți codul",
|
|
2469
2469
|
enterCodeAria: "Introduceți codul pe care îl auziți. Apăsați Spațiu pentru a reda audio.",
|
|
@@ -2480,8 +2480,8 @@ const Il = {
|
|
|
2480
2480
|
verifying: "Se verifică...",
|
|
2481
2481
|
waitAlert: "Se verifică... te rugăm să aștepți."
|
|
2482
2482
|
};
|
|
2483
|
-
globalThis.altchaI18n.set("ro",
|
|
2484
|
-
const
|
|
2483
|
+
globalThis.altchaI18n.set("ro", Vl);
|
|
2484
|
+
const Rl = {
|
|
2485
2485
|
ariaLinkLabel: "Перейти на Altcha.org",
|
|
2486
2486
|
enterCode: "Введите код",
|
|
2487
2487
|
enterCodeAria: "Введите код, который слышите. Нажмите пробел для воспроизведения аудио.",
|
|
@@ -2498,8 +2498,8 @@ const Vl = {
|
|
|
2498
2498
|
verifying: "Идет проверка...",
|
|
2499
2499
|
waitAlert: "Идет проверка... Пожалуйста, подождите."
|
|
2500
2500
|
};
|
|
2501
|
-
globalThis.altchaI18n.set("ru",
|
|
2502
|
-
const
|
|
2501
|
+
globalThis.altchaI18n.set("ru", Rl);
|
|
2502
|
+
const jl = {
|
|
2503
2503
|
ariaLinkLabel: "Navštívte Altcha.org",
|
|
2504
2504
|
enterCode: "Zadajte kód",
|
|
2505
2505
|
enterCodeAria: "Zadajte kód, ktorý počujete. Stlačením medzerníka prehráte zvuk.",
|
|
@@ -2516,8 +2516,8 @@ const Rl = {
|
|
|
2516
2516
|
verifying: "Prebieha verifikácia...",
|
|
2517
2517
|
waitAlert: "Prebieha verifikácia... prosím čakajte."
|
|
2518
2518
|
};
|
|
2519
|
-
globalThis.altchaI18n.set("sk",
|
|
2520
|
-
const
|
|
2519
|
+
globalThis.altchaI18n.set("sk", jl);
|
|
2520
|
+
const $l = {
|
|
2521
2521
|
ariaLinkLabel: "Obiščite Altcha.org",
|
|
2522
2522
|
enterCode: "Vnesite kodo",
|
|
2523
2523
|
enterCodeAria: "Vnesite kodo, ki jo slišite. Pritisnite preslednico za predvajanje zvoka.",
|
|
@@ -2534,8 +2534,8 @@ const jl = {
|
|
|
2534
2534
|
verifying: "Preverjanje...",
|
|
2535
2535
|
waitAlert: "Preverjanje... prosim počakajte."
|
|
2536
2536
|
};
|
|
2537
|
-
globalThis.altchaI18n.set("sl",
|
|
2538
|
-
const
|
|
2537
|
+
globalThis.altchaI18n.set("sl", $l);
|
|
2538
|
+
const Sl = {
|
|
2539
2539
|
ariaLinkLabel: "Posetite Altcha.org",
|
|
2540
2540
|
enterCode: "Unesite kod",
|
|
2541
2541
|
enterCodeAria: "Unesite kod koji čujete. Pritisnite Space da biste pustili zvuk.",
|
|
@@ -2552,8 +2552,8 @@ const $l = {
|
|
|
2552
2552
|
verifying: "Verifikacija u toku...",
|
|
2553
2553
|
waitAlert: "Verifikacija u toku... molimo vas da sačekate."
|
|
2554
2554
|
};
|
|
2555
|
-
globalThis.altchaI18n.set("sr",
|
|
2556
|
-
const
|
|
2555
|
+
globalThis.altchaI18n.set("sr", Sl);
|
|
2556
|
+
const Pl = {
|
|
2557
2557
|
ariaLinkLabel: "Besök Altcha.org",
|
|
2558
2558
|
enterCode: "Ange kod",
|
|
2559
2559
|
enterCodeAria: "Ange koden du hör. Tryck på mellanslag för att spela upp ljudet.",
|
|
@@ -2570,8 +2570,8 @@ const Sl = {
|
|
|
2570
2570
|
verifying: "Verifierar...",
|
|
2571
2571
|
waitAlert: "Verifierar... vänligen vänta."
|
|
2572
2572
|
};
|
|
2573
|
-
globalThis.altchaI18n.set("sv",
|
|
2574
|
-
const
|
|
2573
|
+
globalThis.altchaI18n.set("sv", Pl);
|
|
2574
|
+
const Nl = {
|
|
2575
2575
|
ariaLinkLabel: "Altcha.org'yu ziyaret edin",
|
|
2576
2576
|
enterCode: "Kodu girin",
|
|
2577
2577
|
enterCodeAria: "Duyduğunuz kodu girin. Ses dosyasını oynatmak için Boşluk tuşuna basın.",
|
|
@@ -2588,7 +2588,7 @@ const Pl = {
|
|
|
2588
2588
|
verifying: "Doğrulama yapılıyor...",
|
|
2589
2589
|
waitAlert: "Doğrulama yapılıyor... lütfen bekleyin."
|
|
2590
2590
|
};
|
|
2591
|
-
globalThis.altchaI18n.set("tr",
|
|
2591
|
+
globalThis.altchaI18n.set("tr", Nl);
|
|
2592
2592
|
const zl = {
|
|
2593
2593
|
ariaLinkLabel: "Відвідати Altcha.org",
|
|
2594
2594
|
enterCode: "Введіть код",
|
|
@@ -2607,7 +2607,7 @@ const zl = {
|
|
|
2607
2607
|
waitAlert: "Перевірка... будь ласка, зачекайте."
|
|
2608
2608
|
};
|
|
2609
2609
|
globalThis.altchaI18n.set("uk", zl);
|
|
2610
|
-
const
|
|
2610
|
+
const Dl = {
|
|
2611
2611
|
ariaLinkLabel: "Altcha.org পরিদর্শন করুন",
|
|
2612
2612
|
enterCode: "কোড লিখুন",
|
|
2613
2613
|
enterCodeAria: "আপনি যে কোড শুনতে পান তা লিখুন। অডিও প্লে করতে স্পেস বাটন টিপুন।",
|
|
@@ -2624,8 +2624,8 @@ const Nl = {
|
|
|
2624
2624
|
verifying: "যাচাই করা হচ্ছে...",
|
|
2625
2625
|
waitAlert: "যাচাই করা হচ্ছে... দয়া করে অপেক্ষা করুন।"
|
|
2626
2626
|
};
|
|
2627
|
-
globalThis.altchaI18n.set("bn",
|
|
2628
|
-
const
|
|
2627
|
+
globalThis.altchaI18n.set("bn", Dl);
|
|
2628
|
+
const ql = {
|
|
2629
2629
|
ariaLinkLabel: "בקר באתר Altcha.org",
|
|
2630
2630
|
enterCode: "הזן קוד",
|
|
2631
2631
|
enterCodeAria: "הזן את הקוד שאתה שומע. לחץ על רווח להפעלת השמע.",
|
|
@@ -2642,8 +2642,8 @@ const Dl = {
|
|
|
2642
2642
|
verifying: "מאמת...",
|
|
2643
2643
|
waitAlert: "מבצע אימות... אנא המתן."
|
|
2644
2644
|
};
|
|
2645
|
-
globalThis.altchaI18n.set("he",
|
|
2646
|
-
const
|
|
2645
|
+
globalThis.altchaI18n.set("he", ql);
|
|
2646
|
+
const Ol = {
|
|
2647
2647
|
ariaLinkLabel: "Altcha.org पर जाएं",
|
|
2648
2648
|
enterCode: "कोड दर्ज करेंं",
|
|
2649
2649
|
enterCodeAria: "आप जो कोड सुनते हैं उसे दर्ज करें। ऑडियो चलाने के लिए स्पेस दबाएं।",
|
|
@@ -2660,8 +2660,8 @@ const ql = {
|
|
|
2660
2660
|
verifying: "सत्यापित कर रहे हैं...",
|
|
2661
2661
|
waitAlert: "सत्यापित किया जा रहा है... कृपया प्रतीक्षा करें।"
|
|
2662
2662
|
};
|
|
2663
|
-
globalThis.altchaI18n.set("hi",
|
|
2664
|
-
const
|
|
2663
|
+
globalThis.altchaI18n.set("hi", Ol);
|
|
2664
|
+
const Hl = {
|
|
2665
2665
|
ariaLinkLabel: "Kunjungi Altcha.org",
|
|
2666
2666
|
enterCode: "Masukkan kode",
|
|
2667
2667
|
enterCodeAria: "Masukkan kode yang Anda dengar. Tekan Spasi untuk memutar audio.",
|
|
@@ -2678,8 +2678,8 @@ const Ol = {
|
|
|
2678
2678
|
verifying: "Memverifikasi...",
|
|
2679
2679
|
waitAlert: "Memverifikasi... harap tunggu."
|
|
2680
2680
|
};
|
|
2681
|
-
globalThis.altchaI18n.set("id",
|
|
2682
|
-
const
|
|
2681
|
+
globalThis.altchaI18n.set("id", Hl);
|
|
2682
|
+
const Fl = {
|
|
2683
2683
|
ariaLinkLabel: "Altcha.orgを訪問",
|
|
2684
2684
|
enterCode: "コードを入力",
|
|
2685
2685
|
enterCodeAria: "聞こえるコードを入力してください。スペースキーを押して音声を再生します。",
|
|
@@ -2688,7 +2688,7 @@ const Hl = {
|
|
|
2688
2688
|
verificationRequired: "認証が必要です!",
|
|
2689
2689
|
footer: '保護されています <a href="https://altcha.org/" target="_blank" aria-label="Altcha.orgを訪問">ALTCHA</a>',
|
|
2690
2690
|
getAudioChallenge: "音声チャレンジを取得",
|
|
2691
|
-
label: "
|
|
2691
|
+
label: "私はロボットではありません",
|
|
2692
2692
|
loading: "読み込み中...",
|
|
2693
2693
|
reload: "再読み込み",
|
|
2694
2694
|
verify: "確認",
|
|
@@ -2696,8 +2696,8 @@ const Hl = {
|
|
|
2696
2696
|
verifying: "確認中...",
|
|
2697
2697
|
waitAlert: "確認中...少々お待ちください。"
|
|
2698
2698
|
};
|
|
2699
|
-
globalThis.altchaI18n.set("ja",
|
|
2700
|
-
const
|
|
2699
|
+
globalThis.altchaI18n.set("ja", Fl);
|
|
2700
|
+
const Ml = {
|
|
2701
2701
|
ariaLinkLabel: "Altcha.org 방문하기",
|
|
2702
2702
|
enterCode: "코드 입력",
|
|
2703
2703
|
enterCodeAria: "들리는 코드를 입력하세요. 스페이스 바를 눌러 오디오를 재생합니다.",
|
|
@@ -2714,8 +2714,8 @@ const Fl = {
|
|
|
2714
2714
|
verifying: "확인 중...",
|
|
2715
2715
|
waitAlert: "확인 중... 잠시만 기다려주세요."
|
|
2716
2716
|
};
|
|
2717
|
-
globalThis.altchaI18n.set("ko",
|
|
2718
|
-
const
|
|
2717
|
+
globalThis.altchaI18n.set("ko", Ml);
|
|
2718
|
+
const Bl = {
|
|
2719
2719
|
ariaLinkLabel: "Altcha.org भेट द्या",
|
|
2720
2720
|
enterCode: "कोड टाकाा",
|
|
2721
2721
|
enterCodeAria: "तुम्ही ऐकत असलेला कोड टाका. ऑडिओ प्ले करण्यासाठी स्पेस दाबा.",
|
|
@@ -2732,8 +2732,8 @@ const Ml = {
|
|
|
2732
2732
|
verifying: "पुष्टीकरण करत आहे...",
|
|
2733
2733
|
waitAlert: "पुष्टीकरण करत आहे... कृपया थोडा वेळ थांबा."
|
|
2734
2734
|
};
|
|
2735
|
-
globalThis.altchaI18n.set("mr",
|
|
2736
|
-
const
|
|
2735
|
+
globalThis.altchaI18n.set("mr", Bl);
|
|
2736
|
+
const Ul = {
|
|
2737
2737
|
ariaLinkLabel: "Altcha.org ஐ பார்வையிடவும்",
|
|
2738
2738
|
enterCode: "குறியீட்டை உள்ளிடவும்",
|
|
2739
2739
|
enterCodeAria: "நீங்கள் கேட்கும் குறியீட்டை உள்ளிடவும். ஆடியோவை இயக்க Space ஐ அழுத்தவும்.",
|
|
@@ -2750,8 +2750,8 @@ const Bl = {
|
|
|
2750
2750
|
verifying: "சரிபார்க்கப்படுகிறது...",
|
|
2751
2751
|
waitAlert: "சரிபார்க்கப்படுகிறது... தயவுசெய்து காத்திருக்கவும்."
|
|
2752
2752
|
};
|
|
2753
|
-
globalThis.altchaI18n.set("ta",
|
|
2754
|
-
const
|
|
2753
|
+
globalThis.altchaI18n.set("ta", Ul);
|
|
2754
|
+
const Zl = {
|
|
2755
2755
|
ariaLinkLabel: "Altcha.org సందర్శించండి",
|
|
2756
2756
|
enterCode: "కోడ్ని నమోదు చేయండి",
|
|
2757
2757
|
enterCodeAria: "మీరు విన్న కోడ్ని నమోదు చేయండి. ఆడియో ప్లే చేయడానికి స్పేస్ను నొక్కండి.",
|
|
@@ -2768,8 +2768,8 @@ const Ul = {
|
|
|
2768
2768
|
verifying: "ధ్రువీకరణ జరుగుతుంది...",
|
|
2769
2769
|
waitAlert: "ధ్రువీకరణ జరుగుతుంది... దయచేసి వేచి ఉండండి."
|
|
2770
2770
|
};
|
|
2771
|
-
globalThis.altchaI18n.set("te",
|
|
2772
|
-
const
|
|
2771
|
+
globalThis.altchaI18n.set("te", Zl);
|
|
2772
|
+
const Gl = {
|
|
2773
2773
|
ariaLinkLabel: "เยี่ยมชม Altcha.org",
|
|
2774
2774
|
enterCode: "ป้อนรหัส",
|
|
2775
2775
|
enterCodeAria: "ป้อนรหัสที่คุณได้ยิน กด Space เพื่อเล่นเสียง",
|
|
@@ -2786,8 +2786,8 @@ const Zl = {
|
|
|
2786
2786
|
verifying: "กำลังตรวจสอบ...",
|
|
2787
2787
|
waitAlert: "กำลังตรวจสอบ... กรุณารอ"
|
|
2788
2788
|
};
|
|
2789
|
-
globalThis.altchaI18n.set("th",
|
|
2790
|
-
const
|
|
2789
|
+
globalThis.altchaI18n.set("th", Gl);
|
|
2790
|
+
const Yl = {
|
|
2791
2791
|
ariaLinkLabel: "Altcha.org پر جائیں",
|
|
2792
2792
|
enterCode: "کوڈ درج کریں",
|
|
2793
2793
|
enterCodeAria: "جو کوڈ آپ سنتے ہیں وہ درج کریں۔ آڈیو چلانے کے لیے اسپیس دبائیں۔",
|
|
@@ -2804,8 +2804,8 @@ const Gl = {
|
|
|
2804
2804
|
verifying: "توثیق ہو رہی ہے...",
|
|
2805
2805
|
waitAlert: "توثیق ہو رہی ہے... براہ کرم انتظار کریں۔"
|
|
2806
2806
|
};
|
|
2807
|
-
globalThis.altchaI18n.set("ur",
|
|
2808
|
-
const
|
|
2807
|
+
globalThis.altchaI18n.set("ur", Yl);
|
|
2808
|
+
const Wl = {
|
|
2809
2809
|
ariaLinkLabel: "Truy cập Altcha.org",
|
|
2810
2810
|
enterCode: "Nhập mã",
|
|
2811
2811
|
enterCodeAria: "Nhập mã bạn nghe được. Nhấn Phím cách để phát âm thanh.",
|
|
@@ -2822,8 +2822,8 @@ const Yl = {
|
|
|
2822
2822
|
verifying: "Đang xác minh...",
|
|
2823
2823
|
waitAlert: "Đang xác minh... vui lòng chờ."
|
|
2824
2824
|
};
|
|
2825
|
-
globalThis.altchaI18n.set("vi",
|
|
2826
|
-
const
|
|
2825
|
+
globalThis.altchaI18n.set("vi", Wl);
|
|
2826
|
+
const Kl = {
|
|
2827
2827
|
ariaLinkLabel: "访问 Altcha.org",
|
|
2828
2828
|
enterCode: "输入代码",
|
|
2829
2829
|
enterCodeAria: "输入您听到的代码。按空格键播放音频。",
|
|
@@ -2840,8 +2840,8 @@ const Wl = {
|
|
|
2840
2840
|
verifying: "正在验证...",
|
|
2841
2841
|
waitAlert: "正在验证... 请稍等。"
|
|
2842
2842
|
};
|
|
2843
|
-
globalThis.altchaI18n.set("zh-cn",
|
|
2844
|
-
const
|
|
2843
|
+
globalThis.altchaI18n.set("zh-cn", Kl);
|
|
2844
|
+
const Jl = {
|
|
2845
2845
|
ariaLinkLabel: "訪問 Altcha.org",
|
|
2846
2846
|
enterCode: "輸入代碼",
|
|
2847
2847
|
enterCodeAria: "輸入您聽到的代碼。按空格鍵播放音頻。",
|
|
@@ -2858,13 +2858,13 @@ const Kl = {
|
|
|
2858
2858
|
verifying: "正在驗證...",
|
|
2859
2859
|
waitAlert: "正在驗證... 請稍等。"
|
|
2860
2860
|
};
|
|
2861
|
-
globalThis.altchaI18n.set("zh-tw",
|
|
2862
|
-
const
|
|
2863
|
-
`,
|
|
2864
|
-
function
|
|
2861
|
+
globalThis.altchaI18n.set("zh-tw", Jl);
|
|
2862
|
+
const Fi = `(function(){"use strict";const d=new TextEncoder;function p(e){return[...new Uint8Array(e)].map(t=>t.toString(16).padStart(2,"0")).join("")}async function b(e,t,r){if(typeof crypto>"u"||!("subtle"in crypto)||!("digest"in crypto.subtle))throw new Error("Web Crypto is not available. Secure context is required (https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).");return p(await crypto.subtle.digest(r.toUpperCase(),d.encode(e+t)))}function w(e,t,r="SHA-256",n=1e6,s=0){const o=new AbortController,a=Date.now();return{promise:(async()=>{for(let c=s;c<=n;c+=1){if(o.signal.aborted)return null;if(await b(t,c,r)===e)return{number:c,took:Date.now()-a}}return null})(),controller:o}}function h(e){const t=atob(e),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r}function g(e,t=12){const r=new Uint8Array(t);for(let n=0;n<t;n++)r[n]=e%256,e=Math.floor(e/256);return r}async function m(e,t="",r=1e6,n=0){const s="AES-GCM",o=new AbortController,a=Date.now(),l=async()=>{for(let u=n;u<=r;u+=1){if(o.signal.aborted||!c||!y)return null;try{const f=await crypto.subtle.decrypt({name:s,iv:g(u)},c,y);if(f)return{clearText:new TextDecoder().decode(f),took:Date.now()-a}}catch{}}return null};let c=null,y=null;try{y=h(e);const u=await crypto.subtle.digest("SHA-256",d.encode(t));c=await crypto.subtle.importKey("raw",u,s,!1,["decrypt"])}catch{return{promise:Promise.reject(),controller:o}}return{promise:l(),controller:o}}let i;onmessage=async e=>{const{type:t,payload:r,start:n,max:s}=e.data;let o=null;if(t==="abort")i==null||i.abort(),i=void 0;else if(t==="work"){if("obfuscated"in r){const{key:a,obfuscated:l}=r||{};o=await m(l,a,s,n)}else{const{algorithm:a,challenge:l,salt:c}=r||{};o=w(l,c,a,s,n)}i=o.controller,o.promise.then(a=>{self.postMessage(a&&{...a,worker:!0})})}}})();
|
|
2863
|
+
`, Za = typeof self < "u" && self.Blob && new Blob([Fi], { type: "text/javascript;charset=utf-8" });
|
|
2864
|
+
function Xl(e) {
|
|
2865
2865
|
let t;
|
|
2866
2866
|
try {
|
|
2867
|
-
if (t =
|
|
2867
|
+
if (t = Za && (self.URL || self.webkitURL).createObjectURL(Za), !t) throw "";
|
|
2868
2868
|
const r = new Worker(t, {
|
|
2869
2869
|
name: e == null ? void 0 : e.name
|
|
2870
2870
|
});
|
|
@@ -2873,7 +2873,7 @@ function Jl(e) {
|
|
|
2873
2873
|
}), r;
|
|
2874
2874
|
} catch {
|
|
2875
2875
|
return new Worker(
|
|
2876
|
-
"data:text/javascript;charset=utf-8," + encodeURIComponent(
|
|
2876
|
+
"data:text/javascript;charset=utf-8," + encodeURIComponent(Fi),
|
|
2877
2877
|
{
|
|
2878
2878
|
name: e == null ? void 0 : e.name
|
|
2879
2879
|
}
|
|
@@ -2882,17 +2882,17 @@ function Jl(e) {
|
|
|
2882
2882
|
t && (self.URL || self.webkitURL).revokeObjectURL(t);
|
|
2883
2883
|
}
|
|
2884
2884
|
}
|
|
2885
|
-
const
|
|
2886
|
-
var
|
|
2887
|
-
typeof window < "u" && ((
|
|
2888
|
-
const
|
|
2889
|
-
function
|
|
2885
|
+
const Ql = "5";
|
|
2886
|
+
var Ya;
|
|
2887
|
+
typeof window < "u" && ((Ya = window.__svelte ?? (window.__svelte = {})).v ?? (Ya.v = /* @__PURE__ */ new Set())).add(Ql);
|
|
2888
|
+
const Mi = new TextEncoder();
|
|
2889
|
+
function es(e) {
|
|
2890
2890
|
return [...new Uint8Array(e)].map((t) => t.toString(16).padStart(2, "0")).join("");
|
|
2891
2891
|
}
|
|
2892
|
-
async function
|
|
2892
|
+
async function ts(e, t = "SHA-256", r = 1e5) {
|
|
2893
2893
|
const i = Date.now().toString(16);
|
|
2894
2894
|
e || (e = Math.round(Math.random() * r));
|
|
2895
|
-
const o = await
|
|
2895
|
+
const o = await Bi(i, e, t);
|
|
2896
2896
|
return {
|
|
2897
2897
|
algorithm: t,
|
|
2898
2898
|
challenge: o,
|
|
@@ -2900,24 +2900,24 @@ async function es(e, t = "SHA-256", r = 1e5) {
|
|
|
2900
2900
|
signature: ""
|
|
2901
2901
|
};
|
|
2902
2902
|
}
|
|
2903
|
-
async function
|
|
2903
|
+
async function Bi(e, t, r) {
|
|
2904
2904
|
if (typeof crypto > "u" || !("subtle" in crypto) || !("digest" in crypto.subtle))
|
|
2905
2905
|
throw new Error("Web Crypto is not available. Secure context is required (https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).");
|
|
2906
|
-
return
|
|
2906
|
+
return es(
|
|
2907
2907
|
await crypto.subtle.digest(
|
|
2908
2908
|
r.toUpperCase(),
|
|
2909
|
-
|
|
2909
|
+
Mi.encode(e + t)
|
|
2910
2910
|
)
|
|
2911
2911
|
);
|
|
2912
2912
|
}
|
|
2913
|
-
function
|
|
2913
|
+
function rs(e, t, r = "SHA-256", i = 1e6, o = 0) {
|
|
2914
2914
|
const n = new AbortController(), u = Date.now();
|
|
2915
2915
|
return {
|
|
2916
2916
|
promise: (async () => {
|
|
2917
2917
|
for (let c = o; c <= i; c += 1) {
|
|
2918
2918
|
if (n.signal.aborted)
|
|
2919
2919
|
return null;
|
|
2920
|
-
if (await
|
|
2920
|
+
if (await Bi(t, c, r) === e)
|
|
2921
2921
|
return {
|
|
2922
2922
|
number: c,
|
|
2923
2923
|
took: Date.now() - u
|
|
@@ -2928,25 +2928,25 @@ function ts(e, t, r = "SHA-256", i = 1e6, o = 0) {
|
|
|
2928
2928
|
controller: n
|
|
2929
2929
|
};
|
|
2930
2930
|
}
|
|
2931
|
-
function
|
|
2931
|
+
function Ga() {
|
|
2932
2932
|
try {
|
|
2933
2933
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
2934
2934
|
} catch {
|
|
2935
2935
|
}
|
|
2936
2936
|
}
|
|
2937
|
-
function
|
|
2937
|
+
function as(e) {
|
|
2938
2938
|
const t = atob(e), r = new Uint8Array(t.length);
|
|
2939
2939
|
for (let i = 0; i < t.length; i++)
|
|
2940
2940
|
r[i] = t.charCodeAt(i);
|
|
2941
2941
|
return r;
|
|
2942
2942
|
}
|
|
2943
|
-
function
|
|
2943
|
+
function is(e, t = 12) {
|
|
2944
2944
|
const r = new Uint8Array(t);
|
|
2945
2945
|
for (let i = 0; i < t; i++)
|
|
2946
2946
|
r[i] = e % 256, e = Math.floor(e / 256);
|
|
2947
2947
|
return r;
|
|
2948
2948
|
}
|
|
2949
|
-
async function
|
|
2949
|
+
async function ns(e, t = "", r = 1e6, i = 0) {
|
|
2950
2950
|
const o = "AES-GCM", n = new AbortController(), u = Date.now(), s = async () => {
|
|
2951
2951
|
for (let p = i; p <= r; p += 1) {
|
|
2952
2952
|
if (n.signal.aborted || !c || !d)
|
|
@@ -2955,7 +2955,7 @@ async function is(e, t = "", r = 1e6, i = 0) {
|
|
|
2955
2955
|
const h = await crypto.subtle.decrypt(
|
|
2956
2956
|
{
|
|
2957
2957
|
name: o,
|
|
2958
|
-
iv:
|
|
2958
|
+
iv: is(p)
|
|
2959
2959
|
},
|
|
2960
2960
|
c,
|
|
2961
2961
|
d
|
|
@@ -2972,10 +2972,10 @@ async function is(e, t = "", r = 1e6, i = 0) {
|
|
|
2972
2972
|
};
|
|
2973
2973
|
let c = null, d = null;
|
|
2974
2974
|
try {
|
|
2975
|
-
d =
|
|
2975
|
+
d = as(e);
|
|
2976
2976
|
const p = await crypto.subtle.digest(
|
|
2977
2977
|
"SHA-256",
|
|
2978
|
-
|
|
2978
|
+
Mi.encode(t)
|
|
2979
2979
|
);
|
|
2980
2980
|
c = await crypto.subtle.importKey(
|
|
2981
2981
|
"raw",
|
|
@@ -2996,7 +2996,7 @@ async function is(e, t = "", r = 1e6, i = 0) {
|
|
|
2996
2996
|
};
|
|
2997
2997
|
}
|
|
2998
2998
|
var w = /* @__PURE__ */ ((e) => (e.CODE = "code", e.ERROR = "error", e.VERIFIED = "verified", e.VERIFYING = "verifying", e.UNVERIFIED = "unverified", e.EXPIRED = "expired", e))(w || {}), Q = /* @__PURE__ */ ((e) => (e.ERROR = "error", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.READY = "ready", e))(Q || {});
|
|
2999
|
-
const
|
|
2999
|
+
const os = {
|
|
3000
3000
|
ariaLinkLabel: "Visit Altcha.org",
|
|
3001
3001
|
enterCode: "Enter code",
|
|
3002
3002
|
enterCodeAria: "Enter code you hear. Press Space to play audio.",
|
|
@@ -3013,21 +3013,21 @@ const ns = {
|
|
|
3013
3013
|
verifying: "Verifying...",
|
|
3014
3014
|
waitAlert: "Verifying... please wait."
|
|
3015
3015
|
};
|
|
3016
|
-
globalThis.altchaI18n.set("en",
|
|
3017
|
-
const
|
|
3018
|
-
let r = /* @__PURE__ */
|
|
3019
|
-
var i =
|
|
3016
|
+
globalThis.altchaI18n.set("en", os);
|
|
3017
|
+
const Tr = (e, t) => {
|
|
3018
|
+
let r = /* @__PURE__ */ fo(() => Hn(t == null ? void 0 : t(), 24));
|
|
3019
|
+
var i = fs();
|
|
3020
3020
|
xe(() => {
|
|
3021
3021
|
R(i, "width", l(r)), R(i, "height", l(r));
|
|
3022
3022
|
}), O(e, i);
|
|
3023
3023
|
};
|
|
3024
|
-
function
|
|
3024
|
+
function ls(e, t) {
|
|
3025
3025
|
e.code === "Space" && (e.preventDefault(), e.stopImmediatePropagation(), t());
|
|
3026
3026
|
}
|
|
3027
|
-
function
|
|
3027
|
+
function ss(e, t) {
|
|
3028
3028
|
e.preventDefault(), t();
|
|
3029
3029
|
}
|
|
3030
|
-
function
|
|
3030
|
+
function us(e, t, r, i, o, n, u, s) {
|
|
3031
3031
|
var c;
|
|
3032
3032
|
[
|
|
3033
3033
|
w.UNVERIFIED,
|
|
@@ -3036,35 +3036,35 @@ function ss(e, t, r, i, o, n, u, s) {
|
|
|
3036
3036
|
w.CODE
|
|
3037
3037
|
].includes(l(t)) ? r() !== !1 && ((c = l(i)) == null ? void 0 : c.reportValidity()) === !1 ? y(o, !1) : n() ? u() : s() : y(o, !0);
|
|
3038
3038
|
}
|
|
3039
|
-
var
|
|
3040
|
-
function
|
|
3041
|
-
var
|
|
3042
|
-
|
|
3043
|
-
const [r, i] =
|
|
3044
|
-
let n = x(t, "auto", 7, void 0), u = x(t, "blockspam", 7, void 0), s = x(t, "challengeurl", 7, void 0), c = x(t, "challengejson", 7, void 0), d = x(t, "credentials", 7, void 0), p = x(t, "customfetch", 7, void 0), h = x(t, "debug", 7, !1), v = x(t, "delay", 7, 0), k = x(t, "disableautofocus", 7, !1), V = x(t, "expire", 7, void 0), _ = x(t, "floating", 7, void 0), q = x(t, "floatinganchor", 7, void 0), ce = x(t, "floatingoffset", 7, void 0), K = x(t, "floatingpersist", 7, !1), ee = x(t, "hidefooter", 7, !1), J = x(t, "hidelogo", 7, !1), nt = x(t, "id", 7, void 0), H = x(t, "language", 7, void 0), oe = x(t, "name", 7, "altcha"), me = x(t, "maxnumber", 7, 1e6), At = x(t, "mockerror", 7, !1),
|
|
3045
|
-
const { altchaI18n:
|
|
3039
|
+
var fs = /* @__PURE__ */ hr('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="altcha-spinner"><path d="M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z" fill="currentColor" opacity=".25"></path><path d="M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z" fill="currentColor"></path></svg>'), cs = /* @__PURE__ */ we('<input type="hidden">'), ds = /* @__PURE__ */ we('<div><a target="_blank" class="altcha-logo" aria-hidden="true"><svg width="22" height="22" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.33955 16.4279C5.88954 20.6586 12.1971 21.2105 16.4279 17.6604C18.4699 15.947 19.6548 13.5911 19.9352 11.1365L17.9886 10.4279C17.8738 12.5624 16.909 14.6459 15.1423 16.1284C11.7577 18.9684 6.71167 18.5269 3.87164 15.1423C1.03163 11.7577 1.4731 6.71166 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577C16.9767 5.86872 17.5322 7.02798 17.804 8.2324L19.9522 9.01429C19.7622 7.07737 19.0059 5.17558 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956C-0.658625 5.88958 -1.21046 12.1971 2.33955 16.4279Z" fill="currentColor"></path><path d="M3.57212 2.33956C1.65755 3.94607 0.496389 6.11731 0.12782 8.40523L2.04639 9.13961C2.26047 7.15832 3.21057 5.25375 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577L13.8302 6.78606L19.9633 9.13364C19.7929 7.15555 19.0335 5.20847 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956Z" fill="currentColor"></path><path d="M7 10H5C5 12.7614 7.23858 15 10 15C12.7614 15 15 12.7614 15 10H13C13 11.6569 11.6569 13 10 13C8.3431 13 7 11.6569 7 10Z" fill="currentColor"></path></svg></a></div>'), hs = /* @__PURE__ */ hr('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12.8659 3.00017L22.3922 19.5002C22.6684 19.9785 22.5045 20.5901 22.0262 20.8662C21.8742 20.954 21.7017 21.0002 21.5262 21.0002H2.47363C1.92135 21.0002 1.47363 20.5525 1.47363 20.0002C1.47363 19.8246 1.51984 19.6522 1.60761 19.5002L11.1339 3.00017C11.41 2.52187 12.0216 2.358 12.4999 2.63414C12.6519 2.72191 12.7782 2.84815 12.8659 3.00017ZM10.9999 16.0002V18.0002H12.9999V16.0002H10.9999ZM10.9999 9.00017V14.0002H12.9999V9.00017H10.9999Z"></path></svg>'), gs = /* @__PURE__ */ hr('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M15 7C15 6.44772 15.4477 6 16 6C16.5523 6 17 6.44772 17 7V17C17 17.5523 16.5523 18 16 18C15.4477 18 15 17.5523 15 17V7ZM7 7C7 6.44772 7.44772 6 8 6C8.55228 6 9 6.44772 9 7V17C9 17.5523 8.55228 18 8 18C7.44772 18 7 17.5523 7 17V7Z"></path></svg>'), vs = /* @__PURE__ */ hr('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4 12H7C8.10457 12 9 12.8954 9 14V19C9 20.1046 8.10457 21 7 21H4C2.89543 21 2 20.1046 2 19V12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12V19C22 20.1046 21.1046 21 20 21H17C15.8954 21 15 20.1046 15 19V14C15 12.8954 15.8954 12 17 12H20C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12Z"></path></svg>'), bs = /* @__PURE__ */ we('<button type="button" class="altcha-code-challenge-audio"><!></button>'), ps = /* @__PURE__ */ we("<audio hidden autoplay><source></audio>"), ms = /* @__PURE__ */ we('<div class="altcha-code-challenge" role="dialog"><div class="altcha-code-challenge-arrow"></div> <form data-code-challenge-form="1"><img class="altcha-code-challenge-image" alt=""> <input type="text" autocomplete="off" name="code" class="altcha-code-challenge-input" required> <div class="altcha-code-challenge-buttons"><div class="altcha-code-challenge-buttons-left"><!> <button type="button" class="altcha-code-challenge-reload"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2V4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 9.25022 5.38734 6.82447 7.50024 5.38451L7.5 8H9.5V2L3.5 2V4L5.99918 3.99989C3.57075 5.82434 2 8.72873 2 12Z"></path></svg></button></div> <button type="submit" class="altcha-code-challenge-verify"><!> </button></div> <!></form></div>'), ys = /* @__PURE__ */ we("<div><!></div>"), As = /* @__PURE__ */ we("<div><!></div>"), ks = /* @__PURE__ */ we('<div class="altcha-error"><svg width="14" height="14" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"></path></svg> <!></div>'), _s = /* @__PURE__ */ we('<div class="altcha-footer"><div><!></div></div>'), ws = /* @__PURE__ */ we('<div class="altcha-anchor-arrow"></div>'), Cs = /* @__PURE__ */ we('<!> <div class="altcha"><div class="altcha-main"><div><!> <input type="checkbox"></div> <label class="altcha-label"><!></label> <!> <!> <!></div> <!> <!> <!></div>', 1);
|
|
3040
|
+
function Ls(e, t) {
|
|
3041
|
+
var Va, Ra;
|
|
3042
|
+
si(t, !0);
|
|
3043
|
+
const [r, i] = Go(), o = () => Zo(Zi, "$altchaI18nStore", r);
|
|
3044
|
+
let n = x(t, "auto", 7, void 0), u = x(t, "blockspam", 7, void 0), s = x(t, "challengeurl", 7, void 0), c = x(t, "challengejson", 7, void 0), d = x(t, "credentials", 7, void 0), p = x(t, "customfetch", 7, void 0), h = x(t, "debug", 7, !1), v = x(t, "delay", 7, 0), k = x(t, "disableautofocus", 7, !1), V = x(t, "expire", 7, void 0), _ = x(t, "floating", 7, void 0), q = x(t, "floatinganchor", 7, void 0), ce = x(t, "floatingoffset", 7, void 0), K = x(t, "floatingpersist", 7, !1), ee = x(t, "hidefooter", 7, !1), J = x(t, "hidelogo", 7, !1), nt = x(t, "id", 7, void 0), H = x(t, "language", 7, void 0), oe = x(t, "name", 7, "altcha"), me = x(t, "maxnumber", 7, 1e6), At = x(t, "mockerror", 7, !1), Ne = x(t, "obfuscated", 7, void 0), Ot = x(t, "plugins", 7, void 0), kt = x(t, "refetchonexpire", 7, !0), Ye = x(t, "sentinel", 7, void 0), Ce = x(t, "spamfilter", 7, !1), ot = x(t, "strings", 7, void 0), ge = x(t, "test", 7, !1), te = x(t, "verifyurl", 7, void 0), lt = x(t, "workers", 23, () => Math.min(16, navigator.hardwareConcurrency || 8)), _t = x(t, "workerurl", 7, void 0);
|
|
3045
|
+
const { altchaI18n: Ui } = globalThis, Zi = Ui.store, Yr = ["SHA-256", "SHA-384", "SHA-512"], Gi = "https://altcha.org/", ze = (a, f) => {
|
|
3046
3046
|
t.$$host.dispatchEvent(new CustomEvent(a, { detail: f }));
|
|
3047
|
-
},
|
|
3047
|
+
}, Wr = (Ra = (Va = document.documentElement.lang) == null ? void 0 : Va.split("-")) == null ? void 0 : Ra[0], gr = /* @__PURE__ */ It(() => {
|
|
3048
3048
|
var a;
|
|
3049
3049
|
return s() && new URL(s(), location.origin).host.endsWith(".altcha.org") && !!((a = s()) != null && a.includes("apiKey=ckey_"));
|
|
3050
|
-
}),
|
|
3051
|
-
...
|
|
3052
|
-
...l(
|
|
3053
|
-
})),
|
|
3054
|
-
let wt = /* @__PURE__ */ D(!1), M = /* @__PURE__ */ D(null), T = /* @__PURE__ */ D(Fe(w.UNVERIFIED)), re = /* @__PURE__ */ D(void 0), Ct = /* @__PURE__ */ D(null), De = /* @__PURE__ */ D(null),
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
}),
|
|
3058
|
-
|
|
3059
|
-
}),
|
|
3060
|
-
|
|
3061
|
-
}),
|
|
3050
|
+
}), vr = /* @__PURE__ */ It(() => c() ? fa(c()) : void 0), Yi = /* @__PURE__ */ It(() => ot() ? fa(ot()) : {}), P = /* @__PURE__ */ It(() => ({
|
|
3051
|
+
...Qr(o()),
|
|
3052
|
+
...l(Yi)
|
|
3053
|
+
})), Kr = /* @__PURE__ */ It(() => `${nt() || oe()}_checkbox_${Math.round(Math.random() * 1e8)}`);
|
|
3054
|
+
let wt = /* @__PURE__ */ D(!1), M = /* @__PURE__ */ D(null), T = /* @__PURE__ */ D(Fe(w.UNVERIFIED)), re = /* @__PURE__ */ D(void 0), Ct = /* @__PURE__ */ D(null), De = /* @__PURE__ */ D(null), br = /* @__PURE__ */ D(null), st = /* @__PURE__ */ D(null), S = /* @__PURE__ */ D(null), Ht = /* @__PURE__ */ D(null), We = /* @__PURE__ */ D(null), Le = null, B = /* @__PURE__ */ D(null), Ke = /* @__PURE__ */ D(!1), qe = [], pr = /* @__PURE__ */ D(!1), Re = /* @__PURE__ */ D(null);
|
|
3055
|
+
Rr(() => {
|
|
3056
|
+
sn(l(We));
|
|
3057
|
+
}), Rr(() => {
|
|
3058
|
+
un(l(T));
|
|
3059
|
+
}), Qo(() => {
|
|
3060
|
+
Wi(), y(Ht, null), l(S) && (l(S).removeEventListener("submit", na), l(S).removeEventListener("reset", oa), l(S).removeEventListener("focusin", ia), y(S, null)), Le && (clearTimeout(Le), Le = null), document.removeEventListener("click", ra), document.removeEventListener("scroll", aa), window.removeEventListener("resize", ua);
|
|
3061
|
+
}), qi(() => {
|
|
3062
3062
|
var a;
|
|
3063
|
-
I("mounted", "2.0.
|
|
3064
|
-
|
|
3063
|
+
I("mounted", "2.0.5"), I("workers", lt()), Qi(), I("plugins", qe.length ? qe.map((f) => f.constructor.pluginName).join(", ") : "none"), ge() && I("using test mode"), V() && mr(V()), n() !== void 0 && I("auto", n()), _() !== void 0 && ha(_()), y(S, (a = l(re)) == null ? void 0 : a.closest("form"), !0), l(S) && (l(S).addEventListener("submit", na, { capture: !0 }), l(S).addEventListener("reset", oa), (n() === "onfocus" || K() === "focus") && l(S).addEventListener("focusin", ia)), n() === "onload" && (Ne() ? Lt() : je()), l(gr) && (ee() || J()) && I("Attributes hidefooter and hidelogo ignored because usage with free API Keys requires attribution."), requestAnimationFrame(() => {
|
|
3064
|
+
ze("load");
|
|
3065
3065
|
});
|
|
3066
3066
|
});
|
|
3067
|
-
function
|
|
3067
|
+
function Ft(a, f) {
|
|
3068
3068
|
return btoa(JSON.stringify({
|
|
3069
3069
|
algorithm: a.algorithm,
|
|
3070
3070
|
challenge: a.challenge,
|
|
@@ -3075,21 +3075,21 @@ function Cs(e, t) {
|
|
|
3075
3075
|
took: f.took
|
|
3076
3076
|
}));
|
|
3077
3077
|
}
|
|
3078
|
-
function
|
|
3078
|
+
function Wi() {
|
|
3079
3079
|
for (const a of qe)
|
|
3080
3080
|
a.destroy();
|
|
3081
3081
|
}
|
|
3082
|
-
function
|
|
3082
|
+
function Jr() {
|
|
3083
3083
|
s() && kt() && l(T) === w.VERIFIED ? je() : ut(w.EXPIRED, l(P).expired);
|
|
3084
3084
|
}
|
|
3085
|
-
async function
|
|
3085
|
+
async function Ki() {
|
|
3086
3086
|
var a;
|
|
3087
3087
|
if (At())
|
|
3088
3088
|
throw I("mocking error"), new Error("Mocked error.");
|
|
3089
|
-
if (l(
|
|
3090
|
-
return I("using provided json data"), l(
|
|
3089
|
+
if (l(vr))
|
|
3090
|
+
return I("using provided json data"), l(vr);
|
|
3091
3091
|
if (ge())
|
|
3092
|
-
return I("generating test challenge", { test: ge() }),
|
|
3092
|
+
return I("generating test challenge", { test: ge() }), ts(typeof ge() != "boolean" ? +ge() : void 0);
|
|
3093
3093
|
{
|
|
3094
3094
|
if (!s() && l(S)) {
|
|
3095
3095
|
const L = l(S).getAttribute("action");
|
|
@@ -3101,7 +3101,7 @@ function Cs(e, t) {
|
|
|
3101
3101
|
const f = {
|
|
3102
3102
|
credentials: typeof d() == "boolean" ? "include" : d(),
|
|
3103
3103
|
headers: Ce() !== !1 ? { "x-altcha-spam-filter": "1" } : {}
|
|
3104
|
-
}, g = await
|
|
3104
|
+
}, g = await Xr()(s(), f);
|
|
3105
3105
|
if (!g || !(g instanceof Response))
|
|
3106
3106
|
throw new Error("Custom fetch function did not return a response.");
|
|
3107
3107
|
if (g.status !== 200)
|
|
@@ -3109,24 +3109,24 @@ function Cs(e, t) {
|
|
|
3109
3109
|
const m = g.headers.get("X-Altcha-Config"), b = await g.json(), C = new URLSearchParams((a = b.salt.split("?")) == null ? void 0 : a[1]), A = C.get("expires") || C.get("expire");
|
|
3110
3110
|
if (A) {
|
|
3111
3111
|
const L = new Date(+A * 1e3), F = isNaN(L.getTime()) ? 0 : L.getTime() - Date.now();
|
|
3112
|
-
F > 0 &&
|
|
3112
|
+
F > 0 && mr(F);
|
|
3113
3113
|
}
|
|
3114
3114
|
if (m)
|
|
3115
3115
|
try {
|
|
3116
3116
|
const L = JSON.parse(m);
|
|
3117
|
-
L && typeof L == "object" && (L.verifyurl && !L.verifyurl.startsWith("fn:") && (L.verifyurl =
|
|
3117
|
+
L && typeof L == "object" && (L.verifyurl && !L.verifyurl.startsWith("fn:") && (L.verifyurl = ta(L.verifyurl)), ba(L));
|
|
3118
3118
|
} catch (L) {
|
|
3119
3119
|
I("unable to configure from X-Altcha-Config", L);
|
|
3120
3120
|
}
|
|
3121
3121
|
return b;
|
|
3122
3122
|
}
|
|
3123
3123
|
}
|
|
3124
|
-
function
|
|
3124
|
+
function Ji(a) {
|
|
3125
3125
|
var g, m;
|
|
3126
3126
|
const f = (g = l(S)) == null ? void 0 : g.querySelector(typeof a == "string" ? `input[name="${a}"]` : 'input[type="email"]:not([data-no-spamfilter])');
|
|
3127
3127
|
return ((m = f == null ? void 0 : f.value) == null ? void 0 : m.slice(f.value.indexOf("@"))) || void 0;
|
|
3128
3128
|
}
|
|
3129
|
-
function
|
|
3129
|
+
function Xr() {
|
|
3130
3130
|
let a = fetch;
|
|
3131
3131
|
if (p())
|
|
3132
3132
|
if (I("using customfetch"), typeof p() == "string") {
|
|
@@ -3136,7 +3136,7 @@ function Cs(e, t) {
|
|
|
3136
3136
|
a = p();
|
|
3137
3137
|
return a;
|
|
3138
3138
|
}
|
|
3139
|
-
function
|
|
3139
|
+
function Qr(a, f = [
|
|
3140
3140
|
H() || "",
|
|
3141
3141
|
document.documentElement.lang || "",
|
|
3142
3142
|
...navigator.languages
|
|
@@ -3147,7 +3147,7 @@ function Cs(e, t) {
|
|
|
3147
3147
|
);
|
|
3148
3148
|
return a[m || "en"];
|
|
3149
3149
|
}
|
|
3150
|
-
function
|
|
3150
|
+
function Xi() {
|
|
3151
3151
|
return Ce() === "ipAddress" ? {
|
|
3152
3152
|
blockedCountries: void 0,
|
|
3153
3153
|
classifier: void 0,
|
|
@@ -3172,7 +3172,7 @@ function Cs(e, t) {
|
|
|
3172
3172
|
timeZone: void 0
|
|
3173
3173
|
};
|
|
3174
3174
|
}
|
|
3175
|
-
function
|
|
3175
|
+
function ea(a) {
|
|
3176
3176
|
var g;
|
|
3177
3177
|
return [
|
|
3178
3178
|
...((g = l(S)) == null ? void 0 : g.querySelectorAll(a != null && a.length ? a.map((m) => `input[name="${m}"]`).join(", ") : 'input[type="text"]:not([data-no-spamfilter]), textarea:not([data-no-spamfilter])')) || []
|
|
@@ -3185,53 +3185,53 @@ function Cs(e, t) {
|
|
|
3185
3185
|
{}
|
|
3186
3186
|
);
|
|
3187
3187
|
}
|
|
3188
|
-
function
|
|
3188
|
+
function ta(a, f) {
|
|
3189
3189
|
const g = new URL(s() || location.origin), m = new URL(a, g);
|
|
3190
3190
|
if (m.search || (m.search = g.search), f)
|
|
3191
3191
|
for (const b in f)
|
|
3192
3192
|
f[b] !== void 0 && f[b] !== null && m.searchParams.set(b, f[b]);
|
|
3193
3193
|
return m.toString();
|
|
3194
3194
|
}
|
|
3195
|
-
function
|
|
3195
|
+
function Qi() {
|
|
3196
3196
|
const a = Ot() !== void 0 ? Ot().split(",") : void 0;
|
|
3197
3197
|
for (const f of globalThis.altchaPlugins)
|
|
3198
3198
|
(!a || a.includes(f.pluginName)) && qe.push(new f({
|
|
3199
3199
|
el: l(re),
|
|
3200
3200
|
clarify: Lt,
|
|
3201
|
-
dispatch:
|
|
3202
|
-
getConfiguration:
|
|
3203
|
-
getFloatingAnchor:
|
|
3204
|
-
getState:
|
|
3201
|
+
dispatch: ze,
|
|
3202
|
+
getConfiguration: pa,
|
|
3203
|
+
getFloatingAnchor: ma,
|
|
3204
|
+
getState: ya,
|
|
3205
3205
|
log: I,
|
|
3206
3206
|
reset: ut,
|
|
3207
|
-
solve:
|
|
3207
|
+
solve: va,
|
|
3208
3208
|
setState: Ee,
|
|
3209
|
-
setFloatingAnchor:
|
|
3209
|
+
setFloatingAnchor: ka,
|
|
3210
3210
|
verify: je
|
|
3211
3211
|
}));
|
|
3212
3212
|
}
|
|
3213
3213
|
function I(...a) {
|
|
3214
3214
|
(h() || a.some((f) => f instanceof Error)) && console[a[0] instanceof Error ? "error" : "log"]("ALTCHA", `[name=${oe()}]`, ...a);
|
|
3215
3215
|
}
|
|
3216
|
-
function
|
|
3216
|
+
function en() {
|
|
3217
3217
|
y(B, Q.PAUSED, !0);
|
|
3218
3218
|
}
|
|
3219
|
-
function
|
|
3219
|
+
function tn(a) {
|
|
3220
3220
|
y(B, Q.ERROR, !0);
|
|
3221
3221
|
}
|
|
3222
|
-
function
|
|
3222
|
+
function rn() {
|
|
3223
3223
|
y(B, Q.READY, !0);
|
|
3224
3224
|
}
|
|
3225
|
-
function
|
|
3225
|
+
function an() {
|
|
3226
3226
|
y(B, Q.LOADING, !0);
|
|
3227
3227
|
}
|
|
3228
|
-
function
|
|
3228
|
+
function nn() {
|
|
3229
3229
|
y(B, Q.PLAYING, !0);
|
|
3230
3230
|
}
|
|
3231
|
-
function
|
|
3231
|
+
function on() {
|
|
3232
3232
|
y(B, Q.PAUSED, !0);
|
|
3233
3233
|
}
|
|
3234
|
-
function
|
|
3234
|
+
function ln(a) {
|
|
3235
3235
|
var f;
|
|
3236
3236
|
if (a.preventDefault(), a.stopPropagation(), l(M)) {
|
|
3237
3237
|
const g = new FormData(a.target), m = String(g.get("code"));
|
|
@@ -3245,10 +3245,10 @@ function Cs(e, t) {
|
|
|
3245
3245
|
solution: l(M).solution
|
|
3246
3246
|
});
|
|
3247
3247
|
}
|
|
3248
|
-
y(Ke, !0),
|
|
3249
|
-
C ? (y(M, null), Ee(w.VERIFIED), I("verified"),
|
|
3248
|
+
y(Ke, !0), ca(Ft(l(M).challenge, l(M).solution), m).then(({ reason: b, verified: C }) => {
|
|
3249
|
+
C ? (y(M, null), Ee(w.VERIFIED), I("verified"), xr().then(() => {
|
|
3250
3250
|
var A;
|
|
3251
|
-
(A = l(
|
|
3251
|
+
(A = l(br)) == null || A.focus(), ze("verified", { payload: l(Re) }), n() === "onsubmit" && da(l(Ht));
|
|
3252
3252
|
})) : (ut(), y(We, b || "Verification failed", !0));
|
|
3253
3253
|
}).catch((b) => {
|
|
3254
3254
|
y(M, null), Ee(w.ERROR, b), I("sentinel verification failed:", b);
|
|
@@ -3257,53 +3257,53 @@ function Cs(e, t) {
|
|
|
3257
3257
|
});
|
|
3258
3258
|
}
|
|
3259
3259
|
}
|
|
3260
|
-
function
|
|
3260
|
+
function ra(a) {
|
|
3261
3261
|
var g;
|
|
3262
3262
|
const f = a.target;
|
|
3263
|
-
_() && f && !l(re).contains(f) && (l(T) === w.VERIFIED && K() === !1 || l(T) === w.VERIFIED && K() === "focus" && !((g = l(S)) != null && g.matches(":focus-within")) || n() === "off" && l(T) === w.UNVERIFIED) &&
|
|
3263
|
+
_() && f && !l(re).contains(f) && (l(T) === w.VERIFIED && K() === !1 || l(T) === w.VERIFIED && K() === "focus" && !((g = l(S)) != null && g.matches(":focus-within")) || n() === "off" && l(T) === w.UNVERIFIED) && Aa();
|
|
3264
3264
|
}
|
|
3265
|
-
function
|
|
3265
|
+
function aa() {
|
|
3266
3266
|
_() && l(T) !== w.UNVERIFIED && Et();
|
|
3267
3267
|
}
|
|
3268
|
-
function
|
|
3268
|
+
function sn(a) {
|
|
3269
3269
|
for (const f of qe)
|
|
3270
3270
|
typeof f.onErrorChange == "function" && f.onErrorChange(l(We));
|
|
3271
3271
|
}
|
|
3272
|
-
function aa(a) {
|
|
3273
|
-
l(T) === w.UNVERIFIED ? je() : _() && K() === "focus" && l(T) === w.VERIFIED && mr();
|
|
3274
|
-
}
|
|
3275
3272
|
function ia(a) {
|
|
3276
|
-
|
|
3277
|
-
f != null && f.hasAttribute("data-code-challenge-form") || (l(S) && n() === "onsubmit" ? l(T) === w.UNVERIFIED ? (a.preventDefault(), a.stopPropagation(), je().then(() => {
|
|
3278
|
-
un(g);
|
|
3279
|
-
})) : l(T) !== w.VERIFIED && (a.preventDefault(), a.stopPropagation(), l(T) === w.VERIFYING && oa()) : l(S) && _() && n() === "off" && l(T) === w.UNVERIFIED && (a.preventDefault(), a.stopPropagation(), mr()));
|
|
3273
|
+
l(T) === w.UNVERIFIED ? je() : _() && K() === "focus" && l(T) === w.VERIFIED && yr();
|
|
3280
3274
|
}
|
|
3281
|
-
function na() {
|
|
3282
|
-
|
|
3275
|
+
function na(a) {
|
|
3276
|
+
const f = a.target;
|
|
3277
|
+
f != null && f.hasAttribute("data-code-challenge-form") || (y(Ht, a.submitter, !0), l(S) && n() === "onsubmit" ? l(T) === w.UNVERIFIED ? (a.preventDefault(), a.stopPropagation(), je().then(() => {
|
|
3278
|
+
da(l(Ht));
|
|
3279
|
+
})) : l(T) !== w.VERIFIED && (a.preventDefault(), a.stopPropagation(), l(T) === w.VERIFYING && la()) : l(S) && _() && n() === "off" && l(T) === w.UNVERIFIED && (a.preventDefault(), a.stopPropagation(), yr()));
|
|
3283
3280
|
}
|
|
3284
3281
|
function oa() {
|
|
3285
|
-
|
|
3282
|
+
ut();
|
|
3286
3283
|
}
|
|
3287
3284
|
function la() {
|
|
3288
|
-
l(
|
|
3285
|
+
l(T) === w.VERIFYING && l(P).waitAlert && alert(l(P).waitAlert);
|
|
3286
|
+
}
|
|
3287
|
+
function sa() {
|
|
3288
|
+
l(De) ? l(De).paused ? (l(De).currentTime = 0, l(De).play()) : l(De).pause() : (y(pr, !0), requestAnimationFrame(() => {
|
|
3289
3289
|
var a;
|
|
3290
3290
|
(a = l(De)) == null || a.play();
|
|
3291
3291
|
}));
|
|
3292
3292
|
}
|
|
3293
|
-
function
|
|
3293
|
+
function un(a) {
|
|
3294
3294
|
for (const f of qe)
|
|
3295
3295
|
typeof f.onStateChange == "function" && f.onStateChange(l(T));
|
|
3296
3296
|
_() && l(T) !== w.UNVERIFIED && requestAnimationFrame(() => {
|
|
3297
3297
|
Et();
|
|
3298
3298
|
}), y(wt, l(T) === w.VERIFIED);
|
|
3299
3299
|
}
|
|
3300
|
-
function
|
|
3300
|
+
function ua() {
|
|
3301
3301
|
_() && Et();
|
|
3302
3302
|
}
|
|
3303
|
-
function
|
|
3303
|
+
function fa(a) {
|
|
3304
3304
|
return JSON.parse(a);
|
|
3305
3305
|
}
|
|
3306
|
-
async function
|
|
3306
|
+
async function fn(a) {
|
|
3307
3307
|
if (!te())
|
|
3308
3308
|
throw new Error("Attribute verifyurl not set.");
|
|
3309
3309
|
I("requesting server verification from", te());
|
|
@@ -3318,12 +3318,12 @@ function Cs(e, t) {
|
|
|
3318
3318
|
expectedCountries: X,
|
|
3319
3319
|
fields: le,
|
|
3320
3320
|
ipAddress: Oe,
|
|
3321
|
-
text:
|
|
3322
|
-
timeZone:
|
|
3323
|
-
} =
|
|
3324
|
-
f.blockedCountries = b, f.classifier = C, f.disableRules = A, f.email = L === !1 ? void 0 :
|
|
3321
|
+
text: kr,
|
|
3322
|
+
timeZone: Ut
|
|
3323
|
+
} = Xi();
|
|
3324
|
+
f.blockedCountries = b, f.classifier = C, f.disableRules = A, f.email = L === !1 ? void 0 : Ji(L), f.expectedCountries = X, f.expectedLanguages = F || (Wr ? [Wr] : void 0), f.fields = le === !1 ? void 0 : ea(le), f.ipAddress = Oe === !1 ? void 0 : Oe || "auto", f.text = kr, f.timeZone = Ut === !1 ? void 0 : Ut || Ga();
|
|
3325
3325
|
}
|
|
3326
|
-
const g = await
|
|
3326
|
+
const g = await Xr()(te(), {
|
|
3327
3327
|
body: JSON.stringify(f),
|
|
3328
3328
|
headers: { "content-type": "application/json" },
|
|
3329
3329
|
method: "POST"
|
|
@@ -3333,15 +3333,15 @@ function Cs(e, t) {
|
|
|
3333
3333
|
if (g.status !== 200)
|
|
3334
3334
|
throw new Error(`Server responded with ${g.status}.`);
|
|
3335
3335
|
const m = await g.json();
|
|
3336
|
-
if (m != null && m.payload && y(Re, m.payload, !0),
|
|
3336
|
+
if (m != null && m.payload && y(Re, m.payload, !0), ze("serververification", m), u() && m.classification === "BAD")
|
|
3337
3337
|
throw new Error("SpamFilter returned negative classification.");
|
|
3338
3338
|
}
|
|
3339
|
-
async function
|
|
3339
|
+
async function ca(a, f) {
|
|
3340
3340
|
if (!te())
|
|
3341
3341
|
throw new Error("Attribute verifyurl not set.");
|
|
3342
3342
|
I("requesting sentinel verification from", te());
|
|
3343
3343
|
const g = { code: f, payload: a };
|
|
3344
|
-
Ye() && (g.fields = Ye().fields ?
|
|
3344
|
+
Ye() && (g.fields = Ye().fields ? ea() : void 0, g.timeZone = Ye().timeZone ? Ga() : void 0);
|
|
3345
3345
|
const m = await fetch(te(), {
|
|
3346
3346
|
body: JSON.stringify(g),
|
|
3347
3347
|
headers: { "content-type": "application/json" },
|
|
@@ -3352,35 +3352,35 @@ function Cs(e, t) {
|
|
|
3352
3352
|
if (m.status !== 200)
|
|
3353
3353
|
throw new Error(`Server responded with ${m.status}.`);
|
|
3354
3354
|
const b = await m.json();
|
|
3355
|
-
return b != null && b.payload && y(Re, b.payload, !0),
|
|
3355
|
+
return b != null && b.payload && y(Re, b.payload, !0), ze("sentinelverification", b), b;
|
|
3356
3356
|
}
|
|
3357
|
-
function
|
|
3357
|
+
function da(a) {
|
|
3358
3358
|
var f;
|
|
3359
3359
|
l(S) && "requestSubmit" in l(S) ? l(S).requestSubmit(a) : (f = l(S)) != null && f.reportValidity() && (a ? a.click() : l(S).submit());
|
|
3360
3360
|
}
|
|
3361
|
-
function
|
|
3362
|
-
I("expire", a), Le && (clearTimeout(Le), Le = null), a < 1 ?
|
|
3361
|
+
function mr(a) {
|
|
3362
|
+
I("expire", a), Le && (clearTimeout(Le), Le = null), a < 1 ? Jr() : Le = setTimeout(Jr, a);
|
|
3363
3363
|
}
|
|
3364
|
-
function
|
|
3365
|
-
I("floating", a), _() !== a && (l(re).style.left = "", l(re).style.top = ""), _(a === !0 || a === "" ? "auto" : a === !1 || a === "false" ? void 0 : _()), _() ? (n() || n("onsubmit"), document.addEventListener("scroll",
|
|
3364
|
+
function ha(a) {
|
|
3365
|
+
I("floating", a), _() !== a && (l(re).style.left = "", l(re).style.top = ""), _(a === !0 || a === "" ? "auto" : a === !1 || a === "false" ? void 0 : _()), _() ? (n() || n("onsubmit"), document.addEventListener("scroll", aa), document.addEventListener("click", ra), window.addEventListener("resize", ua)) : n() === "onsubmit" && n(void 0);
|
|
3366
3366
|
}
|
|
3367
|
-
function
|
|
3367
|
+
function ga(a) {
|
|
3368
3368
|
if (!a.algorithm)
|
|
3369
3369
|
throw new Error("Invalid challenge. Property algorithm is missing.");
|
|
3370
3370
|
if (a.signature === void 0)
|
|
3371
3371
|
throw new Error("Invalid challenge. Property signature is missing.");
|
|
3372
|
-
if (!
|
|
3373
|
-
throw new Error(`Unknown algorithm value. Allowed values: ${
|
|
3372
|
+
if (!Yr.includes(a.algorithm.toUpperCase()))
|
|
3373
|
+
throw new Error(`Unknown algorithm value. Allowed values: ${Yr.join(", ")}`);
|
|
3374
3374
|
if (!a.challenge || a.challenge.length < 40)
|
|
3375
3375
|
throw new Error("Challenge is too short. Min. 40 chars.");
|
|
3376
3376
|
if (!a.salt || a.salt.length < 10)
|
|
3377
3377
|
throw new Error("Salt is too short. Min. 10 chars.");
|
|
3378
3378
|
}
|
|
3379
|
-
async function
|
|
3379
|
+
async function va(a) {
|
|
3380
3380
|
let f = null;
|
|
3381
3381
|
if ("Worker" in window) {
|
|
3382
3382
|
try {
|
|
3383
|
-
f = await
|
|
3383
|
+
f = await cn(a, a.maxNumber || a.maxnumber || me());
|
|
3384
3384
|
} catch (g) {
|
|
3385
3385
|
I(g);
|
|
3386
3386
|
}
|
|
@@ -3388,15 +3388,15 @@ function Cs(e, t) {
|
|
|
3388
3388
|
return { data: a, solution: f };
|
|
3389
3389
|
}
|
|
3390
3390
|
if ("obfuscated" in a) {
|
|
3391
|
-
const g = await
|
|
3391
|
+
const g = await ns(a.obfuscated, a.key, a.maxNumber || a.maxnumber);
|
|
3392
3392
|
return { data: a, solution: await g.promise };
|
|
3393
3393
|
}
|
|
3394
3394
|
return {
|
|
3395
3395
|
data: a,
|
|
3396
|
-
solution: await
|
|
3396
|
+
solution: await rs(a.challenge, a.salt, a.algorithm, a.maxNumber || a.maxnumber || me()).promise
|
|
3397
3397
|
};
|
|
3398
3398
|
}
|
|
3399
|
-
async function
|
|
3399
|
+
async function cn(a, f = typeof ge() == "number" ? ge() : a.maxNumber || a.maxnumber || me(), g = Math.ceil(lt())) {
|
|
3400
3400
|
const m = [];
|
|
3401
3401
|
g = Math.min(16, f, Math.max(1, g));
|
|
3402
3402
|
for (let A = 0; A < g; A++)
|
|
@@ -3422,7 +3422,7 @@ function Cs(e, t) {
|
|
|
3422
3422
|
return C.find((A) => !!A) || null;
|
|
3423
3423
|
}
|
|
3424
3424
|
async function Lt() {
|
|
3425
|
-
if (!
|
|
3425
|
+
if (!Ne()) {
|
|
3426
3426
|
Ee(w.ERROR);
|
|
3427
3427
|
return;
|
|
3428
3428
|
}
|
|
@@ -3434,10 +3434,10 @@ function Cs(e, t) {
|
|
|
3434
3434
|
if ("clarify" in a && typeof a.clarify == "function")
|
|
3435
3435
|
return a.clarify();
|
|
3436
3436
|
}
|
|
3437
|
-
function
|
|
3438
|
-
a.obfuscated !== void 0 &&
|
|
3437
|
+
function ba(a) {
|
|
3438
|
+
a.obfuscated !== void 0 && Ne(a.obfuscated), a.auto !== void 0 && (n(a.auto), n() === "onload" && (Ne() ? Lt() : je())), a.blockspam !== void 0 && u(!!a.blockspam), a.customfetch !== void 0 && p(a.customfetch), a.floatinganchor !== void 0 && q(a.floatinganchor), a.delay !== void 0 && v(a.delay), a.floatingoffset !== void 0 && ce(a.floatingoffset), a.floating !== void 0 && ha(a.floating), a.expire !== void 0 && (mr(a.expire), V(a.expire)), a.challenge && (c(typeof a.challenge == "string" ? a.challenge : JSON.stringify(a.challenge)), ga(l(vr))), a.challengeurl !== void 0 && s(a.challengeurl), a.debug !== void 0 && h(!!a.debug), a.hidefooter !== void 0 && ee(!!a.hidefooter), a.hidelogo !== void 0 && J(!!a.hidelogo), a.language !== void 0 && ot(Qr(o(), [a.language])), a.maxnumber !== void 0 && me(+a.maxnumber), a.mockerror !== void 0 && At(!!a.mockerror), a.name !== void 0 && oe(a.name), a.refetchonexpire !== void 0 && kt(!!a.refetchonexpire), a.sentinel !== void 0 && typeof a.sentinel == "object" && Ye(a.sentinel), a.spamfilter !== void 0 && Ce(typeof a.spamfilter == "object" ? a.spamfilter : !!a.spamfilter), a.strings && ot(typeof a.strings == "string" ? a.strings : JSON.stringify(a.strings)), a.test !== void 0 && ge(typeof a.test == "number" ? a.test : !!a.test), a.verifyurl !== void 0 && te(a.verifyurl), a.workers !== void 0 && lt(+a.workers), a.workerurl !== void 0 && _t(a.workerurl);
|
|
3439
3439
|
}
|
|
3440
|
-
function
|
|
3440
|
+
function pa() {
|
|
3441
3441
|
return {
|
|
3442
3442
|
auto: n(),
|
|
3443
3443
|
blockspam: u(),
|
|
@@ -3453,7 +3453,7 @@ function Cs(e, t) {
|
|
|
3453
3453
|
name: oe(),
|
|
3454
3454
|
maxnumber: me(),
|
|
3455
3455
|
mockerror: At(),
|
|
3456
|
-
obfuscated:
|
|
3456
|
+
obfuscated: Ne(),
|
|
3457
3457
|
refetchonexpire: kt(),
|
|
3458
3458
|
spamfilter: Ce(),
|
|
3459
3459
|
strings: l(P),
|
|
@@ -3463,16 +3463,16 @@ function Cs(e, t) {
|
|
|
3463
3463
|
workerurl: _t()
|
|
3464
3464
|
};
|
|
3465
3465
|
}
|
|
3466
|
-
function
|
|
3466
|
+
function ma() {
|
|
3467
3467
|
return l(st);
|
|
3468
3468
|
}
|
|
3469
|
-
function
|
|
3469
|
+
function dn(a) {
|
|
3470
3470
|
return qe.find((f) => f.constructor.pluginName === a);
|
|
3471
3471
|
}
|
|
3472
|
-
function
|
|
3472
|
+
function ya() {
|
|
3473
3473
|
return l(T);
|
|
3474
3474
|
}
|
|
3475
|
-
function
|
|
3475
|
+
function Aa() {
|
|
3476
3476
|
l(re).style.display = "none";
|
|
3477
3477
|
}
|
|
3478
3478
|
function Et(a = 20) {
|
|
@@ -3488,87 +3488,87 @@ function Cs(e, t) {
|
|
|
3488
3488
|
I("unable to find floating anchor element");
|
|
3489
3489
|
}
|
|
3490
3490
|
function ut(a = w.UNVERIFIED, f = null) {
|
|
3491
|
-
Le && (clearTimeout(Le), Le = null), y(wt, !1), y(Re, null), y(M, null), y(
|
|
3491
|
+
Le && (clearTimeout(Le), Le = null), y(wt, !1), y(Re, null), y(M, null), y(pr, !1), y(B, null), Ee(a, f);
|
|
3492
3492
|
}
|
|
3493
|
-
function
|
|
3493
|
+
function ka(a) {
|
|
3494
3494
|
y(st, a, !0);
|
|
3495
3495
|
}
|
|
3496
3496
|
function Ee(a, f = null) {
|
|
3497
|
-
y(T, a, !0), y(We, f, !0),
|
|
3497
|
+
y(T, a, !0), y(We, f, !0), ze("statechange", {
|
|
3498
3498
|
payload: l(Re),
|
|
3499
3499
|
state: l(T)
|
|
3500
3500
|
});
|
|
3501
3501
|
}
|
|
3502
|
-
function
|
|
3502
|
+
function yr() {
|
|
3503
3503
|
l(re).style.display = "block", _() && Et();
|
|
3504
3504
|
}
|
|
3505
3505
|
async function je() {
|
|
3506
|
-
return ut(w.VERIFYING), await new Promise((a) => setTimeout(a, v() || 0)),
|
|
3506
|
+
return ut(w.VERIFYING), await new Promise((a) => setTimeout(a, v() || 0)), Ki().then((a) => (ga(a), I("challenge", a), va(a))).then(({ data: a, solution: f }) => {
|
|
3507
3507
|
var g;
|
|
3508
3508
|
if (I("solution", f), !f || a && "challenge" in a && !("clearText" in f))
|
|
3509
3509
|
if ((f == null ? void 0 : f.number) !== void 0 && "challenge" in a)
|
|
3510
3510
|
if (te() && "codeChallenge" in a)
|
|
3511
|
-
((g = document.activeElement) == null ? void 0 : g.tagName)
|
|
3511
|
+
["INPUT", "BUTTON", "SELECT", "TEXTAREA"].includes(((g = document.activeElement) == null ? void 0 : g.tagName) || "") && k() === !1 && document.activeElement.blur(), y(M, { challenge: a, solution: f }, !0);
|
|
3512
3512
|
else {
|
|
3513
3513
|
if (te() && Ye() !== void 0)
|
|
3514
|
-
return
|
|
3514
|
+
return ca(Ft(a, f));
|
|
3515
3515
|
if (te())
|
|
3516
|
-
return
|
|
3517
|
-
y(Re,
|
|
3516
|
+
return fn(Ft(a, f));
|
|
3517
|
+
y(Re, Ft(a, f), !0), I("payload", l(Re));
|
|
3518
3518
|
}
|
|
3519
3519
|
else
|
|
3520
3520
|
throw I("Unable to find a solution. Ensure that the 'maxnumber' attribute is greater than the randomly generated number."), new Error("Unexpected result returned.");
|
|
3521
3521
|
}).then(() => {
|
|
3522
|
-
l(M) ? (Ee(w.CODE),
|
|
3523
|
-
|
|
3524
|
-
})) : (Ee(w.VERIFIED), I("verified"),
|
|
3525
|
-
|
|
3522
|
+
l(M) ? (Ee(w.CODE), xr().then(() => {
|
|
3523
|
+
ze("code", { codeChallenge: l(M) });
|
|
3524
|
+
})) : (Ee(w.VERIFIED), I("verified"), xr().then(() => {
|
|
3525
|
+
ze("verified", { payload: l(Re) });
|
|
3526
3526
|
}));
|
|
3527
3527
|
}).catch((a) => {
|
|
3528
3528
|
I(a), Ee(w.ERROR, a.message);
|
|
3529
3529
|
});
|
|
3530
3530
|
}
|
|
3531
|
-
var
|
|
3532
|
-
|
|
3533
|
-
var xt = Y(
|
|
3534
|
-
let
|
|
3535
|
-
var
|
|
3531
|
+
var _a = Cs(), wa = Vt(_a);
|
|
3532
|
+
Do(wa, t, "default", {});
|
|
3533
|
+
var xt = Y(wa, 2), Ar = G(xt), Mt = G(Ar);
|
|
3534
|
+
let Ca;
|
|
3535
|
+
var La = G(Mt);
|
|
3536
3536
|
{
|
|
3537
|
-
var
|
|
3538
|
-
|
|
3537
|
+
var hn = (a) => {
|
|
3538
|
+
Tr(a);
|
|
3539
3539
|
};
|
|
3540
|
-
W(
|
|
3541
|
-
l(T) === w.VERIFYING && a(
|
|
3540
|
+
W(La, (a) => {
|
|
3541
|
+
l(T) === w.VERIFYING && a(hn);
|
|
3542
3542
|
});
|
|
3543
3543
|
}
|
|
3544
|
-
var Je = Y(
|
|
3545
|
-
|
|
3546
|
-
|
|
3544
|
+
var Je = Y(La, 2);
|
|
3545
|
+
Fa(Je), Je.__change = [
|
|
3546
|
+
us,
|
|
3547
3547
|
T,
|
|
3548
3548
|
Ce,
|
|
3549
3549
|
S,
|
|
3550
3550
|
wt,
|
|
3551
|
-
|
|
3551
|
+
Ne,
|
|
3552
3552
|
Lt,
|
|
3553
3553
|
je
|
|
3554
|
-
],
|
|
3555
|
-
var
|
|
3554
|
+
], Yt(Je, (a) => y(br, a), () => l(br)), Z(Mt);
|
|
3555
|
+
var Bt = Y(Mt, 2), gn = G(Bt);
|
|
3556
3556
|
{
|
|
3557
|
-
var
|
|
3558
|
-
var f =
|
|
3557
|
+
var vn = (a) => {
|
|
3558
|
+
var f = Gt(), g = Vt(f);
|
|
3559
3559
|
Xe(g, () => l(P).verified), O(a, f);
|
|
3560
|
-
},
|
|
3560
|
+
}, bn = (a, f) => {
|
|
3561
3561
|
{
|
|
3562
3562
|
var g = (b) => {
|
|
3563
|
-
var C =
|
|
3563
|
+
var C = Gt(), A = Vt(C);
|
|
3564
3564
|
Xe(A, () => l(P).verifying), O(b, C);
|
|
3565
3565
|
}, m = (b, C) => {
|
|
3566
3566
|
{
|
|
3567
3567
|
var A = (F) => {
|
|
3568
|
-
var X =
|
|
3568
|
+
var X = Gt(), le = Vt(X);
|
|
3569
3569
|
Xe(le, () => l(P).verificationRequired), O(F, X);
|
|
3570
3570
|
}, L = (F) => {
|
|
3571
|
-
var X =
|
|
3571
|
+
var X = Gt(), le = Vt(X);
|
|
3572
3572
|
Xe(le, () => l(P).label), O(F, X);
|
|
3573
3573
|
};
|
|
3574
3574
|
W(
|
|
@@ -3589,84 +3589,84 @@ function Cs(e, t) {
|
|
|
3589
3589
|
);
|
|
3590
3590
|
}
|
|
3591
3591
|
};
|
|
3592
|
-
W(
|
|
3593
|
-
l(T) === w.VERIFIED ? a(
|
|
3592
|
+
W(gn, (a) => {
|
|
3593
|
+
l(T) === w.VERIFIED ? a(vn) : a(bn, !1);
|
|
3594
3594
|
});
|
|
3595
3595
|
}
|
|
3596
|
-
Z(
|
|
3597
|
-
var
|
|
3596
|
+
Z(Bt);
|
|
3597
|
+
var Ea = Y(Bt, 2);
|
|
3598
3598
|
{
|
|
3599
|
-
var
|
|
3600
|
-
var f =
|
|
3601
|
-
|
|
3602
|
-
R(f, "name", oe()),
|
|
3599
|
+
var pn = (a) => {
|
|
3600
|
+
var f = cs();
|
|
3601
|
+
Fa(f), xe(() => {
|
|
3602
|
+
R(f, "name", oe()), Mo(f, l(Re));
|
|
3603
3603
|
}), O(a, f);
|
|
3604
3604
|
};
|
|
3605
|
-
W(
|
|
3606
|
-
l(T) === w.VERIFIED && a(
|
|
3605
|
+
W(Ea, (a) => {
|
|
3606
|
+
l(T) === w.VERIFIED && a(pn);
|
|
3607
3607
|
});
|
|
3608
3608
|
}
|
|
3609
|
-
var
|
|
3609
|
+
var xa = Y(Ea, 2);
|
|
3610
3610
|
{
|
|
3611
|
-
var
|
|
3612
|
-
var f =
|
|
3613
|
-
R(g, "href",
|
|
3611
|
+
var mn = (a) => {
|
|
3612
|
+
var f = ds(), g = G(f);
|
|
3613
|
+
R(g, "href", Gi), Z(f), xe(() => R(g, "aria-label", l(P).ariaLinkLabel)), O(a, f);
|
|
3614
3614
|
};
|
|
3615
|
-
W(
|
|
3616
|
-
(J() !== !0 || l(
|
|
3615
|
+
W(xa, (a) => {
|
|
3616
|
+
(J() !== !0 || l(gr)) && a(mn);
|
|
3617
3617
|
});
|
|
3618
3618
|
}
|
|
3619
|
-
var
|
|
3619
|
+
var yn = Y(xa, 2);
|
|
3620
3620
|
{
|
|
3621
|
-
var
|
|
3622
|
-
var f =
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3621
|
+
var An = (a) => {
|
|
3622
|
+
var f = ms(), g = Y(G(f), 2), m = G(g), b = Y(m, 2);
|
|
3623
|
+
Ro(b, !k()), b.__keydown = [
|
|
3624
|
+
ls,
|
|
3625
|
+
sa
|
|
3626
3626
|
];
|
|
3627
3627
|
var C = Y(b, 2), A = G(C), L = G(A);
|
|
3628
3628
|
{
|
|
3629
3629
|
var F = (ye) => {
|
|
3630
|
-
var U =
|
|
3631
|
-
U.__click =
|
|
3632
|
-
var
|
|
3630
|
+
var U = bs();
|
|
3631
|
+
U.__click = sa;
|
|
3632
|
+
var Zt = G(U);
|
|
3633
3633
|
{
|
|
3634
3634
|
var Tt = (ft) => {
|
|
3635
|
-
|
|
3636
|
-
},
|
|
3635
|
+
Tr(ft, () => 20);
|
|
3636
|
+
}, Tn = (ft, In) => {
|
|
3637
3637
|
{
|
|
3638
|
-
var
|
|
3639
|
-
var
|
|
3640
|
-
O(ct,
|
|
3641
|
-
},
|
|
3638
|
+
var Vn = (ct) => {
|
|
3639
|
+
var _r = hs();
|
|
3640
|
+
O(ct, _r);
|
|
3641
|
+
}, Rn = (ct, _r) => {
|
|
3642
3642
|
{
|
|
3643
|
-
var
|
|
3644
|
-
var
|
|
3645
|
-
O(dt,
|
|
3646
|
-
},
|
|
3647
|
-
var
|
|
3648
|
-
O(dt,
|
|
3643
|
+
var jn = (dt) => {
|
|
3644
|
+
var wr = gs();
|
|
3645
|
+
O(dt, wr);
|
|
3646
|
+
}, $n = (dt) => {
|
|
3647
|
+
var wr = vs();
|
|
3648
|
+
O(dt, wr);
|
|
3649
3649
|
};
|
|
3650
3650
|
W(
|
|
3651
3651
|
ct,
|
|
3652
3652
|
(dt) => {
|
|
3653
|
-
l(B) === Q.PLAYING ? dt(
|
|
3653
|
+
l(B) === Q.PLAYING ? dt(jn) : dt($n, !1);
|
|
3654
3654
|
},
|
|
3655
|
-
|
|
3655
|
+
_r
|
|
3656
3656
|
);
|
|
3657
3657
|
}
|
|
3658
3658
|
};
|
|
3659
3659
|
W(
|
|
3660
3660
|
ft,
|
|
3661
3661
|
(ct) => {
|
|
3662
|
-
l(B) === Q.ERROR ? ct(
|
|
3662
|
+
l(B) === Q.ERROR ? ct(Vn) : ct(Rn, !1);
|
|
3663
3663
|
},
|
|
3664
|
-
|
|
3664
|
+
In
|
|
3665
3665
|
);
|
|
3666
3666
|
}
|
|
3667
3667
|
};
|
|
3668
|
-
W(
|
|
3669
|
-
l(B) === Q.LOADING ? ft(Tt) : ft(
|
|
3668
|
+
W(Zt, (ft) => {
|
|
3669
|
+
l(B) === Q.LOADING ? ft(Tt) : ft(Tn, !1);
|
|
3670
3670
|
});
|
|
3671
3671
|
}
|
|
3672
3672
|
Z(U), xe(() => {
|
|
@@ -3678,50 +3678,50 @@ function Cs(e, t) {
|
|
|
3678
3678
|
});
|
|
3679
3679
|
}
|
|
3680
3680
|
var X = Y(L, 2);
|
|
3681
|
-
X.__click = [
|
|
3681
|
+
X.__click = [ss, je], Z(A);
|
|
3682
3682
|
var le = Y(A, 2), Oe = G(le);
|
|
3683
3683
|
{
|
|
3684
|
-
var
|
|
3685
|
-
|
|
3684
|
+
var kr = (ye) => {
|
|
3685
|
+
Tr(ye, () => 16);
|
|
3686
3686
|
};
|
|
3687
3687
|
W(Oe, (ye) => {
|
|
3688
|
-
l(Ke) && ye(
|
|
3688
|
+
l(Ke) && ye(kr);
|
|
3689
3689
|
});
|
|
3690
3690
|
}
|
|
3691
|
-
var
|
|
3691
|
+
var Ut = Y(Oe);
|
|
3692
3692
|
Z(le), Z(C);
|
|
3693
|
-
var
|
|
3693
|
+
var En = Y(C, 2);
|
|
3694
3694
|
{
|
|
3695
|
-
var
|
|
3696
|
-
var U =
|
|
3697
|
-
Z(U),
|
|
3698
|
-
() =>
|
|
3699
|
-
]), He("loadstart", U,
|
|
3695
|
+
var xn = (ye) => {
|
|
3696
|
+
var U = ps(), Zt = G(U);
|
|
3697
|
+
Z(U), Yt(U, (Tt) => y(De, Tt), () => l(De)), xe((Tt) => R(Zt, "src", Tt), [
|
|
3698
|
+
() => ta(l(M).challenge.codeChallenge.audio, { language: H() })
|
|
3699
|
+
]), He("loadstart", U, an), He("canplay", U, rn), He("pause", U, on), He("playing", U, nn), He("ended", U, en), He("error", Zt, tn), O(ye, U);
|
|
3700
3700
|
};
|
|
3701
|
-
W(
|
|
3702
|
-
l(M).challenge.codeChallenge.audio && l(
|
|
3701
|
+
W(En, (ye) => {
|
|
3702
|
+
l(M).challenge.codeChallenge.audio && l(pr) && ye(xn);
|
|
3703
3703
|
});
|
|
3704
3704
|
}
|
|
3705
3705
|
Z(g), Z(f), xe(() => {
|
|
3706
|
-
R(f, "aria-label", l(P).verificationRequired), R(m, "src", l(M).challenge.codeChallenge.image), R(b, "minlength", l(M).challenge.codeChallenge.length || 1), R(b, "maxlength", l(M).challenge.codeChallenge.length), R(b, "placeholder", l(P).enterCode), R(b, "aria-label", l(B) === Q.LOADING ? l(P).loading : l(B) === Q.PLAYING ? "" : l(P).enterCodeAria), R(b, "aria-live", l(B) ? "assertive" : "polite"), R(b, "aria-busy", l(B) === Q.LOADING), b.disabled = l(Ke), R(X, "aria-label", l(P).reload), R(X, "title", l(P).reload), X.disabled = l(Ke), le.disabled = l(Ke), R(le, "aria-label", l(P).verify),
|
|
3707
|
-
}), He("submit", g,
|
|
3706
|
+
R(f, "aria-label", l(P).verificationRequired), R(m, "src", l(M).challenge.codeChallenge.image), R(b, "minlength", l(M).challenge.codeChallenge.length || 1), R(b, "maxlength", l(M).challenge.codeChallenge.length), R(b, "placeholder", l(P).enterCode), R(b, "aria-label", l(B) === Q.LOADING ? l(P).loading : l(B) === Q.PLAYING ? "" : l(P).enterCodeAria), R(b, "aria-live", l(B) ? "assertive" : "polite"), R(b, "aria-busy", l(B) === Q.LOADING), b.disabled = l(Ke), R(X, "aria-label", l(P).reload), R(X, "title", l(P).reload), X.disabled = l(Ke), le.disabled = l(Ke), R(le, "aria-label", l(P).verify), Po(Ut, ` ${l(P).verify ?? ""}`);
|
|
3707
|
+
}), He("submit", g, ln, !0), O(a, f);
|
|
3708
3708
|
};
|
|
3709
|
-
W(
|
|
3709
|
+
W(yn, (a) => {
|
|
3710
3710
|
var f;
|
|
3711
|
-
(f = l(M)) != null && f.challenge.codeChallenge && a(
|
|
3711
|
+
(f = l(M)) != null && f.challenge.codeChallenge && a(An);
|
|
3712
3712
|
});
|
|
3713
3713
|
}
|
|
3714
|
-
Z(
|
|
3715
|
-
var
|
|
3714
|
+
Z(Ar);
|
|
3715
|
+
var Ta = Y(Ar, 2);
|
|
3716
3716
|
{
|
|
3717
|
-
var
|
|
3718
|
-
var f =
|
|
3717
|
+
var kn = (a) => {
|
|
3718
|
+
var f = ks(), g = Y(G(f), 2);
|
|
3719
3719
|
{
|
|
3720
3720
|
var m = (C) => {
|
|
3721
|
-
var A =
|
|
3721
|
+
var A = ys(), L = G(A);
|
|
3722
3722
|
Xe(L, () => l(P).expired), Z(A), xe(() => R(A, "title", l(We))), O(C, A);
|
|
3723
3723
|
}, b = (C) => {
|
|
3724
|
-
var A =
|
|
3724
|
+
var A = As(), L = G(A);
|
|
3725
3725
|
Xe(L, () => l(P).error), Z(A), xe(() => R(A, "title", l(We))), O(C, A);
|
|
3726
3726
|
};
|
|
3727
3727
|
W(g, (C) => {
|
|
@@ -3730,53 +3730,53 @@ function Cs(e, t) {
|
|
|
3730
3730
|
}
|
|
3731
3731
|
Z(f), O(a, f);
|
|
3732
3732
|
};
|
|
3733
|
-
W(
|
|
3734
|
-
(l(We) || l(T) === w.EXPIRED) && a(
|
|
3733
|
+
W(Ta, (a) => {
|
|
3734
|
+
(l(We) || l(T) === w.EXPIRED) && a(kn);
|
|
3735
3735
|
});
|
|
3736
3736
|
}
|
|
3737
|
-
var
|
|
3737
|
+
var Ia = Y(Ta, 2);
|
|
3738
3738
|
{
|
|
3739
|
-
var
|
|
3740
|
-
var f =
|
|
3739
|
+
var _n = (a) => {
|
|
3740
|
+
var f = _s(), g = G(f), m = G(g);
|
|
3741
3741
|
Xe(m, () => l(P).footer), Z(g), Z(f), O(a, f);
|
|
3742
3742
|
};
|
|
3743
|
-
W(
|
|
3744
|
-
l(P).footer && (ee() !== !0 || l(
|
|
3743
|
+
W(Ia, (a) => {
|
|
3744
|
+
l(P).footer && (ee() !== !0 || l(gr)) && a(_n);
|
|
3745
3745
|
});
|
|
3746
3746
|
}
|
|
3747
|
-
var
|
|
3747
|
+
var wn = Y(Ia, 2);
|
|
3748
3748
|
{
|
|
3749
|
-
var
|
|
3750
|
-
var f =
|
|
3751
|
-
|
|
3749
|
+
var Cn = (a) => {
|
|
3750
|
+
var f = ws();
|
|
3751
|
+
Yt(f, (g) => y(Ct, g), () => l(Ct)), O(a, f);
|
|
3752
3752
|
};
|
|
3753
|
-
W(
|
|
3754
|
-
_() && a(
|
|
3753
|
+
W(wn, (a) => {
|
|
3754
|
+
_() && a(Cn);
|
|
3755
3755
|
});
|
|
3756
3756
|
}
|
|
3757
|
-
Z(xt),
|
|
3757
|
+
Z(xt), Yt(xt, (a) => y(re, a), () => l(re)), xe(
|
|
3758
3758
|
(a) => {
|
|
3759
|
-
R(xt, "data-state", l(T)), R(xt, "data-floating", _()),
|
|
3759
|
+
R(xt, "data-state", l(T)), R(xt, "data-floating", _()), Ca = Oo(Mt, 1, "altcha-checkbox", null, Ca, a), R(Je, "id", l(Kr)), Je.required = n() !== "onsubmit" && (!_() || n() !== "off"), R(Bt, "for", l(Kr));
|
|
3760
3760
|
},
|
|
3761
3761
|
[
|
|
3762
3762
|
() => ({
|
|
3763
3763
|
"altcha-checkbox-verifying": l(T) === w.VERIFYING
|
|
3764
3764
|
})
|
|
3765
3765
|
]
|
|
3766
|
-
), He("invalid", Je,
|
|
3767
|
-
var
|
|
3766
|
+
), He("invalid", Je, la), Uo(Je, () => l(wt), (a) => y(wt, a)), O(e, _a);
|
|
3767
|
+
var Ln = ui({
|
|
3768
3768
|
clarify: Lt,
|
|
3769
|
-
configure:
|
|
3770
|
-
getConfiguration:
|
|
3771
|
-
getFloatingAnchor:
|
|
3772
|
-
getPlugin:
|
|
3773
|
-
getState:
|
|
3774
|
-
hide:
|
|
3769
|
+
configure: ba,
|
|
3770
|
+
getConfiguration: pa,
|
|
3771
|
+
getFloatingAnchor: ma,
|
|
3772
|
+
getPlugin: dn,
|
|
3773
|
+
getState: ya,
|
|
3774
|
+
hide: Aa,
|
|
3775
3775
|
repositionFloating: Et,
|
|
3776
3776
|
reset: ut,
|
|
3777
|
-
setFloatingAnchor:
|
|
3777
|
+
setFloatingAnchor: ka,
|
|
3778
3778
|
setState: Ee,
|
|
3779
|
-
show:
|
|
3779
|
+
show: yr,
|
|
3780
3780
|
verify: je,
|
|
3781
3781
|
get auto() {
|
|
3782
3782
|
return n();
|
|
@@ -3905,10 +3905,10 @@ function Cs(e, t) {
|
|
|
3905
3905
|
At(a), E();
|
|
3906
3906
|
},
|
|
3907
3907
|
get obfuscated() {
|
|
3908
|
-
return
|
|
3908
|
+
return Ne();
|
|
3909
3909
|
},
|
|
3910
3910
|
set obfuscated(a = void 0) {
|
|
3911
|
-
|
|
3911
|
+
Ne(a), E();
|
|
3912
3912
|
},
|
|
3913
3913
|
get plugins() {
|
|
3914
3914
|
return Ot();
|
|
@@ -3965,11 +3965,11 @@ function Cs(e, t) {
|
|
|
3965
3965
|
_t(a), E();
|
|
3966
3966
|
}
|
|
3967
3967
|
});
|
|
3968
|
-
return i(),
|
|
3968
|
+
return i(), Ln;
|
|
3969
3969
|
}
|
|
3970
|
-
|
|
3971
|
-
customElements.define("altcha-widget",
|
|
3972
|
-
|
|
3970
|
+
So(["change", "keydown", "click"]);
|
|
3971
|
+
customElements.define("altcha-widget", Xo(
|
|
3972
|
+
Ls,
|
|
3973
3973
|
{
|
|
3974
3974
|
blockspam: { type: "Boolean" },
|
|
3975
3975
|
debug: { type: "Boolean" },
|
|
@@ -4021,15 +4021,15 @@ customElements.define("altcha-widget", Jo(
|
|
|
4021
4021
|
],
|
|
4022
4022
|
!1
|
|
4023
4023
|
));
|
|
4024
|
-
const
|
|
4025
|
-
function
|
|
4024
|
+
const Es = '@keyframes altcha-spinner{to{transform:rotate(360deg)}}.altcha{background:var(--altcha-color-base, transparent);border:var(--altcha-border-width, 1px) solid var(--altcha-color-border, #a0a0a0);border-radius:var(--altcha-border-radius, 3px);color:var(--altcha-color-text, currentColor);display:flex;flex-direction:column;max-width:var(--altcha-max-width, 260px);position:relative}.altcha:focus-within{border-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating]{background:var(--altcha-color-base, white);display:none;filter:drop-shadow(3px 3px 6px rgba(0,0,0,.2));left:-100%;position:fixed;top:-100%;width:var(--altcha-max-width, 260px);z-index:999999}.altcha[data-floating=top] .altcha-anchor-arrow{border-bottom-color:transparent;border-top-color:var(--altcha-color-border, #a0a0a0);bottom:-12px;top:auto}.altcha[data-floating=bottom]:focus-within::after{border-bottom-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating=top]:focus-within::after{border-top-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating]:not([data-state=unverified]){display:block}.altcha-anchor-arrow{border:6px solid transparent;border-bottom-color:var(--altcha-color-border, #a0a0a0);content:"";height:0;left:12px;position:absolute;top:-12px;width:0}.altcha-main{align-items:center;display:flex;gap:.4rem;padding:.7rem;position:relative}.altcha-code-challenge{background:var(--altcha-color-base, white);border:1px solid var(--altcha-color-border-focus, currentColor);border-radius:var(--altcha-border-radius, 3px);filter:drop-shadow(3px 3px 6px rgba(0,0,0,.2));padding:.5rem;position:absolute;top:2.5rem;z-index:9999999}.altcha-code-challenge>form{display:flex;flex-direction:column;gap:.5rem}.altcha-code-challenge-input{border:1px solid currentColor;border-radius:3px;box-sizing:border-box;outline:0;font-size:16px;padding:.35rem;width:220px}.altcha-code-challenge-input:focus{outline:2px solid color-mix(in srgb,var(--altcha-color-active, #1D1DC9) 20%,transparent)}.altcha-code-challenge-input:disabled{opacity:.7}.altcha-code-challenge-image{background-color:#fff;border:1px solid currentColor;border-radius:3px;box-sizing:border-box;object-fit:contain;height:50px;width:220px}.altcha-code-challenge-audio,.altcha-code-challenge-reload{background:color-mix(in srgb,var(--altcha-color-text, currentColor) 10%,transparent);border:0;border-radius:3px;color:var(--altcha-color-text, currentColor);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:.35rem}.altcha-code-challenge-audio:disabled,.altcha-code-challenge-reload:disabled,.altcha-code-challenge-verify:disabled{opacity:.7;pointer-events:none}.altcha-code-challenge-audio>*,.altcha-code-challenge-reload>*{height:20px;width:20px}.altcha-code-challenge-buttons{display:flex;justify-content:space-between}.altcha-code-challenge-buttons-left{display:flex;gap:.25rem}.altcha-code-challenge-verify{align-items:center;background:var(--altcha-color-active, #1D1DC9);border:0;border-radius:3px;color:#fff;cursor:pointer;display:flex;gap:.5rem;font-size:100%;padding:.35rem 1rem}.altcha-code-challenge-arrow{border:6px solid transparent;border-bottom-color:var(--altcha-color-border, currentColor);content:"";height:0;left:.15rem;position:absolute;top:-12px;width:0}.altcha[data-floating=top] .altcha-code-challenge{top:-150px}.altcha[data-floating=top] .altcha-code-challenge-arrow{border-bottom-color:transparent;border-top-color:var(--altcha-color-border, currentColor);bottom:-12px;top:auto}.altcha-label{cursor:pointer;flex-grow:1}.altcha-logo{color:currentColor!important;opacity:.7}.altcha-footer:hover,.altcha-logo:hover{opacity:1}.altcha-error{color:var(--altcha-color-error-text, #f23939);display:flex;font-size:.85rem;gap:.3rem;padding:0 .7rem .7rem}.altcha-footer{align-items:center;background-color:var(--altcha-color-footer-bg, transparent);display:flex;font-size:.75rem;opacity:.7;justify-content:end;padding:.2rem .7rem}.altcha-footer a{color:currentColor}.altcha-checkbox{display:flex;align-items:center;justify-content:center;height:24px;position:relative;width:24px}.altcha-checkbox .altcha-spinner{bottom:0;left:0;position:absolute;right:0;top:0}.altcha-checkbox input{width:18px;height:18px;margin:0}.altcha-checkbox-verifying input{appearance:none;opacity:0;pointer-events:none}.altcha-spinner{animation:altcha-spinner .75s infinite linear;transform-origin:center}';
|
|
4025
|
+
function xs(e, t = "__altcha-css") {
|
|
4026
4026
|
if (!document.getElementById(t)) {
|
|
4027
4027
|
const r = document.createElement("style");
|
|
4028
4028
|
r.id = t, r.textContent = e, document.head.appendChild(r);
|
|
4029
4029
|
}
|
|
4030
4030
|
}
|
|
4031
|
-
globalThis.altchaCreateWorker = (e) => e ? new Worker(new URL(e)) : new
|
|
4032
|
-
Es
|
|
4031
|
+
globalThis.altchaCreateWorker = (e) => e ? new Worker(new URL(e)) : new Xl();
|
|
4032
|
+
xs(Es);
|
|
4033
4033
|
export {
|
|
4034
|
-
|
|
4034
|
+
Ls as Altcha
|
|
4035
4035
|
};
|