gearboxdownloadmodal 9.5.16 → 9.5.17

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.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import Ki, { useState as M, useEffect as mi, useRef as me, createContext as il, useReducer as ts, useDebugValue as el, useCallback as ho, useContext as tl, forwardRef as al, isValidElement as Fe, cloneElement as fa, useLayoutEffect as ol } from "react";
1
+ import Ki, { useState as M, useEffect as qi, useRef as me, createContext as il, useReducer as ts, useDebugValue as el, useCallback as ho, useContext as tl, forwardRef as al, isValidElement as Fe, cloneElement as fa, useLayoutEffect as ol } from "react";
2
2
  import rl from "react-dom";
3
3
  import './index.css';function sl(e) {
4
4
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -87,7 +87,7 @@ function Al() {
87
87
  return "StrictMode";
88
88
  case G:
89
89
  return "Suspense";
90
- case x:
90
+ case F:
91
91
  return "SuspenseList";
92
92
  case X:
93
93
  return "Activity";
@@ -270,7 +270,7 @@ React keys must be passed directly to JSX without using spread:
270
270
  function u(Z) {
271
271
  return typeof Z == "object" && Z !== null && Z.$$typeof === c;
272
272
  }
273
- var I = Ki, c = Symbol.for("react.transitional.element"), d = Symbol.for("react.portal"), K = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), U = Symbol.for("react.profiler"), W = Symbol.for("react.consumer"), V = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), G = Symbol.for("react.suspense"), x = Symbol.for("react.suspense_list"), Q = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), X = Symbol.for("react.activity"), B = Symbol.for("react.client.reference"), v = I.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, P = Object.prototype.hasOwnProperty, g = Array.isArray, L = console.createTask ? console.createTask : function() {
273
+ var I = Ki, c = Symbol.for("react.transitional.element"), d = Symbol.for("react.portal"), K = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), U = Symbol.for("react.profiler"), W = Symbol.for("react.consumer"), V = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), G = Symbol.for("react.suspense"), F = Symbol.for("react.suspense_list"), Q = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), X = Symbol.for("react.activity"), B = Symbol.for("react.client.reference"), v = I.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, P = Object.prototype.hasOwnProperty, g = Array.isArray, L = console.createTask ? console.createTask : function() {
274
274
  return null;
275
275
  };
276
276
  I = {
@@ -309,7 +309,7 @@ process.env.NODE_ENV === "production" ? Xa.exports = ll() : Xa.exports = Al();
309
309
  var q = Xa.exports;
310
310
  const as = ({ children: e }) => {
311
311
  const [i, t] = M(window.innerWidth);
312
- return mi(() => {
312
+ return qi(() => {
313
313
  const a = () => {
314
314
  t(window.innerWidth);
315
315
  };
@@ -683,10 +683,10 @@ const Bl = (e) => {
683
683
  asap: Xl,
684
684
  isIterable: vl
685
685
  };
686
- function oi(e, i, t, a, o) {
686
+ function ri(e, i, t, a, o) {
687
687
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", i && (this.code = i), t && (this.config = t), a && (this.request = a), o && (this.response = o, this.status = o.status ? o.status : null);
688
688
  }
689
- y.inherits(oi, Error, {
689
+ y.inherits(ri, Error, {
690
690
  toJSON: function() {
691
691
  return {
692
692
  // Standard
@@ -707,7 +707,7 @@ y.inherits(oi, Error, {
707
707
  };
708
708
  }
709
709
  });
710
- const ps = oi.prototype, us = {};
710
+ const ps = ri.prototype, us = {};
711
711
  [
712
712
  "ERR_BAD_OPTION_VALUE",
713
713
  "ERR_BAD_OPTION",
@@ -725,15 +725,15 @@ const ps = oi.prototype, us = {};
725
725
  ].forEach((e) => {
726
726
  us[e] = { value: e };
727
727
  });
728
- Object.defineProperties(oi, us);
728
+ Object.defineProperties(ri, us);
729
729
  Object.defineProperty(ps, "isAxiosError", { value: !0 });
730
- oi.from = (e, i, t, a, o, r) => {
730
+ ri.from = (e, i, t, a, o, r) => {
731
731
  const s = Object.create(ps);
732
732
  y.toFlatObject(e, s, function(m) {
733
733
  return m !== Error.prototype;
734
734
  }, (A) => A !== "isAxiosError");
735
735
  const n = e && e.message ? e.message : "Error", l = i == null && e ? e.code : i;
736
- return oi.call(s, n, l, t, a, o), e && s.cause == null && Object.defineProperty(s, "cause", { value: e, configurable: !0 }), s.name = e && e.name || "Error", r && Object.assign(s, r), s;
736
+ return ri.call(s, n, l, t, a, o), e && s.cause == null && Object.defineProperty(s, "cause", { value: e, configurable: !0 }), s.name = e && e.name || "Error", r && Object.assign(s, r), s;
737
737
  };
738
738
  const Hl = null;
739
739
  function Ha(e) {
@@ -774,7 +774,7 @@ function ma(e, i, t) {
774
774
  if (y.isBoolean(c))
775
775
  return c.toString();
776
776
  if (!l && y.isBlob(c))
777
- throw new oi("Blob is not supported. Use a Buffer instead.");
777
+ throw new ri("Blob is not supported. Use a Buffer instead.");
778
778
  return y.isArrayBuffer(c) || y.isTypedArray(c) ? l && typeof Blob == "function" ? new Blob([c]) : Buffer.from(c) : c;
779
779
  }
780
780
  function m(c, d, K) {
@@ -1026,7 +1026,7 @@ const yo = {
1026
1026
  return JSON.parse(i, this.parseReviver);
1027
1027
  } catch (n) {
1028
1028
  if (s)
1029
- throw n.name === "SyntaxError" ? oi.from(n, oi.ERR_BAD_RESPONSE, this, null, this.response) : n;
1029
+ throw n.name === "SyntaxError" ? ri.from(n, ri.ERR_BAD_RESPONSE, this, null, this.response) : n;
1030
1030
  }
1031
1031
  }
1032
1032
  return i;
@@ -1270,16 +1270,16 @@ function hs(e) {
1270
1270
  return !!(e && e.__CANCEL__);
1271
1271
  }
1272
1272
  function Te(e, i, t) {
1273
- oi.call(this, e ?? "canceled", oi.ERR_CANCELED, i, t), this.name = "CanceledError";
1273
+ ri.call(this, e ?? "canceled", ri.ERR_CANCELED, i, t), this.name = "CanceledError";
1274
1274
  }
1275
- y.inherits(Te, oi, {
1275
+ y.inherits(Te, ri, {
1276
1276
  __CANCEL__: !0
1277
1277
  });
1278
1278
  function Ss(e, i, t) {
1279
1279
  const a = t.config.validateStatus;
1280
- !t.status || !a || a(t.status) ? e(t) : i(new oi(
1280
+ !t.status || !a || a(t.status) ? e(t) : i(new ri(
1281
1281
  "Request failed with status code " + t.status,
1282
- [oi.ERR_BAD_REQUEST, oi.ERR_BAD_RESPONSE][Math.floor(t.status / 100) - 4],
1282
+ [ri.ERR_BAD_REQUEST, ri.ERR_BAD_RESPONSE][Math.floor(t.status / 100) - 4],
1283
1283
  t.config,
1284
1284
  t.request,
1285
1285
  t
@@ -1499,25 +1499,25 @@ const gs = (e) => {
1499
1499
  config: e,
1500
1500
  request: K
1501
1501
  };
1502
- Ss(function(x) {
1503
- t(x), d();
1504
- }, function(x) {
1505
- a(x), d();
1502
+ Ss(function(F) {
1503
+ t(F), d();
1504
+ }, function(F) {
1505
+ a(F), d();
1506
1506
  }, h), K = null;
1507
1507
  }
1508
1508
  "onloadend" in K ? K.onloadend = S : K.onreadystatechange = function() {
1509
1509
  !K || K.readyState !== 4 || K.status === 0 && !(K.responseURL && K.responseURL.indexOf("file:") === 0) || setTimeout(S);
1510
1510
  }, K.onabort = function() {
1511
- K && (a(new oi("Request aborted", oi.ECONNABORTED, e, K)), K = null);
1511
+ K && (a(new ri("Request aborted", ri.ECONNABORTED, e, K)), K = null);
1512
1512
  }, K.onerror = function(V) {
1513
- const h = V && V.message ? V.message : "Network Error", G = new oi(h, oi.ERR_NETWORK, e, K);
1513
+ const h = V && V.message ? V.message : "Network Error", G = new ri(h, ri.ERR_NETWORK, e, K);
1514
1514
  G.event = V || null, a(G), K = null;
1515
1515
  }, K.ontimeout = function() {
1516
1516
  let V = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1517
1517
  const h = o.transitional || ds;
1518
- o.timeoutErrorMessage && (V = o.timeoutErrorMessage), a(new oi(
1518
+ o.timeoutErrorMessage && (V = o.timeoutErrorMessage), a(new ri(
1519
1519
  V,
1520
- h.clarifyTimeoutError ? oi.ETIMEDOUT : oi.ECONNABORTED,
1520
+ h.clarifyTimeoutError ? ri.ETIMEDOUT : ri.ECONNABORTED,
1521
1521
  e,
1522
1522
  K
1523
1523
  )), K = null;
@@ -1528,7 +1528,7 @@ const gs = (e) => {
1528
1528
  }, o.cancelToken && o.cancelToken.subscribe(m), o.signal && (o.signal.aborted ? m() : o.signal.addEventListener("abort", m)));
1529
1529
  const U = hA(o.url);
1530
1530
  if (U && Gi.protocols.indexOf(U) === -1) {
1531
- a(new oi("Unsupported protocol " + U + ":", oi.ERR_BAD_REQUEST, e));
1531
+ a(new ri("Unsupported protocol " + U + ":", ri.ERR_BAD_REQUEST, e));
1532
1532
  return;
1533
1533
  }
1534
1534
  K.send(r || null);
@@ -1541,11 +1541,11 @@ const gs = (e) => {
1541
1541
  if (!o) {
1542
1542
  o = !0, n();
1543
1543
  const m = A instanceof Error ? A : this.reason;
1544
- a.abort(m instanceof oi ? m : new Te(m instanceof Error ? m.message : m));
1544
+ a.abort(m instanceof ri ? m : new Te(m instanceof Error ? m.message : m));
1545
1545
  }
1546
1546
  };
1547
1547
  let s = i && setTimeout(() => {
1548
- s = null, r(new oi(`timeout ${i} of ms exceeded`, oi.ETIMEDOUT));
1548
+ s = null, r(new ri(`timeout ${i} of ms exceeded`, ri.ETIMEDOUT));
1549
1549
  }, i);
1550
1550
  const n = () => {
1551
1551
  e && (s && clearTimeout(s), s = null, e.forEach((A) => {
@@ -1650,7 +1650,7 @@ const gs = (e) => {
1650
1650
  let S = d && d[c];
1651
1651
  if (S)
1652
1652
  return S.call(d);
1653
- throw new oi(`Response type '${c}' is not supported`, oi.ERR_NOT_SUPPORT, K);
1653
+ throw new ri(`Response type '${c}' is not supported`, ri.ERR_NOT_SUPPORT, K);
1654
1654
  });
1655
1655
  });
1656
1656
  const u = async (c) => {
@@ -1681,12 +1681,12 @@ const gs = (e) => {
1681
1681
  timeout: V,
1682
1682
  onDownloadProgress: h,
1683
1683
  onUploadProgress: G,
1684
- responseType: x,
1684
+ responseType: F,
1685
1685
  headers: Q,
1686
1686
  withCredentials: T = "same-origin",
1687
1687
  fetchOptions: X
1688
1688
  } = gs(c), B = i || fetch;
1689
- x = x ? (x + "").toLowerCase() : "text";
1689
+ F = F ? (F + "").toLowerCase() : "text";
1690
1690
  let v = EA([U, W && W.toAbortSignal()], V), P = null;
1691
1691
  const g = v && v.unsubscribe && (() => {
1692
1692
  v.unsubscribe();
@@ -1719,7 +1719,7 @@ const gs = (e) => {
1719
1719
  };
1720
1720
  P = r && new t(d, C);
1721
1721
  let J = await (r ? B(P, X) : B(d, C));
1722
- const D = m && (x === "stream" || x === "response");
1722
+ const D = m && (F === "stream" || F === "response");
1723
1723
  if (m && (h || D && g)) {
1724
1724
  const Z = {};
1725
1725
  ["status", "statusText", "headers"].forEach((f) => {
@@ -1736,8 +1736,8 @@ const gs = (e) => {
1736
1736
  Z
1737
1737
  );
1738
1738
  }
1739
- x = x || "text";
1740
- let k = await p[y.findKey(p, x) || "text"](J, c);
1739
+ F = F || "text";
1740
+ let k = await p[y.findKey(p, F) || "text"](J, c);
1741
1741
  return !D && g && g(), await new Promise((Z, R) => {
1742
1742
  Ss(Z, R, {
1743
1743
  data: k,
@@ -1750,11 +1750,11 @@ const gs = (e) => {
1750
1750
  });
1751
1751
  } catch (Y) {
1752
1752
  throw g && g(), Y && Y.name === "TypeError" && /Load failed|fetch/i.test(Y.message) ? Object.assign(
1753
- new oi("Network Error", oi.ERR_NETWORK, c, P),
1753
+ new ri("Network Error", ri.ERR_NETWORK, c, P),
1754
1754
  {
1755
1755
  cause: Y.cause || Y
1756
1756
  }
1757
- ) : oi.from(Y, Y && Y.code, c, P);
1757
+ ) : ri.from(Y, Y && Y.code, c, P);
1758
1758
  }
1759
1759
  };
1760
1760
  }, bA = /* @__PURE__ */ new Map(), ys = (e) => {
@@ -1796,7 +1796,7 @@ function jA(e, i) {
1796
1796
  a = e[s];
1797
1797
  let n;
1798
1798
  if (o = a, !QA(a) && (o = Vo[(n = String(a)).toLowerCase()], o === void 0))
1799
- throw new oi(`Unknown adapter '${n}'`);
1799
+ throw new ri(`Unknown adapter '${n}'`);
1800
1800
  if (o && (y.isFunction(o) || (o = o.get(i))))
1801
1801
  break;
1802
1802
  r[n || "#" + s] = o;
@@ -1808,7 +1808,7 @@ function jA(e, i) {
1808
1808
  let n = t ? s.length > 1 ? `since :
1809
1809
  ` + s.map(lr).join(`
1810
1810
  `) : " " + lr(s[0]) : "as no adapter specified";
1811
- throw new oi(
1811
+ throw new ri(
1812
1812
  "There is no suitable adapter to dispatch the request " + n,
1813
1813
  "ERR_NOT_SUPPORT"
1814
1814
  );
@@ -1862,9 +1862,9 @@ pa.transitional = function(i, t, a) {
1862
1862
  }
1863
1863
  return (r, s, n) => {
1864
1864
  if (i === !1)
1865
- throw new oi(
1865
+ throw new ri(
1866
1866
  o(s, " has been removed" + (t ? " in " + t : "")),
1867
- oi.ERR_DEPRECATED
1867
+ ri.ERR_DEPRECATED
1868
1868
  );
1869
1869
  return t && !mr[s] && (mr[s] = !0, console.warn(
1870
1870
  o(
@@ -1879,7 +1879,7 @@ pa.spelling = function(i) {
1879
1879
  };
1880
1880
  function NA(e, i, t) {
1881
1881
  if (typeof e != "object")
1882
- throw new oi("options must be an object", oi.ERR_BAD_OPTION_VALUE);
1882
+ throw new ri("options must be an object", ri.ERR_BAD_OPTION_VALUE);
1883
1883
  const a = Object.keys(e);
1884
1884
  let o = a.length;
1885
1885
  for (; o-- > 0; ) {
@@ -1887,11 +1887,11 @@ function NA(e, i, t) {
1887
1887
  if (s) {
1888
1888
  const n = e[r], l = n === void 0 || s(n, r, e);
1889
1889
  if (l !== !0)
1890
- throw new oi("option " + r + " must be " + l, oi.ERR_BAD_OPTION_VALUE);
1890
+ throw new ri("option " + r + " must be " + l, ri.ERR_BAD_OPTION_VALUE);
1891
1891
  continue;
1892
1892
  }
1893
1893
  if (t !== !0)
1894
- throw new oi("Unknown option " + r, oi.ERR_BAD_OPTION);
1894
+ throw new ri("Unknown option " + r, ri.ERR_BAD_OPTION);
1895
1895
  }
1896
1896
  }
1897
1897
  const Qt = {
@@ -2187,27 +2187,27 @@ function Js(e) {
2187
2187
  return Js(Ue(e, o));
2188
2188
  }, t;
2189
2189
  }
2190
- const Mi = Js(ko);
2191
- Mi.Axios = jt;
2192
- Mi.CanceledError = Te;
2193
- Mi.CancelToken = FA;
2194
- Mi.isCancel = hs;
2195
- Mi.VERSION = Vs;
2196
- Mi.toFormData = ma;
2197
- Mi.AxiosError = oi;
2198
- Mi.Cancel = Mi.CanceledError;
2199
- Mi.all = function(i) {
2190
+ const Ei = Js(ko);
2191
+ Ei.Axios = jt;
2192
+ Ei.CanceledError = Te;
2193
+ Ei.CancelToken = FA;
2194
+ Ei.isCancel = hs;
2195
+ Ei.VERSION = Vs;
2196
+ Ei.toFormData = ma;
2197
+ Ei.AxiosError = ri;
2198
+ Ei.Cancel = Ei.CanceledError;
2199
+ Ei.all = function(i) {
2200
2200
  return Promise.all(i);
2201
2201
  };
2202
- Mi.spread = xA;
2203
- Mi.isAxiosError = OA;
2204
- Mi.mergeConfig = Ue;
2205
- Mi.AxiosHeaders = Hi;
2206
- Mi.formToJSON = (e) => Zs(y.isHTMLForm(e) ? new FormData(e) : e);
2207
- Mi.getAdapter = ks.getAdapter;
2208
- Mi.HttpStatusCode = zA;
2209
- Mi.default = Mi;
2210
- const wA = Mi;
2202
+ Ei.spread = xA;
2203
+ Ei.isAxiosError = OA;
2204
+ Ei.mergeConfig = Ue;
2205
+ Ei.AxiosHeaders = Hi;
2206
+ Ei.formToJSON = (e) => Zs(y.isHTMLForm(e) ? new FormData(e) : e);
2207
+ Ei.getAdapter = ks.getAdapter;
2208
+ Ei.HttpStatusCode = zA;
2209
+ Ei.default = Ei;
2210
+ const wA = Ei;
2211
2211
  /*! typescript-cookie v1.0.6 | MIT */
2212
2212
  const Ws = (e) => encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape), Ms = (e) => encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent), Wo = decodeURIComponent, Mo = (e) => (e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent));
2213
2213
  function TA(e) {
@@ -2292,7 +2292,7 @@ async function io(e, i, t) {
2292
2292
  let pr = null;
2293
2293
  const fA = ({ name: e, versionId: i, api: t, onNameChange: a }) => {
2294
2294
  const [o, r] = M(e), [s, n] = M(!1), l = me(e), A = window.innerWidth < 768, m = window.innerWidth >= 768 && window.innerWidth < 1440, p = e !== "Flex";
2295
- mi(() => {
2295
+ qi(() => {
2296
2296
  r(e), l.current = e;
2297
2297
  }, [e]);
2298
2298
  const u = (S) => {
@@ -2500,14 +2500,14 @@ function vA() {
2500
2500
  case p:
2501
2501
  return w;
2502
2502
  default:
2503
- var ri = w && w.$$typeof;
2504
- switch (ri) {
2503
+ var ai = w && w.$$typeof;
2504
+ switch (ai) {
2505
2505
  case n:
2506
2506
  case m:
2507
2507
  case c:
2508
2508
  case I:
2509
2509
  case s:
2510
- return ri;
2510
+ return ai;
2511
2511
  default:
2512
2512
  return di;
2513
2513
  }
@@ -2517,7 +2517,7 @@ function vA() {
2517
2517
  }
2518
2518
  }
2519
2519
  }
2520
- var h = l, G = A, x = n, Q = s, T = i, X = m, B = a, v = c, P = I, g = t, L = r, Y = o, C = p, J = !1;
2520
+ var h = l, G = A, F = n, Q = s, T = i, X = m, B = a, v = c, P = I, g = t, L = r, Y = o, C = p, J = !1;
2521
2521
  function D(j) {
2522
2522
  return J || (J = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), k(j) || V(j) === l;
2523
2523
  }
@@ -2557,7 +2557,7 @@ function vA() {
2557
2557
  function ci(j) {
2558
2558
  return V(j) === p;
2559
2559
  }
2560
- hi.AsyncMode = h, hi.ConcurrentMode = G, hi.ContextConsumer = x, hi.ContextProvider = Q, hi.Element = T, hi.ForwardRef = X, hi.Fragment = B, hi.Lazy = v, hi.Memo = P, hi.Portal = g, hi.Profiler = L, hi.StrictMode = Y, hi.Suspense = C, hi.isAsyncMode = D, hi.isConcurrentMode = k, hi.isContextConsumer = Z, hi.isContextProvider = R, hi.isElement = b, hi.isForwardRef = E, hi.isFragment = f, hi.isLazy = O, hi.isMemo = N, hi.isPortal = H, hi.isProfiler = $, hi.isStrictMode = ii, hi.isSuspense = ci, hi.isValidElementType = W, hi.typeOf = V;
2560
+ hi.AsyncMode = h, hi.ConcurrentMode = G, hi.ContextConsumer = F, hi.ContextProvider = Q, hi.Element = T, hi.ForwardRef = X, hi.Fragment = B, hi.Lazy = v, hi.Memo = P, hi.Portal = g, hi.Profiler = L, hi.StrictMode = Y, hi.Suspense = C, hi.isAsyncMode = D, hi.isConcurrentMode = k, hi.isContextConsumer = Z, hi.isContextProvider = R, hi.isElement = b, hi.isForwardRef = E, hi.isFragment = f, hi.isLazy = O, hi.isMemo = N, hi.isPortal = H, hi.isProfiler = $, hi.isStrictMode = ii, hi.isSuspense = ci, hi.isValidElementType = W, hi.typeOf = V;
2561
2561
  }()), hi;
2562
2562
  }
2563
2563
  var Kr;
@@ -2719,7 +2719,7 @@ function _A() {
2719
2719
  instanceOf: G,
2720
2720
  node: X(),
2721
2721
  objectOf: Q,
2722
- oneOf: x,
2722
+ oneOf: F,
2723
2723
  oneOfType: T,
2724
2724
  shape: v,
2725
2725
  exact: P
@@ -2821,7 +2821,7 @@ function _A() {
2821
2821
  }
2822
2822
  return K(Z);
2823
2823
  }
2824
- function x(k) {
2824
+ function F(k) {
2825
2825
  if (!Array.isArray(k))
2826
2826
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? r(
2827
2827
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
@@ -3347,12 +3347,12 @@ var rm = Ns, vi = {
3347
3347
  EXP_TABLE: new Array(256),
3348
3348
  LOG_TABLE: new Array(256)
3349
3349
  };
3350
- for (var Ri = 0; Ri < 8; Ri++)
3351
- vi.EXP_TABLE[Ri] = 1 << Ri;
3352
- for (var Ri = 8; Ri < 256; Ri++)
3353
- vi.EXP_TABLE[Ri] = vi.EXP_TABLE[Ri - 4] ^ vi.EXP_TABLE[Ri - 5] ^ vi.EXP_TABLE[Ri - 6] ^ vi.EXP_TABLE[Ri - 8];
3354
- for (var Ri = 0; Ri < 255; Ri++)
3355
- vi.LOG_TABLE[vi.EXP_TABLE[Ri]] = Ri;
3350
+ for (var Li = 0; Li < 8; Li++)
3351
+ vi.EXP_TABLE[Li] = 1 << Li;
3352
+ for (var Li = 8; Li < 256; Li++)
3353
+ vi.EXP_TABLE[Li] = vi.EXP_TABLE[Li - 4] ^ vi.EXP_TABLE[Li - 5] ^ vi.EXP_TABLE[Li - 6] ^ vi.EXP_TABLE[Li - 8];
3354
+ for (var Li = 0; Li < 255; Li++)
3355
+ vi.LOG_TABLE[vi.EXP_TABLE[Li]] = Li;
3356
3356
  var Fs = vi, ye = Fs;
3357
3357
  function Nt(e, i) {
3358
3358
  if (e.length == null)
@@ -3395,7 +3395,7 @@ var xs = Nt, zi = Qs, gr = xs, sm = Fs, Ie = {
3395
3395
  PATTERN101: 5,
3396
3396
  PATTERN110: 6,
3397
3397
  PATTERN111: 7
3398
- }, Ui = {
3398
+ }, Ri = {
3399
3399
  PATTERN_POSITION_TABLE: [
3400
3400
  [],
3401
3401
  [6, 18],
@@ -3442,13 +3442,13 @@ var xs = Nt, zi = Qs, gr = xs, sm = Fs, Ie = {
3442
3442
  G18: 7973,
3443
3443
  G15_MASK: 21522,
3444
3444
  getBCHTypeInfo: function(e) {
3445
- for (var i = e << 10; Ui.getBCHDigit(i) - Ui.getBCHDigit(Ui.G15) >= 0; )
3446
- i ^= Ui.G15 << Ui.getBCHDigit(i) - Ui.getBCHDigit(Ui.G15);
3447
- return (e << 10 | i) ^ Ui.G15_MASK;
3445
+ for (var i = e << 10; Ri.getBCHDigit(i) - Ri.getBCHDigit(Ri.G15) >= 0; )
3446
+ i ^= Ri.G15 << Ri.getBCHDigit(i) - Ri.getBCHDigit(Ri.G15);
3447
+ return (e << 10 | i) ^ Ri.G15_MASK;
3448
3448
  },
3449
3449
  getBCHTypeNumber: function(e) {
3450
- for (var i = e << 12; Ui.getBCHDigit(i) - Ui.getBCHDigit(Ui.G18) >= 0; )
3451
- i ^= Ui.G18 << Ui.getBCHDigit(i) - Ui.getBCHDigit(Ui.G18);
3450
+ for (var i = e << 12; Ri.getBCHDigit(i) - Ri.getBCHDigit(Ri.G18) >= 0; )
3451
+ i ^= Ri.G18 << Ri.getBCHDigit(i) - Ri.getBCHDigit(Ri.G18);
3452
3452
  return e << 12 | i;
3453
3453
  },
3454
3454
  getBCHDigit: function(e) {
@@ -3457,7 +3457,7 @@ var xs = Nt, zi = Qs, gr = xs, sm = Fs, Ie = {
3457
3457
  return i;
3458
3458
  },
3459
3459
  getPatternPosition: function(e) {
3460
- return Ui.PATTERN_POSITION_TABLE[e - 1];
3460
+ return Ri.PATTERN_POSITION_TABLE[e - 1];
3461
3461
  },
3462
3462
  getMask: function(e, i, t) {
3463
3463
  switch (e) {
@@ -3555,7 +3555,7 @@ var xs = Nt, zi = Qs, gr = xs, sm = Fs, Ie = {
3555
3555
  var p = Math.abs(100 * m / i / i - 50) / 5;
3556
3556
  return t += p * 10, t;
3557
3557
  }
3558
- }, nm = Ui, lm = am, Os = om, zs = rm, Se = nm, Am = xs;
3558
+ }, nm = Ri, lm = am, Os = om, zs = rm, Se = nm, Am = xs;
3559
3559
  function oe(e, i) {
3560
3560
  this.typeNumber = e, this.errorCorrectLevel = i, this.modules = null, this.moduleCount = 0, this.dataCache = null, this.dataList = [];
3561
3561
  }
@@ -4453,14 +4453,14 @@ class Pt extends ca {
4453
4453
  }
4454
4454
  if (r) {
4455
4455
  const V = Array.isArray(u), h = V ? [] : {}, G = V ? c : I;
4456
- for (const x in u)
4457
- if (Object.prototype.hasOwnProperty.call(u, x)) {
4458
- const Q = `${G}${r}${x}`;
4459
- h[x] = this.translate(Q, {
4456
+ for (const F in u)
4457
+ if (Object.prototype.hasOwnProperty.call(u, F)) {
4458
+ const Q = `${G}${r}${F}`;
4459
+ h[F] = this.translate(Q, {
4460
4460
  ...t,
4461
4461
  joinArrays: !1,
4462
4462
  ns: n
4463
- }), h[x] === Q && (h[x] = u[x]);
4463
+ }), h[F] === Q && (h[F] = u[F]);
4464
4464
  }
4465
4465
  u = h;
4466
4466
  }
@@ -4468,11 +4468,11 @@ class Pt extends ca {
4468
4468
  u = u.join(S), u && (u = this.extendTranslation(u, i, t, a));
4469
4469
  else {
4470
4470
  let V = !1, h = !1;
4471
- const G = t.count !== void 0 && !ei(t.count), x = Pt.hasDefaultValue(t), Q = G ? this.pluralResolver.getSuffix(A, t.count, t) : "", T = t.ordinal && G ? this.pluralResolver.getSuffix(A, t.count, {
4471
+ const G = t.count !== void 0 && !ei(t.count), F = Pt.hasDefaultValue(t), Q = G ? this.pluralResolver.getSuffix(A, t.count, t) : "", T = t.ordinal && G ? this.pluralResolver.getSuffix(A, t.count, {
4472
4472
  ordinal: !1
4473
4473
  }) : "", X = G && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), B = X && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${Q}`] || t[`defaultValue${T}`] || t.defaultValue;
4474
- !this.isValidLookup(u) && x && (V = !0, u = B), this.isValidLookup(u) || (h = !0, u = s);
4475
- const P = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && h ? void 0 : u, g = x && B !== u && this.options.updateMissing;
4474
+ !this.isValidLookup(u) && F && (V = !0, u = B), this.isValidLookup(u) || (h = !0, u = s);
4475
+ const P = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && h ? void 0 : u, g = F && B !== u && this.options.updateMissing;
4476
4476
  if (h || V || g) {
4477
4477
  if (this.logger.log(g ? "updateKey" : "missingKey", A, l, s, g ? B : u), r) {
4478
4478
  const J = this.resolve(s, {
@@ -4489,7 +4489,7 @@ class Pt extends ca {
4489
4489
  else
4490
4490
  this.options.saveMissingTo === "all" ? L = this.languageUtils.toResolveHierarchy(t.lng || this.language) : L.push(t.lng || this.language);
4491
4491
  const C = (J, D, k) => {
4492
- const Z = x && k !== u ? k : P;
4492
+ const Z = F && k !== u ? k : P;
4493
4493
  this.options.missingKeyHandler ? this.options.missingKeyHandler(J, l, D, Z, g, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(J, l, D, Z, g, t), this.emit("missingKey", J, l, D, u);
4494
4494
  };
4495
4495
  this.options.saveMissing && (this.options.saveMissingPlurals && G ? L.forEach((J) => {
@@ -4572,8 +4572,8 @@ class Pt extends ca {
4572
4572
  u && (V = this.pluralResolver.getSuffix(S, t.count, t));
4573
4573
  const h = `${this.options.pluralSeparator}zero`, G = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
4574
4574
  if (u && (U.push(m + V), t.ordinal && V.indexOf(G) === 0 && U.push(m + V.replace(G, this.options.pluralSeparator)), I && U.push(m + h)), c) {
4575
- const x = `${m}${this.options.contextSeparator}${t.context}`;
4576
- U.push(x), u && (U.push(x + V), t.ordinal && V.indexOf(G) === 0 && U.push(x + V.replace(G, this.options.pluralSeparator)), I && U.push(x + h));
4575
+ const F = `${m}${this.options.contextSeparator}${t.context}`;
4576
+ U.push(F), u && (U.push(F + V), t.ordinal && V.indexOf(G) === 0 && U.push(F + V.replace(G, this.options.pluralSeparator)), I && U.push(F + h));
4577
4577
  }
4578
4578
  }
4579
4579
  let W;
@@ -5816,14 +5816,14 @@ const ip = (e, i, ...t) => i.read(...t), ep = (e, i, ...t) => i.write(...t), tp
5816
5816
  }
5817
5817
  }), h;
5818
5818
  }
5819
- }, x = K.n;
5819
+ }, F = K.n;
5820
5820
  try {
5821
5821
  const Q = A(e, i, W, G);
5822
5822
  return ea(e, i, Q), ia(Q) && (ao(Q, () => V == null ? void 0 : V.abort()), Q.then(U, U)), (t = l.r) == null || t.call(l, i), K;
5823
5823
  } catch (Q) {
5824
5824
  return delete K.v, K.e = Q, ++K.n, K;
5825
5825
  } finally {
5826
- S = !1, x !== K.n && s.get(i) === x && (s.set(i, K.n), n.add(i), (a = l.c) == null || a.call(l, i));
5826
+ S = !1, F !== K.n && s.get(i) === F && (s.set(i, K.n), n.add(i), (a = l.c) == null || a.call(l, i));
5827
5827
  }
5828
5828
  }, lp = (e, i) => {
5829
5829
  const t = bi(e), a = t[1], o = t[2], r = t[11], s = [i];
@@ -6086,7 +6086,7 @@ function gp(e, i) {
6086
6086
  () => [o.get(e), o, e]
6087
6087
  );
6088
6088
  let A = r;
6089
- if ((s !== o || n !== e) && (l(), A = o.get(e)), mi(() => {
6089
+ if ((s !== o || n !== e) && (l(), A = o.get(e)), qi(() => {
6090
6090
  const m = o.sub(e, () => {
6091
6091
  if (a)
6092
6092
  try {
@@ -6167,10 +6167,10 @@ const da = Ct(""), Za = Ct(!1), Ge = Ct([]), ha = Ct([
6167
6167
  !1,
6168
6168
  { urlType: A }
6169
6169
  ).then(async (U) => {
6170
- var h, G, x, Q;
6170
+ var h, G, F, Q;
6171
6171
  const W = new URL("/preview", o);
6172
6172
  if (W.searchParams.set("versionId", e), W.searchParams.set(t.toLowerCase(), "true"), i && (t === "Playable" || t === "Ready")) {
6173
- const T = await Go(i, a), X = (G = (h = T == null ? void 0 : T.data) == null ? void 0 : h.globalProps) == null ? void 0 : G.defaultLandscape, B = (Q = (x = T == null ? void 0 : T.data) == null ? void 0 : x.globalProps) == null ? void 0 : Q.defaultPhoneIndex;
6173
+ const T = await Go(i, a), X = (G = (h = T == null ? void 0 : T.data) == null ? void 0 : h.globalProps) == null ? void 0 : G.defaultLandscape, B = (Q = (F = T == null ? void 0 : T.data) == null ? void 0 : F.globalProps) == null ? void 0 : Q.defaultPhoneIndex;
6174
6174
  X && W.searchParams.append("landscape", "true"), B !== void 0 && W.searchParams.append("phoneIndex", B.toString());
6175
6175
  }
6176
6176
  Be(W.toString()) ? (I(!0), setTimeout(() => I(!1), 2e3)) : r(W.toString()), p(!1);
@@ -6316,7 +6316,7 @@ const da = Ct(""), Za = Ct(!1), Ge = Ct([]), ha = Ct([
6316
6316
  onNameChange: u
6317
6317
  }) => {
6318
6318
  const [I, c] = M(window.innerWidth), [d, K] = M(window.innerHeight);
6319
- return console.log("iosLink", A), mi(() => {
6319
+ return console.log("iosLink", A), qi(() => {
6320
6320
  console.log("re add event listener");
6321
6321
  function S(U) {
6322
6322
  console.log(U), U.data === "cta" && (console.log("Received 'cta' message from iframe"), A && window.open(A, "_blank"));
@@ -6324,7 +6324,7 @@ const da = Ct(""), Za = Ct(!1), Ge = Ct([]), ha = Ct([
6324
6324
  return window.addEventListener("message", S, !1), () => {
6325
6325
  window.removeEventListener("message", S);
6326
6326
  };
6327
- }, [A, m]), mi(() => {
6327
+ }, [A, m]), qi(() => {
6328
6328
  const S = () => {
6329
6329
  c(window.innerWidth), K(window.innerHeight);
6330
6330
  };
@@ -6878,7 +6878,7 @@ qu.default.subscribe(Ku);
6878
6878
  if (!(g instanceof L))
6879
6879
  throw new TypeError("Cannot call a class as a function");
6880
6880
  }
6881
- function x(g, L) {
6881
+ function F(g, L) {
6882
6882
  if (!g)
6883
6883
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6884
6884
  return L && (typeof L == "object" || typeof L == "function") ? L : g;
@@ -6899,7 +6899,7 @@ qu.default.subscribe(Ku);
6899
6899
  Q(L, g);
6900
6900
  function L(Y) {
6901
6901
  G(this, L);
6902
- var C = x(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, Y));
6902
+ var C = F(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, Y));
6903
6903
  return C.setOverlayRef = function(J) {
6904
6904
  C.overlay = J, C.props.overlayRef && C.props.overlayRef(J);
6905
6905
  }, C.setContentRef = function(J) {
@@ -7420,7 +7420,7 @@ function Ca(e) {
7420
7420
  W.target === p.current && (K.dispatchEvent(new Event("d")), K.removeEventListener("animationend", U), K.removeEventListener("animationcancel", U), d.current === 0 && W.type !== "animationcancel" && K.classList.remove(...S));
7421
7421
  };
7422
7422
  K.classList.add(...S), K.addEventListener("animationend", U), K.addEventListener("animationcancel", U);
7423
- }, []), mi(() => {
7423
+ }, []), qi(() => {
7424
7424
  const K = p.current, S = () => {
7425
7425
  K.removeEventListener("animationend", S), o ? Gu(K, m, r) : m();
7426
7426
  };
@@ -7483,8 +7483,8 @@ function bu(e) {
7483
7483
  return !o.current || n.props.enableMultiContainer && v.containerId !== n.props.containerId || r.has(v.toastId) && v.updateId == null;
7484
7484
  }(S))
7485
7485
  return;
7486
- const { toastId: U, updateId: W, data: V } = S, { props: h } = n, G = () => A(U), x = W == null;
7487
- x && n.count++;
7486
+ const { toastId: U, updateId: W, data: V } = S, { props: h } = n, G = () => A(U), F = W == null;
7487
+ F && n.count++;
7488
7488
  const Q = { ...h, style: h.toastStyle, key: n.toastKey++, ...Object.fromEntries(Object.entries(S).filter((v) => {
7489
7489
  let [P, g] = v;
7490
7490
  return g != null;
@@ -7512,7 +7512,7 @@ function bu(e) {
7512
7512
  return Y === !1 || (Ni(Y) ? C = Y(J) : Fe(Y) ? C = fa(Y, J) : Ye(Y) || nt(Y) ? C = Y : L ? C = Oa.spinner() : ((D) => D in Oa)(g) && (C = Oa[g](J))), C;
7513
7513
  }(Q), Ni(S.onOpen) && (Q.onOpen = S.onOpen), Ni(S.onClose) && (Q.onClose = S.onClose), Q.closeButton = h.closeButton, S.closeButton === !1 || xa(S.closeButton) ? Q.closeButton = S.closeButton : S.closeButton === !0 && (Q.closeButton = !xa(h.closeButton) || h.closeButton);
7514
7514
  let B = I;
7515
- Fe(I) && !Ye(I.type) ? B = fa(I, { closeToast: G, toastProps: Q, data: V }) : Ni(I) && (B = I({ closeToast: G, toastProps: Q, data: V })), h.limit && h.limit > 0 && n.count > h.limit && x ? n.queue.push({ toastContent: B, toastProps: Q, staleId: K }) : nt(d) ? setTimeout(() => {
7515
+ Fe(I) && !Ye(I.type) ? B = fa(I, { closeToast: G, toastProps: Q, data: V }) : Ni(I) && (B = I({ closeToast: G, toastProps: Q, data: V })), h.limit && h.limit > 0 && n.count > h.limit && F ? n.queue.push({ toastContent: B, toastProps: Q, staleId: K }) : nt(d) ? setTimeout(() => {
7516
7516
  u(B, Q, K);
7517
7517
  }, d) : u(B, Q, K);
7518
7518
  }
@@ -7522,9 +7522,9 @@ function bu(e) {
7522
7522
  const S = { content: I, props: c };
7523
7523
  r.set(K, S), a((U) => [...U, K].filter((W) => W !== d)), Ti.emit(4, wr(S, S.props.updateId == null ? "added" : "updated"));
7524
7524
  }
7525
- return mi(() => (n.containerId = e.containerId, Ti.cancelEmit(3).on(0, p).on(1, (I) => o.current && A(I)).on(5, l).emit(2, n), () => {
7525
+ return qi(() => (n.containerId = e.containerId, Ti.cancelEmit(3).on(0, p).on(1, (I) => o.current && A(I)).on(5, l).emit(2, n), () => {
7526
7526
  r.clear(), Ti.emit(3, n);
7527
- }), []), mi(() => {
7527
+ }), []), qi(() => {
7528
7528
  n.props = e, n.isToastActive = s, n.displayedToast = t.length;
7529
7529
  }), { getToastToRender: function(I) {
7530
7530
  const c = /* @__PURE__ */ new Map(), d = Array.from(r.values());
@@ -7551,8 +7551,8 @@ function Qu(e) {
7551
7551
  }
7552
7552
  function c(V) {
7553
7553
  if (s.boundingRect) {
7554
- const { top: h, bottom: G, left: x, right: Q } = s.boundingRect;
7555
- V.nativeEvent.type !== "touchend" && e.pauseOnHover && s.x >= x && s.x <= Q && s.y >= h && s.y <= G ? K() : d();
7554
+ const { top: h, bottom: G, left: F, right: Q } = s.boundingRect;
7555
+ V.nativeEvent.type !== "touchend" && e.pauseOnHover && s.x >= F && s.x <= Q && s.y >= h && s.y <= G ? K() : d();
7556
7556
  }
7557
7557
  }
7558
7558
  function d() {
@@ -7574,12 +7574,12 @@ function Qu(e) {
7574
7574
  V.style.transition = "transform 0.2s, opacity 0.2s", V.style.transform = `translate${e.draggableDirection}(0)`, V.style.opacity = "1";
7575
7575
  }
7576
7576
  }
7577
- mi(() => {
7577
+ qi(() => {
7578
7578
  n.current = e;
7579
- }), mi(() => (r.current && r.current.addEventListener("d", d, { once: !0 }), Ni(e.onOpen) && e.onOpen(Fe(e.children) && e.children.props), () => {
7579
+ }), qi(() => (r.current && r.current.addEventListener("d", d, { once: !0 }), Ni(e.onOpen) && e.onOpen(Fe(e.children) && e.children.props), () => {
7580
7580
  const V = n.current;
7581
7581
  Ni(V.onClose) && V.onClose(Fe(V.children) && V.children.props);
7582
- }), []), mi(() => (e.pauseOnFocusLoss && (document.hasFocus() || K(), window.addEventListener("focus", d), window.addEventListener("blur", K)), () => {
7582
+ }), []), qi(() => (e.pauseOnFocusLoss && (document.hasFocus() || K(), window.addEventListener("focus", d), window.addEventListener("blur", K)), () => {
7583
7583
  e.pauseOnFocusLoss && (window.removeEventListener("focus", d), window.removeEventListener("blur", K));
7584
7584
  }), [e.pauseOnFocusLoss]);
7585
7585
  const W = { onMouseDown: I, onTouchStart: I, onMouseUp: c, onTouchEnd: c };
@@ -7603,9 +7603,9 @@ function ju(e) {
7603
7603
  } });
7604
7604
  }
7605
7605
  const Nu = (e) => {
7606
- const { isRunning: i, preventExitTransition: t, toastRef: a, eventHandlers: o } = Qu(e), { closeButton: r, children: s, autoClose: n, onClick: l, type: A, hideProgressBar: m, closeToast: p, transition: u, position: I, className: c, style: d, bodyClassName: K, bodyStyle: S, progressClassName: U, progressStyle: W, updateId: V, role: h, progress: G, rtl: x, toastId: Q, deleteToast: T, isIn: X, isLoading: B, iconOut: v, closeOnClick: P, theme: g } = e, L = ce("Toastify__toast", `Toastify__toast-theme--${g}`, `Toastify__toast--${A}`, { "Toastify__toast--rtl": x }, { "Toastify__toast--close-on-click": P }), Y = Ni(c) ? c({ rtl: x, position: I, type: A, defaultClassName: L }) : ce(L, c), C = !!G || !n, J = { closeToast: p, type: A, theme: g };
7606
+ const { isRunning: i, preventExitTransition: t, toastRef: a, eventHandlers: o } = Qu(e), { closeButton: r, children: s, autoClose: n, onClick: l, type: A, hideProgressBar: m, closeToast: p, transition: u, position: I, className: c, style: d, bodyClassName: K, bodyStyle: S, progressClassName: U, progressStyle: W, updateId: V, role: h, progress: G, rtl: F, toastId: Q, deleteToast: T, isIn: X, isLoading: B, iconOut: v, closeOnClick: P, theme: g } = e, L = ce("Toastify__toast", `Toastify__toast-theme--${g}`, `Toastify__toast--${A}`, { "Toastify__toast--rtl": F }, { "Toastify__toast--close-on-click": P }), Y = Ni(c) ? c({ rtl: F, position: I, type: A, defaultClassName: L }) : ce(L, c), C = !!G || !n, J = { closeToast: p, type: A, theme: g };
7607
7607
  let D = null;
7608
- return r === !1 || (D = Ni(r) ? r(J) : Fe(r) ? fa(r, J) : Sn(J)), Ki.createElement(u, { isIn: X, done: T, position: I, preventExitTransition: t, nodeRef: a }, Ki.createElement("div", { id: Q, onClick: l, className: Y, ...o, style: d, ref: a }, Ki.createElement("div", { ...X && { role: h }, className: Ni(K) ? K({ type: A }) : ce("Toastify__toast-body", K), style: S }, v != null && Ki.createElement("div", { className: ce("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !B }) }, v), Ki.createElement("div", null, s)), D, Ki.createElement(ju, { ...V && !C ? { key: `pb-${V}` } : {}, rtl: x, theme: g, delay: n, isRunning: i, isIn: X, closeToast: p, hide: m, type: A, style: W, className: U, controlledProgress: C, progress: G || 0 })));
7608
+ return r === !1 || (D = Ni(r) ? r(J) : Fe(r) ? fa(r, J) : Sn(J)), Ki.createElement(u, { isIn: X, done: T, position: I, preventExitTransition: t, nodeRef: a }, Ki.createElement("div", { id: Q, onClick: l, className: Y, ...o, style: d, ref: a }, Ki.createElement("div", { ...X && { role: h }, className: Ni(K) ? K({ type: A }) : ce("Toastify__toast-body", K), style: S }, v != null && Ki.createElement("div", { className: ce("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !B }) }, v), Ki.createElement("div", null, s)), D, Ki.createElement(ju, { ...V && !C ? { key: `pb-${V}` } : {}, rtl: F, theme: g, delay: n, isRunning: i, isIn: X, closeToast: p, hide: m, type: A, style: W, className: U, controlledProgress: C, progress: G || 0 })));
7609
7609
  }, ga = function(e, i) {
7610
7610
  return i === void 0 && (i = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: i };
7611
7611
  }, Fu = Ca(ga("bounce", !0));
@@ -7618,7 +7618,7 @@ const ra = al((e, i) => {
7618
7618
  const p = ce("Toastify__toast-container", `Toastify__toast-container--${m}`, { "Toastify__toast-container--rtl": n });
7619
7619
  return Ni(r) ? r({ position: m, rtl: n, defaultClassName: p }) : ce(p, xt(r));
7620
7620
  }
7621
- return mi(() => {
7621
+ return qi(() => {
7622
7622
  i && (i.current = a.current);
7623
7623
  }, []), Ki.createElement("div", { ref: a, className: "Toastify", id: l }, t((m, p) => {
7624
7624
  const u = p.length ? { ...s } : { ...s, pointerEvents: "none" };
@@ -7757,8 +7757,8 @@ const wu = {
7757
7757
  Import: "#E0F2FE",
7758
7758
  Flex: "#F3E8FF",
7759
7759
  Fusion: "#F5F5F5"
7760
- })[o] || "#FFF7ED", G = W(), x = V(), Q = h();
7761
- mi(() => {
7760
+ })[o] || "#FFF7ED", G = W(), F = V(), Q = h();
7761
+ qi(() => {
7762
7762
  e && T();
7763
7763
  }, [e]);
7764
7764
  const T = async () => {
@@ -8199,7 +8199,7 @@ const wu = {
8199
8199
  transition: "background-color 0.2s"
8200
8200
  },
8201
8201
  onMouseEnter: (g) => {
8202
- I || (g.currentTarget.style.backgroundColor = x);
8202
+ I || (g.currentTarget.style.backgroundColor = F);
8203
8203
  },
8204
8204
  onMouseLeave: (g) => {
8205
8205
  I || (g.currentTarget.style.backgroundColor = G);
@@ -8225,7 +8225,7 @@ const wu = {
8225
8225
  customerId: s
8226
8226
  }) => {
8227
8227
  const [n, l] = M(!1), [A, m] = M(!1);
8228
- return mi(() => {
8228
+ return qi(() => {
8229
8229
  (async () => {
8230
8230
  try {
8231
8231
  const u = await Zn(s, a);
@@ -8789,7 +8789,7 @@ const fu = () => /* @__PURE__ */ q.jsxs("svg", { width: "24", height: "24", view
8789
8789
  );
8790
8790
  }, $u = ({ checked: e, typeOfProduct: i, id: t }) => {
8791
8791
  const [a, o] = M(e), r = ui[i];
8792
- mi(() => {
8792
+ qi(() => {
8793
8793
  o(e);
8794
8794
  }, [e]);
8795
8795
  const s = () => {
@@ -9709,22 +9709,22 @@ const rI = ({
9709
9709
  setSafariCopyLink: V,
9710
9710
  isTest: h,
9711
9711
  urlType: G,
9712
- setCdnModal: x,
9712
+ setCdnModal: F,
9713
9713
  generateCDN: Q,
9714
9714
  cdnUrl: T,
9715
9715
  selectedVersionIds: X
9716
9716
  }) => {
9717
- const [B, v] = M(!1), [P, g] = M(""), [L, Y] = M(!1), [C, J] = M(!1), [D, k] = M(!1), [Z, R] = M("download"), [b, E] = M(!1), [f, O] = M(!1), [N, H] = M(!1), [$, ii] = M(!1), [ci, j] = M(!1), [di, w] = M(!1), [ri, ki] = M(!1), [Vi, F] = M(!1), [z, _] = M(!1), [qi, ni] = Ci(Ge), [Li, si] = Ci(Ce), ai = l === "Playable" ? Li : !0, yi = {
9717
+ const [B, v] = M(!1), [P, g] = M(""), [L, Y] = M(!1), [C, J] = M(!1), [D, k] = M(!1), [Z, R] = M("download"), [b, E] = M(!1), [f, O] = M(!1), [N, H] = M(!1), [$, ii] = M(!1), [ci, j] = M(!1), [di, w] = M(!1), [ai, ki] = M(!1), [Vi, z] = M(!1), [x, _] = M(!1), [ni, li] = Ci(Ge), [Ji, si] = Ci(Ce), oi = l === "Playable" ? Ji : !0, yi = {
9718
9718
  cdn: "Generate Link",
9719
9719
  adikteev: "Copy CDN"
9720
- }, li = () => {
9720
+ }, Ai = () => {
9721
9721
  t(e);
9722
- }, Di = async (pi, Ei, Ji) => {
9722
+ }, Di = async (pi, Ui, Wi) => {
9723
9723
  if (v(!0), l === "Flex" && W.flex === !1 && W.customer !== "playableFactoryInternal") {
9724
9724
  p("|ACCESS|"), v(!1);
9725
9725
  return;
9726
9726
  }
9727
- if (X && X.length > 0 && Ei === "download")
9727
+ if (X && X.length > 0 && Ui === "download")
9728
9728
  try {
9729
9729
  if (!c || !c._id)
9730
9730
  throw new Error("Game data is required for multi-version download");
@@ -9742,16 +9742,16 @@ const rI = ({
9742
9742
  urlType: G,
9743
9743
  responsiveType: "responsive"
9744
9744
  };
9745
- if (pe ? Ei === "copy" ? (O(!0), Ei = "download", be.molocoGenerateHtml = !0) : E(!0) : ue && (be.responsiveType = Ji), console.log("getVersion", pi, Ei, be), pi === "cdn") {
9746
- x(!0), await Q(!0), v(!1);
9745
+ if (pe ? Ui === "copy" ? (O(!0), Ui = "download", be.molocoGenerateHtml = !0) : E(!0) : ue && (be.responsiveType = Wi), console.log("getVersion", pi, Ui, be), pi === "cdn") {
9746
+ F(!0), await Q(!0), v(!1);
9747
9747
  return;
9748
9748
  }
9749
- return pi === "adikteev" && (Ei = "copy"), new Promise((ee, He) => {
9749
+ return pi === "adikteev" && (Ui = "copy"), new Promise((ee, He) => {
9750
9750
  qe(
9751
9751
  A,
9752
9752
  pi,
9753
- ai ? I : null,
9754
- Ei,
9753
+ oi ? I : null,
9754
+ Ui,
9755
9755
  h,
9756
9756
  be
9757
9757
  ).then((le) => {
@@ -9762,34 +9762,34 @@ const rI = ({
9762
9762
  });
9763
9763
  }, Va = async (pi = !1) => {
9764
9764
  pi ? O(!0) : E(!0);
9765
- const Ei = {
9765
+ const Ui = {
9766
9766
  molocoGenerateHtml: !1
9767
9767
  };
9768
- if (pi && (Ei.molocoGenerateHtml = !0), X && X.length > 0)
9768
+ if (pi && (Ui.molocoGenerateHtml = !0), X && X.length > 0)
9769
9769
  try {
9770
9770
  if (!c || !c._id)
9771
9771
  throw new Error("Game data is required for multi-version download");
9772
- const Ji = await ct(m, c._id, {
9772
+ const Wi = await ct(m, c._id, {
9773
9773
  networks: ["moloco"],
9774
9774
  versions: X,
9775
- extras: Ei
9776
- }), be = u + "/" + Ji.url, He = await (await fetch(be)).blob(), le = window.URL.createObjectURL(He), ge = document.createElement("a");
9777
- return ge.href = le, ge.download = Ji.url.split("/").pop() || "download.zip", document.body.appendChild(ge), ge.click(), window.URL.revokeObjectURL(le), document.body.removeChild(ge), v(!1), pi ? O(!1) : E(!1), k(!1), Ji.url;
9778
- } catch (Ji) {
9779
- console.log("multi-version single network download error", Ji), v(!1), p(Ji.message, Ji);
9775
+ extras: Ui
9776
+ }), be = u + "/" + Wi.url, He = await (await fetch(be)).blob(), le = window.URL.createObjectURL(He), ge = document.createElement("a");
9777
+ return ge.href = le, ge.download = Wi.url.split("/").pop() || "download.zip", document.body.appendChild(ge), ge.click(), window.URL.revokeObjectURL(le), document.body.removeChild(ge), v(!1), pi ? O(!1) : E(!1), k(!1), Wi.url;
9778
+ } catch (Wi) {
9779
+ console.log("multi-version single network download error", Wi), v(!1), p(Wi.message, Wi);
9780
9780
  return;
9781
9781
  }
9782
- qe(A, o, ai ? I : null, "download", h, Ei).then((Ji) => {
9782
+ qe(A, o, oi ? I : null, "download", h, Ui).then((Wi) => {
9783
9783
  pi ? O(!1) : E(!1), k(!1);
9784
- }).catch((Ji) => {
9785
- p(Ji.message, Ji);
9784
+ }).catch((Wi) => {
9785
+ p(Wi.message, Wi);
9786
9786
  });
9787
9787
  }, Ja = async () => {
9788
9788
  H(!0);
9789
9789
  const pi = await aI(m, A, o, l);
9790
- let Ei = `${u}/${pi == null ? void 0 : pi.url}`;
9791
- Be(Ei) ? (ii(!0), setTimeout(() => ii(!1), 2e3), H(!1)) : (V(Ei), H(!1));
9792
- }, pe = o === "moloco" || o === "molocoV2", ue = o === "google", Bo = qi.find((pi) => pi.name === o);
9790
+ let Ui = `${u}/${pi == null ? void 0 : pi.url}`;
9791
+ Be(Ui) ? (ii(!0), setTimeout(() => ii(!1), 2e3), H(!1)) : (V(Ui), H(!1));
9792
+ }, pe = o === "moloco" || o === "molocoV2", ue = o === "google", Bo = ni.find((pi) => pi.name === o);
9793
9793
  return /* @__PURE__ */ q.jsxs(q.Fragment, { children: [
9794
9794
  /* @__PURE__ */ q.jsxs(
9795
9795
  "div",
@@ -9810,7 +9810,7 @@ const rI = ({
9810
9810
  cursor: "pointer"
9811
9811
  },
9812
9812
  className: "border-hover-" + l,
9813
- onClick: li,
9813
+ onClick: Ai,
9814
9814
  children: [
9815
9815
  /* @__PURE__ */ q.jsxs(
9816
9816
  "div",
@@ -9889,7 +9889,7 @@ const rI = ({
9889
9889
  /* @__PURE__ */ q.jsx(
9890
9890
  "img",
9891
9891
  {
9892
- onClick: li,
9892
+ onClick: Ai,
9893
9893
  style: {
9894
9894
  width: "30rem",
9895
9895
  // Equivalent to 120/4 = 30rem
@@ -9926,8 +9926,8 @@ const rI = ({
9926
9926
  w(!0);
9927
9927
  else {
9928
9928
  g("download");
9929
- const Ei = I.iosUrl, Ji = I.googleUrl;
9930
- o === "cdn" && K && K.willSpendCredit && !T || o !== "cdn" && K && K.willSpendCredit ? (d(!0), R("download"), Y(!0)) : ["Playable", "Flex", "Ready"].includes(l) && (!Ei || !Ji) ? (d(!0), J(!0)) : (J(!1), Y(!1), await Di(o, "download"));
9929
+ const Ui = I.iosUrl, Wi = I.googleUrl;
9930
+ o === "cdn" && K && K.willSpendCredit && !T || o !== "cdn" && K && K.willSpendCredit ? (d(!0), R("download"), Y(!0)) : ["Playable", "Flex", "Ready"].includes(l) && (!Ui || !Wi) ? (d(!0), J(!0)) : (J(!1), Y(!1), await Di(o, "download"));
9931
9931
  }
9932
9932
  },
9933
9933
  children: pe ? /* @__PURE__ */ q.jsxs(q.Fragment, { children: [
@@ -9983,8 +9983,8 @@ const rI = ({
9983
9983
  if (pi.stopPropagation(), ci)
9984
9984
  return;
9985
9985
  g("copyLink");
9986
- const Ei = I.iosUrl, Ji = I.googleUrl;
9987
- K && (K != null && K.willSpendCredit) ? (R("copy"), d(!0), Y(!0)) : l !== "Import" && (!Ei || !Ji) ? (d(!0), J(!0)) : (Y(!1), J(!1), await Di(o, "copy"), j(!0), setTimeout(() => j(!1), 2e3));
9986
+ const Ui = I.iosUrl, Wi = I.googleUrl;
9987
+ K && (K != null && K.willSpendCredit) ? (R("copy"), d(!0), Y(!0)) : l !== "Import" && (!Ui || !Wi) ? (d(!0), J(!0)) : (Y(!1), J(!1), await Di(o, "copy"), j(!0), setTimeout(() => j(!1), 2e3));
9988
9988
  },
9989
9989
  disabled: U,
9990
9990
  isCopied: ci,
@@ -9998,8 +9998,8 @@ const rI = ({
9998
9998
  typeOfProduct: l,
9999
9999
  onClickDonwload: async (pi) => {
10000
10000
  pi.stopPropagation(), g("copyLink");
10001
- const Ei = I.iosUrl, Ji = I.googleUrl;
10002
- K && (K != null && K.willSpendCredit) ? (R("download"), d(!0), Y(!0)) : l !== "Import" && (!Ei || !Ji) ? (d(!0), J(!0)) : (Y(!1), J(!1), await Va(!0));
10001
+ const Ui = I.iosUrl, Wi = I.googleUrl;
10002
+ K && (K != null && K.willSpendCredit) ? (R("download"), d(!0), Y(!0)) : l !== "Import" && (!Ui || !Wi) ? (d(!0), J(!0)) : (Y(!1), J(!1), await Va(!0));
10003
10003
  },
10004
10004
  disabled: U,
10005
10005
  children: [
@@ -10088,11 +10088,11 @@ const rI = ({
10088
10088
  w(!1);
10089
10089
  },
10090
10090
  handleDownload: async (pi) => {
10091
- pi === "portrait" ? ki(!0) : pi === "landscape" ? F(!0) : _(!0), await Di(o, "download", pi), pi === "portrait" ? ki(!1) : pi === "landscape" ? F(!1) : _(!1);
10091
+ pi === "portrait" ? ki(!0) : pi === "landscape" ? z(!0) : _(!0), await Di(o, "download", pi), pi === "portrait" ? ki(!1) : pi === "landscape" ? z(!1) : _(!1);
10092
10092
  },
10093
- downloadingPortrait: ri,
10093
+ downloadingPortrait: ai,
10094
10094
  downloadingLandscape: Vi,
10095
- downloadingResponsive: z,
10095
+ downloadingResponsive: x,
10096
10096
  typeOfProduct: l
10097
10097
  }
10098
10098
  )
@@ -10582,51 +10582,51 @@ const rI = ({
10582
10582
  customer: h,
10583
10583
  selectedVersionIds: G
10584
10584
  }) => {
10585
- const [x, Q] = M([]), [T, X] = M([]), [B, v] = M(!1), [P, g] = M(""), [L, Y] = M(!1), [C, J] = M(!1), [D, k] = M("download"), [Z, R] = M(!1), [b, E] = M(!1), [f, O] = M(!1), [N, H] = Ci(da), [$, ii] = Ci(Za), [ci] = Ci(Ge), [j, di] = Ci(Ce), w = o === "Playable" ? j : !0, ri = async (z = !1) => {
10586
- z && W || f || (O(!0), qe(a, "cdn", w ? A : null, null, !1, {}).then((_) => {
10585
+ const [F, Q] = M([]), [T, X] = M([]), [B, v] = M(!1), [P, g] = M(""), [L, Y] = M(!1), [C, J] = M(!1), [D, k] = M("download"), [Z, R] = M(!1), [b, E] = M(!1), [f, O] = M(!1), [N, H] = Ci(da), [$, ii] = Ci(Za), [ci] = Ci(Ge), [j, di] = Ci(Ce), w = o === "Playable" ? j : !0, ai = async (x = !1) => {
10586
+ x && W || f || (O(!0), qe(a, "cdn", w ? A : null, null, !1, {}).then((_) => {
10587
10587
  V(_.url), O(!1);
10588
10588
  }).catch((_) => {
10589
10589
  n(_.message, _), O(!1);
10590
10590
  }));
10591
- }, ki = async (z) => {
10592
- if (z === "adikteev" || z === "cdn")
10591
+ }, ki = async (x) => {
10592
+ if (x === "adikteev" || x === "cdn")
10593
10593
  return;
10594
- const _ = [...x];
10595
- if (x.includes(z)) {
10596
- const qi = _.findIndex((ni) => ni === z);
10597
- _.splice(qi, 1), Q(_);
10594
+ const _ = [...F];
10595
+ if (F.includes(x)) {
10596
+ const ni = _.findIndex((li) => li === x);
10597
+ _.splice(ni, 1), Q(_);
10598
10598
  } else
10599
- _.push(z), Q([...x, z]);
10600
- ci.filter((qi) => [..._].includes(qi.id)).map((qi) => qi.name);
10601
- }, Vi = async () => new Promise(async (z, _) => {
10602
- const qi = ci.filter((ni) => [...x].includes(ni.id)).map((ni) => ni.name);
10599
+ _.push(x), Q([...F, x]);
10600
+ ci.filter((ni) => [..._].includes(ni.id)).map((ni) => ni.name);
10601
+ }, Vi = async () => new Promise(async (x, _) => {
10602
+ const ni = ci.filter((li) => [...F].includes(li.id)).map((li) => li.name);
10603
10603
  if (Y(!0), G && G.length > 0)
10604
10604
  try {
10605
10605
  if (!m || !m._id)
10606
10606
  throw new Error("Game data is required for multi-version download");
10607
- const ni = await ct(r, m._id, {
10608
- networks: qi,
10607
+ const li = await ct(r, m._id, {
10608
+ networks: ni,
10609
10609
  versions: G
10610
- }), Li = l + "/" + ni.url, ai = await (await fetch(Li)).blob(), yi = window.URL.createObjectURL(ai), li = document.createElement("a");
10611
- li.href = yi, li.download = ni.url.split("/").pop() || "download.zip", document.body.appendChild(li), li.click(), window.URL.revokeObjectURL(yi), document.body.removeChild(li), Y(!1), z(ni.url);
10612
- } catch (ni) {
10613
- console.log("multi-version download error", ni), Y(!1), n(ni.message, ni), _(ni);
10610
+ }), Ji = l + "/" + li.url, oi = await (await fetch(Ji)).blob(), yi = window.URL.createObjectURL(oi), Ai = document.createElement("a");
10611
+ Ai.href = yi, Ai.download = li.url.split("/").pop() || "download.zip", document.body.appendChild(Ai), Ai.click(), window.URL.revokeObjectURL(yi), document.body.removeChild(Ai), Y(!1), x(li.url);
10612
+ } catch (li) {
10613
+ console.log("multi-version download error", li), Y(!1), n(li.message, li), _(li);
10614
10614
  }
10615
10615
  else
10616
- fs(a, A, qi, { urlType: d }).then((ni) => {
10617
- Y(!1), z(ni);
10618
- }).catch((ni) => {
10619
- console.log("get multi download err"), Y(!1), n(ni.message, ni), _(ni);
10616
+ fs(a, A, ni, { urlType: d }).then((li) => {
10617
+ Y(!1), x(li);
10618
+ }).catch((li) => {
10619
+ console.log("get multi download err"), Y(!1), n(li.message, li), _(li);
10620
10620
  });
10621
- }), F = async () => {
10621
+ }), z = async () => {
10622
10622
  A.iosUrl, A.googleUrl, i && i.willSpendCredit ? (J(!0), k("download"), R(!0)) : (R(!1), await Vi());
10623
10623
  };
10624
- return mi(() => {
10625
- const z = ci.filter((_) => {
10626
- var qi;
10627
- return G && G.length > 0 ? !0 : i && ((qi = i == null ? void 0 : i.networks) == null ? void 0 : qi.length) > 0 ? typeof _ == "string" ? i == null ? void 0 : i.networks.includes(_) : i == null ? void 0 : i.networks.includes(_.name) : o === "Import" ? e == null ? void 0 : e.networks.filter((ni) => ni.status === "paid").some((ni) => ni.name === _.name) : _ ? !0 : e == null ? void 0 : e.networks.includes(_);
10624
+ return qi(() => {
10625
+ const x = ci.filter((_) => {
10626
+ var ni;
10627
+ return G && G.length > 0 ? !0 : i && ((ni = i == null ? void 0 : i.networks) == null ? void 0 : ni.length) > 0 ? typeof _ == "string" ? i == null ? void 0 : i.networks.includes(_) : i == null ? void 0 : i.networks.includes(_.name) : o === "Import" ? e == null ? void 0 : e.networks.filter((li) => li.status === "paid").some((li) => li.name === _.name) : _ ? !0 : e == null ? void 0 : e.networks.includes(_);
10628
10628
  }).filter((_) => _.name === "voodoo" ? s.customer === "customer:20" : !0).filter((_) => _.id !== "adikteev" && _.id !== "cdn").map((_) => _.id);
10629
- console.log("networks", z), Q(K ? z : []);
10629
+ console.log("networks", x), Q(K ? x : []);
10630
10630
  }, [K, G, ci, i, o, e, m, s.customer]), /* @__PURE__ */ q.jsxs(
10631
10631
  "div",
10632
10632
  {
@@ -10647,7 +10647,7 @@ const rI = ({
10647
10647
  overflowY: C ? "hidden" : "auto",
10648
10648
  padding: "1.5rem",
10649
10649
  paddingTop: "0",
10650
- paddingBottom: x.length > 0 ? "5rem" : "1.5rem"
10650
+ paddingBottom: F.length > 0 ? "5rem" : "1.5rem"
10651
10651
  },
10652
10652
  children: /* @__PURE__ */ q.jsx(
10653
10653
  "div",
@@ -10658,37 +10658,37 @@ const rI = ({
10658
10658
  gap: "0.75rem",
10659
10659
  maxWidth: "100%"
10660
10660
  },
10661
- children: t && ci.filter((z) => {
10661
+ children: t && ci.filter((x) => {
10662
10662
  var _;
10663
10663
  if (G && G.length > 0)
10664
10664
  return !0;
10665
10665
  if (i && ((_ = i == null ? void 0 : i.networks) == null ? void 0 : _.length) > 0)
10666
- return typeof z == "string" ? i == null ? void 0 : i.networks.includes(z) : i == null ? void 0 : i.networks.includes(z.name);
10666
+ return typeof x == "string" ? i == null ? void 0 : i.networks.includes(x) : i == null ? void 0 : i.networks.includes(x.name);
10667
10667
  if (o === "Import")
10668
- return e == null ? void 0 : e.networks.filter((qi) => qi.status === "paid").some((qi) => qi.name === z.name);
10669
- if (!z)
10670
- e == null || e.networks.includes(z);
10668
+ return e == null ? void 0 : e.networks.filter((ni) => ni.status === "paid").some((ni) => ni.name === x.name);
10669
+ if (!x)
10670
+ e == null || e.networks.includes(x);
10671
10671
  else
10672
- return z;
10672
+ return x;
10673
10673
  }).filter(
10674
- (z) => z.name === "voodoo" ? s.customer === "customer:20" : !0
10675
- ).map((z) => {
10676
- let _ = z.imageSrc;
10677
- if (z.name === "web") {
10678
- let qi = "web_" + o.toLowerCase() + ".png";
10679
- _ = _.replace("web.png", qi);
10674
+ (x) => x.name === "voodoo" ? s.customer === "customer:20" : !0
10675
+ ).map((x) => {
10676
+ let _ = x.imageSrc;
10677
+ if (x.name === "web") {
10678
+ let ni = "web_" + o.toLowerCase() + ".png";
10679
+ _ = _.replace("web.png", ni);
10680
10680
  }
10681
10681
  return /* @__PURE__ */ q.jsx(
10682
10682
  rI,
10683
10683
  {
10684
- id: z.id,
10685
- name: z.name,
10684
+ id: x.id,
10685
+ name: x.name,
10686
10686
  imageUrl: _,
10687
- selected: x.includes(z.id),
10687
+ selected: F.includes(x.id),
10688
10688
  handleCardClick: ki,
10689
10689
  networkVersionSize: T,
10690
10690
  fileSizeLoading: B,
10691
- showCheckBox: z.id !== "adikteev" && z.id !== "cdn",
10691
+ showCheckBox: x.id !== "adikteev" && x.id !== "cdn",
10692
10692
  typeOfProduct: o,
10693
10693
  versionId: a,
10694
10694
  api: r,
@@ -10705,18 +10705,18 @@ const rI = ({
10705
10705
  isTest: c,
10706
10706
  urlType: d,
10707
10707
  setCdnModal: U,
10708
- generateCDN: ri,
10708
+ generateCDN: ai,
10709
10709
  cdnUrl: W,
10710
10710
  selectedVersionIds: G
10711
10711
  },
10712
- z.id
10712
+ x.id
10713
10713
  );
10714
10714
  })
10715
10715
  }
10716
10716
  )
10717
10717
  }
10718
10718
  ),
10719
- x.length > 0 && (o === "Playable" || o === "Ready" || o === "Flex") && /* @__PURE__ */ q.jsx(
10719
+ F.length > 0 && (o === "Playable" || o === "Ready" || o === "Flex") && /* @__PURE__ */ q.jsx(
10720
10720
  "div",
10721
10721
  {
10722
10722
  style: {
@@ -10731,11 +10731,11 @@ const rI = ({
10731
10731
  children: /* @__PURE__ */ q.jsx(
10732
10732
  sI,
10733
10733
  {
10734
- onClickMultiDownload: F,
10734
+ onClickMultiDownload: z,
10735
10735
  networksVersionTotalSize: P,
10736
10736
  typeOfProduct: o,
10737
10737
  multiDownloading: L,
10738
- selectedCount: x.length
10738
+ selectedCount: F.length
10739
10739
  }
10740
10740
  )
10741
10741
  }
@@ -10754,11 +10754,11 @@ const rI = ({
10754
10754
  generateCDN: async () => {
10755
10755
  if (!f) {
10756
10756
  if (!(i != null && i.willSpendCredit)) {
10757
- ri();
10757
+ ai();
10758
10758
  return;
10759
10759
  }
10760
10760
  if (s.customer === "playableFactoryInternal") {
10761
- ri();
10761
+ ai();
10762
10762
  return;
10763
10763
  }
10764
10764
  E(!0);
@@ -10787,7 +10787,7 @@ const rI = ({
10787
10787
  handleCopyLink: async () => {
10788
10788
  },
10789
10789
  download: async () => {
10790
- R(!1), E(!1), ri();
10790
+ R(!1), E(!1), ai();
10791
10791
  },
10792
10792
  onClose: () => {
10793
10793
  R(!1), E(!1), O(!1);
@@ -10889,116 +10889,116 @@ const lI = ({
10889
10889
  setUrlType: U,
10890
10890
  selectedVersionIds: W
10891
10891
  }) => {
10892
- const [V, h] = M(null), [G, x] = M(null), [Q, T] = M(null), [X, B] = M(!1), [v, P] = M(!0), [g, L] = M(window.innerWidth), [Y, C] = M(!1), [J, D] = M(!1), [k, Z] = M("");
10892
+ const [V, h] = M(null), [G, F] = M(null), [Q, T] = M(null), [X, B] = M(!1), [v, P] = M(!0), [g, L] = M(window.innerWidth), [Y, C] = M(!1), [J, D] = M(!1), [k, Z] = M("");
10893
10893
  Ci(da), Ci(Za);
10894
10894
  const [R, b] = Ci(ha), [E, f] = Ci(Ce);
10895
- mi(() => {
10896
- !k && a !== "Fusion" && vs(i).then((F) => {
10897
- F != null && F.exist && Z(F.uploadPath);
10895
+ qi(() => {
10896
+ !k && a !== "Fusion" && vs(i).then((z) => {
10897
+ z != null && z.exist && Z(z.uploadPath);
10898
10898
  });
10899
10899
  }, [k]);
10900
10900
  const [O, N] = M(!1);
10901
- mi(() => {
10902
- }, [O]), mi(() => {
10903
- const F = () => {
10901
+ qi(() => {
10902
+ }, [O]), qi(() => {
10903
+ const z = () => {
10904
10904
  L(window.innerWidth);
10905
10905
  };
10906
- return window.addEventListener("resize", F), () => {
10907
- window.removeEventListener("resize", F);
10906
+ return window.addEventListener("resize", z), () => {
10907
+ window.removeEventListener("resize", z);
10908
10908
  };
10909
10909
  }, []);
10910
10910
  const H = async () => {
10911
10911
  B(!0);
10912
- const F = await Go(e, r);
10913
- return F != null && F.networks || (F.networks = Dr), h(F), F;
10914
- }, $ = (F, z) => {
10912
+ const z = await Go(e, r);
10913
+ return z != null && z.networks || (z.networks = Dr), h(z), z;
10914
+ }, $ = (z, x) => {
10915
10915
  clearTimeout(fr), fr = setTimeout(() => {
10916
10916
  if (a === "Playable" && !E)
10917
10917
  return;
10918
- (W && W.length > 0 ? W : [i]).forEach((qi) => {
10919
- Nm(qi, { iosUrl: F, googleUrl: z }, { urlType: S });
10918
+ (W && W.length > 0 ? W : [i]).forEach((ni) => {
10919
+ Nm(ni, { iosUrl: z, googleUrl: x }, { urlType: S });
10920
10920
  });
10921
10921
  }, 1e3);
10922
- }, ii = (F) => {
10923
- d(F), $(F, c);
10924
- }, ci = (F) => {
10925
- K(F), $(I, F);
10926
- }, j = async (F, z) => {
10927
- var _, qi;
10922
+ }, ii = (z) => {
10923
+ d(z), $(z, c);
10924
+ }, ci = (z) => {
10925
+ K(z), $(I, z);
10926
+ }, j = async (z, x) => {
10927
+ var _, ni;
10928
10928
  try {
10929
- let ni;
10929
+ let li;
10930
10930
  if (a === "Playable" || a === "Ready") {
10931
- const Li = await Gn(i, r);
10932
- if (Li) {
10933
- d(Li.iosLink), K(Li.androidLink), B(!1);
10931
+ const Ji = await Gn(i, r);
10932
+ if (Ji) {
10933
+ d(Ji.iosLink), K(Ji.androidLink), B(!1);
10934
10934
  return;
10935
10935
  }
10936
- if (F && (F.iosUrl || F.googleUrl)) {
10937
- d(F.iosUrl), K(F.googleUrl), B(!1);
10936
+ if (z && (z.iosUrl || z.googleUrl)) {
10937
+ d(z.iosUrl), K(z.googleUrl), B(!1);
10938
10938
  return;
10939
10939
  }
10940
- if (z && z.html) {
10941
- const si = `${A}/${z.html}?t=${Date.now()}`;
10942
- let ai = await fetch(si).then((Di) => Di.text());
10943
- const yi = ((_ = ai.match(/var\s+iosLink\s*=\s*['|"](https?[^\s'"]+)['|"]/)) == null ? void 0 : _.at(1)) || "";
10940
+ if (x && x.html) {
10941
+ const si = `${A}/${x.html}?t=${Date.now()}`;
10942
+ let oi = await fetch(si).then((Di) => Di.text());
10943
+ const yi = ((_ = oi.match(/var\s+iosLink\s*=\s*['|"](https?[^\s'"]+)['|"]/)) == null ? void 0 : _.at(1)) || "";
10944
10944
  d(yi);
10945
- const li = ((qi = ai.match(/var\s+androidLink\s*=\s*['|"](https?[^\s'"]+)['|"]/)) == null ? void 0 : qi.at(1)) || "";
10946
- K(li), B(!1);
10945
+ const Ai = ((ni = oi.match(/var\s+androidLink\s*=\s*['|"](https?[^\s'"]+)['|"]/)) == null ? void 0 : ni.at(1)) || "";
10946
+ K(Ai), B(!1);
10947
10947
  } else
10948
10948
  K(""), d(""), B(!1);
10949
10949
  } else if (a === "Flex") {
10950
- const Li = await bn(i, r);
10951
- if (Li.googleUrl || Li.iosUrl) {
10952
- K(Li.googleUrl), d(Li.iosUrl), B(!1);
10950
+ const Ji = await bn(i, r);
10951
+ if (Ji.googleUrl || Ji.iosUrl) {
10952
+ K(Ji.googleUrl), d(Ji.iosUrl), B(!1);
10953
10953
  return;
10954
10954
  }
10955
- F && (F.iosUrl || F.googleUrl) ? (d(F.iosUrl), K(F.googleUrl), B(!1)) : (K(""), d(""), B(!1));
10955
+ z && (z.iosUrl || z.googleUrl) ? (d(z.iosUrl), K(z.googleUrl), B(!1)) : (K(""), d(""), B(!1));
10956
10956
  } else
10957
- a === "Fusion" && (F && (F.iosUrl || F.googleUrl) ? (d(F.iosUrl), K(F.googleUrl), B(!1)) : (K(""), d(""), B(!1)));
10958
- } catch (ni) {
10959
- l(ni.response.data.error.msg);
10957
+ a === "Fusion" && (z && (z.iosUrl || z.googleUrl) ? (d(z.iosUrl), K(z.googleUrl), B(!1)) : (K(""), d(""), B(!1)));
10958
+ } catch (li) {
10959
+ l(li.response.data.error.msg);
10960
10960
  }
10961
10961
  }, di = async () => {
10962
10962
  B(!0);
10963
- let F;
10964
- a === "Flex" ? F = await Ln({ _id: i }, r) : a === "Ready" && (F = await jn({ _id: i }, r)), F && (["admin", "pm", "tester", "sales"].includes(s.role) ? T({
10965
- ...F,
10963
+ let z;
10964
+ a === "Flex" ? z = await Ln({ _id: i }, r) : a === "Ready" && (z = await jn({ _id: i }, r)), z && (["admin", "pm", "tester", "sales"].includes(s.role) ? T({
10965
+ ...z,
10966
10966
  networks: R
10967
- }) : (console.log("result", F), a === "Ready" && !F.canDownload ? T({
10968
- ...F,
10967
+ }) : (console.log("result", z), a === "Ready" && !z.canDownload ? T({
10968
+ ...z,
10969
10969
  networks: Dr
10970
- }) : (console.log("result", F), T({
10971
- ...F,
10972
- networks: F.networks
10970
+ }) : (console.log("result", z), T({
10971
+ ...z,
10972
+ networks: z.networks
10973
10973
  })))), B(!1);
10974
- }, w = async () => await Yn(t, r), [ri, ki] = M(null), Vi = async (F) => await Nn(F, r);
10975
- return mi(() => {
10976
- o || (h(null), x(null), T(null), p(null), ki(null)), o && (a === "Playable" ? w().then((F) => {
10977
- x(F), F && Vi(F.customer).then((z) => {
10978
- ki(z || null);
10979
- }), H().then((z) => {
10980
- j(null, z);
10974
+ }, w = async () => await Yn(t, r), [ai, ki] = M(null), Vi = async (z) => await Nn(z, r);
10975
+ return qi(() => {
10976
+ o || (h(null), F(null), T(null), p(null), ki(null)), o && (a === "Playable" ? w().then((z) => {
10977
+ F(z), z && Vi(z.customer).then((x) => {
10978
+ ki(x || null);
10979
+ }), H().then((x) => {
10980
+ j(null, x);
10981
10981
  }), P(!1);
10982
- }) : a === "Ready" ? di().then((F) => {
10983
- H().then((z) => {
10984
- j(null, z), P(!1), z != null && z.customer && Vi(z.customer).then((_) => {
10982
+ }) : a === "Ready" ? di().then((z) => {
10983
+ H().then((x) => {
10984
+ j(null, x), P(!1), x != null && x.customer && Vi(x.customer).then((_) => {
10985
10985
  ki(_ || null);
10986
10986
  });
10987
10987
  });
10988
- }) : a === "Flex" ? di().then((F) => {
10989
- P(!1), w().then((z) => {
10990
- o && (j(z, null), P(!1), x(z), z && Vi(z.customer).then((_) => {
10988
+ }) : a === "Flex" ? di().then((z) => {
10989
+ P(!1), w().then((x) => {
10990
+ o && (j(x, null), P(!1), F(x), x && Vi(x.customer).then((_) => {
10991
10991
  ki(_ || null);
10992
10992
  }));
10993
10993
  });
10994
- }) : a === "Import" ? Qn(i, r).then((F) => {
10995
- h(F), d(F.iosUrl || ""), K(F.googleUrl || ""), B(!1), P(!1);
10996
- }) : a === "Fusion" && (P(!1), w().then((F) => {
10997
- o && (j(F, null), P(!1), x({
10998
- ...F,
10999
- networks: R.filter((z) => z !== "cdn")
11000
- }), F && Vi(F.customer).then((z) => {
11001
- ki(z || null);
10994
+ }) : a === "Import" ? Qn(i, r).then((z) => {
10995
+ h(z), d(z.iosUrl || ""), K(z.googleUrl || ""), B(!1), P(!1);
10996
+ }) : a === "Fusion" && (P(!1), w().then((z) => {
10997
+ o && (j(z, null), P(!1), F({
10998
+ ...z,
10999
+ networks: R.filter((x) => x !== "cdn")
11000
+ }), z && Vi(z.customer).then((x) => {
11001
+ ki(x || null);
11002
11002
  }));
11003
11003
  })));
11004
11004
  }, [t, e, i, o]), /* @__PURE__ */ q.jsxs(
@@ -11048,7 +11048,7 @@ const lI = ({
11048
11048
  allNetworksSelected: O,
11049
11049
  setAllNetworksSelected: N,
11050
11050
  versionId: i,
11051
- customerId: (ri == null ? void 0 : ri._id) || ""
11051
+ customerId: (ai == null ? void 0 : ai._id) || ""
11052
11052
  }
11053
11053
  ),
11054
11054
  X ? /* @__PURE__ */ q.jsx(
@@ -11086,7 +11086,7 @@ const lI = ({
11086
11086
  setCdnModal: D,
11087
11087
  cdnUrl: k,
11088
11088
  setCdnUrl: Z,
11089
- customer: ri ?? void 0,
11089
+ customer: ai ?? void 0,
11090
11090
  selectedVersionIds: W
11091
11091
  }
11092
11092
  )
@@ -11102,7 +11102,7 @@ async function Fn(e, i = !1, t) {
11102
11102
  }
11103
11103
  const AI = ({ selectedVersionIds: e, api: i, fetchFileUrl: t }) => {
11104
11104
  const [a, o] = M([]);
11105
- return mi(() => {
11105
+ return qi(() => {
11106
11106
  const r = e.map((n) => ({
11107
11107
  versionId: n,
11108
11108
  versionName: "Loading...",
@@ -11457,25 +11457,25 @@ function dI(e, i) {
11457
11457
  });
11458
11458
  }
11459
11459
  const Bn = 4;
11460
- function Wi(e) {
11460
+ function Mi(e) {
11461
11461
  if (e)
11462
11462
  return ZI(e);
11463
11463
  }
11464
11464
  function ZI(e) {
11465
- for (var i in Wi.prototype)
11466
- e[i] = Wi.prototype[i];
11465
+ for (var i in Mi.prototype)
11466
+ e[i] = Mi.prototype[i];
11467
11467
  return e;
11468
11468
  }
11469
- Wi.prototype.on = Wi.prototype.addEventListener = function(e, i) {
11469
+ Mi.prototype.on = Mi.prototype.addEventListener = function(e, i) {
11470
11470
  return this._callbacks = this._callbacks || {}, (this._callbacks["$" + e] = this._callbacks["$" + e] || []).push(i), this;
11471
11471
  };
11472
- Wi.prototype.once = function(e, i) {
11472
+ Mi.prototype.once = function(e, i) {
11473
11473
  function t() {
11474
11474
  this.off(e, t), i.apply(this, arguments);
11475
11475
  }
11476
11476
  return t.fn = i, this.on(e, t), this;
11477
11477
  };
11478
- Wi.prototype.off = Wi.prototype.removeListener = Wi.prototype.removeAllListeners = Wi.prototype.removeEventListener = function(e, i) {
11478
+ Mi.prototype.off = Mi.prototype.removeListener = Mi.prototype.removeAllListeners = Mi.prototype.removeEventListener = function(e, i) {
11479
11479
  if (this._callbacks = this._callbacks || {}, arguments.length == 0)
11480
11480
  return this._callbacks = {}, this;
11481
11481
  var t = this._callbacks["$" + e];
@@ -11490,7 +11490,7 @@ Wi.prototype.off = Wi.prototype.removeListener = Wi.prototype.removeAllListeners
11490
11490
  }
11491
11491
  return t.length === 0 && delete this._callbacks["$" + e], this;
11492
11492
  };
11493
- Wi.prototype.emit = function(e) {
11493
+ Mi.prototype.emit = function(e) {
11494
11494
  this._callbacks = this._callbacks || {};
11495
11495
  for (var i = new Array(arguments.length - 1), t = this._callbacks["$" + e], a = 1; a < arguments.length; a++)
11496
11496
  i[a - 1] = arguments[a];
@@ -11501,11 +11501,11 @@ Wi.prototype.emit = function(e) {
11501
11501
  }
11502
11502
  return this;
11503
11503
  };
11504
- Wi.prototype.emitReserved = Wi.prototype.emit;
11505
- Wi.prototype.listeners = function(e) {
11504
+ Mi.prototype.emitReserved = Mi.prototype.emit;
11505
+ Mi.prototype.listeners = function(e) {
11506
11506
  return this._callbacks = this._callbacks || {}, this._callbacks["$" + e] || [];
11507
11507
  };
11508
- Wi.prototype.hasListeners = function(e) {
11508
+ Mi.prototype.hasListeners = function(e) {
11509
11509
  return !!this.listeners(e).length;
11510
11510
  };
11511
11511
  const ya = (() => typeof Promise == "function" && typeof Promise.resolve == "function" ? (i) => Promise.resolve().then(i) : (i, t) => t(i, 0))(), Bi = (() => typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")())(), hI = "arraybuffer";
@@ -11548,7 +11548,7 @@ class WI extends Error {
11548
11548
  super(i), this.description = t, this.context = a, this.type = "TransportError";
11549
11549
  }
11550
11550
  }
11551
- class zo extends Wi {
11551
+ class zo extends Mi {
11552
11552
  /**
11553
11553
  * Transport abstract constructor.
11554
11554
  *
@@ -11788,7 +11788,7 @@ class RI extends MI {
11788
11788
  }), this.pollXhr = i;
11789
11789
  }
11790
11790
  }
11791
- class se extends Wi {
11791
+ class se extends Mi {
11792
11792
  /**
11793
11793
  * Request constructor
11794
11794
  *
@@ -12084,7 +12084,7 @@ const Io = typeof addEventListener == "function" && typeof removeEventListener =
12084
12084
  Io && addEventListener("offline", () => {
12085
12085
  zt.forEach((e) => e());
12086
12086
  }, !1);
12087
- class he extends Wi {
12087
+ class he extends Mi {
12088
12088
  /**
12089
12089
  * Socket constructor.
12090
12090
  *
@@ -12512,10 +12512,10 @@ const PI = [
12512
12512
  "removeListener"
12513
12513
  // used by the Node.js EventEmitter
12514
12514
  ], _I = 5;
12515
- var Ai;
12515
+ var mi;
12516
12516
  (function(e) {
12517
12517
  e[e.CONNECT = 0] = "CONNECT", e[e.DISCONNECT = 1] = "DISCONNECT", e[e.EVENT = 2] = "EVENT", e[e.ACK = 3] = "ACK", e[e.CONNECT_ERROR = 4] = "CONNECT_ERROR", e[e.BINARY_EVENT = 5] = "BINARY_EVENT", e[e.BINARY_ACK = 6] = "BINARY_ACK";
12518
- })(Ai || (Ai = {}));
12518
+ })(mi || (mi = {}));
12519
12519
  class $I {
12520
12520
  /**
12521
12521
  * Encoder constructor
@@ -12532,8 +12532,8 @@ class $I {
12532
12532
  * @param {Object} obj - packet object
12533
12533
  */
12534
12534
  encode(i) {
12535
- return (i.type === Ai.EVENT || i.type === Ai.ACK) && wt(i) ? this.encodeAsBinary({
12536
- type: i.type === Ai.EVENT ? Ai.BINARY_EVENT : Ai.BINARY_ACK,
12535
+ return (i.type === mi.EVENT || i.type === mi.ACK) && wt(i) ? this.encodeAsBinary({
12536
+ type: i.type === mi.EVENT ? mi.BINARY_EVENT : mi.BINARY_ACK,
12537
12537
  nsp: i.nsp,
12538
12538
  data: i.data,
12539
12539
  id: i.id
@@ -12544,7 +12544,7 @@ class $I {
12544
12544
  */
12545
12545
  encodeAsString(i) {
12546
12546
  let t = "" + i.type;
12547
- return (i.type === Ai.BINARY_EVENT || i.type === Ai.BINARY_ACK) && (t += i.attachments + "-"), i.nsp && i.nsp !== "/" && (t += i.nsp + ","), i.id != null && (t += i.id), i.data != null && (t += JSON.stringify(i.data, this.replacer)), t;
12547
+ return (i.type === mi.BINARY_EVENT || i.type === mi.BINARY_ACK) && (t += i.attachments + "-"), i.nsp && i.nsp !== "/" && (t += i.nsp + ","), i.id != null && (t += i.id), i.data != null && (t += JSON.stringify(i.data, this.replacer)), t;
12548
12548
  }
12549
12549
  /**
12550
12550
  * Encode packet as 'buffer sequence' by removing blobs, and
@@ -12559,7 +12559,7 @@ class $I {
12559
12559
  function _r(e) {
12560
12560
  return Object.prototype.toString.call(e) === "[object Object]";
12561
12561
  }
12562
- class To extends Wi {
12562
+ class To extends Mi {
12563
12563
  /**
12564
12564
  * Decoder constructor
12565
12565
  *
@@ -12579,8 +12579,8 @@ class To extends Wi {
12579
12579
  if (this.reconstructor)
12580
12580
  throw new Error("got plaintext data when reconstructing a packet");
12581
12581
  t = this.decodeString(i);
12582
- const a = t.type === Ai.BINARY_EVENT;
12583
- a || t.type === Ai.BINARY_ACK ? (t.type = a ? Ai.EVENT : Ai.ACK, this.reconstructor = new iK(t), t.attachments === 0 && super.emitReserved("decoded", t)) : super.emitReserved("decoded", t);
12582
+ const a = t.type === mi.BINARY_EVENT;
12583
+ a || t.type === mi.BINARY_ACK ? (t.type = a ? mi.EVENT : mi.ACK, this.reconstructor = new iK(t), t.attachments === 0 && super.emitReserved("decoded", t)) : super.emitReserved("decoded", t);
12584
12584
  } else if (wo(i) || i.base64)
12585
12585
  if (this.reconstructor)
12586
12586
  t = this.reconstructor.takeBinaryData(i), t && (this.reconstructor = null, super.emitReserved("decoded", t));
@@ -12600,9 +12600,9 @@ class To extends Wi {
12600
12600
  const a = {
12601
12601
  type: Number(i.charAt(0))
12602
12602
  };
12603
- if (Ai[a.type] === void 0)
12603
+ if (mi[a.type] === void 0)
12604
12604
  throw new Error("unknown packet type " + a.type);
12605
- if (a.type === Ai.BINARY_EVENT || a.type === Ai.BINARY_ACK) {
12605
+ if (a.type === mi.BINARY_EVENT || a.type === mi.BINARY_ACK) {
12606
12606
  const r = t + 1;
12607
12607
  for (; i.charAt(++t) !== "-" && t != i.length; )
12608
12608
  ;
@@ -12650,17 +12650,17 @@ class To extends Wi {
12650
12650
  }
12651
12651
  static isPayloadValid(i, t) {
12652
12652
  switch (i) {
12653
- case Ai.CONNECT:
12653
+ case mi.CONNECT:
12654
12654
  return _r(t);
12655
- case Ai.DISCONNECT:
12655
+ case mi.DISCONNECT:
12656
12656
  return t === void 0;
12657
- case Ai.CONNECT_ERROR:
12657
+ case mi.CONNECT_ERROR:
12658
12658
  return typeof t == "string" || _r(t);
12659
- case Ai.EVENT:
12660
- case Ai.BINARY_EVENT:
12659
+ case mi.EVENT:
12660
+ case mi.BINARY_EVENT:
12661
12661
  return Array.isArray(t) && (typeof t[0] == "number" || typeof t[0] == "string" && PI.indexOf(t[0]) === -1);
12662
- case Ai.ACK:
12663
- case Ai.BINARY_ACK:
12662
+ case mi.ACK:
12663
+ case mi.BINARY_ACK:
12664
12664
  return Array.isArray(t);
12665
12665
  }
12666
12666
  }
@@ -12702,7 +12702,7 @@ const eK = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12702
12702
  Decoder: To,
12703
12703
  Encoder: $I,
12704
12704
  get PacketType() {
12705
- return Ai;
12705
+ return mi;
12706
12706
  },
12707
12707
  protocol: _I
12708
12708
  }, Symbol.toStringTag, { value: "Module" }));
@@ -12720,7 +12720,7 @@ const tK = Object.freeze({
12720
12720
  newListener: 1,
12721
12721
  removeListener: 1
12722
12722
  });
12723
- class _n extends Wi {
12723
+ class _n extends Mi {
12724
12724
  /**
12725
12725
  * `Socket` constructor.
12726
12726
  */
@@ -12841,7 +12841,7 @@ class _n extends Wi {
12841
12841
  if (t.unshift(i), this._opts.retries && !this.flags.fromQueue && !this.flags.volatile)
12842
12842
  return this._addToQueue(t), this;
12843
12843
  const s = {
12844
- type: Ai.EVENT,
12844
+ type: mi.EVENT,
12845
12845
  data: t
12846
12846
  };
12847
12847
  if (s.options = {}, s.options.compress = this.flags.compress !== !1, typeof t[t.length - 1] == "function") {
@@ -12949,7 +12949,7 @@ class _n extends Wi {
12949
12949
  */
12950
12950
  _sendConnectPacket(i) {
12951
12951
  this.packet({
12952
- type: Ai.CONNECT,
12952
+ type: mi.CONNECT,
12953
12953
  data: this._pid ? Object.assign({ pid: this._pid, offset: this._lastOffset }, i) : i
12954
12954
  });
12955
12955
  }
@@ -12995,21 +12995,21 @@ class _n extends Wi {
12995
12995
  onpacket(i) {
12996
12996
  if (i.nsp === this.nsp)
12997
12997
  switch (i.type) {
12998
- case Ai.CONNECT:
12998
+ case mi.CONNECT:
12999
12999
  i.data && i.data.sid ? this.onconnect(i.data.sid, i.data.pid) : this.emitReserved("connect_error", new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));
13000
13000
  break;
13001
- case Ai.EVENT:
13002
- case Ai.BINARY_EVENT:
13001
+ case mi.EVENT:
13002
+ case mi.BINARY_EVENT:
13003
13003
  this.onevent(i);
13004
13004
  break;
13005
- case Ai.ACK:
13006
- case Ai.BINARY_ACK:
13005
+ case mi.ACK:
13006
+ case mi.BINARY_ACK:
13007
13007
  this.onack(i);
13008
13008
  break;
13009
- case Ai.DISCONNECT:
13009
+ case mi.DISCONNECT:
13010
13010
  this.ondisconnect();
13011
13011
  break;
13012
- case Ai.CONNECT_ERROR:
13012
+ case mi.CONNECT_ERROR:
13013
13013
  this.destroy();
13014
13014
  const a = new Error(i.data.message);
13015
13015
  a.data = i.data.data, this.emitReserved("connect_error", a);
@@ -13044,7 +13044,7 @@ class _n extends Wi {
13044
13044
  let a = !1;
13045
13045
  return function(...o) {
13046
13046
  a || (a = !0, t.packet({
13047
- type: Ai.ACK,
13047
+ type: mi.ACK,
13048
13048
  id: i,
13049
13049
  data: o
13050
13050
  }));
@@ -13113,7 +13113,7 @@ class _n extends Wi {
13113
13113
  * @return self
13114
13114
  */
13115
13115
  disconnect() {
13116
- return this.connected && this.packet({ type: Ai.DISCONNECT }), this.destroy(), this.connected && this.onclose("io client disconnect"), this;
13116
+ return this.connected && this.packet({ type: mi.DISCONNECT }), this.destroy(), this.connected && this.onclose("io client disconnect"), this;
13117
13117
  }
13118
13118
  /**
13119
13119
  * Alias for {@link disconnect()}.
@@ -13335,7 +13335,7 @@ ve.prototype.setMax = function(e) {
13335
13335
  ve.prototype.setJitter = function(e) {
13336
13336
  this.jitter = e;
13337
13337
  };
13338
- class Zo extends Wi {
13338
+ class Zo extends Mi {
13339
13339
  constructor(i, t) {
13340
13340
  var a;
13341
13341
  super(), this.nsps = {}, this.subs = [], i && typeof i == "object" && (t = i, i = void 0), t = t || {}, t.path = t.path || "/socket.io", this.opts = t, ka(this, t), this.reconnection(t.reconnection !== !1), this.reconnectionAttempts(t.reconnectionAttempts || 1 / 0), this.reconnectionDelay(t.reconnectionDelay || 1e3), this.reconnectionDelayMax(t.reconnectionDelayMax || 5e3), this.randomizationFactor((a = t.randomizationFactor) !== null && a !== void 0 ? a : 0.5), this.backoff = new ve({
@@ -13609,7 +13609,7 @@ const Yt = 5, rK = ({
13609
13609
  api: m
13610
13610
  }) => {
13611
13611
  const [p, u] = M(!1), [I, c] = M(!1);
13612
- mi(() => {
13612
+ qi(() => {
13613
13613
  const h = Tt(l, {
13614
13614
  path: "/socket.io"
13615
13615
  });
@@ -13618,8 +13618,8 @@ const Yt = 5, rK = ({
13618
13618
  }), h.on("video-compressing", async (G) => {
13619
13619
  if (console.log(G), G.userId === n._id && G.isSuccess) {
13620
13620
  console.log("Video compress successfull");
13621
- const x = await oK({ _id: o }, m);
13622
- s(x.size), e(!1);
13621
+ const F = await oK({ _id: o }, m);
13622
+ s(F.size), e(!1);
13623
13623
  }
13624
13624
  }), h.on("error", (G) => {
13625
13625
  console.error("Socket error:", G);
@@ -14219,7 +14219,7 @@ const Yt = 5, rK = ({
14219
14219
  fusionData: d,
14220
14220
  onNameChange: K
14221
14221
  }) => {
14222
- const [S, U] = M(window.innerWidth), [W, V] = M(!1), [h, G] = M(p), [x, Q] = M(!1), [T, X] = M(!0), [B, v] = M(null), [P, g] = M(""), [L, Y] = M("Loading..."), [C, J] = M("Loading..."), [D, k] = M("game"), [Z, R] = Ci(Ge), [b, E] = Ci(ha);
14222
+ const [S, U] = M(window.innerWidth), [W, V] = M(!1), [h, G] = M(p), [F, Q] = M(!1), [T, X] = M(!0), [B, v] = M(null), [P, g] = M(""), [L, Y] = M("Loading..."), [C, J] = M("Loading..."), [D, k] = M("game"), [Z, R] = Ci(Ge), [b, E] = Ci(ha);
14223
14223
  Xs(n, l, g, I, d);
14224
14224
  const f = async () => {
14225
14225
  let O = await yn(l, n, t);
@@ -14233,9 +14233,9 @@ const Yt = 5, rK = ({
14233
14233
  V(!0), G(I + "/" + N.url), (n === "Flex" || n === "Ready" || n === "Playable" || n === "Fusion") && (N.size >= 5 ? Q(!0) : Q(!1), v(N.size)), X(!1);
14234
14234
  });
14235
14235
  };
14236
- return mi(() => {
14236
+ return qi(() => {
14237
14237
  e ? W || (f(), V(!0)) : (V(!1), G(""));
14238
- }, [e]), mi(() => {
14238
+ }, [e]), qi(() => {
14239
14239
  const O = () => {
14240
14240
  U(window.innerWidth);
14241
14241
  };
@@ -14309,7 +14309,7 @@ const Yt = 5, rK = ({
14309
14309
  O.stopPropagation();
14310
14310
  },
14311
14311
  children: [
14312
- x && e && /* @__PURE__ */ q.jsx(
14312
+ F && e && /* @__PURE__ */ q.jsx(
14313
14313
  rK,
14314
14314
  {
14315
14315
  setIsExceedingFileSizeAccepted: Q,
@@ -14325,7 +14325,7 @@ const Yt = 5, rK = ({
14325
14325
  api: l
14326
14326
  }
14327
14327
  ),
14328
- !x && /* @__PURE__ */ q.jsxs(
14328
+ !F && /* @__PURE__ */ q.jsxs(
14329
14329
  It,
14330
14330
  {
14331
14331
  isOpen: e,
@@ -14545,7 +14545,7 @@ const Yt = 5, rK = ({
14545
14545
  }
14546
14546
  ), $n = ({ checked: e, id: i, checkedColor: t, className: a }) => {
14547
14547
  const [o, r] = M(e);
14548
- mi(() => {
14548
+ qi(() => {
14549
14549
  r(e);
14550
14550
  }, [e]);
14551
14551
  const s = () => {
@@ -14655,7 +14655,7 @@ function nK({
14655
14655
  submitCustomUrls: U,
14656
14656
  selectedGtmThresholds: W
14657
14657
  }) {
14658
- return async (h, G, x) => {
14658
+ return async (h, G, F) => {
14659
14659
  if (console.log("downloadids", r), console.log("selectedGtmThresholds", W), i == null || i(!0), a === "Flex" && t.flex === !1 && t.customer !== "playableFactoryInternal") {
14660
14660
  o("|ACCESS|"), i == null || i(!1);
14661
14661
  return;
@@ -14681,7 +14681,7 @@ function nK({
14681
14681
  urlType: l,
14682
14682
  responsiveType: "responsive"
14683
14683
  };
14684
- if (A ? G === "copy" ? (u == null || u(!0), G = "download", Q.molocoGenerateHtml = !0) : I == null || I(!0) : S && (Q.responsiveType = x), h === "cdn") {
14684
+ if (A ? G === "copy" ? (u == null || u(!0), G = "download", Q.molocoGenerateHtml = !0) : I == null || I(!0) : S && (Q.responsiveType = F), h === "cdn") {
14685
14685
  m(!0), await p(!0), i == null || i(!1);
14686
14686
  return;
14687
14687
  }
@@ -14726,7 +14726,7 @@ const lK = ({
14726
14726
  setSafariCopyLink: V,
14727
14727
  isTest: h,
14728
14728
  urlType: G,
14729
- setCdnModal: x,
14729
+ setCdnModal: F,
14730
14730
  generateCDN: Q,
14731
14731
  cdnUrl: T,
14732
14732
  selectedVersionIds: X,
@@ -14738,9 +14738,9 @@ const lK = ({
14738
14738
  M(!1);
14739
14739
  const [R, b] = M("download"), [E, f] = M(!1), [O, N] = M(!1);
14740
14740
  M(!1), M(!1);
14741
- const [H, $] = M(!1), [ii, ci] = Ci(Ge), [j, di] = Ci(Ce), w = l === "Playable" ? j : !0, ri = () => {
14742
- t(e);
14743
- }, ki = o === "moloco" || o === "molocoV2", Vi = o === "google", F = ii.find((_) => _.name === o), z = nK({
14741
+ const [H, $] = M(!1), [ii, ci] = Ci(Ge), [j, di] = Ci(Ce), w = l === "Playable" ? j : !0, ai = !(e === "adikteev" || e === "cdn"), ki = () => {
14742
+ ai && t(e);
14743
+ }, Vi = o === "moloco" || o === "molocoV2", z = o === "google", x = ii.find((ni) => ni.name === o), _ = nK({
14744
14744
  api: m,
14745
14745
  shouldDownloadMultipleIds: B,
14746
14746
  downloadState: L,
@@ -14752,9 +14752,9 @@ const lK = ({
14752
14752
  urlType: G,
14753
14753
  urls: I,
14754
14754
  selectedGtmThresholds: P,
14755
- isMoloco: ki,
14756
- isGoogle: Vi,
14757
- setCdnModal: x,
14755
+ isMoloco: Vi,
14756
+ isGoogle: z,
14757
+ setCdnModal: F,
14758
14758
  setDownloadingMoloco: f,
14759
14759
  setDownloadingMolocoHtml: N,
14760
14760
  versionId: A,
@@ -14773,7 +14773,7 @@ const lK = ({
14773
14773
  pointerEvents: "auto"
14774
14774
  },
14775
14775
  className: `gap-3 cursor-default w-58 rounded-xl h-[6.2rem] transition-all border ${a ? "border-cyan-500/50 hover:border-cyan-400/50" : "border-slate-700/50 hover:border-slate-600"}`,
14776
- onClick: ri,
14776
+ onClick: ki,
14777
14777
  children: [
14778
14778
  /* @__PURE__ */ q.jsxs(
14779
14779
  "div",
@@ -14783,8 +14783,8 @@ const lK = ({
14783
14783
  display: "flex"
14784
14784
  },
14785
14785
  children: [
14786
- /* @__PURE__ */ q.jsx("p", { className: "justify-start text-white font-medium", children: F != null && F.name ? F.name[0].toUpperCase() + F.name.slice(1) : "" }),
14787
- /* @__PURE__ */ q.jsx($n, { checked: a, id: e })
14786
+ /* @__PURE__ */ q.jsx("p", { className: "justify-start text-white font-medium", children: x != null && x.name ? x.name[0].toUpperCase() + x.name.slice(1) : "" }),
14787
+ ai && /* @__PURE__ */ q.jsx($n, { checked: a, id: e })
14788
14788
  ]
14789
14789
  }
14790
14790
  ),
@@ -14803,10 +14803,10 @@ const lK = ({
14803
14803
  {
14804
14804
  className: "flex cursor-pointer h-10 items-center justify-center border-0 duration-200 w-full rounded-xl text-white font-medium text-xs hover:shadow-lg hover:shadow-cyan-500/25 transition-all ",
14805
14805
  downloading: g,
14806
- onClickDownload: async (_) => {
14807
- _.stopPropagation(), console.log("user in onclickdownload", W), C("download");
14808
- const qi = I.iosUrl, ni = I.googleUrl;
14809
- o === "cdn" && K && K.willSpendCredit && !T || o !== "cdn" && K && K.willSpendCredit ? (d(!0), b("download"), D(!0)) : ["Playable", "Flex", "Ready"].includes(l) && (!qi || !ni) ? (d(!0), Z(!0)) : (Z(!1), D(!1), await z(o, "download"));
14806
+ onClickDownload: async (ni) => {
14807
+ ni.stopPropagation(), console.log("user in onclickdownload", W), C("download");
14808
+ const li = I.iosUrl, Ji = I.googleUrl;
14809
+ o === "cdn" && K && K.willSpendCredit && !T || o !== "cdn" && K && K.willSpendCredit ? (d(!0), b("download"), D(!0)) : ["Playable", "Flex", "Ready"].includes(l) && (!li || !Ji) ? (d(!0), Z(!0)) : (Z(!1), D(!1), await _(o, "download"));
14810
14810
  },
14811
14811
  children: g ? /* @__PURE__ */ q.jsx(Ze, {}) : /* @__PURE__ */ q.jsxs("div", { className: "flex flex-row gap-1", children: [
14812
14812
  /* @__PURE__ */ q.jsx(mt, { className: "w-5 h-5" }),
@@ -14814,17 +14814,17 @@ const lK = ({
14814
14814
  ] })
14815
14815
  }
14816
14816
  ),
14817
- F && F.downloadType.includes("copy") && /* @__PURE__ */ q.jsx(
14817
+ x && x.downloadType.includes("copy") && /* @__PURE__ */ q.jsx(
14818
14818
  $r,
14819
14819
  {
14820
14820
  className: "flex cursor-pointer items-center justify-center rounded-xl border-0 text-sm font-medium transition-all duration-200 bg-slate-700 hover:bg-slate-600 w-[4.2rem] h-10 text-white ",
14821
14821
  variant: "secondary",
14822
- onClickDownload: async (_) => {
14823
- if (_.stopPropagation(), H)
14822
+ onClickDownload: async (ni) => {
14823
+ if (ni.stopPropagation(), H)
14824
14824
  return;
14825
14825
  C("copyLink");
14826
- const qi = I.iosUrl, ni = I.googleUrl;
14827
- K && (K != null && K.willSpendCredit) ? (b("copy"), d(!0), D(!0)) : l !== "Import" && (!qi || !ni) ? (d(!0), Z(!0)) : (D(!1), Z(!1), await z(o, "copy"), $(!0), setTimeout(() => $(!1), 2e3));
14826
+ const li = I.iosUrl, Ji = I.googleUrl;
14827
+ K && (K != null && K.willSpendCredit) ? (b("copy"), d(!0), D(!0)) : l !== "Import" && (!li || !Ji) ? (d(!0), Z(!0)) : (D(!1), Z(!1), await _(o, "copy"), $(!0), setTimeout(() => $(!1), 2e3));
14828
14828
  },
14829
14829
  disabled: U,
14830
14830
  isCopied: H,
@@ -14842,10 +14842,10 @@ const lK = ({
14842
14842
  {
14843
14843
  creditConfirmType: R,
14844
14844
  handleCopyLink: async () => {
14845
- Z(!1), d(!1), await z(o, "copy");
14845
+ Z(!1), d(!1), await _(o, "copy");
14846
14846
  },
14847
14847
  download: async () => {
14848
- Z(!1), d(!1), await z(o, "download");
14848
+ Z(!1), d(!1), await _(o, "download");
14849
14849
  },
14850
14850
  onClose: () => {
14851
14851
  D(!1), d(!1);
@@ -14949,51 +14949,51 @@ const lK = ({
14949
14949
  customer: V,
14950
14950
  selectedVersionIds: h,
14951
14951
  downloadableVersionIds: G,
14952
- setDownloadableVersionIds: x,
14952
+ setDownloadableVersionIds: F,
14953
14953
  selectedGtmThresholds: Q
14954
14954
  }) => {
14955
- const [T, X] = M([]), [B, v] = M([]), [P, g] = M(!1), [L, Y] = M(""), [C, J] = M(!1), [D, k] = M(!1), [Z, R] = M("download"), [b, E] = M(!1), [f, O] = M(!1), [N, H] = M(!1), [$, ii] = Ci(da), [ci, j] = Ci(Za), [di] = Ci(Ge), [w, ri] = Ci(Ce), ki = o === "Playable" ? w : !0, [Vi, F] = M(!1), z = async (si = !1) => {
14956
- si && U || N || (H(!0), qe(a, "cdn", ki ? A : null, null, !1, {}).then((ai) => {
14957
- W(ai.url), H(!1);
14958
- }).catch((ai) => {
14959
- n(ai.message, ai), H(!1);
14955
+ const [T, X] = M([]), [B, v] = M([]), [P, g] = M(!1), [L, Y] = M(""), [C, J] = M(!1), [D, k] = M(!1), [Z, R] = M("download"), [b, E] = M(!1), [f, O] = M(!1), [N, H] = M(!1), [$, ii] = Ci(da), [ci, j] = Ci(Za), [di] = Ci(Ge), [w, ai] = Ci(Ce), ki = o === "Playable" ? w : !0, [Vi, z] = M(!1), x = async (si = !1) => {
14956
+ si && U || N || (H(!0), qe(a, "cdn", ki ? A : null, null, !1, {}).then((oi) => {
14957
+ W(oi.url), H(!1);
14958
+ }).catch((oi) => {
14959
+ n(oi.message, oi), H(!1);
14960
14960
  }));
14961
14961
  }, _ = async (si) => {
14962
14962
  if (si === "adikteev" || si === "cdn")
14963
14963
  return;
14964
- const ai = [...T];
14964
+ const oi = [...T];
14965
14965
  if (T.includes(si)) {
14966
- const yi = ai.findIndex((li) => li === si);
14967
- ai.splice(yi, 1), X(ai);
14966
+ const yi = oi.findIndex((Ai) => Ai === si);
14967
+ oi.splice(yi, 1), X(oi);
14968
14968
  } else
14969
- ai.push(si), X([...T, si]);
14970
- di.filter((yi) => [...ai].includes(yi.id)).map((yi) => yi.name);
14971
- }, qi = async () => new Promise(async (si, ai) => {
14972
- const yi = di.filter((li) => [...T].includes(li.id)).map((li) => li.name);
14969
+ oi.push(si), X([...T, si]);
14970
+ di.filter((yi) => [...oi].includes(yi.id)).map((yi) => yi.name);
14971
+ }, ni = async () => new Promise(async (si, oi) => {
14972
+ const yi = di.filter((Ai) => [...T].includes(Ai.id)).map((Ai) => Ai.name);
14973
14973
  if (J(!0), h && h.length > 0)
14974
14974
  try {
14975
14975
  if (!m || !m._id)
14976
14976
  throw new Error("Game data is required for multi-version download");
14977
- const li = await ct(r, m._id, {
14977
+ const Ai = await ct(r, m._id, {
14978
14978
  networks: yi,
14979
14979
  versions: h
14980
- }), Di = l + "/" + li.url, Ja = await (await fetch(Di)).blob(), pe = window.URL.createObjectURL(Ja), ue = document.createElement("a");
14981
- ue.href = pe, ue.download = li.url.split("/").pop() || "download.zip", document.body.appendChild(ue), ue.click(), window.URL.revokeObjectURL(pe), document.body.removeChild(ue), J(!1), si(li.url);
14982
- } catch (li) {
14983
- console.log("multi-version download error", li), J(!1), n(li.message, li), ai(li);
14980
+ }), Di = l + "/" + Ai.url, Ja = await (await fetch(Di)).blob(), pe = window.URL.createObjectURL(Ja), ue = document.createElement("a");
14981
+ ue.href = pe, ue.download = Ai.url.split("/").pop() || "download.zip", document.body.appendChild(ue), ue.click(), window.URL.revokeObjectURL(pe), document.body.removeChild(ue), J(!1), si(Ai.url);
14982
+ } catch (Ai) {
14983
+ console.log("multi-version download error", Ai), J(!1), n(Ai.message, Ai), oi(Ai);
14984
14984
  }
14985
14985
  else
14986
- fs(a, A, yi, { urlType: d }).then((li) => {
14987
- J(!1), si(li);
14988
- }).catch((li) => {
14989
- console.log("get multi download err"), J(!1), n(li.message, li), ai(li);
14986
+ fs(a, A, yi, { urlType: d }).then((Ai) => {
14987
+ J(!1), si(Ai);
14988
+ }).catch((Ai) => {
14989
+ console.log("get multi download err"), J(!1), n(Ai.message, Ai), oi(Ai);
14990
14990
  });
14991
- }), ni = async () => {
14992
- A.iosUrl, A.googleUrl, i && i.willSpendCredit ? (k(!0), R("download"), E(!0)) : (E(!1), await qi());
14993
- }, Li = ho(() => di.filter((ai) => {
14991
+ }), li = async () => {
14992
+ A.iosUrl, A.googleUrl, i && i.willSpendCredit ? (k(!0), R("download"), E(!0)) : (E(!1), await ni());
14993
+ }, Ji = ho(() => di.filter((oi) => {
14994
14994
  var yi;
14995
- return h && h.length > 0 ? !0 : i && ((yi = i == null ? void 0 : i.networks) == null ? void 0 : yi.length) > 0 ? typeof ai == "string" ? i == null ? void 0 : i.networks.includes(ai) : i == null ? void 0 : i.networks.includes(ai.name) : o === "Import" ? e == null ? void 0 : e.networks.filter((li) => li.status === "paid").some((li) => li.name === ai.name) : ai ? !0 : e == null ? void 0 : e.networks.includes(ai);
14996
- }).filter((ai) => ai.name === "voodoo" ? s.customer === "customer:20" : !0).filter((ai) => ai.id !== "adikteev" && ai.id !== "cdn").map((ai) => ai.id), [
14995
+ return h && h.length > 0 ? !0 : i && ((yi = i == null ? void 0 : i.networks) == null ? void 0 : yi.length) > 0 ? typeof oi == "string" ? i == null ? void 0 : i.networks.includes(oi) : i == null ? void 0 : i.networks.includes(oi.name) : o === "Import" ? e == null ? void 0 : e.networks.filter((Ai) => Ai.status === "paid").some((Ai) => Ai.name === oi.name) : oi ? !0 : e == null ? void 0 : e.networks.includes(oi);
14996
+ }).filter((oi) => oi.name === "voodoo" ? s.customer === "customer:20" : !0).filter((oi) => oi.id !== "adikteev" && oi.id !== "cdn").map((oi) => oi.id), [
14997
14997
  Vi,
14998
14998
  h,
14999
14999
  di,
@@ -15003,8 +15003,8 @@ const lK = ({
15003
15003
  m,
15004
15004
  s.customer
15005
15005
  ]);
15006
- return mi(() => {
15007
- const si = Li();
15006
+ return qi(() => {
15007
+ const si = Ji();
15008
15008
  X(Vi ? si : []);
15009
15009
  }, [
15010
15010
  Vi,
@@ -15033,7 +15033,7 @@ const lK = ({
15033
15033
  "button",
15034
15034
  {
15035
15035
  onClick: () => {
15036
- F(!Vi);
15036
+ z(!Vi);
15037
15037
  },
15038
15038
  className: "flex items-center cursor-pointer gap-1.5 px-4 mr-5 py-2.5 rounded-lg bg-slate-800 text-slate-300 hover:bg-slate-700 hover:text-white transition-all text-sm font-medium",
15039
15039
  children: [
@@ -15054,10 +15054,10 @@ const lK = ({
15054
15054
  paddingBottom: "1.5rem"
15055
15055
  },
15056
15056
  children: /* @__PURE__ */ q.jsx("div", { className: "h-full w-full grid grid-cols-3 gap-4", children: t && di.filter((si) => {
15057
- var ai;
15057
+ var oi;
15058
15058
  if (h && h.length > 0)
15059
15059
  return !0;
15060
- if (i && ((ai = i == null ? void 0 : i.networks) == null ? void 0 : ai.length) > 0)
15060
+ if (i && ((oi = i == null ? void 0 : i.networks) == null ? void 0 : oi.length) > 0)
15061
15061
  return typeof si == "string" ? i == null ? void 0 : i.networks.includes(si) : i == null ? void 0 : i.networks.includes(si.name);
15062
15062
  if (o === "Import")
15063
15063
  return e == null ? void 0 : e.networks.filter((yi) => yi.status === "paid").some((yi) => yi.name === si.name);
@@ -15068,17 +15068,17 @@ const lK = ({
15068
15068
  }).filter(
15069
15069
  (si) => si.name === "voodoo" ? s.customer === "customer:20" : !0
15070
15070
  ).map((si) => {
15071
- let ai = si.imageSrc;
15071
+ let oi = si.imageSrc;
15072
15072
  if (si.name === "web") {
15073
15073
  let yi = "web_" + o.toLowerCase() + ".png";
15074
- ai = ai.replace("web.png", yi);
15074
+ oi = oi.replace("web.png", yi);
15075
15075
  }
15076
15076
  return /* @__PURE__ */ q.jsx(
15077
15077
  lK,
15078
15078
  {
15079
15079
  id: si.id,
15080
15080
  name: si.name,
15081
- imageUrl: ai,
15081
+ imageUrl: oi,
15082
15082
  selected: T.includes(si.id),
15083
15083
  handleCardClick: _,
15084
15084
  networkVersionSize: B,
@@ -15100,11 +15100,11 @@ const lK = ({
15100
15100
  isTest: c,
15101
15101
  urlType: d,
15102
15102
  setCdnModal: S,
15103
- generateCDN: z,
15103
+ generateCDN: x,
15104
15104
  cdnUrl: U,
15105
15105
  selectedVersionIds: h,
15106
15106
  downloadableVersionIds: G,
15107
- setDownloadableVersionIds: x,
15107
+ setDownloadableVersionIds: F,
15108
15108
  selectedGtmThresholds: Q
15109
15109
  },
15110
15110
  si.id
@@ -15115,7 +15115,7 @@ const lK = ({
15115
15115
  T.length > 0 && /* @__PURE__ */ q.jsx(
15116
15116
  AK,
15117
15117
  {
15118
- onClickMultiDownload: ni,
15118
+ onClickMultiDownload: li,
15119
15119
  networksVersionTotalSize: L,
15120
15120
  typeOfProduct: o,
15121
15121
  multiDownloading: C,
@@ -15136,11 +15136,11 @@ const lK = ({
15136
15136
  generateCDN: async () => {
15137
15137
  if (!N) {
15138
15138
  if (!(i != null && i.willSpendCredit)) {
15139
- z();
15139
+ x();
15140
15140
  return;
15141
15141
  }
15142
15142
  if (s.customer === "playableFactoryInternal") {
15143
- z();
15143
+ x();
15144
15144
  return;
15145
15145
  }
15146
15146
  O(!0);
@@ -15169,7 +15169,7 @@ const lK = ({
15169
15169
  handleCopyLink: async () => {
15170
15170
  },
15171
15171
  download: async () => {
15172
- E(!1), O(!1), z();
15172
+ E(!1), O(!1), x();
15173
15173
  },
15174
15174
  onClose: () => {
15175
15175
  E(!1), O(!1), H(!1);
@@ -15185,7 +15185,7 @@ const lK = ({
15185
15185
  handleCopyLink: async () => {
15186
15186
  },
15187
15187
  download: async () => {
15188
- E(!1), k(!1), await qi();
15188
+ E(!1), k(!1), await ni();
15189
15189
  },
15190
15190
  onClose: () => {
15191
15191
  E(!1), k(!1);
@@ -15242,14 +15242,14 @@ const lK = ({
15242
15242
  setDownloadableVersionIds: h,
15243
15243
  selectedGtmThresholds: G
15244
15244
  }) => {
15245
- const [x, Q] = M(null), [T, X] = M(null), [B, v] = M(null), [P, g] = M(!1), [L, Y] = M(!0), [C, J] = M(window.innerWidth), [D, k] = M(!1), [Z, R] = M(!1), [b, E] = M("");
15245
+ const [F, Q] = M(null), [T, X] = M(null), [B, v] = M(null), [P, g] = M(!1), [L, Y] = M(!0), [C, J] = M(window.innerWidth), [D, k] = M(!1), [Z, R] = M(!1), [b, E] = M("");
15246
15246
  Ci(da), Ci(Za);
15247
15247
  const [f, O] = Ci(ha);
15248
- Ci(Ce), mi(() => {
15248
+ Ci(Ce), qi(() => {
15249
15249
  !b && a !== "Fusion" && vs(i).then((w) => {
15250
15250
  w != null && w.exist && E(w.uploadPath);
15251
15251
  });
15252
- }, [b]), mi(() => {
15252
+ }, [b]), qi(() => {
15253
15253
  const w = () => {
15254
15254
  J(window.innerWidth);
15255
15255
  };
@@ -15261,40 +15261,40 @@ const lK = ({
15261
15261
  g(!0);
15262
15262
  const w = await Go(e, r);
15263
15263
  return w != null && w.networks || (w.networks = es), Q(w), w;
15264
- }, H = async (w, ri) => {
15264
+ }, H = async (w, ai) => {
15265
15265
  var ki, Vi;
15266
15266
  try {
15267
- let F;
15267
+ let z;
15268
15268
  if (a === "Playable" || a === "Ready") {
15269
- const z = await Gn(i, r);
15270
- if (z) {
15271
- d(z.iosLink), K(z.androidLink), g(!1);
15269
+ const x = await Gn(i, r);
15270
+ if (x) {
15271
+ d(x.iosLink), K(x.androidLink), g(!1);
15272
15272
  return;
15273
15273
  }
15274
15274
  if (w && (w.iosUrl || w.googleUrl)) {
15275
15275
  d(w.iosUrl), K(w.googleUrl), g(!1);
15276
15276
  return;
15277
15277
  }
15278
- if (ri && ri.html) {
15279
- const _ = `${A}/${ri.html}?t=${Date.now()}`;
15280
- let qi = await fetch(_).then((si) => si.text());
15281
- const ni = ((ki = qi.match(/var\s+iosLink\s*=\s*['|"](https?[^\s'"]+)['|"]/)) == null ? void 0 : ki.at(1)) || "";
15282
- d(ni);
15283
- const Li = ((Vi = qi.match(/var\s+androidLink\s*=\s*['|"](https?[^\s'"]+)['|"]/)) == null ? void 0 : Vi.at(1)) || "";
15284
- K(Li), g(!1);
15278
+ if (ai && ai.html) {
15279
+ const _ = `${A}/${ai.html}?t=${Date.now()}`;
15280
+ let ni = await fetch(_).then((si) => si.text());
15281
+ const li = ((ki = ni.match(/var\s+iosLink\s*=\s*['|"](https?[^\s'"]+)['|"]/)) == null ? void 0 : ki.at(1)) || "";
15282
+ d(li);
15283
+ const Ji = ((Vi = ni.match(/var\s+androidLink\s*=\s*['|"](https?[^\s'"]+)['|"]/)) == null ? void 0 : Vi.at(1)) || "";
15284
+ K(Ji), g(!1);
15285
15285
  } else
15286
15286
  K(""), d(""), g(!1);
15287
15287
  } else if (a === "Flex") {
15288
- const z = await bn(i, r);
15289
- if (z.googleUrl || z.iosUrl) {
15290
- K(z.googleUrl), d(z.iosUrl), g(!1);
15288
+ const x = await bn(i, r);
15289
+ if (x.googleUrl || x.iosUrl) {
15290
+ K(x.googleUrl), d(x.iosUrl), g(!1);
15291
15291
  return;
15292
15292
  }
15293
15293
  w && (w.iosUrl || w.googleUrl) ? (d(w.iosUrl), K(w.googleUrl), g(!1)) : (K(""), d(""), g(!1));
15294
15294
  } else
15295
15295
  a === "Fusion" && (w && (w.iosUrl || w.googleUrl) ? (d(w.iosUrl), K(w.googleUrl), g(!1)) : (K(""), d(""), g(!1)));
15296
- } catch (F) {
15297
- l(F.response.data.error.msg);
15296
+ } catch (z) {
15297
+ l(z.response.data.error.msg);
15298
15298
  }
15299
15299
  }, $ = async () => {
15300
15300
  g(!0);
@@ -15310,22 +15310,22 @@ const lK = ({
15310
15310
  networks: w.networks
15311
15311
  })))), g(!1);
15312
15312
  }, ii = async () => await Yn(t, r), [ci, j] = M(null), di = async (w) => await Nn(w, r);
15313
- return mi(() => {
15313
+ return qi(() => {
15314
15314
  o || (Q(null), X(null), v(null), p(null), j(null)), o && (a === "Playable" ? ii().then((w) => {
15315
- X(w), w && di(w.customer).then((ri) => {
15316
- j(ri || null);
15317
- }), N().then((ri) => {
15318
- H(null, ri);
15315
+ X(w), w && di(w.customer).then((ai) => {
15316
+ j(ai || null);
15317
+ }), N().then((ai) => {
15318
+ H(null, ai);
15319
15319
  }), Y(!1);
15320
15320
  }) : a === "Ready" ? $().then((w) => {
15321
- N().then((ri) => {
15322
- H(null, ri), Y(!1), ri != null && ri.customer && di(ri.customer).then((ki) => {
15321
+ N().then((ai) => {
15322
+ H(null, ai), Y(!1), ai != null && ai.customer && di(ai.customer).then((ki) => {
15323
15323
  j(ki || null);
15324
15324
  });
15325
15325
  });
15326
15326
  }) : a === "Flex" ? $().then((w) => {
15327
- Y(!1), ii().then((ri) => {
15328
- o && (H(ri, null), Y(!1), X(ri), ri && di(ri.customer).then((ki) => {
15327
+ Y(!1), ii().then((ai) => {
15328
+ o && (H(ai, null), Y(!1), X(ai), ai && di(ai.customer).then((ki) => {
15329
15329
  j(ki || null);
15330
15330
  }));
15331
15331
  });
@@ -15334,9 +15334,9 @@ const lK = ({
15334
15334
  }) : a === "Fusion" && (Y(!1), ii().then((w) => {
15335
15335
  o && (H(w, null), Y(!1), X({
15336
15336
  ...w,
15337
- networks: f.filter((ri) => ri !== "cdn")
15338
- }), w && di(w.customer).then((ri) => {
15339
- j(ri || null);
15337
+ networks: f.filter((ai) => ai !== "cdn")
15338
+ }), w && di(w.customer).then((ai) => {
15339
+ j(ai || null);
15340
15340
  }));
15341
15341
  })));
15342
15342
  }, [t, e, i, o]), /* @__PURE__ */ q.jsx("div", { className: "p-4 rounded-xl bg-slate-800/50 border border-slate-700/50 h-fit", children: /* @__PURE__ */ q.jsx(
@@ -15364,10 +15364,10 @@ const lK = ({
15364
15364
  },
15365
15365
  children: /* @__PURE__ */ q.jsx(Ze, { isNetworksLoading: !0, isLight: !1 })
15366
15366
  }
15367
- ) : (x || B) && !P && /* @__PURE__ */ q.jsx(
15367
+ ) : (F || B) && !P && /* @__PURE__ */ q.jsx(
15368
15368
  mK,
15369
15369
  {
15370
- playable: x,
15370
+ playable: F,
15371
15371
  creditDownload: B,
15372
15372
  visible: o,
15373
15373
  versionId: i,
@@ -15402,7 +15402,7 @@ function pK({
15402
15402
  onSelectStateChange: i
15403
15403
  }) {
15404
15404
  const [t, a] = M(!0);
15405
- return mi(() => {
15405
+ return qi(() => {
15406
15406
  i == null || i({ id: e.versionId, state: t });
15407
15407
  }, [t]), /* @__PURE__ */ q.jsxs("div", { className: "overflow-x-hidden cursor-pointer flex items-start justify-start gap-2 flex-row w-full h-full px-3 py-3 rounded-lg text-base font-medium transition-all bg-slate-800 text-slate-300 border border-slate-700 hover:border-slate-600 hover:text-white", children: [
15408
15408
  /* @__PURE__ */ q.jsx(
@@ -15436,7 +15436,7 @@ const uK = ({
15436
15436
  setDownloadableVersionIds: o
15437
15437
  }) => {
15438
15438
  const [r, s] = M([]);
15439
- mi(() => {
15439
+ qi(() => {
15440
15440
  const l = e.map((m) => ({
15441
15441
  versionId: m,
15442
15442
  versionName: "Loading...",
@@ -15521,7 +15521,7 @@ const uK = ({
15521
15521
  const [t, a] = M(
15522
15522
  e.length * (i.length > 0 ? i.length : 1)
15523
15523
  );
15524
- return mi(() => {
15524
+ return qi(() => {
15525
15525
  a(
15526
15526
  e.length * (i.length > 0 ? i.length : 1)
15527
15527
  );
@@ -15616,10 +15616,10 @@ const gK = ({
15616
15616
  Xs("Playable", n, "", I, void 0);
15617
15617
  const [d, K] = M(window.innerWidth), [S, U] = M(!1), [W, V] = M(m);
15618
15618
  M(!1), M(!1);
15619
- const [h, G] = M(null), [x, Q] = M(""), [T, X] = M("Loading..."), [B, v] = M("Loading..."), [P, g] = M("game"), [L, Y] = Ci(Ge), [C, J] = Ci(ha), [D, k] = M(
15619
+ const [h, G] = M(null), [F, Q] = M(""), [T, X] = M("Loading..."), [B, v] = M("Loading..."), [P, g] = M("game"), [L, Y] = Ci(Ge), [C, J] = Ci(ha), [D, k] = M(
15620
15620
  a || []
15621
15621
  ), [Z, R] = M([]);
15622
- me(null), mi(() => {
15622
+ me(null), qi(() => {
15623
15623
  k(a || []);
15624
15624
  }, [a]);
15625
15625
  const b = async () => {
@@ -15632,9 +15632,9 @@ const gK = ({
15632
15632
  E.map((f) => f.id).filter((f) => f !== "default")
15633
15633
  );
15634
15634
  };
15635
- return mi(() => {
15635
+ return qi(() => {
15636
15636
  e ? S || (b(), U(!0)) : (U(!1), V(""));
15637
- }, [e]), mi(() => {
15637
+ }, [e]), qi(() => {
15638
15638
  const E = () => {
15639
15639
  K(window.innerWidth);
15640
15640
  };