altcha 1.5.0 → 1.5.1

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.
@@ -1,48 +1,48 @@
1
- var xi = Object.defineProperty;
1
+ var Ci = Object.defineProperty;
2
2
  var jr = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
- var Ci = (e, t, r) => t in e ? xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
6
- var ae = (e, t, r) => Ci(e, typeof t != "symbol" ? t + "" : t, r), Br = (e, t, r) => t.has(e) || jr("Cannot " + r);
7
- var Z = (e, t, r) => (Br(e, t, "read from private field"), r ? r.call(e) : t.get(e)), jt = (e, t, r) => t.has(e) ? jr("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), Bt = (e, t, r, i) => (Br(e, t, "write to private field"), i ? i.call(e, r) : t.set(e, r), r);
8
- const Ai = "5";
5
+ var Ai = (e, t, r) => t in e ? Ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
6
+ var ae = (e, t, r) => Ai(e, typeof t != "symbol" ? t + "" : t, r), qr = (e, t, r) => t.has(e) || jr("Cannot " + r);
7
+ var Z = (e, t, r) => (qr(e, t, "read from private field"), r ? r.call(e) : t.get(e)), jt = (e, t, r) => t.has(e) ? jr("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), qt = (e, t, r, i) => (qr(e, t, "write to private field"), i ? i.call(e, r) : t.set(e, r), r);
8
+ const Ii = "5";
9
9
  var ln;
10
- typeof window < "u" && ((ln = window.__svelte ?? (window.__svelte = {})).v ?? (ln.v = /* @__PURE__ */ new Set())).add(Ai);
11
- const Ii = 1, Ri = 4, Si = 8, Ti = 16, Ni = 1, Di = 2, Xt = "[", on = "[!", an = "]", Je = {}, G = Symbol(), Li = "http://www.w3.org/1999/xhtml", qr = !1;
10
+ typeof window < "u" && ((ln = window.__svelte ?? (window.__svelte = {})).v ?? (ln.v = /* @__PURE__ */ new Set())).add(Ii);
11
+ const Ri = 1, Si = 4, Ti = 8, Ni = 16, Di = 1, Li = 2, Xt = "[", on = "[!", an = "]", Je = {}, G = Symbol(), Pi = "http://www.w3.org/1999/xhtml", Br = !1;
12
12
  function sn(e) {
13
13
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
14
14
  }
15
- var fn = Array.isArray, Pi = Array.prototype.indexOf, Fi = Array.from, bt = Object.keys, Et = Object.defineProperty, Fe = Object.getOwnPropertyDescriptor, Oi = Object.getOwnPropertyDescriptors, Mi = Object.prototype, Vi = Array.prototype, un = Object.getPrototypeOf, Hr = Object.isExtensible;
15
+ var fn = Array.isArray, Fi = Array.prototype.indexOf, Oi = Array.from, bt = Object.keys, Et = Object.defineProperty, Fe = Object.getOwnPropertyDescriptor, Mi = Object.getOwnPropertyDescriptors, Vi = Object.prototype, Ui = Array.prototype, un = Object.getPrototypeOf, Hr = Object.isExtensible;
16
16
  function cn(e) {
17
17
  for (var t = 0; t < e.length; t++)
18
18
  e[t]();
19
19
  }
20
- const fe = 2, dn = 4, Rt = 8, zt = 16, ye = 32, Me = 64, $t = 128, ee = 256, kt = 512, K = 1024, ve = 2048, Ve = 4096, Ke = 8192, St = 16384, Ui = 32768, Qt = 65536, ji = 1 << 19, vn = 1 << 20, Ht = 1 << 21, ut = Symbol("$state"), hn = Symbol("legacy props"), Bi = Symbol("");
21
- function qi(e) {
20
+ const fe = 2, dn = 4, Rt = 8, zt = 16, ye = 32, Me = 64, $t = 128, ee = 256, kt = 512, K = 1024, ve = 2048, Ve = 4096, Ke = 8192, St = 16384, ji = 32768, Qt = 65536, qi = 1 << 19, vn = 1 << 20, Ht = 1 << 21, ut = Symbol("$state"), hn = Symbol("legacy props"), Bi = Symbol("");
21
+ function Hi(e) {
22
22
  throw new Error("https://svelte.dev/e/effect_in_teardown");
23
23
  }
24
- function Hi() {
24
+ function Yi() {
25
25
  throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
26
26
  }
27
- function Yi(e) {
27
+ function Wi(e) {
28
28
  throw new Error("https://svelte.dev/e/effect_orphan");
29
29
  }
30
- function Wi() {
30
+ function Zi() {
31
31
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
32
32
  }
33
- function Zi() {
33
+ function Gi() {
34
34
  throw new Error("https://svelte.dev/e/hydration_failed");
35
35
  }
36
- function Gi(e) {
36
+ function Ji(e) {
37
37
  throw new Error("https://svelte.dev/e/props_invalid_value");
38
38
  }
39
- function Ji() {
39
+ function Ki() {
40
40
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
41
41
  }
42
- function Ki() {
42
+ function Xi() {
43
43
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
44
44
  }
45
- function Xi() {
45
+ function zi() {
46
46
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
47
47
  }
48
48
  function Tt(e) {
@@ -71,7 +71,7 @@ function X(e) {
71
71
  P = e;
72
72
  }
73
73
  }
74
- function zi() {
74
+ function Qi() {
75
75
  for (var e = 0, t = P; ; ) {
76
76
  if (t.nodeType === 8) {
77
77
  var r = (
@@ -90,12 +90,12 @@ function zi() {
90
90
  t.remove(), t = i;
91
91
  }
92
92
  }
93
- let Qi = !1;
93
+ let el = !1;
94
94
  function xe(e) {
95
95
  if (typeof e != "object" || e === null || ut in e)
96
96
  return e;
97
97
  const t = un(e);
98
- if (t !== Mi && t !== Vi)
98
+ if (t !== Vi && t !== Ui)
99
99
  return e;
100
100
  var r = /* @__PURE__ */ new Map(), i = fn(e), l = /* @__PURE__ */ J(0), o = I, a = (s) => {
101
101
  var f = I;
@@ -111,7 +111,7 @@ function xe(e) {
111
111
  e,
112
112
  {
113
113
  defineProperty(s, f, d) {
114
- (!("value" in d) || d.configurable === !1 || d.enumerable === !1 || d.writable === !1) && Ji();
114
+ (!("value" in d) || d.configurable === !1 || d.enumerable === !1 || d.writable === !1) && Ki();
115
115
  var h = r.get(f);
116
116
  return h === void 0 ? (h = a(() => /* @__PURE__ */ J(d.value)), r.set(f, h)) : L(
117
117
  h,
@@ -124,7 +124,7 @@ function xe(e) {
124
124
  f in s && (r.set(
125
125
  f,
126
126
  a(() => /* @__PURE__ */ J(G))
127
- ), qt(l));
127
+ ), Bt(l));
128
128
  else {
129
129
  if (i && typeof f == "string") {
130
130
  var h = (
@@ -133,7 +133,7 @@ function xe(e) {
133
133
  ), v = Number(f);
134
134
  Number.isInteger(v) && v < h.v && L(h, v);
135
135
  }
136
- L(d, G), qt(l);
136
+ L(d, G), Bt(l);
137
137
  }
138
138
  return !0;
139
139
  },
@@ -203,7 +203,7 @@ function xe(e) {
203
203
  ), j = Number(f);
204
204
  Number.isInteger(j) && j >= O.v && L(O, j + 1);
205
205
  }
206
- qt(l);
206
+ Bt(l);
207
207
  }
208
208
  return !0;
209
209
  },
@@ -218,12 +218,12 @@ function xe(e) {
218
218
  return f;
219
219
  },
220
220
  setPrototypeOf() {
221
- Ki();
221
+ Xi();
222
222
  }
223
223
  }
224
224
  );
225
225
  }
226
- function qt(e, t = 1) {
226
+ function Bt(e, t = 1) {
227
227
  L(e, e.v + t);
228
228
  }
229
229
  var Yr, gn, _n, mn;
@@ -282,17 +282,17 @@ function we(e, t = 1, r = !1) {
282
282
  return Ie(i), /** @type {TemplateNode} */
283
283
  i;
284
284
  }
285
- function el(e) {
285
+ function tl(e) {
286
286
  e.textContent = "";
287
287
  }
288
288
  function wn(e) {
289
289
  return e === this.v;
290
290
  }
291
- function tl(e, t) {
291
+ function rl(e, t) {
292
292
  return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
293
293
  }
294
294
  function pn(e) {
295
- return !tl(e, this.v);
295
+ return !rl(e, this.v);
296
296
  }
297
297
  // @__NO_SIDE_EFFECTS__
298
298
  function tr(e) {
@@ -333,7 +333,7 @@ function yn(e) {
333
333
  );
334
334
  }
335
335
  }
336
- function rl(e) {
336
+ function nl(e) {
337
337
  for (var t = e.parent; t !== null; ) {
338
338
  if ((t.f & fe) === 0)
339
339
  return (
@@ -346,7 +346,7 @@ function rl(e) {
346
346
  }
347
347
  function bn(e) {
348
348
  var t, r = R;
349
- Se(rl(e));
349
+ Se(nl(e));
350
350
  try {
351
351
  yn(e), t = Mn(e);
352
352
  } finally {
@@ -358,10 +358,10 @@ function En(e) {
358
358
  var t = bn(e), r = (Ce || (e.f & ee) !== 0) && e.deps !== null ? Ve : K;
359
359
  ue(e, r), e.equals(t) || (e.v = t, e.wv = Fn());
360
360
  }
361
- function nl(e) {
362
- R === null && I === null && Yi(), I !== null && (I.f & ee) !== 0 && R === null && Hi(), gt && qi();
361
+ function il(e) {
362
+ R === null && I === null && Wi(), I !== null && (I.f & ee) !== 0 && R === null && Yi(), gt && Hi();
363
363
  }
364
- function il(e, t) {
364
+ function ll(e, t) {
365
365
  var r = t.last;
366
366
  r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
367
367
  }
@@ -384,13 +384,13 @@ function Ue(e, t, r, i = !0) {
384
384
  };
385
385
  if (r)
386
386
  try {
387
- ir(o), o.f |= Ui;
387
+ ir(o), o.f |= ji;
388
388
  } catch (f) {
389
389
  throw Re(o), f;
390
390
  }
391
391
  else t !== null && Dt(o);
392
392
  var a = r && o.deps === null && o.first === null && o.nodes_start === null && o.teardown === null && (o.f & (vn | $t)) === 0;
393
- if (!a && i && (l !== null && il(o, l), I !== null && (I.f & fe) !== 0)) {
393
+ if (!a && i && (l !== null && ll(o, l), I !== null && (I.f & fe) !== 0)) {
394
394
  var s = (
395
395
  /** @type {Derived} */
396
396
  I
@@ -404,7 +404,7 @@ function $n(e) {
404
404
  return ue(t, K), t.teardown = e, t;
405
405
  }
406
406
  function Wt(e) {
407
- nl();
407
+ il();
408
408
  var t = R !== null && (R.f & ye) !== 0 && Y !== null && !Y.m;
409
409
  if (t) {
410
410
  var r = (
@@ -421,13 +421,13 @@ function Wt(e) {
421
421
  return i;
422
422
  }
423
423
  }
424
- function ll(e) {
424
+ function ol(e) {
425
425
  const t = Ue(Me, e, !0);
426
426
  return () => {
427
427
  Re(t);
428
428
  };
429
429
  }
430
- function ol(e) {
430
+ function al(e) {
431
431
  const t = Ue(Me, e, !0);
432
432
  return (r = {}) => new Promise((i) => {
433
433
  r.outro ? Gt(t, () => {
@@ -470,7 +470,7 @@ function Cn(e, t = !1) {
470
470
  (r.f & Me) !== 0 ? r.parent = null : Re(r, t), r = i;
471
471
  }
472
472
  }
473
- function al(e) {
473
+ function sl(e) {
474
474
  for (var t = e.first; t !== null; ) {
475
475
  var r = t.next;
476
476
  (t.f & ye) === 0 && Re(t), t = r;
@@ -478,7 +478,7 @@ function al(e) {
478
478
  }
479
479
  function Re(e, t = !0) {
480
480
  var r = !1;
481
- (t || (e.f & ji) !== 0) && e.nodes_start !== null && (An(
481
+ (t || (e.f & qi) !== 0) && e.nodes_start !== null && (An(
482
482
  e.nodes_start,
483
483
  /** @type {TemplateNode} */
484
484
  e.nodes_end
@@ -506,11 +506,11 @@ function In(e) {
506
506
  }
507
507
  function Gt(e, t) {
508
508
  var r = [];
509
- Rn(e, r, !0), sl(r, () => {
509
+ Rn(e, r, !0), fl(r, () => {
510
510
  Re(e), t && t();
511
511
  });
512
512
  }
513
- function sl(e, t) {
513
+ function fl(e, t) {
514
514
  var r = e.length;
515
515
  if (r > 0) {
516
516
  var i = () => --r || t();
@@ -545,7 +545,7 @@ function Sn(e, t) {
545
545
  (o.is_global || t) && o.in();
546
546
  }
547
547
  }
548
- const fl = typeof requestIdleCallback > "u" ? (e) => setTimeout(e, 1) : requestIdleCallback;
548
+ const ul = typeof requestIdleCallback > "u" ? (e) => setTimeout(e, 1) : requestIdleCallback;
549
549
  let dt = [], vt = [];
550
550
  function Tn() {
551
551
  var e = dt;
@@ -558,10 +558,10 @@ function Nn() {
558
558
  function Dn(e) {
559
559
  dt.length === 0 && queueMicrotask(Tn), dt.push(e);
560
560
  }
561
- function ul(e) {
562
- vt.length === 0 && fl(Nn), vt.push(e);
561
+ function cl(e) {
562
+ vt.length === 0 && ul(Nn), vt.push(e);
563
563
  }
564
- function cl() {
564
+ function dl() {
565
565
  dt.length > 0 && Tn(), vt.length > 0 && Nn();
566
566
  }
567
567
  let pt = !1, xt = !1, Ct = null, Oe = !1, gt = !1;
@@ -581,8 +581,8 @@ let H = null;
581
581
  function Ln(e) {
582
582
  I !== null && I.f & Ht && (H === null ? H = [e] : H.push(e));
583
583
  }
584
- let q = null, Q = 0, ie = null;
585
- function dl(e) {
584
+ let B = null, Q = 0, ie = null;
585
+ function vl(e) {
586
586
  ie = e;
587
587
  }
588
588
  let Pn = 1, At = 0, Ce = !1;
@@ -621,7 +621,7 @@ function _t(e) {
621
621
  }
622
622
  return !1;
623
623
  }
624
- function vl(e, t) {
624
+ function hl(e, t) {
625
625
  for (var r = t; r !== null; ) {
626
626
  if ((r.f & $t) !== 0)
627
627
  try {
@@ -643,7 +643,7 @@ function Nt(e, t, r, i) {
643
643
  throw e;
644
644
  return;
645
645
  }
646
- if (r !== null && (pt = !0), vl(e, t), Jr(t))
646
+ if (r !== null && (pt = !0), hl(e, t), Jr(t))
647
647
  throw e;
648
648
  }
649
649
  function On(e, t, r = !0) {
@@ -664,21 +664,21 @@ function On(e, t, r = !0) {
664
664
  }
665
665
  function Mn(e) {
666
666
  var m;
667
- var t = q, r = Q, i = ie, l = I, o = Ce, a = H, s = Y, f = de, d = e.f;
668
- q = /** @type {null | Value[]} */
667
+ var t = B, r = Q, i = ie, l = I, o = Ce, a = H, s = Y, f = de, d = e.f;
668
+ B = /** @type {null | Value[]} */
669
669
  null, Q = 0, ie = null, Ce = (d & ee) !== 0 && (de || !Oe || I === null), I = (d & (ye | Me)) === 0 ? e : null, H = null, Kr(e.ctx), de = !1, At++, e.f |= Ht;
670
670
  try {
671
671
  var h = (
672
672
  /** @type {Function} */
673
673
  (0, e.fn)()
674
674
  ), v = e.deps;
675
- if (q !== null) {
675
+ if (B !== null) {
676
676
  var g;
677
677
  if (It(e, Q), v !== null && Q > 0)
678
- for (v.length = Q + q.length, g = 0; g < q.length; g++)
679
- v[Q + g] = q[g];
678
+ for (v.length = Q + B.length, g = 0; g < B.length; g++)
679
+ v[Q + g] = B[g];
680
680
  else
681
- e.deps = v = q;
681
+ e.deps = v = B;
682
682
  if (!Ce)
683
683
  for (g = Q; g < v.length; g++)
684
684
  ((m = v[g]).reactions ?? (m.reactions = [])).push(e);
@@ -694,13 +694,13 @@ function Mn(e) {
694
694
  return l !== null && l !== e && (At++, ie !== null && (i === null ? i = ie : i.push(.../** @type {Source[]} */
695
695
  ie))), h;
696
696
  } finally {
697
- q = t, Q = r, ie = i, I = l, Ce = o, H = a, Kr(s), de = f, e.f ^= Ht;
697
+ B = t, Q = r, ie = i, I = l, Ce = o, H = a, Kr(s), de = f, e.f ^= Ht;
698
698
  }
699
699
  }
700
- function hl(e, t) {
700
+ function gl(e, t) {
701
701
  let r = t.reactions;
702
702
  if (r !== null) {
703
- var i = Pi.call(r, e);
703
+ var i = Fi.call(r, e);
704
704
  if (i !== -1) {
705
705
  var l = r.length - 1;
706
706
  l === 0 ? r = t.reactions = null : (r[i] = r[l], r.pop());
@@ -709,7 +709,7 @@ function hl(e, t) {
709
709
  r === null && (t.f & fe) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
710
710
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
711
711
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
712
- (q === null || !q.includes(t)) && (ue(t, Ve), (t.f & (ee | kt)) === 0 && (t.f ^= kt), yn(
712
+ (B === null || !B.includes(t)) && (ue(t, Ve), (t.f & (ee | kt)) === 0 && (t.f ^= kt), yn(
713
713
  /** @type {Derived} **/
714
714
  t
715
715
  ), It(
@@ -722,7 +722,7 @@ function It(e, t) {
722
722
  var r = e.deps;
723
723
  if (r !== null)
724
724
  for (var i = t; i < r.length; i++)
725
- hl(e, r[i]);
725
+ gl(e, r[i]);
726
726
  }
727
727
  function ir(e) {
728
728
  var t = e.f;
@@ -731,11 +731,11 @@ function ir(e) {
731
731
  var r = R, i = Y, l = Oe;
732
732
  R = e, Oe = !0;
733
733
  try {
734
- (t & zt) !== 0 ? al(e) : Cn(e), xn(e);
734
+ (t & zt) !== 0 ? sl(e) : Cn(e), xn(e);
735
735
  var o = Mn(e);
736
736
  e.teardown = typeof o == "function" ? o : null, e.wv = Pn;
737
737
  var a = e.deps, s;
738
- qr && Qi && e.f & ve;
738
+ Br && el && e.f & ve;
739
739
  } catch (f) {
740
740
  Nt(f, e, r, i || e.ctx);
741
741
  } finally {
@@ -743,9 +743,9 @@ function ir(e) {
743
743
  }
744
744
  }
745
745
  }
746
- function gl() {
746
+ function _l() {
747
747
  try {
748
- Wi();
748
+ Zi();
749
749
  } catch (e) {
750
750
  if (Ct !== null)
751
751
  Nt(e, Ct, null);
@@ -758,12 +758,12 @@ function Vn() {
758
758
  try {
759
759
  var t = 0;
760
760
  for (Oe = !0; ct.length > 0; ) {
761
- t++ > 1e3 && gl();
761
+ t++ > 1e3 && _l();
762
762
  var r = ct, i = r.length;
763
763
  ct = [];
764
764
  for (var l = 0; l < i; l++) {
765
- var o = ml(r[l]);
766
- _l(o);
765
+ var o = wl(r[l]);
766
+ ml(o);
767
767
  }
768
768
  ht.clear();
769
769
  }
@@ -771,7 +771,7 @@ function Vn() {
771
771
  xt = !1, Oe = e, Ct = null;
772
772
  }
773
773
  }
774
- function _l(e) {
774
+ function ml(e) {
775
775
  var t = e.length;
776
776
  if (t !== 0)
777
777
  for (var r = 0; r < t; r++) {
@@ -796,7 +796,7 @@ function Dt(e) {
796
796
  }
797
797
  ct.push(t);
798
798
  }
799
- function ml(e) {
799
+ function wl(e) {
800
800
  for (var t = [], r = e; r !== null; ) {
801
801
  var i = r.f, l = (i & (ye | Me)) !== 0, o = l && (i & K) !== 0;
802
802
  if (!o && (i & Ke) === 0) {
@@ -824,7 +824,7 @@ function ml(e) {
824
824
  }
825
825
  function k(e) {
826
826
  for (var t; ; ) {
827
- if (cl(), ct.length === 0)
827
+ if (dl(), ct.length === 0)
828
828
  return (
829
829
  /** @type {T} */
830
830
  t
@@ -832,7 +832,7 @@ function k(e) {
832
832
  xt = !0, Vn();
833
833
  }
834
834
  }
835
- async function wl() {
835
+ async function pl() {
836
836
  await Promise.resolve(), k();
837
837
  }
838
838
  function c(e) {
@@ -840,7 +840,7 @@ function c(e) {
840
840
  if (I !== null && !de) {
841
841
  if (!(H != null && H.includes(e))) {
842
842
  var i = I.deps;
843
- e.rv < At && (e.rv = At, q === null && i !== null && i[Q] === e ? Q++ : q === null ? q = [e] : (!Ce || !q.includes(e)) && q.push(e));
843
+ e.rv < At && (e.rv = At, B === null && i !== null && i[Q] === e ? Q++ : B === null ? B = [e] : (!Ce || !B.includes(e)) && B.push(e));
844
844
  }
845
845
  } else if (r && /** @type {Derived} */
846
846
  e.deps === null && /** @type {Derived} */
@@ -862,9 +862,9 @@ function ze(e) {
862
862
  de = t;
863
863
  }
864
864
  }
865
- const pl = -7169;
865
+ const yl = -7169;
866
866
  function ue(e, t) {
867
- e.f = e.f & pl | t;
867
+ e.f = e.f & yl | t;
868
868
  }
869
869
  const ht = /* @__PURE__ */ new Map();
870
870
  function Un(e, t) {
@@ -890,26 +890,26 @@ function jn(e, t = !1) {
890
890
  return t || (r.equals = pn), r;
891
891
  }
892
892
  function L(e, t, r = !1) {
893
- I !== null && !de && Yn() && (I.f & (fe | zt)) !== 0 && !(H != null && H.includes(e)) && Xi();
893
+ I !== null && !de && Yn() && (I.f & (fe | zt)) !== 0 && !(H != null && H.includes(e)) && zi();
894
894
  let i = r ? xe(t) : t;
895
- return yl(e, i);
895
+ return bl(e, i);
896
896
  }
897
- function yl(e, t) {
897
+ function bl(e, t) {
898
898
  if (!e.equals(t)) {
899
899
  var r = e.v;
900
900
  gt ? ht.set(e, t) : ht.set(e, r), e.v = t, (e.f & fe) !== 0 && ((e.f & ve) !== 0 && bn(
901
901
  /** @type {Derived} */
902
902
  e
903
- ), ue(e, (e.f & ee) === 0 ? K : Ve)), e.wv = Fn(), Bn(e, ve), R !== null && (R.f & K) !== 0 && (R.f & (ye | Me)) === 0 && (ie === null ? dl([e]) : ie.push(e));
903
+ ), ue(e, (e.f & ee) === 0 ? K : Ve)), e.wv = Fn(), qn(e, ve), R !== null && (R.f & K) !== 0 && (R.f & (ye | Me)) === 0 && (ie === null ? vl([e]) : ie.push(e));
904
904
  }
905
905
  return t;
906
906
  }
907
- function Bn(e, t) {
907
+ function qn(e, t) {
908
908
  var r = e.reactions;
909
909
  if (r !== null)
910
910
  for (var i = r.length, l = 0; l < i; l++) {
911
911
  var o = r[l], a = o.f;
912
- (a & ve) === 0 && (ue(o, t), (a & (K | ee)) !== 0 && ((a & fe) !== 0 ? Bn(
912
+ (a & ve) === 0 && (ue(o, t), (a & (K | ee)) !== 0 && ((a & fe) !== 0 ? qn(
913
913
  /** @type {Derived} */
914
914
  o,
915
915
  Ve
@@ -923,7 +923,7 @@ let Y = null;
923
923
  function Kr(e) {
924
924
  Y = e;
925
925
  }
926
- function qn(e, t = !1, r) {
926
+ function Bn(e, t = !1, r) {
927
927
  var i = Y = {
928
928
  p: Y,
929
929
  c: null,
@@ -963,9 +963,9 @@ function Hn(e) {
963
963
  function Yn() {
964
964
  return !0;
965
965
  }
966
- const bl = ["touchstart", "touchmove"];
967
- function El(e) {
968
- return bl.includes(e);
966
+ const El = ["touchstart", "touchmove"];
967
+ function $l(e) {
968
+ return El.includes(e);
969
969
  }
970
970
  let Xr = !1;
971
971
  function Wn() {
@@ -996,7 +996,7 @@ function Zn(e) {
996
996
  he(t), Se(r);
997
997
  }
998
998
  }
999
- function $l(e, t, r, i = r) {
999
+ function kl(e, t, r, i = r) {
1000
1000
  e.addEventListener(t, () => Zn(r));
1001
1001
  const l = e.__on_r;
1002
1002
  l ? e.__on_r = () => {
@@ -1004,7 +1004,7 @@ function $l(e, t, r, i = r) {
1004
1004
  } : e.__on_r = () => i(!0), Wn();
1005
1005
  }
1006
1006
  const Gn = /* @__PURE__ */ new Set(), Jt = /* @__PURE__ */ new Set();
1007
- function kl(e, t, r, i = {}) {
1007
+ function xl(e, t, r, i = {}) {
1008
1008
  function l(o) {
1009
1009
  if (i.capture || ft.call(t, o), !o.cancelBubble)
1010
1010
  return Zn(() => r == null ? void 0 : r.call(this, o));
@@ -1013,13 +1013,13 @@ function kl(e, t, r, i = {}) {
1013
1013
  t.addEventListener(e, l, i);
1014
1014
  }) : t.addEventListener(e, l, i), l;
1015
1015
  }
1016
- function xl(e, t, r, i, l) {
1017
- var o = { capture: i, passive: l }, a = kl(e, t, r, o);
1016
+ function Cl(e, t, r, i, l) {
1017
+ var o = { capture: i, passive: l }, a = xl(e, t, r, o);
1018
1018
  (t === document.body || t === window || t === document) && $n(() => {
1019
1019
  t.removeEventListener(e, a, o);
1020
1020
  });
1021
1021
  }
1022
- function Cl(e) {
1022
+ function Al(e) {
1023
1023
  for (var t = 0; t < e.length; t++)
1024
1024
  Gn.add(e[t]);
1025
1025
  for (var r of Jt)
@@ -1103,7 +1103,7 @@ function Ae(e, t) {
1103
1103
  }
1104
1104
  // @__NO_SIDE_EFFECTS__
1105
1105
  function ge(e, t) {
1106
- var r = (t & Ni) !== 0, i = (t & Di) !== 0, l, o = !e.startsWith("<!>");
1106
+ var r = (t & Di) !== 0, i = (t & Li) !== 0, l, o = !e.startsWith("<!>");
1107
1107
  return () => {
1108
1108
  if (D)
1109
1109
  return Ae(P, null), P;
@@ -1128,7 +1128,7 @@ function ge(e, t) {
1128
1128
  };
1129
1129
  }
1130
1130
  // @__NO_SIDE_EFFECTS__
1131
- function Al(e, t, r = "svg") {
1131
+ function Il(e, t, r = "svg") {
1132
1132
  var i = !e.startsWith("<!>"), l = `<${r}>${i ? e : "<!>" + e}</${r}>`, o;
1133
1133
  return () => {
1134
1134
  if (D)
@@ -1164,7 +1164,7 @@ function ne(e, t) {
1164
1164
  function Jn(e, t) {
1165
1165
  return Kn(e, t);
1166
1166
  }
1167
- function Il(e, t) {
1167
+ function Rl(e, t) {
1168
1168
  Yt(), t.intro = t.intro ?? !1;
1169
1169
  const r = t.target, i = D, l = P;
1170
1170
  try {
@@ -1189,7 +1189,7 @@ function Il(e, t) {
1189
1189
  a;
1190
1190
  } catch (a) {
1191
1191
  if (a === Je)
1192
- return t.recover === !1 && Zi(), Yt(), el(r), Ge(!1), Jn(e, t);
1192
+ return t.recover === !1 && Gi(), Yt(), tl(r), Ge(!1), Jn(e, t);
1193
1193
  throw a;
1194
1194
  } finally {
1195
1195
  Ge(i), Ie(l);
@@ -1203,19 +1203,19 @@ function Kn(e, { target: t, anchor: r, props: i = {}, events: l, context: o, int
1203
1203
  var m = v[g];
1204
1204
  if (!s.has(m)) {
1205
1205
  s.add(m);
1206
- var x = El(m);
1206
+ var x = $l(m);
1207
1207
  t.addEventListener(m, ft, { passive: x });
1208
1208
  var N = We.get(m);
1209
1209
  N === void 0 ? (document.addEventListener(m, ft, { passive: x }), We.set(m, 1)) : We.set(m, N + 1);
1210
1210
  }
1211
1211
  }
1212
1212
  };
1213
- f(Fi(Gn)), Jt.add(f);
1214
- var d = void 0, h = ol(() => {
1213
+ f(Oi(Gn)), Jt.add(f);
1214
+ var d = void 0, h = al(() => {
1215
1215
  var v = r ?? t.appendChild(er());
1216
1216
  return Zt(() => {
1217
1217
  if (o) {
1218
- qn({});
1218
+ Bn({});
1219
1219
  var g = (
1220
1220
  /** @type {ComponentContext} */
1221
1221
  Y
@@ -1243,7 +1243,7 @@ function Kn(e, { target: t, anchor: r, props: i = {}, events: l, context: o, int
1243
1243
  return Kt.set(d, h), d;
1244
1244
  }
1245
1245
  let Kt = /* @__PURE__ */ new WeakMap();
1246
- function Rl(e, t) {
1246
+ function Sl(e, t) {
1247
1247
  const r = Kt.get(e);
1248
1248
  return r ? (Kt.delete(e), r(t)) : Promise.resolve();
1249
1249
  }
@@ -1264,7 +1264,7 @@ function ke(e, t, [r, i] = [0, 0]) {
1264
1264
  O === Xt ? i = 0 : O === on ? i = 1 / 0 : (i = parseInt(O.substring(1)), i !== i && (i = s ? 1 / 0 : -1));
1265
1265
  }
1266
1266
  const N = i > r;
1267
- !!s === N && (l = zi(), Ie(l), Ge(!1), x = !0, i = -1);
1267
+ !!s === N && (l = Qi(), Ie(l), Ge(!1), x = !0, i = -1);
1268
1268
  }
1269
1269
  s ? (o ? Zr(o) : m && (o = Zt(() => m(l))), a && Gt(a, () => {
1270
1270
  a = null;
@@ -1323,7 +1323,7 @@ function Ze(e, t, r = !1, i = !1, l = !1) {
1323
1323
  }
1324
1324
  });
1325
1325
  }
1326
- function Sl(e, t, r, i, l) {
1326
+ function Tl(e, t, r, i, l) {
1327
1327
  var s;
1328
1328
  D && Xe();
1329
1329
  var o = (s = t.$$slots) == null ? void 0 : s[r], a = !1;
@@ -1331,7 +1331,7 @@ function Sl(e, t, r, i, l) {
1331
1331
  }
1332
1332
  const zr = [...`
1333
1333
  \r\f \v\uFEFF`];
1334
- function Tl(e, t, r) {
1334
+ function Nl(e, t, r) {
1335
1335
  var i = "" + e;
1336
1336
  if (r) {
1337
1337
  for (var l in r)
@@ -1345,10 +1345,10 @@ function Tl(e, t, r) {
1345
1345
  }
1346
1346
  return i === "" ? null : i;
1347
1347
  }
1348
- function Nl(e, t, r, i, l, o) {
1348
+ function Dl(e, t, r, i, l, o) {
1349
1349
  var a = e.__className;
1350
1350
  if (D || a !== r || a === void 0) {
1351
- var s = Tl(r, i, o);
1351
+ var s = Nl(r, i, o);
1352
1352
  (!D || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : e.className = s), e.__className = r;
1353
1353
  } else if (o && l !== o)
1354
1354
  for (var f in o) {
@@ -1357,7 +1357,7 @@ function Nl(e, t, r, i, l, o) {
1357
1357
  }
1358
1358
  return o;
1359
1359
  }
1360
- const Dl = Symbol("is custom element"), Ll = Symbol("is html");
1360
+ const Ll = Symbol("is custom element"), Pl = Symbol("is html");
1361
1361
  function Qr(e) {
1362
1362
  if (D) {
1363
1363
  var t = !1, r = () => {
@@ -1372,10 +1372,10 @@ function Qr(e) {
1372
1372
  }
1373
1373
  }
1374
1374
  };
1375
- e.__on_r = r, ul(r), Wn();
1375
+ e.__on_r = r, cl(r), Wn();
1376
1376
  }
1377
1377
  }
1378
- function Pl(e, t) {
1378
+ function Fl(e, t) {
1379
1379
  var r = Xn(e);
1380
1380
  r.value === (r.value = // treat null and undefined the same for the initial value
1381
1381
  t ?? void 0) || // @ts-expect-error
@@ -1384,33 +1384,33 @@ function Pl(e, t) {
1384
1384
  }
1385
1385
  function se(e, t, r, i) {
1386
1386
  var l = Xn(e);
1387
- D && (l[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === "LINK") || l[t] !== (l[t] = r) && (t === "loading" && (e[Bi] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Fl(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
1387
+ D && (l[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === "LINK") || l[t] !== (l[t] = r) && (t === "loading" && (e[Bi] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Ol(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
1388
1388
  }
1389
1389
  function Xn(e) {
1390
1390
  return (
1391
1391
  /** @type {Record<string | symbol, unknown>} **/
1392
1392
  // @ts-expect-error
1393
1393
  e.__attributes ?? (e.__attributes = {
1394
- [Dl]: e.nodeName.includes("-"),
1395
- [Ll]: e.namespaceURI === Li
1394
+ [Ll]: e.nodeName.includes("-"),
1395
+ [Pl]: e.namespaceURI === Pi
1396
1396
  })
1397
1397
  );
1398
1398
  }
1399
1399
  var en = /* @__PURE__ */ new Map();
1400
- function Fl(e) {
1400
+ function Ol(e) {
1401
1401
  var t = en.get(e.nodeName);
1402
1402
  if (t) return t;
1403
1403
  en.set(e.nodeName, t = []);
1404
1404
  for (var r, i = e, l = Element.prototype; l !== i; ) {
1405
- r = Oi(i);
1405
+ r = Mi(i);
1406
1406
  for (var o in r)
1407
1407
  r[o].set && t.push(o);
1408
1408
  i = un(i);
1409
1409
  }
1410
1410
  return t;
1411
1411
  }
1412
- function Ol(e, t, r = t) {
1413
- $l(e, "change", (i) => {
1412
+ function Ml(e, t, r = t) {
1413
+ kl(e, "change", (i) => {
1414
1414
  var l = i ? e.defaultChecked : e.checked;
1415
1415
  r(l);
1416
1416
  }), // If we are hydrating and the value has since changed,
@@ -1447,11 +1447,11 @@ function zn(e) {
1447
1447
  );
1448
1448
  });
1449
1449
  }
1450
- function Ml(e) {
1450
+ function Vl(e) {
1451
1451
  Y === null && sn(), zn(() => () => ze(e));
1452
1452
  }
1453
1453
  let wt = !1;
1454
- function Vl(e) {
1454
+ function Ul(e) {
1455
1455
  var t = wt;
1456
1456
  try {
1457
1457
  return wt = !1, [e(), wt];
@@ -1465,8 +1465,8 @@ function nn(e) {
1465
1465
  }
1466
1466
  function A(e, t, r, i) {
1467
1467
  var Ne;
1468
- var l = (r & Ii) !== 0, o = !0, a = (r & Si) !== 0, s = (r & Ti) !== 0, f = !1, d;
1469
- a ? [d, f] = Vl(() => (
1468
+ var l = (r & Ri) !== 0, o = !0, a = (r & Ti) !== 0, s = (r & Ni) !== 0, f = !1, d;
1469
+ a ? [d, f] = Ul(() => (
1470
1470
  /** @type {V} */
1471
1471
  e[t]
1472
1472
  )) : d = /** @type {V} */
@@ -1479,7 +1479,7 @@ function A(e, t, r, i) {
1479
1479
  i
1480
1480
  ) : g = /** @type {V} */
1481
1481
  i), g);
1482
- d === void 0 && i !== void 0 && (v && o && Gi(), d = N(), v && v(d));
1482
+ d === void 0 && i !== void 0 && (v && o && Ji(), d = N(), v && v(d));
1483
1483
  var O;
1484
1484
  if (O = () => {
1485
1485
  var F = (
@@ -1487,7 +1487,7 @@ function A(e, t, r, i) {
1487
1487
  e[t]
1488
1488
  );
1489
1489
  return F === void 0 ? N() : (m = !0, x = !1, F);
1490
- }, (r & Ri) === 0)
1490
+ }, (r & Si) === 0)
1491
1491
  return O;
1492
1492
  if (v) {
1493
1493
  var j = e.$$legacy;
@@ -1512,11 +1512,11 @@ function A(e, t, r, i) {
1512
1512
  return nn(M) ? M.v : c(M);
1513
1513
  };
1514
1514
  }
1515
- function Ul(e) {
1516
- return new jl(e);
1515
+ function jl(e) {
1516
+ return new ql(e);
1517
1517
  }
1518
1518
  var pe, le;
1519
- class jl {
1519
+ class ql {
1520
1520
  /**
1521
1521
  * @param {ComponentConstructorOptions & {
1522
1522
  * component: any;
@@ -1546,14 +1546,14 @@ class jl {
1546
1546
  }
1547
1547
  }
1548
1548
  );
1549
- Bt(this, le, (t.hydrate ? Il : Jn)(t.component, {
1549
+ qt(this, le, (t.hydrate ? Rl : Jn)(t.component, {
1550
1550
  target: t.target,
1551
1551
  anchor: t.anchor,
1552
1552
  props: l,
1553
1553
  context: t.context,
1554
1554
  intro: t.intro ?? !1,
1555
1555
  recover: t.recover
1556
- })), (!((o = t == null ? void 0 : t.props) != null && o.$$host) || t.sync === !1) && k(), Bt(this, pe, l.$$events);
1556
+ })), (!((o = t == null ? void 0 : t.props) != null && o.$$host) || t.sync === !1) && k(), qt(this, pe, l.$$events);
1557
1557
  for (const a of Object.keys(Z(this, le)))
1558
1558
  a === "$set" || a === "$destroy" || a === "$on" || Et(this, a, {
1559
1559
  get() {
@@ -1569,7 +1569,7 @@ class jl {
1569
1569
  (a) => {
1570
1570
  Object.assign(l, a);
1571
1571
  }, Z(this, le).$destroy = () => {
1572
- Rl(Z(this, le));
1572
+ Sl(Z(this, le));
1573
1573
  };
1574
1574
  }
1575
1575
  /** @param {Record<string, any>} props */
@@ -1669,7 +1669,7 @@ typeof HTMLElement == "function" && (Qn = class extends HTMLElement {
1669
1669
  }
1670
1670
  for (const l in this.$$p_d)
1671
1671
  !(l in this.$$d) && this[l] !== void 0 && (this.$$d[l] = this[l], delete this[l]);
1672
- this.$$c = Ul({
1672
+ this.$$c = jl({
1673
1673
  component: this.$$ctor,
1674
1674
  target: this.shadowRoot || this,
1675
1675
  props: {
@@ -1677,7 +1677,7 @@ typeof HTMLElement == "function" && (Qn = class extends HTMLElement {
1677
1677
  $$slots: r,
1678
1678
  $$host: this
1679
1679
  }
1680
- }), this.$$me = ll(() => {
1680
+ }), this.$$me = ol(() => {
1681
1681
  nr(() => {
1682
1682
  var l;
1683
1683
  this.$$r = !0;
@@ -1768,7 +1768,7 @@ function Bl(e) {
1768
1768
  ] = !0;
1769
1769
  }), t;
1770
1770
  }
1771
- function ql(e, t, r, i, l, o) {
1771
+ function Hl(e, t, r, i, l, o) {
1772
1772
  let a = class extends Qn {
1773
1773
  constructor() {
1774
1774
  super(e, r, l), this.$$p_d = t;
@@ -1805,10 +1805,10 @@ function ql(e, t, r, i, l, o) {
1805
1805
  a, a;
1806
1806
  }
1807
1807
  const ei = new TextEncoder();
1808
- function Hl(e) {
1808
+ function Yl(e) {
1809
1809
  return [...new Uint8Array(e)].map((t) => t.toString(16).padStart(2, "0")).join("");
1810
1810
  }
1811
- async function Yl(e, t = "SHA-256", r = 1e5) {
1811
+ async function Wl(e, t = "SHA-256", r = 1e5) {
1812
1812
  const i = Date.now().toString(16);
1813
1813
  e || (e = Math.round(Math.random() * r));
1814
1814
  const l = await ti(i, e, t);
@@ -1822,14 +1822,14 @@ async function Yl(e, t = "SHA-256", r = 1e5) {
1822
1822
  async function ti(e, t, r) {
1823
1823
  if (typeof crypto > "u" || !("subtle" in crypto) || !("digest" in crypto.subtle))
1824
1824
  throw new Error("Web Crypto is not available. Secure context is required (https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).");
1825
- return Hl(
1825
+ return Yl(
1826
1826
  await crypto.subtle.digest(
1827
1827
  r.toUpperCase(),
1828
1828
  ei.encode(e + t)
1829
1829
  )
1830
1830
  );
1831
1831
  }
1832
- function Wl(e, t, r = "SHA-256", i = 1e6, l = 0) {
1832
+ function Zl(e, t, r = "SHA-256", i = 1e6, l = 0) {
1833
1833
  const o = new AbortController(), a = Date.now();
1834
1834
  return {
1835
1835
  promise: (async () => {
@@ -1847,25 +1847,25 @@ function Wl(e, t, r = "SHA-256", i = 1e6, l = 0) {
1847
1847
  controller: o
1848
1848
  };
1849
1849
  }
1850
- function Zl() {
1850
+ function Gl() {
1851
1851
  try {
1852
1852
  return Intl.DateTimeFormat().resolvedOptions().timeZone;
1853
1853
  } catch {
1854
1854
  }
1855
1855
  }
1856
- function Gl(e) {
1856
+ function Jl(e) {
1857
1857
  const t = atob(e), r = new Uint8Array(t.length);
1858
1858
  for (let i = 0; i < t.length; i++)
1859
1859
  r[i] = t.charCodeAt(i);
1860
1860
  return r;
1861
1861
  }
1862
- function Jl(e, t = 12) {
1862
+ function Kl(e, t = 12) {
1863
1863
  const r = new Uint8Array(t);
1864
1864
  for (let i = 0; i < t; i++)
1865
1865
  r[i] = e % 256, e = Math.floor(e / 256);
1866
1866
  return r;
1867
1867
  }
1868
- async function Kl(e, t = "", r = 1e6, i = 0) {
1868
+ async function Xl(e, t = "", r = 1e6, i = 0) {
1869
1869
  const l = "AES-GCM", o = new AbortController(), a = Date.now(), s = async () => {
1870
1870
  for (let h = i; h <= r; h += 1) {
1871
1871
  if (o.signal.aborted || !f || !d)
@@ -1874,7 +1874,7 @@ async function Kl(e, t = "", r = 1e6, i = 0) {
1874
1874
  const v = await crypto.subtle.decrypt(
1875
1875
  {
1876
1876
  name: l,
1877
- iv: Jl(h)
1877
+ iv: Kl(h)
1878
1878
  },
1879
1879
  f,
1880
1880
  d
@@ -1891,7 +1891,7 @@ async function Kl(e, t = "", r = 1e6, i = 0) {
1891
1891
  };
1892
1892
  let f = null, d = null;
1893
1893
  try {
1894
- d = Gl(e);
1894
+ d = Jl(e);
1895
1895
  const h = await crypto.subtle.digest(
1896
1896
  "SHA-256",
1897
1897
  ei.encode(t)
@@ -1914,10 +1914,10 @@ async function Kl(e, t = "", r = 1e6, i = 0) {
1914
1914
  controller: o
1915
1915
  };
1916
1916
  }
1917
- var y = /* @__PURE__ */ ((e) => (e.ERROR = "error", e.VERIFIED = "verified", e.VERIFYING = "verifying", e.UNVERIFIED = "unverified", e.EXPIRED = "expired", e))(y || {}), Xl = /* @__PURE__ */ Al('<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><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" class="altcha-spinner"></path></svg>'), zl = /* @__PURE__ */ ge('<span role="status" aria-live="polite"><!></span> <input type="hidden">', 1), Ql = /* @__PURE__ */ ge('<span role="status" aria-live="polite"><!></span>'), eo = /* @__PURE__ */ ge("<label><!></label>"), to = /* @__PURE__ */ ge('<div><a target="_blank" class="altcha-logo"><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>'), ro = /* @__PURE__ */ ge("<div><!></div>"), no = /* @__PURE__ */ ge("<div><!></div>"), io = /* @__PURE__ */ ge('<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"><path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"></path></svg> <!></div>'), lo = /* @__PURE__ */ ge('<div class="altcha-footer"><div><!></div></div>'), oo = /* @__PURE__ */ ge('<div class="altcha-anchor-arrow"></div>'), ao = /* @__PURE__ */ ge('<!> <div class="altcha"><div class="altcha-main"><!> <div><input type="checkbox"></div> <div class="altcha-label"><!></div> <!></div> <!> <!> <!></div>', 1);
1918
- function so(e, t) {
1917
+ var y = /* @__PURE__ */ ((e) => (e.ERROR = "error", e.VERIFIED = "verified", e.VERIFYING = "verifying", e.UNVERIFIED = "unverified", e.EXPIRED = "expired", e))(y || {}), zl = /* @__PURE__ */ Il('<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><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" class="altcha-spinner"></path></svg>'), Ql = /* @__PURE__ */ ge('<span role="status" aria-live="polite"><!></span> <input type="hidden">', 1), eo = /* @__PURE__ */ ge('<span role="status" aria-live="polite"><!></span>'), to = /* @__PURE__ */ ge("<label><!></label>"), ro = /* @__PURE__ */ ge('<div><a target="_blank" class="altcha-logo"><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>'), no = /* @__PURE__ */ ge("<div><!></div>"), io = /* @__PURE__ */ ge("<div><!></div>"), lo = /* @__PURE__ */ ge('<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"><path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"></path></svg> <!></div>'), oo = /* @__PURE__ */ ge('<div class="altcha-footer"><div><!></div></div>'), ao = /* @__PURE__ */ ge('<div class="altcha-anchor-arrow"></div>'), so = /* @__PURE__ */ ge('<!> <div class="altcha"><div class="altcha-main"><!> <div><input type="checkbox"></div> <div class="altcha-label"><!></div> <!></div> <!> <!> <!></div>', 1);
1918
+ function fo(e, t) {
1919
1919
  var Mr, Vr;
1920
- qn(t, !0);
1920
+ Bn(t, !0);
1921
1921
  let r = A(t, "auto", 7, void 0), i = A(t, "blockspam", 7, void 0), l = A(t, "challengeurl", 7, void 0), o = A(t, "challengejson", 7, void 0), a = A(t, "customfetch", 7, void 0), s = A(t, "debug", 7, !1), f = A(t, "delay", 7, 0), d = A(t, "expire", 7, void 0), h = A(t, "floating", 7, void 0), v = A(t, "floatinganchor", 7, void 0), g = A(t, "floatingoffset", 7, void 0), m = A(t, "floatingpersist", 7, !1), x = A(t, "hidefooter", 7, !1), N = A(t, "hidelogo", 7, !1), O = A(t, "id", 7, void 0), j = A(t, "name", 7, "altcha"), V = A(t, "maxnumber", 7, 1e6), W = A(t, "mockerror", 7, !1), M = A(t, "obfuscated", 7, void 0), Ne = A(t, "plugins", 7, void 0), F = A(t, "refetchonexpire", 7, !0), U = A(t, "spamfilter", 7, !1), _e = A(t, "strings", 7, void 0), te = A(t, "test", 7, !1), be = A(t, "verifyurl", 7, void 0), je = A(t, "workers", 23, () => Math.min(16, navigator.hardwareConcurrency || 8)), Qe = A(t, "workerurl", 7, void 0);
1922
1922
  const or = ["SHA-256", "SHA-384", "SHA-512"], ar = "Visit Altcha.org", sr = "https://altcha.org/", et = (n, u) => {
1923
1923
  t.$$host.dispatchEvent(new CustomEvent(n, { detail: u }));
@@ -1938,16 +1938,16 @@ function so(e, t) {
1938
1938
  ...c(ur)
1939
1939
  };
1940
1940
  }), cr = /* @__PURE__ */ st(() => `${O() || j()}_checkbox`);
1941
- let Be = /* @__PURE__ */ J(!1), C = /* @__PURE__ */ J(xe(y.UNVERIFIED)), B = /* @__PURE__ */ J(void 0), tt = /* @__PURE__ */ J(null), qe = null, w = null, He = /* @__PURE__ */ J(null), ce = null, Ee = [], De = /* @__PURE__ */ J(null);
1941
+ let qe = /* @__PURE__ */ J(!1), C = /* @__PURE__ */ J(xe(y.UNVERIFIED)), q = /* @__PURE__ */ J(void 0), tt = /* @__PURE__ */ J(null), Be = null, w = null, He = /* @__PURE__ */ J(null), ce = null, Ee = [], De = /* @__PURE__ */ J(null);
1942
1942
  Wt(() => {
1943
1943
  fi(c(He));
1944
1944
  }), Wt(() => {
1945
1945
  ui(c(C));
1946
- }), Ml(() => {
1946
+ }), Vl(() => {
1947
1947
  ri(), w && (w.removeEventListener("submit", wr), w.removeEventListener("reset", pr), w.removeEventListener("focusin", mr), w = null), ce && (clearTimeout(ce), ce = null), document.removeEventListener("click", gr), document.removeEventListener("scroll", _r), window.removeEventListener("resize", br);
1948
1948
  }), zn(() => {
1949
1949
  var n;
1950
- S("mounted", "1.5.0"), S("workers", je()), ai(), S("plugins", Ee.length ? Ee.map((u) => u.constructor.pluginName).join(", ") : "none"), te() && S("using test mode"), d() && Ft(d()), r() !== void 0 && S("auto", r()), h() !== void 0 && $r(h()), w = (n = c(B)) == null ? void 0 : n.closest("form"), w && (w.addEventListener("submit", wr, { capture: !0 }), w.addEventListener("reset", pr), (r() === "onfocus" || m() === "focus") && w.addEventListener("focusin", mr)), r() === "onload" && (M() ? rt() : $e()), c(Lt) && (x() || N()) && S("Attributes hidefooter and hidelogo ignored because usage with free API Keys requires attribution."), requestAnimationFrame(() => {
1950
+ S("mounted", "1.5.1"), S("workers", je()), ai(), S("plugins", Ee.length ? Ee.map((u) => u.constructor.pluginName).join(", ") : "none"), te() && S("using test mode"), d() && Ft(d()), r() !== void 0 && S("auto", r()), h() !== void 0 && $r(h()), w = (n = c(q)) == null ? void 0 : n.closest("form"), w && (w.addEventListener("submit", wr, { capture: !0 }), w.addEventListener("reset", pr), (r() === "onfocus" || m() === "focus") && w.addEventListener("focusin", mr)), r() === "onload" && (M() ? rt() : $e()), c(Lt) && (x() || N()) && S("Attributes hidefooter and hidelogo ignored because usage with free API Keys requires attribution."), requestAnimationFrame(() => {
1951
1951
  et("load");
1952
1952
  });
1953
1953
  });
@@ -1976,7 +1976,7 @@ function so(e, t) {
1976
1976
  if (c(Pt))
1977
1977
  return S("using provided json data"), c(Pt);
1978
1978
  if (te())
1979
- return S("generating test challenge", { test: te() }), Yl(typeof te() != "boolean" ? +te() : void 0);
1979
+ return S("generating test challenge", { test: te() }), Wl(typeof te() != "boolean" ? +te() : void 0);
1980
1980
  {
1981
1981
  if (!l() && w) {
1982
1982
  const $ = w.getAttribute("action");
@@ -2063,7 +2063,7 @@ function so(e, t) {
2063
2063
  const n = Ne() !== void 0 ? Ne().split(",") : void 0;
2064
2064
  for (const u of globalThis.altchaPlugins)
2065
2065
  (!n || n.includes(u.pluginName)) && Ee.push(new u({
2066
- el: c(B),
2066
+ el: c(q),
2067
2067
  clarify: rt,
2068
2068
  dispatch: et,
2069
2069
  getConfiguration: Ar,
@@ -2081,11 +2081,11 @@ function so(e, t) {
2081
2081
  (s() || n.some((u) => u instanceof Error)) && console[n[0] instanceof Error ? "error" : "log"]("ALTCHA", `[name=${j()}]`, ...n);
2082
2082
  }
2083
2083
  function si() {
2084
- [y.UNVERIFIED, y.ERROR, y.EXPIRED].includes(c(C)) ? U() !== !1 && (w == null ? void 0 : w.reportValidity()) === !1 ? L(Be, !1) : M() ? rt() : $e() : L(Be, !0);
2084
+ [y.UNVERIFIED, y.ERROR, y.EXPIRED].includes(c(C)) ? U() !== !1 && (w == null ? void 0 : w.reportValidity()) === !1 ? L(qe, !1) : M() ? rt() : $e() : L(qe, !0);
2085
2085
  }
2086
2086
  function gr(n) {
2087
2087
  const u = n.target;
2088
- h() && u && !c(B).contains(u) && (c(C) === y.VERIFIED && m() === !1 || c(C) === y.VERIFIED && m() === "focus" && !(w != null && w.matches(":focus-within")) || r() === "off" && c(C) === y.UNVERIFIED) && Sr();
2088
+ h() && u && !c(q).contains(u) && (c(C) === y.VERIFIED && m() === !1 || c(C) === y.VERIFIED && m() === "focus" && !(w != null && w.matches(":focus-within")) || r() === "off" && c(C) === y.UNVERIFIED) && Sr();
2089
2089
  }
2090
2090
  function _r() {
2091
2091
  h() && c(C) !== y.UNVERIFIED && nt();
@@ -2099,7 +2099,7 @@ function so(e, t) {
2099
2099
  }
2100
2100
  function wr(n) {
2101
2101
  w && r() === "onsubmit" ? c(C) === y.UNVERIFIED ? (n.preventDefault(), n.stopPropagation(), $e().then(() => {
2102
- w == null || w.requestSubmit();
2102
+ di();
2103
2103
  })) : c(C) !== y.VERIFIED && (n.preventDefault(), n.stopPropagation(), c(C) === y.VERIFYING && yr()) : w && h() && r() === "off" && c(C) === y.UNVERIFIED && (n.preventDefault(), n.stopPropagation(), Ot());
2104
2104
  }
2105
2105
  function pr() {
@@ -2113,7 +2113,7 @@ function so(e, t) {
2113
2113
  typeof u.onStateChange == "function" && u.onStateChange(c(C));
2114
2114
  h() && c(C) !== y.UNVERIFIED && requestAnimationFrame(() => {
2115
2115
  nt();
2116
- }), L(Be, c(C) === y.VERIFIED);
2116
+ }), L(qe, c(C) === y.VERIFIED);
2117
2117
  }
2118
2118
  function br() {
2119
2119
  h() && nt();
@@ -2136,10 +2136,10 @@ function so(e, t) {
2136
2136
  expectedCountries: Ut,
2137
2137
  fields: ot,
2138
2138
  ipAddress: at,
2139
- text: ki,
2139
+ text: xi,
2140
2140
  timeZone: Ur
2141
2141
  } = li();
2142
- u.blockedCountries = T, u.classifier = E, u.disableRules = p, u.email = $ === !1 ? void 0 : ii($), u.expectedCountries = Ut, u.expectedLanguages = me || (fr ? [fr] : void 0), u.fields = ot === !1 ? void 0 : oi(ot), u.ipAddress = at === !1 ? void 0 : at || "auto", u.text = ki, u.timeZone = Ur === !1 ? void 0 : Ur || Zl();
2142
+ u.blockedCountries = T, u.classifier = E, u.disableRules = p, u.email = $ === !1 ? void 0 : ii($), u.expectedCountries = Ut, u.expectedLanguages = me || (fr ? [fr] : void 0), u.fields = ot === !1 ? void 0 : oi(ot), u.ipAddress = at === !1 ? void 0 : at || "auto", u.text = xi, u.timeZone = Ur === !1 ? void 0 : Ur || Gl();
2143
2143
  }
2144
2144
  const _ = await hr()(be(), {
2145
2145
  body: JSON.stringify(u),
@@ -2154,11 +2154,14 @@ function so(e, t) {
2154
2154
  if (b != null && b.payload && L(De, b.payload, !0), et("serververification", b), i() && b.classification === "BAD")
2155
2155
  throw new Error("SpamFilter returned negative classification.");
2156
2156
  }
2157
+ function di() {
2158
+ w && "requestSubmit" in w ? w.requestSubmit() : w != null && w.reportValidity() && w.submit();
2159
+ }
2157
2160
  function Ft(n) {
2158
2161
  S("expire", n), ce && (clearTimeout(ce), ce = null), n < 1 ? vr() : ce = setTimeout(vr, n);
2159
2162
  }
2160
2163
  function $r(n) {
2161
- S("floating", n), h() !== n && (c(B).style.left = "", c(B).style.top = ""), h(n === !0 || n === "" ? "auto" : n === !1 || n === "false" ? void 0 : h()), h() ? (r() || r("onsubmit"), document.addEventListener("scroll", _r), document.addEventListener("click", gr), window.addEventListener("resize", br)) : r() === "onsubmit" && r(void 0);
2164
+ S("floating", n), h() !== n && (c(q).style.left = "", c(q).style.top = ""), h(n === !0 || n === "" ? "auto" : n === !1 || n === "false" ? void 0 : h()), h() ? (r() || r("onsubmit"), document.addEventListener("scroll", _r), document.addEventListener("click", gr), window.addEventListener("resize", br)) : r() === "onsubmit" && r(void 0);
2162
2165
  }
2163
2166
  function kr(n) {
2164
2167
  if (!n.algorithm)
@@ -2176,7 +2179,7 @@ function so(e, t) {
2176
2179
  let u = null;
2177
2180
  if ("Worker" in window) {
2178
2181
  try {
2179
- u = await di(n, n.maxNumber || n.maxnumber || V());
2182
+ u = await vi(n, n.maxNumber || n.maxnumber || V());
2180
2183
  } catch (_) {
2181
2184
  S(_);
2182
2185
  }
@@ -2184,15 +2187,15 @@ function so(e, t) {
2184
2187
  return { data: n, solution: u };
2185
2188
  }
2186
2189
  if ("obfuscated" in n) {
2187
- const _ = await Kl(n.obfuscated, n.key, n.maxNumber || n.maxnumber);
2190
+ const _ = await Xl(n.obfuscated, n.key, n.maxNumber || n.maxnumber);
2188
2191
  return { data: n, solution: await _.promise };
2189
2192
  }
2190
2193
  return {
2191
2194
  data: n,
2192
- solution: await Wl(n.challenge, n.salt, n.algorithm, n.maxNumber || n.maxnumber || V()).promise
2195
+ solution: await Zl(n.challenge, n.salt, n.algorithm, n.maxNumber || n.maxnumber || V()).promise
2193
2196
  };
2194
2197
  }
2195
- async function di(n, u = typeof te() == "number" ? te() : n.maxNumber || n.maxnumber || V(), _ = Math.ceil(je())) {
2198
+ async function vi(n, u = typeof te() == "number" ? te() : n.maxNumber || n.maxnumber || V(), _ = Math.ceil(je())) {
2196
2199
  const b = [];
2197
2200
  _ = Math.min(16, u, Math.max(1, _));
2198
2201
  for (let p = 0; p < _; p++)
@@ -2260,22 +2263,22 @@ function so(e, t) {
2260
2263
  };
2261
2264
  }
2262
2265
  function Ir() {
2263
- return qe;
2266
+ return Be;
2264
2267
  }
2265
- function vi(n) {
2268
+ function hi(n) {
2266
2269
  return Ee.find((u) => u.constructor.pluginName === n);
2267
2270
  }
2268
2271
  function Rr() {
2269
2272
  return c(C);
2270
2273
  }
2271
2274
  function Sr() {
2272
- c(B).style.display = "none";
2275
+ c(q).style.display = "none";
2273
2276
  }
2274
2277
  function nt(n = 20) {
2275
- if (c(B))
2276
- if (qe || (qe = (v() ? document.querySelector(v()) : w == null ? void 0 : w.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])')) || w), qe) {
2277
- const u = parseInt(g(), 10) || 12, _ = qe.getBoundingClientRect(), b = c(B).getBoundingClientRect(), T = document.documentElement.clientHeight, E = document.documentElement.clientWidth, p = h() === "auto" ? _.bottom + b.height + u + n > T : h() === "top", $ = Math.max(n, Math.min(E - n - b.width, _.left + _.width / 2 - b.width / 2));
2278
- if (p ? c(B).style.top = `${_.top - (b.height + u)}px` : c(B).style.top = `${_.bottom + u}px`, c(B).style.left = `${$}px`, c(B).setAttribute("data-floating", p ? "top" : "bottom"), c(tt)) {
2278
+ if (c(q))
2279
+ if (Be || (Be = (v() ? document.querySelector(v()) : w == null ? void 0 : w.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])')) || w), Be) {
2280
+ const u = parseInt(g(), 10) || 12, _ = Be.getBoundingClientRect(), b = c(q).getBoundingClientRect(), T = document.documentElement.clientHeight, E = document.documentElement.clientWidth, p = h() === "auto" ? _.bottom + b.height + u + n > T : h() === "top", $ = Math.max(n, Math.min(E - n - b.width, _.left + _.width / 2 - b.width / 2));
2281
+ if (p ? c(q).style.top = `${_.top - (b.height + u)}px` : c(q).style.top = `${_.bottom + u}px`, c(q).style.left = `${$}px`, c(q).setAttribute("data-floating", p ? "top" : "bottom"), c(tt)) {
2279
2282
  const me = c(tt).getBoundingClientRect();
2280
2283
  c(tt).style.left = _.left - $ + _.width / 2 - me.width / 2 + "px";
2281
2284
  }
@@ -2283,10 +2286,10 @@ function so(e, t) {
2283
2286
  S("unable to find floating anchor element");
2284
2287
  }
2285
2288
  function it(n = y.UNVERIFIED, u = null) {
2286
- ce && (clearTimeout(ce), ce = null), L(Be, !1), L(De, null), Le(n, u);
2289
+ ce && (clearTimeout(ce), ce = null), L(qe, !1), L(De, null), Le(n, u);
2287
2290
  }
2288
2291
  function Tr(n) {
2289
- qe = n;
2292
+ Be = n;
2290
2293
  }
2291
2294
  function Le(n, u = null) {
2292
2295
  L(C, n, !0), L(He, u, !0), et("statechange", {
@@ -2295,7 +2298,7 @@ function so(e, t) {
2295
2298
  });
2296
2299
  }
2297
2300
  function Ot() {
2298
- c(B).style.display = "block", h() && nt();
2301
+ c(q).style.display = "block", h() && nt();
2299
2302
  }
2300
2303
  async function $e() {
2301
2304
  return it(y.VERIFYING), await new Promise((n) => setTimeout(n, f() || 0)), ni().then((n) => (kr(n), S("challenge", n), xr(n))).then(({ data: n, solution: u }) => {
@@ -2307,45 +2310,45 @@ function so(e, t) {
2307
2310
  } else
2308
2311
  throw S("Unable to find a solution. Ensure that the 'maxnumber' attribute is greater than the randomly generated number."), new Error("Unexpected result returned.");
2309
2312
  }).then(() => {
2310
- Le(y.VERIFIED), S("verified"), wl().then(() => {
2313
+ Le(y.VERIFIED), S("verified"), pl().then(() => {
2311
2314
  et("verified", { payload: c(De) });
2312
2315
  });
2313
2316
  }).catch((n) => {
2314
2317
  S(n), Le(y.ERROR, n.message);
2315
2318
  });
2316
2319
  }
2317
- var Nr = ao(), Dr = Wr(Nr);
2318
- Sl(Dr, t, "default", {});
2320
+ var Nr = so(), Dr = Wr(Nr);
2321
+ Tl(Dr, t, "default", {});
2319
2322
  var lt = we(Dr, 2), Mt = z(lt), Lr = z(Mt);
2320
2323
  {
2321
- var hi = (n) => {
2322
- var u = Xl();
2324
+ var gi = (n) => {
2325
+ var u = zl();
2323
2326
  ne(n, u);
2324
2327
  };
2325
2328
  ke(Lr, (n) => {
2326
- c(C) === y.VERIFYING && n(hi);
2329
+ c(C) === y.VERIFYING && n(gi);
2327
2330
  });
2328
2331
  }
2329
2332
  var mt = we(Lr, 2);
2330
2333
  let Pr;
2331
2334
  var Ye = z(mt);
2332
2335
  Qr(Ye), Ye.__change = si, X(mt);
2333
- var Vt = we(mt, 2), gi = z(Vt);
2336
+ var Vt = we(mt, 2), _i = z(Vt);
2334
2337
  {
2335
- var _i = (n) => {
2336
- var u = zl(), _ = Wr(u), b = z(_);
2338
+ var mi = (n) => {
2339
+ var u = Ql(), _ = Wr(u), b = z(_);
2337
2340
  Ze(b, () => c(re).verified), X(_);
2338
2341
  var T = we(_, 2);
2339
2342
  Qr(T), Pe(() => {
2340
- se(T, "name", j()), Pl(T, c(De));
2343
+ se(T, "name", j()), Fl(T, c(De));
2341
2344
  }), ne(n, u);
2342
- }, mi = (n, u) => {
2345
+ }, wi = (n, u) => {
2343
2346
  {
2344
2347
  var _ = (T) => {
2345
- var E = Ql(), p = z(E);
2348
+ var E = eo(), p = z(E);
2346
2349
  Ze(p, () => c(re).verifying), X(E), ne(T, E);
2347
2350
  }, b = (T) => {
2348
- var E = eo(), p = z(E);
2351
+ var E = to(), p = z(E);
2349
2352
  Ze(p, () => c(re).label), X(E), Pe(() => se(E, "for", c(cr))), ne(T, E);
2350
2353
  };
2351
2354
  ke(
@@ -2357,32 +2360,32 @@ function so(e, t) {
2357
2360
  );
2358
2361
  }
2359
2362
  };
2360
- ke(gi, (n) => {
2361
- c(C) === y.VERIFIED ? n(_i) : n(mi, !1);
2363
+ ke(_i, (n) => {
2364
+ c(C) === y.VERIFIED ? n(mi) : n(wi, !1);
2362
2365
  });
2363
2366
  }
2364
2367
  X(Vt);
2365
- var wi = we(Vt, 2);
2368
+ var pi = we(Vt, 2);
2366
2369
  {
2367
- var pi = (n) => {
2368
- var u = to(), _ = z(u);
2370
+ var yi = (n) => {
2371
+ var u = ro(), _ = z(u);
2369
2372
  se(_, "href", sr), X(u), Pe(() => se(_, "aria-label", c(re).ariaLinkLabel)), ne(n, u);
2370
2373
  };
2371
- ke(wi, (n) => {
2372
- (N() !== !0 || c(Lt)) && n(pi);
2374
+ ke(pi, (n) => {
2375
+ (N() !== !0 || c(Lt)) && n(yi);
2373
2376
  });
2374
2377
  }
2375
2378
  X(Mt);
2376
2379
  var Fr = we(Mt, 2);
2377
2380
  {
2378
- var yi = (n) => {
2379
- var u = io(), _ = we(z(u), 2);
2381
+ var bi = (n) => {
2382
+ var u = lo(), _ = we(z(u), 2);
2380
2383
  {
2381
2384
  var b = (E) => {
2382
- var p = ro(), $ = z(p);
2385
+ var p = no(), $ = z(p);
2383
2386
  Ze($, () => c(re).expired), X(p), Pe(() => se(p, "title", c(He))), ne(E, p);
2384
2387
  }, T = (E) => {
2385
- var p = no(), $ = z(p);
2388
+ var p = io(), $ = z(p);
2386
2389
  Ze($, () => c(re).error), X(p), Pe(() => se(p, "title", c(He))), ne(E, p);
2387
2390
  };
2388
2391
  ke(_, (E) => {
@@ -2392,44 +2395,44 @@ function so(e, t) {
2392
2395
  X(u), ne(n, u);
2393
2396
  };
2394
2397
  ke(Fr, (n) => {
2395
- (c(He) || c(C) === y.EXPIRED) && n(yi);
2398
+ (c(He) || c(C) === y.EXPIRED) && n(bi);
2396
2399
  });
2397
2400
  }
2398
2401
  var Or = we(Fr, 2);
2399
2402
  {
2400
- var bi = (n) => {
2401
- var u = lo(), _ = z(u), b = z(_);
2403
+ var Ei = (n) => {
2404
+ var u = oo(), _ = z(u), b = z(_);
2402
2405
  Ze(b, () => c(re).footer), X(_), X(u), ne(n, u);
2403
2406
  };
2404
2407
  ke(Or, (n) => {
2405
- c(re).footer && (x() !== !0 || c(Lt)) && n(bi);
2408
+ c(re).footer && (x() !== !0 || c(Lt)) && n(Ei);
2406
2409
  });
2407
2410
  }
2408
- var Ei = we(Or, 2);
2411
+ var $i = we(Or, 2);
2409
2412
  {
2410
- var $i = (n) => {
2411
- var u = oo();
2413
+ var ki = (n) => {
2414
+ var u = ao();
2412
2415
  rn(u, (_) => L(tt, _), () => c(tt)), ne(n, u);
2413
2416
  };
2414
- ke(Ei, (n) => {
2415
- h() && n($i);
2417
+ ke($i, (n) => {
2418
+ h() && n(ki);
2416
2419
  });
2417
2420
  }
2418
- return X(lt), rn(lt, (n) => L(B, n), () => c(B)), Pe(
2421
+ return X(lt), rn(lt, (n) => L(q, n), () => c(q)), Pe(
2419
2422
  (n) => {
2420
- se(lt, "data-state", c(C)), se(lt, "data-floating", h()), Pr = Nl(mt, 1, "altcha-checkbox", null, Pr, n), se(Ye, "id", c(cr)), Ye.required = r() !== "onsubmit" && (!h() || r() !== "off");
2423
+ se(lt, "data-state", c(C)), se(lt, "data-floating", h()), Pr = Dl(mt, 1, "altcha-checkbox", null, Pr, n), se(Ye, "id", c(cr)), Ye.required = r() !== "onsubmit" && (!h() || r() !== "off");
2421
2424
  },
2422
2425
  [
2423
2426
  () => ({
2424
2427
  "altcha-hidden": c(C) === y.VERIFYING
2425
2428
  })
2426
2429
  ]
2427
- ), xl("invalid", Ye, yr), Ol(Ye, () => c(Be), (n) => L(Be, n)), ne(e, Nr), Hn({
2430
+ ), Cl("invalid", Ye, yr), Ml(Ye, () => c(qe), (n) => L(qe, n)), ne(e, Nr), Hn({
2428
2431
  clarify: rt,
2429
2432
  configure: Cr,
2430
2433
  getConfiguration: Ar,
2431
2434
  getFloatingAnchor: Ir,
2432
- getPlugin: vi,
2435
+ getPlugin: hi,
2433
2436
  getState: Rr,
2434
2437
  hide: Sr,
2435
2438
  repositionFloating: nt,
@@ -2602,9 +2605,9 @@ function so(e, t) {
2602
2605
  }
2603
2606
  });
2604
2607
  }
2605
- Cl(["change"]);
2606
- customElements.define("altcha-widget", ql(
2607
- so,
2608
+ Al(["change"]);
2609
+ customElements.define("altcha-widget", Hl(
2610
+ fo,
2608
2611
  {
2609
2612
  blockspam: { type: "Boolean" },
2610
2613
  debug: { type: "Boolean" },
@@ -2655,5 +2658,5 @@ customElements.define("altcha-widget", ql(
2655
2658
  globalThis.altchaCreateWorker = (e) => new Worker(new URL(e || "./worker.js", import.meta.url));
2656
2659
  globalThis.altchaPlugins = globalThis.altchaPlugins || [];
2657
2660
  export {
2658
- so as Altcha
2661
+ fo as Altcha
2659
2662
  };