@everymatrix/casino-coinroyale-container 0.1.0

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.
Files changed (27) hide show
  1. package/components/CasinoCoinroyaleContainer-BLspXTRo.js +4887 -0
  2. package/components/CasinoCoinroyaleContainer-CDSLISi8.js +4838 -0
  3. package/components/CasinoCoinroyaleContainer-Wu1C3yaQ.cjs +18 -0
  4. package/components/CasinoCoinroyaleDetails-2m3ZUdsq.js +512 -0
  5. package/components/CasinoCoinroyaleDetails-B3bF6Jb_.js +470 -0
  6. package/components/CasinoCoinroyaleDetails-DSFr5Thp.cjs +2 -0
  7. package/components/CasinoCoinroyaleList-BNb0xfAE.cjs +1 -0
  8. package/components/CasinoCoinroyaleList-C-5Ll4e-.js +2157 -0
  9. package/components/CasinoCoinroyaleList-qoWjRLUh.js +2200 -0
  10. package/components/CasinoMysteryChestModal-D40dUO7j.js +85 -0
  11. package/components/CasinoMysteryChestModal-Dclq8PTT.cjs +1 -0
  12. package/components/CasinoMysteryChestModal-DnvpZmOU.js +85 -0
  13. package/es2015/casino-coinroyale-container.cjs +1 -0
  14. package/es2015/casino-coinroyale-container.js +16 -0
  15. package/esnext/casino-coinroyale-container.js +14 -0
  16. package/package.json +25 -0
  17. package/stencil/app-globals-0f993ce5-D-kw1sls.js +5 -0
  18. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
  19. package/stencil/index-b2193545-BeKKnKhR.js +519 -0
  20. package/stencil/index-b2193545-HC0t7mHa.js +503 -0
  21. package/stencil/index-b2193545-YW9b062G.cjs +1 -0
  22. package/stencil/ui-skeleton-BL4789dS.cjs +1 -0
  23. package/stencil/ui-skeleton-Ca5rz3Hv.js +29 -0
  24. package/stencil/ui-skeleton-ae35c6f2-BDBUiN3S.js +155 -0
  25. package/stencil/ui-skeleton-ae35c6f2-Cn0ZM_hs.js +155 -0
  26. package/stencil/ui-skeleton-ae35c6f2-xLf3HyeB.cjs +55 -0
  27. package/stencil/ui-skeleton-hI4GeaLk.js +11 -0
@@ -0,0 +1,2200 @@
1
+ var $e = Object.defineProperty, et = Object.defineProperties;
2
+ var tt = Object.getOwnPropertyDescriptors;
3
+ var Oe = Object.getOwnPropertySymbols;
4
+ var nt = Object.prototype.hasOwnProperty, rt = Object.prototype.propertyIsEnumerable;
5
+ var Pe = (n, e, t) => e in n ? $e(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, xe = (n, e) => {
6
+ for (var t in e || (e = {}))
7
+ nt.call(e, t) && Pe(n, t, e[t]);
8
+ if (Oe)
9
+ for (var t of Oe(e))
10
+ rt.call(e, t) && Pe(n, t, e[t]);
11
+ return n;
12
+ }, De = (n, e) => et(n, tt(e));
13
+ var X = (n, e, t) => new Promise((r, a) => {
14
+ var i = (d) => {
15
+ try {
16
+ l(t.next(d));
17
+ } catch (u) {
18
+ a(u);
19
+ }
20
+ }, o = (d) => {
21
+ try {
22
+ l(t.throw(d));
23
+ } catch (u) {
24
+ a(u);
25
+ }
26
+ }, l = (d) => d.done ? r(d.value) : Promise.resolve(d.value).then(i, o);
27
+ l((t = t.apply(n, e)).next());
28
+ });
29
+ import { a as at, $ as it, S as ot, i as st, s as lt, f as te, b as ut, n as Ce, d as H, r as ct, c as D, y as le, e as B, g as s, l as $, h as v, j as k, t as S, k as h, m as dt, p as ft, o as mt, q as ht, z as Te, A as de, B as Me, v as pe, w as gt, x as vt } from "./CasinoCoinroyaleContainer-BLspXTRo.js";
30
+ import { s as pt, a as bt, b as wt } from "./CasinoCoinroyaleDetails-2m3ZUdsq.js";
31
+ import "../stencil/ui-skeleton-Ca5rz3Hv.js";
32
+ const Se = (n) => window.postMessage(n, window.location.href), _t = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.5384%203.18261L14.3222%200.9673C13.3202%20-0.0332963%2011.7009%20-0.26734%209.75715%200.310586C7.83938%200.880634%205.79092%202.18711%203.98901%203.98902C2.18711%205.79092%200.88063%207.83939%200.310582%209.75716C-0.26688%2011.7%20-0.0337635%2013.3211%200.965442%2014.3194C0.980736%2014.3361%200.99742%2014.3491%201.01967%2014.362L3.1826%2016.5384C3.83422%2017.1891%204.73749%2017.4996%205.78675%2017.4996C8.0382%2017.4996%2010.9621%2016.0703%2013.5167%2013.5167C17.2605%209.77199%2018.5878%205.23292%2016.5384%203.18261ZM13.2979%205.31681C12.764%206.90692%2011.6378%208.61521%2010.127%2010.1261C8.6152%2011.6369%206.90738%2012.764%205.31681%2013.2979C3.8991%2013.7744%202.71173%2013.7188%202.14169%2013.1469C1.57118%2012.5768%201.5151%2011.3904%201.99153%209.9722C2.52589%208.38209%203.65254%206.67426%205.1634%205.16341C6.67426%203.65209%208.38255%202.52589%209.97312%201.99153C10.6118%201.77649%2011.2031%201.67036%2011.7129%201.67036C12.3349%201.67036%2012.8345%201.8284%2013.1478%202.14169C13.7178%202.7122%2013.7744%203.89911%2013.2979%205.31681ZM12.3423%2012.3414C9.09859%2015.5846%205.53231%2016.5375%204.35699%2015.3622L4.23696%2015.2426C6.4481%2014.9914%209.06753%2013.5343%2011.3014%2011.3014C13.5343%209.06754%2014.9914%206.4481%2015.2426%204.23696L15.3622%204.357C16.5365%205.53093%2015.5846%209.09859%2012.3423%2012.3414Z'%20fill='url(%23paint0_linear_875_137)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_875_137'%20x1='0'%20y1='8.7498'%20x2='17.5'%20y2='8.7498'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2375FFE9'/%3e%3cstop%20offset='1'%20stop-color='%23B2FF6D'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", We = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.96967%203.96967C4.26256%203.67678%204.73744%203.67678%205.03033%203.96967L9%207.93934L12.9697%203.96967C13.2626%203.67678%2013.7374%203.67678%2014.0303%203.96967C14.3232%204.26256%2014.3232%204.73744%2014.0303%205.03033L10.0607%209L14.0303%2012.9697C14.3232%2013.2626%2014.3232%2013.7374%2014.0303%2014.0303C13.7374%2014.3232%2013.2626%2014.3232%2012.9697%2014.0303L9%2010.0607L5.03033%2014.0303C4.73744%2014.3232%204.26256%2014.3232%203.96967%2014.0303C3.67678%2013.7374%203.67678%2013.2626%203.96967%2012.9697L7.93934%209L3.96967%205.03033C3.67678%204.73744%203.67678%204.26256%203.96967%203.96967Z'%20fill='%23FF9B59'/%3e%3c/svg%3e", Ue = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.1724%204.72381C15.4708%205.02223%2015.4708%205.50607%2015.1724%205.80449L7.70071%2013.2762C7.40229%2013.5746%206.91846%2013.5746%206.62004%2013.2762L3.22381%209.87996C2.9254%209.58154%202.9254%209.09771%203.22381%208.79929C3.52223%208.50087%204.00607%208.50087%204.30449%208.79929L7.16038%2011.6552L14.0917%204.72381C14.3902%204.4254%2014.874%204.4254%2015.1724%204.72381Z'%20fill='%2358DB4A'/%3e%3c/svg%3e", yt = "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";
33
+ function be(n) {
34
+ "@babel/helpers - typeof";
35
+ return be = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
36
+ return typeof e;
37
+ } : function(e) {
38
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
39
+ }, be(n);
40
+ }
41
+ function se(n) {
42
+ if (n === null || n === !0 || n === !1)
43
+ return NaN;
44
+ var e = Number(n);
45
+ return isNaN(e) ? e : e < 0 ? Math.ceil(e) : Math.floor(e);
46
+ }
47
+ function A(n, e) {
48
+ if (e.length < n)
49
+ throw new TypeError(n + " argument" + (n > 1 ? "s" : "") + " required, but only " + e.length + " present");
50
+ }
51
+ function V(n) {
52
+ A(1, arguments);
53
+ var e = Object.prototype.toString.call(n);
54
+ return n instanceof Date || be(n) === "object" && e === "[object Date]" ? new Date(n.getTime()) : typeof n == "number" || e === "[object Number]" ? new Date(n) : ((typeof n == "string" || e === "[object String]") && typeof console != "undefined" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
55
+ }
56
+ function xt(n, e) {
57
+ A(2, arguments);
58
+ var t = V(n).getTime(), r = se(e);
59
+ return new Date(t + r);
60
+ }
61
+ var kt = {};
62
+ function ye() {
63
+ return kt;
64
+ }
65
+ function Ct(n) {
66
+ var e = new Date(Date.UTC(n.getFullYear(), n.getMonth(), n.getDate(), n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds()));
67
+ return e.setUTCFullYear(n.getFullYear()), n.getTime() - e.getTime();
68
+ }
69
+ function Tt(n) {
70
+ return A(1, arguments), n instanceof Date || be(n) === "object" && Object.prototype.toString.call(n) === "[object Date]";
71
+ }
72
+ function Mt(n) {
73
+ if (A(1, arguments), !Tt(n) && typeof n != "number")
74
+ return !1;
75
+ var e = V(n);
76
+ return !isNaN(Number(e));
77
+ }
78
+ function Ot(n, e) {
79
+ A(2, arguments);
80
+ var t = se(e);
81
+ return xt(n, -t);
82
+ }
83
+ var Pt = 864e5;
84
+ function Dt(n) {
85
+ A(1, arguments);
86
+ var e = V(n), t = e.getTime();
87
+ e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
88
+ var r = e.getTime(), a = t - r;
89
+ return Math.floor(a / Pt) + 1;
90
+ }
91
+ function we(n) {
92
+ A(1, arguments);
93
+ var e = 1, t = V(n), r = t.getUTCDay(), a = (r < e ? 7 : 0) + r - e;
94
+ return t.setUTCDate(t.getUTCDate() - a), t.setUTCHours(0, 0, 0, 0), t;
95
+ }
96
+ function Ze(n) {
97
+ A(1, arguments);
98
+ var e = V(n), t = e.getUTCFullYear(), r = /* @__PURE__ */ new Date(0);
99
+ r.setUTCFullYear(t + 1, 0, 4), r.setUTCHours(0, 0, 0, 0);
100
+ var a = we(r), i = /* @__PURE__ */ new Date(0);
101
+ i.setUTCFullYear(t, 0, 4), i.setUTCHours(0, 0, 0, 0);
102
+ var o = we(i);
103
+ return e.getTime() >= a.getTime() ? t + 1 : e.getTime() >= o.getTime() ? t : t - 1;
104
+ }
105
+ function St(n) {
106
+ A(1, arguments);
107
+ var e = Ze(n), t = /* @__PURE__ */ new Date(0);
108
+ t.setUTCFullYear(e, 0, 4), t.setUTCHours(0, 0, 0, 0);
109
+ var r = we(t);
110
+ return r;
111
+ }
112
+ var Wt = 6048e5;
113
+ function Ut(n) {
114
+ A(1, arguments);
115
+ var e = V(n), t = we(e).getTime() - St(e).getTime();
116
+ return Math.round(t / Wt) + 1;
117
+ }
118
+ function _e(n, e) {
119
+ var t, r, a, i, o, l, d, u;
120
+ A(1, arguments);
121
+ var m = ye(), g = se((t = (r = (a = (i = e == null ? void 0 : e.weekStartsOn) !== null && i !== void 0 ? i : e == null || (o = e.locale) === null || o === void 0 || (l = o.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && a !== void 0 ? a : m.weekStartsOn) !== null && r !== void 0 ? r : (d = m.locale) === null || d === void 0 || (u = d.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && t !== void 0 ? t : 0);
122
+ if (!(g >= 0 && g <= 6))
123
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
124
+ var f = V(n), b = f.getUTCDay(), p = (b < g ? 7 : 0) + b - g;
125
+ return f.setUTCDate(f.getUTCDate() - p), f.setUTCHours(0, 0, 0, 0), f;
126
+ }
127
+ function Je(n, e) {
128
+ var t, r, a, i, o, l, d, u;
129
+ A(1, arguments);
130
+ var m = V(n), g = m.getUTCFullYear(), f = ye(), b = se((t = (r = (a = (i = e == null ? void 0 : e.firstWeekContainsDate) !== null && i !== void 0 ? i : e == null || (o = e.locale) === null || o === void 0 || (l = o.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && a !== void 0 ? a : f.firstWeekContainsDate) !== null && r !== void 0 ? r : (d = f.locale) === null || d === void 0 || (u = d.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && t !== void 0 ? t : 1);
131
+ if (!(b >= 1 && b <= 7))
132
+ throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
133
+ var p = /* @__PURE__ */ new Date(0);
134
+ p.setUTCFullYear(g + 1, 0, b), p.setUTCHours(0, 0, 0, 0);
135
+ var _ = _e(p, e), w = /* @__PURE__ */ new Date(0);
136
+ w.setUTCFullYear(g, 0, b), w.setUTCHours(0, 0, 0, 0);
137
+ var x = _e(w, e);
138
+ return m.getTime() >= _.getTime() ? g + 1 : m.getTime() >= x.getTime() ? g : g - 1;
139
+ }
140
+ function Yt(n, e) {
141
+ var t, r, a, i, o, l, d, u;
142
+ A(1, arguments);
143
+ var m = ye(), g = se((t = (r = (a = (i = e == null ? void 0 : e.firstWeekContainsDate) !== null && i !== void 0 ? i : e == null || (o = e.locale) === null || o === void 0 || (l = o.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && a !== void 0 ? a : m.firstWeekContainsDate) !== null && r !== void 0 ? r : (d = m.locale) === null || d === void 0 || (u = d.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && t !== void 0 ? t : 1), f = Je(n, e), b = /* @__PURE__ */ new Date(0);
144
+ b.setUTCFullYear(f, 0, g), b.setUTCHours(0, 0, 0, 0);
145
+ var p = _e(b, e);
146
+ return p;
147
+ }
148
+ var zt = 6048e5;
149
+ function Et(n, e) {
150
+ A(1, arguments);
151
+ var t = V(n), r = _e(t, e).getTime() - Yt(t, e).getTime();
152
+ return Math.round(r / zt) + 1;
153
+ }
154
+ function C(n, e) {
155
+ for (var t = n < 0 ? "-" : "", r = Math.abs(n).toString(); r.length < e; )
156
+ r = "0" + r;
157
+ return t + r;
158
+ }
159
+ var ne = {
160
+ // Year
161
+ y: function(e, t) {
162
+ var r = e.getUTCFullYear(), a = r > 0 ? r : 1 - r;
163
+ return C(t === "yy" ? a % 100 : a, t.length);
164
+ },
165
+ // Month
166
+ M: function(e, t) {
167
+ var r = e.getUTCMonth();
168
+ return t === "M" ? String(r + 1) : C(r + 1, 2);
169
+ },
170
+ // Day of the month
171
+ d: function(e, t) {
172
+ return C(e.getUTCDate(), t.length);
173
+ },
174
+ // AM or PM
175
+ a: function(e, t) {
176
+ var r = e.getUTCHours() / 12 >= 1 ? "pm" : "am";
177
+ switch (t) {
178
+ case "a":
179
+ case "aa":
180
+ return r.toUpperCase();
181
+ case "aaa":
182
+ return r;
183
+ case "aaaaa":
184
+ return r[0];
185
+ case "aaaa":
186
+ default:
187
+ return r === "am" ? "a.m." : "p.m.";
188
+ }
189
+ },
190
+ // Hour [1-12]
191
+ h: function(e, t) {
192
+ return C(e.getUTCHours() % 12 || 12, t.length);
193
+ },
194
+ // Hour [0-23]
195
+ H: function(e, t) {
196
+ return C(e.getUTCHours(), t.length);
197
+ },
198
+ // Minute
199
+ m: function(e, t) {
200
+ return C(e.getUTCMinutes(), t.length);
201
+ },
202
+ // Second
203
+ s: function(e, t) {
204
+ return C(e.getUTCSeconds(), t.length);
205
+ },
206
+ // Fraction of second
207
+ S: function(e, t) {
208
+ var r = t.length, a = e.getUTCMilliseconds(), i = Math.floor(a * Math.pow(10, r - 3));
209
+ return C(i, t.length);
210
+ }
211
+ }, ue = {
212
+ midnight: "midnight",
213
+ noon: "noon",
214
+ morning: "morning",
215
+ afternoon: "afternoon",
216
+ evening: "evening",
217
+ night: "night"
218
+ }, Lt = {
219
+ // Era
220
+ G: function(e, t, r) {
221
+ var a = e.getUTCFullYear() > 0 ? 1 : 0;
222
+ switch (t) {
223
+ case "G":
224
+ case "GG":
225
+ case "GGG":
226
+ return r.era(a, {
227
+ width: "abbreviated"
228
+ });
229
+ case "GGGGG":
230
+ return r.era(a, {
231
+ width: "narrow"
232
+ });
233
+ case "GGGG":
234
+ default:
235
+ return r.era(a, {
236
+ width: "wide"
237
+ });
238
+ }
239
+ },
240
+ // Year
241
+ y: function(e, t, r) {
242
+ if (t === "yo") {
243
+ var a = e.getUTCFullYear(), i = a > 0 ? a : 1 - a;
244
+ return r.ordinalNumber(i, {
245
+ unit: "year"
246
+ });
247
+ }
248
+ return ne.y(e, t);
249
+ },
250
+ // Local week-numbering year
251
+ Y: function(e, t, r, a) {
252
+ var i = Je(e, a), o = i > 0 ? i : 1 - i;
253
+ if (t === "YY") {
254
+ var l = o % 100;
255
+ return C(l, 2);
256
+ }
257
+ return t === "Yo" ? r.ordinalNumber(o, {
258
+ unit: "year"
259
+ }) : C(o, t.length);
260
+ },
261
+ // ISO week-numbering year
262
+ R: function(e, t) {
263
+ var r = Ze(e);
264
+ return C(r, t.length);
265
+ },
266
+ // Extended year. This is a single number designating the year of this calendar system.
267
+ // The main difference between `y` and `u` localizers are B.C. years:
268
+ // | Year | `y` | `u` |
269
+ // |------|-----|-----|
270
+ // | AC 1 | 1 | 1 |
271
+ // | BC 1 | 1 | 0 |
272
+ // | BC 2 | 2 | -1 |
273
+ // Also `yy` always returns the last two digits of a year,
274
+ // while `uu` pads single digit years to 2 characters and returns other years unchanged.
275
+ u: function(e, t) {
276
+ var r = e.getUTCFullYear();
277
+ return C(r, t.length);
278
+ },
279
+ // Quarter
280
+ Q: function(e, t, r) {
281
+ var a = Math.ceil((e.getUTCMonth() + 1) / 3);
282
+ switch (t) {
283
+ case "Q":
284
+ return String(a);
285
+ case "QQ":
286
+ return C(a, 2);
287
+ case "Qo":
288
+ return r.ordinalNumber(a, {
289
+ unit: "quarter"
290
+ });
291
+ case "QQQ":
292
+ return r.quarter(a, {
293
+ width: "abbreviated",
294
+ context: "formatting"
295
+ });
296
+ case "QQQQQ":
297
+ return r.quarter(a, {
298
+ width: "narrow",
299
+ context: "formatting"
300
+ });
301
+ case "QQQQ":
302
+ default:
303
+ return r.quarter(a, {
304
+ width: "wide",
305
+ context: "formatting"
306
+ });
307
+ }
308
+ },
309
+ // Stand-alone quarter
310
+ q: function(e, t, r) {
311
+ var a = Math.ceil((e.getUTCMonth() + 1) / 3);
312
+ switch (t) {
313
+ case "q":
314
+ return String(a);
315
+ case "qq":
316
+ return C(a, 2);
317
+ case "qo":
318
+ return r.ordinalNumber(a, {
319
+ unit: "quarter"
320
+ });
321
+ case "qqq":
322
+ return r.quarter(a, {
323
+ width: "abbreviated",
324
+ context: "standalone"
325
+ });
326
+ case "qqqqq":
327
+ return r.quarter(a, {
328
+ width: "narrow",
329
+ context: "standalone"
330
+ });
331
+ case "qqqq":
332
+ default:
333
+ return r.quarter(a, {
334
+ width: "wide",
335
+ context: "standalone"
336
+ });
337
+ }
338
+ },
339
+ // Month
340
+ M: function(e, t, r) {
341
+ var a = e.getUTCMonth();
342
+ switch (t) {
343
+ case "M":
344
+ case "MM":
345
+ return ne.M(e, t);
346
+ case "Mo":
347
+ return r.ordinalNumber(a + 1, {
348
+ unit: "month"
349
+ });
350
+ case "MMM":
351
+ return r.month(a, {
352
+ width: "abbreviated",
353
+ context: "formatting"
354
+ });
355
+ case "MMMMM":
356
+ return r.month(a, {
357
+ width: "narrow",
358
+ context: "formatting"
359
+ });
360
+ case "MMMM":
361
+ default:
362
+ return r.month(a, {
363
+ width: "wide",
364
+ context: "formatting"
365
+ });
366
+ }
367
+ },
368
+ // Stand-alone month
369
+ L: function(e, t, r) {
370
+ var a = e.getUTCMonth();
371
+ switch (t) {
372
+ case "L":
373
+ return String(a + 1);
374
+ case "LL":
375
+ return C(a + 1, 2);
376
+ case "Lo":
377
+ return r.ordinalNumber(a + 1, {
378
+ unit: "month"
379
+ });
380
+ case "LLL":
381
+ return r.month(a, {
382
+ width: "abbreviated",
383
+ context: "standalone"
384
+ });
385
+ case "LLLLL":
386
+ return r.month(a, {
387
+ width: "narrow",
388
+ context: "standalone"
389
+ });
390
+ case "LLLL":
391
+ default:
392
+ return r.month(a, {
393
+ width: "wide",
394
+ context: "standalone"
395
+ });
396
+ }
397
+ },
398
+ // Local week of year
399
+ w: function(e, t, r, a) {
400
+ var i = Et(e, a);
401
+ return t === "wo" ? r.ordinalNumber(i, {
402
+ unit: "week"
403
+ }) : C(i, t.length);
404
+ },
405
+ // ISO week of year
406
+ I: function(e, t, r) {
407
+ var a = Ut(e);
408
+ return t === "Io" ? r.ordinalNumber(a, {
409
+ unit: "week"
410
+ }) : C(a, t.length);
411
+ },
412
+ // Day of the month
413
+ d: function(e, t, r) {
414
+ return t === "do" ? r.ordinalNumber(e.getUTCDate(), {
415
+ unit: "date"
416
+ }) : ne.d(e, t);
417
+ },
418
+ // Day of year
419
+ D: function(e, t, r) {
420
+ var a = Dt(e);
421
+ return t === "Do" ? r.ordinalNumber(a, {
422
+ unit: "dayOfYear"
423
+ }) : C(a, t.length);
424
+ },
425
+ // Day of week
426
+ E: function(e, t, r) {
427
+ var a = e.getUTCDay();
428
+ switch (t) {
429
+ case "E":
430
+ case "EE":
431
+ case "EEE":
432
+ return r.day(a, {
433
+ width: "abbreviated",
434
+ context: "formatting"
435
+ });
436
+ case "EEEEE":
437
+ return r.day(a, {
438
+ width: "narrow",
439
+ context: "formatting"
440
+ });
441
+ case "EEEEEE":
442
+ return r.day(a, {
443
+ width: "short",
444
+ context: "formatting"
445
+ });
446
+ case "EEEE":
447
+ default:
448
+ return r.day(a, {
449
+ width: "wide",
450
+ context: "formatting"
451
+ });
452
+ }
453
+ },
454
+ // Local day of week
455
+ e: function(e, t, r, a) {
456
+ var i = e.getUTCDay(), o = (i - a.weekStartsOn + 8) % 7 || 7;
457
+ switch (t) {
458
+ case "e":
459
+ return String(o);
460
+ case "ee":
461
+ return C(o, 2);
462
+ case "eo":
463
+ return r.ordinalNumber(o, {
464
+ unit: "day"
465
+ });
466
+ case "eee":
467
+ return r.day(i, {
468
+ width: "abbreviated",
469
+ context: "formatting"
470
+ });
471
+ case "eeeee":
472
+ return r.day(i, {
473
+ width: "narrow",
474
+ context: "formatting"
475
+ });
476
+ case "eeeeee":
477
+ return r.day(i, {
478
+ width: "short",
479
+ context: "formatting"
480
+ });
481
+ case "eeee":
482
+ default:
483
+ return r.day(i, {
484
+ width: "wide",
485
+ context: "formatting"
486
+ });
487
+ }
488
+ },
489
+ // Stand-alone local day of week
490
+ c: function(e, t, r, a) {
491
+ var i = e.getUTCDay(), o = (i - a.weekStartsOn + 8) % 7 || 7;
492
+ switch (t) {
493
+ case "c":
494
+ return String(o);
495
+ case "cc":
496
+ return C(o, t.length);
497
+ case "co":
498
+ return r.ordinalNumber(o, {
499
+ unit: "day"
500
+ });
501
+ case "ccc":
502
+ return r.day(i, {
503
+ width: "abbreviated",
504
+ context: "standalone"
505
+ });
506
+ case "ccccc":
507
+ return r.day(i, {
508
+ width: "narrow",
509
+ context: "standalone"
510
+ });
511
+ case "cccccc":
512
+ return r.day(i, {
513
+ width: "short",
514
+ context: "standalone"
515
+ });
516
+ case "cccc":
517
+ default:
518
+ return r.day(i, {
519
+ width: "wide",
520
+ context: "standalone"
521
+ });
522
+ }
523
+ },
524
+ // ISO day of week
525
+ i: function(e, t, r) {
526
+ var a = e.getUTCDay(), i = a === 0 ? 7 : a;
527
+ switch (t) {
528
+ case "i":
529
+ return String(i);
530
+ case "ii":
531
+ return C(i, t.length);
532
+ case "io":
533
+ return r.ordinalNumber(i, {
534
+ unit: "day"
535
+ });
536
+ case "iii":
537
+ return r.day(a, {
538
+ width: "abbreviated",
539
+ context: "formatting"
540
+ });
541
+ case "iiiii":
542
+ return r.day(a, {
543
+ width: "narrow",
544
+ context: "formatting"
545
+ });
546
+ case "iiiiii":
547
+ return r.day(a, {
548
+ width: "short",
549
+ context: "formatting"
550
+ });
551
+ case "iiii":
552
+ default:
553
+ return r.day(a, {
554
+ width: "wide",
555
+ context: "formatting"
556
+ });
557
+ }
558
+ },
559
+ // AM or PM
560
+ a: function(e, t, r) {
561
+ var a = e.getUTCHours(), i = a / 12 >= 1 ? "pm" : "am";
562
+ switch (t) {
563
+ case "a":
564
+ case "aa":
565
+ return r.dayPeriod(i, {
566
+ width: "abbreviated",
567
+ context: "formatting"
568
+ });
569
+ case "aaa":
570
+ return r.dayPeriod(i, {
571
+ width: "abbreviated",
572
+ context: "formatting"
573
+ }).toLowerCase();
574
+ case "aaaaa":
575
+ return r.dayPeriod(i, {
576
+ width: "narrow",
577
+ context: "formatting"
578
+ });
579
+ case "aaaa":
580
+ default:
581
+ return r.dayPeriod(i, {
582
+ width: "wide",
583
+ context: "formatting"
584
+ });
585
+ }
586
+ },
587
+ // AM, PM, midnight, noon
588
+ b: function(e, t, r) {
589
+ var a = e.getUTCHours(), i;
590
+ switch (a === 12 ? i = ue.noon : a === 0 ? i = ue.midnight : i = a / 12 >= 1 ? "pm" : "am", t) {
591
+ case "b":
592
+ case "bb":
593
+ return r.dayPeriod(i, {
594
+ width: "abbreviated",
595
+ context: "formatting"
596
+ });
597
+ case "bbb":
598
+ return r.dayPeriod(i, {
599
+ width: "abbreviated",
600
+ context: "formatting"
601
+ }).toLowerCase();
602
+ case "bbbbb":
603
+ return r.dayPeriod(i, {
604
+ width: "narrow",
605
+ context: "formatting"
606
+ });
607
+ case "bbbb":
608
+ default:
609
+ return r.dayPeriod(i, {
610
+ width: "wide",
611
+ context: "formatting"
612
+ });
613
+ }
614
+ },
615
+ // in the morning, in the afternoon, in the evening, at night
616
+ B: function(e, t, r) {
617
+ var a = e.getUTCHours(), i;
618
+ switch (a >= 17 ? i = ue.evening : a >= 12 ? i = ue.afternoon : a >= 4 ? i = ue.morning : i = ue.night, t) {
619
+ case "B":
620
+ case "BB":
621
+ case "BBB":
622
+ return r.dayPeriod(i, {
623
+ width: "abbreviated",
624
+ context: "formatting"
625
+ });
626
+ case "BBBBB":
627
+ return r.dayPeriod(i, {
628
+ width: "narrow",
629
+ context: "formatting"
630
+ });
631
+ case "BBBB":
632
+ default:
633
+ return r.dayPeriod(i, {
634
+ width: "wide",
635
+ context: "formatting"
636
+ });
637
+ }
638
+ },
639
+ // Hour [1-12]
640
+ h: function(e, t, r) {
641
+ if (t === "ho") {
642
+ var a = e.getUTCHours() % 12;
643
+ return a === 0 && (a = 12), r.ordinalNumber(a, {
644
+ unit: "hour"
645
+ });
646
+ }
647
+ return ne.h(e, t);
648
+ },
649
+ // Hour [0-23]
650
+ H: function(e, t, r) {
651
+ return t === "Ho" ? r.ordinalNumber(e.getUTCHours(), {
652
+ unit: "hour"
653
+ }) : ne.H(e, t);
654
+ },
655
+ // Hour [0-11]
656
+ K: function(e, t, r) {
657
+ var a = e.getUTCHours() % 12;
658
+ return t === "Ko" ? r.ordinalNumber(a, {
659
+ unit: "hour"
660
+ }) : C(a, t.length);
661
+ },
662
+ // Hour [1-24]
663
+ k: function(e, t, r) {
664
+ var a = e.getUTCHours();
665
+ return a === 0 && (a = 24), t === "ko" ? r.ordinalNumber(a, {
666
+ unit: "hour"
667
+ }) : C(a, t.length);
668
+ },
669
+ // Minute
670
+ m: function(e, t, r) {
671
+ return t === "mo" ? r.ordinalNumber(e.getUTCMinutes(), {
672
+ unit: "minute"
673
+ }) : ne.m(e, t);
674
+ },
675
+ // Second
676
+ s: function(e, t, r) {
677
+ return t === "so" ? r.ordinalNumber(e.getUTCSeconds(), {
678
+ unit: "second"
679
+ }) : ne.s(e, t);
680
+ },
681
+ // Fraction of second
682
+ S: function(e, t) {
683
+ return ne.S(e, t);
684
+ },
685
+ // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
686
+ X: function(e, t, r, a) {
687
+ var i = a._originalDate || e, o = i.getTimezoneOffset();
688
+ if (o === 0)
689
+ return "Z";
690
+ switch (t) {
691
+ case "X":
692
+ return ze(o);
693
+ case "XXXX":
694
+ case "XX":
695
+ return oe(o);
696
+ case "XXXXX":
697
+ case "XXX":
698
+ default:
699
+ return oe(o, ":");
700
+ }
701
+ },
702
+ // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
703
+ x: function(e, t, r, a) {
704
+ var i = a._originalDate || e, o = i.getTimezoneOffset();
705
+ switch (t) {
706
+ case "x":
707
+ return ze(o);
708
+ case "xxxx":
709
+ case "xx":
710
+ return oe(o);
711
+ case "xxxxx":
712
+ case "xxx":
713
+ default:
714
+ return oe(o, ":");
715
+ }
716
+ },
717
+ // Timezone (GMT)
718
+ O: function(e, t, r, a) {
719
+ var i = a._originalDate || e, o = i.getTimezoneOffset();
720
+ switch (t) {
721
+ case "O":
722
+ case "OO":
723
+ case "OOO":
724
+ return "GMT" + Ye(o, ":");
725
+ case "OOOO":
726
+ default:
727
+ return "GMT" + oe(o, ":");
728
+ }
729
+ },
730
+ // Timezone (specific non-location)
731
+ z: function(e, t, r, a) {
732
+ var i = a._originalDate || e, o = i.getTimezoneOffset();
733
+ switch (t) {
734
+ case "z":
735
+ case "zz":
736
+ case "zzz":
737
+ return "GMT" + Ye(o, ":");
738
+ case "zzzz":
739
+ default:
740
+ return "GMT" + oe(o, ":");
741
+ }
742
+ },
743
+ // Seconds timestamp
744
+ t: function(e, t, r, a) {
745
+ var i = a._originalDate || e, o = Math.floor(i.getTime() / 1e3);
746
+ return C(o, t.length);
747
+ },
748
+ // Milliseconds timestamp
749
+ T: function(e, t, r, a) {
750
+ var i = a._originalDate || e, o = i.getTime();
751
+ return C(o, t.length);
752
+ }
753
+ };
754
+ function Ye(n, e) {
755
+ var t = n > 0 ? "-" : "+", r = Math.abs(n), a = Math.floor(r / 60), i = r % 60;
756
+ if (i === 0)
757
+ return t + String(a);
758
+ var o = e;
759
+ return t + String(a) + o + C(i, 2);
760
+ }
761
+ function ze(n, e) {
762
+ if (n % 60 === 0) {
763
+ var t = n > 0 ? "-" : "+";
764
+ return t + C(Math.abs(n) / 60, 2);
765
+ }
766
+ return oe(n, e);
767
+ }
768
+ function oe(n, e) {
769
+ var t = e || "", r = n > 0 ? "-" : "+", a = Math.abs(n), i = C(Math.floor(a / 60), 2), o = C(a % 60, 2);
770
+ return r + i + t + o;
771
+ }
772
+ var Ee = function(e, t) {
773
+ switch (e) {
774
+ case "P":
775
+ return t.date({
776
+ width: "short"
777
+ });
778
+ case "PP":
779
+ return t.date({
780
+ width: "medium"
781
+ });
782
+ case "PPP":
783
+ return t.date({
784
+ width: "long"
785
+ });
786
+ case "PPPP":
787
+ default:
788
+ return t.date({
789
+ width: "full"
790
+ });
791
+ }
792
+ }, Ke = function(e, t) {
793
+ switch (e) {
794
+ case "p":
795
+ return t.time({
796
+ width: "short"
797
+ });
798
+ case "pp":
799
+ return t.time({
800
+ width: "medium"
801
+ });
802
+ case "ppp":
803
+ return t.time({
804
+ width: "long"
805
+ });
806
+ case "pppp":
807
+ default:
808
+ return t.time({
809
+ width: "full"
810
+ });
811
+ }
812
+ }, Ft = function(e, t) {
813
+ var r = e.match(/(P+)(p+)?/) || [], a = r[1], i = r[2];
814
+ if (!i)
815
+ return Ee(e, t);
816
+ var o;
817
+ switch (a) {
818
+ case "P":
819
+ o = t.dateTime({
820
+ width: "short"
821
+ });
822
+ break;
823
+ case "PP":
824
+ o = t.dateTime({
825
+ width: "medium"
826
+ });
827
+ break;
828
+ case "PPP":
829
+ o = t.dateTime({
830
+ width: "long"
831
+ });
832
+ break;
833
+ case "PPPP":
834
+ default:
835
+ o = t.dateTime({
836
+ width: "full"
837
+ });
838
+ break;
839
+ }
840
+ return o.replace("{{date}}", Ee(a, t)).replace("{{time}}", Ke(i, t));
841
+ }, Nt = {
842
+ p: Ke,
843
+ P: Ft
844
+ }, Rt = ["D", "DD"], qt = ["YY", "YYYY"];
845
+ function Ht(n) {
846
+ return Rt.indexOf(n) !== -1;
847
+ }
848
+ function Bt(n) {
849
+ return qt.indexOf(n) !== -1;
850
+ }
851
+ function Le(n, e, t) {
852
+ if (n === "YYYY")
853
+ 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"));
854
+ if (n === "YY")
855
+ 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"));
856
+ if (n === "D")
857
+ 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"));
858
+ if (n === "DD")
859
+ 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"));
860
+ }
861
+ var At = {
862
+ lessThanXSeconds: {
863
+ one: "less than a second",
864
+ other: "less than {{count}} seconds"
865
+ },
866
+ xSeconds: {
867
+ one: "1 second",
868
+ other: "{{count}} seconds"
869
+ },
870
+ halfAMinute: "half a minute",
871
+ lessThanXMinutes: {
872
+ one: "less than a minute",
873
+ other: "less than {{count}} minutes"
874
+ },
875
+ xMinutes: {
876
+ one: "1 minute",
877
+ other: "{{count}} minutes"
878
+ },
879
+ aboutXHours: {
880
+ one: "about 1 hour",
881
+ other: "about {{count}} hours"
882
+ },
883
+ xHours: {
884
+ one: "1 hour",
885
+ other: "{{count}} hours"
886
+ },
887
+ xDays: {
888
+ one: "1 day",
889
+ other: "{{count}} days"
890
+ },
891
+ aboutXWeeks: {
892
+ one: "about 1 week",
893
+ other: "about {{count}} weeks"
894
+ },
895
+ xWeeks: {
896
+ one: "1 week",
897
+ other: "{{count}} weeks"
898
+ },
899
+ aboutXMonths: {
900
+ one: "about 1 month",
901
+ other: "about {{count}} months"
902
+ },
903
+ xMonths: {
904
+ one: "1 month",
905
+ other: "{{count}} months"
906
+ },
907
+ aboutXYears: {
908
+ one: "about 1 year",
909
+ other: "about {{count}} years"
910
+ },
911
+ xYears: {
912
+ one: "1 year",
913
+ other: "{{count}} years"
914
+ },
915
+ overXYears: {
916
+ one: "over 1 year",
917
+ other: "over {{count}} years"
918
+ },
919
+ almostXYears: {
920
+ one: "almost 1 year",
921
+ other: "almost {{count}} years"
922
+ }
923
+ }, jt = function(e, t, r) {
924
+ var a, i = At[e];
925
+ 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;
926
+ };
927
+ function ke(n) {
928
+ return function() {
929
+ 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];
930
+ return r;
931
+ };
932
+ }
933
+ var It = {
934
+ full: "EEEE, MMMM do, y",
935
+ long: "MMMM do, y",
936
+ medium: "MMM d, y",
937
+ short: "MM/dd/yyyy"
938
+ }, Gt = {
939
+ full: "h:mm:ss a zzzz",
940
+ long: "h:mm:ss a z",
941
+ medium: "h:mm:ss a",
942
+ short: "h:mm a"
943
+ }, Qt = {
944
+ full: "{{date}} 'at' {{time}}",
945
+ long: "{{date}} 'at' {{time}}",
946
+ medium: "{{date}}, {{time}}",
947
+ short: "{{date}}, {{time}}"
948
+ }, Xt = {
949
+ date: ke({
950
+ formats: It,
951
+ defaultWidth: "full"
952
+ }),
953
+ time: ke({
954
+ formats: Gt,
955
+ defaultWidth: "full"
956
+ }),
957
+ dateTime: ke({
958
+ formats: Qt,
959
+ defaultWidth: "full"
960
+ })
961
+ }, Vt = {
962
+ lastWeek: "'last' eeee 'at' p",
963
+ yesterday: "'yesterday at' p",
964
+ today: "'today at' p",
965
+ tomorrow: "'tomorrow at' p",
966
+ nextWeek: "eeee 'at' p",
967
+ other: "P"
968
+ }, Zt = function(e, t, r, a) {
969
+ return Vt[e];
970
+ };
971
+ function me(n) {
972
+ return function(e, t) {
973
+ var r = t != null && t.context ? String(t.context) : "standalone", a;
974
+ if (r === "formatting" && n.formattingValues) {
975
+ var i = n.defaultFormattingWidth || n.defaultWidth, o = t != null && t.width ? String(t.width) : i;
976
+ a = n.formattingValues[o] || n.formattingValues[i];
977
+ } else {
978
+ var l = n.defaultWidth, d = t != null && t.width ? String(t.width) : n.defaultWidth;
979
+ a = n.values[d] || n.values[l];
980
+ }
981
+ var u = n.argumentCallback ? n.argumentCallback(e) : e;
982
+ return a[u];
983
+ };
984
+ }
985
+ var Jt = {
986
+ narrow: ["B", "A"],
987
+ abbreviated: ["BC", "AD"],
988
+ wide: ["Before Christ", "Anno Domini"]
989
+ }, Kt = {
990
+ narrow: ["1", "2", "3", "4"],
991
+ abbreviated: ["Q1", "Q2", "Q3", "Q4"],
992
+ wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
993
+ }, $t = {
994
+ narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
995
+ abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
996
+ wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
997
+ }, en = {
998
+ narrow: ["S", "M", "T", "W", "T", "F", "S"],
999
+ short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
1000
+ abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
1001
+ wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
1002
+ }, tn = {
1003
+ narrow: {
1004
+ am: "a",
1005
+ pm: "p",
1006
+ midnight: "mi",
1007
+ noon: "n",
1008
+ morning: "morning",
1009
+ afternoon: "afternoon",
1010
+ evening: "evening",
1011
+ night: "night"
1012
+ },
1013
+ abbreviated: {
1014
+ am: "AM",
1015
+ pm: "PM",
1016
+ midnight: "midnight",
1017
+ noon: "noon",
1018
+ morning: "morning",
1019
+ afternoon: "afternoon",
1020
+ evening: "evening",
1021
+ night: "night"
1022
+ },
1023
+ wide: {
1024
+ am: "a.m.",
1025
+ pm: "p.m.",
1026
+ midnight: "midnight",
1027
+ noon: "noon",
1028
+ morning: "morning",
1029
+ afternoon: "afternoon",
1030
+ evening: "evening",
1031
+ night: "night"
1032
+ }
1033
+ }, nn = {
1034
+ narrow: {
1035
+ am: "a",
1036
+ pm: "p",
1037
+ midnight: "mi",
1038
+ noon: "n",
1039
+ morning: "in the morning",
1040
+ afternoon: "in the afternoon",
1041
+ evening: "in the evening",
1042
+ night: "at night"
1043
+ },
1044
+ abbreviated: {
1045
+ am: "AM",
1046
+ pm: "PM",
1047
+ midnight: "midnight",
1048
+ noon: "noon",
1049
+ morning: "in the morning",
1050
+ afternoon: "in the afternoon",
1051
+ evening: "in the evening",
1052
+ night: "at night"
1053
+ },
1054
+ wide: {
1055
+ am: "a.m.",
1056
+ pm: "p.m.",
1057
+ midnight: "midnight",
1058
+ noon: "noon",
1059
+ morning: "in the morning",
1060
+ afternoon: "in the afternoon",
1061
+ evening: "in the evening",
1062
+ night: "at night"
1063
+ }
1064
+ }, rn = function(e, t) {
1065
+ var r = Number(e), a = r % 100;
1066
+ if (a > 20 || a < 10)
1067
+ switch (a % 10) {
1068
+ case 1:
1069
+ return r + "st";
1070
+ case 2:
1071
+ return r + "nd";
1072
+ case 3:
1073
+ return r + "rd";
1074
+ }
1075
+ return r + "th";
1076
+ }, an = {
1077
+ ordinalNumber: rn,
1078
+ era: me({
1079
+ values: Jt,
1080
+ defaultWidth: "wide"
1081
+ }),
1082
+ quarter: me({
1083
+ values: Kt,
1084
+ defaultWidth: "wide",
1085
+ argumentCallback: function(e) {
1086
+ return e - 1;
1087
+ }
1088
+ }),
1089
+ month: me({
1090
+ values: $t,
1091
+ defaultWidth: "wide"
1092
+ }),
1093
+ day: me({
1094
+ values: en,
1095
+ defaultWidth: "wide"
1096
+ }),
1097
+ dayPeriod: me({
1098
+ values: tn,
1099
+ defaultWidth: "wide",
1100
+ formattingValues: nn,
1101
+ defaultFormattingWidth: "wide"
1102
+ })
1103
+ };
1104
+ function he(n) {
1105
+ return function(e) {
1106
+ 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);
1107
+ if (!i)
1108
+ return null;
1109
+ var o = i[0], l = r && n.parsePatterns[r] || n.parsePatterns[n.defaultParseWidth], d = Array.isArray(l) ? sn(l, function(g) {
1110
+ return g.test(o);
1111
+ }) : on(l, function(g) {
1112
+ return g.test(o);
1113
+ }), u;
1114
+ u = n.valueCallback ? n.valueCallback(d) : d, u = t.valueCallback ? t.valueCallback(u) : u;
1115
+ var m = e.slice(o.length);
1116
+ return {
1117
+ value: u,
1118
+ rest: m
1119
+ };
1120
+ };
1121
+ }
1122
+ function on(n, e) {
1123
+ for (var t in n)
1124
+ if (n.hasOwnProperty(t) && e(n[t]))
1125
+ return t;
1126
+ }
1127
+ function sn(n, e) {
1128
+ for (var t = 0; t < n.length; t++)
1129
+ if (e(n[t]))
1130
+ return t;
1131
+ }
1132
+ function ln(n) {
1133
+ return function(e) {
1134
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = e.match(n.matchPattern);
1135
+ if (!r)
1136
+ return null;
1137
+ var a = r[0], i = e.match(n.parsePattern);
1138
+ if (!i)
1139
+ return null;
1140
+ var o = n.valueCallback ? n.valueCallback(i[0]) : i[0];
1141
+ o = t.valueCallback ? t.valueCallback(o) : o;
1142
+ var l = e.slice(a.length);
1143
+ return {
1144
+ value: o,
1145
+ rest: l
1146
+ };
1147
+ };
1148
+ }
1149
+ var un = /^(\d+)(th|st|nd|rd)?/i, cn = /\d+/i, dn = {
1150
+ narrow: /^(b|a)/i,
1151
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
1152
+ wide: /^(before christ|before common era|anno domini|common era)/i
1153
+ }, fn = {
1154
+ any: [/^b/i, /^(a|c)/i]
1155
+ }, mn = {
1156
+ narrow: /^[1234]/i,
1157
+ abbreviated: /^q[1234]/i,
1158
+ wide: /^[1234](th|st|nd|rd)? quarter/i
1159
+ }, hn = {
1160
+ any: [/1/i, /2/i, /3/i, /4/i]
1161
+ }, gn = {
1162
+ narrow: /^[jfmasond]/i,
1163
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
1164
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
1165
+ }, vn = {
1166
+ 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],
1167
+ 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]
1168
+ }, pn = {
1169
+ narrow: /^[smtwf]/i,
1170
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
1171
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
1172
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
1173
+ }, bn = {
1174
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
1175
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
1176
+ }, wn = {
1177
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
1178
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
1179
+ }, _n = {
1180
+ any: {
1181
+ am: /^a/i,
1182
+ pm: /^p/i,
1183
+ midnight: /^mi/i,
1184
+ noon: /^no/i,
1185
+ morning: /morning/i,
1186
+ afternoon: /afternoon/i,
1187
+ evening: /evening/i,
1188
+ night: /night/i
1189
+ }
1190
+ }, yn = {
1191
+ ordinalNumber: ln({
1192
+ matchPattern: un,
1193
+ parsePattern: cn,
1194
+ valueCallback: function(e) {
1195
+ return parseInt(e, 10);
1196
+ }
1197
+ }),
1198
+ era: he({
1199
+ matchPatterns: dn,
1200
+ defaultMatchWidth: "wide",
1201
+ parsePatterns: fn,
1202
+ defaultParseWidth: "any"
1203
+ }),
1204
+ quarter: he({
1205
+ matchPatterns: mn,
1206
+ defaultMatchWidth: "wide",
1207
+ parsePatterns: hn,
1208
+ defaultParseWidth: "any",
1209
+ valueCallback: function(e) {
1210
+ return e + 1;
1211
+ }
1212
+ }),
1213
+ month: he({
1214
+ matchPatterns: gn,
1215
+ defaultMatchWidth: "wide",
1216
+ parsePatterns: vn,
1217
+ defaultParseWidth: "any"
1218
+ }),
1219
+ day: he({
1220
+ matchPatterns: pn,
1221
+ defaultMatchWidth: "wide",
1222
+ parsePatterns: bn,
1223
+ defaultParseWidth: "any"
1224
+ }),
1225
+ dayPeriod: he({
1226
+ matchPatterns: wn,
1227
+ defaultMatchWidth: "any",
1228
+ parsePatterns: _n,
1229
+ defaultParseWidth: "any"
1230
+ })
1231
+ }, xn = {
1232
+ code: "en-US",
1233
+ formatDistance: jt,
1234
+ formatLong: Xt,
1235
+ formatRelative: Zt,
1236
+ localize: an,
1237
+ match: yn,
1238
+ options: {
1239
+ weekStartsOn: 0,
1240
+ firstWeekContainsDate: 1
1241
+ }
1242
+ }, kn = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Cn = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Tn = /^'([^]*?)'?$/, Mn = /''/g, On = /[a-zA-Z]/;
1243
+ function Pn(n, e, t) {
1244
+ var r, a, i, o, l, d, u, m, g, f, b, p, _, w;
1245
+ A(2, arguments);
1246
+ var x = String(e), T = ye(), O = (r = (a = void 0) !== null && a !== void 0 ? a : T.locale) !== null && r !== void 0 ? r : xn, Y = se((i = (o = (l = (d = void 0) !== null && d !== void 0 ? d : void 0) !== null && l !== void 0 ? l : T.firstWeekContainsDate) !== null && o !== void 0 ? o : (u = T.locale) === null || u === void 0 || (m = u.options) === null || m === void 0 ? void 0 : m.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
1247
+ if (!(Y >= 1 && Y <= 7))
1248
+ throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
1249
+ var M = se((g = (f = (b = (p = void 0) !== null && p !== void 0 ? p : void 0) !== null && b !== void 0 ? b : T.weekStartsOn) !== null && f !== void 0 ? f : (_ = T.locale) === null || _ === void 0 || (w = _.options) === null || w === void 0 ? void 0 : w.weekStartsOn) !== null && g !== void 0 ? g : 0);
1250
+ if (!(M >= 0 && M <= 6))
1251
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
1252
+ if (!O.localize)
1253
+ throw new RangeError("locale must contain localize property");
1254
+ if (!O.formatLong)
1255
+ throw new RangeError("locale must contain formatLong property");
1256
+ var L = V(n);
1257
+ if (!Mt(L))
1258
+ throw new RangeError("Invalid time value");
1259
+ var G = Ct(L), Z = Ot(L, G), z = {
1260
+ firstWeekContainsDate: Y,
1261
+ weekStartsOn: M,
1262
+ locale: O,
1263
+ _originalDate: L
1264
+ }, j = x.match(Cn).map(function(P) {
1265
+ var F = P[0];
1266
+ if (F === "p" || F === "P") {
1267
+ var q = Nt[F];
1268
+ return q(P, O.formatLong);
1269
+ }
1270
+ return P;
1271
+ }).join("").match(kn).map(function(P) {
1272
+ if (P === "''")
1273
+ return "'";
1274
+ var F = P[0];
1275
+ if (F === "'")
1276
+ return Dn(P);
1277
+ var q = Lt[F];
1278
+ if (q)
1279
+ return Bt(P) && Le(P, e, String(n)), Ht(P) && Le(P, e, String(n)), q(Z, P, O.localize, z);
1280
+ if (F.match(On))
1281
+ throw new RangeError("Format string contains an unescaped latin alphabet character `" + F + "`");
1282
+ return P;
1283
+ }).join("");
1284
+ return j;
1285
+ }
1286
+ function Dn(n) {
1287
+ var e = n.match(Tn);
1288
+ return e ? e[1].replace(Mn, "'") : n;
1289
+ }
1290
+ var ge = /* @__PURE__ */ ((n) => (n.lotteries = "lotteries", n.outcome = "outcome", n.draw = "draw", n))(ge || {}), ce = /* @__PURE__ */ ((n) => (n.en = "en", n.default = "*", n))(ce || {});
1291
+ const Sn = (n) => X(void 0, null, function* () {
1292
+ const { path: e, params: t = {}, options: r = {} } = n, a = new URL(e);
1293
+ return Object.keys(t).map((i) => {
1294
+ a.searchParams.append(i, t[i]);
1295
+ }), yield Wn(a, r);
1296
+ }), Wn = (t, ...r) => X(void 0, [t, ...r], function* (n, e = {}) {
1297
+ let a;
1298
+ try {
1299
+ a = yield fetch(n, e), a = yield a.text(), a = JSON.parse(a);
1300
+ } catch (i) {
1301
+ throw new Error(i.message);
1302
+ }
1303
+ return a;
1304
+ }), Fe = (n, e, t) => X(void 0, null, function* () {
1305
+ const { session: r } = t, a = {
1306
+ headers: xe({
1307
+ "Content-Type": "application/json",
1308
+ accept: "text/plain"
1309
+ }, r ? { "x-SessionId": r } : {})
1310
+ }, o = {
1311
+ [ge.lotteries]: () => ({
1312
+ path: "/wof/lotteries",
1313
+ params: {
1314
+ filter: "Types[]=flipCoin"
1315
+ },
1316
+ options: a
1317
+ }),
1318
+ [ge.outcome]: () => {
1319
+ const { id: l } = t;
1320
+ return {
1321
+ path: `/wof/outcome/${l}`,
1322
+ params: {
1323
+ filter: "Types[]=flipCoin"
1324
+ },
1325
+ options: a
1326
+ };
1327
+ }
1328
+ }[n]();
1329
+ return o.path = e + "/v1" + o.path, yield Sn(o);
1330
+ }), Ne = {
1331
+ lotteries: (n, e) => X(void 0, null, function* () {
1332
+ const t = yield Fe(ge.lotteries, n, { session: e });
1333
+ return (t == null ? void 0 : t.items) || [];
1334
+ }),
1335
+ outcome: (n, e, t) => X(void 0, null, function* () {
1336
+ return yield Fe(ge.outcome, n, { session: e, id: t });
1337
+ })
1338
+ }, Un = (n) => {
1339
+ var e;
1340
+ return ((e = n == null ? void 0 : n.current) == null ? void 0 : e.remainingTimes) > 0 && (n == null ? void 0 : n.next);
1341
+ };
1342
+ function Re(n, e) {
1343
+ at(n, e);
1344
+ }
1345
+ function Yn(n) {
1346
+ it.set(n);
1347
+ }
1348
+ const qe = {
1349
+ en: {
1350
+ headerTitle: "Coin Royales",
1351
+ infoTooltip: "Flip a virtual coin and take a chance to win!",
1352
+ play: "Play",
1353
+ history: "History",
1354
+ rules: "Rules",
1355
+ noCoinYet: "There are no available Coin Royale",
1356
+ noHistoryYet: "There is no history yet",
1357
+ more: "More",
1358
+ rulesDescription: "Coin Royale is a particularly interesting game, will bring you a lot of surprises; When you obtained the Coin Royale, means you got a chance to flip the Coin, and if you are lucky, you can get the surprise prize.",
1359
+ terms: "Terms&Conditions link",
1360
+ prizeAgenda: "Prize agenda",
1361
+ tournamentTicket: "Tournament ticket",
1362
+ freeSpins: "Free spins",
1363
+ bonusMoney: "Bonus Money",
1364
+ loyaltyPoints: "Loyalty Points&Coins",
1365
+ luckyWheel: "LuckyWheel",
1366
+ mysteryChest: "Mystery Chest",
1367
+ coinRoyale: "Coin Royale",
1368
+ customRewards: "Custom Rewards"
1369
+ }
1370
+ };
1371
+ function zn(n) {
1372
+ ut(n, "svelte-rd1kop", `.main::-webkit-scrollbar{width:0.25rem}.main::-webkit-scrollbar-track{background:#1e1e24}.main::-webkit-scrollbar-thumb{color:#93CAED}.mobile.drawer{width:100%;height:100%;border-top-left-radius:28px;border-top-right-radius:28px;padding:20px 28px}.mobile .tooltip-backdrop{padding:60px 20px 0;border-top-left-radius:28px;border-top-right-radius:28px}.mobile .tooltip-backdrop .tooltip{padding:20px;font-size:var(--emw--font-size-x-small, 12px)}.mobile .icon-button{width:24px;height:24px}.mobile .coins-header__title{font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500);line-height:14px}.mobile .coins-tabs{margin:20px 0}.mobile .coins-tabs__container{border-bottom:1px solid var(--emw--color-secondary, #729787)}.mobile .coins-tabs__tab{font-size:var(--emw--font-size-x-small, 12px);line-height:15px}.mobile .coins-tabs__tab.active{border-bottom:1px solid}.mobile .coins-list{gap:16px}.mobile .coins-list__item{font-weight:var(--emw--font-weight-normal, 400);padding:20px;font-size:var(--emw--font-size-x-small, 12px);line-height:15px;border-radius:var(--emw--border-radius-large, 16px);height:56px}.mobile .coins-list__item__keys{gap:5px;font-size:var(--emw--font-size-medium, 16px)}.mobile .coins-rules{gap:24px}.mobile .coins-rules__description{font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .coins-rules__terms{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 12px)}.mobile .coins-rules__prize-title{font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .coins-rules__list{padding-inline-start:15px;margin:5px 0 0}.mobile .coins-rules__list__item{margin-bottom:5px;font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .coins-empty{margin-top:50px;font-size:var(--emw--font-size-x-small, 12px)}.mobile .coins-history__title{font-size:var(--emw--font-size-x-small, 12px);line-height:14px;margin-bottom:12px}.mobile .coins-history__list{margin-bottom:32px}.mobile .coins-history__list__item{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 12px);line-height:14px;margin-bottom:12px}.mobile .coins-history__list__item .name img{width:14px;height:14px}.drawer{position:fixed;left:50%;transform:translateX(-50%);background:linear-gradient(180deg, var(--emw--color-background, #213841) 0%, var(--emw--color-background-secondary, #0c1a1c) 100%);box-sizing:border-box;z-index:100;bottom:0;width:60%;height:90%;border-top-left-radius:72px;border-top-right-radius:72px;padding:40px 80px}.overlay{border:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--emw--color-gray-transparency-20, rgba(21, 43, 48, 0.5019607843));z-index:0;bottom:0;opacity:1;transition:opacity 0.5s ease-in-out}.icon-button{width:30px;height:30px;border:0px;cursor:pointer}.icon-button.help{background:center/100% no-repeat;background-image:url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.708 4.583a7.125 7.125 0 1 0 0 14.25 7.125 7.125 0 0 0 0-14.25ZM3 11.708a8.708 8.708 0 1 1 17.417 0 8.708 8.708 0 0 1-17.417 0Zm8.913-3.147a1.583 1.583 0 0 0-1.762 1.035.792.792 0 0 1-1.493-.525 3.167 3.167 0 0 1 6.154 1.055c0 1.211-.899 2.011-1.54 2.439a6.37 6.37 0 0 1-1.335.672l-.028.01-.008.002-.003.001h-.002l-.251-.75.25.751a.792.792 0 0 1-.5-1.502l.011-.004.06-.022a4.778 4.778 0 0 0 .928-.476c.545-.363.834-.75.834-1.122v-.001a1.583 1.583 0 0 0-1.315-1.563Zm-.996 7.106c0-.438.354-.792.791-.792h.008a.792.792 0 1 1 0 1.583h-.008a.792.792 0 0 1-.791-.791Z" fill="%23729787"/></svg>')}.icon-button.close{background:center/100% no-repeat;background-image:url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 6 6 18M6 6l12 12" stroke="%23729787" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>')}.tooltip-backdrop{box-sizing:border-box;z-index:200;position:absolute;width:100%;height:100%;inset:0;background-color:rgba(0, 0, 0, 0.5);padding:90px 30px 0;border-top-left-radius:72px;border-top-right-radius:72px}.tooltip-backdrop .tooltip{border:1px solid var(--emw--button-border-color, #75ffe9);background:var(--emw--color-background, #213841);border-radius:var(--emw--border-radius-large, 8px);line-height:24px;color:var(--emw--color-secondary, #bbb9c3);position:relative;padding:32px;font-size:var(--emw--font-size-medium, 16px)}.tooltip-backdrop .tooltip .icon-button{top:12px;right:12px;position:absolute}.coins-header{display:flex;justify-content:space-between;align-items:center;padding:12px 8px 8px}.coins-header__title{color:var(--emw--color-primary, #d3ffed);font-size:var(--emw--font-size-large, 22px);font-weight:var(--emw--font-weight-bold, 700);line-height:25px}.coins-loader{border-radius:var(--emw--border-radius-large, 16px);overflow:hidden}.coins-tabs{margin:28px 0}.coins-tabs__container{display:flex;position:relative;border-bottom:2px solid var(--emw--color-secondary, #729787)}.coins-tabs__tab{padding:8px 10px;font-weight:var(--emw--font-weight-bold, 700);color:var(--emw--color-gray-300, #729787);cursor:pointer;flex-grow:1;text-align:center;background:transparent;border:none;font-size:var(--emw--font-size-medium, 16px);line-height:18px}.coins-tabs__tab.active{color:var(--emw--color-typography, #fff);border-image-source:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);border-image-slice:1;margin-bottom:-2px;border-bottom:2px solid}.coins-list{max-height:85%;overflow:auto;gap:24px;display:flex;flex-wrap:wrap}.coins-list__item{font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-large, 22px);line-height:25px;padding:35px 48px;border-radius:var(--emw--border-radius-large, 28px);height:110px;color:var(--emw--color-primary, #d3ffed);width:100%;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;background:var(--emw--color-background-secondary, #233e42);border:1px solid var(--emw--button-border-color-secondary, #244346);cursor:pointer}.coins-list__item__keys{display:flex;align-items:center;font-weight:var(--emw--font-weight-bold, 700);background:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;font-size:var(--emw--font-size-large, 22px);gap:7px}.coins-rules{display:flex;flex-flow:column;gap:40px;color:var(--emw--color-primary-variant, #a9ccbe)}.coins-rules__description{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-medium, 16px);line-height:32px}.coins-rules__terms{display:flex;gap:5px;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);border:none;padding:0;cursor:pointer;background:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.coins-rules__terms .arrow-icon{width:14px;height:14px;background:center/100% no-repeat;background-image:url('data:image/svg+xml,<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M4.41 7.744a.833.833 0 0 0 0 1.179l5 5a.833.833 0 0 0 1.18 0l5-5a.833.833 0 1 0-1.18-1.179L10 12.154l-4.41-4.41a.833.833 0 0 0-1.18 0Z" fill="url(%23a)"/><defs><linearGradient id="a" x1="10" y1="7.5" x2="10" y2="14.167" gradientUnits="userSpaceOnUse"><stop stop-color="%2375FFE9"/><stop offset="1" stop-color="%23B2FF6D"/></linearGradient></defs></svg>') no-repeat}.coins-rules__prize-title{color:#ffffff;font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-medium, 16px);line-height:18px}.coins-rules__list{padding-inline-start:25px;margin:15px 0 0}.coins-rules__list__item{font-weight:var(--emw--font-weight-normal, 400);margin-bottom:12px;font-size:var(--emw--font-size-medium, 16px);line-height:32px}.coins-empty{text-align:center;color:var(--emw--color-primary-variant, #a9ccbe);font-weight:var(--emw--font-weight-normal, 400);line-height:24px;margin-top:75px;font-size:var(--emw--font-size-medium, 16px)}.coins-history__title{font-weight:var(--emw--font-weight-bold, 700);color:#ffffff;font-size:var(--emw--font-size-medium, 16px);line-height:18px;margin-bottom:16px}.coins-history__more{border:none;display:flex;gap:4px;padding:0;background:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;cursor:pointer;font-weight:var(--emw--font-weight-medium, 500);font-size:var(--emw--font-size-medium, 16px);line-height:18px}.coins-history__list{margin-bottom:40px;overflow:auto;max-height:215px}.coins-history__list__item{display:flex;color:var(--emw--color-primary-variant, #a9ccbe);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-medium, 16px);line-height:16px;margin-bottom:16px}.coins-history__list__item .index{margin-right:20px}.coins-history__list__item .name{flex-grow:1;margin:0;display:flex;gap:6px}.coins-history__list__item .name img{width:18px;height:18px}`);
1373
+ }
1374
+ function He(n, e, t) {
1375
+ const r = n.slice();
1376
+ return r[36] = e[t], r;
1377
+ }
1378
+ function Be(n, e, t) {
1379
+ const r = n.slice();
1380
+ return r[39] = e[t], r[41] = t, r;
1381
+ }
1382
+ function Ae(n, e, t) {
1383
+ const r = n.slice();
1384
+ return r[33] = e[t], r[35] = t, r;
1385
+ }
1386
+ function je(n) {
1387
+ let e, t, r, a, i, o = (
1388
+ /*$_*/
1389
+ n[10]("infoTooltip") + ""
1390
+ ), l, d, u;
1391
+ return {
1392
+ c() {
1393
+ e = v("div"), t = v("div"), r = v("button"), a = k(), i = v("span"), l = S(o), h(r, "class", "icon-button close"), h(t, "class", "tooltip"), h(e, "class", "tooltip-backdrop");
1394
+ },
1395
+ m(m, g) {
1396
+ B(m, e, g), s(e, t), s(t, r), s(t, a), s(t, i), s(i, l), d || (u = $(
1397
+ r,
1398
+ "click",
1399
+ /*showHideToolip*/
1400
+ n[13]
1401
+ ), d = !0);
1402
+ },
1403
+ p(m, g) {
1404
+ g[0] & /*$_*/
1405
+ 1024 && o !== (o = /*$_*/
1406
+ m[10]("infoTooltip") + "") && D(l, o);
1407
+ },
1408
+ d(m) {
1409
+ m && H(e), d = !1, u();
1410
+ }
1411
+ };
1412
+ }
1413
+ function En(n) {
1414
+ let e, t, r = (
1415
+ /*$_*/
1416
+ n[10]("rulesDescription") + ""
1417
+ ), a, i, o, l, d, u = (
1418
+ /*$_*/
1419
+ n[10]("prizeAgenda") + ""
1420
+ ), m, g, f, b, p = (
1421
+ /*$_*/
1422
+ n[10]("tournamentTicket") + ""
1423
+ ), _, w, x, T = (
1424
+ /*$_*/
1425
+ n[10]("freeSpins") + ""
1426
+ ), O, Y, M, L = (
1427
+ /*$_*/
1428
+ n[10]("bonusMoney") + ""
1429
+ ), G, Z, z, j = (
1430
+ /*$_*/
1431
+ n[10]("loyaltyPoints") + ""
1432
+ ), P, F, q, J = (
1433
+ /*$_*/
1434
+ n[10]("luckyWheel") + ""
1435
+ ), W, re, Q, E = (
1436
+ /*$_*/
1437
+ n[10]("mysteryChest") + ""
1438
+ ), c, y, N, K = (
1439
+ /*$_*/
1440
+ n[10]("coinRoyale") + ""
1441
+ ), ve, ae, ee, ie = (
1442
+ /*$_*/
1443
+ n[10]("customRewards") + ""
1444
+ ), fe, R = (
1445
+ /*hasUrl*/
1446
+ n[8] && Ie(n)
1447
+ );
1448
+ return {
1449
+ c() {
1450
+ e = v("div"), t = v("span"), a = S(r), i = k(), R && R.c(), o = k(), l = v("section"), d = v("span"), m = S(u), g = k(), f = v("ul"), b = v("li"), _ = S(p), w = k(), x = v("li"), O = S(T), Y = k(), M = v("li"), G = S(L), Z = k(), z = v("li"), P = S(j), F = k(), q = v("li"), W = S(J), re = k(), Q = v("li"), c = S(E), y = k(), N = v("li"), ve = S(K), ae = k(), ee = v("li"), fe = S(ie), h(t, "class", "coins-rules__description"), h(d, "class", "coins-rules__prize-title"), h(b, "class", "coins-rules__list__item"), h(x, "class", "coins-rules__list__item"), h(M, "class", "coins-rules__list__item"), h(z, "class", "coins-rules__list__item"), h(q, "class", "coins-rules__list__item"), h(Q, "class", "coins-rules__list__item"), h(N, "class", "coins-rules__list__item"), h(ee, "class", "coins-rules__list__item"), h(f, "class", "coins-rules__list"), h(e, "class", "coins-rules");
1451
+ },
1452
+ m(U, I) {
1453
+ B(U, e, I), s(e, t), s(t, a), s(e, i), R && R.m(e, null), s(e, o), s(e, l), s(l, d), s(d, m), s(l, g), s(l, f), s(f, b), s(b, _), s(f, w), s(f, x), s(x, O), s(f, Y), s(f, M), s(M, G), s(f, Z), s(f, z), s(z, P), s(f, F), s(f, q), s(q, W), s(f, re), s(f, Q), s(Q, c), s(f, y), s(f, N), s(N, ve), s(f, ae), s(f, ee), s(ee, fe);
1454
+ },
1455
+ p(U, I) {
1456
+ I[0] & /*$_*/
1457
+ 1024 && r !== (r = /*$_*/
1458
+ U[10]("rulesDescription") + "") && D(a, r), /*hasUrl*/
1459
+ U[8] ? R ? R.p(U, I) : (R = Ie(U), R.c(), R.m(e, o)) : R && (R.d(1), R = null), I[0] & /*$_*/
1460
+ 1024 && u !== (u = /*$_*/
1461
+ U[10]("prizeAgenda") + "") && D(m, u), I[0] & /*$_*/
1462
+ 1024 && p !== (p = /*$_*/
1463
+ U[10]("tournamentTicket") + "") && D(_, p), I[0] & /*$_*/
1464
+ 1024 && T !== (T = /*$_*/
1465
+ U[10]("freeSpins") + "") && D(O, T), I[0] & /*$_*/
1466
+ 1024 && L !== (L = /*$_*/
1467
+ U[10]("bonusMoney") + "") && D(G, L), I[0] & /*$_*/
1468
+ 1024 && j !== (j = /*$_*/
1469
+ U[10]("loyaltyPoints") + "") && D(P, j), I[0] & /*$_*/
1470
+ 1024 && J !== (J = /*$_*/
1471
+ U[10]("luckyWheel") + "") && D(W, J), I[0] & /*$_*/
1472
+ 1024 && E !== (E = /*$_*/
1473
+ U[10]("mysteryChest") + "") && D(c, E), I[0] & /*$_*/
1474
+ 1024 && K !== (K = /*$_*/
1475
+ U[10]("coinRoyale") + "") && D(ve, K), I[0] & /*$_*/
1476
+ 1024 && ie !== (ie = /*$_*/
1477
+ U[10]("customRewards") + "") && D(fe, ie);
1478
+ },
1479
+ d(U) {
1480
+ U && H(e), R && R.d();
1481
+ }
1482
+ };
1483
+ }
1484
+ function Ln(n) {
1485
+ let e;
1486
+ function t(i, o) {
1487
+ return (
1488
+ /*coinRoyalesHistory*/
1489
+ i[9].length > 0 ? qn : Rn
1490
+ );
1491
+ }
1492
+ let r = t(n), a = r(n);
1493
+ return {
1494
+ c() {
1495
+ a.c(), e = Te();
1496
+ },
1497
+ m(i, o) {
1498
+ a.m(i, o), B(i, e, o);
1499
+ },
1500
+ p(i, o) {
1501
+ r === (r = t(i)) && a ? a.p(i, o) : (a.d(1), a = r(i), a && (a.c(), a.m(e.parentNode, e)));
1502
+ },
1503
+ d(i) {
1504
+ i && H(e), a.d(i);
1505
+ }
1506
+ };
1507
+ }
1508
+ function Fn(n) {
1509
+ let e;
1510
+ function t(i, o) {
1511
+ return (
1512
+ /*coinRoyales*/
1513
+ i[6].length > 0 ? Bn : Hn
1514
+ );
1515
+ }
1516
+ let r = t(n), a = r(n);
1517
+ return {
1518
+ c() {
1519
+ a.c(), e = Te();
1520
+ },
1521
+ m(i, o) {
1522
+ a.m(i, o), B(i, e, o);
1523
+ },
1524
+ p(i, o) {
1525
+ r === (r = t(i)) && a ? a.p(i, o) : (a.d(1), a = r(i), a && (a.c(), a.m(e.parentNode, e)));
1526
+ },
1527
+ d(i) {
1528
+ i && H(e), a.d(i);
1529
+ }
1530
+ };
1531
+ }
1532
+ function Nn(n) {
1533
+ let e;
1534
+ return {
1535
+ c() {
1536
+ e = v("div"), e.innerHTML = '<ui-skeleton structure="rectangle" width="100%" height="110px"></ui-skeleton>', h(e, "class", "coins-loader");
1537
+ },
1538
+ m(t, r) {
1539
+ B(t, e, r);
1540
+ },
1541
+ p: Ce,
1542
+ d(t) {
1543
+ t && H(e);
1544
+ }
1545
+ };
1546
+ }
1547
+ function Ie(n) {
1548
+ let e, t, r = (
1549
+ /*$_*/
1550
+ n[10]("terms") + ""
1551
+ ), a, i, o;
1552
+ return {
1553
+ c() {
1554
+ e = v("a"), t = v("span"), a = S(r), i = k(), o = v("span"), h(o, "class", "arrow-icon"), h(e, "class", "coins-rules__terms"), h(
1555
+ e,
1556
+ "href",
1557
+ /*terms*/
1558
+ n[0]
1559
+ ), h(e, "target", "_blank");
1560
+ },
1561
+ m(l, d) {
1562
+ B(l, e, d), s(e, t), s(t, a), s(e, i), s(e, o);
1563
+ },
1564
+ p(l, d) {
1565
+ d[0] & /*$_*/
1566
+ 1024 && r !== (r = /*$_*/
1567
+ l[10]("terms") + "") && D(a, r), d[0] & /*terms*/
1568
+ 1 && h(
1569
+ e,
1570
+ "href",
1571
+ /*terms*/
1572
+ l[0]
1573
+ );
1574
+ },
1575
+ d(l) {
1576
+ l && H(e);
1577
+ }
1578
+ };
1579
+ }
1580
+ function Rn(n) {
1581
+ let e, t = (
1582
+ /*$_*/
1583
+ n[10]("noHistoryYet") + ""
1584
+ ), r;
1585
+ return {
1586
+ c() {
1587
+ e = v("div"), r = S(t), h(e, "class", "coins-empty");
1588
+ },
1589
+ m(a, i) {
1590
+ B(a, e, i), s(e, r);
1591
+ },
1592
+ p(a, i) {
1593
+ i[0] & /*$_*/
1594
+ 1024 && t !== (t = /*$_*/
1595
+ a[10]("noHistoryYet") + "") && D(r, t);
1596
+ },
1597
+ d(a) {
1598
+ a && H(e);
1599
+ }
1600
+ };
1601
+ }
1602
+ function qn(n) {
1603
+ let e, t = de(
1604
+ /*coinRoyalesHistory*/
1605
+ n[9]
1606
+ ), r = [];
1607
+ for (let a = 0; a < t.length; a += 1)
1608
+ r[a] = Xe(He(n, t, a));
1609
+ return {
1610
+ c() {
1611
+ for (let a = 0; a < r.length; a += 1)
1612
+ r[a].c();
1613
+ e = Te();
1614
+ },
1615
+ m(a, i) {
1616
+ for (let o = 0; o < r.length; o += 1)
1617
+ r[o] && r[o].m(a, i);
1618
+ B(a, e, i);
1619
+ },
1620
+ p(a, i) {
1621
+ if (i[0] & /*showMore, coinRoyalesHistory, $_*/
1622
+ 17920) {
1623
+ t = de(
1624
+ /*coinRoyalesHistory*/
1625
+ a[9]
1626
+ );
1627
+ let o;
1628
+ for (o = 0; o < t.length; o += 1) {
1629
+ const l = He(a, t, o);
1630
+ r[o] ? r[o].p(l, i) : (r[o] = Xe(l), r[o].c(), r[o].m(e.parentNode, e));
1631
+ }
1632
+ for (; o < r.length; o += 1)
1633
+ r[o].d(1);
1634
+ r.length = t.length;
1635
+ }
1636
+ },
1637
+ d(a) {
1638
+ a && H(e), Me(r, a);
1639
+ }
1640
+ };
1641
+ }
1642
+ function Ge(n) {
1643
+ var p, _;
1644
+ let e, t, r, a, i = (
1645
+ /*outcome*/
1646
+ ((p = n[39]) == null ? void 0 : p.name) + ""
1647
+ ), o, l, d, u, m, g, f = (
1648
+ /*outcome*/
1649
+ ((_ = n[39]) == null ? void 0 : _.date) + ""
1650
+ ), b;
1651
+ return {
1652
+ c() {
1653
+ var w;
1654
+ e = v("div"), t = v("span"), t.textContent = `${/*index*/
1655
+ n[41] + 1}`, r = k(), a = v("p"), o = S(i), l = k(), d = v("img"), m = k(), g = v("span"), b = S(f), h(t, "class", "index"), pe(d.src, u = /*outcome*/
1656
+ (w = n[39]) != null && w.state ? Ue : We) || h(d, "src", u), h(d, "alt", ""), h(a, "class", "name"), h(g, "class", "time"), h(e, "class", "coins-history__list__item");
1657
+ },
1658
+ m(w, x) {
1659
+ B(w, e, x), s(e, t), s(e, r), s(e, a), s(a, o), s(a, l), s(a, d), s(e, m), s(e, g), s(g, b);
1660
+ },
1661
+ p(w, x) {
1662
+ var T, O, Y;
1663
+ x[0] & /*coinRoyalesHistory*/
1664
+ 512 && i !== (i = /*outcome*/
1665
+ ((T = w[39]) == null ? void 0 : T.name) + "") && D(o, i), x[0] & /*coinRoyalesHistory*/
1666
+ 512 && !pe(d.src, u = /*outcome*/
1667
+ (O = w[39]) != null && O.state ? Ue : We) && h(d, "src", u), x[0] & /*coinRoyalesHistory*/
1668
+ 512 && f !== (f = /*outcome*/
1669
+ ((Y = w[39]) == null ? void 0 : Y.date) + "") && D(b, f);
1670
+ },
1671
+ d(w) {
1672
+ w && H(e);
1673
+ }
1674
+ };
1675
+ }
1676
+ function Qe(n) {
1677
+ let e, t = (
1678
+ /*$_*/
1679
+ n[10]("more") + ""
1680
+ ), r, a, i, o, l, d;
1681
+ function u() {
1682
+ return (
1683
+ /*click_handler_1*/
1684
+ n[24](
1685
+ /*history*/
1686
+ n[36]
1687
+ )
1688
+ );
1689
+ }
1690
+ return {
1691
+ c() {
1692
+ e = v("button"), r = S(t), a = k(), i = v("img"), pe(i.src, o = yt) || h(i, "src", o), h(i, "alt", "More"), h(e, "class", "coins-history__more");
1693
+ },
1694
+ m(m, g) {
1695
+ B(m, e, g), s(e, r), s(e, a), s(e, i), l || (d = $(e, "click", u), l = !0);
1696
+ },
1697
+ p(m, g) {
1698
+ n = m, g[0] & /*$_*/
1699
+ 1024 && t !== (t = /*$_*/
1700
+ n[10]("more") + "") && D(r, t);
1701
+ },
1702
+ d(m) {
1703
+ m && H(e), l = !1, d();
1704
+ }
1705
+ };
1706
+ }
1707
+ function Xe(n) {
1708
+ var g;
1709
+ let e, t, r = (
1710
+ /*history*/
1711
+ n[36].name + ""
1712
+ ), a, i, o, l, d = de(
1713
+ /*history*/
1714
+ n[36].outcomes.slice(
1715
+ 0,
1716
+ /*history*/
1717
+ n[36].endPos
1718
+ )
1719
+ ), u = [];
1720
+ for (let f = 0; f < d.length; f += 1)
1721
+ u[f] = Ge(Be(n, d, f));
1722
+ let m = (
1723
+ /*history*/
1724
+ ((g = n[36].outcomes) == null ? void 0 : g.length) > 3 && /*history*/
1725
+ n[36].endPos === 3 && Qe(n)
1726
+ );
1727
+ return {
1728
+ c() {
1729
+ e = v("div"), t = v("div"), a = S(r), i = k();
1730
+ for (let f = 0; f < u.length; f += 1)
1731
+ u[f].c();
1732
+ o = k(), m && m.c(), l = k(), h(t, "class", "coins-history__title"), h(e, "class", "coins-history__list");
1733
+ },
1734
+ m(f, b) {
1735
+ B(f, e, b), s(e, t), s(t, a), s(e, i);
1736
+ for (let p = 0; p < u.length; p += 1)
1737
+ u[p] && u[p].m(e, null);
1738
+ s(e, o), m && m.m(e, null), s(e, l);
1739
+ },
1740
+ p(f, b) {
1741
+ var p;
1742
+ if (b[0] & /*coinRoyalesHistory*/
1743
+ 512 && r !== (r = /*history*/
1744
+ f[36].name + "") && D(a, r), b[0] & /*coinRoyalesHistory*/
1745
+ 512) {
1746
+ d = de(
1747
+ /*history*/
1748
+ f[36].outcomes.slice(
1749
+ 0,
1750
+ /*history*/
1751
+ f[36].endPos
1752
+ )
1753
+ );
1754
+ let _;
1755
+ for (_ = 0; _ < d.length; _ += 1) {
1756
+ const w = Be(f, d, _);
1757
+ u[_] ? u[_].p(w, b) : (u[_] = Ge(w), u[_].c(), u[_].m(e, o));
1758
+ }
1759
+ for (; _ < u.length; _ += 1)
1760
+ u[_].d(1);
1761
+ u.length = d.length;
1762
+ }
1763
+ /*history*/
1764
+ ((p = f[36].outcomes) == null ? void 0 : p.length) > 3 && /*history*/
1765
+ f[36].endPos === 3 ? m ? m.p(f, b) : (m = Qe(f), m.c(), m.m(e, l)) : m && (m.d(1), m = null);
1766
+ },
1767
+ d(f) {
1768
+ f && H(e), Me(u, f), m && m.d();
1769
+ }
1770
+ };
1771
+ }
1772
+ function Hn(n) {
1773
+ let e, t = (
1774
+ /*$_*/
1775
+ n[10]("noCoinYet") + ""
1776
+ ), r;
1777
+ return {
1778
+ c() {
1779
+ e = v("div"), r = S(t), h(e, "class", "coins-empty");
1780
+ },
1781
+ m(a, i) {
1782
+ B(a, e, i), s(e, r);
1783
+ },
1784
+ p(a, i) {
1785
+ i[0] & /*$_*/
1786
+ 1024 && t !== (t = /*$_*/
1787
+ a[10]("noCoinYet") + "") && D(r, t);
1788
+ },
1789
+ d(a) {
1790
+ a && H(e);
1791
+ }
1792
+ };
1793
+ }
1794
+ function Bn(n) {
1795
+ let e, t = de(
1796
+ /*coinRoyales*/
1797
+ n[6]
1798
+ ), r = [];
1799
+ for (let a = 0; a < t.length; a += 1)
1800
+ r[a] = Ve(Ae(n, t, a));
1801
+ return {
1802
+ c() {
1803
+ e = v("div");
1804
+ for (let a = 0; a < r.length; a += 1)
1805
+ r[a].c();
1806
+ h(e, "class", "coins-list");
1807
+ },
1808
+ m(a, i) {
1809
+ B(a, e, i);
1810
+ for (let o = 0; o < r.length; o += 1)
1811
+ r[o] && r[o].m(e, null);
1812
+ },
1813
+ p(a, i) {
1814
+ if (i[0] & /*openCoinDetails, coinRoyales, lang*/
1815
+ 65602) {
1816
+ t = de(
1817
+ /*coinRoyales*/
1818
+ a[6]
1819
+ );
1820
+ let o;
1821
+ for (o = 0; o < t.length; o += 1) {
1822
+ const l = Ae(a, t, o);
1823
+ r[o] ? r[o].p(l, i) : (r[o] = Ve(l), r[o].c(), r[o].m(e, null));
1824
+ }
1825
+ for (; o < r.length; o += 1)
1826
+ r[o].d(1);
1827
+ r.length = t.length;
1828
+ }
1829
+ },
1830
+ d(a) {
1831
+ a && H(e), Me(r, a);
1832
+ }
1833
+ };
1834
+ }
1835
+ function Ve(n) {
1836
+ var w, x;
1837
+ let e, t = (
1838
+ /*coin*/
1839
+ (n[33].program.name[
1840
+ /*lang*/
1841
+ n[1]
1842
+ ] || /*coin*/
1843
+ n[33].program.name[ce.default]) + ""
1844
+ ), r, a, i, o, l, d, u, m = (
1845
+ /*coin*/
1846
+ ((x = (w = n[33]) == null ? void 0 : w.current) == null ? void 0 : x.remainingTimes) + ""
1847
+ ), g, f, b, p;
1848
+ function _() {
1849
+ return (
1850
+ /*click_handler*/
1851
+ n[23](
1852
+ /*coin*/
1853
+ n[33]
1854
+ )
1855
+ );
1856
+ }
1857
+ return {
1858
+ c() {
1859
+ e = v("button"), r = S(t), a = k(), i = v("div"), o = v("img"), d = k(), u = v("span"), g = S(m), f = k(), pe(o.src, l = _t) || h(o, "src", l), h(o, "alt", "Key"), h(i, "class", "coins-list__item__keys"), h(e, "class", "coins-list__item");
1860
+ },
1861
+ m(T, O) {
1862
+ B(T, e, O), s(e, r), s(e, a), s(e, i), s(i, o), s(i, d), s(i, u), s(u, g), s(e, f), b || (p = $(e, "click", _), b = !0);
1863
+ },
1864
+ p(T, O) {
1865
+ var Y, M;
1866
+ n = T, O[0] & /*coinRoyales, lang*/
1867
+ 66 && t !== (t = /*coin*/
1868
+ (n[33].program.name[
1869
+ /*lang*/
1870
+ n[1]
1871
+ ] || /*coin*/
1872
+ n[33].program.name[ce.default]) + "") && D(r, t), O[0] & /*coinRoyales*/
1873
+ 64 && m !== (m = /*coin*/
1874
+ ((M = (Y = n[33]) == null ? void 0 : Y.current) == null ? void 0 : M.remainingTimes) + "") && D(g, m);
1875
+ },
1876
+ d(T) {
1877
+ T && H(e), b = !1, p();
1878
+ }
1879
+ };
1880
+ }
1881
+ function An(n) {
1882
+ let e, t, r, a, i, o, l, d, u, m = (
1883
+ /*$_*/
1884
+ n[10]("headerTitle") + ""
1885
+ ), g, f, b, p, _, w, x, T = (
1886
+ /*$_*/
1887
+ n[10]("play") + ""
1888
+ ), O, Y, M, L = (
1889
+ /*$_*/
1890
+ n[10]("history") + ""
1891
+ ), G, Z, z, j = (
1892
+ /*$_*/
1893
+ n[10]("rules") + ""
1894
+ ), P, F, q, J, W = (
1895
+ /*tooltip*/
1896
+ n[7] && je(n)
1897
+ );
1898
+ function re(c, y) {
1899
+ return (
1900
+ /*coinsLoading*/
1901
+ c[5] || /*historyLoading*/
1902
+ c[4] ? Nn : (
1903
+ /*activeTab*/
1904
+ c[3] === 1 ? Fn : (
1905
+ /*activeTab*/
1906
+ c[3] === 2 ? Ln : En
1907
+ )
1908
+ )
1909
+ );
1910
+ }
1911
+ let Q = re(n), E = Q(n);
1912
+ return {
1913
+ c() {
1914
+ e = v("div"), t = v("button"), r = k(), a = v("div"), W && W.c(), i = k(), o = v("div"), l = v("button"), d = k(), u = v("div"), g = S(m), f = k(), b = v("button"), p = k(), _ = v("div"), w = v("div"), x = v("button"), O = S(T), Y = k(), M = v("button"), G = S(L), Z = k(), z = v("button"), P = S(j), F = k(), E.c(), h(t, "class", "overlay"), h(l, "class", "icon-button help"), h(u, "class", "coins-header__title"), h(b, "class", "icon-button close"), h(o, "class", "coins-header"), h(x, "data-index", "1"), h(x, "class", "coins-tabs__tab"), le(
1915
+ x,
1916
+ "active",
1917
+ /*activeTab*/
1918
+ n[3] === 1
1919
+ ), h(M, "data-index", "2"), h(M, "class", "coins-tabs__tab"), le(
1920
+ M,
1921
+ "active",
1922
+ /*activeTab*/
1923
+ n[3] === 2
1924
+ ), h(z, "data-index", "3"), h(z, "class", "coins-tabs__tab"), le(
1925
+ z,
1926
+ "active",
1927
+ /*activeTab*/
1928
+ n[3] === 3
1929
+ ), h(w, "class", "coins-tabs__container"), h(_, "class", "coins-tabs"), h(a, "class", "drawer " + /*mobileView*/
1930
+ (n[11] ? "mobile" : "")), h(e, "part", "CustomStylingContainer");
1931
+ },
1932
+ m(c, y) {
1933
+ B(c, e, y), s(e, t), s(e, r), s(e, a), W && W.m(a, null), s(a, i), s(a, o), s(o, l), s(o, d), s(o, u), s(u, g), s(o, f), s(o, b), s(a, p), s(a, _), s(_, w), s(w, x), s(x, O), s(w, Y), s(w, M), s(M, G), s(w, Z), s(w, z), s(z, P), s(a, F), E.m(a, null), n[25](e), q || (J = [
1934
+ $(
1935
+ t,
1936
+ "click",
1937
+ /*onClose*/
1938
+ n[12]
1939
+ ),
1940
+ $(
1941
+ l,
1942
+ "click",
1943
+ /*showHideToolip*/
1944
+ n[13]
1945
+ ),
1946
+ $(
1947
+ b,
1948
+ "click",
1949
+ /*onClose*/
1950
+ n[12]
1951
+ ),
1952
+ $(
1953
+ x,
1954
+ "click",
1955
+ /*handleTabChange*/
1956
+ n[15]
1957
+ ),
1958
+ $(
1959
+ M,
1960
+ "click",
1961
+ /*handleTabChange*/
1962
+ n[15]
1963
+ ),
1964
+ $(
1965
+ z,
1966
+ "click",
1967
+ /*handleTabChange*/
1968
+ n[15]
1969
+ )
1970
+ ], q = !0);
1971
+ },
1972
+ p(c, y) {
1973
+ /*tooltip*/
1974
+ c[7] ? W ? W.p(c, y) : (W = je(c), W.c(), W.m(a, i)) : W && (W.d(1), W = null), y[0] & /*$_*/
1975
+ 1024 && m !== (m = /*$_*/
1976
+ c[10]("headerTitle") + "") && D(g, m), y[0] & /*$_*/
1977
+ 1024 && T !== (T = /*$_*/
1978
+ c[10]("play") + "") && D(O, T), y[0] & /*activeTab*/
1979
+ 8 && le(
1980
+ x,
1981
+ "active",
1982
+ /*activeTab*/
1983
+ c[3] === 1
1984
+ ), y[0] & /*$_*/
1985
+ 1024 && L !== (L = /*$_*/
1986
+ c[10]("history") + "") && D(G, L), y[0] & /*activeTab*/
1987
+ 8 && le(
1988
+ M,
1989
+ "active",
1990
+ /*activeTab*/
1991
+ c[3] === 2
1992
+ ), y[0] & /*$_*/
1993
+ 1024 && j !== (j = /*$_*/
1994
+ c[10]("rules") + "") && D(P, j), y[0] & /*activeTab*/
1995
+ 8 && le(
1996
+ z,
1997
+ "active",
1998
+ /*activeTab*/
1999
+ c[3] === 3
2000
+ ), Q === (Q = re(c)) && E ? E.p(c, y) : (E.d(1), E = Q(c), E && (E.c(), E.m(a, null)));
2001
+ },
2002
+ i: Ce,
2003
+ o: Ce,
2004
+ d(c) {
2005
+ c && H(e), W && W.d(), E.d(), n[25](null), q = !1, ct(J);
2006
+ }
2007
+ };
2008
+ }
2009
+ function jn(n, e, t) {
2010
+ let r;
2011
+ dt(n, vt, (c) => t(10, r = c));
2012
+ let { terms: a = "" } = e, { lang: i = ce.en } = e, { endpoint: o = "" } = e, { session: l = "" } = e, { clientstyling: d = "" } = e, { clientstylingurl: u = "" } = e, { translationurl: m = "" } = e, { mbsource: g } = e, f = window.navigator.userAgent, b = ft(f), p, _ = 1, w = !1, x = !1, T = [], O = !1, Y = !1, M;
2013
+ const L = (c) => /(https?:\/\/[^\s]+)/g.test(c), G = () => {
2014
+ Se({ type: "CloseCoinRoyaleDrawer" });
2015
+ }, Z = () => {
2016
+ t(7, O = !O);
2017
+ }, z = () => X(this, null, function* () {
2018
+ t(4, w = !0);
2019
+ let c = T.map((y) => ({
2020
+ id: y.program.id,
2021
+ name: y.program.name[i] || y.program.name[ce.default],
2022
+ partitions: y.program.wheelOfFortune.partitions,
2023
+ endPos: 0,
2024
+ outcomes: []
2025
+ }));
2026
+ if (c.length > 0) {
2027
+ const y = c.map((N, K) => X(this, null, function* () {
2028
+ const ae = (yield Ne.outcome(o, l, N == null ? void 0 : N.id)).items || [];
2029
+ if (ae.length === 0) {
2030
+ c[K] = null;
2031
+ return;
2032
+ }
2033
+ c[K] = De(xe({}, N), {
2034
+ endPos: ae.length > 3 ? 3 : ae.length,
2035
+ outcomes: ae.map((ee) => {
2036
+ var U;
2037
+ const ie = ((U = N.partitions[ee.draw.result.wheelOfFortunePartitionIndex]) == null ? void 0 : U.name) || {}, fe = ee.draw.state === "fulfilled", R = Pn(new Date(ee.draw.time), "LLL d, yyyy HH:mm:ss");
2038
+ return {
2039
+ name: ie[i] || ie[ce.default],
2040
+ state: fe,
2041
+ date: R
2042
+ };
2043
+ })
2044
+ });
2045
+ }));
2046
+ yield Promise.all(y);
2047
+ }
2048
+ t(9, M = c.filter((y) => !!y)), t(4, w = !1);
2049
+ }), j = () => X(this, null, function* () {
2050
+ t(5, x = !0);
2051
+ const c = yield Ne.lotteries(o, l);
2052
+ t(6, T = c.filter((y) => Un(y))), t(5, x = !1);
2053
+ }), P = (c) => {
2054
+ var N;
2055
+ const y = M.findIndex((K) => K.id === c);
2056
+ t(9, M[y].endPos = (N = M[y].outcomes) == null ? void 0 : N.length, M);
2057
+ }, F = (c) => X(this, null, function* () {
2058
+ t(3, _ = +c.target.getAttribute("data-index")), _ === 2 && (yield z());
2059
+ }), q = () => {
2060
+ fetch(m).then((y) => y.json()).then((y) => {
2061
+ Object.keys(y).forEach((N) => {
2062
+ Re(N, y[N]);
2063
+ });
2064
+ });
2065
+ };
2066
+ Object.keys(qe).forEach((c) => {
2067
+ Re(c, qe[c]);
2068
+ });
2069
+ const J = () => {
2070
+ Yn(i);
2071
+ }, W = (c) => {
2072
+ Se({
2073
+ type: "OpenCoinRoyaleDetails",
2074
+ data: c
2075
+ });
2076
+ };
2077
+ mt(() => {
2078
+ t(8, Y = L(a)), j();
2079
+ });
2080
+ const re = (c) => {
2081
+ W(c);
2082
+ }, Q = (c) => P(c.id);
2083
+ function E(c) {
2084
+ ht[c ? "unshift" : "push"](() => {
2085
+ p = c, t(2, p);
2086
+ });
2087
+ }
2088
+ return n.$$set = (c) => {
2089
+ "terms" in c && t(0, a = c.terms), "lang" in c && t(1, i = c.lang), "endpoint" in c && t(17, o = c.endpoint), "session" in c && t(18, l = c.session), "clientstyling" in c && t(19, d = c.clientstyling), "clientstylingurl" in c && t(20, u = c.clientstylingurl), "translationurl" in c && t(21, m = c.translationurl), "mbsource" in c && t(22, g = c.mbsource);
2090
+ }, n.$$.update = () => {
2091
+ n.$$.dirty[0] & /*lang*/
2092
+ 2 && i && J(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
2093
+ 524292 && d && p && pt(p, d), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
2094
+ 1048580 && u && p && bt(p, u), n.$$.dirty[0] & /*translationurl*/
2095
+ 2097152 && m && q(), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
2096
+ 4194308 && g && p && wt(p, `${g}.Style`);
2097
+ }, [
2098
+ a,
2099
+ i,
2100
+ p,
2101
+ _,
2102
+ w,
2103
+ x,
2104
+ T,
2105
+ O,
2106
+ Y,
2107
+ M,
2108
+ r,
2109
+ b,
2110
+ G,
2111
+ Z,
2112
+ P,
2113
+ F,
2114
+ W,
2115
+ o,
2116
+ l,
2117
+ d,
2118
+ u,
2119
+ m,
2120
+ g,
2121
+ re,
2122
+ Q,
2123
+ E
2124
+ ];
2125
+ }
2126
+ class In extends ot {
2127
+ constructor(e) {
2128
+ super(), st(
2129
+ this,
2130
+ e,
2131
+ jn,
2132
+ An,
2133
+ lt,
2134
+ {
2135
+ terms: 0,
2136
+ lang: 1,
2137
+ endpoint: 17,
2138
+ session: 18,
2139
+ clientstyling: 19,
2140
+ clientstylingurl: 20,
2141
+ translationurl: 21,
2142
+ mbsource: 22
2143
+ },
2144
+ zn,
2145
+ [-1, -1]
2146
+ );
2147
+ }
2148
+ get terms() {
2149
+ return this.$$.ctx[0];
2150
+ }
2151
+ set terms(e) {
2152
+ this.$$set({ terms: e }), te();
2153
+ }
2154
+ get lang() {
2155
+ return this.$$.ctx[1];
2156
+ }
2157
+ set lang(e) {
2158
+ this.$$set({ lang: e }), te();
2159
+ }
2160
+ get endpoint() {
2161
+ return this.$$.ctx[17];
2162
+ }
2163
+ set endpoint(e) {
2164
+ this.$$set({ endpoint: e }), te();
2165
+ }
2166
+ get session() {
2167
+ return this.$$.ctx[18];
2168
+ }
2169
+ set session(e) {
2170
+ this.$$set({ session: e }), te();
2171
+ }
2172
+ get clientstyling() {
2173
+ return this.$$.ctx[19];
2174
+ }
2175
+ set clientstyling(e) {
2176
+ this.$$set({ clientstyling: e }), te();
2177
+ }
2178
+ get clientstylingurl() {
2179
+ return this.$$.ctx[20];
2180
+ }
2181
+ set clientstylingurl(e) {
2182
+ this.$$set({ clientstylingurl: e }), te();
2183
+ }
2184
+ get translationurl() {
2185
+ return this.$$.ctx[21];
2186
+ }
2187
+ set translationurl(e) {
2188
+ this.$$set({ translationurl: e }), te();
2189
+ }
2190
+ get mbsource() {
2191
+ return this.$$.ctx[22];
2192
+ }
2193
+ set mbsource(e) {
2194
+ this.$$set({ mbsource: e }), te();
2195
+ }
2196
+ }
2197
+ gt(In, { terms: {}, lang: {}, endpoint: {}, session: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
2198
+ export {
2199
+ In as default
2200
+ };