@streamlayer/sdk-web 1.2.5 → 1.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -1,28 +1,28 @@
1
- import { pino as pi } from "pino";
2
- import { QuestionType as F, QuestionStatus as H, NotificationEnabled as yi, SilenceSetting as gi, PromotionType as Te } from "@streamlayer/sl-eslib/interactive/interactive.common_pb";
1
+ import { pino as yi } from "pino";
2
+ import { QuestionType as F, QuestionStatus as H, NotificationEnabled as gi, SilenceSetting as mi, PromotionType as Te } from "@streamlayer/sl-eslib/interactive/interactive.common_pb";
3
3
  import { PickHistoryStatus as lt } from "@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb";
4
4
  import { SdkOverlayType as D } from "@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb";
5
5
  import { InvitationCategory as Dr, InvitationFrom as Rr } from "@streamlayer/sl-eslib/analytics/v1/invitations/invitations_pb";
6
- import { computed as mi, map as vi, atom as Ct, batched as Vr, onMount as nt } from "nanostores";
6
+ import { computed as vi, map as bi, atom as Ct, batched as Vr, onMount as nt } from "nanostores";
7
7
  import { nanoid as nr } from "nanoid";
8
- import { ConnectError as tt, Code as oe, createContextKey as $r, createPromiseClient as Mr, createContextValues as bi } from "@connectrpc/connect";
8
+ import { ConnectError as tt, Code as se, createContextKey as $r, createPromiseClient as Mr, createContextValues as Si } from "@connectrpc/connect";
9
9
  import { createGrpcWebTransport as jr } from "@connectrpc/connect-web";
10
10
  import { nanoquery as Ur } from "@nanostores/query";
11
- import { Events as Si } from "@streamlayer/sl-eslib/sports/events/events_connect";
11
+ import { Events as wn } from "@streamlayer/sl-eslib/sports/events/events_connect";
12
12
  import { Client as it } from "@streamlayer/sl-eslib/sdkSettings/client/client_connect";
13
13
  import { Users as vr } from "@streamlayer/sl-eslib/users/users_connect";
14
- import { Feed as re } from "@streamlayer/sl-eslib/interactive/feed/interactive.feed_connect";
15
- import { Leaderboard as wn } from "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_connect";
14
+ import { Feed as ne } from "@streamlayer/sl-eslib/interactive/feed/interactive.feed_connect";
15
+ import { Leaderboard as An } from "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_connect";
16
16
  import "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb";
17
17
  import { LinksClient as wi } from "@streamlayer/sl-eslib/shortLinks/linksClient_connect";
18
- import { Kind as q, TopicSubType as we, TopicType as z, PollOpenedFrom as ee, Category as G, ScreenOrientation as Br } from "@streamlayer/sl-eslib/analytics/v1/common/analytics.common_pb";
19
- import { AnalyticsService as An } from "@streamlayer/sl-eslib/analytics/v2/streaming/streaming_connect";
20
- import { InteractionActionType as xr } from "@streamlayer/sl-eslib/analytics/v1/interactions/interactions_pb";
21
- import { NotificationKind as he, NotificationType as qr } from "@streamlayer/sl-eslib/analytics/v1/notifications/notifications_pb";
18
+ import { Kind as x, TopicSubType as we, TopicType as z, PollOpenedFrom as ee, Category as G, ScreenOrientation as Br } from "@streamlayer/sl-eslib/analytics/v1/common/analytics.common_pb";
19
+ import { AnalyticsService as En } from "@streamlayer/sl-eslib/analytics/v2/streaming/streaming_connect";
20
+ import { InteractionActionType as qr } from "@streamlayer/sl-eslib/analytics/v1/interactions/interactions_pb";
21
+ import { NotificationKind as he, NotificationType as xr } from "@streamlayer/sl-eslib/analytics/v1/notifications/notifications_pb";
22
22
  function Ai(t) {
23
23
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
24
24
  }
25
- var En = { exports: {} }, $ = En.exports = {}, se, ae;
25
+ var In = { exports: {} }, $ = In.exports = {}, ae, ue;
26
26
  function ir() {
27
27
  throw new Error("setTimeout has not been defined");
28
28
  }
@@ -31,60 +31,60 @@ function or() {
31
31
  }
32
32
  (function() {
33
33
  try {
34
- typeof setTimeout == "function" ? se = setTimeout : se = ir;
34
+ typeof setTimeout == "function" ? ae = setTimeout : ae = ir;
35
35
  } catch {
36
- se = ir;
36
+ ae = ir;
37
37
  }
38
38
  try {
39
- typeof clearTimeout == "function" ? ae = clearTimeout : ae = or;
39
+ typeof clearTimeout == "function" ? ue = clearTimeout : ue = or;
40
40
  } catch {
41
- ae = or;
41
+ ue = or;
42
42
  }
43
43
  })();
44
- function In(t) {
45
- if (se === setTimeout)
44
+ function Tn(t) {
45
+ if (ae === setTimeout)
46
46
  return setTimeout(t, 0);
47
- if ((se === ir || !se) && setTimeout)
48
- return se = setTimeout, setTimeout(t, 0);
47
+ if ((ae === ir || !ae) && setTimeout)
48
+ return ae = setTimeout, setTimeout(t, 0);
49
49
  try {
50
- return se(t, 0);
50
+ return ae(t, 0);
51
51
  } catch {
52
52
  try {
53
- return se.call(null, t, 0);
53
+ return ae.call(null, t, 0);
54
54
  } catch {
55
- return se.call(this, t, 0);
55
+ return ae.call(this, t, 0);
56
56
  }
57
57
  }
58
58
  }
59
59
  function Ei(t) {
60
- if (ae === clearTimeout)
60
+ if (ue === clearTimeout)
61
61
  return clearTimeout(t);
62
- if ((ae === or || !ae) && clearTimeout)
63
- return ae = clearTimeout, clearTimeout(t);
62
+ if ((ue === or || !ue) && clearTimeout)
63
+ return ue = clearTimeout, clearTimeout(t);
64
64
  try {
65
- return ae(t);
65
+ return ue(t);
66
66
  } catch {
67
67
  try {
68
- return ae.call(null, t);
68
+ return ue.call(null, t);
69
69
  } catch {
70
- return ae.call(this, t);
70
+ return ue.call(this, t);
71
71
  }
72
72
  }
73
73
  }
74
- var ve = [], qe = !1, _e, ht = -1;
74
+ var ve = [], xe = !1, _e, ht = -1;
75
75
  function Ii() {
76
- !qe || !_e || (qe = !1, _e.length ? ve = _e.concat(ve) : ht = -1, ve.length && Tn());
76
+ !xe || !_e || (xe = !1, _e.length ? ve = _e.concat(ve) : ht = -1, ve.length && On());
77
77
  }
78
- function Tn() {
79
- if (!qe) {
80
- var t = In(Ii);
81
- qe = !0;
78
+ function On() {
79
+ if (!xe) {
80
+ var t = Tn(Ii);
81
+ xe = !0;
82
82
  for (var e = ve.length; e; ) {
83
83
  for (_e = ve, ve = []; ++ht < e; )
84
84
  _e && _e[ht].run();
85
85
  ht = -1, e = ve.length;
86
86
  }
87
- _e = null, qe = !1, Ei(t);
87
+ _e = null, xe = !1, Ei(t);
88
88
  }
89
89
  }
90
90
  $.nextTick = function(t) {
@@ -92,12 +92,12 @@ $.nextTick = function(t) {
92
92
  if (arguments.length > 1)
93
93
  for (var r = 1; r < arguments.length; r++)
94
94
  e[r - 1] = arguments[r];
95
- ve.push(new On(t, e)), ve.length === 1 && !qe && In(Tn);
95
+ ve.push(new _n(t, e)), ve.length === 1 && !xe && Tn(On);
96
96
  };
97
- function On(t, e) {
97
+ function _n(t, e) {
98
98
  this.fun = t, this.array = e;
99
99
  }
100
- On.prototype.run = function() {
100
+ _n.prototype.run = function() {
101
101
  this.fun.apply(null, this.array);
102
102
  };
103
103
  $.title = "browser";
@@ -132,8 +132,8 @@ $.chdir = function(t) {
132
132
  $.umask = function() {
133
133
  return 0;
134
134
  };
135
- var Ti = En.exports;
136
- const A = /* @__PURE__ */ Ai(Ti), Oi = pi({
135
+ var Ti = In.exports;
136
+ const A = /* @__PURE__ */ Ai(Ti), Oi = yi({
137
137
  level: "trace",
138
138
  enabled: typeof window < "u" && !!window.localStorage.getItem("SL_DEBUG"),
139
139
  browser: {
@@ -194,7 +194,7 @@ class kt {
194
194
  }
195
195
  const Pi = (t) => {
196
196
  const e = Object.keys(t);
197
- return mi(e.map((r) => t[r].getStore()), (...r) => Object.fromEntries(e.map((n, i) => [n, r[i]])));
197
+ return vi(e.map((r) => t[r].getStore()), (...r) => Object.fromEntries(e.map((n, i) => [n, r[i]])));
198
198
  };
199
199
  class Le extends kt {
200
200
  getValues = () => this.getStore().get();
@@ -203,7 +203,7 @@ class Le extends kt {
203
203
  subscribe = (...e) => this.getStore().subscribe(...e);
204
204
  unsubscribe = () => this.getStore().off();
205
205
  }
206
- const te = (t) => vi(t);
206
+ const te = (t) => bi(t);
207
207
  var ye;
208
208
  (function(t) {
209
209
  t.ORGANIZATION = "ORGANIZATION", t.STREAM = "STREAM";
@@ -218,7 +218,7 @@ var Xe;
218
218
  (function(t) {
219
219
  t.Ready = "ready", t.Suspended = "suspended";
220
220
  })(Xe || (Xe = {}));
221
- class _n {
221
+ class Ln {
222
222
  status;
223
223
  source;
224
224
  config;
@@ -284,7 +284,7 @@ class Y extends kt {
284
284
  }
285
285
  }
286
286
  const B = (t) => Ct(t);
287
- class ce extends kt {
287
+ class re extends kt {
288
288
  atomStore;
289
289
  constructor(e, r, n) {
290
290
  super(e, `api:${r}`), this.atomStore = Ct(), n && e.subscribe((i) => {
@@ -318,7 +318,7 @@ class ce extends kt {
318
318
  const J = new Ci();
319
319
  async function* Fi(t, e) {
320
320
  for await (const r of e) {
321
- t.response.message = r, t.received_at = Date.now(), t.id = Ln++;
321
+ t.response.message = r, t.received_at = Date.now(), t.id = Cn++;
322
322
  const n = {
323
323
  type: "__GRPC_DEVTOOLS_EXTENSION__",
324
324
  data: t
@@ -326,10 +326,10 @@ async function* Fi(t, e) {
326
326
  window.postMessage(n), yield r;
327
327
  }
328
328
  }
329
- let Ln = 0;
329
+ let Cn = 0;
330
330
  const Di = () => (t) => async (e) => {
331
331
  const r = {
332
- id: Ln++,
332
+ id: Cn++,
333
333
  name: e.url,
334
334
  stream: e.stream,
335
335
  sent_at: Date.now(),
@@ -380,7 +380,7 @@ const Di = () => (t) => async (e) => {
380
380
  }
381
381
  };
382
382
  window.dispatchEvent(new CustomEvent("grpc_devtools_loaded"));
383
- function Cn(t) {
383
+ function kn(t) {
384
384
  return t instanceof DOMException && // everything except Firefox
385
385
  (t.code === 22 || // Firefox
386
386
  t.code === 1014 || // test name field too, because code might not be present
@@ -405,7 +405,7 @@ class He {
405
405
  try {
406
406
  this.storage.setItem(n, r);
407
407
  } catch (i) {
408
- Cn(i) && this.storage === window.sessionStorage && (window.sessionStorage.removeItem("slstreamlogs"), this.storage.setItem(n, r));
408
+ kn(i) && this.storage === window.sessionStorage && (window.sessionStorage.removeItem("slstreamlogs"), this.storage.setItem(n, r));
409
409
  }
410
410
  };
411
411
  read = (...e) => {
@@ -458,7 +458,7 @@ class Ri {
458
458
  window.sessionStorage.setItem("slstreamlogs", window.sessionStorage.getItem("slstreamlogs") + `
459
459
  ` + n);
460
460
  } catch (i) {
461
- Cn(i) && window.sessionStorage.removeItem("slstreamlogs"), window.sessionStorage.setItem("slstreamlogs", n);
461
+ kn(i) && window.sessionStorage.removeItem("slstreamlogs"), window.sessionStorage.setItem("slstreamlogs", n);
462
462
  }
463
463
  };
464
464
  addListener = (e, r) => this.listeners.has(e) ? (this.addStateLog(`listener '${e}' not added, already exists`), () => {
@@ -479,7 +479,7 @@ class Ri {
479
479
  for await (const o of i)
480
480
  this.attempt = 0, this.onData(o);
481
481
  } catch (n) {
482
- n instanceof tt && n.code != oe.Canceled && this.onStreamError(n);
482
+ n instanceof tt && n.code != se.Canceled && this.onStreamError(n);
483
483
  }
484
484
  })(), this.updateState(Z.Connected);
485
485
  };
@@ -519,7 +519,7 @@ class Ri {
519
519
  */
520
520
  onStreamError = (e) => {
521
521
  if (this.addStateLog(`error => ${e ? JSON.stringify(e) : "undefined"}}`), e !== void 0) {
522
- if (e instanceof tt && e.code !== oe.Canceled) {
522
+ if (e instanceof tt && e.code !== se.Canceled) {
523
523
  this.updateState(Z.Failed), this.state.setValue("error", e), this.reconnect();
524
524
  return;
525
525
  }
@@ -528,13 +528,13 @@ class Ri {
528
528
  };
529
529
  }
530
530
  const Vi = /* @__PURE__ */ new Set([
531
- oe.Unknown,
532
- oe.Internal,
533
- oe.DeadlineExceeded,
534
- oe.ResourceExhausted,
535
- oe.FailedPrecondition,
536
- oe.Unavailable,
537
- oe.DataLoss
531
+ se.Unknown,
532
+ se.Internal,
533
+ se.DeadlineExceeded,
534
+ se.ResourceExhausted,
535
+ se.FailedPrecondition,
536
+ se.Unavailable,
537
+ se.DataLoss
538
538
  ]), Qr = le("grpc:retry"), $i = (t) => async (e) => {
539
539
  const r = e.contextValues.get(sr.retryAttempts), n = 300, i = e.contextValues.get(sr.retryDelay);
540
540
  if (e.stream || r === 0)
@@ -651,7 +651,7 @@ class Gr {
651
651
  ...Array.isArray(r) ? r : [r]
652
652
  ], a = [e.typeName, o.charAt(0).toLowerCase() + o.slice(1)];
653
653
  return { client: i, createRequestOptions: (f) => {
654
- const c = bi();
654
+ const c = Si();
655
655
  for (const h in f) {
656
656
  const l = sr[h];
657
657
  c.set(l, f[h]);
@@ -683,7 +683,7 @@ class Gr {
683
683
  };
684
684
  }
685
685
  const Ui = (t, e) => {
686
- const { client: r, queryKey: n } = e.createPromiseClient(Si, {
686
+ const { client: r, queryKey: n } = e.createPromiseClient(wn, {
687
687
  method: "retrieveEventId",
688
688
  params: [t]
689
689
  });
@@ -708,6 +708,13 @@ const Ui = (t, e) => {
708
708
  // we are sure that id is a string
709
709
  })).data?.attributes : void 0
710
710
  });
711
+ }, qi = (t, e) => {
712
+ const { client: r, queryKey: n } = e.createPromiseClient(wn, { method: "summary", params: [t] });
713
+ return e.nanoquery.createFetcherStore(n, {
714
+ fetcher: async (i, o, s) => s ? (await r.summary({
715
+ id: s
716
+ })).data?.attributes : void 0
717
+ });
711
718
  }, xi = (t, e) => {
712
719
  const { queryKey: r, client: n } = e.createPromiseClient(vr, { method: "me", params: [t] });
713
720
  return e.nanoquery.createFetcherStore(r, {
@@ -716,15 +723,15 @@ const Ui = (t, e) => {
716
723
  return { data: i };
717
724
  }
718
725
  });
719
- }, qi = (t) => {
726
+ }, Qi = (t) => {
720
727
  const { client: e, createRequestOptions: r } = t.createPromiseClient(vr, { method: "bypassAuth" }), n = r({ retryAttempts: 0 });
721
728
  return ({ userKey: i, schema: o, init: s, inviterKey: a }) => e.bypassAuth({ userKey: i, schema: o, init: s, inviterKey: a }, { contextValues: n });
722
- }, Qi = (t, e) => {
729
+ }, Gi = (t, e) => {
723
730
  const { client: r, queryKey: n } = e.createPromiseClient(it, { method: "get", params: [t] });
724
731
  return e.nanoquery.createFetcherStore(n, {
725
732
  fetcher: async () => (await r.get({})).data?.attributes
726
733
  });
727
- }, Gi = (t, e) => {
734
+ }, Ki = (t, e) => {
728
735
  const { client: r, queryKey: n } = e.createPromiseClient(it, { method: "getOrganization", params: [t] });
729
736
  return e.nanoquery.createFetcherStore(n, {
730
737
  fetcher: async () => {
@@ -735,7 +742,7 @@ const Ui = (t, e) => {
735
742
  } : void 0;
736
743
  }
737
744
  });
738
- }, Ki = (t, e) => {
745
+ }, zi = (t, e) => {
739
746
  const { client: r, queryKey: n } = e.createPromiseClient(it, {
740
747
  method: "getOrganizationAdvertising",
741
748
  params: [t]
@@ -743,7 +750,7 @@ const Ui = (t, e) => {
743
750
  return e.nanoquery.createFetcherStore(n, {
744
751
  fetcher: async () => (await r.getOrganizationAdvertising({})).data?.attributes
745
752
  });
746
- }, zi = (t, e, r) => {
753
+ }, Hi = (t, e, r) => {
747
754
  t.transport = new Gr(e.host, {
748
755
  dedupeTime: 1e3 * 60 * 5,
749
756
  refetchInterval: 1e3 * 60 * 5,
@@ -785,34 +792,36 @@ var ge;
785
792
  (function(t) {
786
793
  t.DISABLED = "disabled", t.INITIALIZATION = "initialization", t.READY = "ready", t.FAILED = "failed", t.SUSPENDED = "suspended";
787
794
  })(ge || (ge = {}));
788
- const Hi = (t) => {
789
- const e = new Ue(), r = new Y(B(e.getExternalToken()), "userKey"), n = new Y(B(e.getToken()), "userToken"), i = new ce(xi(n.getStore(), t), "user", ({ data: s, error: a, loading: u }, f) => {
795
+ const Wi = (t) => {
796
+ const e = new Ue(), r = new Y(B(e.getExternalToken()), "userKey"), n = new Y(B(e.getToken()), "userToken"), i = new re(xi(n.getStore(), t), "user", ({ data: s, error: a, loading: u }, f) => {
790
797
  if (!a)
791
798
  return s?.data?.id ? s.data.id : u === !1 ? void 0 : f;
792
- }), o = new ce(Qi(n.getStore(), t), "userSettings");
799
+ }), o = new re(Gi(n.getStore(), t), "userSettings");
793
800
  return {
794
801
  userKey: r,
795
802
  userToken: n,
796
803
  user: i,
797
804
  userSettings: o
798
805
  };
799
- }, Wi = (t) => {
800
- const e = new Y(B(void 0), "providerStreamId"), r = new ce(Ui(e.getStore(), t), "slStreamId", (i) => i?.data), n = new ce(Bi(r.getAtomStore(), t), "streamSettings");
801
- return r.getAtomStore().listen((i) => {
802
- (i === "" || i === void 0) && n.getStore().mutate(void 0);
806
+ }, Yi = (t) => {
807
+ const e = new Y(B(void 0), "providerStreamId"), r = new re(Ui(e.getStore(), t), "slStreamId", (o) => o?.data), n = new re(Bi(r.getAtomStore(), t), "streamSettings"), i = new re(qi(r.getAtomStore(), t), "streamSettings");
808
+ return r.getAtomStore().listen((o) => {
809
+ (o === "" || o === void 0) && (n.getStore().mutate(void 0), i.getStore().mutate(void 0));
803
810
  }), {
804
811
  providerStreamId: e,
805
812
  slStreamId: r,
806
- streamSettings: n
813
+ streamSettings: n,
814
+ streamSummary: i
807
815
  };
808
- }, Yi = (t) => {
809
- const e = new Y(B(void 0), "enabled"), r = new Y(B(ge.DISABLED), "status"), n = new ce(Gi(e.getStore(), t), "organizationSettings", (a) => a?.data?.id), i = new ce(Ki(n.getAtomStore(), t), "organizationAdvertising"), o = Hi(t), s = Wi(t);
816
+ }, Ji = (t) => {
817
+ const e = new Y(B(void 0), "enabled"), r = new Y(B(ge.DISABLED), "status"), n = new re(Ki(e.getStore(), t), "organizationSettings", (a) => a?.data?.id), i = new re(zi(n.getAtomStore(), t), "organizationAdvertising"), o = Wi(t), s = Yi(t);
810
818
  return {
811
819
  enabled: e,
812
820
  status: r,
813
821
  providerStreamId: s.providerStreamId,
814
822
  slStreamId: s.slStreamId,
815
823
  streamSettings: s.streamSettings,
824
+ streamSummary: s.streamSummary,
816
825
  user: o.user,
817
826
  userKey: o.userKey,
818
827
  userToken: o.userToken,
@@ -821,10 +830,10 @@ const Hi = (t) => {
821
830
  organizationAdvertising: i
822
831
  };
823
832
  };
824
- class Ji extends kt {
833
+ class Xi extends kt {
825
834
  stores;
826
835
  constructor(e) {
827
- const r = Yi(e), n = Pi(r);
836
+ const r = Ji(e), n = Pi(r);
828
837
  super(n, "core"), this.stores = r;
829
838
  }
830
839
  getValue() {
@@ -845,17 +854,17 @@ class Ji extends kt {
845
854
  };
846
855
  unsubscribe = () => this.getStore().off();
847
856
  }
848
- const Xi = (t, e, r) => {
849
- t.store = new Ji(t.transport), t.stores = t.store.getValues(), t.sdk.enabled = t.stores.enabled.getStore(), t.sdk.status = t.stores.status.getStore(), t.sdk.sdkStore = Object.fromEntries(Object.entries(t.stores).map(([n, i]) => [n, i.getStore()])), t.sdk.organizationStore = () => t.stores.organizationSettings.getStore(), t.sdk.streamStore = () => t.stores.streamSettings.getStore(), t.storeUnsubscribe = () => {
857
+ const Zi = (t, e, r) => {
858
+ t.store = new Xi(t.transport), t.stores = t.store.getValues(), t.sdk.enabled = t.stores.enabled.getStore(), t.sdk.status = t.stores.status.getStore(), t.sdk.sdkStore = Object.fromEntries(Object.entries(t.stores).map(([n, i]) => [n, i.getStore()])), t.sdk.organizationStore = () => t.stores.organizationSettings.getStore(), t.sdk.streamStore = () => t.stores.streamSettings.getStore(), t.sdk.streamSummary = () => t.stores.streamSummary.getStore(), t.storeUnsubscribe = () => {
850
859
  t.store.unsubscribe();
851
860
  }, r();
852
- }, Zi = (t) => {
853
- const { client: e } = t.createPromiseClient(wn, { method: "list" });
861
+ }, eo = (t) => {
862
+ const { client: e } = t.createPromiseClient(An, { method: "list" });
854
863
  return (r) => e.list(r);
855
- }, kn = (t) => {
856
- const { client: e } = t.createPromiseClient(wn, { method: "summary" });
864
+ }, Pn = (t) => {
865
+ const { client: e } = t.createPromiseClient(An, { method: "summary" });
857
866
  return (r) => e.summary(r);
858
- }, eo = (t, e) => {
867
+ }, to = (t, e) => {
859
868
  const { client: r, queryKey: n } = e.createPromiseClient(vr, {
860
869
  method: "getFriends",
861
870
  params: [t]
@@ -871,8 +880,8 @@ const Xi = (t, e, r) => {
871
880
  }
872
881
  }
873
882
  });
874
- }, to = (t, e) => {
875
- const { client: r, queryKey: n } = e.createPromiseClient(re, { method: "get", params: [t] });
883
+ }, ro = (t, e) => {
884
+ const { client: r, queryKey: n } = e.createPromiseClient(ne, { method: "get", params: [t] });
876
885
  return e.nanoquery.createFetcherStore(n, {
877
886
  fetcher: async (i, o, s) => (await r.get({
878
887
  eventId: s
@@ -880,8 +889,8 @@ const Xi = (t, e, r) => {
880
889
  refetchInterval: 0,
881
890
  dedupeTime: 1e3 * 60 * 60
882
891
  });
883
- }, ro = (t, e) => {
884
- const { client: r, queryKey: n } = e.createPromiseClient(re, { method: "syncQuestion", params: [t] });
892
+ }, no = (t, e) => {
893
+ const { client: r, queryKey: n } = e.createPromiseClient(ne, { method: "syncQuestion", params: [t] });
885
894
  return e.nanoquery.createFetcherStore(n, {
886
895
  fetcher: async (i, o, s) => s ? (await r.syncQuestion({
887
896
  filter: {
@@ -892,36 +901,36 @@ const Xi = (t, e, r) => {
892
901
  // 10 minutes
893
902
  refetchInterval: 0
894
903
  });
895
- }, no = async (t, e) => {
896
- const { client: r } = e.createPromiseClient(re, { method: "item", params: [t] });
904
+ }, io = async (t, e) => {
905
+ const { client: r } = e.createPromiseClient(ne, { method: "item", params: [t] });
897
906
  return (await r.item({
898
907
  id: t
899
908
  })).data;
900
- }, io = (t, e) => {
901
- const { client: r } = e.createStreamClient(re), n = Ct({ eventId: t.get() || "", feedId: "" });
909
+ }, oo = (t, e) => {
910
+ const { client: r } = e.createStreamClient(ne), n = Ct({ eventId: t.get() || "", feedId: "" });
902
911
  return t.subscribe((o = "") => {
903
912
  n.set({ eventId: o, feedId: "" });
904
913
  }), e.addSubscription(r.subscription, n, { name: "feedSubscription" });
905
- }, oo = (t, e) => {
906
- const { client: r } = e.createStreamClient(re);
914
+ }, so = (t, e) => {
915
+ const { client: r } = e.createStreamClient(ne);
907
916
  return e.addSubscription(r.questionSubscription, { questionId: t }, { name: "questionSubscription" });
908
917
  }, ar = (t, e) => {
909
- const { client: r, queryKey: n } = e.createPromiseClient(re, { method: "questionByUser", params: [t] });
918
+ const { client: r, queryKey: n } = e.createPromiseClient(ne, { method: "questionByUser", params: [t] });
910
919
  return e.nanoquery.createFetcherStore(n, {
911
920
  fetcher: async (i, o, s) => (await r.questionByUser({
912
921
  questionId: s
913
922
  })).data?.attributes?.question,
914
923
  dedupeTime: 1e3 * 60 * 5
915
924
  });
916
- }, so = async (t, e) => {
925
+ }, ao = async (t, e) => {
917
926
  if (!t)
918
927
  return;
919
- const { client: r } = e.createPromiseClient(re, { method: "getQuestion", params: [t] }), n = await r.getQuestion({
928
+ const { client: r } = e.createPromiseClient(ne, { method: "getQuestion", params: [t] }), n = await r.getQuestion({
920
929
  id: t
921
930
  }), i = n.data?.attributes?.options?.options.case === "promotion" ? n.data?.attributes?.options?.options.value : void 0;
922
931
  return i ? { promotions: i, notification: n.data?.attributes?.notification } : void 0;
923
- }, ao = (t, e, r) => {
924
- const { client: n, queryKey: i } = r.createPromiseClient(re, {
932
+ }, uo = (t, e, r) => {
933
+ const { client: n, queryKey: i } = r.createPromiseClient(ne, {
925
934
  method: "list",
926
935
  params: [t, e]
927
936
  });
@@ -936,8 +945,8 @@ const Xi = (t, e, r) => {
936
945
  dedupeTime: 0,
937
946
  refetchInterval: 0
938
947
  });
939
- }, uo = (t, e) => {
940
- const { client: r, queryKey: n } = e.createPromiseClient(re, {
948
+ }, co = (t, e) => {
949
+ const { client: r, queryKey: n } = e.createPromiseClient(ne, {
941
950
  method: "list",
942
951
  params: [t]
943
952
  });
@@ -958,7 +967,7 @@ const Xi = (t, e, r) => {
958
967
  dedupeTime: 0,
959
968
  refetchInterval: 0
960
969
  });
961
- }, co = (t, e, r) => {
970
+ }, lo = (t, e, r) => {
962
971
  const n = Vr([e, r], () => {
963
972
  const a = e.get();
964
973
  if (!a)
@@ -994,7 +1003,7 @@ var St;
994
1003
  (function(t) {
995
1004
  t.SHOWED = "showed";
996
1005
  })(St || (St = {}));
997
- class lo extends He {
1006
+ class fo extends He {
998
1007
  constructor() {
999
1008
  super("advertisement");
1000
1009
  }
@@ -1003,7 +1012,7 @@ class lo extends He {
1003
1012
  };
1004
1013
  isShowed = (e) => this.read(St.SHOWED, e);
1005
1014
  }
1006
- class fo {
1015
+ class ho {
1007
1016
  advertisementList;
1008
1017
  store;
1009
1018
  timeouts;
@@ -1085,8 +1094,8 @@ class fo {
1085
1094
  this.store.clear(), this.timeouts.clear(), this.waitingQueue.clear(), this.activeQueue.clear(), this.advertisementList.off(), this.advertisementList.set(/* @__PURE__ */ new Map());
1086
1095
  };
1087
1096
  }
1088
- const ho = (t, e, r) => {
1089
- const n = r.transport, i = le("advertisement_queue"), o = new fo({ concurrency: 1, animationDelay: 1e3 }), s = new lo(), a = new ce(uo(t, n), "gamification:promotionList"), u = (l, g) => {
1097
+ const po = (t, e, r) => {
1098
+ const n = r.transport, i = le("advertisement_queue"), o = new ho({ concurrency: 1, animationDelay: 1e3 }), s = new fo(), a = new re(co(t, n), "gamification:promotionList"), u = (l, g) => {
1090
1099
  J.emit("advertisement", {
1091
1100
  action: "received",
1092
1101
  payload: {
@@ -1101,11 +1110,11 @@ const ho = (t, e, r) => {
1101
1110
  promise: async function() {
1102
1111
  this.data.setKey("loading", !0);
1103
1112
  try {
1104
- const v = g || await so(l, n);
1113
+ const v = g || await ao(l, n);
1105
1114
  r.sdk.onAdvertisementActivate({
1106
1115
  stage: "activate",
1107
1116
  id: l,
1108
- hasNotification: v?.notification?.enabled === yi.NOTIFICATION_ENABLED,
1117
+ hasNotification: v?.notification?.enabled === gi.NOTIFICATION_ENABLED,
1109
1118
  isShowed: !!s.isShowed(l)
1110
1119
  }), v ? this.data.setKey("data", v) : this.data.setKey("error", new Error("No promotion found"));
1111
1120
  } catch (v) {
@@ -1186,7 +1195,7 @@ var Ce;
1186
1195
  (function(t) {
1187
1196
  t.ALLOWED = "allowed", t.DISALLOWED = "disallowed";
1188
1197
  })(Ce || (Ce = {}));
1189
- class po {
1198
+ class yo {
1190
1199
  /** sl event id */
1191
1200
  slStreamId;
1192
1201
  /** organization id */
@@ -1219,11 +1228,11 @@ class po {
1219
1228
  transport;
1220
1229
  cancels = /* @__PURE__ */ new Set();
1221
1230
  constructor(e) {
1222
- this.transport = e.transport, this.log = le("gamification-background"), this.slStreamId = e.stores.slStreamId.getAtomStore(), this.organizationId = e.stores.organizationSettings.getAtomStore(), this.userId = e.stores.user.getAtomStore(), this.moderationId = new Y(B(void 0), "moderationId").getStore(), this.interactiveAllowed = new Y(B(Ce.DISALLOWED), "interactiveAllowed").getStore(), this.openedQuestionId = new Y(B(void 0), "openedQuestionId").getStore(), this.notifications = e.notifications, this.moderation = new ce(to(this.slStreamId, e.transport), "gamification:moderation"), this.feedList = new ce(ao(this.slStreamId, this.interactiveAllowed, e.transport), "gamification:feedList"), this.activeQuestionId = ro(this.slStreamId, e.transport), this.openedQuestion = co(e.transport, this.openedQuestionId, this.feedList.getStore()), this.cancels.add(this.openedQuestionId.listen((r) => {
1223
- this.log.debug({ item: r }, "received question"), r?.questionId ? (this.questionSubscription = oo(r.questionId, e.transport), this.questionSubscription.addListener("feed-subscription-opened-question", (n) => {
1231
+ this.transport = e.transport, this.log = le("gamification-background"), this.slStreamId = e.stores.slStreamId.getAtomStore(), this.organizationId = e.stores.organizationSettings.getAtomStore(), this.userId = e.stores.user.getAtomStore(), this.moderationId = new Y(B(void 0), "moderationId").getStore(), this.interactiveAllowed = new Y(B(Ce.DISALLOWED), "interactiveAllowed").getStore(), this.openedQuestionId = new Y(B(void 0), "openedQuestionId").getStore(), this.notifications = e.notifications, this.moderation = new re(ro(this.slStreamId, e.transport), "gamification:moderation"), this.feedList = new re(uo(this.slStreamId, this.interactiveAllowed, e.transport), "gamification:feedList"), this.activeQuestionId = no(this.slStreamId, e.transport), this.openedQuestion = lo(e.transport, this.openedQuestionId, this.feedList.getStore()), this.cancels.add(this.openedQuestionId.listen((r) => {
1232
+ this.log.debug({ item: r }, "received question"), r?.questionId ? (this.questionSubscription = so(r.questionId, e.transport), this.questionSubscription.addListener("feed-subscription-opened-question", (n) => {
1224
1233
  this.openedQuestion.updateExtendedQuestion(n.data?.attributes?.question);
1225
1234
  }), this.questionSubscription.connect()) : (this.log.info("cleanup on close question"), this.questionSubscription !== void 0 && (e.transport.removeSubscription(this.questionSubscription), this.questionSubscription = void 0));
1226
- })), this.feedSubscription = io(this.slStreamId, e.transport), this.cancels.add(this.feedSubscription.addListener("feed-subscription-active-question", (r) => {
1235
+ })), this.feedSubscription = oo(this.slStreamId, e.transport), this.cancels.add(this.feedSubscription.addListener("feed-subscription-active-question", (r) => {
1227
1236
  const n = this.activeQuestionId.get().data?.question?.id, i = r.data?.attributes?.question;
1228
1237
  !i || i.type === F.PROMOTION || n && i.status === H.RESOLVED && i.id !== n || this.activeQuestionId.mutate(r.data?.attributes);
1229
1238
  })), this.cancels.add(this.feedSubscription.addListener("moderation update", (r) => {
@@ -1238,7 +1247,7 @@ class po {
1238
1247
  this.activeQuestionId.off();
1239
1248
  for (const r of this.cancels)
1240
1249
  r(), this.cancels.delete(r);
1241
- }), this.advertisement = ho(this.slStreamId, this.feedSubscription, e);
1250
+ }), this.advertisement = po(this.slStreamId, this.feedSubscription, e);
1242
1251
  }
1243
1252
  /**
1244
1253
  * Get id for notifications and link with current session
@@ -1268,7 +1277,7 @@ class po {
1268
1277
  this.openedQuestionId.set(void 0), e && this.notifications.markAsViewed(this.getCurrentSessionId({ prefix: "notification", entity: e }));
1269
1278
  };
1270
1279
  }
1271
- class yo {
1280
+ class go {
1272
1281
  notificationsList;
1273
1282
  store;
1274
1283
  timeouts;
@@ -1353,7 +1362,7 @@ var wt;
1353
1362
  (function(t) {
1354
1363
  t.OPENED = "opened";
1355
1364
  })(wt || (wt = {}));
1356
- class go extends He {
1365
+ class mo extends He {
1357
1366
  constructor() {
1358
1367
  super("notification");
1359
1368
  }
@@ -1369,11 +1378,11 @@ var Ae;
1369
1378
  (function(t) {
1370
1379
  t[t.ONBOARDING = 1] = "ONBOARDING", t[t.QUESTION = 2] = "QUESTION", t[t.QUESTION_RESOLVED = 3] = "QUESTION_RESOLVED";
1371
1380
  })(Ae || (Ae = {}));
1372
- class mo {
1381
+ class vo {
1373
1382
  queue;
1374
1383
  storage;
1375
1384
  constructor(e = {}) {
1376
- this.storage = new go(), this.queue = new yo({ concurrency: 1, animationDelay: 1600, ...e });
1385
+ this.storage = new mo(), this.queue = new go({ concurrency: 1, animationDelay: 1600, ...e });
1377
1386
  }
1378
1387
  isViewed = (e) => this.storage.isOpened(e);
1379
1388
  add = (e) => {
@@ -1410,8 +1419,8 @@ class mo {
1410
1419
  this.storage.setOpened(e);
1411
1420
  };
1412
1421
  }
1413
- const vo = (t, e, r) => {
1414
- t.notifications = new mo(void 0), t.addNotification = t.notifications.add, t.sdk.getNotificationsStore = () => t.notifications.getQueueStore(), t.sdk.getActiveNotification = () => t.notifications.getActiveNotification(), t.sdk.onMount({ name: "notifications" }, () => () => {
1422
+ const bo = (t, e, r) => {
1423
+ t.notifications = new vo(void 0), t.addNotification = t.notifications.add, t.sdk.getNotificationsStore = () => t.notifications.getQueueStore(), t.sdk.getActiveNotification = () => t.notifications.getActiveNotification(), t.sdk.onMount({ name: "notifications" }, () => () => {
1415
1424
  t.notifications.queue.drain();
1416
1425
  }), r();
1417
1426
  };
@@ -1419,22 +1428,22 @@ var rt;
1419
1428
  (function(t) {
1420
1429
  t.UNKNOWN = "unknown", t.ALREADY_VOTED = "already_voted";
1421
1430
  })(rt || (rt = {}));
1422
- const bo = async (t, e) => {
1423
- const { client: r, createRequestOptions: n } = t.createPromiseClient(re, { method: "submitAnswer" }), i = n({ retryAttempts: 0 });
1431
+ const So = async (t, e) => {
1432
+ const { client: r, createRequestOptions: n } = t.createPromiseClient(ne, { method: "submitAnswer" }), i = n({ retryAttempts: 0 });
1424
1433
  try {
1425
1434
  return await r.submitAnswer({ data: e }, { contextValues: i });
1426
1435
  } catch (o) {
1427
- throw tt.from(o)?.code === oe.AlreadyExists ? new Error(rt.ALREADY_VOTED) : new Error(rt.UNKNOWN);
1436
+ throw tt.from(o)?.code === se.AlreadyExists ? new Error(rt.ALREADY_VOTED) : new Error(rt.UNKNOWN);
1428
1437
  }
1429
- }, So = (t, e) => {
1430
- const { client: r, createRequestOptions: n } = t.createPromiseClient(re, { method: "submitInplay" }), i = n({ retryAttempts: 0 });
1438
+ }, wo = (t, e) => {
1439
+ const { client: r, createRequestOptions: n } = t.createPromiseClient(ne, { method: "submitInplay" }), i = n({ retryAttempts: 0 });
1431
1440
  return r.submitInplay({ data: { eventId: +e } }, { contextValues: i });
1432
1441
  };
1433
1442
  var Be;
1434
1443
  (function(t) {
1435
1444
  t.ONBOARDING = "onboarding", t.ONBOARDING_IO = "onboarding_io";
1436
1445
  })(Be || (Be = {}));
1437
- class wo extends He {
1446
+ class Ao extends He {
1438
1447
  constructor() {
1439
1448
  super("gamification-session", window.sessionStorage);
1440
1449
  }
@@ -1443,10 +1452,10 @@ class wo extends He {
1443
1452
  };
1444
1453
  readValue = (e) => this.read(...e);
1445
1454
  }
1446
- class Pn extends He {
1455
+ class Nn extends He {
1447
1456
  sessionStorage;
1448
1457
  constructor() {
1449
- super("gamification"), this.sessionStorage = new wo();
1458
+ super("gamification"), this.sessionStorage = new Ao();
1450
1459
  }
1451
1460
  saveOnboardingStatus = ({ userId: e, eventId: r, organizationId: n }, i) => {
1452
1461
  this.write(Be.ONBOARDING, n, e, r, i);
@@ -1457,17 +1466,17 @@ class Pn extends He {
1457
1466
  };
1458
1467
  getOnboardingInstantOpen = ({ userId: e, eventId: r, organizationId: n }) => this.sessionStorage.readValue([Be.ONBOARDING_IO, n, e, r]);
1459
1468
  }
1460
- const Ao = {
1469
+ const Eo = {
1461
1470
  pageSize: 10
1462
- }, Eo = (t, e, r, n, i) => {
1471
+ }, Io = (t, e, r, n, i) => {
1463
1472
  let o = 0;
1464
- const s = B({ pageSize: Ao.pageSize, page: 0 }), a = te({
1473
+ const s = B({ pageSize: Eo.pageSize, page: 0 }), a = te({
1465
1474
  data: [],
1466
1475
  key: Date.now(),
1467
1476
  hasMore: !0,
1468
1477
  loading: void 0,
1469
1478
  error: void 0
1470
- }), u = Zi(t), f = async () => {
1479
+ }), u = eo(t), f = async () => {
1471
1480
  const l = e.get(), g = n.getStore().get().data?.map((v) => v.slId) || [];
1472
1481
  if (l && g?.length) {
1473
1482
  const v = r.get();
@@ -1499,7 +1508,7 @@ const Ao = {
1499
1508
  };
1500
1509
  }), { $store: a, fetchMore: h, invalidate: c };
1501
1510
  };
1502
- class Io extends He {
1511
+ class To extends He {
1503
1512
  get = this.read;
1504
1513
  set = this.write;
1505
1514
  del = this.remove;
@@ -1507,12 +1516,12 @@ class Io extends He {
1507
1516
  super("deep-link-context", window.sessionStorage);
1508
1517
  }
1509
1518
  }
1510
- const Kr = "sldl", Pt = "sldl_uid", Nn = "sldl_eid", Fn = "sldl_e_eid", To = /* @__PURE__ */ new Set([Pt, Nn, Fn]), zr = (t) => {
1519
+ const Kr = "sldl", Pt = "sldl_uid", Fn = "sldl_eid", Dn = "sldl_e_eid", Oo = /* @__PURE__ */ new Set([Pt, Fn, Dn]), zr = (t) => {
1511
1520
  const e = {}, r = {};
1512
1521
  for (const [n, i] of t)
1513
- To.has(n) ? e[n] = i : r[n] = i;
1522
+ Oo.has(n) ? e[n] = i : r[n] = i;
1514
1523
  return { result: e, remain: r };
1515
- }, Oo = ({ hash: t, search: e }) => {
1524
+ }, _o = ({ hash: t, search: e }) => {
1516
1525
  if (t && t.includes(Kr)) {
1517
1526
  const r = new URLSearchParams(t.substr(1));
1518
1527
  return { hash: zr(r) };
@@ -1522,43 +1531,43 @@ const Kr = "sldl", Pt = "sldl_uid", Nn = "sldl_eid", Fn = "sldl_e_eid", To = /*
1522
1531
  return { search: zr(r) };
1523
1532
  }
1524
1533
  return null;
1525
- }, Hr = le("deep_link"), ue = {
1534
+ }, Hr = le("deep_link"), ce = {
1526
1535
  debug: (...t) => {
1527
1536
  Hr.debug(...t), localStorage.getItem("SL_DEBUG") && console.log(...t);
1528
1537
  },
1529
1538
  trace: (...t) => {
1530
1539
  Hr.trace(...t), localStorage.getItem("SL_DEBUG") && console.log(...t);
1531
1540
  }
1532
- }, _o = (t, e) => {
1541
+ }, Lo = (t, e) => {
1533
1542
  const { hash: r, search: n } = window.location;
1534
- if (ue.debug({ hash: r, search: n }, "get deep link data from"), r || n) {
1535
- const i = Oo({ hash: r, search: n });
1536
- if (ue.debug(i, "parse deep link result"), i) {
1543
+ if (ce.debug({ hash: r, search: n }, "get deep link data from"), r || n) {
1544
+ const i = _o({ hash: r, search: n });
1545
+ if (ce.debug(i, "parse deep link result"), i) {
1537
1546
  const { hash: o, search: s } = i, { result: a, remain: u } = o || s;
1538
1547
  if (Object.keys(a).length !== 0) {
1539
1548
  t.setValue("data", a);
1540
1549
  const f = Object.keys(u).length !== 0;
1541
1550
  if (o) {
1542
1551
  let c = "";
1543
- f && (c = `#${new URLSearchParams(u).toString()}`, ue.debug({ updatedHash: c }, "update hash")), window.history.replaceState(null, "", window.location.pathname + window.location.search + c);
1552
+ f && (c = `#${new URLSearchParams(u).toString()}`, ce.debug({ updatedHash: c }, "update hash")), window.history.replaceState(null, "", window.location.pathname + window.location.search + c);
1544
1553
  }
1545
1554
  if (s) {
1546
1555
  let c = "";
1547
- f && (c = `?${new URLSearchParams(u).toString()}`, ue.debug({ updatedSearch: c }, "update search")), window.history.replaceState(null, "", window.location.pathname + c + window.location.hash);
1556
+ f && (c = `?${new URLSearchParams(u).toString()}`, ce.debug({ updatedSearch: c }, "update search")), window.history.replaceState(null, "", window.location.pathname + c + window.location.hash);
1548
1557
  }
1549
1558
  e(a);
1550
1559
  }
1551
1560
  }
1552
1561
  }
1553
1562
  t.setValue("parsed", !0);
1554
- }, Lo = (t, e, r) => {
1555
- const n = new Io(), i = n.get("sl-deep-link-store");
1563
+ }, Co = (t, e, r) => {
1564
+ const n = new To(), i = n.get("sl-deep-link-store");
1556
1565
  let o = {};
1557
1566
  if (i)
1558
1567
  try {
1559
1568
  o = JSON.parse(i);
1560
1569
  } catch (a) {
1561
- ue.debug(a);
1570
+ ce.debug(a);
1562
1571
  }
1563
1572
  t.deepLink = {
1564
1573
  $store: new Le(te(o), "deep-link-context"),
@@ -1568,7 +1577,7 @@ const Kr = "sldl", Pt = "sldl_uid", Nn = "sldl_eid", Fn = "sldl_e_eid", To = /*
1568
1577
  },
1569
1578
  // we are logged in with inviter id
1570
1579
  deepLinkUsed: (a) => {
1571
- ue.debug(`logged in with inviterId: ${a}`), t.deepLink.$store.setValue("used", !0);
1580
+ ce.debug(`logged in with inviterId: ${a}`), t.deepLink.$store.setValue("used", !0);
1572
1581
  },
1573
1582
  onDeepLinkHandlers: /* @__PURE__ */ new Set()
1574
1583
  }, t.sdk.getInviter = () => {
@@ -1577,28 +1586,28 @@ const Kr = "sldl", Pt = "sldl_uid", Nn = "sldl_eid", Fn = "sldl_e_eid", To = /*
1577
1586
  }, t.sdk.inviteDisplayed = () => {
1578
1587
  t.deepLink.$store.getStore().set({}), t.deepLink.$store.getStore().off(), n.del("sl-deep-link-store");
1579
1588
  }, t.deepLink.$store.subscribe((a) => n.set("sl-deep-link-store", JSON.stringify(a))), t.sdk.addDeepLinkHandler = (a) => {
1580
- localStorage.getItem("SL_DEBUG") && ue.trace("adding deep link handler"), t.deepLink.onDeepLinkHandlers.add(a);
1589
+ localStorage.getItem("SL_DEBUG") && ce.trace("adding deep link handler"), t.deepLink.onDeepLinkHandlers.add(a);
1581
1590
  }, e.onDeepLinkHandled && t.sdk.addDeepLinkHandler(e.onDeepLinkHandled), t.sdk.removeDeepLinkHandler = (a) => {
1582
- ue.trace("removing deep link handler"), t.deepLink.onDeepLinkHandlers.delete(a);
1591
+ ce.trace("removing deep link handler"), t.deepLink.onDeepLinkHandlers.delete(a);
1583
1592
  };
1584
1593
  const s = (a) => {
1585
- t.deepLink.$store.setValue("handled", !0), ue.trace({ size: t.deepLink.onDeepLinkHandlers.size }, "deep link handled, call callbacks");
1594
+ t.deepLink.$store.setValue("handled", !0), ce.trace({ size: t.deepLink.onDeepLinkHandlers.size }, "deep link handled, call callbacks");
1586
1595
  for (const u of t.deepLink.onDeepLinkHandlers)
1587
1596
  try {
1588
- ue.trace("called handler"), u(a);
1597
+ ce.trace("called handler"), u(a);
1589
1598
  } catch (f) {
1590
1599
  console.error(f);
1591
1600
  }
1592
1601
  };
1593
- _o(t.deepLink.$store, s), r();
1594
- }, Co = le("bypass");
1595
- class ko extends ki {
1602
+ Lo(t.deepLink.$store, s), r();
1603
+ }, ko = le("bypass");
1604
+ class Po extends ki {
1596
1605
  $coreStore;
1597
1606
  deepLink;
1598
1607
  transport;
1599
1608
  bypassLogin;
1600
1609
  constructor(e, r, n) {
1601
- super(), this.$coreStore = e, this.deepLink = n, this.transport = r, this.bypassLogin = qi(this.transport), this.connect();
1610
+ super(), this.$coreStore = e, this.deepLink = n, this.transport = r, this.bypassLogin = Qi(this.transport), this.connect();
1602
1611
  }
1603
1612
  me = async () => (this.$coreStore.getValues().user.invalidate(), (await this.$coreStore.getValues().user.getValue())?.data);
1604
1613
  /**
@@ -1610,7 +1619,7 @@ class ko extends ki {
1610
1619
  login = async (e, r) => {
1611
1620
  this.$coreStore.getValues().userKey.setValue(r);
1612
1621
  const { used: n, data: i } = this.deepLink.getDeepLinkData(), o = n ? "" : i?.[Pt];
1613
- Co.debug({ inviterKey: o }, "login with inviterKey");
1622
+ ko.debug({ inviterKey: o }, "login with inviterKey");
1614
1623
  const s = await this.bypassLogin({
1615
1624
  schema: e,
1616
1625
  userKey: r,
@@ -1679,8 +1688,8 @@ class ko extends ki {
1679
1688
  });
1680
1689
  };
1681
1690
  }
1682
- const Je = new Ue(), Po = (t, e, r) => {
1683
- t.auth = new ko(t.store, t.transport, t.deepLink), t.stores.status.listen((n) => {
1691
+ const Je = new Ue(), No = (t, e, r) => {
1692
+ t.auth = new Po(t.store, t.transport, t.deepLink), t.stores.status.listen((n) => {
1684
1693
  n === ge.READY && t.auth.reLogin();
1685
1694
  }), t.sdk.userId = t.stores.user.getAtomStore, t.sdk.authorizationBypass = async (n, i) => {
1686
1695
  if (!(Je.getSchema() === n && Je.getExternalToken() === i && t.transport.getHeader("authorization")))
@@ -1699,7 +1708,7 @@ const Je = new Ue(), Po = (t, e, r) => {
1699
1708
  trace: (...t) => {
1700
1709
  Wr.trace(...t), localStorage.getItem("SL_DEBUG") && console.log(...t);
1701
1710
  }
1702
- }, No = (t, e, r) => {
1711
+ }, Fo = (t, e, r) => {
1703
1712
  t.videoPlayer = {
1704
1713
  controllers: /* @__PURE__ */ new Set()
1705
1714
  }, t.sdk.addVideoPlayerController = (n) => {
@@ -1717,13 +1726,13 @@ const Je = new Ue(), Po = (t, e, r) => {
1717
1726
  }
1718
1727
  }
1719
1728
  }, r();
1720
- }, Fo = (t, e, r) => {
1729
+ }, Do = (t, e, r) => {
1721
1730
  t.ui = {
1722
1731
  state: /* @__PURE__ */ new Set()
1723
1732
  }, e.onContentActivate && (t.ui.onContentActivate = e.onContentActivate), t.sdk.onAdvertisementActivate = (n) => {
1724
1733
  t.ui.onContentActivate && t.ui.onContentActivate({ ...n, type: "advertisement" });
1725
1734
  }, r();
1726
- }, Do = (t, e, r) => {
1735
+ }, Ro = (t, e, r) => {
1727
1736
  const n = { onMountedFired: !1 }, i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
1728
1737
  t.sdk = /* @__PURE__ */ Object.create(null), t.sdk.onMount = ({ name: s, clear: a }, u) => {
1729
1738
  if (i.has(s)) {
@@ -1750,7 +1759,7 @@ const Je = new Ue(), Po = (t, e, r) => {
1750
1759
  }, t.sdk.createEventSession = (s) => {
1751
1760
  t.stores.providerStreamId.setValue(s);
1752
1761
  }, r();
1753
- }, Ro = (t, e) => {
1762
+ }, Vo = (t, e) => {
1754
1763
  const { client: r, queryKey: n } = t.createPromiseClient(it, {
1755
1764
  method: "generateDeepLink",
1756
1765
  params: e
@@ -1771,7 +1780,7 @@ const Je = new Ue(), Po = (t, e, r) => {
1771
1780
  // 24 hours
1772
1781
  refetchInterval: 0
1773
1782
  });
1774
- }, Vo = (t, { web: e, mobile: r }) => {
1783
+ }, $o = (t, { web: e, mobile: r }) => {
1775
1784
  const { client: n } = t.createPromiseClient(wi, { method: "generate" });
1776
1785
  return n.generate({ web: e, mobile: r });
1777
1786
  }, Yr = (t, e) => {
@@ -1779,13 +1788,13 @@ const Je = new Ue(), Po = (t, e, r) => {
1779
1788
  for (const [n, i] of Object.entries(e))
1780
1789
  r.append(n, i);
1781
1790
  return r.toString();
1782
- }, $o = (t, e, r, n) => {
1791
+ }, Mo = (t, e, r, n) => {
1783
1792
  const i = te({});
1784
- return nt(i, () => Ro(t, [e, r]).subscribe(async ({ data: a, error: u, loading: f }) => {
1793
+ return nt(i, () => Vo(t, [e, r]).subscribe(async ({ data: a, error: u, loading: f }) => {
1785
1794
  const c = u ? "https://masters.com" : a?.url, h = n.get() || "", l = e.get() || "", g = r.get() || "", v = {
1786
1795
  [Pt]: h,
1787
- [Nn]: l,
1788
- [Fn]: g
1796
+ [Fn]: l,
1797
+ [Dn]: g
1789
1798
  };
1790
1799
  if (!f && c) {
1791
1800
  i.setKey("loading", !0);
@@ -1793,7 +1802,7 @@ const Je = new Ue(), Po = (t, e, r) => {
1793
1802
  w && b || b ? w = `?${Yr(w, v)}` : b = `#${Yr("", v)}`;
1794
1803
  const L = window.location.origin + window.location.pathname + w + b;
1795
1804
  try {
1796
- const R = await Vo(t, { web: L, mobile: c });
1805
+ const R = await $o(t, { web: L, mobile: c });
1797
1806
  i.set({
1798
1807
  data: R.data?.link,
1799
1808
  loading: !1
@@ -1813,7 +1822,7 @@ var U;
1813
1822
  (function(t) {
1814
1823
  t.Unset = "unset", t.Required = "required", t.Optional = "optional", t.Completed = "completed", t.Disabled = "disabled", t.Unavailable = "unavailable";
1815
1824
  })(U || (U = {}));
1816
- const Mo = (t, e, r, n) => {
1825
+ const jo = (t, e, r, n) => {
1817
1826
  const { inplayGame: i } = t.featureSettings.get(), o = e.getCurrentSessionId({ prefix: "onboarding" });
1818
1827
  i && r.add({
1819
1828
  type: Ae.ONBOARDING,
@@ -1857,11 +1866,11 @@ const Mo = (t, e, r, n) => {
1857
1866
  } catch (s) {
1858
1867
  console.error(s);
1859
1868
  }
1860
- }, jo = (t, e, r, n) => {
1869
+ }, Uo = (t, e, r, n) => {
1861
1870
  let i = !1;
1862
- const o = new Pn(), s = B(U.Unset);
1871
+ const o = new Nn(), s = B(U.Unset);
1863
1872
  s.subscribe((f) => {
1864
- f !== U.Unset && ((f === U.Optional || f === U.Required) && i === !1 && (Mo(t, e, n, o), i = !0), f === U.Completed && e.activeQuestionId.invalidate(), o.setOnboardingInstantOpen({
1873
+ f !== U.Unset && ((f === U.Optional || f === U.Required) && i === !1 && (jo(t, e, n, o), i = !0), f === U.Completed && e.activeQuestionId.invalidate(), o.setOnboardingInstantOpen({
1865
1874
  userId: e.userId.get() || "",
1866
1875
  organizationId: e.organizationId.get() || "",
1867
1876
  eventId: e.slStreamId.get() || ""
@@ -1877,7 +1886,7 @@ const Mo = (t, e, r, n) => {
1877
1886
  }))), { $store: s, submitInplay: async () => {
1878
1887
  const f = e.slStreamId.get();
1879
1888
  if (f) {
1880
- await So(r, f), s.set(U.Completed), o.saveOnboardingStatus({
1889
+ await wo(r, f), s.set(U.Completed), o.saveOnboardingStatus({
1881
1890
  organizationId: e.organizationId.get() || "",
1882
1891
  userId: e.userId.get() || "",
1883
1892
  eventId: f
@@ -1889,8 +1898,8 @@ const Mo = (t, e, r, n) => {
1889
1898
  n.close(c);
1890
1899
  }
1891
1900
  } };
1892
- }, Uo = (t, e, r, n) => {
1893
- const i = te(void 0), o = kn(n), s = async () => {
1901
+ }, Bo = (t, e, r, n) => {
1902
+ const i = te(void 0), o = Pn(n), s = async () => {
1894
1903
  const u = t.get(), f = e.get(), c = r.getStore().get().data?.map((g) => g.slId);
1895
1904
  if (!c)
1896
1905
  return;
@@ -1909,15 +1918,15 @@ const Mo = (t, e, r, n) => {
1909
1918
  u(), f(), c();
1910
1919
  };
1911
1920
  }), { $store: i, invalidate: a };
1912
- }, Bo = async (t, e, r, n, i) => {
1913
- const o = kn(i), s = t.get(), a = e.get(), u = r.getStore().get().data?.map((l) => l.slId) || [], f = {
1921
+ }, qo = async (t, e, r, n, i) => {
1922
+ const o = Pn(i), s = t.get(), a = e.get(), u = r.getStore().get().data?.map((l) => l.slId) || [], f = {
1914
1923
  eventId: s,
1915
1924
  userId: n,
1916
1925
  usersIds: [...u, a]
1917
1926
  };
1918
1927
  return (await o(f)).data?.attributes?.summary;
1919
1928
  }, xo = /* @__PURE__ */ new Set([F.POLL, F.PREDICTION, F.TRIVIA]);
1920
- class qo extends _n {
1929
+ class Qo extends Ln {
1921
1930
  /** user statistics (leaderboard panel) */
1922
1931
  userSummary;
1923
1932
  /** feed list (pick history) */
@@ -1952,7 +1961,7 @@ class qo extends _n {
1952
1961
  submitAnswerTimeout;
1953
1962
  cancels = /* @__PURE__ */ new Set();
1954
1963
  constructor(e, r, n) {
1955
- super(e, r), this.background = new po(n), this.advertisement = this.background.advertisement, this.feedSubscription = this.background.feedSubscription, this.activeQuestionId = this.background.activeQuestionId, this.openedQuestionId = this.background.openedQuestionId, this.storage = new Pn(), this.feedList = this.background.feedList, this.friends = new ce(eo(this.background.userId, n.transport), "gamification:friends"), this.currentUserId = this.background.userId, this.openedUser = B(void 0), this.leaderboardId = new Y(B(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = jo(this, this.background, n.transport, n.notifications), this.notifications = n.notifications, this.transport = n.transport, this.closeFeature = () => n.sdk.closeFeature(!0), this.openFeature = () => n.sdk.openFeature(D.GAMES), this.openedQuestion = this.background.openedQuestion, this.deepLink = $o(this.transport, this.background.slStreamId, n.stores.providerStreamId.getStore(), this.background.userId), this.userSummary = Uo(this.background.slStreamId, this.background.userId, this.friends, this.transport), this.leaderboardList = Eo(this.transport, this.background.slStreamId, this.background.userId, this.friends), this.connect(), this.cancels.add(this.userSummary.$store.listen((i, o) => {
1964
+ super(e, r), this.background = new yo(n), this.advertisement = this.background.advertisement, this.feedSubscription = this.background.feedSubscription, this.activeQuestionId = this.background.activeQuestionId, this.openedQuestionId = this.background.openedQuestionId, this.storage = new Nn(), this.feedList = this.background.feedList, this.friends = new re(to(this.background.userId, n.transport), "gamification:friends"), this.currentUserId = this.background.userId, this.openedUser = B(void 0), this.leaderboardId = new Y(B(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = Uo(this, this.background, n.transport, n.notifications), this.notifications = n.notifications, this.transport = n.transport, this.closeFeature = () => n.sdk.closeFeature(!0), this.openFeature = () => n.sdk.openFeature(D.GAMES), this.openedQuestion = this.background.openedQuestion, this.deepLink = Mo(this.transport, this.background.slStreamId, n.stores.providerStreamId.getStore(), this.background.userId), this.userSummary = Bo(this.background.slStreamId, this.background.userId, this.friends, this.transport), this.leaderboardList = Io(this.transport, this.background.slStreamId, this.background.userId, this.friends), this.connect(), this.cancels.add(this.userSummary.$store.listen((i, o) => {
1956
1965
  o?.summary && i?.summary && this.leaderboardList.invalidate();
1957
1966
  })), this.cancels.add(this.onboardingStatus.$store.listen(this.checkInteractiveFlag)), this.cancels.add(this.background.moderation.getStore().listen(this.checkInteractiveFlag)), this.cancels.add(this.settings.subscribe(this.checkInteractiveFlag)), nt(this.background.activeQuestionId, () => {
1958
1967
  this.background.activeQuestionId.listen(this.showInApp);
@@ -2112,7 +2121,7 @@ class qo extends _n {
2112
2121
  }
2113
2122
  };
2114
2123
  try {
2115
- await bo(this.transport, { questionId: e, answerId: r }), s();
2124
+ await So(this.transport, { questionId: e, answerId: r }), s();
2116
2125
  } catch (a) {
2117
2126
  if (a.message === rt.ALREADY_VOTED) {
2118
2127
  this.userSummary.invalidate();
@@ -2143,7 +2152,7 @@ class qo extends _n {
2143
2152
  }
2144
2153
  }), this.background.openQuestion(e, r);
2145
2154
  };
2146
- getFeedItem = (e) => no(e, this.transport);
2155
+ getFeedItem = (e) => io(e, this.transport);
2147
2156
  isOpenedQuestion = (e) => this.notifications.isViewed(e);
2148
2157
  closeQuestion = (e) => this.background.closeQuestion(e);
2149
2158
  openUser = async (e) => {
@@ -2158,7 +2167,7 @@ class qo extends _n {
2158
2167
  }
2159
2168
  const n = { ...r };
2160
2169
  try {
2161
- const i = await Bo(this.background.slStreamId, this.background.userId, this.friends, e, this.transport);
2170
+ const i = await qo(this.background.slStreamId, this.background.userId, this.friends, e, this.transport);
2162
2171
  i?.inTop !== void 0 && (this.leaderboardList.$store.setKey("data", this.leaderboardList.$store.get().data?.map((o) => (o.userId === e && (o.inTop = i.inTop), o))), n.inTop = i.inTop);
2163
2172
  } catch (i) {
2164
2173
  console.error(i);
@@ -2176,7 +2185,7 @@ class qo extends _n {
2176
2185
  */
2177
2186
  showInApp = (e) => {
2178
2187
  const r = this.onboardingStatus.$store.get();
2179
- if (e && e.data && r && r !== U.Unset && e.data.question?.id !== void 0 && e.data.question.notification !== void 0 && e.data.question?.bypassNotifications?.inAppSilence !== gi.ON && e.data.question.status === H.ACTIVE && !e.data.question.marketClosed) {
2188
+ if (e && e.data && r && r !== U.Unset && e.data.question?.id !== void 0 && e.data.question.notification !== void 0 && e.data.question?.bypassNotifications?.inAppSilence !== mi.ON && e.data.question.status === H.ACTIVE && !e.data.question.marketClosed) {
2180
2189
  if (xo.has(e.data.question.type))
2181
2190
  this.isInteractiveAllowed && this.notifications.add({
2182
2191
  type: Ae.QUESTION,
@@ -2252,15 +2261,15 @@ class qo extends _n {
2252
2261
  }
2253
2262
  };
2254
2263
  }
2255
- const Qo = {
2264
+ const Go = {
2256
2265
  [D.GAMES]: !0
2257
2266
  };
2258
- class Go extends _n {
2267
+ class Ko extends Ln {
2259
2268
  constructor(e, r) {
2260
2269
  super(e, r);
2261
2270
  }
2262
2271
  }
2263
- const Ko = (t, e, r) => t.type === D.GAMES ? new qo(t, e, r) : new Go(t, e), zo = (t, e, r) => {
2272
+ const zo = (t, e, r) => t.type === D.GAMES ? new Qo(t, e, r) : new Ko(t, e), Ho = (t, e, r) => {
2264
2273
  t.features = /* @__PURE__ */ new Map(), t.sdk.featuresList = new Y(B(/* @__PURE__ */ new Set()), "features-list"), t.activeFeature = new Y(B(D.UNSET), "activeFeature"), t.sdk.getFeatures = () => t.features, t.sdk.getFeature = (n) => t.features.get(n), t.sdk.getActiveFeature = () => t.activeFeature.getStore(), t.sdk.openFeature = (n) => {
2265
2274
  t.activeFeature.setValue(n);
2266
2275
  }, t.sdk.closeFeature = (n = !1) => {
@@ -2271,8 +2280,8 @@ const Ko = (t, e, r) => t.type === D.GAMES ? new qo(t, e, r) : new Go(t, e), zo
2271
2280
  o && o.delete(i), t.sdk.featuresList.setValue(o);
2272
2281
  }
2273
2282
  }, t.initFeature = (n, i = ye.ORGANIZATION) => {
2274
- if (n.type in Qo && !t.features.has(n.type)) {
2275
- const o = Ko(n, i, t);
2283
+ if (n.type in Go && !t.features.has(n.type)) {
2284
+ const o = zo(n, i, t);
2276
2285
  t.features.set(n.type, o);
2277
2286
  let s = t.sdk.featuresList.getValue();
2278
2287
  s ? s.add(n.type) : s = /* @__PURE__ */ new Set([n.type]), t.sdk.featuresList.setValue(new Set(s));
@@ -2325,7 +2334,7 @@ const Ko = (t, e, r) => t.type === D.GAMES ? new qo(t, e, r) : new Go(t, e), zo
2325
2334
  t.store.subscribe(i);
2326
2335
  }, r();
2327
2336
  };
2328
- class Ho {
2337
+ class Wo {
2329
2338
  analytics;
2330
2339
  constructor(e) {
2331
2340
  this.analytics = e, this.analytics.onConnect(() => {
@@ -2344,7 +2353,7 @@ class Ho {
2344
2353
  this.analytics.write("invitation", {
2345
2354
  common: {
2346
2355
  ...this.analytics.commonStore.getValues(),
2347
- kind: q.INVITATION_ACCEPTED
2356
+ kind: x.INVITATION_ACCEPTED
2348
2357
  },
2349
2358
  category: Dr.GAMES,
2350
2359
  from: Rr.UNSET
@@ -2354,14 +2363,14 @@ class Ho {
2354
2363
  this.analytics.write("invitation", {
2355
2364
  common: {
2356
2365
  ...this.analytics.commonStore.getValues(),
2357
- kind: q.INVITATION_SENT
2366
+ kind: x.INVITATION_SENT
2358
2367
  },
2359
2368
  category: Dr.GAMES,
2360
2369
  from: e || Rr.UNSET
2361
2370
  });
2362
2371
  };
2363
2372
  }
2364
- class Wo {
2373
+ class Yo {
2365
2374
  analytics;
2366
2375
  constructor(e) {
2367
2376
  this.analytics = e, this.analytics.onConnect(() => {
@@ -2383,22 +2392,22 @@ class Wo {
2383
2392
  this.analytics.write("interactions", {
2384
2393
  common: {
2385
2394
  ...this.analytics.commonStore.getValues(),
2386
- kind: q.INTERACTIONS
2395
+ kind: x.INTERACTIONS
2387
2396
  },
2388
- actionType: xr.TAP
2397
+ actionType: qr.TAP
2389
2398
  });
2390
2399
  };
2391
2400
  scroll = () => {
2392
2401
  this.analytics.write("interactions", {
2393
2402
  common: {
2394
2403
  ...this.analytics.commonStore.getValues(),
2395
- kind: q.INTERACTIONS
2404
+ kind: x.INTERACTIONS
2396
2405
  },
2397
- actionType: xr.SCROLL
2406
+ actionType: qr.SCROLL
2398
2407
  });
2399
2408
  };
2400
2409
  }
2401
- const Yo = {
2410
+ const Jo = {
2402
2411
  [Te.UNSET]: we.UNSET,
2403
2412
  [Te.INGAME_IAB21]: we.PROMOTION_INGAME_IAB21,
2404
2413
  [Te.INGAME_IAB11_LBAR]: we.PROMOTION_INGAME_IAB11_LBAR,
@@ -2407,13 +2416,13 @@ const Yo = {
2407
2416
  [Te.INGAME_IAB61]: we.PROMOTION_INGAME_IAB61,
2408
2417
  [Te.EXTERNAL_AD]: we.PROMOTION_GAM
2409
2418
  };
2410
- class Jo {
2419
+ class Xo {
2411
2420
  analytics;
2412
2421
  constructor(e) {
2413
2422
  this.analytics = e, this.analytics.onConnect(() => {
2414
2423
  const r = (n) => {
2415
2424
  if (n.slEventBus?.type === "advertisement") {
2416
- const i = n.slEventBus.payload.advertisementType ? Yo[n.slEventBus.payload.advertisementType] : we.UNSET;
2425
+ const i = n.slEventBus.payload.advertisementType ? Jo[n.slEventBus.payload.advertisementType] : we.UNSET;
2417
2426
  switch (n.slEventBus.action) {
2418
2427
  case "videoPlay":
2419
2428
  this.videoPlay(n.slEventBus.payload, { topicSubType: i });
@@ -2440,7 +2449,7 @@ class Jo {
2440
2449
  this.analytics.write("games", {
2441
2450
  common: {
2442
2451
  ...this.analytics.commonStore.getValues(),
2443
- kind: q.POLLS_RECEIVED,
2452
+ kind: x.POLLS_RECEIVED,
2444
2453
  topicId: e,
2445
2454
  topicType: z.POLLS_PROMOTION,
2446
2455
  topicSubType: r
@@ -2452,7 +2461,7 @@ class Jo {
2452
2461
  this.analytics.write("games", {
2453
2462
  common: {
2454
2463
  ...this.analytics.commonStore.getValues(),
2455
- kind: q.POLLS_OPENED,
2464
+ kind: x.POLLS_OPENED,
2456
2465
  topicId: e,
2457
2466
  topicType: z.POLLS_PROMOTION,
2458
2467
  topicSubType: r
@@ -2465,7 +2474,7 @@ class Jo {
2465
2474
  common: {
2466
2475
  ...this.analytics.commonStore.getValues(),
2467
2476
  topicId: e,
2468
- kind: q.AD_VIDEO_PLAYED,
2477
+ kind: x.AD_VIDEO_PLAYED,
2469
2478
  topicSubType: r
2470
2479
  },
2471
2480
  pollOpenedFrom: ee.UNSET
@@ -2476,7 +2485,7 @@ class Jo {
2476
2485
  common: {
2477
2486
  ...this.analytics.commonStore.getValues(),
2478
2487
  topicId: e,
2479
- kind: q.AD_BUTTON_NAVIGATED,
2488
+ kind: x.AD_BUTTON_NAVIGATED,
2480
2489
  topicSubType: r
2481
2490
  },
2482
2491
  pollOpenedFrom: ee.UNSET
@@ -2487,7 +2496,7 @@ class Jo {
2487
2496
  common: {
2488
2497
  ...this.analytics.commonStore.getValues(),
2489
2498
  topicId: e,
2490
- kind: q.AD_BANNER_NAVIGATED,
2499
+ kind: x.AD_BANNER_NAVIGATED,
2491
2500
  topicSubType: r
2492
2501
  },
2493
2502
  pollOpenedFrom: ee.UNSET
@@ -2504,7 +2513,7 @@ const Ze = {
2504
2513
  [F.TWEET]: z.POLLS_TWITTER
2505
2514
  };
2506
2515
  F.UNSET + "", he.UNSET, F.FACTOID + "", he.POLLS, F.POLL + "", he.POLLS, F.PREDICTION + "", he.POLLS, F.PROMOTION + "", he.POLLS, F.TRIVIA + "", he.POLLS, F.TWEET + "", he.POLLS;
2507
- const Xo = {
2516
+ const Zo = {
2508
2517
  [D.UNSET]: G.UNSET,
2509
2518
  [D.INPLAY]: G.INPLAY,
2510
2519
  [D.MESSAGING]: G.MESSAGING,
@@ -2524,7 +2533,7 @@ const Xo = {
2524
2533
  [D.HIGHLIGHTS]: G.HIGHLIGHTS,
2525
2534
  [D.PUBLIC_CHAT]: G.PUBLIC_CHAT
2526
2535
  };
2527
- class Zo {
2536
+ class es {
2528
2537
  analytics;
2529
2538
  constructor(e) {
2530
2539
  this.analytics = e, this.analytics.onConnect(() => {
@@ -2546,28 +2555,28 @@ class Zo {
2546
2555
  this.analytics.write("notification", {
2547
2556
  common: {
2548
2557
  ...this.analytics.commonStore.getValues(),
2549
- kind: q.NOTIFICATION_RECEIVED,
2558
+ kind: x.NOTIFICATION_RECEIVED,
2550
2559
  topicId: e,
2551
2560
  topicType: r ? Ze[r] : z.UNSET
2552
2561
  },
2553
2562
  notificationKind: he.POLLS,
2554
- notificationType: qr.IN_APP
2563
+ notificationType: xr.IN_APP
2555
2564
  });
2556
2565
  };
2557
2566
  opened = ({ questionId: e, questionType: r }) => {
2558
2567
  this.analytics.write("notification", {
2559
2568
  common: {
2560
2569
  ...this.analytics.commonStore.getValues(),
2561
- kind: q.NOTIFICATION_OPENED,
2570
+ kind: x.NOTIFICATION_OPENED,
2562
2571
  topicId: e,
2563
2572
  topicType: r ? Ze[r] : z.UNSET
2564
2573
  },
2565
2574
  notificationKind: he.POLLS,
2566
- notificationType: qr.IN_APP
2575
+ notificationType: xr.IN_APP
2567
2576
  });
2568
2577
  };
2569
2578
  }
2570
- class es {
2579
+ class ts {
2571
2580
  analytics;
2572
2581
  constructor(e) {
2573
2582
  this.analytics = e, this.analytics.onConnect(() => {
@@ -2599,7 +2608,7 @@ class es {
2599
2608
  this.analytics.write("games", {
2600
2609
  common: {
2601
2610
  ...this.analytics.commonStore.getValues(),
2602
- kind: q.POLLS_RECEIVED,
2611
+ kind: x.POLLS_RECEIVED,
2603
2612
  topicId: e,
2604
2613
  topicType: r ? Ze[r] : z.UNSET
2605
2614
  },
@@ -2611,7 +2620,7 @@ class es {
2611
2620
  this.analytics.write("games", {
2612
2621
  common: {
2613
2622
  ...this.analytics.commonStore.getValues(),
2614
- kind: q.POLLS_OPENED,
2623
+ kind: x.POLLS_OPENED,
2615
2624
  topicId: e,
2616
2625
  topicType: r ? Ze[r] : z.UNSET
2617
2626
  },
@@ -2623,7 +2632,7 @@ class es {
2623
2632
  this.analytics.write("games", {
2624
2633
  common: {
2625
2634
  ...this.analytics.commonStore.getValues(),
2626
- kind: q.POLLS_VOTE,
2635
+ kind: x.POLLS_VOTE,
2627
2636
  topicId: e,
2628
2637
  topicType: r ? Ze[r] : z.UNSET
2629
2638
  },
@@ -2635,7 +2644,7 @@ class es {
2635
2644
  this.analytics.write("games", {
2636
2645
  common: {
2637
2646
  ...this.analytics.commonStore.getValues(),
2638
- kind: q.GAMES_JOINED
2647
+ kind: x.GAMES_JOINED
2639
2648
  },
2640
2649
  pollOpenedFrom: ee.UNSET
2641
2650
  });
@@ -2645,15 +2654,15 @@ class es {
2645
2654
  this.analytics.write("games", {
2646
2655
  common: {
2647
2656
  ...this.analytics.commonStore.getValues(),
2648
- kind: q.POLLS_NAVIGATED
2657
+ kind: x.POLLS_NAVIGATED
2649
2658
  },
2650
2659
  pollOpenedFrom: ee.UNSET
2651
2660
  });
2652
2661
  };
2653
2662
  }
2654
- const ts = ({ transport: t, $commonStore: e }) => {
2663
+ const rs = ({ transport: t, $commonStore: e }) => {
2655
2664
  let r;
2656
- const n = B(!1), i = 5e3, { client: o, queryKey: s } = t.createPromiseClient(An, {
2665
+ const n = B(!1), i = 5e3, { client: o, queryKey: s } = t.createPromiseClient(En, {
2657
2666
  method: "send",
2658
2667
  params: [n]
2659
2668
  }), a = t.nanoquery.createFetcherStore(s, {
@@ -2666,7 +2675,7 @@ const ts = ({ transport: t, $commonStore: e }) => {
2666
2675
  value: {
2667
2676
  common: {
2668
2677
  ...l,
2669
- kind: q.SESSION_HEARTBEAT
2678
+ kind: x.SESSION_HEARTBEAT
2670
2679
  }
2671
2680
  }
2672
2681
  }
@@ -2689,7 +2698,7 @@ const ts = ({ transport: t, $commonStore: e }) => {
2689
2698
  me.debug("unmounted heartbeat"), a.off(), r?.(), r = void 0, c();
2690
2699
  } };
2691
2700
  }, me = le("analytics");
2692
- class rs {
2701
+ class ns {
2693
2702
  commonStore;
2694
2703
  notifications;
2695
2704
  polls;
@@ -2702,8 +2711,8 @@ class rs {
2702
2711
  listenersCancels;
2703
2712
  connected = !1;
2704
2713
  constructor(e) {
2705
- this.listeners = /* @__PURE__ */ new Set(), this.listenersCancels = /* @__PURE__ */ new Set(), this.commonStore = new Le(te({}), "common-analytics"), this.connectToSDK(e), this.heartbeat = ts({ transport: e.analyticsTransport, $commonStore: this.commonStore }), this.notifications = new Zo(this), this.polls = new es(this), this.invitation = new Ho(this), this.interactions = new Wo(this), this.advertisement = new Jo(this);
2706
- const { client: r } = e.analyticsTransport.createPromiseClient(An, {
2714
+ this.listeners = /* @__PURE__ */ new Set(), this.listenersCancels = /* @__PURE__ */ new Set(), this.commonStore = new Le(te({}), "common-analytics"), this.connectToSDK(e), this.heartbeat = rs({ transport: e.analyticsTransport, $commonStore: this.commonStore }), this.notifications = new es(this), this.polls = new ts(this), this.invitation = new Wo(this), this.interactions = new Yo(this), this.advertisement = new Xo(this);
2715
+ const { client: r } = e.analyticsTransport.createPromiseClient(En, {
2707
2716
  method: "send"
2708
2717
  });
2709
2718
  this.analyticsClient = r;
@@ -2732,7 +2741,7 @@ class rs {
2732
2741
  this.onConnect(() => e.stores.slStreamId.getAtomStore().subscribe((r) => {
2733
2742
  this.writeCommon("eventId", r);
2734
2743
  })), this.onConnect(() => e.sdk.getActiveFeature().subscribe((r) => {
2735
- r && this.writeCommon("category", Xo[r]), r !== D.UNSET ? this.writeCommon("overlaySessionId", nr()) : this.writeCommon("overlaySessionId", "");
2744
+ r && this.writeCommon("category", Zo[r]), r !== D.UNSET ? this.writeCommon("overlaySessionId", nr()) : this.writeCommon("overlaySessionId", "");
2736
2745
  })), this.onConnect(() => {
2737
2746
  const r = window.matchMedia("(orientation: portrait)"), n = (i) => {
2738
2747
  this.writeCommon("screenOrientation", i.matches ? Br.PORTRAIT : Br.LANDSCAPE);
@@ -2745,17 +2754,17 @@ class rs {
2745
2754
  }));
2746
2755
  };
2747
2756
  }
2748
- const ns = (t, e, r) => {
2749
- t.analytics = new rs(t), t.sdk.onMount({ name: "analytics" }, () => (t.analytics.connect(), () => {
2757
+ const is = (t, e, r) => {
2758
+ t.analytics = new ns(t), t.sdk.onMount({ name: "analytics" }, () => (t.analytics.connect(), () => {
2750
2759
  t.analytics.disconnect();
2751
2760
  })), r();
2752
2761
  };
2753
2762
  var br = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2754
- function is(t) {
2763
+ function os(t) {
2755
2764
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
2756
2765
  }
2757
2766
  var Sr = { exports: {} }, wr = { exports: {} };
2758
- function os(t) {
2767
+ function ss(t) {
2759
2768
  var e = new t(), r = e;
2760
2769
  function n() {
2761
2770
  var o = e;
@@ -2769,11 +2778,11 @@ function os(t) {
2769
2778
  release: i
2770
2779
  };
2771
2780
  }
2772
- var ss = os, as = ss;
2773
- function Dn(t, e, r) {
2781
+ var as = ss, us = as;
2782
+ function Rn(t, e, r) {
2774
2783
  if (typeof t == "function" && (r = e, e = t, t = null), !(r >= 1))
2775
2784
  throw new Error("fastqueue concurrency must be equal to or greater than 1");
2776
- var n = as(us), i = null, o = null, s = 0, a = null, u = {
2785
+ var n = us(cs), i = null, o = null, s = 0, a = null, u = {
2777
2786
  push: w,
2778
2787
  drain: W,
2779
2788
  saturated: W,
@@ -2855,7 +2864,7 @@ function Dn(t, e, r) {
2855
2864
  }
2856
2865
  function W() {
2857
2866
  }
2858
- function us() {
2867
+ function cs() {
2859
2868
  this.value = null, this.callback = W, this.next = null, this.release = W, this.context = null, this.errorHandler = null;
2860
2869
  var t = this;
2861
2870
  this.worked = function(r, n) {
@@ -2863,14 +2872,14 @@ function us() {
2863
2872
  t.value = null, t.callback = W, t.errorHandler && o(r, s), i.call(t.context, r, n), t.release(t);
2864
2873
  };
2865
2874
  }
2866
- function cs(t, e, r) {
2875
+ function ls(t, e, r) {
2867
2876
  typeof t == "function" && (r = e, e = t, t = null);
2868
2877
  function n(c, h) {
2869
2878
  e.call(this, c).then(function(l) {
2870
2879
  h(null, l);
2871
2880
  }, h);
2872
2881
  }
2873
- var i = Dn(t, n, r), o = i.push, s = i.unshift;
2882
+ var i = Rn(t, n, r), o = i.push, s = i.unshift;
2874
2883
  return i.push = a, i.unshift = u, i.drained = f, i;
2875
2884
  function a(c) {
2876
2885
  var h = new Promise(function(l, g) {
@@ -2909,9 +2918,9 @@ function cs(t, e, r) {
2909
2918
  return h;
2910
2919
  }
2911
2920
  }
2912
- wr.exports = Dn;
2913
- wr.exports.promise = cs;
2914
- var Rn = wr.exports, Ar = { exports: {} }, Qe = typeof Reflect == "object" ? Reflect : null, Jr = Qe && typeof Qe.apply == "function" ? Qe.apply : function(e, r, n) {
2921
+ wr.exports = Rn;
2922
+ wr.exports.promise = ls;
2923
+ var Vn = wr.exports, Ar = { exports: {} }, Qe = typeof Reflect == "object" ? Reflect : null, Jr = Qe && typeof Qe.apply == "function" ? Qe.apply : function(e, r, n) {
2915
2924
  return Function.prototype.apply.call(e, r, n);
2916
2925
  }, pt;
2917
2926
  Qe && typeof Qe.ownKeys == "function" ? pt = Qe.ownKeys : Object.getOwnPropertySymbols ? pt = function(e) {
@@ -2919,17 +2928,17 @@ Qe && typeof Qe.ownKeys == "function" ? pt = Qe.ownKeys : Object.getOwnPropertyS
2919
2928
  } : pt = function(e) {
2920
2929
  return Object.getOwnPropertyNames(e);
2921
2930
  };
2922
- function ls(t) {
2931
+ function ds(t) {
2923
2932
  console && console.warn && console.warn(t);
2924
2933
  }
2925
- var Vn = Number.isNaN || function(e) {
2934
+ var $n = Number.isNaN || function(e) {
2926
2935
  return e !== e;
2927
2936
  };
2928
2937
  function P() {
2929
2938
  P.init.call(this);
2930
2939
  }
2931
2940
  Ar.exports = P;
2932
- Ar.exports.once = ps;
2941
+ Ar.exports.once = ys;
2933
2942
  P.EventEmitter = P;
2934
2943
  P.prototype._events = void 0;
2935
2944
  P.prototype._eventsCount = 0;
@@ -2945,7 +2954,7 @@ Object.defineProperty(P, "defaultMaxListeners", {
2945
2954
  return Xr;
2946
2955
  },
2947
2956
  set: function(t) {
2948
- if (typeof t != "number" || t < 0 || Vn(t))
2957
+ if (typeof t != "number" || t < 0 || $n(t))
2949
2958
  throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + t + ".");
2950
2959
  Xr = t;
2951
2960
  }
@@ -2954,15 +2963,15 @@ P.init = function() {
2954
2963
  (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
2955
2964
  };
2956
2965
  P.prototype.setMaxListeners = function(e) {
2957
- if (typeof e != "number" || e < 0 || Vn(e))
2966
+ if (typeof e != "number" || e < 0 || $n(e))
2958
2967
  throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + e + ".");
2959
2968
  return this._maxListeners = e, this;
2960
2969
  };
2961
- function $n(t) {
2970
+ function Mn(t) {
2962
2971
  return t._maxListeners === void 0 ? P.defaultMaxListeners : t._maxListeners;
2963
2972
  }
2964
2973
  P.prototype.getMaxListeners = function() {
2965
- return $n(this);
2974
+ return Mn(this);
2966
2975
  };
2967
2976
  P.prototype.emit = function(e) {
2968
2977
  for (var r = [], n = 1; n < arguments.length; n++) r.push(arguments[n]);
@@ -2988,7 +2997,7 @@ P.prototype.emit = function(e) {
2988
2997
  Jr(c[n], this, r);
2989
2998
  return !0;
2990
2999
  };
2991
- function Mn(t, e, r, n) {
3000
+ function jn(t, e, r, n) {
2992
3001
  var i, o, s;
2993
3002
  if (Nt(r), o = t._events, o === void 0 ? (o = t._events = /* @__PURE__ */ Object.create(null), t._eventsCount = 0) : (o.newListener !== void 0 && (t.emit(
2994
3003
  "newListener",
@@ -2996,33 +3005,33 @@ function Mn(t, e, r, n) {
2996
3005
  r.listener ? r.listener : r
2997
3006
  ), o = t._events), s = o[e]), s === void 0)
2998
3007
  s = o[e] = r, ++t._eventsCount;
2999
- else if (typeof s == "function" ? s = o[e] = n ? [r, s] : [s, r] : n ? s.unshift(r) : s.push(r), i = $n(t), i > 0 && s.length > i && !s.warned) {
3008
+ else if (typeof s == "function" ? s = o[e] = n ? [r, s] : [s, r] : n ? s.unshift(r) : s.push(r), i = Mn(t), i > 0 && s.length > i && !s.warned) {
3000
3009
  s.warned = !0;
3001
3010
  var a = new Error("Possible EventEmitter memory leak detected. " + s.length + " " + String(e) + " listeners added. Use emitter.setMaxListeners() to increase limit");
3002
- a.name = "MaxListenersExceededWarning", a.emitter = t, a.type = e, a.count = s.length, ls(a);
3011
+ a.name = "MaxListenersExceededWarning", a.emitter = t, a.type = e, a.count = s.length, ds(a);
3003
3012
  }
3004
3013
  return t;
3005
3014
  }
3006
3015
  P.prototype.addListener = function(e, r) {
3007
- return Mn(this, e, r, !1);
3016
+ return jn(this, e, r, !1);
3008
3017
  };
3009
3018
  P.prototype.on = P.prototype.addListener;
3010
3019
  P.prototype.prependListener = function(e, r) {
3011
- return Mn(this, e, r, !0);
3020
+ return jn(this, e, r, !0);
3012
3021
  };
3013
- function ds() {
3022
+ function fs() {
3014
3023
  if (!this.fired)
3015
3024
  return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
3016
3025
  }
3017
- function jn(t, e, r) {
3018
- var n = { fired: !1, wrapFn: void 0, target: t, type: e, listener: r }, i = ds.bind(n);
3026
+ function Un(t, e, r) {
3027
+ var n = { fired: !1, wrapFn: void 0, target: t, type: e, listener: r }, i = fs.bind(n);
3019
3028
  return i.listener = r, n.wrapFn = i, i;
3020
3029
  }
3021
3030
  P.prototype.once = function(e, r) {
3022
- return Nt(r), this.on(e, jn(this, e, r)), this;
3031
+ return Nt(r), this.on(e, Un(this, e, r)), this;
3023
3032
  };
3024
3033
  P.prototype.prependOnceListener = function(e, r) {
3025
- return Nt(r), this.prependListener(e, jn(this, e, r)), this;
3034
+ return Nt(r), this.prependListener(e, Un(this, e, r)), this;
3026
3035
  };
3027
3036
  P.prototype.removeListener = function(e, r) {
3028
3037
  var n, i, o, s, a;
@@ -3040,7 +3049,7 @@ P.prototype.removeListener = function(e, r) {
3040
3049
  }
3041
3050
  if (o < 0)
3042
3051
  return this;
3043
- o === 0 ? n.shift() : fs(n, o), n.length === 1 && (i[e] = n[0]), i.removeListener !== void 0 && this.emit("removeListener", e, a || r);
3052
+ o === 0 ? n.shift() : hs(n, o), n.length === 1 && (i[e] = n[0]), i.removeListener !== void 0 && this.emit("removeListener", e, a || r);
3044
3053
  }
3045
3054
  return this;
3046
3055
  };
@@ -3064,24 +3073,24 @@ P.prototype.removeAllListeners = function(e) {
3064
3073
  this.removeListener(e, r[i]);
3065
3074
  return this;
3066
3075
  };
3067
- function Un(t, e, r) {
3076
+ function Bn(t, e, r) {
3068
3077
  var n = t._events;
3069
3078
  if (n === void 0)
3070
3079
  return [];
3071
3080
  var i = n[e];
3072
- return i === void 0 ? [] : typeof i == "function" ? r ? [i.listener || i] : [i] : r ? hs(i) : xn(i, i.length);
3081
+ return i === void 0 ? [] : typeof i == "function" ? r ? [i.listener || i] : [i] : r ? ps(i) : xn(i, i.length);
3073
3082
  }
3074
3083
  P.prototype.listeners = function(e) {
3075
- return Un(this, e, !0);
3084
+ return Bn(this, e, !0);
3076
3085
  };
3077
3086
  P.prototype.rawListeners = function(e) {
3078
- return Un(this, e, !1);
3087
+ return Bn(this, e, !1);
3079
3088
  };
3080
3089
  P.listenerCount = function(t, e) {
3081
- return typeof t.listenerCount == "function" ? t.listenerCount(e) : Bn.call(t, e);
3090
+ return typeof t.listenerCount == "function" ? t.listenerCount(e) : qn.call(t, e);
3082
3091
  };
3083
- P.prototype.listenerCount = Bn;
3084
- function Bn(t) {
3092
+ P.prototype.listenerCount = qn;
3093
+ function qn(t) {
3085
3094
  var e = this._events;
3086
3095
  if (e !== void 0) {
3087
3096
  var r = e[t];
@@ -3100,17 +3109,17 @@ function xn(t, e) {
3100
3109
  r[n] = t[n];
3101
3110
  return r;
3102
3111
  }
3103
- function fs(t, e) {
3112
+ function hs(t, e) {
3104
3113
  for (; e + 1 < t.length; e++)
3105
3114
  t[e] = t[e + 1];
3106
3115
  t.pop();
3107
3116
  }
3108
- function hs(t) {
3117
+ function ps(t) {
3109
3118
  for (var e = new Array(t.length), r = 0; r < e.length; ++r)
3110
3119
  e[r] = t[r].listener || t[r];
3111
3120
  return e;
3112
3121
  }
3113
- function ps(t, e) {
3122
+ function ys(t, e) {
3114
3123
  return new Promise(function(r, n) {
3115
3124
  function i(s) {
3116
3125
  t.removeListener(e, o), n(s);
@@ -3118,13 +3127,13 @@ function ps(t, e) {
3118
3127
  function o() {
3119
3128
  typeof t.removeListener == "function" && t.removeListener("error", i), r([].slice.call(arguments));
3120
3129
  }
3121
- qn(t, e, o, { once: !0 }), e !== "error" && ys(t, i, { once: !0 });
3130
+ Qn(t, e, o, { once: !0 }), e !== "error" && gs(t, i, { once: !0 });
3122
3131
  });
3123
3132
  }
3124
- function ys(t, e, r) {
3125
- typeof t.on == "function" && qn(t, "error", e, r);
3133
+ function gs(t, e, r) {
3134
+ typeof t.on == "function" && Qn(t, "error", e, r);
3126
3135
  }
3127
- function qn(t, e, r, n) {
3136
+ function Qn(t, e, r, n) {
3128
3137
  if (typeof t.on == "function")
3129
3138
  n.once ? t.once(e, r) : t.on(e, r);
3130
3139
  else if (typeof t.addEventListener == "function")
@@ -3134,7 +3143,7 @@ function qn(t, e, r, n) {
3134
3143
  else
3135
3144
  throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof t);
3136
3145
  }
3137
- var Qn = Ar.exports, Ft = {}, Gn = {}, Kn = function() {
3146
+ var Gn = Ar.exports, Ft = {}, Kn = {}, zn = function() {
3138
3147
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
3139
3148
  return !1;
3140
3149
  if (typeof Symbol.iterator == "symbol")
@@ -3157,34 +3166,34 @@ var Qn = Ar.exports, Ft = {}, Gn = {}, Kn = function() {
3157
3166
  return !1;
3158
3167
  }
3159
3168
  return !0;
3160
- }, gs = Kn, Dt = function() {
3161
- return gs() && !!Symbol.toStringTag;
3162
- }, ms = Error, vs = EvalError, bs = RangeError, Ss = ReferenceError, zn = SyntaxError, Rt = TypeError, ws = URIError, Zr = typeof Symbol < "u" && Symbol, As = Kn, Es = function() {
3163
- return typeof Zr != "function" || typeof Symbol != "function" || typeof Zr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : As();
3169
+ }, ms = zn, Dt = function() {
3170
+ return ms() && !!Symbol.toStringTag;
3171
+ }, vs = Error, bs = EvalError, Ss = RangeError, ws = ReferenceError, Hn = SyntaxError, Rt = TypeError, As = URIError, Zr = typeof Symbol < "u" && Symbol, Es = zn, Is = function() {
3172
+ return typeof Zr != "function" || typeof Symbol != "function" || typeof Zr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Es();
3164
3173
  }, Ut = {
3165
3174
  __proto__: null,
3166
3175
  foo: {}
3167
- }, Is = Object, Ts = function() {
3168
- return { __proto__: Ut }.foo === Ut.foo && !(Ut instanceof Is);
3169
- }, Os = "Function.prototype.bind called on incompatible ", _s = Object.prototype.toString, Ls = Math.max, Cs = "[object Function]", en = function(e, r) {
3176
+ }, Ts = Object, Os = function() {
3177
+ return { __proto__: Ut }.foo === Ut.foo && !(Ut instanceof Ts);
3178
+ }, _s = "Function.prototype.bind called on incompatible ", Ls = Object.prototype.toString, Cs = Math.max, ks = "[object Function]", en = function(e, r) {
3170
3179
  for (var n = [], i = 0; i < e.length; i += 1)
3171
3180
  n[i] = e[i];
3172
3181
  for (var o = 0; o < r.length; o += 1)
3173
3182
  n[o + e.length] = r[o];
3174
3183
  return n;
3175
- }, ks = function(e, r) {
3184
+ }, Ps = function(e, r) {
3176
3185
  for (var n = [], i = r, o = 0; i < e.length; i += 1, o += 1)
3177
3186
  n[o] = e[i];
3178
3187
  return n;
3179
- }, Ps = function(t, e) {
3188
+ }, Ns = function(t, e) {
3180
3189
  for (var r = "", n = 0; n < t.length; n += 1)
3181
3190
  r += t[n], n + 1 < t.length && (r += e);
3182
3191
  return r;
3183
- }, Ns = function(e) {
3192
+ }, Fs = function(e) {
3184
3193
  var r = this;
3185
- if (typeof r != "function" || _s.apply(r) !== Cs)
3186
- throw new TypeError(Os + r);
3187
- for (var n = ks(arguments, 1), i, o = function() {
3194
+ if (typeof r != "function" || Ls.apply(r) !== ks)
3195
+ throw new TypeError(_s + r);
3196
+ for (var n = Ps(arguments, 1), i, o = function() {
3188
3197
  if (this instanceof i) {
3189
3198
  var c = r.apply(
3190
3199
  this,
@@ -3196,17 +3205,17 @@ var Qn = Ar.exports, Ft = {}, Gn = {}, Kn = function() {
3196
3205
  e,
3197
3206
  en(n, arguments)
3198
3207
  );
3199
- }, s = Ls(0, r.length - n.length), a = [], u = 0; u < s; u++)
3208
+ }, s = Cs(0, r.length - n.length), a = [], u = 0; u < s; u++)
3200
3209
  a[u] = "$" + u;
3201
- if (i = Function("binder", "return function (" + Ps(a, ",") + "){ return binder.apply(this,arguments); }")(o), r.prototype) {
3210
+ if (i = Function("binder", "return function (" + Ns(a, ",") + "){ return binder.apply(this,arguments); }")(o), r.prototype) {
3202
3211
  var f = function() {
3203
3212
  };
3204
3213
  f.prototype = r.prototype, i.prototype = new f(), f.prototype = null;
3205
3214
  }
3206
3215
  return i;
3207
- }, Fs = Ns, Er = Function.prototype.bind || Fs, Ds = Function.prototype.call, Rs = Object.prototype.hasOwnProperty, Vs = Er, $s = Vs.call(Ds, Rs), I, Ms = ms, js = vs, Us = bs, Bs = Ss, Ke = zn, Ge = Rt, xs = ws, Hn = Function, Bt = function(t) {
3216
+ }, Ds = Fs, Er = Function.prototype.bind || Ds, Rs = Function.prototype.call, Vs = Object.prototype.hasOwnProperty, $s = Er, Ms = $s.call(Rs, Vs), I, js = vs, Us = bs, Bs = Ss, qs = ws, Ke = Hn, Ge = Rt, xs = As, Wn = Function, Bt = function(t) {
3208
3217
  try {
3209
- return Hn('"use strict"; return (' + t + ").constructor;")();
3218
+ return Wn('"use strict"; return (' + t + ").constructor;")();
3210
3219
  } catch {
3211
3220
  }
3212
3221
  }, ke = Object.getOwnPropertyDescriptor;
@@ -3216,21 +3225,21 @@ if (ke)
3216
3225
  } catch {
3217
3226
  ke = null;
3218
3227
  }
3219
- var xt = function() {
3228
+ var qt = function() {
3220
3229
  throw new Ge();
3221
- }, qs = ke ? function() {
3230
+ }, Qs = ke ? function() {
3222
3231
  try {
3223
- return arguments.callee, xt;
3232
+ return arguments.callee, qt;
3224
3233
  } catch {
3225
3234
  try {
3226
3235
  return ke(arguments, "callee").get;
3227
3236
  } catch {
3228
- return xt;
3237
+ return qt;
3229
3238
  }
3230
3239
  }
3231
- }() : xt, $e = Es(), Qs = Ts(), M = Object.getPrototypeOf || (Qs ? function(t) {
3240
+ }() : qt, $e = Is(), Gs = Os(), M = Object.getPrototypeOf || (Gs ? function(t) {
3232
3241
  return t.__proto__;
3233
- } : null), je = {}, Gs = typeof Uint8Array > "u" || !M ? I : M(Uint8Array), Pe = {
3242
+ } : null), je = {}, Ks = typeof Uint8Array > "u" || !M ? I : M(Uint8Array), Pe = {
3234
3243
  __proto__: null,
3235
3244
  "%AggregateError%": typeof AggregateError > "u" ? I : AggregateError,
3236
3245
  "%Array%": Array,
@@ -3252,14 +3261,14 @@ var xt = function() {
3252
3261
  "%decodeURIComponent%": decodeURIComponent,
3253
3262
  "%encodeURI%": encodeURI,
3254
3263
  "%encodeURIComponent%": encodeURIComponent,
3255
- "%Error%": Ms,
3264
+ "%Error%": js,
3256
3265
  "%eval%": eval,
3257
3266
  // eslint-disable-line no-eval
3258
- "%EvalError%": js,
3267
+ "%EvalError%": Us,
3259
3268
  "%Float32Array%": typeof Float32Array > "u" ? I : Float32Array,
3260
3269
  "%Float64Array%": typeof Float64Array > "u" ? I : Float64Array,
3261
3270
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? I : FinalizationRegistry,
3262
- "%Function%": Hn,
3271
+ "%Function%": Wn,
3263
3272
  "%GeneratorFunction%": je,
3264
3273
  "%Int8Array%": typeof Int8Array > "u" ? I : Int8Array,
3265
3274
  "%Int16Array%": typeof Int16Array > "u" ? I : Int16Array,
@@ -3277,8 +3286,8 @@ var xt = function() {
3277
3286
  "%parseInt%": parseInt,
3278
3287
  "%Promise%": typeof Promise > "u" ? I : Promise,
3279
3288
  "%Proxy%": typeof Proxy > "u" ? I : Proxy,
3280
- "%RangeError%": Us,
3281
- "%ReferenceError%": Bs,
3289
+ "%RangeError%": Bs,
3290
+ "%ReferenceError%": qs,
3282
3291
  "%Reflect%": typeof Reflect > "u" ? I : Reflect,
3283
3292
  "%RegExp%": RegExp,
3284
3293
  "%Set%": typeof Set > "u" ? I : Set,
@@ -3288,8 +3297,8 @@ var xt = function() {
3288
3297
  "%StringIteratorPrototype%": $e && M ? M(""[Symbol.iterator]()) : I,
3289
3298
  "%Symbol%": $e ? Symbol : I,
3290
3299
  "%SyntaxError%": Ke,
3291
- "%ThrowTypeError%": qs,
3292
- "%TypedArray%": Gs,
3300
+ "%ThrowTypeError%": Qs,
3301
+ "%TypedArray%": Ks,
3293
3302
  "%TypeError%": Ge,
3294
3303
  "%Uint8Array%": typeof Uint8Array > "u" ? I : Uint8Array,
3295
3304
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? I : Uint8ClampedArray,
@@ -3304,10 +3313,10 @@ if (M)
3304
3313
  try {
3305
3314
  null.error;
3306
3315
  } catch (t) {
3307
- var Ks = M(M(t));
3308
- Pe["%Error.prototype%"] = Ks;
3316
+ var zs = M(M(t));
3317
+ Pe["%Error.prototype%"] = zs;
3309
3318
  }
3310
- var zs = function t(e) {
3319
+ var Hs = function t(e) {
3311
3320
  var r;
3312
3321
  if (e === "%AsyncFunction%")
3313
3322
  r = Bt("async function () {}");
@@ -3376,21 +3385,21 @@ var zs = function t(e) {
3376
3385
  "%URIErrorPrototype%": ["URIError", "prototype"],
3377
3386
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
3378
3387
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
3379
- }, ot = Er, At = $s, Hs = ot.call(Function.call, Array.prototype.concat), Ws = ot.call(Function.apply, Array.prototype.splice), rn = ot.call(Function.call, String.prototype.replace), Et = ot.call(Function.call, String.prototype.slice), Ys = ot.call(Function.call, RegExp.prototype.exec), Js = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Xs = /\\(\\)?/g, Zs = function(e) {
3388
+ }, ot = Er, At = Ms, Ws = ot.call(Function.call, Array.prototype.concat), Ys = ot.call(Function.apply, Array.prototype.splice), rn = ot.call(Function.call, String.prototype.replace), Et = ot.call(Function.call, String.prototype.slice), Js = ot.call(Function.call, RegExp.prototype.exec), Xs = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Zs = /\\(\\)?/g, ea = function(e) {
3380
3389
  var r = Et(e, 0, 1), n = Et(e, -1);
3381
3390
  if (r === "%" && n !== "%")
3382
3391
  throw new Ke("invalid intrinsic syntax, expected closing `%`");
3383
3392
  if (n === "%" && r !== "%")
3384
3393
  throw new Ke("invalid intrinsic syntax, expected opening `%`");
3385
3394
  var i = [];
3386
- return rn(e, Js, function(o, s, a, u) {
3387
- i[i.length] = a ? rn(u, Xs, "$1") : s || o;
3395
+ return rn(e, Xs, function(o, s, a, u) {
3396
+ i[i.length] = a ? rn(u, Zs, "$1") : s || o;
3388
3397
  }), i;
3389
- }, ea = function(e, r) {
3398
+ }, ta = function(e, r) {
3390
3399
  var n = e, i;
3391
3400
  if (At(tn, n) && (i = tn[n], n = "%" + i[0] + "%"), At(Pe, n)) {
3392
3401
  var o = Pe[n];
3393
- if (o === je && (o = zs(n)), typeof o > "u" && !r)
3402
+ if (o === je && (o = Hs(n)), typeof o > "u" && !r)
3394
3403
  throw new Ge("intrinsic " + e + " exists, but is not available. Please file an issue!");
3395
3404
  return {
3396
3405
  alias: i,
@@ -3404,10 +3413,10 @@ var zs = function t(e) {
3404
3413
  throw new Ge("intrinsic name must be a non-empty string");
3405
3414
  if (arguments.length > 1 && typeof r != "boolean")
3406
3415
  throw new Ge('"allowMissing" argument must be a boolean');
3407
- if (Ys(/^%?[^%]*%?$/, e) === null)
3416
+ if (Js(/^%?[^%]*%?$/, e) === null)
3408
3417
  throw new Ke("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
3409
- var n = Zs(e), i = n.length > 0 ? n[0] : "", o = ea("%" + i + "%", r), s = o.name, a = o.value, u = !1, f = o.alias;
3410
- f && (i = f[0], Ws(n, Hs([0, 1], f)));
3418
+ var n = ea(e), i = n.length > 0 ? n[0] : "", o = ta("%" + i + "%", r), s = o.name, a = o.value, u = !1, f = o.alias;
3419
+ f && (i = f[0], Ys(n, Ws([0, 1], f)));
3411
3420
  for (var c = 1, h = !0; c < n.length; c += 1) {
3412
3421
  var l = n[c], g = Et(l, 0, 1), v = Et(l, -1);
3413
3422
  if ((g === '"' || g === "'" || g === "`" || v === '"' || v === "'" || v === "`") && g !== v)
@@ -3429,9 +3438,9 @@ var zs = function t(e) {
3429
3438
  }
3430
3439
  }
3431
3440
  return a;
3432
- }, Wn = { exports: {} }, qt, nn;
3441
+ }, Yn = { exports: {} }, xt, nn;
3433
3442
  function Ir() {
3434
- if (nn) return qt;
3443
+ if (nn) return xt;
3435
3444
  nn = 1;
3436
3445
  var t = st, e = t("%Object.defineProperty%", !0) || !1;
3437
3446
  if (e)
@@ -3440,16 +3449,16 @@ function Ir() {
3440
3449
  } catch {
3441
3450
  e = !1;
3442
3451
  }
3443
- return qt = e, qt;
3452
+ return xt = e, xt;
3444
3453
  }
3445
- var ta = st, yt = ta("%Object.getOwnPropertyDescriptor%", !0);
3454
+ var ra = st, yt = ra("%Object.getOwnPropertyDescriptor%", !0);
3446
3455
  if (yt)
3447
3456
  try {
3448
3457
  yt([], "length");
3449
3458
  } catch {
3450
3459
  yt = null;
3451
3460
  }
3452
- var Vt = yt, on = Ir(), ra = zn, Me = Rt, sn = Vt, na = function(e, r, n) {
3461
+ var Vt = yt, on = Ir(), na = Hn, Me = Rt, sn = Vt, ia = function(e, r, n) {
3453
3462
  if (!e || typeof e != "object" && typeof e != "function")
3454
3463
  throw new Me("`obj` must be an object or a function`");
3455
3464
  if (typeof r != "string" && typeof r != "symbol")
@@ -3473,11 +3482,11 @@ var Vt = yt, on = Ir(), ra = zn, Me = Rt, sn = Vt, na = function(e, r, n) {
3473
3482
  else if (a || !i && !o && !s)
3474
3483
  e[r] = n;
3475
3484
  else
3476
- throw new ra("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
3477
- }, ur = Ir(), Yn = function() {
3485
+ throw new na("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
3486
+ }, ur = Ir(), Jn = function() {
3478
3487
  return !!ur;
3479
3488
  };
3480
- Yn.hasArrayLengthDefineBug = function() {
3489
+ Jn.hasArrayLengthDefineBug = function() {
3481
3490
  if (!ur)
3482
3491
  return null;
3483
3492
  try {
@@ -3486,17 +3495,17 @@ Yn.hasArrayLengthDefineBug = function() {
3486
3495
  return !0;
3487
3496
  }
3488
3497
  };
3489
- var ia = Yn, oa = st, an = na, sa = ia(), un = Vt, cn = Rt, aa = oa("%Math.floor%"), ua = function(e, r) {
3498
+ var oa = Jn, sa = st, an = ia, aa = oa(), un = Vt, cn = Rt, ua = sa("%Math.floor%"), ca = function(e, r) {
3490
3499
  if (typeof e != "function")
3491
3500
  throw new cn("`fn` is not a function");
3492
- if (typeof r != "number" || r < 0 || r > 4294967295 || aa(r) !== r)
3501
+ if (typeof r != "number" || r < 0 || r > 4294967295 || ua(r) !== r)
3493
3502
  throw new cn("`length` must be a positive 32-bit integer");
3494
3503
  var n = arguments.length > 2 && !!arguments[2], i = !0, o = !0;
3495
3504
  if ("length" in e && un) {
3496
3505
  var s = un(e, "length");
3497
3506
  s && !s.configurable && (i = !1), s && !s.writable && (o = !1);
3498
3507
  }
3499
- return (i || o || !n) && (sa ? an(
3508
+ return (i || o || !n) && (aa ? an(
3500
3509
  /** @type {Parameters<define>[0]} */
3501
3510
  e,
3502
3511
  "length",
@@ -3511,7 +3520,7 @@ var ia = Yn, oa = st, an = na, sa = ia(), un = Vt, cn = Rt, aa = oa("%Math.floor
3511
3520
  )), e;
3512
3521
  };
3513
3522
  (function(t) {
3514
- var e = Er, r = st, n = ua, i = Rt, o = r("%Function.prototype.apply%"), s = r("%Function.prototype.call%"), a = r("%Reflect.apply%", !0) || e.call(s, o), u = Ir(), f = r("%Math.max%");
3523
+ var e = Er, r = st, n = ca, i = Rt, o = r("%Function.prototype.apply%"), s = r("%Function.prototype.call%"), a = r("%Reflect.apply%", !0) || e.call(s, o), u = Ir(), f = r("%Math.max%");
3515
3524
  t.exports = function(l) {
3516
3525
  if (typeof l != "function")
3517
3526
  throw new i("a function is required");
@@ -3526,91 +3535,91 @@ var ia = Yn, oa = st, an = na, sa = ia(), un = Vt, cn = Rt, aa = oa("%Math.floor
3526
3535
  return a(e, o, arguments);
3527
3536
  };
3528
3537
  u ? u(t.exports, "apply", { value: c }) : t.exports.apply = c;
3529
- })(Wn);
3530
- var Tr = Wn.exports, Jn = st, Xn = Tr, ca = Xn(Jn("String.prototype.indexOf")), Or = function(e, r) {
3531
- var n = Jn(e, !!r);
3532
- return typeof n == "function" && ca(e, ".prototype.") > -1 ? Xn(n) : n;
3533
- }, la = Dt(), da = Or, cr = da("Object.prototype.toString"), $t = function(e) {
3534
- return la && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : cr(e) === "[object Arguments]";
3535
- }, Zn = function(e) {
3538
+ })(Yn);
3539
+ var Tr = Yn.exports, Xn = st, Zn = Tr, la = Zn(Xn("String.prototype.indexOf")), Or = function(e, r) {
3540
+ var n = Xn(e, !!r);
3541
+ return typeof n == "function" && la(e, ".prototype.") > -1 ? Zn(n) : n;
3542
+ }, da = Dt(), fa = Or, cr = fa("Object.prototype.toString"), $t = function(e) {
3543
+ return da && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : cr(e) === "[object Arguments]";
3544
+ }, ei = function(e) {
3536
3545
  return $t(e) ? !0 : e !== null && typeof e == "object" && typeof e.length == "number" && e.length >= 0 && cr(e) !== "[object Array]" && cr(e.callee) === "[object Function]";
3537
- }, fa = function() {
3546
+ }, ha = function() {
3538
3547
  return $t(arguments);
3539
3548
  }();
3540
- $t.isLegacyArguments = Zn;
3541
- var ha = fa ? $t : Zn, pa = Object.prototype.toString, ya = Function.prototype.toString, ga = /^\s*(?:function)?\*/, ei = Dt(), Qt = Object.getPrototypeOf, ma = function() {
3542
- if (!ei)
3549
+ $t.isLegacyArguments = ei;
3550
+ var pa = ha ? $t : ei, ya = Object.prototype.toString, ga = Function.prototype.toString, ma = /^\s*(?:function)?\*/, ti = Dt(), Qt = Object.getPrototypeOf, va = function() {
3551
+ if (!ti)
3543
3552
  return !1;
3544
3553
  try {
3545
3554
  return Function("return function*() {}")();
3546
3555
  } catch {
3547
3556
  }
3548
- }, Gt, va = function(e) {
3557
+ }, Gt, ba = function(e) {
3549
3558
  if (typeof e != "function")
3550
3559
  return !1;
3551
- if (ga.test(ya.call(e)))
3560
+ if (ma.test(ga.call(e)))
3552
3561
  return !0;
3553
- if (!ei) {
3554
- var r = pa.call(e);
3562
+ if (!ti) {
3563
+ var r = ya.call(e);
3555
3564
  return r === "[object GeneratorFunction]";
3556
3565
  }
3557
3566
  if (!Qt)
3558
3567
  return !1;
3559
3568
  if (typeof Gt > "u") {
3560
- var n = ma();
3569
+ var n = va();
3561
3570
  Gt = n ? Qt(n) : !1;
3562
3571
  }
3563
3572
  return Qt(e) === Gt;
3564
- }, ti = Function.prototype.toString, xe = typeof Reflect == "object" && Reflect !== null && Reflect.apply, lr, gt;
3565
- if (typeof xe == "function" && typeof Object.defineProperty == "function")
3573
+ }, ri = Function.prototype.toString, qe = typeof Reflect == "object" && Reflect !== null && Reflect.apply, lr, gt;
3574
+ if (typeof qe == "function" && typeof Object.defineProperty == "function")
3566
3575
  try {
3567
3576
  lr = Object.defineProperty({}, "length", {
3568
3577
  get: function() {
3569
3578
  throw gt;
3570
3579
  }
3571
- }), gt = {}, xe(function() {
3580
+ }), gt = {}, qe(function() {
3572
3581
  throw 42;
3573
3582
  }, null, lr);
3574
3583
  } catch (t) {
3575
- t !== gt && (xe = null);
3584
+ t !== gt && (qe = null);
3576
3585
  }
3577
3586
  else
3578
- xe = null;
3579
- var ba = /^\s*class\b/, dr = function(e) {
3587
+ qe = null;
3588
+ var Sa = /^\s*class\b/, dr = function(e) {
3580
3589
  try {
3581
- var r = ti.call(e);
3582
- return ba.test(r);
3590
+ var r = ri.call(e);
3591
+ return Sa.test(r);
3583
3592
  } catch {
3584
3593
  return !1;
3585
3594
  }
3586
3595
  }, Kt = function(e) {
3587
3596
  try {
3588
- return dr(e) ? !1 : (ti.call(e), !0);
3597
+ return dr(e) ? !1 : (ri.call(e), !0);
3589
3598
  } catch {
3590
3599
  return !1;
3591
3600
  }
3592
- }, mt = Object.prototype.toString, Sa = "[object Object]", wa = "[object Function]", Aa = "[object GeneratorFunction]", Ea = "[object HTMLAllCollection]", Ia = "[object HTML document.all class]", Ta = "[object HTMLCollection]", Oa = typeof Symbol == "function" && !!Symbol.toStringTag, _a = !(0 in [,]), fr = function() {
3601
+ }, mt = Object.prototype.toString, wa = "[object Object]", Aa = "[object Function]", Ea = "[object GeneratorFunction]", Ia = "[object HTMLAllCollection]", Ta = "[object HTML document.all class]", Oa = "[object HTMLCollection]", _a = typeof Symbol == "function" && !!Symbol.toStringTag, La = !(0 in [,]), fr = function() {
3593
3602
  return !1;
3594
3603
  };
3595
3604
  if (typeof document == "object") {
3596
- var La = document.all;
3597
- mt.call(La) === mt.call(document.all) && (fr = function(e) {
3598
- if ((_a || !e) && (typeof e > "u" || typeof e == "object"))
3605
+ var Ca = document.all;
3606
+ mt.call(Ca) === mt.call(document.all) && (fr = function(e) {
3607
+ if ((La || !e) && (typeof e > "u" || typeof e == "object"))
3599
3608
  try {
3600
3609
  var r = mt.call(e);
3601
- return (r === Ea || r === Ia || r === Ta || r === Sa) && e("") == null;
3610
+ return (r === Ia || r === Ta || r === Oa || r === wa) && e("") == null;
3602
3611
  } catch {
3603
3612
  }
3604
3613
  return !1;
3605
3614
  });
3606
3615
  }
3607
- var Ca = xe ? function(e) {
3616
+ var ka = qe ? function(e) {
3608
3617
  if (fr(e))
3609
3618
  return !0;
3610
3619
  if (!e || typeof e != "function" && typeof e != "object")
3611
3620
  return !1;
3612
3621
  try {
3613
- xe(e, null, lr);
3622
+ qe(e, null, lr);
3614
3623
  } catch (r) {
3615
3624
  if (r !== gt)
3616
3625
  return !1;
@@ -3621,27 +3630,27 @@ var Ca = xe ? function(e) {
3621
3630
  return !0;
3622
3631
  if (!e || typeof e != "function" && typeof e != "object")
3623
3632
  return !1;
3624
- if (Oa)
3633
+ if (_a)
3625
3634
  return Kt(e);
3626
3635
  if (dr(e))
3627
3636
  return !1;
3628
3637
  var r = mt.call(e);
3629
- return r !== wa && r !== Aa && !/^\[object HTML/.test(r) ? !1 : Kt(e);
3630
- }, ka = Ca, Pa = Object.prototype.toString, ri = Object.prototype.hasOwnProperty, Na = function(e, r, n) {
3638
+ return r !== Aa && r !== Ea && !/^\[object HTML/.test(r) ? !1 : Kt(e);
3639
+ }, Pa = ka, Na = Object.prototype.toString, ni = Object.prototype.hasOwnProperty, Fa = function(e, r, n) {
3631
3640
  for (var i = 0, o = e.length; i < o; i++)
3632
- ri.call(e, i) && (n == null ? r(e[i], i, e) : r.call(n, e[i], i, e));
3633
- }, Fa = function(e, r, n) {
3641
+ ni.call(e, i) && (n == null ? r(e[i], i, e) : r.call(n, e[i], i, e));
3642
+ }, Da = function(e, r, n) {
3634
3643
  for (var i = 0, o = e.length; i < o; i++)
3635
3644
  n == null ? r(e.charAt(i), i, e) : r.call(n, e.charAt(i), i, e);
3636
- }, Da = function(e, r, n) {
3637
- for (var i in e)
3638
- ri.call(e, i) && (n == null ? r(e[i], i, e) : r.call(n, e[i], i, e));
3639
3645
  }, Ra = function(e, r, n) {
3640
- if (!ka(r))
3646
+ for (var i in e)
3647
+ ni.call(e, i) && (n == null ? r(e[i], i, e) : r.call(n, e[i], i, e));
3648
+ }, Va = function(e, r, n) {
3649
+ if (!Pa(r))
3641
3650
  throw new TypeError("iterator must be a function");
3642
3651
  var i;
3643
- arguments.length >= 3 && (i = n), Pa.call(e) === "[object Array]" ? Na(e, r, i) : typeof e == "string" ? Fa(e, r, i) : Da(e, r, i);
3644
- }, ni = Ra, Va = [
3652
+ arguments.length >= 3 && (i = n), Na.call(e) === "[object Array]" ? Fa(e, r, i) : typeof e == "string" ? Da(e, r, i) : Ra(e, r, i);
3653
+ }, ii = Va, $a = [
3645
3654
  "Float32Array",
3646
3655
  "Float64Array",
3647
3656
  "Int8Array",
@@ -3653,17 +3662,17 @@ var Ca = xe ? function(e) {
3653
3662
  "Uint32Array",
3654
3663
  "BigInt64Array",
3655
3664
  "BigUint64Array"
3656
- ], zt = Va, $a = typeof globalThis > "u" ? br : globalThis, ii = function() {
3665
+ ], zt = $a, Ma = typeof globalThis > "u" ? br : globalThis, oi = function() {
3657
3666
  for (var e = [], r = 0; r < zt.length; r++)
3658
- typeof $a[zt[r]] == "function" && (e[e.length] = zt[r]);
3667
+ typeof Ma[zt[r]] == "function" && (e[e.length] = zt[r]);
3659
3668
  return e;
3660
- }, It = ni, Ma = ii, ln = Tr, _r = Or, vt = Vt, ja = _r("Object.prototype.toString"), oi = Dt(), dn = typeof globalThis > "u" ? br : globalThis, hr = Ma(), Lr = _r("String.prototype.slice"), Ht = Object.getPrototypeOf, Ua = _r("Array.prototype.indexOf", !0) || function(e, r) {
3669
+ }, It = ii, ja = oi, ln = Tr, _r = Or, vt = Vt, Ua = _r("Object.prototype.toString"), si = Dt(), dn = typeof globalThis > "u" ? br : globalThis, hr = ja(), Lr = _r("String.prototype.slice"), Ht = Object.getPrototypeOf, Ba = _r("Array.prototype.indexOf", !0) || function(e, r) {
3661
3670
  for (var n = 0; n < e.length; n += 1)
3662
3671
  if (e[n] === r)
3663
3672
  return n;
3664
3673
  return -1;
3665
3674
  }, Tt = { __proto__: null };
3666
- oi && vt && Ht ? It(hr, function(t) {
3675
+ si && vt && Ht ? It(hr, function(t) {
3667
3676
  var e = new dn[t]();
3668
3677
  if (Symbol.toStringTag in e) {
3669
3678
  var r = Ht(e), n = vt(r, Symbol.toStringTag);
@@ -3677,7 +3686,7 @@ oi && vt && Ht ? It(hr, function(t) {
3677
3686
  var e = new dn[t](), r = e.slice || e.set;
3678
3687
  r && (Tt["$" + t] = ln(r));
3679
3688
  });
3680
- var Ba = function(e) {
3689
+ var qa = function(e) {
3681
3690
  var r = !1;
3682
3691
  return It(Tt, function(n, i) {
3683
3692
  if (!r)
@@ -3695,21 +3704,21 @@ var Ba = function(e) {
3695
3704
  } catch {
3696
3705
  }
3697
3706
  }), r;
3698
- }, qa = function(e) {
3707
+ }, Qa = function(e) {
3699
3708
  if (!e || typeof e != "object")
3700
3709
  return !1;
3701
- if (!oi) {
3702
- var r = Lr(ja(e), 8, -1);
3703
- return Ua(hr, r) > -1 ? r : r !== "Object" ? !1 : xa(e);
3710
+ if (!si) {
3711
+ var r = Lr(Ua(e), 8, -1);
3712
+ return Ba(hr, r) > -1 ? r : r !== "Object" ? !1 : xa(e);
3704
3713
  }
3705
- return vt ? Ba(e) : null;
3706
- }, Ot = ni, Qa = ii, fn = Tr, Cr = Or, bt = Vt, Ga = Cr("Object.prototype.toString"), si = Dt(), hn = typeof globalThis > "u" ? br : globalThis, pr = Qa(), kr = Cr("String.prototype.slice"), Wt = Object.getPrototypeOf, Ka = Cr("Array.prototype.indexOf", !0) || function(e, r) {
3714
+ return vt ? qa(e) : null;
3715
+ }, Ot = ii, Ga = oi, fn = Tr, Cr = Or, bt = Vt, Ka = Cr("Object.prototype.toString"), ai = Dt(), hn = typeof globalThis > "u" ? br : globalThis, pr = Ga(), kr = Cr("String.prototype.slice"), Wt = Object.getPrototypeOf, za = Cr("Array.prototype.indexOf", !0) || function(e, r) {
3707
3716
  for (var n = 0; n < e.length; n += 1)
3708
3717
  if (e[n] === r)
3709
3718
  return n;
3710
3719
  return -1;
3711
3720
  }, _t = { __proto__: null };
3712
- si && bt && Wt ? Ot(pr, function(t) {
3721
+ ai && bt && Wt ? Ot(pr, function(t) {
3713
3722
  var e = new hn[t]();
3714
3723
  if (Symbol.toStringTag in e) {
3715
3724
  var r = Wt(e), n = bt(r, Symbol.toStringTag);
@@ -3723,7 +3732,7 @@ si && bt && Wt ? Ot(pr, function(t) {
3723
3732
  var e = new hn[t](), r = e.slice || e.set;
3724
3733
  r && (_t["$" + t] = fn(r));
3725
3734
  });
3726
- var za = function(e) {
3735
+ var Ha = function(e) {
3727
3736
  var r = !1;
3728
3737
  return Ot(
3729
3738
  // eslint-disable-next-line no-extra-parens
@@ -3739,7 +3748,7 @@ var za = function(e) {
3739
3748
  }
3740
3749
  }
3741
3750
  ), r;
3742
- }, Ha = function(e) {
3751
+ }, Wa = function(e) {
3743
3752
  var r = !1;
3744
3753
  return Ot(
3745
3754
  // eslint-disable-next-line no-extra-parens
@@ -3755,19 +3764,19 @@ var za = function(e) {
3755
3764
  }
3756
3765
  }
3757
3766
  ), r;
3758
- }, Wa = function(e) {
3767
+ }, Ya = function(e) {
3759
3768
  if (!e || typeof e != "object")
3760
3769
  return !1;
3761
- if (!si) {
3762
- var r = kr(Ga(e), 8, -1);
3763
- return Ka(pr, r) > -1 ? r : r !== "Object" ? !1 : Ha(e);
3770
+ if (!ai) {
3771
+ var r = kr(Ka(e), 8, -1);
3772
+ return za(pr, r) > -1 ? r : r !== "Object" ? !1 : Wa(e);
3764
3773
  }
3765
- return bt ? za(e) : null;
3766
- }, Ya = Wa, Ja = function(e) {
3767
- return !!Ya(e);
3774
+ return bt ? Ha(e) : null;
3775
+ }, Ja = Ya, Xa = function(e) {
3776
+ return !!Ja(e);
3768
3777
  };
3769
3778
  (function(t) {
3770
- var e = ha, r = va, n = qa, i = Ja;
3779
+ var e = pa, r = ba, n = Qa, i = Xa;
3771
3780
  function o(y) {
3772
3781
  return y.call.bind(y);
3773
3782
  }
@@ -3776,11 +3785,11 @@ var za = function(e) {
3776
3785
  var l = o(BigInt.prototype.valueOf);
3777
3786
  if (a)
3778
3787
  var g = o(Symbol.prototype.valueOf);
3779
- function v(y, hi) {
3788
+ function v(y, pi) {
3780
3789
  if (typeof y != "object")
3781
3790
  return !1;
3782
3791
  try {
3783
- return hi(y), !0;
3792
+ return pi(y), !0;
3784
3793
  } catch {
3785
3794
  return !1;
3786
3795
  }
@@ -3822,14 +3831,14 @@ var za = function(e) {
3822
3831
  return n(y) === "Int32Array";
3823
3832
  }
3824
3833
  t.isInt32Array = T;
3825
- function ne(y) {
3834
+ function ie(y) {
3826
3835
  return n(y) === "Float32Array";
3827
3836
  }
3828
- t.isFloat32Array = ne;
3829
- function ie(y) {
3837
+ t.isFloat32Array = ie;
3838
+ function oe(y) {
3830
3839
  return n(y) === "Float64Array";
3831
3840
  }
3832
- t.isFloat64Array = ie;
3841
+ t.isFloat64Array = oe;
3833
3842
  function Ne(y) {
3834
3843
  return n(y) === "BigInt64Array";
3835
3844
  }
@@ -3934,14 +3943,14 @@ var za = function(e) {
3934
3943
  return a && v(y, g);
3935
3944
  }
3936
3945
  t.isSymbolObject = Fr;
3937
- function di(y) {
3946
+ function fi(y) {
3938
3947
  return Ie(y) || ut(y) || Ve(y) || ct(y) || Fr(y);
3939
3948
  }
3940
- t.isBoxedPrimitive = di;
3941
- function fi(y) {
3949
+ t.isBoxedPrimitive = fi;
3950
+ function hi(y) {
3942
3951
  return typeof Uint8Array < "u" && (at(y) || _(y));
3943
3952
  }
3944
- t.isAnyArrayBuffer = fi, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(y) {
3953
+ t.isAnyArrayBuffer = hi, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(y) {
3945
3954
  Object.defineProperty(t, y, {
3946
3955
  enumerable: !1,
3947
3956
  value: function() {
@@ -3949,8 +3958,8 @@ var za = function(e) {
3949
3958
  }
3950
3959
  });
3951
3960
  });
3952
- })(Gn);
3953
- var Xa = function(e) {
3961
+ })(Kn);
3962
+ var Za = function(e) {
3954
3963
  return e && typeof e == "object" && typeof e.copy == "function" && typeof e.fill == "function" && typeof e.readUInt8 == "function";
3955
3964
  }, yr = { exports: {} };
3956
3965
  typeof Object.create == "function" ? yr.exports = function(e, r) {
@@ -3970,7 +3979,7 @@ typeof Object.create == "function" ? yr.exports = function(e, r) {
3970
3979
  n.prototype = r.prototype, e.prototype = new n(), e.prototype.constructor = e;
3971
3980
  }
3972
3981
  };
3973
- var Za = yr.exports;
3982
+ var eu = yr.exports;
3974
3983
  (function(t) {
3975
3984
  var e = Object.getOwnPropertyDescriptors || function(p) {
3976
3985
  for (var m = Object.keys(p), S = {}, _ = 0; _ < m.length; _++)
@@ -4001,7 +4010,7 @@ var Za = yr.exports;
4001
4010
  return O;
4002
4011
  }
4003
4012
  }), E = S[m]; m < _; E = S[++m])
4004
- R(E) || !ie(E) ? C += " " + E : C += " " + s(E);
4013
+ R(E) || !oe(E) ? C += " " + E : C += " " + s(E);
4005
4014
  return C;
4006
4015
  }, t.deprecate = function(d, p) {
4007
4016
  if (typeof A < "u" && A.noDeprecation === !0)
@@ -4102,7 +4111,7 @@ var Za = yr.exports;
4102
4111
  var O = p.name ? ": " + p.name : "";
4103
4112
  return d.stylize("[Function" + O + "]", "special");
4104
4113
  }
4105
- if (ne(p))
4114
+ if (ie(p))
4106
4115
  return d.stylize(RegExp.prototype.toString.call(p), "regexp");
4107
4116
  if (Ne(p))
4108
4117
  return d.stylize(Date.prototype.toString.call(p), "date");
@@ -4114,10 +4123,10 @@ var Za = yr.exports;
4114
4123
  var ut = p.name ? ": " + p.name : "";
4115
4124
  N = " [Function" + ut + "]";
4116
4125
  }
4117
- if (ne(p) && (N = " " + RegExp.prototype.toString.call(p)), Ne(p) && (N = " " + Date.prototype.toUTCString.call(p)), Ee(p) && (N = " " + l(p)), C.length === 0 && (!K || p.length == 0))
4126
+ if (ie(p) && (N = " " + RegExp.prototype.toString.call(p)), Ne(p) && (N = " " + Date.prototype.toUTCString.call(p)), Ee(p) && (N = " " + l(p)), C.length === 0 && (!K || p.length == 0))
4118
4127
  return Ie[0] + N + Ie[1];
4119
4128
  if (m < 0)
4120
- return ne(p) ? d.stylize(RegExp.prototype.toString.call(p), "regexp") : d.stylize("[Object]", "special");
4129
+ return ie(p) ? d.stylize(RegExp.prototype.toString.call(p), "regexp") : d.stylize("[Object]", "special");
4121
4130
  d.seen.push(p);
4122
4131
  var Ve;
4123
4132
  return K ? Ve = g(d, p, m, E, C) : Ve = C.map(function(ct) {
@@ -4190,7 +4199,7 @@ var Za = yr.exports;
4190
4199
  `) + " " + d.join(`,
4191
4200
  `) + " " + m[1] : m[0] + p + " " + d.join(", ") + " " + m[1];
4192
4201
  }
4193
- t.types = Gn;
4202
+ t.types = Kn;
4194
4203
  function b(d) {
4195
4204
  return Array.isArray(d);
4196
4205
  }
@@ -4223,20 +4232,20 @@ var Za = yr.exports;
4223
4232
  return d === void 0;
4224
4233
  }
4225
4234
  t.isUndefined = T;
4226
- function ne(d) {
4227
- return ie(d) && Se(d) === "[object RegExp]";
4228
- }
4229
- t.isRegExp = ne, t.types.isRegExp = ne;
4230
4235
  function ie(d) {
4236
+ return oe(d) && Se(d) === "[object RegExp]";
4237
+ }
4238
+ t.isRegExp = ie, t.types.isRegExp = ie;
4239
+ function oe(d) {
4231
4240
  return typeof d == "object" && d !== null;
4232
4241
  }
4233
- t.isObject = ie;
4242
+ t.isObject = oe;
4234
4243
  function Ne(d) {
4235
- return ie(d) && Se(d) === "[object Date]";
4244
+ return oe(d) && Se(d) === "[object Date]";
4236
4245
  }
4237
4246
  t.isDate = Ne, t.types.isDate = Ne;
4238
4247
  function Ee(d) {
4239
- return ie(d) && (Se(d) === "[object Error]" || d instanceof Error);
4248
+ return oe(d) && (Se(d) === "[object Error]" || d instanceof Error);
4240
4249
  }
4241
4250
  t.isError = Ee, t.types.isNativeError = Ee;
4242
4251
  function de(d) {
@@ -4247,7 +4256,7 @@ var Za = yr.exports;
4247
4256
  return d === null || typeof d == "boolean" || typeof d == "number" || typeof d == "string" || typeof d == "symbol" || // ES6 symbol
4248
4257
  typeof d > "u";
4249
4258
  }
4250
- t.isPrimitive = Mt, t.isBuffer = Xa;
4259
+ t.isPrimitive = Mt, t.isBuffer = Za;
4251
4260
  function Se(d) {
4252
4261
  return Object.prototype.toString.call(d);
4253
4262
  }
@@ -4278,8 +4287,8 @@ var Za = yr.exports;
4278
4287
  }
4279
4288
  t.log = function() {
4280
4289
  console.log("%s - %s", jt(), t.format.apply(t, arguments));
4281
- }, t.inherits = Za, t._extend = function(d, p) {
4282
- if (!p || !ie(p)) return d;
4290
+ }, t.inherits = eu, t._extend = function(d, p) {
4291
+ if (!p || !oe(p)) return d;
4283
4292
  for (var m = Object.keys(p), S = m.length; S--; )
4284
4293
  d[m[S]] = p[m[S]];
4285
4294
  return d;
@@ -4362,7 +4371,7 @@ var Za = yr.exports;
4362
4371
  }
4363
4372
  t.callbackify = at;
4364
4373
  })(Ft);
4365
- const { inherits: eu, format: Yt } = Ft;
4374
+ const { inherits: tu, format: Yt } = Ft;
4366
4375
  function Oe(t, e, r = Error) {
4367
4376
  if (!t) throw new Error("Avvio error code must not be empty");
4368
4377
  if (!e) throw new Error("Avvio base error message must not be empty");
@@ -4373,9 +4382,9 @@ function Oe(t, e, r = Error) {
4373
4382
  }
4374
4383
  return n.prototype[Symbol.toStringTag] = "Error", n.prototype.toString = function() {
4375
4384
  return `${this.name} [${this.code}]: ${this.message}`;
4376
- }, eu(n, r), n;
4385
+ }, tu(n, r), n;
4377
4386
  }
4378
- var ai = {
4387
+ var ui = {
4379
4388
  createError: Oe,
4380
4389
  AVV_ERR_EXPOSE_ALREADY_DEFINED: Oe(
4381
4390
  "AVV_ERR_EXPOSE_ALREADY_DEFINED",
@@ -4401,7 +4410,7 @@ var ai = {
4401
4410
  "AVV_ERR_READY_TIMEOUT",
4402
4411
  "Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise"
4403
4412
  )
4404
- }, tu = function t(e, r, n) {
4413
+ }, ru = function t(e, r, n) {
4405
4414
  r === void 0 && (r = ""), n || (n = {});
4406
4415
  var i = function(u) {
4407
4416
  var f = {
@@ -4423,8 +4432,8 @@ var ai = {
4423
4432
  return r + i(c ? "└" : "├") + i("─") + i(h ? "┬" : "─") + " " + t(u, l, n).slice(r.length + 2);
4424
4433
  }).join("");
4425
4434
  };
4426
- const ru = tu, pn = Symbol("avvio.TimeTree.untrackNode"), Jt = Symbol("avvio.TimeTree.trackNode"), yn = Symbol("avvio.TimeTree.getParent"), gn = Symbol("avvio.TimeTree.getNode"), mn = Symbol("avvio.TimeTree.addNode");
4427
- let nu = class {
4435
+ const nu = ru, pn = Symbol("avvio.TimeTree.untrackNode"), Jt = Symbol("avvio.TimeTree.trackNode"), yn = Symbol("avvio.TimeTree.getParent"), gn = Symbol("avvio.TimeTree.getNode"), mn = Symbol("avvio.TimeTree.addNode");
4436
+ let iu = class {
4428
4437
  constructor() {
4429
4438
  this.root = null, this.tableId = /* @__PURE__ */ new Map(), this.tableLabel = /* @__PURE__ */ new Map();
4430
4439
  }
@@ -4478,11 +4487,11 @@ let nu = class {
4478
4487
  }
4479
4488
  prittyPrint() {
4480
4489
  const e = (n) => (n.label = `${n.label} ${n.diff} ms`, n.nodes.length > 0 && (n.nodes = n.nodes.map((i) => e(i))), n), r = e(this.toJSON());
4481
- return ru(r);
4490
+ return nu(r);
4482
4491
  }
4483
4492
  };
4484
- var iu = nu, Pr = { exports: {} }, gr = { exports: {} }, Xt, vn;
4485
- function ou() {
4493
+ var ou = iu, Pr = { exports: {} }, gr = { exports: {} }, Xt, vn;
4494
+ function su() {
4486
4495
  if (vn) return Xt;
4487
4496
  vn = 1;
4488
4497
  var t = 1e3, e = t * 60, r = e * 60, n = r * 24, i = n * 7, o = n * 365.25;
@@ -4563,8 +4572,8 @@ function ou() {
4563
4572
  }
4564
4573
  return Xt;
4565
4574
  }
4566
- function su(t) {
4567
- r.debug = r, r.default = r, r.coerce = u, r.disable = o, r.enable = i, r.enabled = s, r.humanize = ou(), r.destroy = f, Object.keys(t).forEach((c) => {
4575
+ function au(t) {
4576
+ r.debug = r, r.default = r, r.coerce = u, r.disable = o, r.enable = i, r.enabled = s, r.humanize = su(), r.destroy = f, Object.keys(t).forEach((c) => {
4568
4577
  r[c] = t[c];
4569
4578
  }), r.names = [], r.skips = [], r.formatters = {};
4570
4579
  function e(c) {
@@ -4586,10 +4595,10 @@ function su(t) {
4586
4595
  if (V === "%%")
4587
4596
  return "%";
4588
4597
  X++;
4589
- const ne = r.formatters[T];
4590
- if (typeof ne == "function") {
4591
- const ie = b[X];
4592
- V = ne.call(L, ie), b.splice(X, 1), X--;
4598
+ const ie = r.formatters[T];
4599
+ if (typeof ie == "function") {
4600
+ const oe = b[X];
4601
+ V = ie.call(L, oe), b.splice(X, 1), X--;
4593
4602
  }
4594
4603
  return V;
4595
4604
  }), r.formatArgs.call(L, b), (L.log || r.log).apply(L, b);
@@ -4644,7 +4653,7 @@ function su(t) {
4644
4653
  }
4645
4654
  return r.enable(r.load()), r;
4646
4655
  }
4647
- var au = su;
4656
+ var uu = au;
4648
4657
  (function(t, e) {
4649
4658
  e.formatArgs = n, e.save = i, e.load = o, e.useColors = r, e.storage = s(), e.destroy = /* @__PURE__ */ (() => {
4650
4659
  let u = !1;
@@ -4768,7 +4777,7 @@ var au = su;
4768
4777
  } catch {
4769
4778
  }
4770
4779
  }
4771
- t.exports = au(e);
4780
+ t.exports = uu(e);
4772
4781
  const { formatters: a } = t.exports;
4773
4782
  a.j = function(u) {
4774
4783
  try {
@@ -4778,22 +4787,22 @@ var au = su;
4778
4787
  }
4779
4788
  };
4780
4789
  })(gr, gr.exports);
4781
- var ui = gr.exports;
4782
- const uu = Rn, cu = Qn.EventEmitter, lu = Ft.inherits, j = ui("avvio"), { AVV_ERR_READY_TIMEOUT: du } = ai, Zt = Symbol.for("plugin-meta");
4783
- function fu(t, e) {
4790
+ var ci = gr.exports;
4791
+ const cu = Vn, lu = Gn.EventEmitter, du = Ft.inherits, j = ci("avvio"), { AVV_ERR_READY_TIMEOUT: fu } = ui, Zt = Symbol.for("plugin-meta");
4792
+ function hu(t, e) {
4784
4793
  return t[Zt] && t[Zt].name ? t[Zt].name : typeof e < "u" && typeof e != "function" && e.name ? e.name : t.name ? t.name : t.toString().split(`
4785
4794
  `).slice(0, 2).map((r) => r.trim()).join(" -- ");
4786
4795
  }
4787
- function hu() {
4796
+ function pu() {
4788
4797
  const t = {};
4789
4798
  return t.promise = new Promise((e, r) => {
4790
4799
  t.resolve = e, t.reject = r;
4791
4800
  }), t;
4792
4801
  }
4793
4802
  function We(t, e, r, n, i) {
4794
- this.started = !1, this.func = e, this.opts = r, this.onFinish = null, this.parent = t, this.timeout = i === void 0 ? t._timeout : i, this.name = fu(e, r), this.isAfter = n, this.q = uu(t, pu, 1), this.q.pause(), this._error = null, this.loaded = !1, this._promise = null;
4803
+ this.started = !1, this.func = e, this.opts = r, this.onFinish = null, this.parent = t, this.timeout = i === void 0 ? t._timeout : i, this.name = hu(e, r), this.isAfter = n, this.q = cu(t, yu, 1), this.q.pause(), this._error = null, this.loaded = !1, this._promise = null;
4795
4804
  }
4796
- lu(We, cu);
4805
+ du(We, lu);
4797
4806
  We.prototype.exec = function(t, e) {
4798
4807
  const r = this.func;
4799
4808
  let n = !1;
@@ -4821,7 +4830,7 @@ We.prototype.exec = function(t, e) {
4821
4830
  };
4822
4831
  this.timeout > 0 && (j("setting up timeout", i, this.timeout), o = setTimeout(function() {
4823
4832
  j("timed out", i), o = null;
4824
- const u = new du(i);
4833
+ const u = new fu(i);
4825
4834
  u.fn = r, s(u);
4826
4835
  }, this.timeout)), this.started = !0, this.emit("start", this.server ? this.server.name : null, this.name, Date.now());
4827
4836
  const a = r(this.server, this.opts, s);
@@ -4839,7 +4848,7 @@ We.prototype.loadedSoFar = function() {
4839
4848
  }), this.q.resume();
4840
4849
  };
4841
4850
  let e;
4842
- return this._promise ? e = Promise.resolve() : (this._promise = hu(), e = this._promise.promise, this.server ? t() : this.on("start", t)), e;
4851
+ return this._promise ? e = Promise.resolve() : (this._promise = pu(), e = this._promise.promise, this.server ? t() : this.on("start", t)), e;
4843
4852
  };
4844
4853
  We.prototype.enqueue = function(t, e) {
4845
4854
  j("enqueue", this.name, t.name), this.emit("enqueue", this.server ? this.server.name : null, this.name, Date.now()), this.q.push(t, e);
@@ -4864,12 +4873,12 @@ We.prototype.finish = function(t, e) {
4864
4873
  r();
4865
4874
  else
4866
4875
  j("delayed", this.name), this.q.drain = () => {
4867
- j("drain", this.name), this.q.drain = yu, queueMicrotask(n);
4876
+ j("drain", this.name), this.q.drain = gu, queueMicrotask(n);
4868
4877
  };
4869
4878
  };
4870
4879
  queueMicrotask(n), this.q.resume();
4871
4880
  };
4872
- function pu(t, e) {
4881
+ function yu(t, e) {
4873
4882
  const r = this;
4874
4883
  A.nextTick(Nr.bind(r), t, e);
4875
4884
  }
@@ -4887,19 +4896,19 @@ function Nr(t, e) {
4887
4896
  });
4888
4897
  });
4889
4898
  }
4890
- function yu() {
4899
+ function gu() {
4891
4900
  }
4892
4901
  Pr.exports = We;
4893
4902
  Pr.exports.loadPlugin = Nr;
4894
- var gu = Pr.exports;
4895
- const bn = Rn, mu = Qn.EventEmitter, vu = Ft.inherits, {
4903
+ var mu = Pr.exports;
4904
+ const bn = Vn, vu = Gn.EventEmitter, bu = Ft.inherits, {
4896
4905
  AVV_ERR_EXPOSE_ALREADY_DEFINED: er,
4897
4906
  AVV_ERR_CALLBACK_NOT_FN: et,
4898
- AVV_ERR_PLUGIN_NOT_VALID: bu,
4899
- AVV_ERR_ROOT_PLG_BOOTED: Su,
4900
- AVV_ERR_READY_TIMEOUT: wu
4901
- } = ai, Au = iu, mr = gu, ze = ui("avvio"), Lt = Symbol("kAvvio"), tr = Symbol("kThenifyDoNotWrap");
4902
- function Eu(t, e, r) {
4907
+ AVV_ERR_PLUGIN_NOT_VALID: Su,
4908
+ AVV_ERR_ROOT_PLG_BOOTED: wu,
4909
+ AVV_ERR_READY_TIMEOUT: Au
4910
+ } = ui, Eu = ou, mr = mu, ze = ci("avvio"), Lt = Symbol("kAvvio"), tr = Symbol("kThenifyDoNotWrap");
4911
+ function Iu(t, e, r) {
4903
4912
  const n = e.expose || {}, i = n.use || "use", o = n.after || "after", s = n.ready || "ready", a = n.onClose || "onClose", u = n.close || "close";
4904
4913
  if (t[i])
4905
4914
  throw new er(i);
@@ -4909,7 +4918,7 @@ function Eu(t, e, r) {
4909
4918
  throw new er(s);
4910
4919
  t[i] = function(f, c) {
4911
4920
  return r.use(f, c), this;
4912
- }, Object.defineProperty(t, "then", { get: ci.bind(r) }), t[Lt] = !0, t[o] = function(f) {
4921
+ }, Object.defineProperty(t, "then", { get: li.bind(r) }), t[Lt] = !0, t[o] = function(f) {
4913
4922
  return typeof f != "function" ? r._loadRegistered() : (r.after(rr(f, this)), this);
4914
4923
  }, t[s] = function(f) {
4915
4924
  if (f && typeof f != "function")
@@ -4918,23 +4927,23 @@ function Eu(t, e, r) {
4918
4927
  }, t[a] = function(f) {
4919
4928
  if (typeof f != "function")
4920
4929
  throw new et(a, typeof f);
4921
- return r.onClose(Lu(f, this)), this;
4930
+ return r.onClose(Cu(f, this)), this;
4922
4931
  }, t[u] = function(f) {
4923
4932
  if (f && typeof f != "function")
4924
4933
  throw new et(u, typeof f);
4925
4934
  return f ? (r.close(rr(f, this)), this) : r.close();
4926
4935
  };
4927
4936
  }
4928
- function x(t, e, r) {
4929
- if (typeof t == "function" && arguments.length === 1 && (r = t, e = {}, t = null), typeof e == "function" && (r = e, e = {}), e = e || {}, !(this instanceof x)) {
4930
- const n = new x(t, e, r);
4931
- return t && Eu(t, e, n), n;
4937
+ function q(t, e, r) {
4938
+ if (typeof t == "function" && arguments.length === 1 && (r = t, e = {}, t = null), typeof e == "function" && (r = e, e = {}), e = e || {}, !(this instanceof q)) {
4939
+ const n = new q(t, e, r);
4940
+ return t && Iu(t, e, n), n;
4932
4941
  }
4933
- e.autostart !== !1 && (e.autostart = !0), t = t || this, this._timeout = Number(e.timeout) || 0, this._server = t, this._current = [], this._error = null, this._isOnCloseHandlerKey = Symbol("isOnCloseHandler"), this._lastUsed = null, this.setMaxListeners(0), r && this.once("start", r), this.started = !1, this.booted = !1, this.pluginTree = new Au(), this._readyQ = bn(this, li, 1), this._readyQ.pause(), this._readyQ.drain = () => {
4942
+ e.autostart !== !1 && (e.autostart = !0), t = t || this, this._timeout = Number(e.timeout) || 0, this._server = t, this._current = [], this._error = null, this._isOnCloseHandlerKey = Symbol("isOnCloseHandler"), this._lastUsed = null, this.setMaxListeners(0), r && this.once("start", r), this.started = !1, this.booted = !1, this.pluginTree = new Eu(), this._readyQ = bn(this, di, 1), this._readyQ.pause(), this._readyQ.drain = () => {
4934
4943
  this.emit("start"), this._readyQ.drain = Sn;
4935
- }, this._closeQ = bn(this, _u, 1), this._closeQ.pause(), this._closeQ.drain = () => {
4944
+ }, this._closeQ = bn(this, Lu, 1), this._closeQ.pause(), this._closeQ.drain = () => {
4936
4945
  this.emit("close"), this._closeQ.drain = Sn;
4937
- }, this._doStart = null, this._root = new mr(this, Iu.bind(this), e, !1, 0), this._root.once("start", (n, i, o) => {
4946
+ }, this._doStart = null, this._root = new mr(this, Tu.bind(this), e, !1, 0), this._root.once("start", (n, i, o) => {
4938
4947
  const s = this.pluginTree.start(null, i, o);
4939
4948
  this._root.once("loaded", (a, u, f) => {
4940
4949
  this.pluginTree.stop(s, f);
@@ -4954,33 +4963,33 @@ function x(t, e, r) {
4954
4963
  this._readyQ.resume();
4955
4964
  });
4956
4965
  }
4957
- function Iu(t, e, r) {
4966
+ function Tu(t, e, r) {
4958
4967
  this._doStart = r, e.autostart && this.start();
4959
4968
  }
4960
- vu(x, mu);
4961
- x.prototype.start = function() {
4969
+ bu(q, vu);
4970
+ q.prototype.start = function() {
4962
4971
  return this.started = !0, A.nextTick(this._doStart), this;
4963
4972
  };
4964
- x.prototype.override = function(t, e, r) {
4973
+ q.prototype.override = function(t, e, r) {
4965
4974
  return t;
4966
4975
  };
4967
- function Tu(t) {
4976
+ function Ou(t) {
4968
4977
  if (t && typeof t == "object" && typeof t.default == "function" && (t = t.default), !(t && (typeof t == "function" || typeof t.then == "function")))
4969
- throw new bu(typeof t);
4978
+ throw new Su(typeof t);
4970
4979
  return t;
4971
4980
  }
4972
- x.prototype[Lt] = !0;
4973
- x.prototype.use = function(t, e) {
4981
+ q.prototype[Lt] = !0;
4982
+ q.prototype.use = function(t, e) {
4974
4983
  return this._lastUsed = this._addPlugin(t, e, !1), this;
4975
4984
  };
4976
- x.prototype._loadRegistered = function() {
4985
+ q.prototype._loadRegistered = function() {
4977
4986
  const t = this._current[0];
4978
4987
  return !this.started && !this.booted && A.nextTick(() => this._root.q.resume()), t ? t.loadedSoFar() : Promise.resolve();
4979
4988
  };
4980
- Object.defineProperty(x.prototype, "then", { get: ci });
4981
- x.prototype._addPlugin = function(t, e, r) {
4982
- if (t = Tu(t), e = e || {}, this.booted)
4983
- throw new Su();
4989
+ Object.defineProperty(q.prototype, "then", { get: li });
4990
+ q.prototype._addPlugin = function(t, e, r) {
4991
+ if (t = Ou(t), e = e || {}, this.booted)
4992
+ throw new wu();
4984
4993
  const n = this._current[0], i = new mr(this, t, e, r);
4985
4994
  if (i.once("start", (o, s, a) => {
4986
4995
  const u = this.pluginTree.start(n.name, s, a);
@@ -4993,16 +5002,16 @@ x.prototype._addPlugin = function(t, e, r) {
4993
5002
  o && (this._error = o);
4994
5003
  }), i;
4995
5004
  };
4996
- x.prototype.after = function(t) {
5005
+ q.prototype.after = function(t) {
4997
5006
  if (!t)
4998
5007
  return this._loadRegistered();
4999
5008
  this._addPlugin(e.bind(this), {}, !0);
5000
5009
  function e(r, n, i) {
5001
- li.call(this, t, i);
5010
+ di.call(this, t, i);
5002
5011
  }
5003
5012
  return this;
5004
5013
  };
5005
- x.prototype.onClose = function(t) {
5014
+ q.prototype.onClose = function(t) {
5006
5015
  if (typeof t != "function")
5007
5016
  throw new Error("not a function");
5008
5017
  t[this._isOnCloseHandlerKey] = !0, this._closeQ.unshift(t, e.bind(this));
@@ -5011,7 +5020,7 @@ x.prototype.onClose = function(t) {
5011
5020
  }
5012
5021
  return this;
5013
5022
  };
5014
- x.prototype.close = function(t) {
5023
+ q.prototype.close = function(t) {
5015
5024
  let e;
5016
5025
  if (t) {
5017
5026
  if (typeof t != "function")
@@ -5028,7 +5037,7 @@ x.prototype.close = function(t) {
5028
5037
  this._error = null, this._closeQ.push(t), A.nextTick(this._closeQ.resume.bind(this._closeQ));
5029
5038
  }), e;
5030
5039
  };
5031
- x.prototype.ready = function(t) {
5040
+ q.prototype.ready = function(t) {
5032
5041
  if (t) {
5033
5042
  if (typeof t != "function")
5034
5043
  throw new et("ready", typeof t);
@@ -5043,15 +5052,15 @@ x.prototype.ready = function(t) {
5043
5052
  }
5044
5053
  });
5045
5054
  };
5046
- x.prototype.prettyPrint = function() {
5055
+ q.prototype.prettyPrint = function() {
5047
5056
  return this.pluginTree.prittyPrint();
5048
5057
  };
5049
- x.prototype.toJSON = function() {
5058
+ q.prototype.toJSON = function() {
5050
5059
  return this.pluginTree.toJSON();
5051
5060
  };
5052
5061
  function Sn() {
5053
5062
  }
5054
- function ci() {
5063
+ function li() {
5055
5064
  if (this.booted) {
5056
5065
  ze("thenify returning null because we are already booted");
5057
5066
  return;
@@ -5062,7 +5071,7 @@ function ci() {
5062
5071
  }
5063
5072
  return ze("thenify"), (t, e) => this._loadRegistered().then(() => (this[tr] = !0, t(this._server)), e);
5064
5073
  }
5065
- function li(t, e) {
5074
+ function di(t, e) {
5066
5075
  const r = this._server, n = this._error;
5067
5076
  let i;
5068
5077
  if (this._error = null, t.length === 0)
@@ -5075,14 +5084,14 @@ function li(t, e) {
5075
5084
  };
5076
5085
  t.length === 2 ? t(n, o) : t(n, r, o);
5077
5086
  } else
5078
- Ou.call(this, t, n, r, e);
5087
+ _u.call(this, t, n, r, e);
5079
5088
  }
5080
- function Ou(t, e, r, n) {
5089
+ function _u(t, e, r, n) {
5081
5090
  const i = t.name;
5082
5091
  ze("setting up ready timeout", i, this._timeout);
5083
5092
  let o = setTimeout(() => {
5084
5093
  ze("timed out", i), o = null;
5085
- const a = new wu(i);
5094
+ const a = new Au(i);
5086
5095
  a.fn = t, this._error = a, n(a);
5087
5096
  }, this._timeout);
5088
5097
  t.length === 2 ? t(e, s.bind(this)) : t(e, r, s.bind(this));
@@ -5090,7 +5099,7 @@ function Ou(t, e, r, n) {
5090
5099
  o && (clearTimeout(o), this._error = a, n(this._error));
5091
5100
  }
5092
5101
  }
5093
- function _u(t, e) {
5102
+ function Lu(t, e) {
5094
5103
  const r = this._server, n = t[this._isOnCloseHandlerKey];
5095
5104
  if (t.length === 0 || t.length === 1) {
5096
5105
  let i;
@@ -5100,7 +5109,7 @@ function _u(t, e) {
5100
5109
  )) : A.nextTick(e);
5101
5110
  } else t.length === 2 ? t(n ? r : this._error, e) : n ? t(r, e) : t(this._error, r, e);
5102
5111
  }
5103
- function Lu(t, e) {
5112
+ function Cu(t, e) {
5104
5113
  return r.bind(e);
5105
5114
  function r(n, i) {
5106
5115
  let o;
@@ -5122,16 +5131,16 @@ function rr(t, e) {
5122
5131
  }, i) : A.nextTick(i)) : t.length === 2 ? t(n, i) : t(n, this, i) : A.nextTick(i);
5123
5132
  }
5124
5133
  }
5125
- Sr.exports = x;
5134
+ Sr.exports = q;
5126
5135
  Sr.exports.express = function(t) {
5127
- return x(t, {
5136
+ return q(t, {
5128
5137
  expose: {
5129
5138
  use: "load"
5130
5139
  }
5131
5140
  });
5132
5141
  };
5133
- var Cu = Sr.exports;
5134
- const ku = /* @__PURE__ */ is(Cu);
5142
+ var ku = Sr.exports;
5143
+ const Pu = /* @__PURE__ */ os(ku);
5135
5144
  (function() {
5136
5145
  if (window.requestAnimationFrame && window.cancelAnimationFrame)
5137
5146
  return;
@@ -5149,9 +5158,9 @@ const ku = /* @__PURE__ */ is(Cu);
5149
5158
  }, window.cancelAnimationFrame = clearTimeout;
5150
5159
  }
5151
5160
  })();
5152
- function ec(t, e = !0, r = !0, n) {
5153
- const i = e ? "https://grpc-sdk.streamlayer.io:443" : "https://grpc-sdk.next.streamlayer.io:443", o = e ? "https://grpc.streamlayer.io:443" : "https://grpc.next.streamlayer.io:443", s = ku(/* @__PURE__ */ Object.create({}), { autostart: !1 });
5154
- return s.use(Do), s.use(Lo, { onDeepLinkHandled: n?.onDeepLinkHandled }), s.use(No, { videoPlayerController: n?.videoPlayerController }), s.use(Fo, { onContentActivate: n?.onContentActivate }), s.use(zi, { sdkKey: t, host: i, analyticsHost: o, version: n?.version }), s.use(Xi), s.use(Po), s.use(zo), s.use(vo), s.use(ns), s.after((a, u, f) => {
5161
+ function tc(t, e = !0, r = !0, n) {
5162
+ const i = e ? "https://grpc-sdk.streamlayer.io:443" : "https://grpc-sdk.next.streamlayer.io:443", o = e ? "https://grpc.streamlayer.io:443" : "https://grpc.next.streamlayer.io:443", s = Pu(/* @__PURE__ */ Object.create({}), { autostart: !1 });
5163
+ return s.use(Ro), s.use(Co, { onDeepLinkHandled: n?.onDeepLinkHandled }), s.use(Fo, { videoPlayerController: n?.videoPlayerController }), s.use(Do, { onContentActivate: n?.onContentActivate }), s.use(Hi, { sdkKey: t, host: i, analyticsHost: o, version: n?.version }), s.use(Zi), s.use(No), s.use(Ho), s.use(bo), s.use(is), s.after((a, u, f) => {
5155
5164
  if (a)
5156
5165
  throw a;
5157
5166
  u.ready(), f();
@@ -5164,5 +5173,5 @@ function ec(t, e = !0, r = !0, n) {
5164
5173
  }), s;
5165
5174
  }
5166
5175
  export {
5167
- ec as StreamLayer
5176
+ tc as StreamLayer
5168
5177
  };