@streamlayer/react 1.21.0 → 1.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/pause-ad.js +1 -1
- package/lib/cjs/useStreamLayerApp2.js +1 -1
- package/lib/classic/cjs/pause-ad.js +1 -1
- package/lib/classic/cjs/useStreamLayerApp2.js +1 -1
- package/lib/classic/es/pause-ad.js +108 -114
- package/lib/classic/es/useStreamLayerApp2.js +1 -1
- package/lib/dist/cjs/masters.js +1 -1
- package/lib/dist/es/masters.js +1 -1
- package/lib/dist/style.css +1 -1
- package/lib/es/pause-ad.js +104 -110
- package/lib/es/useStreamLayerApp2.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +14 -14
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { j as K, k as
|
|
1
|
+
import { jsx as l, jsxs as L } from "react/jsx-runtime";
|
|
2
|
+
import { j as K, k as M, i as k, s as m, l as _, n as $, e as F, u as N, d as j, h as q } from "./provider.js";
|
|
3
3
|
import "nanostores";
|
|
4
|
-
import { useRef as D, useCallback as
|
|
4
|
+
import { useRef as D, useCallback as I, useState as R, useEffect as T, Component as O } from "react";
|
|
5
5
|
import "@nanostores/react";
|
|
6
6
|
import "lodash.throttle";
|
|
7
7
|
import "react-dom";
|
|
8
8
|
import "react-countup";
|
|
9
9
|
import { c as z } from "./vast-client.min-B0NUra1B.js";
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
|
|
10
|
+
const G = {}, J = new z(), w = M(G), E = K("ui:gam-static"), U = (e) => new Promise((s, t) => {
|
|
11
|
+
const a = new Image();
|
|
12
|
+
a.onload = () => s(e), a.onerror = () => t(), a.src = e;
|
|
13
13
|
}), V = () => {
|
|
14
14
|
const e = D(0);
|
|
15
|
-
return [
|
|
16
|
-
var t,
|
|
17
|
-
if ((t =
|
|
15
|
+
return [I(async (s) => {
|
|
16
|
+
var t, a, r, c, d, n, h, i, y, g, f;
|
|
17
|
+
if ((t = w.get()[s]) != null && t.imageSrc)
|
|
18
18
|
return { success: !0 };
|
|
19
19
|
const v = Date.now();
|
|
20
|
-
e.current = v,
|
|
20
|
+
e.current = v, w.setKey(s, { id: "", url: s });
|
|
21
21
|
try {
|
|
22
22
|
k.emit("exposedPauseAd", {
|
|
23
23
|
action: "load",
|
|
24
24
|
payload: {}
|
|
25
25
|
});
|
|
26
|
-
const u = await
|
|
27
|
-
if (E.debug(u, "parsedVAST"), e.current === v &&
|
|
28
|
-
const o = u.ads.find((
|
|
26
|
+
const u = await J.get(s);
|
|
27
|
+
if (E.debug(u, "parsedVAST"), e.current === v && w.get()[s].url) {
|
|
28
|
+
const o = u.ads.find((p) => p.creatives.length > 0);
|
|
29
29
|
if (o) {
|
|
30
30
|
E.debug(o, "validAd");
|
|
31
|
-
const
|
|
32
|
-
if (
|
|
33
|
-
E.debug(
|
|
34
|
-
const A = (r = (
|
|
31
|
+
const p = o.creatives.find((A) => A.type === "nonlinear");
|
|
32
|
+
if (p) {
|
|
33
|
+
E.debug(p, "nonlinear");
|
|
34
|
+
const A = (r = (a = p.variations) == null ? void 0 : a[0]) == null ? void 0 : r.staticResource, C = (d = (c = p.variations) == null ? void 0 : c[0]) == null ? void 0 : d.nonlinearClickThroughURLTemplate;
|
|
35
35
|
if (A)
|
|
36
|
-
return await U(A),
|
|
36
|
+
return await U(A), w.setKey(s, {
|
|
37
37
|
id: o.id || "",
|
|
38
38
|
url: s,
|
|
39
39
|
imageSrc: A,
|
|
@@ -47,12 +47,12 @@ const O = {}, W = new z(), b = F(O), E = K("ui:gam-static"), U = (e) => new Prom
|
|
|
47
47
|
}
|
|
48
48
|
const P = o.creatives.find((A) => A.type === "companion");
|
|
49
49
|
E.debug(P, "companion");
|
|
50
|
-
const
|
|
51
|
-
if (
|
|
52
|
-
return await U(
|
|
50
|
+
const b = (y = (i = (h = (n = P == null ? void 0 : P.variations) == null ? void 0 : n[0]) == null ? void 0 : h.staticResources) == null ? void 0 : i[0]) == null ? void 0 : y.url, S = (f = (g = P == null ? void 0 : P.variations) == null ? void 0 : g[0]) == null ? void 0 : f.companionClickThroughURLTemplate;
|
|
51
|
+
if (b)
|
|
52
|
+
return await U(b), w.setKey(s, {
|
|
53
53
|
id: o.id || "",
|
|
54
54
|
url: s,
|
|
55
|
-
imageSrc:
|
|
55
|
+
imageSrc: b,
|
|
56
56
|
adUrl: S
|
|
57
57
|
}), k.emit("exposedPauseAd", {
|
|
58
58
|
action: "loaded",
|
|
@@ -66,58 +66,54 @@ const O = {}, W = new z(), b = F(O), E = K("ui:gam-static"), U = (e) => new Prom
|
|
|
66
66
|
console.error("Error parsing VAST", u);
|
|
67
67
|
}
|
|
68
68
|
return { success: !1 };
|
|
69
|
-
}, []),
|
|
70
|
-
},
|
|
69
|
+
}, []), w];
|
|
70
|
+
}, Q = /* @__PURE__ */ m("div")({
|
|
71
71
|
name: "PauseAdOverlay",
|
|
72
72
|
class: "pw9gih8",
|
|
73
73
|
propsAsIs: !1
|
|
74
|
-
}), H = /* @__PURE__ */
|
|
74
|
+
}), H = /* @__PURE__ */ m("div")({
|
|
75
75
|
name: "PauseAdContent",
|
|
76
76
|
class: "p8lpomy",
|
|
77
77
|
propsAsIs: !1
|
|
78
|
-
}),
|
|
79
|
-
name: "
|
|
78
|
+
}), W = /* @__PURE__ */ m("div")({
|
|
79
|
+
name: "PauseAdTopLeft",
|
|
80
80
|
class: "pv7u167",
|
|
81
81
|
propsAsIs: !1
|
|
82
|
-
}),
|
|
83
|
-
name: "
|
|
82
|
+
}), X = /* @__PURE__ */ m("h2")({
|
|
83
|
+
name: "PauseAdTitle",
|
|
84
84
|
class: "p1kh2yb0",
|
|
85
85
|
propsAsIs: !1
|
|
86
|
-
}), Y = /* @__PURE__ */
|
|
87
|
-
name: "
|
|
86
|
+
}), Y = /* @__PURE__ */ m("p")({
|
|
87
|
+
name: "PauseAdCaption",
|
|
88
88
|
class: "pl8f94x",
|
|
89
89
|
propsAsIs: !1
|
|
90
|
-
}), Z = /* @__PURE__ */
|
|
91
|
-
name: "
|
|
90
|
+
}), Z = /* @__PURE__ */ m("div")({
|
|
91
|
+
name: "PauseAdBottomLeft",
|
|
92
92
|
class: "p1m6zmrt",
|
|
93
93
|
propsAsIs: !1
|
|
94
|
-
}), ee = /* @__PURE__ */
|
|
95
|
-
name: "
|
|
94
|
+
}), ee = /* @__PURE__ */ m("button")({
|
|
95
|
+
name: "PauseAdPlayButton",
|
|
96
96
|
class: "pm3vwfa",
|
|
97
97
|
propsAsIs: !1
|
|
98
|
-
}), se = /* @__PURE__ */
|
|
99
|
-
name: "
|
|
98
|
+
}), se = /* @__PURE__ */ m("div")({
|
|
99
|
+
name: "PauseAdSidebarGradient",
|
|
100
100
|
class: "p1tibuhw",
|
|
101
101
|
propsAsIs: !1
|
|
102
|
-
}), re = /* @__PURE__ */
|
|
103
|
-
name: "PauseAdPlayButton",
|
|
104
|
-
class: "ptqqrqd",
|
|
105
|
-
propsAsIs: !1
|
|
106
|
-
}), te = /* @__PURE__ */ p("div")({
|
|
102
|
+
}), re = /* @__PURE__ */ m("div")({
|
|
107
103
|
name: "PauseAdSidebar",
|
|
108
|
-
class: "
|
|
104
|
+
class: "ptqqrqd",
|
|
109
105
|
propsAsIs: !1
|
|
110
|
-
}),
|
|
106
|
+
}), te = /* @__PURE__ */ m("span")({
|
|
111
107
|
name: "PauseAdTitleDescription",
|
|
112
|
-
class: "
|
|
108
|
+
class: "p14estxv",
|
|
113
109
|
propsAsIs: !1
|
|
114
|
-
}), B = /* @__PURE__ */
|
|
110
|
+
}), B = /* @__PURE__ */ m("img")({
|
|
115
111
|
name: "ExternalAdContainer",
|
|
116
|
-
class: "
|
|
112
|
+
class: "e1dpvfl1",
|
|
117
113
|
propsAsIs: !1
|
|
118
|
-
}),
|
|
114
|
+
}), oe = ({ vastUrl: e, isDesktop: s }) => {
|
|
119
115
|
var t;
|
|
120
|
-
const [,
|
|
116
|
+
const [, a] = V(), r = F(a, { keys: [e] });
|
|
121
117
|
return T(() => {
|
|
122
118
|
r && r[e] && r[e].imageSrc && r[e].id && k.emit("exposedPauseAd", {
|
|
123
119
|
action: "rendered",
|
|
@@ -125,7 +121,7 @@ const O = {}, W = new z(), b = F(O), E = K("ui:gam-static"), U = (e) => new Prom
|
|
|
125
121
|
id: r[e].id
|
|
126
122
|
}
|
|
127
123
|
});
|
|
128
|
-
}, [r, e]), (t = r == null ? void 0 : r[e]) != null && t.imageSrc ? !r[e].adUrl || !s ? /* @__PURE__ */
|
|
124
|
+
}, [r, e]), (t = r == null ? void 0 : r[e]) != null && t.imageSrc ? !r[e].adUrl || !s ? /* @__PURE__ */ l(B, { src: r[e].imageSrc }) : /* @__PURE__ */ l(
|
|
129
125
|
"a",
|
|
130
126
|
{
|
|
131
127
|
onClick: () => {
|
|
@@ -139,60 +135,58 @@ const O = {}, W = new z(), b = F(O), E = K("ui:gam-static"), U = (e) => new Prom
|
|
|
139
135
|
href: r[e].adUrl,
|
|
140
136
|
target: "_blank",
|
|
141
137
|
rel: "noopener noreferrer",
|
|
142
|
-
children: /* @__PURE__ */
|
|
138
|
+
children: /* @__PURE__ */ l(B, { src: r[e].imageSrc })
|
|
143
139
|
}
|
|
144
140
|
) : null;
|
|
145
|
-
},
|
|
146
|
-
const h = (
|
|
141
|
+
}, ae = ({ isClosing: e, title: s, caption: t, onPlay: a, onClose: r, vastUrl: c, options: d, isDesktop: n }) => {
|
|
142
|
+
const h = (d == null ? void 0 : d.showPauseButton) ?? !0, { ref: i, focusSelf: y } = _.useFocusable({
|
|
147
143
|
focusKey: "sl-pause-ad-play",
|
|
148
|
-
onEnterRelease:
|
|
144
|
+
onEnterRelease: a,
|
|
149
145
|
isFocusBoundary: !0,
|
|
150
146
|
forceFocus: !0
|
|
151
147
|
});
|
|
152
148
|
return T(() => {
|
|
153
|
-
|
|
154
|
-
}, [
|
|
149
|
+
i.current && y();
|
|
150
|
+
}, [i, y]), T(() => {
|
|
155
151
|
if (!r)
|
|
156
152
|
return () => {
|
|
157
153
|
};
|
|
158
|
-
const g = (
|
|
159
|
-
const v =
|
|
154
|
+
const g = (f) => {
|
|
155
|
+
const v = f.keyCode;
|
|
160
156
|
if (v === 461 || v === 10009 || v === 27 || v === 8) {
|
|
161
|
-
|
|
157
|
+
f.preventDefault(), f.stopPropagation(), f.stopImmediatePropagation(), r();
|
|
162
158
|
return;
|
|
163
159
|
}
|
|
164
160
|
};
|
|
165
161
|
return window.addEventListener("keydown", g, { capture: !0 }), () => window.removeEventListener("keydown", g, { capture: !0 });
|
|
166
|
-
}, [r]), /* @__PURE__ */
|
|
167
|
-
/* @__PURE__ */
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
/* @__PURE__ */ a(Z, { children: s }),
|
|
171
|
-
/* @__PURE__ */ a(ee, { children: t })
|
|
162
|
+
}, [r]), /* @__PURE__ */ l(Q, { className: $("SL_PauseAdOverlay", e && "pause-ad-closing"), children: /* @__PURE__ */ L(H, { children: [
|
|
163
|
+
/* @__PURE__ */ L(W, { children: [
|
|
164
|
+
/* @__PURE__ */ l(X, { children: s }),
|
|
165
|
+
/* @__PURE__ */ l(Y, { children: t })
|
|
172
166
|
] }),
|
|
173
|
-
h && /* @__PURE__ */
|
|
174
|
-
|
|
167
|
+
h && /* @__PURE__ */ l(Z, { children: /* @__PURE__ */ l(
|
|
168
|
+
ee,
|
|
175
169
|
{
|
|
176
|
-
ref:
|
|
177
|
-
onClick:
|
|
178
|
-
onMouseEnter: () =>
|
|
170
|
+
ref: i,
|
|
171
|
+
onClick: a,
|
|
172
|
+
onMouseEnter: () => i.current.focus(),
|
|
179
173
|
"aria-label": "Resume playback"
|
|
180
174
|
}
|
|
181
175
|
) }),
|
|
182
|
-
/* @__PURE__ */
|
|
183
|
-
|
|
184
|
-
/* @__PURE__ */
|
|
185
|
-
] })
|
|
176
|
+
/* @__PURE__ */ l(se, { className: "SL_PauseAdSidebar", children: /* @__PURE__ */ L(re, { children: [
|
|
177
|
+
c && /* @__PURE__ */ l(oe, { isDesktop: n, vastUrl: c }),
|
|
178
|
+
/* @__PURE__ */ l(te, { children: "ADVERTISEMENT" })
|
|
179
|
+
] }) })
|
|
186
180
|
] }) });
|
|
187
|
-
},
|
|
188
|
-
const
|
|
189
|
-
|
|
190
|
-
const [P,
|
|
191
|
-
|
|
181
|
+
}, ne = ({ showPauseAd: e, vastUrls: s, title: t, caption: a, sdk: r, onClose: c, onRender: d, options: n, isDesktop: h }) => {
|
|
182
|
+
const i = (n == null ? void 0 : n.pauseAdDelay) ?? 5e3, [y, g] = R(!1), [f, v] = R(!1), u = D(), o = s == null ? void 0 : s[0].url, p = D(o);
|
|
183
|
+
p.current = o;
|
|
184
|
+
const [P, b] = V(), S = I(() => {
|
|
185
|
+
c && (k.emit("exposedPauseAd", {
|
|
192
186
|
action: "closed",
|
|
193
187
|
payload: {}
|
|
194
|
-
}),
|
|
195
|
-
}, [
|
|
188
|
+
}), c());
|
|
189
|
+
}, [c]), A = I(() => {
|
|
196
190
|
r.controlVideoPlayer({ play: !0 });
|
|
197
191
|
}, [r]);
|
|
198
192
|
return T(() => {
|
|
@@ -201,19 +195,19 @@ const O = {}, W = new z(), b = F(O), E = K("ui:gam-static"), U = (e) => new Prom
|
|
|
201
195
|
action: "enabled",
|
|
202
196
|
payload: {}
|
|
203
197
|
}), P(o).then((x) => {
|
|
204
|
-
|
|
198
|
+
p.current === o && (x == null ? void 0 : x.success) !== !0 && (clearTimeout(u.current), S == null || S());
|
|
205
199
|
}).catch(() => {
|
|
206
|
-
|
|
200
|
+
p.current === o && (clearTimeout(u.current), S == null || S());
|
|
207
201
|
});
|
|
208
202
|
const C = () => {
|
|
209
|
-
const x =
|
|
203
|
+
const x = b.get()[p.current];
|
|
210
204
|
x != null && x.imageSrc ? (clearTimeout(u.current), v(!1), g(!0)) : u.current = setTimeout(() => {
|
|
211
205
|
C();
|
|
212
206
|
}, 200);
|
|
213
207
|
};
|
|
214
208
|
u.current = setTimeout(() => {
|
|
215
209
|
C();
|
|
216
|
-
},
|
|
210
|
+
}, i);
|
|
217
211
|
} else
|
|
218
212
|
k.emit("exposedPauseAd", {
|
|
219
213
|
action: "disabled",
|
|
@@ -224,61 +218,61 @@ const O = {}, W = new z(), b = F(O), E = K("ui:gam-static"), U = (e) => new Prom
|
|
|
224
218
|
return () => {
|
|
225
219
|
u.current && clearTimeout(u.current);
|
|
226
220
|
};
|
|
227
|
-
}, [
|
|
228
|
-
|
|
229
|
-
}, [
|
|
230
|
-
|
|
231
|
-
}, [
|
|
232
|
-
|
|
221
|
+
}, [b, P, S, i, e, o]), T(() => {
|
|
222
|
+
d == null || d({ rendered: y });
|
|
223
|
+
}, [y, d]), T(() => () => {
|
|
224
|
+
d == null || d({ rendered: !1 });
|
|
225
|
+
}, [d]), y ? /* @__PURE__ */ l(
|
|
226
|
+
ae,
|
|
233
227
|
{
|
|
234
228
|
onClose: S,
|
|
235
|
-
isClosing:
|
|
229
|
+
isClosing: f,
|
|
236
230
|
title: t,
|
|
237
|
-
caption:
|
|
231
|
+
caption: a,
|
|
238
232
|
onPlay: A,
|
|
239
233
|
vastUrl: o,
|
|
240
|
-
options:
|
|
234
|
+
options: n,
|
|
241
235
|
isDesktop: h
|
|
242
236
|
}
|
|
243
237
|
) : null;
|
|
244
|
-
},
|
|
238
|
+
}, ie = ({
|
|
245
239
|
showPauseAd: e,
|
|
246
240
|
pauseAdVastUrl: s,
|
|
247
241
|
videoPlayerController: t,
|
|
248
|
-
onRenderPauseAd:
|
|
242
|
+
onRenderPauseAd: a,
|
|
249
243
|
onClosePauseAd: r,
|
|
250
|
-
children:
|
|
251
|
-
options:
|
|
244
|
+
children: c,
|
|
245
|
+
options: d
|
|
252
246
|
}) => {
|
|
253
|
-
const
|
|
254
|
-
return T(() =>
|
|
255
|
-
|
|
247
|
+
const n = N(), h = j(), i = D();
|
|
248
|
+
return T(() => n ? (t && (i.current = t, n.addVideoPlayerController(i.current)), () => {
|
|
249
|
+
i.current && n.removeVideoPlayerController(i.current);
|
|
256
250
|
}) : () => {
|
|
257
|
-
}, [
|
|
258
|
-
|
|
251
|
+
}, [n, t]), n ? /* @__PURE__ */ l("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ L(
|
|
252
|
+
q,
|
|
259
253
|
{
|
|
260
|
-
style:
|
|
254
|
+
style: c ? { position: "relative" } : {},
|
|
261
255
|
customTheme: h.theme,
|
|
262
256
|
themeMode: h.themeMode,
|
|
263
257
|
children: [
|
|
264
|
-
|
|
265
|
-
s && /* @__PURE__ */
|
|
266
|
-
|
|
258
|
+
c,
|
|
259
|
+
s && /* @__PURE__ */ l(
|
|
260
|
+
ne,
|
|
267
261
|
{
|
|
268
|
-
sdk:
|
|
262
|
+
sdk: n,
|
|
269
263
|
showPauseAd: e,
|
|
270
264
|
vastUrls: s,
|
|
271
265
|
onClose: r,
|
|
272
|
-
onRender:
|
|
273
|
-
options:
|
|
266
|
+
onRender: a,
|
|
267
|
+
options: d,
|
|
274
268
|
isDesktop: !0
|
|
275
269
|
}
|
|
276
270
|
)
|
|
277
271
|
]
|
|
278
272
|
}
|
|
279
|
-
) }) :
|
|
273
|
+
) }) : c;
|
|
280
274
|
};
|
|
281
|
-
class
|
|
275
|
+
class fe extends O {
|
|
282
276
|
constructor(s) {
|
|
283
277
|
super(s), this.state = { hasError: !1 };
|
|
284
278
|
}
|
|
@@ -289,9 +283,9 @@ class Ae extends $ {
|
|
|
289
283
|
console.error(s, t.componentStack);
|
|
290
284
|
}
|
|
291
285
|
render() {
|
|
292
|
-
return this.state.hasError ? this.props.children : /* @__PURE__ */
|
|
286
|
+
return this.state.hasError ? this.props.children : /* @__PURE__ */ l(ie, { ...this.props });
|
|
293
287
|
}
|
|
294
288
|
}
|
|
295
289
|
export {
|
|
296
|
-
|
|
290
|
+
fe as StreamLayerPauseAd
|
|
297
291
|
};
|
package/lib/dist/cjs/masters.js
CHANGED
|
@@ -73,4 +73,4 @@ view this resource.`}):c.jsx(Jo,{}),Td=S.memo(({sdk:e,swipeable:t=!0,onEvent:n=N
|
|
|
73
73
|
`),a=`
|
|
74
74
|
`+n+(o.length?s("│"):" ")+" ";return n+l.join(a)+`
|
|
75
75
|
`+o.map(function(r,d){var u=d===o.length-1,p=r.nodes&&r.nodes.length,h=n+(u?" ":s("│"))+" ";return n+s(u?"└":"├")+s("─")+s(p?"┬":"─")+" "+e(r,h,i).slice(n.length+2)}).join("")};const XY=NY,L0=Symbol("avvio.TimeTree.untrackNode"),go=Symbol("avvio.TimeTree.trackNode"),k0=Symbol("avvio.TimeTree.getParent"),J0=Symbol("avvio.TimeTree.getNode"),z0=Symbol("avvio.TimeTree.addNode");let YY=class{constructor(){this.root=null,this.tableId=new Map,this.tableLabel=new Map}[go](e){this.tableId.set(e.id,e),this.tableLabel.has(e.label)?this.tableLabel.get(e.label).push(e):this.tableLabel.set(e.label,[e])}[L0](e){this.tableId.delete(e.id);const t=this.tableLabel.get(e.label);if(t.id){this.tableLabel.delete(e.label);return}t.pop(),t.length===0&&this.tableLabel.delete(e.label)}[k0](e){if(e===null)return this.root;const t=this.tableLabel.get(e);return t.id?t:t[t.length-1]}[J0](e){return this.tableId.get(e)}[z0](e,t,n){if(e===null)return this.root={id:"root",label:t,start:n,nodes:[]},this[go](this.root),this.root.id;const i=this[k0](e),s=`${t}-${Math.random()}`,o={id:s,parent:e,start:n,label:t,nodes:[]};return i.nodes.push(o),this[go](o),s}start(e,t,n=Date.now()){return this[z0](e,t,n)}stop(e,t=Date.now()){const n=this[J0](e);n&&(n.stop=t,n.diff=n.stop-n.start||0,this[L0](n))}toJSON(){return Object.assign({},this.root)}prittyPrint(){const e=n=>(n.label=`${n.label} ${n.diff} ms`,n.nodes.length>0&&(n.nodes=n.nodes.map(i=>e(i))),n),t=e(this.toJSON());return XY(t)}};var BY=YY,la={exports:{}},sl={exports:{}},bo,Q0;function UY(){if(Q0)return bo;Q0=1;var e=1e3,t=e*60,n=t*60,i=n*24,s=i*7,o=i*365.25;bo=function(u,p){p=p||{};var h=typeof u;if(h==="string"&&u.length>0)return l(u);if(h==="number"&&isFinite(u))return p.long?r(u):a(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function l(u){if(u=String(u),!(u.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(p){var h=parseFloat(p[1]),g=(p[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return h*o;case"weeks":case"week":case"w":return h*s;case"days":case"day":case"d":return h*i;case"hours":case"hour":case"hrs":case"hr":case"h":return h*n;case"minutes":case"minute":case"mins":case"min":case"m":return h*t;case"seconds":case"second":case"secs":case"sec":case"s":return h*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function a(u){var p=Math.abs(u);return p>=i?Math.round(u/i)+"d":p>=n?Math.round(u/n)+"h":p>=t?Math.round(u/t)+"m":p>=e?Math.round(u/e)+"s":u+"ms"}function r(u){var p=Math.abs(u);return p>=i?d(u,p,i,"day"):p>=n?d(u,p,n,"hour"):p>=t?d(u,p,t,"minute"):p>=e?d(u,p,e,"second"):u+" ms"}function d(u,p,h,g){var A=p>=h*1.5;return Math.round(u/h)+" "+g+(A?"s":"")}return bo}function wY(e){n.debug=n,n.default=n,n.coerce=r,n.disable=o,n.enable=s,n.enabled=l,n.humanize=UY(),n.destroy=d,Object.keys(e).forEach(u=>{n[u]=e[u]}),n.names=[],n.skips=[],n.formatters={};function t(u){let p=0;for(let h=0;h<u.length;h++)p=(p<<5)-p+u.charCodeAt(h),p|=0;return n.colors[Math.abs(p)%n.colors.length]}n.selectColor=t;function n(u){let p,h=null,g,A;function y(...Z){if(!y.enabled)return;const b=y,m=Number(new Date),f=m-(p||m);b.diff=f,b.prev=p,b.curr=m,p=m,Z[0]=n.coerce(Z[0]),typeof Z[0]!="string"&&Z.unshift("%O");let C=0;Z[0]=Z[0].replace(/%([a-zA-Z%])/g,(v,F)=>{if(v==="%%")return"%";C++;const Y=n.formatters[F];if(typeof Y=="function"){const k=Z[C];v=Y.call(b,k),Z.splice(C,1),C--}return v}),n.formatArgs.call(b,Z),(b.log||n.log).apply(b,Z)}return y.namespace=u,y.useColors=n.useColors(),y.color=n.selectColor(u),y.extend=i,y.destroy=n.destroy,Object.defineProperty(y,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(g!==n.namespaces&&(g=n.namespaces,A=n.enabled(u)),A),set:Z=>{h=Z}}),typeof n.init=="function"&&n.init(y),y}function i(u,p){const h=n(this.namespace+(typeof p>"u"?":":p)+u);return h.log=this.log,h}function s(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let p;const h=(typeof u=="string"?u:"").split(/[\s,]+/),g=h.length;for(p=0;p<g;p++)h[p]&&(u=h[p].replace(/\*/g,".*?"),u[0]==="-"?n.skips.push(new RegExp("^"+u.slice(1)+"$")):n.names.push(new RegExp("^"+u+"$")))}function o(){const u=[...n.names.map(a),...n.skips.map(a).map(p=>"-"+p)].join(",");return n.enable(""),u}function l(u){if(u[u.length-1]==="*")return!0;let p,h;for(p=0,h=n.skips.length;p<h;p++)if(n.skips[p].test(u))return!1;for(p=0,h=n.names.length;p<h;p++)if(n.names[p].test(u))return!0;return!1}function a(u){return u.toString().substring(2,u.toString().length-2).replace(/\.\*\?$/,"*")}function r(u){return u instanceof Error?u.stack||u.message:u}function d(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}var TY=wY;(function(e,t){t.formatArgs=i,t.save=s,t.load=o,t.useColors=n,t.storage=l(),t.destroy=(()=>{let r=!1;return()=>{r||(r=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function i(r){if(r[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+r[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const d="color: "+this.color;r.splice(1,0,d,"color: inherit");let u=0,p=0;r[0].replace(/%[a-zA-Z%]/g,h=>{h!=="%%"&&(u++,h==="%c"&&(p=u))}),r.splice(p,0,d)}t.log=console.debug||console.log||(()=>{});function s(r){try{r?t.storage.setItem("debug",r):t.storage.removeItem("debug")}catch{}}function o(){let r;try{r=t.storage.getItem("debug")}catch{}return!r&&typeof de<"u"&&"env"in de&&(r=de.env.DEBUG),r}function l(){try{return localStorage}catch{}}e.exports=TY(t);const{formatters:a}=e.exports;a.j=function(r){try{return JSON.stringify(r)}catch(d){return"[UnexpectedJSONParseError]: "+d.message}}})(sl,sl.exports);var H3=sl.exports;const xY=f3,LY=I3.EventEmitter,kY=Qs.inherits,He=H3("avvio"),{AVV_ERR_READY_TIMEOUT:JY}=K3,Vo=Symbol.for("plugin-meta");function zY(e,t){return e[Vo]&&e[Vo].name?e[Vo].name:typeof t<"u"&&typeof t!="function"&&t.name?t.name:e.name?e.name:e.toString().split(`
|
|
76
|
-
`).slice(0,2).map(n=>n.trim()).join(" -- ")}function QY(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}function $n(e,t,n,i,s){this.started=!1,this.func=t,this.opts=n,this.onFinish=null,this.parent=e,this.timeout=s===void 0?e._timeout:s,this.name=zY(t,n),this.isAfter=i,this.q=xY(e,MY,1),this.q.pause(),this._error=null,this.loaded=!1,this._promise=null}kY($n,LY);$n.prototype.exec=function(e,t){const n=this.func;let i=!1;const s=this.name;if(this.parent._error&&!this.isAfter){He("skipping loading of plugin as parent errored and it is not an after",s),de.nextTick(t);return}if(this.isAfter)this.server=e;else try{this.server=this.parent.override(e,n,this.opts)}catch(r){return He("override errored",s),t(r)}this.opts=typeof this.opts=="function"?this.opts(this.server):this.opts,He("exec",s);let o;const l=r=>{if(i){He("loading complete",s);return}this._error=r,He(r?"exec errored":"exec completed",s),i=!0,o&&clearTimeout(o),t(r)};this.timeout>0&&(He("setting up timeout",s,this.timeout),o=setTimeout(function(){He("timed out",s),o=null;const r=new JY(s);r.fn=n,l(r)},this.timeout)),this.started=!0,this.emit("start",this.server?this.server.name:null,this.name,Date.now());const a=n(this.server,this.opts,l);a&&typeof a.then=="function"&&(He("exec: resolving promise",s),a.then(()=>de.nextTick(l),r=>de.nextTick(l,r)))};$n.prototype.loadedSoFar=function(){if(this.loaded)return Promise.resolve();const e=()=>{this.server.after((n,i)=>{this._error=n,this.q.pause(),n?(He("rejecting promise",this.name,n),this._promise.reject(n)):(He("resolving promise",this.name),this._promise.resolve()),this._promise=null,de.nextTick(i,n)}),this.q.resume()};let t;return this._promise?t=Promise.resolve():(this._promise=QY(),t=this._promise.promise,this.server?e():this.on("start",e)),t};$n.prototype.enqueue=function(e,t){He("enqueue",this.name,e.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.q.push(e,t)};$n.prototype.finish=function(e,t){He("finish",this.name,e);const n=()=>{this.loaded||(He("loaded",this.name),this.emit("loaded",this.server?this.server.name:null,this.name,Date.now()),this.loaded=!0,t(e))};if(e){this._promise&&(this._promise.reject(e),this._promise=null),n();return}const i=()=>{if(He("check",this.name,this.q.length(),this.q.running(),this._promise),this.q.length()===0&&this.q.running()===0)if(this._promise){const s=()=>{He("wrap"),queueMicrotask(i)};this._promise.resolve(),this._promise.promise.then(s,s),this._promise=null}else n();else He("delayed",this.name),this.q.drain=()=>{He("drain",this.name),this.q.drain=KY,queueMicrotask(i)}};queueMicrotask(i),this.q.resume()};function MY(e,t){const n=this;de.nextTick(aa.bind(n),e,t)}function aa(e,t){if(typeof e.func.then=="function"){e.func.then(i=>{typeof i.default=="function"&&(i=i.default),e.func=i,aa.call(this,e,t)},t);return}const n=this._current[0];this._current.unshift(e),e.exec(n&&n.server||this._server,i=>{e.finish(i,s=>{this._current.shift(),t(s)})})}function KY(){}la.exports=$n;la.exports.loadPlugin=aa;var HY=la.exports;const M0=f3,OY=I3.EventEmitter,jY=Qs.inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:Ao,AVV_ERR_CALLBACK_NOT_FN:hi,AVV_ERR_PLUGIN_NOT_VALID:_Y,AVV_ERR_ROOT_PLG_BOOTED:DY,AVV_ERR_READY_TIMEOUT:PY}=K3,$Y=BY,ol=HY,Qn=H3("avvio"),Fs=Symbol("kAvvio"),fo=Symbol("kThenifyDoNotWrap");function qY(e,t,n){const i=t.expose||{},s=i.use||"use",o=i.after||"after",l=i.ready||"ready",a=i.onClose||"onClose",r=i.close||"close";if(e[s])throw new Ao(s);if(e[o])throw new Ao(o);if(e[l])throw new Ao(l);e[s]=function(d,u){return n.use(d,u),this},Object.defineProperty(e,"then",{get:O3.bind(n)}),e[Fs]=!0,e[o]=function(d){return typeof d!="function"?n._loadRegistered():(n.after(Ro(d,this)),this)},e[l]=function(d){if(d&&typeof d!="function")throw new hi(l,typeof d);return n.ready(d?Ro(d,this):void 0)},e[a]=function(d){if(typeof d!="function")throw new hi(a,typeof d);return n.onClose(sB(d,this)),this},e[r]=function(d){if(d&&typeof d!="function")throw new hi(r,typeof d);return d?(n.close(Ro(d,this)),this):n.close()}}function Ke(e,t,n){if(typeof e=="function"&&arguments.length===1&&(n=e,t={},e=null),typeof t=="function"&&(n=t,t={}),t=t||{},!(this instanceof Ke)){const i=new Ke(e,t,n);return e&&qY(e,t,i),i}t.autostart!==!1&&(t.autostart=!0),e=e||this,this._timeout=Number(t.timeout)||0,this._server=e,this._current=[],this._error=null,this._isOnCloseHandlerKey=Symbol("isOnCloseHandler"),this._lastUsed=null,this.setMaxListeners(0),n&&this.once("start",n),this.started=!1,this.booted=!1,this.pluginTree=new $Y,this._readyQ=M0(this,j3,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=K0},this._closeQ=M0(this,iB,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=K0},this._doStart=null,this._root=new ol(this,eB.bind(this),t,!1,0),this._root.once("start",(i,s,o)=>{const l=this.pluginTree.start(null,s,o);this._root.once("loaded",(a,r,d)=>{this.pluginTree.stop(l,d)})}),ol.loadPlugin.call(this,this._root,i=>{Qn("root plugin ready");try{this.emit("preReady"),this._root=null}catch(s){i=i||this._error||s}if(i){if(this._error=i,this._readyQ.length()===0)throw i}else this.booted=!0;this._readyQ.resume()})}function eB(e,t,n){this._doStart=n,t.autostart&&this.start()}jY(Ke,OY);Ke.prototype.start=function(){return this.started=!0,de.nextTick(this._doStart),this};Ke.prototype.override=function(e,t,n){return e};function tB(e){if(e&&typeof e=="object"&&typeof e.default=="function"&&(e=e.default),!(e&&(typeof e=="function"||typeof e.then=="function")))throw new _Y(typeof e);return e}Ke.prototype[Fs]=!0;Ke.prototype.use=function(e,t){return this._lastUsed=this._addPlugin(e,t,!1),this};Ke.prototype._loadRegistered=function(){const e=this._current[0];return!this.started&&!this.booted&&de.nextTick(()=>this._root.q.resume()),e?e.loadedSoFar():Promise.resolve()};Object.defineProperty(Ke.prototype,"then",{get:O3});Ke.prototype._addPlugin=function(e,t,n){if(e=tB(e),t=t||{},this.booted)throw new DY;const i=this._current[0],s=new ol(this,e,t,n);if(s.once("start",(o,l,a)=>{const r=this.pluginTree.start(i.name,l,a);s.once("loaded",(d,u,p)=>{this.pluginTree.stop(r,p)})}),i.loaded)throw new Error(s.name,i.name);return i.enqueue(s,o=>{o&&(this._error=o)}),s};Ke.prototype.after=function(e){if(!e)return this._loadRegistered();this._addPlugin(t.bind(this),{},!0);function t(n,i,s){j3.call(this,e,s)}return this};Ke.prototype.onClose=function(e){if(typeof e!="function")throw new Error("not a function");e[this._isOnCloseHandlerKey]=!0,this._closeQ.unshift(e,t.bind(this));function t(n){n&&(this._error=n)}return this};Ke.prototype.close=function(e){let t;if(e){if(typeof e!="function")throw new hi("close",typeof e)}else t=new Promise(function(n,i){e=function(s){if(s)return i(s);n()}});return this.ready(()=>{this._error=null,this._closeQ.push(e),de.nextTick(this._closeQ.resume.bind(this._closeQ))}),t};Ke.prototype.ready=function(e){if(e){if(typeof e!="function")throw new hi("ready",typeof e);this._readyQ.push(e),queueMicrotask(this.start.bind(this));return}return new Promise((t,n)=>{this._readyQ.push(s),this.start();const i=this._current[0].server;function s(o,l,a){o?n(o):t(i),de.nextTick(a)}})};Ke.prototype.prettyPrint=function(){return this.pluginTree.prittyPrint()};Ke.prototype.toJSON=function(){return this.pluginTree.toJSON()};function K0(){}function O3(){if(this.booted){Qn("thenify returning null because we are already booted");return}if(this[fo]){this[fo]=!1;return}return Qn("thenify"),(e,t)=>this._loadRegistered().then(()=>(this[fo]=!0,e(this._server)),t)}function j3(e,t){const n=this._server,i=this._error;let s;if(this._error=null,e.length===0)this._error=i,s=e(),s&&!s[Fs]&&typeof s.then=="function"?s.then(()=>de.nextTick(t),o=>de.nextTick(t,o)):de.nextTick(t);else if(e.length===1)s=e(i),s&&!s[Fs]&&typeof s.then=="function"?s.then(()=>de.nextTick(t),o=>de.nextTick(t,o)):de.nextTick(t);else if(this._timeout===0){const o=l=>{this._error=l,t(this._error)};e.length===2?e(i,o):e(i,n,o)}else nB.call(this,e,i,n,t)}function nB(e,t,n,i){const s=e.name;Qn("setting up ready timeout",s,this._timeout);let o=setTimeout(()=>{Qn("timed out",s),o=null;const a=new PY(s);a.fn=e,this._error=a,i(a)},this._timeout);e.length===2?e(t,l.bind(this)):e(t,n,l.bind(this));function l(a){o&&(clearTimeout(o),this._error=a,i(this._error))}}function iB(e,t){const n=this._server,i=e[this._isOnCloseHandlerKey];if(e.length===0||e.length===1){let s;i?s=e(n):s=e(this._error),s&&typeof s.then=="function"?(Qn("resolving close/onClose promise"),s.then(()=>de.nextTick(t),o=>de.nextTick(t,o))):de.nextTick(t)}else e.length===2?e(i?n:this._error,t):i?e(n,t):e(this._error,n,t)}function sB(e,t){return n.bind(t);function n(i,s){let o;e.length===0?(o=e(),o&&o.then?o.then(function(){de.nextTick(s)},s):de.nextTick(s)):e.length===1?(o=e(this),o&&o.then?o.then(function(){de.nextTick(s)},s):de.nextTick(s)):e(this,s)}}function Ro(e,t){return n.bind(t);function n(i,s){let o;e?e.length===0?(o=e(),o&&o.then?o.then(function(){de.nextTick(s,i)},s):de.nextTick(s,i)):e.length===1?(o=e(i),o&&o.then?o.then(function(){de.nextTick(s)},s):de.nextTick(s)):e.length===2?e(i,s):e(i,this,s):de.nextTick(s)}}_l.exports=Ke;_l.exports.express=function(e){return Ke(e,{expose:{use:"load"}})};var oB=_l.exports;const lB=BN(oB);(function(){if(window.requestAnimationFrame&&window.cancelAnimationFrame)return;const e=["webkit","moz","ms","o"];for(const t of e)window.requestAnimationFrame=window.requestAnimationFrame||window[`${t}RequestAnimationFrame`],window.cancelAnimationFrame=window.cancelAnimationFrame||window[`${t}CancelAnimationFrame`]||window[`${t}CancelRequestAnimationFrame`];if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){let t=0;const n=!!(window.performance&&window.performance.now);window.requestAnimationFrame=function(i){const s=n?window.performance.now():new Date().getTime(),o=Math.max(0,16-(s-t)),l=window.setTimeout(function(){i(s+o)},o);return t=s+o,l},window.cancelAnimationFrame=clearTimeout}})();function aB(e,t=!0,n=!0,i={friendsTab:"enabled"}){const s=t?"https://grpc-sdk.streamlayer.io:443":"https://grpc-sdk.next.streamlayer.io:443",o=t?"https://grpc.streamlayer.io:443":"https://grpc.next.streamlayer.io:443",l=lB(Object.create({}),{autostart:!1});return l.use(uN,{hideFriends:i.hideFriends,skipOnboarding:i.skipOnboarding,betPack:i.betPack,friendsTab:i.friendsTab,theme:i.theme,themeMode:i.themeMode}),l.use(sN,{onDeepLinkHandled:i==null?void 0:i.onDeepLinkHandled}),l.use(rN,{videoPlayerController:i==null?void 0:i.videoPlayerController}),l.use(dN,{onContentActivate:i==null?void 0:i.onContentActivate,withAd:i==null?void 0:i.withAd,withAdNotification:i==null?void 0:i.withAdNotification}),l.use(ZG,{sdkKey:e,host:s,analyticsHost:o,version:i==null?void 0:i.version,webOS:i==null?void 0:i.webOS}),l.use(FG),l.use(aN),l.use(EN),l.use(PG),l.use(YN),l.after((a,r,d)=>{if(a)throw a;r.ready(),d()}),n&&l.after(async(a,r,d)=>{if(a)throw a;await r.sdk.initializeApp(),d()}),l.onClose(()=>{console.log("close StreamLayer instance")}),l}const rB=({sdkKey:e,plugins:t,production:n,autoEnable:i,onDeepLinkHandled:s,videoPlayerController:o,onContentActivate:l,hideFriends:a,skipOnboarding:r,withAdNotification:d,withAd:u,friendsTab:p,betPack:h,webOS:g})=>{const[A,y]=S.useState(null);return S.useEffect(()=>{let Z=!1;if(!e)return console.error("streamlayer sdk key should be provided"),y(m=>(m!==null&&typeof m.disableApp=="function"&&m.disableApp(),null)),()=>{Z=!0};const b=aB(e,n,i,{version:"1.21.0",onDeepLinkHandled:s,videoPlayerController:o,onContentActivate:l,skipOnboarding:r,withAdNotification:d,withAd:u,hideFriends:a,friendsTab:p,betPack:h,webOS:g});if(t)for(const m of t)b.use(m);return b.ready().then(m=>{Z||(y(m.sdk),typeof window<"u")}).catch(m=>console.log(m)),()=>{Z=!0,b.close(function(m){if(m)throw m})}},[e,n]),A},ra=({event:e,internal:t})=>{const n=Wi(),i=dB();return S.useEffect(()=>(n&&(e&&(n.createEventSession(e,t),i&&(i.current=e)),!e&&(i!=null&&i.current)&&(n.createEventSession("",t),i.current="")),()=>{n&&n.disableApp()}),[e,t,i,n]),null};var _3=(e=>(e[e.UNSET=0]="UNSET",e[e.CONNECTED=1]="CONNECTED",e[e.READY=2]="READY",e))(_3||{});const cB={status:0,sdk:null},js=S.createContext(cB),D3=({sdkKey:e,theme:t,themeMode:n,plugins:i,children:s,event:o,production:l=!0,autoEnable:a=!0,withAdNotification:r,withAd:d=!0,betPack:u=!1,hideFriends:p,skipOnboarding:h,friendsTab:g="enabled",onDeepLinkHandled:A,videoPlayerController:y,onContentActivate:Z,containerId:b,webOS:m})=>{const f=rB({sdkKey:e,plugins:i,production:l,autoEnable:a,onDeepLinkHandled:A,videoPlayerController:y,onContentActivate:Z,hideFriends:p,skipOnboarding:h,withAdNotification:r,withAd:d,friendsTab:g,betPack:u,webOS:m}),C=S.useRef(""),v=S.useMemo(()=>f?{sdk:f,status:2,event:C}:{status:1,sdk:null,event:C},[f]);return S.useEffect(()=>{f&&(f.options.setKey("friendsTab",g),f.options.setKey("theme",t),f.options.setKey("themeMode",n),f.options.setKey("skipOnboarding",h),f.options.setKey("betPack",u),f.options.setKey("containerId",b))},[f,g,t,n,h,u,b]),S.useEffect(()=>()=>{A&&(f==null||f.removeDeepLinkHandler(A)),y&&(f==null||f.removeVideoPlayerController(y))},[f]),S.useEffect(()=>{localStorage.getItem("SL_DEBUG")&&console.log("StreamLayerProvider mounted with props:",{sdkKey:!!e,onDeepLinkHandled:!!A,videoPlayerController:!!y})},[e,A,y]),c.jsxs(js.Provider,{value:v,children:[o!==void 0&&c.jsx(ra,{event:o}),s]})},Wi=()=>{const{sdk:e}=S.useContext(js);return e},dB=()=>{const{event:e}=S.useContext(js);return e},H0=e=>{const t=e.target;t instanceof Element&&t.getAttribute("data-a")==="intr"&&kn.emit("interactions",{action:"tap",payload:{}})},uB=()=>{const e=Wi();return S.useEffect(()=>(document==null||document.addEventListener("click",H0),()=>{document==null||document.removeEventListener("click",H0)}),[]),e?c.jsx(Td,{sdk:e}):null},pB=({sdkKey:e,plugins:t,children:n,event:i,onDeepLinkHandled:s,videoPlayerController:o,production:l=!0})=>c.jsxs(D3,{sdkKey:e,plugins:t,production:l,autoEnable:!0,onDeepLinkHandled:s,videoPlayerController:o,friendsTab:"disabled",skipOnboarding:!0,hideFriends:!0,children:[c.jsx(ra,{event:i}),n]}),hB=({betPack:e,useContainer:t})=>{const{sdk:n,status:i}=S.useContext(js);return i===_3.UNSET?(console.error("Wrap app in `StreamLayerProvider`"),null):n?c.jsx("div",{className:"StreamLayerSDK",children:c.jsx(Kl,{style:{height:"100%"},children:c.jsx(_I,{sdk:n,betPack:e,useContainer:t})})}):null};class mB extends S.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t,n){console.error(t,n.componentStack)}render(){return this.state.hasError?null:c.jsx(hB,{...this.props})}}const gB=({token:e,schema:t})=>{const n=Wi();return S.useEffect(()=>{e&&t&&n&&n.authorizationBypass(t,e),n&&(n.withAuth=!0)},[e,t,n]),null},bB=({event:e,sdkKey:t,token:n,deviceId:i,production:s=!1,theme:o,themeMode:l="light",children:a})=>{const[r,d]=S.useState(!1);return S.useEffect(()=>{n&&(new e3().setToken(n),d(!0))},[n]),S.useEffect(()=>{i&&localStorage.setItem("sl-device-id",i)},[i]),r?c.jsxs(D3,{sdkKey:t,production:s,theme:o,themeMode:l,betPack:!0,friendsTab:"disabled",hideFriends:!0,skipOnboarding:!0,autoEnable:!0,children:[c.jsx(ra,{event:e,internal:!1}),c.jsx("div",{className:"StreamLayerSDK",children:c.jsx(Kl,{children:a})})]}):null},VB=({production:e})=>{const[t,n]=S.useState();return S.useEffect(()=>{const{hostname:i,search:s}=window.location,o=new URLSearchParams(s);n({sdkKey:o.get("_slrk")||"",event:o.get("_slre")||"",token:o.get("_slrt")||"",deviceId:o.get("_slrd")||"",theme:o.get("theme")||"",themeMode:o.get("themeMode")==="dark"?"dark":"light",production:e??!(i.includes("next.")||i==="localhost")})},[e]),t?c.jsx(bB,{...t,children:c.jsx(uB,{})}):null},AB=()=>{const e=Wi();return e?c.jsx("div",{className:"StreamLayerSDK",children:c.jsx(Kl,{children:c.jsx(oF,{sdk:e})})}):null};exports.A=_e;exports.B1=ne;exports.BetPackStandalone=VB;exports.C=BS;exports.C$1=hR;exports.I=zl;exports.InvitationFrom=cs;exports.M=$d;exports.MastersStreamLayerProvider=pB;exports.MastersStreamLayerSDKReact=mB;exports.S=gR;exports.StreamLayerLogin=gB;exports.StreamLayerSDKPoints=AB;exports.T=Pd;exports.cx_default=Me;exports.d=bR;exports.f=Nc;exports.k=jd;exports.l=uR;exports.m=dR;exports.n=Ul;exports.p=aF;exports.s=Kd;exports.styled_default=V;exports.useStore=Ze;exports.useStreamLayer=Wi;exports.useTransition=F5;exports.z=_d;
|
|
76
|
+
`).slice(0,2).map(n=>n.trim()).join(" -- ")}function QY(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}function $n(e,t,n,i,s){this.started=!1,this.func=t,this.opts=n,this.onFinish=null,this.parent=e,this.timeout=s===void 0?e._timeout:s,this.name=zY(t,n),this.isAfter=i,this.q=xY(e,MY,1),this.q.pause(),this._error=null,this.loaded=!1,this._promise=null}kY($n,LY);$n.prototype.exec=function(e,t){const n=this.func;let i=!1;const s=this.name;if(this.parent._error&&!this.isAfter){He("skipping loading of plugin as parent errored and it is not an after",s),de.nextTick(t);return}if(this.isAfter)this.server=e;else try{this.server=this.parent.override(e,n,this.opts)}catch(r){return He("override errored",s),t(r)}this.opts=typeof this.opts=="function"?this.opts(this.server):this.opts,He("exec",s);let o;const l=r=>{if(i){He("loading complete",s);return}this._error=r,He(r?"exec errored":"exec completed",s),i=!0,o&&clearTimeout(o),t(r)};this.timeout>0&&(He("setting up timeout",s,this.timeout),o=setTimeout(function(){He("timed out",s),o=null;const r=new JY(s);r.fn=n,l(r)},this.timeout)),this.started=!0,this.emit("start",this.server?this.server.name:null,this.name,Date.now());const a=n(this.server,this.opts,l);a&&typeof a.then=="function"&&(He("exec: resolving promise",s),a.then(()=>de.nextTick(l),r=>de.nextTick(l,r)))};$n.prototype.loadedSoFar=function(){if(this.loaded)return Promise.resolve();const e=()=>{this.server.after((n,i)=>{this._error=n,this.q.pause(),n?(He("rejecting promise",this.name,n),this._promise.reject(n)):(He("resolving promise",this.name),this._promise.resolve()),this._promise=null,de.nextTick(i,n)}),this.q.resume()};let t;return this._promise?t=Promise.resolve():(this._promise=QY(),t=this._promise.promise,this.server?e():this.on("start",e)),t};$n.prototype.enqueue=function(e,t){He("enqueue",this.name,e.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.q.push(e,t)};$n.prototype.finish=function(e,t){He("finish",this.name,e);const n=()=>{this.loaded||(He("loaded",this.name),this.emit("loaded",this.server?this.server.name:null,this.name,Date.now()),this.loaded=!0,t(e))};if(e){this._promise&&(this._promise.reject(e),this._promise=null),n();return}const i=()=>{if(He("check",this.name,this.q.length(),this.q.running(),this._promise),this.q.length()===0&&this.q.running()===0)if(this._promise){const s=()=>{He("wrap"),queueMicrotask(i)};this._promise.resolve(),this._promise.promise.then(s,s),this._promise=null}else n();else He("delayed",this.name),this.q.drain=()=>{He("drain",this.name),this.q.drain=KY,queueMicrotask(i)}};queueMicrotask(i),this.q.resume()};function MY(e,t){const n=this;de.nextTick(aa.bind(n),e,t)}function aa(e,t){if(typeof e.func.then=="function"){e.func.then(i=>{typeof i.default=="function"&&(i=i.default),e.func=i,aa.call(this,e,t)},t);return}const n=this._current[0];this._current.unshift(e),e.exec(n&&n.server||this._server,i=>{e.finish(i,s=>{this._current.shift(),t(s)})})}function KY(){}la.exports=$n;la.exports.loadPlugin=aa;var HY=la.exports;const M0=f3,OY=I3.EventEmitter,jY=Qs.inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:Ao,AVV_ERR_CALLBACK_NOT_FN:hi,AVV_ERR_PLUGIN_NOT_VALID:_Y,AVV_ERR_ROOT_PLG_BOOTED:DY,AVV_ERR_READY_TIMEOUT:PY}=K3,$Y=BY,ol=HY,Qn=H3("avvio"),Fs=Symbol("kAvvio"),fo=Symbol("kThenifyDoNotWrap");function qY(e,t,n){const i=t.expose||{},s=i.use||"use",o=i.after||"after",l=i.ready||"ready",a=i.onClose||"onClose",r=i.close||"close";if(e[s])throw new Ao(s);if(e[o])throw new Ao(o);if(e[l])throw new Ao(l);e[s]=function(d,u){return n.use(d,u),this},Object.defineProperty(e,"then",{get:O3.bind(n)}),e[Fs]=!0,e[o]=function(d){return typeof d!="function"?n._loadRegistered():(n.after(Ro(d,this)),this)},e[l]=function(d){if(d&&typeof d!="function")throw new hi(l,typeof d);return n.ready(d?Ro(d,this):void 0)},e[a]=function(d){if(typeof d!="function")throw new hi(a,typeof d);return n.onClose(sB(d,this)),this},e[r]=function(d){if(d&&typeof d!="function")throw new hi(r,typeof d);return d?(n.close(Ro(d,this)),this):n.close()}}function Ke(e,t,n){if(typeof e=="function"&&arguments.length===1&&(n=e,t={},e=null),typeof t=="function"&&(n=t,t={}),t=t||{},!(this instanceof Ke)){const i=new Ke(e,t,n);return e&&qY(e,t,i),i}t.autostart!==!1&&(t.autostart=!0),e=e||this,this._timeout=Number(t.timeout)||0,this._server=e,this._current=[],this._error=null,this._isOnCloseHandlerKey=Symbol("isOnCloseHandler"),this._lastUsed=null,this.setMaxListeners(0),n&&this.once("start",n),this.started=!1,this.booted=!1,this.pluginTree=new $Y,this._readyQ=M0(this,j3,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=K0},this._closeQ=M0(this,iB,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=K0},this._doStart=null,this._root=new ol(this,eB.bind(this),t,!1,0),this._root.once("start",(i,s,o)=>{const l=this.pluginTree.start(null,s,o);this._root.once("loaded",(a,r,d)=>{this.pluginTree.stop(l,d)})}),ol.loadPlugin.call(this,this._root,i=>{Qn("root plugin ready");try{this.emit("preReady"),this._root=null}catch(s){i=i||this._error||s}if(i){if(this._error=i,this._readyQ.length()===0)throw i}else this.booted=!0;this._readyQ.resume()})}function eB(e,t,n){this._doStart=n,t.autostart&&this.start()}jY(Ke,OY);Ke.prototype.start=function(){return this.started=!0,de.nextTick(this._doStart),this};Ke.prototype.override=function(e,t,n){return e};function tB(e){if(e&&typeof e=="object"&&typeof e.default=="function"&&(e=e.default),!(e&&(typeof e=="function"||typeof e.then=="function")))throw new _Y(typeof e);return e}Ke.prototype[Fs]=!0;Ke.prototype.use=function(e,t){return this._lastUsed=this._addPlugin(e,t,!1),this};Ke.prototype._loadRegistered=function(){const e=this._current[0];return!this.started&&!this.booted&&de.nextTick(()=>this._root.q.resume()),e?e.loadedSoFar():Promise.resolve()};Object.defineProperty(Ke.prototype,"then",{get:O3});Ke.prototype._addPlugin=function(e,t,n){if(e=tB(e),t=t||{},this.booted)throw new DY;const i=this._current[0],s=new ol(this,e,t,n);if(s.once("start",(o,l,a)=>{const r=this.pluginTree.start(i.name,l,a);s.once("loaded",(d,u,p)=>{this.pluginTree.stop(r,p)})}),i.loaded)throw new Error(s.name,i.name);return i.enqueue(s,o=>{o&&(this._error=o)}),s};Ke.prototype.after=function(e){if(!e)return this._loadRegistered();this._addPlugin(t.bind(this),{},!0);function t(n,i,s){j3.call(this,e,s)}return this};Ke.prototype.onClose=function(e){if(typeof e!="function")throw new Error("not a function");e[this._isOnCloseHandlerKey]=!0,this._closeQ.unshift(e,t.bind(this));function t(n){n&&(this._error=n)}return this};Ke.prototype.close=function(e){let t;if(e){if(typeof e!="function")throw new hi("close",typeof e)}else t=new Promise(function(n,i){e=function(s){if(s)return i(s);n()}});return this.ready(()=>{this._error=null,this._closeQ.push(e),de.nextTick(this._closeQ.resume.bind(this._closeQ))}),t};Ke.prototype.ready=function(e){if(e){if(typeof e!="function")throw new hi("ready",typeof e);this._readyQ.push(e),queueMicrotask(this.start.bind(this));return}return new Promise((t,n)=>{this._readyQ.push(s),this.start();const i=this._current[0].server;function s(o,l,a){o?n(o):t(i),de.nextTick(a)}})};Ke.prototype.prettyPrint=function(){return this.pluginTree.prittyPrint()};Ke.prototype.toJSON=function(){return this.pluginTree.toJSON()};function K0(){}function O3(){if(this.booted){Qn("thenify returning null because we are already booted");return}if(this[fo]){this[fo]=!1;return}return Qn("thenify"),(e,t)=>this._loadRegistered().then(()=>(this[fo]=!0,e(this._server)),t)}function j3(e,t){const n=this._server,i=this._error;let s;if(this._error=null,e.length===0)this._error=i,s=e(),s&&!s[Fs]&&typeof s.then=="function"?s.then(()=>de.nextTick(t),o=>de.nextTick(t,o)):de.nextTick(t);else if(e.length===1)s=e(i),s&&!s[Fs]&&typeof s.then=="function"?s.then(()=>de.nextTick(t),o=>de.nextTick(t,o)):de.nextTick(t);else if(this._timeout===0){const o=l=>{this._error=l,t(this._error)};e.length===2?e(i,o):e(i,n,o)}else nB.call(this,e,i,n,t)}function nB(e,t,n,i){const s=e.name;Qn("setting up ready timeout",s,this._timeout);let o=setTimeout(()=>{Qn("timed out",s),o=null;const a=new PY(s);a.fn=e,this._error=a,i(a)},this._timeout);e.length===2?e(t,l.bind(this)):e(t,n,l.bind(this));function l(a){o&&(clearTimeout(o),this._error=a,i(this._error))}}function iB(e,t){const n=this._server,i=e[this._isOnCloseHandlerKey];if(e.length===0||e.length===1){let s;i?s=e(n):s=e(this._error),s&&typeof s.then=="function"?(Qn("resolving close/onClose promise"),s.then(()=>de.nextTick(t),o=>de.nextTick(t,o))):de.nextTick(t)}else e.length===2?e(i?n:this._error,t):i?e(n,t):e(this._error,n,t)}function sB(e,t){return n.bind(t);function n(i,s){let o;e.length===0?(o=e(),o&&o.then?o.then(function(){de.nextTick(s)},s):de.nextTick(s)):e.length===1?(o=e(this),o&&o.then?o.then(function(){de.nextTick(s)},s):de.nextTick(s)):e(this,s)}}function Ro(e,t){return n.bind(t);function n(i,s){let o;e?e.length===0?(o=e(),o&&o.then?o.then(function(){de.nextTick(s,i)},s):de.nextTick(s,i)):e.length===1?(o=e(i),o&&o.then?o.then(function(){de.nextTick(s)},s):de.nextTick(s)):e.length===2?e(i,s):e(i,this,s):de.nextTick(s)}}_l.exports=Ke;_l.exports.express=function(e){return Ke(e,{expose:{use:"load"}})};var oB=_l.exports;const lB=BN(oB);(function(){if(window.requestAnimationFrame&&window.cancelAnimationFrame)return;const e=["webkit","moz","ms","o"];for(const t of e)window.requestAnimationFrame=window.requestAnimationFrame||window[`${t}RequestAnimationFrame`],window.cancelAnimationFrame=window.cancelAnimationFrame||window[`${t}CancelAnimationFrame`]||window[`${t}CancelRequestAnimationFrame`];if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){let t=0;const n=!!(window.performance&&window.performance.now);window.requestAnimationFrame=function(i){const s=n?window.performance.now():new Date().getTime(),o=Math.max(0,16-(s-t)),l=window.setTimeout(function(){i(s+o)},o);return t=s+o,l},window.cancelAnimationFrame=clearTimeout}})();function aB(e,t=!0,n=!0,i={friendsTab:"enabled"}){const s=t?"https://grpc-sdk.streamlayer.io:443":"https://grpc-sdk.next.streamlayer.io:443",o=t?"https://grpc.streamlayer.io:443":"https://grpc.next.streamlayer.io:443",l=lB(Object.create({}),{autostart:!1});return l.use(uN,{hideFriends:i.hideFriends,skipOnboarding:i.skipOnboarding,betPack:i.betPack,friendsTab:i.friendsTab,theme:i.theme,themeMode:i.themeMode}),l.use(sN,{onDeepLinkHandled:i==null?void 0:i.onDeepLinkHandled}),l.use(rN,{videoPlayerController:i==null?void 0:i.videoPlayerController}),l.use(dN,{onContentActivate:i==null?void 0:i.onContentActivate,withAd:i==null?void 0:i.withAd,withAdNotification:i==null?void 0:i.withAdNotification}),l.use(ZG,{sdkKey:e,host:s,analyticsHost:o,version:i==null?void 0:i.version,webOS:i==null?void 0:i.webOS}),l.use(FG),l.use(aN),l.use(EN),l.use(PG),l.use(YN),l.after((a,r,d)=>{if(a)throw a;r.ready(),d()}),n&&l.after(async(a,r,d)=>{if(a)throw a;await r.sdk.initializeApp(),d()}),l.onClose(()=>{console.log("close StreamLayer instance")}),l}const rB=({sdkKey:e,plugins:t,production:n,autoEnable:i,onDeepLinkHandled:s,videoPlayerController:o,onContentActivate:l,hideFriends:a,skipOnboarding:r,withAdNotification:d,withAd:u,friendsTab:p,betPack:h,webOS:g})=>{const[A,y]=S.useState(null);return S.useEffect(()=>{let Z=!1;if(!e)return console.error("streamlayer sdk key should be provided"),y(m=>(m!==null&&typeof m.disableApp=="function"&&m.disableApp(),null)),()=>{Z=!0};const b=aB(e,n,i,{version:"1.21.1",onDeepLinkHandled:s,videoPlayerController:o,onContentActivate:l,skipOnboarding:r,withAdNotification:d,withAd:u,hideFriends:a,friendsTab:p,betPack:h,webOS:g});if(t)for(const m of t)b.use(m);return b.ready().then(m=>{Z||(y(m.sdk),typeof window<"u")}).catch(m=>console.log(m)),()=>{Z=!0,b.close(function(m){if(m)throw m})}},[e,n]),A},ra=({event:e,internal:t})=>{const n=Wi(),i=dB();return S.useEffect(()=>(n&&(e&&(n.createEventSession(e,t),i&&(i.current=e)),!e&&(i!=null&&i.current)&&(n.createEventSession("",t),i.current="")),()=>{n&&n.disableApp()}),[e,t,i,n]),null};var _3=(e=>(e[e.UNSET=0]="UNSET",e[e.CONNECTED=1]="CONNECTED",e[e.READY=2]="READY",e))(_3||{});const cB={status:0,sdk:null},js=S.createContext(cB),D3=({sdkKey:e,theme:t,themeMode:n,plugins:i,children:s,event:o,production:l=!0,autoEnable:a=!0,withAdNotification:r,withAd:d=!0,betPack:u=!1,hideFriends:p,skipOnboarding:h,friendsTab:g="enabled",onDeepLinkHandled:A,videoPlayerController:y,onContentActivate:Z,containerId:b,webOS:m})=>{const f=rB({sdkKey:e,plugins:i,production:l,autoEnable:a,onDeepLinkHandled:A,videoPlayerController:y,onContentActivate:Z,hideFriends:p,skipOnboarding:h,withAdNotification:r,withAd:d,friendsTab:g,betPack:u,webOS:m}),C=S.useRef(""),v=S.useMemo(()=>f?{sdk:f,status:2,event:C}:{status:1,sdk:null,event:C},[f]);return S.useEffect(()=>{f&&(f.options.setKey("friendsTab",g),f.options.setKey("theme",t),f.options.setKey("themeMode",n),f.options.setKey("skipOnboarding",h),f.options.setKey("betPack",u),f.options.setKey("containerId",b))},[f,g,t,n,h,u,b]),S.useEffect(()=>()=>{A&&(f==null||f.removeDeepLinkHandler(A)),y&&(f==null||f.removeVideoPlayerController(y))},[f]),S.useEffect(()=>{localStorage.getItem("SL_DEBUG")&&console.log("StreamLayerProvider mounted with props:",{sdkKey:!!e,onDeepLinkHandled:!!A,videoPlayerController:!!y})},[e,A,y]),c.jsxs(js.Provider,{value:v,children:[o!==void 0&&c.jsx(ra,{event:o}),s]})},Wi=()=>{const{sdk:e}=S.useContext(js);return e},dB=()=>{const{event:e}=S.useContext(js);return e},H0=e=>{const t=e.target;t instanceof Element&&t.getAttribute("data-a")==="intr"&&kn.emit("interactions",{action:"tap",payload:{}})},uB=()=>{const e=Wi();return S.useEffect(()=>(document==null||document.addEventListener("click",H0),()=>{document==null||document.removeEventListener("click",H0)}),[]),e?c.jsx(Td,{sdk:e}):null},pB=({sdkKey:e,plugins:t,children:n,event:i,onDeepLinkHandled:s,videoPlayerController:o,production:l=!0})=>c.jsxs(D3,{sdkKey:e,plugins:t,production:l,autoEnable:!0,onDeepLinkHandled:s,videoPlayerController:o,friendsTab:"disabled",skipOnboarding:!0,hideFriends:!0,children:[c.jsx(ra,{event:i}),n]}),hB=({betPack:e,useContainer:t})=>{const{sdk:n,status:i}=S.useContext(js);return i===_3.UNSET?(console.error("Wrap app in `StreamLayerProvider`"),null):n?c.jsx("div",{className:"StreamLayerSDK",children:c.jsx(Kl,{style:{height:"100%"},children:c.jsx(_I,{sdk:n,betPack:e,useContainer:t})})}):null};class mB extends S.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t,n){console.error(t,n.componentStack)}render(){return this.state.hasError?null:c.jsx(hB,{...this.props})}}const gB=({token:e,schema:t})=>{const n=Wi();return S.useEffect(()=>{e&&t&&n&&n.authorizationBypass(t,e),n&&(n.withAuth=!0)},[e,t,n]),null},bB=({event:e,sdkKey:t,token:n,deviceId:i,production:s=!1,theme:o,themeMode:l="light",children:a})=>{const[r,d]=S.useState(!1);return S.useEffect(()=>{n&&(new e3().setToken(n),d(!0))},[n]),S.useEffect(()=>{i&&localStorage.setItem("sl-device-id",i)},[i]),r?c.jsxs(D3,{sdkKey:t,production:s,theme:o,themeMode:l,betPack:!0,friendsTab:"disabled",hideFriends:!0,skipOnboarding:!0,autoEnable:!0,children:[c.jsx(ra,{event:e,internal:!1}),c.jsx("div",{className:"StreamLayerSDK",children:c.jsx(Kl,{children:a})})]}):null},VB=({production:e})=>{const[t,n]=S.useState();return S.useEffect(()=>{const{hostname:i,search:s}=window.location,o=new URLSearchParams(s);n({sdkKey:o.get("_slrk")||"",event:o.get("_slre")||"",token:o.get("_slrt")||"",deviceId:o.get("_slrd")||"",theme:o.get("theme")||"",themeMode:o.get("themeMode")==="dark"?"dark":"light",production:e??!(i.includes("next.")||i==="localhost")})},[e]),t?c.jsx(bB,{...t,children:c.jsx(uB,{})}):null},AB=()=>{const e=Wi();return e?c.jsx("div",{className:"StreamLayerSDK",children:c.jsx(Kl,{children:c.jsx(oF,{sdk:e})})}):null};exports.A=_e;exports.B1=ne;exports.BetPackStandalone=VB;exports.C=BS;exports.C$1=hR;exports.I=zl;exports.InvitationFrom=cs;exports.M=$d;exports.MastersStreamLayerProvider=pB;exports.MastersStreamLayerSDKReact=mB;exports.S=gR;exports.StreamLayerLogin=gB;exports.StreamLayerSDKPoints=AB;exports.T=Pd;exports.cx_default=Me;exports.d=bR;exports.f=Nc;exports.k=jd;exports.l=uR;exports.m=dR;exports.n=Ul;exports.p=aF;exports.s=Kd;exports.styled_default=V;exports.useStore=Ze;exports.useStreamLayer=Wi;exports.useTransition=F5;exports.z=_d;
|
package/lib/dist/es/masters.js
CHANGED
|
@@ -18467,7 +18467,7 @@ const ZB = ({
|
|
|
18467
18467
|
Z = !0;
|
|
18468
18468
|
};
|
|
18469
18469
|
const b = yB(e, n, i, {
|
|
18470
|
-
version: "1.21.
|
|
18470
|
+
version: "1.21.1",
|
|
18471
18471
|
onDeepLinkHandled: s,
|
|
18472
18472
|
videoPlayerController: o,
|
|
18473
18473
|
onContentActivate: l,
|