@everymatrix/casino-categories-providers 1.54.12 → 1.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoCategories-J78JnNVv.js → CasinoCategories-BB57VRB8.js} +710 -681
- package/components/CasinoCategories-BnDVIalr.cjs +3 -0
- package/components/{CasinoCategories-qJoV7auv.js → CasinoCategories-BnoSNxRu.js} +756 -727
- package/components/CasinoCategoriesProviders-BqkOsDSE.js +478 -0
- package/components/CasinoCategoriesProviders-CZTqz6l1.js +478 -0
- package/components/CasinoCategoriesProviders-_7oR8FkB.cjs +1 -0
- package/components/CasinoProviders-BU1JwLHF.js +487 -0
- package/components/CasinoProviders-BvYk_Rc1.cjs +1 -0
- package/components/CasinoProviders-CYK2rsS0.js +487 -0
- package/es2015/casino-categories-providers.cjs +1 -1
- package/es2015/casino-categories-providers.js +1 -1
- package/esnext/casino-categories-providers.js +1 -1
- package/package.json +1 -1
- package/components/CasinoCategories-BhMfNg1W.cjs +0 -3
- package/components/CasinoCategoriesProviders-BKj92ajT.js +0 -461
- package/components/CasinoCategoriesProviders-BTFQbL12.cjs +0 -1
- package/components/CasinoCategoriesProviders-CeyKNdqn.js +0 -461
- package/components/CasinoProviders-BokJtOXL.js +0 -491
- package/components/CasinoProviders-C40QV2Tr.js +0 -491
- package/components/CasinoProviders-DJjprrC1.cjs +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Kt = Object.defineProperty, er = Object.defineProperties;
|
|
2
|
+
var tr = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Qe = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var Ce = (e, t, r) => t in e ?
|
|
4
|
+
var rr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ce = (e, t, r) => t in e ? Kt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
rr.call(t, r) && Ce(e, r, t[r]);
|
|
8
8
|
if (Qe)
|
|
9
9
|
for (var r of Qe(t))
|
|
10
|
-
|
|
10
|
+
nr.call(t, r) && Ce(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
}, Je = (e, t) =>
|
|
13
|
-
var
|
|
12
|
+
}, Je = (e, t) => er(e, tr(t));
|
|
13
|
+
var L = (e, t, r) => Ce(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
14
|
var Ye = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (h) => {
|
|
16
16
|
try {
|
|
@@ -27,53 +27,53 @@ var Ye = (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
|
-
function
|
|
30
|
+
function I() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function xt(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
35
|
function Ke() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function ae(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(xt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Ve(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
44
|
function vt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
let
|
|
48
|
-
function
|
|
49
|
-
return e === t ? !0 : (
|
|
47
|
+
let le;
|
|
48
|
+
function de(e, t) {
|
|
49
|
+
return e === t ? !0 : (le || (le = document.createElement("a")), le.href = t, e === le.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function ir(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Tt(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const n of t)
|
|
57
57
|
n(void 0);
|
|
58
|
-
return
|
|
58
|
+
return I;
|
|
59
59
|
}
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
63
|
+
function sr(e, t, r) {
|
|
64
|
+
e.$$.on_destroy.push(Tt(t, r));
|
|
65
65
|
}
|
|
66
66
|
function v(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const n =
|
|
69
|
+
function or(e, t, r) {
|
|
70
|
+
const n = ar(e);
|
|
71
71
|
if (!n.getElementById(t)) {
|
|
72
|
-
const i =
|
|
73
|
-
i.id = t, i.textContent = r,
|
|
72
|
+
const i = w("style");
|
|
73
|
+
i.id = t, i.textContent = r, ur(n, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function ar(e) {
|
|
77
77
|
if (!e) return document;
|
|
78
78
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
79
79
|
return t && /** @type {ShadowRoot} */
|
|
@@ -82,24 +82,24 @@ function ur(e) {
|
|
|
82
82
|
t
|
|
83
83
|
) : e.ownerDocument;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function ur(e, t) {
|
|
86
86
|
return v(
|
|
87
87
|
/** @type {Document} */
|
|
88
88
|
e.head || e,
|
|
89
89
|
t
|
|
90
90
|
), t.sheet;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Y(e, t, r) {
|
|
93
93
|
e.insertBefore(t, r || null);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function j(e) {
|
|
96
96
|
e.parentNode && e.parentNode.removeChild(e);
|
|
97
97
|
}
|
|
98
98
|
function et(e, t) {
|
|
99
99
|
for (let r = 0; r < e.length; r += 1)
|
|
100
100
|
e[r] && e[r].d(t);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function w(e) {
|
|
103
103
|
return document.createElement(e);
|
|
104
104
|
}
|
|
105
105
|
function U(e) {
|
|
@@ -108,27 +108,27 @@ function U(e) {
|
|
|
108
108
|
function R() {
|
|
109
109
|
return U(" ");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Hi() {
|
|
112
112
|
return U("");
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Ct(e, t, r, n) {
|
|
115
115
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
116
116
|
}
|
|
117
117
|
function H(e, t, r) {
|
|
118
118
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Ai(e, t, r) {
|
|
121
121
|
const n = t.toLowerCase();
|
|
122
122
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : H(e, t, r);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function hr(e) {
|
|
125
125
|
return Array.from(e.childNodes);
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function G(e, t) {
|
|
128
128
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
129
129
|
t);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function lr(e) {
|
|
132
132
|
const t = {};
|
|
133
133
|
return e.childNodes.forEach(
|
|
134
134
|
/** @param {Element} node */
|
|
@@ -137,87 +137,94 @@ function fr(e) {
|
|
|
137
137
|
}
|
|
138
138
|
), t;
|
|
139
139
|
}
|
|
140
|
-
let
|
|
141
|
-
function
|
|
142
|
-
|
|
140
|
+
let ie;
|
|
141
|
+
function ne(e) {
|
|
142
|
+
ie = e;
|
|
143
|
+
}
|
|
144
|
+
function fr() {
|
|
145
|
+
if (!ie) throw new Error("Function called outside component initialization");
|
|
146
|
+
return ie;
|
|
143
147
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
const tt = [], cr = /* @__PURE__ */ Promise.resolve();
|
|
147
|
-
let Ne = !1;
|
|
148
|
-
function gr() {
|
|
149
|
-
Ne || (Ne = !0, cr.then($));
|
|
148
|
+
function cr(e) {
|
|
149
|
+
fr().$$.on_mount.push(e);
|
|
150
150
|
}
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
const z = [], Ne = [];
|
|
152
|
+
let W = [];
|
|
153
|
+
const tt = [], gr = /* @__PURE__ */ Promise.resolve();
|
|
154
|
+
let Le = !1;
|
|
155
|
+
function mr() {
|
|
156
|
+
Le || (Le = !0, gr.then(M));
|
|
153
157
|
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
+
function Ie(e) {
|
|
159
|
+
W.push(e);
|
|
160
|
+
}
|
|
161
|
+
const He = /* @__PURE__ */ new Set();
|
|
162
|
+
let V = 0;
|
|
163
|
+
function M() {
|
|
164
|
+
if (V !== 0)
|
|
158
165
|
return;
|
|
159
|
-
const e =
|
|
166
|
+
const e = ie;
|
|
160
167
|
do {
|
|
161
168
|
try {
|
|
162
|
-
for (;
|
|
163
|
-
const t =
|
|
164
|
-
|
|
169
|
+
for (; V < z.length; ) {
|
|
170
|
+
const t = z[V];
|
|
171
|
+
V++, ne(t), pr(t.$$);
|
|
165
172
|
}
|
|
166
173
|
} catch (t) {
|
|
167
|
-
throw
|
|
174
|
+
throw z.length = 0, V = 0, t;
|
|
168
175
|
}
|
|
169
|
-
for (
|
|
170
|
-
for (let t = 0; t <
|
|
171
|
-
const r =
|
|
172
|
-
|
|
176
|
+
for (ne(null), z.length = 0, V = 0; Ne.length; ) Ne.pop()();
|
|
177
|
+
for (let t = 0; t < W.length; t += 1) {
|
|
178
|
+
const r = W[t];
|
|
179
|
+
He.has(r) || (He.add(r), r());
|
|
173
180
|
}
|
|
174
|
-
|
|
175
|
-
} while (
|
|
181
|
+
W.length = 0;
|
|
182
|
+
} while (z.length);
|
|
176
183
|
for (; tt.length; )
|
|
177
184
|
tt.pop()();
|
|
178
|
-
|
|
185
|
+
Le = !1, He.clear(), ne(e);
|
|
179
186
|
}
|
|
180
|
-
function
|
|
187
|
+
function pr(e) {
|
|
181
188
|
if (e.fragment !== null) {
|
|
182
189
|
e.update(), ae(e.before_update);
|
|
183
190
|
const t = e.dirty;
|
|
184
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
191
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ie);
|
|
185
192
|
}
|
|
186
193
|
}
|
|
187
|
-
function
|
|
194
|
+
function dr(e) {
|
|
188
195
|
const t = [], r = [];
|
|
189
|
-
|
|
196
|
+
W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
|
|
190
197
|
}
|
|
191
|
-
const
|
|
192
|
-
function
|
|
193
|
-
e && e.i && (
|
|
198
|
+
const br = /* @__PURE__ */ new Set();
|
|
199
|
+
function yr(e, t) {
|
|
200
|
+
e && e.i && (br.delete(e), e.i(t));
|
|
194
201
|
}
|
|
195
|
-
function
|
|
202
|
+
function fe(e) {
|
|
196
203
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
197
204
|
}
|
|
198
|
-
function
|
|
205
|
+
function _r(e, t, r) {
|
|
199
206
|
const { fragment: n, after_update: i } = e.$$;
|
|
200
|
-
n && n.m(t, r),
|
|
201
|
-
const s = e.$$.on_mount.map(
|
|
207
|
+
n && n.m(t, r), Ie(() => {
|
|
208
|
+
const s = e.$$.on_mount.map(xt).filter(Ve);
|
|
202
209
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ae(s), e.$$.on_mount = [];
|
|
203
|
-
}), i.forEach(
|
|
210
|
+
}), i.forEach(Ie);
|
|
204
211
|
}
|
|
205
|
-
function
|
|
212
|
+
function Er(e, t) {
|
|
206
213
|
const r = e.$$;
|
|
207
|
-
r.fragment !== null && (
|
|
214
|
+
r.fragment !== null && (dr(r.after_update), ae(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
208
215
|
}
|
|
209
216
|
function xr(e, t) {
|
|
210
|
-
e.$$.dirty[0] === -1 && (
|
|
217
|
+
e.$$.dirty[0] === -1 && (z.push(e), mr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
211
218
|
}
|
|
212
|
-
function
|
|
213
|
-
const h =
|
|
214
|
-
|
|
219
|
+
function vr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
220
|
+
const h = ie;
|
|
221
|
+
ne(e);
|
|
215
222
|
const a = e.$$ = {
|
|
216
223
|
fragment: null,
|
|
217
224
|
ctx: [],
|
|
218
225
|
// state
|
|
219
226
|
props: s,
|
|
220
|
-
update:
|
|
227
|
+
update: I,
|
|
221
228
|
not_equal: i,
|
|
222
229
|
bound: Ke(),
|
|
223
230
|
// lifecycle
|
|
@@ -235,41 +242,41 @@ function Er(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
|
235
242
|
};
|
|
236
243
|
o && o(a.root);
|
|
237
244
|
let l = !1;
|
|
238
|
-
if (a.ctx = r ? r(e, t.props || {}, (c, f, ...
|
|
239
|
-
const
|
|
240
|
-
return a.ctx && i(a.ctx[c], a.ctx[c] =
|
|
245
|
+
if (a.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
246
|
+
const d = p.length ? p[0] : f;
|
|
247
|
+
return a.ctx && i(a.ctx[c], a.ctx[c] = d) && (!a.skip_bound && a.bound[c] && a.bound[c](d), l && xr(e, c)), f;
|
|
241
248
|
}) : [], a.update(), l = !0, ae(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
242
249
|
if (t.hydrate) {
|
|
243
|
-
const c =
|
|
244
|
-
a.fragment && a.fragment.l(c), c.forEach(
|
|
250
|
+
const c = hr(t.target);
|
|
251
|
+
a.fragment && a.fragment.l(c), c.forEach(j);
|
|
245
252
|
} else
|
|
246
253
|
a.fragment && a.fragment.c();
|
|
247
|
-
t.intro &&
|
|
254
|
+
t.intro && yr(e.$$.fragment), _r(e, t.target, t.anchor), M();
|
|
248
255
|
}
|
|
249
|
-
|
|
256
|
+
ne(h);
|
|
250
257
|
}
|
|
251
258
|
let Ht;
|
|
252
259
|
typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
253
260
|
constructor(t, r, n) {
|
|
254
261
|
super();
|
|
255
262
|
/** The Svelte component constructor */
|
|
256
|
-
|
|
263
|
+
L(this, "$$ctor");
|
|
257
264
|
/** Slots */
|
|
258
|
-
|
|
265
|
+
L(this, "$$s");
|
|
259
266
|
/** The Svelte component instance */
|
|
260
|
-
|
|
267
|
+
L(this, "$$c");
|
|
261
268
|
/** Whether or not the custom element is connected */
|
|
262
|
-
|
|
269
|
+
L(this, "$$cn", !1);
|
|
263
270
|
/** Component props data */
|
|
264
|
-
|
|
271
|
+
L(this, "$$d", {});
|
|
265
272
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
266
|
-
|
|
273
|
+
L(this, "$$r", !1);
|
|
267
274
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
268
|
-
|
|
275
|
+
L(this, "$$p_d", {});
|
|
269
276
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
270
|
-
|
|
277
|
+
L(this, "$$l", {});
|
|
271
278
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
272
|
-
|
|
279
|
+
L(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
273
280
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
274
281
|
}
|
|
275
282
|
addEventListener(t, r, n) {
|
|
@@ -293,29 +300,29 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
293
300
|
let o;
|
|
294
301
|
return {
|
|
295
302
|
c: function() {
|
|
296
|
-
o =
|
|
303
|
+
o = w("slot"), s !== "default" && H(o, "name", s);
|
|
297
304
|
},
|
|
298
305
|
/**
|
|
299
306
|
* @param {HTMLElement} target
|
|
300
307
|
* @param {HTMLElement} [anchor]
|
|
301
308
|
*/
|
|
302
309
|
m: function(a, l) {
|
|
303
|
-
|
|
310
|
+
Y(a, o, l);
|
|
304
311
|
},
|
|
305
312
|
d: function(a) {
|
|
306
|
-
a &&
|
|
313
|
+
a && j(o);
|
|
307
314
|
}
|
|
308
315
|
};
|
|
309
316
|
};
|
|
310
317
|
};
|
|
311
318
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
312
319
|
return;
|
|
313
|
-
const r = {}, n =
|
|
320
|
+
const r = {}, n = lr(this);
|
|
314
321
|
for (const s of this.$$s)
|
|
315
322
|
s in n && (r[s] = [t(s)]);
|
|
316
323
|
for (const s of this.attributes) {
|
|
317
324
|
const o = this.$$g_p(s.name);
|
|
318
|
-
o in this.$$d || (this.$$d[o] =
|
|
325
|
+
o in this.$$d || (this.$$d[o] = ge(o, s.value, this.$$p_d, "toProp"));
|
|
319
326
|
}
|
|
320
327
|
for (const s in this.$$p_d)
|
|
321
328
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
@@ -332,7 +339,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
332
339
|
this.$$r = !0;
|
|
333
340
|
for (const s in this.$$p_d)
|
|
334
341
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
335
|
-
const o =
|
|
342
|
+
const o = ge(
|
|
336
343
|
s,
|
|
337
344
|
this.$$d[s],
|
|
338
345
|
this.$$p_d,
|
|
@@ -356,7 +363,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
356
363
|
// and setting attributes through setAttribute etc, this is helpful
|
|
357
364
|
attributeChangedCallback(t, r, n) {
|
|
358
365
|
var i;
|
|
359
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
366
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ge(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
360
367
|
}
|
|
361
368
|
disconnectedCallback() {
|
|
362
369
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -369,7 +376,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
369
376
|
) || t;
|
|
370
377
|
}
|
|
371
378
|
});
|
|
372
|
-
function
|
|
379
|
+
function ge(e, t, r, n) {
|
|
373
380
|
var s;
|
|
374
381
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
375
382
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -399,7 +406,7 @@ function ce(e, t, r, n) {
|
|
|
399
406
|
return t;
|
|
400
407
|
}
|
|
401
408
|
}
|
|
402
|
-
function
|
|
409
|
+
function Tr(e, t, r, n, i, s) {
|
|
403
410
|
let o = class extends Ht {
|
|
404
411
|
constructor() {
|
|
405
412
|
super(e, r, i), this.$$p_d = t;
|
|
@@ -417,7 +424,7 @@ function vr(e, t, r, n, i, s) {
|
|
|
417
424
|
},
|
|
418
425
|
set(h) {
|
|
419
426
|
var a;
|
|
420
|
-
h =
|
|
427
|
+
h = ge(u, h, t), this.$$d[u] = h, (a = this.$$c) == null || a.$set({ [u]: h });
|
|
421
428
|
}
|
|
422
429
|
});
|
|
423
430
|
}), n.forEach((u) => {
|
|
@@ -439,7 +446,7 @@ class Cr {
|
|
|
439
446
|
*
|
|
440
447
|
* @type {any}
|
|
441
448
|
*/
|
|
442
|
-
|
|
449
|
+
L(this, "$$");
|
|
443
450
|
/**
|
|
444
451
|
* ### PRIVATE API
|
|
445
452
|
*
|
|
@@ -447,11 +454,11 @@ class Cr {
|
|
|
447
454
|
*
|
|
448
455
|
* @type {any}
|
|
449
456
|
*/
|
|
450
|
-
|
|
457
|
+
L(this, "$$set");
|
|
451
458
|
}
|
|
452
459
|
/** @returns {void} */
|
|
453
460
|
$destroy() {
|
|
454
|
-
|
|
461
|
+
Er(this, 1), this.$destroy = I;
|
|
455
462
|
}
|
|
456
463
|
/**
|
|
457
464
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -460,8 +467,8 @@ class Cr {
|
|
|
460
467
|
* @returns {() => void}
|
|
461
468
|
*/
|
|
462
469
|
$on(t, r) {
|
|
463
|
-
if (!
|
|
464
|
-
return
|
|
470
|
+
if (!Ve(r))
|
|
471
|
+
return I;
|
|
465
472
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
466
473
|
return n.push(r), () => {
|
|
467
474
|
const i = n.indexOf(r);
|
|
@@ -473,63 +480,63 @@ class Cr {
|
|
|
473
480
|
* @returns {void}
|
|
474
481
|
*/
|
|
475
482
|
$set(t) {
|
|
476
|
-
this.$$set && !
|
|
483
|
+
this.$$set && !ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
477
484
|
}
|
|
478
485
|
}
|
|
479
|
-
const
|
|
480
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
481
|
-
const
|
|
482
|
-
function
|
|
486
|
+
const Hr = "4";
|
|
487
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Hr);
|
|
488
|
+
const X = [];
|
|
489
|
+
function Ar(e, t) {
|
|
483
490
|
return {
|
|
484
|
-
subscribe:
|
|
491
|
+
subscribe: _e(e, t).subscribe
|
|
485
492
|
};
|
|
486
493
|
}
|
|
487
|
-
function
|
|
494
|
+
function _e(e, t = I) {
|
|
488
495
|
let r;
|
|
489
496
|
const n = /* @__PURE__ */ new Set();
|
|
490
497
|
function i(u) {
|
|
491
498
|
if (vt(e, u) && (e = u, r)) {
|
|
492
|
-
const h = !
|
|
499
|
+
const h = !X.length;
|
|
493
500
|
for (const a of n)
|
|
494
|
-
a[1](),
|
|
501
|
+
a[1](), X.push(a, e);
|
|
495
502
|
if (h) {
|
|
496
|
-
for (let a = 0; a <
|
|
497
|
-
|
|
498
|
-
|
|
503
|
+
for (let a = 0; a < X.length; a += 2)
|
|
504
|
+
X[a][0](X[a + 1]);
|
|
505
|
+
X.length = 0;
|
|
499
506
|
}
|
|
500
507
|
}
|
|
501
508
|
}
|
|
502
509
|
function s(u) {
|
|
503
510
|
i(u(e));
|
|
504
511
|
}
|
|
505
|
-
function o(u, h =
|
|
512
|
+
function o(u, h = I) {
|
|
506
513
|
const a = [u, h];
|
|
507
|
-
return n.add(a), n.size === 1 && (r = t(i, s) ||
|
|
514
|
+
return n.add(a), n.size === 1 && (r = t(i, s) || I), u(e), () => {
|
|
508
515
|
n.delete(a), n.size === 0 && r && (r(), r = null);
|
|
509
516
|
};
|
|
510
517
|
}
|
|
511
518
|
return { set: i, update: s, subscribe: o };
|
|
512
519
|
}
|
|
513
|
-
function
|
|
520
|
+
function K(e, t, r) {
|
|
514
521
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
515
522
|
if (!i.every(Boolean))
|
|
516
523
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
517
524
|
const s = t.length < 2;
|
|
518
|
-
return
|
|
525
|
+
return Ar(r, (o, u) => {
|
|
519
526
|
let h = !1;
|
|
520
527
|
const a = [];
|
|
521
|
-
let l = 0, c =
|
|
528
|
+
let l = 0, c = I;
|
|
522
529
|
const f = () => {
|
|
523
530
|
if (l)
|
|
524
531
|
return;
|
|
525
532
|
c();
|
|
526
|
-
const
|
|
527
|
-
s ? o(
|
|
528
|
-
},
|
|
529
|
-
(
|
|
530
|
-
|
|
531
|
-
(
|
|
532
|
-
a[g] =
|
|
533
|
+
const d = t(n ? a[0] : a, o, u);
|
|
534
|
+
s ? o(d) : c = Ve(d) ? d : I;
|
|
535
|
+
}, p = i.map(
|
|
536
|
+
(d, g) => Tt(
|
|
537
|
+
d,
|
|
538
|
+
(x) => {
|
|
539
|
+
a[g] = x, l &= ~(1 << g), h && f();
|
|
533
540
|
},
|
|
534
541
|
() => {
|
|
535
542
|
l |= 1 << g;
|
|
@@ -537,51 +544,51 @@ function ee(e, t, r) {
|
|
|
537
544
|
)
|
|
538
545
|
);
|
|
539
546
|
return h = !0, f(), function() {
|
|
540
|
-
ae(
|
|
547
|
+
ae(p), c(), h = !1;
|
|
541
548
|
};
|
|
542
549
|
});
|
|
543
550
|
}
|
|
544
|
-
function
|
|
551
|
+
function Sr(e) {
|
|
545
552
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
546
553
|
}
|
|
547
|
-
var
|
|
548
|
-
return
|
|
554
|
+
var Br = function(t) {
|
|
555
|
+
return wr(t) && !Or(t);
|
|
549
556
|
};
|
|
550
|
-
function
|
|
557
|
+
function wr(e) {
|
|
551
558
|
return !!e && typeof e == "object";
|
|
552
559
|
}
|
|
553
560
|
function Or(e) {
|
|
554
561
|
var t = Object.prototype.toString.call(e);
|
|
555
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
556
|
-
}
|
|
557
|
-
var Pr = typeof Symbol == "function" && Symbol.for, wr = Pr ? Symbol.for("react.element") : 60103;
|
|
558
|
-
function Nr(e) {
|
|
559
|
-
return e.$$typeof === wr;
|
|
562
|
+
return t === "[object RegExp]" || t === "[object Date]" || Lr(e);
|
|
560
563
|
}
|
|
564
|
+
var Pr = typeof Symbol == "function" && Symbol.for, Nr = Pr ? Symbol.for("react.element") : 60103;
|
|
561
565
|
function Lr(e) {
|
|
566
|
+
return e.$$typeof === Nr;
|
|
567
|
+
}
|
|
568
|
+
function Ir(e) {
|
|
562
569
|
return Array.isArray(e) ? [] : {};
|
|
563
570
|
}
|
|
564
571
|
function se(e, t) {
|
|
565
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
572
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Z(Ir(e), e, t) : e;
|
|
566
573
|
}
|
|
567
|
-
function
|
|
574
|
+
function Mr(e, t, r) {
|
|
568
575
|
return e.concat(t).map(function(n) {
|
|
569
576
|
return se(n, r);
|
|
570
577
|
});
|
|
571
578
|
}
|
|
572
|
-
function
|
|
579
|
+
function $r(e, t) {
|
|
573
580
|
if (!t.customMerge)
|
|
574
|
-
return
|
|
581
|
+
return Z;
|
|
575
582
|
var r = t.customMerge(e);
|
|
576
|
-
return typeof r == "function" ? r :
|
|
583
|
+
return typeof r == "function" ? r : Z;
|
|
577
584
|
}
|
|
578
|
-
function
|
|
585
|
+
function Rr(e) {
|
|
579
586
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
580
587
|
return Object.propertyIsEnumerable.call(e, t);
|
|
581
588
|
}) : [];
|
|
582
589
|
}
|
|
583
590
|
function rt(e) {
|
|
584
|
-
return Object.keys(e).concat(
|
|
591
|
+
return Object.keys(e).concat(Rr(e));
|
|
585
592
|
}
|
|
586
593
|
function At(e, t) {
|
|
587
594
|
try {
|
|
@@ -590,57 +597,57 @@ function At(e, t) {
|
|
|
590
597
|
return !1;
|
|
591
598
|
}
|
|
592
599
|
}
|
|
593
|
-
function
|
|
600
|
+
function Ur(e, t) {
|
|
594
601
|
return At(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
595
602
|
}
|
|
596
|
-
function
|
|
603
|
+
function Dr(e, t, r) {
|
|
597
604
|
var n = {};
|
|
598
605
|
return r.isMergeableObject(e) && rt(e).forEach(function(i) {
|
|
599
606
|
n[i] = se(e[i], r);
|
|
600
607
|
}), rt(t).forEach(function(i) {
|
|
601
|
-
|
|
608
|
+
Ur(e, i) || (At(e, i) && r.isMergeableObject(t[i]) ? n[i] = $r(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
|
|
602
609
|
}), n;
|
|
603
610
|
}
|
|
604
|
-
function
|
|
605
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
611
|
+
function Z(e, t, r) {
|
|
612
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Mr, r.isMergeableObject = r.isMergeableObject || Br, r.cloneUnlessOtherwiseSpecified = se;
|
|
606
613
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
607
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
614
|
+
return s ? n ? r.arrayMerge(e, t, r) : Dr(e, t, r) : se(t, r);
|
|
608
615
|
}
|
|
609
|
-
|
|
616
|
+
Z.all = function(t, r) {
|
|
610
617
|
if (!Array.isArray(t))
|
|
611
618
|
throw new Error("first argument should be an array");
|
|
612
619
|
return t.reduce(function(n, i) {
|
|
613
|
-
return
|
|
620
|
+
return Z(n, i, r);
|
|
614
621
|
}, {});
|
|
615
622
|
};
|
|
616
|
-
var Gr =
|
|
617
|
-
const
|
|
618
|
-
var
|
|
619
|
-
return
|
|
623
|
+
var Gr = Z, Fr = Gr;
|
|
624
|
+
const jr = /* @__PURE__ */ Sr(Fr);
|
|
625
|
+
var Me = function(e, t) {
|
|
626
|
+
return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
620
627
|
r.__proto__ = n;
|
|
621
628
|
} || function(r, n) {
|
|
622
629
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
623
|
-
},
|
|
630
|
+
}, Me(e, t);
|
|
624
631
|
};
|
|
625
|
-
function
|
|
632
|
+
function Ee(e, t) {
|
|
626
633
|
if (typeof t != "function" && t !== null)
|
|
627
634
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
628
|
-
|
|
635
|
+
Me(e, t);
|
|
629
636
|
function r() {
|
|
630
637
|
this.constructor = e;
|
|
631
638
|
}
|
|
632
639
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
633
640
|
}
|
|
634
|
-
var
|
|
635
|
-
return
|
|
641
|
+
var E = function() {
|
|
642
|
+
return E = Object.assign || function(t) {
|
|
636
643
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
637
644
|
r = arguments[n];
|
|
638
645
|
for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
639
646
|
}
|
|
640
647
|
return t;
|
|
641
|
-
},
|
|
648
|
+
}, E.apply(this, arguments);
|
|
642
649
|
};
|
|
643
|
-
function
|
|
650
|
+
function kr(e, t) {
|
|
644
651
|
var r = {};
|
|
645
652
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
646
653
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -648,23 +655,23 @@ function jr(e, t) {
|
|
|
648
655
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
649
656
|
return r;
|
|
650
657
|
}
|
|
651
|
-
function
|
|
658
|
+
function Ae(e, t, r) {
|
|
652
659
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
|
|
653
660
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
654
661
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
655
662
|
}
|
|
656
|
-
function
|
|
657
|
-
var r = t && t.cache ? t.cache :
|
|
663
|
+
function Se(e, t) {
|
|
664
|
+
var r = t && t.cache ? t.cache : qr, n = t && t.serializer ? t.serializer : Zr, i = t && t.strategy ? t.strategy : zr;
|
|
658
665
|
return i(e, {
|
|
659
666
|
cache: r,
|
|
660
667
|
serializer: n
|
|
661
668
|
});
|
|
662
669
|
}
|
|
663
|
-
function
|
|
670
|
+
function Vr(e) {
|
|
664
671
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
665
672
|
}
|
|
666
|
-
function
|
|
667
|
-
var i =
|
|
673
|
+
function Xr(e, t, r, n) {
|
|
674
|
+
var i = Vr(n) ? n : r(n), s = t.get(i);
|
|
668
675
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
669
676
|
}
|
|
670
677
|
function St(e, t, r) {
|
|
@@ -674,16 +681,16 @@ function St(e, t, r) {
|
|
|
674
681
|
function Bt(e, t, r, n, i) {
|
|
675
682
|
return r.bind(t, e, n, i);
|
|
676
683
|
}
|
|
677
|
-
function
|
|
678
|
-
var r = e.length === 1 ?
|
|
684
|
+
function zr(e, t) {
|
|
685
|
+
var r = e.length === 1 ? Xr : St;
|
|
679
686
|
return Bt(e, this, r, t.cache.create(), t.serializer);
|
|
680
687
|
}
|
|
681
|
-
function
|
|
688
|
+
function Wr(e, t) {
|
|
682
689
|
return Bt(e, this, St, t.cache.create(), t.serializer);
|
|
683
690
|
}
|
|
684
|
-
var
|
|
691
|
+
var Zr = function() {
|
|
685
692
|
return JSON.stringify(arguments);
|
|
686
|
-
},
|
|
693
|
+
}, Qr = (
|
|
687
694
|
/** @class */
|
|
688
695
|
function() {
|
|
689
696
|
function e() {
|
|
@@ -695,61 +702,61 @@ var Wr = function() {
|
|
|
695
702
|
this.cache[t] = r;
|
|
696
703
|
}, e;
|
|
697
704
|
}()
|
|
698
|
-
),
|
|
705
|
+
), qr = {
|
|
699
706
|
create: function() {
|
|
700
|
-
return new
|
|
707
|
+
return new Qr();
|
|
701
708
|
}
|
|
702
|
-
},
|
|
703
|
-
variadic:
|
|
709
|
+
}, Be = {
|
|
710
|
+
variadic: Wr
|
|
704
711
|
}, y;
|
|
705
712
|
(function(e) {
|
|
706
713
|
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";
|
|
707
714
|
})(y || (y = {}));
|
|
708
|
-
var
|
|
715
|
+
var T;
|
|
709
716
|
(function(e) {
|
|
710
717
|
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";
|
|
711
|
-
})(
|
|
712
|
-
var
|
|
718
|
+
})(T || (T = {}));
|
|
719
|
+
var Q;
|
|
713
720
|
(function(e) {
|
|
714
721
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
715
|
-
})(
|
|
722
|
+
})(Q || (Q = {}));
|
|
716
723
|
function nt(e) {
|
|
717
|
-
return e.type ===
|
|
724
|
+
return e.type === T.literal;
|
|
725
|
+
}
|
|
726
|
+
function Jr(e) {
|
|
727
|
+
return e.type === T.argument;
|
|
718
728
|
}
|
|
719
|
-
function
|
|
720
|
-
return e.type ===
|
|
729
|
+
function wt(e) {
|
|
730
|
+
return e.type === T.number;
|
|
721
731
|
}
|
|
722
732
|
function Ot(e) {
|
|
723
|
-
return e.type ===
|
|
733
|
+
return e.type === T.date;
|
|
724
734
|
}
|
|
725
735
|
function Pt(e) {
|
|
726
|
-
return e.type ===
|
|
727
|
-
}
|
|
728
|
-
function wt(e) {
|
|
729
|
-
return e.type === C.time;
|
|
736
|
+
return e.type === T.time;
|
|
730
737
|
}
|
|
731
738
|
function Nt(e) {
|
|
732
|
-
return e.type ===
|
|
739
|
+
return e.type === T.select;
|
|
733
740
|
}
|
|
734
741
|
function Lt(e) {
|
|
735
|
-
return e.type ===
|
|
742
|
+
return e.type === T.plural;
|
|
736
743
|
}
|
|
737
|
-
function
|
|
738
|
-
return e.type ===
|
|
744
|
+
function Yr(e) {
|
|
745
|
+
return e.type === T.pound;
|
|
739
746
|
}
|
|
740
747
|
function It(e) {
|
|
741
|
-
return e.type ===
|
|
748
|
+
return e.type === T.tag;
|
|
742
749
|
}
|
|
743
750
|
function Mt(e) {
|
|
744
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
751
|
+
return !!(e && typeof e == "object" && e.type === Q.number);
|
|
745
752
|
}
|
|
746
|
-
function
|
|
747
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
753
|
+
function $e(e) {
|
|
754
|
+
return !!(e && typeof e == "object" && e.type === Q.dateTime);
|
|
748
755
|
}
|
|
749
|
-
var $t = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
750
|
-
function
|
|
756
|
+
var $t = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Kr = /(?:[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;
|
|
757
|
+
function en(e) {
|
|
751
758
|
var t = {};
|
|
752
|
-
return e.replace(
|
|
759
|
+
return e.replace(Kr, function(r) {
|
|
753
760
|
var n = r.length;
|
|
754
761
|
switch (r[0]) {
|
|
755
762
|
case "G":
|
|
@@ -838,11 +845,11 @@ function Kr(e) {
|
|
|
838
845
|
return "";
|
|
839
846
|
}), t;
|
|
840
847
|
}
|
|
841
|
-
var
|
|
842
|
-
function
|
|
848
|
+
var tn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
849
|
+
function rn(e) {
|
|
843
850
|
if (e.length === 0)
|
|
844
851
|
throw new Error("Number skeleton cannot be empty");
|
|
845
|
-
for (var t = e.split(
|
|
852
|
+
for (var t = e.split(tn).filter(function(f) {
|
|
846
853
|
return f.length > 0;
|
|
847
854
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
848
855
|
var s = i[n], o = s.split("/");
|
|
@@ -857,17 +864,17 @@ function tn(e) {
|
|
|
857
864
|
}
|
|
858
865
|
return r;
|
|
859
866
|
}
|
|
860
|
-
function
|
|
867
|
+
function nn(e) {
|
|
861
868
|
return e.replace(/^(.*?)-/, "");
|
|
862
869
|
}
|
|
863
|
-
var it = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Rt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
870
|
+
var it = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Rt = /^(@+)?(\+|#+)?[rs]?$/g, sn = /(\*)(0+)|(#+)(0+)|(0+)/g, Ut = /^(0+)$/;
|
|
864
871
|
function st(e) {
|
|
865
872
|
var t = {};
|
|
866
873
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Rt, function(r, n, i) {
|
|
867
874
|
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)), "";
|
|
868
875
|
}), t;
|
|
869
876
|
}
|
|
870
|
-
function
|
|
877
|
+
function Dt(e) {
|
|
871
878
|
switch (e) {
|
|
872
879
|
case "sign-auto":
|
|
873
880
|
return {
|
|
@@ -907,7 +914,7 @@ function Gt(e) {
|
|
|
907
914
|
};
|
|
908
915
|
}
|
|
909
916
|
}
|
|
910
|
-
function
|
|
917
|
+
function on(e) {
|
|
911
918
|
var t;
|
|
912
919
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
913
920
|
notation: "engineering"
|
|
@@ -922,10 +929,10 @@ function sn(e) {
|
|
|
922
929
|
return t;
|
|
923
930
|
}
|
|
924
931
|
function ot(e) {
|
|
925
|
-
var t = {}, r =
|
|
932
|
+
var t = {}, r = Dt(e);
|
|
926
933
|
return r || t;
|
|
927
934
|
}
|
|
928
|
-
function
|
|
935
|
+
function an(e) {
|
|
929
936
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
930
937
|
var i = n[r];
|
|
931
938
|
switch (i.stem) {
|
|
@@ -949,7 +956,7 @@ function on(e) {
|
|
|
949
956
|
continue;
|
|
950
957
|
case "measure-unit":
|
|
951
958
|
case "unit":
|
|
952
|
-
t.style = "unit", t.unit =
|
|
959
|
+
t.style = "unit", t.unit = nn(i.options[0]);
|
|
953
960
|
continue;
|
|
954
961
|
case "compact-short":
|
|
955
962
|
case "K":
|
|
@@ -960,13 +967,13 @@ function on(e) {
|
|
|
960
967
|
t.notation = "compact", t.compactDisplay = "long";
|
|
961
968
|
continue;
|
|
962
969
|
case "scientific":
|
|
963
|
-
t =
|
|
964
|
-
return
|
|
970
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(h, a) {
|
|
971
|
+
return E(E({}, h), ot(a));
|
|
965
972
|
}, {}));
|
|
966
973
|
continue;
|
|
967
974
|
case "engineering":
|
|
968
|
-
t =
|
|
969
|
-
return
|
|
975
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(h, a) {
|
|
976
|
+
return E(E({}, h), ot(a));
|
|
970
977
|
}, {}));
|
|
971
978
|
continue;
|
|
972
979
|
case "notation-simple":
|
|
@@ -1011,13 +1018,13 @@ function on(e) {
|
|
|
1011
1018
|
case "integer-width":
|
|
1012
1019
|
if (i.options.length > 1)
|
|
1013
1020
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1014
|
-
i.options[0].replace(
|
|
1021
|
+
i.options[0].replace(sn, function(h, a, l, c, f, p) {
|
|
1015
1022
|
if (a)
|
|
1016
1023
|
t.minimumIntegerDigits = l.length;
|
|
1017
1024
|
else {
|
|
1018
1025
|
if (c && f)
|
|
1019
1026
|
throw new Error("We currently do not support maximum integer digits");
|
|
1020
|
-
if (
|
|
1027
|
+
if (p)
|
|
1021
1028
|
throw new Error("We currently do not support exact integer digits");
|
|
1022
1029
|
}
|
|
1023
1030
|
return "";
|
|
@@ -1031,25 +1038,25 @@ function on(e) {
|
|
|
1031
1038
|
if (it.test(i.stem)) {
|
|
1032
1039
|
if (i.options.length > 1)
|
|
1033
1040
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1034
|
-
i.stem.replace(it, function(h, a, l, c, f,
|
|
1035
|
-
return l === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f &&
|
|
1041
|
+
i.stem.replace(it, function(h, a, l, c, f, p) {
|
|
1042
|
+
return l === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1036
1043
|
});
|
|
1037
1044
|
var s = i.options[0];
|
|
1038
|
-
s === "w" ? t =
|
|
1045
|
+
s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), st(s)));
|
|
1039
1046
|
continue;
|
|
1040
1047
|
}
|
|
1041
1048
|
if (Rt.test(i.stem)) {
|
|
1042
|
-
t =
|
|
1049
|
+
t = E(E({}, t), st(i.stem));
|
|
1043
1050
|
continue;
|
|
1044
1051
|
}
|
|
1045
|
-
var o =
|
|
1046
|
-
o && (t =
|
|
1047
|
-
var u =
|
|
1048
|
-
u && (t =
|
|
1052
|
+
var o = Dt(i.stem);
|
|
1053
|
+
o && (t = E(E({}, t), o));
|
|
1054
|
+
var u = on(i.stem);
|
|
1055
|
+
u && (t = E(E({}, t), u));
|
|
1049
1056
|
}
|
|
1050
1057
|
return t;
|
|
1051
1058
|
}
|
|
1052
|
-
var
|
|
1059
|
+
var ce = {
|
|
1053
1060
|
"001": [
|
|
1054
1061
|
"H",
|
|
1055
1062
|
"h"
|
|
@@ -2464,13 +2471,13 @@ var fe = {
|
|
|
2464
2471
|
"h"
|
|
2465
2472
|
]
|
|
2466
2473
|
};
|
|
2467
|
-
function
|
|
2474
|
+
function un(e, t) {
|
|
2468
2475
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2469
2476
|
var i = e.charAt(n);
|
|
2470
2477
|
if (i === "j") {
|
|
2471
2478
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2472
2479
|
s++, n++;
|
|
2473
|
-
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", a =
|
|
2480
|
+
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", a = hn(t);
|
|
2474
2481
|
for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
|
|
2475
2482
|
r += h;
|
|
2476
2483
|
for (; o-- > 0; )
|
|
@@ -2479,7 +2486,7 @@ function an(e, t) {
|
|
|
2479
2486
|
}
|
|
2480
2487
|
return r;
|
|
2481
2488
|
}
|
|
2482
|
-
function
|
|
2489
|
+
function hn(e) {
|
|
2483
2490
|
var t = e.hourCycle;
|
|
2484
2491
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2485
2492
|
e.hourCycles && // @ts-ignore
|
|
@@ -2498,23 +2505,23 @@ function un(e) {
|
|
|
2498
2505
|
}
|
|
2499
2506
|
var r = e.language, n;
|
|
2500
2507
|
r !== "root" && (n = e.maximize().region);
|
|
2501
|
-
var i =
|
|
2508
|
+
var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
|
|
2502
2509
|
return i[0];
|
|
2503
2510
|
}
|
|
2504
|
-
var
|
|
2511
|
+
var we, ln = new RegExp("^".concat($t.source, "*")), fn = new RegExp("".concat($t.source, "*$"));
|
|
2505
2512
|
function _(e, t) {
|
|
2506
2513
|
return { start: e, end: t };
|
|
2507
2514
|
}
|
|
2508
|
-
var
|
|
2515
|
+
var cn = !!String.prototype.startsWith && "_a".startsWith("a", 1), gn = !!String.fromCodePoint, mn = !!Object.fromEntries, pn = !!String.prototype.codePointAt, dn = !!String.prototype.trimStart, bn = !!String.prototype.trimEnd, yn = !!Number.isSafeInteger, _n = yn ? Number.isSafeInteger : function(e) {
|
|
2509
2516
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2510
|
-
},
|
|
2517
|
+
}, Re = !0;
|
|
2511
2518
|
try {
|
|
2512
|
-
var
|
|
2513
|
-
|
|
2519
|
+
var En = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2520
|
+
Re = ((we = En.exec("a")) === null || we === void 0 ? void 0 : we[0]) === "a";
|
|
2514
2521
|
} catch (e) {
|
|
2515
|
-
|
|
2522
|
+
Re = !1;
|
|
2516
2523
|
}
|
|
2517
|
-
var at =
|
|
2524
|
+
var at = cn ? (
|
|
2518
2525
|
// Native
|
|
2519
2526
|
function(t, r, n) {
|
|
2520
2527
|
return t.startsWith(r, n);
|
|
@@ -2524,7 +2531,7 @@ var at = fn ? (
|
|
|
2524
2531
|
function(t, r, n) {
|
|
2525
2532
|
return t.slice(n, n + r.length) === r;
|
|
2526
2533
|
}
|
|
2527
|
-
),
|
|
2534
|
+
), Ue = gn ? String.fromCodePoint : (
|
|
2528
2535
|
// IE11
|
|
2529
2536
|
function() {
|
|
2530
2537
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2538,7 +2545,7 @@ var at = fn ? (
|
|
|
2538
2545
|
}
|
|
2539
2546
|
), ut = (
|
|
2540
2547
|
// native
|
|
2541
|
-
|
|
2548
|
+
mn ? Object.fromEntries : (
|
|
2542
2549
|
// Ponyfill
|
|
2543
2550
|
function(t) {
|
|
2544
2551
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2548,7 +2555,7 @@ var at = fn ? (
|
|
|
2548
2555
|
return r;
|
|
2549
2556
|
}
|
|
2550
2557
|
)
|
|
2551
|
-
),
|
|
2558
|
+
), Gt = pn ? (
|
|
2552
2559
|
// Native
|
|
2553
2560
|
function(t, r) {
|
|
2554
2561
|
return t.codePointAt(r);
|
|
@@ -2562,7 +2569,7 @@ var at = fn ? (
|
|
|
2562
2569
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2563
2570
|
}
|
|
2564
2571
|
}
|
|
2565
|
-
), xn =
|
|
2572
|
+
), xn = dn ? (
|
|
2566
2573
|
// Native
|
|
2567
2574
|
function(t) {
|
|
2568
2575
|
return t.trimStart();
|
|
@@ -2570,9 +2577,9 @@ var at = fn ? (
|
|
|
2570
2577
|
) : (
|
|
2571
2578
|
// Ponyfill
|
|
2572
2579
|
function(t) {
|
|
2573
|
-
return t.replace(
|
|
2580
|
+
return t.replace(ln, "");
|
|
2574
2581
|
}
|
|
2575
|
-
),
|
|
2582
|
+
), vn = bn ? (
|
|
2576
2583
|
// Native
|
|
2577
2584
|
function(t) {
|
|
2578
2585
|
return t.trimEnd();
|
|
@@ -2580,32 +2587,32 @@ var at = fn ? (
|
|
|
2580
2587
|
) : (
|
|
2581
2588
|
// Ponyfill
|
|
2582
2589
|
function(t) {
|
|
2583
|
-
return t.replace(
|
|
2590
|
+
return t.replace(fn, "");
|
|
2584
2591
|
}
|
|
2585
2592
|
);
|
|
2586
2593
|
function Ft(e, t) {
|
|
2587
2594
|
return new RegExp(e, t);
|
|
2588
2595
|
}
|
|
2589
|
-
var
|
|
2590
|
-
if (
|
|
2596
|
+
var De;
|
|
2597
|
+
if (Re) {
|
|
2591
2598
|
var ht = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2592
|
-
|
|
2599
|
+
De = function(t, r) {
|
|
2593
2600
|
var n;
|
|
2594
2601
|
ht.lastIndex = r;
|
|
2595
2602
|
var i = ht.exec(t);
|
|
2596
2603
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2597
2604
|
};
|
|
2598
2605
|
} else
|
|
2599
|
-
|
|
2606
|
+
De = function(t, r) {
|
|
2600
2607
|
for (var n = []; ; ) {
|
|
2601
|
-
var i =
|
|
2602
|
-
if (i === void 0 || jt(i) ||
|
|
2608
|
+
var i = Gt(t, r);
|
|
2609
|
+
if (i === void 0 || jt(i) || An(i))
|
|
2603
2610
|
break;
|
|
2604
2611
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2605
2612
|
}
|
|
2606
|
-
return
|
|
2613
|
+
return Ue.apply(void 0, n);
|
|
2607
2614
|
};
|
|
2608
|
-
var
|
|
2615
|
+
var Tn = (
|
|
2609
2616
|
/** @class */
|
|
2610
2617
|
function() {
|
|
2611
2618
|
function e(t, r) {
|
|
@@ -2629,7 +2636,7 @@ var vn = (
|
|
|
2629
2636
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2630
2637
|
var u = this.clonePosition();
|
|
2631
2638
|
this.bump(), i.push({
|
|
2632
|
-
type:
|
|
2639
|
+
type: T.pound,
|
|
2633
2640
|
location: _(u, this.clonePosition())
|
|
2634
2641
|
});
|
|
2635
2642
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
@@ -2657,7 +2664,7 @@ var vn = (
|
|
|
2657
2664
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2658
2665
|
return {
|
|
2659
2666
|
val: {
|
|
2660
|
-
type:
|
|
2667
|
+
type: T.literal,
|
|
2661
2668
|
value: "<".concat(i, "/>"),
|
|
2662
2669
|
location: _(n, this.clonePosition())
|
|
2663
2670
|
},
|
|
@@ -2674,7 +2681,7 @@ var vn = (
|
|
|
2674
2681
|
var h = this.clonePosition(), a = this.parseTagName();
|
|
2675
2682
|
return i !== a ? this.error(y.UNMATCHED_CLOSING_TAG, _(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2676
2683
|
val: {
|
|
2677
|
-
type:
|
|
2684
|
+
type: T.tag,
|
|
2678
2685
|
value: i,
|
|
2679
2686
|
children: o,
|
|
2680
2687
|
location: _(n, this.clonePosition())
|
|
@@ -2687,7 +2694,7 @@ var vn = (
|
|
|
2687
2694
|
return this.error(y.INVALID_TAG, _(n, this.clonePosition()));
|
|
2688
2695
|
}, e.prototype.parseTagName = function() {
|
|
2689
2696
|
var t = this.offset();
|
|
2690
|
-
for (this.bump(); !this.isEOF() &&
|
|
2697
|
+
for (this.bump(); !this.isEOF() && Hn(this.char()); )
|
|
2691
2698
|
this.bump();
|
|
2692
2699
|
return this.message.slice(t, this.offset());
|
|
2693
2700
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2711,7 +2718,7 @@ var vn = (
|
|
|
2711
2718
|
}
|
|
2712
2719
|
var h = _(n, this.clonePosition());
|
|
2713
2720
|
return {
|
|
2714
|
-
val: { type:
|
|
2721
|
+
val: { type: T.literal, value: i, location: h },
|
|
2715
2722
|
err: null
|
|
2716
2723
|
};
|
|
2717
2724
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -2750,12 +2757,12 @@ var vn = (
|
|
|
2750
2757
|
r.push(n);
|
|
2751
2758
|
this.bump();
|
|
2752
2759
|
}
|
|
2753
|
-
return
|
|
2760
|
+
return Ue.apply(void 0, r);
|
|
2754
2761
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2755
2762
|
if (this.isEOF())
|
|
2756
2763
|
return null;
|
|
2757
2764
|
var n = this.char();
|
|
2758
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2765
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ue(n));
|
|
2759
2766
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2760
2767
|
var n = this.clonePosition();
|
|
2761
2768
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2771,7 +2778,7 @@ var vn = (
|
|
|
2771
2778
|
case 125:
|
|
2772
2779
|
return this.bump(), {
|
|
2773
2780
|
val: {
|
|
2774
|
-
type:
|
|
2781
|
+
type: T.argument,
|
|
2775
2782
|
// value does not include the opening and closing braces.
|
|
2776
2783
|
value: i,
|
|
2777
2784
|
location: _(n, this.clonePosition())
|
|
@@ -2784,7 +2791,7 @@ var vn = (
|
|
|
2784
2791
|
return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
2785
2792
|
}
|
|
2786
2793
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2787
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2794
|
+
var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), i = r + n.length;
|
|
2788
2795
|
this.bumpTo(i);
|
|
2789
2796
|
var s = this.clonePosition(), o = _(t, s);
|
|
2790
2797
|
return { value: n, location: o };
|
|
@@ -2803,44 +2810,44 @@ var vn = (
|
|
|
2803
2810
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2804
2811
|
if (c.err)
|
|
2805
2812
|
return c;
|
|
2806
|
-
var f =
|
|
2813
|
+
var f = vn(c.val);
|
|
2807
2814
|
if (f.length === 0)
|
|
2808
2815
|
return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
2809
|
-
var
|
|
2810
|
-
a = { style: f, styleLocation:
|
|
2816
|
+
var p = _(l, this.clonePosition());
|
|
2817
|
+
a = { style: f, styleLocation: p };
|
|
2811
2818
|
}
|
|
2812
|
-
var
|
|
2813
|
-
if (
|
|
2814
|
-
return
|
|
2819
|
+
var d = this.tryParseArgumentClose(i);
|
|
2820
|
+
if (d.err)
|
|
2821
|
+
return d;
|
|
2815
2822
|
var g = _(i, this.clonePosition());
|
|
2816
2823
|
if (a && at(a == null ? void 0 : a.style, "::", 0)) {
|
|
2817
|
-
var
|
|
2824
|
+
var x = xn(a.style.slice(2));
|
|
2818
2825
|
if (u === "number") {
|
|
2819
|
-
var c = this.parseNumberSkeletonFromString(
|
|
2826
|
+
var c = this.parseNumberSkeletonFromString(x, a.styleLocation);
|
|
2820
2827
|
return c.err ? c : {
|
|
2821
|
-
val: { type:
|
|
2828
|
+
val: { type: T.number, value: n, location: g, style: c.val },
|
|
2822
2829
|
err: null
|
|
2823
2830
|
};
|
|
2824
2831
|
} else {
|
|
2825
|
-
if (
|
|
2832
|
+
if (x.length === 0)
|
|
2826
2833
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
|
|
2827
|
-
var m =
|
|
2828
|
-
this.locale && (m =
|
|
2834
|
+
var m = x;
|
|
2835
|
+
this.locale && (m = un(x, this.locale));
|
|
2829
2836
|
var f = {
|
|
2830
|
-
type:
|
|
2837
|
+
type: Q.dateTime,
|
|
2831
2838
|
pattern: m,
|
|
2832
2839
|
location: a.styleLocation,
|
|
2833
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2834
|
-
},
|
|
2840
|
+
parsedOptions: this.shouldParseSkeletons ? en(m) : {}
|
|
2841
|
+
}, C = u === "date" ? T.date : T.time;
|
|
2835
2842
|
return {
|
|
2836
|
-
val: { type:
|
|
2843
|
+
val: { type: C, value: n, location: g, style: f },
|
|
2837
2844
|
err: null
|
|
2838
2845
|
};
|
|
2839
2846
|
}
|
|
2840
2847
|
}
|
|
2841
2848
|
return {
|
|
2842
2849
|
val: {
|
|
2843
|
-
type: u === "number" ?
|
|
2850
|
+
type: u === "number" ? T.number : u === "date" ? T.date : T.time,
|
|
2844
2851
|
value: n,
|
|
2845
2852
|
location: g,
|
|
2846
2853
|
style: (s = a == null ? void 0 : a.style) !== null && s !== void 0 ? s : null
|
|
@@ -2851,43 +2858,43 @@ var vn = (
|
|
|
2851
2858
|
case "plural":
|
|
2852
2859
|
case "selectordinal":
|
|
2853
2860
|
case "select": {
|
|
2854
|
-
var
|
|
2861
|
+
var S = this.clonePosition();
|
|
2855
2862
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2856
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(
|
|
2863
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(S, E({}, S)));
|
|
2857
2864
|
this.bumpSpace();
|
|
2858
|
-
var
|
|
2859
|
-
if (u !== "select" &&
|
|
2865
|
+
var P = this.parseIdentifierIfPossible(), B = 0;
|
|
2866
|
+
if (u !== "select" && P.value === "offset") {
|
|
2860
2867
|
if (!this.bumpIf(":"))
|
|
2861
2868
|
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
2862
2869
|
this.bumpSpace();
|
|
2863
2870
|
var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2864
2871
|
if (c.err)
|
|
2865
2872
|
return c;
|
|
2866
|
-
this.bumpSpace(),
|
|
2873
|
+
this.bumpSpace(), P = this.parseIdentifierIfPossible(), B = c.val;
|
|
2867
2874
|
}
|
|
2868
|
-
var
|
|
2869
|
-
if (
|
|
2870
|
-
return
|
|
2871
|
-
var
|
|
2872
|
-
if (
|
|
2873
|
-
return
|
|
2874
|
-
var
|
|
2875
|
+
var A = this.tryParsePluralOrSelectOptions(t, u, r, P);
|
|
2876
|
+
if (A.err)
|
|
2877
|
+
return A;
|
|
2878
|
+
var d = this.tryParseArgumentClose(i);
|
|
2879
|
+
if (d.err)
|
|
2880
|
+
return d;
|
|
2881
|
+
var N = _(i, this.clonePosition());
|
|
2875
2882
|
return u === "select" ? {
|
|
2876
2883
|
val: {
|
|
2877
|
-
type:
|
|
2884
|
+
type: T.select,
|
|
2878
2885
|
value: n,
|
|
2879
|
-
options: ut(
|
|
2880
|
-
location:
|
|
2886
|
+
options: ut(A.val),
|
|
2887
|
+
location: N
|
|
2881
2888
|
},
|
|
2882
2889
|
err: null
|
|
2883
2890
|
} : {
|
|
2884
2891
|
val: {
|
|
2885
|
-
type:
|
|
2892
|
+
type: T.plural,
|
|
2886
2893
|
value: n,
|
|
2887
|
-
options: ut(
|
|
2894
|
+
options: ut(A.val),
|
|
2888
2895
|
offset: B,
|
|
2889
2896
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
2890
|
-
location:
|
|
2897
|
+
location: N
|
|
2891
2898
|
},
|
|
2892
2899
|
err: null
|
|
2893
2900
|
};
|
|
@@ -2935,16 +2942,16 @@ var vn = (
|
|
|
2935
2942
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2936
2943
|
var n = [];
|
|
2937
2944
|
try {
|
|
2938
|
-
n =
|
|
2945
|
+
n = rn(t);
|
|
2939
2946
|
} catch (i) {
|
|
2940
2947
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
2941
2948
|
}
|
|
2942
2949
|
return {
|
|
2943
2950
|
val: {
|
|
2944
|
-
type:
|
|
2951
|
+
type: Q.number,
|
|
2945
2952
|
tokens: n,
|
|
2946
2953
|
location: r,
|
|
2947
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2954
|
+
parsedOptions: this.shouldParseSkeletons ? an(n) : {}
|
|
2948
2955
|
},
|
|
2949
2956
|
err: null
|
|
2950
2957
|
};
|
|
@@ -2963,20 +2970,20 @@ var vn = (
|
|
|
2963
2970
|
if (h.has(a))
|
|
2964
2971
|
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
2965
2972
|
a === "other" && (o = !0), this.bumpSpace();
|
|
2966
|
-
var
|
|
2973
|
+
var p = this.clonePosition();
|
|
2967
2974
|
if (!this.bumpIf("{"))
|
|
2968
2975
|
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
|
|
2969
|
-
var
|
|
2970
|
-
if (
|
|
2971
|
-
return
|
|
2972
|
-
var g = this.tryParseArgumentClose(
|
|
2976
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
2977
|
+
if (d.err)
|
|
2978
|
+
return d;
|
|
2979
|
+
var g = this.tryParseArgumentClose(p);
|
|
2973
2980
|
if (g.err)
|
|
2974
2981
|
return g;
|
|
2975
2982
|
u.push([
|
|
2976
2983
|
a,
|
|
2977
2984
|
{
|
|
2978
|
-
value:
|
|
2979
|
-
location: _(
|
|
2985
|
+
value: d.val,
|
|
2986
|
+
location: _(p, this.clonePosition())
|
|
2980
2987
|
}
|
|
2981
2988
|
]), h.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, l = s.location;
|
|
2982
2989
|
}
|
|
@@ -2992,7 +2999,7 @@ var vn = (
|
|
|
2992
2999
|
break;
|
|
2993
3000
|
}
|
|
2994
3001
|
var h = _(i, this.clonePosition());
|
|
2995
|
-
return s ? (o *= n,
|
|
3002
|
+
return s ? (o *= n, _n(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
|
2996
3003
|
}, e.prototype.offset = function() {
|
|
2997
3004
|
return this.position.offset;
|
|
2998
3005
|
}, e.prototype.isEOF = function() {
|
|
@@ -3007,7 +3014,7 @@ var vn = (
|
|
|
3007
3014
|
var t = this.position.offset;
|
|
3008
3015
|
if (t >= this.message.length)
|
|
3009
3016
|
throw Error("out of bound");
|
|
3010
|
-
var r =
|
|
3017
|
+
var r = Gt(this.message, t);
|
|
3011
3018
|
if (r === void 0)
|
|
3012
3019
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3013
3020
|
return r;
|
|
@@ -3064,40 +3071,40 @@ function Ge(e) {
|
|
|
3064
3071
|
function Cn(e) {
|
|
3065
3072
|
return Ge(e) || e === 47;
|
|
3066
3073
|
}
|
|
3067
|
-
function
|
|
3074
|
+
function Hn(e) {
|
|
3068
3075
|
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;
|
|
3069
3076
|
}
|
|
3070
3077
|
function jt(e) {
|
|
3071
3078
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3072
3079
|
}
|
|
3073
|
-
function
|
|
3080
|
+
function An(e) {
|
|
3074
3081
|
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;
|
|
3075
3082
|
}
|
|
3076
|
-
function
|
|
3083
|
+
function Fe(e) {
|
|
3077
3084
|
e.forEach(function(t) {
|
|
3078
3085
|
if (delete t.location, Nt(t) || Lt(t))
|
|
3079
3086
|
for (var r in t.options)
|
|
3080
|
-
delete t.options[r].location,
|
|
3081
|
-
else
|
|
3087
|
+
delete t.options[r].location, Fe(t.options[r].value);
|
|
3088
|
+
else wt(t) && Mt(t.style) || (Ot(t) || Pt(t)) && $e(t.style) ? delete t.style.location : It(t) && Fe(t.children);
|
|
3082
3089
|
});
|
|
3083
3090
|
}
|
|
3084
|
-
function
|
|
3085
|
-
t === void 0 && (t = {}), t =
|
|
3086
|
-
var r = new
|
|
3091
|
+
function Sn(e, t) {
|
|
3092
|
+
t === void 0 && (t = {}), t = E({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3093
|
+
var r = new Tn(e, t).parse();
|
|
3087
3094
|
if (r.err) {
|
|
3088
3095
|
var n = SyntaxError(y[r.err.kind]);
|
|
3089
3096
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3090
3097
|
}
|
|
3091
|
-
return t != null && t.captureLocation ||
|
|
3098
|
+
return t != null && t.captureLocation || Fe(r.val), r.val;
|
|
3092
3099
|
}
|
|
3093
|
-
var
|
|
3100
|
+
var q;
|
|
3094
3101
|
(function(e) {
|
|
3095
3102
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3096
|
-
})(
|
|
3103
|
+
})(q || (q = {}));
|
|
3097
3104
|
var xe = (
|
|
3098
3105
|
/** @class */
|
|
3099
3106
|
function(e) {
|
|
3100
|
-
|
|
3107
|
+
Ee(t, e);
|
|
3101
3108
|
function t(r, n, i) {
|
|
3102
3109
|
var s = e.call(this, r) || this;
|
|
3103
3110
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3109,48 +3116,48 @@ var xe = (
|
|
|
3109
3116
|
), lt = (
|
|
3110
3117
|
/** @class */
|
|
3111
3118
|
function(e) {
|
|
3112
|
-
|
|
3119
|
+
Ee(t, e);
|
|
3113
3120
|
function t(r, n, i, s) {
|
|
3114
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3121
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, s) || this;
|
|
3115
3122
|
}
|
|
3116
3123
|
return t;
|
|
3117
3124
|
}(xe)
|
|
3118
|
-
),
|
|
3125
|
+
), Bn = (
|
|
3119
3126
|
/** @class */
|
|
3120
3127
|
function(e) {
|
|
3121
|
-
|
|
3128
|
+
Ee(t, e);
|
|
3122
3129
|
function t(r, n, i) {
|
|
3123
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3130
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), q.INVALID_VALUE, i) || this;
|
|
3124
3131
|
}
|
|
3125
3132
|
return t;
|
|
3126
3133
|
}(xe)
|
|
3127
|
-
),
|
|
3134
|
+
), wn = (
|
|
3128
3135
|
/** @class */
|
|
3129
3136
|
function(e) {
|
|
3130
|
-
|
|
3137
|
+
Ee(t, e);
|
|
3131
3138
|
function t(r, n) {
|
|
3132
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3139
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), q.MISSING_VALUE, n) || this;
|
|
3133
3140
|
}
|
|
3134
3141
|
return t;
|
|
3135
3142
|
}(xe)
|
|
3136
|
-
),
|
|
3143
|
+
), O;
|
|
3137
3144
|
(function(e) {
|
|
3138
3145
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3139
|
-
})(
|
|
3146
|
+
})(O || (O = {}));
|
|
3140
3147
|
function On(e) {
|
|
3141
3148
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3142
3149
|
var n = t[t.length - 1];
|
|
3143
|
-
return !n || n.type !==
|
|
3150
|
+
return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
|
|
3144
3151
|
}, []);
|
|
3145
3152
|
}
|
|
3146
3153
|
function Pn(e) {
|
|
3147
3154
|
return typeof e == "function";
|
|
3148
3155
|
}
|
|
3149
|
-
function
|
|
3156
|
+
function me(e, t, r, n, i, s, o) {
|
|
3150
3157
|
if (e.length === 1 && nt(e[0]))
|
|
3151
3158
|
return [
|
|
3152
3159
|
{
|
|
3153
|
-
type:
|
|
3160
|
+
type: O.literal,
|
|
3154
3161
|
value: e[0].value
|
|
3155
3162
|
}
|
|
3156
3163
|
];
|
|
@@ -3158,101 +3165,101 @@ function ge(e, t, r, n, i, s, o) {
|
|
|
3158
3165
|
var l = a[h];
|
|
3159
3166
|
if (nt(l)) {
|
|
3160
3167
|
u.push({
|
|
3161
|
-
type:
|
|
3168
|
+
type: O.literal,
|
|
3162
3169
|
value: l.value
|
|
3163
3170
|
});
|
|
3164
3171
|
continue;
|
|
3165
3172
|
}
|
|
3166
|
-
if (
|
|
3173
|
+
if (Yr(l)) {
|
|
3167
3174
|
typeof s == "number" && u.push({
|
|
3168
|
-
type:
|
|
3175
|
+
type: O.literal,
|
|
3169
3176
|
value: r.getNumberFormat(t).format(s)
|
|
3170
3177
|
});
|
|
3171
3178
|
continue;
|
|
3172
3179
|
}
|
|
3173
3180
|
var c = l.value;
|
|
3174
3181
|
if (!(i && c in i))
|
|
3175
|
-
throw new
|
|
3182
|
+
throw new wn(c, o);
|
|
3176
3183
|
var f = i[c];
|
|
3177
|
-
if (
|
|
3184
|
+
if (Jr(l)) {
|
|
3178
3185
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
|
|
3179
|
-
type: typeof f == "string" ?
|
|
3186
|
+
type: typeof f == "string" ? O.literal : O.object,
|
|
3180
3187
|
value: f
|
|
3181
3188
|
});
|
|
3182
3189
|
continue;
|
|
3183
3190
|
}
|
|
3184
|
-
if (
|
|
3185
|
-
var
|
|
3191
|
+
if (Ot(l)) {
|
|
3192
|
+
var p = typeof l.style == "string" ? n.date[l.style] : $e(l.style) ? l.style.parsedOptions : void 0;
|
|
3186
3193
|
u.push({
|
|
3187
|
-
type:
|
|
3188
|
-
value: r.getDateTimeFormat(t,
|
|
3194
|
+
type: O.literal,
|
|
3195
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3189
3196
|
});
|
|
3190
3197
|
continue;
|
|
3191
3198
|
}
|
|
3192
|
-
if (
|
|
3193
|
-
var
|
|
3199
|
+
if (Pt(l)) {
|
|
3200
|
+
var p = typeof l.style == "string" ? n.time[l.style] : $e(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3194
3201
|
u.push({
|
|
3195
|
-
type:
|
|
3196
|
-
value: r.getDateTimeFormat(t,
|
|
3202
|
+
type: O.literal,
|
|
3203
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3197
3204
|
});
|
|
3198
3205
|
continue;
|
|
3199
3206
|
}
|
|
3200
|
-
if (
|
|
3201
|
-
var
|
|
3202
|
-
|
|
3203
|
-
type:
|
|
3204
|
-
value: r.getNumberFormat(t,
|
|
3207
|
+
if (wt(l)) {
|
|
3208
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Mt(l.style) ? l.style.parsedOptions : void 0;
|
|
3209
|
+
p && p.scale && (f = f * (p.scale || 1)), u.push({
|
|
3210
|
+
type: O.literal,
|
|
3211
|
+
value: r.getNumberFormat(t, p).format(f)
|
|
3205
3212
|
});
|
|
3206
3213
|
continue;
|
|
3207
3214
|
}
|
|
3208
3215
|
if (It(l)) {
|
|
3209
|
-
var
|
|
3210
|
-
if (!Pn(
|
|
3211
|
-
throw new
|
|
3212
|
-
var m =
|
|
3216
|
+
var d = l.children, g = l.value, x = i[g];
|
|
3217
|
+
if (!Pn(x))
|
|
3218
|
+
throw new Bn(g, "function", o);
|
|
3219
|
+
var m = me(d, t, r, n, i, s), C = x(m.map(function(B) {
|
|
3213
3220
|
return B.value;
|
|
3214
3221
|
}));
|
|
3215
|
-
Array.isArray(
|
|
3222
|
+
Array.isArray(C) || (C = [C]), u.push.apply(u, C.map(function(B) {
|
|
3216
3223
|
return {
|
|
3217
|
-
type: typeof B == "string" ?
|
|
3224
|
+
type: typeof B == "string" ? O.literal : O.object,
|
|
3218
3225
|
value: B
|
|
3219
3226
|
};
|
|
3220
3227
|
}));
|
|
3221
3228
|
}
|
|
3222
3229
|
if (Nt(l)) {
|
|
3223
|
-
var
|
|
3224
|
-
if (!
|
|
3230
|
+
var S = l.options[f] || l.options.other;
|
|
3231
|
+
if (!S)
|
|
3225
3232
|
throw new lt(l.value, f, Object.keys(l.options), o);
|
|
3226
|
-
u.push.apply(u,
|
|
3233
|
+
u.push.apply(u, me(S.value, t, r, n, i));
|
|
3227
3234
|
continue;
|
|
3228
3235
|
}
|
|
3229
3236
|
if (Lt(l)) {
|
|
3230
|
-
var
|
|
3231
|
-
if (!
|
|
3237
|
+
var S = l.options["=".concat(f)];
|
|
3238
|
+
if (!S) {
|
|
3232
3239
|
if (!Intl.PluralRules)
|
|
3233
3240
|
throw new xe(`Intl.PluralRules is not available in this environment.
|
|
3234
3241
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3235
|
-
`,
|
|
3236
|
-
var
|
|
3237
|
-
|
|
3242
|
+
`, q.MISSING_INTL_API, o);
|
|
3243
|
+
var P = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3244
|
+
S = l.options[P] || l.options.other;
|
|
3238
3245
|
}
|
|
3239
|
-
if (!
|
|
3246
|
+
if (!S)
|
|
3240
3247
|
throw new lt(l.value, f, Object.keys(l.options), o);
|
|
3241
|
-
u.push.apply(u,
|
|
3248
|
+
u.push.apply(u, me(S.value, t, r, n, i, f - (l.offset || 0)));
|
|
3242
3249
|
continue;
|
|
3243
3250
|
}
|
|
3244
3251
|
}
|
|
3245
3252
|
return On(u);
|
|
3246
3253
|
}
|
|
3247
|
-
function
|
|
3248
|
-
return t ?
|
|
3249
|
-
return r[n] =
|
|
3254
|
+
function Nn(e, t) {
|
|
3255
|
+
return t ? E(E(E({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3256
|
+
return r[n] = E(E({}, e[n]), t[n] || {}), r;
|
|
3250
3257
|
}, {})) : e;
|
|
3251
3258
|
}
|
|
3252
|
-
function
|
|
3259
|
+
function Ln(e, t) {
|
|
3253
3260
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3254
|
-
return r[n] =
|
|
3255
|
-
},
|
|
3261
|
+
return r[n] = Nn(e[n], t[n]), r;
|
|
3262
|
+
}, E({}, e)) : e;
|
|
3256
3263
|
}
|
|
3257
3264
|
function Oe(e) {
|
|
3258
3265
|
return {
|
|
@@ -3268,39 +3275,39 @@ function Oe(e) {
|
|
|
3268
3275
|
}
|
|
3269
3276
|
};
|
|
3270
3277
|
}
|
|
3271
|
-
function
|
|
3278
|
+
function In(e) {
|
|
3272
3279
|
return e === void 0 && (e = {
|
|
3273
3280
|
number: {},
|
|
3274
3281
|
dateTime: {},
|
|
3275
3282
|
pluralRules: {}
|
|
3276
3283
|
}), {
|
|
3277
|
-
getNumberFormat:
|
|
3284
|
+
getNumberFormat: Se(function() {
|
|
3278
3285
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3279
3286
|
r[n] = arguments[n];
|
|
3280
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3287
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3281
3288
|
}, {
|
|
3282
3289
|
cache: Oe(e.number),
|
|
3283
|
-
strategy:
|
|
3290
|
+
strategy: Be.variadic
|
|
3284
3291
|
}),
|
|
3285
|
-
getDateTimeFormat:
|
|
3292
|
+
getDateTimeFormat: Se(function() {
|
|
3286
3293
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3287
3294
|
r[n] = arguments[n];
|
|
3288
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3295
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3289
3296
|
}, {
|
|
3290
3297
|
cache: Oe(e.dateTime),
|
|
3291
|
-
strategy:
|
|
3298
|
+
strategy: Be.variadic
|
|
3292
3299
|
}),
|
|
3293
|
-
getPluralRules:
|
|
3300
|
+
getPluralRules: Se(function() {
|
|
3294
3301
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3295
3302
|
r[n] = arguments[n];
|
|
3296
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3303
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3297
3304
|
}, {
|
|
3298
3305
|
cache: Oe(e.pluralRules),
|
|
3299
|
-
strategy:
|
|
3306
|
+
strategy: Be.variadic
|
|
3300
3307
|
})
|
|
3301
3308
|
};
|
|
3302
3309
|
}
|
|
3303
|
-
var
|
|
3310
|
+
var Mn = (
|
|
3304
3311
|
/** @class */
|
|
3305
3312
|
function() {
|
|
3306
3313
|
function e(t, r, n, i) {
|
|
@@ -3315,11 +3322,11 @@ var In = (
|
|
|
3315
3322
|
if (a.length === 1)
|
|
3316
3323
|
return a[0].value;
|
|
3317
3324
|
var l = a.reduce(function(c, f) {
|
|
3318
|
-
return !c.length || f.type !==
|
|
3325
|
+
return !c.length || f.type !== O.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3319
3326
|
}, []);
|
|
3320
3327
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3321
3328
|
}, this.formatToParts = function(h) {
|
|
3322
|
-
return
|
|
3329
|
+
return me(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
|
3323
3330
|
}, this.resolvedOptions = function() {
|
|
3324
3331
|
var h;
|
|
3325
3332
|
return {
|
|
@@ -3332,13 +3339,13 @@ var In = (
|
|
|
3332
3339
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3333
3340
|
var o = i || {};
|
|
3334
3341
|
o.formatters;
|
|
3335
|
-
var u =
|
|
3336
|
-
this.ast = e.__parse(t,
|
|
3342
|
+
var u = kr(o, ["formatters"]);
|
|
3343
|
+
this.ast = e.__parse(t, E(E({}, u), { locale: this.resolvedLocale }));
|
|
3337
3344
|
} else
|
|
3338
3345
|
this.ast = t;
|
|
3339
3346
|
if (!Array.isArray(this.ast))
|
|
3340
3347
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3341
|
-
this.formats =
|
|
3348
|
+
this.formats = Ln(e.formats, n), this.formatters = i && i.formatters || In(this.formatterCache);
|
|
3342
3349
|
}
|
|
3343
3350
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3344
3351
|
get: function() {
|
|
@@ -3351,7 +3358,7 @@ var In = (
|
|
|
3351
3358
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3352
3359
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3353
3360
|
}
|
|
3354
|
-
}, e.__parse =
|
|
3361
|
+
}, e.__parse = Sn, e.formats = {
|
|
3355
3362
|
number: {
|
|
3356
3363
|
integer: {
|
|
3357
3364
|
maximumFractionDigits: 0
|
|
@@ -3412,7 +3419,7 @@ var In = (
|
|
|
3412
3419
|
}, e;
|
|
3413
3420
|
}()
|
|
3414
3421
|
);
|
|
3415
|
-
function
|
|
3422
|
+
function $n(e, t) {
|
|
3416
3423
|
if (t == null)
|
|
3417
3424
|
return;
|
|
3418
3425
|
if (t in e)
|
|
@@ -3433,36 +3440,36 @@ function Mn(e, t) {
|
|
|
3433
3440
|
n = void 0;
|
|
3434
3441
|
return n;
|
|
3435
3442
|
}
|
|
3436
|
-
const D = {},
|
|
3443
|
+
const D = {}, Rn = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), kt = (e, t) => {
|
|
3437
3444
|
if (t == null)
|
|
3438
3445
|
return;
|
|
3439
3446
|
if (t in D && e in D[t])
|
|
3440
3447
|
return D[t][e];
|
|
3441
|
-
const r =
|
|
3448
|
+
const r = ve(t);
|
|
3442
3449
|
for (let n = 0; n < r.length; n++) {
|
|
3443
|
-
const i = r[n], s =
|
|
3450
|
+
const i = r[n], s = Dn(i, e);
|
|
3444
3451
|
if (s)
|
|
3445
|
-
return
|
|
3452
|
+
return Rn(e, t, s);
|
|
3446
3453
|
}
|
|
3447
3454
|
};
|
|
3448
3455
|
let Xe;
|
|
3449
|
-
const ue =
|
|
3450
|
-
function
|
|
3456
|
+
const ue = _e({});
|
|
3457
|
+
function Un(e) {
|
|
3451
3458
|
return Xe[e] || null;
|
|
3452
3459
|
}
|
|
3453
3460
|
function Vt(e) {
|
|
3454
3461
|
return e in Xe;
|
|
3455
3462
|
}
|
|
3456
|
-
function
|
|
3463
|
+
function Dn(e, t) {
|
|
3457
3464
|
if (!Vt(e))
|
|
3458
3465
|
return null;
|
|
3459
|
-
const r =
|
|
3460
|
-
return
|
|
3466
|
+
const r = Un(e);
|
|
3467
|
+
return $n(r, t);
|
|
3461
3468
|
}
|
|
3462
3469
|
function Gn(e) {
|
|
3463
3470
|
if (e == null)
|
|
3464
3471
|
return;
|
|
3465
|
-
const t =
|
|
3472
|
+
const t = ve(e);
|
|
3466
3473
|
for (let r = 0; r < t.length; r++) {
|
|
3467
3474
|
const n = t[r];
|
|
3468
3475
|
if (Vt(n))
|
|
@@ -3470,55 +3477,55 @@ function Gn(e) {
|
|
|
3470
3477
|
}
|
|
3471
3478
|
}
|
|
3472
3479
|
function Xt(e, ...t) {
|
|
3473
|
-
delete D[e], ue.update((r) => (r[e] =
|
|
3480
|
+
delete D[e], ue.update((r) => (r[e] = jr.all([r[e] || {}, ...t]), r));
|
|
3474
3481
|
}
|
|
3475
|
-
|
|
3482
|
+
K(
|
|
3476
3483
|
[ue],
|
|
3477
3484
|
([e]) => Object.keys(e)
|
|
3478
3485
|
);
|
|
3479
3486
|
ue.subscribe((e) => Xe = e);
|
|
3480
|
-
const
|
|
3481
|
-
function
|
|
3482
|
-
|
|
3487
|
+
const pe = {};
|
|
3488
|
+
function Fn(e, t) {
|
|
3489
|
+
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
3483
3490
|
}
|
|
3484
3491
|
function zt(e) {
|
|
3485
|
-
return
|
|
3492
|
+
return pe[e];
|
|
3486
3493
|
}
|
|
3487
|
-
function
|
|
3488
|
-
return
|
|
3494
|
+
function jn(e) {
|
|
3495
|
+
return ve(e).map((t) => {
|
|
3489
3496
|
const r = zt(t);
|
|
3490
3497
|
return [t, r ? [...r] : []];
|
|
3491
3498
|
}).filter(([, t]) => t.length > 0);
|
|
3492
3499
|
}
|
|
3493
|
-
function
|
|
3494
|
-
return e == null ? !1 :
|
|
3500
|
+
function je(e) {
|
|
3501
|
+
return e == null ? !1 : ve(e).some(
|
|
3495
3502
|
(t) => {
|
|
3496
3503
|
var r;
|
|
3497
3504
|
return (r = zt(t)) == null ? void 0 : r.size;
|
|
3498
3505
|
}
|
|
3499
3506
|
);
|
|
3500
3507
|
}
|
|
3501
|
-
function
|
|
3508
|
+
function kn(e, t) {
|
|
3502
3509
|
return Promise.all(
|
|
3503
|
-
t.map((n) => (
|
|
3510
|
+
t.map((n) => (Fn(e, n), n().then((i) => i.default || i)))
|
|
3504
3511
|
).then((n) => Xt(e, ...n));
|
|
3505
3512
|
}
|
|
3506
|
-
const
|
|
3513
|
+
const re = {};
|
|
3507
3514
|
function Wt(e) {
|
|
3508
|
-
if (!
|
|
3509
|
-
return e in
|
|
3510
|
-
const t =
|
|
3511
|
-
return
|
|
3515
|
+
if (!je(e))
|
|
3516
|
+
return e in re ? re[e] : Promise.resolve();
|
|
3517
|
+
const t = jn(e);
|
|
3518
|
+
return re[e] = Promise.all(
|
|
3512
3519
|
t.map(
|
|
3513
|
-
([r, n]) =>
|
|
3520
|
+
([r, n]) => kn(r, n)
|
|
3514
3521
|
)
|
|
3515
3522
|
).then(() => {
|
|
3516
|
-
if (
|
|
3523
|
+
if (je(e))
|
|
3517
3524
|
return Wt(e);
|
|
3518
|
-
delete
|
|
3519
|
-
}),
|
|
3525
|
+
delete re[e];
|
|
3526
|
+
}), re[e];
|
|
3520
3527
|
}
|
|
3521
|
-
const
|
|
3528
|
+
const Vn = {
|
|
3522
3529
|
number: {
|
|
3523
3530
|
scientific: { notation: "scientific" },
|
|
3524
3531
|
engineering: { notation: "engineering" },
|
|
@@ -3547,141 +3554,141 @@ const kn = {
|
|
|
3547
3554
|
timeZoneName: "short"
|
|
3548
3555
|
}
|
|
3549
3556
|
}
|
|
3550
|
-
},
|
|
3557
|
+
}, Xn = {
|
|
3551
3558
|
fallbackLocale: null,
|
|
3552
3559
|
loadingDelay: 200,
|
|
3553
|
-
formats:
|
|
3560
|
+
formats: Vn,
|
|
3554
3561
|
warnOnMissingMessages: !0,
|
|
3555
3562
|
handleMissingMessage: void 0,
|
|
3556
3563
|
ignoreTag: !0
|
|
3557
|
-
},
|
|
3558
|
-
function
|
|
3559
|
-
return
|
|
3564
|
+
}, zn = Xn;
|
|
3565
|
+
function J() {
|
|
3566
|
+
return zn;
|
|
3560
3567
|
}
|
|
3561
|
-
const Pe =
|
|
3562
|
-
var
|
|
3568
|
+
const Pe = _e(!1);
|
|
3569
|
+
var Wn = Object.defineProperty, Zn = Object.defineProperties, Qn = Object.getOwnPropertyDescriptors, ft = Object.getOwnPropertySymbols, qn = Object.prototype.hasOwnProperty, Jn = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Yn = (e, t) => {
|
|
3563
3570
|
for (var r in t || (t = {}))
|
|
3564
|
-
|
|
3571
|
+
qn.call(t, r) && ct(e, r, t[r]);
|
|
3565
3572
|
if (ft)
|
|
3566
3573
|
for (var r of ft(t))
|
|
3567
|
-
|
|
3574
|
+
Jn.call(t, r) && ct(e, r, t[r]);
|
|
3568
3575
|
return e;
|
|
3569
|
-
},
|
|
3570
|
-
let
|
|
3571
|
-
const
|
|
3576
|
+
}, Kn = (e, t) => Zn(e, Qn(t));
|
|
3577
|
+
let ke;
|
|
3578
|
+
const be = _e(null);
|
|
3572
3579
|
function gt(e) {
|
|
3573
3580
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3574
3581
|
}
|
|
3575
|
-
function
|
|
3582
|
+
function ve(e, t = J().fallbackLocale) {
|
|
3576
3583
|
const r = gt(e);
|
|
3577
3584
|
return t ? [.../* @__PURE__ */ new Set([...r, ...gt(t)])] : r;
|
|
3578
3585
|
}
|
|
3579
|
-
function
|
|
3580
|
-
return
|
|
3586
|
+
function k() {
|
|
3587
|
+
return ke != null ? ke : void 0;
|
|
3581
3588
|
}
|
|
3582
|
-
|
|
3583
|
-
|
|
3589
|
+
be.subscribe((e) => {
|
|
3590
|
+
ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3584
3591
|
});
|
|
3585
|
-
const
|
|
3586
|
-
if (e && Gn(e) &&
|
|
3587
|
-
const { loadingDelay: t } =
|
|
3592
|
+
const ei = (e) => {
|
|
3593
|
+
if (e && Gn(e) && je(e)) {
|
|
3594
|
+
const { loadingDelay: t } = J();
|
|
3588
3595
|
let r;
|
|
3589
|
-
return typeof window != "undefined" &&
|
|
3596
|
+
return typeof window != "undefined" && k() != null && t ? r = window.setTimeout(
|
|
3590
3597
|
() => Pe.set(!0),
|
|
3591
3598
|
t
|
|
3592
3599
|
) : Pe.set(!0), Wt(e).then(() => {
|
|
3593
|
-
|
|
3600
|
+
be.set(e);
|
|
3594
3601
|
}).finally(() => {
|
|
3595
3602
|
clearTimeout(r), Pe.set(!1);
|
|
3596
3603
|
});
|
|
3597
3604
|
}
|
|
3598
|
-
return
|
|
3599
|
-
},
|
|
3600
|
-
set:
|
|
3601
|
-
}),
|
|
3605
|
+
return be.set(e);
|
|
3606
|
+
}, ee = Kn(Yn({}, be), {
|
|
3607
|
+
set: ei
|
|
3608
|
+
}), Te = (e) => {
|
|
3602
3609
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3603
3610
|
return (n) => {
|
|
3604
3611
|
const i = JSON.stringify(n);
|
|
3605
3612
|
return i in t ? t[i] : t[i] = e(n);
|
|
3606
3613
|
};
|
|
3607
3614
|
};
|
|
3608
|
-
var
|
|
3615
|
+
var ti = Object.defineProperty, ye = Object.getOwnPropertySymbols, Zt = Object.prototype.hasOwnProperty, Qt = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ze = (e, t) => {
|
|
3609
3616
|
for (var r in t || (t = {}))
|
|
3610
3617
|
Zt.call(t, r) && mt(e, r, t[r]);
|
|
3611
|
-
if (
|
|
3612
|
-
for (var r of
|
|
3618
|
+
if (ye)
|
|
3619
|
+
for (var r of ye(t))
|
|
3613
3620
|
Qt.call(t, r) && mt(e, r, t[r]);
|
|
3614
3621
|
return e;
|
|
3615
|
-
},
|
|
3622
|
+
}, te = (e, t) => {
|
|
3616
3623
|
var r = {};
|
|
3617
3624
|
for (var n in e)
|
|
3618
3625
|
Zt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3619
|
-
if (e != null &&
|
|
3620
|
-
for (var n of
|
|
3626
|
+
if (e != null && ye)
|
|
3627
|
+
for (var n of ye(e))
|
|
3621
3628
|
t.indexOf(n) < 0 && Qt.call(e, n) && (r[n] = e[n]);
|
|
3622
3629
|
return r;
|
|
3623
3630
|
};
|
|
3624
3631
|
const oe = (e, t) => {
|
|
3625
|
-
const { formats: r } =
|
|
3632
|
+
const { formats: r } = J();
|
|
3626
3633
|
if (e in r && t in r[e])
|
|
3627
3634
|
return r[e][t];
|
|
3628
3635
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3629
|
-
},
|
|
3636
|
+
}, ri = Te(
|
|
3630
3637
|
(e) => {
|
|
3631
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3638
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3632
3639
|
if (r == null)
|
|
3633
3640
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3634
3641
|
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
3635
3642
|
}
|
|
3636
|
-
),
|
|
3643
|
+
), ni = Te(
|
|
3637
3644
|
(e) => {
|
|
3638
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3645
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3639
3646
|
if (r == null)
|
|
3640
3647
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3641
3648
|
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3642
3649
|
}
|
|
3643
|
-
),
|
|
3650
|
+
), ii = Te(
|
|
3644
3651
|
(e) => {
|
|
3645
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3652
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3646
3653
|
if (r == null)
|
|
3647
3654
|
throw new Error(
|
|
3648
3655
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3649
3656
|
);
|
|
3650
3657
|
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3651
3658
|
}
|
|
3652
|
-
),
|
|
3653
|
-
var t = e, {
|
|
3654
|
-
locale: r = V()
|
|
3655
|
-
} = t, n = re(t, [
|
|
3656
|
-
"locale"
|
|
3657
|
-
]);
|
|
3658
|
-
return ti(ze({ locale: r }, n));
|
|
3659
|
-
}, si = (e = {}) => {
|
|
3659
|
+
), si = (e = {}) => {
|
|
3660
3660
|
var t = e, {
|
|
3661
|
-
locale: r =
|
|
3662
|
-
} = t, n =
|
|
3661
|
+
locale: r = k()
|
|
3662
|
+
} = t, n = te(t, [
|
|
3663
3663
|
"locale"
|
|
3664
3664
|
]);
|
|
3665
3665
|
return ri(ze({ locale: r }, n));
|
|
3666
3666
|
}, oi = (e = {}) => {
|
|
3667
3667
|
var t = e, {
|
|
3668
|
-
locale: r =
|
|
3669
|
-
} = t, n =
|
|
3668
|
+
locale: r = k()
|
|
3669
|
+
} = t, n = te(t, [
|
|
3670
3670
|
"locale"
|
|
3671
3671
|
]);
|
|
3672
3672
|
return ni(ze({ locale: r }, n));
|
|
3673
|
-
}, ai =
|
|
3673
|
+
}, ai = (e = {}) => {
|
|
3674
|
+
var t = e, {
|
|
3675
|
+
locale: r = k()
|
|
3676
|
+
} = t, n = te(t, [
|
|
3677
|
+
"locale"
|
|
3678
|
+
]);
|
|
3679
|
+
return ii(ze({ locale: r }, n));
|
|
3680
|
+
}, ui = Te(
|
|
3674
3681
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3675
|
-
(e, t =
|
|
3676
|
-
ignoreTag:
|
|
3682
|
+
(e, t = k()) => new Mn(e, t, J().formats, {
|
|
3683
|
+
ignoreTag: J().ignoreTag
|
|
3677
3684
|
})
|
|
3678
|
-
),
|
|
3685
|
+
), hi = (e, t = {}) => {
|
|
3679
3686
|
var r, n, i, s;
|
|
3680
3687
|
let o = t;
|
|
3681
3688
|
typeof e == "object" && (o = e, e = o.id);
|
|
3682
3689
|
const {
|
|
3683
3690
|
values: u,
|
|
3684
|
-
locale: h =
|
|
3691
|
+
locale: h = k(),
|
|
3685
3692
|
default: a
|
|
3686
3693
|
} = o;
|
|
3687
3694
|
if (h == null)
|
|
@@ -3690,7 +3697,7 @@ const oe = (e, t) => {
|
|
|
3690
3697
|
);
|
|
3691
3698
|
let l = kt(e, h);
|
|
3692
3699
|
if (!l)
|
|
3693
|
-
l = (s = (i = (n = (r =
|
|
3700
|
+
l = (s = (i = (n = (r = J()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3694
3701
|
else if (typeof l != "string")
|
|
3695
3702
|
return console.warn(
|
|
3696
3703
|
`[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.`
|
|
@@ -3699,7 +3706,7 @@ const oe = (e, t) => {
|
|
|
3699
3706
|
return l;
|
|
3700
3707
|
let c = l;
|
|
3701
3708
|
try {
|
|
3702
|
-
c =
|
|
3709
|
+
c = ui(l, h).format(u);
|
|
3703
3710
|
} catch (f) {
|
|
3704
3711
|
f instanceof Error && console.warn(
|
|
3705
3712
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3707,16 +3714,39 @@ const oe = (e, t) => {
|
|
|
3707
3714
|
);
|
|
3708
3715
|
}
|
|
3709
3716
|
return c;
|
|
3710
|
-
},
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3717
|
+
}, li = (e, t) => ai(t).format(e), fi = (e, t) => oi(t).format(e), ci = (e, t) => si(t).format(e), gi = (e, t = k()) => kt(e, t), mi = K([ee, ue], () => hi);
|
|
3718
|
+
K([ee], () => li);
|
|
3719
|
+
K([ee], () => fi);
|
|
3720
|
+
K([ee], () => ci);
|
|
3721
|
+
K([ee, ue], () => gi);
|
|
3722
|
+
function pi(e, t) {
|
|
3723
|
+
if (e) {
|
|
3724
|
+
const r = document.createElement("style");
|
|
3725
|
+
r.innerHTML = t, e.appendChild(r);
|
|
3726
|
+
}
|
|
3727
|
+
}
|
|
3728
|
+
function di(e, t) {
|
|
3729
|
+
const r = new URL(t);
|
|
3730
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3731
|
+
const i = document.createElement("style");
|
|
3732
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
3733
|
+
}).catch((n) => {
|
|
3734
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
3735
|
+
});
|
|
3736
|
+
}
|
|
3737
|
+
function bi(e, t, r) {
|
|
3738
|
+
if (window.emMessageBus) {
|
|
3739
|
+
const n = document.createElement("style");
|
|
3740
|
+
window.emMessageBus.subscribe(t, (i) => {
|
|
3741
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
3742
|
+
});
|
|
3743
|
+
}
|
|
3744
|
+
}
|
|
3715
3745
|
function pt(e, t) {
|
|
3716
3746
|
Xt(e, t);
|
|
3717
3747
|
}
|
|
3718
|
-
function
|
|
3719
|
-
|
|
3748
|
+
function yi(e) {
|
|
3749
|
+
ee.set(e);
|
|
3720
3750
|
}
|
|
3721
3751
|
const dt = {
|
|
3722
3752
|
en: {
|
|
@@ -3828,314 +3858,301 @@ const dt = {
|
|
|
3828
3858
|
games: "games"
|
|
3829
3859
|
}
|
|
3830
3860
|
};
|
|
3831
|
-
function
|
|
3832
|
-
|
|
3861
|
+
function _i(e) {
|
|
3862
|
+
or(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}");
|
|
3833
3863
|
}
|
|
3834
3864
|
function bt(e, t, r) {
|
|
3835
3865
|
const n = e.slice();
|
|
3836
|
-
return n[
|
|
3866
|
+
return n[23] = t[r], n;
|
|
3837
3867
|
}
|
|
3838
3868
|
function yt(e, t, r) {
|
|
3839
3869
|
const n = e.slice();
|
|
3840
|
-
return n[
|
|
3870
|
+
return n[23] = t[r], n;
|
|
3841
3871
|
}
|
|
3842
|
-
function
|
|
3872
|
+
function Ei(e) {
|
|
3843
3873
|
let t, r, n = (
|
|
3844
3874
|
/*$_*/
|
|
3845
3875
|
e[5]("topCategories") + ""
|
|
3846
3876
|
), i, s, o, u, h = (
|
|
3847
3877
|
/*$_*/
|
|
3848
3878
|
e[5]("otherCategories") + ""
|
|
3849
|
-
), a, l, c =
|
|
3879
|
+
), a, l, c = fe(
|
|
3850
3880
|
/*topCategories*/
|
|
3851
3881
|
e[3]
|
|
3852
3882
|
), f = [];
|
|
3853
3883
|
for (let g = 0; g < c.length; g += 1)
|
|
3854
3884
|
f[g] = _t(yt(e, c, g));
|
|
3855
|
-
let
|
|
3885
|
+
let p = fe(
|
|
3856
3886
|
/*otherCategories*/
|
|
3857
3887
|
e[4]
|
|
3858
|
-
),
|
|
3859
|
-
for (let g = 0; g <
|
|
3860
|
-
|
|
3888
|
+
), d = [];
|
|
3889
|
+
for (let g = 0; g < p.length; g += 1)
|
|
3890
|
+
d[g] = Et(bt(e, p, g));
|
|
3861
3891
|
return {
|
|
3862
3892
|
c() {
|
|
3863
|
-
t =
|
|
3893
|
+
t = w("div"), r = w("h4"), i = U(n), s = R();
|
|
3864
3894
|
for (let g = 0; g < f.length; g += 1)
|
|
3865
3895
|
f[g].c();
|
|
3866
|
-
o = R(), u =
|
|
3867
|
-
for (let g = 0; g <
|
|
3868
|
-
|
|
3896
|
+
o = R(), u = w("h4"), a = U(h), l = R();
|
|
3897
|
+
for (let g = 0; g < d.length; g += 1)
|
|
3898
|
+
d[g].c();
|
|
3869
3899
|
H(r, "class", "CategoryTitle"), H(u, "class", "CategoryTitle"), H(t, "class", "CasinoCategories");
|
|
3870
3900
|
},
|
|
3871
|
-
m(g,
|
|
3872
|
-
|
|
3901
|
+
m(g, x) {
|
|
3902
|
+
Y(g, t, x), v(t, r), v(r, i), v(t, s);
|
|
3873
3903
|
for (let m = 0; m < f.length; m += 1)
|
|
3874
3904
|
f[m] && f[m].m(t, null);
|
|
3875
3905
|
v(t, o), v(t, u), v(u, a), v(t, l);
|
|
3876
|
-
for (let m = 0; m <
|
|
3877
|
-
|
|
3906
|
+
for (let m = 0; m < d.length; m += 1)
|
|
3907
|
+
d[m] && d[m].m(t, null);
|
|
3878
3908
|
},
|
|
3879
|
-
p(g,
|
|
3880
|
-
if (
|
|
3909
|
+
p(g, x) {
|
|
3910
|
+
if (x & /*$_*/
|
|
3881
3911
|
32 && n !== (n = /*$_*/
|
|
3882
|
-
g[5]("topCategories") + "") &&
|
|
3912
|
+
g[5]("topCategories") + "") && G(i, n), x & /*activecategory, topCategories, openGameCategory, $_*/
|
|
3883
3913
|
105) {
|
|
3884
|
-
c =
|
|
3914
|
+
c = fe(
|
|
3885
3915
|
/*topCategories*/
|
|
3886
3916
|
g[3]
|
|
3887
3917
|
);
|
|
3888
3918
|
let m;
|
|
3889
3919
|
for (m = 0; m < c.length; m += 1) {
|
|
3890
|
-
const
|
|
3891
|
-
f[m] ? f[m].p(
|
|
3920
|
+
const C = yt(g, c, m);
|
|
3921
|
+
f[m] ? f[m].p(C, x) : (f[m] = _t(C), f[m].c(), f[m].m(t, o));
|
|
3892
3922
|
}
|
|
3893
3923
|
for (; m < f.length; m += 1)
|
|
3894
3924
|
f[m].d(1);
|
|
3895
3925
|
f.length = c.length;
|
|
3896
3926
|
}
|
|
3897
|
-
if (
|
|
3927
|
+
if (x & /*$_*/
|
|
3898
3928
|
32 && h !== (h = /*$_*/
|
|
3899
|
-
g[5]("otherCategories") + "") &&
|
|
3929
|
+
g[5]("otherCategories") + "") && G(a, h), x & /*activecategory, otherCategories, openGameCategory, $_*/
|
|
3900
3930
|
113) {
|
|
3901
|
-
|
|
3931
|
+
p = fe(
|
|
3902
3932
|
/*otherCategories*/
|
|
3903
3933
|
g[4]
|
|
3904
3934
|
);
|
|
3905
3935
|
let m;
|
|
3906
|
-
for (m = 0; m <
|
|
3907
|
-
const
|
|
3908
|
-
|
|
3936
|
+
for (m = 0; m < p.length; m += 1) {
|
|
3937
|
+
const C = bt(g, p, m);
|
|
3938
|
+
d[m] ? d[m].p(C, x) : (d[m] = Et(C), d[m].c(), d[m].m(t, null));
|
|
3909
3939
|
}
|
|
3910
|
-
for (; m <
|
|
3911
|
-
|
|
3912
|
-
|
|
3940
|
+
for (; m < d.length; m += 1)
|
|
3941
|
+
d[m].d(1);
|
|
3942
|
+
d.length = p.length;
|
|
3913
3943
|
}
|
|
3914
3944
|
},
|
|
3915
3945
|
d(g) {
|
|
3916
|
-
g &&
|
|
3946
|
+
g && j(t), et(f, g), et(d, g);
|
|
3917
3947
|
}
|
|
3918
3948
|
};
|
|
3919
3949
|
}
|
|
3920
|
-
function
|
|
3950
|
+
function xi(e) {
|
|
3921
3951
|
let t;
|
|
3922
3952
|
return {
|
|
3923
3953
|
c() {
|
|
3924
|
-
t =
|
|
3954
|
+
t = w("p"), t.textContent = "Loading, please wait...", H(t, "class", "Message");
|
|
3925
3955
|
},
|
|
3926
3956
|
m(r, n) {
|
|
3927
|
-
|
|
3957
|
+
Y(r, t, n);
|
|
3928
3958
|
},
|
|
3929
|
-
p:
|
|
3959
|
+
p: I,
|
|
3930
3960
|
d(r) {
|
|
3931
|
-
r &&
|
|
3961
|
+
r && j(t);
|
|
3932
3962
|
}
|
|
3933
3963
|
};
|
|
3934
3964
|
}
|
|
3935
3965
|
function _t(e) {
|
|
3936
3966
|
let t, r, n, i, s, o, u, h = (
|
|
3937
3967
|
/*category*/
|
|
3938
|
-
e[
|
|
3968
|
+
e[23].name + ""
|
|
3939
3969
|
), a, l, c, f = (
|
|
3940
3970
|
/*category*/
|
|
3941
|
-
e[
|
|
3942
|
-
),
|
|
3971
|
+
e[23].games.count + ""
|
|
3972
|
+
), p, d, g = (
|
|
3943
3973
|
/*$_*/
|
|
3944
3974
|
e[5]("games") + ""
|
|
3945
|
-
),
|
|
3946
|
-
function
|
|
3975
|
+
), x, m, C, S;
|
|
3976
|
+
function P() {
|
|
3947
3977
|
return (
|
|
3948
3978
|
/*click_handler*/
|
|
3949
|
-
e[
|
|
3979
|
+
e[15](
|
|
3950
3980
|
/*category*/
|
|
3951
|
-
e[
|
|
3981
|
+
e[23]
|
|
3952
3982
|
)
|
|
3953
3983
|
);
|
|
3954
3984
|
}
|
|
3955
3985
|
return {
|
|
3956
3986
|
c() {
|
|
3957
|
-
t =
|
|
3958
|
-
e[
|
|
3959
|
-
e[
|
|
3987
|
+
t = w("div"), r = w("img"), s = R(), o = w("div"), u = w("p"), a = U(h), l = R(), c = w("p"), p = U(f), d = R(), x = U(g), de(r.src, n = /*category*/
|
|
3988
|
+
e[23].icon) || H(r, "src", n), H(r, "alt", i = /*category*/
|
|
3989
|
+
e[23].name), H(r, "class", "CategoryImage"), H(o, "class", "CategoryTextContainer"), H(t, "class", m = "Category " + /*activecategory*/
|
|
3960
3990
|
(e[0] === /*category*/
|
|
3961
|
-
e[
|
|
3991
|
+
e[23].id ? "Active" : ""));
|
|
3962
3992
|
},
|
|
3963
|
-
m(B,
|
|
3964
|
-
|
|
3993
|
+
m(B, A) {
|
|
3994
|
+
Y(B, t, A), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, l), v(o, c), v(c, p), v(c, d), v(c, x), C || (S = Ct(t, "click", P), C = !0);
|
|
3965
3995
|
},
|
|
3966
|
-
p(B,
|
|
3967
|
-
e = B,
|
|
3968
|
-
8 && !
|
|
3969
|
-
e[
|
|
3996
|
+
p(B, A) {
|
|
3997
|
+
e = B, A & /*topCategories*/
|
|
3998
|
+
8 && !de(r.src, n = /*category*/
|
|
3999
|
+
e[23].icon) && H(r, "src", n), A & /*topCategories*/
|
|
3970
4000
|
8 && i !== (i = /*category*/
|
|
3971
|
-
e[
|
|
4001
|
+
e[23].name) && H(r, "alt", i), A & /*topCategories*/
|
|
3972
4002
|
8 && h !== (h = /*category*/
|
|
3973
|
-
e[
|
|
4003
|
+
e[23].name + "") && G(a, h), A & /*topCategories*/
|
|
3974
4004
|
8 && f !== (f = /*category*/
|
|
3975
|
-
e[
|
|
4005
|
+
e[23].games.count + "") && G(p, f), A & /*$_*/
|
|
3976
4006
|
32 && g !== (g = /*$_*/
|
|
3977
|
-
e[5]("games") + "") &&
|
|
4007
|
+
e[5]("games") + "") && G(x, g), A & /*activecategory, topCategories*/
|
|
3978
4008
|
9 && m !== (m = "Category " + /*activecategory*/
|
|
3979
4009
|
(e[0] === /*category*/
|
|
3980
|
-
e[
|
|
4010
|
+
e[23].id ? "Active" : "")) && H(t, "class", m);
|
|
3981
4011
|
},
|
|
3982
4012
|
d(B) {
|
|
3983
|
-
B &&
|
|
4013
|
+
B && j(t), C = !1, S();
|
|
3984
4014
|
}
|
|
3985
4015
|
};
|
|
3986
4016
|
}
|
|
3987
|
-
function
|
|
4017
|
+
function Et(e) {
|
|
3988
4018
|
let t, r, n, i, s, o, u, h = (
|
|
3989
4019
|
/*category*/
|
|
3990
|
-
e[
|
|
4020
|
+
e[23].name + ""
|
|
3991
4021
|
), a, l, c, f = (
|
|
3992
4022
|
/*category*/
|
|
3993
|
-
e[
|
|
3994
|
-
),
|
|
4023
|
+
e[23].games.count + ""
|
|
4024
|
+
), p, d, g = (
|
|
3995
4025
|
/*$_*/
|
|
3996
4026
|
e[5]("games") + ""
|
|
3997
|
-
),
|
|
4027
|
+
), x, m, C, S, P;
|
|
3998
4028
|
function B() {
|
|
3999
4029
|
return (
|
|
4000
4030
|
/*click_handler_1*/
|
|
4001
|
-
e[
|
|
4031
|
+
e[16](
|
|
4002
4032
|
/*category*/
|
|
4003
|
-
e[
|
|
4033
|
+
e[23]
|
|
4004
4034
|
)
|
|
4005
4035
|
);
|
|
4006
4036
|
}
|
|
4007
4037
|
return {
|
|
4008
4038
|
c() {
|
|
4009
|
-
t =
|
|
4010
|
-
e[
|
|
4011
|
-
e[
|
|
4039
|
+
t = w("div"), r = w("img"), s = R(), o = w("div"), u = w("p"), a = U(h), l = R(), c = w("p"), p = U(f), d = R(), x = U(g), m = R(), de(r.src, n = /*category*/
|
|
4040
|
+
e[23].icon) || H(r, "src", n), H(r, "alt", i = /*category*/
|
|
4041
|
+
e[23].name), H(r, "class", "CategoryImage"), H(o, "class", "CategoryTextContainer"), H(t, "class", C = "Category " + /*activecategory*/
|
|
4012
4042
|
(e[0] === /*category*/
|
|
4013
|
-
e[
|
|
4043
|
+
e[23].id ? "Active" : ""));
|
|
4014
4044
|
},
|
|
4015
|
-
m(
|
|
4016
|
-
|
|
4045
|
+
m(A, N) {
|
|
4046
|
+
Y(A, t, N), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, l), v(o, c), v(c, p), v(c, d), v(c, x), v(t, m), S || (P = Ct(t, "click", B), S = !0);
|
|
4017
4047
|
},
|
|
4018
|
-
p(
|
|
4019
|
-
e =
|
|
4020
|
-
16 && !
|
|
4021
|
-
e[
|
|
4048
|
+
p(A, N) {
|
|
4049
|
+
e = A, N & /*otherCategories*/
|
|
4050
|
+
16 && !de(r.src, n = /*category*/
|
|
4051
|
+
e[23].icon) && H(r, "src", n), N & /*otherCategories*/
|
|
4022
4052
|
16 && i !== (i = /*category*/
|
|
4023
|
-
e[
|
|
4053
|
+
e[23].name) && H(r, "alt", i), N & /*otherCategories*/
|
|
4024
4054
|
16 && h !== (h = /*category*/
|
|
4025
|
-
e[
|
|
4055
|
+
e[23].name + "") && G(a, h), N & /*otherCategories*/
|
|
4026
4056
|
16 && f !== (f = /*category*/
|
|
4027
|
-
e[
|
|
4057
|
+
e[23].games.count + "") && G(p, f), N & /*$_*/
|
|
4028
4058
|
32 && g !== (g = /*$_*/
|
|
4029
|
-
e[5]("games") + "") &&
|
|
4030
|
-
17 &&
|
|
4059
|
+
e[5]("games") + "") && G(x, g), N & /*activecategory, otherCategories*/
|
|
4060
|
+
17 && C !== (C = "Category " + /*activecategory*/
|
|
4031
4061
|
(e[0] === /*category*/
|
|
4032
|
-
e[
|
|
4062
|
+
e[23].id ? "Active" : "")) && H(t, "class", C);
|
|
4033
4063
|
},
|
|
4034
|
-
d(
|
|
4035
|
-
|
|
4064
|
+
d(A) {
|
|
4065
|
+
A && j(t), S = !1, P();
|
|
4036
4066
|
}
|
|
4037
4067
|
};
|
|
4038
4068
|
}
|
|
4039
|
-
function
|
|
4069
|
+
function vi(e) {
|
|
4040
4070
|
let t;
|
|
4041
4071
|
function r(s, o) {
|
|
4042
4072
|
return (
|
|
4043
4073
|
/*isLoading*/
|
|
4044
|
-
s[2] ?
|
|
4074
|
+
s[2] ? xi : Ei
|
|
4045
4075
|
);
|
|
4046
4076
|
}
|
|
4047
4077
|
let n = r(e), i = n(e);
|
|
4048
4078
|
return {
|
|
4049
4079
|
c() {
|
|
4050
|
-
t =
|
|
4080
|
+
t = w("div"), i.c();
|
|
4051
4081
|
},
|
|
4052
4082
|
m(s, o) {
|
|
4053
|
-
|
|
4083
|
+
Y(s, t, o), i.m(t, null), e[17](t);
|
|
4054
4084
|
},
|
|
4055
4085
|
p(s, [o]) {
|
|
4056
4086
|
n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
|
|
4057
4087
|
},
|
|
4058
|
-
i:
|
|
4059
|
-
o:
|
|
4088
|
+
i: I,
|
|
4089
|
+
o: I,
|
|
4060
4090
|
d(s) {
|
|
4061
|
-
s &&
|
|
4091
|
+
s && j(t), i.d(), e[17](null);
|
|
4062
4092
|
}
|
|
4063
4093
|
};
|
|
4064
4094
|
}
|
|
4065
|
-
function
|
|
4095
|
+
function Ti(e, t, r) {
|
|
4066
4096
|
let n;
|
|
4067
|
-
|
|
4068
|
-
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, f, d = !1;
|
|
4069
|
-
const
|
|
4070
|
-
let
|
|
4097
|
+
sr(e, mi, (b) => r(5, n = b));
|
|
4098
|
+
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, p, d = !1;
|
|
4099
|
+
const g = [];
|
|
4100
|
+
let x = [], m = [];
|
|
4071
4101
|
Object.keys(dt).forEach((b) => {
|
|
4072
4102
|
pt(b, dt[b]);
|
|
4073
4103
|
});
|
|
4074
|
-
const
|
|
4075
|
-
fetch(c).then((
|
|
4076
|
-
Object.keys(
|
|
4077
|
-
pt(
|
|
4104
|
+
const C = () => {
|
|
4105
|
+
fetch(c).then(($) => $.json()).then(($) => {
|
|
4106
|
+
Object.keys($).forEach((he) => {
|
|
4107
|
+
pt(he, $[he]);
|
|
4078
4108
|
});
|
|
4079
|
-
}).catch((
|
|
4080
|
-
console.log(
|
|
4109
|
+
}).catch(($) => {
|
|
4110
|
+
console.log($);
|
|
4081
4111
|
});
|
|
4082
|
-
},
|
|
4112
|
+
}, S = () => {
|
|
4083
4113
|
r(2, d = !0);
|
|
4084
4114
|
const b = new URL(`${i}/v1/casino/groups/${s}`);
|
|
4085
|
-
b.searchParams.append("language", o), fetch(b).then((
|
|
4115
|
+
b.searchParams.append("language", o), fetch(b).then(($) => $.json()).then(($) => {
|
|
4086
4116
|
r(2, d = !1);
|
|
4087
|
-
const
|
|
4088
|
-
|
|
4089
|
-
const We =
|
|
4117
|
+
const he = h.split(",").map((F) => F.trim());
|
|
4118
|
+
g.push(...$.items);
|
|
4119
|
+
const We = g.filter((F) => !he.some((Yt) => {
|
|
4090
4120
|
var Ze;
|
|
4091
|
-
return ((Ze =
|
|
4121
|
+
return ((Ze = F.flags) == null ? void 0 : Ze.indexOf(Yt)) >= 0;
|
|
4092
4122
|
}));
|
|
4093
|
-
r(3,
|
|
4123
|
+
r(3, x = We.filter((F) => F.isTopCategory === !0)), r(4, m = We.filter((F) => F.isTopCategory === !1));
|
|
4094
4124
|
});
|
|
4095
|
-
},
|
|
4125
|
+
}, P = (b) => {
|
|
4096
4126
|
window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
|
|
4097
|
-
}, L = () => {
|
|
4098
|
-
mi(o);
|
|
4099
4127
|
}, B = () => {
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
},
|
|
4109
|
-
1
|
|
4110
|
-
), setTimeout(
|
|
4111
|
-
() => {
|
|
4112
|
-
},
|
|
4113
|
-
500
|
|
4114
|
-
);
|
|
4115
|
-
});
|
|
4116
|
-
}, w = (b) => A(b.id), Jt = (b) => A(b.id);
|
|
4117
|
-
function Yt(b) {
|
|
4118
|
-
we[b ? "unshift" : "push"](() => {
|
|
4119
|
-
f = b, r(1, f);
|
|
4128
|
+
yi(o);
|
|
4129
|
+
};
|
|
4130
|
+
cr(() => () => {
|
|
4131
|
+
});
|
|
4132
|
+
const A = (b) => P(b.id), N = (b) => P(b.id);
|
|
4133
|
+
function Jt(b) {
|
|
4134
|
+
Ne[b ? "unshift" : "push"](() => {
|
|
4135
|
+
p = b, r(1, p);
|
|
4120
4136
|
});
|
|
4121
4137
|
}
|
|
4122
4138
|
return e.$$set = (b) => {
|
|
4123
|
-
"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);
|
|
4139
|
+
"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);
|
|
4124
4140
|
}, e.$$.update = () => {
|
|
4125
4141
|
e.$$.dirty & /*endpoint, datasource*/
|
|
4126
|
-
384 && i && s &&
|
|
4127
|
-
8192 && c &&
|
|
4128
|
-
512 && o &&
|
|
4129
|
-
2050 && a &&
|
|
4130
|
-
4098 && l &&
|
|
4142
|
+
384 && i && s && S(), e.$$.dirty & /*translationurl*/
|
|
4143
|
+
8192 && c && C(), e.$$.dirty & /*lang*/
|
|
4144
|
+
512 && o && B(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4145
|
+
2050 && a && p && pi(p, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4146
|
+
4098 && l && p && di(p, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4147
|
+
16386 && f && p && bi(p, `${f}.Style`);
|
|
4131
4148
|
}, [
|
|
4132
4149
|
u,
|
|
4133
|
-
|
|
4150
|
+
p,
|
|
4134
4151
|
d,
|
|
4135
|
-
|
|
4136
|
-
|
|
4152
|
+
x,
|
|
4153
|
+
m,
|
|
4137
4154
|
n,
|
|
4138
|
-
|
|
4155
|
+
P,
|
|
4139
4156
|
i,
|
|
4140
4157
|
s,
|
|
4141
4158
|
o,
|
|
@@ -4143,18 +4160,19 @@ function _i(e, t, r) {
|
|
|
4143
4160
|
a,
|
|
4144
4161
|
l,
|
|
4145
4162
|
c,
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4163
|
+
f,
|
|
4164
|
+
A,
|
|
4165
|
+
N,
|
|
4166
|
+
Jt
|
|
4149
4167
|
];
|
|
4150
4168
|
}
|
|
4151
4169
|
class qt extends Cr {
|
|
4152
4170
|
constructor(t) {
|
|
4153
|
-
super(),
|
|
4171
|
+
super(), vr(
|
|
4154
4172
|
this,
|
|
4155
4173
|
t,
|
|
4156
|
-
|
|
4157
|
-
|
|
4174
|
+
Ti,
|
|
4175
|
+
vi,
|
|
4158
4176
|
vt,
|
|
4159
4177
|
{
|
|
4160
4178
|
endpoint: 7,
|
|
@@ -4164,92 +4182,103 @@ class qt extends Cr {
|
|
|
4164
4182
|
excludedflags: 10,
|
|
4165
4183
|
clientstyling: 11,
|
|
4166
4184
|
clientstylingurl: 12,
|
|
4167
|
-
translationurl: 13
|
|
4185
|
+
translationurl: 13,
|
|
4186
|
+
mbsource: 14
|
|
4168
4187
|
},
|
|
4169
|
-
|
|
4188
|
+
_i
|
|
4170
4189
|
);
|
|
4171
4190
|
}
|
|
4172
4191
|
get endpoint() {
|
|
4173
4192
|
return this.$$.ctx[7];
|
|
4174
4193
|
}
|
|
4175
4194
|
set endpoint(t) {
|
|
4176
|
-
this.$$set({ endpoint: t }),
|
|
4195
|
+
this.$$set({ endpoint: t }), M();
|
|
4177
4196
|
}
|
|
4178
4197
|
get datasource() {
|
|
4179
4198
|
return this.$$.ctx[8];
|
|
4180
4199
|
}
|
|
4181
4200
|
set datasource(t) {
|
|
4182
|
-
this.$$set({ datasource: t }),
|
|
4201
|
+
this.$$set({ datasource: t }), M();
|
|
4183
4202
|
}
|
|
4184
4203
|
get lang() {
|
|
4185
4204
|
return this.$$.ctx[9];
|
|
4186
4205
|
}
|
|
4187
4206
|
set lang(t) {
|
|
4188
|
-
this.$$set({ lang: t }),
|
|
4207
|
+
this.$$set({ lang: t }), M();
|
|
4189
4208
|
}
|
|
4190
4209
|
get activecategory() {
|
|
4191
4210
|
return this.$$.ctx[0];
|
|
4192
4211
|
}
|
|
4193
4212
|
set activecategory(t) {
|
|
4194
|
-
this.$$set({ activecategory: t }),
|
|
4213
|
+
this.$$set({ activecategory: t }), M();
|
|
4195
4214
|
}
|
|
4196
4215
|
get excludedflags() {
|
|
4197
4216
|
return this.$$.ctx[10];
|
|
4198
4217
|
}
|
|
4199
4218
|
set excludedflags(t) {
|
|
4200
|
-
this.$$set({ excludedflags: t }),
|
|
4219
|
+
this.$$set({ excludedflags: t }), M();
|
|
4201
4220
|
}
|
|
4202
4221
|
get clientstyling() {
|
|
4203
4222
|
return this.$$.ctx[11];
|
|
4204
4223
|
}
|
|
4205
4224
|
set clientstyling(t) {
|
|
4206
|
-
this.$$set({ clientstyling: t }),
|
|
4225
|
+
this.$$set({ clientstyling: t }), M();
|
|
4207
4226
|
}
|
|
4208
4227
|
get clientstylingurl() {
|
|
4209
4228
|
return this.$$.ctx[12];
|
|
4210
4229
|
}
|
|
4211
4230
|
set clientstylingurl(t) {
|
|
4212
|
-
this.$$set({ clientstylingurl: t }),
|
|
4231
|
+
this.$$set({ clientstylingurl: t }), M();
|
|
4213
4232
|
}
|
|
4214
4233
|
get translationurl() {
|
|
4215
4234
|
return this.$$.ctx[13];
|
|
4216
4235
|
}
|
|
4217
4236
|
set translationurl(t) {
|
|
4218
|
-
this.$$set({ translationurl: t }),
|
|
4237
|
+
this.$$set({ translationurl: t }), M();
|
|
4238
|
+
}
|
|
4239
|
+
get mbsource() {
|
|
4240
|
+
return this.$$.ctx[14];
|
|
4241
|
+
}
|
|
4242
|
+
set mbsource(t) {
|
|
4243
|
+
this.$$set({ mbsource: t }), M();
|
|
4219
4244
|
}
|
|
4220
4245
|
}
|
|
4221
|
-
|
|
4222
|
-
const
|
|
4246
|
+
Tr(qt, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4247
|
+
const Si = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4223
4248
|
__proto__: null,
|
|
4224
4249
|
default: qt
|
|
4225
4250
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4226
4251
|
export {
|
|
4227
|
-
|
|
4228
|
-
|
|
4252
|
+
ee as $,
|
|
4253
|
+
et as A,
|
|
4254
|
+
Hi as B,
|
|
4255
|
+
de as C,
|
|
4256
|
+
Si as D,
|
|
4229
4257
|
Cr as S,
|
|
4230
4258
|
Xt as a,
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4259
|
+
or as b,
|
|
4260
|
+
Tr as c,
|
|
4261
|
+
j as d,
|
|
4262
|
+
G as e,
|
|
4263
|
+
M as f,
|
|
4236
4264
|
H as g,
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4265
|
+
Ai as h,
|
|
4266
|
+
vr as i,
|
|
4267
|
+
Y as j,
|
|
4240
4268
|
v as k,
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4269
|
+
Ct as l,
|
|
4270
|
+
w as m,
|
|
4271
|
+
I as n,
|
|
4244
4272
|
R as o,
|
|
4245
|
-
|
|
4246
|
-
|
|
4273
|
+
sr as p,
|
|
4274
|
+
cr as q,
|
|
4247
4275
|
ae as r,
|
|
4248
4276
|
vt as s,
|
|
4249
4277
|
U as t,
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4278
|
+
Ne as u,
|
|
4279
|
+
mi as v,
|
|
4280
|
+
pi as w,
|
|
4281
|
+
di as x,
|
|
4282
|
+
bi as y,
|
|
4283
|
+
fe as z
|
|
4255
4284
|
};
|