@everymatrix/casino-game-overlay 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2051 @@
1
+ import { S as Be, b as Re, s as je, f as B, d as Ie, n as Z, e as W, r as Ge, x as X, m as g, g as U, p as f, q as F, l as w, h as M, o as Qe, w as Xe, k as ae, j as me, y as J, z as he, u as ee, v as te, t as fe, c as Ve } from "./CasinoGameOverlay-CJ3Byef3.js";
2
+ import { $ as Ae, a as Ze } from "./CasinoMysteryChestContainer-BaUpvz_h.js";
3
+ const ce = (n) => window.postMessage(n, window.location.href), Je = "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", pe = "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", we = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='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", Ke = "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";
4
+ function ie(n) {
5
+ "@babel/helpers - typeof";
6
+ return ie = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
7
+ return typeof e;
8
+ } : function(e) {
9
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
10
+ }, ie(n);
11
+ }
12
+ function I(n) {
13
+ if (n === null || n === !0 || n === !1)
14
+ return NaN;
15
+ var e = Number(n);
16
+ return isNaN(e) ? e : e < 0 ? Math.ceil(e) : Math.floor(e);
17
+ }
18
+ function S(n, e) {
19
+ if (e.length < n)
20
+ throw new TypeError(n + " argument" + (n > 1 ? "s" : "") + " required, but only " + e.length + " present");
21
+ }
22
+ function N(n) {
23
+ S(1, arguments);
24
+ var e = Object.prototype.toString.call(n);
25
+ return n instanceof Date || ie(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 < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
26
+ }
27
+ function $e(n, e) {
28
+ S(2, arguments);
29
+ var t = N(n).getTime(), r = I(e);
30
+ return new Date(t + r);
31
+ }
32
+ var et = {};
33
+ function le() {
34
+ return et;
35
+ }
36
+ function tt(n) {
37
+ var e = new Date(Date.UTC(n.getFullYear(), n.getMonth(), n.getDate(), n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds()));
38
+ return e.setUTCFullYear(n.getFullYear()), n.getTime() - e.getTime();
39
+ }
40
+ function nt(n) {
41
+ return S(1, arguments), n instanceof Date || ie(n) === "object" && Object.prototype.toString.call(n) === "[object Date]";
42
+ }
43
+ function rt(n) {
44
+ if (S(1, arguments), !nt(n) && typeof n != "number")
45
+ return !1;
46
+ var e = N(n);
47
+ return !isNaN(Number(e));
48
+ }
49
+ function at(n, e) {
50
+ S(2, arguments);
51
+ var t = I(e);
52
+ return $e(n, -t);
53
+ }
54
+ var it = 864e5;
55
+ function ot(n) {
56
+ S(1, arguments);
57
+ var e = N(n), t = e.getTime();
58
+ e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
59
+ var r = e.getTime(), a = t - r;
60
+ return Math.floor(a / it) + 1;
61
+ }
62
+ function oe(n) {
63
+ S(1, arguments);
64
+ var e = 1, t = N(n), r = t.getUTCDay(), a = (r < e ? 7 : 0) + r - e;
65
+ return t.setUTCDate(t.getUTCDate() - a), t.setUTCHours(0, 0, 0, 0), t;
66
+ }
67
+ function Le(n) {
68
+ S(1, arguments);
69
+ var e = N(n), t = e.getUTCFullYear(), r = /* @__PURE__ */ new Date(0);
70
+ r.setUTCFullYear(t + 1, 0, 4), r.setUTCHours(0, 0, 0, 0);
71
+ var a = oe(r), i = /* @__PURE__ */ new Date(0);
72
+ i.setUTCFullYear(t, 0, 4), i.setUTCHours(0, 0, 0, 0);
73
+ var o = oe(i);
74
+ return e.getTime() >= a.getTime() ? t + 1 : e.getTime() >= o.getTime() ? t : t - 1;
75
+ }
76
+ function st(n) {
77
+ S(1, arguments);
78
+ var e = Le(n), t = /* @__PURE__ */ new Date(0);
79
+ t.setUTCFullYear(e, 0, 4), t.setUTCHours(0, 0, 0, 0);
80
+ var r = oe(t);
81
+ return r;
82
+ }
83
+ var lt = 6048e5;
84
+ function ut(n) {
85
+ S(1, arguments);
86
+ var e = N(n), t = oe(e).getTime() - st(e).getTime();
87
+ return Math.round(t / lt) + 1;
88
+ }
89
+ function se(n, e) {
90
+ var t, r, a, i, o, u, c, l;
91
+ S(1, arguments);
92
+ var m = le(), s = I((t = (r = (a = (i = e?.weekStartsOn) !== null && i !== void 0 ? i : e == null || (o = e.locale) === null || o === void 0 || (u = o.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && a !== void 0 ? a : m.weekStartsOn) !== null && r !== void 0 ? r : (c = m.locale) === null || c === void 0 || (l = c.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && t !== void 0 ? t : 0);
93
+ if (!(s >= 0 && s <= 6))
94
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
95
+ var p = N(n), d = p.getUTCDay(), v = (d < s ? 7 : 0) + d - s;
96
+ return p.setUTCDate(p.getUTCDate() - v), p.setUTCHours(0, 0, 0, 0), p;
97
+ }
98
+ function Ee(n, e) {
99
+ var t, r, a, i, o, u, c, l;
100
+ S(1, arguments);
101
+ var m = N(n), s = m.getUTCFullYear(), p = le(), d = I((t = (r = (a = (i = e?.firstWeekContainsDate) !== null && i !== void 0 ? i : e == null || (o = e.locale) === null || o === void 0 || (u = o.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && a !== void 0 ? a : p.firstWeekContainsDate) !== null && r !== void 0 ? r : (c = p.locale) === null || c === void 0 || (l = c.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && t !== void 0 ? t : 1);
102
+ if (!(d >= 1 && d <= 7))
103
+ throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
104
+ var v = /* @__PURE__ */ new Date(0);
105
+ v.setUTCFullYear(s + 1, 0, d), v.setUTCHours(0, 0, 0, 0);
106
+ var _ = se(v, e), T = /* @__PURE__ */ new Date(0);
107
+ T.setUTCFullYear(s, 0, d), T.setUTCHours(0, 0, 0, 0);
108
+ var C = se(T, e);
109
+ return m.getTime() >= _.getTime() ? s + 1 : m.getTime() >= C.getTime() ? s : s - 1;
110
+ }
111
+ function ct(n, e) {
112
+ var t, r, a, i, o, u, c, l;
113
+ S(1, arguments);
114
+ var m = le(), s = I((t = (r = (a = (i = e?.firstWeekContainsDate) !== null && i !== void 0 ? i : e == null || (o = e.locale) === null || o === void 0 || (u = o.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && a !== void 0 ? a : m.firstWeekContainsDate) !== null && r !== void 0 ? r : (c = m.locale) === null || c === void 0 || (l = c.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && t !== void 0 ? t : 1), p = Ee(n, e), d = /* @__PURE__ */ new Date(0);
115
+ d.setUTCFullYear(p, 0, s), d.setUTCHours(0, 0, 0, 0);
116
+ var v = se(d, e);
117
+ return v;
118
+ }
119
+ var dt = 6048e5;
120
+ function ft(n, e) {
121
+ S(1, arguments);
122
+ var t = N(n), r = se(t, e).getTime() - ct(t, e).getTime();
123
+ return Math.round(r / dt) + 1;
124
+ }
125
+ function y(n, e) {
126
+ for (var t = n < 0 ? "-" : "", r = Math.abs(n).toString(); r.length < e; )
127
+ r = "0" + r;
128
+ return t + r;
129
+ }
130
+ var R = {
131
+ // Year
132
+ y: function(e, t) {
133
+ var r = e.getUTCFullYear(), a = r > 0 ? r : 1 - r;
134
+ return y(t === "yy" ? a % 100 : a, t.length);
135
+ },
136
+ // Month
137
+ M: function(e, t) {
138
+ var r = e.getUTCMonth();
139
+ return t === "M" ? String(r + 1) : y(r + 1, 2);
140
+ },
141
+ // Day of the month
142
+ d: function(e, t) {
143
+ return y(e.getUTCDate(), t.length);
144
+ },
145
+ // AM or PM
146
+ a: function(e, t) {
147
+ var r = e.getUTCHours() / 12 >= 1 ? "pm" : "am";
148
+ switch (t) {
149
+ case "a":
150
+ case "aa":
151
+ return r.toUpperCase();
152
+ case "aaa":
153
+ return r;
154
+ case "aaaaa":
155
+ return r[0];
156
+ case "aaaa":
157
+ default:
158
+ return r === "am" ? "a.m." : "p.m.";
159
+ }
160
+ },
161
+ // Hour [1-12]
162
+ h: function(e, t) {
163
+ return y(e.getUTCHours() % 12 || 12, t.length);
164
+ },
165
+ // Hour [0-23]
166
+ H: function(e, t) {
167
+ return y(e.getUTCHours(), t.length);
168
+ },
169
+ // Minute
170
+ m: function(e, t) {
171
+ return y(e.getUTCMinutes(), t.length);
172
+ },
173
+ // Second
174
+ s: function(e, t) {
175
+ return y(e.getUTCSeconds(), t.length);
176
+ },
177
+ // Fraction of second
178
+ S: function(e, t) {
179
+ var r = t.length, a = e.getUTCMilliseconds(), i = Math.floor(a * Math.pow(10, r - 3));
180
+ return y(i, t.length);
181
+ }
182
+ }, V = {
183
+ midnight: "midnight",
184
+ noon: "noon",
185
+ morning: "morning",
186
+ afternoon: "afternoon",
187
+ evening: "evening",
188
+ night: "night"
189
+ }, mt = {
190
+ // Era
191
+ G: function(e, t, r) {
192
+ var a = e.getUTCFullYear() > 0 ? 1 : 0;
193
+ switch (t) {
194
+ case "G":
195
+ case "GG":
196
+ case "GGG":
197
+ return r.era(a, {
198
+ width: "abbreviated"
199
+ });
200
+ case "GGGGG":
201
+ return r.era(a, {
202
+ width: "narrow"
203
+ });
204
+ case "GGGG":
205
+ default:
206
+ return r.era(a, {
207
+ width: "wide"
208
+ });
209
+ }
210
+ },
211
+ // Year
212
+ y: function(e, t, r) {
213
+ if (t === "yo") {
214
+ var a = e.getUTCFullYear(), i = a > 0 ? a : 1 - a;
215
+ return r.ordinalNumber(i, {
216
+ unit: "year"
217
+ });
218
+ }
219
+ return R.y(e, t);
220
+ },
221
+ // Local week-numbering year
222
+ Y: function(e, t, r, a) {
223
+ var i = Ee(e, a), o = i > 0 ? i : 1 - i;
224
+ if (t === "YY") {
225
+ var u = o % 100;
226
+ return y(u, 2);
227
+ }
228
+ return t === "Yo" ? r.ordinalNumber(o, {
229
+ unit: "year"
230
+ }) : y(o, t.length);
231
+ },
232
+ // ISO week-numbering year
233
+ R: function(e, t) {
234
+ var r = Le(e);
235
+ return y(r, t.length);
236
+ },
237
+ // Extended year. This is a single number designating the year of this calendar system.
238
+ // The main difference between `y` and `u` localizers are B.C. years:
239
+ // | Year | `y` | `u` |
240
+ // |------|-----|-----|
241
+ // | AC 1 | 1 | 1 |
242
+ // | BC 1 | 1 | 0 |
243
+ // | BC 2 | 2 | -1 |
244
+ // Also `yy` always returns the last two digits of a year,
245
+ // while `uu` pads single digit years to 2 characters and returns other years unchanged.
246
+ u: function(e, t) {
247
+ var r = e.getUTCFullYear();
248
+ return y(r, t.length);
249
+ },
250
+ // Quarter
251
+ Q: function(e, t, r) {
252
+ var a = Math.ceil((e.getUTCMonth() + 1) / 3);
253
+ switch (t) {
254
+ case "Q":
255
+ return String(a);
256
+ case "QQ":
257
+ return y(a, 2);
258
+ case "Qo":
259
+ return r.ordinalNumber(a, {
260
+ unit: "quarter"
261
+ });
262
+ case "QQQ":
263
+ return r.quarter(a, {
264
+ width: "abbreviated",
265
+ context: "formatting"
266
+ });
267
+ case "QQQQQ":
268
+ return r.quarter(a, {
269
+ width: "narrow",
270
+ context: "formatting"
271
+ });
272
+ case "QQQQ":
273
+ default:
274
+ return r.quarter(a, {
275
+ width: "wide",
276
+ context: "formatting"
277
+ });
278
+ }
279
+ },
280
+ // Stand-alone quarter
281
+ q: function(e, t, r) {
282
+ var a = Math.ceil((e.getUTCMonth() + 1) / 3);
283
+ switch (t) {
284
+ case "q":
285
+ return String(a);
286
+ case "qq":
287
+ return y(a, 2);
288
+ case "qo":
289
+ return r.ordinalNumber(a, {
290
+ unit: "quarter"
291
+ });
292
+ case "qqq":
293
+ return r.quarter(a, {
294
+ width: "abbreviated",
295
+ context: "standalone"
296
+ });
297
+ case "qqqqq":
298
+ return r.quarter(a, {
299
+ width: "narrow",
300
+ context: "standalone"
301
+ });
302
+ case "qqqq":
303
+ default:
304
+ return r.quarter(a, {
305
+ width: "wide",
306
+ context: "standalone"
307
+ });
308
+ }
309
+ },
310
+ // Month
311
+ M: function(e, t, r) {
312
+ var a = e.getUTCMonth();
313
+ switch (t) {
314
+ case "M":
315
+ case "MM":
316
+ return R.M(e, t);
317
+ case "Mo":
318
+ return r.ordinalNumber(a + 1, {
319
+ unit: "month"
320
+ });
321
+ case "MMM":
322
+ return r.month(a, {
323
+ width: "abbreviated",
324
+ context: "formatting"
325
+ });
326
+ case "MMMMM":
327
+ return r.month(a, {
328
+ width: "narrow",
329
+ context: "formatting"
330
+ });
331
+ case "MMMM":
332
+ default:
333
+ return r.month(a, {
334
+ width: "wide",
335
+ context: "formatting"
336
+ });
337
+ }
338
+ },
339
+ // Stand-alone month
340
+ L: function(e, t, r) {
341
+ var a = e.getUTCMonth();
342
+ switch (t) {
343
+ case "L":
344
+ return String(a + 1);
345
+ case "LL":
346
+ return y(a + 1, 2);
347
+ case "Lo":
348
+ return r.ordinalNumber(a + 1, {
349
+ unit: "month"
350
+ });
351
+ case "LLL":
352
+ return r.month(a, {
353
+ width: "abbreviated",
354
+ context: "standalone"
355
+ });
356
+ case "LLLLL":
357
+ return r.month(a, {
358
+ width: "narrow",
359
+ context: "standalone"
360
+ });
361
+ case "LLLL":
362
+ default:
363
+ return r.month(a, {
364
+ width: "wide",
365
+ context: "standalone"
366
+ });
367
+ }
368
+ },
369
+ // Local week of year
370
+ w: function(e, t, r, a) {
371
+ var i = ft(e, a);
372
+ return t === "wo" ? r.ordinalNumber(i, {
373
+ unit: "week"
374
+ }) : y(i, t.length);
375
+ },
376
+ // ISO week of year
377
+ I: function(e, t, r) {
378
+ var a = ut(e);
379
+ return t === "Io" ? r.ordinalNumber(a, {
380
+ unit: "week"
381
+ }) : y(a, t.length);
382
+ },
383
+ // Day of the month
384
+ d: function(e, t, r) {
385
+ return t === "do" ? r.ordinalNumber(e.getUTCDate(), {
386
+ unit: "date"
387
+ }) : R.d(e, t);
388
+ },
389
+ // Day of year
390
+ D: function(e, t, r) {
391
+ var a = ot(e);
392
+ return t === "Do" ? r.ordinalNumber(a, {
393
+ unit: "dayOfYear"
394
+ }) : y(a, t.length);
395
+ },
396
+ // Day of week
397
+ E: function(e, t, r) {
398
+ var a = e.getUTCDay();
399
+ switch (t) {
400
+ case "E":
401
+ case "EE":
402
+ case "EEE":
403
+ return r.day(a, {
404
+ width: "abbreviated",
405
+ context: "formatting"
406
+ });
407
+ case "EEEEE":
408
+ return r.day(a, {
409
+ width: "narrow",
410
+ context: "formatting"
411
+ });
412
+ case "EEEEEE":
413
+ return r.day(a, {
414
+ width: "short",
415
+ context: "formatting"
416
+ });
417
+ case "EEEE":
418
+ default:
419
+ return r.day(a, {
420
+ width: "wide",
421
+ context: "formatting"
422
+ });
423
+ }
424
+ },
425
+ // Local day of week
426
+ e: function(e, t, r, a) {
427
+ var i = e.getUTCDay(), o = (i - a.weekStartsOn + 8) % 7 || 7;
428
+ switch (t) {
429
+ case "e":
430
+ return String(o);
431
+ case "ee":
432
+ return y(o, 2);
433
+ case "eo":
434
+ return r.ordinalNumber(o, {
435
+ unit: "day"
436
+ });
437
+ case "eee":
438
+ return r.day(i, {
439
+ width: "abbreviated",
440
+ context: "formatting"
441
+ });
442
+ case "eeeee":
443
+ return r.day(i, {
444
+ width: "narrow",
445
+ context: "formatting"
446
+ });
447
+ case "eeeeee":
448
+ return r.day(i, {
449
+ width: "short",
450
+ context: "formatting"
451
+ });
452
+ case "eeee":
453
+ default:
454
+ return r.day(i, {
455
+ width: "wide",
456
+ context: "formatting"
457
+ });
458
+ }
459
+ },
460
+ // Stand-alone local day of week
461
+ c: function(e, t, r, a) {
462
+ var i = e.getUTCDay(), o = (i - a.weekStartsOn + 8) % 7 || 7;
463
+ switch (t) {
464
+ case "c":
465
+ return String(o);
466
+ case "cc":
467
+ return y(o, t.length);
468
+ case "co":
469
+ return r.ordinalNumber(o, {
470
+ unit: "day"
471
+ });
472
+ case "ccc":
473
+ return r.day(i, {
474
+ width: "abbreviated",
475
+ context: "standalone"
476
+ });
477
+ case "ccccc":
478
+ return r.day(i, {
479
+ width: "narrow",
480
+ context: "standalone"
481
+ });
482
+ case "cccccc":
483
+ return r.day(i, {
484
+ width: "short",
485
+ context: "standalone"
486
+ });
487
+ case "cccc":
488
+ default:
489
+ return r.day(i, {
490
+ width: "wide",
491
+ context: "standalone"
492
+ });
493
+ }
494
+ },
495
+ // ISO day of week
496
+ i: function(e, t, r) {
497
+ var a = e.getUTCDay(), i = a === 0 ? 7 : a;
498
+ switch (t) {
499
+ case "i":
500
+ return String(i);
501
+ case "ii":
502
+ return y(i, t.length);
503
+ case "io":
504
+ return r.ordinalNumber(i, {
505
+ unit: "day"
506
+ });
507
+ case "iii":
508
+ return r.day(a, {
509
+ width: "abbreviated",
510
+ context: "formatting"
511
+ });
512
+ case "iiiii":
513
+ return r.day(a, {
514
+ width: "narrow",
515
+ context: "formatting"
516
+ });
517
+ case "iiiiii":
518
+ return r.day(a, {
519
+ width: "short",
520
+ context: "formatting"
521
+ });
522
+ case "iiii":
523
+ default:
524
+ return r.day(a, {
525
+ width: "wide",
526
+ context: "formatting"
527
+ });
528
+ }
529
+ },
530
+ // AM or PM
531
+ a: function(e, t, r) {
532
+ var a = e.getUTCHours(), i = a / 12 >= 1 ? "pm" : "am";
533
+ switch (t) {
534
+ case "a":
535
+ case "aa":
536
+ return r.dayPeriod(i, {
537
+ width: "abbreviated",
538
+ context: "formatting"
539
+ });
540
+ case "aaa":
541
+ return r.dayPeriod(i, {
542
+ width: "abbreviated",
543
+ context: "formatting"
544
+ }).toLowerCase();
545
+ case "aaaaa":
546
+ return r.dayPeriod(i, {
547
+ width: "narrow",
548
+ context: "formatting"
549
+ });
550
+ case "aaaa":
551
+ default:
552
+ return r.dayPeriod(i, {
553
+ width: "wide",
554
+ context: "formatting"
555
+ });
556
+ }
557
+ },
558
+ // AM, PM, midnight, noon
559
+ b: function(e, t, r) {
560
+ var a = e.getUTCHours(), i;
561
+ switch (a === 12 ? i = V.noon : a === 0 ? i = V.midnight : i = a / 12 >= 1 ? "pm" : "am", t) {
562
+ case "b":
563
+ case "bb":
564
+ return r.dayPeriod(i, {
565
+ width: "abbreviated",
566
+ context: "formatting"
567
+ });
568
+ case "bbb":
569
+ return r.dayPeriod(i, {
570
+ width: "abbreviated",
571
+ context: "formatting"
572
+ }).toLowerCase();
573
+ case "bbbbb":
574
+ return r.dayPeriod(i, {
575
+ width: "narrow",
576
+ context: "formatting"
577
+ });
578
+ case "bbbb":
579
+ default:
580
+ return r.dayPeriod(i, {
581
+ width: "wide",
582
+ context: "formatting"
583
+ });
584
+ }
585
+ },
586
+ // in the morning, in the afternoon, in the evening, at night
587
+ B: function(e, t, r) {
588
+ var a = e.getUTCHours(), i;
589
+ switch (a >= 17 ? i = V.evening : a >= 12 ? i = V.afternoon : a >= 4 ? i = V.morning : i = V.night, t) {
590
+ case "B":
591
+ case "BB":
592
+ case "BBB":
593
+ return r.dayPeriod(i, {
594
+ width: "abbreviated",
595
+ context: "formatting"
596
+ });
597
+ case "BBBBB":
598
+ return r.dayPeriod(i, {
599
+ width: "narrow",
600
+ context: "formatting"
601
+ });
602
+ case "BBBB":
603
+ default:
604
+ return r.dayPeriod(i, {
605
+ width: "wide",
606
+ context: "formatting"
607
+ });
608
+ }
609
+ },
610
+ // Hour [1-12]
611
+ h: function(e, t, r) {
612
+ if (t === "ho") {
613
+ var a = e.getUTCHours() % 12;
614
+ return a === 0 && (a = 12), r.ordinalNumber(a, {
615
+ unit: "hour"
616
+ });
617
+ }
618
+ return R.h(e, t);
619
+ },
620
+ // Hour [0-23]
621
+ H: function(e, t, r) {
622
+ return t === "Ho" ? r.ordinalNumber(e.getUTCHours(), {
623
+ unit: "hour"
624
+ }) : R.H(e, t);
625
+ },
626
+ // Hour [0-11]
627
+ K: function(e, t, r) {
628
+ var a = e.getUTCHours() % 12;
629
+ return t === "Ko" ? r.ordinalNumber(a, {
630
+ unit: "hour"
631
+ }) : y(a, t.length);
632
+ },
633
+ // Hour [1-24]
634
+ k: function(e, t, r) {
635
+ var a = e.getUTCHours();
636
+ return a === 0 && (a = 24), t === "ko" ? r.ordinalNumber(a, {
637
+ unit: "hour"
638
+ }) : y(a, t.length);
639
+ },
640
+ // Minute
641
+ m: function(e, t, r) {
642
+ return t === "mo" ? r.ordinalNumber(e.getUTCMinutes(), {
643
+ unit: "minute"
644
+ }) : R.m(e, t);
645
+ },
646
+ // Second
647
+ s: function(e, t, r) {
648
+ return t === "so" ? r.ordinalNumber(e.getUTCSeconds(), {
649
+ unit: "second"
650
+ }) : R.s(e, t);
651
+ },
652
+ // Fraction of second
653
+ S: function(e, t) {
654
+ return R.S(e, t);
655
+ },
656
+ // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
657
+ X: function(e, t, r, a) {
658
+ var i = a._originalDate || e, o = i.getTimezoneOffset();
659
+ if (o === 0)
660
+ return "Z";
661
+ switch (t) {
662
+ case "X":
663
+ return ye(o);
664
+ case "XXXX":
665
+ case "XX":
666
+ return j(o);
667
+ case "XXXXX":
668
+ case "XXX":
669
+ default:
670
+ return j(o, ":");
671
+ }
672
+ },
673
+ // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
674
+ x: function(e, t, r, a) {
675
+ var i = a._originalDate || e, o = i.getTimezoneOffset();
676
+ switch (t) {
677
+ case "x":
678
+ return ye(o);
679
+ case "xxxx":
680
+ case "xx":
681
+ return j(o);
682
+ case "xxxxx":
683
+ case "xxx":
684
+ default:
685
+ return j(o, ":");
686
+ }
687
+ },
688
+ // Timezone (GMT)
689
+ O: function(e, t, r, a) {
690
+ var i = a._originalDate || e, o = i.getTimezoneOffset();
691
+ switch (t) {
692
+ case "O":
693
+ case "OO":
694
+ case "OOO":
695
+ return "GMT" + be(o, ":");
696
+ case "OOOO":
697
+ default:
698
+ return "GMT" + j(o, ":");
699
+ }
700
+ },
701
+ // Timezone (specific non-location)
702
+ z: function(e, t, r, a) {
703
+ var i = a._originalDate || e, o = i.getTimezoneOffset();
704
+ switch (t) {
705
+ case "z":
706
+ case "zz":
707
+ case "zzz":
708
+ return "GMT" + be(o, ":");
709
+ case "zzzz":
710
+ default:
711
+ return "GMT" + j(o, ":");
712
+ }
713
+ },
714
+ // Seconds timestamp
715
+ t: function(e, t, r, a) {
716
+ var i = a._originalDate || e, o = Math.floor(i.getTime() / 1e3);
717
+ return y(o, t.length);
718
+ },
719
+ // Milliseconds timestamp
720
+ T: function(e, t, r, a) {
721
+ var i = a._originalDate || e, o = i.getTime();
722
+ return y(o, t.length);
723
+ }
724
+ };
725
+ function be(n, e) {
726
+ var t = n > 0 ? "-" : "+", r = Math.abs(n), a = Math.floor(r / 60), i = r % 60;
727
+ if (i === 0)
728
+ return t + String(a);
729
+ var o = e;
730
+ return t + String(a) + o + y(i, 2);
731
+ }
732
+ function ye(n, e) {
733
+ if (n % 60 === 0) {
734
+ var t = n > 0 ? "-" : "+";
735
+ return t + y(Math.abs(n) / 60, 2);
736
+ }
737
+ return j(n, e);
738
+ }
739
+ function j(n, e) {
740
+ var t = e || "", r = n > 0 ? "-" : "+", a = Math.abs(n), i = y(Math.floor(a / 60), 2), o = y(a % 60, 2);
741
+ return r + i + t + o;
742
+ }
743
+ var _e = function(e, t) {
744
+ switch (e) {
745
+ case "P":
746
+ return t.date({
747
+ width: "short"
748
+ });
749
+ case "PP":
750
+ return t.date({
751
+ width: "medium"
752
+ });
753
+ case "PPP":
754
+ return t.date({
755
+ width: "long"
756
+ });
757
+ case "PPPP":
758
+ default:
759
+ return t.date({
760
+ width: "full"
761
+ });
762
+ }
763
+ }, ze = function(e, t) {
764
+ switch (e) {
765
+ case "p":
766
+ return t.time({
767
+ width: "short"
768
+ });
769
+ case "pp":
770
+ return t.time({
771
+ width: "medium"
772
+ });
773
+ case "ppp":
774
+ return t.time({
775
+ width: "long"
776
+ });
777
+ case "pppp":
778
+ default:
779
+ return t.time({
780
+ width: "full"
781
+ });
782
+ }
783
+ }, ht = function(e, t) {
784
+ var r = e.match(/(P+)(p+)?/) || [], a = r[1], i = r[2];
785
+ if (!i)
786
+ return _e(e, t);
787
+ var o;
788
+ switch (a) {
789
+ case "P":
790
+ o = t.dateTime({
791
+ width: "short"
792
+ });
793
+ break;
794
+ case "PP":
795
+ o = t.dateTime({
796
+ width: "medium"
797
+ });
798
+ break;
799
+ case "PPP":
800
+ o = t.dateTime({
801
+ width: "long"
802
+ });
803
+ break;
804
+ case "PPPP":
805
+ default:
806
+ o = t.dateTime({
807
+ width: "full"
808
+ });
809
+ break;
810
+ }
811
+ return o.replace("{{date}}", _e(a, t)).replace("{{time}}", ze(i, t));
812
+ }, gt = {
813
+ p: ze,
814
+ P: ht
815
+ }, vt = ["D", "DD"], pt = ["YY", "YYYY"];
816
+ function wt(n) {
817
+ return vt.indexOf(n) !== -1;
818
+ }
819
+ function bt(n) {
820
+ return pt.indexOf(n) !== -1;
821
+ }
822
+ function xe(n, e, t) {
823
+ if (n === "YYYY")
824
+ 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"));
825
+ if (n === "YY")
826
+ 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"));
827
+ if (n === "D")
828
+ 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"));
829
+ if (n === "DD")
830
+ 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"));
831
+ }
832
+ var yt = {
833
+ lessThanXSeconds: {
834
+ one: "less than a second",
835
+ other: "less than {{count}} seconds"
836
+ },
837
+ xSeconds: {
838
+ one: "1 second",
839
+ other: "{{count}} seconds"
840
+ },
841
+ halfAMinute: "half a minute",
842
+ lessThanXMinutes: {
843
+ one: "less than a minute",
844
+ other: "less than {{count}} minutes"
845
+ },
846
+ xMinutes: {
847
+ one: "1 minute",
848
+ other: "{{count}} minutes"
849
+ },
850
+ aboutXHours: {
851
+ one: "about 1 hour",
852
+ other: "about {{count}} hours"
853
+ },
854
+ xHours: {
855
+ one: "1 hour",
856
+ other: "{{count}} hours"
857
+ },
858
+ xDays: {
859
+ one: "1 day",
860
+ other: "{{count}} days"
861
+ },
862
+ aboutXWeeks: {
863
+ one: "about 1 week",
864
+ other: "about {{count}} weeks"
865
+ },
866
+ xWeeks: {
867
+ one: "1 week",
868
+ other: "{{count}} weeks"
869
+ },
870
+ aboutXMonths: {
871
+ one: "about 1 month",
872
+ other: "about {{count}} months"
873
+ },
874
+ xMonths: {
875
+ one: "1 month",
876
+ other: "{{count}} months"
877
+ },
878
+ aboutXYears: {
879
+ one: "about 1 year",
880
+ other: "about {{count}} years"
881
+ },
882
+ xYears: {
883
+ one: "1 year",
884
+ other: "{{count}} years"
885
+ },
886
+ overXYears: {
887
+ one: "over 1 year",
888
+ other: "over {{count}} years"
889
+ },
890
+ almostXYears: {
891
+ one: "almost 1 year",
892
+ other: "almost {{count}} years"
893
+ }
894
+ }, _t = function(e, t, r) {
895
+ var a, i = yt[e];
896
+ 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;
897
+ };
898
+ function de(n) {
899
+ return function() {
900
+ 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];
901
+ return r;
902
+ };
903
+ }
904
+ var xt = {
905
+ full: "EEEE, MMMM do, y",
906
+ long: "MMMM do, y",
907
+ medium: "MMM d, y",
908
+ short: "MM/dd/yyyy"
909
+ }, Ct = {
910
+ full: "h:mm:ss a zzzz",
911
+ long: "h:mm:ss a z",
912
+ medium: "h:mm:ss a",
913
+ short: "h:mm a"
914
+ }, kt = {
915
+ full: "{{date}} 'at' {{time}}",
916
+ long: "{{date}} 'at' {{time}}",
917
+ medium: "{{date}}, {{time}}",
918
+ short: "{{date}}, {{time}}"
919
+ }, Tt = {
920
+ date: de({
921
+ formats: xt,
922
+ defaultWidth: "full"
923
+ }),
924
+ time: de({
925
+ formats: Ct,
926
+ defaultWidth: "full"
927
+ }),
928
+ dateTime: de({
929
+ formats: kt,
930
+ defaultWidth: "full"
931
+ })
932
+ }, Mt = {
933
+ lastWeek: "'last' eeee 'at' p",
934
+ yesterday: "'yesterday at' p",
935
+ today: "'today at' p",
936
+ tomorrow: "'tomorrow at' p",
937
+ nextWeek: "eeee 'at' p",
938
+ other: "P"
939
+ }, Ot = function(e, t, r, a) {
940
+ return Mt[e];
941
+ };
942
+ function K(n) {
943
+ return function(e, t) {
944
+ var r = t != null && t.context ? String(t.context) : "standalone", a;
945
+ if (r === "formatting" && n.formattingValues) {
946
+ var i = n.defaultFormattingWidth || n.defaultWidth, o = t != null && t.width ? String(t.width) : i;
947
+ a = n.formattingValues[o] || n.formattingValues[i];
948
+ } else {
949
+ var u = n.defaultWidth, c = t != null && t.width ? String(t.width) : n.defaultWidth;
950
+ a = n.values[c] || n.values[u];
951
+ }
952
+ var l = n.argumentCallback ? n.argumentCallback(e) : e;
953
+ return a[l];
954
+ };
955
+ }
956
+ var Pt = {
957
+ narrow: ["B", "A"],
958
+ abbreviated: ["BC", "AD"],
959
+ wide: ["Before Christ", "Anno Domini"]
960
+ }, Dt = {
961
+ narrow: ["1", "2", "3", "4"],
962
+ abbreviated: ["Q1", "Q2", "Q3", "Q4"],
963
+ wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
964
+ }, St = {
965
+ narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
966
+ abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
967
+ wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
968
+ }, Wt = {
969
+ narrow: ["S", "M", "T", "W", "T", "F", "S"],
970
+ short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
971
+ abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
972
+ wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
973
+ }, Ut = {
974
+ narrow: {
975
+ am: "a",
976
+ pm: "p",
977
+ midnight: "mi",
978
+ noon: "n",
979
+ morning: "morning",
980
+ afternoon: "afternoon",
981
+ evening: "evening",
982
+ night: "night"
983
+ },
984
+ abbreviated: {
985
+ am: "AM",
986
+ pm: "PM",
987
+ midnight: "midnight",
988
+ noon: "noon",
989
+ morning: "morning",
990
+ afternoon: "afternoon",
991
+ evening: "evening",
992
+ night: "night"
993
+ },
994
+ wide: {
995
+ am: "a.m.",
996
+ pm: "p.m.",
997
+ midnight: "midnight",
998
+ noon: "noon",
999
+ morning: "morning",
1000
+ afternoon: "afternoon",
1001
+ evening: "evening",
1002
+ night: "night"
1003
+ }
1004
+ }, Lt = {
1005
+ narrow: {
1006
+ am: "a",
1007
+ pm: "p",
1008
+ midnight: "mi",
1009
+ noon: "n",
1010
+ morning: "in the morning",
1011
+ afternoon: "in the afternoon",
1012
+ evening: "in the evening",
1013
+ night: "at night"
1014
+ },
1015
+ abbreviated: {
1016
+ am: "AM",
1017
+ pm: "PM",
1018
+ midnight: "midnight",
1019
+ noon: "noon",
1020
+ morning: "in the morning",
1021
+ afternoon: "in the afternoon",
1022
+ evening: "in the evening",
1023
+ night: "at night"
1024
+ },
1025
+ wide: {
1026
+ am: "a.m.",
1027
+ pm: "p.m.",
1028
+ midnight: "midnight",
1029
+ noon: "noon",
1030
+ morning: "in the morning",
1031
+ afternoon: "in the afternoon",
1032
+ evening: "in the evening",
1033
+ night: "at night"
1034
+ }
1035
+ }, Et = function(e, t) {
1036
+ var r = Number(e), a = r % 100;
1037
+ if (a > 20 || a < 10)
1038
+ switch (a % 10) {
1039
+ case 1:
1040
+ return r + "st";
1041
+ case 2:
1042
+ return r + "nd";
1043
+ case 3:
1044
+ return r + "rd";
1045
+ }
1046
+ return r + "th";
1047
+ }, zt = {
1048
+ ordinalNumber: Et,
1049
+ era: K({
1050
+ values: Pt,
1051
+ defaultWidth: "wide"
1052
+ }),
1053
+ quarter: K({
1054
+ values: Dt,
1055
+ defaultWidth: "wide",
1056
+ argumentCallback: function(e) {
1057
+ return e - 1;
1058
+ }
1059
+ }),
1060
+ month: K({
1061
+ values: St,
1062
+ defaultWidth: "wide"
1063
+ }),
1064
+ day: K({
1065
+ values: Wt,
1066
+ defaultWidth: "wide"
1067
+ }),
1068
+ dayPeriod: K({
1069
+ values: Ut,
1070
+ defaultWidth: "wide",
1071
+ formattingValues: Lt,
1072
+ defaultFormattingWidth: "wide"
1073
+ })
1074
+ };
1075
+ function $(n) {
1076
+ return function(e) {
1077
+ 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);
1078
+ if (!i)
1079
+ return null;
1080
+ var o = i[0], u = r && n.parsePatterns[r] || n.parsePatterns[n.defaultParseWidth], c = Array.isArray(u) ? Ft(u, function(s) {
1081
+ return s.test(o);
1082
+ }) : Yt(u, function(s) {
1083
+ return s.test(o);
1084
+ }), l;
1085
+ l = n.valueCallback ? n.valueCallback(c) : c, l = t.valueCallback ? t.valueCallback(l) : l;
1086
+ var m = e.slice(o.length);
1087
+ return {
1088
+ value: l,
1089
+ rest: m
1090
+ };
1091
+ };
1092
+ }
1093
+ function Yt(n, e) {
1094
+ for (var t in n)
1095
+ if (n.hasOwnProperty(t) && e(n[t]))
1096
+ return t;
1097
+ }
1098
+ function Ft(n, e) {
1099
+ for (var t = 0; t < n.length; t++)
1100
+ if (e(n[t]))
1101
+ return t;
1102
+ }
1103
+ function Nt(n) {
1104
+ return function(e) {
1105
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = e.match(n.matchPattern);
1106
+ if (!r)
1107
+ return null;
1108
+ var a = r[0], i = e.match(n.parsePattern);
1109
+ if (!i)
1110
+ return null;
1111
+ var o = n.valueCallback ? n.valueCallback(i[0]) : i[0];
1112
+ o = t.valueCallback ? t.valueCallback(o) : o;
1113
+ var u = e.slice(a.length);
1114
+ return {
1115
+ value: o,
1116
+ rest: u
1117
+ };
1118
+ };
1119
+ }
1120
+ var Ht = /^(\d+)(th|st|nd|rd)?/i, qt = /\d+/i, Bt = {
1121
+ narrow: /^(b|a)/i,
1122
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
1123
+ wide: /^(before christ|before common era|anno domini|common era)/i
1124
+ }, Rt = {
1125
+ any: [/^b/i, /^(a|c)/i]
1126
+ }, jt = {
1127
+ narrow: /^[1234]/i,
1128
+ abbreviated: /^q[1234]/i,
1129
+ wide: /^[1234](th|st|nd|rd)? quarter/i
1130
+ }, It = {
1131
+ any: [/1/i, /2/i, /3/i, /4/i]
1132
+ }, Gt = {
1133
+ narrow: /^[jfmasond]/i,
1134
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
1135
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
1136
+ }, Qt = {
1137
+ 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],
1138
+ 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]
1139
+ }, Xt = {
1140
+ narrow: /^[smtwf]/i,
1141
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
1142
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
1143
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
1144
+ }, Vt = {
1145
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
1146
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
1147
+ }, At = {
1148
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
1149
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
1150
+ }, Zt = {
1151
+ any: {
1152
+ am: /^a/i,
1153
+ pm: /^p/i,
1154
+ midnight: /^mi/i,
1155
+ noon: /^no/i,
1156
+ morning: /morning/i,
1157
+ afternoon: /afternoon/i,
1158
+ evening: /evening/i,
1159
+ night: /night/i
1160
+ }
1161
+ }, Jt = {
1162
+ ordinalNumber: Nt({
1163
+ matchPattern: Ht,
1164
+ parsePattern: qt,
1165
+ valueCallback: function(e) {
1166
+ return parseInt(e, 10);
1167
+ }
1168
+ }),
1169
+ era: $({
1170
+ matchPatterns: Bt,
1171
+ defaultMatchWidth: "wide",
1172
+ parsePatterns: Rt,
1173
+ defaultParseWidth: "any"
1174
+ }),
1175
+ quarter: $({
1176
+ matchPatterns: jt,
1177
+ defaultMatchWidth: "wide",
1178
+ parsePatterns: It,
1179
+ defaultParseWidth: "any",
1180
+ valueCallback: function(e) {
1181
+ return e + 1;
1182
+ }
1183
+ }),
1184
+ month: $({
1185
+ matchPatterns: Gt,
1186
+ defaultMatchWidth: "wide",
1187
+ parsePatterns: Qt,
1188
+ defaultParseWidth: "any"
1189
+ }),
1190
+ day: $({
1191
+ matchPatterns: Xt,
1192
+ defaultMatchWidth: "wide",
1193
+ parsePatterns: Vt,
1194
+ defaultParseWidth: "any"
1195
+ }),
1196
+ dayPeriod: $({
1197
+ matchPatterns: At,
1198
+ defaultMatchWidth: "any",
1199
+ parsePatterns: Zt,
1200
+ defaultParseWidth: "any"
1201
+ })
1202
+ }, Kt = {
1203
+ code: "en-US",
1204
+ formatDistance: _t,
1205
+ formatLong: Tt,
1206
+ formatRelative: Ot,
1207
+ localize: zt,
1208
+ match: Jt,
1209
+ options: {
1210
+ weekStartsOn: 0,
1211
+ firstWeekContainsDate: 1
1212
+ }
1213
+ }, $t = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, en = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, tn = /^'([^]*?)'?$/, nn = /''/g, rn = /[a-zA-Z]/;
1214
+ function an(n, e, t) {
1215
+ var r, a, i, o, u, c, l, m, s, p, d, v, _, T;
1216
+ S(2, arguments);
1217
+ var C = String(e), z = le(), P = (r = (a = void 0) !== null && a !== void 0 ? a : z.locale) !== null && r !== void 0 ? r : Kt, H = I((i = (o = (u = (c = void 0) !== null && c !== void 0 ? c : void 0) !== null && u !== void 0 ? u : z.firstWeekContainsDate) !== null && o !== void 0 ? o : (l = z.locale) === null || l === void 0 || (m = l.options) === null || m === void 0 ? void 0 : m.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
1218
+ if (!(H >= 1 && H <= 7))
1219
+ throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
1220
+ var Y = I((s = (p = (d = (v = void 0) !== null && v !== void 0 ? v : void 0) !== null && d !== void 0 ? d : z.weekStartsOn) !== null && p !== void 0 ? p : (_ = z.locale) === null || _ === void 0 || (T = _.options) === null || T === void 0 ? void 0 : T.weekStartsOn) !== null && s !== void 0 ? s : 0);
1221
+ if (!(Y >= 0 && Y <= 6))
1222
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
1223
+ if (!P.localize)
1224
+ throw new RangeError("locale must contain localize property");
1225
+ if (!P.formatLong)
1226
+ throw new RangeError("locale must contain formatLong property");
1227
+ var E = N(n);
1228
+ if (!rt(E))
1229
+ throw new RangeError("Invalid time value");
1230
+ var G = tt(E), O = at(E, G), Q = {
1231
+ firstWeekContainsDate: H,
1232
+ weekStartsOn: Y,
1233
+ locale: P,
1234
+ _originalDate: E
1235
+ }, q = C.match(en).map(function(x) {
1236
+ var b = x[0];
1237
+ if (b === "p" || b === "P") {
1238
+ var D = gt[b];
1239
+ return D(x, P.formatLong);
1240
+ }
1241
+ return x;
1242
+ }).join("").match($t).map(function(x) {
1243
+ if (x === "''")
1244
+ return "'";
1245
+ var b = x[0];
1246
+ if (b === "'")
1247
+ return on(x);
1248
+ var D = mt[b];
1249
+ if (D)
1250
+ return bt(x) && xe(x, e, String(n)), wt(x) && xe(x, e, String(n)), D(O, x, P.localize, Q);
1251
+ if (b.match(rn))
1252
+ throw new RangeError("Format string contains an unescaped latin alphabet character `" + b + "`");
1253
+ return x;
1254
+ }).join("");
1255
+ return q;
1256
+ }
1257
+ function on(n) {
1258
+ var e = n.match(tn);
1259
+ return e ? e[1].replace(nn, "'") : n;
1260
+ }
1261
+ var ne = /* @__PURE__ */ ((n) => (n.lotteries = "lotteries", n.outcome = "outcome", n.draw = "draw", n))(ne || {}), A = /* @__PURE__ */ ((n) => (n.en = "en", n.default = "*", n))(A || {});
1262
+ const sn = async (n) => {
1263
+ const { path: e, params: t = {}, options: r = {} } = n, a = new URL(e);
1264
+ return Object.keys(t).map((i) => {
1265
+ a.searchParams.append(i, t[i]);
1266
+ }), await ln(a, r);
1267
+ }, ln = async (n, e = {}) => {
1268
+ let t;
1269
+ try {
1270
+ t = await fetch(n, e), t = await t.text(), t = JSON.parse(t);
1271
+ } catch (r) {
1272
+ throw new Error(r.message);
1273
+ }
1274
+ return t;
1275
+ }, Ce = async (n, e, t) => {
1276
+ const { session: r } = t, a = {
1277
+ headers: {
1278
+ "Content-Type": "application/json",
1279
+ accept: "text/plain",
1280
+ ...r ? { "x-SessionId": r } : {}
1281
+ }
1282
+ }, o = {
1283
+ [ne.lotteries]: () => ({
1284
+ path: "/wof/lotteries",
1285
+ params: {
1286
+ filter: "Types[]=mysteryChest"
1287
+ },
1288
+ options: a
1289
+ }),
1290
+ [ne.outcome]: () => {
1291
+ const { id: u } = t;
1292
+ return {
1293
+ path: `/wof/outcome/${u}`,
1294
+ params: {
1295
+ filter: "Types[]=mysteryChest"
1296
+ },
1297
+ options: a
1298
+ };
1299
+ }
1300
+ }[n]();
1301
+ return o.path = e + "/v1" + o.path, await sn(o);
1302
+ }, ke = {
1303
+ lotteries: async (n, e) => (await Ce(ne.lotteries, n, { session: e }))?.items || [],
1304
+ outcome: async (n, e, t) => await Ce(ne.outcome, n, { session: e, id: t })
1305
+ }, un = (n) => n?.current?.remainingTimes > 0 && n?.next;
1306
+ function cn(n, e) {
1307
+ Ze(n, e);
1308
+ }
1309
+ function dn(n) {
1310
+ Ae.set(n);
1311
+ }
1312
+ if (typeof window < "u") {
1313
+ let n = function(e) {
1314
+ return function(...t) {
1315
+ try {
1316
+ return e.apply(this, t);
1317
+ } catch (r) {
1318
+ if (r instanceof DOMException && r.message.includes("has already been used with this registry") || r.message.includes("Cannot define multiple custom elements with the same tag name"))
1319
+ return !1;
1320
+ throw r;
1321
+ }
1322
+ };
1323
+ };
1324
+ customElements.define = n(customElements.define), import("./GeneralAnimationLoading-DwUmPFHR.js").then(({ default: e }) => {
1325
+ !customElements.get("general-animation-loading") && customElements.define("general-animation-loading", e.element);
1326
+ });
1327
+ }
1328
+ function fn(n) {
1329
+ Ie(n, "svelte-1h0tjui", `.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}.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}`);
1330
+ }
1331
+ function Te(n, e, t) {
1332
+ const r = n.slice();
1333
+ return r[33] = e[t], r;
1334
+ }
1335
+ function Me(n, e, t) {
1336
+ const r = n.slice();
1337
+ return r[36] = e[t], r[38] = t, r;
1338
+ }
1339
+ function Oe(n, e, t) {
1340
+ const r = n.slice();
1341
+ return r[30] = e[t], r[32] = t, r;
1342
+ }
1343
+ function Pe(n) {
1344
+ let e, t, r, a, i, o, u;
1345
+ return {
1346
+ c() {
1347
+ e = w("div"), t = w("div"), r = w("button"), a = M(), i = w("span"), i.textContent = "Open Mystery Chest and find your reward!", g(r, "class", "icon-button close"), g(t, "class", "tooltip"), g(e, "class", "tooltip-backdrop");
1348
+ },
1349
+ m(c, l) {
1350
+ U(c, e, l), f(e, t), f(t, r), f(t, a), f(t, i), o || (u = F(
1351
+ r,
1352
+ "click",
1353
+ /*showHideToolip*/
1354
+ n[12]
1355
+ ), o = !0);
1356
+ },
1357
+ p: Z,
1358
+ d(c) {
1359
+ c && W(e), o = !1, u();
1360
+ }
1361
+ };
1362
+ }
1363
+ function mn(n) {
1364
+ let e, t, r, a, i, o, u, c;
1365
+ return {
1366
+ c() {
1367
+ e = w("div"), t = w("span"), t.textContent = `Mystery Chest is a particularly interesting game, will bring you a lot of surprises; When you obtained the
1368
+ Mystery Chest, means you got a key to open the Chest, and if you are lucky, you can get the surprise prize.`, r = M(), a = w("button"), a.innerHTML = '<span>Terms&amp;Conditions link</span> <span class="arrow-icon"></span>', i = M(), o = w("section"), o.innerHTML = '<span class="chests-rules__prize-title">Prize agenda</span> <ul class="chests-rules__list"><li class="chests-rules__list__item">Tournament ticket</li> <li class="chests-rules__list__item">Free Spins</li> <li class="chests-rules__list__item">Bonus Money</li> <li class="chests-rules__list__item">Loyalty Points&amp;Coins</li> <li class="chests-rules__list__item">LuckyWheel</li> <li class="chests-rules__list__item">Mystery Chest</li> <li class="chests-rules__list__item">Custom Rewards</li></ul>', g(t, "class", "chests-rules__description"), g(a, "class", "chests-rules__terms"), g(e, "class", "chests-rules");
1369
+ },
1370
+ m(l, m) {
1371
+ U(l, e, m), f(e, t), f(e, r), f(e, a), f(e, i), f(e, o), u || (c = F(
1372
+ a,
1373
+ "click",
1374
+ /*openTermsAndCondidionsLink*/
1375
+ n[16]
1376
+ ), u = !0);
1377
+ },
1378
+ p: Z,
1379
+ d(l) {
1380
+ l && W(e), u = !1, c();
1381
+ }
1382
+ };
1383
+ }
1384
+ function hn(n) {
1385
+ let e;
1386
+ function t(i, o) {
1387
+ return (
1388
+ /*mysteryChestsHistory*/
1389
+ i[10].length > 0 ? wn : pn
1390
+ );
1391
+ }
1392
+ let r = t(n), a = r(n);
1393
+ return {
1394
+ c() {
1395
+ a.c(), e = me();
1396
+ },
1397
+ m(i, o) {
1398
+ a.m(i, o), U(i, e, o);
1399
+ },
1400
+ p(i, o) {
1401
+ r === (r = t(i)) && a ? a.p(i, o) : (a.d(1), a = r(i), a && (a.c(), a.m(e.parentNode, e)));
1402
+ },
1403
+ d(i) {
1404
+ i && W(e), a.d(i);
1405
+ }
1406
+ };
1407
+ }
1408
+ function gn(n) {
1409
+ let e;
1410
+ function t(i, o) {
1411
+ return (
1412
+ /*mysteryChests*/
1413
+ i[8].length > 0 ? yn : bn
1414
+ );
1415
+ }
1416
+ let r = t(n), a = r(n);
1417
+ return {
1418
+ c() {
1419
+ a.c(), e = me();
1420
+ },
1421
+ m(i, o) {
1422
+ a.m(i, o), U(i, e, o);
1423
+ },
1424
+ p(i, o) {
1425
+ r === (r = t(i)) && a ? a.p(i, o) : (a.d(1), a = r(i), a && (a.c(), a.m(e.parentNode, e)));
1426
+ },
1427
+ d(i) {
1428
+ i && W(e), a.d(i);
1429
+ }
1430
+ };
1431
+ }
1432
+ function vn(n) {
1433
+ let e;
1434
+ return {
1435
+ c() {
1436
+ e = w("general-animation-loading"), ae(
1437
+ e,
1438
+ "clientstyling",
1439
+ /*clientstyling*/
1440
+ n[2]
1441
+ ), ae(
1442
+ e,
1443
+ "clientstylingurl",
1444
+ /*clientstylingurl*/
1445
+ n[3]
1446
+ );
1447
+ },
1448
+ m(t, r) {
1449
+ U(t, e, r);
1450
+ },
1451
+ p(t, r) {
1452
+ r[0] & /*clientstyling*/
1453
+ 4 && ae(
1454
+ e,
1455
+ "clientstyling",
1456
+ /*clientstyling*/
1457
+ t[2]
1458
+ ), r[0] & /*clientstylingurl*/
1459
+ 8 && ae(
1460
+ e,
1461
+ "clientstylingurl",
1462
+ /*clientstylingurl*/
1463
+ t[3]
1464
+ );
1465
+ },
1466
+ d(t) {
1467
+ t && W(e);
1468
+ }
1469
+ };
1470
+ }
1471
+ function pn(n) {
1472
+ let e;
1473
+ return {
1474
+ c() {
1475
+ e = w("div"), e.textContent = "There is no history yet", g(e, "class", "chests-empty");
1476
+ },
1477
+ m(t, r) {
1478
+ U(t, e, r);
1479
+ },
1480
+ p: Z,
1481
+ d(t) {
1482
+ t && W(e);
1483
+ }
1484
+ };
1485
+ }
1486
+ function wn(n) {
1487
+ let e, t = J(
1488
+ /*mysteryChestsHistory*/
1489
+ n[10]
1490
+ ), r = [];
1491
+ for (let a = 0; a < t.length; a += 1)
1492
+ r[a] = We(Te(n, t, a));
1493
+ return {
1494
+ c() {
1495
+ for (let a = 0; a < r.length; a += 1)
1496
+ r[a].c();
1497
+ e = me();
1498
+ },
1499
+ m(a, i) {
1500
+ for (let o = 0; o < r.length; o += 1)
1501
+ r[o] && r[o].m(a, i);
1502
+ U(a, e, i);
1503
+ },
1504
+ p(a, i) {
1505
+ if (i[0] & /*showMore, mysteryChestsHistory*/
1506
+ 9216) {
1507
+ t = J(
1508
+ /*mysteryChestsHistory*/
1509
+ a[10]
1510
+ );
1511
+ let o;
1512
+ for (o = 0; o < t.length; o += 1) {
1513
+ const u = Te(a, t, o);
1514
+ r[o] ? r[o].p(u, i) : (r[o] = We(u), r[o].c(), r[o].m(e.parentNode, e));
1515
+ }
1516
+ for (; o < r.length; o += 1)
1517
+ r[o].d(1);
1518
+ r.length = t.length;
1519
+ }
1520
+ },
1521
+ d(a) {
1522
+ a && W(e), he(r, a);
1523
+ }
1524
+ };
1525
+ }
1526
+ function De(n) {
1527
+ let e, t, r, a, i = (
1528
+ /*outcome*/
1529
+ n[36]?.name + ""
1530
+ ), o, u, c, l, m, s, p = (
1531
+ /*outcome*/
1532
+ n[36]?.date + ""
1533
+ ), d;
1534
+ return {
1535
+ c() {
1536
+ e = w("div"), t = w("span"), t.textContent = `${/*index*/
1537
+ n[38] + 1}`, r = M(), a = w("p"), o = te(i), u = M(), c = w("img"), m = M(), s = w("span"), d = te(p), g(t, "class", "index"), fe(c.src, l = /*outcome*/
1538
+ n[36]?.state ? we : pe) || g(c, "src", l), g(c, "alt", ""), g(a, "class", "name"), g(s, "class", "time"), g(e, "class", "chests-history__list__item");
1539
+ },
1540
+ m(v, _) {
1541
+ U(v, e, _), f(e, t), f(e, r), f(e, a), f(a, o), f(a, u), f(a, c), f(e, m), f(e, s), f(s, d);
1542
+ },
1543
+ p(v, _) {
1544
+ _[0] & /*mysteryChestsHistory*/
1545
+ 1024 && i !== (i = /*outcome*/
1546
+ v[36]?.name + "") && ee(o, i), _[0] & /*mysteryChestsHistory*/
1547
+ 1024 && !fe(c.src, l = /*outcome*/
1548
+ v[36]?.state ? we : pe) && g(c, "src", l), _[0] & /*mysteryChestsHistory*/
1549
+ 1024 && p !== (p = /*outcome*/
1550
+ v[36]?.date + "") && ee(d, p);
1551
+ },
1552
+ d(v) {
1553
+ v && W(e);
1554
+ }
1555
+ };
1556
+ }
1557
+ function Se(n) {
1558
+ let e, t, r;
1559
+ function a() {
1560
+ return (
1561
+ /*click_handler_1*/
1562
+ n[22](
1563
+ /*history*/
1564
+ n[33]
1565
+ )
1566
+ );
1567
+ }
1568
+ return {
1569
+ c() {
1570
+ e = w("button"), e.innerHTML = `More
1571
+ <img src="${Ke}" alt="More"/>`, g(e, "class", "chests-history__more");
1572
+ },
1573
+ m(i, o) {
1574
+ U(i, e, o), t || (r = F(e, "click", a), t = !0);
1575
+ },
1576
+ p(i, o) {
1577
+ n = i;
1578
+ },
1579
+ d(i) {
1580
+ i && W(e), t = !1, r();
1581
+ }
1582
+ };
1583
+ }
1584
+ function We(n) {
1585
+ let e, t, r = (
1586
+ /*history*/
1587
+ n[33].name + ""
1588
+ ), a, i, o, u, c = J(
1589
+ /*history*/
1590
+ n[33].outcomes.slice(
1591
+ 0,
1592
+ /*history*/
1593
+ n[33].endPos
1594
+ )
1595
+ ), l = [];
1596
+ for (let s = 0; s < c.length; s += 1)
1597
+ l[s] = De(Me(n, c, s));
1598
+ let m = (
1599
+ /*history*/
1600
+ n[33].outcomes?.length > 3 && /*history*/
1601
+ n[33].endPos === 3 && Se(n)
1602
+ );
1603
+ return {
1604
+ c() {
1605
+ e = w("div"), t = w("div"), a = te(r), i = M();
1606
+ for (let s = 0; s < l.length; s += 1)
1607
+ l[s].c();
1608
+ o = M(), m && m.c(), u = M(), g(t, "class", "chests-history__title"), g(e, "class", "chests-history__list");
1609
+ },
1610
+ m(s, p) {
1611
+ U(s, e, p), f(e, t), f(t, a), f(e, i);
1612
+ for (let d = 0; d < l.length; d += 1)
1613
+ l[d] && l[d].m(e, null);
1614
+ f(e, o), m && m.m(e, null), f(e, u);
1615
+ },
1616
+ p(s, p) {
1617
+ if (p[0] & /*mysteryChestsHistory*/
1618
+ 1024 && r !== (r = /*history*/
1619
+ s[33].name + "") && ee(a, r), p[0] & /*mysteryChestsHistory*/
1620
+ 1024) {
1621
+ c = J(
1622
+ /*history*/
1623
+ s[33].outcomes.slice(
1624
+ 0,
1625
+ /*history*/
1626
+ s[33].endPos
1627
+ )
1628
+ );
1629
+ let d;
1630
+ for (d = 0; d < c.length; d += 1) {
1631
+ const v = Me(s, c, d);
1632
+ l[d] ? l[d].p(v, p) : (l[d] = De(v), l[d].c(), l[d].m(e, o));
1633
+ }
1634
+ for (; d < l.length; d += 1)
1635
+ l[d].d(1);
1636
+ l.length = c.length;
1637
+ }
1638
+ /*history*/
1639
+ s[33].outcomes?.length > 3 && /*history*/
1640
+ s[33].endPos === 3 ? m ? m.p(s, p) : (m = Se(s), m.c(), m.m(e, u)) : m && (m.d(1), m = null);
1641
+ },
1642
+ d(s) {
1643
+ s && W(e), he(l, s), m && m.d();
1644
+ }
1645
+ };
1646
+ }
1647
+ function bn(n) {
1648
+ let e;
1649
+ return {
1650
+ c() {
1651
+ e = w("div"), e.textContent = "There are no available Chests", g(e, "class", "chests-empty");
1652
+ },
1653
+ m(t, r) {
1654
+ U(t, e, r);
1655
+ },
1656
+ p: Z,
1657
+ d(t) {
1658
+ t && W(e);
1659
+ }
1660
+ };
1661
+ }
1662
+ function yn(n) {
1663
+ let e, t = J(
1664
+ /*mysteryChests*/
1665
+ n[8]
1666
+ ), r = [];
1667
+ for (let a = 0; a < t.length; a += 1)
1668
+ r[a] = Ue(Oe(n, t, a));
1669
+ return {
1670
+ c() {
1671
+ e = w("div");
1672
+ for (let a = 0; a < r.length; a += 1)
1673
+ r[a].c();
1674
+ g(e, "class", "chests-list");
1675
+ },
1676
+ m(a, i) {
1677
+ U(a, e, i);
1678
+ for (let o = 0; o < r.length; o += 1)
1679
+ r[o] && r[o].m(e, null);
1680
+ },
1681
+ p(a, i) {
1682
+ if (i[0] & /*openChestDetails, mysteryChests, lang*/
1683
+ 33026) {
1684
+ t = J(
1685
+ /*mysteryChests*/
1686
+ a[8]
1687
+ );
1688
+ let o;
1689
+ for (o = 0; o < t.length; o += 1) {
1690
+ const u = Oe(a, t, o);
1691
+ r[o] ? r[o].p(u, i) : (r[o] = Ue(u), r[o].c(), r[o].m(e, null));
1692
+ }
1693
+ for (; o < r.length; o += 1)
1694
+ r[o].d(1);
1695
+ r.length = t.length;
1696
+ }
1697
+ },
1698
+ d(a) {
1699
+ a && W(e), he(r, a);
1700
+ }
1701
+ };
1702
+ }
1703
+ function Ue(n) {
1704
+ let e, t = (
1705
+ /*chest*/
1706
+ (n[30].program.name[
1707
+ /*lang*/
1708
+ n[1]
1709
+ ] || /*chest*/
1710
+ n[30].program.name[A.default]) + ""
1711
+ ), r, a, i, o, u, c, l, m = (
1712
+ /*chest*/
1713
+ n[30]?.current?.remainingTimes + ""
1714
+ ), s, p, d, v;
1715
+ function _() {
1716
+ return (
1717
+ /*click_handler*/
1718
+ n[21](
1719
+ /*chest*/
1720
+ n[30]
1721
+ )
1722
+ );
1723
+ }
1724
+ return {
1725
+ c() {
1726
+ e = w("button"), r = te(t), a = M(), i = w("div"), o = w("img"), c = M(), l = w("span"), s = te(m), p = M(), fe(o.src, u = Je) || g(o, "src", u), g(o, "alt", "Key"), g(i, "class", "chests-list__item__keys"), g(e, "class", "chests-list__item");
1727
+ },
1728
+ m(T, C) {
1729
+ U(T, e, C), f(e, r), f(e, a), f(e, i), f(i, o), f(i, c), f(i, l), f(l, s), f(e, p), d || (v = F(e, "click", _), d = !0);
1730
+ },
1731
+ p(T, C) {
1732
+ n = T, C[0] & /*mysteryChests, lang*/
1733
+ 258 && t !== (t = /*chest*/
1734
+ (n[30].program.name[
1735
+ /*lang*/
1736
+ n[1]
1737
+ ] || /*chest*/
1738
+ n[30].program.name[A.default]) + "") && ee(r, t), C[0] & /*mysteryChests*/
1739
+ 256 && m !== (m = /*chest*/
1740
+ n[30]?.current?.remainingTimes + "") && ee(s, m);
1741
+ },
1742
+ d(T) {
1743
+ T && W(e), d = !1, v();
1744
+ }
1745
+ };
1746
+ }
1747
+ function _n(n) {
1748
+ let e, t, r, a, i, o, u, c, l, m, s, p, d, v, _, T, C, z, P, H, Y, E, G, O = (
1749
+ /*tooltip*/
1750
+ n[9] && Pe(n)
1751
+ );
1752
+ function Q(b, D) {
1753
+ return (
1754
+ /*chestsLoading*/
1755
+ b[7] || /*historyLoading*/
1756
+ b[6] ? vn : (
1757
+ /*activeTab*/
1758
+ b[5] === 1 ? gn : (
1759
+ /*activeTab*/
1760
+ b[5] === 2 ? hn : mn
1761
+ )
1762
+ )
1763
+ );
1764
+ }
1765
+ let q = Q(n), x = q(n);
1766
+ return {
1767
+ c() {
1768
+ e = w("div"), t = w("button"), r = M(), a = w("div"), O && O.c(), i = M(), o = w("div"), u = w("button"), c = M(), l = w("div"), l.textContent = "Mystery Chests", m = M(), s = w("button"), p = M(), d = w("div"), v = w("div"), _ = w("button"), _.textContent = "Play", T = M(), C = w("button"), C.textContent = "History", z = M(), P = w("button"), P.textContent = "Rules", H = M(), x.c(), g(t, "class", "overlay"), g(u, "class", "icon-button help"), g(l, "class", "chests-header__title"), g(s, "class", "icon-button close"), g(o, "class", "chests-header"), g(_, "data-index", "1"), g(_, "class", "chests-tabs__tab"), X(
1769
+ _,
1770
+ "active",
1771
+ /*activeTab*/
1772
+ n[5] === 1
1773
+ ), g(C, "data-index", "2"), g(C, "class", "chests-tabs__tab"), X(
1774
+ C,
1775
+ "active",
1776
+ /*activeTab*/
1777
+ n[5] === 2
1778
+ ), g(P, "data-index", "3"), g(P, "class", "chests-tabs__tab"), X(
1779
+ P,
1780
+ "active",
1781
+ /*activeTab*/
1782
+ n[5] === 3
1783
+ ), g(v, "class", "chests-tabs__container"), g(d, "class", "chests-tabs"), g(a, "class", Y = "drawer " + /*mobileView*/
1784
+ (n[0] ? "mobile" : "")), g(e, "part", "CustomStylingContainer");
1785
+ },
1786
+ m(b, D) {
1787
+ U(b, e, D), f(e, t), f(e, r), f(e, a), O && O.m(a, null), f(a, i), f(a, o), f(o, u), f(o, c), f(o, l), f(o, m), f(o, s), f(a, p), f(a, d), f(d, v), f(v, _), f(v, T), f(v, C), f(v, z), f(v, P), f(a, H), x.m(a, null), n[23](e), E || (G = [
1788
+ F(
1789
+ t,
1790
+ "click",
1791
+ /*onClose*/
1792
+ n[11]
1793
+ ),
1794
+ F(
1795
+ u,
1796
+ "click",
1797
+ /*showHideToolip*/
1798
+ n[12]
1799
+ ),
1800
+ F(
1801
+ s,
1802
+ "click",
1803
+ /*onClose*/
1804
+ n[11]
1805
+ ),
1806
+ F(
1807
+ _,
1808
+ "click",
1809
+ /*handleTabChange*/
1810
+ n[14]
1811
+ ),
1812
+ F(
1813
+ C,
1814
+ "click",
1815
+ /*handleTabChange*/
1816
+ n[14]
1817
+ ),
1818
+ F(
1819
+ P,
1820
+ "click",
1821
+ /*handleTabChange*/
1822
+ n[14]
1823
+ )
1824
+ ], E = !0);
1825
+ },
1826
+ p(b, D) {
1827
+ /*tooltip*/
1828
+ b[9] ? O ? O.p(b, D) : (O = Pe(b), O.c(), O.m(a, i)) : O && (O.d(1), O = null), D[0] & /*activeTab*/
1829
+ 32 && X(
1830
+ _,
1831
+ "active",
1832
+ /*activeTab*/
1833
+ b[5] === 1
1834
+ ), D[0] & /*activeTab*/
1835
+ 32 && X(
1836
+ C,
1837
+ "active",
1838
+ /*activeTab*/
1839
+ b[5] === 2
1840
+ ), D[0] & /*activeTab*/
1841
+ 32 && X(
1842
+ P,
1843
+ "active",
1844
+ /*activeTab*/
1845
+ b[5] === 3
1846
+ ), q === (q = Q(b)) && x ? x.p(b, D) : (x.d(1), x = q(b), x && (x.c(), x.m(a, null))), D[0] & /*mobileView*/
1847
+ 1 && Y !== (Y = "drawer " + /*mobileView*/
1848
+ (b[0] ? "mobile" : "")) && g(a, "class", Y);
1849
+ },
1850
+ i: Z,
1851
+ o: Z,
1852
+ d(b) {
1853
+ b && W(e), O && O.d(), x.d(), n[23](null), E = !1, Ge(G);
1854
+ }
1855
+ };
1856
+ }
1857
+ function xn(n, e, t) {
1858
+ let { mobileView: r = !1 } = e, { terms: a = "" } = e, { lang: i = A.en } = e, { endpoint: o = "" } = e, { session: u = "" } = e, { clientstyling: c = "" } = e, { clientstylingurl: l = "" } = e, { translationurl: m = "" } = e, s, p = 1, d = !1, v = !1, _ = [], T = !1, C;
1859
+ const z = () => {
1860
+ ce({ type: "CloseMysteryChestDrawer" });
1861
+ }, P = () => {
1862
+ t(9, T = !T);
1863
+ }, H = async () => {
1864
+ t(6, d = !0);
1865
+ let h = _.map((k) => ({
1866
+ id: k.program.id,
1867
+ name: k.program.name[i] || k.program.name[A.default],
1868
+ partitions: k.program.wheelOfFortune.partitions,
1869
+ endPos: 0,
1870
+ outcomes: []
1871
+ }));
1872
+ if (h.length > 0) {
1873
+ const k = h.map(async (L, ge) => {
1874
+ const re = (await ke.outcome(o, u, L?.id)).items || [];
1875
+ if (re.length === 0) {
1876
+ h[ge] = null;
1877
+ return;
1878
+ }
1879
+ h[ge] = {
1880
+ ...L,
1881
+ endPos: re.length > 3 ? 3 : re.length,
1882
+ outcomes: re.map((ue) => {
1883
+ const ve = L.partitions[ue.draw.result.wheelOfFortunePartitionIndex]?.name || {}, He = ue.draw.state === "fulfilled", qe = an(new Date(ue.draw.time), "LLL d, yyyy HH:mm:ss");
1884
+ return {
1885
+ name: ve[i] || ve[A.default],
1886
+ state: He,
1887
+ date: qe
1888
+ };
1889
+ })
1890
+ };
1891
+ });
1892
+ await Promise.all(k);
1893
+ }
1894
+ t(10, C = h.filter((k) => !!k)), t(6, d = !1);
1895
+ }, Y = async () => {
1896
+ t(7, v = !0);
1897
+ const h = await ke.lotteries(o, u);
1898
+ t(8, _ = h.filter((k) => un(k))), t(7, v = !1);
1899
+ }, E = (h) => {
1900
+ const k = C.findIndex((L) => L.id === h);
1901
+ t(10, C[k].endPos = C[k].outcomes?.length, C);
1902
+ }, G = async (h) => {
1903
+ t(5, p = +h.target.getAttribute("data-index")), p === 2 && await H();
1904
+ }, O = () => {
1905
+ let h = document.createElement("style");
1906
+ h.innerHTML = c, s.appendChild(h);
1907
+ }, Q = () => {
1908
+ let h = new URL(l), k = document.createElement("style");
1909
+ fetch(h.href).then((L) => L.text()).then((L) => {
1910
+ k.innerHTML = L, setTimeout(
1911
+ () => {
1912
+ s.appendChild(k);
1913
+ },
1914
+ 1
1915
+ );
1916
+ });
1917
+ }, q = () => {
1918
+ fetch(m).then((k) => k.json()).then((k) => {
1919
+ Object.keys(k).forEach((L) => {
1920
+ cn(L, k[L]);
1921
+ });
1922
+ });
1923
+ }, x = () => {
1924
+ dn(i);
1925
+ }, b = (h) => {
1926
+ ce({
1927
+ type: "OpenMysteryChestDetails",
1928
+ data: h
1929
+ });
1930
+ }, D = () => {
1931
+ ce({ type: "OpenTermsAndCondidionsLink" });
1932
+ };
1933
+ Qe(() => Y());
1934
+ const Ye = (h) => {
1935
+ b(h);
1936
+ }, Fe = (h) => E(h.id);
1937
+ function Ne(h) {
1938
+ Xe[h ? "unshift" : "push"](() => {
1939
+ s = h, t(4, s);
1940
+ });
1941
+ }
1942
+ return n.$$set = (h) => {
1943
+ "mobileView" in h && t(0, r = h.mobileView), "terms" in h && t(17, a = h.terms), "lang" in h && t(1, i = h.lang), "endpoint" in h && t(18, o = h.endpoint), "session" in h && t(19, u = h.session), "clientstyling" in h && t(2, c = h.clientstyling), "clientstylingurl" in h && t(3, l = h.clientstylingurl), "translationurl" in h && t(20, m = h.translationurl);
1944
+ }, n.$$.update = () => {
1945
+ n.$$.dirty[0] & /*lang*/
1946
+ 2 && i && x(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1947
+ 20 && c && s && O(), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1948
+ 24 && l && s && Q(), n.$$.dirty[0] & /*translationurl*/
1949
+ 1048576 && m && q();
1950
+ }, [
1951
+ r,
1952
+ i,
1953
+ c,
1954
+ l,
1955
+ s,
1956
+ p,
1957
+ d,
1958
+ v,
1959
+ _,
1960
+ T,
1961
+ C,
1962
+ z,
1963
+ P,
1964
+ E,
1965
+ G,
1966
+ b,
1967
+ D,
1968
+ a,
1969
+ o,
1970
+ u,
1971
+ m,
1972
+ Ye,
1973
+ Fe,
1974
+ Ne
1975
+ ];
1976
+ }
1977
+ class Cn extends Be {
1978
+ constructor(e) {
1979
+ super(), Re(
1980
+ this,
1981
+ e,
1982
+ xn,
1983
+ _n,
1984
+ je,
1985
+ {
1986
+ mobileView: 0,
1987
+ terms: 17,
1988
+ lang: 1,
1989
+ endpoint: 18,
1990
+ session: 19,
1991
+ clientstyling: 2,
1992
+ clientstylingurl: 3,
1993
+ translationurl: 20
1994
+ },
1995
+ fn,
1996
+ [-1, -1]
1997
+ );
1998
+ }
1999
+ get mobileView() {
2000
+ return this.$$.ctx[0];
2001
+ }
2002
+ set mobileView(e) {
2003
+ this.$$set({ mobileView: e }), B();
2004
+ }
2005
+ get terms() {
2006
+ return this.$$.ctx[17];
2007
+ }
2008
+ set terms(e) {
2009
+ this.$$set({ terms: e }), B();
2010
+ }
2011
+ get lang() {
2012
+ return this.$$.ctx[1];
2013
+ }
2014
+ set lang(e) {
2015
+ this.$$set({ lang: e }), B();
2016
+ }
2017
+ get endpoint() {
2018
+ return this.$$.ctx[18];
2019
+ }
2020
+ set endpoint(e) {
2021
+ this.$$set({ endpoint: e }), B();
2022
+ }
2023
+ get session() {
2024
+ return this.$$.ctx[19];
2025
+ }
2026
+ set session(e) {
2027
+ this.$$set({ session: e }), B();
2028
+ }
2029
+ get clientstyling() {
2030
+ return this.$$.ctx[2];
2031
+ }
2032
+ set clientstyling(e) {
2033
+ this.$$set({ clientstyling: e }), B();
2034
+ }
2035
+ get clientstylingurl() {
2036
+ return this.$$.ctx[3];
2037
+ }
2038
+ set clientstylingurl(e) {
2039
+ this.$$set({ clientstylingurl: e }), B();
2040
+ }
2041
+ get translationurl() {
2042
+ return this.$$.ctx[20];
2043
+ }
2044
+ set translationurl(e) {
2045
+ this.$$set({ translationurl: e }), B();
2046
+ }
2047
+ }
2048
+ Ve(Cn, { mobileView: { type: "Boolean" }, terms: {}, lang: {}, endpoint: {}, session: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
2049
+ export {
2050
+ Cn as default
2051
+ };