@jolibox/ads 1.1.21 → 1.1.23
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/afg/index.d.ts +1 -0
- package/dist/index.js +468 -456
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ var ut = (t, e) => {
|
|
|
11
11
|
};
|
|
12
12
|
import { options as Z, Component as pi, isValidElement as _i } from "preact";
|
|
13
13
|
import { useRef as yi, useLayoutEffect as gi, useEffect as Pt, useMemo as mi, render as he, createRef as ft } from "preact/compat";
|
|
14
|
-
function
|
|
14
|
+
function F(t, e, i) {
|
|
15
15
|
return (e = Ai(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
16
16
|
}
|
|
17
17
|
function Ai(t) {
|
|
@@ -32,7 +32,7 @@ function wi(t, e) {
|
|
|
32
32
|
}
|
|
33
33
|
class bi {
|
|
34
34
|
constructor(e) {
|
|
35
|
-
|
|
35
|
+
F(this, "context", void 0), F(this, "continueCallback", 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
|
this.adsHasResponse = !0;
|
|
37
37
|
let n = !1;
|
|
38
38
|
this.videoChecker.play().catch(() => {
|
|
@@ -43,11 +43,11 @@ class bi {
|
|
|
43
43
|
}), this.context = e;
|
|
44
44
|
}
|
|
45
45
|
get paramsToTrack() {
|
|
46
|
-
var e, i, n, r,
|
|
46
|
+
var e, i, n, r, o, s;
|
|
47
47
|
return {
|
|
48
48
|
provider: (i = (e = this.currentProvider) == null ? void 0 : e.name) != null ? i : null,
|
|
49
49
|
type: (n = this.currentClientParams) == null ? void 0 : n.type,
|
|
50
|
-
name: ((r = this.currentClientParams) == null ? void 0 : r.type) === "preroll" ? null : (
|
|
50
|
+
name: ((r = this.currentClientParams) == null ? void 0 : r.type) === "preroll" ? null : (s = (o = this.currentClientParams) == null ? void 0 : o.name) != null ? s : ""
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
53
|
wrapBeforeAd(e) {
|
|
@@ -77,11 +77,11 @@ class bi {
|
|
|
77
77
|
}
|
|
78
78
|
wrapAdBreakDone(e) {
|
|
79
79
|
return (i) => {
|
|
80
|
-
var n, r,
|
|
80
|
+
var n, r, o, s, a;
|
|
81
81
|
switch (this.adsHasResponse = !0, this.context.track("CallAdBreakDone", {
|
|
82
82
|
provider: (r = (n = this.currentProvider) == null ? void 0 : n.name) != null ? r : null,
|
|
83
83
|
breakType: i.breakType,
|
|
84
|
-
breakName: (
|
|
84
|
+
breakName: (o = i.breakName) != null ? o : "",
|
|
85
85
|
breakFormat: i.breakFormat,
|
|
86
86
|
breakStatus: i.breakStatus
|
|
87
87
|
}), i.breakStatus) {
|
|
@@ -89,7 +89,7 @@ class bi {
|
|
|
89
89
|
case "ignored":
|
|
90
90
|
case "dismissed":
|
|
91
91
|
case "error": {
|
|
92
|
-
e == null || e(i), (
|
|
92
|
+
e == null || e(i), (s = this.continueCallback) == null || s.call(this, [!1, i]);
|
|
93
93
|
break;
|
|
94
94
|
}
|
|
95
95
|
default: {
|
|
@@ -108,17 +108,17 @@ class bi {
|
|
|
108
108
|
async callAdBreakAndContinue(e, i, n) {
|
|
109
109
|
return this.currentProvider = e, this.currentClientParams = i, this.adsHasResponse = !1, new Promise((r) => {
|
|
110
110
|
this.continueCallback = r;
|
|
111
|
-
let
|
|
111
|
+
let o;
|
|
112
112
|
switch (i.type) {
|
|
113
113
|
case "preroll": {
|
|
114
|
-
|
|
114
|
+
o = {
|
|
115
115
|
type: i.type,
|
|
116
116
|
adBreakDone: this.wrapAdBreakDone(i.adBreakDone)
|
|
117
117
|
};
|
|
118
118
|
break;
|
|
119
119
|
}
|
|
120
120
|
case "reward": {
|
|
121
|
-
|
|
121
|
+
o = {
|
|
122
122
|
name: i.name,
|
|
123
123
|
type: i.type,
|
|
124
124
|
beforeAd: this.wrapBeforeAd(i.beforeAd),
|
|
@@ -131,7 +131,7 @@ class bi {
|
|
|
131
131
|
break;
|
|
132
132
|
}
|
|
133
133
|
default: {
|
|
134
|
-
|
|
134
|
+
o = {
|
|
135
135
|
name: i.name,
|
|
136
136
|
type: i.type,
|
|
137
137
|
beforeAd: this.wrapBeforeAd(i.beforeAd),
|
|
@@ -142,17 +142,17 @@ class bi {
|
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
window.setTimeout(() => {
|
|
145
|
-
var
|
|
145
|
+
var s, a, d, l;
|
|
146
146
|
this.adsHasResponse || (this.context.track("CallAdBreakTimeout", {
|
|
147
147
|
type: i.type,
|
|
148
|
-
provider: (a = (
|
|
148
|
+
provider: (a = (s = this.currentProvider) == null ? void 0 : s.name) != null ? a : null
|
|
149
149
|
}), (l = this.continueCallback) == null || l.call(this, [!0, {
|
|
150
150
|
breakType: i.type,
|
|
151
151
|
breakName: i.type === "preroll" ? "" : (d = i.name) != null ? d : "",
|
|
152
152
|
breakFormat: i.type === "reward" ? "reward" : "interstitial",
|
|
153
153
|
breakStatus: "timeout"
|
|
154
154
|
}]));
|
|
155
|
-
}, 5e3), this.context.track("CallAdBreak", this.paramsToTrack), e.adBreak(
|
|
155
|
+
}, 5e3), this.context.track("CallAdBreak", this.paramsToTrack), e.adBreak(o, n), window.JoliTesterBridge && console.log("joli-fullscreen-ad-show");
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
158
|
}
|
|
@@ -204,30 +204,30 @@ var Ct = Object.defineProperty, Ri = Object.defineProperties, Ii = Object.getOwn
|
|
|
204
204
|
for (var i of ht(e))
|
|
205
205
|
Oi.call(e, i) && vt(t, i, e[i]);
|
|
206
206
|
return t;
|
|
207
|
-
}, Di = (t, e) => Ri(t, Ii(e)),
|
|
207
|
+
}, Di = (t, e) => Ri(t, Ii(e)), Li = (t, e) => {
|
|
208
208
|
for (var i in e)
|
|
209
209
|
Ct(t, i, {
|
|
210
210
|
get: e[i],
|
|
211
211
|
enumerable: !0
|
|
212
212
|
});
|
|
213
213
|
}, Mt = (t, e, i, n) => {
|
|
214
|
-
for (var r = e,
|
|
215
|
-
(
|
|
214
|
+
for (var r = e, o = t.length - 1, s; o >= 0; o--)
|
|
215
|
+
(s = t[o]) && (r = s(r) || r);
|
|
216
216
|
return r;
|
|
217
|
-
},
|
|
218
|
-
var
|
|
217
|
+
}, Ni = (t, e, i) => new Promise((n, r) => {
|
|
218
|
+
var o = (d) => {
|
|
219
219
|
try {
|
|
220
220
|
a(i.next(d));
|
|
221
221
|
} catch (l) {
|
|
222
222
|
r(l);
|
|
223
223
|
}
|
|
224
|
-
},
|
|
224
|
+
}, s = (d) => {
|
|
225
225
|
try {
|
|
226
226
|
a(i.throw(d));
|
|
227
227
|
} catch (l) {
|
|
228
228
|
r(l);
|
|
229
229
|
}
|
|
230
|
-
}, a = (d) => d.done ? n(d.value) : Promise.resolve(d.value).then(
|
|
230
|
+
}, a = (d) => d.done ? n(d.value) : Promise.resolve(d.value).then(o, s);
|
|
231
231
|
a((i = i.apply(t, e)).next());
|
|
232
232
|
});
|
|
233
233
|
if (typeof window != "undefined" && !window.AbortController) {
|
|
@@ -280,9 +280,9 @@ function Ui(t) {
|
|
|
280
280
|
}
|
|
281
281
|
function $t(t) {
|
|
282
282
|
let e = t, i = null, n = function() {
|
|
283
|
-
for (var r = arguments.length,
|
|
284
|
-
s
|
|
285
|
-
return i || (i = new e(...
|
|
283
|
+
for (var r = arguments.length, o = new Array(r), s = 0; s < r; s++)
|
|
284
|
+
o[s] = arguments[s];
|
|
285
|
+
return i || (i = new e(...o)), i;
|
|
286
286
|
};
|
|
287
287
|
return n.prototype = e.prototype, n;
|
|
288
288
|
}
|
|
@@ -310,7 +310,7 @@ function Ee(t, e) {
|
|
|
310
310
|
return e.map((i) => {
|
|
311
311
|
if (i === "params" && t[i]) {
|
|
312
312
|
let n = t[i];
|
|
313
|
-
return Object.keys(n).reduce((r,
|
|
313
|
+
return Object.keys(n).reduce((r, o) => (r[o] = String(n[o]), r), {});
|
|
314
314
|
}
|
|
315
315
|
return t[i];
|
|
316
316
|
});
|
|
@@ -384,11 +384,11 @@ var x = He, Hi = class {
|
|
|
384
384
|
if (this._first === x.Undefined)
|
|
385
385
|
this._first = n, this._last = n;
|
|
386
386
|
else if (i) {
|
|
387
|
-
let
|
|
388
|
-
this._last = n, n.prev =
|
|
387
|
+
let o = this._last;
|
|
388
|
+
this._last = n, n.prev = o, o.next = n;
|
|
389
389
|
} else {
|
|
390
|
-
let
|
|
391
|
-
this._first = n, n.next =
|
|
390
|
+
let o = this._first;
|
|
391
|
+
this._first = n, n.next = o, o.prev = n;
|
|
392
392
|
}
|
|
393
393
|
this._size += 1;
|
|
394
394
|
let r = !1;
|
|
@@ -435,14 +435,14 @@ var x = He, Hi = class {
|
|
|
435
435
|
}
|
|
436
436
|
get event() {
|
|
437
437
|
return this._event != null || (this._event = (e, i) => {
|
|
438
|
-
var n, r,
|
|
438
|
+
var n, r, o, s, a, d;
|
|
439
439
|
if (this._disposed)
|
|
440
440
|
return () => {
|
|
441
441
|
console.info("[Jolibox SDK] Emitter is _disposed");
|
|
442
442
|
};
|
|
443
443
|
i && (e = e.bind(i));
|
|
444
444
|
let l = new de(e);
|
|
445
|
-
return this._listeners ? this._listeners instanceof de ? this._listeners = [this._listeners, l] : this._listeners.push(l) : ((r = (n = this.options) == null ? void 0 : n.onWillAddFirstListener) == null || r.call(n, this), this._listeners = l, (
|
|
445
|
+
return this._listeners ? this._listeners instanceof de ? this._listeners = [this._listeners, l] : this._listeners.push(l) : ((r = (n = this.options) == null ? void 0 : n.onWillAddFirstListener) == null || r.call(n, this), this._listeners = l, (s = (o = this.options) == null ? void 0 : o.onDidFirstListener) == null || s.call(o, this)), (d = (a = this.options) == null ? void 0 : a.onDidAddListener) == null || d.call(a, this), this._size++, () => {
|
|
446
446
|
var c, u, f, v;
|
|
447
447
|
if (!this._disposed) {
|
|
448
448
|
if (this._listeners instanceof de)
|
|
@@ -466,8 +466,8 @@ var x = He, Hi = class {
|
|
|
466
466
|
}
|
|
467
467
|
try {
|
|
468
468
|
e.value(i);
|
|
469
|
-
} catch (
|
|
470
|
-
r(
|
|
469
|
+
} catch (o) {
|
|
470
|
+
r(o);
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
473
|
fire(e) {
|
|
@@ -483,10 +483,10 @@ var x = He, Hi = class {
|
|
|
483
483
|
on(t, e) {
|
|
484
484
|
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
|
|
485
485
|
var n;
|
|
486
|
-
let r = (n = this.listeners.get(t)) != null ? n : new ve(),
|
|
486
|
+
let r = (n = this.listeners.get(t)) != null ? n : new ve(), o = (d) => e(...d.args), s = r.event(o);
|
|
487
487
|
this.listerHandlerMap.set(e, {
|
|
488
|
-
handler:
|
|
489
|
-
dispose:
|
|
488
|
+
handler: o,
|
|
489
|
+
dispose: s
|
|
490
490
|
}), this.listeners.set(t, r);
|
|
491
491
|
let a = this.cachedEventQueue.get(t);
|
|
492
492
|
if (a && i)
|
|
@@ -502,8 +502,8 @@ var x = He, Hi = class {
|
|
|
502
502
|
}
|
|
503
503
|
emit(t) {
|
|
504
504
|
let e = this.listeners.get(t), i = this.cachedEventQueue.get(t);
|
|
505
|
-
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0),
|
|
506
|
-
r[
|
|
505
|
+
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
506
|
+
r[o - 1] = arguments[o];
|
|
507
507
|
i || (i = new Hi(), this.cachedEventQueue.set(t, i)), i.push({
|
|
508
508
|
args: r
|
|
509
509
|
}), e && e.fire({
|
|
@@ -519,7 +519,7 @@ var x = He, Hi = class {
|
|
|
519
519
|
this.on(t, n, !1);
|
|
520
520
|
}
|
|
521
521
|
}, Je = {};
|
|
522
|
-
|
|
522
|
+
Li(Je, {
|
|
523
523
|
None: () => Yi,
|
|
524
524
|
filter: () => Xi,
|
|
525
525
|
once: () => Bt,
|
|
@@ -592,13 +592,13 @@ var Ye = class {
|
|
|
592
592
|
throw new Error("invalid command");
|
|
593
593
|
if (e.metadata && Array.isArray(e.metadata.args)) {
|
|
594
594
|
let n = [];
|
|
595
|
-
for (let
|
|
596
|
-
n.push(
|
|
595
|
+
for (let o of e.metadata.args)
|
|
596
|
+
n.push(o.constraint);
|
|
597
597
|
let r = e.handler;
|
|
598
598
|
e.handler = function() {
|
|
599
|
-
for (var
|
|
600
|
-
|
|
601
|
-
return en(
|
|
599
|
+
for (var o = arguments.length, s = new Array(o), a = 0; a < o; a++)
|
|
600
|
+
s[a] = arguments[a];
|
|
601
|
+
return en(s, n), r(...s);
|
|
602
602
|
};
|
|
603
603
|
}
|
|
604
604
|
let {
|
|
@@ -629,25 +629,25 @@ var yt = class {
|
|
|
629
629
|
executeCommand(e) {
|
|
630
630
|
for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), r = 1; r < i; r++)
|
|
631
631
|
n[r - 1] = arguments[r];
|
|
632
|
-
return
|
|
633
|
-
return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(), Je.toPromise(Je.filter(this.registry.onDidRegisterCommand, (
|
|
632
|
+
return Ni(this, null, function* () {
|
|
633
|
+
return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(), Je.toPromise(Je.filter(this.registry.onDidRegisterCommand, (o) => o === e))])]), this._tryExecuteCommand(e, n));
|
|
634
634
|
});
|
|
635
635
|
}
|
|
636
636
|
executeCommandThowErr(e) {
|
|
637
637
|
if (!this.registry.getCommand(e))
|
|
638
638
|
throw new Error(`command '${e}' not found`);
|
|
639
639
|
let i = this.registry.getCommand(e);
|
|
640
|
-
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0),
|
|
641
|
-
r[
|
|
640
|
+
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
641
|
+
r[o - 1] = arguments[o];
|
|
642
642
|
this._onWillExecuteCommand.fire({
|
|
643
643
|
commandId: e,
|
|
644
644
|
args: r
|
|
645
645
|
});
|
|
646
|
-
let
|
|
646
|
+
let s = this.invokeFunction(i.handler, ...r);
|
|
647
647
|
return this._onDidExecuteCommand.fire({
|
|
648
648
|
commandId: e,
|
|
649
649
|
args: r
|
|
650
|
-
}),
|
|
650
|
+
}), s;
|
|
651
651
|
}
|
|
652
652
|
_tryExecuteCommand(e, i) {
|
|
653
653
|
let n = this.registry.getCommand(e);
|
|
@@ -727,7 +727,7 @@ class Vt {
|
|
|
727
727
|
};
|
|
728
728
|
}
|
|
729
729
|
serialize(e, i) {
|
|
730
|
-
var
|
|
730
|
+
var o;
|
|
731
731
|
const r = {
|
|
732
732
|
protocolVersion: "1.0.0",
|
|
733
733
|
events: [{
|
|
@@ -737,7 +737,7 @@ class Vt {
|
|
|
737
737
|
target: null,
|
|
738
738
|
extra: i,
|
|
739
739
|
timestamp: Date.now(),
|
|
740
|
-
userId: (
|
|
740
|
+
userId: (o = this.contextInfo.userId) != null ? o : null
|
|
741
741
|
}],
|
|
742
742
|
device: this.getDevice(),
|
|
743
743
|
project: jt.WebSDK
|
|
@@ -746,13 +746,13 @@ class Vt {
|
|
|
746
746
|
}
|
|
747
747
|
}
|
|
748
748
|
function we(t, e, i) {
|
|
749
|
-
return (e =
|
|
749
|
+
return (e = on(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
750
750
|
}
|
|
751
|
-
function
|
|
752
|
-
var e =
|
|
751
|
+
function on(t) {
|
|
752
|
+
var e = sn(t, "string");
|
|
753
753
|
return typeof e == "symbol" ? e : e + "";
|
|
754
754
|
}
|
|
755
|
-
function
|
|
755
|
+
function sn(t, e) {
|
|
756
756
|
if (typeof t != "object" || !t)
|
|
757
757
|
return t;
|
|
758
758
|
var i = t[Symbol.toPrimitive];
|
|
@@ -784,8 +784,8 @@ class an {
|
|
|
784
784
|
if (!this.configs)
|
|
785
785
|
this.init(), e = !this.firstRun;
|
|
786
786
|
else {
|
|
787
|
-
const r = (i = this.contextInfo.channel) != null ? i : "",
|
|
788
|
-
e = Math.random() <
|
|
787
|
+
const r = (i = this.contextInfo.channel) != null ? i : "", o = this.configs[r], s = (n = o == null ? void 0 : o.interstitialRate) != null ? n : 1;
|
|
788
|
+
e = Math.random() < s;
|
|
789
789
|
}
|
|
790
790
|
return this.firstRun = !1, e;
|
|
791
791
|
}
|
|
@@ -818,12 +818,12 @@ class cn {
|
|
|
818
818
|
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
819
819
|
window.adsbygoogle.push(n);
|
|
820
820
|
}), H(this, "adConfig", (n) => {
|
|
821
|
-
const
|
|
821
|
+
const s = n, {
|
|
822
822
|
onReady: r
|
|
823
|
-
} =
|
|
823
|
+
} = s, o = ut(s, [
|
|
824
824
|
"onReady"
|
|
825
825
|
]);
|
|
826
|
-
this.context.track("CallAdConfig",
|
|
826
|
+
this.context.track("CallAdConfig", o), this.configured ? console.warn("Ad config already set, skipping") : (this.configured = !0, this.push(n));
|
|
827
827
|
}), H(this, "adBreak", (n) => {
|
|
828
828
|
if (!this.contextInfo.objectId) {
|
|
829
829
|
console.warn("Game ID is not set, skip calling adBreak");
|
|
@@ -831,18 +831,18 @@ class cn {
|
|
|
831
831
|
}
|
|
832
832
|
this.push(n);
|
|
833
833
|
}), H(this, "adUnit", async (n) => {
|
|
834
|
-
var y, _,
|
|
834
|
+
var y, _, A, h;
|
|
835
835
|
if (this.context.track("CallAdUnit", {
|
|
836
836
|
adFormat: (_ = (y = n.adFormat) == null ? void 0 : y.toString()) != null ? _ : null,
|
|
837
|
-
fullWidthResponsive: (
|
|
837
|
+
fullWidthResponsive: (A = n.fullWidthResponsive) != null ? A : null
|
|
838
838
|
}), document.querySelector("#jolibox-ads")) {
|
|
839
839
|
console.warn("Ad unit already set, skipping");
|
|
840
840
|
return;
|
|
841
841
|
}
|
|
842
842
|
const {
|
|
843
843
|
el: r,
|
|
844
|
-
slot:
|
|
845
|
-
adFormat:
|
|
844
|
+
slot: o,
|
|
845
|
+
adFormat: s,
|
|
846
846
|
fullWidthResponsive: a,
|
|
847
847
|
style: d
|
|
848
848
|
} = n;
|
|
@@ -851,20 +851,20 @@ class cn {
|
|
|
851
851
|
throw new Error("targeting element is required");
|
|
852
852
|
if (typeof r == "string" ? l = document.querySelector(r) : l = r, !l)
|
|
853
853
|
throw new Error("targeting element not found");
|
|
854
|
-
let c =
|
|
854
|
+
let c = o;
|
|
855
855
|
if (c || (c = this.initParams.unitId), !c)
|
|
856
856
|
throw new Error("slot is required");
|
|
857
|
-
const u = typeof
|
|
857
|
+
const u = typeof s == "object" && Array.isArray(s) ? s.join(", ") : s, f = document.createElement("ins");
|
|
858
858
|
if (f.className = "adsbygoogle", f.id = "jolibox-ads", f.style.display = "block", f.setAttribute("data-ad-client", this.initParams.clientId), f.setAttribute("data-ad-slot", c), u && f.setAttribute("data-ad-format", u), a && f.setAttribute("data-full-width-responsive", a), d && f.setAttribute("style", d), (h = this.contextInfo.testAdsMode) != null ? h : !1) {
|
|
859
859
|
const p = document.createElement("div");
|
|
860
860
|
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", f.style.position = "relative", l.appendChild(f), f.appendChild(p);
|
|
861
861
|
} else
|
|
862
862
|
l.appendChild(f), new MutationObserver((L) => {
|
|
863
|
-
L.forEach((
|
|
864
|
-
if (
|
|
865
|
-
const
|
|
863
|
+
L.forEach((z) => {
|
|
864
|
+
if (z.type === "attributes" && z.attributeName === "data-ad-status") {
|
|
865
|
+
const $ = f.getAttribute("data-ad-status");
|
|
866
866
|
this.context.track("AdSenseUnitStatusChanged", {
|
|
867
|
-
status:
|
|
867
|
+
status: $ != null ? $ : "null"
|
|
868
868
|
});
|
|
869
869
|
}
|
|
870
870
|
});
|
|
@@ -902,8 +902,8 @@ var hn = /* @__PURE__ */ function() {
|
|
|
902
902
|
function t(i) {
|
|
903
903
|
var n = this;
|
|
904
904
|
this._insertTag = function(r) {
|
|
905
|
-
var
|
|
906
|
-
n.tags.length === 0 ? n.insertionPoint ?
|
|
905
|
+
var o;
|
|
906
|
+
n.tags.length === 0 ? n.insertionPoint ? o = n.insertionPoint.nextSibling : n.prepend ? o = n.container.firstChild : o = n.before : o = n.tags[n.tags.length - 1].nextSibling, n.container.insertBefore(r, o), n.tags.push(r);
|
|
907
907
|
}, this.isSpeedy = i.speedy === void 0 ? !0 : i.speedy, this.tags = [], this.ctr = 0, this.nonce = i.nonce, this.key = i.key, this.container = i.container, this.prepend = i.prepend, this.insertionPoint = i.insertionPoint, this.before = null;
|
|
908
908
|
}
|
|
909
909
|
var e = t.prototype;
|
|
@@ -913,10 +913,10 @@ var hn = /* @__PURE__ */ function() {
|
|
|
913
913
|
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(fn(this));
|
|
914
914
|
var r = this.tags[this.tags.length - 1];
|
|
915
915
|
if (this.isSpeedy) {
|
|
916
|
-
var
|
|
916
|
+
var o = un(r);
|
|
917
917
|
try {
|
|
918
|
-
|
|
919
|
-
} catch (
|
|
918
|
+
o.insertRule(n, o.cssRules.length);
|
|
919
|
+
} catch (s) {
|
|
920
920
|
}
|
|
921
921
|
} else
|
|
922
922
|
r.appendChild(document.createTextNode(n));
|
|
@@ -927,7 +927,7 @@ var hn = /* @__PURE__ */ function() {
|
|
|
927
927
|
return (r = n.parentNode) == null ? void 0 : r.removeChild(n);
|
|
928
928
|
}), this.tags = [], this.ctr = 0;
|
|
929
929
|
}, t;
|
|
930
|
-
}(), D = "-ms-", ke = "-moz-", g = "-webkit-", zt = "comm", rt = "rule",
|
|
930
|
+
}(), D = "-ms-", ke = "-moz-", g = "-webkit-", zt = "comm", rt = "rule", ot = "decl", vn = "@import", Gt = "@keyframes", pn = "@layer", _n = Math.abs, Ce = String.fromCharCode, yn = Object.assign;
|
|
931
931
|
function gn(t, e) {
|
|
932
932
|
return O(t, 0) ^ 45 ? (((e << 2 ^ O(t, 0)) << 2 ^ O(t, 1)) << 2 ^ O(t, 2)) << 2 ^ O(t, 3) : 0;
|
|
933
933
|
}
|
|
@@ -949,10 +949,10 @@ function O(t, e) {
|
|
|
949
949
|
function pe(t, e, i) {
|
|
950
950
|
return t.slice(e, i);
|
|
951
951
|
}
|
|
952
|
-
function
|
|
952
|
+
function K(t) {
|
|
953
953
|
return t.length;
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function st(t) {
|
|
956
956
|
return t.length;
|
|
957
957
|
}
|
|
958
958
|
function be(t, e) {
|
|
@@ -962,8 +962,8 @@ function An(t, e) {
|
|
|
962
962
|
return t.map(e).join("");
|
|
963
963
|
}
|
|
964
964
|
var Me = 1, ie = 1, qt = 0, M = 0, T = 0, ne = "";
|
|
965
|
-
function $e(t, e, i, n, r,
|
|
966
|
-
return { value: t, root: e, parent: i, type: n, props: r, children:
|
|
965
|
+
function $e(t, e, i, n, r, o, s) {
|
|
966
|
+
return { value: t, root: e, parent: i, type: n, props: r, children: o, line: Me, column: ie, length: s, return: "" };
|
|
967
967
|
}
|
|
968
968
|
function le(t, e) {
|
|
969
969
|
return yn($e("", null, null, "", null, null, 0), t, { length: -t.length }, e);
|
|
@@ -974,10 +974,10 @@ function wn() {
|
|
|
974
974
|
function bn() {
|
|
975
975
|
return T = M > 0 ? O(ne, --M) : 0, ie--, T === 10 && (ie = 1, Me--), T;
|
|
976
976
|
}
|
|
977
|
-
function
|
|
977
|
+
function U() {
|
|
978
978
|
return T = M < qt ? O(ne, M++) : 0, ie++, T === 10 && (ie = 1, Me++), T;
|
|
979
979
|
}
|
|
980
|
-
function
|
|
980
|
+
function q() {
|
|
981
981
|
return O(ne, M);
|
|
982
982
|
}
|
|
983
983
|
function Se() {
|
|
@@ -1019,7 +1019,7 @@ function _e(t) {
|
|
|
1019
1019
|
return 0;
|
|
1020
1020
|
}
|
|
1021
1021
|
function Ht(t) {
|
|
1022
|
-
return Me = ie = 1, qt =
|
|
1022
|
+
return Me = ie = 1, qt = K(ne = t), M = 0, [];
|
|
1023
1023
|
}
|
|
1024
1024
|
function Wt(t) {
|
|
1025
1025
|
return ne = "", t;
|
|
@@ -1028,17 +1028,17 @@ function xe(t) {
|
|
|
1028
1028
|
return Kt(ye(M - 1, Xe(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
|
|
1029
1029
|
}
|
|
1030
1030
|
function En(t) {
|
|
1031
|
-
for (; (T =
|
|
1032
|
-
|
|
1031
|
+
for (; (T = q()) && T < 33; )
|
|
1032
|
+
U();
|
|
1033
1033
|
return _e(t) > 2 || _e(T) > 3 ? "" : " ";
|
|
1034
1034
|
}
|
|
1035
1035
|
function Sn(t, e) {
|
|
1036
|
-
for (; --e &&
|
|
1036
|
+
for (; --e && U() && !(T < 48 || T > 102 || T > 57 && T < 65 || T > 70 && T < 97); )
|
|
1037
1037
|
;
|
|
1038
|
-
return ye(t, Se() + (e < 6 &&
|
|
1038
|
+
return ye(t, Se() + (e < 6 && q() == 32 && U() == 32));
|
|
1039
1039
|
}
|
|
1040
1040
|
function Xe(t) {
|
|
1041
|
-
for (;
|
|
1041
|
+
for (; U(); )
|
|
1042
1042
|
switch (T) {
|
|
1043
1043
|
case t:
|
|
1044
1044
|
return M;
|
|
@@ -1050,28 +1050,28 @@ function Xe(t) {
|
|
|
1050
1050
|
t === 41 && Xe(t);
|
|
1051
1051
|
break;
|
|
1052
1052
|
case 92:
|
|
1053
|
-
|
|
1053
|
+
U();
|
|
1054
1054
|
break;
|
|
1055
1055
|
}
|
|
1056
1056
|
return M;
|
|
1057
1057
|
}
|
|
1058
1058
|
function xn(t, e) {
|
|
1059
|
-
for (;
|
|
1060
|
-
if (t + T === 84 &&
|
|
1059
|
+
for (; U() && t + T !== 57; )
|
|
1060
|
+
if (t + T === 84 && q() === 47)
|
|
1061
1061
|
break;
|
|
1062
|
-
return "/*" + ye(e, M - 1) + "*" + Ce(t === 47 ? t :
|
|
1062
|
+
return "/*" + ye(e, M - 1) + "*" + Ce(t === 47 ? t : U());
|
|
1063
1063
|
}
|
|
1064
1064
|
function Rn(t) {
|
|
1065
|
-
for (; !_e(
|
|
1066
|
-
|
|
1065
|
+
for (; !_e(q()); )
|
|
1066
|
+
U();
|
|
1067
1067
|
return ye(t, M);
|
|
1068
1068
|
}
|
|
1069
1069
|
function In(t) {
|
|
1070
1070
|
return Wt(Re("", null, null, null, [""], t = Ht(t), 0, [0], t));
|
|
1071
1071
|
}
|
|
1072
|
-
function Re(t, e, i, n, r,
|
|
1073
|
-
for (var l = 0, c = 0, u =
|
|
1074
|
-
switch (y = p, p =
|
|
1072
|
+
function Re(t, e, i, n, r, o, s, a, d) {
|
|
1073
|
+
for (var l = 0, c = 0, u = s, f = 0, v = 0, y = 0, _ = 1, A = 1, h = 1, p = 0, L = "", z = r, $ = o, j = n, E = L; A; )
|
|
1074
|
+
switch (y = p, p = U()) {
|
|
1075
1075
|
case 40:
|
|
1076
1076
|
if (y != 108 && O(E, u - 1) == 58) {
|
|
1077
1077
|
Qe(E += m(xe(p), "&", "&\f"), "&\f") != -1 && (h = -1);
|
|
@@ -1092,49 +1092,49 @@ function Re(t, e, i, n, r, s, o, a, d) {
|
|
|
1092
1092
|
E += Sn(Se() - 1, 7);
|
|
1093
1093
|
continue;
|
|
1094
1094
|
case 47:
|
|
1095
|
-
switch (
|
|
1095
|
+
switch (q()) {
|
|
1096
1096
|
case 42:
|
|
1097
1097
|
case 47:
|
|
1098
|
-
be(Tn(xn(
|
|
1098
|
+
be(Tn(xn(U(), Se()), e, i), d);
|
|
1099
1099
|
break;
|
|
1100
1100
|
default:
|
|
1101
1101
|
E += "/";
|
|
1102
1102
|
}
|
|
1103
1103
|
break;
|
|
1104
1104
|
case 123 * _:
|
|
1105
|
-
a[l++] =
|
|
1105
|
+
a[l++] = K(E) * h;
|
|
1106
1106
|
case 125 * _:
|
|
1107
1107
|
case 59:
|
|
1108
1108
|
case 0:
|
|
1109
1109
|
switch (p) {
|
|
1110
1110
|
case 0:
|
|
1111
1111
|
case 125:
|
|
1112
|
-
|
|
1112
|
+
A = 0;
|
|
1113
1113
|
case 59 + c:
|
|
1114
|
-
h == -1 && (E = m(E, /\f/g, "")), v > 0 &&
|
|
1114
|
+
h == -1 && (E = m(E, /\f/g, "")), v > 0 && K(E) - u && be(v > 32 ? mt(E + ";", n, i, u - 1) : mt(m(E, " ", "") + ";", n, i, u - 2), d);
|
|
1115
1115
|
break;
|
|
1116
1116
|
case 59:
|
|
1117
1117
|
E += ";";
|
|
1118
1118
|
default:
|
|
1119
|
-
if (be(
|
|
1119
|
+
if (be(j = gt(E, e, i, l, c, r, a, L, z = [], $ = [], u), o), p === 123)
|
|
1120
1120
|
if (c === 0)
|
|
1121
|
-
Re(E, e,
|
|
1121
|
+
Re(E, e, j, j, z, o, u, a, $);
|
|
1122
1122
|
else
|
|
1123
1123
|
switch (f === 99 && O(E, 3) === 110 ? 100 : f) {
|
|
1124
1124
|
case 100:
|
|
1125
1125
|
case 108:
|
|
1126
1126
|
case 109:
|
|
1127
1127
|
case 115:
|
|
1128
|
-
Re(t,
|
|
1128
|
+
Re(t, j, j, n && be(gt(t, j, j, 0, 0, r, a, L, r, z = [], u), $), r, $, u, a, n ? z : $);
|
|
1129
1129
|
break;
|
|
1130
1130
|
default:
|
|
1131
|
-
Re(E,
|
|
1131
|
+
Re(E, j, j, j, [""], $, 0, a, $);
|
|
1132
1132
|
}
|
|
1133
1133
|
}
|
|
1134
|
-
l = c = v = 0, _ = h = 1, L = E = "", u =
|
|
1134
|
+
l = c = v = 0, _ = h = 1, L = E = "", u = s;
|
|
1135
1135
|
break;
|
|
1136
1136
|
case 58:
|
|
1137
|
-
u = 1 +
|
|
1137
|
+
u = 1 + K(E), v = y;
|
|
1138
1138
|
default:
|
|
1139
1139
|
if (_ < 1) {
|
|
1140
1140
|
if (p == 123)
|
|
@@ -1147,31 +1147,31 @@ function Re(t, e, i, n, r, s, o, a, d) {
|
|
|
1147
1147
|
h = c > 0 ? 1 : (E += "\f", -1);
|
|
1148
1148
|
break;
|
|
1149
1149
|
case 44:
|
|
1150
|
-
a[l++] = (
|
|
1150
|
+
a[l++] = (K(E) - 1) * h, h = 1;
|
|
1151
1151
|
break;
|
|
1152
1152
|
case 64:
|
|
1153
|
-
|
|
1153
|
+
q() === 45 && (E += xe(U())), f = q(), c = u = K(L = E += Rn(Se())), p++;
|
|
1154
1154
|
break;
|
|
1155
1155
|
case 45:
|
|
1156
|
-
y === 45 &&
|
|
1156
|
+
y === 45 && K(E) == 2 && (_ = 0);
|
|
1157
1157
|
}
|
|
1158
1158
|
}
|
|
1159
|
-
return
|
|
1159
|
+
return o;
|
|
1160
1160
|
}
|
|
1161
|
-
function gt(t, e, i, n, r,
|
|
1162
|
-
for (var u = r - 1, f = r === 0 ?
|
|
1163
|
-
for (var h = 0, p = pe(t, u + 1, u = _n(_ =
|
|
1164
|
-
(L = Kt(_ > 0 ? f[h] + " " + p : m(p, /&\f/g, f[h]))) && (d[
|
|
1161
|
+
function gt(t, e, i, n, r, o, s, a, d, l, c) {
|
|
1162
|
+
for (var u = r - 1, f = r === 0 ? o : [""], v = st(f), y = 0, _ = 0, A = 0; y < n; ++y)
|
|
1163
|
+
for (var h = 0, p = pe(t, u + 1, u = _n(_ = s[y])), L = t; h < v; ++h)
|
|
1164
|
+
(L = Kt(_ > 0 ? f[h] + " " + p : m(p, /&\f/g, f[h]))) && (d[A++] = L);
|
|
1165
1165
|
return $e(t, e, i, r === 0 ? rt : a, d, l, c);
|
|
1166
1166
|
}
|
|
1167
1167
|
function Tn(t, e, i) {
|
|
1168
1168
|
return $e(t, e, i, zt, Ce(wn()), pe(t, 2, -2), 0);
|
|
1169
1169
|
}
|
|
1170
1170
|
function mt(t, e, i, n) {
|
|
1171
|
-
return $e(t, e, i,
|
|
1171
|
+
return $e(t, e, i, ot, pe(t, 0, n), pe(t, n + 1, -1), n);
|
|
1172
1172
|
}
|
|
1173
1173
|
function te(t, e) {
|
|
1174
|
-
for (var i = "", n =
|
|
1174
|
+
for (var i = "", n = st(t), r = 0; r < n; r++)
|
|
1175
1175
|
i += e(t[r], r, t, e) || "";
|
|
1176
1176
|
return i;
|
|
1177
1177
|
}
|
|
@@ -1181,7 +1181,7 @@ function On(t, e, i, n) {
|
|
|
1181
1181
|
if (t.children.length)
|
|
1182
1182
|
break;
|
|
1183
1183
|
case vn:
|
|
1184
|
-
case
|
|
1184
|
+
case ot:
|
|
1185
1185
|
return t.return = t.return || t.value;
|
|
1186
1186
|
case zt:
|
|
1187
1187
|
return "";
|
|
@@ -1190,14 +1190,14 @@ function On(t, e, i, n) {
|
|
|
1190
1190
|
case rt:
|
|
1191
1191
|
t.value = t.props.join(",");
|
|
1192
1192
|
}
|
|
1193
|
-
return
|
|
1193
|
+
return K(i = te(t.children, n)) ? t.return = t.value + "{" + i + "}" : "";
|
|
1194
1194
|
}
|
|
1195
1195
|
function kn(t) {
|
|
1196
|
-
var e =
|
|
1197
|
-
return function(i, n, r,
|
|
1198
|
-
for (var
|
|
1199
|
-
|
|
1200
|
-
return
|
|
1196
|
+
var e = st(t);
|
|
1197
|
+
return function(i, n, r, o) {
|
|
1198
|
+
for (var s = "", a = 0; a < e; a++)
|
|
1199
|
+
s += t[a](i, n, r, o) || "";
|
|
1200
|
+
return s;
|
|
1201
1201
|
};
|
|
1202
1202
|
}
|
|
1203
1203
|
function Dn(t) {
|
|
@@ -1205,35 +1205,35 @@ function Dn(t) {
|
|
|
1205
1205
|
e.root || (e = e.return) && t(e);
|
|
1206
1206
|
};
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1208
|
+
function Ln(t) {
|
|
1209
1209
|
var e = /* @__PURE__ */ Object.create(null);
|
|
1210
1210
|
return function(i) {
|
|
1211
1211
|
return e[i] === void 0 && (e[i] = t(i)), e[i];
|
|
1212
1212
|
};
|
|
1213
1213
|
}
|
|
1214
|
-
var
|
|
1215
|
-
for (var r = 0,
|
|
1216
|
-
|
|
1214
|
+
var Nn = function(e, i, n) {
|
|
1215
|
+
for (var r = 0, o = 0; r = o, o = q(), r === 38 && o === 12 && (i[n] = 1), !_e(o); )
|
|
1216
|
+
U();
|
|
1217
1217
|
return ye(e, M);
|
|
1218
1218
|
}, Pn = function(e, i) {
|
|
1219
1219
|
var n = -1, r = 44;
|
|
1220
1220
|
do
|
|
1221
1221
|
switch (_e(r)) {
|
|
1222
1222
|
case 0:
|
|
1223
|
-
r === 38 &&
|
|
1223
|
+
r === 38 && q() === 12 && (i[n] = 1), e[n] += Nn(M - 1, i, n);
|
|
1224
1224
|
break;
|
|
1225
1225
|
case 2:
|
|
1226
1226
|
e[n] += xe(r);
|
|
1227
1227
|
break;
|
|
1228
1228
|
case 4:
|
|
1229
1229
|
if (r === 44) {
|
|
1230
|
-
e[++n] =
|
|
1230
|
+
e[++n] = q() === 58 ? "&\f" : "", i[n] = e[n].length;
|
|
1231
1231
|
break;
|
|
1232
1232
|
}
|
|
1233
1233
|
default:
|
|
1234
1234
|
e[n] += Ce(r);
|
|
1235
1235
|
}
|
|
1236
|
-
while (r =
|
|
1236
|
+
while (r = U());
|
|
1237
1237
|
return e;
|
|
1238
1238
|
}, Cn = function(e, i) {
|
|
1239
1239
|
return Wt(Pn(Ht(e), i));
|
|
@@ -1246,9 +1246,9 @@ var Ln = function(e, i, n) {
|
|
|
1246
1246
|
return;
|
|
1247
1247
|
if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !At.get(n)) && !r) {
|
|
1248
1248
|
At.set(e, !0);
|
|
1249
|
-
for (var
|
|
1249
|
+
for (var o = [], s = Cn(i, o), a = n.props, d = 0, l = 0; d < s.length; d++)
|
|
1250
1250
|
for (var c = 0; c < a.length; c++, l++)
|
|
1251
|
-
e.props[l] =
|
|
1251
|
+
e.props[l] = o[d] ? s[d].replace(/&\f/g, a[c]) : a[c] + " " + s[d];
|
|
1252
1252
|
}
|
|
1253
1253
|
}
|
|
1254
1254
|
}, $n = function(e) {
|
|
@@ -1338,7 +1338,7 @@ function Jt(t, e) {
|
|
|
1338
1338
|
case 5789:
|
|
1339
1339
|
case 5021:
|
|
1340
1340
|
case 4765:
|
|
1341
|
-
if (
|
|
1341
|
+
if (K(t) - 1 - e > 6)
|
|
1342
1342
|
switch (O(t, e + 1)) {
|
|
1343
1343
|
case 109:
|
|
1344
1344
|
if (O(t, e + 4) !== 45)
|
|
@@ -1353,7 +1353,7 @@ function Jt(t, e) {
|
|
|
1353
1353
|
if (O(t, e + 1) !== 115)
|
|
1354
1354
|
break;
|
|
1355
1355
|
case 6444:
|
|
1356
|
-
switch (O(t,
|
|
1356
|
+
switch (O(t, K(t) - 3 - (~Qe(t, "!important") && 10))) {
|
|
1357
1357
|
case 107:
|
|
1358
1358
|
return m(t, ":", ":" + g) + t;
|
|
1359
1359
|
case 101:
|
|
@@ -1376,7 +1376,7 @@ function Jt(t, e) {
|
|
|
1376
1376
|
var Un = function(e, i, n, r) {
|
|
1377
1377
|
if (e.length > -1 && !e.return)
|
|
1378
1378
|
switch (e.type) {
|
|
1379
|
-
case
|
|
1379
|
+
case ot:
|
|
1380
1380
|
e.return = Jt(e.value, e.length);
|
|
1381
1381
|
break;
|
|
1382
1382
|
case Gt:
|
|
@@ -1385,20 +1385,20 @@ var Un = function(e, i, n, r) {
|
|
|
1385
1385
|
})], r);
|
|
1386
1386
|
case rt:
|
|
1387
1387
|
if (e.length)
|
|
1388
|
-
return An(e.props, function(
|
|
1389
|
-
switch (mn(
|
|
1388
|
+
return An(e.props, function(o) {
|
|
1389
|
+
switch (mn(o, /(::plac\w+|:read-\w+)/)) {
|
|
1390
1390
|
case ":read-only":
|
|
1391
1391
|
case ":read-write":
|
|
1392
1392
|
return te([le(e, {
|
|
1393
|
-
props: [m(
|
|
1393
|
+
props: [m(o, /:(read-\w+)/, ":" + ke + "$1")]
|
|
1394
1394
|
})], r);
|
|
1395
1395
|
case "::placeholder":
|
|
1396
1396
|
return te([le(e, {
|
|
1397
|
-
props: [m(
|
|
1397
|
+
props: [m(o, /:(plac\w+)/, ":" + g + "input-$1")]
|
|
1398
1398
|
}), le(e, {
|
|
1399
|
-
props: [m(
|
|
1399
|
+
props: [m(o, /:(plac\w+)/, ":" + ke + "$1")]
|
|
1400
1400
|
}), le(e, {
|
|
1401
|
-
props: [m(
|
|
1401
|
+
props: [m(o, /:(plac\w+)/, D + "input-$1")]
|
|
1402
1402
|
})], r);
|
|
1403
1403
|
}
|
|
1404
1404
|
return "";
|
|
@@ -1409,18 +1409,18 @@ var Un = function(e, i, n, r) {
|
|
|
1409
1409
|
if (i === "css") {
|
|
1410
1410
|
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
1411
1411
|
Array.prototype.forEach.call(n, function(_) {
|
|
1412
|
-
var
|
|
1413
|
-
|
|
1412
|
+
var A = _.getAttribute("data-emotion");
|
|
1413
|
+
A.indexOf(" ") !== -1 && (document.head.appendChild(_), _.setAttribute("data-s", ""));
|
|
1414
1414
|
});
|
|
1415
1415
|
}
|
|
1416
|
-
var r = e.stylisPlugins || jn,
|
|
1417
|
-
|
|
1416
|
+
var r = e.stylisPlugins || jn, o = {}, s, a = [];
|
|
1417
|
+
s = e.container || document.head, Array.prototype.forEach.call(
|
|
1418
1418
|
// this means we will ignore elements which don't have a space in them which
|
|
1419
1419
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
1420
1420
|
document.querySelectorAll('style[data-emotion^="' + i + ' "]'),
|
|
1421
1421
|
function(_) {
|
|
1422
|
-
for (var
|
|
1423
|
-
|
|
1422
|
+
for (var A = _.getAttribute("data-emotion").split(" "), h = 1; h < A.length; h++)
|
|
1423
|
+
o[A[h]] = !0;
|
|
1424
1424
|
a.push(_);
|
|
1425
1425
|
}
|
|
1426
1426
|
);
|
|
@@ -1428,25 +1428,25 @@ var Un = function(e, i, n, r) {
|
|
|
1428
1428
|
{
|
|
1429
1429
|
var c, u = [On, Dn(function(_) {
|
|
1430
1430
|
c.insert(_);
|
|
1431
|
-
})], f = kn(l.concat(r, u)), v = function(
|
|
1432
|
-
return te(In(
|
|
1431
|
+
})], f = kn(l.concat(r, u)), v = function(A) {
|
|
1432
|
+
return te(In(A), f);
|
|
1433
1433
|
};
|
|
1434
|
-
d = function(
|
|
1435
|
-
c = p, v(
|
|
1434
|
+
d = function(A, h, p, L) {
|
|
1435
|
+
c = p, v(A ? A + "{" + h.styles + "}" : h.styles), L && (y.inserted[h.name] = !0);
|
|
1436
1436
|
};
|
|
1437
1437
|
}
|
|
1438
1438
|
var y = {
|
|
1439
1439
|
key: i,
|
|
1440
1440
|
sheet: new hn({
|
|
1441
1441
|
key: i,
|
|
1442
|
-
container:
|
|
1442
|
+
container: s,
|
|
1443
1443
|
nonce: e.nonce,
|
|
1444
1444
|
speedy: e.speedy,
|
|
1445
1445
|
prepend: e.prepend,
|
|
1446
1446
|
insertionPoint: e.insertionPoint
|
|
1447
1447
|
}),
|
|
1448
1448
|
nonce: e.nonce,
|
|
1449
|
-
inserted:
|
|
1449
|
+
inserted: o,
|
|
1450
1450
|
registered: {},
|
|
1451
1451
|
insert: d
|
|
1452
1452
|
};
|
|
@@ -1524,18 +1524,18 @@ var Vn = {
|
|
|
1524
1524
|
return e.charCodeAt(1) === 45;
|
|
1525
1525
|
}, wt = function(e) {
|
|
1526
1526
|
return e != null && typeof e != "boolean";
|
|
1527
|
-
}, Be = /* @__PURE__ */
|
|
1527
|
+
}, Be = /* @__PURE__ */ Ln(function(t) {
|
|
1528
1528
|
return Yt(t) ? t : t.replace(zn, "-$&").toLowerCase();
|
|
1529
1529
|
}), bt = function(e, i) {
|
|
1530
1530
|
switch (e) {
|
|
1531
1531
|
case "animation":
|
|
1532
1532
|
case "animationName":
|
|
1533
1533
|
if (typeof i == "string")
|
|
1534
|
-
return i.replace(Gn, function(n, r,
|
|
1535
|
-
return
|
|
1534
|
+
return i.replace(Gn, function(n, r, o) {
|
|
1535
|
+
return Q = {
|
|
1536
1536
|
name: r,
|
|
1537
|
-
styles:
|
|
1538
|
-
next:
|
|
1537
|
+
styles: o,
|
|
1538
|
+
next: Q
|
|
1539
1539
|
}, r;
|
|
1540
1540
|
});
|
|
1541
1541
|
}
|
|
@@ -1553,22 +1553,22 @@ function De(t, e, i) {
|
|
|
1553
1553
|
case "object": {
|
|
1554
1554
|
var r = i;
|
|
1555
1555
|
if (r.anim === 1)
|
|
1556
|
-
return
|
|
1556
|
+
return Q = {
|
|
1557
1557
|
name: r.name,
|
|
1558
1558
|
styles: r.styles,
|
|
1559
|
-
next:
|
|
1559
|
+
next: Q
|
|
1560
1560
|
}, r.name;
|
|
1561
|
-
var
|
|
1562
|
-
if (
|
|
1563
|
-
var
|
|
1564
|
-
if (
|
|
1565
|
-
for (;
|
|
1566
|
-
|
|
1567
|
-
name:
|
|
1568
|
-
styles:
|
|
1569
|
-
next:
|
|
1570
|
-
},
|
|
1571
|
-
var a =
|
|
1561
|
+
var o = i;
|
|
1562
|
+
if (o.styles !== void 0) {
|
|
1563
|
+
var s = o.next;
|
|
1564
|
+
if (s !== void 0)
|
|
1565
|
+
for (; s !== void 0; )
|
|
1566
|
+
Q = {
|
|
1567
|
+
name: s.name,
|
|
1568
|
+
styles: s.styles,
|
|
1569
|
+
next: Q
|
|
1570
|
+
}, s = s.next;
|
|
1571
|
+
var a = o.styles + ";";
|
|
1572
1572
|
return a;
|
|
1573
1573
|
}
|
|
1574
1574
|
return Kn(t, e, i);
|
|
@@ -1586,45 +1586,45 @@ function Kn(t, e, i) {
|
|
|
1586
1586
|
for (var r = 0; r < i.length; r++)
|
|
1587
1587
|
n += De(t, e, i[r]) + ";";
|
|
1588
1588
|
else
|
|
1589
|
-
for (var
|
|
1590
|
-
var
|
|
1591
|
-
if (typeof
|
|
1592
|
-
var a =
|
|
1593
|
-
e != null && e[a] !== void 0 ? n +=
|
|
1594
|
-
} else if (Array.isArray(
|
|
1595
|
-
for (var d = 0; d <
|
|
1596
|
-
wt(
|
|
1589
|
+
for (var o in i) {
|
|
1590
|
+
var s = i[o];
|
|
1591
|
+
if (typeof s != "object") {
|
|
1592
|
+
var a = s;
|
|
1593
|
+
e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" : wt(a) && (n += Be(o) + ":" + bt(o, a) + ";");
|
|
1594
|
+
} else if (Array.isArray(s) && typeof s[0] == "string" && (e == null || e[s[0]] === void 0))
|
|
1595
|
+
for (var d = 0; d < s.length; d++)
|
|
1596
|
+
wt(s[d]) && (n += Be(o) + ":" + bt(o, s[d]) + ";");
|
|
1597
1597
|
else {
|
|
1598
|
-
var l = De(t, e,
|
|
1599
|
-
switch (
|
|
1598
|
+
var l = De(t, e, s);
|
|
1599
|
+
switch (o) {
|
|
1600
1600
|
case "animation":
|
|
1601
1601
|
case "animationName": {
|
|
1602
|
-
n += Be(
|
|
1602
|
+
n += Be(o) + ":" + l + ";";
|
|
1603
1603
|
break;
|
|
1604
1604
|
}
|
|
1605
1605
|
default:
|
|
1606
|
-
n +=
|
|
1606
|
+
n += o + "{" + l + "}";
|
|
1607
1607
|
}
|
|
1608
1608
|
}
|
|
1609
1609
|
}
|
|
1610
1610
|
return n;
|
|
1611
1611
|
}
|
|
1612
|
-
var Et = /label:\s*([^\s;{]+)\s*(;|$)/g,
|
|
1612
|
+
var Et = /label:\s*([^\s;{]+)\s*(;|$)/g, Q;
|
|
1613
1613
|
function Ve(t, e, i) {
|
|
1614
1614
|
if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
|
|
1615
1615
|
return t[0];
|
|
1616
1616
|
var n = !0, r = "";
|
|
1617
|
-
|
|
1618
|
-
var
|
|
1619
|
-
if (
|
|
1620
|
-
n = !1, r += De(i, e,
|
|
1617
|
+
Q = void 0;
|
|
1618
|
+
var o = t[0];
|
|
1619
|
+
if (o == null || o.raw === void 0)
|
|
1620
|
+
n = !1, r += De(i, e, o);
|
|
1621
1621
|
else {
|
|
1622
|
-
var
|
|
1623
|
-
r +=
|
|
1622
|
+
var s = o;
|
|
1623
|
+
r += s[0];
|
|
1624
1624
|
}
|
|
1625
1625
|
for (var a = 1; a < t.length; a++)
|
|
1626
1626
|
if (r += De(i, e, t[a]), n) {
|
|
1627
|
-
var d =
|
|
1627
|
+
var d = o;
|
|
1628
1628
|
r += d[a];
|
|
1629
1629
|
}
|
|
1630
1630
|
Et.lastIndex = 0;
|
|
@@ -1634,7 +1634,7 @@ function Ve(t, e, i) {
|
|
|
1634
1634
|
return {
|
|
1635
1635
|
name: u,
|
|
1636
1636
|
styles: r,
|
|
1637
|
-
next:
|
|
1637
|
+
next: Q
|
|
1638
1638
|
};
|
|
1639
1639
|
}
|
|
1640
1640
|
function Qt(t, e, i) {
|
|
@@ -1655,10 +1655,10 @@ var qn = function(e, i, n) {
|
|
|
1655
1655
|
qn(e, i);
|
|
1656
1656
|
var r = e.key + "-" + i.name;
|
|
1657
1657
|
if (e.inserted[i.name] === void 0) {
|
|
1658
|
-
var
|
|
1658
|
+
var o = i;
|
|
1659
1659
|
do
|
|
1660
|
-
e.insert(i ===
|
|
1661
|
-
while (
|
|
1660
|
+
e.insert(i === o ? "." + r : "", o, e.sheet, !0), o = o.next;
|
|
1661
|
+
while (o !== void 0);
|
|
1662
1662
|
}
|
|
1663
1663
|
};
|
|
1664
1664
|
function St(t, e) {
|
|
@@ -1687,20 +1687,20 @@ var Wn = function(e) {
|
|
|
1687
1687
|
name: u.name,
|
|
1688
1688
|
styles: "@keyframes " + f + "{" + u.styles + "}"
|
|
1689
1689
|
}), f;
|
|
1690
|
-
},
|
|
1690
|
+
}, o = function() {
|
|
1691
1691
|
for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
|
|
1692
1692
|
l[c] = arguments[c];
|
|
1693
1693
|
var u = Ve(l, i.registered);
|
|
1694
1694
|
St(i, u);
|
|
1695
|
-
},
|
|
1695
|
+
}, s = function() {
|
|
1696
1696
|
for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
|
|
1697
1697
|
l[c] = arguments[c];
|
|
1698
1698
|
return xt(i.registered, n, Jn(l));
|
|
1699
1699
|
};
|
|
1700
1700
|
return {
|
|
1701
1701
|
css: n,
|
|
1702
|
-
cx:
|
|
1703
|
-
injectGlobal:
|
|
1702
|
+
cx: s,
|
|
1703
|
+
injectGlobal: o,
|
|
1704
1704
|
keyframes: r,
|
|
1705
1705
|
hydrate: function(d) {
|
|
1706
1706
|
d.forEach(function(l) {
|
|
@@ -1719,37 +1719,37 @@ var Wn = function(e) {
|
|
|
1719
1719
|
for (var i = "", n = 0; n < e.length; n++) {
|
|
1720
1720
|
var r = e[n];
|
|
1721
1721
|
if (r != null) {
|
|
1722
|
-
var
|
|
1722
|
+
var o = void 0;
|
|
1723
1723
|
switch (typeof r) {
|
|
1724
1724
|
case "boolean":
|
|
1725
1725
|
break;
|
|
1726
1726
|
case "object": {
|
|
1727
1727
|
if (Array.isArray(r))
|
|
1728
|
-
|
|
1728
|
+
o = t(r);
|
|
1729
1729
|
else {
|
|
1730
|
-
|
|
1731
|
-
for (var
|
|
1732
|
-
r[
|
|
1730
|
+
o = "";
|
|
1731
|
+
for (var s in r)
|
|
1732
|
+
r[s] && s && (o && (o += " "), o += s);
|
|
1733
1733
|
}
|
|
1734
1734
|
break;
|
|
1735
1735
|
}
|
|
1736
1736
|
default:
|
|
1737
|
-
|
|
1737
|
+
o = r;
|
|
1738
1738
|
}
|
|
1739
|
-
|
|
1739
|
+
o && (i && (i += " "), i += o);
|
|
1740
1740
|
}
|
|
1741
1741
|
}
|
|
1742
1742
|
return i;
|
|
1743
1743
|
}, Yn = Wn({
|
|
1744
1744
|
key: "css"
|
|
1745
|
-
}), ge = Yn.css,
|
|
1745
|
+
}), ge = Yn.css, Le, C, ze, Rt, Ze = 0, Xt = [], R = Z, It = R.__b, Tt = R.__r, Ot = R.diffed, kt = R.__c, Dt = R.unmount, Lt = R.__;
|
|
1746
1746
|
function Zt(t, e) {
|
|
1747
1747
|
R.__h && R.__h(C, t, Ze || e), Ze = 0;
|
|
1748
1748
|
var i = C.__H || (C.__H = { __: [], __h: [] });
|
|
1749
1749
|
return t >= i.__.length && i.__.push({}), i.__[t];
|
|
1750
1750
|
}
|
|
1751
1751
|
function Qn(t, e) {
|
|
1752
|
-
var i = Zt(
|
|
1752
|
+
var i = Zt(Le++, 3);
|
|
1753
1753
|
!R.__s && ei(i.__H, e) && (i.__ = t, i.u = e, C.__H.__h.push(i));
|
|
1754
1754
|
}
|
|
1755
1755
|
function Xn(t) {
|
|
@@ -1758,7 +1758,7 @@ function Xn(t) {
|
|
|
1758
1758
|
}, []);
|
|
1759
1759
|
}
|
|
1760
1760
|
function at(t, e) {
|
|
1761
|
-
var i = Zt(
|
|
1761
|
+
var i = Zt(Le++, 7);
|
|
1762
1762
|
return ei(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
|
|
1763
1763
|
}
|
|
1764
1764
|
function Zn() {
|
|
@@ -1773,13 +1773,13 @@ function Zn() {
|
|
|
1773
1773
|
R.__b = function(t) {
|
|
1774
1774
|
C = null, It && It(t);
|
|
1775
1775
|
}, R.__ = function(t, e) {
|
|
1776
|
-
t && e.__k && e.__k.__m && (t.__m = e.__k.__m),
|
|
1776
|
+
t && e.__k && e.__k.__m && (t.__m = e.__k.__m), Lt && Lt(t, e);
|
|
1777
1777
|
}, R.__r = function(t) {
|
|
1778
|
-
Tt && Tt(t),
|
|
1778
|
+
Tt && Tt(t), Le = 0;
|
|
1779
1779
|
var e = (C = t.__c).__H;
|
|
1780
1780
|
e && (ze === C ? (e.__h = [], C.__h = [], e.__.forEach(function(i) {
|
|
1781
1781
|
i.__N && (i.__ = i.__N), i.u = i.__N = void 0;
|
|
1782
|
-
})) : (e.__h.forEach(Ie), e.__h.forEach(et), e.__h = [],
|
|
1782
|
+
})) : (e.__h.forEach(Ie), e.__h.forEach(et), e.__h = [], Le = 0)), ze = C;
|
|
1783
1783
|
}, R.diffed = function(t) {
|
|
1784
1784
|
Ot && Ot(t);
|
|
1785
1785
|
var e = t.__c;
|
|
@@ -1809,12 +1809,12 @@ R.__b = function(t) {
|
|
|
1809
1809
|
}
|
|
1810
1810
|
}), i.__H = void 0, e && R.__e(e, i.__v));
|
|
1811
1811
|
};
|
|
1812
|
-
var
|
|
1812
|
+
var Nt = typeof requestAnimationFrame == "function";
|
|
1813
1813
|
function er(t) {
|
|
1814
1814
|
var e, i = function() {
|
|
1815
|
-
clearTimeout(n),
|
|
1815
|
+
clearTimeout(n), Nt && cancelAnimationFrame(e), setTimeout(t);
|
|
1816
1816
|
}, n = setTimeout(i, 100);
|
|
1817
|
-
|
|
1817
|
+
Nt && (e = requestAnimationFrame(i));
|
|
1818
1818
|
}
|
|
1819
1819
|
function Ie(t) {
|
|
1820
1820
|
var e = C, i = t.__c;
|
|
@@ -1831,8 +1831,8 @@ function ei(t, e) {
|
|
|
1831
1831
|
}
|
|
1832
1832
|
var tr = Symbol.for("preact-signals");
|
|
1833
1833
|
function Ue() {
|
|
1834
|
-
if (
|
|
1835
|
-
|
|
1834
|
+
if (X > 1)
|
|
1835
|
+
X--;
|
|
1836
1836
|
else {
|
|
1837
1837
|
for (var t, e = !1; ue !== void 0; ) {
|
|
1838
1838
|
var i = ue;
|
|
@@ -1847,21 +1847,21 @@ function Ue() {
|
|
|
1847
1847
|
i = n;
|
|
1848
1848
|
}
|
|
1849
1849
|
}
|
|
1850
|
-
if (tt = 0,
|
|
1850
|
+
if (tt = 0, X--, e)
|
|
1851
1851
|
throw t;
|
|
1852
1852
|
}
|
|
1853
1853
|
}
|
|
1854
1854
|
function N(t) {
|
|
1855
|
-
if (
|
|
1855
|
+
if (X > 0)
|
|
1856
1856
|
return t();
|
|
1857
|
-
|
|
1857
|
+
X++;
|
|
1858
1858
|
try {
|
|
1859
1859
|
return t();
|
|
1860
1860
|
} finally {
|
|
1861
1861
|
Ue();
|
|
1862
1862
|
}
|
|
1863
1863
|
}
|
|
1864
|
-
var b = void 0, ue = void 0,
|
|
1864
|
+
var b = void 0, ue = void 0, X = 0, tt = 0, Ne = 0;
|
|
1865
1865
|
function ti(t) {
|
|
1866
1866
|
if (b !== void 0) {
|
|
1867
1867
|
var e = t.n;
|
|
@@ -1889,7 +1889,7 @@ k.prototype.U = function(t) {
|
|
|
1889
1889
|
};
|
|
1890
1890
|
k.prototype.subscribe = function(t) {
|
|
1891
1891
|
var e = this;
|
|
1892
|
-
return
|
|
1892
|
+
return oe(function() {
|
|
1893
1893
|
var i = e.value, n = b;
|
|
1894
1894
|
b = void 0;
|
|
1895
1895
|
try {
|
|
@@ -1924,7 +1924,7 @@ Object.defineProperty(k.prototype, "value", { get: function() {
|
|
|
1924
1924
|
if (t !== this.v) {
|
|
1925
1925
|
if (tt > 100)
|
|
1926
1926
|
throw new Error("Cycle detected");
|
|
1927
|
-
this.v = t, this.i++,
|
|
1927
|
+
this.v = t, this.i++, Ne++, X++;
|
|
1928
1928
|
try {
|
|
1929
1929
|
for (var e = this.t; e !== void 0; e = e.x)
|
|
1930
1930
|
e.t.N();
|
|
@@ -1959,14 +1959,14 @@ function ri(t) {
|
|
|
1959
1959
|
t.s = i;
|
|
1960
1960
|
}
|
|
1961
1961
|
function re(t) {
|
|
1962
|
-
k.call(this, void 0), this.x = t, this.s = void 0, this.g =
|
|
1962
|
+
k.call(this, void 0), this.x = t, this.s = void 0, this.g = Ne - 1, this.f = 4;
|
|
1963
1963
|
}
|
|
1964
1964
|
(re.prototype = new k()).h = function() {
|
|
1965
1965
|
if (this.f &= -3, 1 & this.f)
|
|
1966
1966
|
return !1;
|
|
1967
|
-
if ((36 & this.f) == 32 || (this.f &= -5, this.g ===
|
|
1967
|
+
if ((36 & this.f) == 32 || (this.f &= -5, this.g === Ne))
|
|
1968
1968
|
return !0;
|
|
1969
|
-
if (this.g =
|
|
1969
|
+
if (this.g = Ne, this.f |= 1, this.i > 0 && !ii(this))
|
|
1970
1970
|
return this.f &= -2, !0;
|
|
1971
1971
|
var t = b;
|
|
1972
1972
|
try {
|
|
@@ -2011,10 +2011,10 @@ Object.defineProperty(re.prototype, "value", { get: function() {
|
|
|
2011
2011
|
function fe(t) {
|
|
2012
2012
|
return new re(t);
|
|
2013
2013
|
}
|
|
2014
|
-
function
|
|
2014
|
+
function oi(t) {
|
|
2015
2015
|
var e = t.u;
|
|
2016
2016
|
if (t.u = void 0, typeof e == "function") {
|
|
2017
|
-
|
|
2017
|
+
X++;
|
|
2018
2018
|
var i = b;
|
|
2019
2019
|
b = void 0;
|
|
2020
2020
|
try {
|
|
@@ -2029,7 +2029,7 @@ function si(t) {
|
|
|
2029
2029
|
function dt(t) {
|
|
2030
2030
|
for (var e = t.s; e !== void 0; e = e.n)
|
|
2031
2031
|
e.S.U(e);
|
|
2032
|
-
t.x = void 0, t.s = void 0,
|
|
2032
|
+
t.x = void 0, t.s = void 0, oi(t);
|
|
2033
2033
|
}
|
|
2034
2034
|
function ir(t) {
|
|
2035
2035
|
if (b !== this)
|
|
@@ -2053,7 +2053,7 @@ me.prototype.c = function() {
|
|
|
2053
2053
|
me.prototype.S = function() {
|
|
2054
2054
|
if (1 & this.f)
|
|
2055
2055
|
throw new Error("Cycle detected");
|
|
2056
|
-
this.f |= 1, this.f &= -9,
|
|
2056
|
+
this.f |= 1, this.f &= -9, oi(this), ni(this), X++;
|
|
2057
2057
|
var t = b;
|
|
2058
2058
|
return b = this, ir.bind(this, t);
|
|
2059
2059
|
};
|
|
@@ -2063,7 +2063,7 @@ me.prototype.N = function() {
|
|
|
2063
2063
|
me.prototype.d = function() {
|
|
2064
2064
|
this.f |= 8, 1 & this.f || dt(this);
|
|
2065
2065
|
};
|
|
2066
|
-
function
|
|
2066
|
+
function oe(t) {
|
|
2067
2067
|
var e = new me(t);
|
|
2068
2068
|
try {
|
|
2069
2069
|
e.c();
|
|
@@ -2072,11 +2072,11 @@ function se(t) {
|
|
|
2072
2072
|
}
|
|
2073
2073
|
return e.d.bind(e);
|
|
2074
2074
|
}
|
|
2075
|
-
var lt, Ge,
|
|
2076
|
-
|
|
2075
|
+
var lt, Ge, si = [], ai = [];
|
|
2076
|
+
oe(function() {
|
|
2077
2077
|
lt = this.N;
|
|
2078
2078
|
})();
|
|
2079
|
-
function
|
|
2079
|
+
function se(t, e) {
|
|
2080
2080
|
Z[t] = e.bind(null, Z[t] || function() {
|
|
2081
2081
|
});
|
|
2082
2082
|
}
|
|
@@ -2097,7 +2097,7 @@ function di(t) {
|
|
|
2097
2097
|
return v === 0 ? 0 : v === !0 ? "" : v || "";
|
|
2098
2098
|
}), c = fe(function() {
|
|
2099
2099
|
return !Array.isArray(l.value) && !_i(l.value);
|
|
2100
|
-
}), u =
|
|
2100
|
+
}), u = oe(function() {
|
|
2101
2101
|
if (this.N = ci, c.value) {
|
|
2102
2102
|
var v = l.value;
|
|
2103
2103
|
a.__v && a.__v.__e && a.__v.__e.nodeType === 3 && (a.__v.__e.data = v);
|
|
@@ -2106,72 +2106,72 @@ function di(t) {
|
|
|
2106
2106
|
return e.__$u.d = function() {
|
|
2107
2107
|
u(), f.call(this);
|
|
2108
2108
|
}, [c, l];
|
|
2109
|
-
}, []),
|
|
2110
|
-
return
|
|
2109
|
+
}, []), o = r[0], s = r[1];
|
|
2110
|
+
return o.value ? s.peek() : s.value;
|
|
2111
2111
|
}
|
|
2112
2112
|
di.displayName = "_st";
|
|
2113
2113
|
Object.defineProperties(k.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: di }, props: { configurable: !0, get: function() {
|
|
2114
2114
|
return { data: this };
|
|
2115
2115
|
} }, __b: { configurable: !0, value: 1 } });
|
|
2116
|
-
|
|
2116
|
+
se("__b", function(t, e) {
|
|
2117
2117
|
if (typeof e.type == "string") {
|
|
2118
2118
|
var i, n = e.props;
|
|
2119
2119
|
for (var r in n)
|
|
2120
2120
|
if (r !== "children") {
|
|
2121
|
-
var
|
|
2122
|
-
|
|
2121
|
+
var o = n[r];
|
|
2122
|
+
o instanceof k && (i || (e.__np = i = {}), i[r] = o, n[r] = o.peek());
|
|
2123
2123
|
}
|
|
2124
2124
|
}
|
|
2125
2125
|
t(e);
|
|
2126
2126
|
});
|
|
2127
|
-
|
|
2127
|
+
se("__r", function(t, e) {
|
|
2128
2128
|
Pe();
|
|
2129
2129
|
var i, n = e.__c;
|
|
2130
2130
|
n && (n.__$f &= -2, (i = n.__$u) === void 0 && (n.__$u = i = function(r) {
|
|
2131
|
-
var
|
|
2132
|
-
return
|
|
2133
|
-
|
|
2134
|
-
}),
|
|
2131
|
+
var o;
|
|
2132
|
+
return oe(function() {
|
|
2133
|
+
o = this;
|
|
2134
|
+
}), o.c = function() {
|
|
2135
2135
|
n.__$f |= 1, n.setState({});
|
|
2136
|
-
},
|
|
2136
|
+
}, o;
|
|
2137
2137
|
}())), Pe(i), t(e);
|
|
2138
2138
|
});
|
|
2139
|
-
|
|
2139
|
+
se("__e", function(t, e, i, n) {
|
|
2140
2140
|
Pe(), t(e, i, n);
|
|
2141
2141
|
});
|
|
2142
|
-
|
|
2142
|
+
se("diffed", function(t, e) {
|
|
2143
2143
|
Pe();
|
|
2144
2144
|
var i;
|
|
2145
2145
|
if (typeof e.type == "string" && (i = e.__e)) {
|
|
2146
2146
|
var n = e.__np, r = e.props;
|
|
2147
2147
|
if (n) {
|
|
2148
|
-
var
|
|
2149
|
-
if (
|
|
2150
|
-
for (var
|
|
2151
|
-
var a = s
|
|
2152
|
-
a !== void 0 && !(
|
|
2148
|
+
var o = i.U;
|
|
2149
|
+
if (o)
|
|
2150
|
+
for (var s in o) {
|
|
2151
|
+
var a = o[s];
|
|
2152
|
+
a !== void 0 && !(s in n) && (a.d(), o[s] = void 0);
|
|
2153
2153
|
}
|
|
2154
2154
|
else
|
|
2155
|
-
|
|
2155
|
+
o = {}, i.U = o;
|
|
2156
2156
|
for (var d in n) {
|
|
2157
|
-
var l =
|
|
2158
|
-
l === void 0 ? (l = nr(i, d, c, r),
|
|
2157
|
+
var l = o[d], c = n[d];
|
|
2158
|
+
l === void 0 ? (l = nr(i, d, c, r), o[d] = l) : l.o(c, r);
|
|
2159
2159
|
}
|
|
2160
2160
|
}
|
|
2161
2161
|
}
|
|
2162
2162
|
t(e);
|
|
2163
2163
|
});
|
|
2164
2164
|
function nr(t, e, i, n) {
|
|
2165
|
-
var r = e in t && t.ownerSVGElement === void 0,
|
|
2166
|
-
return { o: function(
|
|
2167
|
-
|
|
2168
|
-
}, d:
|
|
2165
|
+
var r = e in t && t.ownerSVGElement === void 0, o = I(i);
|
|
2166
|
+
return { o: function(s, a) {
|
|
2167
|
+
o.value = s, n = a;
|
|
2168
|
+
}, d: oe(function() {
|
|
2169
2169
|
this.N = ci;
|
|
2170
|
-
var
|
|
2171
|
-
n[e] !==
|
|
2170
|
+
var s = o.value.value;
|
|
2171
|
+
n[e] !== s && (n[e] = s, r ? t[e] = s : s ? t.setAttribute(e, s) : t.removeAttribute(e));
|
|
2172
2172
|
}) };
|
|
2173
2173
|
}
|
|
2174
|
-
|
|
2174
|
+
se("unmount", function(t, e) {
|
|
2175
2175
|
if (typeof e.type == "string") {
|
|
2176
2176
|
var i = e.__e;
|
|
2177
2177
|
if (i) {
|
|
@@ -2179,21 +2179,21 @@ oe("unmount", function(t, e) {
|
|
|
2179
2179
|
if (n) {
|
|
2180
2180
|
i.U = void 0;
|
|
2181
2181
|
for (var r in n) {
|
|
2182
|
-
var
|
|
2183
|
-
|
|
2182
|
+
var o = n[r];
|
|
2183
|
+
o && o.d();
|
|
2184
2184
|
}
|
|
2185
2185
|
}
|
|
2186
2186
|
}
|
|
2187
2187
|
} else {
|
|
2188
|
-
var
|
|
2189
|
-
if (
|
|
2190
|
-
var a =
|
|
2191
|
-
a && (
|
|
2188
|
+
var s = e.__c;
|
|
2189
|
+
if (s) {
|
|
2190
|
+
var a = s.__$u;
|
|
2191
|
+
a && (s.__$u = void 0, a.d());
|
|
2192
2192
|
}
|
|
2193
2193
|
}
|
|
2194
2194
|
t(e);
|
|
2195
2195
|
});
|
|
2196
|
-
|
|
2196
|
+
se("__h", function(t, e, i, n) {
|
|
2197
2197
|
(n < 3 || n === 9) && (e.__$f |= 2), t(e, i, n);
|
|
2198
2198
|
});
|
|
2199
2199
|
pi.prototype.shouldComponentUpdate = function(t, e) {
|
|
@@ -2201,13 +2201,13 @@ pi.prototype.shouldComponentUpdate = function(t, e) {
|
|
|
2201
2201
|
for (var r in e)
|
|
2202
2202
|
return !0;
|
|
2203
2203
|
if (this.__f || typeof this.u == "boolean" && this.u === !0) {
|
|
2204
|
-
var
|
|
2205
|
-
if (!(n ||
|
|
2204
|
+
var o = 2 & this.__$f;
|
|
2205
|
+
if (!(n || o || 4 & this.__$f) || 1 & this.__$f)
|
|
2206
2206
|
return !0;
|
|
2207
2207
|
} else if (!(n || 4 & this.__$f) || 3 & this.__$f)
|
|
2208
2208
|
return !0;
|
|
2209
|
-
for (var
|
|
2210
|
-
if (
|
|
2209
|
+
for (var s in t)
|
|
2210
|
+
if (s !== "__source" && t[s] !== this.props[s])
|
|
2211
2211
|
return !0;
|
|
2212
2212
|
for (var a in this.props)
|
|
2213
2213
|
if (!(a in t))
|
|
@@ -2223,19 +2223,19 @@ var rr = typeof requestAnimationFrame == "undefined" ? setTimeout : function(t)
|
|
|
2223
2223
|
var e = function() {
|
|
2224
2224
|
clearTimeout(i), cancelAnimationFrame(n), t();
|
|
2225
2225
|
}, i = setTimeout(e, 100), n = requestAnimationFrame(e);
|
|
2226
|
-
},
|
|
2226
|
+
}, or = function(t) {
|
|
2227
2227
|
queueMicrotask(function() {
|
|
2228
2228
|
queueMicrotask(t);
|
|
2229
2229
|
});
|
|
2230
2230
|
};
|
|
2231
|
-
function
|
|
2231
|
+
function sr() {
|
|
2232
2232
|
N(function() {
|
|
2233
|
-
for (var t; t =
|
|
2233
|
+
for (var t; t = si.shift(); )
|
|
2234
2234
|
lt.call(t);
|
|
2235
2235
|
});
|
|
2236
2236
|
}
|
|
2237
2237
|
function ar() {
|
|
2238
|
-
|
|
2238
|
+
si.push(this) === 1 && (Z.requestAnimationFrame || rr)(sr);
|
|
2239
2239
|
}
|
|
2240
2240
|
function dr() {
|
|
2241
2241
|
N(function() {
|
|
@@ -2244,12 +2244,12 @@ function dr() {
|
|
|
2244
2244
|
});
|
|
2245
2245
|
}
|
|
2246
2246
|
function ci() {
|
|
2247
|
-
ai.push(this) === 1 && (Z.requestAnimationFrame ||
|
|
2247
|
+
ai.push(this) === 1 && (Z.requestAnimationFrame || or)(dr);
|
|
2248
2248
|
}
|
|
2249
2249
|
function lr(t) {
|
|
2250
2250
|
var e = Xn(t);
|
|
2251
2251
|
e.current = t, Qn(function() {
|
|
2252
|
-
return
|
|
2252
|
+
return oe(function() {
|
|
2253
2253
|
return this.N = ar, e.current();
|
|
2254
2254
|
});
|
|
2255
2255
|
}, []);
|
|
@@ -2289,16 +2289,16 @@ function cr(t, e) {
|
|
|
2289
2289
|
}, [e]);
|
|
2290
2290
|
}
|
|
2291
2291
|
var ur = 0;
|
|
2292
|
-
function
|
|
2292
|
+
function w(t, e, i, n, r, o) {
|
|
2293
2293
|
e || (e = {});
|
|
2294
|
-
var
|
|
2294
|
+
var s, a, d = e;
|
|
2295
2295
|
if ("ref" in d)
|
|
2296
2296
|
for (a in d = {}, e)
|
|
2297
|
-
a == "ref" ?
|
|
2298
|
-
var l = { type: t, props: d, key: i, ref:
|
|
2299
|
-
if (typeof t == "function" && (
|
|
2300
|
-
for (a in
|
|
2301
|
-
d[a] === void 0 && (d[a] =
|
|
2297
|
+
a == "ref" ? s = e[a] : d[a] = e[a];
|
|
2298
|
+
var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --ur, __i: -1, __u: 0, __source: r, __self: o };
|
|
2299
|
+
if (typeof t == "function" && (s = t.defaultProps))
|
|
2300
|
+
for (a in s)
|
|
2301
|
+
d[a] === void 0 && (d[a] = s[a]);
|
|
2302
2302
|
return Z.vnode && Z.vnode(l), l;
|
|
2303
2303
|
}
|
|
2304
2304
|
const fr = ge`
|
|
@@ -2376,48 +2376,48 @@ const fr = ge`
|
|
|
2376
2376
|
}
|
|
2377
2377
|
}
|
|
2378
2378
|
}
|
|
2379
|
-
`,
|
|
2379
|
+
`, V = I(null), it = I(""), nt = I(""), Te = I(!1), hr = () => {
|
|
2380
2380
|
var t;
|
|
2381
|
-
(t =
|
|
2381
|
+
(t = V.value) == null || t.call(V, !1);
|
|
2382
2382
|
}, vr = () => {
|
|
2383
2383
|
var t;
|
|
2384
|
-
(t =
|
|
2384
|
+
(t = V.value) == null || t.call(V, !0);
|
|
2385
2385
|
}, pr = async (t) => {
|
|
2386
2386
|
let {
|
|
2387
2387
|
title: e,
|
|
2388
2388
|
content: i
|
|
2389
2389
|
} = t;
|
|
2390
|
-
return
|
|
2391
|
-
|
|
2390
|
+
return V.value && (V.value(!1), N(() => {
|
|
2391
|
+
V.value = null, Te.value = !1;
|
|
2392
2392
|
})), N(() => {
|
|
2393
2393
|
it.value = e || "", nt.value = i || "", Te.value = !0;
|
|
2394
2394
|
}), new Promise((n) => {
|
|
2395
|
-
|
|
2395
|
+
V.value = (r) => {
|
|
2396
2396
|
N(() => {
|
|
2397
|
-
|
|
2397
|
+
V.value = null, Te.value = !1, it.value = "", nt.value = "";
|
|
2398
2398
|
}), n(r);
|
|
2399
2399
|
};
|
|
2400
2400
|
});
|
|
2401
|
-
}, _r = () => Te.value ?
|
|
2401
|
+
}, _r = () => Te.value ? w("div", {
|
|
2402
2402
|
className: fr,
|
|
2403
|
-
children:
|
|
2403
|
+
children: w("div", {
|
|
2404
2404
|
className: "card-wrapper",
|
|
2405
|
-
children: [
|
|
2405
|
+
children: [w("div", {
|
|
2406
2406
|
className: "body",
|
|
2407
|
-
children: [
|
|
2407
|
+
children: [w("div", {
|
|
2408
2408
|
className: "title",
|
|
2409
2409
|
children: it.value
|
|
2410
|
-
}),
|
|
2410
|
+
}), w("div", {
|
|
2411
2411
|
className: "content",
|
|
2412
2412
|
children: nt.value
|
|
2413
2413
|
})]
|
|
2414
|
-
}),
|
|
2414
|
+
}), w("div", {
|
|
2415
2415
|
className: "footer",
|
|
2416
|
-
children: [
|
|
2416
|
+
children: [w("button", {
|
|
2417
2417
|
onClick: hr,
|
|
2418
2418
|
className: "cancel-btn",
|
|
2419
2419
|
children: "Cancel"
|
|
2420
|
-
}),
|
|
2420
|
+
}), w("button", {
|
|
2421
2421
|
onClick: vr,
|
|
2422
2422
|
className: "confirm-btm",
|
|
2423
2423
|
children: "Confirm"
|
|
@@ -2476,59 +2476,59 @@ const fr = ge`
|
|
|
2476
2476
|
state: r
|
|
2477
2477
|
} = t;
|
|
2478
2478
|
const {
|
|
2479
|
-
startTimestamp:
|
|
2480
|
-
timerPaused:
|
|
2479
|
+
startTimestamp: o,
|
|
2480
|
+
timerPaused: s
|
|
2481
2481
|
} = r, a = li(e);
|
|
2482
2482
|
lr(() => {
|
|
2483
|
-
|
|
2483
|
+
o.value && (a.value = e);
|
|
2484
2484
|
}), cr(() => {
|
|
2485
2485
|
a.value > 0 ? a.value -= 1 : N(() => {
|
|
2486
|
-
|
|
2486
|
+
s.value = !0, a.value = 0;
|
|
2487
2487
|
});
|
|
2488
|
-
},
|
|
2488
|
+
}, s.value ? null : 1e3);
|
|
2489
2489
|
const d = fe(() => {
|
|
2490
|
-
if (i === "interstitial" || i === "rewarded_insterstitial" || !
|
|
2490
|
+
if (i === "interstitial" || i === "rewarded_insterstitial" || !o.value)
|
|
2491
2491
|
return !1;
|
|
2492
|
-
const v = Date.now() -
|
|
2492
|
+
const v = Date.now() - o.value;
|
|
2493
2493
|
return a.value > 0 && e - a.value >= 5 && v >= 5e3;
|
|
2494
2494
|
}), l = fe(() => {
|
|
2495
2495
|
if (i === "interstitial")
|
|
2496
2496
|
return !0;
|
|
2497
|
-
if (!
|
|
2497
|
+
if (!o.value)
|
|
2498
2498
|
return !1;
|
|
2499
|
-
const v = Date.now() -
|
|
2499
|
+
const v = Date.now() - o.value;
|
|
2500
2500
|
return a.value <= 0 && v >= (e - 1) * 1e3 && e > 5;
|
|
2501
2501
|
}), c = fe(() => i === "interstitial" ? !1 : !d.value && !l.value), u = async () => {
|
|
2502
|
-
if (
|
|
2502
|
+
if (s.value = !0, !await pr({
|
|
2503
2503
|
title: "Are you sure?",
|
|
2504
2504
|
content: "You will lose your reward if you dismiss this Ad."
|
|
2505
2505
|
})) {
|
|
2506
|
-
|
|
2506
|
+
s.value = !1;
|
|
2507
2507
|
return;
|
|
2508
2508
|
}
|
|
2509
2509
|
n("dismiss"), N(() => {
|
|
2510
|
-
|
|
2510
|
+
s.value = !0, a.value = 0, o.value = null;
|
|
2511
2511
|
});
|
|
2512
2512
|
}, f = () => {
|
|
2513
2513
|
n("viewed"), N(() => {
|
|
2514
|
-
|
|
2514
|
+
s.value = !0, a.value = 0, o.value = null;
|
|
2515
2515
|
});
|
|
2516
2516
|
};
|
|
2517
|
-
return
|
|
2517
|
+
return w("div", {
|
|
2518
2518
|
className: yr,
|
|
2519
|
-
children: [a.value > 0 && i !== "interstitial" &&
|
|
2519
|
+
children: [a.value > 0 && i !== "interstitial" && w("div", {
|
|
2520
2520
|
className: "timer",
|
|
2521
2521
|
children: [a.value, "s"]
|
|
2522
|
-
}),
|
|
2522
|
+
}), w("button", {
|
|
2523
2523
|
onClick: d.value ? u : l.value ? f : void 0,
|
|
2524
2524
|
disabled: c.value,
|
|
2525
|
-
children:
|
|
2525
|
+
children: w("svg", {
|
|
2526
2526
|
width: "12",
|
|
2527
2527
|
height: "12",
|
|
2528
2528
|
viewBox: "0 0 14 14",
|
|
2529
2529
|
fill: "none",
|
|
2530
2530
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2531
|
-
children:
|
|
2531
|
+
children: w("path", {
|
|
2532
2532
|
d: "M13.3 0.710215C12.91 0.320215 12.28 0.320215 11.89 0.710215L6.99997 5.59022L2.10997 0.700215C1.71997 0.310215 1.08997 0.310215 0.699971 0.700215C0.309971 1.09021 0.309971 1.72022 0.699971 2.11022L5.58997 7.00022L0.699971 11.8902C0.309971 12.2802 0.309971 12.9102 0.699971 13.3002C1.08997 13.6902 1.71997 13.6902 2.10997 13.3002L6.99997 8.41021L11.89 13.3002C12.28 13.6902 12.91 13.6902 13.3 13.3002C13.69 12.9102 13.69 12.2802 13.3 11.8902L8.40997 7.00022L13.3 2.11022C13.68 1.73022 13.68 1.09022 13.3 0.710215Z",
|
|
2533
2533
|
fill: "white"
|
|
2534
2534
|
})
|
|
@@ -2536,15 +2536,15 @@ const fr = ge`
|
|
|
2536
2536
|
})]
|
|
2537
2537
|
});
|
|
2538
2538
|
}, ui = () => {
|
|
2539
|
-
const t = I(), e = I(), i = I(), n = I(), r = I(),
|
|
2539
|
+
const t = I(), e = I(), i = I(), n = I(), r = I(), o = I(!1), s = I(15), a = I(""), d = I("reward");
|
|
2540
2540
|
return {
|
|
2541
2541
|
afterAd: t,
|
|
2542
2542
|
adDismissed: e,
|
|
2543
2543
|
adViewed: i,
|
|
2544
2544
|
adBreakDone: n,
|
|
2545
2545
|
adLoaded: r,
|
|
2546
|
-
visible:
|
|
2547
|
-
countdown:
|
|
2546
|
+
visible: o,
|
|
2547
|
+
countdown: s,
|
|
2548
2548
|
src: a,
|
|
2549
2549
|
mode: d
|
|
2550
2550
|
};
|
|
@@ -2575,33 +2575,33 @@ const fr = ge`
|
|
|
2575
2575
|
afterAd: i,
|
|
2576
2576
|
adDismissed: n,
|
|
2577
2577
|
adViewed: r,
|
|
2578
|
-
adBreakDone:
|
|
2579
|
-
adLoaded:
|
|
2578
|
+
adBreakDone: o,
|
|
2579
|
+
adLoaded: s,
|
|
2580
2580
|
visible: a,
|
|
2581
2581
|
countdown: d,
|
|
2582
2582
|
src: l,
|
|
2583
2583
|
mode: c
|
|
2584
2584
|
} = e, u = mi(() => gr(), []), f = (y) => {
|
|
2585
|
-
var _,
|
|
2586
|
-
a.value = !1, y === "dismiss" ? (_ = n.value) == null || _.call(n) : y === "viewed" && ((
|
|
2585
|
+
var _, A, h, p;
|
|
2586
|
+
a.value = !1, y === "dismiss" ? (_ = n.value) == null || _.call(n) : y === "viewed" && ((A = r.value) == null || A.call(r)), (h = i.value) == null || h.call(i), (p = o.value) == null || p.call(o);
|
|
2587
2587
|
}, v = () => {
|
|
2588
2588
|
var y;
|
|
2589
2589
|
(c.value === "reward" || c.value === "rewarded_insterstitial") && setTimeout(() => {
|
|
2590
2590
|
u.startTimer();
|
|
2591
|
-
}, 100), (y =
|
|
2591
|
+
}, 100), (y = s.value) == null || y.call(s);
|
|
2592
2592
|
};
|
|
2593
|
-
return a.value ?
|
|
2593
|
+
return a.value ? w("div", {
|
|
2594
2594
|
className: Ar,
|
|
2595
|
-
children: [
|
|
2595
|
+
children: [w(mr, {
|
|
2596
2596
|
mode: c.value,
|
|
2597
2597
|
onClose: f,
|
|
2598
2598
|
countdown: d.value,
|
|
2599
2599
|
state: u
|
|
2600
|
-
}), a.value &&
|
|
2600
|
+
}), a.value && w("iframe", {
|
|
2601
2601
|
src: l.value,
|
|
2602
2602
|
onLoad: v,
|
|
2603
2603
|
sandbox: "allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"
|
|
2604
|
-
}),
|
|
2604
|
+
}), w(_r, {})]
|
|
2605
2605
|
}) : null;
|
|
2606
2606
|
};
|
|
2607
2607
|
function W(t, e, i) {
|
|
@@ -2629,7 +2629,7 @@ class Er {
|
|
|
2629
2629
|
}
|
|
2630
2630
|
async init() {
|
|
2631
2631
|
var e;
|
|
2632
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), he(
|
|
2632
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), he(w(fi, {
|
|
2633
2633
|
state: this.state
|
|
2634
2634
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
|
|
2635
2635
|
}
|
|
@@ -2645,7 +2645,7 @@ class Er {
|
|
|
2645
2645
|
};
|
|
2646
2646
|
}
|
|
2647
2647
|
async adBreak(e, i) {
|
|
2648
|
-
var n, r,
|
|
2648
|
+
var n, r, o, s, a, d, l, c;
|
|
2649
2649
|
if (!this.initialized || !this.adsOverlay || !i.params.url) {
|
|
2650
2650
|
(n = e.adBreakDone) == null || n.call(e, {
|
|
2651
2651
|
breakType: e.type,
|
|
@@ -2666,7 +2666,7 @@ class Er {
|
|
|
2666
2666
|
}
|
|
2667
2667
|
switch (e.type) {
|
|
2668
2668
|
case "preroll": {
|
|
2669
|
-
(
|
|
2669
|
+
(o = e.adBreakDone) == null || o.call(e, {
|
|
2670
2670
|
breakType: e.type,
|
|
2671
2671
|
breakName: "",
|
|
2672
2672
|
breakFormat: "interstitial",
|
|
@@ -2678,7 +2678,7 @@ class Er {
|
|
|
2678
2678
|
case "browse":
|
|
2679
2679
|
case "next":
|
|
2680
2680
|
case "pause": {
|
|
2681
|
-
(
|
|
2681
|
+
(s = e.beforeAd) == null || s.call(e);
|
|
2682
2682
|
const u = () => {
|
|
2683
2683
|
var v;
|
|
2684
2684
|
this.adsIsShowing = !1, (v = e.afterAd) == null || v.call(e);
|
|
@@ -2724,7 +2724,7 @@ class Er {
|
|
|
2724
2724
|
N(() => {
|
|
2725
2725
|
this.state.afterAd.value = u, this.state.adDismissed.value = v, this.state.adViewed.value = y, this.state.adBreakDone.value = _;
|
|
2726
2726
|
});
|
|
2727
|
-
const
|
|
2727
|
+
const A = () => {
|
|
2728
2728
|
var h;
|
|
2729
2729
|
if (this.lastUnDisplayedAdBreak = null, !this.adsOverlay) {
|
|
2730
2730
|
(h = e.adBreakDone) == null || h.call(e, {
|
|
@@ -2740,13 +2740,13 @@ class Er {
|
|
|
2740
2740
|
this.state.countdown.value = (p = i.params.countdown) != null ? p : 15, this.state.src.value = i.params.url, this.state.mode.value = "reward", this.state.visible.value = !0;
|
|
2741
2741
|
});
|
|
2742
2742
|
};
|
|
2743
|
-
this.lastUnDisplayedAdBreak = e, (c = e.beforeReward) == null || c.call(e,
|
|
2743
|
+
this.lastUnDisplayedAdBreak = e, (c = e.beforeReward) == null || c.call(e, A);
|
|
2744
2744
|
break;
|
|
2745
2745
|
}
|
|
2746
2746
|
}
|
|
2747
2747
|
}
|
|
2748
2748
|
}
|
|
2749
|
-
function
|
|
2749
|
+
function Y(t, e, i) {
|
|
2750
2750
|
return (e = Sr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2751
2751
|
}
|
|
2752
2752
|
function Sr(t) {
|
|
@@ -2765,9 +2765,9 @@ function xr(t, e) {
|
|
|
2765
2765
|
}
|
|
2766
2766
|
return (e === "string" ? String : Number)(t);
|
|
2767
2767
|
}
|
|
2768
|
-
class
|
|
2768
|
+
class to {
|
|
2769
2769
|
constructor(e) {
|
|
2770
|
-
if (
|
|
2770
|
+
if (Y(this, "context", void 0), Y(this, "contextInfo", void 0), Y(this, "providers", {}), Y(this, "channelPolicy", void 0), Y(this, "adsActionDetection", void 0), Y(this, "adsTrackSerializer", void 0), Y(this, "initialized", !1), Y(this, "initializedTimeStamp", Date.now()), e)
|
|
2771
2771
|
this.context = e, this.channelPolicy = new an(this.context), this.adsActionDetection = new xi(this.context), this.adsTrackSerializer = new Vt(this.context), this.contextInfo = this.context.getContextInfo();
|
|
2772
2772
|
else
|
|
2773
2773
|
throw new Error("JoliboxAdsForGame requires a configuration object");
|
|
@@ -2827,9 +2827,18 @@ class ts {
|
|
|
2827
2827
|
this.providers.ADSENSE ? this.providers.ADSENSE.adConfig(e) : window.adsbygoogle.push(e);
|
|
2828
2828
|
}
|
|
2829
2829
|
async adBreak(e) {
|
|
2830
|
-
var
|
|
2831
|
-
if (
|
|
2832
|
-
(
|
|
2830
|
+
var r, o, s, a, d, l, c, u, f;
|
|
2831
|
+
if (Date.now() - this.initializedTimeStamp < 3e3) {
|
|
2832
|
+
(r = e.adBreakDone) == null || r.call(e, {
|
|
2833
|
+
breakType: e.type,
|
|
2834
|
+
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
2835
|
+
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
2836
|
+
breakStatus: "noAdPreloaded"
|
|
2837
|
+
});
|
|
2838
|
+
return;
|
|
2839
|
+
}
|
|
2840
|
+
if (this.initialized || await this.init(), e.type !== "reward" && !this.channelPolicy.shouldBypassCallingInterstitial()) {
|
|
2841
|
+
(o = e.adBreakDone) == null || o.call(e, {
|
|
2833
2842
|
breakType: e.type,
|
|
2834
2843
|
breakName: "skipInterstitials",
|
|
2835
2844
|
breakFormat: "interstitial",
|
|
@@ -2837,16 +2846,19 @@ class ts {
|
|
|
2837
2846
|
});
|
|
2838
2847
|
return;
|
|
2839
2848
|
}
|
|
2840
|
-
this.context.checkNetwork()
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2849
|
+
if (!this.context.checkNetwork()) {
|
|
2850
|
+
(s = e.adBreakDone) == null || s.call(e, {
|
|
2851
|
+
breakType: e.type,
|
|
2852
|
+
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
2853
|
+
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
2854
|
+
breakStatus: "noAdPreloaded"
|
|
2855
|
+
});
|
|
2856
|
+
return;
|
|
2857
|
+
}
|
|
2846
2858
|
try {
|
|
2847
2859
|
const {
|
|
2848
|
-
data:
|
|
2849
|
-
code:
|
|
2860
|
+
data: v,
|
|
2861
|
+
code: y
|
|
2850
2862
|
} = await this.context.httpClient.post("/api/ads/info", {
|
|
2851
2863
|
data: {
|
|
2852
2864
|
contextData: this.getRequestContextData("AdsAFGSDKAdBreak"),
|
|
@@ -2856,52 +2868,52 @@ class ts {
|
|
|
2856
2868
|
name: e.type === "preroll" ? "" : e.name
|
|
2857
2869
|
}
|
|
2858
2870
|
});
|
|
2859
|
-
if (
|
|
2860
|
-
(
|
|
2871
|
+
if (y !== "SUCCESS") {
|
|
2872
|
+
(a = e.adBreakDone) == null || a.call(e, {
|
|
2861
2873
|
breakType: e.type,
|
|
2862
|
-
breakName: "
|
|
2874
|
+
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
2863
2875
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
2864
2876
|
breakStatus: "noAdPreloaded"
|
|
2865
2877
|
});
|
|
2866
2878
|
return;
|
|
2867
2879
|
} else {
|
|
2868
|
-
const
|
|
2869
|
-
if (
|
|
2870
|
-
(
|
|
2880
|
+
const _ = v;
|
|
2881
|
+
if (_.length === 0) {
|
|
2882
|
+
(d = e.adBreakDone) == null || d.call(e, {
|
|
2871
2883
|
breakType: e.type,
|
|
2872
|
-
breakName: "
|
|
2884
|
+
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
2873
2885
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
2874
2886
|
breakStatus: "noAdPreloaded"
|
|
2875
2887
|
});
|
|
2876
2888
|
return;
|
|
2877
2889
|
}
|
|
2878
|
-
let
|
|
2879
|
-
const
|
|
2880
|
-
for (;
|
|
2881
|
-
const
|
|
2882
|
-
if (
|
|
2883
|
-
const [
|
|
2884
|
-
|
|
2890
|
+
let A = !0, h = null;
|
|
2891
|
+
const p = new bi(this.context);
|
|
2892
|
+
for ((l = this.context.eventEmitter) == null || l.emit("isAdShowing", !0), this.adsActionDetection.adBreakIsShowing = !0; _.length > 0; ) {
|
|
2893
|
+
const L = _.shift(), z = this.providers[L.provider];
|
|
2894
|
+
if (z) {
|
|
2895
|
+
const [$, j] = await p.callAdBreakAndContinue(z, e, L);
|
|
2896
|
+
A = $, h = j;
|
|
2885
2897
|
} else
|
|
2886
|
-
|
|
2898
|
+
A = !0, h = {
|
|
2887
2899
|
breakType: e.type,
|
|
2888
|
-
breakName: e.type === "preroll" ?
|
|
2900
|
+
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
2889
2901
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
2890
2902
|
breakStatus: "notReady"
|
|
2891
2903
|
};
|
|
2892
|
-
if (!
|
|
2904
|
+
if (!A)
|
|
2893
2905
|
break;
|
|
2894
2906
|
}
|
|
2895
|
-
|
|
2907
|
+
A && h && ((c = e.adBreakDone) == null || c.call(e, h));
|
|
2896
2908
|
}
|
|
2897
|
-
} catch (
|
|
2898
|
-
(
|
|
2909
|
+
} catch (v) {
|
|
2910
|
+
(u = e.adBreakDone) == null || u.call(e, {
|
|
2899
2911
|
breakType: e.type,
|
|
2900
2912
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
2901
2913
|
breakStatus: "noAdPreloaded"
|
|
2902
2914
|
});
|
|
2903
2915
|
} finally {
|
|
2904
|
-
(
|
|
2916
|
+
(f = this.context.eventEmitter) == null || f.emit("isAdShowing", !1), this.adsActionDetection.adBreakIsShowing = !1;
|
|
2905
2917
|
}
|
|
2906
2918
|
}
|
|
2907
2919
|
adUnit(e) {
|
|
@@ -2967,8 +2979,8 @@ class Tr {
|
|
|
2967
2979
|
async callAdRequestAndContinue(e, i, n) {
|
|
2968
2980
|
return this.currentProvider = e, new Promise((r) => {
|
|
2969
2981
|
this.continueCallback = r;
|
|
2970
|
-
const
|
|
2971
|
-
|
|
2982
|
+
const o = Object.assign({}, i);
|
|
2983
|
+
o.onAdRequested = this.wrapAdRequested(i.onAdRequested), o.onAdLoaded = this.wrapAdLoaded(i.onAdLoaded), o.onAdPlaying = this.wrapAdPlaying(i.onAdPlaying), o.onAdCompleted = this.wrapAdCompleted(i.onAdCompleted), o.onAdError = this.wrapAdError(i.onAdError), e.requestAd(o, n);
|
|
2972
2984
|
});
|
|
2973
2985
|
}
|
|
2974
2986
|
}
|
|
@@ -2991,16 +3003,16 @@ function kr(t, e) {
|
|
|
2991
3003
|
}
|
|
2992
3004
|
return (e === "string" ? String : Number)(t);
|
|
2993
3005
|
}
|
|
2994
|
-
class
|
|
3006
|
+
class B extends Error {
|
|
2995
3007
|
constructor(e, i) {
|
|
2996
3008
|
super(e.message), qe(this, "name", void 0), qe(this, "type", void 0), qe(this, "raw", void 0), this.name = "AFVRequestError", this.type = i, this.raw = e, this.stack = e.stack, this.message = e.message;
|
|
2997
3009
|
}
|
|
2998
3010
|
static from(e, i) {
|
|
2999
3011
|
switch (i) {
|
|
3000
3012
|
case "GOOGLE_IMA_ERROR":
|
|
3001
|
-
return new
|
|
3013
|
+
return new B(e, i);
|
|
3002
3014
|
case "JOLIBOX_IMA_ERROR":
|
|
3003
|
-
return new
|
|
3015
|
+
return new B(e, i);
|
|
3004
3016
|
}
|
|
3005
3017
|
}
|
|
3006
3018
|
}
|
|
@@ -3008,10 +3020,10 @@ function S(t, e, i) {
|
|
|
3008
3020
|
return (e = Dr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3009
3021
|
}
|
|
3010
3022
|
function Dr(t) {
|
|
3011
|
-
var e =
|
|
3023
|
+
var e = Lr(t, "string");
|
|
3012
3024
|
return typeof e == "symbol" ? e : e + "";
|
|
3013
3025
|
}
|
|
3014
|
-
function
|
|
3026
|
+
function Lr(t, e) {
|
|
3015
3027
|
if (typeof t != "object" || !t)
|
|
3016
3028
|
return t;
|
|
3017
3029
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3023,26 +3035,26 @@ function Nr(t, e) {
|
|
|
3023
3035
|
}
|
|
3024
3036
|
return (e === "string" ? String : Number)(t);
|
|
3025
3037
|
}
|
|
3026
|
-
class
|
|
3038
|
+
class Nr {
|
|
3027
3039
|
constructor(e, i, n) {
|
|
3028
3040
|
S(this, "adsLoader", void 0), S(this, "adDisplayContainer", void 0), S(this, "isAdPlaying", !1), S(this, "isContentFinished", !1), S(this, "videoContent", void 0), S(this, "adContainer", void 0), S(this, "adsManager", void 0), S(this, "intervalTimer", void 0), S(this, "completed", !1), S(this, "adTagUrl", void 0), S(this, "notifyRequestAd", void 0), S(this, "notifyLoaded", void 0), S(this, "notifyPlayingAd", void 0), S(this, "notifyCompleted", void 0), S(this, "notifyError", void 0), S(this, "destroy", () => {
|
|
3029
|
-
var r,
|
|
3030
|
-
this.intervalTimer && clearInterval(this.intervalTimer), (r = this.adsManager) == null || r.stop(), (
|
|
3031
|
-
}), S(this, "requestAds", async (r,
|
|
3041
|
+
var r, o, s, a, d, l, c, u, f, v, y;
|
|
3042
|
+
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), (c = this.adsManager) == null || c.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, this.onContentResumeRequested), (u = this.adsManager) == null || u.removeEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED, this.onAdEvent), (f = this.adsManager) == null || f.removeEventListener(window.google.ima.AdEvent.Type.LOADED, this.onAdEvent), (v = this.adsManager) == null || v.removeEventListener(window.google.ima.AdEvent.Type.STARTED, this.onAdEvent), (y = this.adsManager) == null || y.removeEventListener(window.google.ima.AdEvent.Type.COMPLETE, this.onAdEvent);
|
|
3043
|
+
}), S(this, "requestAds", async (r, o) => {
|
|
3032
3044
|
var c;
|
|
3033
3045
|
this.createAdDisplayContainer(), this.notifyRequestAd = r.onAdRequested, this.notifyLoaded = r.onAdLoaded, this.notifyPlayingAd = r.onAdPlaying, this.notifyCompleted = r.onAdCompleted, this.notifyError = (u) => {
|
|
3034
3046
|
var f;
|
|
3035
|
-
return (f = r.onAdError) == null ? void 0 : f.call(r,
|
|
3047
|
+
return (f = r.onAdError) == null ? void 0 : f.call(r, B.from(u, "GOOGLE_IMA_ERROR"));
|
|
3036
3048
|
}, 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);
|
|
3037
|
-
const
|
|
3049
|
+
const s = () => {
|
|
3038
3050
|
var u;
|
|
3039
3051
|
this.isAdPlaying || (this.isContentFinished = !0, (u = this.adsLoader) == null || u.contentComplete());
|
|
3040
3052
|
};
|
|
3041
|
-
this.videoContent.onended =
|
|
3053
|
+
this.videoContent.onended = s;
|
|
3042
3054
|
const a = new window.google.ima.AdsRequest();
|
|
3043
3055
|
let d = "";
|
|
3044
|
-
Object.keys(
|
|
3045
|
-
const f = window.encodeURIComponent(
|
|
3056
|
+
Object.keys(o.params).forEach((u) => {
|
|
3057
|
+
const f = window.encodeURIComponent(o.params[u]);
|
|
3046
3058
|
d += `&${u}=${f}`;
|
|
3047
3059
|
});
|
|
3048
3060
|
const l = `${this.adTagUrl}${d}`;
|
|
@@ -3050,37 +3062,37 @@ class Lr {
|
|
|
3050
3062
|
}), S(this, "createAdDisplayContainer", () => {
|
|
3051
3063
|
this.adDisplayContainer = new window.google.ima.AdDisplayContainer(this.adContainer, this.videoContent);
|
|
3052
3064
|
}), S(this, "playAds", () => {
|
|
3053
|
-
var r,
|
|
3065
|
+
var r, o;
|
|
3054
3066
|
this.videoContent.load(), this.adDisplayContainer.initialize(), this.completed = !1;
|
|
3055
3067
|
try {
|
|
3056
|
-
(r = this.adsManager) == null || r.init(window.document.body.clientWidth, window.document.body.clientHeight, window.google.ima.ViewMode.NORMAL), (
|
|
3057
|
-
} catch (
|
|
3058
|
-
console.error("[JoliboxAFV] Google IMA Error: ",
|
|
3068
|
+
(r = this.adsManager) == null || r.init(window.document.body.clientWidth, window.document.body.clientHeight, window.google.ima.ViewMode.NORMAL), (o = this.adsManager) == null || o.start();
|
|
3069
|
+
} catch (s) {
|
|
3070
|
+
console.error("[JoliboxAFV] Google IMA Error: ", s), this.videoContent.play();
|
|
3059
3071
|
}
|
|
3060
3072
|
}), S(this, "onAdsManagerLoaded", (r) => {
|
|
3061
|
-
const
|
|
3062
|
-
|
|
3073
|
+
const o = new window.google.ima.AdsRenderingSettings();
|
|
3074
|
+
o.restoreCustomPlaybackStateOnAdBreakComplete = !0, this.adsManager = r.getAdsManager(this.videoContent, o), this.adsManager.addEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, this.onContentPauseRequested), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, this.onContentResumeRequested), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED, this.onAdEvent), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.LOADED, this.onAdEvent), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.STARTED, this.onAdEvent), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.COMPLETE, this.onAdEvent), r.type === "adsManagerLoaded" && this.playAds();
|
|
3063
3075
|
}), S(this, "onAdEvent", (r) => {
|
|
3064
|
-
var
|
|
3065
|
-
const
|
|
3076
|
+
var s, a, d, l;
|
|
3077
|
+
const o = r.getAd();
|
|
3066
3078
|
switch (r.type) {
|
|
3067
3079
|
case window.google.ima.AdEvent.Type.LOADED:
|
|
3068
|
-
|
|
3080
|
+
o != null && o.isLinear() || this.videoContent.play(), (s = this.notifyLoaded) == null || s.call(this, r);
|
|
3069
3081
|
break;
|
|
3070
3082
|
case window.google.ima.AdEvent.Type.STARTED:
|
|
3071
|
-
|
|
3083
|
+
o != null && o.isLinear() && (this.intervalTimer = window.setInterval(function() {
|
|
3072
3084
|
}, 300)), (a = this.notifyPlayingAd) == null || a.call(this, r);
|
|
3073
3085
|
break;
|
|
3074
3086
|
case window.google.ima.AdEvent.Type.COMPLETE:
|
|
3075
|
-
|
|
3087
|
+
o != null && o.isLinear() && clearInterval(this.intervalTimer), this.completed || (this.completed = !0, (d = this.notifyCompleted) == null || d.call(this, r));
|
|
3076
3088
|
break;
|
|
3077
3089
|
case window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED:
|
|
3078
|
-
|
|
3090
|
+
o != null && o.isLinear() && clearInterval(this.intervalTimer), this.completed || (this.completed = !0, (l = this.notifyCompleted) == null || l.call(this, r));
|
|
3079
3091
|
break;
|
|
3080
3092
|
}
|
|
3081
3093
|
}), S(this, "onAdError", (r) => {
|
|
3082
|
-
var
|
|
3083
|
-
(
|
|
3094
|
+
var o, s;
|
|
3095
|
+
(o = this.notifyError) == null || o.call(this, r.getError()), (s = this.adsManager) == null || s.destroy();
|
|
3084
3096
|
}), S(this, "onContentPauseRequested", () => {
|
|
3085
3097
|
this.isAdPlaying = !0, this.videoContent.pause();
|
|
3086
3098
|
}), S(this, "onContentResumeRequested", () => {
|
|
@@ -3155,44 +3167,44 @@ const Pr = () => {
|
|
|
3155
3167
|
const {
|
|
3156
3168
|
visible: n,
|
|
3157
3169
|
retry: r,
|
|
3158
|
-
canRetry:
|
|
3159
|
-
videoRef:
|
|
3170
|
+
canRetry: o,
|
|
3171
|
+
videoRef: s,
|
|
3160
3172
|
adContainerRef: a
|
|
3161
3173
|
} = i, d = () => {
|
|
3162
3174
|
r.value && (r.value(), N(() => {
|
|
3163
|
-
r.value = null,
|
|
3175
|
+
r.value = null, o.value = !1;
|
|
3164
3176
|
}));
|
|
3165
3177
|
};
|
|
3166
3178
|
return Pt(() => {
|
|
3167
3179
|
e();
|
|
3168
|
-
}, [e]),
|
|
3180
|
+
}, [e]), w("div", {
|
|
3169
3181
|
className: Cr,
|
|
3170
3182
|
"data-visible": n.value,
|
|
3171
|
-
children:
|
|
3183
|
+
children: w("div", {
|
|
3172
3184
|
className: "ads-wrapper",
|
|
3173
|
-
children: [
|
|
3174
|
-
ref:
|
|
3185
|
+
children: [w("video", {
|
|
3186
|
+
ref: s,
|
|
3175
3187
|
width: "100%",
|
|
3176
3188
|
height: "100%"
|
|
3177
|
-
}),
|
|
3189
|
+
}), w("div", {
|
|
3178
3190
|
id: "ad-container",
|
|
3179
3191
|
ref: a
|
|
3180
|
-
}),
|
|
3192
|
+
}), o.value ? w("div", {
|
|
3181
3193
|
className: "retry-button",
|
|
3182
3194
|
onClick: d,
|
|
3183
|
-
children:
|
|
3195
|
+
children: w("svg", {
|
|
3184
3196
|
width: "64",
|
|
3185
3197
|
height: "64",
|
|
3186
3198
|
viewBox: "0 0 64 64",
|
|
3187
3199
|
fill: "none",
|
|
3188
3200
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3189
|
-
children: [
|
|
3201
|
+
children: [w("circle", {
|
|
3190
3202
|
cx: "32",
|
|
3191
3203
|
cy: "32",
|
|
3192
3204
|
r: "32",
|
|
3193
3205
|
fill: "#141416",
|
|
3194
3206
|
fillOpacity: "0.3"
|
|
3195
|
-
}),
|
|
3207
|
+
}), w("path", {
|
|
3196
3208
|
d: "M25.3334 23.3668V40.6334C25.3334 41.9501 26.7834 42.7501 27.9 42.0334L41.4667 33.4001C42.5 32.7501 42.5 31.2501 41.4667 30.5834L27.9 21.9668C26.7834 21.2501 25.3334 22.0501 25.3334 23.3668Z",
|
|
3197
3209
|
fill: "white"
|
|
3198
3210
|
})]
|
|
@@ -3226,22 +3238,22 @@ class jr {
|
|
|
3226
3238
|
if (this.initialized)
|
|
3227
3239
|
return;
|
|
3228
3240
|
const n = "//imasdk.googleapis.com/js/sdkloader/ima3.js";
|
|
3229
|
-
await new Promise((r,
|
|
3241
|
+
await new Promise((r, o) => {
|
|
3230
3242
|
if (document.querySelector("#google-ima-sdk")) {
|
|
3231
3243
|
r();
|
|
3232
3244
|
return;
|
|
3233
3245
|
} else {
|
|
3234
|
-
const
|
|
3235
|
-
|
|
3246
|
+
const s = document.createElement("script");
|
|
3247
|
+
s.id = "google-ima-sdk", s.src = n, s.onload = () => {
|
|
3236
3248
|
var a;
|
|
3237
3249
|
(a = window.google) != null && a.ima ? r() : setTimeout(r, 100);
|
|
3238
|
-
},
|
|
3250
|
+
}, s.onerror = o, document.head.appendChild(s);
|
|
3239
3251
|
}
|
|
3240
|
-
}), this.adsOverlay = document.createElement("div"), document.documentElement.appendChild(this.adsOverlay), await new Promise((r,
|
|
3241
|
-
he(
|
|
3252
|
+
}), this.adsOverlay = document.createElement("div"), document.documentElement.appendChild(this.adsOverlay), await new Promise((r, o) => {
|
|
3253
|
+
he(w(Mr, {
|
|
3242
3254
|
state: this.state,
|
|
3243
3255
|
onReady: () => {
|
|
3244
|
-
this.ima = new
|
|
3256
|
+
this.ima = new Nr(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
|
|
3245
3257
|
}
|
|
3246
3258
|
}), this.adsOverlay);
|
|
3247
3259
|
}), this.initialized = !0;
|
|
@@ -3250,14 +3262,14 @@ class jr {
|
|
|
3250
3262
|
}), J(this, "requestAd", (i, n) => {
|
|
3251
3263
|
var a;
|
|
3252
3264
|
if (!this.adsOverlay || !this.ima || !this.initialized) {
|
|
3253
|
-
const d =
|
|
3265
|
+
const d = B.from(new Error("IMA not initialized"), "JOLIBOX_IMA_ERROR");
|
|
3254
3266
|
(a = i.onAdError) == null || a.call(i, d);
|
|
3255
3267
|
return;
|
|
3256
3268
|
}
|
|
3257
3269
|
const r = (d) => {
|
|
3258
3270
|
var l;
|
|
3259
3271
|
this.ima.destroy(), this.state.visible.value = !1, (l = i.onAdCompleted) == null || l.call(i, d);
|
|
3260
|
-
},
|
|
3272
|
+
}, o = (d) => {
|
|
3261
3273
|
let l = !1;
|
|
3262
3274
|
switch (d.raw.getErrorCode()) {
|
|
3263
3275
|
case Oe.AUTOPLAY_DISALLOWED:
|
|
@@ -3281,12 +3293,12 @@ class jr {
|
|
|
3281
3293
|
this.state.canRetry.value = !0, this.state.retry.value = c;
|
|
3282
3294
|
});
|
|
3283
3295
|
}
|
|
3284
|
-
},
|
|
3285
|
-
|
|
3296
|
+
}, s = Object.assign({}, i);
|
|
3297
|
+
s.onAdCompleted = r, s.onAdError = o, this.ima.requestAds(s, n), this.state.visible.value = !0;
|
|
3286
3298
|
}), this.context = e;
|
|
3287
3299
|
}
|
|
3288
3300
|
}
|
|
3289
|
-
function
|
|
3301
|
+
function G(t, e, i) {
|
|
3290
3302
|
return (e = Fr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3291
3303
|
}
|
|
3292
3304
|
function Fr(t) {
|
|
@@ -3307,35 +3319,35 @@ function Br(t, e) {
|
|
|
3307
3319
|
}
|
|
3308
3320
|
class Vr {
|
|
3309
3321
|
constructor(e) {
|
|
3310
|
-
|
|
3322
|
+
G(this, "name", "OKSPIN"), G(this, "initialized", !1), G(this, "initCompleter", null), G(this, "context", void 0), G(this, "adsOverlay", null), G(this, "adsIsShowing", !1), G(this, "state", ui()), G(this, "init", async (i) => {
|
|
3311
3323
|
var n;
|
|
3312
|
-
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), he(
|
|
3324
|
+
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), he(w(fi, {
|
|
3313
3325
|
state: this.state
|
|
3314
3326
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
|
|
3315
|
-
}),
|
|
3327
|
+
}), G(this, "destroy", () => {
|
|
3316
3328
|
var i;
|
|
3317
3329
|
this.adsOverlay && (he(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
|
|
3318
|
-
}),
|
|
3319
|
-
var
|
|
3330
|
+
}), G(this, "requestAd", (i, n) => {
|
|
3331
|
+
var s, a, d, l;
|
|
3320
3332
|
if (!this.adsOverlay || !this.initialized) {
|
|
3321
|
-
(
|
|
3333
|
+
(s = i.onAdError) == null || s.call(i, B.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
|
|
3322
3334
|
return;
|
|
3323
3335
|
}
|
|
3324
3336
|
if (this.adsIsShowing) {
|
|
3325
|
-
(a = i.onAdError) == null || a.call(i,
|
|
3337
|
+
(a = i.onAdError) == null || a.call(i, B.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
|
|
3326
3338
|
return;
|
|
3327
3339
|
}
|
|
3328
3340
|
(d = i.onAdRequested) == null || d.call(i);
|
|
3329
3341
|
const r = () => {
|
|
3330
3342
|
var c;
|
|
3331
3343
|
this.adsIsShowing = !1, (c = i.onAdCompleted) == null || c.call(i, void 0);
|
|
3332
|
-
},
|
|
3344
|
+
}, o = () => {
|
|
3333
3345
|
var c;
|
|
3334
3346
|
(c = i.onAdLoaded) == null || c.call(i, void 0);
|
|
3335
3347
|
};
|
|
3336
3348
|
this.adsIsShowing = !0, N(() => {
|
|
3337
3349
|
var c;
|
|
3338
|
-
this.state.adLoaded.value =
|
|
3350
|
+
this.state.adLoaded.value = o, this.state.adBreakDone.value = r, this.state.countdown.value = (c = n.params.countdown) != null ? c : 15, this.state.src.value = n.params.url, this.state.mode.value = "rewarded_insterstitial", this.state.visible.value = !0;
|
|
3339
3351
|
}), (l = i.onAdPlaying) == null || l.call(i, void 0);
|
|
3340
3352
|
}), this.context = e;
|
|
3341
3353
|
}
|
|
@@ -3359,7 +3371,7 @@ function Gr(t, e) {
|
|
|
3359
3371
|
}
|
|
3360
3372
|
return (e === "string" ? String : Number)(t);
|
|
3361
3373
|
}
|
|
3362
|
-
class
|
|
3374
|
+
class io {
|
|
3363
3375
|
constructor(e) {
|
|
3364
3376
|
if (ce(this, "context", void 0), ce(this, "contextInfo", void 0), ce(this, "providers", {}), ce(this, "adsTrackSerializer", void 0), ce(this, "initialized", !1), e)
|
|
3365
3377
|
this.context = e, this.adsTrackSerializer = new Vt(e), this.contextInfo = this.context.getContextInfo();
|
|
@@ -3426,9 +3438,9 @@ class is {
|
|
|
3426
3438
|
this.initialized = !1;
|
|
3427
3439
|
}
|
|
3428
3440
|
async requestAd(e) {
|
|
3429
|
-
var i, n, r,
|
|
3441
|
+
var i, n, r, o, s, a, d;
|
|
3430
3442
|
if ((i = this.context.eventEmitter) == null || i.emit("isAdShowing", !0), this.initialized || await this.init(), !this.context.checkNetwork()) {
|
|
3431
|
-
const l =
|
|
3443
|
+
const l = B.from(new Error("No network connection"), "JOLIBOX_IMA_ERROR");
|
|
3432
3444
|
(n = e.onAdError) == null || n.call(e, l);
|
|
3433
3445
|
return;
|
|
3434
3446
|
}
|
|
@@ -3445,32 +3457,32 @@ class is {
|
|
|
3445
3457
|
}
|
|
3446
3458
|
});
|
|
3447
3459
|
if (c !== "SUCCESS") {
|
|
3448
|
-
const u =
|
|
3460
|
+
const u = B.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
|
|
3449
3461
|
(r = e.onAdError) == null || r.call(e, u);
|
|
3450
3462
|
return;
|
|
3451
3463
|
} else {
|
|
3452
3464
|
const u = l;
|
|
3453
3465
|
if (u.length === 0) {
|
|
3454
|
-
const _ =
|
|
3455
|
-
(
|
|
3466
|
+
const _ = B.from(new Error("No ads available"), "JOLIBOX_IMA_ERROR");
|
|
3467
|
+
(o = e.onAdError) == null || o.call(e, _);
|
|
3456
3468
|
return;
|
|
3457
3469
|
}
|
|
3458
3470
|
let f = !0, v = null;
|
|
3459
3471
|
const y = new Tr(this.context);
|
|
3460
3472
|
for (; u.length > 0; ) {
|
|
3461
|
-
const _ = u.shift(),
|
|
3462
|
-
if (
|
|
3463
|
-
const [h, p] = await y.callAdRequestAndContinue(
|
|
3473
|
+
const _ = u.shift(), A = this.providers[_.provider];
|
|
3474
|
+
if (A) {
|
|
3475
|
+
const [h, p] = await y.callAdRequestAndContinue(A, e, _);
|
|
3464
3476
|
f = h, v = p;
|
|
3465
3477
|
} else
|
|
3466
|
-
f = !0, v =
|
|
3478
|
+
f = !0, v = B.from(new Error("No provider available"), "JOLIBOX_IMA_ERROR");
|
|
3467
3479
|
if (!f)
|
|
3468
3480
|
break;
|
|
3469
3481
|
}
|
|
3470
|
-
f && v && ((
|
|
3482
|
+
f && v && ((s = e.onAdError) == null || s.call(e, v));
|
|
3471
3483
|
}
|
|
3472
3484
|
} catch (l) {
|
|
3473
|
-
const c =
|
|
3485
|
+
const c = B.from(new Error("Failed to request ad"), "JOLIBOX_IMA_ERROR");
|
|
3474
3486
|
(a = e.onAdError) == null || a.call(e, c);
|
|
3475
3487
|
} finally {
|
|
3476
3488
|
(d = this.context.eventEmitter) == null || d.emit("isAdShowing", !1);
|
|
@@ -3496,18 +3508,18 @@ function qr(t, e) {
|
|
|
3496
3508
|
}
|
|
3497
3509
|
return (e === "string" ? String : Number)(t);
|
|
3498
3510
|
}
|
|
3499
|
-
class
|
|
3511
|
+
class no extends Error {
|
|
3500
3512
|
constructor(e) {
|
|
3501
3513
|
super(e), ee(this, "name", void 0), ee(this, "message", void 0), ee(this, "errMsg", void 0), ee(this, "code", void 0), ee(this, "data", void 0), ee(this, "extra", void 0), this.name = "ResponseError", this.message = e, this.errMsg = e;
|
|
3502
3514
|
}
|
|
3503
3515
|
}
|
|
3504
3516
|
export {
|
|
3505
|
-
|
|
3517
|
+
B as AFVWrappedError,
|
|
3506
3518
|
cn as GoogleAdSenseProvider,
|
|
3507
3519
|
jr as GoogleIMAProvider,
|
|
3508
|
-
|
|
3509
|
-
|
|
3520
|
+
to as JoliboxAdsForGame,
|
|
3521
|
+
io as JoliboxAdsForVideo,
|
|
3510
3522
|
Er as OKSpinForGameProvider,
|
|
3511
3523
|
Vr as OKSpinForVideoProvider,
|
|
3512
|
-
|
|
3524
|
+
no as ResponseError
|
|
3513
3525
|
};
|