@prosopo/svelte-procaptcha-integration-demo 1.0.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.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
package/dist/index.js ADDED
@@ -0,0 +1,1326 @@
1
+ var Sr = Array.isArray, kr = Array.prototype.indexOf, mr = Array.from, Nr = Object.defineProperty, It = Object.getOwnPropertyDescriptor, Ht = Object.getOwnPropertyDescriptors, Kt = Object.getPrototypeOf, Lt = Object.isExtensible;
2
+ function Or(t) {
3
+ return t();
4
+ }
5
+ function X(t) {
6
+ for (var r = 0; r < t.length; r++)
7
+ t[r]();
8
+ }
9
+ const L = 2, Wt = 4, it = 8, Gt = 16, V = 32, W = 64, Z = 128, N = 256, tt = 512, D = 1024, G = 2048, z = 4096, rt = 8192, ot = 16384, Cr = 32768, Dr = 65536, Ir = 1 << 19, zt = 1 << 20, ht = 1 << 21, gt = Symbol("$state"), Lr = Symbol("");
10
+ function Jt(t) {
11
+ return t === this.v;
12
+ }
13
+ function Fr(t) {
14
+ throw new Error("https://svelte.dev/e/effect_in_teardown");
15
+ }
16
+ function Pr() {
17
+ throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
18
+ }
19
+ function Rr(t) {
20
+ throw new Error("https://svelte.dev/e/effect_orphan");
21
+ }
22
+ function Mr() {
23
+ throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
24
+ }
25
+ let ft = !1;
26
+ function jr() {
27
+ ft = !0;
28
+ }
29
+ const Vr = 2, $r = "http://www.w3.org/1999/xhtml";
30
+ function Br(t) {
31
+ throw new Error("https://svelte.dev/e/lifecycle_outside_component");
32
+ }
33
+ let h = null;
34
+ function Ft(t) {
35
+ h = t;
36
+ }
37
+ function Tt(t, r = !1, n) {
38
+ var e = h = {
39
+ p: h,
40
+ c: null,
41
+ d: !1,
42
+ e: null,
43
+ m: !1,
44
+ s: t,
45
+ x: null,
46
+ l: null
47
+ };
48
+ ft && !r && (h.l = {
49
+ s: null,
50
+ u: null,
51
+ r1: [],
52
+ r2: Hr(!1)
53
+ }), Qr(() => {
54
+ e.d = !0;
55
+ });
56
+ }
57
+ function St(t) {
58
+ const r = h;
59
+ if (r !== null) {
60
+ const i = r.e;
61
+ if (i !== null) {
62
+ var n = g, e = v;
63
+ r.e = null;
64
+ try {
65
+ for (var u = 0; u < i.length; u++) {
66
+ var l = i[u];
67
+ P(l.effect), F(l.reaction), mt(l.fn);
68
+ }
69
+ } finally {
70
+ P(n), F(e);
71
+ }
72
+ }
73
+ h = r.p, r.m = !0;
74
+ }
75
+ return (
76
+ /** @type {T} */
77
+ {}
78
+ );
79
+ }
80
+ function Ur() {
81
+ return !ft || h !== null && h.l === null;
82
+ }
83
+ // @__NO_SIDE_EFFECTS__
84
+ function kt(t) {
85
+ var r = L | G, n = v !== null && (v.f & L) !== 0 ? (
86
+ /** @type {Derived} */
87
+ v
88
+ ) : null;
89
+ return g === null || n !== null && (n.f & N) !== 0 ? r |= N : g.f |= zt, {
90
+ ctx: h,
91
+ deps: null,
92
+ effects: null,
93
+ equals: Jt,
94
+ f: r,
95
+ fn: t,
96
+ reactions: null,
97
+ rv: 0,
98
+ v: (
99
+ /** @type {V} */
100
+ null
101
+ ),
102
+ wv: 0,
103
+ parent: n ?? g
104
+ };
105
+ }
106
+ // @__NO_SIDE_EFFECTS__
107
+ function qr(t) {
108
+ const r = /* @__PURE__ */ kt(t);
109
+ return fn(r), r;
110
+ }
111
+ function Qt(t) {
112
+ var r = t.effects;
113
+ if (r !== null) {
114
+ t.effects = null;
115
+ for (var n = 0; n < r.length; n += 1)
116
+ j(
117
+ /** @type {Effect} */
118
+ r[n]
119
+ );
120
+ }
121
+ }
122
+ function xr(t) {
123
+ for (var r = t.parent; r !== null; ) {
124
+ if ((r.f & L) === 0)
125
+ return (
126
+ /** @type {Effect} */
127
+ r
128
+ );
129
+ r = r.parent;
130
+ }
131
+ return null;
132
+ }
133
+ function Yr(t) {
134
+ var r, n = g;
135
+ P(xr(t));
136
+ try {
137
+ Qt(t), r = pr(t);
138
+ } finally {
139
+ P(n);
140
+ }
141
+ return r;
142
+ }
143
+ function Xt(t) {
144
+ var r = Yr(t), n = (I || (t.f & N) !== 0) && t.deps !== null ? z : D;
145
+ R(t, n), t.equals(r) || (t.v = r, t.wv = sn());
146
+ }
147
+ const wt = /* @__PURE__ */ new Map();
148
+ function Hr(t, r) {
149
+ var n = {
150
+ f: 0,
151
+ // TODO ideally we could skip this altogether, but it causes type errors
152
+ v: t,
153
+ reactions: null,
154
+ equals: Jt,
155
+ rv: 0,
156
+ wv: 0
157
+ };
158
+ return n;
159
+ }
160
+ var Pt, Zt, tr, rr;
161
+ function Kr() {
162
+ if (Pt === void 0) {
163
+ Pt = window, Zt = /Firefox/.test(navigator.userAgent);
164
+ var t = Element.prototype, r = Node.prototype, n = Text.prototype;
165
+ tr = It(r, "firstChild").get, rr = It(r, "nextSibling").get, Lt(t) && (t.__click = void 0, t.__className = void 0, t.__attributes = null, t.__style = void 0, t.__e = void 0), Lt(n) && (n.__t = void 0);
166
+ }
167
+ }
168
+ function Wr(t = "") {
169
+ return document.createTextNode(t);
170
+ }
171
+ // @__NO_SIDE_EFFECTS__
172
+ function nr(t) {
173
+ return tr.call(t);
174
+ }
175
+ // @__NO_SIDE_EFFECTS__
176
+ function Gr(t) {
177
+ return rr.call(t);
178
+ }
179
+ function zr(t, r) {
180
+ return /* @__PURE__ */ nr(t);
181
+ }
182
+ function er(t) {
183
+ g === null && v === null && Rr(), v !== null && (v.f & N) !== 0 && g === null && Pr(), st && Fr();
184
+ }
185
+ function Jr(t, r) {
186
+ var n = r.last;
187
+ n === null ? r.last = r.first = t : (n.next = t, t.prev = n, r.last = t);
188
+ }
189
+ function U(t, r, n, e = !0) {
190
+ var u = g, l = {
191
+ ctx: h,
192
+ deps: null,
193
+ nodes_start: null,
194
+ nodes_end: null,
195
+ f: t | G,
196
+ first: null,
197
+ fn: r,
198
+ last: null,
199
+ next: null,
200
+ parent: u,
201
+ prev: null,
202
+ teardown: null,
203
+ transitions: null,
204
+ wv: 0
205
+ };
206
+ if (n)
207
+ try {
208
+ Ot(l), l.f |= Cr;
209
+ } catch (o) {
210
+ throw j(l), o;
211
+ }
212
+ else r !== null && _r(l);
213
+ var i = n && l.deps === null && l.first === null && l.nodes_start === null && l.teardown === null && (l.f & (zt | Z)) === 0;
214
+ if (!i && e && (u !== null && Jr(l, u), v !== null && (v.f & L) !== 0)) {
215
+ var s = (
216
+ /** @type {Derived} */
217
+ v
218
+ );
219
+ (s.effects ?? (s.effects = [])).push(l);
220
+ }
221
+ return l;
222
+ }
223
+ function Qr(t) {
224
+ const r = U(it, null, !1);
225
+ return R(r, D), r.teardown = t, r;
226
+ }
227
+ function Et(t) {
228
+ er();
229
+ var r = g !== null && (g.f & V) !== 0 && h !== null && !h.m;
230
+ if (r) {
231
+ var n = (
232
+ /** @type {ComponentContext} */
233
+ h
234
+ );
235
+ (n.e ?? (n.e = [])).push({
236
+ fn: t,
237
+ effect: g,
238
+ reaction: v
239
+ });
240
+ } else {
241
+ var e = mt(t);
242
+ return e;
243
+ }
244
+ }
245
+ function Xr(t) {
246
+ return er(), lr(t);
247
+ }
248
+ function Zr(t) {
249
+ const r = U(W, t, !0);
250
+ return (n = {}) => new Promise((e) => {
251
+ n.outro ? ln(r, () => {
252
+ j(r), e(void 0);
253
+ }) : (j(r), e(void 0));
254
+ });
255
+ }
256
+ function mt(t) {
257
+ return U(Wt, t, !1);
258
+ }
259
+ function lr(t) {
260
+ return U(it, t, !0);
261
+ }
262
+ function tn(t, r = [], n = kt) {
263
+ const e = r.map(n);
264
+ return rn(() => t(...e.map(pt)));
265
+ }
266
+ function rn(t, r = 0) {
267
+ return U(it | Gt | r, t, !0);
268
+ }
269
+ function nn(t, r = !0) {
270
+ return U(it | V, t, !0, r);
271
+ }
272
+ function ur(t) {
273
+ var r = t.teardown;
274
+ if (r !== null) {
275
+ const n = st, e = v;
276
+ Mt(!0), F(null);
277
+ try {
278
+ r.call(null);
279
+ } finally {
280
+ Mt(n), F(e);
281
+ }
282
+ }
283
+ }
284
+ function ir(t, r = !1) {
285
+ var n = t.first;
286
+ for (t.first = t.last = null; n !== null; ) {
287
+ var e = n.next;
288
+ (n.f & W) !== 0 ? n.parent = null : j(n, r), n = e;
289
+ }
290
+ }
291
+ function en(t) {
292
+ for (var r = t.first; r !== null; ) {
293
+ var n = r.next;
294
+ (r.f & V) === 0 && j(r), r = n;
295
+ }
296
+ }
297
+ function j(t, r = !0) {
298
+ var n = !1;
299
+ if ((r || (t.f & Ir) !== 0) && t.nodes_start !== null) {
300
+ for (var e = t.nodes_start, u = t.nodes_end; e !== null; ) {
301
+ var l = e === u ? null : (
302
+ /** @type {TemplateNode} */
303
+ /* @__PURE__ */ Gr(e)
304
+ );
305
+ e.remove(), e = l;
306
+ }
307
+ n = !0;
308
+ }
309
+ ir(t, r && !n), ut(t, 0), R(t, ot);
310
+ var i = t.transitions;
311
+ if (i !== null)
312
+ for (const o of i)
313
+ o.stop();
314
+ ur(t);
315
+ var s = t.parent;
316
+ s !== null && s.first !== null && or(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes_start = t.nodes_end = null;
317
+ }
318
+ function or(t) {
319
+ var r = t.parent, n = t.prev, e = t.next;
320
+ n !== null && (n.next = e), e !== null && (e.prev = n), r !== null && (r.first === t && (r.first = e), r.last === t && (r.last = n));
321
+ }
322
+ function ln(t, r) {
323
+ var n = [];
324
+ fr(t, n, !0), un(n, () => {
325
+ j(t), r && r();
326
+ });
327
+ }
328
+ function un(t, r) {
329
+ var n = t.length;
330
+ if (n > 0) {
331
+ var e = () => --n || r();
332
+ for (var u of t)
333
+ u.out(e);
334
+ } else
335
+ r();
336
+ }
337
+ function fr(t, r, n) {
338
+ if ((t.f & rt) === 0) {
339
+ if (t.f ^= rt, t.transitions !== null)
340
+ for (const i of t.transitions)
341
+ (i.is_global || n) && r.push(i);
342
+ for (var e = t.first; e !== null; ) {
343
+ var u = e.next, l = (e.f & Dr) !== 0 || (e.f & V) !== 0;
344
+ fr(e, r, l ? n : !1), e = u;
345
+ }
346
+ }
347
+ }
348
+ let K = [], bt = [];
349
+ function sr() {
350
+ var t = K;
351
+ K = [], X(t);
352
+ }
353
+ function on() {
354
+ var t = bt;
355
+ bt = [], X(t);
356
+ }
357
+ function Nt(t) {
358
+ K.length === 0 && queueMicrotask(sr), K.push(t);
359
+ }
360
+ function Rt() {
361
+ K.length > 0 && sr(), bt.length > 0 && on();
362
+ }
363
+ let Q = !1, nt = !1, et = null, M = !1, st = !1;
364
+ function Mt(t) {
365
+ st = t;
366
+ }
367
+ let H = [];
368
+ let v = null, C = !1;
369
+ function F(t) {
370
+ v = t;
371
+ }
372
+ let g = null;
373
+ function P(t) {
374
+ g = t;
375
+ }
376
+ let m = null;
377
+ function fn(t) {
378
+ v !== null && v.f & ht && (m === null ? m = [t] : m.push(t));
379
+ }
380
+ let b = null, k = 0, O = null, ar = 1, lt = 0, I = !1;
381
+ function sn() {
382
+ return ++ar;
383
+ }
384
+ function at(t) {
385
+ var a;
386
+ var r = t.f;
387
+ if ((r & G) !== 0)
388
+ return !0;
389
+ if ((r & z) !== 0) {
390
+ var n = t.deps, e = (r & N) !== 0;
391
+ if (n !== null) {
392
+ var u, l, i = (r & tt) !== 0, s = e && g !== null && !I, o = n.length;
393
+ if (i || s) {
394
+ var c = (
395
+ /** @type {Derived} */
396
+ t
397
+ ), w = c.parent;
398
+ for (u = 0; u < o; u++)
399
+ l = n[u], (i || !((a = l == null ? void 0 : l.reactions) != null && a.includes(c))) && (l.reactions ?? (l.reactions = [])).push(c);
400
+ i && (c.f ^= tt), s && w !== null && (w.f & N) === 0 && (c.f ^= N);
401
+ }
402
+ for (u = 0; u < o; u++)
403
+ if (l = n[u], at(
404
+ /** @type {Derived} */
405
+ l
406
+ ) && Xt(
407
+ /** @type {Derived} */
408
+ l
409
+ ), l.wv > t.wv)
410
+ return !0;
411
+ }
412
+ (!e || g !== null && !I) && R(t, D);
413
+ }
414
+ return !1;
415
+ }
416
+ function an(t, r) {
417
+ for (var n = r; n !== null; ) {
418
+ if ((n.f & Z) !== 0)
419
+ try {
420
+ n.fn(t);
421
+ return;
422
+ } catch {
423
+ n.f ^= Z;
424
+ }
425
+ n = n.parent;
426
+ }
427
+ throw Q = !1, t;
428
+ }
429
+ function cn(t) {
430
+ return (t.f & ot) === 0 && (t.parent === null || (t.parent.f & Z) === 0);
431
+ }
432
+ function ct(t, r, n, e) {
433
+ if (Q) {
434
+ if (n === null && (Q = !1), cn(r))
435
+ throw t;
436
+ return;
437
+ }
438
+ n !== null && (Q = !0);
439
+ {
440
+ an(t, r);
441
+ return;
442
+ }
443
+ }
444
+ function cr(t, r, n = !0) {
445
+ var e = t.reactions;
446
+ if (e !== null)
447
+ for (var u = 0; u < e.length; u++) {
448
+ var l = e[u];
449
+ m != null && m.includes(t) || ((l.f & L) !== 0 ? cr(
450
+ /** @type {Derived} */
451
+ l,
452
+ r,
453
+ !1
454
+ ) : r === l && (n ? R(l, G) : (l.f & D) !== 0 && R(l, z), _r(
455
+ /** @type {Effect} */
456
+ l
457
+ )));
458
+ }
459
+ }
460
+ function pr(t) {
461
+ var _;
462
+ var r = b, n = k, e = O, u = v, l = I, i = m, s = h, o = C, c = t.f;
463
+ b = /** @type {null | Value[]} */
464
+ null, k = 0, O = null, I = (c & N) !== 0 && (C || !M || v === null), v = (c & (V | W)) === 0 ? t : null, m = null, Ft(t.ctx), C = !1, lt++, t.f |= ht;
465
+ try {
466
+ var w = (
467
+ /** @type {Function} */
468
+ (0, t.fn)()
469
+ ), a = t.deps;
470
+ if (b !== null) {
471
+ var f;
472
+ if (ut(t, k), a !== null && k > 0)
473
+ for (a.length = k + b.length, f = 0; f < b.length; f++)
474
+ a[k + f] = b[f];
475
+ else
476
+ t.deps = a = b;
477
+ if (!I)
478
+ for (f = k; f < a.length; f++)
479
+ ((_ = a[f]).reactions ?? (_.reactions = [])).push(t);
480
+ } else a !== null && k < a.length && (ut(t, k), a.length = k);
481
+ if (Ur() && O !== null && !C && a !== null && (t.f & (L | z | G)) === 0)
482
+ for (f = 0; f < /** @type {Source[]} */
483
+ O.length; f++)
484
+ cr(
485
+ O[f],
486
+ /** @type {Effect} */
487
+ t
488
+ );
489
+ return u !== t && (lt++, O !== null && (e === null ? e = O : e.push(.../** @type {Source[]} */
490
+ O))), w;
491
+ } finally {
492
+ b = r, k = n, O = e, v = u, I = l, m = i, Ft(s), C = o, t.f ^= ht;
493
+ }
494
+ }
495
+ function pn(t, r) {
496
+ let n = r.reactions;
497
+ if (n !== null) {
498
+ var e = kr.call(n, t);
499
+ if (e !== -1) {
500
+ var u = n.length - 1;
501
+ u === 0 ? n = r.reactions = null : (n[e] = n[u], n.pop());
502
+ }
503
+ }
504
+ n === null && (r.f & L) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
505
+ // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
506
+ // allows us to skip the expensive work of disconnecting and immediately reconnecting it
507
+ (b === null || !b.includes(r)) && (R(r, z), (r.f & (N | tt)) === 0 && (r.f ^= tt), Qt(
508
+ /** @type {Derived} **/
509
+ r
510
+ ), ut(
511
+ /** @type {Derived} **/
512
+ r,
513
+ 0
514
+ ));
515
+ }
516
+ function ut(t, r) {
517
+ var n = t.deps;
518
+ if (n !== null)
519
+ for (var e = r; e < n.length; e++)
520
+ pn(t, n[e]);
521
+ }
522
+ function Ot(t) {
523
+ var r = t.f;
524
+ if ((r & ot) === 0) {
525
+ R(t, D);
526
+ var n = g, e = h, u = M;
527
+ g = t, M = !0;
528
+ try {
529
+ (r & Gt) !== 0 ? en(t) : ir(t), ur(t);
530
+ var l = pr(t);
531
+ t.teardown = typeof l == "function" ? l : null, t.wv = ar;
532
+ var i = t.deps, s;
533
+ } catch (o) {
534
+ ct(o, t, n, e || t.ctx);
535
+ } finally {
536
+ M = u, g = n;
537
+ }
538
+ }
539
+ }
540
+ function vn() {
541
+ try {
542
+ Mr();
543
+ } catch (t) {
544
+ if (et !== null)
545
+ ct(t, et, null);
546
+ else
547
+ throw t;
548
+ }
549
+ }
550
+ function vr() {
551
+ var t = M;
552
+ try {
553
+ var r = 0;
554
+ for (M = !0; H.length > 0; ) {
555
+ r++ > 1e3 && vn();
556
+ var n = H, e = n.length;
557
+ H = [];
558
+ for (var u = 0; u < e; u++) {
559
+ var l = dn(n[u]);
560
+ _n(l);
561
+ }
562
+ wt.clear();
563
+ }
564
+ } finally {
565
+ nt = !1, M = t, et = null;
566
+ }
567
+ }
568
+ function _n(t) {
569
+ var r = t.length;
570
+ if (r !== 0)
571
+ for (var n = 0; n < r; n++) {
572
+ var e = t[n];
573
+ if ((e.f & (ot | rt)) === 0)
574
+ try {
575
+ at(e) && (Ot(e), e.deps === null && e.first === null && e.nodes_start === null && (e.teardown === null ? or(e) : e.fn = null));
576
+ } catch (u) {
577
+ ct(u, e, null, e.ctx);
578
+ }
579
+ }
580
+ }
581
+ function _r(t) {
582
+ nt || (nt = !0, queueMicrotask(vr));
583
+ for (var r = et = t; r.parent !== null; ) {
584
+ r = r.parent;
585
+ var n = r.f;
586
+ if ((n & (W | V)) !== 0) {
587
+ if ((n & D) === 0) return;
588
+ r.f ^= D;
589
+ }
590
+ }
591
+ H.push(r);
592
+ }
593
+ function dn(t) {
594
+ for (var r = [], n = t; n !== null; ) {
595
+ var e = n.f, u = (e & (V | W)) !== 0, l = u && (e & D) !== 0;
596
+ if (!l && (e & rt) === 0) {
597
+ if ((e & Wt) !== 0)
598
+ r.push(n);
599
+ else if (u)
600
+ n.f ^= D;
601
+ else {
602
+ var i = v;
603
+ try {
604
+ v = n, at(n) && Ot(n);
605
+ } catch (c) {
606
+ ct(c, n, null, n.ctx);
607
+ } finally {
608
+ v = i;
609
+ }
610
+ }
611
+ var s = n.first;
612
+ if (s !== null) {
613
+ n = s;
614
+ continue;
615
+ }
616
+ }
617
+ var o = n.parent;
618
+ for (n = n.next; n === null && o !== null; )
619
+ n = o.next, o = o.parent;
620
+ }
621
+ return r;
622
+ }
623
+ function hn(t) {
624
+ var r;
625
+ for (Rt(); H.length > 0; )
626
+ nt = !0, vr(), Rt();
627
+ return (
628
+ /** @type {T} */
629
+ r
630
+ );
631
+ }
632
+ async function gn() {
633
+ await Promise.resolve(), hn();
634
+ }
635
+ function pt(t) {
636
+ var r = t.f, n = (r & L) !== 0;
637
+ if (v !== null && !C) {
638
+ if (!(m != null && m.includes(t))) {
639
+ var e = v.deps;
640
+ t.rv < lt && (t.rv = lt, b === null && e !== null && e[k] === t ? k++ : b === null ? b = [t] : (!I || !b.includes(t)) && b.push(t));
641
+ }
642
+ } else if (n && /** @type {Derived} */
643
+ t.deps === null && /** @type {Derived} */
644
+ t.effects === null) {
645
+ var u = (
646
+ /** @type {Derived} */
647
+ t
648
+ ), l = u.parent;
649
+ l !== null && (l.f & N) === 0 && (u.f ^= N);
650
+ }
651
+ return n && (u = /** @type {Derived} */
652
+ t, at(u) && Xt(u)), st && wt.has(t) ? wt.get(t) : t.v;
653
+ }
654
+ function Ct(t) {
655
+ var r = C;
656
+ try {
657
+ return C = !0, t();
658
+ } finally {
659
+ C = r;
660
+ }
661
+ }
662
+ const wn = -7169;
663
+ function R(t, r) {
664
+ t.f = t.f & wn | r;
665
+ }
666
+ function En(t) {
667
+ if (!(typeof t != "object" || !t || t instanceof EventTarget)) {
668
+ if (gt in t)
669
+ yt(t);
670
+ else if (!Array.isArray(t))
671
+ for (let r in t) {
672
+ const n = t[r];
673
+ typeof n == "object" && n && gt in n && yt(n);
674
+ }
675
+ }
676
+ }
677
+ function yt(t, r = /* @__PURE__ */ new Set()) {
678
+ if (typeof t == "object" && t !== null && // We don't want to traverse DOM elements
679
+ !(t instanceof EventTarget) && !r.has(t)) {
680
+ r.add(t), t instanceof Date && t.getTime();
681
+ for (let e in t)
682
+ try {
683
+ yt(t[e], r);
684
+ } catch {
685
+ }
686
+ const n = Kt(t);
687
+ if (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {
688
+ const e = Ht(n);
689
+ for (let u in e) {
690
+ const l = e[u].get;
691
+ if (l)
692
+ try {
693
+ l.call(t);
694
+ } catch {
695
+ }
696
+ }
697
+ }
698
+ }
699
+ }
700
+ function bn(t) {
701
+ return t.endsWith("capture") && t !== "gotpointercapture" && t !== "lostpointercapture";
702
+ }
703
+ const yn = [
704
+ "beforeinput",
705
+ "click",
706
+ "change",
707
+ "dblclick",
708
+ "contextmenu",
709
+ "focusin",
710
+ "focusout",
711
+ "input",
712
+ "keydown",
713
+ "keyup",
714
+ "mousedown",
715
+ "mousemove",
716
+ "mouseout",
717
+ "mouseover",
718
+ "mouseup",
719
+ "pointerdown",
720
+ "pointermove",
721
+ "pointerout",
722
+ "pointerover",
723
+ "pointerup",
724
+ "touchend",
725
+ "touchmove",
726
+ "touchstart"
727
+ ];
728
+ function An(t) {
729
+ return yn.includes(t);
730
+ }
731
+ const Tn = {
732
+ // no `class: 'className'` because we handle that separately
733
+ formnovalidate: "formNoValidate",
734
+ ismap: "isMap",
735
+ nomodule: "noModule",
736
+ playsinline: "playsInline",
737
+ readonly: "readOnly",
738
+ defaultvalue: "defaultValue",
739
+ defaultchecked: "defaultChecked",
740
+ srcobject: "srcObject",
741
+ novalidate: "noValidate",
742
+ allowfullscreen: "allowFullscreen",
743
+ disablepictureinpicture: "disablePictureInPicture",
744
+ disableremoteplayback: "disableRemotePlayback"
745
+ };
746
+ function Sn(t) {
747
+ return t = t.toLowerCase(), Tn[t] ?? t;
748
+ }
749
+ const kn = ["touchstart", "touchmove"];
750
+ function mn(t) {
751
+ return kn.includes(t);
752
+ }
753
+ function Nn(t, r) {
754
+ if (r) {
755
+ const n = document.body;
756
+ t.autofocus = !0, Nt(() => {
757
+ document.activeElement === n && t.focus();
758
+ });
759
+ }
760
+ }
761
+ function On(t) {
762
+ var r = v, n = g;
763
+ F(null), P(null);
764
+ try {
765
+ return t();
766
+ } finally {
767
+ F(r), P(n);
768
+ }
769
+ }
770
+ const dr = /* @__PURE__ */ new Set(), At = /* @__PURE__ */ new Set();
771
+ function Cn(t, r, n, e = {}) {
772
+ function u(l) {
773
+ if (e.capture || Y.call(r, l), !l.cancelBubble)
774
+ return On(() => n == null ? void 0 : n.call(this, l));
775
+ }
776
+ return t.startsWith("pointer") || t.startsWith("touch") || t === "wheel" ? Nt(() => {
777
+ r.addEventListener(t, u, e);
778
+ }) : r.addEventListener(t, u, e), u;
779
+ }
780
+ function Dn(t) {
781
+ for (var r = 0; r < t.length; r++)
782
+ dr.add(t[r]);
783
+ for (var n of At)
784
+ n(t);
785
+ }
786
+ function Y(t) {
787
+ var vt;
788
+ var r = this, n = (
789
+ /** @type {Node} */
790
+ r.ownerDocument
791
+ ), e = t.type, u = ((vt = t.composedPath) == null ? void 0 : vt.call(t)) || [], l = (
792
+ /** @type {null | Element} */
793
+ u[0] || t.target
794
+ ), i = 0, s = t.__root;
795
+ if (s) {
796
+ var o = u.indexOf(s);
797
+ if (o !== -1 && (r === document || r === /** @type {any} */
798
+ window)) {
799
+ t.__root = r;
800
+ return;
801
+ }
802
+ var c = u.indexOf(r);
803
+ if (c === -1)
804
+ return;
805
+ o <= c && (i = o);
806
+ }
807
+ if (l = /** @type {Element} */
808
+ u[i] || t.target, l !== r) {
809
+ Nr(t, "currentTarget", {
810
+ configurable: !0,
811
+ get() {
812
+ return l || n;
813
+ }
814
+ });
815
+ var w = v, a = g;
816
+ F(null), P(null);
817
+ try {
818
+ for (var f, _ = []; l !== null; ) {
819
+ var y = l.assignedSlot || l.parentNode || /** @type {any} */
820
+ l.host || null;
821
+ try {
822
+ var A = l["__" + e];
823
+ if (A != null && (!/** @type {any} */
824
+ l.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
825
+ // -> the target could not have been disabled because it emits the event in the first place
826
+ t.target === l))
827
+ if (Sr(A)) {
828
+ var [T, ...J] = A;
829
+ T.apply(l, [t, ...J]);
830
+ } else
831
+ A.call(l, t);
832
+ } catch (p) {
833
+ f ? _.push(p) : f = p;
834
+ }
835
+ if (t.cancelBubble || y === r || y === null)
836
+ break;
837
+ l = y;
838
+ }
839
+ if (f) {
840
+ for (let p of _)
841
+ queueMicrotask(() => {
842
+ throw p;
843
+ });
844
+ throw f;
845
+ }
846
+ } finally {
847
+ t.__root = r, delete t.currentTarget, F(w), P(a);
848
+ }
849
+ }
850
+ }
851
+ function In(t) {
852
+ var r = document.createElement("template");
853
+ return r.innerHTML = t, r.content;
854
+ }
855
+ function Ln(t, r) {
856
+ var n = (
857
+ /** @type {Effect} */
858
+ g
859
+ );
860
+ n.nodes_start === null && (n.nodes_start = t, n.nodes_end = r);
861
+ }
862
+ // @__NO_SIDE_EFFECTS__
863
+ function hr(t, r) {
864
+ var n = (r & Vr) !== 0, e, u = !t.startsWith("<!>");
865
+ return () => {
866
+ e === void 0 && (e = In(u ? t : "<!>" + t), e = /** @type {Node} */
867
+ /* @__PURE__ */ nr(e));
868
+ var l = (
869
+ /** @type {TemplateNode} */
870
+ n || Zt ? document.importNode(e, !0) : e.cloneNode(!0)
871
+ );
872
+ return Ln(l, l), l;
873
+ };
874
+ }
875
+ function gr(t, r) {
876
+ t !== null && t.before(
877
+ /** @type {Node} */
878
+ r
879
+ );
880
+ }
881
+ function Fn(t, r) {
882
+ return Pn(t, r);
883
+ }
884
+ const B = /* @__PURE__ */ new Map();
885
+ function Pn(t, { target: r, anchor: n, props: e = {}, events: u, context: l, intro: i = !0 }) {
886
+ Kr();
887
+ var s = /* @__PURE__ */ new Set(), o = (a) => {
888
+ for (var f = 0; f < a.length; f++) {
889
+ var _ = a[f];
890
+ if (!s.has(_)) {
891
+ s.add(_);
892
+ var y = mn(_);
893
+ r.addEventListener(_, Y, { passive: y });
894
+ var A = B.get(_);
895
+ A === void 0 ? (document.addEventListener(_, Y, { passive: y }), B.set(_, 1)) : B.set(_, A + 1);
896
+ }
897
+ }
898
+ };
899
+ o(mr(dr)), At.add(o);
900
+ var c = void 0, w = Zr(() => {
901
+ var a = n ?? r.appendChild(Wr());
902
+ return nn(() => {
903
+ if (l) {
904
+ Tt({});
905
+ var f = (
906
+ /** @type {ComponentContext} */
907
+ h
908
+ );
909
+ f.c = l;
910
+ }
911
+ u && (e.$$events = u), c = t(a, e) || {}, l && St();
912
+ }), () => {
913
+ var y;
914
+ for (var f of s) {
915
+ r.removeEventListener(f, Y);
916
+ var _ = (
917
+ /** @type {number} */
918
+ B.get(f)
919
+ );
920
+ --_ === 0 ? (document.removeEventListener(f, Y), B.delete(f)) : B.set(f, _);
921
+ }
922
+ At.delete(o), a !== n && ((y = a.parentNode) == null || y.removeChild(a));
923
+ };
924
+ });
925
+ return Rn.set(c, w), c;
926
+ }
927
+ let Rn = /* @__PURE__ */ new WeakMap();
928
+ function wr(t) {
929
+ var r, n, e = "";
930
+ if (typeof t == "string" || typeof t == "number") e += t;
931
+ else if (typeof t == "object") if (Array.isArray(t)) {
932
+ var u = t.length;
933
+ for (r = 0; r < u; r++) t[r] && (n = wr(t[r])) && (e && (e += " "), e += n);
934
+ } else for (n in t) t[n] && (e && (e += " "), e += n);
935
+ return e;
936
+ }
937
+ function Mn() {
938
+ for (var t, r, n = 0, e = "", u = arguments.length; n < u; n++) (t = arguments[n]) && (r = wr(t)) && (e && (e += " "), e += r);
939
+ return e;
940
+ }
941
+ function jn(t) {
942
+ return typeof t == "object" ? Mn(t) : t ?? "";
943
+ }
944
+ const jt = [...`
945
+ \r\f \v\uFEFF`];
946
+ function Vn(t, r, n) {
947
+ var e = t == null ? "" : "" + t;
948
+ if (n) {
949
+ for (var u in n)
950
+ if (n[u])
951
+ e = e ? e + " " + u : u;
952
+ else if (e.length)
953
+ for (var l = u.length, i = 0; (i = e.indexOf(u, i)) >= 0; ) {
954
+ var s = i + l;
955
+ (i === 0 || jt.includes(e[i - 1])) && (s === e.length || jt.includes(e[s])) ? e = (i === 0 ? "" : e.substring(0, i)) + e.substring(s + 1) : i = s;
956
+ }
957
+ }
958
+ return e === "" ? null : e;
959
+ }
960
+ function Vt(t, r = !1) {
961
+ var n = r ? " !important;" : ";", e = "";
962
+ for (var u in t) {
963
+ var l = t[u];
964
+ l != null && l !== "" && (e += " " + u + ": " + l + n);
965
+ }
966
+ return e;
967
+ }
968
+ function _t(t) {
969
+ return t[0] !== "-" || t[1] !== "-" ? t.toLowerCase() : t;
970
+ }
971
+ function $n(t, r) {
972
+ if (r) {
973
+ var n = "", e, u;
974
+ if (Array.isArray(r) ? (e = r[0], u = r[1]) : e = r, t) {
975
+ t = String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
976
+ var l = !1, i = 0, s = !1, o = [];
977
+ e && o.push(...Object.keys(e).map(_t)), u && o.push(...Object.keys(u).map(_t));
978
+ var c = 0, w = -1;
979
+ const A = t.length;
980
+ for (var a = 0; a < A; a++) {
981
+ var f = t[a];
982
+ if (s ? f === "/" && t[a - 1] === "*" && (s = !1) : l ? l === f && (l = !1) : f === "/" && t[a + 1] === "*" ? s = !0 : f === '"' || f === "'" ? l = f : f === "(" ? i++ : f === ")" && i--, !s && l === !1 && i === 0) {
983
+ if (f === ":" && w === -1)
984
+ w = a;
985
+ else if (f === ";" || a === A - 1) {
986
+ if (w !== -1) {
987
+ var _ = _t(t.substring(c, w).trim());
988
+ if (!o.includes(_)) {
989
+ f !== ";" && a++;
990
+ var y = t.substring(c, a).trim();
991
+ n += " " + y + ";";
992
+ }
993
+ }
994
+ c = a + 1, w = -1;
995
+ }
996
+ }
997
+ }
998
+ }
999
+ return e && (n += Vt(e)), u && (n += Vt(u, !0)), n = n.trim(), n === "" ? null : n;
1000
+ }
1001
+ return t == null ? null : String(t);
1002
+ }
1003
+ function Bn(t, r, n, e, u, l) {
1004
+ var i = t.__className;
1005
+ if (i !== n || i === void 0) {
1006
+ var s = Vn(n, e, l);
1007
+ s == null ? t.removeAttribute("class") : r ? t.className = s : t.setAttribute("class", s), t.__className = n;
1008
+ } else if (l && u !== l)
1009
+ for (var o in l) {
1010
+ var c = !!l[o];
1011
+ (u == null || c !== !!u[o]) && t.classList.toggle(o, c);
1012
+ }
1013
+ return l;
1014
+ }
1015
+ function dt(t, r = {}, n, e) {
1016
+ for (var u in n) {
1017
+ var l = n[u];
1018
+ r[u] !== l && (n[u] == null ? t.style.removeProperty(u) : t.style.setProperty(u, l, e));
1019
+ }
1020
+ }
1021
+ function Un(t, r, n, e) {
1022
+ var u = t.__style;
1023
+ if (u !== r) {
1024
+ var l = $n(r, e);
1025
+ l == null ? t.removeAttribute("style") : t.style.cssText = l, t.__style = r;
1026
+ } else e && (Array.isArray(e) ? (dt(t, n == null ? void 0 : n[0], e[0]), dt(t, n == null ? void 0 : n[1], e[1], "important")) : dt(t, n, e));
1027
+ return e;
1028
+ }
1029
+ const q = Symbol("class"), x = Symbol("style"), Er = Symbol("is custom element"), br = Symbol("is html");
1030
+ function qn(t, r) {
1031
+ r ? t.hasAttribute("selected") || t.setAttribute("selected", "") : t.removeAttribute("selected");
1032
+ }
1033
+ function $t(t, r, n, e) {
1034
+ var u = yr(t);
1035
+ u[r] !== (u[r] = n) && (r === "loading" && (t[Lr] = n), n == null ? t.removeAttribute(r) : typeof n != "string" && Ar(t).includes(r) ? t[r] = n : t.setAttribute(r, n));
1036
+ }
1037
+ function xn(t, r, n, e, u = !1) {
1038
+ var l = yr(t), i = l[Er], s = !l[br], o = r || {}, c = t.tagName === "OPTION";
1039
+ for (var w in r)
1040
+ w in n || (n[w] = null);
1041
+ n.class ? n.class = jn(n.class) : n[q] && (n.class = null), n[x] && (n.style ?? (n.style = null));
1042
+ var a = Ar(t);
1043
+ for (const p in n) {
1044
+ let d = n[p];
1045
+ if (c && p === "value" && d == null) {
1046
+ t.value = t.__value = "", o[p] = d;
1047
+ continue;
1048
+ }
1049
+ if (p === "class") {
1050
+ var f = t.namespaceURI === "http://www.w3.org/1999/xhtml";
1051
+ Bn(t, f, d, e, r == null ? void 0 : r[q], n[q]), o[p] = d, o[q] = n[q];
1052
+ continue;
1053
+ }
1054
+ if (p === "style") {
1055
+ Un(t, d, r == null ? void 0 : r[x], n[x]), o[p] = d, o[x] = n[x];
1056
+ continue;
1057
+ }
1058
+ var _ = o[p];
1059
+ if (d !== _) {
1060
+ o[p] = d;
1061
+ var y = p[0] + p[1];
1062
+ if (y !== "$$")
1063
+ if (y === "on") {
1064
+ const S = {}, $ = "$$" + p;
1065
+ let E = p.slice(2);
1066
+ var A = An(E);
1067
+ if (bn(E) && (E = E.slice(0, -7), S.capture = !0), !A && _) {
1068
+ if (d != null) continue;
1069
+ t.removeEventListener(E, o[$], S), o[$] = null;
1070
+ }
1071
+ if (d != null)
1072
+ if (A)
1073
+ t[`__${E}`] = d, Dn([E]);
1074
+ else {
1075
+ let Dt = function(Tr) {
1076
+ o[p].call(this, Tr);
1077
+ };
1078
+ var vt = Dt;
1079
+ o[$] = Cn(E, t, Dt, S);
1080
+ }
1081
+ else A && (t[`__${E}`] = void 0);
1082
+ } else if (p === "style")
1083
+ $t(t, p, d);
1084
+ else if (p === "autofocus")
1085
+ Nn(
1086
+ /** @type {HTMLElement} */
1087
+ t,
1088
+ !!d
1089
+ );
1090
+ else if (!i && (p === "__value" || p === "value" && d != null))
1091
+ t.value = t.__value = d;
1092
+ else if (p === "selected" && c)
1093
+ qn(
1094
+ /** @type {HTMLOptionElement} */
1095
+ t,
1096
+ d
1097
+ );
1098
+ else {
1099
+ var T = p;
1100
+ s || (T = Sn(T));
1101
+ var J = T === "defaultValue" || T === "defaultChecked";
1102
+ if (d == null && !i && !J)
1103
+ if (l[p] = null, T === "value" || T === "checked") {
1104
+ let S = (
1105
+ /** @type {HTMLInputElement} */
1106
+ t
1107
+ );
1108
+ const $ = r === void 0;
1109
+ if (T === "value") {
1110
+ let E = S.defaultValue;
1111
+ S.removeAttribute(T), S.defaultValue = E, S.value = S.__value = $ ? E : null;
1112
+ } else {
1113
+ let E = S.defaultChecked;
1114
+ S.removeAttribute(T), S.defaultChecked = E, S.checked = $ ? E : !1;
1115
+ }
1116
+ } else
1117
+ t.removeAttribute(p);
1118
+ else J || a.includes(T) && (i || typeof d != "string") ? t[T] = d : typeof d != "function" && $t(t, T, d);
1119
+ }
1120
+ }
1121
+ }
1122
+ return o;
1123
+ }
1124
+ function yr(t) {
1125
+ return (
1126
+ /** @type {Record<string | symbol, unknown>} **/
1127
+ // @ts-expect-error
1128
+ t.__attributes ?? (t.__attributes = {
1129
+ [Er]: t.nodeName.includes("-"),
1130
+ [br]: t.namespaceURI === $r
1131
+ })
1132
+ );
1133
+ }
1134
+ var Bt = /* @__PURE__ */ new Map();
1135
+ function Ar(t) {
1136
+ var r = Bt.get(t.nodeName);
1137
+ if (r) return r;
1138
+ Bt.set(t.nodeName, r = []);
1139
+ for (var n, e = t, u = Element.prototype; u !== e; ) {
1140
+ n = Ht(e);
1141
+ for (var l in n)
1142
+ n[l].set && r.push(l);
1143
+ e = Kt(e);
1144
+ }
1145
+ return r;
1146
+ }
1147
+ function Ut(t, r) {
1148
+ return t === r || (t == null ? void 0 : t[gt]) === r;
1149
+ }
1150
+ function Yn(t = {}, r, n, e) {
1151
+ return mt(() => {
1152
+ var u, l;
1153
+ return lr(() => {
1154
+ u = l, l = [], Ct(() => {
1155
+ t !== n(...l) && (r(t, ...l), u && Ut(n(...u), t) && r(null, ...u));
1156
+ });
1157
+ }), () => {
1158
+ Nt(() => {
1159
+ l && Ut(n(...l), t) && r(null, ...l);
1160
+ });
1161
+ };
1162
+ }), t;
1163
+ }
1164
+ function Hn(t = !1) {
1165
+ const r = (
1166
+ /** @type {ComponentContextLegacy} */
1167
+ h
1168
+ ), n = r.l.u;
1169
+ if (!n) return;
1170
+ let e = () => En(r.s);
1171
+ if (t) {
1172
+ let u = 0, l = (
1173
+ /** @type {Record<string, any>} */
1174
+ {}
1175
+ );
1176
+ const i = /* @__PURE__ */ kt(() => {
1177
+ let s = !1;
1178
+ const o = r.s;
1179
+ for (const c in o)
1180
+ o[c] !== l[c] && (l[c] = o[c], s = !0);
1181
+ return s && u++, u;
1182
+ });
1183
+ e = () => pt(i);
1184
+ }
1185
+ n.b.length && Xr(() => {
1186
+ qt(r, e), X(n.b);
1187
+ }), Et(() => {
1188
+ const u = Ct(() => n.m.map(Or));
1189
+ return () => {
1190
+ for (const l of u)
1191
+ typeof l == "function" && l();
1192
+ };
1193
+ }), n.a.length && Et(() => {
1194
+ qt(r, e), X(n.a);
1195
+ });
1196
+ }
1197
+ function qt(t, r) {
1198
+ if (t.l.s)
1199
+ for (const n of t.l.s) pt(n);
1200
+ r();
1201
+ }
1202
+ const Kn = {
1203
+ get(t, r) {
1204
+ if (!t.exclude.includes(r))
1205
+ return t.props[r];
1206
+ },
1207
+ set(t, r) {
1208
+ return !1;
1209
+ },
1210
+ getOwnPropertyDescriptor(t, r) {
1211
+ if (!t.exclude.includes(r) && r in t.props)
1212
+ return {
1213
+ enumerable: !0,
1214
+ configurable: !0,
1215
+ value: t.props[r]
1216
+ };
1217
+ },
1218
+ has(t, r) {
1219
+ return t.exclude.includes(r) ? !1 : r in t.props;
1220
+ },
1221
+ ownKeys(t) {
1222
+ return Reflect.ownKeys(t.props).filter((r) => !t.exclude.includes(r));
1223
+ }
1224
+ };
1225
+ // @__NO_SIDE_EFFECTS__
1226
+ function Wn(t, r, n) {
1227
+ return new Proxy(
1228
+ { props: t, exclude: r },
1229
+ Kn
1230
+ );
1231
+ }
1232
+ function Gn(t) {
1233
+ h === null && Br(), ft && h.l !== null ? zn(h).m.push(t) : Et(() => {
1234
+ const r = Ct(t);
1235
+ if (typeof r == "function") return (
1236
+ /** @type {() => void} */
1237
+ r
1238
+ );
1239
+ });
1240
+ }
1241
+ function zn(t) {
1242
+ var r = (
1243
+ /** @type {ComponentContextLegacy} */
1244
+ t.l
1245
+ );
1246
+ return r.u ?? (r.u = { a: [], b: [], m: [] });
1247
+ }
1248
+ const Jn = "5";
1249
+ var Yt;
1250
+ typeof window < "u" && ((Yt = window.__svelte ?? (window.__svelte = {})).v ?? (Yt.v = /* @__PURE__ */ new Set())).add(Jn);
1251
+ jr();
1252
+ const Qn = async (t, r) => {
1253
+ var n;
1254
+ if (await Xn(t, {
1255
+ id: r,
1256
+ type: "module",
1257
+ async: !0,
1258
+ defer: !0
1259
+ }), ((n = window.procaptcha) == null ? void 0 : n.render) === void 0)
1260
+ throw new Error("Render script does not contain the render function");
1261
+ return window.procaptcha.render;
1262
+ }, Xn = async (t, r) => {
1263
+ const n = document.createElement("script"), e = {
1264
+ src: t,
1265
+ ...r
1266
+ };
1267
+ Object.assign(n, e), await Zn(document.head, n);
1268
+ }, Zn = async (t, r) => new Promise((n, e) => {
1269
+ r.onload = () => {
1270
+ n();
1271
+ }, r.onerror = (u) => {
1272
+ e(u);
1273
+ }, t.appendChild(r);
1274
+ }), te = (t) => {
1275
+ let r;
1276
+ const n = async () => (r || (r = await Qn(
1277
+ t.scriptUrl,
1278
+ t.scriptId
1279
+ )), r);
1280
+ return async (e, u) => {
1281
+ const l = Object.assign({}, u);
1282
+ await (await n())(e, l);
1283
+ };
1284
+ }, re = te({
1285
+ // @ts-expect-error
1286
+ scriptUrl: "https://js.prosopo.io/js/procaptcha.bundle.js",
1287
+ // @ts-expect-error
1288
+ scriptId: "procaptcha-bundle"
1289
+ });
1290
+ var ne = /* @__PURE__ */ hr("<div></div>");
1291
+ function ee(t, r) {
1292
+ Tt(r, !0);
1293
+ const n = /* @__PURE__ */ Wn(r, ["$$slots", "$$events", "$$legacy"]), e = /* @__PURE__ */ qr(() => r.htmlAttributes || {});
1294
+ let u;
1295
+ Gn(() => {
1296
+ gn().then(() => {
1297
+ re(u, n);
1298
+ });
1299
+ });
1300
+ var l = ne();
1301
+ let i;
1302
+ Yn(l, (s) => u = s, () => u), tn(() => i = xn(l, i, { ...pt(e) })), gr(t, l), St();
1303
+ }
1304
+ var le = /* @__PURE__ */ hr("<div><!></div>");
1305
+ function ue(t, r) {
1306
+ Tt(r, !1);
1307
+ const n = "5ELgu7KjFXBQcFVZcJotKgTRoxsmsvmp8V4GqAU8J56z4PNY", e = (i) => {
1308
+ console.log("verified", i);
1309
+ };
1310
+ Hn();
1311
+ var u = le(), l = zr(u);
1312
+ ee(l, {
1313
+ siteKey: n,
1314
+ captchaType: "pow",
1315
+ language: "en",
1316
+ callback: e,
1317
+ htmlAttributes: { class: "my-app__procaptcha" }
1318
+ }), gr(t, u), St();
1319
+ }
1320
+ const xt = document.getElementById("root");
1321
+ if (xt instanceof HTMLElement)
1322
+ Fn(ue, {
1323
+ target: xt
1324
+ });
1325
+ else
1326
+ throw new Error("root element not found");
@@ -0,0 +1 @@
1
+ export { SvelteComponent as default } from 'svelte';
package/index.html ADDED
@@ -0,0 +1,14 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+
7
+ <title>Svelte Integration Demo</title>
8
+ </head>
9
+ <body>
10
+ <noscript>You need to enable JavaScript to run this app.</noscript>
11
+ <div id="root"></div>
12
+ <script type="module" src="src/index.ts"></script>
13
+ </body>
14
+ </html>
package/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "@prosopo/svelte-procaptcha-integration-demo",
3
+ "version": "1.0.0",
4
+ "type": "module",
5
+ "engines": {
6
+ "node": "20",
7
+ "npm": "10.8.2"
8
+ },
9
+ "main": "dist/index.js",
10
+ "types": "dist/index.d.ts",
11
+ "scripts": {
12
+ "test": "echo \"No test specified\"",
13
+ "clean": "del-cli ./dist",
14
+ "build": "npx vite build",
15
+ "dev": "npx vite dev --port=9332"
16
+ },
17
+ "dependencies": {
18
+ "@prosopo/svelte-procaptcha-wrapper": "1.0.0",
19
+ "svelte": "^5.0.0"
20
+ },
21
+ "devDependencies": {
22
+ "@prosopo/procaptcha-integration-build-config": "1.0.0",
23
+ "@sveltejs/vite-plugin-svelte": "5.0.3",
24
+ "del-cli": "6.0.0"
25
+ },
26
+ "author": "PROSOPO LIMITED <info@prosopo.io>",
27
+ "license": "Apache-2.0",
28
+ "bugs": {
29
+ "url": "https://github.com/prosopo/captcha/issues"
30
+ },
31
+ "homepage": "https://github.com/prosopo/captcha#readme",
32
+ "sideEffects": false
33
+ }
package/readme.md ADDED
@@ -0,0 +1,4 @@
1
+ # Svelte Procaptcha Integration demo
2
+
3
+ It's a demo Svelte application that showcases usage of `@prosopo/svelte-procaptcha-wrapper`, the Svelte Procaptcha
4
+ integration component.
package/vite.config.ts ADDED
@@ -0,0 +1,24 @@
1
+ // Copyright 2021-2025 Prosopo (UK) Ltd.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ import { createIntegrationViteConfig } from "@prosopo/procaptcha-integration-build-config";
16
+ import { svelte } from "@sveltejs/vite-plugin-svelte";
17
+
18
+ export default createIntegrationViteConfig({
19
+ name: "SvelteProcaptchaIntegrationDemo",
20
+ directory: __dirname,
21
+ viteSettings: {
22
+ plugins: [svelte()],
23
+ },
24
+ });