var et = Object.defineProperty, tt = Object.defineProperties;
var nt = Object.getOwnPropertyDescriptors;
var Oe = Object.getOwnPropertySymbols;
var rt = Object.prototype.hasOwnProperty, at = Object.prototype.propertyIsEnumerable;
var Pe = (n, e, t) => e in n ? et(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, xe = (n, e) => {
  for (var t in e || (e = {}))
    rt.call(e, t) && Pe(n, t, e[t]);
  if (Oe)
    for (var t of Oe(e))
      at.call(e, t) && Pe(n, t, e[t]);
  return n;
}, De = (n, e) => tt(n, nt(e));
var V = (n, e, t) => new Promise((r, a) => {
  var i = (c) => {
    try {
      l(t.next(c));
    } catch (u) {
      a(u);
    }
  }, o = (c) => {
    try {
      l(t.throw(c));
    } catch (u) {
      a(u);
    }
  }, l = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(i, o);
  l((t = t.apply(n, e)).next());
});
import { a as it, $ as ot, S as st, i as lt, f as ae, c as ut, s as ct, b as dt, e as v, d as x, t as D, g as h, y as ue, h as j, j as s, l as ee, k as S, n as Ce, m as A, r as ft, p as mt, q as ht, o as gt, u as vt, z as Te, x as pt, A as fe, B as Me, v as ve } from "./CasinoCoinroyaleContainer-CHUkfGAj.js";
import { s as bt, a as wt, b as _t } from "./CasinoCoinroyaleDetails-Cb9KU-DR.js";
import "../stencil/ui-skeleton-CWuMYFGQ.js";
function pe(n) {
  "@babel/helpers - typeof";
  return pe = 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;
  }, pe(n);
}
function se(n) {
  if (n === null || n === !0 || n === !1)
    return NaN;
  var e = Number(n);
  return isNaN(e) ? e : e < 0 ? Math.ceil(e) : Math.floor(e);
}
function I(n, e) {
  if (e.length < n)
    throw new TypeError(n + " argument" + (n > 1 ? "s" : "") + " required, but only " + e.length + " present");
}
function Z(n) {
  I(1, arguments);
  var e = Object.prototype.toString.call(n);
  return n instanceof Date || pe(n) === "object" && e === "[object Date]" ? new Date(n.getTime()) : typeof n == "number" || e === "[object Number]" ? new Date(n) : ((typeof n == "string" || e === "[object String]") && typeof console != "undefined" && (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 yt(n, e) {
  I(2, arguments);
  var t = Z(n).getTime(), r = se(e);
  return new Date(t + r);
}
var xt = {};
function _e() {
  return xt;
}
function kt(n) {
  var e = new Date(Date.UTC(n.getFullYear(), n.getMonth(), n.getDate(), n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds()));
  return e.setUTCFullYear(n.getFullYear()), n.getTime() - e.getTime();
}
function Ct(n) {
  return I(1, arguments), n instanceof Date || pe(n) === "object" && Object.prototype.toString.call(n) === "[object Date]";
}
function Tt(n) {
  if (I(1, arguments), !Ct(n) && typeof n != "number")
    return !1;
  var e = Z(n);
  return !isNaN(Number(e));
}
function Mt(n, e) {
  I(2, arguments);
  var t = se(e);
  return yt(n, -t);
}
var Ot = 864e5;
function Pt(n) {
  I(1, arguments);
  var e = Z(n), t = e.getTime();
  e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
  var r = e.getTime(), a = t - r;
  return Math.floor(a / Ot) + 1;
}
function be(n) {
  I(1, arguments);
  var e = 1, t = Z(n), r = t.getUTCDay(), a = (r < e ? 7 : 0) + r - e;
  return t.setUTCDate(t.getUTCDate() - a), t.setUTCHours(0, 0, 0, 0), t;
}
function Ze(n) {
  I(1, arguments);
  var e = Z(n), t = e.getUTCFullYear(), r = /* @__PURE__ */ new Date(0);
  r.setUTCFullYear(t + 1, 0, 4), r.setUTCHours(0, 0, 0, 0);
  var a = be(r), i = /* @__PURE__ */ new Date(0);
  i.setUTCFullYear(t, 0, 4), i.setUTCHours(0, 0, 0, 0);
  var o = be(i);
  return e.getTime() >= a.getTime() ? t + 1 : e.getTime() >= o.getTime() ? t : t - 1;
}
function Dt(n) {
  I(1, arguments);
  var e = Ze(n), t = /* @__PURE__ */ new Date(0);
  t.setUTCFullYear(e, 0, 4), t.setUTCHours(0, 0, 0, 0);
  var r = be(t);
  return r;
}
var St = 6048e5;
function Wt(n) {
  I(1, arguments);
  var e = Z(n), t = be(e).getTime() - Dt(e).getTime();
  return Math.round(t / St) + 1;
}
function we(n, e) {
  var t, r, a, i, o, l, c, u;
  I(1, arguments);
  var f = _e(), g = se((t = (r = (a = (i = e == null ? void 0 : 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 : f.weekStartsOn) !== null && r !== void 0 ? r : (c = f.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && t !== void 0 ? t : 0);
  if (!(g >= 0 && g <= 6))
    throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
  var d = Z(n), b = d.getUTCDay(), p = (b < g ? 7 : 0) + b - g;
  return d.setUTCDate(d.getUTCDate() - p), d.setUTCHours(0, 0, 0, 0), d;
}
function Je(n, e) {
  var t, r, a, i, o, l, c, u;
  I(1, arguments);
  var f = Z(n), g = f.getUTCFullYear(), d = _e(), b = se((t = (r = (a = (i = e == null ? void 0 : 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 && r !== void 0 ? r : (c = d.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.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(g + 1, 0, b), p.setUTCHours(0, 0, 0, 0);
  var _ = we(p, e), w = /* @__PURE__ */ new Date(0);
  w.setUTCFullYear(g, 0, b), w.setUTCHours(0, 0, 0, 0);
  var y = we(w, e);
  return f.getTime() >= _.getTime() ? g + 1 : f.getTime() >= y.getTime() ? g : g - 1;
}
function Ut(n, e) {
  var t, r, a, i, o, l, c, u;
  I(1, arguments);
  var f = _e(), g = se((t = (r = (a = (i = e == null ? void 0 : 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 : f.firstWeekContainsDate) !== null && r !== void 0 ? r : (c = f.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && t !== void 0 ? t : 1), d = Je(n, e), b = /* @__PURE__ */ new Date(0);
  b.setUTCFullYear(d, 0, g), b.setUTCHours(0, 0, 0, 0);
  var p = we(b, e);
  return p;
}
var zt = 6048e5;
function Yt(n, e) {
  I(1, arguments);
  var t = Z(n), r = we(t, e).getTime() - Ut(t, e).getTime();
  return Math.round(r / zt) + 1;
}
function k(n, e) {
  for (var t = n < 0 ? "-" : "", r = Math.abs(n).toString(); r.length < e; )
    r = "0" + r;
  return t + r;
}
var ie = {
  // Year
  y: function(e, t) {
    var r = e.getUTCFullYear(), a = r > 0 ? r : 1 - r;
    return k(t === "yy" ? a % 100 : a, t.length);
  },
  // Month
  M: function(e, t) {
    var r = e.getUTCMonth();
    return t === "M" ? String(r + 1) : k(r + 1, 2);
  },
  // Day of the month
  d: function(e, t) {
    return k(e.getUTCDate(), t.length);
  },
  // AM or PM
  a: function(e, t) {
    var r = e.getUTCHours() / 12 >= 1 ? "pm" : "am";
    switch (t) {
      case "a":
      case "aa":
        return r.toUpperCase();
      case "aaa":
        return r;
      case "aaaaa":
        return r[0];
      case "aaaa":
      default:
        return r === "am" ? "a.m." : "p.m.";
    }
  },
  // Hour [1-12]
  h: function(e, t) {
    return k(e.getUTCHours() % 12 || 12, t.length);
  },
  // Hour [0-23]
  H: function(e, t) {
    return k(e.getUTCHours(), t.length);
  },
  // Minute
  m: function(e, t) {
    return k(e.getUTCMinutes(), t.length);
  },
  // Second
  s: function(e, t) {
    return k(e.getUTCSeconds(), t.length);
  },
  // Fraction of second
  S: function(e, t) {
    var r = t.length, a = e.getUTCMilliseconds(), i = Math.floor(a * Math.pow(10, r - 3));
    return k(i, t.length);
  }
}, ce = {
  am: "am",
  pm: "pm",
  midnight: "midnight",
  noon: "noon",
  morning: "morning",
  afternoon: "afternoon",
  evening: "evening",
  night: "night"
}, Et = {
  // Era
  G: function(e, t, r) {
    var a = e.getUTCFullYear() > 0 ? 1 : 0;
    switch (t) {
      case "G":
      case "GG":
      case "GGG":
        return r.era(a, {
          width: "abbreviated"
        });
      case "GGGGG":
        return r.era(a, {
          width: "narrow"
        });
      case "GGGG":
      default:
        return r.era(a, {
          width: "wide"
        });
    }
  },
  // Year
  y: function(e, t, r) {
    if (t === "yo") {
      var a = e.getUTCFullYear(), i = a > 0 ? a : 1 - a;
      return r.ordinalNumber(i, {
        unit: "year"
      });
    }
    return ie.y(e, t);
  },
  // Local week-numbering year
  Y: function(e, t, r, a) {
    var i = Je(e, a), o = i > 0 ? i : 1 - i;
    if (t === "YY") {
      var l = o % 100;
      return k(l, 2);
    }
    return t === "Yo" ? r.ordinalNumber(o, {
      unit: "year"
    }) : k(o, t.length);
  },
  // ISO week-numbering year
  R: function(e, t) {
    var r = Ze(e);
    return k(r, 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 r = e.getUTCFullYear();
    return k(r, t.length);
  },
  // Quarter
  Q: function(e, t, r) {
    var a = Math.ceil((e.getUTCMonth() + 1) / 3);
    switch (t) {
      case "Q":
        return String(a);
      case "QQ":
        return k(a, 2);
      case "Qo":
        return r.ordinalNumber(a, {
          unit: "quarter"
        });
      case "QQQ":
        return r.quarter(a, {
          width: "abbreviated",
          context: "formatting"
        });
      case "QQQQQ":
        return r.quarter(a, {
          width: "narrow",
          context: "formatting"
        });
      case "QQQQ":
      default:
        return r.quarter(a, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // Stand-alone quarter
  q: function(e, t, r) {
    var a = Math.ceil((e.getUTCMonth() + 1) / 3);
    switch (t) {
      case "q":
        return String(a);
      case "qq":
        return k(a, 2);
      case "qo":
        return r.ordinalNumber(a, {
          unit: "quarter"
        });
      case "qqq":
        return r.quarter(a, {
          width: "abbreviated",
          context: "standalone"
        });
      case "qqqqq":
        return r.quarter(a, {
          width: "narrow",
          context: "standalone"
        });
      case "qqqq":
      default:
        return r.quarter(a, {
          width: "wide",
          context: "standalone"
        });
    }
  },
  // Month
  M: function(e, t, r) {
    var a = e.getUTCMonth();
    switch (t) {
      case "M":
      case "MM":
        return ie.M(e, t);
      case "Mo":
        return r.ordinalNumber(a + 1, {
          unit: "month"
        });
      case "MMM":
        return r.month(a, {
          width: "abbreviated",
          context: "formatting"
        });
      case "MMMMM":
        return r.month(a, {
          width: "narrow",
          context: "formatting"
        });
      case "MMMM":
      default:
        return r.month(a, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // Stand-alone month
  L: function(e, t, r) {
    var a = e.getUTCMonth();
    switch (t) {
      case "L":
        return String(a + 1);
      case "LL":
        return k(a + 1, 2);
      case "Lo":
        return r.ordinalNumber(a + 1, {
          unit: "month"
        });
      case "LLL":
        return r.month(a, {
          width: "abbreviated",
          context: "standalone"
        });
      case "LLLLL":
        return r.month(a, {
          width: "narrow",
          context: "standalone"
        });
      case "LLLL":
      default:
        return r.month(a, {
          width: "wide",
          context: "standalone"
        });
    }
  },
  // Local week of year
  w: function(e, t, r, a) {
    var i = Yt(e, a);
    return t === "wo" ? r.ordinalNumber(i, {
      unit: "week"
    }) : k(i, t.length);
  },
  // ISO week of year
  I: function(e, t, r) {
    var a = Wt(e);
    return t === "Io" ? r.ordinalNumber(a, {
      unit: "week"
    }) : k(a, t.length);
  },
  // Day of the month
  d: function(e, t, r) {
    return t === "do" ? r.ordinalNumber(e.getUTCDate(), {
      unit: "date"
    }) : ie.d(e, t);
  },
  // Day of year
  D: function(e, t, r) {
    var a = Pt(e);
    return t === "Do" ? r.ordinalNumber(a, {
      unit: "dayOfYear"
    }) : k(a, t.length);
  },
  // Day of week
  E: function(e, t, r) {
    var a = e.getUTCDay();
    switch (t) {
      case "E":
      case "EE":
      case "EEE":
        return r.day(a, {
          width: "abbreviated",
          context: "formatting"
        });
      case "EEEEE":
        return r.day(a, {
          width: "narrow",
          context: "formatting"
        });
      case "EEEEEE":
        return r.day(a, {
          width: "short",
          context: "formatting"
        });
      case "EEEE":
      default:
        return r.day(a, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // Local day of week
  e: function(e, t, r, a) {
    var i = e.getUTCDay(), o = (i - a.weekStartsOn + 8) % 7 || 7;
    switch (t) {
      case "e":
        return String(o);
      case "ee":
        return k(o, 2);
      case "eo":
        return r.ordinalNumber(o, {
          unit: "day"
        });
      case "eee":
        return r.day(i, {
          width: "abbreviated",
          context: "formatting"
        });
      case "eeeee":
        return r.day(i, {
          width: "narrow",
          context: "formatting"
        });
      case "eeeeee":
        return r.day(i, {
          width: "short",
          context: "formatting"
        });
      case "eeee":
      default:
        return r.day(i, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // Stand-alone local day of week
  c: function(e, t, r, a) {
    var i = e.getUTCDay(), o = (i - a.weekStartsOn + 8) % 7 || 7;
    switch (t) {
      case "c":
        return String(o);
      case "cc":
        return k(o, t.length);
      case "co":
        return r.ordinalNumber(o, {
          unit: "day"
        });
      case "ccc":
        return r.day(i, {
          width: "abbreviated",
          context: "standalone"
        });
      case "ccccc":
        return r.day(i, {
          width: "narrow",
          context: "standalone"
        });
      case "cccccc":
        return r.day(i, {
          width: "short",
          context: "standalone"
        });
      case "cccc":
      default:
        return r.day(i, {
          width: "wide",
          context: "standalone"
        });
    }
  },
  // ISO day of week
  i: function(e, t, r) {
    var a = e.getUTCDay(), i = a === 0 ? 7 : a;
    switch (t) {
      case "i":
        return String(i);
      case "ii":
        return k(i, t.length);
      case "io":
        return r.ordinalNumber(i, {
          unit: "day"
        });
      case "iii":
        return r.day(a, {
          width: "abbreviated",
          context: "formatting"
        });
      case "iiiii":
        return r.day(a, {
          width: "narrow",
          context: "formatting"
        });
      case "iiiiii":
        return r.day(a, {
          width: "short",
          context: "formatting"
        });
      case "iiii":
      default:
        return r.day(a, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // AM or PM
  a: function(e, t, r) {
    var a = e.getUTCHours(), i = a / 12 >= 1 ? "pm" : "am";
    switch (t) {
      case "a":
      case "aa":
        return r.dayPeriod(i, {
          width: "abbreviated",
          context: "formatting"
        });
      case "aaa":
        return r.dayPeriod(i, {
          width: "abbreviated",
          context: "formatting"
        }).toLowerCase();
      case "aaaaa":
        return r.dayPeriod(i, {
          width: "narrow",
          context: "formatting"
        });
      case "aaaa":
      default:
        return r.dayPeriod(i, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // AM, PM, midnight, noon
  b: function(e, t, r) {
    var a = e.getUTCHours(), i;
    switch (a === 12 ? i = ce.noon : a === 0 ? i = ce.midnight : i = a / 12 >= 1 ? "pm" : "am", t) {
      case "b":
      case "bb":
        return r.dayPeriod(i, {
          width: "abbreviated",
          context: "formatting"
        });
      case "bbb":
        return r.dayPeriod(i, {
          width: "abbreviated",
          context: "formatting"
        }).toLowerCase();
      case "bbbbb":
        return r.dayPeriod(i, {
          width: "narrow",
          context: "formatting"
        });
      case "bbbb":
      default:
        return r.dayPeriod(i, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // in the morning, in the afternoon, in the evening, at night
  B: function(e, t, r) {
    var a = e.getUTCHours(), i;
    switch (a >= 17 ? i = ce.evening : a >= 12 ? i = ce.afternoon : a >= 4 ? i = ce.morning : i = ce.night, t) {
      case "B":
      case "BB":
      case "BBB":
        return r.dayPeriod(i, {
          width: "abbreviated",
          context: "formatting"
        });
      case "BBBBB":
        return r.dayPeriod(i, {
          width: "narrow",
          context: "formatting"
        });
      case "BBBB":
      default:
        return r.dayPeriod(i, {
          width: "wide",
          context: "formatting"
        });
    }
  },
  // Hour [1-12]
  h: function(e, t, r) {
    if (t === "ho") {
      var a = e.getUTCHours() % 12;
      return a === 0 && (a = 12), r.ordinalNumber(a, {
        unit: "hour"
      });
    }
    return ie.h(e, t);
  },
  // Hour [0-23]
  H: function(e, t, r) {
    return t === "Ho" ? r.ordinalNumber(e.getUTCHours(), {
      unit: "hour"
    }) : ie.H(e, t);
  },
  // Hour [0-11]
  K: function(e, t, r) {
    var a = e.getUTCHours() % 12;
    return t === "Ko" ? r.ordinalNumber(a, {
      unit: "hour"
    }) : k(a, t.length);
  },
  // Hour [1-24]
  k: function(e, t, r) {
    var a = e.getUTCHours();
    return a === 0 && (a = 24), t === "ko" ? r.ordinalNumber(a, {
      unit: "hour"
    }) : k(a, t.length);
  },
  // Minute
  m: function(e, t, r) {
    return t === "mo" ? r.ordinalNumber(e.getUTCMinutes(), {
      unit: "minute"
    }) : ie.m(e, t);
  },
  // Second
  s: function(e, t, r) {
    return t === "so" ? r.ordinalNumber(e.getUTCSeconds(), {
      unit: "second"
    }) : ie.s(e, t);
  },
  // Fraction of second
  S: function(e, t) {
    return ie.S(e, t);
  },
  // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
  X: function(e, t, r, a) {
    var i = a._originalDate || e, o = i.getTimezoneOffset();
    if (o === 0)
      return "Z";
    switch (t) {
      case "X":
        return We(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, r, a) {
    var i = a._originalDate || e, o = i.getTimezoneOffset();
    switch (t) {
      case "x":
        return We(o);
      case "xxxx":
      case "xx":
        return oe(o);
      case "xxxxx":
      case "xxx":
      default:
        return oe(o, ":");
    }
  },
  // Timezone (GMT)
  O: function(e, t, r, a) {
    var i = a._originalDate || e, o = i.getTimezoneOffset();
    switch (t) {
      case "O":
      case "OO":
      case "OOO":
        return "GMT" + Se(o, ":");
      case "OOOO":
      default:
        return "GMT" + oe(o, ":");
    }
  },
  // Timezone (specific non-location)
  z: function(e, t, r, a) {
    var i = a._originalDate || e, o = i.getTimezoneOffset();
    switch (t) {
      case "z":
      case "zz":
      case "zzz":
        return "GMT" + Se(o, ":");
      case "zzzz":
      default:
        return "GMT" + oe(o, ":");
    }
  },
  // Seconds timestamp
  t: function(e, t, r, a) {
    var i = a._originalDate || e, o = Math.floor(i.getTime() / 1e3);
    return k(o, t.length);
  },
  // Milliseconds timestamp
  T: function(e, t, r, a) {
    var i = a._originalDate || e, o = i.getTime();
    return k(o, t.length);
  }
};
function Se(n, e) {
  var t = n > 0 ? "-" : "+", r = Math.abs(n), a = Math.floor(r / 60), i = r % 60;
  if (i === 0)
    return t + String(a);
  var o = e;
  return t + String(a) + o + k(i, 2);
}
function We(n, e) {
  if (n % 60 === 0) {
    var t = n > 0 ? "-" : "+";
    return t + k(Math.abs(n) / 60, 2);
  }
  return oe(n, e);
}
function oe(n, e) {
  var t = e || "", r = n > 0 ? "-" : "+", a = Math.abs(n), i = k(Math.floor(a / 60), 2), o = k(a % 60, 2);
  return r + i + t + o;
}
var Ue = 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"
      });
  }
}, Ke = 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"
      });
  }
}, Lt = function(e, t) {
  var r = e.match(/(P+)(p+)?/) || [], a = r[1], i = r[2];
  if (!i)
    return Ue(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}}", Ue(a, t)).replace("{{time}}", Ke(i, t));
}, Ft = {
  p: Ke,
  P: Lt
}, Nt = ["D", "DD"], Rt = ["YY", "YYYY"];
function qt(n) {
  return Nt.indexOf(n) !== -1;
}
function Ht(n) {
  return Rt.indexOf(n) !== -1;
}
function ze(n, e, t) {
  if (n === "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 (n === "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 (n === "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 (n === "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 Bt = {
  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"
  }
}, jt = function(e, t, r) {
  var a, i = Bt[e];
  return typeof i == "string" ? a = i : t === 1 ? a = i.one : a = i.other.replace("{{count}}", t.toString()), r != null && r.addSuffix ? r.comparison && r.comparison > 0 ? "in " + a : a + " ago" : a;
};
function ke(n) {
  return function() {
    var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.width ? String(e.width) : n.defaultWidth, r = n.formats[t] || n.formats[n.defaultWidth];
    return r;
  };
}
var At = {
  full: "EEEE, MMMM do, y",
  long: "MMMM do, y",
  medium: "MMM d, y",
  short: "MM/dd/yyyy"
}, It = {
  full: "h:mm:ss a zzzz",
  long: "h:mm:ss a z",
  medium: "h:mm:ss a",
  short: "h:mm a"
}, Gt = {
  full: "{{date}} 'at' {{time}}",
  long: "{{date}} 'at' {{time}}",
  medium: "{{date}}, {{time}}",
  short: "{{date}}, {{time}}"
}, Qt = {
  date: ke({
    formats: At,
    defaultWidth: "full"
  }),
  time: ke({
    formats: It,
    defaultWidth: "full"
  }),
  dateTime: ke({
    formats: Gt,
    defaultWidth: "full"
  })
}, Xt = {
  lastWeek: "'last' eeee 'at' p",
  yesterday: "'yesterday at' p",
  today: "'today at' p",
  tomorrow: "'tomorrow at' p",
  nextWeek: "eeee 'at' p",
  other: "P"
}, Vt = function(e, t, r, a) {
  return Xt[e];
};
function me(n) {
  return function(e, t) {
    var r = t != null && t.context ? String(t.context) : "standalone", a;
    if (r === "formatting" && n.formattingValues) {
      var i = n.defaultFormattingWidth || n.defaultWidth, o = t != null && t.width ? String(t.width) : i;
      a = n.formattingValues[o] || n.formattingValues[i];
    } else {
      var l = n.defaultWidth, c = t != null && t.width ? String(t.width) : n.defaultWidth;
      a = n.values[c] || n.values[l];
    }
    var u = n.argumentCallback ? n.argumentCallback(e) : e;
    return a[u];
  };
}
var Zt = {
  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"]
}, Kt = {
  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"]
}, $t = {
  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"]
}, en = {
  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"
  }
}, tn = {
  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"
  }
}, nn = function(e, t) {
  var r = Number(e), a = r % 100;
  if (a > 20 || a < 10)
    switch (a % 10) {
      case 1:
        return r + "st";
      case 2:
        return r + "nd";
      case 3:
        return r + "rd";
    }
  return r + "th";
}, rn = {
  ordinalNumber: nn,
  era: me({
    values: Zt,
    defaultWidth: "wide"
  }),
  quarter: me({
    values: Jt,
    defaultWidth: "wide",
    argumentCallback: function(e) {
      return e - 1;
    }
  }),
  month: me({
    values: Kt,
    defaultWidth: "wide"
  }),
  day: me({
    values: $t,
    defaultWidth: "wide"
  }),
  dayPeriod: me({
    values: en,
    defaultWidth: "wide",
    formattingValues: tn,
    defaultFormattingWidth: "wide"
  })
};
function he(n) {
  return function(e) {
    var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = t.width, a = r && n.matchPatterns[r] || n.matchPatterns[n.defaultMatchWidth], i = e.match(a);
    if (!i)
      return null;
    var o = i[0], l = r && n.parsePatterns[r] || n.parsePatterns[n.defaultParseWidth], c = Array.isArray(l) ? on(l, function(g) {
      return g.test(o);
    }) : an(l, function(g) {
      return g.test(o);
    }), u;
    u = n.valueCallback ? n.valueCallback(c) : c, u = t.valueCallback ? t.valueCallback(u) : u;
    var f = e.slice(o.length);
    return {
      value: u,
      rest: f
    };
  };
}
function an(n, e) {
  for (var t in n)
    if (n.hasOwnProperty(t) && e(n[t]))
      return t;
}
function on(n, e) {
  for (var t = 0; t < n.length; t++)
    if (e(n[t]))
      return t;
}
function sn(n) {
  return function(e) {
    var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = e.match(n.matchPattern);
    if (!r)
      return null;
    var a = r[0], i = e.match(n.parsePattern);
    if (!i)
      return null;
    var o = n.valueCallback ? n.valueCallback(i[0]) : i[0];
    o = t.valueCallback ? t.valueCallback(o) : o;
    var l = e.slice(a.length);
    return {
      value: o,
      rest: l
    };
  };
}
var ln = /^(\d+)(th|st|nd|rd)?/i, un = /\d+/i, cn = {
  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
}, dn = {
  any: [/^b/i, /^(a|c)/i]
}, fn = {
  narrow: /^[1234]/i,
  abbreviated: /^q[1234]/i,
  wide: /^[1234](th|st|nd|rd)? quarter/i
}, mn = {
  any: [/1/i, /2/i, /3/i, /4/i]
}, hn = {
  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
}, gn = {
  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]
}, vn = {
  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
}, pn = {
  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]
}, bn = {
  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
}, wn = {
  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
  }
}, _n = {
  ordinalNumber: sn({
    matchPattern: ln,
    parsePattern: un,
    valueCallback: function(e) {
      return parseInt(e, 10);
    }
  }),
  era: he({
    matchPatterns: cn,
    defaultMatchWidth: "wide",
    parsePatterns: dn,
    defaultParseWidth: "any"
  }),
  quarter: he({
    matchPatterns: fn,
    defaultMatchWidth: "wide",
    parsePatterns: mn,
    defaultParseWidth: "any",
    valueCallback: function(e) {
      return e + 1;
    }
  }),
  month: he({
    matchPatterns: hn,
    defaultMatchWidth: "wide",
    parsePatterns: gn,
    defaultParseWidth: "any"
  }),
  day: he({
    matchPatterns: vn,
    defaultMatchWidth: "wide",
    parsePatterns: pn,
    defaultParseWidth: "any"
  }),
  dayPeriod: he({
    matchPatterns: bn,
    defaultMatchWidth: "any",
    parsePatterns: wn,
    defaultParseWidth: "any"
  })
}, yn = {
  code: "en-US",
  formatDistance: jt,
  formatLong: Qt,
  formatRelative: Vt,
  localize: rn,
  match: _n,
  options: {
    weekStartsOn: 0,
    firstWeekContainsDate: 1
  }
}, xn = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, kn = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Cn = /^'([^]*?)'?$/, Tn = /''/g, Mn = /[a-zA-Z]/;
function On(n, e, t) {
  var r, a, i, o, l, c, u, f, g, d, b, p, _, w;
  I(2, arguments);
  var y = String(e), C = _e(), O = (r = (a = void 0) !== null && a !== void 0 ? a : C.locale) !== null && r !== void 0 ? r : yn, Y = se((i = (o = (l = (c = void 0) !== null && c !== void 0 ? c : void 0) !== null && l !== void 0 ? l : C.firstWeekContainsDate) !== null && o !== void 0 ? o : (u = C.locale) === null || u === void 0 || (f = u.options) === null || f === void 0 ? void 0 : f.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
  if (!(Y >= 1 && Y <= 7))
    throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
  var M = se((g = (d = (b = (p = void 0) !== null && p !== void 0 ? p : void 0) !== null && b !== void 0 ? b : C.weekStartsOn) !== null && d !== void 0 ? d : (_ = C.locale) === null || _ === void 0 || (w = _.options) === null || w === void 0 ? void 0 : w.weekStartsOn) !== null && g !== void 0 ? g : 0);
  if (!(M >= 0 && M <= 6))
    throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
  if (!O.localize)
    throw new RangeError("locale must contain localize property");
  if (!O.formatLong)
    throw new RangeError("locale must contain formatLong property");
  var E = Z(n);
  if (!Tt(E))
    throw new RangeError("Invalid time value");
  var Q = kt(E), J = Mt(E, Q), L = {
    firstWeekContainsDate: Y,
    weekStartsOn: M,
    locale: O,
    _originalDate: E
  }, G = y.match(kn).map(function(W) {
    var F = W[0];
    if (F === "p" || F === "P") {
      var B = Ft[F];
      return B(W, O.formatLong);
    }
    return W;
  }).join("").match(xn).map(function(W) {
    if (W === "''")
      return "'";
    var F = W[0];
    if (F === "'")
      return Pn(W);
    var B = Et[F];
    if (B)
      return Ht(W) && ze(W, e, String(n)), qt(W) && ze(W, e, String(n)), B(J, W, O.localize, L);
    if (F.match(Mn))
      throw new RangeError("Format string contains an unescaped latin alphabet character `" + F + "`");
    return W;
  }).join("");
  return G;
}
function Pn(n) {
  var e = n.match(Cn);
  return e ? e[1].replace(Tn, "'") : n;
}
const Ye = (n) => window.postMessage(n, window.location.href), Dn = "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", Ee = "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", Le = "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", Sn = "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 ge = /* @__PURE__ */ ((n) => (n.lotteries = "lotteries", n.outcome = "outcome", n.draw = "draw", n))(ge || {}), de = /* @__PURE__ */ ((n) => (n.en = "en", n.default = "*", n))(de || {});
const Wn = (n) => V(void 0, null, function* () {
  const { path: e, params: t = {}, options: r = {} } = n, a = new URL(e);
  return Object.keys(t).map((i) => {
    a.searchParams.append(i, t[i]);
  }), yield Un(a, r);
}), Un = (t, ...r) => V(void 0, [t, ...r], function* (n, e = {}) {
  let a;
  try {
    a = yield fetch(n, e), a = yield a.text(), a = JSON.parse(a);
  } catch (i) {
    throw new Error(i.message);
  }
  return a;
}), Fe = (n, e, t) => V(void 0, null, function* () {
  const { session: r } = t, a = {
    headers: xe({
      "Content-Type": "application/json",
      accept: "text/plain"
    }, r ? { "x-SessionId": r } : {})
  }, o = {
    [ge.lotteries]: () => ({
      path: "/wof/lotteries",
      params: {
        filter: "Types[]=flipCoin"
      },
      options: a
    }),
    [ge.outcome]: () => {
      const { id: l } = t;
      return {
        path: `/wof/outcome/${l}`,
        params: {
          filter: "Types[]=flipCoin"
        },
        options: a
      };
    }
  }[n]();
  return o.path = e + "/v1" + o.path, yield Wn(o);
}), Ne = {
  lotteries: (n, e) => V(void 0, null, function* () {
    const t = yield Fe(ge.lotteries, n, { session: e });
    return (t == null ? void 0 : t.items) || [];
  }),
  outcome: (n, e, t) => V(void 0, null, function* () {
    return yield Fe(ge.outcome, n, { session: e, id: t });
  })
}, zn = (n) => {
  var e;
  return ((e = n == null ? void 0 : n.current) == null ? void 0 : e.remainingTimes) > 0 && (n == null ? void 0 : n.next);
};
function Re(n, e) {
  it(n, e);
}
function Yn(n) {
  ot.set(n);
}
const qe = {
  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 En(n) {
  dt(n, "svelte-rd1kop", `.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 .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-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}.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, 16px);overflow:hidden}.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:-2px;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;overflow:auto;max-height:215px}.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}`);
}
function He(n, e, t) {
  const r = n.slice();
  return r[36] = e[t], r;
}
function Be(n, e, t) {
  const r = n.slice();
  return r[39] = e[t], r[41] = t, r;
}
function je(n, e, t) {
  const r = n.slice();
  return r[33] = e[t], r[35] = t, r;
}
function Ae(n) {
  let e, t, r, a, i, o = (
    /*$_*/
    n[10]("infoTooltip") + ""
  ), l, c, u;
  return {
    c() {
      e = v("div"), t = v("div"), r = v("button"), a = x(), i = v("span"), l = D(o), h(r, "class", "icon-button close"), h(t, "class", "tooltip"), h(e, "class", "tooltip-backdrop");
    },
    m(f, g) {
      j(f, e, g), s(e, t), s(t, r), s(t, a), s(t, i), s(i, l), c || (u = ee(
        r,
        "click",
        /*showHideToolip*/
        n[13]
      ), c = !0);
    },
    p(f, g) {
      g[0] & /*$_*/
      1024 && o !== (o = /*$_*/
      f[10]("infoTooltip") + "") && S(l, o);
    },
    d(f) {
      f && A(e), c = !1, u();
    }
  };
}
function Ln(n) {
  let e, t, r = (
    /*$_*/
    n[10]("rulesDescription") + ""
  ), a, i, o, l, c, u = (
    /*$_*/
    n[10]("prizeAgenda") + ""
  ), f, g, d, b, p = (
    /*$_*/
    n[10]("tournamentTicket") + ""
  ), _, w, y, C = (
    /*$_*/
    n[10]("freeSpins") + ""
  ), O, Y, M, E = (
    /*$_*/
    n[10]("bonusMoney") + ""
  ), Q, J, L, G = (
    /*$_*/
    n[10]("loyaltyPoints") + ""
  ), W, F, B, K = (
    /*$_*/
    n[10]("luckyWheel") + ""
  ), U, te, X, N = (
    /*$_*/
    n[10]("mysteryChest") + ""
  ), T, m, P, R = (
    /*$_*/
    n[10]("coinRoyale") + ""
  ), ne, ye, $, re = (
    /*$_*/
    n[10]("customRewards") + ""
  ), le, q = (
    /*hasUrl*/
    n[8] && Ie(n)
  );
  return {
    c() {
      e = v("div"), t = v("span"), a = D(r), i = x(), q && q.c(), o = x(), l = v("section"), c = v("span"), f = D(u), g = x(), d = v("ul"), b = v("li"), _ = D(p), w = x(), y = v("li"), O = D(C), Y = x(), M = v("li"), Q = D(E), J = x(), L = v("li"), W = D(G), F = x(), B = v("li"), U = D(K), te = x(), X = v("li"), T = D(N), m = x(), P = v("li"), ne = D(R), ye = x(), $ = v("li"), le = D(re), h(t, "class", "coins-rules__description"), h(c, "class", "coins-rules__prize-title"), h(b, "class", "coins-rules__list__item"), h(y, "class", "coins-rules__list__item"), h(M, "class", "coins-rules__list__item"), h(L, "class", "coins-rules__list__item"), h(B, "class", "coins-rules__list__item"), h(X, "class", "coins-rules__list__item"), h(P, "class", "coins-rules__list__item"), h($, "class", "coins-rules__list__item"), h(d, "class", "coins-rules__list"), h(e, "class", "coins-rules");
    },
    m(z, H) {
      j(z, e, H), s(e, t), s(t, a), s(e, i), q && q.m(e, null), s(e, o), s(e, l), s(l, c), s(c, f), s(l, g), s(l, d), s(d, b), s(b, _), s(d, w), s(d, y), s(y, O), s(d, Y), s(d, M), s(M, Q), s(d, J), s(d, L), s(L, W), s(d, F), s(d, B), s(B, U), s(d, te), s(d, X), s(X, T), s(d, m), s(d, P), s(P, ne), s(d, ye), s(d, $), s($, le);
    },
    p(z, H) {
      H[0] & /*$_*/
      1024 && r !== (r = /*$_*/
      z[10]("rulesDescription") + "") && S(a, r), /*hasUrl*/
      z[8] ? q ? q.p(z, H) : (q = Ie(z), q.c(), q.m(e, o)) : q && (q.d(1), q = null), H[0] & /*$_*/
      1024 && u !== (u = /*$_*/
      z[10]("prizeAgenda") + "") && S(f, u), H[0] & /*$_*/
      1024 && p !== (p = /*$_*/
      z[10]("tournamentTicket") + "") && S(_, p), H[0] & /*$_*/
      1024 && C !== (C = /*$_*/
      z[10]("freeSpins") + "") && S(O, C), H[0] & /*$_*/
      1024 && E !== (E = /*$_*/
      z[10]("bonusMoney") + "") && S(Q, E), H[0] & /*$_*/
      1024 && G !== (G = /*$_*/
      z[10]("loyaltyPoints") + "") && S(W, G), H[0] & /*$_*/
      1024 && K !== (K = /*$_*/
      z[10]("luckyWheel") + "") && S(U, K), H[0] & /*$_*/
      1024 && N !== (N = /*$_*/
      z[10]("mysteryChest") + "") && S(T, N), H[0] & /*$_*/
      1024 && R !== (R = /*$_*/
      z[10]("coinRoyale") + "") && S(ne, R), H[0] & /*$_*/
      1024 && re !== (re = /*$_*/
      z[10]("customRewards") + "") && S(le, re);
    },
    d(z) {
      z && A(e), q && q.d();
    }
  };
}
function Fn(n) {
  let e;
  function t(i, o) {
    return (
      /*coinRoyalesHistory*/
      i[9].length > 0 ? Hn : qn
    );
  }
  let r = t(n), a = r(n);
  return {
    c() {
      a.c(), e = Te();
    },
    m(i, o) {
      a.m(i, o), j(i, e, o);
    },
    p(i, o) {
      r === (r = t(i)) && a ? a.p(i, o) : (a.d(1), a = r(i), a && (a.c(), a.m(e.parentNode, e)));
    },
    d(i) {
      i && A(e), a.d(i);
    }
  };
}
function Nn(n) {
  let e;
  function t(i, o) {
    return (
      /*coinRoyales*/
      i[6].length > 0 ? jn : Bn
    );
  }
  let r = t(n), a = r(n);
  return {
    c() {
      a.c(), e = Te();
    },
    m(i, o) {
      a.m(i, o), j(i, e, o);
    },
    p(i, o) {
      r === (r = t(i)) && a ? a.p(i, o) : (a.d(1), a = r(i), a && (a.c(), a.m(e.parentNode, e)));
    },
    d(i) {
      i && A(e), a.d(i);
    }
  };
}
function Rn(n) {
  let e;
  return {
    c() {
      e = v("div"), e.innerHTML = '<ui-skeleton structure="rectangle" width="100%" height="110px"></ui-skeleton>', h(e, "class", "coins-loader");
    },
    m(t, r) {
      j(t, e, r);
    },
    p: Ce,
    d(t) {
      t && A(e);
    }
  };
}
function Ie(n) {
  let e, t, r = (
    /*$_*/
    n[10]("terms") + ""
  ), a, i, o;
  return {
    c() {
      e = v("a"), t = v("span"), a = D(r), i = x(), o = v("span"), h(o, "class", "arrow-icon"), h(e, "class", "coins-rules__terms"), h(
        e,
        "href",
        /*terms*/
        n[0]
      ), h(e, "target", "_blank");
    },
    m(l, c) {
      j(l, e, c), s(e, t), s(t, a), s(e, i), s(e, o);
    },
    p(l, c) {
      c[0] & /*$_*/
      1024 && r !== (r = /*$_*/
      l[10]("terms") + "") && S(a, r), c[0] & /*terms*/
      1 && h(
        e,
        "href",
        /*terms*/
        l[0]
      );
    },
    d(l) {
      l && A(e);
    }
  };
}
function qn(n) {
  let e, t = (
    /*$_*/
    n[10]("noHistoryYet") + ""
  ), r;
  return {
    c() {
      e = v("div"), r = D(t), h(e, "class", "coins-empty");
    },
    m(a, i) {
      j(a, e, i), s(e, r);
    },
    p(a, i) {
      i[0] & /*$_*/
      1024 && t !== (t = /*$_*/
      a[10]("noHistoryYet") + "") && S(r, t);
    },
    d(a) {
      a && A(e);
    }
  };
}
function Hn(n) {
  let e, t = fe(
    /*coinRoyalesHistory*/
    n[9]
  ), r = [];
  for (let a = 0; a < t.length; a += 1)
    r[a] = Xe(He(n, t, a));
  return {
    c() {
      for (let a = 0; a < r.length; a += 1)
        r[a].c();
      e = Te();
    },
    m(a, i) {
      for (let o = 0; o < r.length; o += 1)
        r[o] && r[o].m(a, i);
      j(a, e, i);
    },
    p(a, i) {
      if (i[0] & /*showMore, coinRoyalesHistory, $_*/
      17920) {
        t = fe(
          /*coinRoyalesHistory*/
          a[9]
        );
        let o;
        for (o = 0; o < t.length; o += 1) {
          const l = He(a, t, o);
          r[o] ? r[o].p(l, i) : (r[o] = Xe(l), r[o].c(), r[o].m(e.parentNode, e));
        }
        for (; o < r.length; o += 1)
          r[o].d(1);
        r.length = t.length;
      }
    },
    d(a) {
      a && A(e), Me(r, a);
    }
  };
}
function Ge(n) {
  var p, _;
  let e, t, r, a, i = (
    /*outcome*/
    ((p = n[39]) == null ? void 0 : p.name) + ""
  ), o, l, c, u, f, g, d = (
    /*outcome*/
    ((_ = n[39]) == null ? void 0 : _.date) + ""
  ), b;
  return {
    c() {
      var w;
      e = v("div"), t = v("span"), t.textContent = `${/*index*/
      n[41] + 1}`, r = x(), a = v("p"), o = D(i), l = x(), c = v("img"), f = x(), g = v("span"), b = D(d), h(t, "class", "index"), ve(c.src, u = /*outcome*/
      (w = n[39]) != null && w.state ? Le : Ee) || h(c, "src", u), h(c, "alt", ""), h(a, "class", "name"), h(g, "class", "time"), h(e, "class", "coins-history__list__item");
    },
    m(w, y) {
      j(w, e, y), s(e, t), s(e, r), s(e, a), s(a, o), s(a, l), s(a, c), s(e, f), s(e, g), s(g, b);
    },
    p(w, y) {
      var C, O, Y;
      y[0] & /*coinRoyalesHistory*/
      512 && i !== (i = /*outcome*/
      ((C = w[39]) == null ? void 0 : C.name) + "") && S(o, i), y[0] & /*coinRoyalesHistory*/
      512 && !ve(c.src, u = /*outcome*/
      (O = w[39]) != null && O.state ? Le : Ee) && h(c, "src", u), y[0] & /*coinRoyalesHistory*/
      512 && d !== (d = /*outcome*/
      ((Y = w[39]) == null ? void 0 : Y.date) + "") && S(b, d);
    },
    d(w) {
      w && A(e);
    }
  };
}
function Qe(n) {
  let e, t = (
    /*$_*/
    n[10]("more") + ""
  ), r, a, i, o, l, c;
  function u() {
    return (
      /*click_handler_1*/
      n[24](
        /*history*/
        n[36]
      )
    );
  }
  return {
    c() {
      e = v("button"), r = D(t), a = x(), i = v("img"), ve(i.src, o = Sn) || h(i, "src", o), h(i, "alt", "More"), h(e, "class", "coins-history__more");
    },
    m(f, g) {
      j(f, e, g), s(e, r), s(e, a), s(e, i), l || (c = ee(e, "click", u), l = !0);
    },
    p(f, g) {
      n = f, g[0] & /*$_*/
      1024 && t !== (t = /*$_*/
      n[10]("more") + "") && S(r, t);
    },
    d(f) {
      f && A(e), l = !1, c();
    }
  };
}
function Xe(n) {
  var g;
  let e, t, r = (
    /*history*/
    n[36].name + ""
  ), a, i, o, l, c = fe(
    /*history*/
    n[36].outcomes.slice(
      0,
      /*history*/
      n[36].endPos
    )
  ), u = [];
  for (let d = 0; d < c.length; d += 1)
    u[d] = Ge(Be(n, c, d));
  let f = (
    /*history*/
    ((g = n[36].outcomes) == null ? void 0 : g.length) > 3 && /*history*/
    n[36].endPos === 3 && Qe(n)
  );
  return {
    c() {
      e = v("div"), t = v("div"), a = D(r), i = x();
      for (let d = 0; d < u.length; d += 1)
        u[d].c();
      o = x(), f && f.c(), l = x(), h(t, "class", "coins-history__title"), h(e, "class", "coins-history__list");
    },
    m(d, b) {
      j(d, e, b), s(e, t), s(t, a), s(e, i);
      for (let p = 0; p < u.length; p += 1)
        u[p] && u[p].m(e, null);
      s(e, o), f && f.m(e, null), s(e, l);
    },
    p(d, b) {
      var p;
      if (b[0] & /*coinRoyalesHistory*/
      512 && r !== (r = /*history*/
      d[36].name + "") && S(a, r), b[0] & /*coinRoyalesHistory*/
      512) {
        c = fe(
          /*history*/
          d[36].outcomes.slice(
            0,
            /*history*/
            d[36].endPos
          )
        );
        let _;
        for (_ = 0; _ < c.length; _ += 1) {
          const w = Be(d, c, _);
          u[_] ? u[_].p(w, b) : (u[_] = Ge(w), u[_].c(), u[_].m(e, o));
        }
        for (; _ < u.length; _ += 1)
          u[_].d(1);
        u.length = c.length;
      }
      /*history*/
      ((p = d[36].outcomes) == null ? void 0 : p.length) > 3 && /*history*/
      d[36].endPos === 3 ? f ? f.p(d, b) : (f = Qe(d), f.c(), f.m(e, l)) : f && (f.d(1), f = null);
    },
    d(d) {
      d && A(e), Me(u, d), f && f.d();
    }
  };
}
function Bn(n) {
  let e, t = (
    /*$_*/
    n[10]("noCoinYet") + ""
  ), r;
  return {
    c() {
      e = v("div"), r = D(t), h(e, "class", "coins-empty");
    },
    m(a, i) {
      j(a, e, i), s(e, r);
    },
    p(a, i) {
      i[0] & /*$_*/
      1024 && t !== (t = /*$_*/
      a[10]("noCoinYet") + "") && S(r, t);
    },
    d(a) {
      a && A(e);
    }
  };
}
function jn(n) {
  let e, t = fe(
    /*coinRoyales*/
    n[6]
  ), r = [];
  for (let a = 0; a < t.length; a += 1)
    r[a] = Ve(je(n, t, a));
  return {
    c() {
      e = v("div");
      for (let a = 0; a < r.length; a += 1)
        r[a].c();
      h(e, "class", "coins-list");
    },
    m(a, i) {
      j(a, e, i);
      for (let o = 0; o < r.length; o += 1)
        r[o] && r[o].m(e, null);
    },
    p(a, i) {
      if (i[0] & /*openCoinDetails, coinRoyales, lang*/
      65602) {
        t = fe(
          /*coinRoyales*/
          a[6]
        );
        let o;
        for (o = 0; o < t.length; o += 1) {
          const l = je(a, t, o);
          r[o] ? r[o].p(l, i) : (r[o] = Ve(l), r[o].c(), r[o].m(e, null));
        }
        for (; o < r.length; o += 1)
          r[o].d(1);
        r.length = t.length;
      }
    },
    d(a) {
      a && A(e), Me(r, a);
    }
  };
}
function Ve(n) {
  var w, y;
  let e, t = (
    /*coin*/
    (n[33].program.name[
      /*lang*/
      n[1]
    ] || /*coin*/
    n[33].program.name[de.default]) + ""
  ), r, a, i, o, l, c, u, f = (
    /*coin*/
    ((y = (w = n[33]) == null ? void 0 : w.current) == null ? void 0 : y.remainingTimes) + ""
  ), g, d, b, p;
  function _() {
    return (
      /*click_handler*/
      n[23](
        /*coin*/
        n[33]
      )
    );
  }
  return {
    c() {
      e = v("button"), r = D(t), a = x(), i = v("div"), o = v("img"), c = x(), u = v("span"), g = D(f), d = x(), ve(o.src, l = Dn) || h(o, "src", l), h(o, "alt", "Key"), h(i, "class", "coins-list__item__keys"), h(e, "class", "coins-list__item");
    },
    m(C, O) {
      j(C, e, O), s(e, r), s(e, a), s(e, i), s(i, o), s(i, c), s(i, u), s(u, g), s(e, d), b || (p = ee(e, "click", _), b = !0);
    },
    p(C, O) {
      var Y, M;
      n = C, O[0] & /*coinRoyales, lang*/
      66 && t !== (t = /*coin*/
      (n[33].program.name[
        /*lang*/
        n[1]
      ] || /*coin*/
      n[33].program.name[de.default]) + "") && S(r, t), O[0] & /*coinRoyales*/
      64 && f !== (f = /*coin*/
      ((M = (Y = n[33]) == null ? void 0 : Y.current) == null ? void 0 : M.remainingTimes) + "") && S(g, f);
    },
    d(C) {
      C && A(e), b = !1, p();
    }
  };
}
function An(n) {
  let e, t, r, a, i, o, l, c, u, f = (
    /*$_*/
    n[10]("headerTitle") + ""
  ), g, d, b, p, _, w, y, C = (
    /*$_*/
    n[10]("play") + ""
  ), O, Y, M, E = (
    /*$_*/
    n[10]("history") + ""
  ), Q, J, L, G = (
    /*$_*/
    n[10]("rules") + ""
  ), W, F, B, K, U = (
    /*tooltip*/
    n[7] && Ae(n)
  );
  function te(T, m) {
    return (
      /*coinsLoading*/
      T[5] || /*historyLoading*/
      T[4] ? Rn : (
        /*activeTab*/
        T[3] === 1 ? Nn : (
          /*activeTab*/
          T[3] === 2 ? Fn : Ln
        )
      )
    );
  }
  let X = te(n), N = X(n);
  return {
    c() {
      e = v("div"), t = v("button"), r = x(), a = v("div"), U && U.c(), i = x(), o = v("div"), l = v("button"), c = x(), u = v("div"), g = D(f), d = x(), b = v("button"), p = x(), _ = v("div"), w = v("div"), y = v("button"), O = D(C), Y = x(), M = v("button"), Q = D(E), J = x(), L = v("button"), W = D(G), F = x(), N.c(), h(t, "class", "overlay"), h(l, "class", "icon-button help"), h(u, "class", "coins-header__title"), h(b, "class", "icon-button close"), h(o, "class", "coins-header"), h(y, "data-index", "1"), h(y, "class", "coins-tabs__tab"), ue(
        y,
        "active",
        /*activeTab*/
        n[3] === 1
      ), h(M, "data-index", "2"), h(M, "class", "coins-tabs__tab"), ue(
        M,
        "active",
        /*activeTab*/
        n[3] === 2
      ), h(L, "data-index", "3"), h(L, "class", "coins-tabs__tab"), ue(
        L,
        "active",
        /*activeTab*/
        n[3] === 3
      ), h(w, "class", "coins-tabs__container"), h(_, "class", "coins-tabs"), h(a, "class", "drawer " + /*mobileView*/
      (n[11] ? "mobile" : "")), h(e, "part", "CustomStylingContainer");
    },
    m(T, m) {
      j(T, e, m), s(e, t), s(e, r), s(e, a), U && U.m(a, null), s(a, i), s(a, o), s(o, l), s(o, c), s(o, u), s(u, g), s(o, d), s(o, b), s(a, p), s(a, _), s(_, w), s(w, y), s(y, O), s(w, Y), s(w, M), s(M, Q), s(w, J), s(w, L), s(L, W), s(a, F), N.m(a, null), n[25](e), B || (K = [
        ee(
          t,
          "click",
          /*onClose*/
          n[12]
        ),
        ee(
          l,
          "click",
          /*showHideToolip*/
          n[13]
        ),
        ee(
          b,
          "click",
          /*onClose*/
          n[12]
        ),
        ee(
          y,
          "click",
          /*handleTabChange*/
          n[15]
        ),
        ee(
          M,
          "click",
          /*handleTabChange*/
          n[15]
        ),
        ee(
          L,
          "click",
          /*handleTabChange*/
          n[15]
        )
      ], B = !0);
    },
    p(T, m) {
      /*tooltip*/
      T[7] ? U ? U.p(T, m) : (U = Ae(T), U.c(), U.m(a, i)) : U && (U.d(1), U = null), m[0] & /*$_*/
      1024 && f !== (f = /*$_*/
      T[10]("headerTitle") + "") && S(g, f), m[0] & /*$_*/
      1024 && C !== (C = /*$_*/
      T[10]("play") + "") && S(O, C), m[0] & /*activeTab*/
      8 && ue(
        y,
        "active",
        /*activeTab*/
        T[3] === 1
      ), m[0] & /*$_*/
      1024 && E !== (E = /*$_*/
      T[10]("history") + "") && S(Q, E), m[0] & /*activeTab*/
      8 && ue(
        M,
        "active",
        /*activeTab*/
        T[3] === 2
      ), m[0] & /*$_*/
      1024 && G !== (G = /*$_*/
      T[10]("rules") + "") && S(W, G), m[0] & /*activeTab*/
      8 && ue(
        L,
        "active",
        /*activeTab*/
        T[3] === 3
      ), X === (X = te(T)) && N ? N.p(T, m) : (N.d(1), N = X(T), N && (N.c(), N.m(a, null)));
    },
    i: Ce,
    o: Ce,
    d(T) {
      T && A(e), U && U.d(), N.d(), n[25](null), B = !1, ft(K);
    }
  };
}
function In(n, e, t) {
  let r;
  mt(n, pt, (m) => t(10, r = m));
  let { terms: a = "" } = e, { lang: i = de.en } = e, { endpoint: o = "" } = e, { session: l = "" } = e, { clientstyling: c = "" } = e, { clientstylingurl: u = "" } = e, { translationurl: f = "" } = e, { mbsource: g } = e, d = window.navigator.userAgent, b = ht(d), p, _ = 1, w = !1, y = !1, C = [], O = !1, Y = !1, M, E;
  const Q = (m) => /(https?:\/\/[^\s]+)/g.test(m), J = () => {
    Ye({ type: "CloseCoinRoyaleDrawer" });
  }, L = () => {
    t(7, O = !O);
  }, G = () => V(this, null, function* () {
    t(4, w = !0);
    let m = C.map((P) => ({
      id: P.program.id,
      name: P.program.name[i] || P.program.name[de.default],
      partitions: P.program.wheelOfFortune.partitions,
      endPos: 0,
      outcomes: []
    }));
    if (m.length > 0) {
      const P = m.map((R, ne) => V(this, null, function* () {
        const $ = (yield Ne.outcome(o, l, R == null ? void 0 : R.id)).items || [];
        if ($.length === 0) {
          m[ne] = null;
          return;
        }
        m[ne] = De(xe({}, R), {
          endPos: $.length > 3 ? 3 : $.length,
          outcomes: $.map((re) => {
            var H;
            const le = ((H = R.partitions[re.draw.result.wheelOfFortunePartitionIndex]) == null ? void 0 : H.name) || {}, q = re.draw.state === "fulfilled", z = On(new Date(re.draw.time), "LLL d, yyyy HH:mm:ss");
            return {
              name: le[i] || le[de.default],
              state: q,
              date: z
            };
          })
        });
      }));
      yield Promise.all(P);
    }
    t(9, M = m.filter((P) => !!P)), t(4, w = !1);
  }), W = () => V(this, null, function* () {
    t(5, y = !0);
    const m = yield Ne.lotteries(o, l);
    t(6, C = m.filter((P) => zn(P))), t(5, y = !1);
  }), F = (m) => {
    var R;
    const P = M.findIndex((ne) => ne.id === m);
    t(9, M[P].endPos = (R = M[P].outcomes) == null ? void 0 : R.length, M);
  }, B = (m) => V(this, null, function* () {
    t(3, _ = +m.target.getAttribute("data-index")), _ === 2 && (yield G());
  }), K = () => {
    fetch(f).then((P) => P.json()).then((P) => {
      Object.keys(P).forEach((R) => {
        Re(R, P[R]);
      });
    });
  };
  Object.keys(qe).forEach((m) => {
    Re(m, qe[m]);
  });
  const U = () => {
    Yn(i);
  }, te = (m) => {
    Ye({
      type: "OpenCoinRoyaleDetails",
      data: m
    });
  };
  gt(() => {
    t(8, Y = Q(a)), W(), window.emMessageBus && E && E.unsubscribe();
  });
  const X = (m) => {
    te(m);
  }, N = (m) => F(m.id);
  function T(m) {
    vt[m ? "unshift" : "push"](() => {
      p = m, t(2, p);
    });
  }
  return n.$$set = (m) => {
    "terms" in m && t(0, a = m.terms), "lang" in m && t(1, i = m.lang), "endpoint" in m && t(17, o = m.endpoint), "session" in m && t(18, l = m.session), "clientstyling" in m && t(19, c = m.clientstyling), "clientstylingurl" in m && t(20, u = m.clientstylingurl), "translationurl" in m && t(21, f = m.translationurl), "mbsource" in m && t(22, g = m.mbsource);
  }, n.$$.update = () => {
    n.$$.dirty[0] & /*lang*/
    2 && i && U(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
    524292 && c && p && _t(p, c), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
    1048580 && u && p && bt(p, u), n.$$.dirty[0] & /*translationurl*/
    2097152 && f && K(), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
    4194308 && g && p && wt(p, `${g}.Style`);
  }, [
    a,
    i,
    p,
    _,
    w,
    y,
    C,
    O,
    Y,
    M,
    r,
    b,
    J,
    L,
    F,
    B,
    te,
    o,
    l,
    c,
    u,
    f,
    g,
    X,
    N,
    T
  ];
}
class $e extends st {
  constructor(e) {
    super(), lt(
      this,
      e,
      In,
      An,
      ct,
      {
        terms: 0,
        lang: 1,
        endpoint: 17,
        session: 18,
        clientstyling: 19,
        clientstylingurl: 20,
        translationurl: 21,
        mbsource: 22
      },
      En,
      [-1, -1]
    );
  }
  get terms() {
    return this.$$.ctx[0];
  }
  set terms(e) {
    this.$$set({ terms: e }), ae();
  }
  get lang() {
    return this.$$.ctx[1];
  }
  set lang(e) {
    this.$$set({ lang: e }), ae();
  }
  get endpoint() {
    return this.$$.ctx[17];
  }
  set endpoint(e) {
    this.$$set({ endpoint: e }), ae();
  }
  get session() {
    return this.$$.ctx[18];
  }
  set session(e) {
    this.$$set({ session: e }), ae();
  }
  get clientstyling() {
    return this.$$.ctx[19];
  }
  set clientstyling(e) {
    this.$$set({ clientstyling: e }), ae();
  }
  get clientstylingurl() {
    return this.$$.ctx[20];
  }
  set clientstylingurl(e) {
    this.$$set({ clientstylingurl: e }), ae();
  }
  get translationurl() {
    return this.$$.ctx[21];
  }
  set translationurl(e) {
    this.$$set({ translationurl: e }), ae();
  }
  get mbsource() {
    return this.$$.ctx[22];
  }
  set mbsource(e) {
    this.$$set({ mbsource: e }), ae();
  }
}
ut($e, { terms: {}, lang: {}, endpoint: {}, session: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
const Zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  default: $e
}, Symbol.toStringTag, { value: "Module" }));
export {
  Zn as C,
  On as f
};
