wineater-bot 4.5.7 → 4.5.9

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.
@@ -9,7 +9,7 @@ const hl = "5";
9
9
  var Ao;
10
10
  typeof window < "u" && ((Ao = window.__svelte ?? (window.__svelte = {})).v ?? (Ao.v = /* @__PURE__ */ new Set())).add(hl);
11
11
  const dl = 1, fl = 2, pl = 16, gl = 1, ml = 2, vl = 4, wl = 8, bl = 16, yl = 1, Sl = 2, Se = Symbol(), Lo = "http://www.w3.org/1999/xhtml", mi = !1;
12
- var Zi = Array.isArray, _l = Array.prototype.indexOf, On = Array.prototype.includes, js = Array.from, kl = Object.defineProperty, bn = Object.getOwnPropertyDescriptor, Tl = Object.getOwnPropertyDescriptors, xl = Object.prototype, El = Array.prototype, Bo = Object.getPrototypeOf, Cr = Object.isExtensible;
12
+ var Zi = Array.isArray, _l = Array.prototype.indexOf, On = Array.prototype.includes, zs = Array.from, kl = Object.defineProperty, bn = Object.getOwnPropertyDescriptor, Tl = Object.getOwnPropertyDescriptors, xl = Object.prototype, El = Array.prototype, Bo = Object.getPrototypeOf, Cr = Object.isExtensible;
13
13
  const Il = () => {
14
14
  };
15
15
  function Cl(t) {
@@ -22,7 +22,7 @@ function Fo() {
22
22
  });
23
23
  return { promise: n, resolve: t, reject: e };
24
24
  }
25
- const Te = 2, ss = 4, zs = 8, Wo = 1 << 24, kt = 16, st = 32, hn = 64, vi = 128, Ve = 512, ye = 1024, xe = 2048, nt = 4096, Fe = 8192, yt = 16384, an = 32768, ln = 65536, Nr = 1 << 17, jo = 1 << 18, Fn = 1 << 19, Nl = 1 << 20, Rt = 1 << 25, cn = 65536, wi = 1 << 21, $i = 1 << 22, At = 1 << 23, nn = Symbol("$state"), Rl = Symbol("legacy props"), Dl = Symbol(""), Gt = new class extends Error {
25
+ const Te = 2, ss = 4, js = 8, Wo = 1 << 24, kt = 16, st = 32, hn = 64, vi = 128, Ve = 512, ye = 1024, xe = 2048, nt = 4096, Fe = 8192, yt = 16384, an = 32768, ln = 65536, Nr = 1 << 17, zo = 1 << 18, Fn = 1 << 19, Nl = 1 << 20, Rt = 1 << 25, cn = 65536, wi = 1 << 21, $i = 1 << 22, At = 1 << 23, nn = Symbol("$state"), Rl = Symbol("legacy props"), Dl = Symbol(""), Gt = new class extends Error {
26
26
  constructor() {
27
27
  super(...arguments);
28
28
  it(this, "name", "StaleReactionError");
@@ -53,10 +53,10 @@ function Fl() {
53
53
  function Wl(t) {
54
54
  throw new Error("https://svelte.dev/e/props_invalid_value");
55
55
  }
56
- function jl() {
56
+ function zl() {
57
57
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
58
58
  }
59
- function zl() {
59
+ function jl() {
60
60
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
61
61
  }
62
62
  function Ul() {
@@ -71,7 +71,7 @@ function ql() {
71
71
  function Vl() {
72
72
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
73
73
  }
74
- function zo(t) {
74
+ function jo(t) {
75
75
  return t === this.v;
76
76
  }
77
77
  function Gl(t, e) {
@@ -88,7 +88,7 @@ let me = null;
88
88
  function An(t) {
89
89
  me = t;
90
90
  }
91
- function jt(t, e = !1, n) {
91
+ function zt(t, e = !1, n) {
92
92
  me = {
93
93
  p: me,
94
94
  i: !1,
@@ -99,7 +99,7 @@ function jt(t, e = !1, n) {
99
99
  l: Wn && !e ? { s: null, u: null, $: [] } : null
100
100
  };
101
101
  }
102
- function zt(t) {
102
+ function jt(t) {
103
103
  var e = (
104
104
  /** @type {ComponentContext} */
105
105
  me
@@ -176,11 +176,11 @@ function Go(t, e, n) {
176
176
  t.f & xe ? e.add(t) : t.f & nt && n.add(t), Vo(t.deps), fe(t, ye);
177
177
  }
178
178
  const hs = /* @__PURE__ */ new Set();
179
- let j = null, bi = null, _e = null, Re = [], Us = null, yi = !1, Vn = !1;
180
- var kn, Tn, Qt, xn, es, En, Ct, ut, In, je, Si, _i, ki, Ko;
179
+ let z = null, bi = null, _e = null, Re = [], Us = null, yi = !1, Vn = !1;
180
+ var kn, Tn, Qt, xn, es, En, Ct, ut, In, ze, Si, _i, ki, Ko;
181
181
  const Tr = class Tr {
182
182
  constructor() {
183
- U(this, je);
183
+ U(this, ze);
184
184
  /**
185
185
  * The current values of any sources that are updated in this batch
186
186
  * They keys of this map are identical to `this.#previous`
@@ -270,14 +270,14 @@ const Tr = class Tr {
270
270
  Re = [], this.apply();
271
271
  var n = [], s = [];
272
272
  for (const r of e)
273
- be(this, je, _i).call(this, r, n, s);
274
- if (be(this, je, Si).call(this)) {
275
- be(this, je, ki).call(this, s), be(this, je, ki).call(this, n);
273
+ be(this, ze, _i).call(this, r, n, s);
274
+ if (be(this, ze, Si).call(this)) {
275
+ be(this, ze, ki).call(this, s), be(this, ze, ki).call(this, n);
276
276
  for (const [r, o] of v(this, ut))
277
277
  Qo(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, je, Ko).call(this), bi = this, j = null, Rr(s), Rr(n), v(this, En).clear(), v(this, Ct).clear(), bi = null, (i = v(this, es)) == null || i.resolve();
280
+ v(this, kn).clear(), v(this, Qt) === 0 && be(this, ze, Ko).call(this), bi = this, z = null, Rr(s), Rr(n), v(this, En).clear(), v(this, Ct).clear(), bi = null, (i = v(this, es)) == null || i.resolve();
281
281
  }
282
282
  _e = null;
283
283
  }
@@ -291,14 +291,14 @@ const Tr = class Tr {
291
291
  n !== Se && !this.previous.has(e) && this.previous.set(e, n), e.f & At || (this.current.set(e, e.v), _e == null || _e.set(e, e.v));
292
292
  }
293
293
  activate() {
294
- j = this, this.apply();
294
+ z = this, this.apply();
295
295
  }
296
296
  deactivate() {
297
- j === this && (j = null, _e = null);
297
+ z === this && (z = null, _e = null);
298
298
  }
299
299
  flush() {
300
300
  if (this.activate(), Re.length > 0) {
301
- if (Xo(), j !== null && j !== this)
301
+ if (Xo(), z !== null && z !== this)
302
302
  return;
303
303
  } else v(this, Qt) === 0 && this.process([]);
304
304
  this.deactivate();
@@ -320,7 +320,7 @@ const Tr = class Tr {
320
320
  */
321
321
  decrement(e) {
322
322
  W(this, Qt, v(this, Qt) - 1), e && W(this, xn, v(this, xn) - 1), !v(this, In) && (W(this, In, !0), Mt(() => {
323
- W(this, In, !1), be(this, je, Si).call(this) ? Re.length > 0 && this.flush() : this.revive();
323
+ W(this, In, !1), be(this, ze, Si).call(this) ? Re.length > 0 && this.flush() : this.revive();
324
324
  }));
325
325
  }
326
326
  revive() {
@@ -342,18 +342,18 @@ const Tr = class Tr {
342
342
  return (v(this, es) ?? W(this, es, Fo())).promise;
343
343
  }
344
344
  static ensure() {
345
- if (j === null) {
346
- const e = j = new Tr();
347
- hs.add(j), Vn || Mt(() => {
348
- j === e && e.flush();
345
+ if (z === null) {
346
+ const e = z = new Tr();
347
+ hs.add(z), Vn || Mt(() => {
348
+ z === e && e.flush();
349
349
  });
350
350
  }
351
- return j;
351
+ return z;
352
352
  }
353
353
  apply() {
354
354
  }
355
355
  };
356
- kn = new WeakMap(), Tn = new WeakMap(), Qt = new WeakMap(), xn = new WeakMap(), es = new WeakMap(), En = new WeakMap(), Ct = new WeakMap(), ut = new WeakMap(), In = new WeakMap(), je = new WeakSet(), Si = function() {
356
+ kn = new WeakMap(), Tn = new WeakMap(), Qt = new WeakMap(), xn = new WeakMap(), es = new WeakMap(), En = new WeakMap(), Ct = new WeakMap(), ut = new WeakMap(), In = new WeakMap(), ze = new WeakSet(), Si = function() {
357
357
  return this.is_fork || v(this, xn) > 0;
358
358
  }, /**
359
359
  * Traverse the effect tree, executing effects or stashing
@@ -418,15 +418,15 @@ ki = function(e) {
418
418
  for (const l of o)
419
419
  Yo(l, a, c, u);
420
420
  if (Re.length > 0) {
421
- j = r, r.apply();
421
+ z = r, r.apply();
422
422
  for (const l of Re)
423
- be(i = r, je, _i).call(i, l, [], []);
423
+ be(i = r, ze, _i).call(i, l, [], []);
424
424
  r.deactivate();
425
425
  }
426
426
  Re = s;
427
427
  }
428
428
  }
429
- j = null, _e = e;
429
+ z = null, _e = e;
430
430
  }
431
431
  v(this, ut).clear(), hs.delete(this);
432
432
  };
@@ -436,7 +436,7 @@ function Ql(t) {
436
436
  Vn = !0;
437
437
  try {
438
438
  for (var n; ; ) {
439
- if (Yl(), Re.length === 0 && (j == null || j.flush(), Re.length === 0))
439
+ if (Yl(), Re.length === 0 && (z == null || z.flush(), Re.length === 0))
440
440
  return Us = null, /** @type {T} */
441
441
  n;
442
442
  Xo();
@@ -532,14 +532,14 @@ function Jo(t, e, n) {
532
532
  }
533
533
  function et(t) {
534
534
  var e = Us = t, n = e.b;
535
- if (n != null && n.is_pending && t.f & (ss | zs | Wo) && !(t.f & an)) {
535
+ if (n != null && n.is_pending && t.f & (ss | js | Wo) && !(t.f & an)) {
536
536
  n.defer_effect(t);
537
537
  return;
538
538
  }
539
539
  for (; e.parent !== null; ) {
540
540
  e = e.parent;
541
541
  var s = e.f;
542
- if (yi && e === $ && s & kt && !(s & jo) && s & an)
542
+ if (yi && e === $ && s & kt && !(s & zo) && s & an)
543
543
  return;
544
544
  if (s & (hn | st)) {
545
545
  if (!(s & ye))
@@ -849,13 +849,13 @@ function oc(t, e, n, s) {
849
849
  c ? c.then(l) : l();
850
850
  }
851
851
  function ac() {
852
- var t = $, e = q, n = me, s = j;
852
+ var t = $, e = q, n = me, s = z;
853
853
  return function(r = !0) {
854
854
  gt(t), Xe(e), An(n), r && (s == null || s.activate());
855
855
  };
856
856
  }
857
857
  function Ei(t = !0) {
858
- gt(null), Xe(null), An(null), t && (j == null || j.deactivate());
858
+ gt(null), Xe(null), An(null), t && (z == null || z.deactivate());
859
859
  }
860
860
  function lc() {
861
861
  var t = (
@@ -864,7 +864,7 @@ function lc() {
864
864
  $.b
865
865
  ), e = (
866
866
  /** @type {Batch} */
867
- j
867
+ z
868
868
  ), n = t.is_rendered();
869
869
  return t.update_pending_count(1), e.increment(n), () => {
870
870
  t.update_pending_count(-1), e.decrement(n);
@@ -880,7 +880,7 @@ function Hs(t) {
880
880
  ctx: me,
881
881
  deps: null,
882
882
  effects: null,
883
- equals: zo,
883
+ equals: jo,
884
884
  f: e,
885
885
  fn: t,
886
886
  reactions: null,
@@ -917,7 +917,7 @@ function cc(t, e, n) {
917
917
  }
918
918
  var u = (
919
919
  /** @type {Batch} */
920
- j
920
+ z
921
921
  );
922
922
  if (o) {
923
923
  var l = lc();
@@ -993,11 +993,11 @@ function nr(t) {
993
993
  }
994
994
  function Zo(t) {
995
995
  var e = nr(t);
996
- if (!t.equals(e) && (t.wv = ma(), (!(j != null && j.is_fork) || t.deps === null) && (t.v = e, t.deps === null))) {
996
+ if (!t.equals(e) && (t.wv = ma(), (!(z != null && z.is_fork) || t.deps === null) && (t.v = e, t.deps === null))) {
997
997
  fe(t, ye);
998
998
  return;
999
999
  }
1000
- Bt || (_e !== null ? (sr() || j != null && j.is_fork) && _e.set(t, e) : er(t));
1000
+ Bt || (_e !== null ? (sr() || z != null && z.is_fork) && _e.set(t, e) : er(t));
1001
1001
  }
1002
1002
  function dc(t) {
1003
1003
  var e, n;
@@ -1019,7 +1019,7 @@ function un(t, e) {
1019
1019
  // TODO ideally we could skip this altogether, but it causes type errors
1020
1020
  v: t,
1021
1021
  reactions: null,
1022
- equals: zo,
1022
+ equals: jo,
1023
1023
  rv: 0,
1024
1024
  wv: 0
1025
1025
  };
@@ -1117,7 +1117,7 @@ function pt(t) {
1117
1117
  t,
1118
1118
  {
1119
1119
  defineProperty(a, c, u) {
1120
- (!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && jl();
1120
+ (!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && zl();
1121
1121
  var l = n.get(c);
1122
1122
  return l === void 0 ? o(() => {
1123
1123
  var h = /* @__PURE__ */ oe(u.value);
@@ -1222,7 +1222,7 @@ function pt(t) {
1222
1222
  return c;
1223
1223
  },
1224
1224
  setPrototypeOf() {
1225
- zl();
1225
+ jl();
1226
1226
  }
1227
1227
  }
1228
1228
  );
@@ -1375,7 +1375,7 @@ function sr() {
1375
1375
  return q !== null && !tt;
1376
1376
  }
1377
1377
  function ir(t) {
1378
- const e = Tt(zs, null, !1);
1378
+ const e = Tt(js, null, !1);
1379
1379
  return fe(e, ye), e.teardown = t, e;
1380
1380
  }
1381
1381
  function Xn(t) {
@@ -1412,11 +1412,11 @@ function kc(t) {
1412
1412
  return Tt($i | Fn, t, !0);
1413
1413
  }
1414
1414
  function rr(t, e = 0) {
1415
- return Tt(zs | e, t, !0);
1415
+ return Tt(js | e, t, !0);
1416
1416
  }
1417
1417
  function J(t, e = [], n = [], s = []) {
1418
1418
  oc(s, e, n, (i) => {
1419
- Tt(zs, () => t(...i.map(w)), !0);
1419
+ Tt(js, () => t(...i.map(w)), !0);
1420
1420
  });
1421
1421
  }
1422
1422
  function Gs(t, e = 0) {
@@ -1457,7 +1457,7 @@ function Tc(t) {
1457
1457
  }
1458
1458
  function Ae(t, e = !0) {
1459
1459
  var n = !1;
1460
- (e || t.f & jo) && t.nodes !== null && t.nodes.end !== null && (xc(
1460
+ (e || t.f & zo) && t.nodes !== null && t.nodes.end !== null && (xc(
1461
1461
  t.nodes.start,
1462
1462
  /** @type {TemplateNode} */
1463
1463
  t.nodes.end
@@ -1614,7 +1614,7 @@ function wa(t) {
1614
1614
  t.fn
1615
1615
  ), h = l();
1616
1616
  t.f |= an;
1617
- var d = t.deps, p = j == null ? void 0 : j.is_fork;
1617
+ var d = t.deps, p = z == null ? void 0 : z.is_fork;
1618
1618
  if (De !== null) {
1619
1619
  var f;
1620
1620
  if (p || Yn(t, Pe), d !== null && Pe > 0)
@@ -1968,12 +1968,12 @@ function Pc(t, { target: e, anchor: n, props: s = {}, events: i, context: r, int
1968
1968
  }
1969
1969
  },
1970
1970
  (p) => {
1971
- jt({});
1971
+ zt({});
1972
1972
  var f = (
1973
1973
  /** @type {ComponentContext} */
1974
1974
  me
1975
1975
  );
1976
- r && (f.c = r), i && (s.$$events = i), c = t(p, s) || {}, zt();
1976
+ r && (f.c = r), i && (s.$$events = i), c = t(p, s) || {}, jt();
1977
1977
  },
1978
1978
  a
1979
1979
  );
@@ -1992,7 +1992,7 @@ function Pc(t, { target: e, anchor: n, props: s = {}, events: i, context: r, int
1992
1992
  }
1993
1993
  }
1994
1994
  };
1995
- return d(js(Sa)), Ci.add(d), () => {
1995
+ return d(zs(Sa)), Ci.add(d), () => {
1996
1996
  var y;
1997
1997
  for (var p of h)
1998
1998
  for (const S of [e, document]) {
@@ -2056,7 +2056,7 @@ class ka {
2056
2056
  U(this, ns, () => {
2057
2057
  var e = (
2058
2058
  /** @type {Batch} */
2059
- j
2059
+ z
2060
2060
  );
2061
2061
  if (v(this, Ze).has(e)) {
2062
2062
  var n = (
@@ -2108,7 +2108,7 @@ class ka {
2108
2108
  ensure(e, n) {
2109
2109
  var s = (
2110
2110
  /** @type {Batch} */
2111
- j
2111
+ z
2112
2112
  ), i = ra();
2113
2113
  if (n && !v(this, ft).has(e) && !v(this, Be).has(e))
2114
2114
  if (i) {
@@ -2176,7 +2176,7 @@ function Fc(t, e, n) {
2176
2176
  /** @type {Set<EachOutroGroup>} */
2177
2177
  t.outrogroups
2178
2178
  );
2179
- Di(js(r.done)), d.delete(r), d.size === 0 && (t.outrogroups = null);
2179
+ Di(zs(r.done)), d.delete(r), d.size === 0 && (t.outrogroups = null);
2180
2180
  }
2181
2181
  } else
2182
2182
  o -= 1;
@@ -2219,7 +2219,7 @@ function Zn(t, e, n, s, i, r = null) {
2219
2219
  }
2220
2220
  var u = null, l = /* @__PURE__ */ tr(() => {
2221
2221
  var y = n();
2222
- return Zi(y) ? y : y == null ? [] : js(y);
2222
+ return Zi(y) ? y : y == null ? [] : zs(y);
2223
2223
  }), h, d = !0;
2224
2224
  function p() {
2225
2225
  m.fallback = u, Wc(m, h, o, e, s), u !== null && (h.length === 0 ? u.f & Rt ? (u.f ^= Rt, qn(u, null, o)) : ar(u) : sn(u, () => {
@@ -2231,10 +2231,10 @@ function Zn(t, e, n, s, i, r = null) {
2231
2231
  w(l);
2232
2232
  for (var y = h.length, S = /* @__PURE__ */ new Set(), _ = (
2233
2233
  /** @type {Batch} */
2234
- j
2234
+ z
2235
2235
  ), x = ra(), g = 0; g < y; g += 1) {
2236
2236
  var b = h[g], E = s(b, g), I = d ? null : a.get(E);
2237
- I ? (I.v && Mn(I.v, b), I.i && Mn(I.i, g), x && _.unskip_effect(I.e)) : (I = jc(
2237
+ I ? (I.v && Mn(I.v, b), I.i && Mn(I.i, g), x && _.unskip_effect(I.e)) : (I = zc(
2238
2238
  a,
2239
2239
  d ? o : Fr ?? (Fr = St()),
2240
2240
  b,
@@ -2302,7 +2302,7 @@ function Wc(t, e, n, s, i) {
2302
2302
  }
2303
2303
  if (t.outrogroups !== null) {
2304
2304
  for (const T of t.outrogroups)
2305
- T.pending.size === 0 && (Di(js(T.done)), (k = t.outrogroups) == null || k.delete(T));
2305
+ T.pending.size === 0 && (Di(zs(T.done)), (k = t.outrogroups) == null || k.delete(T));
2306
2306
  t.outrogroups.size === 0 && (t.outrogroups = null);
2307
2307
  }
2308
2308
  if (a !== null || c !== void 0) {
@@ -2319,7 +2319,7 @@ function Wc(t, e, n, s, i) {
2319
2319
  }
2320
2320
  }
2321
2321
  }
2322
- function jc(t, e, n, s, i, r, o, a) {
2322
+ function zc(t, e, n, s, i, r, o, a) {
2323
2323
  var c = o & dl ? o & pl ? un(n) : /* @__PURE__ */ fc(n, !1, !1) : null, u = o & fl ? un(i) : null;
2324
2324
  return {
2325
2325
  v: c,
@@ -2352,7 +2352,7 @@ function Wr(t, e, n, s, i) {
2352
2352
  var r = (a = e.$$slots) == null ? void 0 : a[n], o = !1;
2353
2353
  r === !0 && (r = e.children, o = !0), r === void 0 || r(t, o ? () => s : s);
2354
2354
  }
2355
- function zc(t, e, n) {
2355
+ function jc(t, e, n) {
2356
2356
  var s = new ka(t);
2357
2357
  Gs(() => {
2358
2358
  var i = e() ?? null;
@@ -2413,11 +2413,11 @@ function xa(t, e, n = !1) {
2413
2413
  if (!Zi(e))
2414
2414
  return ql();
2415
2415
  for (var s of t.options)
2416
- s.selected = e.includes(jr(s));
2416
+ s.selected = e.includes(zr(s));
2417
2417
  return;
2418
2418
  }
2419
2419
  for (s of t.options) {
2420
- var i = jr(s);
2420
+ var i = zr(s);
2421
2421
  if (gc(i, e)) {
2422
2422
  s.selected = !0;
2423
2423
  return;
@@ -2443,7 +2443,7 @@ function qc(t) {
2443
2443
  e.disconnect();
2444
2444
  });
2445
2445
  }
2446
- function jr(t) {
2446
+ function zr(t) {
2447
2447
  return "__value" in t ? t.__value : t.value;
2448
2448
  }
2449
2449
  const Vc = Symbol("is custom element"), Gc = Symbol("is html");
@@ -2464,11 +2464,11 @@ function Xc(t) {
2464
2464
  })
2465
2465
  );
2466
2466
  }
2467
- var zr = /* @__PURE__ */ new Map();
2467
+ var jr = /* @__PURE__ */ new Map();
2468
2468
  function Yc(t) {
2469
- var e = t.getAttribute("is") || t.nodeName, n = zr.get(e);
2469
+ var e = t.getAttribute("is") || t.nodeName, n = jr.get(e);
2470
2470
  if (n) return n;
2471
- zr.set(e, n = []);
2471
+ jr.set(e, n = []);
2472
2472
  for (var s, i = t, r = Element.prototype; r !== i; ) {
2473
2473
  s = Tl(i);
2474
2474
  for (var o in s)
@@ -2481,7 +2481,7 @@ function Jc(t, e, n = e) {
2481
2481
  var s = /* @__PURE__ */ new WeakSet();
2482
2482
  bc(t, "input", async (i) => {
2483
2483
  var r = i ? t.defaultValue : t.value;
2484
- if (r = si(t) ? ii(r) : r, n(r), j !== null && s.add(j), await Cc(), r !== (r = e())) {
2484
+ if (r = si(t) ? ii(r) : r, n(r), z !== null && s.add(z), await Cc(), r !== (r = e())) {
2485
2485
  var o = t.selectionStart, a = t.selectionEnd, c = t.value.length;
2486
2486
  if (t.value = r ?? "", a !== null) {
2487
2487
  var u = t.value.length;
@@ -2492,12 +2492,12 @@ function Jc(t, e, n = e) {
2492
2492
  // then use the updated value from the input instead.
2493
2493
  // If defaultValue is set, then value == defaultValue
2494
2494
  // TODO Svelte 6: remove input.value check and set to empty string?
2495
- as(e) == null && t.value && (n(si(t) ? ii(t.value) : t.value), j !== null && s.add(j)), rr(() => {
2495
+ as(e) == null && t.value && (n(si(t) ? ii(t.value) : t.value), z !== null && s.add(z)), rr(() => {
2496
2496
  var i = e();
2497
2497
  if (t === document.activeElement) {
2498
2498
  var r = (
2499
2499
  /** @type {Batch} */
2500
- bi ?? j
2500
+ bi ?? z
2501
2501
  );
2502
2502
  if (s.has(r))
2503
2503
  return;
@@ -2909,19 +2909,19 @@ var Ra = /* @__PURE__ */ Sn(Wt, 9, 0), Da = /* @__PURE__ */ Sn($n, 5, 0), hr = f
2909
2909
  ++I[_[k] & 31];
2910
2910
  for (var k = 0; k < b.length; ++k)
2911
2911
  ++I[b[k] & 31];
2912
- for (var T = ks(I, 7), M = T.t, V = T.l, z = 19; z > 4 && !M[Ai[z - 1]]; --z)
2912
+ for (var T = ks(I, 7), M = T.t, V = T.l, j = 19; j > 4 && !M[Ai[j - 1]]; --j)
2913
2913
  ;
2914
- var Q = u + 5 << 3, F = mn(i, Wt) + mn(r, $n) + o, L = mn(i, d) + mn(r, m) + o + 14 + 3 * z + mn(I, M) + 2 * I[16] + 3 * I[17] + 7 * I[18];
2914
+ var Q = u + 5 << 3, F = mn(i, Wt) + mn(r, $n) + o, L = mn(i, d) + mn(r, m) + o + 14 + 3 * j + mn(I, M) + 2 * I[16] + 3 * I[17] + 7 * I[18];
2915
2915
  if (c >= 0 && Q <= F && Q <= L)
2916
2916
  return dr(e, l, t.subarray(c, c + u));
2917
2917
  var X, Z, R, Y;
2918
2918
  if (ot(e, l, 1 + (L < F)), l += 2, L < F) {
2919
2919
  X = Sn(d, p, 0), Z = d, R = Sn(m, y, 0), Y = m;
2920
2920
  var N = Sn(M, V, 0);
2921
- ot(e, l, x - 257), ot(e, l + 5, E - 1), ot(e, l + 10, z - 4), l += 14;
2922
- for (var k = 0; k < z; ++k)
2921
+ ot(e, l, x - 257), ot(e, l + 5, E - 1), ot(e, l + 10, j - 4), l += 14;
2922
+ for (var k = 0; k < j; ++k)
2923
2923
  ot(e, l + 3 * k, M[Ai[k]]);
2924
- l += 3 * z;
2924
+ l += 3 * j;
2925
2925
  for (var O = [_, b], 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;
@@ -2946,12 +2946,12 @@ var Ra = /* @__PURE__ */ Sn(Wt, 9, 0), Da = /* @__PURE__ */ Sn($n, 5, 0), hr = f
2946
2946
  l && (c[0] = r.r >> 3);
2947
2947
  for (var h = Ma[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 Ys(25e3), b = new Oe(288), E = new Oe(32), I = 0, k = 0, T = r.i || 0, M = 0, V = r.w || 0, z = 0; T + 2 < o; ++T) {
2949
+ }, g = new Ys(25e3), b = new Oe(288), E = new Oe(32), I = 0, k = 0, T = r.i || 0, M = 0, V = r.w || 0, j = 0; T + 2 < o; ++T) {
2950
2950
  var Q = x(T), F = T & 32767, L = y[Q];
2951
2951
  if (m[F] = L, y[Q] = F, V <= T) {
2952
2952
  var X = o - T;
2953
2953
  if ((I > 7e3 || M > 24576) && (X > 423 || !u)) {
2954
- l = Li(t, c, 0, g, b, E, k, M, z, T - z, l), M = I = k = 0, z = T;
2954
+ l = Li(t, c, 0, g, b, E, k, M, j, T - j, l), M = I = k = 0, j = T;
2955
2955
  for (var Z = 0; Z < 286; ++Z)
2956
2956
  b[Z] = 0;
2957
2957
  for (var Z = 0; Z < 30; ++Z)
@@ -2967,7 +2967,7 @@ var Ra = /* @__PURE__ */ Sn(Wt, 9, 0), Da = /* @__PURE__ */ Sn($n, 5, 0), hr = f
2967
2967
  if (R = C, Y = O, C > te)
2968
2968
  break;
2969
2969
  for (var B = Math.min(O, C - 2), ee = 0, Z = 0; Z < B; ++Z) {
2970
- var ve = T - O + Z & 32767, ze = m[ve], Ie = ve - ze & 32767;
2970
+ var ve = T - O + Z & 32767, je = m[ve], Ie = ve - je & 32767;
2971
2971
  Ie > ee && (ee = Ie, L = ve);
2972
2972
  }
2973
2973
  }
@@ -2976,15 +2976,15 @@ var Ra = /* @__PURE__ */ Sn(Wt, 9, 0), Da = /* @__PURE__ */ Sn($n, 5, 0), hr = f
2976
2976
  }
2977
2977
  if (Y) {
2978
2978
  g[M++] = 268435456 | Ns[R] << 18 | Mi[Y];
2979
- var Ce = Ns[R] & 31, jn = Mi[Y] & 31;
2980
- k += Js[Ce] + Qs[jn], ++b[257 + Ce], ++E[jn], V = T + R, ++I;
2979
+ var Ce = Ns[R] & 31, zn = Mi[Y] & 31;
2980
+ k += Js[Ce] + Qs[zn], ++b[257 + Ce], ++E[zn], V = T + R, ++I;
2981
2981
  } else
2982
2982
  g[M++] = t[T], ++b[t[T]];
2983
2983
  }
2984
2984
  }
2985
2985
  for (T = Math.max(T, V); T < o; ++T)
2986
2986
  g[M++] = t[T], ++b[t[T]];
2987
- l = Li(t, c, u, g, b, E, k, M, z, T - z, 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);
2987
+ l = Li(t, c, u, g, b, E, k, M, 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;
@@ -3062,7 +3062,7 @@ var Ra = /* @__PURE__ */ Sn(Wt, 9, 0), Da = /* @__PURE__ */ Sn($n, 5, 0), hr = f
3062
3062
  }, ou = function() {
3063
3063
  return [Ye, Oe, Ys, Js, Qs, Ai, Ns, Mi, Ra, Wt, Da, $n, Rs, Ma, fr, Sn, ot, gn, ks, Ds, Pi, mn, dr, Li, hr, Oa, Pa, pr, cu, Fa];
3064
3064
  }, au = function() {
3065
- return [Wa, ja, Os, Ba, La];
3065
+ return [Wa, za, Os, Ba, La];
3066
3066
  }, Fa = function(t) {
3067
3067
  return postMessage(t, [t.buffer]);
3068
3068
  }, lu = function(t, e, n, s, i, r) {
@@ -3082,7 +3082,7 @@ var Ra = /* @__PURE__ */ Sn(Wt, 9, 0), Da = /* @__PURE__ */ Sn($n, 5, 0), hr = f
3082
3082
  for (var s = 0; s <= n.length; ++s)
3083
3083
  t[s + 10] = n.charCodeAt(s);
3084
3084
  }
3085
- }, ja = function(t) {
3085
+ }, za = function(t) {
3086
3086
  return 10 + (t.filename ? t.filename.length + 1 : 0);
3087
3087
  };
3088
3088
  function cu(t, e) {
@@ -3103,7 +3103,7 @@ function Vr(t, e) {
3103
3103
  e || (e = {});
3104
3104
  var n = Ba(), s = t.length;
3105
3105
  n.p(t);
3106
- var i = pr(t, e, ja(e), 8), r = i.length;
3106
+ var i = pr(t, e, za(e), 8), r = i.length;
3107
3107
  return Wa(i, e), Os(i, r - 8, n.d()), Os(i, r - 4, s), i;
3108
3108
  }
3109
3109
  var hu = typeof TextDecoder < "u" && /* @__PURE__ */ new TextDecoder(), du = 0;
@@ -3481,7 +3481,7 @@ function _n() {
3481
3481
  return gr;
3482
3482
  }
3483
3483
  const $e = mt && performance.now ? () => Math.round(performance.now() + gr) : () => Date.now(), oi = "repeat" in String.prototype ? (t) => "*".repeat(t.length) : (t) => t.replace(/./g, "*");
3484
- function za(t) {
3484
+ function ja(t) {
3485
3485
  return t.trim().replace(/\s+/g, " ");
3486
3486
  }
3487
3487
  function Ua(t) {
@@ -3758,13 +3758,13 @@ function Wu(t, e) {
3758
3758
  e
3759
3759
  ];
3760
3760
  }
3761
- function ju(t) {
3761
+ function zu(t) {
3762
3762
  return [
3763
3763
  28,
3764
3764
  t
3765
3765
  ];
3766
3766
  }
3767
- function zu(t) {
3767
+ function ju(t) {
3768
3768
  return [
3769
3769
  29,
3770
3770
  t
@@ -3901,7 +3901,7 @@ function Yu(t, e) {
3901
3901
  e
3902
3902
  ];
3903
3903
  }
3904
- function ji(t, e, n, s) {
3904
+ function zi(t, e, n, s) {
3905
3905
  return [
3906
3906
  78,
3907
3907
  t,
@@ -4015,7 +4015,7 @@ function th(t, e, n, s) {
4015
4015
  s
4016
4016
  ];
4017
4017
  }
4018
- const zi = mt && "performance" in window && "memory" in performance ? performance : { memory: {} }, ai = mt ? (navigator.deviceMemory || 0) * 1024 : 0, li = zi.memory.jsHeapSizeLimit || 0;
4018
+ const ji = mt && "performance" in window && "memory" in performance ? performance : { memory: {} }, ai = mt ? (navigator.deviceMemory || 0) * 1024 : 0, li = ji.memory.jsHeapSizeLimit || 0;
4019
4019
  function nh(t, e) {
4020
4020
  if (!Object.assign({
4021
4021
  capturePerformance: !0
@@ -4029,7 +4029,7 @@ function nh(t, e) {
4029
4029
  i === void 0 || i === -1 || i++;
4030
4030
  }, 0, !1);
4031
4031
  const o = () => {
4032
- s === void 0 || i === void 0 || (t.send(Uu(s, i, zi.memory.totalJSHeapSize || 0, zi.memory.usedJSHeapSize || 0)), i = s = document.hidden ? -1 : 0);
4032
+ s === void 0 || i === void 0 || (t.send(Uu(s, i, ji.memory.totalJSHeapSize || 0, ji.memory.usedJSHeapSize || 0)), i = s = document.hidden ? -1 : 0);
4033
4033
  };
4034
4034
  t.attachStartCallback(() => {
4035
4035
  i = s = -1, o(), r();
@@ -5322,8 +5322,8 @@ var Ps;
5322
5322
  (function(t) {
5323
5323
  t[t.Plain = 0] = "Plain", t[t.Obscured = 1] = "Obscured", t[t.Hidden = 2] = "Hidden";
5324
5324
  })(Ps || (Ps = {}));
5325
- const jh = (t) => t.trim().replace(/[^\f\n\r\t\v\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]/g, "█");
5326
- class zh {
5325
+ const zh = (t) => t.trim().replace(/[^\f\n\r\t\v\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]/g, "█");
5326
+ class jh {
5327
5327
  constructor(e) {
5328
5328
  this.obscured = /* @__PURE__ */ new Set(), this.hidden = /* @__PURE__ */ new Set(), this.app = e.app, this.options = Object.assign({
5329
5329
  obscureTextEmails: !0,
@@ -5337,7 +5337,7 @@ class zh {
5337
5337
  }
5338
5338
  }
5339
5339
  sanitize(e, n) {
5340
- return this.obscured.has(e) ? jh(n) : (this.options.obscureTextNumbers && (n = n.replace(/\d/g, "0")), this.options.obscureTextEmails && (n = n.replace(/^\w+([+.-]\w+)*@\w+([.-]\w+)*\.\w{2,3}$/g, (s) => {
5340
+ return this.obscured.has(e) ? zh(n) : (this.options.obscureTextNumbers && (n = n.replace(/\d/g, "0")), this.options.obscureTextEmails && (n = n.replace(/^\w+([+.-]\w+)*@\w+([.-]\w+)*\.\w{2,3}$/g, (s) => {
5341
5341
  const [i, r] = s.split("@"), [o, a] = r.split(".");
5342
5342
  return `${oi(i)}@${oi(o)}.${oi(a)}`;
5343
5343
  })), n);
@@ -5546,7 +5546,7 @@ let Kh = 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: M, top: V, width: z, height: Q } = _.getBoundingClientRect(), F = document.documentElement.scrollWidth, L = document.documentElement.scrollHeight, X = k / 100 * z + M, Z = T / 100 * Q + V, R = X / F, Y = Z / L;
5549
+ const [x, g, b, E, I, k, T] = y, { left: M, top: V, width: j, height: Q } = _.getBoundingClientRect(), F = document.documentElement.scrollWidth, L = document.documentElement.scrollHeight, X = k / 100 * j + M, Z = T / 100 * Q + V, R = X / F, Y = Z / L;
5550
5550
  S = [
5551
5551
  x,
5552
5552
  g,
@@ -5680,7 +5680,7 @@ let Kh = class {
5680
5680
  const l = location.hostname.split(".").slice(-2).join("_");
5681
5681
  this.bc = new BroadcastChannel(`rick_${l}`);
5682
5682
  }
5683
- this.revID = this.options.revID, this.localStorage = this.options.localStorage ?? window.localStorage, this.sessionStorage = this.options.sessionStorage ?? window.sessionStorage, this.sanitizer = new zh({ app: this, options: s }), this.nodes = new Lh({
5683
+ this.revID = this.options.revID, this.localStorage = this.options.localStorage ?? window.localStorage, this.sessionStorage = this.options.sessionStorage ?? window.sessionStorage, this.sanitizer = new jh({ app: this, options: s }), this.nodes = new Lh({
5684
5684
  node_id: this.options.node_id,
5685
5685
  forceNgOff: !!s.forceNgOff,
5686
5686
  maintainer: (c = this.options.nodes) == null ? void 0 : c.maintainer
@@ -5692,7 +5692,7 @@ let Kh = class {
5692
5692
  errLog: this.debug.error,
5693
5693
  onTag: (l) => this.send(eh(l))
5694
5694
  }), this.session.attachUpdateCallback(({ userID: l, metadata: h }) => {
5695
- l != null && this.send(ju(l)), h != null && Object.entries(h).forEach(([d, p]) => this.send(Zr(d, p)));
5695
+ l != null && this.send(zu(l)), h != null && Object.entries(h).forEach(([d, p]) => this.send(Zr(d, p)));
5696
5696
  }), n != null && this.session.applySessionHash(n);
5697
5697
  const a = this.session.getTabId();
5698
5698
  this.insideIframe ? (window.addEventListener("message", this.parentCrossDomainFrameListener), setInterval(() => {
@@ -6179,7 +6179,7 @@ let Kh = class {
6179
6179
  userDevice: T,
6180
6180
  userOS: M,
6181
6181
  userState: V,
6182
- canvasEnabled: z,
6182
+ canvasEnabled: j,
6183
6183
  canvasQuality: Q,
6184
6184
  canvasFPS: F,
6185
6185
  assistOnly: L,
@@ -6206,7 +6206,7 @@ let Kh = class {
6206
6206
  beaconSizeLimit: S
6207
6207
  }), !a && f === o && (this.debug.log("continuing session on new tab", this.session.getTabId()), this.send(xs(this.session.getTabId()))), Object.entries(this.session.getInfo().metadata).forEach(([R, Y]) => this.send(Zr(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(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(), z && !this.options.canvas.disableCanvas && (this.canvasRecorder = this.canvasRecorder ?? new Ih(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 Ih(this, {
6210
6210
  fps: F,
6211
6211
  quality: Q,
6212
6212
  isDebug: this.options.canvas.__save_canvas_locally,
@@ -6554,7 +6554,7 @@ function Ls(t, e, n = {}) {
6554
6554
  s = hd(t);
6555
6555
  } catch {
6556
6556
  }
6557
- return ji(t.name, t.message, JSON.stringify(s), JSON.stringify(n));
6557
+ return zi(t.name, t.message, JSON.stringify(s), JSON.stringify(n));
6558
6558
  }
6559
6559
  function tl(t, e = window, n = {}) {
6560
6560
  if (t instanceof ErrorEvent) {
@@ -6562,7 +6562,7 @@ function tl(t, e = window, n = {}) {
6562
6562
  return Ls(t.error, So(t), n);
6563
6563
  {
6564
6564
  let [s, i] = t.message.split(":");
6565
- return i || (s = "Error", i = t.message), ji(s, i, JSON.stringify(So(t)), JSON.stringify(n));
6565
+ return i || (s = "Error", i = t.message), zi(s, i, JSON.stringify(So(t)), JSON.stringify(n));
6566
6566
  }
6567
6567
  } else if ("PromiseRejectionEvent" in e && t instanceof e.PromiseRejectionEvent) {
6568
6568
  if (t.reason instanceof Error)
@@ -6574,7 +6574,7 @@ function tl(t, e = window, n = {}) {
6574
6574
  } catch {
6575
6575
  s = String(t.reason);
6576
6576
  }
6577
- return ji("Unhandled Promise Rejection", s, "[]", JSON.stringify(n));
6577
+ return zi("Unhandled Promise Rejection", s, "[]", JSON.stringify(n));
6578
6578
  }
6579
6579
  }
6580
6580
  return null;
@@ -6684,7 +6684,7 @@ function nl(t) {
6684
6684
  const n = bd(t);
6685
6685
  e = n && n.innerText || t.placeholder || t.name || t.id || t.className || t.type;
6686
6686
  }
6687
- return za(e).slice(0, 100);
6687
+ return ja(e).slice(0, 100);
6688
6688
  }
6689
6689
  const pn = {
6690
6690
  Plain: 0,
@@ -6988,7 +6988,7 @@ function Od(t, e) {
6988
6988
  return nl(g);
6989
6989
  if (Ki(g)) {
6990
6990
  let E = "";
6991
- return g instanceof HTMLElement && (E = t.sanitizer.getInnerTextSecure(g)), E = E || g.id || g.className, za(E).slice(0, 100);
6991
+ return g instanceof HTMLElement && (E = t.sanitizer.getInnerTextSecure(g)), E = E || g.id || g.className, ja(E).slice(0, 100);
6992
6992
  }
6993
6993
  return "";
6994
6994
  }
@@ -7029,7 +7029,7 @@ function Od(t, e) {
7029
7029
  return;
7030
7030
  const M = t.nodes.getID(T);
7031
7031
  if (M !== void 0) {
7032
- const V = k.pageX, z = k.pageY, Q = g.documentElement.scrollWidth, F = g.documentElement.scrollHeight, L = Io(V / Q), X = Io(z / F);
7032
+ const V = k.pageX, j = k.pageY, Q = g.documentElement.scrollWidth, F = g.documentElement.scrollHeight, L = Io(V / Q), X = Io(j / F);
7033
7033
  _(), t.send(Xu(M, a === T ? Math.round(performance.now() - c) : 0, s(T), Ki(T) && !n ? E(M, T, e) : "", L, X), !0);
7034
7034
  }
7035
7035
  a = null;
@@ -7281,7 +7281,7 @@ function Wd(t) {
7281
7281
  Co(o) && s(o);
7282
7282
  });
7283
7283
  }
7284
- function jd(t) {
7284
+ function zd(t) {
7285
7285
  if (t === null)
7286
7286
  return;
7287
7287
  if (!window.CSSStyleSheet) {
@@ -7334,7 +7334,7 @@ function jd(t) {
7334
7334
  e(o, u, c[u].cssText);
7335
7335
  });
7336
7336
  }
7337
- function zd(t) {
7337
+ function jd(t) {
7338
7338
  function e(s) {
7339
7339
  const i = t.nodes.getID(s);
7340
7340
  i !== void 0 && t.send(eo(i));
@@ -7398,8 +7398,8 @@ function Hd(t, e, n, s, i) {
7398
7398
  function V(R, Y) {
7399
7399
  M(Y[0]) || (R[Y[0]] = Y[1]);
7400
7400
  }
7401
- let z = {}, Q = {};
7402
- p.toJSON ? z = p.toJSON() : p instanceof Headers ? p.forEach((R, Y) => V(z, [Y, R])) : Array.isArray(p) ? p.forEach((R) => V(z, R)) : typeof p == "object" && Object.entries(p).forEach((R) => V(z, R));
7401
+ let j = {}, Q = {};
7402
+ p.toJSON ? j = p.toJSON() : p instanceof Headers ? p.forEach((R, Y) => V(j, [Y, R])) : Array.isArray(p) ? p.forEach((R) => V(j, R)) : typeof p == "object" && Object.entries(p).forEach((R) => V(j, R));
7403
7403
  const F = I || x;
7404
7404
  F.toJSON ? Q = F.toJSON() : F instanceof Headers ? F.forEach((R, Y) => V(Q, [Y, R])) : Array.isArray(F) ? F.forEach((R) => V(Q, R)) : typeof F == "object" && Object.entries(F).forEach(([R, Y]) => {
7405
7405
  M(R) || (Q[R] = Y);
@@ -7409,7 +7409,7 @@ function Hd(t, e, n, s, i) {
7409
7409
  method: m || "",
7410
7410
  status: g || k || 0,
7411
7411
  request: {
7412
- headers: z,
7412
+ headers: j,
7413
7413
  body: f
7414
7414
  },
7415
7415
  response: {
@@ -7914,9 +7914,9 @@ function sf(t, e = {}) {
7914
7914
  i(X) || (V[X] = L);
7915
7915
  });
7916
7916
  }
7917
- const z = Ro(g.method), Q = a({
7917
+ const j = Ro(g.method), Q = a({
7918
7918
  url: String(x),
7919
- method: z,
7919
+ method: j,
7920
7920
  status: k.status,
7921
7921
  request: {
7922
7922
  headers: M,
@@ -7928,7 +7928,7 @@ function sf(t, e = {}) {
7928
7928
  body: T
7929
7929
  }
7930
7930
  });
7931
- Q && t.send(Ts("fetch", z, String(Q.url), c(Q.request), c(Q.response), k.status, b + _n(), I, 0));
7931
+ Q && t.send(Ts("fetch", j, String(Q.url), c(Q.request), c(Q.response), k.status, b + _n(), I, 0));
7932
7932
  }).catch((T) => t.debug.error("Could not process Fetch response:", T)), E;
7933
7933
  });
7934
7934
  };
@@ -7941,8 +7941,8 @@ function sf(t, e = {}) {
7941
7941
  return b.addEventListener("loadstart", (I) => {
7942
7942
  E = I.timeStamp;
7943
7943
  }), b.addEventListener("load", t.safe((I) => {
7944
- const { headers: k, body: T } = gi(b), M = E > 0 ? I.timeStamp - E : 0, z = (b.getAllResponseHeaders() || "").trim().split(/[\r\n]+/), Q = {};
7945
- z.forEach(function(X) {
7944
+ const { headers: k, body: T } = gi(b), M = E > 0 ? I.timeStamp - E : 0, j = (b.getAllResponseHeaders() || "").trim().split(/[\r\n]+/), Q = {};
7945
+ j.forEach(function(X) {
7946
7946
  const Z = X.split(": "), R = Z.shift();
7947
7947
  i(R) || (Q[R] = Z.join(": "));
7948
7948
  });
@@ -8086,7 +8086,7 @@ class cf {
8086
8086
  return;
8087
8087
  }
8088
8088
  const r = new Kh(e.projectKey, e.sessionToken, e, this.signalStartIssue, this.crossdomainMode);
8089
- this.app = r, this.crossdomainMode || (Bd(r), Xh(r), nh(r, e), of(r)), Od(r, e.mouse), Ld(r, this.crossdomainMode), jd(r), Wd(r), Zh(r, e), dd(r, e), gd(r), yd(r, e), Pd(r, e), zd(r), Ud(r), sf(r, e.network), rf(r), window.__OPENREPLAY__ = this, e.flags && e.flags.onFlagsLoad && this.onFlagsLoad(e.flags.onFlagsLoad);
8089
+ this.app = r, this.crossdomainMode || (Bd(r), Xh(r), nh(r, e), of(r)), Od(r, e.mouse), Ld(r, this.crossdomainMode), zd(r), Wd(r), Zh(r, e), dd(r, e), gd(r), yd(r, e), Pd(r, e), jd(r), Ud(r), sf(r, e.network), rf(r), window.__OPENREPLAY__ = this, e.flags && e.flags.onFlagsLoad && this.onFlagsLoad(e.flags.onFlagsLoad);
8090
8090
  const o = window.open;
8091
8091
  (e.autoResetOnWindowOpen || e.resetTabOnWindowOpen) && (r.attachStartCallback(() => {
8092
8092
  const u = r.getTabId(), l = r.sessionStorage ?? window.sessionStorage;
@@ -8219,7 +8219,7 @@ class cf {
8219
8219
  Ot("'userID' method", "'setUserID' method", "/"), this.setUserID(e);
8220
8220
  }
8221
8221
  setUserAnonymousID(e) {
8222
- typeof e == "string" && this.app !== null && this.app.send(zu(e));
8222
+ typeof e == "string" && this.app !== null && this.app.send(ju(e));
8223
8223
  }
8224
8224
  userAnonymousID(e) {
8225
8225
  Ot("'userAnonymousID' method", "'setUserAnonymousID' method", "/"), this.setUserAnonymousID(e);
@@ -8307,7 +8307,7 @@ function hf(t) {
8307
8307
  var Dn, tn;
8308
8308
  class df {
8309
8309
  constructor(e) {
8310
- U(this, Dn, "https://wineater-backend.vercel.app/");
8310
+ U(this, Dn, "https://api.wineater.com/");
8311
8311
  U(this, tn);
8312
8312
  W(this, tn, e);
8313
8313
  }
@@ -8875,6 +8875,68 @@ const pf = ((Po = window == null ? void 0 : window.wineaterData) == null ? void
8875
8875
  noResultsMessage: "Іздеуіңізге сәйкес нәтиже табылмады. Басқа сұрау қолданып көріңіз.",
8876
8876
  ai_sommelier: "AI sommelier"
8877
8877
  }, kf = {
8878
+ lang: "pt",
8879
+ welcomeMessage: "O que você planeja comer? Descreva seu prato e eu recomendarei a harmonização perfeita.",
8880
+ noResultsFound: "Nenhum resultado encontrado.",
8881
+ somethingWentWrong: "Desculpe, algo deu errado.",
8882
+ chatButton1: "Encontre sua harmonização",
8883
+ chatButton2: "Harmonizar vinho agora",
8884
+ chatButton3: "Receber conselho de vinho",
8885
+ chatTitle: "Assistente de Harmonização de Vinhos 🍷",
8886
+ chatSubtitle: "Descreva sua refeição e receba uma recomendação em 30 segundos",
8887
+ inputPlaceholder: "ex., Salada de atum",
8888
+ sendButton: "Harmonizar",
8889
+ poweredBy: "Desenvolvido por",
8890
+ price: "Preço",
8891
+ region: "Região",
8892
+ type: "Tipo",
8893
+ reason: "Sugestão",
8894
+ moreInfo: "Mais informações",
8895
+ winePairingIntro: "Para este vinho, aqui estão algumas sugestões de pratos:",
8896
+ askForDinner: "O que você gostaria de jantar?",
8897
+ clearChatButton: "Limpar chat",
8898
+ widgetTitle: "ENCONTRE SEU VINHO PERFEITO",
8899
+ widgetSubtitle: "Compartilhe o que tiver em mente — sua refeição, humor, orçamento ou ocasião — e nosso sommelier de IA recomendará o vinho perfeito em segundos",
8900
+ searchPlaceholder: "Digite uma palavra-chave ou descrição",
8901
+ "wineDetails.reason": "Motivo",
8902
+ "wineDetails.price": "Preço",
8903
+ "wineDetails.region": "Região",
8904
+ "wineDetails.type": "Tipo",
8905
+ "wineDetails.moreInfo": "Mais informações",
8906
+ "wineDetails.code": "Código",
8907
+ "wineDetails.buy": "Comprar",
8908
+ searchButton: "Pesquisar",
8909
+ priceRange: "Faixa de preço",
8910
+ wineColor: "Cor do vinho",
8911
+ intensity: "Intensidade",
8912
+ red: "Tinto",
8913
+ white: "Branco",
8914
+ rose: "Rosé",
8915
+ light: "Leve",
8916
+ medium: "Médio",
8917
+ full: "Encorpado",
8918
+ barTitle: "Pratos do bar",
8919
+ barSubtitle: "Selecione os pratos abaixo e clique em 'Enviar'",
8920
+ barSendButton: "Enviar",
8921
+ barResetButton: "Resetar",
8922
+ barName: "Nome do bar",
8923
+ barNotesPlaceholder: "Adicione seus desejos aqui...",
8924
+ placeholderSuggestions: [
8925
+ "Vinho para massa",
8926
+ "Perfeito com peixe",
8927
+ "Recomendado para uma festa"
8928
+ ],
8929
+ headerLine1: "Compartilhe o que tiver em mente —",
8930
+ headerLine2: "— e receba recomendações do vinho perfeito em segundos",
8931
+ headerMeal: "refeição",
8932
+ headerMood: "humor",
8933
+ headerBudget: "orçamento",
8934
+ headerOccasion: "ocasião",
8935
+ headerOr: "ou",
8936
+ errorMessage: "Algo deu errado. Por favor, tente novamente mais tarde.",
8937
+ noResultsMessage: "Nenhum resultado encontrado para sua pesquisa. Por favor, tente uma consulta diferente.",
8938
+ ai_sommelier: "AI sommelier"
8939
+ }, Tf = {
8878
8940
  fr: gf,
8879
8941
  es: mf,
8880
8942
  en: vf,
@@ -8882,9 +8944,10 @@ const pf = ((Po = window == null ? void 0 : window.wineaterData) == null ? void
8882
8944
  de: bf,
8883
8945
  ukr: yf,
8884
8946
  ru: Sf,
8885
- kk: _f
8947
+ kk: _f,
8948
+ pt: kf
8886
8949
  };
8887
- function Tf(t) {
8950
+ function xf(t) {
8888
8951
  return {
8889
8952
  id: String(t.id),
8890
8953
  lang: t.lang,
@@ -8894,7 +8957,7 @@ function Tf(t) {
8894
8957
  title: t.title
8895
8958
  };
8896
8959
  }
8897
- const xf = {
8960
+ const Ef = {
8898
8961
  0: {
8899
8962
  logoUrl: null,
8900
8963
  brandColor: "#7B2BEB"
@@ -8981,7 +9044,7 @@ const xf = {
8981
9044
  translations: {}
8982
9045
  }
8983
9046
  };
8984
- function Ef(t) {
9047
+ function If(t) {
8985
9048
  const e = {
8986
9049
  logoUrl: null,
8987
9050
  // Brand color is used for shop branding
@@ -8993,7 +9056,7 @@ function Ef(t) {
8993
9056
  @import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap');
8994
9057
  :root { --wineater-font-primary: 'Bricolage Grotesque', serif; }
8995
9058
  `
8996
- }, n = xf[t] || {};
9059
+ }, n = Ef[t] || {};
8997
9060
  return {
8998
9061
  ...e,
8999
9062
  ...n
@@ -9047,9 +9110,9 @@ const pe = {
9047
9110
  async initializeStore() {
9048
9111
  try {
9049
9112
  const t = await Yi.getStoreConfig();
9050
- ue.storeConfig = Tf(t), ue.currentLanguage = ue.storeConfig.lang;
9113
+ ue.storeConfig = xf(t), ue.currentLanguage = ue.storeConfig.lang;
9051
9114
  const e = this.getLanguageFromURL();
9052
- e && ue.storeConfig.available_languages.includes(e) ? this.setStoreLanguage(e) : this.setStoreLanguage(ue.storeConfig.lang), this.setUiConfig(Ef(ue.storeConfig.id)), ue.isConfigLoaded = !0;
9115
+ e && ue.storeConfig.available_languages.includes(e) ? this.setStoreLanguage(e) : this.setStoreLanguage(ue.storeConfig.lang), this.setUiConfig(If(ue.storeConfig.id)), ue.isConfigLoaded = !0;
9053
9116
  } catch (t) {
9054
9117
  console.error("Failed to initialize store:", t), ue.isConfigLoaded = !1;
9055
9118
  }
@@ -9063,7 +9126,7 @@ const pe = {
9063
9126
  setUiConfig(t) {
9064
9127
  ue.uiConfig = t;
9065
9128
  }
9066
- }, If = {
9129
+ }, Cf = {
9067
9130
  en: "en-US",
9068
9131
  de: "de-DE",
9069
9132
  fr: "fr-FR",
@@ -9075,9 +9138,9 @@ const pe = {
9075
9138
  kk: "kk-KZ",
9076
9139
  pt: "pt-PT"
9077
9140
  };
9078
- function Cf(t, e, n = "en") {
9141
+ function Nf(t, e, n = "en") {
9079
9142
  try {
9080
- return new Intl.NumberFormat(If[n] || "en-US", {
9143
+ return new Intl.NumberFormat(Cf[n] || "en-US", {
9081
9144
  style: "currency",
9082
9145
  currency: e,
9083
9146
  currencyDisplay: "narrowSymbol"
@@ -9087,14 +9150,14 @@ function Cf(t, e, n = "en") {
9087
9150
  }
9088
9151
  }
9089
9152
  function Ee({ key: t, lang: e }) {
9090
- const n = kf, s = pe.getUiConfig(), i = (s == null ? void 0 : s.translations) || {};
9153
+ const n = Tf, s = pe.getUiConfig(), i = (s == null ? void 0 : s.translations) || {};
9091
9154
  if (i[e] && i[e][t])
9092
9155
  return i[e][t];
9093
9156
  if (n[e] && n[e][t])
9094
9157
  return n[e][t];
9095
9158
  throw new Error(`Translation for key "${t}" not found in language "${e}".`);
9096
9159
  }
9097
- async function Nf({ sourceLang: t, targetLang: e, texts: n, apiKey: s }) {
9160
+ async function Rf({ sourceLang: t, targetLang: e, texts: n, apiKey: s }) {
9098
9161
  var u, l, h, d;
9099
9162
  if (!s || !t || !e || t === e) return n;
9100
9163
  const i = "https://api.openai.com/v1/chat/completions", r = {
@@ -9153,39 +9216,39 @@ ${JSON.stringify(o, null, 2)}
9153
9216
  }
9154
9217
  }
9155
9218
  Xl();
9156
- var Rf = /* @__PURE__ */ Xs('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 38 38" fill="none"><path d="M10.036 4.96326H28.2826L34.3648 14.0865L19.1593 33.8537L3.95381 14.0865L10.036 4.96326Z" stroke="currentColor" stroke-width="3.0411" stroke-linecap="round" stroke-linejoin="round"></path><path d="M17.6388 4.96326L13.0771 14.0865L19.1593 33.8537L25.2415 14.0865L20.6799 4.96326" stroke="currentColor" stroke-width="3.0411" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3.95381 14.0867H34.3648" stroke="currentColor" stroke-width="3.0411" stroke-linecap="round" stroke-linejoin="round"></path></svg>');
9157
- function Df(t, e) {
9219
+ var Df = /* @__PURE__ */ Xs('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 38 38" fill="none"><path d="M10.036 4.96326H28.2826L34.3648 14.0865L19.1593 33.8537L3.95381 14.0865L10.036 4.96326Z" stroke="currentColor" stroke-width="3.0411" stroke-linecap="round" stroke-linejoin="round"></path><path d="M17.6388 4.96326L13.0771 14.0865L19.1593 33.8537L25.2415 14.0865L20.6799 4.96326" stroke="currentColor" stroke-width="3.0411" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3.95381 14.0867H34.3648" stroke="currentColor" stroke-width="3.0411" stroke-linecap="round" stroke-linejoin="round"></path></svg>');
9220
+ function Of(t, e) {
9158
9221
  let n = We(e, "className", 8, ""), s = We(e, "size", 8, 20);
9159
- var i = Rf();
9222
+ var i = Df();
9160
9223
  J(() => {
9161
9224
  Ft(i, 0, Bn(n())), ke(i, "width", s()), ke(i, "height", s());
9162
9225
  }), P(t, i);
9163
9226
  }
9164
- var Of = /* @__PURE__ */ Xs('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 38 38" fill="none"><path d="M29.533 21.4034C31.7986 19.1834 34.0946 16.5224 34.0946 13.0404C34.0946 10.8224 33.2135 8.69521 31.6451 7.12684C30.0768 5.55847 27.9496 4.67737 25.7316 4.67737C23.0554 4.67737 21.1699 5.43764 18.8891 7.71847C16.6083 5.43764 14.7228 4.67737 12.0467 4.67737C9.82865 4.67737 7.70148 5.55847 6.13311 7.12684C4.56474 8.69521 3.68364 10.8224 3.68364 13.0404C3.68364 16.5376 5.96446 19.1986 8.24528 21.4034L18.8891 32.0472L29.533 21.4034Z" stroke="currentColor" stroke-width="3.0411" stroke-linecap="round" stroke-linejoin="round"></path><path d="M18.8891 19.8829L17.3686 18.3623L20.4097 15.3212L15.848 10.7596L18.8891 7.71851" stroke="currentColor" stroke-width="3.0411" stroke-linecap="round" stroke-linejoin="round"></path></svg>');
9165
- function Af(t, e) {
9227
+ var Af = /* @__PURE__ */ Xs('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 38 38" fill="none"><path d="M29.533 21.4034C31.7986 19.1834 34.0946 16.5224 34.0946 13.0404C34.0946 10.8224 33.2135 8.69521 31.6451 7.12684C30.0768 5.55847 27.9496 4.67737 25.7316 4.67737C23.0554 4.67737 21.1699 5.43764 18.8891 7.71847C16.6083 5.43764 14.7228 4.67737 12.0467 4.67737C9.82865 4.67737 7.70148 5.55847 6.13311 7.12684C4.56474 8.69521 3.68364 10.8224 3.68364 13.0404C3.68364 16.5376 5.96446 19.1986 8.24528 21.4034L18.8891 32.0472L29.533 21.4034Z" stroke="currentColor" stroke-width="3.0411" stroke-linecap="round" stroke-linejoin="round"></path><path d="M18.8891 19.8829L17.3686 18.3623L20.4097 15.3212L15.848 10.7596L18.8891 7.71851" stroke="currentColor" stroke-width="3.0411" stroke-linecap="round" stroke-linejoin="round"></path></svg>');
9228
+ function Mf(t, e) {
9166
9229
  let n = We(e, "className", 8, ""), s = We(e, "size", 8, 20);
9167
- var i = Of();
9230
+ var i = Af();
9168
9231
  J(() => {
9169
9232
  Ft(i, 0, Bn(n())), ke(i, "width", s()), ke(i, "height", s());
9170
9233
  }), P(t, i);
9171
9234
  }
9172
- var Mf = /* @__PURE__ */ Xs('<svg viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.041" d="M19.57 17.655a3.801 3.801 0 1 0 0-7.602 3.801 3.801 0 0 0 0 7.602Z"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.041" d="M19.57 3.97a9.884 9.884 0 0 0-9.458 6.995c-1.673 4.76-1.186 5.93-4.835 9.245a4.562 4.562 0 0 0 2.889 8.09c6.082 0 12.772-2.738 17.334-6.54a9.885 9.885 0 0 0-5.93-17.79Z"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.041" d="m28.693 10.053 3.33 6.842c.316.983.475 2.009.471 3.041a9.867 9.867 0 0 1-3.953 7.907c-4.562 3.801-11.252 6.538-17.334 6.538a4.562 4.562 0 0 1-4.075-2.524l-2.92-5.839"></path></svg>');
9235
+ var Pf = /* @__PURE__ */ Xs('<svg viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.041" d="M19.57 17.655a3.801 3.801 0 1 0 0-7.602 3.801 3.801 0 0 0 0 7.602Z"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.041" d="M19.57 3.97a9.884 9.884 0 0 0-9.458 6.995c-1.673 4.76-1.186 5.93-4.835 9.245a4.562 4.562 0 0 0 2.889 8.09c6.082 0 12.772-2.738 17.334-6.54a9.885 9.885 0 0 0-5.93-17.79Z"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.041" d="m28.693 10.053 3.33 6.842c.316.983.475 2.009.471 3.041a9.867 9.867 0 0 1-3.953 7.907c-4.562 3.801-11.252 6.538-17.334 6.538a4.562 4.562 0 0 1-4.075-2.524l-2.92-5.839"></path></svg>');
9173
9236
  function Do(t, e) {
9174
9237
  let n = We(e, "className", 8, ""), s = We(e, "size", 8, 20);
9175
- var i = Mf();
9238
+ var i = Pf();
9176
9239
  J(() => {
9177
9240
  Ft(i, 0, Bn(n())), ke(i, "width", s()), ke(i, "height", s());
9178
9241
  }), P(t, i);
9179
9242
  }
9180
- var Pf = /* @__PURE__ */ Xs('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 34 34" fill="none"><path d="M9.03846 17.0001C10.3456 12.1888 15.9077 8.65686 20.858 8.65686C25.8083 8.65686 29.2846 12.1888 30.5917 17.0001C29.2846 21.8252 25.8083 25.3432 20.858 25.3432C15.9077 25.3432 10.3456 21.8252 9.03846 17.0001Z" stroke="currentColor" stroke-width="2.78106" stroke-linecap="round" stroke-linejoin="round"></path><path d="M25.0296 17V17.6953" stroke="currentColor" stroke-width="2.78106" stroke-linecap="round" stroke-linejoin="round"></path><path d="M22.2485 25.2457C20.4397 22.8774 19.4599 19.98 19.4599 16.9999C19.4599 14.0198 20.4397 11.1224 22.2485 8.75403" stroke="currentColor" stroke-width="2.78106" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.73372 15.1506C9.73372 11.4379 7.75916 8.6151 3.79615 7.96155C2.40562 10.0473 2.40562 14.9142 4.11597 17C2.39171 19.0858 2.39171 23.9527 3.79615 26.0385C7.75916 25.3849 9.73372 22.5621 9.73372 18.8494" stroke="currentColor" stroke-width="2.78106" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14.545 10.4089C14.1834 8.48998 12.7512 6.20951 11.1243 4.48525H19.1893C19.8491 4.4828 20.4883 4.71502 20.9927 5.14042C21.497 5.56582 21.8337 6.15668 21.9426 6.80744L22.2624 8.75418" stroke="currentColor" stroke-width="2.78106" stroke-linecap="round" stroke-linejoin="round"></path><path d="M22.2624 25.2459L21.9426 27.1926C21.8337 27.8434 21.497 28.4342 20.9927 28.8596C20.4883 29.285 19.8491 29.5172 19.1893 29.5148H13.2101C14.5573 27.9873 15.2948 26.0172 15.2819 23.9805" stroke="currentColor" stroke-width="2.78106" stroke-linecap="round" stroke-linejoin="round"></path></svg>');
9181
- function Lf(t, e) {
9243
+ var Lf = /* @__PURE__ */ Xs('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 34 34" fill="none"><path d="M9.03846 17.0001C10.3456 12.1888 15.9077 8.65686 20.858 8.65686C25.8083 8.65686 29.2846 12.1888 30.5917 17.0001C29.2846 21.8252 25.8083 25.3432 20.858 25.3432C15.9077 25.3432 10.3456 21.8252 9.03846 17.0001Z" stroke="currentColor" stroke-width="2.78106" stroke-linecap="round" stroke-linejoin="round"></path><path d="M25.0296 17V17.6953" stroke="currentColor" stroke-width="2.78106" stroke-linecap="round" stroke-linejoin="round"></path><path d="M22.2485 25.2457C20.4397 22.8774 19.4599 19.98 19.4599 16.9999C19.4599 14.0198 20.4397 11.1224 22.2485 8.75403" stroke="currentColor" stroke-width="2.78106" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.73372 15.1506C9.73372 11.4379 7.75916 8.6151 3.79615 7.96155C2.40562 10.0473 2.40562 14.9142 4.11597 17C2.39171 19.0858 2.39171 23.9527 3.79615 26.0385C7.75916 25.3849 9.73372 22.5621 9.73372 18.8494" stroke="currentColor" stroke-width="2.78106" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14.545 10.4089C14.1834 8.48998 12.7512 6.20951 11.1243 4.48525H19.1893C19.8491 4.4828 20.4883 4.71502 20.9927 5.14042C21.497 5.56582 21.8337 6.15668 21.9426 6.80744L22.2624 8.75418" stroke="currentColor" stroke-width="2.78106" stroke-linecap="round" stroke-linejoin="round"></path><path d="M22.2624 25.2459L21.9426 27.1926C21.8337 27.8434 21.497 28.4342 20.9927 28.8596C20.4883 29.285 19.8491 29.5172 19.1893 29.5148H13.2101C14.5573 27.9873 15.2948 26.0172 15.2819 23.9805" stroke="currentColor" stroke-width="2.78106" stroke-linecap="round" stroke-linejoin="round"></path></svg>');
9244
+ function Bf(t, e) {
9182
9245
  let n = We(e, "className", 8, ""), s = We(e, "size", 8, 20);
9183
- var i = Pf();
9246
+ var i = Lf();
9184
9247
  J(() => {
9185
9248
  Ft(i, 0, Bn(n())), ke(i, "width", s()), ke(i, "height", s());
9186
9249
  }), P(t, i);
9187
9250
  }
9188
- var Bf = /* @__PURE__ */ K('<h1 class="wr-Header-title svelte-oiwvqb"> </h1>'), Ff = /* @__PURE__ */ K('<h1 class="wr-Header-title svelte-oiwvqb"> <span><!></span> <span class="wr-Header-label svelte-oiwvqb"> </span>, <!> <span class="wr-Header-label svelte-oiwvqb"> </span> <br/> <!> <span class="wr-Header-label svelte-oiwvqb"> </span> </h1>'), Wf = /* @__PURE__ */ K('<div class="wr-Header"><!></div>');
9251
+ var Ff = /* @__PURE__ */ K('<h1 class="wr-Header-title svelte-oiwvqb"> </h1>'), Wf = /* @__PURE__ */ K('<h1 class="wr-Header-title svelte-oiwvqb"> <span><!></span> <span class="wr-Header-label svelte-oiwvqb"> </span>, <!> <span class="wr-Header-label svelte-oiwvqb"> </span> <br/> <!> <span class="wr-Header-label svelte-oiwvqb"> </span> </h1>'), zf = /* @__PURE__ */ K('<div class="wr-Header"><!></div>');
9189
9252
  const jf = {
9190
9253
  hash: "svelte-oiwvqb",
9191
9254
  code: `.wr-Header-title.svelte-oiwvqb {font-weight:600;font-size:24px;margin:0 auto;line-height:1.3;color:#333;text-align:center;
@@ -9195,30 +9258,30 @@ const jf = {
9195
9258
  @media screen and (max-width: 768px) {.wr-Header-title.svelte-oiwvqb {display:none;}
9196
9259
  }`
9197
9260
  };
9198
- function zf(t, e) {
9261
+ function Uf(t, e) {
9199
9262
  var u;
9200
- jt(e, !0), Ut(t, jf);
9263
+ zt(e, !0), Ut(t, jf);
9201
9264
  let n = /* @__PURE__ */ re(() => pe.getAppLanguage());
9202
9265
  const s = ((u = window == null ? void 0 : window.wineaterData) == null ? void 0 : u.TITLE_TEXT) || null;
9203
9266
  let i = /* @__PURE__ */ oe(pt(Do));
9204
- var r = Wf(), o = A(r);
9267
+ var r = zf(), o = A(r);
9205
9268
  {
9206
9269
  var a = (l) => {
9207
- var h = Bf(), d = A(h);
9270
+ var h = Ff(), d = A(h);
9208
9271
  J(() => ne(d, s)), P(l, h);
9209
9272
  }, c = (l) => {
9210
- var h = Ff(), d = A(h), p = G(d), f = A(p);
9211
- zc(f, () => w(i), (T, M) => {
9273
+ var h = Wf(), d = A(h), p = G(d), f = A(p);
9274
+ jc(f, () => w(i), (T, M) => {
9212
9275
  M(T, { className: "wr-Header-icon", size: "28" });
9213
9276
  });
9214
9277
  var m = G(p, 2), y = A(m), S = G(m, 2);
9215
- Af(S, { className: "wr-Header-icon", size: "28" });
9278
+ Mf(S, { className: "wr-Header-icon", size: "28" });
9216
9279
  var _ = G(S, 2), x = A(_), g = G(_, 3), b = G(g);
9217
- Df(b, { className: "wr-Header-icon", size: "28" });
9280
+ Of(b, { className: "wr-Header-icon", size: "28" });
9218
9281
  var E = G(b, 2), I = A(E), k = G(E);
9219
9282
  J(
9220
- (T, M, V, z, Q, F) => {
9221
- ne(d, `${T ?? ""} `), ne(y, M), ne(x, V), ne(g, ` ${z ?? ""} `), ne(I, Q), ne(k, ` ${F ?? ""}`);
9283
+ (T, M, V, j, Q, F) => {
9284
+ ne(d, `${T ?? ""} `), ne(y, M), ne(x, V), ne(g, ` ${j ?? ""} `), ne(I, Q), ne(k, ` ${F ?? ""}`);
9222
9285
  },
9223
9286
  [
9224
9287
  () => Ee({ key: "headerLine1", lang: w(n) }),
@@ -9228,35 +9291,35 @@ function zf(t, e) {
9228
9291
  () => Ee({ key: "headerOccasion", lang: w(n) }),
9229
9292
  () => Ee({ key: "headerLine2", lang: w(n) })
9230
9293
  ]
9231
- ), on("mouseenter", p, () => D(i, Lf, !0)), on("mouseleave", p, () => D(i, Do, !0)), P(l, h);
9294
+ ), on("mouseenter", p, () => D(i, Bf, !0)), on("mouseleave", p, () => D(i, Do, !0)), P(l, h);
9232
9295
  };
9233
9296
  ce(o, (l) => {
9234
9297
  s ? l(a) : l(c, !1);
9235
9298
  });
9236
9299
  }
9237
- P(t, r), zt();
9300
+ P(t, r), jt();
9238
9301
  }
9239
- var Uf = /* @__PURE__ */ K('<option class="wr-Footer-lang"> </option>'), Hf = /* @__PURE__ */ K('<select class="wr-Footer-dropdown svelte-1sr6y3t"></select>'), qf = /* @__PURE__ */ K('<footer class="wr-Footer svelte-1sr6y3t"><div class="wr-Footer-center svelte-1sr6y3t"><a href="https://wineater.com" class="wr-Footer-link svelte-1sr6y3t" target="_blank"><span class="wr-Footer-text"> </span> <img class="wr-Footer-logo svelte-1sr6y3t" alt="Wineater Logo"/> <span class="wr-Footer-text wr-Footer-text--sommelier svelte-1sr6y3t"> </span></a></div> <!></footer>');
9240
- const Vf = {
9302
+ var Hf = /* @__PURE__ */ K('<option class="wr-Footer-lang"> </option>'), qf = /* @__PURE__ */ K('<select class="wr-Footer-dropdown svelte-1sr6y3t"></select>'), Vf = /* @__PURE__ */ K('<footer class="wr-Footer svelte-1sr6y3t"><div class="wr-Footer-center svelte-1sr6y3t"><a href="https://wineater.com" class="wr-Footer-link svelte-1sr6y3t" target="_blank"><span class="wr-Footer-text"> </span> <img class="wr-Footer-logo svelte-1sr6y3t" alt="Wineater Logo"/> <span class="wr-Footer-text wr-Footer-text--sommelier svelte-1sr6y3t"> </span></a></div> <!></footer>');
9303
+ const Gf = {
9241
9304
  hash: "svelte-1sr6y3t",
9242
9305
  code: `.wr-Footer.svelte-1sr6y3t {position:relative;border-top:2px solid #f6f7fd;font-weight:200;padding:12px 24px;min-height:40px;}.wr-Footer-center.svelte-1sr6y3t {position:absolute;left:50%;transform:translateX(-50%);text-align:center;}.wr-Footer-dropdown.svelte-1sr6y3t {position:absolute;right:0px;top:50%;transform:translateY(-50%);padding:4px;border-radius:6px;border:2px solid var(--wr-brand-color);background-color:white;color:var(--wr-brand-color);font-weight:500;font-size:12px;cursor:pointer;transition:all 0.2s ease;}.wr-Footer-dropdown.svelte-1sr6y3t:hover {box-shadow:0 4px 8px rgba(123, 43, 235, 0.2);}.wr-Footer-link.svelte-1sr6y3t {text-decoration:none;display:flex;align-items:center;white-space:nowrap;gap:8px;color:#a8a8a8;font-size:12px;line-height:16px;transition:opacity 0.2s ease;}.wr-Footer-link.svelte-1sr6y3t:hover {opacity:0.8;}.wr-Footer-logo.svelte-1sr6y3t {height:16px;width:auto;color:#a8a8a8;}
9243
9306
 
9244
9307
  @media screen and (max-width: 768px) {.wr-Footer-text--sommelier.svelte-1sr6y3t {display:none;}
9245
9308
  }`
9246
9309
  };
9247
- function Gf(t, e) {
9248
- jt(e, !0), Ut(t, Vf);
9310
+ function Kf(t, e) {
9311
+ zt(e, !0), Ut(t, Gf);
9249
9312
  let n = We(e, "countryCode", 3, null), s = /* @__PURE__ */ re(() => pe.getAppLanguage()), i = /* @__PURE__ */ re(() => pe.getSupportedLanguages()), r = /* @__PURE__ */ re(() => pe.getStoreId());
9250
9313
  function o(S) {
9251
9314
  const x = S.target.value;
9252
9315
  rt(at.LANGUAGE_CHANGED, w(r), { from_language: w(s), to_language: x }), pe.setStoreLanguage(x);
9253
9316
  }
9254
- var a = qf(), c = A(a), u = A(c), l = A(u), h = A(l), d = G(l, 2), p = G(d, 2), f = A(p), m = G(c, 2);
9317
+ var a = Vf(), c = A(a), u = A(c), l = A(u), h = A(l), d = G(l, 2), p = G(d, 2), f = A(p), m = G(c, 2);
9255
9318
  {
9256
9319
  var y = (S) => {
9257
- var _ = Hf();
9320
+ var _ = qf();
9258
9321
  Zn(_, 21, () => w(i), Qn, (g, b) => {
9259
- var E = Uf(), I = A(E), k = {};
9322
+ var E = Hf(), I = A(E), k = {};
9260
9323
  J(
9261
9324
  (T) => {
9262
9325
  Kc(E, w(b) === w(s)), ne(I, T), k !== (k = w(b)) && (E.value = (E.__value = w(b)) ?? "");
@@ -9281,28 +9344,28 @@ function Gf(t, e) {
9281
9344
  () => Ee({ key: "poweredBy", lang: w(s) }),
9282
9345
  () => Ee({ key: "ai_sommelier", lang: w(s) })
9283
9346
  ]
9284
- ), P(t, a), zt();
9347
+ ), P(t, a), jt();
9285
9348
  }
9286
9349
  Ks(["change"]);
9287
- var Kf = /* @__PURE__ */ K('<a rel="noopener noreferrer"><!></a>'), Xf = /* @__PURE__ */ K("<button><!></button>");
9288
- const Yf = {
9350
+ var Xf = /* @__PURE__ */ K('<a rel="noopener noreferrer"><!></a>'), Yf = /* @__PURE__ */ K("<button><!></button>");
9351
+ const Jf = {
9289
9352
  hash: "svelte-8cxv3l",
9290
9353
  code: `.wr-Action.svelte-8cxv3l {background:transparent;border:none;font-family:inherit;cursor:pointer;display:block;text-decoration:none;transition:background 0.2s,
9291
9354
  color 0.2s,
9292
9355
  box-shadow 0.2s;}.wr-Action.primary.svelte-8cxv3l {background:var(--wr-brand-color);color:#fff;border-radius:6px;padding:8px 16px;font-size:14px;font-weight:500;&:hover {opacity:0.8;}}.wr-Action.outlined.svelte-8cxv3l {background:transparent;color:var(--wr-brand-color);border:2px solid var(--wr-brand-color);border-radius:6px;padding:8px 16px;font-size:14px;font-weight:500;&:hover {box-shadow:0 4px 8px rgba(123, 43, 235, 0.25);background-color:var(--wr-brand-color);color:#fff;}}.wr-Action--uppercase.svelte-8cxv3l {text-transform:uppercase;}`
9293
9356
  };
9294
9357
  function Ji(t, e) {
9295
- jt(e, !0), Ut(t, Yf);
9358
+ zt(e, !0), Ut(t, Jf);
9296
9359
  let n = We(e, "type", 3, "button"), s = We(e, "variant", 3, "primary"), i = We(e, "target", 3, "_self"), r = pe.getUiConfig(), o = `wr-Action ${s()} ${e.className || ""} ${r.buttonUppercase ? "wr-Action--uppercase" : ""}`.trim();
9297
9360
  var a = lr(), c = qs(a);
9298
9361
  {
9299
9362
  var u = (h) => {
9300
- var d = Kf(), p = A(d);
9363
+ var d = Xf(), p = A(d);
9301
9364
  Wr(p, e, "default", {}), J(() => {
9302
9365
  Ft(d, 1, Bn(o), "svelte-8cxv3l"), ke(d, "href", e.href), ke(d, "id", e.id), ke(d, "target", i());
9303
9366
  }), P(h, d);
9304
9367
  }, l = (h) => {
9305
- var d = Xf(), p = A(d);
9368
+ var d = Yf(), p = A(d);
9306
9369
  Wr(p, e, "default", {}), J(() => {
9307
9370
  Ft(d, 1, Bn(o), "svelte-8cxv3l"), ke(d, "type", n()), ke(d, "id", e.id);
9308
9371
  }), yn("click", d, function(...f) {
@@ -9314,17 +9377,17 @@ function Ji(t, e) {
9314
9377
  e.href ? h(u) : h(l, !1);
9315
9378
  });
9316
9379
  }
9317
- P(t, a), zt();
9380
+ P(t, a), jt();
9318
9381
  }
9319
9382
  Ks(["click"]);
9320
- var Jf = /* @__PURE__ */ K('<form class="wr-Search svelte-1wah7ro"><span class="wr-Search-icon svelte-1wah7ro"></span> <input class="wr-Search-input svelte-1wah7ro" type="text"/> <!></form>');
9321
- const Qf = {
9383
+ var Qf = /* @__PURE__ */ K('<form class="wr-Search svelte-1wah7ro"><span class="wr-Search-icon svelte-1wah7ro"></span> <input class="wr-Search-input svelte-1wah7ro" type="text"/> <!></form>');
9384
+ const Zf = {
9322
9385
  hash: "svelte-1wah7ro",
9323
9386
  code: `.wr-Search.svelte-1wah7ro {position:relative;margin:12px auto;padding:0 6px;display:flex;align-items:center;border:2px solid #d5d9ee;border-radius:10px;}.wr-Search-icon.svelte-1wah7ro {left:12px;width:24px;height:24px;flex:0 0 auto;background-image:url('https://czvgkhagwvmknscoerfy.supabase.co/storage/v1/object/public/static-media//search.svg?x=1');background-repeat:no-repeat;background-size:contain;z-index:2;}.wr-Search-input.svelte-1wah7ro {flex:1 1 0%;min-width:0;padding:12px;font-size:16px;border:none;border-radius:10px;outline:none;transition:border 0.2s ease;}.wr-Search-input.svelte-1wah7ro::placeholder {color:var(--wr-wineater-color);opacity:1;transition:color 0.3s ease,
9324
9387
  opacity 0.3s ease-in-out;}.wr-Search-input.svelte-1wah7ro:focus {border-color:var(--wr-brand-color);}.wr-Search-input.svelte-1wah7ro:focus::placeholder {opacity:0.5;}`
9325
9388
  };
9326
- function Zf(t, e) {
9327
- jt(e, !0), Ut(t, Qf);
9389
+ function $f(t, e) {
9390
+ zt(e, !0), Ut(t, Zf);
9328
9391
  let n = We(e, "searchQuery", 15), s, i = /* @__PURE__ */ oe(!1), r = /* @__PURE__ */ oe(0), o = /* @__PURE__ */ oe(0), a = /* @__PURE__ */ oe(!0), c = /* @__PURE__ */ oe(!1), u = /* @__PURE__ */ re(() => pe.getAppLanguage()), l = 0;
9329
9392
  function h() {
9330
9393
  return s;
@@ -9370,7 +9433,7 @@ function Zf(t, e) {
9370
9433
  s && e.initialized && !w(i) && !n().length && !w(c) && d(), n().length > 0 && w(c) && (D(c, !1), l++);
9371
9434
  }), cr(() => {
9372
9435
  });
9373
- var y = { getSearchElement: h }, S = Jf(), _ = G(A(S), 2);
9436
+ var y = { getSearchElement: h }, S = Qf(), _ = G(A(S), 2);
9374
9437
  Qc(_, (g) => s = g, () => s);
9375
9438
  var x = G(_, 2);
9376
9439
  return Ji(x, {
@@ -9387,10 +9450,10 @@ function Zf(t, e) {
9387
9450
  }), on("submit", S, function(...g) {
9388
9451
  var b;
9389
9452
  (b = e.onSubmit) == null || b.apply(this, g);
9390
- }), on("focus", _, f), on("blur", _, m), Jc(_, n), P(t, S), zt(y);
9453
+ }), on("focus", _, f), on("blur", _, m), Jc(_, n), P(t, S), jt(y);
9391
9454
  }
9392
- var $f = /* @__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>');
9393
- const ep = {
9455
+ var ep = /* @__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>');
9456
+ const tp = {
9394
9457
  hash: "svelte-li6gfl",
9395
9458
  code: `.wr-Loader.svelte-li6gfl {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:10000;text-align:center;}.wr-Loader-indicator.svelte-li6gfl {display:flex;justify-content:center;align-items:center;height:40px;visibility:visible;background-color:white;}.wr-Loader-indicator.svelte-li6gfl span:where(.svelte-li6gfl) {display:block;width:8px;height:8px;margin:0 3px;border-radius:50%;background:linear-gradient(90deg, var(--wr-brand-color), var(--wineater-corp-color));opacity:0.7;
9396
9459
  animation: svelte-li6gfl-typing 1s infinite;}
@@ -9407,26 +9470,26 @@ const ep = {
9407
9470
  }
9408
9471
  }.wr-Loader-indicator.svelte-li6gfl span:where(.svelte-li6gfl):nth-child(1) {animation-delay:0s;}.wr-Loader-indicator.svelte-li6gfl span:where(.svelte-li6gfl):nth-child(2) {animation-delay:0.15s;}.wr-Loader-indicator.svelte-li6gfl span:where(.svelte-li6gfl):nth-child(3) {animation-delay:0.3s;}`
9409
9472
  };
9410
- function tp(t) {
9411
- Ut(t, ep);
9412
- var e = $f();
9473
+ function np(t) {
9474
+ Ut(t, tp);
9475
+ var e = ep();
9413
9476
  P(t, e);
9414
9477
  }
9415
- var np = /* @__PURE__ */ K('<p class="wr-WinePopup-desc wr-WinePopup-text svelte-17gehox"> </p>'), sp = /* @__PURE__ */ K('<div class="wr-WinePopup-reason svelte-17gehox"> </div>'), ip = /* @__PURE__ */ K('<p class="wr-WinePopup-pairing wr-WinePopup-text svelte-17gehox"> </p>'), rp = /* @__PURE__ */ K('<span class="wr-WinePopup-tag svelte-17gehox"> </span>'), op = /* @__PURE__ */ K('<div class="wr-WinePopup-tags svelte-17gehox"></div>'), ap = /* @__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>'), lp = /* @__PURE__ */ K('<p class="wr-WinePopup-desc wr-WinePopup-text svelte-17gehox"> </p>'), cp = /* @__PURE__ */ K('<div class="wr-WinePopup-reason svelte-17gehox"> </div>'), up = /* @__PURE__ */ K('<p class="wr-WinePopup-pairing wr-WinePopup-text svelte-17gehox"> </p>'), hp = /* @__PURE__ */ K('<span class="wr-WinePopup-tag svelte-17gehox"> </span>'), dp = /* @__PURE__ */ K('<div class="wr-WinePopup-tags svelte-17gehox"></div>'), fp = /* @__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>');
9416
- const pp = {
9478
+ var sp = /* @__PURE__ */ K('<p class="wr-WinePopup-desc wr-WinePopup-text svelte-17gehox"> </p>'), ip = /* @__PURE__ */ K('<div class="wr-WinePopup-reason svelte-17gehox"> </div>'), rp = /* @__PURE__ */ K('<p class="wr-WinePopup-pairing wr-WinePopup-text svelte-17gehox"> </p>'), op = /* @__PURE__ */ K('<span class="wr-WinePopup-tag svelte-17gehox"> </span>'), ap = /* @__PURE__ */ K('<div class="wr-WinePopup-tags svelte-17gehox"></div>'), lp = /* @__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>'), cp = /* @__PURE__ */ K('<p class="wr-WinePopup-desc wr-WinePopup-text svelte-17gehox"> </p>'), up = /* @__PURE__ */ K('<div class="wr-WinePopup-reason svelte-17gehox"> </div>'), hp = /* @__PURE__ */ K('<p class="wr-WinePopup-pairing wr-WinePopup-text svelte-17gehox"> </p>'), dp = /* @__PURE__ */ K('<span class="wr-WinePopup-tag svelte-17gehox"> </span>'), fp = /* @__PURE__ */ K('<div class="wr-WinePopup-tags svelte-17gehox"></div>'), pp = /* @__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>');
9479
+ const gp = {
9417
9480
  hash: "svelte-17gehox",
9418
9481
  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;}"
9419
9482
  };
9420
9483
  function Oo(t, e) {
9421
- jt(e, !0), Ut(t, pp);
9484
+ zt(e, !0), Ut(t, gp);
9422
9485
  const n = !!e.isMobile;
9423
9486
  var s = lr(), i = qs(s);
9424
9487
  {
9425
9488
  var r = (a) => {
9426
- var c = ap(), u = A(c), l = G(u, 2), h = A(l), d = A(h), p = A(d), f = A(p), m = G(p, 2), y = G(d, 2);
9489
+ var c = lp(), u = A(c), l = G(u, 2), h = A(l), d = A(h), p = A(d), f = A(p), m = G(p, 2), y = G(d, 2);
9427
9490
  {
9428
9491
  var S = (I) => {
9429
- var k = np(), T = A(k);
9492
+ var k = sp(), T = A(k);
9430
9493
  J(() => ne(T, e.shortDescription)), P(I, k);
9431
9494
  };
9432
9495
  ce(y, (I) => {
@@ -9436,10 +9499,10 @@ function Oo(t, e) {
9436
9499
  var _ = G(y, 2);
9437
9500
  {
9438
9501
  var x = (I) => {
9439
- var k = sp(), T = A(k);
9502
+ var k = ip(), T = A(k);
9440
9503
  J(() => ne(T, e.reason)), P(I, k);
9441
9504
  }, g = (I) => {
9442
- var k = ip(), T = A(k);
9505
+ var k = rp(), T = A(k);
9443
9506
  J(() => ne(T, e.pairing)), P(I, k);
9444
9507
  };
9445
9508
  ce(_, (I) => {
@@ -9449,10 +9512,10 @@ function Oo(t, e) {
9449
9512
  var b = G(_, 2);
9450
9513
  {
9451
9514
  var E = (I) => {
9452
- var k = op();
9515
+ var k = ap();
9453
9516
  Zn(k, 21, () => e.tags, Qn, (T, M) => {
9454
- var V = rp(), z = A(V);
9455
- J(() => ne(z, w(M))), P(T, V);
9517
+ var V = op(), j = A(V);
9518
+ J(() => ne(j, w(M))), P(T, V);
9456
9519
  }), P(I, k);
9457
9520
  };
9458
9521
  ce(b, (I) => {
@@ -9467,10 +9530,10 @@ function Oo(t, e) {
9467
9530
  (k = e.onClose) == null || k.apply(this, I);
9468
9531
  }), P(a, c);
9469
9532
  }, o = (a) => {
9470
- var c = fp(), u = A(c), l = A(u), h = A(l), d = G(l, 2), p = G(u, 2);
9533
+ var c = pp(), u = A(c), l = A(u), h = A(l), d = G(l, 2), p = G(u, 2);
9471
9534
  {
9472
9535
  var f = (g) => {
9473
- var b = lp(), E = A(b);
9536
+ var b = cp(), E = A(b);
9474
9537
  J(() => ne(E, e.shortDescription)), P(g, b);
9475
9538
  };
9476
9539
  ce(p, (g) => {
@@ -9480,10 +9543,10 @@ function Oo(t, e) {
9480
9543
  var m = G(p, 2);
9481
9544
  {
9482
9545
  var y = (g) => {
9483
- var b = cp(), E = A(b);
9546
+ var b = up(), E = A(b);
9484
9547
  J(() => ne(E, e.reason)), P(g, b);
9485
9548
  }, S = (g) => {
9486
- var b = up(), E = A(b);
9549
+ var b = hp(), E = A(b);
9487
9550
  J(() => ne(E, e.pairing)), P(g, b);
9488
9551
  };
9489
9552
  ce(m, (g) => {
@@ -9493,9 +9556,9 @@ function Oo(t, e) {
9493
9556
  var _ = G(m, 2);
9494
9557
  {
9495
9558
  var x = (g) => {
9496
- var b = dp();
9559
+ var b = fp();
9497
9560
  Zn(b, 21, () => e.tags, Qn, (E, I) => {
9498
- var k = hp(), T = A(k);
9561
+ var k = dp(), T = A(k);
9499
9562
  J(() => ne(T, w(I))), P(E, k);
9500
9563
  }), P(g, b);
9501
9564
  };
@@ -9512,11 +9575,11 @@ function Oo(t, e) {
9512
9575
  n ? a(r) : a(o, !1);
9513
9576
  });
9514
9577
  }
9515
- P(t, s), zt();
9578
+ P(t, s), jt();
9516
9579
  }
9517
9580
  Ks(["click"]);
9518
- var gp = /* @__PURE__ */ K('<img class="wr-WineTile-image svelte-yk3emv"/>'), mp = /* @__PURE__ */ K('<div class="wr-WineTile-price svelte-yk3emv"> </div>'), vp = /* @__PURE__ */ K('<div class="wr-WineTile-params svelte-yk3emv"> </div>'), wp = /* @__PURE__ */ K('<div class="wr-WineTilePopup-reason svelte-yk3emv"> </div>'), bp = /* @__PURE__ */ K('<span class="wr-WineTilePopup-tag svelte-yk3emv"> </span>'), yp = /* @__PURE__ */ K('<div class="wr-WineTilePopup-tags svelte-yk3emv"></div>'), Sp = /* @__PURE__ */ K("<div><!> <!></div>"), _p = /* @__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);
9519
- const kp = {
9581
+ var mp = /* @__PURE__ */ K('<img class="wr-WineTile-image svelte-yk3emv"/>'), vp = /* @__PURE__ */ K('<div class="wr-WineTile-price svelte-yk3emv"> </div>'), wp = /* @__PURE__ */ K('<div class="wr-WineTile-params svelte-yk3emv"> </div>'), bp = /* @__PURE__ */ K('<div class="wr-WineTilePopup-reason svelte-yk3emv"> </div>'), yp = /* @__PURE__ */ K('<span class="wr-WineTilePopup-tag svelte-yk3emv"> </span>'), Sp = /* @__PURE__ */ K('<div class="wr-WineTilePopup-tags svelte-yk3emv"></div>'), _p = /* @__PURE__ */ K("<div><!> <!></div>"), kp = /* @__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);
9582
+ const Tp = {
9520
9583
  hash: "svelte-yk3emv",
9521
9584
  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),
9522
9585
  opacity 180ms cubic-bezier(0.22, 0.61, 0.36, 1);will-change:transform, opacity;}.wr-WineTile.svelte-yk3emv:last-child {border-right:none;}.wr-WineTile.ww-slide-up.svelte-yk3emv {transform:translateY(-28px);opacity:0;}.wr-WineTile-header.svelte-yk3emv {display:flex;flex-direction:column;align-items:center;justify-content:flex-start;}.wr-WineTile-image.svelte-yk3emv {height:200px;object-fit:contain;margin:0 auto 16px;display:block;}.wr-WineTile-title.svelte-yk3emv {font-size:15px;font-weight:500;margin:0 0 8px;min-height:3rem;line-height:1.2;text-align:center;color:#000;}.wr-WineTile-params.svelte-yk3emv {font-size:14px;color:#666;white-space:normal;text-align:center;}.wr-WineTile-footer.svelte-yk3emv {margin-top:auto;display:flex;align-items:center;gap:12px;justify-content:center;}.wr-WineTile-price.svelte-yk3emv {font-size:16px;font-weight:400;margin-bottom:8px;color:#333;}.wr-WineTile-actions.svelte-yk3emv {margin:16px auto 0;}
@@ -9538,13 +9601,13 @@ const kp = {
9538
9601
  @media screen and (max-width: 768px) {.wr-WineTile.svelte-yk3emv {flex:0 0 auto;scroll-snap-align:center;width:240px;text-align:center;}
9539
9602
  }`
9540
9603
  };
9541
- function Tp(t, e) {
9542
- jt(e, !0), Ut(t, kp);
9604
+ function xp(t, e) {
9605
+ zt(e, !0), Ut(t, Tp);
9543
9606
  let n = /* @__PURE__ */ re(() => pe.getAppLanguage());
9544
9607
  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(" • ");
9545
9608
  function r(N) {
9546
9609
  var O;
9547
- return Cf(N, ((O = pe.getCurrency) == null ? void 0 : O.call(pe)) || "USD", w(n));
9610
+ return Nf(N, ((O = pe.getCurrency) == null ? void 0 : O.call(pe)) || "USD", w(n));
9548
9611
  }
9549
9612
  function o(N) {
9550
9613
  return e.selectedWineId === N;
@@ -9565,10 +9628,10 @@ function Tp(t, e) {
9565
9628
  window.removeEventListener("resize", N);
9566
9629
  };
9567
9630
  });
9568
- var l = _p(), h = qs(l), d = A(h), p = A(d);
9631
+ var l = kp(), h = qs(l), d = A(h), p = A(d);
9569
9632
  {
9570
9633
  var f = (N) => {
9571
- var O = gp();
9634
+ var O = mp();
9572
9635
  J(() => {
9573
9636
  ke(O, "src", e.wine.image), ke(O, "alt", e.wine.title);
9574
9637
  }), P(N, O);
@@ -9580,7 +9643,7 @@ function Tp(t, e) {
9580
9643
  var m = G(p, 2);
9581
9644
  {
9582
9645
  var y = (N) => {
9583
- var O = mp(), te = A(O);
9646
+ var O = vp(), te = A(O);
9584
9647
  J((se) => ne(te, se), [() => r(e.wine.total)]), P(N, O);
9585
9648
  };
9586
9649
  ce(m, (N) => {
@@ -9590,7 +9653,7 @@ function Tp(t, e) {
9590
9653
  var S = G(m, 2), _ = A(S), x = G(d, 2);
9591
9654
  {
9592
9655
  var g = (N) => {
9593
- var O = vp(), te = A(O);
9656
+ var O = wp(), te = A(O);
9594
9657
  J((se) => ne(te, se), [
9595
9658
  () => i(e.wine, ["type", "country", "region", "grape"])
9596
9659
  ]), P(N, O);
@@ -9635,7 +9698,7 @@ function Tp(t, e) {
9635
9698
  }
9636
9699
  var V = G(E, 2);
9637
9700
  {
9638
- var z = (N) => {
9701
+ var j = (N) => {
9639
9702
  {
9640
9703
  let O = /* @__PURE__ */ re(() => {
9641
9704
  var C;
@@ -9671,19 +9734,19 @@ function Tp(t, e) {
9671
9734
  }
9672
9735
  }, Q = /* @__PURE__ */ re(() => o(e.wine.id) && !w(u));
9673
9736
  ce(V, (N) => {
9674
- w(Q) && N(z);
9737
+ w(Q) && N(j);
9675
9738
  });
9676
9739
  }
9677
9740
  var F = G(V, 2);
9678
9741
  {
9679
9742
  var L = (N) => {
9680
- var O = Sp(), te = A(O);
9743
+ var O = _p(), te = A(O);
9681
9744
  {
9682
9745
  var se = (B) => {
9683
- var ee = wp(), ve = A(ee);
9746
+ var ee = bp(), ve = A(ee);
9684
9747
  J(() => {
9685
- var ze, Ie;
9686
- return ne(ve, ((ze = e.translatedPopup) == null ? void 0 : ze.reason) || ((Ie = e.translatedPopup) == null ? void 0 : Ie.shortDescription) || e.wine.reason || e.wine.shortDescription);
9748
+ var je, Ie;
9749
+ return ne(ve, ((je = e.translatedPopup) == null ? void 0 : je.reason) || ((Ie = e.translatedPopup) == null ? void 0 : Ie.shortDescription) || e.wine.reason || e.wine.shortDescription);
9687
9750
  }), P(B, ee);
9688
9751
  };
9689
9752
  ce(te, (B) => {
@@ -9694,10 +9757,10 @@ function Tp(t, e) {
9694
9757
  var ae = G(te, 2);
9695
9758
  {
9696
9759
  var C = (B) => {
9697
- var ee = yp();
9698
- Zn(ee, 21, () => c(e.translatedPopup, e.wine), Qn, (ve, ze) => {
9699
- var Ie = bp(), Ce = A(Ie);
9700
- J(() => ne(Ce, w(ze))), P(ve, Ie);
9760
+ var ee = Sp();
9761
+ Zn(ee, 21, () => c(e.translatedPopup, e.wine), Qn, (ve, je) => {
9762
+ var Ie = yp(), Ce = A(Ie);
9763
+ J(() => ne(Ce, w(je))), P(ve, Ie);
9701
9764
  }), P(B, ee);
9702
9765
  };
9703
9766
  ce(ae, (B) => {
@@ -9754,10 +9817,10 @@ function Tp(t, e) {
9754
9817
  }
9755
9818
  J(() => {
9756
9819
  Ft(h, 1, `wr-WineTile ${e.isAnimating ? "ww-slide-up" : ""}`, "svelte-yk3emv"), ne(_, `${(e.wine.producer ? e.wine.producer : "") ?? ""} ${e.wine.title ?? ""}`);
9757
- }), on("mouseenter", h, () => e.onTileEnter(e.wine)), on("mouseleave", h, () => e.onTileLeave(e.wine)), yn("click", h, (N) => e.onTileClick(N, e.wine)), P(t, l), zt();
9820
+ }), on("mouseenter", h, () => e.onTileEnter(e.wine)), on("mouseleave", h, () => e.onTileLeave(e.wine)), yn("click", h, (N) => e.onTileClick(N, e.wine)), P(t, l), jt();
9758
9821
  }
9759
9822
  Ks(["click"]);
9760
- function xp(t) {
9823
+ function Ep(t) {
9761
9824
  if (!t)
9762
9825
  return "";
9763
9826
  const e = "custom-ui-config-style";
@@ -9765,8 +9828,8 @@ function xp(t) {
9765
9828
  const n = document.createElement("style");
9766
9829
  return n.id = e, n.innerHTML = t, document.head.appendChild(n), e;
9767
9830
  }
9768
- var Ep = /* @__PURE__ */ K('<div class="wr-App-picture svelte-1n46o8q"><img class="wr-App-logo svelte-1n46o8q" alt=""/></div>'), Ip = /* @__PURE__ */ K('<div class="wr-App-error svelte-1n46o8q"><p> </p></div>'), Cp = /* @__PURE__ */ K('<div class="wr-App-placeholder svelte-1n46o8q"></div>'), Np = /* @__PURE__ */ K('<div id="wr-Custom" class="wr-App svelte-1n46o8q"><!> <!> <!> <!> <div class="wr-App-content svelte-1n46o8q"><!></div> <!></div>');
9769
- const Rp = {
9831
+ var Ip = /* @__PURE__ */ K('<div class="wr-App-picture svelte-1n46o8q"><img class="wr-App-logo svelte-1n46o8q" alt=""/></div>'), Cp = /* @__PURE__ */ K('<div class="wr-App-error svelte-1n46o8q"><p> </p></div>'), Np = /* @__PURE__ */ K('<div class="wr-App-placeholder svelte-1n46o8q"></div>'), Rp = /* @__PURE__ */ K('<div id="wr-Custom" class="wr-App svelte-1n46o8q"><!> <!> <!> <!> <div class="wr-App-content svelte-1n46o8q"><!></div> <!></div>');
9832
+ const Dp = {
9770
9833
  hash: "svelte-1n46o8q",
9771
9834
  code: `
9772
9835
  /* ===================== 1) CSS Variables ===================== */:root {--wineater-corp-color: #0044ff;
@@ -9782,9 +9845,9 @@ const Rp = {
9782
9845
  @media screen and (max-width: 768px) {.wr-App.svelte-1n46o8q {flex-direction:column;padding:0px 16px;min-width:100vw;}.wr-App-placeholder.svelte-1n46o8q {display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;padding:8px 0;width:calc(100vw - 32px);min-width:calc(100vw - 32px);}
9783
9846
  }`
9784
9847
  };
9785
- function Dp(t, e) {
9848
+ function Op(t, e) {
9786
9849
  var te, se, ae;
9787
- jt(e, !0), Ut(t, Rp);
9850
+ zt(e, !0), Ut(t, Dp);
9788
9851
  function n() {
9789
9852
  var C;
9790
9853
  ur("chatbotToken", ((C = window.wineaterData) == null ? void 0 : C.CLIENT_TOKEN) || s, 365), Ia();
@@ -9811,14 +9874,14 @@ function Dp(t, e) {
9811
9874
  "tags"
9812
9875
  ], ee = C[0];
9813
9876
  if (!ee) return C.map(() => ({}));
9814
- const ve = B.filter((Ce) => Ce in ee), ze = 4, Ie = [];
9815
- for (let Ce = 0; Ce < C.length; Ce += ze) {
9816
- const xt = C.slice(Ce, Ce + ze).map(async (cs) => {
9877
+ const ve = B.filter((Ce) => Ce in ee), je = 4, Ie = [];
9878
+ for (let Ce = 0; Ce < C.length; Ce += je) {
9879
+ const xt = C.slice(Ce, Ce + je).map(async (cs) => {
9817
9880
  const us = ve.map((le) => {
9818
9881
  const Me = cs[le] || cs[le.toLowerCase()];
9819
9882
  return Me ? { key: le, text: Array.isArray(Me) ? Me.join(", ") : Me } : null;
9820
9883
  }).filter(Boolean);
9821
- return us.length === 0 ? {} : await Nf({
9884
+ return us.length === 0 ? {} : await Rf({
9822
9885
  sourceLang: w(S),
9823
9886
  targetLang: w(y),
9824
9887
  texts: Object.fromEntries(us.map((le) => [le.key, le.text])),
@@ -9883,7 +9946,7 @@ function Dp(t, e) {
9883
9946
  console.error("translatePopupContent failed", C);
9884
9947
  }
9885
9948
  });
9886
- function z(C, B) {
9949
+ function j(C, B) {
9887
9950
  w(l) && w(l) !== C.id && D(l, null), D(l, C.id, !0), rt(at.WINE_DETAILS_VIEWED, w(x), {
9888
9951
  wine_id: C.id,
9889
9952
  wine_title: C.title,
@@ -9915,27 +9978,27 @@ function Dp(t, e) {
9915
9978
  (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);
9916
9979
  }), cr(async () => {
9917
9980
  if (await pe.initializeStore(), !!w(g))
9918
- return D(b, pe.getUiConfig()), w(b).customCss && xp(w(b).customCss), await T(), rt(at.WIDGET_INITIALIZED, w(x)), D(a, !0), document.addEventListener("click", R), () => {
9981
+ return D(b, pe.getUiConfig()), w(b).customCss && Ep(w(b).customCss), await T(), rt(at.WIDGET_INITIALIZED, w(x)), D(a, !0), document.addEventListener("click", R), () => {
9919
9982
  document.removeEventListener("click", R);
9920
9983
  };
9921
9984
  });
9922
9985
  var Y = lr(), N = qs(Y);
9923
9986
  {
9924
9987
  var O = (C) => {
9925
- var B = Np(), ee = A(B);
9988
+ var B = Rp(), ee = A(B);
9926
9989
  {
9927
9990
  var ve = (le) => {
9928
- var Me = Ep(), zn = A(Me);
9929
- J(() => ke(zn, "src", w(b).logoUrl)), P(le, Me);
9991
+ var Me = Ip(), jn = A(Me);
9992
+ J(() => ke(jn, "src", w(b).logoUrl)), P(le, Me);
9930
9993
  };
9931
9994
  ce(ee, (le) => {
9932
9995
  w(b).logoUrl && le(ve);
9933
9996
  });
9934
9997
  }
9935
- var ze = G(ee, 2);
9936
- zf(ze, {});
9937
- var Ie = G(ze, 2);
9938
- Zf(Ie, {
9998
+ var je = G(ee, 2);
9999
+ Uf(je, {});
10000
+ var Ie = G(je, 2);
10001
+ $f(Ie, {
9939
10002
  onSubmit: V,
9940
10003
  get initialized() {
9941
10004
  return w(a);
@@ -9949,22 +10012,22 @@ function Dp(t, e) {
9949
10012
  });
9950
10013
  var Ce = G(Ie, 2);
9951
10014
  {
9952
- var jn = (le) => {
9953
- tp(le);
10015
+ var zn = (le) => {
10016
+ np(le);
9954
10017
  };
9955
10018
  ce(Ce, (le) => {
9956
- w(c) && le(jn);
10019
+ w(c) && le(zn);
9957
10020
  });
9958
10021
  }
9959
10022
  var xt = G(Ce, 2), Ht = A(xt);
9960
10023
  {
9961
10024
  var cs = (le) => {
9962
- var Me = Ip(), zn = A(Me), ei = A(zn);
10025
+ var Me = Cp(), jn = A(Me), ei = A(jn);
9963
10026
  J(() => ne(ei, w(d))), P(le, Me);
9964
10027
  }, us = (le) => {
9965
- var Me = Cp();
9966
- Zn(Me, 21, () => w(u), Qn, (zn, ei, Er) => {
9967
- Tp(zn, {
10028
+ var Me = Np();
10029
+ Zn(Me, 21, () => w(u), Qn, (jn, ei, Er) => {
10030
+ xp(jn, {
9968
10031
  get wine() {
9969
10032
  return w(ei);
9970
10033
  },
@@ -9981,7 +10044,7 @@ function Dp(t, e) {
9981
10044
  get translatedPopup() {
9982
10045
  return w(m)[Er];
9983
10046
  },
9984
- onBuyClick: z,
10047
+ onBuyClick: j,
9985
10048
  onPopupClose: Q,
9986
10049
  onTileEnter: L,
9987
10050
  onTileLeave: X,
@@ -9994,7 +10057,7 @@ function Dp(t, e) {
9994
10057
  });
9995
10058
  }
9996
10059
  var xr = G(xt, 2);
9997
- Gf(xr, {
10060
+ Kf(xr, {
9998
10061
  get countryCode() {
9999
10062
  return o;
10000
10063
  }
@@ -10004,9 +10067,9 @@ function Dp(t, e) {
10004
10067
  w(g) && C(O);
10005
10068
  });
10006
10069
  }
10007
- P(t, Y), zt();
10070
+ P(t, Y), jt();
10008
10071
  }
10009
- const Pp = Mc(Dp, { target: document.getElementById("wineater-widget-conteiner") });
10072
+ const Lp = Mc(Op, { target: document.getElementById("wineater-widget-conteiner") });
10010
10073
  export {
10011
- Pp as default
10074
+ Lp as default
10012
10075
  };