@appcues/web-sdk 7.7.4 → 7.7.5

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.
Files changed (15) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/{index.8omx86Wg.js → index.9GXuIaQi.js} +1 -1
  3. package/build/{index.wLbfTAwG.js → index.CqR_XnNb.js} +10 -10
  4. package/build/{index.npm.BRwOpL8T.js → index.npm.CfqWFIRl.js} +1 -1
  5. package/build/index.npm.js +1 -1
  6. package/build/{open-builder.jvB2vBaA.js → open-builder.CNK6T74R.js} +494 -491
  7. package/package.json +1 -1
  8. /package/build/{checklist.a67c96e59f9fe53181d052cebd8efc51527f66dc.css → checklist.5f4099830587e6584504e8ee75172b2f2fc9baf4.css} +0 -0
  9. /package/build/{container.a67c96e59f9fe53181d052cebd8efc51527f66dc.css → container.5f4099830587e6584504e8ee75172b2f2fc9baf4.css} +0 -0
  10. /package/build/{debugger.a67c96e59f9fe53181d052cebd8efc51527f66dc.css → debugger.5f4099830587e6584504e8ee75172b2f2fc9baf4.css} +0 -0
  11. /package/build/{modal-step-legacy-render.a67c96e59f9fe53181d052cebd8efc51527f66dc.css → modal-step-legacy-render.5f4099830587e6584504e8ee75172b2f2fc9baf4.css} +0 -0
  12. /package/build/{modal.a67c96e59f9fe53181d052cebd8efc51527f66dc.css → modal.5f4099830587e6584504e8ee75172b2f2fc9baf4.css} +0 -0
  13. /package/build/{satisfaction-survey.a67c96e59f9fe53181d052cebd8efc51527f66dc.css → satisfaction-survey.5f4099830587e6584504e8ee75172b2f2fc9baf4.css} +0 -0
  14. /package/build/{test-mode.a67c96e59f9fe53181d052cebd8efc51527f66dc.css → test-mode.5f4099830587e6584504e8ee75172b2f2fc9baf4.css} +0 -0
  15. /package/build/{tooltip.a67c96e59f9fe53181d052cebd8efc51527f66dc.css → tooltip.5f4099830587e6584504e8ee75172b2f2fc9baf4.css} +0 -0
@@ -55,12 +55,12 @@ var Fe;
55
55
  (function(t) {
56
56
  t.Parent = "#_parent", t.Internal = "#_internal";
57
57
  })(Fe || (Fe = {}));
58
- var Pr = ot.Start, ei = ot.Stop, cr = ot.Raise, ur = ot.Send, Po = ot.Cancel, Xs = ot.NullEvent, Dr = ot.Assign;
58
+ var Pr = ot.Start, ei = ot.Stop, cr = ot.Raise, ur = ot.Send, Po = ot.Cancel, Qs = ot.NullEvent, Dr = ot.Assign;
59
59
  ot.After;
60
60
  ot.DoneState;
61
- var Do = ot.Log, Qs = ot.Init, Hr = ot.Invoke;
61
+ var Do = ot.Log, tc = ot.Init, Hr = ot.Invoke;
62
62
  ot.ErrorExecution;
63
- var Ii = ot.ErrorPlatform, tc = ot.ErrorCustom, Ho = ot.Update, ec = ot.Choose, nc = ot.Pure, Lo = ".", ji = {}, Lr = "xstate.guard", rc = "", Er;
63
+ var Ii = ot.ErrorPlatform, ec = ot.ErrorCustom, Ho = ot.Update, nc = ot.Choose, rc = ot.Pure, Lo = ".", ji = {}, Lr = "xstate.guard", ic = "", Er;
64
64
  function ni(t, e, n) {
65
65
  n === void 0 && (n = Lo);
66
66
  var r = mn(t, n), i = mn(e, n);
@@ -82,11 +82,11 @@ function $r(t, e) {
82
82
  throw new Error("'".concat(t, "' is not a valid state path."));
83
83
  }
84
84
  }
85
- function ic(t) {
85
+ function oc(t) {
86
86
  return typeof t == "object" && "value" in t && "context" in t && "event" in t && "_event" in t;
87
87
  }
88
88
  function mn(t, e) {
89
- if (ic(t))
89
+ if (oc(t))
90
90
  return t.value;
91
91
  if (Ye(t))
92
92
  return Jn(t);
@@ -129,7 +129,7 @@ function Pi(t, e, n) {
129
129
  }
130
130
  return o;
131
131
  }
132
- var oc = function(t) {
132
+ var ac = function(t) {
133
133
  return function(e) {
134
134
  var n, r, i = e;
135
135
  try {
@@ -151,7 +151,7 @@ var oc = function(t) {
151
151
  return i;
152
152
  };
153
153
  };
154
- function ac(t, e) {
154
+ function sc(t, e) {
155
155
  return function(n) {
156
156
  var r, i, o = n;
157
157
  try {
@@ -219,13 +219,13 @@ function Kn(t, e, n) {
219
219
  }
220
220
  return o;
221
221
  }
222
- function sc(t) {
222
+ function cc(t) {
223
223
  return /^(done|error)\./.test(t);
224
224
  }
225
225
  function Di(t) {
226
226
  return !!(t instanceof Promise || t !== null && (ct(t) || typeof t == "object") && ct(t.then));
227
227
  }
228
- function cc(t) {
228
+ function uc(t) {
229
229
  return t !== null && typeof t == "object" && "transition" in t && typeof t.transition == "function";
230
230
  }
231
231
  function zo(t, e) {
@@ -260,7 +260,7 @@ function Vo(t, e) {
260
260
  }
261
261
  });
262
262
  }
263
- function uc(t, e) {
263
+ function lc(t, e) {
264
264
  return {
265
265
  current: e,
266
266
  states: Vo(t, e)
@@ -296,7 +296,7 @@ function Hi(t, e, n, r) {
296
296
  }, t);
297
297
  return i;
298
298
  }
299
- var lc = function() {
299
+ var fc = function() {
300
300
  };
301
301
  function Ye(t) {
302
302
  return Array.isArray(t);
@@ -319,7 +319,7 @@ function Uo(t, e) {
319
319
  predicate: t
320
320
  } : t;
321
321
  }
322
- function fc(t) {
322
+ function dc(t) {
323
323
  try {
324
324
  return "subscribe" in t && ct(t.subscribe);
325
325
  } catch {
@@ -337,10 +337,10 @@ Er = {}, Er[pe] = function() {
337
337
  function Be(t) {
338
338
  return !!t && "__xstatenode" in t;
339
339
  }
340
- function dc(t) {
340
+ function pc(t) {
341
341
  return !!t && typeof t.send == "function";
342
342
  }
343
- var pc = /* @__PURE__ */ (function() {
343
+ var hc = /* @__PURE__ */ (function() {
344
344
  var t = 0;
345
345
  return function() {
346
346
  return t++, t.toString(16);
@@ -373,8 +373,8 @@ function je(t, e) {
373
373
  });
374
374
  return n;
375
375
  }
376
- function hc(t) {
377
- if (!(t === void 0 || t === rc))
376
+ function vc(t) {
377
+ if (!(t === void 0 || t === ic))
378
378
  return Vt(t);
379
379
  }
380
380
  function Fo(t, e, n, r, i) {
@@ -410,7 +410,7 @@ function In(t, e) {
410
410
  return "".concat(t, ":invocation[").concat(e, "]");
411
411
  }
412
412
  var Zn = /* @__PURE__ */ Ot({
413
- type: Qs
413
+ type: tc
414
414
  });
415
415
  function zr(t, e) {
416
416
  return e && e[t] || void 0;
@@ -472,7 +472,7 @@ function qo(t) {
472
472
  to: Fe.Internal
473
473
  });
474
474
  }
475
- function vc(t) {
475
+ function gc(t) {
476
476
  return {
477
477
  type: cr,
478
478
  _event: Ot(t.event)
@@ -487,7 +487,7 @@ function _n(t, e) {
487
487
  id: e && e.id !== void 0 ? e.id : ct(t) ? t.name : $o(t)
488
488
  };
489
489
  }
490
- function gc(t, e, n, r) {
490
+ function yc(t, e, n, r) {
491
491
  var i = {
492
492
  _event: n
493
493
  }, o = Ot(ct(t.event) ? t.event(e, n.data, i) : t.event), a;
@@ -504,24 +504,24 @@ function gc(t, e, n, r) {
504
504
  delay: a
505
505
  });
506
506
  }
507
- function yc(t, e) {
507
+ function mc(t, e) {
508
508
  return _n(t, D(D({}, e), {
509
509
  to: Fe.Parent
510
510
  }));
511
511
  }
512
- var mc = function(t, e, n) {
512
+ var bc = function(t, e, n) {
513
513
  return D(D({}, t), {
514
514
  value: nt(t.expr) ? t.expr : t.expr(e, n.data, {
515
515
  _event: n
516
516
  })
517
517
  });
518
- }, bc = function(t) {
518
+ }, Ec = function(t) {
519
519
  return {
520
520
  type: Po,
521
521
  sendId: t
522
522
  };
523
523
  };
524
- function Ec(t) {
524
+ function xc(t) {
525
525
  var e = ii(t);
526
526
  return {
527
527
  type: ot.Start,
@@ -529,7 +529,7 @@ function Ec(t) {
529
529
  exec: void 0
530
530
  };
531
531
  }
532
- function xc(t) {
532
+ function wc(t) {
533
533
  var e = ct(t) ? t : ii(t);
534
534
  return {
535
535
  type: ot.Stop,
@@ -537,7 +537,7 @@ function xc(t) {
537
537
  exec: void 0
538
538
  };
539
539
  }
540
- function wc(t, e, n) {
540
+ function Sc(t, e, n) {
541
541
  var r = ct(t.activity) ? t.activity(e, n.data) : t.activity, i = typeof r == "string" ? {
542
542
  id: r
543
543
  } : r, o = {
@@ -546,13 +546,13 @@ function wc(t, e, n) {
546
546
  };
547
547
  return o;
548
548
  }
549
- var Sc = function(t) {
549
+ var _c = function(t) {
550
550
  return {
551
551
  type: Dr,
552
552
  assignment: t
553
553
  };
554
554
  };
555
- function _c(t, e) {
555
+ function Tc(t, e) {
556
556
  var n = e ? "#".concat(e) : "";
557
557
  return "".concat(ot.After, "(").concat(t, ")").concat(n);
558
558
  }
@@ -583,13 +583,13 @@ function vn(t, e) {
583
583
  return n;
584
584
  }, r;
585
585
  }
586
- function Tc(t) {
586
+ function kc(t) {
587
587
  return {
588
588
  type: ot.Pure,
589
589
  get: t
590
590
  };
591
591
  }
592
- function kc(t, e) {
592
+ function Oc(t, e) {
593
593
  return _n(function(n, r) {
594
594
  return r;
595
595
  }, D(D({}, e), {
@@ -610,13 +610,13 @@ function Vr(t, e, n, r, i, o) {
610
610
  var p;
611
611
  switch (u.type) {
612
612
  case cr:
613
- return vc(u);
613
+ return gc(u);
614
614
  case ur:
615
- var d = gc(u, h, r, t.options.delays);
615
+ var d = yc(u, h, r, t.options.delays);
616
616
  return d;
617
617
  case Do:
618
- return mc(u, h, r);
619
- case ec: {
618
+ return bc(u, h, r);
619
+ case nc: {
620
620
  var m = u, b = (p = m.conds.find(function(L) {
621
621
  var V = Uo(L.cond, t.options.guards);
622
622
  return !V || Fo(t, V, h, r, e);
@@ -626,7 +626,7 @@ function Vr(t, e, n, r, i, o) {
626
626
  var E = it(Vr(t, e, h, r, Yn(Vt(b), t.options.actions), o), 2), v = E[0], w = E[1];
627
627
  return h = w, y?.push(h), v;
628
628
  }
629
- case nc: {
629
+ case rc: {
630
630
  var b = u.get(h, r.data);
631
631
  if (!b)
632
632
  return [];
@@ -634,7 +634,7 @@ function Vr(t, e, n, r, i, o) {
634
634
  return h = N, y?.push(h), _;
635
635
  }
636
636
  case ei:
637
- return wc(u, h, r);
637
+ return Sc(u, h, r);
638
638
  case Dr: {
639
639
  h = Hi(h, r, [u], e), y?.push(h);
640
640
  break;
@@ -662,7 +662,7 @@ var Wn = [], gn = function(t, e) {
662
662
  Wn.push(t);
663
663
  var n = e(t);
664
664
  return Wn.pop(), n;
665
- }, Oc = function(t) {
665
+ }, Cc = function(t) {
666
666
  return t(Wn[Wn.length - 1]);
667
667
  };
668
668
  function Jo(t) {
@@ -688,7 +688,7 @@ function Jo(t) {
688
688
  return this;
689
689
  }, e;
690
690
  }
691
- function Cc(t, e, n, r) {
691
+ function Rc(t, e, n, r) {
692
692
  var i, o = Bo(t.src), a = (i = e?.options.services) === null || i === void 0 ? void 0 : i[o.type], s = t.data ? Kn(t.data, n, r) : void 0, c = a ? Ko(a, t.id, s) : Jo(t.id);
693
693
  return c.meta = t, c;
694
694
  }
@@ -704,17 +704,17 @@ function Ko(t, e, n) {
704
704
  }
705
705
  return r;
706
706
  }
707
- function Rc(t) {
707
+ function Ac(t) {
708
708
  try {
709
709
  return typeof t.send == "function";
710
710
  } catch {
711
711
  return !1;
712
712
  }
713
713
  }
714
- function Ac(t) {
715
- return Rc(t) && "id" in t;
716
- }
717
714
  function Nc(t) {
715
+ return Ac(t) && "id" in t;
716
+ }
717
+ function Ic(t) {
718
718
  var e;
719
719
  return D((e = {
720
720
  subscribe: function() {
@@ -858,7 +858,7 @@ function Ur(t) {
858
858
  }
859
859
  return r;
860
860
  }
861
- function Ic(t, e) {
861
+ function jc(t, e) {
862
862
  var n = $e([t], e);
863
863
  return Yo(t, Ur(n));
864
864
  }
@@ -867,7 +867,7 @@ function Bn(t, e) {
867
867
  return n === e;
868
868
  }) : t instanceof Set ? t.has(e) : !1;
869
869
  }
870
- function jc(t) {
870
+ function Pc(t) {
871
871
  return gt([], it(new Set(dt(gt([], it(t.map(function(e) {
872
872
  return e.ownEvents;
873
873
  })), !1)))), !1);
@@ -879,7 +879,7 @@ function bn(t, e) {
879
879
  return bn(t, n);
880
880
  }) : !1;
881
881
  }
882
- function Pc(t) {
882
+ function Dc(t) {
883
883
  return t === void 0 && (t = []), t.reduce(function(e, n) {
884
884
  return n.meta !== void 0 && (e[n.id] = n.meta), e;
885
885
  }, {});
@@ -901,10 +901,10 @@ function Wo(t, e) {
901
901
  return Wo(t[i], e[i]);
902
902
  });
903
903
  }
904
- function Dc(t) {
904
+ function Hc(t) {
905
905
  return typeof t != "object" || t === null ? !1 : "value" in t && "_event" in t;
906
906
  }
907
- function Hc(t, e) {
907
+ function Lc(t, e) {
908
908
  var n = t.exec, r = D(D({}, t), {
909
909
  exec: n !== void 0 ? function() {
910
910
  return n(e.context, e.event, {
@@ -921,9 +921,9 @@ var Qt = (
921
921
  /* @__PURE__ */ (function() {
922
922
  function t(e) {
923
923
  var n = this, r;
924
- this.actions = [], this.activities = ji, this.meta = {}, this.events = [], this.value = e.value, this.context = e.context, this._event = e._event, this._sessionid = e._sessionid, this.event = this._event.data, this.historyValue = e.historyValue, this.history = e.history, this.actions = e.actions || [], this.activities = e.activities || ji, this.meta = Pc(e.configuration), this.events = e.events || [], this.matches = this.matches.bind(this), this.toStrings = this.toStrings.bind(this), this.configuration = e.configuration, this.transitions = e.transitions, this.children = e.children, this.done = !!e.done, this.tags = (r = Array.isArray(e.tags) ? new Set(e.tags) : e.tags) !== null && r !== void 0 ? r : /* @__PURE__ */ new Set(), this.machine = e.machine, Object.defineProperty(this, "nextEvents", {
924
+ this.actions = [], this.activities = ji, this.meta = {}, this.events = [], this.value = e.value, this.context = e.context, this._event = e._event, this._sessionid = e._sessionid, this.event = this._event.data, this.historyValue = e.historyValue, this.history = e.history, this.actions = e.actions || [], this.activities = e.activities || ji, this.meta = Dc(e.configuration), this.events = e.events || [], this.matches = this.matches.bind(this), this.toStrings = this.toStrings.bind(this), this.configuration = e.configuration, this.transitions = e.transitions, this.children = e.children, this.done = !!e.done, this.tags = (r = Array.isArray(e.tags) ? new Set(e.tags) : e.tags) !== null && r !== void 0 ? r : /* @__PURE__ */ new Set(), this.machine = e.machine, Object.defineProperty(this, "nextEvents", {
925
925
  get: function() {
926
- return jc(n.configuration);
926
+ return Pc(n.configuration);
927
927
  }
928
928
  });
929
929
  }
@@ -1004,7 +1004,7 @@ var Qt = (
1004
1004
  return this.tags.has(e);
1005
1005
  }, t.prototype.can = function(e) {
1006
1006
  var n;
1007
- lc(!!this.machine);
1007
+ fc(!!this.machine);
1008
1008
  var r = (n = this.machine) === null || n === void 0 ? void 0 : n.getTransitionData(this, e);
1009
1009
  return !!r?.transitions.length && // Check that at least one transition is not forbidden
1010
1010
  r.transitions.some(function(i) {
@@ -1012,13 +1012,13 @@ var Qt = (
1012
1012
  });
1013
1013
  }, t;
1014
1014
  })()
1015
- ), Lc = {
1015
+ ), $c = {
1016
1016
  deferEvents: !1
1017
1017
  }, $i = (
1018
1018
  /** @class */
1019
1019
  /* @__PURE__ */ (function() {
1020
1020
  function t(e) {
1021
- this.processingEvent = !1, this.queue = [], this.initialized = !1, this.options = D(D({}, Lc), e);
1021
+ this.processingEvent = !1, this.queue = [], this.initialized = !1, this.options = D(D({}, $c), e);
1022
1022
  }
1023
1023
  return t.prototype.initialize = function(e) {
1024
1024
  if (this.initialized = !0, e) {
@@ -1053,9 +1053,9 @@ var Qt = (
1053
1053
  }
1054
1054
  }, t;
1055
1055
  })()
1056
- ), xr = /* @__PURE__ */ new Map(), $c = 0, Pn = {
1056
+ ), xr = /* @__PURE__ */ new Map(), Mc = 0, Pn = {
1057
1057
  bookId: function() {
1058
- return "x:".concat($c++);
1058
+ return "x:".concat(Mc++);
1059
1059
  },
1060
1060
  register: function(t, e) {
1061
1061
  return xr.set(t, e), t;
@@ -1077,18 +1077,18 @@ function oi() {
1077
1077
  if (typeof global < "u")
1078
1078
  return global;
1079
1079
  }
1080
- function Mc() {
1080
+ function zc() {
1081
1081
  var t = oi();
1082
1082
  if (t && "__xstate__" in t)
1083
1083
  return t.__xstate__;
1084
1084
  }
1085
- function zc(t) {
1085
+ function Vc(t) {
1086
1086
  if (oi()) {
1087
- var e = Mc();
1087
+ var e = zc();
1088
1088
  e && e.register(t);
1089
1089
  }
1090
1090
  }
1091
- function Vc(t, e) {
1091
+ function Uc(t, e) {
1092
1092
  e === void 0 && (e = {});
1093
1093
  var n = t.initialState, r = /* @__PURE__ */ new Set(), i = [], o = !1, a = function() {
1094
1094
  if (!o) {
@@ -1100,7 +1100,7 @@ function Vc(t, e) {
1100
1100
  }
1101
1101
  o = !1;
1102
1102
  }
1103
- }, s = Nc({
1103
+ }, s = Ic({
1104
1104
  id: e.id,
1105
1105
  send: function(h) {
1106
1106
  i.push(h), a();
@@ -1131,7 +1131,7 @@ var Fr = {
1131
1131
  (function(t) {
1132
1132
  t[t.NotStarted = 0] = "NotStarted", t[t.Running = 1] = "Running", t[t.Stopped = 2] = "Stopped";
1133
1133
  })(Rt || (Rt = {}));
1134
- var Uc = (
1134
+ var Fc = (
1135
1135
  /** @class */
1136
1136
  /* @__PURE__ */ (function() {
1137
1137
  function t(e, n) {
@@ -1154,14 +1154,14 @@ Event: `
1154
1154
  r.update(p, u);
1155
1155
  }), r._state;
1156
1156
  }, this.sendTo = function(y, l) {
1157
- var u = r.parent && (l === Fe.Parent || r.parent.id === l), p = u ? r.parent : nt(l) ? r.children.get(l) || Pn.get(l) : dc(l) ? l : void 0;
1157
+ var u = r.parent && (l === Fe.Parent || r.parent.id === l), p = u ? r.parent : nt(l) ? r.children.get(l) || Pn.get(l) : pc(l) ? l : void 0;
1158
1158
  if (!p) {
1159
1159
  if (!u)
1160
1160
  throw new Error("Unable to send event to child '".concat(l, "' from service '").concat(r.id, "'."));
1161
1161
  return;
1162
1162
  }
1163
1163
  "machine" in p ? p.send(D(D({}, y), {
1164
- name: y.name === tc ? "".concat(vn(r.id)) : y.name,
1164
+ name: y.name === ec ? "".concat(vn(r.id)) : y.name,
1165
1165
  origin: r.sessionId
1166
1166
  })) : p.send(y.data);
1167
1167
  };
@@ -1312,7 +1312,7 @@ Event: `
1312
1312
  return this;
1313
1313
  this.machine._init(), Pn.register(this.sessionId, this), this.initialized = !0, this.status = Rt.Running;
1314
1314
  var r = e === void 0 ? this.initialState : gn(this, function() {
1315
- return Dc(e) ? n.machine.resolveState(e) : n.machine.resolveState(Qt.from(e, n.machine.context));
1315
+ return Hc(e) ? n.machine.resolveState(e) : n.machine.resolveState(Qt.from(e, n.machine.context));
1316
1316
  });
1317
1317
  return this.options.devTools && this.attachDev(), this.scheduler.initialize(function() {
1318
1318
  n.update(r, Zn);
@@ -1440,7 +1440,7 @@ Event: `
1440
1440
  n.forward(p), o = gn(n, function() {
1441
1441
  return n.machine.transition(o, p);
1442
1442
  }), s.push.apply(s, gt([], it(o.actions.map(function(d) {
1443
- return Hc(d, o);
1443
+ return Lc(d, o);
1444
1444
  })), !1)), a = a || !!o.changed;
1445
1445
  };
1446
1446
  try {
@@ -1576,15 +1576,15 @@ Event: `
1576
1576
  return this.spawnPromise(Promise.resolve(e), n);
1577
1577
  if (ct(e))
1578
1578
  return this.spawnCallback(e, n);
1579
- if (Ac(e))
1579
+ if (Nc(e))
1580
1580
  return this.spawnActor(e, n);
1581
- if (fc(e))
1581
+ if (dc(e))
1582
1582
  return this.spawnObservable(e, n);
1583
1583
  if (Be(e))
1584
1584
  return this.spawnMachine(e, D(D({}, r), {
1585
1585
  id: n
1586
1586
  }));
1587
- if (cc(e))
1587
+ if (uc(e))
1588
1588
  return this.spawnBehavior(e, n);
1589
1589
  throw new Error('Unable to spawn entity "'.concat(n, '" of type "').concat(typeof e, '".'));
1590
1590
  }, t.prototype.spawnMachine = function(e, n) {
@@ -1607,7 +1607,7 @@ Event: `
1607
1607
  }));
1608
1608
  }).start(), a;
1609
1609
  }, t.prototype.spawnBehavior = function(e, n) {
1610
- var r = Vc(e, {
1610
+ var r = Uc(e, {
1611
1611
  id: n,
1612
1612
  parent: this
1613
1613
  });
@@ -1797,7 +1797,7 @@ Event: `
1797
1797
  }, n ? n.features : void 0)
1798
1798
  }), this.machine), this.devTools.init(this.state);
1799
1799
  }
1800
- zc(this);
1800
+ Vc(this);
1801
1801
  }
1802
1802
  }, t.prototype.toJSON = function() {
1803
1803
  return {
@@ -1823,24 +1823,24 @@ Event: `
1823
1823
  devTools: !1
1824
1824
  }, t.interpret = Qo, t;
1825
1825
  })()
1826
- ), Fc = function(t) {
1826
+ ), Bc = function(t) {
1827
1827
  return nt(t) ? D(D({}, Fr), {
1828
1828
  name: t
1829
1829
  }) : D(D(D({}, Fr), {
1830
- name: pc()
1830
+ name: hc()
1831
1831
  }), t);
1832
1832
  };
1833
1833
  function Xo(t, e) {
1834
- var n = Fc(e);
1835
- return Oc(function(r) {
1834
+ var n = Bc(e);
1835
+ return Cc(function(r) {
1836
1836
  return r ? r.spawn(t, n.name, n) : Ko(t, n.name);
1837
1837
  });
1838
1838
  }
1839
1839
  function Qo(t, e) {
1840
- var n = new Uc(t, e);
1840
+ var n = new Fc(t, e);
1841
1841
  return n;
1842
1842
  }
1843
- function Bc(t) {
1843
+ function qc(t) {
1844
1844
  if (typeof t == "string") {
1845
1845
  var e = {
1846
1846
  type: t
@@ -1860,14 +1860,14 @@ function Dn(t) {
1860
1860
  var e = ti(t, ["onDone", "onError"]);
1861
1861
  return D(D({}, e), {
1862
1862
  type: Hr,
1863
- src: Bc(t.src)
1863
+ src: qc(t.src)
1864
1864
  });
1865
1865
  }
1866
1866
  });
1867
1867
  }
1868
1868
  var Hn = "", Br = "#", wr = "*", Pe = {}, De = function(t) {
1869
1869
  return t[0] === Br;
1870
- }, qc = function() {
1870
+ }, Gc = function() {
1871
1871
  return {
1872
1872
  actions: {},
1873
1873
  guards: {},
@@ -1875,7 +1875,7 @@ var Hn = "", Br = "#", wr = "*", Pe = {}, De = function(t) {
1875
1875
  activities: {},
1876
1876
  delays: {}
1877
1877
  };
1878
- }, Gc = (
1878
+ }, Jc = (
1879
1879
  /** @class */
1880
1880
  /* @__PURE__ */ (function() {
1881
1881
  function t(e, n, r, i) {
@@ -1891,7 +1891,7 @@ var Hn = "", Br = "#", wr = "*", Pe = {}, De = function(t) {
1891
1891
  transitions: void 0,
1892
1892
  candidates: {},
1893
1893
  delayedTransitions: void 0
1894
- }, this.idMap = {}, this.tags = [], this.options = Object.assign(qc(), n), this.parent = i?.parent, this.key = this.config.key || i?.key || this.config.id || "(machine)", this.machine = this.parent ? this.parent.machine : this, this.path = this.parent ? this.parent.path.concat(this.key) : [], this.delimiter = this.config.delimiter || (this.parent ? this.parent.delimiter : Lo), this.id = this.config.id || gt([this.machine.key], it(this.path), !1).join(this.delimiter), this.version = this.parent ? this.parent.version : this.config.version, this.type = this.config.type || (this.config.parallel ? "parallel" : this.config.states && Object.keys(this.config.states).length ? "compound" : this.config.history ? "history" : "atomic"), this.schema = this.parent ? this.machine.schema : (a = this.config.schema) !== null && a !== void 0 ? a : {}, this.description = this.config.description, this.initial = this.config.initial, this.states = this.config.states ? hn(this.config.states, function(h, y) {
1894
+ }, this.idMap = {}, this.tags = [], this.options = Object.assign(Gc(), n), this.parent = i?.parent, this.key = this.config.key || i?.key || this.config.id || "(machine)", this.machine = this.parent ? this.parent.machine : this, this.path = this.parent ? this.parent.path.concat(this.key) : [], this.delimiter = this.config.delimiter || (this.parent ? this.parent.delimiter : Lo), this.id = this.config.id || gt([this.machine.key], it(this.path), !1).join(this.delimiter), this.version = this.parent ? this.parent.version : this.config.version, this.type = this.config.type || (this.config.parallel ? "parallel" : this.config.states && Object.keys(this.config.states).length ? "compound" : this.config.history ? "history" : "atomic"), this.schema = this.parent ? this.machine.schema : (a = this.config.schema) !== null && a !== void 0 ? a : {}, this.description = this.config.description, this.initial = this.config.initial, this.states = this.config.states ? hn(this.config.states, function(h, y) {
1895
1895
  var l, u = new t(h, {}, void 0, {
1896
1896
  parent: o,
1897
1897
  key: y
@@ -2055,10 +2055,10 @@ var Hn = "", Br = "#", wr = "*", Pe = {}, De = function(t) {
2055
2055
  if (!n)
2056
2056
  return [];
2057
2057
  var r = function(o, a) {
2058
- var s = ct(o) ? "".concat(e.id, ":delay[").concat(a, "]") : o, c = _c(s, e.id);
2058
+ var s = ct(o) ? "".concat(e.id, ":delay[").concat(a, "]") : o, c = Tc(s, e.id);
2059
2059
  return e.onEntry.push(_n(c, {
2060
2060
  delay: o
2061
- })), e.onExit.push(bc(c)), c;
2061
+ })), e.onExit.push(Ec(c)), c;
2062
2062
  }, i = Ye(n) ? n.map(function(o, a) {
2063
2063
  var s = r(o.delay, a);
2064
2064
  return D(D({}, o), {
@@ -2172,7 +2172,7 @@ var Hn = "", Br = "#", wr = "*", Pe = {}, De = function(t) {
2172
2172
  e.matches(mn(this.getStateNodeById(d).path, this.delimiter))
2173
2173
  ) : (
2174
2174
  // Check if in state by relative grandparent
2175
- ni(mn(d, this.delimiter), oc(this.path.slice(0, -2))(e.value))
2175
+ ni(mn(d, this.delimiter), ac(this.path.slice(0, -2))(e.value))
2176
2176
  ) : !0, E = !1;
2177
2177
  try {
2178
2178
  E = !p || Fo(this.machine, p, m, n, e);
@@ -2293,11 +2293,11 @@ var Hn = "", Br = "#", wr = "*", Pe = {}, De = function(t) {
2293
2293
  });
2294
2294
  var E = new Set(e.entrySet), v = new Set(e.exitSet), w = it([dt(Array.from(E).map(function(k) {
2295
2295
  return gt(gt([], it(k.activities.map(function(R) {
2296
- return Ec(R);
2296
+ return xc(R);
2297
2297
  })), !1), it(k.onEntry), !1);
2298
2298
  })).concat(b.map(qo)), dt(Array.from(v).map(function(k) {
2299
2299
  return gt(gt([], it(k.onExit), !1), it(k.activities.map(function(R) {
2300
- return xc(R);
2300
+ return wc(R);
2301
2301
  })), !1);
2302
2302
  }))], 2), O = w[0], _ = w[1], N = Yn(_.concat(e.actions).concat(O), this.machine.options.actions);
2303
2303
  return N;
@@ -2310,7 +2310,7 @@ var Hn = "", Br = "#", wr = "*", Pe = {}, De = function(t) {
2310
2310
  var a = nt(e) ? this.resolve(Jn(this.getResolvedPath(e))) : this.resolve(e), s = r ?? this.machine.context;
2311
2311
  o = this.resolveState(Qt.from(a, s));
2312
2312
  }
2313
- if (this.strict && !this.events.includes(i.name) && !sc(i.name))
2313
+ if (this.strict && !this.events.includes(i.name) && !cc(i.name))
2314
2314
  throw new Error("Machine '".concat(this.id, "' does not accept event '").concat(i.name, "'"));
2315
2315
  var c = this._transition(o.value, o, i) || {
2316
2316
  transitions: [],
@@ -2327,7 +2327,7 @@ var Hn = "", Br = "#", wr = "*", Pe = {}, De = function(t) {
2327
2327
  }, t.prototype.resolveTransition = function(e, n, r, i) {
2328
2328
  var o, a, s = this;
2329
2329
  i === void 0 && (i = Zn);
2330
- var c = e.configuration, h = !n || e.transitions.length > 0, y = h ? Ic(this.machine, c) : void 0, l = n ? n.historyValue ? n.historyValue : e.source ? this.machine.historyValue(n.value) : void 0 : void 0, u = this.getActions(e, r, i, n), p = n ? D({}, n.activities) : {};
2330
+ var c = e.configuration, h = !n || e.transitions.length > 0, y = h ? jc(this.machine, c) : void 0, l = n ? n.historyValue ? n.historyValue : e.source ? this.machine.historyValue(n.value) : void 0 : void 0, u = this.getActions(e, r, i, n), p = n ? D({}, n.activities) : {};
2331
2331
  try {
2332
2332
  for (var d = et(u), m = d.next(); !m.done; m = d.next()) {
2333
2333
  var b = m.value;
@@ -2350,14 +2350,14 @@ var Hn = "", Br = "#", wr = "*", Pe = {}, De = function(t) {
2350
2350
  var at;
2351
2351
  return Y.type === Pr && ((at = Y.activity) === null || at === void 0 ? void 0 : at.type) === Hr;
2352
2352
  }), R = k.reduce(function(Y, at) {
2353
- return Y[at.activity.id] = Cc(at.activity, s.machine, w, i), Y;
2353
+ return Y[at.activity.id] = Rc(at.activity, s.machine, w, i), Y;
2354
2354
  }, n ? D({}, n.children) : {}), j = h ? e.configuration : n ? n.configuration : [], L = bn(j, this), V = new Qt({
2355
2355
  value: y || n.value,
2356
2356
  context: w,
2357
2357
  _event: i,
2358
2358
  // Persist _sessionid between states
2359
2359
  _sessionid: n ? n._sessionid : null,
2360
- historyValue: y ? l ? uc(l, y) : void 0 : n ? n.historyValue : void 0,
2360
+ historyValue: y ? l ? lc(l, y) : void 0 : n ? n.historyValue : void 0,
2361
2361
  history: !y || e.source ? n : void 0,
2362
2362
  actions: y ? N : [],
2363
2363
  activities: y ? p : n ? n.activities : {},
@@ -2380,7 +2380,7 @@ var Hn = "", Br = "#", wr = "*", Pe = {}, De = function(t) {
2380
2380
  var Z = V;
2381
2381
  if (!L)
2382
2382
  for (X && (Z = this.resolveRaisedTransition(Z, {
2383
- type: Xs
2383
+ type: Qs
2384
2384
  }, i)); _.length; ) {
2385
2385
  var rt = _.shift();
2386
2386
  Z = this.resolveRaisedTransition(Z, rt._event, i);
@@ -2558,7 +2558,7 @@ var Hn = "", Br = "#", wr = "*", Pe = {}, De = function(t) {
2558
2558
  return r.getFromRelativePath(a);
2559
2559
  })) : r.initialStateNodes;
2560
2560
  }
2561
- var o = ac(r.path, "states")(e).current;
2561
+ var o = sc(r.path, "states")(e).current;
2562
2562
  return nt(o) ? [r.getStateNode(o)] : dt(Un(o).map(function(a) {
2563
2563
  return n.history === "deep" ? r.getFromRelativePath(a) : [r.states[a[0]]];
2564
2564
  }));
@@ -2658,7 +2658,7 @@ var Hn = "", Br = "#", wr = "*", Pe = {}, De = function(t) {
2658
2658
  return n.getStateNodeByPath(o);
2659
2659
  });
2660
2660
  }, t.prototype.formatTransition = function(e) {
2661
- var n = this, r = hc(e.target), i = "internal" in e ? e.internal : r ? r.some(function(c) {
2661
+ var n = this, r = vc(e.target), i = "internal" in e ? e.internal : r ? r.some(function(c) {
2662
2662
  return nt(c) && c[0] === n.delimiter;
2663
2663
  }) : !0, o = this.machine.options.guards, a = this.resolveTarget(r), s = D(D({}, e), {
2664
2664
  actions: Yn(Vt(e.actions)),
@@ -2719,31 +2719,31 @@ var Hn = "", Br = "#", wr = "*", Pe = {}, De = function(t) {
2719
2719
  })()
2720
2720
  );
2721
2721
  function lr(t, e) {
2722
- return new Gc(t, e);
2722
+ return new Jc(t, e);
2723
2723
  }
2724
- var mt = Sc, ai = _n, qt = yc, He = kc, Ln, Jc = new Uint8Array(16);
2725
- function Kc() {
2724
+ var mt = _c, ai = _n, qt = mc, He = Oc, Ln, Kc = new Uint8Array(16);
2725
+ function Zc() {
2726
2726
  if (!Ln && (Ln = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), !Ln))
2727
2727
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
2728
- return Ln(Jc);
2728
+ return Ln(Kc);
2729
2729
  }
2730
- const Zc = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
2731
- function Yc(t) {
2732
- return typeof t == "string" && Zc.test(t);
2730
+ const Yc = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
2731
+ function Wc(t) {
2732
+ return typeof t == "string" && Yc.test(t);
2733
2733
  }
2734
2734
  var xt = [];
2735
2735
  for (var Sr = 0; Sr < 256; ++Sr)
2736
2736
  xt.push((Sr + 256).toString(16).substr(1));
2737
- function Wc(t) {
2737
+ function Xc(t) {
2738
2738
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = (xt[t[e + 0]] + xt[t[e + 1]] + xt[t[e + 2]] + xt[t[e + 3]] + "-" + xt[t[e + 4]] + xt[t[e + 5]] + "-" + xt[t[e + 6]] + xt[t[e + 7]] + "-" + xt[t[e + 8]] + xt[t[e + 9]] + "-" + xt[t[e + 10]] + xt[t[e + 11]] + xt[t[e + 12]] + xt[t[e + 13]] + xt[t[e + 14]] + xt[t[e + 15]]).toLowerCase();
2739
- if (!Yc(n))
2739
+ if (!Wc(n))
2740
2740
  throw TypeError("Stringified UUID is invalid");
2741
2741
  return n;
2742
2742
  }
2743
- function Xc(t, e, n) {
2743
+ function Qc(t, e, n) {
2744
2744
  t = t || {};
2745
- var r = t.random || (t.rng || Kc)();
2746
- return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, Wc(r);
2745
+ var r = t.random || (t.rng || Zc)();
2746
+ return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, Xc(r);
2747
2747
  }
2748
2748
  function Mi(t) {
2749
2749
  return Object.prototype.toString.call(t) === "[object Object]";
@@ -2756,7 +2756,7 @@ var $t = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2756
2756
  function Oe(t) {
2757
2757
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
2758
2758
  }
2759
- function Qc(t) {
2759
+ function tu(t) {
2760
2760
  if (Object.prototype.hasOwnProperty.call(t, "__esModule")) return t;
2761
2761
  var e = t.default;
2762
2762
  if (typeof e == "function") {
@@ -2780,12 +2780,12 @@ function Qc(t) {
2780
2780
  });
2781
2781
  }), n;
2782
2782
  }
2783
- var qr = { exports: {} }, tu = qr.exports, Vi;
2784
- function eu() {
2783
+ var qr = { exports: {} }, eu = qr.exports, Vi;
2784
+ function nu() {
2785
2785
  return Vi || (Vi = 1, (function(t) {
2786
2786
  (function(e, n) {
2787
2787
  t.exports = n();
2788
- })(tu, function() {
2788
+ })(eu, function() {
2789
2789
  var e = Object.prototype.toString;
2790
2790
  function n(l, u) {
2791
2791
  return l == null ? !1 : Object.prototype.hasOwnProperty.call(l, u);
@@ -2925,8 +2925,8 @@ function eu() {
2925
2925
  });
2926
2926
  })(qr)), qr.exports;
2927
2927
  }
2928
- var nu = eu();
2929
- const ru = /* @__PURE__ */ Oe(nu);
2928
+ var ru = nu();
2929
+ const iu = /* @__PURE__ */ Oe(ru);
2930
2930
  var Me = Object.prototype.hasOwnProperty;
2931
2931
  function Gt(t) {
2932
2932
  if (Gr(t))
@@ -2955,7 +2955,7 @@ function Jr(t, e) {
2955
2955
  Me.call(e, n) && (t[n] = e[n]);
2956
2956
  return t;
2957
2957
  }
2958
- function iu(t) {
2958
+ function ou(t) {
2959
2959
  var e = parseInt(t);
2960
2960
  return e.toString() === t ? e : t;
2961
2961
  }
@@ -2977,7 +2977,7 @@ function ne(t, e, n, r) {
2977
2977
  if (Gr(n) && (n = [n]), Gt(n))
2978
2978
  return e;
2979
2979
  if (ta(n))
2980
- return ne(t, e, n.split(".").map(iu), r);
2980
+ return ne(t, e, n.split(".").map(ou), r);
2981
2981
  var i = n[0];
2982
2982
  return (!t || t === e) && (t = Qn(e, !0, Gr(i))), n.length === 1 ? r(t, i) : (e != null && (e = e[i]), t[i] = ne(t[i], e, n.slice(1), r), t);
2983
2983
  }
@@ -3034,16 +3034,16 @@ Nt.merge = function(t, e, n, r) {
3034
3034
  return r = Object(r), i[o] = tr(i[o], r), i;
3035
3035
  });
3036
3036
  };
3037
- var ou = Nt.set.bind(null, null), au = Nt.update.bind(null, null);
3037
+ var au = Nt.set.bind(null, null), su = Nt.update.bind(null, null);
3038
3038
  Nt.push.bind(null, null);
3039
3039
  Nt.insert.bind(null, null);
3040
3040
  Nt.del.bind(null, null);
3041
3041
  Nt.assign.bind(null, null);
3042
3042
  Nt.merge.bind(null, null);
3043
- var su = ru.get, qn = { exports: {} };
3043
+ var cu = iu.get, qn = { exports: {} };
3044
3044
  qn.exports;
3045
3045
  var Ui;
3046
- function cu() {
3046
+ function uu() {
3047
3047
  return Ui || (Ui = 1, (function(t, e) {
3048
3048
  var n = 200, r = "__lodash_hash_undefined__", i = 1, o = 2, a = 9007199254740991, s = "[object Arguments]", c = "[object Array]", h = "[object AsyncFunction]", y = "[object Boolean]", l = "[object Date]", u = "[object Error]", p = "[object Function]", d = "[object GeneratorFunction]", m = "[object Map]", b = "[object Number]", E = "[object Null]", v = "[object Object]", w = "[object Promise]", O = "[object Proxy]", _ = "[object RegExp]", N = "[object Set]", k = "[object String]", R = "[object Symbol]", j = "[object Undefined]", L = "[object WeakMap]", V = "[object ArrayBuffer]", $ = "[object DataView]", F = "[object Float32Array]", X = "[object Float64Array]", Z = "[object Int8Array]", rt = "[object Int16Array]", B = "[object Int32Array]", Y = "[object Uint8Array]", at = "[object Uint8ClampedArray]", St = "[object Uint16Array]", q = "[object Uint32Array]", W = /[\\^$.*+?()[\]{}|]/g, _t = /^\[object .+?Constructor\]$/, Pt = /^(?:0|[1-9]\d*)$/, tt = {};
3049
3049
  tt[F] = tt[X] = tt[Z] = tt[rt] = tt[B] = tt[Y] = tt[at] = tt[St] = tt[q] = !0, tt[s] = tt[c] = tt[V] = tt[y] = tt[$] = tt[l] = tt[u] = tt[p] = tt[m] = tt[b] = tt[v] = tt[_] = tt[N] = tt[k] = tt[L] = !1;
@@ -3109,7 +3109,7 @@ function cu() {
3109
3109
  return g ? "Symbol(src)_1." + g : "";
3110
3110
  })(), f = ce.toString, x = RegExp(
3111
3111
  "^" + be.call(T).replace(W, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
3112
- ), A = Kt ? lt.Buffer : void 0, C = lt.Symbol, P = lt.Uint8Array, M = ce.propertyIsEnumerable, U = cn.splice, G = C ? C.toStringTag : void 0, K = Object.getOwnPropertySymbols, st = A ? A.isBuffer : void 0, ut = an(Object.keys, Object), yt = Ie(lt, "DataView"), Tt = Ie(lt, "Map"), Bt = Ie(lt, "Promise"), un = Ie(lt, "Set"), yr = Ie(lt, "WeakMap"), ln = Ie(Object, "create"), is = we(yt), os = we(Tt), as = we(Bt), ss = we(un), cs = we(yr), xi = C ? C.prototype : void 0, mr = xi ? xi.valueOf : void 0;
3112
+ ), A = Kt ? lt.Buffer : void 0, C = lt.Symbol, P = lt.Uint8Array, M = ce.propertyIsEnumerable, U = cn.splice, G = C ? C.toStringTag : void 0, K = Object.getOwnPropertySymbols, st = A ? A.isBuffer : void 0, ut = an(Object.keys, Object), yt = Ie(lt, "DataView"), Tt = Ie(lt, "Map"), Bt = Ie(lt, "Promise"), un = Ie(lt, "Set"), yr = Ie(lt, "WeakMap"), ln = Ie(Object, "create"), os = we(yt), as = we(Tt), ss = we(Bt), cs = we(un), us = we(yr), xi = C ? C.prototype : void 0, mr = xi ? xi.valueOf : void 0;
3113
3113
  function Ee(g) {
3114
3114
  var S = -1, I = g == null ? 0 : g.length;
3115
3115
  for (this.clear(); ++S < I; ) {
@@ -3117,14 +3117,14 @@ function cu() {
3117
3117
  this.set(z[0], z[1]);
3118
3118
  }
3119
3119
  }
3120
- function us() {
3120
+ function ls() {
3121
3121
  this.__data__ = ln ? ln(null) : {}, this.size = 0;
3122
3122
  }
3123
- function ls(g) {
3123
+ function fs(g) {
3124
3124
  var S = this.has(g) && delete this.__data__[g];
3125
3125
  return this.size -= S ? 1 : 0, S;
3126
3126
  }
3127
- function fs(g) {
3127
+ function ds(g) {
3128
3128
  var S = this.__data__;
3129
3129
  if (ln) {
3130
3130
  var I = S[g];
@@ -3132,15 +3132,15 @@ function cu() {
3132
3132
  }
3133
3133
  return T.call(S, g) ? S[g] : void 0;
3134
3134
  }
3135
- function ds(g) {
3135
+ function ps(g) {
3136
3136
  var S = this.__data__;
3137
3137
  return ln ? S[g] !== void 0 : T.call(S, g);
3138
3138
  }
3139
- function ps(g, S) {
3139
+ function hs(g, S) {
3140
3140
  var I = this.__data__;
3141
3141
  return this.size += this.has(g) ? 0 : 1, I[g] = ln && S === void 0 ? r : S, this;
3142
3142
  }
3143
- Ee.prototype.clear = us, Ee.prototype.delete = ls, Ee.prototype.get = fs, Ee.prototype.has = ds, Ee.prototype.set = ps;
3143
+ Ee.prototype.clear = ls, Ee.prototype.delete = fs, Ee.prototype.get = ds, Ee.prototype.has = ps, Ee.prototype.set = hs;
3144
3144
  function Wt(g) {
3145
3145
  var S = -1, I = g == null ? 0 : g.length;
3146
3146
  for (this.clear(); ++S < I; ) {
@@ -3148,28 +3148,28 @@ function cu() {
3148
3148
  this.set(z[0], z[1]);
3149
3149
  }
3150
3150
  }
3151
- function hs() {
3151
+ function vs() {
3152
3152
  this.__data__ = [], this.size = 0;
3153
3153
  }
3154
- function vs(g) {
3154
+ function gs(g) {
3155
3155
  var S = this.__data__, I = On(S, g);
3156
3156
  if (I < 0)
3157
3157
  return !1;
3158
3158
  var z = S.length - 1;
3159
3159
  return I == z ? S.pop() : U.call(S, I, 1), --this.size, !0;
3160
3160
  }
3161
- function gs(g) {
3161
+ function ys(g) {
3162
3162
  var S = this.__data__, I = On(S, g);
3163
3163
  return I < 0 ? void 0 : S[I][1];
3164
3164
  }
3165
- function ys(g) {
3165
+ function ms(g) {
3166
3166
  return On(this.__data__, g) > -1;
3167
3167
  }
3168
- function ms(g, S) {
3168
+ function bs(g, S) {
3169
3169
  var I = this.__data__, z = On(I, g);
3170
3170
  return z < 0 ? (++this.size, I.push([g, S])) : I[z][1] = S, this;
3171
3171
  }
3172
- Wt.prototype.clear = hs, Wt.prototype.delete = vs, Wt.prototype.get = gs, Wt.prototype.has = ys, Wt.prototype.set = ms;
3172
+ Wt.prototype.clear = vs, Wt.prototype.delete = gs, Wt.prototype.get = ys, Wt.prototype.has = ms, Wt.prototype.set = bs;
3173
3173
  function xe(g) {
3174
3174
  var S = -1, I = g == null ? 0 : g.length;
3175
3175
  for (this.clear(); ++S < I; ) {
@@ -3177,58 +3177,58 @@ function cu() {
3177
3177
  this.set(z[0], z[1]);
3178
3178
  }
3179
3179
  }
3180
- function bs() {
3180
+ function Es() {
3181
3181
  this.size = 0, this.__data__ = {
3182
3182
  hash: new Ee(),
3183
3183
  map: new (Tt || Wt)(),
3184
3184
  string: new Ee()
3185
3185
  };
3186
3186
  }
3187
- function Es(g) {
3187
+ function xs(g) {
3188
3188
  var S = Cn(this, g).delete(g);
3189
3189
  return this.size -= S ? 1 : 0, S;
3190
3190
  }
3191
- function xs(g) {
3191
+ function ws(g) {
3192
3192
  return Cn(this, g).get(g);
3193
3193
  }
3194
- function ws(g) {
3194
+ function Ss(g) {
3195
3195
  return Cn(this, g).has(g);
3196
3196
  }
3197
- function Ss(g, S) {
3197
+ function _s(g, S) {
3198
3198
  var I = Cn(this, g), z = I.size;
3199
3199
  return I.set(g, S), this.size += I.size == z ? 0 : 1, this;
3200
3200
  }
3201
- xe.prototype.clear = bs, xe.prototype.delete = Es, xe.prototype.get = xs, xe.prototype.has = ws, xe.prototype.set = Ss;
3201
+ xe.prototype.clear = Es, xe.prototype.delete = xs, xe.prototype.get = ws, xe.prototype.has = Ss, xe.prototype.set = _s;
3202
3202
  function kn(g) {
3203
3203
  var S = -1, I = g == null ? 0 : g.length;
3204
3204
  for (this.__data__ = new xe(); ++S < I; )
3205
3205
  this.add(g[S]);
3206
3206
  }
3207
- function _s(g) {
3207
+ function Ts(g) {
3208
3208
  return this.__data__.set(g, r), this;
3209
3209
  }
3210
- function Ts(g) {
3210
+ function ks(g) {
3211
3211
  return this.__data__.has(g);
3212
3212
  }
3213
- kn.prototype.add = kn.prototype.push = _s, kn.prototype.has = Ts;
3213
+ kn.prototype.add = kn.prototype.push = Ts, kn.prototype.has = ks;
3214
3214
  function ue(g) {
3215
3215
  var S = this.__data__ = new Wt(g);
3216
3216
  this.size = S.size;
3217
3217
  }
3218
- function ks() {
3218
+ function Os() {
3219
3219
  this.__data__ = new Wt(), this.size = 0;
3220
3220
  }
3221
- function Os(g) {
3221
+ function Cs(g) {
3222
3222
  var S = this.__data__, I = S.delete(g);
3223
3223
  return this.size = S.size, I;
3224
3224
  }
3225
- function Cs(g) {
3225
+ function Rs(g) {
3226
3226
  return this.__data__.get(g);
3227
3227
  }
3228
- function Rs(g) {
3228
+ function As(g) {
3229
3229
  return this.__data__.has(g);
3230
3230
  }
3231
- function As(g, S) {
3231
+ function Ns(g, S) {
3232
3232
  var I = this.__data__;
3233
3233
  if (I instanceof Wt) {
3234
3234
  var z = I.__data__;
@@ -3238,15 +3238,15 @@ function cu() {
3238
3238
  }
3239
3239
  return I.set(g, S), this.size = I.size, this;
3240
3240
  }
3241
- ue.prototype.clear = ks, ue.prototype.delete = Os, ue.prototype.get = Cs, ue.prototype.has = Rs, ue.prototype.set = As;
3242
- function Ns(g, S) {
3243
- var I = Rn(g), z = !I && Gs(g), ft = !I && !z && br(g), J = !I && !z && !ft && Ai(g), vt = I || z || ft || J, bt = vt ? nn(g.length, String) : [], Et = bt.length;
3241
+ ue.prototype.clear = Os, ue.prototype.delete = Cs, ue.prototype.get = Rs, ue.prototype.has = As, ue.prototype.set = Ns;
3242
+ function Is(g, S) {
3243
+ var I = Rn(g), z = !I && Js(g), ft = !I && !z && br(g), J = !I && !z && !ft && Ai(g), vt = I || z || ft || J, bt = vt ? nn(g.length, String) : [], Et = bt.length;
3244
3244
  for (var pt in g)
3245
3245
  T.call(g, pt) && !(vt && // Safari 9 has enumerable `arguments.length` in strict mode.
3246
3246
  (pt == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
3247
3247
  ft && (pt == "offset" || pt == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
3248
3248
  J && (pt == "buffer" || pt == "byteLength" || pt == "byteOffset") || // Skip index properties.
3249
- Vs(pt, Et))) && bt.push(pt);
3249
+ Us(pt, Et))) && bt.push(pt);
3250
3250
  return bt;
3251
3251
  }
3252
3252
  function On(g, S) {
@@ -3255,20 +3255,20 @@ function cu() {
3255
3255
  return I;
3256
3256
  return -1;
3257
3257
  }
3258
- function Is(g, S, I) {
3258
+ function js(g, S, I) {
3259
3259
  var z = S(g);
3260
3260
  return Rn(g) ? z : oe(z, I(g));
3261
3261
  }
3262
3262
  function fn(g) {
3263
- return g == null ? g === void 0 ? j : E : G && G in Object(g) ? Ms(g) : qs(g);
3263
+ return g == null ? g === void 0 ? j : E : G && G in Object(g) ? zs(g) : Gs(g);
3264
3264
  }
3265
3265
  function wi(g) {
3266
3266
  return dn(g) && fn(g) == s;
3267
3267
  }
3268
3268
  function Si(g, S, I, z, ft) {
3269
- return g === S ? !0 : g == null || S == null || !dn(g) && !dn(S) ? g !== g && S !== S : js(g, S, I, z, Si, ft);
3269
+ return g === S ? !0 : g == null || S == null || !dn(g) && !dn(S) ? g !== g && S !== S : Ps(g, S, I, z, Si, ft);
3270
3270
  }
3271
- function js(g, S, I, z, ft, J) {
3271
+ function Ps(g, S, I, z, ft, J) {
3272
3272
  var vt = Rn(g), bt = Rn(S), Et = vt ? c : le(g), pt = bt ? c : le(S);
3273
3273
  Et = Et == s ? v : Et, pt = pt == s ? v : pt;
3274
3274
  var It = Et == v, Mt = pt == v, kt = Et == pt;
@@ -3278,7 +3278,7 @@ function cu() {
3278
3278
  vt = !0, It = !1;
3279
3279
  }
3280
3280
  if (kt && !It)
3281
- return J || (J = new ue()), vt || Ai(g) ? _i(g, S, I, z, ft, J) : Ls(g, S, Et, I, z, ft, J);
3281
+ return J || (J = new ue()), vt || Ai(g) ? _i(g, S, I, z, ft, J) : $s(g, S, Et, I, z, ft, J);
3282
3282
  if (!(I & i)) {
3283
3283
  var Ht = It && T.call(g, "__wrapped__"), Lt = Mt && T.call(S, "__wrapped__");
3284
3284
  if (Ht || Lt) {
@@ -3286,19 +3286,19 @@ function cu() {
3286
3286
  return J || (J = new ue()), ft(fe, Xt, I, z, J);
3287
3287
  }
3288
3288
  }
3289
- return kt ? (J || (J = new ue()), $s(g, S, I, z, ft, J)) : !1;
3289
+ return kt ? (J || (J = new ue()), Ms(g, S, I, z, ft, J)) : !1;
3290
3290
  }
3291
- function Ps(g) {
3292
- if (!Ri(g) || Fs(g))
3291
+ function Ds(g) {
3292
+ if (!Ri(g) || Bs(g))
3293
3293
  return !1;
3294
3294
  var S = Oi(g) ? x : _t;
3295
3295
  return S.test(we(g));
3296
3296
  }
3297
- function Ds(g) {
3297
+ function Hs(g) {
3298
3298
  return dn(g) && Ci(g.length) && !!tt[fn(g)];
3299
3299
  }
3300
- function Hs(g) {
3301
- if (!Bs(g))
3300
+ function Ls(g) {
3301
+ if (!qs(g))
3302
3302
  return ut(g);
3303
3303
  var S = [];
3304
3304
  for (var I in Object(g))
@@ -3338,7 +3338,7 @@ function cu() {
3338
3338
  }
3339
3339
  return J.delete(g), J.delete(S), Mt;
3340
3340
  }
3341
- function Ls(g, S, I, z, ft, J, vt) {
3341
+ function $s(g, S, I, z, ft, J, vt) {
3342
3342
  switch (I) {
3343
3343
  case $:
3344
3344
  if (g.byteLength != S.byteLength || g.byteOffset != S.byteOffset)
@@ -3373,7 +3373,7 @@ function cu() {
3373
3373
  }
3374
3374
  return !1;
3375
3375
  }
3376
- function $s(g, S, I, z, ft, J) {
3376
+ function Ms(g, S, I, z, ft, J) {
3377
3377
  var vt = I & i, bt = Ti(g), Et = bt.length, pt = Ti(S), It = pt.length;
3378
3378
  if (Et != It && !vt)
3379
3379
  return !1;
@@ -3405,17 +3405,17 @@ function cu() {
3405
3405
  return J.delete(g), J.delete(S), Lt;
3406
3406
  }
3407
3407
  function Ti(g) {
3408
- return Is(g, Zs, zs);
3408
+ return js(g, Ys, Vs);
3409
3409
  }
3410
3410
  function Cn(g, S) {
3411
3411
  var I = g.__data__;
3412
- return Us(S) ? I[typeof S == "string" ? "string" : "hash"] : I.map;
3412
+ return Fs(S) ? I[typeof S == "string" ? "string" : "hash"] : I.map;
3413
3413
  }
3414
3414
  function Ie(g, S) {
3415
3415
  var I = se(g, S);
3416
- return Ps(I) ? I : void 0;
3416
+ return Ds(I) ? I : void 0;
3417
3417
  }
3418
- function Ms(g) {
3418
+ function zs(g) {
3419
3419
  var S = T.call(g, G), I = g[G];
3420
3420
  try {
3421
3421
  g[G] = void 0;
@@ -3425,43 +3425,43 @@ function cu() {
3425
3425
  var ft = f.call(g);
3426
3426
  return z && (S ? g[G] = I : delete g[G]), ft;
3427
3427
  }
3428
- var zs = K ? function(g) {
3428
+ var Vs = K ? function(g) {
3429
3429
  return g == null ? [] : (g = Object(g), Ae(K(g), function(S) {
3430
3430
  return M.call(g, S);
3431
3431
  }));
3432
- } : Ys, le = fn;
3432
+ } : Ws, le = fn;
3433
3433
  (yt && le(new yt(new ArrayBuffer(1))) != $ || Tt && le(new Tt()) != m || Bt && le(Bt.resolve()) != w || un && le(new un()) != N || yr && le(new yr()) != L) && (le = function(g) {
3434
3434
  var S = fn(g), I = S == v ? g.constructor : void 0, z = I ? we(I) : "";
3435
3435
  if (z)
3436
3436
  switch (z) {
3437
- case is:
3438
- return $;
3439
3437
  case os:
3440
- return m;
3438
+ return $;
3441
3439
  case as:
3442
- return w;
3440
+ return m;
3443
3441
  case ss:
3444
- return N;
3442
+ return w;
3445
3443
  case cs:
3444
+ return N;
3445
+ case us:
3446
3446
  return L;
3447
3447
  }
3448
3448
  return S;
3449
3449
  });
3450
- function Vs(g, S) {
3450
+ function Us(g, S) {
3451
3451
  return S = S ?? a, !!S && (typeof g == "number" || Pt.test(g)) && g > -1 && g % 1 == 0 && g < S;
3452
3452
  }
3453
- function Us(g) {
3453
+ function Fs(g) {
3454
3454
  var S = typeof g;
3455
3455
  return S == "string" || S == "number" || S == "symbol" || S == "boolean" ? g !== "__proto__" : g === null;
3456
3456
  }
3457
- function Fs(g) {
3457
+ function Bs(g) {
3458
3458
  return !!H && H in g;
3459
3459
  }
3460
- function Bs(g) {
3460
+ function qs(g) {
3461
3461
  var S = g && g.constructor, I = typeof S == "function" && S.prototype || ce;
3462
3462
  return g === I;
3463
3463
  }
3464
- function qs(g) {
3464
+ function Gs(g) {
3465
3465
  return f.call(g);
3466
3466
  }
3467
3467
  function we(g) {
@@ -3480,16 +3480,16 @@ function cu() {
3480
3480
  function ki(g, S) {
3481
3481
  return g === S || g !== g && S !== S;
3482
3482
  }
3483
- var Gs = wi(/* @__PURE__ */ (function() {
3483
+ var Js = wi(/* @__PURE__ */ (function() {
3484
3484
  return arguments;
3485
3485
  })()) ? wi : function(g) {
3486
3486
  return dn(g) && T.call(g, "callee") && !M.call(g, "callee");
3487
3487
  }, Rn = Array.isArray;
3488
- function Js(g) {
3488
+ function Ks(g) {
3489
3489
  return g != null && Ci(g.length) && !Oi(g);
3490
3490
  }
3491
- var br = st || Ws;
3492
- function Ks(g, S) {
3491
+ var br = st || Xs;
3492
+ function Zs(g, S) {
3493
3493
  return Si(g, S);
3494
3494
  }
3495
3495
  function Oi(g) {
@@ -3508,21 +3508,21 @@ function cu() {
3508
3508
  function dn(g) {
3509
3509
  return g != null && typeof g == "object";
3510
3510
  }
3511
- var Ai = me ? rn(me) : Ds;
3512
- function Zs(g) {
3513
- return Js(g) ? Ns(g) : Hs(g);
3511
+ var Ai = me ? rn(me) : Hs;
3512
+ function Ys(g) {
3513
+ return Ks(g) ? Is(g) : Ls(g);
3514
3514
  }
3515
- function Ys() {
3515
+ function Ws() {
3516
3516
  return [];
3517
3517
  }
3518
- function Ws() {
3518
+ function Xs() {
3519
3519
  return !1;
3520
3520
  }
3521
- t.exports = Ks;
3521
+ t.exports = Zs;
3522
3522
  })(qn, qn.exports)), qn.exports;
3523
3523
  }
3524
- var uu = cu();
3525
- const $n = /* @__PURE__ */ Oe(uu), lu = "EXPERIENCE_STARTED", Fi = "SHOW", xn = "STOP_EXPERIENCE", fu = "EXTENDED_EVENT", ea = "START_STEP", si = "STOP_STEP", na = "UPDATE_STEP", ra = "SET_STEP_CONTAINER_TARGET", ia = "UPDATE_STEP_CONTENT", du = "RECOVER_STEP", pu = "AUTO_RECOVER_STEP", hu = "PARENT_RECOVER_STEP", vu = "ERROR", gu = "STEP_INTERACTION", yu = "STEP_SEEN", oa = "UPDATE_ROOT_STYLE", mu = "RELOAD", aa = "STEP_STOPPED", bu = "EXPERIENCE_DISMISSED", Eu = "EXPERIENCE_SNOOZED", xu = "FORWARD_TO_PARENT", wu = "ACTIONS_STARTED", Su = "ACTIONS_FINISHED", _u = "experience.begin", Tu = "experience.end", ci = "step.begin", sa = "step.prerender", ca = "step.postrender", ua = "step.end", la = "step.error", fa = "RUN_HOOKS", ku = "RUN_HOOKS_DONE", ui = "START_THEME_REMOVAL_LISTENER", da = "STOP_THEME_REMOVAL_LISTENER", Ou = "GLOBAL_CONTAINER_REMOVED", li = "STEP_CONTAINER_REMOVED", er = "appcues-experience-container", fr = "APPCUES-EXPERIENCE-CONTAINER", dr = "APPCUES-EXPERIENCE-CONTAINER-BUILDER", pa = "data-appcues-container-id", fi = "RUN_TRAITS_DONE", ha = "RUN_TRAITS_ERROR", Cu = "BIND_ACTIONS_ERROR", Ru = () => {
3524
+ var lu = uu();
3525
+ const $n = /* @__PURE__ */ Oe(lu), fu = "EXPERIENCE_STARTED", Fi = "SHOW", xn = "STOP_EXPERIENCE", du = "EXTENDED_EVENT", ea = "START_STEP", si = "STOP_STEP", na = "UPDATE_STEP", ra = "SET_STEP_CONTAINER_TARGET", ia = "UPDATE_STEP_CONTENT", pu = "RECOVER_STEP", hu = "AUTO_RECOVER_STEP", vu = "PARENT_RECOVER_STEP", gu = "ERROR", yu = "STEP_INTERACTION", mu = "STEP_SEEN", oa = "UPDATE_ROOT_STYLE", bu = "RELOAD", aa = "STEP_STOPPED", Eu = "EXPERIENCE_DISMISSED", xu = "EXPERIENCE_SNOOZED", wu = "FORWARD_TO_PARENT", Su = "ACTIONS_STARTED", _u = "ACTIONS_FINISHED", Tu = "experience.begin", ku = "experience.end", ci = "step.begin", sa = "step.prerender", ca = "step.postrender", ua = "step.end", la = "step.error", fa = "RUN_HOOKS", Ou = "RUN_HOOKS_DONE", ui = "START_THEME_REMOVAL_LISTENER", da = "STOP_THEME_REMOVAL_LISTENER", Cu = "GLOBAL_CONTAINER_REMOVED", li = "STEP_CONTAINER_REMOVED", er = "appcues-experience-container", fr = "APPCUES-EXPERIENCE-CONTAINER", dr = "APPCUES-EXPERIENCE-CONTAINER-BUILDER", pa = "data-appcues-container-id", fi = "RUN_TRAITS_DONE", ha = "RUN_TRAITS_ERROR", Ru = "BIND_ACTIONS_ERROR", Au = () => {
3526
3526
  const t = /* @__PURE__ */ new Map(), e = (r) => {
3527
3527
  const { observerInstance: i } = t.get(r);
3528
3528
  if (i) return;
@@ -3557,16 +3557,16 @@ const $n = /* @__PURE__ */ Oe(uu), lu = "EXPERIENCE_STARTED", Fi = "SHOW", xn =
3557
3557
  callbacks: [...o, i]
3558
3558
  }), e(r), () => n(r, i);
3559
3559
  };
3560
- }, nr = Ru(), Au = (t, ...e) => {
3560
+ }, nr = Au(), Nu = (t, ...e) => {
3561
3561
  e.forEach(
3562
3562
  (n) => t.addEventListener(n, (r) => {
3563
3563
  r.stopPropagation();
3564
3564
  })
3565
3565
  );
3566
- }, Bi = "|shadow-root|", qi = "|iframe|", Je = (t, e = document.documentElement) => t.includes(Bi) || t.includes(qi) ? t.split(Bi).flatMap((n) => n.split(qi)).reduce((n, r) => n === null ? [...e.querySelectorAll(r)] : n.flatMap((i) => i.shadowRoot ? [...i.shadowRoot.querySelectorAll(r)] : i.tagName === "IFRAME" ? [...i.contentDocument.querySelectorAll(r)] : []), null) ?? [] : e.querySelectorAll(t), Nu = (t, e = document.documentElement) => {
3566
+ }, Bi = "|shadow-root|", qi = "|iframe|", Je = (t, e = document.documentElement) => t.includes(Bi) || t.includes(qi) ? t.split(Bi).flatMap((n) => n.split(qi)).reduce((n, r) => n === null ? [...e.querySelectorAll(r)] : n.flatMap((i) => i.shadowRoot ? [...i.shadowRoot.querySelectorAll(r)] : i.tagName === "IFRAME" ? [...i.contentDocument.querySelectorAll(r)] : []), null) ?? [] : e.querySelectorAll(t), Iu = (t, e = document.documentElement) => {
3567
3567
  const n = Je(t, e);
3568
3568
  return n.length > 0 ? n[0] : null;
3569
- }, Ce = (t) => `appcues-container-${t}`, Iu = ({ getTarget: t, onInserted: e }) => {
3569
+ }, Ce = (t) => `appcues-container-${t}`, ju = ({ getTarget: t, onInserted: e }) => {
3570
3570
  let n = [];
3571
3571
  const r = () => {
3572
3572
  n.forEach((c) => c()), n = [];
@@ -3599,16 +3599,16 @@ const $n = /* @__PURE__ */ Oe(uu), lu = "EXPERIENCE_STARTED", Fi = "SHOW", xn =
3599
3599
  [n] = a, (a.length === 0 || s || !n.isConnected) && (e(), r());
3600
3600
  };
3601
3601
  return r = n && n.getRootNode().nodeType === Node.DOCUMENT_FRAGMENT_NODE ? nr(n.getRootNode(), i) : nr(document.body, i), () => r();
3602
- }, ju = (t) => {
3602
+ }, Pu = (t) => {
3603
3603
  let e = 0;
3604
3604
  for (let n = 0; n < t.length && !(t[n].nodeName !== fr || t[n].nodeName !== dr); n++)
3605
3605
  e = n;
3606
3606
  return t.slice(e + 1);
3607
- }, Pu = (t, e = window.document) => {
3607
+ }, Du = (t, e = window.document) => {
3608
3608
  try {
3609
3609
  const n = /^((body\s(>?\s?))?)(?<tagName>[\da-z]+):nth-child\((?<index>\d+)\)(?<remainingSelector>.*)/i, r = t.match(n), i = e.body.firstChild?.nodeName === fr || e.body.firstChild?.nodeName === dr;
3610
3610
  if (!r || !i) return [];
3611
- const { tagName: o, index: a, remainingSelector: s } = r.groups, c = Number.parseInt(a, 10) - 1, h = ju([
3611
+ const { tagName: o, index: a, remainingSelector: s } = r.groups, c = Number.parseInt(a, 10) - 1, h = Pu([
3612
3612
  ...document.body.children
3613
3613
  ]), y = h[c]?.nodeName === o.toUpperCase() ? h[c] : null;
3614
3614
  return s ? (
@@ -3628,51 +3628,51 @@ const $n = /* @__PURE__ */ Oe(uu), lu = "EXPERIENCE_STARTED", Fi = "SHOW", xn =
3628
3628
  const i = Ce(e.id);
3629
3629
  let o = [];
3630
3630
  if (r) {
3631
- const s = Pu(t), c = s.length > 0 ? s : Je(t);
3631
+ const s = Du(t), c = s.length > 0 ? s : Je(t);
3632
3632
  c.length > 0 && (o = [...o, ...c]);
3633
3633
  }
3634
3634
  if (!n)
3635
3635
  return o;
3636
- let a = Nu(
3636
+ let a = Iu(
3637
3637
  `[${pa}=${i}]`,
3638
3638
  n
3639
3639
  );
3640
3640
  return a && (a = Je(t, a)), a = a ?? [], a.length > 0 && (o = [...o, ...a]), o;
3641
3641
  }, ga = ({ accountId: t, id: e, theme: n }) => {
3642
3642
  const r = document.createElement(er);
3643
- return n && r.setAttribute("themeId", n), r.setAttribute("accountId", t), r.setAttribute("id", Ce(e)), Au(r, "keypress", "keydown", "keyup"), r;
3644
- }, Du = ({ experience: t }) => {
3643
+ return n && r.setAttribute("themeId", n), r.setAttribute("accountId", t), r.setAttribute("id", Ce(e)), Nu(r, "keypress", "keydown", "keyup"), r;
3644
+ }, Hu = ({ experience: t }) => {
3645
3645
  const { theme: e, accountId: n, id: r } = t;
3646
3646
  if (!n) return;
3647
3647
  const i = ga({ accountId: n, id: r, theme: e });
3648
3648
  document.body.append(i);
3649
- }, Hu = ({ experience: t }) => {
3649
+ }, Lu = ({ experience: t }) => {
3650
3650
  const e = Ce(t.id);
3651
3651
  Je(`#${e}`).forEach((n) => document.body.removeChild(n));
3652
- }, Lu = ({ getRoot: t }) => {
3652
+ }, $u = ({ getRoot: t }) => {
3653
3653
  const e = t();
3654
3654
  e.parentElement && e.parentElement.removeChild(e);
3655
- }, $u = ({ getRoot: t }) => Go([
3655
+ }, Mu = ({ getRoot: t }) => Go([
3656
3656
  {
3657
3657
  cond: "hasCustomContainer",
3658
3658
  actions: [
3659
3659
  () => {
3660
- Lu({ getRoot: t });
3660
+ $u({ getRoot: t });
3661
3661
  }
3662
3662
  ]
3663
3663
  }
3664
- ]), Mu = ({ experience: t }) => (e, n) => {
3664
+ ]), zu = ({ experience: t }) => (e, n) => {
3665
3665
  n(({ type: r }) => {
3666
3666
  if (r !== ui) return;
3667
3667
  const i = Ce(t.id);
3668
3668
  di({
3669
3669
  getTarget: () => Je(`#${i}`),
3670
3670
  onRemoved: () => {
3671
- e(Ou);
3671
+ e(Cu);
3672
3672
  }
3673
3673
  });
3674
3674
  });
3675
- }, zu = ({ getRoot: t }) => () => (
3675
+ }, Vu = ({ getRoot: t }) => () => (
3676
3676
  // eslint-disable-next-line unicorn/consistent-function-scoping
3677
3677
  ((e, n) => {
3678
3678
  let r;
@@ -3691,11 +3691,11 @@ const $n = /* @__PURE__ */ Oe(uu), lu = "EXPERIENCE_STARTED", Fi = "SHOW", xn =
3691
3691
  })
3692
3692
  ), ya = ai(ui, {
3693
3693
  to: "themeRemovalService"
3694
- }), Vu = ai(da, {
3694
+ }), Uu = ai(da, {
3695
3695
  to: "themeRemovalService"
3696
3696
  });
3697
3697
  var Gi = { exports: {} }, Ji;
3698
- function Uu() {
3698
+ function Fu() {
3699
3699
  return Ji || (Ji = 1, (function(t) {
3700
3700
  (function() {
3701
3701
  function e(f, x, A) {
@@ -4122,10 +4122,10 @@ function Uu() {
4122
4122
  })();
4123
4123
  })(Gi)), Gi.exports;
4124
4124
  }
4125
- var Fu = Uu();
4126
- const Bu = /* @__PURE__ */ Oe(Fu);
4125
+ var Bu = Fu();
4126
+ const qu = /* @__PURE__ */ Oe(Bu);
4127
4127
  var Mn = { exports: {} }, Ki;
4128
- function qu() {
4128
+ function Gu() {
4129
4129
  if (Ki) return Mn.exports;
4130
4130
  Ki = 1;
4131
4131
  function t(l, u) {
@@ -4207,12 +4207,12 @@ function qu() {
4207
4207
  monadic: s
4208
4208
  }, Mn.exports;
4209
4209
  }
4210
- var Gu = qu();
4211
- const Ju = /* @__PURE__ */ Oe(Gu), Ku = window.AppcuesBundleSettings?.VERSION === "dev" ? "https://fast.appcues.com/v1" : window.AppcuesBundleSettings?.GENERIC_BUNDLE_DOMAIN ? `${window.AppcuesBundleSettings.GENERIC_BUNDLE_DOMAIN}/v1` : "https://fast.appcues.com/v1", Zu = 9999, Yu = Ju(
4212
- (t, e) => fetch(`${Ku}/accounts/${e}/styles/${t}`).then(
4210
+ var Ju = Gu();
4211
+ const Ku = /* @__PURE__ */ Oe(Ju), Zu = window.AppcuesBundleSettings?.VERSION === "dev" ? "https://fast.appcues.com/v1" : window.AppcuesBundleSettings?.GENERIC_BUNDLE_DOMAIN ? `${window.AppcuesBundleSettings.GENERIC_BUNDLE_DOMAIN}/v1` : "https://fast.appcues.com/v1", Yu = 9999, Wu = Ku(
4212
+ (t, e) => fetch(`${Zu}/accounts/${e}/styles/${t}`).then(
4213
4213
  (n) => n.json()
4214
4214
  )
4215
- ), Wu = (t, e) => {
4215
+ ), Xu = (t, e) => {
4216
4216
  const n = {
4217
4217
  classes: !1
4218
4218
  };
@@ -4220,55 +4220,55 @@ const Ju = /* @__PURE__ */ Oe(Gu), Ku = window.AppcuesBundleSettings?.VERSION ==
4220
4220
  urls: [e.general.headerFontUrl, e.general.bodyFontUrl]
4221
4221
  }), t && (n.typekit = {
4222
4222
  id: t
4223
- }), Object.keys(n).length > 1 && Bu.load(n);
4223
+ }), Object.keys(n).length > 1 && qu.load(n);
4224
4224
  }, Zi = (t, e, n) => {
4225
4225
  if (!t) return;
4226
4226
  const r = document.createElement("style");
4227
4227
  r.innerHTML = `${t}`, e && r.classList.add(`theme-${e}`), n.shadowRoot.prepend(r);
4228
4228
  }, ma = async (t) => {
4229
- const e = t.getAttribute("themeId"), n = t.getAttribute("accountId"), r = await Yu(e, n).catch(() => {
4229
+ const e = t.getAttribute("themeId"), n = t.getAttribute("accountId"), r = await Wu(e, n).catch(() => {
4230
4230
  }), { globalStyling: i, theme: o, typekitId: a } = r ?? {
4231
4231
  globalStyling: "",
4232
4232
  theme: {},
4233
4233
  typekitId: ""
4234
4234
  }, s = o?.json?.typekitId ?? a;
4235
- Wu(s, o?.json), Zi(o?.css, e, t), Zi(i, e, t);
4236
- }, Xu = async (t, e) => {
4235
+ Xu(s, o?.json), Zi(o?.css, e, t), Zi(i, e, t);
4236
+ }, Qu = async (t, e) => {
4237
4237
  await ma(t), e && t.shadowRoot.querySelectorAll(
4238
4238
  `.theme-${e}`
4239
4239
  ).forEach((n) => n.remove());
4240
- }, Qu = mt({
4240
+ }, tl = mt({
4241
4241
  step: ({ step: t }, e) => ({
4242
4242
  ...t,
4243
4243
  virtualizedContent: e.virtualizedContent
4244
4244
  })
4245
- }), tl = (t) => mt({
4245
+ }), el = (t) => mt({
4246
4246
  step: (e, n) => ({
4247
4247
  stepConfig: n.stepConfig,
4248
4248
  virtualizedContent: t(n.stepConfig)
4249
4249
  })
4250
- }), el = mt({
4250
+ }), nl = mt({
4251
4251
  experience: (t, e) => e.experience,
4252
4252
  step: ({ step: t }, e) => ({
4253
4253
  ...t,
4254
4254
  ...e.stepConfig
4255
4255
  })
4256
- }), nl = qt(lu), rl = qt(({ step: t }) => ({
4256
+ }), rl = qt(fu), il = qt(({ step: t }) => ({
4257
4257
  type: aa,
4258
4258
  id: t.id
4259
- })), il = (t, { styles: e, getRoot: n }) => {
4259
+ })), ol = (t, { styles: e, getRoot: n }) => {
4260
4260
  const r = n();
4261
4261
  r && Object.entries(e).forEach(([i, o]) => {
4262
4262
  i.startsWith("--") ? r.style.setProperty(i, o) : r.style[i] = o;
4263
4263
  });
4264
- }, ol = (t) => {
4264
+ }, al = (t) => {
4265
4265
  const { theme: e, id: n } = t.experience;
4266
4266
  if (!e) return;
4267
4267
  const r = document.documentElement.querySelector(
4268
4268
  `#${Ce(n)}`
4269
4269
  ), i = r.getAttribute("themeId");
4270
- r?.setAttribute("themeId", e), Xu(r, i);
4271
- }, al = (t) => mt({
4270
+ r?.setAttribute("themeId", e), Qu(r, i);
4271
+ }, sl = (t) => mt({
4272
4272
  step: ({ step: e }) => {
4273
4273
  if (e.type !== "tooltip") return e;
4274
4274
  const n = Object.entries(e.actions).filter(
@@ -4282,27 +4282,27 @@ const Ju = /* @__PURE__ */ Oe(Gu), Ku = window.AppcuesBundleSettings?.VERSION ==
4282
4282
  })
4283
4283
  };
4284
4284
  }
4285
- }), sl = Go([
4285
+ }), cl = Go([
4286
4286
  {
4287
4287
  cond: (t, e) => e.errorEvent?.type === li,
4288
4288
  actions: [
4289
4289
  qo({
4290
- type: pu,
4290
+ type: hu,
4291
4291
  isAutoRecoverEvent: !0
4292
4292
  })
4293
4293
  ]
4294
4294
  }
4295
- ]), cl = mt({
4295
+ ]), ul = mt({
4296
4296
  actionsRunning: !0
4297
- }), ul = mt({
4297
+ }), ll = mt({
4298
4298
  actionsRunning: !1
4299
- }), ll = "Key name should be string and callback a valid function", ba = () => {
4299
+ }), fl = "Key name should be string and callback a valid function", ba = () => {
4300
4300
  const t = /* @__PURE__ */ new Map(), e = (n) => t.get(n);
4301
4301
  return {
4302
4302
  getCallback: e,
4303
4303
  registerCallback: (n, r) => {
4304
4304
  if (e(n), typeof n != "string" || typeof r != "function")
4305
- throw new TypeError(ll);
4305
+ throw new TypeError(fl);
4306
4306
  t.set(n, r);
4307
4307
  }
4308
4308
  };
@@ -4310,8 +4310,8 @@ const Ju = /* @__PURE__ */ Oe(Gu), Ku = window.AppcuesBundleSettings?.VERSION ==
4310
4310
  const r = t(e.type);
4311
4311
  r && r(n, e.config ?? {});
4312
4312
  }, { getCallback: xa, registerCallback: wt } = ba();
4313
- let fl = (t = 21) => crypto.getRandomValues(new Uint8Array(t)).reduce((e, n) => (n &= 63, n < 36 ? e += n.toString(36) : n < 62 ? e += (n - 26).toString(36).toUpperCase() : n > 62 ? e += "-" : e += "_", e), "");
4314
- const dl = ({
4313
+ let dl = (t = 21) => crypto.getRandomValues(new Uint8Array(t)).reduce((e, n) => (n &= 63, n < 36 ? e += n.toString(36) : n < 62 ? e += (n - 26).toString(36).toUpperCase() : n > 62 ? e += "-" : e += "_", e), "");
4314
+ const pl = ({
4315
4315
  experience: t,
4316
4316
  callback: e,
4317
4317
  step: n,
@@ -4323,7 +4323,7 @@ const dl = ({
4323
4323
  const y = ({ type: l, ...u }) => e(h ? {
4324
4324
  ...u,
4325
4325
  eventType: l,
4326
- type: xu
4326
+ type: wu
4327
4327
  } : { type: l, ...u });
4328
4328
  return {
4329
4329
  querySelector: (l) => va(l, {
@@ -4348,31 +4348,31 @@ const dl = ({
4348
4348
  },
4349
4349
  recover: ({ errorId: l }) => {
4350
4350
  y({
4351
- type: du,
4351
+ type: pu,
4352
4352
  id: c.id,
4353
4353
  errorId: l
4354
4354
  });
4355
4355
  },
4356
4356
  dismissExperience: () => y({
4357
- type: bu
4357
+ type: Eu
4358
4358
  }),
4359
4359
  snoozeExperience: () => y({
4360
- type: Eu
4360
+ type: xu
4361
4361
  }),
4362
4362
  seen: () => y({
4363
- type: yu,
4363
+ type: mu,
4364
4364
  id: c.id
4365
4365
  }),
4366
4366
  getConfig: () => c,
4367
4367
  getTraitConfig: () => n.traits[r].config,
4368
4368
  interaction: (l, u) => y({
4369
- type: gu,
4369
+ type: yu,
4370
4370
  id: c.id,
4371
4371
  interactionType: l,
4372
4372
  interactionData: u
4373
4373
  }),
4374
4374
  extendedEvent: (l, u) => y({
4375
- type: fu,
4375
+ type: du,
4376
4376
  id: c.id,
4377
4377
  name: l,
4378
4378
  ...u
@@ -4400,7 +4400,7 @@ const dl = ({
4400
4400
  traitIndex: s,
4401
4401
  getAction: c = () => null
4402
4402
  }) => {
4403
- const { findId: h } = a("vNodeHandlers"), y = dl({
4403
+ const { findId: h } = a("vNodeHandlers"), y = pl({
4404
4404
  experience: t,
4405
4405
  step: e,
4406
4406
  callback: o,
@@ -4414,14 +4414,14 @@ const dl = ({
4414
4414
  stepContainer: r()
4415
4415
  }),
4416
4416
  reportError: (u) => {
4417
- const p = fl();
4417
+ const p = dl();
4418
4418
  return o({
4419
- type: vu,
4419
+ type: gu,
4420
4420
  message: u,
4421
4421
  errorId: p
4422
4422
  }), p;
4423
4423
  },
4424
- onElementInserted: Iu,
4424
+ onElementInserted: ju,
4425
4425
  onElementRemoved: di,
4426
4426
  ...y,
4427
4427
  stopExperience: () => o(xn),
@@ -4449,25 +4449,25 @@ const dl = ({
4449
4449
  },
4450
4450
  ...l
4451
4451
  } : l;
4452
- }, Yi = "formData.", pl = (t, e) => {
4452
+ }, Yi = "formData.", hl = (t, e) => {
4453
4453
  if (e.startsWith(Yi)) {
4454
4454
  const n = e.replace(Yi, "");
4455
4455
  return new FormData(t.target).get(n);
4456
4456
  }
4457
- return su(t, e);
4458
- }, { getCallback: yn, registerCallback: ie } = ba(), hl = (t, e, n) => {
4457
+ return cu(t, e);
4458
+ }, { getCallback: yn, registerCallback: ie } = ba(), vl = (t, e, n) => {
4459
4459
  const r = {
4460
4460
  target: e.target,
4461
4461
  detail: e.detail
4462
4462
  };
4463
4463
  return Object.entries(t).reduce(
4464
4464
  (i, [o, a]) => {
4465
- const s = pl(r, o);
4466
- return s ? ou(i, a, s) : i;
4465
+ const s = hl(r, o);
4466
+ return s ? au(i, a, s) : i;
4467
4467
  },
4468
4468
  n
4469
4469
  );
4470
- }, vl = ({ overrideStyle: t, getContainer: e }, n) => ({ experience: r, step: i }) => (o, a) => {
4470
+ }, gl = ({ overrideStyle: t, getContainer: e }, n) => ({ experience: r, step: i }) => (o, a) => {
4471
4471
  a(({ type: s }) => {
4472
4472
  if (s === fi)
4473
4473
  try {
@@ -4479,7 +4479,7 @@ const dl = ({
4479
4479
  if (!i.actions[p]) return;
4480
4480
  const d = {}, m = (E, v) => {
4481
4481
  o({
4482
- type: wu
4482
+ type: Su
4483
4483
  });
4484
4484
  const w = wa({
4485
4485
  experience: r,
@@ -4495,7 +4495,7 @@ const dl = ({
4495
4495
  if (N && v) {
4496
4496
  const k = {
4497
4497
  ..._,
4498
- ...hl(
4498
+ ...vl(
4499
4499
  N,
4500
4500
  v,
4501
4501
  _
@@ -4511,7 +4511,7 @@ const dl = ({
4511
4511
  );
4512
4512
  } finally {
4513
4513
  o({
4514
- type: Su
4514
+ type: _u
4515
4515
  });
4516
4516
  }
4517
4517
  }, b = i.actions[p].reduce(
@@ -4532,10 +4532,10 @@ const dl = ({
4532
4532
  virtualizedContent: l
4533
4533
  });
4534
4534
  } catch {
4535
- o(Cu);
4535
+ o(Ru);
4536
4536
  }
4537
4537
  });
4538
- }, gl = ({ addHook: t }) => (e) => (n) => {
4538
+ }, yl = ({ addHook: t }) => (e) => (n) => {
4539
4539
  const { step: r } = e;
4540
4540
  try {
4541
4541
  r.traits.forEach(
@@ -4553,7 +4553,7 @@ const dl = ({
4553
4553
  } catch {
4554
4554
  n(ha);
4555
4555
  }
4556
- }, yl = ({ applyOverridesToVnode: t }) => {
4556
+ }, ml = ({ applyOverridesToVnode: t }) => {
4557
4557
  let e = {};
4558
4558
  const n = (a) => (s, c) => {
4559
4559
  e[s] || (e[s] = {}), e[s][a] || (e[s][a] = {}), e[s][a] = {
@@ -4578,22 +4578,22 @@ const dl = ({
4578
4578
  clearOverrides: i
4579
4579
  };
4580
4580
  };
4581
- function ml(t, e) {
4581
+ function bl(t, e) {
4582
4582
  return document.createElement(t, e);
4583
4583
  }
4584
- function bl(t, e, n) {
4584
+ function El(t, e, n) {
4585
4585
  return document.createElementNS(t, e, n);
4586
4586
  }
4587
- function El() {
4587
+ function xl() {
4588
4588
  return _e(document.createDocumentFragment());
4589
4589
  }
4590
- function xl(t) {
4590
+ function wl(t) {
4591
4591
  return document.createTextNode(t);
4592
4592
  }
4593
- function wl(t) {
4593
+ function Sl(t) {
4594
4594
  return document.createComment(t);
4595
4595
  }
4596
- function Sl(t, e, n) {
4596
+ function _l(t, e, n) {
4597
4597
  if (te(t)) {
4598
4598
  let r = t;
4599
4599
  for (; r && te(r); )
@@ -4602,10 +4602,10 @@ function Sl(t, e, n) {
4602
4602
  }
4603
4603
  te(e) && (e = _e(e, t)), n && te(n) && (n = _e(n).firstChildNode), t.insertBefore(e, n);
4604
4604
  }
4605
- function _l(t, e) {
4605
+ function Tl(t, e) {
4606
4606
  t.removeChild(e);
4607
4607
  }
4608
- function Tl(t, e) {
4608
+ function kl(t, e) {
4609
4609
  te(e) && (e = _e(e, t)), t.appendChild(e);
4610
4610
  }
4611
4611
  function Sa(t) {
@@ -4616,7 +4616,7 @@ function Sa(t) {
4616
4616
  }
4617
4617
  return t.parentNode;
4618
4618
  }
4619
- function kl(t) {
4619
+ function Ol(t) {
4620
4620
  var e;
4621
4621
  if (te(t)) {
4622
4622
  const n = _e(t), r = Sa(n);
@@ -4628,22 +4628,22 @@ function kl(t) {
4628
4628
  }
4629
4629
  return t.nextSibling;
4630
4630
  }
4631
- function Ol(t) {
4631
+ function Cl(t) {
4632
4632
  return t.tagName;
4633
4633
  }
4634
- function Cl(t, e) {
4634
+ function Rl(t, e) {
4635
4635
  t.textContent = e;
4636
4636
  }
4637
- function Rl(t) {
4637
+ function Al(t) {
4638
4638
  return t.textContent;
4639
4639
  }
4640
- function Al(t) {
4640
+ function Nl(t) {
4641
4641
  return t.nodeType === 1;
4642
4642
  }
4643
- function Nl(t) {
4643
+ function Il(t) {
4644
4644
  return t.nodeType === 3;
4645
4645
  }
4646
- function Il(t) {
4646
+ function jl(t) {
4647
4647
  return t.nodeType === 8;
4648
4648
  }
4649
4649
  function te(t) {
@@ -4655,22 +4655,22 @@ function _e(t, e) {
4655
4655
  return (n = o.parent) !== null && n !== void 0 || (o.parent = e ?? null), (r = o.firstChildNode) !== null && r !== void 0 || (o.firstChildNode = t.firstChild), (i = o.lastChildNode) !== null && i !== void 0 || (o.lastChildNode = t.lastChild), o;
4656
4656
  }
4657
4657
  const pi = {
4658
- createElement: ml,
4659
- createElementNS: bl,
4660
- createTextNode: xl,
4661
- createDocumentFragment: El,
4662
- createComment: wl,
4663
- insertBefore: Sl,
4664
- removeChild: _l,
4665
- appendChild: Tl,
4658
+ createElement: bl,
4659
+ createElementNS: El,
4660
+ createTextNode: wl,
4661
+ createDocumentFragment: xl,
4662
+ createComment: Sl,
4663
+ insertBefore: _l,
4664
+ removeChild: Tl,
4665
+ appendChild: kl,
4666
4666
  parentNode: Sa,
4667
- nextSibling: kl,
4668
- tagName: Ol,
4669
- setTextContent: Cl,
4670
- getTextContent: Rl,
4671
- isElement: Al,
4672
- isText: Nl,
4673
- isComment: Il,
4667
+ nextSibling: Ol,
4668
+ tagName: Cl,
4669
+ setTextContent: Rl,
4670
+ getTextContent: Al,
4671
+ isElement: Nl,
4672
+ isText: Il,
4673
+ isComment: jl,
4674
4674
  isDocumentFragment: te
4675
4675
  };
4676
4676
  function At(t, e, n, r, i) {
@@ -4687,16 +4687,16 @@ function pn(t, e) {
4687
4687
  const i = t.key === e.key, o = ((n = t.data) === null || n === void 0 ? void 0 : n.is) === ((r = e.data) === null || r === void 0 ? void 0 : r.is), a = t.sel === e.sel, s = !t.sel && t.sel === e.sel ? typeof t.text == typeof e.text : !0;
4688
4688
  return a && i && o && s;
4689
4689
  }
4690
- function jl() {
4690
+ function Pl() {
4691
4691
  throw new Error("The document fragment is not supported on this platform.");
4692
4692
  }
4693
- function Pl(t, e) {
4693
+ function Dl(t, e) {
4694
4694
  return t.isElement(e);
4695
4695
  }
4696
- function Dl(t, e) {
4696
+ function Hl(t, e) {
4697
4697
  return t.isDocumentFragment(e);
4698
4698
  }
4699
- function Hl(t, e, n) {
4699
+ function Ll(t, e, n) {
4700
4700
  var r;
4701
4701
  const i = {};
4702
4702
  for (let o = e; o <= n; ++o) {
@@ -4705,7 +4705,7 @@ function Hl(t, e, n) {
4705
4705
  }
4706
4706
  return i;
4707
4707
  }
4708
- const Ll = [
4708
+ const $l = [
4709
4709
  "create",
4710
4710
  "update",
4711
4711
  "remove",
@@ -4722,7 +4722,7 @@ function _a(t, e, n) {
4722
4722
  pre: [],
4723
4723
  post: []
4724
4724
  }, i = e !== void 0 ? e : pi;
4725
- for (const d of Ll)
4725
+ for (const d of $l)
4726
4726
  for (const m of t) {
4727
4727
  const b = m[d];
4728
4728
  b !== void 0 && r[d].push(b);
@@ -4763,7 +4763,7 @@ function _a(t, e, n) {
4763
4763
  }
4764
4764
  k !== void 0 && ((v = k.create) === null || v === void 0 || v.call(k, _r, d), k.insert !== void 0 && m.push(d));
4765
4765
  } else if (!((w = n?.experimental) === null || w === void 0) && w.fragments && d.children) {
4766
- for (d.elm = ((O = i.createDocumentFragment) !== null && O !== void 0 ? O : jl)(), _ = 0; _ < r.create.length; ++_)
4766
+ for (d.elm = ((O = i.createDocumentFragment) !== null && O !== void 0 ? O : Pl)(), _ = 0; _ < r.create.length; ++_)
4767
4767
  r.create[_](_r, d);
4768
4768
  for (_ = 0; _ < d.children.length; ++_) {
4769
4769
  const L = d.children[_];
@@ -4811,7 +4811,7 @@ function _a(t, e, n) {
4811
4811
  function u(d, m, b, E) {
4812
4812
  let v = 0, w = 0, O = m.length - 1, _ = m[0], N = m[O], k = b.length - 1, R = b[0], j = b[k], L, V, $, F;
4813
4813
  for (; v <= O && w <= k; )
4814
- _ == null ? _ = m[++v] : N == null ? N = m[--O] : R == null ? R = b[++w] : j == null ? j = b[--k] : pn(_, R) ? (p(_, R, E), _ = m[++v], R = b[++w]) : pn(N, j) ? (p(N, j, E), N = m[--O], j = b[--k]) : pn(_, j) ? (p(_, j, E), i.insertBefore(d, _.elm, i.nextSibling(N.elm)), _ = m[++v], j = b[--k]) : pn(N, R) ? (p(N, R, E), i.insertBefore(d, N.elm, _.elm), N = m[--O], R = b[++w]) : (L === void 0 && (L = Hl(m, v, O)), V = L[R.key], V === void 0 ? (i.insertBefore(d, c(R, E), _.elm), R = b[++w]) : L[j.key] === void 0 ? (i.insertBefore(d, c(j, E), i.nextSibling(N.elm)), j = b[--k]) : ($ = m[V], $.sel !== R.sel ? i.insertBefore(d, c(R, E), _.elm) : (p($, R, E), m[V] = void 0, i.insertBefore(d, $.elm, _.elm)), R = b[++w]));
4814
+ _ == null ? _ = m[++v] : N == null ? N = m[--O] : R == null ? R = b[++w] : j == null ? j = b[--k] : pn(_, R) ? (p(_, R, E), _ = m[++v], R = b[++w]) : pn(N, j) ? (p(N, j, E), N = m[--O], j = b[--k]) : pn(_, j) ? (p(_, j, E), i.insertBefore(d, _.elm, i.nextSibling(N.elm)), _ = m[++v], j = b[--k]) : pn(N, R) ? (p(N, R, E), i.insertBefore(d, N.elm, _.elm), N = m[--O], R = b[++w]) : (L === void 0 && (L = Ll(m, v, O)), V = L[R.key], V === void 0 ? (i.insertBefore(d, c(R, E), _.elm), R = b[++w]) : L[j.key] === void 0 ? (i.insertBefore(d, c(j, E), i.nextSibling(N.elm)), j = b[--k]) : ($ = m[V], $.sel !== R.sel ? i.insertBefore(d, c(R, E), _.elm) : (p($, R, E), m[V] = void 0, i.insertBefore(d, $.elm, _.elm)), R = b[++w]));
4815
4815
  w <= k && (F = b[k + 1] == null ? null : b[k + 1].elm, h(d, F, b, w, k, E)), v <= O && l(d, m, v, O);
4816
4816
  }
4817
4817
  function p(d, m, b) {
@@ -4835,7 +4835,7 @@ function _a(t, e, n) {
4835
4835
  const w = [];
4836
4836
  for (b = 0; b < r.pre.length; ++b)
4837
4837
  r.pre[b]();
4838
- for (Pl(i, d) ? d = o(d) : Dl(i, d) && (d = a(d)), pn(d, m) ? p(d, m, w) : (E = d.elm, v = i.parentNode(E), c(m, w), v !== null && (i.insertBefore(v, m.elm, i.nextSibling(E)), l(v, [d], 0, 0))), b = 0; b < w.length; ++b)
4838
+ for (Dl(i, d) ? d = o(d) : Hl(i, d) && (d = a(d)), pn(d, m) ? p(d, m, w) : (E = d.elm, v = i.parentNode(E), c(m, w), v !== null && (i.insertBefore(v, m.elm, i.nextSibling(E)), l(v, [d], 0, 0))), b = 0; b < w.length; ++b)
4839
4839
  w[b].data.hook.insert(w[b]);
4840
4840
  for (b = 0; b < r.post.length; ++b)
4841
4841
  r.post[b]();
@@ -4871,11 +4871,11 @@ function Gn(t, e) {
4871
4871
  const r = (n = e.data) === null || n === void 0 ? void 0 : n.ns;
4872
4872
  t.data.fn = e.data.fn, t.data.args = e.data.args, e.data = t.data, e.children = t.children, e.text = t.text, e.elm = t.elm, r && pr(e.data, e.children, e.sel);
4873
4873
  }
4874
- function $l(t) {
4874
+ function Ml(t) {
4875
4875
  const e = t.data, n = e.fn(...e.args);
4876
4876
  Gn(n, t);
4877
4877
  }
4878
- function Ml(t, e) {
4878
+ function zl(t, e) {
4879
4879
  let n;
4880
4880
  const r = t.data, i = e.data, o = r.args, a = i.args;
4881
4881
  if (r.fn !== i.fn || o.length !== a.length) {
@@ -4889,34 +4889,34 @@ function Ml(t, e) {
4889
4889
  }
4890
4890
  Gn(t, e);
4891
4891
  }
4892
- const zl = function(t, e, n, r) {
4892
+ const Vl = function(t, e, n, r) {
4893
4893
  return r === void 0 && (r = n, n = e, e = void 0), re(t, {
4894
4894
  key: e,
4895
- hook: { init: $l, prepatch: Ml },
4895
+ hook: { init: Ml, prepatch: zl },
4896
4896
  fn: n,
4897
4897
  args: r
4898
4898
  });
4899
4899
  };
4900
- function Vl(t, e) {
4900
+ function Ul(t, e) {
4901
4901
  const n = t.data.attachData;
4902
4902
  e.data.attachData.placeholder = n.placeholder, e.data.attachData.real = n.real, t.elm = t.data.attachData.real;
4903
4903
  }
4904
- function Ul(t, e) {
4904
+ function Fl(t, e) {
4905
4905
  e.elm = e.data.attachData.placeholder;
4906
4906
  }
4907
- function Fl(t) {
4907
+ function Bl(t) {
4908
4908
  t.elm !== void 0 && t.elm.parentNode.removeChild(t.elm), t.elm = t.data.attachData.real;
4909
4909
  }
4910
- function Bl(t, e) {
4910
+ function ql(t, e) {
4911
4911
  const n = e.elm, r = e.data.attachData, i = document.createElement("span");
4912
4912
  e.elm = i, r.target.appendChild(n), r.real = n, r.placeholder = i;
4913
4913
  }
4914
- function ql(t, e) {
4914
+ function Gl(t, e) {
4915
4915
  e.data === void 0 && (e.data = {}), e.data.hook === void 0 && (e.data.hook = {});
4916
4916
  const n = e.data, r = e.data.hook;
4917
- return n.attachData = { target: t, placeholder: void 0, real: void 0 }, r.create = Bl, r.prepatch = Vl, r.postpatch = Ul, r.destroy = Fl, e;
4917
+ return n.attachData = { target: t, placeholder: void 0, real: void 0 }, r.create = ql, r.prepatch = Ul, r.postpatch = Fl, r.destroy = Bl, e;
4918
4918
  }
4919
- function Gl(t) {
4919
+ function Jl(t) {
4920
4920
  return t.slice(5).replace(/-([a-z])/g, (e, n) => n.toUpperCase());
4921
4921
  }
4922
4922
  function Ta(t, e) {
@@ -4928,13 +4928,13 @@ function Ta(t, e) {
4928
4928
  let p, d, m;
4929
4929
  const b = t.attributes, E = t.childNodes;
4930
4930
  for (d = 0, m = b.length; d < m; d++)
4931
- p = b[d].nodeName, p.startsWith("data-") ? y[Gl(p)] = b[d].nodeValue || "" : p !== "id" && p !== "class" && (h[p] = b[d].nodeValue);
4931
+ p = b[d].nodeName, p.startsWith("data-") ? y[Jl(p)] = b[d].nodeValue || "" : p !== "id" && p !== "class" && (h[p] = b[d].nodeValue);
4932
4932
  for (d = 0, m = E.length; d < m; d++)
4933
4933
  u.push(Ta(E[d], e));
4934
4934
  return Object.keys(h).length > 0 && (l.attrs = h), Object.keys(y).length > 0 && (l.dataset = y), c.startsWith("svg") && (c.length === 3 || c[3] === "." || c[3] === "#") && pr(l, u, c), At(c, l, u, void 0, t);
4935
4935
  } else return r.isText(t) ? (i = r.getTextContent(t), At(void 0, void 0, void 0, i, t)) : r.isComment(t) ? (i = r.getTextContent(t), At("!", {}, [], i, t)) : At("", {}, [], void 0, t);
4936
4936
  }
4937
- const Jl = "http://www.w3.org/1999/xlink", Kl = "http://www.w3.org/2000/xmlns/", Zl = "http://www.w3.org/XML/1998/namespace", Wi = 58, Yl = 120, Wl = 109;
4937
+ const Kl = "http://www.w3.org/1999/xlink", Zl = "http://www.w3.org/2000/xmlns/", Yl = "http://www.w3.org/XML/1998/namespace", Wi = 58, Wl = 120, Xl = 109;
4938
4938
  function Xi(t, e) {
4939
4939
  let n;
4940
4940
  const r = e.elm;
@@ -4943,7 +4943,7 @@ function Xi(t, e) {
4943
4943
  i = i || {}, o = o || {};
4944
4944
  for (n in o) {
4945
4945
  const a = o[n];
4946
- i[n] !== a && (a === !0 ? r.setAttribute(n, "") : a === !1 ? r.removeAttribute(n) : n.charCodeAt(0) !== Yl ? r.setAttribute(n, a) : n.charCodeAt(3) === Wi ? r.setAttributeNS(Zl, n, a) : n.charCodeAt(5) === Wi ? n.charCodeAt(1) === Wl ? r.setAttributeNS(Kl, n, a) : r.setAttributeNS(Jl, n, a) : r.setAttribute(n, a));
4946
+ i[n] !== a && (a === !0 ? r.setAttribute(n, "") : a === !1 ? r.removeAttribute(n) : n.charCodeAt(0) !== Wl ? r.setAttribute(n, a) : n.charCodeAt(3) === Wi ? r.setAttributeNS(Yl, n, a) : n.charCodeAt(5) === Wi ? n.charCodeAt(1) === Xl ? r.setAttributeNS(Zl, n, a) : r.setAttributeNS(Kl, n, a) : r.setAttribute(n, a));
4947
4947
  }
4948
4948
  for (n in i)
4949
4949
  n in o || r.removeAttribute(n);
@@ -4978,7 +4978,7 @@ function eo(t, e) {
4978
4978
  for (o in i)
4979
4979
  r[o] !== i[o] && (a ? a[o] = i[o] : n.setAttribute("data-" + o.replace(to, "-$&").toLowerCase(), i[o]));
4980
4980
  }
4981
- const Xl = {
4981
+ const Ql = {
4982
4982
  create: eo,
4983
4983
  update: eo
4984
4984
  };
@@ -4989,13 +4989,13 @@ function Ca(t, e, n) {
4989
4989
  for (let r = 0; r < t.length; r++)
4990
4990
  Ca(t[r], e, n);
4991
4991
  }
4992
- function Ql(t, e) {
4992
+ function tf(t, e) {
4993
4993
  const n = t.type, r = e.data.on;
4994
4994
  r && r[n] && Ca(r[n], e, t);
4995
4995
  }
4996
- function tf() {
4996
+ function ef() {
4997
4997
  return function t(e) {
4998
- Ql(e, t.vnode);
4998
+ tf(e, t.vnode);
4999
4999
  };
5000
5000
  }
5001
5001
  function Tr(t, e) {
@@ -5010,7 +5010,7 @@ function Tr(t, e) {
5010
5010
  for (s in n)
5011
5011
  i.removeEventListener(s, r, !1);
5012
5012
  if (o) {
5013
- const c = e.listener = t.listener || tf();
5013
+ const c = e.listener = t.listener || ef();
5014
5014
  if (c.vnode = e, n)
5015
5015
  for (s in o)
5016
5016
  n[s] || a.addEventListener(s, c, !1);
@@ -5035,14 +5035,14 @@ function no(t, e) {
5035
5035
  r = s[n], i = a[n], i !== r && (n !== "value" || o[n] !== r) && (o[n] = r);
5036
5036
  }
5037
5037
  }
5038
- const Aa = { create: no, update: no }, ro = typeof window?.requestAnimationFrame == "function" ? window.requestAnimationFrame.bind(window) : setTimeout, ef = (t) => {
5038
+ const Aa = { create: no, update: no }, ro = typeof window?.requestAnimationFrame == "function" ? window.requestAnimationFrame.bind(window) : setTimeout, nf = (t) => {
5039
5039
  ro(() => {
5040
5040
  ro(t);
5041
5041
  });
5042
5042
  };
5043
5043
  let Zr = !1;
5044
- function nf(t, e, n) {
5045
- ef(() => {
5044
+ function rf(t, e, n) {
5045
+ nf(() => {
5046
5046
  t[e] = n;
5047
5047
  });
5048
5048
  }
@@ -5059,17 +5059,17 @@ function io(t, e) {
5059
5059
  for (r in a)
5060
5060
  if (n = a[r], r === "delayed" && a.delayed)
5061
5061
  for (const c in a.delayed)
5062
- n = a.delayed[c], (!s || n !== o.delayed[c]) && nf(i.style, c, n);
5062
+ n = a.delayed[c], (!s || n !== o.delayed[c]) && rf(i.style, c, n);
5063
5063
  else r !== "remove" && n !== o[r] && (r[0] === "-" && r[1] === "-" ? i.style.setProperty(r, n) : i.style[r] = n);
5064
5064
  }
5065
- function rf(t) {
5065
+ function of(t) {
5066
5066
  let e, n;
5067
5067
  const r = t.elm, i = t.data.style;
5068
5068
  if (!(!i || !(e = i.destroy)))
5069
5069
  for (n in e)
5070
5070
  r.style[n] = e[n];
5071
5071
  }
5072
- function of(t, e) {
5072
+ function af(t, e) {
5073
5073
  const n = t.data.style;
5074
5074
  if (!n || !n.remove) {
5075
5075
  e();
@@ -5091,17 +5091,17 @@ function of(t, e) {
5091
5091
  y.target === i && --s, s === 0 && e();
5092
5092
  });
5093
5093
  }
5094
- function af() {
5094
+ function sf() {
5095
5095
  Zr = !1;
5096
5096
  }
5097
5097
  const Na = {
5098
- pre: af,
5098
+ pre: sf,
5099
5099
  create: io,
5100
5100
  update: io,
5101
- destroy: rf,
5102
- remove: of
5101
+ destroy: of,
5102
+ remove: af
5103
5103
  };
5104
- function sf(t, ...e) {
5104
+ function cf(t, ...e) {
5105
5105
  const n = hi(e, []);
5106
5106
  return n.length === 1 && !n[0].sel && n[0].text ? At(void 0, void 0, void 0, n[0].text, void 0) : At(void 0, t ?? {}, n, void 0, void 0);
5107
5107
  }
@@ -5110,34 +5110,34 @@ function hi(t, e) {
5110
5110
  n != null && n !== !1 && n !== "" && (Array.isArray(n) ? hi(n, e) : typeof n == "string" || typeof n == "number" || typeof n == "boolean" ? e.push(At(void 0, void 0, void 0, String(n), void 0)) : e.push(n));
5111
5111
  return e;
5112
5112
  }
5113
- function cf(t, e, ...n) {
5113
+ function uf(t, e, ...n) {
5114
5114
  const r = hi(n, []);
5115
5115
  return typeof t == "function" ? t(e, r) : r.length === 1 && !r[0].sel && r[0].text ? re(t, e, r[0].text) : re(t, e, r);
5116
5116
  }
5117
- const uf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5117
+ const lf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5118
5118
  __proto__: null,
5119
- Fragment: sf,
5119
+ Fragment: cf,
5120
5120
  array: Ke,
5121
- attachTo: ql,
5121
+ attachTo: Gl,
5122
5122
  attributesModule: ka,
5123
5123
  classModule: Oa,
5124
- datasetModule: Xl,
5124
+ datasetModule: Ql,
5125
5125
  eventListenersModule: Ra,
5126
5126
  fragment: Kr,
5127
5127
  h: re,
5128
5128
  htmlDomApi: pi,
5129
5129
  init: _a,
5130
- jsx: cf,
5130
+ jsx: uf,
5131
5131
  primitive: Te,
5132
5132
  propsModule: Aa,
5133
5133
  styleModule: Na,
5134
- thunk: zl,
5134
+ thunk: Vl,
5135
5135
  toVNode: Ta,
5136
5136
  vnode: At
5137
- }, Symbol.toStringTag, { value: "Module" })), lf = (...t) => (e) => t.reduce((n, r) => r(n), e), oo = (t) => t.reduce(
5137
+ }, Symbol.toStringTag, { value: "Module" })), ff = (...t) => (e) => t.reduce((n, r) => r(n), e), oo = (t) => t.reduce(
5138
5138
  (e, { callback: n, context: r }) => e.then(() => n(r)),
5139
5139
  Promise.resolve()
5140
- ), ff = ({
5140
+ ), df = ({
5141
5141
  experience: t,
5142
5142
  onRender: e,
5143
5143
  onRenderReset: n,
@@ -5147,7 +5147,7 @@ const uf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5147
5147
  const a = () => {
5148
5148
  const y = Ce(t.id);
5149
5149
  return document.documentElement.querySelector(`#${y}`);
5150
- }, s = () => o ? o.shadowRoot : null, c = () => i ? i.shadowRoot : null, h = lf(
5150
+ }, s = () => o ? o.shadowRoot : null, c = () => i ? i.shadowRoot : null, h = ff(
5151
5151
  (y) => (c() !== null || s() !== null || (i = a()), y),
5152
5152
  r,
5153
5153
  ({ step: { virtualizedContent: y } }) => {
@@ -5173,7 +5173,7 @@ const uf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5173
5173
  getRoot: () => o ?? a(),
5174
5174
  hasCustomContainer: (y, l) => l.type === oa && l.options?.forceUpdate || !!s()
5175
5175
  };
5176
- }, df = ({ container: t, nodes: e }, n = 0) => t.replace(/<% node %>/, e[n]), pf = (t) => t.replaceAll("//twemoji.maxcdn.com/2/svg/", "//cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/"), hf = (t) => t.split("_").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(" "), zt = ({ experience: t, experienceInstanceId: e }, n) => ({
5176
+ }, pf = ({ container: t, nodes: e }, n = 0) => t.replace(/<% node %>/, e[n]), hf = (t) => t.replaceAll("//twemoji.maxcdn.com/2/svg/", "//cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/"), vf = (t) => t.split("_").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(" "), zt = ({ experience: t, experienceInstanceId: e }, n) => ({
5177
5177
  experienceId: t.id,
5178
5178
  experienceName: t.name,
5179
5179
  experienceType: t.type,
@@ -5182,13 +5182,13 @@ const uf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5182
5182
  localeId: t.context?.localeId || "default",
5183
5183
  timestamp: Date.now(),
5184
5184
  version: t.version,
5185
- name: hf(n),
5185
+ name: vf(n),
5186
5186
  experienceInstanceId: e
5187
5187
  }), de = ({ step: t }) => ({
5188
5188
  stepId: t.id,
5189
5189
  stepName: t.name,
5190
5190
  stepType: t.type
5191
- }), vf = (t, e) => !t.blockedEvents[e.type], Ia = (t) => {
5191
+ }), gf = (t, e) => !t.blockedEvents[e.type], Ia = (t) => {
5192
5192
  const e = (p) => {
5193
5193
  const d = "experience_started", m = zt(p, d);
5194
5194
  t("sendEvent")(d, m);
@@ -5280,10 +5280,10 @@ const uf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5280
5280
  },
5281
5281
  helpers: {
5282
5282
  blockEvent: u,
5283
- isEventEnabled: vf
5283
+ isEventEnabled: gf
5284
5284
  }
5285
5285
  };
5286
- }, gf = lr({
5286
+ }, yf = lr({
5287
5287
  initial: "waitingForAsyncEvents",
5288
5288
  context: {
5289
5289
  runHooksDone: !1
@@ -5349,7 +5349,7 @@ const uf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5349
5349
  type: "final"
5350
5350
  }
5351
5351
  }
5352
- }), yf = lr({
5352
+ }), mf = lr({
5353
5353
  initial: "waitingForAsyncEvents",
5354
5354
  context: {
5355
5355
  runHooksDone: !1
@@ -5390,7 +5390,7 @@ const uf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5390
5390
  type: "final"
5391
5391
  }
5392
5392
  }
5393
- }), mf = {
5393
+ }), bf = {
5394
5394
  initial: "waiting_to_render",
5395
5395
  on: {
5396
5396
  SET_STEP_CONTAINER_TARGET: {
@@ -5607,7 +5607,7 @@ const uf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5607
5607
  "post-render": {
5608
5608
  invoke: {
5609
5609
  id: "postRenderAsyncEventsHandler",
5610
- src: gf
5610
+ src: yf
5611
5611
  },
5612
5612
  entry: ["runStepPostRenderHooks"],
5613
5613
  on: {
@@ -5652,7 +5652,7 @@ const uf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5652
5652
  invoke: [
5653
5653
  {
5654
5654
  id: "errorAsyncEventsHandler",
5655
- src: yf
5655
+ src: mf
5656
5656
  }
5657
5657
  ],
5658
5658
  entry: ["unmount", "runStepErrorHooks", "stopThemeRemovalListener"],
@@ -5695,7 +5695,7 @@ const uf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5695
5695
  createVnodeTree: s,
5696
5696
  wrapContent: c,
5697
5697
  applyOverridesToVnode: h
5698
- } = i("vNodeHandlers"), { makeElementsAccessible: y } = i("accessibilityHandlers"), { applyOverrides: l, createOverrideCallback: u, clearOverrides: p } = yl({
5698
+ } = i("vNodeHandlers"), { makeElementsAccessible: y } = i("accessibilityHandlers"), { applyOverrides: l, createOverrideCallback: u, clearOverrides: p } = ml({
5699
5699
  applyOverridesToVnode: h
5700
5700
  }), d = u("style"), { onRender: m, onRenderReset: b } = i("createRenderListener")(), {
5701
5701
  render: E,
@@ -5705,7 +5705,7 @@ const uf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5705
5705
  getContainer: _,
5706
5706
  hasCustomContainer: N,
5707
5707
  getRoot: k
5708
- } = ff({
5708
+ } = df({
5709
5709
  experience: r,
5710
5710
  onRender: m,
5711
5711
  onRenderReset: b,
@@ -5721,9 +5721,9 @@ const uf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5721
5721
  } = e({
5722
5722
  step: t,
5723
5723
  overrideStyle: d
5724
- }), Z = gl({
5724
+ }), Z = yl({
5725
5725
  addHook: R
5726
- }), rt = vl(
5726
+ }), rt = gl(
5727
5727
  {
5728
5728
  overrideStyle: d,
5729
5729
  getContainer: _
@@ -5736,12 +5736,12 @@ const uf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5736
5736
  getRoot: k
5737
5737
  },
5738
5738
  i
5739
- ), Y = zu({
5739
+ ), Y = Vu({
5740
5740
  getRoot: k
5741
- }), at = Ia(i), St = (q) => q.contentType === "text/html" ? a(pf(df(q.content))) : s(q.content);
5741
+ }), at = Ia(i), St = (q) => q.contentType === "text/html" ? a(hf(pf(q.content))) : s(q.content);
5742
5742
  return lr(
5743
5743
  {
5744
- ...mf,
5744
+ ...bf,
5745
5745
  context: {
5746
5746
  id: `step-machine-${t.id}`,
5747
5747
  step: {
@@ -5767,12 +5767,12 @@ const uf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5767
5767
  {
5768
5768
  actions: {
5769
5769
  // injecting action coming from step level
5770
- setContent: Qu,
5771
- updateRootStyle: il,
5770
+ setContent: tl,
5771
+ updateRootStyle: ol,
5772
5772
  // injecting action coming from render
5773
5773
  unmount: v,
5774
5774
  setContainer: w,
5775
- updateTheme: ol,
5775
+ updateTheme: al,
5776
5776
  resetRender: O,
5777
5777
  // injecting action coming from hooks
5778
5778
  runStepBeginHooks: j,
@@ -5780,29 +5780,29 @@ const uf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5780
5780
  runStepPostRenderHooks: V,
5781
5781
  runStepEndHooks: $,
5782
5782
  runStepErrorHooks: F,
5783
- updateStepContext: el,
5783
+ updateStepContext: nl,
5784
5784
  removeStepHooks: () => X(),
5785
5785
  clearOverrides: () => p(),
5786
- setVirtualizedContent: tl(
5786
+ setVirtualizedContent: el(
5787
5787
  St
5788
5788
  ),
5789
5789
  // injecting action coming from overrides
5790
5790
  applyOverrides: l,
5791
5791
  // injecting actions coming from dom
5792
5792
  startThemeRemovalListener: ya,
5793
- stopThemeRemovalListener: Vu,
5794
- removeCustomContainer: $u({ getRoot: k }),
5795
- ensuresElementsAreAccessible: al(
5793
+ stopThemeRemovalListener: Uu,
5794
+ removeCustomContainer: Mu({ getRoot: k }),
5795
+ ensuresElementsAreAccessible: sl(
5796
5796
  y
5797
5797
  ),
5798
- notifyExperienceStarted: nl,
5799
- notifyStepStopped: rl,
5798
+ notifyExperienceStarted: rl,
5799
+ notifyStepStopped: il,
5800
5800
  // core events
5801
5801
  ...at.stepActions,
5802
5802
  blockEvent: at.helpers.blockEvent,
5803
- autoRecover: sl,
5804
- setActionsRunning: cl,
5805
- setActionsFinished: ul
5803
+ autoRecover: cl,
5804
+ setActionsRunning: ul,
5805
+ setActionsFinished: ll
5806
5806
  },
5807
5807
  services: {
5808
5808
  // injecting services coming from step level
@@ -5832,7 +5832,7 @@ const uf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5832
5832
  }
5833
5833
  }
5834
5834
  );
5835
- }, bf = ({
5835
+ }, Ef = ({
5836
5836
  createStepHooks: t,
5837
5837
  createHooksService: e,
5838
5838
  get: n
@@ -5850,7 +5850,7 @@ const uf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5850
5850
  `step-machine - ${s.id}`
5851
5851
  ), a), {});
5852
5852
  }
5853
- }), Ef = ({
5853
+ }), xf = ({
5854
5854
  createStepHooks: t,
5855
5855
  createHooksService: e,
5856
5856
  get: n
@@ -5877,48 +5877,48 @@ const uf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5877
5877
  ...r,
5878
5878
  type: t
5879
5879
  });
5880
- }, xf = We(ea), wf = We(si), Sf = We(na), _f = We(
5880
+ }, wf = We(ea), Sf = We(si), _f = We(na), Tf = We(
5881
5881
  ra
5882
- ), Tf = We(hu), kf = We(ia), Of = (t) => {
5882
+ ), kf = We(vu), Of = We(ia), Cf = (t) => {
5883
5883
  Object.values(t.stepMachines).forEach((e) => {
5884
5884
  e.send({
5885
5885
  type: si
5886
5886
  });
5887
5887
  });
5888
- }, Cf = (t) => {
5888
+ }, Rf = (t) => {
5889
5889
  Object.entries(t.stepMachines).forEach(([e, n]) => {
5890
5890
  const r = t.experience.steps.find((i) => i.id === e);
5891
5891
  n.send({
5892
- type: mu,
5892
+ type: bu,
5893
5893
  stepConfig: r,
5894
5894
  experience: t.experience
5895
5895
  });
5896
5896
  });
5897
- }, Rf = (t) => {
5897
+ }, Af = (t) => {
5898
5898
  Object.values(t.stepMachines).forEach((e) => {
5899
5899
  e.send({
5900
5900
  type: li
5901
5901
  });
5902
5902
  });
5903
- }, Af = mt({
5903
+ }, Nf = mt({
5904
5904
  experience: (t, e) => e.experience
5905
- }), Nf = mt({
5906
- experienceInstanceId: () => Xc()
5907
5905
  }), If = mt({
5906
+ experienceInstanceId: () => Qc()
5907
+ }), jf = mt({
5908
5908
  stepMachines: (t, e) => Object.entries(t.stepMachines).reduce(
5909
5909
  (n, [r, i]) => (r !== e.id && (n[r] = i), n),
5910
5910
  {}
5911
5911
  )
5912
- }), jf = mt({
5912
+ }), Pf = mt({
5913
5913
  experience: ({ experience: t }, e) => {
5914
5914
  const n = t.steps.findIndex((r) => r.id === e.id);
5915
- return n === -1 ? t : au(
5915
+ return n === -1 ? t : su(
5916
5916
  t,
5917
5917
  `steps.${n}.traits`,
5918
5918
  (r) => r.filter(({ once: i = !1 }) => !i)
5919
5919
  );
5920
5920
  }
5921
- }), Pf = ({ addHook: t }) => ({ experience: e }) => (n) => {
5921
+ }), Df = ({ addHook: t }) => ({ experience: e }) => (n) => {
5922
5922
  try {
5923
5923
  e.traits.forEach(
5924
5924
  (r, i) => Ea({
@@ -5948,9 +5948,9 @@ const uf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5948
5948
  ...e
5949
5949
  },
5950
5950
  { to: "hooksService" }
5951
- ), Df = Re(_u), Hf = Re(Tu), Lf = Re(ci), $f = Re(sa), Mf = Re(ca), zf = Re(ua), Vf = Tc(
5951
+ ), Hf = Re(Tu), Lf = Re(ku), $f = Re(ci), Mf = Re(sa), zf = Re(ca), Vf = Re(ua), Uf = kc(
5952
5952
  (t, e) => Re(la, { errorEvent: e })
5953
- ), Uf = () => {
5953
+ ), Ff = () => {
5954
5954
  const t = /* @__PURE__ */ new Map(), e = /* @__PURE__ */ new Map(), n = (i = {}, o) => (a) => (s, c) => {
5955
5955
  c(async ({ type: h, hookType: y, ...l }) => {
5956
5956
  const { experience: u, step: p } = a;
@@ -5982,7 +5982,7 @@ const uf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5982
5982
  const E = (e.get(p.id)?.get(y) ?? []).map(m);
5983
5983
  await oo(E);
5984
5984
  }
5985
- s({ type: ku, hookType: y, ...l });
5985
+ s({ type: Ou, hookType: y, ...l });
5986
5986
  } catch {
5987
5987
  s("RUN_HOOKS_ERROR");
5988
5988
  }
@@ -5993,11 +5993,11 @@ const uf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5993
5993
  (o, a) => e.get(i.id).set(o, a)
5994
5994
  ),
5995
5995
  removeStepHooks: () => e.set(i.id, /* @__PURE__ */ new Map()),
5996
- runStepBeginHooks: Lf,
5997
- runStepPreRenderHooks: $f,
5998
- runStepPostRenderHooks: Mf,
5999
- runStepEndHooks: zf,
6000
- runStepErrorHooks: Vf
5996
+ runStepBeginHooks: $f,
5997
+ runStepPreRenderHooks: Mf,
5998
+ runStepPostRenderHooks: zf,
5999
+ runStepEndHooks: Vf,
6000
+ runStepErrorHooks: Uf
6001
6001
  });
6002
6002
  return {
6003
6003
  addHook: ao(
@@ -6006,10 +6006,10 @@ const uf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6006
6006
  ),
6007
6007
  createStepHooks: r,
6008
6008
  createHooksService: n,
6009
- runExperienceBeginHooks: Df,
6010
- runExperienceEndHooks: Hf
6009
+ runExperienceBeginHooks: Hf,
6010
+ runExperienceEndHooks: Lf
6011
6011
  };
6012
- }, Ff = {
6012
+ }, Bf = {
6013
6013
  id: "experience",
6014
6014
  initial: "idle",
6015
6015
  invoke: [
@@ -6144,27 +6144,27 @@ const uf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6144
6144
  type: "final"
6145
6145
  }
6146
6146
  }
6147
- }, Bf = (t, e) => {
6147
+ }, qf = (t, e) => {
6148
6148
  const {
6149
6149
  addHook: n,
6150
6150
  createStepHooks: r,
6151
6151
  createHooksService: i,
6152
6152
  runExperienceBeginHooks: o,
6153
6153
  runExperienceEndHooks: a
6154
- } = Uf(), s = i({}, e), c = bf({
6154
+ } = Ff(), s = i({}, e), c = Ef({
6155
6155
  createStepHooks: r,
6156
6156
  createHooksService: i,
6157
6157
  get: e
6158
- }), h = Ef({
6158
+ }), h = xf({
6159
6159
  createStepHooks: r,
6160
6160
  createHooksService: i,
6161
6161
  get: e
6162
- }), y = Pf({
6162
+ }), y = Df({
6163
6163
  addHook: n
6164
6164
  }), l = Ia(e);
6165
6165
  return lr(
6166
6166
  {
6167
- ...Ff,
6167
+ ...Bf,
6168
6168
  context: {
6169
6169
  experience: t,
6170
6170
  blockedEvents: {},
@@ -6174,29 +6174,29 @@ const uf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6174
6174
  {
6175
6175
  actions: {
6176
6176
  // experience
6177
- startStep: xf,
6178
- stopStep: wf,
6179
- updateStep: Sf,
6180
- setStepContainerTarget: _f,
6181
- recoverStep: Tf,
6177
+ startStep: wf,
6178
+ stopStep: Sf,
6179
+ updateStep: _f,
6180
+ setStepContainerTarget: Tf,
6181
+ recoverStep: kf,
6182
6182
  startStepMachines: c,
6183
- stopSteps: Of,
6184
- notifyStepsContainerRemoved: Rf,
6185
- updateStepContent: kf,
6186
- reloadSteps: Cf,
6187
- updateExperienceContext: Af,
6188
- updateExperienceInstanceId: Nf,
6189
- cleanStepMachines: If,
6183
+ stopSteps: Cf,
6184
+ notifyStepsContainerRemoved: Af,
6185
+ updateStepContent: Of,
6186
+ reloadSteps: Rf,
6187
+ updateExperienceContext: Nf,
6188
+ updateExperienceInstanceId: If,
6189
+ cleanStepMachines: jf,
6190
6190
  startStepMachine: h,
6191
6191
  // hooks
6192
6192
  runExperienceBeginHooks: o,
6193
6193
  runExperienceEndHooks: a,
6194
6194
  // dom
6195
- createGlobalThemeComponent: Du,
6196
- removeGlobalThemeComponent: Hu,
6195
+ createGlobalThemeComponent: Hu,
6196
+ removeGlobalThemeComponent: Lu,
6197
6197
  startThemeRemovalListener: ya,
6198
6198
  // traits
6199
- cleanRunOnceTraits: jf,
6199
+ cleanRunOnceTraits: Pf,
6200
6200
  // core events
6201
6201
  ...l.experienceActions,
6202
6202
  blockEvent: l.helpers.blockEvent
@@ -6207,7 +6207,7 @@ const uf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6207
6207
  // hooks
6208
6208
  hooksService: s,
6209
6209
  // dom
6210
- globalThemeRemovalService: Mu
6210
+ globalThemeRemovalService: zu
6211
6211
  },
6212
6212
  guards: {
6213
6213
  isEventEnabled: l.helpers.isEventEnabled,
@@ -6233,15 +6233,15 @@ const uf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6233
6233
  }
6234
6234
  }
6235
6235
  );
6236
- function qf(t) {
6236
+ function Gf(t) {
6237
6237
  const e = document.createElement("div");
6238
6238
  return t.append(e), Pa(e, re("div"));
6239
6239
  }
6240
- const Gf = () => {
6240
+ const Jf = () => {
6241
6241
  let t = null;
6242
6242
  return {
6243
6243
  onRender: (e, n) => {
6244
- !t && !e || (t || (t = qf(e)), t = Pa(t, n));
6244
+ !t && !e || (t || (t = Gf(e)), t = Pa(t, n));
6245
6245
  },
6246
6246
  onRenderReset: () => {
6247
6247
  t = null;
@@ -6249,7 +6249,7 @@ const Gf = () => {
6249
6249
  };
6250
6250
  };
6251
6251
  var zn = {}, so, co;
6252
- function Jf() {
6252
+ function Kf() {
6253
6253
  return co || (co = 1, so = {
6254
6254
  area: !0,
6255
6255
  base: !0,
@@ -6270,10 +6270,10 @@ function Jf() {
6270
6270
  }), so;
6271
6271
  }
6272
6272
  var kr, uo;
6273
- function Kf() {
6273
+ function Zf() {
6274
6274
  if (uo) return kr;
6275
6275
  uo = 1;
6276
- var t = /([\w-]+)|=|(['"])([.\s\S]*?)\2/g, e = Jf();
6276
+ var t = /([\w-]+)|=|(['"])([.\s\S]*?)\2/g, e = Kf();
6277
6277
  return kr = function(n) {
6278
6278
  var r = 0, i, o = !0, a = {
6279
6279
  type: "tag",
@@ -6292,10 +6292,10 @@ function Kf() {
6292
6292
  }, kr;
6293
6293
  }
6294
6294
  var Or, lo;
6295
- function Zf() {
6295
+ function Yf() {
6296
6296
  if (lo) return Or;
6297
6297
  lo = 1;
6298
- var t = /(?:<!--[\S\s]*?-->|<(?:"[^"]*"|'[^']*'|[^'">])+>)/g, e = Kf(), n = Object.create ? /* @__PURE__ */ Object.create(null) : {};
6298
+ var t = /(?:<!--[\S\s]*?-->|<(?:"[^"]*"|'[^']*'|[^'">])+>)/g, e = Zf(), n = Object.create ? /* @__PURE__ */ Object.create(null) : {};
6299
6299
  function r(i, o, a, s, c) {
6300
6300
  var h = o.indexOf("<", s), y = o.slice(s, h === -1 ? void 0 : h);
6301
6301
  /^\s*$/.test(y) && (y = " "), (!c && h > -1 && a + i.length >= 0 || y !== " ") && i.push({
@@ -6317,9 +6317,9 @@ function Zf() {
6317
6317
  }), !a.length && i.length && r(a, i, 0, 0, o.ignoreWhitespace), a;
6318
6318
  }, Or;
6319
6319
  }
6320
- const Da = /* @__PURE__ */ Qc(uf);
6320
+ const Da = /* @__PURE__ */ tu(lf);
6321
6321
  var Le = {}, fo;
6322
- function Yf() {
6322
+ function Wf() {
6323
6323
  if (fo) return Le;
6324
6324
  fo = 1, Object.defineProperty(Le, "__esModule", {
6325
6325
  value: !0
@@ -6344,7 +6344,7 @@ function Yf() {
6344
6344
  return Le;
6345
6345
  }
6346
6346
  var po;
6347
- function Wf() {
6347
+ function Xf() {
6348
6348
  if (po) return zn;
6349
6349
  po = 1, Object.defineProperty(zn, "__esModule", {
6350
6350
  value: !0
@@ -6357,7 +6357,7 @@ function Wf() {
6357
6357
  u.hooks.create(E);
6358
6358
  }), b;
6359
6359
  };
6360
- var t = Zf(), e = i(t), n = Da, r = Yf();
6360
+ var t = Yf(), e = i(t), n = Da, r = Wf();
6361
6361
  function i(l) {
6362
6362
  return l && l.__esModule ? l : { default: l };
6363
6363
  }
@@ -6417,18 +6417,21 @@ function Wf() {
6417
6417
  return zn;
6418
6418
  }
6419
6419
  var ho, vo;
6420
- function Xf() {
6421
- return vo || (vo = 1, ho = Wf()), ho;
6420
+ function Qf() {
6421
+ return vo || (vo = 1, ho = Xf()), ho;
6422
6422
  }
6423
- var Qf = Xf();
6424
- const td = /* @__PURE__ */ Oe(Qf), Ha = "data-interaction-style", ed = (t) => t.replace(/([A-Z])/g, (e) => `-${e[0].toLowerCase()}`), nd = (t) => t.replace(/&amp;/g, "&").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&#39;/g, "'").replace(/&quot;/g, '"'), La = ({ nodeId: t, interactionId: e, state: n }) => {
6423
+ var td = Qf();
6424
+ const ed = /* @__PURE__ */ Oe(td), Ha = "data-interaction-style", nd = (t) => t.replace(/([A-Z])/g, (e) => `-${e[0].toLowerCase()}`), La = (t) => t.replace(/&amp;/g, "&").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&#39;/g, "'").replace(/&quot;/g, '"'), $a = ({ nodeId: t, interactionId: e, state: n }) => {
6425
6425
  const r = e ? `[${Ha}="${e}"]` : `#${t}`;
6426
6426
  return Object.keys(n).map((i) => `${r}:${i} {
6427
- ${Object.entries(n[i]).map(
6428
- ([o, a]) => `${ed(o)}:${a} !important`
6429
- ).join(";")}
6427
+ ${Object.entries(n[i]).map(([o, a]) => {
6428
+ const s = La(String(a));
6429
+ return `${nd(
6430
+ o
6431
+ )}:${s} !important`;
6432
+ }).join(";")}
6430
6433
  }`).join(" ");
6431
- }, $a = (t) => t.data && t.data.attrs ? t.data.attrs.id : void 0, Ma = (t, e) => Object.keys(e).reduce(
6434
+ }, Ma = (t) => t.data && t.data.attrs ? t.data.attrs.id : void 0, za = (t, e) => Object.keys(e).reduce(
6432
6435
  (n, r) => ({
6433
6436
  ...n,
6434
6437
  [r]: {
@@ -6439,9 +6442,9 @@ const td = /* @__PURE__ */ Oe(Qf), Ha = "data-interaction-style", ed = (t) => t.
6439
6442
  t.data || {}
6440
6443
  ), vi = (t, e) => {
6441
6444
  t && (e(t), t.children && t.children.forEach((n) => vi(n, e)));
6442
- }, za = (t) => {
6445
+ }, Va = (t) => {
6443
6446
  if (typeof t == "string")
6444
- return nd(t);
6447
+ return La(t);
6445
6448
  if (t == null)
6446
6449
  return Kr([]);
6447
6450
  const {
@@ -6453,18 +6456,18 @@ const td = /* @__PURE__ */ Oe(Qf), Ha = "data-interaction-style", ed = (t) => t.
6453
6456
  } = t.props, { state: a, ...s } = r ?? {}, c = t.props.id, h = t.props[Ha], y = {
6454
6457
  ...Object.keys(s).length > 0 && { style: s },
6455
6458
  ...Object.keys(o).length > 0 && { attrs: o }
6456
- }, l = re(e, y, n.map(za));
6459
+ }, l = re(e, y, n.map(Va));
6457
6460
  return a ? Kr([
6458
- re("style", La({ nodeId: c, interactionId: h, state: a })),
6461
+ re("style", $a({ nodeId: c, interactionId: h, state: a })),
6459
6462
  l
6460
6463
  ]) : l;
6461
- }, Va = (t, e) => {
6462
- const n = $a(t), r = e(n) ?? {};
6464
+ }, Ua = (t, e) => {
6465
+ const n = Ma(t), r = e(n) ?? {};
6463
6466
  return {
6464
6467
  ...t,
6465
- data: Ma(t, r),
6468
+ data: za(t, r),
6466
6469
  children: t.children?.map(
6467
- (i) => Va(i, e)
6470
+ (i) => Ua(i, e)
6468
6471
  )
6469
6472
  };
6470
6473
  }, rd = ({ step: t }) => {
@@ -6495,14 +6498,14 @@ const td = /* @__PURE__ */ Oe(Qf), Ha = "data-interaction-style", ed = (t) => t.
6495
6498
  hook: e.hook
6496
6499
  }, t), od = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6497
6500
  __proto__: null,
6498
- applyOverridesToVnode: Va,
6499
- createStyleState: La,
6500
- createVnodeTree: za,
6501
- findId: $a,
6501
+ applyOverridesToVnode: Ua,
6502
+ createStyleState: $a,
6503
+ createVnodeTree: Va,
6504
+ findId: Ma,
6502
6505
  injectHandlers: id,
6503
- mergeVnodeData: Ma,
6506
+ mergeVnodeData: za,
6504
6507
  traverseTree: vi,
6505
- virtualizeContent: td,
6508
+ virtualizeContent: ed,
6506
6509
  wrapContent: rd
6507
6510
  }, Symbol.toStringTag, { value: "Module" })), go = (t, e) => e.includes(t.data?.attrs?.id) && typeof t.data?.attrs?.tabindex != "string" && typeof t.data?.attrs?.tabIndex != "number", ad = (t) => {
6508
6511
  t.data.attrs.tabindex = 0, t.sel = "button", t.data.style = {
@@ -6963,7 +6966,7 @@ const Cd = ({ addHook: t }) => {
6963
6966
  });
6964
6967
  };
6965
6968
  wt(kd, Cd);
6966
- const Ua = ["top", "right", "bottom", "left"], mo = ["start", "end"], bo = /* @__PURE__ */ Ua.reduce((t, e) => t.concat(e, e + "-" + mo[0], e + "-" + mo[1]), []), wn = Math.min, ze = Math.max, rr = Math.round, he = (t) => ({
6969
+ const Fa = ["top", "right", "bottom", "left"], mo = ["start", "end"], bo = /* @__PURE__ */ Fa.reduce((t, e) => t.concat(e, e + "-" + mo[0], e + "-" + mo[1]), []), wn = Math.min, ze = Math.max, rr = Math.round, he = (t) => ({
6967
6970
  x: t,
6968
6971
  y: t
6969
6972
  }), Rd = {
@@ -6987,7 +6990,7 @@ function Qe(t) {
6987
6990
  function ee(t) {
6988
6991
  return t.split("-")[1];
6989
6992
  }
6990
- function Fa(t) {
6993
+ function Ba(t) {
6991
6994
  return t === "x" ? "y" : "x";
6992
6995
  }
6993
6996
  function gi(t) {
@@ -6997,7 +7000,7 @@ function hr(t) {
6997
7000
  return ["top", "bottom"].includes(Qe(t)) ? "y" : "x";
6998
7001
  }
6999
7002
  function yi(t) {
7000
- return Fa(hr(t));
7003
+ return Ba(hr(t));
7001
7004
  }
7002
7005
  function Nd(t, e, n) {
7003
7006
  n === void 0 && (n = !1);
@@ -7020,7 +7023,7 @@ function jd(t) {
7020
7023
  ...t
7021
7024
  };
7022
7025
  }
7023
- function Ba(t) {
7026
+ function qa(t) {
7024
7027
  return typeof t != "number" ? jd(t) : {
7025
7028
  top: t,
7026
7029
  right: t,
@@ -7171,7 +7174,7 @@ async function or(t, e) {
7171
7174
  elementContext: l = "floating",
7172
7175
  altBoundary: u = !1,
7173
7176
  padding: p = 0
7174
- } = Xe(e, t), d = Ba(p), m = s[u ? l === "floating" ? "reference" : "floating" : l], b = ir(await o.getClippingRect({
7177
+ } = Xe(e, t), d = qa(p), m = s[u ? l === "floating" ? "reference" : "floating" : l], b = ir(await o.getClippingRect({
7175
7178
  element: (n = await (o.isElement == null ? void 0 : o.isElement(m))) == null || n ? m : m.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(s.floating)),
7176
7179
  boundary: h,
7177
7180
  rootBoundary: y,
@@ -7218,7 +7221,7 @@ const Dd = (t) => ({
7218
7221
  } = Xe(t, e) || {};
7219
7222
  if (h == null)
7220
7223
  return {};
7221
- const l = Ba(y), u = {
7224
+ const l = qa(y), u = {
7222
7225
  x: n,
7223
7226
  y: r
7224
7227
  }, p = yi(i), d = gi(p), m = await a.getDimensions(h), b = p === "y", E = b ? "top" : "left", v = b ? "bottom" : "right", w = b ? "clientHeight" : "clientWidth", O = o.reference[d] + o.reference[p] - u[p] - o.floating[d], _ = u[p] - o.reference[p], N = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(h));
@@ -7319,7 +7322,7 @@ function wo(t, e) {
7319
7322
  };
7320
7323
  }
7321
7324
  function So(t) {
7322
- return Ua.some((e) => t[e] >= 0);
7325
+ return Fa.some((e) => t[e] >= 0);
7323
7326
  }
7324
7327
  const $d = function(t) {
7325
7328
  return t === void 0 && (t = {}), {
@@ -7441,7 +7444,7 @@ const zd = function(t) {
7441
7444
  } = Xe(t, e), h = {
7442
7445
  x: n,
7443
7446
  y: r
7444
- }, y = await or(e, c), l = hr(Qe(i)), u = Fa(l);
7447
+ }, y = await or(e, c), l = hr(Qe(i)), u = Ba(l);
7445
7448
  let p = h[u], d = h[l];
7446
7449
  if (o) {
7447
7450
  const b = u === "y" ? "top" : "left", E = u === "y" ? "bottom" : "right", v = p + y[b], w = p - y[E];
@@ -7467,7 +7470,7 @@ const zd = function(t) {
7467
7470
  };
7468
7471
  };
7469
7472
  function tn(t) {
7470
- return qa(t) ? (t.nodeName || "").toLowerCase() : "#document";
7473
+ return Ga(t) ? (t.nodeName || "").toLowerCase() : "#document";
7471
7474
  }
7472
7475
  function jt(t) {
7473
7476
  var e;
@@ -7475,9 +7478,9 @@ function jt(t) {
7475
7478
  }
7476
7479
  function ge(t) {
7477
7480
  var e;
7478
- return (e = (qa(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
7481
+ return (e = (Ga(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
7479
7482
  }
7480
- function qa(t) {
7483
+ function Ga(t) {
7481
7484
  return t instanceof Node || t instanceof jt(t).Node;
7482
7485
  }
7483
7486
  function Ut(t) {
@@ -7555,14 +7558,14 @@ function ve(t) {
7555
7558
  );
7556
7559
  return _o(e) ? e.host : e;
7557
7560
  }
7558
- function Ga(t) {
7561
+ function Ja(t) {
7559
7562
  const e = ve(t);
7560
- return Ze(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : Jt(e) && Tn(e) ? e : Ga(e);
7563
+ return Ze(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : Jt(e) && Tn(e) ? e : Ja(e);
7561
7564
  }
7562
7565
  function ar(t, e, n) {
7563
7566
  var r;
7564
7567
  e === void 0 && (e = []), n === void 0 && (n = !0);
7565
- const i = Ga(t), o = i === ((r = t.ownerDocument) == null ? void 0 : r.body), a = jt(i);
7568
+ const i = Ja(t), o = i === ((r = t.ownerDocument) == null ? void 0 : r.body), a = jt(i);
7566
7569
  if (o) {
7567
7570
  const s = Wr(a);
7568
7571
  return e.concat(a, a.visualViewport || [], Tn(i) ? i : [], s && n ? ar(s) : []);
@@ -7572,7 +7575,7 @@ function ar(t, e, n) {
7572
7575
  function Wr(t) {
7573
7576
  return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
7574
7577
  }
7575
- function Ja(t) {
7578
+ function Ka(t) {
7576
7579
  const e = Ft(t);
7577
7580
  let n = parseFloat(e.width) || 0, r = parseFloat(e.height) || 0;
7578
7581
  const i = Jt(t), o = i ? t.offsetWidth : n, a = i ? t.offsetHeight : r, s = rr(n) !== o || rr(r) !== a;
@@ -7582,18 +7585,18 @@ function Ja(t) {
7582
7585
  $: s
7583
7586
  };
7584
7587
  }
7585
- function Ka(t) {
7588
+ function Za(t) {
7586
7589
  return Ut(t) ? t : t.contextElement;
7587
7590
  }
7588
7591
  function Ve(t) {
7589
- const e = Ka(t);
7592
+ const e = Za(t);
7590
7593
  if (!Jt(e))
7591
7594
  return he(1);
7592
7595
  const n = e.getBoundingClientRect(), {
7593
7596
  width: r,
7594
7597
  height: i,
7595
7598
  $: o
7596
- } = Ja(e);
7599
+ } = Ka(e);
7597
7600
  let a = (o ? rr(n.width) : n.width) / r, s = (o ? rr(n.height) : n.height) / i;
7598
7601
  return (!a || !Number.isFinite(a)) && (a = 1), (!s || !Number.isFinite(s)) && (s = 1), {
7599
7602
  x: a,
@@ -7601,7 +7604,7 @@ function Ve(t) {
7601
7604
  };
7602
7605
  }
7603
7606
  const Bd = /* @__PURE__ */ he(0);
7604
- function Za(t) {
7607
+ function Ya(t) {
7605
7608
  const e = jt(t);
7606
7609
  return !bi() || !e.visualViewport ? Bd : {
7607
7610
  x: e.visualViewport.offsetLeft,
@@ -7613,10 +7616,10 @@ function qd(t, e, n) {
7613
7616
  }
7614
7617
  function Sn(t, e, n, r) {
7615
7618
  e === void 0 && (e = !1), n === void 0 && (n = !1);
7616
- const i = t.getBoundingClientRect(), o = Ka(t);
7619
+ const i = t.getBoundingClientRect(), o = Za(t);
7617
7620
  let a = he(1);
7618
7621
  e && (r ? Ut(r) && (a = Ve(r)) : a = Ve(t));
7619
- const s = qd(o, n, r) ? Za(o) : he(0);
7622
+ const s = qd(o, n, r) ? Ya(o) : he(0);
7620
7623
  let c = (i.left + s.x) / a.x, h = (i.top + s.y) / a.y, y = i.width / a.x, l = i.height / a.y;
7621
7624
  if (o) {
7622
7625
  const u = jt(o), p = r && Ut(r) ? jt(r) : r;
@@ -7662,12 +7665,12 @@ function Gd(t) {
7662
7665
  function Jd(t) {
7663
7666
  return Array.from(t.getClientRects());
7664
7667
  }
7665
- function Ya(t) {
7668
+ function Wa(t) {
7666
7669
  return Sn(ge(t)).left + gr(t).scrollLeft;
7667
7670
  }
7668
7671
  function Kd(t) {
7669
7672
  const e = ge(t), n = gr(t), r = t.ownerDocument.body, i = ze(e.scrollWidth, e.clientWidth, r.scrollWidth, r.clientWidth), o = ze(e.scrollHeight, e.clientHeight, r.scrollHeight, r.clientHeight);
7670
- let a = -n.scrollLeft + Ya(t);
7673
+ let a = -n.scrollLeft + Wa(t);
7671
7674
  const s = -n.scrollTop;
7672
7675
  return Ft(r).direction === "rtl" && (a += ze(e.clientWidth, r.clientWidth) - i), {
7673
7676
  width: i,
@@ -7709,7 +7712,7 @@ function To(t, e, n) {
7709
7712
  else if (Ut(e))
7710
7713
  r = Yd(e, n);
7711
7714
  else {
7712
- const i = Za(t);
7715
+ const i = Ya(t);
7713
7716
  r = {
7714
7717
  ...e,
7715
7718
  x: e.x - i.x,
@@ -7718,9 +7721,9 @@ function To(t, e, n) {
7718
7721
  }
7719
7722
  return ir(r);
7720
7723
  }
7721
- function Wa(t, e) {
7724
+ function Xa(t, e) {
7722
7725
  const n = ve(t);
7723
- return n === e || !Ut(n) || Ze(n) ? !1 : Ft(n).position === "fixed" || Wa(n, e);
7726
+ return n === e || !Ut(n) || Ze(n) ? !1 : Ft(n).position === "fixed" || Xa(n, e);
7724
7727
  }
7725
7728
  function Wd(t, e) {
7726
7729
  const n = e.get(t);
@@ -7731,7 +7734,7 @@ function Wd(t, e) {
7731
7734
  let a = o ? ve(t) : t;
7732
7735
  for (; Ut(a) && !Ze(a); ) {
7733
7736
  const s = Ft(a), c = mi(a);
7734
- !c && s.position === "fixed" && (i = null), (o ? !c && !i : !c && s.position === "static" && i && ["absolute", "fixed"].includes(i.position) || Tn(a) && !c && Wa(t, a)) ? r = r.filter((h) => h !== a) : i = s, a = ve(a);
7737
+ !c && s.position === "fixed" && (i = null), (o ? !c && !i : !c && s.position === "static" && i && ["absolute", "fixed"].includes(i.position) || Tn(a) && !c && Xa(t, a)) ? r = r.filter((h) => h !== a) : i = s, a = ve(a);
7735
7738
  }
7736
7739
  return e.set(t, r), r;
7737
7740
  }
@@ -7757,7 +7760,7 @@ function Qd(t) {
7757
7760
  const {
7758
7761
  width: e,
7759
7762
  height: n
7760
- } = Ja(t);
7763
+ } = Ka(t);
7761
7764
  return {
7762
7765
  width: e,
7763
7766
  height: n
@@ -7774,7 +7777,7 @@ function tp(t, e, n) {
7774
7777
  if ((tn(e) !== "body" || Tn(i)) && (s = gr(e)), r) {
7775
7778
  const l = Sn(e, !0, o, e);
7776
7779
  c.x = l.x + e.clientLeft, c.y = l.y + e.clientTop;
7777
- } else i && (c.x = Ya(i));
7780
+ } else i && (c.x = Wa(i));
7778
7781
  const h = a.left + s.scrollLeft - c.x, y = a.top + s.scrollTop - c.y;
7779
7782
  return {
7780
7783
  x: h,
@@ -7789,7 +7792,7 @@ function Cr(t) {
7789
7792
  function ko(t, e) {
7790
7793
  return !Jt(t) || Ft(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
7791
7794
  }
7792
- function Xa(t, e) {
7795
+ function Qa(t, e) {
7793
7796
  const n = jt(t);
7794
7797
  if (vr(t))
7795
7798
  return n;
@@ -7808,7 +7811,7 @@ function Xa(t, e) {
7808
7811
  return r && Ze(r) && Cr(r) && !mi(r) ? n : r || Fd(t) || n;
7809
7812
  }
7810
7813
  const ep = async function(t) {
7811
- const e = this.getOffsetParent || Xa, n = this.getDimensions, r = await n(t.floating);
7814
+ const e = this.getOffsetParent || Qa, n = this.getDimensions, r = await n(t.floating);
7812
7815
  return {
7813
7816
  reference: tp(t.reference, await e(t.floating), t.strategy),
7814
7817
  floating: {
@@ -7826,7 +7829,7 @@ const rp = {
7826
7829
  convertOffsetParentRelativeRectToViewportRelativeRect: Gd,
7827
7830
  getDocumentElement: ge,
7828
7831
  getClippingRect: Xd,
7829
- getOffsetParent: Xa,
7832
+ getOffsetParent: Qa,
7830
7833
  getElementRects: ep,
7831
7834
  getClientRects: Jd,
7832
7835
  getDimensions: Qd,
@@ -7928,7 +7931,7 @@ function lp() {
7928
7931
  return Rr = b, Rr;
7929
7932
  }
7930
7933
  var fp = lp();
7931
- const Qa = /* @__PURE__ */ Oe(fp);
7934
+ const ts = /* @__PURE__ */ Oe(fp);
7932
7935
  var Ar, Co;
7933
7936
  function dp() {
7934
7937
  if (Co) return Ar;
@@ -8163,7 +8166,7 @@ function dp() {
8163
8166
  return Ar = cn, Ar;
8164
8167
  }
8165
8168
  var pp = dp();
8166
- const hp = /* @__PURE__ */ Oe(pp), ts = 10, vp = 12, gp = (t, e, n, r) => {
8169
+ const hp = /* @__PURE__ */ Oe(pp), es = 10, vp = 12, gp = (t, e, n, r) => {
8167
8170
  const { staticSide: i, offset: o, rotation: a, shadowOpacity: s } = {
8168
8171
  top: {
8169
8172
  staticSide: "bottom",
@@ -8206,7 +8209,7 @@ const hp = /* @__PURE__ */ Oe(pp), ts = 10, vp = 12, gp = (t, e, n, r) => {
8206
8209
  ({ config: r, type: i }) => i === "@appcues/overlay" && n === r.rootId
8207
8210
  );
8208
8211
  }, yp = (t, e) => {
8209
- const n = ts + vp / 2;
8212
+ const n = es + vp / 2;
8210
8213
  return e.includes("start") ? t - n : t + n;
8211
8214
  }, mp = ({
8212
8215
  placementUnit: t,
@@ -8243,11 +8246,11 @@ function Ao(t) {
8243
8246
  function No(t) {
8244
8247
  return t.display === "flex" || t.display === "inline-flex";
8245
8248
  }
8246
- function es(t, e, n, r, i) {
8249
+ function ns(t, e, n, r, i) {
8247
8250
  let o = i, a = e.zIndex;
8248
8251
  const s = e.position, c = t.parentElement, h = c ? r.getComputedStyle(c) : {};
8249
8252
  if (a !== "" && a !== "auto" && !Ao(s) && !No(h) && (a = "auto"), (!o || a !== "" && a !== "auto" && (Ao(s) || No(h))) && (o = a), c && c !== n.body && c !== n.documentElement)
8250
- return es(c, h, n, r, o);
8253
+ return ns(c, h, n, r, o);
8251
8254
  if (/^\d+$/.test(o)) {
8252
8255
  let y = Number.parseInt(o, 10);
8253
8256
  y += 1, o = y;
@@ -8256,7 +8259,7 @@ function es(t, e, n, r, i) {
8256
8259
  }
8257
8260
  const bp = (t) => {
8258
8261
  const e = t.ownerDocument || document, n = e.defaultView || window, r = n.getComputedStyle(t);
8259
- return es(t, r, e, n);
8262
+ return ns(t, r, e, n);
8260
8263
  }, Ep = ({
8261
8264
  targetEl: t,
8262
8265
  rootStyle: e,
@@ -8341,7 +8344,7 @@ const bp = (t) => {
8341
8344
  function c() {
8342
8345
  t();
8343
8346
  }
8344
- const h = Qa(c, 100);
8347
+ const h = ts(c, 100);
8345
8348
  function y() {
8346
8349
  const l = e.getBoundingClientRect();
8347
8350
  s && (l.x !== s.x || l.y !== s.y || l.width !== s.width || l.height !== s.height) && h(), s = l;
@@ -8409,7 +8412,7 @@ const bp = (t) => {
8409
8412
  op({
8410
8413
  crossAxis: !0
8411
8414
  })
8412
- ), at && q.push(cp({ element: at, padding: ts })), q.push(sp());
8415
+ ), at && q.push(cp({ element: at, padding: es })), q.push(sp());
8413
8416
  const {
8414
8417
  middlewareData: W,
8415
8418
  strategy: _t,
@@ -8582,7 +8585,7 @@ function jp({ addHook: t }) {
8582
8585
  if (b) {
8583
8586
  j.position = "sticky";
8584
8587
  const $ = y.includes("left") ? "top" : "bottom";
8585
- j[$] = 0, j.zIndex = Zu;
8588
+ j[$] = 0, j.zIndex = Yu;
8586
8589
  }
8587
8590
  s(j), R();
8588
8591
  return;
@@ -8623,10 +8626,10 @@ const Pp = (t, e, n) => {
8623
8626
  start: () => {
8624
8627
  t.addEventListener("click", e, !0), t.addEventListener("keydown", e);
8625
8628
  }
8626
- }), Ir = (t, e, n) => e.length === 0 ? (n("Element not found"), !1) : e.length > 1 ? (n(`More than one element found with id: ${t}`), !1) : !0, $p = "@appcues/toggle.style", ns = ({ targetId: t, styles: e = {} }, { updateStyle: n }) => {
8629
+ }), Ir = (t, e, n) => e.length === 0 ? (n("Element not found"), !1) : e.length > 1 ? (n(`More than one element found with id: ${t}`), !1) : !0, $p = "@appcues/toggle.style", rs = ({ targetId: t, styles: e = {} }, { updateStyle: n }) => {
8627
8630
  n(t, e);
8628
8631
  }, Io = {
8629
- [$p]: ns
8632
+ [$p]: rs
8630
8633
  }, Mp = ({ addHook: t, registerAction: e }, {
8631
8634
  startHidden: n = !0,
8632
8635
  targetId: r,
@@ -8692,7 +8695,7 @@ const Pp = (t, e, n) => {
8692
8695
  ["a", "button"].includes(R[0].tagName.toLowerCase()) && d({ on: b }, E);
8693
8696
  }, u = Nr(_[0], c), u.start()), a && !y) {
8694
8697
  const k = Dp(_[0], a);
8695
- s = Qa((R) => {
8698
+ s = ts((R) => {
8696
8699
  Pp(
8697
8700
  _[0],
8698
8701
  R.clientX,
@@ -8710,7 +8713,7 @@ const Pp = (t, e, n) => {
8710
8713
  }
8711
8714
  d({ on: b }, E);
8712
8715
  }
8713
- }), e("open", m), e("close", d), e("style", ns);
8716
+ }), e("open", m), e("close", d), e("style", rs);
8714
8717
  }, zp = "@appcues/toggle";
8715
8718
  wt(zp, Mp);
8716
8719
  const Vp = "@appcues/coreEvents", Up = ({ registerAction: t }) => {
@@ -8848,12 +8851,12 @@ const Gp = {
8848
8851
  });
8849
8852
  };
8850
8853
  wt(Jp, Yp);
8851
- const rs = {
8854
+ const is = {
8852
8855
  pixels: "px",
8853
8856
  percentage: "%"
8854
8857
  };
8855
8858
  function Wp(t, e, n, r) {
8856
- const i = rs[n] || "px";
8859
+ const i = is[n] || "px";
8857
8860
  switch (t) {
8858
8861
  case "left":
8859
8862
  return {
@@ -8883,7 +8886,7 @@ function Wp(t, e, n, r) {
8883
8886
  }
8884
8887
  }
8885
8888
  function Xp(t, e, n, r) {
8886
- const i = rs[n] || "px";
8889
+ const i = is[n] || "px";
8887
8890
  switch (t) {
8888
8891
  case "top":
8889
8892
  return {
@@ -9121,7 +9124,7 @@ function kh({
9121
9124
  },
9122
9125
  updateUserProfile: i = () => {
9123
9126
  },
9124
- createRenderListener: o = Gf,
9127
+ createRenderListener: o = Jf,
9125
9128
  vNodeHandlers: a = od,
9126
9129
  accessibilityHandlers: s = cd
9127
9130
  }) {
@@ -9149,7 +9152,7 @@ function kh({
9149
9152
  registerTrait: wt,
9150
9153
  show: async (p) => {
9151
9154
  await window.customElements.whenDefined(er);
9152
- const d = t.get(p.id)?.experienceService ?? Qo(Bf(p, y), {
9155
+ const d = t.get(p.id)?.experienceService ?? Qo(qf(p, y), {
9153
9156
  devTools: Th
9154
9157
  }).start();
9155
9158
  d.send({