@appcues/web-sdk 7.24.1 → 7.24.4

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 +18 -0
  2. package/build/{bootstrap.npm.DOAXwcKF.js → bootstrap.npm.CiSiv5u_.js} +26 -16
  3. package/build/index.npm.js +1 -1
  4. package/build/{open-builder.D0GqutyR.js → open-builder.D24FICI0.js} +768 -760
  5. package/build/sagas/sagas.d.ts.map +1 -1
  6. package/build/views/components/modal-step.d.ts.map +1 -1
  7. package/package.json +1 -1
  8. /package/build/{checklist.337650133924744b50ef043c4a91c308ad019cdb.css → checklist.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css} +0 -0
  9. /package/build/{container.337650133924744b50ef043c4a91c308ad019cdb.css → container.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css} +0 -0
  10. /package/build/{debugger.337650133924744b50ef043c4a91c308ad019cdb.css → debugger.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css} +0 -0
  11. /package/build/{modal-step-legacy-render.337650133924744b50ef043c4a91c308ad019cdb.css → modal-step-legacy-render.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css} +0 -0
  12. /package/build/{modal.337650133924744b50ef043c4a91c308ad019cdb.css → modal.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css} +0 -0
  13. /package/build/{satisfaction-survey.337650133924744b50ef043c4a91c308ad019cdb.css → satisfaction-survey.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css} +0 -0
  14. /package/build/{test-mode.337650133924744b50ef043c4a91c308ad019cdb.css → test-mode.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css} +0 -0
  15. /package/build/{tooltip.337650133924744b50ef043c4a91c308ad019cdb.css → tooltip.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css} +0 -0
@@ -71,12 +71,12 @@ var y = _.Start, b = _.Stop, x = _.Raise, S = _.Send, C = _.Cancel, w = _.NullEv
71
71
  _.After, _.DoneState;
72
72
  var E = _.Log, D = _.Init, O = _.Invoke;
73
73
  _.ErrorExecution;
74
- var k = _.ErrorPlatform, A = _.ErrorCustom, j = _.Update, M = _.Choose, N = _.Pure, P = {}, F = "xstate.guard", I;
75
- function ee(e, t, n) {
74
+ var k = _.ErrorPlatform, A = _.ErrorCustom, j = _.Update, M = _.Choose, N = _.Pure, P = {}, ee = "xstate.guard", F;
75
+ function I(e, t, n) {
76
76
  n === void 0 && (n = ".");
77
77
  var r = B(e, n), i = B(t, n);
78
78
  return G(i) ? G(r) ? i === r : !1 : G(r) ? r in i : Object.keys(r).every(function(e) {
79
- return e in i ? ee(r[e], i[e]) : !1;
79
+ return e in i ? I(r[e], i[e]) : !1;
80
80
  });
81
81
  }
82
82
  function L(e) {
@@ -287,11 +287,11 @@ function G(e) {
287
287
  }
288
288
  function ge(e, t) {
289
289
  if (e) return G(e) ? {
290
- type: F,
290
+ type: ee,
291
291
  name: e,
292
292
  predicate: t ? t[e] : void 0
293
293
  } : W(e) ? {
294
- type: F,
294
+ type: ee,
295
295
  name: e.name,
296
296
  predicate: e
297
297
  } : e;
@@ -303,32 +303,32 @@ function _e(e) {
303
303
  return !1;
304
304
  }
305
305
  }
306
- var ve = /* @__PURE__ */ function() {
306
+ var K = /* @__PURE__ */ function() {
307
307
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
308
308
  }();
309
- I = {}, I[ve] = function() {
309
+ F = {}, F[K] = function() {
310
310
  return this;
311
- }, I[Symbol.observable] = function() {
311
+ }, F[Symbol.observable] = function() {
312
312
  return this;
313
313
  };
314
- function ye(e) {
314
+ function ve(e) {
315
315
  return !!e && "__xstatenode" in e;
316
316
  }
317
- function K(e) {
317
+ function q(e) {
318
318
  return !!e && typeof e.send == "function";
319
319
  }
320
- var be = /* @__PURE__ */ function() {
320
+ var ye = /* @__PURE__ */ function() {
321
321
  var e = 0;
322
322
  return function() {
323
323
  return e++, e.toString(16);
324
324
  };
325
325
  }();
326
- function xe(e, t) {
326
+ function be(e, t) {
327
327
  return G(e) || typeof e == "number" ? f({ type: e }, t) : e;
328
328
  }
329
- function q(e, t) {
329
+ function J(e, t) {
330
330
  if (!G(e) && "$$type" in e && e.$$type === "scxml") return e;
331
- var n = xe(e);
331
+ var n = be(e);
332
332
  return f({
333
333
  name: n.type,
334
334
  data: n,
@@ -336,18 +336,18 @@ function q(e, t) {
336
336
  type: "external"
337
337
  }, t);
338
338
  }
339
- function Se(e, t) {
339
+ function xe(e, t) {
340
340
  return oe(t).map(function(t) {
341
- return t === void 0 || typeof t == "string" || ye(t) ? {
341
+ return t === void 0 || typeof t == "string" || ve(t) ? {
342
342
  target: t,
343
343
  event: e
344
344
  } : f(f({}, t), { event: e });
345
345
  });
346
346
  }
347
- function Ce(e) {
347
+ function Se(e) {
348
348
  if (!(e === void 0 || e === "")) return U(e);
349
349
  }
350
- function we(e, t, n, r, i) {
350
+ function Ce(e, t, n, r, i) {
351
351
  var a = e.options.guards, o = {
352
352
  state: i,
353
353
  cond: t,
@@ -358,10 +358,10 @@ function we(e, t, n, r, i) {
358
358
  if (!s) throw Error(`Guard '${t.type}' is not implemented on machine '${e.id}'.`);
359
359
  return s(n, r.data, o);
360
360
  }
361
- function Te(e) {
361
+ function we(e) {
362
362
  return typeof e == "string" ? { type: e } : e;
363
363
  }
364
- function Ee(e, t, n) {
364
+ function Te(e, t, n) {
365
365
  if (typeof e == "object") return e;
366
366
  var r = function() {};
367
367
  return {
@@ -370,17 +370,17 @@ function Ee(e, t, n) {
370
370
  complete: n || r
371
371
  };
372
372
  }
373
- function De(e, t) {
373
+ function Ee(e, t) {
374
374
  return `${e}:invocation[${t}]`;
375
375
  }
376
- var Oe = /* @__PURE__ */ q({ type: D });
377
- function ke(e, t) {
376
+ var De = /* @__PURE__ */ J({ type: D });
377
+ function Oe(e, t) {
378
378
  return t && t[e] || void 0;
379
379
  }
380
- function Ae(e, t) {
380
+ function ke(e, t) {
381
381
  var n;
382
382
  if (G(e) || typeof e == "number") {
383
- var r = ke(e, t);
383
+ var r = Oe(e, t);
384
384
  n = W(r) ? {
385
385
  type: e,
386
386
  exec: r
@@ -393,7 +393,7 @@ function Ae(e, t) {
393
393
  exec: e
394
394
  };
395
395
  else {
396
- var r = ke(e.type, t);
396
+ var r = Oe(e.type, t);
397
397
  if (W(r)) n = f(f({}, e), { exec: r });
398
398
  else if (r) {
399
399
  var i = r.type || e.type;
@@ -402,38 +402,38 @@ function Ae(e, t) {
402
402
  }
403
403
  return n;
404
404
  }
405
- var je = function(e, t) {
405
+ var Ae = function(e, t) {
406
406
  return e ? (he(e) ? e : [e]).map(function(e) {
407
- return Ae(e, t);
407
+ return ke(e, t);
408
408
  }) : [];
409
409
  };
410
- function Me(e) {
411
- var t = Ae(e);
410
+ function je(e) {
411
+ var t = ke(e);
412
412
  return f(f({ id: G(e) ? e : t.id }, t), { type: t.type });
413
413
  }
414
- function Ne(e) {
414
+ function Me(e) {
415
415
  return G(e) ? {
416
416
  type: x,
417
417
  event: e
418
- } : Fe(e, { to: v.Internal });
418
+ } : Pe(e, { to: v.Internal });
419
419
  }
420
- function Pe(e) {
420
+ function Ne(e) {
421
421
  return {
422
422
  type: x,
423
- _event: q(e.event)
423
+ _event: J(e.event)
424
424
  };
425
425
  }
426
- function Fe(e, t) {
426
+ function Pe(e, t) {
427
427
  return {
428
428
  to: t ? t.to : void 0,
429
429
  type: S,
430
- event: W(e) ? e : xe(e),
430
+ event: W(e) ? e : be(e),
431
431
  delay: t ? t.delay : void 0,
432
432
  id: t && t.id !== void 0 ? t.id : W(e) ? e.name : L(e)
433
433
  };
434
434
  }
435
- function Ie(e, t, n, r) {
436
- var i = { _event: n }, a = q(W(e.event) ? e.event(t, n.data, i) : e.event), o;
435
+ function Fe(e, t, n, r) {
436
+ var i = { _event: n }, a = J(W(e.event) ? e.event(t, n.data, i) : e.event), o;
437
437
  if (G(e.delay)) {
438
438
  var s = r && r[e.delay];
439
439
  o = W(s) ? s(t, n.data, i) : s;
@@ -446,51 +446,51 @@ function Ie(e, t, n, r) {
446
446
  delay: o
447
447
  });
448
448
  }
449
- function Le(e, t) {
450
- return Fe(e, f(f({}, t), { to: v.Parent }));
449
+ function Ie(e, t) {
450
+ return Pe(e, f(f({}, t), { to: v.Parent }));
451
451
  }
452
- var Re = function(e, t, n) {
452
+ var Le = function(e, t, n) {
453
453
  return f(f({}, e), { value: G(e.expr) ? e.expr : e.expr(t, n.data, { _event: n }) });
454
- }, ze = function(e) {
454
+ }, Re = function(e) {
455
455
  return {
456
456
  type: C,
457
457
  sendId: e
458
458
  };
459
459
  };
460
- function Be(e) {
461
- var t = Me(e);
460
+ function ze(e) {
461
+ var t = je(e);
462
462
  return {
463
463
  type: _.Start,
464
464
  activity: t,
465
465
  exec: void 0
466
466
  };
467
467
  }
468
- function Ve(e) {
469
- var t = W(e) ? e : Me(e);
468
+ function Be(e) {
469
+ var t = W(e) ? e : je(e);
470
470
  return {
471
471
  type: _.Stop,
472
472
  activity: t,
473
473
  exec: void 0
474
474
  };
475
475
  }
476
- function He(e, t, n) {
476
+ function Ve(e, t, n) {
477
477
  var r = W(e.activity) ? e.activity(t, n.data) : e.activity, i = typeof r == "string" ? { id: r } : r;
478
478
  return {
479
479
  type: _.Stop,
480
480
  activity: i
481
481
  };
482
482
  }
483
- var Ue = function(e) {
483
+ var He = function(e) {
484
484
  return {
485
485
  type: T,
486
486
  assignment: e
487
487
  };
488
488
  };
489
- function We(e, t) {
489
+ function Ue(e, t) {
490
490
  var n = t ? `#${t}` : "";
491
491
  return `${_.After}(${e})${n}`;
492
492
  }
493
- function Ge(e, t) {
493
+ function We(e, t) {
494
494
  var n = `${_.DoneState}.${e}`, r = {
495
495
  type: n,
496
496
  data: t
@@ -499,7 +499,7 @@ function Ge(e, t) {
499
499
  return n;
500
500
  }, r;
501
501
  }
502
- function Ke(e, t) {
502
+ function Ge(e, t) {
503
503
  var n = `${_.DoneInvoke}.${e}`, r = {
504
504
  type: n,
505
505
  data: t
@@ -508,7 +508,7 @@ function Ke(e, t) {
508
508
  return n;
509
509
  }, r;
510
510
  }
511
- function qe(e, t) {
511
+ function Ke(e, t) {
512
512
  var n = `${_.ErrorPlatform}.${e}`, r = {
513
513
  type: n,
514
514
  data: t
@@ -517,52 +517,52 @@ function qe(e, t) {
517
517
  return n;
518
518
  }, r;
519
519
  }
520
- function Je(e) {
520
+ function qe(e) {
521
521
  return {
522
522
  type: _.Pure,
523
523
  get: e
524
524
  };
525
525
  }
526
- function Ye(e, t) {
527
- return Fe(function(e, t) {
526
+ function Je(e, t) {
527
+ return Pe(function(e, t) {
528
528
  return t;
529
529
  }, f(f({}, t), { to: e }));
530
530
  }
531
- function Xe(e) {
531
+ function Ye(e) {
532
532
  return {
533
533
  type: _.Choose,
534
534
  conds: e
535
535
  };
536
536
  }
537
- function Ze(e, t, n, r, i, a) {
537
+ function Xe(e, t, n, r, i, a) {
538
538
  a === void 0 && (a = !1);
539
539
  var o = h(a ? [[], i] : de(i, function(e) {
540
540
  return e.type === T;
541
541
  }), 2), s = o[0], c = o[1], l = s.length ? me(n, r, s, t) : n, u = a ? [n] : void 0;
542
542
  return [H(c.map(function(n) {
543
543
  switch (n.type) {
544
- case x: return Pe(n);
545
- case S: return Ie(n, l, r, e.options.delays);
546
- case E: return Re(n, l, r);
544
+ case x: return Ne(n);
545
+ case S: return Fe(n, l, r, e.options.delays);
546
+ case E: return Le(n, l, r);
547
547
  case M:
548
548
  var i = n.conds.find(function(n) {
549
549
  var i = ge(n.cond, e.options.guards);
550
- return !i || we(e, i, l, r, t);
550
+ return !i || Ce(e, i, l, r, t);
551
551
  })?.actions;
552
552
  if (!i) return [];
553
- var o = h(Ze(e, t, l, r, je(U(i), e.options.actions), a), 2), s = o[0];
553
+ var o = h(Xe(e, t, l, r, Ae(U(i), e.options.actions), a), 2), s = o[0];
554
554
  return l = o[1], u?.push(l), s;
555
555
  case N:
556
556
  var i = n.get(l, r.data);
557
557
  if (!i) return [];
558
- var c = h(Ze(e, t, l, r, je(U(i), e.options.actions), a), 2), d = c[0];
558
+ var c = h(Xe(e, t, l, r, Ae(U(i), e.options.actions), a), 2), d = c[0];
559
559
  return l = c[1], u?.push(l), d;
560
- case b: return He(n, l, r);
560
+ case b: return Ve(n, l, r);
561
561
  case T:
562
562
  l = me(l, r, [n], t), u?.push(l);
563
563
  break;
564
564
  default:
565
- var p = Ae(n, e.options.actions), m = p.exec;
565
+ var p = ke(n, e.options.actions), m = p.exec;
566
566
  if (m && u) {
567
567
  var _ = u.length - 1;
568
568
  p = f(f({}, p), { exec: function(e) {
@@ -576,14 +576,14 @@ function Ze(e, t, n, r, i, a) {
576
576
  return !!e;
577
577
  })), l];
578
578
  }
579
- var Qe = [], $e = function(e, t) {
580
- Qe.push(e);
579
+ var Ze = [], Qe = function(e, t) {
580
+ Ze.push(e);
581
581
  var n = t(e);
582
- return Qe.pop(), n;
583
- }, et = function(e) {
584
- return e(Qe[Qe.length - 1]);
582
+ return Ze.pop(), n;
583
+ }, $e = function(e) {
584
+ return e(Ze[Ze.length - 1]);
585
585
  };
586
- function tt(e) {
586
+ function et(e) {
587
587
  var t;
588
588
  return t = {
589
589
  id: e,
@@ -595,18 +595,18 @@ function tt(e) {
595
595
  toJSON: function() {
596
596
  return { id: e };
597
597
  }
598
- }, t[ve] = function() {
598
+ }, t[K] = function() {
599
599
  return this;
600
600
  }, t;
601
601
  }
602
- function nt(e, t, n, r) {
603
- var i = Te(e.src), a = t?.options.services?.[i.type], o = e.data ? se(e.data, n, r) : void 0, s = a ? rt(a, e.id, o) : tt(e.id);
602
+ function tt(e, t, n, r) {
603
+ var i = we(e.src), a = t?.options.services?.[i.type], o = e.data ? se(e.data, n, r) : void 0, s = a ? nt(a, e.id, o) : et(e.id);
604
604
  return s.meta = e, s;
605
605
  }
606
- function rt(e, t, n) {
607
- var r = tt(t);
608
- if (r.deferred = !0, ye(e)) {
609
- var i = r.state = $e(void 0, function() {
606
+ function nt(e, t, n) {
607
+ var r = et(t);
608
+ if (r.deferred = !0, ve(e)) {
609
+ var i = r.state = Qe(void 0, function() {
610
610
  return (n ? e.withContext(n) : e).initialState;
611
611
  });
612
612
  r.getSnapshot = function() {
@@ -615,17 +615,17 @@ function rt(e, t, n) {
615
615
  }
616
616
  return r;
617
617
  }
618
- function it(e) {
618
+ function rt(e) {
619
619
  try {
620
620
  return typeof e.send == "function";
621
621
  } catch {
622
622
  return !1;
623
623
  }
624
624
  }
625
- function at(e) {
626
- return it(e) && "id" in e;
625
+ function it(e) {
626
+ return rt(e) && "id" in e;
627
627
  }
628
- function ot(e) {
628
+ function at(e) {
629
629
  var t;
630
630
  return f((t = {
631
631
  subscribe: function() {
@@ -633,26 +633,26 @@ function ot(e) {
633
633
  },
634
634
  id: "anonymous",
635
635
  getSnapshot: function() {}
636
- }, t[ve] = function() {
636
+ }, t[K] = function() {
637
637
  return this;
638
638
  }, t), e);
639
639
  }
640
- var st = function(e) {
640
+ var ot = function(e) {
641
641
  return e.type === "atomic" || e.type === "final";
642
642
  };
643
- function ct(e) {
643
+ function st(e) {
644
644
  return Object.keys(e.states).map(function(t) {
645
645
  return e.states[t];
646
646
  }).filter(function(e) {
647
647
  return e.type !== "history";
648
648
  });
649
649
  }
650
- function lt(e) {
650
+ function ct(e) {
651
651
  var t = [e];
652
- return st(e) ? t : t.concat(H(ct(e).map(lt)));
652
+ return ot(e) ? t : t.concat(H(st(e).map(ct)));
653
653
  }
654
- function ut(e, t) {
655
- var n, r, i, a, o, s, c, l, u = ft(new Set(e)), d = new Set(t);
654
+ function lt(e, t) {
655
+ var n, r, i, a, o, s, c, l, u = dt(new Set(e)), d = new Set(t);
656
656
  try {
657
657
  for (var f = m(d), p = f.next(); !p.done; p = f.next()) for (var h = p.value, g = h.parent; g && !d.has(g);) d.add(g), g = g.parent;
658
658
  } catch (e) {
@@ -664,7 +664,7 @@ function ut(e, t) {
664
664
  if (n) throw n.error;
665
665
  }
666
666
  }
667
- var _ = ft(d);
667
+ var _ = dt(d);
668
668
  try {
669
669
  for (var v = m(d), y = v.next(); !y.done; y = v.next()) {
670
670
  var h = y.value;
@@ -674,7 +674,7 @@ function ut(e, t) {
674
674
  return d.add(e);
675
675
  });
676
676
  else if (h.type === "parallel") try {
677
- for (var b = (o = void 0, m(ct(h))), x = b.next(); !x.done; x = b.next()) {
677
+ for (var b = (o = void 0, m(st(h))), x = b.next(); !x.done; x = b.next()) {
678
678
  var S = x.value;
679
679
  d.has(S) || (d.add(S), u.get(S) ? u.get(S).forEach(function(e) {
680
680
  return d.add(e);
@@ -714,21 +714,21 @@ function ut(e, t) {
714
714
  }
715
715
  return d;
716
716
  }
717
- function dt(e, t) {
717
+ function ut(e, t) {
718
718
  var n = t.get(e);
719
719
  if (!n) return {};
720
720
  if (e.type === "compound") {
721
721
  var r = n[0];
722
722
  if (r) {
723
- if (st(r)) return r.key;
723
+ if (ot(r)) return r.key;
724
724
  } else return {};
725
725
  }
726
726
  var i = {};
727
727
  return n.forEach(function(e) {
728
- i[e.key] = dt(e, t);
728
+ i[e.key] = ut(e, t);
729
729
  }), i;
730
730
  }
731
- function ft(e) {
731
+ function dt(e) {
732
732
  var t, n, r = /* @__PURE__ */ new Map();
733
733
  try {
734
734
  for (var i = m(e), a = i.next(); !a.done; a = i.next()) {
@@ -746,49 +746,49 @@ function ft(e) {
746
746
  }
747
747
  return r;
748
748
  }
749
- function pt(e, t) {
750
- return dt(e, ft(ut([e], t)));
749
+ function ft(e, t) {
750
+ return ut(e, dt(lt([e], t)));
751
751
  }
752
- function mt(e, t) {
752
+ function pt(e, t) {
753
753
  return Array.isArray(e) ? e.some(function(e) {
754
754
  return e === t;
755
755
  }) : e instanceof Set ? e.has(t) : !1;
756
756
  }
757
- function ht(e) {
757
+ function mt(e) {
758
758
  return g([], h(new Set(H(g([], h(e.map(function(e) {
759
759
  return e.ownEvents;
760
760
  })), !1)))), !1);
761
761
  }
762
- function gt(e, t) {
763
- return t.type === "compound" ? ct(t).some(function(t) {
764
- return t.type === "final" && mt(e, t);
765
- }) : t.type === "parallel" ? ct(t).every(function(t) {
766
- return gt(e, t);
762
+ function ht(e, t) {
763
+ return t.type === "compound" ? st(t).some(function(t) {
764
+ return t.type === "final" && pt(e, t);
765
+ }) : t.type === "parallel" ? st(t).every(function(t) {
766
+ return ht(e, t);
767
767
  }) : !1;
768
768
  }
769
- function _t(e) {
769
+ function gt(e) {
770
770
  return e === void 0 && (e = []), e.reduce(function(e, t) {
771
771
  return t.meta !== void 0 && (e[t.id] = t.meta), e;
772
772
  }, {});
773
773
  }
774
- function vt(e) {
774
+ function _t(e) {
775
775
  return new Set(H(e.map(function(e) {
776
776
  return e.tags;
777
777
  })));
778
778
  }
779
- function yt(e, t) {
779
+ function vt(e, t) {
780
780
  if (e === t) return !0;
781
781
  if (e === void 0 || t === void 0) return !1;
782
782
  if (G(e) || G(t)) return e === t;
783
783
  var n = Object.keys(e), r = Object.keys(t);
784
784
  return n.length === r.length && n.every(function(n) {
785
- return yt(e[n], t[n]);
785
+ return vt(e[n], t[n]);
786
786
  });
787
787
  }
788
- function bt(e) {
788
+ function yt(e) {
789
789
  return typeof e != "object" || !e ? !1 : "value" in e && "_event" in e;
790
790
  }
791
- function xt(e, t) {
791
+ function bt(e, t) {
792
792
  var n = e.exec;
793
793
  return f(f({}, e), { exec: n === void 0 ? void 0 : function() {
794
794
  return n(t.context, t.event, {
@@ -798,11 +798,11 @@ function xt(e, t) {
798
798
  });
799
799
  } });
800
800
  }
801
- var St = /* @__PURE__ */ function() {
801
+ var xt = /* @__PURE__ */ function() {
802
802
  function e(e) {
803
803
  var t = this;
804
- this.actions = [], this.activities = P, 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 || P, this.meta = _t(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 = (Array.isArray(e.tags) ? new Set(e.tags) : e.tags) ?? /* @__PURE__ */ new Set(), this.machine = e.machine, Object.defineProperty(this, "nextEvents", { get: function() {
805
- return ht(t.configuration);
804
+ this.actions = [], this.activities = P, 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 || P, this.meta = gt(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 = (Array.isArray(e.tags) ? new Set(e.tags) : e.tags) ?? /* @__PURE__ */ new Set(), this.machine = e.machine, Object.defineProperty(this, "nextEvents", { get: function() {
805
+ return mt(t.configuration);
806
806
  } });
807
807
  }
808
808
  return e.from = function(t, n) {
@@ -823,7 +823,7 @@ var St = /* @__PURE__ */ function() {
823
823
  }) : new e({
824
824
  value: t,
825
825
  context: n,
826
- _event: Oe,
826
+ _event: De,
827
827
  _sessionid: null,
828
828
  historyValue: void 0,
829
829
  history: void 0,
@@ -840,7 +840,7 @@ var St = /* @__PURE__ */ function() {
840
840
  }, e.inert = function(t, n) {
841
841
  if (t instanceof e) {
842
842
  if (!t.actions.length) return t;
843
- var r = Oe;
843
+ var r = De;
844
844
  return new e({
845
845
  value: t.value,
846
846
  context: n,
@@ -875,7 +875,7 @@ var St = /* @__PURE__ */ function() {
875
875
  "machine"
876
876
  ])), { tags: Array.from(t) });
877
877
  }, e.prototype.matches = function(e) {
878
- return ee(e, this.value);
878
+ return I(e, this.value);
879
879
  }, e.prototype.hasTag = function(e) {
880
880
  return this.tags.has(e);
881
881
  }, e.prototype.can = function(e) {
@@ -885,9 +885,9 @@ var St = /* @__PURE__ */ function() {
885
885
  return e.target !== void 0 || e.actions.length;
886
886
  });
887
887
  }, e;
888
- }(), Ct = { deferEvents: !1 }, wt = /* @__PURE__ */ function() {
888
+ }(), St = { deferEvents: !1 }, Ct = /* @__PURE__ */ function() {
889
889
  function e(e) {
890
- this.processingEvent = !1, this.queue = [], this.initialized = !1, this.options = f(f({}, Ct), e);
890
+ this.processingEvent = !1, this.queue = [], this.initialized = !1, this.options = f(f({}, St), e);
891
891
  }
892
892
  return e.prototype.initialize = function(e) {
893
893
  if (this.initialized = !0, e) {
@@ -919,37 +919,37 @@ var St = /* @__PURE__ */ function() {
919
919
  this.processingEvent = !1;
920
920
  }
921
921
  }, e;
922
- }(), Tt = /* @__PURE__ */ new Map(), Et = 0, Dt = {
922
+ }(), wt = /* @__PURE__ */ new Map(), Tt = 0, Et = {
923
923
  bookId: function() {
924
- return `x:${Et++}`;
924
+ return `x:${Tt++}`;
925
925
  },
926
926
  register: function(e, t) {
927
- return Tt.set(e, t), e;
927
+ return wt.set(e, t), e;
928
928
  },
929
929
  get: function(e) {
930
- return Tt.get(e);
930
+ return wt.get(e);
931
931
  },
932
932
  free: function(e) {
933
- Tt.delete(e);
933
+ wt.delete(e);
934
934
  }
935
935
  };
936
- function Ot() {
936
+ function Dt() {
937
937
  if (typeof globalThis < "u") return globalThis;
938
938
  if (typeof self < "u") return self;
939
939
  if (typeof window < "u") return window;
940
940
  if (typeof global < "u") return global;
941
941
  }
942
- function kt() {
943
- var e = Ot();
942
+ function Ot() {
943
+ var e = Dt();
944
944
  if (e && "__xstate__" in e) return e.__xstate__;
945
945
  }
946
- function At(e) {
947
- if (Ot()) {
948
- var t = kt();
946
+ function kt(e) {
947
+ if (Dt()) {
948
+ var t = Ot();
949
949
  t && t.register(e);
950
950
  }
951
951
  }
952
- function jt(e, t) {
952
+ function At(e, t) {
953
953
  t === void 0 && (t = {});
954
954
  var n = e.initialState, r = /* @__PURE__ */ new Set(), i = [], a = !1, o = function() {
955
955
  if (!a) {
@@ -961,7 +961,7 @@ function jt(e, t) {
961
961
  }
962
962
  a = !1;
963
963
  }
964
- }, s = ot({
964
+ }, s = at({
965
965
  id: t.id,
966
966
  send: function(e) {
967
967
  i.push(e), o();
@@ -970,7 +970,7 @@ function jt(e, t) {
970
970
  return n;
971
971
  },
972
972
  subscribe: function(e, t, i) {
973
- var a = Ee(e, t, i);
973
+ var a = Te(e, t, i);
974
974
  return r.add(a), a.next(n), { unsubscribe: function() {
975
975
  r.delete(a);
976
976
  } };
@@ -983,21 +983,21 @@ function jt(e, t) {
983
983
  };
984
984
  return n = e.start ? e.start(c) : n, s;
985
985
  }
986
- var Mt = {
986
+ var jt = {
987
987
  sync: !1,
988
988
  autoForward: !1
989
- }, J;
989
+ }, Y;
990
990
  (function(e) {
991
991
  e[e.NotStarted = 0] = "NotStarted", e[e.Running = 1] = "Running", e[e.Stopped = 2] = "Stopped";
992
- })(J ||= {});
993
- var Nt = /* @__PURE__ */ function() {
992
+ })(Y ||= {});
993
+ var Mt = /* @__PURE__ */ function() {
994
994
  function e(t, n) {
995
995
  var r = this;
996
- n === void 0 && (n = e.defaultOptions), this.machine = t, this.delayedEventsMap = {}, this.listeners = /* @__PURE__ */ new Set(), this.contextListeners = /* @__PURE__ */ new Set(), this.stopListeners = /* @__PURE__ */ new Set(), this.doneListeners = /* @__PURE__ */ new Set(), this.eventListeners = /* @__PURE__ */ new Set(), this.sendListeners = /* @__PURE__ */ new Set(), this.initialized = !1, this.status = J.NotStarted, this.children = /* @__PURE__ */ new Map(), this.forwardTo = /* @__PURE__ */ new Set(), this.init = this.start, this.send = function(e, t) {
996
+ n === void 0 && (n = e.defaultOptions), this.machine = t, this.delayedEventsMap = {}, this.listeners = /* @__PURE__ */ new Set(), this.contextListeners = /* @__PURE__ */ new Set(), this.stopListeners = /* @__PURE__ */ new Set(), this.doneListeners = /* @__PURE__ */ new Set(), this.eventListeners = /* @__PURE__ */ new Set(), this.sendListeners = /* @__PURE__ */ new Set(), this.initialized = !1, this.status = Y.NotStarted, this.children = /* @__PURE__ */ new Map(), this.forwardTo = /* @__PURE__ */ new Set(), this.init = this.start, this.send = function(e, t) {
997
997
  if (he(e)) return r.batch(e), r.state;
998
- var n = q(xe(e, t));
999
- if (r.status === J.Stopped) return r.state;
1000
- if (r.status !== J.Running && !r.options.deferEvents) throw Error(`Event "${n.name}" was sent to uninitialized service "${r.machine.id}". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.
998
+ var n = J(be(e, t));
999
+ if (r.status === Y.Stopped) return r.state;
1000
+ if (r.status !== Y.Running && !r.options.deferEvents) throw Error(`Event "${n.name}" was sent to uninitialized service "${r.machine.id}". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.
1001
1001
  Event: ${JSON.stringify(n.data)}`);
1002
1002
  return r.scheduler.schedule(function() {
1003
1003
  r.forward(n);
@@ -1005,23 +1005,23 @@ Event: ${JSON.stringify(n.data)}`);
1005
1005
  r.update(e, n);
1006
1006
  }), r._state;
1007
1007
  }, this.sendTo = function(e, t) {
1008
- var n = r.parent && (t === v.Parent || r.parent.id === t), i = n ? r.parent : G(t) ? r.children.get(t) || Dt.get(t) : K(t) ? t : void 0;
1008
+ var n = r.parent && (t === v.Parent || r.parent.id === t), i = n ? r.parent : G(t) ? r.children.get(t) || Et.get(t) : q(t) ? t : void 0;
1009
1009
  if (!i) {
1010
1010
  if (!n) throw Error(`Unable to send event to child '${t}' from service '${r.id}'.`);
1011
1011
  return;
1012
1012
  }
1013
1013
  "machine" in i ? i.send(f(f({}, e), {
1014
- name: e.name === A ? `${qe(r.id)}` : e.name,
1014
+ name: e.name === A ? `${Ke(r.id)}` : e.name,
1015
1015
  origin: r.sessionId
1016
1016
  })) : i.send(e.data);
1017
1017
  };
1018
1018
  var i = f(f({}, e.defaultOptions), n), a = i.clock, o = i.logger, s = i.parent, c = i.id, l = c === void 0 ? t.id : c;
1019
- this.id = l, this.logger = o, this.clock = a, this.parent = s, this.options = i, this.scheduler = new wt({ deferEvents: this.options.deferEvents }), this.sessionId = Dt.bookId();
1019
+ this.id = l, this.logger = o, this.clock = a, this.parent = s, this.options = i, this.scheduler = new Ct({ deferEvents: this.options.deferEvents }), this.sessionId = Et.bookId();
1020
1020
  }
1021
1021
  return Object.defineProperty(e.prototype, "initialState", {
1022
1022
  get: function() {
1023
1023
  var e = this;
1024
- return this._initialState ? this._initialState : $e(this, function() {
1024
+ return this._initialState ? this._initialState : Qe(this, function() {
1025
1025
  return e._initialState = e.machine.initialState, e._initialState;
1026
1026
  });
1027
1027
  },
@@ -1095,7 +1095,7 @@ Event: ${JSON.stringify(n.data)}`);
1095
1095
  if (o) throw o.error;
1096
1096
  }
1097
1097
  }
1098
- var b = gt(e.configuration || [], this.machine);
1098
+ var b = ht(e.configuration || [], this.machine);
1099
1099
  if (this.state.configuration && b) {
1100
1100
  var x = e.configuration.find(function(e) {
1101
1101
  return e.type === "final" && e.parent === u.machine;
@@ -1103,7 +1103,7 @@ Event: ${JSON.stringify(n.data)}`);
1103
1103
  try {
1104
1104
  for (var C = m(this.doneListeners), w = C.next(); !w.done; w = C.next()) {
1105
1105
  var p = w.value;
1106
- p(Ke(this.id, S));
1106
+ p(Ge(this.id, S));
1107
1107
  }
1108
1108
  } catch (e) {
1109
1109
  c = { error: e };
@@ -1117,12 +1117,12 @@ Event: ${JSON.stringify(n.data)}`);
1117
1117
  this.stop();
1118
1118
  }
1119
1119
  }, e.prototype.onTransition = function(e) {
1120
- return this.listeners.add(e), this.status === J.Running && e(this.state, this.state.event), this;
1120
+ return this.listeners.add(e), this.status === Y.Running && e(this.state, this.state.event), this;
1121
1121
  }, e.prototype.subscribe = function(e, t, n) {
1122
1122
  var r = this;
1123
1123
  if (!e) return { unsubscribe: function() {} };
1124
1124
  var i, a = n;
1125
- return typeof e == "function" ? i = e : (i = e.next.bind(e), a = e.complete.bind(e)), this.listeners.add(i), this.status !== J.NotStarted && i(this.state), a && (this.status === J.Stopped ? a() : this.onDone(a)), { unsubscribe: function() {
1125
+ return typeof e == "function" ? i = e : (i = e.next.bind(e), a = e.complete.bind(e)), this.listeners.add(i), this.status !== Y.NotStarted && i(this.state), a && (this.status === Y.Stopped ? a() : this.onDone(a)), { unsubscribe: function() {
1126
1126
  i && r.listeners.delete(i), a && r.doneListeners.delete(a);
1127
1127
  } };
1128
1128
  }, e.prototype.onEvent = function(e) {
@@ -1139,13 +1139,13 @@ Event: ${JSON.stringify(n.data)}`);
1139
1139
  return this.listeners.delete(e), this.eventListeners.delete(e), this.sendListeners.delete(e), this.stopListeners.delete(e), this.doneListeners.delete(e), this.contextListeners.delete(e), this;
1140
1140
  }, e.prototype.start = function(e) {
1141
1141
  var t = this;
1142
- if (this.status === J.Running) return this;
1143
- this.machine._init(), Dt.register(this.sessionId, this), this.initialized = !0, this.status = J.Running;
1144
- var n = e === void 0 ? this.initialState : $e(this, function() {
1145
- return bt(e) ? t.machine.resolveState(e) : t.machine.resolveState(St.from(e, t.machine.context));
1142
+ if (this.status === Y.Running) return this;
1143
+ this.machine._init(), Et.register(this.sessionId, this), this.initialized = !0, this.status = Y.Running;
1144
+ var n = e === void 0 ? this.initialState : Qe(this, function() {
1145
+ return yt(e) ? t.machine.resolveState(e) : t.machine.resolveState(xt.from(e, t.machine.context));
1146
1146
  });
1147
1147
  return this.options.devTools && this.attachDev(), this.scheduler.initialize(function() {
1148
- t.update(n, Oe);
1148
+ t.update(n, De);
1149
1149
  }), this;
1150
1150
  }, e.prototype.stop = function() {
1151
1151
  var e, t, n, r, i, a, o, s, c, l, u = this;
@@ -1241,17 +1241,17 @@ Event: ${JSON.stringify(n.data)}`);
1241
1241
  if (c) throw c.error;
1242
1242
  }
1243
1243
  }
1244
- return this.scheduler.clear(), this.scheduler = new wt({ deferEvents: this.options.deferEvents }), this.initialized = !1, this.status = J.Stopped, this._initialState = void 0, Dt.free(this.sessionId), this;
1244
+ return this.scheduler.clear(), this.scheduler = new Ct({ deferEvents: this.options.deferEvents }), this.initialized = !1, this.status = Y.Stopped, this._initialState = void 0, Et.free(this.sessionId), this;
1245
1245
  }, e.prototype.batch = function(e) {
1246
1246
  var t = this;
1247
- if (!(this.status === J.NotStarted && this.options.deferEvents) && this.status !== J.Running) throw Error(`${e.length} event(s) were sent to uninitialized service "${this.machine.id}". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.`);
1247
+ if (!(this.status === Y.NotStarted && this.options.deferEvents) && this.status !== Y.Running) throw Error(`${e.length} event(s) were sent to uninitialized service "${this.machine.id}". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.`);
1248
1248
  this.scheduler.schedule(function() {
1249
1249
  var n, r, i = t.state, a = !1, o = [], s = function(e) {
1250
- var n = q(e);
1251
- t.forward(n), i = $e(t, function() {
1250
+ var n = J(e);
1251
+ t.forward(n), i = Qe(t, function() {
1252
1252
  return t.machine.transition(i, n);
1253
1253
  }), o.push.apply(o, g([], h(i.actions.map(function(e) {
1254
- return xt(e, i);
1254
+ return bt(e, i);
1255
1255
  })), !1)), a ||= !!i.changed;
1256
1256
  };
1257
1257
  try {
@@ -1268,16 +1268,16 @@ Event: ${JSON.stringify(n.data)}`);
1268
1268
  if (n) throw n.error;
1269
1269
  }
1270
1270
  }
1271
- i.changed = a, i.actions = o, t.update(i, q(e[e.length - 1]));
1271
+ i.changed = a, i.actions = o, t.update(i, J(e[e.length - 1]));
1272
1272
  });
1273
1273
  }, e.prototype.sender = function(e) {
1274
1274
  return this.send.bind(this, e);
1275
1275
  }, e.prototype.nextState = function(e) {
1276
- var t = this, n = q(e);
1276
+ var t = this, n = J(e);
1277
1277
  if (n.name.indexOf(k) === 0 && !this.state.nextEvents.some(function(e) {
1278
1278
  return e.indexOf(k) === 0;
1279
1279
  })) throw n.data.data;
1280
- return $e(this, function() {
1280
+ return Qe(this, function() {
1281
1281
  return t.machine.transition(t.state, n);
1282
1282
  });
1283
1283
  }, e.prototype.forward = function(e) {
@@ -1306,7 +1306,7 @@ Event: ${JSON.stringify(n.data)}`);
1306
1306
  this.clock.clearTimeout(this.delayedEventsMap[e]), delete this.delayedEventsMap[e];
1307
1307
  }, e.prototype.exec = function(e, t, n) {
1308
1308
  n === void 0 && (n = this.machine.options.actions);
1309
- var r = t.context, i = t._event, a = e.exec || ke(e.type, n), o = W(a) ? a : a ? a.exec : e.exec;
1309
+ var r = t.context, i = t._event, a = e.exec || Oe(e.type, n), o = W(a) ? a : a ? a.exec : e.exec;
1310
1310
  if (o) try {
1311
1311
  return o(r, i.data, {
1312
1312
  action: e,
@@ -1331,11 +1331,11 @@ Event: ${JSON.stringify(n.data)}`);
1331
1331
  this.cancel(e.sendId);
1332
1332
  break;
1333
1333
  case y:
1334
- if (this.status !== J.Running) return;
1334
+ if (this.status !== Y.Running) return;
1335
1335
  var c = e.activity;
1336
1336
  if (!this.state.activities[c.id || c.type]) break;
1337
1337
  if (c.type === _.Invoke) {
1338
- var l = Te(c.src), u = this.machine.options.services ? this.machine.options.services[l.type] : void 0, d = c.id, f = c.data, p = "autoForward" in c ? c.autoForward : !!c.forward;
1338
+ var l = we(c.src), u = this.machine.options.services ? this.machine.options.services[l.type] : void 0, d = c.id, f = c.data, p = "autoForward" in c ? c.autoForward : !!c.forward;
1339
1339
  if (!u) return;
1340
1340
  var m = f ? se(f, r, i) : void 0;
1341
1341
  if (typeof u == "string") return;
@@ -1346,7 +1346,7 @@ Event: ${JSON.stringify(n.data)}`);
1346
1346
  }) : u;
1347
1347
  if (!h) return;
1348
1348
  var g = void 0;
1349
- ye(h) && (h = m ? h.withContext(m) : h, g = { autoForward: p }), this.spawn(h, d, g);
1349
+ ve(h) && (h = m ? h.withContext(m) : h, g = { autoForward: p }), this.spawn(h, d, g);
1350
1350
  } else this.spawnActivity(c);
1351
1351
  break;
1352
1352
  case b:
@@ -1367,9 +1367,9 @@ Event: ${JSON.stringify(n.data)}`);
1367
1367
  }, e.prototype.spawn = function(e, t, n) {
1368
1368
  if (le(e)) return this.spawnPromise(Promise.resolve(e), t);
1369
1369
  if (W(e)) return this.spawnCallback(e, t);
1370
- if (at(e)) return this.spawnActor(e, t);
1370
+ if (it(e)) return this.spawnActor(e, t);
1371
1371
  if (_e(e)) return this.spawnObservable(e, t);
1372
- if (ye(e)) return this.spawnMachine(e, f(f({}, n), { id: t }));
1372
+ if (ve(e)) return this.spawnMachine(e, f(f({}, n), { id: t }));
1373
1373
  if (ue(e)) return this.spawnBehavior(e, t);
1374
1374
  throw Error(`Unable to spawn entity "${t}" of type "${typeof e}".`);
1375
1375
  }, e.prototype.spawnMachine = function(t, n) {
@@ -1378,7 +1378,7 @@ Event: ${JSON.stringify(n.data)}`);
1378
1378
  var i = new e(t, f(f({}, this.options), {
1379
1379
  parent: this,
1380
1380
  id: n.id || t.id
1381
- })), a = f(f({}, Mt), n);
1381
+ })), a = f(f({}, jt), n);
1382
1382
  a.sync && i.onTransition(function(e) {
1383
1383
  r.send(j, {
1384
1384
  state: e,
@@ -1387,10 +1387,10 @@ Event: ${JSON.stringify(n.data)}`);
1387
1387
  });
1388
1388
  var o = i;
1389
1389
  return this.children.set(i.id, o), a.autoForward && this.forwardTo.add(i.id), i.onDone(function(e) {
1390
- r.removeChild(i.id), r.send(q(e, { origin: i.id }));
1390
+ r.removeChild(i.id), r.send(J(e, { origin: i.id }));
1391
1391
  }).start(), o;
1392
1392
  }, e.prototype.spawnBehavior = function(e, t) {
1393
- var n = jt(e, {
1393
+ var n = At(e, {
1394
1394
  id: t,
1395
1395
  parent: this
1396
1396
  });
@@ -1398,13 +1398,13 @@ Event: ${JSON.stringify(n.data)}`);
1398
1398
  }, e.prototype.spawnPromise = function(e, t) {
1399
1399
  var n, r = this, i = !1, a;
1400
1400
  e.then(function(e) {
1401
- i || (a = e, r.removeChild(t), r.send(q(Ke(t, e), { origin: t })));
1401
+ i || (a = e, r.removeChild(t), r.send(J(Ge(t, e), { origin: t })));
1402
1402
  }, function(e) {
1403
1403
  if (!i) {
1404
1404
  r.removeChild(t);
1405
- var n = qe(t, e);
1405
+ var n = Ke(t, e);
1406
1406
  try {
1407
- r.send(q(n, { origin: t }));
1407
+ r.send(J(n, { origin: t }));
1408
1408
  } catch {
1409
1409
  r.devTools && r.devTools.send(n, r.state), r.machine.strict && r.stop();
1410
1410
  }
@@ -1414,7 +1414,7 @@ Event: ${JSON.stringify(n.data)}`);
1414
1414
  id: t,
1415
1415
  send: function() {},
1416
1416
  subscribe: function(t, n, r) {
1417
- var i = Ee(t, n, r), a = !1;
1417
+ var i = Te(t, n, r), a = !1;
1418
1418
  return e.then(function(e) {
1419
1419
  a || (i.next(e), !a && i.complete());
1420
1420
  }, function(e) {
@@ -1432,7 +1432,7 @@ Event: ${JSON.stringify(n.data)}`);
1432
1432
  getSnapshot: function() {
1433
1433
  return a;
1434
1434
  }
1435
- }, n[ve] = function() {
1435
+ }, n[K] = function() {
1436
1436
  return this;
1437
1437
  }, n);
1438
1438
  return this.children.set(t, o), o;
@@ -1440,14 +1440,14 @@ Event: ${JSON.stringify(n.data)}`);
1440
1440
  var n, r = this, i = !1, a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), s, c = function(e) {
1441
1441
  s = e, o.forEach(function(t) {
1442
1442
  return t(e);
1443
- }), !i && r.send(q(e, { origin: t }));
1443
+ }), !i && r.send(J(e, { origin: t }));
1444
1444
  }, l;
1445
1445
  try {
1446
1446
  l = e(c, function(e) {
1447
1447
  a.add(e);
1448
1448
  });
1449
1449
  } catch (e) {
1450
- this.send(qe(t, e));
1450
+ this.send(Ke(t, e));
1451
1451
  }
1452
1452
  if (le(l)) return this.spawnPromise(l, t);
1453
1453
  var u = (n = {
@@ -1458,7 +1458,7 @@ Event: ${JSON.stringify(n.data)}`);
1458
1458
  });
1459
1459
  },
1460
1460
  subscribe: function(e) {
1461
- var t = Ee(e);
1461
+ var t = Te(e);
1462
1462
  return o.add(t.next), { unsubscribe: function() {
1463
1463
  o.delete(t.next);
1464
1464
  } };
@@ -1472,17 +1472,17 @@ Event: ${JSON.stringify(n.data)}`);
1472
1472
  getSnapshot: function() {
1473
1473
  return s;
1474
1474
  }
1475
- }, n[ve] = function() {
1475
+ }, n[K] = function() {
1476
1476
  return this;
1477
1477
  }, n);
1478
1478
  return this.children.set(t, u), u;
1479
1479
  }, e.prototype.spawnObservable = function(e, t) {
1480
1480
  var n, r = this, i, a = e.subscribe(function(e) {
1481
- i = e, r.send(q(e, { origin: t }));
1481
+ i = e, r.send(J(e, { origin: t }));
1482
1482
  }, function(e) {
1483
- r.removeChild(t), r.send(q(qe(t, e), { origin: t }));
1483
+ r.removeChild(t), r.send(J(Ke(t, e), { origin: t }));
1484
1484
  }, function() {
1485
- r.removeChild(t), r.send(q(Ke(t), { origin: t }));
1485
+ r.removeChild(t), r.send(J(Ge(t), { origin: t }));
1486
1486
  }), o = (n = {
1487
1487
  id: t,
1488
1488
  send: function() {},
@@ -1498,7 +1498,7 @@ Event: ${JSON.stringify(n.data)}`);
1498
1498
  toJSON: function() {
1499
1499
  return { id: t };
1500
1500
  }
1501
- }, n[ve] = function() {
1501
+ }, n[K] = function() {
1502
1502
  return this;
1503
1503
  }, n);
1504
1504
  return this.children.set(t, o), o;
@@ -1523,11 +1523,11 @@ Event: ${JSON.stringify(n.data)}`);
1523
1523
  toJSON: function() {
1524
1524
  return { id: e };
1525
1525
  }
1526
- }, n[ve] = function() {
1526
+ }, n[K] = function() {
1527
1527
  return this;
1528
1528
  }, n));
1529
1529
  }, e.prototype.attachDev = function() {
1530
- var e = Ot();
1530
+ var e = Dt();
1531
1531
  if (this.options.devTools && e) {
1532
1532
  if (e.__REDUX_DEVTOOLS_EXTENSION__) {
1533
1533
  var t = typeof this.options.devTools == "object" ? this.options.devTools : void 0;
@@ -1546,14 +1546,14 @@ Event: ${JSON.stringify(n.data)}`);
1546
1546
  skip: !1
1547
1547
  }, t ? t.features : void 0) }), this.machine), this.devTools.init(this.state);
1548
1548
  }
1549
- At(this);
1549
+ kt(this);
1550
1550
  }
1551
1551
  }, e.prototype.toJSON = function() {
1552
1552
  return { id: this.id };
1553
- }, e.prototype[ve] = function() {
1553
+ }, e.prototype[K] = function() {
1554
1554
  return this;
1555
1555
  }, e.prototype.getSnapshot = function() {
1556
- return this.status === J.NotStarted ? this.initialState : this._state;
1556
+ return this.status === Y.NotStarted ? this.initialState : this._state;
1557
1557
  }, e.defaultOptions = {
1558
1558
  execute: !0,
1559
1559
  deferEvents: !0,
@@ -1567,20 +1567,20 @@ Event: ${JSON.stringify(n.data)}`);
1567
1567
  },
1568
1568
  logger: /* @__PURE__ */ console.log.bind(console),
1569
1569
  devTools: !1
1570
- }, e.interpret = It, e;
1571
- }(), Pt = function(e) {
1572
- return G(e) ? f(f({}, Mt), { name: e }) : f(f(f({}, Mt), { name: be() }), e);
1570
+ }, e.interpret = Ft, e;
1571
+ }(), Nt = function(e) {
1572
+ return G(e) ? f(f({}, jt), { name: e }) : f(f(f({}, jt), { name: ye() }), e);
1573
1573
  };
1574
- function Ft(e, t) {
1575
- var n = Pt(t);
1576
- return et(function(t) {
1577
- return t ? t.spawn(e, n.name, n) : rt(e, n.name);
1574
+ function Pt(e, t) {
1575
+ var n = Nt(t);
1576
+ return $e(function(t) {
1577
+ return t ? t.spawn(e, n.name, n) : nt(e, n.name);
1578
1578
  });
1579
1579
  }
1580
- function It(e, t) {
1581
- return new Nt(e, t);
1580
+ function Ft(e, t) {
1581
+ return new Mt(e, t);
1582
1582
  }
1583
- function Lt(e) {
1583
+ function It(e) {
1584
1584
  if (typeof e == "string") {
1585
1585
  var t = { type: e };
1586
1586
  return t.toString = function() {
@@ -1589,17 +1589,17 @@ function Lt(e) {
1589
1589
  }
1590
1590
  return e;
1591
1591
  }
1592
- function Rt(e) {
1592
+ function Lt(e) {
1593
1593
  return f(f({ type: O }, e), { toJSON: function() {
1594
1594
  return e.onDone, e.onError, f(f({}, p(e, ["onDone", "onError"])), {
1595
1595
  type: O,
1596
- src: Lt(e.src)
1596
+ src: It(e.src)
1597
1597
  });
1598
1598
  } });
1599
1599
  }
1600
- var zt = "", Bt = "#", Vt = "*", Ht = {}, Ut = function(e) {
1601
- return e[0] === Bt;
1602
- }, Wt = function() {
1600
+ var Rt = "", zt = "#", Bt = "*", Vt = {}, Ht = function(e) {
1601
+ return e[0] === zt;
1602
+ }, Ut = function() {
1603
1603
  return {
1604
1604
  actions: {},
1605
1605
  guards: {},
@@ -1607,7 +1607,7 @@ var zt = "", Bt = "#", Vt = "*", Ht = {}, Ut = function(e) {
1607
1607
  activities: {},
1608
1608
  delays: {}
1609
1609
  };
1610
- }, Gt = /* @__PURE__ */ function() {
1610
+ }, Wt = /* @__PURE__ */ function() {
1611
1611
  function e(t, n, r, i) {
1612
1612
  var a = this;
1613
1613
  r === void 0 && (r = "context" in t ? t.context : void 0), this.config = t, this._context = r, this.order = -1, this.__xstatenode = !0, this.__cache = {
@@ -1619,19 +1619,19 @@ var zt = "", Bt = "#", Vt = "*", Ht = {}, Ut = function(e) {
1619
1619
  transitions: void 0,
1620
1620
  candidates: {},
1621
1621
  delayedTransitions: void 0
1622
- }, this.idMap = {}, this.tags = [], this.options = Object.assign(Wt(), 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 : "."), this.id = this.config.id || g([this.machine.key], h(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 : this.config.schema ?? {}, this.description = this.config.description, this.initial = this.config.initial, this.states = this.config.states ? ne(this.config.states, function(t, n) {
1622
+ }, this.idMap = {}, this.tags = [], this.options = Object.assign(Ut(), 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 : "."), this.id = this.config.id || g([this.machine.key], h(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 : this.config.schema ?? {}, this.description = this.config.description, this.initial = this.config.initial, this.states = this.config.states ? ne(this.config.states, function(t, n) {
1623
1623
  var r, i = new e(t, {}, void 0, {
1624
1624
  parent: a,
1625
1625
  key: n
1626
1626
  });
1627
1627
  return Object.assign(a.idMap, f((r = {}, r[i.id] = i, r), i.idMap)), i;
1628
- }) : Ht;
1628
+ }) : Vt;
1629
1629
  var o = 0;
1630
1630
  function s(e) {
1631
1631
  var t, n;
1632
1632
  e.order = o++;
1633
1633
  try {
1634
- for (var r = m(ct(e)), i = r.next(); !i.done; i = r.next()) {
1634
+ for (var r = m(st(e)), i = r.next(); !i.done; i = r.next()) {
1635
1635
  var a = i.value;
1636
1636
  s(a);
1637
1637
  }
@@ -1646,38 +1646,38 @@ var zt = "", Bt = "#", Vt = "*", Ht = {}, Ut = function(e) {
1646
1646
  }
1647
1647
  }
1648
1648
  s(this), this.history = this.config.history === !0 ? "shallow" : this.config.history || !1, this._transient = !!this.config.always || (this.config.on ? Array.isArray(this.config.on) ? this.config.on.some(function(e) {
1649
- return e.event === zt;
1650
- }) : zt in this.config.on : !1), this.strict = !!this.config.strict, this.onEntry = U(this.config.entry || this.config.onEntry).map(function(e) {
1651
- return Ae(e);
1649
+ return e.event === Rt;
1650
+ }) : Rt in this.config.on : !1), this.strict = !!this.config.strict, this.onEntry = U(this.config.entry || this.config.onEntry).map(function(e) {
1651
+ return ke(e);
1652
1652
  }), this.onExit = U(this.config.exit || this.config.onExit).map(function(e) {
1653
- return Ae(e);
1653
+ return ke(e);
1654
1654
  }), this.meta = this.config.meta, this.doneData = this.type === "final" ? this.config.data : void 0, this.invoke = U(this.config.invoke).map(function(e, t) {
1655
1655
  var n, r;
1656
- if (ye(e)) {
1657
- var i = De(a.id, t);
1658
- return a.machine.options.services = f((n = {}, n[i] = e, n), a.machine.options.services), Rt({
1656
+ if (ve(e)) {
1657
+ var i = Ee(a.id, t);
1658
+ return a.machine.options.services = f((n = {}, n[i] = e, n), a.machine.options.services), Lt({
1659
1659
  src: i,
1660
1660
  id: i
1661
1661
  });
1662
1662
  } else if (G(e.src)) {
1663
- var i = e.id || De(a.id, t);
1664
- return Rt(f(f({}, e), {
1663
+ var i = e.id || Ee(a.id, t);
1664
+ return Lt(f(f({}, e), {
1665
1665
  id: i,
1666
1666
  src: e.src
1667
1667
  }));
1668
- } else if (ye(e.src) || W(e.src)) {
1669
- var i = e.id || De(a.id, t);
1670
- return a.machine.options.services = f((r = {}, r[i] = e.src, r), a.machine.options.services), Rt(f(f({ id: i }, e), { src: i }));
1668
+ } else if (ve(e.src) || W(e.src)) {
1669
+ var i = e.id || Ee(a.id, t);
1670
+ return a.machine.options.services = f((r = {}, r[i] = e.src, r), a.machine.options.services), Lt(f(f({ id: i }, e), { src: i }));
1671
1671
  } else {
1672
1672
  var o = e.src;
1673
- return Rt(f(f({ id: De(a.id, t) }, e), { src: o }));
1673
+ return Lt(f(f({ id: Ee(a.id, t) }, e), { src: o }));
1674
1674
  }
1675
1675
  }), this.activities = U(this.config.activities).concat(this.invoke).map(function(e) {
1676
- return Me(e);
1676
+ return je(e);
1677
1677
  }), this.transition = this.transition.bind(this), this.tags = U(this.config.tags);
1678
1678
  }
1679
1679
  return e.prototype._init = function() {
1680
- this.__cache.transitions || lt(this).forEach(function(e) {
1680
+ this.__cache.transitions || ct(this).forEach(function(e) {
1681
1681
  return e.on;
1682
1682
  });
1683
1683
  }, e.prototype.withConfig = function(t, n) {
@@ -1751,17 +1751,17 @@ var zt = "", Bt = "#", Vt = "*", Ht = {}, Ut = function(e) {
1751
1751
  configurable: !0
1752
1752
  }), e.prototype.getCandidates = function(e) {
1753
1753
  if (this.__cache.candidates[e]) return this.__cache.candidates[e];
1754
- var t = e === zt, n = this.transitions.filter(function(n) {
1754
+ var t = e === Rt, n = this.transitions.filter(function(n) {
1755
1755
  var r = n.eventType === e;
1756
- return t ? r : r || n.eventType === Vt;
1756
+ return t ? r : r || n.eventType === Bt;
1757
1757
  });
1758
1758
  return this.__cache.candidates[e] = n, n;
1759
1759
  }, e.prototype.getDelayedTransitions = function() {
1760
1760
  var e = this, t = this.config.after;
1761
1761
  if (!t) return [];
1762
1762
  var n = function(t, n) {
1763
- var r = We(W(t) ? `${e.id}:delay[${n}]` : t, e.id);
1764
- return e.onEntry.push(Fe(r, { delay: t })), e.onExit.push(ze(r)), r;
1763
+ var r = Ue(W(t) ? `${e.id}:delay[${n}]` : t, e.id);
1764
+ return e.onEntry.push(Pe(r, { delay: t })), e.onExit.push(Re(r)), r;
1765
1765
  };
1766
1766
  return (he(t) ? t.map(function(e, t) {
1767
1767
  var r = n(e.delay, t);
@@ -1781,7 +1781,7 @@ var zt = "", Bt = "#", Vt = "*", Ht = {}, Ut = function(e) {
1781
1781
  }, e.prototype.getStateNodes = function(e) {
1782
1782
  var t, n = this;
1783
1783
  if (!e) return [];
1784
- var r = e instanceof St ? e.value : B(e, this.delimiter);
1784
+ var r = e instanceof xt ? e.value : B(e, this.delimiter);
1785
1785
  if (G(r)) {
1786
1786
  var i = this.getStateNode(r).initial;
1787
1787
  return i === void 0 ? [this, this.states[r]] : this.getStateNodes((t = {}, t[r] = i, t));
@@ -1794,12 +1794,12 @@ var zt = "", Bt = "#", Vt = "*", Ht = {}, Ut = function(e) {
1794
1794
  var t = L(e);
1795
1795
  return this.events.includes(t);
1796
1796
  }, e.prototype.resolveState = function(e) {
1797
- var t = e instanceof St ? e : St.create(e), n = Array.from(ut([], this.getStateNodes(t.value)));
1798
- return new St(f(f({}, t), {
1797
+ var t = e instanceof xt ? e : xt.create(e), n = Array.from(lt([], this.getStateNodes(t.value)));
1798
+ return new xt(f(f({}, t), {
1799
1799
  value: this.resolve(t.value),
1800
1800
  configuration: n,
1801
- done: gt(n, this),
1802
- tags: vt(n),
1801
+ done: ht(n, this),
1802
+ tags: _t(n),
1803
1803
  machine: this.machine
1804
1804
  }));
1805
1805
  }, e.prototype.transitionLeafNode = function(e, t, n) {
@@ -1855,14 +1855,14 @@ var zt = "", Bt = "#", Vt = "*", Ht = {}, Ut = function(e) {
1855
1855
  }, e.prototype._transition = function(e, t, n) {
1856
1856
  return G(e) ? this.transitionLeafNode(e, t, n) : Object.keys(e).length === 1 ? this.transitionCompoundNode(e, t, n) : this.transitionParallelNode(e, t, n);
1857
1857
  }, e.prototype.getTransitionData = function(e, t) {
1858
- return this._transition(e.value, e, q(t));
1858
+ return this._transition(e.value, e, J(t));
1859
1859
  }, e.prototype.next = function(e, t) {
1860
1860
  var n, r, i = this, a = t.name, o = [], s = [], c;
1861
1861
  try {
1862
1862
  for (var l = m(this.getCandidates(a)), u = l.next(); !u.done; u = l.next()) {
1863
- var d = u.value, f = d.cond, p = d.in, _ = e.context, v = p ? G(p) && Ut(p) ? e.matches(B(this.getStateNodeById(p).path, this.delimiter)) : ee(B(p, this.delimiter), re(this.path.slice(0, -2))(e.value)) : !0, y = !1;
1863
+ var d = u.value, f = d.cond, p = d.in, _ = e.context, v = p ? G(p) && Ht(p) ? e.matches(B(this.getStateNodeById(p).path, this.delimiter)) : I(B(p, this.delimiter), re(this.path.slice(0, -2))(e.value)) : !0, y = !1;
1864
1864
  try {
1865
- y = !f || we(this.machine, f, _, t, e);
1865
+ y = !f || Ce(this.machine, f, _, t, e);
1866
1866
  } catch (e) {
1867
1867
  throw Error(`Unable to evaluate guard '${f.name || f.type}' in transition for event '${a}' in state node '${this.id}':
1868
1868
  ${e.message}`);
@@ -1916,11 +1916,11 @@ ${e.message}`);
1916
1916
  }
1917
1917
  return !0;
1918
1918
  }, e.prototype.getActions = function(e, t, n, r) {
1919
- var i, a, o, s, c = ut([], r ? this.getStateNodes(r.value) : [this]), l = e.configuration.length ? ut(c, e.configuration) : c;
1919
+ var i, a, o, s, c = lt([], r ? this.getStateNodes(r.value) : [this]), l = e.configuration.length ? lt(c, e.configuration) : c;
1920
1920
  try {
1921
1921
  for (var u = m(l), d = u.next(); !d.done; d = u.next()) {
1922
1922
  var f = d.value;
1923
- mt(c, f) || e.entrySet.push(f);
1923
+ pt(c, f) || e.entrySet.push(f);
1924
1924
  }
1925
1925
  } catch (e) {
1926
1926
  i = { error: e };
@@ -1934,7 +1934,7 @@ ${e.message}`);
1934
1934
  try {
1935
1935
  for (var p = m(c), _ = p.next(); !_.done; _ = p.next()) {
1936
1936
  var f = _.value;
1937
- (!mt(l, f) || mt(e.exitSet, f.parent)) && e.exitSet.push(f);
1937
+ (!pt(l, f) || pt(e.exitSet, f.parent)) && e.exitSet.push(f);
1938
1938
  }
1939
1939
  } catch (e) {
1940
1940
  o = { error: e };
@@ -1950,11 +1950,11 @@ ${e.message}`);
1950
1950
  if (r.type !== "final") return i;
1951
1951
  var a = r.parent;
1952
1952
  if (!a.parent) return i;
1953
- i.push(Ge(r.id, r.doneData), Ge(a.id, r.doneData ? se(r.doneData, t, n) : void 0));
1953
+ i.push(We(r.id, r.doneData), We(a.id, r.doneData ? se(r.doneData, t, n) : void 0));
1954
1954
  var o = a.parent;
1955
- return o.type === "parallel" && ct(o).every(function(t) {
1956
- return gt(e.configuration, t);
1957
- }) && i.push(Ge(o.id)), i;
1955
+ return o.type === "parallel" && st(o).every(function(t) {
1956
+ return ht(e.configuration, t);
1957
+ }) && i.push(We(o.id)), i;
1958
1958
  }));
1959
1959
  e.exitSet.sort(function(e, t) {
1960
1960
  return t.order - e.order;
@@ -1963,21 +1963,21 @@ ${e.message}`);
1963
1963
  });
1964
1964
  var y = new Set(e.entrySet), b = new Set(e.exitSet), x = h([H(Array.from(y).map(function(e) {
1965
1965
  return g(g([], h(e.activities.map(function(e) {
1966
- return Be(e);
1966
+ return ze(e);
1967
1967
  })), !1), h(e.onEntry), !1);
1968
- })).concat(v.map(Ne)), H(Array.from(b).map(function(e) {
1968
+ })).concat(v.map(Me)), H(Array.from(b).map(function(e) {
1969
1969
  return g(g([], h(e.onExit), !1), h(e.activities.map(function(e) {
1970
- return Ve(e);
1970
+ return Be(e);
1971
1971
  })), !1);
1972
1972
  }))], 2), S = x[0], C = x[1];
1973
- return je(C.concat(e.actions).concat(S), this.machine.options.actions);
1973
+ return Ae(C.concat(e.actions).concat(S), this.machine.options.actions);
1974
1974
  }, e.prototype.transition = function(e, t, n) {
1975
1975
  e === void 0 && (e = this.initialState);
1976
- var r = q(t), i;
1977
- if (e instanceof St) i = n === void 0 ? e : this.resolveState(St.from(e, n));
1976
+ var r = J(t), i;
1977
+ if (e instanceof xt) i = n === void 0 ? e : this.resolveState(xt.from(e, n));
1978
1978
  else {
1979
1979
  var a = G(e) ? this.resolve(te(this.getResolvedPath(e))) : this.resolve(e), o = n ?? this.machine.context;
1980
- i = this.resolveState(St.from(a, o));
1980
+ i = this.resolveState(xt.from(a, o));
1981
1981
  }
1982
1982
  if (this.strict && !this.events.includes(r.name) && !ce(r.name)) throw Error(`Machine '${this.id}' does not accept event '${r.name}'`);
1983
1983
  var s = this._transition(i.value, i, r) || {
@@ -1987,15 +1987,15 @@ ${e.message}`);
1987
1987
  exitSet: [],
1988
1988
  source: i,
1989
1989
  actions: []
1990
- }, c = ut([], this.getStateNodes(i.value));
1991
- return s.configuration = g([], h(s.configuration.length ? ut(c, s.configuration) : c), !1), this.resolveTransition(s, i, i.context, r);
1990
+ }, c = lt([], this.getStateNodes(i.value));
1991
+ return s.configuration = g([], h(s.configuration.length ? lt(c, s.configuration) : c), !1), this.resolveTransition(s, i, i.context, r);
1992
1992
  }, e.prototype.resolveRaisedTransition = function(e, t, n) {
1993
1993
  var r, i = e.actions;
1994
1994
  return e = this.transition(e, t), e._event = n, e.event = n.data, (r = e.actions).unshift.apply(r, g([], h(i), !1)), e;
1995
1995
  }, e.prototype.resolveTransition = function(e, t, n, r) {
1996
1996
  var i, a, o = this;
1997
- r === void 0 && (r = Oe);
1998
- var s = e.configuration, c = !t || e.transitions.length > 0, l = c ? pt(this.machine, s) : void 0, u = t ? t.historyValue ? t.historyValue : e.source ? this.machine.historyValue(t.value) : void 0 : void 0, d = this.getActions(e, n, r, t), p = t ? f({}, t.activities) : {};
1997
+ r === void 0 && (r = De);
1998
+ var s = e.configuration, c = !t || e.transitions.length > 0, l = c ? ft(this.machine, s) : void 0, u = t ? t.historyValue ? t.historyValue : e.source ? this.machine.historyValue(t.value) : void 0 : void 0, d = this.getActions(e, n, r, t), p = t ? f({}, t.activities) : {};
1999
1999
  try {
2000
2000
  for (var g = m(d), _ = g.next(); !_.done; _ = g.next()) {
2001
2001
  var C = _.value;
@@ -2010,13 +2010,13 @@ ${e.message}`);
2010
2010
  if (i) throw i.error;
2011
2011
  }
2012
2012
  }
2013
- var T = h(Ze(this, t, n, r, d, this.machine.config.preserveActionOrder), 2), E = T[0], D = T[1], k = h(de(E, function(e) {
2013
+ var T = h(Xe(this, t, n, r, d, this.machine.config.preserveActionOrder), 2), E = T[0], D = T[1], k = h(de(E, function(e) {
2014
2014
  return e.type === x || e.type === S && e.to === v.Internal;
2015
2015
  }), 2), A = k[0], M = k[1], N = E.filter(function(e) {
2016
2016
  return e.type === y && e.activity?.type === O;
2017
2017
  }).reduce(function(e, t) {
2018
- return e[t.activity.id] = nt(t.activity, o.machine, D, r), e;
2019
- }, t ? f({}, t.children) : {}), P = c ? e.configuration : t ? t.configuration : [], F = gt(P, this), I = new St({
2018
+ return e[t.activity.id] = tt(t.activity, o.machine, D, r), e;
2019
+ }, t ? f({}, t.children) : {}), P = c ? e.configuration : t ? t.configuration : [], ee = ht(P, this), F = new xt({
2020
2020
  value: l || t.value,
2021
2021
  context: D,
2022
2022
  _event: r,
@@ -2029,38 +2029,38 @@ ${e.message}`);
2029
2029
  configuration: P,
2030
2030
  transitions: e.transitions,
2031
2031
  children: N,
2032
- done: F,
2033
- tags: vt(P),
2032
+ done: ee,
2033
+ tags: _t(P),
2034
2034
  machine: this
2035
- }), ee = n !== D;
2036
- I.changed = r.name === j || ee;
2037
- var L = I.history;
2035
+ }), I = n !== D;
2036
+ F.changed = r.name === j || I;
2037
+ var L = F.history;
2038
2038
  L && delete L.history;
2039
- var R = !F && (this._transient || s.some(function(e) {
2039
+ var R = !ee && (this._transient || s.some(function(e) {
2040
2040
  return e._transient;
2041
2041
  }));
2042
- if (!c && (!R || r.name === zt)) return I;
2043
- var z = I;
2044
- if (!F) for (R && (z = this.resolveRaisedTransition(z, { type: w }, r)); A.length;) {
2042
+ if (!c && (!R || r.name === Rt)) return F;
2043
+ var z = F;
2044
+ if (!ee) for (R && (z = this.resolveRaisedTransition(z, { type: w }, r)); A.length;) {
2045
2045
  var B = A.shift();
2046
2046
  z = this.resolveRaisedTransition(z, B._event, r);
2047
2047
  }
2048
- var te = z.changed || (L ? !!z.actions.length || ee || typeof L.value != typeof z.value || !yt(z.value, L.value) : void 0);
2048
+ var te = z.changed || (L ? !!z.actions.length || I || typeof L.value != typeof z.value || !vt(z.value, L.value) : void 0);
2049
2049
  return z.changed = te, z.history = L, z;
2050
2050
  }, e.prototype.getStateNode = function(e) {
2051
- if (Ut(e)) return this.machine.getStateNodeById(e);
2051
+ if (Ht(e)) return this.machine.getStateNodeById(e);
2052
2052
  if (!this.states) throw Error(`Unable to retrieve child state '${e}' from '${this.id}'; no child states exist.`);
2053
2053
  var t = this.states[e];
2054
2054
  if (!t) throw Error(`Child state '${e}' does not exist on '${this.id}'`);
2055
2055
  return t;
2056
2056
  }, e.prototype.getStateNodeById = function(e) {
2057
- var t = Ut(e) ? e.slice(Bt.length) : e;
2057
+ var t = Ht(e) ? e.slice(zt.length) : e;
2058
2058
  if (t === this.id) return this;
2059
2059
  var n = this.machine.idMap[t];
2060
2060
  if (!n) throw Error(`Child state node '#${t}' does not exist on machine '${this.id}'`);
2061
2061
  return n;
2062
2062
  }, e.prototype.getStateNodeByPath = function(e) {
2063
- if (typeof e == "string" && Ut(e)) try {
2063
+ if (typeof e == "string" && Ht(e)) try {
2064
2064
  return this.getStateNodeById(e.slice(1));
2065
2065
  } catch {}
2066
2066
  for (var t = R(e, this.delimiter).slice(), n = this; t.length;) {
@@ -2071,10 +2071,10 @@ ${e.message}`);
2071
2071
  return n;
2072
2072
  }, e.prototype.resolve = function(e) {
2073
2073
  var t, n = this;
2074
- if (!e) return this.initialStateValue || Ht;
2074
+ if (!e) return this.initialStateValue || Vt;
2075
2075
  switch (this.type) {
2076
2076
  case "parallel": return ne(this.initialStateValue, function(t, r) {
2077
- return t ? n.getStateNode(r).resolve(e[r] || t) : Ht;
2077
+ return t ? n.getStateNode(r).resolve(e[r] || t) : Vt;
2078
2078
  });
2079
2079
  case "compound":
2080
2080
  if (G(e)) {
@@ -2082,13 +2082,13 @@ ${e.message}`);
2082
2082
  return r.type === "parallel" || r.type === "compound" ? (t = {}, t[e] = r.initialStateValue, t) : e;
2083
2083
  }
2084
2084
  return Object.keys(e).length ? ne(e, function(e, t) {
2085
- return e ? n.getStateNode(t).resolve(e) : Ht;
2085
+ return e ? n.getStateNode(t).resolve(e) : Vt;
2086
2086
  }) : this.initialStateValue || {};
2087
- default: return e || Ht;
2087
+ default: return e || Vt;
2088
2088
  }
2089
2089
  }, e.prototype.getResolvedPath = function(e) {
2090
- if (Ut(e)) {
2091
- var t = this.machine.idMap[e.slice(Bt.length)];
2090
+ if (Ht(e)) {
2091
+ var t = this.machine.idMap[e.slice(zt.length)];
2092
2092
  if (!t) throw Error(`Unable to find state node '${e}'`);
2093
2093
  return t.path;
2094
2094
  }
@@ -2099,13 +2099,13 @@ ${e.message}`);
2099
2099
  if (this.__cache.initialStateValue) return this.__cache.initialStateValue;
2100
2100
  var t;
2101
2101
  if (this.type === "parallel") t = V(this.states, function(e) {
2102
- return e.initialStateValue || Ht;
2102
+ return e.initialStateValue || Vt;
2103
2103
  }, function(e) {
2104
2104
  return e.type !== "history";
2105
2105
  });
2106
2106
  else if (this.initial !== void 0) {
2107
2107
  if (!this.states[this.initial]) throw Error(`Initial state '${this.initial}' not found on '${this.key}'`);
2108
- t = st(this.states[this.initial]) ? this.initial : (e = {}, e[this.initial] = this.states[this.initial].initialStateValue, e);
2108
+ t = ot(this.states[this.initial]) ? this.initial : (e = {}, e[this.initial] = this.states[this.initial].initialStateValue, e);
2109
2109
  } else t = {};
2110
2110
  return this.__cache.initialStateValue = t, this.__cache.initialStateValue;
2111
2111
  },
@@ -2135,7 +2135,7 @@ ${e.message}`);
2135
2135
  var e;
2136
2136
  if (this.type === "history") {
2137
2137
  var t = this.config;
2138
- e = G(t.target) && Ut(t.target) ? te(this.machine.getStateNodeById(t.target).path.slice(this.path.length - 1)) : t.target;
2138
+ e = G(t.target) && Ht(t.target) ? te(this.machine.getStateNodeById(t.target).path.slice(this.path.length - 1)) : t.target;
2139
2139
  }
2140
2140
  return e;
2141
2141
  },
@@ -2146,7 +2146,7 @@ ${e.message}`);
2146
2146
  }, Object.defineProperty(e.prototype, "initialStateNodes", {
2147
2147
  get: function() {
2148
2148
  var e = this;
2149
- return st(this) || this.type === "compound" && !this.initial ? [this] : H(ae(this.initialStateValue).map(function(t) {
2149
+ return ot(this) || this.type === "compound" && !this.initial ? [this] : H(ae(this.initialStateValue).map(function(t) {
2150
2150
  return e.getFromRelativePath(t);
2151
2151
  }));
2152
2152
  },
@@ -2257,10 +2257,10 @@ ${e.message}`);
2257
2257
  else return t.getStateNodeByPath(r);
2258
2258
  });
2259
2259
  }, e.prototype.formatTransition = function(e) {
2260
- var t = this, n = Ce(e.target), r = "internal" in e ? e.internal : n ? n.some(function(e) {
2260
+ var t = this, n = Se(e.target), r = "internal" in e ? e.internal : n ? n.some(function(e) {
2261
2261
  return G(e) && e[0] === t.delimiter;
2262
2262
  }) : !0, i = this.machine.options.guards, a = this.resolveTarget(n), o = f(f({}, e), {
2263
- actions: je(U(e.actions)),
2263
+ actions: Ae(U(e.actions)),
2264
2264
  cond: ge(e.cond, i),
2265
2265
  target: a,
2266
2266
  source: this,
@@ -2281,14 +2281,14 @@ ${e.message}`);
2281
2281
  if (!this.config.on) r = [];
2282
2282
  else if (Array.isArray(this.config.on)) r = this.config.on;
2283
2283
  else {
2284
- var i = this.config.on, a = Vt, o = i[a], s = o === void 0 ? [] : o, c = p(i, [typeof a == "symbol" ? a : a + ""]);
2284
+ var i = this.config.on, a = Bt, o = i[a], s = o === void 0 ? [] : o, c = p(i, [typeof a == "symbol" ? a : a + ""]);
2285
2285
  r = H(Object.keys(c).map(function(e) {
2286
- return Se(e, c[e]);
2287
- }).concat(Se(Vt, s)));
2286
+ return xe(e, c[e]);
2287
+ }).concat(xe(Bt, s)));
2288
2288
  }
2289
- var l = this.config.always ? Se("", this.config.always) : [], u = this.config.onDone ? Se(String(Ge(this.id)), this.config.onDone) : [], d = H(this.invoke.map(function(e) {
2289
+ var l = this.config.always ? xe("", this.config.always) : [], u = this.config.onDone ? xe(String(We(this.id)), this.config.onDone) : [], d = H(this.invoke.map(function(e) {
2290
2290
  var t = [];
2291
- return e.onDone && t.push.apply(t, g([], h(Se(String(Ke(e.id)), e.onDone)), !1)), e.onError && t.push.apply(t, g([], h(Se(String(qe(e.id)), e.onError)), !1)), t;
2291
+ return e.onDone && t.push.apply(t, g([], h(xe(String(Ge(e.id)), e.onDone)), !1)), e.onError && t.push.apply(t, g([], h(xe(String(Ke(e.id)), e.onError)), !1)), t;
2292
2292
  })), f = this.after, _ = H(g(g(g(g([], h(u), !1), h(d), !1), h(r), !1), h(l), !1).map(function(e) {
2293
2293
  return U(e).map(function(e) {
2294
2294
  return n.formatTransition(e);
@@ -2311,10 +2311,10 @@ ${e.message}`);
2311
2311
  return _;
2312
2312
  }, e;
2313
2313
  }();
2314
- function Kt(e, t) {
2315
- return new Gt(e, t);
2314
+ function Gt(e, t) {
2315
+ return new Wt(e, t);
2316
2316
  }
2317
- var Y = Ue, qt = Fe, X = Le, Jt = Ye;
2317
+ var X = He, Kt = Pe, qt = Ie, Jt = Je;
2318
2318
  function Yt(e) {
2319
2319
  return Object.prototype.toString.call(e) === "[object Object]";
2320
2320
  }
@@ -2551,8 +2551,8 @@ function _n(e, t, n) {
2551
2551
  return pn(r);
2552
2552
  }
2553
2553
  var vn = /* @__PURE__ */ u((/* @__PURE__ */ s(((e, t) => {
2554
- var n = 200, r = "__lodash_hash_undefined__", i = 1, a = 2, o = 9007199254740991, s = "[object Arguments]", c = "[object Array]", l = "[object AsyncFunction]", u = "[object Boolean]", d = "[object Date]", f = "[object Error]", p = "[object Function]", m = "[object GeneratorFunction]", h = "[object Map]", g = "[object Number]", _ = "[object Null]", v = "[object Object]", y = "[object Promise]", b = "[object Proxy]", x = "[object RegExp]", S = "[object Set]", C = "[object String]", w = "[object Symbol]", T = "[object Undefined]", E = "[object WeakMap]", D = "[object ArrayBuffer]", O = "[object DataView]", k = "[object Float32Array]", A = "[object Float64Array]", j = "[object Int8Array]", M = "[object Int16Array]", N = "[object Int32Array]", P = "[object Uint8Array]", F = "[object Uint8ClampedArray]", I = "[object Uint16Array]", ee = "[object Uint32Array]", L = /[\\^$.*+?()[\]{}|]/g, R = /^\[object .+?Constructor\]$/, z = /^(?:0|[1-9]\d*)$/, B = {};
2555
- B[k] = B[A] = B[j] = B[M] = B[N] = B[P] = B[F] = B[I] = B[ee] = !0, B[s] = B[c] = B[D] = B[u] = B[O] = B[d] = B[f] = B[p] = B[h] = B[g] = B[v] = B[x] = B[S] = B[C] = B[E] = !1;
2554
+ var n = 200, r = "__lodash_hash_undefined__", i = 1, a = 2, o = 9007199254740991, s = "[object Arguments]", c = "[object Array]", l = "[object AsyncFunction]", u = "[object Boolean]", d = "[object Date]", f = "[object Error]", p = "[object Function]", m = "[object GeneratorFunction]", h = "[object Map]", g = "[object Number]", _ = "[object Null]", v = "[object Object]", y = "[object Promise]", b = "[object Proxy]", x = "[object RegExp]", S = "[object Set]", C = "[object String]", w = "[object Symbol]", T = "[object Undefined]", E = "[object WeakMap]", D = "[object ArrayBuffer]", O = "[object DataView]", k = "[object Float32Array]", A = "[object Float64Array]", j = "[object Int8Array]", M = "[object Int16Array]", N = "[object Int32Array]", P = "[object Uint8Array]", ee = "[object Uint8ClampedArray]", F = "[object Uint16Array]", I = "[object Uint32Array]", L = /[\\^$.*+?()[\]{}|]/g, R = /^\[object .+?Constructor\]$/, z = /^(?:0|[1-9]\d*)$/, B = {};
2555
+ B[k] = B[A] = B[j] = B[M] = B[N] = B[P] = B[ee] = B[F] = B[I] = !0, B[s] = B[c] = B[D] = B[u] = B[O] = B[d] = B[f] = B[p] = B[h] = B[g] = B[v] = B[x] = B[S] = B[C] = B[E] = !1;
2556
2556
  var te = typeof global == "object" && global && global.Object === Object && global, ne = typeof self == "object" && self && self.Object === Object && self, V = te || ne || Function("return this")(), re = typeof e == "object" && e && !e.nodeType && e, ie = re && typeof t == "object" && t && !t.nodeType && t, ae = ie && ie.exports === re, H = ae && te.process, oe = function() {
2557
2557
  try {
2558
2558
  return H && H.binding && H.binding("util");
@@ -2605,192 +2605,192 @@ var vn = /* @__PURE__ */ u((/* @__PURE__ */ s(((e, t) => {
2605
2605
  n[++t] = e;
2606
2606
  }), n;
2607
2607
  }
2608
- var G = Array.prototype, ge = Function.prototype, _e = Object.prototype, ve = V["__core-js_shared__"], ye = ge.toString, K = _e.hasOwnProperty, be = function() {
2609
- var e = /[^.]+$/.exec(ve && ve.keys && ve.keys.IE_PROTO || "");
2608
+ var G = Array.prototype, ge = Function.prototype, _e = Object.prototype, K = V["__core-js_shared__"], ve = ge.toString, q = _e.hasOwnProperty, ye = function() {
2609
+ var e = /[^.]+$/.exec(K && K.keys && K.keys.IE_PROTO || "");
2610
2610
  return e ? "Symbol(src)_1." + e : "";
2611
- }(), xe = _e.toString, q = RegExp("^" + ye.call(K).replace(L, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), Se = ae ? V.Buffer : void 0, Ce = V.Symbol, we = V.Uint8Array, Te = _e.propertyIsEnumerable, Ee = G.splice, De = Ce ? Ce.toStringTag : void 0, Oe = Object.getOwnPropertySymbols, ke = Se ? Se.isBuffer : void 0, Ae = he(Object.keys, Object), je = Mt(V, "DataView"), Me = Mt(V, "Map"), Ne = Mt(V, "Promise"), Pe = Mt(V, "Set"), Fe = Mt(V, "WeakMap"), Ie = Mt(Object, "create"), Le = Bt(je), Re = Bt(Me), ze = Bt(Ne), Be = Bt(Pe), Ve = Bt(Fe), He = Ce ? Ce.prototype : void 0, Ue = He ? He.valueOf : void 0;
2612
- function We(e) {
2611
+ }(), be = _e.toString, J = RegExp("^" + ve.call(q).replace(L, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), xe = ae ? V.Buffer : void 0, Se = V.Symbol, Ce = V.Uint8Array, we = _e.propertyIsEnumerable, Te = G.splice, Ee = Se ? Se.toStringTag : void 0, De = Object.getOwnPropertySymbols, Oe = xe ? xe.isBuffer : void 0, ke = he(Object.keys, Object), Ae = jt(V, "DataView"), je = jt(V, "Map"), Me = jt(V, "Promise"), Ne = jt(V, "Set"), Pe = jt(V, "WeakMap"), Fe = jt(Object, "create"), Ie = zt(Ae), Le = zt(je), Re = zt(Me), ze = zt(Ne), Be = zt(Pe), Ve = Se ? Se.prototype : void 0, He = Ve ? Ve.valueOf : void 0;
2612
+ function Ue(e) {
2613
2613
  var t = -1, n = e == null ? 0 : e.length;
2614
2614
  for (this.clear(); ++t < n;) {
2615
2615
  var r = e[t];
2616
2616
  this.set(r[0], r[1]);
2617
2617
  }
2618
2618
  }
2619
- function Ge() {
2620
- this.__data__ = Ie ? Ie(null) : {}, this.size = 0;
2619
+ function We() {
2620
+ this.__data__ = Fe ? Fe(null) : {}, this.size = 0;
2621
2621
  }
2622
- function Ke(e) {
2622
+ function Ge(e) {
2623
2623
  var t = this.has(e) && delete this.__data__[e];
2624
2624
  return this.size -= +!!t, t;
2625
2625
  }
2626
- function qe(e) {
2626
+ function Ke(e) {
2627
2627
  var t = this.__data__;
2628
- if (Ie) {
2628
+ if (Fe) {
2629
2629
  var n = t[e];
2630
2630
  return n === r ? void 0 : n;
2631
2631
  }
2632
- return K.call(t, e) ? t[e] : void 0;
2632
+ return q.call(t, e) ? t[e] : void 0;
2633
2633
  }
2634
- function Je(e) {
2634
+ function qe(e) {
2635
2635
  var t = this.__data__;
2636
- return Ie ? t[e] !== void 0 : K.call(t, e);
2636
+ return Fe ? t[e] !== void 0 : q.call(t, e);
2637
2637
  }
2638
- function Ye(e, t) {
2638
+ function Je(e, t) {
2639
2639
  var n = this.__data__;
2640
- return this.size += +!this.has(e), n[e] = Ie && t === void 0 ? r : t, this;
2640
+ return this.size += +!this.has(e), n[e] = Fe && t === void 0 ? r : t, this;
2641
2641
  }
2642
- We.prototype.clear = Ge, We.prototype.delete = Ke, We.prototype.get = qe, We.prototype.has = Je, We.prototype.set = Ye;
2643
- function Xe(e) {
2642
+ Ue.prototype.clear = We, Ue.prototype.delete = Ge, Ue.prototype.get = Ke, Ue.prototype.has = qe, Ue.prototype.set = Je;
2643
+ function Ye(e) {
2644
2644
  var t = -1, n = e == null ? 0 : e.length;
2645
2645
  for (this.clear(); ++t < n;) {
2646
2646
  var r = e[t];
2647
2647
  this.set(r[0], r[1]);
2648
2648
  }
2649
2649
  }
2650
- function Ze() {
2650
+ function Xe() {
2651
2651
  this.__data__ = [], this.size = 0;
2652
2652
  }
2653
- function Qe(e) {
2654
- var t = this.__data__, n = vt(t, e);
2655
- return n < 0 ? !1 : (n == t.length - 1 ? t.pop() : Ee.call(t, n, 1), --this.size, !0);
2653
+ function Ze(e) {
2654
+ var t = this.__data__, n = _t(t, e);
2655
+ return n < 0 ? !1 : (n == t.length - 1 ? t.pop() : Te.call(t, n, 1), --this.size, !0);
2656
2656
  }
2657
- function $e(e) {
2658
- var t = this.__data__, n = vt(t, e);
2657
+ function Qe(e) {
2658
+ var t = this.__data__, n = _t(t, e);
2659
2659
  return n < 0 ? void 0 : t[n][1];
2660
2660
  }
2661
- function et(e) {
2662
- return vt(this.__data__, e) > -1;
2661
+ function $e(e) {
2662
+ return _t(this.__data__, e) > -1;
2663
2663
  }
2664
- function tt(e, t) {
2665
- var n = this.__data__, r = vt(n, e);
2664
+ function et(e, t) {
2665
+ var n = this.__data__, r = _t(n, e);
2666
2666
  return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
2667
2667
  }
2668
- Xe.prototype.clear = Ze, Xe.prototype.delete = Qe, Xe.prototype.get = $e, Xe.prototype.has = et, Xe.prototype.set = tt;
2669
- function nt(e) {
2668
+ Ye.prototype.clear = Xe, Ye.prototype.delete = Ze, Ye.prototype.get = Qe, Ye.prototype.has = $e, Ye.prototype.set = et;
2669
+ function tt(e) {
2670
2670
  var t = -1, n = e == null ? 0 : e.length;
2671
2671
  for (this.clear(); ++t < n;) {
2672
2672
  var r = e[t];
2673
2673
  this.set(r[0], r[1]);
2674
2674
  }
2675
2675
  }
2676
- function rt() {
2676
+ function nt() {
2677
2677
  this.size = 0, this.__data__ = {
2678
- hash: new We(),
2679
- map: new (Me || Xe)(),
2680
- string: new We()
2678
+ hash: new Ue(),
2679
+ map: new (je || Ye)(),
2680
+ string: new Ue()
2681
2681
  };
2682
2682
  }
2683
- function it(e) {
2684
- var t = jt(this, e).delete(e);
2683
+ function rt(e) {
2684
+ var t = At(this, e).delete(e);
2685
2685
  return this.size -= +!!t, t;
2686
2686
  }
2687
- function at(e) {
2688
- return jt(this, e).get(e);
2687
+ function it(e) {
2688
+ return At(this, e).get(e);
2689
2689
  }
2690
- function ot(e) {
2691
- return jt(this, e).has(e);
2690
+ function at(e) {
2691
+ return At(this, e).has(e);
2692
2692
  }
2693
- function st(e, t) {
2694
- var n = jt(this, e), r = n.size;
2693
+ function ot(e, t) {
2694
+ var n = At(this, e), r = n.size;
2695
2695
  return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
2696
2696
  }
2697
- nt.prototype.clear = rt, nt.prototype.delete = it, nt.prototype.get = at, nt.prototype.has = ot, nt.prototype.set = st;
2698
- function ct(e) {
2697
+ tt.prototype.clear = nt, tt.prototype.delete = rt, tt.prototype.get = it, tt.prototype.has = at, tt.prototype.set = ot;
2698
+ function st(e) {
2699
2699
  var t = -1, n = e == null ? 0 : e.length;
2700
- for (this.__data__ = new nt(); ++t < n;) this.add(e[t]);
2700
+ for (this.__data__ = new tt(); ++t < n;) this.add(e[t]);
2701
2701
  }
2702
- function lt(e) {
2702
+ function ct(e) {
2703
2703
  return this.__data__.set(e, r), this;
2704
2704
  }
2705
- function ut(e) {
2705
+ function lt(e) {
2706
2706
  return this.__data__.has(e);
2707
2707
  }
2708
- ct.prototype.add = ct.prototype.push = lt, ct.prototype.has = ut;
2709
- function dt(e) {
2710
- var t = this.__data__ = new Xe(e);
2708
+ st.prototype.add = st.prototype.push = ct, st.prototype.has = lt;
2709
+ function ut(e) {
2710
+ var t = this.__data__ = new Ye(e);
2711
2711
  this.size = t.size;
2712
2712
  }
2713
- function ft() {
2714
- this.__data__ = new Xe(), this.size = 0;
2713
+ function dt() {
2714
+ this.__data__ = new Ye(), this.size = 0;
2715
2715
  }
2716
- function pt(e) {
2716
+ function ft(e) {
2717
2717
  var t = this.__data__, n = t.delete(e);
2718
2718
  return this.size = t.size, n;
2719
2719
  }
2720
- function mt(e) {
2720
+ function pt(e) {
2721
2721
  return this.__data__.get(e);
2722
2722
  }
2723
- function ht(e) {
2723
+ function mt(e) {
2724
2724
  return this.__data__.has(e);
2725
2725
  }
2726
- function gt(e, t) {
2726
+ function ht(e, t) {
2727
2727
  var r = this.__data__;
2728
- if (r instanceof Xe) {
2728
+ if (r instanceof Ye) {
2729
2729
  var i = r.__data__;
2730
- if (!Me || i.length < n - 1) return i.push([e, t]), this.size = ++r.size, this;
2731
- r = this.__data__ = new nt(i);
2730
+ if (!je || i.length < n - 1) return i.push([e, t]), this.size = ++r.size, this;
2731
+ r = this.__data__ = new tt(i);
2732
2732
  }
2733
2733
  return r.set(e, t), this.size = r.size, this;
2734
2734
  }
2735
- dt.prototype.clear = ft, dt.prototype.delete = pt, dt.prototype.get = mt, dt.prototype.has = ht, dt.prototype.set = gt;
2736
- function _t(e, t) {
2737
- var n = Ut(e), r = !n && Ht(e), i = !n && !r && Gt(e), a = !n && !r && !i && Yt(e), o = n || r || i || a, s = o ? ue(e.length, String) : [], c = s.length;
2738
- for (var l in e) (t || K.call(e, l)) && !(o && (l == "length" || i && (l == "offset" || l == "parent") || a && (l == "buffer" || l == "byteLength" || l == "byteOffset") || Ft(l, c))) && s.push(l);
2735
+ ut.prototype.clear = dt, ut.prototype.delete = ft, ut.prototype.get = pt, ut.prototype.has = mt, ut.prototype.set = ht;
2736
+ function gt(e, t) {
2737
+ var n = Ht(e), r = !n && Vt(e), i = !n && !r && Wt(e), a = !n && !r && !i && Yt(e), o = n || r || i || a, s = o ? ue(e.length, String) : [], c = s.length;
2738
+ for (var l in e) (t || q.call(e, l)) && !(o && (l == "length" || i && (l == "offset" || l == "parent") || a && (l == "buffer" || l == "byteLength" || l == "byteOffset") || Pt(l, c))) && s.push(l);
2739
2739
  return s;
2740
2740
  }
2741
- function vt(e, t) {
2742
- for (var n = e.length; n--;) if (Vt(e[n][0], t)) return n;
2741
+ function _t(e, t) {
2742
+ for (var n = e.length; n--;) if (Bt(e[n][0], t)) return n;
2743
2743
  return -1;
2744
2744
  }
2745
- function yt(e, t, n) {
2745
+ function vt(e, t, n) {
2746
2746
  var r = t(e);
2747
- return Ut(e) ? r : ce(r, n(e));
2747
+ return Ht(e) ? r : ce(r, n(e));
2748
2748
  }
2749
- function bt(e) {
2750
- return e == null ? e === void 0 ? T : _ : De && De in Object(e) ? J(e) : zt(e);
2749
+ function yt(e) {
2750
+ return e == null ? e === void 0 ? T : _ : Ee && Ee in Object(e) ? Y(e) : Rt(e);
2751
2751
  }
2752
- function xt(e) {
2753
- return Jt(e) && bt(e) == s;
2752
+ function bt(e) {
2753
+ return Jt(e) && yt(e) == s;
2754
2754
  }
2755
- function St(e, t, n, r, i) {
2756
- return e === t ? !0 : e == null || t == null || !Jt(e) && !Jt(t) ? e !== e && t !== t : Ct(e, t, n, r, St, i);
2755
+ function xt(e, t, n, r, i) {
2756
+ return e === t ? !0 : e == null || t == null || !Jt(e) && !Jt(t) ? e !== e && t !== t : St(e, t, n, r, xt, i);
2757
2757
  }
2758
- function Ct(e, t, n, r, a, o) {
2759
- var l = Ut(e), u = Ut(t), d = l ? c : Pt(e), f = u ? c : Pt(t);
2758
+ function St(e, t, n, r, a, o) {
2759
+ var l = Ht(e), u = Ht(t), d = l ? c : Nt(e), f = u ? c : Nt(t);
2760
2760
  d = d == s ? v : d, f = f == s ? v : f;
2761
2761
  var p = d == v, m = f == v, h = d == f;
2762
- if (h && Gt(e)) {
2763
- if (!Gt(t)) return !1;
2762
+ if (h && Wt(e)) {
2763
+ if (!Wt(t)) return !1;
2764
2764
  l = !0, p = !1;
2765
2765
  }
2766
- if (h && !p) return o ||= new dt(), l || Yt(e) ? Dt(e, t, n, r, a, o) : Ot(e, t, d, n, r, a, o);
2766
+ if (h && !p) return o ||= new ut(), l || Yt(e) ? Et(e, t, n, r, a, o) : Dt(e, t, d, n, r, a, o);
2767
2767
  if (!(n & i)) {
2768
- var g = p && K.call(e, "__wrapped__"), _ = m && K.call(t, "__wrapped__");
2768
+ var g = p && q.call(e, "__wrapped__"), _ = m && q.call(t, "__wrapped__");
2769
2769
  if (g || _) {
2770
2770
  var y = g ? e.value() : e, b = _ ? t.value() : t;
2771
- return o ||= new dt(), a(y, b, n, r, o);
2771
+ return o ||= new ut(), a(y, b, n, r, o);
2772
2772
  }
2773
2773
  }
2774
- return h ? (o ||= new dt(), kt(e, t, n, r, a, o)) : !1;
2774
+ return h ? (o ||= new ut(), Ot(e, t, n, r, a, o)) : !1;
2775
+ }
2776
+ function Ct(e) {
2777
+ return !qt(e) || It(e) ? !1 : (X(e) ? J : R).test(zt(e));
2775
2778
  }
2776
2779
  function wt(e) {
2777
- return !X(e) || Lt(e) ? !1 : (Y(e) ? q : R).test(Bt(e));
2780
+ return Jt(e) && Kt(e.length) && !!B[yt(e)];
2778
2781
  }
2779
2782
  function Tt(e) {
2780
- return Jt(e) && qt(e.length) && !!B[bt(e)];
2781
- }
2782
- function Et(e) {
2783
- if (!Rt(e)) return Ae(e);
2783
+ if (!Lt(e)) return ke(e);
2784
2784
  var t = [];
2785
- for (var n in Object(e)) K.call(e, n) && n != "constructor" && t.push(n);
2785
+ for (var n in Object(e)) q.call(e, n) && n != "constructor" && t.push(n);
2786
2786
  return t;
2787
2787
  }
2788
- function Dt(e, t, n, r, o, s) {
2788
+ function Et(e, t, n, r, o, s) {
2789
2789
  var c = n & i, l = e.length, u = t.length;
2790
2790
  if (l != u && !(c && u > l)) return !1;
2791
2791
  var d = s.get(e);
2792
2792
  if (d && s.get(t)) return d == t;
2793
- var f = -1, p = !0, m = n & a ? new ct() : void 0;
2793
+ var f = -1, p = !0, m = n & a ? new st() : void 0;
2794
2794
  for (s.set(e, t), s.set(t, e); ++f < l;) {
2795
2795
  var h = e[f], g = t[f];
2796
2796
  if (r) var _ = c ? r(g, h, f, t, e, s) : r(h, g, f, e, t, s);
@@ -2813,15 +2813,15 @@ var vn = /* @__PURE__ */ u((/* @__PURE__ */ s(((e, t) => {
2813
2813
  }
2814
2814
  return s.delete(e), s.delete(t), p;
2815
2815
  }
2816
- function Ot(e, t, n, r, o, s, c) {
2816
+ function Dt(e, t, n, r, o, s, c) {
2817
2817
  switch (n) {
2818
2818
  case O:
2819
2819
  if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) return !1;
2820
2820
  e = e.buffer, t = t.buffer;
2821
- case D: return !(e.byteLength != t.byteLength || !s(new we(e), new we(t)));
2821
+ case D: return !(e.byteLength != t.byteLength || !s(new Ce(e), new Ce(t)));
2822
2822
  case u:
2823
2823
  case d:
2824
- case g: return Vt(+e, +t);
2824
+ case g: return Bt(+e, +t);
2825
2825
  case f: return e.name == t.name && e.message == t.message;
2826
2826
  case x:
2827
2827
  case C: return e == t + "";
@@ -2832,18 +2832,18 @@ var vn = /* @__PURE__ */ u((/* @__PURE__ */ s(((e, t) => {
2832
2832
  var m = c.get(e);
2833
2833
  if (m) return m == t;
2834
2834
  r |= a, c.set(e, t);
2835
- var _ = Dt(l(e), l(t), r, o, s, c);
2835
+ var _ = Et(l(e), l(t), r, o, s, c);
2836
2836
  return c.delete(e), _;
2837
- case w: if (Ue) return Ue.call(e) == Ue.call(t);
2837
+ case w: if (He) return He.call(e) == He.call(t);
2838
2838
  }
2839
2839
  return !1;
2840
2840
  }
2841
- function kt(e, t, n, r, a, o) {
2842
- var s = n & i, c = At(e), l = c.length;
2843
- if (l != At(t).length && !s) return !1;
2841
+ function Ot(e, t, n, r, a, o) {
2842
+ var s = n & i, c = kt(e), l = c.length;
2843
+ if (l != kt(t).length && !s) return !1;
2844
2844
  for (var u = l; u--;) {
2845
2845
  var d = c[u];
2846
- if (!(s ? d in t : K.call(t, d))) return !1;
2846
+ if (!(s ? d in t : q.call(t, d))) return !1;
2847
2847
  }
2848
2848
  var f = o.get(e);
2849
2849
  if (f && o.get(t)) return f == t;
@@ -2865,63 +2865,63 @@ var vn = /* @__PURE__ */ u((/* @__PURE__ */ s(((e, t) => {
2865
2865
  }
2866
2866
  return o.delete(e), o.delete(t), p;
2867
2867
  }
2868
- function At(e) {
2869
- return yt(e, Xt, Nt);
2868
+ function kt(e) {
2869
+ return vt(e, Xt, Mt);
2870
2870
  }
2871
- function jt(e, t) {
2871
+ function At(e, t) {
2872
2872
  var n = e.__data__;
2873
- return It(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
2873
+ return Ft(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
2874
2874
  }
2875
- function Mt(e, t) {
2875
+ function jt(e, t) {
2876
2876
  var n = pe(e, t);
2877
- return wt(n) ? n : void 0;
2877
+ return Ct(n) ? n : void 0;
2878
2878
  }
2879
- function J(e) {
2880
- var t = K.call(e, De), n = e[De];
2879
+ function Y(e) {
2880
+ var t = q.call(e, Ee), n = e[Ee];
2881
2881
  try {
2882
- e[De] = void 0;
2882
+ e[Ee] = void 0;
2883
2883
  var r = !0;
2884
2884
  } catch {}
2885
- var i = xe.call(e);
2886
- return r && (t ? e[De] = n : delete e[De]), i;
2885
+ var i = be.call(e);
2886
+ return r && (t ? e[Ee] = n : delete e[Ee]), i;
2887
2887
  }
2888
- var Nt = Oe ? function(e) {
2889
- return e == null ? [] : (e = Object(e), se(Oe(e), function(t) {
2890
- return Te.call(e, t);
2888
+ var Mt = De ? function(e) {
2889
+ return e == null ? [] : (e = Object(e), se(De(e), function(t) {
2890
+ return we.call(e, t);
2891
2891
  }));
2892
- } : Zt, Pt = bt;
2893
- (je && Pt(new je(/* @__PURE__ */ new ArrayBuffer(1))) != O || Me && Pt(new Me()) != h || Ne && Pt(Ne.resolve()) != y || Pe && Pt(new Pe()) != S || Fe && Pt(new Fe()) != E) && (Pt = function(e) {
2894
- var t = bt(e), n = t == v ? e.constructor : void 0, r = n ? Bt(n) : "";
2892
+ } : Zt, Nt = yt;
2893
+ (Ae && Nt(new Ae(/* @__PURE__ */ new ArrayBuffer(1))) != O || je && Nt(new je()) != h || Me && Nt(Me.resolve()) != y || Ne && Nt(new Ne()) != S || Pe && Nt(new Pe()) != E) && (Nt = function(e) {
2894
+ var t = yt(e), n = t == v ? e.constructor : void 0, r = n ? zt(n) : "";
2895
2895
  if (r) switch (r) {
2896
- case Le: return O;
2897
- case Re: return h;
2898
- case ze: return y;
2899
- case Be: return S;
2900
- case Ve: return E;
2896
+ case Ie: return O;
2897
+ case Le: return h;
2898
+ case Re: return y;
2899
+ case ze: return S;
2900
+ case Be: return E;
2901
2901
  }
2902
2902
  return t;
2903
2903
  });
2904
- function Ft(e, t) {
2904
+ function Pt(e, t) {
2905
2905
  return t ??= o, !!t && (typeof e == "number" || z.test(e)) && e > -1 && e % 1 == 0 && e < t;
2906
2906
  }
2907
- function It(e) {
2907
+ function Ft(e) {
2908
2908
  var t = typeof e;
2909
2909
  return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
2910
2910
  }
2911
- function Lt(e) {
2912
- return !!be && be in e;
2911
+ function It(e) {
2912
+ return !!ye && ye in e;
2913
2913
  }
2914
- function Rt(e) {
2914
+ function Lt(e) {
2915
2915
  var t = e && e.constructor;
2916
2916
  return e === (typeof t == "function" && t.prototype || _e);
2917
2917
  }
2918
- function zt(e) {
2919
- return xe.call(e);
2918
+ function Rt(e) {
2919
+ return be.call(e);
2920
2920
  }
2921
- function Bt(e) {
2921
+ function zt(e) {
2922
2922
  if (e != null) {
2923
2923
  try {
2924
- return ye.call(e);
2924
+ return ve.call(e);
2925
2925
  } catch {}
2926
2926
  try {
2927
2927
  return e + "";
@@ -2929,39 +2929,39 @@ var vn = /* @__PURE__ */ u((/* @__PURE__ */ s(((e, t) => {
2929
2929
  }
2930
2930
  return "";
2931
2931
  }
2932
- function Vt(e, t) {
2932
+ function Bt(e, t) {
2933
2933
  return e === t || e !== e && t !== t;
2934
2934
  }
2935
- var Ht = xt(function() {
2935
+ var Vt = bt(function() {
2936
2936
  return arguments;
2937
- }()) ? xt : function(e) {
2938
- return Jt(e) && K.call(e, "callee") && !Te.call(e, "callee");
2939
- }, Ut = Array.isArray;
2940
- function Wt(e) {
2941
- return e != null && qt(e.length) && !Y(e);
2937
+ }()) ? bt : function(e) {
2938
+ return Jt(e) && q.call(e, "callee") && !we.call(e, "callee");
2939
+ }, Ht = Array.isArray;
2940
+ function Ut(e) {
2941
+ return e != null && Kt(e.length) && !X(e);
2942
2942
  }
2943
- var Gt = ke || Qt;
2944
- function Kt(e, t) {
2945
- return St(e, t);
2943
+ var Wt = Oe || Qt;
2944
+ function Gt(e, t) {
2945
+ return xt(e, t);
2946
2946
  }
2947
- function Y(e) {
2948
- if (!X(e)) return !1;
2949
- var t = bt(e);
2947
+ function X(e) {
2948
+ if (!qt(e)) return !1;
2949
+ var t = yt(e);
2950
2950
  return t == p || t == m || t == l || t == b;
2951
2951
  }
2952
- function qt(e) {
2952
+ function Kt(e) {
2953
2953
  return typeof e == "number" && e > -1 && e % 1 == 0 && e <= o;
2954
2954
  }
2955
- function X(e) {
2955
+ function qt(e) {
2956
2956
  var t = typeof e;
2957
2957
  return e != null && (t == "object" || t == "function");
2958
2958
  }
2959
2959
  function Jt(e) {
2960
2960
  return typeof e == "object" && !!e;
2961
2961
  }
2962
- var Yt = U ? de(U) : Tt;
2962
+ var Yt = U ? de(U) : wt;
2963
2963
  function Xt(e) {
2964
- return Wt(e) ? _t(e) : Et(e);
2964
+ return Ut(e) ? gt(e) : Tt(e);
2965
2965
  }
2966
2966
  function Zt() {
2967
2967
  return [];
@@ -2969,7 +2969,7 @@ var vn = /* @__PURE__ */ u((/* @__PURE__ */ s(((e, t) => {
2969
2969
  function Qt() {
2970
2970
  return !1;
2971
2971
  }
2972
- t.exports = Kt;
2972
+ t.exports = Gt;
2973
2973
  })))(), 1), yn = "EXPERIENCE_STARTED", bn = "SHOW", xn = "STOP_EXPERIENCE", Sn = {
2974
2974
  NAVIGATION: "navigation",
2975
2975
  COMPLETED: "completed",
@@ -3121,7 +3121,7 @@ var vn = /* @__PURE__ */ u((/* @__PURE__ */ s(((e, t) => {
3121
3121
  }, Ar = ({ getRoot: e }) => {
3122
3122
  let t = e();
3123
3123
  t.parentElement && t.remove();
3124
- }, jr = ({ getRoot: e }) => Xe([{
3124
+ }, jr = ({ getRoot: e }) => Ye([{
3125
3125
  cond: "hasCustomContainer",
3126
3126
  actions: [() => {
3127
3127
  Ar({ getRoot: e });
@@ -3153,7 +3153,7 @@ var vn = /* @__PURE__ */ u((/* @__PURE__ */ s(((e, t) => {
3153
3153
  getWindowReference: t
3154
3154
  }));
3155
3155
  });
3156
- }, Pr = qt(tr, { to: "themeRemovalService" }), Fr = qt(nr, { to: "themeRemovalService" }), Ir = /* @__PURE__ */ s(((e, t) => {
3156
+ }, Pr = Kt(tr, { to: "themeRemovalService" }), Fr = Kt(nr, { to: "themeRemovalService" }), Ir = /* @__PURE__ */ s(((e, t) => {
3157
3157
  (function() {
3158
3158
  function e(e, t, n) {
3159
3159
  return e.call.apply(e.bind, arguments);
@@ -3331,10 +3331,10 @@ var vn = /* @__PURE__ */ u((/* @__PURE__ */ s(((e, t) => {
3331
3331
  function P(e) {
3332
3332
  return "display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:" + S(e.c) + ";" + ("font-style:" + w(e) + ";font-weight:" + (e.f + "00") + ";");
3333
3333
  }
3334
- function F(e, t, n, r, i, a) {
3334
+ function ee(e, t, n, r, i, a) {
3335
3335
  this.g = e, this.j = t, this.a = r, this.c = n, this.f = i || 3e3, this.h = a || void 0;
3336
3336
  }
3337
- F.prototype.start = function() {
3337
+ ee.prototype.start = function() {
3338
3338
  var e = this.c.o.document, t = this, n = i(), r = new Promise(function(r, a) {
3339
3339
  function o() {
3340
3340
  i() - n >= t.f ? a() : e.fonts.load(x(t.a), t.h).then(function(e) {
@@ -3353,10 +3353,10 @@ var vn = /* @__PURE__ */ u((/* @__PURE__ */ s(((e, t) => {
3353
3353
  t.j(t.a);
3354
3354
  });
3355
3355
  };
3356
- function I(e, t, n, r, i, a, o) {
3356
+ function F(e, t, n, r, i, a, o) {
3357
3357
  this.v = e, this.B = t, this.c = n, this.a = r, this.s = o || "BESbswy", this.f = {}, this.w = i || 3e3, this.u = a || null, this.m = this.j = this.h = this.g = null, this.g = new M(this.c, this.s), this.h = new M(this.c, this.s), this.j = new M(this.c, this.s), this.m = new M(this.c, this.s), e = new b(this.a.c + ",serif", C(this.a)), e = P(e), this.g.a.style.cssText = e, e = new b(this.a.c + ",sans-serif", C(this.a)), e = P(e), this.h.a.style.cssText = e, e = new b("serif", C(this.a)), e = P(e), this.j.a.style.cssText = e, e = new b("sans-serif", C(this.a)), e = P(e), this.m.a.style.cssText = e, N(this.g), N(this.h), N(this.j), N(this.m);
3358
3358
  }
3359
- var ee = {
3359
+ var I = {
3360
3360
  D: "serif",
3361
3361
  C: "sans-serif"
3362
3362
  }, L = null;
@@ -3367,11 +3367,11 @@ var vn = /* @__PURE__ */ u((/* @__PURE__ */ s(((e, t) => {
3367
3367
  }
3368
3368
  return L;
3369
3369
  }
3370
- I.prototype.start = function() {
3370
+ F.prototype.start = function() {
3371
3371
  this.f.serif = this.j.a.offsetWidth, this.f["sans-serif"] = this.m.a.offsetWidth, this.A = i(), B(this);
3372
3372
  };
3373
3373
  function z(e, t, n) {
3374
- for (var r in ee) if (ee.hasOwnProperty(r) && t === e.f[ee[r]] && n === e.f[ee[r]]) return !0;
3374
+ for (var r in I) if (I.hasOwnProperty(r) && t === e.f[I[r]] && n === e.f[I[r]]) return !0;
3375
3375
  return !1;
3376
3376
  }
3377
3377
  function B(e) {
@@ -3426,7 +3426,7 @@ var vn = /* @__PURE__ */ u((/* @__PURE__ */ s(((e, t) => {
3426
3426
  var m = /Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent), h = /OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent) && /Apple/.exec(window.navigator.vendor);
3427
3427
  re = m ? 42 < parseInt(m[1], 10) : !h;
3428
3428
  } else re = !1;
3429
- p = re ? new F(r(t.g, t), r(t.h, t), t.c, d, t.s, f) : new I(r(t.g, t), r(t.h, t), t.c, d, t.s, e, f), l.push(p);
3429
+ p = re ? new ee(r(t.g, t), r(t.h, t), t.c, d, t.s, f) : new F(r(t.g, t), r(t.h, t), t.c, d, t.s, e, f), l.push(p);
3430
3430
  }
3431
3431
  for (c = 0; c < l.length; c++) l[c].start();
3432
3432
  }
@@ -3576,10 +3576,10 @@ var vn = /* @__PURE__ */ u((/* @__PURE__ */ s(((e, t) => {
3576
3576
  e(a.a, a.c, _e);
3577
3577
  });
3578
3578
  };
3579
- function ve(e, t) {
3579
+ function K(e, t) {
3580
3580
  this.c = e, this.a = t;
3581
3581
  }
3582
- ve.prototype.load = function(e) {
3582
+ K.prototype.load = function(e) {
3583
3583
  var t = this.a.id, n = this.c.o;
3584
3584
  t ? m(this.c, (this.a.api || "https://use.typekit.net") + "/" + t + ".js", function(t) {
3585
3585
  if (t) e([]);
@@ -3597,10 +3597,10 @@ var vn = /* @__PURE__ */ u((/* @__PURE__ */ s(((e, t) => {
3597
3597
  }
3598
3598
  }, 2e3) : e([]);
3599
3599
  };
3600
- function ye(e, t) {
3600
+ function ve(e, t) {
3601
3601
  this.c = e, this.f = t, this.a = [];
3602
3602
  }
3603
- ye.prototype.load = function(e) {
3603
+ ve.prototype.load = function(e) {
3604
3604
  var t = this.f.id, n = this.c.o, r = this;
3605
3605
  t ? (n.__webfontfontdeckmodule__ ||= {}, n.__webfontfontdeckmodule__[t] = function(t, n) {
3606
3606
  for (var i = 0, a = n.fonts.length; i < a; ++i) {
@@ -3612,20 +3612,20 @@ var vn = /* @__PURE__ */ u((/* @__PURE__ */ s(((e, t) => {
3612
3612
  t && e([]);
3613
3613
  })) : e([]);
3614
3614
  };
3615
- var K = new ae(window);
3616
- K.a.c.custom = function(e, t) {
3615
+ var q = new ae(window);
3616
+ q.a.c.custom = function(e, t) {
3617
3617
  return new se(t, e);
3618
- }, K.a.c.fontdeck = function(e, t) {
3619
- return new ye(t, e);
3620
- }, K.a.c.monotype = function(e, t) {
3621
- return new U(t, e);
3622
- }, K.a.c.typekit = function(e, t) {
3618
+ }, q.a.c.fontdeck = function(e, t) {
3623
3619
  return new ve(t, e);
3624
- }, K.a.c.google = function(e, t) {
3620
+ }, q.a.c.monotype = function(e, t) {
3621
+ return new U(t, e);
3622
+ }, q.a.c.typekit = function(e, t) {
3623
+ return new K(t, e);
3624
+ }, q.a.c.google = function(e, t) {
3625
3625
  return new ge(t, e);
3626
3626
  };
3627
- var be = { load: r(K.load, K) };
3628
- t !== void 0 && t.exports ? t.exports = be : (window.WebFont = be, window.WebFontConfig && K.load(window.WebFontConfig));
3627
+ var ye = { load: r(q.load, q) };
3628
+ t !== void 0 && t.exports ? t.exports = ye : (window.WebFont = ye, window.WebFontConfig && q.load(window.WebFontConfig));
3629
3629
  })();
3630
3630
  })), Lr = /* @__PURE__ */ s(((e, t) => {
3631
3631
  function n(e, t) {
@@ -3716,19 +3716,19 @@ var qr = (0, zr.default)((e, t) => {
3716
3716
  Jr(r?.json?.typekitId ?? i, r?.json), Yr(r?.css, t, e), Yr(n, t, e);
3717
3717
  }, Zr = async (e, t) => {
3718
3718
  await Xr(e), t && e.shadowRoot.querySelectorAll(`.theme-${t}`).forEach((e) => e.remove());
3719
- }, Qr = Y({ step: ({ step: e }, t) => ({
3719
+ }, Qr = X({ step: ({ step: e }, t) => ({
3720
3720
  ...e,
3721
3721
  virtualizedContent: t.virtualizedContent
3722
- }) }), $r = (e) => Y({ step: (t, n) => ({
3722
+ }) }), $r = (e) => X({ step: (t, n) => ({
3723
3723
  stepConfig: n.stepConfig,
3724
3724
  virtualizedContent: e(n.stepConfig)
3725
- }) }), ei = Y({
3725
+ }) }), ei = X({
3726
3726
  experience: (e, t) => t.experience,
3727
3727
  step: ({ step: e }, t) => ({
3728
3728
  ...e,
3729
3729
  ...t.stepConfig
3730
3730
  })
3731
- }), ti = X(yn), ni = X(({ step: e, stopReason: t }) => ({
3731
+ }), ti = qt(yn), ni = qt(({ step: e, stopReason: t }) => ({
3732
3732
  type: Ln,
3733
3733
  id: e.id,
3734
3734
  reason: t
@@ -3742,7 +3742,7 @@ var qr = (0, zr.default)((e, t) => {
3742
3742
  if (r || !n) return;
3743
3743
  let a = e("getWindowReference")().document.documentElement.querySelector(`#${vr(i)}`), o = a.getAttribute("themeId");
3744
3744
  a?.setAttribute("themeId", n), Zr(a, o);
3745
- }, ai = (e) => Y({ step: ({ step: t }) => {
3745
+ }, ai = (e) => X({ step: ({ step: t }) => {
3746
3746
  if (t.type !== "tooltip" || t.contentType === "application/json") return t;
3747
3747
  let n = Object.entries(t.actions).filter(([, e]) => e.find((e) => e.on === "click")).map(([e]) => e), r = t.traits.filter(({ config: e }) => e.targetId).map(({ config: e }) => e.targetId);
3748
3748
  return {
@@ -3752,13 +3752,13 @@ var qr = (0, zr.default)((e, t) => {
3752
3752
  focusableEls: r
3753
3753
  })
3754
3754
  };
3755
- } }), oi = Xe([{
3755
+ } }), oi = Ye([{
3756
3756
  cond: (e, t) => t.errorEvent?.type === ir,
3757
- actions: [Ne({
3757
+ actions: [Me({
3758
3758
  type: An,
3759
3759
  isAutoRecoverEvent: !0
3760
3760
  })]
3761
- }]), si = Y({ actionsRunning: !0 }), ci = Y({ actionsRunning: !1 }), li = (e, t) => {
3761
+ }]), si = X({ actionsRunning: !0 }), ci = X({ actionsRunning: !1 }), li = (e, t) => {
3762
3762
  let n = t.changedExperienceTraits && t.changedExperienceTraits.changedTraits.length > 0, r = t.changedExperienceTraits && (t.changedExperienceTraits.addedTraits.length > 0 || t.changedExperienceTraits.removedTraits.length > 0), i = t.changedStepTraits && t.changedStepTraits.changedTraits.length > 0, a = t.changedStepTraits && (t.changedStepTraits.addedTraits.length > 0 || t.changedStepTraits.removedTraits.length > 0);
3763
3763
  return r || a ? !1 : !!(n || i);
3764
3764
  }, ui = "There is already a key registered with this name", di = "Key name should be string and callback a valid function", fi = () => {
@@ -4102,7 +4102,7 @@ var qr = (0, zr.default)((e, t) => {
4102
4102
  return {
4103
4103
  createOverrideCallback: n,
4104
4104
  getOverrides: r,
4105
- applyOverrides: Y(({ step: t }) => ({ step: {
4105
+ applyOverrides: X(({ step: t }) => ({ step: {
4106
4106
  ...t,
4107
4107
  virtualizedContent: e(t.virtualizedContent, r)
4108
4108
  } })),
@@ -4662,8 +4662,8 @@ var mo = (...e) => (t) => e.reduce((e, t) => t(e), t), ho = (e) => e.reduce((e,
4662
4662
  isCoreEvent: !0,
4663
4663
  localeName: e.context?.localeName || "default",
4664
4664
  localeId: e.context?.localeId || "default",
4665
- campaignId: e.campaignId ?? null,
4666
- tacticId: e.tacticId ?? null,
4665
+ ...e.campaignId != null && { campaignId: e.campaignId },
4666
+ ...e.tacticId != null && { tacticId: e.tacticId },
4667
4667
  timestamp: Date.now(),
4668
4668
  version: e.version,
4669
4669
  name: yo(n),
@@ -4739,7 +4739,7 @@ var mo = (...e) => (t) => e.reduce((e, t) => t(e), t), ho = (e) => e.reduce((e,
4739
4739
  ...a,
4740
4740
  errorId: n
4741
4741
  });
4742
- }, f = Y((e, { type: t, name: n = "" }) => {
4742
+ }, f = X((e, { type: t, name: n = "" }) => {
4743
4743
  let r = t === "EXTENDED_EVENT" ? n : t;
4744
4744
  return { blockedEvents: {
4745
4745
  ...e.blockedEvents,
@@ -4767,7 +4767,7 @@ var mo = (...e) => (t) => e.reduce((e, t) => t(e), t), ho = (e) => e.reduce((e,
4767
4767
  isEventEnabled: So
4768
4768
  }
4769
4769
  };
4770
- }, wo = Kt({
4770
+ }, wo = Gt({
4771
4771
  initial: "waitingForAsyncEvents",
4772
4772
  context: { runHooksDone: !1 },
4773
4773
  states: {
@@ -4776,21 +4776,21 @@ var mo = (...e) => (t) => e.reduce((e, t) => t(e), t), ho = (e) => e.reduce((e,
4776
4776
  ERROR: "error",
4777
4777
  RUN_HOOKS_DONE: {
4778
4778
  target: "",
4779
- actions: Y({ runHooksDone: !0 })
4779
+ actions: X({ runHooksDone: !0 })
4780
4780
  }
4781
4781
  } },
4782
4782
  update_step: {
4783
4783
  always: [{
4784
4784
  target: "done",
4785
4785
  cond: (e) => e.runHooksDone,
4786
- actions: [X("RERENDER")]
4786
+ actions: [qt("RERENDER")]
4787
4787
  }],
4788
4788
  on: {
4789
4789
  UPDATE_STEP: "",
4790
4790
  ERROR: "error",
4791
4791
  RUN_HOOKS_DONE: {
4792
4792
  target: "done",
4793
- actions: [Y({ runHooksDone: !0 }), X("RERENDER")]
4793
+ actions: [X({ runHooksDone: !0 }), qt("RERENDER")]
4794
4794
  }
4795
4795
  }
4796
4796
  },
@@ -4798,20 +4798,20 @@ var mo = (...e) => (t) => e.reduce((e, t) => t(e), t), ho = (e) => e.reduce((e,
4798
4798
  always: [{
4799
4799
  target: "done",
4800
4800
  cond: (e) => e.runHooksDone,
4801
- actions: [X("FORCE_ERROR")]
4801
+ actions: [qt("FORCE_ERROR")]
4802
4802
  }],
4803
4803
  on: {
4804
4804
  UPDATE_STEP: "",
4805
4805
  ERROR: "",
4806
4806
  RUN_HOOKS_DONE: {
4807
4807
  target: "done",
4808
- actions: [Y({ runHooksDone: !0 }), X("FORCE_ERROR")]
4808
+ actions: [X({ runHooksDone: !0 }), qt("FORCE_ERROR")]
4809
4809
  }
4810
4810
  }
4811
4811
  },
4812
4812
  done: { type: "final" }
4813
4813
  }
4814
- }), To = Kt({
4814
+ }), To = Gt({
4815
4815
  initial: "waitingForAsyncEvents",
4816
4816
  context: { runHooksDone: !1 },
4817
4817
  states: {
@@ -4819,18 +4819,18 @@ var mo = (...e) => (t) => e.reduce((e, t) => t(e), t), ho = (e) => e.reduce((e,
4819
4819
  RECOVER_STEP: "recover_step",
4820
4820
  RUN_HOOKS_DONE: {
4821
4821
  target: "",
4822
- actions: Y({ runHooksDone: !0 })
4822
+ actions: X({ runHooksDone: !0 })
4823
4823
  }
4824
4824
  } },
4825
4825
  recover_step: {
4826
4826
  always: [{
4827
4827
  target: "done",
4828
4828
  cond: (e) => e.runHooksDone,
4829
- actions: [X("FORCE_RECOVER")]
4829
+ actions: [qt("FORCE_RECOVER")]
4830
4830
  }],
4831
4831
  on: { RUN_HOOKS_DONE: {
4832
4832
  target: "done",
4833
- actions: [Y({ runHooksDone: !0 }), X("FORCE_RECOVER")]
4833
+ actions: [X({ runHooksDone: !0 }), qt("FORCE_RECOVER")]
4834
4834
  } }
4835
4835
  },
4836
4836
  done: { type: "final" }
@@ -4869,14 +4869,14 @@ var mo = (...e) => (t) => e.reduce((e, t) => t(e), t), ho = (e) => e.reduce((e,
4869
4869
  },
4870
4870
  EXPERIENCE_DISMISSED: {
4871
4871
  target: "",
4872
- actions: ["experienceDismissed", X({
4872
+ actions: ["experienceDismissed", qt({
4873
4873
  type: xn,
4874
4874
  reason: Sn.DISMISSED
4875
4875
  })]
4876
4876
  },
4877
4877
  EXPERIENCE_SNOOZED: {
4878
4878
  target: "",
4879
- actions: ["experienceSnoozed", X({
4879
+ actions: ["experienceSnoozed", qt({
4880
4880
  type: xn,
4881
4881
  reason: Sn.DISMISSED
4882
4882
  })]
@@ -4926,9 +4926,9 @@ var mo = (...e) => (t) => e.reduce((e, t) => t(e), t), ho = (e) => e.reduce((e,
4926
4926
  cond: "didContentChanged"
4927
4927
  }
4928
4928
  ],
4929
- [xn]: { actions: [X(xn)] },
4929
+ [xn]: { actions: [qt(xn)] },
4930
4930
  FORWARD_TO_PARENT: [{
4931
- actions: [X((e, { eventType: t, ...n }) => ({
4931
+ actions: [qt((e, { eventType: t, ...n }) => ({
4932
4932
  ...n,
4933
4933
  type: t
4934
4934
  }))],
@@ -5196,19 +5196,19 @@ var mo = (...e) => (t) => e.reduce((e, t) => t(e), t), ho = (e) => e.reduce((e,
5196
5196
  }), { addHook: T, runStepPreBeginHooks: E, runStepBeginHooks: D, runStepPreRenderHooks: O, runStepPostRenderHooks: k, runStepEndHooks: A, runStepErrorHooks: j, removeStepHooks: M, runStepContainerChangeHooks: N } = t({
5197
5197
  step: e,
5198
5198
  overrideStyle: m
5199
- }), P = Ei({ addHook: T }), F = Ti({
5199
+ }), P = Ei({ addHook: T }), ee = Ti({
5200
5200
  overrideStyle: m,
5201
5201
  getContainer: S,
5202
5202
  getRoot: w
5203
- }, i), I = n({
5203
+ }, i), F = n({
5204
5204
  overrideStyle: m,
5205
5205
  getContainer: S,
5206
5206
  getRoot: w
5207
- }, i), ee = Nr({
5207
+ }, i), I = Nr({
5208
5208
  getRoot: w,
5209
5209
  getWindowReference: h
5210
5210
  }), L = ii(i), R = Co(i), z = (e) => e.contentType === "text/html" ? o(vo(_o(e.content))) : s(e.content);
5211
- return Kt({
5211
+ return Gt({
5212
5212
  ...Eo,
5213
5213
  context: {
5214
5214
  id: `step-machine-${e.id}`,
@@ -5245,7 +5245,7 @@ var mo = (...e) => (t) => e.reduce((e, t) => t(e), t), ho = (e) => e.reduce((e,
5245
5245
  runStepErrorHooks: j,
5246
5246
  runStepContainerChangeHooks: N,
5247
5247
  updateStepContext: ei,
5248
- rebindActions: qt((e) => ({
5248
+ rebindActions: Kt((e) => ({
5249
5249
  type: lr,
5250
5250
  step: e.step,
5251
5251
  experience: e.experience
@@ -5262,37 +5262,37 @@ var mo = (...e) => (t) => e.reduce((e, t) => t(e), t), ho = (e) => e.reduce((e,
5262
5262
  notifyStepStopped: ni,
5263
5263
  ...R.stepActions,
5264
5264
  blockEvent: R.helpers.blockEvent,
5265
- queueStepSeen: Y({ pendingStepSeen: !0 }),
5266
- markErrorReported: Y({ errorReported: !0 }),
5267
- markStepErrorEmitted: Y({ stepErrorEmitted: !0 }),
5268
- clearStepErrorEmitted: Y({ stepErrorEmitted: !1 }),
5269
- reportStepErrorOnce: Xe([{
5265
+ queueStepSeen: X({ pendingStepSeen: !0 }),
5266
+ markErrorReported: X({ errorReported: !0 }),
5267
+ markStepErrorEmitted: X({ stepErrorEmitted: !0 }),
5268
+ clearStepErrorEmitted: X({ stepErrorEmitted: !1 }),
5269
+ reportStepErrorOnce: Ye([{
5270
5270
  cond: (e) => !e.stepErrorEmitted,
5271
5271
  actions: ["stepError", "markStepErrorEmitted"]
5272
5272
  }]),
5273
- commitPendingStepSeen: Y((e) => (e.pendingStepSeen && !e.errorReported && R.stepActions.stepSeen(e), { pendingStepSeen: !1 })),
5273
+ commitPendingStepSeen: X((e) => (e.pendingStepSeen && !e.errorReported && R.stepActions.stepSeen(e), { pendingStepSeen: !1 })),
5274
5274
  autoRecover: oi,
5275
5275
  setActionsRunning: si,
5276
5276
  setActionsFinished: ci,
5277
- saveStopReason: Y({ stopReason: (e, t) => t.reason }),
5278
- addStoppedCallback: Y({ stoppedCallbacks: (e, t) => t.onStopped ? [...e.stoppedCallbacks, t.onStopped] : e.stoppedCallbacks }),
5277
+ saveStopReason: X({ stopReason: (e, t) => t.reason }),
5278
+ addStoppedCallback: X({ stoppedCallbacks: (e, t) => t.onStopped ? [...e.stoppedCallbacks, t.onStopped] : e.stoppedCallbacks }),
5279
5279
  callStoppedCallbacks: (e) => e.stoppedCallbacks.forEach((e) => {
5280
5280
  try {
5281
5281
  e();
5282
5282
  } catch {}
5283
5283
  }),
5284
- deferTransitionToEnd: qt({ type: Vn }, { delay: 0 }),
5285
- saveChangedStepTraits: Y({ changedStepTraits: (e, t) => t.changedStepTraits ?? null }),
5286
- clearChangedStepTraits: Y({ changedStepTraits: () => null }),
5287
- saveChangedExperienceTraits: Y({ changedExperienceTraits: (e, t) => t.changedExperienceTraits ?? null }),
5288
- clearChangedExperienceTraits: Y({ changedExperienceTraits: () => null })
5284
+ deferTransitionToEnd: Kt({ type: Vn }, { delay: 0 }),
5285
+ saveChangedStepTraits: X({ changedStepTraits: (e, t) => t.changedStepTraits ?? null }),
5286
+ clearChangedStepTraits: X({ changedStepTraits: () => null }),
5287
+ saveChangedExperienceTraits: X({ changedExperienceTraits: (e, t) => t.changedExperienceTraits ?? null }),
5288
+ clearChangedExperienceTraits: X({ changedExperienceTraits: () => null })
5289
5289
  },
5290
5290
  services: {
5291
5291
  runStepTraits: P,
5292
5292
  render: v,
5293
- hooksService: I,
5294
- actionsService: F,
5295
- themeRemovalService: ee
5293
+ hooksService: F,
5294
+ actionsService: ee,
5295
+ themeRemovalService: I
5296
5296
  },
5297
5297
  guards: {
5298
5298
  hasCustomContainer: C,
@@ -5312,7 +5312,7 @@ var mo = (...e) => (t) => e.reduce((e, t) => t(e), t), ho = (e) => e.reduce((e,
5312
5312
  shouldFireStepCompletedEvent: (e, t) => t.hookType === "step.end" && e.blockedEvents.STEP_SEEN && e.stopReason !== Sn.NAVIGATION && e.stopReason !== Sn.DISMISSED && e.stopReason !== Sn.ERROR
5313
5313
  }
5314
5314
  });
5315
- }, Oo = ({ createStepHooks: e, createHooksService: t, get: n }) => Y({ stepMachines: ({ experience: r, experienceInstanceId: i }) => {
5315
+ }, Oo = ({ createStepHooks: e, createHooksService: t, get: n }) => X({ stepMachines: ({ experience: r, experienceInstanceId: i }) => {
5316
5316
  let a = {
5317
5317
  experience: r,
5318
5318
  experienceInstanceId: i,
@@ -5320,8 +5320,8 @@ var mo = (...e) => (t) => e.reduce((e, t) => t(e), t), ho = (e) => e.reduce((e,
5320
5320
  createHooksService: t,
5321
5321
  get: n
5322
5322
  };
5323
- return r.steps.reduce((e, t) => (e[`${t.id}`] = Ft(Do(t, a), `step-machine - ${t.id}`), e), {});
5324
- } }), ko = ({ createStepHooks: e, createHooksService: t, get: n }) => Y({ stepMachines: ({ experience: r, stepMachines: i }, a) => {
5323
+ return r.steps.reduce((e, t) => (e[`${t.id}`] = Pt(Do(t, a), `step-machine - ${t.id}`), e), {});
5324
+ } }), ko = ({ createStepHooks: e, createHooksService: t, get: n }) => X({ stepMachines: ({ experience: r, stepMachines: i }, a) => {
5325
5325
  let o = {
5326
5326
  experience: r,
5327
5327
  createStepHooks: e,
@@ -5330,7 +5330,7 @@ var mo = (...e) => (t) => e.reduce((e, t) => t(e), t), ho = (e) => e.reduce((e,
5330
5330
  }, s = r.steps.find((e) => e.id === a.id);
5331
5331
  return s ? {
5332
5332
  ...i,
5333
- [`${a.id}`]: Ft(Do(s, o), `step-machine - ${a.id}`)
5333
+ [`${a.id}`]: Pt(Do(s, o), `step-machine - ${a.id}`)
5334
5334
  } : i;
5335
5335
  } }), Ao = (e) => (t, { id: n, ...r }) => {
5336
5336
  t.stepMachines[n]?.send({
@@ -5366,7 +5366,7 @@ var mo = (...e) => (t) => e.reduce((e, t) => t(e), t), ho = (e) => e.reduce((e,
5366
5366
  return !t || t.type !== e.type ? !1 : !(0, vn.default)(t.config || {}, e.config || {});
5367
5367
  })
5368
5368
  };
5369
- }, zo = Y((e, t) => {
5369
+ }, zo = X((e, t) => {
5370
5370
  let n = Ro(e.experience.traits, t.experience.traits);
5371
5371
  return Object.entries(e.stepMachines).forEach(([r, i]) => {
5372
5372
  let a = e.experience.steps.find((e) => e.id === r), o = t.experience.steps.find((e) => e.id === r);
@@ -5384,7 +5384,7 @@ var mo = (...e) => (t) => e.reduce((e, t) => t(e), t), ho = (e) => e.reduce((e,
5384
5384
  Object.values(e.stepMachines).forEach((e) => {
5385
5385
  e.send({ type: ir });
5386
5386
  });
5387
- }, Vo = Y({ experienceInstanceId: () => gn() }), Ho = Y({ stepMachines: (e, t) => Object.entries(e.stepMachines).reduce((e, [n, r]) => (n !== t.id && (e[n] = r), e), {}) }), Uo = Y({ experience: ({ experience: e }, t) => {
5387
+ }, Vo = X({ experienceInstanceId: () => gn() }), Ho = X({ stepMachines: (e, t) => Object.entries(e.stepMachines).reduce((e, [n, r]) => (n !== t.id && (e[n] = r), e), {}) }), Uo = X({ experience: ({ experience: e }, t) => {
5388
5388
  let n = e.steps.findIndex((e) => e.id === t.id);
5389
5389
  return n === -1 ? e : dn(e, `steps.${n}.traits`, (e) => e.filter(({ once: e = !1 }) => !e));
5390
5390
  } }), Wo = ({ addHook: e }) => ({ experience: t }) => (n) => {
@@ -5409,7 +5409,7 @@ var mo = (...e) => (t) => e.reduce((e, t) => t(e), t), ho = (e) => e.reduce((e,
5409
5409
  callback: r,
5410
5410
  traitId: i
5411
5411
  }]);
5412
- }, Ko = (e, t) => qt((n, r) => {
5412
+ }, Ko = (e, t) => Kt((n, r) => {
5413
5413
  let i = t, a = r.changedExperienceTraits ?? n.changedExperienceTraits;
5414
5414
  a && (i = {
5415
5415
  ...i,
@@ -5426,7 +5426,7 @@ var mo = (...e) => (t) => e.reduce((e, t) => t(e), t), ho = (e) => e.reduce((e,
5426
5426
  step: n.step,
5427
5427
  ...i
5428
5428
  };
5429
- }, { to: "hooksService" }), qo = Ko(Wn), Jo = Ko(Gn), Yo = Ko(Kn), Xo = Ko(qn), Zo = Ko(Jn), Qo = Ko(Yn), $o = Ko(Xn), es = Je((e, t) => Ko(Zn, { errorEvent: t })), ts = Ko(Qn), ns = () => {
5429
+ }, { to: "hooksService" }), qo = Ko(Wn), Jo = Ko(Gn), Yo = Ko(Kn), Xo = Ko(qn), Zo = Ko(Jn), Qo = Ko(Yn), $o = Ko(Xn), es = qe((e, t) => Ko(Zn, { errorEvent: t })), ts = Ko(Qn), ns = () => {
5430
5430
  let e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
5431
5431
  return {
5432
5432
  addHook: Go(() => e, (t, n) => e.set(t, n)),
@@ -5623,7 +5623,7 @@ var mo = (...e) => (t) => e.reduce((e, t) => t(e), t), ho = (e) => e.reduce((e,
5623
5623
  createHooksService: i,
5624
5624
  get: t
5625
5625
  }), u = Wo({ addHook: n }), d = Co(t), f = Or(t), p = kr(t), m = Mr(t);
5626
- return Kt({
5626
+ return Gt({
5627
5627
  ...rs,
5628
5628
  context: {
5629
5629
  experience: e,
@@ -6918,13 +6918,13 @@ var Al = {
6918
6918
  this.set(r[0], r[1]);
6919
6919
  }
6920
6920
  }
6921
- function F() {
6921
+ function ee() {
6922
6922
  this.__data__ = N ? N(null) : {};
6923
6923
  }
6924
- function I(e) {
6924
+ function F(e) {
6925
6925
  return this.has(e) && delete this.__data__[e];
6926
6926
  }
6927
- function ee(e) {
6927
+ function I(e) {
6928
6928
  var t = this.__data__;
6929
6929
  if (N) {
6930
6930
  var n = t[e];
@@ -6940,7 +6940,7 @@ var Al = {
6940
6940
  var n = this.__data__;
6941
6941
  return n[e] = N && t === void 0 ? r : t, this;
6942
6942
  }
6943
- P.prototype.clear = F, P.prototype.delete = I, P.prototype.get = ee, P.prototype.has = L, P.prototype.set = R;
6943
+ P.prototype.clear = ee, P.prototype.delete = F, P.prototype.get = I, P.prototype.has = L, P.prototype.set = R;
6944
6944
  function z(e) {
6945
6945
  var t = -1, n = e ? e.length : 0;
6946
6946
  for (this.clear(); ++t < n;) {
@@ -7006,11 +7006,11 @@ var Al = {
7006
7006
  }
7007
7007
  ce.prototype.add = ce.prototype.push = le, ce.prototype.has = ue;
7008
7008
  function de(e, t) {
7009
- for (var n = e.length; n--;) if (ye(e[n][0], t)) return n;
7009
+ for (var n = e.length; n--;) if (ve(e[n][0], t)) return n;
7010
7010
  return -1;
7011
7011
  }
7012
7012
  function fe(e) {
7013
- return !be(e) || ge(e) ? !1 : (K(e) || y(e) ? k : c).test(_e(e));
7013
+ return !ye(e) || ge(e) ? !1 : (q(e) || y(e) ? k : c).test(_e(e));
7014
7014
  }
7015
7015
  function pe(e, t, r) {
7016
7016
  var i = -1, a = f, o = e.length, s = !0, c = [], l = c;
@@ -7031,7 +7031,7 @@ var Al = {
7031
7031
  }
7032
7032
  var me = M && 1 / b(new M([, -0]))[1] == i ? function(e) {
7033
7033
  return new M(e);
7034
- } : xe;
7034
+ } : be;
7035
7035
  function he(e, t) {
7036
7036
  var n = e.__data__;
7037
7037
  return G(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
@@ -7058,22 +7058,22 @@ var Al = {
7058
7058
  }
7059
7059
  return "";
7060
7060
  }
7061
- function ve(e) {
7061
+ function K(e) {
7062
7062
  return e && e.length ? pe(e) : [];
7063
7063
  }
7064
- function ye(e, t) {
7064
+ function ve(e, t) {
7065
7065
  return e === t || e !== e && t !== t;
7066
7066
  }
7067
- function K(e) {
7068
- var t = be(e) ? O.call(e) : "";
7067
+ function q(e) {
7068
+ var t = ye(e) ? O.call(e) : "";
7069
7069
  return t == a || t == o;
7070
7070
  }
7071
- function be(e) {
7071
+ function ye(e) {
7072
7072
  var t = typeof e;
7073
7073
  return !!e && (t == "object" || t == "function");
7074
7074
  }
7075
- function xe() {}
7076
- t.exports = ve;
7075
+ function be() {}
7076
+ t.exports = K;
7077
7077
  })), zl = /* @__PURE__ */ u(Ll(), 1), Bl = /* @__PURE__ */ u(Rl(), 1), Vl = (e, t, n, r) => {
7078
7078
  let i = `-${15 / 2}px`, { staticSide: a, rotation: o, shadowOpacity: s } = {
7079
7079
  top: {
@@ -7242,7 +7242,7 @@ var Yl = (e, t) => {
7242
7242
  return this;
7243
7243
  }
7244
7244
  };
7245
- } }), iu = "@appcues/overlay", au = {
7245
+ } }), iu = "@appcues/overlay", au = 500, ou = "top 200ms, left 200ms, right 200ms, bottom 200ms", su = {
7246
7246
  top: "top",
7247
7247
  "top-left": "top-start",
7248
7248
  "top-right": "top-end",
@@ -7256,7 +7256,7 @@ var Yl = (e, t) => {
7256
7256
  "left-bottom": "left-end",
7257
7257
  "left-top": "left-start",
7258
7258
  center: "top-start"
7259
- }, ou = (e) => {
7259
+ }, cu = (e) => {
7260
7260
  let t, n, r, i = [], a, o = () => {}, s;
7261
7261
  function c() {
7262
7262
  e();
@@ -7283,11 +7283,11 @@ var Yl = (e, t) => {
7283
7283
  };
7284
7284
  };
7285
7285
  Q(iu, ({ addHook: e, registerAction: t }) => {
7286
- let n, r, i, a = !1, o = !1, s, c, l, u, d, f, p, m, h = !1, g = "absolute", _, v;
7287
- e("step.begin", ({ onElementInserted: e, onElementRemoved: t, querySelector: y, reportError: b, step: x, updateStyle: S, getWindowReference: C, getTraitConfig: w, getContainer: T }) => {
7288
- let { traits: E } = x.getConfig(), { arrowId: D = "arrow", target: O, rootId: k, placement: A = "auto", distance: j, skidding: M, placementUnit: N = "pixels", shouldAutoCalculateZIndex: P = !0 } = w(), F = Hl(O.selector, E), I = E.find((e) => e.type === "@appcues/toggle")?.config?.startHidden ?? !0;
7289
- I || S(k, { position: "absolute" }), d = () => {
7290
- let e = x.querySelector(`#${k}`), t = x.querySelector(`#${D}`), n = eu(y(O.selector), O.filters);
7286
+ let n, r, i, a = !1, o = null, s = !1, c, l, u, d, f, p, m, h, g = !1, _ = "absolute", v, y;
7287
+ e("step.begin", ({ onElementInserted: e, onElementRemoved: t, querySelector: b, reportError: x, step: S, updateStyle: C, getWindowReference: w, getTraitConfig: T, getContainer: E }) => {
7288
+ let { traits: D } = S.getConfig(), { arrowId: O = "arrow", target: k, rootId: A, placement: j = "auto", distance: M, skidding: N, placementUnit: P = "pixels", shouldAutoCalculateZIndex: ee = !0 } = T(), F = Hl(k.selector, D), I = D.find((e) => e.type === "@appcues/toggle")?.config?.startHidden ?? !0;
7289
+ I || C(A, { position: "absolute" }), f = () => {
7290
+ let e = S.querySelector(`#${A}`), t = S.querySelector(`#${O}`), n = eu(b(k.selector), k.filters);
7291
7291
  return {
7292
7292
  matchingElements: n,
7293
7293
  targetEl: n[0],
@@ -7295,75 +7295,77 @@ Q(iu, ({ addHook: e, registerAction: t }) => {
7295
7295
  arrowEl: t[0]
7296
7296
  };
7297
7297
  };
7298
- let ee = async () => {
7299
- let { targetEl: e, rootEl: t, arrowEl: n } = d();
7298
+ let L = async () => {
7299
+ let { targetEl: e, rootEl: t, arrowEl: n } = f();
7300
7300
  if (!a && e && t) {
7301
7301
  a = !0;
7302
- let r = Wl({
7303
- placement: A,
7302
+ let r = Date.now();
7303
+ o === null && (o = r);
7304
+ let i = r - o > au, s = Wl({
7305
+ placement: j,
7304
7306
  targetEl: e,
7305
- distance: j,
7306
- skidding: M,
7307
- placementUnit: N
7308
- }), i = [jl(({ placement: e }) => ({
7309
- ...r,
7310
- crossAxis: n && /start|end/gm.test(e) ? Ul(M, e) : r.crossAxis
7307
+ distance: M,
7308
+ skidding: N,
7309
+ placementUnit: P
7310
+ }), c = [jl(({ placement: e }) => ({
7311
+ ...s,
7312
+ crossAxis: n && /start|end/gm.test(e) ? Ul(N, e) : s.crossAxis
7311
7313
  }))];
7312
- A === "auto" && i.push(Nl(), Ml({ crossAxis: !0 })), n && i.push(Fl({
7314
+ j === "auto" && c.push(Nl(), Ml({ crossAxis: !0 })), n && c.push(Fl({
7313
7315
  element: n,
7314
7316
  padding: 10
7315
7317
  }));
7316
- let o = C(), s = nu(e, o), c = F != null && tu(F.config.target.selector), l = s ? ru(e, o) : e;
7317
- !s && !c && i.push(Pl());
7318
- let { middlewareData: u, strategy: d, x: f, y: _, placement: v } = await Il(l, t, {
7319
- middleware: i,
7320
- placement: au[A] ?? "auto",
7321
- strategy: g
7322
- }), { referenceHidden: y } = u.hide ?? { referenceHidden: !1 };
7318
+ let l = w(), u = nu(e, l), d = F != null && tu(F.config.target.selector), f = u ? ru(e, l) : e;
7319
+ !u && !d && c.push(Pl());
7320
+ let { middlewareData: p, strategy: v, x: y, y: b, placement: x } = await Il(f, t, {
7321
+ middleware: c,
7322
+ placement: su[j] ?? "auto",
7323
+ strategy: _
7324
+ }), { referenceHidden: S } = p.hide ?? { referenceHidden: !1 };
7323
7325
  if (n) {
7324
- let { x: e, y: t } = u.arrow;
7325
- S(D, {
7326
- ...Vl(v, e, t),
7327
- transition: "top 200ms, left 200ms, right 200ms, bottom 200ms"
7326
+ let { x: e, y: t } = p.arrow;
7327
+ C(O, {
7328
+ ...Vl(x, e, t),
7329
+ transition: i ? ou : "none"
7328
7330
  });
7329
7331
  }
7330
- let b = Xl({
7332
+ let T = Xl({
7331
7333
  targetEl: e,
7332
7334
  rootStyle: {
7333
- left: `${f}px`,
7334
- position: d,
7335
- top: `${_}px`
7335
+ left: `${y}px`,
7336
+ position: v,
7337
+ top: `${b}px`
7336
7338
  },
7337
- shouldAutoCalculateZIndex: P,
7338
- getWindowReference: C
7339
+ shouldAutoCalculateZIndex: ee,
7340
+ getWindowReference: w
7339
7341
  });
7340
- e.style.visibility === "hidden" && (b.visibility = "hidden", m = e.style.visibility), y && t.style.visibility !== "hidden" && (p = t.style.visibility, h = !0, b.visibility = "hidden"), !y && h && (b.visibility = p ?? "visible", h = !1), !y && e.style.visibility !== "hidden" && e.style.visibility !== "" && m === "hidden" && (b.visibility = "visible"), A === "center" && (b.transform = "translate(-50%, 50%)"), b.transition = "top 200ms, left 200ms, right 200ms, bottom 200ms", S(k, b);
7342
+ e.style.visibility === "hidden" && (T.visibility = "hidden", h = e.style.visibility), S && t.style.visibility !== "hidden" && (m = t.style.visibility, g = !0, T.visibility = "hidden"), !S && g && (T.visibility = m ?? "visible", g = !1), !S && e.style.visibility !== "hidden" && e.style.visibility !== "" && h === "hidden" && (T.visibility = "visible"), j === "center" && (T.transform = "translate(-50%, 50%)"), T.transition = i ? ou : "none", C(A, T);
7341
7343
  }
7342
7344
  };
7343
- _ = () => {
7344
- a = !1, ee();
7345
- }, f = ou(_);
7346
- let L = () => eu(y(O.selector), O.filters), R = () => {
7347
- if (!F) return L();
7345
+ v = () => {
7346
+ a = !1, L();
7347
+ }, p = cu(v);
7348
+ let R = () => eu(b(k.selector), k.filters), z = () => {
7349
+ if (!F) return R();
7348
7350
  let { selector: e, filters: t } = F.config.target;
7349
- return eu(y(e), t);
7350
- }, z = () => F ? F.config.target.selector : O.selector;
7351
+ return eu(b(e), t);
7352
+ }, B = () => F ? F.config.target.selector : k.selector;
7351
7353
  r = () => {
7352
- s &&= (s(), void 0), s = e({
7353
- getTarget: R,
7354
+ c &&= (c(), void 0), c = e({
7355
+ getTarget: z,
7354
7356
  onInserted: async () => {
7355
- a = !1, o = !1, F && await new Promise((e) => {
7357
+ a = !1, s = !1, F && await new Promise((e) => {
7356
7358
  setTimeout(e, 0);
7357
- }), await n() && (o = !0);
7359
+ }), await n() && (s = !0);
7358
7360
  }
7359
7361
  });
7360
7362
  }, i = () => {
7361
- if (l &&= (l(), void 0), !u) return;
7362
- let t = u, n = v, r = !1, i = [], s = () => {
7363
+ if (u &&= (u(), void 0), !d) return;
7364
+ let t = d, n = y, r = !1, i = [], o = () => {
7363
7365
  i.forEach((e) => e()), i = [];
7364
7366
  }, c = () => {
7365
- r = !0, a = !1, o = !1, s(), l = void 0, x.recover({ errorId: n });
7366
- }, d = () => {
7367
+ r = !0, a = !1, s = !1, o(), u = void 0, S.recover({ errorId: n });
7368
+ }, l = () => {
7367
7369
  r || t().length !== 1 || c();
7368
7370
  };
7369
7371
  if (t().length === 1) {
@@ -7372,61 +7374,61 @@ Q(iu, ({ addHook: e, registerAction: t }) => {
7372
7374
  }
7373
7375
  i.push(e({
7374
7376
  getTarget: t,
7375
- onInserted: d
7377
+ onInserted: l
7376
7378
  }));
7377
- let f = () => d(), p = C().document;
7379
+ let f = () => l(), p = w().document;
7378
7380
  i.push(fr(p.body, f));
7379
- let m = T?.();
7380
- m && m !== p.body && i.push(fr(m, f)), l = s;
7381
+ let m = E?.();
7382
+ m && m !== p.body && i.push(fr(m, f)), u = o;
7381
7383
  }, n = async () => {
7382
- s && s(), c && c(), l &&= (l(), void 0);
7383
- let { matchingElements: e, rootEl: n } = d(), i = e.length === 1, o = e.length > 1, m = R(), _ = m.length === 1, y = m.length > 1, w = () => {
7384
- F || (c = t({
7385
- getTarget: L,
7384
+ c && c(), l && l(), u &&= (u(), void 0);
7385
+ let { matchingElements: e, rootEl: n } = f(), i = e.length === 1, o = e.length > 1, s = z(), h = s.length === 1, v = s.length > 1, b = () => {
7386
+ F || (l = t({
7387
+ getTarget: R,
7386
7388
  onRemoved: () => {
7387
- a = !1, v = b(`Target got removed => ${O.selector}`), u = L, f.remove();
7389
+ a = !1, y = x(`Target got removed => ${k.selector}`), d = R, p.remove();
7388
7390
  }
7389
7391
  }));
7390
7392
  };
7391
- if (i && !n) return v = b(`Could not find root element #${k} for overlay positioning.`), u = () => x.querySelector(`#${k}`), !1;
7392
- if (o) return v = b(`Found ${e.length} elements for selector ${O.selector}.`), u = L, !1;
7393
- if (y) return v = b(`Found ${m.length} elements for selector ${z()}.`), u = R, !1;
7394
- if (!i || !_) {
7395
- let e = z();
7396
- return m.length === 0 && tu(e) ? r() : (v = b(`Could not find element for selector ${e}.`), u = R), !1;
7393
+ if (i && !n) return y = x(`Could not find root element #${A} for overlay positioning.`), d = () => S.querySelector(`#${A}`), !1;
7394
+ if (o) return y = x(`Found ${e.length} elements for selector ${k.selector}.`), d = R, !1;
7395
+ if (v) return y = x(`Found ${s.length} elements for selector ${B()}.`), d = z, !1;
7396
+ if (!i || !h) {
7397
+ let e = B();
7398
+ return s.length === 0 && tu(e) ? r() : (y = x(`Could not find element for selector ${e}.`), d = z), !1;
7397
7399
  }
7398
7400
  if (i) {
7399
- let t = F ? m : null;
7401
+ let t = F ? s : null;
7400
7402
  if (I) {
7401
- if (nu(e[0], C())) g = "absolute";
7403
+ if (nu(e[0], w())) _ = "absolute";
7402
7404
  else {
7403
- let n = t != null && t[0] != null ? Gl(t[0].parentElement, C) : !1;
7404
- g = Gl(e[0]?.parentElement, C) || n ? "fixed" : "absolute";
7405
+ let n = t != null && t[0] != null ? Gl(t[0].parentElement, w) : !1;
7406
+ _ = Gl(e[0]?.parentElement, w) || n ? "fixed" : "absolute";
7405
7407
  }
7406
- S(k, { position: g });
7408
+ C(A, { position: _ });
7407
7409
  }
7408
- return await ee(), (nu(e[0], C()) || F != null && tu(F.config.target.selector)) && !h && S(k, { visibility: p ?? "visible" }), w(), u = void 0, f.setElements(e[0], n, t ? t[0] : null).start(), !0;
7410
+ return await L(), (nu(e[0], w()) || F != null && tu(F.config.target.selector)) && !g && C(A, { visibility: m ?? "visible" }), b(), d = void 0, p.setElements(e[0], n, t ? t[0] : null).start(), !0;
7409
7411
  }
7410
7412
  return !1;
7411
7413
  };
7412
7414
  }), e("step.postrender", async () => {
7413
- o || await n() && (o = !0);
7415
+ s || await n() && (s = !0);
7414
7416
  }), e("step.end", () => {
7415
- s && s(), c && c(), l &&= (l(), void 0), f.remove(), a = !1, o = !1;
7417
+ c && c(), l && l(), u &&= (u(), void 0), p.remove(), a = !1, s = !1, o = null;
7416
7418
  }), e("step.error", () => {
7417
- a = !1, o = !1, i && i();
7419
+ a = !1, s = !1, o = null, i && i();
7418
7420
  });
7419
7421
  }), Q("@appcues/persistent", ({ addHook: e }) => {
7420
7422
  e("experience.begin", ({ steps: e }) => {
7421
7423
  e.map((e) => e.start());
7422
7424
  });
7423
7425
  });
7424
- var su = {
7426
+ var lu = {
7425
7427
  left: "beforebegin",
7426
7428
  "inner-left": "afterbegin",
7427
7429
  right: "afterend",
7428
7430
  "inner-right": "beforeend"
7429
- }, cu = "@appcues/inline", lu = "appcues-hide", uu = `.${lu} { display: none !important; }`, du = ({ distanceUnit: e, yOffset: t, xOffset: n, targetEl: r }) => {
7431
+ }, uu = "@appcues/inline", du = "appcues-hide", fu = `.${du} { display: none !important; }`, pu = ({ distanceUnit: e, yOffset: t, xOffset: n, targetEl: r }) => {
7430
7432
  if (e !== "%" || !r) return {
7431
7433
  x: `${n}px`,
7432
7434
  y: `${t}px`
@@ -7437,13 +7439,13 @@ var su = {
7437
7439
  y: `${a * t / 100}px`
7438
7440
  };
7439
7441
  };
7440
- function fu({ addHook: e }) {
7442
+ function mu({ addHook: e }) {
7441
7443
  let t, n, r, i = [], a = [], o = null, s = null, c = (e) => {
7442
7444
  if (o) return;
7443
7445
  let { document: t } = e();
7444
- o = t.createElement("style"), o.textContent = uu, t.head.append(o);
7446
+ o = t.createElement("style"), o.textContent = fu, t.head.append(o);
7445
7447
  }, l = () => {
7446
- i.forEach((e) => e.classList.remove(lu)), i = [], a.forEach((e) => {
7448
+ i.forEach((e) => e.classList.remove(du)), i = [], a.forEach((e) => {
7447
7449
  let t = e.firstChild;
7448
7450
  t && e.replaceWith(t);
7449
7451
  }), a = [], o &&= (o.remove(), null);
@@ -7457,14 +7459,14 @@ function fu({ addHook: e }) {
7457
7459
  c(m);
7458
7460
  let { document: e } = m();
7459
7461
  Array.from(t.childNodes).forEach((t) => {
7460
- if (t.nodeType === Node.ELEMENT_NODE) t.classList.add(lu), i.push(t);
7462
+ if (t.nodeType === Node.ELEMENT_NODE) t.classList.add(du), i.push(t);
7461
7463
  else if (t.nodeType === Node.TEXT_NODE && t.textContent.trim()) {
7462
7464
  let n = e.createElement("span");
7463
- n.classList.add(lu), t.replaceWith(n), n.append(t), a.push(n);
7465
+ n.classList.add(du), t.replaceWith(n), n.append(t), a.push(n);
7464
7466
  }
7465
7467
  });
7466
7468
  } else for (; t.firstChild;) t.firstChild.remove();
7467
- if (t.insertAdjacentElement(su[g], n) == null) {
7469
+ if (t.insertAdjacentElement(lu[g], n) == null) {
7468
7470
  u(`can't insert inline container on the ${g}`);
7469
7471
  return;
7470
7472
  }
@@ -7482,7 +7484,7 @@ function fu({ addHook: e }) {
7482
7484
  let e = {
7483
7485
  display: C,
7484
7486
  verticalAlign: _
7485
- }, { x: t, y: n } = du({
7487
+ }, { x: t, y: n } = pu({
7486
7488
  distanceUnit: x,
7487
7489
  xOffset: y,
7488
7490
  yOffset: b,
@@ -7514,23 +7516,23 @@ function fu({ addHook: e }) {
7514
7516
  t && t(), n && n(), s &&= (s.remove(), null), l();
7515
7517
  });
7516
7518
  }
7517
- Q(cu, fu);
7518
- var pu = (e, t, n) => {
7519
+ Q(uu, mu);
7520
+ var hu = (e, t, n) => {
7519
7521
  let { height: r, width: i, left: a, top: o } = e.getBoundingClientRect();
7520
7522
  return Math.floor(Math.hypot(t - (a + i / 2), n - (o + r / 2)) / 2);
7521
- }, mu = (e, t) => {
7523
+ }, gu = (e, t) => {
7522
7524
  let { height: n, width: r } = e.getBoundingClientRect(), i = Math.floor(Math.hypot(n, r) / 4);
7523
7525
  return Math.max(t, 0) + i;
7524
- }, hu = (e) => e.key === "Escape", gu = (e, t) => ![...e.composedPath()].filter((e) => e.nodeType === Node.ELEMENT_NODE).some((e) => e?.contains?.(t) ?? !1), _u = (e, t) => ({
7526
+ }, _u = (e) => e.key === "Escape", vu = (e, t) => ![...e.composedPath()].filter((e) => e.nodeType === Node.ELEMENT_NODE).some((e) => e?.contains?.(t) ?? !1), yu = (e, t) => ({
7525
7527
  remove: () => {
7526
7528
  e.removeEventListener("keydown", t), e.removeEventListener("click", t, !0);
7527
7529
  },
7528
7530
  start: () => {
7529
7531
  e.addEventListener("click", t, !0), e.addEventListener("keydown", t);
7530
7532
  }
7531
- }), vu = (e, t, n) => t.length === 0 ? (n("Element not found"), !1) : t.length > 1 ? (n(`More than one element found with id: ${e}`), !1) : !0, yu = "@appcues/toggle.style", bu = ({ targetId: e, styles: t = {} }, { updateStyle: n }) => {
7533
+ }), bu = (e, t, n) => t.length === 0 ? (n("Element not found"), !1) : t.length > 1 ? (n(`More than one element found with id: ${e}`), !1) : !0, xu = "@appcues/toggle.style", Su = ({ targetId: e, styles: t = {} }, { updateStyle: n }) => {
7532
7534
  n(e, t);
7533
- }, xu = { [yu]: bu };
7535
+ }, Cu = { [xu]: Su };
7534
7536
  Q("@appcues/toggle", ({ addHook: e, registerAction: t }, { startHidden: n = !0, targetId: r, transition: i, closeOnClickOutside: a = !0, closeRadius: o }) => {
7535
7537
  let s, c, l, u = !1, d = [], f = null, p = [], m = () => {
7536
7538
  d.forEach((e) => e.remove()), d = [];
@@ -7548,7 +7550,7 @@ Q("@appcues/toggle", ({ addHook: e, registerAction: t }, { startHidden: n = !0,
7548
7550
  });
7549
7551
  let h = ({ on: e } = {}, t) => {
7550
7552
  let { reportError: n, step: c, updateStyle: l, getWindowReference: d } = t, f = d().document;
7551
- if (!vu(r, c.querySelector(`#${r}`), n)) return;
7553
+ if (!bu(r, c.querySelector(`#${r}`), n)) return;
7552
7554
  a && m();
7553
7555
  let h = {};
7554
7556
  i || (h.visibility = "hidden", h["pointer-events"] = "none"), l(r, {
@@ -7561,32 +7563,32 @@ Q("@appcues/toggle", ({ addHook: e, registerAction: t }, { startHidden: n = !0,
7561
7563
  });
7562
7564
  }, i.duration * 1e3), o && u && (Ql(f, "mousemove", s), p.forEach((e) => {
7563
7565
  e.contentDocument?.body && Ql(e.contentDocument.body, "mousemove", s);
7564
- }), u = !1), e?.close?.forEach((e) => xu[e.type](e.config, t));
7566
+ }), u = !1), e?.close?.forEach((e) => Cu[e.type](e.config, t));
7565
7567
  }, g = ({ on: e } = {}, t) => {
7566
7568
  let { reportError: n, step: m, updateStyle: g, getWindowReference: _ } = t, v = _().document, y = m.querySelector(`#${r}`);
7567
- if (!vu(r, y, n)) return;
7569
+ if (!bu(r, y, n)) return;
7568
7570
  let b = {};
7569
7571
  if (i && (b.transition = `opacity ${i.duration}s ${i.easing}`), g(r, {
7570
7572
  ...b,
7571
7573
  visibility: "visible",
7572
7574
  opacity: "1",
7573
7575
  "pointer-events": "auto"
7574
- }), e?.open?.forEach((e) => xu[e.type](e.config, t)), a && d.length === 0) {
7576
+ }), e?.open?.forEach((e) => Cu[e.type](e.config, t)), a && d.length === 0) {
7575
7577
  let n = m.querySelector(":first-child")[0];
7576
7578
  l = (n) => {
7577
- (hu(n) || gu(n, y[0])) && h({ on: e }, t);
7579
+ (_u(n) || vu(n, y[0])) && h({ on: e }, t);
7578
7580
  };
7579
- let r = p.map((e) => e.contentDocument?.body ? _u(e.contentDocument.body, l) : null).filter(Boolean);
7580
- d.push(_u(v, l), _u(n, l), ...r), d.forEach((e) => e.start());
7581
+ let r = p.map((e) => e.contentDocument?.body ? yu(e.contentDocument.body, l) : null).filter(Boolean);
7582
+ d.push(yu(v, l), yu(n, l), ...r), d.forEach((e) => e.start());
7581
7583
  }
7582
7584
  if (f || (c = (n) => {
7583
7585
  if (n.type === "keydown" && !["Enter", " "].includes(n.key)) return;
7584
7586
  let r = [...n.composedPath()];
7585
7587
  ["a", "button"].includes(r[0].tagName.toLowerCase()) && h({ on: e }, t);
7586
- }, f = _u(y[0], c), f.start()), o && !u) {
7587
- let t = mu(y[0], o);
7588
+ }, f = yu(y[0], c), f.start()), o && !u) {
7589
+ let t = gu(y[0], o);
7588
7590
  s = (0, zl.default)((r) => {
7589
- pu(y[0], r.clientX, r.clientY) > t && h({ on: e }, {
7591
+ hu(y[0], r.clientX, r.clientY) > t && h({ on: e }, {
7590
7592
  reportError: n,
7591
7593
  step: m,
7592
7594
  updateStyle: g,
@@ -7599,14 +7601,14 @@ Q("@appcues/toggle", ({ addHook: e, registerAction: t }, { startHidden: n = !0,
7599
7601
  };
7600
7602
  t("run", ({ on: e } = {}, t) => {
7601
7603
  let { step: n, reportError: i, getWindowReference: a } = t, o = n.querySelector(`#${r}`);
7602
- if (vu(r, o, i)) {
7604
+ if (bu(r, o, i)) {
7603
7605
  if (a().getComputedStyle(o[0]).visibility === "hidden") {
7604
7606
  g({ on: e }, t);
7605
7607
  return;
7606
7608
  }
7607
7609
  h({ on: e }, t);
7608
7610
  }
7609
- }), t("open", g), t("close", h), t("style", bu);
7611
+ }), t("open", g), t("close", h), t("style", Su);
7610
7612
  }), Q("@appcues/coreEvents", ({ registerAction: e }) => {
7611
7613
  e("step_seen", (e, { step: t }) => {
7612
7614
  t.seen();
@@ -7620,7 +7622,7 @@ Q("@appcues/toggle", ({ addHook: e, registerAction: t }, { startHidden: n = !0,
7620
7622
  t.snoozeExperience();
7621
7623
  });
7622
7624
  });
7623
- var Su = (e, t = {}, n = () => window) => {
7625
+ var wu = (e, t = {}, n = () => window) => {
7624
7626
  let r = t, i = [], a = n().document, o = (e) => {
7625
7627
  let { el: t, callbackFn: n } = e.detail;
7626
7628
  i.push([t, n]), t[n].apply(e.target, [r]);
@@ -7643,14 +7645,14 @@ var Su = (e, t = {}, n = () => window) => {
7643
7645
  Q("@appcues/store", ({ addHook: e, registerAction: t }, { id: n, initialState: r = {} }) => {
7644
7646
  let i;
7645
7647
  e("step.begin", ({ getWindowReference: e }) => {
7646
- i = Su(n, r, e);
7648
+ i = wu(n, r, e);
7647
7649
  }), e("step.end", () => {
7648
7650
  i && i.destroy();
7649
7651
  }), t("setState", ({ stateKey: e }, t, n) => {
7650
7652
  i && i.setState({ [e]: n?.detail });
7651
7653
  });
7652
7654
  });
7653
- var Cu = {
7655
+ var Tu = {
7654
7656
  slide_in_down: [{
7655
7657
  transform: "translate3d(0, -100%, 0)",
7656
7658
  visibility: "visible"
@@ -7678,15 +7680,15 @@ var Cu = {
7678
7680
  { transform: "scale3d(1.05, 1.05, 1.05)" },
7679
7681
  { transform: "scale3d(1, 1, 1)" }
7680
7682
  ]
7681
- }, wu = "@appcues/animate", Tu = 500, Eu = "none", Du = "button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])", Ou = (e) => {
7683
+ }, Eu = "@appcues/animate", Du = 500, Ou = "none", ku = "button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])", Au = (e) => {
7682
7684
  let t = e?.activeElement;
7683
7685
  for (; t?.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;
7684
7686
  return t;
7685
- }, ku = /* @__PURE__ */ new WeakMap(), Au = (e) => {
7686
- let t = Cu[e?.effect] || e?.keyframes, n = Array.isArray(t) ? t[t.length - 1] : null;
7687
+ }, ju = /* @__PURE__ */ new WeakMap(), Mu = (e) => {
7688
+ let t = Tu[e?.effect] || e?.keyframes, n = Array.isArray(t) ? t[t.length - 1] : null;
7687
7689
  return n ? Number(n.opacity) === 0 || n.visibility === "hidden" || n.display === "none" : !1;
7688
- }, ju = (e, t) => new Promise((n) => {
7689
- let { keyframes: r, duration: i = Tu, iterations: a, effect: o, fill: s = Eu, easing: c = "linear", composite: l } = t, u = Cu[o] || r, d = {
7690
+ }, Nu = (e, t) => new Promise((n) => {
7691
+ let { keyframes: r, duration: i = Du, iterations: a, effect: o, fill: s = Ou, easing: c = "linear", composite: l } = t, u = Tu[o] || r, d = {
7690
7692
  duration: i,
7691
7693
  iterations: a,
7692
7694
  fill: s,
@@ -7700,25 +7702,31 @@ var Cu = {
7700
7702
  let f = e.animate(u, d);
7701
7703
  f?.addEventListener ? f.addEventListener("finish", n, { once: !0 }) : n();
7702
7704
  });
7703
- Q(wu, ({ addHook: e, registerAction: t }, n) => {
7704
- n.phase === "exit" ? e("step.end", ({ querySelector: e }) => {
7705
- let { target: t } = n;
7706
- if (!t) return;
7707
- let r = e(t.selector);
7708
- if (r.length !== 0) return ju(r[0], n);
7709
- }) : e("step.postrender", ({ querySelector: e }) => {
7705
+ Q(Eu, ({ addHook: e, registerAction: t }, n) => {
7706
+ if (n.phase === "exit") e("step.end", ({ querySelector: e }) => {
7710
7707
  let { target: t } = n;
7711
7708
  if (!t) return;
7712
7709
  let r = e(t.selector);
7713
- r.length !== 0 && ju(r[0], n);
7714
- }), t("toggle", ({ toggleGroupId: e, target: t, animations: n, autoFocus: r = !0 }, { querySelector: i, getWindowReference: a }) => {
7710
+ if (r.length !== 0) return Nu(r[0], n);
7711
+ });
7712
+ else {
7713
+ let t = !1;
7714
+ e("step.postrender", ({ querySelector: e }) => {
7715
+ if (t) return;
7716
+ let { target: r } = n;
7717
+ if (!r) return;
7718
+ let i = e(r.selector);
7719
+ i.length !== 0 && (t = !0, Nu(i[0], n));
7720
+ });
7721
+ }
7722
+ t("toggle", ({ toggleGroupId: e, target: t, animations: n, autoFocus: r = !0 }, { querySelector: i, getWindowReference: a }) => {
7715
7723
  let o = i(t.selector);
7716
7724
  if (o.length === 0) return;
7717
7725
  let [s] = o, c = s.getAttribute(e) === n[0].id ? n[1] : n[0];
7718
7726
  if (!c) return;
7719
- let l = Au(c);
7727
+ let l = Mu(c);
7720
7728
  l || (s.inert = !1);
7721
- let u = r ? Ou(a?.()?.document) : null, d = ju(s, c);
7729
+ let u = r ? Au(a?.()?.document) : null, d = Nu(s, c);
7722
7730
  c.id && s.setAttribute(e, c.id);
7723
7731
  let f = () => c.id != null && s.getAttribute(e) !== c.id;
7724
7732
  if (!r) {
@@ -7729,9 +7737,9 @@ Q(wu, ({ addHook: e, registerAction: t }, n) => {
7729
7737
  }
7730
7738
  d.then(() => {
7731
7739
  if (!f()) if (l) {
7732
- let e = ku.get(s);
7733
- e?.isConnected && e.focus({ preventScroll: !0 }), ku.delete(s), s.inert = !0;
7734
- } else u && ku.set(s, u), (s.querySelector(Du) ?? s).focus({ preventScroll: !0 });
7740
+ let e = ju.get(s);
7741
+ e?.isConnected && e.focus({ preventScroll: !0 }), ju.delete(s), s.inert = !0;
7742
+ } else u && ju.set(s, u), (s.querySelector(ku) ?? s).focus({ preventScroll: !0 });
7735
7743
  });
7736
7744
  }), t("run", async (e, t) => {
7737
7745
  let { querySelector: n, getAction: r } = t, { toggleGroupId: i, target: a, animation: o, ignoreToggleGroup: s = !1, onFinish: c = [] } = e;
@@ -7739,17 +7747,17 @@ Q(wu, ({ addHook: e, registerAction: t }, n) => {
7739
7747
  let l = n(a.selector);
7740
7748
  if (l.length === 0) return;
7741
7749
  let u = l[0], d = u.getAttribute(i);
7742
- (!d || d === o.id) && !s || (await ju(u, o ?? e), c.forEach((e) => {
7750
+ (!d || d === o.id) && !s || (await Nu(u, o ?? e), c.forEach((e) => {
7743
7751
  r(e.type)(e?.config ?? {}, t);
7744
7752
  }), s || u.setAttribute(i, o.id));
7745
7753
  });
7746
7754
  });
7747
- var Mu = {
7755
+ var Pu = {
7748
7756
  pixels: "px",
7749
7757
  percentage: "%"
7750
7758
  };
7751
- function Nu(e, t, n, r) {
7752
- let i = Mu[n] || "px";
7759
+ function Fu(e, t, n, r) {
7760
+ let i = Pu[n] || "px";
7753
7761
  switch (e) {
7754
7762
  case "left": return {
7755
7763
  left: 0,
@@ -7768,8 +7776,8 @@ function Nu(e, t, n, r) {
7768
7776
  };
7769
7777
  }
7770
7778
  }
7771
- function Pu(e, t, n, r) {
7772
- let i = Mu[n] || "px";
7779
+ function Iu(e, t, n, r) {
7780
+ let i = Pu[n] || "px";
7773
7781
  switch (e) {
7774
7782
  case "top": return {
7775
7783
  top: 0,
@@ -7792,7 +7800,7 @@ Q("@appcues/floating", ({ addHook: e }) => {
7792
7800
  e("step.begin", ({ getTraitConfig: e, updateStyle: t, updateRootStyle: n }) => {
7793
7801
  let { target: r, strategy: i = "fixed", xOffset: a = 0, yOffset: o = 0, xPosition: s = "left", yPosition: c = "top", placementUnit: l = "pixels", unsetOppositeDirection: u = !1, applyToRoot: d = !1 } = e(), f = {
7794
7802
  position: i,
7795
- ...[Nu(s, a, l, u), Pu(c, o, l, u)].reduce((e, t) => {
7803
+ ...[Fu(s, a, l, u), Iu(c, o, l, u)].reduce((e, t) => {
7796
7804
  let { transform: n, ...r } = t;
7797
7805
  return n && (e.transform = e.transform ? `${e.transform} ${n}` : n), {
7798
7806
  ...e,
@@ -7807,18 +7815,18 @@ Q("@appcues/floating", ({ addHook: e }) => {
7807
7815
  t(r.selector, f);
7808
7816
  });
7809
7817
  });
7810
- var Fu = "@appcues/dismissible";
7811
- function Iu(e) {
7818
+ var Lu = "@appcues/dismissible";
7819
+ function Ru(e) {
7812
7820
  return `_experience_dismissed_${e}`;
7813
7821
  }
7814
- Q(Fu, ({ addHook: e, registerAction: t }, { strategy: n = "permanent" }) => {
7822
+ Q(Lu, ({ addHook: e, registerAction: t }, { strategy: n = "permanent" }) => {
7815
7823
  function r(e, t) {
7816
- return n === "session" ? t().sessionStorage.getItem(Iu(e)) === "1" : !1;
7824
+ return n === "session" ? t().sessionStorage.getItem(Ru(e)) === "1" : !1;
7817
7825
  }
7818
7826
  e("experience.begin", ({ stopExperience: e, getExperienceId: t, getWindowReference: n }) => {
7819
7827
  r(t(), n) && e();
7820
7828
  }), t("dismiss", (e, { stopExperience: t, updateUserProfile: r, getExperienceId: i, getWindowReference: a }) => {
7821
- let o = Iu(i());
7829
+ let o = Ru(i());
7822
7830
  n === "session" ? a().sessionStorage.setItem(o, "1") : n === "permanent" && r({ [o]: "permanently_dismissed" }), t();
7823
7831
  });
7824
7832
  }), Q("@appcues/experienceStyle", ({ addHook: e }) => {
@@ -7830,36 +7838,36 @@ Q(Fu, ({ addHook: e, registerAction: t }, { strategy: n = "permanent" }) => {
7830
7838
  e(Object.keys(t()).reduce((e, t) => (e[t] = null, e), {}), { forceUpdate: !0 });
7831
7839
  });
7832
7840
  });
7833
- var Lu = "@appcues/rootStyle", Ru = ({ getTraitConfig: e, updateRootStyle: t }) => {
7841
+ var zu = "@appcues/rootStyle", Bu = ({ getTraitConfig: e, updateRootStyle: t }) => {
7834
7842
  let { forceUpdate: n = !1, ...r } = e();
7835
7843
  t(r, { forceUpdate: n });
7836
7844
  };
7837
- function zu({ addHook: e }) {
7838
- e("step.begin", Ru), e("step.container_change", Ru);
7845
+ function Vu({ addHook: e }) {
7846
+ e("step.begin", Bu), e("step.container_change", Bu);
7839
7847
  }
7840
- Q(Lu, zu);
7841
- var Bu = "appcues:launchpad_close", Vu = "appcues:launchpad_search", Hu = "appcues:launchpad_search_error", Uu = "appcues:launchpad_search_response", Wu = function(e, t) {
7848
+ Q(zu, Vu);
7849
+ var Hu = "appcues:launchpad_close", Uu = "appcues:launchpad_search", Wu = "appcues:launchpad_search_error", Gu = "appcues:launchpad_search_response", Ku = function(e, t) {
7842
7850
  return window.addEventListener(e, t), function() {
7843
7851
  return window.removeEventListener(e, t);
7844
7852
  };
7845
- }, Gu = function(e) {
7846
- return Wu(Bu, e);
7847
- }, Ku = function(e, t, n) {
7848
- var r = new CustomEvent(Vu, { detail: {
7853
+ }, qu = function(e) {
7854
+ return Ku(Hu, e);
7855
+ }, Ju = function(e, t, n) {
7856
+ var r = new CustomEvent(Uu, { detail: {
7849
7857
  integrationId: e,
7850
7858
  query: t,
7851
7859
  experienceId: n
7852
7860
  } });
7853
7861
  window.dispatchEvent(r);
7854
- }, qu = function(e, t) {
7855
- return Wu(`${Uu}:${e}`, t);
7856
- }, Ju = function(e, t) {
7857
- return Wu(`${Hu}:${e}`, t);
7862
+ }, Yu = function(e, t) {
7863
+ return Ku(`${Gu}:${e}`, t);
7864
+ }, Xu = function(e, t) {
7865
+ return Ku(`${Wu}:${e}`, t);
7858
7866
  };
7859
7867
  Q("@appcues/sdk-middleware-events", ({ addHook: e }, { onLaunchpadClose: t }) => {
7860
7868
  let n;
7861
7869
  e("step.begin", (e) => {
7862
- n = Gu(() => {
7870
+ n = qu(() => {
7863
7871
  t.forEach((t) => {
7864
7872
  e.getAction(t.type)?.(t.config, e);
7865
7873
  });
@@ -7868,34 +7876,34 @@ Q("@appcues/sdk-middleware-events", ({ addHook: e }, { onLaunchpadClose: t }) =>
7868
7876
  n?.();
7869
7877
  });
7870
7878
  });
7871
- var Yu = "@appcues/knowledge-base-integration", Xu = (e, { querySelector: t, reportError: n }) => {
7879
+ var Zu = "@appcues/knowledge-base-integration", Qu = (e, { querySelector: t, reportError: n }) => {
7872
7880
  let r = t(e), i = r.length > 1, a = r.length === 0;
7873
7881
  return i && n("The target element is duplicated, please provide a more specific selector"), a && n("The target element is not found"), r[0];
7874
7882
  };
7875
- Q(Yu, ({ addHook: e, registerAction: t }, n) => {
7883
+ Q(Zu, ({ addHook: e, registerAction: t }, n) => {
7876
7884
  let { integrationConnected: r = !1 } = n, i, a, o, s, c, l = () => {
7877
7885
  r && a?.prev();
7878
7886
  }, u = (e) => {
7879
7887
  if (!r) return;
7880
7888
  let { integrationId: t } = n, { inputValue: l } = e.detail;
7881
- o.setAttribute("searchTerm", l), o.setAttribute("state", "loading"), i.setAttribute("loading", !0), s && (s.scrollTop = 0), a?.next(), Ku(t, l, c);
7889
+ o.setAttribute("searchTerm", l), o.setAttribute("state", "loading"), i.setAttribute("loading", !0), s && (s.scrollTop = 0), a?.next(), Ju(t, l, c);
7882
7890
  };
7883
7891
  e("step.begin", ({ getExperienceId: e }) => {
7884
- c = e(), qu(c, (e) => {
7892
+ c = e(), Yu(c, (e) => {
7885
7893
  let t = e.detail, n = t.results?.length === 0 ? "empty" : "showing_results";
7886
7894
  o.setAttribute("state", n), o.setAttribute("results", JSON.stringify(t.results)), i.setAttribute("loading", !1);
7887
- }), Ju(c, () => {
7895
+ }), Xu(c, () => {
7888
7896
  o.setAttribute("state", "error"), i.setAttribute("loading", !1);
7889
7897
  });
7890
7898
  }), e("step.end", () => {
7891
7899
  i?.removeEventListener("onSearch", u), i?.removeEventListener("onCancel", l);
7892
7900
  }), t("bindListeners", (e, t) => {
7893
7901
  let { navigation: r } = n;
7894
- (!a || !i) && (a = Xu(r.selector, t), i = Xu("appcues-search-header", t), o = Xu("appcues-search-results", t), s = Xu("#launchpad-container", t), i?.addEventListener("onSearch", u), i?.addEventListener("onCancel", l));
7902
+ (!a || !i) && (a = Qu(r.selector, t), i = Qu("appcues-search-header", t), o = Qu("appcues-search-results", t), s = Qu("#launchpad-container", t), i?.addEventListener("onSearch", u), i?.addEventListener("onCancel", l));
7895
7903
  });
7896
7904
  });
7897
- var Zu = "@appcues/sequential", Qu = (e, t) => e.findIndex((e) => e.getConfig()?.id === t);
7898
- Q(Zu, ({ addHook: e, registerAction: t }) => {
7905
+ var $u = "@appcues/sequential", ed = (e, t) => e.findIndex((e) => e.getConfig()?.id === t);
7906
+ Q($u, ({ addHook: e, registerAction: t }) => {
7899
7907
  let n, r = "forward", i = (e, { steps: t }, i) => {
7900
7908
  r = "backward", n !== 0 && t[n].stop(() => {
7901
7909
  --n, t[n].start();
@@ -7912,38 +7920,38 @@ Q(Zu, ({ addHook: e, registerAction: t }) => {
7912
7920
  e("experience.begin", ({ steps: e, getTraitConfig: t, reportError: r }) => {
7913
7921
  let { startStepId: i } = t() ?? {};
7914
7922
  if (i) {
7915
- let t = Qu(e, i);
7923
+ let t = ed(e, i);
7916
7924
  t === -1 && r(`startStepId "${i}" did not match any step; starting at 0`), n = t === -1 ? 0 : t;
7917
7925
  } else n = 0;
7918
7926
  e[n].start();
7919
7927
  }), t("next", a), t("prev", i), t("goTo", (e, { step: t, steps: i }, a) => {
7920
- let o = Qu(i, e.stepId);
7928
+ let o = ed(i, e.stepId);
7921
7929
  o !== -1 && (r = "forward", t.stop(() => {
7922
7930
  n = o, i[n].start();
7923
7931
  }, a));
7924
7932
  }), t("skip", (e, t, n) => r === "backward" ? i(e, t, n) : a(e, t, n));
7925
7933
  });
7926
- var $u = "@appcues/delay", ed = 3e5;
7927
- Q($u, ({ addHook: e }, t) => {
7934
+ var td = "@appcues/delay", nd = 3e5;
7935
+ Q(td, ({ addHook: e }, t) => {
7928
7936
  let n = null;
7929
7937
  e("step.begin", () => {
7930
7938
  let e = t?.duration;
7931
7939
  if (!e) return;
7932
- let r = Math.min(e, ed);
7933
- return r !== e && console.warn(`[@appcues/delay] duration ${e}ms exceeds the 5-minute maximum (${ed}ms) and has been capped.`), new Promise((e) => {
7940
+ let r = Math.min(e, nd);
7941
+ return r !== e && console.warn(`[@appcues/delay] duration ${e}ms exceeds the 5-minute maximum (${nd}ms) and has been capped.`), new Promise((e) => {
7934
7942
  n = setTimeout(e, r);
7935
7943
  });
7936
7944
  }), e("step.end", () => {
7937
7945
  n !== null && (clearTimeout(n), n = null);
7938
7946
  });
7939
7947
  });
7940
- var td = "appcues-cutout-backdrop", nd = "appcues-custom-backdrop", rd = "apc-spotlight", id = "\n :where(dialog) { all: unset; }\n", ad = "\n ::backdrop { backdrop-filter: var(--backdrop-blur); background-color: var(--backdrop-color); }\n", od = ({ backdropBlur: e, backdropColor: t }) => ({
7948
+ var rd = "appcues-cutout-backdrop", id = "appcues-custom-backdrop", ad = "apc-spotlight", od = "\n :where(dialog) { all: unset; }\n", sd = "\n ::backdrop { backdrop-filter: var(--backdrop-blur); background-color: var(--backdrop-color); }\n", cd = ({ backdropBlur: e, backdropColor: t }) => ({
7941
7949
  ...e && { "--backdrop-blur": e },
7942
7950
  ...t && { "--backdrop-color": t }
7943
- }), sd = ({ getWindowReference: e, backdropZIndex: t, backdropBlur: n, backdropColor: r }) => {
7951
+ }), ld = ({ getWindowReference: e, backdropZIndex: t, backdropBlur: n, backdropColor: r }) => {
7944
7952
  if (e().document.querySelector("#appcues-custom-backdrop")) return null;
7945
7953
  let i = e().document.createElement("div");
7946
- return i.id = nd, i.style.cssText = `
7954
+ return i.id = id, i.style.cssText = `
7947
7955
  z-index: ${t};
7948
7956
  position: fixed;
7949
7957
  inset: 0;
@@ -7951,10 +7959,10 @@ var td = "appcues-cutout-backdrop", nd = "appcues-custom-backdrop", rd = "apc-sp
7951
7959
  background-color: ${r};
7952
7960
  pointer-events: none;
7953
7961
  `, i;
7954
- }, cd = /* @__PURE__ */ c({
7955
- build: () => pd,
7956
- update: () => md
7957
- }), ld = 1500, ud = .67, dd = (e) => {
7962
+ }, ud = /* @__PURE__ */ c({
7963
+ build: () => hd,
7964
+ update: () => gd
7965
+ }), dd = 1500, fd = .67, pd = (e) => {
7958
7966
  Object.assign(e.style, {
7959
7967
  position: "fixed",
7960
7968
  top: "0",
@@ -7964,32 +7972,32 @@ var td = "appcues-cutout-backdrop", nd = "appcues-custom-backdrop", rd = "apc-sp
7964
7972
  overflow: "hidden",
7965
7973
  pointerEvents: "none"
7966
7974
  });
7967
- }, fd = (e, t) => {
7975
+ }, md = (e, t) => {
7968
7976
  let { top: n, left: r, width: i, height: a } = t;
7969
7977
  Object.assign(e.style, {
7970
7978
  position: "absolute",
7971
- top: `${n - ld}px`,
7972
- left: `${r - ld}px`,
7973
- height: `${a ? a + 2 * ld : 0}px`,
7974
- width: `${i ? i + 2 * ld : 0}px`,
7979
+ top: `${n - dd}px`,
7980
+ left: `${r - dd}px`,
7981
+ height: `${a ? a + 2 * dd : 0}px`,
7982
+ width: `${i ? i + 2 * dd : 0}px`,
7975
7983
  boxSizing: "border-box",
7976
- border: `${ld}px solid transparent`,
7984
+ border: `${dd}px solid transparent`,
7977
7985
  pointerEvents: "none",
7978
- borderImage: `radial-gradient(transparent 2%, rgba(0,0,0,${ud}) 28%) 49% 49% 49% 49%`,
7979
- boxShadow: `0 0 0 2500px rgba(0,0,0,${ud})`
7986
+ borderImage: `radial-gradient(transparent 2%, rgba(0,0,0,${fd}) 28%) 49% 49% 49% 49%`,
7987
+ boxShadow: `0 0 0 2500px rgba(0,0,0,${fd})`
7980
7988
  });
7981
- }, pd = ({ document: e, rect: t, zIndex: n }) => {
7989
+ }, hd = ({ document: e, rect: t, zIndex: n }) => {
7982
7990
  let r = e.createElement("div");
7983
- r.id = td, dd(r), r.style.zIndex = n;
7991
+ r.id = rd, pd(r), r.style.zIndex = n;
7984
7992
  let i = e.createElement("div");
7985
- return i.className = rd, fd(i, t), r.append(i), r;
7986
- }, md = ({ container: e, rect: t }) => {
7993
+ return i.className = ad, md(i, t), r.append(i), r;
7994
+ }, gd = ({ container: e, rect: t }) => {
7987
7995
  let n = e.firstElementChild;
7988
- n && fd(n, t);
7989
- }, hd = /* @__PURE__ */ c({
7990
- build: () => xd,
7991
- update: () => Sd
7992
- }), gd = .5, _d = (e) => {
7996
+ n && md(n, t);
7997
+ }, _d = /* @__PURE__ */ c({
7998
+ build: () => Cd,
7999
+ update: () => wd
8000
+ }), vd = .5, yd = (e) => {
7993
8001
  Object.assign(e.style, {
7994
8002
  position: "fixed",
7995
8003
  top: "0",
@@ -7998,7 +8006,7 @@ var td = "appcues-cutout-backdrop", nd = "appcues-custom-backdrop", rd = "apc-sp
7998
8006
  height: "100vh",
7999
8007
  pointerEvents: "none"
8000
8008
  });
8001
- }, vd = (e, t, n) => {
8009
+ }, bd = (e, t, n) => {
8002
8010
  let { top: r, left: i, width: a, height: o } = n;
8003
8011
  Object.assign(e.style, {
8004
8012
  position: "absolute",
@@ -8012,45 +8020,45 @@ var td = "appcues-cutout-backdrop", nd = "appcues-custom-backdrop", rd = "apc-sp
8012
8020
  position: "relative",
8013
8021
  width: `${a}px`,
8014
8022
  height: `${o}px`,
8015
- boxShadow: `0px 0px 0px 2000px rgba(0,0,0,${gd})`,
8023
+ boxShadow: `0px 0px 0px 2000px rgba(0,0,0,${vd})`,
8016
8024
  borderRadius: "0px",
8017
8025
  pointerEvents: "none"
8018
8026
  });
8019
- }, yd = (e, t, n, r, i) => {
8027
+ }, xd = (e, t, n, r, i) => {
8020
8028
  Object.assign(e.style, {
8021
8029
  position: "absolute",
8022
8030
  top: `${t}px`,
8023
8031
  left: `${n}px`,
8024
8032
  width: `${r}px`,
8025
8033
  height: `${i}px`,
8026
- background: `rgba(0,0,0,${gd})`,
8034
+ background: `rgba(0,0,0,${vd})`,
8027
8035
  pointerEvents: "all"
8028
8036
  });
8029
- }, bd = ([e, t, n, r], i, a) => {
8037
+ }, Sd = ([e, t, n, r], i, a) => {
8030
8038
  let { top: o, left: s, right: c, bottom: l, width: u } = i, d = a.innerWidth, f = a.innerHeight;
8031
- yd(e, 0, s, u, Math.max(0, o)), yd(t, 0, c, Math.max(0, d - c), f), yd(n, l, s, u, Math.max(0, f - l)), yd(r, 0, 0, Math.max(0, s), f);
8032
- }, xd = ({ document: e, win: t, rect: n, zIndex: r }) => {
8039
+ xd(e, 0, s, u, Math.max(0, o)), xd(t, 0, c, Math.max(0, d - c), f), xd(n, l, s, u, Math.max(0, f - l)), xd(r, 0, 0, Math.max(0, s), f);
8040
+ }, Cd = ({ document: e, win: t, rect: n, zIndex: r }) => {
8033
8041
  let i = e.createElement("div");
8034
- i.id = td, _d(i), i.style.zIndex = r;
8042
+ i.id = rd, yd(i), i.style.zIndex = r;
8035
8043
  let a = e.createElement("div"), o = e.createElement("div");
8036
- return o.className = rd, vd(a, o, n), a.append(o), i.append(a), bd([
8044
+ return o.className = ad, bd(a, o, n), a.append(o), i.append(a), Sd([
8037
8045
  "top",
8038
8046
  "right",
8039
8047
  "bottom",
8040
8048
  "left"
8041
8049
  ].map((t) => {
8042
8050
  let n = e.createElement("div");
8043
- return n.className = rd, n.setAttribute("aria-label", `${t}-panel`), i.append(n), n;
8051
+ return n.className = ad, n.setAttribute("aria-label", `${t}-panel`), i.append(n), n;
8044
8052
  }), n, t), i;
8045
- }, Sd = ({ container: e, win: t, rect: n }) => {
8053
+ }, wd = ({ container: e, win: t, rect: n }) => {
8046
8054
  let r = e.children[0], i = r?.firstElementChild;
8047
- r && i && vd(r, i, n);
8055
+ r && i && bd(r, i, n);
8048
8056
  let a = [...e.children].slice(1);
8049
- a.length === 4 && bd(a, n, t);
8050
- }, Cd = {
8051
- soft: cd,
8052
- hard: hd
8053
- }, wd = (e) => e in Cd, Td = ({ getWindowReference: e, target: t, backdropType: n, zIndex: r }) => {
8057
+ a.length === 4 && Sd(a, n, t);
8058
+ }, Td = {
8059
+ soft: ud,
8060
+ hard: _d
8061
+ }, Ed = (e) => e in Td, Dd = ({ getWindowReference: e, target: t, backdropType: n, zIndex: r }) => {
8054
8062
  let i = e(), a;
8055
8063
  try {
8056
8064
  a = i.document.querySelector(t);
@@ -8064,8 +8072,8 @@ var td = "appcues-cutout-backdrop", nd = "appcues-custom-backdrop", rd = "apc-sp
8064
8072
  rect: o,
8065
8073
  zIndex: r
8066
8074
  };
8067
- return Cd[n].build(s);
8068
- }, Ed = ({ container: e, getWindowReference: t, target: n, backdropType: r }) => {
8075
+ return Td[n].build(s);
8076
+ }, Od = ({ container: e, getWindowReference: t, target: n, backdropType: r }) => {
8069
8077
  let i = t(), a;
8070
8078
  try {
8071
8079
  a = i.document.querySelector(n);
@@ -8074,21 +8082,21 @@ var td = "appcues-cutout-backdrop", nd = "appcues-custom-backdrop", rd = "apc-sp
8074
8082
  }
8075
8083
  if (!a || !e) return;
8076
8084
  let o = a.getBoundingClientRect();
8077
- Cd[r].update({
8085
+ Td[r].update({
8078
8086
  container: e,
8079
8087
  win: i,
8080
8088
  rect: o
8081
8089
  });
8082
- }, Dd = new Set([or, sr]), Od = (e) => e.id === "appcues-cutout-backdrop" || Dd.has(e.tagName), kd = (e, t) => {
8090
+ }, kd = new Set([or, sr]), Ad = (e) => e.id === "appcues-cutout-backdrop" || kd.has(e.tagName), jd = (e, t) => {
8083
8091
  if (!t) return null;
8084
8092
  try {
8085
8093
  return e.querySelector(t);
8086
8094
  } catch {
8087
8095
  return null;
8088
8096
  }
8089
- }, Ad = (e, { targetSelector: t } = {}) => {
8090
- let { body: n } = e.document, r = /* @__PURE__ */ new Set(), i = kd(n, t);
8091
- for (let e of n.children) !Od(e) && !e.inert && !e.contains(i) && (e.inert = !0, r.add(e));
8097
+ }, Md = (e, { targetSelector: t } = {}) => {
8098
+ let { body: n } = e.document, r = /* @__PURE__ */ new Set(), i = jd(n, t);
8099
+ for (let e of n.children) !Ad(e) && !e.inert && !e.contains(i) && (e.inert = !0, r.add(e));
8092
8100
  return () => {
8093
8101
  for (let e of r) e.inert = !1;
8094
8102
  };
@@ -8107,7 +8115,7 @@ Q("@appcues/dialog", ({ addHook: e }, t) => {
8107
8115
  if (n === !0 && !i && !a) {
8108
8116
  let t = ({ getTraitConfig: e, updateRootStyle: t }) => {
8109
8117
  let { variables: n } = e();
8110
- t(od(n || {}), { forceUpdate: !0 });
8118
+ t(cd(n || {}), { forceUpdate: !0 });
8111
8119
  };
8112
8120
  e("step.begin", t), e("step.container_change", t);
8113
8121
  }
@@ -8116,12 +8124,12 @@ Q("@appcues/dialog", ({ addHook: e }, t) => {
8116
8124
  [f] = e.querySelector("dialog") ?? [];
8117
8125
  let j = t();
8118
8126
  if (f) {
8119
- S === !0 && C ? (p?.remove(), p = sd({
8127
+ S === !0 && C ? (p?.remove(), p = ld({
8120
8128
  getWindowReference: t,
8121
8129
  backdropZIndex: O,
8122
8130
  backdropBlur: k,
8123
8131
  backdropColor: A
8124
- }), p && j.document.body.append(p)) : (p?.remove(), p = void 0), S === !0 && !C && !w ? v("backdrop", ad, j) : (d.backdrop?.remove(), d.backdrop = null), v("dialog", id, j), f.style.zIndex = D, f.removeAttribute("autofocus");
8132
+ }), p && j.document.body.append(p)) : (p?.remove(), p = void 0), S === !0 && !C && !w ? v("backdrop", sd, j) : (d.backdrop?.remove(), d.backdrop = null), v("dialog", od, j), f.style.zIndex = D, f.removeAttribute("autofocus");
8125
8133
  let e = S === !0 && !C && !w ? "showModal" : "show";
8126
8134
  if (e === "show" && !w) return;
8127
8135
  let n = e === "show" ? {
@@ -8130,17 +8138,17 @@ Q("@appcues/dialog", ({ addHook: e }, t) => {
8130
8138
  } : null, r = f.open;
8131
8139
  f[e](), n && (j.scrollX !== n.x || j.scrollY !== n.y) && j.scrollTo(n.x, n.y), e === "show" && T && !r && f.focus({ preventScroll: !0 });
8132
8140
  }
8133
- y(), _?.(), m?.remove(), m = void 0, w && wd(S) && (h = t(), m = Td({
8141
+ y(), _?.(), m?.remove(), m = void 0, w && Ed(S) && (h = t(), m = Dd({
8134
8142
  getWindowReference: t,
8135
8143
  target: w,
8136
8144
  backdropType: S,
8137
8145
  zIndex: (D ?? 2) - 1
8138
- }), m && (h.document.body.append(m), g = () => Ed({
8146
+ }), m && (h.document.body.append(m), g = () => Od({
8139
8147
  container: m,
8140
8148
  getWindowReference: t,
8141
8149
  target: w,
8142
8150
  backdropType: S
8143
- }), h.addEventListener("scroll", g, !0), h.addEventListener("resize", g), S === "hard" && (_ = Ad(h, { targetSelector: w }))));
8151
+ }), h.addEventListener("scroll", g, !0), h.addEventListener("resize", g), S === "hard" && (_ = Md(h, { targetSelector: w }))));
8144
8152
  }), e("step.end", () => {
8145
8153
  f?.close(), d.backdrop?.remove(), d.dialog?.remove(), p?.remove(), m?.remove(), y(), _?.();
8146
8154
  });
@@ -8186,8 +8194,8 @@ Q("@appcues/dialog", ({ addHook: e }, t) => {
8186
8194
  t = !1;
8187
8195
  });
8188
8196
  });
8189
- var jd = "@appcues/advance-on-error", Md = 3e5, Nd = "@appcues/sequential.next", Pd = "@appcues/sequential.skip", Fd = (e) => e === Nd ? Pd : e;
8190
- Q(jd, ({ addHook: e }, t) => {
8197
+ var Nd = "@appcues/advance-on-error", Pd = 3e5, Fd = "@appcues/sequential.next", Id = "@appcues/sequential.skip", Ld = (e) => e === Fd ? Id : e;
8198
+ Q(Nd, ({ addHook: e }, t) => {
8191
8199
  let n = null, r = () => {
8192
8200
  n !== null && (clearTimeout(n), n = null);
8193
8201
  };
@@ -8196,12 +8204,12 @@ Q(jd, ({ addHook: e }, t) => {
8196
8204
  let { getAction: i } = e, a = Number(t?.duration ?? 500), o = Number.isFinite(a) ? a : 500, s = t?.action;
8197
8205
  s?.type && (n = setTimeout(() => {
8198
8206
  n = null;
8199
- let t = i(Fd(s.type));
8207
+ let t = i(Ld(s.type));
8200
8208
  t && t(s.config ?? {}, e, Sn.ERROR);
8201
- }, Math.min(Math.max(o, 0), Md)));
8209
+ }, Math.min(Math.max(o, 0), Pd)));
8202
8210
  }), e("step.prebegin", r), e("step.end", r);
8203
8211
  });
8204
- var Id = (e) => class extends e.HTMLElement {
8212
+ var Rd = (e) => class extends e.HTMLElement {
8205
8213
  constructor() {
8206
8214
  super();
8207
8215
  let t = this.ownerDocument || e.document;
@@ -8214,17 +8222,17 @@ var Id = (e) => class extends e.HTMLElement {
8214
8222
  async connectedCallback() {
8215
8223
  this.shadowRoot.append(this.hideContentStyles), this.shadowRoot.append(...this.childNodes), this.getAttribute("themeId") && await Xr(this), this.shadowRoot.prepend(this.webComponentStyles), this.hideContentStyles.remove();
8216
8224
  }
8217
- }, Ld = /* @__PURE__ */ new WeakMap(), Rd = (e = () => window) => {
8225
+ }, zd = /* @__PURE__ */ new WeakMap(), Bd = (e = () => window) => {
8218
8226
  let t = e();
8219
- if (Ld.has(t)) return Ld.get(t);
8227
+ if (zd.has(t)) return zd.get(t);
8220
8228
  if (!t.customElements.get("appcues-experience-container")) {
8221
- let e = Id(t);
8229
+ let e = Rd(t);
8222
8230
  t.customElements.define(ar, e);
8223
8231
  }
8224
8232
  let n = t.customElements.whenDefined(ar);
8225
- return Ld.set(t, n), n;
8226
- }, zd = !1;
8227
- function Bd({ runningExperiences: e = /* @__PURE__ */ new Map(), sendEvent: t = () => {}, sendCustomEvent: n = () => {}, showFlow: r = () => {}, updateUserProfile: i = () => {}, handleNavigation: a = () => {}, createRenderListener: o = ss, vNodeHandlers: s = ms, accessibilityHandlers: c = Os, getWindowReference: l = () => window, apiOverrides: u = {} } = {}) {
8233
+ return zd.set(t, n), n;
8234
+ }, Vd = !1;
8235
+ function Hd({ runningExperiences: e = /* @__PURE__ */ new Map(), sendEvent: t = () => {}, sendCustomEvent: n = () => {}, showFlow: r = () => {}, updateUserProfile: i = () => {}, handleNavigation: a = () => {}, createRenderListener: o = ss, vNodeHandlers: s = ms, accessibilityHandlers: c = Os, getWindowReference: l = () => window, apiOverrides: u = {} } = {}) {
8228
8236
  Ur(u);
8229
8237
  let d = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map(), p = {
8230
8238
  sendEvent: t,
@@ -8261,14 +8269,14 @@ function Bd({ runningExperiences: e = /* @__PURE__ */ new Map(), sendEvent: t =
8261
8269
  registerAction: Si,
8262
8270
  registerTrait: Q,
8263
8271
  show: async (t) => {
8264
- Rd(l), await l().customElements.whenDefined(ar);
8272
+ Bd(l), await l().customElements.whenDefined(ar);
8265
8273
  let n = dn(dn(t, "traits", (e) => (e ?? []).map((e, t) => ({
8266
8274
  ...e,
8267
8275
  id: e.id || `${e.type}:${t}`
8268
8276
  }))), "steps", (e) => (e ?? []).map((e) => dn(e, "traits", (e) => (e ?? []).map((e, t) => ({
8269
8277
  ...e,
8270
8278
  id: e.id || `${e.type}:${t}`
8271
- }))))), r = e.get(t.id)?.experienceService ?? It(is(n, m), { devTools: zd }).start();
8279
+ }))))), r = e.get(t.id)?.experienceService ?? Ft(is(n, m), { devTools: Vd }).start();
8272
8280
  h(t.id, r), r.send({
8273
8281
  type: bn,
8274
8282
  experience: n
@@ -8299,4 +8307,4 @@ function Bd({ runningExperiences: e = /* @__PURE__ */ new Map(), sendEvent: t =
8299
8307
  };
8300
8308
  }
8301
8309
  //#endregion
8302
- export { Bd as default };
8310
+ export { Hd as default };