wineater-bot 3.1.3 → 3.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -897,16 +897,16 @@ var pn = { exports: {} };
897
897
  var m = "shortString", g = !0;
898
898
  typeof h == "number" && (m = "javaDouble", g = !1), b[m] = b[m] || {}, b[m][f] = g ? h + "" : h;
899
899
  }
900
- function v(b) {
900
+ function y(b) {
901
901
  return !!b && typeof b == "object" && b.value !== void 0;
902
902
  }
903
903
  function S(b) {
904
904
  return Object.fromEntries(Object.entries(b).map(function(f) {
905
905
  var h = f[0], m = f[1];
906
- return [h, v(m) ? m : { value: m }];
906
+ return [h, y(m) ? m : { value: m }];
907
907
  }));
908
908
  }
909
- function y(b) {
909
+ function v(b) {
910
910
  return i(i({}, b), { identity: b.identity ? i(i({}, b.identity), { traits: S(b.identity.traits || {}) }) : void 0 });
911
911
  }
912
912
  (function(b) {
@@ -1001,7 +1001,7 @@ var pn = { exports: {} };
1001
1001
  return [w, x == null ? void 0 : x.value];
1002
1002
  }));
1003
1003
  }, this.setContext = function(m) {
1004
- var g = y(m);
1004
+ var g = v(m);
1005
1005
  return h.evaluationContext = i(i({}, g), { environment: g.environment || h.evaluationContext.environment }), h.initialised ? h.getFlags() : Promise.resolve();
1006
1006
  }, this.getContext = function() {
1007
1007
  return h.evaluationContext;
@@ -1016,7 +1016,7 @@ var pn = { exports: {} };
1016
1016
  if (h.api)
1017
1017
  return h.setContext(i(i({}, h.evaluationContext), { identity: i(i({}, h.evaluationContext.identity), { traits: i(i({}, (g = h.evaluationContext.identity) === null || g === void 0 ? void 0 : g.traits), Object.fromEntries(Object.entries(m).map(function(w) {
1018
1018
  var x = w[0], R = w[1];
1019
- return [x, v(R) ? R : { value: R }];
1019
+ return [x, y(R) ? R : { value: R }];
1020
1020
  }))) }) }));
1021
1021
  console.error("Attempted to setTraits a user before calling flagsmith.init. Call flagsmith.init first, if you wish to prevent it sending a request for flags, call init with preventFetch:true.");
1022
1022
  }, this.hasFeature = function(m, g) {
@@ -1071,7 +1071,7 @@ var pn = { exports: {} };
1071
1071
  return o(this, function(pe) {
1072
1072
  switch (pe.label) {
1073
1073
  case 0:
1074
- w = y(f.evaluationContext || this.evaluationContext), pe.label = 1;
1074
+ w = v(f.evaluationContext || this.evaluationContext), pe.label = 1;
1075
1075
  case 1:
1076
1076
  if (pe.trys.push([1, 13, , 14]), x = f.environmentID, R = f.api, M = R === void 0 ? k : R, H = f.headers, _ = f.onChange, W = f.cacheFlags, ee = f.datadogRum, ae = f.onError, te = f.defaultFlags, ne = f.fetch, ce = f.preventFetch, le = f.enableLogs, me = f.enableDynatrace, Ke = f.enableAnalytics, Xe = f.realtime, Fe = f.eventSourceUrl, se = Fe === void 0 ? "https://realtime.flagsmith.com/" : Fe, X = f.AsyncStorage, Dt = f.identity, Je = f.traits, Wn = f.state, Ye = f.cacheOptions, Lt = f.angularHttpClient, Gn = f._trigger, Vn = f._triggerLoadingState, w.environment = x ? { apiKey: x } : w.environment, !w.environment || !w.environment.apiKey)
1077
1077
  throw new Error("Please provide `evaluationContext.environment` with non-empty `apiKey`");
@@ -1080,8 +1080,8 @@ var pn = { exports: {} };
1080
1080
  })) : {} } : w.identity, this.evaluationContext = w, this.api = M, this.headers = H, this.getFlagInterval = null, this.analyticsInterval = null, this.onChange = _, Ft = "Wrong Flagsmith Configuration: preventFetch is true and no defaulFlags provided", this._trigger = Gn || this._trigger, this._triggerLoadingState = Vn || this._triggerLoadingState, this.onError = function(de) {
1081
1081
  ie.setLoadingState(i(i({}, ie.loadingState), { isFetching: !1, isLoading: !1, error: de })), ae == null || ae(de);
1082
1082
  }, this.enableLogs = le || !1, this.cacheOptions = Ye ? { skipAPI: !!Ye.skipAPI, ttl: Ye.ttl || 0, loadStale: !!Ye.loadStale } : this.cacheOptions, !this.cacheOptions.ttl && this.cacheOptions.skipAPI && console.warn("Flagsmith: you have set a cache ttl of 0 and are skipping API calls, this means the API will not be hit unless you clear local storage."), ne && (u = ne), this.enableAnalytics = Ke || !1, this.flags = Object.assign({}, te) || {}, this.datadogRum = ee || null, this.initialised = !0, this.ticks = 1e4, this.timer = this.enableLogs ? (/* @__PURE__ */ new Date()).valueOf() : null, this.cacheFlags = A !== void 0 && !!W, X && (A = X), Xe && typeof window < "u" && this.setupRealtime(se, w.environment.apiKey), Object.keys(this.flags).length && (this.loadingState = i(i({}, this.loadingState), { isLoading: !1, source: c.DEFAULT_FLAGS })), this.setState(Wn), this.log("Initialising with properties", f, this), me && (typeof dtrum > "u" ? console.error("You have attempted to enable dynatrace but dtrum is undefined, please check you have the Dynatrace RUM JavaScript API installed.") : this.dtrum = dtrum), Lt && (u = /* @__PURE__ */ function(de) {
1083
- return function(be, ve) {
1084
- var Ee = ve.headers, Y = ve.method, Pe = ve.body;
1083
+ return function(be, ye) {
1084
+ var Ee = ye.headers, Y = ye.method, Pe = ye.body;
1085
1085
  return new Promise(function(Re) {
1086
1086
  switch (Y) {
1087
1087
  case "GET":
@@ -1109,10 +1109,10 @@ var pn = { exports: {} };
1109
1109
  ie.analyticsInterval = setInterval(ie.analyticsFlags, ie.ticks);
1110
1110
  }), this.enableAnalytics && (this.analyticsInterval && clearInterval(this.analyticsInterval), A && this.canUseStorage && A.getItem(D, function(de, be) {
1111
1111
  if (be && ie.evaluationContext.environment) {
1112
- var ve = JSON.parse(be);
1113
- if (ve[ie.evaluationContext.environment.apiKey]) {
1112
+ var ye = JSON.parse(be);
1113
+ if (ye[ie.evaluationContext.environment.apiKey]) {
1114
1114
  var Ee = ie.getState();
1115
- ie.log("Retrieved events from cache", be), ie.setState(i(i({}, Ee), { evaluationEvent: ve[ie.evaluationContext.environment.apiKey] }));
1115
+ ie.log("Retrieved events from cache", be), ie.setState(i(i({}, Ee), { evaluationEvent: ye[ie.evaluationContext.environment.apiKey] }));
1116
1116
  }
1117
1117
  }
1118
1118
  })), !W)
@@ -1121,15 +1121,15 @@ var pn = { exports: {} };
1121
1121
  return [3, 8];
1122
1122
  Kn = function(de, be) {
1123
1123
  return r(ie, void 0, void 0, function() {
1124
- var ve, Ee, Y, Pe, Re, ke, Pt, Jn, Bt, jt, zt, Ut, Ht, $t, qt, Wt, Gt, Vt, Kt, Xt, Jt, Yt, Qt, Zt;
1124
+ var ye, Ee, Y, Pe, Re, ke, Pt, Jn, Bt, jt, zt, Ut, Ht, $t, qt, Wt, Gt, Vt, Kt, Xt, Jt, Yt, Qt, Zt;
1125
1125
  return o(this, function(Ie) {
1126
1126
  switch (Ie.label) {
1127
1127
  case 0:
1128
1128
  if (!be)
1129
1129
  return [3, 7];
1130
- ve = null, Ee = null, Ie.label = 1;
1130
+ ye = null, Ee = null, Ie.label = 1;
1131
1131
  case 1:
1132
- return Ie.trys.push([1, 5, , 6]), Y = JSON.parse(be), Pe = !1, Re = !1, Y && Y.api === this.api && ((jt = (Bt = Y.evaluationContext) === null || Bt === void 0 ? void 0 : Bt.environment) === null || jt === void 0 ? void 0 : jt.apiKey) === ((zt = this.evaluationContext.environment) === null || zt === void 0 ? void 0 : zt.apiKey) && (ke = !0, this.evaluationContext.identity && ((Ht = (Ut = Y.evaluationContext) === null || Ut === void 0 ? void 0 : Ut.identity) === null || Ht === void 0 ? void 0 : Ht.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((qt = ($t = Y.evaluationContext) === null || $t === void 0 ? void 0 : $t.identity) === null || qt === void 0 ? void 0 : qt.identifier) + " to " + this.evaluationContext.identity.identifier), ke = !1), this.cacheOptions.ttl && (!Y.ts || (/* @__PURE__ */ new Date()).valueOf() - Y.ts > this.cacheOptions.ttl) && (Y.ts && !this.cacheOptions.loadStale ? (this.log("Ignoring cache, timestamp is too old ts:" + Y.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - Y.ts) + "ms"), ke = !1) : Y.ts && this.cacheOptions.loadStale && (this.log("Loading stale cache, timestamp ts:" + Y.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - Y.ts) + "ms"), Re = !0, ke = !0)), ke && (Pe = !0, Ee = d((Wt = this.evaluationContext.identity) === null || Wt === void 0 ? void 0 : Wt.traits, (Vt = (Gt = Y.evaluationContext) === null || Gt === void 0 ? void 0 : Gt.identity) === null || Vt === void 0 ? void 0 : Vt.traits), ve = d(this.flags, Y.flags), this.setState(i(i({}, Y), { evaluationContext: y(i(i({}, Y.evaluationContext), { identity: !((Kt = Y.evaluationContext) === null || Kt === void 0) && Kt.identity ? i(i({}, (Xt = Y.evaluationContext) === null || Xt === void 0 ? void 0 : Xt.identity), { traits: i(i({}, ((Yt = (Jt = Y.evaluationContext) === null || Jt === void 0 ? void 0 : Jt.identity) === null || Yt === void 0 ? void 0 : Yt.traits) || {}), Je || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", Y))), Pe ? (Pt = !ce && (!this.cacheOptions.skipAPI || Re), this._onChange(null, { isFromServer: !1, flagsChanged: ve, traitsChanged: Ee }, this._loadedState(null, c.CACHE, Pt)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && Pe && !Re && this.log("Skipping API, using cache"), Pt && this.getFlags(), [3, 4]) : [3, 2];
1132
+ return Ie.trys.push([1, 5, , 6]), Y = JSON.parse(be), Pe = !1, Re = !1, Y && Y.api === this.api && ((jt = (Bt = Y.evaluationContext) === null || Bt === void 0 ? void 0 : Bt.environment) === null || jt === void 0 ? void 0 : jt.apiKey) === ((zt = this.evaluationContext.environment) === null || zt === void 0 ? void 0 : zt.apiKey) && (ke = !0, this.evaluationContext.identity && ((Ht = (Ut = Y.evaluationContext) === null || Ut === void 0 ? void 0 : Ut.identity) === null || Ht === void 0 ? void 0 : Ht.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((qt = ($t = Y.evaluationContext) === null || $t === void 0 ? void 0 : $t.identity) === null || qt === void 0 ? void 0 : qt.identifier) + " to " + this.evaluationContext.identity.identifier), ke = !1), this.cacheOptions.ttl && (!Y.ts || (/* @__PURE__ */ new Date()).valueOf() - Y.ts > this.cacheOptions.ttl) && (Y.ts && !this.cacheOptions.loadStale ? (this.log("Ignoring cache, timestamp is too old ts:" + Y.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - Y.ts) + "ms"), ke = !1) : Y.ts && this.cacheOptions.loadStale && (this.log("Loading stale cache, timestamp ts:" + Y.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - Y.ts) + "ms"), Re = !0, ke = !0)), ke && (Pe = !0, Ee = d((Wt = this.evaluationContext.identity) === null || Wt === void 0 ? void 0 : Wt.traits, (Vt = (Gt = Y.evaluationContext) === null || Gt === void 0 ? void 0 : Gt.identity) === null || Vt === void 0 ? void 0 : Vt.traits), ye = d(this.flags, Y.flags), this.setState(i(i({}, Y), { evaluationContext: v(i(i({}, Y.evaluationContext), { identity: !((Kt = Y.evaluationContext) === null || Kt === void 0) && Kt.identity ? i(i({}, (Xt = Y.evaluationContext) === null || Xt === void 0 ? void 0 : Xt.identity), { traits: i(i({}, ((Yt = (Jt = Y.evaluationContext) === null || Jt === void 0 ? void 0 : Jt.identity) === null || Yt === void 0 ? void 0 : Yt.traits) || {}), Je || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", Y))), Pe ? (Pt = !ce && (!this.cacheOptions.skipAPI || Re), this._onChange(null, { isFromServer: !1, flagsChanged: ye, traitsChanged: Ee }, this._loadedState(null, c.CACHE, Pt)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && Pe && !Re && this.log("Skipping API, using cache"), Pt && this.getFlags(), [3, 4]) : [3, 2];
1133
1133
  case 2:
1134
1134
  return ce ? [3, 4] : [4, this.getFlags()];
1135
1135
  case 3:
@@ -1198,7 +1198,7 @@ var pn = { exports: {} };
1198
1198
  }, b.prototype.identify = function(f, h, m) {
1199
1199
  return this.evaluationContext.identity = { identifier: f, transient: m, traits: this.evaluationContext.identity && this.evaluationContext.identity.identifier == f ? this.evaluationContext.identity.traits : {} }, this.evaluationContext.identity.identifier = f, this.log("Identify: " + this.evaluationContext.identity.identifier), h && (this.evaluationContext.identity.traits = Object.fromEntries(Object.entries(h).map(function(g) {
1200
1200
  var w = g[0], x = g[1];
1201
- return [w, v(x) ? x : { value: x }];
1201
+ return [w, y(x) ? x : { value: x }];
1202
1202
  }))), this.initialised ? this.getFlags() : Promise.resolve();
1203
1203
  }, b.prototype.getState = function() {
1204
1204
  return { api: this.api, flags: this.flags, ts: this.ts, evaluationContext: this.evaluationContext, evaluationEvent: this.evaluationEvent };
@@ -1505,10 +1505,10 @@ var Qn = {}, Pi = function(t, e, n, s, i) {
1505
1505
  return { b: n, r: i };
1506
1506
  }, Ks = Vs(_t, 2), Bi = Ks.b, bt = Ks.r;
1507
1507
  Bi[28] = 258, bt[258] = 28;
1508
- var ji = Vs(Nt, 0), mn = ji.r, vt = new re(32768);
1508
+ var ji = Vs(Nt, 0), mn = ji.r, yt = new re(32768);
1509
1509
  for (var J = 0; J < 32768; ++J) {
1510
1510
  var Ce = (J & 43690) >> 1 | (J & 21845) << 1;
1511
- Ce = (Ce & 52428) >> 2 | (Ce & 13107) << 2, Ce = (Ce & 61680) >> 4 | (Ce & 3855) << 4, vt[J] = ((Ce & 65280) >> 8 | (Ce & 255) << 8) >> 1;
1511
+ Ce = (Ce & 52428) >> 2 | (Ce & 13107) << 2, Ce = (Ce & 61680) >> 4 | (Ce & 3855) << 4, yt[J] = ((Ce & 65280) >> 8 | (Ce & 255) << 8) >> 1;
1512
1512
  }
1513
1513
  var We = function(t, e, n) {
1514
1514
  for (var s = t.length, i = 0, r = new re(e); i < s; ++i)
@@ -1523,10 +1523,10 @@ var We = function(t, e, n) {
1523
1523
  for (i = 0; i < s; ++i)
1524
1524
  if (t[i])
1525
1525
  for (var d = i << 4 | t[i], c = e - t[i], u = o[t[i] - 1]++ << c, p = u | (1 << c) - 1; u <= p; ++u)
1526
- l[vt[u] >> a] = d;
1526
+ l[yt[u] >> a] = d;
1527
1527
  } else
1528
1528
  for (l = new re(s), i = 0; i < s; ++i)
1529
- t[i] && (l[i] = vt[o[t[i] - 1]++] >> 15 - t[i]);
1529
+ t[i] && (l[i] = yt[o[t[i] - 1]++] >> 15 - t[i]);
1530
1530
  return l;
1531
1531
  }, Oe = new fe(288);
1532
1532
  for (var J = 0; J < 144; ++J)
@@ -1565,7 +1565,7 @@ var Xs = /* @__PURE__ */ We(Oe, 9, 0), Js = /* @__PURE__ */ We(nt, 5, 0), An = f
1565
1565
  if (s.code = t, Error.captureStackTrace && Error.captureStackTrace(s, Qs), !n)
1566
1566
  throw s;
1567
1567
  return s;
1568
- }, ye = function(t, e, n) {
1568
+ }, ve = function(t, e, n) {
1569
1569
  n <<= e & 7;
1570
1570
  var s = e / 8 | 0;
1571
1571
  t[s] |= n, t[s + 1] |= n >> 8;
@@ -1591,31 +1591,31 @@ var Xs = /* @__PURE__ */ We(Oe, 9, 0), Js = /* @__PURE__ */ We(nt, 5, 0), An = f
1591
1591
  l = n[n[d].f < n[u].f ? d++ : u++], a = n[d != c && n[d].f < n[u].f ? d++ : u++], n[c++] = { s: -1, f: l.f + a.f, l, r: a };
1592
1592
  for (var p = r[0].s, s = 1; s < i; ++s)
1593
1593
  r[s].s > p && (p = r[s].s);
1594
- var v = new re(p + 1), S = yt(n[c - 1], v, 0);
1594
+ var y = new re(p + 1), S = vt(n[c - 1], y, 0);
1595
1595
  if (S > e) {
1596
- var s = 0, y = 0, T = S - e, A = 1 << T;
1596
+ var s = 0, v = 0, T = S - e, A = 1 << T;
1597
1597
  for (r.sort(function(O, L) {
1598
- return v[L.s] - v[O.s] || O.f - L.f;
1598
+ return y[L.s] - y[O.s] || O.f - L.f;
1599
1599
  }); s < i; ++s) {
1600
1600
  var B = r[s].s;
1601
- if (v[B] > e)
1602
- y += A - (1 << S - v[B]), v[B] = e;
1601
+ if (y[B] > e)
1602
+ v += A - (1 << S - y[B]), y[B] = e;
1603
1603
  else
1604
1604
  break;
1605
1605
  }
1606
- for (y >>= T; y > 0; ) {
1606
+ for (v >>= T; v > 0; ) {
1607
1607
  var D = r[s].s;
1608
- v[D] < e ? y -= 1 << e - v[D]++ - 1 : ++s;
1608
+ y[D] < e ? v -= 1 << e - y[D]++ - 1 : ++s;
1609
1609
  }
1610
- for (; s >= 0 && y; --s) {
1610
+ for (; s >= 0 && v; --s) {
1611
1611
  var k = r[s].s;
1612
- v[k] == e && (--v[k], ++y);
1612
+ y[k] == e && (--y[k], ++v);
1613
1613
  }
1614
1614
  S = e;
1615
1615
  }
1616
- return { t: new fe(v), l: S };
1617
- }, yt = function(t, e, n) {
1618
- return t.s == -1 ? Math.max(yt(t.l, e, n + 1), yt(t.r, e, n + 1)) : e[t.s] = n;
1616
+ return { t: new fe(y), l: S };
1617
+ }, vt = function(t, e, n) {
1618
+ return t.s == -1 ? Math.max(vt(t.l, e, n + 1), vt(t.r, e, n + 1)) : e[t.s] = n;
1619
1619
  }, bn = function(t) {
1620
1620
  for (var e = t.length; e && !t[--e]; )
1621
1621
  ;
@@ -1649,29 +1649,29 @@ var Xs = /* @__PURE__ */ We(Oe, 9, 0), Js = /* @__PURE__ */ We(nt, 5, 0), An = f
1649
1649
  for (var r = 0; r < s; ++r)
1650
1650
  t[i + r + 4] = n[r];
1651
1651
  return (i + 4 + s) * 8;
1652
- }, vn = function(t, e, n, s, i, r, o, l, a, d, c) {
1653
- ye(e, c++, n), ++i[256];
1654
- for (var u = ht(i, 15), p = u.t, v = u.l, S = ht(r, 15), y = S.t, T = S.l, A = bn(p), B = A.c, D = A.n, k = bn(y), N = k.c, O = k.n, L = new re(19), I = 0; I < B.length; ++I)
1652
+ }, yn = function(t, e, n, s, i, r, o, l, a, d, c) {
1653
+ ve(e, c++, n), ++i[256];
1654
+ for (var u = ht(i, 15), p = u.t, y = u.l, S = ht(r, 15), v = S.t, T = S.l, A = bn(p), B = A.c, D = A.n, k = bn(v), N = k.c, O = k.n, L = new re(19), I = 0; I < B.length; ++I)
1655
1655
  ++L[B[I] & 31];
1656
1656
  for (var I = 0; I < N.length; ++I)
1657
1657
  ++L[N[I] & 31];
1658
1658
  for (var E = ht(L, 7), P = E.t, V = E.l, j = 19; j > 4 && !P[gn[j - 1]]; --j)
1659
1659
  ;
1660
- var q = d + 5 << 3, C = He(i, Oe) + He(r, nt) + o, F = He(i, p) + He(r, y) + o + 14 + 3 * j + He(L, P) + 2 * L[16] + 3 * L[17] + 7 * L[18];
1660
+ var q = d + 5 << 3, C = He(i, Oe) + He(r, nt) + o, F = He(i, p) + He(r, v) + o + 14 + 3 * j + He(L, P) + 2 * L[16] + 3 * L[17] + 7 * L[18];
1661
1661
  if (a >= 0 && q <= C && q <= F)
1662
1662
  return Dn(e, c, t.subarray(a, a + d));
1663
1663
  var G, K, U, b;
1664
- if (ye(e, c, 1 + (F < C)), c += 2, F < C) {
1665
- G = We(p, v, 0), K = p, U = We(y, T, 0), b = y;
1664
+ if (ve(e, c, 1 + (F < C)), c += 2, F < C) {
1665
+ G = We(p, y, 0), K = p, U = We(v, T, 0), b = v;
1666
1666
  var f = We(P, V, 0);
1667
- ye(e, c, D - 257), ye(e, c + 5, O - 1), ye(e, c + 10, j - 4), c += 14;
1667
+ ve(e, c, D - 257), ve(e, c + 5, O - 1), ve(e, c + 10, j - 4), c += 14;
1668
1668
  for (var I = 0; I < j; ++I)
1669
- ye(e, c + 3 * I, P[gn[I]]);
1669
+ ve(e, c + 3 * I, P[gn[I]]);
1670
1670
  c += 3 * j;
1671
1671
  for (var h = [B, N], m = 0; m < 2; ++m)
1672
1672
  for (var g = h[m], I = 0; I < g.length; ++I) {
1673
1673
  var w = g[I] & 31;
1674
- ye(e, c, f[w]), c += P[w], w > 15 && (ye(e, c, g[I] >> 5 & 127), c += g[I] >> 12);
1674
+ ve(e, c, f[w]), c += P[w], w > 15 && (ve(e, c, g[I] >> 5 & 127), c += g[I] >> 12);
1675
1675
  }
1676
1676
  } else
1677
1677
  G = Xs, K = Oe, U = Js, b = nt;
@@ -1679,7 +1679,7 @@ var Xs = /* @__PURE__ */ We(Oe, 9, 0), Js = /* @__PURE__ */ We(nt, 5, 0), An = f
1679
1679
  var x = s[I];
1680
1680
  if (x > 255) {
1681
1681
  var w = x >> 18 & 31;
1682
- Ue(e, c, G[w + 257]), c += K[w + 257], w > 7 && (ye(e, c, x >> 23 & 31), c += _t[w]);
1682
+ Ue(e, c, G[w + 257]), c += K[w + 257], w > 7 && (ve(e, c, x >> 23 & 31), c += _t[w]);
1683
1683
  var R = x & 31;
1684
1684
  Ue(e, c, U[R]), c += b[R], R > 3 && (Ue(e, c, x >> 5 & 8191), c += Nt[R]);
1685
1685
  } else
@@ -1690,20 +1690,20 @@ var Xs = /* @__PURE__ */ We(Oe, 9, 0), Js = /* @__PURE__ */ We(nt, 5, 0), An = f
1690
1690
  var o = r.z || t.length, l = new fe(s + o + 5 * (1 + Math.ceil(o / 7e3)) + i), a = l.subarray(s, l.length - i), d = r.l, c = (r.r || 0) & 7;
1691
1691
  if (e) {
1692
1692
  c && (a[0] = r.r >> 3);
1693
- for (var u = Zs[e - 1], p = u >> 13, v = u & 8191, S = (1 << n) - 1, y = r.p || new re(32768), T = r.h || new re(S + 1), A = Math.ceil(n / 3), B = 2 * A, D = function(ne) {
1693
+ for (var u = Zs[e - 1], p = u >> 13, y = u & 8191, S = (1 << n) - 1, v = r.p || new re(32768), T = r.h || new re(S + 1), A = Math.ceil(n / 3), B = 2 * A, D = function(ne) {
1694
1694
  return (t[ne] ^ t[ne + 1] << A ^ t[ne + 2] << B) & S;
1695
1695
  }, k = new Ct(25e3), N = new re(288), O = new re(32), L = 0, I = 0, E = r.i || 0, P = 0, V = r.w || 0, j = 0; E + 2 < o; ++E) {
1696
1696
  var q = D(E), C = E & 32767, F = T[q];
1697
- if (y[C] = F, T[q] = C, V <= E) {
1697
+ if (v[C] = F, T[q] = C, V <= E) {
1698
1698
  var G = o - E;
1699
1699
  if ((L > 7e3 || P > 24576) && (G > 423 || !d)) {
1700
- c = vn(t, a, 0, k, N, O, I, P, j, E - j, c), P = L = I = 0, j = E;
1700
+ c = yn(t, a, 0, k, N, O, I, P, j, E - j, c), P = L = I = 0, j = E;
1701
1701
  for (var K = 0; K < 286; ++K)
1702
1702
  N[K] = 0;
1703
1703
  for (var K = 0; K < 30; ++K)
1704
1704
  O[K] = 0;
1705
1705
  }
1706
- var U = 2, b = 0, f = v, h = C - F & 32767;
1706
+ var U = 2, b = 0, f = y, h = C - F & 32767;
1707
1707
  if (G > 2 && q == D(E - h))
1708
1708
  for (var m = Math.min(p, G) - 1, g = Math.min(32767, E), w = Math.min(258, G); h <= g && --f && C != F; ) {
1709
1709
  if (t[E + U] == t[E + U - h]) {
@@ -1713,12 +1713,12 @@ var Xs = /* @__PURE__ */ We(Oe, 9, 0), Js = /* @__PURE__ */ We(nt, 5, 0), An = f
1713
1713
  if (U = x, b = h, x > m)
1714
1714
  break;
1715
1715
  for (var R = Math.min(h, x - 2), M = 0, K = 0; K < R; ++K) {
1716
- var H = E - h + K & 32767, _ = y[H], W = H - _ & 32767;
1716
+ var H = E - h + K & 32767, _ = v[H], W = H - _ & 32767;
1717
1717
  W > M && (M = W, F = H);
1718
1718
  }
1719
1719
  }
1720
1720
  }
1721
- C = F, F = y[C], h += C - F & 32767;
1721
+ C = F, F = v[C], h += C - F & 32767;
1722
1722
  }
1723
1723
  if (b) {
1724
1724
  k[P++] = 268435456 | bt[U] << 18 | mn[b];
@@ -1730,7 +1730,7 @@ var Xs = /* @__PURE__ */ We(Oe, 9, 0), Js = /* @__PURE__ */ We(nt, 5, 0), An = f
1730
1730
  }
1731
1731
  for (E = Math.max(E, V); E < o; ++E)
1732
1732
  k[P++] = t[E], ++N[t[E]];
1733
- c = vn(t, a, d, k, N, O, I, P, j, E - j, c), d || (r.r = c & 7 | a[c / 8 | 0] << 3, c -= 7, r.h = T, r.p = y, r.i = E, r.w = V);
1733
+ c = yn(t, a, d, k, N, O, I, P, j, E - j, c), d || (r.r = c & 7 | a[c / 8 | 0] << 3, c -= 7, r.h = T, r.p = v, r.i = E, r.w = V);
1734
1734
  } else {
1735
1735
  for (var E = r.w || 0; E < o + d; E += 65535) {
1736
1736
  var te = E + 65535;
@@ -1806,7 +1806,7 @@ var Xs = /* @__PURE__ */ We(Oe, 9, 0), Js = /* @__PURE__ */ We(nt, 5, 0), An = f
1806
1806
  var a = Ui({}, it[n].e);
1807
1807
  return Pi(it[n].c + ";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage=" + e.toString() + "}", n, a, Hi(a), s);
1808
1808
  }, qi = function() {
1809
- return [fe, re, Ct, _t, Nt, gn, bt, mn, Xs, Oe, Js, nt, vt, Zs, Ln, We, ye, Ue, ht, yt, bn, He, Dn, vn, An, Ys, ei, Fn, Vi, si];
1809
+ return [fe, re, Ct, _t, Nt, gn, bt, mn, Xs, Oe, Js, nt, yt, Zs, Ln, We, ve, Ue, ht, vt, bn, He, Dn, yn, An, Ys, ei, Fn, Vi, si];
1810
1810
  }, Wi = function() {
1811
1811
  return [ii, ri, wt, ni, ti];
1812
1812
  }, si = function(t) {
@@ -2423,7 +2423,7 @@ function br(t, e, n) {
2423
2423
  n
2424
2424
  ];
2425
2425
  }
2426
- function vr(t, e, n) {
2426
+ function yr(t, e, n) {
2427
2427
  return [
2428
2428
  18,
2429
2429
  t,
@@ -2431,7 +2431,7 @@ function vr(t, e, n) {
2431
2431
  n
2432
2432
  ];
2433
2433
  }
2434
- function yr(t, e) {
2434
+ function vr(t, e) {
2435
2435
  return [
2436
2436
  19,
2437
2437
  t,
@@ -2537,7 +2537,7 @@ function cs(t) {
2537
2537
  t
2538
2538
  ];
2539
2539
  }
2540
- function yn(t, e, n, s) {
2540
+ function vn(t, e, n, s) {
2541
2541
  return [
2542
2542
  60,
2543
2543
  t,
@@ -2991,7 +2991,7 @@ const qr = {
2991
2991
  fontSize: "13px",
2992
2992
  height: "24px",
2993
2993
  width: "24px"
2994
- }, vs = {
2994
+ }, ys = {
2995
2995
  borderRadius: "0.375rem",
2996
2996
  border: "1px solid rgba(0, 0, 0, 0.06)",
2997
2997
  background: "#F5F7FF",
@@ -3001,7 +3001,7 @@ const qr = {
3001
3001
  padding: "0.625rem 0.9375rem",
3002
3002
  gap: "0.5rem",
3003
3003
  alignSelf: "stretch"
3004
- }, ys = {
3004
+ }, vs = {
3005
3005
  fontWeight: "bold"
3006
3006
  }, Zr = {
3007
3007
  fontSize: "13px",
@@ -3186,10 +3186,10 @@ class ho {
3186
3186
  tasks: []
3187
3187
  }, this.getDurations = () => this.durations, this.setDurations = (u) => {
3188
3188
  this.durations.testStart = u.testStart, this.durations.tasks = u.tasks;
3189
- }, this.signalTask = (u, p, v) => {
3189
+ }, this.signalTask = (u, p, y) => {
3190
3190
  if (!u)
3191
3191
  return console.error("User Testing: No Task ID Given");
3192
- const S = this.durations.tasks.find((A) => A.taskId === u), y = this.getTimestamp(), T = S ? y - S.started : 0;
3192
+ const S = this.durations.tasks.find((A) => A.taskId === u), v = this.getTimestamp(), T = S ? v - S.started : 0;
3193
3193
  return fetch(`${this.ingestPoint}/v1/web/uxt/signals/task`, {
3194
3194
  method: "POST",
3195
3195
  headers: {
@@ -3201,18 +3201,18 @@ class ho {
3201
3201
  taskId: u,
3202
3202
  status: p,
3203
3203
  duration: T,
3204
- timestamp: y,
3205
- taskAnswer: v
3204
+ timestamp: v,
3205
+ taskAnswer: y
3206
3206
  })
3207
3207
  });
3208
3208
  }, this.signalTest = (u) => {
3209
3209
  const p = this.getTimestamp();
3210
3210
  if (u === "begin" && this.testId) {
3211
- const y = this.getSessionId();
3212
- this.setStorageKey(En, y), this.setStorageKey(this.storageKey, this.testId.toString()), this.setStorageKey(ft, p.toString());
3211
+ const v = this.getSessionId();
3212
+ this.setStorageKey(En, v), this.setStorageKey(this.storageKey, this.testId.toString()), this.setStorageKey(ft, p.toString());
3213
3213
  } else
3214
3214
  this.removeStorageKey(this.storageKey), this.removeStorageKey(Tn), this.removeStorageKey(ft);
3215
- const v = this.durations.testStart || p, S = p - v;
3215
+ const y = this.durations.testStart || p, S = p - y;
3216
3216
  return fetch(`${this.ingestPoint}/v1/web/uxt/signals/test`, {
3217
3217
  method: "POST",
3218
3218
  headers: {
@@ -3332,11 +3332,11 @@ class uo {
3332
3332
  }, a.onclick = () => {
3333
3333
  var c, u, p;
3334
3334
  if (d(), this.test) {
3335
- const v = (c = this.signalManager) == null ? void 0 : c.getDurations(), S = v ? v.tasks.findIndex((y) => this.test && y.taskId === this.test.tasks[0].task_id) : null;
3336
- v && S === -1 && (v.tasks.push({
3335
+ const y = (c = this.signalManager) == null ? void 0 : c.getDurations(), S = y ? y.tasks.findIndex((v) => this.test && v.taskId === this.test.tasks[0].task_id) : null;
3336
+ y && S === -1 && (y.tasks.push({
3337
3337
  taskId: this.test.tasks[0].task_id,
3338
3338
  started: this.app.timestamp()
3339
- }), (u = this.signalManager) == null || u.setDurations(v)), (p = this.signalManager) == null || p.signalTask(this.test.tasks[0].task_id, "begin");
3339
+ }), (u = this.signalManager) == null || u.setDurations(y)), (p = this.signalManager) == null || p.signalTask(this.test.tasks[0].task_id, "begin");
3340
3340
  }
3341
3341
  this.showTaskSection(), o.removeChild(a);
3342
3342
  }, n;
@@ -3347,14 +3347,14 @@ class uo {
3347
3347
  fontSize: "13px",
3348
3348
  fontWeight: "500",
3349
3349
  lineHeight: "auto"
3350
- }, "Tasks"), r = z("div", "icon", ps, "-"), o = z("div", "content", je), l = z("div", "pagination", Yr), a = z("div", "taskCard", vs), d = z("div", "taskText", ys), c = z("div", "taskDescription", Zr), u = z("div", "taskButtons", to), p = z("div", "taskText", ys);
3350
+ }, "Tasks"), r = z("div", "icon", ps, "-"), o = z("div", "content", je), l = z("div", "pagination", Yr), a = z("div", "taskCard", ys), d = z("div", "taskText", vs), c = z("div", "taskDescription", Zr), u = z("div", "taskButtons", to), p = z("div", "taskText", vs);
3351
3351
  p.textContent = "Your answer";
3352
- const v = z("textarea", "taskDescription", {
3352
+ const y = z("textarea", "taskDescription", {
3353
3353
  resize: "vertical"
3354
- }), S = z("div", "inputArea", vs);
3355
- S.append(p, v);
3356
- const y = z("div", "closePanelButton", pi, "Collapse Panel"), T = z("div", "nextButton", eo, "Done, Next");
3357
- s.append(i, r), a.append(d, c), u.append(y, T), o.append(l, a, S, u), n.append(s, o);
3354
+ }), S = z("div", "inputArea", ys);
3355
+ S.append(p, y);
3356
+ const v = z("div", "closePanelButton", pi, "Collapse Panel"), T = z("div", "nextButton", eo, "Done, Next");
3357
+ s.append(i, r), a.append(d, c), u.append(v, T), o.append(l, a, S, u), n.append(s, o);
3358
3358
  const A = () => {
3359
3359
  const k = e[this.currentTaskIndex];
3360
3360
  d.textContent = k.title, c.textContent = k.description, k.allow_typing ? S.style.display = "flex" : S.style.display = "none";
@@ -3387,10 +3387,10 @@ class uo {
3387
3387
  O && Object.assign(O.style, Qr);
3388
3388
  }
3389
3389
  };
3390
- return s.onclick = B, y.onclick = this.collapseWidget, T.onclick = () => {
3390
+ return s.onclick = B, v.onclick = this.collapseWidget, T.onclick = () => {
3391
3391
  var N, O, L, I;
3392
- const k = e[this.currentTaskIndex].allow_typing ? v.value : void 0;
3393
- if (v.value = "", (N = this.signalManager) == null || N.signalTask(e[this.currentTaskIndex].task_id, "done", k), this.currentTaskIndex < e.length - 1) {
3392
+ const k = e[this.currentTaskIndex].allow_typing ? y.value : void 0;
3393
+ if (y.value = "", (N = this.signalManager) == null || N.signalTask(e[this.currentTaskIndex].task_id, "done", k), this.currentTaskIndex < e.length - 1) {
3394
3394
  this.currentTaskIndex++, A();
3395
3395
  const E = (O = this.signalManager) == null ? void 0 : O.getDurations();
3396
3396
  E && E.tasks.findIndex((P) => P.taskId === e[this.currentTaskIndex].task_id) === -1 && (E.tasks.push({
@@ -3551,7 +3551,7 @@ class bo {
3551
3551
  }, this.level = e;
3552
3552
  }
3553
3553
  }
3554
- class vo {
3554
+ class yo {
3555
3555
  constructor(e) {
3556
3556
  this.node_id = e, this.nodes = [], this.totalNodeAmount = 0, this.nodeCallbacks = [], this.elementListeners = /* @__PURE__ */ new Map(), this.nextNodeId = 0, this.scanTree = (n) => {
3557
3557
  this.nodes.forEach((s) => n(s));
@@ -3675,7 +3675,7 @@ class jn {
3675
3675
  }
3676
3676
  sendNodeAttribute(e, n, s, i) {
3677
3677
  if (In(n)) {
3678
- s.substr(0, 6) === "xlink:" && (s = s.substr(6)), i === null ? this.app.send(rs(e, s)) : s === "href" ? (i.length > 1e5 && (i = ""), this.app.send(yn(e, s, i, this.app.getBaseHref()))) : this.app.attributeSender.sendSetAttribute(e, s, i);
3678
+ s.substr(0, 6) === "xlink:" && (s = s.substr(6)), i === null ? this.app.send(rs(e, s)) : s === "href" ? (i.length > 1e5 && (i = ""), this.app.send(vn(e, s, i, this.app.getBaseHref()))) : this.app.attributeSender.sendSetAttribute(e, s, i);
3679
3679
  return;
3680
3680
  }
3681
3681
  if (!(s === "src" || s === "srcset" || s === "integrity" || s === "crossorigin" || s === "autocomplete" || s.substr(0, 2) === "on") && !(s === "value" && Z(n, "input") && n.type !== "button" && n.type !== "reset" && n.type !== "submit")) {
@@ -3684,7 +3684,7 @@ class jn {
3684
3684
  return;
3685
3685
  }
3686
3686
  if (s === "style" || s === "href" && Z(n, "link")) {
3687
- this.app.send(yn(e, s, i, this.app.getBaseHref()));
3687
+ this.app.send(vn(e, s, i, this.app.getBaseHref()));
3688
3688
  return;
3689
3689
  }
3690
3690
  (s === "href" || i.length > 1e5) && (i = ""), this.app.attributeSender.sendSetAttribute(e, s, i);
@@ -3850,7 +3850,7 @@ class xs extends jn {
3850
3850
  });
3851
3851
  }
3852
3852
  }
3853
- class yo extends jn {
3853
+ class vo extends jn {
3854
3854
  observe(e) {
3855
3855
  const n = e.shadowRoot, s = this.app.nodes.getID(e);
3856
3856
  !n || s === void 0 || this.observeRoot(n, (i) => {
@@ -3934,7 +3934,7 @@ class So extends jn {
3934
3934
  e.addEventListener("load", s), s();
3935
3935
  }
3936
3936
  handleShadowRoot(e) {
3937
- const n = new yo(this.app);
3937
+ const n = new vo(this.app);
3938
3938
  this.shadowRootObservers.push(n), n.observe(e.host);
3939
3939
  }
3940
3940
  observe() {
@@ -4180,7 +4180,7 @@ let No = class {
4180
4180
  const a = location.hostname.split(".").slice(-2).join("_");
4181
4181
  this.bc = new BroadcastChannel(`rick_${a}`);
4182
4182
  }
4183
- this.revID = this.options.revID, this.localStorage = this.options.localStorage ?? window.localStorage, this.sessionStorage = this.options.sessionStorage ?? window.sessionStorage, this.sanitizer = new ko(this, s), this.nodes = new vo(this.options.node_id), this.observer = new So(this, s), this.ticker = new Io(this), this.ticker.attach(() => this.commit()), this.debug = new bo(this.options.__debug__), this.session = new To(this, this.options), this.attributeSender = new Yi(this, !!this.options.disableStringDict), this.featureFlags = new er(this), this.tagWatcher = new $r(this.sessionStorage, this.debug.error, (a) => {
4183
+ this.revID = this.options.revID, this.localStorage = this.options.localStorage ?? window.localStorage, this.sessionStorage = this.options.sessionStorage ?? window.sessionStorage, this.sanitizer = new ko(this, s), this.nodes = new yo(this.options.node_id), this.observer = new So(this, s), this.ticker = new Io(this), this.ticker.attach(() => this.commit()), this.debug = new bo(this.options.__debug__), this.session = new To(this, this.options), this.attributeSender = new Yi(this, !!this.options.disableStringDict), this.featureFlags = new er(this), this.tagWatcher = new $r(this.sessionStorage, this.debug.error, (a) => {
4184
4184
  this.send(zr(a));
4185
4185
  }), this.session.attachUpdateCallback(({ userID: a, metadata: d }) => {
4186
4186
  a != null && this.send(Er(a)), d != null && Object.entries(d).forEach(([c, u]) => this.send(os(c, u)));
@@ -4206,11 +4206,11 @@ let No = class {
4206
4206
  const d = (c) => {
4207
4207
  const { data: u } = c;
4208
4208
  if (u.line === he.iframeSignal) {
4209
- const p = u.domain, v = Array.from(document.querySelectorAll("iframe"));
4210
- this.pageFrames = v, (async () => {
4211
- let y = 0;
4212
- for (; y < 10; ) {
4213
- const T = this.checkNodeId(v, p);
4209
+ const p = u.domain, y = Array.from(document.querySelectorAll("iframe"));
4210
+ this.pageFrames = y, (async () => {
4211
+ let v = 0;
4212
+ for (; v < 10; ) {
4213
+ const T = this.checkNodeId(y, p);
4214
4214
  if (T) {
4215
4215
  this.waitStarted().then(() => {
4216
4216
  var D;
@@ -4224,30 +4224,30 @@ let No = class {
4224
4224
  frameOrderNumber: a
4225
4225
  };
4226
4226
  this.debug.log("iframe_data", B), (D = c.source) == null || D.postMessage(B, "*");
4227
- }).catch(console.error), y = 10;
4227
+ }).catch(console.error), v = 10;
4228
4228
  break;
4229
4229
  }
4230
- y++, await _o(100);
4230
+ v++, await _o(100);
4231
4231
  }
4232
4232
  })();
4233
4233
  }
4234
4234
  if (u.line === he.iframeBatch) {
4235
- const v = u.messages.map((S) => {
4235
+ const y = u.messages.map((S) => {
4236
4236
  if (S[0] === 20) {
4237
- let y = S;
4237
+ let v = S;
4238
4238
  return this.pageFrames.forEach((T) => {
4239
4239
  if (T.dataset.domain === c.data.domain) {
4240
4240
  const [A, B, D] = S, { left: k, top: N } = T.getBoundingClientRect();
4241
- y = [A, B + k, D + N];
4241
+ v = [A, B + k, D + N];
4242
4242
  }
4243
- }), y;
4243
+ }), v;
4244
4244
  }
4245
4245
  if (S[0] === 68) {
4246
- let y = S;
4246
+ let v = S;
4247
4247
  return this.pageFrames.forEach((T) => {
4248
4248
  if (T.dataset.domain === c.data.domain) {
4249
4249
  const [A, B, D, k, N, O, L] = S, { left: I, top: E, width: P, height: V } = T.getBoundingClientRect(), j = document.documentElement.scrollWidth, q = document.documentElement.scrollHeight, C = O / 100 * P + I, F = L / 100 * V + E, G = C / j, K = F / q;
4250
- y = [
4250
+ v = [
4251
4251
  A,
4252
4252
  B,
4253
4253
  D,
@@ -4257,11 +4257,11 @@ let No = class {
4257
4257
  Math.round(K * 1e3) / 10
4258
4258
  ];
4259
4259
  }
4260
- }), y;
4260
+ }), v;
4261
4261
  }
4262
4262
  return S;
4263
4263
  });
4264
- this.messages.push(...v);
4264
+ this.messages.push(...y);
4265
4265
  }
4266
4266
  };
4267
4267
  window.addEventListener("message", d), this.attachStopCallback(() => {
@@ -4522,7 +4522,7 @@ let No = class {
4522
4522
  }, 30 * s), r();
4523
4523
  }
4524
4524
  async setupConditionalStart(e) {
4525
- var p, v;
4525
+ var p, y;
4526
4526
  this.conditionsManager = new Qi(this, e);
4527
4527
  const n = await fetch(this.options.ingestPoint + "/v1/web/start", {
4528
4528
  method: "POST",
@@ -4563,7 +4563,7 @@ let No = class {
4563
4563
  userState: d
4564
4564
  });
4565
4565
  const u = { sessionToken: s, userUUID: "", sessionID: "" };
4566
- this.startCallbacks.forEach((S) => S(u)), await ((p = this.conditionsManager) == null ? void 0 : p.fetchConditions(c, s)), await this.featureFlags.reloadFlags(s), await this.tagWatcher.fetchTags(this.options.ingestPoint, s), (v = this.conditionsManager) == null || v.processFlags(this.featureFlags.flags);
4566
+ this.startCallbacks.forEach((S) => S(u)), await ((p = this.conditionsManager) == null ? void 0 : p.fetchConditions(c, s)), await this.featureFlags.reloadFlags(s), await this.tagWatcher.fetchTags(this.options.ingestPoint, s), (y = this.conditionsManager) == null || y.processFlags(this.featureFlags.flags);
4567
4567
  }
4568
4568
  /**
4569
4569
  * Starts offline session recording
@@ -4620,7 +4620,7 @@ let No = class {
4620
4620
  * @reject {string} - error message
4621
4621
  * */
4622
4622
  async uploadOfflineRecording() {
4623
- var p, v;
4623
+ var p, y;
4624
4624
  this.stop(!1);
4625
4625
  const e = ge();
4626
4626
  (p = this.worker) == null || p.postMessage({
@@ -4650,7 +4650,7 @@ let No = class {
4650
4650
  timezone: cn()
4651
4651
  })
4652
4652
  }), { token: s, userBrowser: i, userCity: r, userCountry: o, userDevice: l, userOS: a, userState: d, beaconSizeLimit: c, projectID: u } = await n.json();
4653
- for ((v = this.worker) == null || v.postMessage({
4653
+ for ((y = this.worker) == null || y.postMessage({
4654
4654
  type: "auth",
4655
4655
  token: s,
4656
4656
  beaconSizeLimit: c
@@ -4726,11 +4726,11 @@ let No = class {
4726
4726
  userUUID: c,
4727
4727
  projectID: u,
4728
4728
  beaconSizeLimit: p,
4729
- compressionThreshold: v,
4729
+ compressionThreshold: y,
4730
4730
  // how big the batch should be before we decide to compress it
4731
4731
  delay: S,
4732
4732
  // derived from token
4733
- sessionID: y,
4733
+ sessionID: v,
4734
4734
  // derived from token
4735
4735
  startTimestamp: T,
4736
4736
  // real startTS (server time), derived from sessionID
@@ -4745,7 +4745,7 @@ let No = class {
4745
4745
  canvasFPS: E,
4746
4746
  assistOnly: P
4747
4747
  } = await a.json();
4748
- if (typeof d != "string" || typeof c != "string" || typeof T != "number" && typeof T < "u" || typeof y != "string" || typeof S != "number" || typeof p != "number" && typeof p < "u") {
4748
+ if (typeof d != "string" || typeof c != "string" || typeof T != "number" && typeof T < "u" || typeof v != "string" || typeof S != "number" || typeof p != "number" && typeof p < "u") {
4749
4749
  const C = `Incorrect server response: ${JSON.stringify(a)}`;
4750
4750
  return this.signalError(C, []), _e(C);
4751
4751
  }
@@ -4757,15 +4757,15 @@ let No = class {
4757
4757
  userOS: N,
4758
4758
  userState: O
4759
4759
  }), this.session.assign({
4760
- sessionID: y,
4760
+ sessionID: v,
4761
4761
  timestamp: T || r,
4762
4762
  projectID: u
4763
4763
  }), P ? (this.socketMode = !0, this.worker.postMessage("stop")) : this.worker.postMessage({
4764
4764
  type: "auth",
4765
4765
  token: d,
4766
4766
  beaconSizeLimit: p
4767
- }), !l && d === o && (this.debug.log("continuing session on new tab", this.session.getTabId()), this.send(ut(this.session.getTabId()))), Object.entries(this.session.getInfo().metadata).forEach(([C, F]) => this.send(os(C, F))), this.localStorage.setItem(this.options.local_uuid_key, c), this.compressionThreshold = v;
4768
- const V = { sessionToken: d, userUUID: c, sessionID: y };
4767
+ }), !l && d === o && (this.debug.log("continuing session on new tab", this.session.getTabId()), this.send(ut(this.session.getTabId()))), Object.entries(this.session.getInfo().metadata).forEach(([C, F]) => this.send(os(C, F))), this.localStorage.setItem(this.options.local_uuid_key, c), this.compressionThreshold = y;
4768
+ const V = { sessionToken: d, userUUID: c, sessionID: v };
4769
4769
  if (this.startCallbacks.forEach((C) => C(V)), this.featureFlags.reloadFlags(), await this.tagWatcher.fetchTags(this.options.ingestPoint, d), this.activityState = Q.Active, L && !this.options.canvas.disableCanvas && (this.canvasRecorder = this.canvasRecorder ?? new po(this, {
4770
4770
  fps: E,
4771
4771
  quality: I,
@@ -4944,8 +4944,8 @@ function Lo(t, e) {
4944
4944
  t.attachStartCallback(r), t.ticker.attach(r, 33, !1);
4945
4945
  const o = (a, d) => {
4946
4946
  const c = {
4947
- apply: function(u, p, v) {
4948
- Reflect.apply(u, d, v), i = i + 1, !(i > n.consoleThrottling) && s(u.name, v);
4947
+ apply: function(u, p, y) {
4948
+ Reflect.apply(u, d, y), i = i + 1, !(i > n.consoleThrottling) && s(u.name, y);
4949
4949
  }
4950
4950
  };
4951
4951
  n.consoleMethods.forEach((u) => {
@@ -4959,52 +4959,52 @@ function Lo(t, e) {
4959
4959
  }, l = t.safe((a) => o(a.console, a));
4960
4960
  l(window), t.observer.attachContextCallback(l);
4961
4961
  }
4962
- var vi = { exports: {} }, ln = { exports: {} }, Is;
4962
+ var yi = { exports: {} }, ln = { exports: {} }, Is;
4963
4963
  function Fo() {
4964
4964
  return Is || (Is = 1, function(t, e) {
4965
4965
  (function(n, s) {
4966
4966
  t.exports = s();
4967
4967
  })(qe, function() {
4968
- function n(y) {
4969
- return !isNaN(parseFloat(y)) && isFinite(y);
4968
+ function n(v) {
4969
+ return !isNaN(parseFloat(v)) && isFinite(v);
4970
4970
  }
4971
- function s(y) {
4972
- return y.charAt(0).toUpperCase() + y.substring(1);
4971
+ function s(v) {
4972
+ return v.charAt(0).toUpperCase() + v.substring(1);
4973
4973
  }
4974
- function i(y) {
4974
+ function i(v) {
4975
4975
  return function() {
4976
- return this[y];
4976
+ return this[v];
4977
4977
  };
4978
4978
  }
4979
4979
  var r = ["isConstructor", "isEval", "isNative", "isToplevel"], o = ["columnNumber", "lineNumber"], l = ["fileName", "functionName", "source"], a = ["args"], d = ["evalOrigin"], c = r.concat(o, l, a, d);
4980
- function u(y) {
4981
- if (y)
4980
+ function u(v) {
4981
+ if (v)
4982
4982
  for (var T = 0; T < c.length; T++)
4983
- y[c[T]] !== void 0 && this["set" + s(c[T])](y[c[T]]);
4983
+ v[c[T]] !== void 0 && this["set" + s(c[T])](v[c[T]]);
4984
4984
  }
4985
4985
  u.prototype = {
4986
4986
  getArgs: function() {
4987
4987
  return this.args;
4988
4988
  },
4989
- setArgs: function(y) {
4990
- if (Object.prototype.toString.call(y) !== "[object Array]")
4989
+ setArgs: function(v) {
4990
+ if (Object.prototype.toString.call(v) !== "[object Array]")
4991
4991
  throw new TypeError("Args must be an Array");
4992
- this.args = y;
4992
+ this.args = v;
4993
4993
  },
4994
4994
  getEvalOrigin: function() {
4995
4995
  return this.evalOrigin;
4996
4996
  },
4997
- setEvalOrigin: function(y) {
4998
- if (y instanceof u)
4999
- this.evalOrigin = y;
5000
- else if (y instanceof Object)
5001
- this.evalOrigin = new u(y);
4997
+ setEvalOrigin: function(v) {
4998
+ if (v instanceof u)
4999
+ this.evalOrigin = v;
5000
+ else if (v instanceof Object)
5001
+ this.evalOrigin = new u(v);
5002
5002
  else
5003
5003
  throw new TypeError("Eval Origin must be an Object or StackFrame");
5004
5004
  },
5005
5005
  toString: function() {
5006
- var y = this.getFileName() || "", T = this.getLineNumber() || "", A = this.getColumnNumber() || "", B = this.getFunctionName() || "";
5007
- return this.getIsEval() ? y ? "[eval] (" + y + ":" + T + ":" + A + ")" : "[eval]:" + T + ":" + A : B ? B + " (" + y + ":" + T + ":" + A + ")" : y + ":" + T + ":" + A;
5006
+ var v = this.getFileName() || "", T = this.getLineNumber() || "", A = this.getColumnNumber() || "", B = this.getFunctionName() || "";
5007
+ return this.getIsEval() ? v ? "[eval] (" + v + ":" + T + ":" + A + ")" : "[eval]:" + T + ":" + A : B ? B + " (" + v + ":" + T + ":" + A + ")" : v + ":" + T + ":" + A;
5008
5008
  }
5009
5009
  }, u.fromString = function(T) {
5010
5010
  var A = T.indexOf("("), B = T.lastIndexOf(")"), D = T.substring(0, A), k = T.substring(A + 1, B).split(","), N = T.substring(B + 1);
@@ -5019,23 +5019,23 @@ function Fo() {
5019
5019
  });
5020
5020
  };
5021
5021
  for (var p = 0; p < r.length; p++)
5022
- u.prototype["get" + s(r[p])] = i(r[p]), u.prototype["set" + s(r[p])] = /* @__PURE__ */ function(y) {
5022
+ u.prototype["get" + s(r[p])] = i(r[p]), u.prototype["set" + s(r[p])] = /* @__PURE__ */ function(v) {
5023
5023
  return function(T) {
5024
- this[y] = !!T;
5024
+ this[v] = !!T;
5025
5025
  };
5026
5026
  }(r[p]);
5027
- for (var v = 0; v < o.length; v++)
5028
- u.prototype["get" + s(o[v])] = i(o[v]), u.prototype["set" + s(o[v])] = /* @__PURE__ */ function(y) {
5027
+ for (var y = 0; y < o.length; y++)
5028
+ u.prototype["get" + s(o[y])] = i(o[y]), u.prototype["set" + s(o[y])] = /* @__PURE__ */ function(v) {
5029
5029
  return function(T) {
5030
5030
  if (!n(T))
5031
- throw new TypeError(y + " must be a Number");
5032
- this[y] = Number(T);
5031
+ throw new TypeError(v + " must be a Number");
5032
+ this[v] = Number(T);
5033
5033
  };
5034
- }(o[v]);
5034
+ }(o[y]);
5035
5035
  for (var S = 0; S < l.length; S++)
5036
- u.prototype["get" + s(l[S])] = i(l[S]), u.prototype["set" + s(l[S])] = /* @__PURE__ */ function(y) {
5036
+ u.prototype["get" + s(l[S])] = i(l[S]), u.prototype["set" + s(l[S])] = /* @__PURE__ */ function(v) {
5037
5037
  return function(T) {
5038
- this[y] = String(T);
5038
+ this[v] = String(T);
5039
5039
  };
5040
5040
  }(l[S]);
5041
5041
  return u;
@@ -5079,12 +5079,12 @@ function Fo() {
5079
5079
  c.indexOf("(eval ") > -1 && (c = c.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(,.*$)/g, ""));
5080
5080
  var u = c.replace(/^\s+/, "").replace(/\(eval code/g, "(").replace(/^.*?\s+/, ""), p = u.match(/ (\(.+\)$)/);
5081
5081
  u = p ? u.replace(p[0], "") : u;
5082
- var v = this.extractLocation(p ? p[1] : u), S = p && u || void 0, y = ["eval", "<anonymous>"].indexOf(v[0]) > -1 ? void 0 : v[0];
5082
+ var y = this.extractLocation(p ? p[1] : u), S = p && u || void 0, v = ["eval", "<anonymous>"].indexOf(y[0]) > -1 ? void 0 : y[0];
5083
5083
  return new s({
5084
5084
  functionName: S,
5085
- fileName: y,
5086
- lineNumber: v[1],
5087
- columnNumber: v[2],
5085
+ fileName: v,
5086
+ lineNumber: y[1],
5087
+ columnNumber: y[2],
5088
5088
  source: c
5089
5089
  });
5090
5090
  }, this);
@@ -5099,9 +5099,9 @@ function Fo() {
5099
5099
  return new s({
5100
5100
  functionName: c
5101
5101
  });
5102
- var u = /((.*".+"[^@]*)?[^@]*)(?:@)/, p = c.match(u), v = p && p[1] ? p[1] : void 0, S = this.extractLocation(c.replace(u, ""));
5102
+ var u = /((.*".+"[^@]*)?[^@]*)(?:@)/, p = c.match(u), y = p && p[1] ? p[1] : void 0, S = this.extractLocation(c.replace(u, ""));
5103
5103
  return new s({
5104
- functionName: v,
5104
+ functionName: y,
5105
5105
  fileName: S[0],
5106
5106
  lineNumber: S[1],
5107
5107
  columnNumber: S[2],
@@ -5117,7 +5117,7 @@ function Fo() {
5117
5117
  },
5118
5118
  parseOpera9: function(a) {
5119
5119
  for (var d = /Line (\d+).*script (?:in )?(\S+)/i, c = a.message.split(`
5120
- `), u = [], p = 2, v = c.length; p < v; p += 2) {
5120
+ `), u = [], p = 2, y = c.length; p < y; p += 2) {
5121
5121
  var S = d.exec(c[p]);
5122
5122
  S && u.push(new s({
5123
5123
  fileName: S[2],
@@ -5129,7 +5129,7 @@ function Fo() {
5129
5129
  },
5130
5130
  parseOpera10: function(a) {
5131
5131
  for (var d = /Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i, c = a.stacktrace.split(`
5132
- `), u = [], p = 0, v = c.length; p < v; p += 2) {
5132
+ `), u = [], p = 0, y = c.length; p < y; p += 2) {
5133
5133
  var S = d.exec(c[p]);
5134
5134
  S && u.push(
5135
5135
  new s({
@@ -5149,9 +5149,9 @@ function Fo() {
5149
5149
  return !!c.match(i) && !c.match(/^Error created at/);
5150
5150
  }, this);
5151
5151
  return d.map(function(c) {
5152
- var u = c.split("@"), p = this.extractLocation(u.pop()), v = u.shift() || "", S = v.replace(/<anonymous function(: (\w+))?>/, "$2").replace(/\([^)]*\)/g, "") || void 0, y;
5153
- v.match(/\(([^)]*)\)/) && (y = v.replace(/^[^(]+\(([^)]*)\)$/, "$1"));
5154
- var T = y === void 0 || y === "[arguments not available]" ? void 0 : y.split(",");
5152
+ var u = c.split("@"), p = this.extractLocation(u.pop()), y = u.shift() || "", S = y.replace(/<anonymous function(: (\w+))?>/, "$2").replace(/\([^)]*\)/g, "") || void 0, v;
5153
+ y.match(/\(([^)]*)\)/) && (v = y.replace(/^[^(]+\(([^)]*)\)$/, "$1"));
5154
+ var T = v === void 0 || v === "[arguments not available]" ? void 0 : v.split(",");
5155
5155
  return new s({
5156
5156
  functionName: S,
5157
5157
  args: T,
@@ -5164,8 +5164,8 @@ function Fo() {
5164
5164
  }
5165
5165
  };
5166
5166
  });
5167
- })(vi);
5168
- var Mo = vi.exports;
5167
+ })(yi);
5168
+ var Mo = yi.exports;
5169
5169
  const Po = /* @__PURE__ */ Gs(Mo);
5170
5170
  function Cs(t) {
5171
5171
  return [
@@ -5186,7 +5186,7 @@ function Et(t, e, n = {}) {
5186
5186
  }
5187
5187
  return xn(t.name, t.message, JSON.stringify(s), JSON.stringify(n));
5188
5188
  }
5189
- function yi(t, e = window, n = {}) {
5189
+ function vi(t, e = window, n = {}) {
5190
5190
  if (t instanceof ErrorEvent) {
5191
5191
  if (t.error instanceof Error)
5192
5192
  return Et(t.error, Cs(t), n);
@@ -5215,7 +5215,7 @@ function Bo(t, e) {
5215
5215
  }, e);
5216
5216
  function s(i) {
5217
5217
  function r(o) {
5218
- const l = yi(o, i);
5218
+ const l = vi(o, i);
5219
5219
  l != null && t.send(l);
5220
5220
  }
5221
5221
  t.attachEventListener(i, "unhandledrejection", r), t.attachEventListener(i, "error", r);
@@ -5242,7 +5242,7 @@ function Uo(t) {
5242
5242
  const c = d.split(d.match(/,\s+/) ? /,\s+/ : ",").map((u) => _s(u)).join(", ");
5243
5243
  t.attributeSender.sendSetAttribute(l, "srcset", c);
5244
5244
  }, s = function(l, a) {
5245
- a.src.length > nr && e(l, a), t.send(yn(l, "src", a.src, t.getBaseHref()));
5245
+ a.src.length > nr && e(l, a), t.send(vn(l, "src", a.src, t.getBaseHref()));
5246
5246
  }, i = t.safe(function(l) {
5247
5247
  const a = _s(l.src || "");
5248
5248
  ai(a) && t.send(fi(t.timestamp(), 0, 0, 0, 0, 0, a, "img", 0, !1));
@@ -5325,10 +5325,10 @@ function Go(t, e) {
5325
5325
  obscureInputDates: !1
5326
5326
  }, e);
5327
5327
  function s(c, u) {
5328
- let p = u.value, v = n.defaultInputMode;
5329
- u.type === "password" || t.sanitizer.isHidden(c) ? v = ze.Hidden : (t.sanitizer.isObscured(c) || v === ze.Plain && (n.obscureInputNumbers && u.type !== "date" && /\d\d\d\d/.test(p) || n.obscureInputDates && u.type === "date" || n.obscureInputEmails && (u.type === "email" || ~p.indexOf("@")))) && (v = ze.Obscured);
5328
+ let p = u.value, y = n.defaultInputMode;
5329
+ u.type === "password" || t.sanitizer.isHidden(c) ? y = ze.Hidden : (t.sanitizer.isObscured(c) || y === ze.Plain && (n.obscureInputNumbers && u.type !== "date" && /\d\d\d\d/.test(p) || n.obscureInputDates && u.type === "date" || n.obscureInputEmails && (u.type === "email" || ~p.indexOf("@")))) && (y = ze.Obscured);
5330
5330
  let S = 0;
5331
- switch (v) {
5331
+ switch (y) {
5332
5332
  case ze.Hidden:
5333
5333
  S = -1, p = "";
5334
5334
  break;
@@ -5339,8 +5339,8 @@ function Go(t, e) {
5339
5339
  return { value: p, mask: S };
5340
5340
  }
5341
5341
  function i(c, u) {
5342
- const { value: p, mask: v } = s(c, u);
5343
- t.send(vr(c, p, v));
5342
+ const { value: p, mask: y } = s(c, u);
5343
+ t.send(yr(c, p, y));
5344
5344
  }
5345
5345
  const r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
5346
5346
  t.attachStopCallback(() => {
@@ -5350,7 +5350,7 @@ function Go(t, e) {
5350
5350
  r.get(c) !== u.value && (r.set(c, u.value), i(c, u));
5351
5351
  }
5352
5352
  function a(c, u) {
5353
- o.get(c) !== u && (o.set(c, u), t.send(yr(c, u)));
5353
+ o.get(c) !== u && (o.set(c, u), t.send(vr(c, u)));
5354
5354
  }
5355
5355
  t.ticker.attach(() => {
5356
5356
  r.forEach((c, u) => {
@@ -5365,24 +5365,24 @@ function Go(t, e) {
5365
5365
  a(u, p.checked);
5366
5366
  });
5367
5367
  }, 3);
5368
- function d(c, u, p, v) {
5369
- const { value: S, mask: y } = s(c, u), T = wi(u);
5370
- t.send(Mr(c, S, y !== 0, T, p, v));
5368
+ function d(c, u, p, y) {
5369
+ const { value: S, mask: v } = s(c, u), T = wi(u);
5370
+ t.send(Mr(c, S, v !== 0, T, p, y));
5371
5371
  }
5372
5372
  t.nodes.attachNodeCallback(t.safe((c) => {
5373
5373
  const u = t.nodes.getID(c);
5374
5374
  if (u !== void 0) {
5375
5375
  if (Z(c, "select") && (i(u, c), t.nodes.attachNodeListener(c, "change", () => i(u, c))), $o(c)) {
5376
5376
  l(u, c);
5377
- let p = 0, v = 0, S = 0;
5378
- const y = () => {
5377
+ let p = 0, y = 0, S = 0;
5378
+ const v = () => {
5379
5379
  p = ge();
5380
5380
  }, T = () => {
5381
- v === 0 && p !== 0 && (v = ge() - p);
5381
+ y === 0 && p !== 0 && (y = ge() - p);
5382
5382
  }, A = () => {
5383
- p !== 0 && (S = ge() - p), d(u, c, v, S), v = 0, S = 0, p = 0;
5383
+ p !== 0 && (S = ge() - p), d(u, c, y, S), y = 0, S = 0, p = 0;
5384
5384
  };
5385
- t.nodes.attachNodeListener(c, "focus", y), t.nodes.attachNodeListener(c, "input", T), t.nodes.attachNodeListener(c, "change", A);
5385
+ t.nodes.attachNodeListener(c, "focus", v), t.nodes.attachNodeListener(c, "input", T), t.nodes.attachNodeListener(c, "change", A);
5386
5386
  return;
5387
5387
  }
5388
5388
  if (qo(c)) {
@@ -5619,16 +5619,16 @@ function ia(t, e) {
5619
5619
  }
5620
5620
  return "";
5621
5621
  }
5622
- let i = -1, r = -1, o = !1, l = null, a = 0, d = {}, c = 0, u = 0, p = 0, v = 0, S;
5623
- const y = 8e-3, T = 225;
5622
+ let i = -1, r = -1, o = !1, l = null, a = 0, d = {}, c = 0, u = 0, p = 0, y = 0, S;
5623
+ const v = 8e-3, T = 225;
5624
5624
  function A() {
5625
- const k = v / T;
5625
+ const k = y / T;
5626
5626
  if (!c) {
5627
5627
  c = k;
5628
5628
  return;
5629
5629
  }
5630
5630
  const N = (k - c) / T;
5631
- p > 4 && N > y && t.send(Pr(ge())), v = 0, p = 0, c = k;
5631
+ p > 4 && N > v && t.send(Pr(ge())), y = 0, p = 0, c = k;
5632
5632
  }
5633
5633
  t.attachStartCallback(() => {
5634
5634
  S = setInterval(() => A(), T);
@@ -5649,7 +5649,7 @@ function ia(t, e) {
5649
5649
  const [E, P] = t.observer.getDocumentOffset(k);
5650
5650
  i = I.clientX + E, r = I.clientY + P, o = !0;
5651
5651
  const V = Math.sign(I.movementX);
5652
- v += Math.abs(I.movementX) + Math.abs(I.movementY), V !== u && (u = V, p++);
5652
+ y += Math.abs(I.movementX) + Math.abs(I.movementY), V !== u && (u = V, p++);
5653
5653
  }, !1), L(k, "click", (I) => {
5654
5654
  const E = As(I.target, k);
5655
5655
  if (!I.clientX && !I.clientY || E === null)
@@ -5677,8 +5677,8 @@ function ra(t) {
5677
5677
  if (Z(r, "img") && (o = r.currentSrc || r.src), !o) {
5678
5678
  const S = getComputedStyle(r).getPropertyValue("background-image");
5679
5679
  if (S) {
5680
- const y = s.exec(S);
5681
- y !== null && (o = y[1], (o.startsWith('"') || o.startsWith("'")) && (o = o.substr(1, o.length - 2)));
5680
+ const v = s.exec(S);
5681
+ v !== null && (o = v[1], (o.startsWith('"') || o.startsWith("'")) && (o = o.substr(1, o.length - 2)));
5682
5682
  }
5683
5683
  }
5684
5684
  if (!o)
@@ -5689,8 +5689,8 @@ function ra(t) {
5689
5689
  const a = r.getBoundingClientRect(), d = Math.max(a.top, 0), c = Math.max(a.left, 0), u = Math.min(a.bottom, window.innerHeight || document.documentElement && document.documentElement.clientHeight || 0), p = Math.min(a.right, window.innerWidth || document.documentElement && document.documentElement.clientWidth || 0);
5690
5690
  if (u <= d || p <= c)
5691
5691
  continue;
5692
- const v = (u - d) * (p - c);
5693
- e.push({ time: l, area: v });
5692
+ const y = (u - d) * (p - c);
5693
+ e.push({ time: l, area: y });
5694
5694
  }
5695
5695
  return e;
5696
5696
  }
@@ -5767,26 +5767,26 @@ function aa(t, e) {
5767
5767
  navigationStart: c,
5768
5768
  requestStart: u,
5769
5769
  responseStart: p,
5770
- responseEnd: v,
5770
+ responseEnd: y,
5771
5771
  domContentLoadedEventStart: S,
5772
- domContentLoadedEventEnd: y,
5772
+ domContentLoadedEventEnd: v,
5773
5773
  loadEventStart: T,
5774
5774
  loadEventEnd: A
5775
5775
  } = performance.timing;
5776
- t.send(xr(u - c || 0, p - c || 0, v - c || 0, S - c || 0, y - c || 0, T - c || 0, A - c || 0, l, a));
5776
+ t.send(xr(u - c || 0, p - c || 0, y - c || 0, S - c || 0, v - c || 0, T - c || 0, A - c || 0, l, a));
5777
5777
  }
5778
5778
  }, 30);
5779
5779
  }
5780
5780
  if (n.capturePageRenderTimings) {
5781
- let d = 0, c = 0, u = 0, p = null, v = !1;
5781
+ let d = 0, c = 0, u = 0, p = null, y = !1;
5782
5782
  t.ticker.attach(() => {
5783
- if (v)
5783
+ if (y)
5784
5784
  return;
5785
5785
  const S = performance.now();
5786
- if (s !== null && (d = Math.max.apply(null, Object.keys(s).map((y) => s[y])), S - d > 1e3 && (p = ra(s), s = null)), u !== null && (S - u > 50 && (c = S), u = S - c > 5e3 ? null : S), p !== null && u === null || S > 3e4) {
5787
- v = !0, s = null;
5788
- const y = p === null ? 0 : oa(a || l, p), { domContentLoadedEventEnd: T, navigationStart: A } = performance.timing, B = u === null ? Math.max(c, a, T - A || 0) : 0;
5789
- t.send(kr(y, a > d ? a : d, B));
5786
+ if (s !== null && (d = Math.max.apply(null, Object.keys(s).map((v) => s[v])), S - d > 1e3 && (p = ra(s), s = null)), u !== null && (S - u > 50 && (c = S), u = S - c > 5e3 ? null : S), p !== null && u === null || S > 3e4) {
5787
+ y = !0, s = null;
5788
+ const v = p === null ? 0 : oa(a || l, p), { domContentLoadedEventEnd: T, navigationStart: A } = performance.timing, B = u === null ? Math.max(c, a, T - A || 0) : 0;
5789
+ t.send(kr(v, a > d ? a : d, B));
5790
5790
  }
5791
5791
  });
5792
5792
  }
@@ -5862,11 +5862,11 @@ function ha(t) {
5862
5862
  if (c && Symbol.iterator in c)
5863
5863
  for (const u of c) {
5864
5864
  let p = e.get(u);
5865
- const v = !p;
5866
- if (p || (p = Ii(), e.set(u, p)), a.includes(p) || t.send(ui(p, l)), v) {
5865
+ const y = !p;
5866
+ if (p || (p = Ii(), e.set(u, p)), a.includes(p) || t.send(ui(p, l)), y) {
5867
5867
  const S = u.cssRules;
5868
- for (let y = 0; y < S.length; y++)
5869
- t.send(Sn(p, S[y].cssText, y, t.getBaseHref()));
5868
+ for (let v = 0; v < S.length; v++)
5869
+ t.send(Sn(p, S[v].cssText, v, t.getBaseHref()));
5870
5870
  }
5871
5871
  d.push(p);
5872
5872
  }
@@ -6021,19 +6021,19 @@ function ga(t, e, n, s, i) {
6021
6021
  t.debug.log("Openreplay: attaching axios spy to instance", e);
6022
6022
  function r(p) {
6023
6023
  t.debug.log("Openreplay: capturing axios response data", p);
6024
- const { headers: v, data: S, method: y, url: T, baseURL: A } = p.config, { data: B, headers: D, status: k, response: N } = p, { data: O, headers: L, status: I } = N || {}, E = n.ignoreHeaders, P = Array.isArray(E) ? (U) => E.includes(U) : () => E;
6024
+ const { headers: y, data: S, method: v, url: T, baseURL: A } = p.config, { data: B, headers: D, status: k, response: N } = p, { data: O, headers: L, status: I } = N || {}, E = n.ignoreHeaders, P = Array.isArray(E) ? (U) => E.includes(U) : () => E;
6025
6025
  function V(U, b) {
6026
6026
  P(b[0]) || (U[b[0]] = b[1]);
6027
6027
  }
6028
6028
  let j = {}, q = {};
6029
- v.toJSON ? j = v.toJSON() : v instanceof Headers ? v.forEach((U, b) => V(j, [b, U])) : Array.isArray(v) ? v.forEach((U) => V(j, U)) : typeof v == "object" && Object.entries(v).forEach((U) => V(j, U));
6029
+ y.toJSON ? j = y.toJSON() : y instanceof Headers ? y.forEach((U, b) => V(j, [b, U])) : Array.isArray(y) ? y.forEach((U) => V(j, U)) : typeof y == "object" && Object.entries(y).forEach((U) => V(j, U));
6030
6030
  const C = L || D;
6031
6031
  C.toJSON ? q = C.toJSON() : C instanceof Headers ? C.forEach((U, b) => V(q, [b, U])) : Array.isArray(C) ? C.forEach((U) => V(q, U)) : typeof C == "object" && Object.entries(C).forEach(([U, b]) => {
6032
6032
  P(U) || (q[U] = b);
6033
6033
  });
6034
6034
  const F = s({
6035
6035
  url: T,
6036
- method: y || "",
6036
+ method: v || "",
6037
6037
  status: k || I || 0,
6038
6038
  request: {
6039
6039
  headers: j,
@@ -6049,12 +6049,12 @@ function ga(t, e, n, s, i) {
6049
6049
  return;
6050
6050
  }
6051
6051
  const G = p.config.__openreplay_timing, K = performance.now() - G;
6052
- t.debug.log("Openreplay: final req object", F), t.send(xt("xhr", String(y), String(F.url), i(F.request), i(F.response), F.status, G + Ve(), K, 0));
6052
+ t.debug.log("Openreplay: final req object", F), t.send(xt("xhr", String(v), String(F.url), i(F.request), i(F.response), F.status, G + Ve(), K, 0));
6053
6053
  }
6054
6054
  function o(p) {
6055
6055
  if (t.debug.log("Openreplay: capturing API request", p), p.__openreplay_timing = performance.now(), n.sessionTokenHeader) {
6056
- const v = typeof n.sessionTokenHeader == "string" ? n.sessionTokenHeader : "X-OpenReplay-Session-Token", S = t.getSessionToken();
6057
- S && p.headers.set(v, S);
6056
+ const y = typeof n.sessionTokenHeader == "string" ? n.sessionTokenHeader : "X-OpenReplay-Session-Token", S = t.getSessionToken();
6057
+ S && p.headers.set(y, S);
6058
6058
  }
6059
6059
  return p;
6060
6060
  }
@@ -6073,8 +6073,8 @@ function ga(t, e, n, s, i) {
6073
6073
  synchronous: !0
6074
6074
  });
6075
6075
  t.attachStopCallback(() => {
6076
- var p, v, S, y;
6077
- (v = (p = e.interceptors.request).eject) == null || v.call(p, c), (y = (S = e.interceptors.response).eject) == null || y.call(S, u);
6076
+ var p, y, S, v;
6077
+ (y = (p = e.interceptors.request).eject) == null || y.call(p, c), (v = (S = e.interceptors.response).eject) == null || v.call(S, u);
6078
6078
  });
6079
6079
  }
6080
6080
  function ma(t) {
@@ -6145,7 +6145,7 @@ const tt = (t, e) => {
6145
6145
  (t[0] === "{" || t[0] === "[") && (e = t);
6146
6146
  const n = t.split("&");
6147
6147
  n.length === 1 ? e = t : e = n.join(",");
6148
- } else if (ya(t)) {
6148
+ } else if (va(t)) {
6149
6149
  const n = [];
6150
6150
  for (const [s, i] of t)
6151
6151
  n.push(`${s}=${typeof i == "string" ? i : "[object Object]"}`);
@@ -6153,7 +6153,7 @@ const tt = (t, e) => {
6153
6153
  } else
6154
6154
  t instanceof Blob || t instanceof ReadableStream || t instanceof ArrayBuffer ? e = "byte data" : $n(t) ? e = t : e = `can't parse body ${typeof t}`;
6155
6155
  return e;
6156
- }, va = (t, e = {}) => {
6156
+ }, ya = (t, e = {}) => {
6157
6157
  $n(e) || (e = {});
6158
6158
  let n = t ? t.split("?") : [];
6159
6159
  if (n.shift(), n.length > 0) {
@@ -6172,7 +6172,7 @@ const tt = (t, e) => {
6172
6172
  function $n(t) {
6173
6173
  return t !== null && typeof t == "object";
6174
6174
  }
6175
- function ya(t) {
6175
+ function va(t) {
6176
6176
  return t == null || ArrayBuffer.isView(t) ? !1 : typeof Symbol < "u" && typeof t[Symbol.iterator] == "function";
6177
6177
  }
6178
6178
  function It(t) {
@@ -6341,7 +6341,7 @@ class ka {
6341
6341
  return (...s) => {
6342
6342
  var o, l;
6343
6343
  const i = s[0], r = s[1];
6344
- return this.item.method = i ? i.toUpperCase() : "GET", this.item.url = ((o = r.toString) == null ? void 0 : o.call(r)) || "", this.item.name = ((l = this.item.url) == null ? void 0 : l.replace(new RegExp("/*$"), "").split("/").pop()) ?? "", this.item.getData = va(this.item.url, {}), n.apply(e, s);
6344
+ return this.item.method = i ? i.toUpperCase() : "GET", this.item.url = ((o = r.toString) == null ? void 0 : o.call(r)) || "", this.item.name = ((l = this.item.url) == null ? void 0 : l.replace(new RegExp("/*$"), "").split("/").pop()) ?? "", this.item.getData = ya(this.item.url, {}), n.apply(e, s);
6345
6345
  };
6346
6346
  }
6347
6347
  getSend(e) {
@@ -6541,7 +6541,7 @@ function _a(t, e = {}) {
6541
6541
  });
6542
6542
  };
6543
6543
  c.fetch = p;
6544
- const v = c.XMLHttpRequest.prototype.open, S = c.XMLHttpRequest.prototype.setRequestHeader, y = c.XMLHttpRequest.prototype.send;
6544
+ const y = c.XMLHttpRequest.prototype.open, S = c.XMLHttpRequest.prototype.setRequestHeader, v = c.XMLHttpRequest.prototype.send;
6545
6545
  function T(D, k) {
6546
6546
  const N = this;
6547
6547
  o((L, I) => N.setRequestHeader(L, I));
@@ -6569,11 +6569,11 @@ function _a(t, e = {}) {
6569
6569
  }
6570
6570
  });
6571
6571
  F && t.send(xt("xhr", C, String(F.url), a(F.request), a(F.response), N.status, O + Ve(), P, 0));
6572
- })), v.apply(this, arguments);
6572
+ })), y.apply(this, arguments);
6573
6573
  }
6574
6574
  function A(D) {
6575
6575
  const k = un(this);
6576
- return k.body = D, y.apply(this, arguments);
6576
+ return k.body = D, v.apply(this, arguments);
6577
6577
  }
6578
6578
  function B(D, k) {
6579
6579
  if (!i(D)) {
@@ -6637,7 +6637,7 @@ class Aa {
6637
6637
  const c = Et(a, [], d);
6638
6638
  this.app.send(c);
6639
6639
  } else if (a instanceof ErrorEvent || "PromiseRejectionEvent" in window && a instanceof PromiseRejectionEvent) {
6640
- const c = yi(a, void 0, d);
6640
+ const c = vi(a, void 0, d);
6641
6641
  c != null && this.app.send(c);
6642
6642
  }
6643
6643
  }
@@ -7798,6 +7798,69 @@ class Ma {
7798
7798
  headerOccasion: "Anlass",
7799
7799
  headerOr: "oder"
7800
7800
  },
7801
+ ukr: {
7802
+ lang: "ukr",
7803
+ welcomeMessage: "Що ви збираєтесь їсти? Опишіть свою страву, і я порекомендую вам ідеальне вино.",
7804
+ noResultsFound: "Результатів не знайдено.",
7805
+ somethingWentWrong: "Вибачте, щось пішло не так.",
7806
+ chatButton1: "Знайти ідеальне поєднання",
7807
+ chatButton2: "Підібрати вино",
7808
+ chatButton3: "Отримати пораду",
7809
+ chatTitle: "Сомельє-помічник 🍷",
7810
+ chatSubtitle: "Опишіть свою страву і отримайте рекомендацію за 30 секунд",
7811
+ inputPlaceholder: "наприклад, Тунець із салатом",
7812
+ sendButton: "Підібрати",
7813
+ poweredBy: "Розроблено на основі",
7814
+ price: "Ціна",
7815
+ region: "Регіон",
7816
+ type: "Тип",
7817
+ reason: "Рекомендація",
7818
+ moreInfo: "Докладніше",
7819
+ winePairingIntro: "До цього вина підходять такі страви:",
7820
+ askForDinner: "Що ви хочете на вечерю?",
7821
+ clearChatButton: "Очистити чат",
7822
+ widgetTitle: "ЗНАЙДІТЬ ІДЕАЛЬНЕ ВИНО",
7823
+ widgetSubtitle: "Поділіться тим, що у вас на думці—їжа, настрій, бюджет чи подія—і наш AI-сомельє порекомендує вам ідеальне вино за секунди",
7824
+ searchPlaceholder: "Введіть ключове слово або опис",
7825
+ wineDetails: {
7826
+ reason: "Причина",
7827
+ price: "Ціна",
7828
+ region: "Регіон",
7829
+ type: "Тип",
7830
+ moreInfo: "Докладніше",
7831
+ sommSelection: "Вибір сомельє",
7832
+ code: "Код",
7833
+ buy: "Купити"
7834
+ },
7835
+ searchButton: "Пошук",
7836
+ priceRange: "Діапазон цін",
7837
+ wineColor: "Колір вина",
7838
+ intensity: "Інтенсивність",
7839
+ red: "Червоне",
7840
+ white: "Біле",
7841
+ rose: "Рожеве",
7842
+ light: "Легке",
7843
+ medium: "Середнє",
7844
+ full: "Повне",
7845
+ barTitle: "Закуски до вина",
7846
+ barSubtitle: "Виберіть страви нижче та натисніть «Надіслати»",
7847
+ barSendButton: "Надіслати",
7848
+ barResetButton: "Скинути",
7849
+ barName: "Назва бару",
7850
+ barNotesPlaceholder: "Додайте ваші побажання тут...",
7851
+ placeholderSuggestions: [
7852
+ "Вино до пасти",
7853
+ "Ідеально до риби",
7854
+ "Рекомендуємо для вечірки"
7855
+ ],
7856
+ headerLine1: "Поділіться будь-якими вашими думками —",
7857
+ headerLine2: "— і отримайте рекомендації щодо ідеального вина за секунди",
7858
+ headerMeal: "страва",
7859
+ headerMood: "настрій",
7860
+ headerBudget: "бюджет",
7861
+ headerOccasion: "подія",
7862
+ headerOr: "або"
7863
+ },
7801
7864
  ru: {
7802
7865
  lang: "ru",
7803
7866
  welcomeMessage: "Что вы планируете поесть? Напишите ваше блюдо, и я подберу идеальное вино к нему.",