@streamlayer/react 1.14.0 → 1.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/lib/cjs/advertisement.js +30 -30
  2. package/lib/cjs/bet-pack.js +1 -1
  3. package/lib/cjs/gamification-feature2.js +1 -1
  4. package/lib/cjs/index2.js +5 -5
  5. package/lib/cjs/masters2.js +3 -3
  6. package/lib/cjs/provider.js +1 -1
  7. package/lib/cjs/useStreamLayerApp2.js +6 -6
  8. package/lib/classic/cjs/advertisement.js +30 -30
  9. package/lib/classic/cjs/bet-pack.js +1 -1
  10. package/lib/classic/cjs/gamification-feature2.js +1 -1
  11. package/lib/classic/cjs/index2.js +5 -5
  12. package/lib/classic/cjs/masters2.js +3 -3
  13. package/lib/classic/cjs/provider.js +1 -1
  14. package/lib/classic/cjs/useStreamLayerApp2.js +6 -6
  15. package/lib/classic/es/advertisement.js +2205 -2193
  16. package/lib/classic/es/bet-pack.js +1 -1
  17. package/lib/classic/es/gamification-feature2.js +1 -1
  18. package/lib/classic/es/index2.js +697 -685
  19. package/lib/classic/es/masters2.js +202 -231
  20. package/lib/classic/es/provider.js +2 -2
  21. package/lib/classic/es/useStreamLayerApp2.js +147 -138
  22. package/lib/classic/style.css +1 -1
  23. package/lib/dist/cjs/gamification-feature.js +1 -1
  24. package/lib/dist/cjs/gamification-feature2.js +1 -1
  25. package/lib/dist/cjs/masters.js +22 -22
  26. package/lib/dist/es/gamification-feature.js +1 -1
  27. package/lib/dist/es/gamification-feature2.js +45 -45
  28. package/lib/dist/es/index.js +3 -3
  29. package/lib/dist/es/masters.js +3057 -3065
  30. package/lib/dist/style.css +1 -1
  31. package/lib/es/advertisement.js +2205 -2193
  32. package/lib/es/bet-pack.js +1 -1
  33. package/lib/es/gamification-feature2.js +1 -1
  34. package/lib/es/index2.js +697 -685
  35. package/lib/es/masters2.js +202 -231
  36. package/lib/es/provider.js +2 -2
  37. package/lib/es/useStreamLayerApp2.js +147 -138
  38. package/lib/style.css +1 -1
  39. package/package.json +14 -14
@@ -186,7 +186,7 @@ function nl(e, t, n) {
186
186
  }
187
187
  const Js = tl;
188
188
  ps.exports = Je;
189
- const en = fl().console || {}, al = {
189
+ const nn = fl().console || {}, al = {
190
190
  mapHttpRequest: un,
191
191
  mapHttpResponse: un,
192
192
  wrapRequestSerializer: ca,
@@ -218,7 +218,7 @@ function Xs(e, t) {
218
218
  function ol(e, t, n) {
219
219
  const a = {};
220
220
  t.forEach((s) => {
221
- a[s] = n[s] ? n[s] : en[s] || en[sl[s] || "log"] || Pt;
221
+ a[s] = n[s] ? n[s] : nn[s] || nn[sl[s] || "log"] || Pt;
222
222
  }), e[Ts] = a;
223
223
  }
224
224
  function rl(e, t) {
@@ -231,7 +231,7 @@ function Je(e) {
231
231
  const t = e.browser.transmit;
232
232
  if (t && typeof t.send != "function")
233
233
  throw Error("pino: transmit option must have a send function");
234
- const n = e.browser.write || en;
234
+ const n = e.browser.write || nn;
235
235
  e.browser.write && (e.browser.asObject = !0);
236
236
  const a = e.serializers || {}, s = rl(e.browser.serialize, a);
237
237
  let o = e.browser.serialize;
@@ -359,7 +359,7 @@ function ml(e, t) {
359
359
  function ul(e, t, n, a) {
360
360
  return /* @__PURE__ */ function(s) {
361
361
  return function() {
362
- const r = t.timestamp(), c = new Array(arguments.length), l = Object.getPrototypeOf && Object.getPrototypeOf(this) === en ? en : this;
362
+ const r = t.timestamp(), c = new Array(arguments.length), l = Object.getPrototypeOf && Object.getPrototypeOf(this) === nn ? nn : this;
363
363
  for (var m = 0; m < c.length; m++) c[m] = arguments[m];
364
364
  var u = !1;
365
365
  if (t.serialize && (ys(c, this._serialize, this.serializers, this._stdErrSerialize), u = !0), t.asObject || t.formatters ? s.call(l, dl(this, a, c, r, t)) : s.apply(l, c), t.transmit) {
@@ -857,7 +857,7 @@ function tt(e, t, n) {
857
857
  }
858
858
  return !1;
859
859
  }
860
- function Ut(e, t) {
860
+ function Ft(e, t) {
861
861
  switch (e) {
862
862
  case E.BOOL:
863
863
  return !1;
@@ -1228,7 +1228,7 @@ function Cl(e) {
1228
1228
  case "enum":
1229
1229
  return t.T.values[0].no;
1230
1230
  case "scalar":
1231
- return Ut(t.T, t.L);
1231
+ return Ft(t.T, t.L);
1232
1232
  case "message":
1233
1233
  const n = t.T, a = new n();
1234
1234
  return n.fieldWrapper ? n.fieldWrapper.unwrapField(a) : a;
@@ -1382,7 +1382,7 @@ function ao(e, t) {
1382
1382
  t[n] = a ? e.T.values[0].no : void 0;
1383
1383
  break;
1384
1384
  case "scalar":
1385
- t[n] = a ? Ut(e.T, e.L) : void 0;
1385
+ t[n] = a ? Ft(e.T, e.L) : void 0;
1386
1386
  break;
1387
1387
  case "message":
1388
1388
  t[n] = void 0;
@@ -1481,7 +1481,7 @@ function ql() {
1481
1481
  return a;
1482
1482
  },
1483
1483
  readScalar(e, t, n) {
1484
- return Wt(e, t, n ?? ot.BIGINT, !0);
1484
+ return Jt(e, t, n ?? ot.BIGINT, !0);
1485
1485
  },
1486
1486
  writeScalar(e, t, n) {
1487
1487
  if (t !== void 0 && (n || ti(e, t)))
@@ -1523,7 +1523,7 @@ function ro(e, t, n, a, s) {
1523
1523
  break;
1524
1524
  case "scalar":
1525
1525
  try {
1526
- r.push(Wt(n.T, c, n.L, !0));
1526
+ r.push(Jt(n.T, c, n.L, !0));
1527
1527
  } catch (m) {
1528
1528
  let u = `cannot decode field ${s.typeName}.${n.name} from JSON: ${De(c)}`;
1529
1529
  throw m instanceof Error && m.message.length > 0 && (u += `: ${m.message}`), new Error(u);
@@ -1557,7 +1557,7 @@ function ro(e, t, n, a, s) {
1557
1557
  break;
1558
1558
  case "scalar":
1559
1559
  try {
1560
- r[m] = Wt(n.V.T, l, ot.BIGINT, !0);
1560
+ r[m] = Jt(n.V.T, l, ot.BIGINT, !0);
1561
1561
  } catch (d) {
1562
1562
  let y = `cannot decode map value for field ${s.typeName}.${n.name} from JSON: ${De(t)}`;
1563
1563
  throw d instanceof Error && d.message.length > 0 && (y += `: ${d.message}`), new Error(y);
@@ -1589,7 +1589,7 @@ function ro(e, t, n, a, s) {
1589
1589
  break;
1590
1590
  case "scalar":
1591
1591
  try {
1592
- const m = Wt(n.T, t, n.L, !1);
1592
+ const m = Jt(n.T, t, n.L, !1);
1593
1593
  switch (m) {
1594
1594
  case Cn:
1595
1595
  ao(n, e);
@@ -1615,11 +1615,11 @@ function xl(e, t) {
1615
1615
  t = !1;
1616
1616
  break;
1617
1617
  }
1618
- return Wt(e, t, ot.BIGINT, !0).toString();
1618
+ return Jt(e, t, ot.BIGINT, !0).toString();
1619
1619
  }
1620
- function Wt(e, t, n, a) {
1620
+ function Jt(e, t, n, a) {
1621
1621
  if (t === null)
1622
- return a ? Ut(e, n) : Cn;
1622
+ return a ? Ft(e, n) : Cn;
1623
1623
  switch (e) {
1624
1624
  case E.DOUBLE:
1625
1625
  case E.FLOAT:
@@ -1915,10 +1915,10 @@ function $l(e, t, n) {
1915
1915
  break;
1916
1916
  }
1917
1917
  }
1918
- if (o === void 0 && (o = Ut(e.K, ot.BIGINT)), typeof o != "string" && typeof o != "number" && (o = o.toString()), r === void 0)
1918
+ if (o === void 0 && (o = Ft(e.K, ot.BIGINT)), typeof o != "string" && typeof o != "number" && (o = o.toString()), r === void 0)
1919
1919
  switch (e.V.kind) {
1920
1920
  case "scalar":
1921
- r = Ut(e.V.T, ot.BIGINT);
1921
+ r = Ft(e.V.T, ot.BIGINT);
1922
1922
  break;
1923
1923
  case "enum":
1924
1924
  r = e.V.T.values[0].no;
@@ -1979,9 +1979,9 @@ function uo(e, t, n, a) {
1979
1979
  zl(n, o, e.no, t);
1980
1980
  else
1981
1981
  for (const r of t)
1982
- zt(n, o, e.no, r);
1982
+ Xt(n, o, e.no, r);
1983
1983
  else
1984
- zt(n, o, e.no, t);
1984
+ Xt(n, o, e.no, t);
1985
1985
  break;
1986
1986
  case "message":
1987
1987
  if (s) {
@@ -2013,12 +2013,12 @@ function Wl(e, t, n, a, s) {
2013
2013
  ee(a == "true" || a == "false"), o = a == "true";
2014
2014
  break;
2015
2015
  }
2016
- switch (zt(e, n.K, 1, o), n.V.kind) {
2016
+ switch (Xt(e, n.K, 1, o), n.V.kind) {
2017
2017
  case "scalar":
2018
- zt(e, n.V.T, 2, s);
2018
+ Xt(e, n.V.T, 2, s);
2019
2019
  break;
2020
2020
  case "enum":
2021
- zt(e, E.INT32, 2, s);
2021
+ Xt(e, E.INT32, 2, s);
2022
2022
  break;
2023
2023
  case "message":
2024
2024
  ee(s !== void 0), e.tag(2, ne.LengthDelimited).bytes(s.toBinary(t));
@@ -2030,7 +2030,7 @@ function po(e, t, n, a) {
2030
2030
  const s = ri(n.T, a);
2031
2031
  n.delimited ? e.tag(n.no, ne.StartGroup).raw(s.toBinary(t)).tag(n.no, ne.EndGroup) : e.tag(n.no, ne.LengthDelimited).bytes(s.toBinary(t));
2032
2032
  }
2033
- function zt(e, t, n, a) {
2033
+ function Xt(e, t, n, a) {
2034
2034
  ee(a !== void 0);
2035
2035
  let [s, o] = ii(t);
2036
2036
  e.tag(n, s)[o](a);
@@ -2082,12 +2082,12 @@ function Jl() {
2082
2082
  continue;
2083
2083
  const l = a.findField(c);
2084
2084
  let m = r[s].value;
2085
- l && l.kind == "message" && !gt(m, l.T) ? m = new l.T(m) : l && l.kind === "scalar" && l.T === E.BYTES && (m = Yt(m)), o[s] = { case: c, value: m };
2085
+ l && l.kind == "message" && !gt(m, l.T) ? m = new l.T(m) : l && l.kind === "scalar" && l.T === E.BYTES && (m = $t(m)), o[s] = { case: c, value: m };
2086
2086
  break;
2087
2087
  case "scalar":
2088
2088
  case "enum":
2089
2089
  let u = r[s];
2090
- a.T === E.BYTES && (u = a.repeated ? u.map(Yt) : Yt(u)), o[s] = u;
2090
+ a.T === E.BYTES && (u = a.repeated ? u.map($t) : $t(u)), o[s] = u;
2091
2091
  break;
2092
2092
  case "map":
2093
2093
  switch (a.V.kind) {
@@ -2095,7 +2095,7 @@ function Jl() {
2095
2095
  case "enum":
2096
2096
  if (a.V.T === E.BYTES)
2097
2097
  for (const [T, g] of Object.entries(r[s]))
2098
- o[s][T] = Yt(g);
2098
+ o[s][T] = $t(g);
2099
2099
  else
2100
2100
  Object.assign(o[s], r[s]);
2101
2101
  break;
@@ -2114,7 +2114,7 @@ function Jl() {
2114
2114
  o[s] = r[s].map((y) => gt(y, d) ? y : new d(y));
2115
2115
  else {
2116
2116
  const y = r[s];
2117
- d.fieldWrapper ? /* We can't use BytesValue.typeName as that will create a circular import */ d.typeName === "google.protobuf.BytesValue" ? o[s] = Yt(y) : o[s] = y : o[s] = gt(y, d) ? y : new d(y);
2117
+ d.fieldWrapper ? /* We can't use BytesValue.typeName as that will create a circular import */ d.typeName === "google.protobuf.BytesValue" ? o[s] = $t(y) : o[s] = y : o[s] = gt(y, d) ? y : new d(y);
2118
2118
  }
2119
2119
  break;
2120
2120
  }
@@ -2207,7 +2207,7 @@ function dn(e) {
2207
2207
  }
2208
2208
  return e;
2209
2209
  }
2210
- function Yt(e) {
2210
+ function $t(e) {
2211
2211
  return e instanceof Uint8Array ? e : new Uint8Array(e);
2212
2212
  }
2213
2213
  function Xl(e, t, n) {
@@ -2379,7 +2379,7 @@ const i = Xl(
2379
2379
  a[n] = {};
2380
2380
  break;
2381
2381
  case "scalar":
2382
- a[n] = Ut(t.T, t.L);
2382
+ a[n] = Ft(t.T, t.L);
2383
2383
  break;
2384
2384
  }
2385
2385
  }
@@ -3443,7 +3443,7 @@ const cm = /* @__PURE__ */ i.makeEnum(
3443
3443
  /* ScalarType.UINT64 */
3444
3444
  }
3445
3445
  ]
3446
- ), qt = /* @__PURE__ */ i.makeMessageType(
3446
+ ), Ht = /* @__PURE__ */ i.makeMessageType(
3447
3447
  "streamlayer.interactive.Sponsorship",
3448
3448
  () => [
3449
3449
  {
@@ -4036,7 +4036,7 @@ const cm = /* @__PURE__ */ i.makeEnum(
4036
4036
  "streamlayer.interactive.QuestionOptions.PromotionOptions",
4037
4037
  () => [
4038
4038
  { no: 1, name: "type", kind: "enum", T: i.getEnumType(ie) },
4039
- { no: 2, name: "sponsor", kind: "message", T: qt },
4039
+ { no: 2, name: "sponsor", kind: "message", T: Ht },
4040
4040
  { no: 3, name: "banner", kind: "message", T: yo },
4041
4041
  { no: 4, name: "enable_wallet", kind: "enum", T: i.getEnumType(Rm) },
4042
4042
  { no: 5, name: "additional_banner", kind: "message", T: yo },
@@ -4157,7 +4157,7 @@ const cm = /* @__PURE__ */ i.makeEnum(
4157
4157
  { no: 3, name: "subject", kind: "scalar", T: 9, opt: !0 },
4158
4158
  { no: 4, name: "options", kind: "message", T: gi },
4159
4159
  { no: 5, name: "appearance", kind: "message", T: Es },
4160
- { no: 6, name: "sponsorship", kind: "message", T: qt },
4160
+ { no: 6, name: "sponsorship", kind: "message", T: Ht },
4161
4161
  { no: 7, name: "notification", kind: "message", T: bs },
4162
4162
  { no: 8, name: "answers", kind: "message", T: xm, repeated: !0 },
4163
4163
  { no: 9, name: "status", kind: "enum", T: i.getEnumType(Z) },
@@ -4230,7 +4230,7 @@ const cm = /* @__PURE__ */ i.makeEnum(
4230
4230
  },
4231
4231
  { no: 4, name: "options", kind: "message", T: gi },
4232
4232
  { no: 5, name: "appearance", kind: "message", T: Es },
4233
- { no: 6, name: "sponsorship", kind: "message", T: qt },
4233
+ { no: 6, name: "sponsorship", kind: "message", T: Ht },
4234
4234
  { no: 7, name: "notification", kind: "message", T: bs },
4235
4235
  { no: 8, name: "answers", kind: "message", T: Hm, repeated: !0 },
4236
4236
  { no: 9, name: "status", kind: "enum", T: i.getEnumType(Z) },
@@ -4288,7 +4288,7 @@ const cm = /* @__PURE__ */ i.makeEnum(
4288
4288
  T: 9
4289
4289
  /* ScalarType.STRING */
4290
4290
  },
4291
- { no: 3, name: "sponsorship", kind: "message", T: qt },
4291
+ { no: 3, name: "sponsorship", kind: "message", T: Ht },
4292
4292
  {
4293
4293
  no: 4,
4294
4294
  name: "onboarding_enabled",
@@ -4342,7 +4342,7 @@ const cm = /* @__PURE__ */ i.makeEnum(
4342
4342
  ), uu = /* @__PURE__ */ i.makeMessageType(
4343
4343
  "streamlayer.interactive.EventModeration.SponsorshipSettings",
4344
4344
  () => [
4345
- { no: 1, name: "sponsors", kind: "message", T: qt, repeated: !0 }
4345
+ { no: 1, name: "sponsors", kind: "message", T: Ht, repeated: !0 }
4346
4346
  ],
4347
4347
  { localName: "EventModeration_SponsorshipSettings" }
4348
4348
  ), du = /* @__PURE__ */ i.makeMessageType(
@@ -4483,7 +4483,7 @@ const cm = /* @__PURE__ */ i.makeEnum(
4483
4483
  () => [
4484
4484
  { no: 1, name: "imports", kind: "map", K: 9, V: { kind: "message", T: fu } }
4485
4485
  ]
4486
- ), $t = /* @__PURE__ */ i.makeEnum(
4486
+ ), Wt = /* @__PURE__ */ i.makeEnum(
4487
4487
  "streamlayer.interactive.feed.PickHistoryStatus",
4488
4488
  [
4489
4489
  { no: 0, name: "PICK_HISTORY_STATUS_UNSET", localName: "UNSET" },
@@ -4964,7 +4964,7 @@ const cm = /* @__PURE__ */ i.makeEnum(
4964
4964
  T: 9
4965
4965
  /* ScalarType.STRING */
4966
4966
  },
4967
- { no: 3, name: "status", kind: "enum", T: i.getEnumType($t) },
4967
+ { no: 3, name: "status", kind: "enum", T: i.getEnumType(Wt) },
4968
4968
  { no: 4, name: "question_type", kind: "enum", T: i.getEnumType(M) },
4969
4969
  {
4970
4970
  no: 5,
@@ -5906,7 +5906,7 @@ const cm = /* @__PURE__ */ i.makeEnum(
5906
5906
  T: 8
5907
5907
  /* ScalarType.BOOL */
5908
5908
  },
5909
- { no: 3, name: "sponsors", kind: "message", T: qt, repeated: !0 }
5909
+ { no: 3, name: "sponsors", kind: "message", T: Ht, repeated: !0 }
5910
5910
  ]
5911
5911
  ), Kd = /* @__PURE__ */ i.makeMessageType(
5912
5912
  "streamlayer.sdkSettings.moderation.common.ModerationSettings",
@@ -6386,7 +6386,7 @@ const cm = /* @__PURE__ */ i.makeEnum(
6386
6386
  { no: 1, name: "default_channel", kind: "message", T: Fn },
6387
6387
  { no: 2, name: "channels", kind: "message", T: Fn, repeated: !0 }
6388
6388
  ]
6389
- ), Kt = /* @__PURE__ */ i.makeMessageType(
6389
+ ), zt = /* @__PURE__ */ i.makeMessageType(
6390
6390
  "streamlayer.sdkSettings.SdkOverlaySettings",
6391
6391
  () => [
6392
6392
  { no: 4, name: "twitter", kind: "message", T: np, oneof: "overlay_settings" },
@@ -6399,10 +6399,10 @@ const cm = /* @__PURE__ */ i.makeEnum(
6399
6399
  ), up = /* @__PURE__ */ i.makeMessageType(
6400
6400
  "streamlayer.sdkSettings.SdkOverlayMeta",
6401
6401
  () => [
6402
- { no: 1, name: "organization", kind: "message", T: Kt },
6403
- { no: 2, name: "global_preset", kind: "message", T: Kt },
6404
- { no: 3, name: "preset", kind: "message", T: Kt },
6405
- { no: 4, name: "stream", kind: "message", T: Kt }
6402
+ { no: 1, name: "organization", kind: "message", T: zt },
6403
+ { no: 2, name: "global_preset", kind: "message", T: zt },
6404
+ { no: 3, name: "preset", kind: "message", T: zt },
6405
+ { no: 4, name: "stream", kind: "message", T: zt }
6406
6406
  ]
6407
6407
  ), Ri = /* @__PURE__ */ i.makeMessageType(
6408
6408
  "streamlayer.sdkSettings.SdkOverlay",
@@ -6422,7 +6422,7 @@ const cm = /* @__PURE__ */ i.makeEnum(
6422
6422
  T: 8
6423
6423
  /* ScalarType.BOOL */
6424
6424
  },
6425
- { no: 5, name: "settings", kind: "message", T: Kt },
6425
+ { no: 5, name: "settings", kind: "message", T: zt },
6426
6426
  { no: 6, name: "meta", kind: "message", T: up },
6427
6427
  {
6428
6428
  no: 7,
@@ -6898,8 +6898,8 @@ var Pp = function(e) {
6898
6898
  o({ value: m, done: c });
6899
6899
  }, r);
6900
6900
  }
6901
- }, tn = function(e) {
6902
- return this instanceof tn ? (this.v = e, this) : new tn(e);
6901
+ }, an = function(e) {
6902
+ return this instanceof an ? (this.v = e, this) : new an(e);
6903
6903
  }, Mp = function(e, t, n) {
6904
6904
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
6905
6905
  var a = n.apply(e, t || []), s, o = [];
@@ -6926,7 +6926,7 @@ var Pp = function(e) {
6926
6926
  }
6927
6927
  }
6928
6928
  function m(T) {
6929
- T.value instanceof tn ? Promise.resolve(T.value.v).then(u, d) : y(o[0][2], T);
6929
+ T.value instanceof an ? Promise.resolve(T.value.v).then(u, d) : y(o[0][2], T);
6930
6930
  }
6931
6931
  function u(T) {
6932
6932
  l("next", T);
@@ -6946,13 +6946,13 @@ var Pp = function(e) {
6946
6946
  }, t;
6947
6947
  function a(s, o) {
6948
6948
  t[s] = e[s] ? function(r) {
6949
- return (n = !n) ? { value: tn(e[s](r)), done: !1 } : o ? o(r) : r;
6949
+ return (n = !n) ? { value: an(e[s](r)), done: !1 } : o ? o(r) : r;
6950
6950
  } : o;
6951
6951
  }
6952
6952
  };
6953
6953
  function Cp(e) {
6954
6954
  return Mp(this, arguments, function* () {
6955
- yield tn(yield* Dp(Pp(e)));
6955
+ yield an(yield* Dp(Pp(e)));
6956
6956
  });
6957
6957
  }
6958
6958
  var Pi = function(e) {
@@ -6973,8 +6973,8 @@ var Pi = function(e) {
6973
6973
  o({ value: m, done: c });
6974
6974
  }, r);
6975
6975
  }
6976
- }, Ft = function(e) {
6977
- return this instanceof Ft ? (this.v = e, this) : new Ft(e);
6976
+ }, Bt = function(e) {
6977
+ return this instanceof Bt ? (this.v = e, this) : new Bt(e);
6978
6978
  }, Up = function(e) {
6979
6979
  var t, n;
6980
6980
  return t = {}, a("next"), a("throw", function(s) {
@@ -6984,7 +6984,7 @@ var Pi = function(e) {
6984
6984
  }, t;
6985
6985
  function a(s, o) {
6986
6986
  t[s] = e[s] ? function(r) {
6987
- return (n = !n) ? { value: Ft(e[s](r)), done: !1 } : o ? o(r) : r;
6987
+ return (n = !n) ? { value: Bt(e[s](r)), done: !1 } : o ? o(r) : r;
6988
6988
  } : o;
6989
6989
  }
6990
6990
  }, Fp = function(e, t, n) {
@@ -7013,7 +7013,7 @@ var Pi = function(e) {
7013
7013
  }
7014
7014
  }
7015
7015
  function m(T) {
7016
- T.value instanceof Ft ? Promise.resolve(T.value.v).then(u, d) : y(o[0][2], T);
7016
+ T.value instanceof Bt ? Promise.resolve(T.value.v).then(u, d) : y(o[0][2], T);
7017
7017
  }
7018
7018
  function u(T) {
7019
7019
  l("next", T);
@@ -7087,8 +7087,8 @@ function Mi(e, t) {
7087
7087
  const n = function() {
7088
7088
  return Fp(this, arguments, function* () {
7089
7089
  var a, s;
7090
- const o = yield Ft(e);
7091
- (a = t == null ? void 0 : t.onHeader) === null || a === void 0 || a.call(t, o.header), yield Ft(yield* Up(Pi(o.message))), (s = t == null ? void 0 : t.onTrailer) === null || s === void 0 || s.call(t, o.trailer);
7090
+ const o = yield Bt(e);
7091
+ (a = t == null ? void 0 : t.onHeader) === null || a === void 0 || a.call(t, o.header), yield Bt(yield* Up(Pi(o.message))), (s = t == null ? void 0 : t.onTrailer) === null || s === void 0 || s.call(t, o.trailer);
7092
7092
  });
7093
7093
  }()[Symbol.asyncIterator]();
7094
7094
  return {
@@ -7162,7 +7162,7 @@ function vo(e) {
7162
7162
  }
7163
7163
  return t;
7164
7164
  }
7165
- const Qp = "Content-Type", Yp = "Grpc-Timeout", Bt = "Grpc-Status", Ci = "Grpc-Message", jp = "Grpc-Status-Details-Bin", $p = "X-User-Agent", Kp = "X-Grpc-Web", Wp = "application/grpc-web+proto", zp = "application/grpc-web+json";
7165
+ const Qp = "Content-Type", Yp = "Grpc-Timeout", Gt = "Grpc-Status", Ci = "Grpc-Message", jp = "Grpc-Status-Details-Bin", $p = "X-User-Agent", Kp = "X-Grpc-Web", Wp = "application/grpc-web+proto", zp = "application/grpc-web+json";
7166
7166
  class Ke extends sn {
7167
7167
  constructor(t) {
7168
7168
  super(), this.code = 0, this.message = "", this.details = [], i.util.initPartial(t, this);
@@ -7213,7 +7213,7 @@ function Ui(e) {
7213
7213
  value: r.value
7214
7214
  })), o;
7215
7215
  }
7216
- const a = e.get(Bt);
7216
+ const a = e.get(Gt);
7217
7217
  if (a != null) {
7218
7218
  if (a === Jp)
7219
7219
  return;
@@ -7354,7 +7354,7 @@ function Po(e, t) {
7354
7354
  throw t.forEach((a, s) => {
7355
7355
  n.metadata.append(s, a);
7356
7356
  }), n;
7357
- if (!t.has(Bt) && !e.has(Bt))
7357
+ if (!t.has(Gt) && !e.has(Gt))
7358
7358
  throw new $("protocol error: missing status", U.Internal);
7359
7359
  }
7360
7360
  function Mo(e, t, n, a) {
@@ -7387,7 +7387,7 @@ function Do(e, t) {
7387
7387
  var n;
7388
7388
  if (e >= 200 && e < 300)
7389
7389
  return {
7390
- foundStatus: t.has(Bt),
7390
+ foundStatus: t.has(Gt),
7391
7391
  headerError: Ui(t)
7392
7392
  };
7393
7393
  throw new $(decodeURIComponent((n = t.get(Ci)) !== null && n !== void 0 ? n : `HTTP ${e}`), aT(e), t);
@@ -7484,9 +7484,9 @@ function Co(e) {
7484
7484
  R = y(I);
7485
7485
  }
7486
7486
  if (w === void 0)
7487
- throw h !== void 0 ? h : new $("missing trailer", _.headers.has(Bt) ? U.Unimplemented : U.Unknown);
7487
+ throw h !== void 0 ? h : new $("missing trailer", _.headers.has(Gt) ? U.Unimplemented : U.Unknown);
7488
7488
  if (Po(w, _.headers), R === void 0)
7489
- throw new $("missing message", w.has(Bt) ? U.Unimplemented : U.Unknown);
7489
+ throw new $("missing message", w.has(Gt) ? U.Unimplemented : U.Unknown);
7490
7490
  return {
7491
7491
  stream: !1,
7492
7492
  service: a,
@@ -7665,7 +7665,7 @@ const Uo = ({
7665
7665
  J && ([I, B] = J, F && V());
7666
7666
  const {
7667
7667
  refetchInterval: qe = 0,
7668
- refetchOnFocus: Qt,
7668
+ refetchOnFocus: jt,
7669
7669
  refetchOnReconnect: et
7670
7670
  } = v, _e = () => {
7671
7671
  I && m([I, B], R, v);
@@ -7673,7 +7673,7 @@ const Uo = ({
7673
7673
  qe > 0 && o.set(
7674
7674
  h,
7675
7675
  setInterval(_e, qe)
7676
- ), Qt && Q.push(a.on(Bo, _e)), et && Q.push(a.on(Go, _e)), Q.push(
7676
+ ), jt && Q.push(a.on(Bo, _e)), et && Q.push(a.on(Go, _e)), Q.push(
7677
7677
  a.on(Vo, (Se) => {
7678
7678
  I && ga(I, Se) && m([I, B], R, v, !0);
7679
7679
  }),
@@ -12919,10 +12919,10 @@ const Ik = {
12919
12919
  [W.PUBLIC_CHAT]: "publicChat",
12920
12920
  [W.TWITTER]: "twitter"
12921
12921
  };
12922
- var Jt;
12922
+ var Zt;
12923
12923
  (function(e) {
12924
12924
  e.Ready = "ready", e.Suspended = "suspended";
12925
- })(Jt || (Jt = {}));
12925
+ })(Zt || (Zt = {}));
12926
12926
  class oc {
12927
12927
  constructor({ settings: t, ...n }, a) {
12928
12928
  p(this, "status");
@@ -12932,10 +12932,10 @@ class oc {
12932
12932
  p(this, "listeners", /* @__PURE__ */ new Set());
12933
12933
  p(this, "settingsKey");
12934
12934
  p(this, "enable", () => {
12935
- this.status.set(Jt.Ready);
12935
+ this.status.set(Zt.Ready);
12936
12936
  });
12937
12937
  p(this, "disable", () => {
12938
- this.status.set(Jt.Suspended);
12938
+ this.status.set(Zt.Suspended);
12939
12939
  });
12940
12940
  p(this, "setFeatureConfig", ({ settings: t, ...n }) => {
12941
12941
  var s;
@@ -12954,7 +12954,7 @@ class oc {
12954
12954
  p(this, "update", (t, n) => {
12955
12955
  this.source === Qe.STREAM && n === Qe.ORGANIZATION || (this.setFeatureConfig(t), this.source = n);
12956
12956
  });
12957
- this.settingsKey = Ik[n.type], this.status = it(Jt.Suspended), this.config = new ft(be(n), `feature:config:${this.settingsKey}`), this.settingsKey !== void 0 && (t == null ? void 0 : t.overlaySettings.case) === this.settingsKey ? this.settings = new ft(be(t.overlaySettings.value), `feature:settings:${this.settingsKey}`) : this.settings = new ft(be({}), `feature:settings:${this.settingsKey}`), this.source = a;
12957
+ this.settingsKey = Ik[n.type], this.status = it(Zt.Suspended), this.config = new ft(be(n), `feature:config:${this.settingsKey}`), this.settingsKey !== void 0 && (t == null ? void 0 : t.overlaySettings.case) === this.settingsKey ? this.settings = new ft(be(t.overlaySettings.value), `feature:settings:${this.settingsKey}`) : this.settings = new ft(be({}), `feature:settings:${this.settingsKey}`), this.source = a;
12958
12958
  }
12959
12959
  get featureConfig() {
12960
12960
  return this.config.getStore();
@@ -13097,7 +13097,7 @@ function rc(e) {
13097
13097
  e.name === "QuotaExceededError" || // Firefox
13098
13098
  e.name === "NS_ERROR_DOM_QUOTA_REACHED");
13099
13099
  }
13100
- class xt {
13100
+ class Qt {
13101
13101
  constructor(t = "main", n = window.localStorage) {
13102
13102
  p(this, "delimiter", ":");
13103
13103
  p(this, "prefix");
@@ -13499,7 +13499,7 @@ var xe;
13499
13499
  (function(e) {
13500
13500
  e.SCHEMA = "schema", e.EXTERNAL_TOKEN = "eToken", e.TOKEN = "token";
13501
13501
  })(xe || (xe = {}));
13502
- class wt extends xt {
13502
+ class wt extends Qt {
13503
13503
  constructor() {
13504
13504
  super("user");
13505
13505
  // Schema
@@ -13672,7 +13672,7 @@ const Yk = (e, t, n) => {
13672
13672
  return (s = (a = (await n.questionByUser({
13673
13673
  questionId: e
13674
13674
  })).data) == null ? void 0 : a.attributes) == null ? void 0 : s.question;
13675
- }, nn = (e, t) => {
13675
+ }, Dt = (e, t) => {
13676
13676
  const { client: n, queryKey: a } = t.createPromiseClient(Ie, { method: "questionByUser", params: [e] });
13677
13677
  return t.nanoquery.createFetcherStore(a, {
13678
13678
  fetcher: async (s, o, r) => {
@@ -13787,7 +13787,7 @@ const Yk = (e, t, n) => {
13787
13787
  return;
13788
13788
  const c = (m = n.get().data) == null ? void 0 : m.find((d) => d.id === (r == null ? void 0 : r.questionId)), l = (u = r == null ? void 0 : r.question) == null ? void 0 : u.openedFrom;
13789
13789
  return c ? (c.openedFrom = l, c) : r.question;
13790
- }), s = ho(a, (r) => r && r.type === "question" ? r.id : void 0), o = nn(s, e);
13790
+ }), s = ho(a, (r) => r && r.type === "question" ? r.id : void 0), o = Dt(s, e);
13791
13791
  return { $store: a, $extendedStore: o, updateExtendedQuestion: (r) => {
13792
13792
  const c = o.get().data, l = (m, u) => {
13793
13793
  if (!m || !u)
@@ -13816,7 +13816,7 @@ var Bn;
13816
13816
  (function(e) {
13817
13817
  e.SHOWED = "showed";
13818
13818
  })(Bn || (Bn = {}));
13819
- class ah extends xt {
13819
+ class ah extends Qt {
13820
13820
  constructor() {
13821
13821
  super("advertisement");
13822
13822
  p(this, "setShowed", (n) => {
@@ -13982,7 +13982,7 @@ var Le;
13982
13982
  (function(e) {
13983
13983
  e.ONBOARDING = "onboarding", e.ONBOARDING_IO = "onboarding_io", e.BET_PACK_ITEM_RECEIVED = "bp-item-received", e.QUESTION_OPENED = "q-opened";
13984
13984
  })(Le || (Le = {}));
13985
- class ih extends xt {
13985
+ class ih extends Qt {
13986
13986
  constructor() {
13987
13987
  super("gamification-session", window.sessionStorage);
13988
13988
  p(this, "writeValue", (n, a) => {
@@ -13991,7 +13991,7 @@ class ih extends xt {
13991
13991
  p(this, "readValue", (n) => this.read(...n));
13992
13992
  }
13993
13993
  }
13994
- class ch extends xt {
13994
+ class ch extends Qt {
13995
13995
  constructor() {
13996
13996
  super("gamification");
13997
13997
  p(this, "sessionStorage");
@@ -14090,7 +14090,7 @@ class lh {
14090
14090
  if (this.openedQuestion.updateExtendedQuestion(o), (o == null ? void 0 : o.type) === M.PREDICTION && (o.status === Z.ACTIVE || o.status === Z.RESOLVED)) {
14091
14091
  const l = this.betPack.getValues().data || {};
14092
14092
  if (l != null && l[o.id] || Object.keys(l).length < 5) {
14093
- const m = nn(o.id, this.transport), u = m.subscribe(() => {
14093
+ const m = Dt(o.id, this.transport), u = m.subscribe(() => {
14094
14094
  });
14095
14095
  await m.get().promise;
14096
14096
  let d = m.get().data;
@@ -14109,7 +14109,7 @@ class lh {
14109
14109
  if ((s == null ? void 0 : s.type) === M.PREDICTION && (s.status === Z.ACTIVE || s.status === Z.RESOLVED)) {
14110
14110
  const c = this.betPack.getValues().data || {};
14111
14111
  if (c != null && c[s.id] || Object.keys(c).length < 5) {
14112
- const l = nn(s.id, this.transport), m = l.subscribe(() => {
14112
+ const l = Dt(s.id, this.transport), m = l.subscribe(() => {
14113
14113
  });
14114
14114
  await l.get().promise;
14115
14115
  let u = l.get().data;
@@ -14272,7 +14272,7 @@ var Gn;
14272
14272
  (function(e) {
14273
14273
  e.OPENED = "opened";
14274
14274
  })(Gn || (Gn = {}));
14275
- class uh extends xt {
14275
+ class uh extends Qt {
14276
14276
  constructor() {
14277
14277
  super("notification");
14278
14278
  p(this, "setOpened", (n) => {
@@ -14330,17 +14330,17 @@ const ph = (e, t, n) => {
14330
14330
  e.notifications.queue.drain();
14331
14331
  }), n();
14332
14332
  };
14333
- var an;
14333
+ var Vt;
14334
14334
  (function(e) {
14335
14335
  e.UNKNOWN = "unknown", e.ALREADY_VOTED = "already_voted";
14336
- })(an || (an = {}));
14336
+ })(Vt || (Vt = {}));
14337
14337
  const dr = async (e, t) => {
14338
14338
  var o;
14339
14339
  const { client: n, createRequestOptions: a } = e.createPromiseClient(Ie, { method: "submitAnswer" }), s = a({ retryAttempts: 0 });
14340
14340
  try {
14341
14341
  return await n.submitAnswer({ data: t }, { contextValues: s });
14342
14342
  } catch (r) {
14343
- throw ((o = $.from(r)) == null ? void 0 : o.code) === U.AlreadyExists ? new Error(an.ALREADY_VOTED) : new Error(an.UNKNOWN);
14343
+ throw ((o = $.from(r)) == null ? void 0 : o.code) === U.AlreadyExists ? new Error(Vt.ALREADY_VOTED) : new Error(Vt.UNKNOWN);
14344
14344
  }
14345
14345
  }, lc = (e, t) => {
14346
14346
  const { client: n, createRequestOptions: a } = e.createPromiseClient(Ie, { method: "submitInplay" }), s = a({ retryAttempts: 0 });
@@ -14388,7 +14388,7 @@ const dr = async (e, t) => {
14388
14388
  };
14389
14389
  }), { $store: c, fetchMore: d, invalidate: u };
14390
14390
  };
14391
- class gh extends xt {
14391
+ class gh extends Qt {
14392
14392
  constructor() {
14393
14393
  super("deep-link-context", window.sessionStorage);
14394
14394
  p(this, "get", this.read);
@@ -14574,18 +14574,18 @@ class Eh extends Ek {
14574
14574
  this.$coreStore = n, this.deepLink = s, this.transport = a, this.bypassLogin = Uk(this.transport), this.connect();
14575
14575
  }
14576
14576
  }
14577
- const jt = new wt(), bh = (e, t, n) => {
14577
+ const Kt = new wt(), bh = (e, t, n) => {
14578
14578
  e.auth = new Eh(e.store, e.transport, e.deepLink), e.stores.status.listen((a) => {
14579
14579
  a === Ye.READY && e.auth.reLogin();
14580
14580
  }), e.sdk.userId = e.stores.user.getAtomStore, e.sdk.authorizationBypass = async (a, s) => {
14581
- if (!(jt.getSchema() === a && jt.getExternalToken() === s && e.transport.getHeader("authorization")))
14581
+ if (!(Kt.getSchema() === a && Kt.getExternalToken() === s && e.transport.getHeader("authorization")))
14582
14582
  try {
14583
- await e.auth.login(a, s), jt.setSchema(a), jt.setExternalToken(s);
14583
+ await e.auth.login(a, s), Kt.setSchema(a), Kt.setExternalToken(s);
14584
14584
  } catch {
14585
14585
  e.sdk.logout();
14586
14586
  }
14587
14587
  }, e.sdk.logout = () => {
14588
- e.auth.logout(), jt.clear();
14588
+ e.auth.logout(), Kt.clear();
14589
14589
  }, e.sdk.getUserStore = () => e.stores.user.getStore(), e.sdk.isUserAuthorized = () => e.auth.isAuthenticated(), n();
14590
14590
  }, gr = Ve("video_player"), kn = {
14591
14591
  debug: (...e) => {
@@ -15030,7 +15030,7 @@ class Ch extends oc {
15030
15030
  prefix: `notification-id:${c}`
15031
15031
  }), v = [...this.feedList.getValues().data || []], P = v.findIndex((J) => J.id === c), I = v[P];
15032
15032
  let B = (f = (g = (T = I == null ? void 0 : I.attributes) == null ? void 0 : T.attributes) == null ? void 0 : g.value) == null ? void 0 : f.answerId;
15033
- const A = nn(c, this.transport), H = A.subscribe(() => {
15033
+ const A = Dt(c, this.transport), H = A.subscribe(() => {
15034
15034
  });
15035
15035
  await A.get().promise;
15036
15036
  let Q = A.get().data;
@@ -15040,7 +15040,7 @@ class Ch extends oc {
15040
15040
  const V = l.find(({ correct: J }) => J), D = B ? l.find(({ id: J }) => J === B) : void 0, F = !!(D != null && D.correct);
15041
15041
  if (I && ((O = (h = v[P]) == null ? void 0 : h.attributes) == null ? void 0 : O.attributes.case) === "question") {
15042
15042
  try {
15043
- v[P].attributes.attributes.value.answerId = B, v[P].attributes.attributes.value.openForVoting = !1, B && (v[P].attributes.attributes.value.status = F ? $t.WON : $t.LOST);
15043
+ v[P].attributes.attributes.value.answerId = B, v[P].attributes.attributes.value.openForVoting = !1, B && (v[P].attributes.attributes.value.status = F ? Wt.WON : Wt.LOST);
15044
15044
  } catch {
15045
15045
  }
15046
15046
  this.feedList.getStore().mutate(v);
@@ -15135,7 +15135,16 @@ class Ch extends oc {
15135
15135
  this.background.feedSubscription.removeListener("feed-subscription-prediction-close"), this.background.feedSubscription.removeListener("feed-subscription-questions-list");
15136
15136
  });
15137
15137
  p(this, "betPackVote", async (n, a) => {
15138
- await dr(this.transport, { questionId: n, answerId: a });
15138
+ try {
15139
+ await dr(this.transport, { questionId: n, answerId: a });
15140
+ } catch (r) {
15141
+ if (r.message === Vt.ALREADY_VOTED) {
15142
+ const c = Dt(n, this.transport), l = c.subscribe(() => {
15143
+ });
15144
+ c.invalidate(), l();
15145
+ }
15146
+ throw r;
15147
+ }
15139
15148
  const s = { ...this.betPack.getValues().data }, o = s == null ? void 0 : s[n];
15140
15149
  o && (ae.emit("poll", {
15141
15150
  action: "voted",
@@ -15149,7 +15158,7 @@ class Ch extends oc {
15149
15158
  } : r), this.betPack.getStore().mutate(s));
15150
15159
  });
15151
15160
  p(this, "submitAnswer", async (n, a) => {
15152
- const s = nn(n, this.transport), o = s.subscribe(() => {
15161
+ const s = Dt(n, this.transport), o = s.subscribe(() => {
15153
15162
  }), r = { ...s.get().data || {} }, c = () => {
15154
15163
  var y;
15155
15164
  const l = this.feedList.getValues().data;
@@ -15167,7 +15176,7 @@ class Ch extends oc {
15167
15176
  const T = s.get().data;
15168
15177
  if (o(), T) {
15169
15178
  const g = T.answers.find((O) => O.correct === !0), f = T.answers.findIndex((O) => O.id === a), _ = T.answers[f], h = T.answers.every(({ percentageDecimal: O }, w) => O === (r == null ? void 0 : r.answers[w].percentageDecimal));
15170
- l[m].attributes.attributes.value.answerId = a, l[m].attributes.attributes.value.openForVoting = !1, l[m].attributes.attributes.value.text = (_ == null ? void 0 : _.text) || "", g && (l[m].attributes.attributes.value.status = g.id === a ? $t.WON : $t.LOST), this.feedList.getStore().mutate([...l]), T.answers[f].correct = (g == null ? void 0 : g.id) === a, T.answers[f].youVoted = !0, h && T.answers.forEach((O) => {
15179
+ l[m].attributes.attributes.value.answerId = a, l[m].attributes.attributes.value.openForVoting = !1, l[m].attributes.attributes.value.text = (_ == null ? void 0 : _.text) || "", g && (l[m].attributes.attributes.value.status = g.id === a ? Wt.WON : Wt.LOST), this.feedList.getStore().mutate([...l]), T.answers[f].correct = (g == null ? void 0 : g.id) === a, T.answers[f].youVoted = !0, h && T.answers.forEach((O) => {
15171
15180
  O.percentageDecimal = 0;
15172
15181
  }), (g == null ? void 0 : g.id) === a && (T.answers[f].pointsEarned = T.status === Z.RESOLVED ? 0 : g.points), s.mutate({ ...T });
15173
15182
  }
@@ -15179,7 +15188,7 @@ class Ch extends oc {
15179
15188
  try {
15180
15189
  await dr(this.transport, { questionId: n, answerId: a }), c();
15181
15190
  } catch (l) {
15182
- if (l.message === an.ALREADY_VOTED) {
15191
+ if (l.message === Vt.ALREADY_VOTED) {
15183
15192
  this.userSummary.invalidate();
15184
15193
  const m = s.subscribe(() => {
15185
15194
  });
@@ -15684,7 +15693,7 @@ class Hh {
15684
15693
  });
15685
15694
  }
15686
15695
  }
15687
- const Xt = {
15696
+ const en = {
15688
15697
  [M.UNSET]: re.UNSET,
15689
15698
  [M.FACTOID]: re.POLLS_INSIGHT,
15690
15699
  [M.POLL]: re.POLLS_POLL,
@@ -15723,7 +15732,7 @@ class Yh {
15723
15732
  ...this.analytics.commonStore.getValues(),
15724
15733
  kind: ce.NOTIFICATION_RECEIVED,
15725
15734
  topicId: t,
15726
- topicType: n ? Xt[n] : re.UNSET,
15735
+ topicType: n ? en[n] : re.UNSET,
15727
15736
  topicSubType: a
15728
15737
  },
15729
15738
  notificationKind: Ce.POLLS,
@@ -15736,7 +15745,7 @@ class Yh {
15736
15745
  ...this.analytics.commonStore.getValues(),
15737
15746
  kind: ce.NOTIFICATION_OPENED,
15738
15747
  topicId: t,
15739
- topicType: n ? Xt[n] : re.UNSET,
15748
+ topicType: n ? en[n] : re.UNSET,
15740
15749
  topicSubType: a
15741
15750
  },
15742
15751
  notificationKind: Ce.POLLS,
@@ -15787,7 +15796,7 @@ class jh {
15787
15796
  ...this.analytics.commonStore.getValues(),
15788
15797
  kind: ce.POLLS_RECEIVED,
15789
15798
  topicId: t,
15790
- topicType: n ? Xt[n] : re.UNSET
15799
+ topicType: n ? en[n] : re.UNSET
15791
15800
  },
15792
15801
  pollOpenedFrom: he.UNSET
15793
15802
  });
@@ -15799,7 +15808,7 @@ class jh {
15799
15808
  ...this.analytics.commonStore.getValues(),
15800
15809
  kind: ce.POLLS_OPENED,
15801
15810
  topicId: t,
15802
- topicType: n ? Xt[n] : re.UNSET
15811
+ topicType: n ? en[n] : re.UNSET
15803
15812
  },
15804
15813
  pollOpenedFrom: a === "list" ? he.PICK_HISTORY : he.IN_APP
15805
15814
  });
@@ -15811,7 +15820,7 @@ class jh {
15811
15820
  ...this.analytics.commonStore.getValues(),
15812
15821
  kind: ce.POLLS_VOTE,
15813
15822
  topicId: t,
15814
- topicType: n ? Xt[n] : re.UNSET
15823
+ topicType: n ? en[n] : re.UNSET
15815
15824
  },
15816
15825
  pollOpenedFrom: he.UNSET
15817
15826
  });
@@ -16122,10 +16131,10 @@ function t_(e, t, n) {
16122
16131
  }
16123
16132
  Fs.exports = dc;
16124
16133
  Fs.exports.promise = t_;
16125
- var pc = Fs.exports, Bs = { exports: {} }, Dt = typeof Reflect == "object" ? Reflect : null, hr = Dt && typeof Dt.apply == "function" ? Dt.apply : function(e, t, n) {
16134
+ var pc = Fs.exports, Bs = { exports: {} }, Ct = typeof Reflect == "object" ? Reflect : null, hr = Ct && typeof Ct.apply == "function" ? Ct.apply : function(e, t, n) {
16126
16135
  return Function.prototype.apply.call(e, t, n);
16127
16136
  }, An;
16128
- Dt && typeof Dt.ownKeys == "function" ? An = Dt.ownKeys : Object.getOwnPropertySymbols ? An = function(e) {
16137
+ Ct && typeof Ct.ownKeys == "function" ? An = Ct.ownKeys : Object.getOwnPropertySymbols ? An = function(e) {
16129
16138
  return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
16130
16139
  } : An = function(e) {
16131
16140
  return Object.getOwnPropertyNames(e);
@@ -16415,7 +16424,7 @@ var Ec = Bs.exports, aa = {}, bc = {}, Ic = function() {
16415
16424
  l.prototype = t.prototype, a.prototype = new l(), l.prototype = null;
16416
16425
  }
16417
16426
  return a;
16418
- }, N_ = I_, Gs = Function.prototype.bind || N_, O_ = Function.prototype.call, v_ = Object.prototype.hasOwnProperty, A_ = Gs, w_ = A_.call(O_, v_), x, R_ = l_, L_ = m_, P_ = u_, M_ = d_, Gt = Nc, Ct = oa, D_ = p_, Oc = Function, Ea = function(e) {
16427
+ }, N_ = I_, Gs = Function.prototype.bind || N_, O_ = Function.prototype.call, v_ = Object.prototype.hasOwnProperty, A_ = Gs, w_ = A_.call(O_, v_), x, R_ = l_, L_ = m_, P_ = u_, M_ = d_, qt = Nc, Ut = oa, D_ = p_, Oc = Function, Ea = function(e) {
16419
16428
  try {
16420
16429
  return Oc('"use strict"; return (' + e + ").constructor;")();
16421
16430
  } catch {
@@ -16428,7 +16437,7 @@ if (kt)
16428
16437
  kt = null;
16429
16438
  }
16430
16439
  var ba = function() {
16431
- throw new Ct();
16440
+ throw new Ut();
16432
16441
  }, C_ = kt ? function() {
16433
16442
  try {
16434
16443
  return arguments.callee, ba;
@@ -16498,10 +16507,10 @@ var ba = function() {
16498
16507
  "%String%": String,
16499
16508
  "%StringIteratorPrototype%": Ot && me ? me(""[Symbol.iterator]()) : x,
16500
16509
  "%Symbol%": Ot ? Symbol : x,
16501
- "%SyntaxError%": Gt,
16510
+ "%SyntaxError%": qt,
16502
16511
  "%ThrowTypeError%": C_,
16503
16512
  "%TypedArray%": F_,
16504
- "%TypeError%": Ct,
16513
+ "%TypeError%": Ut,
16505
16514
  "%Uint8Array%": typeof Uint8Array > "u" ? x : Uint8Array,
16506
16515
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? x : Uint8ClampedArray,
16507
16516
  "%Uint16Array%": typeof Uint16Array > "u" ? x : Uint16Array,
@@ -16590,9 +16599,9 @@ var G_ = function e(t) {
16590
16599
  }, rn = Gs, Vn = w_, V_ = rn.call(Function.call, Array.prototype.concat), q_ = rn.call(Function.apply, Array.prototype.splice), Ir = rn.call(Function.call, String.prototype.replace), qn = rn.call(Function.call, String.prototype.slice), x_ = rn.call(Function.call, RegExp.prototype.exec), H_ = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Q_ = /\\(\\)?/g, Y_ = function(e) {
16591
16600
  var t = qn(e, 0, 1), n = qn(e, -1);
16592
16601
  if (t === "%" && n !== "%")
16593
- throw new Gt("invalid intrinsic syntax, expected closing `%`");
16602
+ throw new qt("invalid intrinsic syntax, expected closing `%`");
16594
16603
  if (n === "%" && t !== "%")
16595
- throw new Gt("invalid intrinsic syntax, expected opening `%`");
16604
+ throw new qt("invalid intrinsic syntax, expected opening `%`");
16596
16605
  var a = [];
16597
16606
  return Ir(e, H_, function(s, o, r, c) {
16598
16607
  a[a.length] = r ? Ir(c, Q_, "$1") : o || s;
@@ -16602,33 +16611,33 @@ var G_ = function e(t) {
16602
16611
  if (Vn(br, n) && (a = br[n], n = "%" + a[0] + "%"), Vn(ht, n)) {
16603
16612
  var s = ht[n];
16604
16613
  if (s === At && (s = G_(n)), typeof s > "u" && !t)
16605
- throw new Ct("intrinsic " + e + " exists, but is not available. Please file an issue!");
16614
+ throw new Ut("intrinsic " + e + " exists, but is not available. Please file an issue!");
16606
16615
  return {
16607
16616
  alias: a,
16608
16617
  name: n,
16609
16618
  value: s
16610
16619
  };
16611
16620
  }
16612
- throw new Gt("intrinsic " + e + " does not exist!");
16621
+ throw new qt("intrinsic " + e + " does not exist!");
16613
16622
  }, cn = function(e, t) {
16614
16623
  if (typeof e != "string" || e.length === 0)
16615
- throw new Ct("intrinsic name must be a non-empty string");
16624
+ throw new Ut("intrinsic name must be a non-empty string");
16616
16625
  if (arguments.length > 1 && typeof t != "boolean")
16617
- throw new Ct('"allowMissing" argument must be a boolean');
16626
+ throw new Ut('"allowMissing" argument must be a boolean');
16618
16627
  if (x_(/^%?[^%]*%?$/, e) === null)
16619
- throw new Gt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
16628
+ throw new qt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
16620
16629
  var n = Y_(e), a = n.length > 0 ? n[0] : "", s = j_("%" + a + "%", t), o = s.name, r = s.value, c = !1, l = s.alias;
16621
16630
  l && (a = l[0], q_(n, V_([0, 1], l)));
16622
16631
  for (var m = 1, u = !0; m < n.length; m += 1) {
16623
16632
  var d = n[m], y = qn(d, 0, 1), T = qn(d, -1);
16624
16633
  if ((y === '"' || y === "'" || y === "`" || T === '"' || T === "'" || T === "`") && y !== T)
16625
- throw new Gt("property names with quotes must have matching quotes");
16634
+ throw new qt("property names with quotes must have matching quotes");
16626
16635
  if ((d === "constructor" || !u) && (c = !0), a += "." + d, o = "%" + a + "%", Vn(ht, o))
16627
16636
  r = ht[o];
16628
16637
  else if (r != null) {
16629
16638
  if (!(d in r)) {
16630
16639
  if (!t)
16631
- throw new Ct("base intrinsic for " + e + " exists, but the property is not available.");
16640
+ throw new Ut("base intrinsic for " + e + " exists, but the property is not available.");
16632
16641
  return;
16633
16642
  }
16634
16643
  if (kt && m + 1 >= n.length) {
@@ -17069,10 +17078,10 @@ var GS = function(e) {
17069
17078
  return l(b) === "[object WeakMap]";
17070
17079
  }
17071
17080
  qe.working = typeof WeakMap < "u" && qe(/* @__PURE__ */ new WeakMap());
17072
- function Qt(b) {
17081
+ function jt(b) {
17073
17082
  return typeof WeakMap > "u" ? !1 : qe.working ? qe(b) : b instanceof WeakMap;
17074
17083
  }
17075
- e.isWeakMap = Qt;
17084
+ e.isWeakMap = jt;
17076
17085
  function et(b) {
17077
17086
  return l(b) === "[object WeakSet]";
17078
17087
  }
@@ -17479,7 +17488,7 @@ var YS = ms.exports;
17479
17488
  "Nov",
17480
17489
  "Dec"
17481
17490
  ];
17482
- function Qt() {
17491
+ function jt() {
17483
17492
  var k = /* @__PURE__ */ new Date(), S = [
17484
17493
  J(k.getHours()),
17485
17494
  J(k.getMinutes()),
@@ -17488,7 +17497,7 @@ var YS = ms.exports;
17488
17497
  return [k.getDate(), qe[k.getMonth()], S].join(" ");
17489
17498
  }
17490
17499
  e.log = function() {
17491
- console.log("%s - %s", Qt(), e.format.apply(e, arguments));
17500
+ console.log("%s - %s", jt(), e.format.apply(e, arguments));
17492
17501
  }, e.inherits = YS, e._extend = function(k, S) {
17493
17502
  if (!S || !A(S)) return k;
17494
17503
  for (var N = Object.keys(S), C = N.length; C--; )
@@ -18001,11 +18010,11 @@ function oE() {
18001
18010
  e.resolve = t, e.reject = n;
18002
18011
  }), e;
18003
18012
  }
18004
- function Ht(e, t, n, a, s) {
18013
+ function Yt(e, t, n, a, s) {
18005
18014
  this.started = !1, this.func = t, this.opts = n, this.onFinish = null, this.parent = e, this.timeout = s === void 0 ? e._timeout : s, this.name = sE(t, n), this.isAfter = a, this.q = eE(e, rE, 1), this.q.pause(), this._error = null, this.loaded = !1, this._promise = null;
18006
18015
  }
18007
- nE(Ht, tE);
18008
- Ht.prototype.exec = function(e, t) {
18016
+ nE(Yt, tE);
18017
+ Yt.prototype.exec = function(e, t) {
18009
18018
  const n = this.func;
18010
18019
  let a = !1;
18011
18020
  const s = this.name;
@@ -18041,7 +18050,7 @@ Ht.prototype.exec = function(e, t) {
18041
18050
  (l) => G.nextTick(r, l)
18042
18051
  ));
18043
18052
  };
18044
- Ht.prototype.loadedSoFar = function() {
18053
+ Yt.prototype.loadedSoFar = function() {
18045
18054
  if (this.loaded)
18046
18055
  return Promise.resolve();
18047
18056
  const e = () => {
@@ -18052,10 +18061,10 @@ Ht.prototype.loadedSoFar = function() {
18052
18061
  let t;
18053
18062
  return this._promise ? t = Promise.resolve() : (this._promise = oE(), t = this._promise.promise, this.server ? e() : this.on("start", e)), t;
18054
18063
  };
18055
- Ht.prototype.enqueue = function(e, t) {
18064
+ Yt.prototype.enqueue = function(e, t) {
18056
18065
  Te("enqueue", this.name, e.name), this.emit("enqueue", this.server ? this.server.name : null, this.name, Date.now()), this.q.push(e, t);
18057
18066
  };
18058
- Ht.prototype.finish = function(e, t) {
18067
+ Yt.prototype.finish = function(e, t) {
18059
18068
  Te("finish", this.name, e);
18060
18069
  const n = () => {
18061
18070
  this.loaded || (Te("loaded", this.name), this.emit("loaded", this.server ? this.server.name : null, this.name, Date.now()), this.loaded = !0, t(e));
@@ -18100,16 +18109,16 @@ function Ks(e, t) {
18100
18109
  }
18101
18110
  function iE() {
18102
18111
  }
18103
- $s.exports = Ht;
18112
+ $s.exports = Yt;
18104
18113
  $s.exports.loadPlugin = Ks;
18105
18114
  var cE = $s.exports;
18106
18115
  const Vr = pc, lE = Ec.EventEmitter, mE = aa.inherits, {
18107
18116
  AVV_ERR_EXPOSE_ALREADY_DEFINED: Ca,
18108
- AVV_ERR_CALLBACK_NOT_FN: Zt,
18117
+ AVV_ERR_CALLBACK_NOT_FN: tn,
18109
18118
  AVV_ERR_PLUGIN_NOT_VALID: uE,
18110
18119
  AVV_ERR_ROOT_PLG_BOOTED: dE,
18111
18120
  AVV_ERR_READY_TIMEOUT: pE
18112
- } = Gc, TE = zS, ds = cE, Vt = Vc("avvio"), jn = Symbol("kAvvio"), Ua = Symbol("kThenifyDoNotWrap");
18121
+ } = Gc, TE = zS, ds = cE, xt = Vc("avvio"), jn = Symbol("kAvvio"), Ua = Symbol("kThenifyDoNotWrap");
18113
18122
  function yE(e, t, n) {
18114
18123
  const a = t.expose || {}, s = a.use || "use", o = a.after || "after", r = a.ready || "ready", c = a.onClose || "onClose", l = a.close || "close";
18115
18124
  if (e[s])
@@ -18124,15 +18133,15 @@ function yE(e, t, n) {
18124
18133
  return typeof m != "function" ? n._loadRegistered() : (n.after(Fa(m, this)), this);
18125
18134
  }, e[r] = function(m) {
18126
18135
  if (m && typeof m != "function")
18127
- throw new Zt(r, typeof m);
18136
+ throw new tn(r, typeof m);
18128
18137
  return n.ready(m ? Fa(m, this) : void 0);
18129
18138
  }, e[c] = function(m) {
18130
18139
  if (typeof m != "function")
18131
- throw new Zt(c, typeof m);
18140
+ throw new tn(c, typeof m);
18132
18141
  return n.onClose(_E(m, this)), this;
18133
18142
  }, e[l] = function(m) {
18134
18143
  if (m && typeof m != "function")
18135
- throw new Zt(l, typeof m);
18144
+ throw new tn(l, typeof m);
18136
18145
  return m ? (n.close(Fa(m, this)), this) : n.close();
18137
18146
  };
18138
18147
  }
@@ -18151,7 +18160,7 @@ function ue(e, t, n) {
18151
18160
  this.pluginTree.stop(r, m);
18152
18161
  });
18153
18162
  }), ds.loadPlugin.call(this, this._root, (a) => {
18154
- Vt("root plugin ready");
18163
+ xt("root plugin ready");
18155
18164
  try {
18156
18165
  this.emit("preReady"), this._root = null;
18157
18166
  } catch (s) {
@@ -18226,7 +18235,7 @@ ue.prototype.close = function(e) {
18226
18235
  let t;
18227
18236
  if (e) {
18228
18237
  if (typeof e != "function")
18229
- throw new Zt("close", typeof e);
18238
+ throw new tn("close", typeof e);
18230
18239
  } else
18231
18240
  t = new Promise(function(n, a) {
18232
18241
  e = function(s) {
@@ -18242,7 +18251,7 @@ ue.prototype.close = function(e) {
18242
18251
  ue.prototype.ready = function(e) {
18243
18252
  if (e) {
18244
18253
  if (typeof e != "function")
18245
- throw new Zt("ready", typeof e);
18254
+ throw new tn("ready", typeof e);
18246
18255
  this._readyQ.push(e), queueMicrotask(this.start.bind(this));
18247
18256
  return;
18248
18257
  }
@@ -18264,14 +18273,14 @@ function qr() {
18264
18273
  }
18265
18274
  function qc() {
18266
18275
  if (this.booted) {
18267
- Vt("thenify returning null because we are already booted");
18276
+ xt("thenify returning null because we are already booted");
18268
18277
  return;
18269
18278
  }
18270
18279
  if (this[Ua]) {
18271
18280
  this[Ua] = !1;
18272
18281
  return;
18273
18282
  }
18274
- return Vt("thenify"), (e, t) => this._loadRegistered().then(() => (this[Ua] = !0, e(this._server)), t);
18283
+ return xt("thenify"), (e, t) => this._loadRegistered().then(() => (this[Ua] = !0, e(this._server)), t);
18275
18284
  }
18276
18285
  function xc(e, t) {
18277
18286
  const n = this._server, a = this._error;
@@ -18290,9 +18299,9 @@ function xc(e, t) {
18290
18299
  }
18291
18300
  function kE(e, t, n, a) {
18292
18301
  const s = e.name;
18293
- Vt("setting up ready timeout", s, this._timeout);
18302
+ xt("setting up ready timeout", s, this._timeout);
18294
18303
  let o = setTimeout(() => {
18295
- Vt("timed out", s), o = null;
18304
+ xt("timed out", s), o = null;
18296
18305
  const c = new pE(s);
18297
18306
  c.fn = e, this._error = c, a(c);
18298
18307
  }, this._timeout);
@@ -18305,7 +18314,7 @@ function hE(e, t) {
18305
18314
  const n = this._server, a = e[this._isOnCloseHandlerKey];
18306
18315
  if (e.length === 0 || e.length === 1) {
18307
18316
  let s;
18308
- a ? s = e(n) : s = e(this._error), s && typeof s.then == "function" ? (Vt("resolving close/onClose promise"), s.then(
18317
+ a ? s = e(n) : s = e(this._error), s && typeof s.then == "function" ? (xt("resolving close/onClose promise"), s.then(
18309
18318
  () => G.nextTick(t),
18310
18319
  (o) => G.nextTick(t, o)
18311
18320
  )) : G.nextTick(t);
@@ -18408,7 +18417,7 @@ const OE = ({
18408
18417
  f = !0;
18409
18418
  };
18410
18419
  const _ = bE(e, n, a, {
18411
- version: "1.14.0",
18420
+ version: "1.14.1",
18412
18421
  onDeepLinkHandled: s,
18413
18422
  videoPlayerController: o,
18414
18423
  onContentActivate: r,
@@ -18451,7 +18460,7 @@ export {
18451
18460
  Dm as j,
18452
18461
  _t as k,
18453
18462
  Z as l,
18454
- $t as m,
18463
+ Wt as m,
18455
18464
  OE as n,
18456
18465
  kl as p,
18457
18466
  Np as u,