@jolibox/ads 1.1.19-beta.6 → 1.1.20-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/afv/adrequest-async-proxy.d.ts +2 -2
- package/dist/afv/ads-interface.d.ts +6 -5
- package/dist/afv/ima/ima-impl.d.ts +2 -2
- package/dist/afv/ima/index.d.ts +3 -2
- package/dist/afv/ima/type.d.ts +1 -1
- package/dist/afv/index.d.ts +7 -2
- package/dist/afv/okspin/index.d.ts +3 -2
- package/dist/index.js +1114 -1263
- package/package.json +10 -5
package/dist/index.js
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var ct = Object.getOwnPropertySymbols;
|
|
2
|
+
var hi = Object.prototype.hasOwnProperty, vi = Object.prototype.propertyIsEnumerable;
|
|
3
|
+
var ut = (t, e) => {
|
|
4
4
|
var i = {};
|
|
5
5
|
for (var n in t)
|
|
6
|
-
|
|
7
|
-
if (t != null &&
|
|
8
|
-
for (var n of
|
|
9
|
-
e.indexOf(n) < 0 &&
|
|
6
|
+
hi.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
|
|
7
|
+
if (t != null && ct)
|
|
8
|
+
for (var n of ct(t))
|
|
9
|
+
e.indexOf(n) < 0 && vi.call(t, n) && (i[n] = t[n]);
|
|
10
10
|
return i;
|
|
11
11
|
};
|
|
12
|
-
import { options as
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
import { options as Z, Component as pi, isValidElement as _i } from "preact";
|
|
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 U(t, e, i) {
|
|
15
|
+
return (e = Ai(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
15
16
|
}
|
|
16
|
-
function
|
|
17
|
-
var e =
|
|
17
|
+
function Ai(t) {
|
|
18
|
+
var e = wi(t, "string");
|
|
18
19
|
return typeof e == "symbol" ? e : e + "";
|
|
19
20
|
}
|
|
20
|
-
function
|
|
21
|
+
function wi(t, e) {
|
|
21
22
|
if (typeof t != "object" || !t)
|
|
22
23
|
return t;
|
|
23
24
|
var i = t[Symbol.toPrimitive];
|
|
@@ -29,9 +30,9 @@ function Mi(t, e) {
|
|
|
29
30
|
}
|
|
30
31
|
return (e === "string" ? String : Number)(t);
|
|
31
32
|
}
|
|
32
|
-
class
|
|
33
|
+
class bi {
|
|
33
34
|
constructor(e) {
|
|
34
|
-
|
|
35
|
+
U(this, "context", void 0), U(this, "continueCallback", void 0), U(this, "isBeforeAdCalled", !1), U(this, "isBeforeRewardCalled", !1), U(this, "isAdDismissedCalled", !1), U(this, "isAdViewedCalled", !1), U(this, "isAfterAdCalled", !1), U(this, "currentProvider", void 0), U(this, "currentClientParams", void 0), U(this, "adsHasResponse", !1), U(this, "videoChecker", window.document.createElement("video")), U(this, "wrapShowAdFn", (i) => () => {
|
|
35
36
|
this.adsHasResponse = !0;
|
|
36
37
|
let n = !1;
|
|
37
38
|
this.videoChecker.play().catch(() => {
|
|
@@ -42,11 +43,11 @@ class Ui {
|
|
|
42
43
|
}), this.context = e;
|
|
43
44
|
}
|
|
44
45
|
get paramsToTrack() {
|
|
45
|
-
var e, i, n, r,
|
|
46
|
+
var e, i, n, r, s, o;
|
|
46
47
|
return {
|
|
47
48
|
provider: (i = (e = this.currentProvider) == null ? void 0 : e.name) != null ? i : null,
|
|
48
49
|
type: (n = this.currentClientParams) == null ? void 0 : n.type,
|
|
49
|
-
name: ((r = this.currentClientParams) == null ? void 0 : r.type) === "preroll" ? null : (
|
|
50
|
+
name: ((r = this.currentClientParams) == null ? void 0 : r.type) === "preroll" ? null : (o = (s = this.currentClientParams) == null ? void 0 : s.name) != null ? o : ""
|
|
50
51
|
};
|
|
51
52
|
}
|
|
52
53
|
wrapBeforeAd(e) {
|
|
@@ -76,11 +77,11 @@ class Ui {
|
|
|
76
77
|
}
|
|
77
78
|
wrapAdBreakDone(e) {
|
|
78
79
|
return (i) => {
|
|
79
|
-
var n, r,
|
|
80
|
+
var n, r, s, o, a;
|
|
80
81
|
switch (this.adsHasResponse = !0, this.context.track("CallAdBreakDone", {
|
|
81
82
|
provider: (r = (n = this.currentProvider) == null ? void 0 : n.name) != null ? r : null,
|
|
82
83
|
breakType: i.breakType,
|
|
83
|
-
breakName: (
|
|
84
|
+
breakName: (s = i.breakName) != null ? s : "",
|
|
84
85
|
breakFormat: i.breakFormat,
|
|
85
86
|
breakStatus: i.breakStatus
|
|
86
87
|
}), i.breakStatus) {
|
|
@@ -88,7 +89,7 @@ class Ui {
|
|
|
88
89
|
case "ignored":
|
|
89
90
|
case "dismissed":
|
|
90
91
|
case "error": {
|
|
91
|
-
e == null || e(i), (
|
|
92
|
+
e == null || e(i), (o = this.continueCallback) == null || o.call(this, [!1, i]);
|
|
92
93
|
break;
|
|
93
94
|
}
|
|
94
95
|
default: {
|
|
@@ -107,17 +108,17 @@ class Ui {
|
|
|
107
108
|
async callAdBreakAndContinue(e, i, n) {
|
|
108
109
|
return this.currentProvider = e, this.currentClientParams = i, this.adsHasResponse = !1, new Promise((r) => {
|
|
109
110
|
this.continueCallback = r;
|
|
110
|
-
let
|
|
111
|
+
let s;
|
|
111
112
|
switch (i.type) {
|
|
112
113
|
case "preroll": {
|
|
113
|
-
|
|
114
|
+
s = {
|
|
114
115
|
type: i.type,
|
|
115
116
|
adBreakDone: this.wrapAdBreakDone(i.adBreakDone)
|
|
116
117
|
};
|
|
117
118
|
break;
|
|
118
119
|
}
|
|
119
120
|
case "reward": {
|
|
120
|
-
|
|
121
|
+
s = {
|
|
121
122
|
name: i.name,
|
|
122
123
|
type: i.type,
|
|
123
124
|
beforeAd: this.wrapBeforeAd(i.beforeAd),
|
|
@@ -130,7 +131,7 @@ class Ui {
|
|
|
130
131
|
break;
|
|
131
132
|
}
|
|
132
133
|
default: {
|
|
133
|
-
|
|
134
|
+
s = {
|
|
134
135
|
name: i.name,
|
|
135
136
|
type: i.type,
|
|
136
137
|
beforeAd: this.wrapBeforeAd(i.beforeAd),
|
|
@@ -141,28 +142,28 @@ class Ui {
|
|
|
141
142
|
}
|
|
142
143
|
}
|
|
143
144
|
window.setTimeout(() => {
|
|
144
|
-
var
|
|
145
|
+
var o, a, d, l;
|
|
145
146
|
this.adsHasResponse || (this.context.track("CallAdBreakTimeout", {
|
|
146
147
|
type: i.type,
|
|
147
|
-
provider: (a = (
|
|
148
|
-
}), (
|
|
148
|
+
provider: (a = (o = this.currentProvider) == null ? void 0 : o.name) != null ? a : null
|
|
149
|
+
}), (l = this.continueCallback) == null || l.call(this, [!0, {
|
|
149
150
|
breakType: i.type,
|
|
150
|
-
breakName: i.type === "preroll" ? "" : (
|
|
151
|
+
breakName: i.type === "preroll" ? "" : (d = i.name) != null ? d : "",
|
|
151
152
|
breakFormat: i.type === "reward" ? "reward" : "interstitial",
|
|
152
153
|
breakStatus: "timeout"
|
|
153
154
|
}]));
|
|
154
|
-
}, 5e3), this.context.track("CallAdBreak", this.paramsToTrack), e.adBreak(
|
|
155
|
+
}, 5e3), this.context.track("CallAdBreak", this.paramsToTrack), e.adBreak(s, n), window.JoliTesterBridge && console.log("joli-fullscreen-ad-show");
|
|
155
156
|
});
|
|
156
157
|
}
|
|
157
158
|
}
|
|
158
159
|
function Ae(t, e, i) {
|
|
159
|
-
return (e =
|
|
160
|
+
return (e = Ei(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
160
161
|
}
|
|
161
|
-
function
|
|
162
|
-
var e =
|
|
162
|
+
function Ei(t) {
|
|
163
|
+
var e = Si(t, "string");
|
|
163
164
|
return typeof e == "symbol" ? e : e + "";
|
|
164
165
|
}
|
|
165
|
-
function
|
|
166
|
+
function Si(t, e) {
|
|
166
167
|
if (typeof t != "object" || !t)
|
|
167
168
|
return t;
|
|
168
169
|
var i = t[Symbol.toPrimitive];
|
|
@@ -174,7 +175,7 @@ function Fi(t, e) {
|
|
|
174
175
|
}
|
|
175
176
|
return (e === "string" ? String : Number)(t);
|
|
176
177
|
}
|
|
177
|
-
class
|
|
178
|
+
class xi {
|
|
178
179
|
constructor(e) {
|
|
179
180
|
Ae(this, "context", void 0), Ae(this, "adBreakIsShowing", !1), Ae(this, "reportPageJumpOut", () => {
|
|
180
181
|
this.context.track("AdBreakJumpOut", {
|
|
@@ -191,42 +192,42 @@ class Bi {
|
|
|
191
192
|
});
|
|
192
193
|
}
|
|
193
194
|
}
|
|
194
|
-
var
|
|
195
|
+
var Ct = Object.defineProperty, Ri = Object.defineProperties, Ii = Object.getOwnPropertyDescriptors, ht = Object.getOwnPropertySymbols, Ti = Object.prototype.hasOwnProperty, Oi = Object.prototype.propertyIsEnumerable, vt = (t, e, i) => e in t ? Ct(t, e, {
|
|
195
196
|
enumerable: !0,
|
|
196
197
|
configurable: !0,
|
|
197
198
|
writable: !0,
|
|
198
199
|
value: i
|
|
199
|
-
}) : t[e] = i,
|
|
200
|
+
}) : t[e] = i, ki = (t, e) => {
|
|
200
201
|
for (var i in e || (e = {}))
|
|
201
|
-
|
|
202
|
-
if (
|
|
203
|
-
for (var i of
|
|
204
|
-
|
|
202
|
+
Ti.call(e, i) && vt(t, i, e[i]);
|
|
203
|
+
if (ht)
|
|
204
|
+
for (var i of ht(e))
|
|
205
|
+
Oi.call(e, i) && vt(t, i, e[i]);
|
|
205
206
|
return t;
|
|
206
|
-
},
|
|
207
|
+
}, Di = (t, e) => Ri(t, Ii(e)), Ni = (t, e) => {
|
|
207
208
|
for (var i in e)
|
|
208
|
-
|
|
209
|
+
Ct(t, i, {
|
|
209
210
|
get: e[i],
|
|
210
211
|
enumerable: !0
|
|
211
212
|
});
|
|
212
|
-
},
|
|
213
|
-
for (var r = e,
|
|
214
|
-
(
|
|
213
|
+
}, Mt = (t, e, i, n) => {
|
|
214
|
+
for (var r = e, s = t.length - 1, o; s >= 0; s--)
|
|
215
|
+
(o = t[s]) && (r = o(r) || r);
|
|
215
216
|
return r;
|
|
216
|
-
},
|
|
217
|
-
var
|
|
217
|
+
}, Li = (t, e, i) => new Promise((n, r) => {
|
|
218
|
+
var s = (d) => {
|
|
218
219
|
try {
|
|
219
|
-
a(i.next(
|
|
220
|
-
} catch (
|
|
221
|
-
r(
|
|
220
|
+
a(i.next(d));
|
|
221
|
+
} catch (l) {
|
|
222
|
+
r(l);
|
|
222
223
|
}
|
|
223
|
-
},
|
|
224
|
+
}, o = (d) => {
|
|
224
225
|
try {
|
|
225
|
-
a(i.throw(
|
|
226
|
-
} catch (
|
|
227
|
-
r(
|
|
226
|
+
a(i.throw(d));
|
|
227
|
+
} catch (l) {
|
|
228
|
+
r(l);
|
|
228
229
|
}
|
|
229
|
-
}, a = (
|
|
230
|
+
}, a = (d) => d.done ? n(d.value) : Promise.resolve(d.value).then(s, o);
|
|
230
231
|
a((i = i.apply(t, e)).next());
|
|
231
232
|
});
|
|
232
233
|
if (typeof window != "undefined" && !window.AbortController) {
|
|
@@ -258,74 +259,74 @@ if (typeof window != "undefined" && !window.AbortController) {
|
|
|
258
259
|
n.call(this, i);
|
|
259
260
|
}, window.AbortController = t, window.AbortSignal = e;
|
|
260
261
|
}
|
|
261
|
-
function
|
|
262
|
+
function Pi(t) {
|
|
262
263
|
return new Promise((e) => {
|
|
263
264
|
setTimeout(() => {
|
|
264
265
|
e();
|
|
265
266
|
}, t);
|
|
266
267
|
});
|
|
267
268
|
}
|
|
268
|
-
function
|
|
269
|
+
function Ci(t) {
|
|
269
270
|
return typeof t == "string";
|
|
270
271
|
}
|
|
271
|
-
function
|
|
272
|
+
function Mi(t) {
|
|
272
273
|
return typeof t == "undefined";
|
|
273
274
|
}
|
|
274
|
-
function
|
|
275
|
-
return
|
|
275
|
+
function $i(t) {
|
|
276
|
+
return Mi(t) || t === null;
|
|
276
277
|
}
|
|
277
|
-
function
|
|
278
|
+
function Ui(t) {
|
|
278
279
|
return typeof t == "function";
|
|
279
280
|
}
|
|
280
|
-
function
|
|
281
|
+
function $t(t) {
|
|
281
282
|
let e = t, i = null, n = function() {
|
|
282
|
-
for (var r = arguments.length,
|
|
283
|
-
o
|
|
284
|
-
return i || (i = new e(...
|
|
283
|
+
for (var r = arguments.length, s = new Array(r), o = 0; o < r; o++)
|
|
284
|
+
s[o] = arguments[o];
|
|
285
|
+
return i || (i = new e(...s)), i;
|
|
285
286
|
};
|
|
286
287
|
return n.prototype = e.prototype, n;
|
|
287
288
|
}
|
|
288
|
-
var
|
|
289
|
-
function
|
|
289
|
+
var ji = ((t) => (t[t.DEVELOPER_FILE_NOT_FOUND = 0] = "DEVELOPER_FILE_NOT_FOUND", t[t.INTERNAL_IOS_CAN_NOT_FOUND_PKG = 1] = "INTERNAL_IOS_CAN_NOT_FOUND_PKG", t[t.USER_IOS_LOAD_TIMEOUT = 2] = "USER_IOS_LOAD_TIMEOUT", t[t.INTERNAL_IOS_PKG_LOAD_ERROR = 3] = "INTERNAL_IOS_PKG_LOAD_ERROR", t[t.INTERNAL_IOS_PKG_PARSE_FAIL = 4] = "INTERNAL_IOS_PKG_PARSE_FAIL", t[t.USER_IOS_GET_EMPTY_DATA = 5] = "USER_IOS_GET_EMPTY_DATA", t[t.USER_ANDROID_GET_PKG_FAIL = 6] = "USER_ANDROID_GET_PKG_FAIL", t[t.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE = 7] = "DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE", t))(ji || {});
|
|
290
|
+
function ae(t) {
|
|
290
291
|
return function() {
|
|
291
292
|
var e, i;
|
|
292
293
|
((i = (e = globalThis.VConsole) == null ? void 0 : e[t]) != null ? i : globalThis.console[t])(...arguments);
|
|
293
294
|
};
|
|
294
295
|
}
|
|
295
|
-
var
|
|
296
|
-
log:
|
|
297
|
-
warn:
|
|
298
|
-
info:
|
|
299
|
-
error:
|
|
300
|
-
debug:
|
|
296
|
+
var Fi = {
|
|
297
|
+
log: ae("log"),
|
|
298
|
+
warn: ae("warn"),
|
|
299
|
+
info: ae("info"),
|
|
300
|
+
error: ae("error"),
|
|
301
|
+
debug: ae("debug")
|
|
301
302
|
};
|
|
302
303
|
Object.assign(globalThis, {
|
|
303
|
-
logger:
|
|
304
|
+
logger: Fi
|
|
304
305
|
});
|
|
305
|
-
var
|
|
306
|
-
globalThis[
|
|
307
|
-
var
|
|
308
|
-
function
|
|
306
|
+
var pt = Symbol.for("Jolibox.canIUseMap"), Bi = {};
|
|
307
|
+
globalThis[pt] || (globalThis[pt] = Bi);
|
|
308
|
+
var Ut = ((t) => (t[t.System = 1e3] = "System", t[t.ErrorTrace = 1001] = "ErrorTrace", t[t.UserDefined = 1002] = "UserDefined", t))(Ut || {}), jt = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(jt || {}), Ft = ((t) => (t[t.App = 0] = "App", t[t.H5 = 1] = "H5", t[t.Weapp = 2] = "Weapp", t[t.Alipay = 3] = "Alipay", t[t.Gcash = 4] = "Gcash", t[t.Dana = 5] = "Dana", t[t.Umma = 6] = "Umma", t[t.WebSDK = 1e3] = "WebSDK", t[t.AppSDK = 1001] = "AppSDK", t[t.Other = 9999] = "Other", t))(Ft || {}), _t = ["name", "params"], Vi = ["name", "type", "location", "target", "extra", "timestamp", "userId"], zi = ["platform", "os", "appVersion", "appId", "model", "brand", "uuid", "jsSdkVersion", "extra"];
|
|
309
|
+
function Ee(t, e) {
|
|
309
310
|
return e.map((i) => {
|
|
310
311
|
if (i === "params" && t[i]) {
|
|
311
312
|
let n = t[i];
|
|
312
|
-
return Object.keys(n).reduce((r,
|
|
313
|
+
return Object.keys(n).reduce((r, s) => (r[s] = String(n[s]), r), {});
|
|
313
314
|
}
|
|
314
315
|
return t[i];
|
|
315
316
|
});
|
|
316
317
|
}
|
|
317
|
-
function
|
|
318
|
-
let e = t.location ?
|
|
319
|
-
return
|
|
318
|
+
function Gi(t) {
|
|
319
|
+
let e = t.location ? Ee(t.location, _t) : null, i = t.target ? Ee(t.target, _t) : null;
|
|
320
|
+
return Ee(Di(ki({}, t), {
|
|
320
321
|
location: e,
|
|
321
322
|
target: i
|
|
322
|
-
}),
|
|
323
|
+
}), Vi);
|
|
323
324
|
}
|
|
324
|
-
function
|
|
325
|
-
let e = t.events.map((n) =>
|
|
325
|
+
function Ki(t) {
|
|
326
|
+
let e = t.events.map((n) => Gi(n)), i = Ee(t.device, zi);
|
|
326
327
|
return [t.protocolVersion, e, i, t.project];
|
|
327
328
|
}
|
|
328
|
-
function
|
|
329
|
+
function qi() {
|
|
329
330
|
try {
|
|
330
331
|
if (window.__joliboxLocalStorage__)
|
|
331
332
|
return window.__joliboxLocalStorage__;
|
|
@@ -346,15 +347,15 @@ function cn() {
|
|
|
346
347
|
return console.warn("Failed to get original localStorage, fallback to default implementation", t), localStorage;
|
|
347
348
|
}
|
|
348
349
|
}
|
|
349
|
-
|
|
350
|
+
qi();
|
|
350
351
|
navigator.userAgent.includes("iPhone") || navigator.userAgent.includes("iPod") || navigator.userAgent.includes("iPad") || navigator.userAgent.includes("iPhone OS"), navigator.userAgent.includes("Android"), navigator.userAgent.includes("Mac"), navigator.userAgent.includes("FB_IAB"), !navigator.userAgent.includes("iPhone") && navigator.userAgent.includes("Android");
|
|
351
|
-
var
|
|
352
|
+
var He = class We {
|
|
352
353
|
constructor(e) {
|
|
353
|
-
this.element = e, this.next =
|
|
354
|
+
this.element = e, this.next = We.Undefined, this.prev = We.Undefined;
|
|
354
355
|
}
|
|
355
356
|
};
|
|
356
|
-
|
|
357
|
-
var x =
|
|
357
|
+
He.Undefined = new He(void 0);
|
|
358
|
+
var x = He, Hi = class {
|
|
358
359
|
constructor() {
|
|
359
360
|
this._first = x.Undefined, this._last = x.Undefined, this._size = 0;
|
|
360
361
|
}
|
|
@@ -383,11 +384,11 @@ var x = Qe, un = class {
|
|
|
383
384
|
if (this._first === x.Undefined)
|
|
384
385
|
this._first = n, this._last = n;
|
|
385
386
|
else if (i) {
|
|
386
|
-
let
|
|
387
|
-
this._last = n, n.prev =
|
|
387
|
+
let s = this._last;
|
|
388
|
+
this._last = n, n.prev = s, s.next = n;
|
|
388
389
|
} else {
|
|
389
|
-
let
|
|
390
|
-
this._first = n, n.next =
|
|
390
|
+
let s = this._first;
|
|
391
|
+
this._first = n, n.next = s, s.prev = n;
|
|
391
392
|
}
|
|
392
393
|
this._size += 1;
|
|
393
394
|
let r = !1;
|
|
@@ -420,9 +421,9 @@ var x = Qe, un = class {
|
|
|
420
421
|
for (; e !== x.Undefined; )
|
|
421
422
|
yield e.element, e = e.next;
|
|
422
423
|
}
|
|
423
|
-
},
|
|
424
|
+
}, Wi = 0, de = class {
|
|
424
425
|
constructor(e) {
|
|
425
|
-
this.value = e, this.id =
|
|
426
|
+
this.value = e, this.id = Wi++;
|
|
426
427
|
}
|
|
427
428
|
}, ve = class {
|
|
428
429
|
constructor(e) {
|
|
@@ -430,24 +431,24 @@ var x = Qe, un = class {
|
|
|
430
431
|
}
|
|
431
432
|
dispose(e) {
|
|
432
433
|
var i, n;
|
|
433
|
-
this._disposed || (this._disposed = !0, this._listeners && (e ? (this._listeners instanceof
|
|
434
|
+
this._disposed || (this._disposed = !0, this._listeners && (e ? (this._listeners instanceof de && (this._listeners = [this._listeners]), this._listeners = this._listeners.filter((r) => (r == null ? void 0 : r.value) === e)) : (this._listeners = void 0, this._size = 0)), (n = (i = this.options) == null ? void 0 : i.onDidRemoveLastListener) == null || n.call(i));
|
|
434
435
|
}
|
|
435
436
|
get event() {
|
|
436
437
|
return this._event != null || (this._event = (e, i) => {
|
|
437
|
-
var n, r,
|
|
438
|
+
var n, r, s, o, a, d;
|
|
438
439
|
if (this._disposed)
|
|
439
440
|
return () => {
|
|
440
441
|
console.info("[Jolibox SDK] Emitter is _disposed");
|
|
441
442
|
};
|
|
442
443
|
i && (e = e.bind(i));
|
|
443
|
-
let
|
|
444
|
-
return this._listeners ? this._listeners instanceof
|
|
445
|
-
var
|
|
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, (o = (s = this.options) == null ? void 0 : s.onDidFirstListener) == null || o.call(s, this)), (d = (a = this.options) == null ? void 0 : a.onDidAddListener) == null || d.call(a, this), this._size++, () => {
|
|
446
|
+
var c, u, f, v;
|
|
446
447
|
if (!this._disposed) {
|
|
447
|
-
if (this._listeners instanceof
|
|
448
|
-
this._listeners.id ===
|
|
448
|
+
if (this._listeners instanceof de)
|
|
449
|
+
this._listeners.id === l.id && (this._listeners = void 0, this._size = 0, (u = (c = this.options) == null ? void 0 : c.onDidRemoveLastListener) == null || u.call(c));
|
|
449
450
|
else if (this._listeners) {
|
|
450
|
-
let y = this._listeners.indexOf(
|
|
451
|
+
let y = this._listeners.indexOf(l);
|
|
451
452
|
y >= 0 && (this._listeners.splice(y, 1), this._size--, this._size === 0 && ((v = (f = this.options) == null ? void 0 : f.onDidRemoveLastListener) == null || v.call(f)));
|
|
452
453
|
}
|
|
453
454
|
}
|
|
@@ -465,31 +466,32 @@ var x = Qe, un = class {
|
|
|
465
466
|
}
|
|
466
467
|
try {
|
|
467
468
|
e.value(i);
|
|
468
|
-
} catch (
|
|
469
|
-
r(
|
|
469
|
+
} catch (s) {
|
|
470
|
+
r(s);
|
|
470
471
|
}
|
|
471
472
|
}
|
|
472
473
|
fire(e) {
|
|
473
|
-
this._listeners && (this._listeners instanceof
|
|
474
|
+
this._listeners && (this._listeners instanceof de ? this._deliver(this._listeners, e) : this._listeners.forEach((i) => this._deliver(i, e)));
|
|
474
475
|
}
|
|
475
476
|
hasListeners() {
|
|
476
477
|
return this._size > 0;
|
|
477
478
|
}
|
|
478
|
-
},
|
|
479
|
+
}, Ji = class {
|
|
479
480
|
constructor() {
|
|
480
481
|
this.listeners = /* @__PURE__ */ new Map(), this.listerHandlerMap = /* @__PURE__ */ new WeakMap(), this.cachedEventQueue = /* @__PURE__ */ new Map();
|
|
481
482
|
}
|
|
482
483
|
on(t, e) {
|
|
483
|
-
|
|
484
|
-
|
|
484
|
+
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
|
|
485
|
+
var n;
|
|
486
|
+
let r = (n = this.listeners.get(t)) != null ? n : new ve(), s = (d) => e(...d.args), o = r.event(s);
|
|
485
487
|
this.listerHandlerMap.set(e, {
|
|
486
|
-
handler:
|
|
488
|
+
handler: s,
|
|
487
489
|
dispose: o
|
|
488
|
-
}), this.listeners.set(t,
|
|
489
|
-
let
|
|
490
|
-
if (
|
|
491
|
-
for (let
|
|
492
|
-
e(...
|
|
490
|
+
}), this.listeners.set(t, r);
|
|
491
|
+
let a = this.cachedEventQueue.get(t);
|
|
492
|
+
if (a && i)
|
|
493
|
+
for (let d of a)
|
|
494
|
+
e(...d.args);
|
|
493
495
|
}
|
|
494
496
|
flushCachedEvent(t) {
|
|
495
497
|
t ? this.cachedEventQueue.delete(t) : this.cachedEventQueue.clear();
|
|
@@ -500,29 +502,36 @@ var x = Qe, un = class {
|
|
|
500
502
|
}
|
|
501
503
|
emit(t) {
|
|
502
504
|
let e = this.listeners.get(t), i = this.cachedEventQueue.get(t);
|
|
503
|
-
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0),
|
|
504
|
-
r[
|
|
505
|
-
i || (i = new
|
|
505
|
+
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), s = 1; s < n; s++)
|
|
506
|
+
r[s - 1] = arguments[s];
|
|
507
|
+
i || (i = new Hi(), this.cachedEventQueue.set(t, i)), i.push({
|
|
506
508
|
args: r
|
|
507
509
|
}), e && e.fire({
|
|
508
510
|
event: t,
|
|
509
511
|
args: r
|
|
510
512
|
});
|
|
511
513
|
}
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
514
|
+
once(t, e) {
|
|
515
|
+
var i = this;
|
|
516
|
+
let n = function() {
|
|
517
|
+
e(...arguments), i.off(t, n);
|
|
518
|
+
};
|
|
519
|
+
this.on(t, n, !1);
|
|
520
|
+
}
|
|
521
|
+
}, Je = {};
|
|
522
|
+
Ni(Je, {
|
|
523
|
+
None: () => Yi,
|
|
524
|
+
filter: () => Xi,
|
|
525
|
+
once: () => Bt,
|
|
526
|
+
toPromise: () => Qi
|
|
518
527
|
});
|
|
519
|
-
var
|
|
528
|
+
var Yi = () => (console.log("[Jolibox SDK] None Event"), () => {
|
|
520
529
|
console.log("[Jolibox SDK] None Event dispose");
|
|
521
530
|
});
|
|
522
|
-
function
|
|
523
|
-
return new Promise((e) =>
|
|
531
|
+
function Qi(t) {
|
|
532
|
+
return new Promise((e) => Bt(t)(e));
|
|
524
533
|
}
|
|
525
|
-
function
|
|
534
|
+
function Bt(t) {
|
|
526
535
|
return function(e) {
|
|
527
536
|
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, n = !1;
|
|
528
537
|
return t((r) => {
|
|
@@ -531,7 +540,7 @@ function ri(t) {
|
|
|
531
540
|
}, null);
|
|
532
541
|
};
|
|
533
542
|
}
|
|
534
|
-
function
|
|
543
|
+
function Xi(t, e) {
|
|
535
544
|
return ((i) => {
|
|
536
545
|
let n = {
|
|
537
546
|
onWillAddFirstListener() {
|
|
@@ -544,36 +553,37 @@ function _n(t, e) {
|
|
|
544
553
|
return t((r) => e(r) && i.call(n, r), null);
|
|
545
554
|
});
|
|
546
555
|
}
|
|
547
|
-
var
|
|
548
|
-
let t = new
|
|
549
|
-
return globalThis[
|
|
556
|
+
var je = Symbol.for("Jolibox.hostEmitter"), Zi = () => {
|
|
557
|
+
let t = new Ji();
|
|
558
|
+
return globalThis[je] || (globalThis[je] = {
|
|
550
559
|
on: t.on.bind(t),
|
|
551
560
|
off: t.off.bind(t),
|
|
552
|
-
emit: t.emit.bind(t)
|
|
553
|
-
|
|
561
|
+
emit: t.emit.bind(t),
|
|
562
|
+
once: t.once.bind(t)
|
|
563
|
+
}), globalThis[je];
|
|
554
564
|
};
|
|
555
|
-
|
|
556
|
-
function
|
|
565
|
+
Zi();
|
|
566
|
+
function en(t, e) {
|
|
557
567
|
let i = Math.min(t.length, e.length);
|
|
558
568
|
for (let n = 0; n < i; n++)
|
|
559
|
-
|
|
569
|
+
tn(t[n], e[n]);
|
|
560
570
|
}
|
|
561
|
-
function
|
|
562
|
-
if (
|
|
571
|
+
function tn(t, e) {
|
|
572
|
+
if (Ci(e)) {
|
|
563
573
|
if (typeof t !== e)
|
|
564
574
|
throw new Error(`argument does not match constraint: typeof ${e}`);
|
|
565
|
-
} else if (
|
|
575
|
+
} else if (Ui(e)) {
|
|
566
576
|
try {
|
|
567
577
|
if (t instanceof e)
|
|
568
578
|
return;
|
|
569
579
|
} catch (i) {
|
|
570
580
|
}
|
|
571
|
-
if (
|
|
581
|
+
if (!$i(t) && t.constructor === e || e.length === 1 && e.call(void 0, t) === !0)
|
|
572
582
|
return;
|
|
573
583
|
throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true");
|
|
574
584
|
}
|
|
575
585
|
}
|
|
576
|
-
var
|
|
586
|
+
var Ye = class {
|
|
577
587
|
constructor() {
|
|
578
588
|
this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new ve(), this.onDidRegisterCommand = this._onDidRegisterCommand.event, console.log("[Jolibox SDK] command registry");
|
|
579
589
|
}
|
|
@@ -582,13 +592,13 @@ var et = class {
|
|
|
582
592
|
throw new Error("invalid command");
|
|
583
593
|
if (e.metadata && Array.isArray(e.metadata.args)) {
|
|
584
594
|
let n = [];
|
|
585
|
-
for (let
|
|
586
|
-
n.push(
|
|
595
|
+
for (let s of e.metadata.args)
|
|
596
|
+
n.push(s.constraint);
|
|
587
597
|
let r = e.handler;
|
|
588
598
|
e.handler = function() {
|
|
589
|
-
for (var
|
|
590
|
-
|
|
591
|
-
return
|
|
599
|
+
for (var s = arguments.length, o = new Array(s), a = 0; a < s; a++)
|
|
600
|
+
o[a] = arguments[a];
|
|
601
|
+
return en(o, n), r(...o);
|
|
592
602
|
};
|
|
593
603
|
}
|
|
594
604
|
let {
|
|
@@ -608,36 +618,36 @@ var et = class {
|
|
|
608
618
|
return e;
|
|
609
619
|
}
|
|
610
620
|
};
|
|
611
|
-
|
|
612
|
-
var
|
|
621
|
+
Ye = Mt([$t], Ye);
|
|
622
|
+
var yt = class {
|
|
613
623
|
constructor() {
|
|
614
|
-
this._onWillExecuteCommand = new ve(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new ve(), this.onDidExecuteCommand = this._onDidExecuteCommand.event, this.registry = new
|
|
624
|
+
this._onWillExecuteCommand = new ve(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new ve(), this.onDidExecuteCommand = this._onDidExecuteCommand.event, this.registry = new Ye(), this._starActivation = null;
|
|
615
625
|
}
|
|
616
626
|
_activateStar() {
|
|
617
|
-
return this._starActivation || (this._starActivation =
|
|
627
|
+
return this._starActivation || (this._starActivation = Pi(3e4)), this._starActivation;
|
|
618
628
|
}
|
|
619
629
|
executeCommand(e) {
|
|
620
630
|
for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), r = 1; r < i; r++)
|
|
621
631
|
n[r - 1] = arguments[r];
|
|
622
|
-
return
|
|
623
|
-
return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(),
|
|
632
|
+
return Li(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, (s) => s === e))])]), this._tryExecuteCommand(e, n));
|
|
624
634
|
});
|
|
625
635
|
}
|
|
626
636
|
executeCommandThowErr(e) {
|
|
627
637
|
if (!this.registry.getCommand(e))
|
|
628
638
|
throw new Error(`command '${e}' not found`);
|
|
629
639
|
let i = this.registry.getCommand(e);
|
|
630
|
-
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0),
|
|
631
|
-
r[
|
|
640
|
+
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), s = 1; s < n; s++)
|
|
641
|
+
r[s - 1] = arguments[s];
|
|
632
642
|
this._onWillExecuteCommand.fire({
|
|
633
643
|
commandId: e,
|
|
634
644
|
args: r
|
|
635
645
|
});
|
|
636
|
-
let
|
|
646
|
+
let o = this.invokeFunction(i.handler, ...r);
|
|
637
647
|
return this._onDidExecuteCommand.fire({
|
|
638
648
|
commandId: e,
|
|
639
649
|
args: r
|
|
640
|
-
}),
|
|
650
|
+
}), o;
|
|
641
651
|
}
|
|
642
652
|
_tryExecuteCommand(e, i) {
|
|
643
653
|
let n = this.registry.getCommand(e);
|
|
@@ -666,15 +676,15 @@ var Rt = class {
|
|
|
666
676
|
}
|
|
667
677
|
}
|
|
668
678
|
};
|
|
669
|
-
|
|
670
|
-
function
|
|
671
|
-
return (e =
|
|
679
|
+
yt = Mt([$t], yt);
|
|
680
|
+
function Fe(t, e, i) {
|
|
681
|
+
return (e = nn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
672
682
|
}
|
|
673
|
-
function
|
|
674
|
-
var e =
|
|
683
|
+
function nn(t) {
|
|
684
|
+
var e = rn(t, "string");
|
|
675
685
|
return typeof e == "symbol" ? e : e + "";
|
|
676
686
|
}
|
|
677
|
-
function
|
|
687
|
+
function rn(t, e) {
|
|
678
688
|
if (typeof t != "object" || !t)
|
|
679
689
|
return t;
|
|
680
690
|
var i = t[Symbol.toPrimitive];
|
|
@@ -686,10 +696,10 @@ function bn(t, e) {
|
|
|
686
696
|
}
|
|
687
697
|
return (e === "string" ? String : Number)(t);
|
|
688
698
|
}
|
|
689
|
-
class
|
|
699
|
+
class Vt {
|
|
690
700
|
constructor(e) {
|
|
691
701
|
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GAME";
|
|
692
|
-
|
|
702
|
+
Fe(this, "context", void 0), Fe(this, "placement", "GAME"), Fe(this, "contextInfo", void 0), this.context = e, this.placement = i, this.contextInfo = this.context.getContextInfo();
|
|
693
703
|
}
|
|
694
704
|
getLocation() {
|
|
695
705
|
const e = new URLSearchParams(window.location.search), i = {};
|
|
@@ -703,7 +713,7 @@ class oi {
|
|
|
703
713
|
getDevice() {
|
|
704
714
|
var e, i, n, r;
|
|
705
715
|
return {
|
|
706
|
-
platform: (e = this.contextInfo.platform) != null ? e :
|
|
716
|
+
platform: (e = this.contextInfo.platform) != null ? e : Ft.WebSDK,
|
|
707
717
|
os: this.contextInfo.osType + "_" + this.contextInfo.runtimeType,
|
|
708
718
|
appVersion: "1.0.0",
|
|
709
719
|
// mock
|
|
@@ -717,32 +727,32 @@ class oi {
|
|
|
717
727
|
};
|
|
718
728
|
}
|
|
719
729
|
serialize(e, i) {
|
|
720
|
-
var
|
|
730
|
+
var s;
|
|
721
731
|
const r = {
|
|
722
732
|
protocolVersion: "1.0.0",
|
|
723
733
|
events: [{
|
|
724
734
|
name: e,
|
|
725
|
-
type:
|
|
735
|
+
type: Ut.System,
|
|
726
736
|
location: this.getLocation(),
|
|
727
737
|
target: null,
|
|
728
738
|
extra: i,
|
|
729
739
|
timestamp: Date.now(),
|
|
730
|
-
userId: (
|
|
740
|
+
userId: (s = this.contextInfo.userId) != null ? s : null
|
|
731
741
|
}],
|
|
732
742
|
device: this.getDevice(),
|
|
733
|
-
project:
|
|
743
|
+
project: jt.WebSDK
|
|
734
744
|
};
|
|
735
|
-
return
|
|
745
|
+
return Ki(r);
|
|
736
746
|
}
|
|
737
747
|
}
|
|
738
748
|
function we(t, e, i) {
|
|
739
|
-
return (e =
|
|
749
|
+
return (e = sn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
740
750
|
}
|
|
741
|
-
function
|
|
742
|
-
var e =
|
|
751
|
+
function sn(t) {
|
|
752
|
+
var e = on(t, "string");
|
|
743
753
|
return typeof e == "symbol" ? e : e + "";
|
|
744
754
|
}
|
|
745
|
-
function
|
|
755
|
+
function on(t, e) {
|
|
746
756
|
if (typeof t != "object" || !t)
|
|
747
757
|
return t;
|
|
748
758
|
var i = t[Symbol.toPrimitive];
|
|
@@ -754,7 +764,7 @@ function wn(t, e) {
|
|
|
754
764
|
}
|
|
755
765
|
return (e === "string" ? String : Number)(t);
|
|
756
766
|
}
|
|
757
|
-
class
|
|
767
|
+
class an {
|
|
758
768
|
constructor(e) {
|
|
759
769
|
we(this, "configs", null), we(this, "firstRun", !0), we(this, "context", void 0), we(this, "contextInfo", void 0), this.context = e, this.contextInfo = this.context.getContextInfo(), this.init();
|
|
760
770
|
}
|
|
@@ -774,20 +784,20 @@ class En {
|
|
|
774
784
|
if (!this.configs)
|
|
775
785
|
this.init(), e = !this.firstRun;
|
|
776
786
|
else {
|
|
777
|
-
const r = (i = this.contextInfo.channel) != null ? i : "",
|
|
778
|
-
e = Math.random() <
|
|
787
|
+
const r = (i = this.contextInfo.channel) != null ? i : "", s = this.configs[r], o = (n = s == null ? void 0 : s.interstitialRate) != null ? n : 1;
|
|
788
|
+
e = Math.random() < o;
|
|
779
789
|
}
|
|
780
790
|
return this.firstRun = !1, e;
|
|
781
791
|
}
|
|
782
792
|
}
|
|
783
793
|
function H(t, e, i) {
|
|
784
|
-
return (e =
|
|
794
|
+
return (e = dn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
785
795
|
}
|
|
786
|
-
function
|
|
787
|
-
var e =
|
|
796
|
+
function dn(t) {
|
|
797
|
+
var e = ln(t, "string");
|
|
788
798
|
return typeof e == "symbol" ? e : e + "";
|
|
789
799
|
}
|
|
790
|
-
function
|
|
800
|
+
function ln(t, e) {
|
|
791
801
|
if (typeof t != "object" || !t)
|
|
792
802
|
return t;
|
|
793
803
|
var i = t[Symbol.toPrimitive];
|
|
@@ -799,7 +809,7 @@ function xn(t, e) {
|
|
|
799
809
|
}
|
|
800
810
|
return (e === "string" ? String : Number)(t);
|
|
801
811
|
}
|
|
802
|
-
class
|
|
812
|
+
class cn {
|
|
803
813
|
/**
|
|
804
814
|
* Internal constructor, should not be called directly
|
|
805
815
|
*/
|
|
@@ -808,12 +818,12 @@ class Rn {
|
|
|
808
818
|
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
809
819
|
window.adsbygoogle.push(n);
|
|
810
820
|
}), H(this, "adConfig", (n) => {
|
|
811
|
-
const
|
|
821
|
+
const o = n, {
|
|
812
822
|
onReady: r
|
|
813
|
-
} =
|
|
823
|
+
} = o, s = ut(o, [
|
|
814
824
|
"onReady"
|
|
815
825
|
]);
|
|
816
|
-
this.context.track("CallAdConfig",
|
|
826
|
+
this.context.track("CallAdConfig", s), this.configured ? console.warn("Ad config already set, skipping") : (this.configured = !0, this.push(n));
|
|
817
827
|
}), H(this, "adBreak", (n) => {
|
|
818
828
|
if (!this.contextInfo.objectId) {
|
|
819
829
|
console.warn("Game ID is not set, skip calling adBreak");
|
|
@@ -821,40 +831,40 @@ class Rn {
|
|
|
821
831
|
}
|
|
822
832
|
this.push(n);
|
|
823
833
|
}), H(this, "adUnit", async (n) => {
|
|
824
|
-
var y,
|
|
834
|
+
var y, _, w, h;
|
|
825
835
|
if (this.context.track("CallAdUnit", {
|
|
826
|
-
adFormat: (
|
|
827
|
-
fullWidthResponsive: (
|
|
836
|
+
adFormat: (_ = (y = n.adFormat) == null ? void 0 : y.toString()) != null ? _ : null,
|
|
837
|
+
fullWidthResponsive: (w = n.fullWidthResponsive) != null ? w : null
|
|
828
838
|
}), document.querySelector("#jolibox-ads")) {
|
|
829
839
|
console.warn("Ad unit already set, skipping");
|
|
830
840
|
return;
|
|
831
841
|
}
|
|
832
842
|
const {
|
|
833
843
|
el: r,
|
|
834
|
-
slot:
|
|
835
|
-
adFormat:
|
|
844
|
+
slot: s,
|
|
845
|
+
adFormat: o,
|
|
836
846
|
fullWidthResponsive: a,
|
|
837
|
-
style:
|
|
847
|
+
style: d
|
|
838
848
|
} = n;
|
|
839
|
-
let
|
|
849
|
+
let l;
|
|
840
850
|
if (!r)
|
|
841
851
|
throw new Error("targeting element is required");
|
|
842
|
-
if (typeof r == "string" ?
|
|
852
|
+
if (typeof r == "string" ? l = document.querySelector(r) : l = r, !l)
|
|
843
853
|
throw new Error("targeting element not found");
|
|
844
|
-
let
|
|
845
|
-
if (
|
|
854
|
+
let c = s;
|
|
855
|
+
if (c || (c = this.initParams.unitId), !c)
|
|
846
856
|
throw new Error("slot is required");
|
|
847
|
-
const
|
|
848
|
-
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",
|
|
849
|
-
const
|
|
850
|
-
|
|
857
|
+
const u = typeof o == "object" && Array.isArray(o) ? o.join(", ") : o, f = document.createElement("ins");
|
|
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
|
+
const p = document.createElement("div");
|
|
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);
|
|
851
861
|
} else
|
|
852
|
-
|
|
862
|
+
l.appendChild(f), new MutationObserver((L) => {
|
|
853
863
|
L.forEach((q) => {
|
|
854
864
|
if (q.type === "attributes" && q.attributeName === "data-ad-status") {
|
|
855
|
-
const
|
|
865
|
+
const F = f.getAttribute("data-ad-status");
|
|
856
866
|
this.context.track("AdSenseUnitStatusChanged", {
|
|
857
|
-
status:
|
|
867
|
+
status: F != null ? F : "null"
|
|
858
868
|
});
|
|
859
869
|
}
|
|
860
870
|
});
|
|
@@ -877,36 +887,36 @@ class Rn {
|
|
|
877
887
|
}
|
|
878
888
|
}
|
|
879
889
|
}
|
|
880
|
-
function
|
|
890
|
+
function un(t) {
|
|
881
891
|
if (t.sheet)
|
|
882
892
|
return t.sheet;
|
|
883
893
|
for (var e = 0; e < document.styleSheets.length; e++)
|
|
884
894
|
if (document.styleSheets[e].ownerNode === t)
|
|
885
895
|
return document.styleSheets[e];
|
|
886
896
|
}
|
|
887
|
-
function
|
|
897
|
+
function fn(t) {
|
|
888
898
|
var e = document.createElement("style");
|
|
889
899
|
return e.setAttribute("data-emotion", t.key), t.nonce !== void 0 && e.setAttribute("nonce", t.nonce), e.appendChild(document.createTextNode("")), e.setAttribute("data-s", ""), e;
|
|
890
900
|
}
|
|
891
|
-
var
|
|
901
|
+
var hn = /* @__PURE__ */ function() {
|
|
892
902
|
function t(i) {
|
|
893
903
|
var n = this;
|
|
894
904
|
this._insertTag = function(r) {
|
|
895
|
-
var
|
|
896
|
-
n.tags.length === 0 ? n.insertionPoint ?
|
|
905
|
+
var s;
|
|
906
|
+
n.tags.length === 0 ? n.insertionPoint ? s = n.insertionPoint.nextSibling : n.prepend ? s = n.container.firstChild : s = n.before : s = n.tags[n.tags.length - 1].nextSibling, n.container.insertBefore(r, s), n.tags.push(r);
|
|
897
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;
|
|
898
908
|
}
|
|
899
909
|
var e = t.prototype;
|
|
900
910
|
return e.hydrate = function(n) {
|
|
901
911
|
n.forEach(this._insertTag);
|
|
902
912
|
}, e.insert = function(n) {
|
|
903
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(
|
|
913
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(fn(this));
|
|
904
914
|
var r = this.tags[this.tags.length - 1];
|
|
905
915
|
if (this.isSpeedy) {
|
|
906
|
-
var
|
|
916
|
+
var s = un(r);
|
|
907
917
|
try {
|
|
908
|
-
|
|
909
|
-
} catch (
|
|
918
|
+
s.insertRule(n, s.cssRules.length);
|
|
919
|
+
} catch (o) {
|
|
910
920
|
}
|
|
911
921
|
} else
|
|
912
922
|
r.appendChild(document.createTextNode(n));
|
|
@@ -917,66 +927,66 @@ var Tn = /* @__PURE__ */ function() {
|
|
|
917
927
|
return (r = n.parentNode) == null ? void 0 : r.removeChild(n);
|
|
918
928
|
}), this.tags = [], this.ctr = 0;
|
|
919
929
|
}, t;
|
|
920
|
-
}(),
|
|
921
|
-
function
|
|
922
|
-
return
|
|
930
|
+
}(), D = "-ms-", ke = "-moz-", g = "-webkit-", zt = "comm", rt = "rule", st = "decl", vn = "@import", Gt = "@keyframes", pn = "@layer", _n = Math.abs, Ce = String.fromCharCode, yn = Object.assign;
|
|
931
|
+
function gn(t, e) {
|
|
932
|
+
return O(t, 0) ^ 45 ? (((e << 2 ^ O(t, 0)) << 2 ^ O(t, 1)) << 2 ^ O(t, 2)) << 2 ^ O(t, 3) : 0;
|
|
923
933
|
}
|
|
924
|
-
function
|
|
934
|
+
function Kt(t) {
|
|
925
935
|
return t.trim();
|
|
926
936
|
}
|
|
927
|
-
function
|
|
937
|
+
function mn(t, e) {
|
|
928
938
|
return (t = e.exec(t)) ? t[0] : t;
|
|
929
939
|
}
|
|
930
940
|
function m(t, e, i) {
|
|
931
941
|
return t.replace(e, i);
|
|
932
942
|
}
|
|
933
|
-
function
|
|
943
|
+
function Qe(t, e) {
|
|
934
944
|
return t.indexOf(e);
|
|
935
945
|
}
|
|
936
|
-
function
|
|
946
|
+
function O(t, e) {
|
|
937
947
|
return t.charCodeAt(e) | 0;
|
|
938
948
|
}
|
|
939
|
-
function
|
|
949
|
+
function pe(t, e, i) {
|
|
940
950
|
return t.slice(e, i);
|
|
941
951
|
}
|
|
942
|
-
function
|
|
952
|
+
function G(t) {
|
|
943
953
|
return t.length;
|
|
944
954
|
}
|
|
945
|
-
function
|
|
955
|
+
function ot(t) {
|
|
946
956
|
return t.length;
|
|
947
957
|
}
|
|
948
|
-
function
|
|
958
|
+
function be(t, e) {
|
|
949
959
|
return e.push(t), t;
|
|
950
960
|
}
|
|
951
|
-
function
|
|
961
|
+
function An(t, e) {
|
|
952
962
|
return t.map(e).join("");
|
|
953
963
|
}
|
|
954
|
-
var Me = 1,
|
|
955
|
-
function
|
|
956
|
-
return { value: t, root: e, parent: i, type: n, props: r, children:
|
|
964
|
+
var Me = 1, ie = 1, qt = 0, M = 0, T = 0, ne = "";
|
|
965
|
+
function $e(t, e, i, n, r, s, o) {
|
|
966
|
+
return { value: t, root: e, parent: i, type: n, props: r, children: s, line: Me, column: ie, length: o, return: "" };
|
|
957
967
|
}
|
|
958
|
-
function
|
|
959
|
-
return
|
|
968
|
+
function le(t, e) {
|
|
969
|
+
return yn($e("", null, null, "", null, null, 0), t, { length: -t.length }, e);
|
|
960
970
|
}
|
|
961
|
-
function
|
|
971
|
+
function wn() {
|
|
962
972
|
return T;
|
|
963
973
|
}
|
|
964
|
-
function
|
|
965
|
-
return T = M > 0 ?
|
|
974
|
+
function bn() {
|
|
975
|
+
return T = M > 0 ? O(ne, --M) : 0, ie--, T === 10 && (ie = 1, Me--), T;
|
|
966
976
|
}
|
|
967
|
-
function
|
|
968
|
-
return T = M <
|
|
977
|
+
function $() {
|
|
978
|
+
return T = M < qt ? O(ne, M++) : 0, ie++, T === 10 && (ie = 1, Me++), T;
|
|
969
979
|
}
|
|
970
|
-
function
|
|
971
|
-
return
|
|
980
|
+
function K() {
|
|
981
|
+
return O(ne, M);
|
|
972
982
|
}
|
|
973
|
-
function
|
|
983
|
+
function Se() {
|
|
974
984
|
return M;
|
|
975
985
|
}
|
|
976
|
-
function
|
|
977
|
-
return
|
|
986
|
+
function ye(t, e) {
|
|
987
|
+
return pe(ne, t, e);
|
|
978
988
|
}
|
|
979
|
-
function
|
|
989
|
+
function _e(t) {
|
|
980
990
|
switch (t) {
|
|
981
991
|
case 0:
|
|
982
992
|
case 9:
|
|
@@ -1008,240 +1018,240 @@ function pe(t) {
|
|
|
1008
1018
|
}
|
|
1009
1019
|
return 0;
|
|
1010
1020
|
}
|
|
1011
|
-
function
|
|
1012
|
-
return Me =
|
|
1021
|
+
function Ht(t) {
|
|
1022
|
+
return Me = ie = 1, qt = G(ne = t), M = 0, [];
|
|
1013
1023
|
}
|
|
1014
|
-
function
|
|
1015
|
-
return
|
|
1024
|
+
function Wt(t) {
|
|
1025
|
+
return ne = "", t;
|
|
1016
1026
|
}
|
|
1017
|
-
function
|
|
1018
|
-
return
|
|
1027
|
+
function xe(t) {
|
|
1028
|
+
return Kt(ye(M - 1, Xe(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
|
|
1019
1029
|
}
|
|
1020
|
-
function
|
|
1021
|
-
for (; (T =
|
|
1022
|
-
|
|
1023
|
-
return
|
|
1030
|
+
function En(t) {
|
|
1031
|
+
for (; (T = K()) && T < 33; )
|
|
1032
|
+
$();
|
|
1033
|
+
return _e(t) > 2 || _e(T) > 3 ? "" : " ";
|
|
1024
1034
|
}
|
|
1025
|
-
function
|
|
1026
|
-
for (; --e &&
|
|
1035
|
+
function Sn(t, e) {
|
|
1036
|
+
for (; --e && $() && !(T < 48 || T > 102 || T > 57 && T < 65 || T > 70 && T < 97); )
|
|
1027
1037
|
;
|
|
1028
|
-
return
|
|
1038
|
+
return ye(t, Se() + (e < 6 && K() == 32 && $() == 32));
|
|
1029
1039
|
}
|
|
1030
|
-
function
|
|
1031
|
-
for (;
|
|
1040
|
+
function Xe(t) {
|
|
1041
|
+
for (; $(); )
|
|
1032
1042
|
switch (T) {
|
|
1033
1043
|
case t:
|
|
1034
1044
|
return M;
|
|
1035
1045
|
case 34:
|
|
1036
1046
|
case 39:
|
|
1037
|
-
t !== 34 && t !== 39 &&
|
|
1047
|
+
t !== 34 && t !== 39 && Xe(T);
|
|
1038
1048
|
break;
|
|
1039
1049
|
case 40:
|
|
1040
|
-
t === 41 &&
|
|
1050
|
+
t === 41 && Xe(t);
|
|
1041
1051
|
break;
|
|
1042
1052
|
case 92:
|
|
1043
|
-
|
|
1053
|
+
$();
|
|
1044
1054
|
break;
|
|
1045
1055
|
}
|
|
1046
1056
|
return M;
|
|
1047
1057
|
}
|
|
1048
|
-
function
|
|
1049
|
-
for (;
|
|
1050
|
-
if (t + T === 84 &&
|
|
1058
|
+
function xn(t, e) {
|
|
1059
|
+
for (; $() && t + T !== 57; )
|
|
1060
|
+
if (t + T === 84 && K() === 47)
|
|
1051
1061
|
break;
|
|
1052
|
-
return "/*" +
|
|
1062
|
+
return "/*" + ye(e, M - 1) + "*" + Ce(t === 47 ? t : $());
|
|
1053
1063
|
}
|
|
1054
|
-
function
|
|
1055
|
-
for (; !
|
|
1056
|
-
|
|
1057
|
-
return
|
|
1064
|
+
function Rn(t) {
|
|
1065
|
+
for (; !_e(K()); )
|
|
1066
|
+
$();
|
|
1067
|
+
return ye(t, M);
|
|
1058
1068
|
}
|
|
1059
|
-
function
|
|
1060
|
-
return
|
|
1069
|
+
function In(t) {
|
|
1070
|
+
return Wt(Re("", null, null, null, [""], t = Ht(t), 0, [0], t));
|
|
1061
1071
|
}
|
|
1062
|
-
function
|
|
1063
|
-
for (var
|
|
1064
|
-
switch (y =
|
|
1072
|
+
function Re(t, e, i, n, r, s, o, a, d) {
|
|
1073
|
+
for (var l = 0, c = 0, u = o, f = 0, v = 0, y = 0, _ = 1, w = 1, h = 1, p = 0, L = "", q = r, F = s, V = n, E = L; w; )
|
|
1074
|
+
switch (y = p, p = $()) {
|
|
1065
1075
|
case 40:
|
|
1066
|
-
if (y != 108 &&
|
|
1067
|
-
|
|
1076
|
+
if (y != 108 && O(E, u - 1) == 58) {
|
|
1077
|
+
Qe(E += m(xe(p), "&", "&\f"), "&\f") != -1 && (h = -1);
|
|
1068
1078
|
break;
|
|
1069
1079
|
}
|
|
1070
1080
|
case 34:
|
|
1071
1081
|
case 39:
|
|
1072
1082
|
case 91:
|
|
1073
|
-
E +=
|
|
1083
|
+
E += xe(p);
|
|
1074
1084
|
break;
|
|
1075
1085
|
case 9:
|
|
1076
1086
|
case 10:
|
|
1077
1087
|
case 13:
|
|
1078
1088
|
case 32:
|
|
1079
|
-
E +=
|
|
1089
|
+
E += En(y);
|
|
1080
1090
|
break;
|
|
1081
1091
|
case 92:
|
|
1082
|
-
E +=
|
|
1092
|
+
E += Sn(Se() - 1, 7);
|
|
1083
1093
|
continue;
|
|
1084
1094
|
case 47:
|
|
1085
|
-
switch (
|
|
1095
|
+
switch (K()) {
|
|
1086
1096
|
case 42:
|
|
1087
1097
|
case 47:
|
|
1088
|
-
|
|
1098
|
+
be(Tn(xn($(), Se()), e, i), d);
|
|
1089
1099
|
break;
|
|
1090
1100
|
default:
|
|
1091
1101
|
E += "/";
|
|
1092
1102
|
}
|
|
1093
1103
|
break;
|
|
1094
|
-
case 123 *
|
|
1095
|
-
a[
|
|
1096
|
-
case 125 *
|
|
1104
|
+
case 123 * _:
|
|
1105
|
+
a[l++] = G(E) * h;
|
|
1106
|
+
case 125 * _:
|
|
1097
1107
|
case 59:
|
|
1098
1108
|
case 0:
|
|
1099
|
-
switch (
|
|
1109
|
+
switch (p) {
|
|
1100
1110
|
case 0:
|
|
1101
1111
|
case 125:
|
|
1102
|
-
|
|
1103
|
-
case 59 +
|
|
1104
|
-
h == -1 && (E = m(E, /\f/g, "")), v > 0 &&
|
|
1112
|
+
w = 0;
|
|
1113
|
+
case 59 + c:
|
|
1114
|
+
h == -1 && (E = m(E, /\f/g, "")), v > 0 && G(E) - u && be(v > 32 ? mt(E + ";", n, i, u - 1) : mt(m(E, " ", "") + ";", n, i, u - 2), d);
|
|
1105
1115
|
break;
|
|
1106
1116
|
case 59:
|
|
1107
1117
|
E += ";";
|
|
1108
1118
|
default:
|
|
1109
|
-
if (
|
|
1110
|
-
if (
|
|
1111
|
-
|
|
1119
|
+
if (be(V = gt(E, e, i, l, c, r, a, L, q = [], F = [], u), s), p === 123)
|
|
1120
|
+
if (c === 0)
|
|
1121
|
+
Re(E, e, V, V, q, s, u, a, F);
|
|
1112
1122
|
else
|
|
1113
|
-
switch (f === 99 &&
|
|
1123
|
+
switch (f === 99 && O(E, 3) === 110 ? 100 : f) {
|
|
1114
1124
|
case 100:
|
|
1115
1125
|
case 108:
|
|
1116
1126
|
case 109:
|
|
1117
1127
|
case 115:
|
|
1118
|
-
|
|
1128
|
+
Re(t, V, V, n && be(gt(t, V, V, 0, 0, r, a, L, r, q = [], u), F), r, F, u, a, n ? q : F);
|
|
1119
1129
|
break;
|
|
1120
1130
|
default:
|
|
1121
|
-
|
|
1131
|
+
Re(E, V, V, V, [""], F, 0, a, F);
|
|
1122
1132
|
}
|
|
1123
1133
|
}
|
|
1124
|
-
|
|
1134
|
+
l = c = v = 0, _ = h = 1, L = E = "", u = o;
|
|
1125
1135
|
break;
|
|
1126
1136
|
case 58:
|
|
1127
|
-
|
|
1137
|
+
u = 1 + G(E), v = y;
|
|
1128
1138
|
default:
|
|
1129
|
-
if (
|
|
1130
|
-
if (
|
|
1131
|
-
--
|
|
1132
|
-
else if (
|
|
1139
|
+
if (_ < 1) {
|
|
1140
|
+
if (p == 123)
|
|
1141
|
+
--_;
|
|
1142
|
+
else if (p == 125 && _++ == 0 && bn() == 125)
|
|
1133
1143
|
continue;
|
|
1134
1144
|
}
|
|
1135
|
-
switch (E +=
|
|
1145
|
+
switch (E += Ce(p), p * _) {
|
|
1136
1146
|
case 38:
|
|
1137
|
-
h =
|
|
1147
|
+
h = c > 0 ? 1 : (E += "\f", -1);
|
|
1138
1148
|
break;
|
|
1139
1149
|
case 44:
|
|
1140
|
-
a[
|
|
1150
|
+
a[l++] = (G(E) - 1) * h, h = 1;
|
|
1141
1151
|
break;
|
|
1142
1152
|
case 64:
|
|
1143
|
-
|
|
1153
|
+
K() === 45 && (E += xe($())), f = K(), c = u = G(L = E += Rn(Se())), p++;
|
|
1144
1154
|
break;
|
|
1145
1155
|
case 45:
|
|
1146
|
-
y === 45 &&
|
|
1156
|
+
y === 45 && G(E) == 2 && (_ = 0);
|
|
1147
1157
|
}
|
|
1148
1158
|
}
|
|
1149
|
-
return
|
|
1159
|
+
return s;
|
|
1150
1160
|
}
|
|
1151
|
-
function
|
|
1152
|
-
for (var
|
|
1153
|
-
for (var h = 0,
|
|
1154
|
-
(L =
|
|
1155
|
-
return
|
|
1161
|
+
function gt(t, e, i, n, r, s, o, a, d, l, c) {
|
|
1162
|
+
for (var u = r - 1, f = r === 0 ? s : [""], v = ot(f), y = 0, _ = 0, w = 0; y < n; ++y)
|
|
1163
|
+
for (var h = 0, p = pe(t, u + 1, u = _n(_ = o[y])), L = t; h < v; ++h)
|
|
1164
|
+
(L = Kt(_ > 0 ? f[h] + " " + p : m(p, /&\f/g, f[h]))) && (d[w++] = L);
|
|
1165
|
+
return $e(t, e, i, r === 0 ? rt : a, d, l, c);
|
|
1156
1166
|
}
|
|
1157
|
-
function
|
|
1158
|
-
return
|
|
1167
|
+
function Tn(t, e, i) {
|
|
1168
|
+
return $e(t, e, i, zt, Ce(wn()), pe(t, 2, -2), 0);
|
|
1159
1169
|
}
|
|
1160
|
-
function
|
|
1161
|
-
return
|
|
1170
|
+
function mt(t, e, i, n) {
|
|
1171
|
+
return $e(t, e, i, st, pe(t, 0, n), pe(t, n + 1, -1), n);
|
|
1162
1172
|
}
|
|
1163
1173
|
function te(t, e) {
|
|
1164
|
-
for (var i = "", n =
|
|
1174
|
+
for (var i = "", n = ot(t), r = 0; r < n; r++)
|
|
1165
1175
|
i += e(t[r], r, t, e) || "";
|
|
1166
1176
|
return i;
|
|
1167
1177
|
}
|
|
1168
|
-
function
|
|
1178
|
+
function On(t, e, i, n) {
|
|
1169
1179
|
switch (t.type) {
|
|
1170
|
-
case
|
|
1180
|
+
case pn:
|
|
1171
1181
|
if (t.children.length)
|
|
1172
1182
|
break;
|
|
1173
|
-
case
|
|
1174
|
-
case
|
|
1183
|
+
case vn:
|
|
1184
|
+
case st:
|
|
1175
1185
|
return t.return = t.return || t.value;
|
|
1176
|
-
case
|
|
1186
|
+
case zt:
|
|
1177
1187
|
return "";
|
|
1178
|
-
case
|
|
1188
|
+
case Gt:
|
|
1179
1189
|
return t.return = t.value + "{" + te(t.children, n) + "}";
|
|
1180
|
-
case
|
|
1190
|
+
case rt:
|
|
1181
1191
|
t.value = t.props.join(",");
|
|
1182
1192
|
}
|
|
1183
|
-
return
|
|
1193
|
+
return G(i = te(t.children, n)) ? t.return = t.value + "{" + i + "}" : "";
|
|
1184
1194
|
}
|
|
1185
|
-
function
|
|
1186
|
-
var e =
|
|
1187
|
-
return function(i, n, r,
|
|
1188
|
-
for (var
|
|
1189
|
-
|
|
1190
|
-
return
|
|
1195
|
+
function kn(t) {
|
|
1196
|
+
var e = ot(t);
|
|
1197
|
+
return function(i, n, r, s) {
|
|
1198
|
+
for (var o = "", a = 0; a < e; a++)
|
|
1199
|
+
o += t[a](i, n, r, s) || "";
|
|
1200
|
+
return o;
|
|
1191
1201
|
};
|
|
1192
1202
|
}
|
|
1193
|
-
function
|
|
1203
|
+
function Dn(t) {
|
|
1194
1204
|
return function(e) {
|
|
1195
1205
|
e.root || (e = e.return) && t(e);
|
|
1196
1206
|
};
|
|
1197
1207
|
}
|
|
1198
|
-
function
|
|
1208
|
+
function Nn(t) {
|
|
1199
1209
|
var e = /* @__PURE__ */ Object.create(null);
|
|
1200
1210
|
return function(i) {
|
|
1201
1211
|
return e[i] === void 0 && (e[i] = t(i)), e[i];
|
|
1202
1212
|
};
|
|
1203
1213
|
}
|
|
1204
|
-
var
|
|
1205
|
-
for (var r = 0,
|
|
1206
|
-
|
|
1207
|
-
return
|
|
1208
|
-
},
|
|
1214
|
+
var Ln = function(e, i, n) {
|
|
1215
|
+
for (var r = 0, s = 0; r = s, s = K(), r === 38 && s === 12 && (i[n] = 1), !_e(s); )
|
|
1216
|
+
$();
|
|
1217
|
+
return ye(e, M);
|
|
1218
|
+
}, Pn = function(e, i) {
|
|
1209
1219
|
var n = -1, r = 44;
|
|
1210
1220
|
do
|
|
1211
|
-
switch (
|
|
1221
|
+
switch (_e(r)) {
|
|
1212
1222
|
case 0:
|
|
1213
|
-
r === 38 &&
|
|
1223
|
+
r === 38 && K() === 12 && (i[n] = 1), e[n] += Ln(M - 1, i, n);
|
|
1214
1224
|
break;
|
|
1215
1225
|
case 2:
|
|
1216
|
-
e[n] +=
|
|
1226
|
+
e[n] += xe(r);
|
|
1217
1227
|
break;
|
|
1218
1228
|
case 4:
|
|
1219
1229
|
if (r === 44) {
|
|
1220
|
-
e[++n] =
|
|
1230
|
+
e[++n] = K() === 58 ? "&\f" : "", i[n] = e[n].length;
|
|
1221
1231
|
break;
|
|
1222
1232
|
}
|
|
1223
1233
|
default:
|
|
1224
|
-
e[n] +=
|
|
1234
|
+
e[n] += Ce(r);
|
|
1225
1235
|
}
|
|
1226
|
-
while (r =
|
|
1236
|
+
while (r = $());
|
|
1227
1237
|
return e;
|
|
1228
|
-
},
|
|
1229
|
-
return
|
|
1230
|
-
},
|
|
1238
|
+
}, Cn = function(e, i) {
|
|
1239
|
+
return Wt(Pn(Ht(e), i));
|
|
1240
|
+
}, At = /* @__PURE__ */ new WeakMap(), Mn = function(e) {
|
|
1231
1241
|
if (!(e.type !== "rule" || !e.parent || // positive .length indicates that this rule contains pseudo
|
|
1232
1242
|
// negative .length indicates that this rule has been already prefixed
|
|
1233
1243
|
e.length < 1)) {
|
|
1234
1244
|
for (var i = e.value, n = e.parent, r = e.column === n.column && e.line === n.line; n.type !== "rule"; )
|
|
1235
1245
|
if (n = n.parent, !n)
|
|
1236
1246
|
return;
|
|
1237
|
-
if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !
|
|
1238
|
-
|
|
1239
|
-
for (var
|
|
1240
|
-
for (var
|
|
1241
|
-
e.props[
|
|
1247
|
+
if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !At.get(n)) && !r) {
|
|
1248
|
+
At.set(e, !0);
|
|
1249
|
+
for (var s = [], o = Cn(i, s), a = n.props, d = 0, l = 0; d < o.length; d++)
|
|
1250
|
+
for (var c = 0; c < a.length; c++, l++)
|
|
1251
|
+
e.props[l] = s[d] ? o[d].replace(/&\f/g, a[c]) : a[c] + " " + o[d];
|
|
1242
1252
|
}
|
|
1243
1253
|
}
|
|
1244
|
-
},
|
|
1254
|
+
}, $n = function(e) {
|
|
1245
1255
|
if (e.type === "decl") {
|
|
1246
1256
|
var i = e.value;
|
|
1247
1257
|
// charcode for l
|
|
@@ -1249,8 +1259,8 @@ var Jn = function(e, i, n) {
|
|
|
1249
1259
|
i.charCodeAt(2) === 98 && (e.return = "", e.value = "");
|
|
1250
1260
|
}
|
|
1251
1261
|
};
|
|
1252
|
-
function
|
|
1253
|
-
switch (
|
|
1262
|
+
function Jt(t, e) {
|
|
1263
|
+
switch (gn(t, e)) {
|
|
1254
1264
|
case 5103:
|
|
1255
1265
|
return g + "print-" + t + t;
|
|
1256
1266
|
case 5737:
|
|
@@ -1284,24 +1294,24 @@ function fi(t, e) {
|
|
|
1284
1294
|
case 4810:
|
|
1285
1295
|
case 6968:
|
|
1286
1296
|
case 2756:
|
|
1287
|
-
return g + t +
|
|
1297
|
+
return g + t + ke + t + D + t + t;
|
|
1288
1298
|
case 6828:
|
|
1289
1299
|
case 4268:
|
|
1290
|
-
return g + t +
|
|
1300
|
+
return g + t + D + t + t;
|
|
1291
1301
|
case 6165:
|
|
1292
|
-
return g + t +
|
|
1302
|
+
return g + t + D + "flex-" + t + t;
|
|
1293
1303
|
case 5187:
|
|
1294
|
-
return g + t + m(t, /(\w+).+(:[^]+)/, g + "box-$1$2" +
|
|
1304
|
+
return g + t + m(t, /(\w+).+(:[^]+)/, g + "box-$1$2" + D + "flex-$1$2") + t;
|
|
1295
1305
|
case 5443:
|
|
1296
|
-
return g + t +
|
|
1306
|
+
return g + t + D + "flex-item-" + m(t, /flex-|-self/, "") + t;
|
|
1297
1307
|
case 4675:
|
|
1298
|
-
return g + t +
|
|
1308
|
+
return g + t + D + "flex-line-pack" + m(t, /align-content|flex-|-self/, "") + t;
|
|
1299
1309
|
case 5548:
|
|
1300
|
-
return g + t +
|
|
1310
|
+
return g + t + D + m(t, "shrink", "negative") + t;
|
|
1301
1311
|
case 5292:
|
|
1302
|
-
return g + t +
|
|
1312
|
+
return g + t + D + m(t, "basis", "preferred-size") + t;
|
|
1303
1313
|
case 6060:
|
|
1304
|
-
return g + "box-" + m(t, "-grow", "") + g + t +
|
|
1314
|
+
return g + "box-" + m(t, "-grow", "") + g + t + D + m(t, "grow", "positive") + t;
|
|
1305
1315
|
case 4554:
|
|
1306
1316
|
return g + m(t, /([^-])(transform)/g, "$1" + g + "$2") + t;
|
|
1307
1317
|
case 6187:
|
|
@@ -1310,7 +1320,7 @@ function fi(t, e) {
|
|
|
1310
1320
|
case 3959:
|
|
1311
1321
|
return m(t, /(image-set\([^]*)/, g + "$1$`$1");
|
|
1312
1322
|
case 4968:
|
|
1313
|
-
return m(m(t, /(.+:)(flex-)?(.*)/, g + "box-pack:$3" +
|
|
1323
|
+
return m(m(t, /(.+:)(flex-)?(.*)/, g + "box-pack:$3" + D + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + g + t + t;
|
|
1314
1324
|
case 4095:
|
|
1315
1325
|
case 3583:
|
|
1316
1326
|
case 4068:
|
|
@@ -1328,121 +1338,121 @@ function fi(t, e) {
|
|
|
1328
1338
|
case 5789:
|
|
1329
1339
|
case 5021:
|
|
1330
1340
|
case 4765:
|
|
1331
|
-
if (
|
|
1332
|
-
switch (
|
|
1341
|
+
if (G(t) - 1 - e > 6)
|
|
1342
|
+
switch (O(t, e + 1)) {
|
|
1333
1343
|
case 109:
|
|
1334
|
-
if (
|
|
1344
|
+
if (O(t, e + 4) !== 45)
|
|
1335
1345
|
break;
|
|
1336
1346
|
case 102:
|
|
1337
|
-
return m(t, /(.+:)(.+)-([^]+)/, "$1" + g + "$2-$3$1" +
|
|
1347
|
+
return m(t, /(.+:)(.+)-([^]+)/, "$1" + g + "$2-$3$1" + ke + (O(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
|
|
1338
1348
|
case 115:
|
|
1339
|
-
return ~
|
|
1349
|
+
return ~Qe(t, "stretch") ? Jt(m(t, "stretch", "fill-available"), e) + t : t;
|
|
1340
1350
|
}
|
|
1341
1351
|
break;
|
|
1342
1352
|
case 4949:
|
|
1343
|
-
if (
|
|
1353
|
+
if (O(t, e + 1) !== 115)
|
|
1344
1354
|
break;
|
|
1345
1355
|
case 6444:
|
|
1346
|
-
switch (
|
|
1356
|
+
switch (O(t, G(t) - 3 - (~Qe(t, "!important") && 10))) {
|
|
1347
1357
|
case 107:
|
|
1348
1358
|
return m(t, ":", ":" + g) + t;
|
|
1349
1359
|
case 101:
|
|
1350
|
-
return m(t, /(.+:)([^;!]+)(;|!.+)?/, "$1" + g + (
|
|
1360
|
+
return m(t, /(.+:)([^;!]+)(;|!.+)?/, "$1" + g + (O(t, 14) === 45 ? "inline-" : "") + "box$3$1" + g + "$2$3$1" + D + "$2box$3") + t;
|
|
1351
1361
|
}
|
|
1352
1362
|
break;
|
|
1353
1363
|
case 5936:
|
|
1354
|
-
switch (
|
|
1364
|
+
switch (O(t, e + 11)) {
|
|
1355
1365
|
case 114:
|
|
1356
|
-
return g + t +
|
|
1366
|
+
return g + t + D + m(t, /[svh]\w+-[tblr]{2}/, "tb") + t;
|
|
1357
1367
|
case 108:
|
|
1358
|
-
return g + t +
|
|
1368
|
+
return g + t + D + m(t, /[svh]\w+-[tblr]{2}/, "tb-rl") + t;
|
|
1359
1369
|
case 45:
|
|
1360
|
-
return g + t +
|
|
1370
|
+
return g + t + D + m(t, /[svh]\w+-[tblr]{2}/, "lr") + t;
|
|
1361
1371
|
}
|
|
1362
|
-
return g + t +
|
|
1372
|
+
return g + t + D + t + t;
|
|
1363
1373
|
}
|
|
1364
1374
|
return t;
|
|
1365
1375
|
}
|
|
1366
|
-
var
|
|
1376
|
+
var Un = function(e, i, n, r) {
|
|
1367
1377
|
if (e.length > -1 && !e.return)
|
|
1368
1378
|
switch (e.type) {
|
|
1369
|
-
case
|
|
1370
|
-
e.return =
|
|
1379
|
+
case st:
|
|
1380
|
+
e.return = Jt(e.value, e.length);
|
|
1371
1381
|
break;
|
|
1372
|
-
case
|
|
1373
|
-
return te([
|
|
1382
|
+
case Gt:
|
|
1383
|
+
return te([le(e, {
|
|
1374
1384
|
value: m(e.value, "@", "@" + g)
|
|
1375
1385
|
})], r);
|
|
1376
|
-
case
|
|
1386
|
+
case rt:
|
|
1377
1387
|
if (e.length)
|
|
1378
|
-
return
|
|
1379
|
-
switch (
|
|
1388
|
+
return An(e.props, function(s) {
|
|
1389
|
+
switch (mn(s, /(::plac\w+|:read-\w+)/)) {
|
|
1380
1390
|
case ":read-only":
|
|
1381
1391
|
case ":read-write":
|
|
1382
|
-
return te([
|
|
1383
|
-
props: [m(
|
|
1392
|
+
return te([le(e, {
|
|
1393
|
+
props: [m(s, /:(read-\w+)/, ":" + ke + "$1")]
|
|
1384
1394
|
})], r);
|
|
1385
1395
|
case "::placeholder":
|
|
1386
|
-
return te([
|
|
1387
|
-
props: [m(
|
|
1388
|
-
}),
|
|
1389
|
-
props: [m(
|
|
1390
|
-
}),
|
|
1391
|
-
props: [m(
|
|
1396
|
+
return te([le(e, {
|
|
1397
|
+
props: [m(s, /:(plac\w+)/, ":" + g + "input-$1")]
|
|
1398
|
+
}), le(e, {
|
|
1399
|
+
props: [m(s, /:(plac\w+)/, ":" + ke + "$1")]
|
|
1400
|
+
}), le(e, {
|
|
1401
|
+
props: [m(s, /:(plac\w+)/, D + "input-$1")]
|
|
1392
1402
|
})], r);
|
|
1393
1403
|
}
|
|
1394
1404
|
return "";
|
|
1395
1405
|
});
|
|
1396
1406
|
}
|
|
1397
|
-
},
|
|
1407
|
+
}, jn = [Un], Fn = function(e) {
|
|
1398
1408
|
var i = e.key;
|
|
1399
1409
|
if (i === "css") {
|
|
1400
1410
|
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
1401
|
-
Array.prototype.forEach.call(n, function(
|
|
1402
|
-
var
|
|
1403
|
-
|
|
1411
|
+
Array.prototype.forEach.call(n, function(_) {
|
|
1412
|
+
var w = _.getAttribute("data-emotion");
|
|
1413
|
+
w.indexOf(" ") !== -1 && (document.head.appendChild(_), _.setAttribute("data-s", ""));
|
|
1404
1414
|
});
|
|
1405
1415
|
}
|
|
1406
|
-
var r = e.stylisPlugins ||
|
|
1407
|
-
|
|
1416
|
+
var r = e.stylisPlugins || jn, s = {}, o, a = [];
|
|
1417
|
+
o = e.container || document.head, Array.prototype.forEach.call(
|
|
1408
1418
|
// this means we will ignore elements which don't have a space in them which
|
|
1409
1419
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
1410
1420
|
document.querySelectorAll('style[data-emotion^="' + i + ' "]'),
|
|
1411
|
-
function(
|
|
1412
|
-
for (var
|
|
1413
|
-
|
|
1414
|
-
a.push(
|
|
1421
|
+
function(_) {
|
|
1422
|
+
for (var w = _.getAttribute("data-emotion").split(" "), h = 1; h < w.length; h++)
|
|
1423
|
+
s[w[h]] = !0;
|
|
1424
|
+
a.push(_);
|
|
1415
1425
|
}
|
|
1416
1426
|
);
|
|
1417
|
-
var
|
|
1427
|
+
var d, l = [Mn, $n];
|
|
1418
1428
|
{
|
|
1419
|
-
var
|
|
1420
|
-
|
|
1421
|
-
})], f =
|
|
1422
|
-
return te(
|
|
1429
|
+
var c, u = [On, Dn(function(_) {
|
|
1430
|
+
c.insert(_);
|
|
1431
|
+
})], f = kn(l.concat(r, u)), v = function(w) {
|
|
1432
|
+
return te(In(w), f);
|
|
1423
1433
|
};
|
|
1424
|
-
|
|
1425
|
-
|
|
1434
|
+
d = function(w, h, p, L) {
|
|
1435
|
+
c = p, v(w ? w + "{" + h.styles + "}" : h.styles), L && (y.inserted[h.name] = !0);
|
|
1426
1436
|
};
|
|
1427
1437
|
}
|
|
1428
1438
|
var y = {
|
|
1429
1439
|
key: i,
|
|
1430
|
-
sheet: new
|
|
1440
|
+
sheet: new hn({
|
|
1431
1441
|
key: i,
|
|
1432
|
-
container:
|
|
1442
|
+
container: o,
|
|
1433
1443
|
nonce: e.nonce,
|
|
1434
1444
|
speedy: e.speedy,
|
|
1435
1445
|
prepend: e.prepend,
|
|
1436
1446
|
insertionPoint: e.insertionPoint
|
|
1437
1447
|
}),
|
|
1438
1448
|
nonce: e.nonce,
|
|
1439
|
-
inserted:
|
|
1449
|
+
inserted: s,
|
|
1440
1450
|
registered: {},
|
|
1441
|
-
insert:
|
|
1451
|
+
insert: d
|
|
1442
1452
|
};
|
|
1443
1453
|
return y.sheet.hydrate(a), y;
|
|
1444
1454
|
};
|
|
1445
|
-
function
|
|
1455
|
+
function Bn(t) {
|
|
1446
1456
|
for (var e = 0, i, n = 0, r = t.length; r >= 4; ++n, r -= 4)
|
|
1447
1457
|
i = t.charCodeAt(n) & 255 | (t.charCodeAt(++n) & 255) << 8 | (t.charCodeAt(++n) & 255) << 16 | (t.charCodeAt(++n) & 255) << 24, i = /* Math.imul(k, m): */
|
|
1448
1458
|
(i & 65535) * 1540483477 + ((i >>> 16) * 59797 << 16), i ^= /* k >>> r: */
|
|
@@ -1461,7 +1471,7 @@ function nr(t) {
|
|
|
1461
1471
|
return e ^= e >>> 13, e = /* Math.imul(h, m): */
|
|
1462
1472
|
(e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
|
|
1463
1473
|
}
|
|
1464
|
-
var
|
|
1474
|
+
var Vn = {
|
|
1465
1475
|
animationIterationCount: 1,
|
|
1466
1476
|
aspectRatio: 1,
|
|
1467
1477
|
borderImageOutset: 1,
|
|
@@ -1510,28 +1520,28 @@ var rr = {
|
|
|
1510
1520
|
strokeMiterlimit: 1,
|
|
1511
1521
|
strokeOpacity: 1,
|
|
1512
1522
|
strokeWidth: 1
|
|
1513
|
-
},
|
|
1523
|
+
}, zn = /[A-Z]|^ms/g, Gn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Yt = function(e) {
|
|
1514
1524
|
return e.charCodeAt(1) === 45;
|
|
1515
|
-
},
|
|
1525
|
+
}, wt = function(e) {
|
|
1516
1526
|
return e != null && typeof e != "boolean";
|
|
1517
|
-
},
|
|
1518
|
-
return
|
|
1519
|
-
}),
|
|
1527
|
+
}, Be = /* @__PURE__ */ Nn(function(t) {
|
|
1528
|
+
return Yt(t) ? t : t.replace(zn, "-$&").toLowerCase();
|
|
1529
|
+
}), bt = function(e, i) {
|
|
1520
1530
|
switch (e) {
|
|
1521
1531
|
case "animation":
|
|
1522
1532
|
case "animationName":
|
|
1523
1533
|
if (typeof i == "string")
|
|
1524
|
-
return i.replace(
|
|
1525
|
-
return
|
|
1534
|
+
return i.replace(Gn, function(n, r, s) {
|
|
1535
|
+
return Y = {
|
|
1526
1536
|
name: r,
|
|
1527
|
-
styles:
|
|
1528
|
-
next:
|
|
1537
|
+
styles: s,
|
|
1538
|
+
next: Y
|
|
1529
1539
|
}, r;
|
|
1530
1540
|
});
|
|
1531
1541
|
}
|
|
1532
|
-
return
|
|
1542
|
+
return Vn[e] !== 1 && !Yt(e) && typeof i == "number" && i !== 0 ? i + "px" : i;
|
|
1533
1543
|
};
|
|
1534
|
-
function
|
|
1544
|
+
function De(t, e, i) {
|
|
1535
1545
|
if (i == null)
|
|
1536
1546
|
return "";
|
|
1537
1547
|
var n = i;
|
|
@@ -1543,97 +1553,97 @@ function Pe(t, e, i) {
|
|
|
1543
1553
|
case "object": {
|
|
1544
1554
|
var r = i;
|
|
1545
1555
|
if (r.anim === 1)
|
|
1546
|
-
return
|
|
1556
|
+
return Y = {
|
|
1547
1557
|
name: r.name,
|
|
1548
1558
|
styles: r.styles,
|
|
1549
|
-
next:
|
|
1559
|
+
next: Y
|
|
1550
1560
|
}, r.name;
|
|
1551
|
-
var
|
|
1552
|
-
if (
|
|
1553
|
-
var
|
|
1554
|
-
if (
|
|
1555
|
-
for (;
|
|
1556
|
-
|
|
1557
|
-
name:
|
|
1558
|
-
styles:
|
|
1559
|
-
next:
|
|
1560
|
-
},
|
|
1561
|
-
var a =
|
|
1561
|
+
var s = i;
|
|
1562
|
+
if (s.styles !== void 0) {
|
|
1563
|
+
var o = s.next;
|
|
1564
|
+
if (o !== void 0)
|
|
1565
|
+
for (; o !== void 0; )
|
|
1566
|
+
Y = {
|
|
1567
|
+
name: o.name,
|
|
1568
|
+
styles: o.styles,
|
|
1569
|
+
next: Y
|
|
1570
|
+
}, o = o.next;
|
|
1571
|
+
var a = s.styles + ";";
|
|
1562
1572
|
return a;
|
|
1563
1573
|
}
|
|
1564
|
-
return
|
|
1574
|
+
return Kn(t, e, i);
|
|
1565
1575
|
}
|
|
1566
1576
|
}
|
|
1567
|
-
var
|
|
1577
|
+
var d = i;
|
|
1568
1578
|
if (e == null)
|
|
1569
|
-
return
|
|
1570
|
-
var
|
|
1571
|
-
return
|
|
1579
|
+
return d;
|
|
1580
|
+
var l = e[d];
|
|
1581
|
+
return l !== void 0 ? l : d;
|
|
1572
1582
|
}
|
|
1573
|
-
function
|
|
1583
|
+
function Kn(t, e, i) {
|
|
1574
1584
|
var n = "";
|
|
1575
1585
|
if (Array.isArray(i))
|
|
1576
1586
|
for (var r = 0; r < i.length; r++)
|
|
1577
|
-
n +=
|
|
1587
|
+
n += De(t, e, i[r]) + ";";
|
|
1578
1588
|
else
|
|
1579
|
-
for (var
|
|
1580
|
-
var
|
|
1581
|
-
if (typeof
|
|
1582
|
-
var a =
|
|
1583
|
-
e != null && e[a] !== void 0 ? n +=
|
|
1584
|
-
} else if (Array.isArray(
|
|
1585
|
-
for (var
|
|
1586
|
-
|
|
1589
|
+
for (var s in i) {
|
|
1590
|
+
var o = i[s];
|
|
1591
|
+
if (typeof o != "object") {
|
|
1592
|
+
var a = o;
|
|
1593
|
+
e != null && e[a] !== void 0 ? n += s + "{" + e[a] + "}" : wt(a) && (n += Be(s) + ":" + bt(s, a) + ";");
|
|
1594
|
+
} else if (Array.isArray(o) && typeof o[0] == "string" && (e == null || e[o[0]] === void 0))
|
|
1595
|
+
for (var d = 0; d < o.length; d++)
|
|
1596
|
+
wt(o[d]) && (n += Be(s) + ":" + bt(s, o[d]) + ";");
|
|
1587
1597
|
else {
|
|
1588
|
-
var
|
|
1589
|
-
switch (
|
|
1598
|
+
var l = De(t, e, o);
|
|
1599
|
+
switch (s) {
|
|
1590
1600
|
case "animation":
|
|
1591
1601
|
case "animationName": {
|
|
1592
|
-
n +=
|
|
1602
|
+
n += Be(s) + ":" + l + ";";
|
|
1593
1603
|
break;
|
|
1594
1604
|
}
|
|
1595
1605
|
default:
|
|
1596
|
-
n +=
|
|
1606
|
+
n += s + "{" + l + "}";
|
|
1597
1607
|
}
|
|
1598
1608
|
}
|
|
1599
1609
|
}
|
|
1600
1610
|
return n;
|
|
1601
1611
|
}
|
|
1602
|
-
var
|
|
1603
|
-
function
|
|
1612
|
+
var Et = /label:\s*([^\s;{]+)\s*(;|$)/g, Y;
|
|
1613
|
+
function Ve(t, e, i) {
|
|
1604
1614
|
if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
|
|
1605
1615
|
return t[0];
|
|
1606
1616
|
var n = !0, r = "";
|
|
1607
|
-
|
|
1608
|
-
var
|
|
1609
|
-
if (
|
|
1610
|
-
n = !1, r +=
|
|
1617
|
+
Y = void 0;
|
|
1618
|
+
var s = t[0];
|
|
1619
|
+
if (s == null || s.raw === void 0)
|
|
1620
|
+
n = !1, r += De(i, e, s);
|
|
1611
1621
|
else {
|
|
1612
|
-
var
|
|
1613
|
-
r +=
|
|
1622
|
+
var o = s;
|
|
1623
|
+
r += o[0];
|
|
1614
1624
|
}
|
|
1615
1625
|
for (var a = 1; a < t.length; a++)
|
|
1616
|
-
if (r +=
|
|
1617
|
-
var
|
|
1618
|
-
r +=
|
|
1626
|
+
if (r += De(i, e, t[a]), n) {
|
|
1627
|
+
var d = s;
|
|
1628
|
+
r += d[a];
|
|
1619
1629
|
}
|
|
1620
|
-
|
|
1621
|
-
for (var
|
|
1622
|
-
|
|
1623
|
-
var
|
|
1630
|
+
Et.lastIndex = 0;
|
|
1631
|
+
for (var l = "", c; (c = Et.exec(r)) !== null; )
|
|
1632
|
+
l += "-" + c[1];
|
|
1633
|
+
var u = Bn(r) + l;
|
|
1624
1634
|
return {
|
|
1625
|
-
name:
|
|
1635
|
+
name: u,
|
|
1626
1636
|
styles: r,
|
|
1627
|
-
next:
|
|
1637
|
+
next: Y
|
|
1628
1638
|
};
|
|
1629
1639
|
}
|
|
1630
|
-
function
|
|
1640
|
+
function Qt(t, e, i) {
|
|
1631
1641
|
var n = "";
|
|
1632
1642
|
return i.split(" ").forEach(function(r) {
|
|
1633
1643
|
t[r] !== void 0 ? e.push(t[r] + ";") : r && (n += r + " ");
|
|
1634
1644
|
}), n;
|
|
1635
1645
|
}
|
|
1636
|
-
var
|
|
1646
|
+
var qn = function(e, i, n) {
|
|
1637
1647
|
var r = e.key + "-" + i.name;
|
|
1638
1648
|
// we only need to add the styles to the registered cache if the
|
|
1639
1649
|
// class name could be used further down
|
|
@@ -1641,60 +1651,60 @@ var lr = function(e, i, n) {
|
|
|
1641
1651
|
// so we don't have to add it to registered cache.
|
|
1642
1652
|
// this improves memory usage since we can avoid storing the whole style string
|
|
1643
1653
|
e.registered[r] === void 0 && (e.registered[r] = i.styles);
|
|
1644
|
-
},
|
|
1645
|
-
|
|
1654
|
+
}, Hn = function(e, i, n) {
|
|
1655
|
+
qn(e, i);
|
|
1646
1656
|
var r = e.key + "-" + i.name;
|
|
1647
1657
|
if (e.inserted[i.name] === void 0) {
|
|
1648
|
-
var
|
|
1658
|
+
var s = i;
|
|
1649
1659
|
do
|
|
1650
|
-
e.insert(i ===
|
|
1651
|
-
while (
|
|
1660
|
+
e.insert(i === s ? "." + r : "", s, e.sheet, !0), s = s.next;
|
|
1661
|
+
while (s !== void 0);
|
|
1652
1662
|
}
|
|
1653
1663
|
};
|
|
1654
|
-
function
|
|
1664
|
+
function St(t, e) {
|
|
1655
1665
|
if (t.inserted[e.name] === void 0)
|
|
1656
1666
|
return t.insert("", e, t.sheet, !0);
|
|
1657
1667
|
}
|
|
1658
|
-
function
|
|
1659
|
-
var n = [], r =
|
|
1668
|
+
function xt(t, e, i) {
|
|
1669
|
+
var n = [], r = Qt(t, n, i);
|
|
1660
1670
|
return n.length < 2 ? i : r + e(n);
|
|
1661
1671
|
}
|
|
1662
|
-
var
|
|
1663
|
-
var i =
|
|
1672
|
+
var Wn = function(e) {
|
|
1673
|
+
var i = Fn(e);
|
|
1664
1674
|
i.sheet.speedy = function(a) {
|
|
1665
1675
|
this.isSpeedy = a;
|
|
1666
1676
|
}, i.compat = !0;
|
|
1667
1677
|
var n = function() {
|
|
1668
|
-
for (var
|
|
1669
|
-
c
|
|
1670
|
-
var
|
|
1671
|
-
return
|
|
1678
|
+
for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
|
|
1679
|
+
l[c] = arguments[c];
|
|
1680
|
+
var u = Ve(l, i.registered, void 0);
|
|
1681
|
+
return Hn(i, u), i.key + "-" + u.name;
|
|
1672
1682
|
}, r = function() {
|
|
1673
|
-
for (var
|
|
1674
|
-
c
|
|
1675
|
-
var
|
|
1676
|
-
return
|
|
1677
|
-
name:
|
|
1678
|
-
styles: "@keyframes " + f + "{" +
|
|
1683
|
+
for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
|
|
1684
|
+
l[c] = arguments[c];
|
|
1685
|
+
var u = Ve(l, i.registered), f = "animation-" + u.name;
|
|
1686
|
+
return St(i, {
|
|
1687
|
+
name: u.name,
|
|
1688
|
+
styles: "@keyframes " + f + "{" + u.styles + "}"
|
|
1679
1689
|
}), f;
|
|
1680
|
-
}, o = function() {
|
|
1681
|
-
for (var l = arguments.length, c = new Array(l), u = 0; u < l; u++)
|
|
1682
|
-
c[u] = arguments[u];
|
|
1683
|
-
var d = Ke(c, i.registered);
|
|
1684
|
-
Pt(i, d);
|
|
1685
1690
|
}, s = function() {
|
|
1686
|
-
for (var
|
|
1687
|
-
c
|
|
1688
|
-
|
|
1691
|
+
for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
|
|
1692
|
+
l[c] = arguments[c];
|
|
1693
|
+
var u = Ve(l, i.registered);
|
|
1694
|
+
St(i, u);
|
|
1695
|
+
}, o = function() {
|
|
1696
|
+
for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
|
|
1697
|
+
l[c] = arguments[c];
|
|
1698
|
+
return xt(i.registered, n, Jn(l));
|
|
1689
1699
|
};
|
|
1690
1700
|
return {
|
|
1691
1701
|
css: n,
|
|
1692
|
-
cx:
|
|
1693
|
-
injectGlobal:
|
|
1702
|
+
cx: o,
|
|
1703
|
+
injectGlobal: s,
|
|
1694
1704
|
keyframes: r,
|
|
1695
|
-
hydrate: function(
|
|
1696
|
-
|
|
1697
|
-
i.inserted[
|
|
1705
|
+
hydrate: function(d) {
|
|
1706
|
+
d.forEach(function(l) {
|
|
1707
|
+
i.inserted[l] = !0;
|
|
1698
1708
|
});
|
|
1699
1709
|
},
|
|
1700
1710
|
flush: function() {
|
|
@@ -1702,137 +1712,133 @@ var ur = function(e) {
|
|
|
1702
1712
|
},
|
|
1703
1713
|
sheet: i.sheet,
|
|
1704
1714
|
cache: i,
|
|
1705
|
-
getRegisteredStyles:
|
|
1706
|
-
merge:
|
|
1715
|
+
getRegisteredStyles: Qt.bind(null, i.registered),
|
|
1716
|
+
merge: xt.bind(null, i.registered, n)
|
|
1707
1717
|
};
|
|
1708
|
-
},
|
|
1718
|
+
}, Jn = function t(e) {
|
|
1709
1719
|
for (var i = "", n = 0; n < e.length; n++) {
|
|
1710
1720
|
var r = e[n];
|
|
1711
1721
|
if (r != null) {
|
|
1712
|
-
var
|
|
1722
|
+
var s = void 0;
|
|
1713
1723
|
switch (typeof r) {
|
|
1714
1724
|
case "boolean":
|
|
1715
1725
|
break;
|
|
1716
1726
|
case "object": {
|
|
1717
1727
|
if (Array.isArray(r))
|
|
1718
|
-
|
|
1728
|
+
s = t(r);
|
|
1719
1729
|
else {
|
|
1720
|
-
|
|
1721
|
-
for (var
|
|
1722
|
-
r[
|
|
1730
|
+
s = "";
|
|
1731
|
+
for (var o in r)
|
|
1732
|
+
r[o] && o && (s && (s += " "), s += o);
|
|
1723
1733
|
}
|
|
1724
1734
|
break;
|
|
1725
1735
|
}
|
|
1726
1736
|
default:
|
|
1727
|
-
|
|
1737
|
+
s = r;
|
|
1728
1738
|
}
|
|
1729
|
-
|
|
1739
|
+
s && (i && (i += " "), i += s);
|
|
1730
1740
|
}
|
|
1731
1741
|
}
|
|
1732
1742
|
return i;
|
|
1733
|
-
},
|
|
1743
|
+
}, Yn = Wn({
|
|
1734
1744
|
key: "css"
|
|
1735
|
-
}),
|
|
1736
|
-
function
|
|
1737
|
-
R.__h && R.__h(
|
|
1738
|
-
var i =
|
|
1745
|
+
}), ge = Yn.css, Ne, C, ze, Rt, Ze = 0, Xt = [], R = Z, It = R.__b, Tt = R.__r, Ot = R.diffed, kt = R.__c, Dt = R.unmount, Nt = R.__;
|
|
1746
|
+
function Zt(t, e) {
|
|
1747
|
+
R.__h && R.__h(C, t, Ze || e), Ze = 0;
|
|
1748
|
+
var i = C.__H || (C.__H = { __: [], __h: [] });
|
|
1739
1749
|
return t >= i.__.length && i.__.push({}), i.__[t];
|
|
1740
1750
|
}
|
|
1741
|
-
function
|
|
1742
|
-
var i =
|
|
1743
|
-
!R.__s &&
|
|
1744
|
-
}
|
|
1745
|
-
function hr(t, e) {
|
|
1746
|
-
var i = dt(ye++, 4);
|
|
1747
|
-
!R.__s && ht(i.__H, e) && (i.__ = t, i.u = e, P.__h.push(i));
|
|
1751
|
+
function Qn(t, e) {
|
|
1752
|
+
var i = Zt(Ne++, 3);
|
|
1753
|
+
!R.__s && ei(i.__H, e) && (i.__ = t, i.u = e, C.__H.__h.push(i));
|
|
1748
1754
|
}
|
|
1749
|
-
function
|
|
1750
|
-
return
|
|
1755
|
+
function Xn(t) {
|
|
1756
|
+
return Ze = 5, at(function() {
|
|
1751
1757
|
return { current: t };
|
|
1752
1758
|
}, []);
|
|
1753
1759
|
}
|
|
1754
|
-
function
|
|
1755
|
-
var i =
|
|
1756
|
-
return
|
|
1760
|
+
function at(t, e) {
|
|
1761
|
+
var i = Zt(Ne++, 7);
|
|
1762
|
+
return ei(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
|
|
1757
1763
|
}
|
|
1758
|
-
function
|
|
1759
|
-
for (var t; t =
|
|
1764
|
+
function Zn() {
|
|
1765
|
+
for (var t; t = Xt.shift(); )
|
|
1760
1766
|
if (t.__P && t.__H)
|
|
1761
1767
|
try {
|
|
1762
|
-
t.__H.__h.forEach(
|
|
1768
|
+
t.__H.__h.forEach(Ie), t.__H.__h.forEach(et), t.__H.__h = [];
|
|
1763
1769
|
} catch (e) {
|
|
1764
1770
|
t.__H.__h = [], R.__e(e, t.__v);
|
|
1765
1771
|
}
|
|
1766
1772
|
}
|
|
1767
1773
|
R.__b = function(t) {
|
|
1768
|
-
|
|
1774
|
+
C = null, It && It(t);
|
|
1769
1775
|
}, R.__ = function(t, e) {
|
|
1770
|
-
t && e.__k && e.__k.__m && (t.__m = e.__k.__m),
|
|
1776
|
+
t && e.__k && e.__k.__m && (t.__m = e.__k.__m), Nt && Nt(t, e);
|
|
1771
1777
|
}, R.__r = function(t) {
|
|
1772
|
-
|
|
1773
|
-
var e = (
|
|
1774
|
-
e && (ze ===
|
|
1778
|
+
Tt && Tt(t), Ne = 0;
|
|
1779
|
+
var e = (C = t.__c).__H;
|
|
1780
|
+
e && (ze === C ? (e.__h = [], C.__h = [], e.__.forEach(function(i) {
|
|
1775
1781
|
i.__N && (i.__ = i.__N), i.u = i.__N = void 0;
|
|
1776
|
-
})) : (e.__h.forEach(
|
|
1782
|
+
})) : (e.__h.forEach(Ie), e.__h.forEach(et), e.__h = [], Ne = 0)), ze = C;
|
|
1777
1783
|
}, R.diffed = function(t) {
|
|
1778
|
-
|
|
1784
|
+
Ot && Ot(t);
|
|
1779
1785
|
var e = t.__c;
|
|
1780
|
-
e && e.__H && (e.__H.__h.length && (
|
|
1786
|
+
e && e.__H && (e.__H.__h.length && (Xt.push(e) !== 1 && Rt === R.requestAnimationFrame || ((Rt = R.requestAnimationFrame) || er)(Zn)), e.__H.__.forEach(function(i) {
|
|
1781
1787
|
i.u && (i.__H = i.u), i.u = void 0;
|
|
1782
|
-
})), ze =
|
|
1788
|
+
})), ze = C = null;
|
|
1783
1789
|
}, R.__c = function(t, e) {
|
|
1784
1790
|
e.some(function(i) {
|
|
1785
1791
|
try {
|
|
1786
|
-
i.__h.forEach(
|
|
1787
|
-
return !n.__ ||
|
|
1792
|
+
i.__h.forEach(Ie), i.__h = i.__h.filter(function(n) {
|
|
1793
|
+
return !n.__ || et(n);
|
|
1788
1794
|
});
|
|
1789
1795
|
} catch (n) {
|
|
1790
1796
|
e.some(function(r) {
|
|
1791
1797
|
r.__h && (r.__h = []);
|
|
1792
1798
|
}), e = [], R.__e(n, i.__v);
|
|
1793
1799
|
}
|
|
1794
|
-
}),
|
|
1800
|
+
}), kt && kt(t, e);
|
|
1795
1801
|
}, R.unmount = function(t) {
|
|
1796
|
-
|
|
1802
|
+
Dt && Dt(t);
|
|
1797
1803
|
var e, i = t.__c;
|
|
1798
1804
|
i && i.__H && (i.__H.__.forEach(function(n) {
|
|
1799
1805
|
try {
|
|
1800
|
-
|
|
1806
|
+
Ie(n);
|
|
1801
1807
|
} catch (r) {
|
|
1802
1808
|
e = r;
|
|
1803
1809
|
}
|
|
1804
1810
|
}), i.__H = void 0, e && R.__e(e, i.__v));
|
|
1805
1811
|
};
|
|
1806
|
-
var
|
|
1807
|
-
function
|
|
1812
|
+
var Lt = typeof requestAnimationFrame == "function";
|
|
1813
|
+
function er(t) {
|
|
1808
1814
|
var e, i = function() {
|
|
1809
|
-
clearTimeout(n),
|
|
1815
|
+
clearTimeout(n), Lt && cancelAnimationFrame(e), setTimeout(t);
|
|
1810
1816
|
}, n = setTimeout(i, 100);
|
|
1811
|
-
|
|
1817
|
+
Lt && (e = requestAnimationFrame(i));
|
|
1812
1818
|
}
|
|
1813
|
-
function
|
|
1814
|
-
var e =
|
|
1815
|
-
typeof i == "function" && (t.__c = void 0, i()),
|
|
1819
|
+
function Ie(t) {
|
|
1820
|
+
var e = C, i = t.__c;
|
|
1821
|
+
typeof i == "function" && (t.__c = void 0, i()), C = e;
|
|
1816
1822
|
}
|
|
1817
|
-
function
|
|
1818
|
-
var e =
|
|
1819
|
-
t.__c = t.__(),
|
|
1823
|
+
function et(t) {
|
|
1824
|
+
var e = C;
|
|
1825
|
+
t.__c = t.__(), C = e;
|
|
1820
1826
|
}
|
|
1821
|
-
function
|
|
1827
|
+
function ei(t, e) {
|
|
1822
1828
|
return !t || t.length !== e.length || e.some(function(i, n) {
|
|
1823
1829
|
return i !== t[n];
|
|
1824
1830
|
});
|
|
1825
1831
|
}
|
|
1826
|
-
var
|
|
1827
|
-
function
|
|
1828
|
-
if (
|
|
1829
|
-
|
|
1832
|
+
var tr = Symbol.for("preact-signals");
|
|
1833
|
+
function Ue() {
|
|
1834
|
+
if (Q > 1)
|
|
1835
|
+
Q--;
|
|
1830
1836
|
else {
|
|
1831
|
-
for (var t, e = !1;
|
|
1832
|
-
var i =
|
|
1833
|
-
for (
|
|
1837
|
+
for (var t, e = !1; ue !== void 0; ) {
|
|
1838
|
+
var i = ue;
|
|
1839
|
+
for (ue = void 0, tt++; i !== void 0; ) {
|
|
1834
1840
|
var n = i.o;
|
|
1835
|
-
if (i.o = void 0, i.f &= -3, !(8 & i.f) &&
|
|
1841
|
+
if (i.o = void 0, i.f &= -3, !(8 & i.f) && ii(i))
|
|
1836
1842
|
try {
|
|
1837
1843
|
i.c();
|
|
1838
1844
|
} catch (r) {
|
|
@@ -1841,102 +1847,102 @@ function Fe() {
|
|
|
1841
1847
|
i = n;
|
|
1842
1848
|
}
|
|
1843
1849
|
}
|
|
1844
|
-
if (
|
|
1850
|
+
if (tt = 0, Q--, e)
|
|
1845
1851
|
throw t;
|
|
1846
1852
|
}
|
|
1847
1853
|
}
|
|
1848
|
-
function
|
|
1849
|
-
if (
|
|
1854
|
+
function N(t) {
|
|
1855
|
+
if (Q > 0)
|
|
1850
1856
|
return t();
|
|
1851
|
-
|
|
1857
|
+
Q++;
|
|
1852
1858
|
try {
|
|
1853
1859
|
return t();
|
|
1854
1860
|
} finally {
|
|
1855
|
-
|
|
1861
|
+
Ue();
|
|
1856
1862
|
}
|
|
1857
1863
|
}
|
|
1858
|
-
var
|
|
1859
|
-
function
|
|
1860
|
-
if (
|
|
1864
|
+
var b = void 0, ue = void 0, Q = 0, tt = 0, Le = 0;
|
|
1865
|
+
function ti(t) {
|
|
1866
|
+
if (b !== void 0) {
|
|
1861
1867
|
var e = t.n;
|
|
1862
|
-
if (e === void 0 || e.t !==
|
|
1863
|
-
return e = { i: 0, S: t, p:
|
|
1868
|
+
if (e === void 0 || e.t !== b)
|
|
1869
|
+
return e = { i: 0, S: t, p: b.s, n: void 0, t: b, e: void 0, x: void 0, r: e }, b.s !== void 0 && (b.s.n = e), b.s = e, t.n = e, 32 & b.f && t.S(e), e;
|
|
1864
1870
|
if (e.i === -1)
|
|
1865
|
-
return e.i = 0, e.n !== void 0 && (e.n.p = e.p, e.p !== void 0 && (e.p.n = e.n), e.p =
|
|
1871
|
+
return e.i = 0, e.n !== void 0 && (e.n.p = e.p, e.p !== void 0 && (e.p.n = e.n), e.p = b.s, e.n = void 0, b.s.n = e, b.s = e), e;
|
|
1866
1872
|
}
|
|
1867
1873
|
}
|
|
1868
|
-
function
|
|
1874
|
+
function k(t) {
|
|
1869
1875
|
this.v = t, this.i = 0, this.n = void 0, this.t = void 0;
|
|
1870
1876
|
}
|
|
1871
|
-
|
|
1872
|
-
|
|
1877
|
+
k.prototype.brand = tr;
|
|
1878
|
+
k.prototype.h = function() {
|
|
1873
1879
|
return !0;
|
|
1874
1880
|
};
|
|
1875
|
-
|
|
1881
|
+
k.prototype.S = function(t) {
|
|
1876
1882
|
this.t !== t && t.e === void 0 && (t.x = this.t, this.t !== void 0 && (this.t.e = t), this.t = t);
|
|
1877
1883
|
};
|
|
1878
|
-
|
|
1884
|
+
k.prototype.U = function(t) {
|
|
1879
1885
|
if (this.t !== void 0) {
|
|
1880
1886
|
var e = t.e, i = t.x;
|
|
1881
1887
|
e !== void 0 && (e.x = i, t.e = void 0), i !== void 0 && (i.e = e, t.x = void 0), t === this.t && (this.t = i);
|
|
1882
1888
|
}
|
|
1883
1889
|
};
|
|
1884
|
-
|
|
1890
|
+
k.prototype.subscribe = function(t) {
|
|
1885
1891
|
var e = this;
|
|
1886
1892
|
return se(function() {
|
|
1887
|
-
var i = e.value, n =
|
|
1888
|
-
|
|
1893
|
+
var i = e.value, n = b;
|
|
1894
|
+
b = void 0;
|
|
1889
1895
|
try {
|
|
1890
1896
|
t(i);
|
|
1891
1897
|
} finally {
|
|
1892
|
-
|
|
1898
|
+
b = n;
|
|
1893
1899
|
}
|
|
1894
1900
|
});
|
|
1895
1901
|
};
|
|
1896
|
-
|
|
1902
|
+
k.prototype.valueOf = function() {
|
|
1897
1903
|
return this.value;
|
|
1898
1904
|
};
|
|
1899
|
-
|
|
1905
|
+
k.prototype.toString = function() {
|
|
1900
1906
|
return this.value + "";
|
|
1901
1907
|
};
|
|
1902
|
-
|
|
1908
|
+
k.prototype.toJSON = function() {
|
|
1903
1909
|
return this.value;
|
|
1904
1910
|
};
|
|
1905
|
-
|
|
1906
|
-
var t =
|
|
1907
|
-
|
|
1911
|
+
k.prototype.peek = function() {
|
|
1912
|
+
var t = b;
|
|
1913
|
+
b = void 0;
|
|
1908
1914
|
try {
|
|
1909
1915
|
return this.value;
|
|
1910
1916
|
} finally {
|
|
1911
|
-
|
|
1917
|
+
b = t;
|
|
1912
1918
|
}
|
|
1913
1919
|
};
|
|
1914
|
-
Object.defineProperty(
|
|
1915
|
-
var t =
|
|
1920
|
+
Object.defineProperty(k.prototype, "value", { get: function() {
|
|
1921
|
+
var t = ti(this);
|
|
1916
1922
|
return t !== void 0 && (t.i = this.i), this.v;
|
|
1917
1923
|
}, set: function(t) {
|
|
1918
1924
|
if (t !== this.v) {
|
|
1919
|
-
if (
|
|
1925
|
+
if (tt > 100)
|
|
1920
1926
|
throw new Error("Cycle detected");
|
|
1921
|
-
this.v = t, this.i++,
|
|
1927
|
+
this.v = t, this.i++, Le++, Q++;
|
|
1922
1928
|
try {
|
|
1923
1929
|
for (var e = this.t; e !== void 0; e = e.x)
|
|
1924
1930
|
e.t.N();
|
|
1925
1931
|
} finally {
|
|
1926
|
-
|
|
1932
|
+
Ue();
|
|
1927
1933
|
}
|
|
1928
1934
|
}
|
|
1929
1935
|
} });
|
|
1930
|
-
function
|
|
1931
|
-
return new
|
|
1936
|
+
function I(t) {
|
|
1937
|
+
return new k(t);
|
|
1932
1938
|
}
|
|
1933
|
-
function
|
|
1939
|
+
function ii(t) {
|
|
1934
1940
|
for (var e = t.s; e !== void 0; e = e.n)
|
|
1935
1941
|
if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i)
|
|
1936
1942
|
return !0;
|
|
1937
1943
|
return !1;
|
|
1938
1944
|
}
|
|
1939
|
-
function
|
|
1945
|
+
function ni(t) {
|
|
1940
1946
|
for (var e = t.s; e !== void 0; e = e.n) {
|
|
1941
1947
|
var i = e.S.n;
|
|
1942
1948
|
if (i !== void 0 && (e.r = i), e.S.n = e, e.i = -1, e.n === void 0) {
|
|
@@ -1945,95 +1951,95 @@ function mi(t) {
|
|
|
1945
1951
|
}
|
|
1946
1952
|
}
|
|
1947
1953
|
}
|
|
1948
|
-
function
|
|
1954
|
+
function ri(t) {
|
|
1949
1955
|
for (var e = t.s, i = void 0; e !== void 0; ) {
|
|
1950
1956
|
var n = e.p;
|
|
1951
1957
|
e.i === -1 ? (e.S.U(e), n !== void 0 && (n.n = e.n), e.n !== void 0 && (e.n.p = n)) : i = e, e.S.n = e.r, e.r !== void 0 && (e.r = void 0), e = n;
|
|
1952
1958
|
}
|
|
1953
1959
|
t.s = i;
|
|
1954
1960
|
}
|
|
1955
|
-
function
|
|
1956
|
-
|
|
1961
|
+
function re(t) {
|
|
1962
|
+
k.call(this, void 0), this.x = t, this.s = void 0, this.g = Le - 1, this.f = 4;
|
|
1957
1963
|
}
|
|
1958
|
-
(
|
|
1964
|
+
(re.prototype = new k()).h = function() {
|
|
1959
1965
|
if (this.f &= -3, 1 & this.f)
|
|
1960
1966
|
return !1;
|
|
1961
|
-
if ((36 & this.f) == 32 || (this.f &= -5, this.g ===
|
|
1967
|
+
if ((36 & this.f) == 32 || (this.f &= -5, this.g === Le))
|
|
1962
1968
|
return !0;
|
|
1963
|
-
if (this.g =
|
|
1969
|
+
if (this.g = Le, this.f |= 1, this.i > 0 && !ii(this))
|
|
1964
1970
|
return this.f &= -2, !0;
|
|
1965
|
-
var t =
|
|
1971
|
+
var t = b;
|
|
1966
1972
|
try {
|
|
1967
|
-
|
|
1973
|
+
ni(this), b = this;
|
|
1968
1974
|
var e = this.x();
|
|
1969
1975
|
(16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
|
|
1970
1976
|
} catch (i) {
|
|
1971
1977
|
this.v = i, this.f |= 16, this.i++;
|
|
1972
1978
|
}
|
|
1973
|
-
return
|
|
1979
|
+
return b = t, ri(this), this.f &= -2, !0;
|
|
1974
1980
|
};
|
|
1975
|
-
|
|
1981
|
+
re.prototype.S = function(t) {
|
|
1976
1982
|
if (this.t === void 0) {
|
|
1977
1983
|
this.f |= 36;
|
|
1978
1984
|
for (var e = this.s; e !== void 0; e = e.n)
|
|
1979
1985
|
e.S.S(e);
|
|
1980
1986
|
}
|
|
1981
|
-
|
|
1987
|
+
k.prototype.S.call(this, t);
|
|
1982
1988
|
};
|
|
1983
|
-
|
|
1984
|
-
if (this.t !== void 0 && (
|
|
1989
|
+
re.prototype.U = function(t) {
|
|
1990
|
+
if (this.t !== void 0 && (k.prototype.U.call(this, t), this.t === void 0)) {
|
|
1985
1991
|
this.f &= -33;
|
|
1986
1992
|
for (var e = this.s; e !== void 0; e = e.n)
|
|
1987
1993
|
e.S.U(e);
|
|
1988
1994
|
}
|
|
1989
1995
|
};
|
|
1990
|
-
|
|
1996
|
+
re.prototype.N = function() {
|
|
1991
1997
|
if (!(2 & this.f)) {
|
|
1992
1998
|
this.f |= 6;
|
|
1993
1999
|
for (var t = this.t; t !== void 0; t = t.x)
|
|
1994
2000
|
t.t.N();
|
|
1995
2001
|
}
|
|
1996
2002
|
};
|
|
1997
|
-
Object.defineProperty(
|
|
2003
|
+
Object.defineProperty(re.prototype, "value", { get: function() {
|
|
1998
2004
|
if (1 & this.f)
|
|
1999
2005
|
throw new Error("Cycle detected");
|
|
2000
|
-
var t =
|
|
2006
|
+
var t = ti(this);
|
|
2001
2007
|
if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f)
|
|
2002
2008
|
throw this.v;
|
|
2003
2009
|
return this.v;
|
|
2004
2010
|
} });
|
|
2005
|
-
function
|
|
2006
|
-
return new
|
|
2011
|
+
function fe(t) {
|
|
2012
|
+
return new re(t);
|
|
2007
2013
|
}
|
|
2008
|
-
function
|
|
2014
|
+
function si(t) {
|
|
2009
2015
|
var e = t.u;
|
|
2010
2016
|
if (t.u = void 0, typeof e == "function") {
|
|
2011
|
-
|
|
2012
|
-
var i =
|
|
2013
|
-
|
|
2017
|
+
Q++;
|
|
2018
|
+
var i = b;
|
|
2019
|
+
b = void 0;
|
|
2014
2020
|
try {
|
|
2015
2021
|
e();
|
|
2016
2022
|
} catch (n) {
|
|
2017
|
-
throw t.f &= -2, t.f |= 8,
|
|
2023
|
+
throw t.f &= -2, t.f |= 8, dt(t), n;
|
|
2018
2024
|
} finally {
|
|
2019
|
-
|
|
2025
|
+
b = i, Ue();
|
|
2020
2026
|
}
|
|
2021
2027
|
}
|
|
2022
2028
|
}
|
|
2023
|
-
function
|
|
2029
|
+
function dt(t) {
|
|
2024
2030
|
for (var e = t.s; e !== void 0; e = e.n)
|
|
2025
2031
|
e.S.U(e);
|
|
2026
|
-
t.x = void 0, t.s = void 0,
|
|
2032
|
+
t.x = void 0, t.s = void 0, si(t);
|
|
2027
2033
|
}
|
|
2028
|
-
function
|
|
2029
|
-
if (
|
|
2034
|
+
function ir(t) {
|
|
2035
|
+
if (b !== this)
|
|
2030
2036
|
throw new Error("Out-of-order effect");
|
|
2031
|
-
|
|
2037
|
+
ri(this), b = t, this.f &= -2, 8 & this.f && dt(this), Ue();
|
|
2032
2038
|
}
|
|
2033
|
-
function
|
|
2039
|
+
function me(t) {
|
|
2034
2040
|
this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
|
|
2035
2041
|
}
|
|
2036
|
-
|
|
2042
|
+
me.prototype.c = function() {
|
|
2037
2043
|
var t = this.S();
|
|
2038
2044
|
try {
|
|
2039
2045
|
if (8 & this.f || this.x === void 0)
|
|
@@ -2044,21 +2050,21 @@ be.prototype.c = function() {
|
|
|
2044
2050
|
t();
|
|
2045
2051
|
}
|
|
2046
2052
|
};
|
|
2047
|
-
|
|
2053
|
+
me.prototype.S = function() {
|
|
2048
2054
|
if (1 & this.f)
|
|
2049
2055
|
throw new Error("Cycle detected");
|
|
2050
|
-
this.f |= 1, this.f &= -9,
|
|
2051
|
-
var t =
|
|
2052
|
-
return
|
|
2056
|
+
this.f |= 1, this.f &= -9, si(this), ni(this), Q++;
|
|
2057
|
+
var t = b;
|
|
2058
|
+
return b = this, ir.bind(this, t);
|
|
2053
2059
|
};
|
|
2054
|
-
|
|
2055
|
-
2 & this.f || (this.f |= 2, this.o =
|
|
2060
|
+
me.prototype.N = function() {
|
|
2061
|
+
2 & this.f || (this.f |= 2, this.o = ue, ue = this);
|
|
2056
2062
|
};
|
|
2057
|
-
|
|
2058
|
-
this.f |= 8, 1 & this.f ||
|
|
2063
|
+
me.prototype.d = function() {
|
|
2064
|
+
this.f |= 8, 1 & this.f || dt(this);
|
|
2059
2065
|
};
|
|
2060
2066
|
function se(t) {
|
|
2061
|
-
var e = new
|
|
2067
|
+
var e = new me(t);
|
|
2062
2068
|
try {
|
|
2063
2069
|
e.c();
|
|
2064
2070
|
} catch (i) {
|
|
@@ -2066,106 +2072,106 @@ function se(t) {
|
|
|
2066
2072
|
}
|
|
2067
2073
|
return e.d.bind(e);
|
|
2068
2074
|
}
|
|
2069
|
-
var
|
|
2075
|
+
var lt, Ge, oi = [], ai = [];
|
|
2070
2076
|
se(function() {
|
|
2071
|
-
|
|
2077
|
+
lt = this.N;
|
|
2072
2078
|
})();
|
|
2073
|
-
function
|
|
2074
|
-
|
|
2079
|
+
function oe(t, e) {
|
|
2080
|
+
Z[t] = e.bind(null, Z[t] || function() {
|
|
2075
2081
|
});
|
|
2076
2082
|
}
|
|
2077
|
-
function
|
|
2078
|
-
|
|
2083
|
+
function Pe(t) {
|
|
2084
|
+
Ge && Ge(), Ge = t && t.S();
|
|
2079
2085
|
}
|
|
2080
|
-
function
|
|
2081
|
-
var e = this, i = t.data, n =
|
|
2086
|
+
function di(t) {
|
|
2087
|
+
var e = this, i = t.data, n = li(i);
|
|
2082
2088
|
n.value = i;
|
|
2083
|
-
var r =
|
|
2084
|
-
for (var a = e,
|
|
2085
|
-
if (
|
|
2086
|
-
|
|
2089
|
+
var r = at(function() {
|
|
2090
|
+
for (var a = e, d = e.__v; d = d.__; )
|
|
2091
|
+
if (d.__c) {
|
|
2092
|
+
d.__c.__$f |= 4;
|
|
2087
2093
|
break;
|
|
2088
2094
|
}
|
|
2089
|
-
var
|
|
2095
|
+
var l = fe(function() {
|
|
2090
2096
|
var v = n.value.value;
|
|
2091
2097
|
return v === 0 ? 0 : v === !0 ? "" : v || "";
|
|
2092
|
-
}),
|
|
2093
|
-
return !Array.isArray(
|
|
2094
|
-
}),
|
|
2095
|
-
if (this.N =
|
|
2096
|
-
var v =
|
|
2098
|
+
}), c = fe(function() {
|
|
2099
|
+
return !Array.isArray(l.value) && !_i(l.value);
|
|
2100
|
+
}), u = se(function() {
|
|
2101
|
+
if (this.N = ci, c.value) {
|
|
2102
|
+
var v = l.value;
|
|
2097
2103
|
a.__v && a.__v.__e && a.__v.__e.nodeType === 3 && (a.__v.__e.data = v);
|
|
2098
2104
|
}
|
|
2099
2105
|
}), f = e.__$u.d;
|
|
2100
2106
|
return e.__$u.d = function() {
|
|
2101
|
-
|
|
2102
|
-
}, [
|
|
2103
|
-
}, []),
|
|
2104
|
-
return
|
|
2107
|
+
u(), f.call(this);
|
|
2108
|
+
}, [c, l];
|
|
2109
|
+
}, []), s = r[0], o = r[1];
|
|
2110
|
+
return s.value ? o.peek() : o.value;
|
|
2105
2111
|
}
|
|
2106
|
-
|
|
2107
|
-
Object.defineProperties(
|
|
2112
|
+
di.displayName = "_st";
|
|
2113
|
+
Object.defineProperties(k.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: di }, props: { configurable: !0, get: function() {
|
|
2108
2114
|
return { data: this };
|
|
2109
2115
|
} }, __b: { configurable: !0, value: 1 } });
|
|
2110
|
-
|
|
2116
|
+
oe("__b", function(t, e) {
|
|
2111
2117
|
if (typeof e.type == "string") {
|
|
2112
2118
|
var i, n = e.props;
|
|
2113
2119
|
for (var r in n)
|
|
2114
2120
|
if (r !== "children") {
|
|
2115
|
-
var
|
|
2116
|
-
|
|
2121
|
+
var s = n[r];
|
|
2122
|
+
s instanceof k && (i || (e.__np = i = {}), i[r] = s, n[r] = s.peek());
|
|
2117
2123
|
}
|
|
2118
2124
|
}
|
|
2119
2125
|
t(e);
|
|
2120
2126
|
});
|
|
2121
|
-
|
|
2122
|
-
|
|
2127
|
+
oe("__r", function(t, e) {
|
|
2128
|
+
Pe();
|
|
2123
2129
|
var i, n = e.__c;
|
|
2124
2130
|
n && (n.__$f &= -2, (i = n.__$u) === void 0 && (n.__$u = i = function(r) {
|
|
2125
|
-
var
|
|
2131
|
+
var s;
|
|
2126
2132
|
return se(function() {
|
|
2127
|
-
|
|
2128
|
-
}),
|
|
2133
|
+
s = this;
|
|
2134
|
+
}), s.c = function() {
|
|
2129
2135
|
n.__$f |= 1, n.setState({});
|
|
2130
|
-
},
|
|
2131
|
-
}())),
|
|
2136
|
+
}, s;
|
|
2137
|
+
}())), Pe(i), t(e);
|
|
2132
2138
|
});
|
|
2133
|
-
|
|
2134
|
-
|
|
2139
|
+
oe("__e", function(t, e, i, n) {
|
|
2140
|
+
Pe(), t(e, i, n);
|
|
2135
2141
|
});
|
|
2136
|
-
|
|
2137
|
-
|
|
2142
|
+
oe("diffed", function(t, e) {
|
|
2143
|
+
Pe();
|
|
2138
2144
|
var i;
|
|
2139
2145
|
if (typeof e.type == "string" && (i = e.__e)) {
|
|
2140
2146
|
var n = e.__np, r = e.props;
|
|
2141
2147
|
if (n) {
|
|
2142
|
-
var
|
|
2143
|
-
if (
|
|
2144
|
-
for (var
|
|
2145
|
-
var a = o
|
|
2146
|
-
a !== void 0 && !(
|
|
2148
|
+
var s = i.U;
|
|
2149
|
+
if (s)
|
|
2150
|
+
for (var o in s) {
|
|
2151
|
+
var a = s[o];
|
|
2152
|
+
a !== void 0 && !(o in n) && (a.d(), s[o] = void 0);
|
|
2147
2153
|
}
|
|
2148
2154
|
else
|
|
2149
|
-
|
|
2150
|
-
for (var
|
|
2151
|
-
var
|
|
2152
|
-
|
|
2155
|
+
s = {}, i.U = s;
|
|
2156
|
+
for (var d in n) {
|
|
2157
|
+
var l = s[d], c = n[d];
|
|
2158
|
+
l === void 0 ? (l = nr(i, d, c, r), s[d] = l) : l.o(c, r);
|
|
2153
2159
|
}
|
|
2154
2160
|
}
|
|
2155
2161
|
}
|
|
2156
2162
|
t(e);
|
|
2157
2163
|
});
|
|
2158
|
-
function
|
|
2159
|
-
var r = e in t && t.ownerSVGElement === void 0,
|
|
2160
|
-
return { o: function(
|
|
2161
|
-
|
|
2164
|
+
function nr(t, e, i, n) {
|
|
2165
|
+
var r = e in t && t.ownerSVGElement === void 0, s = I(i);
|
|
2166
|
+
return { o: function(o, a) {
|
|
2167
|
+
s.value = o, n = a;
|
|
2162
2168
|
}, d: se(function() {
|
|
2163
|
-
this.N =
|
|
2164
|
-
var
|
|
2165
|
-
n[e] !==
|
|
2169
|
+
this.N = ci;
|
|
2170
|
+
var o = s.value.value;
|
|
2171
|
+
n[e] !== o && (n[e] = o, r ? t[e] = o : o ? t.setAttribute(e, o) : t.removeAttribute(e));
|
|
2166
2172
|
}) };
|
|
2167
2173
|
}
|
|
2168
|
-
|
|
2174
|
+
oe("unmount", function(t, e) {
|
|
2169
2175
|
if (typeof e.type == "string") {
|
|
2170
2176
|
var i = e.__e;
|
|
2171
2177
|
if (i) {
|
|
@@ -2173,82 +2179,82 @@ ae("unmount", function(t, e) {
|
|
|
2173
2179
|
if (n) {
|
|
2174
2180
|
i.U = void 0;
|
|
2175
2181
|
for (var r in n) {
|
|
2176
|
-
var
|
|
2177
|
-
|
|
2182
|
+
var s = n[r];
|
|
2183
|
+
s && s.d();
|
|
2178
2184
|
}
|
|
2179
2185
|
}
|
|
2180
2186
|
}
|
|
2181
2187
|
} else {
|
|
2182
|
-
var
|
|
2183
|
-
if (
|
|
2184
|
-
var a =
|
|
2185
|
-
a && (
|
|
2188
|
+
var o = e.__c;
|
|
2189
|
+
if (o) {
|
|
2190
|
+
var a = o.__$u;
|
|
2191
|
+
a && (o.__$u = void 0, a.d());
|
|
2186
2192
|
}
|
|
2187
2193
|
}
|
|
2188
2194
|
t(e);
|
|
2189
2195
|
});
|
|
2190
|
-
|
|
2196
|
+
oe("__h", function(t, e, i, n) {
|
|
2191
2197
|
(n < 3 || n === 9) && (e.__$f |= 2), t(e, i, n);
|
|
2192
2198
|
});
|
|
2193
|
-
|
|
2199
|
+
pi.prototype.shouldComponentUpdate = function(t, e) {
|
|
2194
2200
|
var i = this.__$u, n = i && i.s !== void 0;
|
|
2195
2201
|
for (var r in e)
|
|
2196
2202
|
return !0;
|
|
2197
2203
|
if (this.__f || typeof this.u == "boolean" && this.u === !0) {
|
|
2198
|
-
var
|
|
2199
|
-
if (!(n ||
|
|
2204
|
+
var s = 2 & this.__$f;
|
|
2205
|
+
if (!(n || s || 4 & this.__$f) || 1 & this.__$f)
|
|
2200
2206
|
return !0;
|
|
2201
2207
|
} else if (!(n || 4 & this.__$f) || 3 & this.__$f)
|
|
2202
2208
|
return !0;
|
|
2203
|
-
for (var
|
|
2204
|
-
if (
|
|
2209
|
+
for (var o in t)
|
|
2210
|
+
if (o !== "__source" && t[o] !== this.props[o])
|
|
2205
2211
|
return !0;
|
|
2206
2212
|
for (var a in this.props)
|
|
2207
2213
|
if (!(a in t))
|
|
2208
2214
|
return !0;
|
|
2209
2215
|
return !1;
|
|
2210
2216
|
};
|
|
2211
|
-
function
|
|
2212
|
-
return
|
|
2213
|
-
return
|
|
2217
|
+
function li(t) {
|
|
2218
|
+
return at(function() {
|
|
2219
|
+
return I(t);
|
|
2214
2220
|
}, []);
|
|
2215
2221
|
}
|
|
2216
|
-
var
|
|
2222
|
+
var rr = typeof requestAnimationFrame == "undefined" ? setTimeout : function(t) {
|
|
2217
2223
|
var e = function() {
|
|
2218
2224
|
clearTimeout(i), cancelAnimationFrame(n), t();
|
|
2219
2225
|
}, i = setTimeout(e, 100), n = requestAnimationFrame(e);
|
|
2220
|
-
},
|
|
2226
|
+
}, sr = function(t) {
|
|
2221
2227
|
queueMicrotask(function() {
|
|
2222
2228
|
queueMicrotask(t);
|
|
2223
2229
|
});
|
|
2224
2230
|
};
|
|
2225
|
-
function
|
|
2226
|
-
|
|
2227
|
-
for (var t; t =
|
|
2228
|
-
|
|
2231
|
+
function or() {
|
|
2232
|
+
N(function() {
|
|
2233
|
+
for (var t; t = oi.shift(); )
|
|
2234
|
+
lt.call(t);
|
|
2229
2235
|
});
|
|
2230
2236
|
}
|
|
2231
|
-
function
|
|
2232
|
-
|
|
2237
|
+
function ar() {
|
|
2238
|
+
oi.push(this) === 1 && (Z.requestAnimationFrame || rr)(or);
|
|
2233
2239
|
}
|
|
2234
|
-
function
|
|
2235
|
-
|
|
2236
|
-
for (var t; t =
|
|
2237
|
-
|
|
2240
|
+
function dr() {
|
|
2241
|
+
N(function() {
|
|
2242
|
+
for (var t; t = ai.shift(); )
|
|
2243
|
+
lt.call(t);
|
|
2238
2244
|
});
|
|
2239
2245
|
}
|
|
2240
|
-
function
|
|
2241
|
-
|
|
2246
|
+
function ci() {
|
|
2247
|
+
ai.push(this) === 1 && (Z.requestAnimationFrame || sr)(dr);
|
|
2242
2248
|
}
|
|
2243
|
-
function
|
|
2244
|
-
var e =
|
|
2245
|
-
e.current = t,
|
|
2249
|
+
function lr(t) {
|
|
2250
|
+
var e = Xn(t);
|
|
2251
|
+
e.current = t, Qn(function() {
|
|
2246
2252
|
return se(function() {
|
|
2247
|
-
return this.N =
|
|
2253
|
+
return this.N = ar, e.current();
|
|
2248
2254
|
});
|
|
2249
2255
|
}, []);
|
|
2250
2256
|
}
|
|
2251
|
-
const
|
|
2257
|
+
const P = ge`
|
|
2252
2258
|
inset: 0;
|
|
2253
2259
|
clear: none;
|
|
2254
2260
|
float: none;
|
|
@@ -2267,188 +2273,11 @@ const $ = me`
|
|
|
2267
2273
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
2268
2274
|
'Helvetica Neue', sans-serif;
|
|
2269
2275
|
`;
|
|
2270
|
-
function
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
return t;
|
|
2274
|
-
}
|
|
2275
|
-
function Gt(t, e) {
|
|
2276
|
-
for (var i in t)
|
|
2277
|
-
if (i !== "__source" && !(i in e))
|
|
2278
|
-
return !0;
|
|
2279
|
-
for (var n in e)
|
|
2280
|
-
if (n !== "__source" && t[n] !== e[n])
|
|
2281
|
-
return !0;
|
|
2282
|
-
return !1;
|
|
2283
|
-
}
|
|
2284
|
-
function Kt(t, e) {
|
|
2285
|
-
this.props = t, this.context = e;
|
|
2286
|
-
}
|
|
2287
|
-
(Kt.prototype = new ie()).isPureReactComponent = !0, Kt.prototype.shouldComponentUpdate = function(t, e) {
|
|
2288
|
-
return Gt(this.props, t) || Gt(this.state, e);
|
|
2289
|
-
};
|
|
2290
|
-
var zt = I.__b;
|
|
2291
|
-
I.__b = function(t) {
|
|
2292
|
-
t.type && t.type.__f && t.ref && (t.props.ref = t.ref, t.ref = null), zt && zt(t);
|
|
2293
|
-
};
|
|
2294
|
-
var Rr = I.__e;
|
|
2295
|
-
I.__e = function(t, e, i, n) {
|
|
2296
|
-
if (t.then) {
|
|
2297
|
-
for (var r, o = e; o = o.__; )
|
|
2298
|
-
if ((r = o.__c) && r.__c)
|
|
2299
|
-
return e.__e == null && (e.__e = i.__e, e.__k = i.__k), r.__c(t, e);
|
|
2300
|
-
}
|
|
2301
|
-
Rr(t, e, i, n);
|
|
2302
|
-
};
|
|
2303
|
-
var qt = I.unmount;
|
|
2304
|
-
function Ii(t, e, i) {
|
|
2305
|
-
return t && (t.__c && t.__c.__H && (t.__c.__H.__.forEach(function(n) {
|
|
2306
|
-
typeof n.__c == "function" && n.__c();
|
|
2307
|
-
}), t.__c.__H = null), (t = xr({}, t)).__c != null && (t.__c.__P === i && (t.__c.__P = e), t.__c = null), t.__k = t.__k && t.__k.map(function(n) {
|
|
2308
|
-
return Ii(n, e, i);
|
|
2309
|
-
})), t;
|
|
2310
|
-
}
|
|
2311
|
-
function Oi(t, e, i) {
|
|
2312
|
-
return t && i && (t.__v = null, t.__k = t.__k && t.__k.map(function(n) {
|
|
2313
|
-
return Oi(n, e, i);
|
|
2314
|
-
}), t.__c && t.__c.__P === e && (t.__e && i.appendChild(t.__e), t.__c.__e = !0, t.__c.__P = i)), t;
|
|
2315
|
-
}
|
|
2316
|
-
function He() {
|
|
2317
|
-
this.__u = 0, this.o = null, this.__b = null;
|
|
2318
|
-
}
|
|
2319
|
-
function Ti(t) {
|
|
2320
|
-
var e = t.__.__c;
|
|
2321
|
-
return e && e.__a && e.__a(t);
|
|
2322
|
-
}
|
|
2323
|
-
function Se() {
|
|
2324
|
-
this.i = null, this.l = null;
|
|
2325
|
-
}
|
|
2326
|
-
I.unmount = function(t) {
|
|
2327
|
-
var e = t.__c;
|
|
2328
|
-
e && e.__R && e.__R(), e && 32 & t.__u && (t.type = null), qt && qt(t);
|
|
2329
|
-
}, (He.prototype = new ie()).__c = function(t, e) {
|
|
2330
|
-
var i = e.__c, n = this;
|
|
2331
|
-
n.o == null && (n.o = []), n.o.push(i);
|
|
2332
|
-
var r = Ti(n.__v), o = !1, s = function() {
|
|
2333
|
-
o || (o = !0, i.__R = null, r ? r(a) : a());
|
|
2334
|
-
};
|
|
2335
|
-
i.__R = s;
|
|
2336
|
-
var a = function() {
|
|
2337
|
-
if (!--n.__u) {
|
|
2338
|
-
if (n.state.__a) {
|
|
2339
|
-
var l = n.state.__a;
|
|
2340
|
-
n.__v.__k[0] = Oi(l, l.__c.__P, l.__c.__O);
|
|
2341
|
-
}
|
|
2342
|
-
var c;
|
|
2343
|
-
for (n.setState({ __a: n.__b = null }); c = n.o.pop(); )
|
|
2344
|
-
c.forceUpdate();
|
|
2345
|
-
}
|
|
2346
|
-
};
|
|
2347
|
-
n.__u++ || 32 & e.__u || n.setState({ __a: n.__b = n.__v.__k[0] }), t.then(s, s);
|
|
2348
|
-
}, He.prototype.componentWillUnmount = function() {
|
|
2349
|
-
this.o = [];
|
|
2350
|
-
}, He.prototype.render = function(t, e) {
|
|
2351
|
-
if (this.__b) {
|
|
2352
|
-
if (this.__v.__k) {
|
|
2353
|
-
var i = document.createElement("div"), n = this.__v.__k[0].__c;
|
|
2354
|
-
this.__v.__k[0] = Ii(this.__b, i, n.__O = n.__P);
|
|
2355
|
-
}
|
|
2356
|
-
this.__b = null;
|
|
2357
|
-
}
|
|
2358
|
-
var r = e.__a && mt(bt, null, t.fallback);
|
|
2359
|
-
return r && (r.__u &= -33), [mt(bt, null, e.__a ? null : t.children), r];
|
|
2360
|
-
};
|
|
2361
|
-
var Ht = function(t, e, i) {
|
|
2362
|
-
if (++i[1] === i[0] && t.l.delete(e), t.props.revealOrder && (t.props.revealOrder[0] !== "t" || !t.l.size))
|
|
2363
|
-
for (i = t.i; i; ) {
|
|
2364
|
-
for (; i.length > 3; )
|
|
2365
|
-
i.pop()();
|
|
2366
|
-
if (i[1] < i[0])
|
|
2367
|
-
break;
|
|
2368
|
-
t.i = i = i[2];
|
|
2369
|
-
}
|
|
2370
|
-
};
|
|
2371
|
-
(Se.prototype = new ie()).__a = function(t) {
|
|
2372
|
-
var e = this, i = Ti(e.__v), n = e.l.get(t);
|
|
2373
|
-
return n[0]++, function(r) {
|
|
2374
|
-
var o = function() {
|
|
2375
|
-
e.props.revealOrder ? (n.push(r), Ht(e, t, n)) : r();
|
|
2376
|
-
};
|
|
2377
|
-
i ? i(o) : o();
|
|
2378
|
-
};
|
|
2379
|
-
}, Se.prototype.render = function(t) {
|
|
2380
|
-
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
2381
|
-
var e = Ye(t.children);
|
|
2382
|
-
t.revealOrder && t.revealOrder[0] === "b" && e.reverse();
|
|
2383
|
-
for (var i = e.length; i--; )
|
|
2384
|
-
this.l.set(e[i], this.i = [1, 0, this.i]);
|
|
2385
|
-
return t.children;
|
|
2386
|
-
}, Se.prototype.componentDidUpdate = Se.prototype.componentDidMount = function() {
|
|
2387
|
-
var t = this;
|
|
2388
|
-
this.l.forEach(function(e, i) {
|
|
2389
|
-
Ht(t, i, e);
|
|
2390
|
-
});
|
|
2391
|
-
};
|
|
2392
|
-
var Ir = typeof Symbol != "undefined" && Symbol.for && Symbol.for("react.element") || 60103, Or = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, Tr = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, kr = /[A-Z0-9]/g, Dr = typeof document != "undefined", Nr = function(t) {
|
|
2393
|
-
return (typeof Symbol != "undefined" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(t);
|
|
2394
|
-
};
|
|
2395
|
-
function pt(t, e, i) {
|
|
2396
|
-
return e.__k == null && (e.textContent = ""), Li(t, e), typeof i == "function" && i(), t ? t.__c : null;
|
|
2397
|
-
}
|
|
2398
|
-
ie.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t) {
|
|
2399
|
-
Object.defineProperty(ie.prototype, t, { configurable: !0, get: function() {
|
|
2400
|
-
return this["UNSAFE_" + t];
|
|
2401
|
-
}, set: function(e) {
|
|
2402
|
-
Object.defineProperty(this, t, { configurable: !0, writable: !0, value: e });
|
|
2403
|
-
} });
|
|
2404
|
-
});
|
|
2405
|
-
var Wt = I.event;
|
|
2406
|
-
function Pr() {
|
|
2407
|
-
}
|
|
2408
|
-
function Cr() {
|
|
2409
|
-
return this.cancelBubble;
|
|
2410
|
-
}
|
|
2411
|
-
function Lr() {
|
|
2412
|
-
return this.defaultPrevented;
|
|
2413
|
-
}
|
|
2414
|
-
I.event = function(t) {
|
|
2415
|
-
return Wt && (t = Wt(t)), t.persist = Pr, t.isPropagationStopped = Cr, t.isDefaultPrevented = Lr, t.nativeEvent = t;
|
|
2416
|
-
};
|
|
2417
|
-
var $r = { enumerable: !1, configurable: !0, get: function() {
|
|
2418
|
-
return this.class;
|
|
2419
|
-
} }, Jt = I.vnode;
|
|
2420
|
-
I.vnode = function(t) {
|
|
2421
|
-
typeof t.type == "string" && function(e) {
|
|
2422
|
-
var i = e.props, n = e.type, r = {}, o = n.indexOf("-") === -1;
|
|
2423
|
-
for (var s in i) {
|
|
2424
|
-
var a = i[s];
|
|
2425
|
-
if (!(s === "value" && "defaultValue" in i && a == null || Dr && s === "children" && n === "noscript" || s === "class" || s === "className")) {
|
|
2426
|
-
var l = s.toLowerCase();
|
|
2427
|
-
s === "defaultValue" && "value" in i && i.value == null ? s = "value" : s === "download" && a === !0 ? a = "" : l === "translate" && a === "no" ? a = !1 : l[0] === "o" && l[1] === "n" ? l === "ondoubleclick" ? s = "ondblclick" : l !== "onchange" || n !== "input" && n !== "textarea" || Nr(i.type) ? l === "onfocus" ? s = "onfocusin" : l === "onblur" ? s = "onfocusout" : Tr.test(s) && (s = l) : l = s = "oninput" : o && Or.test(s) ? s = s.replace(kr, "-$&").toLowerCase() : a === null && (a = void 0), l === "oninput" && r[s = l] && (s = "oninputCapture"), r[s] = a;
|
|
2428
|
-
}
|
|
2429
|
-
}
|
|
2430
|
-
n == "select" && r.multiple && Array.isArray(r.value) && (r.value = Ye(i.children).forEach(function(c) {
|
|
2431
|
-
c.props.selected = r.value.indexOf(c.props.value) != -1;
|
|
2432
|
-
})), n == "select" && r.defaultValue != null && (r.value = Ye(i.children).forEach(function(c) {
|
|
2433
|
-
c.props.selected = r.multiple ? r.defaultValue.indexOf(c.props.value) != -1 : r.defaultValue == c.props.value;
|
|
2434
|
-
})), i.class && !i.className ? (r.class = i.class, Object.defineProperty(r, "className", $r)) : (i.className && !i.class || i.class && i.className) && (r.class = r.className = i.className), e.props = r;
|
|
2435
|
-
}(t), t.$$typeof = Ir, Jt && Jt(t);
|
|
2436
|
-
};
|
|
2437
|
-
var Yt = I.__r;
|
|
2438
|
-
I.__r = function(t) {
|
|
2439
|
-
Yt && Yt(t), t.__c;
|
|
2440
|
-
};
|
|
2441
|
-
var Qt = I.diffed;
|
|
2442
|
-
I.diffed = function(t) {
|
|
2443
|
-
Qt && Qt(t);
|
|
2444
|
-
var e = t.props, i = t.__e;
|
|
2445
|
-
i != null && t.type === "textarea" && "value" in e && e.value !== i.value && (i.value = e.value == null ? "" : e.value);
|
|
2446
|
-
};
|
|
2447
|
-
function Mr(t, e) {
|
|
2448
|
-
const i = pi(t);
|
|
2449
|
-
hr(() => {
|
|
2276
|
+
function cr(t, e) {
|
|
2277
|
+
const i = yi(t);
|
|
2278
|
+
gi(() => {
|
|
2450
2279
|
i.current = t;
|
|
2451
|
-
}, [t]),
|
|
2280
|
+
}, [t]), Pt(() => {
|
|
2452
2281
|
if (e === null)
|
|
2453
2282
|
return;
|
|
2454
2283
|
const n = setInterval(() => {
|
|
@@ -2459,21 +2288,21 @@ function Mr(t, e) {
|
|
|
2459
2288
|
};
|
|
2460
2289
|
}, [e]);
|
|
2461
2290
|
}
|
|
2462
|
-
var
|
|
2463
|
-
function
|
|
2291
|
+
var ur = 0;
|
|
2292
|
+
function A(t, e, i, n, r, s) {
|
|
2464
2293
|
e || (e = {});
|
|
2465
|
-
var
|
|
2466
|
-
if ("ref" in
|
|
2467
|
-
for (a in
|
|
2468
|
-
a == "ref" ?
|
|
2469
|
-
var
|
|
2470
|
-
if (typeof t == "function" && (
|
|
2471
|
-
for (a in
|
|
2472
|
-
|
|
2473
|
-
return
|
|
2474
|
-
}
|
|
2475
|
-
const
|
|
2476
|
-
${
|
|
2294
|
+
var o, a, d = e;
|
|
2295
|
+
if ("ref" in d)
|
|
2296
|
+
for (a in d = {}, e)
|
|
2297
|
+
a == "ref" ? o = e[a] : d[a] = e[a];
|
|
2298
|
+
var l = { type: t, props: d, key: i, ref: o, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --ur, __i: -1, __u: 0, __source: r, __self: s };
|
|
2299
|
+
if (typeof t == "function" && (o = t.defaultProps))
|
|
2300
|
+
for (a in o)
|
|
2301
|
+
d[a] === void 0 && (d[a] = o[a]);
|
|
2302
|
+
return Z.vnode && Z.vnode(l), l;
|
|
2303
|
+
}
|
|
2304
|
+
const fr = ge`
|
|
2305
|
+
${P}
|
|
2477
2306
|
position: fixed;
|
|
2478
2307
|
top: 0;
|
|
2479
2308
|
left: 0;
|
|
@@ -2486,7 +2315,7 @@ const jr = me`
|
|
|
2486
2315
|
height: 100vh;
|
|
2487
2316
|
|
|
2488
2317
|
.card-wrapper {
|
|
2489
|
-
${
|
|
2318
|
+
${P}
|
|
2490
2319
|
position: relative;
|
|
2491
2320
|
display: flex;
|
|
2492
2321
|
flex-direction: column;
|
|
@@ -2500,7 +2329,7 @@ const jr = me`
|
|
|
2500
2329
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
2501
2330
|
|
|
2502
2331
|
.body {
|
|
2503
|
-
${
|
|
2332
|
+
${P}
|
|
2504
2333
|
display: flex;
|
|
2505
2334
|
flex-direction: column;
|
|
2506
2335
|
width: 100%;
|
|
@@ -2509,7 +2338,7 @@ const jr = me`
|
|
|
2509
2338
|
box-sizing: border-box;
|
|
2510
2339
|
justify-content: center;
|
|
2511
2340
|
.title {
|
|
2512
|
-
${
|
|
2341
|
+
${P}
|
|
2513
2342
|
text-align: center;
|
|
2514
2343
|
font-size: 16px;
|
|
2515
2344
|
font-weight: bold;
|
|
@@ -2517,7 +2346,7 @@ const jr = me`
|
|
|
2517
2346
|
}
|
|
2518
2347
|
|
|
2519
2348
|
.content {
|
|
2520
|
-
${
|
|
2349
|
+
${P}
|
|
2521
2350
|
font-size: 14px;
|
|
2522
2351
|
color: #888;
|
|
2523
2352
|
margin-bottom: 16px;
|
|
@@ -2525,13 +2354,13 @@ const jr = me`
|
|
|
2525
2354
|
}
|
|
2526
2355
|
|
|
2527
2356
|
.footer {
|
|
2528
|
-
${
|
|
2357
|
+
${P}
|
|
2529
2358
|
display: flex;
|
|
2530
2359
|
align-items: center;
|
|
2531
2360
|
width: 100%;
|
|
2532
2361
|
height: 40px;
|
|
2533
2362
|
button {
|
|
2534
|
-
${
|
|
2363
|
+
${P}
|
|
2535
2364
|
border: none;
|
|
2536
2365
|
outline: none;
|
|
2537
2366
|
height: 100%;
|
|
@@ -2547,56 +2376,56 @@ const jr = me`
|
|
|
2547
2376
|
}
|
|
2548
2377
|
}
|
|
2549
2378
|
}
|
|
2550
|
-
`,
|
|
2379
|
+
`, B = I(null), it = I(""), nt = I(""), Te = I(!1), hr = () => {
|
|
2551
2380
|
var t;
|
|
2552
|
-
(t =
|
|
2553
|
-
},
|
|
2381
|
+
(t = B.value) == null || t.call(B, !1);
|
|
2382
|
+
}, vr = () => {
|
|
2554
2383
|
var t;
|
|
2555
|
-
(t =
|
|
2556
|
-
},
|
|
2384
|
+
(t = B.value) == null || t.call(B, !0);
|
|
2385
|
+
}, pr = async (t) => {
|
|
2557
2386
|
let {
|
|
2558
2387
|
title: e,
|
|
2559
2388
|
content: i
|
|
2560
2389
|
} = t;
|
|
2561
|
-
return
|
|
2562
|
-
|
|
2563
|
-
})),
|
|
2564
|
-
|
|
2390
|
+
return B.value && (B.value(!1), N(() => {
|
|
2391
|
+
B.value = null, Te.value = !1;
|
|
2392
|
+
})), N(() => {
|
|
2393
|
+
it.value = e || "", nt.value = i || "", Te.value = !0;
|
|
2565
2394
|
}), new Promise((n) => {
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2395
|
+
B.value = (r) => {
|
|
2396
|
+
N(() => {
|
|
2397
|
+
B.value = null, Te.value = !1, it.value = "", nt.value = "";
|
|
2569
2398
|
}), n(r);
|
|
2570
2399
|
};
|
|
2571
2400
|
});
|
|
2572
|
-
},
|
|
2573
|
-
className:
|
|
2574
|
-
children:
|
|
2401
|
+
}, _r = () => Te.value ? A("div", {
|
|
2402
|
+
className: fr,
|
|
2403
|
+
children: A("div", {
|
|
2575
2404
|
className: "card-wrapper",
|
|
2576
|
-
children: [
|
|
2405
|
+
children: [A("div", {
|
|
2577
2406
|
className: "body",
|
|
2578
|
-
children: [
|
|
2407
|
+
children: [A("div", {
|
|
2579
2408
|
className: "title",
|
|
2580
|
-
children:
|
|
2581
|
-
}),
|
|
2409
|
+
children: it.value
|
|
2410
|
+
}), A("div", {
|
|
2582
2411
|
className: "content",
|
|
2583
|
-
children:
|
|
2412
|
+
children: nt.value
|
|
2584
2413
|
})]
|
|
2585
|
-
}),
|
|
2414
|
+
}), A("div", {
|
|
2586
2415
|
className: "footer",
|
|
2587
|
-
children: [
|
|
2588
|
-
onClick:
|
|
2416
|
+
children: [A("button", {
|
|
2417
|
+
onClick: hr,
|
|
2589
2418
|
className: "cancel-btn",
|
|
2590
2419
|
children: "Cancel"
|
|
2591
|
-
}),
|
|
2592
|
-
onClick:
|
|
2420
|
+
}), A("button", {
|
|
2421
|
+
onClick: vr,
|
|
2593
2422
|
className: "confirm-btm",
|
|
2594
2423
|
children: "Confirm"
|
|
2595
2424
|
})]
|
|
2596
2425
|
})]
|
|
2597
2426
|
})
|
|
2598
|
-
}) : null,
|
|
2599
|
-
${
|
|
2427
|
+
}) : null, yr = ge`
|
|
2428
|
+
${P}
|
|
2600
2429
|
position: relative;
|
|
2601
2430
|
display: flex;
|
|
2602
2431
|
align-items: center;
|
|
@@ -2614,7 +2443,7 @@ const jr = me`
|
|
|
2614
2443
|
}
|
|
2615
2444
|
|
|
2616
2445
|
button {
|
|
2617
|
-
${
|
|
2446
|
+
${P}
|
|
2618
2447
|
padding: 0 20px;
|
|
2619
2448
|
height: 30px;
|
|
2620
2449
|
line-height: 30px;
|
|
@@ -2628,18 +2457,18 @@ const jr = me`
|
|
|
2628
2457
|
cursor: not-allowed;
|
|
2629
2458
|
}
|
|
2630
2459
|
}
|
|
2631
|
-
`,
|
|
2632
|
-
const t =
|
|
2460
|
+
`, gr = () => {
|
|
2461
|
+
const t = I(!1), e = I(null);
|
|
2633
2462
|
return {
|
|
2634
2463
|
timerPaused: t,
|
|
2635
2464
|
startTimestamp: e,
|
|
2636
2465
|
startTimer: () => {
|
|
2637
|
-
|
|
2466
|
+
N(() => {
|
|
2638
2467
|
e.value = Date.now(), t.value = !1;
|
|
2639
2468
|
});
|
|
2640
2469
|
}
|
|
2641
2470
|
};
|
|
2642
|
-
},
|
|
2471
|
+
}, mr = (t) => {
|
|
2643
2472
|
let {
|
|
2644
2473
|
countdown: e = 0,
|
|
2645
2474
|
mode: i,
|
|
@@ -2647,80 +2476,80 @@ const jr = me`
|
|
|
2647
2476
|
state: r
|
|
2648
2477
|
} = t;
|
|
2649
2478
|
const {
|
|
2650
|
-
startTimestamp:
|
|
2651
|
-
timerPaused:
|
|
2652
|
-
} = r, a =
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
}),
|
|
2656
|
-
a.value > 0 ? a.value -= 1 :
|
|
2657
|
-
|
|
2479
|
+
startTimestamp: s,
|
|
2480
|
+
timerPaused: o
|
|
2481
|
+
} = r, a = li(e);
|
|
2482
|
+
lr(() => {
|
|
2483
|
+
s.value && (a.value = e);
|
|
2484
|
+
}), cr(() => {
|
|
2485
|
+
a.value > 0 ? a.value -= 1 : N(() => {
|
|
2486
|
+
o.value = !0, a.value = 0;
|
|
2658
2487
|
});
|
|
2659
|
-
},
|
|
2660
|
-
const
|
|
2661
|
-
if (i === "interstitial" || i === "rewarded_insterstitial" || !
|
|
2488
|
+
}, o.value ? null : 1e3);
|
|
2489
|
+
const d = fe(() => {
|
|
2490
|
+
if (i === "interstitial" || i === "rewarded_insterstitial" || !s.value)
|
|
2662
2491
|
return !1;
|
|
2663
|
-
const v = Date.now() -
|
|
2492
|
+
const v = Date.now() - s.value;
|
|
2664
2493
|
return a.value > 0 && e - a.value >= 5 && v >= 5e3;
|
|
2665
|
-
}),
|
|
2494
|
+
}), l = fe(() => {
|
|
2666
2495
|
if (i === "interstitial")
|
|
2667
2496
|
return !0;
|
|
2668
|
-
if (!
|
|
2497
|
+
if (!s.value)
|
|
2669
2498
|
return !1;
|
|
2670
|
-
const v = Date.now() -
|
|
2499
|
+
const v = Date.now() - s.value;
|
|
2671
2500
|
return a.value <= 0 && v >= (e - 1) * 1e3 && e > 5;
|
|
2672
|
-
}),
|
|
2673
|
-
if (
|
|
2501
|
+
}), c = fe(() => i === "interstitial" ? !1 : !d.value && !l.value), u = async () => {
|
|
2502
|
+
if (o.value = !0, !await pr({
|
|
2674
2503
|
title: "Are you sure?",
|
|
2675
2504
|
content: "You will lose your reward if you dismiss this Ad."
|
|
2676
2505
|
})) {
|
|
2677
|
-
|
|
2506
|
+
o.value = !1;
|
|
2678
2507
|
return;
|
|
2679
2508
|
}
|
|
2680
|
-
n("dismiss"),
|
|
2681
|
-
|
|
2509
|
+
n("dismiss"), N(() => {
|
|
2510
|
+
o.value = !0, a.value = 0, s.value = null;
|
|
2682
2511
|
});
|
|
2683
2512
|
}, f = () => {
|
|
2684
|
-
n("viewed"),
|
|
2685
|
-
|
|
2513
|
+
n("viewed"), N(() => {
|
|
2514
|
+
o.value = !0, a.value = 0, s.value = null;
|
|
2686
2515
|
});
|
|
2687
2516
|
};
|
|
2688
|
-
return
|
|
2689
|
-
className:
|
|
2690
|
-
children: [a.value > 0 && i !== "interstitial" &&
|
|
2517
|
+
return A("div", {
|
|
2518
|
+
className: yr,
|
|
2519
|
+
children: [a.value > 0 && i !== "interstitial" && A("div", {
|
|
2691
2520
|
className: "timer",
|
|
2692
2521
|
children: [a.value, "s"]
|
|
2693
|
-
}),
|
|
2694
|
-
onClick:
|
|
2695
|
-
disabled:
|
|
2696
|
-
children:
|
|
2522
|
+
}), A("button", {
|
|
2523
|
+
onClick: d.value ? u : l.value ? f : void 0,
|
|
2524
|
+
disabled: c.value,
|
|
2525
|
+
children: A("svg", {
|
|
2697
2526
|
width: "12",
|
|
2698
2527
|
height: "12",
|
|
2699
2528
|
viewBox: "0 0 14 14",
|
|
2700
2529
|
fill: "none",
|
|
2701
2530
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2702
|
-
children:
|
|
2531
|
+
children: A("path", {
|
|
2703
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",
|
|
2704
2533
|
fill: "white"
|
|
2705
2534
|
})
|
|
2706
2535
|
})
|
|
2707
2536
|
})]
|
|
2708
2537
|
});
|
|
2709
|
-
},
|
|
2710
|
-
const t =
|
|
2538
|
+
}, ui = () => {
|
|
2539
|
+
const t = I(), e = I(), i = I(), n = I(), r = I(), s = I(!1), o = I(15), a = I(""), d = I("reward");
|
|
2711
2540
|
return {
|
|
2712
2541
|
afterAd: t,
|
|
2713
2542
|
adDismissed: e,
|
|
2714
2543
|
adViewed: i,
|
|
2715
2544
|
adBreakDone: n,
|
|
2716
2545
|
adLoaded: r,
|
|
2717
|
-
visible:
|
|
2718
|
-
countdown:
|
|
2546
|
+
visible: s,
|
|
2547
|
+
countdown: o,
|
|
2719
2548
|
src: a,
|
|
2720
|
-
mode:
|
|
2549
|
+
mode: d
|
|
2721
2550
|
};
|
|
2722
|
-
},
|
|
2723
|
-
${
|
|
2551
|
+
}, Ar = ge`
|
|
2552
|
+
${P}
|
|
2724
2553
|
position: fixed;
|
|
2725
2554
|
z-index: 2147483647;
|
|
2726
2555
|
background: white;
|
|
@@ -2730,7 +2559,7 @@ const jr = me`
|
|
|
2730
2559
|
flex-direction: column;
|
|
2731
2560
|
|
|
2732
2561
|
iframe {
|
|
2733
|
-
${
|
|
2562
|
+
${P}
|
|
2734
2563
|
flex: 1;
|
|
2735
2564
|
position: relative;
|
|
2736
2565
|
display: block;
|
|
@@ -2738,7 +2567,7 @@ const jr = me`
|
|
|
2738
2567
|
width: 100%;
|
|
2739
2568
|
height: 100%;
|
|
2740
2569
|
}
|
|
2741
|
-
`,
|
|
2570
|
+
`, fi = (t) => {
|
|
2742
2571
|
let {
|
|
2743
2572
|
state: e
|
|
2744
2573
|
} = t;
|
|
@@ -2746,43 +2575,43 @@ const jr = me`
|
|
|
2746
2575
|
afterAd: i,
|
|
2747
2576
|
adDismissed: n,
|
|
2748
2577
|
adViewed: r,
|
|
2749
|
-
adBreakDone:
|
|
2750
|
-
adLoaded:
|
|
2578
|
+
adBreakDone: s,
|
|
2579
|
+
adLoaded: o,
|
|
2751
2580
|
visible: a,
|
|
2752
|
-
countdown:
|
|
2753
|
-
src:
|
|
2754
|
-
mode:
|
|
2755
|
-
} = e,
|
|
2756
|
-
var
|
|
2757
|
-
a.value = !1, y === "dismiss" ? (
|
|
2581
|
+
countdown: d,
|
|
2582
|
+
src: l,
|
|
2583
|
+
mode: c
|
|
2584
|
+
} = e, u = mi(() => gr(), []), f = (y) => {
|
|
2585
|
+
var _, w, h, p;
|
|
2586
|
+
a.value = !1, y === "dismiss" ? (_ = n.value) == null || _.call(n) : y === "viewed" && ((w = r.value) == null || w.call(r)), (h = i.value) == null || h.call(i), (p = s.value) == null || p.call(s);
|
|
2758
2587
|
}, v = () => {
|
|
2759
2588
|
var y;
|
|
2760
|
-
(
|
|
2761
|
-
|
|
2762
|
-
}, 100), (y =
|
|
2589
|
+
(c.value === "reward" || c.value === "rewarded_insterstitial") && setTimeout(() => {
|
|
2590
|
+
u.startTimer();
|
|
2591
|
+
}, 100), (y = o.value) == null || y.call(o);
|
|
2763
2592
|
};
|
|
2764
|
-
return a.value ?
|
|
2765
|
-
className:
|
|
2766
|
-
children: [
|
|
2767
|
-
mode:
|
|
2593
|
+
return a.value ? A("div", {
|
|
2594
|
+
className: Ar,
|
|
2595
|
+
children: [A(mr, {
|
|
2596
|
+
mode: c.value,
|
|
2768
2597
|
onClose: f,
|
|
2769
|
-
countdown:
|
|
2770
|
-
state:
|
|
2771
|
-
}), a.value &&
|
|
2772
|
-
src:
|
|
2598
|
+
countdown: d.value,
|
|
2599
|
+
state: u
|
|
2600
|
+
}), a.value && A("iframe", {
|
|
2601
|
+
src: l.value,
|
|
2773
2602
|
onLoad: v,
|
|
2774
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"
|
|
2775
|
-
}),
|
|
2604
|
+
}), A(_r, {})]
|
|
2776
2605
|
}) : null;
|
|
2777
2606
|
};
|
|
2778
2607
|
function W(t, e, i) {
|
|
2779
|
-
return (e =
|
|
2608
|
+
return (e = wr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2780
2609
|
}
|
|
2781
|
-
function
|
|
2782
|
-
var e =
|
|
2610
|
+
function wr(t) {
|
|
2611
|
+
var e = br(t, "string");
|
|
2783
2612
|
return typeof e == "symbol" ? e : e + "";
|
|
2784
2613
|
}
|
|
2785
|
-
function
|
|
2614
|
+
function br(t, e) {
|
|
2786
2615
|
if (typeof t != "object" || !t)
|
|
2787
2616
|
return t;
|
|
2788
2617
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2794,13 +2623,13 @@ function Jr(t, e) {
|
|
|
2794
2623
|
}
|
|
2795
2624
|
return (e === "string" ? String : Number)(t);
|
|
2796
2625
|
}
|
|
2797
|
-
class
|
|
2626
|
+
class Er {
|
|
2798
2627
|
constructor(e, i) {
|
|
2799
|
-
W(this, "name", "OKSPIN"), W(this, "initialized", !1), W(this, "initCompleter", null), W(this, "context", void 0), W(this, "initParams", void 0), W(this, "adsOverlay", null), W(this, "adsIsShowing", !1), W(this, "lastUnDisplayedAdBreak", null), W(this, "state",
|
|
2628
|
+
W(this, "name", "OKSPIN"), W(this, "initialized", !1), W(this, "initCompleter", null), W(this, "context", void 0), W(this, "initParams", void 0), W(this, "adsOverlay", null), W(this, "adsIsShowing", !1), W(this, "lastUnDisplayedAdBreak", null), W(this, "state", ui()), this.context = e, this.initParams = i;
|
|
2800
2629
|
}
|
|
2801
2630
|
async init() {
|
|
2802
2631
|
var e;
|
|
2803
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"),
|
|
2632
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), he(A(fi, {
|
|
2804
2633
|
state: this.state
|
|
2805
2634
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
|
|
2806
2635
|
}
|
|
@@ -2816,7 +2645,7 @@ class Yr {
|
|
|
2816
2645
|
};
|
|
2817
2646
|
}
|
|
2818
2647
|
async adBreak(e, i) {
|
|
2819
|
-
var n, r,
|
|
2648
|
+
var n, r, s, o, a, d, l, c;
|
|
2820
2649
|
if (!this.initialized || !this.adsOverlay || !i.params.url) {
|
|
2821
2650
|
(n = e.adBreakDone) == null || n.call(e, {
|
|
2822
2651
|
breakType: e.type,
|
|
@@ -2837,7 +2666,7 @@ class Yr {
|
|
|
2837
2666
|
}
|
|
2838
2667
|
switch (e.type) {
|
|
2839
2668
|
case "preroll": {
|
|
2840
|
-
(
|
|
2669
|
+
(s = e.adBreakDone) == null || s.call(e, {
|
|
2841
2670
|
breakType: e.type,
|
|
2842
2671
|
breakName: "",
|
|
2843
2672
|
breakFormat: "interstitial",
|
|
@@ -2849,8 +2678,8 @@ class Yr {
|
|
|
2849
2678
|
case "browse":
|
|
2850
2679
|
case "next":
|
|
2851
2680
|
case "pause": {
|
|
2852
|
-
(
|
|
2853
|
-
const
|
|
2681
|
+
(o = e.beforeAd) == null || o.call(e);
|
|
2682
|
+
const u = () => {
|
|
2854
2683
|
var v;
|
|
2855
2684
|
this.adsIsShowing = !1, (v = e.afterAd) == null || v.call(e);
|
|
2856
2685
|
}, f = () => {
|
|
@@ -2862,19 +2691,19 @@ class Yr {
|
|
|
2862
2691
|
breakStatus: "viewed"
|
|
2863
2692
|
});
|
|
2864
2693
|
};
|
|
2865
|
-
|
|
2866
|
-
this.adsIsShowing = !0, this.state.afterAd.value =
|
|
2694
|
+
N(() => {
|
|
2695
|
+
this.adsIsShowing = !0, this.state.afterAd.value = u, this.state.adBreakDone.value = f, this.state.src.value = i.params.url, this.state.mode.value = "interstitial", this.state.visible.value = !0;
|
|
2867
2696
|
});
|
|
2868
2697
|
break;
|
|
2869
2698
|
}
|
|
2870
2699
|
case "reward": {
|
|
2871
|
-
this.lastUnDisplayedAdBreak && ((
|
|
2700
|
+
this.lastUnDisplayedAdBreak && ((d = (a = this.lastUnDisplayedAdBreak).adBreakDone) == null || d.call(a, {
|
|
2872
2701
|
breakType: this.lastUnDisplayedAdBreak.type,
|
|
2873
2702
|
breakName: this.lastUnDisplayedAdBreak.type === "preroll" ? "" : this.lastUnDisplayedAdBreak.name,
|
|
2874
2703
|
breakFormat: this.lastUnDisplayedAdBreak.type === "reward" ? "reward" : "interstitial",
|
|
2875
2704
|
breakStatus: "ignored"
|
|
2876
|
-
}), this.lastUnDisplayedAdBreak = null), (
|
|
2877
|
-
const
|
|
2705
|
+
}), this.lastUnDisplayedAdBreak = null), (l = e.beforeAd) == null || l.call(e);
|
|
2706
|
+
const u = () => {
|
|
2878
2707
|
var h;
|
|
2879
2708
|
this.adsIsShowing = !1, (h = e.afterAd) == null || h.call(e);
|
|
2880
2709
|
}, f = {
|
|
@@ -2888,14 +2717,14 @@ class Yr {
|
|
|
2888
2717
|
}, y = () => {
|
|
2889
2718
|
var h;
|
|
2890
2719
|
this.adsIsShowing = !1, f.breakStatus = "viewed", (h = e.adViewed) == null || h.call(e);
|
|
2891
|
-
},
|
|
2720
|
+
}, _ = () => {
|
|
2892
2721
|
var h;
|
|
2893
2722
|
this.adsIsShowing = !1, (h = e.adBreakDone) == null || h.call(e, f);
|
|
2894
2723
|
};
|
|
2895
|
-
|
|
2896
|
-
this.state.afterAd.value =
|
|
2724
|
+
N(() => {
|
|
2725
|
+
this.state.afterAd.value = u, this.state.adDismissed.value = v, this.state.adViewed.value = y, this.state.adBreakDone.value = _;
|
|
2897
2726
|
});
|
|
2898
|
-
const
|
|
2727
|
+
const w = () => {
|
|
2899
2728
|
var h;
|
|
2900
2729
|
if (this.lastUnDisplayedAdBreak = null, !this.adsOverlay) {
|
|
2901
2730
|
(h = e.adBreakDone) == null || h.call(e, {
|
|
@@ -2906,25 +2735,25 @@ class Yr {
|
|
|
2906
2735
|
});
|
|
2907
2736
|
return;
|
|
2908
2737
|
}
|
|
2909
|
-
this.adsIsShowing = !0,
|
|
2910
|
-
var
|
|
2911
|
-
this.state.countdown.value = (
|
|
2738
|
+
this.adsIsShowing = !0, N(() => {
|
|
2739
|
+
var p;
|
|
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;
|
|
2912
2741
|
});
|
|
2913
2742
|
};
|
|
2914
|
-
this.lastUnDisplayedAdBreak = e, (
|
|
2743
|
+
this.lastUnDisplayedAdBreak = e, (c = e.beforeReward) == null || c.call(e, w);
|
|
2915
2744
|
break;
|
|
2916
2745
|
}
|
|
2917
2746
|
}
|
|
2918
2747
|
}
|
|
2919
2748
|
}
|
|
2920
|
-
function
|
|
2921
|
-
return (e =
|
|
2749
|
+
function X(t, e, i) {
|
|
2750
|
+
return (e = Sr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2922
2751
|
}
|
|
2923
|
-
function
|
|
2924
|
-
var e =
|
|
2752
|
+
function Sr(t) {
|
|
2753
|
+
var e = xr(t, "string");
|
|
2925
2754
|
return typeof e == "symbol" ? e : e + "";
|
|
2926
2755
|
}
|
|
2927
|
-
function
|
|
2756
|
+
function xr(t, e) {
|
|
2928
2757
|
if (typeof t != "object" || !t)
|
|
2929
2758
|
return t;
|
|
2930
2759
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2936,10 +2765,10 @@ function Xr(t, e) {
|
|
|
2936
2765
|
}
|
|
2937
2766
|
return (e === "string" ? String : Number)(t);
|
|
2938
2767
|
}
|
|
2939
|
-
class
|
|
2768
|
+
class ts {
|
|
2940
2769
|
constructor(e) {
|
|
2941
|
-
if (
|
|
2942
|
-
this.context = e, this.channelPolicy = new
|
|
2770
|
+
if (X(this, "context", void 0), X(this, "contextInfo", void 0), X(this, "providers", {}), X(this, "channelPolicy", void 0), X(this, "adsActionDetection", void 0), X(this, "adsTrackSerializer", void 0), X(this, "initialized", !1), e)
|
|
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();
|
|
2943
2772
|
else
|
|
2944
2773
|
throw new Error("JoliboxAdsForGame requires a configuration object");
|
|
2945
2774
|
}
|
|
@@ -2982,12 +2811,12 @@ class Oo {
|
|
|
2982
2811
|
for (const n of i)
|
|
2983
2812
|
switch (n.provider) {
|
|
2984
2813
|
case "ADSENSE": {
|
|
2985
|
-
const r = new
|
|
2814
|
+
const r = new cn(this.context, n.params);
|
|
2986
2815
|
await r.init(), this.providers.ADSENSE = r;
|
|
2987
2816
|
break;
|
|
2988
2817
|
}
|
|
2989
2818
|
case "OKSPIN": {
|
|
2990
|
-
const r = new
|
|
2819
|
+
const r = new Er(this.context, n.params);
|
|
2991
2820
|
await r.init(), this.providers.OKSPIN = r;
|
|
2992
2821
|
break;
|
|
2993
2822
|
}
|
|
@@ -2998,7 +2827,7 @@ class Oo {
|
|
|
2998
2827
|
this.providers.ADSENSE ? this.providers.ADSENSE.adConfig(e) : window.adsbygoogle.push(e);
|
|
2999
2828
|
}
|
|
3000
2829
|
async adBreak(e) {
|
|
3001
|
-
var i, n, r,
|
|
2830
|
+
var i, n, r, s, o, a, d, l, c;
|
|
3002
2831
|
if ((i = this.context.eventEmitter) == null || i.emit("isAdShowing", !0), this.adsActionDetection.adBreakIsShowing = !0, this.initialized || await this.init(), e.type !== "reward" && !this.channelPolicy.shouldBypassCallingInterstitial()) {
|
|
3003
2832
|
(n = e.adBreakDone) == null || n.call(e, {
|
|
3004
2833
|
breakType: e.type,
|
|
@@ -3016,7 +2845,7 @@ class Oo {
|
|
|
3016
2845
|
});
|
|
3017
2846
|
try {
|
|
3018
2847
|
const {
|
|
3019
|
-
data:
|
|
2848
|
+
data: u,
|
|
3020
2849
|
code: f
|
|
3021
2850
|
} = await this.context.httpClient.post("/api/ads/info", {
|
|
3022
2851
|
data: {
|
|
@@ -3028,7 +2857,7 @@ class Oo {
|
|
|
3028
2857
|
}
|
|
3029
2858
|
});
|
|
3030
2859
|
if (f !== "SUCCESS") {
|
|
3031
|
-
(
|
|
2860
|
+
(s = e.adBreakDone) == null || s.call(e, {
|
|
3032
2861
|
breakType: e.type,
|
|
3033
2862
|
breakName: "UNKNOWN_ERROR",
|
|
3034
2863
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
@@ -3036,9 +2865,9 @@ class Oo {
|
|
|
3036
2865
|
});
|
|
3037
2866
|
return;
|
|
3038
2867
|
} else {
|
|
3039
|
-
const v =
|
|
2868
|
+
const v = u;
|
|
3040
2869
|
if (v.length === 0) {
|
|
3041
|
-
(
|
|
2870
|
+
(o = e.adBreakDone) == null || o.call(e, {
|
|
3042
2871
|
breakType: e.type,
|
|
3043
2872
|
breakName: "NO_ADS",
|
|
3044
2873
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
@@ -3046,15 +2875,15 @@ class Oo {
|
|
|
3046
2875
|
});
|
|
3047
2876
|
return;
|
|
3048
2877
|
}
|
|
3049
|
-
let y = !0,
|
|
3050
|
-
const
|
|
2878
|
+
let y = !0, _ = null;
|
|
2879
|
+
const w = new bi(this.context);
|
|
3051
2880
|
for (; v.length > 0; ) {
|
|
3052
|
-
const h = v.shift(),
|
|
3053
|
-
if (
|
|
3054
|
-
const [L, q] = await
|
|
3055
|
-
y = L,
|
|
2881
|
+
const h = v.shift(), p = this.providers[h.provider];
|
|
2882
|
+
if (p) {
|
|
2883
|
+
const [L, q] = await w.callAdBreakAndContinue(p, e, h);
|
|
2884
|
+
y = L, _ = q;
|
|
3056
2885
|
} else
|
|
3057
|
-
y = !0,
|
|
2886
|
+
y = !0, _ = {
|
|
3058
2887
|
breakType: e.type,
|
|
3059
2888
|
breakName: e.type === "preroll" ? "" : (a = e.name) != null ? a : "",
|
|
3060
2889
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
@@ -3063,30 +2892,30 @@ class Oo {
|
|
|
3063
2892
|
if (!y)
|
|
3064
2893
|
break;
|
|
3065
2894
|
}
|
|
3066
|
-
y &&
|
|
2895
|
+
y && _ && ((d = e.adBreakDone) == null || d.call(e, _));
|
|
3067
2896
|
}
|
|
3068
|
-
} catch (
|
|
3069
|
-
(
|
|
2897
|
+
} catch (u) {
|
|
2898
|
+
(l = e.adBreakDone) == null || l.call(e, {
|
|
3070
2899
|
breakType: e.type,
|
|
3071
2900
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
3072
2901
|
breakStatus: "noAdPreloaded"
|
|
3073
2902
|
});
|
|
3074
2903
|
} finally {
|
|
3075
|
-
(
|
|
2904
|
+
(c = this.context.eventEmitter) == null || c.emit("isAdShowing", !1), this.adsActionDetection.adBreakIsShowing = !1;
|
|
3076
2905
|
}
|
|
3077
2906
|
}
|
|
3078
2907
|
adUnit(e) {
|
|
3079
2908
|
console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.");
|
|
3080
2909
|
}
|
|
3081
2910
|
}
|
|
3082
|
-
function
|
|
3083
|
-
return (e =
|
|
2911
|
+
function Ke(t, e, i) {
|
|
2912
|
+
return (e = Rr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3084
2913
|
}
|
|
3085
|
-
function
|
|
3086
|
-
var e =
|
|
2914
|
+
function Rr(t) {
|
|
2915
|
+
var e = Ir(t, "string");
|
|
3087
2916
|
return typeof e == "symbol" ? e : e + "";
|
|
3088
2917
|
}
|
|
3089
|
-
function
|
|
2918
|
+
function Ir(t, e) {
|
|
3090
2919
|
if (typeof t != "object" || !t)
|
|
3091
2920
|
return t;
|
|
3092
2921
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3098,9 +2927,9 @@ function eo(t, e) {
|
|
|
3098
2927
|
}
|
|
3099
2928
|
return (e === "string" ? String : Number)(t);
|
|
3100
2929
|
}
|
|
3101
|
-
class
|
|
2930
|
+
class Tr {
|
|
3102
2931
|
constructor(e) {
|
|
3103
|
-
|
|
2932
|
+
Ke(this, "context", void 0), Ke(this, "currentProvider", void 0), Ke(this, "continueCallback", void 0), this.context = e;
|
|
3104
2933
|
}
|
|
3105
2934
|
get paramsToTrack() {
|
|
3106
2935
|
var e, i;
|
|
@@ -3138,19 +2967,19 @@ class to {
|
|
|
3138
2967
|
async callAdRequestAndContinue(e, i, n) {
|
|
3139
2968
|
return this.currentProvider = e, new Promise((r) => {
|
|
3140
2969
|
this.continueCallback = r;
|
|
3141
|
-
const
|
|
3142
|
-
|
|
2970
|
+
const s = Object.assign({}, i);
|
|
2971
|
+
s.onAdRequested = this.wrapAdRequested(i.onAdRequested), s.onAdLoaded = this.wrapAdLoaded(i.onAdLoaded), s.onAdPlaying = this.wrapAdPlaying(i.onAdPlaying), s.onAdCompleted = this.wrapAdCompleted(i.onAdCompleted), s.onAdError = this.wrapAdError(i.onAdError), e.requestAd(s, n);
|
|
3143
2972
|
});
|
|
3144
2973
|
}
|
|
3145
2974
|
}
|
|
3146
|
-
function
|
|
3147
|
-
return (e =
|
|
2975
|
+
function qe(t, e, i) {
|
|
2976
|
+
return (e = Or(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3148
2977
|
}
|
|
3149
|
-
function
|
|
3150
|
-
var e =
|
|
2978
|
+
function Or(t) {
|
|
2979
|
+
var e = kr(t, "string");
|
|
3151
2980
|
return typeof e == "symbol" ? e : e + "";
|
|
3152
2981
|
}
|
|
3153
|
-
function
|
|
2982
|
+
function kr(t, e) {
|
|
3154
2983
|
if (typeof t != "object" || !t)
|
|
3155
2984
|
return t;
|
|
3156
2985
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3162,27 +2991,27 @@ function no(t, e) {
|
|
|
3162
2991
|
}
|
|
3163
2992
|
return (e === "string" ? String : Number)(t);
|
|
3164
2993
|
}
|
|
3165
|
-
class
|
|
2994
|
+
class j extends Error {
|
|
3166
2995
|
constructor(e, i) {
|
|
3167
|
-
super(e.message),
|
|
2996
|
+
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;
|
|
3168
2997
|
}
|
|
3169
2998
|
static from(e, i) {
|
|
3170
2999
|
switch (i) {
|
|
3171
3000
|
case "GOOGLE_IMA_ERROR":
|
|
3172
|
-
return new
|
|
3001
|
+
return new j(e, i);
|
|
3173
3002
|
case "JOLIBOX_IMA_ERROR":
|
|
3174
|
-
return new
|
|
3003
|
+
return new j(e, i);
|
|
3175
3004
|
}
|
|
3176
3005
|
}
|
|
3177
3006
|
}
|
|
3178
3007
|
function S(t, e, i) {
|
|
3179
|
-
return (e =
|
|
3008
|
+
return (e = Dr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3180
3009
|
}
|
|
3181
|
-
function
|
|
3182
|
-
var e =
|
|
3010
|
+
function Dr(t) {
|
|
3011
|
+
var e = Nr(t, "string");
|
|
3183
3012
|
return typeof e == "symbol" ? e : e + "";
|
|
3184
3013
|
}
|
|
3185
|
-
function
|
|
3014
|
+
function Nr(t, e) {
|
|
3186
3015
|
if (typeof t != "object" || !t)
|
|
3187
3016
|
return t;
|
|
3188
3017
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3194,64 +3023,64 @@ function oo(t, e) {
|
|
|
3194
3023
|
}
|
|
3195
3024
|
return (e === "string" ? String : Number)(t);
|
|
3196
3025
|
}
|
|
3197
|
-
class
|
|
3026
|
+
class Lr {
|
|
3198
3027
|
constructor(e, i, n) {
|
|
3199
3028
|
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", () => {
|
|
3200
|
-
var r,
|
|
3201
|
-
this.intervalTimer && clearInterval(this.intervalTimer), (r = this.adsManager) == null || r.stop(), (
|
|
3202
|
-
}), S(this, "requestAds", async (r,
|
|
3203
|
-
var
|
|
3204
|
-
this.createAdDisplayContainer(), this.notifyRequestAd = r.onAdRequested, this.notifyLoaded = r.onAdLoaded, this.notifyPlayingAd = r.onAdPlaying, this.notifyCompleted = r.onAdCompleted, this.notifyError = (
|
|
3029
|
+
var r, s, o, a, d, l, c, u, f, v, y;
|
|
3030
|
+
this.intervalTimer && clearInterval(this.intervalTimer), (r = this.adsManager) == null || r.stop(), (s = this.adDisplayContainer) == null || s.destroy(), (o = this.adsLoader) == null || o.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);
|
|
3031
|
+
}), S(this, "requestAds", async (r, s) => {
|
|
3032
|
+
var c;
|
|
3033
|
+
this.createAdDisplayContainer(), this.notifyRequestAd = r.onAdRequested, this.notifyLoaded = r.onAdLoaded, this.notifyPlayingAd = r.onAdPlaying, this.notifyCompleted = r.onAdCompleted, this.notifyError = (u) => {
|
|
3205
3034
|
var f;
|
|
3206
|
-
return (f = r.onAdError) == null ? void 0 : f.call(r,
|
|
3035
|
+
return (f = r.onAdError) == null ? void 0 : f.call(r, j.from(u, "GOOGLE_IMA_ERROR"));
|
|
3207
3036
|
}, 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);
|
|
3208
|
-
const
|
|
3209
|
-
var
|
|
3210
|
-
this.isAdPlaying || (this.isContentFinished = !0, (
|
|
3037
|
+
const o = () => {
|
|
3038
|
+
var u;
|
|
3039
|
+
this.isAdPlaying || (this.isContentFinished = !0, (u = this.adsLoader) == null || u.contentComplete());
|
|
3211
3040
|
};
|
|
3212
|
-
this.videoContent.onended =
|
|
3041
|
+
this.videoContent.onended = o;
|
|
3213
3042
|
const a = new window.google.ima.AdsRequest();
|
|
3214
|
-
let
|
|
3215
|
-
Object.keys(
|
|
3216
|
-
const f = window.encodeURIComponent(
|
|
3217
|
-
|
|
3043
|
+
let d = "";
|
|
3044
|
+
Object.keys(s.params).forEach((u) => {
|
|
3045
|
+
const f = window.encodeURIComponent(s.params[u]);
|
|
3046
|
+
d += `&${u}=${f}`;
|
|
3218
3047
|
});
|
|
3219
|
-
const
|
|
3220
|
-
a.adTagUrl =
|
|
3048
|
+
const l = `${this.adTagUrl}${d}`;
|
|
3049
|
+
a.adTagUrl = l, a.linearAdSlotWidth = 640, a.linearAdSlotHeight = 400, a.nonLinearAdSlotWidth = 640, a.nonLinearAdSlotHeight = 150, this.adsLoader.requestAds(a), (c = this.notifyRequestAd) == null || c.call(this);
|
|
3221
3050
|
}), S(this, "createAdDisplayContainer", () => {
|
|
3222
3051
|
this.adDisplayContainer = new window.google.ima.AdDisplayContainer(this.adContainer, this.videoContent);
|
|
3223
3052
|
}), S(this, "playAds", () => {
|
|
3224
|
-
var r,
|
|
3053
|
+
var r, s;
|
|
3225
3054
|
this.videoContent.load(), this.adDisplayContainer.initialize(), this.completed = !1;
|
|
3226
3055
|
try {
|
|
3227
|
-
(r = this.adsManager) == null || r.init(window.document.body.clientWidth, window.document.body.clientHeight, window.google.ima.ViewMode.NORMAL), (
|
|
3228
|
-
} catch (
|
|
3229
|
-
console.error("[JoliboxAFV] Google IMA Error: ",
|
|
3056
|
+
(r = this.adsManager) == null || r.init(window.document.body.clientWidth, window.document.body.clientHeight, window.google.ima.ViewMode.NORMAL), (s = this.adsManager) == null || s.start();
|
|
3057
|
+
} catch (o) {
|
|
3058
|
+
console.error("[JoliboxAFV] Google IMA Error: ", o), this.videoContent.play();
|
|
3230
3059
|
}
|
|
3231
3060
|
}), S(this, "onAdsManagerLoaded", (r) => {
|
|
3232
|
-
const
|
|
3233
|
-
|
|
3061
|
+
const s = new window.google.ima.AdsRenderingSettings();
|
|
3062
|
+
s.restoreCustomPlaybackStateOnAdBreakComplete = !0, this.adsManager = r.getAdsManager(this.videoContent, s), 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();
|
|
3234
3063
|
}), S(this, "onAdEvent", (r) => {
|
|
3235
|
-
var
|
|
3236
|
-
const
|
|
3064
|
+
var o, a, d, l;
|
|
3065
|
+
const s = r.getAd();
|
|
3237
3066
|
switch (r.type) {
|
|
3238
3067
|
case window.google.ima.AdEvent.Type.LOADED:
|
|
3239
|
-
|
|
3068
|
+
s != null && s.isLinear() || this.videoContent.play(), (o = this.notifyLoaded) == null || o.call(this, r);
|
|
3240
3069
|
break;
|
|
3241
3070
|
case window.google.ima.AdEvent.Type.STARTED:
|
|
3242
|
-
|
|
3071
|
+
s != null && s.isLinear() && (this.intervalTimer = window.setInterval(function() {
|
|
3243
3072
|
}, 300)), (a = this.notifyPlayingAd) == null || a.call(this, r);
|
|
3244
3073
|
break;
|
|
3245
3074
|
case window.google.ima.AdEvent.Type.COMPLETE:
|
|
3246
|
-
|
|
3075
|
+
s != null && s.isLinear() && clearInterval(this.intervalTimer), this.completed || (this.completed = !0, (d = this.notifyCompleted) == null || d.call(this, r));
|
|
3247
3076
|
break;
|
|
3248
3077
|
case window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED:
|
|
3249
|
-
|
|
3078
|
+
s != null && s.isLinear() && clearInterval(this.intervalTimer), this.completed || (this.completed = !0, (l = this.notifyCompleted) == null || l.call(this, r));
|
|
3250
3079
|
break;
|
|
3251
3080
|
}
|
|
3252
3081
|
}), S(this, "onAdError", (r) => {
|
|
3253
|
-
var
|
|
3254
|
-
(
|
|
3082
|
+
var s, o;
|
|
3083
|
+
(s = this.notifyError) == null || s.call(this, r.getError()), (o = this.adsManager) == null || o.destroy();
|
|
3255
3084
|
}), S(this, "onContentPauseRequested", () => {
|
|
3256
3085
|
this.isAdPlaying = !0, this.videoContent.pause();
|
|
3257
3086
|
}), S(this, "onContentResumeRequested", () => {
|
|
@@ -3259,9 +3088,9 @@ class so {
|
|
|
3259
3088
|
}), this.adTagUrl = e, this.videoContent = i, this.adContainer = n;
|
|
3260
3089
|
}
|
|
3261
3090
|
}
|
|
3262
|
-
var
|
|
3263
|
-
const
|
|
3264
|
-
const t =
|
|
3091
|
+
var Oe = /* @__PURE__ */ ((t) => (t[t.ADS_REQUEST_NETWORK_ERROR = 1012] = "ADS_REQUEST_NETWORK_ERROR", t[t.ASSET_FALLBACK_FAILED = 1021] = "ASSET_FALLBACK_FAILED", t[t.AUTOPLAY_DISALLOWED = 1205] = "AUTOPLAY_DISALLOWED", t[t.COMPANION_AD_LOADING_FAILED = 603] = "COMPANION_AD_LOADING_FAILED", t[t.COMPANION_REQUIRED_ERROR = 602] = "COMPANION_REQUIRED_ERROR", t[t.FAILED_TO_REQUEST_ADS = 1005] = "FAILED_TO_REQUEST_ADS", t[t.INVALID_AD_TAG = 1013] = "INVALID_AD_TAG", t[t.INVALID_ADX_EXTENSION = 1105] = "INVALID_ADX_EXTENSION", t[t.INVALID_ARGUMENTS = 1101] = "INVALID_ARGUMENTS", t[t.NONLINEAR_DIMENSIONS_ERROR = 501] = "NONLINEAR_DIMENSIONS_ERROR", t[t.OVERLAY_AD_LOADING_FAILED = 502] = "OVERLAY_AD_LOADING_FAILED", t[t.OVERLAY_AD_PLAYING_FAILED = 500] = "OVERLAY_AD_PLAYING_FAILED", t[t.STREAM_INITIALIZATION_FAILED = 1020] = "STREAM_INITIALIZATION_FAILED", t[t.UNKNOWN_AD_RESPONSE = 1010] = "UNKNOWN_AD_RESPONSE", t[t.UNKNOWN_ERROR = 900] = "UNKNOWN_ERROR", t[t.UNSUPPORTED_LOCALE = 1011] = "UNSUPPORTED_LOCALE", t[t.VAST_ASSET_NOT_FOUND = 1007] = "VAST_ASSET_NOT_FOUND", t[t.VAST_EMPTY_RESPONSE = 1009] = "VAST_EMPTY_RESPONSE", t[t.VAST_LINEAR_ASSET_MISMATCH = 403] = "VAST_LINEAR_ASSET_MISMATCH", t[t.VAST_LOAD_TIMEOUT = 301] = "VAST_LOAD_TIMEOUT", t[t.VAST_MALFORMED_RESPONSE = 100] = "VAST_MALFORMED_RESPONSE", t[t.VAST_MEDIA_LOAD_TIMEOUT = 402] = "VAST_MEDIA_LOAD_TIMEOUT", t[t.VAST_NO_ADS_AFTER_WRAPPER = 303] = "VAST_NO_ADS_AFTER_WRAPPER", t[t.VAST_NONLINEAR_ASSET_MISMATCH = 503] = "VAST_NONLINEAR_ASSET_MISMATCH", t[t.VAST_PROBLEM_DISPLAYING_MEDIA_FILE = 405] = "VAST_PROBLEM_DISPLAYING_MEDIA_FILE", t[t.VAST_SCHEMA_VALIDATION_ERROR = 101] = "VAST_SCHEMA_VALIDATION_ERROR", t[t.VAST_TOO_MANY_REDIRECTS = 302] = "VAST_TOO_MANY_REDIRECTS", t[t.VAST_TRAFFICKING_ERROR = 200] = "VAST_TRAFFICKING_ERROR", t[t.VAST_UNEXPECTED_DURATION_ERROR = 202] = "VAST_UNEXPECTED_DURATION_ERROR", t[t.VAST_UNEXPECTED_LINEARITY = 201] = "VAST_UNEXPECTED_LINEARITY", t[t.VAST_UNSUPPORTED_VERSION = 102] = "VAST_UNSUPPORTED_VERSION", t[t.VAST_WRAPPER_ERROR = 300] = "VAST_WRAPPER_ERROR", t[t.VIDEO_PLAY_ERROR = 400] = "VIDEO_PLAY_ERROR", t[t.VPAID_ERROR = 901] = "VPAID_ERROR", t))(Oe || {});
|
|
3092
|
+
const Pr = () => {
|
|
3093
|
+
const t = I(!1), e = I(!1), i = I(null), n = ft(), r = ft();
|
|
3265
3094
|
return {
|
|
3266
3095
|
visible: t,
|
|
3267
3096
|
canRetry: e,
|
|
@@ -3269,8 +3098,8 @@ const ao = () => {
|
|
|
3269
3098
|
videoRef: n,
|
|
3270
3099
|
adContainerRef: r
|
|
3271
3100
|
};
|
|
3272
|
-
},
|
|
3273
|
-
${
|
|
3101
|
+
}, Cr = ge`
|
|
3102
|
+
${P}
|
|
3274
3103
|
position: fixed;
|
|
3275
3104
|
left: 0;
|
|
3276
3105
|
top: 0;
|
|
@@ -3285,7 +3114,7 @@ const ao = () => {
|
|
|
3285
3114
|
}
|
|
3286
3115
|
|
|
3287
3116
|
.ads-wrapper {
|
|
3288
|
-
${
|
|
3117
|
+
${P}
|
|
3289
3118
|
position: relative;
|
|
3290
3119
|
width: 100%;
|
|
3291
3120
|
height: 100%;
|
|
@@ -3308,7 +3137,7 @@ const ao = () => {
|
|
|
3308
3137
|
}
|
|
3309
3138
|
|
|
3310
3139
|
.retry-button {
|
|
3311
|
-
${
|
|
3140
|
+
${P}
|
|
3312
3141
|
position: absolute;
|
|
3313
3142
|
width: 100%;
|
|
3314
3143
|
height: 100%;
|
|
@@ -3318,7 +3147,7 @@ const ao = () => {
|
|
|
3318
3147
|
cursor: pointer;
|
|
3319
3148
|
}
|
|
3320
3149
|
}
|
|
3321
|
-
`,
|
|
3150
|
+
`, Mr = (t) => {
|
|
3322
3151
|
let {
|
|
3323
3152
|
onReady: e,
|
|
3324
3153
|
state: i
|
|
@@ -3326,44 +3155,44 @@ const ao = () => {
|
|
|
3326
3155
|
const {
|
|
3327
3156
|
visible: n,
|
|
3328
3157
|
retry: r,
|
|
3329
|
-
canRetry:
|
|
3330
|
-
videoRef:
|
|
3158
|
+
canRetry: s,
|
|
3159
|
+
videoRef: o,
|
|
3331
3160
|
adContainerRef: a
|
|
3332
|
-
} = i,
|
|
3333
|
-
r.value && (r.value(),
|
|
3334
|
-
r.value = null,
|
|
3161
|
+
} = i, d = () => {
|
|
3162
|
+
r.value && (r.value(), N(() => {
|
|
3163
|
+
r.value = null, s.value = !1;
|
|
3335
3164
|
}));
|
|
3336
3165
|
};
|
|
3337
|
-
return
|
|
3166
|
+
return Pt(() => {
|
|
3338
3167
|
e();
|
|
3339
|
-
}, [e]),
|
|
3340
|
-
className:
|
|
3168
|
+
}, [e]), A("div", {
|
|
3169
|
+
className: Cr,
|
|
3341
3170
|
"data-visible": n.value,
|
|
3342
|
-
children:
|
|
3171
|
+
children: A("div", {
|
|
3343
3172
|
className: "ads-wrapper",
|
|
3344
|
-
children: [
|
|
3345
|
-
ref:
|
|
3173
|
+
children: [A("video", {
|
|
3174
|
+
ref: o,
|
|
3346
3175
|
width: "100%",
|
|
3347
3176
|
height: "100%"
|
|
3348
|
-
}),
|
|
3177
|
+
}), A("div", {
|
|
3349
3178
|
id: "ad-container",
|
|
3350
3179
|
ref: a
|
|
3351
|
-
}),
|
|
3180
|
+
}), s.value ? A("div", {
|
|
3352
3181
|
className: "retry-button",
|
|
3353
|
-
onClick:
|
|
3354
|
-
children:
|
|
3182
|
+
onClick: d,
|
|
3183
|
+
children: A("svg", {
|
|
3355
3184
|
width: "64",
|
|
3356
3185
|
height: "64",
|
|
3357
3186
|
viewBox: "0 0 64 64",
|
|
3358
3187
|
fill: "none",
|
|
3359
3188
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3360
|
-
children: [
|
|
3189
|
+
children: [A("circle", {
|
|
3361
3190
|
cx: "32",
|
|
3362
3191
|
cy: "32",
|
|
3363
3192
|
r: "32",
|
|
3364
3193
|
fill: "#141416",
|
|
3365
3194
|
fillOpacity: "0.3"
|
|
3366
|
-
}),
|
|
3195
|
+
}), A("path", {
|
|
3367
3196
|
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",
|
|
3368
3197
|
fill: "white"
|
|
3369
3198
|
})]
|
|
@@ -3372,14 +3201,14 @@ const ao = () => {
|
|
|
3372
3201
|
})
|
|
3373
3202
|
});
|
|
3374
3203
|
};
|
|
3375
|
-
function
|
|
3376
|
-
return (e =
|
|
3204
|
+
function J(t, e, i) {
|
|
3205
|
+
return (e = $r(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3377
3206
|
}
|
|
3378
|
-
function
|
|
3379
|
-
var e =
|
|
3207
|
+
function $r(t) {
|
|
3208
|
+
var e = Ur(t, "string");
|
|
3380
3209
|
return typeof e == "symbol" ? e : e + "";
|
|
3381
3210
|
}
|
|
3382
|
-
function
|
|
3211
|
+
function Ur(t, e) {
|
|
3383
3212
|
if (typeof t != "object" || !t)
|
|
3384
3213
|
return t;
|
|
3385
3214
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3391,71 +3220,80 @@ function fo(t, e) {
|
|
|
3391
3220
|
}
|
|
3392
3221
|
return (e === "string" ? String : Number)(t);
|
|
3393
3222
|
}
|
|
3394
|
-
class
|
|
3223
|
+
class jr {
|
|
3395
3224
|
constructor(e) {
|
|
3396
|
-
|
|
3225
|
+
J(this, "name", "GOOGLE_IMA"), J(this, "context", void 0), J(this, "adsOverlay", null), J(this, "initialized", !1), J(this, "ima", null), J(this, "state", Pr()), J(this, "init", async (i) => {
|
|
3226
|
+
if (this.initialized)
|
|
3227
|
+
return;
|
|
3397
3228
|
const n = "//imasdk.googleapis.com/js/sdkloader/ima3.js";
|
|
3398
|
-
await new Promise((r,
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3229
|
+
await new Promise((r, s) => {
|
|
3230
|
+
if (document.querySelector("#google-ima-sdk")) {
|
|
3231
|
+
r();
|
|
3232
|
+
return;
|
|
3233
|
+
} else {
|
|
3234
|
+
const o = document.createElement("script");
|
|
3235
|
+
o.id = "google-ima-sdk", o.src = n, o.onload = () => {
|
|
3236
|
+
var a;
|
|
3237
|
+
(a = window.google) != null && a.ima ? r() : setTimeout(r, 100);
|
|
3238
|
+
}, o.onerror = s, document.head.appendChild(o);
|
|
3239
|
+
}
|
|
3240
|
+
}), this.adsOverlay = document.createElement("div"), document.documentElement.appendChild(this.adsOverlay), await new Promise((r, s) => {
|
|
3241
|
+
he(A(Mr, {
|
|
3406
3242
|
state: this.state,
|
|
3407
3243
|
onReady: () => {
|
|
3408
|
-
this.ima = new
|
|
3244
|
+
this.ima = new Lr(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
|
|
3409
3245
|
}
|
|
3410
3246
|
}), this.adsOverlay);
|
|
3411
3247
|
}), this.initialized = !0;
|
|
3412
|
-
}),
|
|
3248
|
+
}), J(this, "destroy", () => {
|
|
3249
|
+
this.adsOverlay && (he(null, this.adsOverlay), this.adsOverlay.remove()), this.ima && this.ima.destroy(), this.initialized = !1;
|
|
3250
|
+
}), J(this, "requestAd", (i, n) => {
|
|
3413
3251
|
var a;
|
|
3414
3252
|
if (!this.adsOverlay || !this.ima || !this.initialized) {
|
|
3415
|
-
const
|
|
3416
|
-
(a = i.onAdError) == null || a.call(i,
|
|
3253
|
+
const d = j.from(new Error("IMA not initialized"), "JOLIBOX_IMA_ERROR");
|
|
3254
|
+
(a = i.onAdError) == null || a.call(i, d);
|
|
3417
3255
|
return;
|
|
3418
3256
|
}
|
|
3419
|
-
const r = (
|
|
3420
|
-
var
|
|
3421
|
-
this.ima.destroy(), this.state.visible.value = !1, (
|
|
3422
|
-
},
|
|
3423
|
-
let
|
|
3424
|
-
switch (
|
|
3425
|
-
case
|
|
3426
|
-
case
|
|
3427
|
-
case
|
|
3428
|
-
|
|
3257
|
+
const r = (d) => {
|
|
3258
|
+
var l;
|
|
3259
|
+
this.ima.destroy(), this.state.visible.value = !1, (l = i.onAdCompleted) == null || l.call(i, d);
|
|
3260
|
+
}, s = (d) => {
|
|
3261
|
+
let l = !1;
|
|
3262
|
+
switch (d.raw.getErrorCode()) {
|
|
3263
|
+
case Oe.AUTOPLAY_DISALLOWED:
|
|
3264
|
+
case Oe.VIDEO_PLAY_ERROR:
|
|
3265
|
+
case Oe.ADS_REQUEST_NETWORK_ERROR: {
|
|
3266
|
+
l = !0;
|
|
3429
3267
|
break;
|
|
3430
3268
|
}
|
|
3431
3269
|
default: {
|
|
3432
|
-
|
|
3270
|
+
l = !1;
|
|
3433
3271
|
break;
|
|
3434
3272
|
}
|
|
3435
3273
|
}
|
|
3436
|
-
if (!
|
|
3274
|
+
if (!l)
|
|
3437
3275
|
this.ima.destroy(), this.state.visible.value = !1;
|
|
3438
3276
|
else {
|
|
3439
|
-
const
|
|
3277
|
+
const c = () => {
|
|
3440
3278
|
this.ima.destroy(), this.requestAd(i, n);
|
|
3441
3279
|
};
|
|
3442
|
-
|
|
3443
|
-
this.state.canRetry.value = !0, this.state.retry.value =
|
|
3280
|
+
N(() => {
|
|
3281
|
+
this.state.canRetry.value = !0, this.state.retry.value = c;
|
|
3444
3282
|
});
|
|
3445
3283
|
}
|
|
3446
|
-
},
|
|
3447
|
-
|
|
3284
|
+
}, o = Object.assign({}, i);
|
|
3285
|
+
o.onAdCompleted = r, o.onAdError = s, this.ima.requestAds(o, n), this.state.visible.value = !0;
|
|
3448
3286
|
}), this.context = e;
|
|
3449
3287
|
}
|
|
3450
3288
|
}
|
|
3451
|
-
function
|
|
3452
|
-
return (e =
|
|
3289
|
+
function z(t, e, i) {
|
|
3290
|
+
return (e = Fr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3453
3291
|
}
|
|
3454
|
-
function
|
|
3455
|
-
var e =
|
|
3292
|
+
function Fr(t) {
|
|
3293
|
+
var e = Br(t, "string");
|
|
3456
3294
|
return typeof e == "symbol" ? e : e + "";
|
|
3457
3295
|
}
|
|
3458
|
-
function
|
|
3296
|
+
function Br(t, e) {
|
|
3459
3297
|
if (typeof t != "object" || !t)
|
|
3460
3298
|
return t;
|
|
3461
3299
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3467,46 +3305,49 @@ function _o(t, e) {
|
|
|
3467
3305
|
}
|
|
3468
3306
|
return (e === "string" ? String : Number)(t);
|
|
3469
3307
|
}
|
|
3470
|
-
class
|
|
3308
|
+
class Vr {
|
|
3471
3309
|
constructor(e) {
|
|
3472
|
-
|
|
3310
|
+
z(this, "name", "OKSPIN"), z(this, "initialized", !1), z(this, "initCompleter", null), z(this, "context", void 0), z(this, "adsOverlay", null), z(this, "adsIsShowing", !1), z(this, "state", ui()), z(this, "init", async (i) => {
|
|
3473
3311
|
var n;
|
|
3474
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"),
|
|
3312
|
+
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), he(A(fi, {
|
|
3475
3313
|
state: this.state
|
|
3476
|
-
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this);
|
|
3477
|
-
}),
|
|
3478
|
-
var
|
|
3314
|
+
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
|
|
3315
|
+
}), z(this, "destroy", () => {
|
|
3316
|
+
var i;
|
|
3317
|
+
this.adsOverlay && (he(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
|
|
3318
|
+
}), z(this, "requestAd", (i, n) => {
|
|
3319
|
+
var o, a, d, l;
|
|
3479
3320
|
if (!this.adsOverlay || !this.initialized) {
|
|
3480
|
-
(
|
|
3321
|
+
(o = i.onAdError) == null || o.call(i, j.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
|
|
3481
3322
|
return;
|
|
3482
3323
|
}
|
|
3483
3324
|
if (this.adsIsShowing) {
|
|
3484
|
-
(a = i.onAdError) == null || a.call(i,
|
|
3325
|
+
(a = i.onAdError) == null || a.call(i, j.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
|
|
3485
3326
|
return;
|
|
3486
3327
|
}
|
|
3487
|
-
(
|
|
3328
|
+
(d = i.onAdRequested) == null || d.call(i);
|
|
3488
3329
|
const r = () => {
|
|
3489
|
-
var
|
|
3490
|
-
this.adsIsShowing = !1, (
|
|
3491
|
-
},
|
|
3492
|
-
var
|
|
3493
|
-
(
|
|
3330
|
+
var c;
|
|
3331
|
+
this.adsIsShowing = !1, (c = i.onAdCompleted) == null || c.call(i, void 0);
|
|
3332
|
+
}, s = () => {
|
|
3333
|
+
var c;
|
|
3334
|
+
(c = i.onAdLoaded) == null || c.call(i, void 0);
|
|
3494
3335
|
};
|
|
3495
|
-
this.adsIsShowing = !0,
|
|
3496
|
-
var
|
|
3497
|
-
this.state.adLoaded.value =
|
|
3498
|
-
}), (
|
|
3336
|
+
this.adsIsShowing = !0, N(() => {
|
|
3337
|
+
var c;
|
|
3338
|
+
this.state.adLoaded.value = s, 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
|
+
}), (l = i.onAdPlaying) == null || l.call(i, void 0);
|
|
3499
3340
|
}), this.context = e;
|
|
3500
3341
|
}
|
|
3501
3342
|
}
|
|
3502
|
-
function
|
|
3503
|
-
return (e =
|
|
3343
|
+
function ce(t, e, i) {
|
|
3344
|
+
return (e = zr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3504
3345
|
}
|
|
3505
|
-
function
|
|
3506
|
-
var e =
|
|
3346
|
+
function zr(t) {
|
|
3347
|
+
var e = Gr(t, "string");
|
|
3507
3348
|
return typeof e == "symbol" ? e : e + "";
|
|
3508
3349
|
}
|
|
3509
|
-
function
|
|
3350
|
+
function Gr(t, e) {
|
|
3510
3351
|
if (typeof t != "object" || !t)
|
|
3511
3352
|
return t;
|
|
3512
3353
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3518,10 +3359,10 @@ function go(t, e) {
|
|
|
3518
3359
|
}
|
|
3519
3360
|
return (e === "string" ? String : Number)(t);
|
|
3520
3361
|
}
|
|
3521
|
-
class
|
|
3362
|
+
class is {
|
|
3522
3363
|
constructor(e) {
|
|
3523
|
-
if (
|
|
3524
|
-
this.context = e, this.adsTrackSerializer = new
|
|
3364
|
+
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
|
+
this.context = e, this.adsTrackSerializer = new Vt(e), this.contextInfo = this.context.getContextInfo();
|
|
3525
3366
|
else
|
|
3526
3367
|
throw new Error("JoliboxAdsForVideo requires a configuration object");
|
|
3527
3368
|
}
|
|
@@ -3563,29 +3404,38 @@ class To {
|
|
|
3563
3404
|
for (const i of e)
|
|
3564
3405
|
switch (i.provider) {
|
|
3565
3406
|
case "GOOGLE_IMA": {
|
|
3566
|
-
const n = new
|
|
3407
|
+
const n = new jr(this.context);
|
|
3567
3408
|
await n.init(i), this.providers.GOOGLE_IMA = n;
|
|
3568
3409
|
break;
|
|
3569
3410
|
}
|
|
3570
3411
|
case "OKSPIN": {
|
|
3571
|
-
const n = new
|
|
3412
|
+
const n = new Vr(this.context);
|
|
3572
3413
|
await n.init(i), this.providers.OKSPIN = n;
|
|
3573
3414
|
break;
|
|
3574
3415
|
}
|
|
3575
3416
|
}
|
|
3576
3417
|
this.initialized = !0;
|
|
3577
3418
|
}
|
|
3419
|
+
/**
|
|
3420
|
+
* Destroy all providers and reset the initialized state.
|
|
3421
|
+
*/
|
|
3422
|
+
destroy() {
|
|
3423
|
+
const e = Object.values(this.providers);
|
|
3424
|
+
for (const i of e)
|
|
3425
|
+
i.destroy();
|
|
3426
|
+
this.initialized = !1;
|
|
3427
|
+
}
|
|
3578
3428
|
async requestAd(e) {
|
|
3579
|
-
var i, n, r,
|
|
3429
|
+
var i, n, r, s, o, a, d;
|
|
3580
3430
|
if ((i = this.context.eventEmitter) == null || i.emit("isAdShowing", !0), this.initialized || await this.init(), !this.context.checkNetwork()) {
|
|
3581
|
-
const
|
|
3582
|
-
(n = e.onAdError) == null || n.call(e,
|
|
3431
|
+
const l = j.from(new Error("No network connection"), "JOLIBOX_IMA_ERROR");
|
|
3432
|
+
(n = e.onAdError) == null || n.call(e, l);
|
|
3583
3433
|
return;
|
|
3584
3434
|
}
|
|
3585
3435
|
try {
|
|
3586
3436
|
const {
|
|
3587
|
-
data:
|
|
3588
|
-
code:
|
|
3437
|
+
data: l,
|
|
3438
|
+
code: c
|
|
3589
3439
|
} = await this.context.httpClient.post("/api/ads/info", {
|
|
3590
3440
|
data: {
|
|
3591
3441
|
contextData: this.getRequestContextData("AdsAFVSDKRequest"),
|
|
@@ -3594,47 +3444,47 @@ class To {
|
|
|
3594
3444
|
adsType: "REWARD_INTERSTITIAL"
|
|
3595
3445
|
}
|
|
3596
3446
|
});
|
|
3597
|
-
if (
|
|
3598
|
-
const
|
|
3599
|
-
(r = e.onAdError) == null || r.call(e,
|
|
3447
|
+
if (c !== "SUCCESS") {
|
|
3448
|
+
const u = j.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
|
|
3449
|
+
(r = e.onAdError) == null || r.call(e, u);
|
|
3600
3450
|
return;
|
|
3601
3451
|
} else {
|
|
3602
|
-
const
|
|
3603
|
-
if (
|
|
3604
|
-
const
|
|
3605
|
-
(
|
|
3452
|
+
const u = l;
|
|
3453
|
+
if (u.length === 0) {
|
|
3454
|
+
const _ = j.from(new Error("No ads available"), "JOLIBOX_IMA_ERROR");
|
|
3455
|
+
(s = e.onAdError) == null || s.call(e, _);
|
|
3606
3456
|
return;
|
|
3607
3457
|
}
|
|
3608
3458
|
let f = !0, v = null;
|
|
3609
|
-
const y = new
|
|
3610
|
-
for (;
|
|
3611
|
-
const
|
|
3612
|
-
if (
|
|
3613
|
-
const [h,
|
|
3614
|
-
f = h, v =
|
|
3459
|
+
const y = new Tr(this.context);
|
|
3460
|
+
for (; u.length > 0; ) {
|
|
3461
|
+
const _ = u.shift(), w = this.providers[_.provider];
|
|
3462
|
+
if (w) {
|
|
3463
|
+
const [h, p] = await y.callAdRequestAndContinue(w, e, _);
|
|
3464
|
+
f = h, v = p;
|
|
3615
3465
|
} else
|
|
3616
|
-
f = !0, v =
|
|
3466
|
+
f = !0, v = j.from(new Error("No provider available"), "JOLIBOX_IMA_ERROR");
|
|
3617
3467
|
if (!f)
|
|
3618
3468
|
break;
|
|
3619
3469
|
}
|
|
3620
|
-
f && v && ((
|
|
3470
|
+
f && v && ((o = e.onAdError) == null || o.call(e, v));
|
|
3621
3471
|
}
|
|
3622
|
-
} catch (
|
|
3623
|
-
const
|
|
3624
|
-
(a = e.onAdError) == null || a.call(e,
|
|
3472
|
+
} catch (l) {
|
|
3473
|
+
const c = j.from(new Error("Failed to request ad"), "JOLIBOX_IMA_ERROR");
|
|
3474
|
+
(a = e.onAdError) == null || a.call(e, c);
|
|
3625
3475
|
} finally {
|
|
3626
|
-
(
|
|
3476
|
+
(d = this.context.eventEmitter) == null || d.emit("isAdShowing", !1);
|
|
3627
3477
|
}
|
|
3628
3478
|
}
|
|
3629
3479
|
}
|
|
3630
3480
|
function ee(t, e, i) {
|
|
3631
|
-
return (e =
|
|
3481
|
+
return (e = Kr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3632
3482
|
}
|
|
3633
|
-
function
|
|
3634
|
-
var e =
|
|
3483
|
+
function Kr(t) {
|
|
3484
|
+
var e = qr(t, "string");
|
|
3635
3485
|
return typeof e == "symbol" ? e : e + "";
|
|
3636
3486
|
}
|
|
3637
|
-
function
|
|
3487
|
+
function qr(t, e) {
|
|
3638
3488
|
if (typeof t != "object" || !t)
|
|
3639
3489
|
return t;
|
|
3640
3490
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3646,17 +3496,18 @@ function bo(t, e) {
|
|
|
3646
3496
|
}
|
|
3647
3497
|
return (e === "string" ? String : Number)(t);
|
|
3648
3498
|
}
|
|
3649
|
-
class
|
|
3499
|
+
class ns extends Error {
|
|
3650
3500
|
constructor(e) {
|
|
3651
3501
|
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;
|
|
3652
3502
|
}
|
|
3653
3503
|
}
|
|
3654
3504
|
export {
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3505
|
+
j as AFVWrappedError,
|
|
3506
|
+
cn as GoogleAdSenseProvider,
|
|
3507
|
+
jr as GoogleIMAProvider,
|
|
3508
|
+
ts as JoliboxAdsForGame,
|
|
3509
|
+
is as JoliboxAdsForVideo,
|
|
3510
|
+
Er as OKSpinForGameProvider,
|
|
3511
|
+
Vr as OKSpinForVideoProvider,
|
|
3512
|
+
ns as ResponseError
|
|
3662
3513
|
};
|