@jolibox/ads 1.1.19-beta.6 → 1.1.19

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