@everymatrix/casino-categories 1.74.1 → 1.74.3
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.
- package/components/{CasinoCategories-BS8poEZ5.js → CasinoCategories-AZ83p7Xt.js} +715 -717
- package/components/CasinoCategories-C8HVlbqY.cjs +16 -0
- package/components/{CasinoCategories-BkDi82EW.js → CasinoCategories-DnQSYMb3.js} +841 -843
- package/es2015/casino-categories.cjs +1 -1
- package/es2015/casino-categories.js +1 -1
- package/esnext/casino-categories.js +1 -1
- package/package.json +1 -1
- package/stencil/index-97d17652-BgKdDb-e.cjs +1 -0
- package/stencil/{index-97d17652--F7PvMq9.js → index-97d17652-C7V2DWFg.js} +176 -176
- package/stencil/{index-97d17652-CCFHkzJw.js → index-97d17652-DIpvPU9H.js} +187 -187
- package/stencil/{ui-image-CHeV8e9p.js → ui-image-CYuYAlOX.js} +1 -1
- package/stencil/{ui-image-C7s6Uvn5.js → ui-image-D3_FGUyo.js} +1 -1
- package/stencil/{ui-image-BaHsVAxH.cjs → ui-image-DJWD4G-S.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-ByRuJtdE.js → ui-image-b7b48fe5-B-k0kWgx.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-D6iig_uN.js → ui-image-b7b48fe5-D8-wEkoZ.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DG83WzAo.cjs → ui-image-b7b48fe5-yceZ9WkN.cjs} +1 -1
- package/stencil/{ui-image_2-Bm97-wkj.js → ui-image_2-CzFe50WB.js} +2 -2
- package/stencil/{ui-image_2-DdFjzzNO.cjs → ui-image_2-Ha_4GYwN.cjs} +1 -1
- package/stencil/{ui-image_2-qO3reSlr.js → ui-image_2-z5LhXZY2.js} +2 -2
- package/components/CasinoCategories-ByVJhZBA.cjs +0 -3
- package/stencil/index-97d17652-BhLhk_xz.cjs +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var er = Object.defineProperty, tr = Object.defineProperties;
|
|
2
|
+
var rr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var qe = Object.getOwnPropertySymbols;
|
|
4
|
+
var nr = Object.prototype.hasOwnProperty, ir = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var He = (e, t, r) => t in e ? er(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
nr.call(t, r) && He(e, r, t[r]);
|
|
8
|
+
if (qe)
|
|
9
|
+
for (var r of qe(t))
|
|
10
|
+
ir.call(t, r) && He(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var N = (e, t, r) => (
|
|
14
|
-
var
|
|
12
|
+
}, Ke = (e, t) => tr(e, rr(t));
|
|
13
|
+
var N = (e, t, r) => (He(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var et = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
u(r.next(h));
|
|
@@ -27,32 +27,32 @@ var tt = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, o);
|
|
28
28
|
u((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import "../stencil/ui-image-
|
|
30
|
+
import "../stencil/ui-image-D3_FGUyo.js";
|
|
31
31
|
function L() {
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Tt(e) {
|
|
34
34
|
return e();
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function tt() {
|
|
37
37
|
return /* @__PURE__ */ Object.create(null);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
e.forEach(
|
|
39
|
+
function ue(e) {
|
|
40
|
+
e.forEach(Tt);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Xe(e) {
|
|
43
43
|
return typeof e == "function";
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Ct(e, t) {
|
|
46
46
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
47
47
|
}
|
|
48
|
-
let
|
|
49
|
-
function
|
|
50
|
-
return e === t ? !0 : (
|
|
48
|
+
let fe;
|
|
49
|
+
function be(e, t) {
|
|
50
|
+
return e === t ? !0 : (fe || (fe = document.createElement("a")), fe.href = t, e === fe.href);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function sr(e) {
|
|
53
53
|
return Object.keys(e).length === 0;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Ht(e, ...t) {
|
|
56
56
|
if (e == null) {
|
|
57
57
|
for (const n of t)
|
|
58
58
|
n(void 0);
|
|
@@ -61,20 +61,20 @@ function St(e, ...t) {
|
|
|
61
61
|
const r = e.subscribe(...t);
|
|
62
62
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
e.$$.on_destroy.push(
|
|
64
|
+
function or(e, t, r) {
|
|
65
|
+
e.$$.on_destroy.push(Ht(t, r));
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function v(e, t) {
|
|
68
68
|
e.appendChild(t);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
const n =
|
|
70
|
+
function ar(e, t, r) {
|
|
71
|
+
const n = ur(e);
|
|
72
72
|
if (!n.getElementById(t)) {
|
|
73
|
-
const i =
|
|
74
|
-
i.id = t, i.textContent = r,
|
|
73
|
+
const i = S("style");
|
|
74
|
+
i.id = t, i.textContent = r, hr(n, i);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function ur(e) {
|
|
78
78
|
if (!e)
|
|
79
79
|
return document;
|
|
80
80
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -84,31 +84,31 @@ function hr(e) {
|
|
|
84
84
|
t
|
|
85
85
|
) : e.ownerDocument;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
return
|
|
87
|
+
function hr(e, t) {
|
|
88
|
+
return v(
|
|
89
89
|
/** @type {Document} */
|
|
90
90
|
e.head || e,
|
|
91
91
|
t
|
|
92
92
|
), t.sheet;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function K(e, t, r) {
|
|
95
95
|
e.insertBefore(t, r || null);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function k(e) {
|
|
98
98
|
e.parentNode && e.parentNode.removeChild(e);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function rt(e, t) {
|
|
101
101
|
for (let r = 0; r < e.length; r += 1)
|
|
102
102
|
e[r] && e[r].d(t);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function S(e) {
|
|
105
105
|
return document.createElement(e);
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function G(e) {
|
|
108
108
|
return document.createTextNode(e);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
return
|
|
110
|
+
function U() {
|
|
111
|
+
return G(" ");
|
|
112
112
|
}
|
|
113
113
|
function At(e, t, r, n) {
|
|
114
114
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
@@ -120,14 +120,14 @@ function R(e, t, r) {
|
|
|
120
120
|
const n = t.toLowerCase();
|
|
121
121
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : I(e, t, r);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function lr(e) {
|
|
124
124
|
return Array.from(e.childNodes);
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function F(e, t) {
|
|
127
127
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
128
128
|
t);
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function fr(e) {
|
|
131
131
|
const t = {};
|
|
132
132
|
return e.childNodes.forEach(
|
|
133
133
|
/** @param {Element} node */
|
|
@@ -136,90 +136,90 @@ function cr(e) {
|
|
|
136
136
|
}
|
|
137
137
|
), t;
|
|
138
138
|
}
|
|
139
|
-
let
|
|
140
|
-
function
|
|
141
|
-
|
|
139
|
+
let se;
|
|
140
|
+
function ie(e) {
|
|
141
|
+
se = e;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
if (!
|
|
143
|
+
function cr() {
|
|
144
|
+
if (!se)
|
|
145
145
|
throw new Error("Function called outside component initialization");
|
|
146
|
-
return
|
|
146
|
+
return se;
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
|
|
148
|
+
function gr(e) {
|
|
149
|
+
cr().$$.on_mount.push(e);
|
|
150
150
|
}
|
|
151
|
-
const
|
|
152
|
-
let
|
|
153
|
-
const
|
|
154
|
-
let
|
|
151
|
+
const W = [], Le = [];
|
|
152
|
+
let Z = [];
|
|
153
|
+
const nt = [], mr = /* @__PURE__ */ Promise.resolve();
|
|
154
|
+
let Ie = !1;
|
|
155
155
|
function dr() {
|
|
156
|
-
|
|
156
|
+
Ie || (Ie = !0, mr.then(M));
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
|
|
158
|
+
function Me(e) {
|
|
159
|
+
Z.push(e);
|
|
160
160
|
}
|
|
161
|
-
const
|
|
162
|
-
let
|
|
161
|
+
const Ae = /* @__PURE__ */ new Set();
|
|
162
|
+
let X = 0;
|
|
163
163
|
function M() {
|
|
164
|
-
if (
|
|
164
|
+
if (X !== 0)
|
|
165
165
|
return;
|
|
166
|
-
const e =
|
|
166
|
+
const e = se;
|
|
167
167
|
do {
|
|
168
168
|
try {
|
|
169
|
-
for (;
|
|
170
|
-
const t =
|
|
171
|
-
|
|
169
|
+
for (; X < W.length; ) {
|
|
170
|
+
const t = W[X];
|
|
171
|
+
X++, ie(t), pr(t.$$);
|
|
172
172
|
}
|
|
173
173
|
} catch (t) {
|
|
174
|
-
throw
|
|
174
|
+
throw W.length = 0, X = 0, t;
|
|
175
175
|
}
|
|
176
|
-
for (
|
|
177
|
-
|
|
178
|
-
for (let t = 0; t <
|
|
179
|
-
const r =
|
|
180
|
-
|
|
176
|
+
for (ie(null), W.length = 0, X = 0; Le.length; )
|
|
177
|
+
Le.pop()();
|
|
178
|
+
for (let t = 0; t < Z.length; t += 1) {
|
|
179
|
+
const r = Z[t];
|
|
180
|
+
Ae.has(r) || (Ae.add(r), r());
|
|
181
181
|
}
|
|
182
|
-
|
|
183
|
-
} while (
|
|
184
|
-
for (;
|
|
185
|
-
|
|
186
|
-
|
|
182
|
+
Z.length = 0;
|
|
183
|
+
} while (W.length);
|
|
184
|
+
for (; nt.length; )
|
|
185
|
+
nt.pop()();
|
|
186
|
+
Ie = !1, Ae.clear(), ie(e);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function pr(e) {
|
|
189
189
|
if (e.fragment !== null) {
|
|
190
|
-
e.update(),
|
|
190
|
+
e.update(), ue(e.before_update);
|
|
191
191
|
const t = e.dirty;
|
|
192
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
192
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function br(e) {
|
|
196
196
|
const t = [], r = [];
|
|
197
|
-
|
|
197
|
+
Z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Z = t;
|
|
198
198
|
}
|
|
199
|
-
const
|
|
200
|
-
function
|
|
201
|
-
e && e.i && (
|
|
199
|
+
const yr = /* @__PURE__ */ new Set();
|
|
200
|
+
function _r(e, t) {
|
|
201
|
+
e && e.i && (yr.delete(e), e.i(t));
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function ce(e) {
|
|
204
204
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
205
205
|
}
|
|
206
206
|
function xr(e, t, r) {
|
|
207
207
|
const { fragment: n, after_update: i } = e.$$;
|
|
208
|
-
n && n.m(t, r),
|
|
209
|
-
const s = e.$$.on_mount.map(
|
|
210
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
211
|
-
}), i.forEach(
|
|
208
|
+
n && n.m(t, r), Me(() => {
|
|
209
|
+
const s = e.$$.on_mount.map(Tt).filter(Xe);
|
|
210
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ue(s), e.$$.on_mount = [];
|
|
211
|
+
}), i.forEach(Me);
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function Er(e, t) {
|
|
214
214
|
const r = e.$$;
|
|
215
|
-
r.fragment !== null && (
|
|
215
|
+
r.fragment !== null && (br(r.after_update), ue(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
e.$$.dirty[0] === -1 && (
|
|
217
|
+
function vr(e, t) {
|
|
218
|
+
e.$$.dirty[0] === -1 && (W.push(e), dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
const h =
|
|
222
|
-
|
|
220
|
+
function Tr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
221
|
+
const h = se;
|
|
222
|
+
ie(e);
|
|
223
223
|
const a = e.$$ = {
|
|
224
224
|
fragment: null,
|
|
225
225
|
ctx: [],
|
|
@@ -227,7 +227,7 @@ function Cr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
|
227
227
|
props: s,
|
|
228
228
|
update: L,
|
|
229
229
|
not_equal: i,
|
|
230
|
-
bound:
|
|
230
|
+
bound: tt(),
|
|
231
231
|
// lifecycle
|
|
232
232
|
on_mount: [],
|
|
233
233
|
on_destroy: [],
|
|
@@ -236,25 +236,25 @@ function Cr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
|
236
236
|
after_update: [],
|
|
237
237
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
238
238
|
// everything else
|
|
239
|
-
callbacks:
|
|
239
|
+
callbacks: tt(),
|
|
240
240
|
dirty: u,
|
|
241
241
|
skip_bound: !1,
|
|
242
242
|
root: t.target || h.$$.root
|
|
243
243
|
};
|
|
244
244
|
o && o(a.root);
|
|
245
245
|
let l = !1;
|
|
246
|
-
if (a.ctx = r
|
|
247
|
-
const
|
|
248
|
-
return a.ctx && i(a.ctx[c], a.ctx[c] =
|
|
249
|
-
})
|
|
246
|
+
if (a.ctx = r(e, t.props || {}, (c, f, ...d) => {
|
|
247
|
+
const p = d.length ? d[0] : f;
|
|
248
|
+
return a.ctx && i(a.ctx[c], a.ctx[c] = p) && (!a.skip_bound && a.bound[c] && a.bound[c](p), l && vr(e, c)), f;
|
|
249
|
+
}), a.update(), l = !0, ue(a.before_update), a.fragment = n(a.ctx), t.target) {
|
|
250
250
|
if (t.hydrate) {
|
|
251
|
-
const c =
|
|
252
|
-
a.fragment && a.fragment.l(c), c.forEach(
|
|
251
|
+
const c = lr(t.target);
|
|
252
|
+
a.fragment && a.fragment.l(c), c.forEach(k);
|
|
253
253
|
} else
|
|
254
254
|
a.fragment && a.fragment.c();
|
|
255
|
-
t.intro &&
|
|
255
|
+
t.intro && _r(e.$$.fragment), xr(e, t.target, t.anchor), M();
|
|
256
256
|
}
|
|
257
|
-
|
|
257
|
+
ie(h);
|
|
258
258
|
}
|
|
259
259
|
let Bt;
|
|
260
260
|
typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
@@ -294,42 +294,42 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
connectedCallback() {
|
|
297
|
-
return
|
|
297
|
+
return et(this, null, function* () {
|
|
298
298
|
if (this.$$cn = !0, !this.$$c) {
|
|
299
299
|
let t = function(s) {
|
|
300
300
|
return () => {
|
|
301
301
|
let o;
|
|
302
302
|
return {
|
|
303
303
|
c: function() {
|
|
304
|
-
o =
|
|
304
|
+
o = S("slot"), s !== "default" && I(o, "name", s);
|
|
305
305
|
},
|
|
306
306
|
/**
|
|
307
307
|
* @param {HTMLElement} target
|
|
308
308
|
* @param {HTMLElement} [anchor]
|
|
309
309
|
*/
|
|
310
310
|
m: function(a, l) {
|
|
311
|
-
|
|
311
|
+
K(a, o, l);
|
|
312
312
|
},
|
|
313
313
|
d: function(a) {
|
|
314
|
-
a &&
|
|
314
|
+
a && k(o);
|
|
315
315
|
}
|
|
316
316
|
};
|
|
317
317
|
};
|
|
318
318
|
};
|
|
319
319
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
320
320
|
return;
|
|
321
|
-
const r = {}, n =
|
|
321
|
+
const r = {}, n = fr(this);
|
|
322
322
|
for (const s of this.$$s)
|
|
323
323
|
s in n && (r[s] = [t(s)]);
|
|
324
324
|
for (const s of this.attributes) {
|
|
325
325
|
const o = this.$$g_p(s.name);
|
|
326
|
-
o in this.$$d || (this.$$d[o] =
|
|
326
|
+
o in this.$$d || (this.$$d[o] = me(o, s.value, this.$$p_d, "toProp"));
|
|
327
327
|
}
|
|
328
328
|
for (const s in this.$$p_d)
|
|
329
329
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
330
330
|
this.$$c = new this.$$ctor({
|
|
331
331
|
target: this.shadowRoot || this,
|
|
332
|
-
props:
|
|
332
|
+
props: Ke(Ye({}, this.$$d), {
|
|
333
333
|
$$slots: r,
|
|
334
334
|
$$scope: {
|
|
335
335
|
ctx: []
|
|
@@ -340,7 +340,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
340
340
|
this.$$r = !0;
|
|
341
341
|
for (const s in this.$$p_d)
|
|
342
342
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
343
|
-
const o =
|
|
343
|
+
const o = me(
|
|
344
344
|
s,
|
|
345
345
|
this.$$d[s],
|
|
346
346
|
this.$$p_d,
|
|
@@ -364,7 +364,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
364
364
|
// and setting attributes through setAttribute etc, this is helpful
|
|
365
365
|
attributeChangedCallback(t, r, n) {
|
|
366
366
|
var i;
|
|
367
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
367
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = me(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
368
368
|
}
|
|
369
369
|
disconnectedCallback() {
|
|
370
370
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -377,7 +377,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
377
377
|
) || t;
|
|
378
378
|
}
|
|
379
379
|
});
|
|
380
|
-
function
|
|
380
|
+
function me(e, t, r, n) {
|
|
381
381
|
var s;
|
|
382
382
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
383
383
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -407,7 +407,7 @@ function pe(e, t, r, n) {
|
|
|
407
407
|
return t;
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function Cr(e, t, r, n, i, s) {
|
|
411
411
|
let o = class extends Bt {
|
|
412
412
|
constructor() {
|
|
413
413
|
super(e, r, i), this.$$p_d = t;
|
|
@@ -425,7 +425,7 @@ function Hr(e, t, r, n, i, s) {
|
|
|
425
425
|
},
|
|
426
426
|
set(h) {
|
|
427
427
|
var a;
|
|
428
|
-
h =
|
|
428
|
+
h = me(u, h, t), this.$$d[u] = h, (a = this.$$c) == null || a.$set({ [u]: h });
|
|
429
429
|
}
|
|
430
430
|
});
|
|
431
431
|
}), n.forEach((u) => {
|
|
@@ -438,7 +438,7 @@ function Hr(e, t, r, n, i, s) {
|
|
|
438
438
|
}), e.element = /** @type {any} */
|
|
439
439
|
o, o;
|
|
440
440
|
}
|
|
441
|
-
class
|
|
441
|
+
class Hr {
|
|
442
442
|
constructor() {
|
|
443
443
|
/**
|
|
444
444
|
* ### PRIVATE API
|
|
@@ -459,7 +459,7 @@ class Sr {
|
|
|
459
459
|
}
|
|
460
460
|
/** @returns {void} */
|
|
461
461
|
$destroy() {
|
|
462
|
-
|
|
462
|
+
Er(this, 1), this.$destroy = L;
|
|
463
463
|
}
|
|
464
464
|
/**
|
|
465
465
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -468,7 +468,7 @@ class Sr {
|
|
|
468
468
|
* @returns {() => void}
|
|
469
469
|
*/
|
|
470
470
|
$on(t, r) {
|
|
471
|
-
if (!
|
|
471
|
+
if (!Xe(r))
|
|
472
472
|
return L;
|
|
473
473
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
474
474
|
return n.push(r), () => {
|
|
@@ -481,29 +481,29 @@ class Sr {
|
|
|
481
481
|
* @returns {void}
|
|
482
482
|
*/
|
|
483
483
|
$set(t) {
|
|
484
|
-
this.$$set && !
|
|
484
|
+
this.$$set && !sr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
487
|
const Ar = "4";
|
|
488
488
|
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ar);
|
|
489
|
-
const
|
|
489
|
+
const z = [];
|
|
490
490
|
function Br(e, t) {
|
|
491
491
|
return {
|
|
492
|
-
subscribe:
|
|
492
|
+
subscribe: xe(e, t).subscribe
|
|
493
493
|
};
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function xe(e, t = L) {
|
|
496
496
|
let r;
|
|
497
497
|
const n = /* @__PURE__ */ new Set();
|
|
498
498
|
function i(u) {
|
|
499
|
-
if (
|
|
500
|
-
const h = !
|
|
499
|
+
if (Ct(e, u) && (e = u, r)) {
|
|
500
|
+
const h = !z.length;
|
|
501
501
|
for (const a of n)
|
|
502
|
-
a[1](),
|
|
502
|
+
a[1](), z.push(a, e);
|
|
503
503
|
if (h) {
|
|
504
|
-
for (let a = 0; a <
|
|
505
|
-
|
|
506
|
-
|
|
504
|
+
for (let a = 0; a < z.length; a += 2)
|
|
505
|
+
z[a][0](z[a + 1]);
|
|
506
|
+
z.length = 0;
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
}
|
|
@@ -518,7 +518,7 @@ function ve(e, t = L) {
|
|
|
518
518
|
}
|
|
519
519
|
return { set: i, update: s, subscribe: o };
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function ee(e, t, r) {
|
|
522
522
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
523
523
|
if (!i.every(Boolean))
|
|
524
524
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -531,11 +531,11 @@ function te(e, t, r) {
|
|
|
531
531
|
if (l)
|
|
532
532
|
return;
|
|
533
533
|
c();
|
|
534
|
-
const
|
|
535
|
-
s ? o(
|
|
536
|
-
},
|
|
537
|
-
(
|
|
538
|
-
|
|
534
|
+
const p = t(n ? a[0] : a, o, u);
|
|
535
|
+
s ? o(p) : c = Xe(p) ? p : L;
|
|
536
|
+
}, d = i.map(
|
|
537
|
+
(p, g) => Ht(
|
|
538
|
+
p,
|
|
539
539
|
(E) => {
|
|
540
540
|
a[g] = E, l &= ~(1 << g), h && f();
|
|
541
541
|
},
|
|
@@ -545,112 +545,126 @@ function te(e, t, r) {
|
|
|
545
545
|
)
|
|
546
546
|
);
|
|
547
547
|
return h = !0, f(), function() {
|
|
548
|
-
|
|
548
|
+
ue(d), c(), h = !1;
|
|
549
549
|
};
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
|
-
function
|
|
553
|
-
return e
|
|
552
|
+
function Sr(e) {
|
|
553
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
554
554
|
}
|
|
555
555
|
var wr = function(t) {
|
|
556
|
-
return
|
|
556
|
+
return Or(t) && !Pr(t);
|
|
557
557
|
};
|
|
558
|
-
function
|
|
558
|
+
function Or(e) {
|
|
559
559
|
return !!e && typeof e == "object";
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function Pr(e) {
|
|
562
562
|
var t = Object.prototype.toString.call(e);
|
|
563
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
563
|
+
return t === "[object RegExp]" || t === "[object Date]" || Ir(e);
|
|
564
564
|
}
|
|
565
|
-
var
|
|
566
|
-
function
|
|
567
|
-
return e.$$typeof ===
|
|
565
|
+
var Nr = typeof Symbol == "function" && Symbol.for, Lr = Nr ? Symbol.for("react.element") : 60103;
|
|
566
|
+
function Ir(e) {
|
|
567
|
+
return e.$$typeof === Lr;
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function Mr(e) {
|
|
570
570
|
return Array.isArray(e) ? [] : {};
|
|
571
571
|
}
|
|
572
|
-
function
|
|
573
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
572
|
+
function oe(e, t) {
|
|
573
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Q(Mr(e), e, t) : e;
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function $r(e, t, r) {
|
|
576
576
|
return e.concat(t).map(function(n) {
|
|
577
|
-
return
|
|
577
|
+
return oe(n, r);
|
|
578
578
|
});
|
|
579
579
|
}
|
|
580
|
-
function
|
|
580
|
+
function Rr(e, t) {
|
|
581
581
|
if (!t.customMerge)
|
|
582
|
-
return
|
|
582
|
+
return Q;
|
|
583
583
|
var r = t.customMerge(e);
|
|
584
|
-
return typeof r == "function" ? r :
|
|
584
|
+
return typeof r == "function" ? r : Q;
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function Ur(e) {
|
|
587
587
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
588
588
|
return Object.propertyIsEnumerable.call(e, t);
|
|
589
589
|
}) : [];
|
|
590
590
|
}
|
|
591
|
-
function
|
|
592
|
-
return Object.keys(e).concat(
|
|
591
|
+
function it(e) {
|
|
592
|
+
return Object.keys(e).concat(Ur(e));
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function St(e, t) {
|
|
595
595
|
try {
|
|
596
596
|
return t in e;
|
|
597
597
|
} catch (r) {
|
|
598
598
|
return !1;
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
|
-
function
|
|
602
|
-
return
|
|
601
|
+
function Gr(e, t) {
|
|
602
|
+
return St(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function Dr(e, t, r) {
|
|
605
605
|
var n = {};
|
|
606
|
-
return r.isMergeableObject(e) &&
|
|
607
|
-
n[i] =
|
|
608
|
-
}),
|
|
609
|
-
|
|
606
|
+
return r.isMergeableObject(e) && it(e).forEach(function(i) {
|
|
607
|
+
n[i] = oe(e[i], r);
|
|
608
|
+
}), it(t).forEach(function(i) {
|
|
609
|
+
Gr(e, i) || (St(e, i) && r.isMergeableObject(t[i]) ? n[i] = Rr(i, r)(e[i], t[i], r) : n[i] = oe(t[i], r));
|
|
610
610
|
}), n;
|
|
611
611
|
}
|
|
612
|
-
function
|
|
613
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
612
|
+
function Q(e, t, r) {
|
|
613
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || $r, r.isMergeableObject = r.isMergeableObject || wr, r.cloneUnlessOtherwiseSpecified = oe;
|
|
614
614
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
615
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
615
|
+
return s ? n ? r.arrayMerge(e, t, r) : Dr(e, t, r) : oe(t, r);
|
|
616
616
|
}
|
|
617
|
-
|
|
617
|
+
Q.all = function(t, r) {
|
|
618
618
|
if (!Array.isArray(t))
|
|
619
619
|
throw new Error("first argument should be an array");
|
|
620
620
|
return t.reduce(function(n, i) {
|
|
621
|
-
return
|
|
621
|
+
return Q(n, i, r);
|
|
622
622
|
}, {});
|
|
623
623
|
};
|
|
624
|
-
var
|
|
625
|
-
const
|
|
626
|
-
|
|
627
|
-
|
|
624
|
+
var Fr = Q, jr = Fr;
|
|
625
|
+
const kr = /* @__PURE__ */ Sr(jr);
|
|
626
|
+
/*! *****************************************************************************
|
|
627
|
+
Copyright (c) Microsoft Corporation.
|
|
628
|
+
|
|
629
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
630
|
+
purpose with or without fee is hereby granted.
|
|
631
|
+
|
|
632
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
633
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
634
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
635
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
636
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
637
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
638
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
639
|
+
***************************************************************************** */
|
|
640
|
+
var $e = function(e, t) {
|
|
641
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
628
642
|
r.__proto__ = n;
|
|
629
643
|
} || function(r, n) {
|
|
630
644
|
for (var i in n)
|
|
631
645
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
632
|
-
},
|
|
646
|
+
}, $e(e, t);
|
|
633
647
|
};
|
|
634
|
-
function
|
|
648
|
+
function Ee(e, t) {
|
|
635
649
|
if (typeof t != "function" && t !== null)
|
|
636
650
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
637
|
-
|
|
651
|
+
$e(e, t);
|
|
638
652
|
function r() {
|
|
639
653
|
this.constructor = e;
|
|
640
654
|
}
|
|
641
655
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
642
656
|
}
|
|
643
|
-
var
|
|
644
|
-
return
|
|
657
|
+
var x = function() {
|
|
658
|
+
return x = Object.assign || function(t) {
|
|
645
659
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
646
660
|
r = arguments[n];
|
|
647
661
|
for (var s in r)
|
|
648
662
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
649
663
|
}
|
|
650
664
|
return t;
|
|
651
|
-
},
|
|
665
|
+
}, x.apply(this, arguments);
|
|
652
666
|
};
|
|
653
|
-
function
|
|
667
|
+
function Vr(e, t) {
|
|
654
668
|
var r = {};
|
|
655
669
|
for (var n in e)
|
|
656
670
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -659,43 +673,46 @@ function Xr(e, t) {
|
|
|
659
673
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
660
674
|
return r;
|
|
661
675
|
}
|
|
662
|
-
function
|
|
663
|
-
if (
|
|
676
|
+
function Be(e, t, r) {
|
|
677
|
+
if (arguments.length === 2)
|
|
664
678
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
665
679
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
666
|
-
return e.concat(s ||
|
|
680
|
+
return e.concat(s || t);
|
|
667
681
|
}
|
|
668
|
-
function
|
|
669
|
-
var r = t && t.cache ? t.cache :
|
|
682
|
+
function Se(e, t) {
|
|
683
|
+
var r = t && t.cache ? t.cache : qr, n = t && t.serializer ? t.serializer : Qr, i = t && t.strategy ? t.strategy : zr;
|
|
670
684
|
return i(e, {
|
|
671
685
|
cache: r,
|
|
672
686
|
serializer: n
|
|
673
687
|
});
|
|
674
688
|
}
|
|
675
|
-
function
|
|
689
|
+
function Xr(e) {
|
|
676
690
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
677
691
|
}
|
|
678
|
-
function
|
|
679
|
-
var i =
|
|
692
|
+
function wt(e, t, r, n) {
|
|
693
|
+
var i = Xr(n) ? n : r(n), s = t.get(i);
|
|
680
694
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
681
695
|
}
|
|
682
|
-
function
|
|
696
|
+
function Ot(e, t, r) {
|
|
683
697
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
684
698
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
685
699
|
}
|
|
686
|
-
function
|
|
700
|
+
function ze(e, t, r, n, i) {
|
|
687
701
|
return r.bind(t, e, n, i);
|
|
688
702
|
}
|
|
689
|
-
function
|
|
690
|
-
var r = e.length === 1 ?
|
|
691
|
-
return
|
|
703
|
+
function zr(e, t) {
|
|
704
|
+
var r = e.length === 1 ? wt : Ot;
|
|
705
|
+
return ze(e, this, r, t.cache.create(), t.serializer);
|
|
692
706
|
}
|
|
693
|
-
function
|
|
694
|
-
return
|
|
707
|
+
function Wr(e, t) {
|
|
708
|
+
return ze(e, this, Ot, t.cache.create(), t.serializer);
|
|
695
709
|
}
|
|
696
|
-
|
|
710
|
+
function Zr(e, t) {
|
|
711
|
+
return ze(e, this, wt, t.cache.create(), t.serializer);
|
|
712
|
+
}
|
|
713
|
+
var Qr = function() {
|
|
697
714
|
return JSON.stringify(arguments);
|
|
698
|
-
},
|
|
715
|
+
}, Jr = (
|
|
699
716
|
/** @class */
|
|
700
717
|
function() {
|
|
701
718
|
function e() {
|
|
@@ -707,71 +724,62 @@ var Jr = function() {
|
|
|
707
724
|
this.cache[t] = r;
|
|
708
725
|
}, e;
|
|
709
726
|
}()
|
|
710
|
-
),
|
|
727
|
+
), qr = {
|
|
711
728
|
create: function() {
|
|
712
|
-
return new
|
|
729
|
+
return new Jr();
|
|
713
730
|
}
|
|
714
|
-
},
|
|
715
|
-
variadic:
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
719
|
-
r = arguments[n];
|
|
720
|
-
for (var s in r)
|
|
721
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
722
|
-
}
|
|
723
|
-
return t;
|
|
724
|
-
}, _e.apply(this, arguments);
|
|
725
|
-
};
|
|
726
|
-
var y;
|
|
731
|
+
}, we = {
|
|
732
|
+
variadic: Wr,
|
|
733
|
+
monadic: Zr
|
|
734
|
+
}, y;
|
|
727
735
|
(function(e) {
|
|
728
736
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
729
737
|
})(y || (y = {}));
|
|
730
|
-
var
|
|
738
|
+
var T;
|
|
731
739
|
(function(e) {
|
|
732
740
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
733
|
-
})(
|
|
734
|
-
var
|
|
741
|
+
})(T || (T = {}));
|
|
742
|
+
var J;
|
|
735
743
|
(function(e) {
|
|
736
744
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
737
|
-
})(
|
|
738
|
-
function
|
|
739
|
-
return e.type ===
|
|
745
|
+
})(J || (J = {}));
|
|
746
|
+
function st(e) {
|
|
747
|
+
return e.type === T.literal;
|
|
740
748
|
}
|
|
741
|
-
function
|
|
742
|
-
return e.type ===
|
|
749
|
+
function Yr(e) {
|
|
750
|
+
return e.type === T.argument;
|
|
751
|
+
}
|
|
752
|
+
function Pt(e) {
|
|
753
|
+
return e.type === T.number;
|
|
743
754
|
}
|
|
744
755
|
function Nt(e) {
|
|
745
|
-
return e.type ===
|
|
756
|
+
return e.type === T.date;
|
|
746
757
|
}
|
|
747
758
|
function Lt(e) {
|
|
748
|
-
return e.type ===
|
|
759
|
+
return e.type === T.time;
|
|
749
760
|
}
|
|
750
761
|
function It(e) {
|
|
751
|
-
return e.type ===
|
|
762
|
+
return e.type === T.select;
|
|
752
763
|
}
|
|
753
764
|
function Mt(e) {
|
|
754
|
-
return e.type ===
|
|
765
|
+
return e.type === T.plural;
|
|
755
766
|
}
|
|
756
|
-
function
|
|
757
|
-
return e.type ===
|
|
767
|
+
function Kr(e) {
|
|
768
|
+
return e.type === T.pound;
|
|
758
769
|
}
|
|
759
|
-
function
|
|
760
|
-
return e.type ===
|
|
770
|
+
function $t(e) {
|
|
771
|
+
return e.type === T.tag;
|
|
761
772
|
}
|
|
762
773
|
function Rt(e) {
|
|
763
|
-
return e.type ===
|
|
764
|
-
}
|
|
765
|
-
function Ut(e) {
|
|
766
|
-
return !!(e && typeof e == "object" && e.type === q.number);
|
|
774
|
+
return !!(e && typeof e == "object" && e.type === J.number);
|
|
767
775
|
}
|
|
768
|
-
function
|
|
769
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
776
|
+
function Re(e) {
|
|
777
|
+
return !!(e && typeof e == "object" && e.type === J.dateTime);
|
|
770
778
|
}
|
|
771
|
-
var
|
|
772
|
-
function
|
|
779
|
+
var Ut = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, en = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
780
|
+
function tn(e) {
|
|
773
781
|
var t = {};
|
|
774
|
-
return e.replace(
|
|
782
|
+
return e.replace(en, function(r) {
|
|
775
783
|
var n = r.length;
|
|
776
784
|
switch (r[0]) {
|
|
777
785
|
case "G":
|
|
@@ -860,21 +868,11 @@ function rn(e) {
|
|
|
860
868
|
return "";
|
|
861
869
|
}), t;
|
|
862
870
|
}
|
|
863
|
-
var
|
|
864
|
-
|
|
865
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
866
|
-
r = arguments[n];
|
|
867
|
-
for (var s in r)
|
|
868
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
869
|
-
}
|
|
870
|
-
return t;
|
|
871
|
-
}, C.apply(this, arguments);
|
|
872
|
-
};
|
|
873
|
-
var nn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
874
|
-
function sn(e) {
|
|
871
|
+
var rn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
872
|
+
function nn(e) {
|
|
875
873
|
if (e.length === 0)
|
|
876
874
|
throw new Error("Number skeleton cannot be empty");
|
|
877
|
-
for (var t = e.split(
|
|
875
|
+
for (var t = e.split(rn).filter(function(f) {
|
|
878
876
|
return f.length > 0;
|
|
879
877
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
880
878
|
var s = i[n], o = s.split("/");
|
|
@@ -889,17 +887,17 @@ function sn(e) {
|
|
|
889
887
|
}
|
|
890
888
|
return r;
|
|
891
889
|
}
|
|
892
|
-
function
|
|
890
|
+
function sn(e) {
|
|
893
891
|
return e.replace(/^(.*?)-/, "");
|
|
894
892
|
}
|
|
895
|
-
var
|
|
896
|
-
function
|
|
893
|
+
var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Gt = /^(@+)?(\+|#+)?[rs]?$/g, on = /(\*)(0+)|(#+)(0+)|(0+)/g, Dt = /^(0+)$/;
|
|
894
|
+
function at(e) {
|
|
897
895
|
var t = {};
|
|
898
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
896
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Gt, function(r, n, i) {
|
|
899
897
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
900
898
|
}), t;
|
|
901
899
|
}
|
|
902
|
-
function
|
|
900
|
+
function Ft(e) {
|
|
903
901
|
switch (e) {
|
|
904
902
|
case "sign-auto":
|
|
905
903
|
return {
|
|
@@ -939,7 +937,7 @@ function jt(e) {
|
|
|
939
937
|
};
|
|
940
938
|
}
|
|
941
939
|
}
|
|
942
|
-
function
|
|
940
|
+
function an(e) {
|
|
943
941
|
var t;
|
|
944
942
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
945
943
|
notation: "engineering"
|
|
@@ -947,17 +945,17 @@ function un(e) {
|
|
|
947
945
|
notation: "scientific"
|
|
948
946
|
}, e = e.slice(1)), t) {
|
|
949
947
|
var r = e.slice(0, 2);
|
|
950
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
948
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Dt.test(e))
|
|
951
949
|
throw new Error("Malformed concise eng/scientific notation");
|
|
952
950
|
t.minimumIntegerDigits = e.length;
|
|
953
951
|
}
|
|
954
952
|
return t;
|
|
955
953
|
}
|
|
956
|
-
function
|
|
957
|
-
var t = {}, r =
|
|
954
|
+
function ut(e) {
|
|
955
|
+
var t = {}, r = Ft(e);
|
|
958
956
|
return r || t;
|
|
959
957
|
}
|
|
960
|
-
function
|
|
958
|
+
function un(e) {
|
|
961
959
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
962
960
|
var i = n[r];
|
|
963
961
|
switch (i.stem) {
|
|
@@ -981,7 +979,7 @@ function hn(e) {
|
|
|
981
979
|
continue;
|
|
982
980
|
case "measure-unit":
|
|
983
981
|
case "unit":
|
|
984
|
-
t.style = "unit", t.unit =
|
|
982
|
+
t.style = "unit", t.unit = sn(i.options[0]);
|
|
985
983
|
continue;
|
|
986
984
|
case "compact-short":
|
|
987
985
|
case "K":
|
|
@@ -992,13 +990,13 @@ function hn(e) {
|
|
|
992
990
|
t.notation = "compact", t.compactDisplay = "long";
|
|
993
991
|
continue;
|
|
994
992
|
case "scientific":
|
|
995
|
-
t =
|
|
996
|
-
return
|
|
993
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(h, a) {
|
|
994
|
+
return x(x({}, h), ut(a));
|
|
997
995
|
}, {}));
|
|
998
996
|
continue;
|
|
999
997
|
case "engineering":
|
|
1000
|
-
t =
|
|
1001
|
-
return
|
|
998
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(h, a) {
|
|
999
|
+
return x(x({}, h), ut(a));
|
|
1002
1000
|
}, {}));
|
|
1003
1001
|
continue;
|
|
1004
1002
|
case "notation-simple":
|
|
@@ -1043,45 +1041,45 @@ function hn(e) {
|
|
|
1043
1041
|
case "integer-width":
|
|
1044
1042
|
if (i.options.length > 1)
|
|
1045
1043
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1046
|
-
i.options[0].replace(
|
|
1044
|
+
i.options[0].replace(on, function(h, a, l, c, f, d) {
|
|
1047
1045
|
if (a)
|
|
1048
1046
|
t.minimumIntegerDigits = l.length;
|
|
1049
1047
|
else {
|
|
1050
1048
|
if (c && f)
|
|
1051
1049
|
throw new Error("We currently do not support maximum integer digits");
|
|
1052
|
-
if (
|
|
1050
|
+
if (d)
|
|
1053
1051
|
throw new Error("We currently do not support exact integer digits");
|
|
1054
1052
|
}
|
|
1055
1053
|
return "";
|
|
1056
1054
|
});
|
|
1057
1055
|
continue;
|
|
1058
1056
|
}
|
|
1059
|
-
if (
|
|
1057
|
+
if (Dt.test(i.stem)) {
|
|
1060
1058
|
t.minimumIntegerDigits = i.stem.length;
|
|
1061
1059
|
continue;
|
|
1062
1060
|
}
|
|
1063
|
-
if (
|
|
1061
|
+
if (ot.test(i.stem)) {
|
|
1064
1062
|
if (i.options.length > 1)
|
|
1065
1063
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1066
|
-
i.stem.replace(
|
|
1067
|
-
return l === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f &&
|
|
1064
|
+
i.stem.replace(ot, function(h, a, l, c, f, d) {
|
|
1065
|
+
return l === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && d ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + d.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1068
1066
|
});
|
|
1069
1067
|
var s = i.options[0];
|
|
1070
|
-
s === "w" ? t =
|
|
1068
|
+
s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), at(s)));
|
|
1071
1069
|
continue;
|
|
1072
1070
|
}
|
|
1073
|
-
if (
|
|
1074
|
-
t =
|
|
1071
|
+
if (Gt.test(i.stem)) {
|
|
1072
|
+
t = x(x({}, t), at(i.stem));
|
|
1075
1073
|
continue;
|
|
1076
1074
|
}
|
|
1077
|
-
var o =
|
|
1078
|
-
o && (t =
|
|
1079
|
-
var u =
|
|
1080
|
-
u && (t =
|
|
1075
|
+
var o = Ft(i.stem);
|
|
1076
|
+
o && (t = x(x({}, t), o));
|
|
1077
|
+
var u = an(i.stem);
|
|
1078
|
+
u && (t = x(x({}, t), u));
|
|
1081
1079
|
}
|
|
1082
1080
|
return t;
|
|
1083
1081
|
}
|
|
1084
|
-
var
|
|
1082
|
+
var ge = {
|
|
1085
1083
|
"001": [
|
|
1086
1084
|
"H",
|
|
1087
1085
|
"h"
|
|
@@ -2496,13 +2494,13 @@ var me = {
|
|
|
2496
2494
|
"h"
|
|
2497
2495
|
]
|
|
2498
2496
|
};
|
|
2499
|
-
function
|
|
2497
|
+
function hn(e, t) {
|
|
2500
2498
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2501
2499
|
var i = e.charAt(n);
|
|
2502
2500
|
if (i === "j") {
|
|
2503
2501
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2504
2502
|
s++, n++;
|
|
2505
|
-
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", a =
|
|
2503
|
+
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", a = ln(t);
|
|
2506
2504
|
for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
|
|
2507
2505
|
r += h;
|
|
2508
2506
|
for (; o-- > 0; )
|
|
@@ -2512,7 +2510,7 @@ function ln(e, t) {
|
|
|
2512
2510
|
}
|
|
2513
2511
|
return r;
|
|
2514
2512
|
}
|
|
2515
|
-
function
|
|
2513
|
+
function ln(e) {
|
|
2516
2514
|
var t = e.hourCycle;
|
|
2517
2515
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2518
2516
|
e.hourCycles && // @ts-ignore
|
|
@@ -2531,23 +2529,23 @@ function fn(e) {
|
|
|
2531
2529
|
}
|
|
2532
2530
|
var r = e.language, n;
|
|
2533
2531
|
r !== "root" && (n = e.maximize().region);
|
|
2534
|
-
var i =
|
|
2532
|
+
var i = ge[n || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
|
|
2535
2533
|
return i[0];
|
|
2536
2534
|
}
|
|
2537
|
-
var
|
|
2535
|
+
var Oe, fn = new RegExp("^".concat(Ut.source, "*")), cn = new RegExp("".concat(Ut.source, "*$"));
|
|
2538
2536
|
function _(e, t) {
|
|
2539
2537
|
return { start: e, end: t };
|
|
2540
2538
|
}
|
|
2541
|
-
var
|
|
2539
|
+
var gn = !!String.prototype.startsWith && "_a".startsWith("a", 1), mn = !!String.fromCodePoint, dn = !!Object.fromEntries, pn = !!String.prototype.codePointAt, bn = !!String.prototype.trimStart, yn = !!String.prototype.trimEnd, _n = !!Number.isSafeInteger, xn = _n ? Number.isSafeInteger : function(e) {
|
|
2542
2540
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2543
|
-
},
|
|
2541
|
+
}, Ue = !0;
|
|
2544
2542
|
try {
|
|
2545
|
-
var
|
|
2546
|
-
|
|
2543
|
+
var En = kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2544
|
+
Ue = ((Oe = En.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
|
|
2547
2545
|
} catch (e) {
|
|
2548
|
-
|
|
2546
|
+
Ue = !1;
|
|
2549
2547
|
}
|
|
2550
|
-
var
|
|
2548
|
+
var ht = gn ? (
|
|
2551
2549
|
// Native
|
|
2552
2550
|
function(t, r, n) {
|
|
2553
2551
|
return t.startsWith(r, n);
|
|
@@ -2557,7 +2555,7 @@ var lt = mn ? (
|
|
|
2557
2555
|
function(t, r, n) {
|
|
2558
2556
|
return t.slice(n, n + r.length) === r;
|
|
2559
2557
|
}
|
|
2560
|
-
),
|
|
2558
|
+
), Ge = mn ? String.fromCodePoint : (
|
|
2561
2559
|
// IE11
|
|
2562
2560
|
function() {
|
|
2563
2561
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2569,7 +2567,7 @@ var lt = mn ? (
|
|
|
2569
2567
|
}
|
|
2570
2568
|
return n;
|
|
2571
2569
|
}
|
|
2572
|
-
),
|
|
2570
|
+
), lt = (
|
|
2573
2571
|
// native
|
|
2574
2572
|
dn ? Object.fromEntries : (
|
|
2575
2573
|
// Ponyfill
|
|
@@ -2581,7 +2579,7 @@ var lt = mn ? (
|
|
|
2581
2579
|
return r;
|
|
2582
2580
|
}
|
|
2583
2581
|
)
|
|
2584
|
-
),
|
|
2582
|
+
), jt = pn ? (
|
|
2585
2583
|
// Native
|
|
2586
2584
|
function(t, r) {
|
|
2587
2585
|
return t.codePointAt(r);
|
|
@@ -2595,7 +2593,7 @@ var lt = mn ? (
|
|
|
2595
2593
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2596
2594
|
}
|
|
2597
2595
|
}
|
|
2598
|
-
),
|
|
2596
|
+
), vn = bn ? (
|
|
2599
2597
|
// Native
|
|
2600
2598
|
function(t) {
|
|
2601
2599
|
return t.trimStart();
|
|
@@ -2603,9 +2601,9 @@ var lt = mn ? (
|
|
|
2603
2601
|
) : (
|
|
2604
2602
|
// Ponyfill
|
|
2605
2603
|
function(t) {
|
|
2606
|
-
return t.replace(
|
|
2604
|
+
return t.replace(fn, "");
|
|
2607
2605
|
}
|
|
2608
|
-
),
|
|
2606
|
+
), Tn = yn ? (
|
|
2609
2607
|
// Native
|
|
2610
2608
|
function(t) {
|
|
2611
2609
|
return t.trimEnd();
|
|
@@ -2613,32 +2611,32 @@ var lt = mn ? (
|
|
|
2613
2611
|
) : (
|
|
2614
2612
|
// Ponyfill
|
|
2615
2613
|
function(t) {
|
|
2616
|
-
return t.replace(
|
|
2614
|
+
return t.replace(cn, "");
|
|
2617
2615
|
}
|
|
2618
2616
|
);
|
|
2619
|
-
function
|
|
2617
|
+
function kt(e, t) {
|
|
2620
2618
|
return new RegExp(e, t);
|
|
2621
2619
|
}
|
|
2622
|
-
var
|
|
2623
|
-
if (
|
|
2624
|
-
var
|
|
2625
|
-
|
|
2620
|
+
var De;
|
|
2621
|
+
if (Ue) {
|
|
2622
|
+
var ft = kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2623
|
+
De = function(t, r) {
|
|
2626
2624
|
var n;
|
|
2627
|
-
|
|
2628
|
-
var i =
|
|
2625
|
+
ft.lastIndex = r;
|
|
2626
|
+
var i = ft.exec(t);
|
|
2629
2627
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2630
2628
|
};
|
|
2631
2629
|
} else
|
|
2632
|
-
|
|
2630
|
+
De = function(t, r) {
|
|
2633
2631
|
for (var n = []; ; ) {
|
|
2634
|
-
var i =
|
|
2635
|
-
if (i === void 0 ||
|
|
2632
|
+
var i = jt(t, r);
|
|
2633
|
+
if (i === void 0 || Vt(i) || Bn(i))
|
|
2636
2634
|
break;
|
|
2637
2635
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2638
2636
|
}
|
|
2639
|
-
return
|
|
2637
|
+
return Ge.apply(void 0, n);
|
|
2640
2638
|
};
|
|
2641
|
-
var
|
|
2639
|
+
var Cn = (
|
|
2642
2640
|
/** @class */
|
|
2643
2641
|
function() {
|
|
2644
2642
|
function e(t, r) {
|
|
@@ -2662,14 +2660,14 @@ var Hn = (
|
|
|
2662
2660
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2663
2661
|
var u = this.clonePosition();
|
|
2664
2662
|
this.bump(), i.push({
|
|
2665
|
-
type:
|
|
2663
|
+
type: T.pound,
|
|
2666
2664
|
location: _(u, this.clonePosition())
|
|
2667
2665
|
});
|
|
2668
2666
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2669
2667
|
if (n)
|
|
2670
2668
|
break;
|
|
2671
2669
|
return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
2672
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2670
|
+
} else if (s === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
|
|
2673
2671
|
var o = this.parseTag(t, r);
|
|
2674
2672
|
if (o.err)
|
|
2675
2673
|
return o;
|
|
@@ -2690,7 +2688,7 @@ var Hn = (
|
|
|
2690
2688
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2691
2689
|
return {
|
|
2692
2690
|
val: {
|
|
2693
|
-
type:
|
|
2691
|
+
type: T.literal,
|
|
2694
2692
|
value: "<".concat(i, "/>"),
|
|
2695
2693
|
location: _(n, this.clonePosition())
|
|
2696
2694
|
},
|
|
@@ -2702,12 +2700,12 @@ var Hn = (
|
|
|
2702
2700
|
return s;
|
|
2703
2701
|
var o = s.val, u = this.clonePosition();
|
|
2704
2702
|
if (this.bumpIf("</")) {
|
|
2705
|
-
if (this.isEOF() || !
|
|
2703
|
+
if (this.isEOF() || !Fe(this.char()))
|
|
2706
2704
|
return this.error(y.INVALID_TAG, _(u, this.clonePosition()));
|
|
2707
2705
|
var h = this.clonePosition(), a = this.parseTagName();
|
|
2708
2706
|
return i !== a ? this.error(y.UNMATCHED_CLOSING_TAG, _(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2709
2707
|
val: {
|
|
2710
|
-
type:
|
|
2708
|
+
type: T.tag,
|
|
2711
2709
|
value: i,
|
|
2712
2710
|
children: o,
|
|
2713
2711
|
location: _(n, this.clonePosition())
|
|
@@ -2744,12 +2742,12 @@ var Hn = (
|
|
|
2744
2742
|
}
|
|
2745
2743
|
var h = _(n, this.clonePosition());
|
|
2746
2744
|
return {
|
|
2747
|
-
val: { type:
|
|
2745
|
+
val: { type: T.literal, value: i, location: h },
|
|
2748
2746
|
err: null
|
|
2749
2747
|
};
|
|
2750
2748
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2751
2749
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2752
|
-
!
|
|
2750
|
+
!Hn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2753
2751
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2754
2752
|
if (this.isEOF() || this.char() !== 39)
|
|
2755
2753
|
return null;
|
|
@@ -2783,12 +2781,12 @@ var Hn = (
|
|
|
2783
2781
|
r.push(n);
|
|
2784
2782
|
this.bump();
|
|
2785
2783
|
}
|
|
2786
|
-
return
|
|
2784
|
+
return Ge.apply(void 0, r);
|
|
2787
2785
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2788
2786
|
if (this.isEOF())
|
|
2789
2787
|
return null;
|
|
2790
2788
|
var n = this.char();
|
|
2791
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2789
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
|
|
2792
2790
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2793
2791
|
var n = this.clonePosition();
|
|
2794
2792
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2804,7 +2802,7 @@ var Hn = (
|
|
|
2804
2802
|
case 125:
|
|
2805
2803
|
return this.bump(), {
|
|
2806
2804
|
val: {
|
|
2807
|
-
type:
|
|
2805
|
+
type: T.argument,
|
|
2808
2806
|
// value does not include the opening and closing braces.
|
|
2809
2807
|
value: i,
|
|
2810
2808
|
location: _(n, this.clonePosition())
|
|
@@ -2817,7 +2815,7 @@ var Hn = (
|
|
|
2817
2815
|
return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
2818
2816
|
}
|
|
2819
2817
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2820
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2818
|
+
var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), i = r + n.length;
|
|
2821
2819
|
this.bumpTo(i);
|
|
2822
2820
|
var s = this.clonePosition(), o = _(t, s);
|
|
2823
2821
|
return { value: n, location: o };
|
|
@@ -2836,44 +2834,44 @@ var Hn = (
|
|
|
2836
2834
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2837
2835
|
if (c.err)
|
|
2838
2836
|
return c;
|
|
2839
|
-
var f =
|
|
2837
|
+
var f = Tn(c.val);
|
|
2840
2838
|
if (f.length === 0)
|
|
2841
2839
|
return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
2842
|
-
var
|
|
2843
|
-
a = { style: f, styleLocation:
|
|
2840
|
+
var d = _(l, this.clonePosition());
|
|
2841
|
+
a = { style: f, styleLocation: d };
|
|
2844
2842
|
}
|
|
2845
|
-
var
|
|
2846
|
-
if (
|
|
2847
|
-
return
|
|
2843
|
+
var p = this.tryParseArgumentClose(i);
|
|
2844
|
+
if (p.err)
|
|
2845
|
+
return p;
|
|
2848
2846
|
var g = _(i, this.clonePosition());
|
|
2849
|
-
if (a &&
|
|
2850
|
-
var E =
|
|
2847
|
+
if (a && ht(a == null ? void 0 : a.style, "::", 0)) {
|
|
2848
|
+
var E = vn(a.style.slice(2));
|
|
2851
2849
|
if (u === "number") {
|
|
2852
2850
|
var c = this.parseNumberSkeletonFromString(E, a.styleLocation);
|
|
2853
2851
|
return c.err ? c : {
|
|
2854
|
-
val: { type:
|
|
2852
|
+
val: { type: T.number, value: n, location: g, style: c.val },
|
|
2855
2853
|
err: null
|
|
2856
2854
|
};
|
|
2857
2855
|
} else {
|
|
2858
2856
|
if (E.length === 0)
|
|
2859
2857
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
|
|
2860
2858
|
var m = E;
|
|
2861
|
-
this.locale && (m =
|
|
2859
|
+
this.locale && (m = hn(E, this.locale));
|
|
2862
2860
|
var f = {
|
|
2863
|
-
type:
|
|
2861
|
+
type: J.dateTime,
|
|
2864
2862
|
pattern: m,
|
|
2865
2863
|
location: a.styleLocation,
|
|
2866
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2867
|
-
},
|
|
2864
|
+
parsedOptions: this.shouldParseSkeletons ? tn(m) : {}
|
|
2865
|
+
}, C = u === "date" ? T.date : T.time;
|
|
2868
2866
|
return {
|
|
2869
|
-
val: { type:
|
|
2867
|
+
val: { type: C, value: n, location: g, style: f },
|
|
2870
2868
|
err: null
|
|
2871
2869
|
};
|
|
2872
2870
|
}
|
|
2873
2871
|
}
|
|
2874
2872
|
return {
|
|
2875
2873
|
val: {
|
|
2876
|
-
type: u === "number" ?
|
|
2874
|
+
type: u === "number" ? T.number : u === "date" ? T.date : T.time,
|
|
2877
2875
|
value: n,
|
|
2878
2876
|
location: g,
|
|
2879
2877
|
style: (s = a == null ? void 0 : a.style) !== null && s !== void 0 ? s : null
|
|
@@ -2884,41 +2882,41 @@ var Hn = (
|
|
|
2884
2882
|
case "plural":
|
|
2885
2883
|
case "selectordinal":
|
|
2886
2884
|
case "select": {
|
|
2887
|
-
var
|
|
2885
|
+
var A = this.clonePosition();
|
|
2888
2886
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2889
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(
|
|
2887
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(A, x({}, A)));
|
|
2890
2888
|
this.bumpSpace();
|
|
2891
|
-
var
|
|
2892
|
-
if (u !== "select" &&
|
|
2889
|
+
var O = this.parseIdentifierIfPossible(), B = 0;
|
|
2890
|
+
if (u !== "select" && O.value === "offset") {
|
|
2893
2891
|
if (!this.bumpIf(":"))
|
|
2894
2892
|
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
2895
2893
|
this.bumpSpace();
|
|
2896
2894
|
var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2897
2895
|
if (c.err)
|
|
2898
2896
|
return c;
|
|
2899
|
-
this.bumpSpace(),
|
|
2897
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), B = c.val;
|
|
2900
2898
|
}
|
|
2901
|
-
var H = this.tryParsePluralOrSelectOptions(t, u, r,
|
|
2899
|
+
var H = this.tryParsePluralOrSelectOptions(t, u, r, O);
|
|
2902
2900
|
if (H.err)
|
|
2903
2901
|
return H;
|
|
2904
|
-
var
|
|
2905
|
-
if (
|
|
2906
|
-
return
|
|
2902
|
+
var p = this.tryParseArgumentClose(i);
|
|
2903
|
+
if (p.err)
|
|
2904
|
+
return p;
|
|
2907
2905
|
var P = _(i, this.clonePosition());
|
|
2908
2906
|
return u === "select" ? {
|
|
2909
2907
|
val: {
|
|
2910
|
-
type:
|
|
2908
|
+
type: T.select,
|
|
2911
2909
|
value: n,
|
|
2912
|
-
options:
|
|
2910
|
+
options: lt(H.val),
|
|
2913
2911
|
location: P
|
|
2914
2912
|
},
|
|
2915
2913
|
err: null
|
|
2916
2914
|
} : {
|
|
2917
2915
|
val: {
|
|
2918
|
-
type:
|
|
2916
|
+
type: T.plural,
|
|
2919
2917
|
value: n,
|
|
2920
|
-
options:
|
|
2921
|
-
offset:
|
|
2918
|
+
options: lt(H.val),
|
|
2919
|
+
offset: B,
|
|
2922
2920
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
2923
2921
|
location: P
|
|
2924
2922
|
},
|
|
@@ -2968,16 +2966,16 @@ var Hn = (
|
|
|
2968
2966
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2969
2967
|
var n = [];
|
|
2970
2968
|
try {
|
|
2971
|
-
n =
|
|
2969
|
+
n = nn(t);
|
|
2972
2970
|
} catch (i) {
|
|
2973
2971
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
2974
2972
|
}
|
|
2975
2973
|
return {
|
|
2976
2974
|
val: {
|
|
2977
|
-
type:
|
|
2975
|
+
type: J.number,
|
|
2978
2976
|
tokens: n,
|
|
2979
2977
|
location: r,
|
|
2980
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2978
|
+
parsedOptions: this.shouldParseSkeletons ? un(n) : {}
|
|
2981
2979
|
},
|
|
2982
2980
|
err: null
|
|
2983
2981
|
};
|
|
@@ -2996,20 +2994,20 @@ var Hn = (
|
|
|
2996
2994
|
if (h.has(a))
|
|
2997
2995
|
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
2998
2996
|
a === "other" && (o = !0), this.bumpSpace();
|
|
2999
|
-
var
|
|
2997
|
+
var d = this.clonePosition();
|
|
3000
2998
|
if (!this.bumpIf("{"))
|
|
3001
2999
|
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
|
|
3002
|
-
var
|
|
3003
|
-
if (
|
|
3004
|
-
return
|
|
3005
|
-
var g = this.tryParseArgumentClose(
|
|
3000
|
+
var p = this.parseMessage(t + 1, r, n);
|
|
3001
|
+
if (p.err)
|
|
3002
|
+
return p;
|
|
3003
|
+
var g = this.tryParseArgumentClose(d);
|
|
3006
3004
|
if (g.err)
|
|
3007
3005
|
return g;
|
|
3008
3006
|
u.push([
|
|
3009
3007
|
a,
|
|
3010
3008
|
{
|
|
3011
|
-
value:
|
|
3012
|
-
location: _(
|
|
3009
|
+
value: p.val,
|
|
3010
|
+
location: _(d, this.clonePosition())
|
|
3013
3011
|
}
|
|
3014
3012
|
]), h.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, l = s.location;
|
|
3015
3013
|
}
|
|
@@ -3040,7 +3038,7 @@ var Hn = (
|
|
|
3040
3038
|
var t = this.position.offset;
|
|
3041
3039
|
if (t >= this.message.length)
|
|
3042
3040
|
throw Error("out of bound");
|
|
3043
|
-
var r =
|
|
3041
|
+
var r = jt(this.message, t);
|
|
3044
3042
|
if (r === void 0)
|
|
3045
3043
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3046
3044
|
return r;
|
|
@@ -3059,7 +3057,7 @@ var Hn = (
|
|
|
3059
3057
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3060
3058
|
}
|
|
3061
3059
|
}, e.prototype.bumpIf = function(t) {
|
|
3062
|
-
if (
|
|
3060
|
+
if (ht(this.message, t, this.offset())) {
|
|
3063
3061
|
for (var r = 0; r < t.length; r++)
|
|
3064
3062
|
this.bump();
|
|
3065
3063
|
return !0;
|
|
@@ -3081,7 +3079,7 @@ var Hn = (
|
|
|
3081
3079
|
break;
|
|
3082
3080
|
}
|
|
3083
3081
|
}, e.prototype.bumpSpace = function() {
|
|
3084
|
-
for (; !this.isEOF() &&
|
|
3082
|
+
for (; !this.isEOF() && Vt(this.char()); )
|
|
3085
3083
|
this.bump();
|
|
3086
3084
|
}, e.prototype.peek = function() {
|
|
3087
3085
|
if (this.isEOF())
|
|
@@ -3091,47 +3089,47 @@ var Hn = (
|
|
|
3091
3089
|
}, e;
|
|
3092
3090
|
}()
|
|
3093
3091
|
);
|
|
3094
|
-
function
|
|
3092
|
+
function Fe(e) {
|
|
3095
3093
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3096
3094
|
}
|
|
3097
|
-
function
|
|
3098
|
-
return
|
|
3095
|
+
function Hn(e) {
|
|
3096
|
+
return Fe(e) || e === 47;
|
|
3099
3097
|
}
|
|
3100
3098
|
function An(e) {
|
|
3101
3099
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3102
3100
|
}
|
|
3103
|
-
function
|
|
3101
|
+
function Vt(e) {
|
|
3104
3102
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3105
3103
|
}
|
|
3106
3104
|
function Bn(e) {
|
|
3107
3105
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3108
3106
|
}
|
|
3109
|
-
function
|
|
3107
|
+
function je(e) {
|
|
3110
3108
|
e.forEach(function(t) {
|
|
3111
|
-
if (delete t.location,
|
|
3109
|
+
if (delete t.location, It(t) || Mt(t))
|
|
3112
3110
|
for (var r in t.options)
|
|
3113
|
-
delete t.options[r].location,
|
|
3111
|
+
delete t.options[r].location, je(t.options[r].value);
|
|
3114
3112
|
else
|
|
3115
|
-
|
|
3113
|
+
Pt(t) && Rt(t.style) || (Nt(t) || Lt(t)) && Re(t.style) ? delete t.style.location : $t(t) && je(t.children);
|
|
3116
3114
|
});
|
|
3117
3115
|
}
|
|
3118
|
-
function
|
|
3119
|
-
t === void 0 && (t = {}), t =
|
|
3120
|
-
var r = new
|
|
3116
|
+
function Sn(e, t) {
|
|
3117
|
+
t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3118
|
+
var r = new Cn(e, t).parse();
|
|
3121
3119
|
if (r.err) {
|
|
3122
3120
|
var n = SyntaxError(y[r.err.kind]);
|
|
3123
3121
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3124
3122
|
}
|
|
3125
|
-
return t != null && t.captureLocation ||
|
|
3123
|
+
return t != null && t.captureLocation || je(r.val), r.val;
|
|
3126
3124
|
}
|
|
3127
|
-
var
|
|
3125
|
+
var q;
|
|
3128
3126
|
(function(e) {
|
|
3129
3127
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3130
|
-
})(
|
|
3131
|
-
var
|
|
3128
|
+
})(q || (q = {}));
|
|
3129
|
+
var ve = (
|
|
3132
3130
|
/** @class */
|
|
3133
3131
|
function(e) {
|
|
3134
|
-
|
|
3132
|
+
Ee(t, e);
|
|
3135
3133
|
function t(r, n, i) {
|
|
3136
3134
|
var s = e.call(this, r) || this;
|
|
3137
3135
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3140,155 +3138,155 @@ var Ce = (
|
|
|
3140
3138
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3141
3139
|
}, t;
|
|
3142
3140
|
}(Error)
|
|
3143
|
-
),
|
|
3141
|
+
), ct = (
|
|
3144
3142
|
/** @class */
|
|
3145
3143
|
function(e) {
|
|
3146
|
-
|
|
3144
|
+
Ee(t, e);
|
|
3147
3145
|
function t(r, n, i, s) {
|
|
3148
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3146
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, s) || this;
|
|
3149
3147
|
}
|
|
3150
3148
|
return t;
|
|
3151
|
-
}(
|
|
3149
|
+
}(ve)
|
|
3152
3150
|
), wn = (
|
|
3153
3151
|
/** @class */
|
|
3154
3152
|
function(e) {
|
|
3155
|
-
|
|
3153
|
+
Ee(t, e);
|
|
3156
3154
|
function t(r, n, i) {
|
|
3157
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3155
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), q.INVALID_VALUE, i) || this;
|
|
3158
3156
|
}
|
|
3159
3157
|
return t;
|
|
3160
|
-
}(
|
|
3161
|
-
),
|
|
3158
|
+
}(ve)
|
|
3159
|
+
), On = (
|
|
3162
3160
|
/** @class */
|
|
3163
3161
|
function(e) {
|
|
3164
|
-
|
|
3162
|
+
Ee(t, e);
|
|
3165
3163
|
function t(r, n) {
|
|
3166
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3164
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), q.MISSING_VALUE, n) || this;
|
|
3167
3165
|
}
|
|
3168
3166
|
return t;
|
|
3169
|
-
}(
|
|
3170
|
-
),
|
|
3167
|
+
}(ve)
|
|
3168
|
+
), w;
|
|
3171
3169
|
(function(e) {
|
|
3172
3170
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3173
|
-
})(
|
|
3174
|
-
function
|
|
3171
|
+
})(w || (w = {}));
|
|
3172
|
+
function Pn(e) {
|
|
3175
3173
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3176
3174
|
var n = t[t.length - 1];
|
|
3177
|
-
return !n || n.type !==
|
|
3175
|
+
return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
|
|
3178
3176
|
}, []);
|
|
3179
3177
|
}
|
|
3180
|
-
function
|
|
3178
|
+
function Nn(e) {
|
|
3181
3179
|
return typeof e == "function";
|
|
3182
3180
|
}
|
|
3183
3181
|
function de(e, t, r, n, i, s, o) {
|
|
3184
|
-
if (e.length === 1 &&
|
|
3182
|
+
if (e.length === 1 && st(e[0]))
|
|
3185
3183
|
return [
|
|
3186
3184
|
{
|
|
3187
|
-
type:
|
|
3185
|
+
type: w.literal,
|
|
3188
3186
|
value: e[0].value
|
|
3189
3187
|
}
|
|
3190
3188
|
];
|
|
3191
3189
|
for (var u = [], h = 0, a = e; h < a.length; h++) {
|
|
3192
3190
|
var l = a[h];
|
|
3193
|
-
if (
|
|
3191
|
+
if (st(l)) {
|
|
3194
3192
|
u.push({
|
|
3195
|
-
type:
|
|
3193
|
+
type: w.literal,
|
|
3196
3194
|
value: l.value
|
|
3197
3195
|
});
|
|
3198
3196
|
continue;
|
|
3199
3197
|
}
|
|
3200
|
-
if (
|
|
3198
|
+
if (Kr(l)) {
|
|
3201
3199
|
typeof s == "number" && u.push({
|
|
3202
|
-
type:
|
|
3200
|
+
type: w.literal,
|
|
3203
3201
|
value: r.getNumberFormat(t).format(s)
|
|
3204
3202
|
});
|
|
3205
3203
|
continue;
|
|
3206
3204
|
}
|
|
3207
3205
|
var c = l.value;
|
|
3208
3206
|
if (!(i && c in i))
|
|
3209
|
-
throw new
|
|
3207
|
+
throw new On(c, o);
|
|
3210
3208
|
var f = i[c];
|
|
3211
|
-
if (
|
|
3209
|
+
if (Yr(l)) {
|
|
3212
3210
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
|
|
3213
|
-
type: typeof f == "string" ?
|
|
3211
|
+
type: typeof f == "string" ? w.literal : w.object,
|
|
3214
3212
|
value: f
|
|
3215
3213
|
});
|
|
3216
3214
|
continue;
|
|
3217
3215
|
}
|
|
3218
|
-
if (
|
|
3219
|
-
var
|
|
3216
|
+
if (Nt(l)) {
|
|
3217
|
+
var d = typeof l.style == "string" ? n.date[l.style] : Re(l.style) ? l.style.parsedOptions : void 0;
|
|
3220
3218
|
u.push({
|
|
3221
|
-
type:
|
|
3222
|
-
value: r.getDateTimeFormat(t,
|
|
3219
|
+
type: w.literal,
|
|
3220
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3223
3221
|
});
|
|
3224
3222
|
continue;
|
|
3225
3223
|
}
|
|
3226
|
-
if (
|
|
3227
|
-
var
|
|
3224
|
+
if (Lt(l)) {
|
|
3225
|
+
var d = typeof l.style == "string" ? n.time[l.style] : Re(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3228
3226
|
u.push({
|
|
3229
|
-
type:
|
|
3230
|
-
value: r.getDateTimeFormat(t,
|
|
3227
|
+
type: w.literal,
|
|
3228
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3231
3229
|
});
|
|
3232
3230
|
continue;
|
|
3233
3231
|
}
|
|
3234
|
-
if (
|
|
3235
|
-
var
|
|
3236
|
-
|
|
3237
|
-
type:
|
|
3238
|
-
value: r.getNumberFormat(t,
|
|
3232
|
+
if (Pt(l)) {
|
|
3233
|
+
var d = typeof l.style == "string" ? n.number[l.style] : Rt(l.style) ? l.style.parsedOptions : void 0;
|
|
3234
|
+
d && d.scale && (f = f * (d.scale || 1)), u.push({
|
|
3235
|
+
type: w.literal,
|
|
3236
|
+
value: r.getNumberFormat(t, d).format(f)
|
|
3239
3237
|
});
|
|
3240
3238
|
continue;
|
|
3241
3239
|
}
|
|
3242
|
-
if (
|
|
3243
|
-
var
|
|
3244
|
-
if (!
|
|
3240
|
+
if ($t(l)) {
|
|
3241
|
+
var p = l.children, g = l.value, E = i[g];
|
|
3242
|
+
if (!Nn(E))
|
|
3245
3243
|
throw new wn(g, "function", o);
|
|
3246
|
-
var m = de(
|
|
3247
|
-
return
|
|
3244
|
+
var m = de(p, t, r, n, i, s), C = E(m.map(function(B) {
|
|
3245
|
+
return B.value;
|
|
3248
3246
|
}));
|
|
3249
|
-
Array.isArray(
|
|
3247
|
+
Array.isArray(C) || (C = [C]), u.push.apply(u, C.map(function(B) {
|
|
3250
3248
|
return {
|
|
3251
|
-
type: typeof
|
|
3252
|
-
value:
|
|
3249
|
+
type: typeof B == "string" ? w.literal : w.object,
|
|
3250
|
+
value: B
|
|
3253
3251
|
};
|
|
3254
3252
|
}));
|
|
3255
3253
|
}
|
|
3256
|
-
if (
|
|
3257
|
-
var
|
|
3258
|
-
if (!
|
|
3259
|
-
throw new
|
|
3260
|
-
u.push.apply(u, de(
|
|
3254
|
+
if (It(l)) {
|
|
3255
|
+
var A = l.options[f] || l.options.other;
|
|
3256
|
+
if (!A)
|
|
3257
|
+
throw new ct(l.value, f, Object.keys(l.options), o);
|
|
3258
|
+
u.push.apply(u, de(A.value, t, r, n, i));
|
|
3261
3259
|
continue;
|
|
3262
3260
|
}
|
|
3263
|
-
if (
|
|
3264
|
-
var
|
|
3265
|
-
if (!
|
|
3261
|
+
if (Mt(l)) {
|
|
3262
|
+
var A = l.options["=".concat(f)];
|
|
3263
|
+
if (!A) {
|
|
3266
3264
|
if (!Intl.PluralRules)
|
|
3267
|
-
throw new
|
|
3265
|
+
throw new ve(`Intl.PluralRules is not available in this environment.
|
|
3268
3266
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3269
|
-
`,
|
|
3270
|
-
var
|
|
3271
|
-
|
|
3267
|
+
`, q.MISSING_INTL_API, o);
|
|
3268
|
+
var O = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3269
|
+
A = l.options[O] || l.options.other;
|
|
3272
3270
|
}
|
|
3273
|
-
if (!
|
|
3274
|
-
throw new
|
|
3275
|
-
u.push.apply(u, de(
|
|
3271
|
+
if (!A)
|
|
3272
|
+
throw new ct(l.value, f, Object.keys(l.options), o);
|
|
3273
|
+
u.push.apply(u, de(A.value, t, r, n, i, f - (l.offset || 0)));
|
|
3276
3274
|
continue;
|
|
3277
3275
|
}
|
|
3278
3276
|
}
|
|
3279
|
-
return
|
|
3277
|
+
return Pn(u);
|
|
3280
3278
|
}
|
|
3281
|
-
function
|
|
3282
|
-
return t ?
|
|
3283
|
-
return r[n] =
|
|
3279
|
+
function Ln(e, t) {
|
|
3280
|
+
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3281
|
+
return r[n] = x(x({}, e[n]), t[n] || {}), r;
|
|
3284
3282
|
}, {})) : e;
|
|
3285
3283
|
}
|
|
3286
|
-
function
|
|
3284
|
+
function In(e, t) {
|
|
3287
3285
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3288
|
-
return r[n] =
|
|
3289
|
-
},
|
|
3286
|
+
return r[n] = Ln(e[n], t[n]), r;
|
|
3287
|
+
}, x({}, e)) : e;
|
|
3290
3288
|
}
|
|
3291
|
-
function
|
|
3289
|
+
function Pe(e) {
|
|
3292
3290
|
return {
|
|
3293
3291
|
create: function() {
|
|
3294
3292
|
return {
|
|
@@ -3302,39 +3300,39 @@ function Le(e) {
|
|
|
3302
3300
|
}
|
|
3303
3301
|
};
|
|
3304
3302
|
}
|
|
3305
|
-
function
|
|
3303
|
+
function Mn(e) {
|
|
3306
3304
|
return e === void 0 && (e = {
|
|
3307
3305
|
number: {},
|
|
3308
3306
|
dateTime: {},
|
|
3309
3307
|
pluralRules: {}
|
|
3310
3308
|
}), {
|
|
3311
|
-
getNumberFormat:
|
|
3309
|
+
getNumberFormat: Se(function() {
|
|
3312
3310
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3313
3311
|
r[n] = arguments[n];
|
|
3314
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3312
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3315
3313
|
}, {
|
|
3316
|
-
cache:
|
|
3317
|
-
strategy:
|
|
3314
|
+
cache: Pe(e.number),
|
|
3315
|
+
strategy: we.variadic
|
|
3318
3316
|
}),
|
|
3319
|
-
getDateTimeFormat:
|
|
3317
|
+
getDateTimeFormat: Se(function() {
|
|
3320
3318
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3321
3319
|
r[n] = arguments[n];
|
|
3322
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3320
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3323
3321
|
}, {
|
|
3324
|
-
cache:
|
|
3325
|
-
strategy:
|
|
3322
|
+
cache: Pe(e.dateTime),
|
|
3323
|
+
strategy: we.variadic
|
|
3326
3324
|
}),
|
|
3327
|
-
getPluralRules:
|
|
3325
|
+
getPluralRules: Se(function() {
|
|
3328
3326
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3329
3327
|
r[n] = arguments[n];
|
|
3330
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3328
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Be([void 0], r, !1)))();
|
|
3331
3329
|
}, {
|
|
3332
|
-
cache:
|
|
3333
|
-
strategy:
|
|
3330
|
+
cache: Pe(e.pluralRules),
|
|
3331
|
+
strategy: we.variadic
|
|
3334
3332
|
})
|
|
3335
3333
|
};
|
|
3336
3334
|
}
|
|
3337
|
-
var
|
|
3335
|
+
var $n = (
|
|
3338
3336
|
/** @class */
|
|
3339
3337
|
function() {
|
|
3340
3338
|
function e(t, r, n, i) {
|
|
@@ -3349,7 +3347,7 @@ var Rn = (
|
|
|
3349
3347
|
if (a.length === 1)
|
|
3350
3348
|
return a[0].value;
|
|
3351
3349
|
var l = a.reduce(function(c, f) {
|
|
3352
|
-
return !c.length || f.type !==
|
|
3350
|
+
return !c.length || f.type !== w.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3353
3351
|
}, []);
|
|
3354
3352
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3355
3353
|
}, this.formatToParts = function(h) {
|
|
@@ -3366,13 +3364,13 @@ var Rn = (
|
|
|
3366
3364
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3367
3365
|
var o = i || {};
|
|
3368
3366
|
o.formatters;
|
|
3369
|
-
var u =
|
|
3370
|
-
this.ast = e.__parse(t,
|
|
3367
|
+
var u = Vr(o, ["formatters"]);
|
|
3368
|
+
this.ast = e.__parse(t, x(x({}, u), { locale: this.resolvedLocale }));
|
|
3371
3369
|
} else
|
|
3372
3370
|
this.ast = t;
|
|
3373
3371
|
if (!Array.isArray(this.ast))
|
|
3374
3372
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3375
|
-
this.formats =
|
|
3373
|
+
this.formats = In(e.formats, n), this.formatters = i && i.formatters || Mn(this.formatterCache);
|
|
3376
3374
|
}
|
|
3377
3375
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3378
3376
|
get: function() {
|
|
@@ -3385,7 +3383,7 @@ var Rn = (
|
|
|
3385
3383
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3386
3384
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3387
3385
|
}
|
|
3388
|
-
}, e.__parse =
|
|
3386
|
+
}, e.__parse = Sn, e.formats = {
|
|
3389
3387
|
number: {
|
|
3390
3388
|
integer: {
|
|
3391
3389
|
maximumFractionDigits: 0
|
|
@@ -3446,7 +3444,7 @@ var Rn = (
|
|
|
3446
3444
|
}, e;
|
|
3447
3445
|
}()
|
|
3448
3446
|
);
|
|
3449
|
-
function
|
|
3447
|
+
function Rn(e, t) {
|
|
3450
3448
|
if (t == null)
|
|
3451
3449
|
return;
|
|
3452
3450
|
if (t in e)
|
|
@@ -3467,92 +3465,92 @@ function Un(e, t) {
|
|
|
3467
3465
|
n = void 0;
|
|
3468
3466
|
return n;
|
|
3469
3467
|
}
|
|
3470
|
-
const
|
|
3468
|
+
const D = {}, Un = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), Xt = (e, t) => {
|
|
3471
3469
|
if (t == null)
|
|
3472
3470
|
return;
|
|
3473
|
-
if (t in
|
|
3474
|
-
return
|
|
3475
|
-
const r =
|
|
3471
|
+
if (t in D && e in D[t])
|
|
3472
|
+
return D[t][e];
|
|
3473
|
+
const r = Te(t);
|
|
3476
3474
|
for (let n = 0; n < r.length; n++) {
|
|
3477
|
-
const i = r[n], s =
|
|
3475
|
+
const i = r[n], s = Dn(i, e);
|
|
3478
3476
|
if (s)
|
|
3479
|
-
return
|
|
3477
|
+
return Un(e, t, s);
|
|
3480
3478
|
}
|
|
3481
3479
|
};
|
|
3482
|
-
let
|
|
3483
|
-
const
|
|
3484
|
-
function
|
|
3485
|
-
return
|
|
3480
|
+
let We;
|
|
3481
|
+
const he = xe({});
|
|
3482
|
+
function Gn(e) {
|
|
3483
|
+
return We[e] || null;
|
|
3486
3484
|
}
|
|
3487
|
-
function
|
|
3488
|
-
return e in
|
|
3485
|
+
function zt(e) {
|
|
3486
|
+
return e in We;
|
|
3489
3487
|
}
|
|
3490
|
-
function
|
|
3491
|
-
if (!
|
|
3488
|
+
function Dn(e, t) {
|
|
3489
|
+
if (!zt(e))
|
|
3492
3490
|
return null;
|
|
3493
|
-
const r =
|
|
3494
|
-
return
|
|
3491
|
+
const r = Gn(e);
|
|
3492
|
+
return Rn(r, t);
|
|
3495
3493
|
}
|
|
3496
|
-
function
|
|
3494
|
+
function Fn(e) {
|
|
3497
3495
|
if (e == null)
|
|
3498
3496
|
return;
|
|
3499
|
-
const t =
|
|
3497
|
+
const t = Te(e);
|
|
3500
3498
|
for (let r = 0; r < t.length; r++) {
|
|
3501
3499
|
const n = t[r];
|
|
3502
|
-
if (
|
|
3500
|
+
if (zt(n))
|
|
3503
3501
|
return n;
|
|
3504
3502
|
}
|
|
3505
3503
|
}
|
|
3506
|
-
function
|
|
3507
|
-
delete
|
|
3504
|
+
function Wt(e, ...t) {
|
|
3505
|
+
delete D[e], he.update((r) => (r[e] = kr.all([r[e] || {}, ...t]), r));
|
|
3508
3506
|
}
|
|
3509
|
-
|
|
3510
|
-
[
|
|
3507
|
+
ee(
|
|
3508
|
+
[he],
|
|
3511
3509
|
([e]) => Object.keys(e)
|
|
3512
3510
|
);
|
|
3513
|
-
|
|
3514
|
-
const
|
|
3515
|
-
function
|
|
3516
|
-
|
|
3511
|
+
he.subscribe((e) => We = e);
|
|
3512
|
+
const pe = {};
|
|
3513
|
+
function jn(e, t) {
|
|
3514
|
+
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
3517
3515
|
}
|
|
3518
|
-
function
|
|
3519
|
-
return
|
|
3516
|
+
function Zt(e) {
|
|
3517
|
+
return pe[e];
|
|
3520
3518
|
}
|
|
3521
|
-
function
|
|
3522
|
-
return
|
|
3523
|
-
const r =
|
|
3519
|
+
function kn(e) {
|
|
3520
|
+
return Te(e).map((t) => {
|
|
3521
|
+
const r = Zt(t);
|
|
3524
3522
|
return [t, r ? [...r] : []];
|
|
3525
3523
|
}).filter(([, t]) => t.length > 0);
|
|
3526
3524
|
}
|
|
3527
|
-
function
|
|
3528
|
-
return e == null ? !1 :
|
|
3525
|
+
function ke(e) {
|
|
3526
|
+
return e == null ? !1 : Te(e).some(
|
|
3529
3527
|
(t) => {
|
|
3530
3528
|
var r;
|
|
3531
|
-
return (r =
|
|
3529
|
+
return (r = Zt(t)) == null ? void 0 : r.size;
|
|
3532
3530
|
}
|
|
3533
3531
|
);
|
|
3534
3532
|
}
|
|
3535
|
-
function
|
|
3533
|
+
function Vn(e, t) {
|
|
3536
3534
|
return Promise.all(
|
|
3537
|
-
t.map((n) => (
|
|
3538
|
-
).then((n) =>
|
|
3539
|
-
}
|
|
3540
|
-
const
|
|
3541
|
-
function
|
|
3542
|
-
if (!
|
|
3543
|
-
return e in
|
|
3544
|
-
const t =
|
|
3545
|
-
return
|
|
3535
|
+
t.map((n) => (jn(e, n), n().then((i) => i.default || i)))
|
|
3536
|
+
).then((n) => Wt(e, ...n));
|
|
3537
|
+
}
|
|
3538
|
+
const ne = {};
|
|
3539
|
+
function Qt(e) {
|
|
3540
|
+
if (!ke(e))
|
|
3541
|
+
return e in ne ? ne[e] : Promise.resolve();
|
|
3542
|
+
const t = kn(e);
|
|
3543
|
+
return ne[e] = Promise.all(
|
|
3546
3544
|
t.map(
|
|
3547
|
-
([r, n]) =>
|
|
3545
|
+
([r, n]) => Vn(r, n)
|
|
3548
3546
|
)
|
|
3549
3547
|
).then(() => {
|
|
3550
|
-
if (
|
|
3551
|
-
return
|
|
3552
|
-
delete
|
|
3553
|
-
}),
|
|
3548
|
+
if (ke(e))
|
|
3549
|
+
return Qt(e);
|
|
3550
|
+
delete ne[e];
|
|
3551
|
+
}), ne[e];
|
|
3554
3552
|
}
|
|
3555
|
-
const
|
|
3553
|
+
const Xn = {
|
|
3556
3554
|
number: {
|
|
3557
3555
|
scientific: { notation: "scientific" },
|
|
3558
3556
|
engineering: { notation: "engineering" },
|
|
@@ -3581,150 +3579,150 @@ const zn = {
|
|
|
3581
3579
|
timeZoneName: "short"
|
|
3582
3580
|
}
|
|
3583
3581
|
}
|
|
3584
|
-
},
|
|
3582
|
+
}, zn = {
|
|
3585
3583
|
fallbackLocale: null,
|
|
3586
3584
|
loadingDelay: 200,
|
|
3587
|
-
formats:
|
|
3585
|
+
formats: Xn,
|
|
3588
3586
|
warnOnMissingMessages: !0,
|
|
3589
3587
|
handleMissingMessage: void 0,
|
|
3590
3588
|
ignoreTag: !0
|
|
3591
|
-
},
|
|
3592
|
-
function
|
|
3593
|
-
return
|
|
3594
|
-
}
|
|
3595
|
-
const
|
|
3596
|
-
var
|
|
3597
|
-
for (var r in t
|
|
3598
|
-
|
|
3599
|
-
if (
|
|
3600
|
-
for (var r of
|
|
3601
|
-
|
|
3589
|
+
}, Wn = zn;
|
|
3590
|
+
function Y() {
|
|
3591
|
+
return Wn;
|
|
3592
|
+
}
|
|
3593
|
+
const Ne = xe(!1);
|
|
3594
|
+
var Zn = Object.defineProperty, Qn = Object.defineProperties, Jn = Object.getOwnPropertyDescriptors, gt = Object.getOwnPropertySymbols, qn = Object.prototype.hasOwnProperty, Yn = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? Zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Kn = (e, t) => {
|
|
3595
|
+
for (var r in t)
|
|
3596
|
+
qn.call(t, r) && mt(e, r, t[r]);
|
|
3597
|
+
if (gt)
|
|
3598
|
+
for (var r of gt(t))
|
|
3599
|
+
Yn.call(t, r) && mt(e, r, t[r]);
|
|
3602
3600
|
return e;
|
|
3603
|
-
},
|
|
3604
|
-
let
|
|
3605
|
-
const
|
|
3601
|
+
}, ei = (e, t) => Qn(e, Jn(t));
|
|
3602
|
+
let Ve;
|
|
3603
|
+
const ye = xe(null);
|
|
3606
3604
|
function dt(e) {
|
|
3607
3605
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3608
3606
|
}
|
|
3609
|
-
function
|
|
3607
|
+
function Te(e, t = Y().fallbackLocale) {
|
|
3610
3608
|
const r = dt(e);
|
|
3611
3609
|
return t ? [.../* @__PURE__ */ new Set([...r, ...dt(t)])] : r;
|
|
3612
3610
|
}
|
|
3613
|
-
function
|
|
3614
|
-
return
|
|
3611
|
+
function V() {
|
|
3612
|
+
return Ve != null ? Ve : void 0;
|
|
3615
3613
|
}
|
|
3616
|
-
|
|
3617
|
-
|
|
3614
|
+
ye.subscribe((e) => {
|
|
3615
|
+
Ve = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3618
3616
|
});
|
|
3619
|
-
const
|
|
3620
|
-
if (e &&
|
|
3621
|
-
const { loadingDelay: t } =
|
|
3617
|
+
const ti = (e) => {
|
|
3618
|
+
if (e && Fn(e) && ke(e)) {
|
|
3619
|
+
const { loadingDelay: t } = Y();
|
|
3622
3620
|
let r;
|
|
3623
|
-
return typeof window != "undefined" &&
|
|
3624
|
-
() =>
|
|
3621
|
+
return typeof window != "undefined" && V() != null && t ? r = window.setTimeout(
|
|
3622
|
+
() => Ne.set(!0),
|
|
3625
3623
|
t
|
|
3626
|
-
) :
|
|
3627
|
-
|
|
3624
|
+
) : Ne.set(!0), Qt(e).then(() => {
|
|
3625
|
+
ye.set(e);
|
|
3628
3626
|
}).finally(() => {
|
|
3629
|
-
clearTimeout(r),
|
|
3627
|
+
clearTimeout(r), Ne.set(!1);
|
|
3630
3628
|
});
|
|
3631
3629
|
}
|
|
3632
|
-
return
|
|
3633
|
-
},
|
|
3634
|
-
set:
|
|
3635
|
-
}),
|
|
3630
|
+
return ye.set(e);
|
|
3631
|
+
}, te = ei(Kn({}, ye), {
|
|
3632
|
+
set: ti
|
|
3633
|
+
}), Ce = (e) => {
|
|
3636
3634
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3637
3635
|
return (n) => {
|
|
3638
3636
|
const i = JSON.stringify(n);
|
|
3639
3637
|
return i in t ? t[i] : t[i] = e(n);
|
|
3640
3638
|
};
|
|
3641
3639
|
};
|
|
3642
|
-
var
|
|
3640
|
+
var ri = Object.defineProperty, _e = Object.getOwnPropertySymbols, Jt = Object.prototype.hasOwnProperty, qt = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
|
|
3643
3641
|
for (var r in t || (t = {}))
|
|
3644
|
-
|
|
3645
|
-
if (
|
|
3646
|
-
for (var r of
|
|
3647
|
-
|
|
3642
|
+
Jt.call(t, r) && pt(e, r, t[r]);
|
|
3643
|
+
if (_e)
|
|
3644
|
+
for (var r of _e(t))
|
|
3645
|
+
qt.call(t, r) && pt(e, r, t[r]);
|
|
3648
3646
|
return e;
|
|
3649
|
-
},
|
|
3647
|
+
}, re = (e, t) => {
|
|
3650
3648
|
var r = {};
|
|
3651
3649
|
for (var n in e)
|
|
3652
|
-
|
|
3653
|
-
if (e != null &&
|
|
3654
|
-
for (var n of
|
|
3655
|
-
t.indexOf(n) < 0 &&
|
|
3650
|
+
Jt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3651
|
+
if (e != null && _e)
|
|
3652
|
+
for (var n of _e(e))
|
|
3653
|
+
t.indexOf(n) < 0 && qt.call(e, n) && (r[n] = e[n]);
|
|
3656
3654
|
return r;
|
|
3657
3655
|
};
|
|
3658
|
-
const
|
|
3659
|
-
const { formats: r } =
|
|
3656
|
+
const ae = (e, t) => {
|
|
3657
|
+
const { formats: r } = Y();
|
|
3660
3658
|
if (e in r && t in r[e])
|
|
3661
3659
|
return r[e][t];
|
|
3662
3660
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3663
|
-
},
|
|
3661
|
+
}, ni = Ce(
|
|
3664
3662
|
(e) => {
|
|
3665
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3663
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3666
3664
|
if (r == null)
|
|
3667
3665
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3668
|
-
return n && (i =
|
|
3666
|
+
return n && (i = ae("number", n)), new Intl.NumberFormat(r, i);
|
|
3669
3667
|
}
|
|
3670
|
-
),
|
|
3668
|
+
), ii = Ce(
|
|
3671
3669
|
(e) => {
|
|
3672
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3670
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3673
3671
|
if (r == null)
|
|
3674
3672
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3675
|
-
return n ? i =
|
|
3673
|
+
return n ? i = ae("date", n) : Object.keys(i).length === 0 && (i = ae("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3676
3674
|
}
|
|
3677
|
-
),
|
|
3675
|
+
), si = Ce(
|
|
3678
3676
|
(e) => {
|
|
3679
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3677
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3680
3678
|
if (r == null)
|
|
3681
3679
|
throw new Error(
|
|
3682
3680
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3683
3681
|
);
|
|
3684
|
-
return n ? i =
|
|
3682
|
+
return n ? i = ae("time", n) : Object.keys(i).length === 0 && (i = ae("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3685
3683
|
}
|
|
3686
|
-
),
|
|
3684
|
+
), oi = (e = {}) => {
|
|
3687
3685
|
var t = e, {
|
|
3688
|
-
locale: r =
|
|
3689
|
-
} = t, n =
|
|
3686
|
+
locale: r = V()
|
|
3687
|
+
} = t, n = re(t, [
|
|
3690
3688
|
"locale"
|
|
3691
3689
|
]);
|
|
3692
|
-
return
|
|
3693
|
-
},
|
|
3690
|
+
return ni(Ze({ locale: r }, n));
|
|
3691
|
+
}, ai = (e = {}) => {
|
|
3694
3692
|
var t = e, {
|
|
3695
|
-
locale: r =
|
|
3696
|
-
} = t, n =
|
|
3693
|
+
locale: r = V()
|
|
3694
|
+
} = t, n = re(t, [
|
|
3697
3695
|
"locale"
|
|
3698
3696
|
]);
|
|
3699
|
-
return
|
|
3700
|
-
},
|
|
3697
|
+
return ii(Ze({ locale: r }, n));
|
|
3698
|
+
}, ui = (e = {}) => {
|
|
3701
3699
|
var t = e, {
|
|
3702
|
-
locale: r =
|
|
3703
|
-
} = t, n =
|
|
3700
|
+
locale: r = V()
|
|
3701
|
+
} = t, n = re(t, [
|
|
3704
3702
|
"locale"
|
|
3705
3703
|
]);
|
|
3706
|
-
return
|
|
3707
|
-
},
|
|
3704
|
+
return si(Ze({ locale: r }, n));
|
|
3705
|
+
}, hi = Ce(
|
|
3708
3706
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3709
|
-
(e, t =
|
|
3710
|
-
ignoreTag:
|
|
3707
|
+
(e, t = V()) => new $n(e, t, Y().formats, {
|
|
3708
|
+
ignoreTag: Y().ignoreTag
|
|
3711
3709
|
})
|
|
3712
|
-
),
|
|
3710
|
+
), li = (e, t = {}) => {
|
|
3713
3711
|
var r, n, i, s;
|
|
3714
3712
|
let o = t;
|
|
3715
3713
|
typeof e == "object" && (o = e, e = o.id);
|
|
3716
3714
|
const {
|
|
3717
3715
|
values: u,
|
|
3718
|
-
locale: h =
|
|
3716
|
+
locale: h = V(),
|
|
3719
3717
|
default: a
|
|
3720
3718
|
} = o;
|
|
3721
3719
|
if (h == null)
|
|
3722
3720
|
throw new Error(
|
|
3723
3721
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3724
3722
|
);
|
|
3725
|
-
let l =
|
|
3723
|
+
let l = Xt(e, h);
|
|
3726
3724
|
if (!l)
|
|
3727
|
-
l = (s = (i = (n = (r =
|
|
3725
|
+
l = (s = (i = (n = (r = Y()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3728
3726
|
else if (typeof l != "string")
|
|
3729
3727
|
return console.warn(
|
|
3730
3728
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3733,7 +3731,7 @@ const ue = (e, t) => {
|
|
|
3733
3731
|
return l;
|
|
3734
3732
|
let c = l;
|
|
3735
3733
|
try {
|
|
3736
|
-
c =
|
|
3734
|
+
c = hi(l, h).format(u);
|
|
3737
3735
|
} catch (f) {
|
|
3738
3736
|
f instanceof Error && console.warn(
|
|
3739
3737
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3741,18 +3739,18 @@ const ue = (e, t) => {
|
|
|
3741
3739
|
);
|
|
3742
3740
|
}
|
|
3743
3741
|
return c;
|
|
3744
|
-
},
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
function
|
|
3750
|
-
|
|
3751
|
-
}
|
|
3752
|
-
function
|
|
3753
|
-
|
|
3754
|
-
}
|
|
3755
|
-
const
|
|
3742
|
+
}, fi = (e, t) => ui(t).format(e), ci = (e, t) => ai(t).format(e), gi = (e, t) => oi(t).format(e), mi = (e, t = V()) => Xt(e, t), di = ee([te, he], () => li);
|
|
3743
|
+
ee([te], () => fi);
|
|
3744
|
+
ee([te], () => ci);
|
|
3745
|
+
ee([te], () => gi);
|
|
3746
|
+
ee([te, he], () => mi);
|
|
3747
|
+
function bt(e, t) {
|
|
3748
|
+
Wt(e, t);
|
|
3749
|
+
}
|
|
3750
|
+
function pi(e) {
|
|
3751
|
+
te.set(e);
|
|
3752
|
+
}
|
|
3753
|
+
const yt = {
|
|
3756
3754
|
en: {
|
|
3757
3755
|
topCategories: "Top Categories",
|
|
3758
3756
|
otherCategories: "Other Categories",
|
|
@@ -3862,13 +3860,13 @@ const _t = {
|
|
|
3862
3860
|
games: "games"
|
|
3863
3861
|
}
|
|
3864
3862
|
};
|
|
3865
|
-
function
|
|
3863
|
+
function bi(e, t) {
|
|
3866
3864
|
if (e) {
|
|
3867
3865
|
const r = document.createElement("style");
|
|
3868
3866
|
r.innerHTML = t, e.appendChild(r);
|
|
3869
3867
|
}
|
|
3870
3868
|
}
|
|
3871
|
-
function
|
|
3869
|
+
function yi(e, t) {
|
|
3872
3870
|
const r = new URL(t);
|
|
3873
3871
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3874
3872
|
const i = document.createElement("style");
|
|
@@ -3877,7 +3875,7 @@ function _i(e, t) {
|
|
|
3877
3875
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3878
3876
|
});
|
|
3879
3877
|
}
|
|
3880
|
-
function
|
|
3878
|
+
function _i(e, t, r) {
|
|
3881
3879
|
if (window.emMessageBus) {
|
|
3882
3880
|
const n = document.createElement("style");
|
|
3883
3881
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3886,9 +3884,9 @@ function Ei(e, t, r) {
|
|
|
3886
3884
|
}
|
|
3887
3885
|
}
|
|
3888
3886
|
function xi(e) {
|
|
3889
|
-
|
|
3887
|
+
ar(e, "svelte-2l182v", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emw--color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}");
|
|
3890
3888
|
}
|
|
3891
|
-
function
|
|
3889
|
+
function _t(e, t, r) {
|
|
3892
3890
|
const n = e.slice();
|
|
3893
3891
|
return n[23] = t[r], n;
|
|
3894
3892
|
}
|
|
@@ -3896,56 +3894,56 @@ function xt(e, t, r) {
|
|
|
3896
3894
|
const n = e.slice();
|
|
3897
3895
|
return n[23] = t[r], n;
|
|
3898
3896
|
}
|
|
3899
|
-
function
|
|
3897
|
+
function Ei(e) {
|
|
3900
3898
|
let t, r, n = (
|
|
3901
3899
|
/*$_*/
|
|
3902
3900
|
e[5]("topCategories") + ""
|
|
3903
3901
|
), i, s, o, u, h = (
|
|
3904
3902
|
/*$_*/
|
|
3905
3903
|
e[5]("otherCategories") + ""
|
|
3906
|
-
), a, l, c =
|
|
3904
|
+
), a, l, c = ce(
|
|
3907
3905
|
/*topCategories*/
|
|
3908
3906
|
e[3]
|
|
3909
3907
|
), f = [];
|
|
3910
3908
|
for (let g = 0; g < c.length; g += 1)
|
|
3911
|
-
f[g] =
|
|
3912
|
-
let
|
|
3909
|
+
f[g] = Et(xt(e, c, g));
|
|
3910
|
+
let d = ce(
|
|
3913
3911
|
/*otherCategories*/
|
|
3914
3912
|
e[4]
|
|
3915
|
-
),
|
|
3916
|
-
for (let g = 0; g <
|
|
3917
|
-
|
|
3913
|
+
), p = [];
|
|
3914
|
+
for (let g = 0; g < d.length; g += 1)
|
|
3915
|
+
p[g] = vt(_t(e, d, g));
|
|
3918
3916
|
return {
|
|
3919
3917
|
c() {
|
|
3920
|
-
t =
|
|
3918
|
+
t = S("div"), r = S("h4"), i = G(n), s = U();
|
|
3921
3919
|
for (let g = 0; g < f.length; g += 1)
|
|
3922
3920
|
f[g].c();
|
|
3923
|
-
o =
|
|
3924
|
-
for (let g = 0; g <
|
|
3925
|
-
|
|
3921
|
+
o = U(), u = S("h4"), a = G(h), l = U();
|
|
3922
|
+
for (let g = 0; g < p.length; g += 1)
|
|
3923
|
+
p[g].c();
|
|
3926
3924
|
I(r, "class", "CategoryTitle"), I(u, "class", "CategoryTitle"), I(t, "class", "CasinoCategories");
|
|
3927
3925
|
},
|
|
3928
3926
|
m(g, E) {
|
|
3929
|
-
|
|
3927
|
+
K(g, t, E), v(t, r), v(r, i), v(t, s);
|
|
3930
3928
|
for (let m = 0; m < f.length; m += 1)
|
|
3931
3929
|
f[m] && f[m].m(t, null);
|
|
3932
|
-
|
|
3933
|
-
for (let m = 0; m <
|
|
3934
|
-
|
|
3930
|
+
v(t, o), v(t, u), v(u, a), v(t, l);
|
|
3931
|
+
for (let m = 0; m < p.length; m += 1)
|
|
3932
|
+
p[m] && p[m].m(t, null);
|
|
3935
3933
|
},
|
|
3936
3934
|
p(g, E) {
|
|
3937
3935
|
if (E & /*$_*/
|
|
3938
3936
|
32 && n !== (n = /*$_*/
|
|
3939
|
-
g[5]("topCategories") + "") &&
|
|
3937
|
+
g[5]("topCategories") + "") && F(i, n), E & /*activecategory, topCategories, openGameCategory, $_*/
|
|
3940
3938
|
105) {
|
|
3941
|
-
c =
|
|
3939
|
+
c = ce(
|
|
3942
3940
|
/*topCategories*/
|
|
3943
3941
|
g[3]
|
|
3944
3942
|
);
|
|
3945
3943
|
let m;
|
|
3946
3944
|
for (m = 0; m < c.length; m += 1) {
|
|
3947
|
-
const
|
|
3948
|
-
f[m] ? f[m].p(
|
|
3945
|
+
const C = xt(g, c, m);
|
|
3946
|
+
f[m] ? f[m].p(C, E) : (f[m] = Et(C), f[m].c(), f[m].m(t, o));
|
|
3949
3947
|
}
|
|
3950
3948
|
for (; m < f.length; m += 1)
|
|
3951
3949
|
f[m].d(1);
|
|
@@ -3953,54 +3951,54 @@ function vi(e) {
|
|
|
3953
3951
|
}
|
|
3954
3952
|
if (E & /*$_*/
|
|
3955
3953
|
32 && h !== (h = /*$_*/
|
|
3956
|
-
g[5]("otherCategories") + "") &&
|
|
3954
|
+
g[5]("otherCategories") + "") && F(a, h), E & /*activecategory, otherCategories, openGameCategory, $_*/
|
|
3957
3955
|
113) {
|
|
3958
|
-
|
|
3956
|
+
d = ce(
|
|
3959
3957
|
/*otherCategories*/
|
|
3960
3958
|
g[4]
|
|
3961
3959
|
);
|
|
3962
3960
|
let m;
|
|
3963
|
-
for (m = 0; m <
|
|
3964
|
-
const
|
|
3965
|
-
|
|
3961
|
+
for (m = 0; m < d.length; m += 1) {
|
|
3962
|
+
const C = _t(g, d, m);
|
|
3963
|
+
p[m] ? p[m].p(C, E) : (p[m] = vt(C), p[m].c(), p[m].m(t, null));
|
|
3966
3964
|
}
|
|
3967
|
-
for (; m <
|
|
3968
|
-
|
|
3969
|
-
|
|
3965
|
+
for (; m < p.length; m += 1)
|
|
3966
|
+
p[m].d(1);
|
|
3967
|
+
p.length = d.length;
|
|
3970
3968
|
}
|
|
3971
3969
|
},
|
|
3972
3970
|
d(g) {
|
|
3973
|
-
g &&
|
|
3971
|
+
g && k(t), rt(f, g), rt(p, g);
|
|
3974
3972
|
}
|
|
3975
3973
|
};
|
|
3976
3974
|
}
|
|
3977
|
-
function
|
|
3975
|
+
function vi(e) {
|
|
3978
3976
|
let t;
|
|
3979
3977
|
return {
|
|
3980
3978
|
c() {
|
|
3981
|
-
t =
|
|
3979
|
+
t = S("p"), t.textContent = "Loading, please wait...", I(t, "class", "Message");
|
|
3982
3980
|
},
|
|
3983
3981
|
m(r, n) {
|
|
3984
|
-
|
|
3982
|
+
K(r, t, n);
|
|
3985
3983
|
},
|
|
3986
3984
|
p: L,
|
|
3987
3985
|
d(r) {
|
|
3988
|
-
r &&
|
|
3986
|
+
r && k(t);
|
|
3989
3987
|
}
|
|
3990
3988
|
};
|
|
3991
3989
|
}
|
|
3992
|
-
function
|
|
3990
|
+
function Et(e) {
|
|
3993
3991
|
let t, r, n, i, s, o, u, h = (
|
|
3994
3992
|
/*category*/
|
|
3995
3993
|
e[23].name + ""
|
|
3996
3994
|
), a, l, c, f = (
|
|
3997
3995
|
/*category*/
|
|
3998
3996
|
e[23].games.count + ""
|
|
3999
|
-
),
|
|
3997
|
+
), d, p, g = (
|
|
4000
3998
|
/*$_*/
|
|
4001
3999
|
e[5]("games") + ""
|
|
4002
|
-
), E, m,
|
|
4003
|
-
function
|
|
4000
|
+
), E, m, C, A;
|
|
4001
|
+
function O() {
|
|
4004
4002
|
return (
|
|
4005
4003
|
/*click_handler*/
|
|
4006
4004
|
e[15](
|
|
@@ -4011,48 +4009,48 @@ function vt(e) {
|
|
|
4011
4009
|
}
|
|
4012
4010
|
return {
|
|
4013
4011
|
c() {
|
|
4014
|
-
t =
|
|
4012
|
+
t = S("div"), r = S("ui-image"), s = U(), o = S("div"), u = S("p"), a = G(h), l = U(), c = S("p"), d = G(f), p = U(), E = G(g), be(r.src, n = /*category*/
|
|
4015
4013
|
e[23].icon) || R(r, "src", n), R(r, "alt", i = /*category*/
|
|
4016
4014
|
e[23].name), R(r, "class", "CategoryImage"), I(o, "class", "CategoryTextContainer"), I(t, "class", m = "Category " + /*activecategory*/
|
|
4017
4015
|
(e[0] === /*category*/
|
|
4018
4016
|
e[23].id ? "Active" : ""));
|
|
4019
4017
|
},
|
|
4020
|
-
m(
|
|
4021
|
-
|
|
4018
|
+
m(B, H) {
|
|
4019
|
+
K(B, t, H), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, l), v(o, c), v(c, d), v(c, p), v(c, E), C || (A = At(t, "click", O), C = !0);
|
|
4022
4020
|
},
|
|
4023
|
-
p(
|
|
4024
|
-
e =
|
|
4025
|
-
8 && !
|
|
4021
|
+
p(B, H) {
|
|
4022
|
+
e = B, H & /*topCategories*/
|
|
4023
|
+
8 && !be(r.src, n = /*category*/
|
|
4026
4024
|
e[23].icon) && R(r, "src", n), H & /*topCategories*/
|
|
4027
4025
|
8 && i !== (i = /*category*/
|
|
4028
4026
|
e[23].name) && R(r, "alt", i), H & /*topCategories*/
|
|
4029
4027
|
8 && h !== (h = /*category*/
|
|
4030
|
-
e[23].name + "") &&
|
|
4028
|
+
e[23].name + "") && F(a, h), H & /*topCategories*/
|
|
4031
4029
|
8 && f !== (f = /*category*/
|
|
4032
|
-
e[23].games.count + "") &&
|
|
4030
|
+
e[23].games.count + "") && F(d, f), H & /*$_*/
|
|
4033
4031
|
32 && g !== (g = /*$_*/
|
|
4034
|
-
e[5]("games") + "") &&
|
|
4032
|
+
e[5]("games") + "") && F(E, g), H & /*activecategory, topCategories*/
|
|
4035
4033
|
9 && m !== (m = "Category " + /*activecategory*/
|
|
4036
4034
|
(e[0] === /*category*/
|
|
4037
4035
|
e[23].id ? "Active" : "")) && I(t, "class", m);
|
|
4038
4036
|
},
|
|
4039
|
-
d(
|
|
4040
|
-
|
|
4037
|
+
d(B) {
|
|
4038
|
+
B && k(t), C = !1, A();
|
|
4041
4039
|
}
|
|
4042
4040
|
};
|
|
4043
4041
|
}
|
|
4044
|
-
function
|
|
4042
|
+
function vt(e) {
|
|
4045
4043
|
let t, r, n, i, s, o, u, h = (
|
|
4046
4044
|
/*category*/
|
|
4047
4045
|
e[23].name + ""
|
|
4048
4046
|
), a, l, c, f = (
|
|
4049
4047
|
/*category*/
|
|
4050
4048
|
e[23].games.count + ""
|
|
4051
|
-
),
|
|
4049
|
+
), d, p, g = (
|
|
4052
4050
|
/*$_*/
|
|
4053
4051
|
e[5]("games") + ""
|
|
4054
|
-
), E, m,
|
|
4055
|
-
function
|
|
4052
|
+
), E, m, C, A, O;
|
|
4053
|
+
function B() {
|
|
4056
4054
|
return (
|
|
4057
4055
|
/*click_handler_1*/
|
|
4058
4056
|
e[16](
|
|
@@ -4063,51 +4061,51 @@ function Tt(e) {
|
|
|
4063
4061
|
}
|
|
4064
4062
|
return {
|
|
4065
4063
|
c() {
|
|
4066
|
-
t =
|
|
4064
|
+
t = S("div"), r = S("ui-image"), s = U(), o = S("div"), u = S("p"), a = G(h), l = U(), c = S("p"), d = G(f), p = U(), E = G(g), m = U(), be(r.src, n = /*category*/
|
|
4067
4065
|
e[23].icon) || R(r, "src", n), R(r, "alt", i = /*category*/
|
|
4068
|
-
e[23].name), R(r, "class", "CategoryImage"), I(o, "class", "CategoryTextContainer"), I(t, "class",
|
|
4066
|
+
e[23].name), R(r, "class", "CategoryImage"), I(o, "class", "CategoryTextContainer"), I(t, "class", C = "Category " + /*activecategory*/
|
|
4069
4067
|
(e[0] === /*category*/
|
|
4070
4068
|
e[23].id ? "Active" : ""));
|
|
4071
4069
|
},
|
|
4072
4070
|
m(H, P) {
|
|
4073
|
-
|
|
4071
|
+
K(H, t, P), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, l), v(o, c), v(c, d), v(c, p), v(c, E), v(t, m), A || (O = At(t, "click", B), A = !0);
|
|
4074
4072
|
},
|
|
4075
4073
|
p(H, P) {
|
|
4076
4074
|
e = H, P & /*otherCategories*/
|
|
4077
|
-
16 && !
|
|
4075
|
+
16 && !be(r.src, n = /*category*/
|
|
4078
4076
|
e[23].icon) && R(r, "src", n), P & /*otherCategories*/
|
|
4079
4077
|
16 && i !== (i = /*category*/
|
|
4080
4078
|
e[23].name) && R(r, "alt", i), P & /*otherCategories*/
|
|
4081
4079
|
16 && h !== (h = /*category*/
|
|
4082
|
-
e[23].name + "") &&
|
|
4080
|
+
e[23].name + "") && F(a, h), P & /*otherCategories*/
|
|
4083
4081
|
16 && f !== (f = /*category*/
|
|
4084
|
-
e[23].games.count + "") &&
|
|
4082
|
+
e[23].games.count + "") && F(d, f), P & /*$_*/
|
|
4085
4083
|
32 && g !== (g = /*$_*/
|
|
4086
|
-
e[5]("games") + "") &&
|
|
4087
|
-
17 &&
|
|
4084
|
+
e[5]("games") + "") && F(E, g), P & /*activecategory, otherCategories*/
|
|
4085
|
+
17 && C !== (C = "Category " + /*activecategory*/
|
|
4088
4086
|
(e[0] === /*category*/
|
|
4089
|
-
e[23].id ? "Active" : "")) && I(t, "class",
|
|
4087
|
+
e[23].id ? "Active" : "")) && I(t, "class", C);
|
|
4090
4088
|
},
|
|
4091
4089
|
d(H) {
|
|
4092
|
-
H &&
|
|
4090
|
+
H && k(t), A = !1, O();
|
|
4093
4091
|
}
|
|
4094
4092
|
};
|
|
4095
4093
|
}
|
|
4096
|
-
function
|
|
4094
|
+
function Ti(e) {
|
|
4097
4095
|
let t;
|
|
4098
4096
|
function r(s, o) {
|
|
4099
4097
|
return (
|
|
4100
4098
|
/*isLoading*/
|
|
4101
|
-
s[2] ?
|
|
4099
|
+
s[2] ? vi : Ei
|
|
4102
4100
|
);
|
|
4103
4101
|
}
|
|
4104
4102
|
let n = r(e), i = n(e);
|
|
4105
4103
|
return {
|
|
4106
4104
|
c() {
|
|
4107
|
-
t =
|
|
4105
|
+
t = S("div"), i.c();
|
|
4108
4106
|
},
|
|
4109
4107
|
m(s, o) {
|
|
4110
|
-
|
|
4108
|
+
K(s, t, o), i.m(t, null), e[17](t);
|
|
4111
4109
|
},
|
|
4112
4110
|
p(s, [o]) {
|
|
4113
4111
|
n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
|
|
@@ -4115,71 +4113,71 @@ function Ci(e) {
|
|
|
4115
4113
|
i: L,
|
|
4116
4114
|
o: L,
|
|
4117
4115
|
d(s) {
|
|
4118
|
-
s &&
|
|
4116
|
+
s && k(t), i.d(), e[17](null);
|
|
4119
4117
|
}
|
|
4120
4118
|
};
|
|
4121
4119
|
}
|
|
4122
|
-
function
|
|
4120
|
+
function Ci(e, t, r) {
|
|
4123
4121
|
let n;
|
|
4124
|
-
|
|
4125
|
-
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: h = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, { mbsource: f } = t,
|
|
4122
|
+
or(e, di, (b) => r(5, n = b));
|
|
4123
|
+
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: h = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, { mbsource: f } = t, d, p = !1;
|
|
4126
4124
|
const g = [];
|
|
4127
4125
|
let E = [], m = [];
|
|
4128
|
-
Object.keys(
|
|
4129
|
-
|
|
4126
|
+
Object.keys(yt).forEach((b) => {
|
|
4127
|
+
bt(b, yt[b]);
|
|
4130
4128
|
});
|
|
4131
|
-
const
|
|
4129
|
+
const C = () => {
|
|
4132
4130
|
fetch(c).then(($) => $.json()).then(($) => {
|
|
4133
|
-
Object.keys($).forEach((
|
|
4134
|
-
|
|
4131
|
+
Object.keys($).forEach((le) => {
|
|
4132
|
+
bt(le, $[le]);
|
|
4135
4133
|
});
|
|
4136
4134
|
}).catch(($) => {
|
|
4137
4135
|
console.log($);
|
|
4138
4136
|
});
|
|
4139
|
-
},
|
|
4140
|
-
r(2,
|
|
4137
|
+
}, A = () => {
|
|
4138
|
+
r(2, p = !0);
|
|
4141
4139
|
const b = new URL(`${i}/v1/casino/groups/${s}`);
|
|
4142
4140
|
b.searchParams.append("language", o), fetch(b).then(($) => $.json()).then(($) => {
|
|
4143
|
-
r(2,
|
|
4144
|
-
const
|
|
4141
|
+
r(2, p = !1);
|
|
4142
|
+
const le = h.split(",").map((j) => j.trim());
|
|
4145
4143
|
g.push(...$.items);
|
|
4146
|
-
const
|
|
4147
|
-
var
|
|
4148
|
-
return ((
|
|
4144
|
+
const Qe = g.filter((j) => !le.some((Kt) => {
|
|
4145
|
+
var Je;
|
|
4146
|
+
return ((Je = j.flags) == null ? void 0 : Je.indexOf(Kt)) >= 0;
|
|
4149
4147
|
}));
|
|
4150
|
-
r(3, E =
|
|
4148
|
+
r(3, E = Qe.filter((j) => j.isTopCategory === !0)), r(4, m = Qe.filter((j) => j.isTopCategory === !1));
|
|
4151
4149
|
});
|
|
4152
|
-
},
|
|
4150
|
+
}, O = (b) => {
|
|
4153
4151
|
window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
|
|
4154
|
-
},
|
|
4155
|
-
|
|
4152
|
+
}, B = () => {
|
|
4153
|
+
pi(o);
|
|
4156
4154
|
};
|
|
4157
|
-
|
|
4155
|
+
gr(() => () => {
|
|
4158
4156
|
});
|
|
4159
|
-
const H = (b) =>
|
|
4160
|
-
function
|
|
4161
|
-
|
|
4162
|
-
|
|
4157
|
+
const H = (b) => O(b.id), P = (b) => O(b.id);
|
|
4158
|
+
function Yt(b) {
|
|
4159
|
+
Le[b ? "unshift" : "push"](() => {
|
|
4160
|
+
d = b, r(1, d);
|
|
4163
4161
|
});
|
|
4164
4162
|
}
|
|
4165
4163
|
return e.$$set = (b) => {
|
|
4166
4164
|
"endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, s = b.datasource), "lang" in b && r(9, o = b.lang), "activecategory" in b && r(0, u = b.activecategory), "excludedflags" in b && r(10, h = b.excludedflags), "clientstyling" in b && r(11, a = b.clientstyling), "clientstylingurl" in b && r(12, l = b.clientstylingurl), "translationurl" in b && r(13, c = b.translationurl), "mbsource" in b && r(14, f = b.mbsource);
|
|
4167
4165
|
}, e.$$.update = () => {
|
|
4168
4166
|
e.$$.dirty & /*endpoint, datasource*/
|
|
4169
|
-
384 && i && s &&
|
|
4170
|
-
8192 && c &&
|
|
4171
|
-
512 && o &&
|
|
4172
|
-
2050 && a &&
|
|
4173
|
-
4098 && l &&
|
|
4174
|
-
16386 && f &&
|
|
4167
|
+
384 && i && s && A(), e.$$.dirty & /*translationurl*/
|
|
4168
|
+
8192 && c && C(), e.$$.dirty & /*lang*/
|
|
4169
|
+
512 && o && B(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4170
|
+
2050 && a && d && bi(d, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4171
|
+
4098 && l && d && yi(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4172
|
+
16386 && f && d && _i(d, `${f}.Style`);
|
|
4175
4173
|
}, [
|
|
4176
4174
|
u,
|
|
4177
|
-
p,
|
|
4178
4175
|
d,
|
|
4176
|
+
p,
|
|
4179
4177
|
E,
|
|
4180
4178
|
m,
|
|
4181
4179
|
n,
|
|
4182
|
-
|
|
4180
|
+
O,
|
|
4183
4181
|
i,
|
|
4184
4182
|
s,
|
|
4185
4183
|
o,
|
|
@@ -4190,17 +4188,17 @@ function Hi(e, t, r) {
|
|
|
4190
4188
|
f,
|
|
4191
4189
|
H,
|
|
4192
4190
|
P,
|
|
4193
|
-
|
|
4191
|
+
Yt
|
|
4194
4192
|
];
|
|
4195
4193
|
}
|
|
4196
|
-
class
|
|
4194
|
+
class Hi extends Hr {
|
|
4197
4195
|
constructor(t) {
|
|
4198
|
-
super(),
|
|
4196
|
+
super(), Tr(
|
|
4199
4197
|
this,
|
|
4200
4198
|
t,
|
|
4201
|
-
Hi,
|
|
4202
4199
|
Ci,
|
|
4203
|
-
|
|
4200
|
+
Ti,
|
|
4201
|
+
Ct,
|
|
4204
4202
|
{
|
|
4205
4203
|
endpoint: 7,
|
|
4206
4204
|
datasource: 8,
|
|
@@ -4270,7 +4268,7 @@ class Si extends Sr {
|
|
|
4270
4268
|
this.$$set({ mbsource: t }), M();
|
|
4271
4269
|
}
|
|
4272
4270
|
}
|
|
4273
|
-
|
|
4271
|
+
Cr(Hi, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4274
4272
|
export {
|
|
4275
|
-
|
|
4273
|
+
Hi as default
|
|
4276
4274
|
};
|