@retoo/borda 0.0.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.
@@ -0,0 +1,4616 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }), "undefined" != typeof window && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
2
+ var e = {}, t = Symbol("uninitialized"), n = Array.isArray, r = Array.prototype.indexOf, o = Array.prototype.includes, i = Array.from, a = Object.defineProperty, l = Object.getOwnPropertyDescriptor, u = Object.getOwnPropertyDescriptors, c = Object.prototype, f = Array.prototype, d = Object.getPrototypeOf, p = Object.isExtensible;
3
+ function h(e) {
4
+ return "function" == typeof e;
5
+ }
6
+ var v = () => {};
7
+ function g() {
8
+ var e, t;
9
+ return {
10
+ promise: new Promise((n, r) => {
11
+ e = n, t = r;
12
+ }),
13
+ resolve: e,
14
+ reject: t
15
+ };
16
+ }
17
+ var m = 1024, _ = 2048, b = 4096, y = 8192, T = 32768, w = 1 << 25, E = 65536, S = 1 << 19, O = 1 << 25, x = 65536, C = 1 << 21, N = 1 << 23, k = Symbol("$state"), A = Symbol("legacy props"), P = Symbol(""), D = Symbol("attributes"), L = Symbol("class"), R = Symbol("style"), M = Symbol("text"), I = Symbol("form reset"), B = new class extends Error {
18
+ name = "StaleReactionError";
19
+ message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
20
+ }(), $ = !!globalThis.document?.contentType && globalThis.document.contentType.includes("xml");
21
+ function H(e) {
22
+ throw new Error("https://svelte.dev/e/lifecycle_outside_component");
23
+ }
24
+ function j(e, t, n) {
25
+ throw new Error("https://svelte.dev/e/each_key_duplicate");
26
+ }
27
+ function F(e) {
28
+ console.warn("https://svelte.dev/e/hydration_mismatch");
29
+ }
30
+ var z, U = !1;
31
+ function V(e) {
32
+ U = e;
33
+ }
34
+ function q(t) {
35
+ if (null === t) throw F(), e;
36
+ return z = t;
37
+ }
38
+ function K() {
39
+ return q(_t(z));
40
+ }
41
+ function G(t) {
42
+ if (U) {
43
+ if (null !== _t(z)) throw F(), e;
44
+ z = t;
45
+ }
46
+ }
47
+ function X(e = 1) {
48
+ if (U) {
49
+ for (var t = e, n = z; t--;) n = _t(n);
50
+ z = n;
51
+ }
52
+ }
53
+ function W(e = !0) {
54
+ for (var t = 0, n = z;;) {
55
+ if (8 === n.nodeType) {
56
+ var r = n.data;
57
+ if ("]" === r) {
58
+ if (0 === t) return n;
59
+ t -= 1;
60
+ } else ("[" === r || "[!" === r || "[" === r[0] && !isNaN(Number(r.slice(1)))) && (t += 1);
61
+ }
62
+ var o = _t(n);
63
+ e && n.remove(), n = o;
64
+ }
65
+ }
66
+ function Y(t) {
67
+ if (!t || 8 !== t.nodeType) throw F(), e;
68
+ return t.data;
69
+ }
70
+ function Z(e) {
71
+ return e === this.v;
72
+ }
73
+ function J(e) {
74
+ return t = e, n = this.v, !(t != t ? n == n : t !== n || null !== t && "object" == typeof t || "function" == typeof t);
75
+ var t, n;
76
+ }
77
+ var Q = !1;
78
+ var ee = null;
79
+ function te(e) {
80
+ ee = e;
81
+ }
82
+ function ne(e, t = !1, n) {
83
+ ee = {
84
+ p: ee,
85
+ i: !1,
86
+ c: null,
87
+ e: null,
88
+ s: e,
89
+ x: null,
90
+ r: rn,
91
+ l: Q && !t ? {
92
+ s: null,
93
+ u: null,
94
+ $: []
95
+ } : null
96
+ };
97
+ }
98
+ function re(e) {
99
+ var t = ee, n = t.e;
100
+ if (null !== n) for (var r of (t.e = null, n)) Lt(r);
101
+ return void 0 !== e && (t.x = e), t.i = !0, ee = t.p, e ?? {};
102
+ }
103
+ function oe() {
104
+ return !Q || null !== ee && null === ee.l;
105
+ }
106
+ function ie(e) {
107
+ return null === ee && H(), ee.c ??= new Map(function(e) {
108
+ let t = e.p;
109
+ for (; null !== t;) {
110
+ const e = t.c;
111
+ if (null !== e) return e;
112
+ t = t.p;
113
+ }
114
+ return null;
115
+ }(ee) || void 0);
116
+ }
117
+ var se = [];
118
+ function ae() {
119
+ var e = se;
120
+ se = [], function(e) {
121
+ for (var t = 0; t < e.length; t++) e[t]();
122
+ }(e);
123
+ }
124
+ function le(e) {
125
+ if (0 === se.length && !Be) {
126
+ var t = se;
127
+ queueMicrotask(() => {
128
+ t === se && ae();
129
+ });
130
+ }
131
+ se.push(e);
132
+ }
133
+ function ce(e) {
134
+ var t = rn;
135
+ if (null === t) return en.f |= N, e;
136
+ if (!(32768 & t.f || 4 & t.f)) throw e;
137
+ fe(e, t);
138
+ }
139
+ function fe(e, t) {
140
+ if (!(null !== t && 16384 & t.f)) {
141
+ for (; null !== t;) {
142
+ if (128 & t.f) {
143
+ if (!(32768 & t.f)) throw e;
144
+ try {
145
+ t.b.error(e);
146
+ return;
147
+ } catch (t) {
148
+ e = t;
149
+ }
150
+ }
151
+ t = t.parent;
152
+ }
153
+ throw e;
154
+ }
155
+ }
156
+ var de = -7169;
157
+ function pe(e, t) {
158
+ e.f = e.f & de | t;
159
+ }
160
+ function he(e) {
161
+ 512 & e.f || null === e.deps ? pe(e, m) : pe(e, b);
162
+ }
163
+ function ve(e) {
164
+ if (null !== e) for (const t of e) 2 & t.f && 65536 & t.f && (t.f ^= x, ve(t.deps));
165
+ }
166
+ function ge(e, t, n) {
167
+ 2048 & e.f ? t.add(e) : 4096 & e.f && n.add(e), ve(e.deps), pe(e, m);
168
+ }
169
+ var me = !1;
170
+ var _e = class {
171
+ parent;
172
+ is_pending = !1;
173
+ transform_error;
174
+ #e;
175
+ #t = U ? z : null;
176
+ #n;
177
+ #r;
178
+ #o;
179
+ #i = null;
180
+ #s = null;
181
+ #a = null;
182
+ #l = null;
183
+ #u = 0;
184
+ #c = 0;
185
+ #f = !1;
186
+ #d = /* @__PURE__ */ new Set();
187
+ #p = /* @__PURE__ */ new Set();
188
+ #h = null;
189
+ #v = function(e) {
190
+ let t, n = 0, r = et(0);
191
+ return () => {
192
+ At() && (wn(r), Mt(() => (0 === n && (t = On(() => e(() => st(r)))), n += 1, () => {
193
+ le(() => {
194
+ n -= 1, 0 === n && (t?.(), t = void 0, st(r));
195
+ });
196
+ })));
197
+ };
198
+ }(() => (this.#h = et(this.#u), () => {
199
+ this.#h = null;
200
+ }));
201
+ constructor(e, t, n, r) {
202
+ this.#e = e, this.#n = t, this.#r = (e) => {
203
+ var t = rn;
204
+ t.b = this, t.f |= 128, n(e);
205
+ }, this.parent = rn.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#o = Bt(() => {
206
+ if (U) {
207
+ const e = this.#t;
208
+ K();
209
+ const t = "[!" === e.data;
210
+ if (e.data.startsWith("[?")) {
211
+ const t = JSON.parse(e.data.slice(2));
212
+ this.#g(t);
213
+ } else t ? this.#m() : this.#_();
214
+ } else this.#b();
215
+ }, 589824), U && (this.#e = z);
216
+ }
217
+ #_() {
218
+ try {
219
+ this.#i = Ht(() => this.#r(this.#e));
220
+ } catch (e) {
221
+ this.error(e);
222
+ }
223
+ }
224
+ #g(e) {
225
+ const t = this.#n.failed;
226
+ t && (this.#a = Ht(() => {
227
+ t(this.#e, () => e, () => () => {});
228
+ }));
229
+ }
230
+ #m() {
231
+ const e = this.#n.pending;
232
+ e && (this.is_pending = !0, this.#s = Ht(() => e(this.#e)), le(() => {
233
+ var e = this.#l = document.createDocumentFragment(), t = gt();
234
+ e.append(t), this.#i = this.#y(() => Ht(() => this.#r(t))), 0 === this.#c && (this.#e.before(e), this.#l = null, qt(this.#s, () => {
235
+ this.#s = null;
236
+ }), this.#T(Le));
237
+ }));
238
+ }
239
+ #b() {
240
+ try {
241
+ if (this.is_pending = this.has_pending_snippet(), this.#c = 0, this.#u = 0, this.#i = Ht(() => {
242
+ this.#r(this.#e);
243
+ }), this.#c > 0) {
244
+ var e = this.#l = document.createDocumentFragment();
245
+ Wt(this.#i, e);
246
+ const t = this.#n.pending;
247
+ this.#s = Ht(() => t(this.#e));
248
+ } else this.#T(Le);
249
+ } catch (e) {
250
+ this.error(e);
251
+ }
252
+ }
253
+ #T(e) {
254
+ this.is_pending = !1, e.transfer_effects(this.#d, this.#p);
255
+ }
256
+ defer_effect(e) {
257
+ ge(e, this.#d, this.#p);
258
+ }
259
+ is_rendered() {
260
+ return !this.is_pending && (!this.parent || this.parent.is_rendered());
261
+ }
262
+ has_pending_snippet() {
263
+ return !!this.#n.pending;
264
+ }
265
+ #y(e) {
266
+ var t = rn, n = en, r = ee;
267
+ on(this.#o), nn(this.#o), te(this.#o.ctx);
268
+ try {
269
+ return Ue.ensure(), e();
270
+ } catch (e) {
271
+ return ce(e), null;
272
+ } finally {
273
+ on(t), nn(n), te(r);
274
+ }
275
+ }
276
+ #w(e, t) {
277
+ this.has_pending_snippet() ? (this.#c += e, 0 === this.#c && (this.#T(t), this.#s && qt(this.#s, () => {
278
+ this.#s = null;
279
+ }), this.#l && (this.#e.before(this.#l), this.#l = null))) : this.parent && this.parent.#w(e, t);
280
+ }
281
+ update_pending_count(e, t) {
282
+ this.#w(e, t), this.#u += e, this.#h && !this.#f && (this.#f = !0, le(() => {
283
+ this.#f = !1, this.#h && ot(this.#h, this.#u);
284
+ }));
285
+ }
286
+ get_effect_pending() {
287
+ return this.#v(), wn(this.#h);
288
+ }
289
+ error(e) {
290
+ if (!this.#n.onerror && !this.#n.failed) throw e;
291
+ Le?.is_fork ? (this.#i && Le.skip_effect(this.#i), this.#s && Le.skip_effect(this.#s), this.#a && Le.skip_effect(this.#a), Le.oncommit(() => {
292
+ this.#E(e);
293
+ })) : this.#E(e);
294
+ }
295
+ #E(e) {
296
+ this.#i && (zt(this.#i), this.#i = null), this.#s && (zt(this.#s), this.#s = null), this.#a && (zt(this.#a), this.#a = null), U && (q(this.#t), X(), q(W()));
297
+ var t = this.#n.onerror;
298
+ let n = this.#n.failed;
299
+ var r = !1, o = !1;
300
+ const i = () => {
301
+ r ? console.warn("https://svelte.dev/e/svelte_boundary_reset_noop") : (r = !0, o && function() {
302
+ throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
303
+ }(), null !== this.#a && qt(this.#a, () => {
304
+ this.#a = null;
305
+ }), this.#y(() => {
306
+ this.#b();
307
+ }));
308
+ }, s = (e) => {
309
+ try {
310
+ o = !0, t?.(e, i), o = !1;
311
+ } catch (e) {
312
+ fe(e, this.#o && this.#o.parent);
313
+ }
314
+ n && (this.#a = this.#y(() => {
315
+ try {
316
+ return Ht(() => {
317
+ var t = rn;
318
+ t.b = this, t.f |= 128, n(this.#e, () => e, () => i);
319
+ });
320
+ } catch (e) {
321
+ return fe(e, this.#o.parent), null;
322
+ }
323
+ }));
324
+ };
325
+ le(() => {
326
+ var t;
327
+ try {
328
+ t = this.transform_error(e);
329
+ } catch (e) {
330
+ fe(e, this.#o && this.#o.parent);
331
+ return;
332
+ }
333
+ null !== t && "object" == typeof t && "function" == typeof t.then ? t.then(s, (e) => fe(e, this.#o && this.#o.parent)) : s(t);
334
+ });
335
+ }
336
+ };
337
+ function be(e, t, n, r) {
338
+ const o = oe() ? we : xe;
339
+ var i = e.filter((e) => !e.settled), s = t.map(o);
340
+ if (0 !== n.length || 0 !== i.length) {
341
+ var a = rn, l = function() {
342
+ var e = rn, t = en, n = ee, r = Le;
343
+ return function(o = !0) {
344
+ on(e), nn(t), te(n), !o || 16384 & e.f || (r?.activate(), r?.apply());
345
+ };
346
+ }(), u = 1 === i.length ? i[0].promise : i.length > 1 ? Promise.all(i.map((e) => e.promise)) : null, c = Te();
347
+ 0 !== n.length ? u ? u.then(() => {
348
+ l(), d(), ye();
349
+ }) : d() : u.then(() => f([])).finally(c);
350
+ } else r(s);
351
+ function f(e) {
352
+ if (!(16384 & a.f)) {
353
+ l();
354
+ try {
355
+ r([...s, ...e]);
356
+ } catch (e) {
357
+ fe(e, a);
358
+ }
359
+ ye();
360
+ }
361
+ }
362
+ function d() {
363
+ Promise.all(n.map((e) => Se(e))).then(f).catch((e) => fe(e, a)).finally(c);
364
+ }
365
+ }
366
+ function ye(e = !0) {
367
+ on(null), nn(null), te(null), e && Le?.deactivate();
368
+ }
369
+ function Te() {
370
+ var e = rn, t = e.b, n = Le, r = !!t?.is_rendered();
371
+ return t?.update_pending_count(1, n), n.increment(r, e), () => {
372
+ t?.update_pending_count(-1, n), n.decrement(r, e);
373
+ };
374
+ }
375
+ function we(e) {
376
+ null !== rn && (rn.f |= S);
377
+ return {
378
+ ctx: ee,
379
+ deps: null,
380
+ effects: null,
381
+ equals: Z,
382
+ f: 2050,
383
+ fn: e,
384
+ reactions: null,
385
+ rv: 0,
386
+ v: t,
387
+ wv: 0,
388
+ parent: rn,
389
+ ac: null
390
+ };
391
+ }
392
+ var Ee = Symbol("obsolete");
393
+ function Se(e, n, r) {
394
+ let o = rn;
395
+ null === o && function() {
396
+ throw new Error("https://svelte.dev/e/async_derived_orphan");
397
+ }();
398
+ var i = void 0, s = et(t);
399
+ var a = !en, l = /* @__PURE__ */ new Set();
400
+ return function(e) {
401
+ kt(4718592, e);
402
+ }(() => {
403
+ var t = rn;
404
+ var n = g();
405
+ i = n.promise;
406
+ try {
407
+ Promise.resolve(e()).then(n.resolve, (e) => {
408
+ e !== B && n.reject(e);
409
+ }).finally(ye);
410
+ } catch (e) {
411
+ n.reject(e), ye();
412
+ }
413
+ var r = Le;
414
+ if (a) {
415
+ if (32768 & t.f) var u = Te();
416
+ if (o.b?.is_rendered()) r.async_deriveds.get(t)?.reject(Ee);
417
+ else for (const e of l.values()) e.reject(Ee);
418
+ l.add(n), r.async_deriveds.set(t, n);
419
+ }
420
+ const c = (e, t = void 0) => {
421
+ u?.(), l.delete(n), t !== Ee && (r.activate(), t ? (s.f |= N, ot(s, t)) : (8388608 & s.f && (s.f ^= N), ot(s, e)), r.deactivate());
422
+ };
423
+ n.promise.then(c, (e) => c(null, e || "unknown"));
424
+ }), Pt(() => {
425
+ for (const e of l) e.reject(Ee);
426
+ }), new Promise((e) => {
427
+ (function t(n) {
428
+ function r() {
429
+ n === i ? e(s) : t(i);
430
+ }
431
+ n.then(r, r);
432
+ })(i);
433
+ });
434
+ }
435
+ function Oe(e) {
436
+ const t = we(e);
437
+ return an(t), t;
438
+ }
439
+ function xe(e) {
440
+ const t = we(e);
441
+ return t.equals = J, t;
442
+ }
443
+ function Ce(e) {
444
+ var t = e.effects;
445
+ if (null !== t) {
446
+ e.effects = null;
447
+ for (var n = 0; n < t.length; n += 1) zt(t[n]);
448
+ }
449
+ }
450
+ function Ne(e) {
451
+ var n, r = rn, o = e.parent;
452
+ if (!Jt && null !== o && e.v !== t && 24576 & o.f) return console.warn("https://svelte.dev/e/derived_inert"), e.v;
453
+ on(o);
454
+ try {
455
+ e.f &= -65537, Ce(e), n = _n(e);
456
+ } finally {
457
+ on(r);
458
+ }
459
+ return n;
460
+ }
461
+ function ke(e) {
462
+ var t = Ne(e);
463
+ e.equals(t) || (e.wv = vn(), Le?.is_fork && null !== e.deps || (null !== Le ? (Le.capture(e, t, !0), Re?.capture(e, t, !0)) : e.v = t, null !== e.deps)) ? Jt || (null !== Me ? (At() || Le?.is_fork) && Me.set(e, t) : he(e)) : pe(e, m);
464
+ }
465
+ function Ae(e) {
466
+ if (null !== e.effects) for (const t of e.effects) t.teardown && null !== t.fn && Tn(t);
467
+ }
468
+ var Pe = null, De = null, Le = null, Re = null, Me = null, Ie = null, Be = !1, $e = !1, He = null, je = null, Fe = 0, ze = 1, Ue = class e {
469
+ id = ze++;
470
+ #S = !1;
471
+ linked = !0;
472
+ #O = null;
473
+ #x = null;
474
+ async_deriveds = /* @__PURE__ */ new Map();
475
+ current = /* @__PURE__ */ new Map();
476
+ previous = /* @__PURE__ */ new Map();
477
+ #C = /* @__PURE__ */ new Set();
478
+ #N = /* @__PURE__ */ new Set();
479
+ #k = 0;
480
+ #A = /* @__PURE__ */ new Map();
481
+ #P = null;
482
+ #D = [];
483
+ #L = [];
484
+ #d = /* @__PURE__ */ new Set();
485
+ #p = /* @__PURE__ */ new Set();
486
+ #R = /* @__PURE__ */ new Map();
487
+ #M = /* @__PURE__ */ new Set();
488
+ is_fork = !1;
489
+ #I = !1;
490
+ constructor() {
491
+ null === De ? Pe = De = this : (De.#x = this, this.#O = De), De = this;
492
+ }
493
+ #B() {
494
+ if (this.is_fork) return !0;
495
+ for (const n of this.#A.keys()) {
496
+ for (var e = n, t = !1; null !== e.parent;) {
497
+ if (this.#R.has(e)) {
498
+ t = !0;
499
+ break;
500
+ }
501
+ e = e.parent;
502
+ }
503
+ if (!t) return !0;
504
+ }
505
+ return !1;
506
+ }
507
+ skip_effect(e) {
508
+ this.#R.has(e) || this.#R.set(e, {
509
+ d: [],
510
+ m: []
511
+ }), this.#M.delete(e);
512
+ }
513
+ unskip_effect(e, t = (e) => this.schedule(e)) {
514
+ var n = this.#R.get(e);
515
+ if (n) {
516
+ for (var r of (this.#R.delete(e), n.d)) pe(r, _), t(r);
517
+ for (r of n.m) pe(r, b), t(r);
518
+ }
519
+ this.#M.add(e);
520
+ }
521
+ #$() {
522
+ this.#S = !0, Fe++ > 1e3 && (this.#H(), function() {
523
+ try {
524
+ (function() {
525
+ throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
526
+ })();
527
+ } catch (e) {
528
+ fe(e, Ie);
529
+ }
530
+ }());
531
+ for (const e of this.#d) this.#p.delete(e), pe(e, _), this.schedule(e);
532
+ for (const e of this.#p) pe(e, b), this.schedule(e);
533
+ const t = this.#D;
534
+ this.#D = [], this.apply();
535
+ var n = He = [], r = [], o = je = [];
536
+ for (const e of t) try {
537
+ this.#j(e, n, r);
538
+ } catch (t) {
539
+ throw Ye(e), this.#B() || this.discard(), t;
540
+ }
541
+ if (Le = null, o.length > 0) {
542
+ var i = e.ensure();
543
+ for (const e of o) i.schedule(e);
544
+ }
545
+ if (He = null, je = null, this.#B()) {
546
+ this.#F(r), this.#F(n);
547
+ for (const [e, t] of this.#R) We(e, t);
548
+ o.length > 0 && Le.#$();
549
+ return;
550
+ }
551
+ const s = this.#z();
552
+ if (s) return this.#F(r), this.#F(n), void s.#U(this);
553
+ this.#d.clear(), this.#p.clear();
554
+ for (const e of this.#C) e(this);
555
+ this.#C.clear(), Re = this, qe(r), qe(n), Re = null, this.#P?.resolve();
556
+ var a = Le;
557
+ if (0 !== this.#k || 0 !== this.#D.length && null === a || this.#H(), this.#D.length > 0) if (null !== a) {
558
+ const e = a;
559
+ e.#D.push(...this.#D.filter((t) => !e.#D.includes(t)));
560
+ } else a = this;
561
+ null !== a && a.#$();
562
+ }
563
+ #j(e, t, n) {
564
+ e.f ^= m;
565
+ for (var r = e.first; null !== r;) {
566
+ var o = r.f, i = !!(96 & o);
567
+ if (!(i && 1024 & o || 8192 & o || this.#R.has(r)) && null !== r.fn) {
568
+ i ? r.f ^= m : 4 & o ? t.push(r) : gn(r) && (16 & o && this.#p.add(r), Tn(r));
569
+ var s = r.first;
570
+ if (null !== s) {
571
+ r = s;
572
+ continue;
573
+ }
574
+ }
575
+ for (; null !== r;) {
576
+ var a = r.next;
577
+ if (null !== a) {
578
+ r = a;
579
+ break;
580
+ }
581
+ r = r.parent;
582
+ }
583
+ }
584
+ }
585
+ #z() {
586
+ for (var e = this.#O; null !== e;) {
587
+ if (!e.is_fork) {
588
+ for (const [t, [, n]] of this.current) if (e.current.has(t) && !n) return e;
589
+ }
590
+ e = e.#O;
591
+ }
592
+ return null;
593
+ }
594
+ #U(e) {
595
+ for (const [t, n] of e.current) !this.previous.has(t) && e.previous.has(t) && this.previous.set(t, e.previous.get(t)), this.current.set(t, n);
596
+ for (const [t, n] of e.async_deriveds) {
597
+ const e = this.async_deriveds.get(t);
598
+ e && n.promise.then(e.resolve).catch(e.reject);
599
+ }
600
+ e.async_deriveds.clear(), this.transfer_effects(e.#d, e.#p);
601
+ const t = (e) => {
602
+ var n = e.reactions;
603
+ if (null !== n) for (const e of n) {
604
+ var r = e.f;
605
+ if (2 & r) t(e);
606
+ else {
607
+ var o = e;
608
+ 4194320 & r && !this.async_deriveds.has(o) && (this.#p.delete(o), pe(o, _), this.schedule(o));
609
+ }
610
+ }
611
+ };
612
+ for (const e of this.current.keys()) t(e);
613
+ this.oncommit(() => e.discard()), e.#H(), Le = this, this.#$();
614
+ }
615
+ #F(e) {
616
+ for (var t = 0; t < e.length; t += 1) ge(e[t], this.#d, this.#p);
617
+ }
618
+ capture(e, n, r = !1) {
619
+ e.v === t || this.previous.has(e) || this.previous.set(e, e.v), 8388608 & e.f || (this.current.set(e, [n, r]), Me?.set(e, n)), this.is_fork || (e.v = n);
620
+ }
621
+ activate() {
622
+ Le = this;
623
+ }
624
+ deactivate() {
625
+ Le = null, Me = null;
626
+ }
627
+ flush() {
628
+ try {
629
+ $e = !0, Le = this, this.#$();
630
+ } finally {
631
+ Fe = 0, Ie = null, He = null, je = null, $e = !1, Le = null, Me = null, Je.clear();
632
+ }
633
+ }
634
+ discard() {
635
+ for (const e of this.#N) e(this);
636
+ this.#N.clear();
637
+ for (const e of this.async_deriveds.values()) e.reject(Ee);
638
+ this.#H(), this.#P?.resolve();
639
+ }
640
+ register_created_effect(e) {
641
+ this.#L.push(e);
642
+ }
643
+ #V() {
644
+ for (let c = Pe; null !== c; c = c.#x) {
645
+ var e = c.id < this.id, t = [];
646
+ for (const [r, [o, i]] of this.current) {
647
+ if (c.current.has(r)) {
648
+ var n = c.current.get(r)[0];
649
+ if (!e || o === n) continue;
650
+ c.current.set(r, [o, i]);
651
+ }
652
+ t.push(r);
653
+ }
654
+ if (e) for (const [e, t] of this.async_deriveds) {
655
+ const n = c.async_deriveds.get(e);
656
+ n && t.promise.then(n.resolve).catch(n.reject);
657
+ }
658
+ var r = [...c.current.keys()].filter((e) => !c.current.get(e)[1]);
659
+ if (c.#S && 0 !== r.length) {
660
+ var o = r.filter((e) => !this.current.has(e));
661
+ if (0 === o.length) e && c.discard();
662
+ else if (t.length > 0) {
663
+ if (e) for (const e of this.#M) c.unskip_effect(e, (e) => {
664
+ 4194320 & e.f ? c.schedule(e) : c.#F([e]);
665
+ });
666
+ c.activate();
667
+ var i = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map();
668
+ for (var a of t) Ke(a, o, i, s);
669
+ s = /* @__PURE__ */ new Map();
670
+ var l = [...c.current].filter(([e, t]) => {
671
+ const n = this.current.get(e);
672
+ return !n || n[0] !== t[0] || n[1] !== t[1];
673
+ }).map(([e]) => e);
674
+ if (l.length > 0) for (const e of this.#L) 155648 & e.f || !Ge(e, l, s) || (4194320 & e.f ? (pe(e, _), c.schedule(e)) : c.#d.add(e));
675
+ if (c.#D.length > 0 && !c.#I) {
676
+ for (var u of (c.apply(), c.#D)) c.#j(u, [], []);
677
+ c.#D = [];
678
+ }
679
+ c.deactivate();
680
+ }
681
+ }
682
+ }
683
+ }
684
+ increment(e, t) {
685
+ if (this.#k += 1, e) {
686
+ let e = this.#A.get(t) ?? 0;
687
+ this.#A.set(t, e + 1);
688
+ }
689
+ }
690
+ decrement(e, t) {
691
+ if (this.#k -= 1, e) {
692
+ let e = this.#A.get(t) ?? 0;
693
+ 1 === e ? this.#A.delete(t) : this.#A.set(t, e - 1);
694
+ }
695
+ this.#I || (this.#I = !0, le(() => {
696
+ this.#I = !1, this.linked && this.flush();
697
+ }));
698
+ }
699
+ transfer_effects(e, t) {
700
+ for (const t of e) this.#d.add(t);
701
+ for (const e of t) this.#p.add(e);
702
+ e.clear(), t.clear();
703
+ }
704
+ oncommit(e) {
705
+ this.#C.add(e);
706
+ }
707
+ ondiscard(e) {
708
+ this.#N.add(e);
709
+ }
710
+ settled() {
711
+ return (this.#P ??= g()).promise;
712
+ }
713
+ static ensure() {
714
+ if (null === Le) {
715
+ const t = Le = new e();
716
+ $e || Be || le(() => {
717
+ t.#S || t.flush();
718
+ });
719
+ }
720
+ return Le;
721
+ }
722
+ apply() {
723
+ Me = null;
724
+ }
725
+ schedule(e) {
726
+ if (Ie = e, !(e.b?.is_pending && 16777228 & e.f) || 32768 & e.f) {
727
+ for (var t = e; null !== t.parent;) {
728
+ var n = (t = t.parent).f;
729
+ if (!(null === He || t !== rn || null !== en && 2 & en.f)) return;
730
+ if (96 & n) {
731
+ if (!(1024 & n)) return;
732
+ t.f ^= m;
733
+ }
734
+ }
735
+ this.#D.push(t);
736
+ } else e.b.defer_effect(e);
737
+ }
738
+ #H() {
739
+ if (this.linked) {
740
+ var e = this.#O, t = this.#x;
741
+ null === e ? Pe = t : e.#x = t, null === t ? De = e : t.#O = e, this.linked = !1;
742
+ }
743
+ }
744
+ };
745
+ var Ve = null;
746
+ function qe(e) {
747
+ var t = e.length;
748
+ if (0 !== t) {
749
+ for (var n = 0; n < t;) {
750
+ var r = e[n++];
751
+ if (!(24576 & r.f) && gn(r) && (Ve = /* @__PURE__ */ new Set(), Tn(r), null === r.deps && null === r.first && null === r.nodes && null === r.teardown && null === r.ac && Vt(r), Ve?.size > 0)) {
752
+ Je.clear();
753
+ for (const e of Ve) {
754
+ if (24576 & e.f) continue;
755
+ const t = [e];
756
+ let n = e.parent;
757
+ for (; null !== n;) Ve.has(n) && (Ve.delete(n), t.push(n)), n = n.parent;
758
+ for (let e = t.length - 1; e >= 0; e--) {
759
+ const n = t[e];
760
+ 24576 & n.f || Tn(n);
761
+ }
762
+ }
763
+ Ve.clear();
764
+ }
765
+ }
766
+ Ve = null;
767
+ }
768
+ }
769
+ function Ke(e, t, n, r) {
770
+ if (!n.has(e) && (n.add(e), null !== e.reactions)) for (const o of e.reactions) {
771
+ const e = o.f;
772
+ 2 & e ? Ke(o, t, n, r) : 4194320 & e && !(2048 & e) && Ge(o, t, r) && (pe(o, _), Xe(o));
773
+ }
774
+ }
775
+ function Ge(e, t, n) {
776
+ const r = n.get(e);
777
+ if (void 0 !== r) return r;
778
+ if (null !== e.deps) for (const r of e.deps) {
779
+ if (o.call(t, r)) return !0;
780
+ if (2 & r.f && Ge(r, t, n)) return n.set(r, !0), !0;
781
+ }
782
+ return n.set(e, !1), !1;
783
+ }
784
+ function Xe(e) {
785
+ Le.schedule(e);
786
+ }
787
+ function We(e, t) {
788
+ if (!(32 & e.f && 1024 & e.f)) {
789
+ 2048 & e.f ? t.d.push(e) : 4096 & e.f && t.m.push(e), pe(e, m);
790
+ for (var n = e.first; null !== n;) We(n, t), n = n.next;
791
+ }
792
+ }
793
+ function Ye(e) {
794
+ pe(e, m);
795
+ for (var t = e.first; null !== t;) Ye(t), t = t.next;
796
+ }
797
+ var Ze = /* @__PURE__ */ new Set(), Je = /* @__PURE__ */ new Map();
798
+ var Qe = !1;
799
+ function et(e, t) {
800
+ return {
801
+ f: 0,
802
+ v: e,
803
+ reactions: null,
804
+ equals: Z,
805
+ rv: 0,
806
+ wv: 0
807
+ };
808
+ }
809
+ function tt(e, t) {
810
+ const n = et(e);
811
+ return an(n), n;
812
+ }
813
+ function nt(e, t = !1, n = !0) {
814
+ const r = et(e);
815
+ return t || (r.equals = J), Q && n && null !== ee && null !== ee.l && (ee.l.s ??= []).push(r), r;
816
+ }
817
+ function rt(e, t, n = !1) {
818
+ null !== en && (!tn || 131072 & en.f) && oe() && 4325394 & en.f && (null === sn || !sn.has(e)) && function() {
819
+ throw new Error("https://svelte.dev/e/state_unsafe_mutation");
820
+ }();
821
+ return ot(e, n ? lt(t) : t, je);
822
+ }
823
+ function ot(e, t, n = null) {
824
+ if (!e.equals(t)) {
825
+ Je.set(e, Jt ? t : e.v);
826
+ var r = Ue.ensure();
827
+ if (r.capture(e, t), 2 & e.f) {
828
+ const t = e;
829
+ 2048 & e.f && Ne(t), null === Me && he(t);
830
+ }
831
+ e.wv = vn(), at(e, _, n), oe() && null !== rn && 1024 & rn.f && !(96 & rn.f) && (null === cn ? function(e) {
832
+ cn = e;
833
+ }([e]) : cn.push(e)), !r.is_fork && Ze.size > 0 && !Qe && it();
834
+ }
835
+ return t;
836
+ }
837
+ function it() {
838
+ Qe = !1;
839
+ for (const e of Ze) {
840
+ let t;
841
+ 1024 & e.f && pe(e, b);
842
+ try {
843
+ t = gn(e);
844
+ } catch {
845
+ t = !0;
846
+ }
847
+ t && Tn(e);
848
+ }
849
+ Ze.clear();
850
+ }
851
+ function st(e) {
852
+ rt(e, e.v + 1);
853
+ }
854
+ function at(e, t, n) {
855
+ var r = e.reactions;
856
+ if (null !== r) for (var o = oe(), i = r.length, s = 0; s < i; s++) {
857
+ var a = r[s], l = a.f;
858
+ if (o || a !== rn) {
859
+ var u = 0 === (l & _);
860
+ if (u && pe(a, t), 131072 & l) Ze.add(a);
861
+ else if (2 & l) {
862
+ var c = a;
863
+ Me?.delete(c), 65536 & l || (!(512 & l) || null !== rn && 2097152 & rn.f || (a.f |= x), at(c, b, n));
864
+ } else if (u) {
865
+ var f = a;
866
+ 16 & l && null !== Ve && Ve.add(f), null !== n ? n.push(f) : Xe(f);
867
+ }
868
+ }
869
+ }
870
+ }
871
+ function lt(e) {
872
+ if ("object" != typeof e || null === e || k in e) return e;
873
+ const r = d(e);
874
+ if (r !== c && r !== f) return e;
875
+ var o = /* @__PURE__ */ new Map(), i = n(e), s = tt(0), a = pn, u = (e) => {
876
+ if (pn === a) return e();
877
+ var t = en, n = pn;
878
+ nn(null), hn(a);
879
+ var r = e();
880
+ return nn(t), hn(n), r;
881
+ };
882
+ i && o.set("length", tt(e.length));
883
+ return new Proxy(e, {
884
+ defineProperty(e, t, n) {
885
+ "value" in n && !1 !== n.configurable && !1 !== n.enumerable && !1 !== n.writable || function() {
886
+ throw new Error("https://svelte.dev/e/state_descriptors_fixed");
887
+ }();
888
+ var r = o.get(t);
889
+ return void 0 === r ? u(() => {
890
+ var e = tt(n.value);
891
+ return o.set(t, e), e;
892
+ }) : rt(r, n.value, !0), !0;
893
+ },
894
+ deleteProperty(e, n) {
895
+ var r = o.get(n);
896
+ if (void 0 === r) {
897
+ if (n in e) {
898
+ const e = u(() => tt(t));
899
+ o.set(n, e), st(s);
900
+ }
901
+ } else rt(r, t), st(s);
902
+ return !0;
903
+ },
904
+ get(n, r, i) {
905
+ if (r === k) return e;
906
+ var s = o.get(r), a = r in n;
907
+ if (void 0 !== s || a && !l(n, r)?.writable || (s = u(() => {
908
+ return tt(lt(a ? n[r] : t));
909
+ }), o.set(r, s)), void 0 !== s) {
910
+ var c = wn(s);
911
+ return c === t ? void 0 : c;
912
+ }
913
+ return Reflect.get(n, r, i);
914
+ },
915
+ getOwnPropertyDescriptor(e, n) {
916
+ var r = Reflect.getOwnPropertyDescriptor(e, n);
917
+ if (r && "value" in r) {
918
+ var i = o.get(n);
919
+ i && (r.value = wn(i));
920
+ } else if (void 0 === r) {
921
+ var s = o.get(n), a = s?.v;
922
+ if (void 0 !== s && a !== t) return {
923
+ enumerable: !0,
924
+ configurable: !0,
925
+ value: a,
926
+ writable: !0
927
+ };
928
+ }
929
+ return r;
930
+ },
931
+ has(e, n) {
932
+ if (n === k) return !0;
933
+ var r = o.get(n), i = void 0 !== r && r.v !== t || Reflect.has(e, n);
934
+ return !((void 0 !== r || null !== rn && (!i || l(e, n)?.writable)) && (void 0 === r && (r = u(() => {
935
+ return tt(i ? lt(e[n]) : t);
936
+ }), o.set(n, r)), wn(r) === t)) && i;
937
+ },
938
+ set(e, n, r, a) {
939
+ var c = o.get(n), f = n in e;
940
+ if (i && "length" === n) for (var d = r; d < c.v; d += 1) {
941
+ var p = o.get(d + "");
942
+ void 0 !== p ? rt(p, t) : d in e && (p = u(() => tt(t)), o.set(d + "", p));
943
+ }
944
+ void 0 === c ? f && !l(e, n)?.writable || (rt(c = u(() => tt(void 0)), lt(r)), o.set(n, c)) : (f = c.v !== t, rt(c, u(() => lt(r))));
945
+ var h = Reflect.getOwnPropertyDescriptor(e, n);
946
+ if (h?.set && h.set.call(a, r), !f) {
947
+ if (i && "string" == typeof n) {
948
+ var v = o.get("length"), g = Number(n);
949
+ Number.isInteger(g) && g >= v.v && rt(v, g + 1);
950
+ }
951
+ st(s);
952
+ }
953
+ return !0;
954
+ },
955
+ ownKeys(e) {
956
+ wn(s);
957
+ var n = Reflect.ownKeys(e).filter((e) => {
958
+ var n = o.get(e);
959
+ return void 0 === n || n.v !== t;
960
+ });
961
+ for (var [r, i] of o) i.v === t || r in e || n.push(r);
962
+ return n;
963
+ },
964
+ setPrototypeOf() {
965
+ (function() {
966
+ throw new Error("https://svelte.dev/e/state_prototype_fixed");
967
+ })();
968
+ }
969
+ });
970
+ }
971
+ function ut(e) {
972
+ try {
973
+ if (null !== e && "object" == typeof e && k in e) return e[k];
974
+ } catch {}
975
+ return e;
976
+ }
977
+ function ct(e, t) {
978
+ return Object.is(ut(e), ut(t));
979
+ }
980
+ var ft, dt, pt, ht;
981
+ new Set([
982
+ "copyWithin",
983
+ "fill",
984
+ "pop",
985
+ "push",
986
+ "reverse",
987
+ "shift",
988
+ "sort",
989
+ "splice",
990
+ "unshift"
991
+ ]);
992
+ function vt() {
993
+ if (void 0 === ft) {
994
+ ft = window, dt = /Firefox/.test(navigator.userAgent);
995
+ var e = Element.prototype, t = Node.prototype, n = Text.prototype;
996
+ pt = l(t, "firstChild").get, ht = l(t, "nextSibling").get, p(e) && (e[L] = void 0, e[D] = null, e[R] = void 0, e.__e = void 0), p(n) && (n[M] = void 0);
997
+ }
998
+ }
999
+ function gt(e = "") {
1000
+ return document.createTextNode(e);
1001
+ }
1002
+ function mt(e) {
1003
+ return pt.call(e);
1004
+ }
1005
+ function _t(e) {
1006
+ return ht.call(e);
1007
+ }
1008
+ function bt(e, t) {
1009
+ if (!U) return mt(e);
1010
+ var n = mt(z);
1011
+ if (null === n) n = z.appendChild(gt());
1012
+ else if (t && 3 !== n.nodeType) {
1013
+ var r = gt();
1014
+ return n?.before(r), q(r), r;
1015
+ }
1016
+ return t && St(n), q(n), n;
1017
+ }
1018
+ function yt(e, t = !1) {
1019
+ if (!U) {
1020
+ var n = mt(e);
1021
+ return n instanceof Comment && "" === n.data ? _t(n) : n;
1022
+ }
1023
+ if (t) {
1024
+ if (3 !== z?.nodeType) {
1025
+ var r = gt();
1026
+ return z?.before(r), q(r), r;
1027
+ }
1028
+ St(z);
1029
+ }
1030
+ return z;
1031
+ }
1032
+ function Tt(e, t = 1, n = !1) {
1033
+ let r = U ? z : e;
1034
+ for (var o; t--;) o = r, r = _t(r);
1035
+ if (!U) return r;
1036
+ if (n) {
1037
+ if (3 !== r?.nodeType) {
1038
+ var i = gt();
1039
+ return null === r ? o?.after(i) : r.before(i), q(i), i;
1040
+ }
1041
+ St(r);
1042
+ }
1043
+ return q(r), r;
1044
+ }
1045
+ function wt(e) {
1046
+ e.textContent = "";
1047
+ }
1048
+ function Et(e, t, n) {
1049
+ return null == t || "http://www.w3.org/1999/xhtml" === t ? n ? document.createElement(e, { is: n }) : document.createElement(e) : n ? document.createElementNS(t, e, { is: n }) : document.createElementNS(t, e);
1050
+ }
1051
+ function St(e) {
1052
+ if (e.nodeValue.length < 65536) return;
1053
+ let t = e.nextSibling;
1054
+ for (; null !== t && 3 === t.nodeType;) t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
1055
+ }
1056
+ function Ot(e, t) {
1057
+ if (t) {
1058
+ const t = document.body;
1059
+ e.autofocus = !0, le(() => {
1060
+ document.activeElement === t && e.focus();
1061
+ });
1062
+ }
1063
+ }
1064
+ var xt = !1;
1065
+ function Ct(e) {
1066
+ var t = en, n = rn;
1067
+ nn(null), on(null);
1068
+ try {
1069
+ return e();
1070
+ } finally {
1071
+ nn(t), on(n);
1072
+ }
1073
+ }
1074
+ function Nt(e) {
1075
+ null === rn && (null === en && function() {
1076
+ throw new Error("https://svelte.dev/e/effect_orphan");
1077
+ }(), function() {
1078
+ throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
1079
+ }()), Jt && function() {
1080
+ throw new Error("https://svelte.dev/e/effect_in_teardown");
1081
+ }();
1082
+ }
1083
+ function kt(e, t) {
1084
+ var n = rn;
1085
+ null !== n && 8192 & n.f && (e |= y);
1086
+ var r = {
1087
+ ctx: ee,
1088
+ deps: null,
1089
+ nodes: null,
1090
+ f: e | _ | 512,
1091
+ first: null,
1092
+ fn: t,
1093
+ last: null,
1094
+ next: null,
1095
+ parent: n,
1096
+ b: n && n.b,
1097
+ prev: null,
1098
+ teardown: null,
1099
+ wv: 0,
1100
+ ac: null
1101
+ };
1102
+ Le?.register_created_effect(r);
1103
+ var o = r;
1104
+ if (4 & e) null !== He ? He.push(r) : Ue.ensure().schedule(r);
1105
+ else if (null !== t) {
1106
+ try {
1107
+ Tn(r);
1108
+ } catch (o) {
1109
+ throw zt(r), o;
1110
+ }
1111
+ null !== o.deps || null !== o.teardown || null !== o.nodes || o.first !== o.last || 524288 & o.f || (o = o.first, 16 & e && 65536 & e && null !== o && (o.f |= E));
1112
+ }
1113
+ if (null !== o && (o.parent = n, null !== n && function(e, t) {
1114
+ var n = t.last;
1115
+ null === n ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
1116
+ }(o, n), null !== en && 2 & en.f && !(64 & e))) {
1117
+ var i = en;
1118
+ (i.effects ??= []).push(o);
1119
+ }
1120
+ return r;
1121
+ }
1122
+ function At() {
1123
+ return null !== en && !tn;
1124
+ }
1125
+ function Pt(e) {
1126
+ const t = kt(8, null);
1127
+ return pe(t, m), t.teardown = e, t;
1128
+ }
1129
+ function Dt(e) {
1130
+ Nt();
1131
+ var t = rn.f;
1132
+ if (en || !(32 & t) || null === ee || ee.i) return Lt(e);
1133
+ var n = ee;
1134
+ (n.e ??= []).push(e);
1135
+ }
1136
+ function Lt(e) {
1137
+ return kt(1048580, e);
1138
+ }
1139
+ function Rt(e) {
1140
+ return kt(4, e);
1141
+ }
1142
+ function Mt(e, t = 0) {
1143
+ return kt(8 | t, e);
1144
+ }
1145
+ function It(e, t = [], n = [], r = []) {
1146
+ be(r, t, n, (t) => {
1147
+ kt(8, () => {
1148
+ e(...t.map(wn));
1149
+ });
1150
+ });
1151
+ }
1152
+ function Bt(e, t = 0) {
1153
+ return kt(16 | t, e);
1154
+ }
1155
+ function $t(e, t = 0) {
1156
+ return kt(16777216 | t, e);
1157
+ }
1158
+ function Ht(e) {
1159
+ return kt(524320, e);
1160
+ }
1161
+ function jt(e) {
1162
+ var t = e.teardown;
1163
+ if (null !== t) {
1164
+ const e = Jt, n = en;
1165
+ Qt(!0), nn(null);
1166
+ try {
1167
+ t.call(null);
1168
+ } finally {
1169
+ Qt(e), nn(n);
1170
+ }
1171
+ }
1172
+ }
1173
+ function Ft(e, t = !1) {
1174
+ var n = e.first;
1175
+ for (e.first = e.last = null; null !== n;) {
1176
+ const e = n.ac;
1177
+ null !== e && Ct(() => {
1178
+ e.abort(B);
1179
+ });
1180
+ var r = n.next;
1181
+ 64 & n.f ? n.parent = null : zt(n, t), n = r;
1182
+ }
1183
+ }
1184
+ function zt(e, t = !0) {
1185
+ var n = !1;
1186
+ (t || 262144 & e.f) && null !== e.nodes && null !== e.nodes.end && (Ut(e.nodes.start, e.nodes.end), n = !0), e.f |= w, Ft(e, t && !n), yn(e, 0);
1187
+ var r = e.nodes && e.nodes.t;
1188
+ if (null !== r) for (const e of r) e.stop();
1189
+ jt(e), e.f ^= w, e.f |= 16384;
1190
+ var o = e.parent;
1191
+ null !== o && null !== o.first && Vt(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1192
+ }
1193
+ function Ut(e, t) {
1194
+ for (; null !== e;) {
1195
+ var n = e === t ? null : _t(e);
1196
+ e.remove(), e = n;
1197
+ }
1198
+ }
1199
+ function Vt(e) {
1200
+ var t = e.parent, n = e.prev, r = e.next;
1201
+ null !== n && (n.next = r), null !== r && (r.prev = n), null !== t && (t.first === e && (t.first = r), t.last === e && (t.last = n));
1202
+ }
1203
+ function qt(e, t, n = !0) {
1204
+ var r = [];
1205
+ Kt(e, r, !0);
1206
+ var o = () => {
1207
+ n && zt(e), t && t();
1208
+ }, i = r.length;
1209
+ if (i > 0) {
1210
+ var s = () => --i || o();
1211
+ for (var a of r) a.out(s);
1212
+ } else o();
1213
+ }
1214
+ function Kt(e, t, n) {
1215
+ if (!(8192 & e.f)) {
1216
+ e.f ^= y;
1217
+ var r = e.nodes && e.nodes.t;
1218
+ if (null !== r) for (const e of r) (e.is_global || n) && t.push(e);
1219
+ for (var o = e.first; null !== o;) {
1220
+ var i = o.next;
1221
+ if (!(64 & o.f)) Kt(o, t, !!(!!(65536 & o.f) || !!(32 & o.f) && !!(16 & e.f)) && n);
1222
+ o = i;
1223
+ }
1224
+ }
1225
+ }
1226
+ function Gt(e) {
1227
+ Xt(e, !0);
1228
+ }
1229
+ function Xt(e, t) {
1230
+ if (8192 & e.f) {
1231
+ e.f ^= y, 1024 & e.f || (pe(e, _), Ue.ensure().schedule(e));
1232
+ for (var n = e.first; null !== n;) {
1233
+ var r = n.next;
1234
+ Xt(n, !!(!!(65536 & n.f) || !!(32 & n.f)) && t), n = r;
1235
+ }
1236
+ var o = e.nodes && e.nodes.t;
1237
+ if (null !== o) for (const e of o) (e.is_global || t) && e.in();
1238
+ }
1239
+ }
1240
+ function Wt(e, t) {
1241
+ if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; null !== n;) {
1242
+ var o = n === r ? null : _t(n);
1243
+ t.append(n), n = o;
1244
+ }
1245
+ }
1246
+ var Yt = null, Zt = !1, Jt = !1;
1247
+ function Qt(e) {
1248
+ Jt = e;
1249
+ }
1250
+ var en = null, tn = !1;
1251
+ function nn(e) {
1252
+ en = e;
1253
+ }
1254
+ var rn = null;
1255
+ function on(e) {
1256
+ rn = e;
1257
+ }
1258
+ var sn = null;
1259
+ function an(e) {
1260
+ null !== en && (sn ??= /* @__PURE__ */ new Set()).add(e);
1261
+ }
1262
+ var ln = null, un = 0, cn = null;
1263
+ var fn = 1, dn = 0, pn = dn;
1264
+ function hn(e) {
1265
+ pn = e;
1266
+ }
1267
+ function vn() {
1268
+ return ++fn;
1269
+ }
1270
+ function gn(e) {
1271
+ var t = e.f;
1272
+ if (2048 & t) return !0;
1273
+ if (2 & t && (e.f &= -65537), 4096 & t) {
1274
+ for (var n = e.deps, r = n.length, o = 0; o < r; o++) {
1275
+ var i = n[o];
1276
+ if (gn(i) && ke(i), i.wv > e.wv) return !0;
1277
+ }
1278
+ 512 & t && null === Me && pe(e, m);
1279
+ }
1280
+ return !1;
1281
+ }
1282
+ function mn(e, t, n = !0) {
1283
+ var r = e.reactions;
1284
+ if (null !== r && (null === sn || !sn.has(e))) for (var o = 0; o < r.length; o++) {
1285
+ var i = r[o];
1286
+ 2 & i.f ? mn(i, t, !1) : t === i && (n ? pe(i, _) : 1024 & i.f && pe(i, b), Xe(i));
1287
+ }
1288
+ }
1289
+ function _n(e) {
1290
+ var t = ln, n = un, r = cn, o = en, i = sn, s = ee, a = tn, l = pn, u = e.f;
1291
+ ln = null, un = 0, cn = null, en = 96 & u ? null : e, sn = null, te(e.ctx), tn = !1, pn = ++dn, null !== e.ac && (Ct(() => {
1292
+ e.ac.abort(B);
1293
+ }), e.ac = null);
1294
+ try {
1295
+ e.f |= C;
1296
+ var c = (0, e.fn)();
1297
+ e.f |= T;
1298
+ var f = e.deps, d = Le?.is_fork;
1299
+ if (null !== ln) {
1300
+ var p;
1301
+ if (d || yn(e, un), null !== f && un > 0) for (f.length = un + ln.length, p = 0; p < ln.length; p++) f[un + p] = ln[p];
1302
+ else e.deps = f = ln;
1303
+ if (At() && 512 & e.f) for (p = un; p < f.length; p++) (f[p].reactions ??= []).push(e);
1304
+ } else !d && null !== f && un < f.length && (yn(e, un), f.length = un);
1305
+ if (oe() && null !== cn && !tn && null !== f && !(6146 & e.f)) for (p = 0; p < cn.length; p++) mn(cn[p], e);
1306
+ if (null !== o && o !== e) {
1307
+ if (dn++, null !== o.deps) for (let e = 0; e < n; e += 1) o.deps[e].rv = dn;
1308
+ if (null !== t) for (const e of t) e.rv = dn;
1309
+ null !== cn && (null === r ? r = cn : r.push(...cn));
1310
+ }
1311
+ return 8388608 & e.f && (e.f ^= N), c;
1312
+ } catch (e) {
1313
+ return ce(e);
1314
+ } finally {
1315
+ e.f ^= C, ln = t, un = n, cn = r, en = o, sn = i, te(s), tn = a, pn = l;
1316
+ }
1317
+ }
1318
+ function bn(e, n) {
1319
+ let i = n.reactions;
1320
+ if (null !== i) {
1321
+ var s = r.call(i, e);
1322
+ if (-1 !== s) {
1323
+ var a = i.length - 1;
1324
+ 0 === a ? i = n.reactions = null : (i[s] = i[a], i.pop());
1325
+ }
1326
+ }
1327
+ if (null === i && 2 & n.f && (null === ln || !o.call(ln, n))) {
1328
+ var l = n;
1329
+ 512 & l.f && (l.f ^= 512, l.f &= -65537), l.v !== t && he(l), function(e) {
1330
+ if (null !== e.effects) for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(B), null !== t.fn && (t.teardown = v), t.ac = null, yn(t, 0), Ft(t));
1331
+ }(l), yn(l, 0);
1332
+ }
1333
+ }
1334
+ function yn(e, t) {
1335
+ var n = e.deps;
1336
+ if (null !== n) for (var r = t; r < n.length; r++) bn(e, n[r]);
1337
+ }
1338
+ function Tn(e) {
1339
+ var t = e.f;
1340
+ if (!(16384 & t)) {
1341
+ pe(e, m);
1342
+ var n = rn, r = Zt;
1343
+ rn = e, Zt = !0;
1344
+ try {
1345
+ 16777232 & t ? function(e) {
1346
+ for (var t = e.first; null !== t;) {
1347
+ var n = t.next;
1348
+ 32 & t.f || zt(t), t = n;
1349
+ }
1350
+ }(e) : Ft(e), jt(e);
1351
+ var o = _n(e);
1352
+ e.teardown = "function" == typeof o ? o : null, e.wv = fn;
1353
+ } finally {
1354
+ Zt = r, rn = n;
1355
+ }
1356
+ }
1357
+ }
1358
+ function wn(e) {
1359
+ var t = !!(2 & e.f);
1360
+ if (Yt?.add(e), null !== en && !tn && !(null !== rn && 16384 & rn.f || null !== sn && sn.has(e))) {
1361
+ var n = en.deps;
1362
+ if (2097152 & en.f) e.rv < dn && (e.rv = dn, null === ln && null !== n && n[un] === e ? un++ : null === ln ? ln = [e] : ln.push(e));
1363
+ else {
1364
+ en.deps ??= [], o.call(en.deps, e) || en.deps.push(e);
1365
+ var r = e.reactions;
1366
+ null === r ? e.reactions = [en] : o.call(r, en) || r.push(en);
1367
+ }
1368
+ }
1369
+ if (Jt && Je.has(e)) return Je.get(e);
1370
+ if (t) {
1371
+ var i = e;
1372
+ if (Jt) {
1373
+ var s = i.v;
1374
+ return (1024 & i.f || null === i.reactions) && !Sn(i) || (s = Ne(i)), Je.set(i, s), s;
1375
+ }
1376
+ var a = !(512 & i.f) && !tn && null !== en && (Zt || !!(512 & en.f)), l = 0 === (i.f & T);
1377
+ gn(i) && (a && (i.f |= 512), ke(i)), a && !l && (Ae(i), En(i));
1378
+ }
1379
+ if (Me?.has(e)) return Me.get(e);
1380
+ if (8388608 & e.f) throw e.v;
1381
+ return e.v;
1382
+ }
1383
+ function En(e) {
1384
+ if (e.f |= 512, null !== e.deps) for (const t of e.deps) (t.reactions ??= []).push(e), 2 & t.f && !(512 & t.f) && (Ae(t), En(t));
1385
+ }
1386
+ function Sn(e) {
1387
+ if (e.v === t) return !0;
1388
+ if (null === e.deps) return !1;
1389
+ for (const t of e.deps) {
1390
+ if (Je.has(t)) return !0;
1391
+ if (2 & t.f && Sn(t)) return !0;
1392
+ }
1393
+ return !1;
1394
+ }
1395
+ function On(e) {
1396
+ var t = tn;
1397
+ try {
1398
+ return tn = !0, e();
1399
+ } finally {
1400
+ tn = t;
1401
+ }
1402
+ }
1403
+ var xn = Symbol("events"), Cn = /* @__PURE__ */ new Set(), Nn = /* @__PURE__ */ new Set();
1404
+ function kn(e, t, n, r = {}) {
1405
+ function o(e) {
1406
+ if (r.capture || Dn.call(t, e), !e.cancelBubble) return Ct(() => n?.call(this, e));
1407
+ }
1408
+ return e.startsWith("pointer") || e.startsWith("touch") || "wheel" === e ? le(() => {
1409
+ t.addEventListener(e, o, r);
1410
+ }) : t.addEventListener(e, o, r), o;
1411
+ }
1412
+ function An(e, t, n) {
1413
+ (t[xn] ??= {})[e] = n;
1414
+ }
1415
+ function Pn(e) {
1416
+ for (var t = 0; t < e.length; t++) Cn.add(e[t]);
1417
+ for (var n of Nn) n(e);
1418
+ }
1419
+ function Dn(e) {
1420
+ var t = this, n = t.ownerDocument, r = e.type, o = e.composedPath?.() || [], i = o[0] || e.target, s = 0, l = e === e && e[xn];
1421
+ if (l) {
1422
+ var u = o.indexOf(l);
1423
+ if (-1 !== u && (t === document || t === window)) return void (e[xn] = t);
1424
+ var c = o.indexOf(t);
1425
+ if (-1 === c) return;
1426
+ u <= c && (s = u);
1427
+ }
1428
+ if ((i = o[s] || e.target) !== t) {
1429
+ a(e, "currentTarget", {
1430
+ configurable: !0,
1431
+ get: () => i || n
1432
+ });
1433
+ var f = en, d = rn;
1434
+ nn(null), on(null);
1435
+ try {
1436
+ for (var p, h = []; null !== i && i !== t;) {
1437
+ try {
1438
+ var v = i[xn]?.[r];
1439
+ null == v || i.disabled && e.target !== i || v.call(i, e);
1440
+ } catch (e) {
1441
+ p ? h.push(e) : p = e;
1442
+ }
1443
+ if (e.cancelBubble) break;
1444
+ s++, i = s < o.length ? o[s] : null;
1445
+ }
1446
+ if (p) {
1447
+ for (let e of h) queueMicrotask(() => {
1448
+ throw e;
1449
+ });
1450
+ throw p;
1451
+ }
1452
+ } finally {
1453
+ e[xn] = t, delete e.currentTarget, nn(f), on(d);
1454
+ }
1455
+ }
1456
+ }
1457
+ var Ln = globalThis?.window?.trustedTypes && globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1458
+ function Rn(e) {
1459
+ var t = Et("template");
1460
+ return t.innerHTML = function(e) {
1461
+ return Ln?.createHTML(e) ?? e;
1462
+ }(e.replaceAll("<!>", "<!---->")), t.content;
1463
+ }
1464
+ function Mn(e, t) {
1465
+ var n = rn;
1466
+ null === n.nodes && (n.nodes = {
1467
+ start: e,
1468
+ end: t,
1469
+ a: null,
1470
+ t: null
1471
+ });
1472
+ }
1473
+ function In(e, t) {
1474
+ var n, r = !!(1 & t), o = !!(2 & t), i = !e.startsWith("<!>");
1475
+ return () => {
1476
+ if (U) return Mn(z, null), z;
1477
+ void 0 === n && (n = Rn(i ? e : "<!>" + e), r || (n = mt(n)));
1478
+ var t = o || dt ? document.importNode(n, !0) : n.cloneNode(!0);
1479
+ r ? Mn(mt(t), t.lastChild) : Mn(t, t);
1480
+ return t;
1481
+ };
1482
+ }
1483
+ function Bn(e, t, n = "svg") {
1484
+ var r, o = !e.startsWith("<!>"), i = !!(1 & t), s = `<${n}>${o ? e : "<!>" + e}</${n}>`;
1485
+ return () => {
1486
+ if (U) return Mn(z, null), z;
1487
+ if (!r) {
1488
+ var e = mt(Rn(s));
1489
+ if (i) for (r = document.createDocumentFragment(); mt(e);) r.appendChild(mt(e));
1490
+ else r = mt(e);
1491
+ }
1492
+ var t = r.cloneNode(!0);
1493
+ i ? Mn(mt(t), t.lastChild) : Mn(t, t);
1494
+ return t;
1495
+ };
1496
+ }
1497
+ function $n(e, t) {
1498
+ return Bn(e, t, "svg");
1499
+ }
1500
+ function Hn(e = "") {
1501
+ if (!U) {
1502
+ var t = gt(e + "");
1503
+ return Mn(t, t), t;
1504
+ }
1505
+ var n = z;
1506
+ return 3 !== n.nodeType ? (n.before(n = gt()), q(n)) : St(n), Mn(n, n), n;
1507
+ }
1508
+ function jn() {
1509
+ if (U) return Mn(z, null), z;
1510
+ var e = document.createDocumentFragment(), t = document.createComment(""), n = gt();
1511
+ return e.append(t, n), Mn(t, n), e;
1512
+ }
1513
+ function Fn(e, t) {
1514
+ if (U) {
1515
+ var n = rn;
1516
+ 32768 & n.f && null !== n.nodes.end || (n.nodes.end = z), K();
1517
+ return;
1518
+ }
1519
+ null !== e && e.before(t);
1520
+ }
1521
+ function zn(e) {
1522
+ return e.endsWith("capture") && "gotpointercapture" !== e && "lostpointercapture" !== e;
1523
+ }
1524
+ var Un = [
1525
+ "beforeinput",
1526
+ "click",
1527
+ "change",
1528
+ "dblclick",
1529
+ "contextmenu",
1530
+ "focusin",
1531
+ "focusout",
1532
+ "input",
1533
+ "keydown",
1534
+ "keyup",
1535
+ "mousedown",
1536
+ "mousemove",
1537
+ "mouseout",
1538
+ "mouseover",
1539
+ "mouseup",
1540
+ "pointerdown",
1541
+ "pointermove",
1542
+ "pointerout",
1543
+ "pointerover",
1544
+ "pointerup",
1545
+ "touchend",
1546
+ "touchmove",
1547
+ "touchstart"
1548
+ ];
1549
+ function Vn(e) {
1550
+ return Un.includes(e);
1551
+ }
1552
+ var qn = {
1553
+ formnovalidate: "formNoValidate",
1554
+ ismap: "isMap",
1555
+ nomodule: "noModule",
1556
+ playsinline: "playsInline",
1557
+ readonly: "readOnly",
1558
+ defaultvalue: "defaultValue",
1559
+ defaultchecked: "defaultChecked",
1560
+ srcobject: "srcObject",
1561
+ novalidate: "noValidate",
1562
+ allowfullscreen: "allowFullscreen",
1563
+ disablepictureinpicture: "disablePictureInPicture",
1564
+ disableremoteplayback: "disableRemotePlayback"
1565
+ };
1566
+ function Kn(e) {
1567
+ return e = e.toLowerCase(), qn[e] ?? e;
1568
+ }
1569
+ var Gn = ["touchstart", "touchmove"];
1570
+ function Xn(e) {
1571
+ return Gn.includes(e);
1572
+ }
1573
+ function Wn(e, t) {
1574
+ var n = null == t ? "" : "object" == typeof t ? `${t}` : t;
1575
+ n !== (e[M] ??= e.nodeValue) && (e[M] = n, e.nodeValue = `${n}`);
1576
+ }
1577
+ function Yn(e, t) {
1578
+ return Qn(e, t);
1579
+ }
1580
+ var Jn = /* @__PURE__ */ new Map();
1581
+ function Qn(t, { target: n, anchor: r, props: o = {}, events: s, context: a, intro: l = !0, transformError: u }) {
1582
+ vt();
1583
+ var c = void 0, f = function(e) {
1584
+ Ue.ensure();
1585
+ const t = kt(524352, e);
1586
+ return (e = {}) => new Promise((n) => {
1587
+ e.outro ? qt(t, () => {
1588
+ zt(t), n(void 0);
1589
+ }) : (zt(t), n(void 0));
1590
+ });
1591
+ }(() => {
1592
+ var l = r ?? n.appendChild(gt());
1593
+ (function(e, t, n, r) {
1594
+ new _e(e, t, n, r);
1595
+ })(l, { pending: () => {} }, (n) => {
1596
+ if (ne({}), a && (ee.c = a), s && (o.$$events = s), U && Mn(n, null), c = t(n, o) || {}, U && (rn.nodes.end = z, null === z || 8 !== z.nodeType || "]" !== z.data)) throw F(), e;
1597
+ re();
1598
+ }, u);
1599
+ var f = /* @__PURE__ */ new Set(), d = (e) => {
1600
+ for (var t = 0; t < e.length; t++) {
1601
+ var r = e[t];
1602
+ if (!f.has(r)) {
1603
+ f.add(r);
1604
+ var o = Xn(r);
1605
+ for (const e of [n, document]) {
1606
+ var i = Jn.get(e);
1607
+ void 0 === i && (i = /* @__PURE__ */ new Map(), Jn.set(e, i));
1608
+ var s = i.get(r);
1609
+ void 0 === s ? (e.addEventListener(r, Dn, { passive: o }), i.set(r, 1)) : i.set(r, s + 1);
1610
+ }
1611
+ }
1612
+ }
1613
+ };
1614
+ return d(i(Cn)), Nn.add(d), () => {
1615
+ for (var e of f) for (const r of [n, document]) {
1616
+ var t = Jn.get(r), o = t.get(e);
1617
+ 0 == --o ? (r.removeEventListener(e, Dn), t.delete(e), 0 === t.size && Jn.delete(r)) : t.set(e, o);
1618
+ }
1619
+ Nn.delete(d), l !== r && l.parentNode?.removeChild(l);
1620
+ };
1621
+ });
1622
+ return er.set(c, f), c;
1623
+ }
1624
+ var er = /* @__PURE__ */ new WeakMap();
1625
+ function tr(e, t) {
1626
+ const n = er.get(e);
1627
+ return n ? (er.delete(e), n(t)) : Promise.resolve();
1628
+ }
1629
+ var nr, rr = class {
1630
+ anchor;
1631
+ #q = /* @__PURE__ */ new Map();
1632
+ #K = /* @__PURE__ */ new Map();
1633
+ #G = /* @__PURE__ */ new Map();
1634
+ #X = /* @__PURE__ */ new Set();
1635
+ #W = !0;
1636
+ constructor(e, t = !0) {
1637
+ this.anchor = e, this.#W = t;
1638
+ }
1639
+ #V = (e) => {
1640
+ if (this.#q.has(e)) {
1641
+ var t = this.#q.get(e), n = this.#K.get(t);
1642
+ if (n) Gt(n), this.#X.delete(t);
1643
+ else {
1644
+ var r = this.#G.get(t);
1645
+ r && (Gt(r.effect), this.#K.set(t, r.effect), this.#G.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
1646
+ }
1647
+ for (const [t, n] of this.#q) {
1648
+ if (this.#q.delete(t), t === e) break;
1649
+ const r = this.#G.get(n);
1650
+ r && (zt(r.effect), this.#G.delete(n));
1651
+ }
1652
+ for (const [e, r] of this.#K) {
1653
+ if (e === t || this.#X.has(e)) continue;
1654
+ const o = () => {
1655
+ if (Array.from(this.#q.values()).includes(e)) {
1656
+ var t = document.createDocumentFragment();
1657
+ Wt(r, t), t.append(gt()), this.#G.set(e, {
1658
+ effect: r,
1659
+ fragment: t
1660
+ });
1661
+ } else zt(r);
1662
+ this.#X.delete(e), this.#K.delete(e);
1663
+ };
1664
+ this.#W || !n ? (this.#X.add(e), qt(r, o, !1)) : o();
1665
+ }
1666
+ }
1667
+ };
1668
+ #Y = (e) => {
1669
+ this.#q.delete(e);
1670
+ const t = Array.from(this.#q.values());
1671
+ for (const [e, n] of this.#G) t.includes(e) || (zt(n.effect), this.#G.delete(e));
1672
+ };
1673
+ ensure(e, t) {
1674
+ var n = Le;
1675
+ !t || this.#K.has(e) || this.#G.has(e) || this.#K.set(e, Ht(() => t(this.anchor)));
1676
+ this.#q.set(n, e), U && (this.anchor = z), this.#V(n);
1677
+ }
1678
+ };
1679
+ function or(e, t, ...n) {
1680
+ var r = new rr(e);
1681
+ Bt(() => {
1682
+ const e = t() ?? null;
1683
+ r.ensure(e, e && ((t) => e(t, ...n)));
1684
+ }, E);
1685
+ }
1686
+ function ir(e) {
1687
+ var t, n;
1688
+ null === ee && H(), Q && null !== ee.l ? (t = ee, n = t.l, n.u ??= {
1689
+ a: [],
1690
+ b: [],
1691
+ m: []
1692
+ }).m.push(e) : Dt(() => {
1693
+ const t = On(e);
1694
+ if ("function" == typeof t) return t;
1695
+ });
1696
+ }
1697
+ function sr(e, t, n = !1) {
1698
+ var r;
1699
+ U && (r = z, K());
1700
+ var o = new rr(e);
1701
+ function i(e, t) {
1702
+ if (U) {
1703
+ var n = Y(r);
1704
+ if (e !== parseInt(n.substring(1))) {
1705
+ var i = W();
1706
+ q(i), o.anchor = i, V(!1), o.ensure(e, t), V(!0);
1707
+ return;
1708
+ }
1709
+ }
1710
+ o.ensure(e, t);
1711
+ }
1712
+ Bt(() => {
1713
+ var e = !1;
1714
+ t((t, n = 0) => {
1715
+ e = !0, i(n, t);
1716
+ }), e || i(-1, null);
1717
+ }, n ? E : 0);
1718
+ }
1719
+ function ar(e, t, n = !0) {
1720
+ var r;
1721
+ if (e.pending.size > 0) {
1722
+ r = /* @__PURE__ */ new Set();
1723
+ for (const t of e.pending.values()) for (const n of t) r.add(e.items.get(n).e);
1724
+ }
1725
+ for (var o = 0; o < t.length; o++) {
1726
+ var i = t[o];
1727
+ r?.has(i) ? (i.f |= O, Wt(i, document.createDocumentFragment())) : zt(t[o], n);
1728
+ }
1729
+ }
1730
+ function lr(e, t, r, o, s, a = null) {
1731
+ var l = e, u = /* @__PURE__ */ new Map();
1732
+ if (4 & t) {
1733
+ var c = e;
1734
+ l = U ? q(mt(c)) : c.appendChild(gt());
1735
+ }
1736
+ U && K();
1737
+ var f, d = null, p = xe(() => {
1738
+ var e = r();
1739
+ return n(e) ? e : null == e ? [] : i(e);
1740
+ });
1741
+ var h = /* @__PURE__ */ new Map(), v = !0;
1742
+ function g(e) {
1743
+ 16384 & m.effect.f || (m.pending.delete(e), m.fallback = d, function(e, t, n, r, o) {
1744
+ var s, a, l, u, c, f = !!(8 & r), d = t.length, p = e.items, h = ur(e.effect.first), v = null, g = [], m = [];
1745
+ if (f) for (c = 0; c < d; c += 1) l = o(t[c], c), 33554432 & (u = p.get(l).e).f || (u.nodes?.a?.measure(), (a ??= /* @__PURE__ */ new Set()).add(u));
1746
+ for (c = 0; c < d; c += 1) {
1747
+ if (l = o(t[c], c), u = p.get(l).e, null !== e.outrogroups) for (const t of e.outrogroups) t.pending.delete(u), t.done.delete(u);
1748
+ if (8192 & u.f && (Gt(u), f && (u.nodes?.a?.unfix(), (a ??= /* @__PURE__ */ new Set()).delete(u))), 33554432 & u.f) {
1749
+ if (u.f ^= O, u !== h) {
1750
+ var _ = v ? v.next : h;
1751
+ u === e.effect.last && (e.effect.last = u.prev), u.prev && (u.prev.next = u.next), u.next && (u.next.prev = u.prev), dr(e, v, u), dr(e, u, _), fr(u, _, n), g = [], m = [], h = ur((v = u).next);
1752
+ continue;
1753
+ }
1754
+ fr(u, null, n);
1755
+ }
1756
+ if (u !== h) {
1757
+ if (void 0 !== s && s.has(u)) {
1758
+ if (g.length < m.length) {
1759
+ var b, y = m[0];
1760
+ v = y.prev;
1761
+ var T = g[0], w = g[g.length - 1];
1762
+ for (b = 0; b < g.length; b += 1) fr(g[b], y, n);
1763
+ for (b = 0; b < m.length; b += 1) s.delete(m[b]);
1764
+ dr(e, T.prev, w.next), dr(e, v, T), dr(e, w, y), h = y, v = w, c -= 1, g = [], m = [];
1765
+ } else s.delete(u), fr(u, h, n), dr(e, u.prev, u.next), dr(e, u, null === v ? e.effect.first : v.next), dr(e, v, u), v = u;
1766
+ continue;
1767
+ }
1768
+ for (g = [], m = []; null !== h && h !== u;) (s ??= /* @__PURE__ */ new Set()).add(h), m.push(h), h = ur(h.next);
1769
+ if (null === h) continue;
1770
+ }
1771
+ 33554432 & u.f || g.push(u), v = u, h = ur(u.next);
1772
+ }
1773
+ if (null !== e.outrogroups) {
1774
+ for (const t of e.outrogroups) 0 === t.pending.size && (ar(e, i(t.done)), e.outrogroups?.delete(t));
1775
+ 0 === e.outrogroups.size && (e.outrogroups = null);
1776
+ }
1777
+ if (null !== h || void 0 !== s) {
1778
+ var E = [];
1779
+ if (void 0 !== s) for (u of s) 8192 & u.f || E.push(u);
1780
+ for (; null !== h;) 8192 & h.f || h === e.fallback || E.push(h), h = ur(h.next);
1781
+ var S = E.length;
1782
+ if (S > 0) {
1783
+ var x = 4 & r && 0 === d ? n : null;
1784
+ if (f) {
1785
+ for (c = 0; c < S; c += 1) E[c].nodes?.a?.measure();
1786
+ for (c = 0; c < S; c += 1) E[c].nodes?.a?.fix();
1787
+ }
1788
+ (function(e, t, n) {
1789
+ for (var r, o = t.length, s = t.length, a = 0; a < o; a++) {
1790
+ let n = t[a];
1791
+ qt(n, () => {
1792
+ if (r) {
1793
+ if (r.pending.delete(n), r.done.add(n), 0 === r.pending.size) {
1794
+ var t = e.outrogroups;
1795
+ ar(e, i(r.done)), t.delete(r), 0 === t.size && (e.outrogroups = null);
1796
+ }
1797
+ } else s -= 1;
1798
+ }, !1);
1799
+ }
1800
+ if (0 === s) {
1801
+ var l = null !== n;
1802
+ if (l) {
1803
+ var u = n, c = u.parentNode;
1804
+ wt(c), c.append(u), e.items.clear();
1805
+ }
1806
+ ar(e, t, !l);
1807
+ } else r = {
1808
+ pending: new Set(t),
1809
+ done: /* @__PURE__ */ new Set()
1810
+ }, (e.outrogroups ??= /* @__PURE__ */ new Set()).add(r);
1811
+ })(e, E, x);
1812
+ }
1813
+ }
1814
+ f && le(() => {
1815
+ if (void 0 !== a) for (u of a) u.nodes?.a?.apply();
1816
+ });
1817
+ }(m, f, l, t, o), null !== d && (0 === f.length ? 33554432 & d.f ? (d.f ^= O, fr(d, null, l)) : Gt(d) : qt(d, () => {
1818
+ d = null;
1819
+ })));
1820
+ }
1821
+ var m = {
1822
+ effect: Bt(() => {
1823
+ var e = (f = wn(p)).length;
1824
+ let n = !1;
1825
+ U && "[!" === Y(l) != (0 === e) && (q(l = W()), V(!1), n = !0);
1826
+ for (var i = /* @__PURE__ */ new Set(), c = Le, m = 0; m < e; m += 1) {
1827
+ U && 8 === z.nodeType && "]" === z.data && (l = z, n = !0, V(!1));
1828
+ var _ = f[m], b = o(_, m), y = v ? null : u.get(b);
1829
+ y ? (y.v && ot(y.v, _), y.i && ot(y.i, m)) : (y = cr(u, v ? l : nr ??= gt(), _, b, m, s, t, r), v || (y.e.f |= O), u.set(b, y)), i.add(b);
1830
+ }
1831
+ 0 === e && a && !d && (v ? d = Ht(() => a(l)) : (d = Ht(() => a(nr ??= gt()))).f |= O), e > i.size && j(), U && e > 0 && q(W()), v || (h.set(c, i), g(c)), n && V(!0), wn(p);
1832
+ }),
1833
+ flags: t,
1834
+ items: u,
1835
+ pending: h,
1836
+ outrogroups: null,
1837
+ fallback: d
1838
+ };
1839
+ v = !1, U && (l = z);
1840
+ }
1841
+ function ur(e) {
1842
+ for (; null !== e && !(32 & e.f);) e = e.next;
1843
+ return e;
1844
+ }
1845
+ function cr(e, t, n, r, o, i, s, a) {
1846
+ var l = 1 & s ? 16 & s ? et(n) : nt(n, !1, !1) : null, u = 2 & s ? et(o) : null;
1847
+ return {
1848
+ v: l,
1849
+ i: u,
1850
+ e: Ht(() => (i(t, l ?? n, u ?? o, a), () => {
1851
+ e.delete(r);
1852
+ }))
1853
+ };
1854
+ }
1855
+ function fr(e, t, n) {
1856
+ if (e.nodes) for (var r = e.nodes.start, o = e.nodes.end, i = !t || 33554432 & t.f ? n : t.nodes.start; null !== r;) {
1857
+ var s = _t(r);
1858
+ if (i.before(r), r === o) return;
1859
+ r = s;
1860
+ }
1861
+ }
1862
+ function dr(e, t, n) {
1863
+ null === t ? e.effect.first = n : t.next = n, null === n ? e.effect.last = t : n.prev = t;
1864
+ }
1865
+ function pr(t, n, r = !1, o = !1, i = !1, s = !1) {
1866
+ var a = t, l = "";
1867
+ if (r) {
1868
+ var u = t;
1869
+ U && (a = q(mt(u)));
1870
+ }
1871
+ It(() => {
1872
+ var t = rn;
1873
+ if (l !== (l = n() ?? "")) {
1874
+ if (r && !U) return t.nodes = null, u.innerHTML = l, void ("" !== l && Mn(mt(u), u.lastChild));
1875
+ if (null !== t.nodes && (Ut(t.nodes.start, t.nodes.end), t.nodes = null), "" !== l) {
1876
+ if (U) {
1877
+ z.data;
1878
+ for (var s = K(), c = s; null !== s && (8 !== s.nodeType || "" !== s.data);) c = s, s = _t(s);
1879
+ if (null === s) throw F(), e;
1880
+ Mn(z, c), a = q(s);
1881
+ return;
1882
+ }
1883
+ var f = Et(o ? "svg" : i ? "math" : "template", o ? "http://www.w3.org/2000/svg" : i ? "http://www.w3.org/1998/Math/MathML" : void 0);
1884
+ f.innerHTML = l;
1885
+ var d = o || i ? f : f.content;
1886
+ if (Mn(mt(d), d.lastChild), o || i) for (; mt(d);) a.before(mt(d));
1887
+ else a.before(d);
1888
+ }
1889
+ } else U && K();
1890
+ });
1891
+ }
1892
+ function hr(e, t) {
1893
+ var n, r = void 0;
1894
+ $t(() => {
1895
+ r !== (r = t()) && (n && (zt(n), n = null), r && (n = Ht(() => {
1896
+ Rt(() => r(e));
1897
+ })));
1898
+ });
1899
+ }
1900
+ function vr(e) {
1901
+ var t, n, r = "";
1902
+ if ("string" == typeof e || "number" == typeof e) r += e;
1903
+ else if ("object" == typeof e) if (Array.isArray(e)) {
1904
+ var o = e.length;
1905
+ for (t = 0; t < o; t++) e[t] && (n = vr(e[t])) && (r && (r += " "), r += n);
1906
+ } else for (n in e) e[n] && (r && (r += " "), r += n);
1907
+ return r;
1908
+ }
1909
+ function gr(e) {
1910
+ return "object" == typeof e ? function() {
1911
+ for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = vr(e)) && (r && (r += " "), r += t);
1912
+ return r;
1913
+ }(e) : e ?? "";
1914
+ }
1915
+ var mr = [..." \n\r\f\xA0\v"];
1916
+ function _r(e, t = !1) {
1917
+ var n = t ? " !important;" : ";", r = "";
1918
+ for (var o of Object.keys(e)) {
1919
+ var i = e[o];
1920
+ null != i && "" !== i && (r += " " + o + ": " + i + n);
1921
+ }
1922
+ return r;
1923
+ }
1924
+ function br(e) {
1925
+ return "-" !== e[0] || "-" !== e[1] ? e.toLowerCase() : e;
1926
+ }
1927
+ function yr(e, t, n, r, o, i) {
1928
+ var s = e[L];
1929
+ if (U || s !== n || void 0 === s) {
1930
+ var a = function(e, t, n) {
1931
+ var r = null == e ? "" : "" + e;
1932
+ if (t && (r = r ? r + " " + t : t), n) {
1933
+ for (var o of Object.keys(n)) if (n[o]) r = r ? r + " " + o : o;
1934
+ else if (r.length) for (var i = o.length, s = 0; (s = r.indexOf(o, s)) >= 0;) {
1935
+ var a = s + i;
1936
+ 0 !== s && !mr.includes(r[s - 1]) || a !== r.length && !mr.includes(r[a]) ? s = a : r = (0 === s ? "" : r.substring(0, s)) + r.substring(a + 1);
1937
+ }
1938
+ }
1939
+ return "" === r ? null : r;
1940
+ }(n, r, i);
1941
+ U && a === e.getAttribute("class") || (null == a ? e.removeAttribute("class") : t ? e.className = a : e.setAttribute("class", a)), e[L] = n;
1942
+ } else if (i && o !== i) for (var l in i) {
1943
+ var u = !!i[l];
1944
+ null != o && u === !!o[l] || e.classList.toggle(l, u);
1945
+ }
1946
+ return i;
1947
+ }
1948
+ function Tr(e, t = {}, n, r) {
1949
+ for (var o in n) {
1950
+ var i = n[o];
1951
+ t[o] !== i && (null == n[o] ? e.style.removeProperty(o) : e.style.setProperty(o, i, r));
1952
+ }
1953
+ }
1954
+ function wr(e, t, n, r) {
1955
+ var o = e[R];
1956
+ if (U || o !== t) {
1957
+ var i = function(e, t) {
1958
+ if (t) {
1959
+ var n, r, o = "";
1960
+ if (Array.isArray(t) ? (n = t[0], r = t[1]) : n = t, e) {
1961
+ e = String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
1962
+ var i = !1, s = 0, a = !1, l = [];
1963
+ n && l.push(...Object.keys(n).map(br)), r && l.push(...Object.keys(r).map(br));
1964
+ var u = 0, c = -1;
1965
+ const t = e.length;
1966
+ for (var f = 0; f < t; f++) {
1967
+ var d = e[f];
1968
+ if (a ? "/" === d && "*" === e[f - 1] && (a = !1) : i ? i === d && (i = !1) : "/" === d && "*" === e[f + 1] ? a = !0 : "\"" === d || "'" === d ? i = d : "(" === d ? s++ : ")" === d && s--, !a && !1 === i && 0 === s) {
1969
+ if (":" === d && -1 === c) c = f;
1970
+ else if (";" === d || f === t - 1) {
1971
+ if (-1 !== c) {
1972
+ var p = br(e.substring(u, c).trim());
1973
+ l.includes(p) || (";" !== d && f++, o += " " + e.substring(u, f).trim() + ";");
1974
+ }
1975
+ u = f + 1, c = -1;
1976
+ }
1977
+ }
1978
+ }
1979
+ }
1980
+ return n && (o += _r(n)), r && (o += _r(r, !0)), "" === (o = o.trim()) ? null : o;
1981
+ }
1982
+ return null == e ? null : String(e);
1983
+ }(t, r);
1984
+ U && i === e.getAttribute("style") || (null == i ? e.removeAttribute("style") : e.style.cssText = i), e[R] = t;
1985
+ } else r && (Array.isArray(r) ? (Tr(e, n?.[0], r[0]), Tr(e, n?.[1], r[1], "important")) : Tr(e, n, r));
1986
+ return r;
1987
+ }
1988
+ function Er(e, t, r = !1) {
1989
+ if (e.multiple) {
1990
+ if (null == t) return;
1991
+ if (!n(t)) return void console.warn("https://svelte.dev/e/select_multiple_invalid_value");
1992
+ for (var o of e.options) o.selected = t.includes(Sr(o));
1993
+ } else {
1994
+ for (o of e.options) if (ct(Sr(o), t)) return void (o.selected = !0);
1995
+ r && void 0 === t || (e.selectedIndex = -1);
1996
+ }
1997
+ }
1998
+ function Sr(e) {
1999
+ return "__value" in e ? e.__value : e.value;
2000
+ }
2001
+ var Or = Symbol("class"), xr = Symbol("style"), Cr = Symbol("is custom element"), Nr = Symbol("is html"), kr = $ ? "link" : "LINK", Ar = $ ? "input" : "INPUT", Pr = $ ? "option" : "OPTION", Dr = $ ? "select" : "SELECT";
2002
+ function Lr(e) {
2003
+ if (U) {
2004
+ var t = !1, n = () => {
2005
+ if (!t) {
2006
+ if (t = !0, e.hasAttribute("value")) {
2007
+ var n = e.value;
2008
+ Mr(e, "value", null), e.value = n;
2009
+ }
2010
+ if (e.hasAttribute("checked")) {
2011
+ var r = e.checked;
2012
+ Mr(e, "checked", null), e.checked = r;
2013
+ }
2014
+ }
2015
+ };
2016
+ e[I] = n, le(n), xt || (xt = !0, document.addEventListener("reset", (e) => {
2017
+ Promise.resolve().then(() => {
2018
+ if (!e.defaultPrevented) for (const t of e.target.elements) t[I]?.();
2019
+ });
2020
+ }, { capture: !0 }));
2021
+ }
2022
+ }
2023
+ function Rr(e, t) {
2024
+ t ? e.hasAttribute("selected") || e.setAttribute("selected", "") : e.removeAttribute("selected");
2025
+ }
2026
+ function Mr(e, t, n, r) {
2027
+ var o = Br(e);
2028
+ U && (o[t] = e.getAttribute(t), "src" === t || "srcset" === t || "href" === t && e.nodeName === kr) || o[t] !== (o[t] = n) && ("loading" === t && (e[P] = n), null == n ? e.removeAttribute(t) : "string" != typeof n && Hr(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
2029
+ }
2030
+ function Ir(e, n, r = [], o = [], i = [], s, a = !1, l = !1) {
2031
+ be(i, r, o, (r) => {
2032
+ var o = void 0, i = {}, u = e.nodeName === Dr, c = !1;
2033
+ if ($t(() => {
2034
+ var f = n(...r.map(wn)), d = function(e, n, r, o, i = !1) {
2035
+ if (U && i && e.nodeName === Ar) {
2036
+ var s = e;
2037
+ ("checkbox" === s.type ? "defaultChecked" : "defaultValue") in r || Lr(s);
2038
+ }
2039
+ var a = Br(e), l = a[Cr], u = !a[Nr];
2040
+ let c = U && l;
2041
+ c && V(!1);
2042
+ var f = n || {}, d = e.nodeName === Pr;
2043
+ for (var p in n) p in r || (r[p] = null);
2044
+ r.class ? r.class = gr(r.class) : (o || r[Or]) && (r.class = null), r[xr] && (r.style ??= null);
2045
+ var h = Hr(e);
2046
+ if (e.nodeName === Ar && "type" in r && ("value" in r || "__value" in r)) {
2047
+ var v = r.type;
2048
+ (v !== f.type || void 0 === v && e.hasAttribute("type")) && (f.type = v, Mr(e, "type", v));
2049
+ }
2050
+ for (const w in r) {
2051
+ let E = r[w];
2052
+ if (d && "value" === w && null == E) e.value = e.__value = "", f[w] = E;
2053
+ else if ("class" !== w) if ("style" !== w) {
2054
+ var g = f[w];
2055
+ if (E !== g || void 0 === E && e.hasAttribute(w)) {
2056
+ f[w] = E;
2057
+ var m = w[0] + w[1];
2058
+ if ("$$" !== m) if ("on" === m) {
2059
+ const S = {}, O = "$$" + w;
2060
+ let x = w.slice(2);
2061
+ var _ = Vn(x);
2062
+ if (zn(x) && (x = x.slice(0, -7), S.capture = !0), !_ && g) {
2063
+ if (null != E) continue;
2064
+ e.removeEventListener(x, f[O], S), f[O] = null;
2065
+ }
2066
+ if (_) An(x, e, E), Pn([x]);
2067
+ else if (null != E) {
2068
+ function b(e) {
2069
+ f[w].call(this, e);
2070
+ }
2071
+ f[O] = kn(x, e, b, S);
2072
+ }
2073
+ } else if ("style" === w) Mr(e, w, E);
2074
+ else if ("autofocus" === w) Ot(e, Boolean(E));
2075
+ else if (l || "__value" !== w && ("value" !== w || null == E)) if ("selected" === w && d) Rr(e, E);
2076
+ else {
2077
+ var y = w;
2078
+ u || (y = Kn(y));
2079
+ var T = "defaultValue" === y || "defaultChecked" === y;
2080
+ if (null != E || l || T) T || h.includes(y) && (l || "string" != typeof E) ? (e[y] = E, y in a && (a[y] = t)) : "function" != typeof E && Mr(e, y, E);
2081
+ else if (a[w] = null, "value" === y || "checked" === y) {
2082
+ let C = e;
2083
+ const N = void 0 === n;
2084
+ if ("value" === y) {
2085
+ let k = C.defaultValue;
2086
+ C.removeAttribute(y), C.defaultValue = k, C.value = C.__value = N ? k : null;
2087
+ } else {
2088
+ let A = C.defaultChecked;
2089
+ C.removeAttribute(y), C.defaultChecked = A, C.checked = !!N && A;
2090
+ }
2091
+ } else e.removeAttribute(w);
2092
+ }
2093
+ else e.value = e.__value = E;
2094
+ }
2095
+ } else wr(e, E, n?.[xr], r[xr]), f[w] = E, f[xr] = r[xr];
2096
+ else yr(e, "http://www.w3.org/1999/xhtml" === e.namespaceURI, E, o, n?.[Or], r[Or]), f[w] = E, f[Or] = r[Or];
2097
+ }
2098
+ return c && V(!0), f;
2099
+ }(e, o, f, s, a, l);
2100
+ c && u && "value" in f && Er(e, f.value);
2101
+ for (let e of Object.getOwnPropertySymbols(i)) f[e] || zt(i[e]);
2102
+ for (let t of Object.getOwnPropertySymbols(f)) {
2103
+ var p = f[t];
2104
+ "@attach" !== t.description || o && p === o[t] || (i[t] && zt(i[t]), i[t] = Ht(() => hr(e, () => p))), d[t] = p;
2105
+ }
2106
+ o = d;
2107
+ }), u) {
2108
+ var f = e;
2109
+ Rt(() => {
2110
+ Er(f, o.value, !0), function(e) {
2111
+ var t = new MutationObserver(() => {
2112
+ Er(e, e.__value);
2113
+ });
2114
+ t.observe(e, {
2115
+ childList: !0,
2116
+ subtree: !0,
2117
+ attributes: !0,
2118
+ attributeFilter: ["value"]
2119
+ }), Pt(() => {
2120
+ t.disconnect();
2121
+ });
2122
+ }(f);
2123
+ });
2124
+ }
2125
+ c = !0;
2126
+ });
2127
+ }
2128
+ function Br(e) {
2129
+ return e[D] ??= {
2130
+ [Cr]: e.nodeName.includes("-"),
2131
+ [Nr]: "http://www.w3.org/1999/xhtml" === e.namespaceURI
2132
+ };
2133
+ }
2134
+ var $r = /* @__PURE__ */ new Map();
2135
+ function Hr(e) {
2136
+ var t, n = e.getAttribute("is") || e.nodeName, r = $r.get(n);
2137
+ if (r) return r;
2138
+ $r.set(n, r = []);
2139
+ for (var o = e, i = Element.prototype; i !== o;) {
2140
+ for (var s in t = u(o)) t[s].set && "innerHTML" !== s && "textContent" !== s && "innerText" !== s && r.push(s);
2141
+ o = d(o);
2142
+ }
2143
+ return r;
2144
+ }
2145
+ function jr(e, t) {
2146
+ return e === t || e?.[k] === t;
2147
+ }
2148
+ function Fr(e = {}, t, n, r) {
2149
+ var o = ee.r, i = rn;
2150
+ return Rt(() => {
2151
+ var s, a;
2152
+ return Mt(() => {
2153
+ s = a, a = r?.() || [], On(() => {
2154
+ jr(n(...a), e) || (t(e, ...a), s && jr(n(...s), e) && t(null, ...s));
2155
+ });
2156
+ }), () => {
2157
+ let r = i;
2158
+ for (; r !== o && null !== r.parent && 33554432 & r.parent.f;) r = r.parent;
2159
+ const s = r.teardown;
2160
+ r.teardown = () => {
2161
+ a && jr(n(...a), e) && t(null, ...a), s?.();
2162
+ };
2163
+ };
2164
+ }), e;
2165
+ }
2166
+ var zr = {
2167
+ get(e, t) {
2168
+ if (!e.exclude.has(t)) return e.props[t];
2169
+ },
2170
+ set: (e, t) => !1,
2171
+ getOwnPropertyDescriptor(e, t) {
2172
+ if (!e.exclude.has(t)) return t in e.props ? {
2173
+ enumerable: !0,
2174
+ configurable: !0,
2175
+ value: e.props[t]
2176
+ } : void 0;
2177
+ },
2178
+ has: (e, t) => !e.exclude.has(t) && t in e.props,
2179
+ ownKeys: (e) => Reflect.ownKeys(e.props).filter((t) => !e.exclude.has(t))
2180
+ };
2181
+ var Ur = {
2182
+ get(e, t) {
2183
+ let n = e.props.length;
2184
+ for (; n--;) {
2185
+ let r = e.props[n];
2186
+ if (h(r) && (r = r()), "object" == typeof r && null !== r && t in r) return r[t];
2187
+ }
2188
+ },
2189
+ set(e, t, n) {
2190
+ let r = e.props.length;
2191
+ for (; r--;) {
2192
+ let o = e.props[r];
2193
+ h(o) && (o = o());
2194
+ const i = l(o, t);
2195
+ if (i && i.set) return i.set(n), !0;
2196
+ }
2197
+ return !1;
2198
+ },
2199
+ getOwnPropertyDescriptor(e, t) {
2200
+ let n = e.props.length;
2201
+ for (; n--;) {
2202
+ let r = e.props[n];
2203
+ if (h(r) && (r = r()), "object" == typeof r && null !== r && t in r) {
2204
+ const e = l(r, t);
2205
+ return e && !e.configurable && (e.configurable = !0), e;
2206
+ }
2207
+ }
2208
+ },
2209
+ has(e, t) {
2210
+ if (t === k || t === A) return !1;
2211
+ for (let n of e.props) if (h(n) && (n = n()), null != n && t in n) return !0;
2212
+ return !1;
2213
+ },
2214
+ ownKeys(e) {
2215
+ const t = [];
2216
+ for (let n of e.props) if (h(n) && (n = n()), n) {
2217
+ for (const e in n) t.includes(e) || t.push(e);
2218
+ for (const e of Object.getOwnPropertySymbols(n)) t.includes(e) || t.push(e);
2219
+ }
2220
+ return t;
2221
+ }
2222
+ };
2223
+ function Vr(...e) {
2224
+ return new Proxy({ props: e }, Ur);
2225
+ }
2226
+ function qr(e, t, n, r) {
2227
+ var o = !Q || !!(2 & n), i = !!(8 & n), s = !!(16 & n), a = r, u = !0, c = void 0, f = () => s && o ? (c ??= we(r), wn(c)) : (u && (u = !1, a = s ? On(r) : r), a);
2228
+ let d;
2229
+ if (i) {
2230
+ var p = k in e || A in e;
2231
+ d = l(e, t)?.set ?? (p && t in e ? (n) => e[t] = n : void 0);
2232
+ }
2233
+ var h, v, g = !1;
2234
+ if (i ? [h, g] = function(e) {
2235
+ var t = me;
2236
+ try {
2237
+ return me = !1, [e(), me];
2238
+ } finally {
2239
+ me = t;
2240
+ }
2241
+ }(() => e[t]) : h = e[t], void 0 === h && void 0 !== r && (h = f(), d && (o && function() {
2242
+ throw new Error("https://svelte.dev/e/props_invalid_value");
2243
+ }(), d(h))), v = o ? () => {
2244
+ var n = e[t];
2245
+ return void 0 === n ? f() : (u = !0, n);
2246
+ } : () => {
2247
+ var n = e[t];
2248
+ return void 0 !== n && (a = void 0), void 0 === n ? a : n;
2249
+ }, o && !(4 & n)) return v;
2250
+ if (d) {
2251
+ var m = e.$$legacy;
2252
+ return function(e, t) {
2253
+ return arguments.length > 0 ? (o && t && !m && !g || d(t ? v() : e), e) : v();
2254
+ };
2255
+ }
2256
+ var _ = !1, b = (1 & n ? we : xe)(() => (_ = !1, v()));
2257
+ i && wn(b);
2258
+ var y = rn;
2259
+ return function(e, t) {
2260
+ if (arguments.length > 0) {
2261
+ const n = t ? wn(b) : o && i ? lt(e) : e;
2262
+ return rt(b, n), _ = !0, void 0 !== a && (a = n), e;
2263
+ }
2264
+ return Jt && _ || 16384 & y.f ? b.v : wn(b);
2265
+ };
2266
+ }
2267
+ var [Xr, Wr] = function() {
2268
+ const e = {};
2269
+ return [() => (function(e) {
2270
+ return ie("hasContext").has(e);
2271
+ }(e) || function() {
2272
+ throw new Error("https://svelte.dev/e/missing_context");
2273
+ }(), function(e) {
2274
+ return ie("getContext").get(e);
2275
+ }(e)), (t) => function(e, t) {
2276
+ return ie("setContext").set(e, t), t;
2277
+ }(e, t)];
2278
+ }(), Yr = function(e) {
2279
+ return e.ON_BORDA_DESTROY = "borda:on-destroy", e.ON_CLOSE_CLICK = "close:click", e.ON_OVERLAY_CLICK = "overlay:click", e.ON_TOUR_START = "tour:start", e.ON_TOUR_FINISH = "tour:finish", e.ON_TOUR_CLOSE = "tour:close", e.ON_TOUR_NEXT = "tour:next", e.ON_TOUR_PREV = "tour:prev", e.ON_KEYBOARD_NEXT = "keyboard:next", e.ON_KEYBOARD_PREV = "keyboard:prev", e.ON_TOUR_STEP_CHANGE = "tour:step-change", e.ON_SKIP_CHANGE = "skip:change", e.ON_SKIP_CLEAR = "skip:clear", e.ON_VISIBILITY_SHOW = "visibility:show", e.ON_VISIBILITY_HIDE = "visibility:hide", e;
2280
+ }({});
2281
+ function Zr() {
2282
+ const e = /* @__PURE__ */ new Map();
2283
+ function t(t, n) {
2284
+ e.has(t) || e.set(t, /* @__PURE__ */ new Set()), e.get(t)?.add(n);
2285
+ }
2286
+ function n(t, n) {
2287
+ const r = e.get(t);
2288
+ r && r.delete(n);
2289
+ }
2290
+ return {
2291
+ on: t,
2292
+ once: function(e, r) {
2293
+ const o = (t) => {
2294
+ n(e, o), r(t);
2295
+ };
2296
+ t(e, o);
2297
+ },
2298
+ off: n,
2299
+ emit: function(t, n) {
2300
+ const r = e.get(t);
2301
+ r && r.forEach((e) => e(n));
2302
+ },
2303
+ remove: function(t) {
2304
+ e.get(t)?.clear();
2305
+ },
2306
+ clear: function() {
2307
+ e.clear();
2308
+ }
2309
+ };
2310
+ }
2311
+ function Jr({ getIsHidden: e, getIsAnimated: t, classNames: n }) {
2312
+ let r = tt(!1), o = tt(!1);
2313
+ const i = Oe(t), s = Oe(e), a = Oe(() => wn(i) && !wn(s) && wn(o)), l = Oe(() => wn(i) && wn(s) && wn(r)), u = Oe(function() {
2314
+ return [
2315
+ wn(s) && !wn(l) && n.hidden,
2316
+ wn(a) && n.in,
2317
+ wn(l) && n.out
2318
+ ];
2319
+ });
2320
+ var c;
2321
+ return c = () => {
2322
+ wn(s) ? rt(o, !0) : rt(r, !0);
2323
+ }, Nt(), kt(1048584, c), {
2324
+ get isHidden() {
2325
+ return wn(s);
2326
+ },
2327
+ get hasShownAnimation() {
2328
+ return wn(a);
2329
+ },
2330
+ get hasHiddenAnimation() {
2331
+ return wn(l);
2332
+ },
2333
+ get classes() {
2334
+ return wn(u);
2335
+ }
2336
+ };
2337
+ }
2338
+ var Qr = [
2339
+ "a[href]",
2340
+ "button",
2341
+ "input",
2342
+ "select",
2343
+ "textarea",
2344
+ "[tabindex]"
2345
+ ].join(",");
2346
+ function eo({ getContainer: e }) {
2347
+ let t = null;
2348
+ function n(e) {
2349
+ return Array.from(e.querySelectorAll(Qr)).filter((e) => !e.hasAttribute("disabled") && -1 !== e.tabIndex && function(e) {
2350
+ return e.offsetWidth > 0 || e.offsetHeight > 0 || e.getClientRects().length > 0;
2351
+ }(e));
2352
+ }
2353
+ let r = !1;
2354
+ function o(t) {
2355
+ if ("Tab" !== t.key) return;
2356
+ const r = e();
2357
+ if (!r) return;
2358
+ const o = n(r);
2359
+ if (0 === o.length) return t.preventDefault(), void r.focus({ preventScroll: !0 });
2360
+ (function(e, t) {
2361
+ const n = t[0], r = e.shiftKey && document.activeElement === n, o = t[t.length - 1], i = !e.shiftKey && document.activeElement === o;
2362
+ r && (e.preventDefault(), o.focus({ preventScroll: !0 })), i && (e.preventDefault(), n.focus({ preventScroll: !0 }));
2363
+ })(t, o);
2364
+ }
2365
+ function i(t) {
2366
+ if (r) return;
2367
+ const o = e();
2368
+ if (!o) return;
2369
+ const i = t.target;
2370
+ i && o.contains(i) || function(e) {
2371
+ const t = n(e);
2372
+ r = !0, (t[0] ?? e)?.focus({ preventScroll: !0 }), r = !1;
2373
+ }(o);
2374
+ }
2375
+ Dt(() => {
2376
+ const n = e();
2377
+ if (!n) return;
2378
+ t = document.activeElement;
2379
+ const r = n.hasAttribute("tabindex");
2380
+ return r || (n.tabIndex = -1), n.focus({ preventScroll: !0 }), document.addEventListener("keydown", o, !0), document.addEventListener("focusin", i, !0), () => {
2381
+ document.removeEventListener("keydown", o, !0), document.removeEventListener("focusin", i, !0), r || n.removeAttribute("tabindex"), t?.focus({ preventScroll: !0 }), t = null;
2382
+ };
2383
+ });
2384
+ }
2385
+ function to({ getTrigger: e, getDuration: t }) {
2386
+ let n = tt(!1), r = null, o = !1;
2387
+ function i() {
2388
+ var e;
2389
+ null !== r && (clearTimeout(r), r = null), rt(n, !0), e = t(), r = setTimeout(() => {
2390
+ rt(n, !1), r = null;
2391
+ }, e);
2392
+ }
2393
+ return Dt(() => {
2394
+ e(), o ? i() : o = !0;
2395
+ }), { get isActive() {
2396
+ return wn(n);
2397
+ } };
2398
+ }
2399
+ var no = (e) => {
2400
+ if (e) return "string" == typeof e ? e : Object.entries(e).map(([e, t]) => {
2401
+ return `${n = e, n.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`)}: ${t}`;
2402
+ var n;
2403
+ }).join("; ") + ";";
2404
+ }, ro = (e) => e?.getElements() ?? null, oo = function(e) {
2405
+ return e.XS = "xs", e.SM = "sm", e.MD = "md", e.LG = "lg", e.XL = "xl", e.XXL = "xxl", e;
2406
+ }({}), io = function(e) {
2407
+ return e.TOP_START = "top-start", e.TOP_CENTER = "top-center", e.TOP_END = "top-end", e.MIDDLE_START = "middle-start", e.MIDDLE_CENTER = "middle-center", e.MIDDLE_END = "middle-end", e.BOTTOM_START = "bottom-start", e.BOTTOM_CENTER = "bottom-center", e.BOTTOM_END = "bottom-end", e;
2408
+ }({}), so = function(e) {
2409
+ return e.CIRCLE = "circle", e.LANDSCAPE = "landscape", e.PORTRAIT = "portrait", e.SQUARE = "square", e;
2410
+ }({}), ao = function(e) {
2411
+ return e.MIXED = "mixed", e;
2412
+ }({}), lo = function(e) {
2413
+ return e.MENU = "menu", e.TREE = "tree", e.GRID = "grid", e.DIALOG = "dialog", e.LISTBOX = "listbox", e;
2414
+ }({}), uo = function(e) {
2415
+ return e.NONE = "none", e.FADE = "fade", e.SCALE = "scale", e.SLIDE = "slide", e;
2416
+ }({}), co = function(e) {
2417
+ return e.RESPONSIVE = "responsive", e.STEP = "step", e;
2418
+ }({}), fo = new Set(Object.values(io)), po = "undefined" != typeof window && "undefined" != typeof document, ho = class extends Error {
2419
+ name = "BordaError";
2420
+ constructor(e) {
2421
+ super(e);
2422
+ }
2423
+ };
2424
+ var vo = (e) => {
2425
+ if ("object" != typeof e || null === e || Array.isArray(e)) return !1;
2426
+ const t = Object.getPrototypeOf(e);
2427
+ return t === Object.prototype || null === t;
2428
+ }, go = (e) => {
2429
+ if (e instanceof Date) return new Date(e.getTime());
2430
+ if (e instanceof RegExp) return new RegExp(e.source, e.flags);
2431
+ if (e instanceof Map) return new Map([...e].map(([e, t]) => [go(e), go(t)]));
2432
+ if (e instanceof Set) return new Set([...e].map(go));
2433
+ if (!vo(e)) return e;
2434
+ const t = {};
2435
+ for (const n of Object.keys(e)) {
2436
+ const r = e[n];
2437
+ Array.isArray(r) ? t[n] = r.map((e) => go(e)) : t[n] = go(r);
2438
+ }
2439
+ return t;
2440
+ };
2441
+ function mo(e, t) {
2442
+ if (null == t) return e;
2443
+ if (null == e) return t;
2444
+ const n = { ...e };
2445
+ for (const r of Object.keys(t)) {
2446
+ const o = t[r], i = e[r];
2447
+ vo(o) && vo(i) ? n[r] = mo(i, o) : n[r] = o;
2448
+ }
2449
+ return n;
2450
+ }
2451
+ var _o = In("<div><!></div>");
2452
+ function bo() {
2453
+ let e = tt(lt(po ? window.scrollX : 0)), t = tt(lt(po ? window.scrollY : 0));
2454
+ return Dt(() => {
2455
+ if (!po) return;
2456
+ let n = null;
2457
+ function r() {
2458
+ null === n && (n = window.requestAnimationFrame(() => {
2459
+ n = null, rt(e, window.scrollX, !0), rt(t, window.scrollY, !0);
2460
+ }));
2461
+ }
2462
+ return window.addEventListener("scroll", r, { passive: !0 }), () => {
2463
+ null !== n && window.cancelAnimationFrame(n), window.removeEventListener("scroll", r);
2464
+ };
2465
+ }), {
2466
+ get x() {
2467
+ return wn(e);
2468
+ },
2469
+ get y() {
2470
+ return wn(t);
2471
+ }
2472
+ };
2473
+ }
2474
+ function yo() {
2475
+ let e = tt(lt(po ? window.innerWidth : 0)), t = tt(lt(po ? window.innerHeight : 0));
2476
+ function n() {
2477
+ rt(e, window.innerWidth, !0), rt(t, window.innerHeight, !0);
2478
+ }
2479
+ return Dt(() => {
2480
+ if (!po) return;
2481
+ const e = new ResizeObserver(n);
2482
+ return e.observe(document.documentElement), () => e.disconnect();
2483
+ }), {
2484
+ get width() {
2485
+ return wn(e);
2486
+ },
2487
+ get height() {
2488
+ return wn(t);
2489
+ }
2490
+ };
2491
+ }
2492
+ function To({ getTargetElement: e, getBorderRadius: t, getPadding: n, getIsAnimated: r }) {
2493
+ let o = tt(0), i = tt(0), s = tt(0), a = tt(0), l = tt(0), u = tt(0), c = tt(!1), f = !1, d = null, p = null;
2494
+ const h = yo(), v = bo();
2495
+ function g() {
2496
+ rt(o, window.innerWidth, !0), rt(i, window.innerHeight, !0), function() {
2497
+ const t = e();
2498
+ if (!t) return;
2499
+ const r = n(), o = t.getBoundingClientRect();
2500
+ rt(s, o.left - r), rt(a, o.top - r), rt(l, o.width + 2 * r), rt(u, o.height + 2 * r);
2501
+ }();
2502
+ }
2503
+ Dt(() => {
2504
+ const t = e();
2505
+ f && t !== d && r() && (null !== p && window.clearTimeout(p), rt(c, !0), p = window.setTimeout(() => {
2506
+ rt(c, !1), p = null;
2507
+ }, 350)), g(), f = !0, d = t;
2508
+ const n = t ? new ResizeObserver(g) : null;
2509
+ return t && n?.observe(t), () => {
2510
+ n?.disconnect();
2511
+ };
2512
+ }), Dt(() => {
2513
+ h.width, h.height, v.x, v.y, g();
2514
+ });
2515
+ const m = Oe(() => e() ? `M 0 0 H ${wn(o)} V ${wn(i)} H 0 Z ${function(e, t, n, r, o) {
2516
+ const i = Math.min(o, n / 2, r / 2);
2517
+ return [
2518
+ `M ${e + i} ${t}`,
2519
+ "H " + (e + n - i),
2520
+ `A ${i} ${i} 0 0 1 ${e + n} ${t + i}`,
2521
+ "V " + (t + r - i),
2522
+ `A ${i} ${i} 0 0 1 ${e + n - i} ${t + r}`,
2523
+ `H ${e + i}`,
2524
+ `A ${i} ${i} 0 0 1 ${e} ${t + r - i}`,
2525
+ `V ${t + i}`,
2526
+ `A ${i} ${i} 0 0 1 ${e + i} ${t}`,
2527
+ "Z"
2528
+ ].join(" ");
2529
+ }(wn(s), wn(a), wn(l), wn(u), t())}` : `M 0 0 H ${wn(o)} V ${wn(i)} H 0 Z`);
2530
+ return {
2531
+ get backdropPath() {
2532
+ return wn(m);
2533
+ },
2534
+ get isTransitioning() {
2535
+ return wn(c);
2536
+ },
2537
+ get width() {
2538
+ return wn(o);
2539
+ },
2540
+ get height() {
2541
+ return wn(i);
2542
+ }
2543
+ };
2544
+ }
2545
+ var wo = $n("<svg xmlns=\"http://www.w3.org/2000/svg\" preserveAspectRatio=\"none\" role=\"button\" tabindex=\"0\"><path fill-rule=\"evenodd\"></path></svg>");
2546
+ var Eo = function(e) {
2547
+ return e.DURING_SCROLL = "during-scroll", e.AFTER_SCROLL = "after-scroll", e;
2548
+ }({}), So = function(e) {
2549
+ return e.FADE = "fade", e.GLIDE = "glide", e;
2550
+ }({}), Oo = {
2551
+ enter: uo.FADE,
2552
+ exit: uo.FADE,
2553
+ enterDuration: 200,
2554
+ exitDuration: 150,
2555
+ easing: "ease-out",
2556
+ appearance: Eo.AFTER_SCROLL,
2557
+ transition: So.FADE
2558
+ }, xo = {
2559
+ transitionDuration: 350,
2560
+ easing: "ease-in-out"
2561
+ };
2562
+ function Co(e) {
2563
+ const t = Oe(() => e.getConfig().animation), n = Oe(() => wn(t) ? wn(t) : {}), r = Oe(() => !1 !== wn(t) && !1 !== wn(n).isEnabled), o = Oe(() => ({
2564
+ ...Oo,
2565
+ ...wn(n).tooltip ?? {}
2566
+ })), i = Oe(() => ({
2567
+ ...xo,
2568
+ ...wn(n).overlay ?? {}
2569
+ }));
2570
+ return {
2571
+ apply: function() {
2572
+ !1 !== wn(t) && e.mergeConfig({ animation: {
2573
+ isEnabled: wn(n).isEnabled ?? !0,
2574
+ tooltip: wn(o),
2575
+ overlay: wn(i)
2576
+ } });
2577
+ },
2578
+ get api() {
2579
+ return {
2580
+ get isEnabled() {
2581
+ return wn(r);
2582
+ },
2583
+ get tooltip() {
2584
+ return wn(o);
2585
+ },
2586
+ get overlay() {
2587
+ return wn(i);
2588
+ }
2589
+ };
2590
+ }
2591
+ };
2592
+ }
2593
+ function No(e) {
2594
+ if (!e) return null;
2595
+ if (e instanceof HTMLElement) return e;
2596
+ if ("string" == typeof e) return document.querySelector(e);
2597
+ const t = function(e) {
2598
+ const t = [];
2599
+ if (e.id && t.push(`#${CSS.escape(e.id)}`), e.class && t.push(`.${CSS.escape(e.class)}`), e.data) {
2600
+ const { name: n, value: r } = e.data;
2601
+ void 0 === r ? t.push(`[data-${n}]`) : t.push(`[data-${n}="${CSS.escape(r)}"]`);
2602
+ }
2603
+ return t.join("");
2604
+ }(e);
2605
+ return t ? document.querySelector(t) : null;
2606
+ }
2607
+ function ko(e, t) {
2608
+ let n = tt(0), r = tt(!1), o = null, i = null;
2609
+ const s = Oe(() => e.current.steps ?? []), a = Oe(() => wn(s).length), l = Oe(() => wn(s)[wn(n)]), u = Oe(() => wn(n) + 1), c = Oe(() => No(wn(l)?.target)), f = Oe(() => wn(n) >= wn(a) - 1), d = Oe(() => wn(a) > 0), p = Oe(() => !wn(f)), h = Oe(() => wn(n) > 0), v = Oe(() => e.getConfig().tour);
2610
+ async function g(e) {
2611
+ if (e < 0 || e >= wn(a)) return;
2612
+ const r = wn(s)[wn(n)], o = wn(s)[e];
2613
+ r?.onDeselected?.(), await o?.prepareElement?.(), o?.onBeforeHighlighted?.(), rt(n, e, !0), o?.onHighlighted?.(), t.emit(Yr.ON_TOUR_STEP_CHANGE, wn(u));
2614
+ }
2615
+ function m() {
2616
+ return new Promise((e, t) => {
2617
+ o = e, i = t;
2618
+ });
2619
+ }
2620
+ function _() {
2621
+ t.emit(Yr.ON_TOUR_FINISH);
2622
+ }
2623
+ return {
2624
+ apply: function() {
2625
+ rt(n, wn(v)?.startStep ?? 0, !0), wn(v)?.onStart?.(), t.emit(Yr.ON_TOUR_START);
2626
+ },
2627
+ api: {
2628
+ get isActivated() {
2629
+ return wn(d);
2630
+ },
2631
+ get hasNextStep() {
2632
+ return wn(p);
2633
+ },
2634
+ get hasPrevStep() {
2635
+ return wn(h);
2636
+ },
2637
+ get currentStep() {
2638
+ return wn(u);
2639
+ },
2640
+ get currentStepIndex() {
2641
+ return wn(n);
2642
+ },
2643
+ get totalSteps() {
2644
+ return wn(a);
2645
+ },
2646
+ get currentTarget() {
2647
+ return wn(c);
2648
+ },
2649
+ get step() {
2650
+ return wn(l);
2651
+ },
2652
+ get isMovePrevented() {
2653
+ return wn(r);
2654
+ },
2655
+ preventMove: function() {
2656
+ rt(r, !0);
2657
+ },
2658
+ continue: function() {
2659
+ rt(r, !1), o?.(), o = null, i = null;
2660
+ },
2661
+ clearMovePrevented: function() {
2662
+ rt(r, !1), i?.(), o = null, i = null;
2663
+ },
2664
+ changeStep: g,
2665
+ prev: async function() {
2666
+ if (wn(h)) {
2667
+ if (wn(l)?.onPrev?.(), wn(v)?.onPrev?.(), t.emit(Yr.ON_TOUR_PREV), wn(r)) try {
2668
+ await m();
2669
+ } catch {
2670
+ return;
2671
+ }
2672
+ await g(wn(n) - 1);
2673
+ }
2674
+ },
2675
+ next: async function() {
2676
+ if (wn(f)) _();
2677
+ else {
2678
+ if (wn(l)?.onNext?.(), wn(v)?.onNext?.(), t.emit(Yr.ON_TOUR_NEXT), wn(r)) try {
2679
+ await m();
2680
+ } catch {
2681
+ return;
2682
+ }
2683
+ await g(wn(n) + 1);
2684
+ }
2685
+ },
2686
+ finish: _
2687
+ }
2688
+ };
2689
+ }
2690
+ function Ao(e) {
2691
+ return { highlight: function(t, n, r) {
2692
+ return e({
2693
+ ...n,
2694
+ steps: [t]
2695
+ }, r);
2696
+ } };
2697
+ }
2698
+ var Po = new Set([
2699
+ "INPUT",
2700
+ "TEXTAREA",
2701
+ "SELECT"
2702
+ ]);
2703
+ function Do(e, t) {
2704
+ const n = Oe(() => e.getConfig().tour);
2705
+ function r(e) {
2706
+ if (!Po.has(e.target?.tagName)) switch (e.key) {
2707
+ case "ArrowRight":
2708
+ e.preventDefault(), t.emit(Yr.ON_KEYBOARD_NEXT);
2709
+ break;
2710
+ case "ArrowLeft":
2711
+ e.preventDefault(), t.emit(Yr.ON_KEYBOARD_PREV);
2712
+ break;
2713
+ case "Escape": t.emit(Yr.ON_TOUR_CLOSE);
2714
+ }
2715
+ }
2716
+ return {
2717
+ apply: function() {
2718
+ !1 !== wn(n)?.hasKeyboardControl && document.addEventListener("keydown", r);
2719
+ },
2720
+ destroy: function() {
2721
+ document.removeEventListener("keydown", r);
2722
+ }
2723
+ };
2724
+ }
2725
+ var Lo = [co.RESPONSIVE, co.STEP];
2726
+ function Ro(e) {
2727
+ const t = lt({});
2728
+ function n(e, n) {
2729
+ null === n ? delete t[e] : t[e] = n;
2730
+ }
2731
+ function r() {
2732
+ let n = e.current;
2733
+ for (const e of Lo) {
2734
+ const r = t[e];
2735
+ r && (n = mo(n, r()));
2736
+ }
2737
+ return n;
2738
+ }
2739
+ const o = Oe(r);
2740
+ return {
2741
+ get resolved() {
2742
+ return wn(o);
2743
+ },
2744
+ resolve: r,
2745
+ set: n,
2746
+ applyStep: function(e) {
2747
+ if (!e) return void n(co.STEP, null);
2748
+ const { tourOverlay: t, tourTooltip: r, tourImage: o, tourButtons: i, tourProgress: s, closeButton: a, tourSkip: l } = e, u = [
2749
+ t,
2750
+ r,
2751
+ o,
2752
+ i,
2753
+ s,
2754
+ a,
2755
+ l
2756
+ ].some((e) => void 0 !== e);
2757
+ n(co.STEP, u ? () => ({
2758
+ tourOverlay: t,
2759
+ tourTooltip: r,
2760
+ tourImage: o,
2761
+ tourButtons: i,
2762
+ tourProgress: s,
2763
+ closeButton: a,
2764
+ tourSkip: l
2765
+ }) : null);
2766
+ }
2767
+ };
2768
+ }
2769
+ function Mo(e, t) {
2770
+ let n = tt(null), r = [];
2771
+ function o(e, r) {
2772
+ const o = function(e, t) {
2773
+ for (const n of t) if (e <= n) return n;
2774
+ return null;
2775
+ }(window.innerWidth, e);
2776
+ o !== wn(n) && (rt(n, o, !0), null !== o ? t.set(co.RESPONSIVE, () => r[o]) : t.set(co.RESPONSIVE, null));
2777
+ }
2778
+ return {
2779
+ apply: function() {
2780
+ const t = e.getConfig().responsive;
2781
+ if (!t) return;
2782
+ const n = Object.keys(t).map(Number).sort((e, t) => e - t);
2783
+ if (0 !== n.length && po) {
2784
+ for (const e of n) {
2785
+ const i = window.matchMedia(`(max-width: ${e}px)`), s = () => o(n, t);
2786
+ i.addEventListener("change", s), r.push(() => {
2787
+ i.removeEventListener("change", s);
2788
+ });
2789
+ }
2790
+ o(n, t);
2791
+ }
2792
+ },
2793
+ destroy: function() {
2794
+ rt(n, null);
2795
+ for (const e of r) e();
2796
+ r = [], t.set(co.RESPONSIVE, null);
2797
+ },
2798
+ get api() {
2799
+ return { get activeBreakpoint() {
2800
+ return wn(n);
2801
+ } };
2802
+ }
2803
+ };
2804
+ }
2805
+ var Io = function(e) {
2806
+ return e.LINEAR = "linear", e.EASE = "ease", e.EASE_IN = "ease-in", e.EASE_OUT = "ease-out", e.EASE_IN_OUT = "ease-in-out", e;
2807
+ }({}), Bo = {
2808
+ [Io.LINEAR]: (e) => e,
2809
+ [Io.EASE]: (e) => e * e * (3 - 2 * e),
2810
+ [Io.EASE_IN]: (e) => e * e,
2811
+ [Io.EASE_OUT]: (e) => 1 - (1 - e) * (1 - e),
2812
+ [Io.EASE_IN_OUT]: (e) => e < .5 ? 2 * e * e : 1 - Math.pow(-2 * e + 2, 2) / 2
2813
+ }, $o = Io.EASE_IN_OUT;
2814
+ function Ho({ getEasing: e }) {
2815
+ const t = Oe(e), n = Oe(() => function(e) {
2816
+ return "function" == typeof e ? e : e ? Bo[e] : Bo[$o];
2817
+ }(wn(t)));
2818
+ return { get easingFunction() {
2819
+ return wn(n);
2820
+ } };
2821
+ }
2822
+ var jo = {
2823
+ block: "center",
2824
+ inline: "nearest",
2825
+ duration: 400,
2826
+ easing: Io.EASE_IN_OUT,
2827
+ offset: {
2828
+ x: 0,
2829
+ y: 0
2830
+ },
2831
+ isLocked: !0
2832
+ };
2833
+ function Fo(e) {
2834
+ let t = tt(!1), n = null;
2835
+ const r = Oe(() => e.getConfig().scroll), o = Oe(() => !1 !== wn(r)), i = Oe(() => wn(r) || {}), s = Oe(() => {
2836
+ return e = wn(i), {
2837
+ ...jo,
2838
+ ...e,
2839
+ offset: {
2840
+ ...jo.offset,
2841
+ ...e.offset ?? {}
2842
+ }
2843
+ };
2844
+ var e;
2845
+ }), a = Ho({ getEasing: () => wn(s).easing }), l = Oe(() => e.getConfig().animation), u = Oe(() => !1 !== wn(l) && !1 !== wn(l)?.isEnabled), c = Oe(() => wn(u) ? wn(s).duration : 0), f = { resolve: function(e, t, n, r, o) {
2846
+ return e + function(e, t, n, r) {
2847
+ const o = t + n;
2848
+ switch (r) {
2849
+ case "start": return t;
2850
+ case "end": return o - e;
2851
+ case "center": return t + n / 2 - e / 2;
2852
+ default: return t >= 0 && o <= e ? 0 : t < 0 ? t : o - e;
2853
+ }
2854
+ }(t, n, r, o);
2855
+ } }, d = { isFullyVisible: function(e) {
2856
+ if (!po) return !1;
2857
+ const t = e.getBoundingClientRect();
2858
+ return t.top >= 0 && t.bottom <= window.innerHeight && t.left >= 0 && t.right <= window.innerWidth;
2859
+ } }, p = Oe(() => wn(o) && wn(s).isLocked);
2860
+ function h() {
2861
+ n?.cancel(), n = null;
2862
+ }
2863
+ function v(e) {
2864
+ e.preventDefault();
2865
+ }
2866
+ return {
2867
+ apply: function() {
2868
+ wn(o) && (e.mergeConfig({ scroll: wn(s) }), wn(p) && po && (window.addEventListener("wheel", v, { passive: !1 }), window.addEventListener("touchmove", v, { passive: !1 })));
2869
+ },
2870
+ destroy: function() {
2871
+ po && (window.removeEventListener("wheel", v), window.removeEventListener("touchmove", v));
2872
+ },
2873
+ api: {
2874
+ get isScrolling() {
2875
+ return wn(t);
2876
+ },
2877
+ get isLocked() {
2878
+ return wn(p);
2879
+ },
2880
+ scrollTo: async function(e) {
2881
+ if (!po || !wn(o) || !e) return;
2882
+ if (d.isFullyVisible(e)) return h(), void rt(t, !1);
2883
+ const { targetX: r, targetY: i } = function(e) {
2884
+ const t = e.getBoundingClientRect();
2885
+ return {
2886
+ targetX: f.resolve(window.scrollX, window.innerWidth, t.left, t.width, wn(s).inline) + (wn(s).offset.x ?? 0),
2887
+ targetY: f.resolve(window.scrollY, window.innerHeight, t.top, t.height, wn(s).block) + (wn(s).offset.y ?? 0)
2888
+ };
2889
+ }(e);
2890
+ h(), rt(t, !0), await function(e, t) {
2891
+ return new Promise((r) => {
2892
+ const o = window.scrollX, i = window.scrollY, s = e - o, l = t - i;
2893
+ if (0 === s && 0 === l) return void r();
2894
+ if (wn(c) <= 0) return window.scrollTo(e, t), void r();
2895
+ const u = a.easingFunction, f = performance.now();
2896
+ let d = null, p = !1;
2897
+ n = { cancel() {
2898
+ p = !0, null !== d && window.cancelAnimationFrame(d), r();
2899
+ } };
2900
+ const h = (e) => {
2901
+ if (p) return;
2902
+ const t = Math.min((e - f) / wn(c), 1), a = u(t);
2903
+ window.scrollTo(o + s * a, i + l * a), t < 1 ? d = window.requestAnimationFrame(h) : (d = null, n = null, r());
2904
+ };
2905
+ d = window.requestAnimationFrame(h);
2906
+ });
2907
+ }(r, i), rt(t, !1);
2908
+ }
2909
+ }
2910
+ };
2911
+ }
2912
+ function zo(e, t) {
2913
+ let n = tt(!1);
2914
+ const r = Oe(() => e.getConfig().skip), o = Oe(() => !1 === wn(r)), i = Oe(() => "object" == typeof wn(r) && wn(r)?.storageKey ? wn(r).storageKey : "borda-tour-skipped");
2915
+ function s(e, t) {
2916
+ try {
2917
+ t ? globalThis.localStorage?.setItem(e, "true") : globalThis.localStorage?.removeItem(e);
2918
+ } catch (e) {
2919
+ if (!(e instanceof DOMException)) throw e;
2920
+ }
2921
+ }
2922
+ function a(e) {
2923
+ wn(o) || (rt(n, e, !0), s(wn(i), wn(n)), t.emit(Yr.ON_SKIP_CHANGE, e));
2924
+ }
2925
+ function l() {
2926
+ rt(n, !1), s(wn(i), wn(n)), t.emit(Yr.ON_SKIP_CLEAR);
2927
+ }
2928
+ return {
2929
+ apply: function() {
2930
+ wn(o) || rt(n, function(e) {
2931
+ try {
2932
+ return "true" === globalThis.localStorage?.getItem(e);
2933
+ } catch (e) {
2934
+ if (e instanceof DOMException && "SecurityError" === e.name) return !1;
2935
+ throw e;
2936
+ }
2937
+ }(wn(i)), !0);
2938
+ },
2939
+ get api() {
2940
+ return {
2941
+ get isSkipped() {
2942
+ return wn(n);
2943
+ },
2944
+ get storageKey() {
2945
+ return wn(i);
2946
+ },
2947
+ set: a,
2948
+ clear: l
2949
+ };
2950
+ }
2951
+ };
2952
+ }
2953
+ function Uo(e, t) {
2954
+ function n() {
2955
+ e.mergeConfig({ visibility: { isHidden: !1 } }), t.emit(Yr.ON_VISIBILITY_SHOW);
2956
+ }
2957
+ function r() {
2958
+ e.mergeConfig({ visibility: { isHidden: !0 } }), t.emit(Yr.ON_VISIBILITY_HIDE);
2959
+ }
2960
+ return {
2961
+ apply: function() {
2962
+ const t = e.getConfig().visibility, n = t?.isAnimated ?? !0, r = t?.isHidden ?? !1;
2963
+ e.mergeConfig({ visibility: {
2964
+ isAnimated: n,
2965
+ isHidden: r
2966
+ } });
2967
+ },
2968
+ get api() {
2969
+ return {
2970
+ get isHidden() {
2971
+ return !!e.getConfig().visibility?.isHidden;
2972
+ },
2973
+ show: n,
2974
+ hide: r
2975
+ };
2976
+ }
2977
+ };
2978
+ }
2979
+ Q = !0;
2980
+ var Vo = $n("<path d=\"M4.45416 4.45404L11.3625 11.3624Z\" fill=\"currentColor\"></path><path d=\"M4.45416 11.3624L11.3625 4.45404Z\" fill=\"currentColor\"></path><path d=\"M4.45416 4.45404L11.3625 11.3624M4.45416 11.3624L11.3625 4.45404\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"bevel\"></path>", 1);
2981
+ var qo = function(e) {
2982
+ return e.RECTANGLE = "rectangle", e.CIRCLE = "circle", e.SQUARE = "square", e;
2983
+ }({}), Ko = function(e) {
2984
+ return e.FILLED = "filled", e.OUTLINED = "outlined", e.GHOST = "ghost", e.TEXT = "text", e;
2985
+ }({}), Go = function(e) {
2986
+ return e.BUTTON = "button", e.SUBMIT = "submit", e.RESET = "reset", e;
2987
+ }({}), Xo = new Set([
2988
+ "$$slots",
2989
+ "$$events",
2990
+ "$$legacy",
2991
+ "id",
2992
+ "disabled",
2993
+ "autosize",
2994
+ "size",
2995
+ "shape",
2996
+ "variant",
2997
+ "type",
2998
+ "aria",
2999
+ "customClasses",
3000
+ "customStyles",
3001
+ "children"
3002
+ ]), Wo = In("<button><!></button>");
3003
+ function Yo(e, t) {
3004
+ ne(t, !0);
3005
+ let n = qr(t, "size", 19, () => oo.MD), r = qr(t, "shape", 19, () => qo.RECTANGLE), o = qr(t, "variant", 19, () => Ko.FILLED), i = qr(t, "type", 19, () => Go.BUTTON), s = new Proxy({
3006
+ props: t,
3007
+ exclude: Xo
3008
+ }, zr);
3009
+ const a = Oe(() => [
3010
+ "rb-button",
3011
+ `rb-button--${r()}`,
3012
+ `rb-button--${o()}`,
3013
+ t.autosize ? "rb-button--autosize" : `rb-button--${n()}`,
3014
+ t.customClasses?.root
3015
+ ]);
3016
+ let l = tt(null);
3017
+ const u = Oe(() => no(t.customStyles?.root));
3018
+ var c = { getElements: function() {
3019
+ return { root: wn(l) };
3020
+ } }, f = Wo();
3021
+ Ir(f, () => ({
3022
+ id: t.id,
3023
+ type: i(),
3024
+ disabled: t.disabled,
3025
+ class: wn(a),
3026
+ style: wn(u),
3027
+ "aria-label": t.aria?.ariaLabel,
3028
+ "aria-labelledby": t.aria?.ariaLabelledby,
3029
+ "aria-describedby": t.aria?.ariaDescribedby,
3030
+ "aria-disabled": t.aria?.ariaDisabled,
3031
+ "aria-expanded": t.aria?.ariaExpanded,
3032
+ "aria-controls": t.aria?.ariaControls,
3033
+ "aria-haspopup": t.aria?.ariaHaspopup,
3034
+ "aria-pressed": t.aria?.ariaPressed,
3035
+ ...s
3036
+ }));
3037
+ var d = bt(f), p = (e) => {
3038
+ var n = jn();
3039
+ or(yt(n), () => t.children), Fn(e, n);
3040
+ };
3041
+ return sr(d, (e) => {
3042
+ t.children && e(p);
3043
+ }), G(f), Fr(f, (e) => rt(l, e), () => wn(l)), Fn(e, f), re(c);
3044
+ }
3045
+ var Zo = $n("<svg fill=\"none\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
3046
+ var Jo = In("<div><!></div>");
3047
+ function Qo(e, t) {
3048
+ ne(t, !0);
3049
+ let n = qr(t, "size", 19, () => oo.MD), r = qr(t, "shape", 19, () => so.CIRCLE), o = qr(t, "aria", 19, () => ({ ariaLabel: "Close" }));
3050
+ const { eventEmitter: i, close: s } = Xr();
3051
+ let a = tt(null), l = tt(null), u = tt(null);
3052
+ const c = Oe(() => [
3053
+ "rb-close-button",
3054
+ `rb-close-button--${n()}`,
3055
+ `rb-close-button--${r()}`,
3056
+ t.customClasses?.root
3057
+ ]), f = Oe(() => no(t.customStyles?.root));
3058
+ function d(e) {
3059
+ i.emit(Yr.ON_CLOSE_CLICK, e), t.onClose ? t.onClose(e) : s();
3060
+ }
3061
+ var p = { getElements: function() {
3062
+ return {
3063
+ root: wn(a),
3064
+ button: ro(wn(l)),
3065
+ cross: ro(wn(u))
3066
+ };
3067
+ } }, h = Jo(), g = bt(h), m = (e) => {
3068
+ var n = jn();
3069
+ pr(yt(n), () => t.customHtml.button), Fn(e, n);
3070
+ }, _ = (e) => {
3071
+ {
3072
+ let r = Oe(() => ({ root: t.customClasses?.button })), i = Oe(() => ({ root: t.customStyles?.button }));
3073
+ Fr(Yo(e, {
3074
+ get aria() {
3075
+ return o();
3076
+ },
3077
+ autosize: !0,
3078
+ get shape() {
3079
+ return qo.CIRCLE;
3080
+ },
3081
+ get variant() {
3082
+ return Ko.FILLED;
3083
+ },
3084
+ get customClasses() {
3085
+ return wn(r);
3086
+ },
3087
+ get customStyles() {
3088
+ return wn(i);
3089
+ },
3090
+ onclick: d,
3091
+ children: (e, r) => {
3092
+ {
3093
+ let r = Oe(() => ({ root: t.customClasses?.cross })), o = Oe(() => ({ root: t.customStyles?.cross }));
3094
+ Fr(function(e, t) {
3095
+ ne(t, !0);
3096
+ let n = qr(t, "viewBox", 3, "0 0 16 16"), r = qr(t, "size", 19, () => oo.MD), o = tt(null);
3097
+ const i = Oe(() => [
3098
+ "rb-icon",
3099
+ `rb-icon--${r()}`,
3100
+ t.customClasses?.root
3101
+ ]), s = Oe(() => no(t.customStyles?.root));
3102
+ var a = { getElements: function() {
3103
+ return { root: wn(o) };
3104
+ } }, l = Zo();
3105
+ return or(bt(l), () => t.children ?? v), G(l), Fr(l, (e) => rt(o, e), () => wn(o)), It(() => {
3106
+ Mr(l, "id", t.id), yr(l, 0, gr(wn(i))), wr(l, wn(s)), Mr(l, "viewBox", n());
3107
+ }), Fn(e, l), re(a);
3108
+ }(e, {
3109
+ get size() {
3110
+ return n();
3111
+ },
3112
+ get customClasses() {
3113
+ return wn(r);
3114
+ },
3115
+ get customStyles() {
3116
+ return wn(o);
3117
+ },
3118
+ children: (e, t) => {
3119
+ (function(e) {
3120
+ var t = Vo();
3121
+ X(2), Fn(e, t);
3122
+ })(e);
3123
+ },
3124
+ $$slots: { default: !0 }
3125
+ }), (e) => rt(u, e, !0), () => wn(u));
3126
+ }
3127
+ },
3128
+ $$slots: { default: !0 }
3129
+ }), (e) => rt(l, e, !0), () => wn(l));
3130
+ }
3131
+ };
3132
+ return sr(g, (e) => {
3133
+ t.customHtml?.button ? e(m) : e(_, -1);
3134
+ }), G(h), Fr(h, (e) => rt(a, e), () => wn(a)), It(() => {
3135
+ Mr(h, "id", t.id), yr(h, 1, gr(wn(c))), wr(h, wn(f));
3136
+ }), Fn(e, h), re(p);
3137
+ }
3138
+ var ei = {
3139
+ label: "Back",
3140
+ type: Go.BUTTON,
3141
+ variant: Ko.OUTLINED,
3142
+ shape: qo.RECTANGLE
3143
+ }, ti = {
3144
+ label: "Next",
3145
+ type: Go.BUTTON,
3146
+ variant: Ko.FILLED,
3147
+ shape: qo.RECTANGLE
3148
+ }, ni = {
3149
+ label: "Finish",
3150
+ type: Go.BUTTON,
3151
+ variant: Ko.FILLED,
3152
+ shape: qo.RECTANGLE
3153
+ }, ri = {
3154
+ label: "Skip",
3155
+ type: Go.BUTTON,
3156
+ variant: Ko.TEXT,
3157
+ shape: qo.RECTANGLE
3158
+ }, oi = In("<div><!> <div class=\"rb-tour-buttons__center\"><!></div> <!> <!></div>");
3159
+ var ii = In("<img/>");
3160
+ var si = function(e) {
3161
+ return e.DEFAULT = "default", e.BLEED = "bleed", e;
3162
+ }({});
3163
+ function ai(e, t) {
3164
+ ne(t, !0);
3165
+ let n = qr(t, "src", 3, ""), r = qr(t, "alt", 3, ""), o = qr(t, "variant", 19, () => si.DEFAULT), i = tt(null);
3166
+ const s = Oe(() => [
3167
+ "rb-tour-image",
3168
+ `rb-tour-image--${o()}`,
3169
+ t.customClasses?.root
3170
+ ]);
3171
+ var a = { getElements: function() {
3172
+ return { root: wn(i)?.getElements()?.root ?? null };
3173
+ } };
3174
+ {
3175
+ let o = Oe(() => ({ root: wn(s) }));
3176
+ Fr(function(e, t) {
3177
+ ne(t, !0);
3178
+ let n = qr(t, "src", 3, ""), r = qr(t, "alt", 3, ""), o = tt(null);
3179
+ const i = Oe(() => ["rb-image", t.customClasses?.root]), s = Oe(() => no(t.customStyles?.root));
3180
+ var a = { getElements: function() {
3181
+ return { root: wn(o) };
3182
+ } }, l = jn(), u = yt(l), c = (e) => {
3183
+ var n = jn();
3184
+ pr(yt(n), () => t.customHtml.root), Fn(e, n);
3185
+ }, f = (e) => {
3186
+ var a = ii();
3187
+ Fr(a, (e) => rt(o, e), () => wn(o)), It(() => {
3188
+ Mr(a, "id", t.id), yr(a, 1, gr(wn(i))), wr(a, wn(s)), Mr(a, "src", n()), Mr(a, "alt", r()), Mr(a, "aria-label", t.aria?.ariaLabel), Mr(a, "aria-labelledby", t.aria?.ariaLabelledby), Mr(a, "aria-describedby", t.aria?.ariaDescribedby);
3189
+ }), Fn(e, a);
3190
+ };
3191
+ return sr(u, (e) => {
3192
+ t.customHtml?.root ? e(c) : e(f, -1);
3193
+ }), Fn(e, l), re(a);
3194
+ }(e, {
3195
+ get id() {
3196
+ return t.id;
3197
+ },
3198
+ get src() {
3199
+ return n();
3200
+ },
3201
+ get alt() {
3202
+ return r();
3203
+ },
3204
+ get aria() {
3205
+ return t.aria;
3206
+ },
3207
+ get customClasses() {
3208
+ return wn(o);
3209
+ },
3210
+ get customStyles() {
3211
+ return t.customStyles;
3212
+ },
3213
+ get customHtml() {
3214
+ return t.customHtml;
3215
+ }
3216
+ }), (e) => rt(i, e, !0), () => wn(i));
3217
+ }
3218
+ return re(a);
3219
+ }
3220
+ var li = In("<div></div>"), ui = In("<div role=\"progressbar\"></div>");
3221
+ var ci = In("<div role=\"progressbar\"><div><div></div></div></div>");
3222
+ var fi = In("<div role=\"progressbar\"><span> </span></div>");
3223
+ var di = function(e) {
3224
+ return e.DOTS = "dots", e.TEXT = "text", e.LINE = "line", e;
3225
+ }({}), pi = In("<div><!></div>");
3226
+ function hi(e, t) {
3227
+ ne(t, !0);
3228
+ let n = qr(t, "currentStep", 3, 1), r = qr(t, "totalSteps", 3, 1), o = qr(t, "variant", 19, () => di.DOTS), i = tt(null);
3229
+ const s = Oe(() => [
3230
+ "rb-tour-progress",
3231
+ `rb-tour-progress--${o()}`,
3232
+ t.customClasses?.root
3233
+ ]), a = Oe(() => no(t.customStyles?.root));
3234
+ var l = { getElements: function() {
3235
+ return { root: wn(i) };
3236
+ } }, u = pi(), c = bt(u), f = (e) => {
3237
+ var n = jn();
3238
+ pr(yt(n), () => t.customHtml.progress), Fn(e, n);
3239
+ }, d = (e) => {
3240
+ (function(e, t) {
3241
+ ne(t, !0);
3242
+ let n = qr(t, "current", 3, 1), r = qr(t, "total", 3, 1), o = qr(t, "aria", 19, () => ({ ariaLabel: "Progress" }));
3243
+ const i = Oe(() => [
3244
+ "rb-progress",
3245
+ "rb-progress--dots",
3246
+ t.customClasses?.root
3247
+ ]), s = Oe(() => no(t.customStyles?.root)), a = Oe(() => ["rb-progress__item", t.customClasses?.item]), l = Oe(() => no(t.customStyles?.item));
3248
+ var u = ui();
3249
+ Mr(u, "aria-valuemin", 1), lr(u, 20, () => Array.from({ length: r() }, (e, t) => t), (e) => e, (e, t) => {
3250
+ var r = li();
3251
+ It((e) => {
3252
+ yr(r, 1, e), wr(r, wn(l));
3253
+ }, [() => gr([...wn(a), t + 1 === n() && "rb-progress__item--active"])]), Fn(e, r);
3254
+ }), G(u), It(() => {
3255
+ Mr(u, "id", t.id), yr(u, 1, gr(wn(i))), wr(u, wn(s)), Mr(u, "aria-label", o()?.ariaLabel), Mr(u, "aria-labelledby", o()?.ariaLabelledby), Mr(u, "aria-describedby", o()?.ariaDescribedby), Mr(u, "aria-controls", o()?.ariaControls), Mr(u, "aria-valuenow", n()), Mr(u, "aria-valuemax", r()), Mr(u, "aria-valuetext", `${n() ?? ""} / ${r() ?? ""}`);
3256
+ }), Fn(e, u), re();
3257
+ })(e, {
3258
+ get current() {
3259
+ return n();
3260
+ },
3261
+ get total() {
3262
+ return r();
3263
+ },
3264
+ get customClasses() {
3265
+ return t.customClasses;
3266
+ },
3267
+ get customStyles() {
3268
+ return t.customStyles;
3269
+ }
3270
+ });
3271
+ }, p = (e) => {
3272
+ (function(e, t) {
3273
+ ne(t, !0);
3274
+ let n = qr(t, "current", 3, 1), r = qr(t, "total", 3, 1), o = qr(t, "aria", 19, () => ({ ariaLabel: "Progress" }));
3275
+ const i = Oe(() => [
3276
+ "rb-progress",
3277
+ "rb-progress--text",
3278
+ t.customClasses?.root
3279
+ ]), s = Oe(() => no(t.customStyles?.root)), a = Oe(() => ["rb-progress__item", t.customClasses?.item]), l = Oe(() => no(t.customStyles?.item));
3280
+ var u = fi();
3281
+ Mr(u, "aria-valuemin", 1);
3282
+ var c = bt(u), f = bt(c);
3283
+ G(c), G(u), It(() => {
3284
+ Mr(u, "id", t.id), yr(u, 1, gr(wn(i))), wr(u, wn(s)), Mr(u, "aria-label", o()?.ariaLabel), Mr(u, "aria-labelledby", o()?.ariaLabelledby), Mr(u, "aria-describedby", o()?.ariaDescribedby), Mr(u, "aria-controls", o()?.ariaControls), Mr(u, "aria-valuenow", n()), Mr(u, "aria-valuemax", r()), Mr(u, "aria-valuetext", `${n() ?? ""} / ${r() ?? ""}`), yr(c, 1, gr(wn(a))), wr(c, wn(l)), Wn(f, `${n() ?? ""} / ${r() ?? ""}`);
3285
+ }), Fn(e, u), re();
3286
+ })(e, {
3287
+ get current() {
3288
+ return n();
3289
+ },
3290
+ get total() {
3291
+ return r();
3292
+ },
3293
+ get customClasses() {
3294
+ return t.customClasses;
3295
+ },
3296
+ get customStyles() {
3297
+ return t.customStyles;
3298
+ }
3299
+ });
3300
+ }, h = (e) => {
3301
+ (function(e, t) {
3302
+ ne(t, !0);
3303
+ let n = qr(t, "current", 3, 1), r = qr(t, "total", 3, 1), o = qr(t, "aria", 19, () => ({ ariaLabel: "Progress" }));
3304
+ const i = Oe(() => r() > 0 ? n() / r() : 0), s = Oe(() => [
3305
+ "rb-progress",
3306
+ "rb-progress--line",
3307
+ t.customClasses?.root
3308
+ ]), a = Oe(() => no(t.customStyles?.root)), l = Oe(() => ["rb-progress__track", t.customClasses?.track]), u = Oe(() => no(t.customStyles?.track)), c = Oe(() => ["rb-progress__progress", t.customClasses?.progress]), f = Oe(() => no(t.customStyles?.progress));
3309
+ var d = ci();
3310
+ Mr(d, "aria-valuemin", 1);
3311
+ var p = bt(d), h = bt(p);
3312
+ let v;
3313
+ G(p), G(d), It(() => {
3314
+ Mr(d, "id", t.id), yr(d, 1, gr(wn(s))), wr(d, wn(a)), Mr(d, "aria-label", o()?.ariaLabel), Mr(d, "aria-labelledby", o()?.ariaLabelledby), Mr(d, "aria-describedby", o()?.ariaDescribedby), Mr(d, "aria-controls", o()?.ariaControls), Mr(d, "aria-valuenow", n()), Mr(d, "aria-valuemax", r()), Mr(d, "aria-valuetext", `${n() ?? ""} / ${r() ?? ""}`), yr(p, 1, gr(wn(l))), wr(p, wn(u)), yr(h, 1, gr(wn(c))), v = wr(h, wn(f), v, { width: 100 * wn(i) + "%" });
3315
+ }), Fn(e, d), re();
3316
+ })(e, {
3317
+ get current() {
3318
+ return n();
3319
+ },
3320
+ get total() {
3321
+ return r();
3322
+ },
3323
+ get customClasses() {
3324
+ return t.customClasses;
3325
+ },
3326
+ get customStyles() {
3327
+ return t.customStyles;
3328
+ }
3329
+ });
3330
+ };
3331
+ return sr(c, (e) => {
3332
+ t.customHtml?.progress ? e(f) : o() === di.DOTS ? e(d, 1) : o() === di.TEXT ? e(p, 2) : o() === di.LINE && e(h, 3);
3333
+ }), G(u), Fr(u, (e) => rt(i, e), () => wn(i)), It(() => {
3334
+ Mr(u, "id", t.id), yr(u, 1, gr(wn(s))), wr(u, wn(a)), Mr(u, "aria-label", t.aria?.ariaLabel), Mr(u, "aria-labelledby", t.aria?.ariaLabelledby), Mr(u, "aria-describedby", t.aria?.ariaDescribedby), Mr(u, "aria-disabled", t.aria?.ariaDisabled), Mr(u, "aria-expanded", t.aria?.ariaExpanded), Mr(u, "aria-controls", t.aria?.ariaControls), Mr(u, "aria-haspopup", t.aria?.ariaHaspopup), Mr(u, "aria-pressed", t.aria?.ariaPressed);
3335
+ }), Fn(e, u), re(l);
3336
+ }
3337
+ var vi = In("<input type=\"checkbox\"/>"), gi = In("<span></span>"), mi = In("<span> </span>"), _i = In("<label><!> <!></label>");
3338
+ function bi(e, t) {
3339
+ ne(t, !0);
3340
+ let n = qr(t, "checked", 3, !1), r = qr(t, "label", 3, "Don't show again"), o = qr(t, "disabled", 3, !1), i = tt(null), s = tt(null);
3341
+ const a = Oe(() => ["rb-tour-skip", t.customClasses?.root]), l = Oe(() => no(t.customStyles?.root)), u = Oe(() => ["rb-tour-skip__input", t.customClasses?.input]), c = Oe(() => no(t.customStyles?.input)), f = Oe(() => ["rb-tour-skip__label", t.customClasses?.label]), d = Oe(() => no(t.customStyles?.label));
3342
+ function p(e) {
3343
+ const n = e.target;
3344
+ t.onSkipChange?.(n.checked);
3345
+ }
3346
+ var h = { getElements: function() {
3347
+ return {
3348
+ root: wn(i),
3349
+ input: wn(s)
3350
+ };
3351
+ } }, v = _i(), g = bt(v), m = (e) => {
3352
+ var n = jn();
3353
+ pr(yt(n), () => t.customHtml.input), Fn(e, n);
3354
+ }, _ = (e) => {
3355
+ var t = vi();
3356
+ Lr(t), Fr(t, (e) => rt(s, e), () => wn(s)), It(() => {
3357
+ yr(t, 1, gr(wn(u))), wr(t, wn(c)), function(e, t) {
3358
+ var n = Br(e);
3359
+ n.checked !== (n.checked = t ?? void 0) && (e.checked = t);
3360
+ }(t, n()), t.disabled = o();
3361
+ }), An("change", t, p), Fn(e, t);
3362
+ };
3363
+ sr(g, (e) => {
3364
+ t.customHtml?.input ? e(m) : e(_, -1);
3365
+ });
3366
+ var b = Tt(g, 2), y = (e) => {
3367
+ var n = gi();
3368
+ pr(n, () => t.customHtml.label, !0), G(n), It(() => {
3369
+ yr(n, 1, gr(wn(f))), wr(n, wn(d));
3370
+ }), Fn(e, n);
3371
+ }, T = (e) => {
3372
+ var t = mi(), n = bt(t, !0);
3373
+ G(t), It(() => {
3374
+ yr(t, 1, gr(wn(f))), wr(t, wn(d)), Wn(n, r());
3375
+ }), Fn(e, t);
3376
+ };
3377
+ return sr(b, (e) => {
3378
+ t.customHtml?.label ? e(y) : e(T, -1);
3379
+ }), G(v), Fr(v, (e) => rt(i, e), () => wn(i)), It(() => {
3380
+ Mr(v, "id", t.id), yr(v, 1, gr(wn(a))), wr(v, wn(l)), Mr(v, "aria-label", t.aria?.ariaLabel), Mr(v, "aria-labelledby", t.aria?.ariaLabelledby), Mr(v, "aria-describedby", t.aria?.ariaDescribedby), Mr(v, "aria-disabled", t.aria?.ariaDisabled), Mr(v, "aria-expanded", t.aria?.ariaExpanded), Mr(v, "aria-controls", t.aria?.ariaControls), Mr(v, "aria-haspopup", t.aria?.ariaHaspopup), Mr(v, "aria-pressed", t.aria?.ariaPressed);
3381
+ }), Fn(e, v), re(h);
3382
+ }
3383
+ Pn(["change"]);
3384
+ var yi = function(e) {
3385
+ return e.TOP = "top", e.BOTTOM = "bottom", e.LEFT = "left", e.RIGHT = "right", e;
3386
+ }({});
3387
+ function Ti({ getArrow: e, getPlacement: t }) {
3388
+ const n = Oe(e), r = Oe(t), o = Oe(() => !1 === wn(n) ? null : function(e) {
3389
+ switch (e) {
3390
+ case io.BOTTOM_START:
3391
+ case io.BOTTOM_CENTER:
3392
+ case io.BOTTOM_END: return yi.TOP;
3393
+ case io.TOP_START:
3394
+ case io.TOP_CENTER:
3395
+ case io.TOP_END: return yi.BOTTOM;
3396
+ case io.MIDDLE_END: return yi.LEFT;
3397
+ case io.MIDDLE_START: return yi.RIGHT;
3398
+ default: return null;
3399
+ }
3400
+ }(wn(n) ? wn(n).placement : wn(r))), i = Oe(() => wn(o) ? function(e) {
3401
+ return ["rb-tour-tooltip__arrow", `rb-tour-tooltip__arrow--${e}`];
3402
+ }(wn(o)) : null);
3403
+ return {
3404
+ get side() {
3405
+ return wn(o);
3406
+ },
3407
+ get classes() {
3408
+ return wn(i);
3409
+ }
3410
+ };
3411
+ }
3412
+ function wi({ target: e, tooltip: t, placement: n, offset: r, margin: o, padding: i, autoPlacement: s, arrowSide: a, viewport: l }) {
3413
+ function u(e, t, n, r) {
3414
+ switch (n) {
3415
+ case io.TOP_START: return {
3416
+ top: e.top - t.height - r,
3417
+ left: e.left
3418
+ };
3419
+ case io.TOP_CENTER: return {
3420
+ top: e.top - t.height - r,
3421
+ left: e.left + (e.width - t.width) / 2
3422
+ };
3423
+ case io.TOP_END: return {
3424
+ top: e.top - t.height - r,
3425
+ left: e.right - t.width
3426
+ };
3427
+ case io.BOTTOM_START: return {
3428
+ top: e.bottom + r,
3429
+ left: e.left
3430
+ };
3431
+ case io.BOTTOM_CENTER: return {
3432
+ top: e.bottom + r,
3433
+ left: e.left + (e.width - t.width) / 2
3434
+ };
3435
+ case io.BOTTOM_END: return {
3436
+ top: e.bottom + r,
3437
+ left: e.right - t.width
3438
+ };
3439
+ case io.MIDDLE_START: return {
3440
+ top: e.top + (e.height - t.height) / 2,
3441
+ left: e.left - t.width - r
3442
+ };
3443
+ case io.MIDDLE_END: return {
3444
+ top: e.top + (e.height - t.height) / 2,
3445
+ left: e.right + r
3446
+ };
3447
+ case io.MIDDLE_CENTER: return {
3448
+ top: e.top + (e.height - t.height) / 2,
3449
+ left: e.left + (e.width - t.width) / 2
3450
+ };
3451
+ default: return {
3452
+ top: e.bottom + r,
3453
+ left: e.left
3454
+ };
3455
+ }
3456
+ }
3457
+ function c(e, t, n) {
3458
+ return {
3459
+ minTop: t,
3460
+ maxTop: n.height - e.height - t,
3461
+ minLeft: t,
3462
+ maxLeft: n.width - e.width - t
3463
+ };
3464
+ }
3465
+ function f(e, t, n, r) {
3466
+ const o = c(t, n, r);
3467
+ return {
3468
+ top: o.minTop - e.top,
3469
+ bottom: e.top - o.maxTop,
3470
+ left: o.minLeft - e.left,
3471
+ right: e.left - o.maxLeft
3472
+ };
3473
+ }
3474
+ function d(e) {
3475
+ return Math.max(0, e.top) + Math.max(0, e.right) + Math.max(0, e.bottom) + Math.max(0, e.left);
3476
+ }
3477
+ function p(e, t, n, r) {
3478
+ const o = f(e, t, n, r);
3479
+ return o.top <= 0 && o.right <= 0 && o.bottom <= 0 && o.left <= 0;
3480
+ }
3481
+ function h(e, t, n, r, o) {
3482
+ const i = Math.max(r, t), s = Math.min(o, n);
3483
+ return i <= s ? Math.max(i, Math.min(e, s)) : Math.max(t, Math.min(e, n));
3484
+ }
3485
+ function v(e, t, n, r, o) {
3486
+ return Math.max(r, Math.min(Math.max(t, Math.min(e, n)), o));
3487
+ }
3488
+ const g = r + o, m = [n, ...function(e, t) {
3489
+ switch (e) {
3490
+ case !1: return [];
3491
+ case !0: return function(e) {
3492
+ switch (e) {
3493
+ case io.TOP_START: return [
3494
+ io.BOTTOM_START,
3495
+ io.TOP_END,
3496
+ io.BOTTOM_END,
3497
+ io.MIDDLE_END,
3498
+ io.MIDDLE_START,
3499
+ io.TOP_CENTER,
3500
+ io.BOTTOM_CENTER
3501
+ ];
3502
+ case io.TOP_CENTER: return [
3503
+ io.BOTTOM_CENTER,
3504
+ io.TOP_START,
3505
+ io.BOTTOM_START,
3506
+ io.TOP_END,
3507
+ io.BOTTOM_END,
3508
+ io.MIDDLE_END,
3509
+ io.MIDDLE_START
3510
+ ];
3511
+ case io.TOP_END: return [
3512
+ io.BOTTOM_END,
3513
+ io.TOP_START,
3514
+ io.BOTTOM_START,
3515
+ io.MIDDLE_START,
3516
+ io.MIDDLE_END,
3517
+ io.TOP_CENTER,
3518
+ io.BOTTOM_CENTER
3519
+ ];
3520
+ case io.BOTTOM_START: return [
3521
+ io.TOP_START,
3522
+ io.BOTTOM_END,
3523
+ io.TOP_END,
3524
+ io.MIDDLE_END,
3525
+ io.MIDDLE_START,
3526
+ io.BOTTOM_CENTER,
3527
+ io.TOP_CENTER
3528
+ ];
3529
+ case io.BOTTOM_CENTER: return [
3530
+ io.TOP_CENTER,
3531
+ io.BOTTOM_START,
3532
+ io.TOP_START,
3533
+ io.BOTTOM_END,
3534
+ io.TOP_END,
3535
+ io.MIDDLE_END,
3536
+ io.MIDDLE_START
3537
+ ];
3538
+ case io.BOTTOM_END: return [
3539
+ io.TOP_END,
3540
+ io.BOTTOM_START,
3541
+ io.TOP_START,
3542
+ io.MIDDLE_START,
3543
+ io.MIDDLE_END,
3544
+ io.BOTTOM_CENTER,
3545
+ io.TOP_CENTER
3546
+ ];
3547
+ case io.MIDDLE_START: return [
3548
+ io.MIDDLE_END,
3549
+ io.BOTTOM_START,
3550
+ io.TOP_START,
3551
+ io.BOTTOM_CENTER,
3552
+ io.TOP_CENTER,
3553
+ io.BOTTOM_END,
3554
+ io.TOP_END
3555
+ ];
3556
+ case io.MIDDLE_END: return [
3557
+ io.MIDDLE_START,
3558
+ io.BOTTOM_END,
3559
+ io.TOP_END,
3560
+ io.BOTTOM_CENTER,
3561
+ io.TOP_CENTER,
3562
+ io.BOTTOM_START,
3563
+ io.TOP_START
3564
+ ];
3565
+ default: return [];
3566
+ }
3567
+ }(t);
3568
+ default: return e.fallback;
3569
+ }
3570
+ }(s, n)], _ = function(e, t) {
3571
+ return {
3572
+ top: e.top - t,
3573
+ right: e.right + t,
3574
+ bottom: e.bottom + t,
3575
+ left: e.left - t,
3576
+ width: e.width + 2 * t,
3577
+ height: e.height + 2 * t
3578
+ };
3579
+ }(function(e) {
3580
+ const t = e.getBoundingClientRect();
3581
+ return {
3582
+ top: t.top,
3583
+ right: t.right,
3584
+ bottom: t.bottom,
3585
+ left: t.left,
3586
+ width: t.width,
3587
+ height: t.height
3588
+ };
3589
+ }(e), i), b = function(e) {
3590
+ return {
3591
+ width: e.offsetWidth,
3592
+ height: e.offsetHeight
3593
+ };
3594
+ }(t), y = function(e, t, n, r, o, i) {
3595
+ for (const s of e) {
3596
+ const e = u(t, n, s, r);
3597
+ if (p(e, n, o, i)) return {
3598
+ placement: s,
3599
+ position: e
3600
+ };
3601
+ }
3602
+ return null;
3603
+ }(m, _, b, r, g, l) ?? function(e, t, n, r, o, i) {
3604
+ let s = {
3605
+ placement: e[0],
3606
+ position: u(t, n, e[0], r)
3607
+ }, a = d(f(s.position, n, o, i));
3608
+ for (let l = 1; l < e.length; l++) {
3609
+ const c = e[l], p = u(t, n, c, r), h = d(f(p, n, o, i));
3610
+ h < a && (a = h, s = {
3611
+ placement: c,
3612
+ position: p
3613
+ });
3614
+ }
3615
+ return s;
3616
+ }(m, _, b, r, g, l), T = function(e, t, n, o, i, s) {
3617
+ const a = o === io.MIDDLE_START || o === io.MIDDLE_END || o === io.MIDDLE_CENTER, l = c(t, i, s);
3618
+ return a ? {
3619
+ top: h(e.top, n.top - t.height + 1, n.bottom - 1, l.minTop, l.maxTop),
3620
+ left: v(e.left, l.minLeft, l.maxLeft, n.left - t.width - r, n.right + r)
3621
+ } : {
3622
+ top: v(e.top, l.minTop, l.maxTop, n.top - t.height - r, n.bottom + r),
3623
+ left: h(e.left, n.left - t.width + 1, n.right - 1, l.minLeft, l.maxLeft)
3624
+ };
3625
+ }(y.position, b, _, y.placement, g, l);
3626
+ return {
3627
+ position: T,
3628
+ placement: y.placement,
3629
+ arrowOffset: function(e, t, n) {
3630
+ if (null === n) return 0;
3631
+ const r = e.getBoundingClientRect();
3632
+ return n === yi.TOP || n === yi.BOTTOM ? r.left + r.width / 2 - t.left : r.top + r.height / 2 - t.top;
3633
+ }(e, T, a)
3634
+ };
3635
+ }
3636
+ function Ei({ getTargetElement: e, getTooltipElement: t, getPlacement: n, getPadding: r, getOffset: o, getMargin: i, getAutoPlacement: s, getArrowSide: a }) {
3637
+ let l = tt(0), u = tt(0), c = tt(lt(io.BOTTOM_START)), f = tt(0);
3638
+ const d = yo(), p = bo(), h = Oe(e), v = Oe(t), g = Oe(() => {
3639
+ return e = n(), fo.has(e) ? e : io.BOTTOM_START;
3640
+ var e;
3641
+ }), m = Oe(o), _ = Oe(i), b = Oe(r), y = Oe(s), T = Oe(a);
3642
+ return Dt(() => {
3643
+ if (!wn(h) || !wn(v)) return;
3644
+ p.x, p.y;
3645
+ const e = wi({
3646
+ target: wn(h),
3647
+ tooltip: wn(v),
3648
+ placement: wn(g),
3649
+ offset: wn(m),
3650
+ margin: wn(_),
3651
+ padding: wn(b),
3652
+ autoPlacement: wn(y),
3653
+ arrowSide: wn(T),
3654
+ viewport: {
3655
+ width: d.width,
3656
+ height: d.height
3657
+ }
3658
+ });
3659
+ rt(l, e.position.top, !0), rt(u, e.position.left, !0), rt(c, e.placement, !0), rt(f, e.arrowOffset, !0);
3660
+ }), {
3661
+ get top() {
3662
+ return wn(l);
3663
+ },
3664
+ get left() {
3665
+ return wn(u);
3666
+ },
3667
+ get effectivePlacement() {
3668
+ return wn(c);
3669
+ },
3670
+ get arrowOffset() {
3671
+ return wn(f);
3672
+ }
3673
+ };
3674
+ }
3675
+ var Si = In("<div></div>"), Oi = In("<p> </p>"), xi = In("<div><!> <!></div>"), Ci = In("<div><!> <!> <!> <!> <!> <!> <!></div>");
3676
+ function Ni(e, t) {
3677
+ ne(t, !0);
3678
+ let n = qr(t, "step", 19, () => ({
3679
+ target: "",
3680
+ title: "",
3681
+ description: "",
3682
+ placement: io.BOTTOM_START
3683
+ })), r = qr(t, "currentTarget", 3, null), o = qr(t, "currentStep", 3, 1), i = qr(t, "totalSteps", 3, 1), s = qr(t, "size", 19, () => oo.MD), a = qr(t, "shape", 19, () => so.CIRCLE), l = qr(t, "isSkipChecked", 3, !1), u = qr(t, "isHidden", 3, !1), c = qr(t, "hasGlide", 3, !1), f = qr(t, "tourTooltipAnimation", 3, !1), d = tt(null), p = tt(null), h = tt(null), v = tt(null), g = tt(null);
3684
+ const m = Oe(() => ({
3685
+ title: n().title,
3686
+ description: n().description,
3687
+ placement: n().placement,
3688
+ targetElement: r()
3689
+ })), _ = Oe(() => n().image ? "string" == typeof n().image ? {
3690
+ src: n().image,
3691
+ alt: ""
3692
+ } : {
3693
+ src: n().image.src,
3694
+ alt: n().image.alt ?? ""
3695
+ } : null), b = Oe(() => t.tourProgressProps ? t.tourProgressProps.variant : void 0);
3696
+ var y = { getComponents: function() {
3697
+ return {
3698
+ tourTooltip: wn(d),
3699
+ tourImage: wn(p),
3700
+ tourButtons: wn(h),
3701
+ closeButton: wn(g),
3702
+ tourSkip: wn(v)
3703
+ };
3704
+ } };
3705
+ {
3706
+ const n = (e) => {
3707
+ var n = jn(), r = yt(n), o = (e) => {
3708
+ Fr(ai(e, Vr(() => t.tourImageProps, {
3709
+ get src() {
3710
+ return wn(_).src;
3711
+ },
3712
+ get alt() {
3713
+ return wn(_).alt;
3714
+ }
3715
+ })), (e) => rt(p, e, !0), () => wn(p));
3716
+ };
3717
+ sr(r, (e) => {
3718
+ !1 !== t.tourImageProps && wn(_) && e(o);
3719
+ }), Fn(e, n);
3720
+ }, r = (e) => {
3721
+ var n = jn(), r = yt(n), o = (e) => {
3722
+ Fr(Qo(e, Vr({
3723
+ get size() {
3724
+ return s();
3725
+ },
3726
+ get shape() {
3727
+ return a();
3728
+ }
3729
+ }, () => t.closeButtonProps)), (e) => rt(g, e, !0), () => wn(g));
3730
+ };
3731
+ sr(r, (e) => {
3732
+ !1 !== t.closeButtonProps && e(o);
3733
+ }), Fn(e, n);
3734
+ }, y = (e) => {
3735
+ var n = jn(), r = yt(n), o = (e) => {
3736
+ Fr(bi(e, Vr(() => t.tourSkipProps, {
3737
+ get checked() {
3738
+ return l();
3739
+ },
3740
+ get onSkipChange() {
3741
+ return t.onSkipChange;
3742
+ }
3743
+ })), (e) => rt(v, e, !0), () => wn(v));
3744
+ };
3745
+ sr(r, (e) => {
3746
+ !1 !== t.tourSkipProps && e(o);
3747
+ }), Fn(e, n);
3748
+ }, T = (e) => {
3749
+ var n = jn(), r = yt(n), s = (e) => {
3750
+ {
3751
+ let n = Oe(() => t.tourProgressProps?.customClasses), r = Oe(() => t.tourProgressProps?.customStyles);
3752
+ hi(e, {
3753
+ get variant() {
3754
+ return di.LINE;
3755
+ },
3756
+ get currentStep() {
3757
+ return o();
3758
+ },
3759
+ get totalSteps() {
3760
+ return i();
3761
+ },
3762
+ get customClasses() {
3763
+ return wn(n);
3764
+ },
3765
+ get customStyles() {
3766
+ return wn(r);
3767
+ }
3768
+ });
3769
+ }
3770
+ };
3771
+ sr(r, (e) => {
3772
+ !1 !== t.tourProgressProps && wn(b) === di.LINE && e(s);
3773
+ }), Fn(e, n);
3774
+ }, w = (e) => {
3775
+ var n = jn(), r = yt(n), a = (e) => {
3776
+ {
3777
+ const n = (e) => {
3778
+ var n = jn(), r = yt(n), s = (e) => {
3779
+ {
3780
+ let n = Oe(() => t.tourProgressProps?.customClasses), r = Oe(() => t.tourProgressProps?.customStyles);
3781
+ hi(e, {
3782
+ get variant() {
3783
+ return wn(b);
3784
+ },
3785
+ get currentStep() {
3786
+ return o();
3787
+ },
3788
+ get totalSteps() {
3789
+ return i();
3790
+ },
3791
+ get customClasses() {
3792
+ return wn(n);
3793
+ },
3794
+ get customStyles() {
3795
+ return wn(r);
3796
+ }
3797
+ });
3798
+ }
3799
+ };
3800
+ sr(r, (e) => {
3801
+ !1 === t.tourProgressProps || wn(b) !== di.DOTS && wn(b) !== di.TEXT || e(s);
3802
+ }), Fn(e, n);
3803
+ };
3804
+ Fr(function(e, t) {
3805
+ ne(t, !0);
3806
+ let n = qr(t, "currentStep", 3, 1), r = qr(t, "totalSteps", 3, 1), o = qr(t, "size", 19, () => oo.MD), i = qr(t, "prev", 19, () => ({})), s = qr(t, "next", 19, () => ({})), a = qr(t, "finish", 19, () => ({})), l = qr(t, "skip", 3, !1), u = tt(null);
3807
+ const c = Oe(() => 1 === n()), f = Oe(() => n() === r()), d = Oe(() => ["rb-tour-buttons", t.customClasses?.root]), p = Oe(() => no(t.customStyles?.root));
3808
+ function h(...e) {
3809
+ return e.map(no).filter(Boolean).join(" ") || void 0;
3810
+ }
3811
+ function v(e, n, r) {
3812
+ if (!1 === e) return null;
3813
+ const o = mo(n, e);
3814
+ return {
3815
+ ...o,
3816
+ classes: [
3817
+ `rb-tour-buttons__${r}`,
3818
+ o.customClasses?.root,
3819
+ t.customClasses?.[r]
3820
+ ],
3821
+ styles: h(o.customStyles?.root, t.customStyles?.[r])
3822
+ };
3823
+ }
3824
+ const g = Oe(() => v(i(), ei, "prev")), m = Oe(() => v(s(), ti, "next")), _ = Oe(() => v(l(), ri, "skip")), b = Oe(() => v(a(), ni, "finish"));
3825
+ var y = { getElements: function() {
3826
+ return { root: wn(u) };
3827
+ } }, T = oi(), w = bt(T), E = (e) => {
3828
+ var n = jn(), r = yt(n), i = (e) => {
3829
+ var n = jn();
3830
+ pr(yt(n), () => t.customHtml.prev), Fn(e, n);
3831
+ }, s = (e) => {
3832
+ {
3833
+ let n = Oe(() => wn(g).size ?? o()), r = Oe(() => ({ root: wn(g).classes })), i = Oe(() => ({ root: wn(g).styles }));
3834
+ Yo(e, {
3835
+ get type() {
3836
+ return wn(g).type;
3837
+ },
3838
+ get variant() {
3839
+ return wn(g).variant;
3840
+ },
3841
+ get size() {
3842
+ return wn(n);
3843
+ },
3844
+ get shape() {
3845
+ return wn(g).shape;
3846
+ },
3847
+ get aria() {
3848
+ return wn(g).aria;
3849
+ },
3850
+ get autosize() {
3851
+ return wn(g).autosize;
3852
+ },
3853
+ get disabled() {
3854
+ return wn(c);
3855
+ },
3856
+ get customClasses() {
3857
+ return wn(r);
3858
+ },
3859
+ get customStyles() {
3860
+ return wn(i);
3861
+ },
3862
+ get onclick() {
3863
+ return t.onPrev;
3864
+ },
3865
+ children: (e, t) => {
3866
+ X();
3867
+ var n = Hn();
3868
+ It(() => Wn(n, wn(g).label)), Fn(e, n);
3869
+ },
3870
+ $$slots: { default: !0 }
3871
+ });
3872
+ }
3873
+ };
3874
+ sr(r, (e) => {
3875
+ t.customHtml?.prev ? e(i) : e(s, -1);
3876
+ }), Fn(e, n);
3877
+ };
3878
+ sr(w, (e) => {
3879
+ null !== wn(g) && e(E);
3880
+ });
3881
+ var S = Tt(w, 2), O = bt(S), x = (e) => {
3882
+ var n = jn();
3883
+ or(yt(n), () => t.center), Fn(e, n);
3884
+ };
3885
+ sr(O, (e) => {
3886
+ t.center && e(x);
3887
+ }), G(S);
3888
+ var C = Tt(S, 2), N = (e) => {
3889
+ var n = jn(), r = yt(n), i = (e) => {
3890
+ var n = jn();
3891
+ pr(yt(n), () => t.customHtml.skip), Fn(e, n);
3892
+ }, s = (e) => {
3893
+ {
3894
+ let n = Oe(() => wn(_).size ?? o()), r = Oe(() => ({ root: wn(_).classes })), i = Oe(() => ({ root: wn(_).styles }));
3895
+ Yo(e, {
3896
+ get type() {
3897
+ return wn(_).type;
3898
+ },
3899
+ get variant() {
3900
+ return wn(_).variant;
3901
+ },
3902
+ get size() {
3903
+ return wn(n);
3904
+ },
3905
+ get shape() {
3906
+ return wn(_).shape;
3907
+ },
3908
+ get aria() {
3909
+ return wn(_).aria;
3910
+ },
3911
+ get autosize() {
3912
+ return wn(_).autosize;
3913
+ },
3914
+ get customClasses() {
3915
+ return wn(r);
3916
+ },
3917
+ get customStyles() {
3918
+ return wn(i);
3919
+ },
3920
+ get onclick() {
3921
+ return t.onSkip;
3922
+ },
3923
+ children: (e, t) => {
3924
+ X();
3925
+ var n = Hn();
3926
+ It(() => Wn(n, wn(_).label)), Fn(e, n);
3927
+ },
3928
+ $$slots: { default: !0 }
3929
+ });
3930
+ }
3931
+ };
3932
+ sr(r, (e) => {
3933
+ t.customHtml?.skip ? e(i) : e(s, -1);
3934
+ }), Fn(e, n);
3935
+ };
3936
+ sr(C, (e) => {
3937
+ null !== wn(_) && e(N);
3938
+ });
3939
+ var k = Tt(C, 2), A = (e) => {
3940
+ var n = jn(), r = yt(n), i = (e) => {
3941
+ var n = jn(), r = yt(n), i = (e) => {
3942
+ var n = jn();
3943
+ pr(yt(n), () => t.customHtml.finish), Fn(e, n);
3944
+ }, s = (e) => {
3945
+ {
3946
+ let n = Oe(() => wn(b).size ?? o()), r = Oe(() => ({ root: wn(b).classes })), i = Oe(() => ({ root: wn(b).styles }));
3947
+ Yo(e, {
3948
+ get type() {
3949
+ return wn(b).type;
3950
+ },
3951
+ get variant() {
3952
+ return wn(b).variant;
3953
+ },
3954
+ get size() {
3955
+ return wn(n);
3956
+ },
3957
+ get shape() {
3958
+ return wn(b).shape;
3959
+ },
3960
+ get aria() {
3961
+ return wn(b).aria;
3962
+ },
3963
+ get autosize() {
3964
+ return wn(b).autosize;
3965
+ },
3966
+ get customClasses() {
3967
+ return wn(r);
3968
+ },
3969
+ get customStyles() {
3970
+ return wn(i);
3971
+ },
3972
+ get onclick() {
3973
+ return t.onFinish;
3974
+ },
3975
+ children: (e, t) => {
3976
+ X();
3977
+ var n = Hn();
3978
+ It(() => Wn(n, wn(b).label)), Fn(e, n);
3979
+ },
3980
+ $$slots: { default: !0 }
3981
+ });
3982
+ }
3983
+ };
3984
+ sr(r, (e) => {
3985
+ t.customHtml?.finish ? e(i) : e(s, -1);
3986
+ }), Fn(e, n);
3987
+ };
3988
+ sr(r, (e) => {
3989
+ null !== wn(b) && e(i);
3990
+ }), Fn(e, n);
3991
+ }, P = (e) => {
3992
+ var n = jn(), r = yt(n), i = (e) => {
3993
+ var n = jn();
3994
+ pr(yt(n), () => t.customHtml.next), Fn(e, n);
3995
+ }, s = (e) => {
3996
+ {
3997
+ let n = Oe(() => wn(m).size ?? o()), r = Oe(() => ({ root: wn(m).classes })), i = Oe(() => ({ root: wn(m).styles }));
3998
+ Yo(e, {
3999
+ get type() {
4000
+ return wn(m).type;
4001
+ },
4002
+ get variant() {
4003
+ return wn(m).variant;
4004
+ },
4005
+ get size() {
4006
+ return wn(n);
4007
+ },
4008
+ get shape() {
4009
+ return wn(m).shape;
4010
+ },
4011
+ get aria() {
4012
+ return wn(m).aria;
4013
+ },
4014
+ get autosize() {
4015
+ return wn(m).autosize;
4016
+ },
4017
+ get customClasses() {
4018
+ return wn(r);
4019
+ },
4020
+ get customStyles() {
4021
+ return wn(i);
4022
+ },
4023
+ get onclick() {
4024
+ return t.onNext;
4025
+ },
4026
+ children: (e, t) => {
4027
+ X();
4028
+ var n = Hn();
4029
+ It(() => Wn(n, wn(m).label)), Fn(e, n);
4030
+ },
4031
+ $$slots: { default: !0 }
4032
+ });
4033
+ }
4034
+ };
4035
+ sr(r, (e) => {
4036
+ t.customHtml?.next ? e(i) : e(s, -1);
4037
+ }), Fn(e, n);
4038
+ };
4039
+ return sr(k, (e) => {
4040
+ wn(f) ? e(A) : null !== wn(m) && e(P, 1);
4041
+ }), G(T), Fr(T, (e) => rt(u, e), () => wn(u)), It(() => {
4042
+ Mr(T, "id", t.id), yr(T, 1, gr(wn(d))), wr(T, wn(p)), Mr(T, "aria-label", t.aria?.ariaLabel), Mr(T, "aria-labelledby", t.aria?.ariaLabelledby), Mr(T, "aria-describedby", t.aria?.ariaDescribedby), Mr(T, "aria-disabled", t.aria?.ariaDisabled), Mr(T, "aria-expanded", t.aria?.ariaExpanded), Mr(T, "aria-controls", t.aria?.ariaControls), Mr(T, "aria-haspopup", t.aria?.ariaHaspopup), Mr(T, "aria-pressed", t.aria?.ariaPressed);
4043
+ }), Fn(e, T), re(y);
4044
+ }(e, Vr({ get size() {
4045
+ return s();
4046
+ } }, () => t.tourButtonsProps, {
4047
+ get currentStep() {
4048
+ return o();
4049
+ },
4050
+ get totalSteps() {
4051
+ return i();
4052
+ },
4053
+ get onNext() {
4054
+ return t.onNext;
4055
+ },
4056
+ get onPrev() {
4057
+ return t.onPrev;
4058
+ },
4059
+ get onFinish() {
4060
+ return t.onFinish;
4061
+ },
4062
+ get onSkip() {
4063
+ return t.onSkip;
4064
+ },
4065
+ center: n,
4066
+ $$slots: { center: !0 }
4067
+ })), (e) => rt(h, e, !0), () => wn(h));
4068
+ }
4069
+ };
4070
+ sr(r, (e) => {
4071
+ !1 !== t.tourButtonsProps && e(a);
4072
+ }), Fn(e, n);
4073
+ };
4074
+ Fr(function(e, t) {
4075
+ ne(t, !0);
4076
+ let n = qr(t, "title", 3, ""), r = qr(t, "description", 3, ""), o = qr(t, "size", 19, () => oo.MD), i = qr(t, "placement", 19, () => io.BOTTOM_START), s = qr(t, "targetElement", 3, null), a = qr(t, "offset", 3, 12), l = qr(t, "margin", 3, 8), u = qr(t, "padding", 3, 12), c = qr(t, "autoPlacement", 3, !0), f = qr(t, "isHidden", 3, !1), d = qr(t, "hasGlide", 3, !1), p = qr(t, "animation", 3, !1), h = tt(null), v = tt(!1);
4077
+ const g = Ti({
4078
+ getArrow: () => t.arrow,
4079
+ getPlacement: () => m.effectivePlacement
4080
+ }), m = Ei({
4081
+ getTargetElement: () => s(),
4082
+ getTooltipElement: () => wn(h),
4083
+ getPlacement: () => i(),
4084
+ getOffset: () => a(),
4085
+ getMargin: () => l(),
4086
+ getPadding: () => u(),
4087
+ getAutoPlacement: () => c(),
4088
+ getArrowSide: () => g.side
4089
+ });
4090
+ Dt(() => {
4091
+ const e = requestAnimationFrame(() => {
4092
+ rt(v, !0);
4093
+ });
4094
+ return () => cancelAnimationFrame(e);
4095
+ });
4096
+ const _ = Oe(() => !1 !== p()), b = Jr({
4097
+ getIsAnimated: () => wn(_),
4098
+ getIsHidden: () => f(),
4099
+ classNames: {
4100
+ hidden: "rb-tour-tooltip--hidden",
4101
+ in: "rb-tour-tooltip--anim-in",
4102
+ out: "rb-tour-tooltip--anim-out"
4103
+ }
4104
+ }), y = Oe(() => p() ? {
4105
+ effect: b.hasHiddenAnimation ? p().exit : p().enter,
4106
+ duration: b.hasHiddenAnimation ? p().exitDuration : p().enterDuration,
4107
+ className: `rb-tour-tooltip--anim-${b.hasHiddenAnimation ? p().exit : p().enter}`,
4108
+ easing: p().easing
4109
+ } : {
4110
+ effect: uo.NONE,
4111
+ duration: 0,
4112
+ className: null,
4113
+ easing: "ease-out"
4114
+ }), T = Oe(() => [
4115
+ "rb-tour-tooltip",
4116
+ `rb-tour-tooltip--${o()}`,
4117
+ wn(v) && d() && "rb-tour-tooltip--glide",
4118
+ b.classes,
4119
+ wn(y).className,
4120
+ t.customClasses?.root
4121
+ ]), w = Oe(() => no(t.customStyles?.root)), E = Oe(() => ["rb-tour-tooltip__header", t.customClasses?.header]), S = Oe(() => no(t.customStyles?.header)), O = Oe(() => ["rb-tour-tooltip__title", t.customClasses?.title]), x = Oe(() => no(t.customStyles?.title)), C = Oe(() => ["rb-tour-tooltip__description", t.customClasses?.description]), N = Oe(() => no(t.customStyles?.description));
4122
+ var k = { getElements: function() {
4123
+ return { root: wn(h) };
4124
+ } }, A = Ci();
4125
+ let P;
4126
+ var D = bt(A), L = (e) => {
4127
+ var t = Si();
4128
+ let n;
4129
+ It(() => {
4130
+ yr(t, 1, gr(g.classes)), n = wr(t, "", n, { "--rb-tour-tooltip-arrow-offset": `${m.arrowOffset ?? ""}px` });
4131
+ }), Fn(e, t);
4132
+ };
4133
+ sr(D, (e) => {
4134
+ g.classes && e(L);
4135
+ });
4136
+ var R = Tt(D, 2), M = (e) => {
4137
+ var n = jn();
4138
+ or(yt(n), () => t.image), Fn(e, n);
4139
+ };
4140
+ sr(R, (e) => {
4141
+ t.image && e(M);
4142
+ });
4143
+ var I = Tt(R, 2), B = (e) => {
4144
+ var r = xi(), o = bt(r), i = (e) => {
4145
+ var n = jn();
4146
+ pr(yt(n), () => t.customHtml.title), Fn(e, n);
4147
+ }, s = (e) => {
4148
+ var t = Oi(), r = bt(t, !0);
4149
+ G(t), It(() => {
4150
+ yr(t, 1, gr(wn(O))), wr(t, wn(x)), Wn(r, n());
4151
+ }), Fn(e, t);
4152
+ };
4153
+ sr(o, (e) => {
4154
+ t.customHtml?.title ? e(i) : n() && e(s, 1);
4155
+ });
4156
+ var a = Tt(o, 2), l = (e) => {
4157
+ var n = jn();
4158
+ or(yt(n), () => t.close), Fn(e, n);
4159
+ };
4160
+ sr(a, (e) => {
4161
+ t.close && e(l);
4162
+ }), G(r), It(() => {
4163
+ yr(r, 1, gr(wn(E))), wr(r, wn(S));
4164
+ }), Fn(e, r);
4165
+ };
4166
+ sr(I, (e) => {
4167
+ (n() || t.customHtml?.title || t.close) && e(B);
4168
+ });
4169
+ var $ = Tt(I, 2), H = (e) => {
4170
+ var n = jn();
4171
+ pr(yt(n), () => t.customHtml.description), Fn(e, n);
4172
+ }, j = (e) => {
4173
+ var t = Oi(), n = bt(t, !0);
4174
+ G(t), It(() => {
4175
+ yr(t, 1, gr(wn(C))), wr(t, wn(N)), Wn(n, r());
4176
+ }), Fn(e, t);
4177
+ };
4178
+ sr($, (e) => {
4179
+ t.customHtml?.description ? e(H) : r() && e(j, 1);
4180
+ });
4181
+ var F = Tt($, 2), z = (e) => {
4182
+ var n = jn();
4183
+ or(yt(n), () => t.skip), Fn(e, n);
4184
+ };
4185
+ sr(F, (e) => {
4186
+ t.skip && e(z);
4187
+ });
4188
+ var U = Tt(F, 2), V = (e) => {
4189
+ var n = jn();
4190
+ or(yt(n), () => t.progress), Fn(e, n);
4191
+ };
4192
+ sr(U, (e) => {
4193
+ t.progress && e(V);
4194
+ });
4195
+ var q = Tt(U, 2), K = (e) => {
4196
+ var n = jn();
4197
+ or(yt(n), () => t.footer), Fn(e, n);
4198
+ };
4199
+ return sr(q, (e) => {
4200
+ t.footer && e(K);
4201
+ }), G(A), Fr(A, (e) => rt(h, e), () => wn(h)), It(() => {
4202
+ Mr(A, "id", t.id), yr(A, 1, gr(wn(T))), P = wr(A, wn(w), P, {
4203
+ top: `${m.top ?? ""}px`,
4204
+ left: `${m.left ?? ""}px`,
4205
+ "--rb-tt-duration": `${wn(y).duration ?? ""}ms`,
4206
+ "--rb-tt-easing": wn(y).easing
4207
+ }), Mr(A, "aria-label", t.aria?.ariaLabel), Mr(A, "aria-labelledby", t.aria?.ariaLabelledby), Mr(A, "aria-describedby", t.aria?.ariaDescribedby), Mr(A, "aria-disabled", t.aria?.ariaDisabled), Mr(A, "aria-expanded", t.aria?.ariaExpanded), Mr(A, "aria-controls", t.aria?.ariaControls), Mr(A, "aria-haspopup", t.aria?.ariaHaspopup), Mr(A, "aria-pressed", t.aria?.ariaPressed);
4208
+ }), Fn(e, A), re(k);
4209
+ }(e, Vr({ get size() {
4210
+ return s();
4211
+ } }, () => t.tourTooltipProps, () => wn(m), {
4212
+ get isHidden() {
4213
+ return u();
4214
+ },
4215
+ get hasGlide() {
4216
+ return c();
4217
+ },
4218
+ get animation() {
4219
+ return f();
4220
+ },
4221
+ image: n,
4222
+ close: r,
4223
+ skip: y,
4224
+ progress: T,
4225
+ footer: w,
4226
+ $$slots: {
4227
+ image: !0,
4228
+ close: !0,
4229
+ skip: !0,
4230
+ progress: !0,
4231
+ footer: !0
4232
+ }
4233
+ })), (e) => rt(d, e, !0), () => wn(d));
4234
+ }
4235
+ return re(y);
4236
+ }
4237
+ var ki = In("<!> <!>", 1), Ai = In("<div><!></div>");
4238
+ function Pi(e, t) {
4239
+ ne(t, !0);
4240
+ let n = tt(null), r = tt(null), o = tt(null);
4241
+ Wr({
4242
+ get eventEmitter() {
4243
+ return t.eventEmitter;
4244
+ },
4245
+ mount: () => t.mount(),
4246
+ unmount: () => t.unmount(),
4247
+ close: () => t.close()
4248
+ });
4249
+ const i = Jr({
4250
+ getIsAnimated: () => t.config.visibility?.isAnimated ?? !0,
4251
+ getIsHidden: () => t.config.visibility?.isHidden ?? !1,
4252
+ classNames: {
4253
+ hidden: "rb-container--hidden",
4254
+ in: "rb-fade-in",
4255
+ out: "rb-fade-out"
4256
+ }
4257
+ }), s = to({
4258
+ getTrigger: () => t.controller.currentStep,
4259
+ getDuration: () => t.animation.overlay.transitionDuration
4260
+ });
4261
+ eo({ getContainer: () => wn(n)?.getElements()?.root ?? null });
4262
+ const a = Oe(() => t.config.size), l = Oe(() => t.config.shape), u = Oe(() => ["rb"]), c = Oe(() => ({
4263
+ ...t.config.container,
4264
+ customClasses: {
4265
+ ...t.config.container?.customClasses,
4266
+ root: [t.config.container?.customClasses?.root, i.classes]
4267
+ }
4268
+ })), f = Oe(() => t.config.tourOverlay), d = Oe(() => t.config.tourTooltip), p = Oe(() => t.config.tourImage), h = Oe(() => t.config.tourButtons), v = Oe(() => t.config.tourProgress), g = Oe(() => t.config.tourSkip), m = Oe(() => t.config.closeButton), _ = Oe(() => !!t.animation.isEnabled && t.animation.tooltip), b = Oe(() => t.animation.isEnabled), y = Oe(() => t.animation.tooltip.transition === So.GLIDE), T = Oe(() => t.animation.tooltip.appearance === Eo.DURING_SCROLL), w = Oe(() => t.scroll.isScrolling || s.isActive), E = Oe(() => !wn(y) && wn(b) && wn(w) && !wn(T)), S = Oe(() => t.controller.step), O = Oe(() => {
4269
+ const e = wn(o)?.getComponents();
4270
+ return {
4271
+ tourTooltip: e?.tourTooltip ?? null,
4272
+ tourImage: e?.tourImage ?? null,
4273
+ tourButtons: e?.tourButtons ?? null,
4274
+ closeButton: e?.closeButton ?? null,
4275
+ tourSkip: e?.tourSkip ?? null
4276
+ };
4277
+ }), x = {
4278
+ get controller() {
4279
+ return t.controller;
4280
+ },
4281
+ get components() {
4282
+ return {
4283
+ container: wn(n),
4284
+ tourOverlay: wn(r),
4285
+ ...wn(O)
4286
+ };
4287
+ },
4288
+ get events() {
4289
+ return t.eventEmitter;
4290
+ }
4291
+ };
4292
+ var C;
4293
+ Dt(() => {
4294
+ t.config.visibility?.isHidden || t.scroll.scrollTo(t.controller.currentTarget);
4295
+ }), ir(() => {
4296
+ t.mount();
4297
+ }), C = () => {
4298
+ t.eventEmitter.emit(Yr.ON_BORDA_DESTROY), t.eventEmitter.clear();
4299
+ }, null === ee && H(), ir(() => () => On(C));
4300
+ var N = { api: x }, k = Ai();
4301
+ return Fr(function(e, t) {
4302
+ ne(t, !0);
4303
+ let n = tt(null);
4304
+ const r = Oe(() => ["rb-container", t.customClasses?.root]), o = Oe(() => no(t.customStyles?.root));
4305
+ var i = { getElements: function() {
4306
+ return { root: wn(n) };
4307
+ } }, s = _o(), a = bt(s), l = (e) => {
4308
+ var n = jn();
4309
+ or(yt(n), () => t.children), Fn(e, n);
4310
+ };
4311
+ return sr(a, (e) => {
4312
+ t.children && e(l);
4313
+ }), G(s), Fr(s, (e) => rt(n, e), () => wn(n)), It(() => {
4314
+ Mr(s, "id", t.id), yr(s, 1, gr(wn(r))), wr(s, wn(o));
4315
+ }), Fn(e, s), re(i);
4316
+ }(bt(k), Vr(() => wn(c), {
4317
+ children: (e, n) => {
4318
+ var i = jn(), s = yt(i), u = (e) => {
4319
+ var n = ki(), i = yt(n), s = (e) => {
4320
+ Fr(function(e, t) {
4321
+ ne(t, !0);
4322
+ let n = qr(t, "targetElement", 3, null), r = qr(t, "borderRadius", 3, 8), o = qr(t, "padding", 3, 12), i = qr(t, "isAnimated", 3, !0), s = qr(t, "hasCloseOnBackdropClick", 3, !1), a = qr(t, "aria", 19, () => ({ ariaLabel: "Close" }));
4323
+ const { eventEmitter: l, close: u } = Xr();
4324
+ let c = tt(null), f = tt(null);
4325
+ const d = To({
4326
+ getTargetElement: () => n(),
4327
+ getBorderRadius: () => r(),
4328
+ getPadding: () => o(),
4329
+ getIsAnimated: () => i()
4330
+ }), p = Oe(() => ["rb-tour-overlay", t.customClasses?.root]), h = Oe(() => no(t.customStyles?.root)), v = Oe(() => [
4331
+ "rb-tour-overlay__backdrop",
4332
+ d.isTransitioning && "rb-tour-overlay__backdrop--transitioning",
4333
+ t.customClasses?.backdrop
4334
+ ]), g = Oe(() => no(t.customStyles?.backdrop));
4335
+ function m(e) {
4336
+ " " === e.key && _(e);
4337
+ }
4338
+ function _(e) {
4339
+ l.emit(Yr.ON_OVERLAY_CLICK, e), t.onClose ? t.onClose(e) : s() && u();
4340
+ }
4341
+ ir(() => (wn(c)?.addEventListener("click", _), wn(c)?.addEventListener("keydown", m), () => {
4342
+ wn(c)?.removeEventListener("click", _), wn(c)?.removeEventListener("keydown", m);
4343
+ }));
4344
+ var b = { getElements: function() {
4345
+ return {
4346
+ root: wn(c),
4347
+ backdrop: wn(f)
4348
+ };
4349
+ } }, y = wo();
4350
+ let T;
4351
+ var w = bt(y);
4352
+ return Fr(w, (e) => rt(f, e), () => wn(f)), G(y), Fr(y, (e) => rt(c, e), () => wn(c)), It(() => {
4353
+ Mr(y, "id", t.id), yr(y, 0, gr(wn(p))), T = wr(y, wn(h), T, {
4354
+ width: `${d.width ?? ""}px`,
4355
+ height: `${d.height ?? ""}px`
4356
+ }), Mr(y, "aria-label", a()?.ariaLabel), Mr(y, "aria-labelledby", a()?.ariaLabelledby), Mr(y, "aria-describedby", a()?.ariaDescribedby), Mr(y, "aria-disabled", a()?.ariaDisabled), Mr(y, "aria-expanded", a()?.ariaExpanded), Mr(y, "aria-controls", a()?.ariaControls), Mr(y, "aria-haspopup", a()?.ariaHaspopup), Mr(y, "aria-pressed", a()?.ariaPressed), yr(w, 0, gr(wn(v))), wr(w, wn(g)), Mr(w, "d", d.backdropPath);
4357
+ }), Fn(e, y), re(b);
4358
+ }(e, Vr({
4359
+ get targetElement() {
4360
+ return t.controller.currentTarget;
4361
+ },
4362
+ get isAnimated() {
4363
+ return wn(b);
4364
+ }
4365
+ }, () => wn(f))), (e) => rt(r, e, !0), () => wn(r));
4366
+ };
4367
+ sr(i, (e) => {
4368
+ !1 !== wn(f) && e(s);
4369
+ });
4370
+ var u = Tt(i, 2), c = (e) => {
4371
+ Fr(Ni(e, {
4372
+ get step() {
4373
+ return wn(S);
4374
+ },
4375
+ get currentTarget() {
4376
+ return t.controller.currentTarget;
4377
+ },
4378
+ get currentStep() {
4379
+ return t.controller.currentStep;
4380
+ },
4381
+ get totalSteps() {
4382
+ return t.controller.totalSteps;
4383
+ },
4384
+ get isSkipChecked() {
4385
+ return t.skip.isSkipped;
4386
+ },
4387
+ get isHidden() {
4388
+ return wn(E);
4389
+ },
4390
+ get hasGlide() {
4391
+ return wn(y);
4392
+ },
4393
+ get tourTooltipAnimation() {
4394
+ return wn(_);
4395
+ },
4396
+ get size() {
4397
+ return wn(a);
4398
+ },
4399
+ get shape() {
4400
+ return wn(l);
4401
+ },
4402
+ get tourTooltipProps() {
4403
+ return wn(d);
4404
+ },
4405
+ get tourImageProps() {
4406
+ return wn(p);
4407
+ },
4408
+ get tourButtonsProps() {
4409
+ return wn(h);
4410
+ },
4411
+ get tourProgressProps() {
4412
+ return wn(v);
4413
+ },
4414
+ get closeButtonProps() {
4415
+ return wn(m);
4416
+ },
4417
+ get tourSkipProps() {
4418
+ return wn(g);
4419
+ },
4420
+ get onNext() {
4421
+ return t.controller.next;
4422
+ },
4423
+ get onPrev() {
4424
+ return t.controller.prev;
4425
+ },
4426
+ get onFinish() {
4427
+ return t.controller.finish;
4428
+ },
4429
+ get onSkip() {
4430
+ return t.close;
4431
+ },
4432
+ get onSkipChange() {
4433
+ return t.skip.set;
4434
+ }
4435
+ }), (e) => rt(o, e, !0), () => wn(o));
4436
+ };
4437
+ sr(u, (e) => {
4438
+ !1 !== wn(d) && e(c);
4439
+ }), Fn(e, n);
4440
+ };
4441
+ sr(s, (e) => {
4442
+ t.controller.currentTarget && wn(S) && e(u);
4443
+ }), Fn(e, i);
4444
+ },
4445
+ $$slots: { default: !0 }
4446
+ })), (e) => rt(n, e, !0), () => wn(n)), G(k), It(() => yr(k, 1, gr(wn(u)))), Fn(e, k), re(N);
4447
+ }
4448
+ function Di() {
4449
+ const e = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakSet();
4450
+ function n(t, n) {
4451
+ (function(e) {
4452
+ if (!po) throw new ho(`${e}() requires a browser environment`);
4453
+ })("mount");
4454
+ const o = n ?? document.body;
4455
+ return new Promise((n) => {
4456
+ let i = null;
4457
+ const s = Zr(), a = Li(t), l = Ro(a), u = ko(a, s);
4458
+ u.apply(), l.applyStep(u.api.step ?? null);
4459
+ const c = zo(a, s);
4460
+ c.apply(), c.api.isSkipped && a.mergeConfig({ visibility: { isHidden: !0 } });
4461
+ const f = Do(a, s);
4462
+ f.apply();
4463
+ const d = Fo(a);
4464
+ d.apply();
4465
+ const p = Co(a);
4466
+ p.apply();
4467
+ const h = Mo(a, l);
4468
+ h.apply();
4469
+ const v = Uo(a, s);
4470
+ v.apply();
4471
+ const g = Yn(Pi, {
4472
+ target: o,
4473
+ props: {
4474
+ get config() {
4475
+ return l.resolved;
4476
+ },
4477
+ get controller() {
4478
+ return u.api;
4479
+ },
4480
+ get skip() {
4481
+ return c.api;
4482
+ },
4483
+ get scroll() {
4484
+ return d.api;
4485
+ },
4486
+ get animation() {
4487
+ return p.api;
4488
+ },
4489
+ mount: () => {
4490
+ const t = {
4491
+ api: g.api,
4492
+ config: a,
4493
+ component: g,
4494
+ skip: c.api,
4495
+ scroll: d.api,
4496
+ animation: p.api,
4497
+ responsive: h.api,
4498
+ visibility: v.api
4499
+ };
4500
+ i = t, s.on(Yr.ON_TOUR_STEP_CHANGE, () => {
4501
+ l.applyStep(u.api.step ?? null);
4502
+ }), s.on(Yr.ON_KEYBOARD_NEXT, () => {
4503
+ u.api.next();
4504
+ }), s.on(Yr.ON_KEYBOARD_PREV, () => {
4505
+ u.api.prev();
4506
+ }), e.set(t, () => {
4507
+ f.destroy(), h.destroy(), d.destroy();
4508
+ }), s.once(Yr.ON_TOUR_FINISH, async () => {
4509
+ a.getConfig().tour?.onFinish?.(), await r(t);
4510
+ }), s.once(Yr.ON_TOUR_CLOSE, async () => {
4511
+ a.getConfig().tour?.onClose?.(), await r(t);
4512
+ }), n(t);
4513
+ },
4514
+ unmount: () => {
4515
+ i && r(i);
4516
+ },
4517
+ close: () => {
4518
+ s.emit(Yr.ON_TOUR_CLOSE);
4519
+ },
4520
+ eventEmitter: s
4521
+ }
4522
+ });
4523
+ });
4524
+ }
4525
+ async function r(n) {
4526
+ if (t.has(n)) return;
4527
+ t.add(n);
4528
+ const r = n.api.components.container?.getElements()?.root, o = n.config.getConfig().visibility, i = o?.isAnimated ?? !0;
4529
+ !o?.isHidden && i && r && (n.visibility.hide(), await async function(e) {
4530
+ await new Promise(requestAnimationFrame);
4531
+ const t = e.getAnimations({ subtree: !0 });
4532
+ await Promise.allSettled(t.map((e) => e.finished));
4533
+ }(r)), e.get(n)?.(), e.delete(n), await tr(n.component);
4534
+ }
4535
+ return {
4536
+ NAME: "@retoo/borda",
4537
+ VERSION: "0.0.1",
4538
+ mount: n,
4539
+ unmount: r,
4540
+ highlight: Ao(n).highlight
4541
+ };
4542
+ }
4543
+ function Li(e) {
4544
+ let t = tt(lt(go(e)));
4545
+ function n(e) {
4546
+ rt(t, go(e), !0);
4547
+ }
4548
+ return {
4549
+ get current() {
4550
+ return wn(t);
4551
+ },
4552
+ getConfig: function() {
4553
+ return wn(t);
4554
+ },
4555
+ setConfig: n,
4556
+ mergeConfig: function(e) {
4557
+ n(mo(wn(t), e));
4558
+ }
4559
+ };
4560
+ }
4561
+ var Ri = "borda-tour-widget", Mi = "undefined" != typeof HTMLElement ? HTMLElement : class {}, Ii = class extends Mi {
4562
+ static tagName = Ri;
4563
+ _instance = null;
4564
+ _borda = null;
4565
+ _connected = !1;
4566
+ _mountPending = null;
4567
+ _unmountPending = null;
4568
+ get borda() {
4569
+ return this._borda;
4570
+ }
4571
+ get instance() {
4572
+ return this._instance;
4573
+ }
4574
+ connectedCallback() {
4575
+ this._connected = !0;
4576
+ }
4577
+ disconnectedCallback() {
4578
+ this._connected = !1, this.unmount().catch((e) => {
4579
+ console.error("[borda] unmount failed on disconnect:", e);
4580
+ });
4581
+ }
4582
+ mount(e) {
4583
+ return this._mountPending || (this._mountPending = this._mount(e).finally(() => {
4584
+ this._mountPending = null;
4585
+ })), this._mountPending;
4586
+ }
4587
+ async _mount(e) {
4588
+ if (this._unmountPending && await this._unmountPending, this._instance) return this._instance.config.setConfig(e), this._instance;
4589
+ const t = Di(), n = await t.mount(e);
4590
+ return this._borda = t, this._instance = n, this.dispatchEvent(new CustomEvent("borda:mount", {
4591
+ detail: n,
4592
+ bubbles: !0,
4593
+ composed: !0
4594
+ })), n;
4595
+ }
4596
+ unmount() {
4597
+ return this._unmountPending ? this._unmountPending : this._borda && this._instance ? (this._unmountPending = this._unmount().finally(() => {
4598
+ this._unmountPending = null;
4599
+ }), this._unmountPending) : Promise.resolve();
4600
+ }
4601
+ async _unmount() {
4602
+ if (this._mountPending && await this._mountPending, !this._borda || !this._instance) return;
4603
+ const e = this._borda, t = this._instance;
4604
+ this._borda = null, this._instance = null, await e.unmount(t), this.dispatchEvent(new CustomEvent("borda:unmount", {
4605
+ bubbles: !0,
4606
+ composed: !0
4607
+ }));
4608
+ }
4609
+ };
4610
+ function Bi() {
4611
+ return customElements.get(Ii.tagName);
4612
+ }
4613
+ function $i() {
4614
+ Bi() || customElements.define(Ii.tagName, Ii);
4615
+ }
4616
+ po && (window.bordaWidget = Di, window.defineBordaElement = $i), exports.AnimationEffect = uo, exports.BordaButtonShape = qo, exports.BordaButtonType = Go, exports.BordaButtonVariant = Ko, exports.BordaEvent = Yr, exports.BordaScrollAppearance = Eo, exports.BordaTooltipArrowSide = yi, exports.BordaTooltipTransition = So, exports.BordaTourImageVariant = si, exports.BordaTourProgressVariant = di, exports.ComponentAriaHaspopup = lo, exports.ComponentAriaPressed = ao, exports.ComponentPlacement = io, exports.ComponentShape = so, exports.ComponentSize = oo, exports.OverrideLayer = co, exports.SAFE_HTML_ELEMENT = Mi, exports.TAG_NAME = Ri, exports.bordaTourFinishButtonDefault = ni, exports.bordaTourNextButtonDefault = ti, exports.bordaTourPrevButtonDefault = ei, exports.bordaTourSkipButtonDefault = ri, exports.defineBordaElement = $i, exports.getBordaContext = Xr, exports.getBordaElement = Bi, exports.setBordaContext = Wr, exports.useBorda = Di, exports.useBordaAnimation = Co, exports.useBordaConfig = Li, exports.useBordaController = ko, exports.useBordaHighlight = Ao, exports.useBordaKeyboard = Do, exports.useBordaOverrides = Ro, exports.useBordaResponsive = Mo, exports.useBordaScroll = Fo, exports.useBordaSkip = zo, exports.useBordaVisibility = Uo, exports.useEventEmitter = Zr, exports.useOverlay = To, exports.useTooltipArrow = Ti, exports.useTooltipPosition = Ei;