@jolibox/ads 1.4.3 → 1.4.7

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;
3
- var Ke = 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) => {
1
+ var dn = Object.defineProperty, ln = Object.defineProperties;
2
+ var un = Object.getOwnPropertyDescriptors;
3
+ var ze = Object.getOwnPropertySymbols;
4
+ var Gt = Object.prototype.hasOwnProperty, Kt = Object.prototype.propertyIsEnumerable;
5
+ var qt = (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]);
8
- if (Ke)
9
- for (var i of Ke(e))
10
- Vt.call(e, i) && Ft(t, i, e[i]);
7
+ Gt.call(e, i) && qt(t, i, e[i]);
8
+ if (ze)
9
+ for (var i of ze(e))
10
+ Kt.call(e, i) && qt(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]);
17
- if (t != null && Ke)
18
- for (var n of Ke(t))
19
- e.indexOf(n) < 0 && Vt.call(t, n) && (i[n] = t[n]);
16
+ Gt.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
17
+ if (t != null && ze)
18
+ for (var n of ze(t))
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 pe, useCallback as Et, render as fe, createRef as Jt } 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, An = Object.defineProperties, bn = Object.getOwnPropertyDescriptors, Ht = 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 (Ht)
34
+ for (var i of Ht(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) => An(t, bn(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,29 +116,29 @@ 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"];
141
- function Xe(t, e) {
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
+ function Ye(t, e) {
142
142
  return e.map((i) => {
143
143
  if (i === "params" && t[i]) {
144
144
  let n = t[i];
@@ -147,18 +147,18 @@ function Xe(t, e) {
147
147
  return t[i];
148
148
  });
149
149
  }
150
- function On(t) {
151
- let e = t.location ? Xe(t.location, Xt) : null, i = t.target ? Xe(t.target, Xt) : null;
152
- return Xe(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 = Xe(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", nt = () => !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
- }, $e = 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 v = this._listeners.indexOf(u);
297
+ v >= 0 && (this._listeners.splice(v, 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 $e(), 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: () => qn,
369
+ filter: () => Kn,
370
+ once: () => Ri,
371
+ toPromise: () => Gn
372
372
  });
373
- var Mn = () => (console.log("[Jolibox SDK] None Event"), () => {
373
+ var qn = () => (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 Gn(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 $e(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
+ Jn(t[n], e[n]);
415
415
  }
416
- function Vn(t, e) {
417
- if (_n(e)) {
416
+ function Jn(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 $e(), 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 $e(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new $e(), 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);
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;
524
+ ei = Si([Ei], ei);
525
+ function J(t, e, i) {
526
+ return (e = Hn(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 Hn(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 me = (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,9 +552,9 @@ 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
- 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) => () => {
557
+ J(this, "context", void 0), J(this, "continueCallback", void 0), J(this, "adIsShowingCallback", void 0), J(this, "isBeforeAdCalled", !1), J(this, "isBeforeRewardCalled", !1), J(this, "isAdDismissedCalled", !1), J(this, "isAdViewedCalled", !1), J(this, "isAfterAdCalled", !1), J(this, "currentProvider", void 0), J(this, "currentClientParams", void 0), J(this, "adsHasResponse", !1), J(this, "videoChecker", window.document.createElement("video")), J(this, "contextInfo", void 0), J(this, "wrapShowAdFn", (i) => () => {
558
558
  var o, s, a;
559
559
  this.adsHasResponse = !0;
560
560
  let n = !1;
@@ -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)), nt() && 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 = me(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), nt() && this.context.track("mmp_ad_impression", {
598
+ const s = me(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 = me(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 = me(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 = me(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 = me(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 : "",
@@ -728,14 +728,14 @@ class Kn {
728
728
  });
729
729
  }
730
730
  }
731
- function ze(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;
731
+ function We(t, e, i) {
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,13 +747,13 @@ 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
- ze(this, "context", void 0), ze(this, "adBreakIsShowing", !1), ze(this, "reportPageJumpOut", () => {
752
+ We(this, "context", void 0), We(this, "adBreakIsShowing", !1), We(this, "reportPageJumpOut", () => {
753
753
  this.context.track("AdBreakJumpOut", {
754
754
  context: "AdsActionDetection"
755
755
  });
756
- }), ze(this, "reportPageHide", () => {
756
+ }), We(this, "reportPageHide", () => {
757
757
  this.context.track("AdBreakHide", {
758
758
  context: "AdsActionDetection"
759
759
  });
@@ -764,14 +764,14 @@ class Hn {
764
764
  });
765
765
  }
766
766
  }
767
- function We(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;
767
+ function Je(t, e, i) {
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,9 +783,9 @@ 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
- We(this, "configs", null), We(this, "firstRun", !0), We(this, "context", void 0), We(this, "contextInfo", void 0), this.context = e, this.contextInfo = this.context.getContextInfo(), this.init();
788
+ Je(this, "configs", null), Je(this, "firstRun", !0), Je(this, "context", void 0), Je(this, "contextInfo", void 0), this.context = e, this.contextInfo = this.context.getContextInfo(), this.init();
789
789
  }
790
790
  async init() {
791
791
  try {
@@ -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 v, y, 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: (y = (v = n.adFormat) == null ? void 0 : v.toString()) != null ? y : 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,25 +865,25 @@ 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 A = document.createElement("div");
879
+ A.style.position = "absolute", A.style.top = "0", A.style.left = "0", A.style.width = "100%", A.style.height = "100%", A.style.display = "flex", A.style.justifyContent = "center", A.style.alignItems = "center", A.style.backgroundColor = "rgba(0, 0, 0, 0.5)", A.style.color = "white", A.innerHTML = "Test Ad", h.style.position = "relative", u.appendChild(h), h.appendChild(A);
880
880
  } else
881
- l.appendChild(h), new MutationObserver((S) => {
882
- S.forEach((b) => {
883
- if (b.type === "attributes" && b.attributeName === "data-ad-status") {
884
- const m = h.getAttribute("data-ad-status");
881
+ u.appendChild(h), new MutationObserver((S) => {
882
+ S.forEach((p) => {
883
+ if (p.type === "attributes" && p.attributeName === "data-ad-status") {
884
+ const _ = h.getAttribute("data-ad-status");
885
885
  this.context.track("AdSenseUnitStatusChanged", {
886
- status: m != null ? m : "null"
886
+ status: _ != null ? _ : "null"
887
887
  });
888
888
  }
889
889
  });
@@ -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,66 +946,66 @@ 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
- function Fe(t, e, i) {
968
+ function je(t, e, i) {
969
969
  return t.slice(e, i);
970
970
  }
971
- function re(t) {
971
+ function oe(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 He(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 Ar() {
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
- function oe() {
1000
- return U(Ce, X);
999
+ function se() {
1000
+ return $(Oe, X);
1001
1001
  }
1002
- function Ye() {
1002
+ function Qe() {
1003
1003
  return X;
1004
1004
  }
1005
- function Ve(t, e) {
1006
- return Fe(Ce, t, e);
1005
+ function qe(t, e) {
1006
+ return je(Oe, t, e);
1007
1007
  }
1008
- function je(t) {
1008
+ function Ve(t) {
1009
1009
  switch (t) {
1010
1010
  case 0:
1011
1011
  case 9:
@@ -1037,36 +1037,36 @@ function je(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 = oe(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
- function Qe(t) {
1047
- return Ii(Ve(X - 1, xt(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
1046
+ function Ze(t) {
1047
+ return Oi(qe(X - 1, Ct(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
1048
1048
  }
1049
- function fr(t) {
1050
- for (; (N = oe()) && N < 33; )
1049
+ function br(t) {
1050
+ for (; (N = se()) && N < 33; )
1051
1051
  Z();
1052
- return je(t) > 2 || je(N) > 3 ? "" : " ";
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
- return Ve(t, Ye() + (e < 6 && oe() == 32 && Z() == 32));
1057
+ return qe(t, Qe() + (e < 6 && se() == 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,203 +1074,203 @@ 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
- if (t + N === 84 && oe() === 47)
1079
+ if (t + N === 84 && se() === 47)
1080
1080
  break;
1081
- return "/*" + Ve(e, X - 1) + "*" + dt(t === 47 ? t : Z());
1081
+ return "/*" + qe(e, X - 1) + "*" + ut(t === 47 ? t : Z());
1082
1082
  }
1083
- function gr(t) {
1084
- for (; !je(oe()); )
1083
+ function mr(t) {
1084
+ for (; !Ve(se()); )
1085
1085
  Z();
1086
- return Ve(t, X);
1086
+ return qe(t, X);
1087
1087
  }
1088
- function Ar(t) {
1089
- return Ti(Ze("", 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
- function Ze(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()) {
1091
+ function et(t, e, i, n, r, o, s, a, d) {
1092
+ for (var u = 0, l = 0, c = s, h = 0, f = 0, v = 0, y = 1, w = 1, g = 1, A = 0, S = "", p = r, _ = o, E = n, b = S; w; )
1093
+ switch (v = A, A = Z()) {
1094
1094
  case 40:
1095
- if (g != 108 && U(p, c - 1) == 58) {
1096
- It(p += R(Qe(w), "&", "&\f"), "&\f") != -1 && (y = -1);
1095
+ if (v != 108 && $(b, c - 1) == 58) {
1096
+ Tt(b += R(Ze(A), "&", "&\f"), "&\f") != -1 && (g = -1);
1097
1097
  break;
1098
1098
  }
1099
1099
  case 34:
1100
1100
  case 39:
1101
1101
  case 91:
1102
- p += Qe(w);
1102
+ b += Ze(A);
1103
1103
  break;
1104
1104
  case 9:
1105
1105
  case 10:
1106
1106
  case 13:
1107
1107
  case 32:
1108
- p += fr(g);
1108
+ b += br(v);
1109
1109
  break;
1110
1110
  case 92:
1111
- p += vr(Ye() - 1, 7);
1111
+ b += pr(Qe() - 1, 7);
1112
1112
  continue;
1113
1113
  case 47:
1114
- switch (oe()) {
1114
+ switch (se()) {
1115
1115
  case 42:
1116
1116
  case 47:
1117
- He(wr(yr(Z(), Ye()), e, i), d);
1117
+ He(Er(_r(Z(), Qe()), e, i), d);
1118
1118
  break;
1119
1119
  default:
1120
- p += "/";
1120
+ b += "/";
1121
1121
  }
1122
1122
  break;
1123
- case 123 * v:
1124
- a[l++] = re(p) * y;
1125
- case 125 * v:
1123
+ case 123 * y:
1124
+ a[u++] = oe(b) * g;
1125
+ case 125 * y:
1126
1126
  case 59:
1127
1127
  case 0:
1128
- switch (w) {
1128
+ switch (A) {
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 && He(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 && (b = R(b, /\f/g, "")), f > 0 && oe(b) - c && He(f > 32 ? ii(b + ";", n, i, c - 1) : ii(R(b, " ", "") + ";", n, i, c - 2), d);
1134
1134
  break;
1135
1135
  case 59:
1136
- p += ";";
1136
+ b += ";";
1137
1137
  default:
1138
- if (He(E = Qt(p, e, i, l, u, r, a, S, b = [], m = [], c), o), w === 123)
1139
- if (u === 0)
1140
- Ze(p, e, E, E, b, o, c, a, m);
1138
+ if (He(E = ti(b, e, i, u, l, r, a, S, p = [], _ = [], c), o), A === 123)
1139
+ if (l === 0)
1140
+ et(b, e, E, E, p, o, c, a, _);
1141
1141
  else
1142
- switch (h === 99 && U(p, 3) === 110 ? 100 : h) {
1142
+ switch (h === 99 && $(b, 3) === 110 ? 100 : h) {
1143
1143
  case 100:
1144
1144
  case 108:
1145
1145
  case 109:
1146
1146
  case 115:
1147
- Ze(t, E, E, n && He(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 && He(ti(t, E, E, 0, 0, r, a, S, r, p = [], c), _), r, _, c, a, n ? p : _);
1148
1148
  break;
1149
1149
  default:
1150
- Ze(p, E, E, E, [""], m, 0, a, m);
1150
+ et(b, E, E, E, [""], _, 0, a, _);
1151
1151
  }
1152
1152
  }
1153
- l = u = f = 0, v = y = 1, S = p = "", c = s;
1153
+ u = l = f = 0, y = g = 1, S = b = "", c = s;
1154
1154
  break;
1155
1155
  case 58:
1156
- c = 1 + re(p), f = g;
1156
+ c = 1 + oe(b), f = v;
1157
1157
  default:
1158
- if (v < 1) {
1159
- if (w == 123)
1160
- --v;
1161
- else if (w == 125 && v++ == 0 && hr() == 125)
1158
+ if (y < 1) {
1159
+ if (A == 123)
1160
+ --y;
1161
+ else if (A == 125 && y++ == 0 && Ar() == 125)
1162
1162
  continue;
1163
1163
  }
1164
- switch (p += dt(w), w * v) {
1164
+ switch (b += ut(A), A * y) {
1165
1165
  case 38:
1166
- y = u > 0 ? 1 : (p += "\f", -1);
1166
+ g = l > 0 ? 1 : (b += "\f", -1);
1167
1167
  break;
1168
1168
  case 44:
1169
- a[l++] = (re(p) - 1) * y, y = 1;
1169
+ a[u++] = (oe(b) - 1) * g, g = 1;
1170
1170
  break;
1171
1171
  case 64:
1172
- oe() === 45 && (p += Qe(Z())), h = oe(), u = c = re(S = p += gr(Ye())), w++;
1172
+ se() === 45 && (b += Ze(Z())), h = se(), l = c = oe(S = b += mr(Qe())), A++;
1173
1173
  break;
1174
1174
  case 45:
1175
- g === 45 && re(p) == 2 && (v = 0);
1175
+ v === 45 && oe(b) == 2 && (y = 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 = Fe(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), v = 0, y = 0, w = 0; v < n; ++v)
1182
+ for (var g = 0, A = je(t, c + 1, c = hr(y = s[v])), S = t; g < f; ++g)
1183
+ (S = Oi(y > 0 ? h[g] + " " + A : R(A, /&\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()), Fe(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, Fe(t, 0, n), Fe(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 oe(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) {
1234
- for (var r = 0, o = 0; r = o, o = oe(), r === 38 && o === 12 && (i[n] = 1), !je(o); )
1233
+ var Tr = function(e, i, n) {
1234
+ for (var r = 0, o = 0; r = o, o = se(), r === 38 && o === 12 && (i[n] = 1), !Ve(o); )
1235
1235
  Z();
1236
- return Ve(e, X);
1237
- }, Er = function(e, i) {
1236
+ return qe(e, X);
1237
+ }, Cr = function(e, i) {
1238
1238
  var n = -1, r = 44;
1239
1239
  do
1240
- switch (je(r)) {
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 && se() === 12 && (i[n] = 1), e[n] += Tr(X - 1, i, n);
1243
1243
  break;
1244
1244
  case 2:
1245
- e[n] += Qe(r);
1245
+ e[n] += Ze(r);
1246
1246
  break;
1247
1247
  case 4:
1248
1248
  if (r === 44) {
1249
- e[++n] = oe() === 58 ? "&\f" : "", i[n] = e[n].length;
1249
+ e[++n] = se() === 58 ? "&\f" : "", i[n] = e[n].length;
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;
@@ -1357,30 +1357,30 @@ function Ci(t, e) {
1357
1357
  case 5789:
1358
1358
  case 5021:
1359
1359
  case 4765:
1360
- if (re(t) - 1 - e > 6)
1361
- switch (U(t, e + 1)) {
1360
+ if (oe(t) - 1 - e > 6)
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, oe(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
- 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", ""));
1430
+ Array.prototype.forEach.call(n, function(y) {
1431
+ var w = y.getAttribute("data-emotion");
1432
+ w.indexOf(" ") !== -1 && (document.head.appendChild(y), y.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
- function(v) {
1441
- for (var A = v.getAttribute("data-emotion").split(" "), y = 1; y < A.length; y++)
1442
- o[A[y]] = !0;
1443
- a.push(v);
1440
+ function(y) {
1441
+ for (var w = y.getAttribute("data-emotion").split(" "), g = 1; g < w.length; g++)
1442
+ o[w[g]] = !0;
1443
+ a.push(y);
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(y) {
1449
+ l.insert(y);
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, A, S) {
1454
+ l = A, f(w ? w + "{" + g.styles + "}" : g.styles), S && (v.inserted[g.name] = !0);
1455
1455
  };
1456
1456
  }
1457
- var g = {
1457
+ var v = {
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 v.sheet.hydrate(a), v;
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 At(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
+ }, qr = 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 Gr = 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 = At(u, i.registered, void 0);
1700
+ return qr(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 = At(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 = At(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,96 +1759,96 @@ var Ur = function(e) {
1759
1759
  }
1760
1760
  }
1761
1761
  return i;
1762
- }, Fr = Ur({
1762
+ }, zr = Gr({
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
+ }), q = zr.css, Ot, Q, bt, 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 Jr() {
1775
+ for (var t; t = $i.shift(); )
1776
1776
  if (t.__P && t.__H)
1777
1777
  try {
1778
- t.__H.__h.forEach(et), 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
- e && (At === Q ? (e.__h = [], Q.__h = [], e.__.forEach(function(i) {
1790
+ e && (bt === 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(et), e.__h.forEach(Tt), e.__h = [], Rt = 0)), At = Q;
1792
+ })) : (e.__h.forEach(tt), e.__h.forEach(Dt), e.__h = [], Ot = 0)), bt = 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) || Hr)(Jr)), e.__H.__.forEach(function(i) {
1797
1797
  i.u && (i.__H = i.u), i.u = void 0;
1798
- })), At = Q = null;
1798
+ })), bt = Q = null;
1799
1799
  }, B.__c = function(t, e) {
1800
1800
  e.some(function(i) {
1801
1801
  try {
1802
- i.__h.forEach(et), i.__h = i.__h.filter(function(n) {
1803
- return !n.__ || Tt(n);
1802
+ i.__h.forEach(tt), i.__h = i.__h.filter(function(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 {
1816
- et(n);
1816
+ tt(n);
1817
1817
  } catch (r) {
1818
1818
  e = r;
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 Hr(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
- function et(t) {
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,25 +1881,25 @@ 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
- return qe(function() {
1902
+ return Ke(function() {
1903
1903
  var i = e.value, n = T;
1904
1904
  T = void 0;
1905
1905
  try {
@@ -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 qi(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, qi(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 Gi(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, Gi(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
+ qi(this), T = t, this.f &= -2, 8 & this.f && Ft(this), ft();
2048
2048
  }
2049
2049
  function Ge(t) {
2050
2050
  this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
@@ -2063,17 +2063,17 @@ Ge.prototype.c = function() {
2063
2063
  Ge.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, Gi(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
  Ge.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
  Ge.prototype.d = function() {
2074
- this.f |= 8, 1 & this.f || Bt(this);
2074
+ this.f |= 8, 1 & this.f || Ft(this);
2075
2075
  };
2076
- function qe(t) {
2076
+ function Ke(t) {
2077
2077
  var e = new Ge(t);
2078
2078
  try {
2079
2079
  e.c();
@@ -2082,75 +2082,75 @@ function qe(t) {
2082
2082
  }
2083
2083
  return e.d.bind(e);
2084
2084
  }
2085
- var Fi, wt, ji = [];
2086
- qe(function() {
2087
- Fi = this.N;
2085
+ var Ki, pt, zi = [];
2086
+ Ke(function() {
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 = Ji(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);
2110
- }), c = qe(function() {
2111
- if (this.N = qi, u.value) {
2112
- var f = l.value;
2108
+ }), l = Fe(function() {
2109
+ return !Array.isArray(u.value) && !hn(u.value);
2110
+ }), c = Ke(function() {
2111
+ if (this.N = Hi, 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;
2142
- return qe(function() {
2142
+ return Ke(function() {
2143
2143
  o = this;
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
- }, d: qe(function() {
2179
- this.N = qi;
2178
+ }, d: Ke(function() {
2179
+ this.N = Hi;
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,26 +2224,26 @@ 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 Ji(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 Hi() {
2244
+ zi.push(this) === 1 && (Re.requestAnimationFrame || eo)(to);
2245
2245
  }
2246
- const M = G`
2246
+ const M = q`
2247
2247
  inset: 0;
2248
2248
  clear: none;
2249
2249
  float: none;
@@ -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;
2281
- function _(t, e, i, n, r, o) {
2280
+ var no = 0;
2281
+ function m(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 = q`
2294
2294
  ${M}
2295
2295
  position: fixed;
2296
2296
  top: 0;
@@ -2365,55 +2365,55 @@ const Qr = G`
2365
2365
  }
2366
2366
  }
2367
2367
  }
2368
- `, ie = k(null), Ot = k(""), Dt = k(""), tt = k(!1), Zr = () => {
2368
+ `, ne = k(null), Nt = k(""), Lt = k(""), it = k(!1), oo = () => {
2369
2369
  var t;
2370
- (t = ie.value) == null || t.call(ie, !1);
2371
- }, eo = () => {
2370
+ (t = ne.value) == null || t.call(ne, !1);
2371
+ }, so = () => {
2372
2372
  var t;
2373
- (t = ie.value) == null || t.call(ie, !0);
2374
- }, to = async (t) => {
2373
+ (t = ne.value) == null || t.call(ne, !0);
2374
+ }, ao = async (t) => {
2375
2375
  let {
2376
2376
  title: e,
2377
2377
  content: i
2378
2378
  } = t;
2379
- return ie.value && (ie.value(!1), P(() => {
2380
- ie.value = null, tt.value = !1;
2379
+ return ne.value && (ne.value(!1), P(() => {
2380
+ ne.value = null, it.value = !1;
2381
2381
  })), P(() => {
2382
- Ot.value = e || "", Dt.value = i || "", tt.value = !0;
2382
+ Nt.value = e || "", Lt.value = i || "", it.value = !0;
2383
2383
  }), new Promise((n) => {
2384
- ie.value = (r) => {
2384
+ ne.value = (r) => {
2385
2385
  P(() => {
2386
- ie.value = null, tt.value = !1, Ot.value = "", Dt.value = "";
2386
+ ne.value = null, it.value = !1, Nt.value = "", Lt.value = "";
2387
2387
  }), n(r);
2388
2388
  };
2389
2389
  });
2390
- }, io = () => tt.value ? _("div", {
2391
- className: Qr,
2392
- children: _("div", {
2390
+ }, lo = () => it.value ? m("div", {
2391
+ className: ro,
2392
+ children: m("div", {
2393
2393
  className: "card-wrapper",
2394
- children: [_("div", {
2394
+ children: [m("div", {
2395
2395
  className: "body",
2396
- children: [_("div", {
2396
+ children: [m("div", {
2397
2397
  className: "title",
2398
- children: Ot.value
2399
- }), _("div", {
2398
+ children: Nt.value
2399
+ }), m("div", {
2400
2400
  className: "content",
2401
- children: Dt.value
2401
+ children: Lt.value
2402
2402
  })]
2403
- }), _("div", {
2403
+ }), m("div", {
2404
2404
  className: "footer",
2405
- children: [_("button", {
2406
- onClick: Zr,
2405
+ children: [m("button", {
2406
+ onClick: oo,
2407
2407
  className: "cancel-btn",
2408
2408
  children: "Cancel"
2409
- }), _("button", {
2410
- onClick: eo,
2409
+ }), m("button", {
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 = q`
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 = Ji(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
  })) {
@@ -2501,28 +2501,28 @@ const Qr = G`
2501
2501
  s.value = !0, a.value = 0, o.value = null;
2502
2502
  });
2503
2503
  };
2504
- return _("div", {
2505
- className: no,
2506
- children: [a.value > 0 && i !== "interstitial" && _("div", {
2504
+ return m("div", {
2505
+ className: uo,
2506
+ children: [a.value > 0 && i !== "interstitial" && m("div", {
2507
2507
  className: "timer",
2508
2508
  children: [a.value, "s"]
2509
- }), _("button", {
2510
- onClick: d.value ? c : l.value ? h : void 0,
2511
- disabled: u.value,
2512
- children: _("svg", {
2509
+ }), m("button", {
2510
+ onClick: d.value ? c : u.value ? h : void 0,
2511
+ disabled: l.value,
2512
+ children: m("svg", {
2513
2513
  width: "12",
2514
2514
  height: "12",
2515
2515
  viewBox: "0 0 14 14",
2516
2516
  fill: "none",
2517
2517
  xmlns: "http://www.w3.org/2000/svg",
2518
- children: _("path", {
2518
+ children: m("path", {
2519
2519
  d: "M13.3 0.710215C12.91 0.320215 12.28 0.320215 11.89 0.710215L6.99997 5.59022L2.10997 0.700215C1.71997 0.310215 1.08997 0.310215 0.699971 0.700215C0.309971 1.09021 0.309971 1.72022 0.699971 2.11022L5.58997 7.00022L0.699971 11.8902C0.309971 12.2802 0.309971 12.9102 0.699971 13.3002C1.08997 13.6902 1.71997 13.6902 2.10997 13.3002L6.99997 8.41021L11.89 13.3002C12.28 13.6902 12.91 13.6902 13.3 13.3002C13.69 12.9102 13.69 12.2802 13.3 11.8902L8.40997 7.00022L13.3 2.11022C13.68 1.73022 13.68 1.09022 13.3 0.710215Z",
2520
2520
  fill: "white"
2521
2521
  })
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 = q`
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] = pe(!1), v = (w) => {
2572
+ var g, A, S, p;
2573
+ a.value = !1, w === "dismiss" ? (g = n.value) == null || g.call(n) : w === "viewed" && ((A = r.value) == null || A.call(r)), (S = i.value) == null || S.call(i), (p = o.value) == null || p.call(o), f(!1);
2574
+ }, y = 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 ? m("div", {
2583
+ className: fo,
2584
+ children: [m(ho, {
2585
+ mode: l.value,
2586
+ onClose: v,
2587
2587
  countdown: d.value,
2588
2588
  state: c
2589
- }), a.value && _("iframe", {
2590
- src: l.value,
2591
- onLoad: v,
2589
+ }), a.value && m("iframe", {
2590
+ src: u.value,
2591
+ onLoad: y,
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
+ }), m(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(m(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);
2709
2706
  }, v = () => {
2710
- var y;
2711
- this.adsIsShowing = !1, (y = e.adBreakDone) == null || y.call(e, h);
2707
+ var g;
2708
+ this.adsIsShowing = !1, h.breakStatus = "viewed", (g = e.adViewed) == null || g.call(e);
2709
+ }, y = () => {
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 = v, this.state.adBreakDone.value = y;
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 A;
2729
+ this.state.countdown.value = (A = i.params.countdown) != null ? A : 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
+ }, Ao = q`
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
+ `, bo = q`
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 = q`
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 = q`
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 = q`
2782
2782
  font-size: 14px;
2783
2783
  font-weight: 500;
2784
- `, Ao = G`
2784
+ `, So = q`
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
+ `, Ai = q`
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 = q`
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 = q`
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 = q`
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,48 +2842,48 @@ 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) => {
2847
- var C, W, q, I;
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(() => {
2845
+ payload: u
2846
+ } = e, [l, c] = pe(!1), [h, f] = pe(0), [v, y] = pe(!1), [w, g] = pe(!1), [A, S] = pe("Loading next content..."), p = _i(null), _ = u.value, E = Et((L) => {
2847
+ var C, W, G, I;
2848
+ c(!1), d.value = !1, L === "dismiss" ? (C = n.value) == null || C.call(n) : (W = r.value) == null || W.call(r), (G = i.value) == null || G.call(i), (I = o.value) == null || I.call(o);
2849
+ }, [d, n, r, i, o]), b = 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
- if (!d.value || !m) {
2856
- f(0), v(!1), y(!1), S("Loading next content...");
2855
+ if (!d.value || !_) {
2856
+ f(0), y(!1), g(!1), S("Loading next content...");
2857
2857
  return;
2858
2858
  }
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)
2859
+ const L = _.mode === "reward" ? 15 : 0, C = Math.max(Math.floor((I = _.countdown) != null ? I : L), 0);
2860
+ if (f(C), g(_.mode === "reward" ? C === 0 : !0), y(_.mode === "interstitial" ? C === 0 : !1), C === 0)
2861
2861
  return;
2862
2862
  let W = C;
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));
2863
+ const G = window.setInterval(() => {
2864
+ W -= 1, f(Math.max(W, 0)), W <= 0 && (window.clearInterval(G), _.mode === "reward" ? g(!0) : y(!0));
2865
2865
  }, 1e3);
2866
2866
  return () => {
2867
- window.clearInterval(q);
2867
+ window.clearInterval(G);
2868
2868
  };
2869
- }, [d.value, m, E]), Re(() => {
2870
- var q;
2871
- if (!d.value || !m)
2869
+ }, [d.value, _, E]), Te(() => {
2870
+ var G;
2871
+ if (!d.value || !_)
2872
2872
  return;
2873
- const L = b.current;
2873
+ const L = p.current;
2874
2874
  if (!L)
2875
2875
  return;
2876
- if (L.innerHTML = "", S("Loading next content..."), c(!1), m.testMode) {
2876
+ if (L.innerHTML = "", S("Loading next content..."), c(!1), _.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 = Ai, I.innerText = "Preview slot placeholder", L.appendChild(I), c(!0), (G = s.value) == null || G.call(s);
2879
2879
  return;
2880
2880
  }
2881
2881
  if (typeof window == "undefined") {
2882
- p();
2882
+ b();
2883
2883
  return;
2884
2884
  }
2885
2885
  const C = document.createElement("ins");
2886
- C.className = "adsbygoogle", C.style.display = "block", C.style.width = "100%", C.style.height = "100%", C.setAttribute("data-ad-client", m.clientId), C.setAttribute("data-ad-slot", m.unitId), C.setAttribute("data-ad-format", "auto"), C.setAttribute("data-full-width-responsive", "true"), m.channelId && C.setAttribute("data-ad-channel", m.channelId), L.appendChild(C);
2886
+ C.className = "adsbygoogle", C.style.display = "block", C.style.width = "100%", C.style.height = "100%", C.setAttribute("data-ad-client", _.clientId), C.setAttribute("data-ad-slot", _.unitId), C.setAttribute("data-ad-format", "auto"), C.setAttribute("data-full-width-responsive", "true"), _.channelId && C.setAttribute("data-ad-channel", _.channelId), L.appendChild(C);
2887
2887
  const W = new MutationObserver(() => {
2888
2888
  var Y;
2889
2889
  const I = C.getAttribute("data-ad-status");
@@ -2897,44 +2897,44 @@ const co = () => {
2897
2897
  const I = window;
2898
2898
  I.adsbygoogle = I.adsbygoogle || [], I.adsbygoogle.push({});
2899
2899
  } catch (I) {
2900
- W.disconnect(), p();
2900
+ W.disconnect(), b();
2901
2901
  }
2902
2902
  return () => {
2903
2903
  W.disconnect(), L.innerHTML = "";
2904
2904
  };
2905
- }, [d.value, m, s, p]), !d.value || !m)
2905
+ }, [d.value, _, s, b]), !d.value || !_)
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";
2908
- return _("div", {
2909
- className: ho,
2910
- children: _("div", {
2911
- className: fo,
2912
- children: [_("div", {
2913
- className: vo,
2914
- children: [_("div", {
2915
- className: yo,
2916
- children: se
2917
- }), _("div", {
2918
- className: go,
2919
- children: be
2907
+ const ee = _.mode === "reward" ? "Next content unlocking" : "Content paused", _e = h > 0 ? `Content resumes in ${h}s` : "Content ready";
2908
+ return m("div", {
2909
+ className: Ao,
2910
+ children: m("div", {
2911
+ className: bo,
2912
+ children: [m("div", {
2913
+ className: po,
2914
+ children: [m("div", {
2915
+ className: _o,
2916
+ children: ee
2917
+ }), m("div", {
2918
+ className: mo,
2919
+ children: _e
2920
2920
  })]
2921
- }), _("div", {
2922
- className: Ao,
2923
- ref: b,
2924
- children: !u && _("div", {
2925
- className: yi,
2926
- children: w
2921
+ }), m("div", {
2922
+ className: So,
2923
+ ref: p,
2924
+ children: !l && m("div", {
2925
+ className: Ai,
2926
+ children: A
2927
2927
  })
2928
- }), _("div", {
2929
- className: wo,
2930
- children: m.mode === "reward" ? _("button", {
2931
- className: bo,
2928
+ }), m("div", {
2929
+ className: Eo,
2930
+ children: _.mode === "reward" ? m("button", {
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
+ }) : v && m("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(m(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, v;
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);
3089
- const v = {
3088
+ (l = e.beforeAd) == null || l.call(e);
3089
+ const y = {
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
- 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);
3099
+ this.adsIsShowing = !1, (S = e.adBreakDone) == null || S.call(e, y);
3100
+ }, A = () => {
3101
+ var S, p;
3102
+ this.adsIsShowing = !1, y.breakStatus = "noAdPreloaded", (S = e.afterAd) == null || S.call(e), (p = e.adBreakDone) == null || p.call(e, y);
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 = A, this.showBannerOverlay("interstitial", o);
3106
3106
  });
3107
3107
  break;
3108
3108
  }
@@ -3113,34 +3113,34 @@ class Eo {
3113
3113
  breakFormat: this.lastUnDisplayedAdBreak.type === "reward" ? "reward" : "interstitial",
3114
3114
  breakStatus: "ignored"
3115
3115
  }), this.lastUnDisplayedAdBreak = null), (f = e.beforeAd) == null || f.call(e);
3116
- const v = {
3116
+ const y = {
3117
3117
  breakType: e.type,
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
- this.adsIsShowing = !1, v.breakStatus = "dismissed", (E = e.adDismissed) == null || E.call(e);
3127
- }, w = () => {
3126
+ this.adsIsShowing = !1, y.breakStatus = "dismissed", (E = e.adDismissed) == null || E.call(e);
3127
+ }, A = () => {
3128
3128
  var E;
3129
- this.adsIsShowing = !1, v.breakStatus = "viewed", (E = e.adViewed) == null || E.call(e);
3129
+ this.adsIsShowing = !1, y.breakStatus = "viewed", (E = e.adViewed) == null || E.call(e);
3130
3130
  }, S = () => {
3131
3131
  var E;
3132
- this.adsIsShowing = !1, (E = e.adBreakDone) == null || E.call(e, v);
3133
- }, b = () => {
3134
- var E, p;
3135
- this.adsIsShowing = !1, v.breakStatus = "noAdPreloaded", (E = e.afterAd) == null || E.call(e), (p = e.adBreakDone) == null || p.call(e, v);
3132
+ this.adsIsShowing = !1, (E = e.adBreakDone) == null || E.call(e, y);
3133
+ }, p = () => {
3134
+ var E, b;
3135
+ this.adsIsShowing = !1, y.breakStatus = "noAdPreloaded", (E = e.afterAd) == null || E.call(e), (b = e.adBreakDone) == null || b.call(e, y);
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 = A, this.state.adBreakDone.value = S, this.state.adError.value = p;
3139
3139
  });
3140
- const m = () => {
3141
- var E, p;
3140
+ const _ = () => {
3141
+ var E, b;
3142
3142
  if (!this.canDisplay(o.rewardUnitId)) {
3143
- this.lastUnDisplayedAdBreak = null, (E = e.afterAd) == null || E.call(e), (p = e.adBreakDone) == null || p.call(e, {
3143
+ this.lastUnDisplayedAdBreak = null, (E = e.afterAd) == null || E.call(e), (b = e.adBreakDone) == null || b.call(e, {
3144
3144
  breakType: e.type,
3145
3145
  breakName: e.name,
3146
3146
  breakFormat: "reward",
@@ -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, (v = e.beforeReward) == null || v.call(e, _);
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 Se = (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 = q`
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] = pe(!1), h = (v) => {
3217
+ var y, w, g, A;
3218
+ c(!1), d.value = !1, v === "dismiss" ? (y = n.value) == null || y.call(n) : v === "viewed" && ((w = r.value) == null || w.call(r)), (g = i.value) == null || g.call(i), (A = o.value) == null || A.call(o);
3219
3219
  }, f = () => {
3220
- var g;
3221
- (g = s.value) == null || g.call(s);
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) => {
3224
3220
  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,
3221
+ (v = s.value) == null || v.call(s);
3222
+ };
3223
+ return Se("appsrockets_ad_dismissed", () => h("dismiss")), Se("appsrockets_ad_rewarded", () => h("viewed")), Se("appsrockets_ad_completed", () => h("viewed")), Se("appsrockets_ad_skipped", () => h("viewed")), Se("appsrockets_ad_clicked", (v) => {
3224
+ var y;
3225
+ return (y = a.value) == null ? void 0 : y.call(a, v);
3226
+ }), Se("appsrockets_ad_loaded", () => c(!0)), d.value ? m("div", {
3227
+ className: Oo,
3228
3228
  style: {
3229
- display: u ? "flex" : "none"
3229
+ display: l ? "flex" : "none"
3230
3230
  },
3231
- children: d.value && _("iframe", {
3232
- src: l.value,
3231
+ children: d.value && m("iframe", {
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(m(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 v, y;
3306
+ (y = (v = this.context).handleLinkClicked) == null || y.call(v, 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
+ }, v = () => {
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
- }, v = () => {
3335
- var A;
3336
- this.adsIsShowing = !1, (A = e.adBreakDone) == null || A.call(e, {
3334
+ }, y = () => {
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 = v, this.state.src.value = this.processUrl(i.params.url, r), this.state.adLinkClicked.value = n, this.state.adError.value = y, 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 p;
3357
+ this.adsIsShowing = !1, (p = e.afterAd) == null || p.call(e);
3358
+ }, v = {
3359
3359
  breakType: e.type,
3360
3360
  breakName: e.name,
3361
3361
  breakFormat: "reward",
3362
3362
  breakStatus: "ignored"
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
3363
  }, y = () => {
3370
- var b;
3371
- this.adsIsShowing = !1, (b = e.adBreakDone) == null || b.call(e, g);
3364
+ var p;
3365
+ this.adsIsShowing = !1, v.breakStatus = "dismissed", (p = e.adDismissed) == null || p.call(e);
3372
3366
  }, w = () => {
3373
- this.adsIsShowing = !1, g.breakStatus = "noAdPreloaded";
3367
+ var p;
3368
+ this.adsIsShowing = !1, v.breakStatus = "viewed", (p = e.adViewed) == null || p.call(e);
3369
+ }, g = () => {
3370
+ var p;
3371
+ this.adsIsShowing = !1, (p = e.adBreakDone) == null || p.call(e, v);
3372
+ }, A = () => {
3373
+ this.adsIsShowing = !1, v.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 = y, this.state.adViewed.value = w, this.state.adBreakDone.value = g, this.state.adLinkClicked.value = n, this.state.adError.value = A;
3377
3377
  });
3378
3378
  const S = () => {
3379
- var b;
3379
+ var p;
3380
3380
  if (this.lastUnDisplayedAdBreak = null, !this.adsOverlay) {
3381
- (b = e.adBreakDone) == null || b.call(e, {
3381
+ (p = e.adBreakDone) == null || p.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
+ };
3488
+ function H(t, e, i) {
3489
+ return (e = Mo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3487
3490
  }
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;
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,31 +3504,31 @@ 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
- 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() {
3510
+ H(this, "adUnit", void 0), H(this, "project", void 0), H(this, "keyValue", void 0), H(this, "adsContext", null), H(this, "gamingInterstitialSlot", null), H(this, "readyEvent", null), H(this, "isRetrying", !1), H(this, "withCommand", function() {
3511
3511
  googletag.cmd.push(...arguments);
3512
- }), J(this, "init", () => {
3512
+ }), H(this, "init", () => {
3513
3513
  var o;
3514
3514
  this.gamingInterstitialSlot = googletag.defineOutOfPageSlot(this.adUnit, googletag.enums.OutOfPageFormat.GAME_MANUAL_INTERSTITIAL), this.gamingInterstitialSlot && (this.gamingInterstitialSlot.addService(googletag.pubads()), googletag.pubads().addEventListener("gameManualInterstitialSlotReady", this.handleSlotReady), googletag.pubads().addEventListener("gameManualInterstitialSlotClosed", this.handleSlotClosed), this.keyValue && (Object.keys(this.keyValue).forEach((s) => {
3515
3515
  var a;
3516
3516
  (a = this.gamingInterstitialSlot) == null || a.setTargeting(s, this.keyValue[s]);
3517
3517
  }), Object.keys(this.keyValue).includes("project") || (o = this.gamingInterstitialSlot) == null || o.setTargeting("project", this.project)), googletag.display(this.gamingInterstitialSlot));
3518
- }), J(this, "destroy", function(o) {
3518
+ }), H(this, "destroy", function(o) {
3519
3519
  var a, d;
3520
3520
  (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0) && ((d = (a = r.adsContext) == null ? void 0 : a.onEnd) == null || d.call(a, o), o !== "ignored" && (r.adsContext = null)), googletag.pubads().removeEventListener("gameManualInterstitialSlotReady", r.handleSlotReady), googletag.pubads().removeEventListener("gameManualInterstitialSlotClosed", r.handleSlotClosed), r.gamingInterstitialSlot && (googletag.destroySlots([r.gamingInterstitialSlot]), r.gamingInterstitialSlot = null, r.readyEvent = null);
3521
- }), J(this, "reinit", function(o) {
3521
+ }), H(this, "reinit", function(o) {
3522
3522
  let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
3523
3523
  r.destroy(o, s), r.init();
3524
- }), J(this, "handleSlotReady", (o) => {
3524
+ }), H(this, "handleSlotReady", (o) => {
3525
3525
  this.gamingInterstitialSlot === o.slot && (this.readyEvent = o);
3526
- }), J(this, "handleSlotClosed", (o) => {
3526
+ }), H(this, "handleSlotClosed", (o) => {
3527
3527
  var s, a;
3528
3528
  this.adsContext && this.gamingInterstitialSlot === o.slot && ((a = (s = this.adsContext).afterAd) == null || a.call(s), this.withCommand(() => {
3529
3529
  this.reinit("viewed");
3530
3530
  }));
3531
- }), J(this, "requestAds", (o) => {
3531
+ }), H(this, "requestAds", (o) => {
3532
3532
  this.withCommand(() => {
3533
3533
  var s, a, d;
3534
3534
  if (this.adsContext) {
@@ -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
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;
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,7 +3569,7 @@ 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
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", () => {
3575
3575
  const n = "jolibox-google-gpt";
@@ -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 = qo(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 qo(t) {
3657
+ var e = Go(t, "string");
3658
3658
  return typeof e == "symbol" ? e : e + "";
3659
3659
  }
3660
- function Uo(t, e) {
3660
+ function Go(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 Jo(t, e, i) {
3838
+ return (e = Ho(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 Ho(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, Jo(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 nt() && 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,7 +3988,7 @@ 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
  }
@@ -4020,11 +4020,11 @@ class Ho {
4020
4020
  }
4021
4021
  let n = !1, r = !1;
4022
4022
  this.adsContext.beforeReward(async () => {
4023
- var d, l;
4024
- (l = (d = this.adsContext) == null ? void 0 : d.beforeAd) == null || l.call(d);
4025
- 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) => {
4026
4026
  var c, h, f;
4027
- 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));
4028
4028
  }, s = {
4029
4029
  onAdShow: () => {
4030
4030
  },
@@ -4032,8 +4032,8 @@ class Ho {
4032
4032
  o("error");
4033
4033
  },
4034
4034
  onAdRewarded: () => {
4035
- var u;
4036
- n = !0, (u = this.adsContext) == null || u.adViewed();
4035
+ var l;
4036
+ n = !0, (l = this.adsContext) == null || l.adViewed();
4037
4037
  },
4038
4038
  onAdDismissed: () => {
4039
4039
  o(n ? "viewed" : "dismissed");
@@ -4047,17 +4047,17 @@ class Ho {
4047
4047
  callbacks: s
4048
4048
  })).code !== "SUCCESS" && this.reinit("noAdPreloaded");
4049
4049
  });
4050
- }), this.providers = i, this.helper = new Qi(e), this.init();
4050
+ }), this.providers = i, this.helper = new rn(e), this.init();
4051
4051
  }
4052
4052
  }
4053
4053
  function ce(t, e, i) {
4054
- 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;
4055
4055
  }
4056
- function Jo(t) {
4057
- var e = Xo(t, "string");
4056
+ function ts(t) {
4057
+ var e = is(t, "string");
4058
4058
  return typeof e == "symbol" ? e : e + "";
4059
4059
  }
4060
- function Xo(t, e) {
4060
+ function is(t, e) {
4061
4061
  if (typeof t != "object" || !t)
4062
4062
  return t;
4063
4063
  var i = t[Symbol.toPrimitive];
@@ -4069,7 +4069,7 @@ function Xo(t, e) {
4069
4069
  }
4070
4070
  return (e === "string" ? String : Number)(t);
4071
4071
  }
4072
- class Yo {
4072
+ class ns {
4073
4073
  get isAdsReady() {
4074
4074
  return this._isAdsReady;
4075
4075
  }
@@ -4098,16 +4098,16 @@ class Yo {
4098
4098
  this.destroy("notReady");
4099
4099
  }
4100
4100
  }), ce(this, "showAd", async () => {
4101
- var d, l;
4101
+ var d, u;
4102
4102
  if (!this.adsContext) {
4103
4103
  this.destroy("error");
4104
4104
  return;
4105
4105
  }
4106
4106
  let r = !1;
4107
- (l = (d = this.adsContext).beforeAd) == null || l.call(d);
4108
- const o = (u) => {
4107
+ (u = (d = this.adsContext).beforeAd) == null || u.call(d);
4108
+ const o = (l) => {
4109
4109
  var c, h;
4110
- 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));
4111
4111
  }, s = {
4112
4112
  onAdShow: () => {
4113
4113
  },
@@ -4125,17 +4125,17 @@ class Yo {
4125
4125
  providers: this.providers,
4126
4126
  callbacks: s
4127
4127
  })).code !== "SUCCESS" && this.reinit("noAdPreloaded");
4128
- }), this.providers = i, this.helper = new Qi(e), this.init();
4128
+ }), this.providers = i, this.helper = new rn(e), this.init();
4129
4129
  }
4130
4130
  }
4131
- function Be(t, e, i) {
4132
- 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;
4133
4133
  }
4134
- function Qo(t) {
4135
- var e = Zo(t, "string");
4134
+ function rs(t) {
4135
+ var e = os(t, "string");
4136
4136
  return typeof e == "symbol" ? e : e + "";
4137
4137
  }
4138
- function Zo(t, e) {
4138
+ function os(t, e) {
4139
4139
  if (typeof t != "object" || !t)
4140
4140
  return t;
4141
4141
  var i = t[Symbol.toPrimitive];
@@ -4147,11 +4147,11 @@ function Zo(t, e) {
4147
4147
  }
4148
4148
  return (e === "string" ? String : Number)(t);
4149
4149
  }
4150
- class es {
4150
+ class ss {
4151
4151
  constructor(e, i) {
4152
- 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;
4153
4153
  const n = this.getConfigsByTypes(["REWARD", "REWARD_INTERSTITIAL", "NATIVE"], i.providers), r = this.getConfigsByTypes(["INTERSTITIAL"], i.providers);
4154
- 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));
4155
4155
  }
4156
4156
  getConfigsByTypes(e, i, n) {
4157
4157
  const r = [];
@@ -4229,8 +4229,8 @@ class es {
4229
4229
  beforeAd: s.beforeAd,
4230
4230
  afterAd: s.afterAd,
4231
4231
  onEnd: (d) => {
4232
- var l;
4233
- (l = e.adBreakDone) == null || l.call(e, {
4232
+ var u;
4233
+ (u = e.adBreakDone) == null || u.call(e, {
4234
4234
  breakName: s.name,
4235
4235
  breakType: e.type,
4236
4236
  breakFormat: "interstitial",
@@ -4243,14 +4243,65 @@ class es {
4243
4243
  }
4244
4244
  }
4245
4245
  }
4246
- function ee(t, e, i) {
4247
- return (e = ts(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4246
+ const mt = "jolibox-nb-proxy";
4247
+ let as = 0;
4248
+ function bi(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
+ });
4248
4269
  }
4249
- function ts(t) {
4250
- var e = is(t, "string");
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), bi([...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), bi(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");
4251
4302
  return typeof e == "symbol" ? e : e + "";
4252
4303
  }
4253
- function is(t, e) {
4304
+ function us(t, e) {
4254
4305
  if (typeof t != "object" || !t)
4255
4306
  return t;
4256
4307
  var i = t[Symbol.toPrimitive];
@@ -4262,10 +4313,175 @@ function is(t, e) {
4262
4313
  }
4263
4314
  return (e === "string" ? String : Number)(t);
4264
4315
  }
4265
- class Ms {
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
+ const n = i.isRewardReady();
4349
+ if (console.log("[JoliboxSDK] NewsBreak sdk.isRewardReady", n), this._isReady || n)
4350
+ this._isReady = !0, this.showAd();
4351
+ else {
4352
+ const r = window.setTimeout(() => {
4353
+ this._isReady || this.reinit("timeout");
4354
+ }, 5e3);
4355
+ i.createRewardAd({
4356
+ platform: "jolibox"
4357
+ }).then((o) => {
4358
+ clearTimeout(r), o.success && o.ready ? (this._isReady = !0, this.showAd()) : this.reinit("noAdPreloaded");
4359
+ }).catch(() => {
4360
+ clearTimeout(r), this.reinit("noAdPreloaded");
4361
+ });
4362
+ }
4363
+ }), ve(this, "showAd", () => {
4364
+ if (!this.adsContext) {
4365
+ this.destroy("error");
4366
+ return;
4367
+ }
4368
+ this.adsContext.beforeReward(async () => {
4369
+ var i, n, r, o, s, a, d, u, l, c, h, f, v, y;
4370
+ (n = (i = this.adsContext) == null ? void 0 : i.beforeAd) == null || n.call(i);
4371
+ const e = nt();
4372
+ if (!e) {
4373
+ (o = (r = this.adsContext) == null ? void 0 : r.afterAd) == null || o.call(r), this.reinit("error");
4374
+ return;
4375
+ }
4376
+ try {
4377
+ const w = await e.showRewardAd();
4378
+ if (console.log("[JoliboxSDK] NewsBreak showRewardAd result:", w), !w.success) {
4379
+ (a = (s = this.adsContext) == null ? void 0 : s.afterAd) == null || a.call(s), this.reinit("error");
4380
+ return;
4381
+ }
4382
+ 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"));
4383
+ } catch (w) {
4384
+ (y = (v = this.adsContext) == null ? void 0 : v.afterAd) == null || y.call(v), this.reinit("error");
4385
+ }
4386
+ });
4387
+ }), this.init();
4388
+ }
4389
+ }
4390
+ function pi(t, e, i) {
4391
+ return (e = hs(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4392
+ }
4393
+ function hs(t) {
4394
+ var e = fs(t, "string");
4395
+ return typeof e == "symbol" ? e : e + "";
4396
+ }
4397
+ function fs(t, e) {
4398
+ if (typeof t != "object" || !t)
4399
+ return t;
4400
+ var i = t[Symbol.toPrimitive];
4401
+ if (i !== void 0) {
4402
+ var n = i.call(t, e);
4403
+ if (typeof n != "object")
4404
+ return n;
4405
+ throw new TypeError("@@toPrimitive must return a primitive value.");
4406
+ }
4407
+ return (e === "string" ? String : Number)(t);
4408
+ }
4409
+ class vs {
4410
+ constructor() {
4411
+ pi(this, "name", "NEWSBREAK"), pi(this, "rewardAdManager", void 0);
4412
+ }
4413
+ async init() {
4414
+ const e = nt();
4415
+ if (!e) {
4416
+ console.warn("[JoliboxSDK] NewsBreak GameSDK is not available on window");
4417
+ return;
4418
+ }
4419
+ e.onEnter(), this.rewardAdManager = new cs();
4420
+ }
4421
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
4422
+ adConfig(e, i) {
4423
+ }
4424
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
4425
+ adBreak(e, i) {
4426
+ var n, r;
4427
+ if (e.type !== "reward") {
4428
+ (n = e.adBreakDone) == null || n.call(e, {
4429
+ breakType: e.type,
4430
+ breakFormat: "reward",
4431
+ breakStatus: "noAdPreloaded"
4432
+ });
4433
+ return;
4434
+ }
4435
+ if (!this.rewardAdManager) {
4436
+ (r = e.adBreakDone) == null || r.call(e, {
4437
+ breakName: e.name,
4438
+ breakType: e.type,
4439
+ breakFormat: "reward",
4440
+ breakStatus: "noAdPreloaded"
4441
+ });
4442
+ return;
4443
+ }
4444
+ this.rewardAdManager.requestAds({
4445
+ beforeAd: e.beforeAd,
4446
+ afterAd: e.afterAd,
4447
+ adDismissed: e.adDismissed,
4448
+ adViewed: e.adViewed,
4449
+ beforeReward: e.beforeReward,
4450
+ adBreakDone: (o) => {
4451
+ var s;
4452
+ (s = e.adBreakDone) == null || s.call(e, {
4453
+ breakName: e.name,
4454
+ breakType: e.type,
4455
+ breakFormat: "reward",
4456
+ breakStatus: o
4457
+ });
4458
+ }
4459
+ });
4460
+ }
4461
+ }
4462
+ function te(t, e, i) {
4463
+ return (e = ys(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4464
+ }
4465
+ function ys(t) {
4466
+ var e = gs(t, "string");
4467
+ return typeof e == "symbol" ? e : e + "";
4468
+ }
4469
+ function gs(t, e) {
4470
+ if (typeof t != "object" || !t)
4471
+ return t;
4472
+ var i = t[Symbol.toPrimitive];
4473
+ if (i !== void 0) {
4474
+ var n = i.call(t, e);
4475
+ if (typeof n != "object")
4476
+ return n;
4477
+ throw new TypeError("@@toPrimitive must return a primitive value.");
4478
+ }
4479
+ return (e === "string" ? String : Number)(t);
4480
+ }
4481
+ class Qs {
4266
4482
  constructor(e) {
4267
- 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)
4268
- 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
+ if (te(this, "context", void 0), te(this, "contextInfo", void 0), te(this, "providers", {}), te(this, "channelPolicy", void 0), te(this, "adsActionDetection", void 0), te(this, "requestContext", void 0), te(this, "adsRequest", void 0), te(this, "initialized", !1), te(this, "adsIsShowing", !1), te(this, "lastAdBreak", void 0), te(this, "initializedTimeStamp", Date.now()), e)
4484
+ 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);
4269
4485
  else
4270
4486
  throw new Error("JoliboxAdsForGame requires a configuration object");
4271
4487
  }
@@ -4290,36 +4506,42 @@ class Ms {
4290
4506
  for (const a of s)
4291
4507
  switch (a.provider) {
4292
4508
  case "GOOGLE_GPT": {
4293
- const d = new Bo(this.context, a.params);
4509
+ const d = new Vo(this.context, a.params);
4294
4510
  await d.init(), this.providers[a.provider] = d;
4295
4511
  break;
4296
4512
  }
4297
4513
  case "ADSENSE":
4298
4514
  case "ADSENSE_ADMOB": {
4299
- const d = new er(this.context, a.params);
4515
+ const d = new sr(this.context, a.params);
4300
4516
  await d.init(), this.providers[a.provider] = d;
4301
4517
  break;
4302
4518
  }
4303
4519
  case "OKSPIN": {
4304
- const d = new uo(this.context, a.params);
4520
+ const d = new go(this.context, a.params);
4305
4521
  await d.init(), this.providers.OKSPIN = d;
4306
4522
  break;
4307
4523
  }
4308
4524
  case "APPSROCKETS": {
4309
- const d = new Ro(this.context, a.params);
4525
+ const d = new No(this.context, a.params);
4310
4526
  await d.init(), this.providers.APPSROCKETS = d;
4311
4527
  break;
4312
4528
  }
4313
4529
  case "ADSENSE_BANNER_AS_AFG": {
4314
- const d = new Eo(this.context, a.params);
4530
+ const d = new Co(this.context, a.params);
4315
4531
  await d.init(), this.providers.ADSENSE_BANNER_AS_AFG = d;
4316
4532
  break;
4317
4533
  }
4318
4534
  case "INTERNAL_NATIVE": {
4319
- const d = new es(this.context, a.params);
4535
+ const d = new ss(this.context, a.params);
4320
4536
  await d.init(), this.providers.INTERNAL_NATIVE = d;
4321
4537
  break;
4322
4538
  }
4539
+ case "NEWSBREAK": {
4540
+ console.log("[JoliboxSDK] NewsBreak Provider", a);
4541
+ const d = new vs();
4542
+ await d.init(), this.providers.NEWSBREAK = d;
4543
+ break;
4544
+ }
4323
4545
  }
4324
4546
  }
4325
4547
  this.adsRequest.cacheInterstitialInfo("start"), this.adsRequest.cacheRewardInfo(), this.initialized = !0;
@@ -4328,7 +4550,7 @@ class Ms {
4328
4550
  this.providers.ADSENSE ? this.providers.ADSENSE.adConfig(e) : window.adsbygoogle.push(e);
4329
4551
  }
4330
4552
  async adBreak(e) {
4331
- var r, o, s, a, d, l, u, c, h, f, g, v, A, y, w, S;
4553
+ var r, o, s, a, d, u, l, c, h, f, v, y, w, g, A, S;
4332
4554
  const i = Date.now();
4333
4555
  if (i - this.initializedTimeStamp < 3e3) {
4334
4556
  (r = e.adBreakDone) == null || r.call(e, {
@@ -4376,11 +4598,11 @@ class Ms {
4376
4598
  return;
4377
4599
  }
4378
4600
  try {
4379
- const b = await this.adsRequest.getAFGAdsInfo(e.type), m = b == null ? void 0 : b.data, E = b == null ? void 0 : b.code;
4601
+ const p = await this.adsRequest.getAFGAdsInfo(e.type), _ = p == null ? void 0 : p.data, E = p == null ? void 0 : p.code;
4380
4602
  if (E === "BYPASS_ADS") {
4381
4603
  switch (e.type) {
4382
4604
  case "preroll": {
4383
- (l = e.adBreakDone) == null || l.call(e, {
4605
+ (u = e.adBreakDone) == null || u.call(e, {
4384
4606
  breakType: e.type,
4385
4607
  breakFormat: "interstitial",
4386
4608
  breakStatus: "viewed"
@@ -4389,8 +4611,8 @@ class Ms {
4389
4611
  }
4390
4612
  case "reward": {
4391
4613
  e.beforeReward(() => {
4392
- var p, se, be, L;
4393
- (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, {
4614
+ var b, ee, _e, L;
4615
+ (b = e.beforeAd) == null || b.call(e), (ee = e.adViewed) == null || ee.call(e), (_e = e.afterAd) == null || _e.call(e), (L = e.adBreakDone) == null || L.call(e, {
4394
4616
  breakType: e.type,
4395
4617
  breakName: e.name,
4396
4618
  breakFormat: "reward",
@@ -4400,7 +4622,7 @@ class Ms {
4400
4622
  break;
4401
4623
  }
4402
4624
  default: {
4403
- (u = e.beforeAd) == null || u.call(e), (c = e.afterAd) == null || c.call(e), (h = e.adBreakDone) == null || h.call(e, {
4625
+ (l = e.beforeAd) == null || l.call(e), (c = e.afterAd) == null || c.call(e), (h = e.adBreakDone) == null || h.call(e, {
4404
4626
  breakType: e.type,
4405
4627
  breakName: e.name,
4406
4628
  breakFormat: "interstitial",
@@ -4411,7 +4633,7 @@ class Ms {
4411
4633
  }
4412
4634
  return;
4413
4635
  }
4414
- if (!m || E !== "SUCCESS") {
4636
+ if (!_ || E !== "SUCCESS") {
4415
4637
  (f = e.adBreakDone) == null || f.call(e, {
4416
4638
  breakType: e.type,
4417
4639
  breakName: e.type === "preroll" ? void 0 : e.name,
@@ -4420,8 +4642,8 @@ class Ms {
4420
4642
  });
4421
4643
  return;
4422
4644
  } else {
4423
- if (m.length === 0) {
4424
- (g = e.adBreakDone) == null || g.call(e, {
4645
+ if (_.length === 0) {
4646
+ (v = e.adBreakDone) == null || v.call(e, {
4425
4647
  breakType: e.type,
4426
4648
  breakName: e.type === "preroll" ? void 0 : e.name,
4427
4649
  breakFormat: e.type === "reward" ? "reward" : "interstitial",
@@ -4429,40 +4651,40 @@ class Ms {
4429
4651
  });
4430
4652
  return;
4431
4653
  }
4432
- let p = !0, se = null;
4433
- const be = new Kn(this.context);
4654
+ let b = !0, ee = null;
4655
+ const _e = new Yn(this.context);
4434
4656
  this.adsActionDetection.adBreakIsShowing = !0;
4435
- 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 = {
4436
- seq: (A = (v = L[0]) == null ? void 0 : v.seq) != null ? A : 0,
4657
+ const L = _.filter((I) => I.isNative).sort((I, Y) => I.seq - Y.seq), C = _.filter((I) => !I.isNative).sort((I, Y) => I.seq - Y.seq), W = {
4658
+ seq: (w = (y = L[0]) == null ? void 0 : y.seq) != null ? w : 0,
4437
4659
  provider: "INTERNAL_NATIVE",
4438
4660
  params: L
4439
4661
  };
4440
- let q;
4441
- 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
+ let G;
4663
+ for (L.length > 0 ? G = [W].concat(C) : G = C, G = G.sort((I, Y) => I.seq - Y.seq).map((I, Y) => zt(vt({}, I), {
4442
4664
  seq: Y
4443
4665
  // re-assign seq
4444
- })); q.length > 0; ) {
4445
- const I = q.shift(), Y = this.providers[I.provider];
4666
+ })); G.length > 0; ) {
4667
+ const I = G.shift(), Y = this.providers[I.provider];
4446
4668
  if (Y) {
4447
- const [Zi, en] = await be.callAdBreakAndContinue(Y, e, I, (Ut) => {
4448
- var $t;
4449
- this.adsIsShowing = Ut, ($t = this.context.eventEmitter) == null || $t.emit("isAdShowing", Ut);
4669
+ const [sn, an] = await _e.callAdBreakAndContinue(Y, e, I, (jt) => {
4670
+ var Vt;
4671
+ this.adsIsShowing = jt, (Vt = this.context.eventEmitter) == null || Vt.emit("isAdShowing", jt);
4450
4672
  });
4451
- p = Zi, se = en;
4673
+ b = sn, ee = an;
4452
4674
  } else
4453
- p = !0, se = {
4675
+ b = !0, ee = {
4454
4676
  breakType: e.type,
4455
4677
  breakName: e.type === "preroll" ? void 0 : e.name,
4456
4678
  breakFormat: e.type === "reward" ? "reward" : "interstitial",
4457
4679
  breakStatus: "notReady"
4458
4680
  };
4459
- if (!p)
4681
+ if (!b)
4460
4682
  break;
4461
4683
  }
4462
- p && se && ((y = e.adBreakDone) == null || y.call(e, se));
4684
+ b && ee && ((g = e.adBreakDone) == null || g.call(e, ee));
4463
4685
  }
4464
- } catch (b) {
4465
- (w = e.adBreakDone) == null || w.call(e, {
4686
+ } catch (p) {
4687
+ (A = e.adBreakDone) == null || A.call(e, {
4466
4688
  breakType: e.type,
4467
4689
  breakFormat: e.type === "reward" ? "reward" : "interstitial",
4468
4690
  breakStatus: "noAdPreloaded"
@@ -4475,14 +4697,14 @@ class Ms {
4475
4697
  console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.");
4476
4698
  }
4477
4699
  }
4478
- function Je(t, e, i) {
4479
- return (e = ns(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4700
+ function Xe(t, e, i) {
4701
+ return (e = ws(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4480
4702
  }
4481
- function ns(t) {
4482
- var e = rs(t, "string");
4703
+ function ws(t) {
4704
+ var e = As(t, "string");
4483
4705
  return typeof e == "symbol" ? e : e + "";
4484
4706
  }
4485
- function rs(t, e) {
4707
+ function As(t, e) {
4486
4708
  if (typeof t != "object" || !t)
4487
4709
  return t;
4488
4710
  var i = t[Symbol.toPrimitive];
@@ -4494,9 +4716,9 @@ function rs(t, e) {
4494
4716
  }
4495
4717
  return (e === "string" ? String : Number)(t);
4496
4718
  }
4497
- class os {
4719
+ class bs {
4498
4720
  constructor(e) {
4499
- Je(this, "context", void 0), Je(this, "currentProvider", void 0), Je(this, "continueCallback", void 0), Je(this, "contextInfo", void 0), this.context = e, this.contextInfo = e.getContextInfo();
4721
+ 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();
4500
4722
  }
4501
4723
  get paramsToTrack() {
4502
4724
  var e, i;
@@ -4517,7 +4739,7 @@ class os {
4517
4739
  wrapAdPlaying(e) {
4518
4740
  return (i) => {
4519
4741
  var n, r;
4520
- this.context.track("CallAFVPlaying", this.paramsToTrack), nt() && this.context.track("mmp_ad_impression", {
4742
+ this.context.track("CallAFVPlaying", this.paramsToTrack), ot() && this.context.track("mmp_ad_impression", {
4521
4743
  ad_network: (r = (n = this.currentProvider) == null ? void 0 : n.name) != null ? r : "",
4522
4744
  ad_format: "AFV",
4523
4745
  module: "drama",
@@ -4545,14 +4767,14 @@ class os {
4545
4767
  });
4546
4768
  }
4547
4769
  }
4548
- function pt(t, e, i) {
4549
- return (e = ss(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4770
+ function St(t, e, i) {
4771
+ return (e = ps(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4550
4772
  }
4551
- function ss(t) {
4552
- var e = as(t, "string");
4773
+ function ps(t) {
4774
+ var e = _s(t, "string");
4553
4775
  return typeof e == "symbol" ? e : e + "";
4554
4776
  }
4555
- function as(t, e) {
4777
+ function _s(t, e) {
4556
4778
  if (typeof t != "object" || !t)
4557
4779
  return t;
4558
4780
  var i = t[Symbol.toPrimitive];
@@ -4564,27 +4786,27 @@ function as(t, e) {
4564
4786
  }
4565
4787
  return (e === "string" ? String : Number)(t);
4566
4788
  }
4567
- class $ extends Error {
4789
+ class F extends Error {
4568
4790
  constructor(e, i) {
4569
- 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;
4791
+ 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;
4570
4792
  }
4571
4793
  static from(e, i) {
4572
4794
  switch (i) {
4573
4795
  case "GOOGLE_IMA_ERROR":
4574
- return new $(e, i);
4796
+ return new F(e, i);
4575
4797
  case "JOLIBOX_IMA_ERROR":
4576
- return new $(e, i);
4798
+ return new F(e, i);
4577
4799
  }
4578
4800
  }
4579
4801
  }
4580
4802
  function O(t, e, i) {
4581
- return (e = ds(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4803
+ return (e = ms(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4582
4804
  }
4583
- function ds(t) {
4584
- var e = ls(t, "string");
4805
+ function ms(t) {
4806
+ var e = Ss(t, "string");
4585
4807
  return typeof e == "symbol" ? e : e + "";
4586
4808
  }
4587
- function ls(t, e) {
4809
+ function Ss(t, e) {
4588
4810
  if (typeof t != "object" || !t)
4589
4811
  return t;
4590
4812
  var i = t[Symbol.toPrimitive];
@@ -4596,16 +4818,16 @@ function ls(t, e) {
4596
4818
  }
4597
4819
  return (e === "string" ? String : Number)(t);
4598
4820
  }
4599
- class us {
4821
+ class Es {
4600
4822
  constructor(e, i, n) {
4601
4823
  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", () => {
4602
- var r, o, s, a, d, l, u, c, h, f, g;
4603
- 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);
4824
+ var r, o, s, a, d, u, l, c, h, f, v;
4825
+ 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), (v = this.adsManager) == null || v.removeEventListener(window.google.ima.AdEvent.Type.COMPLETE, this.onAdEvent);
4604
4826
  }), O(this, "requestAds", async (r, o) => {
4605
- var u;
4827
+ var l;
4606
4828
  this.createAdDisplayContainer(), this.notifyRequestAd = r.onAdRequested, this.notifyLoaded = r.onAdLoaded, this.notifyPlayingAd = r.onAdPlaying, this.notifyCompleted = r.onAdCompleted, this.notifyError = (c) => {
4607
4829
  var h;
4608
- return (h = r.onAdError) == null ? void 0 : h.call(r, $.from(c, "GOOGLE_IMA_ERROR"));
4830
+ return (h = r.onAdError) == null ? void 0 : h.call(r, F.from(c, "GOOGLE_IMA_ERROR"));
4609
4831
  }, 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);
4610
4832
  const s = () => {
4611
4833
  var c;
@@ -4619,8 +4841,8 @@ class us {
4619
4841
  const h = window.encodeURIComponent(o.params[c]);
4620
4842
  d += `&${c}=${h}`;
4621
4843
  });
4622
- const l = `${this.adTagUrl}${d}`;
4623
- 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);
4844
+ const u = `${this.adTagUrl}${d}`;
4845
+ 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);
4624
4846
  }), O(this, "createAdDisplayContainer", () => {
4625
4847
  this.adDisplayContainer = new window.google.ima.AdDisplayContainer(this.adContainer, this.videoContent);
4626
4848
  }), O(this, "playAds", () => {
@@ -4635,7 +4857,7 @@ class us {
4635
4857
  const o = new window.google.ima.AdsRenderingSettings();
4636
4858
  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();
4637
4859
  }), O(this, "onAdEvent", (r) => {
4638
- var s, a, d, l;
4860
+ var s, a, d, u;
4639
4861
  const o = r.getAd();
4640
4862
  switch (r.type) {
4641
4863
  case window.google.ima.AdEvent.Type.LOADED:
@@ -4649,7 +4871,7 @@ class us {
4649
4871
  o != null && o.isLinear() && clearInterval(this.intervalTimer), this.completed || (this.completed = !0, (d = this.notifyCompleted) == null || d.call(this, r));
4650
4872
  break;
4651
4873
  case window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED:
4652
- o != null && o.isLinear() && clearInterval(this.intervalTimer), this.completed || (this.completed = !0, (l = this.notifyCompleted) == null || l.call(this, r));
4874
+ o != null && o.isLinear() && clearInterval(this.intervalTimer), this.completed || (this.completed = !0, (u = this.notifyCompleted) == null || u.call(this, r));
4653
4875
  break;
4654
4876
  }
4655
4877
  }), O(this, "onAdError", (r) => {
@@ -4662,9 +4884,9 @@ class us {
4662
4884
  }), this.adTagUrl = e, this.videoContent = i, this.adContainer = n;
4663
4885
  }
4664
4886
  }
4665
- var it = /* @__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))(it || {});
4666
- const cs = () => {
4667
- const t = k(!1), e = k(!1), i = k(null), n = Kt(), r = Kt();
4887
+ 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 || {});
4888
+ const ks = () => {
4889
+ const t = k(!1), e = k(!1), i = k(null), n = Jt(), r = Jt();
4668
4890
  return {
4669
4891
  visible: t,
4670
4892
  canRetry: e,
@@ -4672,7 +4894,7 @@ const cs = () => {
4672
4894
  videoRef: n,
4673
4895
  adContainerRef: r
4674
4896
  };
4675
- }, hs = G`
4897
+ }, Is = q`
4676
4898
  ${M}
4677
4899
  position: fixed;
4678
4900
  left: 0;
@@ -4717,7 +4939,7 @@ const cs = () => {
4717
4939
  cursor: pointer;
4718
4940
  }
4719
4941
  }
4720
- `, fs = (t) => {
4942
+ `, xs = (t) => {
4721
4943
  let {
4722
4944
  onReady: e,
4723
4945
  state: i
@@ -4733,16 +4955,16 @@ const cs = () => {
4733
4955
  r.value = null, o.value = !1;
4734
4956
  }));
4735
4957
  };
4736
- return Re(() => {
4958
+ return Te(() => {
4737
4959
  e();
4738
- }, [e]), _("div", {
4739
- className: hs,
4960
+ }, [e]), m("div", {
4961
+ className: Is,
4740
4962
  style: {
4741
4963
  display: n.value ? "block" : "none"
4742
4964
  },
4743
- children: _("div", {
4965
+ children: m("div", {
4744
4966
  className: "ads-wrapper",
4745
- children: [_("video", {
4967
+ children: [m("video", {
4746
4968
  ref: s,
4747
4969
  width: "100%",
4748
4970
  height: "100%",
@@ -4755,25 +4977,25 @@ const cs = () => {
4755
4977
  animation: "none !important",
4756
4978
  objectFit: "contain"
4757
4979
  }
4758
- }), _("div", {
4980
+ }), m("div", {
4759
4981
  id: "ad-container",
4760
4982
  ref: a
4761
- }), o.value ? _("div", {
4983
+ }), o.value ? m("div", {
4762
4984
  className: "retry-button",
4763
4985
  onClick: d,
4764
- children: _("svg", {
4986
+ children: m("svg", {
4765
4987
  width: "64",
4766
4988
  height: "64",
4767
4989
  viewBox: "0 0 64 64",
4768
4990
  fill: "none",
4769
4991
  xmlns: "http://www.w3.org/2000/svg",
4770
- children: [_("circle", {
4992
+ children: [m("circle", {
4771
4993
  cx: "32",
4772
4994
  cy: "32",
4773
4995
  r: "32",
4774
4996
  fill: "#141416",
4775
4997
  fillOpacity: "0.3"
4776
- }), _("path", {
4998
+ }), m("path", {
4777
4999
  d: "M25.3334 23.3668V40.6334C25.3334 41.9501 26.7834 42.7501 27.9 42.0334L41.4667 33.4001C42.5 32.7501 42.5 31.2501 41.4667 30.5834L27.9 21.9668C26.7834 21.2501 25.3334 22.0501 25.3334 23.3668Z",
4778
5000
  fill: "white"
4779
5001
  })]
@@ -4783,13 +5005,13 @@ const cs = () => {
4783
5005
  });
4784
5006
  };
4785
5007
  function he(t, e, i) {
4786
- return (e = vs(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
5008
+ return (e = Rs(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4787
5009
  }
4788
- function vs(t) {
4789
- var e = ys(t, "string");
5010
+ function Rs(t) {
5011
+ var e = Ts(t, "string");
4790
5012
  return typeof e == "symbol" ? e : e + "";
4791
5013
  }
4792
- function ys(t, e) {
5014
+ function Ts(t, e) {
4793
5015
  if (typeof t != "object" || !t)
4794
5016
  return t;
4795
5017
  var i = t[Symbol.toPrimitive];
@@ -4801,9 +5023,9 @@ function ys(t, e) {
4801
5023
  }
4802
5024
  return (e === "string" ? String : Number)(t);
4803
5025
  }
4804
- class gs {
5026
+ class Cs {
4805
5027
  constructor(e) {
4806
- 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) => {
5028
+ 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) => {
4807
5029
  if (this.initialized)
4808
5030
  return;
4809
5031
  const n = "//imasdk.googleapis.com/js/sdkloader/ima3.js";
@@ -4819,32 +5041,32 @@ class gs {
4819
5041
  }, s.onerror = o, document.head.appendChild(s);
4820
5042
  }
4821
5043
  }), this.adsOverlay = document.createElement("div"), this.adsOverlay.id = "jolibox-ima-overlay", document.documentElement.appendChild(this.adsOverlay), await new Promise((r, o) => {
4822
- fe(_(fs, {
5044
+ fe(m(xs, {
4823
5045
  state: this.state,
4824
5046
  onReady: () => {
4825
- this.ima = new us(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
5047
+ this.ima = new Es(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
4826
5048
  }
4827
5049
  }), this.adsOverlay);
4828
5050
  }), this.initialized = !0;
4829
5051
  }), he(this, "destroy", () => {
4830
5052
  this.adsOverlay && (fe(null, this.adsOverlay), this.adsOverlay.remove()), this.ima && this.ima.destroy(), this.initialized = !1;
4831
5053
  }), he(this, "requestAd", (i, n) => {
4832
- var l;
5054
+ var u;
4833
5055
  if (!this.adsOverlay || !this.ima || !this.initialized) {
4834
- const u = $.from(new Error("IMA not initialized"), "JOLIBOX_IMA_ERROR");
4835
- (l = i.onAdError) == null || l.call(i, u);
5056
+ const l = F.from(new Error("IMA not initialized"), "JOLIBOX_IMA_ERROR");
5057
+ (u = i.onAdError) == null || u.call(i, l);
4836
5058
  return;
4837
5059
  }
4838
- const r = (u) => {
5060
+ const r = (l) => {
4839
5061
  var c;
4840
- this.ima.destroy(), this.state.visible.value = !1, (c = i.onAdCompleted) == null || c.call(i, u);
4841
- }, o = (u) => {
5062
+ this.ima.destroy(), this.state.visible.value = !1, (c = i.onAdCompleted) == null || c.call(i, l);
5063
+ }, o = (l) => {
4842
5064
  var h;
4843
5065
  let c = !1;
4844
- switch (u.raw.getErrorCode()) {
4845
- case it.AUTOPLAY_DISALLOWED:
4846
- case it.VIDEO_PLAY_ERROR:
4847
- case it.ADS_REQUEST_NETWORK_ERROR: {
5066
+ switch (l.raw.getErrorCode()) {
5067
+ case rt.AUTOPLAY_DISALLOWED:
5068
+ case rt.VIDEO_PLAY_ERROR:
5069
+ case rt.ADS_REQUEST_NETWORK_ERROR: {
4848
5070
  c = !0;
4849
5071
  break;
4850
5072
  }
@@ -4856,7 +5078,7 @@ class gs {
4856
5078
  if (!c)
4857
5079
  this.ima.destroy(), P(() => {
4858
5080
  this.state.canRetry.value = !1, this.state.retry.value = null, this.state.visible.value = !1;
4859
- }), (h = i.onAdError) == null || h.call(i, u);
5081
+ }), (h = i.onAdError) == null || h.call(i, l);
4860
5082
  else {
4861
5083
  const f = () => {
4862
5084
  this.ima.destroy(), this.requestAd(i, n);
@@ -4865,25 +5087,25 @@ class gs {
4865
5087
  this.state.canRetry.value = !0, this.state.retry.value = f;
4866
5088
  });
4867
5089
  }
4868
- }, s = (u) => {
5090
+ }, s = (l) => {
4869
5091
  var c;
4870
- this.state.visible.value = !0, (c = i.onAdLoaded) == null || c.call(i, u);
4871
- }, a = (u) => {
5092
+ this.state.visible.value = !0, (c = i.onAdLoaded) == null || c.call(i, l);
5093
+ }, a = (l) => {
4872
5094
  var c;
4873
- (c = i.onAdPlaying) == null || c.call(i, u);
5095
+ (c = i.onAdPlaying) == null || c.call(i, l);
4874
5096
  }, d = Object.assign({}, i);
4875
5097
  d.onAdCompleted = r, d.onAdError = o, d.onAdLoaded = s, d.onAdPlaying = a, this.ima.requestAds(d, n);
4876
5098
  }), this.context = e;
4877
5099
  }
4878
5100
  }
4879
- function ne(t, e, i) {
4880
- return (e = As(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
5101
+ function re(t, e, i) {
5102
+ return (e = Os(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4881
5103
  }
4882
- function As(t) {
4883
- var e = ws(t, "string");
5104
+ function Os(t) {
5105
+ var e = Ds(t, "string");
4884
5106
  return typeof e == "symbol" ? e : e + "";
4885
5107
  }
4886
- function ws(t, e) {
5108
+ function Ds(t, e) {
4887
5109
  if (typeof t != "object" || !t)
4888
5110
  return t;
4889
5111
  var i = t[Symbol.toPrimitive];
@@ -4895,49 +5117,49 @@ function ws(t, e) {
4895
5117
  }
4896
5118
  return (e === "string" ? String : Number)(t);
4897
5119
  }
4898
- class bs {
5120
+ class Ps {
4899
5121
  constructor(e) {
4900
- 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) => {
5122
+ re(this, "name", "OKSPIN"), re(this, "initialized", !1), re(this, "initCompleter", null), re(this, "context", void 0), re(this, "adsOverlay", null), re(this, "adsIsShowing", !1), re(this, "state", Xi()), re(this, "init", async (i) => {
4901
5123
  var n;
4902
- this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), fe(_(zi, {
5124
+ this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), fe(m(Yi, {
4903
5125
  state: this.state
4904
5126
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
4905
- }), ne(this, "destroy", () => {
5127
+ }), re(this, "destroy", () => {
4906
5128
  var i;
4907
5129
  this.adsOverlay && (fe(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
4908
- }), ne(this, "requestAd", (i, n) => {
4909
- var s, a, d, l;
5130
+ }), re(this, "requestAd", (i, n) => {
5131
+ var s, a, d, u;
4910
5132
  if (!this.adsOverlay || !this.initialized) {
4911
- (s = i.onAdError) == null || s.call(i, $.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
5133
+ (s = i.onAdError) == null || s.call(i, F.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
4912
5134
  return;
4913
5135
  }
4914
5136
  if (this.adsIsShowing) {
4915
- (a = i.onAdError) == null || a.call(i, $.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
5137
+ (a = i.onAdError) == null || a.call(i, F.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
4916
5138
  return;
4917
5139
  }
4918
5140
  (d = i.onAdRequested) == null || d.call(i);
4919
5141
  const r = () => {
4920
- var u;
4921
- this.adsIsShowing = !1, (u = i.onAdCompleted) == null || u.call(i, void 0);
5142
+ var l;
5143
+ this.adsIsShowing = !1, (l = i.onAdCompleted) == null || l.call(i, void 0);
4922
5144
  }, o = () => {
4923
- var u;
4924
- (u = i.onAdLoaded) == null || u.call(i, void 0);
5145
+ var l;
5146
+ (l = i.onAdLoaded) == null || l.call(i, void 0);
4925
5147
  };
4926
5148
  this.adsIsShowing = !0, P(() => {
4927
- var u;
4928
- 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;
4929
- }), (l = i.onAdPlaying) == null || l.call(i, void 0);
5149
+ var l;
5150
+ 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;
5151
+ }), (u = i.onAdPlaying) == null || u.call(i, void 0);
4930
5152
  }), this.context = e;
4931
5153
  }
4932
5154
  }
4933
- function te(t, e, i) {
4934
- return (e = ps(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
5155
+ function ie(t, e, i) {
5156
+ return (e = Ns(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4935
5157
  }
4936
- function ps(t) {
4937
- var e = _s(t, "string");
5158
+ function Ns(t) {
5159
+ var e = Ls(t, "string");
4938
5160
  return typeof e == "symbol" ? e : e + "";
4939
5161
  }
4940
- function _s(t, e) {
5162
+ function Ls(t, e) {
4941
5163
  if (typeof t != "object" || !t)
4942
5164
  return t;
4943
5165
  var i = t[Symbol.toPrimitive];
@@ -4949,31 +5171,31 @@ function _s(t, e) {
4949
5171
  }
4950
5172
  return (e === "string" ? String : Number)(t);
4951
5173
  }
4952
- class ms {
5174
+ class Bs {
4953
5175
  constructor(e) {
4954
- 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) => {
5176
+ ie(this, "name", "APPSROCKETS"), ie(this, "initialized", !1), ie(this, "initCompleter", null), ie(this, "context", void 0), ie(this, "adsOverlay", null), ie(this, "adsIsShowing", !1), ie(this, "state", Qi()), ie(this, "processUrl", (i) => {
4955
5177
  var s;
4956
5178
  const n = this.context.getContextInfo(), r = new URL(i), o = new URLSearchParams(r.search);
4957
5179
  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();
4958
- }), te(this, "init", async (i) => {
5180
+ }), ie(this, "init", async (i) => {
4959
5181
  var n;
4960
- this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), fe(_(Hi, {
5182
+ this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), fe(m(Zi, {
4961
5183
  state: this.state
4962
5184
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
4963
- }), te(this, "destroy", () => {
5185
+ }), ie(this, "destroy", () => {
4964
5186
  var i;
4965
5187
  this.adsOverlay && (fe(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
4966
- }), te(this, "requestAd", (i, n) => {
4967
- var d, l, u, c;
5188
+ }), ie(this, "requestAd", (i, n) => {
5189
+ var d, u, l, c;
4968
5190
  if (!this.adsOverlay || !this.initialized) {
4969
- (d = i.onAdError) == null || d.call(i, $.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
5191
+ (d = i.onAdError) == null || d.call(i, F.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
4970
5192
  return;
4971
5193
  }
4972
5194
  if (this.adsIsShowing) {
4973
- (l = i.onAdError) == null || l.call(i, $.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
5195
+ (u = i.onAdError) == null || u.call(i, F.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
4974
5196
  return;
4975
5197
  }
4976
- (u = i.onAdRequested) == null || u.call(i);
5198
+ (l = i.onAdRequested) == null || l.call(i);
4977
5199
  const r = () => {
4978
5200
  var h;
4979
5201
  this.adsIsShowing = !1, (h = i.onAdCompleted) == null || h.call(i, void 0);
@@ -4981,11 +5203,11 @@ class ms {
4981
5203
  var h;
4982
5204
  (h = i.onAdLoaded) == null || h.call(i, void 0);
4983
5205
  }, s = (h) => {
4984
- var f, g;
4985
- (g = (f = this.context).handleLinkClicked) == null || g.call(f, h);
5206
+ var f, v;
5207
+ (v = (f = this.context).handleLinkClicked) == null || v.call(f, h);
4986
5208
  }, a = () => {
4987
5209
  var h;
4988
- (h = i.onAdError) == null || h.call(i, $.from(new Error("Ads load error"), "JOLIBOX_IMA_ERROR"));
5210
+ (h = i.onAdError) == null || h.call(i, F.from(new Error("Ads load error"), "JOLIBOX_IMA_ERROR"));
4989
5211
  };
4990
5212
  this.adsIsShowing = !0, P(() => {
4991
5213
  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;
@@ -4993,14 +5215,14 @@ class ms {
4993
5215
  }), this.context = e;
4994
5216
  }
4995
5217
  }
4996
- function ve(t, e, i) {
4997
- return (e = Ss(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
5218
+ function ye(t, e, i) {
5219
+ return (e = Ms(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4998
5220
  }
4999
- function Ss(t) {
5000
- var e = Es(t, "string");
5221
+ function Ms(t) {
5222
+ var e = $s(t, "string");
5001
5223
  return typeof e == "symbol" ? e : e + "";
5002
5224
  }
5003
- function Es(t, e) {
5225
+ function $s(t, e) {
5004
5226
  if (typeof t != "object" || !t)
5005
5227
  return t;
5006
5228
  var i = t[Symbol.toPrimitive];
@@ -5012,27 +5234,27 @@ function Es(t, e) {
5012
5234
  }
5013
5235
  return (e === "string" ? String : Number)(t);
5014
5236
  }
5015
- class ks {
5237
+ class Fs {
5016
5238
  constructor(e) {
5017
- 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) => {
5239
+ 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) => {
5018
5240
  if (!this.rewardAdManager) {
5019
5241
  const n = this.contextInfo.testAdsMode ? "/22639388115/rewarded_web_example" : i.params.rewardedSlot, o = `minidrama-${this.contextInfo.runtimeType === "APP" ? "app" : "h5"}`;
5020
- this.rewardAdManager = new Xi(n, o, i.params.keyValue);
5242
+ this.rewardAdManager = new tn(n, o, i.params.keyValue);
5021
5243
  }
5022
- }), ve(this, "insertScript", () => {
5244
+ }), ye(this, "insertScript", () => {
5023
5245
  const i = "jolibox-google-gpt";
5024
5246
  let n = document.getElementById(i);
5025
5247
  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));
5026
- }), ve(this, "destroy", () => {
5248
+ }), ye(this, "destroy", () => {
5027
5249
  var i;
5028
5250
  (i = this.rewardAdManager) == null || i.withCommand(() => {
5029
5251
  var n;
5030
5252
  (n = this.rewardAdManager) == null || n.destroy("ignored");
5031
5253
  });
5032
- }), ve(this, "requestAd", (i, n) => {
5254
+ }), ye(this, "requestAd", (i, n) => {
5033
5255
  var r;
5034
5256
  if (!this.rewardAdManager) {
5035
- (r = i.onAdError) == null || r.call(i, $.from(new Error("rewardAdManager not initialized"), "JOLIBOX_IMA_ERROR"));
5257
+ (r = i.onAdError) == null || r.call(i, F.from(new Error("rewardAdManager not initialized"), "JOLIBOX_IMA_ERROR"));
5036
5258
  return;
5037
5259
  }
5038
5260
  this.rewardAdManager.requestAds({
@@ -5055,7 +5277,7 @@ class ks {
5055
5277
  case "ignored":
5056
5278
  break;
5057
5279
  default: {
5058
- (a = i.onAdError) == null || a.call(i, $.from(new Error(o), "JOLIBOX_IMA_ERROR"));
5280
+ (a = i.onAdError) == null || a.call(i, F.from(new Error(o), "JOLIBOX_IMA_ERROR"));
5059
5281
  break;
5060
5282
  }
5061
5283
  }
@@ -5064,14 +5286,14 @@ class ks {
5064
5286
  }), this.context = e, this.contextInfo = e.getContextInfo(), this.insertScript();
5065
5287
  }
5066
5288
  }
5067
- function me(t, e, i) {
5068
- return (e = Is(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
5289
+ function be(t, e, i) {
5290
+ return (e = Us(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
5069
5291
  }
5070
- function Is(t) {
5071
- var e = xs(t, "string");
5292
+ function Us(t) {
5293
+ var e = js(t, "string");
5072
5294
  return typeof e == "symbol" ? e : e + "";
5073
5295
  }
5074
- function xs(t, e) {
5296
+ function js(t, e) {
5075
5297
  if (typeof t != "object" || !t)
5076
5298
  return t;
5077
5299
  var i = t[Symbol.toPrimitive];
@@ -5083,10 +5305,10 @@ function xs(t, e) {
5083
5305
  }
5084
5306
  return (e === "string" ? String : Number)(t);
5085
5307
  }
5086
- class Us {
5308
+ class Zs {
5087
5309
  constructor(e) {
5088
- 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)
5089
- this.context = e, this.requestContext = new Mt(e), this.adsRequest = new Yi(e, {
5310
+ if (be(this, "context", void 0), be(this, "contextInfo", void 0), be(this, "providers", {}), be(this, "requestContext", void 0), be(this, "adsRequest", void 0), be(this, "initialized", !1), be(this, "preloadedAd", null), e)
5311
+ this.context = e, this.requestContext = new Ut(e), this.adsRequest = new nn(e, {
5090
5312
  reward: !1,
5091
5313
  interstitial: !1,
5092
5314
  afv: !1
@@ -5108,27 +5330,38 @@ class Us {
5108
5330
  for (const i of e)
5109
5331
  switch (i.provider) {
5110
5332
  case "GOOGLE_GPT": {
5111
- const n = new ks(this.context);
5333
+ const n = new Fs(this.context);
5112
5334
  await n.init(i), this.providers.GOOGLE_GPT = n;
5113
5335
  break;
5114
5336
  }
5115
5337
  case "GOOGLE_IMA": {
5116
- const n = new gs(this.context);
5338
+ const n = new Cs(this.context);
5117
5339
  await n.init(i), this.providers.GOOGLE_IMA = n;
5118
5340
  break;
5119
5341
  }
5120
5342
  case "OKSPIN": {
5121
- const n = new bs(this.context);
5343
+ const n = new Ps(this.context);
5122
5344
  await n.init(i), this.providers.OKSPIN = n;
5123
5345
  break;
5124
5346
  }
5125
5347
  case "APPSROCKETS": {
5126
- const n = new ms(this.context);
5348
+ const n = new Bs(this.context);
5127
5349
  await n.init(i), this.providers.APPSROCKETS = n;
5128
5350
  break;
5129
5351
  }
5130
5352
  }
5131
- this.adsRequest.cacheAFVInfo(), this.initialized = !0;
5353
+ this.adsRequest.cacheAFVInfo(), this.initialized = !0, this.preload();
5354
+ }
5355
+ /**
5356
+ * Preload ads info and resolve provider options in advance.
5357
+ * If preload fails, requestAd() will fall back to the normal flow.
5358
+ */
5359
+ preload() {
5360
+ this.adsRequest.getAFVAdsInfo(!0).then((e) => {
5361
+ console.log("[JoliboxSDK] afv preload adsInfo:", e), this.preloadedAd = e;
5362
+ }).catch(() => {
5363
+ this.preloadedAd = null;
5364
+ });
5132
5365
  }
5133
5366
  /**
5134
5367
  * Destroy all providers and reset the initialized state.
@@ -5137,62 +5370,65 @@ class Us {
5137
5370
  const e = Object.values(this.providers);
5138
5371
  for (const i of e)
5139
5372
  i.destroy();
5140
- this.initialized = !1;
5373
+ this.initialized = !1, this.preloadedAd = null;
5141
5374
  }
5142
5375
  async requestAd(e) {
5143
- var i, n, r, o, s, a, d, l, u, c, h;
5376
+ var i, n, r, o, s, a, d, u, l, c, h, f;
5144
5377
  if ((i = this.context.eventEmitter) == null || i.emit("isAdShowing", !0), this.initialized || await this.init(), !this.context.checkNetwork()) {
5145
- const f = $.from(new Error("No network connection"), "JOLIBOX_IMA_ERROR");
5146
- (n = e.onAdError) == null || n.call(e, f);
5378
+ const v = F.from(new Error("No network connection"), "JOLIBOX_IMA_ERROR");
5379
+ (n = e.onAdError) == null || n.call(e, v);
5147
5380
  return;
5148
5381
  }
5149
5382
  try {
5150
- const f = await this.adsRequest.getAFVAdsInfo(!0), g = f == null ? void 0 : f.code, v = f == null ? void 0 : f.data;
5151
- if (g === "BYPASS_ADS") {
5152
- (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);
5383
+ console.log("[JoliboxSDK] requestAd this.preloadedAd:", this.preloadedAd);
5384
+ const v = (r = this.preloadedAd) != null ? r : await this.adsRequest.getAFVAdsInfo(!0);
5385
+ this.preloadedAd = null;
5386
+ const y = v == null ? void 0 : v.code, w = v == null ? void 0 : v.data;
5387
+ if (y === "BYPASS_ADS") {
5388
+ (o = e.onAdRequested) == null || o.call(e), (s = e.onAdLoaded) == null || s.call(e, void 0), (a = e.onAdPlaying) == null || a.call(e, void 0), (d = e.onAdCompleted) == null || d.call(e, void 0);
5153
5389
  return;
5154
5390
  }
5155
- if (v) {
5156
- const A = v == null ? void 0 : v.sort((b, m) => b.seq - m.seq);
5157
- if (A.length === 0) {
5158
- const b = $.from(new Error("No ads available"), "JOLIBOX_IMA_ERROR");
5159
- (l = e.onAdError) == null || l.call(e, b);
5391
+ if (w) {
5392
+ const g = w.sort((_, E) => _.seq - E.seq);
5393
+ if (g.length === 0) {
5394
+ const _ = F.from(new Error("No ads available"), "JOLIBOX_IMA_ERROR");
5395
+ (l = e.onAdError) == null || l.call(e, _);
5160
5396
  return;
5161
5397
  }
5162
- let y = !0, w = null;
5163
- const S = new os(this.context);
5164
- for (; A.length > 0; ) {
5165
- const b = A.shift(), m = this.providers[b.provider];
5166
- if (m) {
5167
- const [E, p] = await S.callAdRequestAndContinue(m, e, b);
5168
- y = E, w = p;
5398
+ let A = !0, S = null;
5399
+ const p = new bs(this.context);
5400
+ for (; g.length > 0; ) {
5401
+ const _ = g.shift(), E = this.providers[_.provider];
5402
+ if (E) {
5403
+ const [b, ee] = await p.callAdRequestAndContinue(E, e, _);
5404
+ A = b, S = ee;
5169
5405
  } else
5170
- y = !0, w = $.from(new Error("No provider available"), "JOLIBOX_IMA_ERROR");
5171
- if (!y)
5406
+ A = !0, S = F.from(new Error("No provider available"), "JOLIBOX_IMA_ERROR");
5407
+ if (!A)
5172
5408
  break;
5173
5409
  }
5174
- y && w && ((u = e.onAdError) == null || u.call(e, w));
5410
+ A && S && ((c = e.onAdError) == null || c.call(e, S));
5175
5411
  } else {
5176
- const A = $.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
5177
- (d = e.onAdError) == null || d.call(e, A);
5412
+ const g = F.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
5413
+ (u = e.onAdError) == null || u.call(e, g);
5178
5414
  return;
5179
5415
  }
5180
- } catch (f) {
5181
- const g = $.from(new Error("Failed to request ad"), "JOLIBOX_IMA_ERROR");
5182
- (c = e.onAdError) == null || c.call(e, g);
5416
+ } catch (v) {
5417
+ const y = F.from(new Error("Failed to request ad"), "JOLIBOX_IMA_ERROR");
5418
+ (h = e.onAdError) == null || h.call(e, y);
5183
5419
  } finally {
5184
- (h = this.context.eventEmitter) == null || h.emit("isAdShowing", !1);
5420
+ (f = this.context.eventEmitter) == null || f.emit("isAdShowing", !1), this.preload();
5185
5421
  }
5186
5422
  }
5187
5423
  }
5188
- function Se(t, e, i) {
5189
- return (e = Rs(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
5424
+ function Ee(t, e, i) {
5425
+ return (e = Vs(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
5190
5426
  }
5191
- function Rs(t) {
5192
- var e = Ts(t, "string");
5427
+ function Vs(t) {
5428
+ var e = qs(t, "string");
5193
5429
  return typeof e == "symbol" ? e : e + "";
5194
5430
  }
5195
- function Ts(t, e) {
5431
+ function qs(t, e) {
5196
5432
  if (typeof t != "object" || !t)
5197
5433
  return t;
5198
5434
  var i = t[Symbol.toPrimitive];
@@ -5204,21 +5440,21 @@ function Ts(t, e) {
5204
5440
  }
5205
5441
  return (e === "string" ? String : Number)(t);
5206
5442
  }
5207
- class $s extends Error {
5443
+ class ea extends Error {
5208
5444
  constructor(e) {
5209
- 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;
5445
+ 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;
5210
5446
  }
5211
5447
  }
5212
5448
  export {
5213
- $ as AFVWrappedError,
5214
- er as GoogleAdSenseProvider,
5215
- gs as GoogleIMAProvider,
5216
- Po as InterstitialAdManager,
5217
- Ms as JoliboxAdsForGame,
5218
- Us as JoliboxAdsForVideo,
5219
- uo as OKSpinForGameProvider,
5220
- bs as OKSpinForVideoProvider,
5221
- $s as ResponseError,
5222
- Xi as RewardAdManager,
5223
- Ji as initGPTServices
5449
+ F as AFVWrappedError,
5450
+ sr as GoogleAdSenseProvider,
5451
+ Cs as GoogleIMAProvider,
5452
+ Fo as InterstitialAdManager,
5453
+ Qs as JoliboxAdsForGame,
5454
+ Zs as JoliboxAdsForVideo,
5455
+ go as OKSpinForGameProvider,
5456
+ Ps as OKSpinForVideoProvider,
5457
+ ea as ResponseError,
5458
+ tn as RewardAdManager,
5459
+ en as initGPTServices
5224
5460
  };