@jolibox/ads 1.3.0 → 1.3.2

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,48 +1,48 @@
1
- var ji = Object.defineProperty;
2
- var Pe = Object.getOwnPropertySymbols;
3
- var xt = Object.prototype.hasOwnProperty, Ot = Object.prototype.propertyIsEnumerable;
4
- var Rt = (t, e, i) => e in t ? ji(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, Tt = (t, e) => {
1
+ var zi = Object.defineProperty;
2
+ var je = Object.getOwnPropertySymbols;
3
+ var Pt = Object.prototype.hasOwnProperty, Nt = Object.prototype.propertyIsEnumerable;
4
+ var Lt = (t, e, i) => e in t ? zi(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, Bt = (t, e) => {
5
5
  for (var i in e || (e = {}))
6
- xt.call(e, i) && Rt(t, i, e[i]);
7
- if (Pe)
8
- for (var i of Pe(e))
9
- Ot.call(e, i) && Rt(t, i, e[i]);
6
+ Pt.call(e, i) && Lt(t, i, e[i]);
7
+ if (je)
8
+ for (var i of je(e))
9
+ Nt.call(e, i) && Lt(t, i, e[i]);
10
10
  return t;
11
11
  };
12
- var Ct = (t, e) => {
12
+ var Mt = (t, e) => {
13
13
  var i = {};
14
14
  for (var n in t)
15
- xt.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
16
- if (t != null && Pe)
17
- for (var n of Pe(t))
18
- e.indexOf(n) < 0 && Ot.call(t, n) && (i[n] = t[n]);
15
+ Pt.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
16
+ if (t != null && je)
17
+ for (var n of je(t))
18
+ e.indexOf(n) < 0 && Nt.call(t, n) && (i[n] = t[n]);
19
19
  return i;
20
20
  };
21
- import { options as ve, Component as Ui, isValidElement as Vi } from "preact";
22
- import { useRef as Gi, useLayoutEffect as qi, useEffect as Xe, useMemo as Ki, useState as ii, useCallback as zi, render as oe, createRef as Dt } from "preact/compat";
23
- var ni = Object.defineProperty, Hi = Object.defineProperties, Wi = Object.getOwnPropertyDescriptors, Lt = Object.getOwnPropertySymbols, Ji = Object.prototype.hasOwnProperty, Xi = Object.prototype.propertyIsEnumerable, Pt = (t, e, i) => e in t ? ni(t, e, {
21
+ import { options as Ee, Component as Ki, isValidElement as Hi } from "preact";
22
+ import { useRef as li, useLayoutEffect as Wi, useEffect as ke, useMemo as Ji, useState as ve, useCallback as vt, render as le, createRef as Ft } from "preact/compat";
23
+ var ui = Object.defineProperty, Xi = Object.defineProperties, Yi = Object.getOwnPropertyDescriptors, $t = Object.getOwnPropertySymbols, Qi = Object.prototype.hasOwnProperty, Zi = Object.prototype.propertyIsEnumerable, Ut = (t, e, i) => e in t ? ui(t, e, {
24
24
  enumerable: !0,
25
25
  configurable: !0,
26
26
  writable: !0,
27
27
  value: i
28
- }) : t[e] = i, Yi = (t, e) => {
28
+ }) : t[e] = i, en = (t, e) => {
29
29
  for (var i in e || (e = {}))
30
- Ji.call(e, i) && Pt(t, i, e[i]);
31
- if (Lt)
32
- for (var i of Lt(e))
33
- Xi.call(e, i) && Pt(t, i, e[i]);
30
+ Qi.call(e, i) && Ut(t, i, e[i]);
31
+ if ($t)
32
+ for (var i of $t(e))
33
+ Zi.call(e, i) && Ut(t, i, e[i]);
34
34
  return t;
35
- }, Qi = (t, e) => Hi(t, Wi(e)), Zi = (t, e) => {
35
+ }, tn = (t, e) => Xi(t, Yi(e)), nn = (t, e) => {
36
36
  for (var i in e)
37
- ni(t, i, {
37
+ ui(t, i, {
38
38
  get: e[i],
39
39
  enumerable: !0
40
40
  });
41
- }, ri = (t, e, i, n) => {
41
+ }, ci = (t, e, i, n) => {
42
42
  for (var r = e, o = t.length - 1, s; o >= 0; o--)
43
43
  (s = t[o]) && (r = s(r) || r);
44
44
  return r;
45
- }, en = (t, e, i) => new Promise((n, r) => {
45
+ }, rn = (t, e, i) => new Promise((n, r) => {
46
46
  var o = (d) => {
47
47
  try {
48
48
  a(i.next(d));
@@ -87,26 +87,26 @@ if (typeof window != "undefined" && !window.AbortController) {
87
87
  n.call(this, i);
88
88
  }, window.AbortController = t, window.AbortSignal = e;
89
89
  }
90
- function tn(t) {
90
+ function on(t) {
91
91
  return new Promise((e) => {
92
92
  setTimeout(() => {
93
93
  e();
94
94
  }, t);
95
95
  });
96
96
  }
97
- function nn(t) {
97
+ function sn(t) {
98
98
  return typeof t == "string";
99
99
  }
100
- function rn(t) {
100
+ function an(t) {
101
101
  return typeof t == "undefined";
102
102
  }
103
- function on(t) {
104
- return rn(t) || t === null;
103
+ function dn(t) {
104
+ return an(t) || t === null;
105
105
  }
106
- function sn(t) {
106
+ function ln(t) {
107
107
  return typeof t == "function";
108
108
  }
109
- function oi(t) {
109
+ function hi(t) {
110
110
  let e = t, i = null, n = function() {
111
111
  for (var r = arguments.length, o = new Array(r), s = 0; s < r; s++)
112
112
  o[s] = arguments[s];
@@ -114,29 +114,29 @@ function oi(t) {
114
114
  };
115
115
  return n.prototype = e.prototype, n;
116
116
  }
117
- var an = ((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))(an || {});
118
- function be(t) {
117
+ var un = ((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))(un || {});
118
+ function Te(t) {
119
119
  return function() {
120
120
  var e, i;
121
121
  ((i = (e = globalThis.VConsole) == null ? void 0 : e[t]) != null ? i : globalThis.console[t])(...arguments);
122
122
  };
123
123
  }
124
- var dn = {
125
- log: be("log"),
126
- warn: be("warn"),
127
- info: be("info"),
128
- error: be("error"),
129
- debug: be("debug")
124
+ var cn = {
125
+ log: Te("log"),
126
+ warn: Te("warn"),
127
+ info: Te("info"),
128
+ error: Te("error"),
129
+ debug: Te("debug")
130
130
  };
131
131
  Object.assign(globalThis, {
132
- logger: dn
132
+ logger: cn
133
133
  });
134
- var Nt = Symbol.for("Jolibox.canIUseMap"), ln = {};
135
- globalThis[Nt] || (globalThis[Nt] = ln);
136
- var Mt = Symbol.for("Jolibox.canIUseMap.native"), un = {};
137
- globalThis[Mt] || (globalThis[Mt] = un);
138
- var si = ((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))(si || {}), ai = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(ai || {}), di = ((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))(di || {}), $t = ["name", "params"], cn = ["name", "type", "location", "target", "extra", "timestamp", "userId"], hn = ["platform", "os", "appVersion", "appId", "model", "brand", "uuid", "jsSdkVersion", "extra"];
139
- function Fe(t, e) {
134
+ var jt = Symbol.for("Jolibox.canIUseMap"), hn = {};
135
+ globalThis[jt] || (globalThis[jt] = hn);
136
+ var Vt = Symbol.for("Jolibox.canIUseMap.native"), fn = {};
137
+ globalThis[Vt] || (globalThis[Vt] = fn);
138
+ var fi = ((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))(fi || {}), vi = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(vi || {}), yi = ((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))(yi || {}), Gt = ["name", "params"], vn = ["name", "type", "location", "target", "extra", "timestamp", "userId"], yn = ["platform", "os", "appVersion", "appId", "model", "brand", "uuid", "jsSdkVersion", "extra"];
139
+ function Ke(t, e) {
140
140
  return e.map((i) => {
141
141
  if (i === "params" && t[i]) {
142
142
  let n = t[i];
@@ -145,18 +145,18 @@ function Fe(t, e) {
145
145
  return t[i];
146
146
  });
147
147
  }
148
- function fn(t) {
149
- let e = t.location ? Fe(t.location, $t) : null, i = t.target ? Fe(t.target, $t) : null;
150
- return Fe(Qi(Yi({}, t), {
148
+ function gn(t) {
149
+ let e = t.location ? Ke(t.location, Gt) : null, i = t.target ? Ke(t.target, Gt) : null;
150
+ return Ke(tn(en({}, t), {
151
151
  location: e,
152
152
  target: i
153
- }), cn);
153
+ }), vn);
154
154
  }
155
- function vn(t) {
156
- let e = t.events.map((n) => fn(n)), i = Fe(t.device, hn);
155
+ function wn(t) {
156
+ let e = t.events.map((n) => gn(n)), i = Ke(t.device, yn);
157
157
  return [t.protocolVersion, e, i, t.project];
158
158
  }
159
- function gn() {
159
+ function bn() {
160
160
  if (typeof window == "undefined")
161
161
  return {
162
162
  getItem: () => null,
@@ -189,32 +189,32 @@ function gn() {
189
189
  return console.warn("Failed to get original localStorage, fallback to default implementation", t), localStorage;
190
190
  }
191
191
  }
192
- gn();
193
- var ce = typeof window == "undefined", dt = () => !ce && !!(navigator.userAgent || "").includes("JoliboxPlatformSDK");
194
- !ce && (navigator.userAgent.includes("iPhone") || navigator.userAgent.includes("iPod") || navigator.userAgent.includes("iPad") || navigator.userAgent.includes("iPhone OS")), !ce && navigator.userAgent.includes("Android"), !ce && navigator.userAgent.includes("Mac"), !ce && navigator.userAgent.includes("FB_IAB"), !ce && !navigator.userAgent.includes("iPhone") && navigator.userAgent.includes("Android");
195
- var lt = class ut {
192
+ bn();
193
+ var _e = typeof window == "undefined", yt = () => !_e && !!(navigator.userAgent || "").includes("JoliboxPlatformSDK");
194
+ !_e && (navigator.userAgent.includes("iPhone") || navigator.userAgent.includes("iPod") || navigator.userAgent.includes("iPad") || navigator.userAgent.includes("iPhone OS")), !_e && navigator.userAgent.includes("Android"), !_e && navigator.userAgent.includes("Mac"), !_e && navigator.userAgent.includes("FB_IAB"), !_e && !navigator.userAgent.includes("iPhone") && navigator.userAgent.includes("Android");
195
+ var gt = class wt {
196
196
  constructor(e) {
197
- this.element = e, this.next = ut.Undefined, this.prev = ut.Undefined;
197
+ this.element = e, this.next = wt.Undefined, this.prev = wt.Undefined;
198
198
  }
199
199
  };
200
- lt.Undefined = new lt(void 0);
201
- var x = lt, yn = class {
200
+ gt.Undefined = new gt(void 0);
201
+ var C = gt, An = class {
202
202
  constructor() {
203
- this._first = x.Undefined, this._last = x.Undefined, this._size = 0;
203
+ this._first = C.Undefined, this._last = C.Undefined, this._size = 0;
204
204
  }
205
205
  get size() {
206
206
  return this._size;
207
207
  }
208
208
  isEmpty() {
209
- return this._first === x.Undefined;
209
+ return this._first === C.Undefined;
210
210
  }
211
211
  clear() {
212
212
  let t = this._first;
213
- for (; t !== x.Undefined; ) {
213
+ for (; t !== C.Undefined; ) {
214
214
  let e = t.next;
215
- t.prev = x.Undefined, t.next = x.Undefined, t = e;
215
+ t.prev = C.Undefined, t.next = C.Undefined, t = e;
216
216
  }
217
- this._first = x.Undefined, this._last = x.Undefined, this._size = 0;
217
+ this._first = C.Undefined, this._last = C.Undefined, this._size = 0;
218
218
  }
219
219
  unshift(t) {
220
220
  return this._insert(t, !1);
@@ -223,8 +223,8 @@ var x = lt, yn = class {
223
223
  return this._insert(t, !0);
224
224
  }
225
225
  _insert(t, e) {
226
- let i = new x(t);
227
- if (this._first === x.Undefined)
226
+ let i = new C(t);
227
+ if (this._first === C.Undefined)
228
228
  this._first = i, this._last = i;
229
229
  else if (e) {
230
230
  let r = this._last;
@@ -240,41 +240,41 @@ var x = lt, yn = class {
240
240
  };
241
241
  }
242
242
  shift() {
243
- if (this._first !== x.Undefined) {
243
+ if (this._first !== C.Undefined) {
244
244
  let t = this._first.element;
245
245
  return this._remove(this._first), t;
246
246
  }
247
247
  }
248
248
  pop() {
249
- if (this._last !== x.Undefined) {
249
+ if (this._last !== C.Undefined) {
250
250
  let t = this._last.element;
251
251
  return this._remove(this._last), t;
252
252
  }
253
253
  }
254
254
  _remove(t) {
255
- if (t.prev !== x.Undefined && t.next !== x.Undefined) {
255
+ if (t.prev !== C.Undefined && t.next !== C.Undefined) {
256
256
  let e = t.prev;
257
257
  e.next = t.next, t.next.prev = e;
258
258
  } else
259
- t.prev === x.Undefined && t.next === x.Undefined ? (this._first = x.Undefined, this._last = x.Undefined) : t.next === x.Undefined ? (this._last = this._last.prev, this._last.next = x.Undefined) : t.prev === x.Undefined && (this._first = this._first.next, this._first.prev = x.Undefined);
259
+ t.prev === C.Undefined && t.next === C.Undefined ? (this._first = C.Undefined, this._last = C.Undefined) : t.next === C.Undefined ? (this._last = this._last.prev, this._last.next = C.Undefined) : t.prev === C.Undefined && (this._first = this._first.next, this._first.prev = C.Undefined);
260
260
  this._size -= 1;
261
261
  }
262
262
  *[Symbol.iterator]() {
263
263
  let t = this._first;
264
- for (; t !== x.Undefined; )
264
+ for (; t !== C.Undefined; )
265
265
  yield t.element, t = t.next;
266
266
  }
267
- }, wn = 0, _e = class {
267
+ }, pn = 0, Ce = class {
268
268
  constructor(e) {
269
- this.value = e, this.id = wn++;
269
+ this.value = e, this.id = pn++;
270
270
  }
271
- }, ke = class {
271
+ }, Ne = class {
272
272
  constructor(e) {
273
273
  this.options = e, this._size = 0;
274
274
  }
275
275
  dispose(e) {
276
276
  var i, n;
277
- this._disposed || (this._disposed = !0, this._listeners && (e ? (this._listeners instanceof _e && (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));
277
+ this._disposed || (this._disposed = !0, this._listeners && (e ? (this._listeners instanceof Ce && (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));
278
278
  }
279
279
  get event() {
280
280
  return this._event != null || (this._event = (e, i) => {
@@ -284,15 +284,15 @@ var x = lt, yn = class {
284
284
  console.info("[Jolibox SDK] Emitter is _disposed");
285
285
  };
286
286
  i && (e = e.bind(i));
287
- let l = new _e(e);
288
- return this._listeners ? this._listeners instanceof _e ? 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++, () => {
289
- var u, h, c, f;
287
+ let l = new Ce(e);
288
+ return this._listeners ? this._listeners instanceof Ce ? 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++, () => {
289
+ var u, c, h, f;
290
290
  if (!this._disposed) {
291
- if (this._listeners instanceof _e)
292
- this._listeners.id === l.id && (this._listeners = void 0, this._size = 0, (h = (u = this.options) == null ? void 0 : u.onDidRemoveLastListener) == null || h.call(u));
291
+ if (this._listeners instanceof Ce)
292
+ 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
293
  else if (this._listeners) {
294
294
  let w = this._listeners.indexOf(l);
295
- w >= 0 && (this._listeners.splice(w, 1), this._size--, this._size === 0 && ((f = (c = this.options) == null ? void 0 : c.onDidRemoveLastListener) == null || f.call(c)));
295
+ w >= 0 && (this._listeners.splice(w, 1), this._size--, this._size === 0 && ((f = (h = this.options) == null ? void 0 : h.onDidRemoveLastListener) == null || f.call(h)));
296
296
  }
297
297
  }
298
298
  };
@@ -314,19 +314,19 @@ var x = lt, yn = class {
314
314
  }
315
315
  }
316
316
  fire(e) {
317
- this._listeners && (this._listeners instanceof _e ? this._deliver(this._listeners, e) : this._listeners.forEach((i) => this._deliver(i, e)));
317
+ this._listeners && (this._listeners instanceof Ce ? this._deliver(this._listeners, e) : this._listeners.forEach((i) => this._deliver(i, e)));
318
318
  }
319
319
  hasListeners() {
320
320
  return this._size > 0;
321
321
  }
322
- }, An = class {
322
+ }, _n = class {
323
323
  constructor() {
324
324
  this.listeners = /* @__PURE__ */ new Map(), this.listerHandlerMap = /* @__PURE__ */ new WeakMap(), this.cachedEventQueue = /* @__PURE__ */ new Map();
325
325
  }
326
326
  on(t, e) {
327
327
  let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
328
328
  var n;
329
- let r = (n = this.listeners.get(t)) != null ? n : new ke(), o = (d) => e(...d.args), s = r.event(o);
329
+ let r = (n = this.listeners.get(t)) != null ? n : new Ne(), o = (d) => e(...d.args), s = r.event(o);
330
330
  this.listerHandlerMap.set(e, {
331
331
  handler: o,
332
332
  dispose: s
@@ -347,7 +347,7 @@ var x = lt, yn = class {
347
347
  let e = this.listeners.get(t), i = this.cachedEventQueue.get(t);
348
348
  for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
349
349
  r[o - 1] = arguments[o];
350
- i || (i = new yn(), this.cachedEventQueue.set(t, i)), i.push({
350
+ i || (i = new An(), this.cachedEventQueue.set(t, i)), i.push({
351
351
  args: r
352
352
  }), e && e.fire({
353
353
  event: t,
@@ -361,20 +361,20 @@ var x = lt, yn = class {
361
361
  };
362
362
  this.on(t, n, !1);
363
363
  }
364
- }, ct = {};
365
- Zi(ct, {
366
- None: () => pn,
367
- filter: () => _n,
368
- once: () => li,
369
- toPromise: () => bn
364
+ }, bt = {};
365
+ nn(bt, {
366
+ None: () => mn,
367
+ filter: () => En,
368
+ once: () => gi,
369
+ toPromise: () => Sn
370
370
  });
371
- var pn = () => (console.log("[Jolibox SDK] None Event"), () => {
371
+ var mn = () => (console.log("[Jolibox SDK] None Event"), () => {
372
372
  console.log("[Jolibox SDK] None Event dispose");
373
373
  });
374
- function bn(t) {
375
- return new Promise((e) => li(t)(e));
374
+ function Sn(t) {
375
+ return new Promise((e) => gi(t)(e));
376
376
  }
377
- function li(t) {
377
+ function gi(t) {
378
378
  return function(e) {
379
379
  let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, n = !1;
380
380
  return t((r) => {
@@ -383,52 +383,52 @@ function li(t) {
383
383
  }, null);
384
384
  };
385
385
  }
386
- function _n(t, e) {
386
+ function En(t, e) {
387
387
  return ((i) => {
388
388
  let n = {
389
389
  onWillAddFirstListener() {
390
390
  i(r.fire, r);
391
391
  }
392
- }, r = new ke(n);
392
+ }, r = new Ne(n);
393
393
  return r.event;
394
394
  })(function(i) {
395
395
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
396
396
  return t((r) => e(r) && i.call(n, r), null);
397
397
  });
398
398
  }
399
- var tt = Symbol.for("Jolibox.hostEmitter"), mn = () => {
400
- let t = new An();
401
- return globalThis[tt] || (globalThis[tt] = {
399
+ var at = Symbol.for("Jolibox.hostEmitter"), kn = () => {
400
+ let t = new _n();
401
+ return globalThis[at] || (globalThis[at] = {
402
402
  on: t.on.bind(t),
403
403
  off: t.off.bind(t),
404
404
  emit: t.emit.bind(t),
405
405
  once: t.once.bind(t)
406
- }), globalThis[tt];
406
+ }), globalThis[at];
407
407
  };
408
- mn();
409
- function Sn(t, e) {
408
+ kn();
409
+ function In(t, e) {
410
410
  let i = Math.min(t.length, e.length);
411
411
  for (let n = 0; n < i; n++)
412
- En(t[n], e[n]);
412
+ xn(t[n], e[n]);
413
413
  }
414
- function En(t, e) {
415
- if (nn(e)) {
414
+ function xn(t, e) {
415
+ if (sn(e)) {
416
416
  if (typeof t !== e)
417
417
  throw new Error(`argument does not match constraint: typeof ${e}`);
418
- } else if (sn(e)) {
418
+ } else if (ln(e)) {
419
419
  try {
420
420
  if (t instanceof e)
421
421
  return;
422
422
  } catch (i) {
423
423
  }
424
- if (!on(t) && t.constructor === e || e.length === 1 && e.call(void 0, t) === !0)
424
+ if (!dn(t) && t.constructor === e || e.length === 1 && e.call(void 0, t) === !0)
425
425
  return;
426
426
  throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true");
427
427
  }
428
428
  }
429
- var ht = class {
429
+ var At = class {
430
430
  constructor() {
431
- this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new ke(), this.onDidRegisterCommand = this._onDidRegisterCommand.event, console.log("[Jolibox SDK] command registry");
431
+ this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new Ne(), this.onDidRegisterCommand = this._onDidRegisterCommand.event, console.log("[Jolibox SDK] command registry");
432
432
  }
433
433
  registerCommand(t) {
434
434
  if (!t)
@@ -441,7 +441,7 @@ var ht = class {
441
441
  t.handler = function() {
442
442
  for (var r = arguments.length, o = new Array(r), s = 0; s < r; s++)
443
443
  o[s] = arguments[s];
444
- return Sn(o, i), n(...o);
444
+ return In(o, i), n(...o);
445
445
  };
446
446
  }
447
447
  let {
@@ -461,19 +461,19 @@ var ht = class {
461
461
  return t;
462
462
  }
463
463
  };
464
- ht = ri([oi], ht);
465
- var Bt = class {
464
+ At = ci([hi], At);
465
+ var qt = class {
466
466
  constructor() {
467
- this._onWillExecuteCommand = new ke(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new ke(), this.onDidExecuteCommand = this._onDidExecuteCommand.event, this.registry = new ht(), this._starActivation = null;
467
+ this._onWillExecuteCommand = new Ne(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new Ne(), this.onDidExecuteCommand = this._onDidExecuteCommand.event, this.registry = new At(), this._starActivation = null;
468
468
  }
469
469
  _activateStar() {
470
- return this._starActivation || (this._starActivation = tn(3e4)), this._starActivation;
470
+ return this._starActivation || (this._starActivation = on(3e4)), this._starActivation;
471
471
  }
472
472
  executeCommand(e) {
473
473
  for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), r = 1; r < i; r++)
474
474
  n[r - 1] = arguments[r];
475
- return en(this, null, function* () {
476
- return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(), ct.toPromise(ct.filter(this.registry.onDidRegisterCommand, (o) => o === e))])]), this._tryExecuteCommand(e, n));
475
+ return rn(this, null, function* () {
476
+ return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(), bt.toPromise(bt.filter(this.registry.onDidRegisterCommand, (o) => o === e))])]), this._tryExecuteCommand(e, n));
477
477
  });
478
478
  }
479
479
  executeCommandThowErr(e) {
@@ -519,15 +519,15 @@ var Bt = class {
519
519
  }
520
520
  }
521
521
  };
522
- Bt = ri([oi], Bt);
523
- function U(t, e, i) {
524
- return (e = kn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
522
+ qt = ci([hi], qt);
523
+ function H(t, e, i) {
524
+ return (e = Rn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
525
525
  }
526
- function kn(t) {
527
- var e = In(t, "string");
526
+ function Rn(t) {
527
+ var e = On(t, "string");
528
528
  return typeof e == "symbol" ? e : e + "";
529
529
  }
530
- function In(t, e) {
530
+ function On(t, e) {
531
531
  if (typeof t != "object" || !t)
532
532
  return t;
533
533
  var i = t[Symbol.toPrimitive];
@@ -539,7 +539,7 @@ function In(t, e) {
539
539
  }
540
540
  return (e === "string" ? String : Number)(t);
541
541
  }
542
- const ae = (t) => t ? function() {
542
+ const we = (t) => t ? function() {
543
543
  try {
544
544
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
545
545
  i[n] = arguments[n];
@@ -550,9 +550,9 @@ const ae = (t) => t ? function() {
550
550
  } : () => {
551
551
  console.log("wrapUserFunction: fn is undefined");
552
552
  };
553
- class Rn {
553
+ class Tn {
554
554
  constructor(e) {
555
- U(this, "context", void 0), U(this, "continueCallback", void 0), U(this, "adIsShowingCallback", void 0), U(this, "isBeforeAdCalled", !1), U(this, "isBeforeRewardCalled", !1), U(this, "isAdDismissedCalled", !1), U(this, "isAdViewedCalled", !1), U(this, "isAfterAdCalled", !1), U(this, "currentProvider", void 0), U(this, "currentClientParams", void 0), U(this, "adsHasResponse", !1), U(this, "videoChecker", window.document.createElement("video")), U(this, "contextInfo", void 0), U(this, "wrapShowAdFn", (i) => () => {
555
+ 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) => () => {
556
556
  var o, s, a;
557
557
  this.adsHasResponse = !0;
558
558
  let n = !1;
@@ -560,15 +560,15 @@ class Rn {
560
560
  n = !1;
561
561
  }), n = !this.videoChecker.paused, this.videoChecker.pause(), this.context.track("CallShowAdFn", Object.assign({}, {
562
562
  userEvent: n
563
- }, this.paramsToTrack)), this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_REWARD", Tt({
563
+ }, this.paramsToTrack)), this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_REWARD", Bt({
564
564
  userEvent: n
565
- }, this.paramsToTrack)), dt() && this.context.track("mmp_ad_impression", {
565
+ }, this.paramsToTrack)), yt() && this.context.track("mmp_ad_impression", {
566
566
  ad_network: (s = (o = this.currentProvider) == null ? void 0 : o.name) != null ? s : "",
567
567
  ad_format: "rewarded",
568
568
  module: "game",
569
569
  game_id: this.contextInfo.objectId
570
570
  }), (a = this.adIsShowingCallback) == null || a.call(this, !0);
571
- const r = ae(i);
571
+ const r = we(i);
572
572
  r == null || r();
573
573
  }), this.context = e, this.contextInfo = e.getContextInfo();
574
574
  }
@@ -593,8 +593,8 @@ class Rn {
593
593
  var i, n, r, o;
594
594
  if (this.adsHasResponse = !0, this.context.track("CallBeforeAd", this.paramsToTrack), this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_AD", this.paramsToTrack), !this.isBeforeAdCalled) {
595
595
  this.isBeforeAdCalled = !0;
596
- const s = ae(e);
597
- s == null || s(), ((i = this.currentClientParams) == null ? void 0 : i.type) !== "reward" && ((n = this.adIsShowingCallback) == null || n.call(this, !0), dt() && this.context.track("mmp_ad_impression", {
596
+ const s = we(e);
597
+ s == null || s(), ((i = this.currentClientParams) == null ? void 0 : i.type) !== "reward" && ((n = this.adIsShowingCallback) == null || n.call(this, !0), yt() && this.context.track("mmp_ad_impression", {
598
598
  ad_network: (o = (r = this.currentProvider) == null ? void 0 : r.name) != null ? o : "",
599
599
  ad_format: "interstitial",
600
600
  module: "game",
@@ -612,7 +612,7 @@ class Rn {
612
612
  return () => {
613
613
  if (this.adsHasResponse = !0, !this.isAdDismissedCalled) {
614
614
  this.isAdDismissedCalled = !0;
615
- const i = ae(e);
615
+ const i = we(e);
616
616
  i == null || i();
617
617
  }
618
618
  };
@@ -621,7 +621,7 @@ class Rn {
621
621
  return () => {
622
622
  if (this.adsHasResponse = !0, !this.isAdViewedCalled) {
623
623
  this.isAdViewedCalled = !0;
624
- const i = ae(e);
624
+ const i = we(e);
625
625
  i == null || i();
626
626
  }
627
627
  };
@@ -630,14 +630,14 @@ class Rn {
630
630
  return () => {
631
631
  if (this.adsHasResponse = !0, this.context.track("CallAfterAd", this.paramsToTrack), this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AFTER_AD", this.paramsToTrack), !this.isAfterAdCalled) {
632
632
  this.isAfterAdCalled = !0;
633
- const i = ae(e);
633
+ const i = we(e);
634
634
  i == null || i();
635
635
  }
636
636
  };
637
637
  }
638
638
  wrapAdBreakDone(e) {
639
639
  return (i) => {
640
- var n, r, o, s, a, d, l, u, h;
640
+ var n, r, o, s, a, d, l, u, c;
641
641
  switch (this.adsHasResponse = !0, this.context.track("CallAdBreakDone", {
642
642
  provider: (r = (n = this.currentProvider) == null ? void 0 : n.name) != null ? r : null,
643
643
  breakType: i.breakType,
@@ -655,12 +655,12 @@ class Rn {
655
655
  case "ignored":
656
656
  case "dismissed":
657
657
  case "error": {
658
- const c = ae(e);
659
- c == null || c(i), (l = this.adIsShowingCallback) == null || l.call(this, !1), (u = this.continueCallback) == null || u.call(this, [!1, i]);
658
+ const h = we(e);
659
+ h == null || h(i), (l = this.adIsShowingCallback) == null || l.call(this, !1), (u = this.continueCallback) == null || u.call(this, [!1, i]);
660
660
  break;
661
661
  }
662
662
  default: {
663
- (h = this.continueCallback) == null || h.call(this, [!0, i]);
663
+ (c = this.continueCallback) == null || c.call(this, [!0, i]);
664
664
  break;
665
665
  }
666
666
  }
@@ -709,16 +709,16 @@ class Rn {
709
709
  }
710
710
  }
711
711
  window.setTimeout(() => {
712
- var a, d, l, u, h, c, f;
712
+ var a, d, l, u, c, h, f;
713
713
  this.adsHasResponse || (this.context.track("CallAdBreakTimeout", {
714
714
  type: i.type,
715
715
  provider: (d = (a = this.currentProvider) == null ? void 0 : a.name) != null ? d : null
716
716
  }), this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK_TIMEOUT", {
717
717
  type: i.type,
718
718
  provider: (u = (l = this.currentProvider) == null ? void 0 : l.name) != null ? u : null
719
- }), (c = this.continueCallback) == null || c.call(this, [!0, {
719
+ }), (h = this.continueCallback) == null || h.call(this, [!0, {
720
720
  breakType: i.type,
721
- breakName: i.type === "preroll" ? "" : (h = i.name) != null ? h : "",
721
+ breakName: i.type === "preroll" ? "" : (c = i.name) != null ? c : "",
722
722
  breakFormat: i.type === "reward" ? "reward" : "interstitial",
723
723
  breakStatus: "timeout"
724
724
  }]), (f = this.adIsShowingCallback) == null || f.call(this, !1));
@@ -726,14 +726,14 @@ class Rn {
726
726
  });
727
727
  }
728
728
  }
729
- function Ne(t, e, i) {
730
- return (e = xn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
729
+ function Ve(t, e, i) {
730
+ return (e = Cn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
731
731
  }
732
- function xn(t) {
733
- var e = On(t, "string");
732
+ function Cn(t) {
733
+ var e = Dn(t, "string");
734
734
  return typeof e == "symbol" ? e : e + "";
735
735
  }
736
- function On(t, e) {
736
+ function Dn(t, e) {
737
737
  if (typeof t != "object" || !t)
738
738
  return t;
739
739
  var i = t[Symbol.toPrimitive];
@@ -745,13 +745,13 @@ function On(t, e) {
745
745
  }
746
746
  return (e === "string" ? String : Number)(t);
747
747
  }
748
- class Tn {
748
+ class Ln {
749
749
  constructor(e) {
750
- Ne(this, "context", void 0), Ne(this, "adBreakIsShowing", !1), Ne(this, "reportPageJumpOut", () => {
750
+ Ve(this, "context", void 0), Ve(this, "adBreakIsShowing", !1), Ve(this, "reportPageJumpOut", () => {
751
751
  this.context.track("AdBreakJumpOut", {
752
752
  context: "AdsActionDetection"
753
753
  });
754
- }), Ne(this, "reportPageHide", () => {
754
+ }), Ve(this, "reportPageHide", () => {
755
755
  this.context.track("AdBreakHide", {
756
756
  context: "AdsActionDetection"
757
757
  });
@@ -762,14 +762,14 @@ class Tn {
762
762
  });
763
763
  }
764
764
  }
765
- function Me(t, e, i) {
766
- return (e = Cn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
765
+ function Ge(t, e, i) {
766
+ return (e = Pn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
767
767
  }
768
- function Cn(t) {
769
- var e = Dn(t, "string");
768
+ function Pn(t) {
769
+ var e = Nn(t, "string");
770
770
  return typeof e == "symbol" ? e : e + "";
771
771
  }
772
- function Dn(t, e) {
772
+ function Nn(t, e) {
773
773
  if (typeof t != "object" || !t)
774
774
  return t;
775
775
  var i = t[Symbol.toPrimitive];
@@ -781,9 +781,9 @@ function Dn(t, e) {
781
781
  }
782
782
  return (e === "string" ? String : Number)(t);
783
783
  }
784
- class Ln {
784
+ class Bn {
785
785
  constructor(e) {
786
- Me(this, "configs", null), Me(this, "firstRun", !0), Me(this, "context", void 0), Me(this, "contextInfo", void 0), this.context = e, this.contextInfo = this.context.getContextInfo(), this.init();
786
+ Ge(this, "configs", null), Ge(this, "firstRun", !0), Ge(this, "context", void 0), Ge(this, "contextInfo", void 0), this.context = e, this.contextInfo = this.context.getContextInfo(), this.init();
787
787
  }
788
788
  async init() {
789
789
  try {
@@ -807,14 +807,14 @@ class Ln {
807
807
  return this.firstRun = !1, e;
808
808
  }
809
809
  }
810
- function Q(t, e, i) {
811
- return (e = Pn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
810
+ function oe(t, e, i) {
811
+ return (e = Mn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
812
812
  }
813
- function Pn(t) {
814
- var e = Nn(t, "string");
813
+ function Mn(t) {
814
+ var e = Fn(t, "string");
815
815
  return typeof e == "symbol" ? e : e + "";
816
816
  }
817
- function Nn(t, e) {
817
+ function Fn(t, e) {
818
818
  if (typeof t != "object" || !t)
819
819
  return t;
820
820
  var i = t[Symbol.toPrimitive];
@@ -826,31 +826,31 @@ function Nn(t, e) {
826
826
  }
827
827
  return (e === "string" ? String : Number)(t);
828
828
  }
829
- class Mn {
829
+ class $n {
830
830
  /**
831
831
  * Internal constructor, should not be called directly
832
832
  */
833
833
  constructor(e, i) {
834
- Q(this, "name", "ADSENSE"), Q(this, "context", void 0), Q(this, "contextInfo", void 0), Q(this, "configured", !1), Q(this, "initParams", void 0), Q(this, "push", function() {
834
+ oe(this, "name", "ADSENSE"), oe(this, "context", void 0), oe(this, "contextInfo", void 0), oe(this, "configured", !1), oe(this, "initParams", void 0), oe(this, "push", function() {
835
835
  let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
836
836
  window.adsbygoogle.push(n);
837
- }), Q(this, "adConfig", (n) => {
837
+ }), oe(this, "adConfig", (n) => {
838
838
  const s = n, {
839
839
  onReady: r
840
- } = s, o = Ct(s, [
840
+ } = s, o = Mt(s, [
841
841
  "onReady"
842
842
  ]);
843
843
  this.context.track("CallAdConfig", o), this.configured ? console.warn("Ad config already set, skipping") : (this.configured = !0, this.push(n));
844
- }), Q(this, "adBreak", (n) => {
844
+ }), oe(this, "adBreak", (n) => {
845
845
  if (!this.contextInfo.objectId) {
846
846
  console.warn("Game ID is not set, skip calling adBreak");
847
847
  return;
848
848
  }
849
849
  this.push(n);
850
- }), Q(this, "adUnit", async (n) => {
851
- var w, g, A, y;
850
+ }), oe(this, "adUnit", async (n) => {
851
+ var w, v, A, y;
852
852
  if (this.context.track("CallAdUnit", {
853
- adFormat: (g = (w = n.adFormat) == null ? void 0 : w.toString()) != null ? g : null,
853
+ adFormat: (v = (w = n.adFormat) == null ? void 0 : w.toString()) != null ? v : null,
854
854
  fullWidthResponsive: (A = n.fullWidthResponsive) != null ? A : null
855
855
  }), document.querySelector("#jolibox-ads")) {
856
856
  console.warn("Ad unit already set, skipping");
@@ -871,21 +871,21 @@ class Mn {
871
871
  let u = o;
872
872
  if (u || (u = this.initParams.unitId), !u)
873
873
  throw new Error("slot is required");
874
- const h = typeof s == "object" && Array.isArray(s) ? s.join(", ") : s, c = document.createElement("ins");
875
- if (c.className = "adsbygoogle", c.id = "jolibox-ads", c.style.display = "block", c.setAttribute("data-ad-client", this.initParams.clientId), c.setAttribute("data-ad-slot", u), h && c.setAttribute("data-ad-format", h), a && c.setAttribute("data-full-width-responsive", a), d && c.setAttribute("style", d), (y = this.contextInfo.testAdsMode) != null ? y : !1) {
876
- const v = document.createElement("div");
877
- v.style.position = "absolute", v.style.top = "0", v.style.left = "0", v.style.width = "100%", v.style.height = "100%", v.style.display = "flex", v.style.justifyContent = "center", v.style.alignItems = "center", v.style.backgroundColor = "rgba(0, 0, 0, 0.5)", v.style.color = "white", v.innerHTML = "Test Ad", c.style.position = "relative", l.appendChild(c), c.appendChild(v);
874
+ const c = typeof s == "object" && Array.isArray(s) ? s.join(", ") : s, h = document.createElement("ins");
875
+ 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) {
876
+ const g = document.createElement("div");
877
+ g.style.position = "absolute", g.style.top = "0", g.style.left = "0", g.style.width = "100%", g.style.height = "100%", g.style.display = "flex", g.style.justifyContent = "center", g.style.alignItems = "center", g.style.backgroundColor = "rgba(0, 0, 0, 0.5)", g.style.color = "white", g.innerHTML = "Test Ad", h.style.position = "relative", l.appendChild(h), h.appendChild(g);
878
878
  } else
879
- l.appendChild(c), new MutationObserver((p) => {
880
- p.forEach((T) => {
881
- if (T.type === "attributes" && T.attributeName === "data-ad-status") {
882
- const R = c.getAttribute("data-ad-status");
879
+ l.appendChild(h), new MutationObserver((b) => {
880
+ b.forEach((x) => {
881
+ if (x.type === "attributes" && x.attributeName === "data-ad-status") {
882
+ const _ = h.getAttribute("data-ad-status");
883
883
  this.context.track("AdSenseUnitStatusChanged", {
884
- status: R != null ? R : "null"
884
+ status: _ != null ? _ : "null"
885
885
  });
886
886
  }
887
887
  });
888
- }).observe(c, {
888
+ }).observe(h, {
889
889
  attributes: !0,
890
890
  attributeFilter: ["data-ad-status"]
891
891
  }), this.push({});
@@ -904,18 +904,18 @@ class Mn {
904
904
  }
905
905
  }
906
906
  }
907
- function $n(t) {
907
+ function Un(t) {
908
908
  if (t.sheet)
909
909
  return t.sheet;
910
910
  for (var e = 0; e < document.styleSheets.length; e++)
911
911
  if (document.styleSheets[e].ownerNode === t)
912
912
  return document.styleSheets[e];
913
913
  }
914
- function Bn(t) {
914
+ function jn(t) {
915
915
  var e = document.createElement("style");
916
916
  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;
917
917
  }
918
- var Fn = /* @__PURE__ */ function() {
918
+ var Vn = /* @__PURE__ */ function() {
919
919
  function t(i) {
920
920
  var n = this;
921
921
  this._insertTag = function(r) {
@@ -927,10 +927,10 @@ var Fn = /* @__PURE__ */ function() {
927
927
  return e.hydrate = function(n) {
928
928
  n.forEach(this._insertTag);
929
929
  }, e.insert = function(n) {
930
- this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Bn(this));
930
+ this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(jn(this));
931
931
  var r = this.tags[this.tags.length - 1];
932
932
  if (this.isSpeedy) {
933
- var o = $n(r);
933
+ var o = Un(r);
934
934
  try {
935
935
  o.insertRule(n, o.cssRules.length);
936
936
  } catch (s) {
@@ -944,66 +944,66 @@ var Fn = /* @__PURE__ */ function() {
944
944
  return (r = n.parentNode) == null ? void 0 : r.removeChild(n);
945
945
  }), this.tags = [], this.ctr = 0;
946
946
  }, t;
947
- }(), B = "-ms-", ze = "-moz-", m = "-webkit-", ui = "comm", bt = "rule", _t = "decl", jn = "@import", ci = "@keyframes", Un = "@layer", Vn = Math.abs, Ye = String.fromCharCode, Gn = Object.assign;
948
- function qn(t, e) {
949
- return P(t, 0) ^ 45 ? (((e << 2 ^ P(t, 0)) << 2 ^ P(t, 1)) << 2 ^ P(t, 2)) << 2 ^ P(t, 3) : 0;
947
+ }(), V = "-ms-", Ze = "-moz-", k = "-webkit-", wi = "comm", xt = "rule", Rt = "decl", Gn = "@import", bi = "@keyframes", qn = "@layer", zn = Math.abs, nt = String.fromCharCode, Kn = Object.assign;
948
+ function Hn(t, e) {
949
+ return F(t, 0) ^ 45 ? (((e << 2 ^ F(t, 0)) << 2 ^ F(t, 1)) << 2 ^ F(t, 2)) << 2 ^ F(t, 3) : 0;
950
950
  }
951
- function hi(t) {
951
+ function Ai(t) {
952
952
  return t.trim();
953
953
  }
954
- function Kn(t, e) {
954
+ function Wn(t, e) {
955
955
  return (t = e.exec(t)) ? t[0] : t;
956
956
  }
957
- function S(t, e, i) {
957
+ function I(t, e, i) {
958
958
  return t.replace(e, i);
959
959
  }
960
- function ft(t, e) {
960
+ function pt(t, e) {
961
961
  return t.indexOf(e);
962
962
  }
963
- function P(t, e) {
963
+ function F(t, e) {
964
964
  return t.charCodeAt(e) | 0;
965
965
  }
966
- function Ie(t, e, i) {
966
+ function Be(t, e, i) {
967
967
  return t.slice(e, i);
968
968
  }
969
- function X(t) {
969
+ function ne(t) {
970
970
  return t.length;
971
971
  }
972
- function mt(t) {
972
+ function Ot(t) {
973
973
  return t.length;
974
974
  }
975
- function $e(t, e) {
975
+ function qe(t, e) {
976
976
  return e.push(t), t;
977
977
  }
978
- function zn(t, e) {
978
+ function Jn(t, e) {
979
979
  return t.map(e).join("");
980
980
  }
981
- var Qe = 1, ge = 1, fi = 0, G = 0, C = 0, ye = "";
982
- function Ze(t, e, i, n, r, o, s) {
983
- return { value: t, root: e, parent: i, type: n, props: r, children: o, line: Qe, column: ge, length: s, return: "" };
984
- }
985
- function me(t, e) {
986
- return Gn(Ze("", null, null, "", null, null, 0), t, { length: -t.length }, e);
981
+ var rt = 1, Ie = 1, pi = 0, J = 0, P = 0, xe = "";
982
+ function ot(t, e, i, n, r, o, s) {
983
+ return { value: t, root: e, parent: i, type: n, props: r, children: o, line: rt, column: Ie, length: s, return: "" };
987
984
  }
988
- function Hn() {
989
- return C;
985
+ function De(t, e) {
986
+ return Kn(ot("", null, null, "", null, null, 0), t, { length: -t.length }, e);
990
987
  }
991
- function Wn() {
992
- return C = G > 0 ? P(ye, --G) : 0, ge--, C === 10 && (ge = 1, Qe--), C;
988
+ function Xn() {
989
+ return P;
993
990
  }
994
- function K() {
995
- return C = G < fi ? P(ye, G++) : 0, ge++, C === 10 && (ge = 1, Qe++), C;
991
+ function Yn() {
992
+ return P = J > 0 ? F(xe, --J) : 0, Ie--, P === 10 && (Ie = 1, rt--), P;
996
993
  }
997
994
  function Y() {
998
- return P(ye, G);
995
+ return P = J < pi ? F(xe, J++) : 0, Ie++, P === 10 && (Ie = 1, rt++), P;
999
996
  }
1000
- function je() {
1001
- return G;
997
+ function re() {
998
+ return F(xe, J);
1002
999
  }
1003
- function xe(t, e) {
1004
- return Ie(ye, t, e);
1000
+ function He() {
1001
+ return J;
1005
1002
  }
1006
- function Re(t) {
1003
+ function Fe(t, e) {
1004
+ return Be(xe, t, e);
1005
+ }
1006
+ function Me(t) {
1007
1007
  switch (t) {
1008
1008
  case 0:
1009
1009
  case 9:
@@ -1035,240 +1035,240 @@ function Re(t) {
1035
1035
  }
1036
1036
  return 0;
1037
1037
  }
1038
- function vi(t) {
1039
- return Qe = ge = 1, fi = X(ye = t), G = 0, [];
1038
+ function _i(t) {
1039
+ return rt = Ie = 1, pi = ne(xe = t), J = 0, [];
1040
1040
  }
1041
- function gi(t) {
1042
- return ye = "", t;
1041
+ function mi(t) {
1042
+ return xe = "", t;
1043
1043
  }
1044
- function Ue(t) {
1045
- return hi(xe(G - 1, vt(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
1044
+ function We(t) {
1045
+ return Ai(Fe(J - 1, _t(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
1046
1046
  }
1047
- function Jn(t) {
1048
- for (; (C = Y()) && C < 33; )
1049
- K();
1050
- return Re(t) > 2 || Re(C) > 3 ? "" : " ";
1047
+ function Qn(t) {
1048
+ for (; (P = re()) && P < 33; )
1049
+ Y();
1050
+ return Me(t) > 2 || Me(P) > 3 ? "" : " ";
1051
1051
  }
1052
- function Xn(t, e) {
1053
- for (; --e && K() && !(C < 48 || C > 102 || C > 57 && C < 65 || C > 70 && C < 97); )
1052
+ function Zn(t, e) {
1053
+ for (; --e && Y() && !(P < 48 || P > 102 || P > 57 && P < 65 || P > 70 && P < 97); )
1054
1054
  ;
1055
- return xe(t, je() + (e < 6 && Y() == 32 && K() == 32));
1055
+ return Fe(t, He() + (e < 6 && re() == 32 && Y() == 32));
1056
1056
  }
1057
- function vt(t) {
1058
- for (; K(); )
1059
- switch (C) {
1057
+ function _t(t) {
1058
+ for (; Y(); )
1059
+ switch (P) {
1060
1060
  case t:
1061
- return G;
1061
+ return J;
1062
1062
  case 34:
1063
1063
  case 39:
1064
- t !== 34 && t !== 39 && vt(C);
1064
+ t !== 34 && t !== 39 && _t(P);
1065
1065
  break;
1066
1066
  case 40:
1067
- t === 41 && vt(t);
1067
+ t === 41 && _t(t);
1068
1068
  break;
1069
1069
  case 92:
1070
- K();
1070
+ Y();
1071
1071
  break;
1072
1072
  }
1073
- return G;
1073
+ return J;
1074
1074
  }
1075
- function Yn(t, e) {
1076
- for (; K() && t + C !== 57; )
1077
- if (t + C === 84 && Y() === 47)
1075
+ function er(t, e) {
1076
+ for (; Y() && t + P !== 57; )
1077
+ if (t + P === 84 && re() === 47)
1078
1078
  break;
1079
- return "/*" + xe(e, G - 1) + "*" + Ye(t === 47 ? t : K());
1079
+ return "/*" + Fe(e, J - 1) + "*" + nt(t === 47 ? t : Y());
1080
1080
  }
1081
- function Qn(t) {
1082
- for (; !Re(Y()); )
1083
- K();
1084
- return xe(t, G);
1081
+ function tr(t) {
1082
+ for (; !Me(re()); )
1083
+ Y();
1084
+ return Fe(t, J);
1085
1085
  }
1086
- function Zn(t) {
1087
- return gi(Ve("", null, null, null, [""], t = vi(t), 0, [0], t));
1086
+ function ir(t) {
1087
+ return mi(Je("", null, null, null, [""], t = _i(t), 0, [0], t));
1088
1088
  }
1089
- function Ve(t, e, i, n, r, o, s, a, d) {
1090
- for (var l = 0, u = 0, h = s, c = 0, f = 0, w = 0, g = 1, A = 1, y = 1, v = 0, p = "", T = r, R = o, O = n, b = p; A; )
1091
- switch (w = v, v = K()) {
1089
+ function Je(t, e, i, n, r, o, s, a, d) {
1090
+ for (var l = 0, u = 0, c = s, h = 0, f = 0, w = 0, v = 1, A = 1, y = 1, g = 0, b = "", x = r, _ = o, m = n, p = b; A; )
1091
+ switch (w = g, g = Y()) {
1092
1092
  case 40:
1093
- if (w != 108 && P(b, h - 1) == 58) {
1094
- ft(b += S(Ue(v), "&", "&\f"), "&\f") != -1 && (y = -1);
1093
+ if (w != 108 && F(p, c - 1) == 58) {
1094
+ pt(p += I(We(g), "&", "&\f"), "&\f") != -1 && (y = -1);
1095
1095
  break;
1096
1096
  }
1097
1097
  case 34:
1098
1098
  case 39:
1099
1099
  case 91:
1100
- b += Ue(v);
1100
+ p += We(g);
1101
1101
  break;
1102
1102
  case 9:
1103
1103
  case 10:
1104
1104
  case 13:
1105
1105
  case 32:
1106
- b += Jn(w);
1106
+ p += Qn(w);
1107
1107
  break;
1108
1108
  case 92:
1109
- b += Xn(je() - 1, 7);
1109
+ p += Zn(He() - 1, 7);
1110
1110
  continue;
1111
1111
  case 47:
1112
- switch (Y()) {
1112
+ switch (re()) {
1113
1113
  case 42:
1114
1114
  case 47:
1115
- $e(er(Yn(K(), je()), e, i), d);
1115
+ qe(nr(er(Y(), He()), e, i), d);
1116
1116
  break;
1117
1117
  default:
1118
- b += "/";
1118
+ p += "/";
1119
1119
  }
1120
1120
  break;
1121
- case 123 * g:
1122
- a[l++] = X(b) * y;
1123
- case 125 * g:
1121
+ case 123 * v:
1122
+ a[l++] = ne(p) * y;
1123
+ case 125 * v:
1124
1124
  case 59:
1125
1125
  case 0:
1126
- switch (v) {
1126
+ switch (g) {
1127
1127
  case 0:
1128
1128
  case 125:
1129
1129
  A = 0;
1130
1130
  case 59 + u:
1131
- y == -1 && (b = S(b, /\f/g, "")), f > 0 && X(b) - h && $e(f > 32 ? jt(b + ";", n, i, h - 1) : jt(S(b, " ", "") + ";", n, i, h - 2), d);
1131
+ y == -1 && (p = I(p, /\f/g, "")), f > 0 && ne(p) - c && qe(f > 32 ? Kt(p + ";", n, i, c - 1) : Kt(I(p, " ", "") + ";", n, i, c - 2), d);
1132
1132
  break;
1133
1133
  case 59:
1134
- b += ";";
1134
+ p += ";";
1135
1135
  default:
1136
- if ($e(O = Ft(b, e, i, l, u, r, a, p, T = [], R = [], h), o), v === 123)
1136
+ if (qe(m = zt(p, e, i, l, u, r, a, b, x = [], _ = [], c), o), g === 123)
1137
1137
  if (u === 0)
1138
- Ve(b, e, O, O, T, o, h, a, R);
1138
+ Je(p, e, m, m, x, o, c, a, _);
1139
1139
  else
1140
- switch (c === 99 && P(b, 3) === 110 ? 100 : c) {
1140
+ switch (h === 99 && F(p, 3) === 110 ? 100 : h) {
1141
1141
  case 100:
1142
1142
  case 108:
1143
1143
  case 109:
1144
1144
  case 115:
1145
- Ve(t, O, O, n && $e(Ft(t, O, O, 0, 0, r, a, p, r, T = [], h), R), r, R, h, a, n ? T : R);
1145
+ Je(t, m, m, n && qe(zt(t, m, m, 0, 0, r, a, b, r, x = [], c), _), r, _, c, a, n ? x : _);
1146
1146
  break;
1147
1147
  default:
1148
- Ve(b, O, O, O, [""], R, 0, a, R);
1148
+ Je(p, m, m, m, [""], _, 0, a, _);
1149
1149
  }
1150
1150
  }
1151
- l = u = f = 0, g = y = 1, p = b = "", h = s;
1151
+ l = u = f = 0, v = y = 1, b = p = "", c = s;
1152
1152
  break;
1153
1153
  case 58:
1154
- h = 1 + X(b), f = w;
1154
+ c = 1 + ne(p), f = w;
1155
1155
  default:
1156
- if (g < 1) {
1157
- if (v == 123)
1158
- --g;
1159
- else if (v == 125 && g++ == 0 && Wn() == 125)
1156
+ if (v < 1) {
1157
+ if (g == 123)
1158
+ --v;
1159
+ else if (g == 125 && v++ == 0 && Yn() == 125)
1160
1160
  continue;
1161
1161
  }
1162
- switch (b += Ye(v), v * g) {
1162
+ switch (p += nt(g), g * v) {
1163
1163
  case 38:
1164
- y = u > 0 ? 1 : (b += "\f", -1);
1164
+ y = u > 0 ? 1 : (p += "\f", -1);
1165
1165
  break;
1166
1166
  case 44:
1167
- a[l++] = (X(b) - 1) * y, y = 1;
1167
+ a[l++] = (ne(p) - 1) * y, y = 1;
1168
1168
  break;
1169
1169
  case 64:
1170
- Y() === 45 && (b += Ue(K())), c = Y(), u = h = X(p = b += Qn(je())), v++;
1170
+ re() === 45 && (p += We(Y())), h = re(), u = c = ne(b = p += tr(He())), g++;
1171
1171
  break;
1172
1172
  case 45:
1173
- w === 45 && X(b) == 2 && (g = 0);
1173
+ w === 45 && ne(p) == 2 && (v = 0);
1174
1174
  }
1175
1175
  }
1176
1176
  return o;
1177
1177
  }
1178
- function Ft(t, e, i, n, r, o, s, a, d, l, u) {
1179
- for (var h = r - 1, c = r === 0 ? o : [""], f = mt(c), w = 0, g = 0, A = 0; w < n; ++w)
1180
- for (var y = 0, v = Ie(t, h + 1, h = Vn(g = s[w])), p = t; y < f; ++y)
1181
- (p = hi(g > 0 ? c[y] + " " + v : S(v, /&\f/g, c[y]))) && (d[A++] = p);
1182
- return Ze(t, e, i, r === 0 ? bt : a, d, l, u);
1178
+ function zt(t, e, i, n, r, o, s, a, d, l, u) {
1179
+ for (var c = r - 1, h = r === 0 ? o : [""], f = Ot(h), w = 0, v = 0, A = 0; w < n; ++w)
1180
+ for (var y = 0, g = Be(t, c + 1, c = zn(v = s[w])), b = t; y < f; ++y)
1181
+ (b = Ai(v > 0 ? h[y] + " " + g : I(g, /&\f/g, h[y]))) && (d[A++] = b);
1182
+ return ot(t, e, i, r === 0 ? xt : a, d, l, u);
1183
1183
  }
1184
- function er(t, e, i) {
1185
- return Ze(t, e, i, ui, Ye(Hn()), Ie(t, 2, -2), 0);
1184
+ function nr(t, e, i) {
1185
+ return ot(t, e, i, wi, nt(Xn()), Be(t, 2, -2), 0);
1186
1186
  }
1187
- function jt(t, e, i, n) {
1188
- return Ze(t, e, i, _t, Ie(t, 0, n), Ie(t, n + 1, -1), n);
1187
+ function Kt(t, e, i, n) {
1188
+ return ot(t, e, i, Rt, Be(t, 0, n), Be(t, n + 1, -1), n);
1189
1189
  }
1190
- function fe(t, e) {
1191
- for (var i = "", n = mt(t), r = 0; r < n; r++)
1190
+ function Se(t, e) {
1191
+ for (var i = "", n = Ot(t), r = 0; r < n; r++)
1192
1192
  i += e(t[r], r, t, e) || "";
1193
1193
  return i;
1194
1194
  }
1195
- function tr(t, e, i, n) {
1195
+ function rr(t, e, i, n) {
1196
1196
  switch (t.type) {
1197
- case Un:
1197
+ case qn:
1198
1198
  if (t.children.length)
1199
1199
  break;
1200
- case jn:
1201
- case _t:
1200
+ case Gn:
1201
+ case Rt:
1202
1202
  return t.return = t.return || t.value;
1203
- case ui:
1203
+ case wi:
1204
1204
  return "";
1205
- case ci:
1206
- return t.return = t.value + "{" + fe(t.children, n) + "}";
1207
- case bt:
1205
+ case bi:
1206
+ return t.return = t.value + "{" + Se(t.children, n) + "}";
1207
+ case xt:
1208
1208
  t.value = t.props.join(",");
1209
1209
  }
1210
- return X(i = fe(t.children, n)) ? t.return = t.value + "{" + i + "}" : "";
1210
+ return ne(i = Se(t.children, n)) ? t.return = t.value + "{" + i + "}" : "";
1211
1211
  }
1212
- function ir(t) {
1213
- var e = mt(t);
1212
+ function or(t) {
1213
+ var e = Ot(t);
1214
1214
  return function(i, n, r, o) {
1215
1215
  for (var s = "", a = 0; a < e; a++)
1216
1216
  s += t[a](i, n, r, o) || "";
1217
1217
  return s;
1218
1218
  };
1219
1219
  }
1220
- function nr(t) {
1220
+ function sr(t) {
1221
1221
  return function(e) {
1222
1222
  e.root || (e = e.return) && t(e);
1223
1223
  };
1224
1224
  }
1225
- function rr(t) {
1225
+ function ar(t) {
1226
1226
  var e = /* @__PURE__ */ Object.create(null);
1227
1227
  return function(i) {
1228
1228
  return e[i] === void 0 && (e[i] = t(i)), e[i];
1229
1229
  };
1230
1230
  }
1231
- var or = function(e, i, n) {
1232
- for (var r = 0, o = 0; r = o, o = Y(), r === 38 && o === 12 && (i[n] = 1), !Re(o); )
1233
- K();
1234
- return xe(e, G);
1235
- }, sr = function(e, i) {
1231
+ var dr = function(e, i, n) {
1232
+ for (var r = 0, o = 0; r = o, o = re(), r === 38 && o === 12 && (i[n] = 1), !Me(o); )
1233
+ Y();
1234
+ return Fe(e, J);
1235
+ }, lr = function(e, i) {
1236
1236
  var n = -1, r = 44;
1237
1237
  do
1238
- switch (Re(r)) {
1238
+ switch (Me(r)) {
1239
1239
  case 0:
1240
- r === 38 && Y() === 12 && (i[n] = 1), e[n] += or(G - 1, i, n);
1240
+ r === 38 && re() === 12 && (i[n] = 1), e[n] += dr(J - 1, i, n);
1241
1241
  break;
1242
1242
  case 2:
1243
- e[n] += Ue(r);
1243
+ e[n] += We(r);
1244
1244
  break;
1245
1245
  case 4:
1246
1246
  if (r === 44) {
1247
- e[++n] = Y() === 58 ? "&\f" : "", i[n] = e[n].length;
1247
+ e[++n] = re() === 58 ? "&\f" : "", i[n] = e[n].length;
1248
1248
  break;
1249
1249
  }
1250
1250
  default:
1251
- e[n] += Ye(r);
1251
+ e[n] += nt(r);
1252
1252
  }
1253
- while (r = K());
1253
+ while (r = Y());
1254
1254
  return e;
1255
- }, ar = function(e, i) {
1256
- return gi(sr(vi(e), i));
1257
- }, Ut = /* @__PURE__ */ new WeakMap(), dr = function(e) {
1255
+ }, ur = function(e, i) {
1256
+ return mi(lr(_i(e), i));
1257
+ }, Ht = /* @__PURE__ */ new WeakMap(), cr = function(e) {
1258
1258
  if (!(e.type !== "rule" || !e.parent || // positive .length indicates that this rule contains pseudo
1259
1259
  // negative .length indicates that this rule has been already prefixed
1260
1260
  e.length < 1)) {
1261
1261
  for (var i = e.value, n = e.parent, r = e.column === n.column && e.line === n.line; n.type !== "rule"; )
1262
1262
  if (n = n.parent, !n)
1263
1263
  return;
1264
- if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !Ut.get(n)) && !r) {
1265
- Ut.set(e, !0);
1266
- for (var o = [], s = ar(i, o), a = n.props, d = 0, l = 0; d < s.length; d++)
1264
+ if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !Ht.get(n)) && !r) {
1265
+ Ht.set(e, !0);
1266
+ for (var o = [], s = ur(i, o), a = n.props, d = 0, l = 0; d < s.length; d++)
1267
1267
  for (var u = 0; u < a.length; u++, l++)
1268
1268
  e.props[l] = o[d] ? s[d].replace(/&\f/g, a[u]) : a[u] + " " + s[d];
1269
1269
  }
1270
1270
  }
1271
- }, lr = function(e) {
1271
+ }, hr = function(e) {
1272
1272
  if (e.type === "decl") {
1273
1273
  var i = e.value;
1274
1274
  // charcode for l
@@ -1276,10 +1276,10 @@ var or = function(e, i, n) {
1276
1276
  i.charCodeAt(2) === 98 && (e.return = "", e.value = "");
1277
1277
  }
1278
1278
  };
1279
- function yi(t, e) {
1280
- switch (qn(t, e)) {
1279
+ function Si(t, e) {
1280
+ switch (Hn(t, e)) {
1281
1281
  case 5103:
1282
- return m + "print-" + t + t;
1282
+ return k + "print-" + t + t;
1283
1283
  case 5737:
1284
1284
  case 4201:
1285
1285
  case 3177:
@@ -1305,44 +1305,44 @@ function yi(t, e) {
1305
1305
  case 5365:
1306
1306
  case 5621:
1307
1307
  case 3829:
1308
- return m + t + t;
1308
+ return k + t + t;
1309
1309
  case 5349:
1310
1310
  case 4246:
1311
1311
  case 4810:
1312
1312
  case 6968:
1313
1313
  case 2756:
1314
- return m + t + ze + t + B + t + t;
1314
+ return k + t + Ze + t + V + t + t;
1315
1315
  case 6828:
1316
1316
  case 4268:
1317
- return m + t + B + t + t;
1317
+ return k + t + V + t + t;
1318
1318
  case 6165:
1319
- return m + t + B + "flex-" + t + t;
1319
+ return k + t + V + "flex-" + t + t;
1320
1320
  case 5187:
1321
- return m + t + S(t, /(\w+).+(:[^]+)/, m + "box-$1$2" + B + "flex-$1$2") + t;
1321
+ return k + t + I(t, /(\w+).+(:[^]+)/, k + "box-$1$2" + V + "flex-$1$2") + t;
1322
1322
  case 5443:
1323
- return m + t + B + "flex-item-" + S(t, /flex-|-self/, "") + t;
1323
+ return k + t + V + "flex-item-" + I(t, /flex-|-self/, "") + t;
1324
1324
  case 4675:
1325
- return m + t + B + "flex-line-pack" + S(t, /align-content|flex-|-self/, "") + t;
1325
+ return k + t + V + "flex-line-pack" + I(t, /align-content|flex-|-self/, "") + t;
1326
1326
  case 5548:
1327
- return m + t + B + S(t, "shrink", "negative") + t;
1327
+ return k + t + V + I(t, "shrink", "negative") + t;
1328
1328
  case 5292:
1329
- return m + t + B + S(t, "basis", "preferred-size") + t;
1329
+ return k + t + V + I(t, "basis", "preferred-size") + t;
1330
1330
  case 6060:
1331
- return m + "box-" + S(t, "-grow", "") + m + t + B + S(t, "grow", "positive") + t;
1331
+ return k + "box-" + I(t, "-grow", "") + k + t + V + I(t, "grow", "positive") + t;
1332
1332
  case 4554:
1333
- return m + S(t, /([^-])(transform)/g, "$1" + m + "$2") + t;
1333
+ return k + I(t, /([^-])(transform)/g, "$1" + k + "$2") + t;
1334
1334
  case 6187:
1335
- return S(S(S(t, /(zoom-|grab)/, m + "$1"), /(image-set)/, m + "$1"), t, "") + t;
1335
+ return I(I(I(t, /(zoom-|grab)/, k + "$1"), /(image-set)/, k + "$1"), t, "") + t;
1336
1336
  case 5495:
1337
1337
  case 3959:
1338
- return S(t, /(image-set\([^]*)/, m + "$1$`$1");
1338
+ return I(t, /(image-set\([^]*)/, k + "$1$`$1");
1339
1339
  case 4968:
1340
- return S(S(t, /(.+:)(flex-)?(.*)/, m + "box-pack:$3" + B + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + m + t + t;
1340
+ return I(I(t, /(.+:)(flex-)?(.*)/, k + "box-pack:$3" + V + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + k + t + t;
1341
1341
  case 4095:
1342
1342
  case 3583:
1343
1343
  case 4068:
1344
1344
  case 2532:
1345
- return S(t, /(.+)-inline(.+)/, m + "$1$2") + t;
1345
+ return I(t, /(.+)-inline(.+)/, k + "$1$2") + t;
1346
1346
  case 8116:
1347
1347
  case 7059:
1348
1348
  case 5753:
@@ -1355,106 +1355,106 @@ function yi(t, e) {
1355
1355
  case 5789:
1356
1356
  case 5021:
1357
1357
  case 4765:
1358
- if (X(t) - 1 - e > 6)
1359
- switch (P(t, e + 1)) {
1358
+ if (ne(t) - 1 - e > 6)
1359
+ switch (F(t, e + 1)) {
1360
1360
  case 109:
1361
- if (P(t, e + 4) !== 45)
1361
+ if (F(t, e + 4) !== 45)
1362
1362
  break;
1363
1363
  case 102:
1364
- return S(t, /(.+:)(.+)-([^]+)/, "$1" + m + "$2-$3$1" + ze + (P(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
1364
+ return I(t, /(.+:)(.+)-([^]+)/, "$1" + k + "$2-$3$1" + Ze + (F(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
1365
1365
  case 115:
1366
- return ~ft(t, "stretch") ? yi(S(t, "stretch", "fill-available"), e) + t : t;
1366
+ return ~pt(t, "stretch") ? Si(I(t, "stretch", "fill-available"), e) + t : t;
1367
1367
  }
1368
1368
  break;
1369
1369
  case 4949:
1370
- if (P(t, e + 1) !== 115)
1370
+ if (F(t, e + 1) !== 115)
1371
1371
  break;
1372
1372
  case 6444:
1373
- switch (P(t, X(t) - 3 - (~ft(t, "!important") && 10))) {
1373
+ switch (F(t, ne(t) - 3 - (~pt(t, "!important") && 10))) {
1374
1374
  case 107:
1375
- return S(t, ":", ":" + m) + t;
1375
+ return I(t, ":", ":" + k) + t;
1376
1376
  case 101:
1377
- return S(t, /(.+:)([^;!]+)(;|!.+)?/, "$1" + m + (P(t, 14) === 45 ? "inline-" : "") + "box$3$1" + m + "$2$3$1" + B + "$2box$3") + t;
1377
+ return I(t, /(.+:)([^;!]+)(;|!.+)?/, "$1" + k + (F(t, 14) === 45 ? "inline-" : "") + "box$3$1" + k + "$2$3$1" + V + "$2box$3") + t;
1378
1378
  }
1379
1379
  break;
1380
1380
  case 5936:
1381
- switch (P(t, e + 11)) {
1381
+ switch (F(t, e + 11)) {
1382
1382
  case 114:
1383
- return m + t + B + S(t, /[svh]\w+-[tblr]{2}/, "tb") + t;
1383
+ return k + t + V + I(t, /[svh]\w+-[tblr]{2}/, "tb") + t;
1384
1384
  case 108:
1385
- return m + t + B + S(t, /[svh]\w+-[tblr]{2}/, "tb-rl") + t;
1385
+ return k + t + V + I(t, /[svh]\w+-[tblr]{2}/, "tb-rl") + t;
1386
1386
  case 45:
1387
- return m + t + B + S(t, /[svh]\w+-[tblr]{2}/, "lr") + t;
1387
+ return k + t + V + I(t, /[svh]\w+-[tblr]{2}/, "lr") + t;
1388
1388
  }
1389
- return m + t + B + t + t;
1389
+ return k + t + V + t + t;
1390
1390
  }
1391
1391
  return t;
1392
1392
  }
1393
- var ur = function(e, i, n, r) {
1393
+ var fr = function(e, i, n, r) {
1394
1394
  if (e.length > -1 && !e.return)
1395
1395
  switch (e.type) {
1396
- case _t:
1397
- e.return = yi(e.value, e.length);
1396
+ case Rt:
1397
+ e.return = Si(e.value, e.length);
1398
1398
  break;
1399
- case ci:
1400
- return fe([me(e, {
1401
- value: S(e.value, "@", "@" + m)
1399
+ case bi:
1400
+ return Se([De(e, {
1401
+ value: I(e.value, "@", "@" + k)
1402
1402
  })], r);
1403
- case bt:
1403
+ case xt:
1404
1404
  if (e.length)
1405
- return zn(e.props, function(o) {
1406
- switch (Kn(o, /(::plac\w+|:read-\w+)/)) {
1405
+ return Jn(e.props, function(o) {
1406
+ switch (Wn(o, /(::plac\w+|:read-\w+)/)) {
1407
1407
  case ":read-only":
1408
1408
  case ":read-write":
1409
- return fe([me(e, {
1410
- props: [S(o, /:(read-\w+)/, ":" + ze + "$1")]
1409
+ return Se([De(e, {
1410
+ props: [I(o, /:(read-\w+)/, ":" + Ze + "$1")]
1411
1411
  })], r);
1412
1412
  case "::placeholder":
1413
- return fe([me(e, {
1414
- props: [S(o, /:(plac\w+)/, ":" + m + "input-$1")]
1415
- }), me(e, {
1416
- props: [S(o, /:(plac\w+)/, ":" + ze + "$1")]
1417
- }), me(e, {
1418
- props: [S(o, /:(plac\w+)/, B + "input-$1")]
1413
+ return Se([De(e, {
1414
+ props: [I(o, /:(plac\w+)/, ":" + k + "input-$1")]
1415
+ }), De(e, {
1416
+ props: [I(o, /:(plac\w+)/, ":" + Ze + "$1")]
1417
+ }), De(e, {
1418
+ props: [I(o, /:(plac\w+)/, V + "input-$1")]
1419
1419
  })], r);
1420
1420
  }
1421
1421
  return "";
1422
1422
  });
1423
1423
  }
1424
- }, cr = [ur], hr = function(e) {
1424
+ }, vr = [fr], yr = function(e) {
1425
1425
  var i = e.key;
1426
1426
  if (i === "css") {
1427
1427
  var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
1428
- Array.prototype.forEach.call(n, function(g) {
1429
- var A = g.getAttribute("data-emotion");
1430
- A.indexOf(" ") !== -1 && (document.head.appendChild(g), g.setAttribute("data-s", ""));
1428
+ Array.prototype.forEach.call(n, function(v) {
1429
+ var A = v.getAttribute("data-emotion");
1430
+ A.indexOf(" ") !== -1 && (document.head.appendChild(v), v.setAttribute("data-s", ""));
1431
1431
  });
1432
1432
  }
1433
- var r = e.stylisPlugins || cr, o = {}, s, a = [];
1433
+ var r = e.stylisPlugins || vr, o = {}, s, a = [];
1434
1434
  s = e.container || document.head, Array.prototype.forEach.call(
1435
1435
  // this means we will ignore elements which don't have a space in them which
1436
1436
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
1437
1437
  document.querySelectorAll('style[data-emotion^="' + i + ' "]'),
1438
- function(g) {
1439
- for (var A = g.getAttribute("data-emotion").split(" "), y = 1; y < A.length; y++)
1438
+ function(v) {
1439
+ for (var A = v.getAttribute("data-emotion").split(" "), y = 1; y < A.length; y++)
1440
1440
  o[A[y]] = !0;
1441
- a.push(g);
1441
+ a.push(v);
1442
1442
  }
1443
1443
  );
1444
- var d, l = [dr, lr];
1444
+ var d, l = [cr, hr];
1445
1445
  {
1446
- var u, h = [tr, nr(function(g) {
1447
- u.insert(g);
1448
- })], c = ir(l.concat(r, h)), f = function(A) {
1449
- return fe(Zn(A), c);
1446
+ var u, c = [rr, sr(function(v) {
1447
+ u.insert(v);
1448
+ })], h = or(l.concat(r, c)), f = function(A) {
1449
+ return Se(ir(A), h);
1450
1450
  };
1451
- d = function(A, y, v, p) {
1452
- u = v, f(A ? A + "{" + y.styles + "}" : y.styles), p && (w.inserted[y.name] = !0);
1451
+ d = function(A, y, g, b) {
1452
+ u = g, f(A ? A + "{" + y.styles + "}" : y.styles), b && (w.inserted[y.name] = !0);
1453
1453
  };
1454
1454
  }
1455
1455
  var w = {
1456
1456
  key: i,
1457
- sheet: new Fn({
1457
+ sheet: new Vn({
1458
1458
  key: i,
1459
1459
  container: s,
1460
1460
  nonce: e.nonce,
@@ -1469,7 +1469,7 @@ var ur = function(e, i, n, r) {
1469
1469
  };
1470
1470
  return w.sheet.hydrate(a), w;
1471
1471
  };
1472
- function fr(t) {
1472
+ function gr(t) {
1473
1473
  for (var e = 0, i, n = 0, r = t.length; r >= 4; ++n, r -= 4)
1474
1474
  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): */
1475
1475
  (i & 65535) * 1540483477 + ((i >>> 16) * 59797 << 16), i ^= /* k >>> r: */
@@ -1488,7 +1488,7 @@ function fr(t) {
1488
1488
  return e ^= e >>> 13, e = /* Math.imul(h, m): */
1489
1489
  (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
1490
1490
  }
1491
- var vr = {
1491
+ var wr = {
1492
1492
  animationIterationCount: 1,
1493
1493
  aspectRatio: 1,
1494
1494
  borderImageOutset: 1,
@@ -1537,28 +1537,28 @@ var vr = {
1537
1537
  strokeMiterlimit: 1,
1538
1538
  strokeOpacity: 1,
1539
1539
  strokeWidth: 1
1540
- }, gr = /[A-Z]|^ms/g, yr = /_EMO_([^_]+?)_([^]*?)_EMO_/g, wi = function(e) {
1540
+ }, br = /[A-Z]|^ms/g, Ar = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Ei = function(e) {
1541
1541
  return e.charCodeAt(1) === 45;
1542
- }, Vt = function(e) {
1542
+ }, Wt = function(e) {
1543
1543
  return e != null && typeof e != "boolean";
1544
- }, it = /* @__PURE__ */ rr(function(t) {
1545
- return wi(t) ? t : t.replace(gr, "-$&").toLowerCase();
1546
- }), Gt = function(e, i) {
1544
+ }, dt = /* @__PURE__ */ ar(function(t) {
1545
+ return Ei(t) ? t : t.replace(br, "-$&").toLowerCase();
1546
+ }), Jt = function(e, i) {
1547
1547
  switch (e) {
1548
1548
  case "animation":
1549
1549
  case "animationName":
1550
1550
  if (typeof i == "string")
1551
- return i.replace(yr, function(n, r, o) {
1552
- return ne = {
1551
+ return i.replace(Ar, function(n, r, o) {
1552
+ return ce = {
1553
1553
  name: r,
1554
1554
  styles: o,
1555
- next: ne
1555
+ next: ce
1556
1556
  }, r;
1557
1557
  });
1558
1558
  }
1559
- return vr[e] !== 1 && !wi(e) && typeof i == "number" && i !== 0 ? i + "px" : i;
1559
+ return wr[e] !== 1 && !Ei(e) && typeof i == "number" && i !== 0 ? i + "px" : i;
1560
1560
  };
1561
- function He(t, e, i) {
1561
+ function et(t, e, i) {
1562
1562
  if (i == null)
1563
1563
  return "";
1564
1564
  var n = i;
@@ -1570,25 +1570,25 @@ function He(t, e, i) {
1570
1570
  case "object": {
1571
1571
  var r = i;
1572
1572
  if (r.anim === 1)
1573
- return ne = {
1573
+ return ce = {
1574
1574
  name: r.name,
1575
1575
  styles: r.styles,
1576
- next: ne
1576
+ next: ce
1577
1577
  }, r.name;
1578
1578
  var o = i;
1579
1579
  if (o.styles !== void 0) {
1580
1580
  var s = o.next;
1581
1581
  if (s !== void 0)
1582
1582
  for (; s !== void 0; )
1583
- ne = {
1583
+ ce = {
1584
1584
  name: s.name,
1585
1585
  styles: s.styles,
1586
- next: ne
1586
+ next: ce
1587
1587
  }, s = s.next;
1588
1588
  var a = o.styles + ";";
1589
1589
  return a;
1590
1590
  }
1591
- return wr(t, e, i);
1591
+ return pr(t, e, i);
1592
1592
  }
1593
1593
  }
1594
1594
  var d = i;
@@ -1597,26 +1597,26 @@ function He(t, e, i) {
1597
1597
  var l = e[d];
1598
1598
  return l !== void 0 ? l : d;
1599
1599
  }
1600
- function wr(t, e, i) {
1600
+ function pr(t, e, i) {
1601
1601
  var n = "";
1602
1602
  if (Array.isArray(i))
1603
1603
  for (var r = 0; r < i.length; r++)
1604
- n += He(t, e, i[r]) + ";";
1604
+ n += et(t, e, i[r]) + ";";
1605
1605
  else
1606
1606
  for (var o in i) {
1607
1607
  var s = i[o];
1608
1608
  if (typeof s != "object") {
1609
1609
  var a = s;
1610
- e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" : Vt(a) && (n += it(o) + ":" + Gt(o, a) + ";");
1610
+ e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" : Wt(a) && (n += dt(o) + ":" + Jt(o, a) + ";");
1611
1611
  } else if (Array.isArray(s) && typeof s[0] == "string" && (e == null || e[s[0]] === void 0))
1612
1612
  for (var d = 0; d < s.length; d++)
1613
- Vt(s[d]) && (n += it(o) + ":" + Gt(o, s[d]) + ";");
1613
+ Wt(s[d]) && (n += dt(o) + ":" + Jt(o, s[d]) + ";");
1614
1614
  else {
1615
- var l = He(t, e, s);
1615
+ var l = et(t, e, s);
1616
1616
  switch (o) {
1617
1617
  case "animation":
1618
1618
  case "animationName": {
1619
- n += it(o) + ":" + l + ";";
1619
+ n += dt(o) + ":" + l + ";";
1620
1620
  break;
1621
1621
  }
1622
1622
  default:
@@ -1626,41 +1626,41 @@ function wr(t, e, i) {
1626
1626
  }
1627
1627
  return n;
1628
1628
  }
1629
- var qt = /label:\s*([^\s;{]+)\s*(;|$)/g, ne;
1630
- function nt(t, e, i) {
1629
+ var Xt = /label:\s*([^\s;{]+)\s*(;|$)/g, ce;
1630
+ function lt(t, e, i) {
1631
1631
  if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
1632
1632
  return t[0];
1633
1633
  var n = !0, r = "";
1634
- ne = void 0;
1634
+ ce = void 0;
1635
1635
  var o = t[0];
1636
1636
  if (o == null || o.raw === void 0)
1637
- n = !1, r += He(i, e, o);
1637
+ n = !1, r += et(i, e, o);
1638
1638
  else {
1639
1639
  var s = o;
1640
1640
  r += s[0];
1641
1641
  }
1642
1642
  for (var a = 1; a < t.length; a++)
1643
- if (r += He(i, e, t[a]), n) {
1643
+ if (r += et(i, e, t[a]), n) {
1644
1644
  var d = o;
1645
1645
  r += d[a];
1646
1646
  }
1647
- qt.lastIndex = 0;
1648
- for (var l = "", u; (u = qt.exec(r)) !== null; )
1647
+ Xt.lastIndex = 0;
1648
+ for (var l = "", u; (u = Xt.exec(r)) !== null; )
1649
1649
  l += "-" + u[1];
1650
- var h = fr(r) + l;
1650
+ var c = gr(r) + l;
1651
1651
  return {
1652
- name: h,
1652
+ name: c,
1653
1653
  styles: r,
1654
- next: ne
1654
+ next: ce
1655
1655
  };
1656
1656
  }
1657
- function Ai(t, e, i) {
1657
+ function ki(t, e, i) {
1658
1658
  var n = "";
1659
1659
  return i.split(" ").forEach(function(r) {
1660
1660
  t[r] !== void 0 ? e.push(t[r] + ";") : r && (n += r + " ");
1661
1661
  }), n;
1662
1662
  }
1663
- var Ar = function(e, i, n) {
1663
+ var _r = function(e, i, n) {
1664
1664
  var r = e.key + "-" + i.name;
1665
1665
  // we only need to add the styles to the registered cache if the
1666
1666
  // class name could be used further down
@@ -1668,8 +1668,8 @@ var Ar = function(e, i, n) {
1668
1668
  // so we don't have to add it to registered cache.
1669
1669
  // this improves memory usage since we can avoid storing the whole style string
1670
1670
  e.registered[r] === void 0 && (e.registered[r] = i.styles);
1671
- }, pr = function(e, i, n) {
1672
- Ar(e, i);
1671
+ }, mr = function(e, i, n) {
1672
+ _r(e, i);
1673
1673
  var r = e.key + "-" + i.name;
1674
1674
  if (e.inserted[i.name] === void 0) {
1675
1675
  var o = i;
@@ -1678,41 +1678,41 @@ var Ar = function(e, i, n) {
1678
1678
  while (o !== void 0);
1679
1679
  }
1680
1680
  };
1681
- function Kt(t, e) {
1681
+ function Yt(t, e) {
1682
1682
  if (t.inserted[e.name] === void 0)
1683
1683
  return t.insert("", e, t.sheet, !0);
1684
1684
  }
1685
- function zt(t, e, i) {
1686
- var n = [], r = Ai(t, n, i);
1685
+ function Qt(t, e, i) {
1686
+ var n = [], r = ki(t, n, i);
1687
1687
  return n.length < 2 ? i : r + e(n);
1688
1688
  }
1689
- var br = function(e) {
1690
- var i = hr(e);
1689
+ var Sr = function(e) {
1690
+ var i = yr(e);
1691
1691
  i.sheet.speedy = function(a) {
1692
1692
  this.isSpeedy = a;
1693
1693
  }, i.compat = !0;
1694
1694
  var n = function() {
1695
1695
  for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
1696
1696
  l[u] = arguments[u];
1697
- var h = nt(l, i.registered, void 0);
1698
- return pr(i, h), i.key + "-" + h.name;
1697
+ var c = lt(l, i.registered, void 0);
1698
+ return mr(i, c), i.key + "-" + c.name;
1699
1699
  }, r = function() {
1700
1700
  for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
1701
1701
  l[u] = arguments[u];
1702
- var h = nt(l, i.registered), c = "animation-" + h.name;
1703
- return Kt(i, {
1704
- name: h.name,
1705
- styles: "@keyframes " + c + "{" + h.styles + "}"
1706
- }), c;
1702
+ var c = lt(l, i.registered), h = "animation-" + c.name;
1703
+ return Yt(i, {
1704
+ name: c.name,
1705
+ styles: "@keyframes " + h + "{" + c.styles + "}"
1706
+ }), h;
1707
1707
  }, o = function() {
1708
1708
  for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
1709
1709
  l[u] = arguments[u];
1710
- var h = nt(l, i.registered);
1711
- Kt(i, h);
1710
+ var c = lt(l, i.registered);
1711
+ Yt(i, c);
1712
1712
  }, s = function() {
1713
1713
  for (var d = arguments.length, l = new Array(d), u = 0; u < d; u++)
1714
1714
  l[u] = arguments[u];
1715
- return zt(i.registered, n, _r(l));
1715
+ return Qt(i.registered, n, Er(l));
1716
1716
  };
1717
1717
  return {
1718
1718
  css: n,
@@ -1729,10 +1729,10 @@ var br = function(e) {
1729
1729
  },
1730
1730
  sheet: i.sheet,
1731
1731
  cache: i,
1732
- getRegisteredStyles: Ai.bind(null, i.registered),
1733
- merge: zt.bind(null, i.registered, n)
1732
+ getRegisteredStyles: ki.bind(null, i.registered),
1733
+ merge: Qt.bind(null, i.registered, n)
1734
1734
  };
1735
- }, _r = function t(e) {
1735
+ }, Er = function t(e) {
1736
1736
  for (var i = "", n = 0; n < e.length; n++) {
1737
1737
  var r = e[n];
1738
1738
  if (r != null) {
@@ -1757,96 +1757,96 @@ var br = function(e) {
1757
1757
  }
1758
1758
  }
1759
1759
  return i;
1760
- }, mr = br({
1760
+ }, kr = Sr({
1761
1761
  key: "css"
1762
- }), we = mr.css, gt, q, rt, Ht, Wt = 0, pi = [], D = ve, Jt = D.__b, Xt = D.__r, Yt = D.diffed, Qt = D.__c, Zt = D.unmount, ei = D.__;
1763
- function Sr(t, e) {
1764
- D.__h && D.__h(q, t, Wt || e), Wt = 0;
1765
- var i = q.__H || (q.__H = { __: [], __h: [] });
1762
+ }), G = kr.css, mt, X, ut, Zt, ei = 0, Ii = [], N = Ee, ti = N.__b, ii = N.__r, ni = N.diffed, ri = N.__c, oi = N.unmount, si = N.__;
1763
+ function Ir(t, e) {
1764
+ N.__h && N.__h(X, t, ei || e), ei = 0;
1765
+ var i = X.__H || (X.__H = { __: [], __h: [] });
1766
1766
  return t >= i.__.length && i.__.push({}), i.__[t];
1767
1767
  }
1768
- function bi(t, e) {
1769
- var i = Sr(gt++, 7);
1770
- return Ir(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
1768
+ function xi(t, e) {
1769
+ var i = Ir(mt++, 7);
1770
+ return Or(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
1771
1771
  }
1772
- function Er() {
1773
- for (var t; t = pi.shift(); )
1772
+ function xr() {
1773
+ for (var t; t = Ii.shift(); )
1774
1774
  if (t.__P && t.__H)
1775
1775
  try {
1776
- t.__H.__h.forEach(Ge), t.__H.__h.forEach(yt), t.__H.__h = [];
1776
+ t.__H.__h.forEach(Xe), t.__H.__h.forEach(St), t.__H.__h = [];
1777
1777
  } catch (e) {
1778
- t.__H.__h = [], D.__e(e, t.__v);
1778
+ t.__H.__h = [], N.__e(e, t.__v);
1779
1779
  }
1780
1780
  }
1781
- D.__b = function(t) {
1782
- q = null, Jt && Jt(t);
1783
- }, D.__ = function(t, e) {
1784
- t && e.__k && e.__k.__m && (t.__m = e.__k.__m), ei && ei(t, e);
1785
- }, D.__r = function(t) {
1786
- Xt && Xt(t), gt = 0;
1787
- var e = (q = t.__c).__H;
1788
- e && (rt === q ? (e.__h = [], q.__h = [], e.__.forEach(function(i) {
1781
+ N.__b = function(t) {
1782
+ X = null, ti && ti(t);
1783
+ }, N.__ = function(t, e) {
1784
+ t && e.__k && e.__k.__m && (t.__m = e.__k.__m), si && si(t, e);
1785
+ }, N.__r = function(t) {
1786
+ ii && ii(t), mt = 0;
1787
+ var e = (X = t.__c).__H;
1788
+ e && (ut === X ? (e.__h = [], X.__h = [], e.__.forEach(function(i) {
1789
1789
  i.__N && (i.__ = i.__N), i.u = i.__N = void 0;
1790
- })) : (e.__h.forEach(Ge), e.__h.forEach(yt), e.__h = [], gt = 0)), rt = q;
1791
- }, D.diffed = function(t) {
1792
- Yt && Yt(t);
1790
+ })) : (e.__h.forEach(Xe), e.__h.forEach(St), e.__h = [], mt = 0)), ut = X;
1791
+ }, N.diffed = function(t) {
1792
+ ni && ni(t);
1793
1793
  var e = t.__c;
1794
- e && e.__H && (e.__H.__h.length && (pi.push(e) !== 1 && Ht === D.requestAnimationFrame || ((Ht = D.requestAnimationFrame) || kr)(Er)), e.__H.__.forEach(function(i) {
1794
+ e && e.__H && (e.__H.__h.length && (Ii.push(e) !== 1 && Zt === N.requestAnimationFrame || ((Zt = N.requestAnimationFrame) || Rr)(xr)), e.__H.__.forEach(function(i) {
1795
1795
  i.u && (i.__H = i.u), i.u = void 0;
1796
- })), rt = q = null;
1797
- }, D.__c = function(t, e) {
1796
+ })), ut = X = null;
1797
+ }, N.__c = function(t, e) {
1798
1798
  e.some(function(i) {
1799
1799
  try {
1800
- i.__h.forEach(Ge), i.__h = i.__h.filter(function(n) {
1801
- return !n.__ || yt(n);
1800
+ i.__h.forEach(Xe), i.__h = i.__h.filter(function(n) {
1801
+ return !n.__ || St(n);
1802
1802
  });
1803
1803
  } catch (n) {
1804
1804
  e.some(function(r) {
1805
1805
  r.__h && (r.__h = []);
1806
- }), e = [], D.__e(n, i.__v);
1806
+ }), e = [], N.__e(n, i.__v);
1807
1807
  }
1808
- }), Qt && Qt(t, e);
1809
- }, D.unmount = function(t) {
1810
- Zt && Zt(t);
1808
+ }), ri && ri(t, e);
1809
+ }, N.unmount = function(t) {
1810
+ oi && oi(t);
1811
1811
  var e, i = t.__c;
1812
1812
  i && i.__H && (i.__H.__.forEach(function(n) {
1813
1813
  try {
1814
- Ge(n);
1814
+ Xe(n);
1815
1815
  } catch (r) {
1816
1816
  e = r;
1817
1817
  }
1818
- }), i.__H = void 0, e && D.__e(e, i.__v));
1818
+ }), i.__H = void 0, e && N.__e(e, i.__v));
1819
1819
  };
1820
- var ti = typeof requestAnimationFrame == "function";
1821
- function kr(t) {
1820
+ var ai = typeof requestAnimationFrame == "function";
1821
+ function Rr(t) {
1822
1822
  var e, i = function() {
1823
- clearTimeout(n), ti && cancelAnimationFrame(e), setTimeout(t);
1823
+ clearTimeout(n), ai && cancelAnimationFrame(e), setTimeout(t);
1824
1824
  }, n = setTimeout(i, 100);
1825
- ti && (e = requestAnimationFrame(i));
1825
+ ai && (e = requestAnimationFrame(i));
1826
1826
  }
1827
- function Ge(t) {
1828
- var e = q, i = t.__c;
1829
- typeof i == "function" && (t.__c = void 0, i()), q = e;
1827
+ function Xe(t) {
1828
+ var e = X, i = t.__c;
1829
+ typeof i == "function" && (t.__c = void 0, i()), X = e;
1830
1830
  }
1831
- function yt(t) {
1832
- var e = q;
1833
- t.__c = t.__(), q = e;
1831
+ function St(t) {
1832
+ var e = X;
1833
+ t.__c = t.__(), X = e;
1834
1834
  }
1835
- function Ir(t, e) {
1835
+ function Or(t, e) {
1836
1836
  return !t || t.length !== e.length || e.some(function(i, n) {
1837
1837
  return i !== t[n];
1838
1838
  });
1839
1839
  }
1840
- var Rr = Symbol.for("preact-signals");
1841
- function et() {
1842
- if (re > 1)
1843
- re--;
1840
+ var Tr = Symbol.for("preact-signals");
1841
+ function st() {
1842
+ if (he > 1)
1843
+ he--;
1844
1844
  else {
1845
- for (var t, e = !1; Se !== void 0; ) {
1846
- var i = Se;
1847
- for (Se = void 0, wt++; i !== void 0; ) {
1845
+ for (var t, e = !1; Le !== void 0; ) {
1846
+ var i = Le;
1847
+ for (Le = void 0, Et++; i !== void 0; ) {
1848
1848
  var n = i.o;
1849
- if (i.o = void 0, i.f &= -3, !(8 & i.f) && mi(i))
1849
+ if (i.o = void 0, i.f &= -3, !(8 & i.f) && Oi(i))
1850
1850
  try {
1851
1851
  i.c();
1852
1852
  } catch (r) {
@@ -1855,102 +1855,102 @@ function et() {
1855
1855
  i = n;
1856
1856
  }
1857
1857
  }
1858
- if (wt = 0, re--, e)
1858
+ if (Et = 0, he--, e)
1859
1859
  throw t;
1860
1860
  }
1861
1861
  }
1862
- function L(t) {
1863
- if (re > 0)
1862
+ function D(t) {
1863
+ if (he > 0)
1864
1864
  return t();
1865
- re++;
1865
+ he++;
1866
1866
  try {
1867
1867
  return t();
1868
1868
  } finally {
1869
- et();
1869
+ st();
1870
1870
  }
1871
1871
  }
1872
- var k = void 0, Se = void 0, re = 0, wt = 0, We = 0;
1873
- function _i(t) {
1874
- if (k !== void 0) {
1872
+ var R = void 0, Le = void 0, he = 0, Et = 0, tt = 0;
1873
+ function Ri(t) {
1874
+ if (R !== void 0) {
1875
1875
  var e = t.n;
1876
- if (e === void 0 || e.t !== k)
1877
- return e = { i: 0, S: t, p: k.s, n: void 0, t: k, e: void 0, x: void 0, r: e }, k.s !== void 0 && (k.s.n = e), k.s = e, t.n = e, 32 & k.f && t.S(e), e;
1876
+ if (e === void 0 || e.t !== R)
1877
+ return e = { i: 0, S: t, p: R.s, n: void 0, t: R, e: void 0, x: void 0, r: e }, R.s !== void 0 && (R.s.n = e), R.s = e, t.n = e, 32 & R.f && t.S(e), e;
1878
1878
  if (e.i === -1)
1879
- return e.i = 0, e.n !== void 0 && (e.n.p = e.p, e.p !== void 0 && (e.p.n = e.n), e.p = k.s, e.n = void 0, k.s.n = e, k.s = e), e;
1879
+ return e.i = 0, e.n !== void 0 && (e.n.p = e.p, e.p !== void 0 && (e.p.n = e.n), e.p = R.s, e.n = void 0, R.s.n = e, R.s = e), e;
1880
1880
  }
1881
1881
  }
1882
- function M(t) {
1882
+ function U(t) {
1883
1883
  this.v = t, this.i = 0, this.n = void 0, this.t = void 0;
1884
1884
  }
1885
- M.prototype.brand = Rr;
1886
- M.prototype.h = function() {
1885
+ U.prototype.brand = Tr;
1886
+ U.prototype.h = function() {
1887
1887
  return !0;
1888
1888
  };
1889
- M.prototype.S = function(t) {
1889
+ U.prototype.S = function(t) {
1890
1890
  this.t !== t && t.e === void 0 && (t.x = this.t, this.t !== void 0 && (this.t.e = t), this.t = t);
1891
1891
  };
1892
- M.prototype.U = function(t) {
1892
+ U.prototype.U = function(t) {
1893
1893
  if (this.t !== void 0) {
1894
1894
  var e = t.e, i = t.x;
1895
1895
  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);
1896
1896
  }
1897
1897
  };
1898
- M.prototype.subscribe = function(t) {
1898
+ U.prototype.subscribe = function(t) {
1899
1899
  var e = this;
1900
- return Te(function() {
1901
- var i = e.value, n = k;
1902
- k = void 0;
1900
+ return Ue(function() {
1901
+ var i = e.value, n = R;
1902
+ R = void 0;
1903
1903
  try {
1904
1904
  t(i);
1905
1905
  } finally {
1906
- k = n;
1906
+ R = n;
1907
1907
  }
1908
1908
  });
1909
1909
  };
1910
- M.prototype.valueOf = function() {
1910
+ U.prototype.valueOf = function() {
1911
1911
  return this.value;
1912
1912
  };
1913
- M.prototype.toString = function() {
1913
+ U.prototype.toString = function() {
1914
1914
  return this.value + "";
1915
1915
  };
1916
- M.prototype.toJSON = function() {
1916
+ U.prototype.toJSON = function() {
1917
1917
  return this.value;
1918
1918
  };
1919
- M.prototype.peek = function() {
1920
- var t = k;
1921
- k = void 0;
1919
+ U.prototype.peek = function() {
1920
+ var t = R;
1921
+ R = void 0;
1922
1922
  try {
1923
1923
  return this.value;
1924
1924
  } finally {
1925
- k = t;
1925
+ R = t;
1926
1926
  }
1927
1927
  };
1928
- Object.defineProperty(M.prototype, "value", { get: function() {
1929
- var t = _i(this);
1928
+ Object.defineProperty(U.prototype, "value", { get: function() {
1929
+ var t = Ri(this);
1930
1930
  return t !== void 0 && (t.i = this.i), this.v;
1931
1931
  }, set: function(t) {
1932
1932
  if (t !== this.v) {
1933
- if (wt > 100)
1933
+ if (Et > 100)
1934
1934
  throw new Error("Cycle detected");
1935
- this.v = t, this.i++, We++, re++;
1935
+ this.v = t, this.i++, tt++, he++;
1936
1936
  try {
1937
1937
  for (var e = this.t; e !== void 0; e = e.x)
1938
1938
  e.t.N();
1939
1939
  } finally {
1940
- et();
1940
+ st();
1941
1941
  }
1942
1942
  }
1943
1943
  } });
1944
1944
  function E(t) {
1945
- return new M(t);
1945
+ return new U(t);
1946
1946
  }
1947
- function mi(t) {
1947
+ function Oi(t) {
1948
1948
  for (var e = t.s; e !== void 0; e = e.n)
1949
1949
  if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i)
1950
1950
  return !0;
1951
1951
  return !1;
1952
1952
  }
1953
- function Si(t) {
1953
+ function Ti(t) {
1954
1954
  for (var e = t.s; e !== void 0; e = e.n) {
1955
1955
  var i = e.S.n;
1956
1956
  if (i !== void 0 && (e.r = i), e.S.n = e, e.i = -1, e.n === void 0) {
@@ -1959,95 +1959,95 @@ function Si(t) {
1959
1959
  }
1960
1960
  }
1961
1961
  }
1962
- function Ei(t) {
1962
+ function Ci(t) {
1963
1963
  for (var e = t.s, i = void 0; e !== void 0; ) {
1964
1964
  var n = e.p;
1965
1965
  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;
1966
1966
  }
1967
1967
  t.s = i;
1968
1968
  }
1969
- function Ae(t) {
1970
- M.call(this, void 0), this.x = t, this.s = void 0, this.g = We - 1, this.f = 4;
1969
+ function Re(t) {
1970
+ U.call(this, void 0), this.x = t, this.s = void 0, this.g = tt - 1, this.f = 4;
1971
1971
  }
1972
- (Ae.prototype = new M()).h = function() {
1972
+ (Re.prototype = new U()).h = function() {
1973
1973
  if (this.f &= -3, 1 & this.f)
1974
1974
  return !1;
1975
- if ((36 & this.f) == 32 || (this.f &= -5, this.g === We))
1975
+ if ((36 & this.f) == 32 || (this.f &= -5, this.g === tt))
1976
1976
  return !0;
1977
- if (this.g = We, this.f |= 1, this.i > 0 && !mi(this))
1977
+ if (this.g = tt, this.f |= 1, this.i > 0 && !Oi(this))
1978
1978
  return this.f &= -2, !0;
1979
- var t = k;
1979
+ var t = R;
1980
1980
  try {
1981
- Si(this), k = this;
1981
+ Ti(this), R = this;
1982
1982
  var e = this.x();
1983
1983
  (16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
1984
1984
  } catch (i) {
1985
1985
  this.v = i, this.f |= 16, this.i++;
1986
1986
  }
1987
- return k = t, Ei(this), this.f &= -2, !0;
1987
+ return R = t, Ci(this), this.f &= -2, !0;
1988
1988
  };
1989
- Ae.prototype.S = function(t) {
1989
+ Re.prototype.S = function(t) {
1990
1990
  if (this.t === void 0) {
1991
1991
  this.f |= 36;
1992
1992
  for (var e = this.s; e !== void 0; e = e.n)
1993
1993
  e.S.S(e);
1994
1994
  }
1995
- M.prototype.S.call(this, t);
1995
+ U.prototype.S.call(this, t);
1996
1996
  };
1997
- Ae.prototype.U = function(t) {
1998
- if (this.t !== void 0 && (M.prototype.U.call(this, t), this.t === void 0)) {
1997
+ Re.prototype.U = function(t) {
1998
+ if (this.t !== void 0 && (U.prototype.U.call(this, t), this.t === void 0)) {
1999
1999
  this.f &= -33;
2000
2000
  for (var e = this.s; e !== void 0; e = e.n)
2001
2001
  e.S.U(e);
2002
2002
  }
2003
2003
  };
2004
- Ae.prototype.N = function() {
2004
+ Re.prototype.N = function() {
2005
2005
  if (!(2 & this.f)) {
2006
2006
  this.f |= 6;
2007
2007
  for (var t = this.t; t !== void 0; t = t.x)
2008
2008
  t.t.N();
2009
2009
  }
2010
2010
  };
2011
- Object.defineProperty(Ae.prototype, "value", { get: function() {
2011
+ Object.defineProperty(Re.prototype, "value", { get: function() {
2012
2012
  if (1 & this.f)
2013
2013
  throw new Error("Cycle detected");
2014
- var t = _i(this);
2014
+ var t = Ri(this);
2015
2015
  if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f)
2016
2016
  throw this.v;
2017
2017
  return this.v;
2018
2018
  } });
2019
- function Ee(t) {
2020
- return new Ae(t);
2019
+ function Pe(t) {
2020
+ return new Re(t);
2021
2021
  }
2022
- function ki(t) {
2022
+ function Di(t) {
2023
2023
  var e = t.u;
2024
2024
  if (t.u = void 0, typeof e == "function") {
2025
- re++;
2026
- var i = k;
2027
- k = void 0;
2025
+ he++;
2026
+ var i = R;
2027
+ R = void 0;
2028
2028
  try {
2029
2029
  e();
2030
2030
  } catch (n) {
2031
- throw t.f &= -2, t.f |= 8, St(t), n;
2031
+ throw t.f &= -2, t.f |= 8, Tt(t), n;
2032
2032
  } finally {
2033
- k = i, et();
2033
+ R = i, st();
2034
2034
  }
2035
2035
  }
2036
2036
  }
2037
- function St(t) {
2037
+ function Tt(t) {
2038
2038
  for (var e = t.s; e !== void 0; e = e.n)
2039
2039
  e.S.U(e);
2040
- t.x = void 0, t.s = void 0, ki(t);
2040
+ t.x = void 0, t.s = void 0, Di(t);
2041
2041
  }
2042
- function xr(t) {
2043
- if (k !== this)
2042
+ function Cr(t) {
2043
+ if (R !== this)
2044
2044
  throw new Error("Out-of-order effect");
2045
- Ei(this), k = t, this.f &= -2, 8 & this.f && St(this), et();
2045
+ Ci(this), R = t, this.f &= -2, 8 & this.f && Tt(this), st();
2046
2046
  }
2047
- function Oe(t) {
2047
+ function $e(t) {
2048
2048
  this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
2049
2049
  }
2050
- Oe.prototype.c = function() {
2050
+ $e.prototype.c = function() {
2051
2051
  var t = this.S();
2052
2052
  try {
2053
2053
  if (8 & this.f || this.x === void 0)
@@ -2058,21 +2058,21 @@ Oe.prototype.c = function() {
2058
2058
  t();
2059
2059
  }
2060
2060
  };
2061
- Oe.prototype.S = function() {
2061
+ $e.prototype.S = function() {
2062
2062
  if (1 & this.f)
2063
2063
  throw new Error("Cycle detected");
2064
- this.f |= 1, this.f &= -9, ki(this), Si(this), re++;
2065
- var t = k;
2066
- return k = this, xr.bind(this, t);
2064
+ this.f |= 1, this.f &= -9, Di(this), Ti(this), he++;
2065
+ var t = R;
2066
+ return R = this, Cr.bind(this, t);
2067
2067
  };
2068
- Oe.prototype.N = function() {
2069
- 2 & this.f || (this.f |= 2, this.o = Se, Se = this);
2068
+ $e.prototype.N = function() {
2069
+ 2 & this.f || (this.f |= 2, this.o = Le, Le = this);
2070
2070
  };
2071
- Oe.prototype.d = function() {
2072
- this.f |= 8, 1 & this.f || St(this);
2071
+ $e.prototype.d = function() {
2072
+ this.f |= 8, 1 & this.f || Tt(this);
2073
2073
  };
2074
- function Te(t) {
2075
- var e = new Oe(t);
2074
+ function Ue(t) {
2075
+ var e = new $e(t);
2076
2076
  try {
2077
2077
  e.c();
2078
2078
  } catch (i) {
@@ -2080,75 +2080,75 @@ function Te(t) {
2080
2080
  }
2081
2081
  return e.d.bind(e);
2082
2082
  }
2083
- var Ii, ot, Ri = [];
2084
- Te(function() {
2085
- Ii = this.N;
2083
+ var Li, ct, Pi = [];
2084
+ Ue(function() {
2085
+ Li = this.N;
2086
2086
  })();
2087
- function pe(t, e) {
2088
- ve[t] = e.bind(null, ve[t] || function() {
2087
+ function Oe(t, e) {
2088
+ Ee[t] = e.bind(null, Ee[t] || function() {
2089
2089
  });
2090
2090
  }
2091
- function Je(t) {
2092
- ot && ot(), ot = t && t.S();
2091
+ function it(t) {
2092
+ ct && ct(), ct = t && t.S();
2093
2093
  }
2094
- function xi(t) {
2095
- var e = this, i = t.data, n = Oi(i);
2094
+ function Ni(t) {
2095
+ var e = this, i = t.data, n = Bi(i);
2096
2096
  n.value = i;
2097
- var r = bi(function() {
2097
+ var r = xi(function() {
2098
2098
  for (var a = e, d = e.__v; d = d.__; )
2099
2099
  if (d.__c) {
2100
2100
  d.__c.__$f |= 4;
2101
2101
  break;
2102
2102
  }
2103
- var l = Ee(function() {
2103
+ var l = Pe(function() {
2104
2104
  var f = n.value.value;
2105
2105
  return f === 0 ? 0 : f === !0 ? "" : f || "";
2106
- }), u = Ee(function() {
2107
- return !Array.isArray(l.value) && !Vi(l.value);
2108
- }), h = Te(function() {
2109
- if (this.N = Ti, u.value) {
2106
+ }), u = Pe(function() {
2107
+ return !Array.isArray(l.value) && !Hi(l.value);
2108
+ }), c = Ue(function() {
2109
+ if (this.N = Mi, u.value) {
2110
2110
  var f = l.value;
2111
2111
  a.__v && a.__v.__e && a.__v.__e.nodeType === 3 && (a.__v.__e.data = f);
2112
2112
  }
2113
- }), c = e.__$u.d;
2113
+ }), h = e.__$u.d;
2114
2114
  return e.__$u.d = function() {
2115
- h(), c.call(this);
2115
+ c(), h.call(this);
2116
2116
  }, [u, l];
2117
2117
  }, []), o = r[0], s = r[1];
2118
2118
  return o.value ? s.peek() : s.value;
2119
2119
  }
2120
- xi.displayName = "_st";
2121
- Object.defineProperties(M.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: xi }, props: { configurable: !0, get: function() {
2120
+ Ni.displayName = "_st";
2121
+ Object.defineProperties(U.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: Ni }, props: { configurable: !0, get: function() {
2122
2122
  return { data: this };
2123
2123
  } }, __b: { configurable: !0, value: 1 } });
2124
- pe("__b", function(t, e) {
2124
+ Oe("__b", function(t, e) {
2125
2125
  if (typeof e.type == "string") {
2126
2126
  var i, n = e.props;
2127
2127
  for (var r in n)
2128
2128
  if (r !== "children") {
2129
2129
  var o = n[r];
2130
- o instanceof M && (i || (e.__np = i = {}), i[r] = o, n[r] = o.peek());
2130
+ o instanceof U && (i || (e.__np = i = {}), i[r] = o, n[r] = o.peek());
2131
2131
  }
2132
2132
  }
2133
2133
  t(e);
2134
2134
  });
2135
- pe("__r", function(t, e) {
2136
- Je();
2135
+ Oe("__r", function(t, e) {
2136
+ it();
2137
2137
  var i, n = e.__c;
2138
2138
  n && (n.__$f &= -2, (i = n.__$u) === void 0 && (n.__$u = i = function(r) {
2139
2139
  var o;
2140
- return Te(function() {
2140
+ return Ue(function() {
2141
2141
  o = this;
2142
2142
  }), o.c = function() {
2143
2143
  n.__$f |= 1, n.setState({});
2144
2144
  }, o;
2145
- }())), Je(i), t(e);
2145
+ }())), it(i), t(e);
2146
2146
  });
2147
- pe("__e", function(t, e, i, n) {
2148
- Je(), t(e, i, n);
2147
+ Oe("__e", function(t, e, i, n) {
2148
+ it(), t(e, i, n);
2149
2149
  });
2150
- pe("diffed", function(t, e) {
2151
- Je();
2150
+ Oe("diffed", function(t, e) {
2151
+ it();
2152
2152
  var i;
2153
2153
  if (typeof e.type == "string" && (i = e.__e)) {
2154
2154
  var n = e.__np, r = e.props;
@@ -2163,23 +2163,23 @@ pe("diffed", function(t, e) {
2163
2163
  o = {}, i.U = o;
2164
2164
  for (var d in n) {
2165
2165
  var l = o[d], u = n[d];
2166
- l === void 0 ? (l = Or(i, d, u, r), o[d] = l) : l.o(u, r);
2166
+ l === void 0 ? (l = Dr(i, d, u, r), o[d] = l) : l.o(u, r);
2167
2167
  }
2168
2168
  }
2169
2169
  }
2170
2170
  t(e);
2171
2171
  });
2172
- function Or(t, e, i, n) {
2172
+ function Dr(t, e, i, n) {
2173
2173
  var r = e in t && t.ownerSVGElement === void 0, o = E(i);
2174
2174
  return { o: function(s, a) {
2175
2175
  o.value = s, n = a;
2176
- }, d: Te(function() {
2177
- this.N = Ti;
2176
+ }, d: Ue(function() {
2177
+ this.N = Mi;
2178
2178
  var s = o.value.value;
2179
2179
  n[e] !== s && (n[e] = s, r ? t[e] = s : s ? t.setAttribute(e, s) : t.removeAttribute(e));
2180
2180
  }) };
2181
2181
  }
2182
- pe("unmount", function(t, e) {
2182
+ Oe("unmount", function(t, e) {
2183
2183
  if (typeof e.type == "string") {
2184
2184
  var i = e.__e;
2185
2185
  if (i) {
@@ -2201,10 +2201,10 @@ pe("unmount", function(t, e) {
2201
2201
  }
2202
2202
  t(e);
2203
2203
  });
2204
- pe("__h", function(t, e, i, n) {
2204
+ Oe("__h", function(t, e, i, n) {
2205
2205
  (n < 3 || n === 9) && (e.__$f |= 2), t(e, i, n);
2206
2206
  });
2207
- Ui.prototype.shouldComponentUpdate = function(t, e) {
2207
+ Ki.prototype.shouldComponentUpdate = function(t, e) {
2208
2208
  var i = this.__$u, n = i && i.s !== void 0;
2209
2209
  for (var r in e)
2210
2210
  return !0;
@@ -2222,26 +2222,26 @@ Ui.prototype.shouldComponentUpdate = function(t, e) {
2222
2222
  return !0;
2223
2223
  return !1;
2224
2224
  };
2225
- function Oi(t) {
2226
- return bi(function() {
2225
+ function Bi(t) {
2226
+ return xi(function() {
2227
2227
  return E(t);
2228
2228
  }, []);
2229
2229
  }
2230
- var Tr = function(t) {
2230
+ var Lr = function(t) {
2231
2231
  queueMicrotask(function() {
2232
2232
  queueMicrotask(t);
2233
2233
  });
2234
2234
  };
2235
- function Cr() {
2236
- L(function() {
2237
- for (var t; t = Ri.shift(); )
2238
- Ii.call(t);
2235
+ function Pr() {
2236
+ D(function() {
2237
+ for (var t; t = Pi.shift(); )
2238
+ Li.call(t);
2239
2239
  });
2240
2240
  }
2241
- function Ti() {
2242
- Ri.push(this) === 1 && (ve.requestAnimationFrame || Tr)(Cr);
2241
+ function Mi() {
2242
+ Pi.push(this) === 1 && (Ee.requestAnimationFrame || Lr)(Pr);
2243
2243
  }
2244
- const F = we`
2244
+ const B = G`
2245
2245
  inset: 0;
2246
2246
  clear: none;
2247
2247
  float: none;
@@ -2260,11 +2260,11 @@ const F = we`
2260
2260
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
2261
2261
  'Helvetica Neue', sans-serif;
2262
2262
  `;
2263
- function Dr(t, e) {
2264
- const i = Gi(t);
2265
- qi(() => {
2263
+ function Nr(t, e) {
2264
+ const i = li(t);
2265
+ Wi(() => {
2266
2266
  i.current = t;
2267
- }, [t]), Xe(() => {
2267
+ }, [t]), ke(() => {
2268
2268
  if (e === null)
2269
2269
  return;
2270
2270
  const n = setInterval(() => {
@@ -2275,21 +2275,21 @@ function Dr(t, e) {
2275
2275
  };
2276
2276
  }, [e]);
2277
2277
  }
2278
- var Lr = 0;
2279
- function _(t, e, i, n, r, o) {
2278
+ var Br = 0;
2279
+ function S(t, e, i, n, r, o) {
2280
2280
  e || (e = {});
2281
2281
  var s, a, d = e;
2282
2282
  if ("ref" in d)
2283
2283
  for (a in d = {}, e)
2284
2284
  a == "ref" ? s = e[a] : d[a] = e[a];
2285
- var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Lr, __i: -1, __u: 0, __source: r, __self: o };
2285
+ var l = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Br, __i: -1, __u: 0, __source: r, __self: o };
2286
2286
  if (typeof t == "function" && (s = t.defaultProps))
2287
2287
  for (a in s)
2288
2288
  d[a] === void 0 && (d[a] = s[a]);
2289
- return ve.vnode && ve.vnode(l), l;
2289
+ return Ee.vnode && Ee.vnode(l), l;
2290
2290
  }
2291
- const Pr = we`
2292
- ${F}
2291
+ const Mr = G`
2292
+ ${B}
2293
2293
  position: fixed;
2294
2294
  top: 0;
2295
2295
  left: 0;
@@ -2302,7 +2302,7 @@ const Pr = we`
2302
2302
  height: 100vh;
2303
2303
 
2304
2304
  .card-wrapper {
2305
- ${F}
2305
+ ${B}
2306
2306
  position: relative;
2307
2307
  display: flex;
2308
2308
  flex-direction: column;
@@ -2316,7 +2316,7 @@ const Pr = we`
2316
2316
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
2317
2317
 
2318
2318
  .body {
2319
- ${F}
2319
+ ${B}
2320
2320
  display: flex;
2321
2321
  flex-direction: column;
2322
2322
  width: 100%;
@@ -2325,7 +2325,7 @@ const Pr = we`
2325
2325
  box-sizing: border-box;
2326
2326
  justify-content: center;
2327
2327
  .title {
2328
- ${F}
2328
+ ${B}
2329
2329
  text-align: center;
2330
2330
  font-size: 16px;
2331
2331
  font-weight: bold;
@@ -2333,7 +2333,7 @@ const Pr = we`
2333
2333
  }
2334
2334
 
2335
2335
  .content {
2336
- ${F}
2336
+ ${B}
2337
2337
  font-size: 14px;
2338
2338
  color: #888;
2339
2339
  margin-bottom: 16px;
@@ -2341,13 +2341,13 @@ const Pr = we`
2341
2341
  }
2342
2342
 
2343
2343
  .footer {
2344
- ${F}
2344
+ ${B}
2345
2345
  display: flex;
2346
2346
  align-items: center;
2347
2347
  width: 100%;
2348
2348
  height: 40px;
2349
2349
  button {
2350
- ${F}
2350
+ ${B}
2351
2351
  border: none;
2352
2352
  outline: none;
2353
2353
  height: 100%;
@@ -2363,56 +2363,56 @@ const Pr = we`
2363
2363
  }
2364
2364
  }
2365
2365
  }
2366
- `, W = E(null), At = E(""), pt = E(""), qe = E(!1), Nr = () => {
2366
+ `, te = E(null), kt = E(""), It = E(""), Ye = E(!1), Fr = () => {
2367
2367
  var t;
2368
- (t = W.value) == null || t.call(W, !1);
2369
- }, Mr = () => {
2368
+ (t = te.value) == null || t.call(te, !1);
2369
+ }, $r = () => {
2370
2370
  var t;
2371
- (t = W.value) == null || t.call(W, !0);
2372
- }, $r = async (t) => {
2371
+ (t = te.value) == null || t.call(te, !0);
2372
+ }, Ur = async (t) => {
2373
2373
  let {
2374
2374
  title: e,
2375
2375
  content: i
2376
2376
  } = t;
2377
- return W.value && (W.value(!1), L(() => {
2378
- W.value = null, qe.value = !1;
2379
- })), L(() => {
2380
- At.value = e || "", pt.value = i || "", qe.value = !0;
2377
+ return te.value && (te.value(!1), D(() => {
2378
+ te.value = null, Ye.value = !1;
2379
+ })), D(() => {
2380
+ kt.value = e || "", It.value = i || "", Ye.value = !0;
2381
2381
  }), new Promise((n) => {
2382
- W.value = (r) => {
2383
- L(() => {
2384
- W.value = null, qe.value = !1, At.value = "", pt.value = "";
2382
+ te.value = (r) => {
2383
+ D(() => {
2384
+ te.value = null, Ye.value = !1, kt.value = "", It.value = "";
2385
2385
  }), n(r);
2386
2386
  };
2387
2387
  });
2388
- }, Br = () => qe.value ? _("div", {
2389
- className: Pr,
2390
- children: _("div", {
2388
+ }, jr = () => Ye.value ? S("div", {
2389
+ className: Mr,
2390
+ children: S("div", {
2391
2391
  className: "card-wrapper",
2392
- children: [_("div", {
2392
+ children: [S("div", {
2393
2393
  className: "body",
2394
- children: [_("div", {
2394
+ children: [S("div", {
2395
2395
  className: "title",
2396
- children: At.value
2397
- }), _("div", {
2396
+ children: kt.value
2397
+ }), S("div", {
2398
2398
  className: "content",
2399
- children: pt.value
2399
+ children: It.value
2400
2400
  })]
2401
- }), _("div", {
2401
+ }), S("div", {
2402
2402
  className: "footer",
2403
- children: [_("button", {
2404
- onClick: Nr,
2403
+ children: [S("button", {
2404
+ onClick: Fr,
2405
2405
  className: "cancel-btn",
2406
2406
  children: "Cancel"
2407
- }), _("button", {
2408
- onClick: Mr,
2407
+ }), S("button", {
2408
+ onClick: $r,
2409
2409
  className: "confirm-btm",
2410
2410
  children: "Confirm"
2411
2411
  })]
2412
2412
  })]
2413
2413
  })
2414
- }) : null, Fr = we`
2415
- ${F}
2414
+ }) : null, Vr = G`
2415
+ ${B}
2416
2416
  position: relative;
2417
2417
  display: flex;
2418
2418
  align-items: center;
@@ -2430,7 +2430,7 @@ const Pr = we`
2430
2430
  }
2431
2431
 
2432
2432
  button {
2433
- ${F}
2433
+ ${B}
2434
2434
  padding: 0 20px;
2435
2435
  height: 30px;
2436
2436
  line-height: 30px;
@@ -2444,18 +2444,18 @@ const Pr = we`
2444
2444
  cursor: not-allowed;
2445
2445
  }
2446
2446
  }
2447
- `, jr = () => {
2447
+ `, Gr = () => {
2448
2448
  const t = E(!1), e = E(null);
2449
2449
  return {
2450
2450
  timerPaused: t,
2451
2451
  startTimestamp: e,
2452
2452
  startTimer: () => {
2453
- L(() => {
2453
+ D(() => {
2454
2454
  e.value = Date.now(), t.value = !1;
2455
2455
  });
2456
2456
  }
2457
2457
  };
2458
- }, Ur = (t) => {
2458
+ }, qr = (t) => {
2459
2459
  let {
2460
2460
  countdown: e = 0,
2461
2461
  mode: i,
@@ -2465,62 +2465,62 @@ const Pr = we`
2465
2465
  const {
2466
2466
  startTimestamp: o,
2467
2467
  timerPaused: s
2468
- } = r, a = Oi(e);
2469
- Dr(() => {
2470
- a.value > 0 ? a.value -= 1 : L(() => {
2468
+ } = r, a = Bi(e);
2469
+ Nr(() => {
2470
+ a.value > 0 ? a.value -= 1 : D(() => {
2471
2471
  s.value = !0, a.value = 0;
2472
2472
  });
2473
2473
  }, s.value ? null : 1e3);
2474
- const d = Ee(() => {
2474
+ const d = Pe(() => {
2475
2475
  if (i === "interstitial" || i === "rewarded_insterstitial" || !o.value)
2476
2476
  return !1;
2477
2477
  const f = Date.now() - o.value;
2478
2478
  return a.value > 0 && e - a.value >= 5 && f >= 5e3;
2479
- }), l = Ee(() => {
2479
+ }), l = Pe(() => {
2480
2480
  if (i === "interstitial")
2481
2481
  return !0;
2482
2482
  if (!o.value)
2483
2483
  return !1;
2484
2484
  const f = Date.now() - o.value;
2485
2485
  return a.value <= 0 && f >= (e - 1) * 1e3 && e > 5;
2486
- }), u = Ee(() => i === "interstitial" ? !1 : !d.value && !l.value), h = async () => {
2487
- if (s.value = !0, !await $r({
2486
+ }), u = Pe(() => i === "interstitial" ? !1 : !d.value && !l.value), c = async () => {
2487
+ if (s.value = !0, !await Ur({
2488
2488
  title: "Are you sure?",
2489
2489
  content: "You will lose your reward if you dismiss this Ad."
2490
2490
  })) {
2491
2491
  s.value = !1;
2492
2492
  return;
2493
2493
  }
2494
- n("dismiss"), L(() => {
2494
+ n("dismiss"), D(() => {
2495
2495
  s.value = !0, a.value = 0, o.value = null;
2496
2496
  });
2497
- }, c = () => {
2498
- n("viewed"), L(() => {
2497
+ }, h = () => {
2498
+ n("viewed"), D(() => {
2499
2499
  s.value = !0, a.value = 0, o.value = null;
2500
2500
  });
2501
2501
  };
2502
- return _("div", {
2503
- className: Fr,
2504
- children: [a.value > 0 && i !== "interstitial" && _("div", {
2502
+ return S("div", {
2503
+ className: Vr,
2504
+ children: [a.value > 0 && i !== "interstitial" && S("div", {
2505
2505
  className: "timer",
2506
2506
  children: [a.value, "s"]
2507
- }), _("button", {
2508
- onClick: d.value ? h : l.value ? c : void 0,
2507
+ }), S("button", {
2508
+ onClick: d.value ? c : l.value ? h : void 0,
2509
2509
  disabled: u.value,
2510
- children: _("svg", {
2510
+ children: S("svg", {
2511
2511
  width: "12",
2512
2512
  height: "12",
2513
2513
  viewBox: "0 0 14 14",
2514
2514
  fill: "none",
2515
2515
  xmlns: "http://www.w3.org/2000/svg",
2516
- children: _("path", {
2516
+ children: S("path", {
2517
2517
  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",
2518
2518
  fill: "white"
2519
2519
  })
2520
2520
  })
2521
2521
  })]
2522
2522
  });
2523
- }, Ci = () => {
2523
+ }, Fi = () => {
2524
2524
  const t = E(), e = E(), i = E(), n = E(), r = E(), o = E(!1), s = E(15), a = E(""), d = E("reward");
2525
2525
  return {
2526
2526
  afterAd: t,
@@ -2533,8 +2533,8 @@ const Pr = we`
2533
2533
  src: a,
2534
2534
  mode: d
2535
2535
  };
2536
- }, Vr = we`
2537
- ${F}
2536
+ }, zr = G`
2537
+ ${B}
2538
2538
  position: fixed;
2539
2539
  z-index: 2147483647;
2540
2540
  background: white;
@@ -2544,7 +2544,7 @@ const Pr = we`
2544
2544
  flex-direction: column;
2545
2545
 
2546
2546
  iframe {
2547
- ${F}
2547
+ ${B}
2548
2548
  flex: 1;
2549
2549
  position: relative;
2550
2550
  display: block;
@@ -2552,7 +2552,7 @@ const Pr = we`
2552
2552
  width: 100%;
2553
2553
  height: 100%;
2554
2554
  }
2555
- `, Di = (t) => {
2555
+ `, $i = (t) => {
2556
2556
  let {
2557
2557
  state: e
2558
2558
  } = t;
@@ -2566,39 +2566,39 @@ const Pr = we`
2566
2566
  countdown: d,
2567
2567
  src: l,
2568
2568
  mode: u
2569
- } = e, h = Ki(() => jr(), []), [c, f] = ii(!1), w = (A) => {
2570
- var y, v, p, T;
2571
- a.value = !1, A === "dismiss" ? (y = n.value) == null || y.call(n) : A === "viewed" && ((v = r.value) == null || v.call(r)), (p = i.value) == null || p.call(i), (T = o.value) == null || T.call(o), f(!1);
2572
- }, g = zi(() => {
2569
+ } = e, c = Ji(() => Gr(), []), [h, f] = ve(!1), w = (A) => {
2570
+ var y, g, b, x;
2571
+ a.value = !1, A === "dismiss" ? (y = n.value) == null || y.call(n) : A === "viewed" && ((g = r.value) == null || g.call(r)), (b = i.value) == null || b.call(i), (x = o.value) == null || x.call(o), f(!1);
2572
+ }, v = vt(() => {
2573
2573
  var A;
2574
- c || (f(!0), (A = s.value) == null || A.call(s));
2575
- }, [c]);
2576
- return Xe(() => {
2577
- c && (u.value === "reward" || u.value === "rewarded_insterstitial") && setTimeout(() => {
2578
- h.startTimer();
2574
+ h || (f(!0), (A = s.value) == null || A.call(s));
2575
+ }, [h]);
2576
+ return ke(() => {
2577
+ h && (u.value === "reward" || u.value === "rewarded_insterstitial") && setTimeout(() => {
2578
+ c.startTimer();
2579
2579
  }, 100);
2580
- }, [c, u.value]), a.value ? _("div", {
2581
- className: Vr,
2582
- children: [_(Ur, {
2580
+ }, [h, u.value]), a.value ? S("div", {
2581
+ className: zr,
2582
+ children: [S(qr, {
2583
2583
  mode: u.value,
2584
2584
  onClose: w,
2585
2585
  countdown: d.value,
2586
- state: h
2587
- }), a.value && _("iframe", {
2586
+ state: c
2587
+ }), a.value && S("iframe", {
2588
2588
  src: l.value,
2589
- onLoad: g,
2589
+ onLoad: v,
2590
2590
  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"
2591
- }), _(Br, {})]
2591
+ }), S(jr, {})]
2592
2592
  }) : null;
2593
2593
  };
2594
- function Z(t, e, i) {
2595
- return (e = Gr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2594
+ function se(t, e, i) {
2595
+ return (e = Kr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2596
2596
  }
2597
- function Gr(t) {
2598
- var e = qr(t, "string");
2597
+ function Kr(t) {
2598
+ var e = Hr(t, "string");
2599
2599
  return typeof e == "symbol" ? e : e + "";
2600
2600
  }
2601
- function qr(t, e) {
2601
+ function Hr(t, e) {
2602
2602
  if (typeof t != "object" || !t)
2603
2603
  return t;
2604
2604
  var i = t[Symbol.toPrimitive];
@@ -2610,13 +2610,13 @@ function qr(t, e) {
2610
2610
  }
2611
2611
  return (e === "string" ? String : Number)(t);
2612
2612
  }
2613
- class Kr {
2613
+ class Wr {
2614
2614
  constructor(e, i) {
2615
- Z(this, "name", "OKSPIN"), Z(this, "initialized", !1), Z(this, "initCompleter", null), Z(this, "context", void 0), Z(this, "initParams", void 0), Z(this, "adsOverlay", null), Z(this, "adsIsShowing", !1), Z(this, "lastUnDisplayedAdBreak", null), Z(this, "state", Ci()), this.context = e, this.initParams = i;
2615
+ se(this, "name", "OKSPIN"), se(this, "initialized", !1), se(this, "initCompleter", null), se(this, "context", void 0), se(this, "initParams", void 0), se(this, "adsOverlay", null), se(this, "adsIsShowing", !1), se(this, "lastUnDisplayedAdBreak", null), se(this, "state", Fi()), this.context = e, this.initParams = i;
2616
2616
  }
2617
2617
  async init() {
2618
2618
  var e;
2619
- this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), oe(_(Di, {
2619
+ this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), le(S($i, {
2620
2620
  state: this.state
2621
2621
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
2622
2622
  }
@@ -2666,10 +2666,10 @@ class Kr {
2666
2666
  case "next":
2667
2667
  case "pause": {
2668
2668
  (s = e.beforeAd) == null || s.call(e);
2669
- const h = () => {
2669
+ const c = () => {
2670
2670
  var f;
2671
2671
  this.adsIsShowing = !1, (f = e.afterAd) == null || f.call(e);
2672
- }, c = () => {
2672
+ }, h = () => {
2673
2673
  var f;
2674
2674
  this.adsIsShowing = !1, (f = e.adBreakDone) == null || f.call(e, {
2675
2675
  breakType: e.type,
@@ -2678,8 +2678,8 @@ class Kr {
2678
2678
  breakStatus: "viewed"
2679
2679
  });
2680
2680
  };
2681
- L(() => {
2682
- this.adsIsShowing = !0, this.state.afterAd.value = h, this.state.adBreakDone.value = c, this.state.src.value = i.params.url, this.state.mode.value = "interstitial", this.state.visible.value = !0;
2681
+ D(() => {
2682
+ this.adsIsShowing = !0, this.state.afterAd.value = c, this.state.adBreakDone.value = h, this.state.src.value = i.params.url, this.state.mode.value = "interstitial", this.state.visible.value = !0;
2683
2683
  });
2684
2684
  break;
2685
2685
  }
@@ -2690,26 +2690,26 @@ class Kr {
2690
2690
  breakFormat: this.lastUnDisplayedAdBreak.type === "reward" ? "reward" : "interstitial",
2691
2691
  breakStatus: "ignored"
2692
2692
  }), this.lastUnDisplayedAdBreak = null), (l = e.beforeAd) == null || l.call(e);
2693
- const h = () => {
2693
+ const c = () => {
2694
2694
  var y;
2695
2695
  this.adsIsShowing = !1, (y = e.afterAd) == null || y.call(e);
2696
- }, c = {
2696
+ }, h = {
2697
2697
  breakType: e.type,
2698
2698
  breakName: e.name,
2699
2699
  breakFormat: "reward",
2700
2700
  breakStatus: "ignored"
2701
2701
  }, f = () => {
2702
2702
  var y;
2703
- this.adsIsShowing = !1, c.breakStatus = "dismissed", (y = e.adDismissed) == null || y.call(e);
2703
+ this.adsIsShowing = !1, h.breakStatus = "dismissed", (y = e.adDismissed) == null || y.call(e);
2704
2704
  }, w = () => {
2705
2705
  var y;
2706
- this.adsIsShowing = !1, c.breakStatus = "viewed", (y = e.adViewed) == null || y.call(e);
2707
- }, g = () => {
2706
+ this.adsIsShowing = !1, h.breakStatus = "viewed", (y = e.adViewed) == null || y.call(e);
2707
+ }, v = () => {
2708
2708
  var y;
2709
- this.adsIsShowing = !1, (y = e.adBreakDone) == null || y.call(e, c);
2709
+ this.adsIsShowing = !1, (y = e.adBreakDone) == null || y.call(e, h);
2710
2710
  };
2711
- L(() => {
2712
- this.state.afterAd.value = h, this.state.adDismissed.value = f, this.state.adViewed.value = w, this.state.adBreakDone.value = g;
2711
+ D(() => {
2712
+ this.state.afterAd.value = c, this.state.adDismissed.value = f, this.state.adViewed.value = w, this.state.adBreakDone.value = v;
2713
2713
  });
2714
2714
  const A = () => {
2715
2715
  var y;
@@ -2722,9 +2722,9 @@ class Kr {
2722
2722
  });
2723
2723
  return;
2724
2724
  }
2725
- this.adsIsShowing = !0, L(() => {
2726
- var v;
2727
- this.state.countdown.value = (v = i.params.countdown) != null ? v : 15, this.state.src.value = i.params.url, this.state.mode.value = "reward", this.state.visible.value = !0;
2725
+ this.adsIsShowing = !0, D(() => {
2726
+ var g;
2727
+ this.state.countdown.value = (g = i.params.countdown) != null ? g : 15, this.state.src.value = i.params.url, this.state.mode.value = "reward", this.state.visible.value = !0;
2728
2728
  });
2729
2729
  };
2730
2730
  this.lastUnDisplayedAdBreak = e, (u = e.beforeReward) == null || u.call(e, A);
@@ -2733,17 +2733,440 @@ class Kr {
2733
2733
  }
2734
2734
  }
2735
2735
  }
2736
- const he = {};
2736
+ const Jr = () => {
2737
+ const t = E(null), e = E(null), i = E(null), n = E(null), r = E(null), o = E(null), s = E(!1), a = E(null);
2738
+ return {
2739
+ afterAd: t,
2740
+ adDismissed: e,
2741
+ adViewed: i,
2742
+ adBreakDone: n,
2743
+ adLoaded: r,
2744
+ adError: o,
2745
+ visible: s,
2746
+ payload: a
2747
+ };
2748
+ }, Xr = G`
2749
+ ${B}
2750
+ position: fixed;
2751
+ inset: 0;
2752
+ z-index: 2147483647;
2753
+ display: flex;
2754
+ background: #000000;
2755
+ `, Yr = G`
2756
+ ${B}
2757
+ position: relative;
2758
+ width: 100%;
2759
+ height: 100%;
2760
+ display: flex;
2761
+ flex-direction: column;
2762
+ color: #f7f9fc;
2763
+ `, Qr = G`
2764
+ position: absolute;
2765
+ top: 24px;
2766
+ left: 24px;
2767
+ display: flex;
2768
+ flex-direction: column;
2769
+ gap: 6px;
2770
+ padding: 12px 16px;
2771
+ border-radius: 999px;
2772
+ background: rgba(0, 0, 0, 0.65);
2773
+ border: 1px solid rgba(255, 255, 255, 0.08);
2774
+ `, Zr = G`
2775
+ font-size: 11px;
2776
+ letter-spacing: 0.08em;
2777
+ text-transform: uppercase;
2778
+ color: #c7d4ef;
2779
+ `, eo = G`
2780
+ font-size: 14px;
2781
+ font-weight: 500;
2782
+ `, to = G`
2783
+ ${B}
2784
+ flex: 1;
2785
+ background: #050505;
2786
+ display: flex;
2787
+ align-items: center;
2788
+ justify-content: center;
2789
+ padding: 0;
2790
+ `, di = G`
2791
+ width: 100%;
2792
+ height: 100%;
2793
+ border: 2px dashed rgba(255, 255, 255, 0.08);
2794
+ display: flex;
2795
+ align-items: center;
2796
+ justify-content: center;
2797
+ color: #6e7da1;
2798
+ font-size: 14px;
2799
+ `, io = G`
2800
+ position: absolute;
2801
+ bottom: 32px;
2802
+ right: 32px;
2803
+ display: flex;
2804
+ gap: 12px;
2805
+ `, no = G`
2806
+ min-width: 160px;
2807
+ min-height: 48px;
2808
+ border-radius: 999px;
2809
+ border: none;
2810
+ padding: 0 32px;
2811
+ font-size: 15px;
2812
+ font-weight: 600;
2813
+ background: rgba(255, 255, 255, 0.08);
2814
+ color: #f1f5ff;
2815
+ cursor: pointer;
2816
+
2817
+ &:disabled {
2818
+ opacity: 0.4;
2819
+ cursor: not-allowed;
2820
+ }
2821
+ `, ro = G`
2822
+ min-width: 120px;
2823
+ min-height: 44px;
2824
+ border-radius: 999px;
2825
+ border: 1px solid rgba(255, 255, 255, 0.4);
2826
+ background: rgba(0, 0, 0, 0.5);
2827
+ color: white;
2828
+ font-size: 14px;
2829
+ font-weight: 500;
2830
+ cursor: pointer;
2831
+ `, oo = (t) => {
2832
+ let {
2833
+ state: e
2834
+ } = t;
2835
+ const {
2836
+ afterAd: i,
2837
+ adDismissed: n,
2838
+ adViewed: r,
2839
+ adBreakDone: o,
2840
+ adLoaded: s,
2841
+ adError: a,
2842
+ visible: d,
2843
+ payload: l
2844
+ } = e, [u, c] = ve(!1), [h, f] = ve(0), [w, v] = ve(!1), [A, y] = ve(!1), [g, b] = ve("Loading next content..."), x = li(null), _ = l.value, m = vt((M) => {
2845
+ var T, K, Q, L;
2846
+ c(!1), d.value = !1, M === "dismiss" ? (T = n.value) == null || T.call(n) : (K = r.value) == null || K.call(r), (Q = i.value) == null || Q.call(i), (L = o.value) == null || L.call(o);
2847
+ }, [d, n, r, i, o]), p = vt(() => {
2848
+ var M;
2849
+ c(!1), d.value = !1, (M = a.value) == null || M.call(a);
2850
+ }, [d, a]);
2851
+ if (ke(() => {
2852
+ var L;
2853
+ if (!d.value || !_) {
2854
+ f(0), v(!1), y(!1), b("Loading next content...");
2855
+ return;
2856
+ }
2857
+ const M = _.mode === "reward" ? 15 : 0, T = Math.max(Math.floor((L = _.countdown) != null ? L : M), 0);
2858
+ if (f(T), y(_.mode === "reward" ? T === 0 : !0), v(_.mode === "interstitial" ? T === 0 : !1), T === 0)
2859
+ return;
2860
+ let K = T;
2861
+ const Q = window.setInterval(() => {
2862
+ K -= 1, f(Math.max(K, 0)), K <= 0 && (window.clearInterval(Q), _.mode === "reward" ? y(!0) : v(!0));
2863
+ }, 1e3);
2864
+ return () => {
2865
+ window.clearInterval(Q);
2866
+ };
2867
+ }, [d.value, _, m]), ke(() => {
2868
+ var Q;
2869
+ if (!d.value || !_)
2870
+ return;
2871
+ const M = x.current;
2872
+ if (!M)
2873
+ return;
2874
+ if (M.innerHTML = "", b("Loading next content..."), c(!1), _.testMode) {
2875
+ const L = document.createElement("div");
2876
+ L.className = di, L.innerText = "Preview slot placeholder", M.appendChild(L), c(!0), (Q = s.value) == null || Q.call(s);
2877
+ return;
2878
+ }
2879
+ if (typeof window == "undefined") {
2880
+ p();
2881
+ return;
2882
+ }
2883
+ const T = document.createElement("ins");
2884
+ T.className = "adsbygoogle", T.style.display = "block", T.style.width = "100%", T.style.height = "100%", T.setAttribute("data-ad-client", _.clientId), T.setAttribute("data-ad-slot", _.unitId), T.setAttribute("data-ad-format", "auto"), T.setAttribute("data-full-width-responsive", "true"), _.channelId && T.setAttribute("data-ad-channel", _.channelId), M.appendChild(T);
2885
+ const K = new MutationObserver(() => {
2886
+ var Dt;
2887
+ const L = T.getAttribute("data-ad-status");
2888
+ L === "filled" ? (c(!0), b(""), (Dt = s.value) == null || Dt.call(s), K.disconnect()) : L === "unfilled" && (b("Slot currently unavailable."), c(!1), K.disconnect());
2889
+ });
2890
+ K.observe(T, {
2891
+ attributes: !0,
2892
+ attributeFilter: ["data-ad-status"]
2893
+ });
2894
+ try {
2895
+ const L = window;
2896
+ L.adsbygoogle = L.adsbygoogle || [], L.adsbygoogle.push({});
2897
+ } catch (L) {
2898
+ K.disconnect(), p();
2899
+ }
2900
+ return () => {
2901
+ K.disconnect(), M.innerHTML = "";
2902
+ };
2903
+ }, [d.value, _, s, p]), !d.value || !_)
2904
+ return null;
2905
+ const ye = _.mode === "reward" ? "Next content unlocking" : "Content paused", ge = h > 0 ? `Content resumes in ${h}s` : "Content ready";
2906
+ return S("div", {
2907
+ className: Xr,
2908
+ children: S("div", {
2909
+ className: Yr,
2910
+ children: [S("div", {
2911
+ className: Qr,
2912
+ children: [S("div", {
2913
+ className: Zr,
2914
+ children: ye
2915
+ }), S("div", {
2916
+ className: eo,
2917
+ children: ge
2918
+ })]
2919
+ }), S("div", {
2920
+ className: to,
2921
+ ref: x,
2922
+ children: !u && S("div", {
2923
+ className: di,
2924
+ children: g
2925
+ })
2926
+ }), S("div", {
2927
+ className: io,
2928
+ children: _.mode === "reward" ? S("button", {
2929
+ className: no,
2930
+ type: "button",
2931
+ onClick: () => m("viewed"),
2932
+ disabled: !A,
2933
+ children: A ? "Continue" : `Continue in ${h}s`
2934
+ }) : w && S("button", {
2935
+ className: ro,
2936
+ type: "button",
2937
+ onClick: () => m("viewed"),
2938
+ children: "Continue"
2939
+ })
2940
+ })]
2941
+ })
2942
+ });
2943
+ };
2944
+ function q(t, e, i) {
2945
+ return (e = so(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2946
+ }
2947
+ function so(t) {
2948
+ var e = ao(t, "string");
2949
+ return typeof e == "symbol" ? e : e + "";
2950
+ }
2951
+ function ao(t, e) {
2952
+ if (typeof t != "object" || !t)
2953
+ return t;
2954
+ var i = t[Symbol.toPrimitive];
2955
+ if (i !== void 0) {
2956
+ var n = i.call(t, e);
2957
+ if (typeof n != "object")
2958
+ return n;
2959
+ throw new TypeError("@@toPrimitive must return a primitive value.");
2960
+ }
2961
+ return (e === "string" ? String : Number)(t);
2962
+ }
2963
+ class lo {
2964
+ constructor(e, i) {
2965
+ if (q(this, "name", "ADSENSE_BANNER_AS_AFG"), q(this, "initialized", !1), q(this, "initCompleter", null), q(this, "context", void 0), q(this, "contextInfo", void 0), q(this, "initParams", void 0), q(this, "defaultCountdown", 5), q(this, "adsOverlay", null), q(this, "adsIsShowing", !1), q(this, "lastUnDisplayedAdBreak", null), q(this, "requestCounter", 0), q(this, "scriptPromise", null), q(this, "scriptReady", !1), q(this, "scriptFailed", !1), q(this, "state", Jr()), this.context = e, this.contextInfo = this.context.getContextInfo(), this.initParams = i, typeof window != "undefined") {
2966
+ const n = window;
2967
+ n.adsbygoogle = n.adsbygoogle || [];
2968
+ }
2969
+ }
2970
+ async init() {
2971
+ var e;
2972
+ if (typeof document != "undefined") {
2973
+ this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-banner-as-afg"), le(S(oo, {
2974
+ state: this.state
2975
+ }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay);
2976
+ try {
2977
+ await this.ensureAdSenseScript();
2978
+ } catch (i) {
2979
+ this.scriptFailed = !0, console.warn("[BannerAsAFG] Failed to load Google AdSense script", i);
2980
+ }
2981
+ this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
2982
+ }
2983
+ }
2984
+ ensureAdSenseScript() {
2985
+ var i;
2986
+ if (typeof document == "undefined")
2987
+ return Promise.resolve();
2988
+ if (this.scriptPromise)
2989
+ return this.scriptPromise;
2990
+ if (document.getElementById("google-adsense"))
2991
+ return this.scriptReady = !0, Promise.resolve();
2992
+ if (!this.initParams.clientId)
2993
+ return this.scriptFailed = !0, Promise.reject(new Error("BannerAsAFG requires a Google AdSense clientId."));
2994
+ const e = (i = this.contextInfo.testAdsMode) != null ? i : !1;
2995
+ return this.scriptPromise = new Promise((n, r) => {
2996
+ const o = document.createElement("script");
2997
+ o.id = "google-adsense", o.async = !0, o.crossOrigin = "anonymous", o.src = `https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.initParams.clientId}`, e && o.setAttribute("data-adbreak-test", "on"), this.initParams.channelId && o.setAttribute("data-ad-channel", this.initParams.channelId), o.onload = () => {
2998
+ this.scriptReady = !0, n();
2999
+ }, o.onerror = () => {
3000
+ this.scriptFailed = !0, r(new Error("Failed to fetch Google AdSense script."));
3001
+ }, document.head.appendChild(o);
3002
+ }), this.scriptPromise;
3003
+ }
3004
+ adConfig(e) {
3005
+ var i;
3006
+ if (this.initialized) {
3007
+ (i = e.onReady) == null || i.call(e);
3008
+ return;
3009
+ }
3010
+ this.initCompleter = () => {
3011
+ var n;
3012
+ (n = e.onReady) == null || n.call(e);
3013
+ };
3014
+ }
3015
+ resolveOverlayConfig(e) {
3016
+ var n, r;
3017
+ const i = (r = (n = e == null ? void 0 : e.params) == null ? void 0 : n.countdown) != null ? r : this.defaultCountdown;
3018
+ return {
3019
+ rewardUnitId: this.initParams.rewardUnitId,
3020
+ interstitialUnitId: this.initParams.interstitialUnitId,
3021
+ channelId: this.initParams.channelId,
3022
+ countdown: Math.max(Math.floor(i), 0)
3023
+ };
3024
+ }
3025
+ canDisplay(e) {
3026
+ return !!e && !!this.initParams.clientId && !!this.adsOverlay && this.initialized && !this.scriptFailed && this.scriptReady;
3027
+ }
3028
+ showBannerOverlay(e, i) {
3029
+ var o, s;
3030
+ const n = Math.max(Math.floor((o = i.countdown) != null ? o : e === "reward" ? 15 : 0), 0), r = {
3031
+ requestId: ++this.requestCounter,
3032
+ clientId: this.initParams.clientId,
3033
+ unitId: e === "reward" ? this.initParams.rewardUnitId : this.initParams.interstitialUnitId,
3034
+ channelId: i.channelId,
3035
+ countdown: n,
3036
+ mode: e,
3037
+ testMode: (s = this.contextInfo.testAdsMode) != null ? s : !1
3038
+ };
3039
+ this.state.payload.value = r, this.state.visible.value = !0;
3040
+ }
3041
+ adBreak(e, i) {
3042
+ var s, a, d, l, u, c, h, f, w;
3043
+ const n = e.type === "preroll" ? "" : e.name, r = e.type === "reward" ? "reward" : "interstitial";
3044
+ if (!this.initialized || !this.adsOverlay) {
3045
+ (s = e.adBreakDone) == null || s.call(e, {
3046
+ breakType: e.type,
3047
+ breakName: n,
3048
+ breakFormat: r,
3049
+ breakStatus: "notReady"
3050
+ });
3051
+ return;
3052
+ }
3053
+ if (this.adsIsShowing) {
3054
+ (a = e.adBreakDone) == null || a.call(e, {
3055
+ breakType: e.type,
3056
+ breakName: n,
3057
+ breakFormat: r,
3058
+ breakStatus: "frequencyCapped"
3059
+ });
3060
+ return;
3061
+ }
3062
+ const o = this.resolveOverlayConfig(i);
3063
+ if (!this.canDisplay(o.rewardUnitId)) {
3064
+ (d = e.adBreakDone) == null || d.call(e, {
3065
+ breakType: e.type,
3066
+ breakName: n,
3067
+ breakFormat: r,
3068
+ breakStatus: "notReady"
3069
+ });
3070
+ return;
3071
+ }
3072
+ switch (e.type) {
3073
+ case "preroll": {
3074
+ (l = e.adBreakDone) == null || l.call(e, {
3075
+ breakType: e.type,
3076
+ breakName: "",
3077
+ breakFormat: "interstitial",
3078
+ breakStatus: "noAdPreloaded"
3079
+ });
3080
+ break;
3081
+ }
3082
+ case "start":
3083
+ case "browse":
3084
+ case "next":
3085
+ case "pause": {
3086
+ (u = e.beforeAd) == null || u.call(e);
3087
+ const v = {
3088
+ breakType: e.type,
3089
+ breakName: e.name,
3090
+ breakFormat: "interstitial",
3091
+ breakStatus: "viewed"
3092
+ }, A = () => {
3093
+ var b;
3094
+ this.adsIsShowing = !1, (b = e.afterAd) == null || b.call(e);
3095
+ }, y = () => {
3096
+ var b;
3097
+ this.adsIsShowing = !1, (b = e.adBreakDone) == null || b.call(e, v);
3098
+ }, g = () => {
3099
+ var b, x;
3100
+ this.adsIsShowing = !1, v.breakStatus = "noAdPreloaded", (b = e.afterAd) == null || b.call(e), (x = e.adBreakDone) == null || x.call(e, v);
3101
+ };
3102
+ D(() => {
3103
+ 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 = g, this.showBannerOverlay("interstitial", o);
3104
+ });
3105
+ break;
3106
+ }
3107
+ case "reward": {
3108
+ this.lastUnDisplayedAdBreak && ((h = (c = this.lastUnDisplayedAdBreak).adBreakDone) == null || h.call(c, {
3109
+ breakType: this.lastUnDisplayedAdBreak.type,
3110
+ breakName: this.lastUnDisplayedAdBreak.type === "preroll" ? "" : this.lastUnDisplayedAdBreak.name,
3111
+ breakFormat: this.lastUnDisplayedAdBreak.type === "reward" ? "reward" : "interstitial",
3112
+ breakStatus: "ignored"
3113
+ }), this.lastUnDisplayedAdBreak = null), (f = e.beforeAd) == null || f.call(e);
3114
+ const v = {
3115
+ breakType: e.type,
3116
+ breakName: e.name,
3117
+ breakFormat: "reward",
3118
+ breakStatus: "ignored"
3119
+ }, A = () => {
3120
+ var m;
3121
+ this.adsIsShowing = !1, (m = e.afterAd) == null || m.call(e);
3122
+ }, y = () => {
3123
+ var m;
3124
+ this.adsIsShowing = !1, v.breakStatus = "dismissed", (m = e.adDismissed) == null || m.call(e);
3125
+ }, g = () => {
3126
+ var m;
3127
+ this.adsIsShowing = !1, v.breakStatus = "viewed", (m = e.adViewed) == null || m.call(e);
3128
+ }, b = () => {
3129
+ var m;
3130
+ this.adsIsShowing = !1, (m = e.adBreakDone) == null || m.call(e, v);
3131
+ }, x = () => {
3132
+ var m, p;
3133
+ this.adsIsShowing = !1, v.breakStatus = "noAdPreloaded", (m = e.afterAd) == null || m.call(e), (p = e.adBreakDone) == null || p.call(e, v);
3134
+ };
3135
+ D(() => {
3136
+ this.state.afterAd.value = A, this.state.adDismissed.value = y, this.state.adViewed.value = g, this.state.adBreakDone.value = b, this.state.adError.value = x;
3137
+ });
3138
+ const _ = () => {
3139
+ var m, p;
3140
+ if (!this.canDisplay(o.rewardUnitId)) {
3141
+ this.lastUnDisplayedAdBreak = null, (m = e.afterAd) == null || m.call(e), (p = e.adBreakDone) == null || p.call(e, {
3142
+ breakType: e.type,
3143
+ breakName: e.name,
3144
+ breakFormat: "reward",
3145
+ breakStatus: "notReady"
3146
+ });
3147
+ return;
3148
+ }
3149
+ this.lastUnDisplayedAdBreak = null, this.adsIsShowing = !0, D(() => {
3150
+ this.showBannerOverlay("reward", o);
3151
+ });
3152
+ };
3153
+ this.lastUnDisplayedAdBreak = e, (w = e.beforeReward) == null || w.call(e, _);
3154
+ break;
3155
+ }
3156
+ }
3157
+ }
3158
+ }
3159
+ const me = {};
2737
3160
  window.addEventListener("message", (t) => {
2738
- t.origin !== "https://ads.appsrockets.com" && t.origin !== "https://stg-ads.appsrockets.com" || he[t.data.type] && he[t.data.type].forEach((e) => {
3161
+ t.origin !== "https://ads.appsrockets.com" && t.origin !== "https://stg-ads.appsrockets.com" || me[t.data.type] && me[t.data.type].forEach((e) => {
2739
3162
  e(t.data.data);
2740
3163
  });
2741
3164
  });
2742
- const de = (t, e) => {
2743
- Xe(() => (he[t] || (he[t] = /* @__PURE__ */ new Set()), he[t].add(e), () => {
2744
- he[t].delete(e);
3165
+ const be = (t, e) => {
3166
+ ke(() => (me[t] || (me[t] = /* @__PURE__ */ new Set()), me[t].add(e), () => {
3167
+ me[t].delete(e);
2745
3168
  }), [t, e]);
2746
- }, Li = () => {
3169
+ }, Ui = () => {
2747
3170
  const t = E(), e = E(), i = E(), n = E(), r = E(), o = E(), s = E(), a = E(!1), d = E("");
2748
3171
  return {
2749
3172
  afterAd: t,
@@ -2756,8 +3179,8 @@ const de = (t, e) => {
2756
3179
  visible: a,
2757
3180
  src: d
2758
3181
  };
2759
- }, zr = we`
2760
- ${F}
3182
+ }, uo = G`
3183
+ ${B}
2761
3184
  position: fixed;
2762
3185
  z-index: 2147483647;
2763
3186
  background: white;
@@ -2767,7 +3190,7 @@ const de = (t, e) => {
2767
3190
  flex-direction: column;
2768
3191
 
2769
3192
  iframe {
2770
- ${F}
3193
+ ${B}
2771
3194
  flex: 1;
2772
3195
  position: relative;
2773
3196
  display: block;
@@ -2775,7 +3198,7 @@ const de = (t, e) => {
2775
3198
  width: 100%;
2776
3199
  height: 100%;
2777
3200
  }
2778
- `, Pi = (t) => {
3201
+ `, ji = (t) => {
2779
3202
  let {
2780
3203
  state: e
2781
3204
  } = t;
@@ -2788,22 +3211,22 @@ const de = (t, e) => {
2788
3211
  adLinkClicked: a,
2789
3212
  visible: d,
2790
3213
  src: l
2791
- } = e, [u, h] = ii(!1), c = (w) => {
2792
- var g, A, y, v;
2793
- h(!1), d.value = !1, w === "dismiss" ? (g = n.value) == null || g.call(n) : w === "viewed" && ((A = r.value) == null || A.call(r)), (y = i.value) == null || y.call(i), (v = o.value) == null || v.call(o);
3214
+ } = e, [u, c] = ve(!1), h = (w) => {
3215
+ var v, A, y, g;
3216
+ c(!1), d.value = !1, w === "dismiss" ? (v = n.value) == null || v.call(n) : w === "viewed" && ((A = r.value) == null || A.call(r)), (y = i.value) == null || y.call(i), (g = o.value) == null || g.call(o);
2794
3217
  }, f = () => {
2795
3218
  var w;
2796
3219
  (w = s.value) == null || w.call(s);
2797
3220
  };
2798
- return de("appsrockets_ad_dismissed", () => c("dismiss")), de("appsrockets_ad_rewarded", () => c("viewed")), de("appsrockets_ad_completed", () => c("viewed")), de("appsrockets_ad_skipped", () => c("viewed")), de("appsrockets_ad_clicked", (w) => {
2799
- var g;
2800
- return (g = a.value) == null ? void 0 : g.call(a, w);
2801
- }), de("appsrockets_ad_loaded", () => h(!0)), d.value ? _("div", {
2802
- className: zr,
3221
+ return be("appsrockets_ad_dismissed", () => h("dismiss")), be("appsrockets_ad_rewarded", () => h("viewed")), be("appsrockets_ad_completed", () => h("viewed")), be("appsrockets_ad_skipped", () => h("viewed")), be("appsrockets_ad_clicked", (w) => {
3222
+ var v;
3223
+ return (v = a.value) == null ? void 0 : v.call(a, w);
3224
+ }), be("appsrockets_ad_loaded", () => c(!0)), d.value ? S("div", {
3225
+ className: uo,
2803
3226
  style: {
2804
3227
  display: u ? "flex" : "none"
2805
3228
  },
2806
- children: d.value && _("iframe", {
3229
+ children: d.value && S("iframe", {
2807
3230
  src: l.value,
2808
3231
  onLoad: f,
2809
3232
  allowFullScreen: !0,
@@ -2812,14 +3235,14 @@ const de = (t, e) => {
2812
3235
  })
2813
3236
  }) : null;
2814
3237
  };
2815
- function ee(t, e, i) {
2816
- return (e = Hr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3238
+ function ae(t, e, i) {
3239
+ return (e = co(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2817
3240
  }
2818
- function Hr(t) {
2819
- var e = Wr(t, "string");
3241
+ function co(t) {
3242
+ var e = ho(t, "string");
2820
3243
  return typeof e == "symbol" ? e : e + "";
2821
3244
  }
2822
- function Wr(t, e) {
3245
+ function ho(t, e) {
2823
3246
  if (typeof t != "object" || !t)
2824
3247
  return t;
2825
3248
  var i = t[Symbol.toPrimitive];
@@ -2831,9 +3254,9 @@ function Wr(t, e) {
2831
3254
  }
2832
3255
  return (e === "string" ? String : Number)(t);
2833
3256
  }
2834
- class Jr {
3257
+ class fo {
2835
3258
  constructor(e, i) {
2836
- ee(this, "name", "APPSROCKETS"), ee(this, "initialized", !1), ee(this, "initCompleter", null), ee(this, "context", void 0), ee(this, "adsOverlay", null), ee(this, "adsIsShowing", !1), ee(this, "lastUnDisplayedAdBreak", null), ee(this, "state", Li()), ee(this, "processUrl", (n) => {
3259
+ ae(this, "name", "APPSROCKETS"), ae(this, "initialized", !1), ae(this, "initCompleter", null), ae(this, "context", void 0), ae(this, "adsOverlay", null), ae(this, "adsIsShowing", !1), ae(this, "lastUnDisplayedAdBreak", null), ae(this, "state", Ui()), ae(this, "processUrl", (n) => {
2837
3260
  var a;
2838
3261
  const r = this.context.getContextInfo(), o = new URL(n), s = new URLSearchParams(o.search);
2839
3262
  return s.has("joliSource") || s.set("joliSource", r.joliSource), s.get("osType") || s.set("osType", r.osType), s.get("runtimeType") || s.set("runtimeType", r.runtimeType), s.get("mode") || s.set("mode", "AFG"), s.get("deviceId") || s.set("deviceId", r.deviceId), s.get("statusBarHeight") || s.set("statusBarHeight", ((a = this.context.getWindowInfo().statusBarHeight) != null ? a : 0).toString()), o.search = s.toString(), o.toString();
@@ -2841,7 +3264,7 @@ class Jr {
2841
3264
  }
2842
3265
  async init() {
2843
3266
  var e;
2844
- this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), oe(_(Pi, {
3267
+ this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), le(S(ji, {
2845
3268
  state: this.state
2846
3269
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
2847
3270
  }
@@ -2857,7 +3280,7 @@ class Jr {
2857
3280
  };
2858
3281
  }
2859
3282
  adBreak(e, i) {
2860
- var r, o, s, a, d, l, u, h;
3283
+ var r, o, s, a, d, l, u, c;
2861
3284
  if (!this.initialized || !this.adsOverlay || !i.params.url) {
2862
3285
  (r = e.adBreakDone) == null || r.call(e, {
2863
3286
  breakType: e.type,
@@ -2876,9 +3299,9 @@ class Jr {
2876
3299
  });
2877
3300
  return;
2878
3301
  }
2879
- const n = (c) => {
3302
+ const n = (h) => {
2880
3303
  var f, w;
2881
- (w = (f = this.context).handleLinkClicked) == null || w.call(f, c);
3304
+ (w = (f = this.context).handleLinkClicked) == null || w.call(f, h);
2882
3305
  };
2883
3306
  switch (e.type) {
2884
3307
  case "preroll": {
@@ -2895,28 +3318,28 @@ class Jr {
2895
3318
  case "next":
2896
3319
  case "pause": {
2897
3320
  (a = e.beforeAd) == null || a.call(e);
2898
- const c = () => {
2899
- var g;
2900
- this.adsIsShowing = !1, (g = e.afterAd) == null || g.call(e);
3321
+ const h = () => {
3322
+ var v;
3323
+ this.adsIsShowing = !1, (v = e.afterAd) == null || v.call(e);
2901
3324
  }, f = () => {
2902
- var g;
2903
- this.adsIsShowing = !1, (g = e.adBreakDone) == null || g.call(e, {
3325
+ var v;
3326
+ this.adsIsShowing = !1, (v = e.adBreakDone) == null || v.call(e, {
2904
3327
  breakType: e.type,
2905
3328
  breakName: e.name,
2906
3329
  breakFormat: "interstitial",
2907
3330
  breakStatus: "viewed"
2908
3331
  });
2909
3332
  }, w = () => {
2910
- var g;
2911
- this.adsIsShowing = !1, (g = e.adBreakDone) == null || g.call(e, {
3333
+ var v;
3334
+ this.adsIsShowing = !1, (v = e.adBreakDone) == null || v.call(e, {
2912
3335
  breakType: e.type,
2913
3336
  breakName: e.name,
2914
3337
  breakFormat: "interstitial",
2915
3338
  breakStatus: "noAdPreloaded"
2916
3339
  });
2917
3340
  };
2918
- L(() => {
2919
- this.adsIsShowing = !0, this.state.afterAd.value = c, this.state.adBreakDone.value = f, this.state.src.value = this.processUrl(i.params.url), this.state.adLinkClicked.value = n, this.state.adError.value = w, this.state.visible.value = !0;
3341
+ D(() => {
3342
+ this.adsIsShowing = !0, this.state.afterAd.value = h, this.state.adBreakDone.value = f, this.state.src.value = this.processUrl(i.params.url), this.state.adLinkClicked.value = n, this.state.adError.value = w, this.state.visible.value = !0;
2920
3343
  });
2921
3344
  break;
2922
3345
  }
@@ -2927,33 +3350,33 @@ class Jr {
2927
3350
  breakFormat: this.lastUnDisplayedAdBreak.type === "reward" ? "reward" : "interstitial",
2928
3351
  breakStatus: "ignored"
2929
3352
  }), this.lastUnDisplayedAdBreak = null), (u = e.beforeAd) == null || u.call(e);
2930
- const c = () => {
2931
- var p;
2932
- this.adsIsShowing = !1, (p = e.afterAd) == null || p.call(e);
3353
+ const h = () => {
3354
+ var b;
3355
+ this.adsIsShowing = !1, (b = e.afterAd) == null || b.call(e);
2933
3356
  }, f = {
2934
3357
  breakType: e.type,
2935
3358
  breakName: e.name,
2936
3359
  breakFormat: "reward",
2937
3360
  breakStatus: "ignored"
2938
3361
  }, w = () => {
2939
- var p;
2940
- this.adsIsShowing = !1, f.breakStatus = "dismissed", (p = e.adDismissed) == null || p.call(e);
2941
- }, g = () => {
2942
- var p;
2943
- this.adsIsShowing = !1, f.breakStatus = "viewed", (p = e.adViewed) == null || p.call(e);
3362
+ var b;
3363
+ this.adsIsShowing = !1, f.breakStatus = "dismissed", (b = e.adDismissed) == null || b.call(e);
3364
+ }, v = () => {
3365
+ var b;
3366
+ this.adsIsShowing = !1, f.breakStatus = "viewed", (b = e.adViewed) == null || b.call(e);
2944
3367
  }, A = () => {
2945
- var p;
2946
- this.adsIsShowing = !1, (p = e.adBreakDone) == null || p.call(e, f);
3368
+ var b;
3369
+ this.adsIsShowing = !1, (b = e.adBreakDone) == null || b.call(e, f);
2947
3370
  }, y = () => {
2948
3371
  this.adsIsShowing = !1, f.breakStatus = "noAdPreloaded";
2949
3372
  };
2950
- L(() => {
2951
- this.state.afterAd.value = c, this.state.adDismissed.value = w, this.state.adViewed.value = g, this.state.adBreakDone.value = A, this.state.adLinkClicked.value = n, this.state.adError.value = y;
3373
+ D(() => {
3374
+ this.state.afterAd.value = h, this.state.adDismissed.value = w, this.state.adViewed.value = v, this.state.adBreakDone.value = A, this.state.adLinkClicked.value = n, this.state.adError.value = y;
2952
3375
  });
2953
- const v = () => {
2954
- var p;
3376
+ const g = () => {
3377
+ var b;
2955
3378
  if (this.lastUnDisplayedAdBreak = null, !this.adsOverlay) {
2956
- (p = e.adBreakDone) == null || p.call(e, {
3379
+ (b = e.adBreakDone) == null || b.call(e, {
2957
3380
  breakType: e.type,
2958
3381
  breakName: e.name,
2959
3382
  breakFormat: "reward",
@@ -2961,31 +3384,31 @@ class Jr {
2961
3384
  });
2962
3385
  return;
2963
3386
  }
2964
- this.adsIsShowing = !0, L(() => {
3387
+ this.adsIsShowing = !0, D(() => {
2965
3388
  this.state.src.value = this.processUrl(i.params.url), this.state.visible.value = !0;
2966
3389
  });
2967
3390
  };
2968
- this.lastUnDisplayedAdBreak = e, (h = e.beforeReward) == null || h.call(e, v);
3391
+ this.lastUnDisplayedAdBreak = e, (c = e.beforeReward) == null || c.call(e, g);
2969
3392
  break;
2970
3393
  }
2971
3394
  }
2972
3395
  }
2973
3396
  }
2974
- const Ni = () => {
3397
+ const Vi = () => {
2975
3398
  window.googletag = window.googletag || {
2976
3399
  cmd: []
2977
3400
  }, window.googletag.pubadsReady || window.googletag.cmd.push(() => {
2978
3401
  window.googletag.enableServices();
2979
3402
  });
2980
3403
  };
2981
- function $(t, e, i) {
2982
- return (e = Xr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3404
+ function j(t, e, i) {
3405
+ return (e = vo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2983
3406
  }
2984
- function Xr(t) {
2985
- var e = Yr(t, "string");
3407
+ function vo(t) {
3408
+ var e = yo(t, "string");
2986
3409
  return typeof e == "symbol" ? e : e + "";
2987
3410
  }
2988
- function Yr(t, e) {
3411
+ function yo(t, e) {
2989
3412
  if (typeof t != "object" || !t)
2990
3413
  return t;
2991
3414
  var i = t[Symbol.toPrimitive];
@@ -2997,24 +3420,24 @@ function Yr(t, e) {
2997
3420
  }
2998
3421
  return (e === "string" ? String : Number)(t);
2999
3422
  }
3000
- class Mi {
3423
+ class Gi {
3001
3424
  constructor(e, i, n) {
3002
- $(this, "adUnit", void 0), $(this, "project", void 0), $(this, "keyValue", void 0), $(this, "adsContext", null), $(this, "rewardedSlot", null), $(this, "rewardedPayload", null), $(this, "readyEvent", null), $(this, "withCommand", function() {
3425
+ 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() {
3003
3426
  googletag.cmd.push(...arguments);
3004
- }), $(this, "init", () => {
3427
+ }), j(this, "init", () => {
3005
3428
  var r;
3006
3429
  this.rewardedSlot = googletag.defineOutOfPageSlot(this.adUnit, googletag.enums.OutOfPageFormat.REWARDED), this.rewardedSlot && (this.rewardedSlot.addService(googletag.pubads()), googletag.pubads().addEventListener("rewardedSlotReady", this.handleSlotReady), googletag.pubads().addEventListener("rewardedSlotClosed", this.handleSlotClosed), googletag.pubads().addEventListener("rewardedSlotGranted", this.handleSlotGranted), googletag.pubads().addEventListener("slotRenderEnded", this.handleSlotRenderEnded), this.keyValue && (Object.keys(this.keyValue).forEach((o) => {
3007
3430
  var s;
3008
3431
  (s = this.rewardedSlot) == null || s.setTargeting(o, this.keyValue[o]);
3009
3432
  }), Object.keys(this.keyValue).includes("project") || (r = this.rewardedSlot) == null || r.setTargeting("project", this.project)), googletag.display(this.rewardedSlot));
3010
- }), $(this, "destroy", (r) => {
3433
+ }), j(this, "destroy", (r) => {
3011
3434
  var o, s;
3012
3435
  this.rewardedPayload = null, this.readyEvent = null, googletag.pubads().removeEventListener("rewardedSlotReady", this.handleSlotReady), googletag.pubads().removeEventListener("rewardedSlotClosed", this.handleSlotClosed), googletag.pubads().removeEventListener("rewardedSlotGranted", this.handleSlotGranted), googletag.pubads().removeEventListener("slotRenderEnded", this.handleSlotRenderEnded), this.rewardedSlot && (googletag.destroySlots([this.rewardedSlot]), this.rewardedSlot = null), (s = (o = this.adsContext) == null ? void 0 : o.adBreakDone) == null || s.call(o, r), this.adsContext = null;
3013
- }), $(this, "reinit", (r) => {
3436
+ }), j(this, "reinit", (r) => {
3014
3437
  this.destroy(r), this.init();
3015
- }), $(this, "handleSlotReady", (r) => {
3438
+ }), j(this, "handleSlotReady", (r) => {
3016
3439
  r.slot === this.rewardedSlot && (this.readyEvent = r);
3017
- }), $(this, "handleSlotClosed", (r) => {
3440
+ }), j(this, "handleSlotClosed", (r) => {
3018
3441
  var o, s;
3019
3442
  if (this.adsContext && r.slot === this.rewardedSlot) {
3020
3443
  const a = this.rewardedPayload ? "viewed" : "dismissed";
@@ -3022,13 +3445,13 @@ class Mi {
3022
3445
  this.reinit(a);
3023
3446
  });
3024
3447
  }
3025
- }), $(this, "handleSlotGranted", (r) => {
3448
+ }), j(this, "handleSlotGranted", (r) => {
3026
3449
  this.adsContext && r.slot === this.rewardedSlot && (this.rewardedPayload = r.payload);
3027
- }), $(this, "handleSlotRenderEnded", (r) => {
3450
+ }), j(this, "handleSlotRenderEnded", (r) => {
3028
3451
  r.slot === this.rewardedSlot && r.isEmpty && this.adsContext && this.withCommand(() => {
3029
3452
  this.reinit("frequencyCapped");
3030
3453
  });
3031
- }), $(this, "requestAds", (r) => {
3454
+ }), j(this, "requestAds", (r) => {
3032
3455
  this.withCommand(() => {
3033
3456
  if (this.adsContext && this.reinit("ignored"), this.rewardedSlot || this.init(), this.adsContext = r, !this.rewardedSlot) {
3034
3457
  this.reinit("notReady");
@@ -3051,19 +3474,19 @@ class Mi {
3051
3474
  }, 500);
3052
3475
  }
3053
3476
  });
3054
- }), this.adUnit = e, this.project = i, this.keyValue = n, Ni(), this.withCommand(() => {
3477
+ }), this.adUnit = e, this.project = i, this.keyValue = n, Vi(), this.withCommand(() => {
3055
3478
  this.init();
3056
3479
  });
3057
3480
  }
3058
3481
  }
3059
- function V(t, e, i) {
3060
- return (e = Qr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3482
+ function W(t, e, i) {
3483
+ return (e = go(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3061
3484
  }
3062
- function Qr(t) {
3063
- var e = Zr(t, "string");
3485
+ function go(t) {
3486
+ var e = wo(t, "string");
3064
3487
  return typeof e == "symbol" ? e : e + "";
3065
3488
  }
3066
- function Zr(t, e) {
3489
+ function wo(t, e) {
3067
3490
  if (typeof t != "object" || !t)
3068
3491
  return t;
3069
3492
  var i = t[Symbol.toPrimitive];
@@ -3075,31 +3498,31 @@ function Zr(t, e) {
3075
3498
  }
3076
3499
  return (e === "string" ? String : Number)(t);
3077
3500
  }
3078
- class eo {
3501
+ class bo {
3079
3502
  constructor(e, i, n) {
3080
3503
  var r = this;
3081
- V(this, "adUnit", void 0), V(this, "project", void 0), V(this, "keyValue", void 0), V(this, "adsContext", null), V(this, "gamingInterstitialSlot", null), V(this, "readyEvent", null), V(this, "isRetrying", !1), V(this, "withCommand", function() {
3504
+ W(this, "adUnit", void 0), W(this, "project", void 0), W(this, "keyValue", void 0), W(this, "adsContext", null), W(this, "gamingInterstitialSlot", null), W(this, "readyEvent", null), W(this, "isRetrying", !1), W(this, "withCommand", function() {
3082
3505
  googletag.cmd.push(...arguments);
3083
- }), V(this, "init", () => {
3506
+ }), W(this, "init", () => {
3084
3507
  var o;
3085
3508
  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) => {
3086
3509
  var a;
3087
3510
  (a = this.gamingInterstitialSlot) == null || a.setTargeting(s, this.keyValue[s]);
3088
3511
  }), Object.keys(this.keyValue).includes("project") || (o = this.gamingInterstitialSlot) == null || o.setTargeting("project", this.project)), googletag.display(this.gamingInterstitialSlot));
3089
- }), V(this, "destroy", function(o) {
3512
+ }), W(this, "destroy", function(o) {
3090
3513
  var a, d;
3091
3514
  (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0) && ((d = (a = r.adsContext) == null ? void 0 : a.onEnd) == null || d.call(a, o), r.adsContext = null), googletag.pubads().removeEventListener("gameManualInterstitialSlotReady", r.handleSlotReady), googletag.pubads().removeEventListener("gameManualInterstitialSlotClosed", r.handleSlotClosed), r.gamingInterstitialSlot && (googletag.destroySlots([r.gamingInterstitialSlot]), r.gamingInterstitialSlot = null, r.readyEvent = null);
3092
- }), V(this, "reinit", function(o) {
3515
+ }), W(this, "reinit", function(o) {
3093
3516
  let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
3094
3517
  r.destroy(o, s), r.init();
3095
- }), V(this, "handleSlotReady", (o) => {
3518
+ }), W(this, "handleSlotReady", (o) => {
3096
3519
  this.gamingInterstitialSlot === o.slot && (this.readyEvent = o);
3097
- }), V(this, "handleSlotClosed", (o) => {
3520
+ }), W(this, "handleSlotClosed", (o) => {
3098
3521
  var s, a;
3099
3522
  this.adsContext && this.gamingInterstitialSlot === o.slot && ((a = (s = this.adsContext).afterAd) == null || a.call(s), this.withCommand(() => {
3100
3523
  this.reinit("viewed");
3101
3524
  }));
3102
- }), V(this, "requestAds", (o) => {
3525
+ }), W(this, "requestAds", (o) => {
3103
3526
  this.withCommand(() => {
3104
3527
  var s, a, d;
3105
3528
  if (this.adsContext && this.reinit("ignored"), this.gamingInterstitialSlot || this.init(), this.adsContext = o, !this.gamingInterstitialSlot) {
@@ -3112,19 +3535,19 @@ class eo {
3112
3535
  }), this.isRetrying = !1;
3113
3536
  }, 31e3)));
3114
3537
  });
3115
- }), Ni(), this.adUnit = e, this.project = i, this.keyValue = n, this.withCommand(() => {
3538
+ }), Vi(), this.adUnit = e, this.project = i, this.keyValue = n, this.withCommand(() => {
3116
3539
  this.init();
3117
3540
  });
3118
3541
  }
3119
3542
  }
3120
- function se(t, e, i) {
3121
- return (e = to(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3543
+ function fe(t, e, i) {
3544
+ return (e = Ao(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3122
3545
  }
3123
- function to(t) {
3124
- var e = io(t, "string");
3546
+ function Ao(t) {
3547
+ var e = po(t, "string");
3125
3548
  return typeof e == "symbol" ? e : e + "";
3126
3549
  }
3127
- function io(t, e) {
3550
+ function po(t, e) {
3128
3551
  if (typeof t != "object" || !t)
3129
3552
  return t;
3130
3553
  var i = t[Symbol.toPrimitive];
@@ -3136,9 +3559,9 @@ function io(t, e) {
3136
3559
  }
3137
3560
  return (e === "string" ? String : Number)(t);
3138
3561
  }
3139
- class no {
3562
+ class _o {
3140
3563
  constructor(e, i) {
3141
- se(this, "name", "GOOGLE_GPT"), se(this, "context", void 0), se(this, "contextInfo", void 0), se(this, "initParams", void 0), se(this, "rewardAdManager", void 0), se(this, "interstitialManager", void 0), se(this, "insertScript", () => {
3564
+ fe(this, "name", "GOOGLE_GPT"), fe(this, "context", void 0), fe(this, "contextInfo", void 0), fe(this, "initParams", void 0), fe(this, "rewardAdManager", void 0), fe(this, "interstitialManager", void 0), fe(this, "insertScript", () => {
3142
3565
  const n = "jolibox-google-gpt";
3143
3566
  let r = document.getElementById(n);
3144
3567
  r || (r = window.document.createElement("script"), r.id = n, r.async = !0, r.src = "https://securepubads.g.doubleclick.net/tag/js/gpt.js", r.crossOrigin = "anonymous", document.head.appendChild(r));
@@ -3146,7 +3569,7 @@ class no {
3146
3569
  }
3147
3570
  async init() {
3148
3571
  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"}`;
3149
- e && (this.rewardAdManager = new Mi(e, r, this.initParams.keyValue)), i && (this.interstitialManager = new eo(i, r, this.initParams.keyValue));
3572
+ e && (this.rewardAdManager = new Gi(e, r, this.initParams.keyValue)), i && (this.interstitialManager = new bo(i, r, this.initParams.keyValue));
3150
3573
  }
3151
3574
  adConfig(e, i) {
3152
3575
  }
@@ -3217,14 +3640,14 @@ class no {
3217
3640
  }
3218
3641
  }
3219
3642
  }
3220
- function st(t, e, i) {
3221
- return (e = ro(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3643
+ function ht(t, e, i) {
3644
+ return (e = mo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3222
3645
  }
3223
- function ro(t) {
3224
- var e = oo(t, "string");
3646
+ function mo(t) {
3647
+ var e = So(t, "string");
3225
3648
  return typeof e == "symbol" ? e : e + "";
3226
3649
  }
3227
- function oo(t, e) {
3650
+ function So(t, e) {
3228
3651
  if (typeof t != "object" || !t)
3229
3652
  return t;
3230
3653
  var i = t[Symbol.toPrimitive];
@@ -3236,10 +3659,10 @@ function oo(t, e) {
3236
3659
  }
3237
3660
  return (e === "string" ? String : Number)(t);
3238
3661
  }
3239
- class so {
3662
+ class Eo {
3240
3663
  constructor(e) {
3241
3664
  let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GAME";
3242
- st(this, "context", void 0), st(this, "placement", "GAME"), st(this, "contextInfo", void 0), this.context = e, this.placement = i, this.contextInfo = this.context.getContextInfo();
3665
+ ht(this, "context", void 0), ht(this, "placement", "GAME"), ht(this, "contextInfo", void 0), this.context = e, this.placement = i, this.contextInfo = this.context.getContextInfo();
3243
3666
  }
3244
3667
  getLocation() {
3245
3668
  const e = new URLSearchParams(window.location.search), i = {};
@@ -3253,7 +3676,7 @@ class so {
3253
3676
  getDevice() {
3254
3677
  var e, i, n, r;
3255
3678
  return {
3256
- platform: (e = this.contextInfo.platform) != null ? e : di.WebSDK,
3679
+ platform: (e = this.contextInfo.platform) != null ? e : yi.WebSDK,
3257
3680
  os: this.contextInfo.osType + "_" + this.contextInfo.runtimeType,
3258
3681
  appVersion: "1.0.0",
3259
3682
  // mock
@@ -3272,7 +3695,7 @@ class so {
3272
3695
  protocolVersion: "1.0.0",
3273
3696
  events: [{
3274
3697
  name: e,
3275
- type: si.System,
3698
+ type: fi.System,
3276
3699
  location: this.getLocation(),
3277
3700
  target: null,
3278
3701
  extra: i,
@@ -3280,19 +3703,19 @@ class so {
3280
3703
  userId: (o = this.contextInfo.userId) != null ? o : null
3281
3704
  }],
3282
3705
  device: this.getDevice(),
3283
- project: ai.WebSDK
3706
+ project: vi.WebSDK
3284
3707
  };
3285
- return vn(r);
3708
+ return wn(r);
3286
3709
  }
3287
3710
  }
3288
- function j(t, e, i) {
3289
- return (e = ao(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3711
+ function z(t, e, i) {
3712
+ return (e = ko(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3290
3713
  }
3291
- function ao(t) {
3292
- var e = lo(t, "string");
3714
+ function ko(t) {
3715
+ var e = Io(t, "string");
3293
3716
  return typeof e == "symbol" ? e : e + "";
3294
3717
  }
3295
- function lo(t, e) {
3718
+ function Io(t, e) {
3296
3719
  if (typeof t != "object" || !t)
3297
3720
  return t;
3298
3721
  var i = t[Symbol.toPrimitive];
@@ -3304,9 +3727,9 @@ function lo(t, e) {
3304
3727
  }
3305
3728
  return (e === "string" ? String : Number)(t);
3306
3729
  }
3307
- class Et {
3730
+ class Ct {
3308
3731
  constructor(e) {
3309
- j(this, "context", void 0), j(this, "adsTrackSerializer", void 0), j(this, "contextInfo", void 0), this.context = e, this.contextInfo = e.getContextInfo(), this.adsTrackSerializer = new so(this.context);
3732
+ 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 Eo(this.context);
3310
3733
  }
3311
3734
  getRequestContextData(e) {
3312
3735
  var r, o;
@@ -3342,13 +3765,13 @@ class Et {
3342
3765
  };
3343
3766
  }
3344
3767
  }
3345
- class $i {
3768
+ class qi {
3346
3769
  constructor(e, i) {
3347
3770
  var n = this;
3348
- j(this, "context", void 0), j(this, "contextInfo", void 0), j(this, "requestContext", void 0), j(this, "pendingAFGAdsInfo", {
3771
+ z(this, "context", void 0), z(this, "contextInfo", void 0), z(this, "requestContext", void 0), z(this, "pendingAFGAdsInfo", {
3349
3772
  REWARD: Promise.resolve(null),
3350
3773
  INTERSTITIAL: Promise.resolve(null)
3351
- }), j(this, "pendingAFVAdsInfo", Promise.resolve(null)), j(this, "doFetchAdsInfo", async (r) => {
3774
+ }), z(this, "pendingAFVAdsInfo", Promise.resolve(null)), z(this, "doFetchAdsInfo", async (r) => {
3352
3775
  const o = r === "afv" ? "AdsAFVSDKRequest" : "AdsAFGSDKAdBreak", s = r === "afv" ? "REWARD_INTERSTITIAL" : r === "reward" ? "REWARD" : "INTERSTITIAL", a = r === "afv" ? void 0 : "cached", {
3353
3776
  data: d,
3354
3777
  code: l
@@ -3365,34 +3788,34 @@ class $i {
3365
3788
  code: l,
3366
3789
  data: d
3367
3790
  } : null;
3368
- }), j(this, "cacheRewardInfo", () => {
3791
+ }), z(this, "cacheRewardInfo", () => {
3369
3792
  this.pendingAFGAdsInfo.REWARD = this.doFetchAdsInfo("reward").catch(() => null);
3370
- }), j(this, "cacheInterstitialInfo", (r) => {
3793
+ }), z(this, "cacheInterstitialInfo", (r) => {
3371
3794
  this.pendingAFGAdsInfo.INTERSTITIAL = this.doFetchAdsInfo(r).catch(() => null);
3372
- }), j(this, "cacheAFVInfo", () => {
3795
+ }), z(this, "cacheAFVInfo", () => {
3373
3796
  this.pendingAFVAdsInfo = this.doFetchAdsInfo("afv").catch(() => null);
3374
- }), j(this, "cacheNextAFGAdsInfo", async (r) => {
3797
+ }), z(this, "cacheNextAFGAdsInfo", async (r) => {
3375
3798
  r === "reward" ? this.cacheRewardInfo() : this.cacheInterstitialInfo(r);
3376
- }), j(this, "getAFGAdsInfo", async (r) => {
3799
+ }), z(this, "getAFGAdsInfo", async (r) => {
3377
3800
  const o = await (r === "reward" ? this.pendingAFGAdsInfo.REWARD : this.pendingAFGAdsInfo.INTERSTITIAL);
3378
3801
  return this.cacheNextAFGAdsInfo(r), o;
3379
- }), j(this, "getAFVAdsInfo", async function() {
3802
+ }), z(this, "getAFVAdsInfo", async function() {
3380
3803
  if (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0) {
3381
3804
  const o = await n.pendingAFVAdsInfo;
3382
3805
  return n.cacheAFVInfo(), o;
3383
3806
  } else
3384
3807
  return n.cacheAFVInfo(), await n.pendingAFVAdsInfo;
3385
- }), this.context = e, this.contextInfo = this.context.getContextInfo(), this.requestContext = new Et(e), i != null && i.reward && this.cacheRewardInfo(), i != null && i.interstitial && this.cacheInterstitialInfo("start"), i != null && i.afv && this.cacheAFVInfo();
3808
+ }), this.context = e, this.contextInfo = this.context.getContextInfo(), this.requestContext = new Ct(e), i != null && i.reward && this.cacheRewardInfo(), i != null && i.interstitial && this.cacheInterstitialInfo("start"), i != null && i.afv && this.cacheAFVInfo();
3386
3809
  }
3387
3810
  }
3388
- function z(t, e, i) {
3389
- return (e = uo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3811
+ function Z(t, e, i) {
3812
+ return (e = xo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3390
3813
  }
3391
- function uo(t) {
3392
- var e = co(t, "string");
3814
+ function xo(t) {
3815
+ var e = Ro(t, "string");
3393
3816
  return typeof e == "symbol" ? e : e + "";
3394
3817
  }
3395
- function co(t, e) {
3818
+ function Ro(t, e) {
3396
3819
  if (typeof t != "object" || !t)
3397
3820
  return t;
3398
3821
  var i = t[Symbol.toPrimitive];
@@ -3404,10 +3827,10 @@ function co(t, e) {
3404
3827
  }
3405
3828
  return (e === "string" ? String : Number)(t);
3406
3829
  }
3407
- class Ko {
3830
+ class ds {
3408
3831
  constructor(e) {
3409
- if (z(this, "context", void 0), z(this, "contextInfo", void 0), z(this, "providers", {}), z(this, "channelPolicy", void 0), z(this, "adsActionDetection", void 0), z(this, "requestContext", void 0), z(this, "adsRequest", void 0), z(this, "initialized", !1), z(this, "adsIsShowing", !1), z(this, "lastAdBreak", void 0), z(this, "initializedTimeStamp", Date.now()), e)
3410
- this.context = e, this.channelPolicy = new Ln(this.context), this.adsActionDetection = new Tn(this.context), this.contextInfo = this.context.getContextInfo(), this.adsRequest = new $i(e), this.requestContext = new Et(e);
3832
+ if (Z(this, "context", void 0), Z(this, "contextInfo", void 0), Z(this, "providers", {}), Z(this, "channelPolicy", void 0), Z(this, "adsActionDetection", void 0), Z(this, "requestContext", void 0), Z(this, "adsRequest", void 0), Z(this, "initialized", !1), Z(this, "adsIsShowing", !1), Z(this, "lastAdBreak", void 0), Z(this, "initializedTimeStamp", Date.now()), e)
3833
+ this.context = e, this.channelPolicy = new Bn(this.context), this.adsActionDetection = new Ln(this.context), this.contextInfo = this.context.getContextInfo(), this.adsRequest = new qi(e), this.requestContext = new Ct(e);
3411
3834
  else
3412
3835
  throw new Error("JoliboxAdsForGame requires a configuration object");
3413
3836
  }
@@ -3426,26 +3849,31 @@ class Ko {
3426
3849
  for (const n of i)
3427
3850
  switch (n.provider) {
3428
3851
  case "GOOGLE_GPT": {
3429
- const r = new no(this.context, n.params);
3852
+ const r = new _o(this.context, n.params);
3430
3853
  await r.init(), this.providers[n.provider] = r;
3431
3854
  break;
3432
3855
  }
3433
3856
  case "ADSENSE":
3434
3857
  case "ADSENSE_ADMOB": {
3435
- const r = new Mn(this.context, n.params);
3858
+ const r = new $n(this.context, n.params);
3436
3859
  await r.init(), this.providers[n.provider] = r;
3437
3860
  break;
3438
3861
  }
3439
3862
  case "OKSPIN": {
3440
- const r = new Kr(this.context, n.params);
3863
+ const r = new Wr(this.context, n.params);
3441
3864
  await r.init(), this.providers.OKSPIN = r;
3442
3865
  break;
3443
3866
  }
3444
3867
  case "APPSROCKETS": {
3445
- const r = new Jr(this.context, n.params);
3868
+ const r = new fo(this.context, n.params);
3446
3869
  await r.init(), this.providers.APPSROCKETS = r;
3447
3870
  break;
3448
3871
  }
3872
+ case "ADSENSE_BANNER_AS_AFG": {
3873
+ const r = new lo(this.context, n.params);
3874
+ await r.init(), this.providers.ADSENSE_BANNER_AS_AFG = r;
3875
+ break;
3876
+ }
3449
3877
  }
3450
3878
  this.adsRequest.cacheInterstitialInfo("start"), this.adsRequest.cacheRewardInfo(), this.initialized = !0;
3451
3879
  }
@@ -3453,7 +3881,7 @@ class Ko {
3453
3881
  this.providers.ADSENSE ? this.providers.ADSENSE.adConfig(e) : window.adsbygoogle.push(e);
3454
3882
  }
3455
3883
  async adBreak(e) {
3456
- var r, o, s, a, d, l, u, h, c, f, w, g, A, y;
3884
+ var r, o, s, a, d, l, u, c, h, f, w, v, A, y;
3457
3885
  const i = Date.now();
3458
3886
  if (i - this.initializedTimeStamp < 3e3) {
3459
3887
  (r = e.adBreakDone) == null || r.call(e, {
@@ -3501,8 +3929,8 @@ class Ko {
3501
3929
  return;
3502
3930
  }
3503
3931
  try {
3504
- const v = await this.adsRequest.getAFGAdsInfo(e.type), p = v == null ? void 0 : v.data, T = v == null ? void 0 : v.code;
3505
- if (T === "BYPASS_ADS") {
3932
+ const g = await this.adsRequest.getAFGAdsInfo(e.type), b = g == null ? void 0 : g.data, x = g == null ? void 0 : g.code;
3933
+ if (x === "BYPASS_ADS") {
3506
3934
  switch (e.type) {
3507
3935
  case "preroll": {
3508
3936
  (l = e.adBreakDone) == null || l.call(e, {
@@ -3514,8 +3942,8 @@ class Ko {
3514
3942
  }
3515
3943
  case "reward": {
3516
3944
  e.beforeReward(() => {
3517
- var R, O, b, Ce;
3518
- (R = e.beforeAd) == null || R.call(e), (O = e.adViewed) == null || O.call(e), (b = e.afterAd) == null || b.call(e), (Ce = e.adBreakDone) == null || Ce.call(e, {
3945
+ var _, m, p, ye;
3946
+ (_ = e.beforeAd) == null || _.call(e), (m = e.adViewed) == null || m.call(e), (p = e.afterAd) == null || p.call(e), (ye = e.adBreakDone) == null || ye.call(e, {
3519
3947
  breakType: e.type,
3520
3948
  breakName: e.name,
3521
3949
  breakFormat: "reward",
@@ -3525,7 +3953,7 @@ class Ko {
3525
3953
  break;
3526
3954
  }
3527
3955
  default: {
3528
- (u = e.beforeAd) == null || u.call(e), (h = e.afterAd) == null || h.call(e), (c = e.adBreakDone) == null || c.call(e, {
3956
+ (u = e.beforeAd) == null || u.call(e), (c = e.afterAd) == null || c.call(e), (h = e.adBreakDone) == null || h.call(e, {
3529
3957
  breakType: e.type,
3530
3958
  breakName: e.name,
3531
3959
  breakFormat: "interstitial",
@@ -3536,7 +3964,7 @@ class Ko {
3536
3964
  }
3537
3965
  return;
3538
3966
  }
3539
- if (!p || T !== "SUCCESS") {
3967
+ if (!b || x !== "SUCCESS") {
3540
3968
  (f = e.adBreakDone) == null || f.call(e, {
3541
3969
  breakType: e.type,
3542
3970
  breakName: e.type === "preroll" ? void 0 : e.name,
@@ -3545,8 +3973,8 @@ class Ko {
3545
3973
  });
3546
3974
  return;
3547
3975
  } else {
3548
- const R = p.sort((De, Le) => De.seq - Le.seq);
3549
- if (R.length === 0) {
3976
+ const _ = b.sort((ge, M) => ge.seq - M.seq);
3977
+ if (_.length === 0) {
3550
3978
  (w = e.adBreakDone) == null || w.call(e, {
3551
3979
  breakType: e.type,
3552
3980
  breakName: e.type === "preroll" ? void 0 : e.name,
@@ -3555,29 +3983,29 @@ class Ko {
3555
3983
  });
3556
3984
  return;
3557
3985
  }
3558
- let O = !0, b = null;
3559
- const Ce = new Rn(this.context);
3560
- for (this.adsActionDetection.adBreakIsShowing = !0; R.length > 0; ) {
3561
- const De = R.shift(), Le = this.providers[De.provider];
3562
- if (Le) {
3563
- const [Bi, Fi] = await Ce.callAdBreakAndContinue(Le, e, De, (kt) => {
3564
- var It;
3565
- this.adsIsShowing = kt, (It = this.context.eventEmitter) == null || It.emit("isAdShowing", kt);
3986
+ let m = !0, p = null;
3987
+ const ye = new Tn(this.context);
3988
+ for (this.adsActionDetection.adBreakIsShowing = !0; _.length > 0; ) {
3989
+ const ge = _.shift(), M = this.providers[ge.provider];
3990
+ if (M) {
3991
+ const [T, K] = await ye.callAdBreakAndContinue(M, e, ge, (Q) => {
3992
+ var L;
3993
+ this.adsIsShowing = Q, (L = this.context.eventEmitter) == null || L.emit("isAdShowing", Q);
3566
3994
  });
3567
- O = Bi, b = Fi;
3995
+ m = T, p = K;
3568
3996
  } else
3569
- O = !0, b = {
3997
+ m = !0, p = {
3570
3998
  breakType: e.type,
3571
3999
  breakName: e.type === "preroll" ? void 0 : e.name,
3572
4000
  breakFormat: e.type === "reward" ? "reward" : "interstitial",
3573
4001
  breakStatus: "notReady"
3574
4002
  };
3575
- if (!O)
4003
+ if (!m)
3576
4004
  break;
3577
4005
  }
3578
- O && b && ((g = e.adBreakDone) == null || g.call(e, b));
4006
+ m && p && ((v = e.adBreakDone) == null || v.call(e, p));
3579
4007
  }
3580
- } catch (v) {
4008
+ } catch (g) {
3581
4009
  (A = e.adBreakDone) == null || A.call(e, {
3582
4010
  breakType: e.type,
3583
4011
  breakFormat: e.type === "reward" ? "reward" : "interstitial",
@@ -3591,14 +4019,14 @@ class Ko {
3591
4019
  console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.");
3592
4020
  }
3593
4021
  }
3594
- function Be(t, e, i) {
3595
- return (e = ho(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4022
+ function ze(t, e, i) {
4023
+ return (e = Oo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3596
4024
  }
3597
- function ho(t) {
3598
- var e = fo(t, "string");
4025
+ function Oo(t) {
4026
+ var e = To(t, "string");
3599
4027
  return typeof e == "symbol" ? e : e + "";
3600
4028
  }
3601
- function fo(t, e) {
4029
+ function To(t, e) {
3602
4030
  if (typeof t != "object" || !t)
3603
4031
  return t;
3604
4032
  var i = t[Symbol.toPrimitive];
@@ -3610,9 +4038,9 @@ function fo(t, e) {
3610
4038
  }
3611
4039
  return (e === "string" ? String : Number)(t);
3612
4040
  }
3613
- class vo {
4041
+ class Co {
3614
4042
  constructor(e) {
3615
- Be(this, "context", void 0), Be(this, "currentProvider", void 0), Be(this, "continueCallback", void 0), Be(this, "contextInfo", void 0), this.context = e, this.contextInfo = e.getContextInfo();
4043
+ ze(this, "context", void 0), ze(this, "currentProvider", void 0), ze(this, "continueCallback", void 0), ze(this, "contextInfo", void 0), this.context = e, this.contextInfo = e.getContextInfo();
3616
4044
  }
3617
4045
  get paramsToTrack() {
3618
4046
  var e, i;
@@ -3633,7 +4061,7 @@ class vo {
3633
4061
  wrapAdPlaying(e) {
3634
4062
  return (i) => {
3635
4063
  var n, r;
3636
- this.context.track("CallAFVPlaying", this.paramsToTrack), dt() && this.context.track("mmp_ad_impression", {
4064
+ this.context.track("CallAFVPlaying", this.paramsToTrack), yt() && this.context.track("mmp_ad_impression", {
3637
4065
  ad_network: (r = (n = this.currentProvider) == null ? void 0 : n.name) != null ? r : "",
3638
4066
  ad_format: "AFV",
3639
4067
  module: "drama",
@@ -3661,14 +4089,14 @@ class vo {
3661
4089
  });
3662
4090
  }
3663
4091
  }
3664
- function at(t, e, i) {
3665
- return (e = go(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4092
+ function ft(t, e, i) {
4093
+ return (e = Do(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3666
4094
  }
3667
- function go(t) {
3668
- var e = yo(t, "string");
4095
+ function Do(t) {
4096
+ var e = Lo(t, "string");
3669
4097
  return typeof e == "symbol" ? e : e + "";
3670
4098
  }
3671
- function yo(t, e) {
4099
+ function Lo(t, e) {
3672
4100
  if (typeof t != "object" || !t)
3673
4101
  return t;
3674
4102
  var i = t[Symbol.toPrimitive];
@@ -3680,27 +4108,27 @@ function yo(t, e) {
3680
4108
  }
3681
4109
  return (e === "string" ? String : Number)(t);
3682
4110
  }
3683
- class N extends Error {
4111
+ class $ extends Error {
3684
4112
  constructor(e, i) {
3685
- super(e.message), at(this, "name", void 0), at(this, "type", void 0), at(this, "raw", void 0), this.name = "AFVRequestError", this.type = i, this.raw = e, this.stack = e.stack, this.message = e.message;
4113
+ super(e.message), ft(this, "name", void 0), ft(this, "type", void 0), ft(this, "raw", void 0), this.name = "AFVRequestError", this.type = i, this.raw = e, this.stack = e.stack, this.message = e.message;
3686
4114
  }
3687
4115
  static from(e, i) {
3688
4116
  switch (i) {
3689
4117
  case "GOOGLE_IMA_ERROR":
3690
- return new N(e, i);
4118
+ return new $(e, i);
3691
4119
  case "JOLIBOX_IMA_ERROR":
3692
- return new N(e, i);
4120
+ return new $(e, i);
3693
4121
  }
3694
4122
  }
3695
4123
  }
3696
- function I(t, e, i) {
3697
- return (e = wo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4124
+ function O(t, e, i) {
4125
+ return (e = Po(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3698
4126
  }
3699
- function wo(t) {
3700
- var e = Ao(t, "string");
4127
+ function Po(t) {
4128
+ var e = No(t, "string");
3701
4129
  return typeof e == "symbol" ? e : e + "";
3702
4130
  }
3703
- function Ao(t, e) {
4131
+ function No(t, e) {
3704
4132
  if (typeof t != "object" || !t)
3705
4133
  return t;
3706
4134
  var i = t[Symbol.toPrimitive];
@@ -3712,34 +4140,34 @@ function Ao(t, e) {
3712
4140
  }
3713
4141
  return (e === "string" ? String : Number)(t);
3714
4142
  }
3715
- class po {
4143
+ class Bo {
3716
4144
  constructor(e, i, n) {
3717
- I(this, "adsLoader", void 0), I(this, "adDisplayContainer", void 0), I(this, "isAdPlaying", !1), I(this, "isContentFinished", !1), I(this, "videoContent", void 0), I(this, "adContainer", void 0), I(this, "adsManager", void 0), I(this, "intervalTimer", void 0), I(this, "completed", !1), I(this, "adTagUrl", void 0), I(this, "notifyRequestAd", void 0), I(this, "notifyLoaded", void 0), I(this, "notifyPlayingAd", void 0), I(this, "notifyCompleted", void 0), I(this, "notifyError", void 0), I(this, "destroy", () => {
3718
- var r, o, s, a, d, l, u, h, c, f, w;
3719
- this.intervalTimer && clearInterval(this.intervalTimer), (r = this.adsManager) == null || r.stop(), (o = this.adDisplayContainer) == null || o.destroy(), (s = this.adsLoader) == null || s.removeEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.onAdsManagerLoaded), (a = this.adsLoader) == null || a.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (d = this.adsManager) == null || d.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (l = this.adsManager) == null || l.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, this.onContentPauseRequested), (u = this.adsManager) == null || u.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, this.onContentResumeRequested), (h = this.adsManager) == null || h.removeEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED, this.onAdEvent), (c = this.adsManager) == null || c.removeEventListener(window.google.ima.AdEvent.Type.LOADED, this.onAdEvent), (f = this.adsManager) == null || f.removeEventListener(window.google.ima.AdEvent.Type.STARTED, this.onAdEvent), (w = this.adsManager) == null || w.removeEventListener(window.google.ima.AdEvent.Type.COMPLETE, this.onAdEvent);
3720
- }), I(this, "requestAds", async (r, o) => {
4145
+ 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", () => {
4146
+ var r, o, s, a, d, l, u, c, h, f, w;
4147
+ 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), (w = this.adsManager) == null || w.removeEventListener(window.google.ima.AdEvent.Type.COMPLETE, this.onAdEvent);
4148
+ }), O(this, "requestAds", async (r, o) => {
3721
4149
  var u;
3722
- this.createAdDisplayContainer(), this.notifyRequestAd = r.onAdRequested, this.notifyLoaded = r.onAdLoaded, this.notifyPlayingAd = r.onAdPlaying, this.notifyCompleted = r.onAdCompleted, this.notifyError = (h) => {
3723
- var c;
3724
- return (c = r.onAdError) == null ? void 0 : c.call(r, N.from(h, "GOOGLE_IMA_ERROR"));
4150
+ this.createAdDisplayContainer(), this.notifyRequestAd = r.onAdRequested, this.notifyLoaded = r.onAdLoaded, this.notifyPlayingAd = r.onAdPlaying, this.notifyCompleted = r.onAdCompleted, this.notifyError = (c) => {
4151
+ var h;
4152
+ return (h = r.onAdError) == null ? void 0 : h.call(r, $.from(c, "GOOGLE_IMA_ERROR"));
3725
4153
  }, 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);
3726
4154
  const s = () => {
3727
- var h;
3728
- this.isAdPlaying || (this.isContentFinished = !0, (h = this.adsLoader) == null || h.contentComplete());
4155
+ var c;
4156
+ this.isAdPlaying || (this.isContentFinished = !0, (c = this.adsLoader) == null || c.contentComplete());
3729
4157
  };
3730
4158
  this.videoContent.onended = s;
3731
4159
  const a = new window.google.ima.AdsRequest();
3732
4160
  a.vastLoadTimeout = 1e4;
3733
4161
  let d = "";
3734
- Object.keys(o.params).forEach((h) => {
3735
- const c = window.encodeURIComponent(o.params[h]);
3736
- d += `&${h}=${c}`;
4162
+ Object.keys(o.params).forEach((c) => {
4163
+ const h = window.encodeURIComponent(o.params[c]);
4164
+ d += `&${c}=${h}`;
3737
4165
  });
3738
4166
  const l = `${this.adTagUrl}${d}`;
3739
4167
  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);
3740
- }), I(this, "createAdDisplayContainer", () => {
4168
+ }), O(this, "createAdDisplayContainer", () => {
3741
4169
  this.adDisplayContainer = new window.google.ima.AdDisplayContainer(this.adContainer, this.videoContent);
3742
- }), I(this, "playAds", () => {
4170
+ }), O(this, "playAds", () => {
3743
4171
  var r, o;
3744
4172
  this.videoContent.load(), this.adDisplayContainer.initialize(), this.completed = !1;
3745
4173
  try {
@@ -3747,10 +4175,10 @@ class po {
3747
4175
  } catch (s) {
3748
4176
  console.error("[JoliboxAFV] Google IMA Error: ", s), this.videoContent.play();
3749
4177
  }
3750
- }), I(this, "onAdsManagerLoaded", (r) => {
4178
+ }), O(this, "onAdsManagerLoaded", (r) => {
3751
4179
  const o = new window.google.ima.AdsRenderingSettings();
3752
4180
  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();
3753
- }), I(this, "onAdEvent", (r) => {
4181
+ }), O(this, "onAdEvent", (r) => {
3754
4182
  var s, a, d, l;
3755
4183
  const o = r.getAd();
3756
4184
  switch (r.type) {
@@ -3768,19 +4196,19 @@ class po {
3768
4196
  o != null && o.isLinear() && clearInterval(this.intervalTimer), this.completed || (this.completed = !0, (l = this.notifyCompleted) == null || l.call(this, r));
3769
4197
  break;
3770
4198
  }
3771
- }), I(this, "onAdError", (r) => {
4199
+ }), O(this, "onAdError", (r) => {
3772
4200
  var o, s;
3773
4201
  (o = this.notifyError) == null || o.call(this, r.getError()), (s = this.adsManager) == null || s.destroy();
3774
- }), I(this, "onContentPauseRequested", () => {
4202
+ }), O(this, "onContentPauseRequested", () => {
3775
4203
  this.isAdPlaying = !0, this.videoContent.pause();
3776
- }), I(this, "onContentResumeRequested", () => {
4204
+ }), O(this, "onContentResumeRequested", () => {
3777
4205
  this.isAdPlaying = !1;
3778
4206
  }), this.adTagUrl = e, this.videoContent = i, this.adContainer = n;
3779
4207
  }
3780
4208
  }
3781
- var Ke = /* @__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))(Ke || {});
3782
- const bo = () => {
3783
- const t = E(!1), e = E(!1), i = E(null), n = Dt(), r = Dt();
4209
+ var Qe = /* @__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))(Qe || {});
4210
+ const Mo = () => {
4211
+ const t = E(!1), e = E(!1), i = E(null), n = Ft(), r = Ft();
3784
4212
  return {
3785
4213
  visible: t,
3786
4214
  canRetry: e,
@@ -3788,8 +4216,8 @@ const bo = () => {
3788
4216
  videoRef: n,
3789
4217
  adContainerRef: r
3790
4218
  };
3791
- }, _o = we`
3792
- ${F}
4219
+ }, Fo = G`
4220
+ ${B}
3793
4221
  position: fixed;
3794
4222
  left: 0;
3795
4223
  top: 0;
@@ -3800,7 +4228,7 @@ const bo = () => {
3800
4228
  height: 100vh;
3801
4229
 
3802
4230
  .ads-wrapper {
3803
- ${F}
4231
+ ${B}
3804
4232
  position: relative;
3805
4233
  width: 100%;
3806
4234
  height: 100%;
@@ -3823,7 +4251,7 @@ const bo = () => {
3823
4251
  }
3824
4252
 
3825
4253
  .retry-button {
3826
- ${F}
4254
+ ${B}
3827
4255
  position: absolute;
3828
4256
  width: 100%;
3829
4257
  height: 100%;
@@ -3833,7 +4261,7 @@ const bo = () => {
3833
4261
  cursor: pointer;
3834
4262
  }
3835
4263
  }
3836
- `, mo = (t) => {
4264
+ `, $o = (t) => {
3837
4265
  let {
3838
4266
  onReady: e,
3839
4267
  state: i
@@ -3845,20 +4273,20 @@ const bo = () => {
3845
4273
  videoRef: s,
3846
4274
  adContainerRef: a
3847
4275
  } = i, d = () => {
3848
- r.value && (r.value(), L(() => {
4276
+ r.value && (r.value(), D(() => {
3849
4277
  r.value = null, o.value = !1;
3850
4278
  }));
3851
4279
  };
3852
- return Xe(() => {
4280
+ return ke(() => {
3853
4281
  e();
3854
- }, [e]), _("div", {
3855
- className: _o,
4282
+ }, [e]), S("div", {
4283
+ className: Fo,
3856
4284
  style: {
3857
4285
  display: n.value ? "block" : "none"
3858
4286
  },
3859
- children: _("div", {
4287
+ children: S("div", {
3860
4288
  className: "ads-wrapper",
3861
- children: [_("video", {
4289
+ children: [S("video", {
3862
4290
  ref: s,
3863
4291
  width: "100%",
3864
4292
  height: "100%",
@@ -3869,27 +4297,27 @@ const bo = () => {
3869
4297
  transition: "none !important",
3870
4298
  transform: "none !important",
3871
4299
  animation: "none !important",
3872
- objectFit: "cover"
4300
+ objectFit: "contain"
3873
4301
  }
3874
- }), _("div", {
4302
+ }), S("div", {
3875
4303
  id: "ad-container",
3876
4304
  ref: a
3877
- }), o.value ? _("div", {
4305
+ }), o.value ? S("div", {
3878
4306
  className: "retry-button",
3879
4307
  onClick: d,
3880
- children: _("svg", {
4308
+ children: S("svg", {
3881
4309
  width: "64",
3882
4310
  height: "64",
3883
4311
  viewBox: "0 0 64 64",
3884
4312
  fill: "none",
3885
4313
  xmlns: "http://www.w3.org/2000/svg",
3886
- children: [_("circle", {
4314
+ children: [S("circle", {
3887
4315
  cx: "32",
3888
4316
  cy: "32",
3889
4317
  r: "32",
3890
4318
  fill: "#141416",
3891
4319
  fillOpacity: "0.3"
3892
- }), _("path", {
4320
+ }), S("path", {
3893
4321
  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",
3894
4322
  fill: "white"
3895
4323
  })]
@@ -3898,14 +4326,14 @@ const bo = () => {
3898
4326
  })
3899
4327
  });
3900
4328
  };
3901
- function te(t, e, i) {
3902
- return (e = So(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4329
+ function de(t, e, i) {
4330
+ return (e = Uo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3903
4331
  }
3904
- function So(t) {
3905
- var e = Eo(t, "string");
4332
+ function Uo(t) {
4333
+ var e = jo(t, "string");
3906
4334
  return typeof e == "symbol" ? e : e + "";
3907
4335
  }
3908
- function Eo(t, e) {
4336
+ function jo(t, e) {
3909
4337
  if (typeof t != "object" || !t)
3910
4338
  return t;
3911
4339
  var i = t[Symbol.toPrimitive];
@@ -3917,9 +4345,9 @@ function Eo(t, e) {
3917
4345
  }
3918
4346
  return (e === "string" ? String : Number)(t);
3919
4347
  }
3920
- class ko {
4348
+ class Vo {
3921
4349
  constructor(e) {
3922
- te(this, "name", "GOOGLE_IMA"), te(this, "context", void 0), te(this, "adsOverlay", null), te(this, "initialized", !1), te(this, "ima", null), te(this, "state", bo()), te(this, "init", async (i) => {
4350
+ de(this, "name", "GOOGLE_IMA"), de(this, "context", void 0), de(this, "adsOverlay", null), de(this, "initialized", !1), de(this, "ima", null), de(this, "state", Mo()), de(this, "init", async (i) => {
3923
4351
  if (this.initialized)
3924
4352
  return;
3925
4353
  const n = "//imasdk.googleapis.com/js/sdkloader/ima3.js";
@@ -3935,71 +4363,71 @@ class ko {
3935
4363
  }, s.onerror = o, document.head.appendChild(s);
3936
4364
  }
3937
4365
  }), this.adsOverlay = document.createElement("div"), this.adsOverlay.id = "jolibox-ima-overlay", document.documentElement.appendChild(this.adsOverlay), await new Promise((r, o) => {
3938
- oe(_(mo, {
4366
+ le(S($o, {
3939
4367
  state: this.state,
3940
4368
  onReady: () => {
3941
- this.ima = new po(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
4369
+ this.ima = new Bo(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
3942
4370
  }
3943
4371
  }), this.adsOverlay);
3944
4372
  }), this.initialized = !0;
3945
- }), te(this, "destroy", () => {
3946
- this.adsOverlay && (oe(null, this.adsOverlay), this.adsOverlay.remove()), this.ima && this.ima.destroy(), this.initialized = !1;
3947
- }), te(this, "requestAd", (i, n) => {
4373
+ }), de(this, "destroy", () => {
4374
+ this.adsOverlay && (le(null, this.adsOverlay), this.adsOverlay.remove()), this.ima && this.ima.destroy(), this.initialized = !1;
4375
+ }), de(this, "requestAd", (i, n) => {
3948
4376
  var l;
3949
4377
  if (!this.adsOverlay || !this.ima || !this.initialized) {
3950
- const u = N.from(new Error("IMA not initialized"), "JOLIBOX_IMA_ERROR");
4378
+ const u = $.from(new Error("IMA not initialized"), "JOLIBOX_IMA_ERROR");
3951
4379
  (l = i.onAdError) == null || l.call(i, u);
3952
4380
  return;
3953
4381
  }
3954
4382
  const r = (u) => {
3955
- var h;
3956
- this.ima.destroy(), this.state.visible.value = !1, (h = i.onAdCompleted) == null || h.call(i, u);
3957
- }, o = (u) => {
3958
4383
  var c;
3959
- let h = !1;
4384
+ this.ima.destroy(), this.state.visible.value = !1, (c = i.onAdCompleted) == null || c.call(i, u);
4385
+ }, o = (u) => {
4386
+ var h;
4387
+ let c = !1;
3960
4388
  switch (u.raw.getErrorCode()) {
3961
- case Ke.AUTOPLAY_DISALLOWED:
3962
- case Ke.VIDEO_PLAY_ERROR:
3963
- case Ke.ADS_REQUEST_NETWORK_ERROR: {
3964
- h = !0;
4389
+ case Qe.AUTOPLAY_DISALLOWED:
4390
+ case Qe.VIDEO_PLAY_ERROR:
4391
+ case Qe.ADS_REQUEST_NETWORK_ERROR: {
4392
+ c = !0;
3965
4393
  break;
3966
4394
  }
3967
4395
  default: {
3968
- h = !1;
4396
+ c = !1;
3969
4397
  break;
3970
4398
  }
3971
4399
  }
3972
- if (!h)
3973
- this.ima.destroy(), L(() => {
4400
+ if (!c)
4401
+ this.ima.destroy(), D(() => {
3974
4402
  this.state.canRetry.value = !1, this.state.retry.value = null, this.state.visible.value = !1;
3975
- }), (c = i.onAdError) == null || c.call(i, u);
4403
+ }), (h = i.onAdError) == null || h.call(i, u);
3976
4404
  else {
3977
4405
  const f = () => {
3978
4406
  this.ima.destroy(), this.requestAd(i, n);
3979
4407
  };
3980
- L(() => {
4408
+ D(() => {
3981
4409
  this.state.canRetry.value = !0, this.state.retry.value = f;
3982
4410
  });
3983
4411
  }
3984
4412
  }, s = (u) => {
3985
- var h;
3986
- this.state.visible.value = !0, (h = i.onAdLoaded) == null || h.call(i, u);
4413
+ var c;
4414
+ this.state.visible.value = !0, (c = i.onAdLoaded) == null || c.call(i, u);
3987
4415
  }, a = (u) => {
3988
- var h;
3989
- (h = i.onAdPlaying) == null || h.call(i, u);
4416
+ var c;
4417
+ (c = i.onAdPlaying) == null || c.call(i, u);
3990
4418
  }, d = Object.assign({}, i);
3991
4419
  d.onAdCompleted = r, d.onAdError = o, d.onAdLoaded = s, d.onAdPlaying = a, this.ima.requestAds(d, n);
3992
4420
  }), this.context = e;
3993
4421
  }
3994
4422
  }
3995
- function J(t, e, i) {
3996
- return (e = Io(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4423
+ function ie(t, e, i) {
4424
+ return (e = Go(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3997
4425
  }
3998
- function Io(t) {
3999
- var e = Ro(t, "string");
4426
+ function Go(t) {
4427
+ var e = qo(t, "string");
4000
4428
  return typeof e == "symbol" ? e : e + "";
4001
4429
  }
4002
- function Ro(t, e) {
4430
+ function qo(t, e) {
4003
4431
  if (typeof t != "object" || !t)
4004
4432
  return t;
4005
4433
  var i = t[Symbol.toPrimitive];
@@ -4011,24 +4439,24 @@ function Ro(t, e) {
4011
4439
  }
4012
4440
  return (e === "string" ? String : Number)(t);
4013
4441
  }
4014
- class xo {
4442
+ class zo {
4015
4443
  constructor(e) {
4016
- J(this, "name", "OKSPIN"), J(this, "initialized", !1), J(this, "initCompleter", null), J(this, "context", void 0), J(this, "adsOverlay", null), J(this, "adsIsShowing", !1), J(this, "state", Ci()), J(this, "init", async (i) => {
4444
+ ie(this, "name", "OKSPIN"), ie(this, "initialized", !1), ie(this, "initCompleter", null), ie(this, "context", void 0), ie(this, "adsOverlay", null), ie(this, "adsIsShowing", !1), ie(this, "state", Fi()), ie(this, "init", async (i) => {
4017
4445
  var n;
4018
- this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), oe(_(Di, {
4446
+ this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), le(S($i, {
4019
4447
  state: this.state
4020
4448
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
4021
- }), J(this, "destroy", () => {
4449
+ }), ie(this, "destroy", () => {
4022
4450
  var i;
4023
- this.adsOverlay && (oe(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
4024
- }), J(this, "requestAd", (i, n) => {
4451
+ this.adsOverlay && (le(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
4452
+ }), ie(this, "requestAd", (i, n) => {
4025
4453
  var s, a, d, l;
4026
4454
  if (!this.adsOverlay || !this.initialized) {
4027
- (s = i.onAdError) == null || s.call(i, N.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
4455
+ (s = i.onAdError) == null || s.call(i, $.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
4028
4456
  return;
4029
4457
  }
4030
4458
  if (this.adsIsShowing) {
4031
- (a = i.onAdError) == null || a.call(i, N.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
4459
+ (a = i.onAdError) == null || a.call(i, $.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
4032
4460
  return;
4033
4461
  }
4034
4462
  (d = i.onAdRequested) == null || d.call(i);
@@ -4039,21 +4467,21 @@ class xo {
4039
4467
  var u;
4040
4468
  (u = i.onAdLoaded) == null || u.call(i, void 0);
4041
4469
  };
4042
- this.adsIsShowing = !0, L(() => {
4470
+ this.adsIsShowing = !0, D(() => {
4043
4471
  var u;
4044
4472
  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;
4045
4473
  }), (l = i.onAdPlaying) == null || l.call(i, void 0);
4046
4474
  }), this.context = e;
4047
4475
  }
4048
4476
  }
4049
- function H(t, e, i) {
4050
- return (e = Oo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4477
+ function ee(t, e, i) {
4478
+ return (e = Ko(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4051
4479
  }
4052
- function Oo(t) {
4053
- var e = To(t, "string");
4480
+ function Ko(t) {
4481
+ var e = Ho(t, "string");
4054
4482
  return typeof e == "symbol" ? e : e + "";
4055
4483
  }
4056
- function To(t, e) {
4484
+ function Ho(t, e) {
4057
4485
  if (typeof t != "object" || !t)
4058
4486
  return t;
4059
4487
  var i = t[Symbol.toPrimitive];
@@ -4065,58 +4493,58 @@ function To(t, e) {
4065
4493
  }
4066
4494
  return (e === "string" ? String : Number)(t);
4067
4495
  }
4068
- class Co {
4496
+ class Wo {
4069
4497
  constructor(e) {
4070
- H(this, "name", "APPSROCKETS"), H(this, "initialized", !1), H(this, "initCompleter", null), H(this, "context", void 0), H(this, "adsOverlay", null), H(this, "adsIsShowing", !1), H(this, "state", Li()), H(this, "processUrl", (i) => {
4498
+ ee(this, "name", "APPSROCKETS"), ee(this, "initialized", !1), ee(this, "initCompleter", null), ee(this, "context", void 0), ee(this, "adsOverlay", null), ee(this, "adsIsShowing", !1), ee(this, "state", Ui()), ee(this, "processUrl", (i) => {
4071
4499
  var s;
4072
4500
  const n = this.context.getContextInfo(), r = new URL(i), o = new URLSearchParams(r.search);
4073
4501
  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()), r.search = o.toString(), r.toString();
4074
- }), H(this, "init", async (i) => {
4502
+ }), ee(this, "init", async (i) => {
4075
4503
  var n;
4076
- this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), oe(_(Pi, {
4504
+ this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), le(S(ji, {
4077
4505
  state: this.state
4078
4506
  }), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
4079
- }), H(this, "destroy", () => {
4507
+ }), ee(this, "destroy", () => {
4080
4508
  var i;
4081
- this.adsOverlay && (oe(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
4082
- }), H(this, "requestAd", (i, n) => {
4083
- var d, l, u, h;
4509
+ this.adsOverlay && (le(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
4510
+ }), ee(this, "requestAd", (i, n) => {
4511
+ var d, l, u, c;
4084
4512
  if (!this.adsOverlay || !this.initialized) {
4085
- (d = i.onAdError) == null || d.call(i, N.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
4513
+ (d = i.onAdError) == null || d.call(i, $.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
4086
4514
  return;
4087
4515
  }
4088
4516
  if (this.adsIsShowing) {
4089
- (l = i.onAdError) == null || l.call(i, N.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
4517
+ (l = i.onAdError) == null || l.call(i, $.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
4090
4518
  return;
4091
4519
  }
4092
4520
  (u = i.onAdRequested) == null || u.call(i);
4093
4521
  const r = () => {
4094
- var c;
4095
- this.adsIsShowing = !1, (c = i.onAdCompleted) == null || c.call(i, void 0);
4522
+ var h;
4523
+ this.adsIsShowing = !1, (h = i.onAdCompleted) == null || h.call(i, void 0);
4096
4524
  }, o = () => {
4097
- var c;
4098
- (c = i.onAdLoaded) == null || c.call(i, void 0);
4099
- }, s = (c) => {
4525
+ var h;
4526
+ (h = i.onAdLoaded) == null || h.call(i, void 0);
4527
+ }, s = (h) => {
4100
4528
  var f, w;
4101
- (w = (f = this.context).handleLinkClicked) == null || w.call(f, c);
4529
+ (w = (f = this.context).handleLinkClicked) == null || w.call(f, h);
4102
4530
  }, a = () => {
4103
- var c;
4104
- (c = i.onAdError) == null || c.call(i, N.from(new Error("Ads load error"), "JOLIBOX_IMA_ERROR"));
4531
+ var h;
4532
+ (h = i.onAdError) == null || h.call(i, $.from(new Error("Ads load error"), "JOLIBOX_IMA_ERROR"));
4105
4533
  };
4106
- this.adsIsShowing = !0, L(() => {
4534
+ this.adsIsShowing = !0, D(() => {
4107
4535
  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;
4108
- }), (h = i.onAdPlaying) == null || h.call(i, void 0);
4536
+ }), (c = i.onAdPlaying) == null || c.call(i, void 0);
4109
4537
  }), this.context = e;
4110
4538
  }
4111
4539
  }
4112
- function ie(t, e, i) {
4113
- return (e = Do(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4540
+ function ue(t, e, i) {
4541
+ return (e = Jo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4114
4542
  }
4115
- function Do(t) {
4116
- var e = Lo(t, "string");
4543
+ function Jo(t) {
4544
+ var e = Xo(t, "string");
4117
4545
  return typeof e == "symbol" ? e : e + "";
4118
4546
  }
4119
- function Lo(t, e) {
4547
+ function Xo(t, e) {
4120
4548
  if (typeof t != "object" || !t)
4121
4549
  return t;
4122
4550
  var i = t[Symbol.toPrimitive];
@@ -4128,27 +4556,27 @@ function Lo(t, e) {
4128
4556
  }
4129
4557
  return (e === "string" ? String : Number)(t);
4130
4558
  }
4131
- class Po {
4559
+ class Yo {
4132
4560
  constructor(e) {
4133
- ie(this, "name", "GOOGLE_GPT"), ie(this, "context", void 0), ie(this, "contextInfo", void 0), ie(this, "rewardAdManager", void 0), ie(this, "init", async (i) => {
4561
+ ue(this, "name", "GOOGLE_GPT"), ue(this, "context", void 0), ue(this, "contextInfo", void 0), ue(this, "rewardAdManager", void 0), ue(this, "init", async (i) => {
4134
4562
  if (!this.rewardAdManager) {
4135
4563
  const n = this.contextInfo.testAdsMode ? "/22639388115/rewarded_web_example" : i.params.rewardedSlot, o = `minidrama-${this.contextInfo.runtimeType === "APP" ? "app" : "h5"}`;
4136
- this.rewardAdManager = new Mi(n, o, i.params.keyValue);
4564
+ this.rewardAdManager = new Gi(n, o, i.params.keyValue);
4137
4565
  }
4138
- }), ie(this, "insertScript", () => {
4566
+ }), ue(this, "insertScript", () => {
4139
4567
  const i = "jolibox-google-gpt";
4140
4568
  let n = document.getElementById(i);
4141
4569
  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));
4142
- }), ie(this, "destroy", () => {
4570
+ }), ue(this, "destroy", () => {
4143
4571
  var i;
4144
4572
  (i = this.rewardAdManager) == null || i.withCommand(() => {
4145
4573
  var n;
4146
4574
  (n = this.rewardAdManager) == null || n.destroy("ignored");
4147
4575
  });
4148
- }), ie(this, "requestAd", (i, n) => {
4576
+ }), ue(this, "requestAd", (i, n) => {
4149
4577
  var r;
4150
4578
  if (!this.rewardAdManager) {
4151
- (r = i.onAdError) == null || r.call(i, N.from(new Error("rewardAdManager not initialized"), "JOLIBOX_IMA_ERROR"));
4579
+ (r = i.onAdError) == null || r.call(i, $.from(new Error("rewardAdManager not initialized"), "JOLIBOX_IMA_ERROR"));
4152
4580
  return;
4153
4581
  }
4154
4582
  this.rewardAdManager.requestAds({
@@ -4171,7 +4599,7 @@ class Po {
4171
4599
  case "ignored":
4172
4600
  break;
4173
4601
  default: {
4174
- (a = i.onAdError) == null || a.call(i, N.from(new Error(o), "JOLIBOX_IMA_ERROR"));
4602
+ (a = i.onAdError) == null || a.call(i, $.from(new Error(o), "JOLIBOX_IMA_ERROR"));
4175
4603
  break;
4176
4604
  }
4177
4605
  }
@@ -4180,14 +4608,14 @@ class Po {
4180
4608
  }), this.context = e, this.contextInfo = e.getContextInfo(), this.insertScript();
4181
4609
  }
4182
4610
  }
4183
- function le(t, e, i) {
4184
- return (e = No(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4611
+ function Ae(t, e, i) {
4612
+ return (e = Qo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4185
4613
  }
4186
- function No(t) {
4187
- var e = Mo(t, "string");
4614
+ function Qo(t) {
4615
+ var e = Zo(t, "string");
4188
4616
  return typeof e == "symbol" ? e : e + "";
4189
4617
  }
4190
- function Mo(t, e) {
4618
+ function Zo(t, e) {
4191
4619
  if (typeof t != "object" || !t)
4192
4620
  return t;
4193
4621
  var i = t[Symbol.toPrimitive];
@@ -4199,10 +4627,10 @@ function Mo(t, e) {
4199
4627
  }
4200
4628
  return (e === "string" ? String : Number)(t);
4201
4629
  }
4202
- class zo {
4630
+ class ls {
4203
4631
  constructor(e) {
4204
- if (le(this, "context", void 0), le(this, "contextInfo", void 0), le(this, "providers", {}), le(this, "requestContext", void 0), le(this, "adsRequest", void 0), le(this, "initialized", !1), e)
4205
- this.context = e, this.requestContext = new Et(e), this.adsRequest = new $i(e, {
4632
+ if (Ae(this, "context", void 0), Ae(this, "contextInfo", void 0), Ae(this, "providers", {}), Ae(this, "requestContext", void 0), Ae(this, "adsRequest", void 0), Ae(this, "initialized", !1), e)
4633
+ this.context = e, this.requestContext = new Ct(e), this.adsRequest = new qi(e, {
4206
4634
  reward: !1,
4207
4635
  interstitial: !1,
4208
4636
  afv: !1
@@ -4224,22 +4652,22 @@ class zo {
4224
4652
  for (const i of e)
4225
4653
  switch (i.provider) {
4226
4654
  case "GOOGLE_GPT": {
4227
- const n = new Po(this.context);
4655
+ const n = new Yo(this.context);
4228
4656
  await n.init(i), this.providers.GOOGLE_GPT = n;
4229
4657
  break;
4230
4658
  }
4231
4659
  case "GOOGLE_IMA": {
4232
- const n = new ko(this.context);
4660
+ const n = new Vo(this.context);
4233
4661
  await n.init(i), this.providers.GOOGLE_IMA = n;
4234
4662
  break;
4235
4663
  }
4236
4664
  case "OKSPIN": {
4237
- const n = new xo(this.context);
4665
+ const n = new zo(this.context);
4238
4666
  await n.init(i), this.providers.OKSPIN = n;
4239
4667
  break;
4240
4668
  }
4241
4669
  case "APPSROCKETS": {
4242
- const n = new Co(this.context);
4670
+ const n = new Wo(this.context);
4243
4671
  await n.init(i), this.providers.APPSROCKETS = n;
4244
4672
  break;
4245
4673
  }
@@ -4256,59 +4684,59 @@ class zo {
4256
4684
  this.initialized = !1;
4257
4685
  }
4258
4686
  async requestAd(e) {
4259
- var i, n, r, o, s, a, d, l, u, h, c;
4687
+ var i, n, r, o, s, a, d, l, u, c, h;
4260
4688
  if ((i = this.context.eventEmitter) == null || i.emit("isAdShowing", !0), this.initialized || await this.init(), !this.context.checkNetwork()) {
4261
- const f = N.from(new Error("No network connection"), "JOLIBOX_IMA_ERROR");
4689
+ const f = $.from(new Error("No network connection"), "JOLIBOX_IMA_ERROR");
4262
4690
  (n = e.onAdError) == null || n.call(e, f);
4263
4691
  return;
4264
4692
  }
4265
4693
  try {
4266
- const f = await this.adsRequest.getAFVAdsInfo(!0), w = f == null ? void 0 : f.code, g = f == null ? void 0 : f.data;
4694
+ const f = await this.adsRequest.getAFVAdsInfo(!0), w = f == null ? void 0 : f.code, v = f == null ? void 0 : f.data;
4267
4695
  if (w === "BYPASS_ADS") {
4268
4696
  (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);
4269
4697
  return;
4270
4698
  }
4271
- if (g) {
4272
- const A = g == null ? void 0 : g.sort((T, R) => T.seq - R.seq);
4699
+ if (v) {
4700
+ const A = v == null ? void 0 : v.sort((x, _) => x.seq - _.seq);
4273
4701
  if (A.length === 0) {
4274
- const T = N.from(new Error("No ads available"), "JOLIBOX_IMA_ERROR");
4275
- (l = e.onAdError) == null || l.call(e, T);
4702
+ const x = $.from(new Error("No ads available"), "JOLIBOX_IMA_ERROR");
4703
+ (l = e.onAdError) == null || l.call(e, x);
4276
4704
  return;
4277
4705
  }
4278
- let y = !0, v = null;
4279
- const p = new vo(this.context);
4706
+ let y = !0, g = null;
4707
+ const b = new Co(this.context);
4280
4708
  for (; A.length > 0; ) {
4281
- const T = A.shift(), R = this.providers[T.provider];
4282
- if (R) {
4283
- const [O, b] = await p.callAdRequestAndContinue(R, e, T);
4284
- y = O, v = b;
4709
+ const x = A.shift(), _ = this.providers[x.provider];
4710
+ if (_) {
4711
+ const [m, p] = await b.callAdRequestAndContinue(_, e, x);
4712
+ y = m, g = p;
4285
4713
  } else
4286
- y = !0, v = N.from(new Error("No provider available"), "JOLIBOX_IMA_ERROR");
4714
+ y = !0, g = $.from(new Error("No provider available"), "JOLIBOX_IMA_ERROR");
4287
4715
  if (!y)
4288
4716
  break;
4289
4717
  }
4290
- y && v && ((u = e.onAdError) == null || u.call(e, v));
4718
+ y && g && ((u = e.onAdError) == null || u.call(e, g));
4291
4719
  } else {
4292
- const A = N.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
4720
+ const A = $.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
4293
4721
  (d = e.onAdError) == null || d.call(e, A);
4294
4722
  return;
4295
4723
  }
4296
4724
  } catch (f) {
4297
- const w = N.from(new Error("Failed to request ad"), "JOLIBOX_IMA_ERROR");
4298
- (h = e.onAdError) == null || h.call(e, w);
4725
+ const w = $.from(new Error("Failed to request ad"), "JOLIBOX_IMA_ERROR");
4726
+ (c = e.onAdError) == null || c.call(e, w);
4299
4727
  } finally {
4300
- (c = this.context.eventEmitter) == null || c.emit("isAdShowing", !1);
4728
+ (h = this.context.eventEmitter) == null || h.emit("isAdShowing", !1);
4301
4729
  }
4302
4730
  }
4303
4731
  }
4304
- function ue(t, e, i) {
4305
- return (e = $o(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4732
+ function pe(t, e, i) {
4733
+ return (e = es(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
4306
4734
  }
4307
- function $o(t) {
4308
- var e = Bo(t, "string");
4735
+ function es(t) {
4736
+ var e = ts(t, "string");
4309
4737
  return typeof e == "symbol" ? e : e + "";
4310
4738
  }
4311
- function Bo(t, e) {
4739
+ function ts(t, e) {
4312
4740
  if (typeof t != "object" || !t)
4313
4741
  return t;
4314
4742
  var i = t[Symbol.toPrimitive];
@@ -4320,21 +4748,21 @@ function Bo(t, e) {
4320
4748
  }
4321
4749
  return (e === "string" ? String : Number)(t);
4322
4750
  }
4323
- class Ho extends Error {
4751
+ class us extends Error {
4324
4752
  constructor(e) {
4325
- super(e), ue(this, "name", void 0), ue(this, "message", void 0), ue(this, "errMsg", void 0), ue(this, "code", void 0), ue(this, "data", void 0), ue(this, "extra", void 0), this.name = "ResponseError", this.message = e, this.errMsg = e;
4753
+ super(e), pe(this, "name", void 0), pe(this, "message", void 0), pe(this, "errMsg", void 0), pe(this, "code", void 0), pe(this, "data", void 0), pe(this, "extra", void 0), this.name = "ResponseError", this.message = e, this.errMsg = e;
4326
4754
  }
4327
4755
  }
4328
4756
  export {
4329
- N as AFVWrappedError,
4330
- Mn as GoogleAdSenseProvider,
4331
- ko as GoogleIMAProvider,
4332
- eo as InterstitialAdManager,
4333
- Ko as JoliboxAdsForGame,
4334
- zo as JoliboxAdsForVideo,
4335
- Kr as OKSpinForGameProvider,
4336
- xo as OKSpinForVideoProvider,
4337
- Ho as ResponseError,
4338
- Mi as RewardAdManager,
4339
- Ni as initGPTServices
4757
+ $ as AFVWrappedError,
4758
+ $n as GoogleAdSenseProvider,
4759
+ Vo as GoogleIMAProvider,
4760
+ bo as InterstitialAdManager,
4761
+ ds as JoliboxAdsForGame,
4762
+ ls as JoliboxAdsForVideo,
4763
+ Wr as OKSpinForGameProvider,
4764
+ zo as OKSpinForVideoProvider,
4765
+ us as ResponseError,
4766
+ Gi as RewardAdManager,
4767
+ Vi as initGPTServices
4340
4768
  };