import { a as Ze, $ as Je, S as Ke, i as $e, s as et, f as ee, b as tt, n as le, d as S, r as rt, c as O, z as de, g as W, h as s, l as K, j as v, k, t as P, e as h, m as nt, p as at, o as it, u as ot, A as $, B as he, C as be, D as Te, w as me, x as st, y as lt } from "./CasinoCoinroyaleContainer-CVJ5QU9b.js";
import { s as ut, a as ct, b as dt } from "./CasinoCoinroyaleDetails-CfDZsIT1.js";
import "../stencil/ui-skeleton-W50o8tfg.js";
function _e(r) {
  "@babel/helpers - typeof";
  return _e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
    return typeof e;
  } : function(e) {
    return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
  }, _e(r);
}
function ue(r) {
  if (r === null || r === !0 || r === !1)
    return NaN;
  var e = Number(r);
  return isNaN(e) ? e : e < 0 ? Math.ceil(e) : Math.floor(e);
}
function H(r, e) {
  if (e.length < r)
    throw new TypeError(r + " argument" + (r > 1 ? "s" : "") + " required, but only " + e.length + " present");
}
function X(r) {
  H(1, arguments);
  var e = Object.prototype.toString.call(r);
  return r instanceof Date || _e(r) === "object" && e === "[object Date]" ? new Date(r.getTime()) : typeof r == "number" || e === "[object Number]" ? new Date(r) : ((typeof r == "string" || e === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
}
function ft(r, e) {
  H(2, arguments);
  var t = X(r).getTime(), n = ue(e);
  return new Date(t + n);
}
var mt = {};
function ke() {
  return mt;
}
function ht(r) {
  var e = new Date(Date.UTC(r.getFullYear(), r.getMonth(), r.getDate(), r.getHours(), r.getMinutes(), r.getSeconds(), r.getMilliseconds()));
  return e.setUTCFullYear(r.getFullYear()), r.getTime() - e.getTime();
}
function gt(r) {
  return H(1, arguments), r instanceof Date || _e(r) === "object" && Object.prototype.toString.call(r) === "[object Date]";
}
function pt(r) {
  if (H(1, arguments), !gt(r) && typeof r != "number")
    return !1;
  var e = X(r);
  return !isNaN(Number(e));
}
function vt(r, e) {
  H(2, arguments);
  var t = ue(e);
  return ft(r, -t);
}
var bt = 864e5;
function wt(r) {
  H(1, arguments);
  var e = X(r), t = e.getTime();
  e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
  var n = e.getTime(), a = t - n;
  return Math.floor(a / bt) + 1;
}
function ye(r) {
  H(1, arguments);
  var e = 1, t = X(r), n = t.getUTCDay(), a = (n < e ? 7 : 0) + n - e;
  return t.setUTCDate(t.getUTCDate() - a), t.setUTCHours(0, 0, 0, 0), t;
}
function Ge(r) {
  H(1, arguments);
  var e = X(r), t = e.getUTCFullYear(), n = /* @__PURE__ */ new Date(0);
  n.setUTCFullYear(t + 1, 0, 4), n.setUTCHours(0, 0, 0, 0);
  var a = ye(n), i = /* @__PURE__ */ new Date(0);
  i.setUTCFullYear(t, 0, 4), i.setUTCHours(0, 0, 0, 0);
  var o = ye(i);
  return e.getTime() >= a.getTime() ? t + 1 : e.getTime() >= o.getTime() ? t : t - 1;
}
function _t(r) {
  H(1, arguments);
  var e = Ge(r), t = /* @__PURE__ */ new Date(0);
  t.setUTCFullYear(e, 0, 4), t.setUTCHours(0, 0, 0, 0);
  var n = ye(t);
  return n;
}
var yt = 6048e5;
function xt(r) {
  H(1, arguments);
  var e = X(r), t = ye(e).getTime() - _t(e).getTime();
  return Math.round(t / yt) + 1;
}
function xe(r, e) {
  var t, n, a, i, o, l, g, f;
  H(1, arguments);
  var c = ke(), m = ue((t = (n = (a = (i = e?.weekStartsOn) !== null && i !== void 0 ? i : e == null || (o = e.locale) === null || o === void 0 || (l = o.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && a !== void 0 ? a : c.weekStartsOn) !== null && n !== void 0 ? n : (g = c.locale) === null || g === void 0 || (f = g.options) === null || f === void 0 ? void 0 : f.weekStartsOn) !== null && t !== void 0 ? t : 0);
  if (!(m >= 0 && m <= 6))
    throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
  var d = X(r), b = d.getUTCDay(), p = (b < m ? 7 : 0) + b - m;
  return d.setUTCDate(d.getUTCDate() - p), d.setUTCHours(0, 0, 0, 0), d;
}
function Qe(r, e) {
  var t, n, a, i, o, l, g, f;
  H(1, arguments);
  var c = X(r), m = c.getUTCFullYear(), d = ke(), b = ue((t = (n = (a = (i = e?.firstWeekContainsDate) !== null && i !== void 0 ? i : e == null || (o = e.locale) === null || o === void 0 || (l = o.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && a !== void 0 ? a : d.firstWeekContainsDate) !== null && n !== void 0 ? n : (g = d.locale) === null || g === void 0 || (f = g.options) === null || f === void 0 ? void 0 : f.firstWeekContainsDate) !== null && t !== void 0 ? t : 1);
  if (!(b >= 1 && b <= 7))
    throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
  var p = /* @__PURE__ */ new Date(0);
  p.setUTCFullYear(m + 1, 0, b), p.setUTCHours(0, 0, 0, 0);
  var y = xe(p, e), w = /* @__PURE__ */ new Date(0);
  w.setUTCFullYear(m, 0, b), w.setUTCHours(0, 0, 0, 0);
  var x = xe(w, e);
  return c.getTime() >= y.getTime() ? m + 1 : c.getTime() >= x.getTime() ? m : m - 1;
}
function kt(r, e) {
  var t, n, a, i, o, l, g, f;
  H(1, arguments);
  var c = ke(), m = ue((t = (n = (a = (i = e?.firstWeekContainsDate) !== null && i !== void 0 ? i : e == null || (o = e.locale) === null || o === void 0 || (l = o.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && a !== void 0 ? a : c.firstWeekContainsDate) !== null && n !== void 0 ? n : (g = c.locale) === null || g === void 0 || (f = g.options) === null || f === void 0 ? void 0 : f.firstWeekContainsDate) !== null && t !== void 0 ? t : 1), d = Qe(r, e), b = /* @__PURE__ */ new Date(0);
  b.setUTCFullYear(d, 0, m), b.setUTCHours(0, 0, 0, 0);
  var p = xe(b, e);
  return p;
}
var Ct = 6048e5;
function Tt(r, e) {
  H(1, arguments);
  var t = X(r), n = xe(t, e).getTime() - kt(t, e).getTime();
  return Math.round(n / Ct) + 1;
}
function C(r, e) {
  for (var t = r < 0 ? "-" : "", n = Math.abs(r).toString(); n.length < e; )
    n = "0" + n;
  return t + n;
}
var te = {
  // Year
  y: function(e, t) {
    var n = e.getUTCFullYear(), a = n > 0 ? n : 1 - n;
    return C(t === "yy" ? a % 100 : a, t.length);
  },
  // Month
  M: function(e, t) {
    var n = e.getUTCMonth();
    return t === "M" ? String(n + 1) : C(n + 1, 2);
  },
  // Day of the month
  d: function(e, t) {
    return C(e.getUTCDate(), t.length);
  },
  // AM or PM
  a: function(e, t) {
    var n = e.getUTCHours() / 12 >= 1 ? "pm" : "am";
    switch (t) {
      case "a":
      case "aa":
        return n.toUpperCase();
      case "aaa":
        return n;
      case "aaaaa":
        return n[0];
      case "aaaa":
      default:
        return n === "am" ? "a.m." : "p.m.";
    }
  },
  // Hour [1-12]
  h: function(e, t) {
    return C(e.getUTCHours() % 12 || 12, t.length);
  },
  // Hour [0-23]
  H: function(e, t) {
    return C(e.getUTCHours(), t.length);
  },
  // Minute
  m: function(e, t) {
    return C(e.getUTCMinutes(), t.length);
  },
  // Second
  s: function(e, t) {
    return C(e.getUTCSeconds(), t.length);
  },
  // Fraction of second
  S: function(e, t) {
    var n = t.length, a = e.getUTCMilliseconds(), i = Math.floor(a * Math.pow(10, n - 3));
    return C(i, t.length);
  }
}, fe = {
  midnight: "midnight",
  noon: "noon",
  morning: "morning",
  afternoon: "afternoon",
  evening: "evening",
  night: "night"
}, Mt = {
  // Era
  G: function(e, t, n) {
    var a = e.getUTCFullYear() > 0 ? 1 : 0;
    switch (t) {
      case "G":
      case "GG":
      case "GGG":
        return n.era(a, {
          width: "abbreviated"
        });
      case "GGGGG":
        return n.era(a, {
          width: "narrow"
        });
      case "GGGG":
      default:
        return n.era(a, {
          width: "wide"
        });
    }
  },
  // Year
  y: function(e, t, n) {
    if (t === "yo") {
      var a = e.getUTCFullYear(), i = a > 0 ? a : 1 - a;
      return n.ordinalNumber(i, {
        unit: "year"
      });
    }
    return te.y(e, t);
  },
  // Local week-numbering year
  Y: function(e, t, n, a) {
    var i = Qe(e, a), o = i > 0 ? i : 1 - i;
    if (t === "YY") {
      var l = o % 100;
      return C(l, 2);
    }
    return t === "Yo" ? n.ordinalNumber(o, {
      unit: "year"
    }) : C(o, t.length);
  },
  // ISO week-numbering year
  R: function(e, t) {
    var n = Ge(e);
    return C(n, t.length);
  },
  // Extended year. This is a single number designating the year of this calendar system.
  // The main difference between `y` and `u` localizers are B.C. years:
  // | Year | `y` | `u` |
  // |------|-----|-----|
  // | AC 1 |   1 |   1 |
  // | BC 1 |   1 |   0 |
  // | BC 2 |   2 |  -1 |
  // Also `yy` always returns the last two digits of a year,
  // while `uu` pads single digit years to 2 characters and returns other years unchanged.
  u: function(e, t) {
    var n = e.getUTCFullYear();
    return C(n, t.length);
  },
  // Quarter
  Q: function(e, t, n) {
    var a = Math.ceil((e.getUTCMonth() + 1) / 3);
    switch (t) {
      case "Q":
        return String(a);
      case "QQ":
        return C(a, 2);
      case "Qo":
        return n.ordinalNumber(a, {
          unit: "quarter"
        });
      case "QQQ":
        return n.quarter(a, {
          width: "abbreviated",
          context: "formatting"
        });
      case "QQQQQ":
        return n.quarter(a, {
          width: "narrow",
          context: "formatting"
        });
      case "QQQQ":
      default:
        return n.quarter(a, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // Stand-alone quarter
  q: function(e, t, n) {
    var a = Math.ceil((e.getUTCMonth() + 1) / 3);
    switch (t) {
      case "q":
        return String(a);
      case "qq":
        return C(a, 2);
      case "qo":
        return n.ordinalNumber(a, {
          unit: "quarter"
        });
      case "qqq":
        return n.quarter(a, {
          width: "abbreviated",
          context: "standalone"
        });
      case "qqqqq":
        return n.quarter(a, {
          width: "narrow",
          context: "standalone"
        });
      case "qqqq":
      default:
        return n.quarter(a, {
          width: "wide",
          context: "standalone"
        });
    }
  },
  // Month
  M: function(e, t, n) {
    var a = e.getUTCMonth();
    switch (t) {
      case "M":
      case "MM":
        return te.M(e, t);
      case "Mo":
        return n.ordinalNumber(a + 1, {
          unit: "month"
        });
      case "MMM":
        return n.month(a, {
          width: "abbreviated",
          context: "formatting"
        });
      case "MMMMM":
        return n.month(a, {
          width: "narrow",
          context: "formatting"
        });
      case "MMMM":
      default:
        return n.month(a, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // Stand-alone month
  L: function(e, t, n) {
    var a = e.getUTCMonth();
    switch (t) {
      case "L":
        return String(a + 1);
      case "LL":
        return C(a + 1, 2);
      case "Lo":
        return n.ordinalNumber(a + 1, {
          unit: "month"
        });
      case "LLL":
        return n.month(a, {
          width: "abbreviated",
          context: "standalone"
        });
      case "LLLLL":
        return n.month(a, {
          width: "narrow",
          context: "standalone"
        });
      case "LLLL":
      default:
        return n.month(a, {
          width: "wide",
          context: "standalone"
        });
    }
  },
  // Local week of year
  w: function(e, t, n, a) {
    var i = Tt(e, a);
    return t === "wo" ? n.ordinalNumber(i, {
      unit: "week"
    }) : C(i, t.length);
  },
  // ISO week of year
  I: function(e, t, n) {
    var a = xt(e);
    return t === "Io" ? n.ordinalNumber(a, {
      unit: "week"
    }) : C(a, t.length);
  },
  // Day of the month
  d: function(e, t, n) {
    return t === "do" ? n.ordinalNumber(e.getUTCDate(), {
      unit: "date"
    }) : te.d(e, t);
  },
  // Day of year
  D: function(e, t, n) {
    var a = wt(e);
    return t === "Do" ? n.ordinalNumber(a, {
      unit: "dayOfYear"
    }) : C(a, t.length);
  },
  // Day of week
  E: function(e, t, n) {
    var a = e.getUTCDay();
    switch (t) {
      case "E":
      case "EE":
      case "EEE":
        return n.day(a, {
          width: "abbreviated",
          context: "formatting"
        });
      case "EEEEE":
        return n.day(a, {
          width: "narrow",
          context: "formatting"
        });
      case "EEEEEE":
        return n.day(a, {
          width: "short",
          context: "formatting"
        });
      case "EEEE":
      default:
        return n.day(a, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // Local day of week
  e: function(e, t, n, a) {
    var i = e.getUTCDay(), o = (i - a.weekStartsOn + 8) % 7 || 7;
    switch (t) {
      case "e":
        return String(o);
      case "ee":
        return C(o, 2);
      case "eo":
        return n.ordinalNumber(o, {
          unit: "day"
        });
      case "eee":
        return n.day(i, {
          width: "abbreviated",
          context: "formatting"
        });
      case "eeeee":
        return n.day(i, {
          width: "narrow",
          context: "formatting"
        });
      case "eeeeee":
        return n.day(i, {
          width: "short",
          context: "formatting"
        });
      case "eeee":
      default:
        return n.day(i, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // Stand-alone local day of week
  c: function(e, t, n, a) {
    var i = e.getUTCDay(), o = (i - a.weekStartsOn + 8) % 7 || 7;
    switch (t) {
      case "c":
        return String(o);
      case "cc":
        return C(o, t.length);
      case "co":
        return n.ordinalNumber(o, {
          unit: "day"
        });
      case "ccc":
        return n.day(i, {
          width: "abbreviated",
          context: "standalone"
        });
      case "ccccc":
        return n.day(i, {
          width: "narrow",
          context: "standalone"
        });
      case "cccccc":
        return n.day(i, {
          width: "short",
          context: "standalone"
        });
      case "cccc":
      default:
        return n.day(i, {
          width: "wide",
          context: "standalone"
        });
    }
  },
  // ISO day of week
  i: function(e, t, n) {
    var a = e.getUTCDay(), i = a === 0 ? 7 : a;
    switch (t) {
      case "i":
        return String(i);
      case "ii":
        return C(i, t.length);
      case "io":
        return n.ordinalNumber(i, {
          unit: "day"
        });
      case "iii":
        return n.day(a, {
          width: "abbreviated",
          context: "formatting"
        });
      case "iiiii":
        return n.day(a, {
          width: "narrow",
          context: "formatting"
        });
      case "iiiiii":
        return n.day(a, {
          width: "short",
          context: "formatting"
        });
      case "iiii":
      default:
        return n.day(a, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // AM or PM
  a: function(e, t, n) {
    var a = e.getUTCHours(), i = a / 12 >= 1 ? "pm" : "am";
    switch (t) {
      case "a":
      case "aa":
        return n.dayPeriod(i, {
          width: "abbreviated",
          context: "formatting"
        });
      case "aaa":
        return n.dayPeriod(i, {
          width: "abbreviated",
          context: "formatting"
        }).toLowerCase();
      case "aaaaa":
        return n.dayPeriod(i, {
          width: "narrow",
          context: "formatting"
        });
      case "aaaa":
      default:
        return n.dayPeriod(i, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // AM, PM, midnight, noon
  b: function(e, t, n) {
    var a = e.getUTCHours(), i;
    switch (a === 12 ? i = fe.noon : a === 0 ? i = fe.midnight : i = a / 12 >= 1 ? "pm" : "am", t) {
      case "b":
      case "bb":
        return n.dayPeriod(i, {
          width: "abbreviated",
          context: "formatting"
        });
      case "bbb":
        return n.dayPeriod(i, {
          width: "abbreviated",
          context: "formatting"
        }).toLowerCase();
      case "bbbbb":
        return n.dayPeriod(i, {
          width: "narrow",
          context: "formatting"
        });
      case "bbbb":
      default:
        return n.dayPeriod(i, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // in the morning, in the afternoon, in the evening, at night
  B: function(e, t, n) {
    var a = e.getUTCHours(), i;
    switch (a >= 17 ? i = fe.evening : a >= 12 ? i = fe.afternoon : a >= 4 ? i = fe.morning : i = fe.night, t) {
      case "B":
      case "BB":
      case "BBB":
        return n.dayPeriod(i, {
          width: "abbreviated",
          context: "formatting"
        });
      case "BBBBB":
        return n.dayPeriod(i, {
          width: "narrow",
          context: "formatting"
        });
      case "BBBB":
      default:
        return n.dayPeriod(i, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // Hour [1-12]
  h: function(e, t, n) {
    if (t === "ho") {
      var a = e.getUTCHours() % 12;
      return a === 0 && (a = 12), n.ordinalNumber(a, {
        unit: "hour"
      });
    }
    return te.h(e, t);
  },
  // Hour [0-23]
  H: function(e, t, n) {
    return t === "Ho" ? n.ordinalNumber(e.getUTCHours(), {
      unit: "hour"
    }) : te.H(e, t);
  },
  // Hour [0-11]
  K: function(e, t, n) {
    var a = e.getUTCHours() % 12;
    return t === "Ko" ? n.ordinalNumber(a, {
      unit: "hour"
    }) : C(a, t.length);
  },
  // Hour [1-24]
  k: function(e, t, n) {
    var a = e.getUTCHours();
    return a === 0 && (a = 24), t === "ko" ? n.ordinalNumber(a, {
      unit: "hour"
    }) : C(a, t.length);
  },
  // Minute
  m: function(e, t, n) {
    return t === "mo" ? n.ordinalNumber(e.getUTCMinutes(), {
      unit: "minute"
    }) : te.m(e, t);
  },
  // Second
  s: function(e, t, n) {
    return t === "so" ? n.ordinalNumber(e.getUTCSeconds(), {
      unit: "second"
    }) : te.s(e, t);
  },
  // Fraction of second
  S: function(e, t) {
    return te.S(e, t);
  },
  // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
  X: function(e, t, n, a) {
    var i = a._originalDate || e, o = i.getTimezoneOffset();
    if (o === 0)
      return "Z";
    switch (t) {
      case "X":
        return Oe(o);
      case "XXXX":
      case "XX":
        return oe(o);
      case "XXXXX":
      case "XXX":
      default:
        return oe(o, ":");
    }
  },
  // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
  x: function(e, t, n, a) {
    var i = a._originalDate || e, o = i.getTimezoneOffset();
    switch (t) {
      case "x":
        return Oe(o);
      case "xxxx":
      case "xx":
        return oe(o);
      case "xxxxx":
      case "xxx":
      default:
        return oe(o, ":");
    }
  },
  // Timezone (GMT)
  O: function(e, t, n, a) {
    var i = a._originalDate || e, o = i.getTimezoneOffset();
    switch (t) {
      case "O":
      case "OO":
      case "OOO":
        return "GMT" + Me(o, ":");
      case "OOOO":
      default:
        return "GMT" + oe(o, ":");
    }
  },
  // Timezone (specific non-location)
  z: function(e, t, n, a) {
    var i = a._originalDate || e, o = i.getTimezoneOffset();
    switch (t) {
      case "z":
      case "zz":
      case "zzz":
        return "GMT" + Me(o, ":");
      case "zzzz":
      default:
        return "GMT" + oe(o, ":");
    }
  },
  // Seconds timestamp
  t: function(e, t, n, a) {
    var i = a._originalDate || e, o = Math.floor(i.getTime() / 1e3);
    return C(o, t.length);
  },
  // Milliseconds timestamp
  T: function(e, t, n, a) {
    var i = a._originalDate || e, o = i.getTime();
    return C(o, t.length);
  }
};
function Me(r, e) {
  var t = r > 0 ? "-" : "+", n = Math.abs(r), a = Math.floor(n / 60), i = n % 60;
  if (i === 0)
    return t + String(a);
  var o = e;
  return t + String(a) + o + C(i, 2);
}
function Oe(r, e) {
  if (r % 60 === 0) {
    var t = r > 0 ? "-" : "+";
    return t + C(Math.abs(r) / 60, 2);
  }
  return oe(r, e);
}
function oe(r, e) {
  var t = e || "", n = r > 0 ? "-" : "+", a = Math.abs(r), i = C(Math.floor(a / 60), 2), o = C(a % 60, 2);
  return n + i + t + o;
}
var Pe = function(e, t) {
  switch (e) {
    case "P":
      return t.date({
        width: "short"
      });
    case "PP":
      return t.date({
        width: "medium"
      });
    case "PPP":
      return t.date({
        width: "long"
      });
    case "PPPP":
    default:
      return t.date({
        width: "full"
      });
  }
}, Xe = function(e, t) {
  switch (e) {
    case "p":
      return t.time({
        width: "short"
      });
    case "pp":
      return t.time({
        width: "medium"
      });
    case "ppp":
      return t.time({
        width: "long"
      });
    case "pppp":
    default:
      return t.time({
        width: "full"
      });
  }
}, Ot = function(e, t) {
  var n = e.match(/(P+)(p+)?/) || [], a = n[1], i = n[2];
  if (!i)
    return Pe(e, t);
  var o;
  switch (a) {
    case "P":
      o = t.dateTime({
        width: "short"
      });
      break;
    case "PP":
      o = t.dateTime({
        width: "medium"
      });
      break;
    case "PPP":
      o = t.dateTime({
        width: "long"
      });
      break;
    case "PPPP":
    default:
      o = t.dateTime({
        width: "full"
      });
      break;
  }
  return o.replace("{{date}}", Pe(a, t)).replace("{{time}}", Xe(i, t));
}, Pt = {
  p: Xe,
  P: Ot
}, Dt = ["D", "DD"], St = ["YY", "YYYY"];
function Wt(r) {
  return Dt.indexOf(r) !== -1;
}
function Ut(r) {
  return St.indexOf(r) !== -1;
}
function De(r, e, t) {
  if (r === "YYYY")
    throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e, "`) for formatting years to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
  if (r === "YY")
    throw new RangeError("Use `yy` instead of `YY` (in `".concat(e, "`) for formatting years to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
  if (r === "D")
    throw new RangeError("Use `d` instead of `D` (in `".concat(e, "`) for formatting days of the month to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
  if (r === "DD")
    throw new RangeError("Use `dd` instead of `DD` (in `".concat(e, "`) for formatting days of the month to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
}
var zt = {
  lessThanXSeconds: {
    one: "less than a second",
    other: "less than {{count}} seconds"
  },
  xSeconds: {
    one: "1 second",
    other: "{{count}} seconds"
  },
  halfAMinute: "half a minute",
  lessThanXMinutes: {
    one: "less than a minute",
    other: "less than {{count}} minutes"
  },
  xMinutes: {
    one: "1 minute",
    other: "{{count}} minutes"
  },
  aboutXHours: {
    one: "about 1 hour",
    other: "about {{count}} hours"
  },
  xHours: {
    one: "1 hour",
    other: "{{count}} hours"
  },
  xDays: {
    one: "1 day",
    other: "{{count}} days"
  },
  aboutXWeeks: {
    one: "about 1 week",
    other: "about {{count}} weeks"
  },
  xWeeks: {
    one: "1 week",
    other: "{{count}} weeks"
  },
  aboutXMonths: {
    one: "about 1 month",
    other: "about {{count}} months"
  },
  xMonths: {
    one: "1 month",
    other: "{{count}} months"
  },
  aboutXYears: {
    one: "about 1 year",
    other: "about {{count}} years"
  },
  xYears: {
    one: "1 year",
    other: "{{count}} years"
  },
  overXYears: {
    one: "over 1 year",
    other: "over {{count}} years"
  },
  almostXYears: {
    one: "almost 1 year",
    other: "almost {{count}} years"
  }
}, Yt = function(e, t, n) {
  var a, i = zt[e];
  return typeof i == "string" ? a = i : t === 1 ? a = i.one : a = i.other.replace("{{count}}", t.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + a : a + " ago" : a;
};
function Ce(r) {
  return function() {
    var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.width ? String(e.width) : r.defaultWidth, n = r.formats[t] || r.formats[r.defaultWidth];
    return n;
  };
}
var Et = {
  full: "EEEE, MMMM do, y",
  long: "MMMM do, y",
  medium: "MMM d, y",
  short: "MM/dd/yyyy"
}, Lt = {
  full: "h:mm:ss a zzzz",
  long: "h:mm:ss a z",
  medium: "h:mm:ss a",
  short: "h:mm a"
}, Ft = {
  full: "{{date}} 'at' {{time}}",
  long: "{{date}} 'at' {{time}}",
  medium: "{{date}}, {{time}}",
  short: "{{date}}, {{time}}"
}, Nt = {
  date: Ce({
    formats: Et,
    defaultWidth: "full"
  }),
  time: Ce({
    formats: Lt,
    defaultWidth: "full"
  }),
  dateTime: Ce({
    formats: Ft,
    defaultWidth: "full"
  })
}, Rt = {
  lastWeek: "'last' eeee 'at' p",
  yesterday: "'yesterday at' p",
  today: "'today at' p",
  tomorrow: "'tomorrow at' p",
  nextWeek: "eeee 'at' p",
  other: "P"
}, qt = function(e, t, n, a) {
  return Rt[e];
};
function ge(r) {
  return function(e, t) {
    var n = t != null && t.context ? String(t.context) : "standalone", a;
    if (n === "formatting" && r.formattingValues) {
      var i = r.defaultFormattingWidth || r.defaultWidth, o = t != null && t.width ? String(t.width) : i;
      a = r.formattingValues[o] || r.formattingValues[i];
    } else {
      var l = r.defaultWidth, g = t != null && t.width ? String(t.width) : r.defaultWidth;
      a = r.values[g] || r.values[l];
    }
    var f = r.argumentCallback ? r.argumentCallback(e) : e;
    return a[f];
  };
}
var Ht = {
  narrow: ["B", "A"],
  abbreviated: ["BC", "AD"],
  wide: ["Before Christ", "Anno Domini"]
}, jt = {
  narrow: ["1", "2", "3", "4"],
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
}, Bt = {
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
  abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
  wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
}, At = {
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
  wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
}, It = {
  narrow: {
    am: "a",
    pm: "p",
    midnight: "mi",
    noon: "n",
    morning: "morning",
    afternoon: "afternoon",
    evening: "evening",
    night: "night"
  },
  abbreviated: {
    am: "AM",
    pm: "PM",
    midnight: "midnight",
    noon: "noon",
    morning: "morning",
    afternoon: "afternoon",
    evening: "evening",
    night: "night"
  },
  wide: {
    am: "a.m.",
    pm: "p.m.",
    midnight: "midnight",
    noon: "noon",
    morning: "morning",
    afternoon: "afternoon",
    evening: "evening",
    night: "night"
  }
}, Gt = {
  narrow: {
    am: "a",
    pm: "p",
    midnight: "mi",
    noon: "n",
    morning: "in the morning",
    afternoon: "in the afternoon",
    evening: "in the evening",
    night: "at night"
  },
  abbreviated: {
    am: "AM",
    pm: "PM",
    midnight: "midnight",
    noon: "noon",
    morning: "in the morning",
    afternoon: "in the afternoon",
    evening: "in the evening",
    night: "at night"
  },
  wide: {
    am: "a.m.",
    pm: "p.m.",
    midnight: "midnight",
    noon: "noon",
    morning: "in the morning",
    afternoon: "in the afternoon",
    evening: "in the evening",
    night: "at night"
  }
}, Qt = function(e, t) {
  var n = Number(e), a = n % 100;
  if (a > 20 || a < 10)
    switch (a % 10) {
      case 1:
        return n + "st";
      case 2:
        return n + "nd";
      case 3:
        return n + "rd";
    }
  return n + "th";
}, Xt = {
  ordinalNumber: Qt,
  era: ge({
    values: Ht,
    defaultWidth: "wide"
  }),
  quarter: ge({
    values: jt,
    defaultWidth: "wide",
    argumentCallback: function(e) {
      return e - 1;
    }
  }),
  month: ge({
    values: Bt,
    defaultWidth: "wide"
  }),
  day: ge({
    values: At,
    defaultWidth: "wide"
  }),
  dayPeriod: ge({
    values: It,
    defaultWidth: "wide",
    formattingValues: Gt,
    defaultFormattingWidth: "wide"
  })
};
function pe(r) {
  return function(e) {
    var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.width, a = n && r.matchPatterns[n] || r.matchPatterns[r.defaultMatchWidth], i = e.match(a);
    if (!i)
      return null;
    var o = i[0], l = n && r.parsePatterns[n] || r.parsePatterns[r.defaultParseWidth], g = Array.isArray(l) ? Zt(l, function(m) {
      return m.test(o);
    }) : Vt(l, function(m) {
      return m.test(o);
    }), f;
    f = r.valueCallback ? r.valueCallback(g) : g, f = t.valueCallback ? t.valueCallback(f) : f;
    var c = e.slice(o.length);
    return {
      value: f,
      rest: c
    };
  };
}
function Vt(r, e) {
  for (var t in r)
    if (r.hasOwnProperty(t) && e(r[t]))
      return t;
}
function Zt(r, e) {
  for (var t = 0; t < r.length; t++)
    if (e(r[t]))
      return t;
}
function Jt(r) {
  return function(e) {
    var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = e.match(r.matchPattern);
    if (!n)
      return null;
    var a = n[0], i = e.match(r.parsePattern);
    if (!i)
      return null;
    var o = r.valueCallback ? r.valueCallback(i[0]) : i[0];
    o = t.valueCallback ? t.valueCallback(o) : o;
    var l = e.slice(a.length);
    return {
      value: o,
      rest: l
    };
  };
}
var Kt = /^(\d+)(th|st|nd|rd)?/i, $t = /\d+/i, er = {
  narrow: /^(b|a)/i,
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
  wide: /^(before christ|before common era|anno domini|common era)/i
}, tr = {
  any: [/^b/i, /^(a|c)/i]
}, rr = {
  narrow: /^[1234]/i,
  abbreviated: /^q[1234]/i,
  wide: /^[1234](th|st|nd|rd)? quarter/i
}, nr = {
  any: [/1/i, /2/i, /3/i, /4/i]
}, ar = {
  narrow: /^[jfmasond]/i,
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
}, ir = {
  narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
  any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
}, or = {
  narrow: /^[smtwf]/i,
  short: /^(su|mo|tu|we|th|fr|sa)/i,
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
}, sr = {
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
}, lr = {
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
}, ur = {
  any: {
    am: /^a/i,
    pm: /^p/i,
    midnight: /^mi/i,
    noon: /^no/i,
    morning: /morning/i,
    afternoon: /afternoon/i,
    evening: /evening/i,
    night: /night/i
  }
}, cr = {
  ordinalNumber: Jt({
    matchPattern: Kt,
    parsePattern: $t,
    valueCallback: function(e) {
      return parseInt(e, 10);
    }
  }),
  era: pe({
    matchPatterns: er,
    defaultMatchWidth: "wide",
    parsePatterns: tr,
    defaultParseWidth: "any"
  }),
  quarter: pe({
    matchPatterns: rr,
    defaultMatchWidth: "wide",
    parsePatterns: nr,
    defaultParseWidth: "any",
    valueCallback: function(e) {
      return e + 1;
    }
  }),
  month: pe({
    matchPatterns: ar,
    defaultMatchWidth: "wide",
    parsePatterns: ir,
    defaultParseWidth: "any"
  }),
  day: pe({
    matchPatterns: or,
    defaultMatchWidth: "wide",
    parsePatterns: sr,
    defaultParseWidth: "any"
  }),
  dayPeriod: pe({
    matchPatterns: lr,
    defaultMatchWidth: "any",
    parsePatterns: ur,
    defaultParseWidth: "any"
  })
}, dr = {
  code: "en-US",
  formatDistance: Yt,
  formatLong: Nt,
  formatRelative: qt,
  localize: Xt,
  match: cr,
  options: {
    weekStartsOn: 0,
    firstWeekContainsDate: 1
  }
}, fr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, mr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, hr = /^'([^]*?)'?$/, gr = /''/g, pr = /[a-zA-Z]/;
function vr(r, e, t) {
  var n, a, i, o, l, g, f, c, m, d, b, p, y, w;
  H(2, arguments);
  var x = String(e), U = ke(), Y = (n = (a = void 0) !== null && a !== void 0 ? a : U.locale) !== null && n !== void 0 ? n : dr, I = ue((i = (o = (l = (g = void 0) !== null && g !== void 0 ? g : void 0) !== null && l !== void 0 ? l : U.firstWeekContainsDate) !== null && o !== void 0 ? o : (f = U.locale) === null || f === void 0 || (c = f.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
  if (!(I >= 1 && I <= 7))
    throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
  var T = ue((m = (d = (b = (p = void 0) !== null && p !== void 0 ? p : void 0) !== null && b !== void 0 ? b : U.weekStartsOn) !== null && d !== void 0 ? d : (y = U.locale) === null || y === void 0 || (w = y.options) === null || w === void 0 ? void 0 : w.weekStartsOn) !== null && m !== void 0 ? m : 0);
  if (!(T >= 0 && T <= 6))
    throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
  if (!Y.localize)
    throw new RangeError("locale must contain localize property");
  if (!Y.formatLong)
    throw new RangeError("locale must contain formatLong property");
  var F = X(r);
  if (!pt(F))
    throw new RangeError("Invalid time value");
  var G = ht(F), V = vt(F, G), E = {
    firstWeekContainsDate: I,
    weekStartsOn: T,
    locale: Y,
    _originalDate: F
  }, B = x.match(mr).map(function(M) {
    var N = M[0];
    if (N === "p" || N === "P") {
      var q = Pt[N];
      return q(M, Y.formatLong);
    }
    return M;
  }).join("").match(fr).map(function(M) {
    if (M === "''")
      return "'";
    var N = M[0];
    if (N === "'")
      return br(M);
    var q = Mt[N];
    if (q)
      return Ut(M) && De(M, e, String(r)), Wt(M) && De(M, e, String(r)), q(V, M, Y.localize, E);
    if (N.match(pr))
      throw new RangeError("Format string contains an unescaped latin alphabet character `" + N + "`");
    return M;
  }).join("");
  return B;
}
function br(r) {
  var e = r.match(hr);
  return e ? e[1].replace(gr, "'") : r;
}
const Se = (r) => window.postMessage(r, window.location.href), wr = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.5384%203.18261L14.3222%200.9673C13.3202%20-0.0332963%2011.7009%20-0.26734%209.75715%200.310586C7.83938%200.880634%205.79092%202.18711%203.98901%203.98902C2.18711%205.79092%200.88063%207.83939%200.310582%209.75716C-0.26688%2011.7%20-0.0337635%2013.3211%200.965442%2014.3194C0.980736%2014.3361%200.99742%2014.3491%201.01967%2014.362L3.1826%2016.5384C3.83422%2017.1891%204.73749%2017.4996%205.78675%2017.4996C8.0382%2017.4996%2010.9621%2016.0703%2013.5167%2013.5167C17.2605%209.77199%2018.5878%205.23292%2016.5384%203.18261ZM13.2979%205.31681C12.764%206.90692%2011.6378%208.61521%2010.127%2010.1261C8.6152%2011.6369%206.90738%2012.764%205.31681%2013.2979C3.8991%2013.7744%202.71173%2013.7188%202.14169%2013.1469C1.57118%2012.5768%201.5151%2011.3904%201.99153%209.9722C2.52589%208.38209%203.65254%206.67426%205.1634%205.16341C6.67426%203.65209%208.38255%202.52589%209.97312%201.99153C10.6118%201.77649%2011.2031%201.67036%2011.7129%201.67036C12.3349%201.67036%2012.8345%201.8284%2013.1478%202.14169C13.7178%202.7122%2013.7744%203.89911%2013.2979%205.31681ZM12.3423%2012.3414C9.09859%2015.5846%205.53231%2016.5375%204.35699%2015.3622L4.23696%2015.2426C6.4481%2014.9914%209.06753%2013.5343%2011.3014%2011.3014C13.5343%209.06754%2014.9914%206.4481%2015.2426%204.23696L15.3622%204.357C16.5365%205.53093%2015.5846%209.09859%2012.3423%2012.3414Z'%20fill='url(%23paint0_linear_875_137)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_875_137'%20x1='0'%20y1='8.7498'%20x2='17.5'%20y2='8.7498'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2375FFE9'/%3e%3cstop%20offset='1'%20stop-color='%23B2FF6D'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", We = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.96967%203.96967C4.26256%203.67678%204.73744%203.67678%205.03033%203.96967L9%207.93934L12.9697%203.96967C13.2626%203.67678%2013.7374%203.67678%2014.0303%203.96967C14.3232%204.26256%2014.3232%204.73744%2014.0303%205.03033L10.0607%209L14.0303%2012.9697C14.3232%2013.2626%2014.3232%2013.7374%2014.0303%2014.0303C13.7374%2014.3232%2013.2626%2014.3232%2012.9697%2014.0303L9%2010.0607L5.03033%2014.0303C4.73744%2014.3232%204.26256%2014.3232%203.96967%2014.0303C3.67678%2013.7374%203.67678%2013.2626%203.96967%2012.9697L7.93934%209L3.96967%205.03033C3.67678%204.73744%203.67678%204.26256%203.96967%203.96967Z'%20fill='%23FF9B59'/%3e%3c/svg%3e", Ue = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.1724%204.72381C15.4708%205.02223%2015.4708%205.50607%2015.1724%205.80449L7.70071%2013.2762C7.40229%2013.5746%206.91846%2013.5746%206.62004%2013.2762L3.22381%209.87996C2.9254%209.58154%202.9254%209.09771%203.22381%208.79929C3.52223%208.50087%204.00607%208.50087%204.30449%208.79929L7.16038%2011.6552L14.0917%204.72381C14.3902%204.4254%2014.874%204.4254%2015.1724%204.72381Z'%20fill='%2358DB4A'/%3e%3c/svg%3e", _r = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.9124%204.83736C11.1402%205.06516%2011.1402%205.43451%2010.9124%205.66232L7.41243%209.16232C7.18462%209.39012%206.81528%209.39012%206.58747%209.16232L3.08747%205.66232C2.85966%205.43451%202.85966%205.06516%203.08747%204.83736C3.31528%204.60955%203.68462%204.60955%203.91243%204.83736L6.99995%207.92488L10.0875%204.83736C10.3153%204.60955%2010.6846%204.60955%2010.9124%204.83736Z'%20fill='url(%23paint0_linear_738_1669)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_738_1669'%20x1='6.99995'%20y1='4.6665'%20x2='6.99995'%20y2='9.33317'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2375FFE9'/%3e%3cstop%20offset='1'%20stop-color='%23B2FF6D'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";
var ve = /* @__PURE__ */ ((r) => (r.lotteries = "lotteries", r.outcome = "outcome", r.draw = "draw", r))(ve || {}), se = /* @__PURE__ */ ((r) => (r.en = "en", r.default = "*", r))(se || {});
const yr = async (r) => {
  const { path: e, params: t = {}, options: n = {} } = r, a = new URL(e);
  return Object.keys(t).map((i) => {
    a.searchParams.append(i, t[i]);
  }), await xr(a, n);
}, xr = async (r, e = {}) => {
  let t;
  try {
    t = await fetch(r, e), t = await t.text(), t = JSON.parse(t);
  } catch (n) {
    throw new Error(n.message);
  }
  return t;
}, ze = async (r, e, t) => {
  const { session: n } = t, a = {
    headers: {
      "Content-Type": "application/json",
      accept: "text/plain",
      ...n ? { "x-SessionId": n } : {}
    }
  }, o = {
    [ve.lotteries]: () => ({
      path: "/wof/lotteries",
      params: {
        filter: "Types[]=flipCoin"
      },
      options: a
    }),
    [ve.outcome]: () => {
      const { id: l } = t;
      return {
        path: `/wof/outcome/${l}`,
        params: {
          filter: "Types[]=flipCoin"
        },
        options: a
      };
    }
  }[r]();
  return o.path = e + "/v1" + o.path, await yr(o);
}, Ye = {
  lotteries: async (r, e) => (await ze(ve.lotteries, r, { session: e }))?.items || [],
  outcome: async (r, e, t) => await ze(ve.outcome, r, { session: e, id: t })
}, kr = (r) => +r?.current?.remainingTimes > 0;
function Ee(r, e) {
  Ze(r, e);
}
function Cr(r) {
  Je.set(r);
}
const Le = {
  en: {
    headerTitle: "Coin Royales",
    infoTooltip: "Flip a virtual coin and take a chance to win!",
    play: "Play",
    history: "History",
    rules: "Rules",
    noCoinYet: "There are no available Coin Royale",
    noHistoryYet: "There is no history yet",
    more: "More",
    rulesDescription: "Coin Royale is a particularly interesting game, will bring you a lot of surprises; When you obtained the Coin Royale, means you got a chance to flip the Coin, and if you are lucky, you can get the surprise prize.",
    terms: "Terms&Conditions link",
    prizeAgenda: "Prize agenda",
    tournamentTicket: "Tournament ticket",
    freeSpins: "Free spins",
    bonusMoney: "Bonus Money",
    loyaltyPoints: "Loyalty Points&Coins",
    luckyWheel: "LuckyWheel",
    mysteryChest: "Mystery Chest",
    coinRoyale: "Coin Royale",
    customRewards: "Custom Rewards"
  }
};
function Tr(r) {
  tt(r, "svelte-nqi96j", `.main::-webkit-scrollbar{width:0.25rem}.main::-webkit-scrollbar-track{background:#1e1e24}.main::-webkit-scrollbar-thumb{color:#93CAED}.mobile.drawer{width:100%;height:100%;border-top-left-radius:28px;border-top-right-radius:28px;padding:20px 28px}.mobile.drawer .Skeleton.Text{width:var(--emw-skeleton-text-width-100, 135px)}.mobile .tooltip-backdrop{padding:60px 20px 0;border-top-left-radius:28px;border-top-right-radius:28px}.mobile .tooltip-backdrop .tooltip{padding:20px;font-size:var(--emw--font-size-x-small, 12px)}.mobile .icon-button{width:24px;height:24px}.mobile .coins-header__title{font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500);line-height:14px}.mobile .coins-tabs{margin:20px 0}.mobile .coins-tabs__container{border-bottom:1px solid var(--emw--color-secondary, #729787)}.mobile .coins-tabs__tab{font-size:var(--emw--font-size-x-small, 12px);line-height:15px}.mobile .coins-tabs__tab.active{border-bottom:1px solid}.mobile .coins-list{gap:16px}.mobile .coins-list__item{font-weight:var(--emw--font-weight-normal, 400);padding:20px;font-size:var(--emw--font-size-x-small, 12px);line-height:15px;border-radius:var(--emw--border-radius-large, 16px);height:56px}.mobile .coins-list__item__keys{gap:5px;font-size:var(--emw--font-size-medium, 16px)}.mobile .coins-loader{border-radius:var(--emw--border-radius-large, 16px);padding:20px;line-height:15px}.mobile .coins-rules{gap:24px}.mobile .coins-rules__description{font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .coins-rules__terms{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 12px)}.mobile .coins-rules__prize-title{font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .coins-rules__list{padding-inline-start:15px;margin:5px 0 0}.mobile .coins-rules__list__item{margin-bottom:5px;font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .coins-empty{margin-top:50px;font-size:var(--emw--font-size-x-small, 12px)}.mobile .coins-history__title{font-size:var(--emw--font-size-x-small, 12px);line-height:14px;margin-bottom:12px}.mobile .coins-history__list{margin-bottom:32px}.mobile .coins-history__list__item{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 12px);line-height:14px;margin-bottom:12px}.mobile .coins-history__list__item .name img{width:14px;height:14px}.drawer{position:fixed;left:50%;transform:translateX(-50%);background:linear-gradient(180deg, var(--emw--color-background, #213841) 0%, var(--emw--color-background-secondary, #0c1a1c) 100%);box-sizing:border-box;z-index:100;bottom:0;width:60%;height:90%;border-top-left-radius:72px;border-top-right-radius:72px;padding:40px 80px}@container (max-width: 1300px){.drawer{padding:20px 40px}}@container (max-width: 992px){.drawer{width:70%}}@container (max-width: 768px){.drawer{width:80%}}@container (max-width: 576px){.drawer{width:90%}}.drawer .Skeleton{border-radius:var(--emw--border-radius-small, 12px);--emw-skeleton-primary-color:var(--emw--color-primary, #d9d9d9);--emw-skeleton-secondary-color:var(--emw--color-secondary, #999999)}.drawer .Skeleton.Text{width:var(--emw-skeleton-text-width-100, 155px)}.overlay{border:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--emw--color-gray-transparency-20, rgba(21, 43, 48, 0.5019607843));z-index:0;bottom:0;opacity:1;transition:opacity 0.5s ease-in-out}.icon-button{width:30px;height:30px;border:0px;cursor:pointer}.icon-button.help{background:center/100% no-repeat;background-image:url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.708 4.583a7.125 7.125 0 1 0 0 14.25 7.125 7.125 0 0 0 0-14.25ZM3 11.708a8.708 8.708 0 1 1 17.417 0 8.708 8.708 0 0 1-17.417 0Zm8.913-3.147a1.583 1.583 0 0 0-1.762 1.035.792.792 0 0 1-1.493-.525 3.167 3.167 0 0 1 6.154 1.055c0 1.211-.899 2.011-1.54 2.439a6.37 6.37 0 0 1-1.335.672l-.028.01-.008.002-.003.001h-.002l-.251-.75.25.751a.792.792 0 0 1-.5-1.502l.011-.004.06-.022a4.778 4.778 0 0 0 .928-.476c.545-.363.834-.75.834-1.122v-.001a1.583 1.583 0 0 0-1.315-1.563Zm-.996 7.106c0-.438.354-.792.791-.792h.008a.792.792 0 1 1 0 1.583h-.008a.792.792 0 0 1-.791-.791Z" fill="%23729787"/></svg>')}.icon-button.close{background:center/100% no-repeat;background-image:url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 6 6 18M6 6l12 12" stroke="%23729787" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>')}.tooltip-backdrop{box-sizing:border-box;z-index:200;position:absolute;width:100%;height:100%;inset:0;background-color:rgba(0, 0, 0, 0.5);padding:90px 30px 0;border-top-left-radius:72px;border-top-right-radius:72px}.tooltip-backdrop .tooltip{border:1px solid var(--emw--button-border-color, #75ffe9);background:var(--emw--color-background, #213841);border-radius:var(--emw--border-radius-large, 8px);line-height:24px;color:var(--emw--color-secondary, #bbb9c3);position:relative;padding:32px;font-size:var(--emw--font-size-medium, 16px)}.tooltip-backdrop .tooltip .icon-button{top:12px;right:12px;position:absolute}.coins-header{display:flex;justify-content:space-between;align-items:center;padding:12px 8px 8px}.coins-header__title{color:var(--emw--color-primary, #d3ffed);font-size:var(--emw--font-size-large, 22px);font-weight:var(--emw--font-weight-bold, 700);line-height:25px}.coins-loader{border-radius:var(--emw--border-radius-large, 28px);display:flex;padding:45px 48px;background:var(--emw--color-background-secondary, #233e42);border:1px solid var(--emw--button-border-color-secondary, #244346);justify-content:space-between;line-height:35px;overflow:hidden;margin-bottom:24px}.coins-history-loader{display:flex;flex-direction:column;gap:16px;margin-bottom:32px}.coins-history-loader-body{display:flex;justify-content:space-between}.coins-history-loader-left{display:flex}.coins-history-dot .Skeleton{border-radius:var(--emw--border-radius-large, 50%);margin-right:10px}.coins-history-text .Skeleton{margin-right:20px}.coins-tabs{margin:28px 0}.coins-tabs__container{display:flex;position:relative;border-bottom:2px solid var(--emw--color-secondary, #729787)}.coins-tabs__tab{padding:8px 10px;font-weight:var(--emw--font-weight-bold, 700);color:var(--emw--color-gray-300, #729787);cursor:pointer;flex-grow:1;text-align:center;background:transparent;border:none;font-size:var(--emw--font-size-medium, 16px);line-height:18px}.coins-tabs__tab.active{color:var(--emw--color-typography, #fff);border-image-source:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);border-image-slice:1;margin-bottom:-1px;border-bottom:2px solid}.coins-list{max-height:85%;overflow:auto;gap:24px;display:flex;flex-wrap:wrap}.coins-list__item{font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-large, 22px);line-height:25px;padding:35px 48px;border-radius:var(--emw--border-radius-large, 28px);height:110px;color:var(--emw--color-primary, #d3ffed);width:100%;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;background:var(--emw--color-background-secondary, #233e42);border:1px solid var(--emw--button-border-color-secondary, #244346);cursor:pointer}.coins-list__item__keys{display:flex;align-items:center;font-weight:var(--emw--font-weight-bold, 700);background:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;font-size:var(--emw--font-size-large, 22px);gap:7px}.coins-rules{display:flex;flex-flow:column;gap:40px;color:var(--emw--color-primary-variant, #a9ccbe)}.coins-rules__description{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-medium, 16px);line-height:32px}.coins-rules__terms{display:flex;gap:5px;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);border:none;padding:0;cursor:pointer;background:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.coins-rules__terms .arrow-icon{width:14px;height:14px;background:center/100% no-repeat;background-image:url('data:image/svg+xml,<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M4.41 7.744a.833.833 0 0 0 0 1.179l5 5a.833.833 0 0 0 1.18 0l5-5a.833.833 0 1 0-1.18-1.179L10 12.154l-4.41-4.41a.833.833 0 0 0-1.18 0Z" fill="url(%23a)"/><defs><linearGradient id="a" x1="10" y1="7.5" x2="10" y2="14.167" gradientUnits="userSpaceOnUse"><stop stop-color="%2375FFE9"/><stop offset="1" stop-color="%23B2FF6D"/></linearGradient></defs></svg>') no-repeat}.coins-rules__prize-title{color:#ffffff;font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-medium, 16px);line-height:18px}.coins-rules__list{padding-inline-start:25px;margin:15px 0 0}.coins-rules__list__item{font-weight:var(--emw--font-weight-normal, 400);margin-bottom:12px;font-size:var(--emw--font-size-medium, 16px);line-height:32px}.coins-empty{text-align:center;color:var(--emw--color-primary-variant, #a9ccbe);font-weight:var(--emw--font-weight-normal, 400);line-height:24px;margin-top:75px;font-size:var(--emw--font-size-medium, 16px)}.coins-history__title{font-weight:var(--emw--font-weight-bold, 700);color:#ffffff;font-size:var(--emw--font-size-medium, 16px);line-height:18px;margin-bottom:16px}.coins-history__more{border:none;display:flex;gap:4px;padding:0;background:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;cursor:pointer;font-weight:var(--emw--font-weight-medium, 500);font-size:var(--emw--font-size-medium, 16px);line-height:18px}.coins-history__list{margin-bottom:40px}.coins-history__list__body{overflow:auto;max-height:200px;padding-right:10px}.coins-history__list__item{display:flex;color:var(--emw--color-primary-variant, #a9ccbe);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-medium, 16px);line-height:16px;margin-bottom:16px}.coins-history__list__item .index{margin-right:20px}.coins-history__list__item .name{flex-grow:1;margin:0;display:flex;gap:6px}.coins-history__list__item .name img{width:18px;height:18px}::-webkit-scrollbar{width:4px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--emw--color-gray-105, #1b2e31)}::-webkit-scrollbar-thumb:hover{background:var(--emw--color-gray-290, #284044)}`);
}
function Fe(r, e, t) {
  const n = r.slice();
  return n[43] = e[t], n;
}
function Ne(r, e, t) {
  const n = r.slice();
  return n[46] = e[t], n[48] = t, n;
}
function Re(r, e, t) {
  const n = r.slice();
  return n[40] = e[t], n[42] = t, n;
}
function Mr(r, e, t) {
  const n = r.slice();
  return n[33] = e[t], n;
}
function Or(r, e, t) {
  const n = r.slice();
  return n[33] = e[t], n;
}
function Pr(r, e, t) {
  const n = r.slice();
  return n[33] = e[t], n;
}
function qe(r) {
  let e, t, n, a, i, o = (
    /*$_*/
    r[10]("infoTooltip") + ""
  ), l, g, f;
  return {
    c() {
      e = v("div"), t = v("div"), n = v("button"), a = k(), i = v("span"), l = P(o), h(n, "class", "icon-button close"), h(t, "class", "tooltip"), h(e, "class", "tooltip-backdrop");
    },
    m(c, m) {
      W(c, e, m), s(e, t), s(t, n), s(t, a), s(t, i), s(i, l), g || (f = K(
        n,
        "click",
        /*showHideToolip*/
        r[13]
      ), g = !0);
    },
    p(c, m) {
      m[0] & /*$_*/
      1024 && o !== (o = /*$_*/
      c[10]("infoTooltip") + "") && O(l, o);
    },
    d(c) {
      c && S(e), g = !1, f();
    }
  };
}
function Dr(r) {
  let e, t, n = (
    /*$_*/
    r[10]("rulesDescription") + ""
  ), a, i, o, l, g, f = (
    /*$_*/
    r[10]("prizeAgenda") + ""
  ), c, m, d, b, p = (
    /*$_*/
    r[10]("tournamentTicket") + ""
  ), y, w, x, U = (
    /*$_*/
    r[10]("freeSpins") + ""
  ), Y, I, T, F = (
    /*$_*/
    r[10]("bonusMoney") + ""
  ), G, V, E, B = (
    /*$_*/
    r[10]("loyaltyPoints") + ""
  ), M, N, q, Z = (
    /*$_*/
    r[10]("luckyWheel") + ""
  ), D, re, Q, L = (
    /*$_*/
    r[10]("mysteryChest") + ""
  ), u, _, j, ne = (
    /*$_*/
    r[10]("coinRoyale") + ""
  ), we, ae, J, ie = (
    /*$_*/
    r[10]("customRewards") + ""
  ), ce, R = (
    /*hasUrl*/
    r[8] && He(r)
  );
  return {
    c() {
      e = v("div"), t = v("span"), a = P(n), i = k(), R && R.c(), o = k(), l = v("section"), g = v("span"), c = P(f), m = k(), d = v("ul"), b = v("li"), y = P(p), w = k(), x = v("li"), Y = P(U), I = k(), T = v("li"), G = P(F), V = k(), E = v("li"), M = P(B), N = k(), q = v("li"), D = P(Z), re = k(), Q = v("li"), u = P(L), _ = k(), j = v("li"), we = P(ne), ae = k(), J = v("li"), ce = P(ie), h(t, "class", "coins-rules__description"), h(g, "class", "coins-rules__prize-title"), h(b, "class", "coins-rules__list__item"), h(x, "class", "coins-rules__list__item"), h(T, "class", "coins-rules__list__item"), h(E, "class", "coins-rules__list__item"), h(q, "class", "coins-rules__list__item"), h(Q, "class", "coins-rules__list__item"), h(j, "class", "coins-rules__list__item"), h(J, "class", "coins-rules__list__item"), h(d, "class", "coins-rules__list"), h(e, "class", "coins-rules");
    },
    m(z, A) {
      W(z, e, A), s(e, t), s(t, a), s(e, i), R && R.m(e, null), s(e, o), s(e, l), s(l, g), s(g, c), s(l, m), s(l, d), s(d, b), s(b, y), s(d, w), s(d, x), s(x, Y), s(d, I), s(d, T), s(T, G), s(d, V), s(d, E), s(E, M), s(d, N), s(d, q), s(q, D), s(d, re), s(d, Q), s(Q, u), s(d, _), s(d, j), s(j, we), s(d, ae), s(d, J), s(J, ce);
    },
    p(z, A) {
      A[0] & /*$_*/
      1024 && n !== (n = /*$_*/
      z[10]("rulesDescription") + "") && O(a, n), /*hasUrl*/
      z[8] ? R ? R.p(z, A) : (R = He(z), R.c(), R.m(e, o)) : R && (R.d(1), R = null), A[0] & /*$_*/
      1024 && f !== (f = /*$_*/
      z[10]("prizeAgenda") + "") && O(c, f), A[0] & /*$_*/
      1024 && p !== (p = /*$_*/
      z[10]("tournamentTicket") + "") && O(y, p), A[0] & /*$_*/
      1024 && U !== (U = /*$_*/
      z[10]("freeSpins") + "") && O(Y, U), A[0] & /*$_*/
      1024 && F !== (F = /*$_*/
      z[10]("bonusMoney") + "") && O(G, F), A[0] & /*$_*/
      1024 && B !== (B = /*$_*/
      z[10]("loyaltyPoints") + "") && O(M, B), A[0] & /*$_*/
      1024 && Z !== (Z = /*$_*/
      z[10]("luckyWheel") + "") && O(D, Z), A[0] & /*$_*/
      1024 && L !== (L = /*$_*/
      z[10]("mysteryChest") + "") && O(u, L), A[0] & /*$_*/
      1024 && ne !== (ne = /*$_*/
      z[10]("coinRoyale") + "") && O(we, ne), A[0] & /*$_*/
      1024 && ie !== (ie = /*$_*/
      z[10]("customRewards") + "") && O(ce, ie);
    },
    d(z) {
      z && S(e), R && R.d();
    }
  };
}
function Sr(r) {
  let e;
  function t(i, o) {
    return (
      /*coinRoyalesHistory*/
      i[9].length > 0 ? Er : Yr
    );
  }
  let n = t(r), a = n(r);
  return {
    c() {
      a.c(), e = be();
    },
    m(i, o) {
      a.m(i, o), W(i, e, o);
    },
    p(i, o) {
      n === (n = t(i)) && a ? a.p(i, o) : (a.d(1), a = n(i), a && (a.c(), a.m(e.parentNode, e)));
    },
    d(i) {
      i && S(e), a.d(i);
    }
  };
}
function Wr(r) {
  let e;
  function t(i, o) {
    return (
      /*coinRoyales*/
      i[6].length > 0 ? Rr : Nr
    );
  }
  let n = t(r), a = n(r);
  return {
    c() {
      a.c(), e = be();
    },
    m(i, o) {
      a.m(i, o), W(i, e, o);
    },
    p(i, o) {
      n === (n = t(i)) && a ? a.p(i, o) : (a.d(1), a = n(i), a && (a.c(), a.m(e.parentNode, e)));
    },
    d(i) {
      i && S(e), a.d(i);
    }
  };
}
function Ur(r) {
  let e, t = $([1, 2, 3]), n = [];
  for (let a = 0; a < 3; a += 1)
    n[a] = Hr(Mr(r, t, a));
  return {
    c() {
      for (let a = 0; a < 3; a += 1)
        n[a].c();
      e = be();
    },
    m(a, i) {
      for (let o = 0; o < 3; o += 1)
        n[o] && n[o].m(a, i);
      W(a, e, i);
    },
    p: le,
    d(a) {
      a && S(e), he(n, a);
    }
  };
}
function zr(r) {
  let e, t = $([1, 2, 3, 4, 5, 6, 7]), n = [];
  for (let a = 0; a < 7; a += 1)
    n[a] = jr(Pr(r, t, a));
  return {
    c() {
      for (let a = 0; a < 7; a += 1)
        n[a].c();
      e = be();
    },
    m(a, i) {
      for (let o = 0; o < 7; o += 1)
        n[o] && n[o].m(a, i);
      W(a, e, i);
    },
    p: le,
    d(a) {
      a && S(e), he(n, a);
    }
  };
}
function He(r) {
  let e, t, n = (
    /*$_*/
    r[10]("terms") + ""
  ), a, i, o;
  return {
    c() {
      e = v("a"), t = v("span"), a = P(n), i = k(), o = v("span"), h(o, "class", "arrow-icon"), h(e, "class", "coins-rules__terms"), h(
        e,
        "href",
        /*terms*/
        r[0]
      ), h(e, "target", "_blank");
    },
    m(l, g) {
      W(l, e, g), s(e, t), s(t, a), s(e, i), s(e, o);
    },
    p(l, g) {
      g[0] & /*$_*/
      1024 && n !== (n = /*$_*/
      l[10]("terms") + "") && O(a, n), g[0] & /*terms*/
      1 && h(
        e,
        "href",
        /*terms*/
        l[0]
      );
    },
    d(l) {
      l && S(e);
    }
  };
}
function Yr(r) {
  let e, t = (
    /*$_*/
    r[10]("noHistoryYet") + ""
  ), n;
  return {
    c() {
      e = v("div"), n = P(t), h(e, "class", "coins-empty");
    },
    m(a, i) {
      W(a, e, i), s(e, n);
    },
    p(a, i) {
      i[0] & /*$_*/
      1024 && t !== (t = /*$_*/
      a[10]("noHistoryYet") + "") && O(n, t);
    },
    d(a) {
      a && S(e);
    }
  };
}
function Er(r) {
  let e, t = $(
    /*coinRoyalesHistory*/
    r[9]
  ), n = [];
  for (let a = 0; a < t.length; a += 1)
    n[a] = Ae(Fe(r, t, a));
  return {
    c() {
      for (let a = 0; a < n.length; a += 1)
        n[a].c();
      e = be();
    },
    m(a, i) {
      for (let o = 0; o < n.length; o += 1)
        n[o] && n[o].m(a, i);
      W(a, e, i);
    },
    p(a, i) {
      if (i[0] & /*showMore, coinRoyalesHistory, $_*/
      17920) {
        t = $(
          /*coinRoyalesHistory*/
          a[9]
        );
        let o;
        for (o = 0; o < t.length; o += 1) {
          const l = Fe(a, t, o);
          n[o] ? n[o].p(l, i) : (n[o] = Ae(l), n[o].c(), n[o].m(e.parentNode, e));
        }
        for (; o < n.length; o += 1)
          n[o].d(1);
        n.length = t.length;
      }
    },
    d(a) {
      a && S(e), he(n, a);
    }
  };
}
function Lr(r) {
  let e, t;
  return {
    c() {
      e = v("img"), me(e.src, t = /*outcome*/
      r[46].assets) || h(e, "src", t), h(e, "alt", "");
    },
    m(n, a) {
      W(n, e, a);
    },
    p(n, a) {
      a[0] & /*coinRoyalesHistory*/
      512 && !me(e.src, t = /*outcome*/
      n[46].assets) && h(e, "src", t);
    },
    d(n) {
      n && S(e);
    }
  };
}
function Fr(r) {
  let e = (
    /*outcome*/
    r[46].name + ""
  ), t;
  return {
    c() {
      t = P(e);
    },
    m(n, a) {
      W(n, t, a);
    },
    p(n, a) {
      a[0] & /*coinRoyalesHistory*/
      512 && e !== (e = /*outcome*/
      n[46].name + "") && O(t, e);
    },
    d(n) {
      n && S(t);
    }
  };
}
function je(r) {
  let e, t, n, a, i, o, l, g, f, c = (
    /*outcome*/
    r[46]?.date + ""
  ), m, d;
  function b(w, x) {
    return (
      /*outcome*/
      w[46]?.name ? Fr : Lr
    );
  }
  let p = b(r), y = p(r);
  return {
    c() {
      e = v("div"), t = v("span"), t.textContent = `${/*index*/
      r[48] + 1}`, n = k(), a = v("p"), y.c(), i = k(), o = v("img"), g = k(), f = v("span"), m = P(c), d = k(), h(t, "class", "index"), me(o.src, l = /*outcome*/
      r[46]?.state ? Ue : We) || h(o, "src", l), h(o, "alt", ""), h(a, "class", "name"), h(f, "class", "time"), h(e, "class", "coins-history__list__item");
    },
    m(w, x) {
      W(w, e, x), s(e, t), s(e, n), s(e, a), y.m(a, null), s(a, i), s(a, o), s(e, g), s(e, f), s(f, m), s(e, d);
    },
    p(w, x) {
      p === (p = b(w)) && y ? y.p(w, x) : (y.d(1), y = p(w), y && (y.c(), y.m(a, i))), x[0] & /*coinRoyalesHistory*/
      512 && !me(o.src, l = /*outcome*/
      w[46]?.state ? Ue : We) && h(o, "src", l), x[0] & /*coinRoyalesHistory*/
      512 && c !== (c = /*outcome*/
      w[46]?.date + "") && O(m, c);
    },
    d(w) {
      w && S(e), y.d();
    }
  };
}
function Be(r) {
  let e, t = (
    /*$_*/
    r[10]("more") + ""
  ), n, a, i, o, l, g;
  function f() {
    return (
      /*click_handler_1*/
      r[24](
        /*history*/
        r[43]
      )
    );
  }
  return {
    c() {
      e = v("button"), n = P(t), a = k(), i = v("img"), me(i.src, o = _r) || h(i, "src", o), h(i, "alt", "More"), h(e, "class", "coins-history__more");
    },
    m(c, m) {
      W(c, e, m), s(e, n), s(e, a), s(e, i), l || (g = K(e, "click", f), l = !0);
    },
    p(c, m) {
      r = c, m[0] & /*$_*/
      1024 && t !== (t = /*$_*/
      r[10]("more") + "") && O(n, t);
    },
    d(c) {
      c && S(e), l = !1, g();
    }
  };
}
function Ae(r) {
  let e, t, n = (
    /*history*/
    r[43].name + ""
  ), a, i, o, l, g, f = $(
    /*history*/
    r[43].outcomes.slice(
      0,
      /*history*/
      r[43].endPos
    )
  ), c = [];
  for (let d = 0; d < f.length; d += 1)
    c[d] = je(Ne(r, f, d));
  let m = (
    /*history*/
    r[43].outcomes?.length > 3 && /*history*/
    r[43].endPos === 3 && Be(r)
  );
  return {
    c() {
      e = v("div"), t = v("div"), a = P(n), i = k(), o = v("div");
      for (let d = 0; d < c.length; d += 1)
        c[d].c();
      l = k(), m && m.c(), g = k(), h(t, "class", "coins-history__title"), h(o, "class", "coins-history__list__body"), h(e, "class", "coins-history__list");
    },
    m(d, b) {
      W(d, e, b), s(e, t), s(t, a), s(e, i), s(e, o);
      for (let p = 0; p < c.length; p += 1)
        c[p] && c[p].m(o, null);
      s(e, l), m && m.m(e, null), s(e, g);
    },
    p(d, b) {
      if (b[0] & /*coinRoyalesHistory*/
      512 && n !== (n = /*history*/
      d[43].name + "") && O(a, n), b[0] & /*coinRoyalesHistory*/
      512) {
        f = $(
          /*history*/
          d[43].outcomes.slice(
            0,
            /*history*/
            d[43].endPos
          )
        );
        let p;
        for (p = 0; p < f.length; p += 1) {
          const y = Ne(d, f, p);
          c[p] ? c[p].p(y, b) : (c[p] = je(y), c[p].c(), c[p].m(o, null));
        }
        for (; p < c.length; p += 1)
          c[p].d(1);
        c.length = f.length;
      }
      /*history*/
      d[43].outcomes?.length > 3 && /*history*/
      d[43].endPos === 3 ? m ? m.p(d, b) : (m = Be(d), m.c(), m.m(e, g)) : m && (m.d(1), m = null);
    },
    d(d) {
      d && S(e), he(c, d), m && m.d();
    }
  };
}
function Nr(r) {
  let e, t = (
    /*$_*/
    r[10]("noCoinYet") + ""
  ), n;
  return {
    c() {
      e = v("div"), n = P(t), h(e, "class", "coins-empty");
    },
    m(a, i) {
      W(a, e, i), s(e, n);
    },
    p(a, i) {
      i[0] & /*$_*/
      1024 && t !== (t = /*$_*/
      a[10]("noCoinYet") + "") && O(n, t);
    },
    d(a) {
      a && S(e);
    }
  };
}
function Rr(r) {
  let e, t = $(
    /*coinRoyales*/
    r[6]
  ), n = [];
  for (let a = 0; a < t.length; a += 1)
    n[a] = Ie(Re(r, t, a));
  return {
    c() {
      e = v("div");
      for (let a = 0; a < n.length; a += 1)
        n[a].c();
      h(e, "class", "coins-list");
    },
    m(a, i) {
      W(a, e, i);
      for (let o = 0; o < n.length; o += 1)
        n[o] && n[o].m(e, null);
    },
    p(a, i) {
      if (i[0] & /*openCoinDetails, coinRoyales, lang*/
      65602) {
        t = $(
          /*coinRoyales*/
          a[6]
        );
        let o;
        for (o = 0; o < t.length; o += 1) {
          const l = Re(a, t, o);
          n[o] ? n[o].p(l, i) : (n[o] = Ie(l), n[o].c(), n[o].m(e, null));
        }
        for (; o < n.length; o += 1)
          n[o].d(1);
        n.length = t.length;
      }
    },
    d(a) {
      a && S(e), he(n, a);
    }
  };
}
function Ie(r) {
  let e, t = (
    /*coin*/
    (r[40].program.name[
      /*lang*/
      r[1]
    ] || /*coin*/
    r[40].program.name[se.default]) + ""
  ), n, a, i, o, l, g, f, c = (
    /*coin*/
    r[40]?.current?.remainingTimes + ""
  ), m, d, b, p;
  function y() {
    return (
      /*click_handler*/
      r[23](
        /*coin*/
        r[40]
      )
    );
  }
  return {
    c() {
      e = v("button"), n = P(t), a = k(), i = v("div"), o = v("img"), g = k(), f = v("span"), m = P(c), d = k(), me(o.src, l = wr) || h(o, "src", l), h(o, "alt", "Key"), h(i, "class", "coins-list__item__keys"), h(e, "class", "coins-list__item");
    },
    m(w, x) {
      W(w, e, x), s(e, n), s(e, a), s(e, i), s(i, o), s(i, g), s(i, f), s(f, m), s(e, d), b || (p = K(e, "click", y), b = !0);
    },
    p(w, x) {
      r = w, x[0] & /*coinRoyales, lang*/
      66 && t !== (t = /*coin*/
      (r[40].program.name[
        /*lang*/
        r[1]
      ] || /*coin*/
      r[40].program.name[se.default]) + "") && O(n, t), x[0] & /*coinRoyales*/
      64 && c !== (c = /*coin*/
      r[40]?.current?.remainingTimes + "") && O(m, c);
    },
    d(w) {
      w && S(e), b = !1, p();
    }
  };
}
function qr(r) {
  let e;
  return {
    c() {
      e = v("div"), e.innerHTML = '<div class="coins-history-loader-left"><ui-skeleton class="coins-history-dot" structure="rectangle" width="16px" height="16px"></ui-skeleton> <ui-skeleton class="coins-history-text" structure="text" height="16px"></ui-skeleton></div> <ui-skeleton structure="text" width="50px" height="16px"></ui-skeleton>', h(e, "class", "coins-history-loader-body");
    },
    m(t, n) {
      W(t, e, n);
    },
    p: le,
    d(t) {
      t && S(e);
    }
  };
}
function Hr(r) {
  let e, t, n, a, i = $([1, 2, 3]), o = [];
  for (let l = 0; l < 3; l += 1)
    o[l] = qr(Or(r, i, l));
  return {
    c() {
      e = v("div"), t = v("ui-skeleton"), n = k();
      for (let l = 0; l < 3; l += 1)
        o[l].c();
      a = k(), Te(t, "structure", "text"), Te(t, "height", "16px"), h(e, "class", "coins-history-loader");
    },
    m(l, g) {
      W(l, e, g), s(e, t), s(e, n);
      for (let f = 0; f < 3; f += 1)
        o[f] && o[f].m(e, null);
      s(e, a);
    },
    p: le,
    d(l) {
      l && S(e), he(o, l);
    }
  };
}
function jr(r) {
  let e;
  return {
    c() {
      e = v("div"), e.innerHTML = '<ui-skeleton structure="text" height="16px"></ui-skeleton> <ui-skeleton structure="rectangle" width="50px" height="16px"></ui-skeleton> ', h(e, "class", "coins-loader");
    },
    m(t, n) {
      W(t, e, n);
    },
    p: le,
    d(t) {
      t && S(e);
    }
  };
}
function Br(r) {
  let e, t, n, a, i, o, l, g, f, c = (
    /*$_*/
    r[10]("headerTitle") + ""
  ), m, d, b, p, y, w, x, U = (
    /*$_*/
    r[10]("play") + ""
  ), Y, I, T, F = (
    /*$_*/
    r[10]("history") + ""
  ), G, V, E, B = (
    /*$_*/
    r[10]("rules") + ""
  ), M, N, q, Z, D = (
    /*tooltip*/
    r[7] && qe(r)
  );
  function re(u, _) {
    return (
      /*coinsLoading*/
      u[5] ? zr : (
        /*historyLoading*/
        u[4] ? Ur : (
          /*activeTab*/
          u[3] === 1 ? Wr : (
            /*activeTab*/
            u[3] === 2 ? Sr : Dr
          )
        )
      )
    );
  }
  let Q = re(r), L = Q(r);
  return {
    c() {
      e = v("div"), t = v("button"), n = k(), a = v("div"), D && D.c(), i = k(), o = v("div"), l = v("button"), g = k(), f = v("div"), m = P(c), d = k(), b = v("button"), p = k(), y = v("div"), w = v("div"), x = v("button"), Y = P(U), I = k(), T = v("button"), G = P(F), V = k(), E = v("button"), M = P(B), N = k(), L.c(), h(t, "class", "overlay"), h(l, "class", "icon-button help"), h(f, "class", "coins-header__title"), h(b, "class", "icon-button close"), h(o, "class", "coins-header"), h(x, "data-index", "1"), h(x, "class", "coins-tabs__tab"), de(
        x,
        "active",
        /*activeTab*/
        r[3] === 1
      ), h(T, "data-index", "2"), h(T, "class", "coins-tabs__tab"), de(
        T,
        "active",
        /*activeTab*/
        r[3] === 2
      ), h(E, "data-index", "3"), h(E, "class", "coins-tabs__tab"), de(
        E,
        "active",
        /*activeTab*/
        r[3] === 3
      ), h(w, "class", "coins-tabs__container"), h(y, "class", "coins-tabs"), h(a, "class", "drawer " + /*mobileView*/
      (r[11] ? "mobile" : "")), h(e, "part", "CustomStylingContainer");
    },
    m(u, _) {
      W(u, e, _), s(e, t), s(e, n), s(e, a), D && D.m(a, null), s(a, i), s(a, o), s(o, l), s(o, g), s(o, f), s(f, m), s(o, d), s(o, b), s(a, p), s(a, y), s(y, w), s(w, x), s(x, Y), s(w, I), s(w, T), s(T, G), s(w, V), s(w, E), s(E, M), s(a, N), L.m(a, null), r[25](e), q || (Z = [
        K(
          t,
          "click",
          /*onClose*/
          r[12]
        ),
        K(
          l,
          "click",
          /*showHideToolip*/
          r[13]
        ),
        K(
          b,
          "click",
          /*onClose*/
          r[12]
        ),
        K(
          x,
          "click",
          /*handleTabChange*/
          r[15]
        ),
        K(
          T,
          "click",
          /*handleTabChange*/
          r[15]
        ),
        K(
          E,
          "click",
          /*handleTabChange*/
          r[15]
        )
      ], q = !0);
    },
    p(u, _) {
      /*tooltip*/
      u[7] ? D ? D.p(u, _) : (D = qe(u), D.c(), D.m(a, i)) : D && (D.d(1), D = null), _[0] & /*$_*/
      1024 && c !== (c = /*$_*/
      u[10]("headerTitle") + "") && O(m, c), _[0] & /*$_*/
      1024 && U !== (U = /*$_*/
      u[10]("play") + "") && O(Y, U), _[0] & /*activeTab*/
      8 && de(
        x,
        "active",
        /*activeTab*/
        u[3] === 1
      ), _[0] & /*$_*/
      1024 && F !== (F = /*$_*/
      u[10]("history") + "") && O(G, F), _[0] & /*activeTab*/
      8 && de(
        T,
        "active",
        /*activeTab*/
        u[3] === 2
      ), _[0] & /*$_*/
      1024 && B !== (B = /*$_*/
      u[10]("rules") + "") && O(M, B), _[0] & /*activeTab*/
      8 && de(
        E,
        "active",
        /*activeTab*/
        u[3] === 3
      ), Q === (Q = re(u)) && L ? L.p(u, _) : (L.d(1), L = Q(u), L && (L.c(), L.m(a, null)));
    },
    i: le,
    o: le,
    d(u) {
      u && S(e), D && D.d(), L.d(), r[25](null), q = !1, rt(Z);
    }
  };
}
function Ar(r, e, t) {
  let n;
  nt(r, lt, (u) => t(10, n = u));
  let { terms: a = "" } = e, { lang: i = se.en } = e, { endpoint: o = "" } = e, { session: l = "" } = e, { clientstyling: g = "" } = e, { clientstylingurl: f = "" } = e, { translationurl: c = "" } = e, { mbsource: m } = e, d = window.navigator.userAgent, b = at(d), p, y = 1, w = !1, x = !1, U = [], Y = !1, I = !1, T;
  const F = (u) => /(https?:\/\/[^\s]+)/g.test(u), G = () => {
    Se({ type: "CloseCoinRoyaleDrawer" });
  }, V = () => {
    t(7, Y = !Y);
  }, E = async () => {
    t(4, w = !0);
    let u = U.map((_) => ({
      id: _.program.id,
      name: _.program.name[i] || _.program.name[se.default],
      partitions: _.program.wheelOfFortune.partitions,
      endPos: 0,
      outcomes: []
    }));
    if (u.length > 0) {
      const _ = u.map(async (j, ne) => {
        const ae = (await Ye.outcome(o, l, j?.id)).items || [];
        if (ae.length === 0) {
          u[ne] = null;
          return;
        }
        u[ne] = {
          ...j,
          endPos: ae.length > 3 ? 3 : ae.length,
          outcomes: ae.map((J) => {
            const ie = j.partitions[J.draw.result.wheelOfFortunePartitionIndex]?.name || {}, ce = j.partitions[J.draw.result.wheelOfFortunePartitionIndex]?.image1 || {}, R = J.draw.state === "fulfilled", z = vr(new Date(J.draw.time), "LLL d, yyyy HH:mm:ss");
            return {
              name: ie[i] || ie[se.default],
              state: R,
              date: z,
              assets: ce[i] || ce[se.default]
            };
          })
        };
      });
      await Promise.all(_);
    }
    t(9, T = u.filter((_) => !!_)), t(4, w = !1);
  }, B = async () => {
    t(5, x = !0);
    const u = await Ye.lotteries(o, l);
    t(6, U = u.filter((_) => kr(_))), t(5, x = !1);
  }, M = (u) => {
    const _ = T.findIndex((j) => j.id === u);
    t(9, T[_].endPos = T[_].outcomes?.length, T);
  }, N = async (u) => {
    t(3, y = +u.target.getAttribute("data-index")), y === 2 && await E();
  }, q = () => {
    fetch(c).then((_) => _.json()).then((_) => {
      Object.keys(_).forEach((j) => {
        Ee(j, _[j]);
      });
    });
  };
  Object.keys(Le).forEach((u) => {
    Ee(u, Le[u]);
  });
  const Z = () => {
    Cr(i);
  }, D = (u) => {
    Se({
      type: "OpenCoinRoyaleDetails",
      data: u
    });
  };
  it(() => {
    t(8, I = F(a)), B();
  });
  const re = (u) => {
    D(u);
  }, Q = (u) => M(u.id);
  function L(u) {
    ot[u ? "unshift" : "push"](() => {
      p = u, t(2, p);
    });
  }
  return r.$$set = (u) => {
    "terms" in u && t(0, a = u.terms), "lang" in u && t(1, i = u.lang), "endpoint" in u && t(17, o = u.endpoint), "session" in u && t(18, l = u.session), "clientstyling" in u && t(19, g = u.clientstyling), "clientstylingurl" in u && t(20, f = u.clientstylingurl), "translationurl" in u && t(21, c = u.translationurl), "mbsource" in u && t(22, m = u.mbsource);
  }, r.$$.update = () => {
    r.$$.dirty[0] & /*lang*/
    2 && i && Z(), r.$$.dirty[0] & /*clientstyling, customStylingContainer*/
    524292 && g && p && ut(p, g), r.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
    1048580 && f && p && ct(p, f), r.$$.dirty[0] & /*translationurl*/
    2097152 && c && q(), r.$$.dirty[0] & /*mbsource, customStylingContainer*/
    4194308 && m && p && dt(p, `${m}.Style`);
  }, [
    a,
    i,
    p,
    y,
    w,
    x,
    U,
    Y,
    I,
    T,
    n,
    b,
    G,
    V,
    M,
    N,
    D,
    o,
    l,
    g,
    f,
    c,
    m,
    re,
    Q,
    L
  ];
}
class Ve extends Ke {
  constructor(e) {
    super(), $e(
      this,
      e,
      Ar,
      Br,
      et,
      {
        terms: 0,
        lang: 1,
        endpoint: 17,
        session: 18,
        clientstyling: 19,
        clientstylingurl: 20,
        translationurl: 21,
        mbsource: 22
      },
      Tr,
      [-1, -1]
    );
  }
  get terms() {
    return this.$$.ctx[0];
  }
  set terms(e) {
    this.$$set({ terms: e }), ee();
  }
  get lang() {
    return this.$$.ctx[1];
  }
  set lang(e) {
    this.$$set({ lang: e }), ee();
  }
  get endpoint() {
    return this.$$.ctx[17];
  }
  set endpoint(e) {
    this.$$set({ endpoint: e }), ee();
  }
  get session() {
    return this.$$.ctx[18];
  }
  set session(e) {
    this.$$set({ session: e }), ee();
  }
  get clientstyling() {
    return this.$$.ctx[19];
  }
  set clientstyling(e) {
    this.$$set({ clientstyling: e }), ee();
  }
  get clientstylingurl() {
    return this.$$.ctx[20];
  }
  set clientstylingurl(e) {
    this.$$set({ clientstylingurl: e }), ee();
  }
  get translationurl() {
    return this.$$.ctx[21];
  }
  set translationurl(e) {
    this.$$set({ translationurl: e }), ee();
  }
  get mbsource() {
    return this.$$.ctx[22];
  }
  set mbsource(e) {
    this.$$set({ mbsource: e }), ee();
  }
}
st(Ve, { terms: {}, lang: {}, endpoint: {}, session: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
const Xr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  default: Ve
}, Symbol.toStringTag, { value: "Module" }));
export {
  Xr as C,
  vr as f
};
