@jolibox/ads 1.1.38 → 1.1.39

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.
Files changed (2) hide show
  1. package/dist/index.js +171 -171
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ var bt = (t, e) => {
10
10
  return i;
11
11
  };
12
12
  import { options as ue, Component as Ri, isValidElement as Oi } from "preact";
13
- import { useRef as Ti, useLayoutEffect as Di, useEffect as Ve, useMemo as Ci, useState as zt, useCallback as Li, render as re, createRef as _t } from "preact/compat";
13
+ import { useRef as Ti, useLayoutEffect as Ci, useEffect as Ve, useMemo as Di, useState as zt, useCallback as Li, render as re, createRef as _t } from "preact/compat";
14
14
  function B(t, e, i) {
15
15
  return (e = Pi(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
16
16
  }
@@ -289,18 +289,18 @@ function Ht(t) {
289
289
  return n.prototype = e.prototype, n;
290
290
  }
291
291
  var Zi = ((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))(Zi || {});
292
- function ge(t) {
292
+ function ye(t) {
293
293
  return function() {
294
294
  var e, i;
295
295
  ((i = (e = globalThis.VConsole) == null ? void 0 : e[t]) != null ? i : globalThis.console[t])(...arguments);
296
296
  };
297
297
  }
298
298
  var en = {
299
- log: ge("log"),
300
- warn: ge("warn"),
301
- info: ge("info"),
302
- error: ge("error"),
303
- debug: ge("debug")
299
+ log: ye("log"),
300
+ warn: ye("warn"),
301
+ info: ye("info"),
302
+ error: ye("error"),
303
+ debug: ye("debug")
304
304
  };
305
305
  Object.assign(globalThis, {
306
306
  logger: en
@@ -310,7 +310,7 @@ globalThis[St] || (globalThis[St] = tn);
310
310
  var Et = Symbol.for("Jolibox.canIUseMap.native"), nn = {};
311
311
  globalThis[Et] || (globalThis[Et] = nn);
312
312
  var Wt = ((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))(Wt || {}), Jt = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(Jt || {}), Yt = ((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))(Yt || {}), kt = ["name", "params"], rn = ["name", "type", "location", "target", "extra", "timestamp", "userId"], on = ["platform", "os", "appVersion", "appId", "model", "brand", "uuid", "jsSdkVersion", "extra"];
313
- function De(t, e) {
313
+ function Ce(t, e) {
314
314
  return e.map((i) => {
315
315
  if (i === "params" && t[i]) {
316
316
  let n = t[i];
@@ -320,14 +320,14 @@ function De(t, e) {
320
320
  });
321
321
  }
322
322
  function sn(t) {
323
- let e = t.location ? De(t.location, kt) : null, i = t.target ? De(t.target, kt) : null;
324
- return De(qi(zi({}, t), {
323
+ let e = t.location ? Ce(t.location, kt) : null, i = t.target ? Ce(t.target, kt) : null;
324
+ return Ce(qi(zi({}, t), {
325
325
  location: e,
326
326
  target: i
327
327
  }), rn);
328
328
  }
329
329
  function an(t) {
330
- let e = t.events.map((n) => sn(n)), i = De(t.device, on);
330
+ let e = t.events.map((n) => sn(n)), i = Ce(t.device, on);
331
331
  return [t.protocolVersion, e, i, t.project];
332
332
  }
333
333
  function dn() {
@@ -452,8 +452,8 @@ var x = tt, ln = class {
452
452
  if (this._listeners instanceof pe)
453
453
  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));
454
454
  else if (this._listeners) {
455
- let y = this._listeners.indexOf(l);
456
- y >= 0 && (this._listeners.splice(y, 1), this._size--, this._size === 0 && ((f = (c = this.options) == null ? void 0 : c.onDidRemoveLastListener) == null || f.call(c)));
455
+ let g = this._listeners.indexOf(l);
456
+ g >= 0 && (this._listeners.splice(g, 1), this._size--, this._size === 0 && ((f = (c = this.options) == null ? void 0 : c.onDidRemoveLastListener) == null || f.call(c)));
457
457
  }
458
458
  }
459
459
  };
@@ -557,7 +557,7 @@ function vn(t, e) {
557
557
  return t((r) => e(r) && i.call(n, r), null);
558
558
  });
559
559
  }
560
- var He = Symbol.for("Jolibox.hostEmitter"), yn = () => {
560
+ var He = Symbol.for("Jolibox.hostEmitter"), gn = () => {
561
561
  let t = new cn();
562
562
  return globalThis[He] || (globalThis[He] = {
563
563
  on: t.on.bind(t),
@@ -566,8 +566,8 @@ var He = Symbol.for("Jolibox.hostEmitter"), yn = () => {
566
566
  once: t.once.bind(t)
567
567
  }), globalThis[He];
568
568
  };
569
- yn();
570
- function gn(t, e) {
569
+ gn();
570
+ function yn(t, e) {
571
571
  let i = Math.min(t.length, e.length);
572
572
  for (let n = 0; n < i; n++)
573
573
  pn(t[n], e[n]);
@@ -602,7 +602,7 @@ var rt = class {
602
602
  e.handler = function() {
603
603
  for (var o = arguments.length, s = new Array(o), a = 0; a < o; a++)
604
604
  s[a] = arguments[a];
605
- return gn(s, n), r(...s);
605
+ return yn(s, n), r(...s);
606
606
  };
607
607
  }
608
608
  let {
@@ -835,9 +835,9 @@ class kn {
835
835
  }
836
836
  this.push(n);
837
837
  }), X(this, "adUnit", async (n) => {
838
- var y, v, w, g;
838
+ var g, v, w, y;
839
839
  if (this.context.track("CallAdUnit", {
840
- adFormat: (v = (y = n.adFormat) == null ? void 0 : y.toString()) != null ? v : null,
840
+ adFormat: (v = (g = n.adFormat) == null ? void 0 : g.toString()) != null ? v : null,
841
841
  fullWidthResponsive: (w = n.fullWidthResponsive) != null ? w : null
842
842
  }), document.querySelector("#jolibox-ads")) {
843
843
  console.warn("Ad unit already set, skipping");
@@ -859,7 +859,7 @@ class kn {
859
859
  if (u || (u = this.initParams.unitId), !u)
860
860
  throw new Error("slot is required");
861
861
  const h = typeof s == "object" && Array.isArray(s) ? s.join(", ") : s, c = document.createElement("ins");
862
- 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), (g = this.contextInfo.testAdsMode) != null ? g : !1) {
862
+ 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) {
863
863
  const p = document.createElement("div");
864
864
  p.style.position = "absolute", p.style.top = "0", p.style.left = "0", p.style.width = "100%", p.style.height = "100%", p.style.display = "flex", p.style.justifyContent = "center", p.style.alignItems = "center", p.style.backgroundColor = "rgba(0, 0, 0, 0.5)", p.style.color = "white", p.innerHTML = "Test Ad", c.style.position = "relative", l.appendChild(c), c.appendChild(p);
865
865
  } else
@@ -931,9 +931,9 @@ var Rn = /* @__PURE__ */ function() {
931
931
  return (r = n.parentNode) == null ? void 0 : r.removeChild(n);
932
932
  }), this.tags = [], this.ctr = 0;
933
933
  }, t;
934
- }(), M = "-ms-", je = "-moz-", A = "-webkit-", Zt = "comm", ht = "rule", ft = "decl", On = "@import", ei = "@keyframes", Tn = "@layer", Dn = Math.abs, Ge = String.fromCharCode, Cn = Object.assign;
934
+ }(), M = "-ms-", je = "-moz-", A = "-webkit-", Zt = "comm", ht = "rule", ft = "decl", On = "@import", ei = "@keyframes", Tn = "@layer", Cn = Math.abs, Ge = String.fromCharCode, Dn = Object.assign;
935
935
  function Ln(t, e) {
936
- return C(t, 0) ^ 45 ? (((e << 2 ^ C(t, 0)) << 2 ^ C(t, 1)) << 2 ^ C(t, 2)) << 2 ^ C(t, 3) : 0;
936
+ return D(t, 0) ^ 45 ? (((e << 2 ^ D(t, 0)) << 2 ^ D(t, 1)) << 2 ^ D(t, 2)) << 2 ^ D(t, 3) : 0;
937
937
  }
938
938
  function ti(t) {
939
939
  return t.trim();
@@ -947,7 +947,7 @@ function m(t, e, i) {
947
947
  function ot(t, e) {
948
948
  return t.indexOf(e);
949
949
  }
950
- function C(t, e) {
950
+ function D(t, e) {
951
951
  return t.charCodeAt(e) | 0;
952
952
  }
953
953
  function Se(t, e, i) {
@@ -970,21 +970,21 @@ function qe(t, e, i, n, r, o, s) {
970
970
  return { value: t, root: e, parent: i, type: n, props: r, children: o, line: ze, column: ce, length: s, return: "" };
971
971
  }
972
972
  function we(t, e) {
973
- return Cn(qe("", null, null, "", null, null, 0), t, { length: -t.length }, e);
973
+ return Dn(qe("", null, null, "", null, null, 0), t, { length: -t.length }, e);
974
974
  }
975
975
  function Mn() {
976
976
  return R;
977
977
  }
978
978
  function $n() {
979
- return R = U > 0 ? C(he, --U) : 0, ce--, R === 10 && (ce = 1, ze--), R;
979
+ return R = U > 0 ? D(he, --U) : 0, ce--, R === 10 && (ce = 1, ze--), R;
980
980
  }
981
981
  function G() {
982
- return R = U < ii ? C(he, U++) : 0, ce++, R === 10 && (ce = 1, ze++), R;
982
+ return R = U < ii ? D(he, U++) : 0, ce++, R === 10 && (ce = 1, ze++), R;
983
983
  }
984
984
  function Y() {
985
- return C(he, U);
985
+ return D(he, U);
986
986
  }
987
- function Ce() {
987
+ function De() {
988
988
  return U;
989
989
  }
990
990
  function ke(t, e) {
@@ -1039,7 +1039,7 @@ function jn(t) {
1039
1039
  function Un(t, e) {
1040
1040
  for (; --e && G() && !(R < 48 || R > 102 || R > 57 && R < 65 || R > 70 && R < 97); )
1041
1041
  ;
1042
- return ke(t, Ce() + (e < 6 && Y() == 32 && G() == 32));
1042
+ return ke(t, De() + (e < 6 && Y() == 32 && G() == 32));
1043
1043
  }
1044
1044
  function st(t) {
1045
1045
  for (; G(); )
@@ -1074,11 +1074,11 @@ function Vn(t) {
1074
1074
  return ri(Pe("", null, null, null, [""], t = ni(t), 0, [0], t));
1075
1075
  }
1076
1076
  function Pe(t, e, i, n, r, o, s, a, d) {
1077
- for (var l = 0, u = 0, h = s, c = 0, f = 0, y = 0, v = 1, w = 1, g = 1, p = 0, b = "", j = r, P = o, z = n, E = b; w; )
1078
- switch (y = p, p = G()) {
1077
+ for (var l = 0, u = 0, h = s, c = 0, f = 0, g = 0, v = 1, w = 1, y = 1, p = 0, b = "", j = r, P = o, z = n, E = b; w; )
1078
+ switch (g = p, p = G()) {
1079
1079
  case 40:
1080
- if (y != 108 && C(E, h - 1) == 58) {
1081
- ot(E += m(Le(p), "&", "&\f"), "&\f") != -1 && (g = -1);
1080
+ if (g != 108 && D(E, h - 1) == 58) {
1081
+ ot(E += m(Le(p), "&", "&\f"), "&\f") != -1 && (y = -1);
1082
1082
  break;
1083
1083
  }
1084
1084
  case 34:
@@ -1090,23 +1090,23 @@ function Pe(t, e, i, n, r, o, s, a, d) {
1090
1090
  case 10:
1091
1091
  case 13:
1092
1092
  case 32:
1093
- E += jn(y);
1093
+ E += jn(g);
1094
1094
  break;
1095
1095
  case 92:
1096
- E += Un(Ce() - 1, 7);
1096
+ E += Un(De() - 1, 7);
1097
1097
  continue;
1098
1098
  case 47:
1099
1099
  switch (Y()) {
1100
1100
  case 42:
1101
1101
  case 47:
1102
- Te(Gn(Bn(G(), Ce()), e, i), d);
1102
+ Te(Gn(Bn(G(), De()), e, i), d);
1103
1103
  break;
1104
1104
  default:
1105
1105
  E += "/";
1106
1106
  }
1107
1107
  break;
1108
1108
  case 123 * v:
1109
- a[l++] = J(E) * g;
1109
+ a[l++] = J(E) * y;
1110
1110
  case 125 * v:
1111
1111
  case 59:
1112
1112
  case 0:
@@ -1115,7 +1115,7 @@ function Pe(t, e, i, n, r, o, s, a, d) {
1115
1115
  case 125:
1116
1116
  w = 0;
1117
1117
  case 59 + u:
1118
- g == -1 && (E = m(E, /\f/g, "")), f > 0 && J(E) - h && Te(f > 32 ? Rt(E + ";", n, i, h - 1) : Rt(m(E, " ", "") + ";", n, i, h - 2), d);
1118
+ y == -1 && (E = m(E, /\f/g, "")), f > 0 && J(E) - h && Te(f > 32 ? Rt(E + ";", n, i, h - 1) : Rt(m(E, " ", "") + ";", n, i, h - 2), d);
1119
1119
  break;
1120
1120
  case 59:
1121
1121
  E += ";";
@@ -1124,7 +1124,7 @@ function Pe(t, e, i, n, r, o, s, a, d) {
1124
1124
  if (u === 0)
1125
1125
  Pe(E, e, z, z, j, o, h, a, P);
1126
1126
  else
1127
- switch (c === 99 && C(E, 3) === 110 ? 100 : c) {
1127
+ switch (c === 99 && D(E, 3) === 110 ? 100 : c) {
1128
1128
  case 100:
1129
1129
  case 108:
1130
1130
  case 109:
@@ -1135,10 +1135,10 @@ function Pe(t, e, i, n, r, o, s, a, d) {
1135
1135
  Pe(E, z, z, z, [""], P, 0, a, P);
1136
1136
  }
1137
1137
  }
1138
- l = u = f = 0, v = g = 1, b = E = "", h = s;
1138
+ l = u = f = 0, v = y = 1, b = E = "", h = s;
1139
1139
  break;
1140
1140
  case 58:
1141
- h = 1 + J(E), f = y;
1141
+ h = 1 + J(E), f = g;
1142
1142
  default:
1143
1143
  if (v < 1) {
1144
1144
  if (p == 123)
@@ -1148,24 +1148,24 @@ function Pe(t, e, i, n, r, o, s, a, d) {
1148
1148
  }
1149
1149
  switch (E += Ge(p), p * v) {
1150
1150
  case 38:
1151
- g = u > 0 ? 1 : (E += "\f", -1);
1151
+ y = u > 0 ? 1 : (E += "\f", -1);
1152
1152
  break;
1153
1153
  case 44:
1154
- a[l++] = (J(E) - 1) * g, g = 1;
1154
+ a[l++] = (J(E) - 1) * y, y = 1;
1155
1155
  break;
1156
1156
  case 64:
1157
- Y() === 45 && (E += Le(G())), c = Y(), u = h = J(b = E += Fn(Ce())), p++;
1157
+ Y() === 45 && (E += Le(G())), c = Y(), u = h = J(b = E += Fn(De())), p++;
1158
1158
  break;
1159
1159
  case 45:
1160
- y === 45 && J(E) == 2 && (v = 0);
1160
+ g === 45 && J(E) == 2 && (v = 0);
1161
1161
  }
1162
1162
  }
1163
1163
  return o;
1164
1164
  }
1165
1165
  function xt(t, e, i, n, r, o, s, a, d, l, u) {
1166
- for (var h = r - 1, c = r === 0 ? o : [""], f = vt(c), y = 0, v = 0, w = 0; y < n; ++y)
1167
- for (var g = 0, p = Se(t, h + 1, h = Dn(v = s[y])), b = t; g < f; ++g)
1168
- (b = ti(v > 0 ? c[g] + " " + p : m(p, /&\f/g, c[g]))) && (d[w++] = b);
1166
+ for (var h = r - 1, c = r === 0 ? o : [""], f = vt(c), g = 0, v = 0, w = 0; g < n; ++g)
1167
+ for (var y = 0, p = Se(t, h + 1, h = Cn(v = s[g])), b = t; y < f; ++y)
1168
+ (b = ti(v > 0 ? c[y] + " " + p : m(p, /&\f/g, c[y]))) && (d[w++] = b);
1169
1169
  return qe(t, e, i, r === 0 ? ht : a, d, l, u);
1170
1170
  }
1171
1171
  function Gn(t, e, i) {
@@ -1343,29 +1343,29 @@ function oi(t, e) {
1343
1343
  case 5021:
1344
1344
  case 4765:
1345
1345
  if (J(t) - 1 - e > 6)
1346
- switch (C(t, e + 1)) {
1346
+ switch (D(t, e + 1)) {
1347
1347
  case 109:
1348
- if (C(t, e + 4) !== 45)
1348
+ if (D(t, e + 4) !== 45)
1349
1349
  break;
1350
1350
  case 102:
1351
- return m(t, /(.+:)(.+)-([^]+)/, "$1" + A + "$2-$3$1" + je + (C(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
1351
+ return m(t, /(.+:)(.+)-([^]+)/, "$1" + A + "$2-$3$1" + je + (D(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
1352
1352
  case 115:
1353
1353
  return ~ot(t, "stretch") ? oi(m(t, "stretch", "fill-available"), e) + t : t;
1354
1354
  }
1355
1355
  break;
1356
1356
  case 4949:
1357
- if (C(t, e + 1) !== 115)
1357
+ if (D(t, e + 1) !== 115)
1358
1358
  break;
1359
1359
  case 6444:
1360
- switch (C(t, J(t) - 3 - (~ot(t, "!important") && 10))) {
1360
+ switch (D(t, J(t) - 3 - (~ot(t, "!important") && 10))) {
1361
1361
  case 107:
1362
1362
  return m(t, ":", ":" + A) + t;
1363
1363
  case 101:
1364
- return m(t, /(.+:)([^;!]+)(;|!.+)?/, "$1" + A + (C(t, 14) === 45 ? "inline-" : "") + "box$3$1" + A + "$2$3$1" + M + "$2box$3") + t;
1364
+ return m(t, /(.+:)([^;!]+)(;|!.+)?/, "$1" + A + (D(t, 14) === 45 ? "inline-" : "") + "box$3$1" + A + "$2$3$1" + M + "$2box$3") + t;
1365
1365
  }
1366
1366
  break;
1367
1367
  case 5936:
1368
- switch (C(t, e + 11)) {
1368
+ switch (D(t, e + 11)) {
1369
1369
  case 114:
1370
1370
  return A + t + M + m(t, /[svh]\w+-[tblr]{2}/, "tb") + t;
1371
1371
  case 108:
@@ -1423,8 +1423,8 @@ var Zn = function(e, i, n, r) {
1423
1423
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
1424
1424
  document.querySelectorAll('style[data-emotion^="' + i + ' "]'),
1425
1425
  function(v) {
1426
- for (var w = v.getAttribute("data-emotion").split(" "), g = 1; g < w.length; g++)
1427
- o[w[g]] = !0;
1426
+ for (var w = v.getAttribute("data-emotion").split(" "), y = 1; y < w.length; y++)
1427
+ o[w[y]] = !0;
1428
1428
  a.push(v);
1429
1429
  }
1430
1430
  );
@@ -1435,11 +1435,11 @@ var Zn = function(e, i, n, r) {
1435
1435
  })], c = qn(l.concat(r, h)), f = function(w) {
1436
1436
  return le(Vn(w), c);
1437
1437
  };
1438
- d = function(w, g, p, b) {
1439
- u = p, f(w ? w + "{" + g.styles + "}" : g.styles), b && (y.inserted[g.name] = !0);
1438
+ d = function(w, y, p, b) {
1439
+ u = p, f(w ? w + "{" + y.styles + "}" : y.styles), b && (g.inserted[y.name] = !0);
1440
1440
  };
1441
1441
  }
1442
- var y = {
1442
+ var g = {
1443
1443
  key: i,
1444
1444
  sheet: new Rn({
1445
1445
  key: i,
@@ -1454,7 +1454,7 @@ var Zn = function(e, i, n, r) {
1454
1454
  registered: {},
1455
1455
  insert: d
1456
1456
  };
1457
- return y.sheet.hydrate(a), y;
1457
+ return g.sheet.hydrate(a), g;
1458
1458
  };
1459
1459
  function ir(t) {
1460
1460
  for (var e = 0, i, n = 0, r = t.length; r >= 4; ++n, r -= 4)
@@ -1530,7 +1530,7 @@ var nr = {
1530
1530
  return e != null && typeof e != "boolean";
1531
1531
  }, Je = /* @__PURE__ */ Hn(function(t) {
1532
1532
  return si(t) ? t : t.replace(rr, "-$&").toLowerCase();
1533
- }), Dt = function(e, i) {
1533
+ }), Ct = function(e, i) {
1534
1534
  switch (e) {
1535
1535
  case "animation":
1536
1536
  case "animationName":
@@ -1594,10 +1594,10 @@ function sr(t, e, i) {
1594
1594
  var s = i[o];
1595
1595
  if (typeof s != "object") {
1596
1596
  var a = s;
1597
- e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" : Tt(a) && (n += Je(o) + ":" + Dt(o, a) + ";");
1597
+ e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" : Tt(a) && (n += Je(o) + ":" + Ct(o, a) + ";");
1598
1598
  } else if (Array.isArray(s) && typeof s[0] == "string" && (e == null || e[s[0]] === void 0))
1599
1599
  for (var d = 0; d < s.length; d++)
1600
- Tt(s[d]) && (n += Je(o) + ":" + Dt(o, s[d]) + ";");
1600
+ Tt(s[d]) && (n += Je(o) + ":" + Ct(o, s[d]) + ";");
1601
1601
  else {
1602
1602
  var l = Ue(t, e, s);
1603
1603
  switch (o) {
@@ -1613,7 +1613,7 @@ function sr(t, e, i) {
1613
1613
  }
1614
1614
  return n;
1615
1615
  }
1616
- var Ct = /label:\s*([^\s;{]+)\s*(;|$)/g, ie;
1616
+ var Dt = /label:\s*([^\s;{]+)\s*(;|$)/g, ie;
1617
1617
  function Ye(t, e, i) {
1618
1618
  if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
1619
1619
  return t[0];
@@ -1631,8 +1631,8 @@ function Ye(t, e, i) {
1631
1631
  var d = o;
1632
1632
  r += d[a];
1633
1633
  }
1634
- Ct.lastIndex = 0;
1635
- for (var l = "", u; (u = Ct.exec(r)) !== null; )
1634
+ Dt.lastIndex = 0;
1635
+ for (var l = "", u; (u = Dt.exec(r)) !== null; )
1636
1636
  l += "-" + u[1];
1637
1637
  var h = ir(r) + l;
1638
1638
  return {
@@ -1754,7 +1754,7 @@ function hr(t, e) {
1754
1754
  }
1755
1755
  function li(t, e) {
1756
1756
  var i = hr(at++, 7);
1757
- return yr(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
1757
+ return gr(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
1758
1758
  }
1759
1759
  function fr() {
1760
1760
  for (var t; t = di.shift(); )
@@ -1819,12 +1819,12 @@ function dt(t) {
1819
1819
  var e = V;
1820
1820
  t.__c = t.__(), V = e;
1821
1821
  }
1822
- function yr(t, e) {
1822
+ function gr(t, e) {
1823
1823
  return !t || t.length !== e.length || e.some(function(i, n) {
1824
1824
  return i !== t[n];
1825
1825
  });
1826
1826
  }
1827
- var gr = Symbol.for("preact-signals");
1827
+ var yr = Symbol.for("preact-signals");
1828
1828
  function Ke() {
1829
1829
  if (ne > 1)
1830
1830
  ne--;
@@ -1869,7 +1869,7 @@ function ui(t) {
1869
1869
  function L(t) {
1870
1870
  this.v = t, this.i = 0, this.n = void 0, this.t = void 0;
1871
1871
  }
1872
- L.prototype.brand = gr;
1872
+ L.prototype.brand = yr;
1873
1873
  L.prototype.h = function() {
1874
1874
  return !0;
1875
1875
  };
@@ -2015,13 +2015,13 @@ function vi(t) {
2015
2015
  try {
2016
2016
  e();
2017
2017
  } catch (n) {
2018
- throw t.f &= -2, t.f |= 8, yt(t), n;
2018
+ throw t.f &= -2, t.f |= 8, gt(t), n;
2019
2019
  } finally {
2020
2020
  k = i, Ke();
2021
2021
  }
2022
2022
  }
2023
2023
  }
2024
- function yt(t) {
2024
+ function gt(t) {
2025
2025
  for (var e = t.s; e !== void 0; e = e.n)
2026
2026
  e.S.U(e);
2027
2027
  t.x = void 0, t.s = void 0, vi(t);
@@ -2029,7 +2029,7 @@ function yt(t) {
2029
2029
  function pr(t) {
2030
2030
  if (k !== this)
2031
2031
  throw new Error("Out-of-order effect");
2032
- fi(this), k = t, this.f &= -2, 8 & this.f && yt(this), Ke();
2032
+ fi(this), k = t, this.f &= -2, 8 & this.f && gt(this), Ke();
2033
2033
  }
2034
2034
  function Ie(t) {
2035
2035
  this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
@@ -2056,7 +2056,7 @@ Ie.prototype.N = function() {
2056
2056
  2 & this.f || (this.f |= 2, this.o = _e, _e = this);
2057
2057
  };
2058
2058
  Ie.prototype.d = function() {
2059
- this.f |= 8, 1 & this.f || yt(this);
2059
+ this.f |= 8, 1 & this.f || gt(this);
2060
2060
  };
2061
2061
  function xe(t) {
2062
2062
  var e = new Ie(t);
@@ -2067,11 +2067,11 @@ function xe(t) {
2067
2067
  }
2068
2068
  return e.d.bind(e);
2069
2069
  }
2070
- var yi, Qe, gi = [];
2070
+ var gi, Qe, yi = [];
2071
2071
  xe(function() {
2072
- yi = this.N;
2072
+ gi = this.N;
2073
2073
  })();
2074
- function ye(t, e) {
2074
+ function ge(t, e) {
2075
2075
  ue[t] = e.bind(null, ue[t] || function() {
2076
2076
  });
2077
2077
  }
@@ -2108,7 +2108,7 @@ pi.displayName = "_st";
2108
2108
  Object.defineProperties(L.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: pi }, props: { configurable: !0, get: function() {
2109
2109
  return { data: this };
2110
2110
  } }, __b: { configurable: !0, value: 1 } });
2111
- ye("__b", function(t, e) {
2111
+ ge("__b", function(t, e) {
2112
2112
  if (typeof e.type == "string") {
2113
2113
  var i, n = e.props;
2114
2114
  for (var r in n)
@@ -2119,7 +2119,7 @@ ye("__b", function(t, e) {
2119
2119
  }
2120
2120
  t(e);
2121
2121
  });
2122
- ye("__r", function(t, e) {
2122
+ ge("__r", function(t, e) {
2123
2123
  Fe();
2124
2124
  var i, n = e.__c;
2125
2125
  n && (n.__$f &= -2, (i = n.__$u) === void 0 && (n.__$u = i = function(r) {
@@ -2131,10 +2131,10 @@ ye("__r", function(t, e) {
2131
2131
  }, o;
2132
2132
  }())), Fe(i), t(e);
2133
2133
  });
2134
- ye("__e", function(t, e, i, n) {
2134
+ ge("__e", function(t, e, i, n) {
2135
2135
  Fe(), t(e, i, n);
2136
2136
  });
2137
- ye("diffed", function(t, e) {
2137
+ ge("diffed", function(t, e) {
2138
2138
  Fe();
2139
2139
  var i;
2140
2140
  if (typeof e.type == "string" && (i = e.__e)) {
@@ -2166,7 +2166,7 @@ function wr(t, e, i, n) {
2166
2166
  n[e] !== s && (n[e] = s, r ? t[e] = s : s ? t.setAttribute(e, s) : t.removeAttribute(e));
2167
2167
  }) };
2168
2168
  }
2169
- ye("unmount", function(t, e) {
2169
+ ge("unmount", function(t, e) {
2170
2170
  if (typeof e.type == "string") {
2171
2171
  var i = e.__e;
2172
2172
  if (i) {
@@ -2188,7 +2188,7 @@ ye("unmount", function(t, e) {
2188
2188
  }
2189
2189
  t(e);
2190
2190
  });
2191
- ye("__h", function(t, e, i, n) {
2191
+ ge("__h", function(t, e, i, n) {
2192
2192
  (n < 3 || n === 9) && (e.__$f |= 2), t(e, i, n);
2193
2193
  });
2194
2194
  Ri.prototype.shouldComponentUpdate = function(t, e) {
@@ -2221,12 +2221,12 @@ var br = function(t) {
2221
2221
  };
2222
2222
  function _r() {
2223
2223
  O(function() {
2224
- for (var t; t = gi.shift(); )
2225
- yi.call(t);
2224
+ for (var t; t = yi.shift(); )
2225
+ gi.call(t);
2226
2226
  });
2227
2227
  }
2228
2228
  function bi() {
2229
- gi.push(this) === 1 && (ue.requestAnimationFrame || br)(_r);
2229
+ yi.push(this) === 1 && (ue.requestAnimationFrame || br)(_r);
2230
2230
  }
2231
2231
  const $ = fe`
2232
2232
  inset: 0;
@@ -2249,7 +2249,7 @@ const $ = fe`
2249
2249
  `;
2250
2250
  function Ar(t, e) {
2251
2251
  const i = Ti(t);
2252
- Di(() => {
2252
+ Ci(() => {
2253
2253
  i.current = t;
2254
2254
  }, [t]), Ve(() => {
2255
2255
  if (e === null)
@@ -2520,7 +2520,7 @@ const Sr = fe`
2520
2520
  src: a,
2521
2521
  mode: d
2522
2522
  };
2523
- }, Dr = fe`
2523
+ }, Cr = fe`
2524
2524
  ${$}
2525
2525
  position: fixed;
2526
2526
  z-index: 2147483647;
@@ -2553,9 +2553,9 @@ const Sr = fe`
2553
2553
  countdown: d,
2554
2554
  src: l,
2555
2555
  mode: u
2556
- } = e, h = Ci(() => Or(), []), [c, f] = zt(!1), y = (w) => {
2557
- var g, p, b, j;
2558
- a.value = !1, w === "dismiss" ? (g = n.value) == null || g.call(n) : w === "viewed" && ((p = r.value) == null || p.call(r)), (b = i.value) == null || b.call(i), (j = o.value) == null || j.call(o), f(!1);
2556
+ } = e, h = Di(() => Or(), []), [c, f] = zt(!1), g = (w) => {
2557
+ var y, p, b, j;
2558
+ a.value = !1, w === "dismiss" ? (y = n.value) == null || y.call(n) : w === "viewed" && ((p = r.value) == null || p.call(r)), (b = i.value) == null || b.call(i), (j = o.value) == null || j.call(o), f(!1);
2559
2559
  }, v = Li(() => {
2560
2560
  var w;
2561
2561
  c || (f(!0), (w = s.value) == null || w.call(s));
@@ -2565,10 +2565,10 @@ const Sr = fe`
2565
2565
  h.startTimer();
2566
2566
  }, 100);
2567
2567
  }, [c, u.value]), a.value ? _("div", {
2568
- className: Dr,
2568
+ className: Cr,
2569
2569
  children: [_(Tr, {
2570
2570
  mode: u.value,
2571
- onClose: y,
2571
+ onClose: g,
2572
2572
  countdown: d.value,
2573
2573
  state: h
2574
2574
  }), a.value && _("iframe", {
@@ -2579,9 +2579,9 @@ const Sr = fe`
2579
2579
  }) : null;
2580
2580
  };
2581
2581
  function Q(t, e, i) {
2582
- return (e = Cr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2582
+ return (e = Dr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
2583
2583
  }
2584
- function Cr(t) {
2584
+ function Dr(t) {
2585
2585
  var e = Lr(t, "string");
2586
2586
  return typeof e == "symbol" ? e : e + "";
2587
2587
  }
@@ -2678,30 +2678,30 @@ class Pr {
2678
2678
  breakStatus: "ignored"
2679
2679
  }), this.lastUnDisplayedAdBreak = null), (l = e.beforeAd) == null || l.call(e);
2680
2680
  const h = () => {
2681
- var g;
2682
- this.adsIsShowing = !1, (g = e.afterAd) == null || g.call(e);
2681
+ var y;
2682
+ this.adsIsShowing = !1, (y = e.afterAd) == null || y.call(e);
2683
2683
  }, c = {
2684
2684
  breakType: e.type,
2685
2685
  breakName: e.name,
2686
2686
  breakFormat: "reward",
2687
2687
  breakStatus: "ignored"
2688
2688
  }, f = () => {
2689
- var g;
2690
- this.adsIsShowing = !1, c.breakStatus = "dismissed", (g = e.adDismissed) == null || g.call(e);
2691
- }, y = () => {
2692
- var g;
2693
- this.adsIsShowing = !1, c.breakStatus = "viewed", (g = e.adViewed) == null || g.call(e);
2689
+ var y;
2690
+ this.adsIsShowing = !1, c.breakStatus = "dismissed", (y = e.adDismissed) == null || y.call(e);
2691
+ }, g = () => {
2692
+ var y;
2693
+ this.adsIsShowing = !1, c.breakStatus = "viewed", (y = e.adViewed) == null || y.call(e);
2694
2694
  }, v = () => {
2695
- var g;
2696
- this.adsIsShowing = !1, (g = e.adBreakDone) == null || g.call(e, c);
2695
+ var y;
2696
+ this.adsIsShowing = !1, (y = e.adBreakDone) == null || y.call(e, c);
2697
2697
  };
2698
2698
  O(() => {
2699
- this.state.afterAd.value = h, this.state.adDismissed.value = f, this.state.adViewed.value = y, this.state.adBreakDone.value = v;
2699
+ this.state.afterAd.value = h, this.state.adDismissed.value = f, this.state.adViewed.value = g, this.state.adBreakDone.value = v;
2700
2700
  });
2701
2701
  const w = () => {
2702
- var g;
2702
+ var y;
2703
2703
  if (this.lastUnDisplayedAdBreak = null, !this.adsOverlay) {
2704
- (g = e.adBreakDone) == null || g.call(e, {
2704
+ (y = e.adBreakDone) == null || y.call(e, {
2705
2705
  breakType: e.type,
2706
2706
  breakName: e.name,
2707
2707
  breakFormat: "reward",
@@ -2775,16 +2775,16 @@ const se = (t, e) => {
2775
2775
  adLinkClicked: a,
2776
2776
  visible: d,
2777
2777
  src: l
2778
- } = e, [u, h] = zt(!1), c = (y) => {
2779
- var v, w, g, p;
2780
- h(!1), d.value = !1, y === "dismiss" ? (v = n.value) == null || v.call(n) : y === "viewed" && ((w = r.value) == null || w.call(r)), (g = i.value) == null || g.call(i), (p = o.value) == null || p.call(o);
2778
+ } = e, [u, h] = zt(!1), c = (g) => {
2779
+ var v, w, y, p;
2780
+ h(!1), d.value = !1, g === "dismiss" ? (v = n.value) == null || v.call(n) : g === "viewed" && ((w = r.value) == null || w.call(r)), (y = i.value) == null || y.call(i), (p = o.value) == null || p.call(o);
2781
2781
  }, f = () => {
2782
- var y;
2783
- (y = s.value) == null || y.call(s);
2782
+ var g;
2783
+ (g = s.value) == null || g.call(s);
2784
2784
  };
2785
- return se("appsrockets_ad_dismissed", () => c("dismiss")), se("appsrockets_ad_rewarded", () => c("viewed")), se("appsrockets_ad_completed", () => c("viewed")), se("appsrockets_ad_skipped", () => c("viewed")), se("appsrockets_ad_clicked", (y) => {
2785
+ return se("appsrockets_ad_dismissed", () => c("dismiss")), se("appsrockets_ad_rewarded", () => c("viewed")), se("appsrockets_ad_completed", () => c("viewed")), se("appsrockets_ad_skipped", () => c("viewed")), se("appsrockets_ad_clicked", (g) => {
2786
2786
  var v;
2787
- return (v = a.value) == null ? void 0 : v.call(a, y);
2787
+ return (v = a.value) == null ? void 0 : v.call(a, g);
2788
2788
  }), se("appsrockets_ad_loaded", () => h(!0)), d.value ? _("div", {
2789
2789
  className: Nr,
2790
2790
  style: {
@@ -2864,8 +2864,8 @@ class jr {
2864
2864
  return;
2865
2865
  }
2866
2866
  const n = (c) => {
2867
- var f, y;
2868
- (y = (f = this.context).handleLinkClicked) == null || y.call(f, c);
2867
+ var f, g;
2868
+ (g = (f = this.context).handleLinkClicked) == null || g.call(f, c);
2869
2869
  };
2870
2870
  switch (e.type) {
2871
2871
  case "preroll": {
@@ -2893,7 +2893,7 @@ class jr {
2893
2893
  breakFormat: "interstitial",
2894
2894
  breakStatus: "viewed"
2895
2895
  });
2896
- }, y = () => {
2896
+ }, g = () => {
2897
2897
  var v;
2898
2898
  this.adsIsShowing = !1, (v = e.adBreakDone) == null || v.call(e, {
2899
2899
  breakType: e.type,
@@ -2903,7 +2903,7 @@ class jr {
2903
2903
  });
2904
2904
  };
2905
2905
  O(() => {
2906
- 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 = y, this.state.visible.value = !0;
2906
+ 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 = g, this.state.visible.value = !0;
2907
2907
  });
2908
2908
  break;
2909
2909
  }
@@ -2922,7 +2922,7 @@ class jr {
2922
2922
  breakName: e.name,
2923
2923
  breakFormat: "reward",
2924
2924
  breakStatus: "ignored"
2925
- }, y = () => {
2925
+ }, g = () => {
2926
2926
  var b;
2927
2927
  this.adsIsShowing = !1, f.breakStatus = "dismissed", (b = e.adDismissed) == null || b.call(e);
2928
2928
  }, v = () => {
@@ -2931,11 +2931,11 @@ class jr {
2931
2931
  }, w = () => {
2932
2932
  var b;
2933
2933
  this.adsIsShowing = !1, (b = e.adBreakDone) == null || b.call(e, f);
2934
- }, g = () => {
2934
+ }, y = () => {
2935
2935
  this.adsIsShowing = !1, f.breakStatus = "noAdPreloaded";
2936
2936
  };
2937
2937
  O(() => {
2938
- this.state.afterAd.value = c, this.state.adDismissed.value = y, this.state.adViewed.value = v, this.state.adBreakDone.value = w, this.state.adLinkClicked.value = n, this.state.adError.value = g;
2938
+ this.state.afterAd.value = c, this.state.adDismissed.value = g, this.state.adViewed.value = v, this.state.adBreakDone.value = w, this.state.adLinkClicked.value = n, this.state.adError.value = y;
2939
2939
  });
2940
2940
  const p = () => {
2941
2941
  var b;
@@ -3087,12 +3087,12 @@ class Gr {
3087
3087
  }));
3088
3088
  }), F(this, "requestAds", (r) => {
3089
3089
  this.withCommand(() => {
3090
- var o;
3090
+ var o, s, a;
3091
3091
  if (this.adsContext && this.reinit("ignored"), this.gamingInterstitialSlot || this.init(), this.adsContext = r, !this.gamingInterstitialSlot) {
3092
3092
  this.reinit("notReady");
3093
3093
  return;
3094
3094
  }
3095
- this.readyEvent ? ((o = r.beforeAd) == null || o.call(r), this.readyEvent.makeGameManualInterstitialVisible()) : this.reinit("frequencyCapped");
3095
+ this.readyEvent ? ((o = r.beforeAd) == null || o.call(r), this.readyEvent.makeGameManualInterstitialVisible()) : ((a = (s = this.adsContext).onEnd) == null || a.call(s, "frequencyCapped"), this.adsContext = null, googletag.pubads().refresh([this.gamingInterstitialSlot]));
3096
3096
  });
3097
3097
  }), Ei(), this.adUnit = e, this.project = i, this.keyValue = n, this.withCommand(() => {
3098
3098
  this.init();
@@ -3147,7 +3147,7 @@ class Kr {
3147
3147
  case "preroll": {
3148
3148
  (r = e.adBreakDone) == null || r.call(e, {
3149
3149
  breakType: "preroll",
3150
- breakFormat: "reward",
3150
+ breakFormat: "interstitial",
3151
3151
  breakStatus: "noAdPreloaded"
3152
3152
  });
3153
3153
  break;
@@ -3339,7 +3339,7 @@ class To {
3339
3339
  }
3340
3340
  try {
3341
3341
  const {
3342
- data: y,
3342
+ data: g,
3343
3343
  code: v
3344
3344
  } = await this.context.httpClient.post("/api/ads/info", {
3345
3345
  data: {
@@ -3359,7 +3359,7 @@ class To {
3359
3359
  });
3360
3360
  return;
3361
3361
  } else {
3362
- const w = y == null ? void 0 : y.sort((j, P) => j.seq - P.seq);
3362
+ const w = g == null ? void 0 : g.sort((j, P) => j.seq - P.seq);
3363
3363
  if (w.length === 0) {
3364
3364
  (u = e.adBreakDone) == null || u.call(e, {
3365
3365
  breakType: e.type,
@@ -3369,29 +3369,29 @@ class To {
3369
3369
  });
3370
3370
  return;
3371
3371
  }
3372
- let g = !0, p = null;
3372
+ let y = !0, p = null;
3373
3373
  const b = new Mi(this.context);
3374
3374
  for (this.adsActionDetection.adBreakIsShowing = !0; w.length > 0; ) {
3375
3375
  const j = w.shift(), P = this.providers[j.provider];
3376
3376
  if (P) {
3377
- const [z, E] = await b.callAdBreakAndContinue(P, e, j, (gt) => {
3377
+ const [z, E] = await b.callAdBreakAndContinue(P, e, j, (yt) => {
3378
3378
  var pt;
3379
- this.adsIsShowing = gt, (pt = this.context.eventEmitter) == null || pt.emit("isAdShowing", gt);
3379
+ this.adsIsShowing = yt, (pt = this.context.eventEmitter) == null || pt.emit("isAdShowing", yt);
3380
3380
  });
3381
- g = z, p = E;
3381
+ y = z, p = E;
3382
3382
  } else
3383
- g = !0, p = {
3383
+ y = !0, p = {
3384
3384
  breakType: e.type,
3385
3385
  breakName: e.type === "preroll" ? void 0 : e.name,
3386
3386
  breakFormat: e.type === "reward" ? "reward" : "interstitial",
3387
3387
  breakStatus: "notReady"
3388
3388
  };
3389
- if (!g)
3389
+ if (!y)
3390
3390
  break;
3391
3391
  }
3392
- g && p && ((h = e.adBreakDone) == null || h.call(e, p));
3392
+ y && p && ((h = e.adBreakDone) == null || h.call(e, p));
3393
3393
  }
3394
- } catch (y) {
3394
+ } catch (g) {
3395
3395
  (c = e.adBreakDone) == null || c.call(e, {
3396
3396
  breakType: e.type,
3397
3397
  breakFormat: e.type === "reward" ? "reward" : "interstitial",
@@ -3488,16 +3488,16 @@ function Zr(t, e) {
3488
3488
  }
3489
3489
  return (e === "string" ? String : Number)(t);
3490
3490
  }
3491
- class D extends Error {
3491
+ class C extends Error {
3492
3492
  constructor(e, i) {
3493
3493
  super(e.message), et(this, "name", void 0), et(this, "type", void 0), et(this, "raw", void 0), this.name = "AFVRequestError", this.type = i, this.raw = e, this.stack = e.stack, this.message = e.message;
3494
3494
  }
3495
3495
  static from(e, i) {
3496
3496
  switch (i) {
3497
3497
  case "GOOGLE_IMA_ERROR":
3498
- return new D(e, i);
3498
+ return new C(e, i);
3499
3499
  case "JOLIBOX_IMA_ERROR":
3500
- return new D(e, i);
3500
+ return new C(e, i);
3501
3501
  }
3502
3502
  }
3503
3503
  }
@@ -3523,13 +3523,13 @@ function to(t, e) {
3523
3523
  class io {
3524
3524
  constructor(e, i, n) {
3525
3525
  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", () => {
3526
- var r, o, s, a, d, l, u, h, c, f, y;
3527
- 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), (y = this.adsManager) == null || y.removeEventListener(window.google.ima.AdEvent.Type.COMPLETE, this.onAdEvent);
3526
+ var r, o, s, a, d, l, u, h, c, f, g;
3527
+ 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), (g = this.adsManager) == null || g.removeEventListener(window.google.ima.AdEvent.Type.COMPLETE, this.onAdEvent);
3528
3528
  }), I(this, "requestAds", async (r, o) => {
3529
3529
  var u;
3530
3530
  this.createAdDisplayContainer(), this.notifyRequestAd = r.onAdRequested, this.notifyLoaded = r.onAdLoaded, this.notifyPlayingAd = r.onAdPlaying, this.notifyCompleted = r.onAdCompleted, this.notifyError = (h) => {
3531
3531
  var c;
3532
- return (c = r.onAdError) == null ? void 0 : c.call(r, D.from(h, "GOOGLE_IMA_ERROR"));
3532
+ return (c = r.onAdError) == null ? void 0 : c.call(r, C.from(h, "GOOGLE_IMA_ERROR"));
3533
3533
  }, 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);
3534
3534
  const s = () => {
3535
3535
  var h;
@@ -3748,7 +3748,7 @@ class lo {
3748
3748
  }), ee(this, "requestAd", (i, n) => {
3749
3749
  var u;
3750
3750
  if (!this.adsOverlay || !this.ima || !this.initialized) {
3751
- const h = D.from(new Error("IMA not initialized"), "JOLIBOX_IMA_ERROR");
3751
+ const h = C.from(new Error("IMA not initialized"), "JOLIBOX_IMA_ERROR");
3752
3752
  (u = i.onAdError) == null || u.call(i, h);
3753
3753
  return;
3754
3754
  }
@@ -3777,11 +3777,11 @@ class lo {
3777
3777
  this.state.canRetry.value = !1, this.state.retry.value = null, this.state.visible.value = !1;
3778
3778
  }), (f = i.onAdError) == null || f.call(i, h);
3779
3779
  else {
3780
- const y = () => {
3780
+ const g = () => {
3781
3781
  this.ima.destroy(), this.requestAd(i, n);
3782
3782
  };
3783
3783
  O(() => {
3784
- this.state.canRetry.value = !0, this.state.retry.value = y;
3784
+ this.state.canRetry.value = !0, this.state.retry.value = g;
3785
3785
  });
3786
3786
  }
3787
3787
  }, a = (h) => {
@@ -3797,7 +3797,7 @@ class lo {
3797
3797
  O(() => {
3798
3798
  this.state.canRetry.value = !1, this.state.retry.value = null, this.state.visible.value = !1;
3799
3799
  });
3800
- const f = D.from(new Error("Ad server not responded"), "GOOGLE_IMA_ERROR");
3800
+ const f = C.from(new Error("Ad server not responded"), "GOOGLE_IMA_ERROR");
3801
3801
  (h = i.onAdError) == null || h.call(i, f), (c = this.ima) == null || c.destroy();
3802
3802
  }
3803
3803
  }, 5e3);
@@ -3836,11 +3836,11 @@ class ho {
3836
3836
  }), W(this, "requestAd", (i, n) => {
3837
3837
  var s, a, d, l;
3838
3838
  if (!this.adsOverlay || !this.initialized) {
3839
- (s = i.onAdError) == null || s.call(i, D.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
3839
+ (s = i.onAdError) == null || s.call(i, C.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
3840
3840
  return;
3841
3841
  }
3842
3842
  if (this.adsIsShowing) {
3843
- (a = i.onAdError) == null || a.call(i, D.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
3843
+ (a = i.onAdError) == null || a.call(i, C.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
3844
3844
  return;
3845
3845
  }
3846
3846
  (d = i.onAdRequested) == null || d.call(i);
@@ -3877,7 +3877,7 @@ function vo(t, e) {
3877
3877
  }
3878
3878
  return (e === "string" ? String : Number)(t);
3879
3879
  }
3880
- class yo {
3880
+ class go {
3881
3881
  constructor(e) {
3882
3882
  q(this, "name", "APPSROCKETS"), q(this, "initialized", !1), q(this, "initCompleter", null), q(this, "context", void 0), q(this, "adsOverlay", null), q(this, "adsIsShowing", !1), q(this, "state", mi()), q(this, "processUrl", (i) => {
3883
3883
  var s;
@@ -3894,11 +3894,11 @@ class yo {
3894
3894
  }), q(this, "requestAd", (i, n) => {
3895
3895
  var d, l, u, h;
3896
3896
  if (!this.adsOverlay || !this.initialized) {
3897
- (d = i.onAdError) == null || d.call(i, D.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
3897
+ (d = i.onAdError) == null || d.call(i, C.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
3898
3898
  return;
3899
3899
  }
3900
3900
  if (this.adsIsShowing) {
3901
- (l = i.onAdError) == null || l.call(i, D.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
3901
+ (l = i.onAdError) == null || l.call(i, C.from(new Error("Ads already showing"), "JOLIBOX_IMA_ERROR"));
3902
3902
  return;
3903
3903
  }
3904
3904
  (u = i.onAdRequested) == null || u.call(i);
@@ -3909,11 +3909,11 @@ class yo {
3909
3909
  var c;
3910
3910
  (c = i.onAdLoaded) == null || c.call(i, void 0);
3911
3911
  }, s = (c) => {
3912
- var f, y;
3913
- (y = (f = this.context).handleLinkClicked) == null || y.call(f, c);
3912
+ var f, g;
3913
+ (g = (f = this.context).handleLinkClicked) == null || g.call(f, c);
3914
3914
  }, a = () => {
3915
3915
  var c;
3916
- (c = i.onAdError) == null || c.call(i, D.from(new Error("Ads load error"), "JOLIBOX_IMA_ERROR"));
3916
+ (c = i.onAdError) == null || c.call(i, C.from(new Error("Ads load error"), "JOLIBOX_IMA_ERROR"));
3917
3917
  };
3918
3918
  this.adsIsShowing = !0, O(() => {
3919
3919
  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;
@@ -3922,9 +3922,9 @@ class yo {
3922
3922
  }
3923
3923
  }
3924
3924
  function te(t, e, i) {
3925
- return (e = go(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3925
+ return (e = yo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
3926
3926
  }
3927
- function go(t) {
3927
+ function yo(t) {
3928
3928
  var e = po(t, "string");
3929
3929
  return typeof e == "symbol" ? e : e + "";
3930
3930
  }
@@ -3960,7 +3960,7 @@ class wo {
3960
3960
  }), te(this, "requestAd", (i, n) => {
3961
3961
  var r;
3962
3962
  if (!this.rewardAdManager) {
3963
- (r = i.onAdError) == null || r.call(i, D.from(new Error("rewardAdManager not initialized"), "JOLIBOX_IMA_ERROR"));
3963
+ (r = i.onAdError) == null || r.call(i, C.from(new Error("rewardAdManager not initialized"), "JOLIBOX_IMA_ERROR"));
3964
3964
  return;
3965
3965
  }
3966
3966
  this.rewardAdManager.requestAds({
@@ -3983,7 +3983,7 @@ class wo {
3983
3983
  case "ignored":
3984
3984
  break;
3985
3985
  default: {
3986
- (a = i.onAdError) == null || a.call(i, D.from(new Error(o), "JOLIBOX_IMA_ERROR"));
3986
+ (a = i.onAdError) == null || a.call(i, C.from(new Error(o), "JOLIBOX_IMA_ERROR"));
3987
3987
  break;
3988
3988
  }
3989
3989
  }
@@ -4011,7 +4011,7 @@ function _o(t, e) {
4011
4011
  }
4012
4012
  return (e === "string" ? String : Number)(t);
4013
4013
  }
4014
- class Do {
4014
+ class Co {
4015
4015
  constructor(e) {
4016
4016
  if (be(this, "context", void 0), be(this, "contextInfo", void 0), be(this, "providers", {}), be(this, "adsTrackSerializer", void 0), be(this, "initialized", !1), e)
4017
4017
  this.context = e, this.adsTrackSerializer = new Qt(e), this.contextInfo = this.context.getContextInfo();
@@ -4080,7 +4080,7 @@ class Do {
4080
4080
  break;
4081
4081
  }
4082
4082
  case "APPSROCKETS": {
4083
- const n = new yo(this.context);
4083
+ const n = new go(this.context);
4084
4084
  await n.init(i), this.providers.APPSROCKETS = n;
4085
4085
  break;
4086
4086
  }
@@ -4099,7 +4099,7 @@ class Do {
4099
4099
  async requestAd(e) {
4100
4100
  var i, n, r, o, s, a, d;
4101
4101
  if ((i = this.context.eventEmitter) == null || i.emit("isAdShowing", !0), this.initialized || await this.init(), !this.context.checkNetwork()) {
4102
- const l = D.from(new Error("No network connection"), "JOLIBOX_IMA_ERROR");
4102
+ const l = C.from(new Error("No network connection"), "JOLIBOX_IMA_ERROR");
4103
4103
  (n = e.onAdError) == null || n.call(e, l);
4104
4104
  return;
4105
4105
  }
@@ -4116,32 +4116,32 @@ class Do {
4116
4116
  }
4117
4117
  });
4118
4118
  if (u !== "SUCCESS") {
4119
- const h = D.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
4119
+ const h = C.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
4120
4120
  (r = e.onAdError) == null || r.call(e, h);
4121
4121
  return;
4122
4122
  } else {
4123
4123
  const h = l == null ? void 0 : l.sort((v, w) => v.seq - w.seq);
4124
4124
  if (h.length === 0) {
4125
- const v = D.from(new Error("No ads available"), "JOLIBOX_IMA_ERROR");
4125
+ const v = C.from(new Error("No ads available"), "JOLIBOX_IMA_ERROR");
4126
4126
  (o = e.onAdError) == null || o.call(e, v);
4127
4127
  return;
4128
4128
  }
4129
4129
  let c = !0, f = null;
4130
- const y = new Xr(this.context);
4130
+ const g = new Xr(this.context);
4131
4131
  for (; h.length > 0; ) {
4132
4132
  const v = h.shift(), w = this.providers[v.provider];
4133
4133
  if (w) {
4134
- const [g, p] = await y.callAdRequestAndContinue(w, e, v);
4135
- c = g, f = p;
4134
+ const [y, p] = await g.callAdRequestAndContinue(w, e, v);
4135
+ c = y, f = p;
4136
4136
  } else
4137
- c = !0, f = D.from(new Error("No provider available"), "JOLIBOX_IMA_ERROR");
4137
+ c = !0, f = C.from(new Error("No provider available"), "JOLIBOX_IMA_ERROR");
4138
4138
  if (!c)
4139
4139
  break;
4140
4140
  }
4141
4141
  c && f && ((s = e.onAdError) == null || s.call(e, f));
4142
4142
  }
4143
4143
  } catch (l) {
4144
- const u = D.from(new Error("Failed to request ad"), "JOLIBOX_IMA_ERROR");
4144
+ const u = C.from(new Error("Failed to request ad"), "JOLIBOX_IMA_ERROR");
4145
4145
  (a = e.onAdError) == null || a.call(e, u);
4146
4146
  } finally {
4147
4147
  (d = this.context.eventEmitter) == null || d.emit("isAdShowing", !1);
@@ -4167,18 +4167,18 @@ function mo(t, e) {
4167
4167
  }
4168
4168
  return (e === "string" ? String : Number)(t);
4169
4169
  }
4170
- class Co extends Error {
4170
+ class Do extends Error {
4171
4171
  constructor(e) {
4172
4172
  super(e), ae(this, "name", void 0), ae(this, "message", void 0), ae(this, "errMsg", void 0), ae(this, "code", void 0), ae(this, "data", void 0), ae(this, "extra", void 0), this.name = "ResponseError", this.message = e, this.errMsg = e;
4173
4173
  }
4174
4174
  }
4175
4175
  export {
4176
- D as AFVWrappedError,
4176
+ C as AFVWrappedError,
4177
4177
  kn as GoogleAdSenseProvider,
4178
4178
  lo as GoogleIMAProvider,
4179
4179
  To as JoliboxAdsForGame,
4180
- Do as JoliboxAdsForVideo,
4180
+ Co as JoliboxAdsForVideo,
4181
4181
  Pr as OKSpinForGameProvider,
4182
4182
  ho as OKSpinForVideoProvider,
4183
- Co as ResponseError
4183
+ Do as ResponseError
4184
4184
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jolibox/ads",
3
3
  "description": "This project is for integrating Jolibox ads providers",
4
- "version": "1.1.38",
4
+ "version": "1.1.39",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
7
7
  "type": "module",
@@ -12,9 +12,9 @@
12
12
  ],
13
13
  "types": "./dist/index.d.ts",
14
14
  "dependencies": {
15
- "@jolibox/common": "1.1.38",
15
+ "@jolibox/common": "1.1.39",
16
16
  "@emotion/css": "11.13.5",
17
- "@jolibox/types": "1.1.38",
17
+ "@jolibox/types": "1.1.39",
18
18
  "preact": "10.26.4",
19
19
  "@preact/signals": "2.0.4"
20
20
  },