react-shepherd 6.1.0 → 6.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -13,15 +13,15 @@ var cn;
13
13
  function Ar() {
14
14
  if (cn) return Ye;
15
15
  cn = 1;
16
- var e = kn, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
17
- function o(c, a, u) {
16
+ var e = kn, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
17
+ function i(c, a, u) {
18
18
  var f, h = {}, d = null, g = null;
19
19
  u !== void 0 && (d = "" + u), a.key !== void 0 && (d = "" + a.key), a.ref !== void 0 && (g = a.ref);
20
20
  for (f in a) r.call(a, f) && !s.hasOwnProperty(f) && (h[f] = a[f]);
21
21
  if (c && c.defaultProps) for (f in a = c.defaultProps, a) h[f] === void 0 && (h[f] = a[f]);
22
- return { $$typeof: t, type: c, key: d, ref: g, props: h, _owner: i.current };
22
+ return { $$typeof: t, type: c, key: d, ref: g, props: h, _owner: o.current };
23
23
  }
24
- return Ye.Fragment = n, Ye.jsx = o, Ye.jsxs = o, Ye;
24
+ return Ye.Fragment = n, Ye.jsx = i, Ye.jsxs = i, Ye;
25
25
  }
26
26
  var ze = {};
27
27
  /**
@@ -36,7 +36,7 @@ var ze = {};
36
36
  var an;
37
37
  function Pr() {
38
38
  return an || (an = 1, process.env.NODE_ENV !== "production" && function() {
39
- var e = kn, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), v = Symbol.iterator, x = "@@iterator";
39
+ var e = kn, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), c = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), v = Symbol.iterator, x = "@@iterator";
40
40
  function S(l) {
41
41
  if (l === null || typeof l != "object")
42
42
  return null;
@@ -55,16 +55,16 @@ function Pr() {
55
55
  {
56
56
  var E = w.ReactDebugCurrentFrame, A = E.getStackAddendum();
57
57
  A !== "" && (p += "%s", b = b.concat([A]));
58
- var k = b.map(function(C) {
58
+ var I = b.map(function(C) {
59
59
  return String(C);
60
60
  });
61
- k.unshift("Warning: " + p), Function.prototype.apply.call(console[l], console, k);
61
+ I.unshift("Warning: " + p), Function.prototype.apply.call(console[l], console, I);
62
62
  }
63
63
  }
64
- var y = !1, m = !1, T = !1, B = !1, ie = !1, H;
64
+ var y = !1, m = !1, T = !1, B = !1, oe = !1, H;
65
65
  H = Symbol.for("react.module.reference");
66
66
  function K(l) {
67
- return !!(typeof l == "string" || typeof l == "function" || l === r || l === s || ie || l === i || l === u || l === f || B || l === g || y || m || T || typeof l == "object" && l !== null && (l.$$typeof === d || l.$$typeof === h || l.$$typeof === o || l.$$typeof === c || l.$$typeof === a || // This needs to include all possible module reference object
67
+ return !!(typeof l == "string" || typeof l == "function" || l === r || l === s || oe || l === o || l === u || l === f || B || l === g || y || m || T || typeof l == "object" && l !== null && (l.$$typeof === d || l.$$typeof === h || l.$$typeof === i || l.$$typeof === c || l.$$typeof === a || // This needs to include all possible module reference object
68
68
  // types supported by any Flight configuration anywhere since
69
69
  // we don't know which Flight build this will end up being used
70
70
  // with.
@@ -94,7 +94,7 @@ function Pr() {
94
94
  return "Portal";
95
95
  case s:
96
96
  return "Profiler";
97
- case i:
97
+ case o:
98
98
  return "StrictMode";
99
99
  case u:
100
100
  return "Suspense";
@@ -106,7 +106,7 @@ function Pr() {
106
106
  case c:
107
107
  var p = l;
108
108
  return W(p) + ".Consumer";
109
- case o:
109
+ case i:
110
110
  var b = l;
111
111
  return W(b._context) + ".Provider";
112
112
  case a:
@@ -115,9 +115,9 @@ function Pr() {
115
115
  var E = l.displayName || null;
116
116
  return E !== null ? E : j(l.type) || "Memo";
117
117
  case d: {
118
- var A = l, k = A._payload, C = A._init;
118
+ var A = l, I = A._payload, C = A._init;
119
119
  try {
120
- return j(C(k));
120
+ return j(C(I));
121
121
  } catch {
122
122
  return null;
123
123
  }
@@ -218,8 +218,8 @@ function Pr() {
218
218
  bt = !0;
219
219
  var A = Error.prepareStackTrace;
220
220
  Error.prepareStackTrace = void 0;
221
- var k;
222
- k = gt.current, gt.current = null, er();
221
+ var I;
222
+ I = gt.current, gt.current = null, er();
223
223
  try {
224
224
  if (p) {
225
225
  var C = function() {
@@ -272,7 +272,7 @@ function Pr() {
272
272
  }
273
273
  }
274
274
  } finally {
275
- bt = !1, gt.current = k, tr(), Error.prepareStackTrace = A;
275
+ bt = !1, gt.current = I, tr(), Error.prepareStackTrace = A;
276
276
  }
277
277
  var Pe = l ? l.displayName || l.name : "", _e = Pe ? tt(Pe) : "";
278
278
  return typeof l == "function" && nt.set(l, _e), _e;
@@ -280,7 +280,7 @@ function Pr() {
280
280
  function rr(l, p, b) {
281
281
  return qt(l, !1);
282
282
  }
283
- function ir(l) {
283
+ function or(l) {
284
284
  var p = l.prototype;
285
285
  return !!(p && p.isReactComponent);
286
286
  }
@@ -288,7 +288,7 @@ function Pr() {
288
288
  if (l == null)
289
289
  return "";
290
290
  if (typeof l == "function")
291
- return qt(l, ir(l));
291
+ return qt(l, or(l));
292
292
  if (typeof l == "string")
293
293
  return tt(l);
294
294
  switch (l) {
@@ -304,9 +304,9 @@ function Pr() {
304
304
  case h:
305
305
  return rt(l.type, p, b);
306
306
  case d: {
307
- var E = l, A = E._payload, k = E._init;
307
+ var E = l, A = E._payload, I = E._init;
308
308
  try {
309
- return rt(k(A), p, b);
309
+ return rt(I(A), p, b);
310
310
  } catch {
311
311
  }
312
312
  }
@@ -314,18 +314,18 @@ function Pr() {
314
314
  return "";
315
315
  }
316
316
  var He = Object.prototype.hasOwnProperty, Jt = {}, Kt = w.ReactDebugCurrentFrame;
317
- function it(l) {
317
+ function ot(l) {
318
318
  if (l) {
319
319
  var p = l._owner, b = rt(l.type, l._source, p ? p.type : null);
320
320
  Kt.setExtraStackFrame(b);
321
321
  } else
322
322
  Kt.setExtraStackFrame(null);
323
323
  }
324
- function or(l, p, b, E, A) {
324
+ function ir(l, p, b, E, A) {
325
325
  {
326
- var k = Function.call.bind(He);
326
+ var I = Function.call.bind(He);
327
327
  for (var C in l)
328
- if (k(l, C)) {
328
+ if (I(l, C)) {
329
329
  var O = void 0;
330
330
  try {
331
331
  if (typeof l[C] != "function") {
@@ -336,7 +336,7 @@ function Pr() {
336
336
  } catch (M) {
337
337
  O = M;
338
338
  }
339
- O && !(O instanceof Error) && (it(A), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", E || "React class", b, C, typeof O), it(null)), O instanceof Error && !(O.message in Jt) && (Jt[O.message] = !0, it(A), _("Failed %s type: %s", b, O.message), it(null));
339
+ O && !(O instanceof Error) && (ot(A), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", E || "React class", b, C, typeof O), ot(null)), O instanceof Error && !(O.message in Jt) && (Jt[O.message] = !0, ot(A), _("Failed %s type: %s", b, O.message), ot(null));
340
340
  }
341
341
  }
342
342
  }
@@ -415,7 +415,7 @@ function Pr() {
415
415
  });
416
416
  }
417
417
  }
418
- var gr = function(l, p, b, E, A, k, C) {
418
+ var gr = function(l, p, b, E, A, I, C) {
419
419
  var O = {
420
420
  // This tag allows us to uniquely identify this as a React Element
421
421
  $$typeof: t,
@@ -425,7 +425,7 @@ function Pr() {
425
425
  ref: b,
426
426
  props: C,
427
427
  // Record the component responsible for creating this element.
428
- _owner: k
428
+ _owner: I
429
429
  };
430
430
  return O._store = {}, Object.defineProperty(O._store, "validated", {
431
431
  configurable: !1,
@@ -446,14 +446,14 @@ function Pr() {
446
446
  };
447
447
  function mr(l, p, b, E, A) {
448
448
  {
449
- var k, C = {}, O = null, $ = null;
449
+ var I, C = {}, O = null, $ = null;
450
450
  b !== void 0 && (Gt(b), O = "" + b), fr(p) && (Gt(p.key), O = "" + p.key), ur(p) && ($ = p.ref, dr(p, A));
451
- for (k in p)
452
- He.call(p, k) && !ar.hasOwnProperty(k) && (C[k] = p[k]);
451
+ for (I in p)
452
+ He.call(p, I) && !ar.hasOwnProperty(I) && (C[I] = p[I]);
453
453
  if (l && l.defaultProps) {
454
454
  var M = l.defaultProps;
455
- for (k in M)
456
- C[k] === void 0 && (C[k] = M[k]);
455
+ for (I in M)
456
+ C[I] === void 0 && (C[I] = M[I]);
457
457
  }
458
458
  if (O || $) {
459
459
  var D = typeof l == "function" ? l.displayName || l.name || "Unknown" : l;
@@ -530,7 +530,7 @@ Check the top-level render call using <` + b + ">.");
530
530
  else if (l) {
531
531
  var A = S(l);
532
532
  if (typeof A == "function" && A !== l.entries)
533
- for (var k = A.call(l), C; !(C = k.next()).done; )
533
+ for (var I = A.call(l), C; !(C = I.next()).done; )
534
534
  xt(C.value) && rn(C.value, p);
535
535
  }
536
536
  }
@@ -551,7 +551,7 @@ Check the top-level render call using <` + b + ">.");
551
551
  return;
552
552
  if (b) {
553
553
  var E = j(p);
554
- or(b, l.props, "prop", E, l);
554
+ ir(b, l.props, "prop", E, l);
555
555
  } else if (p.PropTypes !== void 0 && !wt) {
556
556
  wt = !0;
557
557
  var A = j(p);
@@ -573,7 +573,7 @@ Check the top-level render call using <` + b + ">.");
573
573
  }
574
574
  }
575
575
  var sn = {};
576
- function ln(l, p, b, E, A, k) {
576
+ function ln(l, p, b, E, A, I) {
577
577
  {
578
578
  var C = K(l);
579
579
  if (!C) {
@@ -584,7 +584,7 @@ Check the top-level render call using <` + b + ">.");
584
584
  var M;
585
585
  l === null ? M = "null" : vt(l) ? M = "array" : l !== void 0 && l.$$typeof === t ? (M = "<" + (j(l.type) || "Unknown") + " />", O = " Did you accidentally export a JSX literal instead of a component?") : M = typeof l, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", M, O);
586
586
  }
587
- var D = mr(l, p, b, A, k);
587
+ var D = mr(l, p, b, A, I);
588
588
  if (D == null)
589
589
  return D;
590
590
  if (C) {
@@ -629,7 +629,7 @@ React keys must be passed directly to JSX without using spread:
629
629
  }
630
630
  process.env.NODE_ENV === "production" ? Ct.exports = Ar() : Ct.exports = Pr();
631
631
  var kr = Ct.exports;
632
- /*! shepherd.js 13.0.2 */
632
+ /*! shepherd.js 14.0.1 */
633
633
  function Ir(e) {
634
634
  return e instanceof Element;
635
635
  }
@@ -655,12 +655,12 @@ class Ft {
655
655
  * @param {boolean} once
656
656
  * @returns
657
657
  */
658
- on(t, n, r, i = !1) {
658
+ on(t, n, r, o = !1) {
659
659
  var s;
660
660
  return N(this.bindings) && (this.bindings = {}), N(this.bindings[t]) && (this.bindings[t] = []), (s = this.bindings[t]) == null || s.push({
661
661
  handler: n,
662
662
  ctx: r,
663
- once: i
663
+ once: o
664
664
  }), this;
665
665
  }
666
666
  /**
@@ -688,10 +688,10 @@ class Ft {
688
688
  delete this.bindings[t];
689
689
  else {
690
690
  var r;
691
- (r = this.bindings[t]) == null || r.forEach((i, s) => {
692
- if (i.handler === n) {
693
- var o;
694
- (o = this.bindings[t]) == null || o.splice(s, 1);
691
+ (r = this.bindings[t]) == null || r.forEach((o, s) => {
692
+ if (o.handler === n) {
693
+ var i;
694
+ (i = this.bindings[t]) == null || i.splice(s, 1);
695
695
  }
696
696
  });
697
697
  }
@@ -707,12 +707,12 @@ class Ft {
707
707
  trigger(t, ...n) {
708
708
  if (!N(this.bindings) && this.bindings[t]) {
709
709
  var r;
710
- (r = this.bindings[t]) == null || r.forEach((i, s) => {
710
+ (r = this.bindings[t]) == null || r.forEach((o, s) => {
711
711
  const {
712
- ctx: o,
712
+ ctx: i,
713
713
  handler: c,
714
714
  once: a
715
- } = i, u = o || this;
715
+ } = o, u = i || this;
716
716
  if (c.apply(u, n), a) {
717
717
  var f;
718
718
  (f = this.bindings[t]) == null || f.splice(s, 1);
@@ -785,22 +785,22 @@ function Dr(e) {
785
785
  }
786
786
  function jr(e, t, n) {
787
787
  const r = {};
788
- for (const i of Fr(e)) {
788
+ for (const o of Fr(e)) {
789
789
  const s = [];
790
790
  for (const a of e)
791
- Lr(a, i) && s.push(a[i]);
791
+ Lr(a, o) && s.push(a[o]);
792
792
  if (s.length === 0)
793
793
  continue;
794
- const o = t.metaDataUpdater(n, {
795
- key: i,
794
+ const i = t.metaDataUpdater(n, {
795
+ key: o,
796
796
  parents: e
797
- }), c = Ln(s, t, o);
798
- c !== be.skip && (i === "__proto__" ? Object.defineProperty(r, i, {
797
+ }), c = Ln(s, t, i);
798
+ c !== be.skip && (o === "__proto__" ? Object.defineProperty(r, o, {
799
799
  value: c,
800
800
  configurable: !0,
801
801
  enumerable: !0,
802
802
  writable: !0
803
- }) : r[i] = c);
803
+ }) : r[o] = c);
804
804
  }
805
805
  return r;
806
806
  }
@@ -829,8 +829,8 @@ function Lt(...e) {
829
829
  }
830
830
  function $r(e, t) {
831
831
  const n = Vr(e, r);
832
- function r(...i) {
833
- return Ln(i, n, t);
832
+ function r(...o) {
833
+ return Ln(o, n, t);
834
834
  }
835
835
  return r;
836
836
  }
@@ -838,7 +838,7 @@ function Vr(e, t) {
838
838
  var n, r;
839
839
  return {
840
840
  defaultMergeFunctions: St,
841
- mergeFunctions: V({}, St, Object.fromEntries(Object.entries(e).filter(([i, s]) => Object.hasOwn(St, i)).map(([i, s]) => s === !1 ? [i, Fn] : [i, s]))),
841
+ mergeFunctions: V({}, St, Object.fromEntries(Object.entries(e).filter(([o, s]) => Object.hasOwn(St, o)).map(([o, s]) => s === !1 ? [o, Fn] : [o, s]))),
842
842
  metaDataUpdater: (n = e.metaDataUpdater) != null ? n : Mr,
843
843
  deepmerge: t,
844
844
  useImplicitDefaultMerging: (r = e.enableImplicitDefaultMerging) != null ? r : !1,
@@ -852,8 +852,8 @@ function Ln(e, t, n) {
852
852
  return Ot(e, t, n);
853
853
  const r = un(e[0]);
854
854
  if (r !== 0 && r !== 5) {
855
- for (let i = 1; i < e.length; i++)
856
- if (un(e[i]) !== r)
855
+ for (let o = 1; o < e.length; o++)
856
+ if (un(e[o]) !== r)
857
857
  return Ot(e, t, n);
858
858
  }
859
859
  switch (r) {
@@ -892,8 +892,8 @@ function Ot(e, t, n) {
892
892
  function Dt(e) {
893
893
  const t = Object.getOwnPropertyNames(e.constructor.prototype);
894
894
  for (let n = 0; n < t.length; n++) {
895
- const r = t[n], i = e[r];
896
- r !== "constructor" && typeof i == "function" && (e[r] = i.bind(e));
895
+ const r = t[n], o = e[r];
896
+ r !== "constructor" && typeof o == "function" && (e[r] = o.bind(e));
897
897
  }
898
898
  return e;
899
899
  }
@@ -912,10 +912,10 @@ function Jr(e) {
912
912
  } = e.options.advanceOn || {};
913
913
  if (t) {
914
914
  const r = qr(e, n);
915
- let i = null;
916
- if (!N(n) && (i = document.querySelector(n), !i))
915
+ let o = null;
916
+ if (!N(n) && (o = document.querySelector(n), !o))
917
917
  return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);
918
- i ? (i.addEventListener(t, r), e.on("destroy", () => i.removeEventListener(t, r))) : (document.body.addEventListener(t, r, !0), e.on("destroy", () => document.body.removeEventListener(t, r, !0)));
918
+ o ? (o.addEventListener(t, r), e.on("destroy", () => o.removeEventListener(t, r))) : (document.body.addEventListener(t, r, !0), e.on("destroy", () => document.body.removeEventListener(t, r, !0)));
919
919
  } else
920
920
  return console.error("advanceOn was defined, but no event name was passed.");
921
921
  }
@@ -951,7 +951,7 @@ function Bn() {
951
951
  return e = Math.floor(e / 16), (t == "x" ? n : n & 3 | 8).toString(16);
952
952
  });
953
953
  }
954
- const De = Math.min, Ee = Math.max, lt = Math.round, ot = Math.floor, ge = (e) => ({
954
+ const De = Math.min, Ee = Math.max, lt = Math.round, it = Math.floor, ge = (e) => ({
955
955
  x: e,
956
956
  y: e
957
957
  }), Zr = {
@@ -987,41 +987,41 @@ function Be(e) {
987
987
  function Nt(e) {
988
988
  return jt(Be(e));
989
989
  }
990
- function ei(e, t, n) {
990
+ function eo(e, t, n) {
991
991
  n === void 0 && (n = !1);
992
- const r = ft(e), i = Nt(e), s = Bt(i);
993
- let o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
994
- return t.reference[s] > t.floating[s] && (o = ct(o)), [o, ct(o)];
992
+ const r = ft(e), o = Nt(e), s = Bt(o);
993
+ let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
994
+ return t.reference[s] > t.floating[s] && (i = ct(i)), [i, ct(i)];
995
995
  }
996
- function ti(e) {
996
+ function to(e) {
997
997
  const t = ct(e);
998
998
  return [Pt(e), t, Pt(t)];
999
999
  }
1000
1000
  function Pt(e) {
1001
1001
  return e.replace(/start|end/g, (t) => Qr[t]);
1002
1002
  }
1003
- function ni(e, t, n) {
1004
- const r = ["left", "right"], i = ["right", "left"], s = ["top", "bottom"], o = ["bottom", "top"];
1003
+ function no(e, t, n) {
1004
+ const r = ["left", "right"], o = ["right", "left"], s = ["top", "bottom"], i = ["bottom", "top"];
1005
1005
  switch (e) {
1006
1006
  case "top":
1007
1007
  case "bottom":
1008
- return n ? t ? i : r : t ? r : i;
1008
+ return n ? t ? o : r : t ? r : o;
1009
1009
  case "left":
1010
1010
  case "right":
1011
- return t ? s : o;
1011
+ return t ? s : i;
1012
1012
  default:
1013
1013
  return [];
1014
1014
  }
1015
1015
  }
1016
- function ri(e, t, n, r) {
1017
- const i = ft(e);
1018
- let s = ni(Re(e), n === "start", r);
1019
- return i && (s = s.map((o) => o + "-" + i), t && (s = s.concat(s.map(Pt)))), s;
1016
+ function ro(e, t, n, r) {
1017
+ const o = ft(e);
1018
+ let s = no(Re(e), n === "start", r);
1019
+ return o && (s = s.map((i) => i + "-" + o), t && (s = s.concat(s.map(Pt)))), s;
1020
1020
  }
1021
1021
  function ct(e) {
1022
1022
  return e.replace(/left|right|bottom|top/g, (t) => Zr[t]);
1023
1023
  }
1024
- function ii(e) {
1024
+ function oo(e) {
1025
1025
  return V({
1026
1026
  top: 0,
1027
1027
  right: 0,
@@ -1030,7 +1030,7 @@ function ii(e) {
1030
1030
  }, e);
1031
1031
  }
1032
1032
  function Nn(e) {
1033
- return typeof e != "number" ? ii(e) : {
1033
+ return typeof e != "number" ? oo(e) : {
1034
1034
  top: e,
1035
1035
  right: e,
1036
1036
  bottom: e,
@@ -1042,32 +1042,32 @@ function at(e) {
1042
1042
  x: t,
1043
1043
  y: n,
1044
1044
  width: r,
1045
- height: i
1045
+ height: o
1046
1046
  } = e;
1047
1047
  return {
1048
1048
  width: r,
1049
- height: i,
1049
+ height: o,
1050
1050
  top: n,
1051
1051
  left: t,
1052
1052
  right: t + r,
1053
- bottom: n + i,
1053
+ bottom: n + o,
1054
1054
  x: t,
1055
1055
  y: n
1056
1056
  };
1057
1057
  }
1058
- const oi = ["mainAxis", "crossAxis", "fallbackPlacements", "fallbackStrategy", "fallbackAxisSideDirection", "flipAlignment"], si = ["mainAxis", "crossAxis", "limiter"];
1058
+ const io = ["mainAxis", "crossAxis", "fallbackPlacements", "fallbackStrategy", "fallbackAxisSideDirection", "flipAlignment"], so = ["mainAxis", "crossAxis", "limiter"];
1059
1059
  function dn(e, t, n) {
1060
1060
  let {
1061
1061
  reference: r,
1062
- floating: i
1062
+ floating: o
1063
1063
  } = e;
1064
- const s = Be(t), o = Nt(t), c = Bt(o), a = Re(t), u = s === "y", f = r.x + r.width / 2 - i.width / 2, h = r.y + r.height / 2 - i.height / 2, d = r[c] / 2 - i[c] / 2;
1064
+ const s = Be(t), i = Nt(t), c = Bt(i), a = Re(t), u = s === "y", f = r.x + r.width / 2 - o.width / 2, h = r.y + r.height / 2 - o.height / 2, d = r[c] / 2 - o[c] / 2;
1065
1065
  let g;
1066
1066
  switch (a) {
1067
1067
  case "top":
1068
1068
  g = {
1069
1069
  x: f,
1070
- y: r.y - i.height
1070
+ y: r.y - o.height
1071
1071
  };
1072
1072
  break;
1073
1073
  case "bottom":
@@ -1084,7 +1084,7 @@ function dn(e, t, n) {
1084
1084
  break;
1085
1085
  case "left":
1086
1086
  g = {
1087
- x: r.x - i.width,
1087
+ x: r.x - o.width,
1088
1088
  y: h
1089
1089
  };
1090
1090
  break;
@@ -1096,25 +1096,25 @@ function dn(e, t, n) {
1096
1096
  }
1097
1097
  switch (ft(t)) {
1098
1098
  case "start":
1099
- g[o] -= d * (n && u ? -1 : 1);
1099
+ g[i] -= d * (n && u ? -1 : 1);
1100
1100
  break;
1101
1101
  case "end":
1102
- g[o] += d * (n && u ? -1 : 1);
1102
+ g[i] += d * (n && u ? -1 : 1);
1103
1103
  break;
1104
1104
  }
1105
1105
  return g;
1106
1106
  }
1107
- const li = async (e, t, n) => {
1107
+ const lo = async (e, t, n) => {
1108
1108
  const {
1109
1109
  placement: r = "bottom",
1110
- strategy: i = "absolute",
1110
+ strategy: o = "absolute",
1111
1111
  middleware: s = [],
1112
- platform: o
1113
- } = n, c = s.filter(Boolean), a = await (o.isRTL == null ? void 0 : o.isRTL(t));
1114
- let u = await o.getElementRects({
1112
+ platform: i
1113
+ } = n, c = s.filter(Boolean), a = await (i.isRTL == null ? void 0 : i.isRTL(t));
1114
+ let u = await i.getElementRects({
1115
1115
  reference: e,
1116
1116
  floating: t,
1117
- strategy: i
1117
+ strategy: o
1118
1118
  }), {
1119
1119
  x: f,
1120
1120
  y: h
@@ -1133,10 +1133,10 @@ const li = async (e, t, n) => {
1133
1133
  y: h,
1134
1134
  initialPlacement: r,
1135
1135
  placement: d,
1136
- strategy: i,
1136
+ strategy: o,
1137
1137
  middlewareData: g,
1138
1138
  rects: u,
1139
- platform: o,
1139
+ platform: i,
1140
1140
  elements: {
1141
1141
  reference: e,
1142
1142
  floating: t
@@ -1144,10 +1144,10 @@ const li = async (e, t, n) => {
1144
1144
  });
1145
1145
  f = _ ?? f, h = R ?? h, g = V({}, g, {
1146
1146
  [S]: V({}, g[S], y)
1147
- }), m && v <= 50 && (v++, typeof m == "object" && (m.placement && (d = m.placement), m.rects && (u = m.rects === !0 ? await o.getElementRects({
1147
+ }), m && v <= 50 && (v++, typeof m == "object" && (m.placement && (d = m.placement), m.rects && (u = m.rects === !0 ? await i.getElementRects({
1148
1148
  reference: e,
1149
1149
  floating: t,
1150
- strategy: i
1150
+ strategy: o
1151
1151
  }) : m.rects), {
1152
1152
  x: f,
1153
1153
  y: h
@@ -1157,7 +1157,7 @@ const li = async (e, t, n) => {
1157
1157
  x: f,
1158
1158
  y: h,
1159
1159
  placement: d,
1160
- strategy: i,
1160
+ strategy: o,
1161
1161
  middlewareData: g
1162
1162
  };
1163
1163
  };
@@ -1166,9 +1166,9 @@ async function Wn(e, t) {
1166
1166
  t === void 0 && (t = {});
1167
1167
  const {
1168
1168
  x: r,
1169
- y: i,
1169
+ y: o,
1170
1170
  platform: s,
1171
- rects: o,
1171
+ rects: i,
1172
1172
  elements: c,
1173
1173
  strategy: a
1174
1174
  } = e, {
@@ -1184,10 +1184,10 @@ async function Wn(e, t) {
1184
1184
  strategy: a
1185
1185
  })), _ = h === "floating" ? {
1186
1186
  x: r,
1187
- y: i,
1188
- width: o.floating.width,
1189
- height: o.floating.height
1190
- } : o.reference, R = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c.floating)), y = await (s.isElement == null ? void 0 : s.isElement(R)) ? await (s.getScale == null ? void 0 : s.getScale(R)) || {
1187
+ y: o,
1188
+ width: i.floating.width,
1189
+ height: i.floating.height
1190
+ } : i.reference, R = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c.floating)), y = await (s.isElement == null ? void 0 : s.isElement(R)) ? await (s.getScale == null ? void 0 : s.getScale(R)) || {
1191
1191
  x: 1,
1192
1192
  y: 1
1193
1193
  } : {
@@ -1206,16 +1206,16 @@ async function Wn(e, t) {
1206
1206
  right: (m.right - w.right + v.right) / y.x
1207
1207
  };
1208
1208
  }
1209
- const ci = (e) => ({
1209
+ const co = (e) => ({
1210
1210
  name: "arrow",
1211
1211
  options: e,
1212
1212
  async fn(t) {
1213
1213
  const {
1214
1214
  x: n,
1215
1215
  y: r,
1216
- placement: i,
1216
+ placement: o,
1217
1217
  rects: s,
1218
- platform: o,
1218
+ platform: i,
1219
1219
  elements: c,
1220
1220
  middlewareData: a
1221
1221
  } = t, {
@@ -1227,10 +1227,10 @@ const ci = (e) => ({
1227
1227
  const h = Nn(f), d = {
1228
1228
  x: n,
1229
1229
  y: r
1230
- }, g = Nt(i), v = Bt(g), x = await o.getDimensions(u), S = g === "y", w = S ? "top" : "left", _ = S ? "bottom" : "right", R = S ? "clientHeight" : "clientWidth", y = s.reference[v] + s.reference[g] - d[g] - s.floating[v], m = d[g] - s.reference[g], T = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(u));
1230
+ }, g = Nt(o), v = Bt(g), x = await i.getDimensions(u), S = g === "y", w = S ? "top" : "left", _ = S ? "bottom" : "right", R = S ? "clientHeight" : "clientWidth", y = s.reference[v] + s.reference[g] - d[g] - s.floating[v], m = d[g] - s.reference[g], T = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
1231
1231
  let B = T ? T[R] : 0;
1232
- (!B || !await (o.isElement == null ? void 0 : o.isElement(T))) && (B = c.floating[R] || s.floating[v]);
1233
- const ie = y / 2 - m / 2, H = B / 2 - x[v] / 2 - 1, K = De(h[w], H), U = De(h[_], H), W = K, j = B - x[v] - U, L = B / 2 - x[v] / 2 + ie, X = At(W, L, j), Y = !a.arrow && ft(i) != null && L !== X && s.reference[v] / 2 - (L < W ? K : U) - x[v] / 2 < 0, le = Y ? L < W ? L - W : L - j : 0;
1232
+ (!B || !await (i.isElement == null ? void 0 : i.isElement(T))) && (B = c.floating[R] || s.floating[v]);
1233
+ const oe = y / 2 - m / 2, H = B / 2 - x[v] / 2 - 1, K = De(h[w], H), U = De(h[_], H), W = K, j = B - x[v] - U, L = B / 2 - x[v] / 2 + oe, X = At(W, L, j), Y = !a.arrow && ft(o) != null && L !== X && s.reference[v] / 2 - (L < W ? K : U) - x[v] / 2 < 0, le = Y ? L < W ? L - W : L - j : 0;
1234
1234
  return {
1235
1235
  [g]: d[g] + le,
1236
1236
  data: V({
@@ -1242,15 +1242,15 @@ const ci = (e) => ({
1242
1242
  reset: Y
1243
1243
  };
1244
1244
  }
1245
- }), ai = function(t) {
1245
+ }), ao = function(t) {
1246
1246
  return t === void 0 && (t = {}), {
1247
1247
  name: "flip",
1248
1248
  options: t,
1249
1249
  async fn(n) {
1250
- var r, i;
1250
+ var r, o;
1251
1251
  const {
1252
1252
  placement: s,
1253
- middlewareData: o,
1253
+ middlewareData: i,
1254
1254
  rects: c,
1255
1255
  initialPlacement: a,
1256
1256
  platform: u,
@@ -1262,15 +1262,15 @@ const ci = (e) => ({
1262
1262
  fallbackStrategy: x = "bestFit",
1263
1263
  fallbackAxisSideDirection: S = "none",
1264
1264
  flipAlignment: w = !0
1265
- } = h, _ = In(h, oi);
1266
- if ((r = o.arrow) != null && r.alignmentOffset)
1265
+ } = h, _ = In(h, io);
1266
+ if ((r = i.arrow) != null && r.alignmentOffset)
1267
1267
  return {};
1268
- const R = Re(s), y = Be(a), m = Re(a) === a, T = await (u.isRTL == null ? void 0 : u.isRTL(f.floating)), B = v || (m || !w ? [ct(a)] : ti(a)), ie = S !== "none";
1269
- !v && ie && B.push(...ri(a, w, S, T));
1268
+ const R = Re(s), y = Be(a), m = Re(a) === a, T = await (u.isRTL == null ? void 0 : u.isRTL(f.floating)), B = v || (m || !w ? [ct(a)] : to(a)), oe = S !== "none";
1269
+ !v && oe && B.push(...ro(a, w, S, T));
1270
1270
  const H = [a, ...B], K = await Wn(n, _), U = [];
1271
- let W = ((i = o.flip) == null ? void 0 : i.overflows) || [];
1271
+ let W = ((o = i.flip) == null ? void 0 : o.overflows) || [];
1272
1272
  if (d && U.push(K[R]), g) {
1273
- const Y = ei(s, c, T);
1273
+ const Y = eo(s, c, T);
1274
1274
  U.push(K[Y[0]], K[Y[1]]);
1275
1275
  }
1276
1276
  if (W = [...W, {
@@ -1278,7 +1278,7 @@ const ci = (e) => ({
1278
1278
  overflows: U
1279
1279
  }], !U.every((Y) => Y <= 0)) {
1280
1280
  var j, L;
1281
- const Y = (((j = o.flip) == null ? void 0 : j.index) || 0) + 1, le = H[Y];
1281
+ const Y = (((j = i.flip) == null ? void 0 : j.index) || 0) + 1, le = H[Y];
1282
1282
  if (le)
1283
1283
  return {
1284
1284
  data: {
@@ -1295,7 +1295,7 @@ const ci = (e) => ({
1295
1295
  case "bestFit": {
1296
1296
  var X;
1297
1297
  const ce = (X = W.filter((Q) => {
1298
- if (ie) {
1298
+ if (oe) {
1299
1299
  const ee = Be(Q.placement);
1300
1300
  return ee === y || // Create a bias to the `y` side axis due to horizontal
1301
1301
  // reading directions favoring greater width.
@@ -1320,16 +1320,16 @@ const ci = (e) => ({
1320
1320
  return {};
1321
1321
  }
1322
1322
  };
1323
- }, ui = function(t) {
1323
+ }, uo = function(t) {
1324
1324
  return t === void 0 && (t = {}), {
1325
1325
  name: "shift",
1326
1326
  options: t,
1327
1327
  async fn(n) {
1328
1328
  const {
1329
1329
  x: r,
1330
- y: i,
1330
+ y: o,
1331
1331
  placement: s
1332
- } = n, o = je(t, n), {
1332
+ } = n, i = je(t, n), {
1333
1333
  mainAxis: c = !0,
1334
1334
  crossAxis: a = !1,
1335
1335
  limiter: u = {
@@ -1344,9 +1344,9 @@ const ci = (e) => ({
1344
1344
  };
1345
1345
  }
1346
1346
  }
1347
- } = o, f = In(o, si), h = {
1347
+ } = i, f = In(i, so), h = {
1348
1348
  x: r,
1349
- y: i
1349
+ y: o
1350
1350
  }, d = await Wn(n, f), g = Be(Re(s)), v = jt(g);
1351
1351
  let x = h[v], S = h[g];
1352
1352
  if (c) {
@@ -1364,20 +1364,20 @@ const ci = (e) => ({
1364
1364
  return V({}, w, {
1365
1365
  data: {
1366
1366
  x: w.x - r,
1367
- y: w.y - i
1367
+ y: w.y - o
1368
1368
  }
1369
1369
  });
1370
1370
  }
1371
1371
  };
1372
- }, fi = function(t) {
1372
+ }, fo = function(t) {
1373
1373
  return t === void 0 && (t = {}), {
1374
1374
  options: t,
1375
1375
  fn(n) {
1376
1376
  const {
1377
1377
  x: r,
1378
- y: i,
1378
+ y: o,
1379
1379
  placement: s,
1380
- rects: o,
1380
+ rects: i,
1381
1381
  middlewareData: c
1382
1382
  } = n, {
1383
1383
  offset: a = 0,
@@ -1385,7 +1385,7 @@ const ci = (e) => ({
1385
1385
  crossAxis: f = !0
1386
1386
  } = je(t, n), h = {
1387
1387
  x: r,
1388
- y: i
1388
+ y: o
1389
1389
  }, d = Be(s), g = jt(d);
1390
1390
  let v = h[g], x = h[d];
1391
1391
  const S = je(a, n), w = typeof S == "number" ? {
@@ -1396,12 +1396,12 @@ const ci = (e) => ({
1396
1396
  crossAxis: 0
1397
1397
  }, S);
1398
1398
  if (u) {
1399
- const y = g === "y" ? "height" : "width", m = o.reference[g] - o.floating[y] + w.mainAxis, T = o.reference[g] + o.reference[y] - w.mainAxis;
1399
+ const y = g === "y" ? "height" : "width", m = i.reference[g] - i.floating[y] + w.mainAxis, T = i.reference[g] + i.reference[y] - w.mainAxis;
1400
1400
  v < m ? v = m : v > T && (v = T);
1401
1401
  }
1402
1402
  if (f) {
1403
1403
  var _, R;
1404
- const y = g === "y" ? "width" : "height", m = ["top", "left"].includes(Re(s)), T = o.reference[d] - o.floating[y] + (m && ((_ = c.offset) == null ? void 0 : _[d]) || 0) + (m ? 0 : w.crossAxis), B = o.reference[d] + o.reference[y] + (m ? 0 : ((R = c.offset) == null ? void 0 : R[d]) || 0) - (m ? w.crossAxis : 0);
1404
+ const y = g === "y" ? "width" : "height", m = ["top", "left"].includes(Re(s)), T = i.reference[d] - i.floating[y] + (m && ((_ = c.offset) == null ? void 0 : _[d]) || 0) + (m ? 0 : w.crossAxis), B = i.reference[d] + i.reference[y] + (m ? 0 : ((R = c.offset) == null ? void 0 : R[d]) || 0) - (m ? w.crossAxis : 0);
1405
1405
  x < T ? x = T : x > B && (x = B);
1406
1406
  }
1407
1407
  return {
@@ -1428,7 +1428,7 @@ function $n(e) {
1428
1428
  function te(e) {
1429
1429
  return e instanceof Element || e instanceof q(e).Element;
1430
1430
  }
1431
- function oe(e) {
1431
+ function ie(e) {
1432
1432
  return e instanceof HTMLElement || e instanceof q(e).HTMLElement;
1433
1433
  }
1434
1434
  function hn(e) {
@@ -1439,11 +1439,11 @@ function Ze(e) {
1439
1439
  overflow: t,
1440
1440
  overflowX: n,
1441
1441
  overflowY: r,
1442
- display: i
1442
+ display: o
1443
1443
  } = ne(e);
1444
- return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(i);
1444
+ return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
1445
1445
  }
1446
- function di(e) {
1446
+ function ho(e) {
1447
1447
  return ["table", "td", "th"].includes(Ve(e));
1448
1448
  }
1449
1449
  function dt(e) {
@@ -1459,9 +1459,9 @@ function Wt(e) {
1459
1459
  const t = $t(), n = te(e) ? ne(e) : e;
1460
1460
  return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
1461
1461
  }
1462
- function hi(e) {
1462
+ function po(e) {
1463
1463
  let t = me(e);
1464
- for (; oe(t) && !Ne(t); ) {
1464
+ for (; ie(t) && !Ne(t); ) {
1465
1465
  if (Wt(t))
1466
1466
  return t;
1467
1467
  if (dt(t))
@@ -1502,19 +1502,19 @@ function me(e) {
1502
1502
  }
1503
1503
  function Vn(e) {
1504
1504
  const t = me(e);
1505
- return Ne(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : oe(t) && Ze(t) ? t : Vn(t);
1505
+ return Ne(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ie(t) && Ze(t) ? t : Vn(t);
1506
1506
  }
1507
1507
  function Ke(e, t, n) {
1508
1508
  var r;
1509
1509
  t === void 0 && (t = []), n === void 0 && (n = !0);
1510
- const i = Vn(e), s = i === ((r = e.ownerDocument) == null ? void 0 : r.body), o = q(i);
1511
- return s ? t.concat(o, o.visualViewport || [], Ze(i) ? i : [], o.frameElement && n ? Ke(o.frameElement) : []) : t.concat(i, Ke(i, [], n));
1510
+ const o = Vn(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = q(o);
1511
+ return s ? t.concat(i, i.visualViewport || [], Ze(o) ? o : [], i.frameElement && n ? Ke(i.frameElement) : []) : t.concat(o, Ke(o, [], n));
1512
1512
  }
1513
1513
  function Hn(e) {
1514
1514
  const t = ne(e);
1515
1515
  let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
1516
- const i = oe(e), s = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, c = lt(n) !== s || lt(r) !== o;
1517
- return c && (n = s, r = o), {
1516
+ const o = ie(e), s = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, c = lt(n) !== s || lt(r) !== i;
1517
+ return c && (n = s, r = i), {
1518
1518
  width: n,
1519
1519
  height: r,
1520
1520
  $: c
@@ -1525,37 +1525,37 @@ function Vt(e) {
1525
1525
  }
1526
1526
  function Fe(e) {
1527
1527
  const t = Vt(e);
1528
- if (!oe(t))
1528
+ if (!ie(t))
1529
1529
  return ge(1);
1530
1530
  const n = t.getBoundingClientRect(), {
1531
1531
  width: r,
1532
- height: i,
1532
+ height: o,
1533
1533
  $: s
1534
1534
  } = Hn(t);
1535
- let o = (s ? lt(n.width) : n.width) / r, c = (s ? lt(n.height) : n.height) / i;
1536
- return (!o || !Number.isFinite(o)) && (o = 1), (!c || !Number.isFinite(c)) && (c = 1), {
1537
- x: o,
1535
+ let i = (s ? lt(n.width) : n.width) / r, c = (s ? lt(n.height) : n.height) / o;
1536
+ return (!i || !Number.isFinite(i)) && (i = 1), (!c || !Number.isFinite(c)) && (c = 1), {
1537
+ x: i,
1538
1538
  y: c
1539
1539
  };
1540
1540
  }
1541
- const pi = /* @__PURE__ */ ge(0);
1541
+ const go = /* @__PURE__ */ ge(0);
1542
1542
  function Un(e) {
1543
1543
  const t = q(e);
1544
- return !$t() || !t.visualViewport ? pi : {
1544
+ return !$t() || !t.visualViewport ? go : {
1545
1545
  x: t.visualViewport.offsetLeft,
1546
1546
  y: t.visualViewport.offsetTop
1547
1547
  };
1548
1548
  }
1549
- function gi(e, t, n) {
1549
+ function mo(e, t, n) {
1550
1550
  return t === void 0 && (t = !1), !n || t && n !== q(e) ? !1 : t;
1551
1551
  }
1552
1552
  function Te(e, t, n, r) {
1553
1553
  t === void 0 && (t = !1), n === void 0 && (n = !1);
1554
- const i = e.getBoundingClientRect(), s = Vt(e);
1555
- let o = ge(1);
1556
- t && (r ? te(r) && (o = Fe(r)) : o = Fe(e));
1557
- const c = gi(s, n, r) ? Un(s) : ge(0);
1558
- let a = (i.left + c.x) / o.x, u = (i.top + c.y) / o.y, f = i.width / o.x, h = i.height / o.y;
1554
+ const o = e.getBoundingClientRect(), s = Vt(e);
1555
+ let i = ge(1);
1556
+ t && (r ? te(r) && (i = Fe(r)) : i = Fe(e));
1557
+ const c = mo(s, n, r) ? Un(s) : ge(0);
1558
+ let a = (o.left + c.x) / i.x, u = (o.top + c.y) / i.y, f = o.width / i.x, h = o.height / i.y;
1559
1559
  if (s) {
1560
1560
  const d = q(s), g = r && te(r) ? q(r) : r;
1561
1561
  let v = d, x = v.frameElement;
@@ -1571,22 +1571,22 @@ function Te(e, t, n, r) {
1571
1571
  y: u
1572
1572
  });
1573
1573
  }
1574
- function mi(e) {
1574
+ function bo(e) {
1575
1575
  let {
1576
1576
  elements: t,
1577
1577
  rect: n,
1578
1578
  offsetParent: r,
1579
- strategy: i
1579
+ strategy: o
1580
1580
  } = e;
1581
- const s = i === "fixed", o = ae(r), c = t ? dt(t.floating) : !1;
1582
- if (r === o || c && s)
1581
+ const s = o === "fixed", i = ae(r), c = t ? dt(t.floating) : !1;
1582
+ if (r === i || c && s)
1583
1583
  return n;
1584
1584
  let a = {
1585
1585
  scrollLeft: 0,
1586
1586
  scrollTop: 0
1587
1587
  }, u = ge(1);
1588
- const f = ge(0), h = oe(r);
1589
- if ((h || !h && !s) && ((Ve(r) !== "body" || Ze(o)) && (a = ht(r)), oe(r))) {
1588
+ const f = ge(0), h = ie(r);
1589
+ if ((h || !h && !s) && ((Ve(r) !== "body" || Ze(i)) && (a = ht(r)), ie(r))) {
1590
1590
  const d = Te(r);
1591
1591
  u = Fe(r), f.x = d.x + r.clientLeft, f.y = d.y + r.clientTop;
1592
1592
  }
@@ -1597,42 +1597,42 @@ function mi(e) {
1597
1597
  y: n.y * u.y - a.scrollTop * u.y + f.y
1598
1598
  };
1599
1599
  }
1600
- function bi(e) {
1600
+ function vo(e) {
1601
1601
  return Array.from(e.getClientRects());
1602
1602
  }
1603
1603
  function Yn(e) {
1604
1604
  return Te(ae(e)).left + ht(e).scrollLeft;
1605
1605
  }
1606
- function vi(e) {
1607
- const t = ae(e), n = ht(e), r = e.ownerDocument.body, i = Ee(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = Ee(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
1608
- let o = -n.scrollLeft + Yn(e);
1606
+ function yo(e) {
1607
+ const t = ae(e), n = ht(e), r = e.ownerDocument.body, o = Ee(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = Ee(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
1608
+ let i = -n.scrollLeft + Yn(e);
1609
1609
  const c = -n.scrollTop;
1610
- return ne(r).direction === "rtl" && (o += Ee(t.clientWidth, r.clientWidth) - i), {
1611
- width: i,
1610
+ return ne(r).direction === "rtl" && (i += Ee(t.clientWidth, r.clientWidth) - o), {
1611
+ width: o,
1612
1612
  height: s,
1613
- x: o,
1613
+ x: i,
1614
1614
  y: c
1615
1615
  };
1616
1616
  }
1617
- function yi(e, t) {
1618
- const n = q(e), r = ae(e), i = n.visualViewport;
1619
- let s = r.clientWidth, o = r.clientHeight, c = 0, a = 0;
1620
- if (i) {
1621
- s = i.width, o = i.height;
1617
+ function _o(e, t) {
1618
+ const n = q(e), r = ae(e), o = n.visualViewport;
1619
+ let s = r.clientWidth, i = r.clientHeight, c = 0, a = 0;
1620
+ if (o) {
1621
+ s = o.width, i = o.height;
1622
1622
  const u = $t();
1623
- (!u || u && t === "fixed") && (c = i.offsetLeft, a = i.offsetTop);
1623
+ (!u || u && t === "fixed") && (c = o.offsetLeft, a = o.offsetTop);
1624
1624
  }
1625
1625
  return {
1626
1626
  width: s,
1627
- height: o,
1627
+ height: i,
1628
1628
  x: c,
1629
1629
  y: a
1630
1630
  };
1631
1631
  }
1632
- function _i(e, t) {
1633
- const n = Te(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, s = oe(e) ? Fe(e) : ge(1), o = e.clientWidth * s.x, c = e.clientHeight * s.y, a = i * s.x, u = r * s.y;
1632
+ function wo(e, t) {
1633
+ const n = Te(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = ie(e) ? Fe(e) : ge(1), i = e.clientWidth * s.x, c = e.clientHeight * s.y, a = o * s.x, u = r * s.y;
1634
1634
  return {
1635
- width: o,
1635
+ width: i,
1636
1636
  height: c,
1637
1637
  x: a,
1638
1638
  y: u
@@ -1641,16 +1641,16 @@ function _i(e, t) {
1641
1641
  function pn(e, t, n) {
1642
1642
  let r;
1643
1643
  if (t === "viewport")
1644
- r = yi(e, n);
1644
+ r = _o(e, n);
1645
1645
  else if (t === "document")
1646
- r = vi(ae(e));
1646
+ r = yo(ae(e));
1647
1647
  else if (te(t))
1648
- r = _i(t, n);
1648
+ r = wo(t, n);
1649
1649
  else {
1650
- const i = Un(e);
1650
+ const o = Un(e);
1651
1651
  r = V({}, t, {
1652
- x: t.x - i.x,
1653
- y: t.y - i.y
1652
+ x: t.x - o.x,
1653
+ y: t.y - o.y
1654
1654
  });
1655
1655
  }
1656
1656
  return at(r);
@@ -1659,30 +1659,30 @@ function zn(e, t) {
1659
1659
  const n = me(e);
1660
1660
  return n === t || !te(n) || Ne(n) ? !1 : ne(n).position === "fixed" || zn(n, t);
1661
1661
  }
1662
- function wi(e, t) {
1662
+ function xo(e, t) {
1663
1663
  const n = t.get(e);
1664
1664
  if (n)
1665
1665
  return n;
1666
- let r = Ke(e, [], !1).filter((c) => te(c) && Ve(c) !== "body"), i = null;
1666
+ let r = Ke(e, [], !1).filter((c) => te(c) && Ve(c) !== "body"), o = null;
1667
1667
  const s = ne(e).position === "fixed";
1668
- let o = s ? me(e) : e;
1669
- for (; te(o) && !Ne(o); ) {
1670
- const c = ne(o), a = Wt(o);
1671
- !a && c.position === "fixed" && (i = null), (s ? !a && !i : !a && c.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Ze(o) && !a && zn(e, o)) ? r = r.filter((f) => f !== o) : i = c, o = me(o);
1668
+ let i = s ? me(e) : e;
1669
+ for (; te(i) && !Ne(i); ) {
1670
+ const c = ne(i), a = Wt(i);
1671
+ !a && c.position === "fixed" && (o = null), (s ? !a && !o : !a && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Ze(i) && !a && zn(e, i)) ? r = r.filter((f) => f !== i) : o = c, i = me(i);
1672
1672
  }
1673
1673
  return t.set(e, r), r;
1674
1674
  }
1675
- function xi(e) {
1675
+ function Eo(e) {
1676
1676
  let {
1677
1677
  element: t,
1678
1678
  boundary: n,
1679
1679
  rootBoundary: r,
1680
- strategy: i
1680
+ strategy: o
1681
1681
  } = e;
1682
- const o = [...n === "clippingAncestors" ? dt(t) ? [] : wi(t, this._c) : [].concat(n), r], c = o[0], a = o.reduce((u, f) => {
1683
- const h = pn(t, f, i);
1682
+ const i = [...n === "clippingAncestors" ? dt(t) ? [] : xo(t, this._c) : [].concat(n), r], c = i[0], a = i.reduce((u, f) => {
1683
+ const h = pn(t, f, o);
1684
1684
  return u.top = Ee(h.top, u.top), u.right = De(h.right, u.right), u.bottom = De(h.bottom, u.bottom), u.left = Ee(h.left, u.left), u;
1685
- }, pn(t, c, i));
1685
+ }, pn(t, c, o));
1686
1686
  return {
1687
1687
  width: a.right - a.left,
1688
1688
  height: a.bottom - a.top,
@@ -1690,7 +1690,7 @@ function xi(e) {
1690
1690
  y: a.top
1691
1691
  };
1692
1692
  }
1693
- function Ei(e) {
1693
+ function So(e) {
1694
1694
  const {
1695
1695
  width: t,
1696
1696
  height: n
@@ -1700,85 +1700,85 @@ function Ei(e) {
1700
1700
  height: n
1701
1701
  };
1702
1702
  }
1703
- function Si(e, t, n) {
1704
- const r = oe(t), i = ae(t), s = n === "fixed", o = Te(e, !0, s, t);
1703
+ function Oo(e, t, n) {
1704
+ const r = ie(t), o = ae(t), s = n === "fixed", i = Te(e, !0, s, t);
1705
1705
  let c = {
1706
1706
  scrollLeft: 0,
1707
1707
  scrollTop: 0
1708
1708
  };
1709
1709
  const a = ge(0);
1710
1710
  if (r || !r && !s)
1711
- if ((Ve(t) !== "body" || Ze(i)) && (c = ht(t)), r) {
1711
+ if ((Ve(t) !== "body" || Ze(o)) && (c = ht(t)), r) {
1712
1712
  const h = Te(t, !0, s, t);
1713
1713
  a.x = h.x + t.clientLeft, a.y = h.y + t.clientTop;
1714
- } else i && (a.x = Yn(i));
1715
- const u = o.left + c.scrollLeft - a.x, f = o.top + c.scrollTop - a.y;
1714
+ } else o && (a.x = Yn(o));
1715
+ const u = i.left + c.scrollLeft - a.x, f = i.top + c.scrollTop - a.y;
1716
1716
  return {
1717
1717
  x: u,
1718
1718
  y: f,
1719
- width: o.width,
1720
- height: o.height
1719
+ width: i.width,
1720
+ height: i.height
1721
1721
  };
1722
1722
  }
1723
1723
  function Rt(e) {
1724
1724
  return ne(e).position === "static";
1725
1725
  }
1726
1726
  function gn(e, t) {
1727
- return !oe(e) || ne(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
1727
+ return !ie(e) || ne(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
1728
1728
  }
1729
1729
  function qn(e, t) {
1730
1730
  const n = q(e);
1731
1731
  if (dt(e))
1732
1732
  return n;
1733
- if (!oe(e)) {
1734
- let i = me(e);
1735
- for (; i && !Ne(i); ) {
1736
- if (te(i) && !Rt(i))
1737
- return i;
1738
- i = me(i);
1733
+ if (!ie(e)) {
1734
+ let o = me(e);
1735
+ for (; o && !Ne(o); ) {
1736
+ if (te(o) && !Rt(o))
1737
+ return o;
1738
+ o = me(o);
1739
1739
  }
1740
1740
  return n;
1741
1741
  }
1742
1742
  let r = gn(e, t);
1743
- for (; r && di(r) && Rt(r); )
1743
+ for (; r && ho(r) && Rt(r); )
1744
1744
  r = gn(r, t);
1745
- return r && Ne(r) && Rt(r) && !Wt(r) ? n : r || hi(e) || n;
1745
+ return r && Ne(r) && Rt(r) && !Wt(r) ? n : r || po(e) || n;
1746
1746
  }
1747
- const Oi = async function(t) {
1748
- const n = this.getOffsetParent || qn, r = this.getDimensions, i = await r(t.floating);
1747
+ const Ro = async function(t) {
1748
+ const n = this.getOffsetParent || qn, r = this.getDimensions, o = await r(t.floating);
1749
1749
  return {
1750
- reference: Si(t.reference, await n(t.floating), t.strategy),
1750
+ reference: Oo(t.reference, await n(t.floating), t.strategy),
1751
1751
  floating: {
1752
1752
  x: 0,
1753
1753
  y: 0,
1754
- width: i.width,
1755
- height: i.height
1754
+ width: o.width,
1755
+ height: o.height
1756
1756
  }
1757
1757
  };
1758
1758
  };
1759
- function Ri(e) {
1759
+ function To(e) {
1760
1760
  return ne(e).direction === "rtl";
1761
1761
  }
1762
- const Ti = {
1763
- convertOffsetParentRelativeRectToViewportRelativeRect: mi,
1762
+ const Co = {
1763
+ convertOffsetParentRelativeRectToViewportRelativeRect: bo,
1764
1764
  getDocumentElement: ae,
1765
- getClippingRect: xi,
1765
+ getClippingRect: Eo,
1766
1766
  getOffsetParent: qn,
1767
- getElementRects: Oi,
1768
- getClientRects: bi,
1769
- getDimensions: Ei,
1767
+ getElementRects: Ro,
1768
+ getClientRects: vo,
1769
+ getDimensions: So,
1770
1770
  getScale: Fe,
1771
1771
  isElement: te,
1772
- isRTL: Ri
1772
+ isRTL: To
1773
1773
  };
1774
- function Ci(e, t) {
1774
+ function Ao(e, t) {
1775
1775
  let n = null, r;
1776
- const i = ae(e);
1776
+ const o = ae(e);
1777
1777
  function s() {
1778
1778
  var c;
1779
1779
  clearTimeout(r), (c = n) == null || c.disconnect(), n = null;
1780
1780
  }
1781
- function o(c, a) {
1781
+ function i(c, a) {
1782
1782
  c === void 0 && (c = !1), a === void 0 && (a = 1), s();
1783
1783
  const {
1784
1784
  left: u,
@@ -1788,7 +1788,7 @@ function Ci(e, t) {
1788
1788
  } = e.getBoundingClientRect();
1789
1789
  if (c || t(), !h || !d)
1790
1790
  return;
1791
- const g = ot(f), v = ot(i.clientWidth - (u + h)), x = ot(i.clientHeight - (f + d)), S = ot(u), _ = {
1791
+ const g = it(f), v = it(o.clientWidth - (u + h)), x = it(o.clientHeight - (f + d)), S = it(u), _ = {
1792
1792
  rootMargin: -g + "px " + -v + "px " + -x + "px " + -S + "px",
1793
1793
  threshold: Ee(0, De(1, a)) || 1
1794
1794
  };
@@ -1797,9 +1797,9 @@ function Ci(e, t) {
1797
1797
  const T = m[0].intersectionRatio;
1798
1798
  if (T !== a) {
1799
1799
  if (!R)
1800
- return o();
1801
- T ? o(!1, T) : r = setTimeout(() => {
1802
- o(!1, 1e-7);
1800
+ return i();
1801
+ T ? i(!1, T) : r = setTimeout(() => {
1802
+ i(!1, 1e-7);
1803
1803
  }, 1e3);
1804
1804
  }
1805
1805
  R = !1;
@@ -1807,32 +1807,32 @@ function Ci(e, t) {
1807
1807
  try {
1808
1808
  n = new IntersectionObserver(y, V({}, _, {
1809
1809
  // Handle <iframe>s
1810
- root: i.ownerDocument
1810
+ root: o.ownerDocument
1811
1811
  }));
1812
1812
  } catch {
1813
1813
  n = new IntersectionObserver(y, _);
1814
1814
  }
1815
1815
  n.observe(e);
1816
1816
  }
1817
- return o(!0), s;
1817
+ return i(!0), s;
1818
1818
  }
1819
- function Ai(e, t, n, r) {
1819
+ function Po(e, t, n, r) {
1820
1820
  r === void 0 && (r = {});
1821
1821
  const {
1822
- ancestorScroll: i = !0,
1822
+ ancestorScroll: o = !0,
1823
1823
  ancestorResize: s = !0,
1824
- elementResize: o = typeof ResizeObserver == "function",
1824
+ elementResize: i = typeof ResizeObserver == "function",
1825
1825
  layoutShift: c = typeof IntersectionObserver == "function",
1826
1826
  animationFrame: a = !1
1827
- } = r, u = Vt(e), f = i || s ? [...u ? Ke(u) : [], ...Ke(t)] : [];
1827
+ } = r, u = Vt(e), f = o || s ? [...u ? Ke(u) : [], ...Ke(t)] : [];
1828
1828
  f.forEach((w) => {
1829
- i && w.addEventListener("scroll", n, {
1829
+ o && w.addEventListener("scroll", n, {
1830
1830
  passive: !0
1831
1831
  }), s && w.addEventListener("resize", n);
1832
1832
  });
1833
- const h = u && c ? Ci(u, n) : null;
1833
+ const h = u && c ? Ao(u, n) : null;
1834
1834
  let d = -1, g = null;
1835
- o && (g = new ResizeObserver((w) => {
1835
+ i && (g = new ResizeObserver((w) => {
1836
1836
  let [_] = w;
1837
1837
  _ && _.target === u && g && (g.unobserve(t), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
1838
1838
  var R;
@@ -1848,55 +1848,55 @@ function Ai(e, t, n, r) {
1848
1848
  return n(), () => {
1849
1849
  var w;
1850
1850
  f.forEach((_) => {
1851
- i && _.removeEventListener("scroll", n), s && _.removeEventListener("resize", n);
1851
+ o && _.removeEventListener("scroll", n), s && _.removeEventListener("resize", n);
1852
1852
  }), h == null || h(), (w = g) == null || w.disconnect(), g = null, a && cancelAnimationFrame(v);
1853
1853
  };
1854
1854
  }
1855
- const Pi = ui, ki = ai, Ii = ci, Mi = fi, Fi = (e, t, n) => {
1856
- const r = /* @__PURE__ */ new Map(), i = V({
1857
- platform: Ti
1858
- }, n), s = V({}, i.platform, {
1855
+ const ko = uo, Io = ao, Mo = co, Fo = fo, Lo = (e, t, n) => {
1856
+ const r = /* @__PURE__ */ new Map(), o = V({
1857
+ platform: Co
1858
+ }, n), s = V({}, o.platform, {
1859
1859
  _c: r
1860
1860
  });
1861
- return li(e, t, V({}, i, {
1861
+ return lo(e, t, V({}, o, {
1862
1862
  platform: s
1863
1863
  }));
1864
1864
  };
1865
- function Li(e) {
1865
+ function Do(e) {
1866
1866
  e.cleanup && e.cleanup();
1867
1867
  const t = e._getResolvedAttachToOptions();
1868
1868
  let n = t.element;
1869
- const r = $i(t, e), i = jn(t);
1870
- return i && (n = document.body, e.shepherdElementComponent.getElement().classList.add("shepherd-centered")), e.cleanup = Ai(n, e.el, () => {
1869
+ const r = Vo(t, e), o = jn(t);
1870
+ return o && (n = document.body, e.shepherdElementComponent.getElement().classList.add("shepherd-centered")), e.cleanup = Po(n, e.el, () => {
1871
1871
  if (!e.el) {
1872
1872
  e.cleanup == null || e.cleanup();
1873
1873
  return;
1874
1874
  }
1875
- Bi(n, e, r, i);
1875
+ No(n, e, r, o);
1876
1876
  }), e.target = t.element, r;
1877
1877
  }
1878
- function Di(e, t) {
1878
+ function jo(e, t) {
1879
1879
  return {
1880
1880
  floatingUIOptions: Lt(e.floatingUIOptions || {}, t.floatingUIOptions || {})
1881
1881
  };
1882
1882
  }
1883
- function ji(e) {
1883
+ function Bo(e) {
1884
1884
  e.cleanup && e.cleanup(), e.cleanup = null;
1885
1885
  }
1886
- function Bi(e, t, n, r) {
1887
- return Fi(e, t.el, n).then(Ni(t, r)).then((i) => new Promise((s) => {
1888
- setTimeout(() => s(i), 300);
1889
- })).then((i) => {
1890
- i != null && i.el && i.el.focus({
1886
+ function No(e, t, n, r) {
1887
+ return Lo(e, t.el, n).then(Wo(t, r)).then((o) => new Promise((s) => {
1888
+ setTimeout(() => s(o), 300);
1889
+ })).then((o) => {
1890
+ o != null && o.el && o.el.focus({
1891
1891
  preventScroll: !0
1892
1892
  });
1893
1893
  });
1894
1894
  }
1895
- function Ni(e, t) {
1895
+ function Wo(e, t) {
1896
1896
  return ({
1897
1897
  x: n,
1898
1898
  y: r,
1899
- placement: i,
1899
+ placement: o,
1900
1900
  middlewareData: s
1901
1901
  }) => (e.el && (t ? Object.assign(e.el.style, {
1902
1902
  position: "fixed",
@@ -1907,53 +1907,53 @@ function Ni(e, t) {
1907
1907
  position: "absolute",
1908
1908
  left: `${n}px`,
1909
1909
  top: `${r}px`
1910
- }), e.el.dataset.popperPlacement = i, Wi(e.el, s)), e);
1910
+ }), e.el.dataset.popperPlacement = o, $o(e.el, s)), e);
1911
1911
  }
1912
- function Wi(e, t) {
1912
+ function $o(e, t) {
1913
1913
  const n = e.querySelector(".shepherd-arrow");
1914
1914
  if (Ge(n) && t.arrow) {
1915
1915
  const {
1916
1916
  x: r,
1917
- y: i
1917
+ y: o
1918
1918
  } = t.arrow;
1919
1919
  Object.assign(n.style, {
1920
1920
  left: r != null ? `${r}px` : "",
1921
- top: i != null ? `${i}px` : ""
1921
+ top: o != null ? `${o}px` : ""
1922
1922
  });
1923
1923
  }
1924
1924
  }
1925
- function $i(e, t) {
1925
+ function Vo(e, t) {
1926
1926
  const n = {
1927
1927
  strategy: "absolute"
1928
1928
  };
1929
1929
  n.middleware = [];
1930
- const r = Vi(t);
1930
+ const r = Ho(t);
1931
1931
  if (!jn(e)) {
1932
1932
  if (n.middleware.push(
1933
- ki(),
1933
+ Io(),
1934
1934
  // Replicate PopperJS default behavior.
1935
- Pi({
1936
- limiter: Mi(),
1935
+ ko({
1936
+ limiter: Fo(),
1937
1937
  crossAxis: !0
1938
1938
  })
1939
1939
  ), r) {
1940
- var s, o;
1941
- const c = (e == null || (s = e.on) == null ? void 0 : s.includes("-start")) || (e == null || (o = e.on) == null ? void 0 : o.includes("-end"));
1942
- n.middleware.push(Ii({
1940
+ var s, i;
1941
+ const c = (e == null || (s = e.on) == null ? void 0 : s.includes("-start")) || (e == null || (i = e.on) == null ? void 0 : i.includes("-end"));
1942
+ n.middleware.push(Mo({
1943
1943
  element: r,
1944
1944
  padding: c ? 4 : 0
1945
1945
  }));
1946
1946
  }
1947
1947
  n.placement = e.on;
1948
1948
  }
1949
- return Lt(t.options.floatingUIOptions || {}, n);
1949
+ return Lt(n, t.options.floatingUIOptions || {});
1950
1950
  }
1951
- function Vi(e) {
1951
+ function Ho(e) {
1952
1952
  return e.options.arrow && e.el ? e.el.querySelector(".shepherd-arrow") : !1;
1953
1953
  }
1954
1954
  function J() {
1955
1955
  }
1956
- function Hi(e, t) {
1956
+ function Uo(e, t) {
1957
1957
  for (const n in t) e[n] = t[n];
1958
1958
  return (
1959
1959
  /** @type {T & S} */
@@ -1975,7 +1975,7 @@ function Ht(e) {
1975
1975
  function ue(e, t) {
1976
1976
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
1977
1977
  }
1978
- function Ui(e) {
1978
+ function Yo(e) {
1979
1979
  return Object.keys(e).length === 0;
1980
1980
  }
1981
1981
  function We(e, t) {
@@ -1987,7 +1987,7 @@ function re(e, t, n) {
1987
1987
  function Z(e) {
1988
1988
  e.parentNode && e.parentNode.removeChild(e);
1989
1989
  }
1990
- function Yi(e, t) {
1990
+ function zo(e, t) {
1991
1991
  for (let n = 0; n < e.length; n += 1)
1992
1992
  e[n] && e[n].d(t);
1993
1993
  }
@@ -2003,22 +2003,22 @@ function Kn(e) {
2003
2003
  function ut() {
2004
2004
  return Kn(" ");
2005
2005
  }
2006
- function zi() {
2006
+ function qo() {
2007
2007
  return Kn("");
2008
2008
  }
2009
2009
  function pt(e, t, n, r) {
2010
2010
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
2011
2011
  }
2012
- function I(e, t, n) {
2012
+ function k(e, t, n) {
2013
2013
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
2014
2014
  }
2015
- const qi = ["width", "height"];
2015
+ const Jo = ["width", "height"];
2016
2016
  function vn(e, t) {
2017
2017
  const n = Object.getOwnPropertyDescriptors(e.__proto__);
2018
2018
  for (const r in t)
2019
- t[r] == null ? e.removeAttribute(r) : r === "style" ? e.style.cssText = t[r] : r === "__value" ? e.value = e[r] = t[r] : n[r] && n[r].set && qi.indexOf(r) === -1 ? e[r] = t[r] : I(e, r, t[r]);
2019
+ t[r] == null ? e.removeAttribute(r) : r === "style" ? e.style.cssText = t[r] : r === "__value" ? e.value = e[r] = t[r] : n[r] && n[r].set && Jo.indexOf(r) === -1 ? e[r] = t[r] : k(e, r, t[r]);
2020
2020
  }
2021
- function Ji(e) {
2021
+ function Ko(e) {
2022
2022
  return Array.from(e.childNodes);
2023
2023
  }
2024
2024
  function ke(e, t, n) {
@@ -2032,7 +2032,7 @@ function Xn() {
2032
2032
  if (!Xe) throw new Error("Function called outside component initialization");
2033
2033
  return Xe;
2034
2034
  }
2035
- function Ki(e) {
2035
+ function Xo(e) {
2036
2036
  Xn().$$.on_mount.push(e);
2037
2037
  }
2038
2038
  function Ut(e) {
@@ -2040,10 +2040,10 @@ function Ut(e) {
2040
2040
  }
2041
2041
  const Me = [], $e = [];
2042
2042
  let Le = [];
2043
- const yn = [], Xi = /* @__PURE__ */ Promise.resolve();
2043
+ const yn = [], Go = /* @__PURE__ */ Promise.resolve();
2044
2044
  let kt = !1;
2045
- function Gi() {
2046
- kt || (kt = !0, Xi.then(Gn));
2045
+ function Zo() {
2046
+ kt || (kt = !0, Go.then(Gn));
2047
2047
  }
2048
2048
  function It(e) {
2049
2049
  Le.push(e);
@@ -2058,7 +2058,7 @@ function Gn() {
2058
2058
  try {
2059
2059
  for (; Ie < Me.length; ) {
2060
2060
  const t = Me[Ie];
2061
- Ie++, qe(t), Zi(t.$$);
2061
+ Ie++, qe(t), Qo(t.$$);
2062
2062
  }
2063
2063
  } catch (t) {
2064
2064
  throw Me.length = 0, Ie = 0, t;
@@ -2074,14 +2074,14 @@ function Gn() {
2074
2074
  yn.pop()();
2075
2075
  kt = !1, Tt.clear(), qe(e);
2076
2076
  }
2077
- function Zi(e) {
2077
+ function Qo(e) {
2078
2078
  if (e.fragment !== null) {
2079
2079
  e.update(), Qe(e.before_update);
2080
2080
  const t = e.dirty;
2081
2081
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(It);
2082
2082
  }
2083
2083
  }
2084
- function Qi(e) {
2084
+ function ei(e) {
2085
2085
  const t = [], n = [];
2086
2086
  Le.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Le = t;
2087
2087
  }
@@ -2112,25 +2112,25 @@ function F(e, t, n, r) {
2112
2112
  function _n(e) {
2113
2113
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
2114
2114
  }
2115
- function eo(e, t) {
2116
- const n = {}, r = {}, i = {
2115
+ function ti(e, t) {
2116
+ const n = {}, r = {}, o = {
2117
2117
  $$scope: 1
2118
2118
  };
2119
2119
  let s = e.length;
2120
2120
  for (; s--; ) {
2121
- const o = e[s], c = t[s];
2121
+ const i = e[s], c = t[s];
2122
2122
  if (c) {
2123
- for (const a in o)
2123
+ for (const a in i)
2124
2124
  a in c || (r[a] = 1);
2125
2125
  for (const a in c)
2126
- i[a] || (n[a] = c[a], i[a] = 1);
2126
+ o[a] || (n[a] = c[a], o[a] = 1);
2127
2127
  e[s] = c;
2128
2128
  } else
2129
- for (const a in o)
2130
- i[a] = 1;
2129
+ for (const a in i)
2130
+ o[a] = 1;
2131
2131
  }
2132
- for (const o in r)
2133
- o in n || (n[o] = void 0);
2132
+ for (const i in r)
2133
+ i in n || (n[i] = void 0);
2134
2134
  return n;
2135
2135
  }
2136
2136
  function Ce(e) {
@@ -2139,21 +2139,21 @@ function Ce(e) {
2139
2139
  function ve(e, t, n) {
2140
2140
  const {
2141
2141
  fragment: r,
2142
- after_update: i
2142
+ after_update: o
2143
2143
  } = e.$$;
2144
2144
  r && r.m(t, n), It(() => {
2145
2145
  const s = e.$$.on_mount.map(Jn).filter(Ht);
2146
2146
  e.$$.on_destroy ? e.$$.on_destroy.push(...s) : Qe(s), e.$$.on_mount = [];
2147
- }), i.forEach(It);
2147
+ }), o.forEach(It);
2148
2148
  }
2149
2149
  function ye(e, t) {
2150
2150
  const n = e.$$;
2151
- n.fragment !== null && (Qi(n.after_update), Qe(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
2151
+ n.fragment !== null && (ei(n.after_update), Qe(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
2152
2152
  }
2153
- function to(e, t) {
2154
- e.$$.dirty[0] === -1 && (Me.push(e), Gi(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
2153
+ function ni(e, t) {
2154
+ e.$$.dirty[0] === -1 && (Me.push(e), Zo(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
2155
2155
  }
2156
- function fe(e, t, n, r, i, s, o = null, c = [-1]) {
2156
+ function fe(e, t, n, r, o, s, i = null, c = [-1]) {
2157
2157
  const a = Xe;
2158
2158
  qe(e);
2159
2159
  const u = e.$$ = {
@@ -2162,7 +2162,7 @@ function fe(e, t, n, r, i, s, o = null, c = [-1]) {
2162
2162
  // state
2163
2163
  props: s,
2164
2164
  update: J,
2165
- not_equal: i,
2165
+ not_equal: o,
2166
2166
  bound: mn(),
2167
2167
  // lifecycle
2168
2168
  on_mount: [],
@@ -2177,14 +2177,14 @@ function fe(e, t, n, r, i, s, o = null, c = [-1]) {
2177
2177
  skip_bound: !1,
2178
2178
  root: t.target || a.$$.root
2179
2179
  };
2180
- o && o(u.root);
2180
+ i && i(u.root);
2181
2181
  let f = !1;
2182
2182
  if (u.ctx = n ? n(e, t.props || {}, (h, d, ...g) => {
2183
2183
  const v = g.length ? g[0] : d;
2184
- return u.ctx && i(u.ctx[h], u.ctx[h] = v) && (!u.skip_bound && u.bound[h] && u.bound[h](v), f && to(e, h)), d;
2184
+ return u.ctx && o(u.ctx[h], u.ctx[h] = v) && (!u.skip_bound && u.bound[h] && u.bound[h](v), f && ni(e, h)), d;
2185
2185
  }) : [], u.update(), f = !0, Qe(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
2186
2186
  if (t.hydrate) {
2187
- const h = Ji(t.target);
2187
+ const h = Ko(t.target);
2188
2188
  u.fragment && u.fragment.l(h), h.forEach(Z);
2189
2189
  } else
2190
2190
  u.fragment && u.fragment.c();
@@ -2211,8 +2211,8 @@ class de {
2211
2211
  return J;
2212
2212
  const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
2213
2213
  return r.push(n), () => {
2214
- const i = r.indexOf(n);
2215
- i !== -1 && r.splice(i, 1);
2214
+ const o = r.indexOf(n);
2215
+ o !== -1 && r.splice(o, 1);
2216
2216
  };
2217
2217
  }
2218
2218
  /**
@@ -2220,75 +2220,75 @@ class de {
2220
2220
  * @returns {void}
2221
2221
  */
2222
2222
  $set(t) {
2223
- this.$$set && !Ui(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
2223
+ this.$$set && !Yo(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
2224
2224
  }
2225
2225
  }
2226
- const no = "4";
2226
+ const ri = "4";
2227
2227
  typeof window < "u" && (window.__svelte || (window.__svelte = {
2228
2228
  v: /* @__PURE__ */ new Set()
2229
- })).v.add(no);
2230
- function ro(e) {
2231
- let t, n, r, i, s;
2229
+ })).v.add(ri);
2230
+ function oi(e) {
2231
+ let t, n, r, o, s;
2232
2232
  return {
2233
2233
  c() {
2234
- t = se("button"), I(t, "aria-label", n = /*label*/
2234
+ t = se("button"), k(t, "aria-label", n = /*label*/
2235
2235
  e[3] ? (
2236
2236
  /*label*/
2237
2237
  e[3]
2238
- ) : null), I(t, "class", r = `${/*classes*/
2238
+ ) : null), k(t, "class", r = `${/*classes*/
2239
2239
  e[1] || ""} shepherd-button ${/*secondary*/
2240
2240
  e[4] ? "shepherd-button-secondary" : ""}`), t.disabled = /*disabled*/
2241
- e[2], I(t, "tabindex", "0"), I(t, "type", "button");
2241
+ e[2], k(t, "tabindex", "0"), k(t, "type", "button");
2242
2242
  },
2243
- m(o, c) {
2244
- re(o, t, c), t.innerHTML = /*text*/
2245
- e[5], i || (s = pt(t, "click", function() {
2243
+ m(i, c) {
2244
+ re(i, t, c), t.innerHTML = /*text*/
2245
+ e[5], o || (s = pt(t, "click", function() {
2246
2246
  Ht(
2247
2247
  /*action*/
2248
2248
  e[0]
2249
2249
  ) && e[0].apply(this, arguments);
2250
- }), i = !0);
2250
+ }), o = !0);
2251
2251
  },
2252
- p(o, [c]) {
2253
- e = o, c & /*text*/
2252
+ p(i, [c]) {
2253
+ e = i, c & /*text*/
2254
2254
  32 && (t.innerHTML = /*text*/
2255
2255
  e[5]), c & /*label*/
2256
2256
  8 && n !== (n = /*label*/
2257
2257
  e[3] ? (
2258
2258
  /*label*/
2259
2259
  e[3]
2260
- ) : null) && I(t, "aria-label", n), c & /*classes, secondary*/
2260
+ ) : null) && k(t, "aria-label", n), c & /*classes, secondary*/
2261
2261
  18 && r !== (r = `${/*classes*/
2262
2262
  e[1] || ""} shepherd-button ${/*secondary*/
2263
- e[4] ? "shepherd-button-secondary" : ""}`) && I(t, "class", r), c & /*disabled*/
2263
+ e[4] ? "shepherd-button-secondary" : ""}`) && k(t, "class", r), c & /*disabled*/
2264
2264
  4 && (t.disabled = /*disabled*/
2265
2265
  e[2]);
2266
2266
  },
2267
2267
  i: J,
2268
2268
  o: J,
2269
- d(o) {
2270
- o && Z(t), i = !1, s();
2269
+ d(i) {
2270
+ i && Z(t), o = !1, s();
2271
2271
  }
2272
2272
  };
2273
2273
  }
2274
- function io(e, t, n) {
2274
+ function ii(e, t, n) {
2275
2275
  let {
2276
2276
  config: r,
2277
- step: i
2278
- } = t, s, o, c, a, u, f;
2277
+ step: o
2278
+ } = t, s, i, c, a, u, f;
2279
2279
  function h(d) {
2280
- return pe(d) ? d = d.call(i) : d;
2280
+ return pe(d) ? d = d.call(o) : d;
2281
2281
  }
2282
2282
  return e.$$set = (d) => {
2283
- "config" in d && n(6, r = d.config), "step" in d && n(7, i = d.step);
2283
+ "config" in d && n(6, r = d.config), "step" in d && n(7, o = d.step);
2284
2284
  }, e.$$.update = () => {
2285
2285
  e.$$.dirty & /*config, step*/
2286
- 192 && (n(0, s = r.action ? r.action.bind(i.tour) : null), n(1, o = r.classes), n(2, c = r.disabled ? h(r.disabled) : !1), n(3, a = r.label ? h(r.label) : null), n(4, u = r.secondary), n(5, f = r.text ? h(r.text) : null));
2287
- }, [s, o, c, a, u, f, r, i];
2286
+ 192 && (n(0, s = r.action ? r.action.bind(o.tour) : null), n(1, i = r.classes), n(2, c = r.disabled ? h(r.disabled) : !1), n(3, a = r.label ? h(r.label) : null), n(4, u = r.secondary), n(5, f = r.text ? h(r.text) : null));
2287
+ }, [s, i, c, a, u, f, r, o];
2288
2288
  }
2289
- class oo extends de {
2289
+ class si extends de {
2290
2290
  constructor(t) {
2291
- super(), fe(this, t, io, ro, ue, {
2291
+ super(), fe(this, t, ii, oi, ue, {
2292
2292
  config: 6,
2293
2293
  step: 7
2294
2294
  });
@@ -2302,61 +2302,61 @@ function xn(e) {
2302
2302
  let t, n, r = _n(
2303
2303
  /*buttons*/
2304
2304
  e[1]
2305
- ), i = [];
2306
- for (let o = 0; o < r.length; o += 1)
2307
- i[o] = En(wn(e, r, o));
2308
- const s = (o) => F(i[o], 1, 1, () => {
2309
- i[o] = null;
2305
+ ), o = [];
2306
+ for (let i = 0; i < r.length; i += 1)
2307
+ o[i] = En(wn(e, r, i));
2308
+ const s = (i) => F(o[i], 1, 1, () => {
2309
+ o[i] = null;
2310
2310
  });
2311
2311
  return {
2312
2312
  c() {
2313
- for (let o = 0; o < i.length; o += 1)
2314
- i[o].c();
2315
- t = zi();
2313
+ for (let i = 0; i < o.length; i += 1)
2314
+ o[i].c();
2315
+ t = qo();
2316
2316
  },
2317
- m(o, c) {
2318
- for (let a = 0; a < i.length; a += 1)
2319
- i[a] && i[a].m(o, c);
2320
- re(o, t, c), n = !0;
2317
+ m(i, c) {
2318
+ for (let a = 0; a < o.length; a += 1)
2319
+ o[a] && o[a].m(i, c);
2320
+ re(i, t, c), n = !0;
2321
2321
  },
2322
- p(o, c) {
2322
+ p(i, c) {
2323
2323
  if (c & /*buttons, step*/
2324
2324
  3) {
2325
2325
  r = _n(
2326
2326
  /*buttons*/
2327
- o[1]
2327
+ i[1]
2328
2328
  );
2329
2329
  let a;
2330
2330
  for (a = 0; a < r.length; a += 1) {
2331
- const u = wn(o, r, a);
2332
- i[a] ? (i[a].p(u, c), P(i[a], 1)) : (i[a] = En(u), i[a].c(), P(i[a], 1), i[a].m(t.parentNode, t));
2331
+ const u = wn(i, r, a);
2332
+ o[a] ? (o[a].p(u, c), P(o[a], 1)) : (o[a] = En(u), o[a].c(), P(o[a], 1), o[a].m(t.parentNode, t));
2333
2333
  }
2334
- for (Se(), a = r.length; a < i.length; a += 1)
2334
+ for (Se(), a = r.length; a < o.length; a += 1)
2335
2335
  s(a);
2336
2336
  Oe();
2337
2337
  }
2338
2338
  },
2339
- i(o) {
2339
+ i(i) {
2340
2340
  if (!n) {
2341
2341
  for (let c = 0; c < r.length; c += 1)
2342
- P(i[c]);
2342
+ P(o[c]);
2343
2343
  n = !0;
2344
2344
  }
2345
2345
  },
2346
- o(o) {
2347
- i = i.filter(Boolean);
2348
- for (let c = 0; c < i.length; c += 1)
2349
- F(i[c]);
2346
+ o(i) {
2347
+ o = o.filter(Boolean);
2348
+ for (let c = 0; c < o.length; c += 1)
2349
+ F(o[c]);
2350
2350
  n = !1;
2351
2351
  },
2352
- d(o) {
2353
- o && Z(t), Yi(i, o);
2352
+ d(i) {
2353
+ i && Z(t), zo(o, i);
2354
2354
  }
2355
2355
  };
2356
2356
  }
2357
2357
  function En(e) {
2358
2358
  let t, n;
2359
- return t = new oo({
2359
+ return t = new si({
2360
2360
  props: {
2361
2361
  config: (
2362
2362
  /*config*/
@@ -2371,14 +2371,14 @@ function En(e) {
2371
2371
  c() {
2372
2372
  Ce(t.$$.fragment);
2373
2373
  },
2374
- m(r, i) {
2375
- ve(t, r, i), n = !0;
2374
+ m(r, o) {
2375
+ ve(t, r, o), n = !0;
2376
2376
  },
2377
- p(r, i) {
2377
+ p(r, o) {
2378
2378
  const s = {};
2379
- i & /*buttons*/
2379
+ o & /*buttons*/
2380
2380
  2 && (s.config = /*config*/
2381
- r[2]), i & /*step*/
2381
+ r[2]), o & /*step*/
2382
2382
  1 && (s.step = /*step*/
2383
2383
  r[0]), t.$set(s);
2384
2384
  },
@@ -2393,124 +2393,124 @@ function En(e) {
2393
2393
  }
2394
2394
  };
2395
2395
  }
2396
- function so(e) {
2396
+ function li(e) {
2397
2397
  let t, n, r = (
2398
2398
  /*buttons*/
2399
2399
  e[1] && xn(e)
2400
2400
  );
2401
2401
  return {
2402
2402
  c() {
2403
- t = se("footer"), r && r.c(), I(t, "class", "shepherd-footer");
2403
+ t = se("footer"), r && r.c(), k(t, "class", "shepherd-footer");
2404
2404
  },
2405
- m(i, s) {
2406
- re(i, t, s), r && r.m(t, null), n = !0;
2405
+ m(o, s) {
2406
+ re(o, t, s), r && r.m(t, null), n = !0;
2407
2407
  },
2408
- p(i, [s]) {
2408
+ p(o, [s]) {
2409
2409
  /*buttons*/
2410
- i[1] ? r ? (r.p(i, s), s & /*buttons*/
2411
- 2 && P(r, 1)) : (r = xn(i), r.c(), P(r, 1), r.m(t, null)) : r && (Se(), F(r, 1, 1, () => {
2410
+ o[1] ? r ? (r.p(o, s), s & /*buttons*/
2411
+ 2 && P(r, 1)) : (r = xn(o), r.c(), P(r, 1), r.m(t, null)) : r && (Se(), F(r, 1, 1, () => {
2412
2412
  r = null;
2413
2413
  }), Oe());
2414
2414
  },
2415
- i(i) {
2415
+ i(o) {
2416
2416
  n || (P(r), n = !0);
2417
2417
  },
2418
- o(i) {
2418
+ o(o) {
2419
2419
  F(r), n = !1;
2420
2420
  },
2421
- d(i) {
2422
- i && Z(t), r && r.d();
2421
+ d(o) {
2422
+ o && Z(t), r && r.d();
2423
2423
  }
2424
2424
  };
2425
2425
  }
2426
- function lo(e, t, n) {
2426
+ function ci(e, t, n) {
2427
2427
  let r, {
2428
- step: i
2428
+ step: o
2429
2429
  } = t;
2430
2430
  return e.$$set = (s) => {
2431
- "step" in s && n(0, i = s.step);
2431
+ "step" in s && n(0, o = s.step);
2432
2432
  }, e.$$.update = () => {
2433
2433
  e.$$.dirty & /*step*/
2434
- 1 && n(1, r = i.options.buttons);
2435
- }, [i, r];
2434
+ 1 && n(1, r = o.options.buttons);
2435
+ }, [o, r];
2436
2436
  }
2437
- class co extends de {
2437
+ class ai extends de {
2438
2438
  constructor(t) {
2439
- super(), fe(this, t, lo, so, ue, {
2439
+ super(), fe(this, t, ci, li, ue, {
2440
2440
  step: 0
2441
2441
  });
2442
2442
  }
2443
2443
  }
2444
- function ao(e) {
2445
- let t, n, r, i, s;
2444
+ function ui(e) {
2445
+ let t, n, r, o, s;
2446
2446
  return {
2447
2447
  c() {
2448
- t = se("button"), n = se("span"), n.textContent = "×", I(n, "aria-hidden", "true"), I(t, "aria-label", r = /*cancelIcon*/
2448
+ t = se("button"), n = se("span"), n.textContent = "×", k(n, "aria-hidden", "true"), k(t, "aria-label", r = /*cancelIcon*/
2449
2449
  e[0].label ? (
2450
2450
  /*cancelIcon*/
2451
2451
  e[0].label
2452
- ) : "Close Tour"), I(t, "class", "shepherd-cancel-icon"), I(t, "type", "button");
2452
+ ) : "Close Tour"), k(t, "class", "shepherd-cancel-icon"), k(t, "type", "button");
2453
2453
  },
2454
- m(o, c) {
2455
- re(o, t, c), We(t, n), i || (s = pt(
2454
+ m(i, c) {
2455
+ re(i, t, c), We(t, n), o || (s = pt(
2456
2456
  t,
2457
2457
  "click",
2458
2458
  /*handleCancelClick*/
2459
2459
  e[1]
2460
- ), i = !0);
2460
+ ), o = !0);
2461
2461
  },
2462
- p(o, [c]) {
2462
+ p(i, [c]) {
2463
2463
  c & /*cancelIcon*/
2464
2464
  1 && r !== (r = /*cancelIcon*/
2465
- o[0].label ? (
2465
+ i[0].label ? (
2466
2466
  /*cancelIcon*/
2467
- o[0].label
2468
- ) : "Close Tour") && I(t, "aria-label", r);
2467
+ i[0].label
2468
+ ) : "Close Tour") && k(t, "aria-label", r);
2469
2469
  },
2470
2470
  i: J,
2471
2471
  o: J,
2472
- d(o) {
2473
- o && Z(t), i = !1, s();
2472
+ d(i) {
2473
+ i && Z(t), o = !1, s();
2474
2474
  }
2475
2475
  };
2476
2476
  }
2477
- function uo(e, t, n) {
2477
+ function fi(e, t, n) {
2478
2478
  let {
2479
2479
  cancelIcon: r,
2480
- step: i
2480
+ step: o
2481
2481
  } = t;
2482
- const s = (o) => {
2483
- o.preventDefault(), i.cancel();
2482
+ const s = (i) => {
2483
+ i.preventDefault(), o.cancel();
2484
2484
  };
2485
- return e.$$set = (o) => {
2486
- "cancelIcon" in o && n(0, r = o.cancelIcon), "step" in o && n(2, i = o.step);
2487
- }, [r, s, i];
2485
+ return e.$$set = (i) => {
2486
+ "cancelIcon" in i && n(0, r = i.cancelIcon), "step" in i && n(2, o = i.step);
2487
+ }, [r, s, o];
2488
2488
  }
2489
- class fo extends de {
2489
+ class di extends de {
2490
2490
  constructor(t) {
2491
- super(), fe(this, t, uo, ao, ue, {
2491
+ super(), fe(this, t, fi, ui, ue, {
2492
2492
  cancelIcon: 0,
2493
2493
  step: 2
2494
2494
  });
2495
2495
  }
2496
2496
  }
2497
- function ho(e) {
2497
+ function hi(e) {
2498
2498
  let t;
2499
2499
  return {
2500
2500
  c() {
2501
- t = se("h3"), I(
2501
+ t = se("h3"), k(
2502
2502
  t,
2503
2503
  "id",
2504
2504
  /*labelId*/
2505
2505
  e[1]
2506
- ), I(t, "class", "shepherd-title");
2506
+ ), k(t, "class", "shepherd-title");
2507
2507
  },
2508
2508
  m(n, r) {
2509
2509
  re(n, t, r), e[3](t);
2510
2510
  },
2511
2511
  p(n, [r]) {
2512
2512
  r & /*labelId*/
2513
- 2 && I(
2513
+ 2 && k(
2514
2514
  t,
2515
2515
  "id",
2516
2516
  /*labelId*/
@@ -2524,27 +2524,27 @@ function ho(e) {
2524
2524
  }
2525
2525
  };
2526
2526
  }
2527
- function po(e, t, n) {
2527
+ function pi(e, t, n) {
2528
2528
  let {
2529
2529
  labelId: r,
2530
- element: i,
2530
+ element: o,
2531
2531
  title: s
2532
2532
  } = t;
2533
2533
  Ut(() => {
2534
- pe(s) && n(2, s = s()), n(0, i.innerHTML = s, i);
2534
+ pe(s) && n(2, s = s()), n(0, o.innerHTML = s, o);
2535
2535
  });
2536
- function o(c) {
2536
+ function i(c) {
2537
2537
  $e[c ? "unshift" : "push"](() => {
2538
- i = c, n(0, i);
2538
+ o = c, n(0, o);
2539
2539
  });
2540
2540
  }
2541
2541
  return e.$$set = (c) => {
2542
- "labelId" in c && n(1, r = c.labelId), "element" in c && n(0, i = c.element), "title" in c && n(2, s = c.title);
2543
- }, [i, r, s, o];
2542
+ "labelId" in c && n(1, r = c.labelId), "element" in c && n(0, o = c.element), "title" in c && n(2, s = c.title);
2543
+ }, [o, r, s, i];
2544
2544
  }
2545
- class go extends de {
2545
+ class gi extends de {
2546
2546
  constructor(t) {
2547
- super(), fe(this, t, po, ho, ue, {
2547
+ super(), fe(this, t, pi, hi, ue, {
2548
2548
  labelId: 1,
2549
2549
  element: 0,
2550
2550
  title: 2
@@ -2553,7 +2553,7 @@ class go extends de {
2553
2553
  }
2554
2554
  function Sn(e) {
2555
2555
  let t, n;
2556
- return t = new go({
2556
+ return t = new gi({
2557
2557
  props: {
2558
2558
  labelId: (
2559
2559
  /*labelId*/
@@ -2568,14 +2568,14 @@ function Sn(e) {
2568
2568
  c() {
2569
2569
  Ce(t.$$.fragment);
2570
2570
  },
2571
- m(r, i) {
2572
- ve(t, r, i), n = !0;
2571
+ m(r, o) {
2572
+ ve(t, r, o), n = !0;
2573
2573
  },
2574
- p(r, i) {
2574
+ p(r, o) {
2575
2575
  const s = {};
2576
- i & /*labelId*/
2576
+ o & /*labelId*/
2577
2577
  1 && (s.labelId = /*labelId*/
2578
- r[0]), i & /*title*/
2578
+ r[0]), o & /*title*/
2579
2579
  4 && (s.title = /*title*/
2580
2580
  r[2]), t.$set(s);
2581
2581
  },
@@ -2592,7 +2592,7 @@ function Sn(e) {
2592
2592
  }
2593
2593
  function On(e) {
2594
2594
  let t, n;
2595
- return t = new fo({
2595
+ return t = new di({
2596
2596
  props: {
2597
2597
  cancelIcon: (
2598
2598
  /*cancelIcon*/
@@ -2607,14 +2607,14 @@ function On(e) {
2607
2607
  c() {
2608
2608
  Ce(t.$$.fragment);
2609
2609
  },
2610
- m(r, i) {
2611
- ve(t, r, i), n = !0;
2610
+ m(r, o) {
2611
+ ve(t, r, o), n = !0;
2612
2612
  },
2613
- p(r, i) {
2613
+ p(r, o) {
2614
2614
  const s = {};
2615
- i & /*cancelIcon*/
2615
+ o & /*cancelIcon*/
2616
2616
  8 && (s.cancelIcon = /*cancelIcon*/
2617
- r[3]), i & /*step*/
2617
+ r[3]), o & /*step*/
2618
2618
  2 && (s.step = /*step*/
2619
2619
  r[1]), t.$set(s);
2620
2620
  },
@@ -2629,8 +2629,8 @@ function On(e) {
2629
2629
  }
2630
2630
  };
2631
2631
  }
2632
- function mo(e) {
2633
- let t, n, r, i = (
2632
+ function mi(e) {
2633
+ let t, n, r, o = (
2634
2634
  /*title*/
2635
2635
  e[2] && Sn(e)
2636
2636
  ), s = (
@@ -2640,59 +2640,59 @@ function mo(e) {
2640
2640
  );
2641
2641
  return {
2642
2642
  c() {
2643
- t = se("header"), i && i.c(), n = ut(), s && s.c(), I(t, "class", "shepherd-header");
2643
+ t = se("header"), o && o.c(), n = ut(), s && s.c(), k(t, "class", "shepherd-header");
2644
2644
  },
2645
- m(o, c) {
2646
- re(o, t, c), i && i.m(t, null), We(t, n), s && s.m(t, null), r = !0;
2645
+ m(i, c) {
2646
+ re(i, t, c), o && o.m(t, null), We(t, n), s && s.m(t, null), r = !0;
2647
2647
  },
2648
- p(o, [c]) {
2648
+ p(i, [c]) {
2649
2649
  /*title*/
2650
- o[2] ? i ? (i.p(o, c), c & /*title*/
2651
- 4 && P(i, 1)) : (i = Sn(o), i.c(), P(i, 1), i.m(t, n)) : i && (Se(), F(i, 1, 1, () => {
2652
- i = null;
2650
+ i[2] ? o ? (o.p(i, c), c & /*title*/
2651
+ 4 && P(o, 1)) : (o = Sn(i), o.c(), P(o, 1), o.m(t, n)) : o && (Se(), F(o, 1, 1, () => {
2652
+ o = null;
2653
2653
  }), Oe()), /*cancelIcon*/
2654
- o[3] && /*cancelIcon*/
2655
- o[3].enabled ? s ? (s.p(o, c), c & /*cancelIcon*/
2656
- 8 && P(s, 1)) : (s = On(o), s.c(), P(s, 1), s.m(t, null)) : s && (Se(), F(s, 1, 1, () => {
2654
+ i[3] && /*cancelIcon*/
2655
+ i[3].enabled ? s ? (s.p(i, c), c & /*cancelIcon*/
2656
+ 8 && P(s, 1)) : (s = On(i), s.c(), P(s, 1), s.m(t, null)) : s && (Se(), F(s, 1, 1, () => {
2657
2657
  s = null;
2658
2658
  }), Oe());
2659
2659
  },
2660
- i(o) {
2661
- r || (P(i), P(s), r = !0);
2660
+ i(i) {
2661
+ r || (P(o), P(s), r = !0);
2662
2662
  },
2663
- o(o) {
2664
- F(i), F(s), r = !1;
2663
+ o(i) {
2664
+ F(o), F(s), r = !1;
2665
2665
  },
2666
- d(o) {
2667
- o && Z(t), i && i.d(), s && s.d();
2666
+ d(i) {
2667
+ i && Z(t), o && o.d(), s && s.d();
2668
2668
  }
2669
2669
  };
2670
2670
  }
2671
- function bo(e, t, n) {
2671
+ function bi(e, t, n) {
2672
2672
  let {
2673
2673
  labelId: r,
2674
- step: i
2675
- } = t, s, o;
2674
+ step: o
2675
+ } = t, s, i;
2676
2676
  return e.$$set = (c) => {
2677
- "labelId" in c && n(0, r = c.labelId), "step" in c && n(1, i = c.step);
2677
+ "labelId" in c && n(0, r = c.labelId), "step" in c && n(1, o = c.step);
2678
2678
  }, e.$$.update = () => {
2679
2679
  e.$$.dirty & /*step*/
2680
- 2 && (n(2, s = i.options.title), n(3, o = i.options.cancelIcon));
2681
- }, [r, i, s, o];
2680
+ 2 && (n(2, s = o.options.title), n(3, i = o.options.cancelIcon));
2681
+ }, [r, o, s, i];
2682
2682
  }
2683
- class vo extends de {
2683
+ class vi extends de {
2684
2684
  constructor(t) {
2685
- super(), fe(this, t, bo, mo, ue, {
2685
+ super(), fe(this, t, bi, mi, ue, {
2686
2686
  labelId: 0,
2687
2687
  step: 1
2688
2688
  });
2689
2689
  }
2690
2690
  }
2691
- function yo(e) {
2691
+ function yi(e) {
2692
2692
  let t;
2693
2693
  return {
2694
2694
  c() {
2695
- t = se("div"), I(t, "class", "shepherd-text"), I(
2695
+ t = se("div"), k(t, "class", "shepherd-text"), k(
2696
2696
  t,
2697
2697
  "id",
2698
2698
  /*descriptionId*/
@@ -2704,7 +2704,7 @@ function yo(e) {
2704
2704
  },
2705
2705
  p(n, [r]) {
2706
2706
  r & /*descriptionId*/
2707
- 2 && I(
2707
+ 2 && k(
2708
2708
  t,
2709
2709
  "id",
2710
2710
  /*descriptionId*/
@@ -2718,30 +2718,30 @@ function yo(e) {
2718
2718
  }
2719
2719
  };
2720
2720
  }
2721
- function _o(e, t, n) {
2721
+ function _i(e, t, n) {
2722
2722
  let {
2723
2723
  descriptionId: r,
2724
- element: i,
2724
+ element: o,
2725
2725
  step: s
2726
2726
  } = t;
2727
2727
  Ut(() => {
2728
2728
  let {
2729
2729
  text: c
2730
2730
  } = s.options;
2731
- pe(c) && (c = c.call(s)), Ge(c) ? i.appendChild(c) : n(0, i.innerHTML = c, i);
2731
+ pe(c) && (c = c.call(s)), Ge(c) ? o.appendChild(c) : n(0, o.innerHTML = c, o);
2732
2732
  });
2733
- function o(c) {
2733
+ function i(c) {
2734
2734
  $e[c ? "unshift" : "push"](() => {
2735
- i = c, n(0, i);
2735
+ o = c, n(0, o);
2736
2736
  });
2737
2737
  }
2738
2738
  return e.$$set = (c) => {
2739
- "descriptionId" in c && n(1, r = c.descriptionId), "element" in c && n(0, i = c.element), "step" in c && n(2, s = c.step);
2740
- }, [i, r, s, o];
2739
+ "descriptionId" in c && n(1, r = c.descriptionId), "element" in c && n(0, o = c.element), "step" in c && n(2, s = c.step);
2740
+ }, [o, r, s, i];
2741
2741
  }
2742
- class wo extends de {
2742
+ class wi extends de {
2743
2743
  constructor(t) {
2744
- super(), fe(this, t, _o, yo, ue, {
2744
+ super(), fe(this, t, _i, yi, ue, {
2745
2745
  descriptionId: 1,
2746
2746
  element: 0,
2747
2747
  step: 2
@@ -2750,7 +2750,7 @@ class wo extends de {
2750
2750
  }
2751
2751
  function Rn(e) {
2752
2752
  let t, n;
2753
- return t = new vo({
2753
+ return t = new vi({
2754
2754
  props: {
2755
2755
  labelId: (
2756
2756
  /*labelId*/
@@ -2765,14 +2765,14 @@ function Rn(e) {
2765
2765
  c() {
2766
2766
  Ce(t.$$.fragment);
2767
2767
  },
2768
- m(r, i) {
2769
- ve(t, r, i), n = !0;
2768
+ m(r, o) {
2769
+ ve(t, r, o), n = !0;
2770
2770
  },
2771
- p(r, i) {
2771
+ p(r, o) {
2772
2772
  const s = {};
2773
- i & /*labelId*/
2773
+ o & /*labelId*/
2774
2774
  2 && (s.labelId = /*labelId*/
2775
- r[1]), i & /*step*/
2775
+ r[1]), o & /*step*/
2776
2776
  4 && (s.step = /*step*/
2777
2777
  r[2]), t.$set(s);
2778
2778
  },
@@ -2789,7 +2789,7 @@ function Rn(e) {
2789
2789
  }
2790
2790
  function Tn(e) {
2791
2791
  let t, n;
2792
- return t = new wo({
2792
+ return t = new wi({
2793
2793
  props: {
2794
2794
  descriptionId: (
2795
2795
  /*descriptionId*/
@@ -2804,14 +2804,14 @@ function Tn(e) {
2804
2804
  c() {
2805
2805
  Ce(t.$$.fragment);
2806
2806
  },
2807
- m(r, i) {
2808
- ve(t, r, i), n = !0;
2807
+ m(r, o) {
2808
+ ve(t, r, o), n = !0;
2809
2809
  },
2810
- p(r, i) {
2810
+ p(r, o) {
2811
2811
  const s = {};
2812
- i & /*descriptionId*/
2812
+ o & /*descriptionId*/
2813
2813
  1 && (s.descriptionId = /*descriptionId*/
2814
- r[0]), i & /*step*/
2814
+ r[0]), o & /*step*/
2815
2815
  4 && (s.step = /*step*/
2816
2816
  r[2]), t.$set(s);
2817
2817
  },
@@ -2828,7 +2828,7 @@ function Tn(e) {
2828
2828
  }
2829
2829
  function Cn(e) {
2830
2830
  let t, n;
2831
- return t = new co({
2831
+ return t = new ai({
2832
2832
  props: {
2833
2833
  step: (
2834
2834
  /*step*/
@@ -2839,12 +2839,12 @@ function Cn(e) {
2839
2839
  c() {
2840
2840
  Ce(t.$$.fragment);
2841
2841
  },
2842
- m(r, i) {
2843
- ve(t, r, i), n = !0;
2842
+ m(r, o) {
2843
+ ve(t, r, o), n = !0;
2844
2844
  },
2845
- p(r, i) {
2845
+ p(r, o) {
2846
2846
  const s = {};
2847
- i & /*step*/
2847
+ o & /*step*/
2848
2848
  4 && (s.step = /*step*/
2849
2849
  r[2]), t.$set(s);
2850
2850
  },
@@ -2859,23 +2859,23 @@ function Cn(e) {
2859
2859
  }
2860
2860
  };
2861
2861
  }
2862
- function xo(e) {
2862
+ function xi(e) {
2863
2863
  let t, n = !N(
2864
2864
  /*step*/
2865
2865
  e[2].options.title
2866
2866
  ) || /*step*/
2867
2867
  e[2].options.cancelIcon && /*step*/
2868
- e[2].options.cancelIcon.enabled, r, i = !N(
2868
+ e[2].options.cancelIcon.enabled, r, o = !N(
2869
2869
  /*step*/
2870
2870
  e[2].options.text
2871
- ), s, o = Array.isArray(
2871
+ ), s, i = Array.isArray(
2872
2872
  /*step*/
2873
2873
  e[2].options.buttons
2874
2874
  ) && /*step*/
2875
- e[2].options.buttons.length, c, a = n && Rn(e), u = i && Tn(e), f = o && Cn(e);
2875
+ e[2].options.buttons.length, c, a = n && Rn(e), u = o && Tn(e), f = i && Cn(e);
2876
2876
  return {
2877
2877
  c() {
2878
- t = se("div"), a && a.c(), r = ut(), u && u.c(), s = ut(), f && f.c(), I(t, "class", "shepherd-content");
2878
+ t = se("div"), a && a.c(), r = ut(), u && u.c(), s = ut(), f && f.c(), k(t, "class", "shepherd-content"), k(t, "tabindex", "0");
2879
2879
  },
2880
2880
  m(h, d) {
2881
2881
  re(h, t, d), a && a.m(t, null), We(t, r), u && u.m(t, null), We(t, s), f && f.m(t, null), c = !0;
@@ -2891,18 +2891,18 @@ function xo(e) {
2891
2891
  4 && P(a, 1)) : (a = Rn(h), a.c(), P(a, 1), a.m(t, r)) : a && (Se(), F(a, 1, 1, () => {
2892
2892
  a = null;
2893
2893
  }), Oe()), d & /*step*/
2894
- 4 && (i = !N(
2894
+ 4 && (o = !N(
2895
2895
  /*step*/
2896
2896
  h[2].options.text
2897
- )), i ? u ? (u.p(h, d), d & /*step*/
2897
+ )), o ? u ? (u.p(h, d), d & /*step*/
2898
2898
  4 && P(u, 1)) : (u = Tn(h), u.c(), P(u, 1), u.m(t, s)) : u && (Se(), F(u, 1, 1, () => {
2899
2899
  u = null;
2900
2900
  }), Oe()), d & /*step*/
2901
- 4 && (o = Array.isArray(
2901
+ 4 && (i = Array.isArray(
2902
2902
  /*step*/
2903
2903
  h[2].options.buttons
2904
2904
  ) && /*step*/
2905
- h[2].options.buttons.length), o ? f ? (f.p(h, d), d & /*step*/
2905
+ h[2].options.buttons.length), i ? f ? (f.p(h, d), d & /*step*/
2906
2906
  4 && P(f, 1)) : (f = Cn(h), f.c(), P(f, 1), f.m(t, null)) : f && (Se(), F(f, 1, 1, () => {
2907
2907
  f = null;
2908
2908
  }), Oe());
@@ -2918,19 +2918,19 @@ function xo(e) {
2918
2918
  }
2919
2919
  };
2920
2920
  }
2921
- function Eo(e, t, n) {
2921
+ function Ei(e, t, n) {
2922
2922
  let {
2923
2923
  descriptionId: r,
2924
- labelId: i,
2924
+ labelId: o,
2925
2925
  step: s
2926
2926
  } = t;
2927
- return e.$$set = (o) => {
2928
- "descriptionId" in o && n(0, r = o.descriptionId), "labelId" in o && n(1, i = o.labelId), "step" in o && n(2, s = o.step);
2929
- }, [r, i, s];
2927
+ return e.$$set = (i) => {
2928
+ "descriptionId" in i && n(0, r = i.descriptionId), "labelId" in i && n(1, o = i.labelId), "step" in i && n(2, s = i.step);
2929
+ }, [r, o, s];
2930
2930
  }
2931
- class So extends de {
2931
+ class Si extends de {
2932
2932
  constructor(t) {
2933
- super(), fe(this, t, Eo, xo, ue, {
2933
+ super(), fe(this, t, Ei, xi, ue, {
2934
2934
  descriptionId: 0,
2935
2935
  labelId: 1,
2936
2936
  step: 2
@@ -2941,7 +2941,7 @@ function An(e) {
2941
2941
  let t;
2942
2942
  return {
2943
2943
  c() {
2944
- t = se("div"), I(t, "class", "shepherd-arrow"), I(t, "data-popper-arrow", "");
2944
+ t = se("div"), k(t, "class", "shepherd-arrow"), k(t, "data-popper-arrow", "");
2945
2945
  },
2946
2946
  m(n, r) {
2947
2947
  re(n, t, r);
@@ -2951,15 +2951,15 @@ function An(e) {
2951
2951
  }
2952
2952
  };
2953
2953
  }
2954
- function Oo(e) {
2955
- let t, n, r, i, s, o, c, a, u = (
2954
+ function Oi(e) {
2955
+ let t, n, r, o, s, i, c, a, u = (
2956
2956
  /*step*/
2957
2957
  e[4].options.arrow && /*step*/
2958
2958
  e[4].options.attachTo && /*step*/
2959
2959
  e[4].options.attachTo.element && /*step*/
2960
2960
  e[4].options.attachTo.on && An()
2961
2961
  );
2962
- r = new So({
2962
+ r = new Si({
2963
2963
  props: {
2964
2964
  descriptionId: (
2965
2965
  /*descriptionId*/
@@ -2977,7 +2977,7 @@ function Oo(e) {
2977
2977
  });
2978
2978
  let f = [
2979
2979
  {
2980
- "aria-describedby": i = N(
2980
+ "aria-describedby": o = N(
2981
2981
  /*step*/
2982
2982
  e[4].options.text
2983
2983
  ) ? null : (
@@ -2995,17 +2995,14 @@ function Oo(e) {
2995
2995
  /*dataStepId*/
2996
2996
  e[1],
2997
2997
  {
2998
- role: "dialog"
2999
- },
3000
- {
3001
- tabindex: "0"
2998
+ open: "true"
3002
2999
  }
3003
3000
  ], h = {};
3004
3001
  for (let d = 0; d < f.length; d += 1)
3005
- h = Hi(h, f[d]);
3002
+ h = Uo(h, f[d]);
3006
3003
  return {
3007
3004
  c() {
3008
- t = se("div"), u && u.c(), n = ut(), Ce(r.$$.fragment), vn(t, h), ke(
3005
+ t = se("dialog"), u && u.c(), n = ut(), Ce(r.$$.fragment), vn(t, h), ke(
3009
3006
  t,
3010
3007
  "shepherd-has-cancel-icon",
3011
3008
  /*hasCancelIcon*/
@@ -3018,7 +3015,7 @@ function Oo(e) {
3018
3015
  ), ke(t, "shepherd-element", !0);
3019
3016
  },
3020
3017
  m(d, g) {
3021
- re(d, t, g), u && u.m(t, null), We(t, n), ve(r, t, null), e[13](t), o = !0, c || (a = pt(
3018
+ re(d, t, g), u && u.m(t, null), We(t, n), ve(r, t, null), e[13](t), i = !0, c || (a = pt(
3022
3019
  t,
3023
3020
  "keydown",
3024
3021
  /*handleKeyDown*/
@@ -3038,16 +3035,16 @@ function Oo(e) {
3038
3035
  8 && (v.labelId = /*labelId*/
3039
3036
  d[3]), g & /*step*/
3040
3037
  16 && (v.step = /*step*/
3041
- d[4]), r.$set(v), vn(t, h = eo(f, [(!o || g & /*step, descriptionId*/
3042
- 20 && i !== (i = N(
3038
+ d[4]), r.$set(v), vn(t, h = ti(f, [(!i || g & /*step, descriptionId*/
3039
+ 20 && o !== (o = N(
3043
3040
  /*step*/
3044
3041
  d[4].options.text
3045
3042
  ) ? null : (
3046
3043
  /*descriptionId*/
3047
3044
  d[2]
3048
3045
  ))) && {
3049
- "aria-describedby": i
3050
- }, (!o || g & /*step, labelId*/
3046
+ "aria-describedby": o
3047
+ }, (!i || g & /*step, labelId*/
3051
3048
  24 && s !== (s = /*step*/
3052
3049
  d[4].options.title ? (
3053
3050
  /*labelId*/
@@ -3057,9 +3054,7 @@ function Oo(e) {
3057
3054
  }, g & /*dataStepId*/
3058
3055
  2 && /*dataStepId*/
3059
3056
  d[1], {
3060
- role: "dialog"
3061
- }, {
3062
- tabindex: "0"
3057
+ open: "true"
3063
3058
  }])), ke(
3064
3059
  t,
3065
3060
  "shepherd-has-cancel-icon",
@@ -3073,37 +3068,37 @@ function Oo(e) {
3073
3068
  ), ke(t, "shepherd-element", !0);
3074
3069
  },
3075
3070
  i(d) {
3076
- o || (P(r.$$.fragment, d), o = !0);
3071
+ i || (P(r.$$.fragment, d), i = !0);
3077
3072
  },
3078
3073
  o(d) {
3079
- F(r.$$.fragment, d), o = !1;
3074
+ F(r.$$.fragment, d), i = !1;
3080
3075
  },
3081
3076
  d(d) {
3082
3077
  d && Z(t), u && u.d(), ye(r), e[13](null), c = !1, a();
3083
3078
  }
3084
3079
  };
3085
3080
  }
3086
- const Ro = 9, To = 27, Co = 37, Ao = 39;
3081
+ const Ri = 9, Ti = 27, Ci = 37, Ai = 39;
3087
3082
  function Pn(e) {
3088
3083
  return e.split(" ").filter((t) => !!t.length);
3089
3084
  }
3090
- function Po(e, t, n) {
3085
+ function Pi(e, t, n) {
3091
3086
  let {
3092
3087
  classPrefix: r,
3093
- element: i,
3088
+ element: o,
3094
3089
  descriptionId: s,
3095
- firstFocusableElement: o,
3090
+ firstFocusableElement: i,
3096
3091
  focusableElements: c,
3097
3092
  labelId: a,
3098
3093
  lastFocusableElement: u,
3099
3094
  step: f,
3100
3095
  dataStepId: h
3101
3096
  } = t, d, g, v;
3102
- const x = () => i;
3103
- Ki(() => {
3097
+ const x = () => o;
3098
+ Xo(() => {
3104
3099
  n(1, h = {
3105
3100
  [`data-${r}shepherd-step-id`]: f.id
3106
- }), n(9, c = i.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')), n(8, o = c[0]), n(10, u = c[c.length - 1]);
3101
+ }), n(9, c = o.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')), n(8, i = c[0]), n(10, u = c[c.length - 1]);
3107
3102
  }), Ut(() => {
3108
3103
  v !== f.options.classes && S();
3109
3104
  });
@@ -3113,13 +3108,13 @@ function Po(e, t, n) {
3113
3108
  function w(m) {
3114
3109
  if (Je(m)) {
3115
3110
  const T = Pn(m);
3116
- T.length && i.classList.remove(...T);
3111
+ T.length && o.classList.remove(...T);
3117
3112
  }
3118
3113
  }
3119
3114
  function _(m) {
3120
3115
  if (Je(m)) {
3121
3116
  const T = Pn(m);
3122
- T.length && i.classList.add(...T);
3117
+ T.length && o.classList.add(...T);
3123
3118
  }
3124
3119
  }
3125
3120
  const R = (m) => {
@@ -3127,39 +3122,39 @@ function Po(e, t, n) {
3127
3122
  tour: T
3128
3123
  } = f;
3129
3124
  switch (m.keyCode) {
3130
- case Ro:
3125
+ case Ri:
3131
3126
  if (c.length === 0) {
3132
3127
  m.preventDefault();
3133
3128
  break;
3134
3129
  }
3135
- m.shiftKey ? (document.activeElement === o || document.activeElement.classList.contains("shepherd-element")) && (m.preventDefault(), u.focus()) : document.activeElement === u && (m.preventDefault(), o.focus());
3130
+ m.shiftKey ? (document.activeElement === i || document.activeElement.classList.contains("shepherd-element")) && (m.preventDefault(), u.focus()) : document.activeElement === u && (m.preventDefault(), i.focus());
3136
3131
  break;
3137
- case To:
3132
+ case Ti:
3138
3133
  T.options.exitOnEsc && (m.preventDefault(), m.stopPropagation(), f.cancel());
3139
3134
  break;
3140
- case Co:
3135
+ case Ci:
3141
3136
  T.options.keyboardNavigation && (m.preventDefault(), m.stopPropagation(), T.back());
3142
3137
  break;
3143
- case Ao:
3138
+ case Ai:
3144
3139
  T.options.keyboardNavigation && (m.preventDefault(), m.stopPropagation(), T.next());
3145
3140
  break;
3146
3141
  }
3147
3142
  };
3148
3143
  function y(m) {
3149
3144
  $e[m ? "unshift" : "push"](() => {
3150
- i = m, n(0, i);
3145
+ o = m, n(0, o);
3151
3146
  });
3152
3147
  }
3153
3148
  return e.$$set = (m) => {
3154
- "classPrefix" in m && n(11, r = m.classPrefix), "element" in m && n(0, i = m.element), "descriptionId" in m && n(2, s = m.descriptionId), "firstFocusableElement" in m && n(8, o = m.firstFocusableElement), "focusableElements" in m && n(9, c = m.focusableElements), "labelId" in m && n(3, a = m.labelId), "lastFocusableElement" in m && n(10, u = m.lastFocusableElement), "step" in m && n(4, f = m.step), "dataStepId" in m && n(1, h = m.dataStepId);
3149
+ "classPrefix" in m && n(11, r = m.classPrefix), "element" in m && n(0, o = m.element), "descriptionId" in m && n(2, s = m.descriptionId), "firstFocusableElement" in m && n(8, i = m.firstFocusableElement), "focusableElements" in m && n(9, c = m.focusableElements), "labelId" in m && n(3, a = m.labelId), "lastFocusableElement" in m && n(10, u = m.lastFocusableElement), "step" in m && n(4, f = m.step), "dataStepId" in m && n(1, h = m.dataStepId);
3155
3150
  }, e.$$.update = () => {
3156
3151
  e.$$.dirty & /*step*/
3157
3152
  16 && (n(5, d = f.options && f.options.cancelIcon && f.options.cancelIcon.enabled), n(6, g = f.options && f.options.title));
3158
- }, [i, h, s, a, f, d, g, R, o, c, u, r, x, y];
3153
+ }, [o, h, s, a, f, d, g, R, i, c, u, r, x, y];
3159
3154
  }
3160
- class ko extends de {
3155
+ class ki extends de {
3161
3156
  constructor(t) {
3162
- super(), fe(this, t, Po, Oo, ue, {
3157
+ super(), fe(this, t, Pi, Oi, ue, {
3163
3158
  classPrefix: 11,
3164
3159
  element: 0,
3165
3160
  descriptionId: 2,
@@ -3199,7 +3194,7 @@ class Mt extends Ft {
3199
3194
  * Triggers `destroy` event
3200
3195
  */
3201
3196
  destroy() {
3202
- ji(this), Ge(this.el) && (this.el.remove(), this.el = null), this._updateStepTargetOnHide(), this.trigger("destroy");
3197
+ Bo(this), Ge(this.el) && (this.el.remove(), this.el = null), this._updateStepTargetOnHide(), this.trigger("destroy");
3203
3198
  }
3204
3199
  /**
3205
3200
  * Returns the tour for the step
@@ -3275,7 +3270,7 @@ class Mt extends Ft {
3275
3270
  */
3276
3271
  _createTooltipContent() {
3277
3272
  const t = `${this.id}-description`, n = `${this.id}-label`;
3278
- return this.shepherdElementComponent = new ko({
3273
+ return this.shepherdElementComponent = new ki({
3279
3274
  target: this.tour.options.stepsContainer || document.body,
3280
3275
  props: {
3281
3276
  classPrefix: this.classPrefix,
@@ -3307,8 +3302,8 @@ class Mt extends Ft {
3307
3302
  * @returns {string} unique string from array of classes
3308
3303
  */
3309
3304
  _getClassOptions(t) {
3310
- const n = this.tour && this.tour.options && this.tour.options.defaultStepOptions, r = t.classes ? t.classes : "", i = n && n.classes ? n.classes : "", s = [...r.split(" "), ...i.split(" ")], o = new Set(s);
3311
- return Array.from(o).join(" ").trim();
3305
+ const n = this.tour && this.tour.options && this.tour.options.defaultStepOptions, r = t.classes ? t.classes : "", o = n && n.classes ? n.classes : "", s = [...r.split(" "), ...o.split(" ")], i = new Set(s);
3306
+ return Array.from(i).join(" ").trim();
3312
3307
  }
3313
3308
  /**
3314
3309
  * Sets the options for the step, maps `when` to events, sets up buttons
@@ -3318,12 +3313,12 @@ class Mt extends Ft {
3318
3313
  let n = this.tour && this.tour.options && this.tour.options.defaultStepOptions;
3319
3314
  n = Lt({}, n || {}), this.options = Object.assign({
3320
3315
  arrow: !0
3321
- }, n, t, Di(n, t));
3316
+ }, n, t, jo(n, t));
3322
3317
  const {
3323
3318
  when: r
3324
3319
  } = this.options;
3325
- this.options.classes = this._getClassOptions(t), this.destroy(), this.id = this.options.id || `step-${Bn()}`, r && Object.keys(r).forEach((i) => {
3326
- this.on(i, r[i], this);
3320
+ this.options.classes = this._getClassOptions(t), this.destroy(), this.id = this.options.id || `step-${Bn()}`, r && Object.keys(r).forEach((o) => {
3321
+ this.on(o, r[o], this);
3327
3322
  });
3328
3323
  }
3329
3324
  /**
@@ -3331,7 +3326,7 @@ class Mt extends Ft {
3331
3326
  * @private
3332
3327
  */
3333
3328
  _setupElements() {
3334
- N(this.el) || this.destroy(), this.el = this._createTooltipContent(), this.options.advanceOn && Jr(this), Li(this);
3329
+ N(this.el) || this.destroy(), this.el = this._createTooltipContent(), this.options.advanceOn && Jr(this), Do(this);
3335
3330
  }
3336
3331
  /**
3337
3332
  * Triggers `before-show`, generates the tooltip DOM content,
@@ -3367,7 +3362,7 @@ class Mt extends Ft {
3367
3362
  this.options.highlightClass && t.classList.remove(this.options.highlightClass), t.classList.remove("shepherd-target-click-disabled", `${this.classPrefix}shepherd-enabled`, `${this.classPrefix}shepherd-target`);
3368
3363
  }
3369
3364
  }
3370
- function Io(e) {
3365
+ function Ii(e) {
3371
3366
  if (e) {
3372
3367
  const {
3373
3368
  steps: t
@@ -3377,64 +3372,64 @@ function Io(e) {
3377
3372
  });
3378
3373
  }
3379
3374
  }
3380
- function Mo({
3375
+ function Mi({
3381
3376
  width: e,
3382
3377
  height: t,
3383
3378
  x: n = 0,
3384
3379
  y: r = 0,
3385
- r: i = 0
3380
+ r: o = 0
3386
3381
  }) {
3387
3382
  const {
3388
3383
  innerWidth: s,
3389
- innerHeight: o
3384
+ innerHeight: i
3390
3385
  } = window, {
3391
3386
  topLeft: c = 0,
3392
3387
  topRight: a = 0,
3393
3388
  bottomRight: u = 0,
3394
3389
  bottomLeft: f = 0
3395
- } = typeof i == "number" ? {
3396
- topLeft: i,
3397
- topRight: i,
3398
- bottomRight: i,
3399
- bottomLeft: i
3400
- } : i;
3401
- return `M${s},${o}H0V0H${s}V${o}ZM${n + c},${r}a${c},${c},0,0,0-${c},${c}V${t + r - f}a${f},${f},0,0,0,${f},${f}H${e + n - u}a${u},${u},0,0,0,${u}-${u}V${r + a}a${a},${a},0,0,0-${a}-${a}Z`;
3402
- }
3403
- function Fo(e) {
3404
- let t, n, r, i, s;
3390
+ } = typeof o == "number" ? {
3391
+ topLeft: o,
3392
+ topRight: o,
3393
+ bottomRight: o,
3394
+ bottomLeft: o
3395
+ } : o;
3396
+ return `M${s},${i}H0V0H${s}V${i}ZM${n + c},${r}a${c},${c},0,0,0-${c},${c}V${t + r - f}a${f},${f},0,0,0,${f},${f}H${e + n - u}a${u},${u},0,0,0,${u}-${u}V${r + a}a${a},${a},0,0,0-${a}-${a}Z`;
3397
+ }
3398
+ function Fi(e) {
3399
+ let t, n, r, o, s;
3405
3400
  return {
3406
3401
  c() {
3407
- t = bn("svg"), n = bn("path"), I(
3402
+ t = bn("svg"), n = bn("path"), k(
3408
3403
  n,
3409
3404
  "d",
3410
3405
  /*pathDefinition*/
3411
3406
  e[2]
3412
- ), I(t, "class", r = `${/*modalIsVisible*/
3407
+ ), k(t, "class", r = `${/*modalIsVisible*/
3413
3408
  e[1] ? "shepherd-modal-is-visible" : ""} shepherd-modal-overlay-container`);
3414
3409
  },
3415
- m(o, c) {
3416
- re(o, t, c), We(t, n), e[11](t), i || (s = pt(
3410
+ m(i, c) {
3411
+ re(i, t, c), We(t, n), e[11](t), o || (s = pt(
3417
3412
  t,
3418
3413
  "touchmove",
3419
3414
  /*_preventModalOverlayTouch*/
3420
3415
  e[3]
3421
- ), i = !0);
3416
+ ), o = !0);
3422
3417
  },
3423
- p(o, [c]) {
3418
+ p(i, [c]) {
3424
3419
  c & /*pathDefinition*/
3425
- 4 && I(
3420
+ 4 && k(
3426
3421
  n,
3427
3422
  "d",
3428
3423
  /*pathDefinition*/
3429
- o[2]
3424
+ i[2]
3430
3425
  ), c & /*modalIsVisible*/
3431
3426
  2 && r !== (r = `${/*modalIsVisible*/
3432
- o[1] ? "shepherd-modal-is-visible" : ""} shepherd-modal-overlay-container`) && I(t, "class", r);
3427
+ i[1] ? "shepherd-modal-is-visible" : ""} shepherd-modal-overlay-container`) && k(t, "class", r);
3433
3428
  },
3434
3429
  i: J,
3435
3430
  o: J,
3436
- d(o) {
3437
- o && Z(t), e[11](null), i = !1, s();
3431
+ d(i) {
3432
+ i && Z(t), e[11](null), o = !1, s();
3438
3433
  }
3439
3434
  };
3440
3435
  }
@@ -3444,7 +3439,7 @@ function Zn(e) {
3444
3439
  const n = e instanceof HTMLElement && window.getComputedStyle(e).overflowY;
3445
3440
  return n !== "hidden" && n !== "visible" && e.scrollHeight >= e.clientHeight ? e : Zn(e.parentElement);
3446
3441
  }
3447
- function Lo(e) {
3442
+ function Li(e) {
3448
3443
  let t = {
3449
3444
  top: 0,
3450
3445
  left: 0
@@ -3454,38 +3449,38 @@ function Lo(e) {
3454
3449
  let n = e.ownerDocument.defaultView;
3455
3450
  for (; n !== window.top; ) {
3456
3451
  var r;
3457
- const o = (r = n) == null ? void 0 : r.frameElement;
3458
- if (o) {
3459
- var i, s;
3460
- const c = o.getBoundingClientRect();
3461
- t.top += c.top + ((i = c.scrollTop) != null ? i : 0), t.left += c.left + ((s = c.scrollLeft) != null ? s : 0);
3452
+ const i = (r = n) == null ? void 0 : r.frameElement;
3453
+ if (i) {
3454
+ var o, s;
3455
+ const c = i.getBoundingClientRect();
3456
+ t.top += c.top + ((o = c.scrollTop) != null ? o : 0), t.left += c.left + ((s = c.scrollLeft) != null ? s : 0);
3462
3457
  }
3463
3458
  n = n.parent;
3464
3459
  }
3465
3460
  return t;
3466
3461
  }
3467
- function Do(e, t) {
3462
+ function Di(e, t) {
3468
3463
  const n = e.getBoundingClientRect();
3469
- let r = n.y || n.top, i = n.bottom || r + n.height;
3464
+ let r = n.y || n.top, o = n.bottom || r + n.height;
3470
3465
  if (t) {
3471
- const o = t.getBoundingClientRect(), c = o.y || o.top, a = o.bottom || c + o.height;
3472
- r = Math.max(r, c), i = Math.min(i, a);
3466
+ const i = t.getBoundingClientRect(), c = i.y || i.top, a = i.bottom || c + i.height;
3467
+ r = Math.max(r, c), o = Math.min(o, a);
3473
3468
  }
3474
- const s = Math.max(i - r, 0);
3469
+ const s = Math.max(o - r, 0);
3475
3470
  return {
3476
3471
  y: r,
3477
3472
  height: s
3478
3473
  };
3479
3474
  }
3480
- function jo(e, t, n) {
3475
+ function ji(e, t, n) {
3481
3476
  let {
3482
3477
  element: r,
3483
- openingProperties: i
3484
- } = t, s = !1, o, c;
3478
+ openingProperties: o
3479
+ } = t, s = !1, i, c;
3485
3480
  u();
3486
3481
  const a = () => r;
3487
3482
  function u() {
3488
- n(4, i = {
3483
+ n(4, o = {
3489
3484
  width: 0,
3490
3485
  height: 0,
3491
3486
  x: 0,
@@ -3496,17 +3491,17 @@ function jo(e, t, n) {
3496
3491
  function f() {
3497
3492
  n(1, s = !1), w();
3498
3493
  }
3499
- function h(y = 0, m = 0, T = 0, B = 0, ie, H) {
3494
+ function h(y = 0, m = 0, T = 0, B = 0, oe, H) {
3500
3495
  if (H) {
3501
3496
  const {
3502
3497
  y: K,
3503
3498
  height: U
3504
- } = Do(H, ie), {
3499
+ } = Di(H, oe), {
3505
3500
  x: W,
3506
3501
  width: j,
3507
3502
  left: L
3508
3503
  } = H.getBoundingClientRect();
3509
- n(4, i = {
3504
+ n(4, o = {
3510
3505
  width: j + y * 2,
3511
3506
  height: U + y * 2,
3512
3507
  x: (W || L) + T - y,
@@ -3533,7 +3528,7 @@ function jo(e, t, n) {
3533
3528
  });
3534
3529
  }
3535
3530
  function w() {
3536
- o && (cancelAnimationFrame(o), o = void 0), window.removeEventListener("touchmove", v, {
3531
+ i && (cancelAnimationFrame(i), i = void 0), window.removeEventListener("touchmove", v, {
3537
3532
  passive: !1
3538
3533
  });
3539
3534
  }
@@ -3542,9 +3537,9 @@ function jo(e, t, n) {
3542
3537
  modalOverlayOpeningPadding: m,
3543
3538
  modalOverlayOpeningRadius: T,
3544
3539
  modalOverlayOpeningXOffset: B = 0,
3545
- modalOverlayOpeningYOffset: ie = 0
3546
- } = y.options, H = Lo(y.target), K = Zn(y.target), U = () => {
3547
- o = void 0, h(m, T, B + H.left, ie + H.top, K, y.target), o = requestAnimationFrame(U);
3540
+ modalOverlayOpeningYOffset: oe = 0
3541
+ } = y.options, H = Li(y.target), K = Zn(y.target), U = () => {
3542
+ i = void 0, h(m, T, B + H.left, oe + H.top, K, y.target), i = requestAnimationFrame(U);
3548
3543
  };
3549
3544
  U(), S();
3550
3545
  }
@@ -3554,15 +3549,15 @@ function jo(e, t, n) {
3554
3549
  });
3555
3550
  }
3556
3551
  return e.$$set = (y) => {
3557
- "element" in y && n(0, r = y.element), "openingProperties" in y && n(4, i = y.openingProperties);
3552
+ "element" in y && n(0, r = y.element), "openingProperties" in y && n(4, o = y.openingProperties);
3558
3553
  }, e.$$.update = () => {
3559
3554
  e.$$.dirty & /*openingProperties*/
3560
- 16 && n(2, c = Mo(i));
3561
- }, [r, s, c, x, i, a, u, f, h, d, g, R];
3555
+ 16 && n(2, c = Mi(o));
3556
+ }, [r, s, c, x, o, a, u, f, h, d, g, R];
3562
3557
  }
3563
- class Bo extends de {
3558
+ class Bi extends de {
3564
3559
  constructor(t) {
3565
- super(), fe(this, t, jo, Fo, ue, {
3560
+ super(), fe(this, t, ji, Fi, ue, {
3566
3561
  element: 0,
3567
3562
  openingProperties: 4,
3568
3563
  getElement: 5,
@@ -3592,24 +3587,24 @@ class Bo extends de {
3592
3587
  return this.$$.ctx[10];
3593
3588
  }
3594
3589
  }
3595
- class No extends Ft {
3590
+ class Ni extends Ft {
3596
3591
  constructor() {
3597
3592
  super(), this.activeTour = void 0, Dt(this);
3598
3593
  }
3599
3594
  }
3600
- class Wo extends Ft {
3595
+ class Wi extends Ft {
3601
3596
  constructor(t = {}) {
3602
3597
  super(), this.trackedEvents = ["active", "cancel", "complete", "show"], this.classPrefix = void 0, this.currentStep = void 0, this.focusedElBeforeOpen = void 0, this.id = void 0, this.modal = void 0, this.options = void 0, this.steps = void 0, Dt(this);
3603
3598
  const n = {
3604
3599
  exitOnEsc: !0,
3605
3600
  keyboardNavigation: !0
3606
3601
  };
3607
- return this.options = Object.assign({}, n, t), this.classPrefix = Dn(this.options.classPrefix), this.steps = [], this.addSteps(this.options.steps), ["active", "cancel", "complete", "inactive", "show", "start"].map((i) => {
3602
+ return this.options = Object.assign({}, n, t), this.classPrefix = Dn(this.options.classPrefix), this.steps = [], this.addSteps(this.options.steps), ["active", "cancel", "complete", "inactive", "show", "start"].map((o) => {
3608
3603
  ((s) => {
3609
- this.on(s, (o) => {
3610
- o = o || {}, o.tour = this, xe.trigger(s, o);
3604
+ this.on(s, (i) => {
3605
+ i = i || {}, i.tour = this, xe.trigger(s, i);
3611
3606
  });
3612
- })(i);
3607
+ })(o);
3613
3608
  }), this._setTourID(t.id), this;
3614
3609
  }
3615
3610
  /**
@@ -3701,9 +3696,9 @@ class Wo extends Ft {
3701
3696
  */
3702
3697
  removeStep(t) {
3703
3698
  const n = this.getCurrentStep();
3704
- this.steps.some((r, i) => {
3699
+ this.steps.some((r, o) => {
3705
3700
  if (r.id === t)
3706
- return r.isOpen() && r.hide(), r.destroy(), this.steps.splice(i, 1), !0;
3701
+ return r.isOpen() && r.hide(), r.destroy(), this.steps.splice(o, 1), !0;
3707
3702
  }), n && n.id === t && (this.currentStep = void 0, this.steps.length ? this.show(0) : this.cancel());
3708
3703
  }
3709
3704
  /**
@@ -3713,10 +3708,10 @@ class Wo extends Ft {
3713
3708
  */
3714
3709
  show(t = 0, n = !0) {
3715
3710
  const r = Je(t) ? this.getById(t) : this.steps[t];
3716
- r && (this._updateStateBeforeShow(), pe(r.options.showOn) && !r.options.showOn() ? this._skipStep(r, n) : (this.trigger("show", {
3711
+ r && (this._updateStateBeforeShow(), pe(r.options.showOn) && !r.options.showOn() ? this._skipStep(r, n) : (this.currentStep = r, this.trigger("show", {
3717
3712
  step: r,
3718
3713
  previous: this.currentStep
3719
- }), this.currentStep = r, r.show()));
3714
+ }), r.show()));
3720
3715
  }
3721
3716
  /**
3722
3717
  * Start the tour
@@ -3731,7 +3726,7 @@ class Wo extends Ft {
3731
3726
  */
3732
3727
  _done(t) {
3733
3728
  const n = this.steps.indexOf(this.currentStep);
3734
- if (Array.isArray(this.steps) && this.steps.forEach((r) => r.destroy()), Io(this), this.trigger(t, {
3729
+ if (Array.isArray(this.steps) && this.steps.forEach((r) => r.destroy()), Ii(this), this.trigger(t, {
3735
3730
  index: n
3736
3731
  }), xe.activeTour = null, this.trigger("inactive", {
3737
3732
  tour: this
@@ -3753,7 +3748,7 @@ class Wo extends Ft {
3753
3748
  * setupModal create the modal container and instance
3754
3749
  */
3755
3750
  setupModal() {
3756
- this.modal = new Bo({
3751
+ this.modal = new Bi({
3757
3752
  target: this.options.modalContainer || document.body,
3758
3753
  props: {
3759
3754
  // @ts-expect-error TODO: investigate where styles comes from
@@ -3772,8 +3767,8 @@ class Wo extends Ft {
3772
3767
  if (r === this.steps.length - 1)
3773
3768
  this.complete();
3774
3769
  else {
3775
- const i = n ? r + 1 : r - 1;
3776
- this.show(i, n);
3770
+ const o = n ? r + 1 : r - 1;
3771
+ this.show(o, n);
3777
3772
  }
3778
3773
  }
3779
3774
  /**
@@ -3794,12 +3789,12 @@ class Wo extends Ft {
3794
3789
  this.id = `${n}--${r}`;
3795
3790
  }
3796
3791
  }
3797
- const xe = new No(), Qn = typeof window > "u";
3792
+ const xe = new Ni(), Qn = typeof window > "u";
3798
3793
  xe.Step = Qn ? Kr : Mt;
3799
- xe.Tour = Qn ? Xr : Wo;
3794
+ xe.Tour = Qn ? Xr : Wi;
3800
3795
  const Yt = Tr(
3801
3796
  void 0
3802
- ), Vo = Yt.Consumer, Ho = () => {
3797
+ ), Vi = Yt.Consumer, Hi = () => {
3803
3798
  const e = Cr(Yt);
3804
3799
  if (!e)
3805
3800
  throw new Error(
@@ -3807,12 +3802,12 @@ const Yt = Tr(
3807
3802
  );
3808
3803
  const { Shepherd: t } = e;
3809
3804
  return t;
3810
- }, Uo = ({
3805
+ }, Ui = ({
3811
3806
  children: e
3812
3807
  }) => /* @__PURE__ */ kr.jsx(Yt.Provider, { value: { Shepherd: xe }, children: e });
3813
3808
  export {
3814
- Vo as JourneyMethods,
3809
+ Vi as JourneyMethods,
3815
3810
  Yt as ShepherdJourneyContext,
3816
- Uo as ShepherdJourneyProvider,
3817
- Ho as useShepherd
3811
+ Ui as ShepherdJourneyProvider,
3812
+ Hi as useShepherd
3818
3813
  };