var Be = Object.defineProperty, De = Object.defineProperties;
var Ee = Object.getOwnPropertyDescriptors;
var de = Object.getOwnPropertySymbols;
var Oe = Object.prototype.hasOwnProperty, Ae = Object.prototype.propertyIsEnumerable;
var fe = (t, e, s) => e in t ? Be(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, oe = (t, e) => {
  for (var s in e || (e = {}))
    Oe.call(e, s) && fe(t, s, e[s]);
  if (de)
    for (var s of de(e))
      Ae.call(e, s) && fe(t, s, e[s]);
  return t;
}, ue = (t, e) => De(t, Ee(e));
var G = (t, e, s) => new Promise((l, i) => {
  var o = (f) => {
    try {
      c(s.next(f));
    } catch (u) {
      i(u);
    }
  }, n = (f) => {
    try {
      c(s.throw(f));
    } catch (u) {
      i(u);
    }
  }, c = (f) => f.done ? l(f.value) : Promise.resolve(f.value).then(o, n);
  c((s = s.apply(t, e)).next());
});
import { a as Re, $ as Ue, S as Ze, i as je, f as Q, c as Ie, s as Ne, b as Ge, e as p, d as y, t as z, g as a, y as $, h as A, j as r, l as J, k as L, n as pe, m as R, r as Ye, p as We, q as qe, o as Ve, u as Je, z as re, C as le, x as Ke, A as te, B as ae, v as ne } from "./CasinoCoinroyaleContainer-CHUkfGAj.js";
import { f as Xe } from "./CasinoCoinroyaleList-CRpHk1RP.js";
const he = (t) => window.postMessage(t, window.location.href), Qe = "data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.1978%2013.2348C12.1978%209.60751%2015.1383%206.66699%2018.7656%206.66699C22.3929%206.66699%2025.3334%209.60751%2025.3334%2013.2348C25.3334%2016.8621%2022.3929%2019.8026%2018.7656%2019.8026C18.467%2019.8026%2018.1725%2019.7826%2017.8835%2019.7438C17.6825%2019.7168%2017.557%2019.7001%2017.4658%2019.6909C17.4218%2019.7326%2017.3626%2019.7916%2017.2673%2019.8869L12.5565%2024.5977C12.5457%2024.6085%2012.5344%2024.6198%2012.5229%2024.6315C12.4009%2024.7542%2012.2356%2024.9205%2012.0329%2025.0448C11.8576%2025.1522%2011.6665%2025.2313%2011.4666%2025.2793C11.2354%2025.3348%2011.001%2025.3341%2010.8279%2025.3335C10.8115%2025.3335%2010.7956%2025.3334%2010.7803%2025.3334L9.14719%2025.3334C8.91663%2025.3335%208.68571%2025.3335%208.48899%2025.3174C8.27114%2025.2996%208.00565%2025.2571%207.7365%2025.1199C7.36793%2024.9321%207.06826%2024.6325%206.88046%2024.2639C6.74332%2023.9948%206.70076%2023.7293%206.68297%2023.5114C6.66689%2023.3147%206.66693%2023.0838%206.66696%2022.8532L6.66696%2021.2201C6.66696%2021.2049%206.66691%2021.189%206.66686%2021.1725C6.66631%2020.9994%206.66557%2020.765%206.72109%2020.5338C6.76907%2020.3339%206.84822%2020.1428%206.95562%2019.9676C7.07986%2019.7648%207.24617%2019.5995%207.36894%2019.4776C7.3806%2019.466%207.39188%2019.4548%207.40268%2019.4439L12.1135%2014.7331C12.2088%2014.6378%2012.2678%2014.5786%2012.3095%2014.5346C12.3003%2014.4434%2012.2836%2014.3179%2012.2566%2014.1169C12.2178%2013.8279%2012.1978%2013.5334%2012.1978%2013.2348ZM18.7656%208.74104C16.2837%208.74104%2014.2718%2010.753%2014.2718%2013.2348C14.2718%2013.4408%2014.2856%2013.6429%2014.3122%2013.8406L14.3146%2013.8585C14.3394%2014.0432%2014.3618%2014.2097%2014.3749%2014.3451C14.3874%2014.4747%2014.4011%2014.6598%2014.3736%2014.8525C14.3367%2015.1105%2014.2715%2015.3033%2014.1443%2015.5308C14.0078%2015.7751%2013.7931%2015.9881%2013.629%2016.151C13.6121%2016.1678%2013.5958%2016.184%2013.5801%2016.1997L8.86926%2020.9105C8.82845%2020.9513%208.79718%2020.9826%208.77036%2021.0099C8.75929%2021.0212%208.74992%2021.0308%208.74194%2021.0392C8.7417%2021.0507%208.74151%2021.0641%208.74137%2021.0799C8.74102%2021.1182%208.74101%2021.1624%208.74101%2021.2201V22.8215C8.74101%2023.0268%208.74146%2023.1591%208.74514%2023.2553C8.84132%2023.2589%208.97362%2023.2594%209.17887%2023.2594H10.7803C10.838%2023.2594%2010.8822%2023.2594%2010.9205%2023.259C10.9363%2023.2589%2010.9497%2023.2587%2010.9613%2023.2585C10.9696%2023.2505%2010.9792%2023.2411%2010.9905%2023.2301C11.0178%2023.2032%2011.0491%2023.172%2011.0899%2023.1312L15.8007%2018.4203C15.8164%2018.4046%2015.8327%2018.3883%2015.8494%2018.3714C16.0123%2018.2073%2016.2253%2017.9926%2016.4696%2017.8561C16.6971%2017.7289%2016.8899%2017.6638%2017.1479%2017.6268C17.3406%2017.5993%2017.5257%2017.613%2017.6553%2017.6255C17.7907%2017.6386%2017.9572%2017.661%2018.1419%2017.6858L18.1598%2017.6882C18.3575%2017.7148%2018.5597%2017.7286%2018.7656%2017.7286C21.2474%2017.7286%2023.2594%2015.7167%2023.2594%2013.2348C23.2594%2010.753%2021.2474%208.74104%2018.7656%208.74104ZM17.7286%2013.2348C17.7286%2012.6621%2018.1929%2012.1978%2018.7656%2012.1978H18.7748C19.3475%2012.1978%2019.8118%2012.6621%2019.8118%2013.2348C19.8118%2013.8076%2019.3475%2014.2718%2018.7748%2014.2718H18.7656C18.1929%2014.2718%2017.7286%2013.8076%2017.7286%2013.2348Z'%20fill='url(%23paint0_linear_714_605)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_714_605'%20x1='6.66675'%20y1='16.0003'%20x2='25.3334'%20y2='16.0003'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2375FFE9'/%3e%3cstop%20offset='1'%20stop-color='%23B2FF6D'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", ge = "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", _e = "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", $e = "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 ie = /* @__PURE__ */ ((t) => (t.lotteries = "lotteries", t.outcome = "outcome", t.draw = "draw", t))(ie || {}), ee = /* @__PURE__ */ ((t) => (t.en = "en", t.default = "*", t))(ee || {});
const et = (t) => G(void 0, null, function* () {
  const { path: e, params: s = {}, options: l = {} } = t, i = new URL(e);
  return Object.keys(s).map((o) => {
    i.searchParams.append(o, s[o]);
  }), yield tt(i, l);
}), tt = (s, ...l) => G(void 0, [s, ...l], function* (t, e = {}) {
  let i;
  try {
    i = yield fetch(t, e), i = yield i.text(), i = JSON.parse(i);
  } catch (o) {
    throw new Error(o.message);
  }
  return i;
}), be = (t, e, s) => G(void 0, null, function* () {
  const { session: l } = s, i = {
    headers: oe({
      "Content-Type": "application/json",
      accept: "text/plain"
    }, l ? { "x-SessionId": l } : {})
  }, n = {
    [ie.lotteries]: () => ({
      path: "/wof/lotteries",
      params: {
        filter: "Types[]=mysteryChest"
      },
      options: i
    }),
    [ie.outcome]: () => {
      const { id: c } = s;
      return {
        path: `/wof/outcome/${c}`,
        params: {
          filter: "Types[]=mysteryChest"
        },
        options: i
      };
    }
  }[t]();
  return n.path = e + "/v1" + n.path, yield et(n);
}), we = {
  lotteries: (t, e) => G(void 0, null, function* () {
    const s = yield be(ie.lotteries, t, { session: e });
    return (s == null ? void 0 : s.items) || [];
  }),
  outcome: (t, e, s) => G(void 0, null, function* () {
    return yield be(ie.outcome, t, { session: e, id: s });
  })
}, st = (t) => {
  var e;
  return ((e = t == null ? void 0 : t.current) == null ? void 0 : e.remainingTimes) > 0 && (t == null ? void 0 : t.next);
};
function ye(t, e) {
  Re(t, e);
}
function it(t) {
  Ue.set(t);
}
const ve = {
  en: {
    infoTooltip: "Open Mystery Chest and find your reward!",
    play: "Play",
    history: "History",
    rules: "Rules",
    noChestYet: "There are no available Chests",
    noHistoryYet: "There is no history yet",
    more: "More",
    rulesDescription: "Mystery Chest is a particularly interesting game, will bring you a lot of surprises; When you obtained the Mystery Chest, means you got a key to open the Chest, 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",
    customRewards: "Custom Rewards"
  }
};
if (typeof window != "undefined") {
  let t = function(e) {
    return function(...s) {
      try {
        return e.apply(this, s);
      } catch (l) {
        if (l instanceof DOMException && l.message.includes("has already been used with this registry") || l.message.includes("Cannot define multiple custom elements with the same tag name"))
          return !1;
        throw l;
      }
    };
  };
  customElements.define = t(customElements.define), import("./GeneralAnimationLoading-COUykK_7.js").then(({ default: e }) => {
    !customElements.get("general-animation-loading") && customElements.define("general-animation-loading", e.element);
  });
}
function lt(t) {
  Ge(t, "svelte-f0sfwd", `.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 .chests-header__title{font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500);line-height:14px}.mobile .chests-tabs{margin:20px 0}.mobile .chests-tabs__container{border-bottom:1px solid var(--emw--color-secondary, #729787)}.mobile .chests-tabs__tab{font-size:var(--emw--font-size-x-small, 12px);line-height:15px}.mobile .chests-tabs__tab.active{border-bottom:1px solid}.mobile .chests-list{gap:16px}.mobile .chests-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:16px;height:56px}.mobile .chests-list__item__keys{gap:5px;font-size:var(--emw--font-size-medium, 16px)}.mobile .chests-rules{gap:24px}.mobile .chests-rules__description{font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .chests-rules__terms{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 12px)}.mobile .chests-rules__prize-title{font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .chests-rules__list{padding-inline-start:15px;margin:5px 0 0}.mobile .chests-rules__list__item{margin-bottom:5px;font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .chests-empty{margin-top:50px;font-size:var(--emw--font-size-x-small, 12px)}.mobile .chests-history__title{font-size:var(--emw--font-size-x-small, 12px);line-height:14px;margin-bottom:12px}.mobile .chests-history__list{margin-bottom:32px}.mobile .chests-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 .chests-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% 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>') no-repeat}.icon-button.close{background:center/100% 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>') no-repeat}.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}.chests-header{display:flex;justify-content:space-between;align-items:center;padding:12px 8px 8px}.chests-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}.chests-tabs{margin:28px 0}.chests-tabs__container{display:flex;position:relative;border-bottom:2px solid var(--emw--color-secondary, #729787)}.chests-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}.chests-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}.chests-list{max-height:85%;overflow:auto;gap:24px;display:flex;flex-wrap:wrap}.chests-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: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}.chests-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}.chests-rules{display:flex;flex-flow:column;gap:40px;color:var(--emw--color-primary-variant, #a9ccbe)}.chests-rules__description{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-medium, 16px);line-height:32px}.chests-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}.chests-rules__terms .arrow-icon{width:14px;height:14px;background:center/100% 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}.chests-rules__prize-title{color:#ffffff;font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-medium, 16px);line-height:18px}.chests-rules__list{padding-inline-start:25px;margin:15px 0 0}.chests-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}.chests-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)}.chests-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}.chests-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}.chests-history__list{margin-bottom:40px;overflow:auto;max-height:215px}.chests-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}.chests-history__list__item .index{margin-right:20px}.chests-history__list__item .name{flex-grow:1;margin:0;display:flex;gap:6px}.chests-history__list__item .name img{width:18px;height:18px}`);
}
function xe(t, e, s) {
  const l = t.slice();
  return l[36] = e[s], l;
}
function Ce(t, e, s) {
  const l = t.slice();
  return l[39] = e[s], l[41] = s, l;
}
function ke(t, e, s) {
  const l = t.slice();
  return l[33] = e[s], l[35] = s, l;
}
function ze(t) {
  let e, s, l, i, o, n = (
    /*$_*/
    t[12]("infoTooltip") + ""
  ), c, f, u;
  return {
    c() {
      e = p("div"), s = p("div"), l = p("button"), i = y(), o = p("span"), c = z(n), a(l, "class", "icon-button close"), a(s, "class", "tooltip"), a(e, "class", "tooltip-backdrop");
    },
    m(h, w) {
      A(h, e, w), r(e, s), r(s, l), r(s, i), r(s, o), r(o, c), f || (u = J(
        l,
        "click",
        /*showHideToolip*/
        t[15]
      ), f = !0);
    },
    p(h, w) {
      w[0] & /*$_*/
      4096 && n !== (n = /*$_*/
      h[12]("infoTooltip") + "") && L(c, n);
    },
    d(h) {
      h && R(e), f = !1, u();
    }
  };
}
function nt(t) {
  let e, s, l = (
    /*$_*/
    t[12]("rulesDescription") + ""
  ), i, o, n, c, f, u = (
    /*$_*/
    t[12]("prizeAgenda") + ""
  ), h, w, m, _, b = (
    /*$_*/
    t[12]("tournamentTicket") + ""
  ), g, v, M, P = (
    /*$_*/
    t[12]("freeSpins") + ""
  ), k, S, Z, Y = (
    /*$_*/
    t[12]("bonusMoney") + ""
  ), U, W, j, I = (
    /*$_*/
    t[12]("loyaltyPoints") + ""
  ), q, X, T, V = (
    /*$_*/
    t[12]("luckyWheel") + ""
  ), N, D, x, B = (
    /*$_*/
    t[12]("mysteryChest") + ""
  ), se, d, C, H = (
    /*$_*/
    t[12]("customRewards") + ""
  ), K, O = (
    /*hasUrl*/
    t[10] && Le(t)
  );
  return {
    c() {
      e = p("div"), s = p("span"), i = z(l), o = y(), O && O.c(), n = y(), c = p("section"), f = p("span"), h = z(u), w = y(), m = p("ul"), _ = p("li"), g = z(b), v = y(), M = p("li"), k = z(P), S = y(), Z = p("li"), U = z(Y), W = y(), j = p("li"), q = z(I), X = y(), T = p("li"), N = z(V), D = y(), x = p("li"), se = z(B), d = y(), C = p("li"), K = z(H), a(s, "class", "chests-rules__description"), a(f, "class", "chests-rules__prize-title"), a(_, "class", "chests-rules__list__item"), a(M, "class", "chests-rules__list__item"), a(Z, "class", "chests-rules__list__item"), a(j, "class", "chests-rules__list__item"), a(T, "class", "chests-rules__list__item"), a(x, "class", "chests-rules__list__item"), a(C, "class", "chests-rules__list__item"), a(m, "class", "chests-rules__list"), a(e, "class", "chests-rules");
    },
    m(F, E) {
      A(F, e, E), r(e, s), r(s, i), r(e, o), O && O.m(e, null), r(e, n), r(e, c), r(c, f), r(f, h), r(c, w), r(c, m), r(m, _), r(_, g), r(m, v), r(m, M), r(M, k), r(m, S), r(m, Z), r(Z, U), r(m, W), r(m, j), r(j, q), r(m, X), r(m, T), r(T, N), r(m, D), r(m, x), r(x, se), r(m, d), r(m, C), r(C, K);
    },
    p(F, E) {
      E[0] & /*$_*/
      4096 && l !== (l = /*$_*/
      F[12]("rulesDescription") + "") && L(i, l), /*hasUrl*/
      F[10] ? O ? O.p(F, E) : (O = Le(F), O.c(), O.m(e, n)) : O && (O.d(1), O = null), E[0] & /*$_*/
      4096 && u !== (u = /*$_*/
      F[12]("prizeAgenda") + "") && L(h, u), E[0] & /*$_*/
      4096 && b !== (b = /*$_*/
      F[12]("tournamentTicket") + "") && L(g, b), E[0] & /*$_*/
      4096 && P !== (P = /*$_*/
      F[12]("freeSpins") + "") && L(k, P), E[0] & /*$_*/
      4096 && Y !== (Y = /*$_*/
      F[12]("bonusMoney") + "") && L(U, Y), E[0] & /*$_*/
      4096 && I !== (I = /*$_*/
      F[12]("loyaltyPoints") + "") && L(q, I), E[0] & /*$_*/
      4096 && V !== (V = /*$_*/
      F[12]("luckyWheel") + "") && L(N, V), E[0] & /*$_*/
      4096 && B !== (B = /*$_*/
      F[12]("mysteryChest") + "") && L(se, B), E[0] & /*$_*/
      4096 && H !== (H = /*$_*/
      F[12]("customRewards") + "") && L(K, H);
    },
    d(F) {
      F && R(e), O && O.d();
    }
  };
}
function ot(t) {
  let e;
  function s(o, n) {
    return (
      /*mysteryChestsHistory*/
      o[11].length > 0 ? mt : ct
    );
  }
  let l = s(t), i = l(t);
  return {
    c() {
      i.c(), e = re();
    },
    m(o, n) {
      i.m(o, n), A(o, e, n);
    },
    p(o, n) {
      l === (l = s(o)) && i ? i.p(o, n) : (i.d(1), i = l(o), i && (i.c(), i.m(e.parentNode, e)));
    },
    d(o) {
      o && R(e), i.d(o);
    }
  };
}
function rt(t) {
  let e;
  function s(o, n) {
    return (
      /*mysteryChests*/
      o[8].length > 0 ? ft : dt
    );
  }
  let l = s(t), i = l(t);
  return {
    c() {
      i.c(), e = re();
    },
    m(o, n) {
      i.m(o, n), A(o, e, n);
    },
    p(o, n) {
      l === (l = s(o)) && i ? i.p(o, n) : (i.d(1), i = l(o), i && (i.c(), i.m(e.parentNode, e)));
    },
    d(o) {
      o && R(e), i.d(o);
    }
  };
}
function at(t) {
  let e;
  return {
    c() {
      e = p("general-animation-loading"), le(
        e,
        "clientstyling",
        /*clientstyling*/
        t[2]
      ), le(
        e,
        "clientstylingurl",
        /*clientstylingurl*/
        t[3]
      );
    },
    m(s, l) {
      A(s, e, l);
    },
    p(s, l) {
      l[0] & /*clientstyling*/
      4 && le(
        e,
        "clientstyling",
        /*clientstyling*/
        s[2]
      ), l[0] & /*clientstylingurl*/
      8 && le(
        e,
        "clientstylingurl",
        /*clientstylingurl*/
        s[3]
      );
    },
    d(s) {
      s && R(e);
    }
  };
}
function Le(t) {
  let e, s, l = (
    /*$_*/
    t[12]("terms") + ""
  ), i, o, n;
  return {
    c() {
      e = p("a"), s = p("span"), i = z(l), o = y(), n = p("span"), a(n, "class", "arrow-icon"), a(e, "class", "chests-rules__terms"), a(
        e,
        "href",
        /*terms*/
        t[0]
      ), a(e, "target", "_blank");
    },
    m(c, f) {
      A(c, e, f), r(e, s), r(s, i), r(e, o), r(e, n);
    },
    p(c, f) {
      f[0] & /*$_*/
      4096 && l !== (l = /*$_*/
      c[12]("terms") + "") && L(i, l), f[0] & /*terms*/
      1 && a(
        e,
        "href",
        /*terms*/
        c[0]
      );
    },
    d(c) {
      c && R(e);
    }
  };
}
function ct(t) {
  let e, s = (
    /*$_*/
    t[12]("noHistoryYet") + ""
  ), l;
  return {
    c() {
      e = p("div"), l = z(s), a(e, "class", "chests-empty");
    },
    m(i, o) {
      A(i, e, o), r(e, l);
    },
    p(i, o) {
      o[0] & /*$_*/
      4096 && s !== (s = /*$_*/
      i[12]("noHistoryYet") + "") && L(l, s);
    },
    d(i) {
      i && R(e);
    }
  };
}
function mt(t) {
  let e, s = te(
    /*mysteryChestsHistory*/
    t[11]
  ), l = [];
  for (let i = 0; i < s.length; i += 1)
    l[i] = Fe(xe(t, s, i));
  return {
    c() {
      for (let i = 0; i < l.length; i += 1)
        l[i].c();
      e = re();
    },
    m(i, o) {
      for (let n = 0; n < l.length; n += 1)
        l[n] && l[n].m(i, o);
      A(i, e, o);
    },
    p(i, o) {
      if (o[0] & /*showMore, mysteryChestsHistory, $_*/
      71680) {
        s = te(
          /*mysteryChestsHistory*/
          i[11]
        );
        let n;
        for (n = 0; n < s.length; n += 1) {
          const c = xe(i, s, n);
          l[n] ? l[n].p(c, o) : (l[n] = Fe(c), l[n].c(), l[n].m(e.parentNode, e));
        }
        for (; n < l.length; n += 1)
          l[n].d(1);
        l.length = s.length;
      }
    },
    d(i) {
      i && R(e), ae(l, i);
    }
  };
}
function Me(t) {
  var b, g;
  let e, s, l, i, o = (
    /*outcome*/
    ((b = t[39]) == null ? void 0 : b.name) + ""
  ), n, c, f, u, h, w, m = (
    /*outcome*/
    ((g = t[39]) == null ? void 0 : g.date) + ""
  ), _;
  return {
    c() {
      var v;
      e = p("div"), s = p("span"), s.textContent = `${/*index*/
      t[41] + 1}`, l = y(), i = p("p"), n = z(o), c = y(), f = p("img"), h = y(), w = p("span"), _ = z(m), a(s, "class", "index"), ne(f.src, u = /*outcome*/
      (v = t[39]) != null && v.state ? _e : ge) || a(f, "src", u), a(f, "alt", ""), a(i, "class", "name"), a(w, "class", "time"), a(e, "class", "chests-history__list__item");
    },
    m(v, M) {
      A(v, e, M), r(e, s), r(e, l), r(e, i), r(i, n), r(i, c), r(i, f), r(e, h), r(e, w), r(w, _);
    },
    p(v, M) {
      var P, k, S;
      M[0] & /*mysteryChestsHistory*/
      2048 && o !== (o = /*outcome*/
      ((P = v[39]) == null ? void 0 : P.name) + "") && L(n, o), M[0] & /*mysteryChestsHistory*/
      2048 && !ne(f.src, u = /*outcome*/
      (k = v[39]) != null && k.state ? _e : ge) && a(f, "src", u), M[0] & /*mysteryChestsHistory*/
      2048 && m !== (m = /*outcome*/
      ((S = v[39]) == null ? void 0 : S.date) + "") && L(_, m);
    },
    d(v) {
      v && R(e);
    }
  };
}
function Te(t) {
  let e, s = (
    /*$_*/
    t[12]("more") + ""
  ), l, i, o, n, c, f;
  function u() {
    return (
      /*click_handler_1*/
      t[23](
        /*history*/
        t[36]
      )
    );
  }
  return {
    c() {
      e = p("button"), l = z(s), i = y(), o = p("img"), ne(o.src, n = $e) || a(o, "src", n), a(o, "alt", "More"), a(e, "class", "chests-history__more");
    },
    m(h, w) {
      A(h, e, w), r(e, l), r(e, i), r(e, o), c || (f = J(e, "click", u), c = !0);
    },
    p(h, w) {
      t = h, w[0] & /*$_*/
      4096 && s !== (s = /*$_*/
      t[12]("more") + "") && L(l, s);
    },
    d(h) {
      h && R(e), c = !1, f();
    }
  };
}
function Fe(t) {
  var w;
  let e, s, l = (
    /*history*/
    t[36].name + ""
  ), i, o, n, c, f = te(
    /*history*/
    t[36].outcomes.slice(
      0,
      /*history*/
      t[36].endPos
    )
  ), u = [];
  for (let m = 0; m < f.length; m += 1)
    u[m] = Me(Ce(t, f, m));
  let h = (
    /*history*/
    ((w = t[36].outcomes) == null ? void 0 : w.length) > 3 && /*history*/
    t[36].endPos === 3 && Te(t)
  );
  return {
    c() {
      e = p("div"), s = p("div"), i = z(l), o = y();
      for (let m = 0; m < u.length; m += 1)
        u[m].c();
      n = y(), h && h.c(), c = y(), a(s, "class", "chests-history__title"), a(e, "class", "chests-history__list");
    },
    m(m, _) {
      A(m, e, _), r(e, s), r(s, i), r(e, o);
      for (let b = 0; b < u.length; b += 1)
        u[b] && u[b].m(e, null);
      r(e, n), h && h.m(e, null), r(e, c);
    },
    p(m, _) {
      var b;
      if (_[0] & /*mysteryChestsHistory*/
      2048 && l !== (l = /*history*/
      m[36].name + "") && L(i, l), _[0] & /*mysteryChestsHistory*/
      2048) {
        f = te(
          /*history*/
          m[36].outcomes.slice(
            0,
            /*history*/
            m[36].endPos
          )
        );
        let g;
        for (g = 0; g < f.length; g += 1) {
          const v = Ce(m, f, g);
          u[g] ? u[g].p(v, _) : (u[g] = Me(v), u[g].c(), u[g].m(e, n));
        }
        for (; g < u.length; g += 1)
          u[g].d(1);
        u.length = f.length;
      }
      /*history*/
      ((b = m[36].outcomes) == null ? void 0 : b.length) > 3 && /*history*/
      m[36].endPos === 3 ? h ? h.p(m, _) : (h = Te(m), h.c(), h.m(e, c)) : h && (h.d(1), h = null);
    },
    d(m) {
      m && R(e), ae(u, m), h && h.d();
    }
  };
}
function dt(t) {
  let e, s = (
    /*$_*/
    t[12]("noChestYet") + ""
  ), l;
  return {
    c() {
      e = p("div"), l = z(s), a(e, "class", "chests-empty");
    },
    m(i, o) {
      A(i, e, o), r(e, l);
    },
    p(i, o) {
      o[0] & /*$_*/
      4096 && s !== (s = /*$_*/
      i[12]("noChestYet") + "") && L(l, s);
    },
    d(i) {
      i && R(e);
    }
  };
}
function ft(t) {
  let e, s = te(
    /*mysteryChests*/
    t[8]
  ), l = [];
  for (let i = 0; i < s.length; i += 1)
    l[i] = Pe(ke(t, s, i));
  return {
    c() {
      e = p("div");
      for (let i = 0; i < l.length; i += 1)
        l[i].c();
      a(e, "class", "chests-list");
    },
    m(i, o) {
      A(i, e, o);
      for (let n = 0; n < l.length; n += 1)
        l[n] && l[n].m(e, null);
    },
    p(i, o) {
      if (o[0] & /*openChestDetails, mysteryChests, lang*/
      262402) {
        s = te(
          /*mysteryChests*/
          i[8]
        );
        let n;
        for (n = 0; n < s.length; n += 1) {
          const c = ke(i, s, n);
          l[n] ? l[n].p(c, o) : (l[n] = Pe(c), l[n].c(), l[n].m(e, null));
        }
        for (; n < l.length; n += 1)
          l[n].d(1);
        l.length = s.length;
      }
    },
    d(i) {
      i && R(e), ae(l, i);
    }
  };
}
function Pe(t) {
  var v, M;
  let e, s = (
    /*chest*/
    (t[33].program.name[
      /*lang*/
      t[1]
    ] || /*chest*/
    t[33].program.name[ee.default]) + ""
  ), l, i, o, n, c, f, u, h = (
    /*chest*/
    ((M = (v = t[33]) == null ? void 0 : v.current) == null ? void 0 : M.remainingTimes) + ""
  ), w, m, _, b;
  function g() {
    return (
      /*click_handler*/
      t[22](
        /*chest*/
        t[33]
      )
    );
  }
  return {
    c() {
      e = p("button"), l = z(s), i = y(), o = p("div"), n = p("img"), f = y(), u = p("span"), w = z(h), m = y(), ne(n.src, c = Qe) || a(n, "src", c), a(n, "alt", "Key"), a(o, "class", "chests-list__item__keys"), a(e, "class", "chests-list__item");
    },
    m(P, k) {
      A(P, e, k), r(e, l), r(e, i), r(e, o), r(o, n), r(o, f), r(o, u), r(u, w), r(e, m), _ || (b = J(e, "click", g), _ = !0);
    },
    p(P, k) {
      var S, Z;
      t = P, k[0] & /*mysteryChests, lang*/
      258 && s !== (s = /*chest*/
      (t[33].program.name[
        /*lang*/
        t[1]
      ] || /*chest*/
      t[33].program.name[ee.default]) + "") && L(l, s), k[0] & /*mysteryChests*/
      256 && h !== (h = /*chest*/
      ((Z = (S = t[33]) == null ? void 0 : S.current) == null ? void 0 : Z.remainingTimes) + "") && L(w, h);
    },
    d(P) {
      P && R(e), _ = !1, b();
    }
  };
}
function ut(t) {
  let e, s, l, i, o, n, c, f, u, h, w, m, _, b, g, v = (
    /*$_*/
    t[12]("play") + ""
  ), M, P, k, S = (
    /*$_*/
    t[12]("history") + ""
  ), Z, Y, U, W = (
    /*$_*/
    t[12]("rules") + ""
  ), j, I, q, X, T = (
    /*tooltip*/
    t[9] && ze(t)
  );
  function V(x, B) {
    return (
      /*chestsLoading*/
      x[7] || /*historyLoading*/
      x[6] ? at : (
        /*activeTab*/
        x[5] === 1 ? rt : (
          /*activeTab*/
          x[5] === 2 ? ot : nt
        )
      )
    );
  }
  let N = V(t), D = N(t);
  return {
    c() {
      e = p("div"), s = p("button"), l = y(), i = p("div"), T && T.c(), o = y(), n = p("div"), c = p("button"), f = y(), u = p("div"), u.textContent = "Mystery Chests", h = y(), w = p("button"), m = y(), _ = p("div"), b = p("div"), g = p("button"), M = z(v), P = y(), k = p("button"), Z = z(S), Y = y(), U = p("button"), j = z(W), I = y(), D.c(), a(s, "class", "overlay"), a(c, "class", "icon-button help"), a(u, "class", "chests-header__title"), a(w, "class", "icon-button close"), a(n, "class", "chests-header"), a(g, "data-index", "1"), a(g, "class", "chests-tabs__tab"), $(
        g,
        "active",
        /*activeTab*/
        t[5] === 1
      ), a(k, "data-index", "2"), a(k, "class", "chests-tabs__tab"), $(
        k,
        "active",
        /*activeTab*/
        t[5] === 2
      ), a(U, "data-index", "3"), a(U, "class", "chests-tabs__tab"), $(
        U,
        "active",
        /*activeTab*/
        t[5] === 3
      ), a(b, "class", "chests-tabs__container"), a(_, "class", "chests-tabs"), a(i, "class", "drawer " + /*mobileView*/
      (t[13] ? "mobile" : "")), a(e, "part", "CustomStylingContainer");
    },
    m(x, B) {
      A(x, e, B), r(e, s), r(e, l), r(e, i), T && T.m(i, null), r(i, o), r(i, n), r(n, c), r(n, f), r(n, u), r(n, h), r(n, w), r(i, m), r(i, _), r(_, b), r(b, g), r(g, M), r(b, P), r(b, k), r(k, Z), r(b, Y), r(b, U), r(U, j), r(i, I), D.m(i, null), t[24](e), q || (X = [
        J(
          s,
          "click",
          /*onClose*/
          t[14]
        ),
        J(
          c,
          "click",
          /*showHideToolip*/
          t[15]
        ),
        J(
          w,
          "click",
          /*onClose*/
          t[14]
        ),
        J(
          g,
          "click",
          /*handleTabChange*/
          t[17]
        ),
        J(
          k,
          "click",
          /*handleTabChange*/
          t[17]
        ),
        J(
          U,
          "click",
          /*handleTabChange*/
          t[17]
        )
      ], q = !0);
    },
    p(x, B) {
      /*tooltip*/
      x[9] ? T ? T.p(x, B) : (T = ze(x), T.c(), T.m(i, o)) : T && (T.d(1), T = null), B[0] & /*$_*/
      4096 && v !== (v = /*$_*/
      x[12]("play") + "") && L(M, v), B[0] & /*activeTab*/
      32 && $(
        g,
        "active",
        /*activeTab*/
        x[5] === 1
      ), B[0] & /*$_*/
      4096 && S !== (S = /*$_*/
      x[12]("history") + "") && L(Z, S), B[0] & /*activeTab*/
      32 && $(
        k,
        "active",
        /*activeTab*/
        x[5] === 2
      ), B[0] & /*$_*/
      4096 && W !== (W = /*$_*/
      x[12]("rules") + "") && L(j, W), B[0] & /*activeTab*/
      32 && $(
        U,
        "active",
        /*activeTab*/
        x[5] === 3
      ), N === (N = V(x)) && D ? D.p(x, B) : (D.d(1), D = N(x), D && (D.c(), D.m(i, null)));
    },
    i: pe,
    o: pe,
    d(x) {
      x && R(e), T && T.d(), D.d(), t[24](null), q = !1, Ye(X);
    }
  };
}
function pt(t, e, s) {
  let l;
  We(t, Ke, (d) => s(12, l = d));
  let { terms: i = "" } = e, { lang: o = ee.en } = e, { endpoint: n = "" } = e, { session: c = "" } = e, { clientstyling: f = "" } = e, { clientstylingurl: u = "" } = e, { translationurl: h = "" } = e, w = window.navigator.userAgent, m = qe(w), _, b = 1, g = !1, v = !1, M = [], P = !1, k = !1, S;
  const Z = (d) => /(https?:\/\/[^\s]+)/g.test(d), Y = () => {
    he({ type: "CloseMysteryChestDrawer" });
  }, U = () => {
    s(9, P = !P);
  }, W = () => G(this, null, function* () {
    s(6, g = !0);
    let d = M.map((C) => ({
      id: C.program.id,
      name: C.program.name[o] || C.program.name[ee.default],
      partitions: C.program.wheelOfFortune.partitions,
      endPos: 0,
      outcomes: []
    }));
    if (d.length > 0) {
      const C = d.map((H, K) => G(this, null, function* () {
        const F = (yield we.outcome(n, c, H == null ? void 0 : H.id)).items || [];
        if (F.length === 0) {
          d[K] = null;
          return;
        }
        d[K] = ue(oe({}, H), {
          endPos: F.length > 3 ? 3 : F.length,
          outcomes: F.map((E) => {
            var me;
            const ce = ((me = H.partitions[E.draw.result.wheelOfFortunePartitionIndex]) == null ? void 0 : me.name) || {}, Se = E.draw.state === "fulfilled", He = Xe(new Date(E.draw.time), "LLL d, yyyy HH:mm:ss");
            return {
              name: ce[o] || ce[ee.default],
              state: Se,
              date: He
            };
          })
        });
      }));
      yield Promise.all(C);
    }
    s(11, S = d.filter((C) => !!C)), s(6, g = !1);
  }), j = () => G(this, null, function* () {
    s(7, v = !0);
    const d = yield we.lotteries(n, c);
    s(8, M = d.filter((C) => st(C))), s(7, v = !1);
  }), I = (d) => {
    var H;
    const C = S.findIndex((K) => K.id === d);
    s(11, S[C].endPos = (H = S[C].outcomes) == null ? void 0 : H.length, S);
  }, q = (d) => G(this, null, function* () {
    s(5, b = +d.target.getAttribute("data-index")), b === 2 && (yield W());
  }), X = () => {
    let d = document.createElement("style");
    d.innerHTML = f, _.appendChild(d);
  }, T = () => {
    let d = new URL(u), C = document.createElement("style");
    fetch(d.href).then((H) => H.text()).then((H) => {
      C.innerHTML = H, setTimeout(
        () => {
          _.appendChild(C);
        },
        1
      );
    });
  }, V = () => {
    fetch(h).then((C) => C.json()).then((C) => {
      Object.keys(C).forEach((H) => {
        ye(H, C[H]);
      });
    });
  };
  Object.keys(ve).forEach((d) => {
    ye(d, ve[d]);
  });
  const N = () => {
    it(o);
  }, D = (d) => {
    he({
      type: "OpenMysteryChestDetails",
      data: d
    });
  };
  Ve(() => {
    s(10, k = Z(i)), j();
  });
  const x = (d) => {
    D(d);
  }, B = (d) => I(d.id);
  function se(d) {
    Je[d ? "unshift" : "push"](() => {
      _ = d, s(4, _);
    });
  }
  return t.$$set = (d) => {
    "terms" in d && s(0, i = d.terms), "lang" in d && s(1, o = d.lang), "endpoint" in d && s(19, n = d.endpoint), "session" in d && s(20, c = d.session), "clientstyling" in d && s(2, f = d.clientstyling), "clientstylingurl" in d && s(3, u = d.clientstylingurl), "translationurl" in d && s(21, h = d.translationurl);
  }, t.$$.update = () => {
    t.$$.dirty[0] & /*lang*/
    2 && o && N(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
    20 && f && _ && X(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
    24 && u && _ && T(), t.$$.dirty[0] & /*translationurl*/
    2097152 && h && V();
  }, [
    i,
    o,
    f,
    u,
    _,
    b,
    g,
    v,
    M,
    P,
    k,
    S,
    l,
    m,
    Y,
    U,
    I,
    q,
    D,
    n,
    c,
    h,
    x,
    B,
    se
  ];
}
class ht extends Ze {
  constructor(e) {
    super(), je(
      this,
      e,
      pt,
      ut,
      Ne,
      {
        terms: 0,
        lang: 1,
        endpoint: 19,
        session: 20,
        clientstyling: 2,
        clientstylingurl: 3,
        translationurl: 21
      },
      lt,
      [-1, -1]
    );
  }
  get terms() {
    return this.$$.ctx[0];
  }
  set terms(e) {
    this.$$set({ terms: e }), Q();
  }
  get lang() {
    return this.$$.ctx[1];
  }
  set lang(e) {
    this.$$set({ lang: e }), Q();
  }
  get endpoint() {
    return this.$$.ctx[19];
  }
  set endpoint(e) {
    this.$$set({ endpoint: e }), Q();
  }
  get session() {
    return this.$$.ctx[20];
  }
  set session(e) {
    this.$$set({ session: e }), Q();
  }
  get clientstyling() {
    return this.$$.ctx[2];
  }
  set clientstyling(e) {
    this.$$set({ clientstyling: e }), Q();
  }
  get clientstylingurl() {
    return this.$$.ctx[3];
  }
  set clientstylingurl(e) {
    this.$$set({ clientstylingurl: e }), Q();
  }
  get translationurl() {
    return this.$$.ctx[21];
  }
  set translationurl(e) {
    this.$$set({ translationurl: e }), Q();
  }
}
Ie(ht, { terms: {}, lang: {}, endpoint: {}, session: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
export {
  ht as default
};
