@jolibox/ads 1.1.38 → 1.1.40
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/dist/components/googlegpt/interstitial.d.ts +3 -2
- package/dist/index.js +212 -207
- package/package.json +3 -3
|
@@ -18,6 +18,7 @@ export declare class InterstitialAdManager {
|
|
|
18
18
|
private adsContext;
|
|
19
19
|
private gamingInterstitialSlot;
|
|
20
20
|
private readyEvent;
|
|
21
|
+
private isRetrying;
|
|
21
22
|
constructor(adUnit: string, project: 'minigame-h5' | 'minidrama-h5' | 'minigame-app' | 'minidrama-app', keyValue?: Record<string, string>);
|
|
22
23
|
withCommand: (...itmes: (() => void)[]) => void;
|
|
23
24
|
/**
|
|
@@ -26,7 +27,7 @@ export declare class InterstitialAdManager {
|
|
|
26
27
|
* The init function will potentially request an ad in the background.
|
|
27
28
|
*/
|
|
28
29
|
private init;
|
|
29
|
-
destroy: (endReason: EndReason) => void;
|
|
30
|
+
destroy: (endReason: EndReason, clearContext?: boolean) => void;
|
|
30
31
|
/**
|
|
31
32
|
* Destroy the interstitial ad and cleans up resources.
|
|
32
33
|
*
|
|
@@ -35,7 +36,7 @@ export declare class InterstitialAdManager {
|
|
|
35
36
|
*
|
|
36
37
|
* @param endReason The reason for ending the ad.
|
|
37
38
|
*/
|
|
38
|
-
reinit: (endReason: EndReason) => void;
|
|
39
|
+
reinit: (endReason: EndReason, clearContext?: boolean) => void;
|
|
39
40
|
private handleSlotReady;
|
|
40
41
|
private handleSlotClosed;
|
|
41
42
|
/**
|
package/dist/index.js
CHANGED
|
@@ -10,8 +10,8 @@ var bt = (t, e) => {
|
|
|
10
10
|
return i;
|
|
11
11
|
};
|
|
12
12
|
import { options as ue, Component as Ri, isValidElement as Oi } from "preact";
|
|
13
|
-
import { useRef as Ti, useLayoutEffect as
|
|
14
|
-
function
|
|
13
|
+
import { useRef as Ti, useLayoutEffect as Ci, useEffect as Ve, useMemo as Di, useState as zt, useCallback as Li, render as re, createRef as _t } from "preact/compat";
|
|
14
|
+
function F(t, e, i) {
|
|
15
15
|
return (e = Pi(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
16
16
|
}
|
|
17
17
|
function Pi(t) {
|
|
@@ -32,7 +32,7 @@ function Ni(t, e) {
|
|
|
32
32
|
}
|
|
33
33
|
class Mi {
|
|
34
34
|
constructor(e) {
|
|
35
|
-
|
|
35
|
+
F(this, "context", void 0), F(this, "continueCallback", void 0), F(this, "adIsShowingCallback", void 0), F(this, "isBeforeAdCalled", !1), F(this, "isBeforeRewardCalled", !1), F(this, "isAdDismissedCalled", !1), F(this, "isAdViewedCalled", !1), F(this, "isAfterAdCalled", !1), F(this, "currentProvider", void 0), F(this, "currentClientParams", void 0), F(this, "adsHasResponse", !1), F(this, "videoChecker", window.document.createElement("video")), F(this, "wrapShowAdFn", (i) => () => {
|
|
36
36
|
var r;
|
|
37
37
|
this.adsHasResponse = !0;
|
|
38
38
|
let n = !1;
|
|
@@ -289,18 +289,18 @@ function Ht(t) {
|
|
|
289
289
|
return n.prototype = e.prototype, n;
|
|
290
290
|
}
|
|
291
291
|
var Zi = ((t) => (t[t.DEVELOPER_FILE_NOT_FOUND = 0] = "DEVELOPER_FILE_NOT_FOUND", t[t.INTERNAL_IOS_CAN_NOT_FOUND_PKG = 1] = "INTERNAL_IOS_CAN_NOT_FOUND_PKG", t[t.USER_IOS_LOAD_TIMEOUT = 2] = "USER_IOS_LOAD_TIMEOUT", t[t.INTERNAL_IOS_PKG_LOAD_ERROR = 3] = "INTERNAL_IOS_PKG_LOAD_ERROR", t[t.INTERNAL_IOS_PKG_PARSE_FAIL = 4] = "INTERNAL_IOS_PKG_PARSE_FAIL", t[t.USER_IOS_GET_EMPTY_DATA = 5] = "USER_IOS_GET_EMPTY_DATA", t[t.USER_ANDROID_GET_PKG_FAIL = 6] = "USER_ANDROID_GET_PKG_FAIL", t[t.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE = 7] = "DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE", t))(Zi || {});
|
|
292
|
-
function
|
|
292
|
+
function ye(t) {
|
|
293
293
|
return function() {
|
|
294
294
|
var e, i;
|
|
295
295
|
((i = (e = globalThis.VConsole) == null ? void 0 : e[t]) != null ? i : globalThis.console[t])(...arguments);
|
|
296
296
|
};
|
|
297
297
|
}
|
|
298
298
|
var en = {
|
|
299
|
-
log:
|
|
300
|
-
warn:
|
|
301
|
-
info:
|
|
302
|
-
error:
|
|
303
|
-
debug:
|
|
299
|
+
log: ye("log"),
|
|
300
|
+
warn: ye("warn"),
|
|
301
|
+
info: ye("info"),
|
|
302
|
+
error: ye("error"),
|
|
303
|
+
debug: ye("debug")
|
|
304
304
|
};
|
|
305
305
|
Object.assign(globalThis, {
|
|
306
306
|
logger: en
|
|
@@ -310,7 +310,7 @@ globalThis[St] || (globalThis[St] = tn);
|
|
|
310
310
|
var Et = Symbol.for("Jolibox.canIUseMap.native"), nn = {};
|
|
311
311
|
globalThis[Et] || (globalThis[Et] = nn);
|
|
312
312
|
var Wt = ((t) => (t[t.Other = 0] = "Other", t[t.Route = 1] = "Route", t[t.Click = 2] = "Click", t[t.View = 3] = "View", t[t.Expose = 4] = "Expose", t[t.Swipe = 5] = "Swipe", t[t.Input = 6] = "Input", t[t.Select = 7] = "Select", t[t.SwitchOn = 8] = "SwitchOn", t[t.SwitchOff = 9] = "SwitchOff", t[t.Submit = 10] = "Submit", t[t.Scroll = 11] = "Scroll", t[t.Hide = 12] = "Hide", t[t.System = 1e3] = "System", t[t.ErrorTrace = 1001] = "ErrorTrace", t[t.UserDefined = 1002] = "UserDefined", t))(Wt || {}), Jt = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(Jt || {}), Yt = ((t) => (t[t.App = 0] = "App", t[t.H5 = 1] = "H5", t[t.Weapp = 2] = "Weapp", t[t.Alipay = 3] = "Alipay", t[t.Gcash = 4] = "Gcash", t[t.Dana = 5] = "Dana", t[t.Umma = 6] = "Umma", t[t.WebSDK = 1e3] = "WebSDK", t[t.AppSDK = 1001] = "AppSDK", t[t.Other = 9999] = "Other", t))(Yt || {}), kt = ["name", "params"], rn = ["name", "type", "location", "target", "extra", "timestamp", "userId"], on = ["platform", "os", "appVersion", "appId", "model", "brand", "uuid", "jsSdkVersion", "extra"];
|
|
313
|
-
function
|
|
313
|
+
function Ce(t, e) {
|
|
314
314
|
return e.map((i) => {
|
|
315
315
|
if (i === "params" && t[i]) {
|
|
316
316
|
let n = t[i];
|
|
@@ -320,14 +320,14 @@ function De(t, e) {
|
|
|
320
320
|
});
|
|
321
321
|
}
|
|
322
322
|
function sn(t) {
|
|
323
|
-
let e = t.location ?
|
|
324
|
-
return
|
|
323
|
+
let e = t.location ? Ce(t.location, kt) : null, i = t.target ? Ce(t.target, kt) : null;
|
|
324
|
+
return Ce(qi(zi({}, t), {
|
|
325
325
|
location: e,
|
|
326
326
|
target: i
|
|
327
327
|
}), rn);
|
|
328
328
|
}
|
|
329
329
|
function an(t) {
|
|
330
|
-
let e = t.events.map((n) => sn(n)), i =
|
|
330
|
+
let e = t.events.map((n) => sn(n)), i = Ce(t.device, on);
|
|
331
331
|
return [t.protocolVersion, e, i, t.project];
|
|
332
332
|
}
|
|
333
333
|
function dn() {
|
|
@@ -452,8 +452,8 @@ var x = tt, ln = class {
|
|
|
452
452
|
if (this._listeners instanceof pe)
|
|
453
453
|
this._listeners.id === l.id && (this._listeners = void 0, this._size = 0, (h = (u = this.options) == null ? void 0 : u.onDidRemoveLastListener) == null || h.call(u));
|
|
454
454
|
else if (this._listeners) {
|
|
455
|
-
let
|
|
456
|
-
|
|
455
|
+
let g = this._listeners.indexOf(l);
|
|
456
|
+
g >= 0 && (this._listeners.splice(g, 1), this._size--, this._size === 0 && ((f = (c = this.options) == null ? void 0 : c.onDidRemoveLastListener) == null || f.call(c)));
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
459
|
};
|
|
@@ -557,7 +557,7 @@ function vn(t, e) {
|
|
|
557
557
|
return t((r) => e(r) && i.call(n, r), null);
|
|
558
558
|
});
|
|
559
559
|
}
|
|
560
|
-
var He = Symbol.for("Jolibox.hostEmitter"),
|
|
560
|
+
var He = Symbol.for("Jolibox.hostEmitter"), gn = () => {
|
|
561
561
|
let t = new cn();
|
|
562
562
|
return globalThis[He] || (globalThis[He] = {
|
|
563
563
|
on: t.on.bind(t),
|
|
@@ -566,8 +566,8 @@ var He = Symbol.for("Jolibox.hostEmitter"), yn = () => {
|
|
|
566
566
|
once: t.once.bind(t)
|
|
567
567
|
}), globalThis[He];
|
|
568
568
|
};
|
|
569
|
-
|
|
570
|
-
function
|
|
569
|
+
gn();
|
|
570
|
+
function yn(t, e) {
|
|
571
571
|
let i = Math.min(t.length, e.length);
|
|
572
572
|
for (let n = 0; n < i; n++)
|
|
573
573
|
pn(t[n], e[n]);
|
|
@@ -602,7 +602,7 @@ var rt = class {
|
|
|
602
602
|
e.handler = function() {
|
|
603
603
|
for (var o = arguments.length, s = new Array(o), a = 0; a < o; a++)
|
|
604
604
|
s[a] = arguments[a];
|
|
605
|
-
return
|
|
605
|
+
return yn(s, n), r(...s);
|
|
606
606
|
};
|
|
607
607
|
}
|
|
608
608
|
let {
|
|
@@ -835,9 +835,9 @@ class kn {
|
|
|
835
835
|
}
|
|
836
836
|
this.push(n);
|
|
837
837
|
}), X(this, "adUnit", async (n) => {
|
|
838
|
-
var
|
|
838
|
+
var g, v, w, y;
|
|
839
839
|
if (this.context.track("CallAdUnit", {
|
|
840
|
-
adFormat: (v = (
|
|
840
|
+
adFormat: (v = (g = n.adFormat) == null ? void 0 : g.toString()) != null ? v : null,
|
|
841
841
|
fullWidthResponsive: (w = n.fullWidthResponsive) != null ? w : null
|
|
842
842
|
}), document.querySelector("#jolibox-ads")) {
|
|
843
843
|
console.warn("Ad unit already set, skipping");
|
|
@@ -859,7 +859,7 @@ class kn {
|
|
|
859
859
|
if (u || (u = this.initParams.unitId), !u)
|
|
860
860
|
throw new Error("slot is required");
|
|
861
861
|
const h = typeof s == "object" && Array.isArray(s) ? s.join(", ") : s, c = document.createElement("ins");
|
|
862
|
-
if (c.className = "adsbygoogle", c.id = "jolibox-ads", c.style.display = "block", c.setAttribute("data-ad-client", this.initParams.clientId), c.setAttribute("data-ad-slot", u), h && c.setAttribute("data-ad-format", h), a && c.setAttribute("data-full-width-responsive", a), d && c.setAttribute("style", d), (
|
|
862
|
+
if (c.className = "adsbygoogle", c.id = "jolibox-ads", c.style.display = "block", c.setAttribute("data-ad-client", this.initParams.clientId), c.setAttribute("data-ad-slot", u), h && c.setAttribute("data-ad-format", h), a && c.setAttribute("data-full-width-responsive", a), d && c.setAttribute("style", d), (y = this.contextInfo.testAdsMode) != null ? y : !1) {
|
|
863
863
|
const p = document.createElement("div");
|
|
864
864
|
p.style.position = "absolute", p.style.top = "0", p.style.left = "0", p.style.width = "100%", p.style.height = "100%", p.style.display = "flex", p.style.justifyContent = "center", p.style.alignItems = "center", p.style.backgroundColor = "rgba(0, 0, 0, 0.5)", p.style.color = "white", p.innerHTML = "Test Ad", c.style.position = "relative", l.appendChild(c), c.appendChild(p);
|
|
865
865
|
} else
|
|
@@ -931,9 +931,9 @@ var Rn = /* @__PURE__ */ function() {
|
|
|
931
931
|
return (r = n.parentNode) == null ? void 0 : r.removeChild(n);
|
|
932
932
|
}), this.tags = [], this.ctr = 0;
|
|
933
933
|
}, t;
|
|
934
|
-
}(), M = "-ms-", je = "-moz-", A = "-webkit-", Zt = "comm", ht = "rule", ft = "decl", On = "@import", ei = "@keyframes", Tn = "@layer",
|
|
934
|
+
}(), M = "-ms-", je = "-moz-", A = "-webkit-", Zt = "comm", ht = "rule", ft = "decl", On = "@import", ei = "@keyframes", Tn = "@layer", Cn = Math.abs, Ge = String.fromCharCode, Dn = Object.assign;
|
|
935
935
|
function Ln(t, e) {
|
|
936
|
-
return
|
|
936
|
+
return D(t, 0) ^ 45 ? (((e << 2 ^ D(t, 0)) << 2 ^ D(t, 1)) << 2 ^ D(t, 2)) << 2 ^ D(t, 3) : 0;
|
|
937
937
|
}
|
|
938
938
|
function ti(t) {
|
|
939
939
|
return t.trim();
|
|
@@ -947,7 +947,7 @@ function m(t, e, i) {
|
|
|
947
947
|
function ot(t, e) {
|
|
948
948
|
return t.indexOf(e);
|
|
949
949
|
}
|
|
950
|
-
function
|
|
950
|
+
function D(t, e) {
|
|
951
951
|
return t.charCodeAt(e) | 0;
|
|
952
952
|
}
|
|
953
953
|
function Se(t, e, i) {
|
|
@@ -965,27 +965,27 @@ function Te(t, e) {
|
|
|
965
965
|
function Nn(t, e) {
|
|
966
966
|
return t.map(e).join("");
|
|
967
967
|
}
|
|
968
|
-
var ze = 1, ce = 1, ii = 0,
|
|
968
|
+
var ze = 1, ce = 1, ii = 0, B = 0, R = 0, he = "";
|
|
969
969
|
function qe(t, e, i, n, r, o, s) {
|
|
970
970
|
return { value: t, root: e, parent: i, type: n, props: r, children: o, line: ze, column: ce, length: s, return: "" };
|
|
971
971
|
}
|
|
972
972
|
function we(t, e) {
|
|
973
|
-
return
|
|
973
|
+
return Dn(qe("", null, null, "", null, null, 0), t, { length: -t.length }, e);
|
|
974
974
|
}
|
|
975
975
|
function Mn() {
|
|
976
976
|
return R;
|
|
977
977
|
}
|
|
978
978
|
function $n() {
|
|
979
|
-
return R =
|
|
979
|
+
return R = B > 0 ? D(he, --B) : 0, ce--, R === 10 && (ce = 1, ze--), R;
|
|
980
980
|
}
|
|
981
981
|
function G() {
|
|
982
|
-
return R =
|
|
982
|
+
return R = B < ii ? D(he, B++) : 0, ce++, R === 10 && (ce = 1, ze++), R;
|
|
983
983
|
}
|
|
984
984
|
function Y() {
|
|
985
|
-
return
|
|
985
|
+
return D(he, B);
|
|
986
986
|
}
|
|
987
|
-
function
|
|
988
|
-
return
|
|
987
|
+
function De() {
|
|
988
|
+
return B;
|
|
989
989
|
}
|
|
990
990
|
function ke(t, e) {
|
|
991
991
|
return Se(he, t, e);
|
|
@@ -1023,13 +1023,13 @@ function Ee(t) {
|
|
|
1023
1023
|
return 0;
|
|
1024
1024
|
}
|
|
1025
1025
|
function ni(t) {
|
|
1026
|
-
return ze = ce = 1, ii = J(he = t),
|
|
1026
|
+
return ze = ce = 1, ii = J(he = t), B = 0, [];
|
|
1027
1027
|
}
|
|
1028
1028
|
function ri(t) {
|
|
1029
1029
|
return he = "", t;
|
|
1030
1030
|
}
|
|
1031
1031
|
function Le(t) {
|
|
1032
|
-
return ti(ke(
|
|
1032
|
+
return ti(ke(B - 1, st(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
|
|
1033
1033
|
}
|
|
1034
1034
|
function jn(t) {
|
|
1035
1035
|
for (; (R = Y()) && R < 33; )
|
|
@@ -1039,13 +1039,13 @@ function jn(t) {
|
|
|
1039
1039
|
function Un(t, e) {
|
|
1040
1040
|
for (; --e && G() && !(R < 48 || R > 102 || R > 57 && R < 65 || R > 70 && R < 97); )
|
|
1041
1041
|
;
|
|
1042
|
-
return ke(t,
|
|
1042
|
+
return ke(t, De() + (e < 6 && Y() == 32 && G() == 32));
|
|
1043
1043
|
}
|
|
1044
1044
|
function st(t) {
|
|
1045
1045
|
for (; G(); )
|
|
1046
1046
|
switch (R) {
|
|
1047
1047
|
case t:
|
|
1048
|
-
return
|
|
1048
|
+
return B;
|
|
1049
1049
|
case 34:
|
|
1050
1050
|
case 39:
|
|
1051
1051
|
t !== 34 && t !== 39 && st(R);
|
|
@@ -1057,28 +1057,28 @@ function st(t) {
|
|
|
1057
1057
|
G();
|
|
1058
1058
|
break;
|
|
1059
1059
|
}
|
|
1060
|
-
return
|
|
1060
|
+
return B;
|
|
1061
1061
|
}
|
|
1062
1062
|
function Bn(t, e) {
|
|
1063
1063
|
for (; G() && t + R !== 57; )
|
|
1064
1064
|
if (t + R === 84 && Y() === 47)
|
|
1065
1065
|
break;
|
|
1066
|
-
return "/*" + ke(e,
|
|
1066
|
+
return "/*" + ke(e, B - 1) + "*" + Ge(t === 47 ? t : G());
|
|
1067
1067
|
}
|
|
1068
1068
|
function Fn(t) {
|
|
1069
1069
|
for (; !Ee(Y()); )
|
|
1070
1070
|
G();
|
|
1071
|
-
return ke(t,
|
|
1071
|
+
return ke(t, B);
|
|
1072
1072
|
}
|
|
1073
1073
|
function Vn(t) {
|
|
1074
1074
|
return ri(Pe("", null, null, null, [""], t = ni(t), 0, [0], t));
|
|
1075
1075
|
}
|
|
1076
1076
|
function Pe(t, e, i, n, r, o, s, a, d) {
|
|
1077
|
-
for (var l = 0, u = 0, h = s, c = 0, f = 0,
|
|
1078
|
-
switch (
|
|
1077
|
+
for (var l = 0, u = 0, h = s, c = 0, f = 0, g = 0, v = 1, w = 1, y = 1, p = 0, b = "", j = r, P = o, z = n, E = b; w; )
|
|
1078
|
+
switch (g = p, p = G()) {
|
|
1079
1079
|
case 40:
|
|
1080
|
-
if (
|
|
1081
|
-
ot(E += m(Le(p), "&", "&\f"), "&\f") != -1 && (
|
|
1080
|
+
if (g != 108 && D(E, h - 1) == 58) {
|
|
1081
|
+
ot(E += m(Le(p), "&", "&\f"), "&\f") != -1 && (y = -1);
|
|
1082
1082
|
break;
|
|
1083
1083
|
}
|
|
1084
1084
|
case 34:
|
|
@@ -1090,23 +1090,23 @@ function Pe(t, e, i, n, r, o, s, a, d) {
|
|
|
1090
1090
|
case 10:
|
|
1091
1091
|
case 13:
|
|
1092
1092
|
case 32:
|
|
1093
|
-
E += jn(
|
|
1093
|
+
E += jn(g);
|
|
1094
1094
|
break;
|
|
1095
1095
|
case 92:
|
|
1096
|
-
E += Un(
|
|
1096
|
+
E += Un(De() - 1, 7);
|
|
1097
1097
|
continue;
|
|
1098
1098
|
case 47:
|
|
1099
1099
|
switch (Y()) {
|
|
1100
1100
|
case 42:
|
|
1101
1101
|
case 47:
|
|
1102
|
-
Te(Gn(Bn(G(),
|
|
1102
|
+
Te(Gn(Bn(G(), De()), e, i), d);
|
|
1103
1103
|
break;
|
|
1104
1104
|
default:
|
|
1105
1105
|
E += "/";
|
|
1106
1106
|
}
|
|
1107
1107
|
break;
|
|
1108
1108
|
case 123 * v:
|
|
1109
|
-
a[l++] = J(E) *
|
|
1109
|
+
a[l++] = J(E) * y;
|
|
1110
1110
|
case 125 * v:
|
|
1111
1111
|
case 59:
|
|
1112
1112
|
case 0:
|
|
@@ -1115,7 +1115,7 @@ function Pe(t, e, i, n, r, o, s, a, d) {
|
|
|
1115
1115
|
case 125:
|
|
1116
1116
|
w = 0;
|
|
1117
1117
|
case 59 + u:
|
|
1118
|
-
|
|
1118
|
+
y == -1 && (E = m(E, /\f/g, "")), f > 0 && J(E) - h && Te(f > 32 ? Rt(E + ";", n, i, h - 1) : Rt(m(E, " ", "") + ";", n, i, h - 2), d);
|
|
1119
1119
|
break;
|
|
1120
1120
|
case 59:
|
|
1121
1121
|
E += ";";
|
|
@@ -1124,7 +1124,7 @@ function Pe(t, e, i, n, r, o, s, a, d) {
|
|
|
1124
1124
|
if (u === 0)
|
|
1125
1125
|
Pe(E, e, z, z, j, o, h, a, P);
|
|
1126
1126
|
else
|
|
1127
|
-
switch (c === 99 &&
|
|
1127
|
+
switch (c === 99 && D(E, 3) === 110 ? 100 : c) {
|
|
1128
1128
|
case 100:
|
|
1129
1129
|
case 108:
|
|
1130
1130
|
case 109:
|
|
@@ -1135,10 +1135,10 @@ function Pe(t, e, i, n, r, o, s, a, d) {
|
|
|
1135
1135
|
Pe(E, z, z, z, [""], P, 0, a, P);
|
|
1136
1136
|
}
|
|
1137
1137
|
}
|
|
1138
|
-
l = u = f = 0, v =
|
|
1138
|
+
l = u = f = 0, v = y = 1, b = E = "", h = s;
|
|
1139
1139
|
break;
|
|
1140
1140
|
case 58:
|
|
1141
|
-
h = 1 + J(E), f =
|
|
1141
|
+
h = 1 + J(E), f = g;
|
|
1142
1142
|
default:
|
|
1143
1143
|
if (v < 1) {
|
|
1144
1144
|
if (p == 123)
|
|
@@ -1148,24 +1148,24 @@ function Pe(t, e, i, n, r, o, s, a, d) {
|
|
|
1148
1148
|
}
|
|
1149
1149
|
switch (E += Ge(p), p * v) {
|
|
1150
1150
|
case 38:
|
|
1151
|
-
|
|
1151
|
+
y = u > 0 ? 1 : (E += "\f", -1);
|
|
1152
1152
|
break;
|
|
1153
1153
|
case 44:
|
|
1154
|
-
a[l++] = (J(E) - 1) *
|
|
1154
|
+
a[l++] = (J(E) - 1) * y, y = 1;
|
|
1155
1155
|
break;
|
|
1156
1156
|
case 64:
|
|
1157
|
-
Y() === 45 && (E += Le(G())), c = Y(), u = h = J(b = E += Fn(
|
|
1157
|
+
Y() === 45 && (E += Le(G())), c = Y(), u = h = J(b = E += Fn(De())), p++;
|
|
1158
1158
|
break;
|
|
1159
1159
|
case 45:
|
|
1160
|
-
|
|
1160
|
+
g === 45 && J(E) == 2 && (v = 0);
|
|
1161
1161
|
}
|
|
1162
1162
|
}
|
|
1163
1163
|
return o;
|
|
1164
1164
|
}
|
|
1165
1165
|
function xt(t, e, i, n, r, o, s, a, d, l, u) {
|
|
1166
|
-
for (var h = r - 1, c = r === 0 ? o : [""], f = vt(c),
|
|
1167
|
-
for (var
|
|
1168
|
-
(b = ti(v > 0 ? c[
|
|
1166
|
+
for (var h = r - 1, c = r === 0 ? o : [""], f = vt(c), g = 0, v = 0, w = 0; g < n; ++g)
|
|
1167
|
+
for (var y = 0, p = Se(t, h + 1, h = Cn(v = s[g])), b = t; y < f; ++y)
|
|
1168
|
+
(b = ti(v > 0 ? c[y] + " " + p : m(p, /&\f/g, c[y]))) && (d[w++] = b);
|
|
1169
1169
|
return qe(t, e, i, r === 0 ? ht : a, d, l, u);
|
|
1170
1170
|
}
|
|
1171
1171
|
function Gn(t, e, i) {
|
|
@@ -1218,13 +1218,13 @@ function Hn(t) {
|
|
|
1218
1218
|
var Wn = function(e, i, n) {
|
|
1219
1219
|
for (var r = 0, o = 0; r = o, o = Y(), r === 38 && o === 12 && (i[n] = 1), !Ee(o); )
|
|
1220
1220
|
G();
|
|
1221
|
-
return ke(e,
|
|
1221
|
+
return ke(e, B);
|
|
1222
1222
|
}, Jn = function(e, i) {
|
|
1223
1223
|
var n = -1, r = 44;
|
|
1224
1224
|
do
|
|
1225
1225
|
switch (Ee(r)) {
|
|
1226
1226
|
case 0:
|
|
1227
|
-
r === 38 && Y() === 12 && (i[n] = 1), e[n] += Wn(
|
|
1227
|
+
r === 38 && Y() === 12 && (i[n] = 1), e[n] += Wn(B - 1, i, n);
|
|
1228
1228
|
break;
|
|
1229
1229
|
case 2:
|
|
1230
1230
|
e[n] += Le(r);
|
|
@@ -1343,29 +1343,29 @@ function oi(t, e) {
|
|
|
1343
1343
|
case 5021:
|
|
1344
1344
|
case 4765:
|
|
1345
1345
|
if (J(t) - 1 - e > 6)
|
|
1346
|
-
switch (
|
|
1346
|
+
switch (D(t, e + 1)) {
|
|
1347
1347
|
case 109:
|
|
1348
|
-
if (
|
|
1348
|
+
if (D(t, e + 4) !== 45)
|
|
1349
1349
|
break;
|
|
1350
1350
|
case 102:
|
|
1351
|
-
return m(t, /(.+:)(.+)-([^]+)/, "$1" + A + "$2-$3$1" + je + (
|
|
1351
|
+
return m(t, /(.+:)(.+)-([^]+)/, "$1" + A + "$2-$3$1" + je + (D(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
|
|
1352
1352
|
case 115:
|
|
1353
1353
|
return ~ot(t, "stretch") ? oi(m(t, "stretch", "fill-available"), e) + t : t;
|
|
1354
1354
|
}
|
|
1355
1355
|
break;
|
|
1356
1356
|
case 4949:
|
|
1357
|
-
if (
|
|
1357
|
+
if (D(t, e + 1) !== 115)
|
|
1358
1358
|
break;
|
|
1359
1359
|
case 6444:
|
|
1360
|
-
switch (
|
|
1360
|
+
switch (D(t, J(t) - 3 - (~ot(t, "!important") && 10))) {
|
|
1361
1361
|
case 107:
|
|
1362
1362
|
return m(t, ":", ":" + A) + t;
|
|
1363
1363
|
case 101:
|
|
1364
|
-
return m(t, /(.+:)([^;!]+)(;|!.+)?/, "$1" + A + (
|
|
1364
|
+
return m(t, /(.+:)([^;!]+)(;|!.+)?/, "$1" + A + (D(t, 14) === 45 ? "inline-" : "") + "box$3$1" + A + "$2$3$1" + M + "$2box$3") + t;
|
|
1365
1365
|
}
|
|
1366
1366
|
break;
|
|
1367
1367
|
case 5936:
|
|
1368
|
-
switch (
|
|
1368
|
+
switch (D(t, e + 11)) {
|
|
1369
1369
|
case 114:
|
|
1370
1370
|
return A + t + M + m(t, /[svh]\w+-[tblr]{2}/, "tb") + t;
|
|
1371
1371
|
case 108:
|
|
@@ -1423,8 +1423,8 @@ var Zn = function(e, i, n, r) {
|
|
|
1423
1423
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
1424
1424
|
document.querySelectorAll('style[data-emotion^="' + i + ' "]'),
|
|
1425
1425
|
function(v) {
|
|
1426
|
-
for (var w = v.getAttribute("data-emotion").split(" "),
|
|
1427
|
-
o[w[
|
|
1426
|
+
for (var w = v.getAttribute("data-emotion").split(" "), y = 1; y < w.length; y++)
|
|
1427
|
+
o[w[y]] = !0;
|
|
1428
1428
|
a.push(v);
|
|
1429
1429
|
}
|
|
1430
1430
|
);
|
|
@@ -1435,11 +1435,11 @@ var Zn = function(e, i, n, r) {
|
|
|
1435
1435
|
})], c = qn(l.concat(r, h)), f = function(w) {
|
|
1436
1436
|
return le(Vn(w), c);
|
|
1437
1437
|
};
|
|
1438
|
-
d = function(w,
|
|
1439
|
-
u = p, f(w ? w + "{" +
|
|
1438
|
+
d = function(w, y, p, b) {
|
|
1439
|
+
u = p, f(w ? w + "{" + y.styles + "}" : y.styles), b && (g.inserted[y.name] = !0);
|
|
1440
1440
|
};
|
|
1441
1441
|
}
|
|
1442
|
-
var
|
|
1442
|
+
var g = {
|
|
1443
1443
|
key: i,
|
|
1444
1444
|
sheet: new Rn({
|
|
1445
1445
|
key: i,
|
|
@@ -1454,7 +1454,7 @@ var Zn = function(e, i, n, r) {
|
|
|
1454
1454
|
registered: {},
|
|
1455
1455
|
insert: d
|
|
1456
1456
|
};
|
|
1457
|
-
return
|
|
1457
|
+
return g.sheet.hydrate(a), g;
|
|
1458
1458
|
};
|
|
1459
1459
|
function ir(t) {
|
|
1460
1460
|
for (var e = 0, i, n = 0, r = t.length; r >= 4; ++n, r -= 4)
|
|
@@ -1530,7 +1530,7 @@ var nr = {
|
|
|
1530
1530
|
return e != null && typeof e != "boolean";
|
|
1531
1531
|
}, Je = /* @__PURE__ */ Hn(function(t) {
|
|
1532
1532
|
return si(t) ? t : t.replace(rr, "-$&").toLowerCase();
|
|
1533
|
-
}),
|
|
1533
|
+
}), Ct = function(e, i) {
|
|
1534
1534
|
switch (e) {
|
|
1535
1535
|
case "animation":
|
|
1536
1536
|
case "animationName":
|
|
@@ -1594,10 +1594,10 @@ function sr(t, e, i) {
|
|
|
1594
1594
|
var s = i[o];
|
|
1595
1595
|
if (typeof s != "object") {
|
|
1596
1596
|
var a = s;
|
|
1597
|
-
e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" : Tt(a) && (n += Je(o) + ":" +
|
|
1597
|
+
e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" : Tt(a) && (n += Je(o) + ":" + Ct(o, a) + ";");
|
|
1598
1598
|
} else if (Array.isArray(s) && typeof s[0] == "string" && (e == null || e[s[0]] === void 0))
|
|
1599
1599
|
for (var d = 0; d < s.length; d++)
|
|
1600
|
-
Tt(s[d]) && (n += Je(o) + ":" +
|
|
1600
|
+
Tt(s[d]) && (n += Je(o) + ":" + Ct(o, s[d]) + ";");
|
|
1601
1601
|
else {
|
|
1602
1602
|
var l = Ue(t, e, s);
|
|
1603
1603
|
switch (o) {
|
|
@@ -1613,7 +1613,7 @@ function sr(t, e, i) {
|
|
|
1613
1613
|
}
|
|
1614
1614
|
return n;
|
|
1615
1615
|
}
|
|
1616
|
-
var
|
|
1616
|
+
var Dt = /label:\s*([^\s;{]+)\s*(;|$)/g, ie;
|
|
1617
1617
|
function Ye(t, e, i) {
|
|
1618
1618
|
if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
|
|
1619
1619
|
return t[0];
|
|
@@ -1631,8 +1631,8 @@ function Ye(t, e, i) {
|
|
|
1631
1631
|
var d = o;
|
|
1632
1632
|
r += d[a];
|
|
1633
1633
|
}
|
|
1634
|
-
|
|
1635
|
-
for (var l = "", u; (u =
|
|
1634
|
+
Dt.lastIndex = 0;
|
|
1635
|
+
for (var l = "", u; (u = Dt.exec(r)) !== null; )
|
|
1636
1636
|
l += "-" + u[1];
|
|
1637
1637
|
var h = ir(r) + l;
|
|
1638
1638
|
return {
|
|
@@ -1754,7 +1754,7 @@ function hr(t, e) {
|
|
|
1754
1754
|
}
|
|
1755
1755
|
function li(t, e) {
|
|
1756
1756
|
var i = hr(at++, 7);
|
|
1757
|
-
return
|
|
1757
|
+
return gr(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
|
|
1758
1758
|
}
|
|
1759
1759
|
function fr() {
|
|
1760
1760
|
for (var t; t = di.shift(); )
|
|
@@ -1819,12 +1819,12 @@ function dt(t) {
|
|
|
1819
1819
|
var e = V;
|
|
1820
1820
|
t.__c = t.__(), V = e;
|
|
1821
1821
|
}
|
|
1822
|
-
function
|
|
1822
|
+
function gr(t, e) {
|
|
1823
1823
|
return !t || t.length !== e.length || e.some(function(i, n) {
|
|
1824
1824
|
return i !== t[n];
|
|
1825
1825
|
});
|
|
1826
1826
|
}
|
|
1827
|
-
var
|
|
1827
|
+
var yr = Symbol.for("preact-signals");
|
|
1828
1828
|
function Ke() {
|
|
1829
1829
|
if (ne > 1)
|
|
1830
1830
|
ne--;
|
|
@@ -1869,7 +1869,7 @@ function ui(t) {
|
|
|
1869
1869
|
function L(t) {
|
|
1870
1870
|
this.v = t, this.i = 0, this.n = void 0, this.t = void 0;
|
|
1871
1871
|
}
|
|
1872
|
-
L.prototype.brand =
|
|
1872
|
+
L.prototype.brand = yr;
|
|
1873
1873
|
L.prototype.h = function() {
|
|
1874
1874
|
return !0;
|
|
1875
1875
|
};
|
|
@@ -2015,13 +2015,13 @@ function vi(t) {
|
|
|
2015
2015
|
try {
|
|
2016
2016
|
e();
|
|
2017
2017
|
} catch (n) {
|
|
2018
|
-
throw t.f &= -2, t.f |= 8,
|
|
2018
|
+
throw t.f &= -2, t.f |= 8, gt(t), n;
|
|
2019
2019
|
} finally {
|
|
2020
2020
|
k = i, Ke();
|
|
2021
2021
|
}
|
|
2022
2022
|
}
|
|
2023
2023
|
}
|
|
2024
|
-
function
|
|
2024
|
+
function gt(t) {
|
|
2025
2025
|
for (var e = t.s; e !== void 0; e = e.n)
|
|
2026
2026
|
e.S.U(e);
|
|
2027
2027
|
t.x = void 0, t.s = void 0, vi(t);
|
|
@@ -2029,7 +2029,7 @@ function yt(t) {
|
|
|
2029
2029
|
function pr(t) {
|
|
2030
2030
|
if (k !== this)
|
|
2031
2031
|
throw new Error("Out-of-order effect");
|
|
2032
|
-
fi(this), k = t, this.f &= -2, 8 & this.f &&
|
|
2032
|
+
fi(this), k = t, this.f &= -2, 8 & this.f && gt(this), Ke();
|
|
2033
2033
|
}
|
|
2034
2034
|
function Ie(t) {
|
|
2035
2035
|
this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
|
|
@@ -2056,7 +2056,7 @@ Ie.prototype.N = function() {
|
|
|
2056
2056
|
2 & this.f || (this.f |= 2, this.o = _e, _e = this);
|
|
2057
2057
|
};
|
|
2058
2058
|
Ie.prototype.d = function() {
|
|
2059
|
-
this.f |= 8, 1 & this.f ||
|
|
2059
|
+
this.f |= 8, 1 & this.f || gt(this);
|
|
2060
2060
|
};
|
|
2061
2061
|
function xe(t) {
|
|
2062
2062
|
var e = new Ie(t);
|
|
@@ -2067,11 +2067,11 @@ function xe(t) {
|
|
|
2067
2067
|
}
|
|
2068
2068
|
return e.d.bind(e);
|
|
2069
2069
|
}
|
|
2070
|
-
var
|
|
2070
|
+
var gi, Qe, yi = [];
|
|
2071
2071
|
xe(function() {
|
|
2072
|
-
|
|
2072
|
+
gi = this.N;
|
|
2073
2073
|
})();
|
|
2074
|
-
function
|
|
2074
|
+
function ge(t, e) {
|
|
2075
2075
|
ue[t] = e.bind(null, ue[t] || function() {
|
|
2076
2076
|
});
|
|
2077
2077
|
}
|
|
@@ -2108,7 +2108,7 @@ pi.displayName = "_st";
|
|
|
2108
2108
|
Object.defineProperties(L.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: pi }, props: { configurable: !0, get: function() {
|
|
2109
2109
|
return { data: this };
|
|
2110
2110
|
} }, __b: { configurable: !0, value: 1 } });
|
|
2111
|
-
|
|
2111
|
+
ge("__b", function(t, e) {
|
|
2112
2112
|
if (typeof e.type == "string") {
|
|
2113
2113
|
var i, n = e.props;
|
|
2114
2114
|
for (var r in n)
|
|
@@ -2119,7 +2119,7 @@ ye("__b", function(t, e) {
|
|
|
2119
2119
|
}
|
|
2120
2120
|
t(e);
|
|
2121
2121
|
});
|
|
2122
|
-
|
|
2122
|
+
ge("__r", function(t, e) {
|
|
2123
2123
|
Fe();
|
|
2124
2124
|
var i, n = e.__c;
|
|
2125
2125
|
n && (n.__$f &= -2, (i = n.__$u) === void 0 && (n.__$u = i = function(r) {
|
|
@@ -2131,10 +2131,10 @@ ye("__r", function(t, e) {
|
|
|
2131
2131
|
}, o;
|
|
2132
2132
|
}())), Fe(i), t(e);
|
|
2133
2133
|
});
|
|
2134
|
-
|
|
2134
|
+
ge("__e", function(t, e, i, n) {
|
|
2135
2135
|
Fe(), t(e, i, n);
|
|
2136
2136
|
});
|
|
2137
|
-
|
|
2137
|
+
ge("diffed", function(t, e) {
|
|
2138
2138
|
Fe();
|
|
2139
2139
|
var i;
|
|
2140
2140
|
if (typeof e.type == "string" && (i = e.__e)) {
|
|
@@ -2166,7 +2166,7 @@ function wr(t, e, i, n) {
|
|
|
2166
2166
|
n[e] !== s && (n[e] = s, r ? t[e] = s : s ? t.setAttribute(e, s) : t.removeAttribute(e));
|
|
2167
2167
|
}) };
|
|
2168
2168
|
}
|
|
2169
|
-
|
|
2169
|
+
ge("unmount", function(t, e) {
|
|
2170
2170
|
if (typeof e.type == "string") {
|
|
2171
2171
|
var i = e.__e;
|
|
2172
2172
|
if (i) {
|
|
@@ -2188,7 +2188,7 @@ ye("unmount", function(t, e) {
|
|
|
2188
2188
|
}
|
|
2189
2189
|
t(e);
|
|
2190
2190
|
});
|
|
2191
|
-
|
|
2191
|
+
ge("__h", function(t, e, i, n) {
|
|
2192
2192
|
(n < 3 || n === 9) && (e.__$f |= 2), t(e, i, n);
|
|
2193
2193
|
});
|
|
2194
2194
|
Ri.prototype.shouldComponentUpdate = function(t, e) {
|
|
@@ -2221,12 +2221,12 @@ var br = function(t) {
|
|
|
2221
2221
|
};
|
|
2222
2222
|
function _r() {
|
|
2223
2223
|
O(function() {
|
|
2224
|
-
for (var t; t =
|
|
2225
|
-
|
|
2224
|
+
for (var t; t = yi.shift(); )
|
|
2225
|
+
gi.call(t);
|
|
2226
2226
|
});
|
|
2227
2227
|
}
|
|
2228
2228
|
function bi() {
|
|
2229
|
-
|
|
2229
|
+
yi.push(this) === 1 && (ue.requestAnimationFrame || br)(_r);
|
|
2230
2230
|
}
|
|
2231
2231
|
const $ = fe`
|
|
2232
2232
|
inset: 0;
|
|
@@ -2249,7 +2249,7 @@ const $ = fe`
|
|
|
2249
2249
|
`;
|
|
2250
2250
|
function Ar(t, e) {
|
|
2251
2251
|
const i = Ti(t);
|
|
2252
|
-
|
|
2252
|
+
Ci(() => {
|
|
2253
2253
|
i.current = t;
|
|
2254
2254
|
}, [t]), Ve(() => {
|
|
2255
2255
|
if (e === null)
|
|
@@ -2520,7 +2520,7 @@ const Sr = fe`
|
|
|
2520
2520
|
src: a,
|
|
2521
2521
|
mode: d
|
|
2522
2522
|
};
|
|
2523
|
-
},
|
|
2523
|
+
}, Cr = fe`
|
|
2524
2524
|
${$}
|
|
2525
2525
|
position: fixed;
|
|
2526
2526
|
z-index: 2147483647;
|
|
@@ -2553,9 +2553,9 @@ const Sr = fe`
|
|
|
2553
2553
|
countdown: d,
|
|
2554
2554
|
src: l,
|
|
2555
2555
|
mode: u
|
|
2556
|
-
} = e, h =
|
|
2557
|
-
var
|
|
2558
|
-
a.value = !1, w === "dismiss" ? (
|
|
2556
|
+
} = e, h = Di(() => Or(), []), [c, f] = zt(!1), g = (w) => {
|
|
2557
|
+
var y, p, b, j;
|
|
2558
|
+
a.value = !1, w === "dismiss" ? (y = n.value) == null || y.call(n) : w === "viewed" && ((p = r.value) == null || p.call(r)), (b = i.value) == null || b.call(i), (j = o.value) == null || j.call(o), f(!1);
|
|
2559
2559
|
}, v = Li(() => {
|
|
2560
2560
|
var w;
|
|
2561
2561
|
c || (f(!0), (w = s.value) == null || w.call(s));
|
|
@@ -2565,10 +2565,10 @@ const Sr = fe`
|
|
|
2565
2565
|
h.startTimer();
|
|
2566
2566
|
}, 100);
|
|
2567
2567
|
}, [c, u.value]), a.value ? _("div", {
|
|
2568
|
-
className:
|
|
2568
|
+
className: Cr,
|
|
2569
2569
|
children: [_(Tr, {
|
|
2570
2570
|
mode: u.value,
|
|
2571
|
-
onClose:
|
|
2571
|
+
onClose: g,
|
|
2572
2572
|
countdown: d.value,
|
|
2573
2573
|
state: h
|
|
2574
2574
|
}), a.value && _("iframe", {
|
|
@@ -2579,9 +2579,9 @@ const Sr = fe`
|
|
|
2579
2579
|
}) : null;
|
|
2580
2580
|
};
|
|
2581
2581
|
function Q(t, e, i) {
|
|
2582
|
-
return (e =
|
|
2582
|
+
return (e = Dr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2583
2583
|
}
|
|
2584
|
-
function
|
|
2584
|
+
function Dr(t) {
|
|
2585
2585
|
var e = Lr(t, "string");
|
|
2586
2586
|
return typeof e == "symbol" ? e : e + "";
|
|
2587
2587
|
}
|
|
@@ -2678,30 +2678,30 @@ class Pr {
|
|
|
2678
2678
|
breakStatus: "ignored"
|
|
2679
2679
|
}), this.lastUnDisplayedAdBreak = null), (l = e.beforeAd) == null || l.call(e);
|
|
2680
2680
|
const h = () => {
|
|
2681
|
-
var
|
|
2682
|
-
this.adsIsShowing = !1, (
|
|
2681
|
+
var y;
|
|
2682
|
+
this.adsIsShowing = !1, (y = e.afterAd) == null || y.call(e);
|
|
2683
2683
|
}, c = {
|
|
2684
2684
|
breakType: e.type,
|
|
2685
2685
|
breakName: e.name,
|
|
2686
2686
|
breakFormat: "reward",
|
|
2687
2687
|
breakStatus: "ignored"
|
|
2688
2688
|
}, f = () => {
|
|
2689
|
-
var
|
|
2690
|
-
this.adsIsShowing = !1, c.breakStatus = "dismissed", (
|
|
2691
|
-
},
|
|
2692
|
-
var
|
|
2693
|
-
this.adsIsShowing = !1, c.breakStatus = "viewed", (
|
|
2689
|
+
var y;
|
|
2690
|
+
this.adsIsShowing = !1, c.breakStatus = "dismissed", (y = e.adDismissed) == null || y.call(e);
|
|
2691
|
+
}, g = () => {
|
|
2692
|
+
var y;
|
|
2693
|
+
this.adsIsShowing = !1, c.breakStatus = "viewed", (y = e.adViewed) == null || y.call(e);
|
|
2694
2694
|
}, v = () => {
|
|
2695
|
-
var
|
|
2696
|
-
this.adsIsShowing = !1, (
|
|
2695
|
+
var y;
|
|
2696
|
+
this.adsIsShowing = !1, (y = e.adBreakDone) == null || y.call(e, c);
|
|
2697
2697
|
};
|
|
2698
2698
|
O(() => {
|
|
2699
|
-
this.state.afterAd.value = h, this.state.adDismissed.value = f, this.state.adViewed.value =
|
|
2699
|
+
this.state.afterAd.value = h, this.state.adDismissed.value = f, this.state.adViewed.value = g, this.state.adBreakDone.value = v;
|
|
2700
2700
|
});
|
|
2701
2701
|
const w = () => {
|
|
2702
|
-
var
|
|
2702
|
+
var y;
|
|
2703
2703
|
if (this.lastUnDisplayedAdBreak = null, !this.adsOverlay) {
|
|
2704
|
-
(
|
|
2704
|
+
(y = e.adBreakDone) == null || y.call(e, {
|
|
2705
2705
|
breakType: e.type,
|
|
2706
2706
|
breakName: e.name,
|
|
2707
2707
|
breakFormat: "reward",
|
|
@@ -2775,16 +2775,16 @@ const se = (t, e) => {
|
|
|
2775
2775
|
adLinkClicked: a,
|
|
2776
2776
|
visible: d,
|
|
2777
2777
|
src: l
|
|
2778
|
-
} = e, [u, h] = zt(!1), c = (
|
|
2779
|
-
var v, w,
|
|
2780
|
-
h(!1), d.value = !1,
|
|
2778
|
+
} = e, [u, h] = zt(!1), c = (g) => {
|
|
2779
|
+
var v, w, y, p;
|
|
2780
|
+
h(!1), d.value = !1, g === "dismiss" ? (v = n.value) == null || v.call(n) : g === "viewed" && ((w = r.value) == null || w.call(r)), (y = i.value) == null || y.call(i), (p = o.value) == null || p.call(o);
|
|
2781
2781
|
}, f = () => {
|
|
2782
|
-
var
|
|
2783
|
-
(
|
|
2782
|
+
var g;
|
|
2783
|
+
(g = s.value) == null || g.call(s);
|
|
2784
2784
|
};
|
|
2785
|
-
return se("appsrockets_ad_dismissed", () => c("dismiss")), se("appsrockets_ad_rewarded", () => c("viewed")), se("appsrockets_ad_completed", () => c("viewed")), se("appsrockets_ad_skipped", () => c("viewed")), se("appsrockets_ad_clicked", (
|
|
2785
|
+
return se("appsrockets_ad_dismissed", () => c("dismiss")), se("appsrockets_ad_rewarded", () => c("viewed")), se("appsrockets_ad_completed", () => c("viewed")), se("appsrockets_ad_skipped", () => c("viewed")), se("appsrockets_ad_clicked", (g) => {
|
|
2786
2786
|
var v;
|
|
2787
|
-
return (v = a.value) == null ? void 0 : v.call(a,
|
|
2787
|
+
return (v = a.value) == null ? void 0 : v.call(a, g);
|
|
2788
2788
|
}), se("appsrockets_ad_loaded", () => h(!0)), d.value ? _("div", {
|
|
2789
2789
|
className: Nr,
|
|
2790
2790
|
style: {
|
|
@@ -2864,8 +2864,8 @@ class jr {
|
|
|
2864
2864
|
return;
|
|
2865
2865
|
}
|
|
2866
2866
|
const n = (c) => {
|
|
2867
|
-
var f,
|
|
2868
|
-
(
|
|
2867
|
+
var f, g;
|
|
2868
|
+
(g = (f = this.context).handleLinkClicked) == null || g.call(f, c);
|
|
2869
2869
|
};
|
|
2870
2870
|
switch (e.type) {
|
|
2871
2871
|
case "preroll": {
|
|
@@ -2893,7 +2893,7 @@ class jr {
|
|
|
2893
2893
|
breakFormat: "interstitial",
|
|
2894
2894
|
breakStatus: "viewed"
|
|
2895
2895
|
});
|
|
2896
|
-
},
|
|
2896
|
+
}, g = () => {
|
|
2897
2897
|
var v;
|
|
2898
2898
|
this.adsIsShowing = !1, (v = e.adBreakDone) == null || v.call(e, {
|
|
2899
2899
|
breakType: e.type,
|
|
@@ -2903,7 +2903,7 @@ class jr {
|
|
|
2903
2903
|
});
|
|
2904
2904
|
};
|
|
2905
2905
|
O(() => {
|
|
2906
|
-
this.adsIsShowing = !0, this.state.afterAd.value = c, this.state.adBreakDone.value = f, this.state.src.value = this.processUrl(i.params.url), this.state.adLinkClicked.value = n, this.state.adError.value =
|
|
2906
|
+
this.adsIsShowing = !0, this.state.afterAd.value = c, this.state.adBreakDone.value = f, this.state.src.value = this.processUrl(i.params.url), this.state.adLinkClicked.value = n, this.state.adError.value = g, this.state.visible.value = !0;
|
|
2907
2907
|
});
|
|
2908
2908
|
break;
|
|
2909
2909
|
}
|
|
@@ -2922,7 +2922,7 @@ class jr {
|
|
|
2922
2922
|
breakName: e.name,
|
|
2923
2923
|
breakFormat: "reward",
|
|
2924
2924
|
breakStatus: "ignored"
|
|
2925
|
-
},
|
|
2925
|
+
}, g = () => {
|
|
2926
2926
|
var b;
|
|
2927
2927
|
this.adsIsShowing = !1, f.breakStatus = "dismissed", (b = e.adDismissed) == null || b.call(e);
|
|
2928
2928
|
}, v = () => {
|
|
@@ -2931,11 +2931,11 @@ class jr {
|
|
|
2931
2931
|
}, w = () => {
|
|
2932
2932
|
var b;
|
|
2933
2933
|
this.adsIsShowing = !1, (b = e.adBreakDone) == null || b.call(e, f);
|
|
2934
|
-
},
|
|
2934
|
+
}, y = () => {
|
|
2935
2935
|
this.adsIsShowing = !1, f.breakStatus = "noAdPreloaded";
|
|
2936
2936
|
};
|
|
2937
2937
|
O(() => {
|
|
2938
|
-
this.state.afterAd.value = c, this.state.adDismissed.value =
|
|
2938
|
+
this.state.afterAd.value = c, this.state.adDismissed.value = g, this.state.adViewed.value = v, this.state.adBreakDone.value = w, this.state.adLinkClicked.value = n, this.state.adError.value = y;
|
|
2939
2939
|
});
|
|
2940
2940
|
const p = () => {
|
|
2941
2941
|
var b;
|
|
@@ -3028,10 +3028,9 @@ class ki {
|
|
|
3028
3028
|
});
|
|
3029
3029
|
else {
|
|
3030
3030
|
const o = (s) => {
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
(l = this.readyEvent) == null || l.makeRewardedVisible();
|
|
3031
|
+
s.slot === this.rewardedSlot && this.adsContext && (googletag.pubads().removeEventListener("rewardedSlotReady", o), this.readyEvent = s, this.adsContext.beforeReward(() => {
|
|
3032
|
+
var a, d, l;
|
|
3033
|
+
(d = (a = this.adsContext) == null ? void 0 : a.beforeAd) == null || d.call(a), (l = this.readyEvent) == null || l.makeRewardedVisible();
|
|
3035
3034
|
}));
|
|
3036
3035
|
};
|
|
3037
3036
|
googletag.pubads().addEventListener("rewardedSlotReady", o), window.setTimeout(() => {
|
|
@@ -3044,7 +3043,7 @@ class ki {
|
|
|
3044
3043
|
});
|
|
3045
3044
|
}
|
|
3046
3045
|
}
|
|
3047
|
-
function
|
|
3046
|
+
function U(t, e, i) {
|
|
3048
3047
|
return (e = Fr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3049
3048
|
}
|
|
3050
3049
|
function Fr(t) {
|
|
@@ -3065,34 +3064,40 @@ function Vr(t, e) {
|
|
|
3065
3064
|
}
|
|
3066
3065
|
class Gr {
|
|
3067
3066
|
constructor(e, i, n) {
|
|
3068
|
-
|
|
3067
|
+
var r = this;
|
|
3068
|
+
U(this, "adUnit", void 0), U(this, "project", void 0), U(this, "keyValue", void 0), U(this, "adsContext", null), U(this, "gamingInterstitialSlot", null), U(this, "readyEvent", null), U(this, "isRetrying", !1), U(this, "withCommand", function() {
|
|
3069
3069
|
googletag.cmd.push(...arguments);
|
|
3070
|
-
}),
|
|
3071
|
-
var
|
|
3072
|
-
this.gamingInterstitialSlot = googletag.defineOutOfPageSlot(this.adUnit, googletag.enums.OutOfPageFormat.GAME_MANUAL_INTERSTITIAL), this.gamingInterstitialSlot && (this.gamingInterstitialSlot.addService(googletag.pubads()), googletag.pubads().addEventListener("gameManualInterstitialSlotReady", this.handleSlotReady), googletag.pubads().addEventListener("gameManualInterstitialSlotClosed", this.handleSlotClosed), this.keyValue && (Object.keys(this.keyValue).forEach((
|
|
3073
|
-
var
|
|
3074
|
-
(
|
|
3075
|
-
}), Object.keys(this.keyValue).includes("project") || (
|
|
3076
|
-
}),
|
|
3077
|
-
var
|
|
3078
|
-
(
|
|
3079
|
-
}),
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3070
|
+
}), U(this, "init", () => {
|
|
3071
|
+
var o;
|
|
3072
|
+
this.gamingInterstitialSlot = googletag.defineOutOfPageSlot(this.adUnit, googletag.enums.OutOfPageFormat.GAME_MANUAL_INTERSTITIAL), this.gamingInterstitialSlot && (this.gamingInterstitialSlot.addService(googletag.pubads()), googletag.pubads().addEventListener("gameManualInterstitialSlotReady", this.handleSlotReady), googletag.pubads().addEventListener("gameManualInterstitialSlotClosed", this.handleSlotClosed), this.keyValue && (Object.keys(this.keyValue).forEach((s) => {
|
|
3073
|
+
var a;
|
|
3074
|
+
(a = this.gamingInterstitialSlot) == null || a.setTargeting(s, this.keyValue[s]);
|
|
3075
|
+
}), Object.keys(this.keyValue).includes("project") || (o = this.gamingInterstitialSlot) == null || o.setTargeting("project", this.project)), googletag.display(this.gamingInterstitialSlot));
|
|
3076
|
+
}), U(this, "destroy", function(o) {
|
|
3077
|
+
var a, d;
|
|
3078
|
+
(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0) && ((d = (a = r.adsContext) == null ? void 0 : a.onEnd) == null || d.call(a, o), r.adsContext = null), googletag.pubads().removeEventListener("gameManualInterstitialSlotReady", r.handleSlotReady), googletag.pubads().removeEventListener("gameManualInterstitialSlotClosed", r.handleSlotClosed), r.gamingInterstitialSlot && (googletag.destroySlots([r.gamingInterstitialSlot]), r.gamingInterstitialSlot = null, r.readyEvent = null);
|
|
3079
|
+
}), U(this, "reinit", function(o) {
|
|
3080
|
+
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
3081
|
+
r.destroy(o, s), r.init();
|
|
3082
|
+
}), U(this, "handleSlotReady", (o) => {
|
|
3083
|
+
this.gamingInterstitialSlot === o.slot && (this.readyEvent = o);
|
|
3084
|
+
}), U(this, "handleSlotClosed", (o) => {
|
|
3085
|
+
var s, a;
|
|
3086
|
+
this.adsContext && this.gamingInterstitialSlot === o.slot && ((a = (s = this.adsContext).afterAd) == null || a.call(s), this.withCommand(() => {
|
|
3086
3087
|
this.reinit("viewed");
|
|
3087
3088
|
}));
|
|
3088
|
-
}),
|
|
3089
|
+
}), U(this, "requestAds", (o) => {
|
|
3089
3090
|
this.withCommand(() => {
|
|
3090
|
-
var
|
|
3091
|
-
if (this.adsContext && this.reinit("ignored"), this.gamingInterstitialSlot || this.init(), this.adsContext =
|
|
3091
|
+
var s, a, d;
|
|
3092
|
+
if (this.adsContext && this.reinit("ignored"), this.gamingInterstitialSlot || this.init(), this.adsContext = o, !this.gamingInterstitialSlot) {
|
|
3092
3093
|
this.reinit("notReady");
|
|
3093
3094
|
return;
|
|
3094
3095
|
}
|
|
3095
|
-
this.readyEvent ? ((
|
|
3096
|
+
this.readyEvent ? ((s = o.beforeAd) == null || s.call(o), this.readyEvent.makeGameManualInterstitialVisible()) : ((d = (a = this.adsContext).onEnd) == null || d.call(a, "frequencyCapped"), this.adsContext = null, this.isRetrying || (this.isRetrying = !0, window.setTimeout(() => {
|
|
3097
|
+
this.readyEvent || this.withCommand(() => {
|
|
3098
|
+
this.reinit("frequencyCapped", !1);
|
|
3099
|
+
}), this.isRetrying = !1;
|
|
3100
|
+
}, 31e3)));
|
|
3096
3101
|
});
|
|
3097
3102
|
}), Ei(), this.adUnit = e, this.project = i, this.keyValue = n, this.withCommand(() => {
|
|
3098
3103
|
this.init();
|
|
@@ -3147,7 +3152,7 @@ class Kr {
|
|
|
3147
3152
|
case "preroll": {
|
|
3148
3153
|
(r = e.adBreakDone) == null || r.call(e, {
|
|
3149
3154
|
breakType: "preroll",
|
|
3150
|
-
breakFormat: "
|
|
3155
|
+
breakFormat: "interstitial",
|
|
3151
3156
|
breakStatus: "noAdPreloaded"
|
|
3152
3157
|
});
|
|
3153
3158
|
break;
|
|
@@ -3339,7 +3344,7 @@ class To {
|
|
|
3339
3344
|
}
|
|
3340
3345
|
try {
|
|
3341
3346
|
const {
|
|
3342
|
-
data:
|
|
3347
|
+
data: g,
|
|
3343
3348
|
code: v
|
|
3344
3349
|
} = await this.context.httpClient.post("/api/ads/info", {
|
|
3345
3350
|
data: {
|
|
@@ -3359,7 +3364,7 @@ class To {
|
|
|
3359
3364
|
});
|
|
3360
3365
|
return;
|
|
3361
3366
|
} else {
|
|
3362
|
-
const w =
|
|
3367
|
+
const w = g == null ? void 0 : g.sort((j, P) => j.seq - P.seq);
|
|
3363
3368
|
if (w.length === 0) {
|
|
3364
3369
|
(u = e.adBreakDone) == null || u.call(e, {
|
|
3365
3370
|
breakType: e.type,
|
|
@@ -3369,29 +3374,29 @@ class To {
|
|
|
3369
3374
|
});
|
|
3370
3375
|
return;
|
|
3371
3376
|
}
|
|
3372
|
-
let
|
|
3377
|
+
let y = !0, p = null;
|
|
3373
3378
|
const b = new Mi(this.context);
|
|
3374
3379
|
for (this.adsActionDetection.adBreakIsShowing = !0; w.length > 0; ) {
|
|
3375
3380
|
const j = w.shift(), P = this.providers[j.provider];
|
|
3376
3381
|
if (P) {
|
|
3377
|
-
const [z, E] = await b.callAdBreakAndContinue(P, e, j, (
|
|
3382
|
+
const [z, E] = await b.callAdBreakAndContinue(P, e, j, (yt) => {
|
|
3378
3383
|
var pt;
|
|
3379
|
-
this.adsIsShowing =
|
|
3384
|
+
this.adsIsShowing = yt, (pt = this.context.eventEmitter) == null || pt.emit("isAdShowing", yt);
|
|
3380
3385
|
});
|
|
3381
|
-
|
|
3386
|
+
y = z, p = E;
|
|
3382
3387
|
} else
|
|
3383
|
-
|
|
3388
|
+
y = !0, p = {
|
|
3384
3389
|
breakType: e.type,
|
|
3385
3390
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
3386
3391
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
3387
3392
|
breakStatus: "notReady"
|
|
3388
3393
|
};
|
|
3389
|
-
if (!
|
|
3394
|
+
if (!y)
|
|
3390
3395
|
break;
|
|
3391
3396
|
}
|
|
3392
|
-
|
|
3397
|
+
y && p && ((h = e.adBreakDone) == null || h.call(e, p));
|
|
3393
3398
|
}
|
|
3394
|
-
} catch (
|
|
3399
|
+
} catch (g) {
|
|
3395
3400
|
(c = e.adBreakDone) == null || c.call(e, {
|
|
3396
3401
|
breakType: e.type,
|
|
3397
3402
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
@@ -3488,16 +3493,16 @@ function Zr(t, e) {
|
|
|
3488
3493
|
}
|
|
3489
3494
|
return (e === "string" ? String : Number)(t);
|
|
3490
3495
|
}
|
|
3491
|
-
class
|
|
3496
|
+
class C extends Error {
|
|
3492
3497
|
constructor(e, i) {
|
|
3493
3498
|
super(e.message), et(this, "name", void 0), et(this, "type", void 0), et(this, "raw", void 0), this.name = "AFVRequestError", this.type = i, this.raw = e, this.stack = e.stack, this.message = e.message;
|
|
3494
3499
|
}
|
|
3495
3500
|
static from(e, i) {
|
|
3496
3501
|
switch (i) {
|
|
3497
3502
|
case "GOOGLE_IMA_ERROR":
|
|
3498
|
-
return new
|
|
3503
|
+
return new C(e, i);
|
|
3499
3504
|
case "JOLIBOX_IMA_ERROR":
|
|
3500
|
-
return new
|
|
3505
|
+
return new C(e, i);
|
|
3501
3506
|
}
|
|
3502
3507
|
}
|
|
3503
3508
|
}
|
|
@@ -3523,13 +3528,13 @@ function to(t, e) {
|
|
|
3523
3528
|
class io {
|
|
3524
3529
|
constructor(e, i, n) {
|
|
3525
3530
|
I(this, "adsLoader", void 0), I(this, "adDisplayContainer", void 0), I(this, "isAdPlaying", !1), I(this, "isContentFinished", !1), I(this, "videoContent", void 0), I(this, "adContainer", void 0), I(this, "adsManager", void 0), I(this, "intervalTimer", void 0), I(this, "completed", !1), I(this, "adTagUrl", void 0), I(this, "notifyRequestAd", void 0), I(this, "notifyLoaded", void 0), I(this, "notifyPlayingAd", void 0), I(this, "notifyCompleted", void 0), I(this, "notifyError", void 0), I(this, "destroy", () => {
|
|
3526
|
-
var r, o, s, a, d, l, u, h, c, f,
|
|
3527
|
-
this.intervalTimer && clearInterval(this.intervalTimer), (r = this.adsManager) == null || r.stop(), (o = this.adDisplayContainer) == null || o.destroy(), (s = this.adsLoader) == null || s.removeEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.onAdsManagerLoaded), (a = this.adsLoader) == null || a.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (d = this.adsManager) == null || d.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (l = this.adsManager) == null || l.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, this.onContentPauseRequested), (u = this.adsManager) == null || u.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, this.onContentResumeRequested), (h = this.adsManager) == null || h.removeEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED, this.onAdEvent), (c = this.adsManager) == null || c.removeEventListener(window.google.ima.AdEvent.Type.LOADED, this.onAdEvent), (f = this.adsManager) == null || f.removeEventListener(window.google.ima.AdEvent.Type.STARTED, this.onAdEvent), (
|
|
3531
|
+
var r, o, s, a, d, l, u, h, c, f, g;
|
|
3532
|
+
this.intervalTimer && clearInterval(this.intervalTimer), (r = this.adsManager) == null || r.stop(), (o = this.adDisplayContainer) == null || o.destroy(), (s = this.adsLoader) == null || s.removeEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.onAdsManagerLoaded), (a = this.adsLoader) == null || a.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (d = this.adsManager) == null || d.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (l = this.adsManager) == null || l.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, this.onContentPauseRequested), (u = this.adsManager) == null || u.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, this.onContentResumeRequested), (h = this.adsManager) == null || h.removeEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED, this.onAdEvent), (c = this.adsManager) == null || c.removeEventListener(window.google.ima.AdEvent.Type.LOADED, this.onAdEvent), (f = this.adsManager) == null || f.removeEventListener(window.google.ima.AdEvent.Type.STARTED, this.onAdEvent), (g = this.adsManager) == null || g.removeEventListener(window.google.ima.AdEvent.Type.COMPLETE, this.onAdEvent);
|
|
3528
3533
|
}), I(this, "requestAds", async (r, o) => {
|
|
3529
3534
|
var u;
|
|
3530
3535
|
this.createAdDisplayContainer(), this.notifyRequestAd = r.onAdRequested, this.notifyLoaded = r.onAdLoaded, this.notifyPlayingAd = r.onAdPlaying, this.notifyCompleted = r.onAdCompleted, this.notifyError = (h) => {
|
|
3531
3536
|
var c;
|
|
3532
|
-
return (c = r.onAdError) == null ? void 0 : c.call(r,
|
|
3537
|
+
return (c = r.onAdError) == null ? void 0 : c.call(r, C.from(h, "GOOGLE_IMA_ERROR"));
|
|
3533
3538
|
}, this.adsLoader = new window.google.ima.AdsLoader(this.adDisplayContainer), this.adsLoader.addEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.onAdsManagerLoaded, !1), this.adsLoader.addEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError, !1);
|
|
3534
3539
|
const s = () => {
|
|
3535
3540
|
var h;
|
|
@@ -3748,7 +3753,7 @@ class lo {
|
|
|
3748
3753
|
}), ee(this, "requestAd", (i, n) => {
|
|
3749
3754
|
var u;
|
|
3750
3755
|
if (!this.adsOverlay || !this.ima || !this.initialized) {
|
|
3751
|
-
const h =
|
|
3756
|
+
const h = C.from(new Error("IMA not initialized"), "JOLIBOX_IMA_ERROR");
|
|
3752
3757
|
(u = i.onAdError) == null || u.call(i, h);
|
|
3753
3758
|
return;
|
|
3754
3759
|
}
|
|
@@ -3777,11 +3782,11 @@ class lo {
|
|
|
3777
3782
|
this.state.canRetry.value = !1, this.state.retry.value = null, this.state.visible.value = !1;
|
|
3778
3783
|
}), (f = i.onAdError) == null || f.call(i, h);
|
|
3779
3784
|
else {
|
|
3780
|
-
const
|
|
3785
|
+
const g = () => {
|
|
3781
3786
|
this.ima.destroy(), this.requestAd(i, n);
|
|
3782
3787
|
};
|
|
3783
3788
|
O(() => {
|
|
3784
|
-
this.state.canRetry.value = !0, this.state.retry.value =
|
|
3789
|
+
this.state.canRetry.value = !0, this.state.retry.value = g;
|
|
3785
3790
|
});
|
|
3786
3791
|
}
|
|
3787
3792
|
}, a = (h) => {
|
|
@@ -3797,7 +3802,7 @@ class lo {
|
|
|
3797
3802
|
O(() => {
|
|
3798
3803
|
this.state.canRetry.value = !1, this.state.retry.value = null, this.state.visible.value = !1;
|
|
3799
3804
|
});
|
|
3800
|
-
const f =
|
|
3805
|
+
const f = C.from(new Error("Ad server not responded"), "GOOGLE_IMA_ERROR");
|
|
3801
3806
|
(h = i.onAdError) == null || h.call(i, f), (c = this.ima) == null || c.destroy();
|
|
3802
3807
|
}
|
|
3803
3808
|
}, 5e3);
|
|
@@ -3836,11 +3841,11 @@ class ho {
|
|
|
3836
3841
|
}), W(this, "requestAd", (i, n) => {
|
|
3837
3842
|
var s, a, d, l;
|
|
3838
3843
|
if (!this.adsOverlay || !this.initialized) {
|
|
3839
|
-
(s = i.onAdError) == null || s.call(i,
|
|
3844
|
+
(s = i.onAdError) == null || s.call(i, C.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
|
|
3840
3845
|
return;
|
|
3841
3846
|
}
|
|
3842
3847
|
if (this.adsIsShowing) {
|
|
3843
|
-
(a = i.onAdError) == null || a.call(i,
|
|
3848
|
+
(a = i.onAdError) == null || a.call(i, C.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
|
|
3844
3849
|
return;
|
|
3845
3850
|
}
|
|
3846
3851
|
(d = i.onAdRequested) == null || d.call(i);
|
|
@@ -3877,7 +3882,7 @@ function vo(t, e) {
|
|
|
3877
3882
|
}
|
|
3878
3883
|
return (e === "string" ? String : Number)(t);
|
|
3879
3884
|
}
|
|
3880
|
-
class
|
|
3885
|
+
class go {
|
|
3881
3886
|
constructor(e) {
|
|
3882
3887
|
q(this, "name", "APPSROCKETS"), q(this, "initialized", !1), q(this, "initCompleter", null), q(this, "context", void 0), q(this, "adsOverlay", null), q(this, "adsIsShowing", !1), q(this, "state", mi()), q(this, "processUrl", (i) => {
|
|
3883
3888
|
var s;
|
|
@@ -3894,11 +3899,11 @@ class yo {
|
|
|
3894
3899
|
}), q(this, "requestAd", (i, n) => {
|
|
3895
3900
|
var d, l, u, h;
|
|
3896
3901
|
if (!this.adsOverlay || !this.initialized) {
|
|
3897
|
-
(d = i.onAdError) == null || d.call(i,
|
|
3902
|
+
(d = i.onAdError) == null || d.call(i, C.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
|
|
3898
3903
|
return;
|
|
3899
3904
|
}
|
|
3900
3905
|
if (this.adsIsShowing) {
|
|
3901
|
-
(l = i.onAdError) == null || l.call(i,
|
|
3906
|
+
(l = i.onAdError) == null || l.call(i, C.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
|
|
3902
3907
|
return;
|
|
3903
3908
|
}
|
|
3904
3909
|
(u = i.onAdRequested) == null || u.call(i);
|
|
@@ -3909,11 +3914,11 @@ class yo {
|
|
|
3909
3914
|
var c;
|
|
3910
3915
|
(c = i.onAdLoaded) == null || c.call(i, void 0);
|
|
3911
3916
|
}, s = (c) => {
|
|
3912
|
-
var f,
|
|
3913
|
-
(
|
|
3917
|
+
var f, g;
|
|
3918
|
+
(g = (f = this.context).handleLinkClicked) == null || g.call(f, c);
|
|
3914
3919
|
}, a = () => {
|
|
3915
3920
|
var c;
|
|
3916
|
-
(c = i.onAdError) == null || c.call(i,
|
|
3921
|
+
(c = i.onAdError) == null || c.call(i, C.from(new Error("Ads load error"), "JOLIBOX_IMA_ERROR"));
|
|
3917
3922
|
};
|
|
3918
3923
|
this.adsIsShowing = !0, O(() => {
|
|
3919
3924
|
this.state.adLoaded.value = o, this.state.adBreakDone.value = r, this.state.adLinkClicked.value = s, this.state.adError.value = a, this.state.src.value = this.processUrl(n.params.url), this.state.visible.value = !0;
|
|
@@ -3922,9 +3927,9 @@ class yo {
|
|
|
3922
3927
|
}
|
|
3923
3928
|
}
|
|
3924
3929
|
function te(t, e, i) {
|
|
3925
|
-
return (e =
|
|
3930
|
+
return (e = yo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3926
3931
|
}
|
|
3927
|
-
function
|
|
3932
|
+
function yo(t) {
|
|
3928
3933
|
var e = po(t, "string");
|
|
3929
3934
|
return typeof e == "symbol" ? e : e + "";
|
|
3930
3935
|
}
|
|
@@ -3960,7 +3965,7 @@ class wo {
|
|
|
3960
3965
|
}), te(this, "requestAd", (i, n) => {
|
|
3961
3966
|
var r;
|
|
3962
3967
|
if (!this.rewardAdManager) {
|
|
3963
|
-
(r = i.onAdError) == null || r.call(i,
|
|
3968
|
+
(r = i.onAdError) == null || r.call(i, C.from(new Error("rewardAdManager not initialized"), "JOLIBOX_IMA_ERROR"));
|
|
3964
3969
|
return;
|
|
3965
3970
|
}
|
|
3966
3971
|
this.rewardAdManager.requestAds({
|
|
@@ -3983,7 +3988,7 @@ class wo {
|
|
|
3983
3988
|
case "ignored":
|
|
3984
3989
|
break;
|
|
3985
3990
|
default: {
|
|
3986
|
-
(a = i.onAdError) == null || a.call(i,
|
|
3991
|
+
(a = i.onAdError) == null || a.call(i, C.from(new Error(o), "JOLIBOX_IMA_ERROR"));
|
|
3987
3992
|
break;
|
|
3988
3993
|
}
|
|
3989
3994
|
}
|
|
@@ -4011,7 +4016,7 @@ function _o(t, e) {
|
|
|
4011
4016
|
}
|
|
4012
4017
|
return (e === "string" ? String : Number)(t);
|
|
4013
4018
|
}
|
|
4014
|
-
class
|
|
4019
|
+
class Co {
|
|
4015
4020
|
constructor(e) {
|
|
4016
4021
|
if (be(this, "context", void 0), be(this, "contextInfo", void 0), be(this, "providers", {}), be(this, "adsTrackSerializer", void 0), be(this, "initialized", !1), e)
|
|
4017
4022
|
this.context = e, this.adsTrackSerializer = new Qt(e), this.contextInfo = this.context.getContextInfo();
|
|
@@ -4080,7 +4085,7 @@ class Do {
|
|
|
4080
4085
|
break;
|
|
4081
4086
|
}
|
|
4082
4087
|
case "APPSROCKETS": {
|
|
4083
|
-
const n = new
|
|
4088
|
+
const n = new go(this.context);
|
|
4084
4089
|
await n.init(i), this.providers.APPSROCKETS = n;
|
|
4085
4090
|
break;
|
|
4086
4091
|
}
|
|
@@ -4099,7 +4104,7 @@ class Do {
|
|
|
4099
4104
|
async requestAd(e) {
|
|
4100
4105
|
var i, n, r, o, s, a, d;
|
|
4101
4106
|
if ((i = this.context.eventEmitter) == null || i.emit("isAdShowing", !0), this.initialized || await this.init(), !this.context.checkNetwork()) {
|
|
4102
|
-
const l =
|
|
4107
|
+
const l = C.from(new Error("No network connection"), "JOLIBOX_IMA_ERROR");
|
|
4103
4108
|
(n = e.onAdError) == null || n.call(e, l);
|
|
4104
4109
|
return;
|
|
4105
4110
|
}
|
|
@@ -4116,32 +4121,32 @@ class Do {
|
|
|
4116
4121
|
}
|
|
4117
4122
|
});
|
|
4118
4123
|
if (u !== "SUCCESS") {
|
|
4119
|
-
const h =
|
|
4124
|
+
const h = C.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
|
|
4120
4125
|
(r = e.onAdError) == null || r.call(e, h);
|
|
4121
4126
|
return;
|
|
4122
4127
|
} else {
|
|
4123
4128
|
const h = l == null ? void 0 : l.sort((v, w) => v.seq - w.seq);
|
|
4124
4129
|
if (h.length === 0) {
|
|
4125
|
-
const v =
|
|
4130
|
+
const v = C.from(new Error("No ads available"), "JOLIBOX_IMA_ERROR");
|
|
4126
4131
|
(o = e.onAdError) == null || o.call(e, v);
|
|
4127
4132
|
return;
|
|
4128
4133
|
}
|
|
4129
4134
|
let c = !0, f = null;
|
|
4130
|
-
const
|
|
4135
|
+
const g = new Xr(this.context);
|
|
4131
4136
|
for (; h.length > 0; ) {
|
|
4132
4137
|
const v = h.shift(), w = this.providers[v.provider];
|
|
4133
4138
|
if (w) {
|
|
4134
|
-
const [
|
|
4135
|
-
c =
|
|
4139
|
+
const [y, p] = await g.callAdRequestAndContinue(w, e, v);
|
|
4140
|
+
c = y, f = p;
|
|
4136
4141
|
} else
|
|
4137
|
-
c = !0, f =
|
|
4142
|
+
c = !0, f = C.from(new Error("No provider available"), "JOLIBOX_IMA_ERROR");
|
|
4138
4143
|
if (!c)
|
|
4139
4144
|
break;
|
|
4140
4145
|
}
|
|
4141
4146
|
c && f && ((s = e.onAdError) == null || s.call(e, f));
|
|
4142
4147
|
}
|
|
4143
4148
|
} catch (l) {
|
|
4144
|
-
const u =
|
|
4149
|
+
const u = C.from(new Error("Failed to request ad"), "JOLIBOX_IMA_ERROR");
|
|
4145
4150
|
(a = e.onAdError) == null || a.call(e, u);
|
|
4146
4151
|
} finally {
|
|
4147
4152
|
(d = this.context.eventEmitter) == null || d.emit("isAdShowing", !1);
|
|
@@ -4167,18 +4172,18 @@ function mo(t, e) {
|
|
|
4167
4172
|
}
|
|
4168
4173
|
return (e === "string" ? String : Number)(t);
|
|
4169
4174
|
}
|
|
4170
|
-
class
|
|
4175
|
+
class Do extends Error {
|
|
4171
4176
|
constructor(e) {
|
|
4172
4177
|
super(e), ae(this, "name", void 0), ae(this, "message", void 0), ae(this, "errMsg", void 0), ae(this, "code", void 0), ae(this, "data", void 0), ae(this, "extra", void 0), this.name = "ResponseError", this.message = e, this.errMsg = e;
|
|
4173
4178
|
}
|
|
4174
4179
|
}
|
|
4175
4180
|
export {
|
|
4176
|
-
|
|
4181
|
+
C as AFVWrappedError,
|
|
4177
4182
|
kn as GoogleAdSenseProvider,
|
|
4178
4183
|
lo as GoogleIMAProvider,
|
|
4179
4184
|
To as JoliboxAdsForGame,
|
|
4180
|
-
|
|
4185
|
+
Co as JoliboxAdsForVideo,
|
|
4181
4186
|
Pr as OKSpinForGameProvider,
|
|
4182
4187
|
ho as OKSpinForVideoProvider,
|
|
4183
|
-
|
|
4188
|
+
Do as ResponseError
|
|
4184
4189
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jolibox/ads",
|
|
3
3
|
"description": "This project is for integrating Jolibox ads providers",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.40",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
7
7
|
"type": "module",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
],
|
|
13
13
|
"types": "./dist/index.d.ts",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@jolibox/common": "1.1.
|
|
15
|
+
"@jolibox/common": "1.1.40",
|
|
16
16
|
"@emotion/css": "11.13.5",
|
|
17
|
-
"@jolibox/types": "1.1.
|
|
17
|
+
"@jolibox/types": "1.1.40",
|
|
18
18
|
"preact": "10.26.4",
|
|
19
19
|
"@preact/signals": "2.0.4"
|
|
20
20
|
},
|