@streamlayer/sdk-web 1.18.3 → 1.18.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/{index-dVPVtnz0.cjs → index-D_gW50vh.cjs} +1 -1
- package/lib/{index-ByUNFvMk.js → index-DvqmgCor.js} +1 -1
- package/lib/index-Dy37XW2P.cjs +15 -0
- package/lib/{index-D7fJzYpJ.js → index-qWOeRhb-.js} +524 -522
- package/package.json +13 -13
- package/lib/index-BgM54Fzy.cjs +0 -15
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { pino as _i } from "pino";
|
|
2
|
-
import { QuestionStatus as ue, QuestionType as q, AdUnit as me, PromotionType as Q, NotificationEnabled as
|
|
2
|
+
import { QuestionStatus as ue, QuestionType as q, AdUnit as me, PromotionType as Q, NotificationEnabled as Er, SilenceSetting as Di, NotificationUseContentTexts as Tr, FactoidMediaMode as Fi, UseAsNotification as Ui } from "@streamlayer/sl-eslib/interactive/interactive.common_pb";
|
|
3
3
|
import { Feed as de, PickHistoryStatus as tt } from "@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb";
|
|
4
4
|
import { SdkOverlayType as J } from "@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb";
|
|
5
5
|
import { InvitationFrom as Ir, InvitationCategory as Or } from "@streamlayer/sl-eslib/analytics/v1/invitations/invitations_pb";
|
|
6
6
|
import { computed as Vi, map as xi, atom as Ye, batched as kr, onMount as pr, onStart as Bi } from "nanostores";
|
|
7
7
|
import { v4 as qe } from "uuid";
|
|
8
|
-
import { ConnectError as
|
|
8
|
+
import { ConnectError as $e, Code as ye, createContextKey as Nr, createClient as Rr, createContextValues as qi } from "@connectrpc/connect";
|
|
9
9
|
import { createGrpcWebTransport as Lr } from "@connectrpc/connect-web";
|
|
10
10
|
import { nanoquery as Cr } from "@nanostores/query";
|
|
11
11
|
import { Events as Jn } from "@streamlayer/sl-eslib/sports/events/events_pb";
|
|
@@ -14,10 +14,10 @@ import { Users as hr } from "@streamlayer/sl-eslib/users/users_pb";
|
|
|
14
14
|
import { Leaderboard as Zn } from "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb";
|
|
15
15
|
import { LinksClient as Mi } from "@streamlayer/sl-eslib/shortLinks/linksClient_pb";
|
|
16
16
|
import { PolymarketSportsClient as ji, Timeframe as Gi } from "@streamlayer/sl-eslib/polymarket/sportsClient_pb";
|
|
17
|
-
import { Kind as j, TopicSubType as Z, PollOpenedFrom as ee, TopicType as
|
|
17
|
+
import { Kind as j, TopicSubType as Z, PollOpenedFrom as ee, TopicType as K, Category as ae, ScreenOrientation as Pr } from "@streamlayer/sl-eslib/analytics/v1/common/analytics.common_pb";
|
|
18
18
|
import { AnalyticsService as ei } from "@streamlayer/sl-eslib/analytics/v2/streaming/streaming_pb";
|
|
19
19
|
import { InteractionActionType as _r } from "@streamlayer/sl-eslib/analytics/v1/interactions/interactions_pb";
|
|
20
|
-
import { NotificationKind as
|
|
20
|
+
import { NotificationKind as Te, NotificationType as Dr } from "@streamlayer/sl-eslib/analytics/v1/notifications/notifications_pb";
|
|
21
21
|
function Qi(t) {
|
|
22
22
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
23
23
|
}
|
|
@@ -131,8 +131,8 @@ ne.chdir = function(t) {
|
|
|
131
131
|
ne.umask = function() {
|
|
132
132
|
return 0;
|
|
133
133
|
};
|
|
134
|
-
var
|
|
135
|
-
const B = /* @__PURE__ */ Qi(
|
|
134
|
+
var Ki = ti.exports;
|
|
135
|
+
const B = /* @__PURE__ */ Qi(Ki), $i = _i({
|
|
136
136
|
level: "trace",
|
|
137
137
|
enabled: typeof window < "u" && !!window.localStorage.getItem("SL_DEBUG"),
|
|
138
138
|
browser: {
|
|
@@ -140,7 +140,7 @@ const B = /* @__PURE__ */ Qi($i), Ki = _i({
|
|
|
140
140
|
console.log(t);
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
}), fe = (t, e) =>
|
|
143
|
+
}), fe = (t, e) => $i.child({ name: t }, e);
|
|
144
144
|
class zi extends Event {
|
|
145
145
|
slEventBus;
|
|
146
146
|
constructor(e, n) {
|
|
@@ -361,7 +361,7 @@ class ve extends mt {
|
|
|
361
361
|
key = () => this.getStore().key;
|
|
362
362
|
off = () => this.getStore().off();
|
|
363
363
|
}
|
|
364
|
-
const
|
|
364
|
+
const $ = new Xi();
|
|
365
365
|
async function* rs(t, e) {
|
|
366
366
|
for await (const n of e) {
|
|
367
367
|
t.response.message = n, t.received_at = Date.now(), t.id = Date.now();
|
|
@@ -545,7 +545,7 @@ class is {
|
|
|
545
545
|
for await (const s of i)
|
|
546
546
|
this.attempt = 0, this.onData(s);
|
|
547
547
|
} catch (r) {
|
|
548
|
-
r instanceof
|
|
548
|
+
r instanceof $e && r.code != ye.Canceled && this.onStreamError(r);
|
|
549
549
|
}
|
|
550
550
|
})(), this.updateState(ge.Connected);
|
|
551
551
|
};
|
|
@@ -585,7 +585,7 @@ class is {
|
|
|
585
585
|
*/
|
|
586
586
|
onStreamError = (e) => {
|
|
587
587
|
if (this.addStateLog(`error => ${e ? JSON.stringify(e) : "undefined"}}`), e !== void 0) {
|
|
588
|
-
if (e instanceof
|
|
588
|
+
if (e instanceof $e && e.code !== ye.Canceled) {
|
|
589
589
|
this.updateState(ge.Failed), this.state.setValue("error", e), e.code === ye.Unknown && e.cause === "missing trailer" && (this.attempt = 0), this.reconnect();
|
|
590
590
|
return;
|
|
591
591
|
}
|
|
@@ -601,7 +601,9 @@ const ss = /* @__PURE__ */ new Set([
|
|
|
601
601
|
ye.FailedPrecondition,
|
|
602
602
|
ye.Unavailable,
|
|
603
603
|
ye.DataLoss
|
|
604
|
-
]),
|
|
604
|
+
]), os = /* @__PURE__ */ new Set([
|
|
605
|
+
"An attempt was made to perform an operation that is not permitted: HttpStatusError: invalid SDK key"
|
|
606
|
+
]), Ur = fe("grpc:retry"), as = (t) => async (e) => {
|
|
605
607
|
const n = e.contextValues.get(cr.retryAttempts), r = 300, i = e.contextValues.get(cr.retryDelay);
|
|
606
608
|
if (e.stream || n === 0)
|
|
607
609
|
return t(e);
|
|
@@ -611,8 +613,8 @@ const ss = /* @__PURE__ */ new Set([
|
|
|
611
613
|
return await t(e);
|
|
612
614
|
} catch (o) {
|
|
613
615
|
Ur.trace({ attempt: s, error: o, url: e.url }, "retry attempt");
|
|
614
|
-
const a =
|
|
615
|
-
if (s >= n || !(a instanceof
|
|
616
|
+
const a = $e.from(o);
|
|
617
|
+
if (s >= n || !(a instanceof $e) || !ss.has(a.code) || os.has(a.rawMessage))
|
|
616
618
|
throw o;
|
|
617
619
|
const u = Math.min(i, Math.pow(2, s) * r), c = Math.round(u * (1 + Math.random()) / 2);
|
|
618
620
|
await new Promise((l) => setTimeout(l, c));
|
|
@@ -620,13 +622,13 @@ const ss = /* @__PURE__ */ new Set([
|
|
|
620
622
|
}, cr = {
|
|
621
623
|
retryAttempts: Nr(10, { description: "Number of attempts to retry" }),
|
|
622
624
|
retryDelay: Nr(3e4, { description: "Max delay between retries in milliseconds" })
|
|
623
|
-
},
|
|
625
|
+
}, us = () => {
|
|
624
626
|
const t = localStorage.getItem("sl-device-id");
|
|
625
627
|
if (t)
|
|
626
628
|
return t;
|
|
627
629
|
const e = qe();
|
|
628
630
|
return localStorage.setItem("sl-device-id", e), e;
|
|
629
|
-
},
|
|
631
|
+
}, cs = () => navigator.userAgentData?.platform || navigator.platform, ls = (t) => t ? "webOS" : navigator.userAgentData && navigator.userAgentData.mobile || "ontouchstart" in window || navigator.maxTouchPoints > 0 ? "mobile-web" : "desktop-web";
|
|
630
632
|
class Vr {
|
|
631
633
|
toJsonOptions = {
|
|
632
634
|
emitDefaultValues: !1,
|
|
@@ -649,9 +651,9 @@ class Vr {
|
|
|
649
651
|
opts;
|
|
650
652
|
constructor(e, n) {
|
|
651
653
|
this.host = e, this.opts = n, this.$headers = new Fe(le({
|
|
652
|
-
"sl-device-id":
|
|
653
|
-
"sl-device-os":
|
|
654
|
-
"sl-platform":
|
|
654
|
+
"sl-device-id": us(),
|
|
655
|
+
"sl-device-os": cs(),
|
|
656
|
+
"sl-platform": ls(n?.webOS)
|
|
655
657
|
}), "transport:headers"), this.initInterceptors(), this.clients = /* @__PURE__ */ new Map(), this.streamClients = /* @__PURE__ */ new Map(), this.subscriptions = /* @__PURE__ */ new Map(), this.storeCache = /* @__PURE__ */ new Map();
|
|
656
658
|
const [r, i, s] = Cr({
|
|
657
659
|
dedupeTime: n?.dedupeTime,
|
|
@@ -755,10 +757,10 @@ class Vr {
|
|
|
755
757
|
r.header.set(s, i[s]);
|
|
756
758
|
return n(r);
|
|
757
759
|
};
|
|
758
|
-
this.interceptors.push(e), window.localStorage.getItem("SL_GRPC_DEVTOOLS") === "true" ? this.interceptors.push(ns()) : console.warn("SL GRPC DevTools is disabled. To enable, set SL_GRPC_DEVTOOLS to true in localStorage."), this.opts?.retryable && this.interceptors.push(
|
|
760
|
+
this.interceptors.push(e), window.localStorage.getItem("SL_GRPC_DEVTOOLS") === "true" ? this.interceptors.push(ns()) : console.warn("SL GRPC DevTools is disabled. To enable, set SL_GRPC_DEVTOOLS to true in localStorage."), this.opts?.retryable && this.interceptors.push(as);
|
|
759
761
|
};
|
|
760
762
|
}
|
|
761
|
-
const
|
|
763
|
+
const ds = (t, e) => {
|
|
762
764
|
const { client: n, queryKey: r } = e.createPromiseClient(Jn, {
|
|
763
765
|
method: "retrieveEventId",
|
|
764
766
|
params: [t]
|
|
@@ -776,7 +778,7 @@ const ls = (t, e) => {
|
|
|
776
778
|
}
|
|
777
779
|
}
|
|
778
780
|
});
|
|
779
|
-
},
|
|
781
|
+
}, fs = (t, e) => {
|
|
780
782
|
const { client: n, queryKey: r } = e.createPromiseClient(Xe, { method: "getStream", params: [t] });
|
|
781
783
|
return e.nanoquery.createFetcherStore(r, {
|
|
782
784
|
fetcher: async (i, s, o) => o ? (await n.getStream({
|
|
@@ -784,14 +786,14 @@ const ls = (t, e) => {
|
|
|
784
786
|
// we are sure that id is a string
|
|
785
787
|
})).data?.attributes : void 0
|
|
786
788
|
});
|
|
787
|
-
},
|
|
789
|
+
}, ps = (t, e) => {
|
|
788
790
|
const { client: n, queryKey: r } = e.createPromiseClient(Jn, { method: "summary", params: [t] });
|
|
789
791
|
return e.nanoquery.createFetcherStore(r, {
|
|
790
792
|
fetcher: async (i, s, o) => o ? (await n.summary({
|
|
791
793
|
id: o
|
|
792
794
|
})).data?.attributes : void 0
|
|
793
795
|
});
|
|
794
|
-
},
|
|
796
|
+
}, hs = (t, e) => {
|
|
795
797
|
const { queryKey: n, client: r } = e.createPromiseClient(hr, { method: "me", params: [t] });
|
|
796
798
|
return e.nanoquery.createFetcherStore(n, {
|
|
797
799
|
fetcher: async () => {
|
|
@@ -801,15 +803,15 @@ const ls = (t, e) => {
|
|
|
801
803
|
return { data: s };
|
|
802
804
|
}
|
|
803
805
|
});
|
|
804
|
-
},
|
|
806
|
+
}, ms = (t) => {
|
|
805
807
|
const { client: e, createRequestOptions: n } = t.createPromiseClient(hr, { method: "bypassAuth" }), r = n({ retryAttempts: 0 });
|
|
806
808
|
return ({ userKey: i, schema: s, init: o, inviterKey: a }) => e.bypassAuth({ userKey: i, schema: s, init: o, inviterKey: a }, { contextValues: r });
|
|
807
|
-
},
|
|
809
|
+
}, gs = (t, e) => {
|
|
808
810
|
const { client: n, queryKey: r } = e.createPromiseClient(Xe, { method: "get", params: [t] });
|
|
809
811
|
return e.nanoquery.createFetcherStore(r, {
|
|
810
812
|
fetcher: async () => (await n.get({})).data?.attributes
|
|
811
813
|
});
|
|
812
|
-
},
|
|
814
|
+
}, ys = (t, e) => {
|
|
813
815
|
const { client: n, queryKey: r } = e.createPromiseClient(Xe, { method: "getOrganization", params: [t] });
|
|
814
816
|
return e.nanoquery.createFetcherStore(r, {
|
|
815
817
|
fetcher: async () => {
|
|
@@ -820,7 +822,7 @@ const ls = (t, e) => {
|
|
|
820
822
|
} : void 0;
|
|
821
823
|
}
|
|
822
824
|
});
|
|
823
|
-
},
|
|
825
|
+
}, vs = (t, e) => {
|
|
824
826
|
const { client: n, queryKey: r } = e.createPromiseClient(Xe, {
|
|
825
827
|
method: "getOrganizationAdvertising",
|
|
826
828
|
params: [t]
|
|
@@ -828,7 +830,7 @@ const ls = (t, e) => {
|
|
|
828
830
|
return e.nanoquery.createFetcherStore(r, {
|
|
829
831
|
fetcher: async () => (await n.getOrganizationAdvertising({})).data?.attributes
|
|
830
832
|
});
|
|
831
|
-
},
|
|
833
|
+
}, bs = (t, e, n) => {
|
|
832
834
|
t.transport = new Vr(e.host, {
|
|
833
835
|
dedupeTime: 1e3 * 60 * 5,
|
|
834
836
|
// 5 minutes
|
|
@@ -873,19 +875,19 @@ var ke;
|
|
|
873
875
|
(function(t) {
|
|
874
876
|
t.DISABLED = "disabled", t.INITIALIZATION = "initialization", t.READY = "ready", t.FAILED = "failed", t.SUSPENDED = "suspended";
|
|
875
877
|
})(ke || (ke = {}));
|
|
876
|
-
const
|
|
877
|
-
const e = new Me(), n = new he(se(e.getExternalToken()), "userKey"), r = new he(se(e.getToken()), "userToken"), i = new ve(
|
|
878
|
+
const As = (t) => {
|
|
879
|
+
const e = new Me(), n = new he(se(e.getExternalToken()), "userKey"), r = new he(se(e.getToken()), "userToken"), i = new ve(hs(r.getStore(), t), "user", ({ data: o, error: a, loading: u }, c) => {
|
|
878
880
|
if (!a)
|
|
879
881
|
return o?.data?.id ? o.data.id : u === !1 ? void 0 : c;
|
|
880
|
-
}), s = new ve(
|
|
882
|
+
}), s = new ve(gs(r.getStore(), t), "userSettings");
|
|
881
883
|
return {
|
|
882
884
|
userKey: n,
|
|
883
885
|
userToken: r,
|
|
884
886
|
user: i,
|
|
885
887
|
userSettings: s
|
|
886
888
|
};
|
|
887
|
-
},
|
|
888
|
-
const e = new he(se(void 0), "providerStreamId"), n = new ve(
|
|
889
|
+
}, Ss = (t) => {
|
|
890
|
+
const e = new he(se(void 0), "providerStreamId"), n = new ve(ds(e.getStore(), t), "slStreamId", (s) => s?.data), r = new ve(fs(n.getAtomStore(), t), "streamSettings"), i = new ve(ps(n.getAtomStore(), t), "streamSettings");
|
|
889
891
|
return n.getAtomStore().listen((s) => {
|
|
890
892
|
(s === "" || s === void 0) && (r.getStore().mutate(void 0), i.getStore().mutate(void 0));
|
|
891
893
|
}), {
|
|
@@ -894,8 +896,8 @@ const bs = (t) => {
|
|
|
894
896
|
streamSettings: r,
|
|
895
897
|
streamSummary: i
|
|
896
898
|
};
|
|
897
|
-
},
|
|
898
|
-
const e = new he(se(void 0), "enabled"), n = new he(se(ke.DISABLED), "status"), r = new ve(
|
|
899
|
+
}, ws = (t) => {
|
|
900
|
+
const e = new he(se(void 0), "enabled"), n = new he(se(ke.DISABLED), "status"), r = new ve(ys(e.getStore(), t), "organizationSettings", (a) => a?.data?.id), i = new ve(vs(r.getAtomStore(), t), "organizationAdvertising"), s = As(t), o = Ss(t);
|
|
899
901
|
return {
|
|
900
902
|
enabled: e,
|
|
901
903
|
status: n,
|
|
@@ -911,10 +913,10 @@ const bs = (t) => {
|
|
|
911
913
|
organizationAdvertising: i
|
|
912
914
|
};
|
|
913
915
|
};
|
|
914
|
-
class
|
|
916
|
+
class Es extends mt {
|
|
915
917
|
stores;
|
|
916
918
|
constructor(e) {
|
|
917
|
-
const n =
|
|
919
|
+
const n = ws(e), r = Zi(n);
|
|
918
920
|
super(r, "core"), this.stores = n;
|
|
919
921
|
}
|
|
920
922
|
getValue() {
|
|
@@ -936,16 +938,16 @@ class ws extends mt {
|
|
|
936
938
|
unsubscribe = () => this.getStore().off();
|
|
937
939
|
}
|
|
938
940
|
const Ts = (t, e, n) => {
|
|
939
|
-
t.store = new
|
|
941
|
+
t.store = new Es(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(([r, i]) => [r, 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 = () => {
|
|
940
942
|
t.store.unsubscribe();
|
|
941
943
|
}, n();
|
|
942
|
-
},
|
|
944
|
+
}, Is = (t) => {
|
|
943
945
|
const { client: e } = t.createPromiseClient(Zn, { method: "list" });
|
|
944
946
|
return (n) => e.list(n);
|
|
945
947
|
}, ui = (t) => {
|
|
946
948
|
const { client: e } = t.createPromiseClient(Zn, { method: "summary" });
|
|
947
949
|
return (n) => e.summary(n);
|
|
948
|
-
},
|
|
950
|
+
}, Os = (t, e) => {
|
|
949
951
|
const { client: n, queryKey: r } = e.createPromiseClient(hr, {
|
|
950
952
|
method: "getFriends",
|
|
951
953
|
params: [t]
|
|
@@ -961,7 +963,7 @@ const Ts = (t, e, n) => {
|
|
|
961
963
|
}
|
|
962
964
|
}
|
|
963
965
|
});
|
|
964
|
-
},
|
|
966
|
+
}, ks = (t, e) => {
|
|
965
967
|
const { client: n, queryKey: r } = e.createPromiseClient(de, { method: "get", params: [t] });
|
|
966
968
|
return e.nanoquery.createFetcherStore(r, {
|
|
967
969
|
fetcher: async (i, s, o) => (await n.get({
|
|
@@ -970,7 +972,7 @@ const Ts = (t, e, n) => {
|
|
|
970
972
|
revalidateInterval: 0,
|
|
971
973
|
dedupeTime: 1e3 * 60 * 60
|
|
972
974
|
});
|
|
973
|
-
},
|
|
975
|
+
}, Ns = (t, e, n) => {
|
|
974
976
|
const { client: r, queryKey: i } = n.createPromiseClient(de, {
|
|
975
977
|
method: "syncQuestion",
|
|
976
978
|
params: [t, e ? "true" : ""]
|
|
@@ -991,17 +993,17 @@ const Ts = (t, e, n) => {
|
|
|
991
993
|
// 10 minutes
|
|
992
994
|
revalidateInterval: 0
|
|
993
995
|
});
|
|
994
|
-
},
|
|
996
|
+
}, Rs = async (t, e) => {
|
|
995
997
|
const { client: n } = e.createPromiseClient(de, { method: "item", params: [t] });
|
|
996
998
|
return (await n.item({
|
|
997
999
|
id: t
|
|
998
1000
|
})).data;
|
|
999
|
-
},
|
|
1001
|
+
}, Ls = (t, e) => {
|
|
1000
1002
|
const { client: n } = e.createStreamClient(de), r = Ye({ eventId: t.get() || "", feedId: "" });
|
|
1001
1003
|
return t.subscribe((s = "") => {
|
|
1002
1004
|
r.set({ eventId: s, feedId: "" });
|
|
1003
1005
|
}), e.addSubscription(n.subscription, r, { name: "feedSubscription" });
|
|
1004
|
-
},
|
|
1006
|
+
}, Cs = (t, e) => {
|
|
1005
1007
|
const { client: n } = e.createStreamClient(de);
|
|
1006
1008
|
return e.addSubscription(n.questionSubscription, { questionId: t }, { name: "questionSubscription" });
|
|
1007
1009
|
}, ci = async (t, e) => {
|
|
@@ -1037,7 +1039,7 @@ const Ts = (t, e, n) => {
|
|
|
1037
1039
|
return;
|
|
1038
1040
|
const { options: i, notification: s, ...o } = r.data.attributes, a = i?.options.case === "promotion" ? i?.options.value : void 0;
|
|
1039
1041
|
return { id: o.id, question: o, promotion: a, notification: s };
|
|
1040
|
-
},
|
|
1042
|
+
}, Ps = (t, e, n, r, i, s, o) => {
|
|
1041
1043
|
const { client: a, queryKey: u } = o.createPromiseClient(de, {
|
|
1042
1044
|
method: "list",
|
|
1043
1045
|
params: [t, e, s ? "true" : ""]
|
|
@@ -1058,7 +1060,7 @@ const Ts = (t, e, n) => {
|
|
|
1058
1060
|
organizationId: r.get()
|
|
1059
1061
|
};
|
|
1060
1062
|
for (const y of m.data)
|
|
1061
|
-
i.isQuestionReceived(h, y.id) || (
|
|
1063
|
+
i.isQuestionReceived(h, y.id) || ($.emit("poll", {
|
|
1062
1064
|
action: "received",
|
|
1063
1065
|
payload: {
|
|
1064
1066
|
isAd: y.attributes?.adUnit == me.UNSET,
|
|
@@ -1071,7 +1073,7 @@ const Ts = (t, e, n) => {
|
|
|
1071
1073
|
dedupeTime: 1 / 0,
|
|
1072
1074
|
revalidateInterval: 0
|
|
1073
1075
|
});
|
|
1074
|
-
},
|
|
1076
|
+
}, _s = (t, e) => {
|
|
1075
1077
|
const { client: n, queryKey: r } = e.createPromiseClient(de, {
|
|
1076
1078
|
method: "list",
|
|
1077
1079
|
params: [t]
|
|
@@ -1097,7 +1099,7 @@ const Ts = (t, e, n) => {
|
|
|
1097
1099
|
dedupeTime: 1 / 0,
|
|
1098
1100
|
revalidateInterval: 0
|
|
1099
1101
|
});
|
|
1100
|
-
},
|
|
1102
|
+
}, Ds = (t, e, n, r, i) => {
|
|
1101
1103
|
const { client: s, queryKey: o } = i.createPromiseClient(de, {
|
|
1102
1104
|
method: "betPack",
|
|
1103
1105
|
params: [t, e, n]
|
|
@@ -1133,7 +1135,7 @@ const Ts = (t, e, n) => {
|
|
|
1133
1135
|
userId: l,
|
|
1134
1136
|
organizationId: f
|
|
1135
1137
|
};
|
|
1136
|
-
return r.isQuestionReceived(y, h.id) || (
|
|
1138
|
+
return r.isQuestionReceived(y, h.id) || ($.emit("poll", {
|
|
1137
1139
|
action: "received",
|
|
1138
1140
|
payload: {
|
|
1139
1141
|
isAd: h?.adUnit == me.UNSET,
|
|
@@ -1147,7 +1149,7 @@ const Ts = (t, e, n) => {
|
|
|
1147
1149
|
dedupeTime: 1 / 0,
|
|
1148
1150
|
revalidateInterval: 0
|
|
1149
1151
|
});
|
|
1150
|
-
},
|
|
1152
|
+
}, Fs = (t, e, n) => {
|
|
1151
1153
|
const r = kr([e, n], () => {
|
|
1152
1154
|
const a = e.get();
|
|
1153
1155
|
if (!a)
|
|
@@ -1183,7 +1185,7 @@ var je;
|
|
|
1183
1185
|
(function(t) {
|
|
1184
1186
|
t.SHOWED = "showed", t.EVENT = "ev";
|
|
1185
1187
|
})(je || (je = {}));
|
|
1186
|
-
class
|
|
1188
|
+
class Us extends We {
|
|
1187
1189
|
constructor() {
|
|
1188
1190
|
super("advertisement");
|
|
1189
1191
|
}
|
|
@@ -1196,7 +1198,7 @@ class Fs extends We {
|
|
|
1196
1198
|
};
|
|
1197
1199
|
isEventFired = (e, n) => this.read(je.EVENT, n, e) === "true";
|
|
1198
1200
|
}
|
|
1199
|
-
const
|
|
1201
|
+
const Vs = (t) => {
|
|
1200
1202
|
const e = t.data?.attributes?.question;
|
|
1201
1203
|
if ((t.data?.attributes?.feedItem?.type === "promotion" ? t.data.attributes.feedItem : void 0) === void 0 || !e)
|
|
1202
1204
|
return;
|
|
@@ -1207,7 +1209,7 @@ const Us = (t) => {
|
|
|
1207
1209
|
notification: i,
|
|
1208
1210
|
promotion: o
|
|
1209
1211
|
};
|
|
1210
|
-
}, rt = (t) => t.startsWith("http://") || t.startsWith("https://") ? new URL(t).toString() : t,
|
|
1212
|
+
}, rt = (t) => t.startsWith("http://") || t.startsWith("https://") ? new URL(t).toString() : t, xs = ({ gamOptions: t, gamBaseUrl: e }) => {
|
|
1211
1213
|
const n = `${e}?`, r = [];
|
|
1212
1214
|
for (const i in t) {
|
|
1213
1215
|
const s = i.replace(/([a-zA-Z])(?=[A-Z])/g, "$1_").toLowerCase(), o = t[i];
|
|
@@ -1222,33 +1224,33 @@ const Us = (t) => {
|
|
|
1222
1224
|
}
|
|
1223
1225
|
}
|
|
1224
1226
|
return n + r.join("&");
|
|
1225
|
-
}, xe = (t) => (t?.promotion?.type === Q.INGAME_IAB11_LBAR || t?.promotion?.type === Q.INGAME_IAB21_LBAR) && !!t.promotion.additionalBanner?.imageUrl,
|
|
1227
|
+
}, xe = (t) => (t?.promotion?.type === Q.INGAME_IAB11_LBAR || t?.promotion?.type === Q.INGAME_IAB21_LBAR) && !!t.promotion.additionalBanner?.imageUrl, Bs = (t, e, n) => {
|
|
1226
1228
|
let r = !1;
|
|
1227
|
-
const i = n.transport, s = fe("advertisement"), o = new
|
|
1229
|
+
const i = n.transport, s = fe("advertisement"), o = new Us(), a = (S, w) => {
|
|
1228
1230
|
o.fireEvent(S, w);
|
|
1229
|
-
}, u = (S, w) => o.isEventFired(S, w), c = le({}), l =
|
|
1230
|
-
const w = c.get(), v = w.data?.question.id,
|
|
1231
|
+
}, u = (S, w) => o.isEventFired(S, w), c = le({}), l = _s(t, i), f = (S) => {
|
|
1232
|
+
const w = c.get(), v = w.data?.question.id, E = w.data?.promotion?.type;
|
|
1231
1233
|
if (!v)
|
|
1232
1234
|
return;
|
|
1233
|
-
c.get()?.isOpened || (c.setKey("isOpened", !0),
|
|
1235
|
+
c.get()?.isOpened || (c.setKey("isOpened", !0), $.emit("advertisement", {
|
|
1234
1236
|
action: "opened",
|
|
1235
1237
|
payload: {
|
|
1236
1238
|
id: v,
|
|
1237
|
-
type:
|
|
1239
|
+
type: E,
|
|
1238
1240
|
hasBanner: xe(w.data),
|
|
1239
1241
|
openedFrom: S?.fromNotification ? "notification" : "auto"
|
|
1240
1242
|
}
|
|
1241
|
-
})), S?.fromNotification && (c.setKey("hasNotification", !1),
|
|
1243
|
+
})), S?.fromNotification && (c.setKey("hasNotification", !1), $.emit("advertisement", {
|
|
1242
1244
|
action: "notification-opened",
|
|
1243
1245
|
payload: {
|
|
1244
1246
|
id: v,
|
|
1245
|
-
type:
|
|
1247
|
+
type: E,
|
|
1246
1248
|
hasBanner: xe(w.data)
|
|
1247
1249
|
}
|
|
1248
1250
|
}));
|
|
1249
1251
|
}, d = () => {
|
|
1250
|
-
const S = c.get(), w = S.data?.question.id, v = S.data?.promotion?.type,
|
|
1251
|
-
w && !
|
|
1252
|
+
const S = c.get(), w = S.data?.question.id, v = S.data?.promotion?.type, E = c.get()?.isOpened;
|
|
1253
|
+
w && !E && (s.debug({ id: w }, "markAsViewed: %o"), o.setShowed(w), c.setKey("isOpened", !0), $.emit("advertisement", {
|
|
1252
1254
|
action: "viewed",
|
|
1253
1255
|
payload: {
|
|
1254
1256
|
id: w,
|
|
@@ -1261,7 +1263,7 @@ const Us = (t) => {
|
|
|
1261
1263
|
loading: !1,
|
|
1262
1264
|
error: void 0,
|
|
1263
1265
|
data: w,
|
|
1264
|
-
hasNotification: w?.notification?.enabled ===
|
|
1266
|
+
hasNotification: w?.notification?.enabled === Er.NOTIFICATION_ENABLED,
|
|
1265
1267
|
close: () => m(w.question.id),
|
|
1266
1268
|
togglePause: (v) => h(w.question.id, v),
|
|
1267
1269
|
toggleMute: (v) => y(w.question.id, v),
|
|
@@ -1272,13 +1274,13 @@ const Us = (t) => {
|
|
|
1272
1274
|
loading: !1,
|
|
1273
1275
|
error: void 0,
|
|
1274
1276
|
data: v,
|
|
1275
|
-
hasNotification: v?.notification?.enabled ===
|
|
1277
|
+
hasNotification: v?.notification?.enabled === Er.NOTIFICATION_ENABLED,
|
|
1276
1278
|
close: () => m(v?.question.id),
|
|
1277
|
-
togglePause: (
|
|
1278
|
-
toggleMute: (
|
|
1279
|
+
togglePause: (E) => h(v?.question.id, E),
|
|
1280
|
+
toggleMute: (E) => y(v?.question.id, E),
|
|
1279
1281
|
isViewed: v && !!o.isViewed(v.question.id),
|
|
1280
|
-
fireEvent: (
|
|
1281
|
-
isEventFired: (
|
|
1282
|
+
fireEvent: (E) => a(S, E),
|
|
1283
|
+
isEventFired: (E) => u(S, E)
|
|
1282
1284
|
})).catch((v) => c.set({
|
|
1283
1285
|
loading: !1,
|
|
1284
1286
|
error: v,
|
|
@@ -1291,10 +1293,10 @@ const Us = (t) => {
|
|
|
1291
1293
|
c.subscribe((S, w) => {
|
|
1292
1294
|
if (!(S.data?.id === w?.data?.id && S.isPaused !== w?.isPaused)) {
|
|
1293
1295
|
if (S.data?.promotion?.type === Q.EXTERNAL_AD && !S?.externalAd && S.data.promotion.adCampaigns?.desktopWebSettings) {
|
|
1294
|
-
const v =
|
|
1296
|
+
const v = xs(S.data.promotion.adCampaigns.desktopWebSettings);
|
|
1295
1297
|
c.setKey("externalAd", { type: "gam", url: v });
|
|
1296
1298
|
}
|
|
1297
|
-
S.data?.promotion && !S.isOpened && (
|
|
1299
|
+
S.data?.promotion && !S.isOpened && ($.emit("advertisement", {
|
|
1298
1300
|
action: "received",
|
|
1299
1301
|
payload: {
|
|
1300
1302
|
id: S.data.question.id,
|
|
@@ -1304,7 +1306,7 @@ const Us = (t) => {
|
|
|
1304
1306
|
isViewed: !!o.isViewed(S.data.question.id)
|
|
1305
1307
|
},
|
|
1306
1308
|
skipAnalytics: S.data.question.id === w?.data?.question.id
|
|
1307
|
-
}), S.data.question.id !== w?.data?.question.id && !o.isViewed(S.data.question.id) &&
|
|
1309
|
+
}), S.data.question.id !== w?.data?.question.id && !o.isViewed(S.data.question.id) && $.emit("advertisement", {
|
|
1308
1310
|
action: "notification-received",
|
|
1309
1311
|
payload: {
|
|
1310
1312
|
id: S.data.question.id,
|
|
@@ -1313,7 +1315,7 @@ const Us = (t) => {
|
|
|
1313
1315
|
hasBanner: xe(S.data),
|
|
1314
1316
|
isViewed: !1
|
|
1315
1317
|
}
|
|
1316
|
-
})), !S?.data && w?.data &&
|
|
1318
|
+
})), !S?.data && w?.data && $.emit("advertisement", {
|
|
1317
1319
|
action: "closed",
|
|
1318
1320
|
payload: {
|
|
1319
1321
|
id: w.data.question.id,
|
|
@@ -1336,7 +1338,7 @@ const Us = (t) => {
|
|
|
1336
1338
|
r || (r = !0, l.subscribe((S, w) => {
|
|
1337
1339
|
S.data && (!w?.data || S.data.id !== w.data.id) && p(S.data.question.id, S.data);
|
|
1338
1340
|
}), e.addListener("promotion", (S) => {
|
|
1339
|
-
const w =
|
|
1341
|
+
const w = Vs(S);
|
|
1340
1342
|
if (w) {
|
|
1341
1343
|
if (w.question.status === ue.RESOLVED) {
|
|
1342
1344
|
m(w.question.id), s.debug({ promotion: w }, "resolved: %o");
|
|
@@ -1355,7 +1357,7 @@ var be;
|
|
|
1355
1357
|
(function(t) {
|
|
1356
1358
|
t.ONBOARDING = "onboarding", t.ONBOARDING_IO = "onboarding_io", t.QUESTION_RECEIVED = "q-received", t.QUESTION_OPENED = "q-opened";
|
|
1357
1359
|
})(be || (be = {}));
|
|
1358
|
-
class
|
|
1360
|
+
class qs extends We {
|
|
1359
1361
|
constructor() {
|
|
1360
1362
|
super("gamification-session", window.sessionStorage);
|
|
1361
1363
|
}
|
|
@@ -1364,10 +1366,10 @@ class Bs extends We {
|
|
|
1364
1366
|
};
|
|
1365
1367
|
readValue = (e) => this.read(...e);
|
|
1366
1368
|
}
|
|
1367
|
-
class
|
|
1369
|
+
class Ms extends We {
|
|
1368
1370
|
sessionStorage;
|
|
1369
1371
|
constructor() {
|
|
1370
|
-
super("gamification"), this.sessionStorage = new
|
|
1372
|
+
super("gamification"), this.sessionStorage = new qs();
|
|
1371
1373
|
}
|
|
1372
1374
|
saveQuestionReceived = ({ userId: e, eventId: n, organizationId: r }, i) => {
|
|
1373
1375
|
this.write(be.QUESTION_RECEIVED, r, e, n, i, "1");
|
|
@@ -1390,7 +1392,7 @@ var Pe;
|
|
|
1390
1392
|
(function(t) {
|
|
1391
1393
|
t.ALLOWED = "allowed", t.DISALLOWED = "disallowed";
|
|
1392
1394
|
})(Pe || (Pe = {}));
|
|
1393
|
-
class
|
|
1395
|
+
class js {
|
|
1394
1396
|
/** sl event id */
|
|
1395
1397
|
slStreamId;
|
|
1396
1398
|
/** organization id */
|
|
@@ -1425,10 +1427,10 @@ class Ms {
|
|
|
1425
1427
|
transport;
|
|
1426
1428
|
cancels = /* @__PURE__ */ new Set();
|
|
1427
1429
|
constructor(e) {
|
|
1428
|
-
this.transport = e.transport, this.log = fe("gamification-background"), this.storage = new
|
|
1430
|
+
this.transport = e.transport, this.log = fe("gamification-background"), this.storage = new Ms(), this.slStreamId = e.stores.slStreamId.getAtomStore(), this.organizationId = e.stores.organizationSettings.getAtomStore(), this.userId = e.stores.user.getAtomStore(), this.moderationId = new he(se(void 0), "moderationId").getStore(), this.interactiveAllowed = new he(se(Pe.DISALLOWED), "interactiveAllowed").getStore(), this.openedQuestionId = new he(se(void 0), "openedQuestionId").getStore(), this.notifications = e.notifications, this.moderation = new ve(ks(this.slStreamId, e.transport), "gamification:moderation");
|
|
1429
1431
|
const n = !!e.sdk.options.get().betPack;
|
|
1430
|
-
this.feedList = new ve(
|
|
1431
|
-
this.log.debug({ item: r }, "received question"), r?.questionId ? (this.log.info("cleanup on close question"), this.questionSubscription !== void 0 && (e.transport.removeSubscription(this.questionSubscription), this.questionSubscription = void 0), this.questionSubscription =
|
|
1432
|
+
this.feedList = new ve(Ps(this.slStreamId, this.interactiveAllowed, this.userId, this.organizationId, this.storage, n, e.transport), "gamification:feedList"), this.betPack = new ve(Ds(this.slStreamId, this.userId, this.organizationId, this.storage, e.transport), "gamification:betPack"), this.activeQuestionId = Ns(this.slStreamId, n, e.transport), this.openedQuestion = Fs(e.transport, this.openedQuestionId, this.feedList.getStore()), this.cancels.add(this.openedQuestionId.listen((r) => {
|
|
1433
|
+
this.log.debug({ item: r }, "received question"), r?.questionId ? (this.log.info("cleanup on close question"), this.questionSubscription !== void 0 && (e.transport.removeSubscription(this.questionSubscription), this.questionSubscription = void 0), this.questionSubscription = Cs(r.questionId, e.transport), this.questionSubscription.addListener("feed-subscription-opened-question", (i) => {
|
|
1432
1434
|
const s = i.data?.attributes?.question;
|
|
1433
1435
|
if (this.openedQuestion.updateExtendedQuestion(s), this.betPack && s?.type === q.PREDICTION && (s.status === ue.ACTIVE || s.status === ue.RESOLVED)) {
|
|
1434
1436
|
const o = this.betPack.getValues().data?.data || {}, a = o?.[s.id];
|
|
@@ -1459,7 +1461,7 @@ class Ms {
|
|
|
1459
1461
|
}
|
|
1460
1462
|
}
|
|
1461
1463
|
}), this.questionSubscription.connect()) : (this.log.info("cleanup on close question"), this.questionSubscription !== void 0 && (e.transport.removeSubscription(this.questionSubscription), this.questionSubscription = void 0));
|
|
1462
|
-
})), this.feedSubscription =
|
|
1464
|
+
})), this.feedSubscription = Ls(this.slStreamId, e.transport), this.cancels.add(this.feedSubscription.addListener("bet-pack-update", async (r) => {
|
|
1463
1465
|
const i = r.data?.attributes?.question;
|
|
1464
1466
|
if (this.betPack && i?.type === q.PREDICTION && (i.status === ue.ACTIVE || i.status === ue.RESOLVED)) {
|
|
1465
1467
|
const s = this.betPack.getValues().data?.data || {}, o = s?.[i.id];
|
|
@@ -1531,7 +1533,7 @@ class Ms {
|
|
|
1531
1533
|
this.activeQuestionId.off();
|
|
1532
1534
|
for (const r of this.cancels)
|
|
1533
1535
|
r(), this.cancels.delete(r);
|
|
1534
|
-
}), n || (this.advertisement =
|
|
1536
|
+
}), n || (this.advertisement = Bs(this.slStreamId, this.feedSubscription, e));
|
|
1535
1537
|
}
|
|
1536
1538
|
/**
|
|
1537
1539
|
* Get id for notifications and link with current session
|
|
@@ -1561,7 +1563,7 @@ class Ms {
|
|
|
1561
1563
|
this.openedQuestionId.set(void 0), e && this.notifications.markAsViewed(this.getCurrentSessionId({ prefix: "notification", entity: e }));
|
|
1562
1564
|
};
|
|
1563
1565
|
}
|
|
1564
|
-
class
|
|
1566
|
+
class Gs {
|
|
1565
1567
|
notificationsList;
|
|
1566
1568
|
store;
|
|
1567
1569
|
timeouts;
|
|
@@ -1614,7 +1616,7 @@ class js {
|
|
|
1614
1616
|
this.logger.debug({ notificationId: e }, "active queue tick skipped, notification not exist");
|
|
1615
1617
|
return;
|
|
1616
1618
|
}
|
|
1617
|
-
|
|
1619
|
+
$.emit("notification", {
|
|
1618
1620
|
action: "received",
|
|
1619
1621
|
payload: {
|
|
1620
1622
|
type: n.type,
|
|
@@ -1641,7 +1643,7 @@ class js {
|
|
|
1641
1643
|
const a = new Map(this.notificationsList.get());
|
|
1642
1644
|
a.delete(e), this.notificationsList.set(a);
|
|
1643
1645
|
const u = this.timeouts.get(e);
|
|
1644
|
-
u !== void 0 && (clearTimeout(u), this.timeouts.delete(e)), this.logger.debug({ notificationId: e }, "notification hidden"), i.hiding &&
|
|
1646
|
+
u !== void 0 && (clearTimeout(u), this.timeouts.delete(e)), this.logger.debug({ notificationId: e }, "notification hidden"), i.hiding && $.emit("notification", {
|
|
1645
1647
|
action: "closed",
|
|
1646
1648
|
payload: {
|
|
1647
1649
|
type: i.type,
|
|
@@ -1666,7 +1668,7 @@ var ht;
|
|
|
1666
1668
|
(function(t) {
|
|
1667
1669
|
t.OPENED = "opened";
|
|
1668
1670
|
})(ht || (ht = {}));
|
|
1669
|
-
class
|
|
1671
|
+
class Qs extends We {
|
|
1670
1672
|
constructor() {
|
|
1671
1673
|
super("notification");
|
|
1672
1674
|
}
|
|
@@ -1678,11 +1680,11 @@ class Gs extends We {
|
|
|
1678
1680
|
this.clear();
|
|
1679
1681
|
};
|
|
1680
1682
|
}
|
|
1681
|
-
class
|
|
1683
|
+
class Ws {
|
|
1682
1684
|
queue;
|
|
1683
1685
|
storage;
|
|
1684
1686
|
constructor(e = {}) {
|
|
1685
|
-
this.storage = new
|
|
1687
|
+
this.storage = new Qs(), this.queue = new Gs({ concurrency: 1, animationDelay: 1600, ...e });
|
|
1686
1688
|
}
|
|
1687
1689
|
isViewed = (e) => this.storage.isOpened(e);
|
|
1688
1690
|
add = (e) => {
|
|
@@ -1690,7 +1692,7 @@ class Qs {
|
|
|
1690
1692
|
if (e.data && e.emitEvent) {
|
|
1691
1693
|
const r = e.action;
|
|
1692
1694
|
e.action = (...i) => {
|
|
1693
|
-
r && r(...i),
|
|
1695
|
+
r && r(...i), $.emit("notification", {
|
|
1694
1696
|
action: "opened",
|
|
1695
1697
|
payload: {
|
|
1696
1698
|
questionId: e.data.questionId,
|
|
@@ -1723,8 +1725,8 @@ class Qs {
|
|
|
1723
1725
|
this.storage.setOpened(e);
|
|
1724
1726
|
};
|
|
1725
1727
|
}
|
|
1726
|
-
const
|
|
1727
|
-
t.notifications = new
|
|
1728
|
+
const Hs = (t, e, n) => {
|
|
1729
|
+
t.notifications = new Ws(void 0), t.addNotification = t.notifications.add, t.sdk.getNotificationsStore = () => t.notifications.getQueueStore(), t.sdk.getActiveNotification = () => t.notifications.getActiveNotification(), t.sdk.onMount({ name: "notifications" }, () => () => {
|
|
1728
1730
|
t.notifications.queue.drain();
|
|
1729
1731
|
}), n();
|
|
1730
1732
|
};
|
|
@@ -1737,22 +1739,22 @@ const xr = async (t, e) => {
|
|
|
1737
1739
|
try {
|
|
1738
1740
|
return await n.submitAnswer({ data: e }, { contextValues: i });
|
|
1739
1741
|
} catch (s) {
|
|
1740
|
-
throw
|
|
1742
|
+
throw $e.from(s)?.code === ye.AlreadyExists ? new Error(Qe.ALREADY_VOTED) : new Error(Qe.UNKNOWN);
|
|
1741
1743
|
}
|
|
1742
1744
|
}, di = (t, e) => {
|
|
1743
1745
|
const { client: n, createRequestOptions: r } = t.createPromiseClient(de, { method: "submitInplay" }), i = r({ retryAttempts: 0 });
|
|
1744
1746
|
return n.submitInplay({ data: { eventId: +e } }, { contextValues: i });
|
|
1745
|
-
},
|
|
1747
|
+
}, Ks = {
|
|
1746
1748
|
pageSize: 10
|
|
1747
1749
|
}, $s = (t, e, n, r, i) => {
|
|
1748
1750
|
let s = 0;
|
|
1749
|
-
const o = se({ pageSize:
|
|
1751
|
+
const o = se({ pageSize: Ks.pageSize, page: 0 }), a = le({
|
|
1750
1752
|
data: [],
|
|
1751
1753
|
key: Date.now(),
|
|
1752
1754
|
hasMore: !0,
|
|
1753
1755
|
loading: void 0,
|
|
1754
1756
|
error: void 0
|
|
1755
|
-
}), u =
|
|
1757
|
+
}), u = Is(t), c = async () => {
|
|
1756
1758
|
const d = e.get(), p = r?.getStore().get().data?.map((m) => m.slId) || [];
|
|
1757
1759
|
if (d && p?.length) {
|
|
1758
1760
|
const m = n.get();
|
|
@@ -1785,7 +1787,7 @@ const xr = async (t, e) => {
|
|
|
1785
1787
|
};
|
|
1786
1788
|
}), { $store: a, fetchMore: f, invalidate: l };
|
|
1787
1789
|
};
|
|
1788
|
-
class
|
|
1790
|
+
class zs extends We {
|
|
1789
1791
|
get = this.read;
|
|
1790
1792
|
set = this.write;
|
|
1791
1793
|
del = this.remove;
|
|
@@ -1793,12 +1795,12 @@ class Ks extends We {
|
|
|
1793
1795
|
super("deep-link-context", window.sessionStorage);
|
|
1794
1796
|
}
|
|
1795
1797
|
}
|
|
1796
|
-
const Br = "sldl", gt = "sldl_uid", fi = "sldl_eid", pi = "sldl_e_eid",
|
|
1798
|
+
const Br = "sldl", gt = "sldl_uid", fi = "sldl_eid", pi = "sldl_e_eid", Ys = /* @__PURE__ */ new Set([gt, fi, pi]), qr = (t) => {
|
|
1797
1799
|
const e = {}, n = {};
|
|
1798
1800
|
for (const [r, i] of t)
|
|
1799
|
-
|
|
1801
|
+
Ys.has(r) ? e[r] = i : n[r] = i;
|
|
1800
1802
|
return { result: e, remain: n };
|
|
1801
|
-
},
|
|
1803
|
+
}, Xs = ({ hash: t, search: e }) => {
|
|
1802
1804
|
if (t && t.includes(Br)) {
|
|
1803
1805
|
const n = new URLSearchParams(t.substr(1));
|
|
1804
1806
|
return { hash: qr(n) };
|
|
@@ -1815,10 +1817,10 @@ const Br = "sldl", gt = "sldl_uid", fi = "sldl_eid", pi = "sldl_e_eid", zs = /*
|
|
|
1815
1817
|
trace: (...t) => {
|
|
1816
1818
|
Mr.trace(...t), localStorage.getItem("SL_DEBUG") && console.log(...t);
|
|
1817
1819
|
}
|
|
1818
|
-
},
|
|
1820
|
+
}, Js = (t, e) => {
|
|
1819
1821
|
const { hash: n, search: r } = window.location;
|
|
1820
1822
|
if (we.debug({ hash: n, search: r }, "get deep link data from"), n || r) {
|
|
1821
|
-
const i =
|
|
1823
|
+
const i = Xs({ hash: n, search: r });
|
|
1822
1824
|
if (we.debug(i, "parse deep link result"), i) {
|
|
1823
1825
|
const { hash: s, search: o } = i, { result: a, remain: u } = s || o;
|
|
1824
1826
|
if (Object.keys(a).length !== 0) {
|
|
@@ -1837,8 +1839,8 @@ const Br = "sldl", gt = "sldl_uid", fi = "sldl_eid", pi = "sldl_e_eid", zs = /*
|
|
|
1837
1839
|
}
|
|
1838
1840
|
}
|
|
1839
1841
|
t.setValue("parsed", !0);
|
|
1840
|
-
},
|
|
1841
|
-
const r = new
|
|
1842
|
+
}, Zs = (t, e, n) => {
|
|
1843
|
+
const r = new zs(), i = r.get("sl-deep-link-store");
|
|
1842
1844
|
let s = {};
|
|
1843
1845
|
if (i)
|
|
1844
1846
|
try {
|
|
@@ -1876,15 +1878,15 @@ const Br = "sldl", gt = "sldl_uid", fi = "sldl_eid", pi = "sldl_e_eid", zs = /*
|
|
|
1876
1878
|
console.error(c);
|
|
1877
1879
|
}
|
|
1878
1880
|
};
|
|
1879
|
-
|
|
1880
|
-
},
|
|
1881
|
-
class
|
|
1881
|
+
Js(t.deepLink.$store, o), n();
|
|
1882
|
+
}, eo = fe("bypass");
|
|
1883
|
+
class to extends Ji {
|
|
1882
1884
|
$coreStore;
|
|
1883
1885
|
deepLink;
|
|
1884
1886
|
transport;
|
|
1885
1887
|
bypassLogin;
|
|
1886
1888
|
constructor(e, n, r) {
|
|
1887
|
-
super(), this.$coreStore = e, this.deepLink = r, this.transport = n, this.bypassLogin =
|
|
1889
|
+
super(), this.$coreStore = e, this.deepLink = r, this.transport = n, this.bypassLogin = ms(this.transport), this.connect();
|
|
1888
1890
|
}
|
|
1889
1891
|
me = async () => (this.$coreStore.getValues().user.invalidate(), (await this.$coreStore.getValues().user.getValue())?.data);
|
|
1890
1892
|
/**
|
|
@@ -1896,7 +1898,7 @@ class eo extends Ji {
|
|
|
1896
1898
|
login = async (e, n) => {
|
|
1897
1899
|
this.$coreStore.getValues().userKey.setValue(n);
|
|
1898
1900
|
const { used: r, data: i } = this.deepLink?.getDeepLinkData() || {}, s = r ? "" : i?.[gt];
|
|
1899
|
-
|
|
1901
|
+
eo.debug({ inviterKey: s }, "login with inviterKey");
|
|
1900
1902
|
const o = await this.bypassLogin({
|
|
1901
1903
|
schema: e,
|
|
1902
1904
|
userKey: n,
|
|
@@ -1966,8 +1968,8 @@ class eo extends Ji {
|
|
|
1966
1968
|
});
|
|
1967
1969
|
};
|
|
1968
1970
|
}
|
|
1969
|
-
const He = new Me(),
|
|
1970
|
-
t.auth = new
|
|
1971
|
+
const He = new Me(), ro = (t, e, n) => {
|
|
1972
|
+
t.auth = new to(t.store, t.transport, t.deepLink), t.stores.status.listen((r) => {
|
|
1971
1973
|
r === ke.READY && t.auth.reLogin();
|
|
1972
1974
|
}), t.sdk.userId = t.stores.user.getAtomStore, t.sdk.authorizationBypass = async (r, i) => {
|
|
1973
1975
|
if (!(He.getSchema() === r && He.getExternalToken() === i && t.transport.getHeader("authorization")))
|
|
@@ -1986,7 +1988,7 @@ const He = new Me(), to = (t, e, n) => {
|
|
|
1986
1988
|
trace: (...t) => {
|
|
1987
1989
|
jr.trace(...t), localStorage.getItem("SL_DEBUG") && console.log(...t);
|
|
1988
1990
|
}
|
|
1989
|
-
},
|
|
1991
|
+
}, no = (t, e, n) => {
|
|
1990
1992
|
t.videoPlayer = {
|
|
1991
1993
|
controllers: /* @__PURE__ */ new Set()
|
|
1992
1994
|
}, t.sdk.addVideoPlayerController = (r) => {
|
|
@@ -2004,13 +2006,13 @@ const He = new Me(), to = (t, e, n) => {
|
|
|
2004
2006
|
}
|
|
2005
2007
|
}
|
|
2006
2008
|
}, n();
|
|
2007
|
-
},
|
|
2009
|
+
}, io = {
|
|
2008
2010
|
[q.FACTOID]: "insight",
|
|
2009
2011
|
[q.POLL]: "poll",
|
|
2010
2012
|
[q.TRIVIA]: "trivia",
|
|
2011
2013
|
[q.PREDICTION]: "prediction",
|
|
2012
2014
|
[q.TWEET]: "tweet"
|
|
2013
|
-
}, Be = (t) => t === Q.INGAME_IAB11 || t === Q.INGAME_IAB21 || t === Q.NFL_SHOP_OVERLAY || t === Q.SHOP_OVERLAY,
|
|
2015
|
+
}, Be = (t) => t === Q.INGAME_IAB11 || t === Q.INGAME_IAB21 || t === Q.NFL_SHOP_OVERLAY || t === Q.SHOP_OVERLAY, so = (t, e, n) => {
|
|
2014
2016
|
t.sdk.uiState = le({}), t.ui = {
|
|
2015
2017
|
enableAppNotification: function() {
|
|
2016
2018
|
t.sdk.uiState.setKey("appNotification", !0);
|
|
@@ -2067,7 +2069,7 @@ const He = new Me(), to = (t, e, n) => {
|
|
|
2067
2069
|
};
|
|
2068
2070
|
t.onQuestionActivate = ({ questionType: i, ...s }) => {
|
|
2069
2071
|
if (t.ui.enableAppNotification(), t.ui.onContentActivate) {
|
|
2070
|
-
const o = s.type || i &&
|
|
2072
|
+
const o = s.type || i && io[i] || "question";
|
|
2071
2073
|
t.ui.onContentActivate({ ...s, type: o });
|
|
2072
2074
|
}
|
|
2073
2075
|
}, t.sdk.onMount({ name: "ui" }, () => {
|
|
@@ -2193,14 +2195,14 @@ const He = new Me(), to = (t, e, n) => {
|
|
|
2193
2195
|
break;
|
|
2194
2196
|
}
|
|
2195
2197
|
}
|
|
2196
|
-
}, s =
|
|
2198
|
+
}, s = $.listen(i), o = t.activeFeature.subscribe((a) => {
|
|
2197
2199
|
a || t.ui.disableApp();
|
|
2198
2200
|
});
|
|
2199
2201
|
return () => {
|
|
2200
2202
|
s(), o();
|
|
2201
2203
|
};
|
|
2202
2204
|
}), n();
|
|
2203
|
-
},
|
|
2205
|
+
}, oo = (t, e, n) => {
|
|
2204
2206
|
const r = { onMountedFired: !1 }, i = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
|
|
2205
2207
|
t.sdk = /* @__PURE__ */ Object.create(null), t.sdk.options = le(e), t.sdk.withAuth = !1, t.sdk.onMount = ({ name: o, clear: a }, u) => {
|
|
2206
2208
|
if (i.has(o)) {
|
|
@@ -2226,7 +2228,7 @@ const He = new Me(), to = (t, e, n) => {
|
|
|
2226
2228
|
}, t.sdk.createEventSession = (o, a) => {
|
|
2227
2229
|
a ? t.stores.slStreamId.getStore().set({ loading: !1, data: o }) : t.stores.providerStreamId.setValue(o);
|
|
2228
2230
|
}, n();
|
|
2229
|
-
},
|
|
2231
|
+
}, ao = (t, e) => {
|
|
2230
2232
|
const { client: n, queryKey: r } = t.createPromiseClient(Xe, {
|
|
2231
2233
|
method: "generateDeepLink",
|
|
2232
2234
|
params: e
|
|
@@ -2247,7 +2249,7 @@ const He = new Me(), to = (t, e, n) => {
|
|
|
2247
2249
|
// 24 hours
|
|
2248
2250
|
revalidateInterval: 0
|
|
2249
2251
|
});
|
|
2250
|
-
},
|
|
2252
|
+
}, uo = (t, { web: e, mobile: n }) => {
|
|
2251
2253
|
const { client: r } = t.createPromiseClient(Mi, { method: "generate" });
|
|
2252
2254
|
return r.generate({ web: e, mobile: n });
|
|
2253
2255
|
}, Gr = (t, e) => {
|
|
@@ -2255,9 +2257,9 @@ const He = new Me(), to = (t, e, n) => {
|
|
|
2255
2257
|
for (const [r, i] of Object.entries(e))
|
|
2256
2258
|
n.append(r, i);
|
|
2257
2259
|
return n.toString();
|
|
2258
|
-
},
|
|
2260
|
+
}, co = (t, e, n, r) => {
|
|
2259
2261
|
const i = le({});
|
|
2260
|
-
return pr(i, () =>
|
|
2262
|
+
return pr(i, () => ao(t, [e, n]).subscribe(async ({ data: a, loading: u }) => {
|
|
2261
2263
|
const c = a === void 0 && u === !1 ? "https://streamlayer.io" : a?.url, l = r.get() || "", f = e.get() || "", d = n.get() || "", p = {
|
|
2262
2264
|
[gt]: l,
|
|
2263
2265
|
[fi]: f,
|
|
@@ -2269,7 +2271,7 @@ const He = new Me(), to = (t, e, n) => {
|
|
|
2269
2271
|
m && h || h ? m = `?${Gr(m, p)}` : h = `#${Gr("", p)}`;
|
|
2270
2272
|
const y = window.location.origin + window.location.pathname + m + h;
|
|
2271
2273
|
try {
|
|
2272
|
-
const I = await
|
|
2274
|
+
const I = await uo(t, { web: y, mobile: c });
|
|
2273
2275
|
i.set({
|
|
2274
2276
|
data: I.data?.link,
|
|
2275
2277
|
loading: !1
|
|
@@ -2289,7 +2291,7 @@ var re;
|
|
|
2289
2291
|
(function(t) {
|
|
2290
2292
|
t.Unset = "unset", t.Required = "required", t.Optional = "optional", t.Completed = "completed", t.Disabled = "disabled", t.Unavailable = "unavailable";
|
|
2291
2293
|
})(re || (re = {}));
|
|
2292
|
-
const
|
|
2294
|
+
const lo = (t, e, n, r) => {
|
|
2293
2295
|
const { inplayGame: i } = t.featureSettings.get(), s = e.getCurrentSessionId({ prefix: "onboarding" });
|
|
2294
2296
|
i && n.add({
|
|
2295
2297
|
type: Le.ONBOARDING,
|
|
@@ -2355,7 +2357,7 @@ const co = (t, e, n, r) => {
|
|
|
2355
2357
|
let s = !!i?.skipOnboarding;
|
|
2356
2358
|
const o = e.storage, a = se(re.Unset);
|
|
2357
2359
|
a.subscribe((l) => {
|
|
2358
|
-
l !== re.Unset && (l === re.Optional || l === re.Required ? s === !1 && (
|
|
2360
|
+
l !== re.Unset && (l === re.Optional || l === re.Required ? s === !1 && (lo(t, e, r, o), s = !0) : t.onboardingProcessed.set(!0), l === re.Completed && e.activeQuestionId.invalidate(), o.setOnboardingInstantOpen({
|
|
2359
2361
|
userId: e.userId.get() || "",
|
|
2360
2362
|
organizationId: e.organizationId.get() || "",
|
|
2361
2363
|
eventId: e.slStreamId.get() || ""
|
|
@@ -2375,7 +2377,7 @@ const co = (t, e, n, r) => {
|
|
|
2375
2377
|
organizationId: e.organizationId.get() || "",
|
|
2376
2378
|
userId: e.userId.get() || "",
|
|
2377
2379
|
eventId: l
|
|
2378
|
-
}, re.Completed),
|
|
2380
|
+
}, re.Completed), $.emit("poll", {
|
|
2379
2381
|
action: "onboardingPassed",
|
|
2380
2382
|
payload: {}
|
|
2381
2383
|
}), t.openFeature();
|
|
@@ -2383,7 +2385,7 @@ const co = (t, e, n, r) => {
|
|
|
2383
2385
|
r.close(f);
|
|
2384
2386
|
}
|
|
2385
2387
|
} };
|
|
2386
|
-
},
|
|
2388
|
+
}, fo = (t, e, n, r) => {
|
|
2387
2389
|
const i = le(void 0), s = ui(r), o = async () => {
|
|
2388
2390
|
const u = t.get(), c = e.get(), l = n ? n.getStore().get().data?.map((p) => p.slId) : [];
|
|
2389
2391
|
if (!l || !u || !c)
|
|
@@ -2405,7 +2407,7 @@ const co = (t, e, n, r) => {
|
|
|
2405
2407
|
u(), c?.(), l();
|
|
2406
2408
|
};
|
|
2407
2409
|
}), { $store: i, invalidate: a };
|
|
2408
|
-
},
|
|
2410
|
+
}, po = async (t, e, n, r, i) => {
|
|
2409
2411
|
const s = ui(i), o = t.get(), a = e.get(), u = n?.getStore().get().data?.map((d) => d.slId) || [], c = {
|
|
2410
2412
|
eventId: o,
|
|
2411
2413
|
userId: r,
|
|
@@ -2414,7 +2416,7 @@ const co = (t, e, n, r) => {
|
|
|
2414
2416
|
};
|
|
2415
2417
|
return (await s(c)).data?.attributes?.summary;
|
|
2416
2418
|
}, Wr = /* @__PURE__ */ new Set([q.POLL, q.PREDICTION, q.TRIVIA]);
|
|
2417
|
-
class
|
|
2419
|
+
class ho extends oi {
|
|
2418
2420
|
/** user statistics (leaderboard panel) */
|
|
2419
2421
|
userSummary;
|
|
2420
2422
|
/** feed list (pick history) */
|
|
@@ -2455,8 +2457,8 @@ class po extends oi {
|
|
|
2455
2457
|
cancels = /* @__PURE__ */ new Set();
|
|
2456
2458
|
onQuestionActivate;
|
|
2457
2459
|
constructor(e, n, r) {
|
|
2458
|
-
if (super(e, n), this.background = new
|
|
2459
|
-
this.friends = new ve(
|
|
2460
|
+
if (super(e, n), this.background = new js(r), this.advertisement = this.background.advertisement, this.onQuestionActivate = r.onQuestionActivate, this.feedSubscription = this.background.feedSubscription, this.activeQuestionId = this.background.activeQuestionId, this.openedQuestionId = this.background.openedQuestionId, this.storage = this.background.storage, this.feedList = this.background.feedList, this.betPack = this.background.betPack, this.currentUserId = this.background.userId, this.onboardingProcessed = se(!r.sdk.withAuth), this.leaderboardId = new he(se(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.notifications = r.notifications, this.transport = r.transport, this.closeFeature = (i = !0) => r.sdk.closeFeature(i), this.openFeature = () => r.sdk.openFeature(J.GAMES), this.openedQuestion = this.background.openedQuestion, this.deepLink = co(this.transport, this.background.slStreamId, r.stores.providerStreamId.getStore(), this.background.userId), this.userSummary = fo(this.background.slStreamId, this.background.userId, this.friends, this.transport), !r.sdk.options.get().hideFriends) {
|
|
2461
|
+
this.friends = new ve(Os(this.background.userId, r.transport), "gamification:friends"), this.openedUser = se(void 0);
|
|
2460
2462
|
const i = this.leaderboardList = $s(this.transport, this.background.slStreamId, this.background.userId, this.friends);
|
|
2461
2463
|
this.cancels.add(this.userSummary.$store.listen((s, o) => {
|
|
2462
2464
|
o?.summary && s?.summary && i.invalidate();
|
|
@@ -2607,7 +2609,7 @@ class po extends oi {
|
|
|
2607
2609
|
}
|
|
2608
2610
|
});
|
|
2609
2611
|
}
|
|
2610
|
-
i === -1 && (n.unshift(r),
|
|
2612
|
+
i === -1 && (n.unshift(r), $.emit("poll", {
|
|
2611
2613
|
action: "received",
|
|
2612
2614
|
payload: {
|
|
2613
2615
|
isAd: r.attributes?.adUnit == me.UNSET,
|
|
@@ -2636,7 +2638,7 @@ class po extends oi {
|
|
|
2636
2638
|
throw s;
|
|
2637
2639
|
}
|
|
2638
2640
|
const r = { ...this.betPack.getValues().data?.data }, i = r?.[e];
|
|
2639
|
-
i && (
|
|
2641
|
+
i && ($.emit("poll", {
|
|
2640
2642
|
action: "voted",
|
|
2641
2643
|
payload: {
|
|
2642
2644
|
questionId: e,
|
|
@@ -2656,7 +2658,7 @@ class po extends oi {
|
|
|
2656
2658
|
return;
|
|
2657
2659
|
const u = a.findIndex((f) => f.id === e), c = a[u], l = c?.attributes?.attributes.case === "question" && c.attributes.attributes.value;
|
|
2658
2660
|
if (l) {
|
|
2659
|
-
|
|
2661
|
+
$.emit("poll", {
|
|
2660
2662
|
action: "voted",
|
|
2661
2663
|
payload: {
|
|
2662
2664
|
isAd: c.attributes?.adUnit == me.UNSET,
|
|
@@ -2709,7 +2711,7 @@ class po extends oi {
|
|
|
2709
2711
|
userId: this.background.userId.get() || "",
|
|
2710
2712
|
organizationId: this.background.organizationId.get() || ""
|
|
2711
2713
|
};
|
|
2712
|
-
return
|
|
2714
|
+
return $.emit("poll", {
|
|
2713
2715
|
action: "opened",
|
|
2714
2716
|
payload: {
|
|
2715
2717
|
questionId: e,
|
|
@@ -2718,7 +2720,7 @@ class po extends oi {
|
|
|
2718
2720
|
questionOpenedFrom: n?.openedFrom === "bet-pack" ? "list" : n?.openedFrom,
|
|
2719
2721
|
hasBanner: s
|
|
2720
2722
|
}
|
|
2721
|
-
}), this.storage.isQuestionOpened(o, e) || (
|
|
2723
|
+
}), this.storage.isQuestionOpened(o, e) || ($.emit("poll", {
|
|
2722
2724
|
action: "viewed",
|
|
2723
2725
|
payload: {
|
|
2724
2726
|
questionId: e,
|
|
@@ -2731,7 +2733,7 @@ class po extends oi {
|
|
|
2731
2733
|
openedFrom: n?.openedFrom === "bet-pack" ? "list" : n?.openedFrom
|
|
2732
2734
|
} : void 0);
|
|
2733
2735
|
};
|
|
2734
|
-
getFeedItem = (e) =>
|
|
2736
|
+
getFeedItem = (e) => Rs(e, this.transport);
|
|
2735
2737
|
isOpenedQuestion = (e) => !!this.notifications.isViewed(e);
|
|
2736
2738
|
closeQuestion = (e) => (e && (this.onQuestionActivate({
|
|
2737
2739
|
stage: "deactivate",
|
|
@@ -2740,7 +2742,7 @@ class po extends oi {
|
|
|
2740
2742
|
prefix: "notification",
|
|
2741
2743
|
entity: e
|
|
2742
2744
|
}))
|
|
2743
|
-
}),
|
|
2745
|
+
}), $.emit("poll", {
|
|
2744
2746
|
action: "closed",
|
|
2745
2747
|
payload: {
|
|
2746
2748
|
questionId: e
|
|
@@ -2760,7 +2762,7 @@ class po extends oi {
|
|
|
2760
2762
|
}
|
|
2761
2763
|
const r = { ...n };
|
|
2762
2764
|
try {
|
|
2763
|
-
const i = await
|
|
2765
|
+
const i = await po(this.background.slStreamId, this.background.userId, this.friends, e, this.transport);
|
|
2764
2766
|
i?.inTop !== void 0 && (this.leaderboardList?.$store.setKey("data", this.leaderboardList.$store.get().data?.map((s) => (s.userId === e && (s.inTop = i.inTop), s))), r.inTop = i.inTop);
|
|
2765
2767
|
} catch (i) {
|
|
2766
2768
|
console.error(i);
|
|
@@ -2771,7 +2773,7 @@ class po extends oi {
|
|
|
2771
2773
|
this.openedUser?.set(void 0);
|
|
2772
2774
|
};
|
|
2773
2775
|
openOnboarding = () => {
|
|
2774
|
-
this.openFeature(),
|
|
2776
|
+
this.openFeature(), $.emit("poll", {
|
|
2775
2777
|
action: "onboardingOpen",
|
|
2776
2778
|
payload: {}
|
|
2777
2779
|
});
|
|
@@ -2812,7 +2814,7 @@ class po extends oi {
|
|
|
2812
2814
|
}
|
|
2813
2815
|
});
|
|
2814
2816
|
else if (e.data.question.type === q.FACTOID) {
|
|
2815
|
-
const i = e.data.question.options?.options.value, s = e.data.question.notification?.useContentTexts ===
|
|
2817
|
+
const i = e.data.question.options?.options.value, s = e.data.question.notification?.useContentTexts === Tr.ENABLED ? e.data.question.subject : e.data.question.notification?.title || "", o = e.data.question.notification?.useContentTexts === Tr.ENABLED ? i.body : e.data.question.notification?.body, a = {
|
|
2816
2818
|
heading: s,
|
|
2817
2819
|
body: o,
|
|
2818
2820
|
imageMode: i?.imageMode,
|
|
@@ -2893,15 +2895,15 @@ class po extends oi {
|
|
|
2893
2895
|
}
|
|
2894
2896
|
};
|
|
2895
2897
|
}
|
|
2896
|
-
const
|
|
2898
|
+
const mo = {
|
|
2897
2899
|
[J.GAMES]: !0
|
|
2898
2900
|
};
|
|
2899
|
-
class
|
|
2901
|
+
class go extends oi {
|
|
2900
2902
|
constructor(e, n) {
|
|
2901
2903
|
super(e, n);
|
|
2902
2904
|
}
|
|
2903
2905
|
}
|
|
2904
|
-
const
|
|
2906
|
+
const yo = (t, e, n) => t.type === J.GAMES ? new ho(t, e, n) : new go(t, e), vo = (t, e, n) => {
|
|
2905
2907
|
t.features = /* @__PURE__ */ new Map(), t.sdk.featuresList = new he(se(/* @__PURE__ */ new Set()), "features-list"), t.activeFeature = new he(se(J.UNSET), "activeFeature"), t.sdk.getFeatures = () => t.features, t.sdk.getFeature = (r) => t.features.get(r), t.sdk.getActiveFeature = () => t.activeFeature.getStore(), t.sdk.openFeature = (r) => {
|
|
2906
2908
|
t.sdk.initializeApp().then(() => {
|
|
2907
2909
|
t.activeFeature.setValue(r);
|
|
@@ -2914,8 +2916,8 @@ const go = (t, e, n) => t.type === J.GAMES ? new po(t, e, n) : new mo(t, e), yo
|
|
|
2914
2916
|
s && s.delete(i), t.sdk.featuresList.setValue(s);
|
|
2915
2917
|
}
|
|
2916
2918
|
}, t.initFeature = (r, i = Oe.ORGANIZATION) => {
|
|
2917
|
-
if (r.type in
|
|
2918
|
-
const s =
|
|
2919
|
+
if (r.type in mo && !t.features.has(r.type)) {
|
|
2920
|
+
const s = yo(r, i, t);
|
|
2919
2921
|
t.features.set(r.type, s);
|
|
2920
2922
|
let o = t.sdk.featuresList.getValue();
|
|
2921
2923
|
o ? o.add(r.type) : o = /* @__PURE__ */ new Set([r.type]), t.sdk.featuresList.setValue(new Set(o));
|
|
@@ -2967,7 +2969,7 @@ const go = (t, e, n) => t.type === J.GAMES ? new po(t, e, n) : new mo(t, e), yo
|
|
|
2967
2969
|
};
|
|
2968
2970
|
t.store.subscribe(i);
|
|
2969
2971
|
}, n();
|
|
2970
|
-
},
|
|
2972
|
+
}, bo = (t, e, n) => {
|
|
2971
2973
|
const { client: r, queryKey: i } = n.createPromiseClient(ji, {
|
|
2972
2974
|
method: "getMarketWithSeries",
|
|
2973
2975
|
params: [t, e]
|
|
@@ -2985,15 +2987,15 @@ const go = (t, e, n) => t.type === J.GAMES ? new po(t, e, n) : new mo(t, e), yo
|
|
|
2985
2987
|
}
|
|
2986
2988
|
}
|
|
2987
2989
|
});
|
|
2988
|
-
},
|
|
2990
|
+
}, Ao = (t) => {
|
|
2989
2991
|
const e = t.stores.slStreamId.getAtomStore(), n = t.stores.user.getAtomStore();
|
|
2990
|
-
return
|
|
2992
|
+
return bo(e, n, t.transport);
|
|
2991
2993
|
};
|
|
2992
|
-
class
|
|
2994
|
+
class So extends si {
|
|
2993
2995
|
marketWithSeries;
|
|
2994
2996
|
log;
|
|
2995
2997
|
constructor(e) {
|
|
2996
|
-
super(), this.log = fe("polymarket"), this.marketWithSeries =
|
|
2998
|
+
super(), this.log = fe("polymarket"), this.marketWithSeries = Ao(e);
|
|
2997
2999
|
}
|
|
2998
3000
|
connect = () => {
|
|
2999
3001
|
this.log.debug("connect");
|
|
@@ -3002,8 +3004,8 @@ class Ao extends si {
|
|
|
3002
3004
|
this.marketWithSeries.off(), this.log.debug("disconnect");
|
|
3003
3005
|
};
|
|
3004
3006
|
}
|
|
3005
|
-
const
|
|
3006
|
-
t.sdk.polymarket = new
|
|
3007
|
+
const wo = (t, e, n) => {
|
|
3008
|
+
t.sdk.polymarket = new So(t), t.sdk.onMount({ name: "polymarket" }, () => (t.sdk.polymarket.connect(), () => {
|
|
3007
3009
|
t.sdk.polymarket.disconnect();
|
|
3008
3010
|
})), n();
|
|
3009
3011
|
};
|
|
@@ -3011,7 +3013,7 @@ function mr() {
|
|
|
3011
3013
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3012
3014
|
return { id: t.id || null, adId: t.adId || null, sequence: t.sequence || null, apiFramework: t.apiFramework || null, universalAdIds: [], creativeExtensions: [] };
|
|
3013
3015
|
}
|
|
3014
|
-
const
|
|
3016
|
+
const Eo = ["ADCATEGORIES", "ADCOUNT", "ADPLAYHEAD", "ADSERVINGID", "ADTYPE", "APIFRAMEWORKS", "APPBUNDLE", "ASSETURI", "BLOCKEDADCATEGORIES", "BREAKMAXADLENGTH", "BREAKMAXADS", "BREAKMAXDURATION", "BREAKMINADLENGTH", "BREAKMINDURATION", "BREAKPOSITION", "CLICKPOS", "CLICKTYPE", "CLIENTUA", "CONTENTID", "CONTENTPLAYHEAD", "CONTENTURI", "DEVICEIP", "DEVICEUA", "DOMAIN", "EXTENSIONS", "GDPRCONSENT", "IFA", "IFATYPE", "INVENTORYSTATE", "LATLONG", "LIMITADTRACKING", "MEDIAMIME", "MEDIAPLAYHEAD", "OMIDPARTNER", "PAGEURL", "PLACEMENTTYPE", "PLAYERCAPABILITIES", "PLAYERSIZE", "PLAYERSTATE", "PODSEQUENCE", "REGULATIONS", "SERVERSIDE", "SERVERUA", "TRANSACTIONID", "UNIVERSALADID", "VASTVERSIONS", "VERIFICATIONVENDORS"];
|
|
3015
3017
|
function Hr(t) {
|
|
3016
3018
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
3017
3019
|
const r = [], i = mi(t);
|
|
@@ -3024,12 +3026,12 @@ function Hr(t) {
|
|
|
3024
3026
|
return r;
|
|
3025
3027
|
}
|
|
3026
3028
|
function hi(t, e) {
|
|
3027
|
-
const n = (t =
|
|
3029
|
+
const n = (t = Kr(t, e)).match(/[^[\]]+(?=])/g);
|
|
3028
3030
|
if (!n) return t;
|
|
3029
|
-
let r = n.filter(((i) =>
|
|
3030
|
-
return r.length === 0 ? t : (r = r.reduce(((i, s) => (i[s] = -1, i)), {}),
|
|
3031
|
+
let r = n.filter(((i) => Eo.indexOf(i) > -1));
|
|
3032
|
+
return r.length === 0 ? t : (r = r.reduce(((i, s) => (i[s] = -1, i)), {}), Kr(t, r));
|
|
3031
3033
|
}
|
|
3032
|
-
function
|
|
3034
|
+
function Kr(t, e) {
|
|
3033
3035
|
let n = t;
|
|
3034
3036
|
for (const r in e) {
|
|
3035
3037
|
const i = e[r];
|
|
@@ -3040,7 +3042,7 @@ function $r(t, e) {
|
|
|
3040
3042
|
function mi(t) {
|
|
3041
3043
|
return Array.isArray(t) ? t.map(((e) => e && e.hasOwnProperty("url") ? e.url : e)) : t;
|
|
3042
3044
|
}
|
|
3043
|
-
function
|
|
3045
|
+
function $r(t) {
|
|
3044
3046
|
return /^(https?:\/\/|\/\/)/.test(t);
|
|
3045
3047
|
}
|
|
3046
3048
|
function zr(t, e) {
|
|
@@ -3068,7 +3070,7 @@ const Ue = { track: function(t, e, n) {
|
|
|
3068
3070
|
}, resolveURLTemplates: Hr, extractURLsFromTemplates: mi, filterUrlTemplates: function(t) {
|
|
3069
3071
|
return t.reduce(((e, n) => {
|
|
3070
3072
|
const r = n.url || n;
|
|
3071
|
-
return
|
|
3073
|
+
return $r(r) ? e.validUrls.push(r) : e.invalidUrls.push(r), e;
|
|
3072
3074
|
}), { validUrls: [], invalidUrls: [] });
|
|
3073
3075
|
}, containsTemplateObject: zr, isTemplateObjectEqual: gi, encodeURIComponentRFC3986: yi, replaceUrlMacros: hi, isNumeric: function(t) {
|
|
3074
3076
|
return !isNaN(parseFloat(t)) && isFinite(t);
|
|
@@ -3080,7 +3082,7 @@ const Ue = { track: function(t, e, n) {
|
|
|
3080
3082
|
return n.concat(r).reduce(((i, s) => (zr(s, i) || i.push(s), i)), []);
|
|
3081
3083
|
}, isValidTimeValue: function(t) {
|
|
3082
3084
|
return Number.isFinite(t) && t >= -2;
|
|
3083
|
-
}, addLeadingZeros: vi, isValidUrl:
|
|
3085
|
+
}, addLeadingZeros: vi, isValidUrl: $r, isBrowserEnvironment: function() {
|
|
3084
3086
|
return typeof window < "u";
|
|
3085
3087
|
}, formatMacrosValues: function(t) {
|
|
3086
3088
|
return typeof t != "object" ? t : JSON.stringify(t);
|
|
@@ -3159,7 +3161,7 @@ const A = { childByName: function(t, e) {
|
|
|
3159
3161
|
a.length && (t.creatives = t.creatives.concat(a));
|
|
3160
3162
|
}
|
|
3161
3163
|
} };
|
|
3162
|
-
function
|
|
3164
|
+
function Io(t, e) {
|
|
3163
3165
|
const n = (function() {
|
|
3164
3166
|
let r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3165
3167
|
const { id: i, adId: s, sequence: o, apiFramework: a } = mr(r);
|
|
@@ -3189,7 +3191,7 @@ function Eo(t, e) {
|
|
|
3189
3191
|
return o && (i.adParameters = { value: A.parseNodeText(o), xmlEncoded: o.getAttribute("xmlEncoded") || null }), i;
|
|
3190
3192
|
})), n;
|
|
3191
3193
|
}
|
|
3192
|
-
function
|
|
3194
|
+
function Oo(t, e) {
|
|
3193
3195
|
let n;
|
|
3194
3196
|
const r = (function() {
|
|
3195
3197
|
let u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -3293,7 +3295,7 @@ function Io(t, e) {
|
|
|
3293
3295
|
})(u));
|
|
3294
3296
|
})), r;
|
|
3295
3297
|
}
|
|
3296
|
-
function
|
|
3298
|
+
function ko(t, e) {
|
|
3297
3299
|
const n = (function() {
|
|
3298
3300
|
let r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3299
3301
|
const { id: i, adId: s, sequence: o, apiFramework: a } = mr(r);
|
|
@@ -3346,7 +3348,7 @@ function bi(t) {
|
|
|
3346
3348
|
return (i = e).value === null && Object.keys(i.attributes).length === 0 && i.children.length === 0 ? null : e;
|
|
3347
3349
|
var i;
|
|
3348
3350
|
}
|
|
3349
|
-
function
|
|
3351
|
+
function No(t) {
|
|
3350
3352
|
return t.getAttribute("AdID") || t.getAttribute("adID") || t.getAttribute("adId") || null;
|
|
3351
3353
|
}
|
|
3352
3354
|
const pt = { Wrapper: { subElements: ["VASTAdTagURI", "Impression"] }, BlockedAdCategories: { attributes: ["authority"] }, InLine: { subElements: ["AdSystem", "AdTitle", "Impression", "AdServingId", "Creatives"] }, Category: { attributes: ["authority"] }, Pricing: { attributes: ["model", "currency"] }, Verification: { oneOfinLineResources: ["JavaScriptResource", "ExecutableResource"], attributes: ["vendor"] }, UniversalAdId: { attributes: ["idRegistry"] }, JavaScriptResource: { attributes: ["apiFramework", "browserOptional"] }, ExecutableResource: { attributes: ["apiFramework", "type"] }, Tracking: { attributes: ["event"] }, Creatives: { subElements: ["Creative"] }, Creative: { subElements: ["UniversalAdId"] }, Linear: { subElements: ["MediaFiles", "Duration"] }, MediaFiles: { subElements: ["MediaFile"] }, MediaFile: { attributes: ["delivery", "type", "width", "height"] }, Mezzanine: { attributes: ["delivery", "type", "width", "height"] }, NonLinear: { oneOfinLineResources: ["StaticResource", "IFrameResource", "HTMLResource"], attributes: ["width", "height"] }, Companion: { oneOfinLineResources: ["StaticResource", "IFrameResource", "HTMLResource"], attributes: ["width", "height"] }, StaticResource: { attributes: ["creativeType"] }, Icons: { subElements: ["Icon"] }, Icon: { oneOfinLineResources: ["StaticResource", "IFrameResource", "HTMLResource"] } };
|
|
@@ -3372,32 +3374,32 @@ function ze(t, e) {
|
|
|
3372
3374
|
let { name: n, parentName: r, attributes: i, subElements: s, oneOfResources: o } = t, a = "Element '".concat(n, "'");
|
|
3373
3375
|
a += i ? " missing required attribute(s) '".concat(i.join(", "), "' ") : s ? " missing required sub element(s) '".concat(s.join(", "), "' ") : o ? " must provide one of the following '".concat(o.join(", "), "' ") : " is empty", e("VAST-warning", { message: a, parentElement: r, specVersion: 4.1 });
|
|
3374
3376
|
}
|
|
3375
|
-
const
|
|
3377
|
+
const Ro = { verifyRequiredValues: function t(e, n, r) {
|
|
3376
3378
|
if (e && e.nodeName) if (e.nodeName === "InLine" && (r = !0), Jr(e, n), en(e)) {
|
|
3377
3379
|
Zr(e, n, r);
|
|
3378
3380
|
for (let i = 0; i < e.children.length; i++) t(e.children[i], n, r);
|
|
3379
3381
|
} else A.parseNodeText(e).length === 0 && ze({ name: e.nodeName, parentName: e.parentNode.nodeName }, n);
|
|
3380
3382
|
}, hasSubElements: en, emitMissingValueWarning: ze, verifyRequiredAttributes: Jr, verifyRequiredSubElements: Zr };
|
|
3381
|
-
function
|
|
3383
|
+
function Lo(t, e) {
|
|
3382
3384
|
let { allowMultipleAds: n, followAdditionalWrappers: r } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
3383
3385
|
const i = Array.from(t.childNodes).filter(((s) => {
|
|
3384
3386
|
const o = s.nodeName.toLowerCase();
|
|
3385
3387
|
return o === "inline" || r !== !1 && o === "wrapper";
|
|
3386
3388
|
}));
|
|
3387
3389
|
for (const s of i) {
|
|
3388
|
-
if (A.copyNodeAttribute("id", t, s), A.copyNodeAttribute("sequence", t, s), A.copyNodeAttribute("adType", t, s), s.nodeName === "Wrapper") return { ad:
|
|
3389
|
-
if (s.nodeName === "InLine") return { ad:
|
|
3390
|
+
if (A.copyNodeAttribute("id", t, s), A.copyNodeAttribute("sequence", t, s), A.copyNodeAttribute("adType", t, s), s.nodeName === "Wrapper") return { ad: Po(s, e), type: "WRAPPER" };
|
|
3391
|
+
if (s.nodeName === "InLine") return { ad: Co(s, e, { allowMultipleAds: n }), type: "INLINE" };
|
|
3390
3392
|
const o = s.nodeName.toLowerCase();
|
|
3391
3393
|
e("VAST-warning", { message: "<".concat(s.nodeName, o === "inline" ? "> must be written <InLine>" : "> must be written <Wrapper>"), wrongNode: s });
|
|
3392
3394
|
}
|
|
3393
3395
|
}
|
|
3394
|
-
function
|
|
3396
|
+
function Co(t, e) {
|
|
3395
3397
|
let { allowMultipleAds: n } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
3396
3398
|
return n === !1 && t.getAttribute("sequence") ? null : Ai(t, e);
|
|
3397
3399
|
}
|
|
3398
3400
|
function Ai(t, e) {
|
|
3399
3401
|
let n = [];
|
|
3400
|
-
e &&
|
|
3402
|
+
e && Ro.verifyRequiredValues(t, e);
|
|
3401
3403
|
const r = Array.from(t.childNodes), i = (function() {
|
|
3402
3404
|
let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3403
3405
|
return { id: s.id || null, sequence: s.sequence || null, adType: s.adType || null, adServingId: null, categories: [], expires: null, viewableImpression: [], system: null, title: null, description: null, advertiser: null, pricing: null, survey: null, errorURLTemplates: [], impressionURLTemplates: [], creatives: [], extensions: [], adVerifications: [], blockedAdCategories: [], followAdditionalWrappers: !0, allowMultipleAds: !1, fallbackOnNoAd: null };
|
|
@@ -3414,7 +3416,7 @@ function Ai(t, e) {
|
|
|
3414
3416
|
i.creatives = (function(o) {
|
|
3415
3417
|
const a = [];
|
|
3416
3418
|
return o.forEach(((u) => {
|
|
3417
|
-
const c = { id: u.getAttribute("id") || null, adId:
|
|
3419
|
+
const c = { id: u.getAttribute("id") || null, adId: No(u), sequence: u.getAttribute("sequence") || null, apiFramework: u.getAttribute("apiFramework") || null }, l = [];
|
|
3418
3420
|
let f;
|
|
3419
3421
|
A.childrenByName(u, "UniversalAdId").forEach(((p) => {
|
|
3420
3422
|
const m = { idRegistry: p.getAttribute("idRegistry") || "unknown", value: A.parseNodeText(p) };
|
|
@@ -3427,13 +3429,13 @@ function Ai(t, e) {
|
|
|
3427
3429
|
let h;
|
|
3428
3430
|
switch (m.nodeName) {
|
|
3429
3431
|
case "Linear":
|
|
3430
|
-
h =
|
|
3432
|
+
h = Oo(m, c);
|
|
3431
3433
|
break;
|
|
3432
3434
|
case "NonLinearAds":
|
|
3433
|
-
h =
|
|
3435
|
+
h = ko(m, c);
|
|
3434
3436
|
break;
|
|
3435
3437
|
case "CompanionAds":
|
|
3436
|
-
h =
|
|
3438
|
+
h = Io(m, c);
|
|
3437
3439
|
}
|
|
3438
3440
|
h && (l && (h.universalAdIds = l), f && (h.creativeExtensions = f), a.push(h));
|
|
3439
3441
|
}
|
|
@@ -3492,7 +3494,7 @@ function Ai(t, e) {
|
|
|
3492
3494
|
}
|
|
3493
3495
|
})), n.length && (i.adVerifications = i.adVerifications.concat(n)), i;
|
|
3494
3496
|
}
|
|
3495
|
-
function
|
|
3497
|
+
function Po(t, e) {
|
|
3496
3498
|
const n = Ai(t, e), r = t.getAttribute("followAdditionalWrappers"), i = t.getAttribute("allowMultipleAds"), s = t.getAttribute("fallbackOnNoAd");
|
|
3497
3499
|
n.followAdditionalWrappers = !r || A.parseBoolean(r), n.allowMultipleAds = !!i && A.parseBoolean(i), n.fallbackOnNoAd = s ? A.parseBoolean(s) : null;
|
|
3498
3500
|
let o = A.childByName(t, "VASTAdTagURI");
|
|
@@ -3537,7 +3539,7 @@ function tn(t) {
|
|
|
3537
3539
|
})), e.push(r);
|
|
3538
3540
|
})), e;
|
|
3539
3541
|
}
|
|
3540
|
-
class
|
|
3542
|
+
class _o {
|
|
3541
3543
|
constructor() {
|
|
3542
3544
|
this._handlers = [];
|
|
3543
3545
|
}
|
|
@@ -3581,15 +3583,15 @@ class Po {
|
|
|
3581
3583
|
let rn = 0, lr = 0;
|
|
3582
3584
|
const Si = (t, e) => {
|
|
3583
3585
|
!t || !e || t <= 0 || e <= 0 || (lr = (lr * rn + 8 * t / e) / ++rn);
|
|
3584
|
-
},
|
|
3585
|
-
class
|
|
3586
|
+
}, Do = { ERRORCODE: 900, extensions: [] }, nn = "VAST response version not supported";
|
|
3587
|
+
class Fo extends _o {
|
|
3586
3588
|
constructor() {
|
|
3587
3589
|
let { fetcher: e } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3588
3590
|
super(), this.maxWrapperDepth = null, this.rootErrorURLTemplates = [], this.errorURLTemplates = [], this.remainingAds = [], this.parsingOptions = {}, this.fetcher = e || null, this.keepFailedAdPod = !1;
|
|
3589
3591
|
}
|
|
3590
3592
|
trackVastError(e, n) {
|
|
3591
3593
|
for (var r = arguments.length, i = new Array(r > 2 ? r - 2 : 0), s = 2; s < r; s++) i[s - 2] = arguments[s];
|
|
3592
|
-
this.emit("VAST-error", Object.assign({},
|
|
3594
|
+
this.emit("VAST-error", Object.assign({}, Do, n, ...i)), Ue.track(e, n);
|
|
3593
3595
|
}
|
|
3594
3596
|
getErrorURLTemplates() {
|
|
3595
3597
|
return this.rootErrorURLTemplates.concat(this.errorURLTemplates);
|
|
@@ -3638,7 +3640,7 @@ class Do extends Po {
|
|
|
3638
3640
|
} else if (p.nodeName === "Ad") {
|
|
3639
3641
|
if (this.vastVersion && parseFloat(this.vastVersion) < 3) o = !0;
|
|
3640
3642
|
else if (o === !1 && c.length > 1) break;
|
|
3641
|
-
const m =
|
|
3643
|
+
const m = Lo(p, this.emit.bind(this), { allowMultipleAds: o, followAdditionalWrappers: a });
|
|
3642
3644
|
m.ad ? (c.push(m.ad), this.emit("VAST-ad-parsed", { type: m.type, url: i, wrapperDepth: s, adIndex: c.length - 1, vastVersion: f })) : this.trackVastError(this.getErrorURLTemplates(), { ERRORCODE: 101 });
|
|
3643
3645
|
}
|
|
3644
3646
|
}
|
|
@@ -3696,8 +3698,8 @@ class Do extends Po {
|
|
|
3696
3698
|
}
|
|
3697
3699
|
}
|
|
3698
3700
|
}
|
|
3699
|
-
let
|
|
3700
|
-
const
|
|
3701
|
+
let Ee = null;
|
|
3702
|
+
const Uo = { data: {}, length: 0, getItem(t) {
|
|
3701
3703
|
return this.data[t];
|
|
3702
3704
|
}, setItem(t, e) {
|
|
3703
3705
|
this.data[t] = e, this.length = Object.keys(this.data).length;
|
|
@@ -3706,18 +3708,18 @@ const Fo = { data: {}, length: 0, getItem(t) {
|
|
|
3706
3708
|
}, clear() {
|
|
3707
3709
|
this.data = {}, this.length = 0;
|
|
3708
3710
|
} };
|
|
3709
|
-
class
|
|
3711
|
+
class Vo {
|
|
3710
3712
|
constructor() {
|
|
3711
3713
|
this.storage = this.initStorage();
|
|
3712
3714
|
}
|
|
3713
3715
|
initStorage() {
|
|
3714
|
-
if (
|
|
3716
|
+
if (Ee) return Ee;
|
|
3715
3717
|
try {
|
|
3716
|
-
|
|
3718
|
+
Ee = typeof window < "u" && window !== null ? window.localStorage || window.sessionStorage : null;
|
|
3717
3719
|
} catch {
|
|
3718
|
-
|
|
3720
|
+
Ee = null;
|
|
3719
3721
|
}
|
|
3720
|
-
return
|
|
3722
|
+
return Ee && !this.isStorageDisabled(Ee) || (Ee = Uo, Ee.clear()), Ee;
|
|
3721
3723
|
}
|
|
3722
3724
|
isStorageDisabled(e) {
|
|
3723
3725
|
const n = "__VASTStorage__";
|
|
@@ -3741,7 +3743,7 @@ class Uo {
|
|
|
3741
3743
|
return this.storage.clear();
|
|
3742
3744
|
}
|
|
3743
3745
|
}
|
|
3744
|
-
const dr = 12e4,
|
|
3746
|
+
const dr = 12e4, xo = { get: async function(t, e) {
|
|
3745
3747
|
try {
|
|
3746
3748
|
const n = new AbortController(), r = setTimeout((() => {
|
|
3747
3749
|
throw n.abort(), new Error("URLHandler: Request timed out after ".concat(e.timeout || dr, " ms (408)"));
|
|
@@ -3753,19 +3755,19 @@ const dr = 12e4, Vo = { get: async function(t, e) {
|
|
|
3753
3755
|
return s ? { error: new Error(s), statusCode: i.status } : (async function(o) {
|
|
3754
3756
|
const a = await o.text();
|
|
3755
3757
|
let u;
|
|
3756
|
-
return u = Ue.isBrowserEnvironment() ? new DOMParser() : new (await import("./index-
|
|
3758
|
+
return u = Ue.isBrowserEnvironment() ? new DOMParser() : new (await import("./index-DvqmgCor.js").then((c) => c.i)).DOMParser(), { xml: u.parseFromString(a, "text/xml"), details: { byteLength: a.length, statusCode: o.status, rawXml: a } };
|
|
3757
3759
|
})(i);
|
|
3758
3760
|
} catch (n) {
|
|
3759
3761
|
return { error: n, statusCode: n.name === "AbortError" ? 408 : null };
|
|
3760
3762
|
}
|
|
3761
3763
|
} };
|
|
3762
|
-
class
|
|
3764
|
+
class Bo {
|
|
3763
3765
|
constructor() {
|
|
3764
3766
|
this.URLTemplateFilters = [];
|
|
3765
3767
|
}
|
|
3766
3768
|
setOptions() {
|
|
3767
3769
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3768
|
-
this.urlHandler = e.urlHandler || e.urlhandler ||
|
|
3770
|
+
this.urlHandler = e.urlHandler || e.urlhandler || xo, this.fetchingOptions = { ...e.fetchOptions, timeout: e.timeout || dr, withCredentials: !!e.withCredentials };
|
|
3769
3771
|
}
|
|
3770
3772
|
addURLTemplateFilter(e) {
|
|
3771
3773
|
typeof e == "function" && this.URLTemplateFilters.push(e);
|
|
@@ -3791,10 +3793,10 @@ class xo {
|
|
|
3791
3793
|
return l.xml;
|
|
3792
3794
|
}
|
|
3793
3795
|
}
|
|
3794
|
-
class
|
|
3796
|
+
class qo {
|
|
3795
3797
|
constructor() {
|
|
3796
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : new
|
|
3797
|
-
this.cappingFreeLunch = e, this.cappingMinimumTimeInterval = n, this.fetcher = new
|
|
3798
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : new Vo();
|
|
3799
|
+
this.cappingFreeLunch = e, this.cappingMinimumTimeInterval = n, this.fetcher = new Bo(), this.vastParser = new Fo({ fetcher: this.fetcher }), this.storage = r, this.lastSuccessfulAd === void 0 && (this.lastSuccessfulAd = 0), this.totalCalls === void 0 && (this.totalCalls = 0), this.totalCallsTimeout === void 0 && (this.totalCallsTimeout = 0);
|
|
3798
3800
|
}
|
|
3799
3801
|
addURLTemplateFilter(e) {
|
|
3800
3802
|
this.fetcher.addURLTemplateFilter(e);
|
|
@@ -3854,21 +3856,21 @@ class Bo {
|
|
|
3854
3856
|
}));
|
|
3855
3857
|
}
|
|
3856
3858
|
}
|
|
3857
|
-
const
|
|
3859
|
+
const Mo = new qo(), At = fe("ui:gam-static"), sn = (t) => new Promise((e, n) => {
|
|
3858
3860
|
const r = new Image();
|
|
3859
3861
|
r.onload = () => e(t), r.onerror = () => n(), r.src = t;
|
|
3860
|
-
}),
|
|
3862
|
+
}), jo = (t) => (e, n, r) => t.transport.nanoquery.createFetcherStore([e, n], {
|
|
3861
3863
|
dedupeTime: r.prefetch ? r.refetchInterval : 1 / 0,
|
|
3862
3864
|
revalidateInterval: r.refetchInterval > 0 ? r.refetchInterval : 0,
|
|
3863
3865
|
fetcher: async (i) => {
|
|
3864
3866
|
if (!i || typeof i != "string")
|
|
3865
3867
|
throw new Error("no_valid_ad");
|
|
3866
|
-
|
|
3868
|
+
$.emit("exposedPauseAd", {
|
|
3867
3869
|
action: "load",
|
|
3868
3870
|
payload: {}
|
|
3869
3871
|
});
|
|
3870
3872
|
try {
|
|
3871
|
-
const o = (await
|
|
3873
|
+
const o = (await Mo.get(i)).ads.find((a) => a.creatives.length > 0);
|
|
3872
3874
|
if (o) {
|
|
3873
3875
|
const a = o.id || "";
|
|
3874
3876
|
At.debug(o, "validAd");
|
|
@@ -3878,7 +3880,7 @@ const qo = new Bo(), At = fe("ui:gam-static"), sn = (t) => new Promise((e, n) =>
|
|
|
3878
3880
|
At.debug(u, "nonlinear");
|
|
3879
3881
|
const p = u.variations?.[0]?.staticResource, m = u.variations?.[0]?.nonlinearClickThroughURLTemplate;
|
|
3880
3882
|
if (p)
|
|
3881
|
-
return await sn(p),
|
|
3883
|
+
return await sn(p), $.emit("exposedPauseAd", {
|
|
3882
3884
|
action: "loaded",
|
|
3883
3885
|
payload: {
|
|
3884
3886
|
id: d,
|
|
@@ -3897,7 +3899,7 @@ const qo = new Bo(), At = fe("ui:gam-static"), sn = (t) => new Promise((e, n) =>
|
|
|
3897
3899
|
const l = c?.variations?.[0]?.staticResources?.[0]?.url, f = c?.variations?.[0]?.companionClickThroughURLTemplate;
|
|
3898
3900
|
if (l) {
|
|
3899
3901
|
const d = c.adId || c.id || a;
|
|
3900
|
-
return await sn(l),
|
|
3902
|
+
return await sn(l), $.emit("exposedPauseAd", {
|
|
3901
3903
|
action: "loaded",
|
|
3902
3904
|
payload: {
|
|
3903
3905
|
id: d,
|
|
@@ -3918,14 +3920,14 @@ const qo = new Bo(), At = fe("ui:gam-static"), sn = (t) => new Promise((e, n) =>
|
|
|
3918
3920
|
}
|
|
3919
3921
|
}
|
|
3920
3922
|
});
|
|
3921
|
-
class
|
|
3923
|
+
class Go extends si {
|
|
3922
3924
|
getExternalPauseAd;
|
|
3923
3925
|
externalPauseAdStores = /* @__PURE__ */ new Map();
|
|
3924
3926
|
externalPauseAdEnabled = /* @__PURE__ */ new Map();
|
|
3925
3927
|
log;
|
|
3926
3928
|
constructor(e) {
|
|
3927
3929
|
super(), this.log = fe("advertisement");
|
|
3928
|
-
const n =
|
|
3930
|
+
const n = jo(e);
|
|
3929
3931
|
this.getExternalPauseAd = (r, i) => {
|
|
3930
3932
|
if (this.externalPauseAdStores.has(r)) {
|
|
3931
3933
|
const a = this.externalPauseAdEnabled.get(r), u = this.externalPauseAdStores.get(r), c = a.get() === !1 && i.$enabled === !0;
|
|
@@ -3948,19 +3950,19 @@ class jo extends si {
|
|
|
3948
3950
|
}), this.externalPauseAdEnabled.clear(), this.externalPauseAdStores.clear();
|
|
3949
3951
|
};
|
|
3950
3952
|
}
|
|
3951
|
-
const
|
|
3952
|
-
t.sdk.advertisement = new
|
|
3953
|
+
const Qo = (t, e, n) => {
|
|
3954
|
+
t.sdk.advertisement = new Go(t), t.sdk.onMount({ name: "advertisement" }, () => (t.sdk.advertisement.connect(), () => {
|
|
3953
3955
|
t.sdk.advertisement.disconnect();
|
|
3954
3956
|
})), n();
|
|
3955
3957
|
};
|
|
3956
|
-
class
|
|
3958
|
+
class Wo {
|
|
3957
3959
|
analytics;
|
|
3958
3960
|
constructor(e) {
|
|
3959
3961
|
this.analytics = e, this.analytics.onConnect(() => {
|
|
3960
3962
|
const n = (r) => {
|
|
3961
3963
|
r.slEventBus?.type === "invitation" && r.slEventBus.action === "sent" && this.sent(r.slEventBus.payload);
|
|
3962
3964
|
};
|
|
3963
|
-
return
|
|
3965
|
+
return $.listen(n);
|
|
3964
3966
|
});
|
|
3965
3967
|
}
|
|
3966
3968
|
accepted = () => {
|
|
@@ -3984,7 +3986,7 @@ class Qo {
|
|
|
3984
3986
|
});
|
|
3985
3987
|
};
|
|
3986
3988
|
}
|
|
3987
|
-
class
|
|
3989
|
+
class Ho {
|
|
3988
3990
|
analytics;
|
|
3989
3991
|
constructor(e) {
|
|
3990
3992
|
this.analytics = e, this.analytics.onConnect(() => {
|
|
@@ -3999,7 +4001,7 @@ class Wo {
|
|
|
3999
4001
|
break;
|
|
4000
4002
|
}
|
|
4001
4003
|
};
|
|
4002
|
-
return
|
|
4004
|
+
return $.listen(n);
|
|
4003
4005
|
});
|
|
4004
4006
|
}
|
|
4005
4007
|
tap = () => {
|
|
@@ -4021,7 +4023,7 @@ class Wo {
|
|
|
4021
4023
|
});
|
|
4022
4024
|
};
|
|
4023
4025
|
}
|
|
4024
|
-
const
|
|
4026
|
+
const Ko = {
|
|
4025
4027
|
[Q.UNSET]: Z.UNSET,
|
|
4026
4028
|
[Q.INGAME_IAB21]: Z.PROMOTION_INGAME_IAB21,
|
|
4027
4029
|
[Q.INGAME_IAB21_SIDEBAR]: Z.PROMOTION_INGAME_IAB21,
|
|
@@ -4045,12 +4047,12 @@ const Ho = {
|
|
|
4045
4047
|
[Q.STANDARD]: Z.UNSET,
|
|
4046
4048
|
[Q.SHOP]: Z.UNSET,
|
|
4047
4049
|
[Q.NFL_SHOP]: Z.UNSET
|
|
4048
|
-
}, fr = (t) => t ?
|
|
4050
|
+
}, fr = (t) => t ? Ko[t] : Z.UNSET, $o = {
|
|
4049
4051
|
25: j.AD_VIDEO_Q25,
|
|
4050
4052
|
50: j.AD_VIDEO_Q50,
|
|
4051
4053
|
75: j.AD_VIDEO_Q75
|
|
4052
4054
|
};
|
|
4053
|
-
class
|
|
4055
|
+
class zo {
|
|
4054
4056
|
analytics;
|
|
4055
4057
|
constructor(e) {
|
|
4056
4058
|
this.analytics = e, this.analytics.onConnect(() => {
|
|
@@ -4129,7 +4131,7 @@ class Ko {
|
|
|
4129
4131
|
}
|
|
4130
4132
|
}
|
|
4131
4133
|
};
|
|
4132
|
-
return
|
|
4134
|
+
return $.listen(n);
|
|
4133
4135
|
});
|
|
4134
4136
|
}
|
|
4135
4137
|
exposedPauseAdEnabled = ({ id: e, parentId: n }) => {
|
|
@@ -4140,7 +4142,7 @@ class Ko {
|
|
|
4140
4142
|
kind: j.STREAM_PAUSED,
|
|
4141
4143
|
topicId: e,
|
|
4142
4144
|
parentTopicId: n,
|
|
4143
|
-
topicType:
|
|
4145
|
+
topicType: K.EXPOSED_PAUSED_AD
|
|
4144
4146
|
},
|
|
4145
4147
|
pollOpenedFrom: ee.UNSET
|
|
4146
4148
|
});
|
|
@@ -4153,7 +4155,7 @@ class Ko {
|
|
|
4153
4155
|
kind: j.EXTERNAL_AD_CLOSED,
|
|
4154
4156
|
topicId: e,
|
|
4155
4157
|
parentTopicId: n,
|
|
4156
|
-
topicType:
|
|
4158
|
+
topicType: K.EXPOSED_PAUSED_AD
|
|
4157
4159
|
},
|
|
4158
4160
|
pollOpenedFrom: ee.UNSET
|
|
4159
4161
|
});
|
|
@@ -4166,7 +4168,7 @@ class Ko {
|
|
|
4166
4168
|
kind: j.STREAM_RESUMED,
|
|
4167
4169
|
topicId: e,
|
|
4168
4170
|
parentTopicId: n,
|
|
4169
|
-
topicType:
|
|
4171
|
+
topicType: K.EXPOSED_PAUSED_AD
|
|
4170
4172
|
},
|
|
4171
4173
|
pollOpenedFrom: ee.UNSET
|
|
4172
4174
|
});
|
|
@@ -4179,7 +4181,7 @@ class Ko {
|
|
|
4179
4181
|
kind: j.EXTERNAL_AD_RENDERED,
|
|
4180
4182
|
topicId: e,
|
|
4181
4183
|
parentTopicId: n,
|
|
4182
|
-
topicType:
|
|
4184
|
+
topicType: K.EXPOSED_PAUSED_AD
|
|
4183
4185
|
},
|
|
4184
4186
|
pollOpenedFrom: ee.UNSET
|
|
4185
4187
|
});
|
|
@@ -4192,7 +4194,7 @@ class Ko {
|
|
|
4192
4194
|
kind: j.AD_INTERACTION_BANNER_NAVIGATED,
|
|
4193
4195
|
topicId: e,
|
|
4194
4196
|
parentTopicId: n,
|
|
4195
|
-
topicType:
|
|
4197
|
+
topicType: K.EXPOSED_PAUSED_AD
|
|
4196
4198
|
},
|
|
4197
4199
|
pollOpenedFrom: ee.UNSET
|
|
4198
4200
|
});
|
|
@@ -4205,7 +4207,7 @@ class Ko {
|
|
|
4205
4207
|
kind: r ? j.EXTERNAL_AD_LOADED : j.EXTERNAL_AD_REQUESTED,
|
|
4206
4208
|
topicId: e,
|
|
4207
4209
|
parentTopicId: n,
|
|
4208
|
-
topicType:
|
|
4210
|
+
topicType: K.EXPOSED_PAUSED_AD
|
|
4209
4211
|
},
|
|
4210
4212
|
pollOpenedFrom: ee.UNSET
|
|
4211
4213
|
});
|
|
@@ -4216,7 +4218,7 @@ class Ko {
|
|
|
4216
4218
|
...this.analytics.commonStore.getValues(),
|
|
4217
4219
|
kind: j.POLLS_RECEIVED,
|
|
4218
4220
|
topicId: e,
|
|
4219
|
-
topicType:
|
|
4221
|
+
topicType: K.POLLS_PROMOTION,
|
|
4220
4222
|
topicSubType: n
|
|
4221
4223
|
},
|
|
4222
4224
|
pollOpenedFrom: ee.UNSET
|
|
@@ -4228,7 +4230,7 @@ class Ko {
|
|
|
4228
4230
|
...this.analytics.commonStore.getValues(),
|
|
4229
4231
|
kind: j.POLLS_OPENED,
|
|
4230
4232
|
topicId: e,
|
|
4231
|
-
topicType:
|
|
4233
|
+
topicType: K.POLLS_PROMOTION,
|
|
4232
4234
|
topicSubType: r
|
|
4233
4235
|
},
|
|
4234
4236
|
pollOpenedFrom: n === "notification" ? ee.IN_APP : ee.UNSET
|
|
@@ -4243,7 +4245,7 @@ class Ko {
|
|
|
4243
4245
|
...this.analytics.commonStore.getValues(),
|
|
4244
4246
|
topicId: e,
|
|
4245
4247
|
kind: r ? j.AD_VIDEO_MUTED : j.AD_VIDEO_UNMUTED,
|
|
4246
|
-
topicType:
|
|
4248
|
+
topicType: K.POLLS_PROMOTION,
|
|
4247
4249
|
topicSubType: n
|
|
4248
4250
|
},
|
|
4249
4251
|
pollOpenedFrom: ee.UNSET
|
|
@@ -4255,7 +4257,7 @@ class Ko {
|
|
|
4255
4257
|
...this.analytics.commonStore.getValues(),
|
|
4256
4258
|
topicId: e,
|
|
4257
4259
|
kind: $o[n],
|
|
4258
|
-
topicType:
|
|
4260
|
+
topicType: K.POLLS_PROMOTION,
|
|
4259
4261
|
topicSubType: r
|
|
4260
4262
|
},
|
|
4261
4263
|
pollOpenedFrom: ee.UNSET
|
|
@@ -4267,7 +4269,7 @@ class Ko {
|
|
|
4267
4269
|
...this.analytics.commonStore.getValues(),
|
|
4268
4270
|
topicId: e,
|
|
4269
4271
|
kind: j.AD_VIDEO_REPLAYED,
|
|
4270
|
-
topicType:
|
|
4272
|
+
topicType: K.POLLS_PROMOTION,
|
|
4271
4273
|
topicSubType: n
|
|
4272
4274
|
},
|
|
4273
4275
|
pollOpenedFrom: ee.UNSET
|
|
@@ -4279,7 +4281,7 @@ class Ko {
|
|
|
4279
4281
|
...this.analytics.commonStore.getValues(),
|
|
4280
4282
|
topicId: e,
|
|
4281
4283
|
kind: j.AD_VIDEO_PLAYED,
|
|
4282
|
-
topicType:
|
|
4284
|
+
topicType: K.POLLS_PROMOTION,
|
|
4283
4285
|
topicSubType: n
|
|
4284
4286
|
},
|
|
4285
4287
|
pollOpenedFrom: ee.UNSET
|
|
@@ -4291,7 +4293,7 @@ class Ko {
|
|
|
4291
4293
|
...this.analytics.commonStore.getValues(),
|
|
4292
4294
|
topicId: e,
|
|
4293
4295
|
kind: j.AD_VIDEO_COMPLETE,
|
|
4294
|
-
topicType:
|
|
4296
|
+
topicType: K.POLLS_PROMOTION,
|
|
4295
4297
|
topicSubType: n
|
|
4296
4298
|
},
|
|
4297
4299
|
pollOpenedFrom: ee.UNSET
|
|
@@ -4303,7 +4305,7 @@ class Ko {
|
|
|
4303
4305
|
...this.analytics.commonStore.getValues(),
|
|
4304
4306
|
topicId: e,
|
|
4305
4307
|
kind: j.AD_VIDEO_RENDERED,
|
|
4306
|
-
topicType:
|
|
4308
|
+
topicType: K.POLLS_PROMOTION,
|
|
4307
4309
|
topicSubType: n
|
|
4308
4310
|
},
|
|
4309
4311
|
pollOpenedFrom: ee.UNSET
|
|
@@ -4315,7 +4317,7 @@ class Ko {
|
|
|
4315
4317
|
...this.analytics.commonStore.getValues(),
|
|
4316
4318
|
topicId: e,
|
|
4317
4319
|
kind: j.AD_INTERACTION_BUTTON_NAVIGATED,
|
|
4318
|
-
topicType:
|
|
4320
|
+
topicType: K.POLLS_PROMOTION,
|
|
4319
4321
|
topicSubType: n
|
|
4320
4322
|
},
|
|
4321
4323
|
pollOpenedFrom: ee.UNSET
|
|
@@ -4327,7 +4329,7 @@ class Ko {
|
|
|
4327
4329
|
...this.analytics.commonStore.getValues(),
|
|
4328
4330
|
topicId: e,
|
|
4329
4331
|
kind: j.AD_INTERACTION_BANNER_NAVIGATED,
|
|
4330
|
-
topicType:
|
|
4332
|
+
topicType: K.POLLS_PROMOTION,
|
|
4331
4333
|
topicSubType: n
|
|
4332
4334
|
},
|
|
4333
4335
|
pollOpenedFrom: ee.UNSET
|
|
@@ -4339,24 +4341,24 @@ class Ko {
|
|
|
4339
4341
|
...this.analytics.commonStore.getValues(),
|
|
4340
4342
|
topicId: e,
|
|
4341
4343
|
kind: j.AD_BANNER_SHOWN,
|
|
4342
|
-
topicType:
|
|
4344
|
+
topicType: K.POLLS_PROMOTION,
|
|
4343
4345
|
topicSubType: n
|
|
4344
4346
|
},
|
|
4345
4347
|
pollOpenedFrom: ee.UNSET
|
|
4346
4348
|
});
|
|
4347
4349
|
};
|
|
4348
4350
|
}
|
|
4349
|
-
const
|
|
4350
|
-
[q.UNSET]:
|
|
4351
|
-
[q.FACTOID]:
|
|
4352
|
-
[q.POLL]:
|
|
4353
|
-
[q.PREDICTION]:
|
|
4354
|
-
[q.PROMOTION]:
|
|
4355
|
-
[q.TRIVIA]:
|
|
4356
|
-
[q.TWEET]:
|
|
4351
|
+
const Ke = {
|
|
4352
|
+
[q.UNSET]: K.UNSET,
|
|
4353
|
+
[q.FACTOID]: K.POLLS_INSIGHT,
|
|
4354
|
+
[q.POLL]: K.POLLS_POLL,
|
|
4355
|
+
[q.PREDICTION]: K.POLLS_PREDICTION,
|
|
4356
|
+
[q.PROMOTION]: K.POLLS_PROMOTION,
|
|
4357
|
+
[q.TRIVIA]: K.POLLS_TRIVIA,
|
|
4358
|
+
[q.TWEET]: K.POLLS_TWITTER
|
|
4357
4359
|
};
|
|
4358
|
-
q.UNSET + "",
|
|
4359
|
-
const
|
|
4360
|
+
q.UNSET + "", Te.UNSET, q.FACTOID + "", Te.POLLS, q.POLL + "", Te.POLLS, q.PREDICTION + "", Te.POLLS, q.PROMOTION + "", Te.POLLS, q.TRIVIA + "", Te.POLLS, q.TWEET + "", Te.POLLS;
|
|
4361
|
+
const Yo = {
|
|
4360
4362
|
[J.UNSET]: ae.UNSET,
|
|
4361
4363
|
[J.INPLAY]: ae.INPLAY,
|
|
4362
4364
|
[J.MESSAGING]: ae.MESSAGING,
|
|
@@ -4376,7 +4378,7 @@ const zo = {
|
|
|
4376
4378
|
[J.HIGHLIGHTS]: ae.HIGHLIGHTS,
|
|
4377
4379
|
[J.PUBLIC_CHAT]: ae.PUBLIC_CHAT
|
|
4378
4380
|
};
|
|
4379
|
-
class
|
|
4381
|
+
class Xo {
|
|
4380
4382
|
analytics;
|
|
4381
4383
|
constructor(e) {
|
|
4382
4384
|
this.analytics = e, this.analytics.onConnect(() => {
|
|
@@ -4408,7 +4410,7 @@ class Yo {
|
|
|
4408
4410
|
break;
|
|
4409
4411
|
}
|
|
4410
4412
|
};
|
|
4411
|
-
return
|
|
4413
|
+
return $.listen(n);
|
|
4412
4414
|
});
|
|
4413
4415
|
}
|
|
4414
4416
|
received = ({ questionId: e, questionType: n, topicSubType: r }) => {
|
|
@@ -4417,10 +4419,10 @@ class Yo {
|
|
|
4417
4419
|
...this.analytics.commonStore.getValues(),
|
|
4418
4420
|
kind: j.NOTIFICATION_RECEIVED,
|
|
4419
4421
|
topicId: e,
|
|
4420
|
-
topicType: n ?
|
|
4422
|
+
topicType: n ? Ke[n] : K.UNSET,
|
|
4421
4423
|
topicSubType: r
|
|
4422
4424
|
},
|
|
4423
|
-
notificationKind:
|
|
4425
|
+
notificationKind: Te.POLLS,
|
|
4424
4426
|
notificationType: Dr.IN_APP
|
|
4425
4427
|
});
|
|
4426
4428
|
};
|
|
@@ -4430,15 +4432,15 @@ class Yo {
|
|
|
4430
4432
|
...this.analytics.commonStore.getValues(),
|
|
4431
4433
|
kind: j.NOTIFICATION_OPENED,
|
|
4432
4434
|
topicId: e,
|
|
4433
|
-
topicType: n ?
|
|
4435
|
+
topicType: n ? Ke[n] : K.UNSET,
|
|
4434
4436
|
topicSubType: r
|
|
4435
4437
|
},
|
|
4436
|
-
notificationKind:
|
|
4438
|
+
notificationKind: Te.POLLS,
|
|
4437
4439
|
notificationType: Dr.IN_APP
|
|
4438
4440
|
});
|
|
4439
4441
|
};
|
|
4440
4442
|
}
|
|
4441
|
-
class
|
|
4443
|
+
class Jo {
|
|
4442
4444
|
analytics;
|
|
4443
4445
|
constructor(e) {
|
|
4444
4446
|
this.analytics = e, this.analytics.onConnect(() => {
|
|
@@ -4462,7 +4464,7 @@ class Xo {
|
|
|
4462
4464
|
break;
|
|
4463
4465
|
}
|
|
4464
4466
|
};
|
|
4465
|
-
return
|
|
4467
|
+
return $.listen(n);
|
|
4466
4468
|
});
|
|
4467
4469
|
}
|
|
4468
4470
|
// event when a poll is received from subscription or active question request
|
|
@@ -4472,7 +4474,7 @@ class Xo {
|
|
|
4472
4474
|
...this.analytics.commonStore.getValues(),
|
|
4473
4475
|
kind: j.POLLS_RECEIVED,
|
|
4474
4476
|
topicId: e,
|
|
4475
|
-
topicType: n ?
|
|
4477
|
+
topicType: n ? Ke[n] : K.UNSET
|
|
4476
4478
|
},
|
|
4477
4479
|
pollOpenedFrom: ee.UNSET
|
|
4478
4480
|
});
|
|
@@ -4484,7 +4486,7 @@ class Xo {
|
|
|
4484
4486
|
...this.analytics.commonStore.getValues(),
|
|
4485
4487
|
kind: i ? j.POLLS_AD_OPENED : j.POLLS_OPENED,
|
|
4486
4488
|
topicId: e,
|
|
4487
|
-
topicType: n ?
|
|
4489
|
+
topicType: n ? Ke[n] : K.UNSET
|
|
4488
4490
|
},
|
|
4489
4491
|
pollOpenedFrom: r === "list" ? ee.PICK_HISTORY : ee.IN_APP
|
|
4490
4492
|
});
|
|
@@ -4496,7 +4498,7 @@ class Xo {
|
|
|
4496
4498
|
...this.analytics.commonStore.getValues(),
|
|
4497
4499
|
kind: r ? j.POLLS_AD_VOTE : j.POLLS_VOTE,
|
|
4498
4500
|
topicId: e,
|
|
4499
|
-
topicType: n ?
|
|
4501
|
+
topicType: n ? Ke[n] : K.UNSET
|
|
4500
4502
|
},
|
|
4501
4503
|
pollOpenedFrom: ee.UNSET
|
|
4502
4504
|
});
|
|
@@ -4522,7 +4524,7 @@ class Xo {
|
|
|
4522
4524
|
});
|
|
4523
4525
|
};
|
|
4524
4526
|
}
|
|
4525
|
-
const
|
|
4527
|
+
const Zo = ({ transport: t, $commonStore: e }) => {
|
|
4526
4528
|
let n;
|
|
4527
4529
|
const r = se(!1), i = 3e4, { client: s, queryKey: o } = t.createPromiseClient(ei, {
|
|
4528
4530
|
method: "send",
|
|
@@ -4560,7 +4562,7 @@ const Jo = ({ transport: t, $commonStore: e }) => {
|
|
|
4560
4562
|
Ne.debug("unmounted heartbeat"), a.off(), n?.(), n = void 0, l();
|
|
4561
4563
|
} };
|
|
4562
4564
|
}, Ne = fe("analytics");
|
|
4563
|
-
class
|
|
4565
|
+
class ea {
|
|
4564
4566
|
commonStore;
|
|
4565
4567
|
notifications;
|
|
4566
4568
|
polls;
|
|
@@ -4573,7 +4575,7 @@ class Zo {
|
|
|
4573
4575
|
listenersCancels;
|
|
4574
4576
|
connected = !1;
|
|
4575
4577
|
constructor(e) {
|
|
4576
|
-
this.listeners = /* @__PURE__ */ new Set(), this.listenersCancels = /* @__PURE__ */ new Set(), this.commonStore = new Fe(le({}), "common-analytics"), this.connectToSDK(e), this.heartbeat =
|
|
4578
|
+
this.listeners = /* @__PURE__ */ new Set(), this.listenersCancels = /* @__PURE__ */ new Set(), this.commonStore = new Fe(le({}), "common-analytics"), this.connectToSDK(e), this.heartbeat = Zo({ transport: e.analyticsTransport, $commonStore: this.commonStore }), this.notifications = new Xo(this), this.polls = new Jo(this), this.invitation = new Wo(this), this.interactions = new Ho(this), this.advertisement = new zo(this);
|
|
4577
4579
|
const { client: n } = e.analyticsTransport.createPromiseClient(ei, {
|
|
4578
4580
|
method: "send"
|
|
4579
4581
|
});
|
|
@@ -4603,17 +4605,17 @@ class Zo {
|
|
|
4603
4605
|
this.onConnect(() => e.stores.slStreamId.getAtomStore().subscribe((n) => {
|
|
4604
4606
|
this.writeCommon("eventId", n);
|
|
4605
4607
|
})), this.onConnect(() => e.sdk.getActiveFeature().subscribe((n) => {
|
|
4606
|
-
n && this.writeCommon("category",
|
|
4608
|
+
n && this.writeCommon("category", Yo[n]), n !== J.UNSET ? this.writeCommon("overlaySessionId", qe()) : this.writeCommon("overlaySessionId", "");
|
|
4607
4609
|
})), this.onConnect(() => {
|
|
4608
4610
|
const n = (r) => {
|
|
4609
4611
|
if (!r.slEventBus)
|
|
4610
4612
|
return;
|
|
4611
4613
|
const i = r.slEventBus?.action;
|
|
4612
4614
|
r.slEventBus?.type === "exposedPauseAd" && ((i === "disabled" || i === "closed") && setTimeout(() => {
|
|
4613
|
-
this.writeCommon("overlaySessionId", ""), this.writeCommon("topicId", ""), this.writeCommon("parentTopicId", ""), this.writeCommon("topicType",
|
|
4615
|
+
this.writeCommon("overlaySessionId", ""), this.writeCommon("topicId", ""), this.writeCommon("parentTopicId", ""), this.writeCommon("topicType", K.UNSET), this.writeCommon("category", ae.UNSET);
|
|
4614
4616
|
}, 200), i === "enabled" && (this.writeCommon("overlaySessionId", qe()), this.writeCommon("category", ae.EXPOSED_PAUSED_AD))), r.slEventBus?.type === "advertisement" && (i === "opened" && this.writeCommon("overlaySessionId", qe()), i === "closed" && this.writeCommon("overlaySessionId", ""));
|
|
4615
4617
|
};
|
|
4616
|
-
return
|
|
4618
|
+
return $.listen(n);
|
|
4617
4619
|
}), this.onConnect(() => {
|
|
4618
4620
|
const n = window.matchMedia("(orientation: portrait)"), r = (i) => {
|
|
4619
4621
|
this.writeCommon("screenOrientation", i.matches ? Pr.PORTRAIT : Pr.LANDSCAPE);
|
|
@@ -4626,19 +4628,19 @@ class Zo {
|
|
|
4626
4628
|
}));
|
|
4627
4629
|
};
|
|
4628
4630
|
}
|
|
4629
|
-
const
|
|
4630
|
-
t.analytics = new
|
|
4631
|
+
const ta = (t, e, n) => {
|
|
4632
|
+
t.analytics = new ea(t), t.sdk.onMount({ name: "analytics" }, () => (t.analytics.connect(), t.sdk.writeOverlaySessionId = (r) => {
|
|
4631
4633
|
r === "" ? t.analytics.writeCommon("overlaySessionId", "") : t.analytics.writeCommon("overlaySessionId", qe());
|
|
4632
4634
|
}, () => {
|
|
4633
4635
|
t.analytics.disconnect();
|
|
4634
4636
|
})), n();
|
|
4635
4637
|
};
|
|
4636
4638
|
var gr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4637
|
-
function
|
|
4639
|
+
function ra(t) {
|
|
4638
4640
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
4639
4641
|
}
|
|
4640
4642
|
var st = { exports: {} }, ot = { exports: {} }, St, on;
|
|
4641
|
-
function
|
|
4643
|
+
function na() {
|
|
4642
4644
|
if (on) return St;
|
|
4643
4645
|
on = 1;
|
|
4644
4646
|
function t(e) {
|
|
@@ -4661,7 +4663,7 @@ var an;
|
|
|
4661
4663
|
function wi() {
|
|
4662
4664
|
if (an) return ot.exports;
|
|
4663
4665
|
an = 1;
|
|
4664
|
-
var t =
|
|
4666
|
+
var t = na();
|
|
4665
4667
|
function e(s, o, a) {
|
|
4666
4668
|
if (typeof s == "function" && (a = o, o = s, s = null), !(a >= 1))
|
|
4667
4669
|
throw new Error("fastqueue concurrency must be equal to or greater than 1");
|
|
@@ -4686,7 +4688,7 @@ function wi() {
|
|
|
4686
4688
|
idle: w,
|
|
4687
4689
|
length: y,
|
|
4688
4690
|
getQueue: I,
|
|
4689
|
-
unshift:
|
|
4691
|
+
unshift: E,
|
|
4690
4692
|
empty: n,
|
|
4691
4693
|
kill: _,
|
|
4692
4694
|
killAndDrain: g,
|
|
@@ -4726,7 +4728,7 @@ function wi() {
|
|
|
4726
4728
|
var L = u.get();
|
|
4727
4729
|
L.context = s, L.release = C, L.value = O, L.callback = P || n, L.errorHandler = d, f >= a || p.paused ? l ? (l.next = L, l = L) : (c = L, l = L, p.saturated()) : (f++, o.call(s, L.value, L.worked));
|
|
4728
4730
|
}
|
|
4729
|
-
function
|
|
4731
|
+
function E(O, P) {
|
|
4730
4732
|
var L = u.get();
|
|
4731
4733
|
L.context = s, L.release = C, L.value = O, L.callback = P || n, L.errorHandler = d, f >= a || p.paused ? c ? (L.next = c, c = L) : (c = L, l = L, p.saturated()) : (f++, o.call(s, L.value, L.worked));
|
|
4732
4734
|
}
|
|
@@ -4804,22 +4806,22 @@ function wi() {
|
|
|
4804
4806
|
return ot.exports = e, ot.exports.promise = i, ot.exports;
|
|
4805
4807
|
}
|
|
4806
4808
|
var at = { exports: {} }, un;
|
|
4807
|
-
function
|
|
4809
|
+
function Ei() {
|
|
4808
4810
|
if (un) return at.exports;
|
|
4809
4811
|
un = 1;
|
|
4810
|
-
var t = typeof Reflect == "object" ? Reflect : null, e = t && typeof t.apply == "function" ? t.apply : function(
|
|
4811
|
-
return Function.prototype.apply.call(
|
|
4812
|
+
var t = typeof Reflect == "object" ? Reflect : null, e = t && typeof t.apply == "function" ? t.apply : function(E, C, _) {
|
|
4813
|
+
return Function.prototype.apply.call(E, C, _);
|
|
4812
4814
|
}, n;
|
|
4813
|
-
t && typeof t.ownKeys == "function" ? n = t.ownKeys : Object.getOwnPropertySymbols ? n = function(
|
|
4814
|
-
return Object.getOwnPropertyNames(
|
|
4815
|
-
} : n = function(
|
|
4816
|
-
return Object.getOwnPropertyNames(
|
|
4815
|
+
t && typeof t.ownKeys == "function" ? n = t.ownKeys : Object.getOwnPropertySymbols ? n = function(E) {
|
|
4816
|
+
return Object.getOwnPropertyNames(E).concat(Object.getOwnPropertySymbols(E));
|
|
4817
|
+
} : n = function(E) {
|
|
4818
|
+
return Object.getOwnPropertyNames(E);
|
|
4817
4819
|
};
|
|
4818
4820
|
function r(v) {
|
|
4819
4821
|
console && console.warn && console.warn(v);
|
|
4820
4822
|
}
|
|
4821
|
-
var i = Number.isNaN || function(
|
|
4822
|
-
return
|
|
4823
|
+
var i = Number.isNaN || function(E) {
|
|
4824
|
+
return E !== E;
|
|
4823
4825
|
};
|
|
4824
4826
|
function s() {
|
|
4825
4827
|
s.init.call(this);
|
|
@@ -4842,19 +4844,19 @@ function Ti() {
|
|
|
4842
4844
|
}
|
|
4843
4845
|
}), s.init = function() {
|
|
4844
4846
|
(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;
|
|
4845
|
-
}, s.prototype.setMaxListeners = function(
|
|
4846
|
-
if (typeof
|
|
4847
|
-
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' +
|
|
4848
|
-
return this._maxListeners =
|
|
4847
|
+
}, s.prototype.setMaxListeners = function(E) {
|
|
4848
|
+
if (typeof E != "number" || E < 0 || i(E))
|
|
4849
|
+
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + E + ".");
|
|
4850
|
+
return this._maxListeners = E, this;
|
|
4849
4851
|
};
|
|
4850
4852
|
function u(v) {
|
|
4851
4853
|
return v._maxListeners === void 0 ? s.defaultMaxListeners : v._maxListeners;
|
|
4852
4854
|
}
|
|
4853
4855
|
s.prototype.getMaxListeners = function() {
|
|
4854
4856
|
return u(this);
|
|
4855
|
-
}, s.prototype.emit = function(
|
|
4857
|
+
}, s.prototype.emit = function(E) {
|
|
4856
4858
|
for (var C = [], _ = 1; _ < arguments.length; _++) C.push(arguments[_]);
|
|
4857
|
-
var g =
|
|
4859
|
+
var g = E === "error", N = this._events;
|
|
4858
4860
|
if (N !== void 0)
|
|
4859
4861
|
g = g && N.error === void 0;
|
|
4860
4862
|
else if (!g)
|
|
@@ -4866,7 +4868,7 @@ function Ti() {
|
|
|
4866
4868
|
var P = new Error("Unhandled error." + (O ? " (" + O.message + ")" : ""));
|
|
4867
4869
|
throw P.context = O, P;
|
|
4868
4870
|
}
|
|
4869
|
-
var L = N[
|
|
4871
|
+
var L = N[E];
|
|
4870
4872
|
if (L === void 0)
|
|
4871
4873
|
return !1;
|
|
4872
4874
|
if (typeof L == "function")
|
|
@@ -4876,46 +4878,46 @@ function Ti() {
|
|
|
4876
4878
|
e(Y[_], this, C);
|
|
4877
4879
|
return !0;
|
|
4878
4880
|
};
|
|
4879
|
-
function c(v,
|
|
4881
|
+
function c(v, E, C, _) {
|
|
4880
4882
|
var g, N, O;
|
|
4881
4883
|
if (a(C), N = v._events, N === void 0 ? (N = v._events = /* @__PURE__ */ Object.create(null), v._eventsCount = 0) : (N.newListener !== void 0 && (v.emit(
|
|
4882
4884
|
"newListener",
|
|
4883
|
-
|
|
4885
|
+
E,
|
|
4884
4886
|
C.listener ? C.listener : C
|
|
4885
|
-
), N = v._events), O = N[
|
|
4886
|
-
O = N[
|
|
4887
|
-
else if (typeof O == "function" ? O = N[
|
|
4887
|
+
), N = v._events), O = N[E]), O === void 0)
|
|
4888
|
+
O = N[E] = C, ++v._eventsCount;
|
|
4889
|
+
else if (typeof O == "function" ? O = N[E] = _ ? [C, O] : [O, C] : _ ? O.unshift(C) : O.push(C), g = u(v), g > 0 && O.length > g && !O.warned) {
|
|
4888
4890
|
O.warned = !0;
|
|
4889
|
-
var P = new Error("Possible EventEmitter memory leak detected. " + O.length + " " + String(
|
|
4890
|
-
P.name = "MaxListenersExceededWarning", P.emitter = v, P.type =
|
|
4891
|
+
var P = new Error("Possible EventEmitter memory leak detected. " + O.length + " " + String(E) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
4892
|
+
P.name = "MaxListenersExceededWarning", P.emitter = v, P.type = E, P.count = O.length, r(P);
|
|
4891
4893
|
}
|
|
4892
4894
|
return v;
|
|
4893
4895
|
}
|
|
4894
|
-
s.prototype.addListener = function(
|
|
4895
|
-
return c(this,
|
|
4896
|
-
}, s.prototype.on = s.prototype.addListener, s.prototype.prependListener = function(
|
|
4897
|
-
return c(this,
|
|
4896
|
+
s.prototype.addListener = function(E, C) {
|
|
4897
|
+
return c(this, E, C, !1);
|
|
4898
|
+
}, s.prototype.on = s.prototype.addListener, s.prototype.prependListener = function(E, C) {
|
|
4899
|
+
return c(this, E, C, !0);
|
|
4898
4900
|
};
|
|
4899
4901
|
function l() {
|
|
4900
4902
|
if (!this.fired)
|
|
4901
4903
|
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);
|
|
4902
4904
|
}
|
|
4903
|
-
function f(v,
|
|
4904
|
-
var _ = { fired: !1, wrapFn: void 0, target: v, type:
|
|
4905
|
+
function f(v, E, C) {
|
|
4906
|
+
var _ = { fired: !1, wrapFn: void 0, target: v, type: E, listener: C }, g = l.bind(_);
|
|
4905
4907
|
return g.listener = C, _.wrapFn = g, g;
|
|
4906
4908
|
}
|
|
4907
|
-
s.prototype.once = function(
|
|
4908
|
-
return a(C), this.on(
|
|
4909
|
-
}, s.prototype.prependOnceListener = function(
|
|
4910
|
-
return a(C), this.prependListener(
|
|
4911
|
-
}, s.prototype.removeListener = function(
|
|
4909
|
+
s.prototype.once = function(E, C) {
|
|
4910
|
+
return a(C), this.on(E, f(this, E, C)), this;
|
|
4911
|
+
}, s.prototype.prependOnceListener = function(E, C) {
|
|
4912
|
+
return a(C), this.prependListener(E, f(this, E, C)), this;
|
|
4913
|
+
}, s.prototype.removeListener = function(E, C) {
|
|
4912
4914
|
var _, g, N, O, P;
|
|
4913
4915
|
if (a(C), g = this._events, g === void 0)
|
|
4914
4916
|
return this;
|
|
4915
|
-
if (_ = g[
|
|
4917
|
+
if (_ = g[E], _ === void 0)
|
|
4916
4918
|
return this;
|
|
4917
4919
|
if (_ === C || _.listener === C)
|
|
4918
|
-
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete g[
|
|
4920
|
+
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete g[E], g.removeListener && this.emit("removeListener", E, _.listener || C));
|
|
4919
4921
|
else if (typeof _ != "function") {
|
|
4920
4922
|
for (N = -1, O = _.length - 1; O >= 0; O--)
|
|
4921
4923
|
if (_[O] === C || _[O].listener === C) {
|
|
@@ -4924,46 +4926,46 @@ function Ti() {
|
|
|
4924
4926
|
}
|
|
4925
4927
|
if (N < 0)
|
|
4926
4928
|
return this;
|
|
4927
|
-
N === 0 ? _.shift() : h(_, N), _.length === 1 && (g[
|
|
4929
|
+
N === 0 ? _.shift() : h(_, N), _.length === 1 && (g[E] = _[0]), g.removeListener !== void 0 && this.emit("removeListener", E, P || C);
|
|
4928
4930
|
}
|
|
4929
4931
|
return this;
|
|
4930
|
-
}, s.prototype.off = s.prototype.removeListener, s.prototype.removeAllListeners = function(
|
|
4932
|
+
}, s.prototype.off = s.prototype.removeListener, s.prototype.removeAllListeners = function(E) {
|
|
4931
4933
|
var C, _, g;
|
|
4932
4934
|
if (_ = this._events, _ === void 0)
|
|
4933
4935
|
return this;
|
|
4934
4936
|
if (_.removeListener === void 0)
|
|
4935
|
-
return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : _[
|
|
4937
|
+
return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : _[E] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete _[E]), this;
|
|
4936
4938
|
if (arguments.length === 0) {
|
|
4937
4939
|
var N = Object.keys(_), O;
|
|
4938
4940
|
for (g = 0; g < N.length; ++g)
|
|
4939
4941
|
O = N[g], O !== "removeListener" && this.removeAllListeners(O);
|
|
4940
4942
|
return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
|
|
4941
4943
|
}
|
|
4942
|
-
if (C = _[
|
|
4943
|
-
this.removeListener(
|
|
4944
|
+
if (C = _[E], typeof C == "function")
|
|
4945
|
+
this.removeListener(E, C);
|
|
4944
4946
|
else if (C !== void 0)
|
|
4945
4947
|
for (g = C.length - 1; g >= 0; g--)
|
|
4946
|
-
this.removeListener(
|
|
4948
|
+
this.removeListener(E, C[g]);
|
|
4947
4949
|
return this;
|
|
4948
4950
|
};
|
|
4949
|
-
function d(v,
|
|
4951
|
+
function d(v, E, C) {
|
|
4950
4952
|
var _ = v._events;
|
|
4951
4953
|
if (_ === void 0)
|
|
4952
4954
|
return [];
|
|
4953
|
-
var g = _[
|
|
4955
|
+
var g = _[E];
|
|
4954
4956
|
return g === void 0 ? [] : typeof g == "function" ? C ? [g.listener || g] : [g] : C ? y(g) : m(g, g.length);
|
|
4955
4957
|
}
|
|
4956
|
-
s.prototype.listeners = function(
|
|
4957
|
-
return d(this,
|
|
4958
|
-
}, s.prototype.rawListeners = function(
|
|
4959
|
-
return d(this,
|
|
4960
|
-
}, s.listenerCount = function(v,
|
|
4961
|
-
return typeof v.listenerCount == "function" ? v.listenerCount(
|
|
4958
|
+
s.prototype.listeners = function(E) {
|
|
4959
|
+
return d(this, E, !0);
|
|
4960
|
+
}, s.prototype.rawListeners = function(E) {
|
|
4961
|
+
return d(this, E, !1);
|
|
4962
|
+
}, s.listenerCount = function(v, E) {
|
|
4963
|
+
return typeof v.listenerCount == "function" ? v.listenerCount(E) : p.call(v, E);
|
|
4962
4964
|
}, s.prototype.listenerCount = p;
|
|
4963
4965
|
function p(v) {
|
|
4964
|
-
var
|
|
4965
|
-
if (
|
|
4966
|
-
var C =
|
|
4966
|
+
var E = this._events;
|
|
4967
|
+
if (E !== void 0) {
|
|
4968
|
+
var C = E[v];
|
|
4967
4969
|
if (typeof C == "function")
|
|
4968
4970
|
return 1;
|
|
4969
4971
|
if (C !== void 0)
|
|
@@ -4974,50 +4976,50 @@ function Ti() {
|
|
|
4974
4976
|
s.prototype.eventNames = function() {
|
|
4975
4977
|
return this._eventsCount > 0 ? n(this._events) : [];
|
|
4976
4978
|
};
|
|
4977
|
-
function m(v,
|
|
4978
|
-
for (var C = new Array(
|
|
4979
|
+
function m(v, E) {
|
|
4980
|
+
for (var C = new Array(E), _ = 0; _ < E; ++_)
|
|
4979
4981
|
C[_] = v[_];
|
|
4980
4982
|
return C;
|
|
4981
4983
|
}
|
|
4982
|
-
function h(v,
|
|
4983
|
-
for (;
|
|
4984
|
-
v[
|
|
4984
|
+
function h(v, E) {
|
|
4985
|
+
for (; E + 1 < v.length; E++)
|
|
4986
|
+
v[E] = v[E + 1];
|
|
4985
4987
|
v.pop();
|
|
4986
4988
|
}
|
|
4987
4989
|
function y(v) {
|
|
4988
|
-
for (var
|
|
4989
|
-
|
|
4990
|
-
return
|
|
4990
|
+
for (var E = new Array(v.length), C = 0; C < E.length; ++C)
|
|
4991
|
+
E[C] = v[C].listener || v[C];
|
|
4992
|
+
return E;
|
|
4991
4993
|
}
|
|
4992
|
-
function I(v,
|
|
4994
|
+
function I(v, E) {
|
|
4993
4995
|
return new Promise(function(C, _) {
|
|
4994
4996
|
function g(O) {
|
|
4995
|
-
v.removeListener(
|
|
4997
|
+
v.removeListener(E, N), _(O);
|
|
4996
4998
|
}
|
|
4997
4999
|
function N() {
|
|
4998
5000
|
typeof v.removeListener == "function" && v.removeListener("error", g), C([].slice.call(arguments));
|
|
4999
5001
|
}
|
|
5000
|
-
w(v,
|
|
5002
|
+
w(v, E, N, { once: !0 }), E !== "error" && S(v, g, { once: !0 });
|
|
5001
5003
|
});
|
|
5002
5004
|
}
|
|
5003
|
-
function S(v,
|
|
5004
|
-
typeof v.on == "function" && w(v, "error",
|
|
5005
|
+
function S(v, E, C) {
|
|
5006
|
+
typeof v.on == "function" && w(v, "error", E, C);
|
|
5005
5007
|
}
|
|
5006
|
-
function w(v,
|
|
5008
|
+
function w(v, E, C, _) {
|
|
5007
5009
|
if (typeof v.on == "function")
|
|
5008
|
-
_.once ? v.once(
|
|
5010
|
+
_.once ? v.once(E, C) : v.on(E, C);
|
|
5009
5011
|
else if (typeof v.addEventListener == "function")
|
|
5010
|
-
v.addEventListener(
|
|
5011
|
-
_.once && v.removeEventListener(
|
|
5012
|
+
v.addEventListener(E, function g(N) {
|
|
5013
|
+
_.once && v.removeEventListener(E, g), C(N);
|
|
5012
5014
|
});
|
|
5013
5015
|
else
|
|
5014
5016
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof v);
|
|
5015
5017
|
}
|
|
5016
5018
|
return at.exports;
|
|
5017
5019
|
}
|
|
5018
|
-
var wt = {},
|
|
5019
|
-
function
|
|
5020
|
-
return cn || (cn = 1,
|
|
5020
|
+
var wt = {}, Et = {}, Tt, cn;
|
|
5021
|
+
function Ti() {
|
|
5022
|
+
return cn || (cn = 1, Tt = function() {
|
|
5021
5023
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
5022
5024
|
return !1;
|
|
5023
5025
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -5040,31 +5042,31 @@ function Ei() {
|
|
|
5040
5042
|
return !1;
|
|
5041
5043
|
}
|
|
5042
5044
|
return !0;
|
|
5043
|
-
}),
|
|
5045
|
+
}), Tt;
|
|
5044
5046
|
}
|
|
5045
5047
|
var It, ln;
|
|
5046
5048
|
function yt() {
|
|
5047
5049
|
if (ln) return It;
|
|
5048
5050
|
ln = 1;
|
|
5049
|
-
var t =
|
|
5051
|
+
var t = Ti();
|
|
5050
5052
|
return It = function() {
|
|
5051
5053
|
return t() && !!Symbol.toStringTag;
|
|
5052
5054
|
}, It;
|
|
5053
5055
|
}
|
|
5054
5056
|
var Ot, dn;
|
|
5055
|
-
function
|
|
5057
|
+
function ia() {
|
|
5056
5058
|
return dn || (dn = 1, Ot = Error), Ot;
|
|
5057
5059
|
}
|
|
5058
5060
|
var kt, fn;
|
|
5059
|
-
function
|
|
5061
|
+
function sa() {
|
|
5060
5062
|
return fn || (fn = 1, kt = EvalError), kt;
|
|
5061
5063
|
}
|
|
5062
5064
|
var Nt, pn;
|
|
5063
|
-
function
|
|
5065
|
+
function oa() {
|
|
5064
5066
|
return pn || (pn = 1, Nt = RangeError), Nt;
|
|
5065
5067
|
}
|
|
5066
5068
|
var Rt, hn;
|
|
5067
|
-
function
|
|
5069
|
+
function aa() {
|
|
5068
5070
|
return hn || (hn = 1, Rt = ReferenceError), Rt;
|
|
5069
5071
|
}
|
|
5070
5072
|
var Lt, mn;
|
|
@@ -5076,20 +5078,20 @@ function vt() {
|
|
|
5076
5078
|
return gn || (gn = 1, Ct = TypeError), Ct;
|
|
5077
5079
|
}
|
|
5078
5080
|
var Pt, yn;
|
|
5079
|
-
function
|
|
5081
|
+
function ua() {
|
|
5080
5082
|
return yn || (yn = 1, Pt = URIError), Pt;
|
|
5081
5083
|
}
|
|
5082
5084
|
var _t, vn;
|
|
5083
|
-
function
|
|
5085
|
+
function ca() {
|
|
5084
5086
|
if (vn) return _t;
|
|
5085
5087
|
vn = 1;
|
|
5086
|
-
var t = typeof Symbol < "u" && Symbol, e =
|
|
5088
|
+
var t = typeof Symbol < "u" && Symbol, e = Ti();
|
|
5087
5089
|
return _t = function() {
|
|
5088
5090
|
return typeof t != "function" || typeof Symbol != "function" || typeof t("foo") != "symbol" || typeof /* @__PURE__ */ Symbol("bar") != "symbol" ? !1 : e();
|
|
5089
5091
|
}, _t;
|
|
5090
5092
|
}
|
|
5091
5093
|
var Dt, bn;
|
|
5092
|
-
function
|
|
5094
|
+
function la() {
|
|
5093
5095
|
if (bn) return Dt;
|
|
5094
5096
|
bn = 1;
|
|
5095
5097
|
var t = {
|
|
@@ -5101,7 +5103,7 @@ function ca() {
|
|
|
5101
5103
|
}, Dt;
|
|
5102
5104
|
}
|
|
5103
5105
|
var Ft, An;
|
|
5104
|
-
function
|
|
5106
|
+
function da() {
|
|
5105
5107
|
if (An) return Ft;
|
|
5106
5108
|
An = 1;
|
|
5107
5109
|
var t = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, n = Math.max, r = "[object Function]", i = function(u, c) {
|
|
@@ -5149,21 +5151,21 @@ var Ut, Sn;
|
|
|
5149
5151
|
function yr() {
|
|
5150
5152
|
if (Sn) return Ut;
|
|
5151
5153
|
Sn = 1;
|
|
5152
|
-
var t =
|
|
5154
|
+
var t = da();
|
|
5153
5155
|
return Ut = Function.prototype.bind || t, Ut;
|
|
5154
5156
|
}
|
|
5155
5157
|
var Vt, wn;
|
|
5156
|
-
function
|
|
5158
|
+
function fa() {
|
|
5157
5159
|
if (wn) return Vt;
|
|
5158
5160
|
wn = 1;
|
|
5159
5161
|
var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, n = yr();
|
|
5160
5162
|
return Vt = n.call(t, e), Vt;
|
|
5161
5163
|
}
|
|
5162
|
-
var xt,
|
|
5164
|
+
var xt, En;
|
|
5163
5165
|
function Je() {
|
|
5164
|
-
if (
|
|
5165
|
-
|
|
5166
|
-
var t, e = /* @__PURE__ */
|
|
5166
|
+
if (En) return xt;
|
|
5167
|
+
En = 1;
|
|
5168
|
+
var t, e = /* @__PURE__ */ ia(), n = /* @__PURE__ */ sa(), r = /* @__PURE__ */ oa(), i = /* @__PURE__ */ aa(), s = /* @__PURE__ */ Ii(), o = /* @__PURE__ */ vt(), a = /* @__PURE__ */ ua(), u = Function, c = function(x) {
|
|
5167
5169
|
try {
|
|
5168
5170
|
return u('"use strict"; return (' + x + ").constructor;")();
|
|
5169
5171
|
} catch {
|
|
@@ -5187,7 +5189,7 @@ function Je() {
|
|
|
5187
5189
|
return f;
|
|
5188
5190
|
}
|
|
5189
5191
|
}
|
|
5190
|
-
})() : f, p =
|
|
5192
|
+
})() : f, p = ca()(), m = /* @__PURE__ */ la()(), h = Object.getPrototypeOf || (m ? function(x) {
|
|
5191
5193
|
return x.__proto__;
|
|
5192
5194
|
} : null), y = {}, I = typeof Uint8Array > "u" || !h ? t : h(Uint8Array), S = {
|
|
5193
5195
|
__proto__: null,
|
|
@@ -5282,7 +5284,7 @@ function Je() {
|
|
|
5282
5284
|
ie && h && (z = h(ie.prototype));
|
|
5283
5285
|
}
|
|
5284
5286
|
return S[W] = z, z;
|
|
5285
|
-
},
|
|
5287
|
+
}, E = {
|
|
5286
5288
|
__proto__: null,
|
|
5287
5289
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
5288
5290
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
@@ -5335,19 +5337,19 @@ function Je() {
|
|
|
5335
5337
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
5336
5338
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
5337
5339
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
5338
|
-
}, C = yr(), _ =
|
|
5340
|
+
}, C = yr(), _ = fa(), g = C.call(Function.call, Array.prototype.concat), N = C.call(Function.apply, Array.prototype.splice), O = C.call(Function.call, String.prototype.replace), P = C.call(Function.call, String.prototype.slice), L = C.call(Function.call, RegExp.prototype.exec), D = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Y = /\\(\\)?/g, te = function(W) {
|
|
5339
5341
|
var z = P(W, 0, 1), X = P(W, -1);
|
|
5340
5342
|
if (z === "%" && X !== "%")
|
|
5341
5343
|
throw new s("invalid intrinsic syntax, expected closing `%`");
|
|
5342
5344
|
if (X === "%" && z !== "%")
|
|
5343
5345
|
throw new s("invalid intrinsic syntax, expected opening `%`");
|
|
5344
5346
|
var ie = [];
|
|
5345
|
-
return O(W, D, function(b,
|
|
5346
|
-
ie[ie.length] = R ? O(F, Y, "$1") :
|
|
5347
|
+
return O(W, D, function(b, T, R, F) {
|
|
5348
|
+
ie[ie.length] = R ? O(F, Y, "$1") : T || b;
|
|
5347
5349
|
}), ie;
|
|
5348
5350
|
}, ce = function(W, z) {
|
|
5349
5351
|
var X = W, ie;
|
|
5350
|
-
if (_(
|
|
5352
|
+
if (_(E, X) && (ie = E[X], X = "%" + ie[0] + "%"), _(S, X)) {
|
|
5351
5353
|
var b = S[X];
|
|
5352
5354
|
if (b === y && (b = v(X)), typeof b > "u" && !z)
|
|
5353
5355
|
throw new o("intrinsic " + W + " exists, but is not available. Please file an issue!");
|
|
@@ -5366,14 +5368,14 @@ function Je() {
|
|
|
5366
5368
|
throw new o('"allowMissing" argument must be a boolean');
|
|
5367
5369
|
if (L(/^%?[^%]*%?$/, W) === null)
|
|
5368
5370
|
throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
5369
|
-
var X = te(W), ie = X.length > 0 ? X[0] : "", b = ce("%" + ie + "%", z),
|
|
5371
|
+
var X = te(W), ie = X.length > 0 ? X[0] : "", b = ce("%" + ie + "%", z), T = b.name, R = b.value, F = !1, M = b.alias;
|
|
5370
5372
|
M && (ie = M[0], N(X, g([0, 1], M)));
|
|
5371
5373
|
for (var G = 1, V = !0; G < X.length; G += 1) {
|
|
5372
5374
|
var U = X[G], H = P(U, 0, 1), oe = P(U, -1);
|
|
5373
5375
|
if ((H === '"' || H === "'" || H === "`" || oe === '"' || oe === "'" || oe === "`") && H !== oe)
|
|
5374
5376
|
throw new s("property names with quotes must have matching quotes");
|
|
5375
|
-
if ((U === "constructor" || !V) && (F = !0), ie += "." + U,
|
|
5376
|
-
R = S[
|
|
5377
|
+
if ((U === "constructor" || !V) && (F = !0), ie += "." + U, T = "%" + ie + "%", _(S, T))
|
|
5378
|
+
R = S[T];
|
|
5377
5379
|
else if (R != null) {
|
|
5378
5380
|
if (!(U in R)) {
|
|
5379
5381
|
if (!z)
|
|
@@ -5385,16 +5387,16 @@ function Je() {
|
|
|
5385
5387
|
V = !!pe, V && "get" in pe && !("originalValue" in pe.get) ? R = pe.get : R = R[U];
|
|
5386
5388
|
} else
|
|
5387
5389
|
V = _(R, U), R = R[U];
|
|
5388
|
-
V && !F && (S[
|
|
5390
|
+
V && !F && (S[T] = R);
|
|
5389
5391
|
}
|
|
5390
5392
|
}
|
|
5391
5393
|
return R;
|
|
5392
5394
|
}, xt;
|
|
5393
5395
|
}
|
|
5394
|
-
var Bt = { exports: {} }, qt,
|
|
5396
|
+
var Bt = { exports: {} }, qt, Tn;
|
|
5395
5397
|
function vr() {
|
|
5396
|
-
if (
|
|
5397
|
-
|
|
5398
|
+
if (Tn) return qt;
|
|
5399
|
+
Tn = 1;
|
|
5398
5400
|
var t = /* @__PURE__ */ Je(), e = t("%Object.defineProperty%", !0) || !1;
|
|
5399
5401
|
if (e)
|
|
5400
5402
|
try {
|
|
@@ -5418,7 +5420,7 @@ function bt() {
|
|
|
5418
5420
|
return Mt = e, Mt;
|
|
5419
5421
|
}
|
|
5420
5422
|
var jt, On;
|
|
5421
|
-
function
|
|
5423
|
+
function pa() {
|
|
5422
5424
|
if (On) return jt;
|
|
5423
5425
|
On = 1;
|
|
5424
5426
|
var t = /* @__PURE__ */ vr(), e = /* @__PURE__ */ Ii(), n = /* @__PURE__ */ vt(), r = /* @__PURE__ */ bt();
|
|
@@ -5450,7 +5452,7 @@ function fa() {
|
|
|
5450
5452
|
}, jt;
|
|
5451
5453
|
}
|
|
5452
5454
|
var Gt, kn;
|
|
5453
|
-
function
|
|
5455
|
+
function ha() {
|
|
5454
5456
|
if (kn) return Gt;
|
|
5455
5457
|
kn = 1;
|
|
5456
5458
|
var t = /* @__PURE__ */ vr(), e = function() {
|
|
@@ -5467,10 +5469,10 @@ function pa() {
|
|
|
5467
5469
|
}, Gt = e, Gt;
|
|
5468
5470
|
}
|
|
5469
5471
|
var Qt, Nn;
|
|
5470
|
-
function
|
|
5472
|
+
function ma() {
|
|
5471
5473
|
if (Nn) return Qt;
|
|
5472
5474
|
Nn = 1;
|
|
5473
|
-
var t = /* @__PURE__ */ Je(), e = /* @__PURE__ */
|
|
5475
|
+
var t = /* @__PURE__ */ Je(), e = /* @__PURE__ */ pa(), n = /* @__PURE__ */ ha()(), r = /* @__PURE__ */ bt(), i = /* @__PURE__ */ vt(), s = t("%Math.floor%");
|
|
5474
5476
|
return Qt = function(a, u) {
|
|
5475
5477
|
if (typeof a != "function")
|
|
5476
5478
|
throw new i("`fn` is not a function");
|
|
@@ -5499,7 +5501,7 @@ function ha() {
|
|
|
5499
5501
|
var Rn;
|
|
5500
5502
|
function br() {
|
|
5501
5503
|
return Rn || (Rn = 1, (function(t) {
|
|
5502
|
-
var e = yr(), n = /* @__PURE__ */ Je(), r = /* @__PURE__ */
|
|
5504
|
+
var e = yr(), n = /* @__PURE__ */ Je(), r = /* @__PURE__ */ ma(), i = /* @__PURE__ */ vt(), s = n("%Function.prototype.apply%"), o = n("%Function.prototype.call%"), a = n("%Reflect.apply%", !0) || e.call(o, s), u = /* @__PURE__ */ vr(), c = n("%Math.max%");
|
|
5503
5505
|
t.exports = function(d) {
|
|
5504
5506
|
if (typeof d != "function")
|
|
5505
5507
|
throw new i("a function is required");
|
|
@@ -5527,7 +5529,7 @@ function Ar() {
|
|
|
5527
5529
|
}, Wt;
|
|
5528
5530
|
}
|
|
5529
5531
|
var Ht, Cn;
|
|
5530
|
-
function
|
|
5532
|
+
function ga() {
|
|
5531
5533
|
if (Cn) return Ht;
|
|
5532
5534
|
Cn = 1;
|
|
5533
5535
|
var t = yt()(), e = Ar(), n = e("Object.prototype.toString"), r = function(a) {
|
|
@@ -5539,9 +5541,9 @@ function ma() {
|
|
|
5539
5541
|
})();
|
|
5540
5542
|
return r.isLegacyArguments = i, Ht = s ? r : i, Ht;
|
|
5541
5543
|
}
|
|
5542
|
-
var
|
|
5543
|
-
function
|
|
5544
|
-
if (Pn) return
|
|
5544
|
+
var Kt, Pn;
|
|
5545
|
+
function ya() {
|
|
5546
|
+
if (Pn) return Kt;
|
|
5545
5547
|
Pn = 1;
|
|
5546
5548
|
var t = Object.prototype.toString, e = Function.prototype.toString, n = /^\s*(?:function)?\*/, r = yt()(), i = Object.getPrototypeOf, s = function() {
|
|
5547
5549
|
if (!r)
|
|
@@ -5551,7 +5553,7 @@ function ga() {
|
|
|
5551
5553
|
} catch {
|
|
5552
5554
|
}
|
|
5553
5555
|
}, o;
|
|
5554
|
-
return
|
|
5556
|
+
return Kt = function(u) {
|
|
5555
5557
|
if (typeof u != "function")
|
|
5556
5558
|
return !1;
|
|
5557
5559
|
if (n.test(e.call(u)))
|
|
@@ -5567,11 +5569,11 @@ function ga() {
|
|
|
5567
5569
|
o = l ? i(l) : !1;
|
|
5568
5570
|
}
|
|
5569
5571
|
return i(u) === o;
|
|
5570
|
-
},
|
|
5572
|
+
}, Kt;
|
|
5571
5573
|
}
|
|
5572
|
-
var
|
|
5573
|
-
function
|
|
5574
|
-
if (_n) return
|
|
5574
|
+
var $t, _n;
|
|
5575
|
+
function va() {
|
|
5576
|
+
if (_n) return $t;
|
|
5575
5577
|
_n = 1;
|
|
5576
5578
|
var t = Function.prototype.toString, e = typeof Reflect == "object" && Reflect !== null && Reflect.apply, n, r;
|
|
5577
5579
|
if (typeof e == "function" && typeof Object.defineProperty == "function")
|
|
@@ -5616,7 +5618,7 @@ function ya() {
|
|
|
5616
5618
|
return !1;
|
|
5617
5619
|
});
|
|
5618
5620
|
}
|
|
5619
|
-
return
|
|
5621
|
+
return $t = e ? function(w) {
|
|
5620
5622
|
if (y(w))
|
|
5621
5623
|
return !0;
|
|
5622
5624
|
if (!w || typeof w != "function" && typeof w != "object")
|
|
@@ -5639,13 +5641,13 @@ function ya() {
|
|
|
5639
5641
|
return !1;
|
|
5640
5642
|
var v = a.call(w);
|
|
5641
5643
|
return v !== c && v !== l && !/^\[object HTML/.test(v) ? !1 : o(w);
|
|
5642
|
-
},
|
|
5644
|
+
}, $t;
|
|
5643
5645
|
}
|
|
5644
5646
|
var zt, Dn;
|
|
5645
5647
|
function Oi() {
|
|
5646
5648
|
if (Dn) return zt;
|
|
5647
5649
|
Dn = 1;
|
|
5648
|
-
var t =
|
|
5650
|
+
var t = va(), e = Object.prototype.toString, n = Object.prototype.hasOwnProperty, r = function(u, c, l) {
|
|
5649
5651
|
for (var f = 0, d = u.length; f < d; f++)
|
|
5650
5652
|
n.call(u, f) && (l == null ? c(u[f], f, u) : c.call(l, u[f], f, u));
|
|
5651
5653
|
}, i = function(u, c, l) {
|
|
@@ -5663,7 +5665,7 @@ function Oi() {
|
|
|
5663
5665
|
return zt = o, zt;
|
|
5664
5666
|
}
|
|
5665
5667
|
var Yt, Fn;
|
|
5666
|
-
function
|
|
5668
|
+
function ba() {
|
|
5667
5669
|
return Fn || (Fn = 1, Yt = [
|
|
5668
5670
|
"Float32Array",
|
|
5669
5671
|
"Float64Array",
|
|
@@ -5682,7 +5684,7 @@ var Xt, Un;
|
|
|
5682
5684
|
function ki() {
|
|
5683
5685
|
if (Un) return Xt;
|
|
5684
5686
|
Un = 1;
|
|
5685
|
-
var t = /* @__PURE__ */
|
|
5687
|
+
var t = /* @__PURE__ */ ba(), e = typeof globalThis > "u" ? gr : globalThis;
|
|
5686
5688
|
return Xt = function() {
|
|
5687
5689
|
for (var r = [], i = 0; i < t.length; i++)
|
|
5688
5690
|
typeof e[t[i]] == "function" && (r[r.length] = t[i]);
|
|
@@ -5690,7 +5692,7 @@ function ki() {
|
|
|
5690
5692
|
}, Xt;
|
|
5691
5693
|
}
|
|
5692
5694
|
var Jt, Vn;
|
|
5693
|
-
function
|
|
5695
|
+
function Aa() {
|
|
5694
5696
|
if (Vn) return Jt;
|
|
5695
5697
|
Vn = 1;
|
|
5696
5698
|
var t = Oi(), e = /* @__PURE__ */ ki(), n = br(), r = Ar(), i = /* @__PURE__ */ bt(), s = r("Object.prototype.toString"), o = yt()(), a = typeof globalThis > "u" ? gr : globalThis, u = e(), c = r("String.prototype.slice"), l = Object.getPrototypeOf, f = r("Array.prototype.indexOf", !0) || function(y, I) {
|
|
@@ -5743,7 +5745,7 @@ function ba() {
|
|
|
5743
5745
|
}, Jt;
|
|
5744
5746
|
}
|
|
5745
5747
|
var Zt, xn;
|
|
5746
|
-
function
|
|
5748
|
+
function Sa() {
|
|
5747
5749
|
if (xn) return Zt;
|
|
5748
5750
|
xn = 1;
|
|
5749
5751
|
var t = Oi(), e = /* @__PURE__ */ ki(), n = br(), r = Ar(), i = /* @__PURE__ */ bt(), s = r("Object.prototype.toString"), o = yt()(), a = typeof globalThis > "u" ? gr : globalThis, u = e(), c = r("String.prototype.slice"), l = Object.getPrototypeOf, f = r("Array.prototype.indexOf", !0) || function(y, I) {
|
|
@@ -5810,18 +5812,18 @@ function Aa() {
|
|
|
5810
5812
|
}, Zt;
|
|
5811
5813
|
}
|
|
5812
5814
|
var er, Bn;
|
|
5813
|
-
function
|
|
5815
|
+
function wa() {
|
|
5814
5816
|
if (Bn) return er;
|
|
5815
5817
|
Bn = 1;
|
|
5816
|
-
var t = /* @__PURE__ */
|
|
5818
|
+
var t = /* @__PURE__ */ Sa();
|
|
5817
5819
|
return er = function(n) {
|
|
5818
5820
|
return !!t(n);
|
|
5819
5821
|
}, er;
|
|
5820
5822
|
}
|
|
5821
5823
|
var qn;
|
|
5822
|
-
function
|
|
5824
|
+
function Ea() {
|
|
5823
5825
|
return qn || (qn = 1, (function(t) {
|
|
5824
|
-
var e =
|
|
5826
|
+
var e = ga(), n = ya(), r = /* @__PURE__ */ Aa(), i = wa();
|
|
5825
5827
|
function s(k) {
|
|
5826
5828
|
return k.call.bind(k);
|
|
5827
5829
|
}
|
|
@@ -5845,7 +5847,7 @@ function wa() {
|
|
|
5845
5847
|
}
|
|
5846
5848
|
t.isPromise = h;
|
|
5847
5849
|
function y(k) {
|
|
5848
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(k) : i(k) ||
|
|
5850
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(k) : i(k) || T(k);
|
|
5849
5851
|
}
|
|
5850
5852
|
t.isArrayBufferView = y;
|
|
5851
5853
|
function I(k) {
|
|
@@ -5864,10 +5866,10 @@ function wa() {
|
|
|
5864
5866
|
return r(k) === "Uint32Array";
|
|
5865
5867
|
}
|
|
5866
5868
|
t.isUint32Array = v;
|
|
5867
|
-
function
|
|
5869
|
+
function E(k) {
|
|
5868
5870
|
return r(k) === "Int8Array";
|
|
5869
5871
|
}
|
|
5870
|
-
t.isInt8Array =
|
|
5872
|
+
t.isInt8Array = E;
|
|
5871
5873
|
function C(k) {
|
|
5872
5874
|
return r(k) === "Int16Array";
|
|
5873
5875
|
}
|
|
@@ -5936,10 +5938,10 @@ function wa() {
|
|
|
5936
5938
|
return u(k) === "[object DataView]";
|
|
5937
5939
|
}
|
|
5938
5940
|
b.working = typeof ArrayBuffer < "u" && typeof DataView < "u" && b(new DataView(new ArrayBuffer(1), 0, 1));
|
|
5939
|
-
function
|
|
5941
|
+
function T(k) {
|
|
5940
5942
|
return typeof DataView > "u" ? !1 : b.working ? b(k) : k instanceof DataView;
|
|
5941
5943
|
}
|
|
5942
|
-
t.isDataView =
|
|
5944
|
+
t.isDataView = T;
|
|
5943
5945
|
var R = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : void 0;
|
|
5944
5946
|
function F(k) {
|
|
5945
5947
|
return u(k) === "[object SharedArrayBuffer]";
|
|
@@ -6003,7 +6005,7 @@ function wa() {
|
|
|
6003
6005
|
}
|
|
6004
6006
|
});
|
|
6005
6007
|
});
|
|
6006
|
-
})(
|
|
6008
|
+
})(Et)), Et;
|
|
6007
6009
|
}
|
|
6008
6010
|
var tr, Mn;
|
|
6009
6011
|
function Ta() {
|
|
@@ -6012,7 +6014,7 @@ function Ta() {
|
|
|
6012
6014
|
}), tr;
|
|
6013
6015
|
}
|
|
6014
6016
|
var ut = { exports: {} }, jn;
|
|
6015
|
-
function
|
|
6017
|
+
function Ia() {
|
|
6016
6018
|
return jn || (jn = 1, typeof Object.create == "function" ? ut.exports = function(e, n) {
|
|
6017
6019
|
n && (e.super_ = n, e.prototype = Object.create(n.prototype, {
|
|
6018
6020
|
constructor: {
|
|
@@ -6034,16 +6036,16 @@ function Ea() {
|
|
|
6034
6036
|
var Gn;
|
|
6035
6037
|
function Sr() {
|
|
6036
6038
|
return Gn || (Gn = 1, (function(t) {
|
|
6037
|
-
var e = Object.getOwnPropertyDescriptors || function(
|
|
6038
|
-
for (var R = Object.keys(
|
|
6039
|
-
F[R[M]] = Object.getOwnPropertyDescriptor(
|
|
6039
|
+
var e = Object.getOwnPropertyDescriptors || function(T) {
|
|
6040
|
+
for (var R = Object.keys(T), F = {}, M = 0; M < R.length; M++)
|
|
6041
|
+
F[R[M]] = Object.getOwnPropertyDescriptor(T, R[M]);
|
|
6040
6042
|
return F;
|
|
6041
6043
|
}, n = /%[sdj%]/g;
|
|
6042
6044
|
t.format = function(b) {
|
|
6043
|
-
if (!
|
|
6044
|
-
for (var
|
|
6045
|
-
|
|
6046
|
-
return
|
|
6045
|
+
if (!E(b)) {
|
|
6046
|
+
for (var T = [], R = 0; R < arguments.length; R++)
|
|
6047
|
+
T.push(o(arguments[R]));
|
|
6048
|
+
return T.join(" ");
|
|
6047
6049
|
}
|
|
6048
6050
|
for (var R = 1, F = arguments, M = F.length, G = String(b).replace(n, function(U) {
|
|
6049
6051
|
if (U === "%%") return "%";
|
|
@@ -6065,19 +6067,19 @@ function Sr() {
|
|
|
6065
6067
|
}), V = F[R]; R < M; V = F[++R])
|
|
6066
6068
|
S(V) || !N(V) ? G += " " + V : G += " " + o(V);
|
|
6067
6069
|
return G;
|
|
6068
|
-
}, t.deprecate = function(b,
|
|
6070
|
+
}, t.deprecate = function(b, T) {
|
|
6069
6071
|
if (typeof B < "u" && B.noDeprecation === !0)
|
|
6070
6072
|
return b;
|
|
6071
6073
|
if (typeof B > "u")
|
|
6072
6074
|
return function() {
|
|
6073
|
-
return t.deprecate(b,
|
|
6075
|
+
return t.deprecate(b, T).apply(this, arguments);
|
|
6074
6076
|
};
|
|
6075
6077
|
var R = !1;
|
|
6076
6078
|
function F() {
|
|
6077
6079
|
if (!R) {
|
|
6078
6080
|
if (B.throwDeprecation)
|
|
6079
|
-
throw new Error(
|
|
6080
|
-
B.traceDeprecation ? console.trace(
|
|
6081
|
+
throw new Error(T);
|
|
6082
|
+
B.traceDeprecation ? console.trace(T) : console.error(T), R = !0;
|
|
6081
6083
|
}
|
|
6082
6084
|
return b.apply(this, arguments);
|
|
6083
6085
|
}
|
|
@@ -6091,22 +6093,22 @@ function Sr() {
|
|
|
6091
6093
|
t.debuglog = function(b) {
|
|
6092
6094
|
if (b = b.toUpperCase(), !r[b])
|
|
6093
6095
|
if (i.test(b)) {
|
|
6094
|
-
var
|
|
6096
|
+
var T = B.pid;
|
|
6095
6097
|
r[b] = function() {
|
|
6096
6098
|
var R = t.format.apply(t, arguments);
|
|
6097
|
-
console.error("%s %d: %s", b,
|
|
6099
|
+
console.error("%s %d: %s", b, T, R);
|
|
6098
6100
|
};
|
|
6099
6101
|
} else
|
|
6100
6102
|
r[b] = function() {
|
|
6101
6103
|
};
|
|
6102
6104
|
return r[b];
|
|
6103
6105
|
};
|
|
6104
|
-
function o(b,
|
|
6106
|
+
function o(b, T) {
|
|
6105
6107
|
var R = {
|
|
6106
6108
|
seen: [],
|
|
6107
6109
|
stylize: u
|
|
6108
6110
|
};
|
|
6109
|
-
return arguments.length >= 3 && (R.depth = arguments[2]), arguments.length >= 4 && (R.colors = arguments[3]), I(
|
|
6111
|
+
return arguments.length >= 3 && (R.depth = arguments[2]), arguments.length >= 4 && (R.colors = arguments[3]), I(T) ? R.showHidden = T : T && t._extend(R, T), _(R.showHidden) && (R.showHidden = !1), _(R.depth) && (R.depth = 2), _(R.colors) && (R.colors = !1), _(R.customInspect) && (R.customInspect = !0), R.colors && (R.stylize = a), l(R, b, R.depth);
|
|
6110
6112
|
}
|
|
6111
6113
|
t.inspect = o, o.colors = {
|
|
6112
6114
|
bold: [1, 22],
|
|
@@ -6133,81 +6135,81 @@ function Sr() {
|
|
|
6133
6135
|
// "name": intentionally not styling
|
|
6134
6136
|
regexp: "red"
|
|
6135
6137
|
};
|
|
6136
|
-
function a(b,
|
|
6137
|
-
var R = o.styles[
|
|
6138
|
+
function a(b, T) {
|
|
6139
|
+
var R = o.styles[T];
|
|
6138
6140
|
return R ? "\x1B[" + o.colors[R][0] + "m" + b + "\x1B[" + o.colors[R][1] + "m" : b;
|
|
6139
6141
|
}
|
|
6140
|
-
function u(b,
|
|
6142
|
+
function u(b, T) {
|
|
6141
6143
|
return b;
|
|
6142
6144
|
}
|
|
6143
6145
|
function c(b) {
|
|
6144
|
-
var
|
|
6146
|
+
var T = {};
|
|
6145
6147
|
return b.forEach(function(R, F) {
|
|
6146
|
-
|
|
6147
|
-
}),
|
|
6148
|
-
}
|
|
6149
|
-
function l(b,
|
|
6150
|
-
if (b.customInspect &&
|
|
6151
|
-
|
|
6152
|
-
!(
|
|
6153
|
-
var F =
|
|
6154
|
-
return
|
|
6148
|
+
T[R] = !0;
|
|
6149
|
+
}), T;
|
|
6150
|
+
}
|
|
6151
|
+
function l(b, T, R) {
|
|
6152
|
+
if (b.customInspect && T && L(T.inspect) && // Filter out the util module, it's inspect function is special
|
|
6153
|
+
T.inspect !== t.inspect && // Also filter out any prototype objects using the circular check.
|
|
6154
|
+
!(T.constructor && T.constructor.prototype === T)) {
|
|
6155
|
+
var F = T.inspect(R, b);
|
|
6156
|
+
return E(F) || (F = l(b, F, R)), F;
|
|
6155
6157
|
}
|
|
6156
|
-
var M = f(b,
|
|
6158
|
+
var M = f(b, T);
|
|
6157
6159
|
if (M)
|
|
6158
6160
|
return M;
|
|
6159
|
-
var G = Object.keys(
|
|
6160
|
-
if (b.showHidden && (G = Object.getOwnPropertyNames(
|
|
6161
|
-
return d(
|
|
6161
|
+
var G = Object.keys(T), V = c(G);
|
|
6162
|
+
if (b.showHidden && (G = Object.getOwnPropertyNames(T)), P(T) && (G.indexOf("message") >= 0 || G.indexOf("description") >= 0))
|
|
6163
|
+
return d(T);
|
|
6162
6164
|
if (G.length === 0) {
|
|
6163
|
-
if (L(
|
|
6164
|
-
var U =
|
|
6165
|
+
if (L(T)) {
|
|
6166
|
+
var U = T.name ? ": " + T.name : "";
|
|
6165
6167
|
return b.stylize("[Function" + U + "]", "special");
|
|
6166
6168
|
}
|
|
6167
|
-
if (g(
|
|
6168
|
-
return b.stylize(RegExp.prototype.toString.call(
|
|
6169
|
-
if (O(
|
|
6170
|
-
return b.stylize(Date.prototype.toString.call(
|
|
6171
|
-
if (P(
|
|
6172
|
-
return d(
|
|
6169
|
+
if (g(T))
|
|
6170
|
+
return b.stylize(RegExp.prototype.toString.call(T), "regexp");
|
|
6171
|
+
if (O(T))
|
|
6172
|
+
return b.stylize(Date.prototype.toString.call(T), "date");
|
|
6173
|
+
if (P(T))
|
|
6174
|
+
return d(T);
|
|
6173
6175
|
}
|
|
6174
6176
|
var H = "", oe = !1, pe = ["{", "}"];
|
|
6175
|
-
if (y(
|
|
6176
|
-
var Ze =
|
|
6177
|
+
if (y(T) && (oe = !0, pe = ["[", "]"]), L(T)) {
|
|
6178
|
+
var Ze = T.name ? ": " + T.name : "";
|
|
6177
6179
|
H = " [Function" + Ze + "]";
|
|
6178
6180
|
}
|
|
6179
|
-
if (g(
|
|
6181
|
+
if (g(T) && (H = " " + RegExp.prototype.toString.call(T)), O(T) && (H = " " + Date.prototype.toUTCString.call(T)), P(T) && (H = " " + d(T)), G.length === 0 && (!oe || T.length == 0))
|
|
6180
6182
|
return pe[0] + H + pe[1];
|
|
6181
6183
|
if (R < 0)
|
|
6182
|
-
return g(
|
|
6183
|
-
b.seen.push(
|
|
6184
|
+
return g(T) ? b.stylize(RegExp.prototype.toString.call(T), "regexp") : b.stylize("[Object]", "special");
|
|
6185
|
+
b.seen.push(T);
|
|
6184
6186
|
var Ve;
|
|
6185
|
-
return oe ? Ve = p(b,
|
|
6186
|
-
return m(b,
|
|
6187
|
+
return oe ? Ve = p(b, T, R, V, G) : Ve = G.map(function(et) {
|
|
6188
|
+
return m(b, T, R, V, et, oe);
|
|
6187
6189
|
}), b.seen.pop(), h(Ve, H, pe);
|
|
6188
6190
|
}
|
|
6189
|
-
function f(b,
|
|
6190
|
-
if (_(
|
|
6191
|
+
function f(b, T) {
|
|
6192
|
+
if (_(T))
|
|
6191
6193
|
return b.stylize("undefined", "undefined");
|
|
6192
|
-
if (T
|
|
6193
|
-
var R = "'" + JSON.stringify(
|
|
6194
|
+
if (E(T)) {
|
|
6195
|
+
var R = "'" + JSON.stringify(T).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
|
|
6194
6196
|
return b.stylize(R, "string");
|
|
6195
6197
|
}
|
|
6196
|
-
if (v(
|
|
6197
|
-
return b.stylize("" +
|
|
6198
|
-
if (I(
|
|
6199
|
-
return b.stylize("" +
|
|
6200
|
-
if (S(
|
|
6198
|
+
if (v(T))
|
|
6199
|
+
return b.stylize("" + T, "number");
|
|
6200
|
+
if (I(T))
|
|
6201
|
+
return b.stylize("" + T, "boolean");
|
|
6202
|
+
if (S(T))
|
|
6201
6203
|
return b.stylize("null", "null");
|
|
6202
6204
|
}
|
|
6203
6205
|
function d(b) {
|
|
6204
6206
|
return "[" + Error.prototype.toString.call(b) + "]";
|
|
6205
6207
|
}
|
|
6206
|
-
function p(b,
|
|
6207
|
-
for (var G = [], V = 0, U =
|
|
6208
|
-
W(
|
|
6208
|
+
function p(b, T, R, F, M) {
|
|
6209
|
+
for (var G = [], V = 0, U = T.length; V < U; ++V)
|
|
6210
|
+
W(T, String(V)) ? G.push(m(
|
|
6209
6211
|
b,
|
|
6210
|
-
|
|
6212
|
+
T,
|
|
6211
6213
|
R,
|
|
6212
6214
|
F,
|
|
6213
6215
|
String(V),
|
|
@@ -6216,7 +6218,7 @@ function Sr() {
|
|
|
6216
6218
|
return M.forEach(function(H) {
|
|
6217
6219
|
H.match(/^\d+$/) || G.push(m(
|
|
6218
6220
|
b,
|
|
6219
|
-
|
|
6221
|
+
T,
|
|
6220
6222
|
R,
|
|
6221
6223
|
F,
|
|
6222
6224
|
H,
|
|
@@ -6224,9 +6226,9 @@ function Sr() {
|
|
|
6224
6226
|
));
|
|
6225
6227
|
}), G;
|
|
6226
6228
|
}
|
|
6227
|
-
function m(b,
|
|
6229
|
+
function m(b, T, R, F, M, G) {
|
|
6228
6230
|
var V, U, H;
|
|
6229
|
-
if (H = Object.getOwnPropertyDescriptor(
|
|
6231
|
+
if (H = Object.getOwnPropertyDescriptor(T, M) || { value: T[M] }, H.get ? H.set ? U = b.stylize("[Getter/Setter]", "special") : U = b.stylize("[Getter]", "special") : H.set && (U = b.stylize("[Setter]", "special")), W(F, M) || (V = "[" + M + "]"), U || (b.seen.indexOf(H.value) < 0 ? (S(R) ? U = l(b, H.value, null) : U = l(b, H.value, R - 1), U.indexOf(`
|
|
6230
6232
|
`) > -1 && (G ? U = U.split(`
|
|
6231
6233
|
`).map(function(oe) {
|
|
6232
6234
|
return " " + oe;
|
|
@@ -6243,16 +6245,16 @@ function Sr() {
|
|
|
6243
6245
|
}
|
|
6244
6246
|
return V + ": " + U;
|
|
6245
6247
|
}
|
|
6246
|
-
function h(b,
|
|
6248
|
+
function h(b, T, R) {
|
|
6247
6249
|
var F = b.reduce(function(M, G) {
|
|
6248
6250
|
return G.indexOf(`
|
|
6249
6251
|
`) >= 0, M + G.replace(/\u001b\[\d\d?m/g, "").length + 1;
|
|
6250
6252
|
}, 0);
|
|
6251
|
-
return F > 60 ? R[0] + (
|
|
6253
|
+
return F > 60 ? R[0] + (T === "" ? "" : T + `
|
|
6252
6254
|
`) + " " + b.join(`,
|
|
6253
|
-
`) + " " + R[1] : R[0] +
|
|
6255
|
+
`) + " " + R[1] : R[0] + T + " " + b.join(", ") + " " + R[1];
|
|
6254
6256
|
}
|
|
6255
|
-
t.types =
|
|
6257
|
+
t.types = Ea();
|
|
6256
6258
|
function y(b) {
|
|
6257
6259
|
return Array.isArray(b);
|
|
6258
6260
|
}
|
|
@@ -6273,10 +6275,10 @@ function Sr() {
|
|
|
6273
6275
|
return typeof b == "number";
|
|
6274
6276
|
}
|
|
6275
6277
|
t.isNumber = v;
|
|
6276
|
-
function
|
|
6278
|
+
function E(b) {
|
|
6277
6279
|
return typeof b == "string";
|
|
6278
6280
|
}
|
|
6279
|
-
t.isString =
|
|
6281
|
+
t.isString = E;
|
|
6280
6282
|
function C(b) {
|
|
6281
6283
|
return typeof b == "symbol";
|
|
6282
6284
|
}
|
|
@@ -6331,30 +6333,30 @@ function Sr() {
|
|
|
6331
6333
|
"Dec"
|
|
6332
6334
|
];
|
|
6333
6335
|
function x() {
|
|
6334
|
-
var b = /* @__PURE__ */ new Date(),
|
|
6336
|
+
var b = /* @__PURE__ */ new Date(), T = [
|
|
6335
6337
|
te(b.getHours()),
|
|
6336
6338
|
te(b.getMinutes()),
|
|
6337
6339
|
te(b.getSeconds())
|
|
6338
6340
|
].join(":");
|
|
6339
|
-
return [b.getDate(), ce[b.getMonth()],
|
|
6341
|
+
return [b.getDate(), ce[b.getMonth()], T].join(" ");
|
|
6340
6342
|
}
|
|
6341
6343
|
t.log = function() {
|
|
6342
6344
|
console.log("%s - %s", x(), t.format.apply(t, arguments));
|
|
6343
|
-
}, t.inherits =
|
|
6344
|
-
if (!
|
|
6345
|
-
for (var R = Object.keys(
|
|
6346
|
-
b[R[F]] =
|
|
6345
|
+
}, t.inherits = Ia(), t._extend = function(b, T) {
|
|
6346
|
+
if (!T || !N(T)) return b;
|
|
6347
|
+
for (var R = Object.keys(T), F = R.length; F--; )
|
|
6348
|
+
b[R[F]] = T[R[F]];
|
|
6347
6349
|
return b;
|
|
6348
6350
|
};
|
|
6349
|
-
function W(b,
|
|
6350
|
-
return Object.prototype.hasOwnProperty.call(b,
|
|
6351
|
+
function W(b, T) {
|
|
6352
|
+
return Object.prototype.hasOwnProperty.call(b, T);
|
|
6351
6353
|
}
|
|
6352
6354
|
var z = typeof Symbol < "u" ? /* @__PURE__ */ Symbol("util.promisify.custom") : void 0;
|
|
6353
|
-
t.promisify = function(
|
|
6354
|
-
if (typeof
|
|
6355
|
+
t.promisify = function(T) {
|
|
6356
|
+
if (typeof T != "function")
|
|
6355
6357
|
throw new TypeError('The "original" argument must be of type Function');
|
|
6356
|
-
if (z &&
|
|
6357
|
-
var R =
|
|
6358
|
+
if (z && T[z]) {
|
|
6359
|
+
var R = T[z];
|
|
6358
6360
|
if (typeof R != "function")
|
|
6359
6361
|
throw new TypeError('The "util.promisify.custom" argument must be of type Function');
|
|
6360
6362
|
return Object.defineProperty(R, z, {
|
|
@@ -6373,33 +6375,33 @@ function Sr() {
|
|
|
6373
6375
|
H ? M(H) : F(oe);
|
|
6374
6376
|
});
|
|
6375
6377
|
try {
|
|
6376
|
-
|
|
6378
|
+
T.apply(this, V);
|
|
6377
6379
|
} catch (H) {
|
|
6378
6380
|
M(H);
|
|
6379
6381
|
}
|
|
6380
6382
|
return G;
|
|
6381
6383
|
}
|
|
6382
|
-
return Object.setPrototypeOf(R, Object.getPrototypeOf(
|
|
6384
|
+
return Object.setPrototypeOf(R, Object.getPrototypeOf(T)), z && Object.defineProperty(R, z, {
|
|
6383
6385
|
value: R,
|
|
6384
6386
|
enumerable: !1,
|
|
6385
6387
|
writable: !1,
|
|
6386
6388
|
configurable: !0
|
|
6387
6389
|
}), Object.defineProperties(
|
|
6388
6390
|
R,
|
|
6389
|
-
e(
|
|
6391
|
+
e(T)
|
|
6390
6392
|
);
|
|
6391
6393
|
}, t.promisify.custom = z;
|
|
6392
|
-
function X(b,
|
|
6394
|
+
function X(b, T) {
|
|
6393
6395
|
if (!b) {
|
|
6394
6396
|
var R = new Error("Promise was rejected with a falsy value");
|
|
6395
6397
|
R.reason = b, b = R;
|
|
6396
6398
|
}
|
|
6397
|
-
return
|
|
6399
|
+
return T(b);
|
|
6398
6400
|
}
|
|
6399
6401
|
function ie(b) {
|
|
6400
6402
|
if (typeof b != "function")
|
|
6401
6403
|
throw new TypeError('The "original" argument must be of type Function');
|
|
6402
|
-
function
|
|
6404
|
+
function T() {
|
|
6403
6405
|
for (var R = [], F = 0; F < arguments.length; F++)
|
|
6404
6406
|
R.push(arguments[F]);
|
|
6405
6407
|
var M = R.pop();
|
|
@@ -6417,10 +6419,10 @@ function Sr() {
|
|
|
6417
6419
|
}
|
|
6418
6420
|
);
|
|
6419
6421
|
}
|
|
6420
|
-
return Object.setPrototypeOf(
|
|
6421
|
-
|
|
6422
|
+
return Object.setPrototypeOf(T, Object.getPrototypeOf(b)), Object.defineProperties(
|
|
6423
|
+
T,
|
|
6422
6424
|
e(b)
|
|
6423
|
-
),
|
|
6425
|
+
), T;
|
|
6424
6426
|
}
|
|
6425
6427
|
t.callbackify = ie;
|
|
6426
6428
|
})(wt)), wt;
|
|
@@ -6471,7 +6473,7 @@ function Ni() {
|
|
|
6471
6473
|
}, rr;
|
|
6472
6474
|
}
|
|
6473
6475
|
var nr, Wn;
|
|
6474
|
-
function
|
|
6476
|
+
function Oa() {
|
|
6475
6477
|
return Wn || (Wn = 1, nr = function t(e, n, r) {
|
|
6476
6478
|
n === void 0 && (n = ""), r || (r = {});
|
|
6477
6479
|
var i = function(u) {
|
|
@@ -6496,10 +6498,10 @@ function Ia() {
|
|
|
6496
6498
|
}), nr;
|
|
6497
6499
|
}
|
|
6498
6500
|
var ir, Hn;
|
|
6499
|
-
function
|
|
6501
|
+
function ka() {
|
|
6500
6502
|
if (Hn) return ir;
|
|
6501
6503
|
Hn = 1;
|
|
6502
|
-
const t =
|
|
6504
|
+
const t = Oa(), e = /* @__PURE__ */ Symbol("avvio.TimeTree.untrackNode"), n = /* @__PURE__ */ Symbol("avvio.TimeTree.trackNode"), r = /* @__PURE__ */ Symbol("avvio.TimeTree.getParent"), i = /* @__PURE__ */ Symbol("avvio.TimeTree.getNode"), s = /* @__PURE__ */ Symbol("avvio.TimeTree.addNode");
|
|
6503
6505
|
class o {
|
|
6504
6506
|
constructor() {
|
|
6505
6507
|
this.root = null, this.tableId = /* @__PURE__ */ new Map(), this.tableLabel = /* @__PURE__ */ new Map();
|
|
@@ -6559,10 +6561,10 @@ function Oa() {
|
|
|
6559
6561
|
}
|
|
6560
6562
|
return ir = o, ir;
|
|
6561
6563
|
}
|
|
6562
|
-
var ct = { exports: {} }, lt = { exports: {} }, sr,
|
|
6563
|
-
function
|
|
6564
|
-
if (
|
|
6565
|
-
|
|
6564
|
+
var ct = { exports: {} }, lt = { exports: {} }, sr, Kn;
|
|
6565
|
+
function Na() {
|
|
6566
|
+
if (Kn) return sr;
|
|
6567
|
+
Kn = 1;
|
|
6566
6568
|
var t = 1e3, e = t * 60, n = e * 60, r = n * 24, i = r * 7, s = r * 365.25;
|
|
6567
6569
|
sr = function(l, f) {
|
|
6568
6570
|
f = f || {};
|
|
@@ -6641,12 +6643,12 @@ function ka() {
|
|
|
6641
6643
|
}
|
|
6642
6644
|
return sr;
|
|
6643
6645
|
}
|
|
6644
|
-
var or,
|
|
6645
|
-
function
|
|
6646
|
-
if (
|
|
6647
|
-
|
|
6646
|
+
var or, $n;
|
|
6647
|
+
function Ra() {
|
|
6648
|
+
if ($n) return or;
|
|
6649
|
+
$n = 1;
|
|
6648
6650
|
function t(e) {
|
|
6649
|
-
r.debug = r, r.default = r, r.coerce = c, r.disable = a, r.enable = s, r.enabled = u, r.humanize =
|
|
6651
|
+
r.debug = r, r.default = r, r.coerce = c, r.disable = a, r.enable = s, r.enabled = u, r.humanize = Na(), r.destroy = l, Object.keys(e).forEach((f) => {
|
|
6650
6652
|
r[f] = e[f];
|
|
6651
6653
|
}), r.names = [], r.skips = [], r.formatters = {};
|
|
6652
6654
|
function n(f) {
|
|
@@ -6663,15 +6665,15 @@ function Na() {
|
|
|
6663
6665
|
return;
|
|
6664
6666
|
const S = y, w = Number(/* @__PURE__ */ new Date()), v = w - (d || w);
|
|
6665
6667
|
S.diff = v, S.prev = d, S.curr = w, d = w, I[0] = r.coerce(I[0]), typeof I[0] != "string" && I.unshift("%O");
|
|
6666
|
-
let
|
|
6668
|
+
let E = 0;
|
|
6667
6669
|
I[0] = I[0].replace(/%([a-zA-Z%])/g, (_, g) => {
|
|
6668
6670
|
if (_ === "%%")
|
|
6669
6671
|
return "%";
|
|
6670
|
-
|
|
6672
|
+
E++;
|
|
6671
6673
|
const N = r.formatters[g];
|
|
6672
6674
|
if (typeof N == "function") {
|
|
6673
|
-
const O = I[
|
|
6674
|
-
_ = N.call(S, O), I.splice(
|
|
6675
|
+
const O = I[E];
|
|
6676
|
+
_ = N.call(S, O), I.splice(E, 1), E--;
|
|
6675
6677
|
}
|
|
6676
6678
|
return _;
|
|
6677
6679
|
}), r.formatArgs.call(S, I), (S.log || r.log).apply(S, I);
|
|
@@ -6864,7 +6866,7 @@ function Ri() {
|
|
|
6864
6866
|
} catch {
|
|
6865
6867
|
}
|
|
6866
6868
|
}
|
|
6867
|
-
t.exports =
|
|
6869
|
+
t.exports = Ra()(e);
|
|
6868
6870
|
const { formatters: a } = t.exports;
|
|
6869
6871
|
a.j = function(u) {
|
|
6870
6872
|
try {
|
|
@@ -6876,10 +6878,10 @@ function Ri() {
|
|
|
6876
6878
|
})(lt, lt.exports)), lt.exports;
|
|
6877
6879
|
}
|
|
6878
6880
|
var Yn;
|
|
6879
|
-
function
|
|
6881
|
+
function La() {
|
|
6880
6882
|
if (Yn) return ct.exports;
|
|
6881
6883
|
Yn = 1;
|
|
6882
|
-
const t = wi(), e =
|
|
6884
|
+
const t = wi(), e = Ei().EventEmitter, n = Sr().inherits, r = Ri()("avvio"), { AVV_ERR_READY_TIMEOUT: i } = Ni(), s = /* @__PURE__ */ Symbol.for("plugin-meta");
|
|
6883
6885
|
function o(d, p) {
|
|
6884
6886
|
return d[s] && d[s].name ? d[s].name : typeof p < "u" && typeof p != "function" && p.name ? p.name : d.name ? d.name : d.toString().split(`
|
|
6885
6887
|
`).slice(0, 2).map((m) => m.trim()).join(" -- ");
|
|
@@ -6988,16 +6990,16 @@ function Ra() {
|
|
|
6988
6990
|
return ct.exports = u, ct.exports.loadPlugin = l, ct.exports;
|
|
6989
6991
|
}
|
|
6990
6992
|
var Xn;
|
|
6991
|
-
function
|
|
6993
|
+
function Ca() {
|
|
6992
6994
|
if (Xn) return st.exports;
|
|
6993
6995
|
Xn = 1;
|
|
6994
|
-
const t = wi(), e =
|
|
6996
|
+
const t = wi(), e = Ei().EventEmitter, n = Sr().inherits, {
|
|
6995
6997
|
AVV_ERR_EXPOSE_ALREADY_DEFINED: r,
|
|
6996
6998
|
AVV_ERR_CALLBACK_NOT_FN: i,
|
|
6997
6999
|
AVV_ERR_PLUGIN_NOT_VALID: s,
|
|
6998
7000
|
AVV_ERR_ROOT_PLG_BOOTED: o,
|
|
6999
7001
|
AVV_ERR_READY_TIMEOUT: a
|
|
7000
|
-
} = Ni(), u =
|
|
7002
|
+
} = Ni(), u = ka(), c = La(), l = Ri()("avvio"), f = /* @__PURE__ */ Symbol("kAvvio"), d = /* @__PURE__ */ Symbol("kThenifyDoNotWrap");
|
|
7001
7003
|
function p(g, N, O) {
|
|
7002
7004
|
const P = N.expose || {}, L = P.use || "use", D = P.after || "after", Y = P.ready || "ready", te = P.onClose || "onClose", ce = P.close || "close";
|
|
7003
7005
|
if (g[L])
|
|
@@ -7031,7 +7033,7 @@ function La() {
|
|
|
7031
7033
|
}
|
|
7032
7034
|
N.autostart !== !1 && (N.autostart = !0), g = g || this, this._timeout = Number(N.timeout) || 0, this._server = g, this._current = [], this._error = null, this._isOnCloseHandlerKey = /* @__PURE__ */ Symbol("isOnCloseHandler"), this._lastUsed = null, this.setMaxListeners(0), O && this.once("start", O), this.started = !1, this.booted = !1, this.pluginTree = new u(), this._readyQ = t(this, w, 1), this._readyQ.pause(), this._readyQ.drain = () => {
|
|
7033
7035
|
this.emit("start"), this._readyQ.drain = I;
|
|
7034
|
-
}, this._closeQ = t(this,
|
|
7036
|
+
}, this._closeQ = t(this, E, 1), this._closeQ.pause(), this._closeQ.drain = () => {
|
|
7035
7037
|
this.emit("close"), this._closeQ.drain = I;
|
|
7036
7038
|
}, this._doStart = null, this._root = new c(this, h.bind(this), N, !1, 0), this._root.once("start", (P, L, D) => {
|
|
7037
7039
|
const Y = this.pluginTree.start(null, L, D);
|
|
@@ -7177,7 +7179,7 @@ function La() {
|
|
|
7177
7179
|
D && (clearTimeout(D), this._error = te, P(this._error));
|
|
7178
7180
|
}
|
|
7179
7181
|
}
|
|
7180
|
-
function
|
|
7182
|
+
function E(g, N) {
|
|
7181
7183
|
const O = this._server, P = g[this._isOnCloseHandlerKey];
|
|
7182
7184
|
if (g.length === 0 || g.length === 1) {
|
|
7183
7185
|
let L;
|
|
@@ -7217,8 +7219,8 @@ function La() {
|
|
|
7217
7219
|
});
|
|
7218
7220
|
}, st.exports;
|
|
7219
7221
|
}
|
|
7220
|
-
var
|
|
7221
|
-
const
|
|
7222
|
+
var Pa = Ca();
|
|
7223
|
+
const _a = /* @__PURE__ */ ra(Pa);
|
|
7222
7224
|
(function() {
|
|
7223
7225
|
if (window.requestAnimationFrame && window.cancelAnimationFrame)
|
|
7224
7226
|
return;
|
|
@@ -7236,20 +7238,20 @@ const Pa = /* @__PURE__ */ ta(Ca);
|
|
|
7236
7238
|
}, window.cancelAnimationFrame = clearTimeout;
|
|
7237
7239
|
}
|
|
7238
7240
|
})();
|
|
7239
|
-
function
|
|
7240
|
-
const i = e ? "https://grpc-sdk.streamlayer.io:443" : "https://grpc-sdk.next.streamlayer.io:443", s = e ? "https://grpc.streamlayer.io:443" : "https://grpc.next.streamlayer.io:443", o =
|
|
7241
|
-
return o.use(
|
|
7241
|
+
function tu(t, e = !0, n = !0, r = { friendsTab: "enabled" }) {
|
|
7242
|
+
const i = e ? "https://grpc-sdk.streamlayer.io:443" : "https://grpc-sdk.next.streamlayer.io:443", s = e ? "https://grpc.streamlayer.io:443" : "https://grpc.next.streamlayer.io:443", o = _a(/* @__PURE__ */ Object.create({}), { autostart: !1 });
|
|
7243
|
+
return o.use(oo, {
|
|
7242
7244
|
hideFriends: r.hideFriends,
|
|
7243
7245
|
skipOnboarding: r.skipOnboarding,
|
|
7244
7246
|
betPack: r.betPack,
|
|
7245
7247
|
friendsTab: r.friendsTab,
|
|
7246
7248
|
theme: r.theme,
|
|
7247
7249
|
themeMode: r.themeMode
|
|
7248
|
-
}), o.use(
|
|
7250
|
+
}), o.use(Zs, { onDeepLinkHandled: r?.onDeepLinkHandled }), o.use(no, { videoPlayerController: r?.videoPlayerController }), o.use(so, {
|
|
7249
7251
|
onContentActivate: r?.onContentActivate,
|
|
7250
7252
|
withAd: r?.withAd,
|
|
7251
7253
|
withAdNotification: r?.withAdNotification
|
|
7252
|
-
}), o.use(
|
|
7254
|
+
}), o.use(bs, { sdkKey: t, host: i, analyticsHost: s, version: r?.version, webOS: r?.webOS }), o.use(Ts), o.use(ro), r?.gamification !== !1 && (o.use(vo), o.use(Hs), o.use(wo)), o.use(ta), o.use(Qo), o.after((a, u, c) => {
|
|
7253
7255
|
if (a)
|
|
7254
7256
|
throw a;
|
|
7255
7257
|
u.ready(), c();
|
|
@@ -7262,6 +7264,6 @@ function eu(t, e = !0, n = !0, r = { friendsTab: "enabled" }) {
|
|
|
7262
7264
|
}), o;
|
|
7263
7265
|
}
|
|
7264
7266
|
export {
|
|
7265
|
-
|
|
7266
|
-
|
|
7267
|
+
tu as S,
|
|
7268
|
+
ra as g
|
|
7267
7269
|
};
|