@jolibox/ads 1.4.2 → 1.4.6

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/index.js CHANGED
@@ -1,61 +1,61 @@
1
- var tn = Object.defineProperty, nn = Object.defineProperties;
2
- var rn = Object.getOwnPropertyDescriptors;
1
+ var dn = Object.defineProperty, ln = Object.defineProperties;
2
+ var un = Object.getOwnPropertyDescriptors;
3
3
  var ze = Object.getOwnPropertySymbols;
4
- var jt = Object.prototype.hasOwnProperty, Vt = Object.prototype.propertyIsEnumerable;
5
- var Ft = (t, e, i) => e in t ? tn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, ht = (t, e) => {
4
+ var qt = Object.prototype.hasOwnProperty, Kt = Object.prototype.propertyIsEnumerable;
5
+ var Gt = (t, e, i) => e in t ? dn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, vt = (t, e) => {
6
6
  for (var i in e || (e = {}))
7
- jt.call(e, i) && Ft(t, i, e[i]);
7
+ qt.call(e, i) && Gt(t, i, e[i]);
8
8
  if (ze)
9
9
  for (var i of ze(e))
10
- Vt.call(e, i) && Ft(t, i, e[i]);
10
+ Kt.call(e, i) && Gt(t, i, e[i]);
11
11
  return t;
12
- }, Gt = (t, e) => nn(t, rn(e));
13
- var qt = (t, e) => {
12
+ }, zt = (t, e) => ln(t, un(e));
13
+ var Wt = (t, e) => {
14
14
  var i = {};
15
15
  for (var n in t)
16
- jt.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
16
+ qt.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
17
17
  if (t != null && ze)
18
18
  for (var n of ze(t))
19
- e.indexOf(n) < 0 && Vt.call(t, n) && (i[n] = t[n]);
19
+ e.indexOf(n) < 0 && Kt.call(t, n) && (i[n] = t[n]);
20
20
  return i;
21
21
  };
22
- import { options as xe, Component as on, isValidElement as sn } from "preact";
23
- import { useRef as gi, useLayoutEffect as an, useEffect as Re, useMemo as dn, useState as we, useCallback as _t, render as fe, createRef as Kt } from "preact/compat";
24
- import { registerCanIUseContext as ln, invokeNative as ft, offNative as un, onNative as cn } from "@jolibox/native-bridge";
25
- var Ai = Object.defineProperty, hn = Object.defineProperties, fn = Object.getOwnPropertyDescriptors, zt = Object.getOwnPropertySymbols, vn = Object.prototype.hasOwnProperty, yn = Object.prototype.propertyIsEnumerable, Wt = (t, e, i) => e in t ? Ai(t, e, {
22
+ import { options as Re, Component as cn, isValidElement as hn } from "preact";
23
+ import { useRef as _i, useLayoutEffect as fn, useEffect as Te, useMemo as vn, useState as Ae, useCallback as Et, render as fe, createRef as Ht } from "preact/compat";
24
+ import { registerCanIUseContext as yn, invokeNative as yt, offNative as gn, onNative as wn } from "@jolibox/native-bridge";
25
+ var mi = Object.defineProperty, bn = Object.defineProperties, An = Object.getOwnPropertyDescriptors, Jt = Object.getOwnPropertySymbols, pn = Object.prototype.hasOwnProperty, _n = Object.prototype.propertyIsEnumerable, Xt = (t, e, i) => e in t ? mi(t, e, {
26
26
  enumerable: !0,
27
27
  configurable: !0,
28
28
  writable: !0,
29
29
  value: i
30
- }) : t[e] = i, gn = (t, e) => {
30
+ }) : t[e] = i, mn = (t, e) => {
31
31
  for (var i in e || (e = {}))
32
- vn.call(e, i) && Wt(t, i, e[i]);
33
- if (zt)
34
- for (var i of zt(e))
35
- yn.call(e, i) && Wt(t, i, e[i]);
32
+ pn.call(e, i) && Xt(t, i, e[i]);
33
+ if (Jt)
34
+ for (var i of Jt(e))
35
+ _n.call(e, i) && Xt(t, i, e[i]);
36
36
  return t;
37
- }, An = (t, e) => hn(t, fn(e)), wn = (t, e) => {
37
+ }, Sn = (t, e) => bn(t, An(e)), En = (t, e) => {
38
38
  for (var i in e)
39
- Ai(t, i, {
39
+ mi(t, i, {
40
40
  get: e[i],
41
41
  enumerable: !0
42
42
  });
43
- }, wi = (t, e, i, n) => {
43
+ }, Si = (t, e, i, n) => {
44
44
  for (var r = e, o = t.length - 1, s; o >= 0; o--)
45
45
  (s = t[o]) && (r = s(r) || r);
46
46
  return r;
47
- }, bn = (t, e, i) => new Promise((n, r) => {
47
+ }, kn = (t, e, i) => new Promise((n, r) => {
48
48
  var o = (d) => {
49
49
  try {
50
50
  a(i.next(d));
51
- } catch (l) {
52
- r(l);
51
+ } catch (u) {
52
+ r(u);
53
53
  }
54
54
  }, s = (d) => {
55
55
  try {
56
56
  a(i.throw(d));
57
- } catch (l) {
58
- r(l);
57
+ } catch (u) {
58
+ r(u);
59
59
  }
60
60
  }, a = (d) => d.done ? n(d.value) : Promise.resolve(d.value).then(o, s);
61
61
  a((i = i.apply(t, e)).next());
@@ -89,26 +89,26 @@ if (typeof window != "undefined" && !window.AbortController) {
89
89
  n.call(this, i);
90
90
  }, window.AbortController = t, window.AbortSignal = e;
91
91
  }
92
- function pn(t) {
92
+ function In(t) {
93
93
  return new Promise((e) => {
94
94
  setTimeout(() => {
95
95
  e();
96
96
  }, t);
97
97
  });
98
98
  }
99
- function _n(t) {
99
+ function xn(t) {
100
100
  return typeof t == "string";
101
101
  }
102
- function mn(t) {
102
+ function Rn(t) {
103
103
  return typeof t == "undefined";
104
104
  }
105
- function Sn(t) {
106
- return mn(t) || t === null;
105
+ function Tn(t) {
106
+ return Rn(t) || t === null;
107
107
  }
108
- function En(t) {
108
+ function Cn(t) {
109
109
  return typeof t == "function";
110
110
  }
111
- function bi(t) {
111
+ function Ei(t) {
112
112
  let e = t, i = null, n = function() {
113
113
  for (var r = arguments.length, o = new Array(r), s = 0; s < r; s++)
114
114
  o[s] = arguments[s];
@@ -116,28 +116,28 @@ function bi(t) {
116
116
  };
117
117
  return n.prototype = e.prototype, n;
118
118
  }
119
- var kn = ((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))(kn || {});
120
- function Pe(t) {
119
+ var On = ((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))(On || {});
120
+ function Ne(t) {
121
121
  return function() {
122
122
  var e, i;
123
123
  ((i = (e = globalThis.VConsole) == null ? void 0 : e[t]) != null ? i : globalThis.console[t])(...arguments);
124
124
  };
125
125
  }
126
- var In = {
127
- log: Pe("log"),
128
- warn: Pe("warn"),
129
- info: Pe("info"),
130
- error: Pe("error"),
131
- debug: Pe("debug")
126
+ var Dn = {
127
+ log: Ne("log"),
128
+ warn: Ne("warn"),
129
+ info: Ne("info"),
130
+ error: Ne("error"),
131
+ debug: Ne("debug")
132
132
  };
133
133
  Object.assign(globalThis, {
134
- logger: In
134
+ logger: Dn
135
135
  });
136
- var Ht = Symbol.for("Jolibox.canIUseMap"), xn = {};
137
- globalThis[Ht] || (globalThis[Ht] = xn);
138
- var Jt = Symbol.for("Jolibox.canIUseMap.native"), Rn = {};
139
- globalThis[Jt] || (globalThis[Jt] = Rn);
140
- var pi = ((t) => (t[t.Other = 0] = "Other", t[t.Route = 1] = "Route", t[t.Click = 2] = "Click", t[t.View = 3] = "View", t[t.Expose = 4] = "Expose", t[t.Swipe = 5] = "Swipe", t[t.Input = 6] = "Input", t[t.Select = 7] = "Select", t[t.SwitchOn = 8] = "SwitchOn", t[t.SwitchOff = 9] = "SwitchOff", t[t.Submit = 10] = "Submit", t[t.Scroll = 11] = "Scroll", t[t.Hide = 12] = "Hide", t[t.System = 1e3] = "System", t[t.ErrorTrace = 1001] = "ErrorTrace", t[t.UserDefined = 1002] = "UserDefined", t))(pi || {}), _i = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(_i || {}), mi = ((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))(mi || {}), Xt = ["name", "params"], Tn = ["name", "type", "location", "target", "extra", "timestamp", "userId"], Cn = ["platform", "os", "appVersion", "appId", "model", "brand", "uuid", "jsSdkVersion", "extra"];
136
+ var Yt = Symbol.for("Jolibox.canIUseMap"), Pn = {};
137
+ globalThis[Yt] || (globalThis[Yt] = Pn);
138
+ var Qt = Symbol.for("Jolibox.canIUseMap.native"), Nn = {};
139
+ globalThis[Qt] || (globalThis[Qt] = Nn);
140
+ var ki = ((t) => (t[t.Other = 0] = "Other", t[t.Route = 1] = "Route", t[t.Click = 2] = "Click", t[t.View = 3] = "View", t[t.Expose = 4] = "Expose", t[t.Swipe = 5] = "Swipe", t[t.Input = 6] = "Input", t[t.Select = 7] = "Select", t[t.SwitchOn = 8] = "SwitchOn", t[t.SwitchOff = 9] = "SwitchOff", t[t.Submit = 10] = "Submit", t[t.Scroll = 11] = "Scroll", t[t.Hide = 12] = "Hide", t[t.System = 1e3] = "System", t[t.ErrorTrace = 1001] = "ErrorTrace", t[t.UserDefined = 1002] = "UserDefined", t))(ki || {}), Ii = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(Ii || {}), xi = ((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))(xi || {}), Zt = ["name", "params"], Ln = ["name", "type", "location", "target", "extra", "timestamp", "userId"], Bn = ["platform", "os", "appVersion", "appId", "model", "brand", "uuid", "jsSdkVersion", "extra"];
141
141
  function Ye(t, e) {
142
142
  return e.map((i) => {
143
143
  if (i === "params" && t[i]) {
@@ -147,18 +147,18 @@ function Ye(t, e) {
147
147
  return t[i];
148
148
  });
149
149
  }
150
- function On(t) {
151
- let e = t.location ? Ye(t.location, Xt) : null, i = t.target ? Ye(t.target, Xt) : null;
152
- return Ye(An(gn({}, t), {
150
+ function Mn(t) {
151
+ let e = t.location ? Ye(t.location, Zt) : null, i = t.target ? Ye(t.target, Zt) : null;
152
+ return Ye(Sn(mn({}, t), {
153
153
  location: e,
154
154
  target: i
155
- }), Tn);
155
+ }), Ln);
156
156
  }
157
- function Dn(t) {
158
- let e = t.events.map((n) => On(n)), i = Ye(t.device, Cn);
157
+ function $n(t) {
158
+ let e = t.events.map((n) => Mn(n)), i = Ye(t.device, Bn);
159
159
  return [t.protocolVersion, e, i, t.project];
160
160
  }
161
- function Pn() {
161
+ function Fn() {
162
162
  if (typeof window == "undefined")
163
163
  return {
164
164
  getItem: () => null,
@@ -191,16 +191,16 @@ function Pn() {
191
191
  return console.warn("Failed to get original localStorage, fallback to default implementation", t), localStorage;
192
192
  }
193
193
  }
194
- Pn();
195
- var Ee = typeof window == "undefined", $e = () => !Ee && !!(navigator.userAgent || "").includes("JoliboxPlatformSDK");
196
- !Ee && (navigator.userAgent.includes("iPhone") || navigator.userAgent.includes("iPod") || navigator.userAgent.includes("iPad") || navigator.userAgent.includes("iPhone OS")), !Ee && navigator.userAgent.includes("Android"), !Ee && navigator.userAgent.includes("Mac"), !Ee && navigator.userAgent.includes("FB_IAB"), !Ee && !navigator.userAgent.includes("iPhone") && navigator.userAgent.includes("Android");
197
- var mt = class St {
194
+ Fn();
195
+ var ke = typeof window == "undefined", ot = () => !ke && !!(navigator.userAgent || "").includes("JoliboxPlatformSDK");
196
+ !ke && (navigator.userAgent.includes("iPhone") || navigator.userAgent.includes("iPod") || navigator.userAgent.includes("iPad") || navigator.userAgent.includes("iPhone OS")), !ke && navigator.userAgent.includes("Android"), !ke && navigator.userAgent.includes("Mac"), !ke && navigator.userAgent.includes("FB_IAB"), !ke && !navigator.userAgent.includes("iPhone") && navigator.userAgent.includes("Android");
197
+ var kt = class It {
198
198
  constructor(e) {
199
- this.element = e, this.next = St.Undefined, this.prev = St.Undefined;
199
+ this.element = e, this.next = It.Undefined, this.prev = It.Undefined;
200
200
  }
201
201
  };
202
- mt.Undefined = new mt(void 0);
203
- var D = mt, Nn = class {
202
+ kt.Undefined = new kt(void 0);
203
+ var D = kt, Un = class {
204
204
  constructor() {
205
205
  this._first = D.Undefined, this._last = D.Undefined, this._size = 0;
206
206
  }
@@ -266,17 +266,17 @@ var D = mt, Nn = class {
266
266
  for (; t !== D.Undefined; )
267
267
  yield t.element, t = t.next;
268
268
  }
269
- }, Ln = 0, Ne = class {
269
+ }, jn = 0, Le = class {
270
270
  constructor(e) {
271
- this.value = e, this.id = Ln++;
271
+ this.value = e, this.id = jn++;
272
272
  }
273
- }, Fe = class {
273
+ }, Ue = class {
274
274
  constructor(e) {
275
275
  this.options = e, this._size = 0;
276
276
  }
277
277
  dispose(e) {
278
278
  var i, n;
279
- this._disposed || (this._disposed = !0, this._listeners && (e ? (this._listeners instanceof Ne && (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));
279
+ this._disposed || (this._disposed = !0, this._listeners && (e ? (this._listeners instanceof Le && (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));
280
280
  }
281
281
  get event() {
282
282
  return this._event != null || (this._event = (e, i) => {
@@ -286,15 +286,15 @@ var D = mt, Nn = class {
286
286
  console.info("[Jolibox SDK] Emitter is _disposed");
287
287
  };
288
288
  i && (e = e.bind(i));
289
- let l = new Ne(e);
290
- return this._listeners ? this._listeners instanceof Ne ? this._listeners = [this._listeners, l] : this._listeners.push(l) : ((r = (n = this.options) == null ? void 0 : n.onWillAddFirstListener) == null || r.call(n, this), this._listeners = l, (s = (o = this.options) == null ? void 0 : o.onDidFirstListener) == null || s.call(o, this)), (d = (a = this.options) == null ? void 0 : a.onDidAddListener) == null || d.call(a, this), this._size++, () => {
291
- var u, c, h, f;
289
+ let u = new Le(e);
290
+ return this._listeners ? this._listeners instanceof Le ? this._listeners = [this._listeners, u] : this._listeners.push(u) : ((r = (n = this.options) == null ? void 0 : n.onWillAddFirstListener) == null || r.call(n, this), this._listeners = u, (s = (o = this.options) == null ? void 0 : o.onDidFirstListener) == null || s.call(o, this)), (d = (a = this.options) == null ? void 0 : a.onDidAddListener) == null || d.call(a, this), this._size++, () => {
291
+ var l, c, h, f;
292
292
  if (!this._disposed) {
293
- if (this._listeners instanceof Ne)
294
- this._listeners.id === l.id && (this._listeners = void 0, this._size = 0, (c = (u = this.options) == null ? void 0 : u.onDidRemoveLastListener) == null || c.call(u));
293
+ if (this._listeners instanceof Le)
294
+ this._listeners.id === u.id && (this._listeners = void 0, this._size = 0, (c = (l = this.options) == null ? void 0 : l.onDidRemoveLastListener) == null || c.call(l));
295
295
  else if (this._listeners) {
296
- let g = this._listeners.indexOf(l);
297
- g >= 0 && (this._listeners.splice(g, 1), this._size--, this._size === 0 && ((f = (h = this.options) == null ? void 0 : h.onDidRemoveLastListener) == null || f.call(h)));
296
+ let y = this._listeners.indexOf(u);
297
+ y >= 0 && (this._listeners.splice(y, 1), this._size--, this._size === 0 && ((f = (h = this.options) == null ? void 0 : h.onDidRemoveLastListener) == null || f.call(h)));
298
298
  }
299
299
  }
300
300
  };
@@ -316,19 +316,19 @@ var D = mt, Nn = class {
316
316
  }
317
317
  }
318
318
  fire(e) {
319
- this._listeners && (this._listeners instanceof Ne ? this._deliver(this._listeners, e) : this._listeners.forEach((i) => this._deliver(i, e)));
319
+ this._listeners && (this._listeners instanceof Le ? this._deliver(this._listeners, e) : this._listeners.forEach((i) => this._deliver(i, e)));
320
320
  }
321
321
  hasListeners() {
322
322
  return this._size > 0;
323
323
  }
324
- }, Bn = class {
324
+ }, Vn = class {
325
325
  constructor() {
326
326
  this.listeners = /* @__PURE__ */ new Map(), this.listerHandlerMap = /* @__PURE__ */ new WeakMap(), this.cachedEventQueue = /* @__PURE__ */ new Map();
327
327
  }
328
328
  on(t, e) {
329
329
  let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
330
330
  var n;
331
- let r = (n = this.listeners.get(t)) != null ? n : new Fe(), o = (d) => e(...d.args), s = r.event(o);
331
+ let r = (n = this.listeners.get(t)) != null ? n : new Ue(), o = (d) => e(...d.args), s = r.event(o);
332
332
  this.listerHandlerMap.set(e, {
333
333
  handler: o,
334
334
  dispose: s
@@ -349,7 +349,7 @@ var D = mt, Nn = class {
349
349
  let e = this.listeners.get(t), i = this.cachedEventQueue.get(t);
350
350
  for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
351
351
  r[o - 1] = arguments[o];
352
- i || (i = new Nn(), this.cachedEventQueue.set(t, i)), i.push({
352
+ i || (i = new Un(), this.cachedEventQueue.set(t, i)), i.push({
353
353
  args: r
354
354
  }), e && e.fire({
355
355
  event: t,
@@ -363,20 +363,20 @@ var D = mt, Nn = class {
363
363
  };
364
364
  this.on(t, n, !1);
365
365
  }
366
- }, Et = {};
367
- wn(Et, {
368
- None: () => Mn,
369
- filter: () => $n,
370
- once: () => Si,
371
- toPromise: () => Un
366
+ }, xt = {};
367
+ En(xt, {
368
+ None: () => Gn,
369
+ filter: () => Kn,
370
+ once: () => Ri,
371
+ toPromise: () => qn
372
372
  });
373
- var Mn = () => (console.log("[Jolibox SDK] None Event"), () => {
373
+ var Gn = () => (console.log("[Jolibox SDK] None Event"), () => {
374
374
  console.log("[Jolibox SDK] None Event dispose");
375
375
  });
376
- function Un(t) {
377
- return new Promise((e) => Si(t)(e));
376
+ function qn(t) {
377
+ return new Promise((e) => Ri(t)(e));
378
378
  }
379
- function Si(t) {
379
+ function Ri(t) {
380
380
  return function(e) {
381
381
  let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, n = !1;
382
382
  return t((r) => {
@@ -385,52 +385,52 @@ function Si(t) {
385
385
  }, null);
386
386
  };
387
387
  }
388
- function $n(t, e) {
388
+ function Kn(t, e) {
389
389
  return ((i) => {
390
390
  let n = {
391
391
  onWillAddFirstListener() {
392
392
  i(r.fire, r);
393
393
  }
394
- }, r = new Fe(n);
394
+ }, r = new Ue(n);
395
395
  return r.event;
396
396
  })(function(i) {
397
397
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
398
398
  return t((r) => e(r) && i.call(n, r), null);
399
399
  });
400
400
  }
401
- var vt = Symbol.for("Jolibox.hostEmitter"), Fn = () => {
402
- let t = new Bn();
403
- return globalThis[vt] || (globalThis[vt] = {
401
+ var gt = Symbol.for("Jolibox.hostEmitter"), zn = () => {
402
+ let t = new Vn();
403
+ return globalThis[gt] || (globalThis[gt] = {
404
404
  on: t.on.bind(t),
405
405
  off: t.off.bind(t),
406
406
  emit: t.emit.bind(t),
407
407
  once: t.once.bind(t)
408
- }), globalThis[vt];
408
+ }), globalThis[gt];
409
409
  };
410
- Fn();
411
- function jn(t, e) {
410
+ zn();
411
+ function Wn(t, e) {
412
412
  let i = Math.min(t.length, e.length);
413
413
  for (let n = 0; n < i; n++)
414
- Vn(t[n], e[n]);
414
+ Hn(t[n], e[n]);
415
415
  }
416
- function Vn(t, e) {
417
- if (_n(e)) {
416
+ function Hn(t, e) {
417
+ if (xn(e)) {
418
418
  if (typeof t !== e)
419
419
  throw new Error(`argument does not match constraint: typeof ${e}`);
420
- } else if (En(e)) {
420
+ } else if (Cn(e)) {
421
421
  try {
422
422
  if (t instanceof e)
423
423
  return;
424
424
  } catch (i) {
425
425
  }
426
- if (!Sn(t) && t.constructor === e || e.length === 1 && e.call(void 0, t) === !0)
426
+ if (!Tn(t) && t.constructor === e || e.length === 1 && e.call(void 0, t) === !0)
427
427
  return;
428
428
  throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true");
429
429
  }
430
430
  }
431
- var kt = class {
431
+ var Rt = class {
432
432
  constructor() {
433
- this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new Fe(), this.onDidRegisterCommand = this._onDidRegisterCommand.event, console.log("[Jolibox SDK] command registry");
433
+ this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new Ue(), this.onDidRegisterCommand = this._onDidRegisterCommand.event, console.log("[Jolibox SDK] command registry");
434
434
  }
435
435
  registerCommand(t) {
436
436
  if (!t)
@@ -443,7 +443,7 @@ var kt = class {
443
443
  t.handler = function() {
444
444
  for (var r = arguments.length, o = new Array(r), s = 0; s < r; s++)
445
445
  o[s] = arguments[s];
446
- return jn(o, i), n(...o);
446
+ return Wn(o, i), n(...o);
447
447
  };
448
448
  }
449
449
  let {
@@ -463,19 +463,19 @@ var kt = class {
463
463
  return t;
464
464
  }
465
465
  };
466
- kt = wi([bi], kt);
467
- var Yt = class {
466
+ Rt = Si([Ei], Rt);
467
+ var ei = class {
468
468
  constructor() {
469
- this._onWillExecuteCommand = new Fe(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new Fe(), this.onDidExecuteCommand = this._onDidExecuteCommand.event, this.registry = new kt(), this._starActivation = null;
469
+ this._onWillExecuteCommand = new Ue(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new Ue(), this.onDidExecuteCommand = this._onDidExecuteCommand.event, this.registry = new Rt(), this._starActivation = null;
470
470
  }
471
471
  _activateStar() {
472
- return this._starActivation || (this._starActivation = pn(3e4)), this._starActivation;
472
+ return this._starActivation || (this._starActivation = In(3e4)), this._starActivation;
473
473
  }
474
474
  executeCommand(e) {
475
475
  for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), r = 1; r < i; r++)
476
476
  n[r - 1] = arguments[r];
477
- return bn(this, null, function* () {
478
- return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(), Et.toPromise(Et.filter(this.registry.onDidRegisterCommand, (o) => o === e))])]), this._tryExecuteCommand(e, n));
477
+ return kn(this, null, function* () {
478
+ return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(), xt.toPromise(xt.filter(this.registry.onDidRegisterCommand, (o) => o === e))])]), this._tryExecuteCommand(e, n));
479
479
  });
480
480
  }
481
481
  executeCommandThowErr(e) {
@@ -521,15 +521,15 @@ var Yt = class {
521
521
  }
522
522
  }
523
523
  };
524
- Yt = wi([bi], Yt);
524
+ ei = Si([Ei], ei);
525
525
  function H(t, e, i) {
526
- return (e = Gn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
526
+ return (e = Jn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
527
527
  }
528
- function Gn(t) {
529
- var e = qn(t, "string");
528
+ function Jn(t) {
529
+ var e = Xn(t, "string");
530
530
  return typeof e == "symbol" ? e : e + "";
531
531
  }
532
- function qn(t, e) {
532
+ function Xn(t, e) {
533
533
  if (typeof t != "object" || !t)
534
534
  return t;
535
535
  var i = t[Symbol.toPrimitive];
@@ -541,7 +541,7 @@ function qn(t, e) {
541
541
  }
542
542
  return (e === "string" ? String : Number)(t);
543
543
  }
544
- const pe = (t) => t ? function() {
544
+ const _e = (t) => t ? function() {
545
545
  try {
546
546
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
547
547
  i[n] = arguments[n];
@@ -552,7 +552,7 @@ const pe = (t) => t ? function() {
552
552
  } : () => {
553
553
  console.log("wrapUserFunction: fn is undefined");
554
554
  };
555
- class Kn {
555
+ class Yn {
556
556
  constructor(e) {
557
557
  H(this, "context", void 0), H(this, "continueCallback", void 0), H(this, "adIsShowingCallback", void 0), H(this, "isBeforeAdCalled", !1), H(this, "isBeforeRewardCalled", !1), H(this, "isAdDismissedCalled", !1), H(this, "isAdViewedCalled", !1), H(this, "isAfterAdCalled", !1), H(this, "currentProvider", void 0), H(this, "currentClientParams", void 0), H(this, "adsHasResponse", !1), H(this, "videoChecker", window.document.createElement("video")), H(this, "contextInfo", void 0), H(this, "wrapShowAdFn", (i) => () => {
558
558
  var o, s, a;
@@ -562,15 +562,15 @@ class Kn {
562
562
  n = !1;
563
563
  }), n = !this.videoChecker.paused, this.videoChecker.pause(), this.context.track("CallShowAdFn", Object.assign({}, {
564
564
  userEvent: n
565
- }, this.paramsToTrack)), this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_REWARD", ht({
565
+ }, this.paramsToTrack)), this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_REWARD", vt({
566
566
  userEvent: n
567
- }, this.paramsToTrack)), $e() && this.context.track("mmp_ad_impression", {
567
+ }, this.paramsToTrack)), ot() && this.context.track("mmp_ad_impression", {
568
568
  ad_network: (s = (o = this.currentProvider) == null ? void 0 : o.name) != null ? s : "",
569
569
  ad_format: "rewarded",
570
570
  module: "game",
571
571
  game_id: this.contextInfo.objectId
572
572
  }), (a = this.adIsShowingCallback) == null || a.call(this, !0);
573
- const r = pe(i);
573
+ const r = _e(i);
574
574
  r == null || r();
575
575
  }), this.context = e, this.contextInfo = e.getContextInfo();
576
576
  }
@@ -595,8 +595,8 @@ class Kn {
595
595
  var i, n, r, o;
596
596
  if (this.adsHasResponse = !0, this.context.track("CallBeforeAd", this.paramsToTrack), this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_AD", this.paramsToTrack), !this.isBeforeAdCalled) {
597
597
  this.isBeforeAdCalled = !0;
598
- const s = pe(e);
599
- s == null || s(), ((i = this.currentClientParams) == null ? void 0 : i.type) !== "reward" && ((n = this.adIsShowingCallback) == null || n.call(this, !0), $e() && this.context.track("mmp_ad_impression", {
598
+ const s = _e(e);
599
+ s == null || s(), ((i = this.currentClientParams) == null ? void 0 : i.type) !== "reward" && ((n = this.adIsShowingCallback) == null || n.call(this, !0), ot() && this.context.track("mmp_ad_impression", {
600
600
  ad_network: (o = (r = this.currentProvider) == null ? void 0 : r.name) != null ? o : "",
601
601
  ad_format: "interstitial",
602
602
  module: "game",
@@ -614,7 +614,7 @@ class Kn {
614
614
  return () => {
615
615
  if (this.adsHasResponse = !0, !this.isAdDismissedCalled) {
616
616
  this.isAdDismissedCalled = !0;
617
- const i = pe(e);
617
+ const i = _e(e);
618
618
  i == null || i();
619
619
  }
620
620
  };
@@ -623,7 +623,7 @@ class Kn {
623
623
  return () => {
624
624
  if (this.adsHasResponse = !0, !this.isAdViewedCalled) {
625
625
  this.isAdViewedCalled = !0;
626
- const i = pe(e);
626
+ const i = _e(e);
627
627
  i == null || i();
628
628
  }
629
629
  };
@@ -632,14 +632,14 @@ class Kn {
632
632
  return () => {
633
633
  if (this.adsHasResponse = !0, this.context.track("CallAfterAd", this.paramsToTrack), this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AFTER_AD", this.paramsToTrack), !this.isAfterAdCalled) {
634
634
  this.isAfterAdCalled = !0;
635
- const i = pe(e);
635
+ const i = _e(e);
636
636
  i == null || i();
637
637
  }
638
638
  };
639
639
  }
640
640
  wrapAdBreakDone(e) {
641
641
  return (i) => {
642
- var n, r, o, s, a, d, l, u, c;
642
+ var n, r, o, s, a, d, u, l, c;
643
643
  switch (this.adsHasResponse = !0, this.context.track("CallAdBreakDone", {
644
644
  provider: (r = (n = this.currentProvider) == null ? void 0 : n.name) != null ? r : null,
645
645
  breakType: i.breakType,
@@ -657,8 +657,8 @@ class Kn {
657
657
  case "ignored":
658
658
  case "dismissed":
659
659
  case "error": {
660
- const h = pe(e);
661
- h == null || h(i), (l = this.adIsShowingCallback) == null || l.call(this, !1), (u = this.continueCallback) == null || u.call(this, [!1, i]);
660
+ const h = _e(e);
661
+ h == null || h(i), (u = this.adIsShowingCallback) == null || u.call(this, !1), (l = this.continueCallback) == null || l.call(this, [!1, i]);
662
662
  break;
663
663
  }
664
664
  default: {
@@ -711,13 +711,13 @@ class Kn {
711
711
  }
712
712
  }
713
713
  window.setTimeout(() => {
714
- var a, d, l, u, c, h, f;
714
+ var a, d, u, l, c, h, f;
715
715
  this.adsHasResponse || (this.context.track("CallAdBreakTimeout", {
716
716
  type: i.type,
717
717
  provider: (d = (a = this.currentProvider) == null ? void 0 : a.name) != null ? d : null
718
718
  }), this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK_TIMEOUT", {
719
719
  type: i.type,
720
- provider: (u = (l = this.currentProvider) == null ? void 0 : l.name) != null ? u : null
720
+ provider: (l = (u = this.currentProvider) == null ? void 0 : u.name) != null ? l : null
721
721
  }), (h = this.continueCallback) == null || h.call(this, [!0, {
722
722
  breakType: i.type,
723
723
  breakName: i.type === "preroll" ? "" : (c = i.name) != null ? c : "",
@@ -729,13 +729,13 @@ class Kn {
729
729
  }
730
730
  }
731
731
  function We(t, e, i) {
732
- return (e = zn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
732
+ return (e = Qn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
733
733
  }
734
- function zn(t) {
735
- var e = Wn(t, "string");
734
+ function Qn(t) {
735
+ var e = Zn(t, "string");
736
736
  return typeof e == "symbol" ? e : e + "";
737
737
  }
738
- function Wn(t, e) {
738
+ function Zn(t, e) {
739
739
  if (typeof t != "object" || !t)
740
740
  return t;
741
741
  var i = t[Symbol.toPrimitive];
@@ -747,7 +747,7 @@ function Wn(t, e) {
747
747
  }
748
748
  return (e === "string" ? String : Number)(t);
749
749
  }
750
- class Hn {
750
+ class er {
751
751
  constructor(e) {
752
752
  We(this, "context", void 0), We(this, "adBreakIsShowing", !1), We(this, "reportPageJumpOut", () => {
753
753
  this.context.track("AdBreakJumpOut", {
@@ -765,13 +765,13 @@ class Hn {
765
765
  }
766
766
  }
767
767
  function He(t, e, i) {
768
- return (e = Jn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
768
+ return (e = tr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
769
769
  }
770
- function Jn(t) {
771
- var e = Xn(t, "string");
770
+ function tr(t) {
771
+ var e = ir(t, "string");
772
772
  return typeof e == "symbol" ? e : e + "";
773
773
  }
774
- function Xn(t, e) {
774
+ function ir(t, e) {
775
775
  if (typeof t != "object" || !t)
776
776
  return t;
777
777
  var i = t[Symbol.toPrimitive];
@@ -783,7 +783,7 @@ function Xn(t, e) {
783
783
  }
784
784
  return (e === "string" ? String : Number)(t);
785
785
  }
786
- class Yn {
786
+ class nr {
787
787
  constructor(e) {
788
788
  He(this, "configs", null), He(this, "firstRun", !0), He(this, "context", void 0), He(this, "contextInfo", void 0), this.context = e, this.contextInfo = this.context.getContextInfo(), this.init();
789
789
  }
@@ -810,13 +810,13 @@ class Yn {
810
810
  }
811
811
  }
812
812
  function ae(t, e, i) {
813
- return (e = Qn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
813
+ return (e = rr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
814
814
  }
815
- function Qn(t) {
816
- var e = Zn(t, "string");
815
+ function rr(t) {
816
+ var e = or(t, "string");
817
817
  return typeof e == "symbol" ? e : e + "";
818
818
  }
819
- function Zn(t, e) {
819
+ function or(t, e) {
820
820
  if (typeof t != "object" || !t)
821
821
  return t;
822
822
  var i = t[Symbol.toPrimitive];
@@ -828,7 +828,7 @@ function Zn(t, e) {
828
828
  }
829
829
  return (e === "string" ? String : Number)(t);
830
830
  }
831
- class er {
831
+ class sr {
832
832
  /**
833
833
  * Internal constructor, should not be called directly
834
834
  */
@@ -839,7 +839,7 @@ class er {
839
839
  }), ae(this, "adConfig", (n) => {
840
840
  const s = n, {
841
841
  onReady: r
842
- } = s, o = qt(s, [
842
+ } = s, o = Wt(s, [
843
843
  "onReady"
844
844
  ]);
845
845
  this.context.track("CallAdConfig", o), this.configured ? console.warn("Ad config already set, skipping") : (this.configured = !0, this.push(n));
@@ -850,10 +850,10 @@ class er {
850
850
  }
851
851
  this.push(n);
852
852
  }), ae(this, "adUnit", async (n) => {
853
- var g, v, A, y;
853
+ var y, v, w, g;
854
854
  if (this.context.track("CallAdUnit", {
855
- adFormat: (v = (g = n.adFormat) == null ? void 0 : g.toString()) != null ? v : null,
856
- fullWidthResponsive: (A = n.fullWidthResponsive) != null ? A : null
855
+ adFormat: (v = (y = n.adFormat) == null ? void 0 : y.toString()) != null ? v : null,
856
+ fullWidthResponsive: (w = n.fullWidthResponsive) != null ? w : null
857
857
  }), document.querySelector("#jolibox-ads")) {
858
858
  console.warn("Ad unit already set, skipping");
859
859
  return;
@@ -865,22 +865,22 @@ class er {
865
865
  fullWidthResponsive: a,
866
866
  style: d
867
867
  } = n;
868
- let l;
868
+ let u;
869
869
  if (!r)
870
870
  throw new Error("targeting element is required");
871
- if (typeof r == "string" ? l = document.querySelector(r) : l = r, !l)
871
+ if (typeof r == "string" ? u = document.querySelector(r) : u = r, !u)
872
872
  throw new Error("targeting element not found");
873
- let u = o;
874
- if (u || (u = this.initParams.unitId), !u)
873
+ let l = o;
874
+ if (l || (l = this.initParams.unitId), !l)
875
875
  throw new Error("slot is required");
876
876
  const c = typeof s == "object" && Array.isArray(s) ? s.join(", ") : s, h = document.createElement("ins");
877
- if (h.className = "adsbygoogle", h.id = "jolibox-ads", h.style.display = "block", h.setAttribute("data-ad-client", this.initParams.clientId), h.setAttribute("data-ad-slot", u), c && h.setAttribute("data-ad-format", c), a && h.setAttribute("data-full-width-responsive", a), d && h.setAttribute("style", d), (y = this.contextInfo.testAdsMode) != null ? y : !1) {
878
- const w = document.createElement("div");
879
- w.style.position = "absolute", w.style.top = "0", w.style.left = "0", w.style.width = "100%", w.style.height = "100%", w.style.display = "flex", w.style.justifyContent = "center", w.style.alignItems = "center", w.style.backgroundColor = "rgba(0, 0, 0, 0.5)", w.style.color = "white", w.innerHTML = "Test Ad", h.style.position = "relative", l.appendChild(h), h.appendChild(w);
877
+ if (h.className = "adsbygoogle", h.id = "jolibox-ads", h.style.display = "block", h.setAttribute("data-ad-client", this.initParams.clientId), h.setAttribute("data-ad-slot", l), c && h.setAttribute("data-ad-format", c), a && h.setAttribute("data-full-width-responsive", a), d && h.setAttribute("style", d), (g = this.contextInfo.testAdsMode) != null ? g : !1) {
878
+ const b = document.createElement("div");
879
+ b.style.position = "absolute", b.style.top = "0", b.style.left = "0", b.style.width = "100%", b.style.height = "100%", b.style.display = "flex", b.style.justifyContent = "center", b.style.alignItems = "center", b.style.backgroundColor = "rgba(0, 0, 0, 0.5)", b.style.color = "white", b.innerHTML = "Test Ad", h.style.position = "relative", u.appendChild(h), h.appendChild(b);
880
880
  } else
881
- l.appendChild(h), new MutationObserver((S) => {
882
- S.forEach((b) => {
883
- if (b.type === "attributes" && b.attributeName === "data-ad-status") {
881
+ u.appendChild(h), new MutationObserver((S) => {
882
+ S.forEach((A) => {
883
+ if (A.type === "attributes" && A.attributeName === "data-ad-status") {
884
884
  const m = h.getAttribute("data-ad-status");
885
885
  this.context.track("AdSenseUnitStatusChanged", {
886
886
  status: m != null ? m : "null"
@@ -906,18 +906,18 @@ class er {
906
906
  }
907
907
  }
908
908
  }
909
- function tr(t) {
909
+ function ar(t) {
910
910
  if (t.sheet)
911
911
  return t.sheet;
912
912
  for (var e = 0; e < document.styleSheets.length; e++)
913
913
  if (document.styleSheets[e].ownerNode === t)
914
914
  return document.styleSheets[e];
915
915
  }
916
- function ir(t) {
916
+ function dr(t) {
917
917
  var e = document.createElement("style");
918
918
  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;
919
919
  }
920
- var nr = /* @__PURE__ */ function() {
920
+ var lr = /* @__PURE__ */ function() {
921
921
  function t(i) {
922
922
  var n = this;
923
923
  this._insertTag = function(r) {
@@ -929,10 +929,10 @@ var nr = /* @__PURE__ */ function() {
929
929
  return e.hydrate = function(n) {
930
930
  n.forEach(this._insertTag);
931
931
  }, e.insert = function(n) {
932
- this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(ir(this));
932
+ this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(dr(this));
933
933
  var r = this.tags[this.tags.length - 1];
934
934
  if (this.isSpeedy) {
935
- var o = tr(r);
935
+ var o = ar(r);
936
936
  try {
937
937
  o.insertRule(n, o.cssRules.length);
938
938
  } catch (s) {
@@ -946,23 +946,23 @@ var nr = /* @__PURE__ */ function() {
946
946
  return (r = n.parentNode) == null ? void 0 : r.removeChild(n);
947
947
  }), this.tags = [], this.ctr = 0;
948
948
  }, t;
949
- }(), V = "-ms-", rt = "-moz-", x = "-webkit-", Ei = "comm", Pt = "rule", Nt = "decl", rr = "@import", ki = "@keyframes", or = "@layer", sr = Math.abs, dt = String.fromCharCode, ar = Object.assign;
950
- function dr(t, e) {
951
- return U(t, 0) ^ 45 ? (((e << 2 ^ U(t, 0)) << 2 ^ U(t, 1)) << 2 ^ U(t, 2)) << 2 ^ U(t, 3) : 0;
949
+ }(), V = "-ms-", st = "-moz-", x = "-webkit-", Ti = "comm", Bt = "rule", Mt = "decl", ur = "@import", Ci = "@keyframes", cr = "@layer", hr = Math.abs, ut = String.fromCharCode, fr = Object.assign;
950
+ function vr(t, e) {
951
+ return $(t, 0) ^ 45 ? (((e << 2 ^ $(t, 0)) << 2 ^ $(t, 1)) << 2 ^ $(t, 2)) << 2 ^ $(t, 3) : 0;
952
952
  }
953
- function Ii(t) {
953
+ function Oi(t) {
954
954
  return t.trim();
955
955
  }
956
- function lr(t, e) {
956
+ function yr(t, e) {
957
957
  return (t = e.exec(t)) ? t[0] : t;
958
958
  }
959
959
  function R(t, e, i) {
960
960
  return t.replace(e, i);
961
961
  }
962
- function It(t, e) {
962
+ function Tt(t, e) {
963
963
  return t.indexOf(e);
964
964
  }
965
- function U(t, e) {
965
+ function $(t, e) {
966
966
  return t.charCodeAt(e) | 0;
967
967
  }
968
968
  function je(t, e, i) {
@@ -971,39 +971,39 @@ function je(t, e, i) {
971
971
  function re(t) {
972
972
  return t.length;
973
973
  }
974
- function Lt(t) {
974
+ function $t(t) {
975
975
  return t.length;
976
976
  }
977
977
  function Je(t, e) {
978
978
  return e.push(t), t;
979
979
  }
980
- function ur(t, e) {
980
+ function gr(t, e) {
981
981
  return t.map(e).join("");
982
982
  }
983
- var lt = 1, Te = 1, xi = 0, X = 0, N = 0, Ce = "";
984
- function ut(t, e, i, n, r, o, s) {
985
- return { value: t, root: e, parent: i, type: n, props: r, children: o, line: lt, column: Te, length: s, return: "" };
983
+ var ct = 1, Ce = 1, Di = 0, X = 0, N = 0, Oe = "";
984
+ function ht(t, e, i, n, r, o, s) {
985
+ return { value: t, root: e, parent: i, type: n, props: r, children: o, line: ct, column: Ce, length: s, return: "" };
986
986
  }
987
- function Le(t, e) {
988
- return ar(ut("", null, null, "", null, null, 0), t, { length: -t.length }, e);
987
+ function Be(t, e) {
988
+ return fr(ht("", null, null, "", null, null, 0), t, { length: -t.length }, e);
989
989
  }
990
- function cr() {
990
+ function wr() {
991
991
  return N;
992
992
  }
993
- function hr() {
994
- return N = X > 0 ? U(Ce, --X) : 0, Te--, N === 10 && (Te = 1, lt--), N;
993
+ function br() {
994
+ return N = X > 0 ? $(Oe, --X) : 0, Ce--, N === 10 && (Ce = 1, ct--), N;
995
995
  }
996
996
  function Z() {
997
- return N = X < xi ? U(Ce, X++) : 0, Te++, N === 10 && (Te = 1, lt++), N;
997
+ return N = X < Di ? $(Oe, X++) : 0, Ce++, N === 10 && (Ce = 1, ct++), N;
998
998
  }
999
999
  function oe() {
1000
- return U(Ce, X);
1000
+ return $(Oe, X);
1001
1001
  }
1002
1002
  function Qe() {
1003
1003
  return X;
1004
1004
  }
1005
1005
  function Ge(t, e) {
1006
- return je(Ce, t, e);
1006
+ return je(Oe, t, e);
1007
1007
  }
1008
1008
  function Ve(t) {
1009
1009
  switch (t) {
@@ -1037,36 +1037,36 @@ function Ve(t) {
1037
1037
  }
1038
1038
  return 0;
1039
1039
  }
1040
- function Ri(t) {
1041
- return lt = Te = 1, xi = re(Ce = t), X = 0, [];
1040
+ function Pi(t) {
1041
+ return ct = Ce = 1, Di = re(Oe = t), X = 0, [];
1042
1042
  }
1043
- function Ti(t) {
1044
- return Ce = "", t;
1043
+ function Ni(t) {
1044
+ return Oe = "", t;
1045
1045
  }
1046
1046
  function Ze(t) {
1047
- return Ii(Ge(X - 1, xt(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
1047
+ return Oi(Ge(X - 1, Ct(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
1048
1048
  }
1049
- function fr(t) {
1049
+ function Ar(t) {
1050
1050
  for (; (N = oe()) && N < 33; )
1051
1051
  Z();
1052
1052
  return Ve(t) > 2 || Ve(N) > 3 ? "" : " ";
1053
1053
  }
1054
- function vr(t, e) {
1054
+ function pr(t, e) {
1055
1055
  for (; --e && Z() && !(N < 48 || N > 102 || N > 57 && N < 65 || N > 70 && N < 97); )
1056
1056
  ;
1057
1057
  return Ge(t, Qe() + (e < 6 && oe() == 32 && Z() == 32));
1058
1058
  }
1059
- function xt(t) {
1059
+ function Ct(t) {
1060
1060
  for (; Z(); )
1061
1061
  switch (N) {
1062
1062
  case t:
1063
1063
  return X;
1064
1064
  case 34:
1065
1065
  case 39:
1066
- t !== 34 && t !== 39 && xt(N);
1066
+ t !== 34 && t !== 39 && Ct(N);
1067
1067
  break;
1068
1068
  case 40:
1069
- t === 41 && xt(t);
1069
+ t === 41 && Ct(t);
1070
1070
  break;
1071
1071
  case 92:
1072
1072
  Z();
@@ -1074,172 +1074,172 @@ function xt(t) {
1074
1074
  }
1075
1075
  return X;
1076
1076
  }
1077
- function yr(t, e) {
1077
+ function _r(t, e) {
1078
1078
  for (; Z() && t + N !== 57; )
1079
1079
  if (t + N === 84 && oe() === 47)
1080
1080
  break;
1081
- return "/*" + Ge(e, X - 1) + "*" + dt(t === 47 ? t : Z());
1081
+ return "/*" + Ge(e, X - 1) + "*" + ut(t === 47 ? t : Z());
1082
1082
  }
1083
- function gr(t) {
1083
+ function mr(t) {
1084
1084
  for (; !Ve(oe()); )
1085
1085
  Z();
1086
1086
  return Ge(t, X);
1087
1087
  }
1088
- function Ar(t) {
1089
- return Ti(et("", null, null, null, [""], t = Ri(t), 0, [0], t));
1088
+ function Sr(t) {
1089
+ return Ni(et("", null, null, null, [""], t = Pi(t), 0, [0], t));
1090
1090
  }
1091
1091
  function et(t, e, i, n, r, o, s, a, d) {
1092
- for (var l = 0, u = 0, c = s, h = 0, f = 0, g = 0, v = 1, A = 1, y = 1, w = 0, S = "", b = r, m = o, E = n, p = S; A; )
1093
- switch (g = w, w = Z()) {
1092
+ for (var u = 0, l = 0, c = s, h = 0, f = 0, y = 0, v = 1, w = 1, g = 1, b = 0, S = "", A = r, m = o, E = n, p = S; w; )
1093
+ switch (y = b, b = Z()) {
1094
1094
  case 40:
1095
- if (g != 108 && U(p, c - 1) == 58) {
1096
- It(p += R(Ze(w), "&", "&\f"), "&\f") != -1 && (y = -1);
1095
+ if (y != 108 && $(p, c - 1) == 58) {
1096
+ Tt(p += R(Ze(b), "&", "&\f"), "&\f") != -1 && (g = -1);
1097
1097
  break;
1098
1098
  }
1099
1099
  case 34:
1100
1100
  case 39:
1101
1101
  case 91:
1102
- p += Ze(w);
1102
+ p += Ze(b);
1103
1103
  break;
1104
1104
  case 9:
1105
1105
  case 10:
1106
1106
  case 13:
1107
1107
  case 32:
1108
- p += fr(g);
1108
+ p += Ar(y);
1109
1109
  break;
1110
1110
  case 92:
1111
- p += vr(Qe() - 1, 7);
1111
+ p += pr(Qe() - 1, 7);
1112
1112
  continue;
1113
1113
  case 47:
1114
1114
  switch (oe()) {
1115
1115
  case 42:
1116
1116
  case 47:
1117
- Je(wr(yr(Z(), Qe()), e, i), d);
1117
+ Je(Er(_r(Z(), Qe()), e, i), d);
1118
1118
  break;
1119
1119
  default:
1120
1120
  p += "/";
1121
1121
  }
1122
1122
  break;
1123
1123
  case 123 * v:
1124
- a[l++] = re(p) * y;
1124
+ a[u++] = re(p) * g;
1125
1125
  case 125 * v:
1126
1126
  case 59:
1127
1127
  case 0:
1128
- switch (w) {
1128
+ switch (b) {
1129
1129
  case 0:
1130
1130
  case 125:
1131
- A = 0;
1132
- case 59 + u:
1133
- y == -1 && (p = R(p, /\f/g, "")), f > 0 && re(p) - c && Je(f > 32 ? Zt(p + ";", n, i, c - 1) : Zt(R(p, " ", "") + ";", n, i, c - 2), d);
1131
+ w = 0;
1132
+ case 59 + l:
1133
+ g == -1 && (p = R(p, /\f/g, "")), f > 0 && re(p) - c && Je(f > 32 ? ii(p + ";", n, i, c - 1) : ii(R(p, " ", "") + ";", n, i, c - 2), d);
1134
1134
  break;
1135
1135
  case 59:
1136
1136
  p += ";";
1137
1137
  default:
1138
- if (Je(E = Qt(p, e, i, l, u, r, a, S, b = [], m = [], c), o), w === 123)
1139
- if (u === 0)
1140
- et(p, e, E, E, b, o, c, a, m);
1138
+ if (Je(E = ti(p, e, i, u, l, r, a, S, A = [], m = [], c), o), b === 123)
1139
+ if (l === 0)
1140
+ et(p, e, E, E, A, o, c, a, m);
1141
1141
  else
1142
- switch (h === 99 && U(p, 3) === 110 ? 100 : h) {
1142
+ switch (h === 99 && $(p, 3) === 110 ? 100 : h) {
1143
1143
  case 100:
1144
1144
  case 108:
1145
1145
  case 109:
1146
1146
  case 115:
1147
- et(t, E, E, n && Je(Qt(t, E, E, 0, 0, r, a, S, r, b = [], c), m), r, m, c, a, n ? b : m);
1147
+ et(t, E, E, n && Je(ti(t, E, E, 0, 0, r, a, S, r, A = [], c), m), r, m, c, a, n ? A : m);
1148
1148
  break;
1149
1149
  default:
1150
1150
  et(p, E, E, E, [""], m, 0, a, m);
1151
1151
  }
1152
1152
  }
1153
- l = u = f = 0, v = y = 1, S = p = "", c = s;
1153
+ u = l = f = 0, v = g = 1, S = p = "", c = s;
1154
1154
  break;
1155
1155
  case 58:
1156
- c = 1 + re(p), f = g;
1156
+ c = 1 + re(p), f = y;
1157
1157
  default:
1158
1158
  if (v < 1) {
1159
- if (w == 123)
1159
+ if (b == 123)
1160
1160
  --v;
1161
- else if (w == 125 && v++ == 0 && hr() == 125)
1161
+ else if (b == 125 && v++ == 0 && br() == 125)
1162
1162
  continue;
1163
1163
  }
1164
- switch (p += dt(w), w * v) {
1164
+ switch (p += ut(b), b * v) {
1165
1165
  case 38:
1166
- y = u > 0 ? 1 : (p += "\f", -1);
1166
+ g = l > 0 ? 1 : (p += "\f", -1);
1167
1167
  break;
1168
1168
  case 44:
1169
- a[l++] = (re(p) - 1) * y, y = 1;
1169
+ a[u++] = (re(p) - 1) * g, g = 1;
1170
1170
  break;
1171
1171
  case 64:
1172
- oe() === 45 && (p += Ze(Z())), h = oe(), u = c = re(S = p += gr(Qe())), w++;
1172
+ oe() === 45 && (p += Ze(Z())), h = oe(), l = c = re(S = p += mr(Qe())), b++;
1173
1173
  break;
1174
1174
  case 45:
1175
- g === 45 && re(p) == 2 && (v = 0);
1175
+ y === 45 && re(p) == 2 && (v = 0);
1176
1176
  }
1177
1177
  }
1178
1178
  return o;
1179
1179
  }
1180
- function Qt(t, e, i, n, r, o, s, a, d, l, u) {
1181
- for (var c = r - 1, h = r === 0 ? o : [""], f = Lt(h), g = 0, v = 0, A = 0; g < n; ++g)
1182
- for (var y = 0, w = je(t, c + 1, c = sr(v = s[g])), S = t; y < f; ++y)
1183
- (S = Ii(v > 0 ? h[y] + " " + w : R(w, /&\f/g, h[y]))) && (d[A++] = S);
1184
- return ut(t, e, i, r === 0 ? Pt : a, d, l, u);
1180
+ function ti(t, e, i, n, r, o, s, a, d, u, l) {
1181
+ for (var c = r - 1, h = r === 0 ? o : [""], f = $t(h), y = 0, v = 0, w = 0; y < n; ++y)
1182
+ for (var g = 0, b = je(t, c + 1, c = hr(v = s[y])), S = t; g < f; ++g)
1183
+ (S = Oi(v > 0 ? h[g] + " " + b : R(b, /&\f/g, h[g]))) && (d[w++] = S);
1184
+ return ht(t, e, i, r === 0 ? Bt : a, d, u, l);
1185
1185
  }
1186
- function wr(t, e, i) {
1187
- return ut(t, e, i, Ei, dt(cr()), je(t, 2, -2), 0);
1186
+ function Er(t, e, i) {
1187
+ return ht(t, e, i, Ti, ut(wr()), je(t, 2, -2), 0);
1188
1188
  }
1189
- function Zt(t, e, i, n) {
1190
- return ut(t, e, i, Nt, je(t, 0, n), je(t, n + 1, -1), n);
1189
+ function ii(t, e, i, n) {
1190
+ return ht(t, e, i, Mt, je(t, 0, n), je(t, n + 1, -1), n);
1191
1191
  }
1192
- function Ie(t, e) {
1193
- for (var i = "", n = Lt(t), r = 0; r < n; r++)
1192
+ function xe(t, e) {
1193
+ for (var i = "", n = $t(t), r = 0; r < n; r++)
1194
1194
  i += e(t[r], r, t, e) || "";
1195
1195
  return i;
1196
1196
  }
1197
- function br(t, e, i, n) {
1197
+ function kr(t, e, i, n) {
1198
1198
  switch (t.type) {
1199
- case or:
1199
+ case cr:
1200
1200
  if (t.children.length)
1201
1201
  break;
1202
- case rr:
1203
- case Nt:
1202
+ case ur:
1203
+ case Mt:
1204
1204
  return t.return = t.return || t.value;
1205
- case Ei:
1205
+ case Ti:
1206
1206
  return "";
1207
- case ki:
1208
- return t.return = t.value + "{" + Ie(t.children, n) + "}";
1209
- case Pt:
1207
+ case Ci:
1208
+ return t.return = t.value + "{" + xe(t.children, n) + "}";
1209
+ case Bt:
1210
1210
  t.value = t.props.join(",");
1211
1211
  }
1212
- return re(i = Ie(t.children, n)) ? t.return = t.value + "{" + i + "}" : "";
1212
+ return re(i = xe(t.children, n)) ? t.return = t.value + "{" + i + "}" : "";
1213
1213
  }
1214
- function pr(t) {
1215
- var e = Lt(t);
1214
+ function Ir(t) {
1215
+ var e = $t(t);
1216
1216
  return function(i, n, r, o) {
1217
1217
  for (var s = "", a = 0; a < e; a++)
1218
1218
  s += t[a](i, n, r, o) || "";
1219
1219
  return s;
1220
1220
  };
1221
1221
  }
1222
- function _r(t) {
1222
+ function xr(t) {
1223
1223
  return function(e) {
1224
1224
  e.root || (e = e.return) && t(e);
1225
1225
  };
1226
1226
  }
1227
- function mr(t) {
1227
+ function Rr(t) {
1228
1228
  var e = /* @__PURE__ */ Object.create(null);
1229
1229
  return function(i) {
1230
1230
  return e[i] === void 0 && (e[i] = t(i)), e[i];
1231
1231
  };
1232
1232
  }
1233
- var Sr = function(e, i, n) {
1233
+ var Tr = function(e, i, n) {
1234
1234
  for (var r = 0, o = 0; r = o, o = oe(), r === 38 && o === 12 && (i[n] = 1), !Ve(o); )
1235
1235
  Z();
1236
1236
  return Ge(e, X);
1237
- }, Er = function(e, i) {
1237
+ }, Cr = function(e, i) {
1238
1238
  var n = -1, r = 44;
1239
1239
  do
1240
1240
  switch (Ve(r)) {
1241
1241
  case 0:
1242
- r === 38 && oe() === 12 && (i[n] = 1), e[n] += Sr(X - 1, i, n);
1242
+ r === 38 && oe() === 12 && (i[n] = 1), e[n] += Tr(X - 1, i, n);
1243
1243
  break;
1244
1244
  case 2:
1245
1245
  e[n] += Ze(r);
@@ -1250,27 +1250,27 @@ var Sr = function(e, i, n) {
1250
1250
  break;
1251
1251
  }
1252
1252
  default:
1253
- e[n] += dt(r);
1253
+ e[n] += ut(r);
1254
1254
  }
1255
1255
  while (r = Z());
1256
1256
  return e;
1257
- }, kr = function(e, i) {
1258
- return Ti(Er(Ri(e), i));
1259
- }, ei = /* @__PURE__ */ new WeakMap(), Ir = function(e) {
1257
+ }, Or = function(e, i) {
1258
+ return Ni(Cr(Pi(e), i));
1259
+ }, ni = /* @__PURE__ */ new WeakMap(), Dr = function(e) {
1260
1260
  if (!(e.type !== "rule" || !e.parent || // positive .length indicates that this rule contains pseudo
1261
1261
  // negative .length indicates that this rule has been already prefixed
1262
1262
  e.length < 1)) {
1263
1263
  for (var i = e.value, n = e.parent, r = e.column === n.column && e.line === n.line; n.type !== "rule"; )
1264
1264
  if (n = n.parent, !n)
1265
1265
  return;
1266
- if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !ei.get(n)) && !r) {
1267
- ei.set(e, !0);
1268
- for (var o = [], s = kr(i, o), a = n.props, d = 0, l = 0; d < s.length; d++)
1269
- for (var u = 0; u < a.length; u++, l++)
1270
- e.props[l] = o[d] ? s[d].replace(/&\f/g, a[u]) : a[u] + " " + s[d];
1266
+ if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !ni.get(n)) && !r) {
1267
+ ni.set(e, !0);
1268
+ for (var o = [], s = Or(i, o), a = n.props, d = 0, u = 0; d < s.length; d++)
1269
+ for (var l = 0; l < a.length; l++, u++)
1270
+ e.props[u] = o[d] ? s[d].replace(/&\f/g, a[l]) : a[l] + " " + s[d];
1271
1271
  }
1272
1272
  }
1273
- }, xr = function(e) {
1273
+ }, Pr = function(e) {
1274
1274
  if (e.type === "decl") {
1275
1275
  var i = e.value;
1276
1276
  // charcode for l
@@ -1278,8 +1278,8 @@ var Sr = function(e, i, n) {
1278
1278
  i.charCodeAt(2) === 98 && (e.return = "", e.value = "");
1279
1279
  }
1280
1280
  };
1281
- function Ci(t, e) {
1282
- switch (dr(t, e)) {
1281
+ function Li(t, e) {
1282
+ switch (vr(t, e)) {
1283
1283
  case 5103:
1284
1284
  return x + "print-" + t + t;
1285
1285
  case 5737:
@@ -1313,7 +1313,7 @@ function Ci(t, e) {
1313
1313
  case 4810:
1314
1314
  case 6968:
1315
1315
  case 2756:
1316
- return x + t + rt + t + V + t + t;
1316
+ return x + t + st + t + V + t + t;
1317
1317
  case 6828:
1318
1318
  case 4268:
1319
1319
  return x + t + V + t + t;
@@ -1358,29 +1358,29 @@ function Ci(t, e) {
1358
1358
  case 5021:
1359
1359
  case 4765:
1360
1360
  if (re(t) - 1 - e > 6)
1361
- switch (U(t, e + 1)) {
1361
+ switch ($(t, e + 1)) {
1362
1362
  case 109:
1363
- if (U(t, e + 4) !== 45)
1363
+ if ($(t, e + 4) !== 45)
1364
1364
  break;
1365
1365
  case 102:
1366
- return R(t, /(.+:)(.+)-([^]+)/, "$1" + x + "$2-$3$1" + rt + (U(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
1366
+ return R(t, /(.+:)(.+)-([^]+)/, "$1" + x + "$2-$3$1" + st + ($(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
1367
1367
  case 115:
1368
- return ~It(t, "stretch") ? Ci(R(t, "stretch", "fill-available"), e) + t : t;
1368
+ return ~Tt(t, "stretch") ? Li(R(t, "stretch", "fill-available"), e) + t : t;
1369
1369
  }
1370
1370
  break;
1371
1371
  case 4949:
1372
- if (U(t, e + 1) !== 115)
1372
+ if ($(t, e + 1) !== 115)
1373
1373
  break;
1374
1374
  case 6444:
1375
- switch (U(t, re(t) - 3 - (~It(t, "!important") && 10))) {
1375
+ switch ($(t, re(t) - 3 - (~Tt(t, "!important") && 10))) {
1376
1376
  case 107:
1377
1377
  return R(t, ":", ":" + x) + t;
1378
1378
  case 101:
1379
- return R(t, /(.+:)([^;!]+)(;|!.+)?/, "$1" + x + (U(t, 14) === 45 ? "inline-" : "") + "box$3$1" + x + "$2$3$1" + V + "$2box$3") + t;
1379
+ return R(t, /(.+:)([^;!]+)(;|!.+)?/, "$1" + x + ($(t, 14) === 45 ? "inline-" : "") + "box$3$1" + x + "$2$3$1" + V + "$2box$3") + t;
1380
1380
  }
1381
1381
  break;
1382
1382
  case 5936:
1383
- switch (U(t, e + 11)) {
1383
+ switch ($(t, e + 11)) {
1384
1384
  case 114:
1385
1385
  return x + t + V + R(t, /[svh]\w+-[tblr]{2}/, "tb") + t;
1386
1386
  case 108:
@@ -1392,71 +1392,71 @@ function Ci(t, e) {
1392
1392
  }
1393
1393
  return t;
1394
1394
  }
1395
- var Rr = function(e, i, n, r) {
1395
+ var Nr = function(e, i, n, r) {
1396
1396
  if (e.length > -1 && !e.return)
1397
1397
  switch (e.type) {
1398
- case Nt:
1399
- e.return = Ci(e.value, e.length);
1398
+ case Mt:
1399
+ e.return = Li(e.value, e.length);
1400
1400
  break;
1401
- case ki:
1402
- return Ie([Le(e, {
1401
+ case Ci:
1402
+ return xe([Be(e, {
1403
1403
  value: R(e.value, "@", "@" + x)
1404
1404
  })], r);
1405
- case Pt:
1405
+ case Bt:
1406
1406
  if (e.length)
1407
- return ur(e.props, function(o) {
1408
- switch (lr(o, /(::plac\w+|:read-\w+)/)) {
1407
+ return gr(e.props, function(o) {
1408
+ switch (yr(o, /(::plac\w+|:read-\w+)/)) {
1409
1409
  case ":read-only":
1410
1410
  case ":read-write":
1411
- return Ie([Le(e, {
1412
- props: [R(o, /:(read-\w+)/, ":" + rt + "$1")]
1411
+ return xe([Be(e, {
1412
+ props: [R(o, /:(read-\w+)/, ":" + st + "$1")]
1413
1413
  })], r);
1414
1414
  case "::placeholder":
1415
- return Ie([Le(e, {
1415
+ return xe([Be(e, {
1416
1416
  props: [R(o, /:(plac\w+)/, ":" + x + "input-$1")]
1417
- }), Le(e, {
1418
- props: [R(o, /:(plac\w+)/, ":" + rt + "$1")]
1419
- }), Le(e, {
1417
+ }), Be(e, {
1418
+ props: [R(o, /:(plac\w+)/, ":" + st + "$1")]
1419
+ }), Be(e, {
1420
1420
  props: [R(o, /:(plac\w+)/, V + "input-$1")]
1421
1421
  })], r);
1422
1422
  }
1423
1423
  return "";
1424
1424
  });
1425
1425
  }
1426
- }, Tr = [Rr], Cr = function(e) {
1426
+ }, Lr = [Nr], Br = function(e) {
1427
1427
  var i = e.key;
1428
1428
  if (i === "css") {
1429
1429
  var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
1430
1430
  Array.prototype.forEach.call(n, function(v) {
1431
- var A = v.getAttribute("data-emotion");
1432
- A.indexOf(" ") !== -1 && (document.head.appendChild(v), v.setAttribute("data-s", ""));
1431
+ var w = v.getAttribute("data-emotion");
1432
+ w.indexOf(" ") !== -1 && (document.head.appendChild(v), v.setAttribute("data-s", ""));
1433
1433
  });
1434
1434
  }
1435
- var r = e.stylisPlugins || Tr, o = {}, s, a = [];
1435
+ var r = e.stylisPlugins || Lr, o = {}, s, a = [];
1436
1436
  s = e.container || document.head, Array.prototype.forEach.call(
1437
1437
  // this means we will ignore elements which don't have a space in them which
1438
1438
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
1439
1439
  document.querySelectorAll('style[data-emotion^="' + i + ' "]'),
1440
1440
  function(v) {
1441
- for (var A = v.getAttribute("data-emotion").split(" "), y = 1; y < A.length; y++)
1442
- o[A[y]] = !0;
1441
+ for (var w = v.getAttribute("data-emotion").split(" "), g = 1; g < w.length; g++)
1442
+ o[w[g]] = !0;
1443
1443
  a.push(v);
1444
1444
  }
1445
1445
  );
1446
- var d, l = [Ir, xr];
1446
+ var d, u = [Dr, Pr];
1447
1447
  {
1448
- var u, c = [br, _r(function(v) {
1449
- u.insert(v);
1450
- })], h = pr(l.concat(r, c)), f = function(A) {
1451
- return Ie(Ar(A), h);
1448
+ var l, c = [kr, xr(function(v) {
1449
+ l.insert(v);
1450
+ })], h = Ir(u.concat(r, c)), f = function(w) {
1451
+ return xe(Sr(w), h);
1452
1452
  };
1453
- d = function(A, y, w, S) {
1454
- u = w, f(A ? A + "{" + y.styles + "}" : y.styles), S && (g.inserted[y.name] = !0);
1453
+ d = function(w, g, b, S) {
1454
+ l = b, f(w ? w + "{" + g.styles + "}" : g.styles), S && (y.inserted[g.name] = !0);
1455
1455
  };
1456
1456
  }
1457
- var g = {
1457
+ var y = {
1458
1458
  key: i,
1459
- sheet: new nr({
1459
+ sheet: new lr({
1460
1460
  key: i,
1461
1461
  container: s,
1462
1462
  nonce: e.nonce,
@@ -1469,9 +1469,9 @@ var Rr = function(e, i, n, r) {
1469
1469
  registered: {},
1470
1470
  insert: d
1471
1471
  };
1472
- return g.sheet.hydrate(a), g;
1472
+ return y.sheet.hydrate(a), y;
1473
1473
  };
1474
- function Or(t) {
1474
+ function Mr(t) {
1475
1475
  for (var e = 0, i, n = 0, r = t.length; r >= 4; ++n, r -= 4)
1476
1476
  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): */
1477
1477
  (i & 65535) * 1540483477 + ((i >>> 16) * 59797 << 16), i ^= /* k >>> r: */
@@ -1490,7 +1490,7 @@ function Or(t) {
1490
1490
  return e ^= e >>> 13, e = /* Math.imul(h, m): */
1491
1491
  (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
1492
1492
  }
1493
- var Dr = {
1493
+ var $r = {
1494
1494
  animationIterationCount: 1,
1495
1495
  aspectRatio: 1,
1496
1496
  borderImageOutset: 1,
@@ -1539,28 +1539,28 @@ var Dr = {
1539
1539
  strokeMiterlimit: 1,
1540
1540
  strokeOpacity: 1,
1541
1541
  strokeWidth: 1
1542
- }, Pr = /[A-Z]|^ms/g, Nr = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Oi = function(e) {
1542
+ }, Fr = /[A-Z]|^ms/g, Ur = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Bi = function(e) {
1543
1543
  return e.charCodeAt(1) === 45;
1544
- }, ti = function(e) {
1544
+ }, ri = function(e) {
1545
1545
  return e != null && typeof e != "boolean";
1546
- }, yt = /* @__PURE__ */ mr(function(t) {
1547
- return Oi(t) ? t : t.replace(Pr, "-$&").toLowerCase();
1548
- }), ii = function(e, i) {
1546
+ }, wt = /* @__PURE__ */ Rr(function(t) {
1547
+ return Bi(t) ? t : t.replace(Fr, "-$&").toLowerCase();
1548
+ }), oi = function(e, i) {
1549
1549
  switch (e) {
1550
1550
  case "animation":
1551
1551
  case "animationName":
1552
1552
  if (typeof i == "string")
1553
- return i.replace(Nr, function(n, r, o) {
1554
- return ye = {
1553
+ return i.replace(Ur, function(n, r, o) {
1554
+ return ge = {
1555
1555
  name: r,
1556
1556
  styles: o,
1557
- next: ye
1557
+ next: ge
1558
1558
  }, r;
1559
1559
  });
1560
1560
  }
1561
- return Dr[e] !== 1 && !Oi(e) && typeof i == "number" && i !== 0 ? i + "px" : i;
1561
+ return $r[e] !== 1 && !Bi(e) && typeof i == "number" && i !== 0 ? i + "px" : i;
1562
1562
  };
1563
- function ot(t, e, i) {
1563
+ function at(t, e, i) {
1564
1564
  if (i == null)
1565
1565
  return "";
1566
1566
  var n = i;
@@ -1572,97 +1572,97 @@ function ot(t, e, i) {
1572
1572
  case "object": {
1573
1573
  var r = i;
1574
1574
  if (r.anim === 1)
1575
- return ye = {
1575
+ return ge = {
1576
1576
  name: r.name,
1577
1577
  styles: r.styles,
1578
- next: ye
1578
+ next: ge
1579
1579
  }, r.name;
1580
1580
  var o = i;
1581
1581
  if (o.styles !== void 0) {
1582
1582
  var s = o.next;
1583
1583
  if (s !== void 0)
1584
1584
  for (; s !== void 0; )
1585
- ye = {
1585
+ ge = {
1586
1586
  name: s.name,
1587
1587
  styles: s.styles,
1588
- next: ye
1588
+ next: ge
1589
1589
  }, s = s.next;
1590
1590
  var a = o.styles + ";";
1591
1591
  return a;
1592
1592
  }
1593
- return Lr(t, e, i);
1593
+ return jr(t, e, i);
1594
1594
  }
1595
1595
  }
1596
1596
  var d = i;
1597
1597
  if (e == null)
1598
1598
  return d;
1599
- var l = e[d];
1600
- return l !== void 0 ? l : d;
1599
+ var u = e[d];
1600
+ return u !== void 0 ? u : d;
1601
1601
  }
1602
- function Lr(t, e, i) {
1602
+ function jr(t, e, i) {
1603
1603
  var n = "";
1604
1604
  if (Array.isArray(i))
1605
1605
  for (var r = 0; r < i.length; r++)
1606
- n += ot(t, e, i[r]) + ";";
1606
+ n += at(t, e, i[r]) + ";";
1607
1607
  else
1608
1608
  for (var o in i) {
1609
1609
  var s = i[o];
1610
1610
  if (typeof s != "object") {
1611
1611
  var a = s;
1612
- e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" : ti(a) && (n += yt(o) + ":" + ii(o, a) + ";");
1612
+ e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" : ri(a) && (n += wt(o) + ":" + oi(o, a) + ";");
1613
1613
  } else if (Array.isArray(s) && typeof s[0] == "string" && (e == null || e[s[0]] === void 0))
1614
1614
  for (var d = 0; d < s.length; d++)
1615
- ti(s[d]) && (n += yt(o) + ":" + ii(o, s[d]) + ";");
1615
+ ri(s[d]) && (n += wt(o) + ":" + oi(o, s[d]) + ";");
1616
1616
  else {
1617
- var l = ot(t, e, s);
1617
+ var u = at(t, e, s);
1618
1618
  switch (o) {
1619
1619
  case "animation":
1620
1620
  case "animationName": {
1621
- n += yt(o) + ":" + l + ";";
1621
+ n += wt(o) + ":" + u + ";";
1622
1622
  break;
1623
1623
  }
1624
1624
  default:
1625
- n += o + "{" + l + "}";
1625
+ n += o + "{" + u + "}";
1626
1626
  }
1627
1627
  }
1628
1628
  }
1629
1629
  return n;
1630
1630
  }
1631
- var ni = /label:\s*([^\s;{]+)\s*(;|$)/g, ye;
1632
- function gt(t, e, i) {
1631
+ var si = /label:\s*([^\s;{]+)\s*(;|$)/g, ge;
1632
+ function bt(t, e, i) {
1633
1633
  if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
1634
1634
  return t[0];
1635
1635
  var n = !0, r = "";
1636
- ye = void 0;
1636
+ ge = void 0;
1637
1637
  var o = t[0];
1638
1638
  if (o == null || o.raw === void 0)
1639
- n = !1, r += ot(i, e, o);
1639
+ n = !1, r += at(i, e, o);
1640
1640
  else {
1641
1641
  var s = o;
1642
1642
  r += s[0];
1643
1643
  }
1644
1644
  for (var a = 1; a < t.length; a++)
1645
- if (r += ot(i, e, t[a]), n) {
1645
+ if (r += at(i, e, t[a]), n) {
1646
1646
  var d = o;
1647
1647
  r += d[a];
1648
1648
  }
1649
- ni.lastIndex = 0;
1650
- for (var l = "", u; (u = ni.exec(r)) !== null; )
1651
- l += "-" + u[1];
1652
- var c = Or(r) + l;
1649
+ si.lastIndex = 0;
1650
+ for (var u = "", l; (l = si.exec(r)) !== null; )
1651
+ u += "-" + l[1];
1652
+ var c = Mr(r) + u;
1653
1653
  return {
1654
1654
  name: c,
1655
1655
  styles: r,
1656
- next: ye
1656
+ next: ge
1657
1657
  };
1658
1658
  }
1659
- function Di(t, e, i) {
1659
+ function Mi(t, e, i) {
1660
1660
  var n = "";
1661
1661
  return i.split(" ").forEach(function(r) {
1662
1662
  t[r] !== void 0 ? e.push(t[r] + ";") : r && (n += r + " ");
1663
1663
  }), n;
1664
1664
  }
1665
- var Br = function(e, i, n) {
1665
+ var Vr = function(e, i, n) {
1666
1666
  var r = e.key + "-" + i.name;
1667
1667
  // we only need to add the styles to the registered cache if the
1668
1668
  // class name could be used further down
@@ -1670,8 +1670,8 @@ var Br = function(e, i, n) {
1670
1670
  // so we don't have to add it to registered cache.
1671
1671
  // this improves memory usage since we can avoid storing the whole style string
1672
1672
  e.registered[r] === void 0 && (e.registered[r] = i.styles);
1673
- }, Mr = function(e, i, n) {
1674
- Br(e, i);
1673
+ }, Gr = function(e, i, n) {
1674
+ Vr(e, i);
1675
1675
  var r = e.key + "-" + i.name;
1676
1676
  if (e.inserted[i.name] === void 0) {
1677
1677
  var o = i;
@@ -1680,41 +1680,41 @@ var Br = function(e, i, n) {
1680
1680
  while (o !== void 0);
1681
1681
  }
1682
1682
  };
1683
- function ri(t, e) {
1683
+ function ai(t, e) {
1684
1684
  if (t.inserted[e.name] === void 0)
1685
1685
  return t.insert("", e, t.sheet, !0);
1686
1686
  }
1687
- function oi(t, e, i) {
1688
- var n = [], r = Di(t, n, i);
1687
+ function di(t, e, i) {
1688
+ var n = [], r = Mi(t, n, i);
1689
1689
  return n.length < 2 ? i : r + e(n);
1690
1690
  }
1691
- var Ur = function(e) {
1692
- var i = Cr(e);
1691
+ var qr = function(e) {
1692
+ var i = Br(e);
1693
1693
  i.sheet.speedy = function(a) {
1694
1694
  this.isSpeedy = a;
1695
1695
  }, i.compat = !0;
1696
1696
  var n = function() {
1697
- for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
1698
- l[u] = arguments[u];
1699
- var c = gt(l, i.registered, void 0);
1700
- return Mr(i, c), i.key + "-" + c.name;
1697
+ for (var d = arguments.length, u = new Array(d), l = 0; l < d; l++)
1698
+ u[l] = arguments[l];
1699
+ var c = bt(u, i.registered, void 0);
1700
+ return Gr(i, c), i.key + "-" + c.name;
1701
1701
  }, r = function() {
1702
- for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
1703
- l[u] = arguments[u];
1704
- var c = gt(l, i.registered), h = "animation-" + c.name;
1705
- return ri(i, {
1702
+ for (var d = arguments.length, u = new Array(d), l = 0; l < d; l++)
1703
+ u[l] = arguments[l];
1704
+ var c = bt(u, i.registered), h = "animation-" + c.name;
1705
+ return ai(i, {
1706
1706
  name: c.name,
1707
1707
  styles: "@keyframes " + h + "{" + c.styles + "}"
1708
1708
  }), h;
1709
1709
  }, o = function() {
1710
- for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
1711
- l[u] = arguments[u];
1712
- var c = gt(l, i.registered);
1713
- ri(i, c);
1710
+ for (var d = arguments.length, u = new Array(d), l = 0; l < d; l++)
1711
+ u[l] = arguments[l];
1712
+ var c = bt(u, i.registered);
1713
+ ai(i, c);
1714
1714
  }, s = function() {
1715
- for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
1716
- l[u] = arguments[u];
1717
- return oi(i.registered, n, $r(l));
1715
+ for (var d = arguments.length, u = new Array(d), l = 0; l < d; l++)
1716
+ u[l] = arguments[l];
1717
+ return di(i.registered, n, Kr(u));
1718
1718
  };
1719
1719
  return {
1720
1720
  css: n,
@@ -1722,8 +1722,8 @@ var Ur = function(e) {
1722
1722
  injectGlobal: o,
1723
1723
  keyframes: r,
1724
1724
  hydrate: function(d) {
1725
- d.forEach(function(l) {
1726
- i.inserted[l] = !0;
1725
+ d.forEach(function(u) {
1726
+ i.inserted[u] = !0;
1727
1727
  });
1728
1728
  },
1729
1729
  flush: function() {
@@ -1731,10 +1731,10 @@ var Ur = function(e) {
1731
1731
  },
1732
1732
  sheet: i.sheet,
1733
1733
  cache: i,
1734
- getRegisteredStyles: Di.bind(null, i.registered),
1735
- merge: oi.bind(null, i.registered, n)
1734
+ getRegisteredStyles: Mi.bind(null, i.registered),
1735
+ merge: di.bind(null, i.registered, n)
1736
1736
  };
1737
- }, $r = function t(e) {
1737
+ }, Kr = function t(e) {
1738
1738
  for (var i = "", n = 0; n < e.length; n++) {
1739
1739
  var r = e[n];
1740
1740
  if (r != null) {
@@ -1759,57 +1759,57 @@ var Ur = function(e) {
1759
1759
  }
1760
1760
  }
1761
1761
  return i;
1762
- }, Fr = Ur({
1762
+ }, zr = qr({
1763
1763
  key: "css"
1764
- }), G = Fr.css, Rt, Q, At, si, ai = 0, Pi = [], B = xe, di = B.__b, li = B.__r, ui = B.diffed, ci = B.__c, hi = B.unmount, fi = B.__;
1765
- function jr(t, e) {
1766
- B.__h && B.__h(Q, t, ai || e), ai = 0;
1764
+ }), G = zr.css, Ot, Q, At, li, ui = 0, $i = [], B = Re, ci = B.__b, hi = B.__r, fi = B.diffed, vi = B.__c, yi = B.unmount, gi = B.__;
1765
+ function Wr(t, e) {
1766
+ B.__h && B.__h(Q, t, ui || e), ui = 0;
1767
1767
  var i = Q.__H || (Q.__H = { __: [], __h: [] });
1768
1768
  return t >= i.__.length && i.__.push({}), i.__[t];
1769
1769
  }
1770
- function Ni(t, e) {
1771
- var i = jr(Rt++, 7);
1772
- return qr(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
1770
+ function Fi(t, e) {
1771
+ var i = Wr(Ot++, 7);
1772
+ return Xr(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
1773
1773
  }
1774
- function Vr() {
1775
- for (var t; t = Pi.shift(); )
1774
+ function Hr() {
1775
+ for (var t; t = $i.shift(); )
1776
1776
  if (t.__P && t.__H)
1777
1777
  try {
1778
- t.__H.__h.forEach(tt), t.__H.__h.forEach(Tt), t.__H.__h = [];
1778
+ t.__H.__h.forEach(tt), t.__H.__h.forEach(Dt), t.__H.__h = [];
1779
1779
  } catch (e) {
1780
1780
  t.__H.__h = [], B.__e(e, t.__v);
1781
1781
  }
1782
1782
  }
1783
1783
  B.__b = function(t) {
1784
- Q = null, di && di(t);
1784
+ Q = null, ci && ci(t);
1785
1785
  }, B.__ = function(t, e) {
1786
- t && e.__k && e.__k.__m && (t.__m = e.__k.__m), fi && fi(t, e);
1786
+ t && e.__k && e.__k.__m && (t.__m = e.__k.__m), gi && gi(t, e);
1787
1787
  }, B.__r = function(t) {
1788
- li && li(t), Rt = 0;
1788
+ hi && hi(t), Ot = 0;
1789
1789
  var e = (Q = t.__c).__H;
1790
1790
  e && (At === Q ? (e.__h = [], Q.__h = [], e.__.forEach(function(i) {
1791
1791
  i.__N && (i.__ = i.__N), i.u = i.__N = void 0;
1792
- })) : (e.__h.forEach(tt), e.__h.forEach(Tt), e.__h = [], Rt = 0)), At = Q;
1792
+ })) : (e.__h.forEach(tt), e.__h.forEach(Dt), e.__h = [], Ot = 0)), At = Q;
1793
1793
  }, B.diffed = function(t) {
1794
- ui && ui(t);
1794
+ fi && fi(t);
1795
1795
  var e = t.__c;
1796
- e && e.__H && (e.__H.__h.length && (Pi.push(e) !== 1 && si === B.requestAnimationFrame || ((si = B.requestAnimationFrame) || Gr)(Vr)), e.__H.__.forEach(function(i) {
1796
+ e && e.__H && (e.__H.__h.length && ($i.push(e) !== 1 && li === B.requestAnimationFrame || ((li = B.requestAnimationFrame) || Jr)(Hr)), e.__H.__.forEach(function(i) {
1797
1797
  i.u && (i.__H = i.u), i.u = void 0;
1798
1798
  })), At = Q = null;
1799
1799
  }, B.__c = function(t, e) {
1800
1800
  e.some(function(i) {
1801
1801
  try {
1802
1802
  i.__h.forEach(tt), i.__h = i.__h.filter(function(n) {
1803
- return !n.__ || Tt(n);
1803
+ return !n.__ || Dt(n);
1804
1804
  });
1805
1805
  } catch (n) {
1806
1806
  e.some(function(r) {
1807
1807
  r.__h && (r.__h = []);
1808
1808
  }), e = [], B.__e(n, i.__v);
1809
1809
  }
1810
- }), ci && ci(t, e);
1810
+ }), vi && vi(t, e);
1811
1811
  }, B.unmount = function(t) {
1812
- hi && hi(t);
1812
+ yi && yi(t);
1813
1813
  var e, i = t.__c;
1814
1814
  i && i.__H && (i.__H.__.forEach(function(n) {
1815
1815
  try {
@@ -1819,36 +1819,36 @@ B.__b = function(t) {
1819
1819
  }
1820
1820
  }), i.__H = void 0, e && B.__e(e, i.__v));
1821
1821
  };
1822
- var vi = typeof requestAnimationFrame == "function";
1823
- function Gr(t) {
1822
+ var wi = typeof requestAnimationFrame == "function";
1823
+ function Jr(t) {
1824
1824
  var e, i = function() {
1825
- clearTimeout(n), vi && cancelAnimationFrame(e), setTimeout(t);
1825
+ clearTimeout(n), wi && cancelAnimationFrame(e), setTimeout(t);
1826
1826
  }, n = setTimeout(i, 100);
1827
- vi && (e = requestAnimationFrame(i));
1827
+ wi && (e = requestAnimationFrame(i));
1828
1828
  }
1829
1829
  function tt(t) {
1830
1830
  var e = Q, i = t.__c;
1831
1831
  typeof i == "function" && (t.__c = void 0, i()), Q = e;
1832
1832
  }
1833
- function Tt(t) {
1833
+ function Dt(t) {
1834
1834
  var e = Q;
1835
1835
  t.__c = t.__(), Q = e;
1836
1836
  }
1837
- function qr(t, e) {
1837
+ function Xr(t, e) {
1838
1838
  return !t || t.length !== e.length || e.some(function(i, n) {
1839
1839
  return i !== t[n];
1840
1840
  });
1841
1841
  }
1842
- var Kr = Symbol.for("preact-signals");
1843
- function ct() {
1844
- if (ge > 1)
1845
- ge--;
1842
+ var Yr = Symbol.for("preact-signals");
1843
+ function ft() {
1844
+ if (we > 1)
1845
+ we--;
1846
1846
  else {
1847
- for (var t, e = !1; Me !== void 0; ) {
1848
- var i = Me;
1849
- for (Me = void 0, Ct++; i !== void 0; ) {
1847
+ for (var t, e = !1; $e !== void 0; ) {
1848
+ var i = $e;
1849
+ for ($e = void 0, Pt++; i !== void 0; ) {
1850
1850
  var n = i.o;
1851
- if (i.o = void 0, i.f &= -3, !(8 & i.f) && Bi(i))
1851
+ if (i.o = void 0, i.f &= -3, !(8 & i.f) && ji(i))
1852
1852
  try {
1853
1853
  i.c();
1854
1854
  } catch (r) {
@@ -1857,22 +1857,22 @@ function ct() {
1857
1857
  i = n;
1858
1858
  }
1859
1859
  }
1860
- if (Ct = 0, ge--, e)
1860
+ if (Pt = 0, we--, e)
1861
1861
  throw t;
1862
1862
  }
1863
1863
  }
1864
1864
  function P(t) {
1865
- if (ge > 0)
1865
+ if (we > 0)
1866
1866
  return t();
1867
- ge++;
1867
+ we++;
1868
1868
  try {
1869
1869
  return t();
1870
1870
  } finally {
1871
- ct();
1871
+ ft();
1872
1872
  }
1873
1873
  }
1874
- var T = void 0, Me = void 0, ge = 0, Ct = 0, st = 0;
1875
- function Li(t) {
1874
+ var T = void 0, $e = void 0, we = 0, Pt = 0, dt = 0;
1875
+ function Ui(t) {
1876
1876
  if (T !== void 0) {
1877
1877
  var e = t.n;
1878
1878
  if (e === void 0 || e.t !== T)
@@ -1881,23 +1881,23 @@ function Li(t) {
1881
1881
  return e.i = 0, e.n !== void 0 && (e.n.p = e.p, e.p !== void 0 && (e.p.n = e.n), e.p = T.s, e.n = void 0, T.s.n = e, T.s = e), e;
1882
1882
  }
1883
1883
  }
1884
- function F(t) {
1884
+ function U(t) {
1885
1885
  this.v = t, this.i = 0, this.n = void 0, this.t = void 0;
1886
1886
  }
1887
- F.prototype.brand = Kr;
1888
- F.prototype.h = function() {
1887
+ U.prototype.brand = Yr;
1888
+ U.prototype.h = function() {
1889
1889
  return !0;
1890
1890
  };
1891
- F.prototype.S = function(t) {
1891
+ U.prototype.S = function(t) {
1892
1892
  this.t !== t && t.e === void 0 && (t.x = this.t, this.t !== void 0 && (this.t.e = t), this.t = t);
1893
1893
  };
1894
- F.prototype.U = function(t) {
1894
+ U.prototype.U = function(t) {
1895
1895
  if (this.t !== void 0) {
1896
1896
  var e = t.e, i = t.x;
1897
1897
  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);
1898
1898
  }
1899
1899
  };
1900
- F.prototype.subscribe = function(t) {
1900
+ U.prototype.subscribe = function(t) {
1901
1901
  var e = this;
1902
1902
  return Ke(function() {
1903
1903
  var i = e.value, n = T;
@@ -1909,16 +1909,16 @@ F.prototype.subscribe = function(t) {
1909
1909
  }
1910
1910
  });
1911
1911
  };
1912
- F.prototype.valueOf = function() {
1912
+ U.prototype.valueOf = function() {
1913
1913
  return this.value;
1914
1914
  };
1915
- F.prototype.toString = function() {
1915
+ U.prototype.toString = function() {
1916
1916
  return this.value + "";
1917
1917
  };
1918
- F.prototype.toJSON = function() {
1918
+ U.prototype.toJSON = function() {
1919
1919
  return this.value;
1920
1920
  };
1921
- F.prototype.peek = function() {
1921
+ U.prototype.peek = function() {
1922
1922
  var t = T;
1923
1923
  T = void 0;
1924
1924
  try {
@@ -1927,32 +1927,32 @@ F.prototype.peek = function() {
1927
1927
  T = t;
1928
1928
  }
1929
1929
  };
1930
- Object.defineProperty(F.prototype, "value", { get: function() {
1931
- var t = Li(this);
1930
+ Object.defineProperty(U.prototype, "value", { get: function() {
1931
+ var t = Ui(this);
1932
1932
  return t !== void 0 && (t.i = this.i), this.v;
1933
1933
  }, set: function(t) {
1934
1934
  if (t !== this.v) {
1935
- if (Ct > 100)
1935
+ if (Pt > 100)
1936
1936
  throw new Error("Cycle detected");
1937
- this.v = t, this.i++, st++, ge++;
1937
+ this.v = t, this.i++, dt++, we++;
1938
1938
  try {
1939
1939
  for (var e = this.t; e !== void 0; e = e.x)
1940
1940
  e.t.N();
1941
1941
  } finally {
1942
- ct();
1942
+ ft();
1943
1943
  }
1944
1944
  }
1945
1945
  } });
1946
1946
  function k(t) {
1947
- return new F(t);
1947
+ return new U(t);
1948
1948
  }
1949
- function Bi(t) {
1949
+ function ji(t) {
1950
1950
  for (var e = t.s; e !== void 0; e = e.n)
1951
1951
  if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i)
1952
1952
  return !0;
1953
1953
  return !1;
1954
1954
  }
1955
- function Mi(t) {
1955
+ function Vi(t) {
1956
1956
  for (var e = t.s; e !== void 0; e = e.n) {
1957
1957
  var i = e.S.n;
1958
1958
  if (i !== void 0 && (e.r = i), e.S.n = e, e.i = -1, e.n === void 0) {
@@ -1961,90 +1961,90 @@ function Mi(t) {
1961
1961
  }
1962
1962
  }
1963
1963
  }
1964
- function Ui(t) {
1964
+ function Gi(t) {
1965
1965
  for (var e = t.s, i = void 0; e !== void 0; ) {
1966
1966
  var n = e.p;
1967
1967
  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;
1968
1968
  }
1969
1969
  t.s = i;
1970
1970
  }
1971
- function Oe(t) {
1972
- F.call(this, void 0), this.x = t, this.s = void 0, this.g = st - 1, this.f = 4;
1971
+ function De(t) {
1972
+ U.call(this, void 0), this.x = t, this.s = void 0, this.g = dt - 1, this.f = 4;
1973
1973
  }
1974
- (Oe.prototype = new F()).h = function() {
1974
+ (De.prototype = new U()).h = function() {
1975
1975
  if (this.f &= -3, 1 & this.f)
1976
1976
  return !1;
1977
- if ((36 & this.f) == 32 || (this.f &= -5, this.g === st))
1977
+ if ((36 & this.f) == 32 || (this.f &= -5, this.g === dt))
1978
1978
  return !0;
1979
- if (this.g = st, this.f |= 1, this.i > 0 && !Bi(this))
1979
+ if (this.g = dt, this.f |= 1, this.i > 0 && !ji(this))
1980
1980
  return this.f &= -2, !0;
1981
1981
  var t = T;
1982
1982
  try {
1983
- Mi(this), T = this;
1983
+ Vi(this), T = this;
1984
1984
  var e = this.x();
1985
1985
  (16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
1986
1986
  } catch (i) {
1987
1987
  this.v = i, this.f |= 16, this.i++;
1988
1988
  }
1989
- return T = t, Ui(this), this.f &= -2, !0;
1989
+ return T = t, Gi(this), this.f &= -2, !0;
1990
1990
  };
1991
- Oe.prototype.S = function(t) {
1991
+ De.prototype.S = function(t) {
1992
1992
  if (this.t === void 0) {
1993
1993
  this.f |= 36;
1994
1994
  for (var e = this.s; e !== void 0; e = e.n)
1995
1995
  e.S.S(e);
1996
1996
  }
1997
- F.prototype.S.call(this, t);
1997
+ U.prototype.S.call(this, t);
1998
1998
  };
1999
- Oe.prototype.U = function(t) {
2000
- if (this.t !== void 0 && (F.prototype.U.call(this, t), this.t === void 0)) {
1999
+ De.prototype.U = function(t) {
2000
+ if (this.t !== void 0 && (U.prototype.U.call(this, t), this.t === void 0)) {
2001
2001
  this.f &= -33;
2002
2002
  for (var e = this.s; e !== void 0; e = e.n)
2003
2003
  e.S.U(e);
2004
2004
  }
2005
2005
  };
2006
- Oe.prototype.N = function() {
2006
+ De.prototype.N = function() {
2007
2007
  if (!(2 & this.f)) {
2008
2008
  this.f |= 6;
2009
2009
  for (var t = this.t; t !== void 0; t = t.x)
2010
2010
  t.t.N();
2011
2011
  }
2012
2012
  };
2013
- Object.defineProperty(Oe.prototype, "value", { get: function() {
2013
+ Object.defineProperty(De.prototype, "value", { get: function() {
2014
2014
  if (1 & this.f)
2015
2015
  throw new Error("Cycle detected");
2016
- var t = Li(this);
2016
+ var t = Ui(this);
2017
2017
  if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f)
2018
2018
  throw this.v;
2019
2019
  return this.v;
2020
2020
  } });
2021
- function Ue(t) {
2022
- return new Oe(t);
2021
+ function Fe(t) {
2022
+ return new De(t);
2023
2023
  }
2024
- function $i(t) {
2024
+ function qi(t) {
2025
2025
  var e = t.u;
2026
2026
  if (t.u = void 0, typeof e == "function") {
2027
- ge++;
2027
+ we++;
2028
2028
  var i = T;
2029
2029
  T = void 0;
2030
2030
  try {
2031
2031
  e();
2032
2032
  } catch (n) {
2033
- throw t.f &= -2, t.f |= 8, Bt(t), n;
2033
+ throw t.f &= -2, t.f |= 8, Ft(t), n;
2034
2034
  } finally {
2035
- T = i, ct();
2035
+ T = i, ft();
2036
2036
  }
2037
2037
  }
2038
2038
  }
2039
- function Bt(t) {
2039
+ function Ft(t) {
2040
2040
  for (var e = t.s; e !== void 0; e = e.n)
2041
2041
  e.S.U(e);
2042
- t.x = void 0, t.s = void 0, $i(t);
2042
+ t.x = void 0, t.s = void 0, qi(t);
2043
2043
  }
2044
- function zr(t) {
2044
+ function Qr(t) {
2045
2045
  if (T !== this)
2046
2046
  throw new Error("Out-of-order effect");
2047
- Ui(this), T = t, this.f &= -2, 8 & this.f && Bt(this), ct();
2047
+ Gi(this), T = t, this.f &= -2, 8 & this.f && Ft(this), ft();
2048
2048
  }
2049
2049
  function qe(t) {
2050
2050
  this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
@@ -2063,15 +2063,15 @@ qe.prototype.c = function() {
2063
2063
  qe.prototype.S = function() {
2064
2064
  if (1 & this.f)
2065
2065
  throw new Error("Cycle detected");
2066
- this.f |= 1, this.f &= -9, $i(this), Mi(this), ge++;
2066
+ this.f |= 1, this.f &= -9, qi(this), Vi(this), we++;
2067
2067
  var t = T;
2068
- return T = this, zr.bind(this, t);
2068
+ return T = this, Qr.bind(this, t);
2069
2069
  };
2070
2070
  qe.prototype.N = function() {
2071
- 2 & this.f || (this.f |= 2, this.o = Me, Me = this);
2071
+ 2 & this.f || (this.f |= 2, this.o = $e, $e = this);
2072
2072
  };
2073
2073
  qe.prototype.d = function() {
2074
- this.f |= 8, 1 & this.f || Bt(this);
2074
+ this.f |= 8, 1 & this.f || Ft(this);
2075
2075
  };
2076
2076
  function Ke(t) {
2077
2077
  var e = new qe(t);
@@ -2082,60 +2082,60 @@ function Ke(t) {
2082
2082
  }
2083
2083
  return e.d.bind(e);
2084
2084
  }
2085
- var Fi, wt, ji = [];
2085
+ var Ki, pt, zi = [];
2086
2086
  Ke(function() {
2087
- Fi = this.N;
2087
+ Ki = this.N;
2088
2088
  })();
2089
- function De(t, e) {
2090
- xe[t] = e.bind(null, xe[t] || function() {
2089
+ function Pe(t, e) {
2090
+ Re[t] = e.bind(null, Re[t] || function() {
2091
2091
  });
2092
2092
  }
2093
- function at(t) {
2094
- wt && wt(), wt = t && t.S();
2093
+ function lt(t) {
2094
+ pt && pt(), pt = t && t.S();
2095
2095
  }
2096
- function Vi(t) {
2097
- var e = this, i = t.data, n = Gi(i);
2096
+ function Wi(t) {
2097
+ var e = this, i = t.data, n = Hi(i);
2098
2098
  n.value = i;
2099
- var r = Ni(function() {
2099
+ var r = Fi(function() {
2100
2100
  for (var a = e, d = e.__v; d = d.__; )
2101
2101
  if (d.__c) {
2102
2102
  d.__c.__$f |= 4;
2103
2103
  break;
2104
2104
  }
2105
- var l = Ue(function() {
2105
+ var u = Fe(function() {
2106
2106
  var f = n.value.value;
2107
2107
  return f === 0 ? 0 : f === !0 ? "" : f || "";
2108
- }), u = Ue(function() {
2109
- return !Array.isArray(l.value) && !sn(l.value);
2108
+ }), l = Fe(function() {
2109
+ return !Array.isArray(u.value) && !hn(u.value);
2110
2110
  }), c = Ke(function() {
2111
- if (this.N = qi, u.value) {
2112
- var f = l.value;
2111
+ if (this.N = Ji, l.value) {
2112
+ var f = u.value;
2113
2113
  a.__v && a.__v.__e && a.__v.__e.nodeType === 3 && (a.__v.__e.data = f);
2114
2114
  }
2115
2115
  }), h = e.__$u.d;
2116
2116
  return e.__$u.d = function() {
2117
2117
  c(), h.call(this);
2118
- }, [u, l];
2118
+ }, [l, u];
2119
2119
  }, []), o = r[0], s = r[1];
2120
2120
  return o.value ? s.peek() : s.value;
2121
2121
  }
2122
- Vi.displayName = "_st";
2123
- Object.defineProperties(F.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: Vi }, props: { configurable: !0, get: function() {
2122
+ Wi.displayName = "_st";
2123
+ Object.defineProperties(U.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: Wi }, props: { configurable: !0, get: function() {
2124
2124
  return { data: this };
2125
2125
  } }, __b: { configurable: !0, value: 1 } });
2126
- De("__b", function(t, e) {
2126
+ Pe("__b", function(t, e) {
2127
2127
  if (typeof e.type == "string") {
2128
2128
  var i, n = e.props;
2129
2129
  for (var r in n)
2130
2130
  if (r !== "children") {
2131
2131
  var o = n[r];
2132
- o instanceof F && (i || (e.__np = i = {}), i[r] = o, n[r] = o.peek());
2132
+ o instanceof U && (i || (e.__np = i = {}), i[r] = o, n[r] = o.peek());
2133
2133
  }
2134
2134
  }
2135
2135
  t(e);
2136
2136
  });
2137
- De("__r", function(t, e) {
2138
- at();
2137
+ Pe("__r", function(t, e) {
2138
+ lt();
2139
2139
  var i, n = e.__c;
2140
2140
  n && (n.__$f &= -2, (i = n.__$u) === void 0 && (n.__$u = i = function(r) {
2141
2141
  var o;
@@ -2144,13 +2144,13 @@ De("__r", function(t, e) {
2144
2144
  }), o.c = function() {
2145
2145
  n.__$f |= 1, n.setState({});
2146
2146
  }, o;
2147
- }())), at(i), t(e);
2147
+ }())), lt(i), t(e);
2148
2148
  });
2149
- De("__e", function(t, e, i, n) {
2150
- at(), t(e, i, n);
2149
+ Pe("__e", function(t, e, i, n) {
2150
+ lt(), t(e, i, n);
2151
2151
  });
2152
- De("diffed", function(t, e) {
2153
- at();
2152
+ Pe("diffed", function(t, e) {
2153
+ lt();
2154
2154
  var i;
2155
2155
  if (typeof e.type == "string" && (i = e.__e)) {
2156
2156
  var n = e.__np, r = e.props;
@@ -2164,24 +2164,24 @@ De("diffed", function(t, e) {
2164
2164
  else
2165
2165
  o = {}, i.U = o;
2166
2166
  for (var d in n) {
2167
- var l = o[d], u = n[d];
2168
- l === void 0 ? (l = Wr(i, d, u, r), o[d] = l) : l.o(u, r);
2167
+ var u = o[d], l = n[d];
2168
+ u === void 0 ? (u = Zr(i, d, l, r), o[d] = u) : u.o(l, r);
2169
2169
  }
2170
2170
  }
2171
2171
  }
2172
2172
  t(e);
2173
2173
  });
2174
- function Wr(t, e, i, n) {
2174
+ function Zr(t, e, i, n) {
2175
2175
  var r = e in t && t.ownerSVGElement === void 0, o = k(i);
2176
2176
  return { o: function(s, a) {
2177
2177
  o.value = s, n = a;
2178
2178
  }, d: Ke(function() {
2179
- this.N = qi;
2179
+ this.N = Ji;
2180
2180
  var s = o.value.value;
2181
2181
  n[e] !== s && (n[e] = s, r ? t[e] = s : s ? t.setAttribute(e, s) : t.removeAttribute(e));
2182
2182
  }) };
2183
2183
  }
2184
- De("unmount", function(t, e) {
2184
+ Pe("unmount", function(t, e) {
2185
2185
  if (typeof e.type == "string") {
2186
2186
  var i = e.__e;
2187
2187
  if (i) {
@@ -2203,10 +2203,10 @@ De("unmount", function(t, e) {
2203
2203
  }
2204
2204
  t(e);
2205
2205
  });
2206
- De("__h", function(t, e, i, n) {
2206
+ Pe("__h", function(t, e, i, n) {
2207
2207
  (n < 3 || n === 9) && (e.__$f |= 2), t(e, i, n);
2208
2208
  });
2209
- on.prototype.shouldComponentUpdate = function(t, e) {
2209
+ cn.prototype.shouldComponentUpdate = function(t, e) {
2210
2210
  var i = this.__$u, n = i && i.s !== void 0;
2211
2211
  for (var r in e)
2212
2212
  return !0;
@@ -2224,24 +2224,24 @@ on.prototype.shouldComponentUpdate = function(t, e) {
2224
2224
  return !0;
2225
2225
  return !1;
2226
2226
  };
2227
- function Gi(t) {
2228
- return Ni(function() {
2227
+ function Hi(t) {
2228
+ return Fi(function() {
2229
2229
  return k(t);
2230
2230
  }, []);
2231
2231
  }
2232
- var Hr = function(t) {
2232
+ var eo = function(t) {
2233
2233
  queueMicrotask(function() {
2234
2234
  queueMicrotask(t);
2235
2235
  });
2236
2236
  };
2237
- function Jr() {
2237
+ function to() {
2238
2238
  P(function() {
2239
- for (var t; t = ji.shift(); )
2240
- Fi.call(t);
2239
+ for (var t; t = zi.shift(); )
2240
+ Ki.call(t);
2241
2241
  });
2242
2242
  }
2243
- function qi() {
2244
- ji.push(this) === 1 && (xe.requestAnimationFrame || Hr)(Jr);
2243
+ function Ji() {
2244
+ zi.push(this) === 1 && (Re.requestAnimationFrame || eo)(to);
2245
2245
  }
2246
2246
  const M = G`
2247
2247
  inset: 0;
@@ -2262,11 +2262,11 @@ const M = G`
2262
2262
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
2263
2263
  'Helvetica Neue', sans-serif;
2264
2264
  `;
2265
- function Xr(t, e) {
2266
- const i = gi(t);
2267
- an(() => {
2265
+ function io(t, e) {
2266
+ const i = _i(t);
2267
+ fn(() => {
2268
2268
  i.current = t;
2269
- }, [t]), Re(() => {
2269
+ }, [t]), Te(() => {
2270
2270
  if (e === null)
2271
2271
  return;
2272
2272
  const n = setInterval(() => {
@@ -2277,20 +2277,20 @@ function Xr(t, e) {
2277
2277
  };
2278
2278
  }, [e]);
2279
2279
  }
2280
- var Yr = 0;
2280
+ var no = 0;
2281
2281
  function _(t, e, i, n, r, o) {
2282
2282
  e || (e = {});
2283
2283
  var s, a, d = e;
2284
2284
  if ("ref" in d)
2285
2285
  for (a in d = {}, e)
2286
2286
  a == "ref" ? s = e[a] : d[a] = e[a];
2287
- var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Yr, __i: -1, __u: 0, __source: r, __self: o };
2287
+ var u = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --no, __i: -1, __u: 0, __source: r, __self: o };
2288
2288
  if (typeof t == "function" && (s = t.defaultProps))
2289
2289
  for (a in s)
2290
2290
  d[a] === void 0 && (d[a] = s[a]);
2291
- return xe.vnode && xe.vnode(l), l;
2291
+ return Re.vnode && Re.vnode(u), u;
2292
2292
  }
2293
- const Qr = G`
2293
+ const ro = G`
2294
2294
  ${M}
2295
2295
  position: fixed;
2296
2296
  top: 0;
@@ -2365,13 +2365,13 @@ const Qr = G`
2365
2365
  }
2366
2366
  }
2367
2367
  }
2368
- `, ie = k(null), Ot = k(""), Dt = k(""), it = k(!1), Zr = () => {
2368
+ `, ie = k(null), Nt = k(""), Lt = k(""), it = k(!1), oo = () => {
2369
2369
  var t;
2370
2370
  (t = ie.value) == null || t.call(ie, !1);
2371
- }, eo = () => {
2371
+ }, so = () => {
2372
2372
  var t;
2373
2373
  (t = ie.value) == null || t.call(ie, !0);
2374
- }, to = async (t) => {
2374
+ }, ao = async (t) => {
2375
2375
  let {
2376
2376
  title: e,
2377
2377
  content: i
@@ -2379,41 +2379,41 @@ const Qr = G`
2379
2379
  return ie.value && (ie.value(!1), P(() => {
2380
2380
  ie.value = null, it.value = !1;
2381
2381
  })), P(() => {
2382
- Ot.value = e || "", Dt.value = i || "", it.value = !0;
2382
+ Nt.value = e || "", Lt.value = i || "", it.value = !0;
2383
2383
  }), new Promise((n) => {
2384
2384
  ie.value = (r) => {
2385
2385
  P(() => {
2386
- ie.value = null, it.value = !1, Ot.value = "", Dt.value = "";
2386
+ ie.value = null, it.value = !1, Nt.value = "", Lt.value = "";
2387
2387
  }), n(r);
2388
2388
  };
2389
2389
  });
2390
- }, io = () => it.value ? _("div", {
2391
- className: Qr,
2390
+ }, lo = () => it.value ? _("div", {
2391
+ className: ro,
2392
2392
  children: _("div", {
2393
2393
  className: "card-wrapper",
2394
2394
  children: [_("div", {
2395
2395
  className: "body",
2396
2396
  children: [_("div", {
2397
2397
  className: "title",
2398
- children: Ot.value
2398
+ children: Nt.value
2399
2399
  }), _("div", {
2400
2400
  className: "content",
2401
- children: Dt.value
2401
+ children: Lt.value
2402
2402
  })]
2403
2403
  }), _("div", {
2404
2404
  className: "footer",
2405
2405
  children: [_("button", {
2406
- onClick: Zr,
2406
+ onClick: oo,
2407
2407
  className: "cancel-btn",
2408
2408
  children: "Cancel"
2409
2409
  }), _("button", {
2410
- onClick: eo,
2410
+ onClick: so,
2411
2411
  className: "confirm-btm",
2412
2412
  children: "Confirm"
2413
2413
  })]
2414
2414
  })]
2415
2415
  })
2416
- }) : null, no = G`
2416
+ }) : null, uo = G`
2417
2417
  ${M}
2418
2418
  position: relative;
2419
2419
  display: flex;
@@ -2446,7 +2446,7 @@ const Qr = G`
2446
2446
  cursor: not-allowed;
2447
2447
  }
2448
2448
  }
2449
- `, ro = () => {
2449
+ `, co = () => {
2450
2450
  const t = k(!1), e = k(null);
2451
2451
  return {
2452
2452
  timerPaused: t,
@@ -2457,7 +2457,7 @@ const Qr = G`
2457
2457
  });
2458
2458
  }
2459
2459
  };
2460
- }, oo = (t) => {
2460
+ }, ho = (t) => {
2461
2461
  let {
2462
2462
  countdown: e = 0,
2463
2463
  mode: i,
@@ -2467,26 +2467,26 @@ const Qr = G`
2467
2467
  const {
2468
2468
  startTimestamp: o,
2469
2469
  timerPaused: s
2470
- } = r, a = Gi(e);
2471
- Xr(() => {
2470
+ } = r, a = Hi(e);
2471
+ io(() => {
2472
2472
  a.value > 0 ? a.value -= 1 : P(() => {
2473
2473
  s.value = !0, a.value = 0;
2474
2474
  });
2475
2475
  }, s.value ? null : 1e3);
2476
- const d = Ue(() => {
2476
+ const d = Fe(() => {
2477
2477
  if (i === "interstitial" || i === "rewarded_insterstitial" || !o.value)
2478
2478
  return !1;
2479
2479
  const f = Date.now() - o.value;
2480
2480
  return a.value > 0 && e - a.value >= 5 && f >= 5e3;
2481
- }), l = Ue(() => {
2481
+ }), u = Fe(() => {
2482
2482
  if (i === "interstitial")
2483
2483
  return !0;
2484
2484
  if (!o.value)
2485
2485
  return !1;
2486
2486
  const f = Date.now() - o.value;
2487
2487
  return a.value <= 0 && f >= (e - 1) * 1e3 && e > 5;
2488
- }), u = Ue(() => i === "interstitial" ? !1 : !d.value && !l.value), c = async () => {
2489
- if (s.value = !0, !await to({
2488
+ }), l = Fe(() => i === "interstitial" ? !1 : !d.value && !u.value), c = async () => {
2489
+ if (s.value = !0, !await ao({
2490
2490
  title: "Are you sure?",
2491
2491
  content: "You will lose your reward if you dismiss this Ad."
2492
2492
  })) {
@@ -2502,13 +2502,13 @@ const Qr = G`
2502
2502
  });
2503
2503
  };
2504
2504
  return _("div", {
2505
- className: no,
2505
+ className: uo,
2506
2506
  children: [a.value > 0 && i !== "interstitial" && _("div", {
2507
2507
  className: "timer",
2508
2508
  children: [a.value, "s"]
2509
2509
  }), _("button", {
2510
- onClick: d.value ? c : l.value ? h : void 0,
2511
- disabled: u.value,
2510
+ onClick: d.value ? c : u.value ? h : void 0,
2511
+ disabled: l.value,
2512
2512
  children: _("svg", {
2513
2513
  width: "12",
2514
2514
  height: "12",
@@ -2522,7 +2522,7 @@ const Qr = G`
2522
2522
  })
2523
2523
  })]
2524
2524
  });
2525
- }, Ki = () => {
2525
+ }, Xi = () => {
2526
2526
  const t = k(), e = k(), i = k(), n = k(), r = k(), o = k(!1), s = k(15), a = k(""), d = k("reward");
2527
2527
  return {
2528
2528
  afterAd: t,
@@ -2535,7 +2535,7 @@ const Qr = G`
2535
2535
  src: a,
2536
2536
  mode: d
2537
2537
  };
2538
- }, so = G`
2538
+ }, fo = G`
2539
2539
  ${M}
2540
2540
  position: fixed;
2541
2541
  z-index: 2147483647;
@@ -2554,7 +2554,7 @@ const Qr = G`
2554
2554
  width: 100%;
2555
2555
  height: 100%;
2556
2556
  }
2557
- `, zi = (t) => {
2557
+ `, Yi = (t) => {
2558
2558
  let {
2559
2559
  state: e
2560
2560
  } = t;
@@ -2566,41 +2566,41 @@ const Qr = G`
2566
2566
  adLoaded: s,
2567
2567
  visible: a,
2568
2568
  countdown: d,
2569
- src: l,
2570
- mode: u
2571
- } = e, c = dn(() => ro(), []), [h, f] = we(!1), g = (A) => {
2572
- var y, w, S, b;
2573
- a.value = !1, A === "dismiss" ? (y = n.value) == null || y.call(n) : A === "viewed" && ((w = r.value) == null || w.call(r)), (S = i.value) == null || S.call(i), (b = o.value) == null || b.call(o), f(!1);
2574
- }, v = _t(() => {
2575
- var A;
2576
- h || (f(!0), (A = s.value) == null || A.call(s));
2569
+ src: u,
2570
+ mode: l
2571
+ } = e, c = vn(() => co(), []), [h, f] = Ae(!1), y = (w) => {
2572
+ var g, b, S, A;
2573
+ a.value = !1, w === "dismiss" ? (g = n.value) == null || g.call(n) : w === "viewed" && ((b = r.value) == null || b.call(r)), (S = i.value) == null || S.call(i), (A = o.value) == null || A.call(o), f(!1);
2574
+ }, v = Et(() => {
2575
+ var w;
2576
+ h || (f(!0), (w = s.value) == null || w.call(s));
2577
2577
  }, [h]);
2578
- return Re(() => {
2579
- h && (u.value === "reward" || u.value === "rewarded_insterstitial") && setTimeout(() => {
2578
+ return Te(() => {
2579
+ h && (l.value === "reward" || l.value === "rewarded_insterstitial") && setTimeout(() => {
2580
2580
  c.startTimer();
2581
2581
  }, 100);
2582
- }, [h, u.value]), a.value ? _("div", {
2583
- className: so,
2584
- children: [_(oo, {
2585
- mode: u.value,
2586
- onClose: g,
2582
+ }, [h, l.value]), a.value ? _("div", {
2583
+ className: fo,
2584
+ children: [_(ho, {
2585
+ mode: l.value,
2586
+ onClose: y,
2587
2587
  countdown: d.value,
2588
2588
  state: c
2589
2589
  }), a.value && _("iframe", {
2590
- src: l.value,
2590
+ src: u.value,
2591
2591
  onLoad: v,
2592
2592
  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"
2593
- }), _(io, {})]
2593
+ }), _(lo, {})]
2594
2594
  }) : null;
2595
2595
  };
2596
2596
  function de(t, e, i) {
2597
- return (e = ao(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2597
+ return (e = vo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2598
2598
  }
2599
- function ao(t) {
2600
- var e = lo(t, "string");
2599
+ function vo(t) {
2600
+ var e = yo(t, "string");
2601
2601
  return typeof e == "symbol" ? e : e + "";
2602
2602
  }
2603
- function lo(t, e) {
2603
+ function yo(t, e) {
2604
2604
  if (typeof t != "object" || !t)
2605
2605
  return t;
2606
2606
  var i = t[Symbol.toPrimitive];
@@ -2612,13 +2612,13 @@ function lo(t, e) {
2612
2612
  }
2613
2613
  return (e === "string" ? String : Number)(t);
2614
2614
  }
2615
- class uo {
2615
+ class go {
2616
2616
  constructor(e, i) {
2617
- de(this, "name", "OKSPIN"), de(this, "initialized", !1), de(this, "initCompleter", null), de(this, "context", void 0), de(this, "initParams", void 0), de(this, "adsOverlay", null), de(this, "adsIsShowing", !1), de(this, "lastUnDisplayedAdBreak", null), de(this, "state", Ki()), this.context = e, this.initParams = i;
2617
+ de(this, "name", "OKSPIN"), de(this, "initialized", !1), de(this, "initCompleter", null), de(this, "context", void 0), de(this, "initParams", void 0), de(this, "adsOverlay", null), de(this, "adsIsShowing", !1), de(this, "lastUnDisplayedAdBreak", null), de(this, "state", Xi()), this.context = e, this.initParams = i;
2618
2618
  }
2619
2619
  async init() {
2620
2620
  var e;
2621
- this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), fe(_(zi, {
2621
+ this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), fe(_(Yi, {
2622
2622
  state: this.state
2623
2623
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
2624
2624
  }
@@ -2634,7 +2634,7 @@ class uo {
2634
2634
  };
2635
2635
  }
2636
2636
  async adBreak(e, i) {
2637
- var n, r, o, s, a, d, l, u;
2637
+ var n, r, o, s, a, d, u, l;
2638
2638
  if (!this.initialized || !this.adsOverlay || !i.params.url) {
2639
2639
  (n = e.adBreakDone) == null || n.call(e, {
2640
2640
  breakType: e.type,
@@ -2691,32 +2691,32 @@ class uo {
2691
2691
  breakName: this.lastUnDisplayedAdBreak.type === "preroll" ? "" : this.lastUnDisplayedAdBreak.name,
2692
2692
  breakFormat: this.lastUnDisplayedAdBreak.type === "reward" ? "reward" : "interstitial",
2693
2693
  breakStatus: "ignored"
2694
- }), this.lastUnDisplayedAdBreak = null), (l = e.beforeAd) == null || l.call(e);
2694
+ }), this.lastUnDisplayedAdBreak = null), (u = e.beforeAd) == null || u.call(e);
2695
2695
  const c = () => {
2696
- var y;
2697
- this.adsIsShowing = !1, (y = e.afterAd) == null || y.call(e);
2696
+ var g;
2697
+ this.adsIsShowing = !1, (g = e.afterAd) == null || g.call(e);
2698
2698
  }, h = {
2699
2699
  breakType: e.type,
2700
2700
  breakName: e.name,
2701
2701
  breakFormat: "reward",
2702
2702
  breakStatus: "ignored"
2703
2703
  }, f = () => {
2704
- var y;
2705
- this.adsIsShowing = !1, h.breakStatus = "dismissed", (y = e.adDismissed) == null || y.call(e);
2706
- }, g = () => {
2707
- var y;
2708
- this.adsIsShowing = !1, h.breakStatus = "viewed", (y = e.adViewed) == null || y.call(e);
2704
+ var g;
2705
+ this.adsIsShowing = !1, h.breakStatus = "dismissed", (g = e.adDismissed) == null || g.call(e);
2706
+ }, y = () => {
2707
+ var g;
2708
+ this.adsIsShowing = !1, h.breakStatus = "viewed", (g = e.adViewed) == null || g.call(e);
2709
2709
  }, v = () => {
2710
- var y;
2711
- this.adsIsShowing = !1, (y = e.adBreakDone) == null || y.call(e, h);
2710
+ var g;
2711
+ this.adsIsShowing = !1, (g = e.adBreakDone) == null || g.call(e, h);
2712
2712
  };
2713
2713
  P(() => {
2714
- this.state.afterAd.value = c, this.state.adDismissed.value = f, this.state.adViewed.value = g, this.state.adBreakDone.value = v;
2714
+ this.state.afterAd.value = c, this.state.adDismissed.value = f, this.state.adViewed.value = y, this.state.adBreakDone.value = v;
2715
2715
  });
2716
- const A = () => {
2717
- var y;
2716
+ const w = () => {
2717
+ var g;
2718
2718
  if (this.lastUnDisplayedAdBreak = null, !this.adsOverlay) {
2719
- (y = e.adBreakDone) == null || y.call(e, {
2719
+ (g = e.adBreakDone) == null || g.call(e, {
2720
2720
  breakType: e.type,
2721
2721
  breakName: e.name,
2722
2722
  breakFormat: "reward",
@@ -2725,17 +2725,17 @@ class uo {
2725
2725
  return;
2726
2726
  }
2727
2727
  this.adsIsShowing = !0, P(() => {
2728
- var w;
2729
- this.state.countdown.value = (w = i.params.countdown) != null ? w : 15, this.state.src.value = i.params.url, this.state.mode.value = "reward", this.state.visible.value = !0;
2728
+ var b;
2729
+ this.state.countdown.value = (b = i.params.countdown) != null ? b : 15, this.state.src.value = i.params.url, this.state.mode.value = "reward", this.state.visible.value = !0;
2730
2730
  });
2731
2731
  };
2732
- this.lastUnDisplayedAdBreak = e, (u = e.beforeReward) == null || u.call(e, A);
2732
+ this.lastUnDisplayedAdBreak = e, (l = e.beforeReward) == null || l.call(e, w);
2733
2733
  break;
2734
2734
  }
2735
2735
  }
2736
2736
  }
2737
2737
  }
2738
- const co = () => {
2738
+ const wo = () => {
2739
2739
  const t = k(null), e = k(null), i = k(null), n = k(null), r = k(null), o = k(null), s = k(!1), a = k(null);
2740
2740
  return {
2741
2741
  afterAd: t,
@@ -2747,14 +2747,14 @@ const co = () => {
2747
2747
  visible: s,
2748
2748
  payload: a
2749
2749
  };
2750
- }, ho = G`
2750
+ }, bo = G`
2751
2751
  ${M}
2752
2752
  position: fixed;
2753
2753
  inset: 0;
2754
2754
  z-index: 2147483647;
2755
2755
  display: flex;
2756
2756
  background: #000000;
2757
- `, fo = G`
2757
+ `, Ao = G`
2758
2758
  ${M}
2759
2759
  position: relative;
2760
2760
  width: 100%;
@@ -2762,7 +2762,7 @@ const co = () => {
2762
2762
  display: flex;
2763
2763
  flex-direction: column;
2764
2764
  color: #f7f9fc;
2765
- `, vo = G`
2765
+ `, po = G`
2766
2766
  position: absolute;
2767
2767
  top: 24px;
2768
2768
  left: 24px;
@@ -2773,15 +2773,15 @@ const co = () => {
2773
2773
  border-radius: 999px;
2774
2774
  background: rgba(0, 0, 0, 0.65);
2775
2775
  border: 1px solid rgba(255, 255, 255, 0.08);
2776
- `, yo = G`
2776
+ `, _o = G`
2777
2777
  font-size: 11px;
2778
2778
  letter-spacing: 0.08em;
2779
2779
  text-transform: uppercase;
2780
2780
  color: #c7d4ef;
2781
- `, go = G`
2781
+ `, mo = G`
2782
2782
  font-size: 14px;
2783
2783
  font-weight: 500;
2784
- `, Ao = G`
2784
+ `, So = G`
2785
2785
  ${M}
2786
2786
  flex: 1;
2787
2787
  background: #050505;
@@ -2789,7 +2789,7 @@ const co = () => {
2789
2789
  align-items: center;
2790
2790
  justify-content: center;
2791
2791
  padding: 0;
2792
- `, yi = G`
2792
+ `, bi = G`
2793
2793
  width: 100%;
2794
2794
  height: 100%;
2795
2795
  border: 2px dashed rgba(255, 255, 255, 0.08);
@@ -2798,13 +2798,13 @@ const co = () => {
2798
2798
  justify-content: center;
2799
2799
  color: #6e7da1;
2800
2800
  font-size: 14px;
2801
- `, wo = G`
2801
+ `, Eo = G`
2802
2802
  position: absolute;
2803
2803
  bottom: 32px;
2804
2804
  right: 32px;
2805
2805
  display: flex;
2806
2806
  gap: 12px;
2807
- `, bo = G`
2807
+ `, ko = G`
2808
2808
  min-width: 160px;
2809
2809
  min-height: 48px;
2810
2810
  border-radius: 999px;
@@ -2820,7 +2820,7 @@ const co = () => {
2820
2820
  opacity: 0.4;
2821
2821
  cursor: not-allowed;
2822
2822
  }
2823
- `, po = G`
2823
+ `, Io = G`
2824
2824
  min-width: 120px;
2825
2825
  min-height: 44px;
2826
2826
  border-radius: 999px;
@@ -2830,7 +2830,7 @@ const co = () => {
2830
2830
  font-size: 14px;
2831
2831
  font-weight: 500;
2832
2832
  cursor: pointer;
2833
- `, _o = (t) => {
2833
+ `, xo = (t) => {
2834
2834
  let {
2835
2835
  state: e
2836
2836
  } = t;
@@ -2842,40 +2842,40 @@ const co = () => {
2842
2842
  adLoaded: s,
2843
2843
  adError: a,
2844
2844
  visible: d,
2845
- payload: l
2846
- } = e, [u, c] = we(!1), [h, f] = we(0), [g, v] = we(!1), [A, y] = we(!1), [w, S] = we("Loading next content..."), b = gi(null), m = l.value, E = _t((L) => {
2845
+ payload: u
2846
+ } = e, [l, c] = Ae(!1), [h, f] = Ae(0), [y, v] = Ae(!1), [w, g] = Ae(!1), [b, S] = Ae("Loading next content..."), A = _i(null), m = u.value, E = Et((L) => {
2847
2847
  var C, W, q, I;
2848
2848
  c(!1), d.value = !1, L === "dismiss" ? (C = n.value) == null || C.call(n) : (W = r.value) == null || W.call(r), (q = i.value) == null || q.call(i), (I = o.value) == null || I.call(o);
2849
- }, [d, n, r, i, o]), p = _t(() => {
2849
+ }, [d, n, r, i, o]), p = Et(() => {
2850
2850
  var L;
2851
2851
  c(!1), d.value = !1, (L = a.value) == null || L.call(a);
2852
2852
  }, [d, a]);
2853
- if (Re(() => {
2853
+ if (Te(() => {
2854
2854
  var I;
2855
2855
  if (!d.value || !m) {
2856
- f(0), v(!1), y(!1), S("Loading next content...");
2856
+ f(0), v(!1), g(!1), S("Loading next content...");
2857
2857
  return;
2858
2858
  }
2859
2859
  const L = m.mode === "reward" ? 15 : 0, C = Math.max(Math.floor((I = m.countdown) != null ? I : L), 0);
2860
- if (f(C), y(m.mode === "reward" ? C === 0 : !0), v(m.mode === "interstitial" ? C === 0 : !1), C === 0)
2860
+ if (f(C), g(m.mode === "reward" ? C === 0 : !0), v(m.mode === "interstitial" ? C === 0 : !1), C === 0)
2861
2861
  return;
2862
2862
  let W = C;
2863
2863
  const q = window.setInterval(() => {
2864
- W -= 1, f(Math.max(W, 0)), W <= 0 && (window.clearInterval(q), m.mode === "reward" ? y(!0) : v(!0));
2864
+ W -= 1, f(Math.max(W, 0)), W <= 0 && (window.clearInterval(q), m.mode === "reward" ? g(!0) : v(!0));
2865
2865
  }, 1e3);
2866
2866
  return () => {
2867
2867
  window.clearInterval(q);
2868
2868
  };
2869
- }, [d.value, m, E]), Re(() => {
2869
+ }, [d.value, m, E]), Te(() => {
2870
2870
  var q;
2871
2871
  if (!d.value || !m)
2872
2872
  return;
2873
- const L = b.current;
2873
+ const L = A.current;
2874
2874
  if (!L)
2875
2875
  return;
2876
2876
  if (L.innerHTML = "", S("Loading next content..."), c(!1), m.testMode) {
2877
2877
  const I = document.createElement("div");
2878
- I.className = yi, I.innerText = "Preview slot placeholder", L.appendChild(I), c(!0), (q = s.value) == null || q.call(s);
2878
+ I.className = bi, I.innerText = "Preview slot placeholder", L.appendChild(I), c(!0), (q = s.value) == null || q.call(s);
2879
2879
  return;
2880
2880
  }
2881
2881
  if (typeof window == "undefined") {
@@ -2904,37 +2904,37 @@ const co = () => {
2904
2904
  };
2905
2905
  }, [d.value, m, s, p]), !d.value || !m)
2906
2906
  return null;
2907
- const se = m.mode === "reward" ? "Next content unlocking" : "Content paused", be = h > 0 ? `Content resumes in ${h}s` : "Content ready";
2907
+ const se = m.mode === "reward" ? "Next content unlocking" : "Content paused", pe = h > 0 ? `Content resumes in ${h}s` : "Content ready";
2908
2908
  return _("div", {
2909
- className: ho,
2909
+ className: bo,
2910
2910
  children: _("div", {
2911
- className: fo,
2911
+ className: Ao,
2912
2912
  children: [_("div", {
2913
- className: vo,
2913
+ className: po,
2914
2914
  children: [_("div", {
2915
- className: yo,
2915
+ className: _o,
2916
2916
  children: se
2917
2917
  }), _("div", {
2918
- className: go,
2919
- children: be
2918
+ className: mo,
2919
+ children: pe
2920
2920
  })]
2921
2921
  }), _("div", {
2922
- className: Ao,
2923
- ref: b,
2924
- children: !u && _("div", {
2925
- className: yi,
2926
- children: w
2922
+ className: So,
2923
+ ref: A,
2924
+ children: !l && _("div", {
2925
+ className: bi,
2926
+ children: b
2927
2927
  })
2928
2928
  }), _("div", {
2929
- className: wo,
2929
+ className: Eo,
2930
2930
  children: m.mode === "reward" ? _("button", {
2931
- className: bo,
2931
+ className: ko,
2932
2932
  type: "button",
2933
2933
  onClick: () => E("viewed"),
2934
- disabled: !A,
2935
- children: A ? "Continue" : `Continue in ${h}s`
2936
- }) : g && _("button", {
2937
- className: po,
2934
+ disabled: !w,
2935
+ children: w ? "Continue" : `Continue in ${h}s`
2936
+ }) : y && _("button", {
2937
+ className: Io,
2938
2938
  type: "button",
2939
2939
  onClick: () => E("viewed"),
2940
2940
  children: "Continue"
@@ -2944,13 +2944,13 @@ const co = () => {
2944
2944
  });
2945
2945
  };
2946
2946
  function K(t, e, i) {
2947
- return (e = mo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2947
+ return (e = Ro(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2948
2948
  }
2949
- function mo(t) {
2950
- var e = So(t, "string");
2949
+ function Ro(t) {
2950
+ var e = To(t, "string");
2951
2951
  return typeof e == "symbol" ? e : e + "";
2952
2952
  }
2953
- function So(t, e) {
2953
+ function To(t, e) {
2954
2954
  if (typeof t != "object" || !t)
2955
2955
  return t;
2956
2956
  var i = t[Symbol.toPrimitive];
@@ -2962,9 +2962,9 @@ function So(t, e) {
2962
2962
  }
2963
2963
  return (e === "string" ? String : Number)(t);
2964
2964
  }
2965
- class Eo {
2965
+ class Co {
2966
2966
  constructor(e, i) {
2967
- if (K(this, "name", "ADSENSE_BANNER_AS_AFG"), K(this, "initialized", !1), K(this, "initCompleter", null), K(this, "context", void 0), K(this, "contextInfo", void 0), K(this, "initParams", void 0), K(this, "defaultCountdown", 5), K(this, "adsOverlay", null), K(this, "adsIsShowing", !1), K(this, "lastUnDisplayedAdBreak", null), K(this, "requestCounter", 0), K(this, "scriptPromise", null), K(this, "scriptReady", !1), K(this, "scriptFailed", !1), K(this, "state", co()), this.context = e, this.contextInfo = this.context.getContextInfo(), this.initParams = i, typeof window != "undefined") {
2967
+ if (K(this, "name", "ADSENSE_BANNER_AS_AFG"), K(this, "initialized", !1), K(this, "initCompleter", null), K(this, "context", void 0), K(this, "contextInfo", void 0), K(this, "initParams", void 0), K(this, "defaultCountdown", 5), K(this, "adsOverlay", null), K(this, "adsIsShowing", !1), K(this, "lastUnDisplayedAdBreak", null), K(this, "requestCounter", 0), K(this, "scriptPromise", null), K(this, "scriptReady", !1), K(this, "scriptFailed", !1), K(this, "state", wo()), this.context = e, this.contextInfo = this.context.getContextInfo(), this.initParams = i, typeof window != "undefined") {
2968
2968
  const n = window;
2969
2969
  n.adsbygoogle = n.adsbygoogle || [];
2970
2970
  }
@@ -2972,7 +2972,7 @@ class Eo {
2972
2972
  async init() {
2973
2973
  var e;
2974
2974
  if (typeof document != "undefined") {
2975
- this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-banner-as-afg"), fe(_(_o, {
2975
+ this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-banner-as-afg"), fe(_(xo, {
2976
2976
  state: this.state
2977
2977
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay);
2978
2978
  try {
@@ -3041,7 +3041,7 @@ class Eo {
3041
3041
  this.state.payload.value = r, this.state.visible.value = !0;
3042
3042
  }
3043
3043
  adBreak(e, i) {
3044
- var s, a, d, l, u, c, h, f, g;
3044
+ var s, a, d, u, l, c, h, f, y;
3045
3045
  const n = e.type === "preroll" ? "" : e.name, r = e.type === "reward" ? "reward" : "interstitial";
3046
3046
  if (!this.initialized || !this.adsOverlay) {
3047
3047
  (s = e.adBreakDone) == null || s.call(e, {
@@ -3073,7 +3073,7 @@ class Eo {
3073
3073
  }
3074
3074
  switch (e.type) {
3075
3075
  case "preroll": {
3076
- (l = e.adBreakDone) == null || l.call(e, {
3076
+ (u = e.adBreakDone) == null || u.call(e, {
3077
3077
  breakType: e.type,
3078
3078
  breakName: "",
3079
3079
  breakFormat: "interstitial",
@@ -3085,24 +3085,24 @@ class Eo {
3085
3085
  case "browse":
3086
3086
  case "next":
3087
3087
  case "pause": {
3088
- (u = e.beforeAd) == null || u.call(e);
3088
+ (l = e.beforeAd) == null || l.call(e);
3089
3089
  const v = {
3090
3090
  breakType: e.type,
3091
3091
  breakName: e.name,
3092
3092
  breakFormat: "interstitial",
3093
3093
  breakStatus: "viewed"
3094
- }, A = () => {
3094
+ }, w = () => {
3095
3095
  var S;
3096
3096
  this.adsIsShowing = !1, (S = e.afterAd) == null || S.call(e);
3097
- }, y = () => {
3097
+ }, g = () => {
3098
3098
  var S;
3099
3099
  this.adsIsShowing = !1, (S = e.adBreakDone) == null || S.call(e, v);
3100
- }, w = () => {
3101
- var S, b;
3102
- this.adsIsShowing = !1, v.breakStatus = "noAdPreloaded", (S = e.afterAd) == null || S.call(e), (b = e.adBreakDone) == null || b.call(e, v);
3100
+ }, b = () => {
3101
+ var S, A;
3102
+ this.adsIsShowing = !1, v.breakStatus = "noAdPreloaded", (S = e.afterAd) == null || S.call(e), (A = e.adBreakDone) == null || A.call(e, v);
3103
3103
  };
3104
3104
  P(() => {
3105
- this.adsIsShowing = !0, this.state.afterAd.value = A, this.state.adBreakDone.value = y, this.state.adDismissed.value = null, this.state.adViewed.value = null, this.state.adError.value = w, this.showBannerOverlay("interstitial", o);
3105
+ this.adsIsShowing = !0, this.state.afterAd.value = w, this.state.adBreakDone.value = g, this.state.adDismissed.value = null, this.state.adViewed.value = null, this.state.adError.value = b, this.showBannerOverlay("interstitial", o);
3106
3106
  });
3107
3107
  break;
3108
3108
  }
@@ -3118,24 +3118,24 @@ class Eo {
3118
3118
  breakName: e.name,
3119
3119
  breakFormat: "reward",
3120
3120
  breakStatus: "ignored"
3121
- }, A = () => {
3121
+ }, w = () => {
3122
3122
  var E;
3123
3123
  this.adsIsShowing = !1, (E = e.afterAd) == null || E.call(e);
3124
- }, y = () => {
3124
+ }, g = () => {
3125
3125
  var E;
3126
3126
  this.adsIsShowing = !1, v.breakStatus = "dismissed", (E = e.adDismissed) == null || E.call(e);
3127
- }, w = () => {
3127
+ }, b = () => {
3128
3128
  var E;
3129
3129
  this.adsIsShowing = !1, v.breakStatus = "viewed", (E = e.adViewed) == null || E.call(e);
3130
3130
  }, S = () => {
3131
3131
  var E;
3132
3132
  this.adsIsShowing = !1, (E = e.adBreakDone) == null || E.call(e, v);
3133
- }, b = () => {
3133
+ }, A = () => {
3134
3134
  var E, p;
3135
3135
  this.adsIsShowing = !1, v.breakStatus = "noAdPreloaded", (E = e.afterAd) == null || E.call(e), (p = e.adBreakDone) == null || p.call(e, v);
3136
3136
  };
3137
3137
  P(() => {
3138
- this.state.afterAd.value = A, this.state.adDismissed.value = y, this.state.adViewed.value = w, this.state.adBreakDone.value = S, this.state.adError.value = b;
3138
+ this.state.afterAd.value = w, this.state.adDismissed.value = g, this.state.adViewed.value = b, this.state.adBreakDone.value = S, this.state.adError.value = A;
3139
3139
  });
3140
3140
  const m = () => {
3141
3141
  var E, p;
@@ -3152,23 +3152,23 @@ class Eo {
3152
3152
  this.showBannerOverlay("reward", o);
3153
3153
  });
3154
3154
  };
3155
- this.lastUnDisplayedAdBreak = e, (g = e.beforeReward) == null || g.call(e, m);
3155
+ this.lastUnDisplayedAdBreak = e, (y = e.beforeReward) == null || y.call(e, m);
3156
3156
  break;
3157
3157
  }
3158
3158
  }
3159
3159
  }
3160
3160
  }
3161
- const ke = {};
3161
+ const Ie = {};
3162
3162
  window.addEventListener("message", (t) => {
3163
- t.origin !== "https://ads.appsrockets.com" && t.origin !== "https://stg-ads.appsrockets.com" || ke[t.data.type] && ke[t.data.type].forEach((e) => {
3163
+ t.origin !== "https://ads.appsrockets.com" && t.origin !== "https://stg-ads.appsrockets.com" || Ie[t.data.type] && Ie[t.data.type].forEach((e) => {
3164
3164
  e(t.data.data);
3165
3165
  });
3166
3166
  });
3167
- const _e = (t, e) => {
3168
- Re(() => (ke[t] || (ke[t] = /* @__PURE__ */ new Set()), ke[t].add(e), () => {
3169
- ke[t].delete(e);
3167
+ const me = (t, e) => {
3168
+ Te(() => (Ie[t] || (Ie[t] = /* @__PURE__ */ new Set()), Ie[t].add(e), () => {
3169
+ Ie[t].delete(e);
3170
3170
  }), [t, e]);
3171
- }, Wi = () => {
3171
+ }, Qi = () => {
3172
3172
  const t = k(), e = k(), i = k(), n = k(), r = k(), o = k(), s = k(), a = k(!1), d = k("");
3173
3173
  return {
3174
3174
  afterAd: t,
@@ -3181,7 +3181,7 @@ const _e = (t, e) => {
3181
3181
  visible: a,
3182
3182
  src: d
3183
3183
  };
3184
- }, ko = G`
3184
+ }, Oo = G`
3185
3185
  ${M}
3186
3186
  position: fixed;
3187
3187
  z-index: 2147483647;
@@ -3200,7 +3200,7 @@ const _e = (t, e) => {
3200
3200
  width: 100%;
3201
3201
  height: 100%;
3202
3202
  }
3203
- `, Hi = (t) => {
3203
+ `, Zi = (t) => {
3204
3204
  let {
3205
3205
  state: e
3206
3206
  } = t;
@@ -3212,24 +3212,24 @@ const _e = (t, e) => {
3212
3212
  adLoaded: s,
3213
3213
  adLinkClicked: a,
3214
3214
  visible: d,
3215
- src: l
3216
- } = e, [u, c] = we(!1), h = (g) => {
3217
- var v, A, y, w;
3218
- c(!1), d.value = !1, g === "dismiss" ? (v = n.value) == null || v.call(n) : g === "viewed" && ((A = r.value) == null || A.call(r)), (y = i.value) == null || y.call(i), (w = o.value) == null || w.call(o);
3215
+ src: u
3216
+ } = e, [l, c] = Ae(!1), h = (y) => {
3217
+ var v, w, g, b;
3218
+ c(!1), d.value = !1, y === "dismiss" ? (v = n.value) == null || v.call(n) : y === "viewed" && ((w = r.value) == null || w.call(r)), (g = i.value) == null || g.call(i), (b = o.value) == null || b.call(o);
3219
3219
  }, f = () => {
3220
- var g;
3221
- (g = s.value) == null || g.call(s);
3220
+ var y;
3221
+ (y = s.value) == null || y.call(s);
3222
3222
  };
3223
- return _e("appsrockets_ad_dismissed", () => h("dismiss")), _e("appsrockets_ad_rewarded", () => h("viewed")), _e("appsrockets_ad_completed", () => h("viewed")), _e("appsrockets_ad_skipped", () => h("viewed")), _e("appsrockets_ad_clicked", (g) => {
3223
+ return me("appsrockets_ad_dismissed", () => h("dismiss")), me("appsrockets_ad_rewarded", () => h("viewed")), me("appsrockets_ad_completed", () => h("viewed")), me("appsrockets_ad_skipped", () => h("viewed")), me("appsrockets_ad_clicked", (y) => {
3224
3224
  var v;
3225
- return (v = a.value) == null ? void 0 : v.call(a, g);
3226
- }), _e("appsrockets_ad_loaded", () => c(!0)), d.value ? _("div", {
3227
- className: ko,
3225
+ return (v = a.value) == null ? void 0 : v.call(a, y);
3226
+ }), me("appsrockets_ad_loaded", () => c(!0)), d.value ? _("div", {
3227
+ className: Oo,
3228
3228
  style: {
3229
- display: u ? "flex" : "none"
3229
+ display: l ? "flex" : "none"
3230
3230
  },
3231
3231
  children: d.value && _("iframe", {
3232
- src: l.value,
3232
+ src: u.value,
3233
3233
  onLoad: f,
3234
3234
  allowFullScreen: !0,
3235
3235
  allow: "autoplay",
@@ -3238,13 +3238,13 @@ const _e = (t, e) => {
3238
3238
  }) : null;
3239
3239
  };
3240
3240
  function le(t, e, i) {
3241
- return (e = Io(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3241
+ return (e = Do(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3242
3242
  }
3243
- function Io(t) {
3244
- var e = xo(t, "string");
3243
+ function Do(t) {
3244
+ var e = Po(t, "string");
3245
3245
  return typeof e == "symbol" ? e : e + "";
3246
3246
  }
3247
- function xo(t, e) {
3247
+ function Po(t, e) {
3248
3248
  if (typeof t != "object" || !t)
3249
3249
  return t;
3250
3250
  var i = t[Symbol.toPrimitive];
@@ -3256,9 +3256,9 @@ function xo(t, e) {
3256
3256
  }
3257
3257
  return (e === "string" ? String : Number)(t);
3258
3258
  }
3259
- class Ro {
3259
+ class No {
3260
3260
  constructor(e, i) {
3261
- le(this, "name", "APPSROCKETS"), le(this, "initialized", !1), le(this, "initCompleter", null), le(this, "context", void 0), le(this, "adsOverlay", null), le(this, "adsIsShowing", !1), le(this, "lastUnDisplayedAdBreak", null), le(this, "state", Wi()), le(this, "processUrl", (n, r) => {
3261
+ le(this, "name", "APPSROCKETS"), le(this, "initialized", !1), le(this, "initCompleter", null), le(this, "context", void 0), le(this, "adsOverlay", null), le(this, "adsIsShowing", !1), le(this, "lastUnDisplayedAdBreak", null), le(this, "state", Qi()), le(this, "processUrl", (n, r) => {
3262
3262
  var d;
3263
3263
  const o = this.context.getContextInfo(), s = new URL(n), a = new URLSearchParams(s.search);
3264
3264
  return a.has("joliSource") || a.set("joliSource", o.joliSource), a.get("osType") || a.set("osType", o.osType), a.get("runtimeType") || a.set("runtimeType", o.runtimeType), a.get("mode") || a.set("mode", "AFG"), a.get("deviceId") || a.set("deviceId", o.deviceId), a.get("statusBarHeight") || a.set("statusBarHeight", ((d = this.context.getWindowInfo().statusBarHeight) != null ? d : 0).toString()), a.get("adsType") || a.set("adsType", r), s.search = a.toString(), s.toString();
@@ -3266,7 +3266,7 @@ class Ro {
3266
3266
  }
3267
3267
  async init() {
3268
3268
  var e;
3269
- this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), fe(_(Hi, {
3269
+ this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), fe(_(Zi, {
3270
3270
  state: this.state
3271
3271
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
3272
3272
  }
@@ -3282,7 +3282,7 @@ class Ro {
3282
3282
  };
3283
3283
  }
3284
3284
  adBreak(e, i) {
3285
- var o, s, a, d, l, u, c, h;
3285
+ var o, s, a, d, u, l, c, h;
3286
3286
  if (!this.initialized || !this.adsOverlay || !i.params.url) {
3287
3287
  (o = e.adBreakDone) == null || o.call(e, {
3288
3288
  breakType: e.type,
@@ -3302,8 +3302,8 @@ class Ro {
3302
3302
  return;
3303
3303
  }
3304
3304
  const n = (f) => {
3305
- var g, v;
3306
- (v = (g = this.context).handleLinkClicked) == null || v.call(g, f);
3305
+ var y, v;
3306
+ (v = (y = this.context).handleLinkClicked) == null || v.call(y, f);
3307
3307
  }, r = e.type === "reward" ? "REWARD" : "INTERSTITIAL";
3308
3308
  switch (e.type) {
3309
3309
  case "preroll": {
@@ -3321,19 +3321,19 @@ class Ro {
3321
3321
  case "pause": {
3322
3322
  (d = e.beforeAd) == null || d.call(e);
3323
3323
  const f = () => {
3324
- var A;
3325
- this.adsIsShowing = !1, (A = e.afterAd) == null || A.call(e);
3326
- }, g = () => {
3327
- var A;
3328
- this.adsIsShowing = !1, (A = e.adBreakDone) == null || A.call(e, {
3324
+ var w;
3325
+ this.adsIsShowing = !1, (w = e.afterAd) == null || w.call(e);
3326
+ }, y = () => {
3327
+ var w;
3328
+ this.adsIsShowing = !1, (w = e.adBreakDone) == null || w.call(e, {
3329
3329
  breakType: e.type,
3330
3330
  breakName: e.name,
3331
3331
  breakFormat: "interstitial",
3332
3332
  breakStatus: "viewed"
3333
3333
  });
3334
3334
  }, v = () => {
3335
- var A;
3336
- this.adsIsShowing = !1, (A = e.adBreakDone) == null || A.call(e, {
3335
+ var w;
3336
+ this.adsIsShowing = !1, (w = e.adBreakDone) == null || w.call(e, {
3337
3337
  breakType: e.type,
3338
3338
  breakName: e.name,
3339
3339
  breakFormat: "interstitial",
@@ -3341,44 +3341,44 @@ class Ro {
3341
3341
  });
3342
3342
  };
3343
3343
  P(() => {
3344
- this.adsIsShowing = !0, this.state.afterAd.value = f, this.state.adBreakDone.value = g, this.state.src.value = this.processUrl(i.params.url, r), this.state.adLinkClicked.value = n, this.state.adError.value = v, this.state.visible.value = !0;
3344
+ this.adsIsShowing = !0, this.state.afterAd.value = f, this.state.adBreakDone.value = y, this.state.src.value = this.processUrl(i.params.url, r), this.state.adLinkClicked.value = n, this.state.adError.value = v, this.state.visible.value = !0;
3345
3345
  });
3346
3346
  break;
3347
3347
  }
3348
3348
  case "reward": {
3349
- this.lastUnDisplayedAdBreak && ((u = (l = this.lastUnDisplayedAdBreak).adBreakDone) == null || u.call(l, {
3349
+ this.lastUnDisplayedAdBreak && ((l = (u = this.lastUnDisplayedAdBreak).adBreakDone) == null || l.call(u, {
3350
3350
  breakType: this.lastUnDisplayedAdBreak.type,
3351
3351
  breakName: this.lastUnDisplayedAdBreak.type === "preroll" ? "" : this.lastUnDisplayedAdBreak.name,
3352
3352
  breakFormat: this.lastUnDisplayedAdBreak.type === "reward" ? "reward" : "interstitial",
3353
3353
  breakStatus: "ignored"
3354
3354
  }), this.lastUnDisplayedAdBreak = null), (c = e.beforeAd) == null || c.call(e);
3355
3355
  const f = () => {
3356
- var b;
3357
- this.adsIsShowing = !1, (b = e.afterAd) == null || b.call(e);
3358
- }, g = {
3356
+ var A;
3357
+ this.adsIsShowing = !1, (A = e.afterAd) == null || A.call(e);
3358
+ }, y = {
3359
3359
  breakType: e.type,
3360
3360
  breakName: e.name,
3361
3361
  breakFormat: "reward",
3362
3362
  breakStatus: "ignored"
3363
3363
  }, v = () => {
3364
- var b;
3365
- this.adsIsShowing = !1, g.breakStatus = "dismissed", (b = e.adDismissed) == null || b.call(e);
3366
- }, A = () => {
3367
- var b;
3368
- this.adsIsShowing = !1, g.breakStatus = "viewed", (b = e.adViewed) == null || b.call(e);
3369
- }, y = () => {
3370
- var b;
3371
- this.adsIsShowing = !1, (b = e.adBreakDone) == null || b.call(e, g);
3364
+ var A;
3365
+ this.adsIsShowing = !1, y.breakStatus = "dismissed", (A = e.adDismissed) == null || A.call(e);
3372
3366
  }, w = () => {
3373
- this.adsIsShowing = !1, g.breakStatus = "noAdPreloaded";
3367
+ var A;
3368
+ this.adsIsShowing = !1, y.breakStatus = "viewed", (A = e.adViewed) == null || A.call(e);
3369
+ }, g = () => {
3370
+ var A;
3371
+ this.adsIsShowing = !1, (A = e.adBreakDone) == null || A.call(e, y);
3372
+ }, b = () => {
3373
+ this.adsIsShowing = !1, y.breakStatus = "noAdPreloaded";
3374
3374
  };
3375
3375
  P(() => {
3376
- this.state.afterAd.value = f, this.state.adDismissed.value = v, this.state.adViewed.value = A, this.state.adBreakDone.value = y, this.state.adLinkClicked.value = n, this.state.adError.value = w;
3376
+ this.state.afterAd.value = f, this.state.adDismissed.value = v, this.state.adViewed.value = w, this.state.adBreakDone.value = g, this.state.adLinkClicked.value = n, this.state.adError.value = b;
3377
3377
  });
3378
3378
  const S = () => {
3379
- var b;
3379
+ var A;
3380
3380
  if (this.lastUnDisplayedAdBreak = null, !this.adsOverlay) {
3381
- (b = e.adBreakDone) == null || b.call(e, {
3381
+ (A = e.adBreakDone) == null || A.call(e, {
3382
3382
  breakType: e.type,
3383
3383
  breakName: e.name,
3384
3384
  breakFormat: "reward",
@@ -3396,7 +3396,7 @@ class Ro {
3396
3396
  }
3397
3397
  }
3398
3398
  }
3399
- const Ji = () => {
3399
+ const en = () => {
3400
3400
  window.googletag = window.googletag || {
3401
3401
  cmd: []
3402
3402
  }, window.googletag.pubadsReady || window.googletag.cmd.push(() => {
@@ -3404,13 +3404,13 @@ const Ji = () => {
3404
3404
  });
3405
3405
  };
3406
3406
  function j(t, e, i) {
3407
- return (e = To(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3407
+ return (e = Lo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3408
3408
  }
3409
- function To(t) {
3410
- var e = Co(t, "string");
3409
+ function Lo(t) {
3410
+ var e = Bo(t, "string");
3411
3411
  return typeof e == "symbol" ? e : e + "";
3412
3412
  }
3413
- function Co(t, e) {
3413
+ function Bo(t, e) {
3414
3414
  if (typeof t != "object" || !t)
3415
3415
  return t;
3416
3416
  var i = t[Symbol.toPrimitive];
@@ -3422,7 +3422,7 @@ function Co(t, e) {
3422
3422
  }
3423
3423
  return (e === "string" ? String : Number)(t);
3424
3424
  }
3425
- class Xi {
3425
+ let tn = class {
3426
3426
  constructor(e, i, n) {
3427
3427
  j(this, "adUnit", void 0), j(this, "project", void 0), j(this, "keyValue", void 0), j(this, "adsContext", null), j(this, "rewardedSlot", null), j(this, "rewardedPayload", null), j(this, "readyEvent", null), j(this, "withCommand", function() {
3428
3428
  googletag.cmd.push(...arguments);
@@ -3471,8 +3471,8 @@ class Xi {
3471
3471
  else {
3472
3472
  const o = (s) => {
3473
3473
  s.slot === this.rewardedSlot && this.adsContext && (googletag.pubads().removeEventListener("rewardedSlotReady", o), this.readyEvent = s, this.adsContext.beforeReward(() => {
3474
- var a, d, l;
3475
- (d = (a = this.adsContext) == null ? void 0 : a.beforeAd) == null || d.call(a), (l = this.readyEvent) == null || l.makeRewardedVisible();
3474
+ var a, d, u;
3475
+ (d = (a = this.adsContext) == null ? void 0 : a.beforeAd) == null || d.call(a), (u = this.readyEvent) == null || u.makeRewardedVisible();
3476
3476
  }));
3477
3477
  };
3478
3478
  googletag.pubads().addEventListener("rewardedSlotReady", o), window.setTimeout(() => {
@@ -3480,19 +3480,19 @@ class Xi {
3480
3480
  }, 500);
3481
3481
  }
3482
3482
  });
3483
- }), this.adUnit = e, this.project = i, this.keyValue = n, Ji(), this.withCommand(() => {
3483
+ }), this.adUnit = e, this.project = i, this.keyValue = n, en(), this.withCommand(() => {
3484
3484
  this.init();
3485
3485
  });
3486
3486
  }
3487
- }
3487
+ };
3488
3488
  function J(t, e, i) {
3489
- return (e = Oo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3489
+ return (e = Mo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3490
3490
  }
3491
- function Oo(t) {
3492
- var e = Do(t, "string");
3491
+ function Mo(t) {
3492
+ var e = $o(t, "string");
3493
3493
  return typeof e == "symbol" ? e : e + "";
3494
3494
  }
3495
- function Do(t, e) {
3495
+ function $o(t, e) {
3496
3496
  if (typeof t != "object" || !t)
3497
3497
  return t;
3498
3498
  var i = t[Symbol.toPrimitive];
@@ -3504,7 +3504,7 @@ function Do(t, e) {
3504
3504
  }
3505
3505
  return (e === "string" ? String : Number)(t);
3506
3506
  }
3507
- class Po {
3507
+ class Fo {
3508
3508
  constructor(e, i, n) {
3509
3509
  var r = this;
3510
3510
  J(this, "adUnit", void 0), J(this, "project", void 0), J(this, "keyValue", void 0), J(this, "adsContext", null), J(this, "gamingInterstitialSlot", null), J(this, "readyEvent", null), J(this, "isRetrying", !1), J(this, "withCommand", function() {
@@ -3545,19 +3545,19 @@ class Po {
3545
3545
  }), this.isRetrying = !1;
3546
3546
  }, 31e3)));
3547
3547
  });
3548
- }), Ji(), this.adUnit = e, this.project = i, this.keyValue = n, this.withCommand(() => {
3548
+ }), en(), this.adUnit = e, this.project = i, this.keyValue = n, this.withCommand(() => {
3549
3549
  this.init();
3550
3550
  });
3551
3551
  }
3552
3552
  }
3553
- function Ae(t, e, i) {
3554
- return (e = No(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3553
+ function be(t, e, i) {
3554
+ return (e = Uo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3555
3555
  }
3556
- function No(t) {
3557
- var e = Lo(t, "string");
3556
+ function Uo(t) {
3557
+ var e = jo(t, "string");
3558
3558
  return typeof e == "symbol" ? e : e + "";
3559
3559
  }
3560
- function Lo(t, e) {
3560
+ function jo(t, e) {
3561
3561
  if (typeof t != "object" || !t)
3562
3562
  return t;
3563
3563
  var i = t[Symbol.toPrimitive];
@@ -3569,9 +3569,9 @@ function Lo(t, e) {
3569
3569
  }
3570
3570
  return (e === "string" ? String : Number)(t);
3571
3571
  }
3572
- class Bo {
3572
+ class Vo {
3573
3573
  constructor(e, i) {
3574
- Ae(this, "name", "GOOGLE_GPT"), Ae(this, "context", void 0), Ae(this, "contextInfo", void 0), Ae(this, "initParams", void 0), Ae(this, "rewardAdManager", void 0), Ae(this, "interstitialManager", void 0), Ae(this, "insertScript", () => {
3574
+ be(this, "name", "GOOGLE_GPT"), be(this, "context", void 0), be(this, "contextInfo", void 0), be(this, "initParams", void 0), be(this, "rewardAdManager", void 0), be(this, "interstitialManager", void 0), be(this, "insertScript", () => {
3575
3575
  const n = "jolibox-google-gpt";
3576
3576
  let r = document.getElementById(n);
3577
3577
  r || (r = window.document.createElement("script"), r.id = n, r.async = !0, r.src = "https://securepubads.g.doubleclick.net/tag/js/gpt.js", r.crossOrigin = "anonymous", document.head.appendChild(r));
@@ -3579,7 +3579,7 @@ class Bo {
3579
3579
  }
3580
3580
  async init() {
3581
3581
  const e = this.contextInfo.testAdsMode ? "/22639388115/rewarded_web_example" : this.initParams.rewardedSlot, i = this.contextInfo.testAdsMode ? "/6355419/Travel/Europe/France/Paris" : this.initParams.interstitialSlot, r = `minigame-${this.contextInfo.runtimeType === "APP" ? "app" : "h5"}`;
3582
- e && (this.rewardAdManager = new Xi(e, r, this.initParams.keyValue)), i && (this.interstitialManager = new Po(i, r, this.initParams.keyValue));
3582
+ e && (this.rewardAdManager = new tn(e, r, this.initParams.keyValue)), i && (this.interstitialManager = new Fo(i, r, this.initParams.keyValue));
3583
3583
  }
3584
3584
  adConfig(e, i) {
3585
3585
  }
@@ -3650,14 +3650,14 @@ class Bo {
3650
3650
  }
3651
3651
  }
3652
3652
  }
3653
- function bt(t, e, i) {
3654
- return (e = Mo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3653
+ function _t(t, e, i) {
3654
+ return (e = Go(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3655
3655
  }
3656
- function Mo(t) {
3657
- var e = Uo(t, "string");
3656
+ function Go(t) {
3657
+ var e = qo(t, "string");
3658
3658
  return typeof e == "symbol" ? e : e + "";
3659
3659
  }
3660
- function Uo(t, e) {
3660
+ function qo(t, e) {
3661
3661
  if (typeof t != "object" || !t)
3662
3662
  return t;
3663
3663
  var i = t[Symbol.toPrimitive];
@@ -3669,10 +3669,10 @@ function Uo(t, e) {
3669
3669
  }
3670
3670
  return (e === "string" ? String : Number)(t);
3671
3671
  }
3672
- class $o {
3672
+ class Ko {
3673
3673
  constructor(e) {
3674
3674
  let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GAME";
3675
- bt(this, "context", void 0), bt(this, "placement", "GAME"), bt(this, "contextInfo", void 0), this.context = e, this.placement = i, this.contextInfo = this.context.getContextInfo();
3675
+ _t(this, "context", void 0), _t(this, "placement", "GAME"), _t(this, "contextInfo", void 0), this.context = e, this.placement = i, this.contextInfo = this.context.getContextInfo();
3676
3676
  }
3677
3677
  getLocation() {
3678
3678
  const e = new URLSearchParams(window.location.search), i = {};
@@ -3686,7 +3686,7 @@ class $o {
3686
3686
  getDevice() {
3687
3687
  var e, i, n, r;
3688
3688
  return {
3689
- platform: (e = this.contextInfo.platform) != null ? e : mi.WebSDK,
3689
+ platform: (e = this.contextInfo.platform) != null ? e : xi.WebSDK,
3690
3690
  os: this.contextInfo.osType + "_" + this.contextInfo.runtimeType,
3691
3691
  appVersion: "1.0.0",
3692
3692
  // mock
@@ -3705,7 +3705,7 @@ class $o {
3705
3705
  protocolVersion: "1.0.0",
3706
3706
  events: [{
3707
3707
  name: e,
3708
- type: pi.System,
3708
+ type: ki.System,
3709
3709
  location: this.getLocation(),
3710
3710
  target: null,
3711
3711
  extra: i,
@@ -3713,19 +3713,19 @@ class $o {
3713
3713
  userId: (o = this.contextInfo.userId) != null ? o : null
3714
3714
  }],
3715
3715
  device: this.getDevice(),
3716
- project: _i.WebSDK
3716
+ project: Ii.WebSDK
3717
3717
  };
3718
- return Dn(r);
3718
+ return $n(r);
3719
3719
  }
3720
3720
  }
3721
3721
  function z(t, e, i) {
3722
- return (e = Fo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3722
+ return (e = zo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3723
3723
  }
3724
- function Fo(t) {
3725
- var e = jo(t, "string");
3724
+ function zo(t) {
3725
+ var e = Wo(t, "string");
3726
3726
  return typeof e == "symbol" ? e : e + "";
3727
3727
  }
3728
- function jo(t, e) {
3728
+ function Wo(t, e) {
3729
3729
  if (typeof t != "object" || !t)
3730
3730
  return t;
3731
3731
  var i = t[Symbol.toPrimitive];
@@ -3737,9 +3737,9 @@ function jo(t, e) {
3737
3737
  }
3738
3738
  return (e === "string" ? String : Number)(t);
3739
3739
  }
3740
- class Mt {
3740
+ class Ut {
3741
3741
  constructor(e) {
3742
- z(this, "context", void 0), z(this, "adsTrackSerializer", void 0), z(this, "contextInfo", void 0), this.context = e, this.contextInfo = e.getContextInfo(), this.adsTrackSerializer = new $o(this.context);
3742
+ z(this, "context", void 0), z(this, "adsTrackSerializer", void 0), z(this, "contextInfo", void 0), this.context = e, this.contextInfo = e.getContextInfo(), this.adsTrackSerializer = new Ko(this.context);
3743
3743
  }
3744
3744
  getRequestContextData(e) {
3745
3745
  var r, o;
@@ -3775,7 +3775,7 @@ class Mt {
3775
3775
  };
3776
3776
  }
3777
3777
  }
3778
- class Yi {
3778
+ class nn {
3779
3779
  constructor(e, i) {
3780
3780
  var n = this;
3781
3781
  z(this, "context", void 0), z(this, "contextInfo", void 0), z(this, "requestContext", void 0), z(this, "pendingAFGAdsInfo", {
@@ -3800,7 +3800,7 @@ class Yi {
3800
3800
  }
3801
3801
  const a = r === "afv" ? void 0 : "cached", {
3802
3802
  data: d,
3803
- code: l
3803
+ code: u
3804
3804
  } = await this.context.httpClient.post("/api/ads/info", {
3805
3805
  data: {
3806
3806
  contextData: this.requestContext.getRequestContextData(o),
@@ -3810,8 +3810,8 @@ class Yi {
3810
3810
  name: a
3811
3811
  }
3812
3812
  });
3813
- return l === "SUCCESS" || l === "BYPASS_ADS" ? {
3814
- code: l,
3813
+ return u === "SUCCESS" || u === "BYPASS_ADS" ? {
3814
+ code: u,
3815
3815
  data: d
3816
3816
  } : null;
3817
3817
  }), z(this, "cacheRewardInfo", () => {
@@ -3831,17 +3831,17 @@ class Yi {
3831
3831
  return n.cacheAFVInfo(), o;
3832
3832
  } else
3833
3833
  return n.cacheAFVInfo(), await n.pendingAFVAdsInfo;
3834
- }), this.context = e, this.contextInfo = this.context.getContextInfo(), this.requestContext = new Mt(e), i != null && i.reward && this.cacheRewardInfo(), i != null && i.interstitial && this.cacheInterstitialInfo("start"), i != null && i.afv && this.cacheAFVInfo();
3834
+ }), this.context = e, this.contextInfo = this.context.getContextInfo(), this.requestContext = new Ut(e), i != null && i.reward && this.cacheRewardInfo(), i != null && i.interstitial && this.cacheInterstitialInfo("start"), i != null && i.afv && this.cacheAFVInfo();
3835
3835
  }
3836
3836
  }
3837
- function Vo(t, e, i) {
3838
- return (e = Go(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3837
+ function Ho(t, e, i) {
3838
+ return (e = Jo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3839
3839
  }
3840
- function Go(t) {
3841
- var e = qo(t, "string");
3840
+ function Jo(t) {
3841
+ var e = Xo(t, "string");
3842
3842
  return typeof e == "symbol" ? e : e + "";
3843
3843
  }
3844
- function qo(t, e) {
3844
+ function Xo(t, e) {
3845
3845
  if (typeof t != "object" || !t)
3846
3846
  return t;
3847
3847
  var i = t[Symbol.toPrimitive];
@@ -3853,7 +3853,7 @@ function qo(t, e) {
3853
3853
  }
3854
3854
  return (e === "string" ? String : Number)(t);
3855
3855
  }
3856
- const Ko = function(t) {
3856
+ const Yo = function(t) {
3857
3857
  for (var e = arguments.length, i = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
3858
3858
  i[n - 1] = arguments[n];
3859
3859
  if (t)
@@ -3863,12 +3863,12 @@ const Ko = function(t) {
3863
3863
  console.error("[JoliboxSDK] Callback error:", r);
3864
3864
  }
3865
3865
  };
3866
- class Qi {
3866
+ class rn {
3867
3867
  constructor(e) {
3868
- this.context = e, Vo(this, "canIUseHelper", void 0), this.context = e;
3868
+ this.context = e, Ho(this, "canIUseHelper", void 0), this.context = e;
3869
3869
  const {
3870
3870
  canIUseNative: i
3871
- } = ln(() => this.context.getContextInfo().deviceInfo.nativeSDKVersionCode || 1e6, () => this.context.getContextInfo().deviceInfo.platform || "h5");
3871
+ } = yn(() => this.context.getContextInfo().deviceInfo.nativeSDKVersionCode || 1e6, () => this.context.getContextInfo().deviceInfo.platform || "h5");
3872
3872
  this.canIUseHelper = i;
3873
3873
  }
3874
3874
  /**
@@ -3881,7 +3881,7 @@ class Qi {
3881
3881
  const {
3882
3882
  errNo: i,
3883
3883
  errMsg: n
3884
- } = await ft("loadAdsAsync", {
3884
+ } = await yt("loadAdsAsync", {
3885
3885
  params: {
3886
3886
  providers: e.providers
3887
3887
  }
@@ -3901,7 +3901,7 @@ class Qi {
3901
3901
  }
3902
3902
  }
3903
3903
  canIUse() {
3904
- return $e() && this.canIUseHelper("loadAdsAsync") && this.canIUseHelper("showAdAsync");
3904
+ return ot() && this.canIUseHelper("loadAdsAsync") && this.canIUseHelper("showAdAsync");
3905
3905
  }
3906
3906
  /**
3907
3907
  * Show a loaded ad
@@ -3910,7 +3910,7 @@ class Qi {
3910
3910
  */
3911
3911
  async showAdAsync(e) {
3912
3912
  try {
3913
- const i = await ft("showAdAsync", {
3913
+ const i = await yt("showAdAsync", {
3914
3914
  params: {
3915
3915
  providers: e.providers
3916
3916
  }
@@ -3925,15 +3925,15 @@ class Qi {
3925
3925
  const r = e.timeout !== void 0 ? e.timeout : -1;
3926
3926
  let o = null;
3927
3927
  const s = () => {
3928
- un("onAdsStateChange", a), o && (clearTimeout(o), o = null);
3928
+ gn("onAdsStateChange", a), o && (clearTimeout(o), o = null);
3929
3929
  }, a = (d) => {
3930
- var u;
3930
+ var l;
3931
3931
  if (d.UUID !== n)
3932
3932
  return;
3933
- const l = (u = e.callbacks) == null ? void 0 : u[d.event];
3934
- l && Ko(l, d.data), ["onAdClosed", "onAdError", "onAdDismissed"].includes(d.event) && s();
3933
+ const u = (l = e.callbacks) == null ? void 0 : l[d.event];
3934
+ u && Yo(u, d.data), ["onAdClosed", "onAdError", "onAdDismissed"].includes(d.event) && s();
3935
3935
  };
3936
- cn("onAdsStateChange", a), r > 0 && (o = setTimeout(() => {
3936
+ wn("onAdsStateChange", a), r > 0 && (o = setTimeout(() => {
3937
3937
  s(), console.warn(`[JoliboxSDK] Event listener for ad ${n} auto-cleaned after ${r}ms timeout`);
3938
3938
  }, r));
3939
3939
  }
@@ -3958,7 +3958,7 @@ class Qi {
3958
3958
  const {
3959
3959
  errNo: i,
3960
3960
  data: n
3961
- } = ft("isAdsReadySync", {
3961
+ } = yt("isAdsReadySync", {
3962
3962
  params: {
3963
3963
  providers: e.providers
3964
3964
  }
@@ -3970,13 +3970,13 @@ class Qi {
3970
3970
  }
3971
3971
  }
3972
3972
  function ue(t, e, i) {
3973
- return (e = zo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3973
+ return (e = Qo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3974
3974
  }
3975
- function zo(t) {
3976
- var e = Wo(t, "string");
3975
+ function Qo(t) {
3976
+ var e = Zo(t, "string");
3977
3977
  return typeof e == "symbol" ? e : e + "";
3978
3978
  }
3979
- function Wo(t, e) {
3979
+ function Zo(t, e) {
3980
3980
  if (typeof t != "object" || !t)
3981
3981
  return t;
3982
3982
  var i = t[Symbol.toPrimitive];
@@ -3988,16 +3988,12 @@ function Wo(t, e) {
3988
3988
  }
3989
3989
  return (e === "string" ? String : Number)(t);
3990
3990
  }
3991
- class Ho {
3991
+ class es {
3992
3992
  get isAdsReady() {
3993
3993
  return this._isAdsReady;
3994
3994
  }
3995
3995
  constructor(e, i) {
3996
3996
  ue(this, "providers", void 0), ue(this, "helper", void 0), ue(this, "adsContext", null), ue(this, "_isAdsReady", !1), ue(this, "init", async () => {
3997
- if (!$e()) {
3998
- this._isAdsReady = !1;
3999
- return;
4000
- }
4001
3997
  this.helper.canIUse() ? (await this.helper.loadAdsAsync({
4002
3998
  providers: this.providers
4003
3999
  })).code === "SUCCESS" ? this._isAdsReady = !0 : this._isAdsReady = !1 : this._isAdsReady = !1;
@@ -4024,11 +4020,11 @@ class Ho {
4024
4020
  }
4025
4021
  let n = !1, r = !1;
4026
4022
  this.adsContext.beforeReward(async () => {
4027
- var d, l;
4028
- (l = (d = this.adsContext) == null ? void 0 : d.beforeAd) == null || l.call(d);
4029
- const o = (u) => {
4023
+ var d, u;
4024
+ (u = (d = this.adsContext) == null ? void 0 : d.beforeAd) == null || u.call(d);
4025
+ const o = (l) => {
4030
4026
  var c, h, f;
4031
- r || (r = !0, u === "dismissed" && ((c = this.adsContext) == null || c.adDismissed()), (f = (h = this.adsContext) == null ? void 0 : h.afterAd) == null || f.call(h), this.reinit(u));
4027
+ r || (r = !0, l === "dismissed" && ((c = this.adsContext) == null || c.adDismissed()), (f = (h = this.adsContext) == null ? void 0 : h.afterAd) == null || f.call(h), this.reinit(l));
4032
4028
  }, s = {
4033
4029
  onAdShow: () => {
4034
4030
  },
@@ -4036,8 +4032,8 @@ class Ho {
4036
4032
  o("error");
4037
4033
  },
4038
4034
  onAdRewarded: () => {
4039
- var u;
4040
- n = !0, (u = this.adsContext) == null || u.adViewed();
4035
+ var l;
4036
+ n = !0, (l = this.adsContext) == null || l.adViewed();
4041
4037
  },
4042
4038
  onAdDismissed: () => {
4043
4039
  o(n ? "viewed" : "dismissed");
@@ -4051,17 +4047,17 @@ class Ho {
4051
4047
  callbacks: s
4052
4048
  })).code !== "SUCCESS" && this.reinit("noAdPreloaded");
4053
4049
  });
4054
- }), this.providers = i, this.helper = new Qi(e), this.init();
4050
+ }), this.providers = i, this.helper = new rn(e), this.init();
4055
4051
  }
4056
4052
  }
4057
4053
  function ce(t, e, i) {
4058
- return (e = Jo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4054
+ return (e = ts(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4059
4055
  }
4060
- function Jo(t) {
4061
- var e = Xo(t, "string");
4056
+ function ts(t) {
4057
+ var e = is(t, "string");
4062
4058
  return typeof e == "symbol" ? e : e + "";
4063
4059
  }
4064
- function Xo(t, e) {
4060
+ function is(t, e) {
4065
4061
  if (typeof t != "object" || !t)
4066
4062
  return t;
4067
4063
  var i = t[Symbol.toPrimitive];
@@ -4073,7 +4069,7 @@ function Xo(t, e) {
4073
4069
  }
4074
4070
  return (e === "string" ? String : Number)(t);
4075
4071
  }
4076
- class Yo {
4072
+ class ns {
4077
4073
  get isAdsReady() {
4078
4074
  return this._isAdsReady;
4079
4075
  }
@@ -4102,16 +4098,16 @@ class Yo {
4102
4098
  this.destroy("notReady");
4103
4099
  }
4104
4100
  }), ce(this, "showAd", async () => {
4105
- var d, l;
4101
+ var d, u;
4106
4102
  if (!this.adsContext) {
4107
4103
  this.destroy("error");
4108
4104
  return;
4109
4105
  }
4110
4106
  let r = !1;
4111
- (l = (d = this.adsContext).beforeAd) == null || l.call(d);
4112
- const o = (u) => {
4107
+ (u = (d = this.adsContext).beforeAd) == null || u.call(d);
4108
+ const o = (l) => {
4113
4109
  var c, h;
4114
- r || (r = !0, (h = (c = this.adsContext) == null ? void 0 : c.afterAd) == null || h.call(c), this.reinit(u));
4110
+ r || (r = !0, (h = (c = this.adsContext) == null ? void 0 : c.afterAd) == null || h.call(c), this.reinit(l));
4115
4111
  }, s = {
4116
4112
  onAdShow: () => {
4117
4113
  },
@@ -4129,17 +4125,17 @@ class Yo {
4129
4125
  providers: this.providers,
4130
4126
  callbacks: s
4131
4127
  })).code !== "SUCCESS" && this.reinit("noAdPreloaded");
4132
- }), this.providers = i, this.helper = new Qi(e), this.init();
4128
+ }), this.providers = i, this.helper = new rn(e), this.init();
4133
4129
  }
4134
4130
  }
4135
- function Be(t, e, i) {
4136
- return (e = Qo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4131
+ function Me(t, e, i) {
4132
+ return (e = rs(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4137
4133
  }
4138
- function Qo(t) {
4139
- var e = Zo(t, "string");
4134
+ function rs(t) {
4135
+ var e = os(t, "string");
4140
4136
  return typeof e == "symbol" ? e : e + "";
4141
4137
  }
4142
- function Zo(t, e) {
4138
+ function os(t, e) {
4143
4139
  if (typeof t != "object" || !t)
4144
4140
  return t;
4145
4141
  var i = t[Symbol.toPrimitive];
@@ -4151,11 +4147,11 @@ function Zo(t, e) {
4151
4147
  }
4152
4148
  return (e === "string" ? String : Number)(t);
4153
4149
  }
4154
- class es {
4150
+ class ss {
4155
4151
  constructor(e, i) {
4156
- Be(this, "name", "INTERNAL_NATIVE"), Be(this, "context", void 0), Be(this, "rewardAdManager", void 0), Be(this, "interstitialManager", void 0), Be(this, "initProviders", void 0), this.context = e, this.initProviders = i.providers;
4152
+ Me(this, "name", "INTERNAL_NATIVE"), Me(this, "context", void 0), Me(this, "rewardAdManager", void 0), Me(this, "interstitialManager", void 0), Me(this, "initProviders", void 0), this.context = e, this.initProviders = i.providers;
4157
4153
  const n = this.getConfigsByTypes(["REWARD", "REWARD_INTERSTITIAL", "NATIVE"], i.providers), r = this.getConfigsByTypes(["INTERSTITIAL"], i.providers);
4158
- n.length > 0 && (this.rewardAdManager = new Ho(this.context, n)), r.length > 0 && (this.interstitialManager = new Yo(this.context, r));
4154
+ n.length > 0 && (this.rewardAdManager = new es(this.context, n)), r.length > 0 && (this.interstitialManager = new ns(this.context, r));
4159
4155
  }
4160
4156
  getConfigsByTypes(e, i, n) {
4161
4157
  const r = [];
@@ -4233,8 +4229,8 @@ class es {
4233
4229
  beforeAd: s.beforeAd,
4234
4230
  afterAd: s.afterAd,
4235
4231
  onEnd: (d) => {
4236
- var l;
4237
- (l = e.adBreakDone) == null || l.call(e, {
4232
+ var u;
4233
+ (u = e.adBreakDone) == null || u.call(e, {
4238
4234
  breakName: s.name,
4239
4235
  breakType: e.type,
4240
4236
  breakFormat: "interstitial",
@@ -4247,14 +4243,229 @@ class es {
4247
4243
  }
4248
4244
  }
4249
4245
  }
4246
+ const mt = "jolibox-nb-proxy";
4247
+ let as = 0;
4248
+ function Ai(t, e, i, n) {
4249
+ return new Promise((r, o) => {
4250
+ if (!window.parent || window.parent === window) {
4251
+ o(new Error("[ParentProxy] No parent window"));
4252
+ return;
4253
+ }
4254
+ const s = `${mt}-${++as}`, a = (u) => {
4255
+ const l = u.data;
4256
+ (l == null ? void 0 : l.type) === `${mt}:response` && l.id === s && (window.removeEventListener("message", a), clearTimeout(d), l.error ? o(new Error(l.error)) : r(l.result));
4257
+ }, d = window.setTimeout(() => {
4258
+ window.removeEventListener("message", a), o(new Error(`[ParentProxy] Timeout: ${t.join(".")}.${e}`));
4259
+ }, 15e3);
4260
+ window.addEventListener("message", a), window.parent.postMessage({
4261
+ type: `${mt}:request`,
4262
+ id: s,
4263
+ path: t,
4264
+ action: e,
4265
+ args: i,
4266
+ value: n
4267
+ }, "*");
4268
+ });
4269
+ }
4270
+ function on(t) {
4271
+ return console.log("[JoliboxSDK] NewsBreak createProxyForPath basePath:", t), new Proxy(() => {
4272
+ }, {
4273
+ get(e, i) {
4274
+ if (console.log("[JoliboxSDK] NewsBreak createProxyForPath get:", i), !(i === "then" || i === "toJSON" || typeof i == "symbol"))
4275
+ return on([...t, i]);
4276
+ },
4277
+ set(e, i, n) {
4278
+ return console.log("[JoliboxSDK] NewsBreak createProxyForPath set:", i), Ai([...t, i], "set", void 0, n).catch((r) => {
4279
+ console.warn(`[ParentProxy] set ${[...t, i].join(".")} failed:`, r);
4280
+ }), !0;
4281
+ },
4282
+ apply(e, i, n) {
4283
+ return console.log("[JoliboxSDK] NewsBreak createProxyForPath apply:", n), Ai(t, "call", n);
4284
+ }
4285
+ });
4286
+ }
4287
+ function ds(t) {
4288
+ return on([t]);
4289
+ }
4290
+ const nt = () => {
4291
+ try {
4292
+ if (window.parent && window.parent !== window)
4293
+ return ds("GameSDK");
4294
+ } catch (t) {
4295
+ }
4296
+ };
4297
+ function ve(t, e, i) {
4298
+ return (e = ls(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4299
+ }
4300
+ function ls(t) {
4301
+ var e = us(t, "string");
4302
+ return typeof e == "symbol" ? e : e + "";
4303
+ }
4304
+ function us(t, e) {
4305
+ if (typeof t != "object" || !t)
4306
+ return t;
4307
+ var i = t[Symbol.toPrimitive];
4308
+ if (i !== void 0) {
4309
+ var n = i.call(t, e);
4310
+ if (typeof n != "object")
4311
+ return n;
4312
+ throw new TypeError("@@toPrimitive must return a primitive value.");
4313
+ }
4314
+ return (e === "string" ? String : Number)(t);
4315
+ }
4316
+ class cs {
4317
+ constructor() {
4318
+ ve(this, "adsContext", null), ve(this, "_isReady", !1), ve(this, "_isAvailable", !1), ve(this, "init", async () => {
4319
+ this._isReady = !1;
4320
+ const e = nt();
4321
+ if (e)
4322
+ try {
4323
+ if (this._isAvailable = await e.isAvailable("rewarded"), console.log("[JoliboxSDK] NewsBreak init isAvailable", this._isAvailable), !this._isAvailable)
4324
+ return;
4325
+ const i = await e.createRewardAd({
4326
+ platform: "jolibox"
4327
+ });
4328
+ console.log("[JoliboxSDK] NewsBreak init createRewardAd result:", i), this._isReady = i.success && i.ready;
4329
+ } catch (i) {
4330
+ this._isReady = !1;
4331
+ }
4332
+ }), ve(this, "destroy", (e) => {
4333
+ var i, n;
4334
+ this._isReady = !1, (n = (i = this.adsContext) == null ? void 0 : i.adBreakDone) == null || n.call(i, e), e !== "ignored" && (this.adsContext = null);
4335
+ }), ve(this, "reinit", async (e) => {
4336
+ this.destroy(e), await this.init();
4337
+ }), ve(this, "requestAds", (e) => {
4338
+ if (console.log("[JoliboxSDK] NewsBreak newsbreak this.adsContext", this.adsContext), this.adsContext) {
4339
+ this.destroy("ignored");
4340
+ return;
4341
+ }
4342
+ this.adsContext = e;
4343
+ const i = nt();
4344
+ if (console.log("[JoliboxSDK] NewsBreak newsbreak sdk", i), !i) {
4345
+ this.destroy("notReady");
4346
+ return;
4347
+ }
4348
+ if (this._isReady || i.isRewardReady())
4349
+ this._isReady = !0, this.showAd();
4350
+ else {
4351
+ const n = window.setTimeout(() => {
4352
+ this._isReady || this.reinit("timeout");
4353
+ }, 5e3);
4354
+ i.createRewardAd({
4355
+ platform: "jolibox"
4356
+ }).then((r) => {
4357
+ clearTimeout(n), r.success && r.ready ? (this._isReady = !0, this.showAd()) : this.reinit("noAdPreloaded");
4358
+ }).catch(() => {
4359
+ clearTimeout(n), this.reinit("noAdPreloaded");
4360
+ });
4361
+ }
4362
+ }), ve(this, "showAd", () => {
4363
+ if (!this.adsContext) {
4364
+ this.destroy("error");
4365
+ return;
4366
+ }
4367
+ this.adsContext.beforeReward(async () => {
4368
+ var i, n, r, o, s, a, d, u, l, c, h, f, y, v;
4369
+ (n = (i = this.adsContext) == null ? void 0 : i.beforeAd) == null || n.call(i);
4370
+ const e = nt();
4371
+ if (!e) {
4372
+ (o = (r = this.adsContext) == null ? void 0 : r.afterAd) == null || o.call(r), this.reinit("error");
4373
+ return;
4374
+ }
4375
+ try {
4376
+ const w = await e.showRewardAd();
4377
+ if (console.log("[JoliboxSDK] NewsBreak showRewardAd result:", w), !w.success) {
4378
+ (a = (s = this.adsContext) == null ? void 0 : s.afterAd) == null || a.call(s), this.reinit("error");
4379
+ return;
4380
+ }
4381
+ w.rewardGranted ? ((d = this.adsContext) == null || d.adViewed(), (l = (u = this.adsContext) == null ? void 0 : u.afterAd) == null || l.call(u), this.reinit("viewed")) : ((c = this.adsContext) == null || c.adDismissed(), (f = (h = this.adsContext) == null ? void 0 : h.afterAd) == null || f.call(h), this.reinit("dismissed"));
4382
+ } catch (w) {
4383
+ (v = (y = this.adsContext) == null ? void 0 : y.afterAd) == null || v.call(y), this.reinit("error");
4384
+ }
4385
+ });
4386
+ }), this.init();
4387
+ }
4388
+ }
4389
+ function pi(t, e, i) {
4390
+ return (e = hs(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4391
+ }
4392
+ function hs(t) {
4393
+ var e = fs(t, "string");
4394
+ return typeof e == "symbol" ? e : e + "";
4395
+ }
4396
+ function fs(t, e) {
4397
+ if (typeof t != "object" || !t)
4398
+ return t;
4399
+ var i = t[Symbol.toPrimitive];
4400
+ if (i !== void 0) {
4401
+ var n = i.call(t, e);
4402
+ if (typeof n != "object")
4403
+ return n;
4404
+ throw new TypeError("@@toPrimitive must return a primitive value.");
4405
+ }
4406
+ return (e === "string" ? String : Number)(t);
4407
+ }
4408
+ class vs {
4409
+ constructor() {
4410
+ pi(this, "name", "NEWSBREAK"), pi(this, "rewardAdManager", void 0);
4411
+ }
4412
+ async init() {
4413
+ const e = nt();
4414
+ if (!e) {
4415
+ console.warn("[JoliboxSDK] NewsBreak GameSDK is not available on window");
4416
+ return;
4417
+ }
4418
+ e.onEnter(), this.rewardAdManager = new cs();
4419
+ }
4420
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
4421
+ adConfig(e, i) {
4422
+ }
4423
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
4424
+ adBreak(e, i) {
4425
+ var n, r;
4426
+ if (e.type !== "reward") {
4427
+ (n = e.adBreakDone) == null || n.call(e, {
4428
+ breakType: e.type,
4429
+ breakFormat: "reward",
4430
+ breakStatus: "noAdPreloaded"
4431
+ });
4432
+ return;
4433
+ }
4434
+ if (!this.rewardAdManager) {
4435
+ (r = e.adBreakDone) == null || r.call(e, {
4436
+ breakName: e.name,
4437
+ breakType: e.type,
4438
+ breakFormat: "reward",
4439
+ breakStatus: "noAdPreloaded"
4440
+ });
4441
+ return;
4442
+ }
4443
+ this.rewardAdManager.requestAds({
4444
+ beforeAd: e.beforeAd,
4445
+ afterAd: e.afterAd,
4446
+ adDismissed: e.adDismissed,
4447
+ adViewed: e.adViewed,
4448
+ beforeReward: e.beforeReward,
4449
+ adBreakDone: (o) => {
4450
+ var s;
4451
+ (s = e.adBreakDone) == null || s.call(e, {
4452
+ breakName: e.name,
4453
+ breakType: e.type,
4454
+ breakFormat: "reward",
4455
+ breakStatus: o
4456
+ });
4457
+ }
4458
+ });
4459
+ }
4460
+ }
4250
4461
  function ee(t, e, i) {
4251
- return (e = ts(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4462
+ return (e = ys(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4252
4463
  }
4253
- function ts(t) {
4254
- var e = is(t, "string");
4464
+ function ys(t) {
4465
+ var e = gs(t, "string");
4255
4466
  return typeof e == "symbol" ? e : e + "";
4256
4467
  }
4257
- function is(t, e) {
4468
+ function gs(t, e) {
4258
4469
  if (typeof t != "object" || !t)
4259
4470
  return t;
4260
4471
  var i = t[Symbol.toPrimitive];
@@ -4266,10 +4477,10 @@ function is(t, e) {
4266
4477
  }
4267
4478
  return (e === "string" ? String : Number)(t);
4268
4479
  }
4269
- class Ms {
4480
+ class Qs {
4270
4481
  constructor(e) {
4271
4482
  if (ee(this, "context", void 0), ee(this, "contextInfo", void 0), ee(this, "providers", {}), ee(this, "channelPolicy", void 0), ee(this, "adsActionDetection", void 0), ee(this, "requestContext", void 0), ee(this, "adsRequest", void 0), ee(this, "initialized", !1), ee(this, "adsIsShowing", !1), ee(this, "lastAdBreak", void 0), ee(this, "initializedTimeStamp", Date.now()), e)
4272
- this.context = e, this.channelPolicy = new Yn(this.context), this.adsActionDetection = new Hn(this.context), this.contextInfo = this.context.getContextInfo(), this.adsRequest = new Yi(e), this.requestContext = new Mt(e);
4483
+ this.context = e, this.channelPolicy = new nr(this.context), this.adsActionDetection = new er(this.context), this.contextInfo = this.context.getContextInfo(), this.adsRequest = new nn(e), this.requestContext = new Ut(e);
4273
4484
  else
4274
4485
  throw new Error("JoliboxAdsForGame requires a configuration object");
4275
4486
  }
@@ -4294,36 +4505,42 @@ class Ms {
4294
4505
  for (const a of s)
4295
4506
  switch (a.provider) {
4296
4507
  case "GOOGLE_GPT": {
4297
- const d = new Bo(this.context, a.params);
4508
+ const d = new Vo(this.context, a.params);
4298
4509
  await d.init(), this.providers[a.provider] = d;
4299
4510
  break;
4300
4511
  }
4301
4512
  case "ADSENSE":
4302
4513
  case "ADSENSE_ADMOB": {
4303
- const d = new er(this.context, a.params);
4514
+ const d = new sr(this.context, a.params);
4304
4515
  await d.init(), this.providers[a.provider] = d;
4305
4516
  break;
4306
4517
  }
4307
4518
  case "OKSPIN": {
4308
- const d = new uo(this.context, a.params);
4519
+ const d = new go(this.context, a.params);
4309
4520
  await d.init(), this.providers.OKSPIN = d;
4310
4521
  break;
4311
4522
  }
4312
4523
  case "APPSROCKETS": {
4313
- const d = new Ro(this.context, a.params);
4524
+ const d = new No(this.context, a.params);
4314
4525
  await d.init(), this.providers.APPSROCKETS = d;
4315
4526
  break;
4316
4527
  }
4317
4528
  case "ADSENSE_BANNER_AS_AFG": {
4318
- const d = new Eo(this.context, a.params);
4529
+ const d = new Co(this.context, a.params);
4319
4530
  await d.init(), this.providers.ADSENSE_BANNER_AS_AFG = d;
4320
4531
  break;
4321
4532
  }
4322
4533
  case "INTERNAL_NATIVE": {
4323
- const d = new es(this.context, a.params);
4534
+ const d = new ss(this.context, a.params);
4324
4535
  await d.init(), this.providers.INTERNAL_NATIVE = d;
4325
4536
  break;
4326
4537
  }
4538
+ case "NEWSBREAK": {
4539
+ console.log("[JoliboxSDK] NewsBreak Provider", a);
4540
+ const d = new vs();
4541
+ await d.init(), this.providers.NEWSBREAK = d;
4542
+ break;
4543
+ }
4327
4544
  }
4328
4545
  }
4329
4546
  this.adsRequest.cacheInterstitialInfo("start"), this.adsRequest.cacheRewardInfo(), this.initialized = !0;
@@ -4332,7 +4549,7 @@ class Ms {
4332
4549
  this.providers.ADSENSE ? this.providers.ADSENSE.adConfig(e) : window.adsbygoogle.push(e);
4333
4550
  }
4334
4551
  async adBreak(e) {
4335
- var r, o, s, a, d, l, u, c, h, f, g, v, A, y, w, S;
4552
+ var r, o, s, a, d, u, l, c, h, f, y, v, w, g, b, S;
4336
4553
  const i = Date.now();
4337
4554
  if (i - this.initializedTimeStamp < 3e3) {
4338
4555
  (r = e.adBreakDone) == null || r.call(e, {
@@ -4380,11 +4597,11 @@ class Ms {
4380
4597
  return;
4381
4598
  }
4382
4599
  try {
4383
- const b = await this.adsRequest.getAFGAdsInfo(e.type), m = b == null ? void 0 : b.data, E = b == null ? void 0 : b.code;
4600
+ const A = await this.adsRequest.getAFGAdsInfo(e.type), m = A == null ? void 0 : A.data, E = A == null ? void 0 : A.code;
4384
4601
  if (E === "BYPASS_ADS") {
4385
4602
  switch (e.type) {
4386
4603
  case "preroll": {
4387
- (l = e.adBreakDone) == null || l.call(e, {
4604
+ (u = e.adBreakDone) == null || u.call(e, {
4388
4605
  breakType: e.type,
4389
4606
  breakFormat: "interstitial",
4390
4607
  breakStatus: "viewed"
@@ -4393,8 +4610,8 @@ class Ms {
4393
4610
  }
4394
4611
  case "reward": {
4395
4612
  e.beforeReward(() => {
4396
- var p, se, be, L;
4397
- (p = e.beforeAd) == null || p.call(e), (se = e.adViewed) == null || se.call(e), (be = e.afterAd) == null || be.call(e), (L = e.adBreakDone) == null || L.call(e, {
4613
+ var p, se, pe, L;
4614
+ (p = e.beforeAd) == null || p.call(e), (se = e.adViewed) == null || se.call(e), (pe = e.afterAd) == null || pe.call(e), (L = e.adBreakDone) == null || L.call(e, {
4398
4615
  breakType: e.type,
4399
4616
  breakName: e.name,
4400
4617
  breakFormat: "reward",
@@ -4404,7 +4621,7 @@ class Ms {
4404
4621
  break;
4405
4622
  }
4406
4623
  default: {
4407
- (u = e.beforeAd) == null || u.call(e), (c = e.afterAd) == null || c.call(e), (h = e.adBreakDone) == null || h.call(e, {
4624
+ (l = e.beforeAd) == null || l.call(e), (c = e.afterAd) == null || c.call(e), (h = e.adBreakDone) == null || h.call(e, {
4408
4625
  breakType: e.type,
4409
4626
  breakName: e.name,
4410
4627
  breakFormat: "interstitial",
@@ -4425,7 +4642,7 @@ class Ms {
4425
4642
  return;
4426
4643
  } else {
4427
4644
  if (m.length === 0) {
4428
- (g = e.adBreakDone) == null || g.call(e, {
4645
+ (y = e.adBreakDone) == null || y.call(e, {
4429
4646
  breakType: e.type,
4430
4647
  breakName: e.type === "preroll" ? void 0 : e.name,
4431
4648
  breakFormat: e.type === "reward" ? "reward" : "interstitial",
@@ -4434,25 +4651,25 @@ class Ms {
4434
4651
  return;
4435
4652
  }
4436
4653
  let p = !0, se = null;
4437
- const be = new Kn(this.context);
4654
+ const pe = new Yn(this.context);
4438
4655
  this.adsActionDetection.adBreakIsShowing = !0;
4439
4656
  const L = m.filter((I) => I.isNative).sort((I, Y) => I.seq - Y.seq), C = m.filter((I) => !I.isNative).sort((I, Y) => I.seq - Y.seq), W = {
4440
- seq: (A = (v = L[0]) == null ? void 0 : v.seq) != null ? A : 0,
4657
+ seq: (w = (v = L[0]) == null ? void 0 : v.seq) != null ? w : 0,
4441
4658
  provider: "INTERNAL_NATIVE",
4442
4659
  params: L
4443
4660
  };
4444
4661
  let q;
4445
- for (L.length > 0 ? q = [W].concat(C) : q = C, q = q.sort((I, Y) => I.seq - Y.seq).map((I, Y) => Gt(ht({}, I), {
4662
+ for (L.length > 0 ? q = [W].concat(C) : q = C, q = q.sort((I, Y) => I.seq - Y.seq).map((I, Y) => zt(vt({}, I), {
4446
4663
  seq: Y
4447
4664
  // re-assign seq
4448
4665
  })); q.length > 0; ) {
4449
4666
  const I = q.shift(), Y = this.providers[I.provider];
4450
4667
  if (Y) {
4451
- const [Zi, en] = await be.callAdBreakAndContinue(Y, e, I, (Ut) => {
4452
- var $t;
4453
- this.adsIsShowing = Ut, ($t = this.context.eventEmitter) == null || $t.emit("isAdShowing", Ut);
4668
+ const [sn, an] = await pe.callAdBreakAndContinue(Y, e, I, (jt) => {
4669
+ var Vt;
4670
+ this.adsIsShowing = jt, (Vt = this.context.eventEmitter) == null || Vt.emit("isAdShowing", jt);
4454
4671
  });
4455
- p = Zi, se = en;
4672
+ p = sn, se = an;
4456
4673
  } else
4457
4674
  p = !0, se = {
4458
4675
  breakType: e.type,
@@ -4463,10 +4680,10 @@ class Ms {
4463
4680
  if (!p)
4464
4681
  break;
4465
4682
  }
4466
- p && se && ((y = e.adBreakDone) == null || y.call(e, se));
4683
+ p && se && ((g = e.adBreakDone) == null || g.call(e, se));
4467
4684
  }
4468
- } catch (b) {
4469
- (w = e.adBreakDone) == null || w.call(e, {
4685
+ } catch (A) {
4686
+ (b = e.adBreakDone) == null || b.call(e, {
4470
4687
  breakType: e.type,
4471
4688
  breakFormat: e.type === "reward" ? "reward" : "interstitial",
4472
4689
  breakStatus: "noAdPreloaded"
@@ -4480,13 +4697,13 @@ class Ms {
4480
4697
  }
4481
4698
  }
4482
4699
  function Xe(t, e, i) {
4483
- return (e = ns(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4700
+ return (e = ws(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4484
4701
  }
4485
- function ns(t) {
4486
- var e = rs(t, "string");
4702
+ function ws(t) {
4703
+ var e = bs(t, "string");
4487
4704
  return typeof e == "symbol" ? e : e + "";
4488
4705
  }
4489
- function rs(t, e) {
4706
+ function bs(t, e) {
4490
4707
  if (typeof t != "object" || !t)
4491
4708
  return t;
4492
4709
  var i = t[Symbol.toPrimitive];
@@ -4498,7 +4715,7 @@ function rs(t, e) {
4498
4715
  }
4499
4716
  return (e === "string" ? String : Number)(t);
4500
4717
  }
4501
- class os {
4718
+ class As {
4502
4719
  constructor(e) {
4503
4720
  Xe(this, "context", void 0), Xe(this, "currentProvider", void 0), Xe(this, "continueCallback", void 0), Xe(this, "contextInfo", void 0), this.context = e, this.contextInfo = e.getContextInfo();
4504
4721
  }
@@ -4521,7 +4738,7 @@ class os {
4521
4738
  wrapAdPlaying(e) {
4522
4739
  return (i) => {
4523
4740
  var n, r;
4524
- this.context.track("CallAFVPlaying", this.paramsToTrack), $e() && this.context.track("mmp_ad_impression", {
4741
+ this.context.track("CallAFVPlaying", this.paramsToTrack), ot() && this.context.track("mmp_ad_impression", {
4525
4742
  ad_network: (r = (n = this.currentProvider) == null ? void 0 : n.name) != null ? r : "",
4526
4743
  ad_format: "AFV",
4527
4744
  module: "drama",
@@ -4549,14 +4766,14 @@ class os {
4549
4766
  });
4550
4767
  }
4551
4768
  }
4552
- function pt(t, e, i) {
4553
- return (e = ss(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4769
+ function St(t, e, i) {
4770
+ return (e = ps(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4554
4771
  }
4555
- function ss(t) {
4556
- var e = as(t, "string");
4772
+ function ps(t) {
4773
+ var e = _s(t, "string");
4557
4774
  return typeof e == "symbol" ? e : e + "";
4558
4775
  }
4559
- function as(t, e) {
4776
+ function _s(t, e) {
4560
4777
  if (typeof t != "object" || !t)
4561
4778
  return t;
4562
4779
  var i = t[Symbol.toPrimitive];
@@ -4568,27 +4785,27 @@ function as(t, e) {
4568
4785
  }
4569
4786
  return (e === "string" ? String : Number)(t);
4570
4787
  }
4571
- class $ extends Error {
4788
+ class F extends Error {
4572
4789
  constructor(e, i) {
4573
- super(e.message), pt(this, "name", void 0), pt(this, "type", void 0), pt(this, "raw", void 0), this.name = "AFVRequestError", this.type = i, this.raw = e, this.stack = e.stack, this.message = e.message;
4790
+ super(e.message), St(this, "name", void 0), St(this, "type", void 0), St(this, "raw", void 0), this.name = "AFVRequestError", this.type = i, this.raw = e, this.stack = e.stack, this.message = e.message;
4574
4791
  }
4575
4792
  static from(e, i) {
4576
4793
  switch (i) {
4577
4794
  case "GOOGLE_IMA_ERROR":
4578
- return new $(e, i);
4795
+ return new F(e, i);
4579
4796
  case "JOLIBOX_IMA_ERROR":
4580
- return new $(e, i);
4797
+ return new F(e, i);
4581
4798
  }
4582
4799
  }
4583
4800
  }
4584
4801
  function O(t, e, i) {
4585
- return (e = ds(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4802
+ return (e = ms(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4586
4803
  }
4587
- function ds(t) {
4588
- var e = ls(t, "string");
4804
+ function ms(t) {
4805
+ var e = Ss(t, "string");
4589
4806
  return typeof e == "symbol" ? e : e + "";
4590
4807
  }
4591
- function ls(t, e) {
4808
+ function Ss(t, e) {
4592
4809
  if (typeof t != "object" || !t)
4593
4810
  return t;
4594
4811
  var i = t[Symbol.toPrimitive];
@@ -4600,16 +4817,16 @@ function ls(t, e) {
4600
4817
  }
4601
4818
  return (e === "string" ? String : Number)(t);
4602
4819
  }
4603
- class us {
4820
+ class Es {
4604
4821
  constructor(e, i, n) {
4605
4822
  O(this, "adsLoader", void 0), O(this, "adDisplayContainer", void 0), O(this, "isAdPlaying", !1), O(this, "isContentFinished", !1), O(this, "videoContent", void 0), O(this, "adContainer", void 0), O(this, "adsManager", void 0), O(this, "intervalTimer", void 0), O(this, "completed", !1), O(this, "adTagUrl", void 0), O(this, "notifyRequestAd", void 0), O(this, "notifyLoaded", void 0), O(this, "notifyPlayingAd", void 0), O(this, "notifyCompleted", void 0), O(this, "notifyError", void 0), O(this, "destroy", () => {
4606
- var r, o, s, a, d, l, u, c, h, f, g;
4607
- this.intervalTimer && clearInterval(this.intervalTimer), (r = this.adsManager) == null || r.stop(), (o = this.adDisplayContainer) == null || o.destroy(), (s = this.adsLoader) == null || s.removeEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.onAdsManagerLoaded), (a = this.adsLoader) == null || a.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (d = this.adsManager) == null || d.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (l = this.adsManager) == null || l.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, this.onContentPauseRequested), (u = this.adsManager) == null || u.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, this.onContentResumeRequested), (c = this.adsManager) == null || c.removeEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED, this.onAdEvent), (h = this.adsManager) == null || h.removeEventListener(window.google.ima.AdEvent.Type.LOADED, this.onAdEvent), (f = this.adsManager) == null || f.removeEventListener(window.google.ima.AdEvent.Type.STARTED, this.onAdEvent), (g = this.adsManager) == null || g.removeEventListener(window.google.ima.AdEvent.Type.COMPLETE, this.onAdEvent);
4823
+ var r, o, s, a, d, u, l, c, h, f, y;
4824
+ this.intervalTimer && clearInterval(this.intervalTimer), (r = this.adsManager) == null || r.stop(), (o = this.adDisplayContainer) == null || o.destroy(), (s = this.adsLoader) == null || s.removeEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.onAdsManagerLoaded), (a = this.adsLoader) == null || a.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (d = this.adsManager) == null || d.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (u = this.adsManager) == null || u.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, this.onContentPauseRequested), (l = this.adsManager) == null || l.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, this.onContentResumeRequested), (c = this.adsManager) == null || c.removeEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED, this.onAdEvent), (h = this.adsManager) == null || h.removeEventListener(window.google.ima.AdEvent.Type.LOADED, this.onAdEvent), (f = this.adsManager) == null || f.removeEventListener(window.google.ima.AdEvent.Type.STARTED, this.onAdEvent), (y = this.adsManager) == null || y.removeEventListener(window.google.ima.AdEvent.Type.COMPLETE, this.onAdEvent);
4608
4825
  }), O(this, "requestAds", async (r, o) => {
4609
- var u;
4826
+ var l;
4610
4827
  this.createAdDisplayContainer(), this.notifyRequestAd = r.onAdRequested, this.notifyLoaded = r.onAdLoaded, this.notifyPlayingAd = r.onAdPlaying, this.notifyCompleted = r.onAdCompleted, this.notifyError = (c) => {
4611
4828
  var h;
4612
- return (h = r.onAdError) == null ? void 0 : h.call(r, $.from(c, "GOOGLE_IMA_ERROR"));
4829
+ return (h = r.onAdError) == null ? void 0 : h.call(r, F.from(c, "GOOGLE_IMA_ERROR"));
4613
4830
  }, 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);
4614
4831
  const s = () => {
4615
4832
  var c;
@@ -4623,8 +4840,8 @@ class us {
4623
4840
  const h = window.encodeURIComponent(o.params[c]);
4624
4841
  d += `&${c}=${h}`;
4625
4842
  });
4626
- const l = `${this.adTagUrl}${d}`;
4627
- a.adTagUrl = l, a.linearAdSlotWidth = 640, a.linearAdSlotHeight = 400, a.nonLinearAdSlotWidth = 640, a.nonLinearAdSlotHeight = 150, this.adsLoader.requestAds(a), (u = this.notifyRequestAd) == null || u.call(this);
4843
+ const u = `${this.adTagUrl}${d}`;
4844
+ a.adTagUrl = u, a.linearAdSlotWidth = 640, a.linearAdSlotHeight = 400, a.nonLinearAdSlotWidth = 640, a.nonLinearAdSlotHeight = 150, this.adsLoader.requestAds(a), (l = this.notifyRequestAd) == null || l.call(this);
4628
4845
  }), O(this, "createAdDisplayContainer", () => {
4629
4846
  this.adDisplayContainer = new window.google.ima.AdDisplayContainer(this.adContainer, this.videoContent);
4630
4847
  }), O(this, "playAds", () => {
@@ -4639,7 +4856,7 @@ class us {
4639
4856
  const o = new window.google.ima.AdsRenderingSettings();
4640
4857
  o.restoreCustomPlaybackStateOnAdBreakComplete = !0, o.loadVideoTimeout = 1e4, this.adsManager = r.getAdsManager(this.videoContent, o), this.adsManager.addEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, this.onContentPauseRequested), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, this.onContentResumeRequested), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED, this.onAdEvent), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.LOADED, this.onAdEvent), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.STARTED, this.onAdEvent), this.adsManager.addEventListener(window.google.ima.AdEvent.Type.COMPLETE, this.onAdEvent), r.type === "adsManagerLoaded" && this.playAds();
4641
4858
  }), O(this, "onAdEvent", (r) => {
4642
- var s, a, d, l;
4859
+ var s, a, d, u;
4643
4860
  const o = r.getAd();
4644
4861
  switch (r.type) {
4645
4862
  case window.google.ima.AdEvent.Type.LOADED:
@@ -4653,7 +4870,7 @@ class us {
4653
4870
  o != null && o.isLinear() && clearInterval(this.intervalTimer), this.completed || (this.completed = !0, (d = this.notifyCompleted) == null || d.call(this, r));
4654
4871
  break;
4655
4872
  case window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED:
4656
- o != null && o.isLinear() && clearInterval(this.intervalTimer), this.completed || (this.completed = !0, (l = this.notifyCompleted) == null || l.call(this, r));
4873
+ o != null && o.isLinear() && clearInterval(this.intervalTimer), this.completed || (this.completed = !0, (u = this.notifyCompleted) == null || u.call(this, r));
4657
4874
  break;
4658
4875
  }
4659
4876
  }), O(this, "onAdError", (r) => {
@@ -4666,9 +4883,9 @@ class us {
4666
4883
  }), this.adTagUrl = e, this.videoContent = i, this.adContainer = n;
4667
4884
  }
4668
4885
  }
4669
- var nt = /* @__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))(nt || {});
4670
- const cs = () => {
4671
- const t = k(!1), e = k(!1), i = k(null), n = Kt(), r = Kt();
4886
+ var rt = /* @__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))(rt || {});
4887
+ const ks = () => {
4888
+ const t = k(!1), e = k(!1), i = k(null), n = Ht(), r = Ht();
4672
4889
  return {
4673
4890
  visible: t,
4674
4891
  canRetry: e,
@@ -4676,7 +4893,7 @@ const cs = () => {
4676
4893
  videoRef: n,
4677
4894
  adContainerRef: r
4678
4895
  };
4679
- }, hs = G`
4896
+ }, Is = G`
4680
4897
  ${M}
4681
4898
  position: fixed;
4682
4899
  left: 0;
@@ -4721,7 +4938,7 @@ const cs = () => {
4721
4938
  cursor: pointer;
4722
4939
  }
4723
4940
  }
4724
- `, fs = (t) => {
4941
+ `, xs = (t) => {
4725
4942
  let {
4726
4943
  onReady: e,
4727
4944
  state: i
@@ -4737,10 +4954,10 @@ const cs = () => {
4737
4954
  r.value = null, o.value = !1;
4738
4955
  }));
4739
4956
  };
4740
- return Re(() => {
4957
+ return Te(() => {
4741
4958
  e();
4742
4959
  }, [e]), _("div", {
4743
- className: hs,
4960
+ className: Is,
4744
4961
  style: {
4745
4962
  display: n.value ? "block" : "none"
4746
4963
  },
@@ -4787,13 +5004,13 @@ const cs = () => {
4787
5004
  });
4788
5005
  };
4789
5006
  function he(t, e, i) {
4790
- return (e = vs(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
5007
+ return (e = Rs(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4791
5008
  }
4792
- function vs(t) {
4793
- var e = ys(t, "string");
5009
+ function Rs(t) {
5010
+ var e = Ts(t, "string");
4794
5011
  return typeof e == "symbol" ? e : e + "";
4795
5012
  }
4796
- function ys(t, e) {
5013
+ function Ts(t, e) {
4797
5014
  if (typeof t != "object" || !t)
4798
5015
  return t;
4799
5016
  var i = t[Symbol.toPrimitive];
@@ -4805,9 +5022,9 @@ function ys(t, e) {
4805
5022
  }
4806
5023
  return (e === "string" ? String : Number)(t);
4807
5024
  }
4808
- class gs {
5025
+ class Cs {
4809
5026
  constructor(e) {
4810
- he(this, "name", "GOOGLE_IMA"), he(this, "context", void 0), he(this, "adsOverlay", null), he(this, "initialized", !1), he(this, "ima", null), he(this, "state", cs()), he(this, "init", async (i) => {
5027
+ he(this, "name", "GOOGLE_IMA"), he(this, "context", void 0), he(this, "adsOverlay", null), he(this, "initialized", !1), he(this, "ima", null), he(this, "state", ks()), he(this, "init", async (i) => {
4811
5028
  if (this.initialized)
4812
5029
  return;
4813
5030
  const n = "//imasdk.googleapis.com/js/sdkloader/ima3.js";
@@ -4823,32 +5040,32 @@ class gs {
4823
5040
  }, s.onerror = o, document.head.appendChild(s);
4824
5041
  }
4825
5042
  }), this.adsOverlay = document.createElement("div"), this.adsOverlay.id = "jolibox-ima-overlay", document.documentElement.appendChild(this.adsOverlay), await new Promise((r, o) => {
4826
- fe(_(fs, {
5043
+ fe(_(xs, {
4827
5044
  state: this.state,
4828
5045
  onReady: () => {
4829
- this.ima = new us(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
5046
+ this.ima = new Es(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
4830
5047
  }
4831
5048
  }), this.adsOverlay);
4832
5049
  }), this.initialized = !0;
4833
5050
  }), he(this, "destroy", () => {
4834
5051
  this.adsOverlay && (fe(null, this.adsOverlay), this.adsOverlay.remove()), this.ima && this.ima.destroy(), this.initialized = !1;
4835
5052
  }), he(this, "requestAd", (i, n) => {
4836
- var l;
5053
+ var u;
4837
5054
  if (!this.adsOverlay || !this.ima || !this.initialized) {
4838
- const u = $.from(new Error("IMA not initialized"), "JOLIBOX_IMA_ERROR");
4839
- (l = i.onAdError) == null || l.call(i, u);
5055
+ const l = F.from(new Error("IMA not initialized"), "JOLIBOX_IMA_ERROR");
5056
+ (u = i.onAdError) == null || u.call(i, l);
4840
5057
  return;
4841
5058
  }
4842
- const r = (u) => {
5059
+ const r = (l) => {
4843
5060
  var c;
4844
- this.ima.destroy(), this.state.visible.value = !1, (c = i.onAdCompleted) == null || c.call(i, u);
4845
- }, o = (u) => {
5061
+ this.ima.destroy(), this.state.visible.value = !1, (c = i.onAdCompleted) == null || c.call(i, l);
5062
+ }, o = (l) => {
4846
5063
  var h;
4847
5064
  let c = !1;
4848
- switch (u.raw.getErrorCode()) {
4849
- case nt.AUTOPLAY_DISALLOWED:
4850
- case nt.VIDEO_PLAY_ERROR:
4851
- case nt.ADS_REQUEST_NETWORK_ERROR: {
5065
+ switch (l.raw.getErrorCode()) {
5066
+ case rt.AUTOPLAY_DISALLOWED:
5067
+ case rt.VIDEO_PLAY_ERROR:
5068
+ case rt.ADS_REQUEST_NETWORK_ERROR: {
4852
5069
  c = !0;
4853
5070
  break;
4854
5071
  }
@@ -4860,7 +5077,7 @@ class gs {
4860
5077
  if (!c)
4861
5078
  this.ima.destroy(), P(() => {
4862
5079
  this.state.canRetry.value = !1, this.state.retry.value = null, this.state.visible.value = !1;
4863
- }), (h = i.onAdError) == null || h.call(i, u);
5080
+ }), (h = i.onAdError) == null || h.call(i, l);
4864
5081
  else {
4865
5082
  const f = () => {
4866
5083
  this.ima.destroy(), this.requestAd(i, n);
@@ -4869,25 +5086,25 @@ class gs {
4869
5086
  this.state.canRetry.value = !0, this.state.retry.value = f;
4870
5087
  });
4871
5088
  }
4872
- }, s = (u) => {
5089
+ }, s = (l) => {
4873
5090
  var c;
4874
- this.state.visible.value = !0, (c = i.onAdLoaded) == null || c.call(i, u);
4875
- }, a = (u) => {
5091
+ this.state.visible.value = !0, (c = i.onAdLoaded) == null || c.call(i, l);
5092
+ }, a = (l) => {
4876
5093
  var c;
4877
- (c = i.onAdPlaying) == null || c.call(i, u);
5094
+ (c = i.onAdPlaying) == null || c.call(i, l);
4878
5095
  }, d = Object.assign({}, i);
4879
5096
  d.onAdCompleted = r, d.onAdError = o, d.onAdLoaded = s, d.onAdPlaying = a, this.ima.requestAds(d, n);
4880
5097
  }), this.context = e;
4881
5098
  }
4882
5099
  }
4883
5100
  function ne(t, e, i) {
4884
- return (e = As(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
5101
+ return (e = Os(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4885
5102
  }
4886
- function As(t) {
4887
- var e = ws(t, "string");
5103
+ function Os(t) {
5104
+ var e = Ds(t, "string");
4888
5105
  return typeof e == "symbol" ? e : e + "";
4889
5106
  }
4890
- function ws(t, e) {
5107
+ function Ds(t, e) {
4891
5108
  if (typeof t != "object" || !t)
4892
5109
  return t;
4893
5110
  var i = t[Symbol.toPrimitive];
@@ -4899,49 +5116,49 @@ function ws(t, e) {
4899
5116
  }
4900
5117
  return (e === "string" ? String : Number)(t);
4901
5118
  }
4902
- class bs {
5119
+ class Ps {
4903
5120
  constructor(e) {
4904
- ne(this, "name", "OKSPIN"), ne(this, "initialized", !1), ne(this, "initCompleter", null), ne(this, "context", void 0), ne(this, "adsOverlay", null), ne(this, "adsIsShowing", !1), ne(this, "state", Ki()), ne(this, "init", async (i) => {
5121
+ ne(this, "name", "OKSPIN"), ne(this, "initialized", !1), ne(this, "initCompleter", null), ne(this, "context", void 0), ne(this, "adsOverlay", null), ne(this, "adsIsShowing", !1), ne(this, "state", Xi()), ne(this, "init", async (i) => {
4905
5122
  var n;
4906
- this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), fe(_(zi, {
5123
+ this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), fe(_(Yi, {
4907
5124
  state: this.state
4908
5125
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
4909
5126
  }), ne(this, "destroy", () => {
4910
5127
  var i;
4911
5128
  this.adsOverlay && (fe(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
4912
5129
  }), ne(this, "requestAd", (i, n) => {
4913
- var s, a, d, l;
5130
+ var s, a, d, u;
4914
5131
  if (!this.adsOverlay || !this.initialized) {
4915
- (s = i.onAdError) == null || s.call(i, $.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
5132
+ (s = i.onAdError) == null || s.call(i, F.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
4916
5133
  return;
4917
5134
  }
4918
5135
  if (this.adsIsShowing) {
4919
- (a = i.onAdError) == null || a.call(i, $.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
5136
+ (a = i.onAdError) == null || a.call(i, F.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
4920
5137
  return;
4921
5138
  }
4922
5139
  (d = i.onAdRequested) == null || d.call(i);
4923
5140
  const r = () => {
4924
- var u;
4925
- this.adsIsShowing = !1, (u = i.onAdCompleted) == null || u.call(i, void 0);
5141
+ var l;
5142
+ this.adsIsShowing = !1, (l = i.onAdCompleted) == null || l.call(i, void 0);
4926
5143
  }, o = () => {
4927
- var u;
4928
- (u = i.onAdLoaded) == null || u.call(i, void 0);
5144
+ var l;
5145
+ (l = i.onAdLoaded) == null || l.call(i, void 0);
4929
5146
  };
4930
5147
  this.adsIsShowing = !0, P(() => {
4931
- var u;
4932
- this.state.adLoaded.value = o, this.state.adBreakDone.value = r, this.state.countdown.value = (u = n.params.countdown) != null ? u : 15, this.state.src.value = n.params.url, this.state.mode.value = "rewarded_insterstitial", this.state.visible.value = !0;
4933
- }), (l = i.onAdPlaying) == null || l.call(i, void 0);
5148
+ var l;
5149
+ this.state.adLoaded.value = o, this.state.adBreakDone.value = r, this.state.countdown.value = (l = n.params.countdown) != null ? l : 15, this.state.src.value = n.params.url, this.state.mode.value = "rewarded_insterstitial", this.state.visible.value = !0;
5150
+ }), (u = i.onAdPlaying) == null || u.call(i, void 0);
4934
5151
  }), this.context = e;
4935
5152
  }
4936
5153
  }
4937
5154
  function te(t, e, i) {
4938
- return (e = ps(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
5155
+ return (e = Ns(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4939
5156
  }
4940
- function ps(t) {
4941
- var e = _s(t, "string");
5157
+ function Ns(t) {
5158
+ var e = Ls(t, "string");
4942
5159
  return typeof e == "symbol" ? e : e + "";
4943
5160
  }
4944
- function _s(t, e) {
5161
+ function Ls(t, e) {
4945
5162
  if (typeof t != "object" || !t)
4946
5163
  return t;
4947
5164
  var i = t[Symbol.toPrimitive];
@@ -4953,31 +5170,31 @@ function _s(t, e) {
4953
5170
  }
4954
5171
  return (e === "string" ? String : Number)(t);
4955
5172
  }
4956
- class ms {
5173
+ class Bs {
4957
5174
  constructor(e) {
4958
- te(this, "name", "APPSROCKETS"), te(this, "initialized", !1), te(this, "initCompleter", null), te(this, "context", void 0), te(this, "adsOverlay", null), te(this, "adsIsShowing", !1), te(this, "state", Wi()), te(this, "processUrl", (i) => {
5175
+ te(this, "name", "APPSROCKETS"), te(this, "initialized", !1), te(this, "initCompleter", null), te(this, "context", void 0), te(this, "adsOverlay", null), te(this, "adsIsShowing", !1), te(this, "state", Qi()), te(this, "processUrl", (i) => {
4959
5176
  var s;
4960
5177
  const n = this.context.getContextInfo(), r = new URL(i), o = new URLSearchParams(r.search);
4961
5178
  return o.has("joliSource") || o.set("joliSource", n.joliSource), o.get("osType") || o.set("osType", n.osType), o.get("runtimeType") || o.set("runtimeType", n.runtimeType), o.get("mode") || o.set("mode", "AFV"), o.get("deviceId") || o.set("deviceId", n.deviceId), o.get("statusBarHeight") || o.set("statusBarHeight", ((s = this.context.getWindowInfo().statusBarHeight) != null ? s : 0).toString()), o.get("adsType") || o.set("adsType", "REWARD_INTERSTITIAL"), r.search = o.toString(), r.toString();
4962
5179
  }), te(this, "init", async (i) => {
4963
5180
  var n;
4964
- this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), fe(_(Hi, {
5181
+ this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), fe(_(Zi, {
4965
5182
  state: this.state
4966
5183
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
4967
5184
  }), te(this, "destroy", () => {
4968
5185
  var i;
4969
5186
  this.adsOverlay && (fe(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
4970
5187
  }), te(this, "requestAd", (i, n) => {
4971
- var d, l, u, c;
5188
+ var d, u, l, c;
4972
5189
  if (!this.adsOverlay || !this.initialized) {
4973
- (d = i.onAdError) == null || d.call(i, $.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
5190
+ (d = i.onAdError) == null || d.call(i, F.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
4974
5191
  return;
4975
5192
  }
4976
5193
  if (this.adsIsShowing) {
4977
- (l = i.onAdError) == null || l.call(i, $.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
5194
+ (u = i.onAdError) == null || u.call(i, F.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
4978
5195
  return;
4979
5196
  }
4980
- (u = i.onAdRequested) == null || u.call(i);
5197
+ (l = i.onAdRequested) == null || l.call(i);
4981
5198
  const r = () => {
4982
5199
  var h;
4983
5200
  this.adsIsShowing = !1, (h = i.onAdCompleted) == null || h.call(i, void 0);
@@ -4985,11 +5202,11 @@ class ms {
4985
5202
  var h;
4986
5203
  (h = i.onAdLoaded) == null || h.call(i, void 0);
4987
5204
  }, s = (h) => {
4988
- var f, g;
4989
- (g = (f = this.context).handleLinkClicked) == null || g.call(f, h);
5205
+ var f, y;
5206
+ (y = (f = this.context).handleLinkClicked) == null || y.call(f, h);
4990
5207
  }, a = () => {
4991
5208
  var h;
4992
- (h = i.onAdError) == null || h.call(i, $.from(new Error("Ads load error"), "JOLIBOX_IMA_ERROR"));
5209
+ (h = i.onAdError) == null || h.call(i, F.from(new Error("Ads load error"), "JOLIBOX_IMA_ERROR"));
4993
5210
  };
4994
5211
  this.adsIsShowing = !0, P(() => {
4995
5212
  this.state.adLoaded.value = o, this.state.adBreakDone.value = r, this.state.adLinkClicked.value = s, this.state.adError.value = a, this.state.src.value = this.processUrl(n.params.url), this.state.visible.value = !0;
@@ -4997,14 +5214,14 @@ class ms {
4997
5214
  }), this.context = e;
4998
5215
  }
4999
5216
  }
5000
- function ve(t, e, i) {
5001
- return (e = Ss(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
5217
+ function ye(t, e, i) {
5218
+ return (e = Ms(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
5002
5219
  }
5003
- function Ss(t) {
5004
- var e = Es(t, "string");
5220
+ function Ms(t) {
5221
+ var e = $s(t, "string");
5005
5222
  return typeof e == "symbol" ? e : e + "";
5006
5223
  }
5007
- function Es(t, e) {
5224
+ function $s(t, e) {
5008
5225
  if (typeof t != "object" || !t)
5009
5226
  return t;
5010
5227
  var i = t[Symbol.toPrimitive];
@@ -5016,27 +5233,27 @@ function Es(t, e) {
5016
5233
  }
5017
5234
  return (e === "string" ? String : Number)(t);
5018
5235
  }
5019
- class ks {
5236
+ class Fs {
5020
5237
  constructor(e) {
5021
- ve(this, "name", "GOOGLE_GPT"), ve(this, "context", void 0), ve(this, "contextInfo", void 0), ve(this, "rewardAdManager", void 0), ve(this, "init", async (i) => {
5238
+ ye(this, "name", "GOOGLE_GPT"), ye(this, "context", void 0), ye(this, "contextInfo", void 0), ye(this, "rewardAdManager", void 0), ye(this, "init", async (i) => {
5022
5239
  if (!this.rewardAdManager) {
5023
5240
  const n = this.contextInfo.testAdsMode ? "/22639388115/rewarded_web_example" : i.params.rewardedSlot, o = `minidrama-${this.contextInfo.runtimeType === "APP" ? "app" : "h5"}`;
5024
- this.rewardAdManager = new Xi(n, o, i.params.keyValue);
5241
+ this.rewardAdManager = new tn(n, o, i.params.keyValue);
5025
5242
  }
5026
- }), ve(this, "insertScript", () => {
5243
+ }), ye(this, "insertScript", () => {
5027
5244
  const i = "jolibox-google-gpt";
5028
5245
  let n = document.getElementById(i);
5029
5246
  n || (n = window.document.createElement("script"), n.id = i, n.async = !0, n.src = "https://securepubads.g.doubleclick.net/tag/js/gpt.js", n.crossOrigin = "anonymous", document.head.appendChild(n));
5030
- }), ve(this, "destroy", () => {
5247
+ }), ye(this, "destroy", () => {
5031
5248
  var i;
5032
5249
  (i = this.rewardAdManager) == null || i.withCommand(() => {
5033
5250
  var n;
5034
5251
  (n = this.rewardAdManager) == null || n.destroy("ignored");
5035
5252
  });
5036
- }), ve(this, "requestAd", (i, n) => {
5253
+ }), ye(this, "requestAd", (i, n) => {
5037
5254
  var r;
5038
5255
  if (!this.rewardAdManager) {
5039
- (r = i.onAdError) == null || r.call(i, $.from(new Error("rewardAdManager not initialized"), "JOLIBOX_IMA_ERROR"));
5256
+ (r = i.onAdError) == null || r.call(i, F.from(new Error("rewardAdManager not initialized"), "JOLIBOX_IMA_ERROR"));
5040
5257
  return;
5041
5258
  }
5042
5259
  this.rewardAdManager.requestAds({
@@ -5059,7 +5276,7 @@ class ks {
5059
5276
  case "ignored":
5060
5277
  break;
5061
5278
  default: {
5062
- (a = i.onAdError) == null || a.call(i, $.from(new Error(o), "JOLIBOX_IMA_ERROR"));
5279
+ (a = i.onAdError) == null || a.call(i, F.from(new Error(o), "JOLIBOX_IMA_ERROR"));
5063
5280
  break;
5064
5281
  }
5065
5282
  }
@@ -5068,14 +5285,14 @@ class ks {
5068
5285
  }), this.context = e, this.contextInfo = e.getContextInfo(), this.insertScript();
5069
5286
  }
5070
5287
  }
5071
- function me(t, e, i) {
5072
- return (e = Is(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
5288
+ function Se(t, e, i) {
5289
+ return (e = Us(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
5073
5290
  }
5074
- function Is(t) {
5075
- var e = xs(t, "string");
5291
+ function Us(t) {
5292
+ var e = js(t, "string");
5076
5293
  return typeof e == "symbol" ? e : e + "";
5077
5294
  }
5078
- function xs(t, e) {
5295
+ function js(t, e) {
5079
5296
  if (typeof t != "object" || !t)
5080
5297
  return t;
5081
5298
  var i = t[Symbol.toPrimitive];
@@ -5087,10 +5304,10 @@ function xs(t, e) {
5087
5304
  }
5088
5305
  return (e === "string" ? String : Number)(t);
5089
5306
  }
5090
- class Us {
5307
+ class Zs {
5091
5308
  constructor(e) {
5092
- if (me(this, "context", void 0), me(this, "contextInfo", void 0), me(this, "providers", {}), me(this, "requestContext", void 0), me(this, "adsRequest", void 0), me(this, "initialized", !1), e)
5093
- this.context = e, this.requestContext = new Mt(e), this.adsRequest = new Yi(e, {
5309
+ if (Se(this, "context", void 0), Se(this, "contextInfo", void 0), Se(this, "providers", {}), Se(this, "requestContext", void 0), Se(this, "adsRequest", void 0), Se(this, "initialized", !1), e)
5310
+ this.context = e, this.requestContext = new Ut(e), this.adsRequest = new nn(e, {
5094
5311
  reward: !1,
5095
5312
  interstitial: !1,
5096
5313
  afv: !1
@@ -5112,22 +5329,22 @@ class Us {
5112
5329
  for (const i of e)
5113
5330
  switch (i.provider) {
5114
5331
  case "GOOGLE_GPT": {
5115
- const n = new ks(this.context);
5332
+ const n = new Fs(this.context);
5116
5333
  await n.init(i), this.providers.GOOGLE_GPT = n;
5117
5334
  break;
5118
5335
  }
5119
5336
  case "GOOGLE_IMA": {
5120
- const n = new gs(this.context);
5337
+ const n = new Cs(this.context);
5121
5338
  await n.init(i), this.providers.GOOGLE_IMA = n;
5122
5339
  break;
5123
5340
  }
5124
5341
  case "OKSPIN": {
5125
- const n = new bs(this.context);
5342
+ const n = new Ps(this.context);
5126
5343
  await n.init(i), this.providers.OKSPIN = n;
5127
5344
  break;
5128
5345
  }
5129
5346
  case "APPSROCKETS": {
5130
- const n = new ms(this.context);
5347
+ const n = new Bs(this.context);
5131
5348
  await n.init(i), this.providers.APPSROCKETS = n;
5132
5349
  break;
5133
5350
  }
@@ -5144,59 +5361,59 @@ class Us {
5144
5361
  this.initialized = !1;
5145
5362
  }
5146
5363
  async requestAd(e) {
5147
- var i, n, r, o, s, a, d, l, u, c, h;
5364
+ var i, n, r, o, s, a, d, u, l, c, h;
5148
5365
  if ((i = this.context.eventEmitter) == null || i.emit("isAdShowing", !0), this.initialized || await this.init(), !this.context.checkNetwork()) {
5149
- const f = $.from(new Error("No network connection"), "JOLIBOX_IMA_ERROR");
5366
+ const f = F.from(new Error("No network connection"), "JOLIBOX_IMA_ERROR");
5150
5367
  (n = e.onAdError) == null || n.call(e, f);
5151
5368
  return;
5152
5369
  }
5153
5370
  try {
5154
- const f = await this.adsRequest.getAFVAdsInfo(!0), g = f == null ? void 0 : f.code, v = f == null ? void 0 : f.data;
5155
- if (g === "BYPASS_ADS") {
5371
+ const f = await this.adsRequest.getAFVAdsInfo(!0), y = f == null ? void 0 : f.code, v = f == null ? void 0 : f.data;
5372
+ if (y === "BYPASS_ADS") {
5156
5373
  (r = e.onAdRequested) == null || r.call(e), (o = e.onAdLoaded) == null || o.call(e, void 0), (s = e.onAdPlaying) == null || s.call(e, void 0), (a = e.onAdCompleted) == null || a.call(e, void 0);
5157
5374
  return;
5158
5375
  }
5159
5376
  if (v) {
5160
- const A = v == null ? void 0 : v.sort((b, m) => b.seq - m.seq);
5161
- if (A.length === 0) {
5162
- const b = $.from(new Error("No ads available"), "JOLIBOX_IMA_ERROR");
5163
- (l = e.onAdError) == null || l.call(e, b);
5377
+ const w = v == null ? void 0 : v.sort((A, m) => A.seq - m.seq);
5378
+ if (w.length === 0) {
5379
+ const A = F.from(new Error("No ads available"), "JOLIBOX_IMA_ERROR");
5380
+ (u = e.onAdError) == null || u.call(e, A);
5164
5381
  return;
5165
5382
  }
5166
- let y = !0, w = null;
5167
- const S = new os(this.context);
5168
- for (; A.length > 0; ) {
5169
- const b = A.shift(), m = this.providers[b.provider];
5383
+ let g = !0, b = null;
5384
+ const S = new As(this.context);
5385
+ for (; w.length > 0; ) {
5386
+ const A = w.shift(), m = this.providers[A.provider];
5170
5387
  if (m) {
5171
- const [E, p] = await S.callAdRequestAndContinue(m, e, b);
5172
- y = E, w = p;
5388
+ const [E, p] = await S.callAdRequestAndContinue(m, e, A);
5389
+ g = E, b = p;
5173
5390
  } else
5174
- y = !0, w = $.from(new Error("No provider available"), "JOLIBOX_IMA_ERROR");
5175
- if (!y)
5391
+ g = !0, b = F.from(new Error("No provider available"), "JOLIBOX_IMA_ERROR");
5392
+ if (!g)
5176
5393
  break;
5177
5394
  }
5178
- y && w && ((u = e.onAdError) == null || u.call(e, w));
5395
+ g && b && ((l = e.onAdError) == null || l.call(e, b));
5179
5396
  } else {
5180
- const A = $.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
5181
- (d = e.onAdError) == null || d.call(e, A);
5397
+ const w = F.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
5398
+ (d = e.onAdError) == null || d.call(e, w);
5182
5399
  return;
5183
5400
  }
5184
5401
  } catch (f) {
5185
- const g = $.from(new Error("Failed to request ad"), "JOLIBOX_IMA_ERROR");
5186
- (c = e.onAdError) == null || c.call(e, g);
5402
+ const y = F.from(new Error("Failed to request ad"), "JOLIBOX_IMA_ERROR");
5403
+ (c = e.onAdError) == null || c.call(e, y);
5187
5404
  } finally {
5188
5405
  (h = this.context.eventEmitter) == null || h.emit("isAdShowing", !1);
5189
5406
  }
5190
5407
  }
5191
5408
  }
5192
- function Se(t, e, i) {
5193
- return (e = Rs(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
5409
+ function Ee(t, e, i) {
5410
+ return (e = Vs(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
5194
5411
  }
5195
- function Rs(t) {
5196
- var e = Ts(t, "string");
5412
+ function Vs(t) {
5413
+ var e = Gs(t, "string");
5197
5414
  return typeof e == "symbol" ? e : e + "";
5198
5415
  }
5199
- function Ts(t, e) {
5416
+ function Gs(t, e) {
5200
5417
  if (typeof t != "object" || !t)
5201
5418
  return t;
5202
5419
  var i = t[Symbol.toPrimitive];
@@ -5208,21 +5425,21 @@ function Ts(t, e) {
5208
5425
  }
5209
5426
  return (e === "string" ? String : Number)(t);
5210
5427
  }
5211
- class $s extends Error {
5428
+ class ea extends Error {
5212
5429
  constructor(e) {
5213
- super(e), Se(this, "name", void 0), Se(this, "message", void 0), Se(this, "errMsg", void 0), Se(this, "code", void 0), Se(this, "data", void 0), Se(this, "extra", void 0), this.name = "ResponseError", this.message = e, this.errMsg = e;
5430
+ 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;
5214
5431
  }
5215
5432
  }
5216
5433
  export {
5217
- $ as AFVWrappedError,
5218
- er as GoogleAdSenseProvider,
5219
- gs as GoogleIMAProvider,
5220
- Po as InterstitialAdManager,
5221
- Ms as JoliboxAdsForGame,
5222
- Us as JoliboxAdsForVideo,
5223
- uo as OKSpinForGameProvider,
5224
- bs as OKSpinForVideoProvider,
5225
- $s as ResponseError,
5226
- Xi as RewardAdManager,
5227
- Ji as initGPTServices
5434
+ F as AFVWrappedError,
5435
+ sr as GoogleAdSenseProvider,
5436
+ Cs as GoogleIMAProvider,
5437
+ Fo as InterstitialAdManager,
5438
+ Qs as JoliboxAdsForGame,
5439
+ Zs as JoliboxAdsForVideo,
5440
+ go as OKSpinForGameProvider,
5441
+ Ps as OKSpinForVideoProvider,
5442
+ ea as ResponseError,
5443
+ tn as RewardAdManager,
5444
+ en as initGPTServices
5228
5445
  };