@retoo/borda 0.0.2 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,7 @@ function g() {
14
14
  reject: t
15
15
  };
16
16
  }
17
- var m = 1024, _ = 2048, b = 4096, y = 8192, T = 32768, w = 1 << 25, E = 65536, S = 1 << 19, O = 1 << 25, C = 65536, N = 1 << 21, k = 1 << 23, P = Symbol("$state"), A = Symbol("legacy props"), D = Symbol(""), x = Symbol("attributes"), L = Symbol("class"), R = Symbol("style"), M = Symbol("text"), I = Symbol("form reset"), $ = new class extends Error {
17
+ var m = 1024, _ = 2048, b = 4096, y = 8192, T = 32768, w = 1 << 25, E = 65536, O = 1 << 19, S = 1 << 25, C = 65536, N = 1 << 21, k = 1 << 23, P = Symbol("$state"), A = Symbol("legacy props"), D = Symbol(""), x = Symbol("attributes"), L = Symbol("class"), R = Symbol("style"), M = Symbol("text"), I = Symbol("form reset"), $ = new class extends Error {
18
18
  name = "StaleReactionError";
19
19
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
20
20
  }(), B = !!globalThis.document?.contentType && globalThis.document.contentType.includes("xml");
@@ -27,31 +27,31 @@ function j(e, t, n) {
27
27
  function F(e) {
28
28
  console.warn("https://svelte.dev/e/hydration_mismatch");
29
29
  }
30
- var z, U = !1;
30
+ var U, z = !1;
31
31
  function V(e) {
32
- U = e;
32
+ z = e;
33
33
  }
34
34
  function q(t) {
35
35
  if (null === t) throw F(), e;
36
- return z = t;
36
+ return U = t;
37
37
  }
38
38
  function K() {
39
- return q(_t(z));
39
+ return q(_t(U));
40
40
  }
41
41
  function G(t) {
42
- if (U) {
43
- if (null !== _t(z)) throw F(), e;
44
- z = t;
42
+ if (z) {
43
+ if (null !== _t(U)) throw F(), e;
44
+ U = t;
45
45
  }
46
46
  }
47
47
  function X(e = 1) {
48
- if (U) {
49
- for (var t = e, n = z; t--;) n = _t(n);
50
- z = n;
48
+ if (z) {
49
+ for (var t = e, n = U; t--;) n = _t(n);
50
+ U = n;
51
51
  }
52
52
  }
53
53
  function W(e = !0) {
54
- for (var t = 0, n = z;;) {
54
+ for (var t = 0, n = U;;) {
55
55
  if (8 === n.nodeType) {
56
56
  var r = n.data;
57
57
  if ("]" === r) {
@@ -172,7 +172,7 @@ var _e = class {
172
172
  is_pending = !1;
173
173
  transform_error;
174
174
  #e;
175
- #t = U ? z : null;
175
+ #t = z ? U : null;
176
176
  #n;
177
177
  #r;
178
178
  #i;
@@ -189,7 +189,7 @@ var _e = class {
189
189
  #v = function(e) {
190
190
  let t, n = 0, r = et(0);
191
191
  return () => {
192
- At() && (wn(r), Mt(() => (0 === n && (t = On(() => e(() => st(r)))), n += 1, () => {
192
+ At() && (wn(r), Mt(() => (0 === n && (t = Sn(() => e(() => st(r)))), n += 1, () => {
193
193
  le(() => {
194
194
  n -= 1, 0 === n && (t?.(), t = void 0, st(r));
195
195
  });
@@ -203,7 +203,7 @@ var _e = class {
203
203
  var t = rn;
204
204
  t.b = this, t.f |= 128, n(e);
205
205
  }, this.parent = rn.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = $t(() => {
206
- if (U) {
206
+ if (z) {
207
207
  const e = this.#t;
208
208
  K();
209
209
  const t = "[!" === e.data;
@@ -212,7 +212,7 @@ var _e = class {
212
212
  this.#g(t);
213
213
  } else t ? this.#m() : this.#_();
214
214
  } else this.#b();
215
- }, 589824), U && (this.#e = z);
215
+ }, 589824), z && (this.#e = U);
216
216
  }
217
217
  #_() {
218
218
  try {
@@ -266,7 +266,7 @@ var _e = class {
266
266
  var t = rn, n = en, r = ee;
267
267
  on(this.#i), nn(this.#i), te(this.#i.ctx);
268
268
  try {
269
- return Ue.ensure(), e();
269
+ return ze.ensure(), e();
270
270
  } catch (e) {
271
271
  return ce(e), null;
272
272
  } finally {
@@ -293,7 +293,7 @@ var _e = class {
293
293
  })) : this.#E(e);
294
294
  }
295
295
  #E(e) {
296
- this.#o && (zt(this.#o), this.#o = null), this.#s && (zt(this.#s), this.#s = null), this.#a && (zt(this.#a), this.#a = null), U && (q(this.#t), X(), q(W()));
296
+ this.#o && (Ut(this.#o), this.#o = null), this.#s && (Ut(this.#s), this.#s = null), this.#a && (Ut(this.#a), this.#a = null), z && (q(this.#t), X(), q(W()));
297
297
  var t = this.#n.onerror;
298
298
  let n = this.#n.failed;
299
299
  var r = !1, i = !1;
@@ -360,7 +360,7 @@ function be(e, t, n, r) {
360
360
  }
361
361
  }
362
362
  function d() {
363
- Promise.all(n.map((e) => Se(e))).then(f).catch((e) => fe(e, a)).finally(c);
363
+ Promise.all(n.map((e) => Oe(e))).then(f).catch((e) => fe(e, a)).finally(c);
364
364
  }
365
365
  }
366
366
  function ye(e = !0) {
@@ -373,7 +373,7 @@ function Te() {
373
373
  };
374
374
  }
375
375
  function we(e) {
376
- null !== rn && (rn.f |= S);
376
+ null !== rn && (rn.f |= O);
377
377
  return {
378
378
  ctx: ee,
379
379
  deps: null,
@@ -390,7 +390,7 @@ function we(e) {
390
390
  };
391
391
  }
392
392
  var Ee = Symbol("obsolete");
393
- function Se(e, n, r) {
393
+ function Oe(e, n, r) {
394
394
  let i = rn;
395
395
  null === i && function() {
396
396
  throw new Error("https://svelte.dev/e/async_derived_orphan");
@@ -432,7 +432,7 @@ function Se(e, n, r) {
432
432
  })(o);
433
433
  });
434
434
  }
435
- function Oe(e) {
435
+ function Se(e) {
436
436
  const t = we(e);
437
437
  return an(t), t;
438
438
  }
@@ -444,7 +444,7 @@ function Ne(e) {
444
444
  var t = e.effects;
445
445
  if (null !== t) {
446
446
  e.effects = null;
447
- for (var n = 0; n < t.length; n += 1) zt(t[n]);
447
+ for (var n = 0; n < t.length; n += 1) Ut(t[n]);
448
448
  }
449
449
  }
450
450
  function ke(e) {
@@ -465,11 +465,11 @@ function Pe(e) {
465
465
  function Ae(e) {
466
466
  if (null !== e.effects) for (const t of e.effects) t.teardown && null !== t.fn && Tn(t);
467
467
  }
468
- var De = null, xe = null, Le = null, Re = null, Me = null, Ie = null, $e = !1, Be = !1, He = null, je = null, Fe = 0, ze = 1, Ue = class e {
469
- id = ze++;
470
- #S = !1;
468
+ var De = null, xe = null, Le = null, Re = null, Me = null, Ie = null, $e = !1, Be = !1, He = null, je = null, Fe = 0, Ue = 1, ze = class e {
469
+ id = Ue++;
470
+ #O = !1;
471
471
  linked = !0;
472
- #O = null;
472
+ #S = null;
473
473
  #C = null;
474
474
  async_deriveds = /* @__PURE__ */ new Map();
475
475
  current = /* @__PURE__ */ new Map();
@@ -488,7 +488,7 @@ var De = null, xe = null, Le = null, Re = null, Me = null, Ie = null, $e = !1, B
488
488
  is_fork = !1;
489
489
  #I = !1;
490
490
  constructor() {
491
- null === xe ? De = xe = this : (xe.#C = this, this.#O = xe), xe = this;
491
+ null === xe ? De = xe = this : (xe.#C = this, this.#S = xe), xe = this;
492
492
  }
493
493
  #$() {
494
494
  if (this.is_fork) return !0;
@@ -519,7 +519,7 @@ var De = null, xe = null, Le = null, Re = null, Me = null, Ie = null, $e = !1, B
519
519
  this.#M.add(e);
520
520
  }
521
521
  #B() {
522
- this.#S = !0, Fe++ > 1e3 && (this.#H(), function() {
522
+ this.#O = !0, Fe++ > 1e3 && (this.#H(), function() {
523
523
  try {
524
524
  (function() {
525
525
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
@@ -548,8 +548,8 @@ var De = null, xe = null, Le = null, Re = null, Me = null, Ie = null, $e = !1, B
548
548
  i.length > 0 && Le.#B();
549
549
  return;
550
550
  }
551
- const s = this.#z();
552
- if (s) return this.#F(r), this.#F(n), void s.#U(this);
551
+ const s = this.#U();
552
+ if (s) return this.#F(r), this.#F(n), void s.#z(this);
553
553
  this.#d.clear(), this.#p.clear();
554
554
  for (const e of this.#N) e(this);
555
555
  this.#N.clear(), Re = this, qe(r), qe(n), Re = null, this.#D?.resolve();
@@ -582,16 +582,16 @@ var De = null, xe = null, Le = null, Re = null, Me = null, Ie = null, $e = !1, B
582
582
  }
583
583
  }
584
584
  }
585
- #z() {
586
- for (var e = this.#O; null !== e;) {
585
+ #U() {
586
+ for (var e = this.#S; null !== e;) {
587
587
  if (!e.is_fork) {
588
588
  for (const [t, [, n]] of this.current) if (e.current.has(t) && !n) return e;
589
589
  }
590
- e = e.#O;
590
+ e = e.#S;
591
591
  }
592
592
  return null;
593
593
  }
594
- #U(e) {
594
+ #z(e) {
595
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
596
  for (const [t, n] of e.async_deriveds) {
597
597
  const e = this.async_deriveds.get(t);
@@ -656,7 +656,7 @@ var De = null, xe = null, Le = null, Re = null, Me = null, Ie = null, $e = !1, B
656
656
  n && t.promise.then(n.resolve).catch(n.reject);
657
657
  }
658
658
  var r = [...c.current.keys()].filter((e) => !c.current.get(e)[1]);
659
- if (c.#S && 0 !== r.length) {
659
+ if (c.#O && 0 !== r.length) {
660
660
  var i = r.filter((e) => !this.current.has(e));
661
661
  if (0 === i.length) e && c.discard();
662
662
  else if (t.length > 0) {
@@ -714,7 +714,7 @@ var De = null, xe = null, Le = null, Re = null, Me = null, Ie = null, $e = !1, B
714
714
  if (null === Le) {
715
715
  const t = Le = new e();
716
716
  Be || $e || le(() => {
717
- t.#S || t.flush();
717
+ t.#O || t.flush();
718
718
  });
719
719
  }
720
720
  return Le;
@@ -737,8 +737,8 @@ var De = null, xe = null, Le = null, Re = null, Me = null, Ie = null, $e = !1, B
737
737
  }
738
738
  #H() {
739
739
  if (this.linked) {
740
- var e = this.#O, t = this.#C;
741
- null === e ? De = t : e.#C = t, null === t ? xe = e : t.#O = e, this.linked = !1;
740
+ var e = this.#S, t = this.#C;
741
+ null === e ? De = t : e.#C = t, null === t ? xe = e : t.#S = e, this.linked = !1;
742
742
  }
743
743
  }
744
744
  };
@@ -823,7 +823,7 @@ function rt(e, t, n = !1) {
823
823
  function it(e, t, n = null) {
824
824
  if (!e.equals(t)) {
825
825
  Je.set(e, Jt ? t : e.v);
826
- var r = Ue.ensure();
826
+ var r = ze.ensure();
827
827
  if (r.capture(e, t), 2 & e.f) {
828
828
  const t = e;
829
829
  2048 & e.f && ke(t), null === Me && he(t);
@@ -1006,39 +1006,39 @@ function _t(e) {
1006
1006
  return ht.call(e);
1007
1007
  }
1008
1008
  function bt(e, t) {
1009
- if (!U) return mt(e);
1010
- var n = mt(z);
1011
- if (null === n) n = z.appendChild(gt());
1009
+ if (!z) return mt(e);
1010
+ var n = mt(U);
1011
+ if (null === n) n = U.appendChild(gt());
1012
1012
  else if (t && 3 !== n.nodeType) {
1013
1013
  var r = gt();
1014
1014
  return n?.before(r), q(r), r;
1015
1015
  }
1016
- return t && St(n), q(n), n;
1016
+ return t && Ot(n), q(n), n;
1017
1017
  }
1018
1018
  function yt(e, t = !1) {
1019
- if (!U) {
1019
+ if (!z) {
1020
1020
  var n = mt(e);
1021
1021
  return n instanceof Comment && "" === n.data ? _t(n) : n;
1022
1022
  }
1023
1023
  if (t) {
1024
- if (3 !== z?.nodeType) {
1024
+ if (3 !== U?.nodeType) {
1025
1025
  var r = gt();
1026
- return z?.before(r), q(r), r;
1026
+ return U?.before(r), q(r), r;
1027
1027
  }
1028
- St(z);
1028
+ Ot(U);
1029
1029
  }
1030
- return z;
1030
+ return U;
1031
1031
  }
1032
1032
  function Tt(e, t = 1, n = !1) {
1033
- let r = U ? z : e;
1033
+ let r = z ? U : e;
1034
1034
  for (var i; t--;) i = r, r = _t(r);
1035
- if (!U) return r;
1035
+ if (!z) return r;
1036
1036
  if (n) {
1037
1037
  if (3 !== r?.nodeType) {
1038
1038
  var o = gt();
1039
1039
  return null === r ? i?.after(o) : r.before(o), q(o), o;
1040
1040
  }
1041
- St(r);
1041
+ Ot(r);
1042
1042
  }
1043
1043
  return q(r), r;
1044
1044
  }
@@ -1048,12 +1048,12 @@ function wt(e) {
1048
1048
  function Et(e, t, n) {
1049
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
1050
  }
1051
- function St(e) {
1051
+ function Ot(e) {
1052
1052
  if (e.nodeValue.length < 65536) return;
1053
1053
  let t = e.nextSibling;
1054
1054
  for (; null !== t && 3 === t.nodeType;) t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
1055
1055
  }
1056
- function Ot(e, t) {
1056
+ function St(e, t) {
1057
1057
  if (t) {
1058
1058
  const t = document.body;
1059
1059
  e.autofocus = !0, le(() => {
@@ -1101,12 +1101,12 @@ function Pt(e, t) {
1101
1101
  };
1102
1102
  Le?.register_created_effect(r);
1103
1103
  var i = r;
1104
- if (4 & e) null !== He ? He.push(r) : Ue.ensure().schedule(r);
1104
+ if (4 & e) null !== He ? He.push(r) : ze.ensure().schedule(r);
1105
1105
  else if (null !== t) {
1106
1106
  try {
1107
1107
  Tn(r);
1108
1108
  } catch (i) {
1109
- throw zt(r), i;
1109
+ throw Ut(r), i;
1110
1110
  }
1111
1111
  null !== i.deps || null !== i.teardown || null !== i.nodes || i.first !== i.last || 524288 & i.f || (i = i.first, 16 & e && 65536 & e && null !== i && (i.f |= E));
1112
1112
  }
@@ -1178,19 +1178,19 @@ function Ft(e, t = !1) {
1178
1178
  e.abort($);
1179
1179
  });
1180
1180
  var r = n.next;
1181
- 64 & n.f ? n.parent = null : zt(n, t), n = r;
1181
+ 64 & n.f ? n.parent = null : Ut(n, t), n = r;
1182
1182
  }
1183
1183
  }
1184
- function zt(e, t = !0) {
1184
+ function Ut(e, t = !0) {
1185
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);
1186
+ (t || 262144 & e.f) && null !== e.nodes && null !== e.nodes.end && (zt(e.nodes.start, e.nodes.end), n = !0), e.f |= w, Ft(e, t && !n), yn(e, 0);
1187
1187
  var r = e.nodes && e.nodes.t;
1188
1188
  if (null !== r) for (const e of r) e.stop();
1189
1189
  jt(e), e.f ^= w, e.f |= 16384;
1190
1190
  var i = e.parent;
1191
1191
  null !== i && null !== i.first && Vt(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1192
1192
  }
1193
- function Ut(e, t) {
1193
+ function zt(e, t) {
1194
1194
  for (; null !== e;) {
1195
1195
  var n = e === t ? null : _t(e);
1196
1196
  e.remove(), e = n;
@@ -1204,7 +1204,7 @@ function qt(e, t, n = !0) {
1204
1204
  var r = [];
1205
1205
  Kt(e, r, !0);
1206
1206
  var i = () => {
1207
- n && zt(e), t && t();
1207
+ n && Ut(e), t && t();
1208
1208
  }, o = r.length;
1209
1209
  if (o > 0) {
1210
1210
  var s = () => --o || i();
@@ -1228,7 +1228,7 @@ function Gt(e) {
1228
1228
  }
1229
1229
  function Xt(e, t) {
1230
1230
  if (8192 & e.f) {
1231
- e.f ^= y, 1024 & e.f || (pe(e, _), Ue.ensure().schedule(e));
1231
+ e.f ^= y, 1024 & e.f || (pe(e, _), ze.ensure().schedule(e));
1232
1232
  for (var n = e.first; null !== n;) {
1233
1233
  var r = n.next;
1234
1234
  Xt(n, !!(!!(65536 & n.f) || !!(32 & n.f)) && t), n = r;
@@ -1345,7 +1345,7 @@ function Tn(e) {
1345
1345
  16777232 & t ? function(e) {
1346
1346
  for (var t = e.first; null !== t;) {
1347
1347
  var n = t.next;
1348
- 32 & t.f || zt(t), t = n;
1348
+ 32 & t.f || Ut(t), t = n;
1349
1349
  }
1350
1350
  }(e) : Ft(e), jt(e);
1351
1351
  var i = _n(e);
@@ -1371,7 +1371,7 @@ function wn(e) {
1371
1371
  var o = e;
1372
1372
  if (Jt) {
1373
1373
  var s = o.v;
1374
- return (1024 & o.f || null === o.reactions) && !Sn(o) || (s = ke(o)), Je.set(o, s), s;
1374
+ return (1024 & o.f || null === o.reactions) && !On(o) || (s = ke(o)), Je.set(o, s), s;
1375
1375
  }
1376
1376
  var a = !(512 & o.f) && !tn && null !== en && (Zt || !!(512 & en.f)), l = 0 === (o.f & T);
1377
1377
  gn(o) && (a && (o.f |= 512), Pe(o)), a && !l && (Ae(o), En(o));
@@ -1383,16 +1383,16 @@ function wn(e) {
1383
1383
  function En(e) {
1384
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
1385
  }
1386
- function Sn(e) {
1386
+ function On(e) {
1387
1387
  if (e.v === t) return !0;
1388
1388
  if (null === e.deps) return !1;
1389
1389
  for (const t of e.deps) {
1390
1390
  if (Je.has(t)) return !0;
1391
- if (2 & t.f && Sn(t)) return !0;
1391
+ if (2 & t.f && On(t)) return !0;
1392
1392
  }
1393
1393
  return !1;
1394
1394
  }
1395
- function On(e) {
1395
+ function Sn(e) {
1396
1396
  var t = tn;
1397
1397
  try {
1398
1398
  return tn = !0, e();
@@ -1473,7 +1473,7 @@ function Mn(e, t) {
1473
1473
  function In(e, t) {
1474
1474
  var n, r = !!(1 & t), i = !!(2 & t), o = !e.startsWith("<!>");
1475
1475
  return () => {
1476
- if (U) return Mn(z, null), z;
1476
+ if (z) return Mn(U, null), U;
1477
1477
  void 0 === n && (n = Rn(o ? e : "<!>" + e), r || (n = mt(n)));
1478
1478
  var t = i || dt ? document.importNode(n, !0) : n.cloneNode(!0);
1479
1479
  r ? Mn(mt(t), t.lastChild) : Mn(t, t);
@@ -1483,7 +1483,7 @@ function In(e, t) {
1483
1483
  function $n(e, t, n = "svg") {
1484
1484
  var r, i = !e.startsWith("<!>"), o = !!(1 & t), s = `<${n}>${i ? e : "<!>" + e}</${n}>`;
1485
1485
  return () => {
1486
- if (U) return Mn(z, null), z;
1486
+ if (z) return Mn(U, null), U;
1487
1487
  if (!r) {
1488
1488
  var e = mt(Rn(s));
1489
1489
  if (o) for (r = document.createDocumentFragment(); mt(e);) r.appendChild(mt(e));
@@ -1498,30 +1498,30 @@ function Bn(e, t) {
1498
1498
  return $n(e, t, "svg");
1499
1499
  }
1500
1500
  function Hn(e = "") {
1501
- if (!U) {
1501
+ if (!z) {
1502
1502
  var t = gt(e + "");
1503
1503
  return Mn(t, t), t;
1504
1504
  }
1505
- var n = z;
1506
- return 3 !== n.nodeType ? (n.before(n = gt()), q(n)) : St(n), Mn(n, n), n;
1505
+ var n = U;
1506
+ return 3 !== n.nodeType ? (n.before(n = gt()), q(n)) : Ot(n), Mn(n, n), n;
1507
1507
  }
1508
1508
  function jn() {
1509
- if (U) return Mn(z, null), z;
1509
+ if (z) return Mn(U, null), U;
1510
1510
  var e = document.createDocumentFragment(), t = document.createComment(""), n = gt();
1511
1511
  return e.append(t, n), Mn(t, n), e;
1512
1512
  }
1513
1513
  function Fn(e, t) {
1514
- if (U) {
1514
+ if (z) {
1515
1515
  var n = rn;
1516
- 32768 & n.f && null !== n.nodes.end || (n.nodes.end = z), K();
1516
+ 32768 & n.f && null !== n.nodes.end || (n.nodes.end = U), K();
1517
1517
  return;
1518
1518
  }
1519
1519
  null !== e && e.before(t);
1520
1520
  }
1521
- function zn(e) {
1521
+ function Un(e) {
1522
1522
  return e.endsWith("capture") && "gotpointercapture" !== e && "lostpointercapture" !== e;
1523
1523
  }
1524
- var Un = [
1524
+ var zn = [
1525
1525
  "beforeinput",
1526
1526
  "click",
1527
1527
  "change",
@@ -1547,7 +1547,7 @@ var Un = [
1547
1547
  "touchstart"
1548
1548
  ];
1549
1549
  function Vn(e) {
1550
- return Un.includes(e);
1550
+ return zn.includes(e);
1551
1551
  }
1552
1552
  var qn = {
1553
1553
  formnovalidate: "formNoValidate",
@@ -1581,19 +1581,19 @@ var Jn = /* @__PURE__ */ new Map();
1581
1581
  function Qn(t, { target: n, anchor: r, props: i = {}, events: s, context: a, intro: l = !0, transformError: u }) {
1582
1582
  vt();
1583
1583
  var c = void 0, f = function(e) {
1584
- Ue.ensure();
1584
+ ze.ensure();
1585
1585
  const t = Pt(524352, e);
1586
1586
  return (e = {}) => new Promise((n) => {
1587
1587
  e.outro ? qt(t, () => {
1588
- zt(t), n(void 0);
1589
- }) : (zt(t), n(void 0));
1588
+ Ut(t), n(void 0);
1589
+ }) : (Ut(t), n(void 0));
1590
1590
  });
1591
1591
  }(() => {
1592
1592
  var l = r ?? n.appendChild(gt());
1593
1593
  (function(e, t, n, r) {
1594
1594
  new _e(e, t, n, r);
1595
1595
  })(l, { pending: () => {} }, (n) => {
1596
- if (ne({}), a && (ee.c = a), s && (i.$$events = s), U && Mn(n, null), c = t(n, i) || {}, U && (rn.nodes.end = z, null === z || 8 !== z.nodeType || "]" !== z.data)) throw F(), e;
1596
+ if (ne({}), a && (ee.c = a), s && (i.$$events = s), z && Mn(n, null), c = t(n, i) || {}, z && (rn.nodes.end = U, null === U || 8 !== U.nodeType || "]" !== U.data)) throw F(), e;
1597
1597
  re();
1598
1598
  }, u);
1599
1599
  var f = /* @__PURE__ */ new Set(), d = (e) => {
@@ -1647,7 +1647,7 @@ var nr, rr = class {
1647
1647
  for (const [t, n] of this.#q) {
1648
1648
  if (this.#q.delete(t), t === e) break;
1649
1649
  const r = this.#G.get(n);
1650
- r && (zt(r.effect), this.#G.delete(n));
1650
+ r && (Ut(r.effect), this.#G.delete(n));
1651
1651
  }
1652
1652
  for (const [e, r] of this.#K) {
1653
1653
  if (e === t || this.#X.has(e)) continue;
@@ -1658,7 +1658,7 @@ var nr, rr = class {
1658
1658
  effect: r,
1659
1659
  fragment: t
1660
1660
  });
1661
- } else zt(r);
1661
+ } else Ut(r);
1662
1662
  this.#X.delete(e), this.#K.delete(e);
1663
1663
  };
1664
1664
  this.#W || !n ? (this.#X.add(e), qt(r, i, !1)) : i();
@@ -1668,12 +1668,12 @@ var nr, rr = class {
1668
1668
  #Y = (e) => {
1669
1669
  this.#q.delete(e);
1670
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));
1671
+ for (const [e, n] of this.#G) t.includes(e) || (Ut(n.effect), this.#G.delete(e));
1672
1672
  };
1673
1673
  ensure(e, t) {
1674
1674
  var n = Le;
1675
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);
1676
+ this.#q.set(n, e), z && (this.anchor = U), this.#V(n);
1677
1677
  }
1678
1678
  };
1679
1679
  function ir(e, t, ...n) {
@@ -1690,16 +1690,16 @@ function or(e) {
1690
1690
  b: [],
1691
1691
  m: []
1692
1692
  }).m.push(e) : xt(() => {
1693
- const t = On(e);
1693
+ const t = Sn(e);
1694
1694
  if ("function" == typeof t) return t;
1695
1695
  });
1696
1696
  }
1697
1697
  function sr(e, t, n = !1) {
1698
1698
  var r;
1699
- U && (r = z, K());
1699
+ z && (r = U, K());
1700
1700
  var i = new rr(e);
1701
1701
  function o(e, t) {
1702
- if (U) {
1702
+ if (z) {
1703
1703
  var n = Y(r);
1704
1704
  if (e !== parseInt(n.substring(1))) {
1705
1705
  var o = W();
@@ -1724,16 +1724,16 @@ function ar(e, t, n = !0) {
1724
1724
  }
1725
1725
  for (var i = 0; i < t.length; i++) {
1726
1726
  var o = t[i];
1727
- r?.has(o) ? (o.f |= O, Wt(o, document.createDocumentFragment())) : zt(t[i], n);
1727
+ r?.has(o) ? (o.f |= S, Wt(o, document.createDocumentFragment())) : Ut(t[i], n);
1728
1728
  }
1729
1729
  }
1730
1730
  function lr(e, t, r, i, s, a = null) {
1731
1731
  var l = e, u = /* @__PURE__ */ new Map();
1732
1732
  if (4 & t) {
1733
1733
  var c = e;
1734
- l = U ? q(mt(c)) : c.appendChild(gt());
1734
+ l = z ? q(mt(c)) : c.appendChild(gt());
1735
1735
  }
1736
- U && K();
1736
+ z && K();
1737
1737
  var f, d = null, p = Ce(() => {
1738
1738
  var e = r();
1739
1739
  return n(e) ? e : null == e ? [] : o(e);
@@ -1746,7 +1746,7 @@ function lr(e, t, r, i, s, a = null) {
1746
1746
  for (c = 0; c < d; c += 1) {
1747
1747
  if (l = i(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
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) {
1749
+ if (u.f ^= S, u !== h) {
1750
1750
  var _ = v ? v.next : h;
1751
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
1752
  continue;
@@ -1778,12 +1778,12 @@ function lr(e, t, r, i, s, a = null) {
1778
1778
  var E = [];
1779
1779
  if (void 0 !== s) for (u of s) 8192 & u.f || E.push(u);
1780
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) {
1781
+ var O = E.length;
1782
+ if (O > 0) {
1783
1783
  var C = 4 & r && 0 === d ? n : null;
1784
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();
1785
+ for (c = 0; c < O; c += 1) E[c].nodes?.a?.measure();
1786
+ for (c = 0; c < O; c += 1) E[c].nodes?.a?.fix();
1787
1787
  }
1788
1788
  (function(e, t, n) {
1789
1789
  for (var r, i = t.length, s = t.length, a = 0; a < i; a++) {
@@ -1814,7 +1814,7 @@ function lr(e, t, r, i, s, a = null) {
1814
1814
  f && le(() => {
1815
1815
  if (void 0 !== a) for (u of a) u.nodes?.a?.apply();
1816
1816
  });
1817
- }(m, f, l, t, i), null !== d && (0 === f.length ? 33554432 & d.f ? (d.f ^= O, fr(d, null, l)) : Gt(d) : qt(d, () => {
1817
+ }(m, f, l, t, i), null !== d && (0 === f.length ? 33554432 & d.f ? (d.f ^= S, fr(d, null, l)) : Gt(d) : qt(d, () => {
1818
1818
  d = null;
1819
1819
  })));
1820
1820
  }
@@ -1822,13 +1822,13 @@ function lr(e, t, r, i, s, a = null) {
1822
1822
  effect: $t(() => {
1823
1823
  var e = (f = wn(p)).length;
1824
1824
  let n = !1;
1825
- U && "[!" === Y(l) != (0 === e) && (q(l = W()), V(!1), n = !0);
1825
+ z && "[!" === Y(l) != (0 === e) && (q(l = W()), V(!1), n = !0);
1826
1826
  for (var o = /* @__PURE__ */ new Set(), c = Le, m = 0; m < e; m += 1) {
1827
- U && 8 === z.nodeType && "]" === z.data && (l = z, n = !0, V(!1));
1827
+ z && 8 === U.nodeType && "]" === U.data && (l = U, n = !0, V(!1));
1828
1828
  var _ = f[m], b = i(_, m), y = v ? null : u.get(b);
1829
- y ? (y.v && it(y.v, _), y.i && it(y.i, m)) : (y = cr(u, v ? l : nr ??= gt(), _, b, m, s, t, r), v || (y.e.f |= O), u.set(b, y)), o.add(b);
1829
+ y ? (y.v && it(y.v, _), y.i && it(y.i, m)) : (y = cr(u, v ? l : nr ??= gt(), _, b, m, s, t, r), v || (y.e.f |= S), u.set(b, y)), o.add(b);
1830
1830
  }
1831
- 0 === e && a && !d && (v ? d = Ht(() => a(l)) : (d = Ht(() => a(nr ??= gt()))).f |= O), e > o.size && j(), U && e > 0 && q(W()), v || (h.set(c, o), g(c)), n && V(!0), wn(p);
1831
+ 0 === e && a && !d && (v ? d = Ht(() => a(l)) : (d = Ht(() => a(nr ??= gt()))).f |= S), e > o.size && j(), z && e > 0 && q(W()), v || (h.set(c, o), g(c)), n && V(!0), wn(p);
1832
1832
  }),
1833
1833
  flags: t,
1834
1834
  items: u,
@@ -1836,7 +1836,7 @@ function lr(e, t, r, i, s, a = null) {
1836
1836
  outrogroups: null,
1837
1837
  fallback: d
1838
1838
  };
1839
- v = !1, U && (l = z);
1839
+ v = !1, z && (l = U);
1840
1840
  }
1841
1841
  function ur(e) {
1842
1842
  for (; null !== e && !(32 & e.f);) e = e.next;
@@ -1866,18 +1866,18 @@ function pr(t, n, r = !1, i = !1, o = !1, s = !1) {
1866
1866
  var a = t, l = "";
1867
1867
  if (r) {
1868
1868
  var u = t;
1869
- U && (a = q(mt(u)));
1869
+ z && (a = q(mt(u)));
1870
1870
  }
1871
1871
  It(() => {
1872
1872
  var t = rn;
1873
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;
1874
+ if (r && !z) return t.nodes = null, u.innerHTML = l, void ("" !== l && Mn(mt(u), u.lastChild));
1875
+ if (null !== t.nodes && (zt(t.nodes.start, t.nodes.end), t.nodes = null), "" !== l) {
1876
+ if (z) {
1877
+ U.data;
1878
1878
  for (var s = K(), c = s; null !== s && (8 !== s.nodeType || "" !== s.data);) c = s, s = _t(s);
1879
1879
  if (null === s) throw F(), e;
1880
- Mn(z, c), a = q(s);
1880
+ Mn(U, c), a = q(s);
1881
1881
  return;
1882
1882
  }
1883
1883
  var f = Et(i ? "svg" : o ? "math" : "template", i ? "http://www.w3.org/2000/svg" : o ? "http://www.w3.org/1998/Math/MathML" : void 0);
@@ -1886,13 +1886,13 @@ function pr(t, n, r = !1, i = !1, o = !1, s = !1) {
1886
1886
  if (Mn(mt(d), d.lastChild), i || o) for (; mt(d);) a.before(mt(d));
1887
1887
  else a.before(d);
1888
1888
  }
1889
- } else U && K();
1889
+ } else z && K();
1890
1890
  });
1891
1891
  }
1892
1892
  function hr(e, t) {
1893
1893
  var n, r = void 0;
1894
1894
  Bt(() => {
1895
- r !== (r = t()) && (n && (zt(n), n = null), r && (n = Ht(() => {
1895
+ r !== (r = t()) && (n && (Ut(n), n = null), r && (n = Ht(() => {
1896
1896
  Rt(() => r(e));
1897
1897
  })));
1898
1898
  });
@@ -1926,7 +1926,7 @@ function br(e) {
1926
1926
  }
1927
1927
  function yr(e, t, n, r, i, o) {
1928
1928
  var s = e[L];
1929
- if (U || s !== n || void 0 === s) {
1929
+ if (z || s !== n || void 0 === s) {
1930
1930
  var a = function(e, t, n) {
1931
1931
  var r = null == e ? "" : "" + e;
1932
1932
  if (t && (r = r ? r + " " + t : t), n) {
@@ -1938,7 +1938,7 @@ function yr(e, t, n, r, i, o) {
1938
1938
  }
1939
1939
  return "" === r ? null : r;
1940
1940
  }(n, r, o);
1941
- U && a === e.getAttribute("class") || (null == a ? e.removeAttribute("class") : t ? e.className = a : e.setAttribute("class", a)), e[L] = n;
1941
+ z && a === e.getAttribute("class") || (null == a ? e.removeAttribute("class") : t ? e.className = a : e.setAttribute("class", a)), e[L] = n;
1942
1942
  } else if (o && i !== o) for (var l in o) {
1943
1943
  var u = !!o[l];
1944
1944
  null != i && u === !!i[l] || e.classList.toggle(l, u);
@@ -1953,7 +1953,7 @@ function Tr(e, t = {}, n, r) {
1953
1953
  }
1954
1954
  function wr(e, t, n, r) {
1955
1955
  var i = e[R];
1956
- if (U || i !== t) {
1956
+ if (z || i !== t) {
1957
1957
  var o = function(e, t) {
1958
1958
  if (t) {
1959
1959
  var n, r, i = "";
@@ -1981,7 +1981,7 @@ function wr(e, t, n, r) {
1981
1981
  }
1982
1982
  return null == e ? null : String(e);
1983
1983
  }(t, r);
1984
- U && o === e.getAttribute("style") || (null == o ? e.removeAttribute("style") : e.style.cssText = o), e[R] = t;
1984
+ z && o === e.getAttribute("style") || (null == o ? e.removeAttribute("style") : e.style.cssText = o), e[R] = t;
1985
1985
  } else r && (Array.isArray(r) ? (Tr(e, n?.[0], r[0]), Tr(e, n?.[1], r[1], "important")) : Tr(e, n, r));
1986
1986
  return r;
1987
1987
  }
@@ -1989,18 +1989,18 @@ function Er(e, t, r = !1) {
1989
1989
  if (e.multiple) {
1990
1990
  if (null == t) return;
1991
1991
  if (!n(t)) return void console.warn("https://svelte.dev/e/select_multiple_invalid_value");
1992
- for (var i of e.options) i.selected = t.includes(Sr(i));
1992
+ for (var i of e.options) i.selected = t.includes(Or(i));
1993
1993
  } else {
1994
- for (i of e.options) if (ct(Sr(i), t)) return void (i.selected = !0);
1994
+ for (i of e.options) if (ct(Or(i), t)) return void (i.selected = !0);
1995
1995
  r && void 0 === t || (e.selectedIndex = -1);
1996
1996
  }
1997
1997
  }
1998
- function Sr(e) {
1998
+ function Or(e) {
1999
1999
  return "__value" in e ? e.__value : e.value;
2000
2000
  }
2001
- var Or = Symbol("class"), Cr = Symbol("style"), Nr = Symbol("is custom element"), kr = Symbol("is html"), Pr = B ? "link" : "LINK", Ar = B ? "input" : "INPUT", Dr = B ? "option" : "OPTION", xr = B ? "select" : "SELECT";
2001
+ var Sr = Symbol("class"), Cr = Symbol("style"), Nr = Symbol("is custom element"), kr = Symbol("is html"), Pr = B ? "link" : "LINK", Ar = B ? "input" : "INPUT", Dr = B ? "option" : "OPTION", xr = B ? "select" : "SELECT";
2002
2002
  function Lr(e) {
2003
- if (U) {
2003
+ if (z) {
2004
2004
  var t = !1, n = () => {
2005
2005
  if (!t) {
2006
2006
  if (t = !0, e.hasAttribute("value")) {
@@ -2025,23 +2025,23 @@ function Rr(e, t) {
2025
2025
  }
2026
2026
  function Mr(e, t, n, r) {
2027
2027
  var i = $r(e);
2028
- U && (i[t] = e.getAttribute(t), "src" === t || "srcset" === t || "href" === t && e.nodeName === Pr) || i[t] !== (i[t] = n) && ("loading" === t && (e[D] = n), null == n ? e.removeAttribute(t) : "string" != typeof n && Hr(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
2028
+ z && (i[t] = e.getAttribute(t), "src" === t || "srcset" === t || "href" === t && e.nodeName === Pr) || i[t] !== (i[t] = n) && ("loading" === t && (e[D] = n), null == n ? e.removeAttribute(t) : "string" != typeof n && Hr(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
2029
2029
  }
2030
2030
  function Ir(e, n, r = [], i = [], o = [], s, a = !1, l = !1) {
2031
2031
  be(o, r, i, (r) => {
2032
2032
  var i = void 0, o = {}, u = e.nodeName === xr, c = !1;
2033
2033
  if (Bt(() => {
2034
2034
  var f = n(...r.map(wn)), d = function(e, n, r, i, o = !1) {
2035
- if (U && o && e.nodeName === Ar) {
2035
+ if (z && o && e.nodeName === Ar) {
2036
2036
  var s = e;
2037
2037
  ("checkbox" === s.type ? "defaultChecked" : "defaultValue") in r || Lr(s);
2038
2038
  }
2039
2039
  var a = $r(e), l = a[Nr], u = !a[kr];
2040
- let c = U && l;
2040
+ let c = z && l;
2041
2041
  c && V(!1);
2042
2042
  var f = n || {}, d = e.nodeName === Dr;
2043
2043
  for (var p in n) p in r || (r[p] = null);
2044
- r.class ? r.class = gr(r.class) : (i || r[Or]) && (r.class = null), r[Cr] && (r.style ??= null);
2044
+ r.class ? r.class = gr(r.class) : (i || r[Sr]) && (r.class = null), r[Cr] && (r.style ??= null);
2045
2045
  var h = Hr(e);
2046
2046
  if (e.nodeName === Ar && "type" in r && ("value" in r || "__value" in r)) {
2047
2047
  var v = r.type;
@@ -2056,22 +2056,22 @@ function Ir(e, n, r = [], i = [], o = [], s, a = !1, l = !1) {
2056
2056
  f[T] = w;
2057
2057
  var m = T[0] + T[1];
2058
2058
  if ("$$" !== m) if ("on" === m) {
2059
- const E = {}, S = "$$" + T;
2060
- let O = T.slice(2);
2061
- var _ = Vn(O);
2062
- if (zn(O) && (O = O.slice(0, -7), E.capture = !0), !_ && g) {
2059
+ const E = {}, O = "$$" + T;
2060
+ let S = T.slice(2);
2061
+ var _ = Vn(S);
2062
+ if (Un(S) && (S = S.slice(0, -7), E.capture = !0), !_ && g) {
2063
2063
  if (null != w) continue;
2064
- e.removeEventListener(O, f[S], E), f[S] = null;
2064
+ e.removeEventListener(S, f[O], E), f[O] = null;
2065
2065
  }
2066
- if (_) An(O, e, w), Dn([O]);
2066
+ if (_) An(S, e, w), Dn([S]);
2067
2067
  else if (null != w) {
2068
2068
  function C(e) {
2069
2069
  f[T].call(this, e);
2070
2070
  }
2071
- f[S] = Pn(O, e, C, E);
2071
+ f[O] = Pn(S, e, C, E);
2072
2072
  }
2073
2073
  } else if ("style" === T) Mr(e, T, w);
2074
- else if ("autofocus" === T) Ot(e, Boolean(w));
2074
+ else if ("autofocus" === T) St(e, Boolean(w));
2075
2075
  else if (l || "__value" !== T && ("value" !== T || null == w)) if ("selected" === T && d) Rr(e, w);
2076
2076
  else {
2077
2077
  var b = T;
@@ -2093,15 +2093,15 @@ function Ir(e, n, r = [], i = [], o = [], s, a = !1, l = !1) {
2093
2093
  else e.value = e.__value = w;
2094
2094
  }
2095
2095
  } else wr(e, w, n?.[Cr], r[Cr]), f[T] = w, f[Cr] = r[Cr];
2096
- else yr(e, "http://www.w3.org/1999/xhtml" === e.namespaceURI, w, i, n?.[Or], r[Or]), f[T] = w, f[Or] = r[Or];
2096
+ else yr(e, "http://www.w3.org/1999/xhtml" === e.namespaceURI, w, i, n?.[Sr], r[Sr]), f[T] = w, f[Sr] = r[Sr];
2097
2097
  }
2098
2098
  return c && V(!0), f;
2099
2099
  }(e, i, f, s, a, l);
2100
2100
  c && u && "value" in f && Er(e, f.value);
2101
- for (let e of Object.getOwnPropertySymbols(o)) f[e] || zt(o[e]);
2101
+ for (let e of Object.getOwnPropertySymbols(o)) f[e] || Ut(o[e]);
2102
2102
  for (let t of Object.getOwnPropertySymbols(f)) {
2103
2103
  var p = f[t];
2104
- "@attach" !== t.description || i && p === i[t] || (o[t] && zt(o[t]), o[t] = Ht(() => hr(e, () => p))), d[t] = p;
2104
+ "@attach" !== t.description || i && p === i[t] || (o[t] && Ut(o[t]), o[t] = Ht(() => hr(e, () => p))), d[t] = p;
2105
2105
  }
2106
2106
  i = d;
2107
2107
  }), u) {
@@ -2150,7 +2150,7 @@ function Fr(e = {}, t, n, r) {
2150
2150
  return Rt(() => {
2151
2151
  var s, a;
2152
2152
  return Mt(() => {
2153
- s = a, a = r?.() || [], On(() => {
2153
+ s = a, a = r?.() || [], Sn(() => {
2154
2154
  jr(n(...a), e) || (t(e, ...a), s && jr(n(...s), e) && t(null, ...s));
2155
2155
  });
2156
2156
  }), () => {
@@ -2163,7 +2163,7 @@ function Fr(e = {}, t, n, r) {
2163
2163
  };
2164
2164
  }), e;
2165
2165
  }
2166
- var zr = {
2166
+ var Ur = {
2167
2167
  get(e, t) {
2168
2168
  if (!e.exclude.has(t)) return e.props[t];
2169
2169
  },
@@ -2178,7 +2178,7 @@ var zr = {
2178
2178
  has: (e, t) => !e.exclude.has(t) && t in e.props,
2179
2179
  ownKeys: (e) => Reflect.ownKeys(e.props).filter((t) => !e.exclude.has(t))
2180
2180
  };
2181
- var Ur = {
2181
+ var zr = {
2182
2182
  get(e, t) {
2183
2183
  let n = e.props.length;
2184
2184
  for (; n--;) {
@@ -2221,10 +2221,10 @@ var Ur = {
2221
2221
  }
2222
2222
  };
2223
2223
  function Vr(...e) {
2224
- return new Proxy({ props: e }, Ur);
2224
+ return new Proxy({ props: e }, zr);
2225
2225
  }
2226
2226
  function qr(e, t, n, r) {
2227
- var i = !Q || !!(2 & n), o = !!(8 & n), s = !!(16 & n), a = r, u = !0, c = void 0, f = () => s && i ? (c ??= we(r), wn(c)) : (u && (u = !1, a = s ? On(r) : r), a);
2227
+ var i = !Q || !!(2 & n), o = !!(8 & n), s = !!(16 & n), a = r, u = !0, c = void 0, f = () => s && i ? (c ??= we(r), wn(c)) : (u && (u = !1, a = s ? Sn(r) : r), a);
2228
2228
  let d;
2229
2229
  if (o) {
2230
2230
  var p = P in e || A in e;
@@ -2276,7 +2276,7 @@ var [Xr, Wr] = function() {
2276
2276
  return oe("setContext").set(e, t), t;
2277
2277
  }(e, t)];
2278
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;
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_TOUR_ERROR = "tour:error", 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
2280
  }({});
2281
2281
  function Zr() {
2282
2282
  const e = /* @__PURE__ */ new Map();
@@ -2310,7 +2310,7 @@ function Zr() {
2310
2310
  }
2311
2311
  function Jr({ getIsHidden: e, getIsAnimated: t, classNames: n }) {
2312
2312
  let r = tt(!1), i = tt(!1);
2313
- const o = Oe(t), s = Oe(e), a = Oe(() => wn(o) && !wn(s) && wn(i)), l = Oe(() => wn(o) && wn(s) && wn(r)), u = Oe(function() {
2313
+ const o = Se(t), s = Se(e), a = Se(() => wn(o) && !wn(s) && wn(i)), l = Se(() => wn(o) && wn(s) && wn(r)), u = Se(function() {
2314
2314
  return [
2315
2315
  wn(s) && !wn(l) && n.hidden,
2316
2316
  wn(a) && n.in,
@@ -2512,7 +2512,7 @@ function yi({ getTargetElement: e, getBorderRadius: t, getPadding: n, getIsAnima
2512
2512
  }), xt(() => {
2513
2513
  h.width, h.height, v.x, v.y, g();
2514
2514
  });
2515
- const m = Oe(() => e() ? `M 0 0 H ${wn(i)} V ${wn(o)} H 0 Z ${function(e, t, n, r, i) {
2515
+ const m = Se(() => e() ? `M 0 0 H ${wn(i)} V ${wn(o)} H 0 Z ${function(e, t, n, r, i) {
2516
2516
  const o = Math.min(i, n / 2, r / 2);
2517
2517
  return [
2518
2518
  `M ${e + o} ${t}`,
@@ -2547,7 +2547,7 @@ var wi = function(e) {
2547
2547
  return e.DURING_SCROLL = "during-scroll", e.AFTER_SCROLL = "after-scroll", e;
2548
2548
  }({}), Ei = function(e) {
2549
2549
  return e.FADE = "fade", e.GLIDE = "glide", e;
2550
- }({}), Si = {
2550
+ }({}), Oi = {
2551
2551
  enter: ui.FADE,
2552
2552
  exit: ui.FADE,
2553
2553
  enterDuration: 200,
@@ -2555,16 +2555,16 @@ var wi = function(e) {
2555
2555
  easing: "ease-out",
2556
2556
  appearance: wi.AFTER_SCROLL,
2557
2557
  transition: Ei.FADE
2558
- }, Oi = {
2558
+ }, Si = {
2559
2559
  transitionDuration: 350,
2560
2560
  easing: "ease-in-out"
2561
2561
  };
2562
2562
  function Ci(e) {
2563
- const t = Oe(() => e.getConfig().animation), n = Oe(() => wn(t) ? wn(t) : {}), r = Oe(() => !1 !== wn(t) && !1 !== wn(n).isEnabled), i = Oe(() => ({
2564
- ...Si,
2565
- ...wn(n).tooltip ?? {}
2566
- })), o = Oe(() => ({
2563
+ const t = Se(() => e.getConfig().animation), n = Se(() => wn(t) ? wn(t) : {}), r = Se(() => !1 !== wn(t) && !1 !== wn(n).isEnabled), i = Se(() => ({
2567
2564
  ...Oi,
2565
+ ...wn(n).tooltip ?? {}
2566
+ })), o = Se(() => ({
2567
+ ...Si,
2568
2568
  ...wn(n).overlay ?? {}
2569
2569
  }));
2570
2570
  return {
@@ -2591,9 +2591,16 @@ function Ci(e) {
2591
2591
  };
2592
2592
  }
2593
2593
  function Ni(e) {
2594
+ try {
2595
+ return document.querySelector(e);
2596
+ } catch {
2597
+ return null;
2598
+ }
2599
+ }
2600
+ function ki(e) {
2594
2601
  if (!e) return null;
2595
2602
  if (e instanceof HTMLElement) return e;
2596
- if ("string" == typeof e) return document.querySelector(e);
2603
+ if ("string" == typeof e) return Ni(e);
2597
2604
  const t = function(e) {
2598
2605
  const t = [];
2599
2606
  if (e.id && t.push(`#${CSS.escape(e.id)}`), e.class && t.push(`.${CSS.escape(e.class)}`), e.data) {
@@ -2602,22 +2609,27 @@ function Ni(e) {
2602
2609
  }
2603
2610
  return t.join("");
2604
2611
  }(e);
2605
- return t ? document.querySelector(t) : null;
2612
+ return t ? Ni(t) : null;
2606
2613
  }
2607
- function ki(e, t) {
2614
+ function Pi(e, t) {
2608
2615
  let n = tt(0), r = tt(!1), i = null, o = 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(() => Ni(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) {
2616
+ const s = Se(() => e.current.steps ?? []), a = Se(() => wn(s).length), l = Se(() => wn(s)[wn(n)]), u = Se(() => wn(n) + 1), c = Se(() => ki(wn(l)?.target)), f = Se(() => wn(n) >= wn(a) - 1), d = Se(() => wn(a) > 0), p = Se(() => !wn(f)), h = Se(() => wn(n) > 0), v = Se(() => e.getConfig().tour);
2617
+ function g() {
2618
+ if (!wn(l) || wn(c)) return !0;
2619
+ const e = new pi(`Borda: target for step ${wn(u)} did not resolve to an element.`);
2620
+ return console.error(e), t.emit(Yr.ON_TOUR_ERROR, e), t.emit(Yr.ON_TOUR_CLOSE), !1;
2621
+ }
2622
+ async function m(e) {
2611
2623
  if (e < 0 || e >= wn(a)) return;
2612
2624
  const r = wn(s)[wn(n)], i = wn(s)[e];
2613
- r?.onDeselected?.(), await i?.prepareElement?.(), i?.onBeforeHighlighted?.(), rt(n, e, !0), i?.onHighlighted?.(), t.emit(Yr.ON_TOUR_STEP_CHANGE, wn(u));
2625
+ r?.onDeselected?.(), await i?.prepareElement?.(), i?.onBeforeHighlighted?.(), rt(n, e, !0), g() && (i?.onHighlighted?.(), t.emit(Yr.ON_TOUR_STEP_CHANGE, wn(u)));
2614
2626
  }
2615
- function m() {
2627
+ function _() {
2616
2628
  return new Promise((e, t) => {
2617
2629
  i = e, o = t;
2618
2630
  });
2619
2631
  }
2620
- function _() {
2632
+ function b() {
2621
2633
  t.emit(Yr.ON_TOUR_FINISH);
2622
2634
  }
2623
2635
  return {
@@ -2661,33 +2673,34 @@ function ki(e, t) {
2661
2673
  clearMovePrevented: function() {
2662
2674
  rt(r, !1), o?.(), i = null, o = null;
2663
2675
  },
2664
- changeStep: g,
2676
+ changeStep: m,
2665
2677
  prev: async function() {
2666
2678
  if (wn(h)) {
2667
2679
  if (wn(l)?.onPrev?.(), wn(v)?.onPrev?.(), t.emit(Yr.ON_TOUR_PREV), wn(r)) try {
2668
- await m();
2680
+ await _();
2669
2681
  } catch {
2670
2682
  return;
2671
2683
  }
2672
- await g(wn(n) - 1);
2684
+ await m(wn(n) - 1);
2673
2685
  }
2674
2686
  },
2675
2687
  next: async function() {
2676
- if (wn(f)) _();
2688
+ if (wn(f)) b();
2677
2689
  else {
2678
2690
  if (wn(l)?.onNext?.(), wn(v)?.onNext?.(), t.emit(Yr.ON_TOUR_NEXT), wn(r)) try {
2679
- await m();
2691
+ await _();
2680
2692
  } catch {
2681
2693
  return;
2682
2694
  }
2683
- await g(wn(n) + 1);
2695
+ await m(wn(n) + 1);
2684
2696
  }
2685
2697
  },
2686
- finish: _
2687
- }
2698
+ finish: b
2699
+ },
2700
+ checkCurrentTarget: g
2688
2701
  };
2689
2702
  }
2690
- function Pi(e) {
2703
+ function Ai(e) {
2691
2704
  return { highlight: function(t, n, r) {
2692
2705
  return e({
2693
2706
  ...n,
@@ -2695,15 +2708,15 @@ function Pi(e) {
2695
2708
  }, r);
2696
2709
  } };
2697
2710
  }
2698
- var Ai = new Set([
2711
+ var Di = new Set([
2699
2712
  "INPUT",
2700
2713
  "TEXTAREA",
2701
2714
  "SELECT"
2702
2715
  ]);
2703
- function Di(e, t) {
2704
- const n = Oe(() => e.getConfig().tour);
2716
+ function xi(e, t) {
2717
+ const n = Se(() => e.getConfig().tour);
2705
2718
  function r(e) {
2706
- if (!Ai.has(e.target?.tagName)) switch (e.key) {
2719
+ if (!Di.has(e.target?.tagName)) switch (e.key) {
2707
2720
  case "ArrowRight":
2708
2721
  e.preventDefault(), t.emit(Yr.ON_KEYBOARD_NEXT);
2709
2722
  break;
@@ -2722,21 +2735,21 @@ function Di(e, t) {
2722
2735
  }
2723
2736
  };
2724
2737
  }
2725
- var xi = [ci.RESPONSIVE, ci.STEP];
2726
- function Li(e) {
2738
+ var Li = [ci.RESPONSIVE, ci.STEP];
2739
+ function Ri(e) {
2727
2740
  const t = lt({});
2728
2741
  function n(e, n) {
2729
2742
  null === n ? delete t[e] : t[e] = n;
2730
2743
  }
2731
2744
  function r() {
2732
2745
  let n = e.current;
2733
- for (const e of xi) {
2746
+ for (const e of Li) {
2734
2747
  const r = t[e];
2735
2748
  r && (n = gi(n, r()));
2736
2749
  }
2737
2750
  return n;
2738
2751
  }
2739
- const i = Oe(r);
2752
+ const i = Se(r);
2740
2753
  return {
2741
2754
  get resolved() {
2742
2755
  return wn(i);
@@ -2766,7 +2779,7 @@ function Li(e) {
2766
2779
  }
2767
2780
  };
2768
2781
  }
2769
- function Ri(e, t) {
2782
+ function Mi(e, t) {
2770
2783
  let n = tt(null), r = [];
2771
2784
  function i(e, r) {
2772
2785
  const i = function(e, t) {
@@ -2802,47 +2815,47 @@ function Ri(e, t) {
2802
2815
  }
2803
2816
  };
2804
2817
  }
2805
- var Mi = function(e) {
2818
+ var Ii = function(e) {
2806
2819
  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
- }({}), Ii = {
2808
- [Mi.LINEAR]: (e) => e,
2809
- [Mi.EASE]: (e) => e * e * (3 - 2 * e),
2810
- [Mi.EASE_IN]: (e) => e * e,
2811
- [Mi.EASE_OUT]: (e) => 1 - (1 - e) * (1 - e),
2812
- [Mi.EASE_IN_OUT]: (e) => e < .5 ? 2 * e * e : 1 - Math.pow(-2 * e + 2, 2) / 2
2813
- }, $i = Mi.EASE_IN_OUT;
2814
- function Bi({ getEasing: e }) {
2815
- const t = Oe(e), n = Oe(() => function(e) {
2816
- return "function" == typeof e ? e : e ? Ii[e] : Ii[$i];
2820
+ }({}), $i = {
2821
+ [Ii.LINEAR]: (e) => e,
2822
+ [Ii.EASE]: (e) => e * e * (3 - 2 * e),
2823
+ [Ii.EASE_IN]: (e) => e * e,
2824
+ [Ii.EASE_OUT]: (e) => 1 - (1 - e) * (1 - e),
2825
+ [Ii.EASE_IN_OUT]: (e) => e < .5 ? 2 * e * e : 1 - Math.pow(-2 * e + 2, 2) / 2
2826
+ }, Bi = Ii.EASE_IN_OUT;
2827
+ function Hi({ getEasing: e }) {
2828
+ const t = Se(e), n = Se(() => function(e) {
2829
+ return "function" == typeof e ? e : e ? $i[e] : $i[Bi];
2817
2830
  }(wn(t)));
2818
2831
  return { get easingFunction() {
2819
2832
  return wn(n);
2820
2833
  } };
2821
2834
  }
2822
- var Hi = {
2835
+ var ji = {
2823
2836
  block: "center",
2824
2837
  inline: "nearest",
2825
2838
  duration: 400,
2826
- easing: Mi.EASE_IN_OUT,
2839
+ easing: Ii.EASE_IN_OUT,
2827
2840
  offset: {
2828
2841
  x: 0,
2829
2842
  y: 0
2830
2843
  },
2831
2844
  isLocked: !0
2832
2845
  };
2833
- function ji(e) {
2846
+ function Fi(e) {
2834
2847
  let t = tt(!1), n = null;
2835
- const r = Oe(() => e.getConfig().scroll), i = Oe(() => !1 !== wn(r)), o = Oe(() => wn(r) || {}), s = Oe(() => {
2848
+ const r = Se(() => e.getConfig().scroll), i = Se(() => !1 !== wn(r)), o = Se(() => wn(r) || {}), s = Se(() => {
2836
2849
  return e = wn(o), {
2837
- ...Hi,
2850
+ ...ji,
2838
2851
  ...e,
2839
2852
  offset: {
2840
- ...Hi.offset,
2853
+ ...ji.offset,
2841
2854
  ...e.offset ?? {}
2842
2855
  }
2843
2856
  };
2844
2857
  var e;
2845
- }), a = Bi({ 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, i) {
2858
+ }), a = Hi({ getEasing: () => wn(s).easing }), l = Se(() => e.getConfig().animation), u = Se(() => !1 !== wn(l) && !1 !== wn(l)?.isEnabled), c = Se(() => wn(u) ? wn(s).duration : 0), f = { resolve: function(e, t, n, r, i) {
2846
2859
  return e + function(e, t, n, r) {
2847
2860
  const i = t + n;
2848
2861
  switch (r) {
@@ -2856,7 +2869,7 @@ function ji(e) {
2856
2869
  if (!di) return !1;
2857
2870
  const t = e.getBoundingClientRect();
2858
2871
  return t.top >= 0 && t.bottom <= window.innerHeight && t.left >= 0 && t.right <= window.innerWidth;
2859
- } }, p = Oe(() => wn(i) && wn(s).isLocked);
2872
+ } }, p = Se(() => wn(i) && wn(s).isLocked);
2860
2873
  function h() {
2861
2874
  n?.cancel(), n = null;
2862
2875
  }
@@ -2909,9 +2922,9 @@ function ji(e) {
2909
2922
  }
2910
2923
  };
2911
2924
  }
2912
- function Fi(e, t) {
2925
+ function Ui(e, t) {
2913
2926
  let n = tt(!1);
2914
- const r = Oe(() => e.getConfig().skip), i = Oe(() => !1 === wn(r)), o = Oe(() => "object" == typeof wn(r) && wn(r)?.storageKey ? wn(r).storageKey : "borda-tour-skipped");
2927
+ const r = Se(() => e.getConfig().skip), i = Se(() => !1 === wn(r)), o = Se(() => "object" == typeof wn(r) && wn(r)?.storageKey ? wn(r).storageKey : "borda-tour-skipped");
2915
2928
  function s(e, t) {
2916
2929
  try {
2917
2930
  t ? globalThis.localStorage?.setItem(e, "true") : globalThis.localStorage?.removeItem(e);
@@ -2977,14 +2990,14 @@ function zi(e, t) {
2977
2990
  };
2978
2991
  }
2979
2992
  Q = !0;
2980
- var Ui = Bn("<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 Vi = function(e) {
2993
+ var Vi = Bn("<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);
2994
+ var qi = function(e) {
2982
2995
  return e.RECTANGLE = "rectangle", e.CIRCLE = "circle", e.SQUARE = "square", e;
2983
- }({}), qi = function(e) {
2984
- return e.FILLED = "filled", e.OUTLINED = "outlined", e.GHOST = "ghost", e.TEXT = "text", e;
2985
2996
  }({}), Ki = function(e) {
2997
+ return e.FILLED = "filled", e.OUTLINED = "outlined", e.GHOST = "ghost", e.TEXT = "text", e;
2998
+ }({}), Gi = function(e) {
2986
2999
  return e.BUTTON = "button", e.SUBMIT = "submit", e.RESET = "reset", e;
2987
- }({}), Gi = new Set([
3000
+ }({}), Xi = new Set([
2988
3001
  "$$slots",
2989
3002
  "$$events",
2990
3003
  "$$legacy",
@@ -2999,14 +3012,14 @@ var Vi = function(e) {
2999
3012
  "customClasses",
3000
3013
  "customStyles",
3001
3014
  "children"
3002
- ]), Xi = In("<button><!></button>");
3003
- function Wi(e, t) {
3015
+ ]), Wi = In("<button><!></button>");
3016
+ function Yi(e, t) {
3004
3017
  ne(t, !0);
3005
- let n = qr(t, "size", 19, () => ii.MD), r = qr(t, "shape", 19, () => Vi.RECTANGLE), i = qr(t, "variant", 19, () => qi.FILLED), o = qr(t, "type", 19, () => Ki.BUTTON), s = new Proxy({
3018
+ let n = qr(t, "size", 19, () => ii.MD), r = qr(t, "shape", 19, () => qi.RECTANGLE), i = qr(t, "variant", 19, () => Ki.FILLED), o = qr(t, "type", 19, () => Gi.BUTTON), s = new Proxy({
3006
3019
  props: t,
3007
- exclude: Gi
3008
- }, zr);
3009
- const a = Oe(() => [
3020
+ exclude: Xi
3021
+ }, Ur);
3022
+ const a = Se(() => [
3010
3023
  "rb-button",
3011
3024
  `rb-button--${r()}`,
3012
3025
  `rb-button--${i()}`,
@@ -3014,10 +3027,10 @@ function Wi(e, t) {
3014
3027
  t.customClasses?.root
3015
3028
  ]);
3016
3029
  let l = tt(null);
3017
- const u = Oe(() => ni(t.customStyles?.root));
3030
+ const u = Se(() => ni(t.customStyles?.root));
3018
3031
  var c = { getElements: function() {
3019
3032
  return { root: wn(l) };
3020
- } }, f = Xi();
3033
+ } }, f = Wi();
3021
3034
  Ir(f, () => ({
3022
3035
  id: t.id,
3023
3036
  type: o(),
@@ -3042,19 +3055,19 @@ function Wi(e, t) {
3042
3055
  t.children && e(p);
3043
3056
  }), G(f), Fr(f, (e) => rt(l, e), () => wn(l)), Fn(e, f), re(c);
3044
3057
  }
3045
- var Yi = Bn("<svg fill=\"none\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
3046
- var Zi = In("<div><!></div>");
3047
- function Ji(e, t) {
3058
+ var Zi = Bn("<svg fill=\"none\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
3059
+ var Ji = In("<div><!></div>");
3060
+ function Qi(e, t) {
3048
3061
  ne(t, !0);
3049
3062
  let n = qr(t, "size", 19, () => ii.MD), r = qr(t, "shape", 19, () => si.CIRCLE), i = qr(t, "aria", 19, () => ({ ariaLabel: "Close" }));
3050
3063
  const { eventEmitter: o, close: s } = Xr();
3051
3064
  let a = tt(null), l = tt(null), u = tt(null);
3052
- const c = Oe(() => [
3065
+ const c = Se(() => [
3053
3066
  "rb-close-button",
3054
3067
  `rb-close-button--${n()}`,
3055
3068
  `rb-close-button--${r()}`,
3056
3069
  t.customClasses?.root
3057
- ]), f = Oe(() => ni(t.customStyles?.root));
3070
+ ]), f = Se(() => ni(t.customStyles?.root));
3058
3071
  function d(e) {
3059
3072
  o.emit(Yr.ON_CLOSE_CLICK, e), t.onClose ? t.onClose(e) : s();
3060
3073
  }
@@ -3064,22 +3077,22 @@ function Ji(e, t) {
3064
3077
  button: ri(wn(l)),
3065
3078
  cross: ri(wn(u))
3066
3079
  };
3067
- } }, h = Zi(), g = bt(h), m = (e) => {
3080
+ } }, h = Ji(), g = bt(h), m = (e) => {
3068
3081
  var n = jn();
3069
3082
  pr(yt(n), () => t.customHtml.button), Fn(e, n);
3070
3083
  }, _ = (e) => {
3071
3084
  {
3072
- let r = Oe(() => ({ root: t.customClasses?.button })), o = Oe(() => ({ root: t.customStyles?.button }));
3073
- Fr(Wi(e, {
3085
+ let r = Se(() => ({ root: t.customClasses?.button })), o = Se(() => ({ root: t.customStyles?.button }));
3086
+ Fr(Yi(e, {
3074
3087
  get aria() {
3075
3088
  return i();
3076
3089
  },
3077
3090
  autosize: !0,
3078
3091
  get shape() {
3079
- return Vi.CIRCLE;
3092
+ return qi.CIRCLE;
3080
3093
  },
3081
3094
  get variant() {
3082
- return qi.FILLED;
3095
+ return Ki.FILLED;
3083
3096
  },
3084
3097
  get customClasses() {
3085
3098
  return wn(r);
@@ -3090,18 +3103,18 @@ function Ji(e, t) {
3090
3103
  onclick: d,
3091
3104
  children: (e, r) => {
3092
3105
  {
3093
- let r = Oe(() => ({ root: t.customClasses?.cross })), i = Oe(() => ({ root: t.customStyles?.cross }));
3106
+ let r = Se(() => ({ root: t.customClasses?.cross })), i = Se(() => ({ root: t.customStyles?.cross }));
3094
3107
  Fr(function(e, t) {
3095
3108
  ne(t, !0);
3096
3109
  let n = qr(t, "viewBox", 3, "0 0 16 16"), r = qr(t, "size", 19, () => ii.MD), i = tt(null);
3097
- const o = Oe(() => [
3110
+ const o = Se(() => [
3098
3111
  "rb-icon",
3099
3112
  `rb-icon--${r()}`,
3100
3113
  t.customClasses?.root
3101
- ]), s = Oe(() => ni(t.customStyles?.root));
3114
+ ]), s = Se(() => ni(t.customStyles?.root));
3102
3115
  var a = { getElements: function() {
3103
3116
  return { root: wn(i) };
3104
- } }, l = Yi();
3117
+ } }, l = Zi();
3105
3118
  return ir(bt(l), () => t.children ?? v), G(l), Fr(l, (e) => rt(i, e), () => wn(i)), It(() => {
3106
3119
  Mr(l, "id", t.id), yr(l, 0, gr(wn(o))), wr(l, wn(s)), Mr(l, "viewBox", n());
3107
3120
  }), Fn(e, l), re(a);
@@ -3117,7 +3130,7 @@ function Ji(e, t) {
3117
3130
  },
3118
3131
  children: (e, t) => {
3119
3132
  (function(e) {
3120
- var t = Ui();
3133
+ var t = Vi();
3121
3134
  X(2), Fn(e, t);
3122
3135
  })(e);
3123
3136
  },
@@ -3135,35 +3148,35 @@ function Ji(e, t) {
3135
3148
  Mr(h, "id", t.id), yr(h, 1, gr(wn(c))), wr(h, wn(f));
3136
3149
  }), Fn(e, h), re(p);
3137
3150
  }
3138
- var Qi = {
3151
+ var eo = {
3139
3152
  label: "Back",
3140
- type: Ki.BUTTON,
3141
- variant: qi.OUTLINED,
3142
- shape: Vi.RECTANGLE
3143
- }, eo = {
3144
- label: "Next",
3145
- type: Ki.BUTTON,
3146
- variant: qi.FILLED,
3147
- shape: Vi.RECTANGLE
3153
+ type: Gi.BUTTON,
3154
+ variant: Ki.OUTLINED,
3155
+ shape: qi.RECTANGLE
3148
3156
  }, to = {
3149
- label: "Finish",
3150
- type: Ki.BUTTON,
3151
- variant: qi.FILLED,
3152
- shape: Vi.RECTANGLE
3157
+ label: "Next",
3158
+ type: Gi.BUTTON,
3159
+ variant: Ki.FILLED,
3160
+ shape: qi.RECTANGLE
3153
3161
  }, no = {
3162
+ label: "Finish",
3163
+ type: Gi.BUTTON,
3164
+ variant: Ki.FILLED,
3165
+ shape: qi.RECTANGLE
3166
+ }, ro = {
3154
3167
  label: "Skip",
3155
- type: Ki.BUTTON,
3156
- variant: qi.TEXT,
3157
- shape: Vi.RECTANGLE
3158
- }, ro = In("<div><!> <div class=\"rb-tour-buttons__center\"><!></div> <!> <!></div>");
3159
- var io = In("<img/>");
3160
- var oo = function(e) {
3168
+ type: Gi.BUTTON,
3169
+ variant: Ki.TEXT,
3170
+ shape: qi.RECTANGLE
3171
+ }, io = In("<div><!> <div class=\"rb-tour-buttons__center\"><!></div> <!> <!></div>");
3172
+ var oo = In("<img/>");
3173
+ var so = function(e) {
3161
3174
  return e.DEFAULT = "default", e.BLEED = "bleed", e;
3162
3175
  }({});
3163
- function so(e, t) {
3176
+ function ao(e, t) {
3164
3177
  ne(t, !0);
3165
- let n = qr(t, "src", 3, ""), r = qr(t, "alt", 3, ""), i = qr(t, "variant", 19, () => oo.DEFAULT), o = tt(null);
3166
- const s = Oe(() => [
3178
+ let n = qr(t, "src", 3, ""), r = qr(t, "alt", 3, ""), i = qr(t, "variant", 19, () => so.DEFAULT), o = tt(null);
3179
+ const s = Se(() => [
3167
3180
  "rb-tour-image",
3168
3181
  `rb-tour-image--${i()}`,
3169
3182
  t.customClasses?.root
@@ -3172,18 +3185,18 @@ function so(e, t) {
3172
3185
  return { root: wn(o)?.getElements()?.root ?? null };
3173
3186
  } };
3174
3187
  {
3175
- let i = Oe(() => ({ root: wn(s) }));
3188
+ let i = Se(() => ({ root: wn(s) }));
3176
3189
  Fr(function(e, t) {
3177
3190
  ne(t, !0);
3178
3191
  let n = qr(t, "src", 3, ""), r = qr(t, "alt", 3, ""), i = tt(null);
3179
- const o = Oe(() => ["rb-image", t.customClasses?.root]), s = Oe(() => ni(t.customStyles?.root));
3192
+ const o = Se(() => ["rb-image", t.customClasses?.root]), s = Se(() => ni(t.customStyles?.root));
3180
3193
  var a = { getElements: function() {
3181
3194
  return { root: wn(i) };
3182
3195
  } }, l = jn(), u = yt(l), c = (e) => {
3183
3196
  var n = jn();
3184
3197
  pr(yt(n), () => t.customHtml.root), Fn(e, n);
3185
3198
  }, f = (e) => {
3186
- var a = io();
3199
+ var a = oo();
3187
3200
  Fr(a, (e) => rt(i, e), () => wn(i)), It(() => {
3188
3201
  Mr(a, "id", t.id), yr(a, 1, gr(wn(o))), 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
3202
  }), Fn(e, a);
@@ -3217,37 +3230,37 @@ function so(e, t) {
3217
3230
  }
3218
3231
  return re(a);
3219
3232
  }
3220
- var ao = In("<div></div>"), lo = In("<div role=\"progressbar\"></div>");
3221
- var uo = In("<div role=\"progressbar\"><div><div></div></div></div>");
3222
- var co = In("<div role=\"progressbar\"><span> </span></div>");
3223
- var fo = function(e) {
3233
+ var lo = In("<div></div>"), uo = In("<div role=\"progressbar\"></div>");
3234
+ var co = In("<div role=\"progressbar\"><div><div></div></div></div>");
3235
+ var fo = In("<div role=\"progressbar\"><span> </span></div>");
3236
+ var po = function(e) {
3224
3237
  return e.DOTS = "dots", e.TEXT = "text", e.LINE = "line", e;
3225
- }({}), po = In("<div><!></div>");
3226
- function ho(e, t) {
3238
+ }({}), ho = In("<div><!></div>");
3239
+ function vo(e, t) {
3227
3240
  ne(t, !0);
3228
- let n = qr(t, "currentStep", 3, 1), r = qr(t, "totalSteps", 3, 1), i = qr(t, "variant", 19, () => fo.DOTS), o = tt(null);
3229
- const s = Oe(() => [
3241
+ let n = qr(t, "currentStep", 3, 1), r = qr(t, "totalSteps", 3, 1), i = qr(t, "variant", 19, () => po.DOTS), o = tt(null);
3242
+ const s = Se(() => [
3230
3243
  "rb-tour-progress",
3231
3244
  `rb-tour-progress--${i()}`,
3232
3245
  t.customClasses?.root
3233
- ]), a = Oe(() => ni(t.customStyles?.root));
3246
+ ]), a = Se(() => ni(t.customStyles?.root));
3234
3247
  var l = { getElements: function() {
3235
3248
  return { root: wn(o) };
3236
- } }, u = po(), c = bt(u), f = (e) => {
3249
+ } }, u = ho(), c = bt(u), f = (e) => {
3237
3250
  var n = jn();
3238
3251
  pr(yt(n), () => t.customHtml.progress), Fn(e, n);
3239
3252
  }, d = (e) => {
3240
3253
  (function(e, t) {
3241
3254
  ne(t, !0);
3242
3255
  let n = qr(t, "current", 3, 1), r = qr(t, "total", 3, 1), i = qr(t, "aria", 19, () => ({ ariaLabel: "Progress" }));
3243
- const o = Oe(() => [
3256
+ const o = Se(() => [
3244
3257
  "rb-progress",
3245
3258
  "rb-progress--dots",
3246
3259
  t.customClasses?.root
3247
- ]), s = Oe(() => ni(t.customStyles?.root)), a = Oe(() => ["rb-progress__item", t.customClasses?.item]), l = Oe(() => ni(t.customStyles?.item));
3248
- var u = lo();
3260
+ ]), s = Se(() => ni(t.customStyles?.root)), a = Se(() => ["rb-progress__item", t.customClasses?.item]), l = Se(() => ni(t.customStyles?.item));
3261
+ var u = uo();
3249
3262
  Mr(u, "aria-valuemin", 1), lr(u, 20, () => Array.from({ length: r() }, (e, t) => t), (e) => e, (e, t) => {
3250
- var r = ao();
3263
+ var r = lo();
3251
3264
  It((e) => {
3252
3265
  yr(r, 1, e), wr(r, wn(l));
3253
3266
  }, [() => gr([...wn(a), t + 1 === n() && "rb-progress__item--active"])]), Fn(e, r);
@@ -3272,12 +3285,12 @@ function ho(e, t) {
3272
3285
  (function(e, t) {
3273
3286
  ne(t, !0);
3274
3287
  let n = qr(t, "current", 3, 1), r = qr(t, "total", 3, 1), i = qr(t, "aria", 19, () => ({ ariaLabel: "Progress" }));
3275
- const o = Oe(() => [
3288
+ const o = Se(() => [
3276
3289
  "rb-progress",
3277
3290
  "rb-progress--text",
3278
3291
  t.customClasses?.root
3279
- ]), s = Oe(() => ni(t.customStyles?.root)), a = Oe(() => ["rb-progress__item", t.customClasses?.item]), l = Oe(() => ni(t.customStyles?.item));
3280
- var u = co();
3292
+ ]), s = Se(() => ni(t.customStyles?.root)), a = Se(() => ["rb-progress__item", t.customClasses?.item]), l = Se(() => ni(t.customStyles?.item));
3293
+ var u = fo();
3281
3294
  Mr(u, "aria-valuemin", 1);
3282
3295
  var c = bt(u), f = bt(c);
3283
3296
  G(c), G(u), It(() => {
@@ -3301,12 +3314,12 @@ function ho(e, t) {
3301
3314
  (function(e, t) {
3302
3315
  ne(t, !0);
3303
3316
  let n = qr(t, "current", 3, 1), r = qr(t, "total", 3, 1), i = qr(t, "aria", 19, () => ({ ariaLabel: "Progress" }));
3304
- const o = Oe(() => r() > 0 ? n() / r() : 0), s = Oe(() => [
3317
+ const o = Se(() => r() > 0 ? n() / r() : 0), s = Se(() => [
3305
3318
  "rb-progress",
3306
3319
  "rb-progress--line",
3307
3320
  t.customClasses?.root
3308
- ]), a = Oe(() => ni(t.customStyles?.root)), l = Oe(() => ["rb-progress__track", t.customClasses?.track]), u = Oe(() => ni(t.customStyles?.track)), c = Oe(() => ["rb-progress__progress", t.customClasses?.progress]), f = Oe(() => ni(t.customStyles?.progress));
3309
- var d = uo();
3321
+ ]), a = Se(() => ni(t.customStyles?.root)), l = Se(() => ["rb-progress__track", t.customClasses?.track]), u = Se(() => ni(t.customStyles?.track)), c = Se(() => ["rb-progress__progress", t.customClasses?.progress]), f = Se(() => ni(t.customStyles?.progress));
3322
+ var d = co();
3310
3323
  Mr(d, "aria-valuemin", 1);
3311
3324
  var p = bt(d), h = bt(p);
3312
3325
  let v;
@@ -3329,16 +3342,16 @@ function ho(e, t) {
3329
3342
  });
3330
3343
  };
3331
3344
  return sr(c, (e) => {
3332
- t.customHtml?.progress ? e(f) : i() === fo.DOTS ? e(d, 1) : i() === fo.TEXT ? e(p, 2) : i() === fo.LINE && e(h, 3);
3345
+ t.customHtml?.progress ? e(f) : i() === po.DOTS ? e(d, 1) : i() === po.TEXT ? e(p, 2) : i() === po.LINE && e(h, 3);
3333
3346
  }), G(u), Fr(u, (e) => rt(o, e), () => wn(o)), It(() => {
3334
3347
  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
3348
  }), Fn(e, u), re(l);
3336
3349
  }
3337
- var vo = In("<input type=\"checkbox\"/>"), go = In("<span></span>"), mo = In("<span> </span>"), _o = In("<label><!> <!></label>");
3338
- function bo(e, t) {
3350
+ var go = In("<input type=\"checkbox\"/>"), mo = In("<span></span>"), _o = In("<span> </span>"), bo = In("<label><!> <!></label>");
3351
+ function yo(e, t) {
3339
3352
  ne(t, !0);
3340
3353
  let n = qr(t, "checked", 3, !1), r = qr(t, "label", 3, "Don't show again"), i = qr(t, "disabled", 3, !1), o = tt(null), s = tt(null);
3341
- const a = Oe(() => ["rb-tour-skip", t.customClasses?.root]), l = Oe(() => ni(t.customStyles?.root)), u = Oe(() => ["rb-tour-skip__input", t.customClasses?.input]), c = Oe(() => ni(t.customStyles?.input)), f = Oe(() => ["rb-tour-skip__label", t.customClasses?.label]), d = Oe(() => ni(t.customStyles?.label));
3354
+ const a = Se(() => ["rb-tour-skip", t.customClasses?.root]), l = Se(() => ni(t.customStyles?.root)), u = Se(() => ["rb-tour-skip__input", t.customClasses?.input]), c = Se(() => ni(t.customStyles?.input)), f = Se(() => ["rb-tour-skip__label", t.customClasses?.label]), d = Se(() => ni(t.customStyles?.label));
3342
3355
  function p(e) {
3343
3356
  const n = e.target;
3344
3357
  t.onSkipChange?.(n.checked);
@@ -3348,11 +3361,11 @@ function bo(e, t) {
3348
3361
  root: wn(o),
3349
3362
  input: wn(s)
3350
3363
  };
3351
- } }, v = _o(), g = bt(v), m = (e) => {
3364
+ } }, v = bo(), g = bt(v), m = (e) => {
3352
3365
  var n = jn();
3353
3366
  pr(yt(n), () => t.customHtml.input), Fn(e, n);
3354
3367
  }, _ = (e) => {
3355
- var t = vo();
3368
+ var t = go();
3356
3369
  Lr(t), Fr(t, (e) => rt(s, e), () => wn(s)), It(() => {
3357
3370
  yr(t, 1, gr(wn(u))), wr(t, wn(c)), function(e, t) {
3358
3371
  var n = $r(e);
@@ -3364,12 +3377,12 @@ function bo(e, t) {
3364
3377
  t.customHtml?.input ? e(m) : e(_, -1);
3365
3378
  });
3366
3379
  var b = Tt(g, 2), y = (e) => {
3367
- var n = go();
3380
+ var n = mo();
3368
3381
  pr(n, () => t.customHtml.label, !0), G(n), It(() => {
3369
3382
  yr(n, 1, gr(wn(f))), wr(n, wn(d));
3370
3383
  }), Fn(e, n);
3371
3384
  }, T = (e) => {
3372
- var t = mo(), n = bt(t, !0);
3385
+ var t = _o(), n = bt(t, !0);
3373
3386
  G(t), It(() => {
3374
3387
  yr(t, 1, gr(wn(f))), wr(t, wn(d)), Wn(n, r());
3375
3388
  }), Fn(e, t);
@@ -3381,23 +3394,23 @@ function bo(e, t) {
3381
3394
  }), Fn(e, v), re(h);
3382
3395
  }
3383
3396
  Dn(["change"]);
3384
- var yo = function(e) {
3397
+ var To = function(e) {
3385
3398
  return e.TOP = "top", e.BOTTOM = "bottom", e.LEFT = "left", e.RIGHT = "right", e;
3386
3399
  }({});
3387
- function To({ getArrow: e, getPlacement: t }) {
3388
- const n = Oe(e), r = Oe(t), i = Oe(() => !1 === wn(n) ? null : function(e) {
3400
+ function wo({ getArrow: e, getPlacement: t }) {
3401
+ const n = Se(e), r = Se(t), i = Se(() => !1 === wn(n) ? null : function(e) {
3389
3402
  switch (e) {
3390
3403
  case oi.BOTTOM_START:
3391
3404
  case oi.BOTTOM_CENTER:
3392
- case oi.BOTTOM_END: return yo.TOP;
3405
+ case oi.BOTTOM_END: return To.TOP;
3393
3406
  case oi.TOP_START:
3394
3407
  case oi.TOP_CENTER:
3395
- case oi.TOP_END: return yo.BOTTOM;
3396
- case oi.MIDDLE_END: return yo.LEFT;
3397
- case oi.MIDDLE_START: return yo.RIGHT;
3408
+ case oi.TOP_END: return To.BOTTOM;
3409
+ case oi.MIDDLE_END: return To.LEFT;
3410
+ case oi.MIDDLE_START: return To.RIGHT;
3398
3411
  default: return null;
3399
3412
  }
3400
- }(wn(n) ? wn(n).placement : wn(r))), o = Oe(() => wn(i) ? function(e) {
3413
+ }(wn(n) ? wn(n).placement : wn(r))), o = Se(() => wn(i) ? function(e) {
3401
3414
  return ["rb-tour-tooltip__arrow", `rb-tour-tooltip__arrow--${e}`];
3402
3415
  }(wn(i)) : null);
3403
3416
  return {
@@ -3409,7 +3422,7 @@ function To({ getArrow: e, getPlacement: t }) {
3409
3422
  }
3410
3423
  };
3411
3424
  }
3412
- function wo({ target: e, tooltip: t, placement: n, offset: r, margin: i, padding: o, autoPlacement: s, arrowSide: a, viewport: l }) {
3425
+ function Eo({ target: e, tooltip: t, placement: n, offset: r, margin: i, padding: o, autoPlacement: s, arrowSide: a, viewport: l }) {
3413
3426
  function u(e, t, n, r) {
3414
3427
  switch (n) {
3415
3428
  case oi.TOP_START: return {
@@ -3629,20 +3642,20 @@ function wo({ target: e, tooltip: t, placement: n, offset: r, margin: i, padding
3629
3642
  arrowOffset: function(e, t, n) {
3630
3643
  if (null === n) return 0;
3631
3644
  const r = e.getBoundingClientRect();
3632
- return n === yo.TOP || n === yo.BOTTOM ? r.left + r.width / 2 - t.left : r.top + r.height / 2 - t.top;
3645
+ return n === To.TOP || n === To.BOTTOM ? r.left + r.width / 2 - t.left : r.top + r.height / 2 - t.top;
3633
3646
  }(e, T, a)
3634
3647
  };
3635
3648
  }
3636
- function Eo({ getTargetElement: e, getTooltipElement: t, getPlacement: n, getPadding: r, getOffset: i, getMargin: o, getAutoPlacement: s, getArrowSide: a }) {
3649
+ function Oo({ getTargetElement: e, getTooltipElement: t, getPlacement: n, getPadding: r, getOffset: i, getMargin: o, getAutoPlacement: s, getArrowSide: a }) {
3637
3650
  let l = tt(0), u = tt(0), c = tt(lt(oi.BOTTOM_START)), f = tt(0);
3638
- const d = bi(), p = _i(), h = Oe(e), v = Oe(t), g = Oe(() => {
3651
+ const d = bi(), p = _i(), h = Se(e), v = Se(t), g = Se(() => {
3639
3652
  return e = n(), fi.has(e) ? e : oi.BOTTOM_START;
3640
3653
  var e;
3641
- }), m = Oe(i), _ = Oe(o), b = Oe(r), y = Oe(s), T = Oe(a);
3654
+ }), m = Se(i), _ = Se(o), b = Se(r), y = Se(s), T = Se(a);
3642
3655
  return xt(() => {
3643
3656
  if (!wn(h) || !wn(v)) return;
3644
3657
  p.x, p.y;
3645
- const e = wo({
3658
+ const e = Eo({
3646
3659
  target: wn(h),
3647
3660
  tooltip: wn(v),
3648
3661
  placement: wn(g),
@@ -3672,8 +3685,8 @@ function Eo({ getTargetElement: e, getTooltipElement: t, getPlacement: n, getPad
3672
3685
  }
3673
3686
  };
3674
3687
  }
3675
- var So = In("<div></div>"), Oo = In("<p> </p>"), Co = In("<div><!> <!></div>"), No = In("<div><!> <!> <!> <!> <!> <!> <!></div>");
3676
- function ko(e, t) {
3688
+ var So = In("<div></div>"), Co = In("<p> </p>"), No = In("<div><!> <!></div>"), ko = In("<div><!> <!> <!> <!> <!> <!> <!></div>");
3689
+ function Po(e, t) {
3677
3690
  ne(t, !0);
3678
3691
  let n = qr(t, "step", 19, () => ({
3679
3692
  target: "",
@@ -3681,18 +3694,18 @@ function ko(e, t) {
3681
3694
  description: "",
3682
3695
  placement: oi.BOTTOM_START
3683
3696
  })), r = qr(t, "currentTarget", 3, null), i = qr(t, "currentStep", 3, 1), o = qr(t, "totalSteps", 3, 1), s = qr(t, "size", 19, () => ii.MD), a = qr(t, "shape", 19, () => si.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(() => ({
3697
+ const m = Se(() => ({
3685
3698
  title: n().title,
3686
3699
  description: n().description,
3687
3700
  placement: n().placement,
3688
3701
  targetElement: r()
3689
- })), _ = Oe(() => n().image ? "string" == typeof n().image ? {
3702
+ })), _ = Se(() => n().image ? "string" == typeof n().image ? {
3690
3703
  src: n().image,
3691
3704
  alt: ""
3692
3705
  } : {
3693
3706
  src: n().image.src,
3694
3707
  alt: n().image.alt ?? ""
3695
- } : null), b = Oe(() => t.tourProgressProps ? t.tourProgressProps.variant : void 0);
3708
+ } : null), b = Se(() => t.tourProgressProps ? t.tourProgressProps.variant : void 0);
3696
3709
  var y = { getComponents: function() {
3697
3710
  return {
3698
3711
  tourTooltip: wn(d),
@@ -3705,7 +3718,7 @@ function ko(e, t) {
3705
3718
  {
3706
3719
  const n = (e) => {
3707
3720
  var n = jn(), r = yt(n), i = (e) => {
3708
- Fr(so(e, Vr(() => t.tourImageProps, {
3721
+ Fr(ao(e, Vr(() => t.tourImageProps, {
3709
3722
  get src() {
3710
3723
  return wn(_).src;
3711
3724
  },
@@ -3719,7 +3732,7 @@ function ko(e, t) {
3719
3732
  }), Fn(e, n);
3720
3733
  }, r = (e) => {
3721
3734
  var n = jn(), r = yt(n), i = (e) => {
3722
- Fr(Ji(e, Vr({
3735
+ Fr(Qi(e, Vr({
3723
3736
  get size() {
3724
3737
  return s();
3725
3738
  },
@@ -3733,7 +3746,7 @@ function ko(e, t) {
3733
3746
  }), Fn(e, n);
3734
3747
  }, y = (e) => {
3735
3748
  var n = jn(), r = yt(n), i = (e) => {
3736
- Fr(bo(e, Vr(() => t.tourSkipProps, {
3749
+ Fr(yo(e, Vr(() => t.tourSkipProps, {
3737
3750
  get checked() {
3738
3751
  return l();
3739
3752
  },
@@ -3748,10 +3761,10 @@ function ko(e, t) {
3748
3761
  }, T = (e) => {
3749
3762
  var n = jn(), r = yt(n), s = (e) => {
3750
3763
  {
3751
- let n = Oe(() => t.tourProgressProps?.customClasses), r = Oe(() => t.tourProgressProps?.customStyles);
3752
- ho(e, {
3764
+ let n = Se(() => t.tourProgressProps?.customClasses), r = Se(() => t.tourProgressProps?.customStyles);
3765
+ vo(e, {
3753
3766
  get variant() {
3754
- return fo.LINE;
3767
+ return po.LINE;
3755
3768
  },
3756
3769
  get currentStep() {
3757
3770
  return i();
@@ -3769,7 +3782,7 @@ function ko(e, t) {
3769
3782
  }
3770
3783
  };
3771
3784
  sr(r, (e) => {
3772
- !1 !== t.tourProgressProps && wn(b) === fo.LINE && e(s);
3785
+ !1 !== t.tourProgressProps && wn(b) === po.LINE && e(s);
3773
3786
  }), Fn(e, n);
3774
3787
  }, w = (e) => {
3775
3788
  var n = jn(), r = yt(n), a = (e) => {
@@ -3777,8 +3790,8 @@ function ko(e, t) {
3777
3790
  const n = (e) => {
3778
3791
  var n = jn(), r = yt(n), s = (e) => {
3779
3792
  {
3780
- let n = Oe(() => t.tourProgressProps?.customClasses), r = Oe(() => t.tourProgressProps?.customStyles);
3781
- ho(e, {
3793
+ let n = Se(() => t.tourProgressProps?.customClasses), r = Se(() => t.tourProgressProps?.customStyles);
3794
+ vo(e, {
3782
3795
  get variant() {
3783
3796
  return wn(b);
3784
3797
  },
@@ -3798,13 +3811,13 @@ function ko(e, t) {
3798
3811
  }
3799
3812
  };
3800
3813
  sr(r, (e) => {
3801
- !1 === t.tourProgressProps || wn(b) !== fo.DOTS && wn(b) !== fo.TEXT || e(s);
3814
+ !1 === t.tourProgressProps || wn(b) !== po.DOTS && wn(b) !== po.TEXT || e(s);
3802
3815
  }), Fn(e, n);
3803
3816
  };
3804
3817
  Fr(function(e, t) {
3805
3818
  ne(t, !0);
3806
3819
  let n = qr(t, "currentStep", 3, 1), r = qr(t, "totalSteps", 3, 1), i = qr(t, "size", 19, () => ii.MD), o = 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(() => ni(t.customStyles?.root));
3820
+ const c = Se(() => 1 === n()), f = Se(() => n() === r()), d = Se(() => ["rb-tour-buttons", t.customClasses?.root]), p = Se(() => ni(t.customStyles?.root));
3808
3821
  function h(...e) {
3809
3822
  return e.map(ni).filter(Boolean).join(" ") || void 0;
3810
3823
  }
@@ -3821,17 +3834,17 @@ function ko(e, t) {
3821
3834
  styles: h(i.customStyles?.root, t.customStyles?.[r])
3822
3835
  };
3823
3836
  }
3824
- const g = Oe(() => v(o(), Qi, "prev")), m = Oe(() => v(s(), eo, "next")), _ = Oe(() => v(l(), no, "skip")), b = Oe(() => v(a(), to, "finish"));
3837
+ const g = Se(() => v(o(), eo, "prev")), m = Se(() => v(s(), to, "next")), _ = Se(() => v(l(), ro, "skip")), b = Se(() => v(a(), no, "finish"));
3825
3838
  var y = { getElements: function() {
3826
3839
  return { root: wn(u) };
3827
- } }, T = ro(), w = bt(T), E = (e) => {
3840
+ } }, T = io(), w = bt(T), E = (e) => {
3828
3841
  var n = jn(), r = yt(n), o = (e) => {
3829
3842
  var n = jn();
3830
3843
  pr(yt(n), () => t.customHtml.prev), Fn(e, n);
3831
3844
  }, s = (e) => {
3832
3845
  {
3833
- let n = Oe(() => wn(g).size ?? i()), r = Oe(() => ({ root: wn(g).classes })), o = Oe(() => ({ root: wn(g).styles }));
3834
- Wi(e, {
3846
+ let n = Se(() => wn(g).size ?? i()), r = Se(() => ({ root: wn(g).classes })), o = Se(() => ({ root: wn(g).styles }));
3847
+ Yi(e, {
3835
3848
  get type() {
3836
3849
  return wn(g).type;
3837
3850
  },
@@ -3878,21 +3891,21 @@ function ko(e, t) {
3878
3891
  sr(w, (e) => {
3879
3892
  null !== wn(g) && e(E);
3880
3893
  });
3881
- var S = Tt(w, 2), O = bt(S), C = (e) => {
3894
+ var O = Tt(w, 2), S = bt(O), C = (e) => {
3882
3895
  var n = jn();
3883
3896
  ir(yt(n), () => t.center), Fn(e, n);
3884
3897
  };
3885
- sr(O, (e) => {
3898
+ sr(S, (e) => {
3886
3899
  t.center && e(C);
3887
- }), G(S);
3888
- var N = Tt(S, 2), k = (e) => {
3900
+ }), G(O);
3901
+ var N = Tt(O, 2), k = (e) => {
3889
3902
  var n = jn(), r = yt(n), o = (e) => {
3890
3903
  var n = jn();
3891
3904
  pr(yt(n), () => t.customHtml.skip), Fn(e, n);
3892
3905
  }, s = (e) => {
3893
3906
  {
3894
- let n = Oe(() => wn(_).size ?? i()), r = Oe(() => ({ root: wn(_).classes })), o = Oe(() => ({ root: wn(_).styles }));
3895
- Wi(e, {
3907
+ let n = Se(() => wn(_).size ?? i()), r = Se(() => ({ root: wn(_).classes })), o = Se(() => ({ root: wn(_).styles }));
3908
+ Yi(e, {
3896
3909
  get type() {
3897
3910
  return wn(_).type;
3898
3911
  },
@@ -3943,8 +3956,8 @@ function ko(e, t) {
3943
3956
  pr(yt(n), () => t.customHtml.finish), Fn(e, n);
3944
3957
  }, s = (e) => {
3945
3958
  {
3946
- let n = Oe(() => wn(b).size ?? i()), r = Oe(() => ({ root: wn(b).classes })), o = Oe(() => ({ root: wn(b).styles }));
3947
- Wi(e, {
3959
+ let n = Se(() => wn(b).size ?? i()), r = Se(() => ({ root: wn(b).classes })), o = Se(() => ({ root: wn(b).styles }));
3960
+ Yi(e, {
3948
3961
  get type() {
3949
3962
  return wn(b).type;
3950
3963
  },
@@ -3994,8 +4007,8 @@ function ko(e, t) {
3994
4007
  pr(yt(n), () => t.customHtml.next), Fn(e, n);
3995
4008
  }, s = (e) => {
3996
4009
  {
3997
- let n = Oe(() => wn(m).size ?? i()), r = Oe(() => ({ root: wn(m).classes })), o = Oe(() => ({ root: wn(m).styles }));
3998
- Wi(e, {
4010
+ let n = Se(() => wn(m).size ?? i()), r = Se(() => ({ root: wn(m).classes })), o = Se(() => ({ root: wn(m).styles }));
4011
+ Yi(e, {
3999
4012
  get type() {
4000
4013
  return wn(m).type;
4001
4014
  },
@@ -4074,10 +4087,10 @@ function ko(e, t) {
4074
4087
  Fr(function(e, t) {
4075
4088
  ne(t, !0);
4076
4089
  let n = qr(t, "title", 3, ""), r = qr(t, "description", 3, ""), i = qr(t, "size", 19, () => ii.MD), o = qr(t, "placement", 19, () => oi.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 = To({
4090
+ const g = wo({
4078
4091
  getArrow: () => t.arrow,
4079
4092
  getPlacement: () => m.effectivePlacement
4080
- }), m = Eo({
4093
+ }), m = Oo({
4081
4094
  getTargetElement: () => s(),
4082
4095
  getTooltipElement: () => wn(h),
4083
4096
  getPlacement: () => o(),
@@ -4093,7 +4106,7 @@ function ko(e, t) {
4093
4106
  });
4094
4107
  return () => cancelAnimationFrame(e);
4095
4108
  });
4096
- const _ = Oe(() => !1 !== p()), b = Jr({
4109
+ const _ = Se(() => !1 !== p()), b = Jr({
4097
4110
  getIsAnimated: () => wn(_),
4098
4111
  getIsHidden: () => f(),
4099
4112
  classNames: {
@@ -4101,7 +4114,7 @@ function ko(e, t) {
4101
4114
  in: "rb-tour-tooltip--anim-in",
4102
4115
  out: "rb-tour-tooltip--anim-out"
4103
4116
  }
4104
- }), y = Oe(() => p() ? {
4117
+ }), y = Se(() => p() ? {
4105
4118
  effect: b.hasHiddenAnimation ? p().exit : p().enter,
4106
4119
  duration: b.hasHiddenAnimation ? p().exitDuration : p().enterDuration,
4107
4120
  className: `rb-tour-tooltip--anim-${b.hasHiddenAnimation ? p().exit : p().enter}`,
@@ -4111,17 +4124,17 @@ function ko(e, t) {
4111
4124
  duration: 0,
4112
4125
  className: null,
4113
4126
  easing: "ease-out"
4114
- }), T = Oe(() => [
4127
+ }), T = Se(() => [
4115
4128
  "rb-tour-tooltip",
4116
4129
  `rb-tour-tooltip--${i()}`,
4117
4130
  wn(v) && d() && "rb-tour-tooltip--glide",
4118
4131
  b.classes,
4119
4132
  wn(y).className,
4120
4133
  t.customClasses?.root
4121
- ]), w = Oe(() => ni(t.customStyles?.root)), E = Oe(() => ["rb-tour-tooltip__header", t.customClasses?.header]), S = Oe(() => ni(t.customStyles?.header)), O = Oe(() => ["rb-tour-tooltip__title", t.customClasses?.title]), C = Oe(() => ni(t.customStyles?.title)), N = Oe(() => ["rb-tour-tooltip__description", t.customClasses?.description]), k = Oe(() => ni(t.customStyles?.description));
4134
+ ]), w = Se(() => ni(t.customStyles?.root)), E = Se(() => ["rb-tour-tooltip__header", t.customClasses?.header]), O = Se(() => ni(t.customStyles?.header)), S = Se(() => ["rb-tour-tooltip__title", t.customClasses?.title]), C = Se(() => ni(t.customStyles?.title)), N = Se(() => ["rb-tour-tooltip__description", t.customClasses?.description]), k = Se(() => ni(t.customStyles?.description));
4122
4135
  var P = { getElements: function() {
4123
4136
  return { root: wn(h) };
4124
- } }, A = No();
4137
+ } }, A = ko();
4125
4138
  let D;
4126
4139
  var x = bt(A), L = (e) => {
4127
4140
  var t = So();
@@ -4141,13 +4154,13 @@ function ko(e, t) {
4141
4154
  t.image && e(M);
4142
4155
  });
4143
4156
  var I = Tt(R, 2), $ = (e) => {
4144
- var r = Co(), i = bt(r), o = (e) => {
4157
+ var r = No(), i = bt(r), o = (e) => {
4145
4158
  var n = jn();
4146
4159
  pr(yt(n), () => t.customHtml.title), Fn(e, n);
4147
4160
  }, s = (e) => {
4148
- var t = Oo(), r = bt(t, !0);
4161
+ var t = Co(), r = bt(t, !0);
4149
4162
  G(t), It(() => {
4150
- yr(t, 1, gr(wn(O))), wr(t, wn(C)), Wn(r, n());
4163
+ yr(t, 1, gr(wn(S))), wr(t, wn(C)), Wn(r, n());
4151
4164
  }), Fn(e, t);
4152
4165
  };
4153
4166
  sr(i, (e) => {
@@ -4160,7 +4173,7 @@ function ko(e, t) {
4160
4173
  sr(a, (e) => {
4161
4174
  t.close && e(l);
4162
4175
  }), G(r), It(() => {
4163
- yr(r, 1, gr(wn(E))), wr(r, wn(S));
4176
+ yr(r, 1, gr(wn(E))), wr(r, wn(O));
4164
4177
  }), Fn(e, r);
4165
4178
  };
4166
4179
  sr(I, (e) => {
@@ -4170,7 +4183,7 @@ function ko(e, t) {
4170
4183
  var n = jn();
4171
4184
  pr(yt(n), () => t.customHtml.description), Fn(e, n);
4172
4185
  }, j = (e) => {
4173
- var t = Oo(), n = bt(t, !0);
4186
+ var t = Co(), n = bt(t, !0);
4174
4187
  G(t), It(() => {
4175
4188
  yr(t, 1, gr(wn(N))), wr(t, wn(k)), Wn(n, r());
4176
4189
  }), Fn(e, t);
@@ -4178,21 +4191,21 @@ function ko(e, t) {
4178
4191
  sr(B, (e) => {
4179
4192
  t.customHtml?.description ? e(H) : r() && e(j, 1);
4180
4193
  });
4181
- var F = Tt(B, 2), z = (e) => {
4194
+ var F = Tt(B, 2), U = (e) => {
4182
4195
  var n = jn();
4183
4196
  ir(yt(n), () => t.skip), Fn(e, n);
4184
4197
  };
4185
4198
  sr(F, (e) => {
4186
- t.skip && e(z);
4199
+ t.skip && e(U);
4187
4200
  });
4188
- var U = Tt(F, 2), V = (e) => {
4201
+ var z = Tt(F, 2), V = (e) => {
4189
4202
  var n = jn();
4190
4203
  ir(yt(n), () => t.progress), Fn(e, n);
4191
4204
  };
4192
- sr(U, (e) => {
4205
+ sr(z, (e) => {
4193
4206
  t.progress && e(V);
4194
4207
  });
4195
- var q = Tt(U, 2), K = (e) => {
4208
+ var q = Tt(z, 2), K = (e) => {
4196
4209
  var n = jn();
4197
4210
  ir(yt(n), () => t.footer), Fn(e, n);
4198
4211
  };
@@ -4234,8 +4247,8 @@ function ko(e, t) {
4234
4247
  }
4235
4248
  return re(y);
4236
4249
  }
4237
- var Po = In("<!> <!>", 1), Ao = In("<div><!></div>");
4238
- function Do(e, t) {
4250
+ var Ao = In("<!> <!>", 1), Do = In("<div><!></div>");
4251
+ function xo(e, t) {
4239
4252
  ne(t, !0);
4240
4253
  let n = tt(null), r = tt(null), i = tt(null);
4241
4254
  Wr({
@@ -4259,13 +4272,13 @@ function Do(e, t) {
4259
4272
  getDuration: () => t.animation.overlay.transitionDuration
4260
4273
  });
4261
4274
  ei({ getContainer: () => wn(n)?.getElements()?.root ?? null });
4262
- const a = Oe(() => t.config.size), l = Oe(() => t.config.shape), u = Oe(() => ["rb"]), c = Oe(() => ({
4275
+ const a = Se(() => t.config.size), l = Se(() => t.config.shape), u = Se(() => ["rb"]), c = Se(() => ({
4263
4276
  ...t.config.container,
4264
4277
  customClasses: {
4265
4278
  ...t.config.container?.customClasses,
4266
4279
  root: [t.config.container?.customClasses?.root, o.classes]
4267
4280
  }
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 === Ei.GLIDE), T = Oe(() => t.animation.tooltip.appearance === wi.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(() => {
4281
+ })), f = Se(() => t.config.tourOverlay), d = Se(() => t.config.tourTooltip), p = Se(() => t.config.tourImage), h = Se(() => t.config.tourButtons), v = Se(() => t.config.tourProgress), g = Se(() => t.config.tourSkip), m = Se(() => t.config.closeButton), _ = Se(() => !!t.animation.isEnabled && t.animation.tooltip), b = Se(() => t.animation.isEnabled), y = Se(() => t.animation.tooltip.transition === Ei.GLIDE), T = Se(() => t.animation.tooltip.appearance === wi.DURING_SCROLL), w = Se(() => t.scroll.isScrolling || s.isActive), E = Se(() => !wn(y) && wn(b) && wn(w) && !wn(T)), O = Se(() => t.controller.step), S = Se(() => {
4269
4282
  const e = wn(i)?.getComponents();
4270
4283
  return {
4271
4284
  tourTooltip: e?.tourTooltip ?? null,
@@ -4282,7 +4295,7 @@ function Do(e, t) {
4282
4295
  return {
4283
4296
  container: wn(n),
4284
4297
  tourOverlay: wn(r),
4285
- ...wn(O)
4298
+ ...wn(S)
4286
4299
  };
4287
4300
  },
4288
4301
  get events() {
@@ -4296,12 +4309,12 @@ function Do(e, t) {
4296
4309
  t.mount();
4297
4310
  }), N = () => {
4298
4311
  t.eventEmitter.emit(Yr.ON_BORDA_DESTROY), t.eventEmitter.clear();
4299
- }, null === ee && H(), or(() => () => On(N));
4300
- var k = { api: C }, P = Ao();
4312
+ }, null === ee && H(), or(() => () => Sn(N));
4313
+ var k = { api: C }, P = Do();
4301
4314
  return Fr(function(e, t) {
4302
4315
  ne(t, !0);
4303
4316
  let n = tt(null);
4304
- const r = Oe(() => ["rb-container", t.customClasses?.root]), i = Oe(() => ni(t.customStyles?.root));
4317
+ const r = Se(() => ["rb-container", t.customClasses?.root]), i = Se(() => ni(t.customStyles?.root));
4305
4318
  var o = { getElements: function() {
4306
4319
  return { root: wn(n) };
4307
4320
  } }, s = mi(), a = bt(s), l = (e) => {
@@ -4316,7 +4329,7 @@ function Do(e, t) {
4316
4329
  }(bt(P), Vr(() => wn(c), {
4317
4330
  children: (e, n) => {
4318
4331
  var o = jn(), s = yt(o), u = (e) => {
4319
- var n = Po(), o = yt(n), s = (e) => {
4332
+ var n = Ao(), o = yt(n), s = (e) => {
4320
4333
  Fr(function(e, t) {
4321
4334
  ne(t, !0);
4322
4335
  let n = qr(t, "targetElement", 3, null), r = qr(t, "borderRadius", 3, 8), i = qr(t, "padding", 3, 12), o = qr(t, "isAnimated", 3, !0), s = qr(t, "hasCloseOnBackdropClick", 3, !1), a = qr(t, "aria", 19, () => ({ ariaLabel: "Close" }));
@@ -4327,11 +4340,11 @@ function Do(e, t) {
4327
4340
  getBorderRadius: () => r(),
4328
4341
  getPadding: () => i(),
4329
4342
  getIsAnimated: () => o()
4330
- }), p = Oe(() => ["rb-tour-overlay", t.customClasses?.root]), h = Oe(() => ni(t.customStyles?.root)), v = Oe(() => [
4343
+ }), p = Se(() => ["rb-tour-overlay", t.customClasses?.root]), h = Se(() => ni(t.customStyles?.root)), v = Se(() => [
4331
4344
  "rb-tour-overlay__backdrop",
4332
4345
  d.isTransitioning && "rb-tour-overlay__backdrop--transitioning",
4333
4346
  t.customClasses?.backdrop
4334
- ]), g = Oe(() => ni(t.customStyles?.backdrop));
4347
+ ]), g = Se(() => ni(t.customStyles?.backdrop));
4335
4348
  function m(e) {
4336
4349
  " " === e.key && _(e);
4337
4350
  }
@@ -4368,9 +4381,9 @@ function Do(e, t) {
4368
4381
  !1 !== wn(f) && e(s);
4369
4382
  });
4370
4383
  var u = Tt(o, 2), c = (e) => {
4371
- Fr(ko(e, {
4384
+ Fr(Po(e, {
4372
4385
  get step() {
4373
- return wn(S);
4386
+ return wn(O);
4374
4387
  },
4375
4388
  get currentTarget() {
4376
4389
  return t.controller.currentTarget;
@@ -4439,13 +4452,13 @@ function Do(e, t) {
4439
4452
  }), Fn(e, n);
4440
4453
  };
4441
4454
  sr(s, (e) => {
4442
- t.controller.currentTarget && wn(S) && e(u);
4455
+ t.controller.currentTarget && wn(O) && e(u);
4443
4456
  }), Fn(e, o);
4444
4457
  },
4445
4458
  $$slots: { default: !0 }
4446
4459
  })), (e) => rt(n, e, !0), () => wn(n)), G(P), It(() => yr(P, 1, gr(wn(u)))), Fn(e, P), re(k);
4447
4460
  }
4448
- function xo() {
4461
+ function Lo() {
4449
4462
  const e = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakSet();
4450
4463
  function n(t, n) {
4451
4464
  (function(e) {
@@ -4454,21 +4467,21 @@ function xo() {
4454
4467
  const i = n ?? document.body;
4455
4468
  return new Promise((n) => {
4456
4469
  let o = null;
4457
- const s = Zr(), a = Lo(t), l = Li(a), u = ki(a, s);
4470
+ const s = Zr(), a = Ro(t), l = Ri(a), u = Pi(a, s);
4458
4471
  u.apply(), l.applyStep(u.api.step ?? null);
4459
- const c = Fi(a, s);
4472
+ const c = Ui(a, s);
4460
4473
  c.apply(), c.api.isSkipped && a.mergeConfig({ visibility: { isHidden: !0 } });
4461
- const f = Di(a, s);
4474
+ const f = xi(a, s);
4462
4475
  f.apply();
4463
- const d = ji(a);
4476
+ const d = Fi(a);
4464
4477
  d.apply();
4465
4478
  const p = Ci(a);
4466
4479
  p.apply();
4467
- const h = Ri(a, l);
4480
+ const h = Mi(a, l);
4468
4481
  h.apply();
4469
4482
  const v = zi(a, s);
4470
4483
  v.apply();
4471
- const g = Yn(Do, {
4484
+ const g = Yn(xo, {
4472
4485
  target: i,
4473
4486
  props: {
4474
4487
  get config() {
@@ -4509,7 +4522,9 @@ function xo() {
4509
4522
  a.getConfig().tour?.onFinish?.(), await r(t);
4510
4523
  }), s.once(Yr.ON_TOUR_CLOSE, async () => {
4511
4524
  a.getConfig().tour?.onClose?.(), await r(t);
4512
- }), n(t);
4525
+ }), s.once(Yr.ON_TOUR_ERROR, (e) => {
4526
+ a.getConfig().tour?.onError?.(e);
4527
+ }), u.checkCurrentTarget(), n(t);
4513
4528
  },
4514
4529
  unmount: () => {
4515
4530
  o && r(o);
@@ -4534,13 +4549,13 @@ function xo() {
4534
4549
  }
4535
4550
  return {
4536
4551
  NAME: "@retoo/borda",
4537
- VERSION: "0.0.2",
4552
+ VERSION: "0.1.0",
4538
4553
  mount: n,
4539
4554
  unmount: r,
4540
- highlight: Pi(n).highlight
4555
+ highlight: Ai(n).highlight
4541
4556
  };
4542
4557
  }
4543
- function Lo(e) {
4558
+ function Ro(e) {
4544
4559
  let t = tt(lt(vi(e)));
4545
4560
  function n(e) {
4546
4561
  rt(t, vi(e), !0);
@@ -4558,8 +4573,8 @@ function Lo(e) {
4558
4573
  }
4559
4574
  };
4560
4575
  }
4561
- var Ro = "borda-tour-widget", Mo = "undefined" != typeof HTMLElement ? HTMLElement : class {}, Io = class extends Mo {
4562
- static tagName = Ro;
4576
+ var Mo = "borda-tour-widget", Io = "undefined" != typeof HTMLElement ? HTMLElement : class {}, $o = class extends Io {
4577
+ static tagName = Mo;
4563
4578
  _instance = null;
4564
4579
  _borda = null;
4565
4580
  _connected = !1;
@@ -4586,7 +4601,7 @@ var Ro = "borda-tour-widget", Mo = "undefined" != typeof HTMLElement ? HTMLEleme
4586
4601
  }
4587
4602
  async _mount(e) {
4588
4603
  if (this._unmountPending && await this._unmountPending, this._instance) return this._instance.config.setConfig(e), this._instance;
4589
- const t = xo(), n = await t.mount(e);
4604
+ const t = Lo(), n = await t.mount(e);
4590
4605
  return this._borda = t, this._instance = n, this.dispatchEvent(new CustomEvent("borda:mount", {
4591
4606
  detail: n,
4592
4607
  bubbles: !0,
@@ -4607,11 +4622,11 @@ var Ro = "borda-tour-widget", Mo = "undefined" != typeof HTMLElement ? HTMLEleme
4607
4622
  }));
4608
4623
  }
4609
4624
  };
4610
- function $o() {
4611
- return customElements.get(Io.tagName);
4612
- }
4613
4625
  function Bo() {
4614
- $o() || customElements.define(Io.tagName, Io);
4626
+ return customElements.get($o.tagName);
4627
+ }
4628
+ function Ho() {
4629
+ Bo() || customElements.define($o.tagName, $o);
4615
4630
  }
4616
- di && (window.bordaWidget = xo, window.defineBordaElement = Bo);
4617
- export { ui as AnimationEffect, Vi as BordaButtonShape, Ki as BordaButtonType, qi as BordaButtonVariant, Yr as BordaEvent, wi as BordaScrollAppearance, yo as BordaTooltipArrowSide, Ei as BordaTooltipTransition, oo as BordaTourImageVariant, fo as BordaTourProgressVariant, li as ComponentAriaHaspopup, ai as ComponentAriaPressed, oi as ComponentPlacement, si as ComponentShape, ii as ComponentSize, ci as OverrideLayer, Mo as SAFE_HTML_ELEMENT, Ro as TAG_NAME, to as bordaTourFinishButtonDefault, eo as bordaTourNextButtonDefault, Qi as bordaTourPrevButtonDefault, no as bordaTourSkipButtonDefault, Bo as defineBordaElement, Xr as getBordaContext, $o as getBordaElement, Wr as setBordaContext, xo as useBorda, Ci as useBordaAnimation, Lo as useBordaConfig, ki as useBordaController, Pi as useBordaHighlight, Di as useBordaKeyboard, Li as useBordaOverrides, Ri as useBordaResponsive, ji as useBordaScroll, Fi as useBordaSkip, zi as useBordaVisibility, Zr as useEventEmitter, yi as useOverlay, To as useTooltipArrow, Eo as useTooltipPosition };
4631
+ di && (window.bordaWidget = Lo, window.defineBordaElement = Ho);
4632
+ export { ui as AnimationEffect, qi as BordaButtonShape, Gi as BordaButtonType, Ki as BordaButtonVariant, Yr as BordaEvent, wi as BordaScrollAppearance, To as BordaTooltipArrowSide, Ei as BordaTooltipTransition, so as BordaTourImageVariant, po as BordaTourProgressVariant, li as ComponentAriaHaspopup, ai as ComponentAriaPressed, oi as ComponentPlacement, si as ComponentShape, ii as ComponentSize, ci as OverrideLayer, Io as SAFE_HTML_ELEMENT, Mo as TAG_NAME, no as bordaTourFinishButtonDefault, to as bordaTourNextButtonDefault, eo as bordaTourPrevButtonDefault, ro as bordaTourSkipButtonDefault, Ho as defineBordaElement, Xr as getBordaContext, Bo as getBordaElement, Wr as setBordaContext, Lo as useBorda, Ci as useBordaAnimation, Ro as useBordaConfig, Pi as useBordaController, Ai as useBordaHighlight, xi as useBordaKeyboard, Ri as useBordaOverrides, Mi as useBordaResponsive, Fi as useBordaScroll, Ui as useBordaSkip, zi as useBordaVisibility, Zr as useEventEmitter, yi as useOverlay, wo as useTooltipArrow, Oo as useTooltipPosition };