@everymatrix/casino-categories-slider-nd 1.86.4 → 1.86.6
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/{CasinoCategoriesSliderNd-Cdyvn2l1.js → CasinoCategoriesSliderNd-DP88nZba.js} +805 -784
- package/components/CasinoCategoriesSliderNd-DuJnkBEW.cjs +18 -0
- package/components/{CasinoCategoriesSliderNd-Cn796Hsh.js → CasinoCategoriesSliderNd-iyxXh0t3.js} +842 -821
- package/components/{CasinoSliderNd-C8ZIkGmZ.js → CasinoSliderNd-BWvm077c.js} +56 -56
- package/components/{CasinoSliderNd-DHTfQW98.cjs → CasinoSliderNd-C_b1HIyO.cjs} +1 -1
- package/components/{CasinoSliderNd-DeXohRLA.js → CasinoSliderNd-C_peB6vv.js} +61 -61
- package/es2015/casino-categories-slider-nd.cjs +1 -1
- package/es2015/casino-categories-slider-nd.js +1 -1
- package/esnext/casino-categories-slider-nd.js +1 -1
- package/package.json +1 -1
- package/components/CasinoCategoriesSliderNd-BVLoLZHm.cjs +0 -18
package/components/{CasinoCategoriesSliderNd-Cdyvn2l1.js → CasinoCategoriesSliderNd-DP88nZba.js}
RENAMED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function I() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Gt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function bt() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function te(e) {
|
|
10
|
+
e.forEach(Gt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function at(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Ut(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let be;
|
|
19
|
-
function
|
|
19
|
+
function ys(e, t) {
|
|
20
20
|
return e === t ? !0 : (be || (be = document.createElement("a")), be.href = t, e === be.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Ir(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Dt(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,20 +31,20 @@ function Gt(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function Mr(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(Dt(t, r));
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function $t(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const n =
|
|
40
|
+
function Cr(e, t, r) {
|
|
41
|
+
const n = Rr(e);
|
|
42
42
|
if (!n.getElementById(t)) {
|
|
43
43
|
const i = k("style");
|
|
44
|
-
i.id = t, i.textContent = r,
|
|
44
|
+
i.id = t, i.textContent = r, Gr(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Rr(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,56 +54,56 @@ function Cr(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
return
|
|
57
|
+
function Gr(e, t) {
|
|
58
|
+
return $t(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
61
61
|
t
|
|
62
62
|
), t.sheet;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function ce(e, t, r) {
|
|
65
65
|
e.insertBefore(t, r || null);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function re(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function vs(e, t) {
|
|
71
71
|
for (let r = 0; r < e.length; r += 1)
|
|
72
72
|
e[r] && e[r].d(t);
|
|
73
73
|
}
|
|
74
74
|
function k(e) {
|
|
75
75
|
return document.createElement(e);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function _s(e) {
|
|
78
78
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Ft(e) {
|
|
81
81
|
return document.createTextNode(e);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
return
|
|
83
|
+
function Es() {
|
|
84
|
+
return Ft(" ");
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
return
|
|
86
|
+
function xs() {
|
|
87
|
+
return Ft("");
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function Ss(e, t, r, n) {
|
|
90
90
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function ne(e, t, r) {
|
|
93
93
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function v(e, t, r) {
|
|
96
96
|
const n = t.toLowerCase();
|
|
97
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
97
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : ne(e, t, r);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Ur(e) {
|
|
100
100
|
return Array.from(e.childNodes);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function ws(e, t) {
|
|
103
103
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
104
104
|
t);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function Dr(e) {
|
|
107
107
|
const t = {};
|
|
108
108
|
return e.childNodes.forEach(
|
|
109
109
|
/** @param {Element} node */
|
|
@@ -112,123 +112,123 @@ function Ur(e) {
|
|
|
112
112
|
}
|
|
113
113
|
), t;
|
|
114
114
|
}
|
|
115
|
-
let
|
|
116
|
-
function
|
|
117
|
-
|
|
115
|
+
let ue;
|
|
116
|
+
function ae(e) {
|
|
117
|
+
ue = e;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
if (!
|
|
119
|
+
function $r() {
|
|
120
|
+
if (!ue)
|
|
121
121
|
throw new Error("Function called outside component initialization");
|
|
122
|
-
return
|
|
122
|
+
return ue;
|
|
123
123
|
}
|
|
124
124
|
function Fr(e) {
|
|
125
|
-
|
|
125
|
+
$r().$$.on_mount.push(e);
|
|
126
126
|
}
|
|
127
|
-
const q = [],
|
|
127
|
+
const q = [], je = [];
|
|
128
128
|
let Q = [];
|
|
129
|
-
const
|
|
130
|
-
let
|
|
131
|
-
function
|
|
132
|
-
|
|
129
|
+
const pt = [], jt = /* @__PURE__ */ Promise.resolve();
|
|
130
|
+
let ke = !1;
|
|
131
|
+
function kt() {
|
|
132
|
+
ke || (ke = !0, jt.then(x));
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
return
|
|
134
|
+
function jr() {
|
|
135
|
+
return kt(), jt;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function Ve(e) {
|
|
138
138
|
Q.push(e);
|
|
139
139
|
}
|
|
140
|
-
const
|
|
140
|
+
const Me = /* @__PURE__ */ new Set();
|
|
141
141
|
let z = 0;
|
|
142
|
-
function
|
|
142
|
+
function x() {
|
|
143
143
|
if (z !== 0)
|
|
144
144
|
return;
|
|
145
|
-
const e =
|
|
145
|
+
const e = ue;
|
|
146
146
|
do {
|
|
147
147
|
try {
|
|
148
148
|
for (; z < q.length; ) {
|
|
149
149
|
const t = q[z];
|
|
150
|
-
z++,
|
|
150
|
+
z++, ae(t), kr(t.$$);
|
|
151
151
|
}
|
|
152
152
|
} catch (t) {
|
|
153
153
|
throw q.length = 0, z = 0, t;
|
|
154
154
|
}
|
|
155
|
-
for (
|
|
156
|
-
|
|
155
|
+
for (ae(null), q.length = 0, z = 0; je.length; )
|
|
156
|
+
je.pop()();
|
|
157
157
|
for (let t = 0; t < Q.length; t += 1) {
|
|
158
158
|
const r = Q[t];
|
|
159
|
-
|
|
159
|
+
Me.has(r) || (Me.add(r), r());
|
|
160
160
|
}
|
|
161
161
|
Q.length = 0;
|
|
162
162
|
} while (q.length);
|
|
163
|
-
for (;
|
|
164
|
-
|
|
165
|
-
|
|
163
|
+
for (; pt.length; )
|
|
164
|
+
pt.pop()();
|
|
165
|
+
ke = !1, Me.clear(), ae(e);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function kr(e) {
|
|
168
168
|
if (e.fragment !== null) {
|
|
169
|
-
e.update(),
|
|
169
|
+
e.update(), te(e.before_update);
|
|
170
170
|
const t = e.dirty;
|
|
171
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
171
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ve);
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function Vr(e) {
|
|
175
175
|
const t = [], r = [];
|
|
176
176
|
Q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Q = t;
|
|
177
177
|
}
|
|
178
|
-
const
|
|
179
|
-
function
|
|
180
|
-
e && e.i && (
|
|
178
|
+
const Xr = /* @__PURE__ */ new Set();
|
|
179
|
+
function Vt(e, t) {
|
|
180
|
+
e && e.i && (Xr.delete(e), e.i(t));
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Ts(e) {
|
|
183
183
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function Hs(e, t) {
|
|
186
186
|
e.d(1), t.delete(e.key);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function As(e, t, r, n, i, s, o, a, h, u, l, m) {
|
|
189
189
|
let c = e.length, d = s.length, p = c;
|
|
190
190
|
const b = {};
|
|
191
191
|
for (; p--; )
|
|
192
192
|
b[e[p].key] = p;
|
|
193
193
|
const w = [], M = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), T = [];
|
|
194
194
|
for (p = d; p--; ) {
|
|
195
|
-
const
|
|
196
|
-
let L = o.get(
|
|
197
|
-
L ? T.push(() => L.p(
|
|
195
|
+
const _ = m(i, s, p), N = r(_);
|
|
196
|
+
let L = o.get(N);
|
|
197
|
+
L ? T.push(() => L.p(_, t)) : (L = u(N, _), L.c()), M.set(N, w[p] = L), N in b && P.set(N, Math.abs(p - b[N]));
|
|
198
198
|
}
|
|
199
|
-
const
|
|
200
|
-
function C(
|
|
201
|
-
|
|
199
|
+
const O = /* @__PURE__ */ new Set(), H = /* @__PURE__ */ new Set();
|
|
200
|
+
function C(_) {
|
|
201
|
+
Vt(_, 1), _.m(a, l), o.set(_.key, _), l = _.first, d--;
|
|
202
202
|
}
|
|
203
203
|
for (; c && d; ) {
|
|
204
|
-
const
|
|
205
|
-
|
|
204
|
+
const _ = w[d - 1], N = e[c - 1], L = _.key, $ = N.key;
|
|
205
|
+
_ === N ? (l = _.first, c--, d--) : M.has($) ? !o.has(L) || O.has(L) ? C(_) : H.has($) ? c-- : P.get(L) > P.get($) ? (H.add(L), C(_)) : (O.add($), c--) : (h(N, o), c--);
|
|
206
206
|
}
|
|
207
207
|
for (; c--; ) {
|
|
208
|
-
const
|
|
209
|
-
M.has(
|
|
208
|
+
const _ = e[c];
|
|
209
|
+
M.has(_.key) || h(_, o);
|
|
210
210
|
}
|
|
211
211
|
for (; d; )
|
|
212
212
|
C(w[d - 1]);
|
|
213
|
-
return
|
|
213
|
+
return te(T), w;
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function Wr(e, t, r) {
|
|
216
216
|
const { fragment: n, after_update: i } = e.$$;
|
|
217
|
-
n && n.m(t, r),
|
|
218
|
-
const s = e.$$.on_mount.map(
|
|
219
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
220
|
-
}), i.forEach(
|
|
217
|
+
n && n.m(t, r), Ve(() => {
|
|
218
|
+
const s = e.$$.on_mount.map(Gt).filter(at);
|
|
219
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : te(s), e.$$.on_mount = [];
|
|
220
|
+
}), i.forEach(Ve);
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function zr(e, t) {
|
|
223
223
|
const r = e.$$;
|
|
224
|
-
r.fragment !== null && (
|
|
224
|
+
r.fragment !== null && (Vr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
225
225
|
}
|
|
226
|
-
function
|
|
227
|
-
e.$$.dirty[0] === -1 && (q.push(e),
|
|
226
|
+
function Zr(e, t) {
|
|
227
|
+
e.$$.dirty[0] === -1 && (q.push(e), kt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
228
228
|
}
|
|
229
|
-
function
|
|
230
|
-
const h =
|
|
231
|
-
|
|
229
|
+
function qr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
230
|
+
const h = ue;
|
|
231
|
+
ae(e);
|
|
232
232
|
const u = e.$$ = {
|
|
233
233
|
fragment: null,
|
|
234
234
|
ctx: [],
|
|
@@ -236,7 +236,7 @@ function Zr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
236
236
|
props: s,
|
|
237
237
|
update: I,
|
|
238
238
|
not_equal: i,
|
|
239
|
-
bound:
|
|
239
|
+
bound: bt(),
|
|
240
240
|
// lifecycle
|
|
241
241
|
on_mount: [],
|
|
242
242
|
on_destroy: [],
|
|
@@ -245,7 +245,7 @@ function Zr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
245
245
|
after_update: [],
|
|
246
246
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
247
247
|
// everything else
|
|
248
|
-
callbacks:
|
|
248
|
+
callbacks: bt(),
|
|
249
249
|
dirty: a,
|
|
250
250
|
skip_bound: !1,
|
|
251
251
|
root: t.target || h.$$.root
|
|
@@ -254,19 +254,19 @@ function Zr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
254
254
|
let l = !1;
|
|
255
255
|
if (u.ctx = r ? r(e, t.props || {}, (m, c, ...d) => {
|
|
256
256
|
const p = d.length ? d[0] : c;
|
|
257
|
-
return u.ctx && i(u.ctx[m], u.ctx[m] = p) && (!u.skip_bound && u.bound[m] && u.bound[m](p), l &&
|
|
258
|
-
}) : [], u.update(), l = !0,
|
|
257
|
+
return u.ctx && i(u.ctx[m], u.ctx[m] = p) && (!u.skip_bound && u.bound[m] && u.bound[m](p), l && Zr(e, m)), c;
|
|
258
|
+
}) : [], u.update(), l = !0, te(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
259
259
|
if (t.hydrate) {
|
|
260
|
-
const m =
|
|
261
|
-
u.fragment && u.fragment.l(m), m.forEach(
|
|
260
|
+
const m = Ur(t.target);
|
|
261
|
+
u.fragment && u.fragment.l(m), m.forEach(re);
|
|
262
262
|
} else
|
|
263
263
|
u.fragment && u.fragment.c();
|
|
264
|
-
t.intro &&
|
|
264
|
+
t.intro && Vt(e.$$.fragment), Wr(e, t.target, t.anchor), x();
|
|
265
265
|
}
|
|
266
|
-
|
|
266
|
+
ae(h);
|
|
267
267
|
}
|
|
268
|
-
let
|
|
269
|
-
typeof HTMLElement == "function" && (
|
|
268
|
+
let Xt;
|
|
269
|
+
typeof HTMLElement == "function" && (Xt = class extends HTMLElement {
|
|
270
270
|
/** The Svelte component constructor */
|
|
271
271
|
$$ctor;
|
|
272
272
|
/** Slots */
|
|
@@ -308,24 +308,24 @@ typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
|
308
308
|
let s;
|
|
309
309
|
return {
|
|
310
310
|
c: function() {
|
|
311
|
-
s = k("slot"), i !== "default" &&
|
|
311
|
+
s = k("slot"), i !== "default" && ne(s, "name", i);
|
|
312
312
|
},
|
|
313
313
|
/**
|
|
314
314
|
* @param {HTMLElement} target
|
|
315
315
|
* @param {HTMLElement} [anchor]
|
|
316
316
|
*/
|
|
317
317
|
m: function(h, u) {
|
|
318
|
-
|
|
318
|
+
ce(h, s, u);
|
|
319
319
|
},
|
|
320
320
|
d: function(h) {
|
|
321
|
-
h &&
|
|
321
|
+
h && re(s);
|
|
322
322
|
}
|
|
323
323
|
};
|
|
324
324
|
};
|
|
325
325
|
};
|
|
326
326
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
327
327
|
return;
|
|
328
|
-
const t = {}, r =
|
|
328
|
+
const t = {}, r = Dr(this);
|
|
329
329
|
for (const i of this.$$s)
|
|
330
330
|
i in r && (t[i] = [e(i)]);
|
|
331
331
|
for (const i of this.attributes) {
|
|
@@ -412,8 +412,8 @@ function ye(e, t, r, n) {
|
|
|
412
412
|
return t;
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
function
|
|
416
|
-
let o = class extends
|
|
415
|
+
function Qr(e, t, r, n, i, s) {
|
|
416
|
+
let o = class extends Xt {
|
|
417
417
|
constructor() {
|
|
418
418
|
super(e, r, i), this.$$p_d = t;
|
|
419
419
|
}
|
|
@@ -441,7 +441,7 @@ function qr(e, t, r, n, i, s) {
|
|
|
441
441
|
}), e.element = /** @type {any} */
|
|
442
442
|
o, o;
|
|
443
443
|
}
|
|
444
|
-
class
|
|
444
|
+
class Yr {
|
|
445
445
|
/**
|
|
446
446
|
* ### PRIVATE API
|
|
447
447
|
*
|
|
@@ -460,7 +460,7 @@ class Qr {
|
|
|
460
460
|
$$set = void 0;
|
|
461
461
|
/** @returns {void} */
|
|
462
462
|
$destroy() {
|
|
463
|
-
|
|
463
|
+
zr(this, 1), this.$destroy = I;
|
|
464
464
|
}
|
|
465
465
|
/**
|
|
466
466
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -469,7 +469,7 @@ class Qr {
|
|
|
469
469
|
* @returns {() => void}
|
|
470
470
|
*/
|
|
471
471
|
$on(t, r) {
|
|
472
|
-
if (!
|
|
472
|
+
if (!at(r))
|
|
473
473
|
return I;
|
|
474
474
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
475
475
|
return n.push(r), () => {
|
|
@@ -482,11 +482,11 @@ class Qr {
|
|
|
482
482
|
* @returns {void}
|
|
483
483
|
*/
|
|
484
484
|
$set(t) {
|
|
485
|
-
this.$$set && !
|
|
485
|
+
this.$$set && !Ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
|
-
const
|
|
489
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
488
|
+
const Jr = "4";
|
|
489
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Jr);
|
|
490
490
|
/*! *****************************************************************************
|
|
491
491
|
Copyright (c) Microsoft Corporation.
|
|
492
492
|
|
|
@@ -501,43 +501,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
501
501
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
502
502
|
PERFORMANCE OF THIS SOFTWARE.
|
|
503
503
|
***************************************************************************** */
|
|
504
|
-
var
|
|
505
|
-
return
|
|
504
|
+
var Xe = function(e, t) {
|
|
505
|
+
return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
506
506
|
r.__proto__ = n;
|
|
507
507
|
} || function(r, n) {
|
|
508
508
|
for (var i in n)
|
|
509
509
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
510
|
-
},
|
|
510
|
+
}, Xe(e, t);
|
|
511
511
|
};
|
|
512
|
-
function
|
|
512
|
+
function fe(e, t) {
|
|
513
513
|
if (typeof t != "function" && t !== null)
|
|
514
514
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
515
|
-
|
|
515
|
+
Xe(e, t);
|
|
516
516
|
function r() {
|
|
517
517
|
this.constructor = e;
|
|
518
518
|
}
|
|
519
519
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
520
520
|
}
|
|
521
|
-
|
|
522
|
-
return v = Object.assign || function(t) {
|
|
523
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
524
|
-
r = arguments[n];
|
|
525
|
-
for (var s in r)
|
|
526
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
527
|
-
}
|
|
528
|
-
return t;
|
|
529
|
-
}, v.apply(this, arguments);
|
|
530
|
-
};
|
|
531
|
-
function Jr(e, t) {
|
|
532
|
-
var r = {};
|
|
533
|
-
for (var n in e)
|
|
534
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
535
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
536
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
537
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
538
|
-
return r;
|
|
539
|
-
}
|
|
540
|
-
function Ve(e) {
|
|
521
|
+
function We(e) {
|
|
541
522
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
542
523
|
if (r)
|
|
543
524
|
return r.call(e);
|
|
@@ -549,7 +530,7 @@ function Ve(e) {
|
|
|
549
530
|
};
|
|
550
531
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
551
532
|
}
|
|
552
|
-
function
|
|
533
|
+
function ze(e, t) {
|
|
553
534
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
554
535
|
if (!r)
|
|
555
536
|
return e;
|
|
@@ -569,22 +550,22 @@ function Xe(e, t) {
|
|
|
569
550
|
}
|
|
570
551
|
return s;
|
|
571
552
|
}
|
|
572
|
-
function
|
|
573
|
-
if (
|
|
553
|
+
function Ze(e, t, r) {
|
|
554
|
+
if (arguments.length === 2)
|
|
574
555
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
575
556
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
576
557
|
return e.concat(s || t);
|
|
577
558
|
}
|
|
578
|
-
function
|
|
559
|
+
function U(e) {
|
|
579
560
|
return typeof e == "function";
|
|
580
561
|
}
|
|
581
|
-
function
|
|
562
|
+
function Wt(e) {
|
|
582
563
|
var t = function(n) {
|
|
583
564
|
Error.call(n), n.stack = new Error().stack;
|
|
584
565
|
}, r = e(t);
|
|
585
566
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
586
567
|
}
|
|
587
|
-
var
|
|
568
|
+
var Ce = Wt(function(e) {
|
|
588
569
|
return function(r) {
|
|
589
570
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
590
571
|
` + r.map(function(n, i) {
|
|
@@ -593,13 +574,13 @@ var Ie = Vt(function(e) {
|
|
|
593
574
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
594
575
|
};
|
|
595
576
|
});
|
|
596
|
-
function
|
|
577
|
+
function qe(e, t) {
|
|
597
578
|
if (e) {
|
|
598
579
|
var r = e.indexOf(t);
|
|
599
580
|
0 <= r && e.splice(r, 1);
|
|
600
581
|
}
|
|
601
582
|
}
|
|
602
|
-
var
|
|
583
|
+
var Te = function() {
|
|
603
584
|
function e(t) {
|
|
604
585
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
605
586
|
}
|
|
@@ -611,7 +592,7 @@ var we = function() {
|
|
|
611
592
|
if (o)
|
|
612
593
|
if (this._parentage = null, Array.isArray(o))
|
|
613
594
|
try {
|
|
614
|
-
for (var a =
|
|
595
|
+
for (var a = We(o), h = a.next(); !h.done; h = a.next()) {
|
|
615
596
|
var u = h.value;
|
|
616
597
|
u.remove(this);
|
|
617
598
|
}
|
|
@@ -628,22 +609,22 @@ var we = function() {
|
|
|
628
609
|
else
|
|
629
610
|
o.remove(this);
|
|
630
611
|
var l = this.initialTeardown;
|
|
631
|
-
if (
|
|
612
|
+
if (U(l))
|
|
632
613
|
try {
|
|
633
614
|
l();
|
|
634
615
|
} catch (b) {
|
|
635
|
-
s = b instanceof
|
|
616
|
+
s = b instanceof Ce ? b.errors : [b];
|
|
636
617
|
}
|
|
637
618
|
var m = this._finalizers;
|
|
638
619
|
if (m) {
|
|
639
620
|
this._finalizers = null;
|
|
640
621
|
try {
|
|
641
|
-
for (var c =
|
|
622
|
+
for (var c = We(m), d = c.next(); !d.done; d = c.next()) {
|
|
642
623
|
var p = d.value;
|
|
643
624
|
try {
|
|
644
|
-
|
|
625
|
+
gt(p);
|
|
645
626
|
} catch (b) {
|
|
646
|
-
s = s ?? [], b instanceof
|
|
627
|
+
s = s ?? [], b instanceof Ce ? s = Ze(Ze([], ze(s)), ze(b.errors)) : s.push(b);
|
|
647
628
|
}
|
|
648
629
|
}
|
|
649
630
|
} catch (b) {
|
|
@@ -658,13 +639,13 @@ var we = function() {
|
|
|
658
639
|
}
|
|
659
640
|
}
|
|
660
641
|
if (s)
|
|
661
|
-
throw new
|
|
642
|
+
throw new Ce(s);
|
|
662
643
|
}
|
|
663
644
|
}, e.prototype.add = function(t) {
|
|
664
645
|
var r;
|
|
665
646
|
if (t && t !== this)
|
|
666
647
|
if (this.closed)
|
|
667
|
-
|
|
648
|
+
gt(t);
|
|
668
649
|
else {
|
|
669
650
|
if (t instanceof e) {
|
|
670
651
|
if (t.closed || t._hasParent(this))
|
|
@@ -681,56 +662,52 @@ var we = function() {
|
|
|
681
662
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
682
663
|
}, e.prototype._removeParent = function(t) {
|
|
683
664
|
var r = this._parentage;
|
|
684
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
665
|
+
r === t ? this._parentage = null : Array.isArray(r) && qe(r, t);
|
|
685
666
|
}, e.prototype.remove = function(t) {
|
|
686
667
|
var r = this._finalizers;
|
|
687
|
-
r &&
|
|
668
|
+
r && qe(r, t), t instanceof e && t._removeParent(this);
|
|
688
669
|
}, e.EMPTY = function() {
|
|
689
670
|
var t = new e();
|
|
690
671
|
return t.closed = !0, t;
|
|
691
672
|
}(), e;
|
|
692
|
-
}(),
|
|
693
|
-
function
|
|
694
|
-
return e instanceof
|
|
695
|
-
}
|
|
696
|
-
function
|
|
697
|
-
|
|
698
|
-
}
|
|
699
|
-
var
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
Promise: void 0,
|
|
703
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
704
|
-
useDeprecatedNextContext: !1
|
|
705
|
-
}, Kr = {
|
|
673
|
+
}(), zt = Te.EMPTY;
|
|
674
|
+
function Zt(e) {
|
|
675
|
+
return e instanceof Te || e && "closed" in e && U(e.remove) && U(e.add) && U(e.unsubscribe);
|
|
676
|
+
}
|
|
677
|
+
function gt(e) {
|
|
678
|
+
U(e) ? e() : e.unsubscribe();
|
|
679
|
+
}
|
|
680
|
+
var Kr = {
|
|
681
|
+
Promise: void 0
|
|
682
|
+
}, en = {
|
|
706
683
|
setTimeout: function(e, t) {
|
|
707
684
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
708
685
|
r[n - 2] = arguments[n];
|
|
709
|
-
return setTimeout.apply(void 0,
|
|
686
|
+
return setTimeout.apply(void 0, Ze([e, t], ze(r)));
|
|
710
687
|
},
|
|
711
688
|
clearTimeout: function(e) {
|
|
712
689
|
return clearTimeout(e);
|
|
713
690
|
},
|
|
714
691
|
delegate: void 0
|
|
715
692
|
};
|
|
716
|
-
function
|
|
717
|
-
|
|
693
|
+
function tn(e) {
|
|
694
|
+
en.setTimeout(function() {
|
|
718
695
|
throw e;
|
|
719
696
|
});
|
|
720
697
|
}
|
|
721
|
-
function
|
|
698
|
+
function yt() {
|
|
722
699
|
}
|
|
723
700
|
function ve(e) {
|
|
724
701
|
e();
|
|
725
702
|
}
|
|
726
|
-
var
|
|
727
|
-
|
|
703
|
+
var qt = function(e) {
|
|
704
|
+
fe(t, e);
|
|
728
705
|
function t(r) {
|
|
729
706
|
var n = e.call(this) || this;
|
|
730
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
707
|
+
return n.isStopped = !1, r ? (n.destination = r, Zt(r) && r.add(n)) : n.destination = sn, n;
|
|
731
708
|
}
|
|
732
709
|
return t.create = function(r, n, i) {
|
|
733
|
-
return new
|
|
710
|
+
return new Qe(r, n, i);
|
|
734
711
|
}, t.prototype.next = function(r) {
|
|
735
712
|
this.isStopped || this._next(r);
|
|
736
713
|
}, t.prototype.error = function(r) {
|
|
@@ -754,11 +731,7 @@ var Zt = function(e) {
|
|
|
754
731
|
this.unsubscribe();
|
|
755
732
|
}
|
|
756
733
|
}, t;
|
|
757
|
-
}(
|
|
758
|
-
function Me(e, t) {
|
|
759
|
-
return tn.call(e, t);
|
|
760
|
-
}
|
|
761
|
-
var rn = function() {
|
|
734
|
+
}(Te), rn = function() {
|
|
762
735
|
function e(t) {
|
|
763
736
|
this.partialObserver = t;
|
|
764
737
|
}
|
|
@@ -789,41 +762,29 @@ var rn = function() {
|
|
|
789
762
|
pe(r);
|
|
790
763
|
}
|
|
791
764
|
}, e;
|
|
792
|
-
}(),
|
|
793
|
-
|
|
765
|
+
}(), Qe = function(e) {
|
|
766
|
+
fe(t, e);
|
|
794
767
|
function t(r, n, i) {
|
|
795
768
|
var s = e.call(this) || this, o;
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
};
|
|
802
|
-
else {
|
|
803
|
-
var a;
|
|
804
|
-
s && zt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
805
|
-
return s.unsubscribe();
|
|
806
|
-
}, o = {
|
|
807
|
-
next: r.next && Me(r.next, a),
|
|
808
|
-
error: r.error && Me(r.error, a),
|
|
809
|
-
complete: r.complete && Me(r.complete, a)
|
|
810
|
-
}) : o = r;
|
|
811
|
-
}
|
|
812
|
-
return s.destination = new rn(o), s;
|
|
769
|
+
return U(r) || !r ? o = {
|
|
770
|
+
next: r ?? void 0,
|
|
771
|
+
error: n ?? void 0,
|
|
772
|
+
complete: i ?? void 0
|
|
773
|
+
} : o = r, s.destination = new rn(o), s;
|
|
813
774
|
}
|
|
814
775
|
return t;
|
|
815
|
-
}(
|
|
776
|
+
}(qt);
|
|
816
777
|
function pe(e) {
|
|
817
|
-
|
|
778
|
+
tn(e);
|
|
818
779
|
}
|
|
819
780
|
function nn(e) {
|
|
820
781
|
throw e;
|
|
821
782
|
}
|
|
822
783
|
var sn = {
|
|
823
784
|
closed: !0,
|
|
824
|
-
next:
|
|
785
|
+
next: yt,
|
|
825
786
|
error: nn,
|
|
826
|
-
complete:
|
|
787
|
+
complete: yt
|
|
827
788
|
}, on = function() {
|
|
828
789
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
829
790
|
}();
|
|
@@ -837,7 +798,7 @@ function un(e) {
|
|
|
837
798
|
}, r);
|
|
838
799
|
};
|
|
839
800
|
}
|
|
840
|
-
var
|
|
801
|
+
var vt = function() {
|
|
841
802
|
function e(t) {
|
|
842
803
|
t && (this._subscribe = t);
|
|
843
804
|
}
|
|
@@ -845,7 +806,7 @@ var gt = function() {
|
|
|
845
806
|
var r = new e();
|
|
846
807
|
return r.source = this, r.operator = t, r;
|
|
847
808
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
848
|
-
var i = this, s = ln(t) ? t : new
|
|
809
|
+
var i = this, s = ln(t) ? t : new Qe(t, r, n);
|
|
849
810
|
return ve(function() {
|
|
850
811
|
var o = i, a = o.operator, h = o.source;
|
|
851
812
|
s.add(a ? a.call(s, h) : h ? i._subscribe(s) : i._trySubscribe(s));
|
|
@@ -858,8 +819,8 @@ var gt = function() {
|
|
|
858
819
|
}
|
|
859
820
|
}, e.prototype.forEach = function(t, r) {
|
|
860
821
|
var n = this;
|
|
861
|
-
return r =
|
|
862
|
-
var o = new
|
|
822
|
+
return r = _t(r), new r(function(i, s) {
|
|
823
|
+
var o = new Qe({
|
|
863
824
|
next: function(a) {
|
|
864
825
|
try {
|
|
865
826
|
t(a);
|
|
@@ -883,7 +844,7 @@ var gt = function() {
|
|
|
883
844
|
return un(t)(this);
|
|
884
845
|
}, e.prototype.toPromise = function(t) {
|
|
885
846
|
var r = this;
|
|
886
|
-
return t =
|
|
847
|
+
return t = _t(t), new t(function(n, i) {
|
|
887
848
|
var s;
|
|
888
849
|
r.subscribe(function(o) {
|
|
889
850
|
return s = o;
|
|
@@ -897,28 +858,28 @@ var gt = function() {
|
|
|
897
858
|
return new e(t);
|
|
898
859
|
}, e;
|
|
899
860
|
}();
|
|
900
|
-
function
|
|
861
|
+
function _t(e) {
|
|
901
862
|
var t;
|
|
902
|
-
return (t = e ??
|
|
863
|
+
return (t = e ?? Kr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
903
864
|
}
|
|
904
865
|
function hn(e) {
|
|
905
|
-
return e &&
|
|
866
|
+
return e && U(e.next) && U(e.error) && U(e.complete);
|
|
906
867
|
}
|
|
907
868
|
function ln(e) {
|
|
908
|
-
return e && e instanceof
|
|
869
|
+
return e && e instanceof qt || hn(e) && Zt(e);
|
|
909
870
|
}
|
|
910
|
-
var cn =
|
|
871
|
+
var cn = Wt(function(e) {
|
|
911
872
|
return function() {
|
|
912
873
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
913
874
|
};
|
|
914
|
-
}),
|
|
915
|
-
|
|
875
|
+
}), Qt = function(e) {
|
|
876
|
+
fe(t, e);
|
|
916
877
|
function t() {
|
|
917
878
|
var r = e.call(this) || this;
|
|
918
879
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
919
880
|
}
|
|
920
881
|
return t.prototype.lift = function(r) {
|
|
921
|
-
var n = new
|
|
882
|
+
var n = new Et(this, this);
|
|
922
883
|
return n.operator = r, n;
|
|
923
884
|
}, t.prototype._throwIfClosed = function() {
|
|
924
885
|
if (this.closed)
|
|
@@ -930,7 +891,7 @@ var cn = Vt(function(e) {
|
|
|
930
891
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
931
892
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
932
893
|
try {
|
|
933
|
-
for (var o =
|
|
894
|
+
for (var o = We(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
|
934
895
|
var h = a.value;
|
|
935
896
|
h.next(r);
|
|
936
897
|
}
|
|
@@ -979,20 +940,20 @@ var cn = Vt(function(e) {
|
|
|
979
940
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
980
941
|
}, t.prototype._innerSubscribe = function(r) {
|
|
981
942
|
var n = this, i = this, s = i.hasError, o = i.isStopped, a = i.observers;
|
|
982
|
-
return s || o ?
|
|
983
|
-
n.currentObservers = null,
|
|
943
|
+
return s || o ? zt : (this.currentObservers = null, a.push(r), new Te(function() {
|
|
944
|
+
n.currentObservers = null, qe(a, r);
|
|
984
945
|
}));
|
|
985
946
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
986
947
|
var n = this, i = n.hasError, s = n.thrownError, o = n.isStopped;
|
|
987
948
|
i ? r.error(s) : o && r.complete();
|
|
988
949
|
}, t.prototype.asObservable = function() {
|
|
989
|
-
var r = new
|
|
950
|
+
var r = new vt();
|
|
990
951
|
return r.source = this, r;
|
|
991
952
|
}, t.create = function(r, n) {
|
|
992
|
-
return new
|
|
953
|
+
return new Et(r, n);
|
|
993
954
|
}, t;
|
|
994
|
-
}(
|
|
995
|
-
|
|
955
|
+
}(vt), Et = function(e) {
|
|
956
|
+
fe(t, e);
|
|
996
957
|
function t(r, n) {
|
|
997
958
|
var i = e.call(this) || this;
|
|
998
959
|
return i.destination = r, i.source = n, i;
|
|
@@ -1008,17 +969,17 @@ var cn = Vt(function(e) {
|
|
|
1008
969
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1009
970
|
}, t.prototype._subscribe = function(r) {
|
|
1010
971
|
var n, i;
|
|
1011
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
972
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : zt;
|
|
1012
973
|
}, t;
|
|
1013
|
-
}(
|
|
974
|
+
}(Qt), Yt = {
|
|
1014
975
|
now: function() {
|
|
1015
|
-
return (
|
|
976
|
+
return (Yt.delegate || Date).now();
|
|
1016
977
|
},
|
|
1017
978
|
delegate: void 0
|
|
1018
979
|
}, fn = function(e) {
|
|
1019
|
-
|
|
980
|
+
fe(t, e);
|
|
1020
981
|
function t(r, n, i) {
|
|
1021
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
982
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Yt);
|
|
1022
983
|
var s = e.call(this) || this;
|
|
1023
984
|
return s._bufferSize = r, s._windowTime = n, s._timestampProvider = i, s._buffer = [], s._infiniteTimeWindow = !0, s._infiniteTimeWindow = n === 1 / 0, s._bufferSize = Math.max(1, r), s._windowTime = Math.max(1, n), s;
|
|
1024
985
|
}
|
|
@@ -1038,24 +999,24 @@ var cn = Vt(function(e) {
|
|
|
1038
999
|
u && s.splice(0, u + 1);
|
|
1039
1000
|
}
|
|
1040
1001
|
}, t;
|
|
1041
|
-
}(
|
|
1042
|
-
const
|
|
1043
|
-
if (
|
|
1002
|
+
}(Qt);
|
|
1003
|
+
const xt = [], St = {}, mn = (e, t = 0) => {
|
|
1004
|
+
if (xt.indexOf(e) == -1) {
|
|
1044
1005
|
const r = new fn(t);
|
|
1045
|
-
|
|
1006
|
+
St[e] = r, xt.push(e);
|
|
1046
1007
|
}
|
|
1047
|
-
return
|
|
1008
|
+
return St[e];
|
|
1048
1009
|
}, Z = [];
|
|
1049
1010
|
function dn(e, t) {
|
|
1050
1011
|
return {
|
|
1051
|
-
subscribe:
|
|
1012
|
+
subscribe: He(e, t).subscribe
|
|
1052
1013
|
};
|
|
1053
1014
|
}
|
|
1054
|
-
function
|
|
1015
|
+
function He(e, t = I) {
|
|
1055
1016
|
let r;
|
|
1056
1017
|
const n = /* @__PURE__ */ new Set();
|
|
1057
1018
|
function i(a) {
|
|
1058
|
-
if (
|
|
1019
|
+
if (Ut(e, a) && (e = a, r)) {
|
|
1059
1020
|
const h = !Z.length;
|
|
1060
1021
|
for (const u of n)
|
|
1061
1022
|
u[1](), Z.push(u, e);
|
|
@@ -1077,7 +1038,7 @@ function Te(e, t = I) {
|
|
|
1077
1038
|
}
|
|
1078
1039
|
return { set: i, update: s, subscribe: o };
|
|
1079
1040
|
}
|
|
1080
|
-
function
|
|
1041
|
+
function ie(e, t, r) {
|
|
1081
1042
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1082
1043
|
if (!i.every(Boolean))
|
|
1083
1044
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1091,9 +1052,9 @@ function se(e, t, r) {
|
|
|
1091
1052
|
return;
|
|
1092
1053
|
m();
|
|
1093
1054
|
const p = t(n ? u[0] : u, o, a);
|
|
1094
|
-
s ? o(p) : m =
|
|
1055
|
+
s ? o(p) : m = at(p) ? p : I;
|
|
1095
1056
|
}, d = i.map(
|
|
1096
|
-
(p, b) =>
|
|
1057
|
+
(p, b) => Dt(
|
|
1097
1058
|
p,
|
|
1098
1059
|
(w) => {
|
|
1099
1060
|
u[b] = w, l &= ~(1 << b), h && c();
|
|
@@ -1104,7 +1065,7 @@ function se(e, t, r) {
|
|
|
1104
1065
|
)
|
|
1105
1066
|
);
|
|
1106
1067
|
return h = !0, c(), function() {
|
|
1107
|
-
|
|
1068
|
+
te(d), m(), h = !1;
|
|
1108
1069
|
};
|
|
1109
1070
|
});
|
|
1110
1071
|
}
|
|
@@ -1128,29 +1089,29 @@ function En(e) {
|
|
|
1128
1089
|
function xn(e) {
|
|
1129
1090
|
return Array.isArray(e) ? [] : {};
|
|
1130
1091
|
}
|
|
1131
|
-
function
|
|
1132
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1092
|
+
function he(e, t) {
|
|
1093
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Y(xn(e), e, t) : e;
|
|
1133
1094
|
}
|
|
1134
1095
|
function Sn(e, t, r) {
|
|
1135
1096
|
return e.concat(t).map(function(n) {
|
|
1136
|
-
return
|
|
1097
|
+
return he(n, r);
|
|
1137
1098
|
});
|
|
1138
1099
|
}
|
|
1139
1100
|
function wn(e, t) {
|
|
1140
1101
|
if (!t.customMerge)
|
|
1141
|
-
return
|
|
1102
|
+
return Y;
|
|
1142
1103
|
var r = t.customMerge(e);
|
|
1143
|
-
return typeof r == "function" ? r :
|
|
1104
|
+
return typeof r == "function" ? r : Y;
|
|
1144
1105
|
}
|
|
1145
1106
|
function Tn(e) {
|
|
1146
1107
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1147
1108
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1148
1109
|
}) : [];
|
|
1149
1110
|
}
|
|
1150
|
-
function
|
|
1111
|
+
function wt(e) {
|
|
1151
1112
|
return Object.keys(e).concat(Tn(e));
|
|
1152
1113
|
}
|
|
1153
|
-
function
|
|
1114
|
+
function Jt(e, t) {
|
|
1154
1115
|
try {
|
|
1155
1116
|
return t in e;
|
|
1156
1117
|
} catch {
|
|
@@ -1158,129 +1119,179 @@ function Yt(e, t) {
|
|
|
1158
1119
|
}
|
|
1159
1120
|
}
|
|
1160
1121
|
function Hn(e, t) {
|
|
1161
|
-
return
|
|
1122
|
+
return Jt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1162
1123
|
}
|
|
1163
1124
|
function An(e, t, r) {
|
|
1164
1125
|
var n = {};
|
|
1165
|
-
return r.isMergeableObject(e) &&
|
|
1166
|
-
n[i] =
|
|
1167
|
-
}),
|
|
1168
|
-
Hn(e, i) || (
|
|
1126
|
+
return r.isMergeableObject(e) && wt(e).forEach(function(i) {
|
|
1127
|
+
n[i] = he(e[i], r);
|
|
1128
|
+
}), wt(t).forEach(function(i) {
|
|
1129
|
+
Hn(e, i) || (Jt(e, i) && r.isMergeableObject(t[i]) ? n[i] = wn(i, r)(e[i], t[i], r) : n[i] = he(t[i], r));
|
|
1169
1130
|
}), n;
|
|
1170
1131
|
}
|
|
1171
|
-
function
|
|
1172
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Sn, r.isMergeableObject = r.isMergeableObject || pn, r.cloneUnlessOtherwiseSpecified =
|
|
1132
|
+
function Y(e, t, r) {
|
|
1133
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Sn, r.isMergeableObject = r.isMergeableObject || pn, r.cloneUnlessOtherwiseSpecified = he;
|
|
1173
1134
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
1174
|
-
return s ? n ? r.arrayMerge(e, t, r) : An(e, t, r) :
|
|
1135
|
+
return s ? n ? r.arrayMerge(e, t, r) : An(e, t, r) : he(t, r);
|
|
1175
1136
|
}
|
|
1176
|
-
|
|
1137
|
+
Y.all = function(t, r) {
|
|
1177
1138
|
if (!Array.isArray(t))
|
|
1178
1139
|
throw new Error("first argument should be an array");
|
|
1179
1140
|
return t.reduce(function(n, i) {
|
|
1180
|
-
return
|
|
1141
|
+
return Y(n, i, r);
|
|
1181
1142
|
}, {});
|
|
1182
1143
|
};
|
|
1183
|
-
var Bn =
|
|
1184
|
-
const
|
|
1185
|
-
function
|
|
1186
|
-
|
|
1144
|
+
var Bn = Y, Pn = Bn;
|
|
1145
|
+
const On = /* @__PURE__ */ bn(Pn);
|
|
1146
|
+
var Ye = function(e, t) {
|
|
1147
|
+
return Ye = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1148
|
+
r.__proto__ = n;
|
|
1149
|
+
} || function(r, n) {
|
|
1150
|
+
for (var i in n)
|
|
1151
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1152
|
+
}, Ye(e, t);
|
|
1153
|
+
};
|
|
1154
|
+
function Ae(e, t) {
|
|
1155
|
+
if (typeof t != "function" && t !== null)
|
|
1156
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1157
|
+
Ye(e, t);
|
|
1158
|
+
function r() {
|
|
1159
|
+
this.constructor = e;
|
|
1160
|
+
}
|
|
1161
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1162
|
+
}
|
|
1163
|
+
var R = function() {
|
|
1164
|
+
return R = Object.assign || function(t) {
|
|
1165
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1166
|
+
r = arguments[n];
|
|
1167
|
+
for (var s in r)
|
|
1168
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1169
|
+
}
|
|
1170
|
+
return t;
|
|
1171
|
+
}, R.apply(this, arguments);
|
|
1172
|
+
};
|
|
1173
|
+
function Nn(e, t) {
|
|
1174
|
+
var r = {};
|
|
1175
|
+
for (var n in e)
|
|
1176
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1177
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1178
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1179
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1180
|
+
return r;
|
|
1181
|
+
}
|
|
1182
|
+
function Re(e, t, r) {
|
|
1183
|
+
if (r || arguments.length === 2)
|
|
1184
|
+
for (var n = 0, i = t.length, s; n < i; n++)
|
|
1185
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
1186
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
1187
|
+
}
|
|
1188
|
+
function Ge(e, t) {
|
|
1189
|
+
var r = t && t.cache ? t.cache : Un, n = t && t.serializer ? t.serializer : Rn, i = t && t.strategy ? t.strategy : Mn;
|
|
1187
1190
|
return i(e, {
|
|
1188
1191
|
cache: r,
|
|
1189
1192
|
serializer: n
|
|
1190
1193
|
});
|
|
1191
1194
|
}
|
|
1192
|
-
function
|
|
1195
|
+
function Ln(e) {
|
|
1193
1196
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1194
1197
|
}
|
|
1195
|
-
function
|
|
1196
|
-
var i =
|
|
1198
|
+
function In(e, t, r, n) {
|
|
1199
|
+
var i = Ln(n) ? n : r(n), s = t.get(i);
|
|
1197
1200
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
1198
1201
|
}
|
|
1199
1202
|
function Kt(e, t, r) {
|
|
1200
1203
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
1201
1204
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
1202
1205
|
}
|
|
1203
|
-
function
|
|
1206
|
+
function er(e, t, r, n, i) {
|
|
1204
1207
|
return r.bind(t, e, n, i);
|
|
1205
1208
|
}
|
|
1206
|
-
function Ln(e, t) {
|
|
1207
|
-
var r = e.length === 1 ? Jt : Kt;
|
|
1208
|
-
return it(e, this, r, t.cache.create(), t.serializer);
|
|
1209
|
-
}
|
|
1210
|
-
function In(e, t) {
|
|
1211
|
-
return it(e, this, Kt, t.cache.create(), t.serializer);
|
|
1212
|
-
}
|
|
1213
1209
|
function Mn(e, t) {
|
|
1214
|
-
|
|
1210
|
+
var r = e.length === 1 ? In : Kt;
|
|
1211
|
+
return er(e, this, r, t.cache.create(), t.serializer);
|
|
1215
1212
|
}
|
|
1216
|
-
|
|
1217
|
-
return
|
|
1218
|
-
};
|
|
1219
|
-
function st() {
|
|
1220
|
-
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1213
|
+
function Cn(e, t) {
|
|
1214
|
+
return er(e, this, Kt, t.cache.create(), t.serializer);
|
|
1221
1215
|
}
|
|
1222
|
-
|
|
1223
|
-
return
|
|
1224
|
-
}
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1216
|
+
var Rn = function() {
|
|
1217
|
+
return JSON.stringify(arguments);
|
|
1218
|
+
}, Gn = (
|
|
1219
|
+
/** @class */
|
|
1220
|
+
function() {
|
|
1221
|
+
function e() {
|
|
1222
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1223
|
+
}
|
|
1224
|
+
return e.prototype.get = function(t) {
|
|
1225
|
+
return this.cache[t];
|
|
1226
|
+
}, e.prototype.set = function(t, r) {
|
|
1227
|
+
this.cache[t] = r;
|
|
1228
|
+
}, e;
|
|
1229
|
+
}()
|
|
1230
|
+
), Un = {
|
|
1229
1231
|
create: function() {
|
|
1230
|
-
return new
|
|
1232
|
+
return new Gn();
|
|
1231
1233
|
}
|
|
1232
|
-
},
|
|
1233
|
-
variadic:
|
|
1234
|
-
|
|
1235
|
-
|
|
1234
|
+
}, Ue = {
|
|
1235
|
+
variadic: Cn
|
|
1236
|
+
}, xe = function() {
|
|
1237
|
+
return xe = Object.assign || function(t) {
|
|
1238
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1239
|
+
r = arguments[n];
|
|
1240
|
+
for (var s in r)
|
|
1241
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1242
|
+
}
|
|
1243
|
+
return t;
|
|
1244
|
+
}, xe.apply(this, arguments);
|
|
1245
|
+
};
|
|
1246
|
+
var g;
|
|
1236
1247
|
(function(e) {
|
|
1237
1248
|
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";
|
|
1238
1249
|
})(g || (g = {}));
|
|
1239
|
-
var
|
|
1250
|
+
var E;
|
|
1240
1251
|
(function(e) {
|
|
1241
1252
|
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";
|
|
1242
|
-
})(
|
|
1243
|
-
var
|
|
1253
|
+
})(E || (E = {}));
|
|
1254
|
+
var J;
|
|
1244
1255
|
(function(e) {
|
|
1245
1256
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1246
|
-
})(
|
|
1247
|
-
function
|
|
1248
|
-
return e.type ===
|
|
1249
|
-
}
|
|
1250
|
-
function Gn(e) {
|
|
1251
|
-
return e.type === x.argument;
|
|
1257
|
+
})(J || (J = {}));
|
|
1258
|
+
function Tt(e) {
|
|
1259
|
+
return e.type === E.literal;
|
|
1252
1260
|
}
|
|
1253
|
-
function
|
|
1254
|
-
return e.type ===
|
|
1261
|
+
function Dn(e) {
|
|
1262
|
+
return e.type === E.argument;
|
|
1255
1263
|
}
|
|
1256
1264
|
function tr(e) {
|
|
1257
|
-
return e.type ===
|
|
1265
|
+
return e.type === E.number;
|
|
1258
1266
|
}
|
|
1259
1267
|
function rr(e) {
|
|
1260
|
-
return e.type ===
|
|
1268
|
+
return e.type === E.date;
|
|
1261
1269
|
}
|
|
1262
1270
|
function nr(e) {
|
|
1263
|
-
return e.type ===
|
|
1271
|
+
return e.type === E.time;
|
|
1264
1272
|
}
|
|
1265
1273
|
function ir(e) {
|
|
1266
|
-
return e.type ===
|
|
1267
|
-
}
|
|
1268
|
-
function Un(e) {
|
|
1269
|
-
return e.type === x.pound;
|
|
1274
|
+
return e.type === E.select;
|
|
1270
1275
|
}
|
|
1271
1276
|
function sr(e) {
|
|
1272
|
-
return e.type ===
|
|
1277
|
+
return e.type === E.plural;
|
|
1278
|
+
}
|
|
1279
|
+
function $n(e) {
|
|
1280
|
+
return e.type === E.pound;
|
|
1273
1281
|
}
|
|
1274
1282
|
function or(e) {
|
|
1275
|
-
return
|
|
1283
|
+
return e.type === E.tag;
|
|
1276
1284
|
}
|
|
1277
|
-
function
|
|
1278
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1285
|
+
function ar(e) {
|
|
1286
|
+
return !!(e && typeof e == "object" && e.type === J.number);
|
|
1279
1287
|
}
|
|
1280
|
-
|
|
1281
|
-
|
|
1288
|
+
function Je(e) {
|
|
1289
|
+
return !!(e && typeof e == "object" && e.type === J.dateTime);
|
|
1290
|
+
}
|
|
1291
|
+
var ur = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Fn = /(?:[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;
|
|
1292
|
+
function jn(e) {
|
|
1282
1293
|
var t = {};
|
|
1283
|
-
return e.replace(
|
|
1294
|
+
return e.replace(Fn, function(r) {
|
|
1284
1295
|
var n = r.length;
|
|
1285
1296
|
switch (r[0]) {
|
|
1286
1297
|
case "G":
|
|
@@ -1369,11 +1380,21 @@ function Fn(e) {
|
|
|
1369
1380
|
return "";
|
|
1370
1381
|
}), t;
|
|
1371
1382
|
}
|
|
1372
|
-
var
|
|
1373
|
-
function
|
|
1383
|
+
var S = function() {
|
|
1384
|
+
return S = Object.assign || function(t) {
|
|
1385
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1386
|
+
r = arguments[n];
|
|
1387
|
+
for (var s in r)
|
|
1388
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1389
|
+
}
|
|
1390
|
+
return t;
|
|
1391
|
+
}, S.apply(this, arguments);
|
|
1392
|
+
};
|
|
1393
|
+
var kn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1394
|
+
function Vn(e) {
|
|
1374
1395
|
if (e.length === 0)
|
|
1375
1396
|
throw new Error("Number skeleton cannot be empty");
|
|
1376
|
-
for (var t = e.split(
|
|
1397
|
+
for (var t = e.split(kn).filter(function(c) {
|
|
1377
1398
|
return c.length > 0;
|
|
1378
1399
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1379
1400
|
var s = i[n], o = s.split("/");
|
|
@@ -1388,17 +1409,17 @@ function jn(e) {
|
|
|
1388
1409
|
}
|
|
1389
1410
|
return r;
|
|
1390
1411
|
}
|
|
1391
|
-
function
|
|
1412
|
+
function Xn(e) {
|
|
1392
1413
|
return e.replace(/^(.*?)-/, "");
|
|
1393
1414
|
}
|
|
1394
|
-
var
|
|
1395
|
-
function
|
|
1415
|
+
var Ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, hr = /^(@+)?(\+|#+)?[rs]?$/g, Wn = /(\*)(0+)|(#+)(0+)|(0+)/g, lr = /^(0+)$/;
|
|
1416
|
+
function At(e) {
|
|
1396
1417
|
var t = {};
|
|
1397
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1418
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(hr, function(r, n, i) {
|
|
1398
1419
|
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)), "";
|
|
1399
1420
|
}), t;
|
|
1400
1421
|
}
|
|
1401
|
-
function
|
|
1422
|
+
function cr(e) {
|
|
1402
1423
|
switch (e) {
|
|
1403
1424
|
case "sign-auto":
|
|
1404
1425
|
return {
|
|
@@ -1438,7 +1459,7 @@ function lr(e) {
|
|
|
1438
1459
|
};
|
|
1439
1460
|
}
|
|
1440
1461
|
}
|
|
1441
|
-
function
|
|
1462
|
+
function zn(e) {
|
|
1442
1463
|
var t;
|
|
1443
1464
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1444
1465
|
notation: "engineering"
|
|
@@ -1446,17 +1467,17 @@ function Xn(e) {
|
|
|
1446
1467
|
notation: "scientific"
|
|
1447
1468
|
}, e = e.slice(1)), t) {
|
|
1448
1469
|
var r = e.slice(0, 2);
|
|
1449
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1470
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !lr.test(e))
|
|
1450
1471
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1451
1472
|
t.minimumIntegerDigits = e.length;
|
|
1452
1473
|
}
|
|
1453
1474
|
return t;
|
|
1454
1475
|
}
|
|
1455
|
-
function
|
|
1456
|
-
var t = {}, r =
|
|
1476
|
+
function Bt(e) {
|
|
1477
|
+
var t = {}, r = cr(e);
|
|
1457
1478
|
return r || t;
|
|
1458
1479
|
}
|
|
1459
|
-
function
|
|
1480
|
+
function Zn(e) {
|
|
1460
1481
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1461
1482
|
var i = n[r];
|
|
1462
1483
|
switch (i.stem) {
|
|
@@ -1480,7 +1501,7 @@ function Wn(e) {
|
|
|
1480
1501
|
continue;
|
|
1481
1502
|
case "measure-unit":
|
|
1482
1503
|
case "unit":
|
|
1483
|
-
t.style = "unit", t.unit =
|
|
1504
|
+
t.style = "unit", t.unit = Xn(i.options[0]);
|
|
1484
1505
|
continue;
|
|
1485
1506
|
case "compact-short":
|
|
1486
1507
|
case "K":
|
|
@@ -1491,13 +1512,13 @@ function Wn(e) {
|
|
|
1491
1512
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1492
1513
|
continue;
|
|
1493
1514
|
case "scientific":
|
|
1494
|
-
t =
|
|
1495
|
-
return
|
|
1515
|
+
t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1516
|
+
return S(S({}, h), Bt(u));
|
|
1496
1517
|
}, {}));
|
|
1497
1518
|
continue;
|
|
1498
1519
|
case "engineering":
|
|
1499
|
-
t =
|
|
1500
|
-
return
|
|
1520
|
+
t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1521
|
+
return S(S({}, h), Bt(u));
|
|
1501
1522
|
}, {}));
|
|
1502
1523
|
continue;
|
|
1503
1524
|
case "notation-simple":
|
|
@@ -1542,7 +1563,7 @@ function Wn(e) {
|
|
|
1542
1563
|
case "integer-width":
|
|
1543
1564
|
if (i.options.length > 1)
|
|
1544
1565
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1545
|
-
i.options[0].replace(
|
|
1566
|
+
i.options[0].replace(Wn, function(h, u, l, m, c, d) {
|
|
1546
1567
|
if (u)
|
|
1547
1568
|
t.minimumIntegerDigits = l.length;
|
|
1548
1569
|
else {
|
|
@@ -1555,28 +1576,28 @@ function Wn(e) {
|
|
|
1555
1576
|
});
|
|
1556
1577
|
continue;
|
|
1557
1578
|
}
|
|
1558
|
-
if (
|
|
1579
|
+
if (lr.test(i.stem)) {
|
|
1559
1580
|
t.minimumIntegerDigits = i.stem.length;
|
|
1560
1581
|
continue;
|
|
1561
1582
|
}
|
|
1562
|
-
if (
|
|
1583
|
+
if (Ht.test(i.stem)) {
|
|
1563
1584
|
if (i.options.length > 1)
|
|
1564
1585
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1565
|
-
i.stem.replace(
|
|
1586
|
+
i.stem.replace(Ht, function(h, u, l, m, c, d) {
|
|
1566
1587
|
return l === "*" ? t.minimumFractionDigits = u.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1567
1588
|
});
|
|
1568
1589
|
var s = i.options[0];
|
|
1569
|
-
s === "w" ? t =
|
|
1590
|
+
s === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = S(S({}, t), At(s)));
|
|
1570
1591
|
continue;
|
|
1571
1592
|
}
|
|
1572
|
-
if (
|
|
1573
|
-
t =
|
|
1593
|
+
if (hr.test(i.stem)) {
|
|
1594
|
+
t = S(S({}, t), At(i.stem));
|
|
1574
1595
|
continue;
|
|
1575
1596
|
}
|
|
1576
|
-
var o =
|
|
1577
|
-
o && (t =
|
|
1578
|
-
var a =
|
|
1579
|
-
a && (t =
|
|
1597
|
+
var o = cr(i.stem);
|
|
1598
|
+
o && (t = S(S({}, t), o));
|
|
1599
|
+
var a = zn(i.stem);
|
|
1600
|
+
a && (t = S(S({}, t), a));
|
|
1580
1601
|
}
|
|
1581
1602
|
return t;
|
|
1582
1603
|
}
|
|
@@ -2995,13 +3016,13 @@ var ge = {
|
|
|
2995
3016
|
"h"
|
|
2996
3017
|
]
|
|
2997
3018
|
};
|
|
2998
|
-
function
|
|
3019
|
+
function qn(e, t) {
|
|
2999
3020
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3000
3021
|
var i = e.charAt(n);
|
|
3001
3022
|
if (i === "j") {
|
|
3002
3023
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3003
3024
|
s++, n++;
|
|
3004
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u =
|
|
3025
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = Qn(t);
|
|
3005
3026
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3006
3027
|
r += h;
|
|
3007
3028
|
for (; o-- > 0; )
|
|
@@ -3011,7 +3032,7 @@ function zn(e, t) {
|
|
|
3011
3032
|
}
|
|
3012
3033
|
return r;
|
|
3013
3034
|
}
|
|
3014
|
-
function
|
|
3035
|
+
function Qn(e) {
|
|
3015
3036
|
var t = e.hourCycle;
|
|
3016
3037
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3017
3038
|
e.hourCycles && // @ts-ignore
|
|
@@ -3033,20 +3054,20 @@ function Zn(e) {
|
|
|
3033
3054
|
var i = ge[n || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
|
|
3034
3055
|
return i[0];
|
|
3035
3056
|
}
|
|
3036
|
-
var
|
|
3057
|
+
var De, Yn = new RegExp("^".concat(ur.source, "*")), Jn = new RegExp("".concat(ur.source, "*$"));
|
|
3037
3058
|
function y(e, t) {
|
|
3038
3059
|
return { start: e, end: t };
|
|
3039
3060
|
}
|
|
3040
|
-
var
|
|
3061
|
+
var Kn = !!String.prototype.startsWith && "_a".startsWith("a", 1), ei = !!String.fromCodePoint, ti = !!Object.fromEntries, ri = !!String.prototype.codePointAt, ni = !!String.prototype.trimStart, ii = !!String.prototype.trimEnd, si = !!Number.isSafeInteger, oi = si ? Number.isSafeInteger : function(e) {
|
|
3041
3062
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3042
|
-
},
|
|
3063
|
+
}, Ke = !0;
|
|
3043
3064
|
try {
|
|
3044
|
-
var
|
|
3045
|
-
|
|
3065
|
+
var ai = mr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3066
|
+
Ke = ((De = ai.exec("a")) === null || De === void 0 ? void 0 : De[0]) === "a";
|
|
3046
3067
|
} catch {
|
|
3047
|
-
|
|
3068
|
+
Ke = !1;
|
|
3048
3069
|
}
|
|
3049
|
-
var
|
|
3070
|
+
var Pt = Kn ? (
|
|
3050
3071
|
// Native
|
|
3051
3072
|
function(t, r, n) {
|
|
3052
3073
|
return t.startsWith(r, n);
|
|
@@ -3056,7 +3077,7 @@ var At = Yn ? (
|
|
|
3056
3077
|
function(t, r, n) {
|
|
3057
3078
|
return t.slice(n, n + r.length) === r;
|
|
3058
3079
|
}
|
|
3059
|
-
),
|
|
3080
|
+
), et = ei ? String.fromCodePoint : (
|
|
3060
3081
|
// IE11
|
|
3061
3082
|
function() {
|
|
3062
3083
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3068,9 +3089,9 @@ var At = Yn ? (
|
|
|
3068
3089
|
}
|
|
3069
3090
|
return n;
|
|
3070
3091
|
}
|
|
3071
|
-
),
|
|
3092
|
+
), Ot = (
|
|
3072
3093
|
// native
|
|
3073
|
-
|
|
3094
|
+
ti ? Object.fromEntries : (
|
|
3074
3095
|
// Ponyfill
|
|
3075
3096
|
function(t) {
|
|
3076
3097
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3080,7 +3101,7 @@ var At = Yn ? (
|
|
|
3080
3101
|
return r;
|
|
3081
3102
|
}
|
|
3082
3103
|
)
|
|
3083
|
-
),
|
|
3104
|
+
), fr = ri ? (
|
|
3084
3105
|
// Native
|
|
3085
3106
|
function(t, r) {
|
|
3086
3107
|
return t.codePointAt(r);
|
|
@@ -3094,7 +3115,7 @@ var At = Yn ? (
|
|
|
3094
3115
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
3095
3116
|
}
|
|
3096
3117
|
}
|
|
3097
|
-
),
|
|
3118
|
+
), ui = ni ? (
|
|
3098
3119
|
// Native
|
|
3099
3120
|
function(t) {
|
|
3100
3121
|
return t.trimStart();
|
|
@@ -3102,9 +3123,9 @@ var At = Yn ? (
|
|
|
3102
3123
|
) : (
|
|
3103
3124
|
// Ponyfill
|
|
3104
3125
|
function(t) {
|
|
3105
|
-
return t.replace(
|
|
3126
|
+
return t.replace(Yn, "");
|
|
3106
3127
|
}
|
|
3107
|
-
),
|
|
3128
|
+
), hi = ii ? (
|
|
3108
3129
|
// Native
|
|
3109
3130
|
function(t) {
|
|
3110
3131
|
return t.trimEnd();
|
|
@@ -3112,32 +3133,32 @@ var At = Yn ? (
|
|
|
3112
3133
|
) : (
|
|
3113
3134
|
// Ponyfill
|
|
3114
3135
|
function(t) {
|
|
3115
|
-
return t.replace(
|
|
3136
|
+
return t.replace(Jn, "");
|
|
3116
3137
|
}
|
|
3117
3138
|
);
|
|
3118
|
-
function
|
|
3139
|
+
function mr(e, t) {
|
|
3119
3140
|
return new RegExp(e, t);
|
|
3120
3141
|
}
|
|
3121
|
-
var
|
|
3122
|
-
if (
|
|
3123
|
-
var
|
|
3124
|
-
|
|
3142
|
+
var tt;
|
|
3143
|
+
if (Ke) {
|
|
3144
|
+
var Nt = mr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3145
|
+
tt = function(t, r) {
|
|
3125
3146
|
var n;
|
|
3126
|
-
|
|
3127
|
-
var i =
|
|
3147
|
+
Nt.lastIndex = r;
|
|
3148
|
+
var i = Nt.exec(t);
|
|
3128
3149
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3129
3150
|
};
|
|
3130
3151
|
} else
|
|
3131
|
-
|
|
3152
|
+
tt = function(t, r) {
|
|
3132
3153
|
for (var n = []; ; ) {
|
|
3133
|
-
var i =
|
|
3134
|
-
if (i === void 0 ||
|
|
3154
|
+
var i = fr(t, r);
|
|
3155
|
+
if (i === void 0 || dr(i) || mi(i))
|
|
3135
3156
|
break;
|
|
3136
3157
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3137
3158
|
}
|
|
3138
|
-
return
|
|
3159
|
+
return et.apply(void 0, n);
|
|
3139
3160
|
};
|
|
3140
|
-
var
|
|
3161
|
+
var li = (
|
|
3141
3162
|
/** @class */
|
|
3142
3163
|
function() {
|
|
3143
3164
|
function e(t, r) {
|
|
@@ -3161,14 +3182,14 @@ var ui = (
|
|
|
3161
3182
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3162
3183
|
var a = this.clonePosition();
|
|
3163
3184
|
this.bump(), i.push({
|
|
3164
|
-
type:
|
|
3185
|
+
type: E.pound,
|
|
3165
3186
|
location: y(a, this.clonePosition())
|
|
3166
3187
|
});
|
|
3167
3188
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3168
3189
|
if (n)
|
|
3169
3190
|
break;
|
|
3170
3191
|
return this.error(g.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
3171
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
3192
|
+
} else if (s === 60 && !this.ignoreTag && rt(this.peek() || 0)) {
|
|
3172
3193
|
var o = this.parseTag(t, r);
|
|
3173
3194
|
if (o.err)
|
|
3174
3195
|
return o;
|
|
@@ -3189,7 +3210,7 @@ var ui = (
|
|
|
3189
3210
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3190
3211
|
return {
|
|
3191
3212
|
val: {
|
|
3192
|
-
type:
|
|
3213
|
+
type: E.literal,
|
|
3193
3214
|
value: "<".concat(i, "/>"),
|
|
3194
3215
|
location: y(n, this.clonePosition())
|
|
3195
3216
|
},
|
|
@@ -3201,12 +3222,12 @@ var ui = (
|
|
|
3201
3222
|
return s;
|
|
3202
3223
|
var o = s.val, a = this.clonePosition();
|
|
3203
3224
|
if (this.bumpIf("</")) {
|
|
3204
|
-
if (this.isEOF() || !
|
|
3225
|
+
if (this.isEOF() || !rt(this.char()))
|
|
3205
3226
|
return this.error(g.INVALID_TAG, y(a, this.clonePosition()));
|
|
3206
3227
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3207
3228
|
return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, y(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3208
3229
|
val: {
|
|
3209
|
-
type:
|
|
3230
|
+
type: E.tag,
|
|
3210
3231
|
value: i,
|
|
3211
3232
|
children: o,
|
|
3212
3233
|
location: y(n, this.clonePosition())
|
|
@@ -3219,7 +3240,7 @@ var ui = (
|
|
|
3219
3240
|
return this.error(g.INVALID_TAG, y(n, this.clonePosition()));
|
|
3220
3241
|
}, e.prototype.parseTagName = function() {
|
|
3221
3242
|
var t = this.offset();
|
|
3222
|
-
for (this.bump(); !this.isEOF() &&
|
|
3243
|
+
for (this.bump(); !this.isEOF() && fi(this.char()); )
|
|
3223
3244
|
this.bump();
|
|
3224
3245
|
return this.message.slice(t, this.offset());
|
|
3225
3246
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3243,12 +3264,12 @@ var ui = (
|
|
|
3243
3264
|
}
|
|
3244
3265
|
var h = y(n, this.clonePosition());
|
|
3245
3266
|
return {
|
|
3246
|
-
val: { type:
|
|
3267
|
+
val: { type: E.literal, value: i, location: h },
|
|
3247
3268
|
err: null
|
|
3248
3269
|
};
|
|
3249
3270
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3250
3271
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3251
|
-
!
|
|
3272
|
+
!ci(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3252
3273
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3253
3274
|
if (this.isEOF() || this.char() !== 39)
|
|
3254
3275
|
return null;
|
|
@@ -3282,12 +3303,12 @@ var ui = (
|
|
|
3282
3303
|
r.push(n);
|
|
3283
3304
|
this.bump();
|
|
3284
3305
|
}
|
|
3285
|
-
return
|
|
3306
|
+
return et.apply(void 0, r);
|
|
3286
3307
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3287
3308
|
if (this.isEOF())
|
|
3288
3309
|
return null;
|
|
3289
3310
|
var n = this.char();
|
|
3290
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3311
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), et(n));
|
|
3291
3312
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3292
3313
|
var n = this.clonePosition();
|
|
3293
3314
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3303,7 +3324,7 @@ var ui = (
|
|
|
3303
3324
|
case 125:
|
|
3304
3325
|
return this.bump(), {
|
|
3305
3326
|
val: {
|
|
3306
|
-
type:
|
|
3327
|
+
type: E.argument,
|
|
3307
3328
|
// value does not include the opening and closing braces.
|
|
3308
3329
|
value: i,
|
|
3309
3330
|
location: y(n, this.clonePosition())
|
|
@@ -3316,7 +3337,7 @@ var ui = (
|
|
|
3316
3337
|
return this.error(g.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
3317
3338
|
}
|
|
3318
3339
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3319
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3340
|
+
var t = this.clonePosition(), r = this.offset(), n = tt(this.message, r), i = r + n.length;
|
|
3320
3341
|
this.bumpTo(i);
|
|
3321
3342
|
var s = this.clonePosition(), o = y(t, s);
|
|
3322
3343
|
return { value: n, location: o };
|
|
@@ -3335,7 +3356,7 @@ var ui = (
|
|
|
3335
3356
|
var l = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
|
3336
3357
|
if (m.err)
|
|
3337
3358
|
return m;
|
|
3338
|
-
var c =
|
|
3359
|
+
var c = hi(m.val);
|
|
3339
3360
|
if (c.length === 0)
|
|
3340
3361
|
return this.error(g.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
3341
3362
|
var d = y(l, this.clonePosition());
|
|
@@ -3345,25 +3366,25 @@ var ui = (
|
|
|
3345
3366
|
if (p.err)
|
|
3346
3367
|
return p;
|
|
3347
3368
|
var b = y(i, this.clonePosition());
|
|
3348
|
-
if (u &&
|
|
3349
|
-
var w =
|
|
3369
|
+
if (u && Pt(u?.style, "::", 0)) {
|
|
3370
|
+
var w = ui(u.style.slice(2));
|
|
3350
3371
|
if (a === "number") {
|
|
3351
3372
|
var m = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
3352
3373
|
return m.err ? m : {
|
|
3353
|
-
val: { type:
|
|
3374
|
+
val: { type: E.number, value: n, location: b, style: m.val },
|
|
3354
3375
|
err: null
|
|
3355
3376
|
};
|
|
3356
3377
|
} else {
|
|
3357
3378
|
if (w.length === 0)
|
|
3358
3379
|
return this.error(g.EXPECT_DATE_TIME_SKELETON, b);
|
|
3359
3380
|
var M = w;
|
|
3360
|
-
this.locale && (M =
|
|
3381
|
+
this.locale && (M = qn(w, this.locale));
|
|
3361
3382
|
var c = {
|
|
3362
|
-
type:
|
|
3383
|
+
type: J.dateTime,
|
|
3363
3384
|
pattern: M,
|
|
3364
3385
|
location: u.styleLocation,
|
|
3365
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3366
|
-
}, P = a === "date" ?
|
|
3386
|
+
parsedOptions: this.shouldParseSkeletons ? jn(M) : {}
|
|
3387
|
+
}, P = a === "date" ? E.date : E.time;
|
|
3367
3388
|
return {
|
|
3368
3389
|
val: { type: P, value: n, location: b, style: c },
|
|
3369
3390
|
err: null
|
|
@@ -3372,7 +3393,7 @@ var ui = (
|
|
|
3372
3393
|
}
|
|
3373
3394
|
return {
|
|
3374
3395
|
val: {
|
|
3375
|
-
type: a === "number" ?
|
|
3396
|
+
type: a === "number" ? E.number : a === "date" ? E.date : E.time,
|
|
3376
3397
|
value: n,
|
|
3377
3398
|
location: b,
|
|
3378
3399
|
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
|
@@ -3385,41 +3406,41 @@ var ui = (
|
|
|
3385
3406
|
case "select": {
|
|
3386
3407
|
var T = this.clonePosition();
|
|
3387
3408
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3388
|
-
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, y(T,
|
|
3409
|
+
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, y(T, xe({}, T)));
|
|
3389
3410
|
this.bumpSpace();
|
|
3390
|
-
var
|
|
3391
|
-
if (a !== "select" &&
|
|
3411
|
+
var O = this.parseIdentifierIfPossible(), H = 0;
|
|
3412
|
+
if (a !== "select" && O.value === "offset") {
|
|
3392
3413
|
if (!this.bumpIf(":"))
|
|
3393
3414
|
return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
3394
3415
|
this.bumpSpace();
|
|
3395
3416
|
var m = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3396
3417
|
if (m.err)
|
|
3397
3418
|
return m;
|
|
3398
|
-
this.bumpSpace(),
|
|
3419
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), H = m.val;
|
|
3399
3420
|
}
|
|
3400
|
-
var C = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3421
|
+
var C = this.tryParsePluralOrSelectOptions(t, a, r, O);
|
|
3401
3422
|
if (C.err)
|
|
3402
3423
|
return C;
|
|
3403
3424
|
var p = this.tryParseArgumentClose(i);
|
|
3404
3425
|
if (p.err)
|
|
3405
3426
|
return p;
|
|
3406
|
-
var
|
|
3427
|
+
var _ = y(i, this.clonePosition());
|
|
3407
3428
|
return a === "select" ? {
|
|
3408
3429
|
val: {
|
|
3409
|
-
type:
|
|
3430
|
+
type: E.select,
|
|
3410
3431
|
value: n,
|
|
3411
|
-
options:
|
|
3412
|
-
location:
|
|
3432
|
+
options: Ot(C.val),
|
|
3433
|
+
location: _
|
|
3413
3434
|
},
|
|
3414
3435
|
err: null
|
|
3415
3436
|
} : {
|
|
3416
3437
|
val: {
|
|
3417
|
-
type:
|
|
3438
|
+
type: E.plural,
|
|
3418
3439
|
value: n,
|
|
3419
|
-
options:
|
|
3440
|
+
options: Ot(C.val),
|
|
3420
3441
|
offset: H,
|
|
3421
3442
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3422
|
-
location:
|
|
3443
|
+
location: _
|
|
3423
3444
|
},
|
|
3424
3445
|
err: null
|
|
3425
3446
|
};
|
|
@@ -3467,16 +3488,16 @@ var ui = (
|
|
|
3467
3488
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3468
3489
|
var n = [];
|
|
3469
3490
|
try {
|
|
3470
|
-
n =
|
|
3491
|
+
n = Vn(t);
|
|
3471
3492
|
} catch {
|
|
3472
3493
|
return this.error(g.INVALID_NUMBER_SKELETON, r);
|
|
3473
3494
|
}
|
|
3474
3495
|
return {
|
|
3475
3496
|
val: {
|
|
3476
|
-
type:
|
|
3497
|
+
type: J.number,
|
|
3477
3498
|
tokens: n,
|
|
3478
3499
|
location: r,
|
|
3479
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3500
|
+
parsedOptions: this.shouldParseSkeletons ? Zn(n) : {}
|
|
3480
3501
|
},
|
|
3481
3502
|
err: null
|
|
3482
3503
|
};
|
|
@@ -3524,7 +3545,7 @@ var ui = (
|
|
|
3524
3545
|
break;
|
|
3525
3546
|
}
|
|
3526
3547
|
var h = y(i, this.clonePosition());
|
|
3527
|
-
return s ? (o *= n,
|
|
3548
|
+
return s ? (o *= n, oi(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3528
3549
|
}, e.prototype.offset = function() {
|
|
3529
3550
|
return this.position.offset;
|
|
3530
3551
|
}, e.prototype.isEOF = function() {
|
|
@@ -3539,7 +3560,7 @@ var ui = (
|
|
|
3539
3560
|
var t = this.position.offset;
|
|
3540
3561
|
if (t >= this.message.length)
|
|
3541
3562
|
throw Error("out of bound");
|
|
3542
|
-
var r =
|
|
3563
|
+
var r = fr(this.message, t);
|
|
3543
3564
|
if (r === void 0)
|
|
3544
3565
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3545
3566
|
return r;
|
|
@@ -3558,7 +3579,7 @@ var ui = (
|
|
|
3558
3579
|
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);
|
|
3559
3580
|
}
|
|
3560
3581
|
}, e.prototype.bumpIf = function(t) {
|
|
3561
|
-
if (
|
|
3582
|
+
if (Pt(this.message, t, this.offset())) {
|
|
3562
3583
|
for (var r = 0; r < t.length; r++)
|
|
3563
3584
|
this.bump();
|
|
3564
3585
|
return !0;
|
|
@@ -3580,7 +3601,7 @@ var ui = (
|
|
|
3580
3601
|
break;
|
|
3581
3602
|
}
|
|
3582
3603
|
}, e.prototype.bumpSpace = function() {
|
|
3583
|
-
for (; !this.isEOF() &&
|
|
3604
|
+
for (; !this.isEOF() && dr(this.char()); )
|
|
3584
3605
|
this.bump();
|
|
3585
3606
|
}, e.prototype.peek = function() {
|
|
3586
3607
|
if (this.isEOF())
|
|
@@ -3590,47 +3611,47 @@ var ui = (
|
|
|
3590
3611
|
}, e;
|
|
3591
3612
|
}()
|
|
3592
3613
|
);
|
|
3593
|
-
function
|
|
3614
|
+
function rt(e) {
|
|
3594
3615
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3595
3616
|
}
|
|
3596
|
-
function
|
|
3597
|
-
return
|
|
3617
|
+
function ci(e) {
|
|
3618
|
+
return rt(e) || e === 47;
|
|
3598
3619
|
}
|
|
3599
|
-
function
|
|
3620
|
+
function fi(e) {
|
|
3600
3621
|
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;
|
|
3601
3622
|
}
|
|
3602
|
-
function
|
|
3623
|
+
function dr(e) {
|
|
3603
3624
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3604
3625
|
}
|
|
3605
|
-
function
|
|
3626
|
+
function mi(e) {
|
|
3606
3627
|
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;
|
|
3607
3628
|
}
|
|
3608
|
-
function
|
|
3629
|
+
function nt(e) {
|
|
3609
3630
|
e.forEach(function(t) {
|
|
3610
|
-
if (delete t.location,
|
|
3631
|
+
if (delete t.location, ir(t) || sr(t))
|
|
3611
3632
|
for (var r in t.options)
|
|
3612
|
-
delete t.options[r].location,
|
|
3633
|
+
delete t.options[r].location, nt(t.options[r].value);
|
|
3613
3634
|
else
|
|
3614
|
-
|
|
3635
|
+
tr(t) && ar(t.style) || (rr(t) || nr(t)) && Je(t.style) ? delete t.style.location : or(t) && nt(t.children);
|
|
3615
3636
|
});
|
|
3616
3637
|
}
|
|
3617
|
-
function
|
|
3618
|
-
t === void 0 && (t = {}), t =
|
|
3619
|
-
var r = new
|
|
3638
|
+
function di(e, t) {
|
|
3639
|
+
t === void 0 && (t = {}), t = xe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3640
|
+
var r = new li(e, t).parse();
|
|
3620
3641
|
if (r.err) {
|
|
3621
3642
|
var n = SyntaxError(g[r.err.kind]);
|
|
3622
3643
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3623
3644
|
}
|
|
3624
|
-
return t?.captureLocation ||
|
|
3645
|
+
return t?.captureLocation || nt(r.val), r.val;
|
|
3625
3646
|
}
|
|
3626
|
-
var
|
|
3647
|
+
var K;
|
|
3627
3648
|
(function(e) {
|
|
3628
3649
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3629
|
-
})(
|
|
3630
|
-
var
|
|
3650
|
+
})(K || (K = {}));
|
|
3651
|
+
var Be = (
|
|
3631
3652
|
/** @class */
|
|
3632
3653
|
function(e) {
|
|
3633
|
-
|
|
3654
|
+
Ae(t, e);
|
|
3634
3655
|
function t(r, n, i) {
|
|
3635
3656
|
var s = e.call(this, r) || this;
|
|
3636
3657
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3639,48 +3660,48 @@ var He = (
|
|
|
3639
3660
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3640
3661
|
}, t;
|
|
3641
3662
|
}(Error)
|
|
3642
|
-
),
|
|
3663
|
+
), Lt = (
|
|
3643
3664
|
/** @class */
|
|
3644
3665
|
function(e) {
|
|
3645
|
-
|
|
3666
|
+
Ae(t, e);
|
|
3646
3667
|
function t(r, n, i, s) {
|
|
3647
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3668
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), K.INVALID_VALUE, s) || this;
|
|
3648
3669
|
}
|
|
3649
3670
|
return t;
|
|
3650
|
-
}(
|
|
3651
|
-
),
|
|
3671
|
+
}(Be)
|
|
3672
|
+
), bi = (
|
|
3652
3673
|
/** @class */
|
|
3653
3674
|
function(e) {
|
|
3654
|
-
|
|
3675
|
+
Ae(t, e);
|
|
3655
3676
|
function t(r, n, i) {
|
|
3656
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3677
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), K.INVALID_VALUE, i) || this;
|
|
3657
3678
|
}
|
|
3658
3679
|
return t;
|
|
3659
|
-
}(
|
|
3660
|
-
),
|
|
3680
|
+
}(Be)
|
|
3681
|
+
), pi = (
|
|
3661
3682
|
/** @class */
|
|
3662
3683
|
function(e) {
|
|
3663
|
-
|
|
3684
|
+
Ae(t, e);
|
|
3664
3685
|
function t(r, n) {
|
|
3665
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3686
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), K.MISSING_VALUE, n) || this;
|
|
3666
3687
|
}
|
|
3667
3688
|
return t;
|
|
3668
|
-
}(
|
|
3689
|
+
}(Be)
|
|
3669
3690
|
), B;
|
|
3670
3691
|
(function(e) {
|
|
3671
3692
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3672
3693
|
})(B || (B = {}));
|
|
3673
|
-
function
|
|
3694
|
+
function gi(e) {
|
|
3674
3695
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3675
3696
|
var n = t[t.length - 1];
|
|
3676
3697
|
return !n || n.type !== B.literal || r.type !== B.literal ? t.push(r) : n.value += r.value, t;
|
|
3677
3698
|
}, []);
|
|
3678
3699
|
}
|
|
3679
|
-
function
|
|
3700
|
+
function yi(e) {
|
|
3680
3701
|
return typeof e == "function";
|
|
3681
3702
|
}
|
|
3682
3703
|
function _e(e, t, r, n, i, s, o) {
|
|
3683
|
-
if (e.length === 1 &&
|
|
3704
|
+
if (e.length === 1 && Tt(e[0]))
|
|
3684
3705
|
return [
|
|
3685
3706
|
{
|
|
3686
3707
|
type: B.literal,
|
|
@@ -3689,14 +3710,14 @@ function _e(e, t, r, n, i, s, o) {
|
|
|
3689
3710
|
];
|
|
3690
3711
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3691
3712
|
var l = u[h];
|
|
3692
|
-
if (
|
|
3713
|
+
if (Tt(l)) {
|
|
3693
3714
|
a.push({
|
|
3694
3715
|
type: B.literal,
|
|
3695
3716
|
value: l.value
|
|
3696
3717
|
});
|
|
3697
3718
|
continue;
|
|
3698
3719
|
}
|
|
3699
|
-
if (
|
|
3720
|
+
if ($n(l)) {
|
|
3700
3721
|
typeof s == "number" && a.push({
|
|
3701
3722
|
type: B.literal,
|
|
3702
3723
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3705,43 +3726,43 @@ function _e(e, t, r, n, i, s, o) {
|
|
|
3705
3726
|
}
|
|
3706
3727
|
var m = l.value;
|
|
3707
3728
|
if (!(i && m in i))
|
|
3708
|
-
throw new
|
|
3729
|
+
throw new pi(m, o);
|
|
3709
3730
|
var c = i[m];
|
|
3710
|
-
if (
|
|
3731
|
+
if (Dn(l)) {
|
|
3711
3732
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3712
3733
|
type: typeof c == "string" ? B.literal : B.object,
|
|
3713
3734
|
value: c
|
|
3714
3735
|
});
|
|
3715
3736
|
continue;
|
|
3716
3737
|
}
|
|
3717
|
-
if (
|
|
3718
|
-
var d = typeof l.style == "string" ? n.date[l.style] :
|
|
3738
|
+
if (rr(l)) {
|
|
3739
|
+
var d = typeof l.style == "string" ? n.date[l.style] : Je(l.style) ? l.style.parsedOptions : void 0;
|
|
3719
3740
|
a.push({
|
|
3720
3741
|
type: B.literal,
|
|
3721
3742
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
3722
3743
|
});
|
|
3723
3744
|
continue;
|
|
3724
3745
|
}
|
|
3725
|
-
if (
|
|
3726
|
-
var d = typeof l.style == "string" ? n.time[l.style] :
|
|
3746
|
+
if (nr(l)) {
|
|
3747
|
+
var d = typeof l.style == "string" ? n.time[l.style] : Je(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3727
3748
|
a.push({
|
|
3728
3749
|
type: B.literal,
|
|
3729
3750
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
3730
3751
|
});
|
|
3731
3752
|
continue;
|
|
3732
3753
|
}
|
|
3733
|
-
if (
|
|
3734
|
-
var d = typeof l.style == "string" ? n.number[l.style] :
|
|
3754
|
+
if (tr(l)) {
|
|
3755
|
+
var d = typeof l.style == "string" ? n.number[l.style] : ar(l.style) ? l.style.parsedOptions : void 0;
|
|
3735
3756
|
d && d.scale && (c = c * (d.scale || 1)), a.push({
|
|
3736
3757
|
type: B.literal,
|
|
3737
3758
|
value: r.getNumberFormat(t, d).format(c)
|
|
3738
3759
|
});
|
|
3739
3760
|
continue;
|
|
3740
3761
|
}
|
|
3741
|
-
if (
|
|
3762
|
+
if (or(l)) {
|
|
3742
3763
|
var p = l.children, b = l.value, w = i[b];
|
|
3743
|
-
if (!
|
|
3744
|
-
throw new
|
|
3764
|
+
if (!yi(w))
|
|
3765
|
+
throw new bi(b, "function", o);
|
|
3745
3766
|
var M = _e(p, t, r, n, i, s), P = w(M.map(function(H) {
|
|
3746
3767
|
return H.value;
|
|
3747
3768
|
}));
|
|
@@ -3752,42 +3773,42 @@ function _e(e, t, r, n, i, s, o) {
|
|
|
3752
3773
|
};
|
|
3753
3774
|
}));
|
|
3754
3775
|
}
|
|
3755
|
-
if (
|
|
3776
|
+
if (ir(l)) {
|
|
3756
3777
|
var T = l.options[c] || l.options.other;
|
|
3757
3778
|
if (!T)
|
|
3758
|
-
throw new
|
|
3779
|
+
throw new Lt(l.value, c, Object.keys(l.options), o);
|
|
3759
3780
|
a.push.apply(a, _e(T.value, t, r, n, i));
|
|
3760
3781
|
continue;
|
|
3761
3782
|
}
|
|
3762
|
-
if (
|
|
3783
|
+
if (sr(l)) {
|
|
3763
3784
|
var T = l.options["=".concat(c)];
|
|
3764
3785
|
if (!T) {
|
|
3765
3786
|
if (!Intl.PluralRules)
|
|
3766
|
-
throw new
|
|
3787
|
+
throw new Be(`Intl.PluralRules is not available in this environment.
|
|
3767
3788
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3768
|
-
`,
|
|
3769
|
-
var
|
|
3770
|
-
T = l.options[
|
|
3789
|
+
`, K.MISSING_INTL_API, o);
|
|
3790
|
+
var O = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3791
|
+
T = l.options[O] || l.options.other;
|
|
3771
3792
|
}
|
|
3772
3793
|
if (!T)
|
|
3773
|
-
throw new
|
|
3794
|
+
throw new Lt(l.value, c, Object.keys(l.options), o);
|
|
3774
3795
|
a.push.apply(a, _e(T.value, t, r, n, i, c - (l.offset || 0)));
|
|
3775
3796
|
continue;
|
|
3776
3797
|
}
|
|
3777
3798
|
}
|
|
3778
|
-
return
|
|
3799
|
+
return gi(a);
|
|
3779
3800
|
}
|
|
3780
|
-
function
|
|
3781
|
-
return t ?
|
|
3782
|
-
return r[n] =
|
|
3801
|
+
function vi(e, t) {
|
|
3802
|
+
return t ? R(R(R({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3803
|
+
return r[n] = R(R({}, e[n]), t[n] || {}), r;
|
|
3783
3804
|
}, {})) : e;
|
|
3784
3805
|
}
|
|
3785
|
-
function
|
|
3806
|
+
function _i(e, t) {
|
|
3786
3807
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3787
|
-
return r[n] =
|
|
3788
|
-
},
|
|
3808
|
+
return r[n] = vi(e[n], t[n]), r;
|
|
3809
|
+
}, R({}, e)) : e;
|
|
3789
3810
|
}
|
|
3790
|
-
function
|
|
3811
|
+
function $e(e) {
|
|
3791
3812
|
return {
|
|
3792
3813
|
create: function() {
|
|
3793
3814
|
return {
|
|
@@ -3801,39 +3822,39 @@ function Ue(e) {
|
|
|
3801
3822
|
}
|
|
3802
3823
|
};
|
|
3803
3824
|
}
|
|
3804
|
-
function
|
|
3825
|
+
function Ei(e) {
|
|
3805
3826
|
return e === void 0 && (e = {
|
|
3806
3827
|
number: {},
|
|
3807
3828
|
dateTime: {},
|
|
3808
3829
|
pluralRules: {}
|
|
3809
3830
|
}), {
|
|
3810
|
-
getNumberFormat:
|
|
3831
|
+
getNumberFormat: Ge(function() {
|
|
3811
3832
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3812
3833
|
r[n] = arguments[n];
|
|
3813
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3834
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Re([void 0], r, !1)))();
|
|
3814
3835
|
}, {
|
|
3815
|
-
cache:
|
|
3816
|
-
strategy:
|
|
3836
|
+
cache: $e(e.number),
|
|
3837
|
+
strategy: Ue.variadic
|
|
3817
3838
|
}),
|
|
3818
|
-
getDateTimeFormat:
|
|
3839
|
+
getDateTimeFormat: Ge(function() {
|
|
3819
3840
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3820
3841
|
r[n] = arguments[n];
|
|
3821
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3842
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Re([void 0], r, !1)))();
|
|
3822
3843
|
}, {
|
|
3823
|
-
cache:
|
|
3824
|
-
strategy:
|
|
3844
|
+
cache: $e(e.dateTime),
|
|
3845
|
+
strategy: Ue.variadic
|
|
3825
3846
|
}),
|
|
3826
|
-
getPluralRules:
|
|
3847
|
+
getPluralRules: Ge(function() {
|
|
3827
3848
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3828
3849
|
r[n] = arguments[n];
|
|
3829
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3850
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Re([void 0], r, !1)))();
|
|
3830
3851
|
}, {
|
|
3831
|
-
cache:
|
|
3832
|
-
strategy:
|
|
3852
|
+
cache: $e(e.pluralRules),
|
|
3853
|
+
strategy: Ue.variadic
|
|
3833
3854
|
})
|
|
3834
3855
|
};
|
|
3835
3856
|
}
|
|
3836
|
-
var
|
|
3857
|
+
var xi = (
|
|
3837
3858
|
/** @class */
|
|
3838
3859
|
function() {
|
|
3839
3860
|
function e(t, r, n, i) {
|
|
@@ -3865,13 +3886,13 @@ var _i = (
|
|
|
3865
3886
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3866
3887
|
var o = i || {};
|
|
3867
3888
|
o.formatters;
|
|
3868
|
-
var a =
|
|
3869
|
-
this.ast = e.__parse(t,
|
|
3889
|
+
var a = Nn(o, ["formatters"]);
|
|
3890
|
+
this.ast = e.__parse(t, R(R({}, a), { locale: this.resolvedLocale }));
|
|
3870
3891
|
} else
|
|
3871
3892
|
this.ast = t;
|
|
3872
3893
|
if (!Array.isArray(this.ast))
|
|
3873
3894
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3874
|
-
this.formats =
|
|
3895
|
+
this.formats = _i(e.formats, n), this.formatters = i && i.formatters || Ei(this.formatterCache);
|
|
3875
3896
|
}
|
|
3876
3897
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3877
3898
|
get: function() {
|
|
@@ -3884,7 +3905,7 @@ var _i = (
|
|
|
3884
3905
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3885
3906
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3886
3907
|
}
|
|
3887
|
-
}, e.__parse =
|
|
3908
|
+
}, e.__parse = di, e.formats = {
|
|
3888
3909
|
number: {
|
|
3889
3910
|
integer: {
|
|
3890
3911
|
maximumFractionDigits: 0
|
|
@@ -3945,7 +3966,7 @@ var _i = (
|
|
|
3945
3966
|
}, e;
|
|
3946
3967
|
}()
|
|
3947
3968
|
);
|
|
3948
|
-
function
|
|
3969
|
+
function Si(e, t) {
|
|
3949
3970
|
if (t == null)
|
|
3950
3971
|
return;
|
|
3951
3972
|
if (t in e)
|
|
@@ -3966,92 +3987,92 @@ function Ei(e, t) {
|
|
|
3966
3987
|
n = void 0;
|
|
3967
3988
|
return n;
|
|
3968
3989
|
}
|
|
3969
|
-
const D = {},
|
|
3990
|
+
const D = {}, wi = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), br = (e, t) => {
|
|
3970
3991
|
if (t == null)
|
|
3971
3992
|
return;
|
|
3972
3993
|
if (t in D && e in D[t])
|
|
3973
3994
|
return D[t][e];
|
|
3974
|
-
const r =
|
|
3995
|
+
const r = Pe(t);
|
|
3975
3996
|
for (let n = 0; n < r.length; n++) {
|
|
3976
|
-
const i = r[n], s =
|
|
3997
|
+
const i = r[n], s = Hi(i, e);
|
|
3977
3998
|
if (s)
|
|
3978
|
-
return
|
|
3999
|
+
return wi(e, t, s);
|
|
3979
4000
|
}
|
|
3980
4001
|
};
|
|
3981
|
-
let
|
|
3982
|
-
const me =
|
|
3983
|
-
function
|
|
3984
|
-
return
|
|
4002
|
+
let ut;
|
|
4003
|
+
const me = He({});
|
|
4004
|
+
function Ti(e) {
|
|
4005
|
+
return ut[e] || null;
|
|
3985
4006
|
}
|
|
3986
|
-
function
|
|
3987
|
-
return e in
|
|
4007
|
+
function pr(e) {
|
|
4008
|
+
return e in ut;
|
|
3988
4009
|
}
|
|
3989
|
-
function
|
|
3990
|
-
if (!
|
|
4010
|
+
function Hi(e, t) {
|
|
4011
|
+
if (!pr(e))
|
|
3991
4012
|
return null;
|
|
3992
|
-
const r =
|
|
3993
|
-
return
|
|
4013
|
+
const r = Ti(e);
|
|
4014
|
+
return Si(r, t);
|
|
3994
4015
|
}
|
|
3995
|
-
function
|
|
4016
|
+
function Ai(e) {
|
|
3996
4017
|
if (e == null)
|
|
3997
4018
|
return;
|
|
3998
|
-
const t =
|
|
4019
|
+
const t = Pe(e);
|
|
3999
4020
|
for (let r = 0; r < t.length; r++) {
|
|
4000
4021
|
const n = t[r];
|
|
4001
|
-
if (
|
|
4022
|
+
if (pr(n))
|
|
4002
4023
|
return n;
|
|
4003
4024
|
}
|
|
4004
4025
|
}
|
|
4005
|
-
function
|
|
4006
|
-
delete D[e], me.update((r) => (r[e] =
|
|
4026
|
+
function gr(e, ...t) {
|
|
4027
|
+
delete D[e], me.update((r) => (r[e] = On.all([r[e] || {}, ...t]), r));
|
|
4007
4028
|
}
|
|
4008
|
-
|
|
4029
|
+
ie(
|
|
4009
4030
|
[me],
|
|
4010
4031
|
([e]) => Object.keys(e)
|
|
4011
4032
|
);
|
|
4012
|
-
me.subscribe((e) =>
|
|
4033
|
+
me.subscribe((e) => ut = e);
|
|
4013
4034
|
const Ee = {};
|
|
4014
|
-
function
|
|
4035
|
+
function Bi(e, t) {
|
|
4015
4036
|
Ee[e].delete(t), Ee[e].size === 0 && delete Ee[e];
|
|
4016
4037
|
}
|
|
4017
|
-
function
|
|
4038
|
+
function yr(e) {
|
|
4018
4039
|
return Ee[e];
|
|
4019
4040
|
}
|
|
4020
|
-
function
|
|
4021
|
-
return
|
|
4022
|
-
const r =
|
|
4041
|
+
function Pi(e) {
|
|
4042
|
+
return Pe(e).map((t) => {
|
|
4043
|
+
const r = yr(t);
|
|
4023
4044
|
return [t, r ? [...r] : []];
|
|
4024
4045
|
}).filter(([, t]) => t.length > 0);
|
|
4025
4046
|
}
|
|
4026
|
-
function
|
|
4027
|
-
return e == null ? !1 :
|
|
4047
|
+
function it(e) {
|
|
4048
|
+
return e == null ? !1 : Pe(e).some(
|
|
4028
4049
|
(t) => {
|
|
4029
4050
|
var r;
|
|
4030
|
-
return (r =
|
|
4051
|
+
return (r = yr(t)) == null ? void 0 : r.size;
|
|
4031
4052
|
}
|
|
4032
4053
|
);
|
|
4033
4054
|
}
|
|
4034
|
-
function
|
|
4055
|
+
function Oi(e, t) {
|
|
4035
4056
|
return Promise.all(
|
|
4036
|
-
t.map((n) => (
|
|
4037
|
-
).then((n) =>
|
|
4038
|
-
}
|
|
4039
|
-
const
|
|
4040
|
-
function
|
|
4041
|
-
if (!
|
|
4042
|
-
return e in
|
|
4043
|
-
const t =
|
|
4044
|
-
return
|
|
4057
|
+
t.map((n) => (Bi(e, n), n().then((i) => i.default || i)))
|
|
4058
|
+
).then((n) => gr(e, ...n));
|
|
4059
|
+
}
|
|
4060
|
+
const oe = {};
|
|
4061
|
+
function vr(e) {
|
|
4062
|
+
if (!it(e))
|
|
4063
|
+
return e in oe ? oe[e] : Promise.resolve();
|
|
4064
|
+
const t = Pi(e);
|
|
4065
|
+
return oe[e] = Promise.all(
|
|
4045
4066
|
t.map(
|
|
4046
|
-
([r, n]) =>
|
|
4067
|
+
([r, n]) => Oi(r, n)
|
|
4047
4068
|
)
|
|
4048
4069
|
).then(() => {
|
|
4049
|
-
if (
|
|
4050
|
-
return
|
|
4051
|
-
delete
|
|
4052
|
-
}),
|
|
4070
|
+
if (it(e))
|
|
4071
|
+
return vr(e);
|
|
4072
|
+
delete oe[e];
|
|
4073
|
+
}), oe[e];
|
|
4053
4074
|
}
|
|
4054
|
-
const
|
|
4075
|
+
const Ni = {
|
|
4055
4076
|
number: {
|
|
4056
4077
|
scientific: { notation: "scientific" },
|
|
4057
4078
|
engineering: { notation: "engineering" },
|
|
@@ -4080,135 +4101,135 @@ const Pi = {
|
|
|
4080
4101
|
timeZoneName: "short"
|
|
4081
4102
|
}
|
|
4082
4103
|
}
|
|
4083
|
-
},
|
|
4104
|
+
}, Li = {
|
|
4084
4105
|
fallbackLocale: null,
|
|
4085
4106
|
loadingDelay: 200,
|
|
4086
|
-
formats:
|
|
4107
|
+
formats: Ni,
|
|
4087
4108
|
warnOnMissingMessages: !0,
|
|
4088
4109
|
handleMissingMessage: void 0,
|
|
4089
4110
|
ignoreTag: !0
|
|
4090
|
-
},
|
|
4091
|
-
function
|
|
4092
|
-
return
|
|
4111
|
+
}, Ii = Li;
|
|
4112
|
+
function ee() {
|
|
4113
|
+
return Ii;
|
|
4093
4114
|
}
|
|
4094
|
-
const
|
|
4095
|
-
var
|
|
4115
|
+
const Fe = He(!1);
|
|
4116
|
+
var Mi = Object.defineProperty, Ci = Object.defineProperties, Ri = Object.getOwnPropertyDescriptors, It = Object.getOwnPropertySymbols, Gi = Object.prototype.hasOwnProperty, Ui = Object.prototype.propertyIsEnumerable, Mt = (e, t, r) => t in e ? Mi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Di = (e, t) => {
|
|
4096
4117
|
for (var r in t || (t = {}))
|
|
4097
|
-
|
|
4098
|
-
if (
|
|
4099
|
-
for (var r of
|
|
4100
|
-
|
|
4118
|
+
Gi.call(t, r) && Mt(e, r, t[r]);
|
|
4119
|
+
if (It)
|
|
4120
|
+
for (var r of It(t))
|
|
4121
|
+
Ui.call(t, r) && Mt(e, r, t[r]);
|
|
4101
4122
|
return e;
|
|
4102
|
-
},
|
|
4103
|
-
let
|
|
4104
|
-
const
|
|
4105
|
-
function
|
|
4123
|
+
}, $i = (e, t) => Ci(e, Ri(t));
|
|
4124
|
+
let st;
|
|
4125
|
+
const Se = He(null);
|
|
4126
|
+
function Ct(e) {
|
|
4106
4127
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4107
4128
|
}
|
|
4108
|
-
function
|
|
4109
|
-
const r =
|
|
4110
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4129
|
+
function Pe(e, t = ee().fallbackLocale) {
|
|
4130
|
+
const r = Ct(e);
|
|
4131
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ct(t)])] : r;
|
|
4111
4132
|
}
|
|
4112
4133
|
function V() {
|
|
4113
|
-
return
|
|
4134
|
+
return st ?? void 0;
|
|
4114
4135
|
}
|
|
4115
|
-
|
|
4116
|
-
|
|
4136
|
+
Se.subscribe((e) => {
|
|
4137
|
+
st = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4117
4138
|
});
|
|
4118
|
-
const
|
|
4119
|
-
if (e &&
|
|
4120
|
-
const { loadingDelay: t } =
|
|
4139
|
+
const Fi = (e) => {
|
|
4140
|
+
if (e && Ai(e) && it(e)) {
|
|
4141
|
+
const { loadingDelay: t } = ee();
|
|
4121
4142
|
let r;
|
|
4122
4143
|
return typeof window < "u" && V() != null && t ? r = window.setTimeout(
|
|
4123
|
-
() =>
|
|
4144
|
+
() => Fe.set(!0),
|
|
4124
4145
|
t
|
|
4125
|
-
) :
|
|
4126
|
-
|
|
4146
|
+
) : Fe.set(!0), vr(e).then(() => {
|
|
4147
|
+
Se.set(e);
|
|
4127
4148
|
}).finally(() => {
|
|
4128
|
-
clearTimeout(r),
|
|
4149
|
+
clearTimeout(r), Fe.set(!1);
|
|
4129
4150
|
});
|
|
4130
4151
|
}
|
|
4131
|
-
return
|
|
4132
|
-
}, de =
|
|
4133
|
-
set:
|
|
4134
|
-
}),
|
|
4152
|
+
return Se.set(e);
|
|
4153
|
+
}, de = $i(Di({}, Se), {
|
|
4154
|
+
set: Fi
|
|
4155
|
+
}), Oe = (e) => {
|
|
4135
4156
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4136
4157
|
return (n) => {
|
|
4137
4158
|
const i = JSON.stringify(n);
|
|
4138
4159
|
return i in t ? t[i] : t[i] = e(n);
|
|
4139
4160
|
};
|
|
4140
4161
|
};
|
|
4141
|
-
var
|
|
4162
|
+
var ji = Object.defineProperty, we = Object.getOwnPropertySymbols, _r = Object.prototype.hasOwnProperty, Er = Object.prototype.propertyIsEnumerable, Rt = (e, t, r) => t in e ? ji(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ht = (e, t) => {
|
|
4142
4163
|
for (var r in t || (t = {}))
|
|
4143
|
-
|
|
4144
|
-
if (
|
|
4145
|
-
for (var r of
|
|
4146
|
-
|
|
4164
|
+
_r.call(t, r) && Rt(e, r, t[r]);
|
|
4165
|
+
if (we)
|
|
4166
|
+
for (var r of we(t))
|
|
4167
|
+
Er.call(t, r) && Rt(e, r, t[r]);
|
|
4147
4168
|
return e;
|
|
4148
|
-
},
|
|
4169
|
+
}, se = (e, t) => {
|
|
4149
4170
|
var r = {};
|
|
4150
4171
|
for (var n in e)
|
|
4151
|
-
|
|
4152
|
-
if (e != null &&
|
|
4153
|
-
for (var n of
|
|
4154
|
-
t.indexOf(n) < 0 &&
|
|
4172
|
+
_r.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4173
|
+
if (e != null && we)
|
|
4174
|
+
for (var n of we(e))
|
|
4175
|
+
t.indexOf(n) < 0 && Er.call(e, n) && (r[n] = e[n]);
|
|
4155
4176
|
return r;
|
|
4156
4177
|
};
|
|
4157
|
-
const
|
|
4158
|
-
const { formats: r } =
|
|
4178
|
+
const le = (e, t) => {
|
|
4179
|
+
const { formats: r } = ee();
|
|
4159
4180
|
if (e in r && t in r[e])
|
|
4160
4181
|
return r[e][t];
|
|
4161
4182
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4162
|
-
},
|
|
4183
|
+
}, ki = Oe(
|
|
4163
4184
|
(e) => {
|
|
4164
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4185
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
4165
4186
|
if (r == null)
|
|
4166
4187
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4167
|
-
return n && (i =
|
|
4188
|
+
return n && (i = le("number", n)), new Intl.NumberFormat(r, i);
|
|
4168
4189
|
}
|
|
4169
|
-
),
|
|
4190
|
+
), Vi = Oe(
|
|
4170
4191
|
(e) => {
|
|
4171
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4192
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
4172
4193
|
if (r == null)
|
|
4173
4194
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4174
|
-
return n ? i =
|
|
4195
|
+
return n ? i = le("date", n) : Object.keys(i).length === 0 && (i = le("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4175
4196
|
}
|
|
4176
|
-
),
|
|
4197
|
+
), Xi = Oe(
|
|
4177
4198
|
(e) => {
|
|
4178
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4199
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
4179
4200
|
if (r == null)
|
|
4180
4201
|
throw new Error(
|
|
4181
4202
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4182
4203
|
);
|
|
4183
|
-
return n ? i =
|
|
4204
|
+
return n ? i = le("time", n) : Object.keys(i).length === 0 && (i = le("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4184
4205
|
}
|
|
4185
|
-
),
|
|
4206
|
+
), Wi = (e = {}) => {
|
|
4186
4207
|
var t = e, {
|
|
4187
4208
|
locale: r = V()
|
|
4188
|
-
} = t, n =
|
|
4209
|
+
} = t, n = se(t, [
|
|
4189
4210
|
"locale"
|
|
4190
4211
|
]);
|
|
4191
|
-
return
|
|
4192
|
-
},
|
|
4212
|
+
return ki(ht({ locale: r }, n));
|
|
4213
|
+
}, zi = (e = {}) => {
|
|
4193
4214
|
var t = e, {
|
|
4194
4215
|
locale: r = V()
|
|
4195
|
-
} = t, n =
|
|
4216
|
+
} = t, n = se(t, [
|
|
4196
4217
|
"locale"
|
|
4197
4218
|
]);
|
|
4198
|
-
return
|
|
4199
|
-
},
|
|
4219
|
+
return Vi(ht({ locale: r }, n));
|
|
4220
|
+
}, Zi = (e = {}) => {
|
|
4200
4221
|
var t = e, {
|
|
4201
4222
|
locale: r = V()
|
|
4202
|
-
} = t, n =
|
|
4223
|
+
} = t, n = se(t, [
|
|
4203
4224
|
"locale"
|
|
4204
4225
|
]);
|
|
4205
|
-
return
|
|
4206
|
-
},
|
|
4226
|
+
return Xi(ht({ locale: r }, n));
|
|
4227
|
+
}, qi = Oe(
|
|
4207
4228
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4208
|
-
(e, t = V()) => new
|
|
4209
|
-
ignoreTag:
|
|
4229
|
+
(e, t = V()) => new xi(e, t, ee().formats, {
|
|
4230
|
+
ignoreTag: ee().ignoreTag
|
|
4210
4231
|
})
|
|
4211
|
-
),
|
|
4232
|
+
), Qi = (e, t = {}) => {
|
|
4212
4233
|
var r, n, i, s;
|
|
4213
4234
|
let o = t;
|
|
4214
4235
|
typeof e == "object" && (o = e, e = o.id);
|
|
@@ -4221,9 +4242,9 @@ const ce = (e, t) => {
|
|
|
4221
4242
|
throw new Error(
|
|
4222
4243
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4223
4244
|
);
|
|
4224
|
-
let l =
|
|
4245
|
+
let l = br(e, h);
|
|
4225
4246
|
if (!l)
|
|
4226
|
-
l = (s = (i = (n = (r =
|
|
4247
|
+
l = (s = (i = (n = (r = ee()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
4227
4248
|
else if (typeof l != "string")
|
|
4228
4249
|
return console.warn(
|
|
4229
4250
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4232,7 +4253,7 @@ const ce = (e, t) => {
|
|
|
4232
4253
|
return l;
|
|
4233
4254
|
let m = l;
|
|
4234
4255
|
try {
|
|
4235
|
-
m =
|
|
4256
|
+
m = qi(l, h).format(a);
|
|
4236
4257
|
} catch (c) {
|
|
4237
4258
|
c instanceof Error && console.warn(
|
|
4238
4259
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4240,18 +4261,18 @@ const ce = (e, t) => {
|
|
|
4240
4261
|
);
|
|
4241
4262
|
}
|
|
4242
4263
|
return m;
|
|
4243
|
-
},
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4264
|
+
}, Yi = (e, t) => Zi(t).format(e), Ji = (e, t) => zi(t).format(e), Ki = (e, t) => Wi(t).format(e), es = (e, t = V()) => br(e, t), ts = ie([de, me], () => Qi);
|
|
4265
|
+
ie([de], () => Yi);
|
|
4266
|
+
ie([de], () => Ji);
|
|
4267
|
+
ie([de], () => Ki);
|
|
4268
|
+
ie([de, me], () => es);
|
|
4248
4269
|
window.emWidgets = { topic: mn };
|
|
4249
|
-
const
|
|
4270
|
+
const rs = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4250
4271
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4251
|
-
function
|
|
4252
|
-
|
|
4272
|
+
function ns(e, t) {
|
|
4273
|
+
gr(e, t);
|
|
4253
4274
|
}
|
|
4254
|
-
const
|
|
4275
|
+
const is = {
|
|
4255
4276
|
en: {
|
|
4256
4277
|
lobbyName: "Lobby",
|
|
4257
4278
|
myGamesName: "My games"
|
|
@@ -4325,13 +4346,13 @@ const rs = {
|
|
|
4325
4346
|
myGamesName: "My games"
|
|
4326
4347
|
}
|
|
4327
4348
|
};
|
|
4328
|
-
function
|
|
4349
|
+
function ss(e, t) {
|
|
4329
4350
|
if (e) {
|
|
4330
4351
|
const r = document.createElement("style");
|
|
4331
4352
|
r.innerHTML = t, e.appendChild(r);
|
|
4332
4353
|
}
|
|
4333
4354
|
}
|
|
4334
|
-
function
|
|
4355
|
+
function os(e, t) {
|
|
4335
4356
|
if (!e || !t)
|
|
4336
4357
|
return;
|
|
4337
4358
|
const r = new URL(t);
|
|
@@ -4342,7 +4363,7 @@ function is(e, t) {
|
|
|
4342
4363
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4343
4364
|
});
|
|
4344
4365
|
}
|
|
4345
|
-
function
|
|
4366
|
+
function as(e, t, r) {
|
|
4346
4367
|
if (window.emMessageBus) {
|
|
4347
4368
|
const n = document.createElement("style");
|
|
4348
4369
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4362,176 +4383,176 @@ if (typeof window < "u") {
|
|
|
4362
4383
|
}
|
|
4363
4384
|
};
|
|
4364
4385
|
};
|
|
4365
|
-
customElements.define = e(customElements.define), import("./CasinoSliderNd-
|
|
4386
|
+
customElements.define = e(customElements.define), import("./CasinoSliderNd-BWvm077c.js").then(({ default: t }) => {
|
|
4366
4387
|
!customElements.get("casino-slider-nd") && customElements.define("casino-slider-nd", t.element);
|
|
4367
4388
|
});
|
|
4368
4389
|
}
|
|
4369
|
-
function
|
|
4390
|
+
function us(e, t, r) {
|
|
4370
4391
|
window.emMessageBus && window.emMessageBus.subscribe(e, r);
|
|
4371
4392
|
}
|
|
4372
|
-
function
|
|
4373
|
-
|
|
4393
|
+
function hs(e) {
|
|
4394
|
+
Cr(e, "svelte-ciaihq", ".svelte-ciaihq{font-family:inherit}.CasinoCategoriesLoading.svelte-ciaihq{height:52px}p.svelte-ciaihq{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-ciaihq{background:transparent;border-radius:var(--emw--border-radius-medium, 10px);padding-top:20px}");
|
|
4374
4395
|
}
|
|
4375
|
-
function
|
|
4396
|
+
function ls(e) {
|
|
4376
4397
|
let t, r;
|
|
4377
4398
|
return {
|
|
4378
4399
|
c() {
|
|
4379
|
-
t = k("div"), r = k("casino-slider-nd"),
|
|
4400
|
+
t = k("div"), r = k("casino-slider-nd"), v(
|
|
4380
4401
|
r,
|
|
4381
4402
|
"lang",
|
|
4382
4403
|
/*lang*/
|
|
4383
4404
|
e[3]
|
|
4384
|
-
),
|
|
4405
|
+
), v(
|
|
4385
4406
|
r,
|
|
4386
4407
|
"datasource",
|
|
4387
4408
|
/*datasource*/
|
|
4388
4409
|
e[2]
|
|
4389
|
-
),
|
|
4410
|
+
), v(
|
|
4390
4411
|
r,
|
|
4391
4412
|
"endpoint",
|
|
4392
4413
|
/*endpoint*/
|
|
4393
4414
|
e[1]
|
|
4394
|
-
),
|
|
4415
|
+
), v(r, "identity", ot), v(
|
|
4395
4416
|
r,
|
|
4396
4417
|
"favoritesnumber",
|
|
4397
4418
|
/*numberOfFavoredGames*/
|
|
4398
4419
|
e[16]
|
|
4399
|
-
),
|
|
4420
|
+
), v(
|
|
4400
4421
|
r,
|
|
4401
4422
|
"showsubgroups",
|
|
4402
4423
|
/*showsubgroups*/
|
|
4403
4424
|
e[9]
|
|
4404
|
-
),
|
|
4425
|
+
), v(
|
|
4405
4426
|
r,
|
|
4406
4427
|
"clientstyling",
|
|
4407
4428
|
/*clientstyling*/
|
|
4408
4429
|
e[5]
|
|
4409
|
-
),
|
|
4430
|
+
), v(
|
|
4410
4431
|
r,
|
|
4411
4432
|
"clientstylingurl",
|
|
4412
4433
|
/*clientstylingurl*/
|
|
4413
4434
|
e[6]
|
|
4414
|
-
),
|
|
4435
|
+
), v(
|
|
4415
4436
|
r,
|
|
4416
4437
|
"activeindex",
|
|
4417
4438
|
/*activecategory*/
|
|
4418
4439
|
e[0]
|
|
4419
|
-
),
|
|
4440
|
+
), v(
|
|
4420
4441
|
r,
|
|
4421
4442
|
"actionevent",
|
|
4422
4443
|
/*actionevent*/
|
|
4423
4444
|
e[7]
|
|
4424
|
-
),
|
|
4445
|
+
), v(
|
|
4425
4446
|
r,
|
|
4426
4447
|
"location",
|
|
4427
4448
|
/*location*/
|
|
4428
4449
|
e[8]
|
|
4429
|
-
),
|
|
4450
|
+
), v(
|
|
4430
4451
|
r,
|
|
4431
4452
|
"categoriesicon",
|
|
4432
4453
|
/*categoriesicon*/
|
|
4433
4454
|
e[10]
|
|
4434
|
-
),
|
|
4455
|
+
), v(
|
|
4435
4456
|
r,
|
|
4436
4457
|
"lobbyiconimage",
|
|
4437
4458
|
/*lobbyiconimage*/
|
|
4438
4459
|
e[11]
|
|
4439
|
-
),
|
|
4460
|
+
), v(
|
|
4440
4461
|
r,
|
|
4441
4462
|
"mygamesiconimage",
|
|
4442
4463
|
/*mygamesiconimage*/
|
|
4443
4464
|
e[12]
|
|
4444
|
-
),
|
|
4465
|
+
), v(
|
|
4445
4466
|
r,
|
|
4446
4467
|
"mbsource",
|
|
4447
4468
|
/*mbsource*/
|
|
4448
4469
|
e[4]
|
|
4449
|
-
),
|
|
4470
|
+
), v(r, "class", "svelte-ciaihq"), ne(t, "class", "CasinoCategoriesContainer svelte-ciaihq");
|
|
4450
4471
|
},
|
|
4451
4472
|
m(n, i) {
|
|
4452
|
-
|
|
4473
|
+
ce(n, t, i), $t(t, r);
|
|
4453
4474
|
},
|
|
4454
4475
|
p(n, i) {
|
|
4455
4476
|
i[0] & /*lang*/
|
|
4456
|
-
8 &&
|
|
4477
|
+
8 && v(
|
|
4457
4478
|
r,
|
|
4458
4479
|
"lang",
|
|
4459
4480
|
/*lang*/
|
|
4460
4481
|
n[3]
|
|
4461
4482
|
), i[0] & /*datasource*/
|
|
4462
|
-
4 &&
|
|
4483
|
+
4 && v(
|
|
4463
4484
|
r,
|
|
4464
4485
|
"datasource",
|
|
4465
4486
|
/*datasource*/
|
|
4466
4487
|
n[2]
|
|
4467
4488
|
), i[0] & /*endpoint*/
|
|
4468
|
-
2 &&
|
|
4489
|
+
2 && v(
|
|
4469
4490
|
r,
|
|
4470
4491
|
"endpoint",
|
|
4471
4492
|
/*endpoint*/
|
|
4472
4493
|
n[1]
|
|
4473
4494
|
), i[0] & /*numberOfFavoredGames*/
|
|
4474
|
-
65536 &&
|
|
4495
|
+
65536 && v(
|
|
4475
4496
|
r,
|
|
4476
4497
|
"favoritesnumber",
|
|
4477
4498
|
/*numberOfFavoredGames*/
|
|
4478
4499
|
n[16]
|
|
4479
4500
|
), i[0] & /*showsubgroups*/
|
|
4480
|
-
512 &&
|
|
4501
|
+
512 && v(
|
|
4481
4502
|
r,
|
|
4482
4503
|
"showsubgroups",
|
|
4483
4504
|
/*showsubgroups*/
|
|
4484
4505
|
n[9]
|
|
4485
4506
|
), i[0] & /*clientstyling*/
|
|
4486
|
-
32 &&
|
|
4507
|
+
32 && v(
|
|
4487
4508
|
r,
|
|
4488
4509
|
"clientstyling",
|
|
4489
4510
|
/*clientstyling*/
|
|
4490
4511
|
n[5]
|
|
4491
4512
|
), i[0] & /*clientstylingurl*/
|
|
4492
|
-
64 &&
|
|
4513
|
+
64 && v(
|
|
4493
4514
|
r,
|
|
4494
4515
|
"clientstylingurl",
|
|
4495
4516
|
/*clientstylingurl*/
|
|
4496
4517
|
n[6]
|
|
4497
4518
|
), i[0] & /*activecategory*/
|
|
4498
|
-
1 &&
|
|
4519
|
+
1 && v(
|
|
4499
4520
|
r,
|
|
4500
4521
|
"activeindex",
|
|
4501
4522
|
/*activecategory*/
|
|
4502
4523
|
n[0]
|
|
4503
4524
|
), i[0] & /*actionevent*/
|
|
4504
|
-
128 &&
|
|
4525
|
+
128 && v(
|
|
4505
4526
|
r,
|
|
4506
4527
|
"actionevent",
|
|
4507
4528
|
/*actionevent*/
|
|
4508
4529
|
n[7]
|
|
4509
4530
|
), i[0] & /*location*/
|
|
4510
|
-
256 &&
|
|
4531
|
+
256 && v(
|
|
4511
4532
|
r,
|
|
4512
4533
|
"location",
|
|
4513
4534
|
/*location*/
|
|
4514
4535
|
n[8]
|
|
4515
4536
|
), i[0] & /*categoriesicon*/
|
|
4516
|
-
1024 &&
|
|
4537
|
+
1024 && v(
|
|
4517
4538
|
r,
|
|
4518
4539
|
"categoriesicon",
|
|
4519
4540
|
/*categoriesicon*/
|
|
4520
4541
|
n[10]
|
|
4521
4542
|
), i[0] & /*lobbyiconimage*/
|
|
4522
|
-
2048 &&
|
|
4543
|
+
2048 && v(
|
|
4523
4544
|
r,
|
|
4524
4545
|
"lobbyiconimage",
|
|
4525
4546
|
/*lobbyiconimage*/
|
|
4526
4547
|
n[11]
|
|
4527
4548
|
), i[0] & /*mygamesiconimage*/
|
|
4528
|
-
4096 &&
|
|
4549
|
+
4096 && v(
|
|
4529
4550
|
r,
|
|
4530
4551
|
"mygamesiconimage",
|
|
4531
4552
|
/*mygamesiconimage*/
|
|
4532
4553
|
n[12]
|
|
4533
4554
|
), i[0] & /*mbsource*/
|
|
4534
|
-
16 &&
|
|
4555
|
+
16 && v(
|
|
4535
4556
|
r,
|
|
4536
4557
|
"mbsource",
|
|
4537
4558
|
/*mbsource*/
|
|
@@ -4539,58 +4560,58 @@ function us(e) {
|
|
|
4539
4560
|
);
|
|
4540
4561
|
},
|
|
4541
4562
|
d(n) {
|
|
4542
|
-
n &&
|
|
4563
|
+
n && re(t);
|
|
4543
4564
|
}
|
|
4544
4565
|
};
|
|
4545
4566
|
}
|
|
4546
|
-
function
|
|
4567
|
+
function cs(e) {
|
|
4547
4568
|
let t;
|
|
4548
4569
|
return {
|
|
4549
4570
|
c() {
|
|
4550
|
-
t = k("p"), t.textContent = "500 Error - Internal Server Error.",
|
|
4571
|
+
t = k("p"), t.textContent = "500 Error - Internal Server Error.", ne(t, "class", "SearchLoading svelte-ciaihq");
|
|
4551
4572
|
},
|
|
4552
4573
|
m(r, n) {
|
|
4553
|
-
|
|
4574
|
+
ce(r, t, n);
|
|
4554
4575
|
},
|
|
4555
4576
|
p: I,
|
|
4556
4577
|
d(r) {
|
|
4557
|
-
r &&
|
|
4578
|
+
r && re(t);
|
|
4558
4579
|
}
|
|
4559
4580
|
};
|
|
4560
4581
|
}
|
|
4561
|
-
function
|
|
4582
|
+
function fs(e) {
|
|
4562
4583
|
let t;
|
|
4563
4584
|
return {
|
|
4564
4585
|
c() {
|
|
4565
|
-
t = k("div"),
|
|
4586
|
+
t = k("div"), ne(t, "class", "CasinoCategoriesLoading svelte-ciaihq");
|
|
4566
4587
|
},
|
|
4567
4588
|
m(r, n) {
|
|
4568
|
-
|
|
4589
|
+
ce(r, t, n);
|
|
4569
4590
|
},
|
|
4570
4591
|
p: I,
|
|
4571
4592
|
d(r) {
|
|
4572
|
-
r &&
|
|
4593
|
+
r && re(t);
|
|
4573
4594
|
}
|
|
4574
4595
|
};
|
|
4575
4596
|
}
|
|
4576
|
-
function
|
|
4597
|
+
function ms(e) {
|
|
4577
4598
|
let t;
|
|
4578
4599
|
function r(s, o) {
|
|
4579
4600
|
return (
|
|
4580
4601
|
/*isLoading*/
|
|
4581
|
-
s[13] ||
|
|
4602
|
+
s[13] || ds || bs ? fs : (
|
|
4582
4603
|
/*hasErrors*/
|
|
4583
|
-
s[15] ?
|
|
4604
|
+
s[15] ? cs : ls
|
|
4584
4605
|
)
|
|
4585
4606
|
);
|
|
4586
4607
|
}
|
|
4587
4608
|
let n = r(e), i = n(e);
|
|
4588
4609
|
return {
|
|
4589
4610
|
c() {
|
|
4590
|
-
t = k("div"), i.c(),
|
|
4611
|
+
t = k("div"), i.c(), ne(t, "class", "svelte-ciaihq");
|
|
4591
4612
|
},
|
|
4592
4613
|
m(s, o) {
|
|
4593
|
-
|
|
4614
|
+
ce(s, t, o), i.m(t, null), e[26](t);
|
|
4594
4615
|
},
|
|
4595
4616
|
p(s, o) {
|
|
4596
4617
|
n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
|
|
@@ -4598,54 +4619,54 @@ function cs(e) {
|
|
|
4598
4619
|
i: I,
|
|
4599
4620
|
o: I,
|
|
4600
4621
|
d(s) {
|
|
4601
|
-
s &&
|
|
4622
|
+
s && re(t), i.d(), e[26](null);
|
|
4602
4623
|
}
|
|
4603
4624
|
};
|
|
4604
4625
|
}
|
|
4605
|
-
let
|
|
4606
|
-
function
|
|
4626
|
+
let ot = "CasinoSliderData", ds = !1, bs = !1;
|
|
4627
|
+
function ps(e, t, r) {
|
|
4607
4628
|
let n;
|
|
4608
|
-
|
|
4609
|
-
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "" } = t, { userid: a = "" } = t, { session: h = "" } = t, { mostplayed: u = "" } = t, { lastplayed: l = "false" } = t, { favorites: m = "" } = t, { mbsource: c } = t, { clientstyling: d = "" } = t, { clientstylingurl: p = "" } = t, { activecategory: b = "" } = t, { actionevent: w = "" } = t, { sessioncheck: M = "" } = t, { location: P = "secondaryMenu" } = t, { showsubgroups: T = "false" } = t, { filteredcategories:
|
|
4610
|
-
const
|
|
4629
|
+
Mr(e, ts, (f) => r(32, n = f));
|
|
4630
|
+
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "" } = t, { userid: a = "" } = t, { session: h = "" } = t, { mostplayed: u = "" } = t, { lastplayed: l = "false" } = t, { favorites: m = "" } = t, { mbsource: c } = t, { clientstyling: d = "" } = t, { clientstylingurl: p = "" } = t, { activecategory: b = "" } = t, { actionevent: w = "" } = t, { sessioncheck: M = "" } = t, { location: P = "secondaryMenu" } = t, { showsubgroups: T = "false" } = t, { filteredcategories: O = "" } = t, { translationurl: H = "" } = t, { categoriesicon: C = "" } = t, { lobbyiconimage: _ = "" } = t, { mygamesiconimage: N = "" } = t, L, $, F = !0, X, W = [], j = !1, xr = window.navigator.userAgent, G, Sr, lt, ct = !1, Ne = !1;
|
|
4631
|
+
const Le = (f) => {
|
|
4611
4632
|
Object.keys(f).forEach((A) => {
|
|
4612
|
-
|
|
4633
|
+
ns(A, f[A]);
|
|
4613
4634
|
});
|
|
4614
|
-
},
|
|
4635
|
+
}, wr = () => {
|
|
4615
4636
|
fetch(H).then((A) => A.json()).then((A) => {
|
|
4616
|
-
|
|
4637
|
+
Le(A);
|
|
4617
4638
|
}).catch((A) => {
|
|
4618
4639
|
console.log(A);
|
|
4619
4640
|
});
|
|
4620
4641
|
};
|
|
4621
|
-
|
|
4622
|
-
const
|
|
4623
|
-
|
|
4642
|
+
Le(is);
|
|
4643
|
+
const Tr = () => {
|
|
4644
|
+
ct == !1 && (m == "true" || u == "true" || l == "true") && W.splice(1, 0, {
|
|
4624
4645
|
// @ts-ignore
|
|
4625
4646
|
id: "MYGAMES",
|
|
4626
4647
|
name: L,
|
|
4627
4648
|
href: "",
|
|
4628
4649
|
games: []
|
|
4629
|
-
}),
|
|
4630
|
-
},
|
|
4631
|
-
if (L = n("myGamesName"),
|
|
4650
|
+
}), jr(), ct = !0, r(25, Ne = !0), ft();
|
|
4651
|
+
}, Hr = () => (i || (X = "Endpoint is missing! Please provide a valid endpointURL.", r(15, j = !0), r(13, F = !1), console.error(X)), s || (X = "Datasource is missing! Please provide a valid datasource.", r(15, j = !0), r(13, F = !1), console.error(X)), (!o || o.length < 2) && (X = "Language is missing! Please provide a valid language (alpha2code)", r(15, j = !0), r(13, F = !1), console.error(X)), j), Ar = () => {
|
|
4652
|
+
if (L = n("myGamesName"), $ = n("lobbyName"), !Hr()) {
|
|
4632
4653
|
let f = new URL(`${i}/v2/casino/groups/${s}`);
|
|
4633
|
-
f.searchParams.append("language", o), f.searchParams.append("platform",
|
|
4654
|
+
f.searchParams.append("language", o), f.searchParams.append("platform", rs(xr)), f.searchParams.append("fields", "id,name,games(href),flags"), fetch(f).then((A) => A.json()).then(
|
|
4634
4655
|
(A) => {
|
|
4635
|
-
let
|
|
4636
|
-
let
|
|
4637
|
-
if (
|
|
4638
|
-
for (let
|
|
4639
|
-
|
|
4640
|
-
return
|
|
4656
|
+
let Or = O.split(","), Nr = A.items.filter((dt) => {
|
|
4657
|
+
let Ie = !1;
|
|
4658
|
+
if (dt.games.total > 0 && (Ie = !0, O))
|
|
4659
|
+
for (let Lr of Or)
|
|
4660
|
+
dt.flags == Lr && (Ie = !1);
|
|
4661
|
+
return Ie;
|
|
4641
4662
|
});
|
|
4642
4663
|
W = [], W = W.concat(Nr), W.unshift({
|
|
4643
4664
|
// @ts-ignore
|
|
4644
4665
|
id: "LOBBY",
|
|
4645
|
-
name:
|
|
4666
|
+
name: $,
|
|
4646
4667
|
href: "",
|
|
4647
4668
|
games: []
|
|
4648
|
-
}), r(13,
|
|
4669
|
+
}), r(13, F = !1);
|
|
4649
4670
|
},
|
|
4650
4671
|
(A) => {
|
|
4651
4672
|
r(15, j = !0), console.error("There was an error while fetching the categories", A);
|
|
@@ -4654,42 +4675,42 @@ function ds(e, t, r) {
|
|
|
4654
4675
|
r(15, j = !0), console.error("There was an error while fetching the categories", A);
|
|
4655
4676
|
});
|
|
4656
4677
|
}
|
|
4657
|
-
},
|
|
4678
|
+
}, Br = () => {
|
|
4658
4679
|
let f = b.split("$");
|
|
4659
4680
|
r(0, b = f.length > 2 ? b.split("$").slice(0, 2).join("$") : b);
|
|
4660
|
-
},
|
|
4681
|
+
}, ft = () => {
|
|
4661
4682
|
window.postMessage(
|
|
4662
4683
|
{
|
|
4663
4684
|
type: "SliderData",
|
|
4664
|
-
identity:
|
|
4685
|
+
identity: ot,
|
|
4665
4686
|
data: W
|
|
4666
4687
|
},
|
|
4667
4688
|
window.location.href
|
|
4668
4689
|
);
|
|
4669
|
-
},
|
|
4670
|
-
f.data && f.data.type == "SliderMounted" && f.data.identity ==
|
|
4690
|
+
}, mt = (f) => {
|
|
4691
|
+
f.data && f.data.type == "SliderMounted" && f.data.identity == ot && ft();
|
|
4671
4692
|
};
|
|
4672
|
-
Fr(() => (window.addEventListener("message",
|
|
4673
|
-
window.removeEventListener("message",
|
|
4693
|
+
Fr(() => (window.addEventListener("message", mt), () => {
|
|
4694
|
+
window.removeEventListener("message", mt);
|
|
4674
4695
|
}));
|
|
4675
|
-
function
|
|
4676
|
-
|
|
4677
|
-
|
|
4696
|
+
function Pr(f) {
|
|
4697
|
+
je[f ? "unshift" : "push"](() => {
|
|
4698
|
+
G = f, r(14, G);
|
|
4678
4699
|
});
|
|
4679
4700
|
}
|
|
4680
4701
|
return e.$$set = (f) => {
|
|
4681
|
-
"endpoint" in f && r(1, i = f.endpoint), "datasource" in f && r(2, s = f.datasource), "lang" in f && r(3, o = f.lang), "userid" in f && r(17, a = f.userid), "session" in f && r(18, h = f.session), "mostplayed" in f && r(19, u = f.mostplayed), "lastplayed" in f && r(20, l = f.lastplayed), "favorites" in f && r(21, m = f.favorites), "mbsource" in f && r(4, c = f.mbsource), "clientstyling" in f && r(5, d = f.clientstyling), "clientstylingurl" in f && r(6, p = f.clientstylingurl), "activecategory" in f && r(0, b = f.activecategory), "actionevent" in f && r(7, w = f.actionevent), "sessioncheck" in f && r(22, M = f.sessioncheck), "location" in f && r(8, P = f.location), "showsubgroups" in f && r(9, T = f.showsubgroups), "filteredcategories" in f && r(23,
|
|
4702
|
+
"endpoint" in f && r(1, i = f.endpoint), "datasource" in f && r(2, s = f.datasource), "lang" in f && r(3, o = f.lang), "userid" in f && r(17, a = f.userid), "session" in f && r(18, h = f.session), "mostplayed" in f && r(19, u = f.mostplayed), "lastplayed" in f && r(20, l = f.lastplayed), "favorites" in f && r(21, m = f.favorites), "mbsource" in f && r(4, c = f.mbsource), "clientstyling" in f && r(5, d = f.clientstyling), "clientstylingurl" in f && r(6, p = f.clientstylingurl), "activecategory" in f && r(0, b = f.activecategory), "actionevent" in f && r(7, w = f.actionevent), "sessioncheck" in f && r(22, M = f.sessioncheck), "location" in f && r(8, P = f.location), "showsubgroups" in f && r(9, T = f.showsubgroups), "filteredcategories" in f && r(23, O = f.filteredcategories), "translationurl" in f && r(24, H = f.translationurl), "categoriesicon" in f && r(10, C = f.categoriesicon), "lobbyiconimage" in f && r(11, _ = f.lobbyiconimage), "mygamesiconimage" in f && r(12, N = f.mygamesiconimage);
|
|
4682
4703
|
}, e.$$.update = () => {
|
|
4683
4704
|
e.$$.dirty[0] & /*endpoint, datasource, lang*/
|
|
4684
|
-
14 && i && s && o &&
|
|
4685
|
-
3940354 && i && h && (u || l || m) &&
|
|
4686
|
-
33824769 &&
|
|
4687
|
-
16777216 && H &&
|
|
4688
|
-
16416 && d &&
|
|
4689
|
-
16448 && p &&
|
|
4690
|
-
16400 && c &&
|
|
4691
|
-
16777232 && c && !H &&
|
|
4692
|
-
}, r(16,
|
|
4705
|
+
14 && i && s && o && Ar(), e.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
|
|
4706
|
+
3940354 && i && h && (u || l || m) && !F && Tr(), e.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
|
|
4707
|
+
33824769 && !F && b && (!h || Ne) && Br(), e.$$.dirty[0] & /*translationurl*/
|
|
4708
|
+
16777216 && H && wr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4709
|
+
16416 && d && G && ss(G, d), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4710
|
+
16448 && p && G && os(G, p), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4711
|
+
16400 && c && G && as(G, `${c}.Style`), e.$$.dirty[0] & /*mbsource, translationurl*/
|
|
4712
|
+
16777232 && c && !H && us(`${c}.Translation`, Sr, Le);
|
|
4713
|
+
}, r(16, lt = 0), [
|
|
4693
4714
|
b,
|
|
4694
4715
|
i,
|
|
4695
4716
|
s,
|
|
@@ -4701,32 +4722,32 @@ function ds(e, t, r) {
|
|
|
4701
4722
|
P,
|
|
4702
4723
|
T,
|
|
4703
4724
|
C,
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4725
|
+
_,
|
|
4726
|
+
N,
|
|
4727
|
+
F,
|
|
4728
|
+
G,
|
|
4708
4729
|
j,
|
|
4709
|
-
|
|
4730
|
+
lt,
|
|
4710
4731
|
a,
|
|
4711
4732
|
h,
|
|
4712
4733
|
u,
|
|
4713
4734
|
l,
|
|
4714
4735
|
m,
|
|
4715
4736
|
M,
|
|
4716
|
-
|
|
4737
|
+
O,
|
|
4717
4738
|
H,
|
|
4718
|
-
|
|
4719
|
-
|
|
4739
|
+
Ne,
|
|
4740
|
+
Pr
|
|
4720
4741
|
];
|
|
4721
4742
|
}
|
|
4722
|
-
class
|
|
4743
|
+
class gs extends Yr {
|
|
4723
4744
|
constructor(t) {
|
|
4724
|
-
super(),
|
|
4745
|
+
super(), qr(
|
|
4725
4746
|
this,
|
|
4726
4747
|
t,
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4748
|
+
ps,
|
|
4749
|
+
ms,
|
|
4750
|
+
Ut,
|
|
4730
4751
|
{
|
|
4731
4752
|
endpoint: 1,
|
|
4732
4753
|
datasource: 2,
|
|
@@ -4750,7 +4771,7 @@ class bs extends Qr {
|
|
|
4750
4771
|
lobbyiconimage: 11,
|
|
4751
4772
|
mygamesiconimage: 12
|
|
4752
4773
|
},
|
|
4753
|
-
|
|
4774
|
+
hs,
|
|
4754
4775
|
[-1, -1]
|
|
4755
4776
|
);
|
|
4756
4777
|
}
|
|
@@ -4758,163 +4779,163 @@ class bs extends Qr {
|
|
|
4758
4779
|
return this.$$.ctx[1];
|
|
4759
4780
|
}
|
|
4760
4781
|
set endpoint(t) {
|
|
4761
|
-
this.$$set({ endpoint: t }),
|
|
4782
|
+
this.$$set({ endpoint: t }), x();
|
|
4762
4783
|
}
|
|
4763
4784
|
get datasource() {
|
|
4764
4785
|
return this.$$.ctx[2];
|
|
4765
4786
|
}
|
|
4766
4787
|
set datasource(t) {
|
|
4767
|
-
this.$$set({ datasource: t }),
|
|
4788
|
+
this.$$set({ datasource: t }), x();
|
|
4768
4789
|
}
|
|
4769
4790
|
get lang() {
|
|
4770
4791
|
return this.$$.ctx[3];
|
|
4771
4792
|
}
|
|
4772
4793
|
set lang(t) {
|
|
4773
|
-
this.$$set({ lang: t }),
|
|
4794
|
+
this.$$set({ lang: t }), x();
|
|
4774
4795
|
}
|
|
4775
4796
|
get userid() {
|
|
4776
4797
|
return this.$$.ctx[17];
|
|
4777
4798
|
}
|
|
4778
4799
|
set userid(t) {
|
|
4779
|
-
this.$$set({ userid: t }),
|
|
4800
|
+
this.$$set({ userid: t }), x();
|
|
4780
4801
|
}
|
|
4781
4802
|
get session() {
|
|
4782
4803
|
return this.$$.ctx[18];
|
|
4783
4804
|
}
|
|
4784
4805
|
set session(t) {
|
|
4785
|
-
this.$$set({ session: t }),
|
|
4806
|
+
this.$$set({ session: t }), x();
|
|
4786
4807
|
}
|
|
4787
4808
|
get mostplayed() {
|
|
4788
4809
|
return this.$$.ctx[19];
|
|
4789
4810
|
}
|
|
4790
4811
|
set mostplayed(t) {
|
|
4791
|
-
this.$$set({ mostplayed: t }),
|
|
4812
|
+
this.$$set({ mostplayed: t }), x();
|
|
4792
4813
|
}
|
|
4793
4814
|
get lastplayed() {
|
|
4794
4815
|
return this.$$.ctx[20];
|
|
4795
4816
|
}
|
|
4796
4817
|
set lastplayed(t) {
|
|
4797
|
-
this.$$set({ lastplayed: t }),
|
|
4818
|
+
this.$$set({ lastplayed: t }), x();
|
|
4798
4819
|
}
|
|
4799
4820
|
get favorites() {
|
|
4800
4821
|
return this.$$.ctx[21];
|
|
4801
4822
|
}
|
|
4802
4823
|
set favorites(t) {
|
|
4803
|
-
this.$$set({ favorites: t }),
|
|
4824
|
+
this.$$set({ favorites: t }), x();
|
|
4804
4825
|
}
|
|
4805
4826
|
get mbsource() {
|
|
4806
4827
|
return this.$$.ctx[4];
|
|
4807
4828
|
}
|
|
4808
4829
|
set mbsource(t) {
|
|
4809
|
-
this.$$set({ mbsource: t }),
|
|
4830
|
+
this.$$set({ mbsource: t }), x();
|
|
4810
4831
|
}
|
|
4811
4832
|
get clientstyling() {
|
|
4812
4833
|
return this.$$.ctx[5];
|
|
4813
4834
|
}
|
|
4814
4835
|
set clientstyling(t) {
|
|
4815
|
-
this.$$set({ clientstyling: t }),
|
|
4836
|
+
this.$$set({ clientstyling: t }), x();
|
|
4816
4837
|
}
|
|
4817
4838
|
get clientstylingurl() {
|
|
4818
4839
|
return this.$$.ctx[6];
|
|
4819
4840
|
}
|
|
4820
4841
|
set clientstylingurl(t) {
|
|
4821
|
-
this.$$set({ clientstylingurl: t }),
|
|
4842
|
+
this.$$set({ clientstylingurl: t }), x();
|
|
4822
4843
|
}
|
|
4823
4844
|
get activecategory() {
|
|
4824
4845
|
return this.$$.ctx[0];
|
|
4825
4846
|
}
|
|
4826
4847
|
set activecategory(t) {
|
|
4827
|
-
this.$$set({ activecategory: t }),
|
|
4848
|
+
this.$$set({ activecategory: t }), x();
|
|
4828
4849
|
}
|
|
4829
4850
|
get actionevent() {
|
|
4830
4851
|
return this.$$.ctx[7];
|
|
4831
4852
|
}
|
|
4832
4853
|
set actionevent(t) {
|
|
4833
|
-
this.$$set({ actionevent: t }),
|
|
4854
|
+
this.$$set({ actionevent: t }), x();
|
|
4834
4855
|
}
|
|
4835
4856
|
get sessioncheck() {
|
|
4836
4857
|
return this.$$.ctx[22];
|
|
4837
4858
|
}
|
|
4838
4859
|
set sessioncheck(t) {
|
|
4839
|
-
this.$$set({ sessioncheck: t }),
|
|
4860
|
+
this.$$set({ sessioncheck: t }), x();
|
|
4840
4861
|
}
|
|
4841
4862
|
get location() {
|
|
4842
4863
|
return this.$$.ctx[8];
|
|
4843
4864
|
}
|
|
4844
4865
|
set location(t) {
|
|
4845
|
-
this.$$set({ location: t }),
|
|
4866
|
+
this.$$set({ location: t }), x();
|
|
4846
4867
|
}
|
|
4847
4868
|
get showsubgroups() {
|
|
4848
4869
|
return this.$$.ctx[9];
|
|
4849
4870
|
}
|
|
4850
4871
|
set showsubgroups(t) {
|
|
4851
|
-
this.$$set({ showsubgroups: t }),
|
|
4872
|
+
this.$$set({ showsubgroups: t }), x();
|
|
4852
4873
|
}
|
|
4853
4874
|
get filteredcategories() {
|
|
4854
4875
|
return this.$$.ctx[23];
|
|
4855
4876
|
}
|
|
4856
4877
|
set filteredcategories(t) {
|
|
4857
|
-
this.$$set({ filteredcategories: t }),
|
|
4878
|
+
this.$$set({ filteredcategories: t }), x();
|
|
4858
4879
|
}
|
|
4859
4880
|
get translationurl() {
|
|
4860
4881
|
return this.$$.ctx[24];
|
|
4861
4882
|
}
|
|
4862
4883
|
set translationurl(t) {
|
|
4863
|
-
this.$$set({ translationurl: t }),
|
|
4884
|
+
this.$$set({ translationurl: t }), x();
|
|
4864
4885
|
}
|
|
4865
4886
|
get categoriesicon() {
|
|
4866
4887
|
return this.$$.ctx[10];
|
|
4867
4888
|
}
|
|
4868
4889
|
set categoriesicon(t) {
|
|
4869
|
-
this.$$set({ categoriesicon: t }),
|
|
4890
|
+
this.$$set({ categoriesicon: t }), x();
|
|
4870
4891
|
}
|
|
4871
4892
|
get lobbyiconimage() {
|
|
4872
4893
|
return this.$$.ctx[11];
|
|
4873
4894
|
}
|
|
4874
4895
|
set lobbyiconimage(t) {
|
|
4875
|
-
this.$$set({ lobbyiconimage: t }),
|
|
4896
|
+
this.$$set({ lobbyiconimage: t }), x();
|
|
4876
4897
|
}
|
|
4877
4898
|
get mygamesiconimage() {
|
|
4878
4899
|
return this.$$.ctx[12];
|
|
4879
4900
|
}
|
|
4880
4901
|
set mygamesiconimage(t) {
|
|
4881
|
-
this.$$set({ mygamesiconimage: t }),
|
|
4902
|
+
this.$$set({ mygamesiconimage: t }), x();
|
|
4882
4903
|
}
|
|
4883
4904
|
}
|
|
4884
|
-
|
|
4905
|
+
Qr(gs, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {} }, [], [], !0);
|
|
4885
4906
|
export {
|
|
4886
4907
|
de as $,
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4908
|
+
_s as A,
|
|
4909
|
+
ys as B,
|
|
4910
|
+
ss as C,
|
|
4911
|
+
os as D,
|
|
4912
|
+
as as E,
|
|
4913
|
+
gs as F,
|
|
4914
|
+
Yr as S,
|
|
4894
4915
|
me as a,
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4916
|
+
gr as b,
|
|
4917
|
+
Qr as c,
|
|
4918
|
+
Cr as d,
|
|
4919
|
+
re as e,
|
|
4920
|
+
x as f,
|
|
4921
|
+
ne as g,
|
|
4922
|
+
ce as h,
|
|
4923
|
+
qr as i,
|
|
4924
|
+
$t as j,
|
|
4925
|
+
k,
|
|
4926
|
+
Ss as l,
|
|
4927
|
+
Es as m,
|
|
4907
4928
|
I as n,
|
|
4908
|
-
|
|
4929
|
+
rs as o,
|
|
4909
4930
|
Fr as p,
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4931
|
+
Ts as q,
|
|
4932
|
+
te as r,
|
|
4933
|
+
Ut as s,
|
|
4934
|
+
xs as t,
|
|
4935
|
+
As as u,
|
|
4936
|
+
je as v,
|
|
4937
|
+
ws as w,
|
|
4938
|
+
Ft as x,
|
|
4939
|
+
vs as y,
|
|
4940
|
+
Hs as z
|
|
4920
4941
|
};
|