altcha 2.1.0-beta.3 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/dist/altcha.i18n.js +520 -518
- package/dist/altcha.i18n.umd.js +4 -4
- package/dist/altcha.js +521 -519
- package/dist/altcha.umd.cjs +4 -4
- package/dist_external/altcha.css +1 -1
- package/dist_external/altcha.js +470 -468
- package/dist_external/altcha.umd.cjs +3 -3
- package/package.json +9 -1
package/dist/altcha.i18n.js
CHANGED
|
@@ -3,9 +3,9 @@ var za = (e) => {
|
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
5
|
var qn = (e, t, r) => t in e ? Dn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
6
|
-
var
|
|
6
|
+
var _e = (e, t, r) => qn(e, typeof t != "symbol" ? t + "" : t, r), Na = (e, t, r) => t.has(e) || za("Cannot " + r);
|
|
7
7
|
var se = (e, t, r) => (Na(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Ir = (e, t, r) => t.has(e) ? za("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), Vr = (e, t, r, i) => (Na(e, t, "write to private field"), i ? i.call(e, r) : t.set(e, r), r);
|
|
8
|
-
var Qa = Array.isArray, On = Array.prototype.indexOf, Hn = Array.from,
|
|
8
|
+
var Qa = Array.isArray, On = Array.prototype.indexOf, Hn = Array.from, ir = Object.keys, qt = Object.defineProperty, rt = Object.getOwnPropertyDescriptor, Fn = Object.getOwnPropertyDescriptors, Mn = Object.prototype, Bn = Array.prototype, ei = Object.getPrototypeOf, Da = Object.isExtensible;
|
|
9
9
|
const At = () => {
|
|
10
10
|
};
|
|
11
11
|
function ti(e) {
|
|
@@ -21,24 +21,24 @@ function Un(e, t, r = !1) {
|
|
|
21
21
|
t
|
|
22
22
|
) : e;
|
|
23
23
|
}
|
|
24
|
-
const
|
|
25
|
-
let
|
|
24
|
+
const we = 2, ri = 4, ur = 8, Fr = 16, Ne = 32, nt = 64, nr = 128, ge = 256, or = 512, fe = 1024, ze = 2048, ot = 4096, _t = 8192, dr = 16384, Zn = 32768, Mr = 65536, Gn = 1 << 19, ai = 1 << 20, $r = 1 << 21, Nt = Symbol("$state"), ii = Symbol("legacy props"), Wn = Symbol(""), Yn = typeof requestIdleCallback > "u" ? (e) => setTimeout(e, 1) : requestIdleCallback;
|
|
25
|
+
let Ot = [], Ht = [];
|
|
26
26
|
function ni() {
|
|
27
|
-
var e = qt;
|
|
28
|
-
qt = [], ti(e);
|
|
29
|
-
}
|
|
30
|
-
function oi() {
|
|
31
27
|
var e = Ot;
|
|
32
28
|
Ot = [], ti(e);
|
|
33
29
|
}
|
|
30
|
+
function oi() {
|
|
31
|
+
var e = Ht;
|
|
32
|
+
Ht = [], ti(e);
|
|
33
|
+
}
|
|
34
34
|
function Br(e) {
|
|
35
|
-
|
|
35
|
+
Ot.length === 0 && queueMicrotask(ni), Ot.push(e);
|
|
36
36
|
}
|
|
37
37
|
function Kn(e) {
|
|
38
|
-
|
|
38
|
+
Ht.length === 0 && Yn(oi), Ht.push(e);
|
|
39
39
|
}
|
|
40
40
|
function Jn() {
|
|
41
|
-
|
|
41
|
+
Ot.length > 0 && ni(), Ht.length > 0 && oi();
|
|
42
42
|
}
|
|
43
43
|
function li(e) {
|
|
44
44
|
return e === this.v;
|
|
@@ -95,7 +95,7 @@ function di(e, t = !1, r) {
|
|
|
95
95
|
x: null,
|
|
96
96
|
l: null
|
|
97
97
|
};
|
|
98
|
-
|
|
98
|
+
Yr(() => {
|
|
99
99
|
i.d = !0;
|
|
100
100
|
});
|
|
101
101
|
}
|
|
@@ -125,7 +125,7 @@ function gi() {
|
|
|
125
125
|
return !0;
|
|
126
126
|
}
|
|
127
127
|
function Be(e) {
|
|
128
|
-
if (typeof e != "object" || e === null ||
|
|
128
|
+
if (typeof e != "object" || e === null || Nt in e)
|
|
129
129
|
return e;
|
|
130
130
|
const t = ei(e);
|
|
131
131
|
if (t !== Mn && t !== Bn)
|
|
@@ -146,7 +146,7 @@ function Be(e) {
|
|
|
146
146
|
defineProperty(s, u, d) {
|
|
147
147
|
(!("value" in d) || d.configurable === !1 || d.enumerable === !1 || d.writable === !1) && io();
|
|
148
148
|
var m = r.get(u);
|
|
149
|
-
return m === void 0 ? (m = c(() => /* @__PURE__ */ z(d.value)), r.set(u, m)) :
|
|
149
|
+
return m === void 0 ? (m = c(() => /* @__PURE__ */ z(d.value)), r.set(u, m)) : y(
|
|
150
150
|
m,
|
|
151
151
|
c(() => Be(d.value))
|
|
152
152
|
), !0;
|
|
@@ -164,20 +164,20 @@ function Be(e) {
|
|
|
164
164
|
/** @type {Source<number>} */
|
|
165
165
|
r.get("length")
|
|
166
166
|
), h = Number(u);
|
|
167
|
-
Number.isInteger(h) && h < m.v &&
|
|
167
|
+
Number.isInteger(h) && h < m.v && y(m, h);
|
|
168
168
|
}
|
|
169
|
-
|
|
169
|
+
y(d, ce), Rr(o);
|
|
170
170
|
}
|
|
171
171
|
return !0;
|
|
172
172
|
},
|
|
173
173
|
get(s, u, d) {
|
|
174
174
|
var k;
|
|
175
|
-
if (u ===
|
|
175
|
+
if (u === Nt)
|
|
176
176
|
return e;
|
|
177
177
|
var m = r.get(u), h = u in s;
|
|
178
178
|
if (m === void 0 && (!h || (k = rt(s, u)) != null && k.writable) && (m = c(() => /* @__PURE__ */ z(Be(h ? s[u] : ce))), r.set(u, m)), m !== void 0) {
|
|
179
|
-
var
|
|
180
|
-
return
|
|
179
|
+
var p = l(m);
|
|
180
|
+
return p === ce ? void 0 : p;
|
|
181
181
|
}
|
|
182
182
|
return Reflect.get(s, u, d);
|
|
183
183
|
},
|
|
@@ -187,23 +187,23 @@ function Be(e) {
|
|
|
187
187
|
var m = r.get(u);
|
|
188
188
|
m && (d.value = l(m));
|
|
189
189
|
} else if (d === void 0) {
|
|
190
|
-
var h = r.get(u),
|
|
191
|
-
if (h !== void 0 &&
|
|
190
|
+
var h = r.get(u), p = h == null ? void 0 : h.v;
|
|
191
|
+
if (h !== void 0 && p !== ce)
|
|
192
192
|
return {
|
|
193
193
|
enumerable: !0,
|
|
194
194
|
configurable: !0,
|
|
195
|
-
value:
|
|
195
|
+
value: p,
|
|
196
196
|
writable: !0
|
|
197
197
|
};
|
|
198
198
|
}
|
|
199
199
|
return d;
|
|
200
200
|
},
|
|
201
201
|
has(s, u) {
|
|
202
|
-
var
|
|
203
|
-
if (u ===
|
|
202
|
+
var p;
|
|
203
|
+
if (u === Nt)
|
|
204
204
|
return !0;
|
|
205
205
|
var d = r.get(u), m = d !== void 0 && d.v !== ce || Reflect.has(s, u);
|
|
206
|
-
if (d !== void 0 || S !== null && (!m || (
|
|
206
|
+
if (d !== void 0 || S !== null && (!m || (p = rt(s, u)) != null && p.writable)) {
|
|
207
207
|
d === void 0 && (d = c(() => /* @__PURE__ */ z(m ? Be(s[u]) : ce)), r.set(u, d));
|
|
208
208
|
var h = l(d);
|
|
209
209
|
if (h === ce)
|
|
@@ -213,28 +213,28 @@ function Be(e) {
|
|
|
213
213
|
},
|
|
214
214
|
set(s, u, d, m) {
|
|
215
215
|
var J;
|
|
216
|
-
var h = r.get(u),
|
|
216
|
+
var h = r.get(u), p = u in s;
|
|
217
217
|
if (i && u === "length")
|
|
218
218
|
for (var k = d; k < /** @type {Source<number>} */
|
|
219
219
|
h.v; k += 1) {
|
|
220
220
|
var V = r.get(k + "");
|
|
221
|
-
V !== void 0 ?
|
|
221
|
+
V !== void 0 ? y(V, ce) : k in s && (V = c(() => /* @__PURE__ */ z(ce)), r.set(k + "", V));
|
|
222
222
|
}
|
|
223
|
-
h === void 0 ? (!
|
|
223
|
+
h === void 0 ? (!p || (J = rt(s, u)) != null && J.writable) && (h = c(() => /* @__PURE__ */ z(void 0)), y(
|
|
224
224
|
h,
|
|
225
225
|
c(() => Be(d))
|
|
226
|
-
), r.set(u, h)) : (
|
|
226
|
+
), r.set(u, h)) : (p = h.v !== ce, y(
|
|
227
227
|
h,
|
|
228
228
|
c(() => Be(d))
|
|
229
229
|
));
|
|
230
|
-
var
|
|
231
|
-
if (
|
|
230
|
+
var _ = Reflect.getOwnPropertyDescriptor(s, u);
|
|
231
|
+
if (_ != null && _.set && _.set.call(m, d), !p) {
|
|
232
232
|
if (i && typeof u == "string") {
|
|
233
|
-
var
|
|
233
|
+
var O = (
|
|
234
234
|
/** @type {Source<number>} */
|
|
235
235
|
r.get("length")
|
|
236
236
|
), ue = Number(u);
|
|
237
|
-
Number.isInteger(ue) && ue >=
|
|
237
|
+
Number.isInteger(ue) && ue >= O.v && y(O, ue + 1);
|
|
238
238
|
}
|
|
239
239
|
Rr(o);
|
|
240
240
|
}
|
|
@@ -243,8 +243,8 @@ function Be(e) {
|
|
|
243
243
|
ownKeys(s) {
|
|
244
244
|
l(o);
|
|
245
245
|
var u = Reflect.ownKeys(s).filter((h) => {
|
|
246
|
-
var
|
|
247
|
-
return
|
|
246
|
+
var p = r.get(h);
|
|
247
|
+
return p === void 0 || p.v !== ce;
|
|
248
248
|
});
|
|
249
249
|
for (var [d, m] of r)
|
|
250
250
|
m.v !== ce && !(d in s) && u.push(d);
|
|
@@ -257,11 +257,11 @@ function Be(e) {
|
|
|
257
257
|
);
|
|
258
258
|
}
|
|
259
259
|
function Rr(e, t = 1) {
|
|
260
|
-
|
|
260
|
+
y(e, e.v + t);
|
|
261
261
|
}
|
|
262
262
|
// @__NO_SIDE_EFFECTS__
|
|
263
|
-
function
|
|
264
|
-
var t =
|
|
263
|
+
function hr(e) {
|
|
264
|
+
var t = we | ze, r = j !== null && (j.f & we) !== 0 ? (
|
|
265
265
|
/** @type {Derived} */
|
|
266
266
|
j
|
|
267
267
|
) : null;
|
|
@@ -283,13 +283,13 @@ function dr(e) {
|
|
|
283
283
|
};
|
|
284
284
|
}
|
|
285
285
|
// @__NO_SIDE_EFFECTS__
|
|
286
|
-
function
|
|
287
|
-
const t = /* @__PURE__ */
|
|
286
|
+
function $t(e) {
|
|
287
|
+
const t = /* @__PURE__ */ hr(e);
|
|
288
288
|
return wi(t), t;
|
|
289
289
|
}
|
|
290
290
|
// @__NO_SIDE_EFFECTS__
|
|
291
291
|
function vo(e) {
|
|
292
|
-
const t = /* @__PURE__ */
|
|
292
|
+
const t = /* @__PURE__ */ hr(e);
|
|
293
293
|
return t.equals = Ur, t;
|
|
294
294
|
}
|
|
295
295
|
function vi(e) {
|
|
@@ -297,7 +297,7 @@ function vi(e) {
|
|
|
297
297
|
if (t !== null) {
|
|
298
298
|
e.effects = null;
|
|
299
299
|
for (var r = 0; r < t.length; r += 1)
|
|
300
|
-
|
|
300
|
+
We(
|
|
301
301
|
/** @type {Effect} */
|
|
302
302
|
t[r]
|
|
303
303
|
);
|
|
@@ -305,7 +305,7 @@ function vi(e) {
|
|
|
305
305
|
}
|
|
306
306
|
function bo(e) {
|
|
307
307
|
for (var t = e.parent; t !== null; ) {
|
|
308
|
-
if ((t.f &
|
|
308
|
+
if ((t.f & we) === 0)
|
|
309
309
|
return (
|
|
310
310
|
/** @type {Effect} */
|
|
311
311
|
t
|
|
@@ -326,9 +326,9 @@ function bi(e) {
|
|
|
326
326
|
}
|
|
327
327
|
function pi(e) {
|
|
328
328
|
var t = bi(e), r = (Ue || (e.f & ge) !== 0) && e.deps !== null ? ot : fe;
|
|
329
|
-
|
|
329
|
+
Ce(e, r), e.equals(t) || (e.v = t, e.wv = Ei());
|
|
330
330
|
}
|
|
331
|
-
const
|
|
331
|
+
const Ft = /* @__PURE__ */ new Map();
|
|
332
332
|
function mi(e, t) {
|
|
333
333
|
var r = {
|
|
334
334
|
f: 0,
|
|
@@ -351,18 +351,18 @@ function Gr(e, t = !1) {
|
|
|
351
351
|
const r = mi(e);
|
|
352
352
|
return t || (r.equals = Ur), r;
|
|
353
353
|
}
|
|
354
|
-
function
|
|
355
|
-
j !== null && !Ve && gi() && (j.f & (
|
|
354
|
+
function y(e, t, r = !1) {
|
|
355
|
+
j !== null && !Ve && gi() && (j.f & (we | Fr)) !== 0 && !(ne != null && ne.includes(e)) && oo();
|
|
356
356
|
let i = r ? Be(t) : t;
|
|
357
357
|
return po(e, i);
|
|
358
358
|
}
|
|
359
359
|
function po(e, t) {
|
|
360
360
|
if (!e.equals(t)) {
|
|
361
361
|
var r = e.v;
|
|
362
|
-
|
|
362
|
+
Mt ? Ft.set(e, t) : Ft.set(e, r), e.v = t, (e.f & we) !== 0 && ((e.f & ze) !== 0 && bi(
|
|
363
363
|
/** @type {Derived} */
|
|
364
364
|
e
|
|
365
|
-
),
|
|
365
|
+
), Ce(e, (e.f & ge) === 0 ? fe : ot)), e.wv = Ei(), yi(e, ze), S !== null && (S.f & fe) !== 0 && (S.f & (Ne | nt)) === 0 && (be === null ? Ao([e]) : be.push(e));
|
|
366
366
|
}
|
|
367
367
|
return t;
|
|
368
368
|
}
|
|
@@ -371,17 +371,17 @@ function yi(e, t) {
|
|
|
371
371
|
if (r !== null)
|
|
372
372
|
for (var i = r.length, o = 0; o < i; o++) {
|
|
373
373
|
var n = r[o], c = n.f;
|
|
374
|
-
(c & ze) === 0 && (
|
|
374
|
+
(c & ze) === 0 && (Ce(n, t), (c & (fe | ge)) !== 0 && ((c & we) !== 0 ? yi(
|
|
375
375
|
/** @type {Derived} */
|
|
376
376
|
n,
|
|
377
377
|
ot
|
|
378
|
-
) :
|
|
378
|
+
) : pr(
|
|
379
379
|
/** @type {Effect} */
|
|
380
380
|
n
|
|
381
381
|
)));
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function gr(e) {
|
|
385
385
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
386
386
|
}
|
|
387
387
|
let D = !1;
|
|
@@ -391,19 +391,19 @@ function yt(e) {
|
|
|
391
391
|
let N;
|
|
392
392
|
function Ze(e) {
|
|
393
393
|
if (e === null)
|
|
394
|
-
throw
|
|
394
|
+
throw gr(), kt;
|
|
395
395
|
return N = e;
|
|
396
396
|
}
|
|
397
397
|
function wt() {
|
|
398
398
|
return Ze(
|
|
399
399
|
/** @type {TemplateNode} */
|
|
400
|
-
/* @__PURE__ */
|
|
400
|
+
/* @__PURE__ */ Ye(N)
|
|
401
401
|
);
|
|
402
402
|
}
|
|
403
403
|
function G(e) {
|
|
404
404
|
if (D) {
|
|
405
|
-
if (/* @__PURE__ */
|
|
406
|
-
throw
|
|
405
|
+
if (/* @__PURE__ */ Ye(N) !== null)
|
|
406
|
+
throw gr(), kt;
|
|
407
407
|
N = e;
|
|
408
408
|
}
|
|
409
409
|
}
|
|
@@ -421,7 +421,7 @@ function mo() {
|
|
|
421
421
|
}
|
|
422
422
|
var i = (
|
|
423
423
|
/** @type {TemplateNode} */
|
|
424
|
-
/* @__PURE__ */
|
|
424
|
+
/* @__PURE__ */ Ye(t)
|
|
425
425
|
);
|
|
426
426
|
t.remove(), t = i;
|
|
427
427
|
}
|
|
@@ -434,7 +434,7 @@ function Pr() {
|
|
|
434
434
|
ki = rt(t, "firstChild").get, _i = rt(t, "nextSibling").get, Da(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Da(r) && (r.__t = void 0);
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
|
-
function
|
|
437
|
+
function vr(e = "") {
|
|
438
438
|
return document.createTextNode(e);
|
|
439
439
|
}
|
|
440
440
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -442,19 +442,19 @@ function me(e) {
|
|
|
442
442
|
return ki.call(e);
|
|
443
443
|
}
|
|
444
444
|
// @__NO_SIDE_EFFECTS__
|
|
445
|
-
function
|
|
445
|
+
function Ye(e) {
|
|
446
446
|
return _i.call(e);
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function W(e, t) {
|
|
449
449
|
if (!D)
|
|
450
450
|
return /* @__PURE__ */ me(e);
|
|
451
451
|
var r = (
|
|
452
452
|
/** @type {TemplateNode} */
|
|
453
453
|
/* @__PURE__ */ me(N)
|
|
454
454
|
);
|
|
455
|
-
return r === null && (r = N.appendChild(
|
|
455
|
+
return r === null && (r = N.appendChild(vr())), Ze(r), r;
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function Pt(e, t) {
|
|
458
458
|
if (!D) {
|
|
459
459
|
var r = (
|
|
460
460
|
/** @type {DocumentFragment} */
|
|
@@ -463,20 +463,20 @@ function $t(e, t) {
|
|
|
463
463
|
e
|
|
464
464
|
)
|
|
465
465
|
);
|
|
466
|
-
return r instanceof Comment && r.data === "" ? /* @__PURE__ */
|
|
466
|
+
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ Ye(r) : r;
|
|
467
467
|
}
|
|
468
468
|
return N;
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function Y(e, t = 1, r = !1) {
|
|
471
471
|
let i = D ? N : e;
|
|
472
472
|
for (var o; t--; )
|
|
473
473
|
o = i, i = /** @type {TemplateNode} */
|
|
474
|
-
/* @__PURE__ */
|
|
474
|
+
/* @__PURE__ */ Ye(i);
|
|
475
475
|
if (!D)
|
|
476
476
|
return i;
|
|
477
477
|
var n = i == null ? void 0 : i.nodeType;
|
|
478
478
|
if (r && n !== 3) {
|
|
479
|
-
var c =
|
|
479
|
+
var c = vr();
|
|
480
480
|
return i === null ? o == null || o.after(c) : i.before(c), Ze(c), c;
|
|
481
481
|
}
|
|
482
482
|
return Ze(i), /** @type {TemplateNode} */
|
|
@@ -485,11 +485,11 @@ function W(e, t = 1, r = !1) {
|
|
|
485
485
|
function yo(e) {
|
|
486
486
|
e.textContent = "";
|
|
487
487
|
}
|
|
488
|
-
let
|
|
488
|
+
let tr = !1, lr = !1, sr = null, at = !1, Mt = !1;
|
|
489
489
|
function Ha(e) {
|
|
490
|
-
|
|
490
|
+
Mt = e;
|
|
491
491
|
}
|
|
492
|
-
let
|
|
492
|
+
let Dt = [];
|
|
493
493
|
let j = null, Ve = !1;
|
|
494
494
|
function je(e) {
|
|
495
495
|
j = e;
|
|
@@ -506,11 +506,11 @@ let ae = null, he = 0, be = null;
|
|
|
506
506
|
function Ao(e) {
|
|
507
507
|
be = e;
|
|
508
508
|
}
|
|
509
|
-
let Ci = 1,
|
|
509
|
+
let Ci = 1, cr = 0, Ue = !1;
|
|
510
510
|
function Ei() {
|
|
511
511
|
return ++Ci;
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function Bt(e) {
|
|
514
514
|
var h;
|
|
515
515
|
var t = e.f;
|
|
516
516
|
if ((t & ze) !== 0)
|
|
@@ -518,7 +518,7 @@ function Mt(e) {
|
|
|
518
518
|
if ((t & ot) !== 0) {
|
|
519
519
|
var r = e.deps, i = (t & ge) !== 0;
|
|
520
520
|
if (r !== null) {
|
|
521
|
-
var o, n, c = (t &
|
|
521
|
+
var o, n, c = (t & or) !== 0, s = i && S !== null && !Ue, u = r.length;
|
|
522
522
|
if (c || s) {
|
|
523
523
|
var d = (
|
|
524
524
|
/** @type {Derived} */
|
|
@@ -526,10 +526,10 @@ function Mt(e) {
|
|
|
526
526
|
), m = d.parent;
|
|
527
527
|
for (o = 0; o < u; o++)
|
|
528
528
|
n = r[o], (c || !((h = n == null ? void 0 : n.reactions) != null && h.includes(d))) && (n.reactions ?? (n.reactions = [])).push(d);
|
|
529
|
-
c && (d.f ^=
|
|
529
|
+
c && (d.f ^= or), s && m !== null && (m.f & ge) === 0 && (d.f ^= ge);
|
|
530
530
|
}
|
|
531
531
|
for (o = 0; o < u; o++)
|
|
532
|
-
if (n = r[o],
|
|
532
|
+
if (n = r[o], Bt(
|
|
533
533
|
/** @type {Derived} */
|
|
534
534
|
n
|
|
535
535
|
) && pi(
|
|
@@ -538,33 +538,33 @@ function Mt(e) {
|
|
|
538
538
|
), n.wv > e.wv)
|
|
539
539
|
return !0;
|
|
540
540
|
}
|
|
541
|
-
(!i || S !== null && !Ue) &&
|
|
541
|
+
(!i || S !== null && !Ue) && Ce(e, fe);
|
|
542
542
|
}
|
|
543
543
|
return !1;
|
|
544
544
|
}
|
|
545
545
|
function ko(e, t) {
|
|
546
546
|
for (var r = t; r !== null; ) {
|
|
547
|
-
if ((r.f &
|
|
547
|
+
if ((r.f & nr) !== 0)
|
|
548
548
|
try {
|
|
549
549
|
r.fn(e);
|
|
550
550
|
return;
|
|
551
551
|
} catch {
|
|
552
|
-
r.f ^=
|
|
552
|
+
r.f ^= nr;
|
|
553
553
|
}
|
|
554
554
|
r = r.parent;
|
|
555
555
|
}
|
|
556
|
-
throw
|
|
556
|
+
throw tr = !1, e;
|
|
557
557
|
}
|
|
558
558
|
function Fa(e) {
|
|
559
|
-
return (e.f &
|
|
559
|
+
return (e.f & dr) === 0 && (e.parent === null || (e.parent.f & nr) === 0);
|
|
560
560
|
}
|
|
561
|
-
function
|
|
562
|
-
if (
|
|
563
|
-
if (r === null && (
|
|
561
|
+
function br(e, t, r, i) {
|
|
562
|
+
if (tr) {
|
|
563
|
+
if (r === null && (tr = !1), Fa(t))
|
|
564
564
|
throw e;
|
|
565
565
|
return;
|
|
566
566
|
}
|
|
567
|
-
if (r !== null && (
|
|
567
|
+
if (r !== null && (tr = !0), ko(e, t), Fa(t))
|
|
568
568
|
throw e;
|
|
569
569
|
}
|
|
570
570
|
function Li(e, t, r = !0) {
|
|
@@ -572,12 +572,12 @@ function Li(e, t, r = !0) {
|
|
|
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 &
|
|
575
|
+
ne != null && ne.includes(e) || ((n.f & we) !== 0 ? Li(
|
|
576
576
|
/** @type {Derived} */
|
|
577
577
|
n,
|
|
578
578
|
t,
|
|
579
579
|
!1
|
|
580
|
-
) : t === n && (r ?
|
|
580
|
+
) : t === n && (r ? Ce(n, ze) : (n.f & fe) !== 0 && Ce(n, ot), pr(
|
|
581
581
|
/** @type {Effect} */
|
|
582
582
|
n
|
|
583
583
|
)));
|
|
@@ -587,32 +587,32 @@ function xi(e) {
|
|
|
587
587
|
var k;
|
|
588
588
|
var t = ae, r = he, i = be, o = j, n = Ue, c = ne, s = ie, u = Ve, d = e.f;
|
|
589
589
|
ae = /** @type {null | Value[]} */
|
|
590
|
-
null, he = 0, be = null, Ue = (d & ge) !== 0 && (Ve || !at || j === null), j = (d & (Ne | nt)) === 0 ? e : null, ne = null, qa(e.ctx), Ve = !1,
|
|
590
|
+
null, he = 0, be = null, Ue = (d & ge) !== 0 && (Ve || !at || j === null), j = (d & (Ne | nt)) === 0 ? e : null, ne = null, qa(e.ctx), Ve = !1, cr++, e.f |= $r;
|
|
591
591
|
try {
|
|
592
592
|
var m = (
|
|
593
593
|
/** @type {Function} */
|
|
594
594
|
(0, e.fn)()
|
|
595
595
|
), h = e.deps;
|
|
596
596
|
if (ae !== null) {
|
|
597
|
-
var
|
|
598
|
-
if (
|
|
599
|
-
for (h.length = he + ae.length,
|
|
600
|
-
h[he +
|
|
597
|
+
var p;
|
|
598
|
+
if (fr(e, he), h !== null && he > 0)
|
|
599
|
+
for (h.length = he + ae.length, p = 0; p < ae.length; p++)
|
|
600
|
+
h[he + p] = ae[p];
|
|
601
601
|
else
|
|
602
602
|
e.deps = h = ae;
|
|
603
603
|
if (!Ue)
|
|
604
|
-
for (
|
|
605
|
-
((k = h[
|
|
606
|
-
} else h !== null && he < h.length && (
|
|
607
|
-
if (gi() && be !== null && !Ve && h !== null && (e.f & (
|
|
608
|
-
for (
|
|
609
|
-
be.length;
|
|
604
|
+
for (p = he; p < h.length; p++)
|
|
605
|
+
((k = h[p]).reactions ?? (k.reactions = [])).push(e);
|
|
606
|
+
} else h !== null && he < h.length && (fr(e, he), h.length = he);
|
|
607
|
+
if (gi() && be !== null && !Ve && h !== null && (e.f & (we | ot | ze)) === 0)
|
|
608
|
+
for (p = 0; p < /** @type {Source[]} */
|
|
609
|
+
be.length; p++)
|
|
610
610
|
Li(
|
|
611
|
-
be[
|
|
611
|
+
be[p],
|
|
612
612
|
/** @type {Effect} */
|
|
613
613
|
e
|
|
614
614
|
);
|
|
615
|
-
return o !== null && o !== e && (
|
|
615
|
+
return o !== null && o !== e && (cr++, be !== null && (i === null ? i = be : i.push(.../** @type {Source[]} */
|
|
616
616
|
be))), m;
|
|
617
617
|
} finally {
|
|
618
618
|
ae = t, he = r, be = i, j = o, Ue = n, ne = c, qa(s), Ve = u, e.f ^= $r;
|
|
@@ -627,28 +627,28 @@ function _o(e, t) {
|
|
|
627
627
|
o === 0 ? r = t.reactions = null : (r[i] = r[o], r.pop());
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
|
-
r === null && (t.f &
|
|
630
|
+
r === null && (t.f & we) !== 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)) && (
|
|
633
|
+
(ae === null || !ae.includes(t)) && (Ce(t, ot), (t.f & (ge | or)) === 0 && (t.f ^= or), vi(
|
|
634
634
|
/** @type {Derived} **/
|
|
635
635
|
t
|
|
636
|
-
),
|
|
636
|
+
), fr(
|
|
637
637
|
/** @type {Derived} **/
|
|
638
638
|
t,
|
|
639
639
|
0
|
|
640
640
|
));
|
|
641
641
|
}
|
|
642
|
-
function
|
|
642
|
+
function fr(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
|
_o(e, r[i]);
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function Wr(e) {
|
|
649
649
|
var t = e.f;
|
|
650
|
-
if ((t &
|
|
651
|
-
|
|
650
|
+
if ((t & dr) === 0) {
|
|
651
|
+
Ce(e, fe);
|
|
652
652
|
var r = S, i = ie, o = at;
|
|
653
653
|
S = e, at = !0;
|
|
654
654
|
try {
|
|
@@ -657,7 +657,7 @@ function Yr(e) {
|
|
|
657
657
|
e.teardown = typeof n == "function" ? n : null, e.wv = Ci;
|
|
658
658
|
var c = e.deps, s;
|
|
659
659
|
} catch (u) {
|
|
660
|
-
|
|
660
|
+
br(u, e, r, i || e.ctx);
|
|
661
661
|
} finally {
|
|
662
662
|
at = o, S = r;
|
|
663
663
|
}
|
|
@@ -667,8 +667,8 @@ function wo() {
|
|
|
667
667
|
try {
|
|
668
668
|
to();
|
|
669
669
|
} catch (e) {
|
|
670
|
-
if (
|
|
671
|
-
|
|
670
|
+
if (sr !== null)
|
|
671
|
+
br(e, sr, null);
|
|
672
672
|
else
|
|
673
673
|
throw e;
|
|
674
674
|
}
|
|
@@ -677,18 +677,18 @@ function Ti() {
|
|
|
677
677
|
var e = at;
|
|
678
678
|
try {
|
|
679
679
|
var t = 0;
|
|
680
|
-
for (at = !0;
|
|
680
|
+
for (at = !0; Dt.length > 0; ) {
|
|
681
681
|
t++ > 1e3 && wo();
|
|
682
|
-
var r =
|
|
683
|
-
|
|
682
|
+
var r = Dt, i = r.length;
|
|
683
|
+
Dt = [];
|
|
684
684
|
for (var o = 0; o < i; o++) {
|
|
685
685
|
var n = Eo(r[o]);
|
|
686
686
|
Co(n);
|
|
687
687
|
}
|
|
688
|
-
|
|
688
|
+
Ft.clear();
|
|
689
689
|
}
|
|
690
690
|
} finally {
|
|
691
|
-
|
|
691
|
+
lr = !1, at = e, sr = null;
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
694
|
function Co(e) {
|
|
@@ -696,17 +696,17 @@ function Co(e) {
|
|
|
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 & (dr | _t)) === 0)
|
|
700
700
|
try {
|
|
701
|
-
|
|
701
|
+
Bt(i) && (Wr(i), i.deps === null && i.first === null && i.nodes_start === null && (i.teardown === null ? Si(i) : i.fn = null));
|
|
702
702
|
} catch (o) {
|
|
703
|
-
|
|
703
|
+
br(o, i, null, i.ctx);
|
|
704
704
|
}
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
|
-
function
|
|
708
|
-
|
|
709
|
-
for (var t =
|
|
707
|
+
function pr(e) {
|
|
708
|
+
lr || (lr = !0, queueMicrotask(Ti));
|
|
709
|
+
for (var t = sr = e; t.parent !== null; ) {
|
|
710
710
|
t = t.parent;
|
|
711
711
|
var r = t.f;
|
|
712
712
|
if ((r & (nt | Ne)) !== 0) {
|
|
@@ -714,7 +714,7 @@ function br(e) {
|
|
|
714
714
|
t.f ^= fe;
|
|
715
715
|
}
|
|
716
716
|
}
|
|
717
|
-
|
|
717
|
+
Dt.push(t);
|
|
718
718
|
}
|
|
719
719
|
function Eo(e) {
|
|
720
720
|
for (var t = [], r = e; r !== null; ) {
|
|
@@ -726,9 +726,9 @@ function Eo(e) {
|
|
|
726
726
|
r.f ^= fe;
|
|
727
727
|
else
|
|
728
728
|
try {
|
|
729
|
-
|
|
729
|
+
Bt(r) && Wr(r);
|
|
730
730
|
} catch (u) {
|
|
731
|
-
|
|
731
|
+
br(u, r, null, r.ctx);
|
|
732
732
|
}
|
|
733
733
|
var c = r.first;
|
|
734
734
|
if (c !== null) {
|
|
@@ -742,25 +742,25 @@ function Eo(e) {
|
|
|
742
742
|
}
|
|
743
743
|
return t;
|
|
744
744
|
}
|
|
745
|
-
function
|
|
745
|
+
function E(e) {
|
|
746
746
|
for (var t; ; ) {
|
|
747
|
-
if (Jn(),
|
|
747
|
+
if (Jn(), Dt.length === 0)
|
|
748
748
|
return (
|
|
749
749
|
/** @type {T} */
|
|
750
750
|
t
|
|
751
751
|
);
|
|
752
|
-
|
|
752
|
+
lr = !0, Ti();
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
755
|
async function jr() {
|
|
756
|
-
await Promise.resolve(),
|
|
756
|
+
await Promise.resolve(), E();
|
|
757
757
|
}
|
|
758
758
|
function l(e) {
|
|
759
|
-
var t = e.f, r = (t &
|
|
759
|
+
var t = e.f, r = (t & we) !== 0;
|
|
760
760
|
if (j !== null && !Ve) {
|
|
761
761
|
if (!(ne != null && ne.includes(e))) {
|
|
762
762
|
var i = j.deps;
|
|
763
|
-
e.rv <
|
|
763
|
+
e.rv < cr && (e.rv = cr, ae === null && i !== null && i[he] === e ? he++ : ae === null ? ae = [e] : (!Ue || !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 & ge) === 0 && (o.f ^= ge);
|
|
773
773
|
}
|
|
774
774
|
return r && (o = /** @type {Derived} */
|
|
775
|
-
e,
|
|
775
|
+
e, Bt(o) && pi(o)), Mt && Ft.has(e) ? Ft.get(e) : e.v;
|
|
776
776
|
}
|
|
777
777
|
function it(e) {
|
|
778
778
|
var t = Ve;
|
|
@@ -783,11 +783,11 @@ function it(e) {
|
|
|
783
783
|
}
|
|
784
784
|
}
|
|
785
785
|
const Lo = -7169;
|
|
786
|
-
function
|
|
786
|
+
function Ce(e, t) {
|
|
787
787
|
e.f = e.f & Lo | t;
|
|
788
788
|
}
|
|
789
789
|
function xo(e) {
|
|
790
|
-
S === null && j === null && eo(), j !== null && (j.f & ge) !== 0 && S === null && Qn(),
|
|
790
|
+
S === null && j === null && eo(), j !== null && (j.f & ge) !== 0 && S === null && Qn(), Mt && Xn();
|
|
791
791
|
}
|
|
792
792
|
function To(e, t) {
|
|
793
793
|
var r = t.last;
|
|
@@ -812,13 +812,13 @@ function lt(e, t, r, i = !0) {
|
|
|
812
812
|
};
|
|
813
813
|
if (r)
|
|
814
814
|
try {
|
|
815
|
-
|
|
815
|
+
Wr(n), n.f |= Zn;
|
|
816
816
|
} catch (u) {
|
|
817
|
-
throw
|
|
817
|
+
throw We(n), u;
|
|
818
818
|
}
|
|
819
|
-
else t !== null &&
|
|
820
|
-
var c = r && n.deps === null && n.first === null && n.nodes_start === null && n.teardown === null && (n.f & (ai |
|
|
821
|
-
if (!c && i && (o !== null && To(n, o), j !== null && (j.f &
|
|
819
|
+
else t !== null && pr(n);
|
|
820
|
+
var c = r && n.deps === null && n.first === null && n.nodes_start === null && n.teardown === null && (n.f & (ai | nr)) === 0;
|
|
821
|
+
if (!c && i && (o !== null && To(n, o), j !== null && (j.f & we) !== 0)) {
|
|
822
822
|
var s = (
|
|
823
823
|
/** @type {Derived} */
|
|
824
824
|
j
|
|
@@ -827,9 +827,9 @@ function lt(e, t, r, i = !0) {
|
|
|
827
827
|
}
|
|
828
828
|
return n;
|
|
829
829
|
}
|
|
830
|
-
function
|
|
831
|
-
const t = lt(
|
|
832
|
-
return
|
|
830
|
+
function Yr(e) {
|
|
831
|
+
const t = lt(ur, null, !1);
|
|
832
|
+
return Ce(t, fe), t.teardown = e, t;
|
|
833
833
|
}
|
|
834
834
|
function zr(e) {
|
|
835
835
|
xo();
|
|
@@ -852,37 +852,37 @@ function zr(e) {
|
|
|
852
852
|
function Io(e) {
|
|
853
853
|
const t = lt(nt, e, !0);
|
|
854
854
|
return () => {
|
|
855
|
-
|
|
855
|
+
We(t);
|
|
856
856
|
};
|
|
857
857
|
}
|
|
858
858
|
function Vo(e) {
|
|
859
859
|
const t = lt(nt, e, !0);
|
|
860
860
|
return (r = {}) => new Promise((i) => {
|
|
861
861
|
r.outro ? Dr(t, () => {
|
|
862
|
-
|
|
863
|
-
}) : (
|
|
862
|
+
We(t), i(void 0);
|
|
863
|
+
}) : (We(t), i(void 0));
|
|
864
864
|
});
|
|
865
865
|
}
|
|
866
866
|
function Kr(e) {
|
|
867
867
|
return lt(ri, e, !1);
|
|
868
868
|
}
|
|
869
869
|
function Jr(e) {
|
|
870
|
-
return lt(
|
|
870
|
+
return lt(ur, e, !0);
|
|
871
871
|
}
|
|
872
|
-
function Ie(e, t = [], r =
|
|
872
|
+
function Ie(e, t = [], r = hr) {
|
|
873
873
|
const i = t.map(r);
|
|
874
874
|
return Ii(() => e(...i.map(l)));
|
|
875
875
|
}
|
|
876
876
|
function Ii(e, t = 0) {
|
|
877
|
-
return lt(
|
|
877
|
+
return lt(ur | Fr | t, e, !0);
|
|
878
878
|
}
|
|
879
879
|
function Nr(e, t = !0) {
|
|
880
|
-
return lt(
|
|
880
|
+
return lt(ur | Ne, e, !0, t);
|
|
881
881
|
}
|
|
882
882
|
function Vi(e) {
|
|
883
883
|
var t = e.teardown;
|
|
884
884
|
if (t !== null) {
|
|
885
|
-
const r =
|
|
885
|
+
const r = Mt, i = j;
|
|
886
886
|
Ha(!0), je(null);
|
|
887
887
|
try {
|
|
888
888
|
t.call(null);
|
|
@@ -895,22 +895,22 @@ function Ri(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
|
-
(r.f & nt) !== 0 ? r.parent = null :
|
|
898
|
+
(r.f & nt) !== 0 ? r.parent = null : We(r, t), r = i;
|
|
899
899
|
}
|
|
900
900
|
}
|
|
901
901
|
function Ro(e) {
|
|
902
902
|
for (var t = e.first; t !== null; ) {
|
|
903
903
|
var r = t.next;
|
|
904
|
-
(t.f & Ne) === 0 &&
|
|
904
|
+
(t.f & Ne) === 0 && We(t), t = r;
|
|
905
905
|
}
|
|
906
906
|
}
|
|
907
|
-
function
|
|
907
|
+
function We(e, t = !0) {
|
|
908
908
|
var r = !1;
|
|
909
909
|
(t || (e.f & Gn) !== 0) && e.nodes_start !== null && (ji(
|
|
910
910
|
e.nodes_start,
|
|
911
911
|
/** @type {TemplateNode} */
|
|
912
912
|
e.nodes_end
|
|
913
|
-
), r = !0), Ri(e, t && !r),
|
|
913
|
+
), r = !0), Ri(e, t && !r), fr(e, 0), Ce(e, dr);
|
|
914
914
|
var i = e.transitions;
|
|
915
915
|
if (i !== null)
|
|
916
916
|
for (const n of i)
|
|
@@ -923,7 +923,7 @@ function ji(e, t) {
|
|
|
923
923
|
for (; e !== null; ) {
|
|
924
924
|
var r = e === t ? null : (
|
|
925
925
|
/** @type {TemplateNode} */
|
|
926
|
-
/* @__PURE__ */
|
|
926
|
+
/* @__PURE__ */ Ye(e)
|
|
927
927
|
);
|
|
928
928
|
e.remove(), e = r;
|
|
929
929
|
}
|
|
@@ -935,7 +935,7 @@ function Si(e) {
|
|
|
935
935
|
function Dr(e, t) {
|
|
936
936
|
var r = [];
|
|
937
937
|
$i(e, r, !0), jo(r, () => {
|
|
938
|
-
|
|
938
|
+
We(e), t && t();
|
|
939
939
|
});
|
|
940
940
|
}
|
|
941
941
|
function jo(e, t) {
|
|
@@ -963,7 +963,7 @@ function Ma(e) {
|
|
|
963
963
|
}
|
|
964
964
|
function Pi(e, t) {
|
|
965
965
|
if ((e.f & _t) !== 0) {
|
|
966
|
-
e.f ^= _t, (e.f & fe) === 0 && (e.f ^= fe),
|
|
966
|
+
e.f ^= _t, (e.f & fe) === 0 && (e.f ^= fe), Bt(e) && (Ce(e, ze), pr(e));
|
|
967
967
|
for (var r = e.first; r !== null; ) {
|
|
968
968
|
var i = r.next, o = (r.f & Mr) !== 0 || (r.f & Ne) !== 0;
|
|
969
969
|
Pi(r, o ? t : !1), r = i;
|
|
@@ -1024,7 +1024,7 @@ function zo(e, t, r, i = r) {
|
|
|
1024
1024
|
const Di = /* @__PURE__ */ new Set(), qr = /* @__PURE__ */ new Set();
|
|
1025
1025
|
function No(e, t, r, i = {}) {
|
|
1026
1026
|
function o(n) {
|
|
1027
|
-
if (i.capture ||
|
|
1027
|
+
if (i.capture || zt.call(t, n), !n.cancelBubble)
|
|
1028
1028
|
return Ni(() => r == null ? void 0 : r.call(this, n));
|
|
1029
1029
|
}
|
|
1030
1030
|
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? Br(() => {
|
|
@@ -1033,7 +1033,7 @@ function No(e, t, r, i = {}) {
|
|
|
1033
1033
|
}
|
|
1034
1034
|
function Me(e, t, r, i, o) {
|
|
1035
1035
|
var n = { capture: i, passive: o }, c = No(e, t, r, n);
|
|
1036
|
-
(t === document.body || t === window || t === document) &&
|
|
1036
|
+
(t === document.body || t === window || t === document) && Yr(() => {
|
|
1037
1037
|
t.removeEventListener(e, c, n);
|
|
1038
1038
|
});
|
|
1039
1039
|
}
|
|
@@ -1043,7 +1043,7 @@ function Do(e) {
|
|
|
1043
1043
|
for (var r of qr)
|
|
1044
1044
|
r(e);
|
|
1045
1045
|
}
|
|
1046
|
-
function
|
|
1046
|
+
function zt(e) {
|
|
1047
1047
|
var J;
|
|
1048
1048
|
var t = this, r = (
|
|
1049
1049
|
/** @type {Node} */
|
|
@@ -1066,7 +1066,7 @@ function Pt(e) {
|
|
|
1066
1066
|
}
|
|
1067
1067
|
if (n = /** @type {Element} */
|
|
1068
1068
|
o[c] || e.target, n !== t) {
|
|
1069
|
-
|
|
1069
|
+
qt(e, "currentTarget", {
|
|
1070
1070
|
configurable: !0,
|
|
1071
1071
|
get() {
|
|
1072
1072
|
return n || r;
|
|
@@ -1075,33 +1075,33 @@ function Pt(e) {
|
|
|
1075
1075
|
var m = j, h = S;
|
|
1076
1076
|
je(null), Ge(null);
|
|
1077
1077
|
try {
|
|
1078
|
-
for (var
|
|
1078
|
+
for (var p, k = []; n !== null; ) {
|
|
1079
1079
|
var V = n.assignedSlot || n.parentNode || /** @type {any} */
|
|
1080
1080
|
n.host || null;
|
|
1081
1081
|
try {
|
|
1082
|
-
var
|
|
1083
|
-
if (
|
|
1082
|
+
var _ = n["__" + i];
|
|
1083
|
+
if (_ != null && (!/** @type {any} */
|
|
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 (Qa(
|
|
1088
|
-
var [
|
|
1089
|
-
|
|
1087
|
+
if (Qa(_)) {
|
|
1088
|
+
var [O, ...ue] = _;
|
|
1089
|
+
O.apply(n, [e, ...ue]);
|
|
1090
1090
|
} else
|
|
1091
|
-
|
|
1091
|
+
_.call(n, e);
|
|
1092
1092
|
} catch (te) {
|
|
1093
|
-
|
|
1093
|
+
p ? k.push(te) : p = te;
|
|
1094
1094
|
}
|
|
1095
1095
|
if (e.cancelBubble || V === t || V === null)
|
|
1096
1096
|
break;
|
|
1097
1097
|
n = V;
|
|
1098
1098
|
}
|
|
1099
|
-
if (
|
|
1099
|
+
if (p) {
|
|
1100
1100
|
for (let te of k)
|
|
1101
1101
|
queueMicrotask(() => {
|
|
1102
1102
|
throw te;
|
|
1103
1103
|
});
|
|
1104
|
-
throw
|
|
1104
|
+
throw p;
|
|
1105
1105
|
}
|
|
1106
1106
|
} finally {
|
|
1107
1107
|
e.__root = t, delete e.currentTarget, je(m), Ge(h);
|
|
@@ -1120,7 +1120,7 @@ function Re(e, t) {
|
|
|
1120
1120
|
r.nodes_start === null && (r.nodes_start = e, r.nodes_end = t);
|
|
1121
1121
|
}
|
|
1122
1122
|
// @__NO_SIDE_EFFECTS__
|
|
1123
|
-
function
|
|
1123
|
+
function Ee(e, t) {
|
|
1124
1124
|
var r = (t & uo) !== 0, i = (t & ho) !== 0, o, n = !e.startsWith("<!>");
|
|
1125
1125
|
return () => {
|
|
1126
1126
|
if (D)
|
|
@@ -1146,7 +1146,7 @@ function Ce(e, t) {
|
|
|
1146
1146
|
};
|
|
1147
1147
|
}
|
|
1148
1148
|
// @__NO_SIDE_EFFECTS__
|
|
1149
|
-
function
|
|
1149
|
+
function mr(e, t, r = "svg") {
|
|
1150
1150
|
var i = !e.startsWith("<!>"), o = `<${r}>${i ? e : "<!>" + e}</${r}>`, n;
|
|
1151
1151
|
return () => {
|
|
1152
1152
|
if (D)
|
|
@@ -1169,10 +1169,10 @@ function pr(e, t, r = "svg") {
|
|
|
1169
1169
|
return Re(u, u), u;
|
|
1170
1170
|
};
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1172
|
+
function Xt() {
|
|
1173
1173
|
if (D)
|
|
1174
1174
|
return Re(N, null), N;
|
|
1175
|
-
var e = document.createDocumentFragment(), t = document.createComment(""), r =
|
|
1175
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), r = vr();
|
|
1176
1176
|
return e.append(t, r), Re(t, r), e;
|
|
1177
1177
|
}
|
|
1178
1178
|
function H(e, t) {
|
|
@@ -1202,7 +1202,7 @@ function Oo(e, t) {
|
|
|
1202
1202
|
); n && (n.nodeType !== 8 || /** @type {Comment} */
|
|
1203
1203
|
n.data !== Zr); )
|
|
1204
1204
|
n = /** @type {TemplateNode} */
|
|
1205
|
-
/* @__PURE__ */
|
|
1205
|
+
/* @__PURE__ */ Ye(n);
|
|
1206
1206
|
if (!n)
|
|
1207
1207
|
throw kt;
|
|
1208
1208
|
yt(!0), Ze(
|
|
@@ -1212,7 +1212,7 @@ function Oo(e, t) {
|
|
|
1212
1212
|
const c = Oi(e, { ...t, anchor: n });
|
|
1213
1213
|
if (N === null || N.nodeType !== 8 || /** @type {Comment} */
|
|
1214
1214
|
N.data !== fi)
|
|
1215
|
-
throw
|
|
1215
|
+
throw gr(), kt;
|
|
1216
1216
|
return yt(!1), /** @type {Exports} */
|
|
1217
1217
|
c;
|
|
1218
1218
|
} catch (c) {
|
|
@@ -1227,28 +1227,28 @@ const pt = /* @__PURE__ */ new Map();
|
|
|
1227
1227
|
function Oi(e, { target: t, anchor: r, props: i = {}, events: o, context: n, intro: c = !0 }) {
|
|
1228
1228
|
Pr();
|
|
1229
1229
|
var s = /* @__PURE__ */ new Set(), u = (h) => {
|
|
1230
|
-
for (var
|
|
1231
|
-
var k = h[
|
|
1230
|
+
for (var p = 0; p < h.length; p++) {
|
|
1231
|
+
var k = h[p];
|
|
1232
1232
|
if (!s.has(k)) {
|
|
1233
1233
|
s.add(k);
|
|
1234
1234
|
var V = $o(k);
|
|
1235
|
-
t.addEventListener(k,
|
|
1236
|
-
var
|
|
1237
|
-
|
|
1235
|
+
t.addEventListener(k, zt, { passive: V });
|
|
1236
|
+
var _ = pt.get(k);
|
|
1237
|
+
_ === void 0 ? (document.addEventListener(k, zt, { passive: V }), pt.set(k, 1)) : pt.set(k, _ + 1);
|
|
1238
1238
|
}
|
|
1239
1239
|
}
|
|
1240
1240
|
};
|
|
1241
1241
|
u(Hn(Di)), qr.add(u);
|
|
1242
1242
|
var d = void 0, m = Vo(() => {
|
|
1243
|
-
var h = r ?? t.appendChild(
|
|
1243
|
+
var h = r ?? t.appendChild(vr());
|
|
1244
1244
|
return Nr(() => {
|
|
1245
1245
|
if (n) {
|
|
1246
1246
|
di({});
|
|
1247
|
-
var
|
|
1247
|
+
var p = (
|
|
1248
1248
|
/** @type {ComponentContext} */
|
|
1249
1249
|
ie
|
|
1250
1250
|
);
|
|
1251
|
-
|
|
1251
|
+
p.c = n;
|
|
1252
1252
|
}
|
|
1253
1253
|
o && (i.$$events = o), D && Re(
|
|
1254
1254
|
/** @type {TemplateNode} */
|
|
@@ -1257,13 +1257,13 @@ function Oi(e, { target: t, anchor: r, props: i = {}, events: o, context: n, int
|
|
|
1257
1257
|
), d = e(h, i) || {}, D && (S.nodes_end = N), n && hi();
|
|
1258
1258
|
}), () => {
|
|
1259
1259
|
var V;
|
|
1260
|
-
for (var
|
|
1261
|
-
t.removeEventListener(
|
|
1260
|
+
for (var p of s) {
|
|
1261
|
+
t.removeEventListener(p, zt);
|
|
1262
1262
|
var k = (
|
|
1263
1263
|
/** @type {number} */
|
|
1264
|
-
pt.get(
|
|
1264
|
+
pt.get(p)
|
|
1265
1265
|
);
|
|
1266
|
-
--k === 0 ? (document.removeEventListener(
|
|
1266
|
+
--k === 0 ? (document.removeEventListener(p, zt), pt.delete(p)) : pt.set(p, k);
|
|
1267
1267
|
}
|
|
1268
1268
|
qr.delete(u), h !== r && ((V = h.parentNode) == null || V.removeChild(h));
|
|
1269
1269
|
};
|
|
@@ -1278,21 +1278,21 @@ function Ho(e, t) {
|
|
|
1278
1278
|
function K(e, t, [r, i] = [0, 0]) {
|
|
1279
1279
|
D && r === 0 && wt();
|
|
1280
1280
|
var o = e, n = null, c = null, s = ce, u = r > 0 ? Mr : 0, d = !1;
|
|
1281
|
-
const m = (
|
|
1282
|
-
d = !0, h(k,
|
|
1283
|
-
}, h = (
|
|
1284
|
-
if (s === (s =
|
|
1281
|
+
const m = (p, k = !0) => {
|
|
1282
|
+
d = !0, h(k, p);
|
|
1283
|
+
}, h = (p, k) => {
|
|
1284
|
+
if (s === (s = p)) return;
|
|
1285
1285
|
let V = !1;
|
|
1286
1286
|
if (D && i !== -1) {
|
|
1287
1287
|
if (r === 0) {
|
|
1288
|
-
const
|
|
1288
|
+
const O = (
|
|
1289
1289
|
/** @type {Comment} */
|
|
1290
1290
|
o.data
|
|
1291
1291
|
);
|
|
1292
|
-
|
|
1292
|
+
O === Zr ? i = 0 : O === ci ? i = 1 / 0 : (i = parseInt(O.substring(1)), i !== i && (i = s ? 1 / 0 : -1));
|
|
1293
1293
|
}
|
|
1294
|
-
const
|
|
1295
|
-
!!s ===
|
|
1294
|
+
const _ = i > r;
|
|
1295
|
+
!!s === _ && (o = mo(), Ze(o), yt(!1), V = !0, i = -1);
|
|
1296
1296
|
}
|
|
1297
1297
|
s ? (n ? Ma(n) : k && (n = Nr(() => k(o))), c && Dr(c, () => {
|
|
1298
1298
|
c = null;
|
|
@@ -1325,9 +1325,9 @@ function tt(e, t, r = !1, i = !1, o = !1) {
|
|
|
1325
1325
|
for (var u = wt(), d = u; u !== null && (u.nodeType !== 8 || /** @type {Comment} */
|
|
1326
1326
|
u.data !== ""); )
|
|
1327
1327
|
d = u, u = /** @type {TemplateNode} */
|
|
1328
|
-
/* @__PURE__ */
|
|
1328
|
+
/* @__PURE__ */ Ye(u);
|
|
1329
1329
|
if (u === null)
|
|
1330
|
-
throw
|
|
1330
|
+
throw gr(), kt;
|
|
1331
1331
|
Re(N, d), n = Ze(u);
|
|
1332
1332
|
return;
|
|
1333
1333
|
}
|
|
@@ -1412,7 +1412,7 @@ function Go(e, t) {
|
|
|
1412
1412
|
}
|
|
1413
1413
|
function R(e, t, r, i) {
|
|
1414
1414
|
var o = Hi(e);
|
|
1415
|
-
D && (o[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === "LINK") || o[t] !== (o[t] = r) && (t === "loading" && (e[
|
|
1415
|
+
D && (o[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === "LINK") || o[t] !== (o[t] = r) && (t === "loading" && (e[Wn] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Wo(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
|
|
1416
1416
|
}
|
|
1417
1417
|
function Hi(e) {
|
|
1418
1418
|
return (
|
|
@@ -1425,7 +1425,7 @@ function Hi(e) {
|
|
|
1425
1425
|
);
|
|
1426
1426
|
}
|
|
1427
1427
|
var Ga = /* @__PURE__ */ new Map();
|
|
1428
|
-
function
|
|
1428
|
+
function Wo(e) {
|
|
1429
1429
|
var t = Ga.get(e.nodeName);
|
|
1430
1430
|
if (t) return t;
|
|
1431
1431
|
Ga.set(e.nodeName, t = []);
|
|
@@ -1437,7 +1437,7 @@ function Yo(e) {
|
|
|
1437
1437
|
}
|
|
1438
1438
|
return t;
|
|
1439
1439
|
}
|
|
1440
|
-
function
|
|
1440
|
+
function Yo(e, t, r = t) {
|
|
1441
1441
|
zo(e, "change", (i) => {
|
|
1442
1442
|
var o = i ? e.defaultChecked : e.checked;
|
|
1443
1443
|
r(o);
|
|
@@ -1449,24 +1449,24 @@ function Wo(e, t, r = t) {
|
|
|
1449
1449
|
e.checked = !!i;
|
|
1450
1450
|
});
|
|
1451
1451
|
}
|
|
1452
|
-
function
|
|
1453
|
-
return e === t || (e == null ? void 0 : e[
|
|
1452
|
+
function Wa(e, t) {
|
|
1453
|
+
return e === t || (e == null ? void 0 : e[Nt]) === t;
|
|
1454
1454
|
}
|
|
1455
|
-
function
|
|
1455
|
+
function Qt(e = {}, t, r, i) {
|
|
1456
1456
|
return Kr(() => {
|
|
1457
1457
|
var o, n;
|
|
1458
1458
|
return Jr(() => {
|
|
1459
1459
|
o = n, n = [], it(() => {
|
|
1460
|
-
e !== r(...n) && (t(e, ...n), o &&
|
|
1460
|
+
e !== r(...n) && (t(e, ...n), o && Wa(r(...o), e) && t(null, ...o));
|
|
1461
1461
|
});
|
|
1462
1462
|
}), () => {
|
|
1463
1463
|
Br(() => {
|
|
1464
|
-
n &&
|
|
1464
|
+
n && Wa(r(...n), e) && t(null, ...n);
|
|
1465
1465
|
});
|
|
1466
1466
|
};
|
|
1467
1467
|
}), e;
|
|
1468
1468
|
}
|
|
1469
|
-
let
|
|
1469
|
+
let er = !1, Hr = Symbol();
|
|
1470
1470
|
function Ko(e, t, r) {
|
|
1471
1471
|
const i = r[t] ?? (r[t] = {
|
|
1472
1472
|
store: null,
|
|
@@ -1479,18 +1479,18 @@ function Ko(e, t, r) {
|
|
|
1479
1479
|
else {
|
|
1480
1480
|
var o = !0;
|
|
1481
1481
|
i.unsubscribe = Bi(e, (n) => {
|
|
1482
|
-
o ? i.source.v = n :
|
|
1482
|
+
o ? i.source.v = n : y(i.source, n);
|
|
1483
1483
|
}), o = !1;
|
|
1484
1484
|
}
|
|
1485
|
-
return e && Hr in r ?
|
|
1485
|
+
return e && Hr in r ? ar(e) : l(i.source);
|
|
1486
1486
|
}
|
|
1487
1487
|
function Jo() {
|
|
1488
1488
|
const e = {};
|
|
1489
1489
|
function t() {
|
|
1490
|
-
|
|
1490
|
+
Yr(() => {
|
|
1491
1491
|
for (var r in e)
|
|
1492
1492
|
e[r].unsubscribe();
|
|
1493
|
-
|
|
1493
|
+
qt(e, Hr, {
|
|
1494
1494
|
enumerable: !1,
|
|
1495
1495
|
value: !0
|
|
1496
1496
|
});
|
|
@@ -1499,14 +1499,14 @@ function Jo() {
|
|
|
1499
1499
|
return [e, t];
|
|
1500
1500
|
}
|
|
1501
1501
|
function Xo(e) {
|
|
1502
|
-
var t =
|
|
1502
|
+
var t = er;
|
|
1503
1503
|
try {
|
|
1504
|
-
return
|
|
1504
|
+
return er = !1, [e(), er];
|
|
1505
1505
|
} finally {
|
|
1506
|
-
|
|
1506
|
+
er = t;
|
|
1507
1507
|
}
|
|
1508
1508
|
}
|
|
1509
|
-
function
|
|
1509
|
+
function Ya(e) {
|
|
1510
1510
|
var t;
|
|
1511
1511
|
return ((t = e.ctx) == null ? void 0 : t.d) ?? !1;
|
|
1512
1512
|
}
|
|
@@ -1518,45 +1518,45 @@ function x(e, t, r, i) {
|
|
|
1518
1518
|
e[t]
|
|
1519
1519
|
)) : d = /** @type {V} */
|
|
1520
1520
|
e[t];
|
|
1521
|
-
var m =
|
|
1521
|
+
var m = Nt in e || ii in e, h = c && (((st = rt(e, t)) == null ? void 0 : st.set) ?? (m && t in e && ((F) => e[t] = F))) || void 0, p = (
|
|
1522
1522
|
/** @type {V} */
|
|
1523
1523
|
i
|
|
1524
|
-
), k = !0, V = !1,
|
|
1524
|
+
), k = !0, V = !1, _ = () => (V = !0, k && (k = !1, s ? p = it(
|
|
1525
1525
|
/** @type {() => V} */
|
|
1526
1526
|
i
|
|
1527
|
-
) :
|
|
1528
|
-
i),
|
|
1529
|
-
d === void 0 && i !== void 0 && (h && n && ao(), d =
|
|
1530
|
-
var
|
|
1531
|
-
if (
|
|
1527
|
+
) : p = /** @type {V} */
|
|
1528
|
+
i), p);
|
|
1529
|
+
d === void 0 && i !== void 0 && (h && n && ao(), d = _(), h && h(d));
|
|
1530
|
+
var O;
|
|
1531
|
+
if (O = () => {
|
|
1532
1532
|
var F = (
|
|
1533
1533
|
/** @type {V} */
|
|
1534
1534
|
e[t]
|
|
1535
1535
|
);
|
|
1536
|
-
return F === void 0 ?
|
|
1536
|
+
return F === void 0 ? _() : (k = !0, V = !1, F);
|
|
1537
1537
|
}, (r & so) === 0)
|
|
1538
|
-
return
|
|
1538
|
+
return O;
|
|
1539
1539
|
if (h) {
|
|
1540
1540
|
var ue = e.$$legacy;
|
|
1541
1541
|
return function(F, oe) {
|
|
1542
|
-
return arguments.length > 0 ? ((!oe || ue || u) && h(oe ?
|
|
1542
|
+
return arguments.length > 0 ? ((!oe || ue || u) && h(oe ? O() : F), F) : O();
|
|
1543
1543
|
};
|
|
1544
1544
|
}
|
|
1545
|
-
var J = !1, te = /* @__PURE__ */ Gr(d), X = /* @__PURE__ */
|
|
1546
|
-
var F =
|
|
1545
|
+
var J = !1, te = /* @__PURE__ */ Gr(d), X = /* @__PURE__ */ hr(() => {
|
|
1546
|
+
var F = O(), oe = l(te);
|
|
1547
1547
|
return J ? (J = !1, oe) : te.v = F;
|
|
1548
1548
|
});
|
|
1549
1549
|
return c && l(X), o || (X.equals = Ur), function(F, oe) {
|
|
1550
1550
|
if (arguments.length > 0) {
|
|
1551
1551
|
const ye = oe ? l(X) : c ? Be(F) : F;
|
|
1552
1552
|
if (!X.equals(ye)) {
|
|
1553
|
-
if (J = !0,
|
|
1553
|
+
if (J = !0, y(te, ye), V && p !== void 0 && (p = ye), Ya(X))
|
|
1554
1554
|
return F;
|
|
1555
1555
|
it(() => l(X));
|
|
1556
1556
|
}
|
|
1557
1557
|
return F;
|
|
1558
1558
|
}
|
|
1559
|
-
return
|
|
1559
|
+
return Ya(X) ? X.v : l(X);
|
|
1560
1560
|
};
|
|
1561
1561
|
}
|
|
1562
1562
|
function Qo(e) {
|
|
@@ -1589,7 +1589,7 @@ class el {
|
|
|
1589
1589
|
return s === ii ? !0 : (l(r.get(s) ?? i(s, Reflect.get(c, s))), Reflect.has(c, s));
|
|
1590
1590
|
},
|
|
1591
1591
|
set(c, s, u) {
|
|
1592
|
-
return
|
|
1592
|
+
return y(r.get(s) ?? i(s, u), u), Reflect.set(c, s, u);
|
|
1593
1593
|
}
|
|
1594
1594
|
}
|
|
1595
1595
|
);
|
|
@@ -1600,9 +1600,9 @@ class el {
|
|
|
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) &&
|
|
1603
|
+
})), (!((n = t == null ? void 0 : t.props) != null && n.$$host) || t.sync === !1) && E(), Vr(this, Pe, o.$$events);
|
|
1604
1604
|
for (const c of Object.keys(se(this, pe)))
|
|
1605
|
-
c === "$set" || c === "$destroy" || c === "$on" ||
|
|
1605
|
+
c === "$set" || c === "$destroy" || c === "$on" || qt(this, c, {
|
|
1606
1606
|
get() {
|
|
1607
1607
|
return se(this, pe)[c];
|
|
1608
1608
|
},
|
|
@@ -1653,25 +1653,25 @@ typeof HTMLElement == "function" && (Fi = class extends HTMLElement {
|
|
|
1653
1653
|
constructor(t, r, i) {
|
|
1654
1654
|
super();
|
|
1655
1655
|
/** The Svelte component constructor */
|
|
1656
|
-
|
|
1656
|
+
_e(this, "$$ctor");
|
|
1657
1657
|
/** Slots */
|
|
1658
|
-
|
|
1658
|
+
_e(this, "$$s");
|
|
1659
1659
|
/** @type {any} The Svelte component instance */
|
|
1660
|
-
|
|
1660
|
+
_e(this, "$$c");
|
|
1661
1661
|
/** Whether or not the custom element is connected */
|
|
1662
|
-
|
|
1662
|
+
_e(this, "$$cn", !1);
|
|
1663
1663
|
/** @type {Record<string, any>} Component props data */
|
|
1664
|
-
|
|
1664
|
+
_e(this, "$$d", {});
|
|
1665
1665
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
1666
|
-
|
|
1666
|
+
_e(this, "$$r", !1);
|
|
1667
1667
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
1668
|
-
|
|
1668
|
+
_e(this, "$$p_d", {});
|
|
1669
1669
|
/** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
|
|
1670
|
-
|
|
1670
|
+
_e(this, "$$l", {});
|
|
1671
1671
|
/** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
|
|
1672
|
-
|
|
1672
|
+
_e(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
1673
1673
|
/** @type {any} The managed render effect for reflecting attributes */
|
|
1674
|
-
|
|
1674
|
+
_e(this, "$$me");
|
|
1675
1675
|
this.$$ctor = t, this.$$s = r, i && this.attachShadow({ mode: "open" });
|
|
1676
1676
|
}
|
|
1677
1677
|
/**
|
|
@@ -1712,7 +1712,7 @@ typeof HTMLElement == "function" && (Fi = class extends HTMLElement {
|
|
|
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] = rr(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]);
|
|
@@ -1728,10 +1728,10 @@ typeof HTMLElement == "function" && (Fi = class extends HTMLElement {
|
|
|
1728
1728
|
Jr(() => {
|
|
1729
1729
|
var o;
|
|
1730
1730
|
this.$$r = !0;
|
|
1731
|
-
for (const n of
|
|
1731
|
+
for (const n of ir(this.$$c)) {
|
|
1732
1732
|
if (!((o = this.$$p_d[n]) != null && o.reflect)) continue;
|
|
1733
1733
|
this.$$d[n] = this.$$c[n];
|
|
1734
|
-
const c =
|
|
1734
|
+
const c = rr(
|
|
1735
1735
|
n,
|
|
1736
1736
|
this.$$d[n],
|
|
1737
1737
|
this.$$p_d,
|
|
@@ -1759,7 +1759,7 @@ typeof HTMLElement == "function" && (Fi = 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] = rr(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" && (Fi = class extends HTMLElement {
|
|
|
1770
1770
|
* @param {string} attribute_name
|
|
1771
1771
|
*/
|
|
1772
1772
|
$$g_p(t) {
|
|
1773
|
-
return
|
|
1773
|
+
return ir(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 rr(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])
|
|
@@ -1821,19 +1821,19 @@ function rl(e, t, r, i, o, n) {
|
|
|
1821
1821
|
super(e, r, o), this.$$p_d = t;
|
|
1822
1822
|
}
|
|
1823
1823
|
static get observedAttributes() {
|
|
1824
|
-
return
|
|
1824
|
+
return ir(t).map(
|
|
1825
1825
|
(s) => (t[s].attribute || s).toLowerCase()
|
|
1826
1826
|
);
|
|
1827
1827
|
}
|
|
1828
1828
|
};
|
|
1829
|
-
return
|
|
1830
|
-
|
|
1829
|
+
return ir(t).forEach((s) => {
|
|
1830
|
+
qt(c.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(u) {
|
|
1835
1835
|
var h;
|
|
1836
|
-
u =
|
|
1836
|
+
u = rr(s, u, t), this.$$d[s] = u;
|
|
1837
1837
|
var d = this.$$c;
|
|
1838
1838
|
if (d) {
|
|
1839
1839
|
var m = (h = rt(d, s)) == null ? void 0 : h.get;
|
|
@@ -1842,7 +1842,7 @@ function rl(e, t, r, i, o, n) {
|
|
|
1842
1842
|
}
|
|
1843
1843
|
});
|
|
1844
1844
|
}), i.forEach((s) => {
|
|
1845
|
-
|
|
1845
|
+
qt(c.prototype, s, {
|
|
1846
1846
|
get() {
|
|
1847
1847
|
var u;
|
|
1848
1848
|
return (u = this.$$c) == null ? void 0 : u[s];
|
|
@@ -1908,17 +1908,17 @@ function il(e, t = At) {
|
|
|
1908
1908
|
}
|
|
1909
1909
|
return { set: o, update: n, subscribe: c };
|
|
1910
1910
|
}
|
|
1911
|
-
function
|
|
1911
|
+
function ar(e) {
|
|
1912
1912
|
let t;
|
|
1913
1913
|
return Bi(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) => ar(globalThis.altchaI18n.store)[e],
|
|
1918
1918
|
set: (e, t) => {
|
|
1919
|
-
Object.assign(
|
|
1919
|
+
Object.assign(ar(globalThis.altchaI18n.store), {
|
|
1920
1920
|
[e]: t
|
|
1921
|
-
}), globalThis.altchaI18n.store.set(
|
|
1921
|
+
}), globalThis.altchaI18n.store.set(ar(globalThis.altchaI18n.store));
|
|
1922
1922
|
},
|
|
1923
1923
|
store: il({})
|
|
1924
1924
|
};
|
|
@@ -2715,7 +2715,7 @@ const Gl = {
|
|
|
2715
2715
|
waitAlert: "확인 중... 잠시만 기다려주세요."
|
|
2716
2716
|
};
|
|
2717
2717
|
globalThis.altchaI18n.set("ko", Gl);
|
|
2718
|
-
const
|
|
2718
|
+
const Wl = {
|
|
2719
2719
|
ariaLinkLabel: "Altcha.org भेट द्या",
|
|
2720
2720
|
enterCode: "कोड टाकाा",
|
|
2721
2721
|
enterCodeAria: "तुम्ही ऐकत असलेला कोड टाका. ऑडिओ प्ले करण्यासाठी स्पेस दाबा.",
|
|
@@ -2732,8 +2732,8 @@ const Yl = {
|
|
|
2732
2732
|
verifying: "पुष्टीकरण करत आहे...",
|
|
2733
2733
|
waitAlert: "पुष्टीकरण करत आहे... कृपया थोडा वेळ थांबा."
|
|
2734
2734
|
};
|
|
2735
|
-
globalThis.altchaI18n.set("mr",
|
|
2736
|
-
const
|
|
2735
|
+
globalThis.altchaI18n.set("mr", Wl);
|
|
2736
|
+
const Yl = {
|
|
2737
2737
|
ariaLinkLabel: "Altcha.org ஐ பார்வையிடவும்",
|
|
2738
2738
|
enterCode: "குறியீட்டை உள்ளிடவும்",
|
|
2739
2739
|
enterCodeAria: "நீங்கள் கேட்கும் குறியீட்டை உள்ளிடவும். ஆடியோவை இயக்க Space ஐ அழுத்தவும்.",
|
|
@@ -2750,7 +2750,7 @@ const Wl = {
|
|
|
2750
2750
|
verifying: "சரிபார்க்கப்படுகிறது...",
|
|
2751
2751
|
waitAlert: "சரிபார்க்கப்படுகிறது... தயவுசெய்து காத்திருக்கவும்."
|
|
2752
2752
|
};
|
|
2753
|
-
globalThis.altchaI18n.set("ta",
|
|
2753
|
+
globalThis.altchaI18n.set("ta", Yl);
|
|
2754
2754
|
const Kl = {
|
|
2755
2755
|
ariaLinkLabel: "Altcha.org సందర్శించండి",
|
|
2756
2756
|
enterCode: "కోడ్ని నమోదు చేయండి",
|
|
@@ -2892,7 +2892,7 @@ function is(e) {
|
|
|
2892
2892
|
async function ns(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 Wi(i, e, t);
|
|
2896
2896
|
return {
|
|
2897
2897
|
algorithm: t,
|
|
2898
2898
|
challenge: o,
|
|
@@ -2900,7 +2900,7 @@ async function ns(e, t = "SHA-256", r = 1e5) {
|
|
|
2900
2900
|
signature: ""
|
|
2901
2901
|
};
|
|
2902
2902
|
}
|
|
2903
|
-
async function
|
|
2903
|
+
async function Wi(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
2906
|
return is(
|
|
@@ -2917,7 +2917,7 @@ function os(e, t, r = "SHA-256", i = 1e6, o = 0) {
|
|
|
2917
2917
|
for (let u = o; u <= i; u += 1) {
|
|
2918
2918
|
if (n.signal.aborted)
|
|
2919
2919
|
return null;
|
|
2920
|
-
if (await
|
|
2920
|
+
if (await Wi(t, u, r) === e)
|
|
2921
2921
|
return {
|
|
2922
2922
|
number: u,
|
|
2923
2923
|
took: Date.now() - c
|
|
@@ -2995,7 +2995,7 @@ async function cs(e, t = "", r = 1e6, i = 0) {
|
|
|
2995
2995
|
controller: n
|
|
2996
2996
|
};
|
|
2997
2997
|
}
|
|
2998
|
-
var
|
|
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 || {}), ee = /* @__PURE__ */ ((e) => (e.ERROR = "error", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.READY = "ready", e))(ee || {});
|
|
2999
2999
|
const fs = {
|
|
3000
3000
|
ariaLinkLabel: "Visit Altcha.org",
|
|
3001
3001
|
enterCode: "Enter code",
|
|
@@ -3030,41 +3030,41 @@ function ds(e, t) {
|
|
|
3030
3030
|
function hs(e, t, r, i, o, n, c, s) {
|
|
3031
3031
|
var u;
|
|
3032
3032
|
[
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
].includes(l(t)) ? r() !== !1 && ((u = l(i)) == null ? void 0 : u.reportValidity()) === !1 ?
|
|
3033
|
+
w.UNVERIFIED,
|
|
3034
|
+
w.ERROR,
|
|
3035
|
+
w.EXPIRED,
|
|
3036
|
+
w.CODE
|
|
3037
|
+
].includes(l(t)) ? r() !== !1 && ((u = l(i)) == null ? void 0 : u.reportValidity()) === !1 ? y(o, !1) : n() ? c() : s() : y(o, !0);
|
|
3038
3038
|
}
|
|
3039
|
-
var gs = /* @__PURE__ */
|
|
3039
|
+
var gs = /* @__PURE__ */ mr('<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>'), vs = /* @__PURE__ */ Ee('<input type="hidden">'), bs = /* @__PURE__ */ Ee('<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>'), ps = /* @__PURE__ */ mr('<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>'), ms = /* @__PURE__ */ mr('<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>'), ys = /* @__PURE__ */ mr('<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>'), As = /* @__PURE__ */ Ee('<button type="button" class="altcha-code-challenge-audio"><!></button>'), ks = /* @__PURE__ */ Ee("<audio hidden autoplay><source></audio>"), _s = /* @__PURE__ */ Ee('<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>'), ws = /* @__PURE__ */ Ee("<div><!></div>"), Cs = /* @__PURE__ */ Ee("<div><!></div>"), Es = /* @__PURE__ */ Ee('<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>'), Ls = /* @__PURE__ */ Ee('<div class="altcha-footer"><div><!></div></div>'), xs = /* @__PURE__ */ Ee('<div class="altcha-anchor-arrow"></div>'), Ts = /* @__PURE__ */ Ee('<!> <div class="altcha"><div class="altcha-main"><div><!> <input type="checkbox"></div> <label class="altcha-label"><!></label> <!> <!> <!></div> <!> <!> <!></div>', 1);
|
|
3040
3040
|
function Is(e, t) {
|
|
3041
3041
|
var $a, Pa;
|
|
3042
3042
|
di(t, !0);
|
|
3043
3043
|
const [r, i] = Jo(), o = () => Ko(Ki, "$altchaI18nStore", r);
|
|
3044
|
-
let n = x(t, "auto", 7, void 0), c = x(t, "blockspam", 7, void 0), s = x(t, "challengeurl", 7, void 0), u = x(t, "challengejson", 7, void 0), d = x(t, "credentials", 7, void 0), m = x(t, "customfetch", 7, void 0), h = x(t, "debug", 7, !1),
|
|
3045
|
-
const { altchaI18n:
|
|
3044
|
+
let n = x(t, "auto", 7, void 0), c = x(t, "blockspam", 7, void 0), s = x(t, "challengeurl", 7, void 0), u = x(t, "challengejson", 7, void 0), d = x(t, "credentials", 7, void 0), m = x(t, "customfetch", 7, void 0), h = x(t, "debug", 7, !1), p = x(t, "delay", 7, 0), k = x(t, "disableautofocus", 7, !1), V = x(t, "expire", 7, void 0), _ = x(t, "floating", 7, void 0), O = x(t, "floatinganchor", 7, void 0), ue = x(t, "floatingoffset", 7, void 0), J = x(t, "floatingpersist", 7, !1), te = x(t, "hidefooter", 7, !1), X = x(t, "hidelogo", 7, !1), st = x(t, "id", 7, void 0), F = x(t, "language", 7, void 0), oe = x(t, "name", 7, "altcha"), ye = x(t, "maxnumber", 7, 1e6), Ct = x(t, "mockerror", 7, !1), De = x(t, "obfuscated", 7, void 0), Ae = x(t, "overlay", 7, void 0), Et = x(t, "overlaycontent", 7, void 0), Ut = x(t, "plugins", 7, void 0), Lt = x(t, "refetchonexpire", 7, !0), Ke = x(t, "sentinel", 7, void 0), Le = x(t, "spamfilter", 7, !1), ct = x(t, "strings", 7, void 0), ve = x(t, "test", 7, !1), re = x(t, "verifyurl", 7, void 0), ft = x(t, "workers", 23, () => Math.min(16, navigator.hardwareConcurrency || 8)), xt = x(t, "workerurl", 7, void 0);
|
|
3045
|
+
const { altchaI18n: Yi } = globalThis, Ki = Yi.store, Qr = ["SHA-256", "SHA-384", "SHA-512"], Ji = "https://altcha.org/", qe = (a, f) => {
|
|
3046
3046
|
t.$$host.dispatchEvent(new CustomEvent(a, { detail: f }));
|
|
3047
|
-
}, ea = (Pa = ($a = document.documentElement.lang) == null ? void 0 : $a.split("-")) == null ? void 0 : Pa[0],
|
|
3047
|
+
}, ea = (Pa = ($a = document.documentElement.lang) == null ? void 0 : $a.split("-")) == null ? void 0 : Pa[0], yr = /* @__PURE__ */ $t(() => {
|
|
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
|
-
}),
|
|
3050
|
+
}), Ar = /* @__PURE__ */ $t(() => u() ? va(u()) : void 0), Xi = /* @__PURE__ */ $t(() => ct() ? va(ct()) : {}), P = /* @__PURE__ */ $t(() => ({
|
|
3051
3051
|
...ia(o()),
|
|
3052
3052
|
...l(Xi)
|
|
3053
|
-
})), ta = /* @__PURE__ */
|
|
3054
|
-
let Tt = /* @__PURE__ */ z(!1), B = /* @__PURE__ */ z(null), T = /* @__PURE__ */ z(Be(
|
|
3053
|
+
})), ta = /* @__PURE__ */ $t(() => `${st() || oe()}_checkbox_${Math.round(Math.random() * 1e8)}`);
|
|
3054
|
+
let Tt = /* @__PURE__ */ z(!1), B = /* @__PURE__ */ z(null), T = /* @__PURE__ */ z(Be(w.UNVERIFIED)), q = /* @__PURE__ */ z(void 0), It = /* @__PURE__ */ z(null), Oe = /* @__PURE__ */ z(null), de = /* @__PURE__ */ z(null), kr = /* @__PURE__ */ z(null), ut = /* @__PURE__ */ z(null), $ = /* @__PURE__ */ z(null), dt = /* @__PURE__ */ z(null), Je = /* @__PURE__ */ z(null), xe = null, U = /* @__PURE__ */ z(null), Xe = /* @__PURE__ */ z(!1), He = [], _r = /* @__PURE__ */ z(!1), Se = /* @__PURE__ */ z(null);
|
|
3055
3055
|
zr(() => {
|
|
3056
3056
|
dn(l(Je));
|
|
3057
3057
|
}), zr(() => {
|
|
3058
3058
|
hn(l(T));
|
|
3059
3059
|
}), al(() => {
|
|
3060
|
-
Qi(),
|
|
3060
|
+
Qi(), y(dt, null), l($) && (l($).removeEventListener("submit", fa), l($).removeEventListener("reset", ua), l($).removeEventListener("focusin", ca), y($, null)), xe && (clearTimeout(xe), xe = null), document.removeEventListener("click", la), document.removeEventListener("scroll", sa), window.removeEventListener("resize", ga);
|
|
3061
3061
|
}), Mi(() => {
|
|
3062
3062
|
var a;
|
|
3063
|
-
I("mounted", "2.1.0
|
|
3063
|
+
I("mounted", "2.1.0"), I("workers", ft()), an(), I("plugins", He.length ? He.map((f) => f.constructor.pluginName).join(", ") : "none"), ve() && I("using test mode"), V() && Cr(V()), n() !== void 0 && I("auto", n()), _() !== void 0 && pa(_()), y($, (a = l(q)) == null ? void 0 : a.closest("form"), !0), l($) && (l($).addEventListener("submit", fa, { capture: !0 }), l($).addEventListener("reset", ua), (n() === "onfocus" || J() === "focus") && l($).addEventListener("focusin", ca)), Ae() && ma(!0), n() === "onload" && (De() ? Vt() : $e()), l(yr) && (te() || X()) && I("Attributes hidefooter and hidelogo ignored because usage with free API Keys requires attribution."), requestAnimationFrame(() => {
|
|
3064
3064
|
qe("load");
|
|
3065
3065
|
});
|
|
3066
3066
|
});
|
|
3067
|
-
function
|
|
3067
|
+
function Zt(a, f) {
|
|
3068
3068
|
return btoa(JSON.stringify({
|
|
3069
3069
|
algorithm: a.algorithm,
|
|
3070
3070
|
challenge: a.challenge,
|
|
@@ -3080,20 +3080,20 @@ function Is(e, t) {
|
|
|
3080
3080
|
a.destroy();
|
|
3081
3081
|
}
|
|
3082
3082
|
function ra() {
|
|
3083
|
-
s() && Lt() && l(T) ===
|
|
3083
|
+
s() && Lt() && l(T) === w.VERIFIED ? $e() : Qe(w.EXPIRED, l(P).expired);
|
|
3084
3084
|
}
|
|
3085
3085
|
async function en() {
|
|
3086
3086
|
var a;
|
|
3087
3087
|
if (Ct())
|
|
3088
3088
|
throw I("mocking error"), new Error("Mocked error.");
|
|
3089
|
-
if (l(
|
|
3090
|
-
return I("using provided json data"), l(
|
|
3089
|
+
if (l(Ar))
|
|
3090
|
+
return I("using provided json data"), l(Ar);
|
|
3091
3091
|
if (ve())
|
|
3092
3092
|
return I("generating test challenge", { test: ve() }), ns(typeof ve() != "boolean" ? +ve() : void 0);
|
|
3093
3093
|
{
|
|
3094
3094
|
if (!s() && l($)) {
|
|
3095
|
-
const
|
|
3096
|
-
|
|
3095
|
+
const L = l($).getAttribute("action");
|
|
3096
|
+
L != null && L.includes("/form/") && s(L + "/altcha");
|
|
3097
3097
|
}
|
|
3098
3098
|
if (!s())
|
|
3099
3099
|
throw new Error("Attribute challengeurl not set.");
|
|
@@ -3106,25 +3106,25 @@ function Is(e, t) {
|
|
|
3106
3106
|
throw new Error("Custom fetch function did not return a response.");
|
|
3107
3107
|
if (g.status !== 200)
|
|
3108
3108
|
throw new Error(`Server responded with ${g.status}.`);
|
|
3109
|
-
const
|
|
3110
|
-
if (
|
|
3111
|
-
const
|
|
3112
|
-
M > 0 &&
|
|
3109
|
+
const b = g.headers.get("X-Altcha-Config"), v = await g.json(), C = new URLSearchParams((a = v.salt.split("?")) == null ? void 0 : a[1]), A = C.get("expires") || C.get("expire");
|
|
3110
|
+
if (A) {
|
|
3111
|
+
const L = new Date(+A * 1e3), M = isNaN(L.getTime()) ? 0 : L.getTime() - Date.now();
|
|
3112
|
+
M > 0 && Cr(M);
|
|
3113
3113
|
}
|
|
3114
|
-
if (
|
|
3114
|
+
if (b)
|
|
3115
3115
|
try {
|
|
3116
|
-
const
|
|
3117
|
-
|
|
3118
|
-
} catch (
|
|
3119
|
-
I("unable to configure from X-Altcha-Config",
|
|
3116
|
+
const L = JSON.parse(b);
|
|
3117
|
+
L && typeof L == "object" && (L.verifyurl && !L.verifyurl.startsWith("fn:") && (L.verifyurl = oa(L.verifyurl)), ka(L));
|
|
3118
|
+
} catch (L) {
|
|
3119
|
+
I("unable to configure from X-Altcha-Config", L);
|
|
3120
3120
|
}
|
|
3121
3121
|
return v;
|
|
3122
3122
|
}
|
|
3123
3123
|
}
|
|
3124
3124
|
function tn(a) {
|
|
3125
|
-
var g,
|
|
3125
|
+
var g, b;
|
|
3126
3126
|
const f = (g = l($)) == null ? void 0 : g.querySelector(typeof a == "string" ? `input[name="${a}"]` : 'input[type="email"]:not([data-no-spamfilter])');
|
|
3127
|
-
return ((
|
|
3127
|
+
return ((b = f == null ? void 0 : f.value) == null ? void 0 : b.slice(f.value.indexOf("@"))) || void 0;
|
|
3128
3128
|
}
|
|
3129
3129
|
function aa() {
|
|
3130
3130
|
let a = fetch;
|
|
@@ -3141,11 +3141,11 @@ function Is(e, t) {
|
|
|
3141
3141
|
document.documentElement.lang || "",
|
|
3142
3142
|
...navigator.languages
|
|
3143
3143
|
]) {
|
|
3144
|
-
const g = Object.keys(a).map((v) => v.toLowerCase()),
|
|
3145
|
-
(v,
|
|
3144
|
+
const g = Object.keys(a).map((v) => v.toLowerCase()), b = f.reduce(
|
|
3145
|
+
(v, C) => (C = C.toLowerCase(), v || (a[C] ? C : null) || g.find((A) => C.split("-")[0] === A.split("-")[0]) || null),
|
|
3146
3146
|
null
|
|
3147
3147
|
);
|
|
3148
|
-
return a[
|
|
3148
|
+
return a[b || "en"];
|
|
3149
3149
|
}
|
|
3150
3150
|
function rn() {
|
|
3151
3151
|
return Le() === "ipAddress" ? {
|
|
@@ -3175,28 +3175,28 @@ function Is(e, t) {
|
|
|
3175
3175
|
function na(a) {
|
|
3176
3176
|
var g;
|
|
3177
3177
|
return [
|
|
3178
|
-
...((g = l($)) == null ? void 0 : g.querySelectorAll(a != null && a.length ? a.map((
|
|
3178
|
+
...((g = l($)) == null ? void 0 : g.querySelectorAll(a != null && a.length ? a.map((b) => `input[name="${b}"]`).join(", ") : 'input[type="text"]:not([data-no-spamfilter]), textarea:not([data-no-spamfilter])')) || []
|
|
3179
3179
|
].reduce(
|
|
3180
|
-
(
|
|
3181
|
-
const
|
|
3182
|
-
return
|
|
3183
|
-
`) :
|
|
3180
|
+
(b, v) => {
|
|
3181
|
+
const C = v.name, A = v.value;
|
|
3182
|
+
return C && A && (b[C] = /\n/.test(A) ? A.replace(new RegExp("(?<!\\r)\\n", "g"), `\r
|
|
3183
|
+
`) : A), b;
|
|
3184
3184
|
},
|
|
3185
3185
|
{}
|
|
3186
3186
|
);
|
|
3187
3187
|
}
|
|
3188
3188
|
function oa(a, f) {
|
|
3189
|
-
const g = new URL(s() || location.origin),
|
|
3190
|
-
if (
|
|
3189
|
+
const g = new URL(s() || location.origin), b = new URL(a, g);
|
|
3190
|
+
if (b.search || (b.search = g.search), f)
|
|
3191
3191
|
for (const v in f)
|
|
3192
|
-
f[v] !== void 0 && f[v] !== null &&
|
|
3193
|
-
return
|
|
3192
|
+
f[v] !== void 0 && f[v] !== null && b.searchParams.set(v, f[v]);
|
|
3193
|
+
return b.toString();
|
|
3194
3194
|
}
|
|
3195
3195
|
function an() {
|
|
3196
|
-
const a =
|
|
3196
|
+
const a = Ut() !== void 0 ? Ut().split(",") : void 0;
|
|
3197
3197
|
for (const f of globalThis.altchaPlugins)
|
|
3198
3198
|
(!a || a.includes(f.pluginName)) && He.push(new f({
|
|
3199
|
-
el: l(
|
|
3199
|
+
el: l(q),
|
|
3200
3200
|
clarify: Vt,
|
|
3201
3201
|
dispatch: qe,
|
|
3202
3202
|
getConfiguration: _a,
|
|
@@ -3214,79 +3214,79 @@ function Is(e, t) {
|
|
|
3214
3214
|
(h() || a.some((f) => f instanceof Error)) && console[a[0] instanceof Error ? "error" : "log"]("ALTCHA", `[name=${oe()}]`, ...a);
|
|
3215
3215
|
}
|
|
3216
3216
|
function nn() {
|
|
3217
|
-
|
|
3217
|
+
y(U, ee.PAUSED, !0);
|
|
3218
3218
|
}
|
|
3219
3219
|
function on(a) {
|
|
3220
|
-
|
|
3220
|
+
y(U, ee.ERROR, !0);
|
|
3221
3221
|
}
|
|
3222
3222
|
function ln() {
|
|
3223
|
-
|
|
3223
|
+
y(U, ee.READY, !0);
|
|
3224
3224
|
}
|
|
3225
3225
|
function sn() {
|
|
3226
|
-
|
|
3226
|
+
y(U, ee.LOADING, !0);
|
|
3227
3227
|
}
|
|
3228
3228
|
function cn() {
|
|
3229
|
-
|
|
3229
|
+
y(U, ee.PLAYING, !0);
|
|
3230
3230
|
}
|
|
3231
3231
|
function fn() {
|
|
3232
|
-
|
|
3232
|
+
y(U, ee.PAUSED, !0);
|
|
3233
3233
|
}
|
|
3234
3234
|
function un(a) {
|
|
3235
3235
|
var f;
|
|
3236
3236
|
if (a.preventDefault(), a.stopPropagation(), l(B)) {
|
|
3237
|
-
const g = new FormData(a.target),
|
|
3237
|
+
const g = new FormData(a.target), b = String(g.get("code"));
|
|
3238
3238
|
if ((f = re()) != null && f.startsWith("fn:")) {
|
|
3239
3239
|
const v = re().replace(/^fn:/, "");
|
|
3240
3240
|
if (I(`calling ${v} function instead of verifyurl`), !(v in globalThis))
|
|
3241
3241
|
throw new Error(`Global function "${v}" is undefined.`);
|
|
3242
3242
|
return globalThis[v]({
|
|
3243
3243
|
challenge: l(B).challenge,
|
|
3244
|
-
code:
|
|
3244
|
+
code: b,
|
|
3245
3245
|
solution: l(B).solution
|
|
3246
3246
|
});
|
|
3247
3247
|
}
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
var
|
|
3251
|
-
(
|
|
3252
|
-
})) : (Qe(),
|
|
3248
|
+
y(Xe, !0), ba(Zt(l(B).challenge, l(B).solution), b).then(({ reason: v, verified: C }) => {
|
|
3249
|
+
C ? (y(B, null), Te(w.VERIFIED), I("verified"), jr().then(() => {
|
|
3250
|
+
var A;
|
|
3251
|
+
(A = l(kr)) == null || A.focus(), qe("verified", { payload: l(Se) }), n() === "onsubmit" ? wr(l(dt)) : Ae() && Rt();
|
|
3252
|
+
})) : (Qe(), y(Je, v || "Verification failed", !0));
|
|
3253
3253
|
}).catch((v) => {
|
|
3254
|
-
|
|
3254
|
+
y(B, null), Te(w.ERROR, v), I("sentinel verification failed:", v);
|
|
3255
3255
|
}).finally(() => {
|
|
3256
|
-
|
|
3256
|
+
y(Xe, !1);
|
|
3257
3257
|
});
|
|
3258
3258
|
}
|
|
3259
3259
|
}
|
|
3260
3260
|
function la(a) {
|
|
3261
3261
|
var g;
|
|
3262
3262
|
const f = a.target;
|
|
3263
|
-
|
|
3263
|
+
_() && f && !l(q).contains(f) && (l(T) === w.VERIFIED && J() === !1 || l(T) === w.VERIFIED && J() === "focus" && !((g = l($)) != null && g.matches(":focus-within")) || n() === "off" && l(T) === w.UNVERIFIED) && Rt();
|
|
3264
3264
|
}
|
|
3265
3265
|
function sa() {
|
|
3266
|
-
|
|
3266
|
+
_() && l(T) !== w.UNVERIFIED && jt();
|
|
3267
3267
|
}
|
|
3268
3268
|
function dn(a) {
|
|
3269
3269
|
for (const f of He)
|
|
3270
3270
|
typeof f.onErrorChange == "function" && f.onErrorChange(l(Je));
|
|
3271
3271
|
}
|
|
3272
3272
|
function ca(a) {
|
|
3273
|
-
l(T) ===
|
|
3273
|
+
l(T) === w.UNVERIFIED ? $e() : _() && J() === "focus" && l(T) === w.VERIFIED && Gt();
|
|
3274
3274
|
}
|
|
3275
3275
|
function fa(a) {
|
|
3276
|
-
var
|
|
3276
|
+
var b;
|
|
3277
3277
|
const f = a.target;
|
|
3278
|
-
f != null && f.hasAttribute("data-code-challenge-form") || (
|
|
3279
|
-
|
|
3280
|
-
})) : l(T) !==
|
|
3278
|
+
f != null && f.hasAttribute("data-code-challenge-form") || (y(dt, a.submitter, !0), l($) && n() === "onsubmit" ? ((b = l(dt)) == null || b.blur(), l(T) === w.UNVERIFIED ? (a.preventDefault(), a.stopPropagation(), $e().then(() => {
|
|
3279
|
+
wr(l(dt));
|
|
3280
|
+
})) : l(T) !== w.VERIFIED && (a.preventDefault(), a.stopPropagation(), l(T) === w.VERIFYING && da())) : l($) && _() && n() === "off" && l(T) === w.UNVERIFIED && (a.preventDefault(), a.stopPropagation(), Gt()));
|
|
3281
3281
|
}
|
|
3282
3282
|
function ua() {
|
|
3283
3283
|
Qe();
|
|
3284
3284
|
}
|
|
3285
3285
|
function da() {
|
|
3286
|
-
l(T) ===
|
|
3286
|
+
l(T) === w.VERIFYING && l(P).waitAlert && alert(l(P).waitAlert);
|
|
3287
3287
|
}
|
|
3288
3288
|
function ha() {
|
|
3289
|
-
l(Oe) ? l(Oe).paused ? (l(Oe).currentTime = 0, l(Oe).play()) : l(Oe).pause() : (
|
|
3289
|
+
l(Oe) ? l(Oe).paused ? (l(Oe).currentTime = 0, l(Oe).play()) : l(Oe).pause() : (y(_r, !0), requestAnimationFrame(() => {
|
|
3290
3290
|
var a;
|
|
3291
3291
|
(a = l(Oe)) == null || a.play();
|
|
3292
3292
|
}));
|
|
@@ -3294,12 +3294,12 @@ function Is(e, t) {
|
|
|
3294
3294
|
function hn(a) {
|
|
3295
3295
|
for (const f of He)
|
|
3296
3296
|
typeof f.onStateChange == "function" && f.onStateChange(l(T));
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
}),
|
|
3297
|
+
_() && l(T) !== w.UNVERIFIED && requestAnimationFrame(() => {
|
|
3298
|
+
jt();
|
|
3299
|
+
}), y(Tt, l(T) === w.VERIFIED), Ae() && l(de) && (l(T) !== w.UNVERIFIED ? Gt() : Rt());
|
|
3300
3300
|
}
|
|
3301
3301
|
function ga() {
|
|
3302
|
-
|
|
3302
|
+
_() && jt();
|
|
3303
3303
|
}
|
|
3304
3304
|
function va(a) {
|
|
3305
3305
|
return JSON.parse(a);
|
|
@@ -3312,17 +3312,17 @@ function Is(e, t) {
|
|
|
3312
3312
|
if (Le() !== !1) {
|
|
3313
3313
|
const {
|
|
3314
3314
|
blockedCountries: v,
|
|
3315
|
-
classifier:
|
|
3316
|
-
disableRules:
|
|
3317
|
-
email:
|
|
3315
|
+
classifier: C,
|
|
3316
|
+
disableRules: A,
|
|
3317
|
+
email: L,
|
|
3318
3318
|
expectedLanguages: M,
|
|
3319
3319
|
expectedCountries: Q,
|
|
3320
3320
|
fields: le,
|
|
3321
3321
|
ipAddress: Fe,
|
|
3322
3322
|
text: Lr,
|
|
3323
|
-
timeZone:
|
|
3323
|
+
timeZone: Kt
|
|
3324
3324
|
} = rn();
|
|
3325
|
-
f.blockedCountries = v, f.classifier =
|
|
3325
|
+
f.blockedCountries = v, f.classifier = C, f.disableRules = A, f.email = L === !1 ? void 0 : tn(L), f.expectedCountries = Q, f.expectedLanguages = M || (ea ? [ea] : void 0), f.fields = le === !1 ? void 0 : na(le), f.ipAddress = Fe === !1 ? void 0 : Fe || "auto", f.text = Lr, f.timeZone = Kt === !1 ? void 0 : Kt || Ja();
|
|
3326
3326
|
}
|
|
3327
3327
|
const g = await aa()(re(), {
|
|
3328
3328
|
body: JSON.stringify(f),
|
|
@@ -3333,8 +3333,8 @@ function Is(e, t) {
|
|
|
3333
3333
|
throw new Error("Custom fetch function did not return a response.");
|
|
3334
3334
|
if (g.status !== 200)
|
|
3335
3335
|
throw new Error(`Server responded with ${g.status}.`);
|
|
3336
|
-
const
|
|
3337
|
-
if (
|
|
3336
|
+
const b = await g.json();
|
|
3337
|
+
if (b != null && b.payload && y(Se, b.payload, !0), qe("serververification", b), c() && b.classification === "BAD")
|
|
3338
3338
|
throw new Error("SpamFilter returned negative classification.");
|
|
3339
3339
|
}
|
|
3340
3340
|
async function ba(a, f) {
|
|
@@ -3343,37 +3343,39 @@ function Is(e, t) {
|
|
|
3343
3343
|
I("requesting sentinel verification from", re());
|
|
3344
3344
|
const g = { code: f, payload: a };
|
|
3345
3345
|
Ke() && (g.fields = Ke().fields ? na() : void 0, g.timeZone = Ke().timeZone ? Ja() : void 0);
|
|
3346
|
-
const
|
|
3346
|
+
const b = await fetch(re(), {
|
|
3347
3347
|
body: JSON.stringify(g),
|
|
3348
3348
|
headers: { "content-type": "application/json" },
|
|
3349
3349
|
method: "POST"
|
|
3350
3350
|
});
|
|
3351
|
-
if (!
|
|
3351
|
+
if (!b || !(b instanceof Response))
|
|
3352
3352
|
throw new Error("Fetch function did not return a response.");
|
|
3353
|
-
if (
|
|
3354
|
-
throw new Error(`Server responded with ${
|
|
3355
|
-
const v = await
|
|
3356
|
-
return v != null && v.payload &&
|
|
3353
|
+
if (b.status !== 200)
|
|
3354
|
+
throw new Error(`Server responded with ${b.status}.`);
|
|
3355
|
+
const v = await b.json();
|
|
3356
|
+
return v != null && v.payload && y(Se, v.payload, !0), qe("sentinelverification", v), v;
|
|
3357
3357
|
}
|
|
3358
|
-
function
|
|
3358
|
+
function wr(a) {
|
|
3359
3359
|
var f;
|
|
3360
3360
|
l($) && "requestSubmit" in l($) ? l($).requestSubmit(a) : (f = l($)) != null && f.reportValidity() && (a ? a.click() : l($).submit());
|
|
3361
3361
|
}
|
|
3362
|
-
function
|
|
3362
|
+
function Cr(a) {
|
|
3363
3363
|
I("expire", a), xe && (clearTimeout(xe), xe = null), a < 1 ? ra() : xe = setTimeout(ra, a);
|
|
3364
3364
|
}
|
|
3365
3365
|
function pa(a) {
|
|
3366
|
-
I("floating", a),
|
|
3366
|
+
I("floating", a), _() !== a && (l(q).style.left = "", l(q).style.top = ""), _(a === !0 || a === "" ? "auto" : a === !1 || a === "false" ? void 0 : _()), _() ? (n() || n("onsubmit"), document.addEventListener("scroll", sa), document.addEventListener("click", la), window.addEventListener("resize", ga)) : n() === "onsubmit" && n(void 0);
|
|
3367
3367
|
}
|
|
3368
3368
|
function ma(a) {
|
|
3369
|
-
var f, g
|
|
3370
|
-
if (
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3369
|
+
var f, g;
|
|
3370
|
+
if (I("overlay", a), Ae(a), a) {
|
|
3371
|
+
if (n() || n("onsubmit"), l(de) && l(q).parentElement && l(de).replaceWith(l(q).parentElement), (g = (f = l(q)) == null ? void 0 : f.parentElement) != null && g.parentElement) {
|
|
3372
|
+
y(de, document.createElement("div"), !0), l(q).parentElement.parentElement.appendChild(l(de));
|
|
3373
|
+
const b = document.createElement("div"), v = document.createElement("button");
|
|
3374
|
+
v.type = "button", v.innerHTML = "×", v.addEventListener("click", (C) => {
|
|
3375
|
+
C.preventDefault(), Qe();
|
|
3376
|
+
}), l(de).classList.add("altcha-overlay-backdrop"), v.classList.add("altcha-overlay-close-button"), b.classList.add("altcha-overlay"), l(de).append(b), b.append(v), Et() && b.append(...document.querySelectorAll(Et())), b.append(l(q).parentElement);
|
|
3377
|
+
}
|
|
3378
|
+
} else l(de) && l(q).parentElement && (l(de).replaceWith(l(q).parentElement), l(q).style.display = "block");
|
|
3377
3379
|
}
|
|
3378
3380
|
function ya(a) {
|
|
3379
3381
|
if (!a.algorithm)
|
|
@@ -3408,19 +3410,19 @@ function Is(e, t) {
|
|
|
3408
3410
|
};
|
|
3409
3411
|
}
|
|
3410
3412
|
async function vn(a, f = typeof ve() == "number" ? ve() : a.maxNumber || a.maxnumber || ye(), g = Math.ceil(ft())) {
|
|
3411
|
-
const
|
|
3413
|
+
const b = [];
|
|
3412
3414
|
g = Math.min(16, f, Math.max(1, g));
|
|
3413
|
-
for (let
|
|
3414
|
-
|
|
3415
|
-
const v = Math.ceil(f / g),
|
|
3416
|
-
const M =
|
|
3415
|
+
for (let A = 0; A < g; A++)
|
|
3416
|
+
b.push(altchaCreateWorker(xt()));
|
|
3417
|
+
const v = Math.ceil(f / g), C = await Promise.all(b.map((A, L) => {
|
|
3418
|
+
const M = L * v;
|
|
3417
3419
|
return new Promise((Q) => {
|
|
3418
|
-
|
|
3420
|
+
A.addEventListener("message", (le) => {
|
|
3419
3421
|
if (le.data)
|
|
3420
|
-
for (const Fe of
|
|
3421
|
-
Fe !==
|
|
3422
|
+
for (const Fe of b)
|
|
3423
|
+
Fe !== A && Fe.postMessage({ type: "abort" });
|
|
3422
3424
|
Q(le.data);
|
|
3423
|
-
}),
|
|
3425
|
+
}), A.postMessage({
|
|
3424
3426
|
payload: a,
|
|
3425
3427
|
max: M + v,
|
|
3426
3428
|
start: M,
|
|
@@ -3428,25 +3430,25 @@ function Is(e, t) {
|
|
|
3428
3430
|
});
|
|
3429
3431
|
});
|
|
3430
3432
|
}));
|
|
3431
|
-
for (const
|
|
3432
|
-
|
|
3433
|
-
return
|
|
3433
|
+
for (const A of b)
|
|
3434
|
+
A.terminate();
|
|
3435
|
+
return C.find((A) => !!A) || null;
|
|
3434
3436
|
}
|
|
3435
3437
|
async function Vt() {
|
|
3436
3438
|
if (!De()) {
|
|
3437
|
-
Te(
|
|
3439
|
+
Te(w.ERROR);
|
|
3438
3440
|
return;
|
|
3439
3441
|
}
|
|
3440
3442
|
const a = He.find((f) => f.constructor.pluginName === "obfuscation");
|
|
3441
3443
|
if (!a || !("clarify" in a)) {
|
|
3442
|
-
Te(
|
|
3444
|
+
Te(w.ERROR), I("Plugin `obfuscation` not found. Import `altcha/plugins/obfuscation` to load it.");
|
|
3443
3445
|
return;
|
|
3444
3446
|
}
|
|
3445
3447
|
if ("clarify" in a && typeof a.clarify == "function")
|
|
3446
3448
|
return a.clarify();
|
|
3447
3449
|
}
|
|
3448
3450
|
function ka(a) {
|
|
3449
|
-
a.obfuscated !== void 0 && De(a.obfuscated), a.auto !== void 0 && (n(a.auto), n() === "onload" && (De() ? Vt() : $e())), a.blockspam !== void 0 && c(!!a.blockspam), a.customfetch !== void 0 && m(a.customfetch), a.floatinganchor !== void 0 &&
|
|
3451
|
+
a.obfuscated !== void 0 && De(a.obfuscated), a.auto !== void 0 && (n(a.auto), n() === "onload" && (De() ? Vt() : $e())), a.blockspam !== void 0 && c(!!a.blockspam), a.customfetch !== void 0 && m(a.customfetch), a.floatinganchor !== void 0 && O(a.floatinganchor), a.delay !== void 0 && p(a.delay), a.floatingoffset !== void 0 && ue(a.floatingoffset), a.floating !== void 0 && pa(a.floating), a.expire !== void 0 && (Cr(a.expire), V(a.expire)), a.challenge && (u(typeof a.challenge == "string" ? a.challenge : JSON.stringify(a.challenge)), ya(l(Ar))), a.challengeurl !== void 0 && s(a.challengeurl), a.debug !== void 0 && h(!!a.debug), a.hidefooter !== void 0 && te(!!a.hidefooter), a.hidelogo !== void 0 && X(!!a.hidelogo), a.language !== void 0 && ct(ia(o(), [a.language])), a.maxnumber !== void 0 && ye(+a.maxnumber), a.mockerror !== void 0 && Ct(!!a.mockerror), a.name !== void 0 && oe(a.name), a.overlaycontent !== void 0 && Et(a.overlaycontent), a.overlay !== void 0 && ma(a.overlay), a.refetchonexpire !== void 0 && Lt(!!a.refetchonexpire), a.sentinel !== void 0 && typeof a.sentinel == "object" && Ke(a.sentinel), a.spamfilter !== void 0 && Le(typeof a.spamfilter == "object" ? a.spamfilter : !!a.spamfilter), a.strings && ct(typeof a.strings == "string" ? a.strings : JSON.stringify(a.strings)), a.test !== void 0 && ve(typeof a.test == "number" ? a.test : !!a.test), a.verifyurl !== void 0 && re(a.verifyurl), a.workers !== void 0 && ft(+a.workers), a.workerurl !== void 0 && xt(a.workerurl);
|
|
3450
3452
|
}
|
|
3451
3453
|
function _a() {
|
|
3452
3454
|
return {
|
|
@@ -3454,10 +3456,10 @@ function Is(e, t) {
|
|
|
3454
3456
|
blockspam: c(),
|
|
3455
3457
|
challengeurl: s(),
|
|
3456
3458
|
debug: h(),
|
|
3457
|
-
delay:
|
|
3459
|
+
delay: p(),
|
|
3458
3460
|
expire: V(),
|
|
3459
|
-
floating:
|
|
3460
|
-
floatinganchor:
|
|
3461
|
+
floating: _(),
|
|
3462
|
+
floatinganchor: O(),
|
|
3461
3463
|
floatingoffset: ue(),
|
|
3462
3464
|
hidefooter: te(),
|
|
3463
3465
|
hidelogo: X(),
|
|
@@ -3465,7 +3467,7 @@ function Is(e, t) {
|
|
|
3465
3467
|
maxnumber: ye(),
|
|
3466
3468
|
mockerror: Ct(),
|
|
3467
3469
|
obfuscated: De(),
|
|
3468
|
-
overlay:
|
|
3470
|
+
overlay: Ae(),
|
|
3469
3471
|
refetchonexpire: Lt(),
|
|
3470
3472
|
spamfilter: Le(),
|
|
3471
3473
|
strings: l(P),
|
|
@@ -3484,76 +3486,76 @@ function Is(e, t) {
|
|
|
3484
3486
|
function Ca() {
|
|
3485
3487
|
return l(T);
|
|
3486
3488
|
}
|
|
3487
|
-
function
|
|
3488
|
-
l(
|
|
3489
|
+
function Rt() {
|
|
3490
|
+
l(q).style.display = "none", Ae() && l(de) && (l(de).style.display = "none");
|
|
3489
3491
|
}
|
|
3490
|
-
function
|
|
3492
|
+
function jt(a = 20) {
|
|
3491
3493
|
var f;
|
|
3492
|
-
if (l(
|
|
3493
|
-
if (l(ut) ||
|
|
3494
|
-
const g = parseInt(ue(), 10) || 12,
|
|
3495
|
-
if (
|
|
3494
|
+
if (l(q))
|
|
3495
|
+
if (l(ut) || y(ut, (O() ? document.querySelector(O()) : (f = l($)) == null ? void 0 : f.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])')) || l($), !0), l(ut)) {
|
|
3496
|
+
const g = parseInt(ue(), 10) || 12, b = l(ut).getBoundingClientRect(), v = l(q).getBoundingClientRect(), C = document.documentElement.clientHeight, A = document.documentElement.clientWidth, L = _() === "auto" ? b.bottom + v.height + g + a > C : _() === "top", M = Math.max(a, Math.min(A - a - v.width, b.left + b.width / 2 - v.width / 2));
|
|
3497
|
+
if (L ? l(q).style.top = `${b.top - (v.height + g)}px` : l(q).style.top = `${b.bottom + g}px`, l(q).style.left = `${M}px`, l(q).setAttribute("data-floating", L ? "top" : "bottom"), l(It)) {
|
|
3496
3498
|
const Q = l(It).getBoundingClientRect();
|
|
3497
|
-
l(It).style.left =
|
|
3499
|
+
l(It).style.left = b.left - M + b.width / 2 - Q.width / 2 + "px";
|
|
3498
3500
|
}
|
|
3499
3501
|
} else
|
|
3500
3502
|
I("unable to find floating anchor element");
|
|
3501
3503
|
}
|
|
3502
|
-
function Qe(a =
|
|
3503
|
-
xe && (clearTimeout(xe), xe = null),
|
|
3504
|
+
function Qe(a = w.UNVERIFIED, f = null) {
|
|
3505
|
+
xe && (clearTimeout(xe), xe = null), y(Tt, !1), y(Se, null), y(B, null), y(_r, !1), y(U, null), Te(a, f);
|
|
3504
3506
|
}
|
|
3505
3507
|
function Ea(a) {
|
|
3506
|
-
|
|
3508
|
+
y(ut, a, !0);
|
|
3507
3509
|
}
|
|
3508
3510
|
function Te(a, f = null) {
|
|
3509
|
-
|
|
3511
|
+
y(T, a, !0), y(Je, f, !0), qe("statechange", {
|
|
3510
3512
|
payload: l(Se),
|
|
3511
3513
|
state: l(T)
|
|
3512
3514
|
});
|
|
3513
3515
|
}
|
|
3514
|
-
function
|
|
3515
|
-
l(
|
|
3516
|
+
function Gt() {
|
|
3517
|
+
l(q).style.display = "block", _() && jt(), Ae() && l(de) && (l(de).style.display = "flex");
|
|
3516
3518
|
}
|
|
3517
3519
|
async function $e() {
|
|
3518
|
-
return Qe(
|
|
3520
|
+
return Qe(w.VERIFYING), await new Promise((a) => setTimeout(a, p() || 0)), en().then((a) => (ya(a), I("challenge", a), Aa(a))).then(({ data: a, solution: f }) => {
|
|
3519
3521
|
var g;
|
|
3520
3522
|
if (I("solution", f), !f || a && "challenge" in a && !("clearText" in f))
|
|
3521
3523
|
if ((f == null ? void 0 : f.number) !== void 0 && "challenge" in a)
|
|
3522
3524
|
if (re() && "codeChallenge" in a)
|
|
3523
|
-
["INPUT", "BUTTON", "SELECT", "TEXTAREA"].includes(((g = document.activeElement) == null ? void 0 : g.tagName) || "") && k() === !1 && document.activeElement.blur(),
|
|
3525
|
+
["INPUT", "BUTTON", "SELECT", "TEXTAREA"].includes(((g = document.activeElement) == null ? void 0 : g.tagName) || "") && k() === !1 && document.activeElement.blur(), y(B, { challenge: a, solution: f }, !0);
|
|
3524
3526
|
else {
|
|
3525
3527
|
if (re() && Ke() !== void 0)
|
|
3526
|
-
return ba(
|
|
3528
|
+
return ba(Zt(a, f));
|
|
3527
3529
|
if (re())
|
|
3528
|
-
return gn(
|
|
3529
|
-
|
|
3530
|
+
return gn(Zt(a, f));
|
|
3531
|
+
y(Se, Zt(a, f), !0), I("payload", l(Se));
|
|
3530
3532
|
}
|
|
3531
3533
|
else
|
|
3532
3534
|
throw I("Unable to find a solution. Ensure that the 'maxnumber' attribute is greater than the randomly generated number."), new Error("Unexpected result returned.");
|
|
3533
3535
|
}).then(() => {
|
|
3534
|
-
l(B) ? (Te(
|
|
3536
|
+
l(B) ? (Te(w.CODE), jr().then(() => {
|
|
3535
3537
|
qe("code", { codeChallenge: l(B) });
|
|
3536
|
-
})) : (Te(
|
|
3537
|
-
qe("verified", { payload: l(Se) }), n() === "onsubmit" ?
|
|
3538
|
+
})) : (Te(w.VERIFIED), I("verified"), jr().then(() => {
|
|
3539
|
+
qe("verified", { payload: l(Se) }), n() === "onsubmit" ? wr(l(dt)) : Ae() && Rt();
|
|
3538
3540
|
}));
|
|
3539
3541
|
}).catch((a) => {
|
|
3540
|
-
I(a), Te(
|
|
3542
|
+
I(a), Te(w.ERROR, a.message);
|
|
3541
3543
|
});
|
|
3542
3544
|
}
|
|
3543
|
-
var La = Ts(), xa =
|
|
3545
|
+
var La = Ts(), xa = Pt(La);
|
|
3544
3546
|
Fo(xa, t, "default", {});
|
|
3545
|
-
var ht =
|
|
3547
|
+
var ht = Y(xa, 2), Er = W(ht), Wt = W(Er);
|
|
3546
3548
|
let Ta;
|
|
3547
|
-
var Ia =
|
|
3549
|
+
var Ia = W(Wt);
|
|
3548
3550
|
{
|
|
3549
3551
|
var pn = (a) => {
|
|
3550
3552
|
Sr(a);
|
|
3551
3553
|
};
|
|
3552
3554
|
K(Ia, (a) => {
|
|
3553
|
-
l(T) ===
|
|
3555
|
+
l(T) === w.VERIFYING && a(pn);
|
|
3554
3556
|
});
|
|
3555
3557
|
}
|
|
3556
|
-
var et =
|
|
3558
|
+
var et = Y(Ia, 2);
|
|
3557
3559
|
Za(et), et.__change = [
|
|
3558
3560
|
hs,
|
|
3559
3561
|
T,
|
|
@@ -3563,50 +3565,50 @@ function Is(e, t) {
|
|
|
3563
3565
|
De,
|
|
3564
3566
|
Vt,
|
|
3565
3567
|
$e
|
|
3566
|
-
],
|
|
3567
|
-
var Yt =
|
|
3568
|
+
], Qt(et, (a) => y(kr, a), () => l(kr)), G(Wt);
|
|
3569
|
+
var Yt = Y(Wt, 2), mn = W(Yt);
|
|
3568
3570
|
{
|
|
3569
3571
|
var yn = (a) => {
|
|
3570
|
-
var f =
|
|
3572
|
+
var f = Xt(), g = Pt(f);
|
|
3571
3573
|
tt(g, () => l(P).verified), H(a, f);
|
|
3572
3574
|
}, An = (a, f) => {
|
|
3573
3575
|
{
|
|
3574
3576
|
var g = (v) => {
|
|
3575
|
-
var
|
|
3576
|
-
tt(
|
|
3577
|
-
},
|
|
3577
|
+
var C = Xt(), A = Pt(C);
|
|
3578
|
+
tt(A, () => l(P).verifying), H(v, C);
|
|
3579
|
+
}, b = (v, C) => {
|
|
3578
3580
|
{
|
|
3579
|
-
var
|
|
3580
|
-
var Q =
|
|
3581
|
+
var A = (M) => {
|
|
3582
|
+
var Q = Xt(), le = Pt(Q);
|
|
3581
3583
|
tt(le, () => l(P).verificationRequired), H(M, Q);
|
|
3582
|
-
},
|
|
3583
|
-
var Q =
|
|
3584
|
+
}, L = (M) => {
|
|
3585
|
+
var Q = Xt(), le = Pt(Q);
|
|
3584
3586
|
tt(le, () => l(P).label), H(M, Q);
|
|
3585
3587
|
};
|
|
3586
3588
|
K(
|
|
3587
3589
|
v,
|
|
3588
3590
|
(M) => {
|
|
3589
|
-
l(T) ===
|
|
3591
|
+
l(T) === w.CODE ? M(A) : M(L, !1);
|
|
3590
3592
|
},
|
|
3591
|
-
|
|
3593
|
+
C
|
|
3592
3594
|
);
|
|
3593
3595
|
}
|
|
3594
3596
|
};
|
|
3595
3597
|
K(
|
|
3596
3598
|
a,
|
|
3597
3599
|
(v) => {
|
|
3598
|
-
l(T) ===
|
|
3600
|
+
l(T) === w.VERIFYING ? v(g) : v(b, !1);
|
|
3599
3601
|
},
|
|
3600
3602
|
f
|
|
3601
3603
|
);
|
|
3602
3604
|
}
|
|
3603
3605
|
};
|
|
3604
3606
|
K(mn, (a) => {
|
|
3605
|
-
l(T) ===
|
|
3607
|
+
l(T) === w.VERIFIED ? a(yn) : a(An, !1);
|
|
3606
3608
|
});
|
|
3607
3609
|
}
|
|
3608
3610
|
G(Yt);
|
|
3609
|
-
var Va =
|
|
3611
|
+
var Va = Y(Yt, 2);
|
|
3610
3612
|
{
|
|
3611
3613
|
var kn = (a) => {
|
|
3612
3614
|
var f = vs();
|
|
@@ -3615,35 +3617,35 @@ function Is(e, t) {
|
|
|
3615
3617
|
}), H(a, f);
|
|
3616
3618
|
};
|
|
3617
3619
|
K(Va, (a) => {
|
|
3618
|
-
l(T) ===
|
|
3620
|
+
l(T) === w.VERIFIED && a(kn);
|
|
3619
3621
|
});
|
|
3620
3622
|
}
|
|
3621
|
-
var Ra =
|
|
3623
|
+
var Ra = Y(Va, 2);
|
|
3622
3624
|
{
|
|
3623
3625
|
var _n = (a) => {
|
|
3624
|
-
var f = bs(), g =
|
|
3626
|
+
var f = bs(), g = W(f);
|
|
3625
3627
|
R(g, "href", Ji), G(f), Ie(() => R(g, "aria-label", l(P).ariaLinkLabel)), H(a, f);
|
|
3626
3628
|
};
|
|
3627
3629
|
K(Ra, (a) => {
|
|
3628
|
-
(X() !== !0 || l(
|
|
3630
|
+
(X() !== !0 || l(yr)) && a(_n);
|
|
3629
3631
|
});
|
|
3630
3632
|
}
|
|
3631
|
-
var wn =
|
|
3633
|
+
var wn = Y(Ra, 2);
|
|
3632
3634
|
{
|
|
3633
3635
|
var Cn = (a) => {
|
|
3634
|
-
var f = _s(), g = W(
|
|
3636
|
+
var f = _s(), g = Y(W(f), 2), b = W(g), v = Y(b, 2);
|
|
3635
3637
|
Po(v, !k()), v.__keydown = [
|
|
3636
3638
|
us,
|
|
3637
3639
|
ha
|
|
3638
3640
|
];
|
|
3639
|
-
var
|
|
3641
|
+
var C = Y(v, 2), A = W(C), L = W(A);
|
|
3640
3642
|
{
|
|
3641
|
-
var M = (
|
|
3643
|
+
var M = (ke) => {
|
|
3642
3644
|
var Z = As();
|
|
3643
3645
|
Z.__click = ha;
|
|
3644
|
-
var
|
|
3646
|
+
var Jt = W(Z);
|
|
3645
3647
|
{
|
|
3646
|
-
var
|
|
3648
|
+
var St = (gt) => {
|
|
3647
3649
|
Sr(gt, () => 20);
|
|
3648
3650
|
}, jn = (gt, Sn) => {
|
|
3649
3651
|
{
|
|
@@ -3677,45 +3679,45 @@ function Is(e, t) {
|
|
|
3677
3679
|
);
|
|
3678
3680
|
}
|
|
3679
3681
|
};
|
|
3680
|
-
K(
|
|
3681
|
-
l(U) === ee.LOADING ? gt(
|
|
3682
|
+
K(Jt, (gt) => {
|
|
3683
|
+
l(U) === ee.LOADING ? gt(St) : gt(jn, !1);
|
|
3682
3684
|
});
|
|
3683
3685
|
}
|
|
3684
3686
|
G(Z), Ie(() => {
|
|
3685
3687
|
R(Z, "title", l(P).getAudioChallenge), Z.disabled = l(U) === ee.LOADING || l(U) === ee.ERROR || l(Xe), R(Z, "aria-label", l(U) === ee.LOADING ? l(P).loading : l(P).getAudioChallenge);
|
|
3686
|
-
}), H(
|
|
3688
|
+
}), H(ke, Z);
|
|
3687
3689
|
};
|
|
3688
|
-
K(
|
|
3689
|
-
l(B).challenge.codeChallenge.audio &&
|
|
3690
|
+
K(L, (ke) => {
|
|
3691
|
+
l(B).challenge.codeChallenge.audio && ke(M);
|
|
3690
3692
|
});
|
|
3691
3693
|
}
|
|
3692
|
-
var Q =
|
|
3693
|
-
Q.__click = [ds, $e], G(
|
|
3694
|
-
var le =
|
|
3694
|
+
var Q = Y(L, 2);
|
|
3695
|
+
Q.__click = [ds, $e], G(A);
|
|
3696
|
+
var le = Y(A, 2), Fe = W(le);
|
|
3695
3697
|
{
|
|
3696
|
-
var Lr = (
|
|
3697
|
-
Sr(
|
|
3698
|
+
var Lr = (ke) => {
|
|
3699
|
+
Sr(ke, () => 16);
|
|
3698
3700
|
};
|
|
3699
|
-
K(Fe, (
|
|
3700
|
-
l(Xe) &&
|
|
3701
|
+
K(Fe, (ke) => {
|
|
3702
|
+
l(Xe) && ke(Lr);
|
|
3701
3703
|
});
|
|
3702
3704
|
}
|
|
3703
|
-
var
|
|
3704
|
-
G(le), G(
|
|
3705
|
-
var Vn =
|
|
3705
|
+
var Kt = Y(Fe);
|
|
3706
|
+
G(le), G(C);
|
|
3707
|
+
var Vn = Y(C, 2);
|
|
3706
3708
|
{
|
|
3707
|
-
var Rn = (
|
|
3708
|
-
var Z = ks(),
|
|
3709
|
-
G(Z),
|
|
3709
|
+
var Rn = (ke) => {
|
|
3710
|
+
var Z = ks(), Jt = W(Z);
|
|
3711
|
+
G(Z), Qt(Z, (St) => y(Oe, St), () => l(Oe)), Ie((St) => R(Jt, "src", St), [
|
|
3710
3712
|
() => oa(l(B).challenge.codeChallenge.audio, { language: F() })
|
|
3711
|
-
]), Me("loadstart", Z, sn), Me("canplay", Z, ln), Me("pause", Z, fn), Me("playing", Z, cn), Me("ended", Z, nn), Me("error",
|
|
3713
|
+
]), Me("loadstart", Z, sn), Me("canplay", Z, ln), Me("pause", Z, fn), Me("playing", Z, cn), Me("ended", Z, nn), Me("error", Jt, on), H(ke, Z);
|
|
3712
3714
|
};
|
|
3713
|
-
K(Vn, (
|
|
3714
|
-
l(B).challenge.codeChallenge.audio && l(
|
|
3715
|
+
K(Vn, (ke) => {
|
|
3716
|
+
l(B).challenge.codeChallenge.audio && l(_r) && ke(Rn);
|
|
3715
3717
|
});
|
|
3716
3718
|
}
|
|
3717
3719
|
G(g), G(f), Ie(() => {
|
|
3718
|
-
R(f, "aria-label", l(P).verificationRequired), R(
|
|
3720
|
+
R(f, "aria-label", l(P).verificationRequired), R(b, "src", l(B).challenge.codeChallenge.image), R(v, "minlength", l(B).challenge.codeChallenge.length || 1), R(v, "maxlength", l(B).challenge.codeChallenge.length), R(v, "placeholder", l(P).enterCode), R(v, "aria-label", l(U) === ee.LOADING ? l(P).loading : l(U) === ee.PLAYING ? "" : l(P).enterCodeAria), R(v, "aria-live", l(U) ? "assertive" : "polite"), R(v, "aria-busy", l(U) === ee.LOADING), v.disabled = l(Xe), R(Q, "aria-label", l(P).reload), R(Q, "title", l(P).reload), Q.disabled = l(Xe), le.disabled = l(Xe), R(le, "aria-label", l(P).verify), qo(Kt, ` ${l(P).verify ?? ""}`);
|
|
3719
3721
|
}), Me("submit", g, un, !0), H(a, f);
|
|
3720
3722
|
};
|
|
3721
3723
|
K(wn, (a) => {
|
|
@@ -3724,58 +3726,58 @@ function Is(e, t) {
|
|
|
3724
3726
|
});
|
|
3725
3727
|
}
|
|
3726
3728
|
G(Er);
|
|
3727
|
-
var ja =
|
|
3729
|
+
var ja = Y(Er, 2);
|
|
3728
3730
|
{
|
|
3729
3731
|
var En = (a) => {
|
|
3730
|
-
var f = Es(), g = W(
|
|
3732
|
+
var f = Es(), g = Y(W(f), 2);
|
|
3731
3733
|
{
|
|
3732
|
-
var
|
|
3733
|
-
var
|
|
3734
|
-
tt(
|
|
3735
|
-
}, v = (
|
|
3736
|
-
var
|
|
3737
|
-
tt(
|
|
3734
|
+
var b = (C) => {
|
|
3735
|
+
var A = ws(), L = W(A);
|
|
3736
|
+
tt(L, () => l(P).expired), G(A), Ie(() => R(A, "title", l(Je))), H(C, A);
|
|
3737
|
+
}, v = (C) => {
|
|
3738
|
+
var A = Cs(), L = W(A);
|
|
3739
|
+
tt(L, () => l(P).error), G(A), Ie(() => R(A, "title", l(Je))), H(C, A);
|
|
3738
3740
|
};
|
|
3739
|
-
K(g, (
|
|
3740
|
-
l(T) ===
|
|
3741
|
+
K(g, (C) => {
|
|
3742
|
+
l(T) === w.EXPIRED ? C(b) : C(v, !1);
|
|
3741
3743
|
});
|
|
3742
3744
|
}
|
|
3743
3745
|
G(f), H(a, f);
|
|
3744
3746
|
};
|
|
3745
3747
|
K(ja, (a) => {
|
|
3746
|
-
(l(Je) || l(T) ===
|
|
3748
|
+
(l(Je) || l(T) === w.EXPIRED) && a(En);
|
|
3747
3749
|
});
|
|
3748
3750
|
}
|
|
3749
|
-
var Sa =
|
|
3751
|
+
var Sa = Y(ja, 2);
|
|
3750
3752
|
{
|
|
3751
3753
|
var Ln = (a) => {
|
|
3752
|
-
var f = Ls(), g =
|
|
3753
|
-
tt(
|
|
3754
|
+
var f = Ls(), g = W(f), b = W(g);
|
|
3755
|
+
tt(b, () => l(P).footer), G(g), G(f), H(a, f);
|
|
3754
3756
|
};
|
|
3755
3757
|
K(Sa, (a) => {
|
|
3756
|
-
l(P).footer && (te() !== !0 || l(
|
|
3758
|
+
l(P).footer && (te() !== !0 || l(yr)) && a(Ln);
|
|
3757
3759
|
});
|
|
3758
3760
|
}
|
|
3759
|
-
var xn =
|
|
3761
|
+
var xn = Y(Sa, 2);
|
|
3760
3762
|
{
|
|
3761
3763
|
var Tn = (a) => {
|
|
3762
3764
|
var f = xs();
|
|
3763
|
-
|
|
3765
|
+
Qt(f, (g) => y(It, g), () => l(It)), H(a, f);
|
|
3764
3766
|
};
|
|
3765
3767
|
K(xn, (a) => {
|
|
3766
|
-
|
|
3768
|
+
_() && a(Tn);
|
|
3767
3769
|
});
|
|
3768
3770
|
}
|
|
3769
|
-
G(ht),
|
|
3771
|
+
G(ht), Qt(ht, (a) => y(q, a), () => l(q)), Ie(
|
|
3770
3772
|
(a) => {
|
|
3771
|
-
R(ht, "data-state", l(T)), R(ht, "data-floating",
|
|
3773
|
+
R(ht, "data-state", l(T)), R(ht, "data-floating", _()), R(ht, "data-overlay", Ae()), Ta = Bo(Wt, 1, "altcha-checkbox", null, Ta, a), R(et, "id", l(ta)), et.required = n() !== "onsubmit" && (!_() || n() !== "off"), R(Yt, "for", l(ta));
|
|
3772
3774
|
},
|
|
3773
3775
|
[
|
|
3774
3776
|
() => ({
|
|
3775
|
-
"altcha-checkbox-verifying": l(T) ===
|
|
3777
|
+
"altcha-checkbox-verifying": l(T) === w.VERIFYING
|
|
3776
3778
|
})
|
|
3777
3779
|
]
|
|
3778
|
-
), Me("invalid", et, da),
|
|
3780
|
+
), Me("invalid", et, da), Yo(et, () => l(Tt), (a) => y(Tt, a)), H(e, La);
|
|
3779
3781
|
var In = hi({
|
|
3780
3782
|
clarify: Vt,
|
|
3781
3783
|
configure: ka,
|
|
@@ -3783,210 +3785,210 @@ function Is(e, t) {
|
|
|
3783
3785
|
getFloatingAnchor: wa,
|
|
3784
3786
|
getPlugin: bn,
|
|
3785
3787
|
getState: Ca,
|
|
3786
|
-
hide:
|
|
3787
|
-
repositionFloating:
|
|
3788
|
+
hide: Rt,
|
|
3789
|
+
repositionFloating: jt,
|
|
3788
3790
|
reset: Qe,
|
|
3789
3791
|
setFloatingAnchor: Ea,
|
|
3790
3792
|
setState: Te,
|
|
3791
|
-
show:
|
|
3793
|
+
show: Gt,
|
|
3792
3794
|
verify: $e,
|
|
3793
3795
|
get auto() {
|
|
3794
3796
|
return n();
|
|
3795
3797
|
},
|
|
3796
3798
|
set auto(a = void 0) {
|
|
3797
|
-
n(a),
|
|
3799
|
+
n(a), E();
|
|
3798
3800
|
},
|
|
3799
3801
|
get blockspam() {
|
|
3800
3802
|
return c();
|
|
3801
3803
|
},
|
|
3802
3804
|
set blockspam(a = void 0) {
|
|
3803
|
-
c(a),
|
|
3805
|
+
c(a), E();
|
|
3804
3806
|
},
|
|
3805
3807
|
get challengeurl() {
|
|
3806
3808
|
return s();
|
|
3807
3809
|
},
|
|
3808
3810
|
set challengeurl(a = void 0) {
|
|
3809
|
-
s(a),
|
|
3811
|
+
s(a), E();
|
|
3810
3812
|
},
|
|
3811
3813
|
get challengejson() {
|
|
3812
3814
|
return u();
|
|
3813
3815
|
},
|
|
3814
3816
|
set challengejson(a = void 0) {
|
|
3815
|
-
u(a),
|
|
3817
|
+
u(a), E();
|
|
3816
3818
|
},
|
|
3817
3819
|
get credentials() {
|
|
3818
3820
|
return d();
|
|
3819
3821
|
},
|
|
3820
3822
|
set credentials(a = void 0) {
|
|
3821
|
-
d(a),
|
|
3823
|
+
d(a), E();
|
|
3822
3824
|
},
|
|
3823
3825
|
get customfetch() {
|
|
3824
3826
|
return m();
|
|
3825
3827
|
},
|
|
3826
3828
|
set customfetch(a = void 0) {
|
|
3827
|
-
m(a),
|
|
3829
|
+
m(a), E();
|
|
3828
3830
|
},
|
|
3829
3831
|
get debug() {
|
|
3830
3832
|
return h();
|
|
3831
3833
|
},
|
|
3832
3834
|
set debug(a = !1) {
|
|
3833
|
-
h(a),
|
|
3835
|
+
h(a), E();
|
|
3834
3836
|
},
|
|
3835
3837
|
get delay() {
|
|
3836
|
-
return
|
|
3838
|
+
return p();
|
|
3837
3839
|
},
|
|
3838
3840
|
set delay(a = 0) {
|
|
3839
|
-
|
|
3841
|
+
p(a), E();
|
|
3840
3842
|
},
|
|
3841
3843
|
get disableautofocus() {
|
|
3842
3844
|
return k();
|
|
3843
3845
|
},
|
|
3844
3846
|
set disableautofocus(a = !1) {
|
|
3845
|
-
k(a),
|
|
3847
|
+
k(a), E();
|
|
3846
3848
|
},
|
|
3847
3849
|
get expire() {
|
|
3848
3850
|
return V();
|
|
3849
3851
|
},
|
|
3850
3852
|
set expire(a = void 0) {
|
|
3851
|
-
V(a),
|
|
3853
|
+
V(a), E();
|
|
3852
3854
|
},
|
|
3853
3855
|
get floating() {
|
|
3854
|
-
return
|
|
3856
|
+
return _();
|
|
3855
3857
|
},
|
|
3856
3858
|
set floating(a = void 0) {
|
|
3857
|
-
|
|
3859
|
+
_(a), E();
|
|
3858
3860
|
},
|
|
3859
3861
|
get floatinganchor() {
|
|
3860
|
-
return
|
|
3862
|
+
return O();
|
|
3861
3863
|
},
|
|
3862
3864
|
set floatinganchor(a = void 0) {
|
|
3863
|
-
|
|
3865
|
+
O(a), E();
|
|
3864
3866
|
},
|
|
3865
3867
|
get floatingoffset() {
|
|
3866
3868
|
return ue();
|
|
3867
3869
|
},
|
|
3868
3870
|
set floatingoffset(a = void 0) {
|
|
3869
|
-
ue(a),
|
|
3871
|
+
ue(a), E();
|
|
3870
3872
|
},
|
|
3871
3873
|
get floatingpersist() {
|
|
3872
3874
|
return J();
|
|
3873
3875
|
},
|
|
3874
3876
|
set floatingpersist(a = !1) {
|
|
3875
|
-
J(a),
|
|
3877
|
+
J(a), E();
|
|
3876
3878
|
},
|
|
3877
3879
|
get hidefooter() {
|
|
3878
3880
|
return te();
|
|
3879
3881
|
},
|
|
3880
3882
|
set hidefooter(a = !1) {
|
|
3881
|
-
te(a),
|
|
3883
|
+
te(a), E();
|
|
3882
3884
|
},
|
|
3883
3885
|
get hidelogo() {
|
|
3884
3886
|
return X();
|
|
3885
3887
|
},
|
|
3886
3888
|
set hidelogo(a = !1) {
|
|
3887
|
-
X(a),
|
|
3889
|
+
X(a), E();
|
|
3888
3890
|
},
|
|
3889
3891
|
get id() {
|
|
3890
3892
|
return st();
|
|
3891
3893
|
},
|
|
3892
3894
|
set id(a = void 0) {
|
|
3893
|
-
st(a),
|
|
3895
|
+
st(a), E();
|
|
3894
3896
|
},
|
|
3895
3897
|
get language() {
|
|
3896
3898
|
return F();
|
|
3897
3899
|
},
|
|
3898
3900
|
set language(a = void 0) {
|
|
3899
|
-
F(a),
|
|
3901
|
+
F(a), E();
|
|
3900
3902
|
},
|
|
3901
3903
|
get name() {
|
|
3902
3904
|
return oe();
|
|
3903
3905
|
},
|
|
3904
3906
|
set name(a = "altcha") {
|
|
3905
|
-
oe(a),
|
|
3907
|
+
oe(a), E();
|
|
3906
3908
|
},
|
|
3907
3909
|
get maxnumber() {
|
|
3908
3910
|
return ye();
|
|
3909
3911
|
},
|
|
3910
3912
|
set maxnumber(a = 1e6) {
|
|
3911
|
-
ye(a),
|
|
3913
|
+
ye(a), E();
|
|
3912
3914
|
},
|
|
3913
3915
|
get mockerror() {
|
|
3914
3916
|
return Ct();
|
|
3915
3917
|
},
|
|
3916
3918
|
set mockerror(a = !1) {
|
|
3917
|
-
Ct(a),
|
|
3919
|
+
Ct(a), E();
|
|
3918
3920
|
},
|
|
3919
3921
|
get obfuscated() {
|
|
3920
3922
|
return De();
|
|
3921
3923
|
},
|
|
3922
3924
|
set obfuscated(a = void 0) {
|
|
3923
|
-
De(a),
|
|
3925
|
+
De(a), E();
|
|
3924
3926
|
},
|
|
3925
3927
|
get overlay() {
|
|
3926
|
-
return
|
|
3928
|
+
return Ae();
|
|
3927
3929
|
},
|
|
3928
3930
|
set overlay(a = void 0) {
|
|
3929
|
-
|
|
3931
|
+
Ae(a), E();
|
|
3930
3932
|
},
|
|
3931
3933
|
get overlaycontent() {
|
|
3932
3934
|
return Et();
|
|
3933
3935
|
},
|
|
3934
3936
|
set overlaycontent(a = void 0) {
|
|
3935
|
-
Et(a),
|
|
3937
|
+
Et(a), E();
|
|
3936
3938
|
},
|
|
3937
3939
|
get plugins() {
|
|
3938
|
-
return
|
|
3940
|
+
return Ut();
|
|
3939
3941
|
},
|
|
3940
3942
|
set plugins(a = void 0) {
|
|
3941
|
-
|
|
3943
|
+
Ut(a), E();
|
|
3942
3944
|
},
|
|
3943
3945
|
get refetchonexpire() {
|
|
3944
3946
|
return Lt();
|
|
3945
3947
|
},
|
|
3946
3948
|
set refetchonexpire(a = !0) {
|
|
3947
|
-
Lt(a),
|
|
3949
|
+
Lt(a), E();
|
|
3948
3950
|
},
|
|
3949
3951
|
get sentinel() {
|
|
3950
3952
|
return Ke();
|
|
3951
3953
|
},
|
|
3952
3954
|
set sentinel(a = void 0) {
|
|
3953
|
-
Ke(a),
|
|
3955
|
+
Ke(a), E();
|
|
3954
3956
|
},
|
|
3955
3957
|
get spamfilter() {
|
|
3956
3958
|
return Le();
|
|
3957
3959
|
},
|
|
3958
3960
|
set spamfilter(a = !1) {
|
|
3959
|
-
Le(a),
|
|
3961
|
+
Le(a), E();
|
|
3960
3962
|
},
|
|
3961
3963
|
get strings() {
|
|
3962
3964
|
return ct();
|
|
3963
3965
|
},
|
|
3964
3966
|
set strings(a = void 0) {
|
|
3965
|
-
ct(a),
|
|
3967
|
+
ct(a), E();
|
|
3966
3968
|
},
|
|
3967
3969
|
get test() {
|
|
3968
3970
|
return ve();
|
|
3969
3971
|
},
|
|
3970
3972
|
set test(a = !1) {
|
|
3971
|
-
ve(a),
|
|
3973
|
+
ve(a), E();
|
|
3972
3974
|
},
|
|
3973
3975
|
get verifyurl() {
|
|
3974
3976
|
return re();
|
|
3975
3977
|
},
|
|
3976
3978
|
set verifyurl(a = void 0) {
|
|
3977
|
-
re(a),
|
|
3979
|
+
re(a), E();
|
|
3978
3980
|
},
|
|
3979
3981
|
get workers() {
|
|
3980
3982
|
return ft();
|
|
3981
3983
|
},
|
|
3982
3984
|
set workers(a = Math.min(16, navigator.hardwareConcurrency || 8)) {
|
|
3983
|
-
ft(a),
|
|
3985
|
+
ft(a), E();
|
|
3984
3986
|
},
|
|
3985
3987
|
get workerurl() {
|
|
3986
3988
|
return xt();
|
|
3987
3989
|
},
|
|
3988
3990
|
set workerurl(a = void 0) {
|
|
3989
|
-
xt(a),
|
|
3991
|
+
xt(a), E();
|
|
3990
3992
|
}
|
|
3991
3993
|
});
|
|
3992
3994
|
return i(), In;
|
|
@@ -4047,7 +4049,7 @@ customElements.define("altcha-widget", rl(
|
|
|
4047
4049
|
],
|
|
4048
4050
|
!1
|
|
4049
4051
|
));
|
|
4050
|
-
const Vs = '@keyframes overlay-slidein{to{opacity:1;top:50%}}@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}.altcha-overlay{--altcha-color-base:#fff;--altcha-color-text:#000;animation:overlay-slidein .5s forwards;display:flex;flex-direction:column;gap:.5rem;left:50%;width:260px;opacity:0;position:fixed;top:45%;transform:translate(-50%,-50%)}.altcha-overlay-backdrop{background:rgba(0,0,0,.5);bottom:0;display:none;left:0;position:fixed;right:0;top:0;z-index:
|
|
4052
|
+
const Vs = '@keyframes overlay-slidein{to{opacity:1;top:50%}}@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}.altcha-overlay{--altcha-color-base:#fff;--altcha-color-text:#000;animation:overlay-slidein .5s forwards;display:flex;flex-direction:column;gap:.5rem;left:50%;width:260px;opacity:0;position:fixed;top:45%;transform:translate(-50%,-50%)}.altcha-overlay-backdrop{background:rgba(0,0,0,.5);bottom:0;display:none;left:0;position:fixed;right:0;top:0;z-index:99999999}.altcha-overlay-close-button{align-self:flex-end;background:0 0;border:0;padding:.25rem;cursor:pointer;color:currentColor;font-size:130%;line-height:1;opacity:.7}@media (max-height:450px){.altcha-overlay{top:10%!important;transform:translate(-50%,0)}}';
|
|
4051
4053
|
function Rs(e, t = "__altcha-css") {
|
|
4052
4054
|
if (!document.getElementById(t)) {
|
|
4053
4055
|
const r = document.createElement("style");
|