@streamlayer/react 1.24.4 → 1.24.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12687,7 +12687,7 @@ const HE = g2(yE), OE = ({ loading: e, autoPlay: t, played: n, playing: r, isMut
12687
12687
  name: "OpenedContainer",
12688
12688
  class: "o1seszvt",
12689
12689
  propsAsIs: !0
12690
- }), qG = ({
12690
+ }), eX = ({
12691
12691
  gamification: e,
12692
12692
  className: t
12693
12693
  }) => /* @__PURE__ */ m(QS, {
@@ -15035,7 +15035,9 @@ const xI = /* @__PURE__ */ new Set([
15035
15035
  he.FailedPrecondition,
15036
15036
  he.Unavailable,
15037
15037
  he.DataLoss
15038
- ]), z3 = dt("grpc:retry"), QI = (e) => async (t) => {
15038
+ ]), QI = /* @__PURE__ */ new Set([
15039
+ "An attempt was made to perform an operation that is not permitted: HttpStatusError: invalid SDK key"
15040
+ ]), z3 = dt("grpc:retry"), zI = (e) => async (t) => {
15039
15041
  const n = t.contextValues.get(y1.retryAttempts), r = 300, i = t.contextValues.get(y1.retryDelay);
15040
15042
  if (t.stream || n === 0)
15041
15043
  return e(t);
@@ -15046,7 +15048,7 @@ const xI = /* @__PURE__ */ new Set([
15046
15048
  } catch (a) {
15047
15049
  z3.trace({ attempt: s, error: a, url: t.url }, "retry attempt");
15048
15050
  const o = Ce.from(a);
15049
- if (s >= n || !(o instanceof Ce) || !xI.has(o.code))
15051
+ if (s >= n || !(o instanceof Ce) || !xI.has(o.code) || QI.has(o.rawMessage))
15050
15052
  throw a;
15051
15053
  const l = Math.min(i, Math.pow(2, s) * r), c = Math.round(l * (1 + Math.random()) / 2);
15052
15054
  await new Promise((d) => setTimeout(d, c));
@@ -15054,13 +15056,13 @@ const xI = /* @__PURE__ */ new Set([
15054
15056
  }, y1 = {
15055
15057
  retryAttempts: wc(10, { description: "Number of attempts to retry" }),
15056
15058
  retryDelay: wc(3e4, { description: "Max delay between retries in milliseconds" })
15057
- }, zI = () => {
15059
+ }, KI = () => {
15058
15060
  const e = localStorage.getItem("sl-device-id");
15059
15061
  if (e)
15060
15062
  return e;
15061
15063
  const t = Bn();
15062
15064
  return localStorage.setItem("sl-device-id", t), t;
15063
- }, KI = () => navigator.userAgentData?.platform || navigator.platform, MI = (e) => e ? "webOS" : navigator.userAgentData && navigator.userAgentData.mobile || "ontouchstart" in window || navigator.maxTouchPoints > 0 ? "mobile-web" : "desktop-web";
15065
+ }, MI = () => navigator.userAgentData?.platform || navigator.platform, HI = (e) => e ? "webOS" : navigator.userAgentData && navigator.userAgentData.mobile || "ontouchstart" in window || navigator.maxTouchPoints > 0 ? "mobile-web" : "desktop-web";
15064
15066
  class K3 {
15065
15067
  toJsonOptions = {
15066
15068
  emitDefaultValues: !1,
@@ -15083,9 +15085,9 @@ class K3 {
15083
15085
  opts;
15084
15086
  constructor(t, n) {
15085
15087
  this.host = t, this.opts = n, this.$headers = new Rn(ot({
15086
- "sl-device-id": zI(),
15087
- "sl-device-os": KI(),
15088
- "sl-platform": MI(n?.webOS)
15088
+ "sl-device-id": KI(),
15089
+ "sl-device-os": MI(),
15090
+ "sl-platform": HI(n?.webOS)
15089
15091
  }), "transport:headers"), this.initInterceptors(), this.clients = /* @__PURE__ */ new Map(), this.streamClients = /* @__PURE__ */ new Map(), this.subscriptions = /* @__PURE__ */ new Map(), this.storeCache = /* @__PURE__ */ new Map();
15090
15092
  const [r, i, s] = T2({
15091
15093
  dedupeTime: n?.dedupeTime,
@@ -15189,10 +15191,10 @@ class K3 {
15189
15191
  r.header.set(s, i[s]);
15190
15192
  return n(r);
15191
15193
  };
15192
- this.interceptors.push(t), window.localStorage.getItem("SL_GRPC_DEVTOOLS") === "true" ? this.interceptors.push(kI()) : console.warn("SL GRPC DevTools is disabled. To enable, set SL_GRPC_DEVTOOLS to true in localStorage."), this.opts?.retryable && this.interceptors.push(QI);
15194
+ this.interceptors.push(t), window.localStorage.getItem("SL_GRPC_DEVTOOLS") === "true" ? this.interceptors.push(kI()) : console.warn("SL GRPC DevTools is disabled. To enable, set SL_GRPC_DEVTOOLS to true in localStorage."), this.opts?.retryable && this.interceptors.push(zI);
15193
15195
  };
15194
15196
  }
15195
- const HI = (e, t) => {
15197
+ const OI = (e, t) => {
15196
15198
  const { client: n, queryKey: r } = t.createPromiseClient(Op, {
15197
15199
  method: "retrieveEventId",
15198
15200
  params: [e]
@@ -15210,7 +15212,7 @@ const HI = (e, t) => {
15210
15212
  }
15211
15213
  }
15212
15214
  });
15213
- }, OI = (e, t) => {
15215
+ }, _I = (e, t) => {
15214
15216
  const { client: n, queryKey: r } = t.createPromiseClient(Ir, { method: "getStream", params: [e] });
15215
15217
  return t.nanoquery.createFetcherStore(r, {
15216
15218
  fetcher: async (i, s, a) => a ? (await n.getStream({
@@ -15218,14 +15220,14 @@ const HI = (e, t) => {
15218
15220
  // we are sure that id is a string
15219
15221
  })).data?.attributes : void 0
15220
15222
  });
15221
- }, _I = (e, t) => {
15223
+ }, DI = (e, t) => {
15222
15224
  const { client: n, queryKey: r } = t.createPromiseClient(Op, { method: "summary", params: [e] });
15223
15225
  return t.nanoquery.createFetcherStore(r, {
15224
15226
  fetcher: async (i, s, a) => a ? (await n.summary({
15225
15227
  id: a
15226
15228
  })).data?.attributes : void 0
15227
15229
  });
15228
- }, DI = (e, t) => {
15230
+ }, PI = (e, t) => {
15229
15231
  const { queryKey: n, client: r } = t.createPromiseClient(E2, { method: "me", params: [e] });
15230
15232
  return t.nanoquery.createFetcherStore(n, {
15231
15233
  fetcher: async () => {
@@ -15235,15 +15237,15 @@ const HI = (e, t) => {
15235
15237
  return { data: i };
15236
15238
  }
15237
15239
  });
15238
- }, PI = (e) => {
15240
+ }, jI = (e) => {
15239
15241
  const { client: t, createRequestOptions: n } = e.createPromiseClient(E2, { method: "bypassAuth" }), r = n({ retryAttempts: 0 });
15240
15242
  return ({ userKey: i, schema: s, init: a, inviterKey: o }) => t.bypassAuth({ userKey: i, schema: s, init: a, inviterKey: o }, { contextValues: r });
15241
- }, jI = (e, t) => {
15243
+ }, $I = (e, t) => {
15242
15244
  const { client: n, queryKey: r } = t.createPromiseClient(Ir, { method: "get", params: [e] });
15243
15245
  return t.nanoquery.createFetcherStore(r, {
15244
15246
  fetcher: async () => (await n.get({})).data?.attributes
15245
15247
  });
15246
- }, $I = (e, t) => {
15248
+ }, qI = (e, t) => {
15247
15249
  const { client: n, queryKey: r } = t.createPromiseClient(Ir, { method: "getOrganization", params: [e] });
15248
15250
  return t.nanoquery.createFetcherStore(r, {
15249
15251
  fetcher: async () => {
@@ -15254,7 +15256,7 @@ const HI = (e, t) => {
15254
15256
  } : void 0;
15255
15257
  }
15256
15258
  });
15257
- }, qI = (e, t) => {
15259
+ }, eF = (e, t) => {
15258
15260
  const { client: n, queryKey: r } = t.createPromiseClient(Ir, {
15259
15261
  method: "getOrganizationAdvertising",
15260
15262
  params: [e]
@@ -15262,7 +15264,7 @@ const HI = (e, t) => {
15262
15264
  return t.nanoquery.createFetcherStore(r, {
15263
15265
  fetcher: async () => (await n.getOrganizationAdvertising({})).data?.attributes
15264
15266
  });
15265
- }, eF = (e, t, n) => {
15267
+ }, tF = (e, t, n) => {
15266
15268
  e.transport = new K3(t.host, {
15267
15269
  dedupeTime: 1e3 * 60 * 5,
15268
15270
  // 5 minutes
@@ -15307,19 +15309,19 @@ var Mt;
15307
15309
  (function(e) {
15308
15310
  e.DISABLED = "disabled", e.INITIALIZATION = "initialization", e.READY = "ready", e.FAILED = "failed", e.SUSPENDED = "suspended";
15309
15311
  })(Mt || (Mt = {}));
15310
- const tF = (e) => {
15311
- const t = new Yn(), n = new gt(Me(t.getExternalToken()), "userKey"), r = new gt(Me(t.getToken()), "userToken"), i = new yt(DI(r.getStore(), e), "user", ({ data: a, error: o, loading: l }, c) => {
15312
+ const nF = (e) => {
15313
+ const t = new Yn(), n = new gt(Me(t.getExternalToken()), "userKey"), r = new gt(Me(t.getToken()), "userToken"), i = new yt(PI(r.getStore(), e), "user", ({ data: a, error: o, loading: l }, c) => {
15312
15314
  if (!o)
15313
15315
  return a?.data?.id ? a.data.id : l === !1 ? void 0 : c;
15314
- }), s = new yt(jI(r.getStore(), e), "userSettings");
15316
+ }), s = new yt($I(r.getStore(), e), "userSettings");
15315
15317
  return {
15316
15318
  userKey: n,
15317
15319
  userToken: r,
15318
15320
  user: i,
15319
15321
  userSettings: s
15320
15322
  };
15321
- }, nF = (e) => {
15322
- const t = new gt(Me(void 0), "providerStreamId"), n = new yt(HI(t.getStore(), e), "slStreamId", (s) => s?.data), r = new yt(OI(n.getAtomStore(), e), "streamSettings"), i = new yt(_I(n.getAtomStore(), e), "streamSettings");
15323
+ }, rF = (e) => {
15324
+ const t = new gt(Me(void 0), "providerStreamId"), n = new yt(OI(t.getStore(), e), "slStreamId", (s) => s?.data), r = new yt(_I(n.getAtomStore(), e), "streamSettings"), i = new yt(DI(n.getAtomStore(), e), "streamSettings");
15323
15325
  return n.getAtomStore().listen((s) => {
15324
15326
  (s === "" || s === void 0) && (r.getStore().mutate(void 0), i.getStore().mutate(void 0));
15325
15327
  }), {
@@ -15328,8 +15330,8 @@ const tF = (e) => {
15328
15330
  streamSettings: r,
15329
15331
  streamSummary: i
15330
15332
  };
15331
- }, rF = (e) => {
15332
- const t = new gt(Me(void 0), "enabled"), n = new gt(Me(Mt.DISABLED), "status"), r = new yt($I(t.getStore(), e), "organizationSettings", (o) => o?.data?.id), i = new yt(qI(r.getAtomStore(), e), "organizationAdvertising"), s = tF(e), a = nF(e);
15333
+ }, iF = (e) => {
15334
+ const t = new gt(Me(void 0), "enabled"), n = new gt(Me(Mt.DISABLED), "status"), r = new yt(qI(t.getStore(), e), "organizationSettings", (o) => o?.data?.id), i = new yt(eF(r.getAtomStore(), e), "organizationAdvertising"), s = nF(e), a = rF(e);
15333
15335
  return {
15334
15336
  enabled: t,
15335
15337
  status: n,
@@ -15345,10 +15347,10 @@ const tF = (e) => {
15345
15347
  organizationAdvertising: i
15346
15348
  };
15347
15349
  };
15348
- class iF extends ki {
15350
+ class sF extends ki {
15349
15351
  stores;
15350
15352
  constructor(t) {
15351
- const n = rF(t), r = YI(n);
15353
+ const n = iF(t), r = YI(n);
15352
15354
  super(r, "core"), this.stores = n;
15353
15355
  }
15354
15356
  getValue() {
@@ -15369,17 +15371,17 @@ class iF extends ki {
15369
15371
  };
15370
15372
  unsubscribe = () => this.getStore().off();
15371
15373
  }
15372
- const sF = (e, t, n) => {
15373
- e.store = new iF(e.transport), e.stores = e.store.getValues(), e.sdk.enabled = e.stores.enabled.getStore(), e.sdk.status = e.stores.status.getStore(), e.sdk.sdkStore = Object.fromEntries(Object.entries(e.stores).map(([r, i]) => [r, i.getStore()])), e.sdk.organizationStore = () => e.stores.organizationSettings.getStore(), e.sdk.streamStore = () => e.stores.streamSettings.getStore(), e.sdk.streamSummary = () => e.stores.streamSummary.getStore(), e.storeUnsubscribe = () => {
15374
+ const aF = (e, t, n) => {
15375
+ e.store = new sF(e.transport), e.stores = e.store.getValues(), e.sdk.enabled = e.stores.enabled.getStore(), e.sdk.status = e.stores.status.getStore(), e.sdk.sdkStore = Object.fromEntries(Object.entries(e.stores).map(([r, i]) => [r, i.getStore()])), e.sdk.organizationStore = () => e.stores.organizationSettings.getStore(), e.sdk.streamStore = () => e.stores.streamSettings.getStore(), e.sdk.streamSummary = () => e.stores.streamSummary.getStore(), e.storeUnsubscribe = () => {
15374
15376
  e.store.unsubscribe();
15375
15377
  }, n();
15376
- }, aF = (e) => {
15378
+ }, oF = (e) => {
15377
15379
  const { client: t } = e.createPromiseClient(_p, { method: "list" });
15378
15380
  return (n) => t.list(n);
15379
15381
  }, s4 = (e) => {
15380
15382
  const { client: t } = e.createPromiseClient(_p, { method: "summary" });
15381
15383
  return (n) => t.summary(n);
15382
- }, oF = (e, t) => {
15384
+ }, lF = (e, t) => {
15383
15385
  const { client: n, queryKey: r } = t.createPromiseClient(E2, {
15384
15386
  method: "getFriends",
15385
15387
  params: [e]
@@ -15395,7 +15397,7 @@ const sF = (e, t, n) => {
15395
15397
  }
15396
15398
  }
15397
15399
  });
15398
- }, lF = (e, t) => {
15400
+ }, cF = (e, t) => {
15399
15401
  const { client: n, queryKey: r } = t.createPromiseClient(ct, { method: "get", params: [e] });
15400
15402
  return t.nanoquery.createFetcherStore(r, {
15401
15403
  fetcher: async (i, s, a) => (await n.get({
@@ -15404,7 +15406,7 @@ const sF = (e, t, n) => {
15404
15406
  revalidateInterval: 0,
15405
15407
  dedupeTime: 1e3 * 60 * 60
15406
15408
  });
15407
- }, cF = (e, t, n) => {
15409
+ }, dF = (e, t, n) => {
15408
15410
  const { client: r, queryKey: i } = n.createPromiseClient(ct, {
15409
15411
  method: "syncQuestion",
15410
15412
  params: [e, t ? "true" : ""]
@@ -15425,17 +15427,17 @@ const sF = (e, t, n) => {
15425
15427
  // 10 minutes
15426
15428
  revalidateInterval: 0
15427
15429
  });
15428
- }, dF = async (e, t) => {
15430
+ }, uF = async (e, t) => {
15429
15431
  const { client: n } = t.createPromiseClient(ct, { method: "item", params: [e] });
15430
15432
  return (await n.item({
15431
15433
  id: e
15432
15434
  })).data;
15433
- }, uF = (e, t) => {
15435
+ }, hF = (e, t) => {
15434
15436
  const { client: n } = t.createStreamClient(ct), r = Pn({ eventId: e.get() || "", feedId: "" });
15435
15437
  return e.subscribe((i = "") => {
15436
15438
  r.set({ eventId: i, feedId: "" });
15437
15439
  }), t.addSubscription(n.subscription, r, { name: "feedSubscription" });
15438
- }, hF = (e, t) => {
15440
+ }, pF = (e, t) => {
15439
15441
  const { client: n } = t.createStreamClient(ct);
15440
15442
  return t.addSubscription(n.questionSubscription, { questionId: e }, { name: "questionSubscription" });
15441
15443
  }, a4 = async (e, t) => {
@@ -15471,7 +15473,7 @@ const sF = (e, t, n) => {
15471
15473
  return;
15472
15474
  const { options: i, notification: s, ...a } = r.data.attributes, o = i?.options.case === "promotion" ? i?.options.value : void 0;
15473
15475
  return { id: a.id, question: a, promotion: o, notification: s };
15474
- }, pF = (e, t, n, r, i, s, a) => {
15476
+ }, mF = (e, t, n, r, i, s, a) => {
15475
15477
  const { client: o, queryKey: l } = a.createPromiseClient(ct, {
15476
15478
  method: "list",
15477
15479
  params: [e, t, s ? "true" : ""]
@@ -15505,7 +15507,7 @@ const sF = (e, t, n) => {
15505
15507
  dedupeTime: 1 / 0,
15506
15508
  revalidateInterval: 0
15507
15509
  });
15508
- }, mF = (e, t) => {
15510
+ }, gF = (e, t) => {
15509
15511
  const { client: n, queryKey: r } = t.createPromiseClient(ct, {
15510
15512
  method: "list",
15511
15513
  params: [e]
@@ -15531,7 +15533,7 @@ const sF = (e, t, n) => {
15531
15533
  dedupeTime: 1 / 0,
15532
15534
  revalidateInterval: 0
15533
15535
  });
15534
- }, gF = (e, t, n, r, i) => {
15536
+ }, fF = (e, t, n, r, i) => {
15535
15537
  const { client: s, queryKey: a } = i.createPromiseClient(ct, {
15536
15538
  method: "betPack",
15537
15539
  params: [e, t, n]
@@ -15581,7 +15583,7 @@ const sF = (e, t, n) => {
15581
15583
  dedupeTime: 1 / 0,
15582
15584
  revalidateInterval: 0
15583
15585
  });
15584
- }, fF = (e, t, n) => {
15586
+ }, bF = (e, t, n) => {
15585
15587
  const r = Y2([t, n], () => {
15586
15588
  const a = t.get();
15587
15589
  if (!a)
@@ -15617,7 +15619,7 @@ var Tn;
15617
15619
  (function(e) {
15618
15620
  e.SHOWED = "showed", e.EVENT = "ev";
15619
15621
  })(Tn || (Tn = {}));
15620
- class bF extends er {
15622
+ class AF extends er {
15621
15623
  constructor() {
15622
15624
  super("advertisement");
15623
15625
  }
@@ -15630,7 +15632,7 @@ class bF extends er {
15630
15632
  };
15631
15633
  isEventFired = (t, n) => this.read(Tn.EVENT, n, t) === "true";
15632
15634
  }
15633
- const AF = (e) => {
15635
+ const VF = (e) => {
15634
15636
  const t = e.data?.attributes?.question;
15635
15637
  if ((e.data?.attributes?.feedItem?.type === "promotion" ? e.data.attributes.feedItem : void 0) === void 0 || !t)
15636
15638
  return;
@@ -15641,7 +15643,7 @@ const AF = (e) => {
15641
15643
  notification: r,
15642
15644
  promotion: s
15643
15645
  };
15644
- }, xr = (e) => e.startsWith("http://") || e.startsWith("https://") ? new URL(e).toString() : e, VF = ({ gamOptions: e, gamBaseUrl: t }) => {
15646
+ }, xr = (e) => e.startsWith("http://") || e.startsWith("https://") ? new URL(e).toString() : e, RF = ({ gamOptions: e, gamBaseUrl: t }) => {
15645
15647
  const n = `${t}?`, r = [];
15646
15648
  for (const i in e) {
15647
15649
  const s = i.replace(/([a-zA-Z])(?=[A-Z])/g, "$1_").toLowerCase(), a = e[i];
@@ -15656,11 +15658,11 @@ const AF = (e) => {
15656
15658
  }
15657
15659
  }
15658
15660
  return n + r.join("&");
15659
- }, Xn = (e) => (e?.promotion?.type === ye.INGAME_IAB11_LBAR || e?.promotion?.type === ye.INGAME_IAB21_LBAR) && !!e.promotion.additionalBanner?.imageUrl, RF = (e, t, n) => {
15661
+ }, Xn = (e) => (e?.promotion?.type === ye.INGAME_IAB11_LBAR || e?.promotion?.type === ye.INGAME_IAB21_LBAR) && !!e.promotion.additionalBanner?.imageUrl, yF = (e, t, n) => {
15660
15662
  let r = !1;
15661
- const i = n.transport, s = dt("advertisement"), a = new bF(), o = (b, f) => {
15663
+ const i = n.transport, s = dt("advertisement"), a = new AF(), o = (b, f) => {
15662
15664
  a.fireEvent(b, f);
15663
- }, l = (b, f) => a.isEventFired(b, f), c = ot({}), d = mF(e, i), u = (b) => {
15665
+ }, l = (b, f) => a.isEventFired(b, f), c = ot({}), d = gF(e, i), u = (b) => {
15664
15666
  const f = c.get(), R = f.data?.question.id, A = f.data?.promotion?.type;
15665
15667
  R && (c.get()?.isOpened || (c.setKey("isOpened", !0), We.emit("advertisement", {
15666
15668
  action: "opened",
@@ -15723,7 +15725,7 @@ const AF = (e) => {
15723
15725
  c.subscribe((b, f) => {
15724
15726
  if (!(b.data?.id === f?.data?.id && b.isPaused !== f?.isPaused)) {
15725
15727
  if (b.data?.promotion?.type === ye.EXTERNAL_AD && !b?.externalAd && b.data.promotion.adCampaigns?.desktopWebSettings) {
15726
- const R = VF(b.data.promotion.adCampaigns.desktopWebSettings);
15728
+ const R = RF(b.data.promotion.adCampaigns.desktopWebSettings);
15727
15729
  c.setKey("externalAd", { type: "gam", url: R });
15728
15730
  }
15729
15731
  b.data?.promotion && !b.isOpened && (We.emit("advertisement", {
@@ -15768,7 +15770,7 @@ const AF = (e) => {
15768
15770
  r || (r = !0, d.subscribe((b, f) => {
15769
15771
  b.data && (!f?.data || b.data.id !== f.data.id) && p(b.data.question.id, b.data);
15770
15772
  }), t.addListener("promotion", (b) => {
15771
- const f = AF(b);
15773
+ const f = VF(b);
15772
15774
  if (f) {
15773
15775
  if (f.question.status === we.RESOLVED) {
15774
15776
  g(f.question.id), s.debug({ promotion: f }, "resolved: %o");
@@ -15787,7 +15789,7 @@ var Zt;
15787
15789
  (function(e) {
15788
15790
  e.ONBOARDING = "onboarding", e.ONBOARDING_IO = "onboarding_io", e.QUESTION_RECEIVED = "q-received", e.QUESTION_OPENED = "q-opened";
15789
15791
  })(Zt || (Zt = {}));
15790
- class yF extends er {
15792
+ class EF extends er {
15791
15793
  constructor() {
15792
15794
  super("gamification-session", window.sessionStorage);
15793
15795
  }
@@ -15796,10 +15798,10 @@ class yF extends er {
15796
15798
  };
15797
15799
  readValue = (t) => this.read(...t);
15798
15800
  }
15799
- class EF extends er {
15801
+ class CF extends er {
15800
15802
  sessionStorage;
15801
15803
  constructor() {
15802
- super("gamification"), this.sessionStorage = new yF();
15804
+ super("gamification"), this.sessionStorage = new EF();
15803
15805
  }
15804
15806
  saveQuestionReceived = ({ userId: t, eventId: n, organizationId: r }, i) => {
15805
15807
  this.write(Zt.QUESTION_RECEIVED, r, t, n, i, "1");
@@ -15822,7 +15824,7 @@ var ln;
15822
15824
  (function(e) {
15823
15825
  e.ALLOWED = "allowed", e.DISALLOWED = "disallowed";
15824
15826
  })(ln || (ln = {}));
15825
- class CF {
15827
+ class SF {
15826
15828
  /** sl event id */
15827
15829
  slStreamId;
15828
15830
  /** organization id */
@@ -15857,10 +15859,10 @@ class CF {
15857
15859
  transport;
15858
15860
  cancels = /* @__PURE__ */ new Set();
15859
15861
  constructor(t) {
15860
- this.transport = t.transport, this.log = dt("gamification-background"), this.storage = new EF(), this.slStreamId = t.stores.slStreamId.getAtomStore(), this.organizationId = t.stores.organizationSettings.getAtomStore(), this.userId = t.stores.user.getAtomStore(), this.moderationId = new gt(Me(void 0), "moderationId").getStore(), this.interactiveAllowed = new gt(Me(ln.DISALLOWED), "interactiveAllowed").getStore(), this.openedQuestionId = new gt(Me(void 0), "openedQuestionId").getStore(), this.notifications = t.notifications, this.moderation = new yt(lF(this.slStreamId, t.transport), "gamification:moderation");
15862
+ this.transport = t.transport, this.log = dt("gamification-background"), this.storage = new CF(), this.slStreamId = t.stores.slStreamId.getAtomStore(), this.organizationId = t.stores.organizationSettings.getAtomStore(), this.userId = t.stores.user.getAtomStore(), this.moderationId = new gt(Me(void 0), "moderationId").getStore(), this.interactiveAllowed = new gt(Me(ln.DISALLOWED), "interactiveAllowed").getStore(), this.openedQuestionId = new gt(Me(void 0), "openedQuestionId").getStore(), this.notifications = t.notifications, this.moderation = new yt(cF(this.slStreamId, t.transport), "gamification:moderation");
15861
15863
  const n = !!t.sdk.options.get().betPack;
15862
- this.feedList = new yt(pF(this.slStreamId, this.interactiveAllowed, this.userId, this.organizationId, this.storage, n, t.transport), "gamification:feedList"), this.betPack = new yt(gF(this.slStreamId, this.userId, this.organizationId, this.storage, t.transport), "gamification:betPack"), this.activeQuestionId = cF(this.slStreamId, n, t.transport), this.openedQuestion = fF(t.transport, this.openedQuestionId, this.feedList.getStore()), this.cancels.add(this.openedQuestionId.listen((r) => {
15863
- this.log.debug({ item: r }, "received question"), r?.questionId ? (this.log.info("cleanup on close question"), this.questionSubscription !== void 0 && (t.transport.removeSubscription(this.questionSubscription), this.questionSubscription = void 0), this.questionSubscription = hF(r.questionId, t.transport), this.questionSubscription.addListener("feed-subscription-opened-question", (i) => {
15864
+ this.feedList = new yt(mF(this.slStreamId, this.interactiveAllowed, this.userId, this.organizationId, this.storage, n, t.transport), "gamification:feedList"), this.betPack = new yt(fF(this.slStreamId, this.userId, this.organizationId, this.storage, t.transport), "gamification:betPack"), this.activeQuestionId = dF(this.slStreamId, n, t.transport), this.openedQuestion = bF(t.transport, this.openedQuestionId, this.feedList.getStore()), this.cancels.add(this.openedQuestionId.listen((r) => {
15865
+ this.log.debug({ item: r }, "received question"), r?.questionId ? (this.log.info("cleanup on close question"), this.questionSubscription !== void 0 && (t.transport.removeSubscription(this.questionSubscription), this.questionSubscription = void 0), this.questionSubscription = pF(r.questionId, t.transport), this.questionSubscription.addListener("feed-subscription-opened-question", (i) => {
15864
15866
  const s = i.data?.attributes?.question;
15865
15867
  if (this.openedQuestion.updateExtendedQuestion(s), this.betPack && s?.type === K.PREDICTION && (s.status === we.ACTIVE || s.status === we.RESOLVED)) {
15866
15868
  const a = this.betPack.getValues().data?.data || {}, o = a?.[s.id];
@@ -15891,7 +15893,7 @@ class CF {
15891
15893
  }
15892
15894
  }
15893
15895
  }), this.questionSubscription.connect()) : (this.log.info("cleanup on close question"), this.questionSubscription !== void 0 && (t.transport.removeSubscription(this.questionSubscription), this.questionSubscription = void 0));
15894
- })), this.feedSubscription = uF(this.slStreamId, t.transport), this.cancels.add(this.feedSubscription.addListener("bet-pack-update", async (r) => {
15896
+ })), this.feedSubscription = hF(this.slStreamId, t.transport), this.cancels.add(this.feedSubscription.addListener("bet-pack-update", async (r) => {
15895
15897
  const i = r.data?.attributes?.question;
15896
15898
  if (this.betPack && i?.type === K.PREDICTION && (i.status === we.ACTIVE || i.status === we.RESOLVED)) {
15897
15899
  const s = this.betPack.getValues().data?.data || {}, a = s?.[i.id];
@@ -15963,7 +15965,7 @@ class CF {
15963
15965
  this.activeQuestionId.off();
15964
15966
  for (const r of this.cancels)
15965
15967
  r(), this.cancels.delete(r);
15966
- }), n || (this.advertisement = RF(this.slStreamId, this.feedSubscription, t));
15968
+ }), n || (this.advertisement = yF(this.slStreamId, this.feedSubscription, t));
15967
15969
  }
15968
15970
  /**
15969
15971
  * Get id for notifications and link with current session
@@ -15993,7 +15995,7 @@ class CF {
15993
15995
  this.openedQuestionId.set(void 0), t && this.notifications.markAsViewed(this.getCurrentSessionId({ prefix: "notification", entity: t }));
15994
15996
  };
15995
15997
  }
15996
- class SF {
15998
+ class ZF {
15997
15999
  notificationsList;
15998
16000
  store;
15999
16001
  timeouts;
@@ -16098,7 +16100,7 @@ var yi;
16098
16100
  (function(e) {
16099
16101
  e.OPENED = "opened";
16100
16102
  })(yi || (yi = {}));
16101
- class ZF extends er {
16103
+ class vF extends er {
16102
16104
  constructor() {
16103
16105
  super("notification");
16104
16106
  }
@@ -16110,11 +16112,11 @@ class ZF extends er {
16110
16112
  this.clear();
16111
16113
  };
16112
16114
  }
16113
- class vF {
16115
+ class WF {
16114
16116
  queue;
16115
16117
  storage;
16116
16118
  constructor(t = {}) {
16117
- this.storage = new ZF(), this.queue = new SF({ concurrency: 1, animationDelay: 1600, ...t });
16119
+ this.storage = new vF(), this.queue = new ZF({ concurrency: 1, animationDelay: 1600, ...t });
16118
16120
  }
16119
16121
  isViewed = (t) => this.storage.isOpened(t);
16120
16122
  add = (t) => {
@@ -16155,8 +16157,8 @@ class vF {
16155
16157
  this.storage.setOpened(t);
16156
16158
  };
16157
16159
  }
16158
- const WF = (e, t, n) => {
16159
- e.notifications = new vF(void 0), e.addNotification = e.notifications.add, e.sdk.getNotificationsStore = () => e.notifications.getQueueStore(), e.sdk.getActiveNotification = () => e.notifications.getActiveNotification(), e.sdk.onMount({ name: "notifications" }, () => () => {
16160
+ const IF = (e, t, n) => {
16161
+ e.notifications = new WF(void 0), e.addNotification = e.notifications.add, e.sdk.getNotificationsStore = () => e.notifications.getQueueStore(), e.sdk.getActiveNotification = () => e.notifications.getActiveNotification(), e.sdk.onMount({ name: "notifications" }, () => () => {
16160
16162
  e.notifications.queue.drain();
16161
16163
  }), n();
16162
16164
  };
@@ -16174,17 +16176,17 @@ const M3 = async (e, t) => {
16174
16176
  }, l4 = (e, t) => {
16175
16177
  const { client: n, createRequestOptions: r } = e.createPromiseClient(ct, { method: "submitInplay" }), i = r({ retryAttempts: 0 });
16176
16178
  return n.submitInplay({ data: { eventId: +t } }, { contextValues: i });
16177
- }, IF = {
16179
+ }, FF = {
16178
16180
  pageSize: 10
16179
- }, FF = (e, t, n, r, i) => {
16181
+ }, NF = (e, t, n, r, i) => {
16180
16182
  let s = 0;
16181
- const a = Me({ pageSize: IF.pageSize, page: 0 }), o = ot({
16183
+ const a = Me({ pageSize: FF.pageSize, page: 0 }), o = ot({
16182
16184
  data: [],
16183
16185
  key: Date.now(),
16184
16186
  hasMore: !0,
16185
16187
  loading: void 0,
16186
16188
  error: void 0
16187
- }), l = aF(e), c = async () => {
16189
+ }), l = oF(e), c = async () => {
16188
16190
  const h = t.get(), p = r?.getStore().get().data?.map((g) => g.slId) || [];
16189
16191
  if (h && p?.length) {
16190
16192
  const g = n.get();
@@ -16217,7 +16219,7 @@ const M3 = async (e, t) => {
16217
16219
  };
16218
16220
  }), { $store: o, fetchMore: u, invalidate: d };
16219
16221
  };
16220
- class NF extends er {
16222
+ class GF extends er {
16221
16223
  get = this.read;
16222
16224
  set = this.write;
16223
16225
  del = this.remove;
@@ -16225,12 +16227,12 @@ class NF extends er {
16225
16227
  super("deep-link-context", window.sessionStorage);
16226
16228
  }
16227
16229
  }
16228
- const H3 = "sldl", Ji = "sldl_uid", c4 = "sldl_eid", d4 = "sldl_e_eid", GF = /* @__PURE__ */ new Set([Ji, c4, d4]), O3 = (e) => {
16230
+ const H3 = "sldl", Ji = "sldl_uid", c4 = "sldl_eid", d4 = "sldl_e_eid", XF = /* @__PURE__ */ new Set([Ji, c4, d4]), O3 = (e) => {
16229
16231
  const t = {}, n = {};
16230
16232
  for (const [r, i] of e)
16231
- GF.has(r) ? t[r] = i : n[r] = i;
16233
+ XF.has(r) ? t[r] = i : n[r] = i;
16232
16234
  return { result: t, remain: n };
16233
- }, XF = ({ hash: e, search: t }) => {
16235
+ }, UF = ({ hash: e, search: t }) => {
16234
16236
  if (e && e.includes(H3)) {
16235
16237
  const n = new URLSearchParams(e.substr(1));
16236
16238
  return { hash: O3(n) };
@@ -16247,10 +16249,10 @@ const H3 = "sldl", Ji = "sldl_uid", c4 = "sldl_eid", d4 = "sldl_e_eid", GF = /*
16247
16249
  trace: (...e) => {
16248
16250
  _3.trace(...e), localStorage.getItem("SL_DEBUG") && console.log(...e);
16249
16251
  }
16250
- }, UF = (e, t) => {
16252
+ }, BF = (e, t) => {
16251
16253
  const { hash: n, search: r } = window.location;
16252
16254
  if (Xt.debug({ hash: n, search: r }, "get deep link data from"), n || r) {
16253
- const i = XF({ hash: n, search: r });
16255
+ const i = UF({ hash: n, search: r });
16254
16256
  if (Xt.debug(i, "parse deep link result"), i) {
16255
16257
  const { hash: s, search: a } = i, { result: o, remain: l } = s || a;
16256
16258
  if (Object.keys(o).length !== 0) {
@@ -16269,8 +16271,8 @@ const H3 = "sldl", Ji = "sldl_uid", c4 = "sldl_eid", d4 = "sldl_e_eid", GF = /*
16269
16271
  }
16270
16272
  }
16271
16273
  e.setValue("parsed", !0);
16272
- }, BF = (e, t, n) => {
16273
- const r = new NF(), i = r.get("sl-deep-link-store");
16274
+ }, YF = (e, t, n) => {
16275
+ const r = new GF(), i = r.get("sl-deep-link-store");
16274
16276
  let s = {};
16275
16277
  if (i)
16276
16278
  try {
@@ -16308,15 +16310,15 @@ const H3 = "sldl", Ji = "sldl_uid", c4 = "sldl_eid", d4 = "sldl_e_eid", GF = /*
16308
16310
  console.error(c);
16309
16311
  }
16310
16312
  };
16311
- UF(e.deepLink.$store, a), n();
16312
- }, YF = dt("bypass");
16313
- class TF extends BI {
16313
+ BF(e.deepLink.$store, a), n();
16314
+ }, TF = dt("bypass");
16315
+ class wF extends BI {
16314
16316
  $coreStore;
16315
16317
  deepLink;
16316
16318
  transport;
16317
16319
  bypassLogin;
16318
16320
  constructor(t, n, r) {
16319
- super(), this.$coreStore = t, this.deepLink = r, this.transport = n, this.bypassLogin = PI(this.transport), this.connect();
16321
+ super(), this.$coreStore = t, this.deepLink = r, this.transport = n, this.bypassLogin = jI(this.transport), this.connect();
16320
16322
  }
16321
16323
  me = async () => (this.$coreStore.getValues().user.invalidate(), (await this.$coreStore.getValues().user.getValue())?.data);
16322
16324
  /**
@@ -16328,7 +16330,7 @@ class TF extends BI {
16328
16330
  login = async (t, n) => {
16329
16331
  this.$coreStore.getValues().userKey.setValue(n);
16330
16332
  const { used: r, data: i } = this.deepLink?.getDeepLinkData() || {}, s = r ? "" : i?.[Ji];
16331
- YF.debug({ inviterKey: s }, "login with inviterKey");
16333
+ TF.debug({ inviterKey: s }, "login with inviterKey");
16332
16334
  const a = await this.bypassLogin({
16333
16335
  schema: t,
16334
16336
  userKey: n,
@@ -16398,8 +16400,8 @@ class TF extends BI {
16398
16400
  });
16399
16401
  };
16400
16402
  }
16401
- const or = new Yn(), wF = (e, t, n) => {
16402
- e.auth = new TF(e.store, e.transport, e.deepLink), e.stores.status.listen((r) => {
16403
+ const or = new Yn(), LF = (e, t, n) => {
16404
+ e.auth = new wF(e.store, e.transport, e.deepLink), e.stores.status.listen((r) => {
16403
16405
  r === Mt.READY && e.auth.reLogin();
16404
16406
  }), e.sdk.userId = e.stores.user.getAtomStore, e.sdk.authorizationBypass = async (r, i) => {
16405
16407
  if (!(or.getSchema() === r && or.getExternalToken() === i && e.transport.getHeader("authorization")))
@@ -16418,7 +16420,7 @@ const or = new Yn(), wF = (e, t, n) => {
16418
16420
  trace: (...e) => {
16419
16421
  D3.trace(...e), localStorage.getItem("SL_DEBUG") && console.log(...e);
16420
16422
  }
16421
- }, LF = (e, t, n) => {
16423
+ }, kF = (e, t, n) => {
16422
16424
  e.videoPlayer = {
16423
16425
  controllers: /* @__PURE__ */ new Set()
16424
16426
  }, e.sdk.addVideoPlayerController = (r) => {
@@ -16436,13 +16438,13 @@ const or = new Yn(), wF = (e, t, n) => {
16436
16438
  }
16437
16439
  }
16438
16440
  }, n();
16439
- }, kF = {
16441
+ }, JF = {
16440
16442
  [K.FACTOID]: "insight",
16441
16443
  [K.POLL]: "poll",
16442
16444
  [K.TRIVIA]: "trivia",
16443
16445
  [K.PREDICTION]: "prediction",
16444
16446
  [K.TWEET]: "tweet"
16445
- }, Un = (e) => e === ye.INGAME_IAB11 || e === ye.INGAME_IAB21 || e === ye.NFL_SHOP_OVERLAY || e === ye.SHOP_OVERLAY, JF = (e, t, n) => {
16447
+ }, Un = (e) => e === ye.INGAME_IAB11 || e === ye.INGAME_IAB21 || e === ye.NFL_SHOP_OVERLAY || e === ye.SHOP_OVERLAY, xF = (e, t, n) => {
16446
16448
  e.sdk.uiState = ot({}), e.ui = {
16447
16449
  enableAppNotification: function() {
16448
16450
  e.sdk.uiState.setKey("appNotification", !0);
@@ -16499,7 +16501,7 @@ const or = new Yn(), wF = (e, t, n) => {
16499
16501
  };
16500
16502
  e.onQuestionActivate = ({ questionType: i, ...s }) => {
16501
16503
  if (e.ui.enableAppNotification(), e.ui.onContentActivate) {
16502
- const a = s.type || i && kF[i] || "question";
16504
+ const a = s.type || i && JF[i] || "question";
16503
16505
  e.ui.onContentActivate({ ...s, type: a });
16504
16506
  }
16505
16507
  }, e.sdk.onMount({ name: "ui" }, () => {
@@ -16632,7 +16634,7 @@ const or = new Yn(), wF = (e, t, n) => {
16632
16634
  s(), a();
16633
16635
  };
16634
16636
  }), n();
16635
- }, xF = (e, t, n) => {
16637
+ }, QF = (e, t, n) => {
16636
16638
  const r = { onMountedFired: !1 }, i = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
16637
16639
  e.sdk = /* @__PURE__ */ Object.create(null), e.sdk.options = ot(t), e.sdk.withAuth = !1, e.sdk.onMount = ({ name: a, clear: o }, l) => {
16638
16640
  if (i.has(a)) {
@@ -16658,7 +16660,7 @@ const or = new Yn(), wF = (e, t, n) => {
16658
16660
  }, e.sdk.createEventSession = (a, o) => {
16659
16661
  o ? e.stores.slStreamId.getStore().set({ loading: !1, data: a }) : e.stores.providerStreamId.setValue(a);
16660
16662
  }, n();
16661
- }, QF = (e, t) => {
16663
+ }, zF = (e, t) => {
16662
16664
  const { client: n, queryKey: r } = e.createPromiseClient(Ir, {
16663
16665
  method: "generateDeepLink",
16664
16666
  params: t
@@ -16679,7 +16681,7 @@ const or = new Yn(), wF = (e, t, n) => {
16679
16681
  // 24 hours
16680
16682
  revalidateInterval: 0
16681
16683
  });
16682
- }, zF = (e, { web: t, mobile: n }) => {
16684
+ }, KF = (e, { web: t, mobile: n }) => {
16683
16685
  const { client: r } = e.createPromiseClient(fI, { method: "generate" });
16684
16686
  return r.generate({ web: t, mobile: n });
16685
16687
  }, P3 = (e, t) => {
@@ -16687,9 +16689,9 @@ const or = new Yn(), wF = (e, t, n) => {
16687
16689
  for (const [r, i] of Object.entries(t))
16688
16690
  n.append(r, i);
16689
16691
  return n.toString();
16690
- }, KF = (e, t, n, r) => {
16692
+ }, MF = (e, t, n, r) => {
16691
16693
  const i = ot({});
16692
- return I1(i, () => QF(e, [t, n]).subscribe(async ({ data: s, loading: a }) => {
16694
+ return I1(i, () => zF(e, [t, n]).subscribe(async ({ data: s, loading: a }) => {
16693
16695
  const o = s === void 0 && a === !1 ? "https://streamlayer.io" : s?.url, l = r.get() || "", c = t.get() || "", d = n.get() || "", u = {
16694
16696
  [Ji]: l,
16695
16697
  [c4]: c,
@@ -16701,7 +16703,7 @@ const or = new Yn(), wF = (e, t, n) => {
16701
16703
  h && p || p ? h = `?${P3(h, u)}` : p = `#${P3("", u)}`;
16702
16704
  const g = window.location.origin + window.location.pathname + h + p;
16703
16705
  try {
16704
- const V = await zF(e, { web: g, mobile: o });
16706
+ const V = await KF(e, { web: g, mobile: o });
16705
16707
  i.set({
16706
16708
  data: V.data?.link,
16707
16709
  loading: !1
@@ -16721,7 +16723,7 @@ var ke;
16721
16723
  (function(e) {
16722
16724
  e.Unset = "unset", e.Required = "required", e.Optional = "optional", e.Completed = "completed", e.Disabled = "disabled", e.Unavailable = "unavailable";
16723
16725
  })(ke || (ke = {}));
16724
- const MF = (e, t, n, r) => {
16726
+ const HF = (e, t, n, r) => {
16725
16727
  const { inplayGame: i } = e.featureSettings.get(), s = t.getCurrentSessionId({ prefix: "onboarding" });
16726
16728
  i && n.add({
16727
16729
  type: Pt.ONBOARDING,
@@ -16787,7 +16789,7 @@ const MF = (e, t, n, r) => {
16787
16789
  let s = !!i?.skipOnboarding;
16788
16790
  const a = t.storage, o = Me(ke.Unset);
16789
16791
  o.subscribe((c) => {
16790
- c !== ke.Unset && (c === ke.Optional || c === ke.Required ? s === !1 && (MF(e, t, r, a), s = !0) : e.onboardingProcessed.set(!0), c === ke.Completed && t.activeQuestionId.invalidate(), a.setOnboardingInstantOpen({
16792
+ c !== ke.Unset && (c === ke.Optional || c === ke.Required ? s === !1 && (HF(e, t, r, a), s = !0) : e.onboardingProcessed.set(!0), c === ke.Completed && t.activeQuestionId.invalidate(), a.setOnboardingInstantOpen({
16791
16793
  userId: t.userId.get() || "",
16792
16794
  organizationId: t.organizationId.get() || "",
16793
16795
  eventId: t.slStreamId.get() || ""
@@ -16815,7 +16817,7 @@ const MF = (e, t, n, r) => {
16815
16817
  r.close(d);
16816
16818
  }
16817
16819
  } };
16818
- }, HF = (e, t, n, r) => {
16820
+ }, OF = (e, t, n, r) => {
16819
16821
  const i = ot(void 0), s = s4(r), a = async () => {
16820
16822
  const l = e.get(), c = t.get(), d = n ? n.getStore().get().data?.map((p) => p.slId) : [];
16821
16823
  if (!d || !l || !c)
@@ -16837,7 +16839,7 @@ const MF = (e, t, n, r) => {
16837
16839
  l(), c?.(), d();
16838
16840
  };
16839
16841
  }), { $store: i, invalidate: o };
16840
- }, OF = async (e, t, n, r, i) => {
16842
+ }, _F = async (e, t, n, r, i) => {
16841
16843
  const s = s4(i), a = e.get(), o = t.get(), l = n?.getStore().get().data?.map((d) => d.slId) || [], c = {
16842
16844
  eventId: a,
16843
16845
  userId: r,
@@ -16846,7 +16848,7 @@ const MF = (e, t, n, r) => {
16846
16848
  };
16847
16849
  return (await s(c)).data?.attributes?.summary;
16848
16850
  }, $3 = /* @__PURE__ */ new Set([K.POLL, K.PREDICTION, K.TRIVIA]);
16849
- class _F extends r4 {
16851
+ class DF extends r4 {
16850
16852
  /** user statistics (leaderboard panel) */
16851
16853
  userSummary;
16852
16854
  /** feed list (pick history) */
@@ -16887,9 +16889,9 @@ class _F extends r4 {
16887
16889
  cancels = /* @__PURE__ */ new Set();
16888
16890
  onQuestionActivate;
16889
16891
  constructor(t, n, r) {
16890
- if (super(t, n), this.background = new CF(r), this.advertisement = this.background.advertisement, this.onQuestionActivate = r.onQuestionActivate, this.feedSubscription = this.background.feedSubscription, this.activeQuestionId = this.background.activeQuestionId, this.openedQuestionId = this.background.openedQuestionId, this.storage = this.background.storage, this.feedList = this.background.feedList, this.betPack = this.background.betPack, this.currentUserId = this.background.userId, this.onboardingProcessed = Me(!r.sdk.withAuth), this.leaderboardId = new gt(Me(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.notifications = r.notifications, this.transport = r.transport, this.closeFeature = (i = !0) => r.sdk.closeFeature(i), this.openFeature = () => r.sdk.openFeature(ge.GAMES), this.openedQuestion = this.background.openedQuestion, this.deepLink = KF(this.transport, this.background.slStreamId, r.stores.providerStreamId.getStore(), this.background.userId), this.userSummary = HF(this.background.slStreamId, this.background.userId, this.friends, this.transport), !r.sdk.options.get().hideFriends) {
16891
- this.friends = new yt(oF(this.background.userId, r.transport), "gamification:friends"), this.openedUser = Me(void 0);
16892
- const i = this.leaderboardList = FF(this.transport, this.background.slStreamId, this.background.userId, this.friends);
16892
+ if (super(t, n), this.background = new SF(r), this.advertisement = this.background.advertisement, this.onQuestionActivate = r.onQuestionActivate, this.feedSubscription = this.background.feedSubscription, this.activeQuestionId = this.background.activeQuestionId, this.openedQuestionId = this.background.openedQuestionId, this.storage = this.background.storage, this.feedList = this.background.feedList, this.betPack = this.background.betPack, this.currentUserId = this.background.userId, this.onboardingProcessed = Me(!r.sdk.withAuth), this.leaderboardId = new gt(Me(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.notifications = r.notifications, this.transport = r.transport, this.closeFeature = (i = !0) => r.sdk.closeFeature(i), this.openFeature = () => r.sdk.openFeature(ge.GAMES), this.openedQuestion = this.background.openedQuestion, this.deepLink = MF(this.transport, this.background.slStreamId, r.stores.providerStreamId.getStore(), this.background.userId), this.userSummary = OF(this.background.slStreamId, this.background.userId, this.friends, this.transport), !r.sdk.options.get().hideFriends) {
16893
+ this.friends = new yt(lF(this.background.userId, r.transport), "gamification:friends"), this.openedUser = Me(void 0);
16894
+ const i = this.leaderboardList = NF(this.transport, this.background.slStreamId, this.background.userId, this.friends);
16893
16895
  this.cancels.add(this.userSummary.$store.listen((s, a) => {
16894
16896
  a?.summary && s?.summary && i.invalidate();
16895
16897
  }));
@@ -17163,7 +17165,7 @@ class _F extends r4 {
17163
17165
  openedFrom: n?.openedFrom === "bet-pack" ? "list" : n?.openedFrom
17164
17166
  } : void 0);
17165
17167
  };
17166
- getFeedItem = (t) => dF(t, this.transport);
17168
+ getFeedItem = (t) => uF(t, this.transport);
17167
17169
  isOpenedQuestion = (t) => !!this.notifications.isViewed(t);
17168
17170
  closeQuestion = (t) => (t && (this.onQuestionActivate({
17169
17171
  stage: "deactivate",
@@ -17192,7 +17194,7 @@ class _F extends r4 {
17192
17194
  }
17193
17195
  const r = { ...n };
17194
17196
  try {
17195
- const i = await OF(this.background.slStreamId, this.background.userId, this.friends, t, this.transport);
17197
+ const i = await _F(this.background.slStreamId, this.background.userId, this.friends, t, this.transport);
17196
17198
  i?.inTop !== void 0 && (this.leaderboardList?.$store.setKey("data", this.leaderboardList.$store.get().data?.map((s) => (s.userId === t && (s.inTop = i.inTop), s))), r.inTop = i.inTop);
17197
17199
  } catch (i) {
17198
17200
  console.error(i);
@@ -17325,15 +17327,15 @@ class _F extends r4 {
17325
17327
  }
17326
17328
  };
17327
17329
  }
17328
- const DF = {
17330
+ const PF = {
17329
17331
  [ge.GAMES]: !0
17330
17332
  };
17331
- class PF extends r4 {
17333
+ class jF extends r4 {
17332
17334
  constructor(t, n) {
17333
17335
  super(t, n);
17334
17336
  }
17335
17337
  }
17336
- const jF = (e, t, n) => e.type === ge.GAMES ? new _F(e, t, n) : new PF(e, t), $F = (e, t, n) => {
17338
+ const $F = (e, t, n) => e.type === ge.GAMES ? new DF(e, t, n) : new jF(e, t), qF = (e, t, n) => {
17337
17339
  e.features = /* @__PURE__ */ new Map(), e.sdk.featuresList = new gt(Me(/* @__PURE__ */ new Set()), "features-list"), e.activeFeature = new gt(Me(ge.UNSET), "activeFeature"), e.sdk.getFeatures = () => e.features, e.sdk.getFeature = (r) => e.features.get(r), e.sdk.getActiveFeature = () => e.activeFeature.getStore(), e.sdk.openFeature = (r) => {
17338
17340
  e.sdk.initializeApp().then(() => {
17339
17341
  e.activeFeature.setValue(r);
@@ -17346,8 +17348,8 @@ const jF = (e, t, n) => e.type === ge.GAMES ? new _F(e, t, n) : new PF(e, t), $F
17346
17348
  s && s.delete(i), e.sdk.featuresList.setValue(s);
17347
17349
  }
17348
17350
  }, e.initFeature = (r, i = Kt.ORGANIZATION) => {
17349
- if (r.type in DF && !e.features.has(r.type)) {
17350
- const s = jF(r, i, e);
17351
+ if (r.type in PF && !e.features.has(r.type)) {
17352
+ const s = $F(r, i, e);
17351
17353
  e.features.set(r.type, s);
17352
17354
  let a = e.sdk.featuresList.getValue();
17353
17355
  a ? a.add(r.type) : a = /* @__PURE__ */ new Set([r.type]), e.sdk.featuresList.setValue(new Set(a));
@@ -17399,7 +17401,7 @@ const jF = (e, t, n) => e.type === ge.GAMES ? new _F(e, t, n) : new PF(e, t), $F
17399
17401
  };
17400
17402
  e.store.subscribe(i);
17401
17403
  }, n();
17402
- }, qF = (e, t, n) => {
17404
+ }, eN = (e, t, n) => {
17403
17405
  const { client: r, queryKey: i } = n.createPromiseClient(VI, {
17404
17406
  method: "getMarketWithSeries",
17405
17407
  params: [e, t]
@@ -17417,15 +17419,15 @@ const jF = (e, t, n) => e.type === ge.GAMES ? new _F(e, t, n) : new PF(e, t), $F
17417
17419
  }
17418
17420
  }
17419
17421
  });
17420
- }, eN = (e) => {
17422
+ }, tN = (e) => {
17421
17423
  const t = e.stores.slStreamId.getAtomStore(), n = e.stores.user.getAtomStore();
17422
- return qF(t, n, e.transport);
17424
+ return eN(t, n, e.transport);
17423
17425
  };
17424
- class tN extends n4 {
17426
+ class nN extends n4 {
17425
17427
  marketWithSeries;
17426
17428
  log;
17427
17429
  constructor(t) {
17428
- super(), this.log = dt("polymarket"), this.marketWithSeries = eN(t);
17430
+ super(), this.log = dt("polymarket"), this.marketWithSeries = tN(t);
17429
17431
  }
17430
17432
  connect = () => {
17431
17433
  this.log.debug("connect");
@@ -17434,8 +17436,8 @@ class tN extends n4 {
17434
17436
  this.marketWithSeries.off(), this.log.debug("disconnect");
17435
17437
  };
17436
17438
  }
17437
- const nN = (e, t, n) => {
17438
- e.sdk.polymarket = new tN(e), e.sdk.onMount({ name: "polymarket" }, () => (e.sdk.polymarket.connect(), () => {
17439
+ const rN = (e, t, n) => {
17440
+ e.sdk.polymarket = new nN(e), e.sdk.onMount({ name: "polymarket" }, () => (e.sdk.polymarket.connect(), () => {
17439
17441
  e.sdk.polymarket.disconnect();
17440
17442
  })), n();
17441
17443
  };
@@ -17443,7 +17445,7 @@ function S2() {
17443
17445
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
17444
17446
  return { id: e.id || null, adId: e.adId || null, sequence: e.sequence || null, apiFramework: e.apiFramework || null, universalAdIds: [], creativeExtensions: [] };
17445
17447
  }
17446
- const rN = ["ADCATEGORIES", "ADCOUNT", "ADPLAYHEAD", "ADSERVINGID", "ADTYPE", "APIFRAMEWORKS", "APPBUNDLE", "ASSETURI", "BLOCKEDADCATEGORIES", "BREAKMAXADLENGTH", "BREAKMAXADS", "BREAKMAXDURATION", "BREAKMINADLENGTH", "BREAKMINDURATION", "BREAKPOSITION", "CLICKPOS", "CLICKTYPE", "CLIENTUA", "CONTENTID", "CONTENTPLAYHEAD", "CONTENTURI", "DEVICEIP", "DEVICEUA", "DOMAIN", "EXTENSIONS", "GDPRCONSENT", "IFA", "IFATYPE", "INVENTORYSTATE", "LATLONG", "LIMITADTRACKING", "MEDIAMIME", "MEDIAPLAYHEAD", "OMIDPARTNER", "PAGEURL", "PLACEMENTTYPE", "PLAYERCAPABILITIES", "PLAYERSIZE", "PLAYERSTATE", "PODSEQUENCE", "REGULATIONS", "SERVERSIDE", "SERVERUA", "TRANSACTIONID", "UNIVERSALADID", "VASTVERSIONS", "VERIFICATIONVENDORS"];
17448
+ const iN = ["ADCATEGORIES", "ADCOUNT", "ADPLAYHEAD", "ADSERVINGID", "ADTYPE", "APIFRAMEWORKS", "APPBUNDLE", "ASSETURI", "BLOCKEDADCATEGORIES", "BREAKMAXADLENGTH", "BREAKMAXADS", "BREAKMAXDURATION", "BREAKMINADLENGTH", "BREAKMINDURATION", "BREAKPOSITION", "CLICKPOS", "CLICKTYPE", "CLIENTUA", "CONTENTID", "CONTENTPLAYHEAD", "CONTENTURI", "DEVICEIP", "DEVICEUA", "DOMAIN", "EXTENSIONS", "GDPRCONSENT", "IFA", "IFATYPE", "INVENTORYSTATE", "LATLONG", "LIMITADTRACKING", "MEDIAMIME", "MEDIAPLAYHEAD", "OMIDPARTNER", "PAGEURL", "PLACEMENTTYPE", "PLAYERCAPABILITIES", "PLAYERSIZE", "PLAYERSTATE", "PODSEQUENCE", "REGULATIONS", "SERVERSIDE", "SERVERUA", "TRANSACTIONID", "UNIVERSALADID", "VASTVERSIONS", "VERIFICATIONVENDORS"];
17447
17449
  function q3(e) {
17448
17450
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
17449
17451
  const r = [], i = h4(e);
@@ -17458,7 +17460,7 @@ function q3(e) {
17458
17460
  function u4(e, t) {
17459
17461
  const n = (e = e5(e, t)).match(/[^[\]]+(?=])/g);
17460
17462
  if (!n) return e;
17461
- let r = n.filter(((i) => rN.indexOf(i) > -1));
17463
+ let r = n.filter(((i) => iN.indexOf(i) > -1));
17462
17464
  return r.length === 0 ? e : (r = r.reduce(((i, s) => (i[s] = -1, i)), {}), e5(e, r));
17463
17465
  }
17464
17466
  function e5(e, t) {
@@ -17520,7 +17522,7 @@ const Sn = { track: function(e, t, n) {
17520
17522
  function r5(e) {
17521
17523
  return ["true", "TRUE", "True", "1"].includes(e);
17522
17524
  }
17523
- function iN(e) {
17525
+ function sN(e) {
17524
17526
  if (e == null) return -1;
17525
17527
  if (Sn.isNumeric(e)) return parseInt(e);
17526
17528
  const t = e.split(":");
@@ -17553,7 +17555,7 @@ const J = { childByName: function(e, t) {
17553
17555
  r && n.setAttribute(e, r);
17554
17556
  }, parseAttributes: function(e) {
17555
17557
  return Array.from(e.attributes).reduce(((t, n) => (t[n.nodeName] = n.nodeValue, t)), {});
17556
- }, parseDuration: iN, getStandAloneAds: function() {
17558
+ }, parseDuration: sN, getStandAloneAds: function() {
17557
17559
  return (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []).filter(((e) => !parseInt(e.sequence, 10)));
17558
17560
  }, getSortedAdPods: function() {
17559
17561
  return (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []).filter(((e) => parseInt(e.sequence, 10))).sort(((e, t) => e.sequence - t.sequence));
@@ -17591,7 +17593,7 @@ const J = { childByName: function(e, t) {
17591
17593
  o.length && (e.creatives = e.creatives.concat(o));
17592
17594
  }
17593
17595
  } };
17594
- function sN(e, t) {
17596
+ function aN(e, t) {
17595
17597
  const n = (function() {
17596
17598
  let r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
17597
17599
  const { id: i, adId: s, sequence: a, apiFramework: o } = S2(r);
@@ -17621,7 +17623,7 @@ function sN(e, t) {
17621
17623
  return a && (i.adParameters = { value: J.parseNodeText(a), xmlEncoded: a.getAttribute("xmlEncoded") || null }), i;
17622
17624
  })), n;
17623
17625
  }
17624
- function aN(e, t) {
17626
+ function oN(e, t) {
17625
17627
  let n;
17626
17628
  const r = (function() {
17627
17629
  let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -17725,7 +17727,7 @@ function aN(e, t) {
17725
17727
  })(l));
17726
17728
  })), r;
17727
17729
  }
17728
- function oN(e, t) {
17730
+ function lN(e, t) {
17729
17731
  const n = (function() {
17730
17732
  let r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
17731
17733
  const { id: i, adId: s, sequence: a, apiFramework: o } = S2(r);
@@ -17778,7 +17780,7 @@ function f4(e) {
17778
17780
  return (i = t).value === null && Object.keys(i.attributes).length === 0 && i.children.length === 0 ? null : t;
17779
17781
  var i;
17780
17782
  }
17781
- function lN(e) {
17783
+ function cN(e) {
17782
17784
  return e.getAttribute("AdID") || e.getAttribute("adID") || e.getAttribute("adId") || null;
17783
17785
  }
17784
17786
  const ii = { Wrapper: { subElements: ["VASTAdTagURI", "Impression"] }, BlockedAdCategories: { attributes: ["authority"] }, InLine: { subElements: ["AdSystem", "AdTitle", "Impression", "AdServingId", "Creatives"] }, Category: { attributes: ["authority"] }, Pricing: { attributes: ["model", "currency"] }, Verification: { oneOfinLineResources: ["JavaScriptResource", "ExecutableResource"], attributes: ["vendor"] }, UniversalAdId: { attributes: ["idRegistry"] }, JavaScriptResource: { attributes: ["apiFramework", "browserOptional"] }, ExecutableResource: { attributes: ["apiFramework", "type"] }, Tracking: { attributes: ["event"] }, Creatives: { subElements: ["Creative"] }, Creative: { subElements: ["UniversalAdId"] }, Linear: { subElements: ["MediaFiles", "Duration"] }, MediaFiles: { subElements: ["MediaFile"] }, MediaFile: { attributes: ["delivery", "type", "width", "height"] }, Mezzanine: { attributes: ["delivery", "type", "width", "height"] }, NonLinear: { oneOfinLineResources: ["StaticResource", "IFrameResource", "HTMLResource"], attributes: ["width", "height"] }, Companion: { oneOfinLineResources: ["StaticResource", "IFrameResource", "HTMLResource"], attributes: ["width", "height"] }, StaticResource: { attributes: ["creativeType"] }, Icons: { subElements: ["Icon"] }, Icon: { oneOfinLineResources: ["StaticResource", "IFrameResource", "HTMLResource"] } };
@@ -17804,32 +17806,32 @@ function Ar(e, t) {
17804
17806
  let { name: n, parentName: r, attributes: i, subElements: s, oneOfResources: a } = e, o = "Element '".concat(n, "'");
17805
17807
  o += i ? " missing required attribute(s) '".concat(i.join(", "), "' ") : s ? " missing required sub element(s) '".concat(s.join(", "), "' ") : a ? " must provide one of the following '".concat(a.join(", "), "' ") : " is empty", t("VAST-warning", { message: o, parentElement: r, specVersion: 4.1 });
17806
17808
  }
17807
- const cN = { verifyRequiredValues: function e(t, n, r) {
17809
+ const dN = { verifyRequiredValues: function e(t, n, r) {
17808
17810
  if (t && t.nodeName) if (t.nodeName === "InLine" && (r = !0), s5(t, n), o5(t)) {
17809
17811
  a5(t, n, r);
17810
17812
  for (let i = 0; i < t.children.length; i++) e(t.children[i], n, r);
17811
17813
  } else J.parseNodeText(t).length === 0 && Ar({ name: t.nodeName, parentName: t.parentNode.nodeName }, n);
17812
17814
  }, hasSubElements: o5, emitMissingValueWarning: Ar, verifyRequiredAttributes: s5, verifyRequiredSubElements: a5 };
17813
- function dN(e, t) {
17815
+ function uN(e, t) {
17814
17816
  let { allowMultipleAds: n, followAdditionalWrappers: r } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
17815
17817
  const i = Array.from(e.childNodes).filter(((s) => {
17816
17818
  const a = s.nodeName.toLowerCase();
17817
17819
  return a === "inline" || r !== !1 && a === "wrapper";
17818
17820
  }));
17819
17821
  for (const s of i) {
17820
- if (J.copyNodeAttribute("id", e, s), J.copyNodeAttribute("sequence", e, s), J.copyNodeAttribute("adType", e, s), s.nodeName === "Wrapper") return { ad: hN(s, t), type: "WRAPPER" };
17821
- if (s.nodeName === "InLine") return { ad: uN(s, t, { allowMultipleAds: n }), type: "INLINE" };
17822
+ if (J.copyNodeAttribute("id", e, s), J.copyNodeAttribute("sequence", e, s), J.copyNodeAttribute("adType", e, s), s.nodeName === "Wrapper") return { ad: pN(s, t), type: "WRAPPER" };
17823
+ if (s.nodeName === "InLine") return { ad: hN(s, t, { allowMultipleAds: n }), type: "INLINE" };
17822
17824
  const a = s.nodeName.toLowerCase();
17823
17825
  t("VAST-warning", { message: "<".concat(s.nodeName, a === "inline" ? "> must be written <InLine>" : "> must be written <Wrapper>"), wrongNode: s });
17824
17826
  }
17825
17827
  }
17826
- function uN(e, t) {
17828
+ function hN(e, t) {
17827
17829
  let { allowMultipleAds: n } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
17828
17830
  return n === !1 && e.getAttribute("sequence") ? null : b4(e, t);
17829
17831
  }
17830
17832
  function b4(e, t) {
17831
17833
  let n = [];
17832
- t && cN.verifyRequiredValues(e, t);
17834
+ t && dN.verifyRequiredValues(e, t);
17833
17835
  const r = Array.from(e.childNodes), i = (function() {
17834
17836
  let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
17835
17837
  return { id: s.id || null, sequence: s.sequence || null, adType: s.adType || null, adServingId: null, categories: [], expires: null, viewableImpression: [], system: null, title: null, description: null, advertiser: null, pricing: null, survey: null, errorURLTemplates: [], impressionURLTemplates: [], creatives: [], extensions: [], adVerifications: [], blockedAdCategories: [], followAdditionalWrappers: !0, allowMultipleAds: !1, fallbackOnNoAd: null };
@@ -17846,7 +17848,7 @@ function b4(e, t) {
17846
17848
  i.creatives = (function(a) {
17847
17849
  const o = [];
17848
17850
  return a.forEach(((l) => {
17849
- const c = { id: l.getAttribute("id") || null, adId: lN(l), sequence: l.getAttribute("sequence") || null, apiFramework: l.getAttribute("apiFramework") || null }, d = [];
17851
+ const c = { id: l.getAttribute("id") || null, adId: cN(l), sequence: l.getAttribute("sequence") || null, apiFramework: l.getAttribute("apiFramework") || null }, d = [];
17850
17852
  let u;
17851
17853
  J.childrenByName(l, "UniversalAdId").forEach(((p) => {
17852
17854
  const g = { idRegistry: p.getAttribute("idRegistry") || "unknown", value: J.parseNodeText(p) };
@@ -17859,13 +17861,13 @@ function b4(e, t) {
17859
17861
  let V;
17860
17862
  switch (g.nodeName) {
17861
17863
  case "Linear":
17862
- V = aN(g, c);
17864
+ V = oN(g, c);
17863
17865
  break;
17864
17866
  case "NonLinearAds":
17865
- V = oN(g, c);
17867
+ V = lN(g, c);
17866
17868
  break;
17867
17869
  case "CompanionAds":
17868
- V = sN(g, c);
17870
+ V = aN(g, c);
17869
17871
  }
17870
17872
  V && (d && (V.universalAdIds = d), u && (V.creativeExtensions = u), o.push(V));
17871
17873
  }
@@ -17924,7 +17926,7 @@ function b4(e, t) {
17924
17926
  }
17925
17927
  })), n.length && (i.adVerifications = i.adVerifications.concat(n)), i;
17926
17928
  }
17927
- function hN(e, t) {
17929
+ function pN(e, t) {
17928
17930
  const n = b4(e, t), r = e.getAttribute("followAdditionalWrappers"), i = e.getAttribute("allowMultipleAds"), s = e.getAttribute("fallbackOnNoAd");
17929
17931
  n.followAdditionalWrappers = !r || J.parseBoolean(r), n.allowMultipleAds = !!i && J.parseBoolean(i), n.fallbackOnNoAd = s ? J.parseBoolean(s) : null;
17930
17932
  let a = J.childByName(e, "VASTAdTagURI");
@@ -17969,7 +17971,7 @@ function l5(e) {
17969
17971
  })), t.push(r);
17970
17972
  })), t;
17971
17973
  }
17972
- class pN {
17974
+ class mN {
17973
17975
  constructor() {
17974
17976
  this._handlers = [];
17975
17977
  }
@@ -18013,15 +18015,15 @@ class pN {
18013
18015
  let c5 = 0, E1 = 0;
18014
18016
  const A4 = (e, t) => {
18015
18017
  !e || !t || e <= 0 || t <= 0 || (E1 = (E1 * c5 + 8 * e / t) / ++c5);
18016
- }, mN = { ERRORCODE: 900, extensions: [] }, d5 = "VAST response version not supported";
18017
- class gN extends pN {
18018
+ }, gN = { ERRORCODE: 900, extensions: [] }, d5 = "VAST response version not supported";
18019
+ class fN extends mN {
18018
18020
  constructor() {
18019
18021
  let { fetcher: t } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
18020
18022
  super(), this.maxWrapperDepth = null, this.rootErrorURLTemplates = [], this.errorURLTemplates = [], this.remainingAds = [], this.parsingOptions = {}, this.fetcher = t || null, this.keepFailedAdPod = !1;
18021
18023
  }
18022
18024
  trackVastError(t, n) {
18023
18025
  for (var r = arguments.length, i = new Array(r > 2 ? r - 2 : 0), s = 2; s < r; s++) i[s - 2] = arguments[s];
18024
- this.emit("VAST-error", Object.assign({}, mN, n, ...i)), Sn.track(t, n);
18026
+ this.emit("VAST-error", Object.assign({}, gN, n, ...i)), Sn.track(t, n);
18025
18027
  }
18026
18028
  getErrorURLTemplates() {
18027
18029
  return this.rootErrorURLTemplates.concat(this.errorURLTemplates);
@@ -18070,7 +18072,7 @@ class gN extends pN {
18070
18072
  } else if (p.nodeName === "Ad") {
18071
18073
  if (this.vastVersion && parseFloat(this.vastVersion) < 3) a = !0;
18072
18074
  else if (a === !1 && c.length > 1) break;
18073
- const g = dN(p, this.emit.bind(this), { allowMultipleAds: a, followAdditionalWrappers: o });
18075
+ const g = uN(p, this.emit.bind(this), { allowMultipleAds: a, followAdditionalWrappers: o });
18074
18076
  g.ad ? (c.push(g.ad), this.emit("VAST-ad-parsed", { type: g.type, url: i, wrapperDepth: s, adIndex: c.length - 1, vastVersion: u })) : this.trackVastError(this.getErrorURLTemplates(), { ERRORCODE: 101 });
18075
18077
  }
18076
18078
  }
@@ -18129,7 +18131,7 @@ class gN extends pN {
18129
18131
  }
18130
18132
  }
18131
18133
  let Lt = null;
18132
- const fN = { data: {}, length: 0, getItem(e) {
18134
+ const bN = { data: {}, length: 0, getItem(e) {
18133
18135
  return this.data[e];
18134
18136
  }, setItem(e, t) {
18135
18137
  this.data[e] = t, this.length = Object.keys(this.data).length;
@@ -18138,7 +18140,7 @@ const fN = { data: {}, length: 0, getItem(e) {
18138
18140
  }, clear() {
18139
18141
  this.data = {}, this.length = 0;
18140
18142
  } };
18141
- class bN {
18143
+ class AN {
18142
18144
  constructor() {
18143
18145
  this.storage = this.initStorage();
18144
18146
  }
@@ -18149,7 +18151,7 @@ class bN {
18149
18151
  } catch {
18150
18152
  Lt = null;
18151
18153
  }
18152
- return Lt && !this.isStorageDisabled(Lt) || (Lt = fN, Lt.clear()), Lt;
18154
+ return Lt && !this.isStorageDisabled(Lt) || (Lt = bN, Lt.clear()), Lt;
18153
18155
  }
18154
18156
  isStorageDisabled(t) {
18155
18157
  const n = "__VASTStorage__";
@@ -18173,7 +18175,7 @@ class bN {
18173
18175
  return this.storage.clear();
18174
18176
  }
18175
18177
  }
18176
- const C1 = 12e4, AN = { get: async function(e, t) {
18178
+ const C1 = 12e4, VN = { get: async function(e, t) {
18177
18179
  try {
18178
18180
  const n = new AbortController(), r = setTimeout((() => {
18179
18181
  throw n.abort(), new Error("URLHandler: Request timed out after ".concat(t.timeout || C1, " ms (408)"));
@@ -18185,19 +18187,19 @@ const C1 = 12e4, AN = { get: async function(e, t) {
18185
18187
  return s ? { error: new Error(s), statusCode: i.status } : (async function(a) {
18186
18188
  const o = await a.text();
18187
18189
  let l;
18188
- return l = Sn.isBrowserEnvironment() ? new DOMParser() : new (await import("./index-ByUNFvMk.js").then((c) => c.i)).DOMParser(), { xml: l.parseFromString(o, "text/xml"), details: { byteLength: o.length, statusCode: a.status, rawXml: o } };
18190
+ return l = Sn.isBrowserEnvironment() ? new DOMParser() : new (await import("./index-DvqmgCor.js").then((c) => c.i)).DOMParser(), { xml: l.parseFromString(o, "text/xml"), details: { byteLength: o.length, statusCode: a.status, rawXml: o } };
18189
18191
  })(i);
18190
18192
  } catch (n) {
18191
18193
  return { error: n, statusCode: n.name === "AbortError" ? 408 : null };
18192
18194
  }
18193
18195
  } };
18194
- class VN {
18196
+ class RN {
18195
18197
  constructor() {
18196
18198
  this.URLTemplateFilters = [];
18197
18199
  }
18198
18200
  setOptions() {
18199
18201
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
18200
- this.urlHandler = t.urlHandler || t.urlhandler || AN, this.fetchingOptions = { ...t.fetchOptions, timeout: t.timeout || C1, withCredentials: !!t.withCredentials };
18202
+ this.urlHandler = t.urlHandler || t.urlhandler || VN, this.fetchingOptions = { ...t.fetchOptions, timeout: t.timeout || C1, withCredentials: !!t.withCredentials };
18201
18203
  }
18202
18204
  addURLTemplateFilter(t) {
18203
18205
  typeof t == "function" && this.URLTemplateFilters.push(t);
@@ -18223,10 +18225,10 @@ class VN {
18223
18225
  return d.xml;
18224
18226
  }
18225
18227
  }
18226
- class RN {
18228
+ class yN {
18227
18229
  constructor() {
18228
- let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : new bN();
18229
- this.cappingFreeLunch = t, this.cappingMinimumTimeInterval = n, this.fetcher = new VN(), this.vastParser = new gN({ fetcher: this.fetcher }), this.storage = r, this.lastSuccessfulAd === void 0 && (this.lastSuccessfulAd = 0), this.totalCalls === void 0 && (this.totalCalls = 0), this.totalCallsTimeout === void 0 && (this.totalCallsTimeout = 0);
18230
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : new AN();
18231
+ this.cappingFreeLunch = t, this.cappingMinimumTimeInterval = n, this.fetcher = new RN(), this.vastParser = new fN({ fetcher: this.fetcher }), this.storage = r, this.lastSuccessfulAd === void 0 && (this.lastSuccessfulAd = 0), this.totalCalls === void 0 && (this.totalCalls = 0), this.totalCallsTimeout === void 0 && (this.totalCallsTimeout = 0);
18230
18232
  }
18231
18233
  addURLTemplateFilter(t) {
18232
18234
  this.fetcher.addURLTemplateFilter(t);
@@ -18286,10 +18288,10 @@ class RN {
18286
18288
  }));
18287
18289
  }
18288
18290
  }
18289
- const yN = new RN(), yl = dt("ui:gam-static"), u5 = (e) => new Promise((t, n) => {
18291
+ const EN = new yN(), yl = dt("ui:gam-static"), u5 = (e) => new Promise((t, n) => {
18290
18292
  const r = new Image();
18291
18293
  r.onload = () => t(e), r.onerror = () => n(), r.src = e;
18292
- }), EN = (e) => (t, n, r) => e.transport.nanoquery.createFetcherStore([t, n], {
18294
+ }), CN = (e) => (t, n, r) => e.transport.nanoquery.createFetcherStore([t, n], {
18293
18295
  dedupeTime: r.prefetch ? r.refetchInterval : 1 / 0,
18294
18296
  revalidateInterval: r.refetchInterval > 0 ? r.refetchInterval : 0,
18295
18297
  fetcher: async (i) => {
@@ -18300,7 +18302,7 @@ const yN = new RN(), yl = dt("ui:gam-static"), u5 = (e) => new Promise((t, n) =>
18300
18302
  payload: {}
18301
18303
  });
18302
18304
  try {
18303
- const s = (await yN.get(i)).ads.find((a) => a.creatives.length > 0);
18305
+ const s = (await EN.get(i)).ads.find((a) => a.creatives.length > 0);
18304
18306
  if (s) {
18305
18307
  const a = s.id || "";
18306
18308
  yl.debug(s, "validAd");
@@ -18350,14 +18352,14 @@ const yN = new RN(), yl = dt("ui:gam-static"), u5 = (e) => new Promise((t, n) =>
18350
18352
  }
18351
18353
  }
18352
18354
  });
18353
- class CN extends n4 {
18355
+ class SN extends n4 {
18354
18356
  getExternalPauseAd;
18355
18357
  externalPauseAdStores = /* @__PURE__ */ new Map();
18356
18358
  externalPauseAdEnabled = /* @__PURE__ */ new Map();
18357
18359
  log;
18358
18360
  constructor(t) {
18359
18361
  super(), this.log = dt("advertisement");
18360
- const n = EN(t);
18362
+ const n = CN(t);
18361
18363
  this.getExternalPauseAd = (r, i) => {
18362
18364
  if (this.externalPauseAdStores.has(r)) {
18363
18365
  const o = this.externalPauseAdEnabled.get(r), l = this.externalPauseAdStores.get(r), c = o.get() === !1 && i.$enabled === !0;
@@ -18380,12 +18382,12 @@ class CN extends n4 {
18380
18382
  }), this.externalPauseAdEnabled.clear(), this.externalPauseAdStores.clear();
18381
18383
  };
18382
18384
  }
18383
- const SN = (e, t, n) => {
18384
- e.sdk.advertisement = new CN(e), e.sdk.onMount({ name: "advertisement" }, () => (e.sdk.advertisement.connect(), () => {
18385
+ const ZN = (e, t, n) => {
18386
+ e.sdk.advertisement = new SN(e), e.sdk.onMount({ name: "advertisement" }, () => (e.sdk.advertisement.connect(), () => {
18385
18387
  e.sdk.advertisement.disconnect();
18386
18388
  })), n();
18387
18389
  };
18388
- class ZN {
18390
+ class vN {
18389
18391
  analytics;
18390
18392
  constructor(t) {
18391
18393
  this.analytics = t, this.analytics.onConnect(() => {
@@ -18416,7 +18418,7 @@ class ZN {
18416
18418
  });
18417
18419
  };
18418
18420
  }
18419
- class vN {
18421
+ class WN {
18420
18422
  analytics;
18421
18423
  constructor(t) {
18422
18424
  this.analytics = t, this.analytics.onConnect(() => {
@@ -18453,7 +18455,7 @@ class vN {
18453
18455
  });
18454
18456
  };
18455
18457
  }
18456
- const WN = {
18458
+ const IN = {
18457
18459
  [ye.UNSET]: Ue.UNSET,
18458
18460
  [ye.INGAME_IAB21]: Ue.PROMOTION_INGAME_IAB21,
18459
18461
  [ye.INGAME_IAB21_SIDEBAR]: Ue.PROMOTION_INGAME_IAB21,
@@ -18477,12 +18479,12 @@ const WN = {
18477
18479
  [ye.STANDARD]: Ue.UNSET,
18478
18480
  [ye.SHOP]: Ue.UNSET,
18479
18481
  [ye.NFL_SHOP]: Ue.UNSET
18480
- }, S1 = (e) => e ? WN[e] : Ue.UNSET, IN = {
18482
+ }, S1 = (e) => e ? IN[e] : Ue.UNSET, FN = {
18481
18483
  25: Ae.AD_VIDEO_Q25,
18482
18484
  50: Ae.AD_VIDEO_Q50,
18483
18485
  75: Ae.AD_VIDEO_Q75
18484
18486
  };
18485
- class FN {
18487
+ class NN {
18486
18488
  analytics;
18487
18489
  constructor(t) {
18488
18490
  this.analytics = t, this.analytics.onConnect(() => {
@@ -18686,7 +18688,7 @@ class FN {
18686
18688
  common: {
18687
18689
  ...this.analytics.commonStore.getValues(),
18688
18690
  topicId: t,
18689
- kind: IN[n],
18691
+ kind: FN[n],
18690
18692
  topicType: Ze.POLLS_PROMOTION,
18691
18693
  topicSubType: r
18692
18694
  },
@@ -18788,7 +18790,7 @@ const pr = {
18788
18790
  [K.TWEET]: Ze.POLLS_TWITTER
18789
18791
  };
18790
18792
  K.UNSET + "", xt.UNSET, K.FACTOID + "", xt.POLLS, K.POLL + "", xt.POLLS, K.PREDICTION + "", xt.POLLS, K.PROMOTION + "", xt.POLLS, K.TRIVIA + "", xt.POLLS, K.TWEET + "", xt.POLLS;
18791
- const NN = {
18793
+ const GN = {
18792
18794
  [ge.UNSET]: _e.UNSET,
18793
18795
  [ge.INPLAY]: _e.INPLAY,
18794
18796
  [ge.MESSAGING]: _e.MESSAGING,
@@ -18808,7 +18810,7 @@ const NN = {
18808
18810
  [ge.HIGHLIGHTS]: _e.HIGHLIGHTS,
18809
18811
  [ge.PUBLIC_CHAT]: _e.PUBLIC_CHAT
18810
18812
  };
18811
- class GN {
18813
+ class XN {
18812
18814
  analytics;
18813
18815
  constructor(t) {
18814
18816
  this.analytics = t, this.analytics.onConnect(() => {
@@ -18870,7 +18872,7 @@ class GN {
18870
18872
  });
18871
18873
  };
18872
18874
  }
18873
- class XN {
18875
+ class UN {
18874
18876
  analytics;
18875
18877
  constructor(t) {
18876
18878
  this.analytics = t, this.analytics.onConnect(() => {
@@ -18954,7 +18956,7 @@ class XN {
18954
18956
  });
18955
18957
  };
18956
18958
  }
18957
- const UN = ({ transport: e, $commonStore: t }) => {
18959
+ const BN = ({ transport: e, $commonStore: t }) => {
18958
18960
  let n;
18959
18961
  const r = Me(!1), i = 3e4, { client: s, queryKey: a } = e.createPromiseClient(jp, {
18960
18962
  method: "send",
@@ -18992,7 +18994,7 @@ const UN = ({ transport: e, $commonStore: t }) => {
18992
18994
  Ht.debug("unmounted heartbeat"), o.off(), n?.(), n = void 0, d();
18993
18995
  } };
18994
18996
  }, Ht = dt("analytics");
18995
- class BN {
18997
+ class YN {
18996
18998
  commonStore;
18997
18999
  notifications;
18998
19000
  polls;
@@ -19005,7 +19007,7 @@ class BN {
19005
19007
  listenersCancels;
19006
19008
  connected = !1;
19007
19009
  constructor(t) {
19008
- this.listeners = /* @__PURE__ */ new Set(), this.listenersCancels = /* @__PURE__ */ new Set(), this.commonStore = new Rn(ot({}), "common-analytics"), this.connectToSDK(t), this.heartbeat = UN({ transport: t.analyticsTransport, $commonStore: this.commonStore }), this.notifications = new GN(this), this.polls = new XN(this), this.invitation = new ZN(this), this.interactions = new vN(this), this.advertisement = new FN(this);
19010
+ this.listeners = /* @__PURE__ */ new Set(), this.listenersCancels = /* @__PURE__ */ new Set(), this.commonStore = new Rn(ot({}), "common-analytics"), this.connectToSDK(t), this.heartbeat = BN({ transport: t.analyticsTransport, $commonStore: this.commonStore }), this.notifications = new XN(this), this.polls = new UN(this), this.invitation = new vN(this), this.interactions = new WN(this), this.advertisement = new NN(this);
19009
19011
  const { client: n } = t.analyticsTransport.createPromiseClient(jp, {
19010
19012
  method: "send"
19011
19013
  });
@@ -19035,7 +19037,7 @@ class BN {
19035
19037
  this.onConnect(() => t.stores.slStreamId.getAtomStore().subscribe((n) => {
19036
19038
  this.writeCommon("eventId", n);
19037
19039
  })), this.onConnect(() => t.sdk.getActiveFeature().subscribe((n) => {
19038
- n && this.writeCommon("category", NN[n]), n !== ge.UNSET ? this.writeCommon("overlaySessionId", Bn()) : this.writeCommon("overlaySessionId", "");
19040
+ n && this.writeCommon("category", GN[n]), n !== ge.UNSET ? this.writeCommon("overlaySessionId", Bn()) : this.writeCommon("overlaySessionId", "");
19039
19041
  })), this.onConnect(() => {
19040
19042
  const n = (r) => {
19041
19043
  if (!r.slEventBus)
@@ -19058,19 +19060,19 @@ class BN {
19058
19060
  }));
19059
19061
  };
19060
19062
  }
19061
- const YN = (e, t, n) => {
19062
- e.analytics = new BN(e), e.sdk.onMount({ name: "analytics" }, () => (e.analytics.connect(), e.sdk.writeOverlaySessionId = (r) => {
19063
+ const TN = (e, t, n) => {
19064
+ e.analytics = new YN(e), e.sdk.onMount({ name: "analytics" }, () => (e.analytics.connect(), e.sdk.writeOverlaySessionId = (r) => {
19063
19065
  r === "" ? e.analytics.writeCommon("overlaySessionId", "") : e.analytics.writeCommon("overlaySessionId", Bn());
19064
19066
  }, () => {
19065
19067
  e.analytics.disconnect();
19066
19068
  })), n();
19067
19069
  };
19068
19070
  var Z2 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof o1 < "u" ? o1 : typeof self < "u" ? self : {};
19069
- function TN(e) {
19071
+ function wN(e) {
19070
19072
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
19071
19073
  }
19072
19074
  var Kr = { exports: {} }, Mr = { exports: {} }, El, h5;
19073
- function wN() {
19075
+ function LN() {
19074
19076
  if (h5) return El;
19075
19077
  h5 = 1;
19076
19078
  function e(t) {
@@ -19093,7 +19095,7 @@ var p5;
19093
19095
  function V4() {
19094
19096
  if (p5) return Mr.exports;
19095
19097
  p5 = 1;
19096
- var e = wN();
19098
+ var e = LN();
19097
19099
  function t(s, a, o) {
19098
19100
  if (typeof s == "function" && (o = a, a = s, s = null), !(o >= 1))
19099
19101
  throw new Error("fastqueue concurrency must be equal to or greater than 1");
@@ -19484,19 +19486,19 @@ function xi() {
19484
19486
  }, Cl;
19485
19487
  }
19486
19488
  var R5, y5;
19487
- function LN() {
19489
+ function kN() {
19488
19490
  return y5 || (y5 = 1, R5 = Error), R5;
19489
19491
  }
19490
19492
  var E5, C5;
19491
- function kN() {
19493
+ function JN() {
19492
19494
  return C5 || (C5 = 1, E5 = EvalError), E5;
19493
19495
  }
19494
19496
  var S5, Z5;
19495
- function JN() {
19497
+ function xN() {
19496
19498
  return Z5 || (Z5 = 1, S5 = RangeError), S5;
19497
19499
  }
19498
19500
  var v5, W5;
19499
- function xN() {
19501
+ function QN() {
19500
19502
  return W5 || (W5 = 1, v5 = ReferenceError), v5;
19501
19503
  }
19502
19504
  var I5, F5;
@@ -19508,11 +19510,11 @@ function Qi() {
19508
19510
  return G5 || (G5 = 1, N5 = TypeError), N5;
19509
19511
  }
19510
19512
  var X5, U5;
19511
- function QN() {
19513
+ function zN() {
19512
19514
  return U5 || (U5 = 1, X5 = URIError), X5;
19513
19515
  }
19514
19516
  var Sl, B5;
19515
- function zN() {
19517
+ function KN() {
19516
19518
  if (B5) return Sl;
19517
19519
  B5 = 1;
19518
19520
  var e = typeof Symbol < "u" && Symbol, t = y4();
@@ -19521,7 +19523,7 @@ function zN() {
19521
19523
  }, Sl;
19522
19524
  }
19523
19525
  var Zl, Y5;
19524
- function KN() {
19526
+ function MN() {
19525
19527
  if (Y5) return Zl;
19526
19528
  Y5 = 1;
19527
19529
  var e = {
@@ -19533,7 +19535,7 @@ function KN() {
19533
19535
  }, Zl;
19534
19536
  }
19535
19537
  var vl, T5;
19536
- function MN() {
19538
+ function HN() {
19537
19539
  if (T5) return vl;
19538
19540
  T5 = 1;
19539
19541
  var e = "Function.prototype.bind called on incompatible ", t = Object.prototype.toString, n = Math.max, r = "[object Function]", i = function(o, l) {
@@ -19581,11 +19583,11 @@ var Wl, w5;
19581
19583
  function v2() {
19582
19584
  if (w5) return Wl;
19583
19585
  w5 = 1;
19584
- var e = MN();
19586
+ var e = HN();
19585
19587
  return Wl = Function.prototype.bind || e, Wl;
19586
19588
  }
19587
19589
  var Il, L5;
19588
- function HN() {
19590
+ function ON() {
19589
19591
  if (L5) return Il;
19590
19592
  L5 = 1;
19591
19593
  var e = Function.prototype.call, t = Object.prototype.hasOwnProperty, n = v2();
@@ -19595,7 +19597,7 @@ var Fl, k5;
19595
19597
  function Fr() {
19596
19598
  if (k5) return Fl;
19597
19599
  k5 = 1;
19598
- var e, t = /* @__PURE__ */ LN(), n = /* @__PURE__ */ kN(), r = /* @__PURE__ */ JN(), i = /* @__PURE__ */ xN(), s = /* @__PURE__ */ E4(), a = /* @__PURE__ */ Qi(), o = /* @__PURE__ */ QN(), l = Function, c = function(j) {
19600
+ var e, t = /* @__PURE__ */ kN(), n = /* @__PURE__ */ JN(), r = /* @__PURE__ */ xN(), i = /* @__PURE__ */ QN(), s = /* @__PURE__ */ E4(), a = /* @__PURE__ */ Qi(), o = /* @__PURE__ */ zN(), l = Function, c = function(j) {
19599
19601
  try {
19600
19602
  return l('"use strict"; return (' + j + ").constructor;")();
19601
19603
  } catch {
@@ -19619,7 +19621,7 @@ function Fr() {
19619
19621
  return u;
19620
19622
  }
19621
19623
  }
19622
- })() : u, p = zN()(), g = /* @__PURE__ */ KN()(), V = Object.getPrototypeOf || (g ? function(j) {
19624
+ })() : u, p = KN()(), g = /* @__PURE__ */ MN()(), V = Object.getPrototypeOf || (g ? function(j) {
19623
19625
  return j.__proto__;
19624
19626
  } : null), y = {}, b = typeof Uint8Array > "u" || !V ? e : V(Uint8Array), f = {
19625
19627
  __proto__: null,
@@ -19767,7 +19769,7 @@ function Fr() {
19767
19769
  "%URIErrorPrototype%": ["URIError", "prototype"],
19768
19770
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
19769
19771
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
19770
- }, I = v2(), X = HN(), Z = I.call(Function.call, Array.prototype.concat), v = I.call(Function.apply, Array.prototype.splice), W = I.call(Function.call, String.prototype.replace), F = I.call(Function.call, String.prototype.slice), G = I.call(Function.call, RegExp.prototype.exec), T = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, O = /\\(\\)?/g, M = function(j) {
19772
+ }, I = v2(), X = ON(), Z = I.call(Function.call, Array.prototype.concat), v = I.call(Function.apply, Array.prototype.splice), W = I.call(Function.call, String.prototype.replace), F = I.call(Function.call, String.prototype.slice), G = I.call(Function.call, RegExp.prototype.exec), T = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, O = /\\(\\)?/g, M = function(j) {
19771
19773
  var ue = F(j, 0, 1), $ = F(j, -1);
19772
19774
  if (ue === "%" && $ !== "%")
19773
19775
  throw new s("invalid intrinsic syntax, expected closing `%`");
@@ -19850,7 +19852,7 @@ function zi() {
19850
19852
  return Gl = t, Gl;
19851
19853
  }
19852
19854
  var Xl, z5;
19853
- function ON() {
19855
+ function _N() {
19854
19856
  if (z5) return Xl;
19855
19857
  z5 = 1;
19856
19858
  var e = /* @__PURE__ */ W2(), t = /* @__PURE__ */ E4(), n = /* @__PURE__ */ Qi(), r = /* @__PURE__ */ zi();
@@ -19882,7 +19884,7 @@ function ON() {
19882
19884
  }, Xl;
19883
19885
  }
19884
19886
  var Ul, K5;
19885
- function _N() {
19887
+ function DN() {
19886
19888
  if (K5) return Ul;
19887
19889
  K5 = 1;
19888
19890
  var e = /* @__PURE__ */ W2(), t = function() {
@@ -19899,10 +19901,10 @@ function _N() {
19899
19901
  }, Ul = t, Ul;
19900
19902
  }
19901
19903
  var Bl, M5;
19902
- function DN() {
19904
+ function PN() {
19903
19905
  if (M5) return Bl;
19904
19906
  M5 = 1;
19905
- var e = /* @__PURE__ */ Fr(), t = /* @__PURE__ */ ON(), n = /* @__PURE__ */ _N()(), r = /* @__PURE__ */ zi(), i = /* @__PURE__ */ Qi(), s = e("%Math.floor%");
19907
+ var e = /* @__PURE__ */ Fr(), t = /* @__PURE__ */ _N(), n = /* @__PURE__ */ DN()(), r = /* @__PURE__ */ zi(), i = /* @__PURE__ */ Qi(), s = e("%Math.floor%");
19906
19908
  return Bl = function(a, o) {
19907
19909
  if (typeof a != "function")
19908
19910
  throw new i("`fn` is not a function");
@@ -19931,7 +19933,7 @@ function DN() {
19931
19933
  var H5;
19932
19934
  function I2() {
19933
19935
  return H5 || (H5 = 1, (function(e) {
19934
- var t = v2(), n = /* @__PURE__ */ Fr(), r = /* @__PURE__ */ DN(), i = /* @__PURE__ */ Qi(), s = n("%Function.prototype.apply%"), a = n("%Function.prototype.call%"), o = n("%Reflect.apply%", !0) || t.call(a, s), l = /* @__PURE__ */ W2(), c = n("%Math.max%");
19936
+ var t = v2(), n = /* @__PURE__ */ Fr(), r = /* @__PURE__ */ PN(), i = /* @__PURE__ */ Qi(), s = n("%Function.prototype.apply%"), a = n("%Function.prototype.call%"), o = n("%Reflect.apply%", !0) || t.call(a, s), l = /* @__PURE__ */ W2(), c = n("%Math.max%");
19935
19937
  e.exports = function(u) {
19936
19938
  if (typeof u != "function")
19937
19939
  throw new i("a function is required");
@@ -19959,7 +19961,7 @@ function F2() {
19959
19961
  }, Yl;
19960
19962
  }
19961
19963
  var Tl, _5;
19962
- function PN() {
19964
+ function jN() {
19963
19965
  if (_5) return Tl;
19964
19966
  _5 = 1;
19965
19967
  var e = xi()(), t = F2(), n = t("Object.prototype.toString"), r = function(a) {
@@ -19972,7 +19974,7 @@ function PN() {
19972
19974
  return r.isLegacyArguments = i, Tl = s ? r : i, Tl;
19973
19975
  }
19974
19976
  var wl, D5;
19975
- function jN() {
19977
+ function $N() {
19976
19978
  if (D5) return wl;
19977
19979
  D5 = 1;
19978
19980
  var e = Object.prototype.toString, t = Function.prototype.toString, n = /^\s*(?:function)?\*/, r = xi()(), i = Object.getPrototypeOf, s = function() {
@@ -20002,7 +20004,7 @@ function jN() {
20002
20004
  }, wl;
20003
20005
  }
20004
20006
  var Ll, P5;
20005
- function $N() {
20007
+ function qN() {
20006
20008
  if (P5) return Ll;
20007
20009
  P5 = 1;
20008
20010
  var e = Function.prototype.toString, t = typeof Reflect == "object" && Reflect !== null && Reflect.apply, n, r;
@@ -20077,7 +20079,7 @@ var kl, j5;
20077
20079
  function C4() {
20078
20080
  if (j5) return kl;
20079
20081
  j5 = 1;
20080
- var e = $N(), t = Object.prototype.toString, n = Object.prototype.hasOwnProperty, r = function(o, l, c) {
20082
+ var e = qN(), t = Object.prototype.toString, n = Object.prototype.hasOwnProperty, r = function(o, l, c) {
20081
20083
  for (var d = 0, u = o.length; d < u; d++)
20082
20084
  n.call(o, d) && (c == null ? l(o[d], d, o) : l.call(c, o[d], d, o));
20083
20085
  }, i = function(o, l, c) {
@@ -20095,7 +20097,7 @@ function C4() {
20095
20097
  return kl = a, kl;
20096
20098
  }
20097
20099
  var $5, q5;
20098
- function qN() {
20100
+ function eG() {
20099
20101
  return q5 || (q5 = 1, $5 = [
20100
20102
  "Float32Array",
20101
20103
  "Float64Array",
@@ -20114,7 +20116,7 @@ var Jl, e9;
20114
20116
  function S4() {
20115
20117
  if (e9) return Jl;
20116
20118
  e9 = 1;
20117
- var e = /* @__PURE__ */ qN(), t = typeof globalThis > "u" ? Z2 : globalThis;
20119
+ var e = /* @__PURE__ */ eG(), t = typeof globalThis > "u" ? Z2 : globalThis;
20118
20120
  return Jl = function() {
20119
20121
  for (var n = [], r = 0; r < e.length; r++)
20120
20122
  typeof t[e[r]] == "function" && (n[n.length] = e[r]);
@@ -20122,7 +20124,7 @@ function S4() {
20122
20124
  }, Jl;
20123
20125
  }
20124
20126
  var xl, t9;
20125
- function eG() {
20127
+ function tG() {
20126
20128
  if (t9) return xl;
20127
20129
  t9 = 1;
20128
20130
  var e = C4(), t = /* @__PURE__ */ S4(), n = I2(), r = F2(), i = /* @__PURE__ */ zi(), s = r("Object.prototype.toString"), a = xi()(), o = typeof globalThis > "u" ? Z2 : globalThis, l = t(), c = r("String.prototype.slice"), d = Object.getPrototypeOf, u = r("Array.prototype.indexOf", !0) || function(V, y) {
@@ -20175,7 +20177,7 @@ function eG() {
20175
20177
  }, xl;
20176
20178
  }
20177
20179
  var Ql, n9;
20178
- function tG() {
20180
+ function nG() {
20179
20181
  if (n9) return Ql;
20180
20182
  n9 = 1;
20181
20183
  var e = C4(), t = /* @__PURE__ */ S4(), n = I2(), r = F2(), i = /* @__PURE__ */ zi(), s = r("Object.prototype.toString"), a = xi()(), o = typeof globalThis > "u" ? Z2 : globalThis, l = t(), c = r("String.prototype.slice"), d = Object.getPrototypeOf, u = r("Array.prototype.indexOf", !0) || function(V, y) {
@@ -20242,18 +20244,18 @@ function tG() {
20242
20244
  }, Ql;
20243
20245
  }
20244
20246
  var zl, r9;
20245
- function nG() {
20247
+ function rG() {
20246
20248
  if (r9) return zl;
20247
20249
  r9 = 1;
20248
- var e = /* @__PURE__ */ tG();
20250
+ var e = /* @__PURE__ */ nG();
20249
20251
  return zl = function(t) {
20250
20252
  return !!e(t);
20251
20253
  }, zl;
20252
20254
  }
20253
20255
  var i9;
20254
- function rG() {
20256
+ function iG() {
20255
20257
  return i9 || (i9 = 1, (function(e) {
20256
- var t = PN(), n = jN(), r = /* @__PURE__ */ eG(), i = nG();
20258
+ var t = jN(), n = $N(), r = /* @__PURE__ */ tG(), i = rG();
20257
20259
  function s(w) {
20258
20260
  return w.call.bind(w);
20259
20261
  }
@@ -20438,13 +20440,13 @@ function rG() {
20438
20440
  })(f5)), f5;
20439
20441
  }
20440
20442
  var s9, a9;
20441
- function iG() {
20443
+ function sG() {
20442
20444
  return a9 || (a9 = 1, s9 = function(e) {
20443
20445
  return e && typeof e == "object" && typeof e.copy == "function" && typeof e.fill == "function" && typeof e.readUInt8 == "function";
20444
20446
  }), s9;
20445
20447
  }
20446
20448
  var Kl = { exports: {} }, o9;
20447
- function sG() {
20449
+ function aG() {
20448
20450
  return o9 || (o9 = 1, typeof Object.create == "function" ? Kl.exports = function(e, t) {
20449
20451
  t && (e.super_ = t, e.prototype = Object.create(t.prototype, {
20450
20452
  constructor: {
@@ -20684,7 +20686,7 @@ function N2() {
20684
20686
  `) + " " + U.join(`,
20685
20687
  `) + " " + H[1] : H[0] + x + " " + U.join(", ") + " " + H[1];
20686
20688
  }
20687
- e.types = rG();
20689
+ e.types = iG();
20688
20690
  function y(U) {
20689
20691
  return Array.isArray(U);
20690
20692
  }
@@ -20741,7 +20743,7 @@ function N2() {
20741
20743
  return U === null || typeof U == "boolean" || typeof U == "number" || typeof U == "string" || typeof U == "symbol" || // ES6 symbol
20742
20744
  typeof U > "u";
20743
20745
  }
20744
- e.isPrimitive = T, e.isBuffer = iG();
20746
+ e.isPrimitive = T, e.isBuffer = sG();
20745
20747
  function O(U) {
20746
20748
  return Object.prototype.toString.call(U);
20747
20749
  }
@@ -20772,7 +20774,7 @@ function N2() {
20772
20774
  }
20773
20775
  e.log = function() {
20774
20776
  console.log("%s - %s", j(), e.format.apply(e, arguments));
20775
- }, e.inherits = sG(), e._extend = function(U, x) {
20777
+ }, e.inherits = aG(), e._extend = function(U, x) {
20776
20778
  if (!x || !v(x)) return U;
20777
20779
  for (var H = Object.keys(x), _ = H.length; _--; )
20778
20780
  U[H[_]] = x[H[_]];
@@ -20903,7 +20905,7 @@ function Z4() {
20903
20905
  }, Ml;
20904
20906
  }
20905
20907
  var d9, u9;
20906
- function aG() {
20908
+ function oG() {
20907
20909
  return u9 || (u9 = 1, d9 = function e(t, n, r) {
20908
20910
  n === void 0 && (n = ""), r || (r = {});
20909
20911
  var i = function(l) {
@@ -20928,10 +20930,10 @@ function aG() {
20928
20930
  }), d9;
20929
20931
  }
20930
20932
  var Hl, h9;
20931
- function oG() {
20933
+ function lG() {
20932
20934
  if (h9) return Hl;
20933
20935
  h9 = 1;
20934
- const e = aG(), t = /* @__PURE__ */ Symbol("avvio.TimeTree.untrackNode"), n = /* @__PURE__ */ Symbol("avvio.TimeTree.trackNode"), r = /* @__PURE__ */ Symbol("avvio.TimeTree.getParent"), i = /* @__PURE__ */ Symbol("avvio.TimeTree.getNode"), s = /* @__PURE__ */ Symbol("avvio.TimeTree.addNode");
20936
+ const e = oG(), t = /* @__PURE__ */ Symbol("avvio.TimeTree.untrackNode"), n = /* @__PURE__ */ Symbol("avvio.TimeTree.trackNode"), r = /* @__PURE__ */ Symbol("avvio.TimeTree.getParent"), i = /* @__PURE__ */ Symbol("avvio.TimeTree.getNode"), s = /* @__PURE__ */ Symbol("avvio.TimeTree.addNode");
20935
20937
  class a {
20936
20938
  constructor() {
20937
20939
  this.root = null, this.tableId = /* @__PURE__ */ new Map(), this.tableLabel = /* @__PURE__ */ new Map();
@@ -20992,7 +20994,7 @@ function oG() {
20992
20994
  return Hl = a, Hl;
20993
20995
  }
20994
20996
  var Or = { exports: {} }, Ol = { exports: {} }, _l, p9;
20995
- function lG() {
20997
+ function cG() {
20996
20998
  if (p9) return _l;
20997
20999
  p9 = 1;
20998
21000
  var e = 1e3, t = e * 60, n = t * 60, r = n * 24, i = r * 7, s = r * 365.25;
@@ -21074,11 +21076,11 @@ function lG() {
21074
21076
  return _l;
21075
21077
  }
21076
21078
  var Dl, m9;
21077
- function cG() {
21079
+ function dG() {
21078
21080
  if (m9) return Dl;
21079
21081
  m9 = 1;
21080
21082
  function e(t) {
21081
- r.debug = r, r.default = r, r.coerce = c, r.disable = o, r.enable = s, r.enabled = l, r.humanize = lG(), r.destroy = d, Object.keys(t).forEach((u) => {
21083
+ r.debug = r, r.default = r, r.coerce = c, r.disable = o, r.enable = s, r.enabled = l, r.humanize = cG(), r.destroy = d, Object.keys(t).forEach((u) => {
21082
21084
  r[u] = t[u];
21083
21085
  }), r.names = [], r.skips = [], r.formatters = {};
21084
21086
  function n(u) {
@@ -21296,7 +21298,7 @@ function v4() {
21296
21298
  } catch {
21297
21299
  }
21298
21300
  }
21299
- e.exports = cG()(t);
21301
+ e.exports = dG()(t);
21300
21302
  const { formatters: o } = e.exports;
21301
21303
  o.j = function(l) {
21302
21304
  try {
@@ -21308,7 +21310,7 @@ function v4() {
21308
21310
  })(Ol, Ol.exports)), Ol.exports;
21309
21311
  }
21310
21312
  var f9;
21311
- function dG() {
21313
+ function uG() {
21312
21314
  if (f9) return Or.exports;
21313
21315
  f9 = 1;
21314
21316
  const e = V4(), t = R4().EventEmitter, n = N2().inherits, r = v4()("avvio"), { AVV_ERR_READY_TIMEOUT: i } = Z4(), s = /* @__PURE__ */ Symbol.for("plugin-meta");
@@ -21420,7 +21422,7 @@ function dG() {
21420
21422
  return Or.exports = l, Or.exports.loadPlugin = d, Or.exports;
21421
21423
  }
21422
21424
  var b9;
21423
- function uG() {
21425
+ function hG() {
21424
21426
  if (b9) return Kr.exports;
21425
21427
  b9 = 1;
21426
21428
  const e = V4(), t = R4().EventEmitter, n = N2().inherits, {
@@ -21429,7 +21431,7 @@ function uG() {
21429
21431
  AVV_ERR_PLUGIN_NOT_VALID: s,
21430
21432
  AVV_ERR_ROOT_PLG_BOOTED: a,
21431
21433
  AVV_ERR_READY_TIMEOUT: o
21432
- } = Z4(), l = oG(), c = dG(), d = v4()("avvio"), u = /* @__PURE__ */ Symbol("kAvvio"), h = /* @__PURE__ */ Symbol("kThenifyDoNotWrap");
21434
+ } = Z4(), l = lG(), c = uG(), d = v4()("avvio"), u = /* @__PURE__ */ Symbol("kAvvio"), h = /* @__PURE__ */ Symbol("kThenifyDoNotWrap");
21433
21435
  function p(Z, v, W) {
21434
21436
  const F = v.expose || {}, G = F.use || "use", T = F.after || "after", O = F.ready || "ready", M = F.onClose || "onClose", q = F.close || "close";
21435
21437
  if (Z[G])
@@ -21649,8 +21651,8 @@ function uG() {
21649
21651
  });
21650
21652
  }, Kr.exports;
21651
21653
  }
21652
- var hG = uG();
21653
- const pG = /* @__PURE__ */ TN(hG);
21654
+ var pG = hG();
21655
+ const mG = /* @__PURE__ */ wN(pG);
21654
21656
  (function() {
21655
21657
  if (window.requestAnimationFrame && window.cancelAnimationFrame)
21656
21658
  return;
@@ -21668,20 +21670,20 @@ const pG = /* @__PURE__ */ TN(hG);
21668
21670
  }, window.cancelAnimationFrame = clearTimeout;
21669
21671
  }
21670
21672
  })();
21671
- function mG(e, t = !0, n = !0, r = { friendsTab: "enabled" }) {
21672
- const i = t ? "https://grpc-sdk.streamlayer.io:443" : "https://grpc-sdk.next.streamlayer.io:443", s = t ? "https://grpc.streamlayer.io:443" : "https://grpc.next.streamlayer.io:443", a = pG(/* @__PURE__ */ Object.create({}), { autostart: !1 });
21673
- return a.use(xF, {
21673
+ function gG(e, t = !0, n = !0, r = { friendsTab: "enabled" }) {
21674
+ const i = t ? "https://grpc-sdk.streamlayer.io:443" : "https://grpc-sdk.next.streamlayer.io:443", s = t ? "https://grpc.streamlayer.io:443" : "https://grpc.next.streamlayer.io:443", a = mG(/* @__PURE__ */ Object.create({}), { autostart: !1 });
21675
+ return a.use(QF, {
21674
21676
  hideFriends: r.hideFriends,
21675
21677
  skipOnboarding: r.skipOnboarding,
21676
21678
  betPack: r.betPack,
21677
21679
  friendsTab: r.friendsTab,
21678
21680
  theme: r.theme,
21679
21681
  themeMode: r.themeMode
21680
- }), a.use(BF, { onDeepLinkHandled: r?.onDeepLinkHandled }), a.use(LF, { videoPlayerController: r?.videoPlayerController }), a.use(JF, {
21682
+ }), a.use(YF, { onDeepLinkHandled: r?.onDeepLinkHandled }), a.use(kF, { videoPlayerController: r?.videoPlayerController }), a.use(xF, {
21681
21683
  onContentActivate: r?.onContentActivate,
21682
21684
  withAd: r?.withAd,
21683
21685
  withAdNotification: r?.withAdNotification
21684
- }), a.use(eF, { sdkKey: e, host: i, analyticsHost: s, version: r?.version, webOS: r?.webOS }), a.use(sF), a.use(wF), r?.gamification !== !1 && (a.use($F), a.use(WF), a.use(nN)), a.use(YN), a.use(SN), a.after((o, l, c) => {
21686
+ }), a.use(tF, { sdkKey: e, host: i, analyticsHost: s, version: r?.version, webOS: r?.webOS }), a.use(aF), a.use(LF), r?.gamification !== !1 && (a.use(qF), a.use(IF), a.use(rN)), a.use(TN), a.use(ZN), a.after((o, l, c) => {
21685
21687
  if (o)
21686
21688
  throw o;
21687
21689
  l.ready(), c();
@@ -21693,7 +21695,7 @@ function mG(e, t = !0, n = !0, r = { friendsTab: "enabled" }) {
21693
21695
  console.log("close StreamLayer instance");
21694
21696
  }), a;
21695
21697
  }
21696
- function gG(e) {
21698
+ function fG(e) {
21697
21699
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
21698
21700
  }
21699
21701
  var W4 = { exports: {} }, ze = W4.exports = {}, Nt, Gt;
@@ -21730,7 +21732,7 @@ function I4(e) {
21730
21732
  }
21731
21733
  }
21732
21734
  }
21733
- function fG(e) {
21735
+ function bG(e) {
21734
21736
  if (Gt === clearTimeout)
21735
21737
  return clearTimeout(e);
21736
21738
  if ((Gt === v1 || !Gt) && clearTimeout)
@@ -21746,19 +21748,19 @@ function fG(e) {
21746
21748
  }
21747
21749
  }
21748
21750
  var jt = [], Qn = !1, Vn, si = -1;
21749
- function bG() {
21751
+ function AG() {
21750
21752
  !Qn || !Vn || (Qn = !1, Vn.length ? jt = Vn.concat(jt) : si = -1, jt.length && F4());
21751
21753
  }
21752
21754
  function F4() {
21753
21755
  if (!Qn) {
21754
- var e = I4(bG);
21756
+ var e = I4(AG);
21755
21757
  Qn = !0;
21756
21758
  for (var t = jt.length; t; ) {
21757
21759
  for (Vn = jt, jt = []; ++si < t; )
21758
21760
  Vn && Vn[si].run();
21759
21761
  si = -1, t = jt.length;
21760
21762
  }
21761
- Vn = null, Qn = !1, fG(e);
21763
+ Vn = null, Qn = !1, bG(e);
21762
21764
  }
21763
21765
  }
21764
21766
  ze.nextTick = function(e) {
@@ -21806,8 +21808,8 @@ ze.chdir = function(e) {
21806
21808
  ze.umask = function() {
21807
21809
  return 0;
21808
21810
  };
21809
- var AG = W4.exports;
21810
- const VG = /* @__PURE__ */ gG(AG), RG = ({
21811
+ var VG = W4.exports;
21812
+ const RG = /* @__PURE__ */ fG(VG), yG = ({
21811
21813
  sdkKey: e,
21812
21814
  plugins: t,
21813
21815
  production: n,
@@ -21831,8 +21833,8 @@ const VG = /* @__PURE__ */ gG(AG), RG = ({
21831
21833
  return console.error("streamlayer sdk key should be provided"), y((R) => (R !== null && typeof R.disableApp == "function" && R.disableApp(), null)), () => {
21832
21834
  b = !0;
21833
21835
  };
21834
- const f = mG(e, n, r, {
21835
- version: VG.env.APP_VERSION,
21836
+ const f = gG(e, n, r, {
21837
+ version: RG.env.APP_VERSION,
21836
21838
  onDeepLinkHandled: i,
21837
21839
  videoPlayerController: s,
21838
21840
  onContentActivate: a,
@@ -21849,7 +21851,7 @@ const VG = /* @__PURE__ */ gG(AG), RG = ({
21849
21851
  for (const R of t)
21850
21852
  f.use(R);
21851
21853
  return f.ready().then((R) => {
21852
- b || y(R.sdk);
21854
+ console.log("ready", R, b), b || y(R.sdk);
21853
21855
  }).catch((R) => console.log(R)), () => {
21854
21856
  b = !0, f.close(function(R) {
21855
21857
  if (R) throw R;
@@ -21860,16 +21862,16 @@ const VG = /* @__PURE__ */ gG(AG), RG = ({
21860
21862
  event: e,
21861
21863
  internal: t
21862
21864
  }) => {
21863
- const n = Mi(), r = EG();
21865
+ const n = Mi(), r = CG();
21864
21866
  return oe(() => {
21865
21867
  n && (e && (n.createEventSession(e, t), r && (r.current = e)), !e && r?.current && (n.createEventSession("", t), r.current = ""));
21866
21868
  }, [e, t, r, n]), null;
21867
21869
  };
21868
21870
  var G4 = /* @__PURE__ */ ((e) => (e[e.UNSET = 0] = "UNSET", e[e.CONNECTED = 1] = "CONNECTED", e[e.READY = 2] = "READY", e))(G4 || {});
21869
- const yG = {
21871
+ const EG = {
21870
21872
  status: 0,
21871
21873
  sdk: null
21872
- }, Ki = Ei(yG), X4 = ({
21874
+ }, Ki = Ei(EG), X4 = ({
21873
21875
  sdkKey: e,
21874
21876
  theme: t,
21875
21877
  themeMode: n,
@@ -21891,7 +21893,7 @@ const yG = {
21891
21893
  webOS: f,
21892
21894
  gamification: R
21893
21895
  }) => {
21894
- const A = RG({
21896
+ const A = yG({
21895
21897
  sdkKey: e,
21896
21898
  plugins: r,
21897
21899
  production: a,
@@ -21925,10 +21927,10 @@ const yG = {
21925
21927
  }, Mi = () => {
21926
21928
  const { sdk: e } = Ci(Ki);
21927
21929
  return e;
21928
- }, EG = () => {
21930
+ }, CG = () => {
21929
21931
  const { event: e } = Ci(Ki);
21930
21932
  return e;
21931
- }, eX = ({ sdkKey: e, plugins: t, children: n, event: r, onDeepLinkHandled: i, videoPlayerController: s, production: a = !0 }) => /* @__PURE__ */ B(
21933
+ }, tX = ({ sdkKey: e, plugins: t, children: n, event: r, onDeepLinkHandled: i, videoPlayerController: s, production: a = !0 }) => /* @__PURE__ */ B(
21932
21934
  X4,
21933
21935
  {
21934
21936
  sdkKey: e,
@@ -21945,10 +21947,10 @@ const yG = {
21945
21947
  n
21946
21948
  ]
21947
21949
  }
21948
- ), CG = ({ sdk: e, className: t }) => {
21950
+ ), SG = ({ sdk: e, className: t }) => {
21949
21951
  const [, n] = S6(e);
21950
21952
  return /* @__PURE__ */ m(_S, { className: t, feature: n, sdk: e });
21951
- }, SG = ({ sdk: e, className: t, appNode: n, responsiveStore: r, useContainer: i }) => {
21953
+ }, ZG = ({ sdk: e, className: t, appNode: n, responsiveStore: r, useContainer: i }) => {
21952
21954
  const s = Te(e.featuresList.getStore());
21953
21955
  return s ? Array.from(s, (a) => {
21954
21956
  const o = e.getFeature(a);
@@ -21965,10 +21967,10 @@ const yG = {
21965
21967
  a
21966
21968
  ) : null;
21967
21969
  }) : null;
21968
- }, ZG = (e) => {
21970
+ }, vG = (e) => {
21969
21971
  const t = Ve(null);
21970
21972
  return Ch(t, { enabled: !0, event: "click", listener: Eh }), /* @__PURE__ */ m(Dy, { ref: t, ...e });
21971
- }, vG = ({ sdk: e, useContainer: t }) => {
21973
+ }, WG = ({ sdk: e, useContainer: t }) => {
21972
21974
  const n = Ve(null), r = Te(e.status), i = Te(e.sdkStore.slStreamId), s = Ve(null), [a] = qW(n), [o, l] = b8(n, a, t), c = r === "ready" && !!i.data;
21973
21975
  return oe(() => {
21974
21976
  window.requestAnimationFrame(() => {
@@ -21993,9 +21995,9 @@ const yG = {
21993
21995
  useContainer: t
21994
21996
  }
21995
21997
  ),
21996
- c && /* @__PURE__ */ m(CG, { className: jr, sdk: e }),
21998
+ c && /* @__PURE__ */ m(SG, { className: jr, sdk: e }),
21997
21999
  c && /* @__PURE__ */ m(
21998
- SG,
22000
+ ZG,
21999
22001
  {
22000
22002
  responsiveStore: a,
22001
22003
  appNode: n,
@@ -22006,13 +22008,13 @@ const yG = {
22006
22008
  )
22007
22009
  ] })
22008
22010
  ] });
22009
- }, WG = ({ sdk: e, betPack: t, useContainer: n }) => {
22011
+ }, IG = ({ sdk: e, betPack: t, useContainer: n }) => {
22010
22012
  const [r, i] = se(t), s = !!Te(e.userId()), a = je(() => ({ sdk: e }), [e]), o = Xe(() => {
22011
22013
  i(!1), e?.getFeature(ge.GAMES)?.closeQuestion();
22012
22014
  }, [e]);
22013
22015
  return /* @__PURE__ */ B(Tp.Provider, { value: a, children: [
22014
22016
  r && s && /* @__PURE__ */ m(
22015
- ZG,
22017
+ vG,
22016
22018
  {
22017
22019
  sdk: e,
22018
22020
  onEvent: ({ type: l }) => l === "slOpenGameCenter" ? o() : () => {
@@ -22020,39 +22022,39 @@ const yG = {
22020
22022
  close: () => o()
22021
22023
  }
22022
22024
  ),
22023
- !r && /* @__PURE__ */ m(vG, { sdk: e, useContainer: n })
22025
+ !r && /* @__PURE__ */ m(WG, { sdk: e, useContainer: n })
22024
22026
  ] });
22025
- }, IG = /* @__PURE__ */ E("div")({
22027
+ }, FG = /* @__PURE__ */ E("div")({
22026
22028
  name: "PointsContainer",
22027
22029
  class: "psiob9b",
22028
22030
  propsAsIs: !1
22029
- }), FG = /* @__PURE__ */ E("div")({
22031
+ }), NG = /* @__PURE__ */ E("div")({
22030
22032
  name: "PointsIcon",
22031
22033
  class: "p1gqe4lh",
22032
22034
  propsAsIs: !1
22033
- }), NG = () => de, GG = /* @__PURE__ */ E(NG())({
22035
+ }), GG = () => de, XG = /* @__PURE__ */ E(GG())({
22034
22036
  name: "PointsSvg",
22035
22037
  class: "p15syg2y",
22036
22038
  propsAsIs: !0
22037
- }), XG = /* @__PURE__ */ E("div")({
22039
+ }), UG = /* @__PURE__ */ E("div")({
22038
22040
  name: "PointsBody",
22039
22041
  class: "p12n4f2h",
22040
22042
  propsAsIs: !1
22041
- }), UG = /* @__PURE__ */ E("div")({
22043
+ }), BG = /* @__PURE__ */ E("div")({
22042
22044
  name: "PointsTitle",
22043
22045
  class: "poqmx89",
22044
22046
  propsAsIs: !1
22045
- }), BG = /* @__PURE__ */ E("div")({
22047
+ }), YG = /* @__PURE__ */ E("div")({
22046
22048
  name: "PointsValue",
22047
22049
  class: "prj9b3v",
22048
22050
  propsAsIs: !1
22049
- }), YG = ({ points: e, onClick: t }) => /* @__PURE__ */ B(IG, { className: jr, onClick: t, children: [
22050
- /* @__PURE__ */ m(FG, { children: /* @__PURE__ */ m(GG, { name: "icon-trophy-solid" }) }),
22051
- /* @__PURE__ */ B(XG, { children: [
22052
- /* @__PURE__ */ m(UG, { children: "Total points" }),
22053
- /* @__PURE__ */ m(BG, { children: /* @__PURE__ */ m(Yi, { value: e }) })
22051
+ }), TG = ({ points: e, onClick: t }) => /* @__PURE__ */ B(FG, { className: jr, onClick: t, children: [
22052
+ /* @__PURE__ */ m(NG, { children: /* @__PURE__ */ m(XG, { name: "icon-trophy-solid" }) }),
22053
+ /* @__PURE__ */ B(UG, { children: [
22054
+ /* @__PURE__ */ m(BG, { children: "Total points" }),
22055
+ /* @__PURE__ */ m(YG, { children: /* @__PURE__ */ m(Yi, { value: e }) })
22054
22056
  ] })
22055
- ] }), TG = ({ gamification: e }) => {
22057
+ ] }), wG = ({ gamification: e }) => {
22056
22058
  const t = e.userSummary.$store, [n, r] = se(0);
22057
22059
  oe(() => {
22058
22060
  const s = t.subscribe((a) => {
@@ -22068,18 +22070,18 @@ const yG = {
22068
22070
  payload: {}
22069
22071
  });
22070
22072
  }, []);
22071
- return /* @__PURE__ */ m(YG, { onClick: i, points: n });
22072
- }, wG = ({ sdk: e }) => {
22073
+ return /* @__PURE__ */ m(TG, { onClick: i, points: n });
22074
+ }, LG = ({ sdk: e }) => {
22073
22075
  if (!Te(e.featuresList.getStore()))
22074
22076
  return null;
22075
22077
  const t = e.getFeature(ge.GAMES);
22076
- return t ? /* @__PURE__ */ m(TG, { gamification: t }) : null;
22078
+ return t ? /* @__PURE__ */ m(wG, { gamification: t }) : null;
22077
22079
  };
22078
22080
  var zt;
22079
22081
  (function(e) {
22080
22082
  e.SCHEMA = "schema", e.EXTERNAL_TOKEN = "eToken", e.TOKEN = "token";
22081
22083
  })(zt || (zt = {}));
22082
- class LG extends nZ {
22084
+ class kG extends nZ {
22083
22085
  constructor() {
22084
22086
  super("user");
22085
22087
  }
@@ -22108,19 +22110,19 @@ const A9 = (e) => {
22108
22110
  action: "tap",
22109
22111
  payload: {}
22110
22112
  });
22111
- }, kG = () => {
22113
+ }, JG = () => {
22112
22114
  const e = Mi();
22113
22115
  return oe(() => (document?.addEventListener("click", A9), () => {
22114
22116
  document?.removeEventListener("click", A9);
22115
22117
  }), []), e ? /* @__PURE__ */ m(Up, { sdk: e }) : null;
22116
- }, JG = ({
22118
+ }, xG = ({
22117
22119
  betPack: e,
22118
22120
  useContainer: t
22119
22121
  }) => {
22120
22122
  const { sdk: n, status: r } = Ci(Ki);
22121
- return r === G4.UNSET ? (console.error("Wrap app in `StreamLayerProvider`"), null) : n ? /* @__PURE__ */ m("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ m(y2, { style: { height: "100%" }, children: /* @__PURE__ */ m(WG, { sdk: n, betPack: e, useContainer: t }) }) }) : null;
22123
+ return r === G4.UNSET ? (console.error("Wrap app in `StreamLayerProvider`"), null) : n ? /* @__PURE__ */ m("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ m(y2, { style: { height: "100%" }, children: /* @__PURE__ */ m(IG, { sdk: n, betPack: e, useContainer: t }) }) }) : null;
22122
22124
  };
22123
- class tX extends R9 {
22125
+ class nX extends R9 {
22124
22126
  constructor(t) {
22125
22127
  super(t), this.state = { hasError: !1 };
22126
22128
  }
@@ -22131,15 +22133,15 @@ class tX extends R9 {
22131
22133
  console.error(t, n.componentStack);
22132
22134
  }
22133
22135
  render() {
22134
- return this.state.hasError ? null : /* @__PURE__ */ m(JG, { ...this.props });
22136
+ return this.state.hasError ? null : /* @__PURE__ */ m(xG, { ...this.props });
22135
22137
  }
22136
22138
  }
22137
- const nX = ({ token: e, schema: t }) => {
22139
+ const rX = ({ token: e, schema: t }) => {
22138
22140
  const n = Mi();
22139
22141
  return oe(() => {
22140
22142
  e && t && n && n.authorizationBypass(t, e), n && (n.withAuth = !0);
22141
22143
  }, [e, t, n]), null;
22142
- }, xG = ({
22144
+ }, QG = ({
22143
22145
  event: e,
22144
22146
  sdkKey: t,
22145
22147
  token: n,
@@ -22151,7 +22153,7 @@ const nX = ({ token: e, schema: t }) => {
22151
22153
  }) => {
22152
22154
  const [l, c] = se(!1);
22153
22155
  return oe(() => {
22154
- n && (new LG().setToken(n), c(!0));
22156
+ n && (new kG().setToken(n), c(!0));
22155
22157
  }, [n]), oe(() => {
22156
22158
  r && localStorage.setItem("sl-device-id", r);
22157
22159
  }, [r]), l ? /* @__PURE__ */ B(
@@ -22172,7 +22174,7 @@ const nX = ({ token: e, schema: t }) => {
22172
22174
  ]
22173
22175
  }
22174
22176
  ) : null;
22175
- }, rX = ({ production: e }) => {
22177
+ }, iX = ({ production: e }) => {
22176
22178
  const [t, n] = se();
22177
22179
  return oe(() => {
22178
22180
  const { hostname: r, search: i } = window.location, s = new URLSearchParams(i);
@@ -22185,18 +22187,18 @@ const nX = ({ token: e, schema: t }) => {
22185
22187
  themeMode: s.get("themeMode") === "dark" ? "dark" : "light",
22186
22188
  production: e ?? !(r.includes("next.") || r === "localhost")
22187
22189
  });
22188
- }, [e]), t ? /* @__PURE__ */ m(xG, { ...t, children: /* @__PURE__ */ m(kG, {}) }) : null;
22189
- }, iX = () => {
22190
+ }, [e]), t ? /* @__PURE__ */ m(QG, { ...t, children: /* @__PURE__ */ m(JG, {}) }) : null;
22191
+ }, sX = () => {
22190
22192
  const e = Mi();
22191
- return e ? /* @__PURE__ */ m("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ m(y2, { children: /* @__PURE__ */ m(wG, { sdk: e }) }) }) : null;
22193
+ return e ? /* @__PURE__ */ m("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ m(y2, { children: /* @__PURE__ */ m(LG, { sdk: e }) }) }) : null;
22192
22194
  };
22193
22195
  export {
22194
- rX as B,
22195
- qG as C,
22196
- tX as M,
22197
- eX as S,
22196
+ iX as B,
22197
+ eX as C,
22198
+ nX as M,
22199
+ tX as S,
22198
22200
  Mi as Y,
22199
- nX as a,
22200
- iX as b,
22201
- TN as t
22201
+ rX as a,
22202
+ sX as b,
22203
+ wN as r
22202
22204
  };