@everymatrix/casino-most-played-section 1.45.0 → 1.45.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CasinoFilter-DvwXHWZ_.cjs +5 -0
- package/components/{CasinoFilter-BA6RsRdQ.js → CasinoFilter-H10ltJK5.js} +884 -888
- package/components/CasinoGameThumbnail-DrVUJm90.cjs +47 -0
- package/components/CasinoGameThumbnail-Rw5tSb-a.js +4404 -0
- package/components/CasinoGamesCategorySection-BAaZoBNZ.cjs +1 -0
- package/components/CasinoGamesCategorySection-DA91MEdW.js +3018 -0
- package/components/{CasinoMostPlayedSection-DItMviDj.js → CasinoMostPlayedSection-BvugFrhs.js} +78 -78
- package/components/CasinoMostPlayedSection-lRTCHR6P.cjs +1 -0
- package/components/CasinoSort-B9WD46q7.js +425 -0
- package/components/CasinoSort-CKushhWB.cjs +1 -0
- package/es2015/casino-most-played-section.cjs +1 -1
- package/es2015/casino-most-played-section.js +1 -1
- package/package.json +2 -2
- package/components/CasinoFilter-BcZN9Fwc.cjs +0 -5
- package/components/CasinoGameThumbnail-DP_N0Utt.js +0 -4404
- package/components/CasinoGameThumbnail-KSNIbeh_.cjs +0 -47
- package/components/CasinoGamesCategorySection-BqPidgQt.js +0 -3022
- package/components/CasinoGamesCategorySection-C-EDsc7x.cjs +0 -1
- package/components/CasinoMostPlayedSection-Dh2nzc19.cjs +0 -1
- package/components/CasinoSort-Cj2B7na1.cjs +0 -1
- package/components/CasinoSort-D-ElrcU-.js +0 -425
@@ -1,78 +1,75 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var
|
4
|
-
var
|
5
|
-
var
|
1
|
+
var Gr = Object.defineProperty, kr = Object.defineProperties;
|
2
|
+
var jr = Object.getOwnPropertyDescriptors;
|
3
|
+
var St = Object.getOwnPropertySymbols;
|
4
|
+
var Vr = Object.prototype.hasOwnProperty, Xr = Object.prototype.propertyIsEnumerable;
|
5
|
+
var We = (e, t, r) => t in e ? Gr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, wt = (e, t) => {
|
6
6
|
for (var r in t || (t = {}))
|
7
|
-
|
8
|
-
if (
|
9
|
-
for (var r of
|
10
|
-
|
7
|
+
Vr.call(t, r) && We(e, r, t[r]);
|
8
|
+
if (St)
|
9
|
+
for (var r of St(t))
|
10
|
+
Xr.call(t, r) && We(e, r, t[r]);
|
11
11
|
return e;
|
12
|
-
},
|
13
|
-
var
|
14
|
-
var
|
15
|
-
var
|
12
|
+
}, Tt = (e, t) => kr(e, jr(t));
|
13
|
+
var O = (e, t, r) => We(e, typeof t != "symbol" ? t + "" : t, r);
|
14
|
+
var Ht = (e, t, r) => new Promise((n, i) => {
|
15
|
+
var o = (u) => {
|
16
16
|
try {
|
17
17
|
a(r.next(u));
|
18
18
|
} catch (l) {
|
19
19
|
i(l);
|
20
20
|
}
|
21
|
-
},
|
21
|
+
}, s = (u) => {
|
22
22
|
try {
|
23
23
|
a(r.throw(u));
|
24
24
|
} catch (l) {
|
25
25
|
i(l);
|
26
26
|
}
|
27
|
-
}, a = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(
|
27
|
+
}, a = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(o, s);
|
28
28
|
a((r = r.apply(e, t)).next());
|
29
29
|
});
|
30
|
-
function
|
30
|
+
function $() {
|
31
31
|
}
|
32
32
|
function rr(e) {
|
33
33
|
return e();
|
34
34
|
}
|
35
|
-
function
|
35
|
+
function At() {
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
37
37
|
}
|
38
38
|
function te(e) {
|
39
39
|
e.forEach(rr);
|
40
40
|
}
|
41
|
-
function
|
41
|
+
function gt(e) {
|
42
42
|
return typeof e == "function";
|
43
43
|
}
|
44
44
|
function nr(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 Fe;
|
48
|
+
function Pt(e, t) {
|
49
|
+
return e === t ? !0 : (Fe || (Fe = document.createElement("a")), Fe.href = t, e === Fe.href);
|
50
50
|
}
|
51
|
-
function
|
51
|
+
function Wr(e) {
|
52
52
|
return Object.keys(e).length === 0;
|
53
53
|
}
|
54
54
|
function ir(e, ...t) {
|
55
55
|
if (e == null) {
|
56
56
|
for (const n of t)
|
57
57
|
n(void 0);
|
58
|
-
return
|
58
|
+
return $;
|
59
59
|
}
|
60
60
|
const r = e.subscribe(...t);
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
62
62
|
}
|
63
|
-
function
|
63
|
+
function zr(e, t, r) {
|
64
64
|
e.$$.on_destroy.push(ir(t, r));
|
65
65
|
}
|
66
|
-
function Hs(e) {
|
67
|
-
return e == null ? "" : e;
|
68
|
-
}
|
69
66
|
function b(e, t) {
|
70
67
|
e.appendChild(t);
|
71
68
|
}
|
72
69
|
function Zr(e, t, r) {
|
73
70
|
const n = Jr(e);
|
74
71
|
if (!n.getElementById(t)) {
|
75
|
-
const i =
|
72
|
+
const i = C("style");
|
76
73
|
i.id = t, i.textContent = r, Qr(n, i);
|
77
74
|
}
|
78
75
|
}
|
@@ -92,38 +89,38 @@ function Qr(e, t) {
|
|
92
89
|
t
|
93
90
|
), t.sheet;
|
94
91
|
}
|
95
|
-
function
|
92
|
+
function j(e, t, r) {
|
96
93
|
e.insertBefore(t, r || null);
|
97
94
|
}
|
98
|
-
function
|
95
|
+
function U(e) {
|
99
96
|
e.parentNode && e.parentNode.removeChild(e);
|
100
97
|
}
|
101
98
|
function qr(e, t) {
|
102
99
|
for (let r = 0; r < e.length; r += 1)
|
103
100
|
e[r] && e[r].d(t);
|
104
101
|
}
|
105
|
-
function
|
102
|
+
function C(e) {
|
106
103
|
return document.createElement(e);
|
107
104
|
}
|
108
105
|
function Ee(e) {
|
109
106
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
110
107
|
}
|
111
|
-
function
|
108
|
+
function D(e) {
|
112
109
|
return document.createTextNode(e);
|
113
110
|
}
|
114
|
-
function
|
115
|
-
return
|
111
|
+
function k() {
|
112
|
+
return D(" ");
|
116
113
|
}
|
117
|
-
function
|
118
|
-
return
|
114
|
+
function Po() {
|
115
|
+
return D("");
|
119
116
|
}
|
120
|
-
function
|
117
|
+
function De(e, t, r, n) {
|
121
118
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
122
119
|
}
|
123
120
|
function m(e, t, r) {
|
124
121
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
125
122
|
}
|
126
|
-
function
|
123
|
+
function Co(e, t, r) {
|
127
124
|
const n = t.toLowerCase();
|
128
125
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : m(e, t, r);
|
129
126
|
}
|
@@ -134,27 +131,27 @@ function Q(e, t) {
|
|
134
131
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
135
132
|
t);
|
136
133
|
}
|
137
|
-
function
|
134
|
+
function Ct(e, t) {
|
138
135
|
e.value = t == null ? "" : t;
|
139
136
|
}
|
140
|
-
function
|
137
|
+
function Bo(e, t, r) {
|
141
138
|
e.classList.toggle(t, !!r);
|
142
139
|
}
|
143
|
-
class
|
140
|
+
class Fo {
|
144
141
|
constructor(t = !1) {
|
145
142
|
/**
|
146
143
|
* @private
|
147
144
|
* @default false
|
148
145
|
*/
|
149
|
-
|
146
|
+
O(this, "is_svg", !1);
|
150
147
|
/** parent for creating node */
|
151
|
-
|
148
|
+
O(this, "e");
|
152
149
|
/** html tag nodes */
|
153
|
-
|
150
|
+
O(this, "n");
|
154
151
|
/** target */
|
155
|
-
|
152
|
+
O(this, "t");
|
156
153
|
/** anchor */
|
157
|
-
|
154
|
+
O(this, "a");
|
158
155
|
this.is_svg = t, this.e = this.n = null;
|
159
156
|
}
|
160
157
|
/**
|
@@ -174,7 +171,7 @@ class Bs {
|
|
174
171
|
this.e || (this.is_svg ? this.e = Ee(
|
175
172
|
/** @type {keyof SVGElementTagNameMap} */
|
176
173
|
r.nodeName
|
177
|
-
) : this.e =
|
174
|
+
) : this.e = C(
|
178
175
|
/** @type {keyof HTMLElementTagNameMap} */
|
179
176
|
r.nodeType === 11 ? "TEMPLATE" : r.nodeName
|
180
177
|
), this.t = r.tagName !== "TEMPLATE" ? r : (
|
@@ -195,7 +192,7 @@ class Bs {
|
|
195
192
|
* @returns {void} */
|
196
193
|
i(t) {
|
197
194
|
for (let r = 0; r < this.n.length; r += 1)
|
198
|
-
|
195
|
+
j(this.t, this.n[r], t);
|
199
196
|
}
|
200
197
|
/**
|
201
198
|
* @param {string} html
|
@@ -207,7 +204,7 @@ class Bs {
|
|
207
204
|
/**
|
208
205
|
* @returns {void} */
|
209
206
|
d() {
|
210
|
-
this.n.forEach(
|
207
|
+
this.n.forEach(U);
|
211
208
|
}
|
212
209
|
}
|
213
210
|
function Kr(e) {
|
@@ -219,55 +216,55 @@ function Kr(e) {
|
|
219
216
|
}
|
220
217
|
), t;
|
221
218
|
}
|
222
|
-
let
|
223
|
-
function
|
224
|
-
|
219
|
+
let we;
|
220
|
+
function Se(e) {
|
221
|
+
we = e;
|
225
222
|
}
|
226
223
|
function en() {
|
227
|
-
if (!
|
228
|
-
return
|
224
|
+
if (!we) throw new Error("Function called outside component initialization");
|
225
|
+
return we;
|
229
226
|
}
|
230
227
|
function tn(e) {
|
231
228
|
en().$$.on_mount.push(e);
|
232
229
|
}
|
233
230
|
const ce = [], tt = [];
|
234
231
|
let fe = [];
|
235
|
-
const
|
232
|
+
const Bt = [], or = /* @__PURE__ */ Promise.resolve();
|
236
233
|
let rt = !1;
|
237
|
-
function
|
238
|
-
rt || (rt = !0,
|
234
|
+
function sr() {
|
235
|
+
rt || (rt = !0, or.then(R));
|
239
236
|
}
|
240
|
-
function
|
241
|
-
return
|
237
|
+
function Oo() {
|
238
|
+
return sr(), or;
|
242
239
|
}
|
243
240
|
function nt(e) {
|
244
241
|
fe.push(e);
|
245
242
|
}
|
246
|
-
const
|
243
|
+
const ze = /* @__PURE__ */ new Set();
|
247
244
|
let ue = 0;
|
248
|
-
function
|
245
|
+
function R() {
|
249
246
|
if (ue !== 0)
|
250
247
|
return;
|
251
|
-
const e =
|
248
|
+
const e = we;
|
252
249
|
do {
|
253
250
|
try {
|
254
251
|
for (; ue < ce.length; ) {
|
255
252
|
const t = ce[ue];
|
256
|
-
ue++,
|
253
|
+
ue++, Se(t), rn(t.$$);
|
257
254
|
}
|
258
255
|
} catch (t) {
|
259
256
|
throw ce.length = 0, ue = 0, t;
|
260
257
|
}
|
261
|
-
for (
|
258
|
+
for (Se(null), ce.length = 0, ue = 0; tt.length; ) tt.pop()();
|
262
259
|
for (let t = 0; t < fe.length; t += 1) {
|
263
260
|
const r = fe[t];
|
264
|
-
|
261
|
+
ze.has(r) || (ze.add(r), r());
|
265
262
|
}
|
266
263
|
fe.length = 0;
|
267
264
|
} while (ce.length);
|
268
|
-
for (;
|
269
|
-
|
270
|
-
rt = !1,
|
265
|
+
for (; Bt.length; )
|
266
|
+
Bt.pop()();
|
267
|
+
rt = !1, ze.clear(), Se(e);
|
271
268
|
}
|
272
269
|
function rn(e) {
|
273
270
|
if (e.fragment !== null) {
|
@@ -280,18 +277,18 @@ function nn(e) {
|
|
280
277
|
const t = [], r = [];
|
281
278
|
fe.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), fe = t;
|
282
279
|
}
|
283
|
-
const
|
284
|
-
function
|
285
|
-
e && e.i && (
|
280
|
+
const on = /* @__PURE__ */ new Set();
|
281
|
+
function sn(e, t) {
|
282
|
+
e && e.i && (on.delete(e), e.i(t));
|
286
283
|
}
|
287
|
-
function
|
284
|
+
function Ft(e) {
|
288
285
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
289
286
|
}
|
290
287
|
function an(e, t, r) {
|
291
288
|
const { fragment: n, after_update: i } = e.$$;
|
292
289
|
n && n.m(t, r), nt(() => {
|
293
|
-
const
|
294
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
290
|
+
const o = e.$$.on_mount.map(rr).filter(gt);
|
291
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : te(o), e.$$.on_mount = [];
|
295
292
|
}), i.forEach(nt);
|
296
293
|
}
|
297
294
|
function ln(e, t) {
|
@@ -299,19 +296,19 @@ function ln(e, t) {
|
|
299
296
|
r.fragment !== null && (nn(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
300
297
|
}
|
301
298
|
function un(e, t) {
|
302
|
-
e.$$.dirty[0] === -1 && (ce.push(e),
|
299
|
+
e.$$.dirty[0] === -1 && (ce.push(e), sr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
303
300
|
}
|
304
|
-
function hn(e, t, r, n, i,
|
305
|
-
const u =
|
306
|
-
|
301
|
+
function hn(e, t, r, n, i, o, s = null, a = [-1]) {
|
302
|
+
const u = we;
|
303
|
+
Se(e);
|
307
304
|
const l = e.$$ = {
|
308
305
|
fragment: null,
|
309
306
|
ctx: [],
|
310
307
|
// state
|
311
|
-
props:
|
312
|
-
update:
|
308
|
+
props: o,
|
309
|
+
update: $,
|
313
310
|
not_equal: i,
|
314
|
-
bound:
|
311
|
+
bound: At(),
|
315
312
|
// lifecycle
|
316
313
|
on_mount: [],
|
317
314
|
on_destroy: [],
|
@@ -320,48 +317,48 @@ function hn(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
320
317
|
after_update: [],
|
321
318
|
context: new Map(t.context || (u ? u.$$.context : [])),
|
322
319
|
// everything else
|
323
|
-
callbacks:
|
320
|
+
callbacks: At(),
|
324
321
|
dirty: a,
|
325
322
|
skip_bound: !1,
|
326
323
|
root: t.target || u.$$.root
|
327
324
|
};
|
328
|
-
|
325
|
+
s && s(l.root);
|
329
326
|
let h = !1;
|
330
|
-
if (l.ctx = r ? r(e, t.props || {}, (p, f, ...
|
331
|
-
const
|
332
|
-
return l.ctx && i(l.ctx[p], l.ctx[p] =
|
327
|
+
if (l.ctx = r ? r(e, t.props || {}, (p, f, ...g) => {
|
328
|
+
const y = g.length ? g[0] : f;
|
329
|
+
return l.ctx && i(l.ctx[p], l.ctx[p] = y) && (!l.skip_bound && l.bound[p] && l.bound[p](y), h && un(e, p)), f;
|
333
330
|
}) : [], l.update(), h = !0, te(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
334
331
|
if (t.hydrate) {
|
335
332
|
const p = Yr(t.target);
|
336
|
-
l.fragment && l.fragment.l(p), p.forEach(
|
333
|
+
l.fragment && l.fragment.l(p), p.forEach(U);
|
337
334
|
} else
|
338
335
|
l.fragment && l.fragment.c();
|
339
|
-
t.intro &&
|
336
|
+
t.intro && sn(e.$$.fragment), an(e, t.target, t.anchor), R();
|
340
337
|
}
|
341
|
-
|
338
|
+
Se(u);
|
342
339
|
}
|
343
340
|
let ar;
|
344
341
|
typeof HTMLElement == "function" && (ar = class extends HTMLElement {
|
345
342
|
constructor(t, r, n) {
|
346
343
|
super();
|
347
344
|
/** The Svelte component constructor */
|
348
|
-
|
345
|
+
O(this, "$$ctor");
|
349
346
|
/** Slots */
|
350
|
-
|
347
|
+
O(this, "$$s");
|
351
348
|
/** The Svelte component instance */
|
352
|
-
|
349
|
+
O(this, "$$c");
|
353
350
|
/** Whether or not the custom element is connected */
|
354
|
-
|
351
|
+
O(this, "$$cn", !1);
|
355
352
|
/** Component props data */
|
356
|
-
|
353
|
+
O(this, "$$d", {});
|
357
354
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
358
|
-
|
355
|
+
O(this, "$$r", !1);
|
359
356
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
360
|
-
|
357
|
+
O(this, "$$p_d", {});
|
361
358
|
/** @type {Record<string, Function[]>} Event listeners */
|
362
|
-
|
359
|
+
O(this, "$$l", {});
|
363
360
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
364
|
-
|
361
|
+
O(this, "$$l_u", /* @__PURE__ */ new Map());
|
365
362
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
366
363
|
}
|
367
364
|
addEventListener(t, r, n) {
|
@@ -378,24 +375,24 @@ typeof HTMLElement == "function" && (ar = class extends HTMLElement {
|
|
378
375
|
}
|
379
376
|
}
|
380
377
|
connectedCallback() {
|
381
|
-
return
|
378
|
+
return Ht(this, null, function* () {
|
382
379
|
if (this.$$cn = !0, !this.$$c) {
|
383
|
-
let t = function(
|
380
|
+
let t = function(o) {
|
384
381
|
return () => {
|
385
|
-
let
|
382
|
+
let s;
|
386
383
|
return {
|
387
384
|
c: function() {
|
388
|
-
|
385
|
+
s = C("slot"), o !== "default" && m(s, "name", o);
|
389
386
|
},
|
390
387
|
/**
|
391
388
|
* @param {HTMLElement} target
|
392
389
|
* @param {HTMLElement} [anchor]
|
393
390
|
*/
|
394
391
|
m: function(l, h) {
|
395
|
-
|
392
|
+
j(l, s, h);
|
396
393
|
},
|
397
394
|
d: function(l) {
|
398
|
-
l &&
|
395
|
+
l && U(s);
|
399
396
|
}
|
400
397
|
};
|
401
398
|
};
|
@@ -403,17 +400,17 @@ typeof HTMLElement == "function" && (ar = class extends HTMLElement {
|
|
403
400
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
404
401
|
return;
|
405
402
|
const r = {}, n = Kr(this);
|
406
|
-
for (const
|
407
|
-
|
408
|
-
for (const
|
409
|
-
const
|
410
|
-
|
403
|
+
for (const o of this.$$s)
|
404
|
+
o in n && (r[o] = [t(o)]);
|
405
|
+
for (const o of this.attributes) {
|
406
|
+
const s = this.$$g_p(o.name);
|
407
|
+
s in this.$$d || (this.$$d[s] = Le(s, o.value, this.$$p_d, "toProp"));
|
411
408
|
}
|
412
|
-
for (const
|
413
|
-
!(
|
409
|
+
for (const o in this.$$p_d)
|
410
|
+
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
414
411
|
this.$$c = new this.$$ctor({
|
415
412
|
target: this.shadowRoot || this,
|
416
|
-
props: wt(
|
413
|
+
props: Tt(wt({}, this.$$d), {
|
417
414
|
$$slots: r,
|
418
415
|
$$scope: {
|
419
416
|
ctx: []
|
@@ -422,23 +419,23 @@ typeof HTMLElement == "function" && (ar = class extends HTMLElement {
|
|
422
419
|
});
|
423
420
|
const i = () => {
|
424
421
|
this.$$r = !0;
|
425
|
-
for (const
|
426
|
-
if (this.$$d[
|
427
|
-
const
|
428
|
-
|
429
|
-
this.$$d[
|
422
|
+
for (const o in this.$$p_d)
|
423
|
+
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
424
|
+
const s = Le(
|
425
|
+
o,
|
426
|
+
this.$$d[o],
|
430
427
|
this.$$p_d,
|
431
428
|
"toAttribute"
|
432
429
|
);
|
433
|
-
|
430
|
+
s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
|
434
431
|
}
|
435
432
|
this.$$r = !1;
|
436
433
|
};
|
437
434
|
this.$$c.$$.after_update.push(i), i();
|
438
|
-
for (const
|
439
|
-
for (const
|
440
|
-
const a = this.$$c.$on(
|
441
|
-
this.$$l_u.set(
|
435
|
+
for (const o in this.$$l)
|
436
|
+
for (const s of this.$$l[o]) {
|
437
|
+
const a = this.$$c.$on(o, s);
|
438
|
+
this.$$l_u.set(s, a);
|
442
439
|
}
|
443
440
|
this.$$l = {};
|
444
441
|
}
|
@@ -448,7 +445,7 @@ typeof HTMLElement == "function" && (ar = class extends HTMLElement {
|
|
448
445
|
// and setting attributes through setAttribute etc, this is helpful
|
449
446
|
attributeChangedCallback(t, r, n) {
|
450
447
|
var i;
|
451
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
448
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Le(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
452
449
|
}
|
453
450
|
disconnectedCallback() {
|
454
451
|
this.$$cn = !1, Promise.resolve().then(() => {
|
@@ -461,9 +458,9 @@ typeof HTMLElement == "function" && (ar = class extends HTMLElement {
|
|
461
458
|
) || t;
|
462
459
|
}
|
463
460
|
});
|
464
|
-
function
|
465
|
-
var
|
466
|
-
const i = (
|
461
|
+
function Le(e, t, r, n) {
|
462
|
+
var o;
|
463
|
+
const i = (o = r[e]) == null ? void 0 : o.type;
|
467
464
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
468
465
|
return t;
|
469
466
|
if (n === "toAttribute")
|
@@ -491,8 +488,8 @@ function Ie(e, t, r, n) {
|
|
491
488
|
return t;
|
492
489
|
}
|
493
490
|
}
|
494
|
-
function cn(e, t, r, n, i,
|
495
|
-
let
|
491
|
+
function cn(e, t, r, n, i, o) {
|
492
|
+
let s = class extends ar {
|
496
493
|
constructor() {
|
497
494
|
super(e, r, i), this.$$p_d = t;
|
498
495
|
}
|
@@ -503,24 +500,24 @@ function cn(e, t, r, n, i, s) {
|
|
503
500
|
}
|
504
501
|
};
|
505
502
|
return Object.keys(t).forEach((a) => {
|
506
|
-
Object.defineProperty(
|
503
|
+
Object.defineProperty(s.prototype, a, {
|
507
504
|
get() {
|
508
505
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
509
506
|
},
|
510
507
|
set(u) {
|
511
508
|
var l;
|
512
|
-
u =
|
509
|
+
u = Le(a, u, t), this.$$d[a] = u, (l = this.$$c) == null || l.$set({ [a]: u });
|
513
510
|
}
|
514
511
|
});
|
515
512
|
}), n.forEach((a) => {
|
516
|
-
Object.defineProperty(
|
513
|
+
Object.defineProperty(s.prototype, a, {
|
517
514
|
get() {
|
518
515
|
var u;
|
519
516
|
return (u = this.$$c) == null ? void 0 : u[a];
|
520
517
|
}
|
521
518
|
});
|
522
519
|
}), e.element = /** @type {any} */
|
523
|
-
|
520
|
+
s, s;
|
524
521
|
}
|
525
522
|
class fn {
|
526
523
|
constructor() {
|
@@ -531,7 +528,7 @@ class fn {
|
|
531
528
|
*
|
532
529
|
* @type {any}
|
533
530
|
*/
|
534
|
-
|
531
|
+
O(this, "$$");
|
535
532
|
/**
|
536
533
|
* ### PRIVATE API
|
537
534
|
*
|
@@ -539,11 +536,11 @@ class fn {
|
|
539
536
|
*
|
540
537
|
* @type {any}
|
541
538
|
*/
|
542
|
-
|
539
|
+
O(this, "$$set");
|
543
540
|
}
|
544
541
|
/** @returns {void} */
|
545
542
|
$destroy() {
|
546
|
-
ln(this, 1), this.$destroy =
|
543
|
+
ln(this, 1), this.$destroy = $;
|
547
544
|
}
|
548
545
|
/**
|
549
546
|
* @template {Extract<keyof Events, string>} K
|
@@ -552,8 +549,8 @@ class fn {
|
|
552
549
|
* @returns {() => void}
|
553
550
|
*/
|
554
551
|
$on(t, r) {
|
555
|
-
if (!
|
556
|
-
return
|
552
|
+
if (!gt(r))
|
553
|
+
return $;
|
557
554
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
558
555
|
return n.push(r), () => {
|
559
556
|
const i = n.indexOf(r);
|
@@ -565,7 +562,7 @@ class fn {
|
|
565
562
|
* @returns {void}
|
566
563
|
*/
|
567
564
|
$set(t) {
|
568
|
-
this.$$set && !
|
565
|
+
this.$$set && !Wr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
569
566
|
}
|
570
567
|
}
|
571
568
|
const pn = "4";
|
@@ -577,7 +574,7 @@ var it = function(e, t) {
|
|
577
574
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
578
575
|
}, it(e, t);
|
579
576
|
};
|
580
|
-
function
|
577
|
+
function W(e, t) {
|
581
578
|
if (typeof t != "function" && t !== null)
|
582
579
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
583
580
|
it(e, t);
|
@@ -590,7 +587,7 @@ var S = function() {
|
|
590
587
|
return S = Object.assign || function(t) {
|
591
588
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
592
589
|
r = arguments[n];
|
593
|
-
for (var
|
590
|
+
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
594
591
|
}
|
595
592
|
return t;
|
596
593
|
}, S.apply(this, arguments);
|
@@ -603,7 +600,7 @@ function dn(e, t) {
|
|
603
600
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
604
601
|
return r;
|
605
602
|
}
|
606
|
-
function
|
603
|
+
function ot(e) {
|
607
604
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
608
605
|
if (r) return r.call(e);
|
609
606
|
if (e && typeof e.length == "number") return {
|
@@ -613,29 +610,29 @@ function st(e) {
|
|
613
610
|
};
|
614
611
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
615
612
|
}
|
616
|
-
function
|
613
|
+
function st(e, t) {
|
617
614
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
618
615
|
if (!r) return e;
|
619
|
-
var n = r.call(e), i,
|
616
|
+
var n = r.call(e), i, o = [], s;
|
620
617
|
try {
|
621
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
618
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) o.push(i.value);
|
622
619
|
} catch (a) {
|
623
|
-
|
620
|
+
s = { error: a };
|
624
621
|
} finally {
|
625
622
|
try {
|
626
623
|
i && !i.done && (r = n.return) && r.call(n);
|
627
624
|
} finally {
|
628
|
-
if (
|
625
|
+
if (s) throw s.error;
|
629
626
|
}
|
630
627
|
}
|
631
|
-
return
|
628
|
+
return o;
|
632
629
|
}
|
633
630
|
function pe(e, t, r) {
|
634
|
-
if (r || arguments.length === 2) for (var n = 0, i = t.length,
|
635
|
-
(
|
636
|
-
return e.concat(
|
631
|
+
if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
|
632
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
633
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
637
634
|
}
|
638
|
-
function
|
635
|
+
function X(e) {
|
639
636
|
return typeof e == "function";
|
640
637
|
}
|
641
638
|
function lr(e) {
|
@@ -659,19 +656,19 @@ function at(e, t) {
|
|
659
656
|
0 <= r && e.splice(r, 1);
|
660
657
|
}
|
661
658
|
}
|
662
|
-
var
|
659
|
+
var Ge = function() {
|
663
660
|
function e(t) {
|
664
661
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
665
662
|
}
|
666
663
|
return e.prototype.unsubscribe = function() {
|
667
|
-
var t, r, n, i,
|
664
|
+
var t, r, n, i, o;
|
668
665
|
if (!this.closed) {
|
669
666
|
this.closed = !0;
|
670
|
-
var
|
671
|
-
if (
|
672
|
-
if (this._parentage = null, Array.isArray(
|
667
|
+
var s = this._parentage;
|
668
|
+
if (s)
|
669
|
+
if (this._parentage = null, Array.isArray(s))
|
673
670
|
try {
|
674
|
-
for (var a =
|
671
|
+
for (var a = ot(s), u = a.next(); !u.done; u = a.next()) {
|
675
672
|
var l = u.value;
|
676
673
|
l.remove(this);
|
677
674
|
}
|
@@ -685,44 +682,44 @@ var $e = function() {
|
|
685
682
|
}
|
686
683
|
}
|
687
684
|
else
|
688
|
-
|
685
|
+
s.remove(this);
|
689
686
|
var h = this.initialTeardown;
|
690
|
-
if (
|
687
|
+
if (X(h))
|
691
688
|
try {
|
692
689
|
h();
|
693
690
|
} catch (_) {
|
694
|
-
|
691
|
+
o = _ instanceof Ze ? _.errors : [_];
|
695
692
|
}
|
696
693
|
var p = this._finalizers;
|
697
694
|
if (p) {
|
698
695
|
this._finalizers = null;
|
699
696
|
try {
|
700
|
-
for (var f =
|
701
|
-
var
|
697
|
+
for (var f = ot(p), g = f.next(); !g.done; g = f.next()) {
|
698
|
+
var y = g.value;
|
702
699
|
try {
|
703
|
-
|
700
|
+
Ot(y);
|
704
701
|
} catch (_) {
|
705
|
-
|
702
|
+
o = o != null ? o : [], _ instanceof Ze ? o = pe(pe([], st(o)), st(_.errors)) : o.push(_);
|
706
703
|
}
|
707
704
|
}
|
708
705
|
} catch (_) {
|
709
706
|
n = { error: _ };
|
710
707
|
} finally {
|
711
708
|
try {
|
712
|
-
|
709
|
+
g && !g.done && (i = f.return) && i.call(f);
|
713
710
|
} finally {
|
714
711
|
if (n) throw n.error;
|
715
712
|
}
|
716
713
|
}
|
717
714
|
}
|
718
|
-
if (
|
719
|
-
throw new Ze(
|
715
|
+
if (o)
|
716
|
+
throw new Ze(o);
|
720
717
|
}
|
721
718
|
}, e.prototype.add = function(t) {
|
722
719
|
var r;
|
723
720
|
if (t && t !== this)
|
724
721
|
if (this.closed)
|
725
|
-
|
722
|
+
Ot(t);
|
726
723
|
else {
|
727
724
|
if (t instanceof e) {
|
728
725
|
if (t.closed || t._hasParent(this))
|
@@ -747,12 +744,12 @@ var $e = function() {
|
|
747
744
|
var t = new e();
|
748
745
|
return t.closed = !0, t;
|
749
746
|
}(), e;
|
750
|
-
}(), ur =
|
747
|
+
}(), ur = Ge.EMPTY;
|
751
748
|
function hr(e) {
|
752
|
-
return e instanceof
|
749
|
+
return e instanceof Ge || e && "closed" in e && X(e.remove) && X(e.add) && X(e.unsubscribe);
|
753
750
|
}
|
754
|
-
function
|
755
|
-
|
751
|
+
function Ot(e) {
|
752
|
+
X(e) ? e() : e.unsubscribe();
|
756
753
|
}
|
757
754
|
var cr = {
|
758
755
|
onUnhandledError: null,
|
@@ -764,7 +761,7 @@ var cr = {
|
|
764
761
|
setTimeout: function(e, t) {
|
765
762
|
for (var r = [], n = 2; n < arguments.length; n++)
|
766
763
|
r[n - 2] = arguments[n];
|
767
|
-
return setTimeout.apply(void 0, pe([e, t],
|
764
|
+
return setTimeout.apply(void 0, pe([e, t], st(r)));
|
768
765
|
},
|
769
766
|
clearTimeout: function(e) {
|
770
767
|
var t = fr.delegate;
|
@@ -777,16 +774,16 @@ function mn(e) {
|
|
777
774
|
throw e;
|
778
775
|
});
|
779
776
|
}
|
780
|
-
function
|
777
|
+
function It() {
|
781
778
|
}
|
782
|
-
function
|
779
|
+
function Ne(e) {
|
783
780
|
e();
|
784
781
|
}
|
785
782
|
var pr = function(e) {
|
786
|
-
|
783
|
+
W(t, e);
|
787
784
|
function t(r) {
|
788
785
|
var n = e.call(this) || this;
|
789
|
-
return n.isStopped = !1, r ? (n.destination = r, hr(r) && r.add(n)) : n.destination =
|
786
|
+
return n.isStopped = !1, r ? (n.destination = r, hr(r) && r.add(n)) : n.destination = yn, n;
|
790
787
|
}
|
791
788
|
return t.create = function(r, n, i) {
|
792
789
|
return new lt(r, n, i);
|
@@ -813,11 +810,11 @@ var pr = function(e) {
|
|
813
810
|
this.unsubscribe();
|
814
811
|
}
|
815
812
|
}, t;
|
816
|
-
}(
|
813
|
+
}(Ge), bn = Function.prototype.bind;
|
817
814
|
function Je(e, t) {
|
818
815
|
return bn.call(e, t);
|
819
816
|
}
|
820
|
-
var
|
817
|
+
var gn = function() {
|
821
818
|
function e(t) {
|
822
819
|
this.partialObserver = t;
|
823
820
|
}
|
@@ -827,7 +824,7 @@ var yn = function() {
|
|
827
824
|
try {
|
828
825
|
r.next(t);
|
829
826
|
} catch (n) {
|
830
|
-
|
827
|
+
Oe(n);
|
831
828
|
}
|
832
829
|
}, e.prototype.error = function(t) {
|
833
830
|
var r = this.partialObserver;
|
@@ -835,54 +832,54 @@ var yn = function() {
|
|
835
832
|
try {
|
836
833
|
r.error(t);
|
837
834
|
} catch (n) {
|
838
|
-
|
835
|
+
Oe(n);
|
839
836
|
}
|
840
837
|
else
|
841
|
-
|
838
|
+
Oe(t);
|
842
839
|
}, e.prototype.complete = function() {
|
843
840
|
var t = this.partialObserver;
|
844
841
|
if (t.complete)
|
845
842
|
try {
|
846
843
|
t.complete();
|
847
844
|
} catch (r) {
|
848
|
-
|
845
|
+
Oe(r);
|
849
846
|
}
|
850
847
|
}, e;
|
851
848
|
}(), lt = function(e) {
|
852
|
-
|
849
|
+
W(t, e);
|
853
850
|
function t(r, n, i) {
|
854
|
-
var
|
855
|
-
if (
|
856
|
-
|
851
|
+
var o = e.call(this) || this, s;
|
852
|
+
if (X(r) || !r)
|
853
|
+
s = {
|
857
854
|
next: r != null ? r : void 0,
|
858
855
|
error: n != null ? n : void 0,
|
859
856
|
complete: i != null ? i : void 0
|
860
857
|
};
|
861
858
|
else {
|
862
859
|
var a;
|
863
|
-
|
864
|
-
return
|
865
|
-
},
|
860
|
+
o && cr.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
861
|
+
return o.unsubscribe();
|
862
|
+
}, s = {
|
866
863
|
next: r.next && Je(r.next, a),
|
867
864
|
error: r.error && Je(r.error, a),
|
868
865
|
complete: r.complete && Je(r.complete, a)
|
869
|
-
}) :
|
866
|
+
}) : s = r;
|
870
867
|
}
|
871
|
-
return
|
868
|
+
return o.destination = new gn(s), o;
|
872
869
|
}
|
873
870
|
return t;
|
874
871
|
}(pr);
|
875
|
-
function
|
872
|
+
function Oe(e) {
|
876
873
|
mn(e);
|
877
874
|
}
|
878
875
|
function vn(e) {
|
879
876
|
throw e;
|
880
877
|
}
|
881
|
-
var
|
878
|
+
var yn = {
|
882
879
|
closed: !0,
|
883
|
-
next:
|
880
|
+
next: It,
|
884
881
|
error: vn,
|
885
|
-
complete:
|
882
|
+
complete: It
|
886
883
|
}, _n = function() {
|
887
884
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
888
885
|
}();
|
@@ -896,7 +893,7 @@ function En(e) {
|
|
896
893
|
}, r);
|
897
894
|
};
|
898
895
|
}
|
899
|
-
var
|
896
|
+
var Lt = function() {
|
900
897
|
function e(t) {
|
901
898
|
t && (this._subscribe = t);
|
902
899
|
}
|
@@ -904,11 +901,11 @@ var It = function() {
|
|
904
901
|
var r = new e();
|
905
902
|
return r.source = this, r.operator = t, r;
|
906
903
|
}, e.prototype.subscribe = function(t, r, n) {
|
907
|
-
var i = this,
|
908
|
-
return
|
909
|
-
var
|
910
|
-
|
911
|
-
}),
|
904
|
+
var i = this, o = wn(t) ? t : new lt(t, r, n);
|
905
|
+
return Ne(function() {
|
906
|
+
var s = i, a = s.operator, u = s.source;
|
907
|
+
o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
908
|
+
}), o;
|
912
909
|
}, e.prototype._trySubscribe = function(t) {
|
913
910
|
try {
|
914
911
|
return this._subscribe(t);
|
@@ -917,19 +914,19 @@ var It = function() {
|
|
917
914
|
}
|
918
915
|
}, e.prototype.forEach = function(t, r) {
|
919
916
|
var n = this;
|
920
|
-
return r =
|
921
|
-
var
|
917
|
+
return r = Nt(r), new r(function(i, o) {
|
918
|
+
var s = new lt({
|
922
919
|
next: function(a) {
|
923
920
|
try {
|
924
921
|
t(a);
|
925
922
|
} catch (u) {
|
926
|
-
|
923
|
+
o(u), s.unsubscribe();
|
927
924
|
}
|
928
925
|
},
|
929
|
-
error:
|
926
|
+
error: o,
|
930
927
|
complete: i
|
931
928
|
});
|
932
|
-
n.subscribe(
|
929
|
+
n.subscribe(s);
|
933
930
|
});
|
934
931
|
}, e.prototype._subscribe = function(t) {
|
935
932
|
var r;
|
@@ -942,54 +939,54 @@ var It = function() {
|
|
942
939
|
return En(t)(this);
|
943
940
|
}, e.prototype.toPromise = function(t) {
|
944
941
|
var r = this;
|
945
|
-
return t =
|
946
|
-
var
|
947
|
-
r.subscribe(function(
|
948
|
-
return
|
949
|
-
}, function(
|
950
|
-
return i(
|
942
|
+
return t = Nt(t), new t(function(n, i) {
|
943
|
+
var o;
|
944
|
+
r.subscribe(function(s) {
|
945
|
+
return o = s;
|
946
|
+
}, function(s) {
|
947
|
+
return i(s);
|
951
948
|
}, function() {
|
952
|
-
return n(
|
949
|
+
return n(o);
|
953
950
|
});
|
954
951
|
});
|
955
952
|
}, e.create = function(t) {
|
956
953
|
return new e(t);
|
957
954
|
}, e;
|
958
955
|
}();
|
959
|
-
function
|
956
|
+
function Nt(e) {
|
960
957
|
var t;
|
961
958
|
return (t = e != null ? e : cr.Promise) !== null && t !== void 0 ? t : Promise;
|
962
959
|
}
|
963
|
-
function jn(e) {
|
964
|
-
return e && V(e.next) && V(e.error) && V(e.complete);
|
965
|
-
}
|
966
960
|
function Sn(e) {
|
967
|
-
return e && e
|
961
|
+
return e && X(e.next) && X(e.error) && X(e.complete);
|
962
|
+
}
|
963
|
+
function wn(e) {
|
964
|
+
return e && e instanceof pr || Sn(e) && hr(e);
|
968
965
|
}
|
969
|
-
var
|
966
|
+
var Tn = lr(function(e) {
|
970
967
|
return function() {
|
971
968
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
972
969
|
};
|
973
970
|
}), dr = function(e) {
|
974
|
-
|
971
|
+
W(t, e);
|
975
972
|
function t() {
|
976
973
|
var r = e.call(this) || this;
|
977
974
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
978
975
|
}
|
979
976
|
return t.prototype.lift = function(r) {
|
980
|
-
var n = new
|
977
|
+
var n = new Mt(this, this);
|
981
978
|
return n.operator = r, n;
|
982
979
|
}, t.prototype._throwIfClosed = function() {
|
983
980
|
if (this.closed)
|
984
|
-
throw new
|
981
|
+
throw new Tn();
|
985
982
|
}, t.prototype.next = function(r) {
|
986
983
|
var n = this;
|
987
|
-
|
988
|
-
var i,
|
984
|
+
Ne(function() {
|
985
|
+
var i, o;
|
989
986
|
if (n._throwIfClosed(), !n.isStopped) {
|
990
987
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
991
988
|
try {
|
992
|
-
for (var
|
989
|
+
for (var s = ot(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
993
990
|
var u = a.value;
|
994
991
|
u.next(r);
|
995
992
|
}
|
@@ -997,7 +994,7 @@ var wn = lr(function(e) {
|
|
997
994
|
i = { error: l };
|
998
995
|
} finally {
|
999
996
|
try {
|
1000
|
-
a && !a.done && (
|
997
|
+
a && !a.done && (o = s.return) && o.call(s);
|
1001
998
|
} finally {
|
1002
999
|
if (i) throw i.error;
|
1003
1000
|
}
|
@@ -1006,7 +1003,7 @@ var wn = lr(function(e) {
|
|
1006
1003
|
});
|
1007
1004
|
}, t.prototype.error = function(r) {
|
1008
1005
|
var n = this;
|
1009
|
-
|
1006
|
+
Ne(function() {
|
1010
1007
|
if (n._throwIfClosed(), !n.isStopped) {
|
1011
1008
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
1012
1009
|
for (var i = n.observers; i.length; )
|
@@ -1015,7 +1012,7 @@ var wn = lr(function(e) {
|
|
1015
1012
|
});
|
1016
1013
|
}, t.prototype.complete = function() {
|
1017
1014
|
var r = this;
|
1018
|
-
|
1015
|
+
Ne(function() {
|
1019
1016
|
if (r._throwIfClosed(), !r.isStopped) {
|
1020
1017
|
r.isStopped = !0;
|
1021
1018
|
for (var n = r.observers; n.length; )
|
@@ -1036,21 +1033,21 @@ var wn = lr(function(e) {
|
|
1036
1033
|
}, t.prototype._subscribe = function(r) {
|
1037
1034
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
1038
1035
|
}, t.prototype._innerSubscribe = function(r) {
|
1039
|
-
var n = this, i = this,
|
1040
|
-
return
|
1036
|
+
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
1037
|
+
return o || s ? ur : (this.currentObservers = null, a.push(r), new Ge(function() {
|
1041
1038
|
n.currentObservers = null, at(a, r);
|
1042
1039
|
}));
|
1043
1040
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
1044
|
-
var n = this, i = n.hasError,
|
1045
|
-
i ? r.error(
|
1041
|
+
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
1042
|
+
i ? r.error(o) : s && r.complete();
|
1046
1043
|
}, t.prototype.asObservable = function() {
|
1047
|
-
var r = new
|
1044
|
+
var r = new Lt();
|
1048
1045
|
return r.source = this, r;
|
1049
1046
|
}, t.create = function(r, n) {
|
1050
|
-
return new
|
1047
|
+
return new Mt(r, n);
|
1051
1048
|
}, t;
|
1052
|
-
}(
|
1053
|
-
|
1049
|
+
}(Lt), Mt = function(e) {
|
1050
|
+
W(t, e);
|
1054
1051
|
function t(r, n) {
|
1055
1052
|
var i = e.call(this) || this;
|
1056
1053
|
return i.destination = r, i.source = n, i;
|
@@ -1073,43 +1070,43 @@ var wn = lr(function(e) {
|
|
1073
1070
|
return (mr.delegate || Date).now();
|
1074
1071
|
},
|
1075
1072
|
delegate: void 0
|
1076
|
-
},
|
1077
|
-
|
1073
|
+
}, Hn = function(e) {
|
1074
|
+
W(t, e);
|
1078
1075
|
function t(r, n, i) {
|
1079
1076
|
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = mr);
|
1080
|
-
var
|
1081
|
-
return
|
1077
|
+
var o = e.call(this) || this;
|
1078
|
+
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
1082
1079
|
}
|
1083
1080
|
return t.prototype.next = function(r) {
|
1084
|
-
var n = this, i = n.isStopped,
|
1085
|
-
i || (
|
1081
|
+
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, u = n._windowTime;
|
1082
|
+
i || (o.push(r), !s && o.push(a.now() + u)), this._trimBuffer(), e.prototype.next.call(this, r);
|
1086
1083
|
}, t.prototype._subscribe = function(r) {
|
1087
1084
|
this._throwIfClosed(), this._trimBuffer();
|
1088
|
-
for (var n = this._innerSubscribe(r), i = this,
|
1085
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), u = 0; u < a.length && !r.closed; u += o ? 1 : 2)
|
1089
1086
|
r.next(a[u]);
|
1090
1087
|
return this._checkFinalizedStatuses(r), n;
|
1091
1088
|
}, t.prototype._trimBuffer = function() {
|
1092
|
-
var r = this, n = r._bufferSize, i = r._timestampProvider,
|
1093
|
-
if (n < 1 / 0 && a <
|
1094
|
-
for (var u = i.now(), l = 0, h = 1; h <
|
1089
|
+
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
|
1090
|
+
if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
|
1091
|
+
for (var u = i.now(), l = 0, h = 1; h < o.length && o[h] <= u; h += 2)
|
1095
1092
|
l = h;
|
1096
|
-
l &&
|
1093
|
+
l && o.splice(0, l + 1);
|
1097
1094
|
}
|
1098
1095
|
}, t;
|
1099
1096
|
}(dr);
|
1100
|
-
const
|
1101
|
-
if (
|
1102
|
-
const r = new
|
1103
|
-
|
1097
|
+
const Rt = [], Dt = {}, An = (e, t = 0) => {
|
1098
|
+
if (Rt.indexOf(e) == -1) {
|
1099
|
+
const r = new Hn(t);
|
1100
|
+
Dt[e] = r, Rt.push(e);
|
1104
1101
|
}
|
1105
|
-
return
|
1102
|
+
return Dt[e];
|
1106
1103
|
}, he = [];
|
1107
|
-
function
|
1104
|
+
function Pn(e, t) {
|
1108
1105
|
return {
|
1109
|
-
subscribe:
|
1106
|
+
subscribe: ke(e, t).subscribe
|
1110
1107
|
};
|
1111
1108
|
}
|
1112
|
-
function
|
1109
|
+
function ke(e, t = $) {
|
1113
1110
|
let r;
|
1114
1111
|
const n = /* @__PURE__ */ new Set();
|
1115
1112
|
function i(a) {
|
@@ -1124,37 +1121,37 @@ function Ue(e, t = R) {
|
|
1124
1121
|
}
|
1125
1122
|
}
|
1126
1123
|
}
|
1127
|
-
function
|
1124
|
+
function o(a) {
|
1128
1125
|
i(a(e));
|
1129
1126
|
}
|
1130
|
-
function
|
1127
|
+
function s(a, u = $) {
|
1131
1128
|
const l = [a, u];
|
1132
|
-
return n.add(l), n.size === 1 && (r = t(i,
|
1129
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || $), a(e), () => {
|
1133
1130
|
n.delete(l), n.size === 0 && r && (r(), r = null);
|
1134
1131
|
};
|
1135
1132
|
}
|
1136
|
-
return { set: i, update:
|
1133
|
+
return { set: i, update: o, subscribe: s };
|
1137
1134
|
}
|
1138
1135
|
function ve(e, t, r) {
|
1139
1136
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
1140
1137
|
if (!i.every(Boolean))
|
1141
1138
|
throw new Error("derived() expects stores as input, got a falsy value");
|
1142
|
-
const
|
1143
|
-
return
|
1139
|
+
const o = t.length < 2;
|
1140
|
+
return Pn(r, (s, a) => {
|
1144
1141
|
let u = !1;
|
1145
1142
|
const l = [];
|
1146
|
-
let h = 0, p =
|
1143
|
+
let h = 0, p = $;
|
1147
1144
|
const f = () => {
|
1148
1145
|
if (h)
|
1149
1146
|
return;
|
1150
1147
|
p();
|
1151
|
-
const
|
1152
|
-
|
1153
|
-
},
|
1154
|
-
(
|
1155
|
-
|
1156
|
-
(
|
1157
|
-
l[_] =
|
1148
|
+
const y = t(n ? l[0] : l, s, a);
|
1149
|
+
o ? s(y) : p = gt(y) ? y : $;
|
1150
|
+
}, g = i.map(
|
1151
|
+
(y, _) => ir(
|
1152
|
+
y,
|
1153
|
+
(A) => {
|
1154
|
+
l[_] = A, h &= ~(1 << _), u && f();
|
1158
1155
|
},
|
1159
1156
|
() => {
|
1160
1157
|
h |= 1 << _;
|
@@ -1162,51 +1159,51 @@ function ve(e, t, r) {
|
|
1162
1159
|
)
|
1163
1160
|
);
|
1164
1161
|
return u = !0, f(), function() {
|
1165
|
-
te(
|
1162
|
+
te(g), p(), u = !1;
|
1166
1163
|
};
|
1167
1164
|
});
|
1168
1165
|
}
|
1169
|
-
function
|
1166
|
+
function Cn(e) {
|
1170
1167
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
1171
1168
|
}
|
1172
|
-
var
|
1173
|
-
return
|
1169
|
+
var Bn = function(t) {
|
1170
|
+
return Fn(t) && !On(t);
|
1174
1171
|
};
|
1175
|
-
function
|
1172
|
+
function Fn(e) {
|
1176
1173
|
return !!e && typeof e == "object";
|
1177
1174
|
}
|
1178
|
-
function
|
1175
|
+
function On(e) {
|
1179
1176
|
var t = Object.prototype.toString.call(e);
|
1180
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
1181
|
-
}
|
1182
|
-
var On = typeof Symbol == "function" && Symbol.for, In = On ? Symbol.for("react.element") : 60103;
|
1183
|
-
function Ln(e) {
|
1184
|
-
return e.$$typeof === In;
|
1177
|
+
return t === "[object RegExp]" || t === "[object Date]" || Nn(e);
|
1185
1178
|
}
|
1179
|
+
var In = typeof Symbol == "function" && Symbol.for, Ln = In ? Symbol.for("react.element") : 60103;
|
1186
1180
|
function Nn(e) {
|
1181
|
+
return e.$$typeof === Ln;
|
1182
|
+
}
|
1183
|
+
function Mn(e) {
|
1187
1184
|
return Array.isArray(e) ? [] : {};
|
1188
1185
|
}
|
1189
|
-
function
|
1190
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? de(
|
1186
|
+
function Te(e, t) {
|
1187
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? de(Mn(e), e, t) : e;
|
1191
1188
|
}
|
1192
|
-
function
|
1189
|
+
function Rn(e, t, r) {
|
1193
1190
|
return e.concat(t).map(function(n) {
|
1194
|
-
return
|
1191
|
+
return Te(n, r);
|
1195
1192
|
});
|
1196
1193
|
}
|
1197
|
-
function
|
1194
|
+
function Dn(e, t) {
|
1198
1195
|
if (!t.customMerge)
|
1199
1196
|
return de;
|
1200
1197
|
var r = t.customMerge(e);
|
1201
1198
|
return typeof r == "function" ? r : de;
|
1202
1199
|
}
|
1203
|
-
function
|
1200
|
+
function $n(e) {
|
1204
1201
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
1205
1202
|
return Object.propertyIsEnumerable.call(e, t);
|
1206
1203
|
}) : [];
|
1207
1204
|
}
|
1208
|
-
function
|
1209
|
-
return Object.keys(e).concat(
|
1205
|
+
function $t(e) {
|
1206
|
+
return Object.keys(e).concat($n(e));
|
1210
1207
|
}
|
1211
1208
|
function br(e, t) {
|
1212
1209
|
try {
|
@@ -1215,21 +1212,21 @@ function br(e, t) {
|
|
1215
1212
|
return !1;
|
1216
1213
|
}
|
1217
1214
|
}
|
1218
|
-
function
|
1215
|
+
function Un(e, t) {
|
1219
1216
|
return br(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
1220
1217
|
}
|
1221
|
-
function
|
1218
|
+
function Gn(e, t, r) {
|
1222
1219
|
var n = {};
|
1223
|
-
return r.isMergeableObject(e) &&
|
1224
|
-
n[i] =
|
1225
|
-
}),
|
1226
|
-
|
1220
|
+
return r.isMergeableObject(e) && $t(e).forEach(function(i) {
|
1221
|
+
n[i] = Te(e[i], r);
|
1222
|
+
}), $t(t).forEach(function(i) {
|
1223
|
+
Un(e, i) || (br(e, i) && r.isMergeableObject(t[i]) ? n[i] = Dn(i, r)(e[i], t[i], r) : n[i] = Te(t[i], r));
|
1227
1224
|
}), n;
|
1228
1225
|
}
|
1229
1226
|
function de(e, t, r) {
|
1230
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
1231
|
-
var n = Array.isArray(t), i = Array.isArray(e),
|
1232
|
-
return
|
1227
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Rn, r.isMergeableObject = r.isMergeableObject || Bn, r.cloneUnlessOtherwiseSpecified = Te;
|
1228
|
+
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
1229
|
+
return o ? n ? r.arrayMerge(e, t, r) : Gn(e, t, r) : Te(t, r);
|
1233
1230
|
}
|
1234
1231
|
de.all = function(t, r) {
|
1235
1232
|
if (!Array.isArray(t))
|
@@ -1238,57 +1235,57 @@ de.all = function(t, r) {
|
|
1238
1235
|
return de(n, i, r);
|
1239
1236
|
}, {});
|
1240
1237
|
};
|
1241
|
-
var
|
1242
|
-
const
|
1238
|
+
var kn = de, jn = kn;
|
1239
|
+
const Vn = /* @__PURE__ */ Cn(jn);
|
1243
1240
|
var x;
|
1244
1241
|
(function(e) {
|
1245
1242
|
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";
|
1246
1243
|
})(x || (x = {}));
|
1247
|
-
var
|
1244
|
+
var B;
|
1248
1245
|
(function(e) {
|
1249
1246
|
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";
|
1250
|
-
})(
|
1247
|
+
})(B || (B = {}));
|
1251
1248
|
var me;
|
1252
1249
|
(function(e) {
|
1253
1250
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
1254
1251
|
})(me || (me = {}));
|
1255
|
-
function
|
1256
|
-
return e.type ===
|
1252
|
+
function Ut(e) {
|
1253
|
+
return e.type === B.literal;
|
1257
1254
|
}
|
1258
|
-
function
|
1259
|
-
return e.type ===
|
1255
|
+
function Xn(e) {
|
1256
|
+
return e.type === B.argument;
|
1260
1257
|
}
|
1261
|
-
function
|
1262
|
-
return e.type ===
|
1258
|
+
function gr(e) {
|
1259
|
+
return e.type === B.number;
|
1263
1260
|
}
|
1264
1261
|
function vr(e) {
|
1265
|
-
return e.type ===
|
1262
|
+
return e.type === B.date;
|
1266
1263
|
}
|
1267
|
-
function
|
1268
|
-
return e.type ===
|
1264
|
+
function yr(e) {
|
1265
|
+
return e.type === B.time;
|
1269
1266
|
}
|
1270
1267
|
function _r(e) {
|
1271
|
-
return e.type ===
|
1268
|
+
return e.type === B.select;
|
1272
1269
|
}
|
1273
1270
|
function xr(e) {
|
1274
|
-
return e.type ===
|
1271
|
+
return e.type === B.plural;
|
1275
1272
|
}
|
1276
|
-
function
|
1277
|
-
return e.type ===
|
1273
|
+
function Wn(e) {
|
1274
|
+
return e.type === B.pound;
|
1278
1275
|
}
|
1279
1276
|
function Er(e) {
|
1280
|
-
return e.type ===
|
1277
|
+
return e.type === B.tag;
|
1281
1278
|
}
|
1282
|
-
function
|
1279
|
+
function Sr(e) {
|
1283
1280
|
return !!(e && typeof e == "object" && e.type === me.number);
|
1284
1281
|
}
|
1285
1282
|
function ut(e) {
|
1286
1283
|
return !!(e && typeof e == "object" && e.type === me.dateTime);
|
1287
1284
|
}
|
1288
|
-
var
|
1285
|
+
var wr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, zn = /(?:[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;
|
1289
1286
|
function Zn(e) {
|
1290
1287
|
var t = {};
|
1291
|
-
return e.replace(
|
1288
|
+
return e.replace(zn, function(r) {
|
1292
1289
|
var n = r.length;
|
1293
1290
|
switch (r[0]) {
|
1294
1291
|
case "G":
|
@@ -1384,10 +1381,10 @@ function Qn(e) {
|
|
1384
1381
|
for (var t = e.split(Jn).filter(function(f) {
|
1385
1382
|
return f.length > 0;
|
1386
1383
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
1387
|
-
var
|
1388
|
-
if (
|
1384
|
+
var o = i[n], s = o.split("/");
|
1385
|
+
if (s.length === 0)
|
1389
1386
|
throw new Error("Invalid number skeleton");
|
1390
|
-
for (var a =
|
1387
|
+
for (var a = s[0], u = s.slice(1), l = 0, h = u; l < h.length; l++) {
|
1391
1388
|
var p = h[l];
|
1392
1389
|
if (p.length === 0)
|
1393
1390
|
throw new Error("Invalid number skeleton");
|
@@ -1399,14 +1396,14 @@ function Qn(e) {
|
|
1399
1396
|
function qn(e) {
|
1400
1397
|
return e.replace(/^(.*?)-/, "");
|
1401
1398
|
}
|
1402
|
-
var
|
1403
|
-
function
|
1399
|
+
var Gt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Tr = /^(@+)?(\+|#+)?[rs]?$/g, Yn = /(\*)(0+)|(#+)(0+)|(0+)/g, Hr = /^(0+)$/;
|
1400
|
+
function kt(e) {
|
1404
1401
|
var t = {};
|
1405
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
1402
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Tr, function(r, n, i) {
|
1406
1403
|
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)), "";
|
1407
1404
|
}), t;
|
1408
1405
|
}
|
1409
|
-
function
|
1406
|
+
function Ar(e) {
|
1410
1407
|
switch (e) {
|
1411
1408
|
case "sign-auto":
|
1412
1409
|
return {
|
@@ -1454,14 +1451,14 @@ function Kn(e) {
|
|
1454
1451
|
notation: "scientific"
|
1455
1452
|
}, e = e.slice(1)), t) {
|
1456
1453
|
var r = e.slice(0, 2);
|
1457
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
1454
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Hr.test(e))
|
1458
1455
|
throw new Error("Malformed concise eng/scientific notation");
|
1459
1456
|
t.minimumIntegerDigits = e.length;
|
1460
1457
|
}
|
1461
1458
|
return t;
|
1462
1459
|
}
|
1463
|
-
function
|
1464
|
-
var t = {}, r =
|
1460
|
+
function jt(e) {
|
1461
|
+
var t = {}, r = Ar(e);
|
1465
1462
|
return r || t;
|
1466
1463
|
}
|
1467
1464
|
function ei(e) {
|
@@ -1500,12 +1497,12 @@ function ei(e) {
|
|
1500
1497
|
continue;
|
1501
1498
|
case "scientific":
|
1502
1499
|
t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
1503
|
-
return S(S({}, u),
|
1500
|
+
return S(S({}, u), jt(l));
|
1504
1501
|
}, {}));
|
1505
1502
|
continue;
|
1506
1503
|
case "engineering":
|
1507
1504
|
t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
1508
|
-
return S(S({}, u),
|
1505
|
+
return S(S({}, u), jt(l));
|
1509
1506
|
}, {}));
|
1510
1507
|
continue;
|
1511
1508
|
case "notation-simple":
|
@@ -1550,45 +1547,45 @@ function ei(e) {
|
|
1550
1547
|
case "integer-width":
|
1551
1548
|
if (i.options.length > 1)
|
1552
1549
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1553
|
-
i.options[0].replace(Yn, function(u, l, h, p, f,
|
1550
|
+
i.options[0].replace(Yn, function(u, l, h, p, f, g) {
|
1554
1551
|
if (l)
|
1555
1552
|
t.minimumIntegerDigits = h.length;
|
1556
1553
|
else {
|
1557
1554
|
if (p && f)
|
1558
1555
|
throw new Error("We currently do not support maximum integer digits");
|
1559
|
-
if (
|
1556
|
+
if (g)
|
1560
1557
|
throw new Error("We currently do not support exact integer digits");
|
1561
1558
|
}
|
1562
1559
|
return "";
|
1563
1560
|
});
|
1564
1561
|
continue;
|
1565
1562
|
}
|
1566
|
-
if (
|
1563
|
+
if (Hr.test(i.stem)) {
|
1567
1564
|
t.minimumIntegerDigits = i.stem.length;
|
1568
1565
|
continue;
|
1569
1566
|
}
|
1570
|
-
if (
|
1567
|
+
if (Gt.test(i.stem)) {
|
1571
1568
|
if (i.options.length > 1)
|
1572
1569
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1573
|
-
i.stem.replace(
|
1574
|
-
return h === "*" ? t.minimumFractionDigits = l.length : p && p[0] === "#" ? t.maximumFractionDigits = p.length : f &&
|
1570
|
+
i.stem.replace(Gt, function(u, l, h, p, f, g) {
|
1571
|
+
return h === "*" ? t.minimumFractionDigits = l.length : p && p[0] === "#" ? t.maximumFractionDigits = p.length : f && g ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + g.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
1575
1572
|
});
|
1576
|
-
var
|
1577
|
-
|
1573
|
+
var o = i.options[0];
|
1574
|
+
o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), kt(o)));
|
1578
1575
|
continue;
|
1579
1576
|
}
|
1580
|
-
if (
|
1581
|
-
t = S(S({}, t),
|
1577
|
+
if (Tr.test(i.stem)) {
|
1578
|
+
t = S(S({}, t), kt(i.stem));
|
1582
1579
|
continue;
|
1583
1580
|
}
|
1584
|
-
var
|
1585
|
-
|
1581
|
+
var s = Ar(i.stem);
|
1582
|
+
s && (t = S(S({}, t), s));
|
1586
1583
|
var a = Kn(i.stem);
|
1587
1584
|
a && (t = S(S({}, t), a));
|
1588
1585
|
}
|
1589
1586
|
return t;
|
1590
1587
|
}
|
1591
|
-
var
|
1588
|
+
var Ie = {
|
1592
1589
|
"001": [
|
1593
1590
|
"H",
|
1594
1591
|
"h"
|
@@ -3001,12 +2998,12 @@ function ti(e, t) {
|
|
3001
2998
|
for (var r = "", n = 0; n < e.length; n++) {
|
3002
2999
|
var i = e.charAt(n);
|
3003
3000
|
if (i === "j") {
|
3004
|
-
for (var
|
3005
|
-
|
3006
|
-
var
|
3001
|
+
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
3002
|
+
o++, n++;
|
3003
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = ri(t);
|
3007
3004
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
3008
3005
|
r += u;
|
3009
|
-
for (;
|
3006
|
+
for (; s-- > 0; )
|
3010
3007
|
r = l + r;
|
3011
3008
|
} else i === "J" ? r += "H" : r += i;
|
3012
3009
|
}
|
@@ -3031,23 +3028,23 @@ function ri(e) {
|
|
3031
3028
|
}
|
3032
3029
|
var r = e.language, n;
|
3033
3030
|
r !== "root" && (n = e.maximize().region);
|
3034
|
-
var i =
|
3031
|
+
var i = Ie[n || ""] || Ie[r || ""] || Ie["".concat(r, "-001")] || Ie["001"];
|
3035
3032
|
return i[0];
|
3036
3033
|
}
|
3037
|
-
var Qe, ni = new RegExp("^".concat(
|
3034
|
+
var Qe, ni = new RegExp("^".concat(wr.source, "*")), ii = new RegExp("".concat(wr.source, "*$"));
|
3038
3035
|
function E(e, t) {
|
3039
3036
|
return { start: e, end: t };
|
3040
3037
|
}
|
3041
|
-
var
|
3038
|
+
var oi = !!String.prototype.startsWith && "_a".startsWith("a", 1), si = !!String.fromCodePoint, ai = !!Object.fromEntries, li = !!String.prototype.codePointAt, ui = !!String.prototype.trimStart, hi = !!String.prototype.trimEnd, ci = !!Number.isSafeInteger, fi = ci ? Number.isSafeInteger : function(e) {
|
3042
3039
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
3043
3040
|
}, ht = !0;
|
3044
3041
|
try {
|
3045
|
-
var pi =
|
3042
|
+
var pi = Cr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
3046
3043
|
ht = ((Qe = pi.exec("a")) === null || Qe === void 0 ? void 0 : Qe[0]) === "a";
|
3047
3044
|
} catch (e) {
|
3048
3045
|
ht = !1;
|
3049
3046
|
}
|
3050
|
-
var
|
3047
|
+
var Vt = oi ? (
|
3051
3048
|
// Native
|
3052
3049
|
function(t, r, n) {
|
3053
3050
|
return t.startsWith(r, n);
|
@@ -3057,31 +3054,31 @@ var kt = si ? (
|
|
3057
3054
|
function(t, r, n) {
|
3058
3055
|
return t.slice(n, n + r.length) === r;
|
3059
3056
|
}
|
3060
|
-
), ct =
|
3057
|
+
), ct = si ? String.fromCodePoint : (
|
3061
3058
|
// IE11
|
3062
3059
|
function() {
|
3063
3060
|
for (var t = [], r = 0; r < arguments.length; r++)
|
3064
3061
|
t[r] = arguments[r];
|
3065
|
-
for (var n = "", i = t.length,
|
3066
|
-
if (
|
3067
|
-
throw RangeError(
|
3068
|
-
n +=
|
3062
|
+
for (var n = "", i = t.length, o = 0, s; i > o; ) {
|
3063
|
+
if (s = t[o++], s > 1114111)
|
3064
|
+
throw RangeError(s + " is not a valid code point");
|
3065
|
+
n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
|
3069
3066
|
}
|
3070
3067
|
return n;
|
3071
3068
|
}
|
3072
|
-
),
|
3069
|
+
), Xt = (
|
3073
3070
|
// native
|
3074
3071
|
ai ? Object.fromEntries : (
|
3075
3072
|
// Ponyfill
|
3076
3073
|
function(t) {
|
3077
3074
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
3078
|
-
var
|
3079
|
-
r[
|
3075
|
+
var o = i[n], s = o[0], a = o[1];
|
3076
|
+
r[s] = a;
|
3080
3077
|
}
|
3081
3078
|
return r;
|
3082
3079
|
}
|
3083
3080
|
)
|
3084
|
-
),
|
3081
|
+
), Pr = li ? (
|
3085
3082
|
// Native
|
3086
3083
|
function(t, r) {
|
3087
3084
|
return t.codePointAt(r);
|
@@ -3091,8 +3088,8 @@ var kt = si ? (
|
|
3091
3088
|
function(t, r) {
|
3092
3089
|
var n = t.length;
|
3093
3090
|
if (!(r < 0 || r >= n)) {
|
3094
|
-
var i = t.charCodeAt(r),
|
3095
|
-
return i < 55296 || i > 56319 || r + 1 === n || (
|
3091
|
+
var i = t.charCodeAt(r), o;
|
3092
|
+
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
3096
3093
|
}
|
3097
3094
|
}
|
3098
3095
|
), di = ui ? (
|
@@ -3116,23 +3113,23 @@ var kt = si ? (
|
|
3116
3113
|
return t.replace(ii, "");
|
3117
3114
|
}
|
3118
3115
|
);
|
3119
|
-
function
|
3116
|
+
function Cr(e, t) {
|
3120
3117
|
return new RegExp(e, t);
|
3121
3118
|
}
|
3122
3119
|
var ft;
|
3123
3120
|
if (ht) {
|
3124
|
-
var
|
3121
|
+
var Wt = Cr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
3125
3122
|
ft = function(t, r) {
|
3126
3123
|
var n;
|
3127
|
-
|
3128
|
-
var i =
|
3124
|
+
Wt.lastIndex = r;
|
3125
|
+
var i = Wt.exec(t);
|
3129
3126
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
3130
3127
|
};
|
3131
3128
|
} else
|
3132
3129
|
ft = function(t, r) {
|
3133
3130
|
for (var n = []; ; ) {
|
3134
|
-
var i =
|
3135
|
-
if (i === void 0 ||
|
3131
|
+
var i = Pr(t, r);
|
3132
|
+
if (i === void 0 || Br(i) || yi(i))
|
3136
3133
|
break;
|
3137
3134
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
3138
3135
|
}
|
@@ -3150,35 +3147,35 @@ var bi = (
|
|
3150
3147
|
return this.parseMessage(0, "", !1);
|
3151
3148
|
}, e.prototype.parseMessage = function(t, r, n) {
|
3152
3149
|
for (var i = []; !this.isEOF(); ) {
|
3153
|
-
var
|
3154
|
-
if (
|
3155
|
-
var
|
3156
|
-
if (
|
3157
|
-
return
|
3158
|
-
i.push(
|
3150
|
+
var o = this.char();
|
3151
|
+
if (o === 123) {
|
3152
|
+
var s = this.parseArgument(t, n);
|
3153
|
+
if (s.err)
|
3154
|
+
return s;
|
3155
|
+
i.push(s.val);
|
3159
3156
|
} else {
|
3160
|
-
if (
|
3157
|
+
if (o === 125 && t > 0)
|
3161
3158
|
break;
|
3162
|
-
if (
|
3159
|
+
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
3163
3160
|
var a = this.clonePosition();
|
3164
3161
|
this.bump(), i.push({
|
3165
|
-
type:
|
3162
|
+
type: B.pound,
|
3166
3163
|
location: E(a, this.clonePosition())
|
3167
3164
|
});
|
3168
|
-
} else if (
|
3165
|
+
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
3169
3166
|
if (n)
|
3170
3167
|
break;
|
3171
3168
|
return this.error(x.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
|
3172
|
-
} else if (
|
3173
|
-
var
|
3174
|
-
if (
|
3175
|
-
return
|
3176
|
-
i.push(
|
3169
|
+
} else if (o === 60 && !this.ignoreTag && pt(this.peek() || 0)) {
|
3170
|
+
var s = this.parseTag(t, r);
|
3171
|
+
if (s.err)
|
3172
|
+
return s;
|
3173
|
+
i.push(s.val);
|
3177
3174
|
} else {
|
3178
|
-
var
|
3179
|
-
if (
|
3180
|
-
return
|
3181
|
-
i.push(
|
3175
|
+
var s = this.parseLiteral(t, r);
|
3176
|
+
if (s.err)
|
3177
|
+
return s;
|
3178
|
+
i.push(s.val);
|
3182
3179
|
}
|
3183
3180
|
}
|
3184
3181
|
}
|
@@ -3190,26 +3187,26 @@ var bi = (
|
|
3190
3187
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
3191
3188
|
return {
|
3192
3189
|
val: {
|
3193
|
-
type:
|
3190
|
+
type: B.literal,
|
3194
3191
|
value: "<".concat(i, "/>"),
|
3195
3192
|
location: E(n, this.clonePosition())
|
3196
3193
|
},
|
3197
3194
|
err: null
|
3198
3195
|
};
|
3199
3196
|
if (this.bumpIf(">")) {
|
3200
|
-
var
|
3201
|
-
if (
|
3202
|
-
return
|
3203
|
-
var
|
3197
|
+
var o = this.parseMessage(t + 1, r, !0);
|
3198
|
+
if (o.err)
|
3199
|
+
return o;
|
3200
|
+
var s = o.val, a = this.clonePosition();
|
3204
3201
|
if (this.bumpIf("</")) {
|
3205
3202
|
if (this.isEOF() || !pt(this.char()))
|
3206
3203
|
return this.error(x.INVALID_TAG, E(a, this.clonePosition()));
|
3207
3204
|
var u = this.clonePosition(), l = this.parseTagName();
|
3208
3205
|
return i !== l ? this.error(x.UNMATCHED_CLOSING_TAG, E(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
3209
3206
|
val: {
|
3210
|
-
type:
|
3207
|
+
type: B.tag,
|
3211
3208
|
value: i,
|
3212
|
-
children:
|
3209
|
+
children: s,
|
3213
3210
|
location: E(n, this.clonePosition())
|
3214
3211
|
},
|
3215
3212
|
err: null
|
@@ -3225,16 +3222,16 @@ var bi = (
|
|
3225
3222
|
return this.message.slice(t, this.offset());
|
3226
3223
|
}, e.prototype.parseLiteral = function(t, r) {
|
3227
3224
|
for (var n = this.clonePosition(), i = ""; ; ) {
|
3228
|
-
var
|
3229
|
-
if (s) {
|
3230
|
-
i += s;
|
3231
|
-
continue;
|
3232
|
-
}
|
3233
|
-
var o = this.tryParseUnquoted(t, r);
|
3225
|
+
var o = this.tryParseQuote(r);
|
3234
3226
|
if (o) {
|
3235
3227
|
i += o;
|
3236
3228
|
continue;
|
3237
3229
|
}
|
3230
|
+
var s = this.tryParseUnquoted(t, r);
|
3231
|
+
if (s) {
|
3232
|
+
i += s;
|
3233
|
+
continue;
|
3234
|
+
}
|
3238
3235
|
var a = this.tryParseLeftAngleBracket();
|
3239
3236
|
if (a) {
|
3240
3237
|
i += a;
|
@@ -3244,12 +3241,12 @@ var bi = (
|
|
3244
3241
|
}
|
3245
3242
|
var u = E(n, this.clonePosition());
|
3246
3243
|
return {
|
3247
|
-
val: { type:
|
3244
|
+
val: { type: B.literal, value: i, location: u },
|
3248
3245
|
err: null
|
3249
3246
|
};
|
3250
3247
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
3251
3248
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
3252
|
-
!
|
3249
|
+
!gi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
3253
3250
|
}, e.prototype.tryParseQuote = function(t) {
|
3254
3251
|
if (this.isEOF() || this.char() !== 39)
|
3255
3252
|
return null;
|
@@ -3304,7 +3301,7 @@ var bi = (
|
|
3304
3301
|
case 125:
|
3305
3302
|
return this.bump(), {
|
3306
3303
|
val: {
|
3307
|
-
type:
|
3304
|
+
type: B.argument,
|
3308
3305
|
// value does not include the opening and closing braces.
|
3309
3306
|
value: i,
|
3310
3307
|
location: E(n, this.clonePosition())
|
@@ -3319,13 +3316,13 @@ var bi = (
|
|
3319
3316
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
3320
3317
|
var t = this.clonePosition(), r = this.offset(), n = ft(this.message, r), i = r + n.length;
|
3321
3318
|
this.bumpTo(i);
|
3322
|
-
var
|
3323
|
-
return { value: n, location:
|
3319
|
+
var o = this.clonePosition(), s = E(t, o);
|
3320
|
+
return { value: n, location: s };
|
3324
3321
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
3325
|
-
var
|
3322
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
3326
3323
|
switch (a) {
|
3327
3324
|
case "":
|
3328
|
-
return this.error(x.EXPECT_ARGUMENT_TYPE, E(
|
3325
|
+
return this.error(x.EXPECT_ARGUMENT_TYPE, E(s, u));
|
3329
3326
|
case "number":
|
3330
3327
|
case "date":
|
3331
3328
|
case "time": {
|
@@ -3339,44 +3336,44 @@ var bi = (
|
|
3339
3336
|
var f = mi(p.val);
|
3340
3337
|
if (f.length === 0)
|
3341
3338
|
return this.error(x.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
|
3342
|
-
var
|
3343
|
-
l = { style: f, styleLocation:
|
3339
|
+
var g = E(h, this.clonePosition());
|
3340
|
+
l = { style: f, styleLocation: g };
|
3344
3341
|
}
|
3345
|
-
var
|
3346
|
-
if (
|
3347
|
-
return
|
3342
|
+
var y = this.tryParseArgumentClose(i);
|
3343
|
+
if (y.err)
|
3344
|
+
return y;
|
3348
3345
|
var _ = E(i, this.clonePosition());
|
3349
|
-
if (l &&
|
3350
|
-
var
|
3346
|
+
if (l && Vt(l == null ? void 0 : l.style, "::", 0)) {
|
3347
|
+
var A = di(l.style.slice(2));
|
3351
3348
|
if (a === "number") {
|
3352
|
-
var p = this.parseNumberSkeletonFromString(
|
3349
|
+
var p = this.parseNumberSkeletonFromString(A, l.styleLocation);
|
3353
3350
|
return p.err ? p : {
|
3354
|
-
val: { type:
|
3351
|
+
val: { type: B.number, value: n, location: _, style: p.val },
|
3355
3352
|
err: null
|
3356
3353
|
};
|
3357
3354
|
} else {
|
3358
|
-
if (
|
3355
|
+
if (A.length === 0)
|
3359
3356
|
return this.error(x.EXPECT_DATE_TIME_SKELETON, _);
|
3360
|
-
var v =
|
3361
|
-
this.locale && (v = ti(
|
3357
|
+
var v = A;
|
3358
|
+
this.locale && (v = ti(A, this.locale));
|
3362
3359
|
var f = {
|
3363
3360
|
type: me.dateTime,
|
3364
3361
|
pattern: v,
|
3365
3362
|
location: l.styleLocation,
|
3366
3363
|
parsedOptions: this.shouldParseSkeletons ? Zn(v) : {}
|
3367
|
-
},
|
3364
|
+
}, P = a === "date" ? B.date : B.time;
|
3368
3365
|
return {
|
3369
|
-
val: { type:
|
3366
|
+
val: { type: P, value: n, location: _, style: f },
|
3370
3367
|
err: null
|
3371
3368
|
};
|
3372
3369
|
}
|
3373
3370
|
}
|
3374
3371
|
return {
|
3375
3372
|
val: {
|
3376
|
-
type: a === "number" ?
|
3373
|
+
type: a === "number" ? B.number : a === "date" ? B.date : B.time,
|
3377
3374
|
value: n,
|
3378
3375
|
location: _,
|
3379
|
-
style: (
|
3376
|
+
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
3380
3377
|
},
|
3381
3378
|
err: null
|
3382
3379
|
};
|
@@ -3384,49 +3381,49 @@ var bi = (
|
|
3384
3381
|
case "plural":
|
3385
3382
|
case "selectordinal":
|
3386
3383
|
case "select": {
|
3387
|
-
var
|
3384
|
+
var w = this.clonePosition();
|
3388
3385
|
if (this.bumpSpace(), !this.bumpIf(","))
|
3389
|
-
return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS, E(
|
3386
|
+
return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS, E(w, S({}, w)));
|
3390
3387
|
this.bumpSpace();
|
3391
|
-
var
|
3392
|
-
if (a !== "select" &&
|
3388
|
+
var L = this.parseIdentifierIfPossible(), I = 0;
|
3389
|
+
if (a !== "select" && L.value === "offset") {
|
3393
3390
|
if (!this.bumpIf(":"))
|
3394
3391
|
return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E(this.clonePosition(), this.clonePosition()));
|
3395
3392
|
this.bumpSpace();
|
3396
3393
|
var p = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
3397
3394
|
if (p.err)
|
3398
3395
|
return p;
|
3399
|
-
this.bumpSpace(),
|
3396
|
+
this.bumpSpace(), L = this.parseIdentifierIfPossible(), I = p.val;
|
3400
3397
|
}
|
3401
|
-
var
|
3402
|
-
if (
|
3403
|
-
return
|
3404
|
-
var
|
3405
|
-
if (
|
3406
|
-
return
|
3407
|
-
var
|
3398
|
+
var F = this.tryParsePluralOrSelectOptions(t, a, r, L);
|
3399
|
+
if (F.err)
|
3400
|
+
return F;
|
3401
|
+
var y = this.tryParseArgumentClose(i);
|
3402
|
+
if (y.err)
|
3403
|
+
return y;
|
3404
|
+
var z = E(i, this.clonePosition());
|
3408
3405
|
return a === "select" ? {
|
3409
3406
|
val: {
|
3410
|
-
type:
|
3407
|
+
type: B.select,
|
3411
3408
|
value: n,
|
3412
|
-
options:
|
3413
|
-
location:
|
3409
|
+
options: Xt(F.val),
|
3410
|
+
location: z
|
3414
3411
|
},
|
3415
3412
|
err: null
|
3416
3413
|
} : {
|
3417
3414
|
val: {
|
3418
|
-
type:
|
3415
|
+
type: B.plural,
|
3419
3416
|
value: n,
|
3420
|
-
options:
|
3421
|
-
offset:
|
3417
|
+
options: Xt(F.val),
|
3418
|
+
offset: I,
|
3422
3419
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
3423
|
-
location:
|
3420
|
+
location: z
|
3424
3421
|
},
|
3425
3422
|
err: null
|
3426
3423
|
};
|
3427
3424
|
}
|
3428
3425
|
default:
|
3429
|
-
return this.error(x.INVALID_ARGUMENT_TYPE, E(
|
3426
|
+
return this.error(x.INVALID_ARGUMENT_TYPE, E(s, u));
|
3430
3427
|
}
|
3431
3428
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
3432
3429
|
return this.isEOF() || this.char() !== 125 ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, E(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
@@ -3482,7 +3479,7 @@ var bi = (
|
|
3482
3479
|
err: null
|
3483
3480
|
};
|
3484
3481
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
3485
|
-
for (var
|
3482
|
+
for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), l = i.value, h = i.location; ; ) {
|
3486
3483
|
if (l.length === 0) {
|
3487
3484
|
var p = this.clonePosition();
|
3488
3485
|
if (r !== "select" && this.bumpIf("=")) {
|
@@ -3495,37 +3492,37 @@ var bi = (
|
|
3495
3492
|
}
|
3496
3493
|
if (u.has(l))
|
3497
3494
|
return this.error(r === "select" ? x.DUPLICATE_SELECT_ARGUMENT_SELECTOR : x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
3498
|
-
l === "other" && (
|
3499
|
-
var
|
3495
|
+
l === "other" && (s = !0), this.bumpSpace();
|
3496
|
+
var g = this.clonePosition();
|
3500
3497
|
if (!this.bumpIf("{"))
|
3501
3498
|
return this.error(r === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, E(this.clonePosition(), this.clonePosition()));
|
3502
|
-
var
|
3503
|
-
if (
|
3504
|
-
return
|
3505
|
-
var _ = this.tryParseArgumentClose(
|
3499
|
+
var y = this.parseMessage(t + 1, r, n);
|
3500
|
+
if (y.err)
|
3501
|
+
return y;
|
3502
|
+
var _ = this.tryParseArgumentClose(g);
|
3506
3503
|
if (_.err)
|
3507
3504
|
return _;
|
3508
3505
|
a.push([
|
3509
3506
|
l,
|
3510
3507
|
{
|
3511
|
-
value:
|
3512
|
-
location: E(
|
3508
|
+
value: y.val,
|
3509
|
+
location: E(g, this.clonePosition())
|
3513
3510
|
}
|
3514
|
-
]), u.add(l), this.bumpSpace(),
|
3511
|
+
]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, h = o.location;
|
3515
3512
|
}
|
3516
|
-
return a.length === 0 ? this.error(r === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR : x.EXPECT_PLURAL_ARGUMENT_SELECTOR, E(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !
|
3513
|
+
return a.length === 0 ? this.error(r === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR : x.EXPECT_PLURAL_ARGUMENT_SELECTOR, E(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(x.MISSING_OTHER_CLAUSE, E(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
3517
3514
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
3518
3515
|
var n = 1, i = this.clonePosition();
|
3519
3516
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
3520
|
-
for (var
|
3517
|
+
for (var o = !1, s = 0; !this.isEOF(); ) {
|
3521
3518
|
var a = this.char();
|
3522
3519
|
if (a >= 48 && a <= 57)
|
3523
|
-
|
3520
|
+
o = !0, s = s * 10 + (a - 48), this.bump();
|
3524
3521
|
else
|
3525
3522
|
break;
|
3526
3523
|
}
|
3527
3524
|
var u = E(i, this.clonePosition());
|
3528
|
-
return
|
3525
|
+
return o ? (s *= n, fi(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
|
3529
3526
|
}, e.prototype.offset = function() {
|
3530
3527
|
return this.position.offset;
|
3531
3528
|
}, e.prototype.isEOF = function() {
|
@@ -3540,7 +3537,7 @@ var bi = (
|
|
3540
3537
|
var t = this.position.offset;
|
3541
3538
|
if (t >= this.message.length)
|
3542
3539
|
throw Error("out of bound");
|
3543
|
-
var r =
|
3540
|
+
var r = Pr(this.message, t);
|
3544
3541
|
if (r === void 0)
|
3545
3542
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3546
3543
|
return r;
|
@@ -3559,7 +3556,7 @@ var bi = (
|
|
3559
3556
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
3560
3557
|
}
|
3561
3558
|
}, e.prototype.bumpIf = function(t) {
|
3562
|
-
if (
|
3559
|
+
if (Vt(this.message, t, this.offset())) {
|
3563
3560
|
for (var r = 0; r < t.length; r++)
|
3564
3561
|
this.bump();
|
3565
3562
|
return !0;
|
@@ -3581,7 +3578,7 @@ var bi = (
|
|
3581
3578
|
break;
|
3582
3579
|
}
|
3583
3580
|
}, e.prototype.bumpSpace = function() {
|
3584
|
-
for (; !this.isEOF() &&
|
3581
|
+
for (; !this.isEOF() && Br(this.char()); )
|
3585
3582
|
this.bump();
|
3586
3583
|
}, e.prototype.peek = function() {
|
3587
3584
|
if (this.isEOF())
|
@@ -3594,16 +3591,16 @@ var bi = (
|
|
3594
3591
|
function pt(e) {
|
3595
3592
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3596
3593
|
}
|
3597
|
-
function
|
3594
|
+
function gi(e) {
|
3598
3595
|
return pt(e) || e === 47;
|
3599
3596
|
}
|
3600
3597
|
function vi(e) {
|
3601
3598
|
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;
|
3602
3599
|
}
|
3603
|
-
function
|
3600
|
+
function Br(e) {
|
3604
3601
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3605
3602
|
}
|
3606
|
-
function
|
3603
|
+
function yi(e) {
|
3607
3604
|
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;
|
3608
3605
|
}
|
3609
3606
|
function dt(e) {
|
@@ -3611,7 +3608,7 @@ function dt(e) {
|
|
3611
3608
|
if (delete t.location, _r(t) || xr(t))
|
3612
3609
|
for (var r in t.options)
|
3613
3610
|
delete t.options[r].location, dt(t.options[r].value);
|
3614
|
-
else
|
3611
|
+
else gr(t) && Sr(t.style) || (vr(t) || yr(t)) && ut(t.style) ? delete t.style.location : Er(t) && dt(t.children);
|
3615
3612
|
});
|
3616
3613
|
}
|
3617
3614
|
function _i(e, t) {
|
@@ -3624,7 +3621,7 @@ function _i(e, t) {
|
|
3624
3621
|
return t != null && t.captureLocation || dt(r.val), r.val;
|
3625
3622
|
}
|
3626
3623
|
function qe(e, t) {
|
3627
|
-
var r = t && t.cache ? t.cache :
|
3624
|
+
var r = t && t.cache ? t.cache : Hi, n = t && t.serializer ? t.serializer : Ti, i = t && t.strategy ? t.strategy : Ei;
|
3628
3625
|
return i(e, {
|
3629
3626
|
cache: r,
|
3630
3627
|
serializer: n
|
@@ -3633,208 +3630,208 @@ function qe(e, t) {
|
|
3633
3630
|
function xi(e) {
|
3634
3631
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
3635
3632
|
}
|
3636
|
-
function
|
3637
|
-
var i = xi(n) ? n : r(n),
|
3638
|
-
return typeof
|
3633
|
+
function Fr(e, t, r, n) {
|
3634
|
+
var i = xi(n) ? n : r(n), o = t.get(i);
|
3635
|
+
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
3639
3636
|
}
|
3640
|
-
function
|
3641
|
-
var n = Array.prototype.slice.call(arguments, 3), i = r(n),
|
3642
|
-
return typeof
|
3637
|
+
function Or(e, t, r) {
|
3638
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
3639
|
+
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
3643
3640
|
}
|
3644
3641
|
function vt(e, t, r, n, i) {
|
3645
3642
|
return r.bind(t, e, n, i);
|
3646
3643
|
}
|
3647
3644
|
function Ei(e, t) {
|
3648
|
-
var r = e.length === 1 ?
|
3645
|
+
var r = e.length === 1 ? Fr : Or;
|
3649
3646
|
return vt(e, this, r, t.cache.create(), t.serializer);
|
3650
3647
|
}
|
3651
|
-
function ji(e, t) {
|
3652
|
-
return vt(e, this, Fr, t.cache.create(), t.serializer);
|
3653
|
-
}
|
3654
3648
|
function Si(e, t) {
|
3655
|
-
return vt(e, this,
|
3649
|
+
return vt(e, this, Or, t.cache.create(), t.serializer);
|
3650
|
+
}
|
3651
|
+
function wi(e, t) {
|
3652
|
+
return vt(e, this, Fr, t.cache.create(), t.serializer);
|
3656
3653
|
}
|
3657
|
-
var
|
3654
|
+
var Ti = function() {
|
3658
3655
|
return JSON.stringify(arguments);
|
3659
3656
|
};
|
3660
|
-
function
|
3657
|
+
function yt() {
|
3661
3658
|
this.cache = /* @__PURE__ */ Object.create(null);
|
3662
3659
|
}
|
3663
|
-
|
3660
|
+
yt.prototype.get = function(e) {
|
3664
3661
|
return this.cache[e];
|
3665
3662
|
};
|
3666
|
-
|
3663
|
+
yt.prototype.set = function(e, t) {
|
3667
3664
|
this.cache[e] = t;
|
3668
3665
|
};
|
3669
|
-
var
|
3666
|
+
var Hi = {
|
3670
3667
|
create: function() {
|
3671
|
-
return new
|
3668
|
+
return new yt();
|
3672
3669
|
}
|
3673
3670
|
}, Ye = {
|
3674
|
-
variadic:
|
3675
|
-
monadic:
|
3671
|
+
variadic: Si,
|
3672
|
+
monadic: wi
|
3676
3673
|
}, be;
|
3677
3674
|
(function(e) {
|
3678
3675
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3679
3676
|
})(be || (be = {}));
|
3680
|
-
var
|
3677
|
+
var je = (
|
3681
3678
|
/** @class */
|
3682
3679
|
function(e) {
|
3683
|
-
|
3680
|
+
W(t, e);
|
3684
3681
|
function t(r, n, i) {
|
3685
|
-
var
|
3686
|
-
return
|
3682
|
+
var o = e.call(this, r) || this;
|
3683
|
+
return o.code = n, o.originalMessage = i, o;
|
3687
3684
|
}
|
3688
3685
|
return t.prototype.toString = function() {
|
3689
3686
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3690
3687
|
}, t;
|
3691
3688
|
}(Error)
|
3692
|
-
),
|
3689
|
+
), zt = (
|
3693
3690
|
/** @class */
|
3694
3691
|
function(e) {
|
3695
|
-
|
3696
|
-
function t(r, n, i,
|
3697
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), be.INVALID_VALUE,
|
3692
|
+
W(t, e);
|
3693
|
+
function t(r, n, i, o) {
|
3694
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), be.INVALID_VALUE, o) || this;
|
3698
3695
|
}
|
3699
3696
|
return t;
|
3700
|
-
}(
|
3701
|
-
),
|
3697
|
+
}(je)
|
3698
|
+
), Ai = (
|
3702
3699
|
/** @class */
|
3703
3700
|
function(e) {
|
3704
|
-
|
3701
|
+
W(t, e);
|
3705
3702
|
function t(r, n, i) {
|
3706
3703
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), be.INVALID_VALUE, i) || this;
|
3707
3704
|
}
|
3708
3705
|
return t;
|
3709
|
-
}(
|
3710
|
-
),
|
3706
|
+
}(je)
|
3707
|
+
), Pi = (
|
3711
3708
|
/** @class */
|
3712
3709
|
function(e) {
|
3713
|
-
|
3710
|
+
W(t, e);
|
3714
3711
|
function t(r, n) {
|
3715
3712
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), be.MISSING_VALUE, n) || this;
|
3716
3713
|
}
|
3717
3714
|
return t;
|
3718
|
-
}(
|
3719
|
-
),
|
3715
|
+
}(je)
|
3716
|
+
), N;
|
3720
3717
|
(function(e) {
|
3721
3718
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3722
|
-
})(
|
3723
|
-
function
|
3719
|
+
})(N || (N = {}));
|
3720
|
+
function Ci(e) {
|
3724
3721
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3725
3722
|
var n = t[t.length - 1];
|
3726
|
-
return !n || n.type !==
|
3723
|
+
return !n || n.type !== N.literal || r.type !== N.literal ? t.push(r) : n.value += r.value, t;
|
3727
3724
|
}, []);
|
3728
3725
|
}
|
3729
|
-
function
|
3726
|
+
function Bi(e) {
|
3730
3727
|
return typeof e == "function";
|
3731
3728
|
}
|
3732
|
-
function
|
3733
|
-
if (e.length === 1 &&
|
3729
|
+
function Me(e, t, r, n, i, o, s) {
|
3730
|
+
if (e.length === 1 && Ut(e[0]))
|
3734
3731
|
return [
|
3735
3732
|
{
|
3736
|
-
type:
|
3733
|
+
type: N.literal,
|
3737
3734
|
value: e[0].value
|
3738
3735
|
}
|
3739
3736
|
];
|
3740
3737
|
for (var a = [], u = 0, l = e; u < l.length; u++) {
|
3741
3738
|
var h = l[u];
|
3742
|
-
if (
|
3739
|
+
if (Ut(h)) {
|
3743
3740
|
a.push({
|
3744
|
-
type:
|
3741
|
+
type: N.literal,
|
3745
3742
|
value: h.value
|
3746
3743
|
});
|
3747
3744
|
continue;
|
3748
3745
|
}
|
3749
|
-
if (
|
3750
|
-
typeof
|
3751
|
-
type:
|
3752
|
-
value: r.getNumberFormat(t).format(
|
3746
|
+
if (Wn(h)) {
|
3747
|
+
typeof o == "number" && a.push({
|
3748
|
+
type: N.literal,
|
3749
|
+
value: r.getNumberFormat(t).format(o)
|
3753
3750
|
});
|
3754
3751
|
continue;
|
3755
3752
|
}
|
3756
3753
|
var p = h.value;
|
3757
3754
|
if (!(i && p in i))
|
3758
|
-
throw new
|
3755
|
+
throw new Pi(p, s);
|
3759
3756
|
var f = i[p];
|
3760
|
-
if (
|
3757
|
+
if (Xn(h)) {
|
3761
3758
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
3762
|
-
type: typeof f == "string" ?
|
3759
|
+
type: typeof f == "string" ? N.literal : N.object,
|
3763
3760
|
value: f
|
3764
3761
|
});
|
3765
3762
|
continue;
|
3766
3763
|
}
|
3767
3764
|
if (vr(h)) {
|
3768
|
-
var
|
3765
|
+
var g = typeof h.style == "string" ? n.date[h.style] : ut(h.style) ? h.style.parsedOptions : void 0;
|
3769
3766
|
a.push({
|
3770
|
-
type:
|
3771
|
-
value: r.getDateTimeFormat(t,
|
3767
|
+
type: N.literal,
|
3768
|
+
value: r.getDateTimeFormat(t, g).format(f)
|
3772
3769
|
});
|
3773
3770
|
continue;
|
3774
3771
|
}
|
3775
|
-
if (
|
3776
|
-
var
|
3772
|
+
if (yr(h)) {
|
3773
|
+
var g = typeof h.style == "string" ? n.time[h.style] : ut(h.style) ? h.style.parsedOptions : n.time.medium;
|
3777
3774
|
a.push({
|
3778
|
-
type:
|
3779
|
-
value: r.getDateTimeFormat(t,
|
3775
|
+
type: N.literal,
|
3776
|
+
value: r.getDateTimeFormat(t, g).format(f)
|
3780
3777
|
});
|
3781
3778
|
continue;
|
3782
3779
|
}
|
3783
|
-
if (
|
3784
|
-
var
|
3785
|
-
|
3786
|
-
type:
|
3787
|
-
value: r.getNumberFormat(t,
|
3780
|
+
if (gr(h)) {
|
3781
|
+
var g = typeof h.style == "string" ? n.number[h.style] : Sr(h.style) ? h.style.parsedOptions : void 0;
|
3782
|
+
g && g.scale && (f = f * (g.scale || 1)), a.push({
|
3783
|
+
type: N.literal,
|
3784
|
+
value: r.getNumberFormat(t, g).format(f)
|
3788
3785
|
});
|
3789
3786
|
continue;
|
3790
3787
|
}
|
3791
3788
|
if (Er(h)) {
|
3792
|
-
var
|
3793
|
-
if (!
|
3794
|
-
throw new
|
3795
|
-
var v =
|
3796
|
-
return
|
3789
|
+
var y = h.children, _ = h.value, A = i[_];
|
3790
|
+
if (!Bi(A))
|
3791
|
+
throw new Ai(_, "function", s);
|
3792
|
+
var v = Me(y, t, r, n, i, o), P = A(v.map(function(I) {
|
3793
|
+
return I.value;
|
3797
3794
|
}));
|
3798
|
-
Array.isArray(
|
3795
|
+
Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(I) {
|
3799
3796
|
return {
|
3800
|
-
type: typeof
|
3801
|
-
value:
|
3797
|
+
type: typeof I == "string" ? N.literal : N.object,
|
3798
|
+
value: I
|
3802
3799
|
};
|
3803
3800
|
}));
|
3804
3801
|
}
|
3805
3802
|
if (_r(h)) {
|
3806
|
-
var
|
3807
|
-
if (!
|
3808
|
-
throw new
|
3809
|
-
a.push.apply(a,
|
3803
|
+
var w = h.options[f] || h.options.other;
|
3804
|
+
if (!w)
|
3805
|
+
throw new zt(h.value, f, Object.keys(h.options), s);
|
3806
|
+
a.push.apply(a, Me(w.value, t, r, n, i));
|
3810
3807
|
continue;
|
3811
3808
|
}
|
3812
3809
|
if (xr(h)) {
|
3813
|
-
var
|
3814
|
-
if (!
|
3810
|
+
var w = h.options["=".concat(f)];
|
3811
|
+
if (!w) {
|
3815
3812
|
if (!Intl.PluralRules)
|
3816
|
-
throw new
|
3813
|
+
throw new je(`Intl.PluralRules is not available in this environment.
|
3817
3814
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3818
|
-
`, be.MISSING_INTL_API,
|
3819
|
-
var
|
3820
|
-
|
3815
|
+
`, be.MISSING_INTL_API, s);
|
3816
|
+
var L = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
3817
|
+
w = h.options[L] || h.options.other;
|
3821
3818
|
}
|
3822
|
-
if (!
|
3823
|
-
throw new
|
3824
|
-
a.push.apply(a,
|
3819
|
+
if (!w)
|
3820
|
+
throw new zt(h.value, f, Object.keys(h.options), s);
|
3821
|
+
a.push.apply(a, Me(w.value, t, r, n, i, f - (h.offset || 0)));
|
3825
3822
|
continue;
|
3826
3823
|
}
|
3827
3824
|
}
|
3828
|
-
return
|
3825
|
+
return Ci(a);
|
3829
3826
|
}
|
3830
|
-
function
|
3827
|
+
function Fi(e, t) {
|
3831
3828
|
return t ? S(S(S({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3832
3829
|
return r[n] = S(S({}, e[n]), t[n] || {}), r;
|
3833
3830
|
}, {})) : e;
|
3834
3831
|
}
|
3835
|
-
function
|
3832
|
+
function Oi(e, t) {
|
3836
3833
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3837
|
-
return r[n] =
|
3834
|
+
return r[n] = Fi(e[n], t[n]), r;
|
3838
3835
|
}, S({}, e)) : e;
|
3839
3836
|
}
|
3840
3837
|
function Ke(e) {
|
@@ -3851,7 +3848,7 @@ function Ke(e) {
|
|
3851
3848
|
}
|
3852
3849
|
};
|
3853
3850
|
}
|
3854
|
-
function
|
3851
|
+
function Ii(e) {
|
3855
3852
|
return e === void 0 && (e = {
|
3856
3853
|
number: {},
|
3857
3854
|
dateTime: {},
|
@@ -3883,44 +3880,44 @@ function Oi(e) {
|
|
3883
3880
|
})
|
3884
3881
|
};
|
3885
3882
|
}
|
3886
|
-
var
|
3883
|
+
var Li = (
|
3887
3884
|
/** @class */
|
3888
3885
|
function() {
|
3889
3886
|
function e(t, r, n, i) {
|
3890
|
-
var
|
3887
|
+
var o = this;
|
3891
3888
|
if (r === void 0 && (r = e.defaultLocale), this.formatterCache = {
|
3892
3889
|
number: {},
|
3893
3890
|
dateTime: {},
|
3894
3891
|
pluralRules: {}
|
3895
3892
|
}, this.format = function(u) {
|
3896
|
-
var l =
|
3893
|
+
var l = o.formatToParts(u);
|
3897
3894
|
if (l.length === 1)
|
3898
3895
|
return l[0].value;
|
3899
3896
|
var h = l.reduce(function(p, f) {
|
3900
|
-
return !p.length || f.type !==
|
3897
|
+
return !p.length || f.type !== N.literal || typeof p[p.length - 1] != "string" ? p.push(f.value) : p[p.length - 1] += f.value, p;
|
3901
3898
|
}, []);
|
3902
3899
|
return h.length <= 1 ? h[0] || "" : h;
|
3903
3900
|
}, this.formatToParts = function(u) {
|
3904
|
-
return
|
3901
|
+
return Me(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
|
3905
3902
|
}, this.resolvedOptions = function() {
|
3906
3903
|
var u;
|
3907
3904
|
return {
|
3908
|
-
locale: ((u =
|
3905
|
+
locale: ((u = o.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
3909
3906
|
};
|
3910
3907
|
}, this.getAst = function() {
|
3911
|
-
return
|
3908
|
+
return o.ast;
|
3912
3909
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
3913
3910
|
if (this.message = t, !e.__parse)
|
3914
3911
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3915
|
-
var
|
3916
|
-
|
3917
|
-
var a = dn(
|
3912
|
+
var s = i || {};
|
3913
|
+
s.formatters;
|
3914
|
+
var a = dn(s, ["formatters"]);
|
3918
3915
|
this.ast = e.__parse(t, S(S({}, a), { locale: this.resolvedLocale }));
|
3919
3916
|
} else
|
3920
3917
|
this.ast = t;
|
3921
3918
|
if (!Array.isArray(this.ast))
|
3922
3919
|
throw new TypeError("A message must be provided as a String or AST.");
|
3923
|
-
this.formats =
|
3920
|
+
this.formats = Oi(e.formats, n), this.formatters = i && i.formatters || Ii(this.formatterCache);
|
3924
3921
|
}
|
3925
3922
|
return Object.defineProperty(e, "defaultLocale", {
|
3926
3923
|
get: function() {
|
@@ -3994,7 +3991,7 @@ var Ii = (
|
|
3994
3991
|
}, e;
|
3995
3992
|
}()
|
3996
3993
|
);
|
3997
|
-
function
|
3994
|
+
function Ni(e, t) {
|
3998
3995
|
if (t == null)
|
3999
3996
|
return;
|
4000
3997
|
if (t in e)
|
@@ -4004,9 +4001,9 @@ function Li(e, t) {
|
|
4004
4001
|
for (let i = 0; i < r.length; i++)
|
4005
4002
|
if (typeof n == "object") {
|
4006
4003
|
if (i > 0) {
|
4007
|
-
const
|
4008
|
-
if (
|
4009
|
-
n = n[
|
4004
|
+
const o = r.slice(i, r.length).join(".");
|
4005
|
+
if (o in n) {
|
4006
|
+
n = n[o];
|
4010
4007
|
break;
|
4011
4008
|
}
|
4012
4009
|
}
|
@@ -4015,92 +4012,92 @@ function Li(e, t) {
|
|
4015
4012
|
n = void 0;
|
4016
4013
|
return n;
|
4017
4014
|
}
|
4018
|
-
const J = {},
|
4015
|
+
const J = {}, Mi = (e, t, r) => r && (t in J || (J[t] = {}), e in J[t] || (J[t][e] = r), r), Ir = (e, t) => {
|
4019
4016
|
if (t == null)
|
4020
4017
|
return;
|
4021
4018
|
if (t in J && e in J[t])
|
4022
4019
|
return J[t][e];
|
4023
|
-
const r =
|
4020
|
+
const r = Ve(t);
|
4024
4021
|
for (let n = 0; n < r.length; n++) {
|
4025
|
-
const i = r[n],
|
4026
|
-
if (
|
4027
|
-
return
|
4022
|
+
const i = r[n], o = Di(i, e);
|
4023
|
+
if (o)
|
4024
|
+
return Mi(e, t, o);
|
4028
4025
|
}
|
4029
4026
|
};
|
4030
4027
|
let _t;
|
4031
|
-
const
|
4032
|
-
function
|
4028
|
+
const ye = ke({});
|
4029
|
+
function Ri(e) {
|
4033
4030
|
return _t[e] || null;
|
4034
4031
|
}
|
4035
|
-
function
|
4032
|
+
function Lr(e) {
|
4036
4033
|
return e in _t;
|
4037
4034
|
}
|
4038
|
-
function
|
4039
|
-
if (!
|
4035
|
+
function Di(e, t) {
|
4036
|
+
if (!Lr(e))
|
4040
4037
|
return null;
|
4041
|
-
const r =
|
4042
|
-
return
|
4038
|
+
const r = Ri(e);
|
4039
|
+
return Ni(r, t);
|
4043
4040
|
}
|
4044
|
-
function
|
4041
|
+
function $i(e) {
|
4045
4042
|
if (e == null)
|
4046
4043
|
return;
|
4047
|
-
const t =
|
4044
|
+
const t = Ve(e);
|
4048
4045
|
for (let r = 0; r < t.length; r++) {
|
4049
4046
|
const n = t[r];
|
4050
|
-
if (
|
4047
|
+
if (Lr(n))
|
4051
4048
|
return n;
|
4052
4049
|
}
|
4053
4050
|
}
|
4054
|
-
function
|
4055
|
-
delete J[e],
|
4051
|
+
function Nr(e, ...t) {
|
4052
|
+
delete J[e], ye.update((r) => (r[e] = Vn.all([r[e] || {}, ...t]), r));
|
4056
4053
|
}
|
4057
4054
|
ve(
|
4058
|
-
[
|
4055
|
+
[ye],
|
4059
4056
|
([e]) => Object.keys(e)
|
4060
4057
|
);
|
4061
|
-
|
4062
|
-
const
|
4063
|
-
function
|
4064
|
-
|
4058
|
+
ye.subscribe((e) => _t = e);
|
4059
|
+
const Re = {};
|
4060
|
+
function Ui(e, t) {
|
4061
|
+
Re[e].delete(t), Re[e].size === 0 && delete Re[e];
|
4065
4062
|
}
|
4066
|
-
function
|
4067
|
-
return
|
4063
|
+
function Mr(e) {
|
4064
|
+
return Re[e];
|
4068
4065
|
}
|
4069
|
-
function
|
4070
|
-
return
|
4071
|
-
const r =
|
4066
|
+
function Gi(e) {
|
4067
|
+
return Ve(e).map((t) => {
|
4068
|
+
const r = Mr(t);
|
4072
4069
|
return [t, r ? [...r] : []];
|
4073
4070
|
}).filter(([, t]) => t.length > 0);
|
4074
4071
|
}
|
4075
4072
|
function mt(e) {
|
4076
|
-
return e == null ? !1 :
|
4073
|
+
return e == null ? !1 : Ve(e).some(
|
4077
4074
|
(t) => {
|
4078
4075
|
var r;
|
4079
|
-
return (r =
|
4076
|
+
return (r = Mr(t)) == null ? void 0 : r.size;
|
4080
4077
|
}
|
4081
4078
|
);
|
4082
4079
|
}
|
4083
|
-
function
|
4080
|
+
function ki(e, t) {
|
4084
4081
|
return Promise.all(
|
4085
|
-
t.map((n) => (
|
4086
|
-
).then((n) =>
|
4082
|
+
t.map((n) => (Ui(e, n), n().then((i) => i.default || i)))
|
4083
|
+
).then((n) => Nr(e, ...n));
|
4087
4084
|
}
|
4088
4085
|
const xe = {};
|
4089
|
-
function
|
4086
|
+
function Rr(e) {
|
4090
4087
|
if (!mt(e))
|
4091
4088
|
return e in xe ? xe[e] : Promise.resolve();
|
4092
|
-
const t =
|
4089
|
+
const t = Gi(e);
|
4093
4090
|
return xe[e] = Promise.all(
|
4094
4091
|
t.map(
|
4095
|
-
([r, n]) =>
|
4092
|
+
([r, n]) => ki(r, n)
|
4096
4093
|
)
|
4097
4094
|
).then(() => {
|
4098
4095
|
if (mt(e))
|
4099
|
-
return
|
4096
|
+
return Rr(e);
|
4100
4097
|
delete xe[e];
|
4101
4098
|
}), xe[e];
|
4102
4099
|
}
|
4103
|
-
const
|
4100
|
+
const ji = {
|
4104
4101
|
number: {
|
4105
4102
|
scientific: { notation: "scientific" },
|
4106
4103
|
engineering: { notation: "engineering" },
|
@@ -4129,150 +4126,150 @@ const Gi = {
|
|
4129
4126
|
timeZoneName: "short"
|
4130
4127
|
}
|
4131
4128
|
}
|
4132
|
-
},
|
4129
|
+
}, Vi = {
|
4133
4130
|
fallbackLocale: null,
|
4134
4131
|
loadingDelay: 200,
|
4135
|
-
formats:
|
4132
|
+
formats: ji,
|
4136
4133
|
warnOnMissingMessages: !0,
|
4137
4134
|
handleMissingMessage: void 0,
|
4138
4135
|
ignoreTag: !0
|
4139
|
-
},
|
4140
|
-
function
|
4141
|
-
return
|
4136
|
+
}, Xi = Vi;
|
4137
|
+
function ge() {
|
4138
|
+
return Xi;
|
4142
4139
|
}
|
4143
|
-
const et =
|
4144
|
-
var
|
4140
|
+
const et = ke(!1);
|
4141
|
+
var Wi = Object.defineProperty, zi = Object.defineProperties, Zi = Object.getOwnPropertyDescriptors, Zt = Object.getOwnPropertySymbols, Ji = Object.prototype.hasOwnProperty, Qi = Object.prototype.propertyIsEnumerable, Jt = (e, t, r) => t in e ? Wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qi = (e, t) => {
|
4145
4142
|
for (var r in t || (t = {}))
|
4146
4143
|
Ji.call(t, r) && Jt(e, r, t[r]);
|
4147
4144
|
if (Zt)
|
4148
4145
|
for (var r of Zt(t))
|
4149
4146
|
Qi.call(t, r) && Jt(e, r, t[r]);
|
4150
4147
|
return e;
|
4151
|
-
}, Yi = (e, t) =>
|
4148
|
+
}, Yi = (e, t) => zi(e, Zi(t));
|
4152
4149
|
let bt;
|
4153
|
-
const
|
4150
|
+
const $e = ke(null);
|
4154
4151
|
function Qt(e) {
|
4155
4152
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
4156
4153
|
}
|
4157
|
-
function
|
4154
|
+
function Ve(e, t = ge().fallbackLocale) {
|
4158
4155
|
const r = Qt(e);
|
4159
4156
|
return t ? [.../* @__PURE__ */ new Set([...r, ...Qt(t)])] : r;
|
4160
4157
|
}
|
4161
4158
|
function re() {
|
4162
4159
|
return bt != null ? bt : void 0;
|
4163
4160
|
}
|
4164
|
-
|
4161
|
+
$e.subscribe((e) => {
|
4165
4162
|
bt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
4166
4163
|
});
|
4167
4164
|
const Ki = (e) => {
|
4168
|
-
if (e &&
|
4169
|
-
const { loadingDelay: t } =
|
4165
|
+
if (e && $i(e) && mt(e)) {
|
4166
|
+
const { loadingDelay: t } = ge();
|
4170
4167
|
let r;
|
4171
4168
|
return typeof window != "undefined" && re() != null && t ? r = window.setTimeout(
|
4172
4169
|
() => et.set(!0),
|
4173
4170
|
t
|
4174
|
-
) : et.set(!0),
|
4175
|
-
|
4171
|
+
) : et.set(!0), Rr(e).then(() => {
|
4172
|
+
$e.set(e);
|
4176
4173
|
}).finally(() => {
|
4177
4174
|
clearTimeout(r), et.set(!1);
|
4178
4175
|
});
|
4179
4176
|
}
|
4180
|
-
return
|
4181
|
-
}, ee = Yi(qi({},
|
4177
|
+
return $e.set(e);
|
4178
|
+
}, ee = Yi(qi({}, $e), {
|
4182
4179
|
set: Ki
|
4183
|
-
}),
|
4180
|
+
}), Xe = (e) => {
|
4184
4181
|
const t = /* @__PURE__ */ Object.create(null);
|
4185
4182
|
return (n) => {
|
4186
4183
|
const i = JSON.stringify(n);
|
4187
4184
|
return i in t ? t[i] : t[i] = e(n);
|
4188
4185
|
};
|
4189
4186
|
};
|
4190
|
-
var
|
4187
|
+
var eo = Object.defineProperty, Ue = Object.getOwnPropertySymbols, Dr = Object.prototype.hasOwnProperty, $r = Object.prototype.propertyIsEnumerable, qt = (e, t, r) => t in e ? eo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, xt = (e, t) => {
|
4191
4188
|
for (var r in t || (t = {}))
|
4192
|
-
|
4193
|
-
if (
|
4194
|
-
for (var r of
|
4195
|
-
|
4189
|
+
Dr.call(t, r) && qt(e, r, t[r]);
|
4190
|
+
if (Ue)
|
4191
|
+
for (var r of Ue(t))
|
4192
|
+
$r.call(t, r) && qt(e, r, t[r]);
|
4196
4193
|
return e;
|
4197
4194
|
}, _e = (e, t) => {
|
4198
4195
|
var r = {};
|
4199
4196
|
for (var n in e)
|
4200
|
-
|
4201
|
-
if (e != null &&
|
4202
|
-
for (var n of
|
4203
|
-
t.indexOf(n) < 0 &&
|
4197
|
+
Dr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
4198
|
+
if (e != null && Ue)
|
4199
|
+
for (var n of Ue(e))
|
4200
|
+
t.indexOf(n) < 0 && $r.call(e, n) && (r[n] = e[n]);
|
4204
4201
|
return r;
|
4205
4202
|
};
|
4206
|
-
const
|
4207
|
-
const { formats: r } =
|
4203
|
+
const He = (e, t) => {
|
4204
|
+
const { formats: r } = ge();
|
4208
4205
|
if (e in r && t in r[e])
|
4209
4206
|
return r[e][t];
|
4210
4207
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
4211
|
-
},
|
4208
|
+
}, to = Xe(
|
4212
4209
|
(e) => {
|
4213
4210
|
var t = e, { locale: r, format: n } = t, i = _e(t, ["locale", "format"]);
|
4214
4211
|
if (r == null)
|
4215
4212
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
4216
|
-
return n && (i =
|
4213
|
+
return n && (i = He("number", n)), new Intl.NumberFormat(r, i);
|
4217
4214
|
}
|
4218
|
-
),
|
4215
|
+
), ro = Xe(
|
4219
4216
|
(e) => {
|
4220
4217
|
var t = e, { locale: r, format: n } = t, i = _e(t, ["locale", "format"]);
|
4221
4218
|
if (r == null)
|
4222
4219
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
4223
|
-
return n ? i =
|
4220
|
+
return n ? i = He("date", n) : Object.keys(i).length === 0 && (i = He("date", "short")), new Intl.DateTimeFormat(r, i);
|
4224
4221
|
}
|
4225
|
-
),
|
4222
|
+
), no = Xe(
|
4226
4223
|
(e) => {
|
4227
4224
|
var t = e, { locale: r, format: n } = t, i = _e(t, ["locale", "format"]);
|
4228
4225
|
if (r == null)
|
4229
4226
|
throw new Error(
|
4230
4227
|
'[svelte-i18n] A "locale" must be set to format time values'
|
4231
4228
|
);
|
4232
|
-
return n ? i =
|
4229
|
+
return n ? i = He("time", n) : Object.keys(i).length === 0 && (i = He("time", "short")), new Intl.DateTimeFormat(r, i);
|
4233
4230
|
}
|
4234
|
-
),
|
4231
|
+
), io = (e = {}) => {
|
4235
4232
|
var t = e, {
|
4236
4233
|
locale: r = re()
|
4237
4234
|
} = t, n = _e(t, [
|
4238
4235
|
"locale"
|
4239
4236
|
]);
|
4240
|
-
return
|
4241
|
-
},
|
4237
|
+
return to(xt({ locale: r }, n));
|
4238
|
+
}, oo = (e = {}) => {
|
4242
4239
|
var t = e, {
|
4243
4240
|
locale: r = re()
|
4244
4241
|
} = t, n = _e(t, [
|
4245
4242
|
"locale"
|
4246
4243
|
]);
|
4247
|
-
return
|
4248
|
-
},
|
4244
|
+
return ro(xt({ locale: r }, n));
|
4245
|
+
}, so = (e = {}) => {
|
4249
4246
|
var t = e, {
|
4250
4247
|
locale: r = re()
|
4251
4248
|
} = t, n = _e(t, [
|
4252
4249
|
"locale"
|
4253
4250
|
]);
|
4254
|
-
return
|
4255
|
-
},
|
4251
|
+
return no(xt({ locale: r }, n));
|
4252
|
+
}, ao = Xe(
|
4256
4253
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
4257
|
-
(e, t = re()) => new
|
4258
|
-
ignoreTag:
|
4254
|
+
(e, t = re()) => new Li(e, t, ge().formats, {
|
4255
|
+
ignoreTag: ge().ignoreTag
|
4259
4256
|
})
|
4260
|
-
),
|
4261
|
-
var r, n, i,
|
4262
|
-
let
|
4263
|
-
typeof e == "object" && (
|
4257
|
+
), lo = (e, t = {}) => {
|
4258
|
+
var r, n, i, o;
|
4259
|
+
let s = t;
|
4260
|
+
typeof e == "object" && (s = e, e = s.id);
|
4264
4261
|
const {
|
4265
4262
|
values: a,
|
4266
4263
|
locale: u = re(),
|
4267
4264
|
default: l
|
4268
|
-
} =
|
4265
|
+
} = s;
|
4269
4266
|
if (u == null)
|
4270
4267
|
throw new Error(
|
4271
4268
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
4272
4269
|
);
|
4273
|
-
let h =
|
4270
|
+
let h = Ir(e, u);
|
4274
4271
|
if (!h)
|
4275
|
-
h = (
|
4272
|
+
h = (o = (i = (n = (r = ge()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
4276
4273
|
else if (typeof h != "string")
|
4277
4274
|
return console.warn(
|
4278
4275
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
@@ -4281,7 +4278,7 @@ const Te = (e, t) => {
|
|
4281
4278
|
return h;
|
4282
4279
|
let p = h;
|
4283
4280
|
try {
|
4284
|
-
p =
|
4281
|
+
p = ao(h, u).format(a);
|
4285
4282
|
} catch (f) {
|
4286
4283
|
f instanceof Error && console.warn(
|
4287
4284
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -4289,16 +4286,16 @@ const Te = (e, t) => {
|
|
4289
4286
|
);
|
4290
4287
|
}
|
4291
4288
|
return p;
|
4292
|
-
},
|
4293
|
-
ve([ee], () =>
|
4294
|
-
ve([ee], () =>
|
4295
|
-
ve([ee], () =>
|
4296
|
-
ve([ee,
|
4297
|
-
window.emWidgets = { topic:
|
4298
|
-
const
|
4299
|
-
function
|
4289
|
+
}, uo = (e, t) => so(t).format(e), ho = (e, t) => oo(t).format(e), co = (e, t) => io(t).format(e), fo = (e, t = re()) => Ir(e, t), po = ve([ee, ye], () => lo);
|
4290
|
+
ve([ee], () => uo);
|
4291
|
+
ve([ee], () => ho);
|
4292
|
+
ve([ee], () => co);
|
4293
|
+
ve([ee, ye], () => fo);
|
4294
|
+
window.emWidgets = { topic: An };
|
4295
|
+
const mo = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)), bo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
4296
|
+
function Io(e, t) {
|
4300
4297
|
const r = window.navigator.userAgent;
|
4301
|
-
return
|
4298
|
+
return mo(r) ? t = e.filter((n) => {
|
4302
4299
|
if (n.gameModel && (n.gameModel.platform.includes("iPad") || n.gameModel.platform.includes("iPhone") || n.gameModel.platform.includes("Android")))
|
4303
4300
|
return n;
|
4304
4301
|
}) : t = e.filter((n) => {
|
@@ -4306,13 +4303,13 @@ function Os(e, t) {
|
|
4306
4303
|
return n;
|
4307
4304
|
}), t;
|
4308
4305
|
}
|
4309
|
-
function
|
4306
|
+
function go({ withLocale: e, translations: t }) {
|
4310
4307
|
ee.subscribe((r) => {
|
4311
|
-
r == null && (
|
4308
|
+
r == null && (ye.set(t), ee.set(e));
|
4312
4309
|
});
|
4313
4310
|
}
|
4314
4311
|
function Yt(e, t) {
|
4315
|
-
|
4312
|
+
Nr(e, t);
|
4316
4313
|
}
|
4317
4314
|
const Kt = {
|
4318
4315
|
en: {
|
@@ -4418,31 +4415,31 @@ const Kt = {
|
|
4418
4415
|
clear: "Borrar todo"
|
4419
4416
|
}
|
4420
4417
|
};
|
4421
|
-
function
|
4422
|
-
Zr(e, "svelte-
|
4418
|
+
function vo(e) {
|
4419
|
+
Zr(e, "svelte-1kkfwlf", '.SearchLoading{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.FilterContainer{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));position:relative;z-index:16}.FilterSelector{background-color:var(--emfe-w-color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;max-width:fit-content;cursor:pointer}.FilterSelector.FilterSelectorOpen{border-radius:5px 5px 0 0}.FilterMainArea{display:flex;align-items:center}.FilterMainArea svg{margin-right:16px}.FilterName{font-size:11px;line-height:12px;color:var(--emfe-w-color-gray-100, #E6E6E6);text-transform:uppercase}.FilterTextContainer{display:flex;flex-direction:column}.FilterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.FilterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:48px;margin-bottom:40px;overflow:hidden;margin:0}.FilterDropdownContainer.FilterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:20px}.FilterDropdown{width:100%;max-height:300px;display:flex;flex-direction:column;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none}.FilterDropdown::-webkit-scrollbar{display:none}.FilterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;padding:0 15px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.FilterItem input{cursor:pointer;margin-right:10px}.FilterItem:hover input~.FiltersCheckmark{background-color:transparent;border:1px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.FilterItem input:checked~.FiltersCheckmark{background-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.FilterItem .FiltersCheckmark{transition:all 0.05s ease-in;margin-right:15px}.FilterItem .FiltersCheckmark:after{content:"";position:absolute;left:9px;display:none}.FilterItem input:checked~.FiltersCheckmark:after{display:block}.FilterItem .FiltersCheckmark:after{left:8px;top:4px;width:5px;height:10px;border:1px solid solid var(--emfe-w-color-white, #FFFFFF);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0}.FilterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.FilterLabel .FiltersCheckmark{border-radius:8px;position:relative;height:22px;width:22px;min-width:22px;background-color:transparent;border:1px solid var(--emfe-w-color-white, #FFFFFF)}.FilterLabel .FilterItemLabel{width:100%;display:flex;justify-content:space-between}.FilterItemWithLogos label{height:70px;display:flex;justify-content:space-evenly;align-items:center}.FilterItemWithLogos label img{width:70px}.FilterLabel input:checked+span{font-weight:600}.FilterCounter{display:inline-flex;margin-left:10px;min-width:17px}.ClearFilters{margin:20px auto;border:0;color:#fff;background-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearFilters:disabled{background:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.FilterSelector{max-width:initial}.FilterDropdownContainer{width:100%;margin-bottom:20px}.FilterDropdown{margin-block-start:0;gap:14px}.FilterItemWithLogos label{justify-content:center}.FilerContainerSplit .FilterSelector{padding:7px}.FilerContainerSplit .FilterSelector .FilterCounter{margin-left:0}.FilerContainerSplit .FilterMainArea svg{margin:0 10px}.FilerContainerSplit .FilterDropdown{padding:0 5px;box-sizing:border-box}.FilerContainerSplit .FilterDropdownContainer{top:42px}.FilerContainerSplit .ClearFilters{padding:8px 20px;font-size:15px}.FilterLabel .FiltersCheckmark{margin-right:15px}.FilterItem.FilterItemWithLogos{display:flex;align-items:center;justify-content:center}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0 20px 0 0}.FilerContainerSplit .FilterItem label{padding:0;width:calc(100% - 10px);font-size:12px}.FilterItem label>*{pointer-events:none}}');
|
4423
4420
|
}
|
4424
4421
|
function er(e, t, r) {
|
4425
4422
|
const n = e.slice();
|
4426
4423
|
return n[36] = t[r], n[37] = t, n[38] = r, n;
|
4427
4424
|
}
|
4428
|
-
function
|
4429
|
-
let t, r, n, i,
|
4425
|
+
function yo(e) {
|
4426
|
+
let t, r, n, i, o, s, a, u, l = (
|
4430
4427
|
/*$_*/
|
4431
4428
|
e[11]("filterby") + ""
|
4432
|
-
), h, p, f,
|
4429
|
+
), h, p, f, g, y = (
|
4433
4430
|
/*$_*/
|
4434
4431
|
e[11]("providers") + ""
|
4435
|
-
), _,
|
4432
|
+
), _, A, v, P, w, L, I, F, z, V, q, Ae, G, ne = (
|
4436
4433
|
/*$_*/
|
4437
4434
|
e[11]("clear") + ""
|
4438
|
-
), ie, Y,
|
4439
|
-
function
|
4435
|
+
), ie, Y, oe, K, se, Pe;
|
4436
|
+
function Ce(d, H) {
|
4440
4437
|
return (
|
4441
4438
|
/*fullSelection*/
|
4442
|
-
d[7] ?
|
4439
|
+
d[7] ? Eo : xo
|
4443
4440
|
);
|
4444
4441
|
}
|
4445
|
-
let ae =
|
4442
|
+
let ae = Ce(e), M = ae(e), Z = Ft(
|
4446
4443
|
/*vendorArray*/
|
4447
4444
|
e[5]
|
4448
4445
|
), c = [];
|
@@ -4450,113 +4447,113 @@ function vs(e) {
|
|
4450
4447
|
c[d] = tr(er(e, Z, d));
|
4451
4448
|
return {
|
4452
4449
|
c() {
|
4453
|
-
t =
|
4450
|
+
t = C("div"), r = C("div"), n = C("div"), i = Ee("svg"), o = Ee("path"), s = k(), a = C("div"), u = C("span"), h = D(l), p = k(), f = C("div"), g = C("span"), _ = D(y), A = k(), M.c(), v = k(), P = C("span"), w = Ee("svg"), L = Ee("path"), z = k(), V = C("div"), q = C("ul");
|
4454
4451
|
for (let d = 0; d < c.length; d += 1)
|
4455
4452
|
c[d].c();
|
4456
|
-
|
4457
|
-
(e[4] ? "TriangleActive" : "")
|
4458
|
-
(e[4] ? "FilterSelectorOpen" : "")
|
4453
|
+
Ae = k(), G = C("button"), ie = D(ne), m(o, "id", "noun_filter_736223"), m(o, "d", "M12.2,22.2a1.018,1.018,0,0,1-.391-.091.939.939,0,0,1-.533-.857v-6.2L5.267,8.9A.95.95,0,0,1,5,8.225V7.149A.93.93,0,0,1,5.924,6.2H20.076A.93.93,0,0,1,21,7.149V8.225a.95.95,0,0,1-.267.675l-6.009,6.148V19.81a.981.981,0,0,1-.32.712l-1.6,1.423A.9.9,0,0,1,12.2,22.2ZM6,8.189,12,14.355a.95.95,0,0,1,.267.675v6.039l1.44-1.277v-4.78a.95.95,0,0,1,.267-.675L19.987,8.17V7.2H6Z"), m(o, "transform", "translate(-5 -6.2)"), m(o, "fill", "#fff"), m(i, "xmlns", "http://www.w3.org/2000/svg"), m(i, "width", "16"), m(i, "height", "16"), m(i, "viewBox", "0 0 16 16"), m(u, "class", "FilterName"), m(f, "class", "FilterValueContainer"), m(a, "class", "FilterTextContainer"), m(n, "class", "FilterMainArea"), m(L, "id", "arrow"), m(L, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), m(L, "transform", "translate(-274.511 -441.088)"), m(L, "fill", "#d1d1d1"), m(w, "xmlns", "http://www.w3.org/2000/svg"), m(w, "width", "14"), m(w, "height", "6.835"), m(w, "viewBox", "0 0 14 6.835"), m(P, "class", I = "TriangleInactive " + /*isFilterActive*/
|
4454
|
+
(e[4] ? "TriangleActive" : "")), m(r, "class", F = "FilterSelector " + /*isFilterActive*/
|
4455
|
+
(e[4] ? "FilterSelectorOpen" : "")), m(q, "class", "FilterDropdown"), m(G, "class", "ClearFilters"), G.disabled = Y = /*fullSelection*/
|
4459
4456
|
e[7] && /*selectedVendorArray*/
|
4460
4457
|
e[6].length != /*vendorArray*/
|
4461
|
-
e[5].length, m(
|
4462
|
-
(e[4] ? "FilterOpen" : "")
|
4458
|
+
e[5].length, m(V, "class", oe = "FilterDropdownContainer " + /*isFilterActive*/
|
4459
|
+
(e[4] ? "FilterOpen" : "")), m(t, "class", K = "FilterContainer " + /*addfilterselector*/
|
4463
4460
|
(e[0] == "true" && /*addsortingselector*/
|
4464
|
-
e[1] == "true" ? "FilerContainerSplit" : "")
|
4461
|
+
e[1] == "true" ? "FilerContainerSplit" : ""));
|
4465
4462
|
},
|
4466
|
-
m(d,
|
4467
|
-
|
4468
|
-
for (let
|
4469
|
-
c[
|
4470
|
-
b(
|
4471
|
-
|
4463
|
+
m(d, H) {
|
4464
|
+
j(d, t, H), b(t, r), b(r, n), b(n, i), b(i, o), b(n, s), b(n, a), b(a, u), b(u, h), b(a, p), b(a, f), b(f, g), b(g, _), b(f, A), M.m(f, null), b(r, v), b(r, P), b(P, w), b(w, L), b(t, z), b(t, V), b(V, q);
|
4465
|
+
for (let T = 0; T < c.length; T += 1)
|
4466
|
+
c[T] && c[T].m(q, null);
|
4467
|
+
b(V, Ae), b(V, G), b(G, ie), se || (Pe = [
|
4468
|
+
De(
|
4472
4469
|
r,
|
4473
4470
|
"click",
|
4474
4471
|
/*click_handler*/
|
4475
4472
|
e[22]
|
4476
4473
|
),
|
4477
|
-
|
4478
|
-
|
4474
|
+
De(
|
4475
|
+
G,
|
4479
4476
|
"click",
|
4480
4477
|
/*click_handler_2*/
|
4481
4478
|
e[25]
|
4482
4479
|
)
|
4483
|
-
],
|
4480
|
+
], se = !0);
|
4484
4481
|
},
|
4485
|
-
p(d,
|
4486
|
-
if (
|
4482
|
+
p(d, H) {
|
4483
|
+
if (H[0] & /*$_*/
|
4487
4484
|
2048 && l !== (l = /*$_*/
|
4488
|
-
d[11]("filterby") + "") && Q(h, l),
|
4489
|
-
2048 &&
|
4490
|
-
d[11]("providers") + "") && Q(_,
|
4491
|
-
16 &&
|
4492
|
-
(d[4] ? "TriangleActive" : "")
|
4493
|
-
16 &&
|
4494
|
-
(d[4] ? "FilterSelectorOpen" : "")
|
4485
|
+
d[11]("filterby") + "") && Q(h, l), H[0] & /*$_*/
|
4486
|
+
2048 && y !== (y = /*$_*/
|
4487
|
+
d[11]("providers") + "") && Q(_, y), ae === (ae = Ce(d)) && M ? M.p(d, H) : (M.d(1), M = ae(d), M && (M.c(), M.m(f, null))), H[0] & /*isFilterActive*/
|
4488
|
+
16 && I !== (I = "TriangleInactive " + /*isFilterActive*/
|
4489
|
+
(d[4] ? "TriangleActive" : "")) && m(P, "class", I), H[0] & /*isFilterActive*/
|
4490
|
+
16 && F !== (F = "FilterSelector " + /*isFilterActive*/
|
4491
|
+
(d[4] ? "FilterSelectorOpen" : "")) && m(r, "class", F), H[0] & /*filterbylogo, vendorArray, filterByVendors*/
|
4495
4492
|
8228) {
|
4496
|
-
Z =
|
4493
|
+
Z = Ft(
|
4497
4494
|
/*vendorArray*/
|
4498
4495
|
d[5]
|
4499
4496
|
);
|
4500
|
-
let
|
4501
|
-
for (
|
4502
|
-
const le = er(d, Z,
|
4503
|
-
c[
|
4497
|
+
let T;
|
4498
|
+
for (T = 0; T < Z.length; T += 1) {
|
4499
|
+
const le = er(d, Z, T);
|
4500
|
+
c[T] ? c[T].p(le, H) : (c[T] = tr(le), c[T].c(), c[T].m(q, null));
|
4504
4501
|
}
|
4505
|
-
for (;
|
4506
|
-
c[
|
4502
|
+
for (; T < c.length; T += 1)
|
4503
|
+
c[T].d(1);
|
4507
4504
|
c.length = Z.length;
|
4508
4505
|
}
|
4509
|
-
|
4506
|
+
H[0] & /*$_*/
|
4510
4507
|
2048 && ne !== (ne = /*$_*/
|
4511
|
-
d[11]("clear") + "") && Q(ie, ne),
|
4508
|
+
d[11]("clear") + "") && Q(ie, ne), H[0] & /*fullSelection, selectedVendorArray, vendorArray*/
|
4512
4509
|
224 && Y !== (Y = /*fullSelection*/
|
4513
4510
|
d[7] && /*selectedVendorArray*/
|
4514
4511
|
d[6].length != /*vendorArray*/
|
4515
|
-
d[5].length) && (
|
4516
|
-
16 &&
|
4517
|
-
(d[4] ? "FilterOpen" : "")
|
4512
|
+
d[5].length) && (G.disabled = Y), H[0] & /*isFilterActive*/
|
4513
|
+
16 && oe !== (oe = "FilterDropdownContainer " + /*isFilterActive*/
|
4514
|
+
(d[4] ? "FilterOpen" : "")) && m(V, "class", oe), H[0] & /*addfilterselector, addsortingselector*/
|
4518
4515
|
3 && K !== (K = "FilterContainer " + /*addfilterselector*/
|
4519
4516
|
(d[0] == "true" && /*addsortingselector*/
|
4520
|
-
d[1] == "true" ? "FilerContainerSplit" : "")
|
4517
|
+
d[1] == "true" ? "FilerContainerSplit" : "")) && m(t, "class", K);
|
4521
4518
|
},
|
4522
4519
|
d(d) {
|
4523
|
-
d &&
|
4520
|
+
d && U(t), M.d(), qr(c, d), se = !1, te(Pe);
|
4524
4521
|
}
|
4525
4522
|
};
|
4526
4523
|
}
|
4527
|
-
function
|
4524
|
+
function _o(e) {
|
4528
4525
|
let t, r = (
|
4529
4526
|
/*$_*/
|
4530
4527
|
e[11]("500") + ""
|
4531
4528
|
), n;
|
4532
4529
|
return {
|
4533
4530
|
c() {
|
4534
|
-
t =
|
4531
|
+
t = C("p"), n = D(r), m(t, "class", "SearchLoading");
|
4535
4532
|
},
|
4536
|
-
m(i,
|
4537
|
-
|
4533
|
+
m(i, o) {
|
4534
|
+
j(i, t, o), b(t, n);
|
4538
4535
|
},
|
4539
|
-
p(i,
|
4540
|
-
|
4536
|
+
p(i, o) {
|
4537
|
+
o[0] & /*$_*/
|
4541
4538
|
2048 && r !== (r = /*$_*/
|
4542
4539
|
i[11]("500") + "") && Q(n, r);
|
4543
4540
|
},
|
4544
4541
|
d(i) {
|
4545
|
-
i &&
|
4542
|
+
i && U(t);
|
4546
4543
|
}
|
4547
4544
|
};
|
4548
4545
|
}
|
4549
|
-
function
|
4546
|
+
function xo(e) {
|
4550
4547
|
let t, r;
|
4551
4548
|
return {
|
4552
4549
|
c() {
|
4553
|
-
t =
|
4550
|
+
t = C("span"), r = D(
|
4554
4551
|
/*selectionNumber*/
|
4555
4552
|
e[8]
|
4556
|
-
), m(t, "class", "FilterCounter
|
4553
|
+
), m(t, "class", "FilterCounter");
|
4557
4554
|
},
|
4558
4555
|
m(n, i) {
|
4559
|
-
|
4556
|
+
j(n, t, i), b(t, r);
|
4560
4557
|
},
|
4561
4558
|
p(n, i) {
|
4562
4559
|
i[0] & /*selectionNumber*/
|
@@ -4567,66 +4564,66 @@ function _s(e) {
|
|
4567
4564
|
);
|
4568
4565
|
},
|
4569
4566
|
d(n) {
|
4570
|
-
n &&
|
4567
|
+
n && U(t);
|
4571
4568
|
}
|
4572
4569
|
};
|
4573
4570
|
}
|
4574
|
-
function
|
4571
|
+
function Eo(e) {
|
4575
4572
|
let t, r = (
|
4576
4573
|
/*$_*/
|
4577
4574
|
e[11]("all") + ""
|
4578
4575
|
), n;
|
4579
4576
|
return {
|
4580
4577
|
c() {
|
4581
|
-
t =
|
4578
|
+
t = C("span"), n = D(r), m(t, "class", "FilterCounter");
|
4582
4579
|
},
|
4583
|
-
m(i,
|
4584
|
-
|
4580
|
+
m(i, o) {
|
4581
|
+
j(i, t, o), b(t, n);
|
4585
4582
|
},
|
4586
|
-
p(i,
|
4587
|
-
|
4583
|
+
p(i, o) {
|
4584
|
+
o[0] & /*$_*/
|
4588
4585
|
2048 && r !== (r = /*$_*/
|
4589
4586
|
i[11]("all") + "") && Q(n, r);
|
4590
4587
|
},
|
4591
4588
|
d(i) {
|
4592
|
-
i &&
|
4589
|
+
i && U(t);
|
4593
4590
|
}
|
4594
4591
|
};
|
4595
4592
|
}
|
4596
|
-
function
|
4593
|
+
function So(e) {
|
4597
4594
|
let t, r;
|
4598
4595
|
return {
|
4599
4596
|
c() {
|
4600
|
-
t =
|
4601
|
-
e[36].logo) || m(t, "src", r), m(t, "alt", "vendor logo")
|
4597
|
+
t = C("img"), Pt(t.src, r = /*vendor*/
|
4598
|
+
e[36].logo) || m(t, "src", r), m(t, "alt", "vendor logo");
|
4602
4599
|
},
|
4603
4600
|
m(n, i) {
|
4604
|
-
|
4601
|
+
j(n, t, i);
|
4605
4602
|
},
|
4606
4603
|
p(n, i) {
|
4607
4604
|
i[0] & /*vendorArray*/
|
4608
|
-
32 && !
|
4605
|
+
32 && !Pt(t.src, r = /*vendor*/
|
4609
4606
|
n[36].logo) && m(t, "src", r);
|
4610
4607
|
},
|
4611
4608
|
d(n) {
|
4612
|
-
n &&
|
4609
|
+
n && U(t);
|
4613
4610
|
}
|
4614
4611
|
};
|
4615
4612
|
}
|
4616
|
-
function
|
4613
|
+
function wo(e) {
|
4617
4614
|
let t, r, n = (
|
4618
4615
|
/*vendor*/
|
4619
4616
|
e[36].name + ""
|
4620
|
-
), i,
|
4617
|
+
), i, o, s, a, u = (
|
4621
4618
|
/*vendor*/
|
4622
4619
|
e[36].games.count + ""
|
4623
4620
|
), l, h;
|
4624
4621
|
return {
|
4625
4622
|
c() {
|
4626
|
-
t =
|
4623
|
+
t = C("div"), r = C("span"), i = D(n), o = k(), s = C("span"), a = D("("), l = D(u), h = D(")"), m(t, "class", "FilterItemLabel");
|
4627
4624
|
},
|
4628
4625
|
m(p, f) {
|
4629
|
-
|
4626
|
+
j(p, t, f), b(t, r), b(r, i), b(t, o), b(t, s), b(s, a), b(s, l), b(s, h);
|
4630
4627
|
},
|
4631
4628
|
p(p, f) {
|
4632
4629
|
f[0] & /*vendorArray*/
|
@@ -4636,13 +4633,13 @@ function js(e) {
|
|
4636
4633
|
p[36].games.count + "") && Q(l, u);
|
4637
4634
|
},
|
4638
4635
|
d(p) {
|
4639
|
-
p &&
|
4636
|
+
p && U(t);
|
4640
4637
|
}
|
4641
4638
|
};
|
4642
4639
|
}
|
4643
4640
|
function tr(e) {
|
4644
|
-
let t, r, n, i,
|
4645
|
-
function
|
4641
|
+
let t, r, n, i, o, s, a, u, l, h, p, f;
|
4642
|
+
function g() {
|
4646
4643
|
e[23].call(
|
4647
4644
|
n,
|
4648
4645
|
/*each_value*/
|
@@ -4651,7 +4648,7 @@ function tr(e) {
|
|
4651
4648
|
e[38]
|
4652
4649
|
);
|
4653
4650
|
}
|
4654
|
-
function
|
4651
|
+
function y() {
|
4655
4652
|
return (
|
4656
4653
|
/*click_handler_1*/
|
4657
4654
|
e[24](
|
@@ -4660,84 +4657,84 @@ function tr(e) {
|
|
4660
4657
|
)
|
4661
4658
|
);
|
4662
4659
|
}
|
4663
|
-
function _(
|
4660
|
+
function _(P, w) {
|
4664
4661
|
if (
|
4665
4662
|
/*filterbylogo*/
|
4666
|
-
|
4667
|
-
) return
|
4663
|
+
P[2] === "false"
|
4664
|
+
) return wo;
|
4668
4665
|
if (
|
4669
4666
|
/*filterbylogo*/
|
4670
|
-
|
4671
|
-
) return
|
4667
|
+
P[2] === "true"
|
4668
|
+
) return So;
|
4672
4669
|
}
|
4673
|
-
let
|
4670
|
+
let A = _(e), v = A && A(e);
|
4674
4671
|
return {
|
4675
4672
|
c() {
|
4676
|
-
t =
|
4677
|
-
e[36].name,
|
4678
|
-
(e[2] === "true" ? "FilterItemWithLogos" : "")
|
4673
|
+
t = C("li"), r = C("label"), n = C("input"), o = k(), s = C("span"), a = k(), v && v.c(), u = k(), m(n, "type", "checkbox"), m(n, "name", "checkbox"), n.__value = i = /*vendor*/
|
4674
|
+
e[36].name, Ct(n, n.__value), m(s, "class", "FiltersCheckmark"), m(r, "class", "FilterLabel"), m(t, "class", l = "FilterItem " + /*filterbylogo*/
|
4675
|
+
(e[2] === "true" ? "FilterItemWithLogos" : "")), t.value = h = /*vendor*/
|
4679
4676
|
e[36].name;
|
4680
4677
|
},
|
4681
|
-
m(
|
4682
|
-
|
4683
|
-
e[36].isFilterSelected, b(r,
|
4684
|
-
|
4685
|
-
|
4678
|
+
m(P, w) {
|
4679
|
+
j(P, t, w), b(t, r), b(r, n), n.checked = /*vendor*/
|
4680
|
+
e[36].isFilterSelected, b(r, o), b(r, s), b(r, a), v && v.m(r, null), b(t, u), p || (f = [
|
4681
|
+
De(n, "change", g),
|
4682
|
+
De(n, "click", y)
|
4686
4683
|
], p = !0);
|
4687
4684
|
},
|
4688
|
-
p(
|
4689
|
-
e =
|
4685
|
+
p(P, w) {
|
4686
|
+
e = P, w[0] & /*vendorArray*/
|
4690
4687
|
32 && i !== (i = /*vendor*/
|
4691
|
-
e[36].name) && (n.__value = i,
|
4688
|
+
e[36].name) && (n.__value = i, Ct(n, n.__value)), w[0] & /*vendorArray*/
|
4692
4689
|
32 && (n.checked = /*vendor*/
|
4693
|
-
e[36].isFilterSelected),
|
4690
|
+
e[36].isFilterSelected), A === (A = _(e)) && v ? v.p(e, w) : (v && v.d(1), v = A && A(e), v && (v.c(), v.m(r, null))), w[0] & /*filterbylogo*/
|
4694
4691
|
4 && l !== (l = "FilterItem " + /*filterbylogo*/
|
4695
|
-
(e[2] === "true" ? "FilterItemWithLogos" : "")
|
4692
|
+
(e[2] === "true" ? "FilterItemWithLogos" : "")) && m(t, "class", l), w[0] & /*vendorArray*/
|
4696
4693
|
32 && h !== (h = /*vendor*/
|
4697
4694
|
e[36].name) && (t.value = h);
|
4698
4695
|
},
|
4699
|
-
d(
|
4700
|
-
|
4696
|
+
d(P) {
|
4697
|
+
P && U(t), v && v.d(), p = !1, te(f);
|
4701
4698
|
}
|
4702
4699
|
};
|
4703
4700
|
}
|
4704
|
-
function
|
4701
|
+
function To(e) {
|
4705
4702
|
let t;
|
4706
|
-
function r(
|
4703
|
+
function r(o, s) {
|
4707
4704
|
if (
|
4708
4705
|
/*hasErrors*/
|
4709
|
-
|
4710
|
-
) return
|
4706
|
+
o[10]
|
4707
|
+
) return _o;
|
4711
4708
|
if (!/*isLoading*/
|
4712
|
-
|
4709
|
+
o[9]) return yo;
|
4713
4710
|
}
|
4714
4711
|
let n = r(e), i = n && n(e);
|
4715
4712
|
return {
|
4716
4713
|
c() {
|
4717
|
-
t =
|
4714
|
+
t = C("div"), i && i.c();
|
4718
4715
|
},
|
4719
|
-
m(
|
4720
|
-
|
4716
|
+
m(o, s) {
|
4717
|
+
j(o, t, s), i && i.m(t, null), e[26](t);
|
4721
4718
|
},
|
4722
|
-
p(
|
4723
|
-
n === (n = r(
|
4719
|
+
p(o, s) {
|
4720
|
+
n === (n = r(o)) && i ? i.p(o, s) : (i && i.d(1), i = n && n(o), i && (i.c(), i.m(t, null)));
|
4724
4721
|
},
|
4725
|
-
i:
|
4726
|
-
o:
|
4727
|
-
d(
|
4728
|
-
|
4722
|
+
i: $,
|
4723
|
+
o: $,
|
4724
|
+
d(o) {
|
4725
|
+
o && U(t), i && i.d(), e[26](null);
|
4729
4726
|
}
|
4730
4727
|
};
|
4731
4728
|
}
|
4732
|
-
function
|
4729
|
+
function Ho(e, t, r) {
|
4733
4730
|
let n;
|
4734
|
-
|
4735
|
-
let { endpoint: i = "" } = t, { datasource:
|
4736
|
-
|
4737
|
-
const
|
4731
|
+
zr(e, po, (c) => r(11, n = c));
|
4732
|
+
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { translationurl: a = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { categoryid: h = "" } = t, { addfilterselector: p = "false" } = t, { addsortingselector: f = "false" } = t, { filterbylogo: g = "false" } = t, y = !1, _ = window.navigator.userAgent, A = [], v = [], P = {}, w = !1, L = 0, I = !0, F, z = !1;
|
4733
|
+
go({ withLocale: "en", translations: {} });
|
4734
|
+
const V = () => {
|
4738
4735
|
fetch(a).then((d) => d.json()).then((d) => {
|
4739
|
-
Object.keys(d).forEach((
|
4740
|
-
Yt(
|
4736
|
+
Object.keys(d).forEach((H) => {
|
4737
|
+
Yt(H, d[H]);
|
4741
4738
|
});
|
4742
4739
|
}).catch((d) => {
|
4743
4740
|
console.log(d);
|
@@ -4748,109 +4745,109 @@ function ws(e, t, r) {
|
|
4748
4745
|
});
|
4749
4746
|
const q = () => {
|
4750
4747
|
let c = document.createElement("style");
|
4751
|
-
c.innerHTML = u,
|
4752
|
-
},
|
4748
|
+
c.innerHTML = u, F.appendChild(c);
|
4749
|
+
}, Ae = () => {
|
4753
4750
|
let c = document.createElement("style");
|
4754
4751
|
fetch(new URL(l)).then((d) => d.text()).then((d) => {
|
4755
4752
|
c.innerHTML = d, setTimeout(
|
4756
4753
|
() => {
|
4757
|
-
|
4754
|
+
F.appendChild(c);
|
4758
4755
|
},
|
4759
4756
|
1
|
4760
4757
|
);
|
4761
4758
|
});
|
4762
4759
|
};
|
4763
|
-
|
4764
|
-
const
|
4765
|
-
r(4,
|
4766
|
-
}, ne = (c) => (r(9,
|
4767
|
-
fetch(c).then((
|
4768
|
-
|
4760
|
+
P[h] && (P = { [h]: [] });
|
4761
|
+
const G = () => {
|
4762
|
+
r(4, y = !y), window.postMessage({ type: "FilterOpened" }, window.location.href);
|
4763
|
+
}, ne = (c) => (r(9, I = !0), new Promise((d, H) => {
|
4764
|
+
fetch(c).then((T) => T.json()).then((T) => {
|
4765
|
+
T = T.items, d(T.items), r(6, v = []);
|
4769
4766
|
let le = JSON.parse(localStorage.getItem("vendorFiltersByCategory"));
|
4770
|
-
|
4767
|
+
T.forEach((Be) => {
|
4771
4768
|
var Et;
|
4772
|
-
le || (le = { currentCategoryId: [] }), ((Et = le[h]) == null ? void 0 : Et.indexOf(
|
4773
|
-
}), r(5,
|
4774
|
-
}).catch((
|
4775
|
-
console.error(
|
4769
|
+
le || (le = { currentCategoryId: [] }), ((Et = le[h]) == null ? void 0 : Et.indexOf(Be.id)) >= 0 ? (Be.isFilterSelected = !0, v.push(Be)) : Be.isFilterSelected = !1;
|
4770
|
+
}), r(5, A = T), Y();
|
4771
|
+
}).catch((T) => {
|
4772
|
+
console.error(T), r(10, z = !0), H(T);
|
4776
4773
|
}).finally(() => {
|
4777
|
-
r(9,
|
4774
|
+
r(9, I = !1);
|
4778
4775
|
});
|
4779
4776
|
})), ie = (c) => {
|
4780
4777
|
let d = localStorage.getItem("vendorFiltersByCategory");
|
4781
|
-
c.isFilterSelected = !c.isFilterSelected, !v.length || v.filter((
|
4782
|
-
[h]: v.map((
|
4783
|
-
})) : (d = JSON.parse(d), d[h] = v.map((
|
4778
|
+
c.isFilterSelected = !c.isFilterSelected, !v.length || v.filter((H) => H.name === c.name).length == 0 ? v.push(c) : r(6, v = v.filter((H) => H.name !== c.name)), d == null ? localStorage.setItem("vendorFiltersByCategory", JSON.stringify(P = {
|
4779
|
+
[h]: v.map((H) => H.id)
|
4780
|
+
})) : (d = JSON.parse(d), d[h] = v.map((H) => H.id), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(d))), window.postMessage({ type: "ApplyFilters", origin: "filters" }, window.location.href), Y();
|
4784
4781
|
}, Y = () => {
|
4785
|
-
r(7,
|
4786
|
-
},
|
4782
|
+
r(7, w = v.length === A.length || v.length == 0), r(8, L = v.length);
|
4783
|
+
}, oe = () => {
|
4787
4784
|
const c = new URL(`${i}/v1/casino/vendors`);
|
4788
|
-
r(4,
|
4785
|
+
r(4, y = !1), c.searchParams.append("fields", "id,name,logo,subVendors,games"), c.searchParams.append("language", s), c.searchParams.append("datasource", o), c.searchParams.append("platform", bo(_)), (h.match(/\$/g) || []).length > 1 ? (c.searchParams.append("filter", `games(subGroups=${h})`), c.searchParams.append("subVendors", `games(subGroups=${h})`)) : c.searchParams.append("filter", `games(groups=${h})`), ne(c);
|
4789
4786
|
}, K = () => {
|
4790
|
-
r(6, v = []), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(
|
4787
|
+
r(6, v = []), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(P = {
|
4791
4788
|
[h]: v.map((c) => c.id)
|
4792
|
-
})),
|
4793
|
-
},
|
4794
|
-
c.data.type == "SortingOpened" && r(4,
|
4789
|
+
})), A.forEach((c) => c.isFilterSelected = !1), r(5, A), window.postMessage({ type: "ApplyFilters" }, window.location.href), r(7, w = !0), r(4, y = !1);
|
4790
|
+
}, se = (c) => {
|
4791
|
+
c.data.type == "SortingOpened" && r(4, y = !1);
|
4795
4792
|
};
|
4796
|
-
tn(() => (window.addEventListener("message",
|
4797
|
-
window.removeEventListener("message",
|
4793
|
+
tn(() => (window.addEventListener("message", se, !1), () => {
|
4794
|
+
window.removeEventListener("message", se);
|
4798
4795
|
}));
|
4799
|
-
const
|
4800
|
-
function
|
4801
|
-
c[d].isFilterSelected = this.checked, r(5,
|
4796
|
+
const Pe = () => G();
|
4797
|
+
function Ce(c, d) {
|
4798
|
+
c[d].isFilterSelected = this.checked, r(5, A);
|
4802
4799
|
}
|
4803
|
-
const ae = (c) => ie(c),
|
4800
|
+
const ae = (c) => ie(c), M = () => K();
|
4804
4801
|
function Z(c) {
|
4805
4802
|
tt[c ? "unshift" : "push"](() => {
|
4806
|
-
|
4803
|
+
F = c, r(3, F);
|
4807
4804
|
});
|
4808
4805
|
}
|
4809
4806
|
return e.$$set = (c) => {
|
4810
|
-
"endpoint" in c && r(15, i = c.endpoint), "datasource" in c && r(16,
|
4807
|
+
"endpoint" in c && r(15, i = c.endpoint), "datasource" in c && r(16, o = c.datasource), "lang" in c && r(17, s = c.lang), "translationurl" in c && r(18, a = c.translationurl), "clientstyling" in c && r(19, u = c.clientstyling), "clientstylingurl" in c && r(20, l = c.clientstylingurl), "categoryid" in c && r(21, h = c.categoryid), "addfilterselector" in c && r(0, p = c.addfilterselector), "addsortingselector" in c && r(1, f = c.addsortingselector), "filterbylogo" in c && r(2, g = c.filterbylogo);
|
4811
4808
|
}, e.$$.update = () => {
|
4812
4809
|
e.$$.dirty[0] & /*endpoint, datasource, categoryid, filterbylogo*/
|
4813
|
-
2195460 && i &&
|
4814
|
-
524296 && u &&
|
4815
|
-
1048584 && l &&
|
4816
|
-
262144 && a &&
|
4810
|
+
2195460 && i && o && h && g && oe(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4811
|
+
524296 && u && F && q(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4812
|
+
1048584 && l && F && Ae(), e.$$.dirty[0] & /*translationurl*/
|
4813
|
+
262144 && a && V();
|
4817
4814
|
}, [
|
4818
4815
|
p,
|
4819
4816
|
f,
|
4820
|
-
y,
|
4821
|
-
B,
|
4822
4817
|
g,
|
4823
|
-
|
4818
|
+
F,
|
4819
|
+
y,
|
4820
|
+
A,
|
4824
4821
|
v,
|
4825
|
-
|
4822
|
+
w,
|
4823
|
+
L,
|
4826
4824
|
I,
|
4827
|
-
|
4828
|
-
W,
|
4825
|
+
z,
|
4829
4826
|
n,
|
4830
|
-
|
4827
|
+
G,
|
4831
4828
|
ie,
|
4832
4829
|
K,
|
4833
4830
|
i,
|
4834
|
-
s,
|
4835
4831
|
o,
|
4832
|
+
s,
|
4836
4833
|
a,
|
4837
4834
|
u,
|
4838
4835
|
l,
|
4839
4836
|
h,
|
4840
|
-
Ae,
|
4841
4837
|
Pe,
|
4838
|
+
Ce,
|
4842
4839
|
ae,
|
4843
|
-
|
4840
|
+
M,
|
4844
4841
|
Z
|
4845
4842
|
];
|
4846
4843
|
}
|
4847
|
-
class
|
4844
|
+
class Ur extends fn {
|
4848
4845
|
constructor(t) {
|
4849
4846
|
super(), hn(
|
4850
4847
|
this,
|
4851
4848
|
t,
|
4852
|
-
|
4853
|
-
|
4849
|
+
Ho,
|
4850
|
+
To,
|
4854
4851
|
nr,
|
4855
4852
|
{
|
4856
4853
|
endpoint: 15,
|
@@ -4864,7 +4861,7 @@ class Dr extends fn {
|
|
4864
4861
|
addsortingselector: 1,
|
4865
4862
|
filterbylogo: 2
|
4866
4863
|
},
|
4867
|
-
|
4864
|
+
vo,
|
4868
4865
|
[-1, -1]
|
4869
4866
|
);
|
4870
4867
|
}
|
@@ -4872,104 +4869,103 @@ class Dr extends fn {
|
|
4872
4869
|
return this.$$.ctx[15];
|
4873
4870
|
}
|
4874
4871
|
set endpoint(t) {
|
4875
|
-
this.$$set({ endpoint: t }),
|
4872
|
+
this.$$set({ endpoint: t }), R();
|
4876
4873
|
}
|
4877
4874
|
get datasource() {
|
4878
4875
|
return this.$$.ctx[16];
|
4879
4876
|
}
|
4880
4877
|
set datasource(t) {
|
4881
|
-
this.$$set({ datasource: t }),
|
4878
|
+
this.$$set({ datasource: t }), R();
|
4882
4879
|
}
|
4883
4880
|
get lang() {
|
4884
4881
|
return this.$$.ctx[17];
|
4885
4882
|
}
|
4886
4883
|
set lang(t) {
|
4887
|
-
this.$$set({ lang: t }),
|
4884
|
+
this.$$set({ lang: t }), R();
|
4888
4885
|
}
|
4889
4886
|
get translationurl() {
|
4890
4887
|
return this.$$.ctx[18];
|
4891
4888
|
}
|
4892
4889
|
set translationurl(t) {
|
4893
|
-
this.$$set({ translationurl: t }),
|
4890
|
+
this.$$set({ translationurl: t }), R();
|
4894
4891
|
}
|
4895
4892
|
get clientstyling() {
|
4896
4893
|
return this.$$.ctx[19];
|
4897
4894
|
}
|
4898
4895
|
set clientstyling(t) {
|
4899
|
-
this.$$set({ clientstyling: t }),
|
4896
|
+
this.$$set({ clientstyling: t }), R();
|
4900
4897
|
}
|
4901
4898
|
get clientstylingurl() {
|
4902
4899
|
return this.$$.ctx[20];
|
4903
4900
|
}
|
4904
4901
|
set clientstylingurl(t) {
|
4905
|
-
this.$$set({ clientstylingurl: t }),
|
4902
|
+
this.$$set({ clientstylingurl: t }), R();
|
4906
4903
|
}
|
4907
4904
|
get categoryid() {
|
4908
4905
|
return this.$$.ctx[21];
|
4909
4906
|
}
|
4910
4907
|
set categoryid(t) {
|
4911
|
-
this.$$set({ categoryid: t }),
|
4908
|
+
this.$$set({ categoryid: t }), R();
|
4912
4909
|
}
|
4913
4910
|
get addfilterselector() {
|
4914
4911
|
return this.$$.ctx[0];
|
4915
4912
|
}
|
4916
4913
|
set addfilterselector(t) {
|
4917
|
-
this.$$set({ addfilterselector: t }),
|
4914
|
+
this.$$set({ addfilterselector: t }), R();
|
4918
4915
|
}
|
4919
4916
|
get addsortingselector() {
|
4920
4917
|
return this.$$.ctx[1];
|
4921
4918
|
}
|
4922
4919
|
set addsortingselector(t) {
|
4923
|
-
this.$$set({ addsortingselector: t }),
|
4920
|
+
this.$$set({ addsortingselector: t }), R();
|
4924
4921
|
}
|
4925
4922
|
get filterbylogo() {
|
4926
4923
|
return this.$$.ctx[2];
|
4927
4924
|
}
|
4928
4925
|
set filterbylogo(t) {
|
4929
|
-
this.$$set({ filterbylogo: t }),
|
4926
|
+
this.$$set({ filterbylogo: t }), R();
|
4930
4927
|
}
|
4931
4928
|
}
|
4932
|
-
cn(
|
4933
|
-
const
|
4929
|
+
cn(Ur, { endpoint: {}, datasource: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {}, addfilterselector: {}, addsortingselector: {}, filterbylogo: {} }, [], [], !0);
|
4930
|
+
const Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
4934
4931
|
__proto__: null,
|
4935
|
-
default:
|
4932
|
+
default: Ur
|
4936
4933
|
}, Symbol.toStringTag, { value: "Module" }));
|
4937
4934
|
export {
|
4938
4935
|
ee as $,
|
4939
|
-
|
4940
|
-
|
4941
|
-
|
4942
|
-
|
4943
|
-
|
4944
|
-
|
4945
|
-
|
4946
|
-
|
4947
|
-
Is as I,
|
4936
|
+
po as A,
|
4937
|
+
Oo as B,
|
4938
|
+
Ee as C,
|
4939
|
+
Io as D,
|
4940
|
+
Co as E,
|
4941
|
+
ye as F,
|
4942
|
+
Lo as G,
|
4943
|
+
Fo as H,
|
4948
4944
|
fn as S,
|
4949
|
-
|
4945
|
+
Nr as a,
|
4950
4946
|
Zr as b,
|
4951
4947
|
cn as c,
|
4952
|
-
|
4953
|
-
|
4954
|
-
|
4955
|
-
|
4948
|
+
k as d,
|
4949
|
+
C as e,
|
4950
|
+
R as f,
|
4951
|
+
Pt as g,
|
4956
4952
|
m as h,
|
4957
4953
|
hn as i,
|
4958
|
-
|
4959
|
-
|
4954
|
+
Bo as j,
|
4955
|
+
j as k,
|
4960
4956
|
b as l,
|
4961
4957
|
Q as m,
|
4962
|
-
|
4963
|
-
|
4964
|
-
|
4965
|
-
|
4966
|
-
|
4958
|
+
$ as n,
|
4959
|
+
U as o,
|
4960
|
+
zr as p,
|
4961
|
+
tn as q,
|
4962
|
+
De as r,
|
4967
4963
|
nr as s,
|
4968
|
-
|
4969
|
-
|
4970
|
-
|
4971
|
-
|
4972
|
-
|
4973
|
-
|
4974
|
-
|
4964
|
+
D as t,
|
4965
|
+
Po as u,
|
4966
|
+
mo as v,
|
4967
|
+
bo as w,
|
4968
|
+
tt as x,
|
4969
|
+
Ft as y,
|
4970
|
+
qr as z
|
4975
4971
|
};
|