wineater-bot 4.9.5 → 4.9.6

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.
@@ -4,12 +4,12 @@ var Cr = (t) => {
4
4
  };
5
5
  var dl = (t, e, n) => e in t ? hl(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
6
6
  var it = (t, e, n) => dl(t, typeof e != "symbol" ? e + "" : e, n), ni = (t, e, n) => e.has(t) || Cr("Cannot " + n);
7
- var v = (t, e, n) => (ni(t, e, "read from private field"), n ? n.call(t) : e.get(t)), U = (t, e, n) => e.has(t) ? Cr("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), F = (t, e, n, s) => (ni(t, e, "write to private field"), s ? s.call(t, n) : e.set(t, n), n), be = (t, e, n) => (ni(t, e, "access private method"), n);
7
+ var v = (t, e, n) => (ni(t, e, "read from private field"), n ? n.call(t) : e.get(t)), U = (t, e, n) => e.has(t) ? Cr("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), F = (t, e, n, s) => (ni(t, e, "write to private field"), s ? s.call(t, n) : e.set(t, n), n), we = (t, e, n) => (ni(t, e, "access private method"), n);
8
8
  const fl = "5";
9
9
  var Ao;
10
10
  typeof window < "u" && ((Ao = window.__svelte ?? (window.__svelte = {})).v ?? (Ao.v = /* @__PURE__ */ new Set())).add(fl);
11
- const pl = 1, gl = 2, ml = 16, vl = 1, wl = 2, bl = 4, yl = 8, Sl = 16, _l = 1, kl = 2, Se = Symbol(), Fo = "http://www.w3.org/1999/xhtml", vi = !1;
12
- var $i = Array.isArray, Tl = Array.prototype.indexOf, Mn = Array.prototype.includes, js = Array.from, xl = Object.defineProperty, bn = Object.getOwnPropertyDescriptor, El = Object.getOwnPropertyDescriptors, Il = Object.prototype, Cl = Array.prototype, Wo = Object.getPrototypeOf, Nr = Object.isExtensible;
11
+ const pl = 1, gl = 2, ml = 16, vl = 1, bl = 2, wl = 4, yl = 8, Sl = 16, _l = 1, kl = 2, Se = Symbol(), Fo = "http://www.w3.org/1999/xhtml", vi = !1;
12
+ var $i = Array.isArray, Tl = Array.prototype.indexOf, Mn = Array.prototype.includes, js = Array.from, xl = Object.defineProperty, wn = Object.getOwnPropertyDescriptor, El = Object.getOwnPropertyDescriptors, Il = Object.prototype, Cl = Array.prototype, Wo = Object.getPrototypeOf, Nr = Object.isExtensible;
13
13
  const Nl = () => {
14
14
  };
15
15
  function Rl(t) {
@@ -22,7 +22,7 @@ function zo() {
22
22
  });
23
23
  return { promise: n, resolve: t, reject: e };
24
24
  }
25
- const Te = 2, is = 4, Us = 8, jo = 1 << 24, kt = 16, st = 32, hn = 64, wi = 128, Ve = 512, ye = 1024, xe = 2048, nt = 4096, Fe = 8192, yt = 16384, an = 32768, ln = 65536, Rr = 1 << 17, Uo = 1 << 18, Wn = 1 << 19, Dl = 1 << 20, Rt = 1 << 25, cn = 65536, bi = 1 << 21, er = 1 << 22, Mt = 1 << 23, nn = Symbol("$state"), Ol = Symbol("legacy props"), Ml = Symbol(""), Gt = new class extends Error {
25
+ const Te = 2, is = 4, Us = 8, jo = 1 << 24, kt = 16, st = 32, hn = 64, bi = 128, Ve = 512, ye = 1024, xe = 2048, nt = 4096, Fe = 8192, yt = 16384, an = 32768, ln = 65536, Rr = 1 << 17, Uo = 1 << 18, Wn = 1 << 19, Dl = 1 << 20, Rt = 1 << 25, cn = 65536, wi = 1 << 21, er = 1 << 22, Mt = 1 << 23, nn = Symbol("$state"), Ol = Symbol("legacy props"), Ml = Symbol(""), Gt = new class extends Error {
26
26
  constructor() {
27
27
  super(...arguments);
28
28
  it(this, "name", "StaleReactionError");
@@ -143,7 +143,7 @@ function Go(t) {
143
143
  }
144
144
  function Dt(t, e) {
145
145
  for (; e !== null; ) {
146
- if (e.f & wi) {
146
+ if (e.f & bi) {
147
147
  if (!(e.f & an))
148
148
  throw t;
149
149
  try {
@@ -270,14 +270,14 @@ const xr = class xr {
270
270
  Re = [], this.apply();
271
271
  var n = [], s = [];
272
272
  for (const r of e)
273
- be(this, ze, ki).call(this, r, n, s);
274
- if (be(this, ze, _i).call(this)) {
275
- be(this, ze, Ti).call(this, s), be(this, ze, Ti).call(this, n);
273
+ we(this, ze, ki).call(this, r, n, s);
274
+ if (we(this, ze, _i).call(this)) {
275
+ we(this, ze, Ti).call(this, s), we(this, ze, Ti).call(this, n);
276
276
  for (const [r, o] of v(this, ut))
277
277
  $o(r, o);
278
278
  } else {
279
279
  for (const r of v(this, kn)) r();
280
- v(this, kn).clear(), v(this, Qt) === 0 && be(this, ze, Yo).call(this), yi = this, z = null, Dr(s), Dr(n), v(this, En).clear(), v(this, Ct).clear(), yi = null, (i = v(this, ts)) == null || i.resolve();
280
+ v(this, kn).clear(), v(this, Qt) === 0 && we(this, ze, Yo).call(this), yi = this, z = null, Dr(s), Dr(n), v(this, En).clear(), v(this, Ct).clear(), yi = null, (i = v(this, ts)) == null || i.resolve();
281
281
  }
282
282
  _e = null;
283
283
  }
@@ -320,7 +320,7 @@ const xr = class xr {
320
320
  */
321
321
  decrement(e) {
322
322
  F(this, Qt, v(this, Qt) - 1), e && F(this, xn, v(this, xn) - 1), !v(this, In) && (F(this, In, !0), At(() => {
323
- F(this, In, !1), be(this, ze, _i).call(this) ? Re.length > 0 && this.flush() : this.revive();
323
+ F(this, In, !1), we(this, ze, _i).call(this) ? Re.length > 0 && this.flush() : this.revive();
324
324
  }));
325
325
  }
326
326
  revive() {
@@ -420,7 +420,7 @@ Ti = function(e) {
420
420
  if (Re.length > 0) {
421
421
  z = r, r.apply();
422
422
  for (const l of Re)
423
- be(i = r, ze, ki).call(i, l, [], []);
423
+ we(i = r, ze, ki).call(i, l, [], []);
424
424
  r.deactivate();
425
425
  }
426
426
  Re = s;
@@ -559,7 +559,7 @@ function $o(t, e) {
559
559
  function tc(t) {
560
560
  let e = 0, n = un(0), s;
561
561
  return () => {
562
- ir() && (w(n), or(() => (e === 0 && (s = ls(() => t(() => Kn(n)))), e += 1, () => {
562
+ ir() && (b(n), or(() => (e === 0 && (s = ls(() => t(() => Kn(n)))), e += 1, () => {
563
563
  At(() => {
564
564
  e -= 1, e === 0 && (s == null || s(), s = void 0, Kn(n));
565
565
  });
@@ -570,7 +570,7 @@ var nc = ln | Wn;
570
570
  function sc(t, e, n, s) {
571
571
  new ic(t, e, n, s);
572
572
  }
573
- var He, Zi, ht, Zt, Ne, dt, Le, Qe, wt, $t, Nt, Cn, Nn, Rn, bt, Ws, we, rc, oc, ac, xi, Ss, _s, Ei;
573
+ var He, Zi, ht, Zt, Ne, dt, Le, Qe, bt, $t, Nt, Cn, Nn, Rn, wt, Ws, be, rc, oc, ac, xi, Ss, _s, Ei;
574
574
  class ic {
575
575
  /**
576
576
  * @param {TemplateNode} node
@@ -579,7 +579,7 @@ class ic {
579
579
  * @param {((error: unknown) => unknown) | undefined} [transform_error]
580
580
  */
581
581
  constructor(e, n, s, i) {
582
- U(this, we);
582
+ U(this, be);
583
583
  /** @type {Boundary | null} */
584
584
  it(this, "parent");
585
585
  it(this, "is_pending", !1);
@@ -606,7 +606,7 @@ class ic {
606
606
  /** @type {Effect | null} */
607
607
  U(this, Qe, null);
608
608
  /** @type {DocumentFragment | null} */
609
- U(this, wt, null);
609
+ U(this, bt, null);
610
610
  U(this, $t, 0);
611
611
  U(this, Nt, 0);
612
612
  U(this, Cn, !1);
@@ -621,9 +621,9 @@ class ic {
621
621
  * calls followed by no-op flushes
622
622
  * @type {Source<number> | null}
623
623
  */
624
- U(this, bt, null);
625
- U(this, Ws, tc(() => (F(this, bt, un(v(this, $t))), () => {
626
- F(this, bt, null);
624
+ U(this, wt, null);
625
+ U(this, Ws, tc(() => (F(this, wt, un(v(this, $t))), () => {
626
+ F(this, wt, null);
627
627
  })));
628
628
  var r;
629
629
  F(this, He, e), F(this, ht, n), F(this, Zt, (o) => {
@@ -631,10 +631,10 @@ class ic {
631
631
  /** @type {Effect} */
632
632
  ee
633
633
  );
634
- a.b = this, a.f |= wi, s(o);
634
+ a.b = this, a.f |= bi, s(o);
635
635
  }), this.parent = /** @type {Effect} */
636
636
  ee.b, this.transform_error = i ?? ((r = this.parent) == null ? void 0 : r.transform_error) ?? ((o) => o), F(this, Ne, Ks(() => {
637
- be(this, we, xi).call(this);
637
+ we(this, be, xi).call(this);
638
638
  }, nc));
639
639
  }
640
640
  /**
@@ -661,14 +661,14 @@ class ic {
661
661
  * @param {1 | -1} d
662
662
  */
663
663
  update_pending_count(e) {
664
- be(this, we, Ei).call(this, e), F(this, $t, v(this, $t) + e), !(!v(this, bt) || v(this, Cn)) && (F(this, Cn, !0), At(() => {
665
- F(this, Cn, !1), v(this, bt) && Pn(v(this, bt), v(this, $t));
664
+ we(this, be, Ei).call(this, e), F(this, $t, v(this, $t) + e), !(!v(this, wt) || v(this, Cn)) && (F(this, Cn, !0), At(() => {
665
+ F(this, Cn, !1), v(this, wt) && Pn(v(this, wt), v(this, $t));
666
666
  }));
667
667
  }
668
668
  get_effect_pending() {
669
- return v(this, Ws).call(this), w(
669
+ return v(this, Ws).call(this), b(
670
670
  /** @type {Source<number>} */
671
- v(this, bt)
671
+ v(this, wt)
672
672
  );
673
673
  }
674
674
  /** @param {unknown} error */
@@ -686,8 +686,8 @@ class ic {
686
686
  }
687
687
  i = !0, r && Vl(), v(this, Qe) !== null && sn(v(this, Qe), () => {
688
688
  F(this, Qe, null);
689
- }), be(this, we, _s).call(this, () => {
690
- Pt.ensure(), be(this, we, xi).call(this);
689
+ }), we(this, be, _s).call(this, () => {
690
+ Pt.ensure(), we(this, be, xi).call(this);
691
691
  });
692
692
  }, a = (c) => {
693
693
  try {
@@ -695,7 +695,7 @@ class ic {
695
695
  } catch (u) {
696
696
  Dt(u, v(this, Ne) && v(this, Ne).parent);
697
697
  }
698
- s && F(this, Qe, be(this, we, _s).call(this, () => {
698
+ s && F(this, Qe, we(this, be, _s).call(this, () => {
699
699
  Pt.ensure();
700
700
  try {
701
701
  return qe(() => {
@@ -703,7 +703,7 @@ class ic {
703
703
  /** @type {Effect} */
704
704
  ee
705
705
  );
706
- u.b = this, u.f |= wi, s(
706
+ u.b = this, u.f |= bi, s(
707
707
  v(this, He),
708
708
  () => c,
709
709
  () => o
@@ -735,7 +735,7 @@ class ic {
735
735
  });
736
736
  }
737
737
  }
738
- He = new WeakMap(), Zi = new WeakMap(), ht = new WeakMap(), Zt = new WeakMap(), Ne = new WeakMap(), dt = new WeakMap(), Le = new WeakMap(), Qe = new WeakMap(), wt = new WeakMap(), $t = new WeakMap(), Nt = new WeakMap(), Cn = new WeakMap(), Nn = new WeakMap(), Rn = new WeakMap(), bt = new WeakMap(), Ws = new WeakMap(), we = new WeakSet(), rc = function() {
738
+ He = new WeakMap(), Zi = new WeakMap(), ht = new WeakMap(), Zt = new WeakMap(), Ne = new WeakMap(), dt = new WeakMap(), Le = new WeakMap(), Qe = new WeakMap(), bt = new WeakMap(), $t = new WeakMap(), Nt = new WeakMap(), Cn = new WeakMap(), Nn = new WeakMap(), Rn = new WeakMap(), wt = new WeakMap(), Ws = new WeakMap(), be = new WeakSet(), rc = function() {
739
739
  try {
740
740
  F(this, dt, qe(() => v(this, Zt).call(this, v(this, He))));
741
741
  } catch (e) {
@@ -757,21 +757,21 @@ oc = function(e) {
757
757
  }, ac = function() {
758
758
  const e = v(this, ht).pending;
759
759
  e && (this.is_pending = !0, F(this, Le, qe(() => e(v(this, He)))), At(() => {
760
- var n = F(this, wt, document.createDocumentFragment()), s = St();
761
- n.append(s), F(this, dt, be(this, we, _s).call(this, () => (Pt.ensure(), qe(() => v(this, Zt).call(this, s))))), v(this, Nt) === 0 && (v(this, He).before(n), F(this, wt, null), sn(
760
+ var n = F(this, bt, document.createDocumentFragment()), s = St();
761
+ n.append(s), F(this, dt, we(this, be, _s).call(this, () => (Pt.ensure(), qe(() => v(this, Zt).call(this, s))))), v(this, Nt) === 0 && (v(this, He).before(n), F(this, bt, null), sn(
762
762
  /** @type {Effect} */
763
763
  v(this, Le),
764
764
  () => {
765
765
  F(this, Le, null);
766
766
  }
767
- ), be(this, we, Ss).call(this));
767
+ ), we(this, be, Ss).call(this));
768
768
  }));
769
769
  }, xi = function() {
770
770
  try {
771
771
  if (this.is_pending = this.has_pending_snippet(), F(this, Nt, 0), F(this, $t, 0), F(this, dt, qe(() => {
772
772
  v(this, Zt).call(this, v(this, He));
773
773
  })), v(this, Nt) > 0) {
774
- var e = F(this, wt, document.createDocumentFragment());
774
+ var e = F(this, bt, document.createDocumentFragment());
775
775
  ga(v(this, dt), e);
776
776
  const n = (
777
777
  /** @type {(anchor: Node) => void} */
@@ -779,7 +779,7 @@ oc = function(e) {
779
779
  );
780
780
  F(this, Le, qe(() => n(v(this, He))));
781
781
  } else
782
- be(this, we, Ss).call(this);
782
+ we(this, be, Ss).call(this);
783
783
  } catch (n) {
784
784
  this.error(n);
785
785
  }
@@ -812,12 +812,12 @@ _s = function(e) {
812
812
  Ei = function(e) {
813
813
  var n;
814
814
  if (!this.has_pending_snippet()) {
815
- this.parent && be(n = this.parent, we, Ei).call(n, e);
815
+ this.parent && we(n = this.parent, be, Ei).call(n, e);
816
816
  return;
817
817
  }
818
- F(this, Nt, v(this, Nt) + e), v(this, Nt) === 0 && (be(this, we, Ss).call(this), v(this, Le) && sn(v(this, Le), () => {
818
+ F(this, Nt, v(this, Nt) + e), v(this, Nt) === 0 && (we(this, be, Ss).call(this), v(this, Le) && sn(v(this, Le), () => {
819
819
  F(this, Le, null);
820
- }), v(this, wt) && (v(this, He).before(v(this, wt)), F(this, wt, null)));
820
+ }), v(this, bt) && (v(this, He).before(v(this, bt)), F(this, bt, null)));
821
821
  };
822
822
  function lc(t, e, n, s) {
823
823
  const i = rs() ? qs : nr;
@@ -993,7 +993,7 @@ function sr(t) {
993
993
  }
994
994
  function ea(t) {
995
995
  var e = sr(t);
996
- if (!t.equals(e) && (t.wv = wa(), (!(z != null && z.is_fork) || t.deps === null) && (t.v = e, t.deps === null))) {
996
+ if (!t.equals(e) && (t.wv = ba(), (!(z != null && z.is_fork) || t.deps === null) && (t.v = e, t.deps === null))) {
997
997
  fe(t, ye);
998
998
  return;
999
999
  }
@@ -1055,7 +1055,7 @@ function Pn(t, e) {
1055
1055
  );
1056
1056
  t.f & xe && sr(i), tr(i);
1057
1057
  }
1058
- t.wv = wa(), sa(t, xe), rs() && ee !== null && ee.f & ye && !(ee.f & (st | hn)) && (Ue === null ? Cc([t]) : Ue.push(t)), !s.is_fork && Ci.size > 0 && !na && mc();
1058
+ t.wv = ba(), sa(t, xe), rs() && ee !== null && ee.f & ye && !(ee.f & (st | hn)) && (Ue === null ? Cc([t]) : Ue.push(t)), !s.is_fork && Ci.size > 0 && !na && mc();
1059
1059
  }
1060
1060
  return e;
1061
1061
  }
@@ -1066,7 +1066,7 @@ function mc() {
1066
1066
  Ci.clear();
1067
1067
  }
1068
1068
  function Or(t, e = 1) {
1069
- var n = w(t), s = e === 1 ? n++ : n--;
1069
+ var n = b(t), s = e === 1 ? n++ : n--;
1070
1070
  return D(t, n), s;
1071
1071
  }
1072
1072
  function Kn(t) {
@@ -1140,11 +1140,11 @@ function pt(t) {
1140
1140
  if (c === nn)
1141
1141
  return t;
1142
1142
  var l = n.get(c), h = c in a;
1143
- if (l === void 0 && (!h || (p = bn(a, c)) != null && p.writable) && (l = o(() => {
1143
+ if (l === void 0 && (!h || (p = wn(a, c)) != null && p.writable) && (l = o(() => {
1144
1144
  var f = pt(h ? a[c] : Se), m = /* @__PURE__ */ oe(f);
1145
1145
  return m;
1146
1146
  }), n.set(c, l)), l !== void 0) {
1147
- var d = w(l);
1147
+ var d = b(l);
1148
1148
  return d === Se ? void 0 : d;
1149
1149
  }
1150
1150
  return Reflect.get(a, c, u);
@@ -1153,7 +1153,7 @@ function pt(t) {
1153
1153
  var u = Reflect.getOwnPropertyDescriptor(a, c);
1154
1154
  if (u && "value" in u) {
1155
1155
  var l = n.get(c);
1156
- l && (u.value = w(l));
1156
+ l && (u.value = b(l));
1157
1157
  } else if (u === void 0) {
1158
1158
  var h = n.get(c), d = h == null ? void 0 : h.v;
1159
1159
  if (h !== void 0 && d !== Se)
@@ -1171,12 +1171,12 @@ function pt(t) {
1171
1171
  if (c === nn)
1172
1172
  return !0;
1173
1173
  var u = n.get(c), l = u !== void 0 && u.v !== Se || Reflect.has(a, c);
1174
- if (u !== void 0 || ee !== null && (!l || (d = bn(a, c)) != null && d.writable)) {
1174
+ if (u !== void 0 || ee !== null && (!l || (d = wn(a, c)) != null && d.writable)) {
1175
1175
  u === void 0 && (u = o(() => {
1176
1176
  var p = l ? pt(a[c]) : Se, f = /* @__PURE__ */ oe(p);
1177
1177
  return f;
1178
1178
  }), n.set(c, u));
1179
- var h = w(u);
1179
+ var h = b(u);
1180
1180
  if (h === Se)
1181
1181
  return !1;
1182
1182
  }
@@ -1192,7 +1192,7 @@ function pt(t) {
1192
1192
  f !== void 0 ? D(f, Se) : p in a && (f = o(() => /* @__PURE__ */ oe(Se)), n.set(p + "", f));
1193
1193
  }
1194
1194
  if (h === void 0)
1195
- (!d || (x = bn(a, c)) != null && x.writable) && (h = o(() => /* @__PURE__ */ oe(void 0)), D(h, pt(u)), n.set(c, h));
1195
+ (!d || (x = wn(a, c)) != null && x.writable) && (h = o(() => /* @__PURE__ */ oe(void 0)), D(h, pt(u)), n.set(c, h));
1196
1196
  else {
1197
1197
  d = h.v !== Se;
1198
1198
  var m = o(() => pt(u));
@@ -1212,7 +1212,7 @@ function pt(t) {
1212
1212
  return !0;
1213
1213
  },
1214
1214
  ownKeys(a) {
1215
- w(i);
1215
+ b(i);
1216
1216
  var c = Reflect.ownKeys(a).filter((h) => {
1217
1217
  var d = n.get(h);
1218
1218
  return d === void 0 || d.v !== Se;
@@ -1239,11 +1239,11 @@ function vc(t, e) {
1239
1239
  return Object.is(Mr(t), Mr(e));
1240
1240
  }
1241
1241
  var Ar, ia, ra, oa;
1242
- function wc() {
1242
+ function bc() {
1243
1243
  if (Ar === void 0) {
1244
1244
  Ar = window, ia = /Firefox/.test(navigator.userAgent);
1245
1245
  var t = Element.prototype, e = Node.prototype, n = Text.prototype;
1246
- ra = bn(e, "firstChild").get, oa = bn(e, "nextSibling").get, Nr(t) && (t.__click = void 0, t.__className = void 0, t.__attributes = null, t.__style = void 0, t.__e = void 0), Nr(n) && (n.__t = void 0);
1246
+ ra = wn(e, "firstChild").get, oa = wn(e, "nextSibling").get, Nr(t) && (t.__click = void 0, t.__className = void 0, t.__attributes = null, t.__style = void 0, t.__e = void 0), Nr(n) && (n.__t = void 0);
1247
1247
  }
1248
1248
  }
1249
1249
  function St(t = "") {
@@ -1279,7 +1279,7 @@ function G(t, e = 1, n = !1) {
1279
1279
  /* @__PURE__ */ os(s);
1280
1280
  return s;
1281
1281
  }
1282
- function bc(t) {
1282
+ function wc(t) {
1283
1283
  t.textContent = "";
1284
1284
  }
1285
1285
  function aa() {
@@ -1416,7 +1416,7 @@ function or(t, e = 0) {
1416
1416
  }
1417
1417
  function J(t, e = [], n = [], s = []) {
1418
1418
  lc(s, e, n, (i) => {
1419
- Tt(Us, () => t(...i.map(w)), !0);
1419
+ Tt(Us, () => t(...i.map(b)), !0);
1420
1420
  });
1421
1421
  }
1422
1422
  function Ks(t, e = 0) {
@@ -1556,7 +1556,7 @@ let va = 1, Xt = 0, rn = Xt;
1556
1556
  function Br(t) {
1557
1557
  rn = t;
1558
1558
  }
1559
- function wa() {
1559
+ function ba() {
1560
1560
  return ++va;
1561
1561
  }
1562
1562
  function as(t) {
@@ -1584,12 +1584,12 @@ function as(t) {
1584
1584
  }
1585
1585
  return !1;
1586
1586
  }
1587
- function ba(t, e, n = !0) {
1587
+ function wa(t, e, n = !0) {
1588
1588
  var s = t.reactions;
1589
1589
  if (s !== null && !(Ge !== null && Mn.call(Ge, t)))
1590
1590
  for (var i = 0; i < s.length; i++) {
1591
1591
  var r = s[i];
1592
- r.f & Te ? ba(
1592
+ r.f & Te ? wa(
1593
1593
  /** @type {Derived} */
1594
1594
  r,
1595
1595
  e,
@@ -1608,7 +1608,7 @@ function ya(t) {
1608
1608
  t.ac.abort(Gt);
1609
1609
  }), t.ac = null);
1610
1610
  try {
1611
- t.f |= bi;
1611
+ t.f |= wi;
1612
1612
  var l = (
1613
1613
  /** @type {Function} */
1614
1614
  t.fn
@@ -1629,7 +1629,7 @@ function ya(t) {
1629
1629
  if (rs() && Ue !== null && !tt && d !== null && !(t.f & (Te | nt | xe)))
1630
1630
  for (f = 0; f < /** @type {Source[]} */
1631
1631
  Ue.length; f++)
1632
- ba(
1632
+ wa(
1633
1633
  Ue[f],
1634
1634
  /** @type {Effect} */
1635
1635
  t
@@ -1648,7 +1648,7 @@ function ya(t) {
1648
1648
  } catch (y) {
1649
1649
  return Go(y);
1650
1650
  } finally {
1651
- t.f ^= bi, De = e, Pe = n, Ue = s, q = i, Ge = r, An(o), tt = a, rn = c;
1651
+ t.f ^= wi, De = e, Pe = n, Ue = s, q = i, Ge = r, An(o), tt = a, rn = c;
1652
1652
  }
1653
1653
  }
1654
1654
  function Nc(t, e) {
@@ -1697,13 +1697,13 @@ function Bn(t) {
1697
1697
  async function Rc() {
1698
1698
  await Promise.resolve(), $l();
1699
1699
  }
1700
- function w(t) {
1700
+ function b(t) {
1701
1701
  var e = t.f, n = (e & Te) !== 0;
1702
1702
  if (q !== null && !tt) {
1703
1703
  var s = ee !== null && (ee.f & yt) !== 0;
1704
1704
  if (!s && (Ge === null || !Mn.call(Ge, t))) {
1705
1705
  var i = q.deps;
1706
- if (q.f & bi)
1706
+ if (q.f & wi)
1707
1707
  t.rv < Xt && (t.rv = Xt, De === null && i !== null && i[Pe] === t ? Pe++ : De === null ? De = [t] : De.push(t));
1708
1708
  else {
1709
1709
  (q.deps ?? (q.deps = [])).push(t);
@@ -1957,7 +1957,7 @@ function Lc(t, e) {
1957
1957
  }
1958
1958
  const fs = /* @__PURE__ */ new Map();
1959
1959
  function Bc(t, { target: e, anchor: n, props: s = {}, events: i, context: r, intro: o = !0, transformError: a }) {
1960
- wc();
1960
+ bc();
1961
1961
  var c = void 0, u = Tc(() => {
1962
1962
  var l = n ?? e.appendChild(St());
1963
1963
  sc(
@@ -2194,7 +2194,7 @@ function zc(t, e, n) {
2194
2194
  /** @type {Element} */
2195
2195
  u.parentNode
2196
2196
  );
2197
- bc(l), l.append(u), t.items.clear();
2197
+ wc(l), l.append(u), t.items.clear();
2198
2198
  }
2199
2199
  Oi(e, !c);
2200
2200
  } else
@@ -2228,16 +2228,16 @@ function $n(t, e, n, s, i, r = null) {
2228
2228
  }
2229
2229
  var f = Ks(() => {
2230
2230
  h = /** @type {V[]} */
2231
- w(l);
2231
+ b(l);
2232
2232
  for (var y = h.length, S = /* @__PURE__ */ new Set(), _ = (
2233
2233
  /** @type {Batch} */
2234
2234
  z
2235
2235
  ), x = aa(), g = 0; g < y; g += 1) {
2236
- var b = h[g], E = s(b, g), I = d ? null : a.get(E);
2237
- I ? (I.v && Pn(I.v, b), I.i && Pn(I.i, g), x && _.unskip_effect(I.e)) : (I = Uc(
2236
+ var w = h[g], E = s(w, g), I = d ? null : a.get(E);
2237
+ I ? (I.v && Pn(I.v, w), I.i && Pn(I.i, g), x && _.unskip_effect(I.e)) : (I = Uc(
2238
2238
  a,
2239
2239
  d ? o : Wr ?? (Wr = St()),
2240
- b,
2240
+ w,
2241
2241
  E,
2242
2242
  g,
2243
2243
  i,
@@ -2253,7 +2253,7 @@ function $n(t, e, n, s, i, r = null) {
2253
2253
  });
2254
2254
  } else
2255
2255
  p();
2256
- w(l);
2256
+ b(l);
2257
2257
  }), m = { effect: f, items: a, outrogroups: null, fallback: u };
2258
2258
  d = !1;
2259
2259
  }
@@ -2306,16 +2306,16 @@ function jc(t, e, n, s, i) {
2306
2306
  t.outrogroups.size === 0 && (t.outrogroups = null);
2307
2307
  }
2308
2308
  if (a !== null || c !== void 0) {
2309
- var b = [];
2309
+ var w = [];
2310
2310
  if (c !== void 0)
2311
2311
  for (f of c)
2312
- f.f & Fe || b.push(f);
2312
+ f.f & Fe || w.push(f);
2313
2313
  for (; a !== null; )
2314
- !(a.f & Fe) && a !== t.fallback && b.push(a), a = Hn(a.next);
2315
- var E = b.length;
2314
+ !(a.f & Fe) && a !== t.fallback && w.push(a), a = Hn(a.next);
2315
+ var E = w.length;
2316
2316
  if (E > 0) {
2317
2317
  var I = r === 0 ? n : null;
2318
- zc(t, b, I);
2318
+ zc(t, w, I);
2319
2319
  }
2320
2320
  }
2321
2321
  }
@@ -2540,7 +2540,7 @@ function eu(t) {
2540
2540
  }
2541
2541
  function We(t, e, n, s) {
2542
2542
  var x;
2543
- var i = !zn || (n & wl) !== 0, r = (n & yl) !== 0, o = (n & Sl) !== 0, a = (
2543
+ var i = !zn || (n & bl) !== 0, r = (n & yl) !== 0, o = (n & Sl) !== 0, a = (
2544
2544
  /** @type {V} */
2545
2545
  s
2546
2546
  ), c = !0, u = () => (c && (c = !1, a = o ? ls(
@@ -2552,7 +2552,7 @@ function We(t, e, n, s) {
2552
2552
  )), a), l;
2553
2553
  if (r) {
2554
2554
  var h = nn in t || Ol in t;
2555
- l = ((x = bn(t, e)) == null ? void 0 : x.set) ?? (h && e in t ? (g) => t[e] = g : void 0);
2555
+ l = ((x = wn(t, e)) == null ? void 0 : x.set) ?? (h && e in t ? (g) => t[e] = g : void 0);
2556
2556
  }
2557
2557
  var d, p = !1;
2558
2558
  r ? [d, p] = eu(() => (
@@ -2574,31 +2574,31 @@ function We(t, e, n, s) {
2574
2574
  );
2575
2575
  return g !== void 0 && (a = /** @type {V} */
2576
2576
  void 0), g === void 0 ? a : g;
2577
- }, i && !(n & bl))
2577
+ }, i && !(n & wl))
2578
2578
  return f;
2579
2579
  if (l) {
2580
2580
  var m = t.$$legacy;
2581
2581
  return (
2582
2582
  /** @type {() => V} */
2583
- function(g, b) {
2584
- return arguments.length > 0 ? ((!i || !b || m || p) && l(b ? f() : g), g) : f();
2583
+ function(g, w) {
2584
+ return arguments.length > 0 ? ((!i || !w || m || p) && l(w ? f() : g), g) : f();
2585
2585
  }
2586
2586
  );
2587
2587
  }
2588
2588
  var y = !1, S = (n & vl ? qs : nr)(() => (y = !1, f()));
2589
- r && w(S);
2589
+ r && b(S);
2590
2590
  var _ = (
2591
2591
  /** @type {Effect} */
2592
2592
  ee
2593
2593
  );
2594
2594
  return (
2595
2595
  /** @type {() => V} */
2596
- function(g, b) {
2596
+ function(g, w) {
2597
2597
  if (arguments.length > 0) {
2598
- const E = b ? w(S) : i && r ? pt(g) : g;
2598
+ const E = w ? b(S) : i && r ? pt(g) : g;
2599
2599
  return D(S, E), y = !0, a !== void 0 && (a = E), g;
2600
2600
  }
2601
- return Bt && y || _.f & yt ? S.v : w(S);
2601
+ return Bt && y || _.f & yt ? S.v : b(S);
2602
2602
  }
2603
2603
  );
2604
2604
  }
@@ -2837,8 +2837,8 @@ var Oa = /* @__PURE__ */ Sn(Wt, 9, 0), Ma = /* @__PURE__ */ Sn(es, 5, 0), dr = f
2837
2837
  var o = new Ye(n[0].s + 1);
2838
2838
  return o[n[0].s] = 1, { t: o, l: 1 };
2839
2839
  }
2840
- n.sort(function(b, E) {
2841
- return b.f - E.f;
2840
+ n.sort(function(w, E) {
2841
+ return w.f - E.f;
2842
2842
  }), n.push({ s: -1, f: 25001 });
2843
2843
  var a = n[0], c = n[1], u = 0, l = 1, h = 2;
2844
2844
  for (n[0] = { s: -1, f: a.f + c.f, l: a, r: c }; l != i - 1; )
@@ -2905,10 +2905,10 @@ var Oa = /* @__PURE__ */ Sn(Wt, 9, 0), Ma = /* @__PURE__ */ Sn(es, 5, 0), dr = f
2905
2905
  return (i + 4 + s) * 8;
2906
2906
  }, Bi = function(t, e, n, s, i, r, o, a, c, u, l) {
2907
2907
  ot(e, l++, n), ++i[256];
2908
- for (var h = Ts(i, 15), d = h.t, p = h.l, f = Ts(r, 15), m = f.t, y = f.l, S = Li(d), _ = S.c, x = S.n, g = Li(m), b = g.c, E = g.n, I = new Oe(19), k = 0; k < _.length; ++k)
2908
+ for (var h = Ts(i, 15), d = h.t, p = h.l, f = Ts(r, 15), m = f.t, y = f.l, S = Li(d), _ = S.c, x = S.n, g = Li(m), w = g.c, E = g.n, I = new Oe(19), k = 0; k < _.length; ++k)
2909
2909
  ++I[_[k] & 31];
2910
- for (var k = 0; k < b.length; ++k)
2911
- ++I[b[k] & 31];
2910
+ for (var k = 0; k < w.length; ++k)
2911
+ ++I[w[k] & 31];
2912
2912
  for (var T = Ts(I, 7), A = T.t, V = T.l, j = 19; j > 4 && !A[Ai[j - 1]]; --j)
2913
2913
  ;
2914
2914
  var Q = u + 5 << 3, W = mn(i, Wt) + mn(r, es) + o, L = mn(i, d) + mn(r, m) + o + 14 + 3 * j + mn(I, A) + 2 * I[16] + 3 * I[17] + 7 * I[18];
@@ -2922,7 +2922,7 @@ var Oa = /* @__PURE__ */ Sn(Wt, 9, 0), Ma = /* @__PURE__ */ Sn(es, 5, 0), dr = f
2922
2922
  for (var k = 0; k < j; ++k)
2923
2923
  ot(e, l + 3 * k, A[Ai[k]]);
2924
2924
  l += 3 * j;
2925
- for (var O = [_, b], te = 0; te < 2; ++te)
2925
+ for (var O = [_, w], te = 0; te < 2; ++te)
2926
2926
  for (var se = O[te], k = 0; k < se.length; ++k) {
2927
2927
  var ae = se[k] & 31;
2928
2928
  ot(e, l, N[ae]), l += A[ae], ae > 15 && (ot(e, l, se[k] >> 5 & 127), l += se[k] >> 12);
@@ -2946,14 +2946,14 @@ var Oa = /* @__PURE__ */ Sn(Wt, 9, 0), Ma = /* @__PURE__ */ Sn(es, 5, 0), dr = f
2946
2946
  l && (c[0] = r.r >> 3);
2947
2947
  for (var h = La[e - 1], d = h >> 13, p = h & 8191, f = (1 << n) - 1, m = r.p || new Oe(32768), y = r.h || new Oe(f + 1), S = Math.ceil(n / 3), _ = 2 * S, x = function(Ht) {
2948
2948
  return (t[Ht] ^ t[Ht + 1] << S ^ t[Ht + 2] << _) & f;
2949
- }, g = new Js(25e3), b = new Oe(288), E = new Oe(32), I = 0, k = 0, T = r.i || 0, A = 0, V = r.w || 0, j = 0; T + 2 < o; ++T) {
2949
+ }, g = new Js(25e3), w = new Oe(288), E = new Oe(32), I = 0, k = 0, T = r.i || 0, A = 0, V = r.w || 0, j = 0; T + 2 < o; ++T) {
2950
2950
  var Q = x(T), W = T & 32767, L = y[Q];
2951
2951
  if (m[W] = L, y[Q] = W, V <= T) {
2952
2952
  var X = o - T;
2953
2953
  if ((I > 7e3 || A > 24576) && (X > 423 || !u)) {
2954
- l = Bi(t, c, 0, g, b, E, k, A, j, T - j, l), A = I = k = 0, j = T;
2954
+ l = Bi(t, c, 0, g, w, E, k, A, j, T - j, l), A = I = k = 0, j = T;
2955
2955
  for (var Z = 0; Z < 286; ++Z)
2956
- b[Z] = 0;
2956
+ w[Z] = 0;
2957
2957
  for (var Z = 0; Z < 30; ++Z)
2958
2958
  E[Z] = 0;
2959
2959
  }
@@ -2977,14 +2977,14 @@ var Oa = /* @__PURE__ */ Sn(Wt, 9, 0), Ma = /* @__PURE__ */ Sn(es, 5, 0), dr = f
2977
2977
  if (Y) {
2978
2978
  g[A++] = 268435456 | Rs[R] << 18 | Pi[Y];
2979
2979
  var Ce = Rs[R] & 31, jn = Pi[Y] & 31;
2980
- k += Qs[Ce] + Zs[jn], ++b[257 + Ce], ++E[jn], V = T + R, ++I;
2980
+ k += Qs[Ce] + Zs[jn], ++w[257 + Ce], ++E[jn], V = T + R, ++I;
2981
2981
  } else
2982
- g[A++] = t[T], ++b[t[T]];
2982
+ g[A++] = t[T], ++w[t[T]];
2983
2983
  }
2984
2984
  }
2985
2985
  for (T = Math.max(T, V); T < o; ++T)
2986
- g[A++] = t[T], ++b[t[T]];
2987
- l = Bi(t, c, u, g, b, E, k, A, j, T - j, l), u || (r.r = l & 7 | c[l / 8 | 0] << 3, l -= 7, r.h = y, r.p = m, r.i = T, r.w = V);
2986
+ g[A++] = t[T], ++w[t[T]];
2987
+ l = Bi(t, c, u, g, w, E, k, A, j, T - j, l), u || (r.r = l & 7 | c[l / 8 | 0] << 3, l -= 7, r.h = y, r.p = m, r.i = T, r.w = V);
2988
2988
  } else {
2989
2989
  for (var T = r.w || 0; T < o + u; T += 65535) {
2990
2990
  var xt = T + 65535;
@@ -3401,7 +3401,7 @@ const dn = {
3401
3401
  }
3402
3402
  return s;
3403
3403
  };
3404
- class wu {
3404
+ class bu {
3405
3405
  constructor(e) {
3406
3406
  this.app = e, this.flags = [], this.storageKey = "__openreplay_flags";
3407
3407
  const n = this.app.sessionStorage.getItem(this.storageKey);
@@ -3472,7 +3472,7 @@ class wu {
3472
3472
  return e.filter((r) => i.findIndex((o) => o.key === r.key) === -1);
3473
3473
  }
3474
3474
  }
3475
- const Xr = { htmlmasked: "hidden", masked: "obscured" }, mt = !(typeof window > "u"), bu = mt && navigator.userAgent.match(/firefox|fxios/i), yu = 1e5;
3475
+ const Xr = { htmlmasked: "hidden", masked: "obscured" }, mt = !(typeof window > "u"), wu = mt && navigator.userAgent.match(/firefox|fxios/i), yu = 1e5;
3476
3476
  let mr = mt ? Date.now() - performance.now() : 0;
3477
3477
  function oi() {
3478
3478
  mr = Date.now() - performance.now();
@@ -3534,7 +3534,7 @@ function Qr() {
3534
3534
  return !0;
3535
3535
  }
3536
3536
  }
3537
- function wr(t) {
3537
+ function br(t) {
3538
3538
  return window.Zone && "__symbol__" in window.Zone ? (
3539
3539
  // @ts-ignore
3540
3540
  window.Zone.__symbol__(t)
@@ -3544,7 +3544,7 @@ function Ga(t, e) {
3544
3544
  if (e)
3545
3545
  return new MutationObserver(t);
3546
3546
  {
3547
- const n = wr("MutationObserver");
3547
+ const n = br("MutationObserver");
3548
3548
  return new window[n](t);
3549
3549
  }
3550
3550
  }
@@ -3552,7 +3552,7 @@ function Ka(t, e, n, s, i) {
3552
3552
  if (!Va(t))
3553
3553
  return;
3554
3554
  let r = "addEventListener";
3555
- i || (r = wr("addEventListener"));
3555
+ i || (r = br("addEventListener"));
3556
3556
  try {
3557
3557
  t[r] ? t[r](e, n, s) : t.addEventListener(e, n, s);
3558
3558
  } catch (o) {
@@ -3569,7 +3569,7 @@ function Xa(t, e, n, s, i) {
3569
3569
  if (!Va(t))
3570
3570
  return;
3571
3571
  let r = "removeEventListener";
3572
- i || (r = wr("removeEventListener"));
3572
+ i || (r = br("removeEventListener"));
3573
3573
  try {
3574
3574
  t[r] ? t[r](e, n, s) : t.removeEventListener(e, n, s);
3575
3575
  } catch (o) {
@@ -4308,7 +4308,7 @@ const oh = {
4308
4308
  alignItems: "center",
4309
4309
  width: "100%",
4310
4310
  boxSizing: "border-box"
4311
- }, wh = {
4311
+ }, bh = {
4312
4312
  border: "4px solid rgba(255, 255, 255, 0.4)",
4313
4313
  width: "16px",
4314
4314
  height: "16px",
@@ -4318,7 +4318,7 @@ const oh = {
4318
4318
  }, go = {
4319
4319
  Standard: { width: 1280, height: 720 }
4320
4320
  };
4321
- class bh {
4321
+ class wh {
4322
4322
  constructor(e) {
4323
4323
  this.app = e, this.mediaRecorder = null, this.recordedChunks = [], this.stream = null, this.recStartTs = null;
4324
4324
  }
@@ -4448,7 +4448,7 @@ function kh() {
4448
4448
  function Th() {
4449
4449
  kh();
4450
4450
  const t = document.createElement("div");
4451
- return t.classList.add("spinner"), Object.assign(t.style, wh), t;
4451
+ return t.classList.add("spinner"), Object.assign(t.style, bh), t;
4452
4452
  }
4453
4453
  function H(t, e, n, s, i) {
4454
4454
  const r = document.createElement(t);
@@ -4522,7 +4522,7 @@ class Ih {
4522
4522
  console.log("OR: Error fetching test", l);
4523
4523
  });
4524
4524
  }, this.hideTaskSection = () => !1, this.showTaskSection = () => !0, this.collapseWidget = () => !1, this.removeGreeting = () => !1, this.toggleDescriptionVisibility = () => {
4525
- }, this.currentTaskIndex = 0, this.userRecorder = new bh(e);
4525
+ }, this.currentTaskIndex = 0, this.userRecorder = new wh(e);
4526
4526
  const s = this.app.getSessionID(), i = this.app.localStorage.getItem(qi);
4527
4527
  s !== i && (this.app.localStorage.removeItem(this.storageKey), this.app.localStorage.removeItem(qi), this.app.localStorage.removeItem(xh), this.app.localStorage.removeItem(Hi), this.app.localStorage.removeItem(Is));
4528
4528
  const r = this.app.localStorage.getItem(Hi);
@@ -4635,8 +4635,8 @@ class Ih {
4635
4635
  const g = e[this.currentTaskIndex];
4636
4636
  u.textContent = g.title, l.textContent = g.description, g.allow_typing ? f.style.display = "flex" : f.style.display = "none";
4637
4637
  };
4638
- e.forEach((g, b) => {
4639
- const E = H("span", `or_task_${b}`, {
4638
+ e.forEach((g, w) => {
4639
+ const E = H("span", `or_task_${w}`, {
4640
4640
  outline: "1px solid #efefef",
4641
4641
  fontSize: "13px",
4642
4642
  height: "24px",
@@ -4646,8 +4646,8 @@ class Ih {
4646
4646
  alignItems: "center",
4647
4647
  justifyContent: "center",
4648
4648
  borderRadius: "6.25em"
4649
- }, (b + 1).toString());
4650
- E.id = `or_task_${b}`, a.append(E);
4649
+ }, (w + 1).toString());
4650
+ E.id = `or_task_${w}`, a.append(E);
4651
4651
  });
4652
4652
  const _ = () => {
4653
4653
  this.widgetTasksVisible = !this.widgetTasksVisible, r.textContent = this.widgetTasksVisible ? "-" : "+", Object.assign(o.style, this.widgetTasksVisible ? fn : { display: "none" });
@@ -4658,15 +4658,15 @@ class Ih {
4658
4658
  const x = () => {
4659
4659
  const g = document.getElementById(`or_task_${this.currentTaskIndex}`);
4660
4660
  g && Object.assign(g.style, ho);
4661
- for (let b = 0; b < this.currentTaskIndex; b++) {
4662
- const E = document.getElementById(`or_task_${b}`);
4661
+ for (let w = 0; w < this.currentTaskIndex; w++) {
4662
+ const E = document.getElementById(`or_task_${w}`);
4663
4663
  E && Object.assign(E.style, ph);
4664
4664
  }
4665
4665
  };
4666
4666
  return s.onclick = _, m.onclick = this.collapseWidget, y.onclick = () => {
4667
- var b, E, I, k;
4667
+ var w, E, I, k;
4668
4668
  const g = e[this.currentTaskIndex].allow_typing ? p.value : void 0;
4669
- if (p.value = "", (b = this.signalManager) == null || b.signalTask(e[this.currentTaskIndex].task_id, "done", g), this.currentTaskIndex < e.length - 1) {
4669
+ if (p.value = "", (w = this.signalManager) == null || w.signalTask(e[this.currentTaskIndex].task_id, "done", g), this.currentTaskIndex < e.length - 1) {
4670
4670
  this.currentTaskIndex++, S();
4671
4671
  const T = (E = this.signalManager) == null ? void 0 : E.getDurations();
4672
4672
  T && T.tasks.findIndex((A) => A.taskId === e[this.currentTaskIndex].task_id) === -1 && (T.tasks.push({
@@ -4825,7 +4825,7 @@ function Dh(t, e) {
4825
4825
  const n = URL.createObjectURL(t), s = document.createElement("a");
4826
4826
  s.href = n, s.download = e, s.style.display = "none", document.body.appendChild(s), s.click(), document.body.removeChild(s);
4827
4827
  }
4828
- const wn = {
4828
+ const bn = {
4829
4829
  Verbose: 5,
4830
4830
  Log: 4,
4831
4831
  Warnings: 3,
@@ -4833,15 +4833,15 @@ const wn = {
4833
4833
  Silent: 0
4834
4834
  };
4835
4835
  class Oh {
4836
- constructor(e = wn.Silent) {
4836
+ constructor(e = bn.Silent) {
4837
4837
  this.shouldLog = (n) => this.level >= n, this.info = (...n) => {
4838
- this.shouldLog(wn.Verbose) && console.info(...n);
4838
+ this.shouldLog(bn.Verbose) && console.info(...n);
4839
4839
  }, this.log = (...n) => {
4840
- this.shouldLog(wn.Log) && console.log(...n);
4840
+ this.shouldLog(bn.Log) && console.log(...n);
4841
4841
  }, this.warn = (...n) => {
4842
- this.shouldLog(wn.Warnings) && console.warn(...n);
4842
+ this.shouldLog(bn.Warnings) && console.warn(...n);
4843
4843
  }, this.error = (...n) => {
4844
- this.shouldLog(wn.Errors) && console.error(...n);
4844
+ this.shouldLog(bn.Errors) && console.error(...n);
4845
4845
  }, this.level = e;
4846
4846
  }
4847
4847
  }
@@ -4968,7 +4968,7 @@ var lt;
4968
4968
  (function(t) {
4969
4969
  t[t.New = 0] = "New", t[t.Removed = 1] = "Removed", t[t.Changed = 2] = "Changed";
4970
4970
  })(lt || (lt = {}));
4971
- class br {
4971
+ class wr {
4972
4972
  constructor(e, n = !1) {
4973
4973
  this.app = e, this.isTopContext = n, this.commited = [], this.recents = /* @__PURE__ */ new Map(), this.indexes = [], this.attributesMap = /* @__PURE__ */ new Map(), this.textSet = /* @__PURE__ */ new Set(), this.observer = Ga(this.app.safe((s) => {
4974
4974
  for (const i of s) {
@@ -5181,7 +5181,7 @@ class br {
5181
5181
  this.observer.disconnect(), this.clear();
5182
5182
  }
5183
5183
  }
5184
- class vo extends br {
5184
+ class vo extends wr {
5185
5185
  observe(e) {
5186
5186
  const n = e.contentDocument, s = this.app.nodes.getID(e);
5187
5187
  !n || s === void 0 || this.observeRoot(n, (i) => {
@@ -5202,7 +5202,7 @@ class vo extends br {
5202
5202
  });
5203
5203
  }
5204
5204
  }
5205
- class Wh extends br {
5205
+ class Wh extends wr {
5206
5206
  observe(e) {
5207
5207
  const n = e.shadowRoot, s = this.app.nodes.getID(e);
5208
5208
  !n || s === void 0 || this.observeRoot(n, (i) => {
@@ -5256,7 +5256,7 @@ class zh {
5256
5256
  }
5257
5257
  }
5258
5258
  const hi = mt ? Element.prototype.attachShadow : () => new ShadowRoot();
5259
- class jh extends br {
5259
+ class jh extends wr {
5260
5260
  constructor(e) {
5261
5261
  super(e.app, !0), this.iframeOffsets = new zh(), this.contextCallbacks = [], this.contextsSet = /* @__PURE__ */ new WeakSet(), this.iframeObserversArr = [], this.iframeObservers = /* @__PURE__ */ new WeakMap(), this.docObservers = /* @__PURE__ */ new WeakMap(), this.shadowRootObservers = /* @__PURE__ */ new WeakMap(), this.app = e.app, this.options = Object.assign({
5262
5262
  captureIFrames: !0
@@ -5455,7 +5455,7 @@ class Gh {
5455
5455
  this.timer !== null && (clearInterval(this.timer), this.timer = null);
5456
5456
  }
5457
5457
  }
5458
- const Kh = '!function(){"use strict";class t{constructor(t,s,i,e=10,n=250,h,r){this.onUnauthorised=s,this.onFailure=i,this.MAX_ATTEMPTS_COUNT=e,this.ATTEMPT_TIMEOUT=n,this.onCompress=h,this.pageNo=r,this.attemptsCount=0,this.busy=!1,this.queue=[],this.token=null,this.lastBatchNum=0,this.ingestURL=t+"/v1/web/i",this.isCompressing=void 0!==h}getQueueStatus(){return 0===this.queue.length&&!this.busy}authorise(t){this.token=t,this.busy||this.sendNext()}push(t){if(this.busy||!this.token)this.queue.push(t);else if(this.busy=!0,this.isCompressing&&this.onCompress)this.onCompress(t);else{const s=++this.lastBatchNum;this.sendBatch(t,!1,s)}}sendNext(){const t=this.queue.shift();if(t)if(this.busy=!0,this.isCompressing&&this.onCompress)this.onCompress(t);else{const s=++this.lastBatchNum;this.sendBatch(t,!1,s)}else this.busy=!1}retry(t,s,i){this.attemptsCount>=this.MAX_ATTEMPTS_COUNT?this.onFailure(`Failed to send batch after ${this.attemptsCount} attempts.`):(this.attemptsCount++,setTimeout((()=>this.sendBatch(t,s,i)),this.ATTEMPT_TIMEOUT*this.attemptsCount))}sendBatch(t,s,i){var e;const n=null==i?void 0:i.toString().replace(/^([^_]+)_([^_]+).*/,"$1_$2_$3");this.busy=!0;const h={Authorization:`Bearer ${this.token}`};s&&(h["Content-Encoding"]="gzip"),null!==this.token?fetch(`${this.ingestURL}?batch=${null!==(e=this.pageNo)&&void 0!==e?e:"noPageNum"}_${null!=n?n:"noBatchNum"}`,{body:t,method:"POST",headers:h,keepalive:t.length<65536}).then((e=>{if(401===e.status)return this.busy=!1,void this.onUnauthorised();e.status>=400?this.retry(t,s,`${null!=i?i:"noBatchNum"}_network:${e.status}`):(this.attemptsCount=0,this.sendNext())})).catch((e=>{console.warn("OpenReplay:",e),this.retry(t,s,`${null!=i?i:"noBatchNum"}_reject:${e.message}`)})):setTimeout((()=>{this.sendBatch(t,s,`${null!=i?i:"noBatchNum"}_newToken`)}),500)}sendCompressed(t){const s=++this.lastBatchNum;this.sendBatch(t,!0,s)}sendUncompressed(t){const s=++this.lastBatchNum;this.sendBatch(t,!1,s)}clean(){this.sendNext(),setTimeout((()=>{this.token=null,this.queue.length=0}),10)}}const s="function"==typeof TextEncoder?new TextEncoder:{encode(t){const s=t.length,i=new Uint8Array(3*s);let e=-1;for(let n=0,h=0,r=0;r!==s;){if(n=t.charCodeAt(r),r+=1,n>=55296&&n<=56319){if(r===s){i[e+=1]=239,i[e+=1]=191,i[e+=1]=189;break}if(h=t.charCodeAt(r),!(h>=56320&&h<=57343)){i[e+=1]=239,i[e+=1]=191,i[e+=1]=189;continue}if(n=1024*(n-55296)+h-56320+65536,r+=1,n>65535){i[e+=1]=240|n>>>18,i[e+=1]=128|n>>>12&63,i[e+=1]=128|n>>>6&63,i[e+=1]=128|63&n;continue}}n<=127?i[e+=1]=0|n:n<=2047?(i[e+=1]=192|n>>>6,i[e+=1]=128|63&n):(i[e+=1]=224|n>>>12,i[e+=1]=128|n>>>6&63,i[e+=1]=128|63&n)}return i.subarray(0,e+1)}};class i{constructor(t){this.size=t,this.offset=0,this.checkpointOffset=0,this.data=new Uint8Array(t)}getCurrentOffset(){return this.offset}checkpoint(){this.checkpointOffset=this.offset}get isEmpty(){return 0===this.offset}skip(t){return this.offset+=t,this.offset<=this.size}set(t,s){this.data.set(t,s)}boolean(t){return this.data[this.offset++]=+t,this.offset<=this.size}uint(t){for((t<0||t>Number.MAX_SAFE_INTEGER)&&(t=0);t>=128;)this.data[this.offset++]=t%256|128,t=Math.floor(t/128);return this.data[this.offset++]=t,this.offset<=this.size}int(t){return t=Math.round(t),this.uint(t>=0?2*t:-2*t-1)}string(t){const i=s.encode(t),e=i.byteLength;return!(!this.uint(e)||this.offset+e>this.size)&&(this.data.set(i,this.offset),this.offset+=e,!0)}reset(){this.offset=0,this.checkpointOffset=0}flush(){const t=this.data.slice(0,this.checkpointOffset);return this.reset(),t}}class e extends i{encode(t){switch(t[0]){case 0:case 11:case 114:case 115:return this.uint(t[1]);case 4:case 44:case 47:return this.string(t[1])&&this.string(t[2])&&this.uint(t[3]);case 5:case 20:case 38:case 70:case 75:case 76:case 77:case 82:return this.uint(t[1])&&this.uint(t[2]);case 6:return this.int(t[1])&&this.int(t[2]);case 7:return!0;case 8:return this.uint(t[1])&&this.uint(t[2])&&this.uint(t[3])&&this.string(t[4])&&this.boolean(t[5]);case 9:case 10:case 24:case 51:return this.uint(t[1])&&this.uint(t[2])&&this.uint(t[3]);case 12:case 61:case 71:return this.uint(t[1])&&this.string(t[2])&&this.string(t[3]);case 13:case 14:case 17:case 50:case 54:return this.uint(t[1])&&this.string(t[2]);case 16:return this.uint(t[1])&&this.int(t[2])&&this.int(t[3]);case 18:return this.uint(t[1])&&this.string(t[2])&&this.int(t[3]);case 19:return this.uint(t[1])&&this.boolean(t[2]);case 21:return this.string(t[1])&&this.string(t[2])&&this.string(t[3])&&this.string(t[4])&&this.string(t[5])&&this.uint(t[6])&&this.uint(t[7])&&this.uint(t[8]);case 22:case 27:case 30:case 41:case 45:case 46:case 63:case 64:case 79:return this.string(t[1])&&this.string(t[2]);case 23:return this.uint(t[1])&&this.uint(t[2])&&this.uint(t[3])&&this.uint(t[4])&&this.uint(t[5])&&this.uint(t[6])&&this.uint(t[7])&&this.uint(t[8])&&this.uint(t[9]);case 28:case 29:case 42:case 117:case 118:return this.string(t[1]);case 37:return this.uint(t[1])&&this.string(t[2])&&this.uint(t[3]);case 39:return this.string(t[1])&&this.string(t[2])&&this.string(t[3])&&this.string(t[4])&&this.uint(t[5])&&this.uint(t[6])&&this.uint(t[7]);case 40:return this.string(t[1])&&this.uint(t[2])&&this.string(t[3])&&this.string(t[4]);case 48:return this.string(t[1])&&this.string(t[2])&&this.string(t[3])&&this.string(t[4])&&this.int(t[5]);case 49:return this.int(t[1])&&this.int(t[2])&&this.uint(t[3])&&this.uint(t[4]);case 53:return this.uint(t[1])&&this.uint(t[2])&&this.uint(t[3])&&this.uint(t[4])&&this.uint(t[5])&&this.uint(t[6])&&this.string(t[7])&&this.string(t[8]);case 55:return this.boolean(t[1]);case 57:case 60:return this.uint(t[1])&&this.string(t[2])&&this.string(t[3])&&this.string(t[4]);case 58:case 120:return this.int(t[1]);case 59:return this.uint(t[1])&&this.uint(t[2])&&this.uint(t[3])&&this.uint(t[4])&&this.string(t[5])&&this.string(t[6])&&this.string(t[7]);case 67:case 73:return this.uint(t[1])&&this.string(t[2])&&this.uint(t[3])&&this.string(t[4]);case 68:return this.uint(t[1])&&this.uint(t[2])&&this.string(t[3])&&this.string(t[4])&&this.uint(t[5])&&this.uint(t[6]);case 69:return this.uint(t[1])&&this.uint(t[2])&&this.string(t[3])&&this.string(t[4]);case 78:return this.string(t[1])&&this.string(t[2])&&this.string(t[3])&&this.string(t[4]);case 81:return this.uint(t[1])&&this.uint(t[2])&&this.uint(t[3])&&this.int(t[4])&&this.string(t[5]);case 83:return this.string(t[1])&&this.string(t[2])&&this.string(t[3])&&this.string(t[4])&&this.string(t[5])&&this.uint(t[6])&&this.uint(t[7])&&this.uint(t[8])&&this.uint(t[9]);case 84:return this.string(t[1])&&this.string(t[2])&&this.string(t[3])&&this.uint(t[4])&&this.string(t[5])&&this.string(t[6]);case 112:return this.uint(t[1])&&this.string(t[2])&&this.boolean(t[3])&&this.string(t[4])&&this.int(t[5])&&this.int(t[6]);case 113:return this.uint(t[1])&&this.uint(t[2])&&this.string(t[3]);case 116:return this.uint(t[1])&&this.uint(t[2])&&this.uint(t[3])&&this.uint(t[4])&&this.uint(t[5])&&this.uint(t[6])&&this.string(t[7])&&this.string(t[8])&&this.uint(t[9])&&this.boolean(t[10]);case 119:return this.string(t[1])&&this.uint(t[2]);case 121:return this.string(t[1])&&this.string(t[2])&&this.uint(t[3])&&this.uint(t[4]);case 122:return this.string(t[1])&&this.string(t[2])&&this.uint(t[3])&&this.string(t[4]);case 123:return this.string(t[1])&&this.string(t[2])&&this.string(t[3])&&this.string(t[4])&&this.uint(t[5])}}}class n{constructor(t,s,i,n,h,r){this.pageNo=t,this.timestamp=s,this.url=i,this.onBatch=n,this.tabId=h,this.onOfflineEnd=r,this.nextIndex=0,this.beaconSize=2e5,this.encoder=new e(this.beaconSize),this.sizeBuffer=new Uint8Array(3),this.isEmpty=!0,this.beaconSizeLimit=1e6,this.prepare()}writeType(t){return this.encoder.uint(t[0])}writeFields(t){return this.encoder.encode(t)}writeSizeAt(t,s){for(let s=0;s<3;s++)this.sizeBuffer[s]=t>>8*s;this.encoder.set(this.sizeBuffer,s)}prepare(){if(!this.encoder.isEmpty)return;const t=[81,1,this.pageNo,this.nextIndex,this.timestamp,this.url],s=[118,this.tabId];this.writeType(t),this.writeFields(t),this.writeWithSize(s),this.isEmpty=!0}writeWithSize(t){const s=this.encoder;if(!this.writeType(t)||!s.skip(3))return!1;const i=s.getCurrentOffset(),e=this.writeFields(t);if(e){const e=s.getCurrentOffset()-i;if(e>16777215)return console.warn("OpenReplay: max message size overflow."),!1;this.writeSizeAt(e,i-3),s.checkpoint(),this.isEmpty=this.isEmpty&&0===t[0],this.nextIndex++}return e}setBeaconSizeLimit(t){this.beaconSizeLimit=t}writeMessage(t){if("q_end"===t[0])return this.finaliseBatch(),this.onOfflineEnd();0===t[0]&&(this.timestamp=t[1]),122===t[0]&&(this.url=t[1]),this.writeWithSize(t)||(this.finaliseBatch(),this.writeWithSize(t)||(this.encoder=new e(this.beaconSizeLimit),this.prepare(),this.writeWithSize(t)?this.finaliseBatch():console.warn("OpenReplay: beacon size overflow. Skipping large message.",t,this),this.encoder=new e(this.beaconSize),this.prepare()))}finaliseBatch(){if(this.isEmpty)return;const t=this.encoder.flush();this.onBatch(t),this.prepare()}clean(){this.encoder.reset()}}var h;!function(t){t[t.NotActive=0]="NotActive",t[t.Starting=1]="Starting",t[t.Stopping=2]="Stopping",t[t.Active=3]="Active",t[t.Stopped=4]="Stopped"}(h||(h={}));let r=null,u=null,a=h.NotActive;function o(){u&&u.finaliseBatch()}function c(){return new Promise((t=>{a=h.Stopping,null!==p&&(clearInterval(p),p=null),u&&(u.clean(),u=null),r&&(r.clean(),setTimeout((()=>{r=null}),20)),setTimeout((()=>{a=h.NotActive,t(null)}),100)}))}function g(){[h.Stopped,h.Stopping].includes(a)||(postMessage("a_stop"),c().then((()=>{postMessage("a_start")})))}let l,p=null;self.onmessage=({data:s})=>{if(null!=s){if("stop"===s)return o(),void c().then((()=>{a=h.Stopped}));if("forceFlushBatch"!==s){if(!Array.isArray(s)){if("compressed"===s.type){if(!r)return console.debug("OR WebWorker: sender not initialised. Compressed batch."),void g();s.batch&&r.sendCompressed(s.batch)}if("uncompressed"===s.type){if(!r)return console.debug("OR WebWorker: sender not initialised. Uncompressed batch."),void g();s.batch&&r.sendUncompressed(s.batch)}return"start"===s.type?(a=h.Starting,r=new t(s.ingestPoint,(()=>{g()}),(t=>{!function(t){postMessage({type:"failure",reason:t}),c()}(t)}),s.connAttemptCount,s.connAttemptGap,(t=>{postMessage({type:"compress",batch:t},[t.buffer])}),s.pageNo),u=new n(s.pageNo,s.timestamp,s.url,(t=>{r&&r.push(t)}),s.tabId,(()=>postMessage({type:"queue_empty"}))),null===p&&(p=setInterval(o,1e4)),a=h.Active):"auth"===s.type?r?u?(r.authorise(s.token),void(s.beaconSizeLimit&&u.setBeaconSizeLimit(s.beaconSizeLimit))):(console.debug("OR WebWorker: writer not initialised. Received auth."),void g()):(console.debug("OR WebWorker: sender not initialised. Received auth."),void g()):void 0}if(u){const t=u;s.forEach((s=>{55===s[0]&&(s[1]?l=setTimeout((()=>g()),18e5):clearTimeout(l)),t.writeMessage(s)}))}else postMessage("not_init"),g()}else o()}else o()}}();\n', qn = "canceled", wo = "or_uxt_active", di = "or_buffer_1", vt = (t) => ({ reason: t, success: !1 }), bo = (t) => ({ ...t, success: !0 });
5458
+ const Kh = '!function(){"use strict";class t{constructor(t,s,i,e=10,n=250,h,r){this.onUnauthorised=s,this.onFailure=i,this.MAX_ATTEMPTS_COUNT=e,this.ATTEMPT_TIMEOUT=n,this.onCompress=h,this.pageNo=r,this.attemptsCount=0,this.busy=!1,this.queue=[],this.token=null,this.lastBatchNum=0,this.ingestURL=t+"/v1/web/i",this.isCompressing=void 0!==h}getQueueStatus(){return 0===this.queue.length&&!this.busy}authorise(t){this.token=t,this.busy||this.sendNext()}push(t){if(this.busy||!this.token)this.queue.push(t);else if(this.busy=!0,this.isCompressing&&this.onCompress)this.onCompress(t);else{const s=++this.lastBatchNum;this.sendBatch(t,!1,s)}}sendNext(){const t=this.queue.shift();if(t)if(this.busy=!0,this.isCompressing&&this.onCompress)this.onCompress(t);else{const s=++this.lastBatchNum;this.sendBatch(t,!1,s)}else this.busy=!1}retry(t,s,i){this.attemptsCount>=this.MAX_ATTEMPTS_COUNT?this.onFailure(`Failed to send batch after ${this.attemptsCount} attempts.`):(this.attemptsCount++,setTimeout((()=>this.sendBatch(t,s,i)),this.ATTEMPT_TIMEOUT*this.attemptsCount))}sendBatch(t,s,i){var e;const n=null==i?void 0:i.toString().replace(/^([^_]+)_([^_]+).*/,"$1_$2_$3");this.busy=!0;const h={Authorization:`Bearer ${this.token}`};s&&(h["Content-Encoding"]="gzip"),null!==this.token?fetch(`${this.ingestURL}?batch=${null!==(e=this.pageNo)&&void 0!==e?e:"noPageNum"}_${null!=n?n:"noBatchNum"}`,{body:t,method:"POST",headers:h,keepalive:t.length<65536}).then((e=>{if(401===e.status)return this.busy=!1,void this.onUnauthorised();e.status>=400?this.retry(t,s,`${null!=i?i:"noBatchNum"}_network:${e.status}`):(this.attemptsCount=0,this.sendNext())})).catch((e=>{console.warn("OpenReplay:",e),this.retry(t,s,`${null!=i?i:"noBatchNum"}_reject:${e.message}`)})):setTimeout((()=>{this.sendBatch(t,s,`${null!=i?i:"noBatchNum"}_newToken`)}),500)}sendCompressed(t){const s=++this.lastBatchNum;this.sendBatch(t,!0,s)}sendUncompressed(t){const s=++this.lastBatchNum;this.sendBatch(t,!1,s)}clean(){this.sendNext(),setTimeout((()=>{this.token=null,this.queue.length=0}),10)}}const s="function"==typeof TextEncoder?new TextEncoder:{encode(t){const s=t.length,i=new Uint8Array(3*s);let e=-1;for(let n=0,h=0,r=0;r!==s;){if(n=t.charCodeAt(r),r+=1,n>=55296&&n<=56319){if(r===s){i[e+=1]=239,i[e+=1]=191,i[e+=1]=189;break}if(h=t.charCodeAt(r),!(h>=56320&&h<=57343)){i[e+=1]=239,i[e+=1]=191,i[e+=1]=189;continue}if(n=1024*(n-55296)+h-56320+65536,r+=1,n>65535){i[e+=1]=240|n>>>18,i[e+=1]=128|n>>>12&63,i[e+=1]=128|n>>>6&63,i[e+=1]=128|63&n;continue}}n<=127?i[e+=1]=0|n:n<=2047?(i[e+=1]=192|n>>>6,i[e+=1]=128|63&n):(i[e+=1]=224|n>>>12,i[e+=1]=128|n>>>6&63,i[e+=1]=128|63&n)}return i.subarray(0,e+1)}};class i{constructor(t){this.size=t,this.offset=0,this.checkpointOffset=0,this.data=new Uint8Array(t)}getCurrentOffset(){return this.offset}checkpoint(){this.checkpointOffset=this.offset}get isEmpty(){return 0===this.offset}skip(t){return this.offset+=t,this.offset<=this.size}set(t,s){this.data.set(t,s)}boolean(t){return this.data[this.offset++]=+t,this.offset<=this.size}uint(t){for((t<0||t>Number.MAX_SAFE_INTEGER)&&(t=0);t>=128;)this.data[this.offset++]=t%256|128,t=Math.floor(t/128);return this.data[this.offset++]=t,this.offset<=this.size}int(t){return t=Math.round(t),this.uint(t>=0?2*t:-2*t-1)}string(t){const i=s.encode(t),e=i.byteLength;return!(!this.uint(e)||this.offset+e>this.size)&&(this.data.set(i,this.offset),this.offset+=e,!0)}reset(){this.offset=0,this.checkpointOffset=0}flush(){const t=this.data.slice(0,this.checkpointOffset);return this.reset(),t}}class e extends i{encode(t){switch(t[0]){case 0:case 11:case 114:case 115:return this.uint(t[1]);case 4:case 44:case 47:return this.string(t[1])&&this.string(t[2])&&this.uint(t[3]);case 5:case 20:case 38:case 70:case 75:case 76:case 77:case 82:return this.uint(t[1])&&this.uint(t[2]);case 6:return this.int(t[1])&&this.int(t[2]);case 7:return!0;case 8:return this.uint(t[1])&&this.uint(t[2])&&this.uint(t[3])&&this.string(t[4])&&this.boolean(t[5]);case 9:case 10:case 24:case 51:return this.uint(t[1])&&this.uint(t[2])&&this.uint(t[3]);case 12:case 61:case 71:return this.uint(t[1])&&this.string(t[2])&&this.string(t[3]);case 13:case 14:case 17:case 50:case 54:return this.uint(t[1])&&this.string(t[2]);case 16:return this.uint(t[1])&&this.int(t[2])&&this.int(t[3]);case 18:return this.uint(t[1])&&this.string(t[2])&&this.int(t[3]);case 19:return this.uint(t[1])&&this.boolean(t[2]);case 21:return this.string(t[1])&&this.string(t[2])&&this.string(t[3])&&this.string(t[4])&&this.string(t[5])&&this.uint(t[6])&&this.uint(t[7])&&this.uint(t[8]);case 22:case 27:case 30:case 41:case 45:case 46:case 63:case 64:case 79:return this.string(t[1])&&this.string(t[2]);case 23:return this.uint(t[1])&&this.uint(t[2])&&this.uint(t[3])&&this.uint(t[4])&&this.uint(t[5])&&this.uint(t[6])&&this.uint(t[7])&&this.uint(t[8])&&this.uint(t[9]);case 28:case 29:case 42:case 117:case 118:return this.string(t[1]);case 37:return this.uint(t[1])&&this.string(t[2])&&this.uint(t[3]);case 39:return this.string(t[1])&&this.string(t[2])&&this.string(t[3])&&this.string(t[4])&&this.uint(t[5])&&this.uint(t[6])&&this.uint(t[7]);case 40:return this.string(t[1])&&this.uint(t[2])&&this.string(t[3])&&this.string(t[4]);case 48:return this.string(t[1])&&this.string(t[2])&&this.string(t[3])&&this.string(t[4])&&this.int(t[5]);case 49:return this.int(t[1])&&this.int(t[2])&&this.uint(t[3])&&this.uint(t[4]);case 53:return this.uint(t[1])&&this.uint(t[2])&&this.uint(t[3])&&this.uint(t[4])&&this.uint(t[5])&&this.uint(t[6])&&this.string(t[7])&&this.string(t[8]);case 55:return this.boolean(t[1]);case 57:case 60:return this.uint(t[1])&&this.string(t[2])&&this.string(t[3])&&this.string(t[4]);case 58:case 120:return this.int(t[1]);case 59:return this.uint(t[1])&&this.uint(t[2])&&this.uint(t[3])&&this.uint(t[4])&&this.string(t[5])&&this.string(t[6])&&this.string(t[7]);case 67:case 73:return this.uint(t[1])&&this.string(t[2])&&this.uint(t[3])&&this.string(t[4]);case 68:return this.uint(t[1])&&this.uint(t[2])&&this.string(t[3])&&this.string(t[4])&&this.uint(t[5])&&this.uint(t[6]);case 69:return this.uint(t[1])&&this.uint(t[2])&&this.string(t[3])&&this.string(t[4]);case 78:return this.string(t[1])&&this.string(t[2])&&this.string(t[3])&&this.string(t[4]);case 81:return this.uint(t[1])&&this.uint(t[2])&&this.uint(t[3])&&this.int(t[4])&&this.string(t[5]);case 83:return this.string(t[1])&&this.string(t[2])&&this.string(t[3])&&this.string(t[4])&&this.string(t[5])&&this.uint(t[6])&&this.uint(t[7])&&this.uint(t[8])&&this.uint(t[9]);case 84:return this.string(t[1])&&this.string(t[2])&&this.string(t[3])&&this.uint(t[4])&&this.string(t[5])&&this.string(t[6]);case 112:return this.uint(t[1])&&this.string(t[2])&&this.boolean(t[3])&&this.string(t[4])&&this.int(t[5])&&this.int(t[6]);case 113:return this.uint(t[1])&&this.uint(t[2])&&this.string(t[3]);case 116:return this.uint(t[1])&&this.uint(t[2])&&this.uint(t[3])&&this.uint(t[4])&&this.uint(t[5])&&this.uint(t[6])&&this.string(t[7])&&this.string(t[8])&&this.uint(t[9])&&this.boolean(t[10]);case 119:return this.string(t[1])&&this.uint(t[2]);case 121:return this.string(t[1])&&this.string(t[2])&&this.uint(t[3])&&this.uint(t[4]);case 122:return this.string(t[1])&&this.string(t[2])&&this.uint(t[3])&&this.string(t[4]);case 123:return this.string(t[1])&&this.string(t[2])&&this.string(t[3])&&this.string(t[4])&&this.uint(t[5])}}}class n{constructor(t,s,i,n,h,r){this.pageNo=t,this.timestamp=s,this.url=i,this.onBatch=n,this.tabId=h,this.onOfflineEnd=r,this.nextIndex=0,this.beaconSize=2e5,this.encoder=new e(this.beaconSize),this.sizeBuffer=new Uint8Array(3),this.isEmpty=!0,this.beaconSizeLimit=1e6,this.prepare()}writeType(t){return this.encoder.uint(t[0])}writeFields(t){return this.encoder.encode(t)}writeSizeAt(t,s){for(let s=0;s<3;s++)this.sizeBuffer[s]=t>>8*s;this.encoder.set(this.sizeBuffer,s)}prepare(){if(!this.encoder.isEmpty)return;const t=[81,1,this.pageNo,this.nextIndex,this.timestamp,this.url],s=[118,this.tabId];this.writeType(t),this.writeFields(t),this.writeWithSize(s),this.isEmpty=!0}writeWithSize(t){const s=this.encoder;if(!this.writeType(t)||!s.skip(3))return!1;const i=s.getCurrentOffset(),e=this.writeFields(t);if(e){const e=s.getCurrentOffset()-i;if(e>16777215)return console.warn("OpenReplay: max message size overflow."),!1;this.writeSizeAt(e,i-3),s.checkpoint(),this.isEmpty=this.isEmpty&&0===t[0],this.nextIndex++}return e}setBeaconSizeLimit(t){this.beaconSizeLimit=t}writeMessage(t){if("q_end"===t[0])return this.finaliseBatch(),this.onOfflineEnd();0===t[0]&&(this.timestamp=t[1]),122===t[0]&&(this.url=t[1]),this.writeWithSize(t)||(this.finaliseBatch(),this.writeWithSize(t)||(this.encoder=new e(this.beaconSizeLimit),this.prepare(),this.writeWithSize(t)?this.finaliseBatch():console.warn("OpenReplay: beacon size overflow. Skipping large message.",t,this),this.encoder=new e(this.beaconSize),this.prepare()))}finaliseBatch(){if(this.isEmpty)return;const t=this.encoder.flush();this.onBatch(t),this.prepare()}clean(){this.encoder.reset()}}var h;!function(t){t[t.NotActive=0]="NotActive",t[t.Starting=1]="Starting",t[t.Stopping=2]="Stopping",t[t.Active=3]="Active",t[t.Stopped=4]="Stopped"}(h||(h={}));let r=null,u=null,a=h.NotActive;function o(){u&&u.finaliseBatch()}function c(){return new Promise((t=>{a=h.Stopping,null!==p&&(clearInterval(p),p=null),u&&(u.clean(),u=null),r&&(r.clean(),setTimeout((()=>{r=null}),20)),setTimeout((()=>{a=h.NotActive,t(null)}),100)}))}function g(){[h.Stopped,h.Stopping].includes(a)||(postMessage("a_stop"),c().then((()=>{postMessage("a_start")})))}let l,p=null;self.onmessage=({data:s})=>{if(null!=s){if("stop"===s)return o(),void c().then((()=>{a=h.Stopped}));if("forceFlushBatch"!==s){if(!Array.isArray(s)){if("compressed"===s.type){if(!r)return console.debug("OR WebWorker: sender not initialised. Compressed batch."),void g();s.batch&&r.sendCompressed(s.batch)}if("uncompressed"===s.type){if(!r)return console.debug("OR WebWorker: sender not initialised. Uncompressed batch."),void g();s.batch&&r.sendUncompressed(s.batch)}return"start"===s.type?(a=h.Starting,r=new t(s.ingestPoint,(()=>{g()}),(t=>{!function(t){postMessage({type:"failure",reason:t}),c()}(t)}),s.connAttemptCount,s.connAttemptGap,(t=>{postMessage({type:"compress",batch:t},[t.buffer])}),s.pageNo),u=new n(s.pageNo,s.timestamp,s.url,(t=>{r&&r.push(t)}),s.tabId,(()=>postMessage({type:"queue_empty"}))),null===p&&(p=setInterval(o,1e4)),a=h.Active):"auth"===s.type?r?u?(r.authorise(s.token),void(s.beaconSizeLimit&&u.setBeaconSizeLimit(s.beaconSizeLimit))):(console.debug("OR WebWorker: writer not initialised. Received auth."),void g()):(console.debug("OR WebWorker: sender not initialised. Received auth."),void g()):void 0}if(u){const t=u;s.forEach((s=>{55===s[0]&&(s[1]?l=setTimeout((()=>g()),18e5):clearTimeout(l)),t.writeMessage(s)}))}else postMessage("not_init"),g()}else o()}else o()}}();\n', qn = "canceled", bo = "or_uxt_active", di = "or_buffer_1", vt = (t) => ({ reason: t, success: !1 }), wo = (t) => ({ ...t, success: !0 });
5459
5459
  var de;
5460
5460
  (function(t) {
5461
5461
  t[t.NotActive = 0] = "NotActive", t[t.Starting = 1] = "Starting", t[t.Active = 2] = "Active", t[t.ColdStart = 3] = "ColdStart";
@@ -5537,8 +5537,8 @@ let Yh = class {
5537
5537
  let S = y;
5538
5538
  return this.pageFrames.forEach((_) => {
5539
5539
  if (_.contentWindow === l.source) {
5540
- const [x, g, b] = y, { left: E, top: I } = _.getBoundingClientRect();
5541
- S = [x, g + E, b + I];
5540
+ const [x, g, w] = y, { left: E, top: I } = _.getBoundingClientRect();
5541
+ S = [x, g + E, w + I];
5542
5542
  }
5543
5543
  }), S;
5544
5544
  }
@@ -5546,11 +5546,11 @@ let Yh = class {
5546
5546
  let S = y;
5547
5547
  return this.pageFrames.forEach((_) => {
5548
5548
  if (_.contentWindow === l.source) {
5549
- const [x, g, b, E, I, k, T] = y, { left: A, top: V, width: j, height: Q } = _.getBoundingClientRect(), W = document.documentElement.scrollWidth, L = document.documentElement.scrollHeight, X = k / 100 * j + A, Z = T / 100 * Q + V, R = X / W, Y = Z / L;
5549
+ const [x, g, w, E, I, k, T] = y, { left: A, top: V, width: j, height: Q } = _.getBoundingClientRect(), W = document.documentElement.scrollWidth, L = document.documentElement.scrollHeight, X = k / 100 * j + A, Z = T / 100 * Q + V, R = X / W, Y = Z / L;
5550
5550
  S = [
5551
5551
  x,
5552
5552
  g,
5553
- b,
5553
+ w,
5554
5554
  E,
5555
5555
  I,
5556
5556
  Math.round(R * 1e3) / 10,
@@ -5653,7 +5653,7 @@ let Yh = class {
5653
5653
  resourceBaseHref: null,
5654
5654
  __is_snippet: !1,
5655
5655
  __debug_report_edp: null,
5656
- __debug__: wn.Silent,
5656
+ __debug__: bn.Silent,
5657
5657
  __save_canvas_locally: !1,
5658
5658
  localStorage: null,
5659
5659
  sessionStorage: null,
@@ -5687,7 +5687,7 @@ let Yh = class {
5687
5687
  }), this.observer = new jh({ app: this, options: s }), this.ticker = new Gh(this), this.ticker.attach(() => this.commit()), this.debug = new Oh(this.options.__debug__), this.session = new qh({ app: this, options: this.options }), this.attributeSender = new gu({
5688
5688
  app: this,
5689
5689
  isDictDisabled: !!(this.options.disableStringDict || (u = this.options.crossdomain) != null && u.enabled)
5690
- }), this.featureFlags = new wu(this), this.tagWatcher = new rh({
5690
+ }), this.featureFlags = new bu(this), this.tagWatcher = new rh({
5691
5691
  sessionStorage: this.sessionStorage,
5692
5692
  errLog: this.debug.error,
5693
5693
  onTag: (l) => this.send(nh(l))
@@ -6171,7 +6171,7 @@ let Yh = class {
6171
6171
  // derived from token
6172
6172
  sessionID: g,
6173
6173
  // derived from token
6174
- startTimestamp: b,
6174
+ startTimestamp: w,
6175
6175
  // real startTS (server time), derived from sessionID
6176
6176
  userBrowser: E,
6177
6177
  userCity: I,
@@ -6185,7 +6185,7 @@ let Yh = class {
6185
6185
  assistOnly: L,
6186
6186
  features: X
6187
6187
  } = await p.json();
6188
- if (this.features = X || this.features, typeof f != "string" || typeof m != "string" || typeof b != "number" && typeof b < "u" || typeof g != "string" || typeof x != "number" || typeof S != "number" && typeof S < "u") {
6188
+ if (this.features = X || this.features, typeof f != "string" || typeof m != "string" || typeof w != "number" && typeof w < "u" || typeof g != "string" || typeof x != "number" || typeof S != "number" && typeof S < "u") {
6189
6189
  const R = `Incorrect server response: ${JSON.stringify(p)}`;
6190
6190
  return this.signalError(R, []), vt(R);
6191
6191
  }
@@ -6198,7 +6198,7 @@ let Yh = class {
6198
6198
  userState: V
6199
6199
  }), this.session.assign({
6200
6200
  sessionID: g,
6201
- timestamp: b || r,
6201
+ timestamp: w || r,
6202
6202
  projectID: y
6203
6203
  }), L ? (this.socketMode = !0, (u = this.worker) == null || u.postMessage("stop")) : (l = this.worker) == null || l.postMessage({
6204
6204
  type: "auth",
@@ -6206,7 +6206,7 @@ let Yh = class {
6206
6206
  beaconSizeLimit: S
6207
6207
  }), !a && f === o && (this.debug.log("continuing session on new tab", this.session.getTabId()), this.send(Es(this.session.getTabId()))), Object.entries(this.session.getInfo().metadata).forEach(([R, Y]) => this.send($r(R, Y))), this.localStorage.setItem(this.options.local_uuid_key, m), this.compressionThreshold = _;
6208
6208
  const Z = { sessionToken: f, userUUID: m, sessionID: g };
6209
- if (this.startCallbacks.forEach((R) => R(Z)), e.startCallback && e.startCallback(bo(Z)), this.features["feature-flags"] && this.featureFlags.reloadFlags(), await this.tagWatcher.fetchTags(this.options.ingestPoint, f), this.activityState = de.Active, (h = this.options.crossdomain) != null && h.enabled && !this.insideIframe && this.bootChildrenFrames(), j && !this.options.canvas.disableCanvas && (this.canvasRecorder = this.canvasRecorder ?? new Nh(this, {
6209
+ if (this.startCallbacks.forEach((R) => R(Z)), e.startCallback && e.startCallback(wo(Z)), this.features["feature-flags"] && this.featureFlags.reloadFlags(), await this.tagWatcher.fetchTags(this.options.ingestPoint, f), this.activityState = de.Active, (h = this.options.crossdomain) != null && h.enabled && !this.insideIframe && this.bootChildrenFrames(), j && !this.options.canvas.disableCanvas && (this.canvasRecorder = this.canvasRecorder ?? new Nh(this, {
6210
6210
  fps: W,
6211
6211
  quality: Q,
6212
6212
  isDebug: this.options.canvas.__save_canvas_locally,
@@ -6220,9 +6220,9 @@ let Yh = class {
6220
6220
  } else
6221
6221
  this.insideIframe && this.rootId ? this.observer.crossdomainObserve(this.rootId, this.frameOderNumber) : this.observer.observe(), this.ticker.start();
6222
6222
  if ((d = this.canvasRecorder) == null || d.startTracking(), this.features["usability-test"] && !this.insideIframe) {
6223
- this.uxtManager = this.uxtManager ? this.uxtManager : new Ih(this, wo);
6223
+ this.uxtManager = this.uxtManager ? this.uxtManager : new Ih(this, bo);
6224
6224
  let R;
6225
- const Y = this.localStorage.getItem(wo);
6225
+ const Y = this.localStorage.getItem(bo);
6226
6226
  if (Y && (R = parseInt(Y, 10)), location != null && location.search) {
6227
6227
  const N = new URLSearchParams(location.search);
6228
6228
  if (N.has("oruxt")) {
@@ -6234,7 +6234,7 @@ let Yh = class {
6234
6234
  N && this.onUxtCb.forEach((O) => O(N));
6235
6235
  }));
6236
6236
  }
6237
- return bo(Z);
6237
+ return wo(Z);
6238
6238
  } catch (p) {
6239
6239
  if (this.stop(), this.session.reset(), !p)
6240
6240
  return console.error("Unknown error during start"), this.signalError("Unknown error", []), vt("Unknown error");
@@ -6600,7 +6600,7 @@ function ko(t, e = document.location) {
6600
6600
  return t = t.trim(), t.startsWith("//") || t.startsWith("http://") || t.startsWith("https://") || t.startsWith("data:") ? t : t.startsWith("/") ? e.origin + t : e.origin + e.pathname + t;
6601
6601
  }
6602
6602
  function gd(t) {
6603
- return bu && (t.startsWith("data:image/svg+xml") || t.match(/.svg$|/i));
6603
+ return wu && (t.startsWith("data:image/svg+xml") || t.match(/.svg$|/i));
6604
6604
  }
6605
6605
  const md = "https://static.openreplay.com/tracker/placeholder.jpeg";
6606
6606
  function vd(t) {
@@ -6638,7 +6638,7 @@ function vd(t) {
6638
6638
  ge(a, "img") && (t.nodes.attachNodeListener(a, "error", () => i(a)), t.nodes.attachNodeListener(a, "load", () => r(a)), r(a), o.observe(a, { attributes: !0, attributeFilter: ["src", "srcset"] }));
6639
6639
  });
6640
6640
  }
6641
- const wd = [
6641
+ const bd = [
6642
6642
  "text",
6643
6643
  "password",
6644
6644
  "email",
@@ -6649,8 +6649,8 @@ const wd = [
6649
6649
  "tel",
6650
6650
  "time"
6651
6651
  ];
6652
- function bd(t) {
6653
- return ge(t, "textarea") ? !0 : ge(t, "input") ? wd.includes(t.type) : !1;
6652
+ function wd(t) {
6653
+ return ge(t, "textarea") ? !0 : ge(t, "input") ? bd.includes(t.type) : !1;
6654
6654
  }
6655
6655
  function yd(t) {
6656
6656
  if (!ge(t, "input"))
@@ -6746,7 +6746,7 @@ function _d(t, e) {
6746
6746
  t.nodes.attachNodeCallback(t.safe((l) => {
6747
6747
  const h = t.nodes.getID(l);
6748
6748
  if (h !== void 0) {
6749
- if (ge(l, "select") && (i(h, l), t.nodes.attachNodeListener(l, "change", () => i(h, l))), bd(l)) {
6749
+ if (ge(l, "select") && (i(h, l), t.nodes.attachNodeListener(l, "change", () => i(h, l))), wd(l)) {
6750
6750
  a(h, l);
6751
6751
  let d = 0, p = 0, f = 0;
6752
6752
  const m = () => {
@@ -6801,16 +6801,16 @@ function vs(t, e, n) {
6801
6801
  const a = (/* @__PURE__ */ new Date()).getTime() - rl.getTime();
6802
6802
  if (Ke.timeoutMs !== void 0 && a > Ke.timeoutMs)
6803
6803
  throw new Error(`Timeout: Can't find a unique selector after ${a}ms`);
6804
- let c = bs(xd(r)) || bs(...Ed(r)) || bs(...Id(r)) || bs(Cd(r)) || [Eo()];
6804
+ let c = ws(xd(r)) || ws(...Ed(r)) || ws(...Id(r)) || ws(Cd(r)) || [Eo()];
6805
6805
  const u = Nd(r);
6806
6806
  if (e == "all")
6807
- u && (c = c.concat(c.filter(pi).map((l) => ws(l, u))));
6807
+ u && (c = c.concat(c.filter(pi).map((l) => bs(l, u))));
6808
6808
  else if (e == "two")
6809
- c = c.slice(0, 1), u && (c = c.concat(c.filter(pi).map((l) => ws(l, u))));
6809
+ c = c.slice(0, 1), u && (c = c.concat(c.filter(pi).map((l) => bs(l, u))));
6810
6810
  else if (e == "one") {
6811
6811
  const [l] = c = c.slice(0, 1);
6812
- u && pi(l) && (c = [ws(l, u)]);
6813
- } else e == "none" && (c = [Eo()], u && (c = [ws(c[0], u)]));
6812
+ u && pi(l) && (c = [bs(l, u)]);
6813
+ } else e == "none" && (c = [Eo()], u && (c = [bs(c[0], u)]));
6814
6814
  for (let l of c)
6815
6815
  l.level = o;
6816
6816
  if (i.push(c), i.length >= Ke.seedMinLength && (s = To(i, n), s))
@@ -6894,7 +6894,7 @@ function Nd(t) {
6894
6894
  n = n.nextSibling;
6895
6895
  return s;
6896
6896
  }
6897
- function ws(t, e) {
6897
+ function bs(t, e) {
6898
6898
  return {
6899
6899
  name: t.name + `:nth-child(${e})`,
6900
6900
  penalty: t.penalty + 1
@@ -6903,7 +6903,7 @@ function ws(t, e) {
6903
6903
  function pi(t) {
6904
6904
  return t.name !== "html" && !t.name.startsWith("#");
6905
6905
  }
6906
- function bs(...t) {
6906
+ function ws(...t) {
6907
6907
  const e = t.filter(Rd);
6908
6908
  return e.length > 0 ? e : null;
6909
6909
  }
@@ -6981,9 +6981,9 @@ function Md(t, e) {
6981
6981
  function Ad(t, e) {
6982
6982
  const { disableClickmaps: n = !1 } = e || {};
6983
6983
  function s(g) {
6984
- const b = vr(g);
6985
- if (b !== null)
6986
- return b;
6984
+ const w = vr(g);
6985
+ if (w !== null)
6986
+ return w;
6987
6987
  if (ge(g, "input"))
6988
6988
  return il(g);
6989
6989
  if (Xi(g)) {
@@ -7000,8 +7000,8 @@ function Ad(t, e) {
7000
7000
  l = g;
7001
7001
  return;
7002
7002
  }
7003
- const b = (g - l) / y;
7004
- d > 4 && b > m && t.send(eh($e())), p = 0, d = 0, l = g;
7003
+ const w = (g - l) / y;
7004
+ d > 4 && w > m && t.send(eh($e())), p = 0, d = 0, l = g;
7005
7005
  }
7006
7006
  t.attachStartCallback(() => {
7007
7007
  f = setInterval(() => S(), y);
@@ -7010,11 +7010,11 @@ function Ad(t, e) {
7010
7010
  });
7011
7011
  const _ = () => {
7012
7012
  o && (t.send(Bu(i, r)), o = !1);
7013
- }, x = (g, b = !1) => {
7013
+ }, x = (g, w = !1) => {
7014
7014
  function E(k, T, A) {
7015
7015
  return u[k] = u[k] || Od(T, g, A);
7016
7016
  }
7017
- const I = b ? t.attachEventListener.bind(t) : t.nodes.attachNodeListener.bind(t.nodes);
7017
+ const I = w ? t.attachEventListener.bind(t) : t.nodes.attachNodeListener.bind(t.nodes);
7018
7018
  I(g.documentElement, "mouseover", (k) => {
7019
7019
  const T = Io(k.target, g);
7020
7020
  T !== a && (a = T, c = performance.now());
@@ -7394,7 +7394,7 @@ function Vd(t, e, n, s, i) {
7394
7394
  t.debug.log("Openreplay: attaching axios spy to instance", e);
7395
7395
  function r(d) {
7396
7396
  t.debug.log("Openreplay: capturing axios response data", d);
7397
- const { headers: p, data: f, method: m, url: y, baseURL: S } = d.config, { data: _, headers: x, status: g, response: b } = d, { data: E, headers: I, status: k } = b || {}, T = n.ignoreHeaders, A = Array.isArray(T) ? (R) => T.includes(R) : () => T;
7397
+ const { headers: p, data: f, method: m, url: y, baseURL: S } = d.config, { data: _, headers: x, status: g, response: w } = d, { data: E, headers: I, status: k } = w || {}, T = n.ignoreHeaders, A = Array.isArray(T) ? (R) => T.includes(R) : () => T;
7398
7398
  function V(R, Y) {
7399
7399
  A(Y[0]) || (R[Y[0]] = Y[1]);
7400
7400
  }
@@ -7898,9 +7898,9 @@ function of(t, e = {}) {
7898
7898
  o(function(E, I) {
7899
7899
  g.headers === void 0 && (g.headers = {}), g.headers instanceof Headers ? g.headers.append(E, I) : Array.isArray(g.headers) ? g.headers.push([E, I]) : g.headers[E] = I;
7900
7900
  });
7901
- const b = performance.now();
7901
+ const w = performance.now();
7902
7902
  return h(x, g).then((E) => {
7903
- const I = performance.now() - b;
7903
+ const I = performance.now() - w;
7904
7904
  if (n.failuresOnly && E.status < 400)
7905
7905
  return E;
7906
7906
  const k = E.clone();
@@ -7928,20 +7928,20 @@ function of(t, e = {}) {
7928
7928
  body: T
7929
7929
  }
7930
7930
  });
7931
- Q && t.send(xs("fetch", j, String(Q.url), c(Q.request), c(Q.response), k.status, b + _n(), I, 0));
7931
+ Q && t.send(xs("fetch", j, String(Q.url), c(Q.request), c(Q.response), k.status, w + _n(), I, 0));
7932
7932
  }).catch((T) => t.debug.error("Could not process Fetch response:", T)), E;
7933
7933
  });
7934
7934
  };
7935
7935
  l.fetch = d;
7936
7936
  const p = l.XMLHttpRequest.prototype.open, f = l.XMLHttpRequest.prototype.setRequestHeader, m = l.XMLHttpRequest.prototype.send;
7937
7937
  function y(x, g) {
7938
- const b = this;
7939
- o((I, k) => b.setRequestHeader(I, k));
7938
+ const w = this;
7939
+ o((I, k) => w.setRequestHeader(I, k));
7940
7940
  let E = 0;
7941
- return b.addEventListener("loadstart", (I) => {
7941
+ return w.addEventListener("loadstart", (I) => {
7942
7942
  E = I.timeStamp;
7943
- }), b.addEventListener("load", t.safe((I) => {
7944
- const { headers: k, body: T } = mi(b), A = E > 0 ? I.timeStamp - E : 0, j = (b.getAllResponseHeaders() || "").trim().split(/[\r\n]+/), Q = {};
7943
+ }), w.addEventListener("load", t.safe((I) => {
7944
+ const { headers: k, body: T } = mi(w), A = E > 0 ? I.timeStamp - E : 0, j = (w.getAllResponseHeaders() || "").trim().split(/[\r\n]+/), Q = {};
7945
7945
  j.forEach(function(X) {
7946
7946
  const Z = X.split(": "), R = Z.shift();
7947
7947
  i(R) || (Q[R] = Z.join(": "));
@@ -7949,7 +7949,7 @@ function of(t, e = {}) {
7949
7949
  const W = Do(x), L = a({
7950
7950
  url: String(g),
7951
7951
  method: W,
7952
- status: b.status,
7952
+ status: w.status,
7953
7953
  request: {
7954
7954
  headers: k,
7955
7955
  // @ts-ignore
@@ -7957,10 +7957,10 @@ function of(t, e = {}) {
7957
7957
  },
7958
7958
  response: {
7959
7959
  headers: Q,
7960
- body: b.response
7960
+ body: w.response
7961
7961
  }
7962
7962
  });
7963
- L && t.send(xs("xhr", W, String(L.url), c(L.request), c(L.response), b.status, E + _n(), A, 0));
7963
+ L && t.send(xs("xhr", W, String(L.url), c(L.request), c(L.response), w.status, E + _n(), A, 0));
7964
7964
  })), p.apply(this, arguments);
7965
7965
  }
7966
7966
  function S(x) {
@@ -7969,8 +7969,8 @@ function of(t, e = {}) {
7969
7969
  }
7970
7970
  function _(x, g) {
7971
7971
  if (!i(x)) {
7972
- const b = mi(this);
7973
- b.headers[x] = g;
7972
+ const w = mi(this);
7973
+ w.headers[x] = g;
7974
7974
  }
7975
7975
  return f.apply(this, arguments);
7976
7976
  }
@@ -8382,7 +8382,7 @@ const vf = String(((Bo = window == null ? void 0 : window.wineaterData) == null
8382
8382
  LANGUAGE_CHANGED: "language_changed",
8383
8383
  ERROR_OCCURRED: "error_occurred",
8384
8384
  MOBILE_VIEW_ACTIVATED: "mobile_view_activated"
8385
- }, wf = {
8385
+ }, bf = {
8386
8386
  lang: "fr",
8387
8387
  welcomeMessage: "Quel plat allez-vous déguster ? Décrivez-le-moi et je vous proposerai le vin qui l'accompagnera parfaitement.",
8388
8388
  noResultsFound: "Aucun résultat trouvé.",
@@ -8444,7 +8444,7 @@ const vf = String(((Bo = window == null ? void 0 : window.wineaterData) == null
8444
8444
  errorMessage: "Une erreur est survenue. Veuillez réessayer plus tard.",
8445
8445
  noResultsMessage: "Aucun résultat trouvé pour votre recherche. Veuillez essayer une autre requête.",
8446
8446
  ai_sommelier: "AI sommelier"
8447
- }, bf = {
8447
+ }, wf = {
8448
8448
  lang: "es",
8449
8449
  welcomeMessage: "¿Qué vas a comer? Cuéntame tu plato y te recomendaré el maridaje perfecto.",
8450
8450
  noResultsFound: "No se encontraron resultados.",
@@ -8940,8 +8940,8 @@ const vf = String(((Bo = window == null ? void 0 : window.wineaterData) == null
8940
8940
  noResultsMessage: "Nenhum resultado encontrado para sua pesquisa. Por favor, tente uma consulta diferente.",
8941
8941
  ai_sommelier: "AI sommelier"
8942
8942
  }, If = {
8943
- fr: wf,
8944
- es: bf,
8943
+ fr: bf,
8944
+ es: wf,
8945
8945
  en: yf,
8946
8946
  sr: Sf,
8947
8947
  de: _f,
@@ -9033,9 +9033,22 @@ const Nf = {
9033
9033
  21: {
9034
9034
  logoUrl: "https://www.intermarche.com/images/logoIntermarche.svg",
9035
9035
  brandColor: "#B81242",
9036
- wineaterColor: "#7B2BEB",
9036
+ wineaterColor: "#B81242",
9037
9037
  buttonUppercase: !0,
9038
- customCss: "",
9038
+ customCss: `
9039
+ #wr-Custom {
9040
+ .wr-Search-icon {
9041
+ background-image: none;
9042
+ -webkit-mask-image: url('https://czvgkhagwvmknscoerfy.supabase.co/storage/v1/object/public/static-media/search.svg?x=1');
9043
+ mask-image: url('https://czvgkhagwvmknscoerfy.supabase.co/storage/v1/object/public/static-media/search.svg?x=1');
9044
+ -webkit-mask-repeat: no-repeat;
9045
+ mask-repeat: no-repeat;
9046
+ -webkit-mask-size: contain;
9047
+ mask-size: contain;
9048
+ background-color: #B81242;
9049
+ }
9050
+ }
9051
+ `,
9039
9052
  translations: {}
9040
9053
  },
9041
9054
  26: {
@@ -9327,25 +9340,25 @@ function Vf(t, e) {
9327
9340
  J(() => ne(d, s)), P(l, h);
9328
9341
  }, c = (l) => {
9329
9342
  var h = Uf(), d = M(h), p = G(d), f = M(p);
9330
- Hc(f, () => w(i), (T, A) => {
9343
+ Hc(f, () => b(i), (T, A) => {
9331
9344
  A(T, { className: "wr-Header-icon", size: "28" });
9332
9345
  });
9333
9346
  var m = G(p, 2), y = M(m), S = G(m, 2);
9334
9347
  Bf(S, { className: "wr-Header-icon", size: "28" });
9335
- var _ = G(S, 2), x = M(_), g = G(_, 3), b = G(g);
9336
- Pf(b, { className: "wr-Header-icon", size: "28" });
9337
- var E = G(b, 2), I = M(E), k = G(E);
9348
+ var _ = G(S, 2), x = M(_), g = G(_, 3), w = G(g);
9349
+ Pf(w, { className: "wr-Header-icon", size: "28" });
9350
+ var E = G(w, 2), I = M(E), k = G(E);
9338
9351
  J(
9339
9352
  (T, A, V, j, Q, W) => {
9340
9353
  ne(d, `${T ?? ""} `), ne(y, A), ne(x, V), ne(g, ` ${j ?? ""} `), ne(I, Q), ne(k, ` ${W ?? ""}`);
9341
9354
  },
9342
9355
  [
9343
- () => Ee({ key: "headerLine1", lang: w(n) }),
9344
- () => Ee({ key: "headerMeal", lang: w(n) }),
9345
- () => Ee({ key: "headerMood", lang: w(n) }),
9346
- () => Ee({ key: "headerOr", lang: w(n) }),
9347
- () => Ee({ key: "headerOccasion", lang: w(n) }),
9348
- () => Ee({ key: "headerLine2", lang: w(n) })
9356
+ () => Ee({ key: "headerLine1", lang: b(n) }),
9357
+ () => Ee({ key: "headerMeal", lang: b(n) }),
9358
+ () => Ee({ key: "headerMood", lang: b(n) }),
9359
+ () => Ee({ key: "headerOr", lang: b(n) }),
9360
+ () => Ee({ key: "headerOccasion", lang: b(n) }),
9361
+ () => Ee({ key: "headerLine2", lang: b(n) })
9349
9362
  ]
9350
9363
  ), on("mouseenter", p, () => D(i, zf, !0)), on("mouseleave", p, () => D(i, Oo, !0)), P(l, h);
9351
9364
  };
@@ -9368,28 +9381,28 @@ function Jf(t, e) {
9368
9381
  let n = We(e, "countryCode", 3, null), s = /* @__PURE__ */ re(() => pe.getAppLanguage()), i = /* @__PURE__ */ re(() => pe.getSupportedLanguages()), r = /* @__PURE__ */ re(() => pe.getStoreId());
9369
9382
  function o(S) {
9370
9383
  const x = S.target.value;
9371
- rt(at.LANGUAGE_CHANGED, w(r), { from_language: w(s), to_language: x }), pe.setStoreLanguage(x);
9384
+ rt(at.LANGUAGE_CHANGED, b(r), { from_language: b(s), to_language: x }), pe.setStoreLanguage(x);
9372
9385
  }
9373
9386
  var a = Xf(), c = M(a), u = M(c), l = M(u), h = M(l), d = G(l, 2), p = G(d, 2), f = M(p), m = G(c, 2);
9374
9387
  {
9375
9388
  var y = (S) => {
9376
9389
  var _ = Kf();
9377
- $n(_, 21, () => w(i), Zn, (g, b) => {
9390
+ $n(_, 21, () => b(i), Zn, (g, w) => {
9378
9391
  var E = Gf(), I = M(E), k = {};
9379
9392
  J(
9380
9393
  (T) => {
9381
- Yc(E, w(b) === w(s)), ne(I, T), k !== (k = w(b)) && (E.value = (E.__value = w(b)) ?? "");
9394
+ Yc(E, b(w) === b(s)), ne(I, T), k !== (k = b(w)) && (E.value = (E.__value = b(w)) ?? "");
9382
9395
  },
9383
- [() => w(b).toUpperCase()]
9396
+ [() => b(w).toUpperCase()]
9384
9397
  ), P(g, E);
9385
9398
  });
9386
9399
  var x;
9387
9400
  Gc(_), J(() => {
9388
- x !== (x = w(s)) && (_.value = (_.__value = w(s)) ?? "", Ia(_, w(s)));
9401
+ x !== (x = b(s)) && (_.value = (_.__value = b(s)) ?? "", Ia(_, b(s)));
9389
9402
  }), yn("change", _, o), P(S, _);
9390
9403
  };
9391
9404
  ce(m, (S) => {
9392
- w(i).length > 1 && S(y);
9405
+ b(i).length > 1 && S(y);
9393
9406
  });
9394
9407
  }
9395
9408
  J(
@@ -9397,8 +9410,8 @@ function Jf(t, e) {
9397
9410
  ne(h, S), ke(d, "src", n() === "ru" ? "https://czvgkhagwvmknscoerfy.supabase.co/storage/v1/object/public/static-media/divino_logo.svg?x=5" : "https://czvgkhagwvmknscoerfy.supabase.co/storage/v1/object/public/static-media/logo_medium_gray.svg"), ne(f, _);
9398
9411
  },
9399
9412
  [
9400
- () => Ee({ key: "poweredBy", lang: w(s) }),
9401
- () => Ee({ key: "ai_sommelier", lang: w(s) })
9413
+ () => Ee({ key: "poweredBy", lang: b(s) }),
9414
+ () => Ee({ key: "ai_sommelier", lang: b(s) })
9402
9415
  ]
9403
9416
  ), P(t, a), jt();
9404
9417
  }
@@ -9449,21 +9462,21 @@ function np(t, e) {
9449
9462
  return s;
9450
9463
  }
9451
9464
  function d() {
9452
- const g = ++l, b = Ee({ key: "placeholderSuggestions", lang: w(u) });
9453
- if (!s || !b.length) return;
9465
+ const g = ++l, w = Ee({ key: "placeholderSuggestions", lang: b(u) });
9466
+ if (!s || !w.length) return;
9454
9467
  D(c, !0);
9455
9468
  const E = () => {
9456
- if (g !== l || !s || !w(c) || w(i) || n().length) return;
9457
- const I = b[w(r)];
9458
- if (w(a)) {
9459
- if (s.placeholder = I.substring(0, Or(o)), w(o) > I.length) {
9469
+ if (g !== l || !s || !b(c) || b(i) || n().length) return;
9470
+ const I = w[b(r)];
9471
+ if (b(a)) {
9472
+ if (s.placeholder = I.substring(0, Or(o)), b(o) > I.length) {
9460
9473
  D(a, !1), setTimeout(E, 1600);
9461
9474
  return;
9462
9475
  }
9463
9476
  setTimeout(E, 90);
9464
9477
  } else {
9465
- if (s.placeholder = I.substring(0, Or(o, -1)), w(o) < 0) {
9466
- D(a, !0), D(r, (w(r) + 1) % b.length), setTimeout(E, 450);
9478
+ if (s.placeholder = I.substring(0, Or(o, -1)), b(o) < 0) {
9479
+ D(a, !0), D(r, (b(r) + 1) % w.length), setTimeout(E, 450);
9467
9480
  return;
9468
9481
  }
9469
9482
  setTimeout(E, 45);
@@ -9483,10 +9496,10 @@ function np(t, e) {
9483
9496
  Yn(() => {
9484
9497
  if (!s || n().length > 0) return;
9485
9498
  l++, D(c, !1), D(r, 0), D(o, 0), D(a, !0);
9486
- const g = Ee({ key: "placeholderSuggestions", lang: w(u) });
9487
- g && g.length ? s.placeholder = g[0] : s.placeholder = Ee({ key: "searchPlaceholder", lang: w(u) });
9499
+ const g = Ee({ key: "placeholderSuggestions", lang: b(u) });
9500
+ g && g.length ? s.placeholder = g[0] : s.placeholder = Ee({ key: "searchPlaceholder", lang: b(u) });
9488
9501
  }), Yn(() => {
9489
- s && e.initialized && !w(i) && !n().length && !w(c) && d(), n().length > 0 && w(c) && (D(c, !1), l++);
9502
+ s && e.initialized && !b(i) && !n().length && !b(c) && d(), n().length > 0 && b(c) && (D(c, !1), l++);
9490
9503
  }), ur(() => {
9491
9504
  });
9492
9505
  var y = { getSearchElement: h }, S = ep(), _ = G(M(S), 2);
@@ -9496,16 +9509,16 @@ function np(t, e) {
9496
9509
  className: "wr-Search-button",
9497
9510
  type: "submit",
9498
9511
  variant: "primary",
9499
- children: (g, b) => {
9512
+ children: (g, w) => {
9500
9513
  var E = Di();
9501
9514
  J((I) => ne(E, I), [
9502
- () => Ee({ key: "searchButton", lang: w(u) })
9515
+ () => Ee({ key: "searchButton", lang: b(u) })
9503
9516
  ]), P(g, E);
9504
9517
  },
9505
9518
  $$slots: { default: !0 }
9506
9519
  }), on("submit", S, function(...g) {
9507
- var b;
9508
- (b = e.onSubmit) == null || b.apply(this, g);
9520
+ var w;
9521
+ (w = e.onSubmit) == null || w.apply(this, g);
9509
9522
  }), on("focus", _, f), on("blur", _, m), Zc(_, n), P(t, S), jt(y);
9510
9523
  }
9511
9524
  var sp = /* @__PURE__ */ K('<div class="wr-Loader svelte-li6gfl"><div class="wr-Loader-indicator svelte-li6gfl"><span class="svelte-li6gfl"></span> <span class="svelte-li6gfl"></span> <span class="svelte-li6gfl"></span></div></div>');
@@ -9532,12 +9545,12 @@ function rp(t) {
9532
9545
  P(t, e);
9533
9546
  }
9534
9547
  var op = /* @__PURE__ */ K('<p class="wr-WinePopup-desc wr-WinePopup-text svelte-17gehox"> </p>'), ap = /* @__PURE__ */ K('<div class="wr-WinePopup-reason svelte-17gehox"> </div>'), lp = /* @__PURE__ */ K('<p class="wr-WinePopup-pairing wr-WinePopup-text svelte-17gehox"> </p>'), cp = /* @__PURE__ */ K('<span class="wr-WinePopup-tag svelte-17gehox"> </span>'), up = /* @__PURE__ */ K('<div class="wr-WinePopup-tags svelte-17gehox"></div>'), hp = /* @__PURE__ */ K('<div class="wr-WinePopupMobile svelte-17gehox"><div class="wr-WinePopupMobile-overlay svelte-17gehox"></div> <div class="wr-WinePopupMobile-wrapper svelte-17gehox"><div class="wr-WinePopup js-WinePopup svelte-17gehox"><div class="wr-WinePopup-header svelte-17gehox"><h2 class="wr-WinePopup-title svelte-17gehox"> </h2> <button class="wr-WinePopup-close js-WinePopupClose svelte-17gehox">&times;</button></div> <!> <!> <!></div></div></div>'), dp = /* @__PURE__ */ K('<p class="wr-WinePopup-desc wr-WinePopup-text svelte-17gehox"> </p>'), fp = /* @__PURE__ */ K('<div class="wr-WinePopup-reason svelte-17gehox"> </div>'), pp = /* @__PURE__ */ K('<p class="wr-WinePopup-pairing wr-WinePopup-text svelte-17gehox"> </p>'), gp = /* @__PURE__ */ K('<span class="wr-WinePopup-tag svelte-17gehox"> </span>'), mp = /* @__PURE__ */ K('<div class="wr-WinePopup-tags svelte-17gehox"></div>'), vp = /* @__PURE__ */ K('<div class="wr-WinePopup svelte-17gehox"><div class="wr-WinePopup-header svelte-17gehox"><h2 class="wr-WinePopup-title svelte-17gehox"> </h2> <button class="wr-WinePopup-close svelte-17gehox">&times;</button></div> <!> <!> <!></div>');
9535
- const wp = {
9548
+ const bp = {
9536
9549
  hash: "svelte-17gehox",
9537
9550
  code: ".wr-WinePopup.svelte-17gehox {position:absolute;width:100%;background-color:white;padding:16px;border-radius:16px;box-shadow:0 6px 30px rgba(0, 0, 0, 0.2);text-align:left;font-size:14px;box-sizing:border-box;display:flex;flex-direction:column;}.wr-WinePopup-text.svelte-17gehox {margin:5px 0;}.wr-WinePopup-header.svelte-17gehox {display:flex;justify-content:space-between;align-items:flex-start;gap:12px;}.wr-WinePopup-title.svelte-17gehox {font-size:16px;font-weight:600;margin:0;flex:1;line-height:1.3;}.wr-WinePopup-close.svelte-17gehox {font-size:20px;font-weight:bold;cursor:pointer;color:#999;border:none;background:transparent;line-height:1;}.wr-WinePopup-close.svelte-17gehox:hover {color:#000;}.wr-WinePopup-desc.svelte-17gehox {margin-top:8px;}.wr-WinePopup-reason.svelte-17gehox {font-size:14px;font-weight:400;color:#333;margin-top:8px;}.wr-WinePopup-pairing.svelte-17gehox {margin-top:8px;}.wr-WinePopup-tags.svelte-17gehox {display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;justify-content:center;}.wr-WinePopup-tag.svelte-17gehox {display:inline-block;padding:4px 8px;border-radius:12px;background-color:#f5f0ff;border:1px solid #ddd;font-size:13px;color:#333;text-transform:capitalize;}.wr-WinePopupMobile.svelte-17gehox {position:fixed;top:0;left:0;width:100%;height:100%;z-index:10000;}.wr-WinePopupMobile-overlay.svelte-17gehox {position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.5);}.wr-WinePopupMobile-wrapper.svelte-17gehox {position:absolute;width:100%;height:100%;top:50%;left:50%;transform:translate(-50%, -50%);max-width:90%;max-height:80%;overflow-y:auto;background:transparent;}"
9538
9551
  };
9539
9552
  function Mo(t, e) {
9540
- zt(e, !0), Ut(t, wp);
9553
+ zt(e, !0), Ut(t, bp);
9541
9554
  const n = !!e.isMobile;
9542
9555
  var s = cr(), i = Vs(s);
9543
9556
  {
@@ -9565,16 +9578,16 @@ function Mo(t, e) {
9565
9578
  e.reason ? I(x) : e.pairing && I(g, 1);
9566
9579
  });
9567
9580
  }
9568
- var b = G(_, 2);
9581
+ var w = G(_, 2);
9569
9582
  {
9570
9583
  var E = (I) => {
9571
9584
  var k = up();
9572
9585
  $n(k, 21, () => e.tags, Zn, (T, A) => {
9573
9586
  var V = cp(), j = M(V);
9574
- J(() => ne(j, w(A))), P(T, V);
9587
+ J(() => ne(j, b(A))), P(T, V);
9575
9588
  }), P(I, k);
9576
9589
  };
9577
- ce(b, (I) => {
9590
+ ce(w, (I) => {
9578
9591
  e.tags && e.tags.length && I(E);
9579
9592
  });
9580
9593
  }
@@ -9589,8 +9602,8 @@ function Mo(t, e) {
9589
9602
  var c = vp(), u = M(c), l = M(u), h = M(l), d = G(l, 2), p = G(u, 2);
9590
9603
  {
9591
9604
  var f = (g) => {
9592
- var b = dp(), E = M(b);
9593
- J(() => ne(E, e.shortDescription)), P(g, b);
9605
+ var w = dp(), E = M(w);
9606
+ J(() => ne(E, e.shortDescription)), P(g, w);
9594
9607
  };
9595
9608
  ce(p, (g) => {
9596
9609
  e.shortDescription && g(f);
@@ -9599,11 +9612,11 @@ function Mo(t, e) {
9599
9612
  var m = G(p, 2);
9600
9613
  {
9601
9614
  var y = (g) => {
9602
- var b = fp(), E = M(b);
9603
- J(() => ne(E, e.reason)), P(g, b);
9615
+ var w = fp(), E = M(w);
9616
+ J(() => ne(E, e.reason)), P(g, w);
9604
9617
  }, S = (g) => {
9605
- var b = pp(), E = M(b);
9606
- J(() => ne(E, e.pairing)), P(g, b);
9618
+ var w = pp(), E = M(w);
9619
+ J(() => ne(E, e.pairing)), P(g, w);
9607
9620
  };
9608
9621
  ce(m, (g) => {
9609
9622
  e.reason ? g(y) : e.pairing && g(S, 1);
@@ -9612,19 +9625,19 @@ function Mo(t, e) {
9612
9625
  var _ = G(m, 2);
9613
9626
  {
9614
9627
  var x = (g) => {
9615
- var b = mp();
9616
- $n(b, 21, () => e.tags, Zn, (E, I) => {
9628
+ var w = mp();
9629
+ $n(w, 21, () => e.tags, Zn, (E, I) => {
9617
9630
  var k = gp(), T = M(k);
9618
- J(() => ne(T, w(I))), P(E, k);
9619
- }), P(g, b);
9631
+ J(() => ne(T, b(I))), P(E, k);
9632
+ }), P(g, w);
9620
9633
  };
9621
9634
  ce(_, (g) => {
9622
9635
  e.tags && e.tags.length && g(x);
9623
9636
  });
9624
9637
  }
9625
9638
  J(() => ne(h, e.title)), yn("click", d, function(...g) {
9626
- var b;
9627
- (b = e.onClose) == null || b.apply(this, g);
9639
+ var w;
9640
+ (w = e.onClose) == null || w.apply(this, g);
9628
9641
  }), P(a, c);
9629
9642
  };
9630
9643
  ce(i, (a) => {
@@ -9634,7 +9647,7 @@ function Mo(t, e) {
9634
9647
  P(t, s), jt();
9635
9648
  }
9636
9649
  Xs(["click"]);
9637
- var bp = /* @__PURE__ */ K('<img class="wr-WineTile-image svelte-yk3emv"/>'), yp = /* @__PURE__ */ K('<div class="wr-WineTile-price svelte-yk3emv"> </div>'), Sp = /* @__PURE__ */ K('<div class="wr-WineTile-params svelte-yk3emv"> </div>'), _p = /* @__PURE__ */ K('<div class="wr-WineTilePopup-reason svelte-yk3emv"> </div>'), kp = /* @__PURE__ */ K('<span class="wr-WineTilePopup-tag svelte-yk3emv"> </span>'), Tp = /* @__PURE__ */ K('<div class="wr-WineTilePopup-tags svelte-yk3emv"></div>'), xp = /* @__PURE__ */ K("<div><!> <!></div>"), Ep = /* @__PURE__ */ K('<article><header class="wr-WineTile-header svelte-yk3emv"><!> <!> <h3 class="wr-WineTile-title svelte-yk3emv"> </h3></header> <!> <footer class="wr-WineTile-footer svelte-yk3emv"><div class="wr-WineTile-actions svelte-yk3emv"><!></div></footer> <!> <!></article> <!>', 1);
9650
+ var wp = /* @__PURE__ */ K('<img class="wr-WineTile-image svelte-yk3emv"/>'), yp = /* @__PURE__ */ K('<div class="wr-WineTile-price svelte-yk3emv"> </div>'), Sp = /* @__PURE__ */ K('<div class="wr-WineTile-params svelte-yk3emv"> </div>'), _p = /* @__PURE__ */ K('<div class="wr-WineTilePopup-reason svelte-yk3emv"> </div>'), kp = /* @__PURE__ */ K('<span class="wr-WineTilePopup-tag svelte-yk3emv"> </span>'), Tp = /* @__PURE__ */ K('<div class="wr-WineTilePopup-tags svelte-yk3emv"></div>'), xp = /* @__PURE__ */ K("<div><!> <!></div>"), Ep = /* @__PURE__ */ K('<article><header class="wr-WineTile-header svelte-yk3emv"><!> <!> <h3 class="wr-WineTile-title svelte-yk3emv"> </h3></header> <!> <footer class="wr-WineTile-footer svelte-yk3emv"><div class="wr-WineTile-actions svelte-yk3emv"><!></div></footer> <!> <!></article> <!>', 1);
9638
9651
  const Ip = {
9639
9652
  hash: "svelte-yk3emv",
9640
9653
  code: `.wr-WineTile.svelte-yk3emv {display:flex;flex-direction:column;align-items:center;text-align:center;box-sizing:border-box;padding:16px 8px;border-right:2px solid #f6f7fd;position:relative;transform:translateY(0);opacity:1;transition:transform 180ms cubic-bezier(0.22, 0.61, 0.36, 1),
@@ -9663,7 +9676,7 @@ function Cp(t, e) {
9663
9676
  const s = (N, O) => N[O] || N[O.charAt(0).toUpperCase() + O.slice(1)], i = (N, O) => O.map((te) => s(N, te)).filter(Boolean).join(" • ");
9664
9677
  function r(N) {
9665
9678
  var O;
9666
- return Of(N, ((O = pe.getCurrency) == null ? void 0 : O.call(pe)) || "USD", w(n));
9679
+ return Of(N, ((O = pe.getCurrency) == null ? void 0 : O.call(pe)) || "USD", b(n));
9667
9680
  }
9668
9681
  function o(N) {
9669
9682
  return e.selectedWineId === N;
@@ -9687,7 +9700,7 @@ function Cp(t, e) {
9687
9700
  var l = Ep(), h = Vs(l), d = M(h), p = M(d);
9688
9701
  {
9689
9702
  var f = (N) => {
9690
- var O = bp();
9703
+ var O = wp();
9691
9704
  J(() => {
9692
9705
  ke(O, "src", e.wine.image), ke(O, "alt", e.wine.title);
9693
9706
  }), P(N, O);
@@ -9713,9 +9726,9 @@ function Cp(t, e) {
9713
9726
  J((se) => ne(te, se), [
9714
9727
  () => i(e.wine, ["type", "country", "region", "grape"])
9715
9728
  ]), P(N, O);
9716
- }, b = /* @__PURE__ */ re(() => i(e.wine, ["type", "country", "region", "grape"]));
9729
+ }, w = /* @__PURE__ */ re(() => i(e.wine, ["type", "country", "region", "grape"]));
9717
9730
  ce(x, (N) => {
9718
- w(b) && N(g);
9731
+ b(w) && N(g);
9719
9732
  });
9720
9733
  }
9721
9734
  var E = G(x, 2), I = M(E), k = M(I);
@@ -9731,7 +9744,7 @@ function Cp(t, e) {
9731
9744
  children: (O, te) => {
9732
9745
  var se = Di();
9733
9746
  J((ae) => ne(se, ae), [
9734
- () => Ee({ key: "wineDetails.buy", lang: w(n) })
9747
+ () => Ee({ key: "wineDetails.buy", lang: b(n) })
9735
9748
  ]), P(O, se);
9736
9749
  },
9737
9750
  $$slots: { default: !0 }
@@ -9743,7 +9756,7 @@ function Cp(t, e) {
9743
9756
  className: "wr-WineTile-action wr-WineTile-action--button js-WineTileAction",
9744
9757
  children: (O, te) => {
9745
9758
  var se = Di();
9746
- J((ae) => ne(se, ae), [() => Ee({ key: "moreInfo", lang: w(n) })]), P(O, se);
9759
+ J((ae) => ne(se, ae), [() => Ee({ key: "moreInfo", lang: b(n) })]), P(O, se);
9747
9760
  },
9748
9761
  $$slots: { default: !0 }
9749
9762
  });
@@ -9771,16 +9784,16 @@ function Cp(t, e) {
9771
9784
  return e.wine.title;
9772
9785
  },
9773
9786
  get shortDescription() {
9774
- return w(O);
9787
+ return b(O);
9775
9788
  },
9776
9789
  get reason() {
9777
- return w(te);
9790
+ return b(te);
9778
9791
  },
9779
9792
  get pairing() {
9780
- return w(se);
9793
+ return b(se);
9781
9794
  },
9782
9795
  get tags() {
9783
- return w(ae);
9796
+ return b(ae);
9784
9797
  },
9785
9798
  get onClose() {
9786
9799
  return e.onPopupClose;
@@ -9788,9 +9801,9 @@ function Cp(t, e) {
9788
9801
  isMobile: !1
9789
9802
  });
9790
9803
  }
9791
- }, Q = /* @__PURE__ */ re(() => o(e.wine.id) && !w(u));
9804
+ }, Q = /* @__PURE__ */ re(() => o(e.wine.id) && !b(u));
9792
9805
  ce(V, (N) => {
9793
- w(Q) && N(j);
9806
+ b(Q) && N(j);
9794
9807
  });
9795
9808
  }
9796
9809
  var W = G(V, 2);
@@ -9816,7 +9829,7 @@ function Cp(t, e) {
9816
9829
  var $ = Tp();
9817
9830
  $n($, 21, () => c(e.translatedPopup, e.wine), Zn, (ve, je) => {
9818
9831
  var Ie = kp(), Ce = M(Ie);
9819
- J(() => ne(Ce, w(je))), P(ve, Ie);
9832
+ J(() => ne(Ce, b(je))), P(ve, Ie);
9820
9833
  }), P(B, $);
9821
9834
  };
9822
9835
  ce(ae, (B) => {
@@ -9827,7 +9840,7 @@ function Cp(t, e) {
9827
9840
  J(() => Ft(O, 1, `wr-WineTilePopup ${e.hoveredWineId === e.wine.id ? "slide-in visible" : ""}`, "svelte-yk3emv")), P(N, O);
9828
9841
  }, X = /* @__PURE__ */ re(() => a(e.wine));
9829
9842
  ce(W, (N) => {
9830
- w(X) && N(L);
9843
+ b(X) && N(L);
9831
9844
  });
9832
9845
  }
9833
9846
  var Z = G(h, 2);
@@ -9849,16 +9862,16 @@ function Cp(t, e) {
9849
9862
  return e.wine.title;
9850
9863
  },
9851
9864
  get shortDescription() {
9852
- return w(O);
9865
+ return b(O);
9853
9866
  },
9854
9867
  get reason() {
9855
- return w(te);
9868
+ return b(te);
9856
9869
  },
9857
9870
  get pairing() {
9858
- return w(se);
9871
+ return b(se);
9859
9872
  },
9860
9873
  get tags() {
9861
- return w(ae);
9874
+ return b(ae);
9862
9875
  },
9863
9876
  get onClose() {
9864
9877
  return e.onPopupClose;
@@ -9866,9 +9879,9 @@ function Cp(t, e) {
9866
9879
  isMobile: !0
9867
9880
  });
9868
9881
  }
9869
- }, Y = /* @__PURE__ */ re(() => o(e.wine.id) && w(u));
9882
+ }, Y = /* @__PURE__ */ re(() => o(e.wine.id) && b(u));
9870
9883
  ce(Z, (N) => {
9871
- w(Y) && N(R);
9884
+ b(Y) && N(R);
9872
9885
  });
9873
9886
  }
9874
9887
  J(() => {
@@ -9915,13 +9928,13 @@ function Pp(t, e) {
9915
9928
  }).start(), n();
9916
9929
  const r = ((te = window == null ? void 0 : window.wineaterData) == null ? void 0 : te.WIDGET_TYPE) || "store", o = ((se = window == null ? void 0 : window.wineaterData) == null ? void 0 : se.COUNTRY_CODE) || null;
9917
9930
  (ae = window == null ? void 0 : window.wineaterData) != null && ae.WIDGET_WRAPPER;
9918
- let a = /* @__PURE__ */ oe(!1), c = /* @__PURE__ */ oe(!1), u = /* @__PURE__ */ oe(pt([])), l = /* @__PURE__ */ oe(null), h = /* @__PURE__ */ oe(""), d = /* @__PURE__ */ oe(null), p = /* @__PURE__ */ oe(!1), f = /* @__PURE__ */ oe(null), m = /* @__PURE__ */ oe(pt([])), y = /* @__PURE__ */ re(() => pe.getAppLanguage()), S = /* @__PURE__ */ re(() => pe.getStoreLanguage()), _ = /* @__PURE__ */ re(() => pe.getApiKey()), x = /* @__PURE__ */ re(() => pe.getStoreId()), g = /* @__PURE__ */ re(() => pe.isInitialized()), b = /* @__PURE__ */ re(() => pe.getUiConfig());
9931
+ let a = /* @__PURE__ */ oe(!1), c = /* @__PURE__ */ oe(!1), u = /* @__PURE__ */ oe(pt([])), l = /* @__PURE__ */ oe(null), h = /* @__PURE__ */ oe(""), d = /* @__PURE__ */ oe(null), p = /* @__PURE__ */ oe(!1), f = /* @__PURE__ */ oe(null), m = /* @__PURE__ */ oe(pt([])), y = /* @__PURE__ */ re(() => pe.getAppLanguage()), S = /* @__PURE__ */ re(() => pe.getStoreLanguage()), _ = /* @__PURE__ */ re(() => pe.getApiKey()), x = /* @__PURE__ */ re(() => pe.getStoreId()), g = /* @__PURE__ */ re(() => pe.isInitialized()), w = /* @__PURE__ */ re(() => pe.getUiConfig());
9919
9932
  function E() {
9920
- D(d, Ee({ key: "errorMessage", lang: w(y) }), !0);
9933
+ D(d, Ee({ key: "errorMessage", lang: b(y) }), !0);
9921
9934
  }
9922
9935
  const I = () => D(d, null);
9923
9936
  async function k(C) {
9924
- if (w(y) === w(S) || r !== "bar")
9937
+ if (b(y) === b(S) || r !== "bar")
9925
9938
  return C.map(() => ({}));
9926
9939
  const B = [
9927
9940
  "shortDescription",
@@ -9938,10 +9951,10 @@ function Pp(t, e) {
9938
9951
  return Ae ? { key: le, text: Array.isArray(Ae) ? Ae.join(", ") : Ae } : null;
9939
9952
  }).filter(Boolean);
9940
9953
  return hs.length === 0 ? {} : await Mf({
9941
- sourceLang: w(S),
9942
- targetLang: w(y),
9954
+ sourceLang: b(S),
9955
+ targetLang: b(y),
9943
9956
  texts: Object.fromEntries(hs.map((le) => [le.key, le.text])),
9944
- apiKey: w(_)
9957
+ apiKey: b(_)
9945
9958
  });
9946
9959
  }), Ht = await Promise.all(xt);
9947
9960
  Ie.push(...Ht);
@@ -9959,7 +9972,7 @@ function Pp(t, e) {
9959
9972
  }
9960
9973
  }
9961
9974
  function A(C = 220) {
9962
- return !w(u) || w(u).length === 0 ? Promise.resolve() : (D(p, !0), new Promise((B) => {
9975
+ return !b(u) || b(u).length === 0 ? Promise.resolve() : (D(p, !0), new Promise((B) => {
9963
9976
  setTimeout(
9964
9977
  () => {
9965
9978
  B();
@@ -9972,58 +9985,58 @@ function Pp(t, e) {
9972
9985
  C.preventDefault();
9973
9986
  let B = "";
9974
9987
  try {
9975
- D(c, !0), I(), await A(220), D(u, [], !0), D(p, !1), B = w(h).trim() + ";";
9988
+ D(c, !0), I(), await A(220), D(u, [], !0), D(p, !1), B = b(h).trim() + ";";
9976
9989
  try {
9977
- rt(at.SEARCH_PERFORMED, w(x), { query: B });
9990
+ rt(at.SEARCH_PERFORMED, b(x), { query: B });
9978
9991
  } catch (ve) {
9979
9992
  console.error("Error tracking search event:", ve);
9980
9993
  }
9981
9994
  const $ = await Ji.getWineRecommendationsSearch(B);
9982
- !$ || $.length === 0 ? (D(u, [], !0), D(m, [], !0), D(d, Ee({ key: "noResultsMessage", lang: w(y) }), !0), rt(at.NO_RESULTS_FOUND, w(x), { query: B })) : (D(u, $, !0), rt(at.SEARCH_RESULTS_DISPLAYED, w(x), {
9995
+ !$ || $.length === 0 ? (D(u, [], !0), D(m, [], !0), D(d, Ee({ key: "noResultsMessage", lang: b(y) }), !0), rt(at.NO_RESULTS_FOUND, b(x), { query: B })) : (D(u, $, !0), rt(at.SEARCH_RESULTS_DISPLAYED, b(x), {
9983
9996
  results_count: $.length,
9984
9997
  results: $,
9985
9998
  query: B
9986
9999
  }));
9987
10000
  } catch ($) {
9988
- D(u, [], !0), console.error("[wineater] search error:", $), rt(at.ERROR_OCCURRED, w(x), { error_message: $ == null ? void 0 : $.message, query: B }), E();
10001
+ D(u, [], !0), console.error("[wineater] search error:", $), rt(at.ERROR_OCCURRED, b(x), { error_message: $ == null ? void 0 : $.message, query: B }), E();
9989
10002
  } finally {
9990
10003
  D(c, !1);
9991
10004
  }
9992
10005
  }
9993
10006
  Yn(async () => {
9994
- if (!w(u) || w(u).length === 0) {
10007
+ if (!b(u) || b(u).length === 0) {
9995
10008
  D(m, [], !0);
9996
10009
  return;
9997
10010
  }
9998
10011
  try {
9999
- const C = await k(w(u));
10000
- w(u) && w(u).length > 0 && D(m, C, !0);
10012
+ const C = await k(b(u));
10013
+ b(u) && b(u).length > 0 && D(m, C, !0);
10001
10014
  } catch (C) {
10002
10015
  console.error("translatePopupContent failed", C);
10003
10016
  }
10004
10017
  });
10005
10018
  function j(C, B) {
10006
- w(l) && w(l) !== C.id && D(l, null), D(l, C.id, !0), rt(at.WINE_DETAILS_VIEWED, w(x), {
10019
+ b(l) && b(l) !== C.id && D(l, null), D(l, C.id, !0), rt(at.WINE_DETAILS_VIEWED, b(x), {
10007
10020
  wine_id: C.id,
10008
10021
  wine_title: C.title,
10009
10022
  is_mobile: window.innerWidth <= 768
10010
10023
  });
10011
10024
  }
10012
10025
  function Q() {
10013
- const C = w(u).find((B) => B.id === w(l));
10014
- rt(at.WINE_DETAILS_CLOSED, w(x), { wine_id: w(l), wine_title: C.title }), D(l, null);
10026
+ const C = b(u).find((B) => B.id === b(l));
10027
+ rt(at.WINE_DETAILS_CLOSED, b(x), { wine_id: b(l), wine_title: C.title }), D(l, null);
10015
10028
  }
10016
10029
  function W(C) {
10017
10030
  return !!(C.reason || C.shortDescription || C.tags);
10018
10031
  }
10019
10032
  function L(C) {
10020
- r === "store" && W(C) && (D(f, C.id, !0), rt(at.WINE_CARD_HOVER, w(x), { wine_id: C.id, wine_title: C.title }));
10033
+ r === "store" && W(C) && (D(f, C.id, !0), rt(at.WINE_CARD_HOVER, b(x), { wine_id: C.id, wine_title: C.title }));
10021
10034
  }
10022
10035
  function X(C) {
10023
- r === "store" && w(f) === C.id && D(f, null);
10036
+ r === "store" && b(f) === C.id && D(f, null);
10024
10037
  }
10025
10038
  function Z(C, B) {
10026
- C.target.closest(".js-WineTileAction") || C.target.closest(".js-WinePopupClose") || rt(at.WINE_CARD_CLICK, w(x), { wine_id: B.id, wine_title: B.title });
10039
+ C.target.closest(".js-WineTileAction") || C.target.closest(".js-WinePopupClose") || rt(at.WINE_CARD_CLICK, b(x), { wine_id: B.id, wine_title: B.title });
10027
10040
  }
10028
10041
  function R(C) {
10029
10042
  const B = C.target;
@@ -10031,10 +10044,10 @@ function Pp(t, e) {
10031
10044
  }
10032
10045
  Yn(() => {
10033
10046
  var C, B;
10034
- (C = w(b)) != null && C.brandColor && document.documentElement.style.setProperty("--wr-brand-color", w(b).brandColor), (B = w(b)) != null && B.wineaterColor && document.documentElement.style.setProperty("--wr-wineater-color", w(b).wineaterColor);
10047
+ (C = b(w)) != null && C.brandColor && document.documentElement.style.setProperty("--wr-brand-color", b(w).brandColor), (B = b(w)) != null && B.wineaterColor && document.documentElement.style.setProperty("--wr-wineater-color", b(w).wineaterColor);
10035
10048
  }), ur(async () => {
10036
- if (await pe.initializeStore(), !!w(g))
10037
- return D(b, pe.getUiConfig()), w(b).customCss && Np(w(b).customCss), await T(), rt(at.WIDGET_INITIALIZED, w(x)), D(a, !0), document.addEventListener("click", R), () => {
10049
+ if (await pe.initializeStore(), !!b(g))
10050
+ return D(w, pe.getUiConfig()), b(w).customCss && Np(b(w).customCss), await T(), rt(at.WIDGET_INITIALIZED, b(x)), D(a, !0), document.addEventListener("click", R), () => {
10038
10051
  document.removeEventListener("click", R);
10039
10052
  };
10040
10053
  });
@@ -10045,10 +10058,10 @@ function Pp(t, e) {
10045
10058
  {
10046
10059
  var ve = (le) => {
10047
10060
  var Ae = Rp(), Un = M(Ae);
10048
- J(() => ke(Un, "src", w(b).logoUrl)), P(le, Ae);
10061
+ J(() => ke(Un, "src", b(w).logoUrl)), P(le, Ae);
10049
10062
  };
10050
10063
  ce($, (le) => {
10051
- w(b).logoUrl && le(ve);
10064
+ b(w).logoUrl && le(ve);
10052
10065
  });
10053
10066
  }
10054
10067
  var je = G($, 2);
@@ -10057,10 +10070,10 @@ function Pp(t, e) {
10057
10070
  np(Ie, {
10058
10071
  onSubmit: V,
10059
10072
  get initialized() {
10060
- return w(a);
10073
+ return b(a);
10061
10074
  },
10062
10075
  get searchQuery() {
10063
- return w(h);
10076
+ return b(h);
10064
10077
  },
10065
10078
  set searchQuery(le) {
10066
10079
  D(h, le, !0);
@@ -10072,33 +10085,33 @@ function Pp(t, e) {
10072
10085
  rp(le);
10073
10086
  };
10074
10087
  ce(Ce, (le) => {
10075
- w(c) && le(jn);
10088
+ b(c) && le(jn);
10076
10089
  });
10077
10090
  }
10078
10091
  var xt = G(Ce, 2), Ht = M(xt);
10079
10092
  {
10080
10093
  var us = (le) => {
10081
10094
  var Ae = Dp(), Un = M(Ae), ti = M(Un);
10082
- J(() => ne(ti, w(d))), P(le, Ae);
10095
+ J(() => ne(ti, b(d))), P(le, Ae);
10083
10096
  }, hs = (le) => {
10084
10097
  var Ae = Op();
10085
- $n(Ae, 21, () => w(u), Zn, (Un, ti, Ir) => {
10098
+ $n(Ae, 21, () => b(u), Zn, (Un, ti, Ir) => {
10086
10099
  Cp(Un, {
10087
10100
  get wine() {
10088
- return w(ti);
10101
+ return b(ti);
10089
10102
  },
10090
10103
  index: Ir,
10091
10104
  get hoveredWineId() {
10092
- return w(f);
10105
+ return b(f);
10093
10106
  },
10094
10107
  get selectedWineId() {
10095
- return w(l);
10108
+ return b(l);
10096
10109
  },
10097
10110
  get isAnimating() {
10098
- return w(p);
10111
+ return b(p);
10099
10112
  },
10100
10113
  get translatedPopup() {
10101
- return w(m)[Ir];
10114
+ return b(m)[Ir];
10102
10115
  },
10103
10116
  onBuyClick: j,
10104
10117
  onPopupClose: Q,
@@ -10109,7 +10122,7 @@ function Pp(t, e) {
10109
10122
  }), P(le, Ae);
10110
10123
  };
10111
10124
  ce(Ht, (le) => {
10112
- w(d) ? le(us) : w(u) && w(u).length > 0 && le(hs, 1);
10125
+ b(d) ? le(us) : b(u) && b(u).length > 0 && le(hs, 1);
10113
10126
  });
10114
10127
  }
10115
10128
  var Er = G(xt, 2);
@@ -10120,7 +10133,7 @@ function Pp(t, e) {
10120
10133
  }), P(C, B);
10121
10134
  };
10122
10135
  ce(N, (C) => {
10123
- w(g) && C(O);
10136
+ b(g) && C(O);
10124
10137
  });
10125
10138
  }
10126
10139
  P(t, Y), jt();