@everymatrix/casino-random-game 1.76.0 → 1.76.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoRandomGame-BCx6_mSm.js → CasinoRandomGame-40wnmLKZ.js} +1331 -1366
- package/components/CasinoRandomGame-CuH73zJq.cjs +19 -0
- package/components/{CasinoRandomGame-DGqtZD9p.js → CasinoRandomGame-DaqT6dCn.js} +1343 -1378
- package/es2015/casino-random-game.cjs +1 -1
- package/es2015/casino-random-game.js +1 -1
- package/esnext/casino-random-game.js +1 -1
- package/package.json +1 -1
- package/components/CasinoRandomGame-CIt395QJ.cjs +0 -19
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
1
|
+
var Xn = Object.defineProperty, zn = Object.defineProperties;
|
|
2
|
+
var Jn = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var mt = Object.getOwnPropertySymbols;
|
|
4
|
+
var Zn = Object.prototype.hasOwnProperty, Qn = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ge = (e, t, n) => t in e ? Xn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, pt = (e, t) => {
|
|
6
|
+
for (var n in t || (t = {}))
|
|
7
|
+
Zn.call(t, n) && Ge(e, n, t[n]);
|
|
8
|
+
if (mt)
|
|
9
|
+
for (var n of mt(t))
|
|
10
|
+
Qn.call(t, n) && Ge(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var N = (e, t,
|
|
14
|
-
var ye = (e, t,
|
|
12
|
+
}, bt = (e, t) => zn(e, Jn(t));
|
|
13
|
+
var N = (e, t, n) => (Ge(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
|
+
var ye = (e, t, n) => new Promise((r, i) => {
|
|
15
15
|
var o = (h) => {
|
|
16
16
|
try {
|
|
17
|
-
s(
|
|
17
|
+
s(n.next(h));
|
|
18
18
|
} catch (l) {
|
|
19
19
|
i(l);
|
|
20
20
|
}
|
|
21
21
|
}, a = (h) => {
|
|
22
22
|
try {
|
|
23
|
-
s(
|
|
23
|
+
s(n.throw(h));
|
|
24
24
|
} catch (l) {
|
|
25
25
|
i(l);
|
|
26
26
|
}
|
|
27
|
-
}, s = (h) => h.done ?
|
|
28
|
-
s((
|
|
27
|
+
}, s = (h) => h.done ? r(h.value) : Promise.resolve(h.value).then(o, a);
|
|
28
|
+
s((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function C() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
for (const
|
|
34
|
-
e[
|
|
32
|
+
function Yn(e, t) {
|
|
33
|
+
for (const n in t)
|
|
34
|
+
e[n] = t[n];
|
|
35
35
|
return (
|
|
36
36
|
/** @type {T & S} */
|
|
37
37
|
e
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function Jt(e) {
|
|
41
41
|
return e();
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function gt() {
|
|
44
44
|
return /* @__PURE__ */ Object.create(null);
|
|
45
45
|
}
|
|
46
46
|
function J(e) {
|
|
47
|
-
e.forEach(
|
|
47
|
+
e.forEach(Jt);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function st(e) {
|
|
50
50
|
return typeof e == "function";
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Zt(e, t) {
|
|
53
53
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
54
54
|
}
|
|
55
|
-
let
|
|
56
|
-
function
|
|
57
|
-
return e === t ? !0 : (
|
|
55
|
+
let _e;
|
|
56
|
+
function yt(e, t) {
|
|
57
|
+
return e === t ? !0 : (_e || (_e = document.createElement("a")), _e.href = t, e === _e.href);
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function qn(e) {
|
|
60
60
|
return Object.keys(e).length === 0;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function Qt(e, ...t) {
|
|
63
63
|
if (e == null) {
|
|
64
|
-
for (const
|
|
65
|
-
|
|
66
|
-
return
|
|
64
|
+
for (const r of t)
|
|
65
|
+
r(void 0);
|
|
66
|
+
return C;
|
|
67
67
|
}
|
|
68
|
-
const
|
|
69
|
-
return
|
|
68
|
+
const n = e.subscribe(...t);
|
|
69
|
+
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
e.$$.on_destroy.push(
|
|
71
|
+
function Kn(e, t, n) {
|
|
72
|
+
e.$$.on_destroy.push(Qt(t, n));
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function er(e, t, n, r) {
|
|
75
75
|
if (e) {
|
|
76
|
-
const i =
|
|
76
|
+
const i = Yt(e, t, n, r);
|
|
77
77
|
return e[0](i);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
return e[1] &&
|
|
80
|
+
function Yt(e, t, n, r) {
|
|
81
|
+
return e[1] && r ? Yn(n.ctx.slice(), e[1](r(t))) : n.ctx;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
if (e[2] &&
|
|
85
|
-
const i = e[2](n
|
|
83
|
+
function tr(e, t, n, r) {
|
|
84
|
+
if (e[2] && r) {
|
|
85
|
+
const i = e[2](r(n));
|
|
86
86
|
if (t.dirty === void 0)
|
|
87
87
|
return i;
|
|
88
88
|
if (typeof i == "object") {
|
|
@@ -95,32 +95,32 @@ function on(e, t, r, n) {
|
|
|
95
95
|
}
|
|
96
96
|
return t.dirty;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function nr(e, t, n, r, i, o) {
|
|
99
99
|
if (i) {
|
|
100
|
-
const a =
|
|
100
|
+
const a = Yt(t, n, r, o);
|
|
101
101
|
e.p(a, i);
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function rr(e) {
|
|
105
105
|
if (e.ctx.length > 32) {
|
|
106
|
-
const t = [],
|
|
107
|
-
for (let
|
|
108
|
-
t[
|
|
106
|
+
const t = [], n = e.ctx.length / 32;
|
|
107
|
+
for (let r = 0; r < n; r++)
|
|
108
|
+
t[r] = -1;
|
|
109
109
|
return t;
|
|
110
110
|
}
|
|
111
111
|
return -1;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function v(e, t) {
|
|
114
114
|
e.appendChild(t);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
const
|
|
118
|
-
if (!
|
|
119
|
-
const i =
|
|
120
|
-
i.id = t, i.textContent =
|
|
116
|
+
function ir(e, t, n) {
|
|
117
|
+
const r = or(e);
|
|
118
|
+
if (!r.getElementById(t)) {
|
|
119
|
+
const i = S("style");
|
|
120
|
+
i.id = t, i.textContent = n, ar(r, i);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function or(e) {
|
|
124
124
|
if (!e)
|
|
125
125
|
return document;
|
|
126
126
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -130,27 +130,27 @@ function ln(e) {
|
|
|
130
130
|
t
|
|
131
131
|
) : e.ownerDocument;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
return
|
|
133
|
+
function ar(e, t) {
|
|
134
|
+
return v(
|
|
135
135
|
/** @type {Document} */
|
|
136
136
|
e.head || e,
|
|
137
137
|
t
|
|
138
138
|
), t.sheet;
|
|
139
139
|
}
|
|
140
|
-
function I(e, t,
|
|
141
|
-
e.insertBefore(t,
|
|
140
|
+
function I(e, t, n) {
|
|
141
|
+
e.insertBefore(t, n || null);
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function R(e) {
|
|
144
144
|
e.parentNode && e.parentNode.removeChild(e);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
for (let
|
|
148
|
-
e[
|
|
146
|
+
function sr(e, t) {
|
|
147
|
+
for (let n = 0; n < e.length; n += 1)
|
|
148
|
+
e[n] && e[n].d(t);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function S(e) {
|
|
151
151
|
return document.createElement(e);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function _t(e) {
|
|
154
154
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
155
155
|
}
|
|
156
156
|
function k(e) {
|
|
@@ -159,94 +159,94 @@ function k(e) {
|
|
|
159
159
|
function V() {
|
|
160
160
|
return k(" ");
|
|
161
161
|
}
|
|
162
|
-
function Be(e, t,
|
|
163
|
-
return e.addEventListener(t,
|
|
162
|
+
function Be(e, t, n, r) {
|
|
163
|
+
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
164
164
|
}
|
|
165
|
-
function g(e, t,
|
|
166
|
-
|
|
165
|
+
function g(e, t, n) {
|
|
166
|
+
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function ur(e) {
|
|
169
169
|
return Array.from(e.childNodes);
|
|
170
170
|
}
|
|
171
171
|
function z(e, t) {
|
|
172
172
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
173
173
|
t);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function lr(e) {
|
|
176
176
|
const t = {};
|
|
177
177
|
return e.childNodes.forEach(
|
|
178
178
|
/** @param {Element} node */
|
|
179
|
-
(
|
|
180
|
-
t[
|
|
179
|
+
(n) => {
|
|
180
|
+
t[n.slot || "default"] = !0;
|
|
181
181
|
}
|
|
182
182
|
), t;
|
|
183
183
|
}
|
|
184
|
-
let
|
|
185
|
-
function
|
|
186
|
-
|
|
184
|
+
let de;
|
|
185
|
+
function ce(e) {
|
|
186
|
+
de = e;
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
if (!
|
|
188
|
+
function hr() {
|
|
189
|
+
if (!de)
|
|
190
190
|
throw new Error("Function called outside component initialization");
|
|
191
|
-
return
|
|
191
|
+
return de;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
|
|
193
|
+
function cr(e) {
|
|
194
|
+
hr().$$.on_mount.push(e);
|
|
195
195
|
}
|
|
196
196
|
const K = [], Ae = [];
|
|
197
197
|
let ee = [];
|
|
198
|
-
const
|
|
199
|
-
let
|
|
200
|
-
function
|
|
201
|
-
|
|
198
|
+
const xt = [], qt = /* @__PURE__ */ Promise.resolve();
|
|
199
|
+
let We = !1;
|
|
200
|
+
function Kt() {
|
|
201
|
+
We || (We = !0, qt.then(O));
|
|
202
202
|
}
|
|
203
|
-
function
|
|
204
|
-
return
|
|
203
|
+
function fr() {
|
|
204
|
+
return Kt(), qt;
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function Xe(e) {
|
|
207
207
|
ee.push(e);
|
|
208
208
|
}
|
|
209
|
-
const
|
|
209
|
+
const Ue = /* @__PURE__ */ new Set();
|
|
210
210
|
let Y = 0;
|
|
211
|
-
function
|
|
211
|
+
function O() {
|
|
212
212
|
if (Y !== 0)
|
|
213
213
|
return;
|
|
214
|
-
const e =
|
|
214
|
+
const e = de;
|
|
215
215
|
do {
|
|
216
216
|
try {
|
|
217
217
|
for (; Y < K.length; ) {
|
|
218
218
|
const t = K[Y];
|
|
219
|
-
Y++,
|
|
219
|
+
Y++, ce(t), dr(t.$$);
|
|
220
220
|
}
|
|
221
221
|
} catch (t) {
|
|
222
222
|
throw K.length = 0, Y = 0, t;
|
|
223
223
|
}
|
|
224
|
-
for (
|
|
224
|
+
for (ce(null), K.length = 0, Y = 0; Ae.length; )
|
|
225
225
|
Ae.pop()();
|
|
226
226
|
for (let t = 0; t < ee.length; t += 1) {
|
|
227
|
-
const
|
|
228
|
-
|
|
227
|
+
const n = ee[t];
|
|
228
|
+
Ue.has(n) || (Ue.add(n), n());
|
|
229
229
|
}
|
|
230
230
|
ee.length = 0;
|
|
231
231
|
} while (K.length);
|
|
232
|
-
for (;
|
|
233
|
-
|
|
234
|
-
|
|
232
|
+
for (; xt.length; )
|
|
233
|
+
xt.pop()();
|
|
234
|
+
We = !1, Ue.clear(), ce(e);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function dr(e) {
|
|
237
237
|
if (e.fragment !== null) {
|
|
238
238
|
e.update(), J(e.before_update);
|
|
239
239
|
const t = e.dirty;
|
|
240
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
240
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Xe);
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
function
|
|
244
|
-
const t = [],
|
|
245
|
-
ee.forEach((
|
|
243
|
+
function mr(e) {
|
|
244
|
+
const t = [], n = [];
|
|
245
|
+
ee.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), ee = t;
|
|
246
246
|
}
|
|
247
247
|
const Ee = /* @__PURE__ */ new Set();
|
|
248
248
|
let X;
|
|
249
|
-
function
|
|
249
|
+
function pr() {
|
|
250
250
|
X = {
|
|
251
251
|
r: 0,
|
|
252
252
|
c: [],
|
|
@@ -254,50 +254,50 @@ function vn() {
|
|
|
254
254
|
// parent group
|
|
255
255
|
};
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function br() {
|
|
258
258
|
X.r || J(X.c), X = X.p;
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function fe(e, t) {
|
|
261
261
|
e && e.i && (Ee.delete(e), e.i(t));
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function ze(e, t, n, r) {
|
|
264
264
|
if (e && e.o) {
|
|
265
265
|
if (Ee.has(e))
|
|
266
266
|
return;
|
|
267
267
|
Ee.add(e), X.c.push(() => {
|
|
268
|
-
Ee.delete(e),
|
|
268
|
+
Ee.delete(e), r && (n && e.d(1), r());
|
|
269
269
|
}), e.o(t);
|
|
270
270
|
} else
|
|
271
|
-
|
|
271
|
+
r && r();
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function vt(e) {
|
|
274
274
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
275
275
|
}
|
|
276
|
-
function
|
|
277
|
-
const { fragment:
|
|
278
|
-
|
|
279
|
-
const o = e.$$.on_mount.map(
|
|
276
|
+
function gr(e, t, n) {
|
|
277
|
+
const { fragment: r, after_update: i } = e.$$;
|
|
278
|
+
r && r.m(t, n), Xe(() => {
|
|
279
|
+
const o = e.$$.on_mount.map(Jt).filter(st);
|
|
280
280
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : J(o), e.$$.on_mount = [];
|
|
281
|
-
}), i.forEach(
|
|
281
|
+
}), i.forEach(Xe);
|
|
282
282
|
}
|
|
283
|
-
function
|
|
284
|
-
const
|
|
285
|
-
|
|
283
|
+
function yr(e, t) {
|
|
284
|
+
const n = e.$$;
|
|
285
|
+
n.fragment !== null && (mr(n.after_update), J(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
288
|
-
e.$$.dirty[0] === -1 && (K.push(e),
|
|
287
|
+
function _r(e, t) {
|
|
288
|
+
e.$$.dirty[0] === -1 && (K.push(e), Kt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
const h =
|
|
292
|
-
|
|
290
|
+
function xr(e, t, n, r, i, o, a = null, s = [-1]) {
|
|
291
|
+
const h = de;
|
|
292
|
+
ce(e);
|
|
293
293
|
const l = e.$$ = {
|
|
294
294
|
fragment: null,
|
|
295
295
|
ctx: [],
|
|
296
296
|
// state
|
|
297
297
|
props: o,
|
|
298
|
-
update:
|
|
298
|
+
update: C,
|
|
299
299
|
not_equal: i,
|
|
300
|
-
bound:
|
|
300
|
+
bound: gt(),
|
|
301
301
|
// lifecycle
|
|
302
302
|
on_mount: [],
|
|
303
303
|
on_destroy: [],
|
|
@@ -306,29 +306,29 @@ function Sn(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
306
306
|
after_update: [],
|
|
307
307
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
308
308
|
// everything else
|
|
309
|
-
callbacks:
|
|
309
|
+
callbacks: gt(),
|
|
310
310
|
dirty: s,
|
|
311
311
|
skip_bound: !1,
|
|
312
312
|
root: t.target || h.$$.root
|
|
313
313
|
};
|
|
314
314
|
a && a(l.root);
|
|
315
315
|
let u = !1;
|
|
316
|
-
if (l.ctx =
|
|
317
|
-
const
|
|
318
|
-
return l.ctx && i(l.ctx[f], l.ctx[f] =
|
|
319
|
-
})
|
|
316
|
+
if (l.ctx = n(e, t.props || {}, (f, c, ...d) => {
|
|
317
|
+
const m = d.length ? d[0] : c;
|
|
318
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = m) && (!l.skip_bound && l.bound[f] && l.bound[f](m), u && _r(e, f)), c;
|
|
319
|
+
}), l.update(), u = !0, J(l.before_update), l.fragment = r(l.ctx), t.target) {
|
|
320
320
|
if (t.hydrate) {
|
|
321
|
-
const f =
|
|
322
|
-
l.fragment && l.fragment.l(f), f.forEach(
|
|
321
|
+
const f = ur(t.target);
|
|
322
|
+
l.fragment && l.fragment.l(f), f.forEach(R);
|
|
323
323
|
} else
|
|
324
324
|
l.fragment && l.fragment.c();
|
|
325
|
-
t.intro &&
|
|
325
|
+
t.intro && fe(e.$$.fragment), gr(e, t.target, t.anchor), O();
|
|
326
326
|
}
|
|
327
|
-
|
|
327
|
+
ce(h);
|
|
328
328
|
}
|
|
329
|
-
let
|
|
330
|
-
typeof HTMLElement == "function" && (
|
|
331
|
-
constructor(t,
|
|
329
|
+
let en;
|
|
330
|
+
typeof HTMLElement == "function" && (en = class extends HTMLElement {
|
|
331
|
+
constructor(t, n, r) {
|
|
332
332
|
super();
|
|
333
333
|
/** The Svelte component constructor */
|
|
334
334
|
N(this, "$$ctor");
|
|
@@ -348,19 +348,19 @@ typeof HTMLElement == "function" && (ir = class extends HTMLElement {
|
|
|
348
348
|
N(this, "$$l", {});
|
|
349
349
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
350
350
|
N(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
351
|
-
this.$$ctor = t, this.$$s =
|
|
351
|
+
this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
|
|
352
352
|
}
|
|
353
|
-
addEventListener(t,
|
|
354
|
-
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(
|
|
355
|
-
const i = this.$$c.$on(t,
|
|
356
|
-
this.$$l_u.set(
|
|
353
|
+
addEventListener(t, n, r) {
|
|
354
|
+
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
|
|
355
|
+
const i = this.$$c.$on(t, n);
|
|
356
|
+
this.$$l_u.set(n, i);
|
|
357
357
|
}
|
|
358
|
-
super.addEventListener(t,
|
|
358
|
+
super.addEventListener(t, n, r);
|
|
359
359
|
}
|
|
360
|
-
removeEventListener(t,
|
|
361
|
-
if (super.removeEventListener(t,
|
|
362
|
-
const i = this.$$l_u.get(
|
|
363
|
-
i && (i(), this.$$l_u.delete(
|
|
360
|
+
removeEventListener(t, n, r) {
|
|
361
|
+
if (super.removeEventListener(t, n, r), this.$$c) {
|
|
362
|
+
const i = this.$$l_u.get(n);
|
|
363
|
+
i && (i(), this.$$l_u.delete(n));
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
connectedCallback() {
|
|
@@ -371,7 +371,7 @@ typeof HTMLElement == "function" && (ir = class extends HTMLElement {
|
|
|
371
371
|
let a;
|
|
372
372
|
return {
|
|
373
373
|
c: function() {
|
|
374
|
-
a =
|
|
374
|
+
a = S("slot"), o !== "default" && g(a, "name", o);
|
|
375
375
|
},
|
|
376
376
|
/**
|
|
377
377
|
* @param {HTMLElement} target
|
|
@@ -381,16 +381,16 @@ typeof HTMLElement == "function" && (ir = class extends HTMLElement {
|
|
|
381
381
|
I(l, a, u);
|
|
382
382
|
},
|
|
383
383
|
d: function(l) {
|
|
384
|
-
l &&
|
|
384
|
+
l && R(a);
|
|
385
385
|
}
|
|
386
386
|
};
|
|
387
387
|
};
|
|
388
388
|
};
|
|
389
389
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
390
390
|
return;
|
|
391
|
-
const
|
|
391
|
+
const n = {}, r = lr(this);
|
|
392
392
|
for (const o of this.$$s)
|
|
393
|
-
o in
|
|
393
|
+
o in r && (n[o] = [t(o)]);
|
|
394
394
|
for (const o of this.attributes) {
|
|
395
395
|
const a = this.$$g_p(o.name);
|
|
396
396
|
a in this.$$d || (this.$$d[a] = we(a, o.value, this.$$p_d, "toProp"));
|
|
@@ -399,8 +399,8 @@ typeof HTMLElement == "function" && (ir = class extends HTMLElement {
|
|
|
399
399
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
400
400
|
this.$$c = new this.$$ctor({
|
|
401
401
|
target: this.shadowRoot || this,
|
|
402
|
-
props:
|
|
403
|
-
$$slots:
|
|
402
|
+
props: bt(pt({}, this.$$d), {
|
|
403
|
+
$$slots: n,
|
|
404
404
|
$$scope: {
|
|
405
405
|
ctx: []
|
|
406
406
|
}
|
|
@@ -432,9 +432,9 @@ typeof HTMLElement == "function" && (ir = class extends HTMLElement {
|
|
|
432
432
|
}
|
|
433
433
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
434
434
|
// and setting attributes through setAttribute etc, this is helpful
|
|
435
|
-
attributeChangedCallback(t,
|
|
435
|
+
attributeChangedCallback(t, n, r) {
|
|
436
436
|
var i;
|
|
437
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = we(t,
|
|
437
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = we(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
438
438
|
}
|
|
439
439
|
disconnectedCallback() {
|
|
440
440
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -443,16 +443,16 @@ typeof HTMLElement == "function" && (ir = class extends HTMLElement {
|
|
|
443
443
|
}
|
|
444
444
|
$$g_p(t) {
|
|
445
445
|
return Object.keys(this.$$p_d).find(
|
|
446
|
-
(
|
|
446
|
+
(n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
|
|
447
447
|
) || t;
|
|
448
448
|
}
|
|
449
449
|
});
|
|
450
|
-
function we(e, t,
|
|
450
|
+
function we(e, t, n, r) {
|
|
451
451
|
var o;
|
|
452
|
-
const i = (o =
|
|
453
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !
|
|
452
|
+
const i = (o = n[e]) == null ? void 0 : o.type;
|
|
453
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
454
454
|
return t;
|
|
455
|
-
if (
|
|
455
|
+
if (r === "toAttribute")
|
|
456
456
|
switch (i) {
|
|
457
457
|
case "Object":
|
|
458
458
|
case "Array":
|
|
@@ -477,10 +477,10 @@ function we(e, t, r, n) {
|
|
|
477
477
|
return t;
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
|
-
function
|
|
481
|
-
let a = class extends
|
|
480
|
+
function vr(e, t, n, r, i, o) {
|
|
481
|
+
let a = class extends en {
|
|
482
482
|
constructor() {
|
|
483
|
-
super(e,
|
|
483
|
+
super(e, n, i), this.$$p_d = t;
|
|
484
484
|
}
|
|
485
485
|
static get observedAttributes() {
|
|
486
486
|
return Object.keys(t).map(
|
|
@@ -498,7 +498,7 @@ function Tn(e, t, r, n, i, o) {
|
|
|
498
498
|
h = we(s, h, t), this.$$d[s] = h, (l = this.$$c) == null || l.$set({ [s]: h });
|
|
499
499
|
}
|
|
500
500
|
});
|
|
501
|
-
}),
|
|
501
|
+
}), r.forEach((s) => {
|
|
502
502
|
Object.defineProperty(a.prototype, s, {
|
|
503
503
|
get() {
|
|
504
504
|
var h;
|
|
@@ -508,7 +508,7 @@ function Tn(e, t, r, n, i, o) {
|
|
|
508
508
|
}), e.element = /** @type {any} */
|
|
509
509
|
a, a;
|
|
510
510
|
}
|
|
511
|
-
class
|
|
511
|
+
class Er {
|
|
512
512
|
constructor() {
|
|
513
513
|
/**
|
|
514
514
|
* ### PRIVATE API
|
|
@@ -529,7 +529,7 @@ class Hn {
|
|
|
529
529
|
}
|
|
530
530
|
/** @returns {void} */
|
|
531
531
|
$destroy() {
|
|
532
|
-
|
|
532
|
+
yr(this, 1), this.$destroy = C;
|
|
533
533
|
}
|
|
534
534
|
/**
|
|
535
535
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -537,13 +537,13 @@ class Hn {
|
|
|
537
537
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
538
538
|
* @returns {() => void}
|
|
539
539
|
*/
|
|
540
|
-
$on(t,
|
|
541
|
-
if (!
|
|
542
|
-
return
|
|
543
|
-
const
|
|
544
|
-
return
|
|
545
|
-
const i =
|
|
546
|
-
i !== -1 &&
|
|
540
|
+
$on(t, n) {
|
|
541
|
+
if (!st(n))
|
|
542
|
+
return C;
|
|
543
|
+
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
544
|
+
return r.push(n), () => {
|
|
545
|
+
const i = r.indexOf(n);
|
|
546
|
+
i !== -1 && r.splice(i, 1);
|
|
547
547
|
};
|
|
548
548
|
}
|
|
549
549
|
/**
|
|
@@ -551,11 +551,11 @@ class Hn {
|
|
|
551
551
|
* @returns {void}
|
|
552
552
|
*/
|
|
553
553
|
$set(t) {
|
|
554
|
-
this.$$set && !
|
|
554
|
+
this.$$set && !qn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
|
-
const
|
|
558
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
557
|
+
const wr = "4";
|
|
558
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(wr);
|
|
559
559
|
/*! *****************************************************************************
|
|
560
560
|
Copyright (c) Microsoft Corporation.
|
|
561
561
|
|
|
@@ -570,48 +570,67 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
570
570
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
571
571
|
PERFORMANCE OF THIS SOFTWARE.
|
|
572
572
|
***************************************************************************** */
|
|
573
|
-
var
|
|
574
|
-
return
|
|
575
|
-
|
|
576
|
-
} || function(
|
|
577
|
-
for (var i in
|
|
578
|
-
Object.prototype.hasOwnProperty.call(
|
|
579
|
-
},
|
|
573
|
+
var Je = function(e, t) {
|
|
574
|
+
return Je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
575
|
+
n.__proto__ = r;
|
|
576
|
+
} || function(n, r) {
|
|
577
|
+
for (var i in r)
|
|
578
|
+
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
579
|
+
}, Je(e, t);
|
|
580
580
|
};
|
|
581
|
-
function
|
|
581
|
+
function $(e, t) {
|
|
582
582
|
if (typeof t != "function" && t !== null)
|
|
583
583
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
584
|
-
|
|
585
|
-
function
|
|
584
|
+
Je(e, t);
|
|
585
|
+
function n() {
|
|
586
586
|
this.constructor = e;
|
|
587
587
|
}
|
|
588
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
588
|
+
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
589
|
+
}
|
|
590
|
+
var x = function() {
|
|
591
|
+
return x = Object.assign || function(t) {
|
|
592
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
593
|
+
n = arguments[r];
|
|
594
|
+
for (var o in n)
|
|
595
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
596
|
+
}
|
|
597
|
+
return t;
|
|
598
|
+
}, x.apply(this, arguments);
|
|
599
|
+
};
|
|
600
|
+
function Sr(e, t) {
|
|
601
|
+
var n = {};
|
|
602
|
+
for (var r in e)
|
|
603
|
+
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
604
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
605
|
+
for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
|
|
606
|
+
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
607
|
+
return n;
|
|
589
608
|
}
|
|
590
|
-
function
|
|
591
|
-
var t = typeof Symbol == "function" && Symbol.iterator,
|
|
592
|
-
if (
|
|
593
|
-
return
|
|
609
|
+
function Ze(e) {
|
|
610
|
+
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
|
|
611
|
+
if (n)
|
|
612
|
+
return n.call(e);
|
|
594
613
|
if (e && typeof e.length == "number")
|
|
595
614
|
return {
|
|
596
615
|
next: function() {
|
|
597
|
-
return e &&
|
|
616
|
+
return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
|
|
598
617
|
}
|
|
599
618
|
};
|
|
600
619
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
601
620
|
}
|
|
602
|
-
function
|
|
603
|
-
var
|
|
604
|
-
if (!
|
|
621
|
+
function Qe(e, t) {
|
|
622
|
+
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
623
|
+
if (!n)
|
|
605
624
|
return e;
|
|
606
|
-
var
|
|
625
|
+
var r = n.call(e), i, o = [], a;
|
|
607
626
|
try {
|
|
608
|
-
for (; (t === void 0 || t-- > 0) && !(i =
|
|
627
|
+
for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; )
|
|
609
628
|
o.push(i.value);
|
|
610
629
|
} catch (s) {
|
|
611
630
|
a = { error: s };
|
|
612
631
|
} finally {
|
|
613
632
|
try {
|
|
614
|
-
i && !i.done && (
|
|
633
|
+
i && !i.done && (n = r.return) && n.call(r);
|
|
615
634
|
} finally {
|
|
616
635
|
if (a)
|
|
617
636
|
throw a.error;
|
|
@@ -619,49 +638,49 @@ function Ke(e, t) {
|
|
|
619
638
|
}
|
|
620
639
|
return o;
|
|
621
640
|
}
|
|
622
|
-
function
|
|
623
|
-
if (arguments.length === 2)
|
|
624
|
-
for (var
|
|
625
|
-
(o || !(
|
|
641
|
+
function te(e, t, n) {
|
|
642
|
+
if (n || arguments.length === 2)
|
|
643
|
+
for (var r = 0, i = t.length, o; r < i; r++)
|
|
644
|
+
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
626
645
|
return e.concat(o || t);
|
|
627
646
|
}
|
|
628
647
|
function D(e) {
|
|
629
648
|
return typeof e == "function";
|
|
630
649
|
}
|
|
631
|
-
function
|
|
632
|
-
var t = function(
|
|
633
|
-
Error.call(
|
|
634
|
-
},
|
|
635
|
-
return
|
|
636
|
-
}
|
|
637
|
-
var
|
|
638
|
-
return function(
|
|
639
|
-
e(this), this.message =
|
|
640
|
-
` +
|
|
641
|
-
return i + 1 + ") " +
|
|
650
|
+
function tn(e) {
|
|
651
|
+
var t = function(r) {
|
|
652
|
+
Error.call(r), r.stack = new Error().stack;
|
|
653
|
+
}, n = e(t);
|
|
654
|
+
return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
|
|
655
|
+
}
|
|
656
|
+
var Fe = tn(function(e) {
|
|
657
|
+
return function(n) {
|
|
658
|
+
e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
|
|
659
|
+
` + n.map(function(r, i) {
|
|
660
|
+
return i + 1 + ") " + r.toString();
|
|
642
661
|
}).join(`
|
|
643
|
-
`) : "", this.name = "UnsubscriptionError", this.errors =
|
|
662
|
+
`) : "", this.name = "UnsubscriptionError", this.errors = n;
|
|
644
663
|
};
|
|
645
664
|
});
|
|
646
|
-
function
|
|
665
|
+
function Ye(e, t) {
|
|
647
666
|
if (e) {
|
|
648
|
-
var
|
|
649
|
-
0 <=
|
|
667
|
+
var n = e.indexOf(t);
|
|
668
|
+
0 <= n && e.splice(n, 1);
|
|
650
669
|
}
|
|
651
670
|
}
|
|
652
|
-
var
|
|
671
|
+
var Oe = function() {
|
|
653
672
|
function e(t) {
|
|
654
673
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
655
674
|
}
|
|
656
675
|
return e.prototype.unsubscribe = function() {
|
|
657
|
-
var t,
|
|
676
|
+
var t, n, r, i, o;
|
|
658
677
|
if (!this.closed) {
|
|
659
678
|
this.closed = !0;
|
|
660
679
|
var a = this._parentage;
|
|
661
680
|
if (a)
|
|
662
681
|
if (this._parentage = null, Array.isArray(a))
|
|
663
682
|
try {
|
|
664
|
-
for (var s =
|
|
683
|
+
for (var s = Ze(a), h = s.next(); !h.done; h = s.next()) {
|
|
665
684
|
var l = h.value;
|
|
666
685
|
l.remove(this);
|
|
667
686
|
}
|
|
@@ -669,7 +688,7 @@ var Ie = function() {
|
|
|
669
688
|
t = { error: p };
|
|
670
689
|
} finally {
|
|
671
690
|
try {
|
|
672
|
-
h && !h.done && (
|
|
691
|
+
h && !h.done && (n = s.return) && n.call(s);
|
|
673
692
|
} finally {
|
|
674
693
|
if (t)
|
|
675
694
|
throw t.error;
|
|
@@ -682,114 +701,118 @@ var Ie = function() {
|
|
|
682
701
|
try {
|
|
683
702
|
u();
|
|
684
703
|
} catch (p) {
|
|
685
|
-
o = p instanceof
|
|
704
|
+
o = p instanceof Fe ? p.errors : [p];
|
|
686
705
|
}
|
|
687
706
|
var f = this._finalizers;
|
|
688
707
|
if (f) {
|
|
689
708
|
this._finalizers = null;
|
|
690
709
|
try {
|
|
691
|
-
for (var c =
|
|
692
|
-
var
|
|
710
|
+
for (var c = Ze(f), d = c.next(); !d.done; d = c.next()) {
|
|
711
|
+
var m = d.value;
|
|
693
712
|
try {
|
|
694
|
-
|
|
713
|
+
Et(m);
|
|
695
714
|
} catch (p) {
|
|
696
|
-
o = o != null ? o : [], p instanceof
|
|
715
|
+
o = o != null ? o : [], p instanceof Fe ? o = te(te([], Qe(o)), Qe(p.errors)) : o.push(p);
|
|
697
716
|
}
|
|
698
717
|
}
|
|
699
718
|
} catch (p) {
|
|
700
|
-
|
|
719
|
+
r = { error: p };
|
|
701
720
|
} finally {
|
|
702
721
|
try {
|
|
703
|
-
|
|
722
|
+
d && !d.done && (i = c.return) && i.call(c);
|
|
704
723
|
} finally {
|
|
705
|
-
if (
|
|
706
|
-
throw
|
|
724
|
+
if (r)
|
|
725
|
+
throw r.error;
|
|
707
726
|
}
|
|
708
727
|
}
|
|
709
728
|
}
|
|
710
729
|
if (o)
|
|
711
|
-
throw new
|
|
730
|
+
throw new Fe(o);
|
|
712
731
|
}
|
|
713
732
|
}, e.prototype.add = function(t) {
|
|
714
|
-
var
|
|
733
|
+
var n;
|
|
715
734
|
if (t && t !== this)
|
|
716
735
|
if (this.closed)
|
|
717
|
-
|
|
736
|
+
Et(t);
|
|
718
737
|
else {
|
|
719
738
|
if (t instanceof e) {
|
|
720
739
|
if (t.closed || t._hasParent(this))
|
|
721
740
|
return;
|
|
722
741
|
t._addParent(this);
|
|
723
742
|
}
|
|
724
|
-
(this._finalizers = (
|
|
743
|
+
(this._finalizers = (n = this._finalizers) !== null && n !== void 0 ? n : []).push(t);
|
|
725
744
|
}
|
|
726
745
|
}, e.prototype._hasParent = function(t) {
|
|
727
|
-
var
|
|
728
|
-
return
|
|
746
|
+
var n = this._parentage;
|
|
747
|
+
return n === t || Array.isArray(n) && n.includes(t);
|
|
729
748
|
}, e.prototype._addParent = function(t) {
|
|
730
|
-
var
|
|
731
|
-
this._parentage = Array.isArray(
|
|
749
|
+
var n = this._parentage;
|
|
750
|
+
this._parentage = Array.isArray(n) ? (n.push(t), n) : n ? [n, t] : t;
|
|
732
751
|
}, e.prototype._removeParent = function(t) {
|
|
733
|
-
var
|
|
734
|
-
|
|
752
|
+
var n = this._parentage;
|
|
753
|
+
n === t ? this._parentage = null : Array.isArray(n) && Ye(n, t);
|
|
735
754
|
}, e.prototype.remove = function(t) {
|
|
736
|
-
var
|
|
737
|
-
|
|
755
|
+
var n = this._finalizers;
|
|
756
|
+
n && Ye(n, t), t instanceof e && t._removeParent(this);
|
|
738
757
|
}, e.EMPTY = function() {
|
|
739
758
|
var t = new e();
|
|
740
759
|
return t.closed = !0, t;
|
|
741
760
|
}(), e;
|
|
742
|
-
}(),
|
|
743
|
-
function
|
|
744
|
-
return e instanceof
|
|
761
|
+
}(), nn = Oe.EMPTY;
|
|
762
|
+
function rn(e) {
|
|
763
|
+
return e instanceof Oe || e && "closed" in e && D(e.remove) && D(e.add) && D(e.unsubscribe);
|
|
745
764
|
}
|
|
746
|
-
function
|
|
765
|
+
function Et(e) {
|
|
747
766
|
D(e) ? e() : e.unsubscribe();
|
|
748
767
|
}
|
|
749
|
-
var
|
|
750
|
-
|
|
751
|
-
|
|
768
|
+
var Tr = {
|
|
769
|
+
onUnhandledError: null,
|
|
770
|
+
onStoppedNotification: null,
|
|
771
|
+
Promise: void 0,
|
|
772
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
773
|
+
useDeprecatedNextContext: !1
|
|
774
|
+
}, Hr = {
|
|
752
775
|
setTimeout: function(e, t) {
|
|
753
|
-
for (var
|
|
754
|
-
r
|
|
755
|
-
return setTimeout.apply(void 0,
|
|
776
|
+
for (var n = [], r = 2; r < arguments.length; r++)
|
|
777
|
+
n[r - 2] = arguments[r];
|
|
778
|
+
return setTimeout.apply(void 0, te([e, t], Qe(n)));
|
|
756
779
|
},
|
|
757
780
|
clearTimeout: function(e) {
|
|
758
781
|
return clearTimeout(e);
|
|
759
782
|
},
|
|
760
783
|
delegate: void 0
|
|
761
784
|
};
|
|
762
|
-
function
|
|
763
|
-
|
|
785
|
+
function Br(e) {
|
|
786
|
+
Hr.setTimeout(function() {
|
|
764
787
|
throw e;
|
|
765
788
|
});
|
|
766
789
|
}
|
|
767
|
-
function
|
|
790
|
+
function wt() {
|
|
768
791
|
}
|
|
769
792
|
function Se(e) {
|
|
770
793
|
e();
|
|
771
794
|
}
|
|
772
|
-
var
|
|
773
|
-
|
|
774
|
-
function t(
|
|
775
|
-
var
|
|
776
|
-
return
|
|
795
|
+
var on = function(e) {
|
|
796
|
+
$(t, e);
|
|
797
|
+
function t(n) {
|
|
798
|
+
var r = e.call(this) || this;
|
|
799
|
+
return r.isStopped = !1, n ? (r.destination = n, rn(n) && n.add(r)) : r.destination = Rr, r;
|
|
777
800
|
}
|
|
778
|
-
return t.create = function(
|
|
779
|
-
return new
|
|
780
|
-
}, t.prototype.next = function(
|
|
781
|
-
this.isStopped || this._next(
|
|
782
|
-
}, t.prototype.error = function(
|
|
783
|
-
this.isStopped || (this.isStopped = !0, this._error(
|
|
801
|
+
return t.create = function(n, r, i) {
|
|
802
|
+
return new qe(n, r, i);
|
|
803
|
+
}, t.prototype.next = function(n) {
|
|
804
|
+
this.isStopped || this._next(n);
|
|
805
|
+
}, t.prototype.error = function(n) {
|
|
806
|
+
this.isStopped || (this.isStopped = !0, this._error(n));
|
|
784
807
|
}, t.prototype.complete = function() {
|
|
785
808
|
this.isStopped || (this.isStopped = !0, this._complete());
|
|
786
809
|
}, t.prototype.unsubscribe = function() {
|
|
787
810
|
this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
|
|
788
|
-
}, t.prototype._next = function(
|
|
789
|
-
this.destination.next(
|
|
790
|
-
}, t.prototype._error = function(
|
|
811
|
+
}, t.prototype._next = function(n) {
|
|
812
|
+
this.destination.next(n);
|
|
813
|
+
}, t.prototype._error = function(n) {
|
|
791
814
|
try {
|
|
792
|
-
this.destination.error(
|
|
815
|
+
this.destination.error(n);
|
|
793
816
|
} finally {
|
|
794
817
|
this.unsubscribe();
|
|
795
818
|
}
|
|
@@ -800,82 +823,82 @@ var ur = function(e) {
|
|
|
800
823
|
this.unsubscribe();
|
|
801
824
|
}
|
|
802
825
|
}, t;
|
|
803
|
-
}(
|
|
826
|
+
}(Oe), Ar = function() {
|
|
804
827
|
function e(t) {
|
|
805
828
|
this.partialObserver = t;
|
|
806
829
|
}
|
|
807
830
|
return e.prototype.next = function(t) {
|
|
808
|
-
var
|
|
809
|
-
if (
|
|
831
|
+
var n = this.partialObserver;
|
|
832
|
+
if (n.next)
|
|
810
833
|
try {
|
|
811
|
-
|
|
812
|
-
} catch (
|
|
813
|
-
|
|
834
|
+
n.next(t);
|
|
835
|
+
} catch (r) {
|
|
836
|
+
xe(r);
|
|
814
837
|
}
|
|
815
838
|
}, e.prototype.error = function(t) {
|
|
816
|
-
var
|
|
817
|
-
if (
|
|
839
|
+
var n = this.partialObserver;
|
|
840
|
+
if (n.error)
|
|
818
841
|
try {
|
|
819
|
-
|
|
820
|
-
} catch (
|
|
821
|
-
|
|
842
|
+
n.error(t);
|
|
843
|
+
} catch (r) {
|
|
844
|
+
xe(r);
|
|
822
845
|
}
|
|
823
846
|
else
|
|
824
|
-
|
|
847
|
+
xe(t);
|
|
825
848
|
}, e.prototype.complete = function() {
|
|
826
849
|
var t = this.partialObserver;
|
|
827
850
|
if (t.complete)
|
|
828
851
|
try {
|
|
829
852
|
t.complete();
|
|
830
|
-
} catch (
|
|
831
|
-
|
|
853
|
+
} catch (n) {
|
|
854
|
+
xe(n);
|
|
832
855
|
}
|
|
833
856
|
}, e;
|
|
834
|
-
}(),
|
|
835
|
-
|
|
836
|
-
function t(
|
|
857
|
+
}(), qe = function(e) {
|
|
858
|
+
$(t, e);
|
|
859
|
+
function t(n, r, i) {
|
|
837
860
|
var o = e.call(this) || this, a;
|
|
838
|
-
return D(
|
|
839
|
-
next:
|
|
840
|
-
error:
|
|
861
|
+
return D(n) || !n ? a = {
|
|
862
|
+
next: n != null ? n : void 0,
|
|
863
|
+
error: r != null ? r : void 0,
|
|
841
864
|
complete: i != null ? i : void 0
|
|
842
|
-
} : a =
|
|
865
|
+
} : a = n, o.destination = new Ar(a), o;
|
|
843
866
|
}
|
|
844
867
|
return t;
|
|
845
|
-
}(
|
|
846
|
-
function
|
|
847
|
-
|
|
868
|
+
}(on);
|
|
869
|
+
function xe(e) {
|
|
870
|
+
Br(e);
|
|
848
871
|
}
|
|
849
|
-
function
|
|
872
|
+
function Pr(e) {
|
|
850
873
|
throw e;
|
|
851
874
|
}
|
|
852
|
-
var
|
|
875
|
+
var Rr = {
|
|
853
876
|
closed: !0,
|
|
854
|
-
next:
|
|
855
|
-
error:
|
|
856
|
-
complete:
|
|
857
|
-
},
|
|
877
|
+
next: wt,
|
|
878
|
+
error: Pr,
|
|
879
|
+
complete: wt
|
|
880
|
+
}, Or = function() {
|
|
858
881
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
859
882
|
}();
|
|
860
|
-
function
|
|
883
|
+
function Ir(e) {
|
|
861
884
|
return e;
|
|
862
885
|
}
|
|
863
|
-
function
|
|
864
|
-
return e.length === 0 ?
|
|
865
|
-
return e.reduce(function(
|
|
866
|
-
return i(
|
|
867
|
-
},
|
|
886
|
+
function Nr(e) {
|
|
887
|
+
return e.length === 0 ? Ir : e.length === 1 ? e[0] : function(n) {
|
|
888
|
+
return e.reduce(function(r, i) {
|
|
889
|
+
return i(r);
|
|
890
|
+
}, n);
|
|
868
891
|
};
|
|
869
892
|
}
|
|
870
|
-
var
|
|
893
|
+
var St = function() {
|
|
871
894
|
function e(t) {
|
|
872
895
|
t && (this._subscribe = t);
|
|
873
896
|
}
|
|
874
897
|
return e.prototype.lift = function(t) {
|
|
875
|
-
var
|
|
876
|
-
return
|
|
877
|
-
}, e.prototype.subscribe = function(t,
|
|
878
|
-
var i = this, o =
|
|
898
|
+
var n = new e();
|
|
899
|
+
return n.source = this, n.operator = t, n;
|
|
900
|
+
}, e.prototype.subscribe = function(t, n, r) {
|
|
901
|
+
var i = this, o = Lr(t) ? t : new qe(t, n, r);
|
|
879
902
|
return Se(function() {
|
|
880
903
|
var a = i, s = a.operator, h = a.source;
|
|
881
904
|
o.add(s ? s.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -883,13 +906,13 @@ var At = function() {
|
|
|
883
906
|
}, e.prototype._trySubscribe = function(t) {
|
|
884
907
|
try {
|
|
885
908
|
return this._subscribe(t);
|
|
886
|
-
} catch (
|
|
887
|
-
t.error(
|
|
909
|
+
} catch (n) {
|
|
910
|
+
t.error(n);
|
|
888
911
|
}
|
|
889
|
-
}, e.prototype.forEach = function(t,
|
|
890
|
-
var
|
|
891
|
-
return
|
|
892
|
-
var a = new
|
|
912
|
+
}, e.prototype.forEach = function(t, n) {
|
|
913
|
+
var r = this;
|
|
914
|
+
return n = Tt(n), new n(function(i, o) {
|
|
915
|
+
var a = new qe({
|
|
893
916
|
next: function(s) {
|
|
894
917
|
try {
|
|
895
918
|
t(s);
|
|
@@ -900,69 +923,69 @@ var At = function() {
|
|
|
900
923
|
error: o,
|
|
901
924
|
complete: i
|
|
902
925
|
});
|
|
903
|
-
|
|
926
|
+
r.subscribe(a);
|
|
904
927
|
});
|
|
905
928
|
}, e.prototype._subscribe = function(t) {
|
|
906
|
-
var
|
|
907
|
-
return (
|
|
908
|
-
}, e.prototype[
|
|
929
|
+
var n;
|
|
930
|
+
return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t);
|
|
931
|
+
}, e.prototype[Or] = function() {
|
|
909
932
|
return this;
|
|
910
933
|
}, e.prototype.pipe = function() {
|
|
911
|
-
for (var t = [],
|
|
912
|
-
t[
|
|
913
|
-
return
|
|
934
|
+
for (var t = [], n = 0; n < arguments.length; n++)
|
|
935
|
+
t[n] = arguments[n];
|
|
936
|
+
return Nr(t)(this);
|
|
914
937
|
}, e.prototype.toPromise = function(t) {
|
|
915
|
-
var
|
|
916
|
-
return t =
|
|
938
|
+
var n = this;
|
|
939
|
+
return t = Tt(t), new t(function(r, i) {
|
|
917
940
|
var o;
|
|
918
|
-
|
|
941
|
+
n.subscribe(function(a) {
|
|
919
942
|
return o = a;
|
|
920
943
|
}, function(a) {
|
|
921
944
|
return i(a);
|
|
922
945
|
}, function() {
|
|
923
|
-
return
|
|
946
|
+
return r(o);
|
|
924
947
|
});
|
|
925
948
|
});
|
|
926
949
|
}, e.create = function(t) {
|
|
927
950
|
return new e(t);
|
|
928
951
|
}, e;
|
|
929
952
|
}();
|
|
930
|
-
function
|
|
953
|
+
function Tt(e) {
|
|
931
954
|
var t;
|
|
932
|
-
return (t = e != null ? e :
|
|
955
|
+
return (t = e != null ? e : Tr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
933
956
|
}
|
|
934
|
-
function
|
|
957
|
+
function Mr(e) {
|
|
935
958
|
return e && D(e.next) && D(e.error) && D(e.complete);
|
|
936
959
|
}
|
|
937
|
-
function
|
|
938
|
-
return e && e instanceof
|
|
960
|
+
function Lr(e) {
|
|
961
|
+
return e && e instanceof on || Mr(e) && rn(e);
|
|
939
962
|
}
|
|
940
|
-
var
|
|
963
|
+
var Cr = tn(function(e) {
|
|
941
964
|
return function() {
|
|
942
965
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
943
966
|
};
|
|
944
|
-
}),
|
|
945
|
-
|
|
967
|
+
}), an = function(e) {
|
|
968
|
+
$(t, e);
|
|
946
969
|
function t() {
|
|
947
|
-
var
|
|
948
|
-
return
|
|
970
|
+
var n = e.call(this) || this;
|
|
971
|
+
return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
|
|
949
972
|
}
|
|
950
|
-
return t.prototype.lift = function(
|
|
951
|
-
var
|
|
952
|
-
return
|
|
973
|
+
return t.prototype.lift = function(n) {
|
|
974
|
+
var r = new Ht(this, this);
|
|
975
|
+
return r.operator = n, r;
|
|
953
976
|
}, t.prototype._throwIfClosed = function() {
|
|
954
977
|
if (this.closed)
|
|
955
|
-
throw new
|
|
956
|
-
}, t.prototype.next = function(
|
|
957
|
-
var
|
|
978
|
+
throw new Cr();
|
|
979
|
+
}, t.prototype.next = function(n) {
|
|
980
|
+
var r = this;
|
|
958
981
|
Se(function() {
|
|
959
982
|
var i, o;
|
|
960
|
-
if (
|
|
961
|
-
|
|
983
|
+
if (r._throwIfClosed(), !r.isStopped) {
|
|
984
|
+
r.currentObservers || (r.currentObservers = Array.from(r.observers));
|
|
962
985
|
try {
|
|
963
|
-
for (var a =
|
|
986
|
+
for (var a = Ze(r.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
964
987
|
var h = s.value;
|
|
965
|
-
h.next(
|
|
988
|
+
h.next(n);
|
|
966
989
|
}
|
|
967
990
|
} catch (l) {
|
|
968
991
|
i = { error: l };
|
|
@@ -976,118 +999,118 @@ var $n = or(function(e) {
|
|
|
976
999
|
}
|
|
977
1000
|
}
|
|
978
1001
|
});
|
|
979
|
-
}, t.prototype.error = function(
|
|
980
|
-
var
|
|
1002
|
+
}, t.prototype.error = function(n) {
|
|
1003
|
+
var r = this;
|
|
981
1004
|
Se(function() {
|
|
982
|
-
if (
|
|
983
|
-
|
|
984
|
-
for (var i =
|
|
985
|
-
i.shift().error(
|
|
1005
|
+
if (r._throwIfClosed(), !r.isStopped) {
|
|
1006
|
+
r.hasError = r.isStopped = !0, r.thrownError = n;
|
|
1007
|
+
for (var i = r.observers; i.length; )
|
|
1008
|
+
i.shift().error(n);
|
|
986
1009
|
}
|
|
987
1010
|
});
|
|
988
1011
|
}, t.prototype.complete = function() {
|
|
989
|
-
var
|
|
1012
|
+
var n = this;
|
|
990
1013
|
Se(function() {
|
|
991
|
-
if (
|
|
992
|
-
|
|
993
|
-
for (var
|
|
994
|
-
|
|
1014
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
1015
|
+
n.isStopped = !0;
|
|
1016
|
+
for (var r = n.observers; r.length; )
|
|
1017
|
+
r.shift().complete();
|
|
995
1018
|
}
|
|
996
1019
|
});
|
|
997
1020
|
}, t.prototype.unsubscribe = function() {
|
|
998
1021
|
this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
|
|
999
1022
|
}, Object.defineProperty(t.prototype, "observed", {
|
|
1000
1023
|
get: function() {
|
|
1001
|
-
var
|
|
1002
|
-
return ((
|
|
1024
|
+
var n;
|
|
1025
|
+
return ((n = this.observers) === null || n === void 0 ? void 0 : n.length) > 0;
|
|
1003
1026
|
},
|
|
1004
1027
|
enumerable: !1,
|
|
1005
1028
|
configurable: !0
|
|
1006
|
-
}), t.prototype._trySubscribe = function(
|
|
1007
|
-
return this._throwIfClosed(), e.prototype._trySubscribe.call(this,
|
|
1008
|
-
}, t.prototype._subscribe = function(
|
|
1009
|
-
return this._throwIfClosed(), this._checkFinalizedStatuses(
|
|
1010
|
-
}, t.prototype._innerSubscribe = function(
|
|
1011
|
-
var
|
|
1012
|
-
return o || a ?
|
|
1013
|
-
|
|
1029
|
+
}), t.prototype._trySubscribe = function(n) {
|
|
1030
|
+
return this._throwIfClosed(), e.prototype._trySubscribe.call(this, n);
|
|
1031
|
+
}, t.prototype._subscribe = function(n) {
|
|
1032
|
+
return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
|
|
1033
|
+
}, t.prototype._innerSubscribe = function(n) {
|
|
1034
|
+
var r = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
1035
|
+
return o || a ? nn : (this.currentObservers = null, s.push(n), new Oe(function() {
|
|
1036
|
+
r.currentObservers = null, Ye(s, n);
|
|
1014
1037
|
}));
|
|
1015
|
-
}, t.prototype._checkFinalizedStatuses = function(
|
|
1016
|
-
var
|
|
1017
|
-
i ?
|
|
1038
|
+
}, t.prototype._checkFinalizedStatuses = function(n) {
|
|
1039
|
+
var r = this, i = r.hasError, o = r.thrownError, a = r.isStopped;
|
|
1040
|
+
i ? n.error(o) : a && n.complete();
|
|
1018
1041
|
}, t.prototype.asObservable = function() {
|
|
1019
|
-
var
|
|
1020
|
-
return
|
|
1021
|
-
}, t.create = function(
|
|
1022
|
-
return new
|
|
1042
|
+
var n = new St();
|
|
1043
|
+
return n.source = this, n;
|
|
1044
|
+
}, t.create = function(n, r) {
|
|
1045
|
+
return new Ht(n, r);
|
|
1023
1046
|
}, t;
|
|
1024
|
-
}(
|
|
1025
|
-
|
|
1026
|
-
function t(
|
|
1047
|
+
}(St), Ht = function(e) {
|
|
1048
|
+
$(t, e);
|
|
1049
|
+
function t(n, r) {
|
|
1027
1050
|
var i = e.call(this) || this;
|
|
1028
|
-
return i.destination =
|
|
1051
|
+
return i.destination = n, i.source = r, i;
|
|
1029
1052
|
}
|
|
1030
|
-
return t.prototype.next = function(
|
|
1031
|
-
var
|
|
1032
|
-
(i = (
|
|
1033
|
-
}, t.prototype.error = function(
|
|
1034
|
-
var
|
|
1035
|
-
(i = (
|
|
1053
|
+
return t.prototype.next = function(n) {
|
|
1054
|
+
var r, i;
|
|
1055
|
+
(i = (r = this.destination) === null || r === void 0 ? void 0 : r.next) === null || i === void 0 || i.call(r, n);
|
|
1056
|
+
}, t.prototype.error = function(n) {
|
|
1057
|
+
var r, i;
|
|
1058
|
+
(i = (r = this.destination) === null || r === void 0 ? void 0 : r.error) === null || i === void 0 || i.call(r, n);
|
|
1036
1059
|
}, t.prototype.complete = function() {
|
|
1037
|
-
var
|
|
1038
|
-
(
|
|
1039
|
-
}, t.prototype._subscribe = function(
|
|
1040
|
-
var
|
|
1041
|
-
return (i = (
|
|
1060
|
+
var n, r;
|
|
1061
|
+
(r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
|
|
1062
|
+
}, t.prototype._subscribe = function(n) {
|
|
1063
|
+
var r, i;
|
|
1064
|
+
return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : nn;
|
|
1042
1065
|
}, t;
|
|
1043
|
-
}(
|
|
1066
|
+
}(an), sn = {
|
|
1044
1067
|
now: function() {
|
|
1045
|
-
return (
|
|
1068
|
+
return (sn.delegate || Date).now();
|
|
1046
1069
|
},
|
|
1047
1070
|
delegate: void 0
|
|
1048
|
-
},
|
|
1049
|
-
|
|
1050
|
-
function t(
|
|
1051
|
-
|
|
1071
|
+
}, Gr = function(e) {
|
|
1072
|
+
$(t, e);
|
|
1073
|
+
function t(n, r, i) {
|
|
1074
|
+
n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = sn);
|
|
1052
1075
|
var o = e.call(this) || this;
|
|
1053
|
-
return o._bufferSize =
|
|
1076
|
+
return o._bufferSize = n, o._windowTime = r, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = r === 1 / 0, o._bufferSize = Math.max(1, n), o._windowTime = Math.max(1, r), o;
|
|
1054
1077
|
}
|
|
1055
|
-
return t.prototype.next = function(
|
|
1056
|
-
var
|
|
1057
|
-
i || (o.push(
|
|
1058
|
-
}, t.prototype._subscribe = function(
|
|
1078
|
+
return t.prototype.next = function(n) {
|
|
1079
|
+
var r = this, i = r.isStopped, o = r._buffer, a = r._infiniteTimeWindow, s = r._timestampProvider, h = r._windowTime;
|
|
1080
|
+
i || (o.push(n), !a && o.push(s.now() + h)), this._trimBuffer(), e.prototype.next.call(this, n);
|
|
1081
|
+
}, t.prototype._subscribe = function(n) {
|
|
1059
1082
|
this._throwIfClosed(), this._trimBuffer();
|
|
1060
|
-
for (var
|
|
1061
|
-
|
|
1062
|
-
return this._checkFinalizedStatuses(
|
|
1083
|
+
for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), h = 0; h < s.length && !n.closed; h += o ? 1 : 2)
|
|
1084
|
+
n.next(s[h]);
|
|
1085
|
+
return this._checkFinalizedStatuses(n), r;
|
|
1063
1086
|
}, t.prototype._trimBuffer = function() {
|
|
1064
|
-
var
|
|
1065
|
-
if (
|
|
1087
|
+
var n = this, r = n._bufferSize, i = n._timestampProvider, o = n._buffer, a = n._infiniteTimeWindow, s = (a ? 1 : 2) * r;
|
|
1088
|
+
if (r < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
1066
1089
|
for (var h = i.now(), l = 0, u = 1; u < o.length && o[u] <= h; u += 2)
|
|
1067
1090
|
l = u;
|
|
1068
1091
|
l && o.splice(0, l + 1);
|
|
1069
1092
|
}
|
|
1070
1093
|
}, t;
|
|
1071
|
-
}(
|
|
1072
|
-
const
|
|
1073
|
-
if (
|
|
1074
|
-
const
|
|
1075
|
-
|
|
1094
|
+
}(an);
|
|
1095
|
+
const Bt = [], At = {}, Ur = (e, t = 0) => {
|
|
1096
|
+
if (Bt.indexOf(e) == -1) {
|
|
1097
|
+
const n = new Gr(t);
|
|
1098
|
+
At[e] = n, Bt.push(e);
|
|
1076
1099
|
}
|
|
1077
|
-
return
|
|
1100
|
+
return At[e];
|
|
1078
1101
|
}, q = [];
|
|
1079
|
-
function
|
|
1102
|
+
function Fr(e, t) {
|
|
1080
1103
|
return {
|
|
1081
|
-
subscribe:
|
|
1104
|
+
subscribe: Ie(e, t).subscribe
|
|
1082
1105
|
};
|
|
1083
1106
|
}
|
|
1084
|
-
function
|
|
1085
|
-
let
|
|
1086
|
-
const
|
|
1107
|
+
function Ie(e, t = C) {
|
|
1108
|
+
let n;
|
|
1109
|
+
const r = /* @__PURE__ */ new Set();
|
|
1087
1110
|
function i(s) {
|
|
1088
|
-
if (
|
|
1111
|
+
if (Zt(e, s) && (e = s, n)) {
|
|
1089
1112
|
const h = !q.length;
|
|
1090
|
-
for (const l of
|
|
1113
|
+
for (const l of r)
|
|
1091
1114
|
l[1](), q.push(l, e);
|
|
1092
1115
|
if (h) {
|
|
1093
1116
|
for (let l = 0; l < q.length; l += 2)
|
|
@@ -1099,32 +1122,32 @@ function Ne(e, t = G) {
|
|
|
1099
1122
|
function o(s) {
|
|
1100
1123
|
i(s(e));
|
|
1101
1124
|
}
|
|
1102
|
-
function a(s, h =
|
|
1125
|
+
function a(s, h = C) {
|
|
1103
1126
|
const l = [s, h];
|
|
1104
|
-
return
|
|
1105
|
-
|
|
1127
|
+
return r.add(l), r.size === 1 && (n = t(i, o) || C), s(e), () => {
|
|
1128
|
+
r.delete(l), r.size === 0 && n && (n(), n = null);
|
|
1106
1129
|
};
|
|
1107
1130
|
}
|
|
1108
1131
|
return { set: i, update: o, subscribe: a };
|
|
1109
1132
|
}
|
|
1110
|
-
function
|
|
1111
|
-
const
|
|
1133
|
+
function ae(e, t, n) {
|
|
1134
|
+
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
1112
1135
|
if (!i.every(Boolean))
|
|
1113
1136
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1114
1137
|
const o = t.length < 2;
|
|
1115
|
-
return
|
|
1138
|
+
return Fr(n, (a, s) => {
|
|
1116
1139
|
let h = !1;
|
|
1117
1140
|
const l = [];
|
|
1118
|
-
let u = 0, f =
|
|
1141
|
+
let u = 0, f = C;
|
|
1119
1142
|
const c = () => {
|
|
1120
1143
|
if (u)
|
|
1121
1144
|
return;
|
|
1122
1145
|
f();
|
|
1123
|
-
const
|
|
1124
|
-
o ? a(
|
|
1125
|
-
},
|
|
1126
|
-
(
|
|
1127
|
-
|
|
1146
|
+
const m = t(r ? l[0] : l, a, s);
|
|
1147
|
+
o ? a(m) : f = st(m) ? m : C;
|
|
1148
|
+
}, d = i.map(
|
|
1149
|
+
(m, p) => Qt(
|
|
1150
|
+
m,
|
|
1128
1151
|
(A) => {
|
|
1129
1152
|
l[p] = A, u &= ~(1 << p), h && c();
|
|
1130
1153
|
},
|
|
@@ -1134,157 +1157,118 @@ function oe(e, t, r) {
|
|
|
1134
1157
|
)
|
|
1135
1158
|
);
|
|
1136
1159
|
return h = !0, c(), function() {
|
|
1137
|
-
J(
|
|
1160
|
+
J(d), f(), h = !1;
|
|
1138
1161
|
};
|
|
1139
1162
|
});
|
|
1140
1163
|
}
|
|
1141
|
-
function
|
|
1142
|
-
return e
|
|
1164
|
+
function Dr(e) {
|
|
1165
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1143
1166
|
}
|
|
1144
|
-
var
|
|
1145
|
-
return
|
|
1167
|
+
var $r = function(t) {
|
|
1168
|
+
return jr(t) && !kr(t);
|
|
1146
1169
|
};
|
|
1147
|
-
function
|
|
1170
|
+
function jr(e) {
|
|
1148
1171
|
return !!e && typeof e == "object";
|
|
1149
1172
|
}
|
|
1150
|
-
function
|
|
1173
|
+
function kr(e) {
|
|
1151
1174
|
var t = Object.prototype.toString.call(e);
|
|
1152
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1175
|
+
return t === "[object RegExp]" || t === "[object Date]" || Xr(e);
|
|
1153
1176
|
}
|
|
1154
|
-
var
|
|
1155
|
-
function
|
|
1156
|
-
return e.$$typeof ===
|
|
1177
|
+
var Vr = typeof Symbol == "function" && Symbol.for, Wr = Vr ? Symbol.for("react.element") : 60103;
|
|
1178
|
+
function Xr(e) {
|
|
1179
|
+
return e.$$typeof === Wr;
|
|
1157
1180
|
}
|
|
1158
|
-
function
|
|
1181
|
+
function zr(e) {
|
|
1159
1182
|
return Array.isArray(e) ? [] : {};
|
|
1160
1183
|
}
|
|
1161
1184
|
function me(e, t) {
|
|
1162
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1185
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ne(zr(e), e, t) : e;
|
|
1163
1186
|
}
|
|
1164
|
-
function
|
|
1165
|
-
return e.concat(t).map(function(
|
|
1166
|
-
return me(
|
|
1187
|
+
function Jr(e, t, n) {
|
|
1188
|
+
return e.concat(t).map(function(r) {
|
|
1189
|
+
return me(r, n);
|
|
1167
1190
|
});
|
|
1168
1191
|
}
|
|
1169
|
-
function
|
|
1192
|
+
function Zr(e, t) {
|
|
1170
1193
|
if (!t.customMerge)
|
|
1171
|
-
return
|
|
1172
|
-
var
|
|
1173
|
-
return typeof
|
|
1194
|
+
return ne;
|
|
1195
|
+
var n = t.customMerge(e);
|
|
1196
|
+
return typeof n == "function" ? n : ne;
|
|
1174
1197
|
}
|
|
1175
|
-
function
|
|
1198
|
+
function Qr(e) {
|
|
1176
1199
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1177
1200
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1178
1201
|
}) : [];
|
|
1179
1202
|
}
|
|
1180
|
-
function
|
|
1181
|
-
return Object.keys(e).concat(
|
|
1203
|
+
function Pt(e) {
|
|
1204
|
+
return Object.keys(e).concat(Qr(e));
|
|
1182
1205
|
}
|
|
1183
|
-
function
|
|
1206
|
+
function un(e, t) {
|
|
1184
1207
|
try {
|
|
1185
1208
|
return t in e;
|
|
1186
|
-
} catch (
|
|
1209
|
+
} catch (n) {
|
|
1187
1210
|
return !1;
|
|
1188
1211
|
}
|
|
1189
1212
|
}
|
|
1190
|
-
function
|
|
1191
|
-
return
|
|
1213
|
+
function Yr(e, t) {
|
|
1214
|
+
return un(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1192
1215
|
}
|
|
1193
|
-
function
|
|
1194
|
-
var
|
|
1195
|
-
return
|
|
1196
|
-
|
|
1197
|
-
}),
|
|
1198
|
-
|
|
1199
|
-
}),
|
|
1200
|
-
}
|
|
1201
|
-
function
|
|
1202
|
-
|
|
1203
|
-
var
|
|
1204
|
-
return o ?
|
|
1205
|
-
}
|
|
1206
|
-
|
|
1216
|
+
function qr(e, t, n) {
|
|
1217
|
+
var r = {};
|
|
1218
|
+
return n.isMergeableObject(e) && Pt(e).forEach(function(i) {
|
|
1219
|
+
r[i] = me(e[i], n);
|
|
1220
|
+
}), Pt(t).forEach(function(i) {
|
|
1221
|
+
Yr(e, i) || (un(e, i) && n.isMergeableObject(t[i]) ? r[i] = Zr(i, n)(e[i], t[i], n) : r[i] = me(t[i], n));
|
|
1222
|
+
}), r;
|
|
1223
|
+
}
|
|
1224
|
+
function ne(e, t, n) {
|
|
1225
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Jr, n.isMergeableObject = n.isMergeableObject || $r, n.cloneUnlessOtherwiseSpecified = me;
|
|
1226
|
+
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
1227
|
+
return o ? r ? n.arrayMerge(e, t, n) : qr(e, t, n) : me(t, n);
|
|
1228
|
+
}
|
|
1229
|
+
ne.all = function(t, n) {
|
|
1207
1230
|
if (!Array.isArray(t))
|
|
1208
1231
|
throw new Error("first argument should be an array");
|
|
1209
|
-
return t.reduce(function(
|
|
1210
|
-
return
|
|
1232
|
+
return t.reduce(function(r, i) {
|
|
1233
|
+
return ne(r, i, n);
|
|
1211
1234
|
}, {});
|
|
1212
1235
|
};
|
|
1213
|
-
var
|
|
1214
|
-
const
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
r.__proto__ = n;
|
|
1218
|
-
} || function(r, n) {
|
|
1219
|
-
for (var i in n)
|
|
1220
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1221
|
-
}, nt(e, t);
|
|
1222
|
-
};
|
|
1223
|
-
function Le(e, t) {
|
|
1224
|
-
if (typeof t != "function" && t !== null)
|
|
1225
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1226
|
-
nt(e, t);
|
|
1227
|
-
function r() {
|
|
1228
|
-
this.constructor = e;
|
|
1229
|
-
}
|
|
1230
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1231
|
-
}
|
|
1232
|
-
var C = function() {
|
|
1233
|
-
return C = Object.assign || function(t) {
|
|
1234
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1235
|
-
r = arguments[n];
|
|
1236
|
-
for (var o in r)
|
|
1237
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1238
|
-
}
|
|
1239
|
-
return t;
|
|
1240
|
-
}, C.apply(this, arguments);
|
|
1241
|
-
};
|
|
1242
|
-
function oi(e, t) {
|
|
1243
|
-
var r = {};
|
|
1244
|
-
for (var n in e)
|
|
1245
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1246
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1247
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1248
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1249
|
-
return r;
|
|
1250
|
-
}
|
|
1251
|
-
function je(e, t, r) {
|
|
1252
|
-
if (r || arguments.length === 2)
|
|
1253
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1254
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1255
|
-
return e.concat(o || Array.prototype.slice.call(t));
|
|
1256
|
-
}
|
|
1257
|
-
function ke(e, t) {
|
|
1258
|
-
var r = t && t.cache ? t.cache : fi, n = t && t.serializer ? t.serializer : hi, i = t && t.strategy ? t.strategy : ui;
|
|
1236
|
+
var Kr = ne, ei = Kr;
|
|
1237
|
+
const ti = /* @__PURE__ */ Dr(ei);
|
|
1238
|
+
function De(e, t) {
|
|
1239
|
+
var n = t && t.cache ? t.cache : ui, r = t && t.serializer ? t.serializer : ai, i = t && t.strategy ? t.strategy : ri;
|
|
1259
1240
|
return i(e, {
|
|
1260
|
-
cache:
|
|
1261
|
-
serializer:
|
|
1241
|
+
cache: n,
|
|
1242
|
+
serializer: r
|
|
1262
1243
|
});
|
|
1263
1244
|
}
|
|
1264
|
-
function
|
|
1245
|
+
function ni(e) {
|
|
1265
1246
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1266
1247
|
}
|
|
1267
|
-
function
|
|
1268
|
-
var i =
|
|
1269
|
-
return typeof o == "undefined" && (o = e.call(this,
|
|
1248
|
+
function ln(e, t, n, r) {
|
|
1249
|
+
var i = ni(r) ? r : n(r), o = t.get(i);
|
|
1250
|
+
return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
|
|
1251
|
+
}
|
|
1252
|
+
function hn(e, t, n) {
|
|
1253
|
+
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
1254
|
+
return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
1270
1255
|
}
|
|
1271
|
-
function
|
|
1272
|
-
|
|
1273
|
-
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1256
|
+
function ut(e, t, n, r, i) {
|
|
1257
|
+
return n.bind(t, e, r, i);
|
|
1274
1258
|
}
|
|
1275
|
-
function
|
|
1276
|
-
|
|
1259
|
+
function ri(e, t) {
|
|
1260
|
+
var n = e.length === 1 ? ln : hn;
|
|
1261
|
+
return ut(e, this, n, t.cache.create(), t.serializer);
|
|
1277
1262
|
}
|
|
1278
|
-
function
|
|
1279
|
-
|
|
1280
|
-
return mr(e, this, r, t.cache.create(), t.serializer);
|
|
1263
|
+
function ii(e, t) {
|
|
1264
|
+
return ut(e, this, hn, t.cache.create(), t.serializer);
|
|
1281
1265
|
}
|
|
1282
|
-
function
|
|
1283
|
-
return
|
|
1266
|
+
function oi(e, t) {
|
|
1267
|
+
return ut(e, this, ln, t.cache.create(), t.serializer);
|
|
1284
1268
|
}
|
|
1285
|
-
var
|
|
1269
|
+
var ai = function() {
|
|
1286
1270
|
return JSON.stringify(arguments);
|
|
1287
|
-
},
|
|
1271
|
+
}, si = (
|
|
1288
1272
|
/** @class */
|
|
1289
1273
|
function() {
|
|
1290
1274
|
function e() {
|
|
@@ -1292,82 +1276,73 @@ var hi = function() {
|
|
|
1292
1276
|
}
|
|
1293
1277
|
return e.prototype.get = function(t) {
|
|
1294
1278
|
return this.cache[t];
|
|
1295
|
-
}, e.prototype.set = function(t,
|
|
1296
|
-
this.cache[t] =
|
|
1279
|
+
}, e.prototype.set = function(t, n) {
|
|
1280
|
+
this.cache[t] = n;
|
|
1297
1281
|
}, e;
|
|
1298
1282
|
}()
|
|
1299
|
-
),
|
|
1283
|
+
), ui = {
|
|
1300
1284
|
create: function() {
|
|
1301
|
-
return new
|
|
1285
|
+
return new si();
|
|
1302
1286
|
}
|
|
1303
|
-
},
|
|
1304
|
-
variadic:
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1308
|
-
r = arguments[n];
|
|
1309
|
-
for (var o in r)
|
|
1310
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1311
|
-
}
|
|
1312
|
-
return t;
|
|
1313
|
-
}, Pe.apply(this, arguments);
|
|
1314
|
-
};
|
|
1315
|
-
var y;
|
|
1287
|
+
}, $e = {
|
|
1288
|
+
variadic: ii,
|
|
1289
|
+
monadic: oi
|
|
1290
|
+
}, y;
|
|
1316
1291
|
(function(e) {
|
|
1317
1292
|
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";
|
|
1318
1293
|
})(y || (y = {}));
|
|
1319
|
-
var
|
|
1294
|
+
var w;
|
|
1320
1295
|
(function(e) {
|
|
1321
1296
|
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";
|
|
1322
|
-
})(
|
|
1297
|
+
})(w || (w = {}));
|
|
1323
1298
|
var re;
|
|
1324
1299
|
(function(e) {
|
|
1325
1300
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1326
1301
|
})(re || (re = {}));
|
|
1327
|
-
function
|
|
1328
|
-
return e.type ===
|
|
1302
|
+
function Rt(e) {
|
|
1303
|
+
return e.type === w.literal;
|
|
1329
1304
|
}
|
|
1330
|
-
function
|
|
1331
|
-
return e.type ===
|
|
1305
|
+
function li(e) {
|
|
1306
|
+
return e.type === w.argument;
|
|
1332
1307
|
}
|
|
1333
|
-
function
|
|
1334
|
-
return e.type ===
|
|
1308
|
+
function cn(e) {
|
|
1309
|
+
return e.type === w.number;
|
|
1335
1310
|
}
|
|
1336
|
-
function
|
|
1337
|
-
return e.type ===
|
|
1311
|
+
function fn(e) {
|
|
1312
|
+
return e.type === w.date;
|
|
1338
1313
|
}
|
|
1339
|
-
function
|
|
1340
|
-
return e.type ===
|
|
1314
|
+
function dn(e) {
|
|
1315
|
+
return e.type === w.time;
|
|
1341
1316
|
}
|
|
1342
|
-
function
|
|
1343
|
-
return e.type ===
|
|
1317
|
+
function mn(e) {
|
|
1318
|
+
return e.type === w.select;
|
|
1344
1319
|
}
|
|
1345
|
-
function
|
|
1346
|
-
return e.type ===
|
|
1320
|
+
function pn(e) {
|
|
1321
|
+
return e.type === w.plural;
|
|
1347
1322
|
}
|
|
1348
|
-
function
|
|
1349
|
-
return e.type ===
|
|
1323
|
+
function hi(e) {
|
|
1324
|
+
return e.type === w.pound;
|
|
1350
1325
|
}
|
|
1351
|
-
function
|
|
1352
|
-
return e.type ===
|
|
1326
|
+
function bn(e) {
|
|
1327
|
+
return e.type === w.tag;
|
|
1353
1328
|
}
|
|
1354
|
-
function
|
|
1329
|
+
function gn(e) {
|
|
1355
1330
|
return !!(e && typeof e == "object" && e.type === re.number);
|
|
1356
1331
|
}
|
|
1357
|
-
function
|
|
1332
|
+
function Ke(e) {
|
|
1358
1333
|
return !!(e && typeof e == "object" && e.type === re.dateTime);
|
|
1359
1334
|
}
|
|
1360
|
-
var
|
|
1361
|
-
function
|
|
1335
|
+
var yn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ci = /(?:[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;
|
|
1336
|
+
function fi(e) {
|
|
1362
1337
|
var t = {};
|
|
1363
|
-
return e.replace(
|
|
1364
|
-
var
|
|
1365
|
-
switch (
|
|
1338
|
+
return e.replace(ci, function(n) {
|
|
1339
|
+
var r = n.length;
|
|
1340
|
+
switch (n[0]) {
|
|
1366
1341
|
case "G":
|
|
1367
|
-
t.era =
|
|
1342
|
+
t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
1368
1343
|
break;
|
|
1369
1344
|
case "y":
|
|
1370
|
-
t.year =
|
|
1345
|
+
t.year = r === 2 ? "2-digit" : "numeric";
|
|
1371
1346
|
break;
|
|
1372
1347
|
case "Y":
|
|
1373
1348
|
case "u":
|
|
@@ -1379,30 +1354,30 @@ function bi(e) {
|
|
|
1379
1354
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
1380
1355
|
case "M":
|
|
1381
1356
|
case "L":
|
|
1382
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
1357
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
|
|
1383
1358
|
break;
|
|
1384
1359
|
case "w":
|
|
1385
1360
|
case "W":
|
|
1386
1361
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
1387
1362
|
case "d":
|
|
1388
|
-
t.day = ["numeric", "2-digit"][
|
|
1363
|
+
t.day = ["numeric", "2-digit"][r - 1];
|
|
1389
1364
|
break;
|
|
1390
1365
|
case "D":
|
|
1391
1366
|
case "F":
|
|
1392
1367
|
case "g":
|
|
1393
1368
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
1394
1369
|
case "E":
|
|
1395
|
-
t.weekday =
|
|
1370
|
+
t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
1396
1371
|
break;
|
|
1397
1372
|
case "e":
|
|
1398
|
-
if (
|
|
1373
|
+
if (r < 4)
|
|
1399
1374
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
1400
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1375
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
1401
1376
|
break;
|
|
1402
1377
|
case "c":
|
|
1403
|
-
if (
|
|
1378
|
+
if (r < 4)
|
|
1404
1379
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
1405
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1380
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
1406
1381
|
break;
|
|
1407
1382
|
case "a":
|
|
1408
1383
|
t.hour12 = !0;
|
|
@@ -1411,32 +1386,32 @@ function bi(e) {
|
|
|
1411
1386
|
case "B":
|
|
1412
1387
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
1413
1388
|
case "h":
|
|
1414
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
1389
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1415
1390
|
break;
|
|
1416
1391
|
case "H":
|
|
1417
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
1392
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1418
1393
|
break;
|
|
1419
1394
|
case "K":
|
|
1420
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
1395
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1421
1396
|
break;
|
|
1422
1397
|
case "k":
|
|
1423
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
1398
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1424
1399
|
break;
|
|
1425
1400
|
case "j":
|
|
1426
1401
|
case "J":
|
|
1427
1402
|
case "C":
|
|
1428
1403
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
1429
1404
|
case "m":
|
|
1430
|
-
t.minute = ["numeric", "2-digit"][
|
|
1405
|
+
t.minute = ["numeric", "2-digit"][r - 1];
|
|
1431
1406
|
break;
|
|
1432
1407
|
case "s":
|
|
1433
|
-
t.second = ["numeric", "2-digit"][
|
|
1408
|
+
t.second = ["numeric", "2-digit"][r - 1];
|
|
1434
1409
|
break;
|
|
1435
1410
|
case "S":
|
|
1436
1411
|
case "A":
|
|
1437
1412
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
1438
1413
|
case "z":
|
|
1439
|
-
t.timeZoneName =
|
|
1414
|
+
t.timeZoneName = r < 4 ? "short" : "long";
|
|
1440
1415
|
break;
|
|
1441
1416
|
case "Z":
|
|
1442
1417
|
case "O":
|
|
@@ -1449,24 +1424,14 @@ function bi(e) {
|
|
|
1449
1424
|
return "";
|
|
1450
1425
|
}), t;
|
|
1451
1426
|
}
|
|
1452
|
-
var
|
|
1453
|
-
|
|
1454
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1455
|
-
r = arguments[n];
|
|
1456
|
-
for (var o in r)
|
|
1457
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1458
|
-
}
|
|
1459
|
-
return t;
|
|
1460
|
-
}, S.apply(this, arguments);
|
|
1461
|
-
};
|
|
1462
|
-
var gi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1463
|
-
function yi(e) {
|
|
1427
|
+
var di = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1428
|
+
function mi(e) {
|
|
1464
1429
|
if (e.length === 0)
|
|
1465
1430
|
throw new Error("Number skeleton cannot be empty");
|
|
1466
|
-
for (var t = e.split(
|
|
1431
|
+
for (var t = e.split(di).filter(function(c) {
|
|
1467
1432
|
return c.length > 0;
|
|
1468
|
-
}),
|
|
1469
|
-
var o = i[
|
|
1433
|
+
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
1434
|
+
var o = i[r], a = o.split("/");
|
|
1470
1435
|
if (a.length === 0)
|
|
1471
1436
|
throw new Error("Invalid number skeleton");
|
|
1472
1437
|
for (var s = a[0], h = a.slice(1), l = 0, u = h; l < u.length; l++) {
|
|
@@ -1474,21 +1439,21 @@ function yi(e) {
|
|
|
1474
1439
|
if (f.length === 0)
|
|
1475
1440
|
throw new Error("Invalid number skeleton");
|
|
1476
1441
|
}
|
|
1477
|
-
|
|
1442
|
+
n.push({ stem: s, options: h });
|
|
1478
1443
|
}
|
|
1479
|
-
return
|
|
1444
|
+
return n;
|
|
1480
1445
|
}
|
|
1481
|
-
function
|
|
1446
|
+
function pi(e) {
|
|
1482
1447
|
return e.replace(/^(.*?)-/, "");
|
|
1483
1448
|
}
|
|
1484
|
-
var
|
|
1485
|
-
function
|
|
1449
|
+
var Ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, _n = /^(@+)?(\+|#+)?[rs]?$/g, bi = /(\*)(0+)|(#+)(0+)|(0+)/g, xn = /^(0+)$/;
|
|
1450
|
+
function It(e) {
|
|
1486
1451
|
var t = {};
|
|
1487
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1488
|
-
return typeof i != "string" ? (t.minimumSignificantDigits =
|
|
1452
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(_n, function(n, r, i) {
|
|
1453
|
+
return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1489
1454
|
}), t;
|
|
1490
1455
|
}
|
|
1491
|
-
function
|
|
1456
|
+
function vn(e) {
|
|
1492
1457
|
switch (e) {
|
|
1493
1458
|
case "sign-auto":
|
|
1494
1459
|
return {
|
|
@@ -1528,27 +1493,27 @@ function Sr(e) {
|
|
|
1528
1493
|
};
|
|
1529
1494
|
}
|
|
1530
1495
|
}
|
|
1531
|
-
function
|
|
1496
|
+
function gi(e) {
|
|
1532
1497
|
var t;
|
|
1533
1498
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1534
1499
|
notation: "engineering"
|
|
1535
1500
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
1536
1501
|
notation: "scientific"
|
|
1537
1502
|
}, e = e.slice(1)), t) {
|
|
1538
|
-
var
|
|
1539
|
-
if (
|
|
1503
|
+
var n = e.slice(0, 2);
|
|
1504
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !xn.test(e))
|
|
1540
1505
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1541
1506
|
t.minimumIntegerDigits = e.length;
|
|
1542
1507
|
}
|
|
1543
1508
|
return t;
|
|
1544
1509
|
}
|
|
1545
|
-
function
|
|
1546
|
-
var t = {},
|
|
1547
|
-
return
|
|
1510
|
+
function Nt(e) {
|
|
1511
|
+
var t = {}, n = vn(e);
|
|
1512
|
+
return n || t;
|
|
1548
1513
|
}
|
|
1549
|
-
function
|
|
1550
|
-
for (var t = {},
|
|
1551
|
-
var i = n
|
|
1514
|
+
function yi(e) {
|
|
1515
|
+
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
1516
|
+
var i = r[n];
|
|
1552
1517
|
switch (i.stem) {
|
|
1553
1518
|
case "percent":
|
|
1554
1519
|
case "%":
|
|
@@ -1570,7 +1535,7 @@ function Ei(e) {
|
|
|
1570
1535
|
continue;
|
|
1571
1536
|
case "measure-unit":
|
|
1572
1537
|
case "unit":
|
|
1573
|
-
t.style = "unit", t.unit =
|
|
1538
|
+
t.style = "unit", t.unit = pi(i.options[0]);
|
|
1574
1539
|
continue;
|
|
1575
1540
|
case "compact-short":
|
|
1576
1541
|
case "K":
|
|
@@ -1581,13 +1546,13 @@ function Ei(e) {
|
|
|
1581
1546
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1582
1547
|
continue;
|
|
1583
1548
|
case "scientific":
|
|
1584
|
-
t =
|
|
1585
|
-
return
|
|
1549
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
|
|
1550
|
+
return x(x({}, h), Nt(l));
|
|
1586
1551
|
}, {}));
|
|
1587
1552
|
continue;
|
|
1588
1553
|
case "engineering":
|
|
1589
|
-
t =
|
|
1590
|
-
return
|
|
1554
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
|
|
1555
|
+
return x(x({}, h), Nt(l));
|
|
1591
1556
|
}, {}));
|
|
1592
1557
|
continue;
|
|
1593
1558
|
case "notation-simple":
|
|
@@ -1632,45 +1597,45 @@ function Ei(e) {
|
|
|
1632
1597
|
case "integer-width":
|
|
1633
1598
|
if (i.options.length > 1)
|
|
1634
1599
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1635
|
-
i.options[0].replace(
|
|
1600
|
+
i.options[0].replace(bi, function(h, l, u, f, c, d) {
|
|
1636
1601
|
if (l)
|
|
1637
1602
|
t.minimumIntegerDigits = u.length;
|
|
1638
1603
|
else {
|
|
1639
1604
|
if (f && c)
|
|
1640
1605
|
throw new Error("We currently do not support maximum integer digits");
|
|
1641
|
-
if (
|
|
1606
|
+
if (d)
|
|
1642
1607
|
throw new Error("We currently do not support exact integer digits");
|
|
1643
1608
|
}
|
|
1644
1609
|
return "";
|
|
1645
1610
|
});
|
|
1646
1611
|
continue;
|
|
1647
1612
|
}
|
|
1648
|
-
if (
|
|
1613
|
+
if (xn.test(i.stem)) {
|
|
1649
1614
|
t.minimumIntegerDigits = i.stem.length;
|
|
1650
1615
|
continue;
|
|
1651
1616
|
}
|
|
1652
|
-
if (
|
|
1617
|
+
if (Ot.test(i.stem)) {
|
|
1653
1618
|
if (i.options.length > 1)
|
|
1654
1619
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1655
|
-
i.stem.replace(
|
|
1656
|
-
return u === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
1620
|
+
i.stem.replace(Ot, function(h, l, u, f, c, d) {
|
|
1621
|
+
return u === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1657
1622
|
});
|
|
1658
1623
|
var o = i.options[0];
|
|
1659
|
-
o === "w" ? t =
|
|
1624
|
+
o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), It(o)));
|
|
1660
1625
|
continue;
|
|
1661
1626
|
}
|
|
1662
|
-
if (
|
|
1663
|
-
t =
|
|
1627
|
+
if (_n.test(i.stem)) {
|
|
1628
|
+
t = x(x({}, t), It(i.stem));
|
|
1664
1629
|
continue;
|
|
1665
1630
|
}
|
|
1666
|
-
var a =
|
|
1667
|
-
a && (t =
|
|
1668
|
-
var s =
|
|
1669
|
-
s && (t =
|
|
1631
|
+
var a = vn(i.stem);
|
|
1632
|
+
a && (t = x(x({}, t), a));
|
|
1633
|
+
var s = gi(i.stem);
|
|
1634
|
+
s && (t = x(x({}, t), s));
|
|
1670
1635
|
}
|
|
1671
1636
|
return t;
|
|
1672
1637
|
}
|
|
1673
|
-
var
|
|
1638
|
+
var ve = {
|
|
1674
1639
|
"001": [
|
|
1675
1640
|
"H",
|
|
1676
1641
|
"h"
|
|
@@ -3085,23 +3050,23 @@ var xe = {
|
|
|
3085
3050
|
"h"
|
|
3086
3051
|
]
|
|
3087
3052
|
};
|
|
3088
|
-
function
|
|
3089
|
-
for (var
|
|
3090
|
-
var i = e.charAt(
|
|
3053
|
+
function _i(e, t) {
|
|
3054
|
+
for (var n = "", r = 0; r < e.length; r++) {
|
|
3055
|
+
var i = e.charAt(r);
|
|
3091
3056
|
if (i === "j") {
|
|
3092
|
-
for (var o = 0;
|
|
3093
|
-
o++,
|
|
3094
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", l =
|
|
3057
|
+
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
3058
|
+
o++, r++;
|
|
3059
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = xi(t);
|
|
3095
3060
|
for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
|
|
3096
|
-
|
|
3061
|
+
n += h;
|
|
3097
3062
|
for (; a-- > 0; )
|
|
3098
|
-
|
|
3063
|
+
n = l + n;
|
|
3099
3064
|
} else
|
|
3100
|
-
i === "J" ?
|
|
3065
|
+
i === "J" ? n += "H" : n += i;
|
|
3101
3066
|
}
|
|
3102
|
-
return
|
|
3067
|
+
return n;
|
|
3103
3068
|
}
|
|
3104
|
-
function
|
|
3069
|
+
function xi(e) {
|
|
3105
3070
|
var t = e.hourCycle;
|
|
3106
3071
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3107
3072
|
e.hourCycles && // @ts-ignore
|
|
@@ -3118,73 +3083,73 @@ function Si(e) {
|
|
|
3118
3083
|
default:
|
|
3119
3084
|
throw new Error("Invalid hourCycle");
|
|
3120
3085
|
}
|
|
3121
|
-
var
|
|
3122
|
-
|
|
3123
|
-
var i =
|
|
3086
|
+
var n = e.language, r;
|
|
3087
|
+
n !== "root" && (r = e.maximize().region);
|
|
3088
|
+
var i = ve[r || ""] || ve[n || ""] || ve["".concat(n, "-001")] || ve["001"];
|
|
3124
3089
|
return i[0];
|
|
3125
3090
|
}
|
|
3126
|
-
var
|
|
3127
|
-
function
|
|
3091
|
+
var je, vi = new RegExp("^".concat(yn.source, "*")), Ei = new RegExp("".concat(yn.source, "*$"));
|
|
3092
|
+
function _(e, t) {
|
|
3128
3093
|
return { start: e, end: t };
|
|
3129
3094
|
}
|
|
3130
|
-
var
|
|
3095
|
+
var wi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Si = !!String.fromCodePoint, Ti = !!Object.fromEntries, Hi = !!String.prototype.codePointAt, Bi = !!String.prototype.trimStart, Ai = !!String.prototype.trimEnd, Pi = !!Number.isSafeInteger, Ri = Pi ? Number.isSafeInteger : function(e) {
|
|
3131
3096
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3132
|
-
},
|
|
3097
|
+
}, et = !0;
|
|
3133
3098
|
try {
|
|
3134
|
-
var
|
|
3135
|
-
|
|
3099
|
+
var Oi = wn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3100
|
+
et = ((je = Oi.exec("a")) === null || je === void 0 ? void 0 : je[0]) === "a";
|
|
3136
3101
|
} catch (e) {
|
|
3137
|
-
|
|
3102
|
+
et = !1;
|
|
3138
3103
|
}
|
|
3139
|
-
var
|
|
3104
|
+
var Mt = wi ? (
|
|
3140
3105
|
// Native
|
|
3141
|
-
function(t,
|
|
3142
|
-
return t.startsWith(
|
|
3106
|
+
function(t, n, r) {
|
|
3107
|
+
return t.startsWith(n, r);
|
|
3143
3108
|
}
|
|
3144
3109
|
) : (
|
|
3145
3110
|
// For IE11
|
|
3146
|
-
function(t,
|
|
3147
|
-
return t.slice(
|
|
3111
|
+
function(t, n, r) {
|
|
3112
|
+
return t.slice(r, r + n.length) === n;
|
|
3148
3113
|
}
|
|
3149
|
-
),
|
|
3114
|
+
), tt = Si ? String.fromCodePoint : (
|
|
3150
3115
|
// IE11
|
|
3151
3116
|
function() {
|
|
3152
|
-
for (var t = [],
|
|
3153
|
-
t[
|
|
3154
|
-
for (var
|
|
3117
|
+
for (var t = [], n = 0; n < arguments.length; n++)
|
|
3118
|
+
t[n] = arguments[n];
|
|
3119
|
+
for (var r = "", i = t.length, o = 0, a; i > o; ) {
|
|
3155
3120
|
if (a = t[o++], a > 1114111)
|
|
3156
3121
|
throw RangeError(a + " is not a valid code point");
|
|
3157
|
-
|
|
3122
|
+
r += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
3158
3123
|
}
|
|
3159
|
-
return
|
|
3124
|
+
return r;
|
|
3160
3125
|
}
|
|
3161
|
-
),
|
|
3126
|
+
), Lt = (
|
|
3162
3127
|
// native
|
|
3163
|
-
|
|
3128
|
+
Ti ? Object.fromEntries : (
|
|
3164
3129
|
// Ponyfill
|
|
3165
3130
|
function(t) {
|
|
3166
|
-
for (var
|
|
3167
|
-
var o = i[
|
|
3168
|
-
|
|
3131
|
+
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
3132
|
+
var o = i[r], a = o[0], s = o[1];
|
|
3133
|
+
n[a] = s;
|
|
3169
3134
|
}
|
|
3170
|
-
return
|
|
3135
|
+
return n;
|
|
3171
3136
|
}
|
|
3172
3137
|
)
|
|
3173
|
-
),
|
|
3138
|
+
), En = Hi ? (
|
|
3174
3139
|
// Native
|
|
3175
|
-
function(t,
|
|
3176
|
-
return t.codePointAt(
|
|
3140
|
+
function(t, n) {
|
|
3141
|
+
return t.codePointAt(n);
|
|
3177
3142
|
}
|
|
3178
3143
|
) : (
|
|
3179
3144
|
// IE 11
|
|
3180
|
-
function(t,
|
|
3181
|
-
var
|
|
3182
|
-
if (!(
|
|
3183
|
-
var i = t.charCodeAt(
|
|
3184
|
-
return i < 55296 || i > 56319 ||
|
|
3145
|
+
function(t, n) {
|
|
3146
|
+
var r = t.length;
|
|
3147
|
+
if (!(n < 0 || n >= r)) {
|
|
3148
|
+
var i = t.charCodeAt(n), o;
|
|
3149
|
+
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3185
3150
|
}
|
|
3186
3151
|
}
|
|
3187
|
-
),
|
|
3152
|
+
), Ii = Bi ? (
|
|
3188
3153
|
// Native
|
|
3189
3154
|
function(t) {
|
|
3190
3155
|
return t.trimStart();
|
|
@@ -3192,9 +3157,9 @@ var Ut = Bi ? (
|
|
|
3192
3157
|
) : (
|
|
3193
3158
|
// Ponyfill
|
|
3194
3159
|
function(t) {
|
|
3195
|
-
return t.replace(
|
|
3160
|
+
return t.replace(vi, "");
|
|
3196
3161
|
}
|
|
3197
|
-
),
|
|
3162
|
+
), Ni = Ai ? (
|
|
3198
3163
|
// Native
|
|
3199
3164
|
function(t) {
|
|
3200
3165
|
return t.trimEnd();
|
|
@@ -3202,69 +3167,69 @@ var Ut = Bi ? (
|
|
|
3202
3167
|
) : (
|
|
3203
3168
|
// Ponyfill
|
|
3204
3169
|
function(t) {
|
|
3205
|
-
return t.replace(
|
|
3170
|
+
return t.replace(Ei, "");
|
|
3206
3171
|
}
|
|
3207
3172
|
);
|
|
3208
|
-
function
|
|
3173
|
+
function wn(e, t) {
|
|
3209
3174
|
return new RegExp(e, t);
|
|
3210
3175
|
}
|
|
3211
|
-
var
|
|
3212
|
-
if (
|
|
3213
|
-
var
|
|
3214
|
-
|
|
3215
|
-
var
|
|
3216
|
-
|
|
3217
|
-
var i =
|
|
3218
|
-
return (
|
|
3176
|
+
var nt;
|
|
3177
|
+
if (et) {
|
|
3178
|
+
var Ct = wn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3179
|
+
nt = function(t, n) {
|
|
3180
|
+
var r;
|
|
3181
|
+
Ct.lastIndex = n;
|
|
3182
|
+
var i = Ct.exec(t);
|
|
3183
|
+
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
3219
3184
|
};
|
|
3220
3185
|
} else
|
|
3221
|
-
|
|
3222
|
-
for (var
|
|
3223
|
-
var i =
|
|
3224
|
-
if (i === void 0 ||
|
|
3186
|
+
nt = function(t, n) {
|
|
3187
|
+
for (var r = []; ; ) {
|
|
3188
|
+
var i = En(t, n);
|
|
3189
|
+
if (i === void 0 || Sn(i) || Gi(i))
|
|
3225
3190
|
break;
|
|
3226
|
-
|
|
3191
|
+
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
3227
3192
|
}
|
|
3228
|
-
return
|
|
3193
|
+
return tt.apply(void 0, r);
|
|
3229
3194
|
};
|
|
3230
|
-
var
|
|
3195
|
+
var Mi = (
|
|
3231
3196
|
/** @class */
|
|
3232
3197
|
function() {
|
|
3233
|
-
function e(t,
|
|
3234
|
-
|
|
3198
|
+
function e(t, n) {
|
|
3199
|
+
n === void 0 && (n = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!n.ignoreTag, this.locale = n.locale, this.requiresOtherClause = !!n.requiresOtherClause, this.shouldParseSkeletons = !!n.shouldParseSkeletons;
|
|
3235
3200
|
}
|
|
3236
3201
|
return e.prototype.parse = function() {
|
|
3237
3202
|
if (this.offset() !== 0)
|
|
3238
3203
|
throw Error("parser can only be used once");
|
|
3239
3204
|
return this.parseMessage(0, "", !1);
|
|
3240
|
-
}, e.prototype.parseMessage = function(t,
|
|
3205
|
+
}, e.prototype.parseMessage = function(t, n, r) {
|
|
3241
3206
|
for (var i = []; !this.isEOF(); ) {
|
|
3242
3207
|
var o = this.char();
|
|
3243
3208
|
if (o === 123) {
|
|
3244
|
-
var a = this.parseArgument(t,
|
|
3209
|
+
var a = this.parseArgument(t, r);
|
|
3245
3210
|
if (a.err)
|
|
3246
3211
|
return a;
|
|
3247
3212
|
i.push(a.val);
|
|
3248
3213
|
} else {
|
|
3249
3214
|
if (o === 125 && t > 0)
|
|
3250
3215
|
break;
|
|
3251
|
-
if (o === 35 && (
|
|
3216
|
+
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
3252
3217
|
var s = this.clonePosition();
|
|
3253
3218
|
this.bump(), i.push({
|
|
3254
|
-
type:
|
|
3255
|
-
location:
|
|
3219
|
+
type: w.pound,
|
|
3220
|
+
location: _(s, this.clonePosition())
|
|
3256
3221
|
});
|
|
3257
3222
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3258
|
-
if (
|
|
3223
|
+
if (r)
|
|
3259
3224
|
break;
|
|
3260
|
-
return this.error(y.UNMATCHED_CLOSING_TAG,
|
|
3261
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3262
|
-
var a = this.parseTag(t,
|
|
3225
|
+
return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
3226
|
+
} else if (o === 60 && !this.ignoreTag && rt(this.peek() || 0)) {
|
|
3227
|
+
var a = this.parseTag(t, n);
|
|
3263
3228
|
if (a.err)
|
|
3264
3229
|
return a;
|
|
3265
3230
|
i.push(a.val);
|
|
3266
3231
|
} else {
|
|
3267
|
-
var a = this.parseLiteral(t,
|
|
3232
|
+
var a = this.parseLiteral(t, n);
|
|
3268
3233
|
if (a.err)
|
|
3269
3234
|
return a;
|
|
3270
3235
|
i.push(a.val);
|
|
@@ -3272,54 +3237,54 @@ var Ui = (
|
|
|
3272
3237
|
}
|
|
3273
3238
|
}
|
|
3274
3239
|
return { val: i, err: null };
|
|
3275
|
-
}, e.prototype.parseTag = function(t,
|
|
3276
|
-
var
|
|
3240
|
+
}, e.prototype.parseTag = function(t, n) {
|
|
3241
|
+
var r = this.clonePosition();
|
|
3277
3242
|
this.bump();
|
|
3278
3243
|
var i = this.parseTagName();
|
|
3279
3244
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3280
3245
|
return {
|
|
3281
3246
|
val: {
|
|
3282
|
-
type:
|
|
3247
|
+
type: w.literal,
|
|
3283
3248
|
value: "<".concat(i, "/>"),
|
|
3284
|
-
location:
|
|
3249
|
+
location: _(r, this.clonePosition())
|
|
3285
3250
|
},
|
|
3286
3251
|
err: null
|
|
3287
3252
|
};
|
|
3288
3253
|
if (this.bumpIf(">")) {
|
|
3289
|
-
var o = this.parseMessage(t + 1,
|
|
3254
|
+
var o = this.parseMessage(t + 1, n, !0);
|
|
3290
3255
|
if (o.err)
|
|
3291
3256
|
return o;
|
|
3292
3257
|
var a = o.val, s = this.clonePosition();
|
|
3293
3258
|
if (this.bumpIf("</")) {
|
|
3294
|
-
if (this.isEOF() || !
|
|
3295
|
-
return this.error(y.INVALID_TAG,
|
|
3259
|
+
if (this.isEOF() || !rt(this.char()))
|
|
3260
|
+
return this.error(y.INVALID_TAG, _(s, this.clonePosition()));
|
|
3296
3261
|
var h = this.clonePosition(), l = this.parseTagName();
|
|
3297
|
-
return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG,
|
|
3262
|
+
return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG, _(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3298
3263
|
val: {
|
|
3299
|
-
type:
|
|
3264
|
+
type: w.tag,
|
|
3300
3265
|
value: i,
|
|
3301
3266
|
children: a,
|
|
3302
|
-
location:
|
|
3267
|
+
location: _(r, this.clonePosition())
|
|
3303
3268
|
},
|
|
3304
3269
|
err: null
|
|
3305
|
-
} : this.error(y.INVALID_TAG,
|
|
3270
|
+
} : this.error(y.INVALID_TAG, _(s, this.clonePosition())));
|
|
3306
3271
|
} else
|
|
3307
|
-
return this.error(y.UNCLOSED_TAG,
|
|
3272
|
+
return this.error(y.UNCLOSED_TAG, _(r, this.clonePosition()));
|
|
3308
3273
|
} else
|
|
3309
|
-
return this.error(y.INVALID_TAG,
|
|
3274
|
+
return this.error(y.INVALID_TAG, _(r, this.clonePosition()));
|
|
3310
3275
|
}, e.prototype.parseTagName = function() {
|
|
3311
3276
|
var t = this.offset();
|
|
3312
|
-
for (this.bump(); !this.isEOF() &&
|
|
3277
|
+
for (this.bump(); !this.isEOF() && Ci(this.char()); )
|
|
3313
3278
|
this.bump();
|
|
3314
3279
|
return this.message.slice(t, this.offset());
|
|
3315
|
-
}, e.prototype.parseLiteral = function(t,
|
|
3316
|
-
for (var
|
|
3317
|
-
var o = this.tryParseQuote(
|
|
3280
|
+
}, e.prototype.parseLiteral = function(t, n) {
|
|
3281
|
+
for (var r = this.clonePosition(), i = ""; ; ) {
|
|
3282
|
+
var o = this.tryParseQuote(n);
|
|
3318
3283
|
if (o) {
|
|
3319
3284
|
i += o;
|
|
3320
3285
|
continue;
|
|
3321
3286
|
}
|
|
3322
|
-
var a = this.tryParseUnquoted(t,
|
|
3287
|
+
var a = this.tryParseUnquoted(t, n);
|
|
3323
3288
|
if (a) {
|
|
3324
3289
|
i += a;
|
|
3325
3290
|
continue;
|
|
@@ -3331,14 +3296,14 @@ var Ui = (
|
|
|
3331
3296
|
}
|
|
3332
3297
|
break;
|
|
3333
3298
|
}
|
|
3334
|
-
var h =
|
|
3299
|
+
var h = _(r, this.clonePosition());
|
|
3335
3300
|
return {
|
|
3336
|
-
val: { type:
|
|
3301
|
+
val: { type: w.literal, value: i, location: h },
|
|
3337
3302
|
err: null
|
|
3338
3303
|
};
|
|
3339
3304
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3340
3305
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3341
|
-
|
|
3306
|
+
!Li(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3342
3307
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3343
3308
|
if (this.isEOF() || this.char() !== 39)
|
|
3344
3309
|
return null;
|
|
@@ -3358,63 +3323,63 @@ var Ui = (
|
|
|
3358
3323
|
return null;
|
|
3359
3324
|
}
|
|
3360
3325
|
this.bump();
|
|
3361
|
-
var
|
|
3326
|
+
var n = [this.char()];
|
|
3362
3327
|
for (this.bump(); !this.isEOF(); ) {
|
|
3363
|
-
var
|
|
3364
|
-
if (
|
|
3328
|
+
var r = this.char();
|
|
3329
|
+
if (r === 39)
|
|
3365
3330
|
if (this.peek() === 39)
|
|
3366
|
-
|
|
3331
|
+
n.push(39), this.bump();
|
|
3367
3332
|
else {
|
|
3368
3333
|
this.bump();
|
|
3369
3334
|
break;
|
|
3370
3335
|
}
|
|
3371
3336
|
else
|
|
3372
|
-
|
|
3337
|
+
n.push(r);
|
|
3373
3338
|
this.bump();
|
|
3374
3339
|
}
|
|
3375
|
-
return
|
|
3376
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
3340
|
+
return tt.apply(void 0, n);
|
|
3341
|
+
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
3377
3342
|
if (this.isEOF())
|
|
3378
3343
|
return null;
|
|
3379
|
-
var
|
|
3380
|
-
return
|
|
3381
|
-
}, e.prototype.parseArgument = function(t,
|
|
3382
|
-
var
|
|
3344
|
+
var r = this.char();
|
|
3345
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), tt(r));
|
|
3346
|
+
}, e.prototype.parseArgument = function(t, n) {
|
|
3347
|
+
var r = this.clonePosition();
|
|
3383
3348
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3384
|
-
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3349
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(r, this.clonePosition()));
|
|
3385
3350
|
if (this.char() === 125)
|
|
3386
|
-
return this.bump(), this.error(y.EMPTY_ARGUMENT,
|
|
3351
|
+
return this.bump(), this.error(y.EMPTY_ARGUMENT, _(r, this.clonePosition()));
|
|
3387
3352
|
var i = this.parseIdentifierIfPossible().value;
|
|
3388
3353
|
if (!i)
|
|
3389
|
-
return this.error(y.MALFORMED_ARGUMENT,
|
|
3354
|
+
return this.error(y.MALFORMED_ARGUMENT, _(r, this.clonePosition()));
|
|
3390
3355
|
if (this.bumpSpace(), this.isEOF())
|
|
3391
|
-
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3356
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(r, this.clonePosition()));
|
|
3392
3357
|
switch (this.char()) {
|
|
3393
3358
|
case 125:
|
|
3394
3359
|
return this.bump(), {
|
|
3395
3360
|
val: {
|
|
3396
|
-
type:
|
|
3361
|
+
type: w.argument,
|
|
3397
3362
|
// value does not include the opening and closing braces.
|
|
3398
3363
|
value: i,
|
|
3399
|
-
location:
|
|
3364
|
+
location: _(r, this.clonePosition())
|
|
3400
3365
|
},
|
|
3401
3366
|
err: null
|
|
3402
3367
|
};
|
|
3403
3368
|
case 44:
|
|
3404
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3369
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
3405
3370
|
default:
|
|
3406
|
-
return this.error(y.MALFORMED_ARGUMENT,
|
|
3371
|
+
return this.error(y.MALFORMED_ARGUMENT, _(r, this.clonePosition()));
|
|
3407
3372
|
}
|
|
3408
3373
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3409
|
-
var t = this.clonePosition(),
|
|
3374
|
+
var t = this.clonePosition(), n = this.offset(), r = nt(this.message, n), i = n + r.length;
|
|
3410
3375
|
this.bumpTo(i);
|
|
3411
|
-
var o = this.clonePosition(), a =
|
|
3412
|
-
return { value:
|
|
3413
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
3376
|
+
var o = this.clonePosition(), a = _(t, o);
|
|
3377
|
+
return { value: r, location: a };
|
|
3378
|
+
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
3414
3379
|
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3415
3380
|
switch (s) {
|
|
3416
3381
|
case "":
|
|
3417
|
-
return this.error(y.EXPECT_ARGUMENT_TYPE,
|
|
3382
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, _(a, h));
|
|
3418
3383
|
case "number":
|
|
3419
3384
|
case "date":
|
|
3420
3385
|
case "time": {
|
|
@@ -3425,45 +3390,45 @@ var Ui = (
|
|
|
3425
3390
|
var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3426
3391
|
if (f.err)
|
|
3427
3392
|
return f;
|
|
3428
|
-
var c =
|
|
3393
|
+
var c = Ni(f.val);
|
|
3429
3394
|
if (c.length === 0)
|
|
3430
|
-
return this.error(y.EXPECT_ARGUMENT_STYLE,
|
|
3431
|
-
var
|
|
3432
|
-
l = { style: c, styleLocation:
|
|
3395
|
+
return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
3396
|
+
var d = _(u, this.clonePosition());
|
|
3397
|
+
l = { style: c, styleLocation: d };
|
|
3433
3398
|
}
|
|
3434
|
-
var
|
|
3435
|
-
if (
|
|
3436
|
-
return
|
|
3437
|
-
var p =
|
|
3438
|
-
if (l &&
|
|
3439
|
-
var A =
|
|
3399
|
+
var m = this.tryParseArgumentClose(i);
|
|
3400
|
+
if (m.err)
|
|
3401
|
+
return m;
|
|
3402
|
+
var p = _(i, this.clonePosition());
|
|
3403
|
+
if (l && Mt(l == null ? void 0 : l.style, "::", 0)) {
|
|
3404
|
+
var A = Ii(l.style.slice(2));
|
|
3440
3405
|
if (s === "number") {
|
|
3441
3406
|
var f = this.parseNumberSkeletonFromString(A, l.styleLocation);
|
|
3442
3407
|
return f.err ? f : {
|
|
3443
|
-
val: { type:
|
|
3408
|
+
val: { type: w.number, value: r, location: p, style: f.val },
|
|
3444
3409
|
err: null
|
|
3445
3410
|
};
|
|
3446
3411
|
} else {
|
|
3447
3412
|
if (A.length === 0)
|
|
3448
3413
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, p);
|
|
3449
3414
|
var H = A;
|
|
3450
|
-
this.locale && (H =
|
|
3415
|
+
this.locale && (H = _i(A, this.locale));
|
|
3451
3416
|
var c = {
|
|
3452
3417
|
type: re.dateTime,
|
|
3453
3418
|
pattern: H,
|
|
3454
3419
|
location: l.styleLocation,
|
|
3455
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3456
|
-
}, T = s === "date" ?
|
|
3420
|
+
parsedOptions: this.shouldParseSkeletons ? fi(H) : {}
|
|
3421
|
+
}, T = s === "date" ? w.date : w.time;
|
|
3457
3422
|
return {
|
|
3458
|
-
val: { type: T, value:
|
|
3423
|
+
val: { type: T, value: r, location: p, style: c },
|
|
3459
3424
|
err: null
|
|
3460
3425
|
};
|
|
3461
3426
|
}
|
|
3462
3427
|
}
|
|
3463
3428
|
return {
|
|
3464
3429
|
val: {
|
|
3465
|
-
type: s === "number" ?
|
|
3466
|
-
value:
|
|
3430
|
+
type: s === "number" ? w.number : s === "date" ? w.date : w.time,
|
|
3431
|
+
value: r,
|
|
3467
3432
|
location: p,
|
|
3468
3433
|
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
|
3469
3434
|
},
|
|
@@ -3475,39 +3440,39 @@ var Ui = (
|
|
|
3475
3440
|
case "select": {
|
|
3476
3441
|
var B = this.clonePosition();
|
|
3477
3442
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3478
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
3443
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(B, x({}, B)));
|
|
3479
3444
|
this.bumpSpace();
|
|
3480
|
-
var
|
|
3481
|
-
if (s !== "select" &&
|
|
3445
|
+
var M = this.parseIdentifierIfPossible(), L = 0;
|
|
3446
|
+
if (s !== "select" && M.value === "offset") {
|
|
3482
3447
|
if (!this.bumpIf(":"))
|
|
3483
|
-
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
3448
|
+
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
3484
3449
|
this.bumpSpace();
|
|
3485
3450
|
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3486
3451
|
if (f.err)
|
|
3487
3452
|
return f;
|
|
3488
|
-
this.bumpSpace(),
|
|
3453
|
+
this.bumpSpace(), M = this.parseIdentifierIfPossible(), L = f.val;
|
|
3489
3454
|
}
|
|
3490
|
-
var
|
|
3491
|
-
if (
|
|
3492
|
-
return
|
|
3493
|
-
var
|
|
3494
|
-
if (
|
|
3495
|
-
return
|
|
3496
|
-
var be =
|
|
3455
|
+
var G = this.tryParsePluralOrSelectOptions(t, s, n, M);
|
|
3456
|
+
if (G.err)
|
|
3457
|
+
return G;
|
|
3458
|
+
var m = this.tryParseArgumentClose(i);
|
|
3459
|
+
if (m.err)
|
|
3460
|
+
return m;
|
|
3461
|
+
var be = _(i, this.clonePosition());
|
|
3497
3462
|
return s === "select" ? {
|
|
3498
3463
|
val: {
|
|
3499
|
-
type:
|
|
3500
|
-
value:
|
|
3501
|
-
options:
|
|
3464
|
+
type: w.select,
|
|
3465
|
+
value: r,
|
|
3466
|
+
options: Lt(G.val),
|
|
3502
3467
|
location: be
|
|
3503
3468
|
},
|
|
3504
3469
|
err: null
|
|
3505
3470
|
} : {
|
|
3506
3471
|
val: {
|
|
3507
|
-
type:
|
|
3508
|
-
value:
|
|
3509
|
-
options:
|
|
3510
|
-
offset:
|
|
3472
|
+
type: w.plural,
|
|
3473
|
+
value: r,
|
|
3474
|
+
options: Lt(G.val),
|
|
3475
|
+
offset: L,
|
|
3511
3476
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3512
3477
|
location: be
|
|
3513
3478
|
},
|
|
@@ -3515,19 +3480,19 @@ var Ui = (
|
|
|
3515
3480
|
};
|
|
3516
3481
|
}
|
|
3517
3482
|
default:
|
|
3518
|
-
return this.error(y.INVALID_ARGUMENT_TYPE,
|
|
3483
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, _(a, h));
|
|
3519
3484
|
}
|
|
3520
3485
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3521
|
-
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3486
|
+
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3522
3487
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3523
|
-
for (var t = 0,
|
|
3524
|
-
var
|
|
3525
|
-
switch (
|
|
3488
|
+
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
3489
|
+
var r = this.char();
|
|
3490
|
+
switch (r) {
|
|
3526
3491
|
case 39: {
|
|
3527
3492
|
this.bump();
|
|
3528
3493
|
var i = this.clonePosition();
|
|
3529
3494
|
if (!this.bumpUntil("'"))
|
|
3530
|
-
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3495
|
+
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, _(i, this.clonePosition()));
|
|
3531
3496
|
this.bump();
|
|
3532
3497
|
break;
|
|
3533
3498
|
}
|
|
@@ -3540,7 +3505,7 @@ var Ui = (
|
|
|
3540
3505
|
t -= 1;
|
|
3541
3506
|
else
|
|
3542
3507
|
return {
|
|
3543
|
-
val: this.message.slice(
|
|
3508
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
3544
3509
|
err: null
|
|
3545
3510
|
};
|
|
3546
3511
|
break;
|
|
@@ -3551,61 +3516,61 @@ var Ui = (
|
|
|
3551
3516
|
}
|
|
3552
3517
|
}
|
|
3553
3518
|
return {
|
|
3554
|
-
val: this.message.slice(
|
|
3519
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
3555
3520
|
err: null
|
|
3556
3521
|
};
|
|
3557
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
3558
|
-
var
|
|
3522
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
3523
|
+
var r = [];
|
|
3559
3524
|
try {
|
|
3560
|
-
|
|
3525
|
+
r = mi(t);
|
|
3561
3526
|
} catch (i) {
|
|
3562
|
-
return this.error(y.INVALID_NUMBER_SKELETON,
|
|
3527
|
+
return this.error(y.INVALID_NUMBER_SKELETON, n);
|
|
3563
3528
|
}
|
|
3564
3529
|
return {
|
|
3565
3530
|
val: {
|
|
3566
3531
|
type: re.number,
|
|
3567
|
-
tokens:
|
|
3568
|
-
location:
|
|
3569
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3532
|
+
tokens: r,
|
|
3533
|
+
location: n,
|
|
3534
|
+
parsedOptions: this.shouldParseSkeletons ? yi(r) : {}
|
|
3570
3535
|
},
|
|
3571
3536
|
err: null
|
|
3572
3537
|
};
|
|
3573
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
3538
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
3574
3539
|
for (var o, a = !1, s = [], h = /* @__PURE__ */ new Set(), l = i.value, u = i.location; ; ) {
|
|
3575
3540
|
if (l.length === 0) {
|
|
3576
3541
|
var f = this.clonePosition();
|
|
3577
|
-
if (
|
|
3542
|
+
if (n !== "select" && this.bumpIf("=")) {
|
|
3578
3543
|
var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3579
3544
|
if (c.err)
|
|
3580
3545
|
return c;
|
|
3581
|
-
u =
|
|
3546
|
+
u = _(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
|
|
3582
3547
|
} else
|
|
3583
3548
|
break;
|
|
3584
3549
|
}
|
|
3585
3550
|
if (h.has(l))
|
|
3586
|
-
return this.error(
|
|
3551
|
+
return this.error(n === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
|
3587
3552
|
l === "other" && (a = !0), this.bumpSpace();
|
|
3588
|
-
var
|
|
3553
|
+
var d = this.clonePosition();
|
|
3589
3554
|
if (!this.bumpIf("{"))
|
|
3590
|
-
return this.error(
|
|
3591
|
-
var
|
|
3592
|
-
if (
|
|
3593
|
-
return
|
|
3594
|
-
var p = this.tryParseArgumentClose(
|
|
3555
|
+
return this.error(n === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
|
|
3556
|
+
var m = this.parseMessage(t + 1, n, r);
|
|
3557
|
+
if (m.err)
|
|
3558
|
+
return m;
|
|
3559
|
+
var p = this.tryParseArgumentClose(d);
|
|
3595
3560
|
if (p.err)
|
|
3596
3561
|
return p;
|
|
3597
3562
|
s.push([
|
|
3598
3563
|
l,
|
|
3599
3564
|
{
|
|
3600
|
-
value:
|
|
3601
|
-
location:
|
|
3565
|
+
value: m.val,
|
|
3566
|
+
location: _(d, this.clonePosition())
|
|
3602
3567
|
}
|
|
3603
3568
|
]), h.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, u = o.location;
|
|
3604
3569
|
}
|
|
3605
|
-
return s.length === 0 ? this.error(
|
|
3606
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
3607
|
-
var
|
|
3608
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
3570
|
+
return s.length === 0 ? this.error(n === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(y.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3571
|
+
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3572
|
+
var r = 1, i = this.clonePosition();
|
|
3573
|
+
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3609
3574
|
for (var o = !1, a = 0; !this.isEOF(); ) {
|
|
3610
3575
|
var s = this.char();
|
|
3611
3576
|
if (s >= 48 && s <= 57)
|
|
@@ -3613,8 +3578,8 @@ var Ui = (
|
|
|
3613
3578
|
else
|
|
3614
3579
|
break;
|
|
3615
3580
|
}
|
|
3616
|
-
var h =
|
|
3617
|
-
return o ? (a *=
|
|
3581
|
+
var h = _(i, this.clonePosition());
|
|
3582
|
+
return o ? (a *= r, Ri(a) ? { val: a, err: null } : this.error(n, h)) : this.error(t, h);
|
|
3618
3583
|
}, e.prototype.offset = function() {
|
|
3619
3584
|
return this.position.offset;
|
|
3620
3585
|
}, e.prototype.isEOF = function() {
|
|
@@ -3629,17 +3594,17 @@ var Ui = (
|
|
|
3629
3594
|
var t = this.position.offset;
|
|
3630
3595
|
if (t >= this.message.length)
|
|
3631
3596
|
throw Error("out of bound");
|
|
3632
|
-
var
|
|
3633
|
-
if (
|
|
3597
|
+
var n = En(this.message, t);
|
|
3598
|
+
if (n === void 0)
|
|
3634
3599
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3635
|
-
return
|
|
3636
|
-
}, e.prototype.error = function(t,
|
|
3600
|
+
return n;
|
|
3601
|
+
}, e.prototype.error = function(t, n) {
|
|
3637
3602
|
return {
|
|
3638
3603
|
val: null,
|
|
3639
3604
|
err: {
|
|
3640
3605
|
kind: t,
|
|
3641
3606
|
message: this.message,
|
|
3642
|
-
location:
|
|
3607
|
+
location: n
|
|
3643
3608
|
}
|
|
3644
3609
|
};
|
|
3645
3610
|
}, e.prototype.bump = function() {
|
|
@@ -3648,129 +3613,129 @@ var Ui = (
|
|
|
3648
3613
|
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);
|
|
3649
3614
|
}
|
|
3650
3615
|
}, e.prototype.bumpIf = function(t) {
|
|
3651
|
-
if (
|
|
3652
|
-
for (var
|
|
3616
|
+
if (Mt(this.message, t, this.offset())) {
|
|
3617
|
+
for (var n = 0; n < t.length; n++)
|
|
3653
3618
|
this.bump();
|
|
3654
3619
|
return !0;
|
|
3655
3620
|
}
|
|
3656
3621
|
return !1;
|
|
3657
3622
|
}, e.prototype.bumpUntil = function(t) {
|
|
3658
|
-
var
|
|
3659
|
-
return
|
|
3623
|
+
var n = this.offset(), r = this.message.indexOf(t, n);
|
|
3624
|
+
return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
|
|
3660
3625
|
}, e.prototype.bumpTo = function(t) {
|
|
3661
3626
|
if (this.offset() > t)
|
|
3662
3627
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3663
3628
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3664
|
-
var
|
|
3665
|
-
if (
|
|
3629
|
+
var n = this.offset();
|
|
3630
|
+
if (n === t)
|
|
3666
3631
|
break;
|
|
3667
|
-
if (
|
|
3632
|
+
if (n > t)
|
|
3668
3633
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3669
3634
|
if (this.bump(), this.isEOF())
|
|
3670
3635
|
break;
|
|
3671
3636
|
}
|
|
3672
3637
|
}, e.prototype.bumpSpace = function() {
|
|
3673
|
-
for (; !this.isEOF() &&
|
|
3638
|
+
for (; !this.isEOF() && Sn(this.char()); )
|
|
3674
3639
|
this.bump();
|
|
3675
3640
|
}, e.prototype.peek = function() {
|
|
3676
3641
|
if (this.isEOF())
|
|
3677
3642
|
return null;
|
|
3678
|
-
var t = this.char(),
|
|
3679
|
-
return
|
|
3643
|
+
var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
|
|
3644
|
+
return r != null ? r : null;
|
|
3680
3645
|
}, e;
|
|
3681
3646
|
}()
|
|
3682
3647
|
);
|
|
3683
|
-
function
|
|
3648
|
+
function rt(e) {
|
|
3684
3649
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3685
3650
|
}
|
|
3686
|
-
function
|
|
3687
|
-
return
|
|
3651
|
+
function Li(e) {
|
|
3652
|
+
return rt(e) || e === 47;
|
|
3688
3653
|
}
|
|
3689
|
-
function
|
|
3654
|
+
function Ci(e) {
|
|
3690
3655
|
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;
|
|
3691
3656
|
}
|
|
3692
|
-
function
|
|
3657
|
+
function Sn(e) {
|
|
3693
3658
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3694
3659
|
}
|
|
3695
|
-
function
|
|
3660
|
+
function Gi(e) {
|
|
3696
3661
|
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;
|
|
3697
3662
|
}
|
|
3698
|
-
function
|
|
3663
|
+
function it(e) {
|
|
3699
3664
|
e.forEach(function(t) {
|
|
3700
|
-
if (delete t.location,
|
|
3701
|
-
for (var
|
|
3702
|
-
delete t.options[
|
|
3665
|
+
if (delete t.location, mn(t) || pn(t))
|
|
3666
|
+
for (var n in t.options)
|
|
3667
|
+
delete t.options[n].location, it(t.options[n].value);
|
|
3703
3668
|
else
|
|
3704
|
-
|
|
3669
|
+
cn(t) && gn(t.style) || (fn(t) || dn(t)) && Ke(t.style) ? delete t.style.location : bn(t) && it(t.children);
|
|
3705
3670
|
});
|
|
3706
3671
|
}
|
|
3707
|
-
function
|
|
3708
|
-
t === void 0 && (t = {}), t =
|
|
3709
|
-
var
|
|
3710
|
-
if (
|
|
3711
|
-
var
|
|
3712
|
-
throw
|
|
3672
|
+
function Ui(e, t) {
|
|
3673
|
+
t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3674
|
+
var n = new Mi(e, t).parse();
|
|
3675
|
+
if (n.err) {
|
|
3676
|
+
var r = SyntaxError(y[n.err.kind]);
|
|
3677
|
+
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3713
3678
|
}
|
|
3714
|
-
return t != null && t.captureLocation ||
|
|
3679
|
+
return t != null && t.captureLocation || it(n.val), n.val;
|
|
3715
3680
|
}
|
|
3716
|
-
var
|
|
3681
|
+
var ie;
|
|
3717
3682
|
(function(e) {
|
|
3718
3683
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3719
|
-
})(
|
|
3720
|
-
var
|
|
3684
|
+
})(ie || (ie = {}));
|
|
3685
|
+
var Ne = (
|
|
3721
3686
|
/** @class */
|
|
3722
3687
|
function(e) {
|
|
3723
|
-
|
|
3724
|
-
function t(
|
|
3725
|
-
var o = e.call(this,
|
|
3726
|
-
return o.code =
|
|
3688
|
+
$(t, e);
|
|
3689
|
+
function t(n, r, i) {
|
|
3690
|
+
var o = e.call(this, n) || this;
|
|
3691
|
+
return o.code = r, o.originalMessage = i, o;
|
|
3727
3692
|
}
|
|
3728
3693
|
return t.prototype.toString = function() {
|
|
3729
3694
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3730
3695
|
}, t;
|
|
3731
3696
|
}(Error)
|
|
3732
|
-
),
|
|
3697
|
+
), Gt = (
|
|
3733
3698
|
/** @class */
|
|
3734
3699
|
function(e) {
|
|
3735
|
-
|
|
3736
|
-
function t(
|
|
3737
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3700
|
+
$(t, e);
|
|
3701
|
+
function t(n, r, i, o) {
|
|
3702
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ie.INVALID_VALUE, o) || this;
|
|
3738
3703
|
}
|
|
3739
3704
|
return t;
|
|
3740
|
-
}(
|
|
3741
|
-
),
|
|
3705
|
+
}(Ne)
|
|
3706
|
+
), Fi = (
|
|
3742
3707
|
/** @class */
|
|
3743
3708
|
function(e) {
|
|
3744
|
-
|
|
3745
|
-
function t(
|
|
3746
|
-
return e.call(this, 'Value for "'.concat(
|
|
3709
|
+
$(t, e);
|
|
3710
|
+
function t(n, r, i) {
|
|
3711
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), ie.INVALID_VALUE, i) || this;
|
|
3747
3712
|
}
|
|
3748
3713
|
return t;
|
|
3749
|
-
}(
|
|
3750
|
-
),
|
|
3714
|
+
}(Ne)
|
|
3715
|
+
), Di = (
|
|
3751
3716
|
/** @class */
|
|
3752
3717
|
function(e) {
|
|
3753
|
-
|
|
3754
|
-
function t(
|
|
3755
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3718
|
+
$(t, e);
|
|
3719
|
+
function t(n, r) {
|
|
3720
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), ie.MISSING_VALUE, r) || this;
|
|
3756
3721
|
}
|
|
3757
3722
|
return t;
|
|
3758
|
-
}(
|
|
3723
|
+
}(Ne)
|
|
3759
3724
|
), P;
|
|
3760
3725
|
(function(e) {
|
|
3761
3726
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3762
3727
|
})(P || (P = {}));
|
|
3763
|
-
function
|
|
3764
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3765
|
-
var
|
|
3766
|
-
return !
|
|
3728
|
+
function $i(e) {
|
|
3729
|
+
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3730
|
+
var r = t[t.length - 1];
|
|
3731
|
+
return !r || r.type !== P.literal || n.type !== P.literal ? t.push(n) : r.value += n.value, t;
|
|
3767
3732
|
}, []);
|
|
3768
3733
|
}
|
|
3769
|
-
function
|
|
3734
|
+
function ji(e) {
|
|
3770
3735
|
return typeof e == "function";
|
|
3771
3736
|
}
|
|
3772
|
-
function Te(e, t,
|
|
3773
|
-
if (e.length === 1 &&
|
|
3737
|
+
function Te(e, t, n, r, i, o, a) {
|
|
3738
|
+
if (e.length === 1 && Rt(e[0]))
|
|
3774
3739
|
return [
|
|
3775
3740
|
{
|
|
3776
3741
|
type: P.literal,
|
|
@@ -3779,155 +3744,155 @@ function Te(e, t, r, n, i, o, a) {
|
|
|
3779
3744
|
];
|
|
3780
3745
|
for (var s = [], h = 0, l = e; h < l.length; h++) {
|
|
3781
3746
|
var u = l[h];
|
|
3782
|
-
if (
|
|
3747
|
+
if (Rt(u)) {
|
|
3783
3748
|
s.push({
|
|
3784
3749
|
type: P.literal,
|
|
3785
3750
|
value: u.value
|
|
3786
3751
|
});
|
|
3787
3752
|
continue;
|
|
3788
3753
|
}
|
|
3789
|
-
if (
|
|
3754
|
+
if (hi(u)) {
|
|
3790
3755
|
typeof o == "number" && s.push({
|
|
3791
3756
|
type: P.literal,
|
|
3792
|
-
value:
|
|
3757
|
+
value: n.getNumberFormat(t).format(o)
|
|
3793
3758
|
});
|
|
3794
3759
|
continue;
|
|
3795
3760
|
}
|
|
3796
3761
|
var f = u.value;
|
|
3797
3762
|
if (!(i && f in i))
|
|
3798
|
-
throw new
|
|
3763
|
+
throw new Di(f, a);
|
|
3799
3764
|
var c = i[f];
|
|
3800
|
-
if (
|
|
3765
|
+
if (li(u)) {
|
|
3801
3766
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
|
|
3802
3767
|
type: typeof c == "string" ? P.literal : P.object,
|
|
3803
3768
|
value: c
|
|
3804
3769
|
});
|
|
3805
3770
|
continue;
|
|
3806
3771
|
}
|
|
3807
|
-
if (
|
|
3808
|
-
var
|
|
3772
|
+
if (fn(u)) {
|
|
3773
|
+
var d = typeof u.style == "string" ? r.date[u.style] : Ke(u.style) ? u.style.parsedOptions : void 0;
|
|
3809
3774
|
s.push({
|
|
3810
3775
|
type: P.literal,
|
|
3811
|
-
value:
|
|
3776
|
+
value: n.getDateTimeFormat(t, d).format(c)
|
|
3812
3777
|
});
|
|
3813
3778
|
continue;
|
|
3814
3779
|
}
|
|
3815
|
-
if (
|
|
3816
|
-
var
|
|
3780
|
+
if (dn(u)) {
|
|
3781
|
+
var d = typeof u.style == "string" ? r.time[u.style] : Ke(u.style) ? u.style.parsedOptions : r.time.medium;
|
|
3817
3782
|
s.push({
|
|
3818
3783
|
type: P.literal,
|
|
3819
|
-
value:
|
|
3784
|
+
value: n.getDateTimeFormat(t, d).format(c)
|
|
3820
3785
|
});
|
|
3821
3786
|
continue;
|
|
3822
3787
|
}
|
|
3823
|
-
if (
|
|
3824
|
-
var
|
|
3825
|
-
|
|
3788
|
+
if (cn(u)) {
|
|
3789
|
+
var d = typeof u.style == "string" ? r.number[u.style] : gn(u.style) ? u.style.parsedOptions : void 0;
|
|
3790
|
+
d && d.scale && (c = c * (d.scale || 1)), s.push({
|
|
3826
3791
|
type: P.literal,
|
|
3827
|
-
value:
|
|
3792
|
+
value: n.getNumberFormat(t, d).format(c)
|
|
3828
3793
|
});
|
|
3829
3794
|
continue;
|
|
3830
3795
|
}
|
|
3831
|
-
if (
|
|
3832
|
-
var
|
|
3833
|
-
if (!
|
|
3834
|
-
throw new
|
|
3835
|
-
var H = Te(
|
|
3836
|
-
return
|
|
3796
|
+
if (bn(u)) {
|
|
3797
|
+
var m = u.children, p = u.value, A = i[p];
|
|
3798
|
+
if (!ji(A))
|
|
3799
|
+
throw new Fi(p, "function", a);
|
|
3800
|
+
var H = Te(m, t, n, r, i, o), T = A(H.map(function(L) {
|
|
3801
|
+
return L.value;
|
|
3837
3802
|
}));
|
|
3838
|
-
Array.isArray(T) || (T = [T]), s.push.apply(s, T.map(function(
|
|
3803
|
+
Array.isArray(T) || (T = [T]), s.push.apply(s, T.map(function(L) {
|
|
3839
3804
|
return {
|
|
3840
|
-
type: typeof
|
|
3841
|
-
value:
|
|
3805
|
+
type: typeof L == "string" ? P.literal : P.object,
|
|
3806
|
+
value: L
|
|
3842
3807
|
};
|
|
3843
3808
|
}));
|
|
3844
3809
|
}
|
|
3845
|
-
if (
|
|
3810
|
+
if (mn(u)) {
|
|
3846
3811
|
var B = u.options[c] || u.options.other;
|
|
3847
3812
|
if (!B)
|
|
3848
|
-
throw new
|
|
3849
|
-
s.push.apply(s, Te(B.value, t,
|
|
3813
|
+
throw new Gt(u.value, c, Object.keys(u.options), a);
|
|
3814
|
+
s.push.apply(s, Te(B.value, t, n, r, i));
|
|
3850
3815
|
continue;
|
|
3851
3816
|
}
|
|
3852
|
-
if (
|
|
3817
|
+
if (pn(u)) {
|
|
3853
3818
|
var B = u.options["=".concat(c)];
|
|
3854
3819
|
if (!B) {
|
|
3855
3820
|
if (!Intl.PluralRules)
|
|
3856
|
-
throw new
|
|
3821
|
+
throw new Ne(`Intl.PluralRules is not available in this environment.
|
|
3857
3822
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3858
|
-
`,
|
|
3859
|
-
var
|
|
3860
|
-
B = u.options[
|
|
3823
|
+
`, ie.MISSING_INTL_API, a);
|
|
3824
|
+
var M = n.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
|
|
3825
|
+
B = u.options[M] || u.options.other;
|
|
3861
3826
|
}
|
|
3862
3827
|
if (!B)
|
|
3863
|
-
throw new
|
|
3864
|
-
s.push.apply(s, Te(B.value, t,
|
|
3828
|
+
throw new Gt(u.value, c, Object.keys(u.options), a);
|
|
3829
|
+
s.push.apply(s, Te(B.value, t, n, r, i, c - (u.offset || 0)));
|
|
3865
3830
|
continue;
|
|
3866
3831
|
}
|
|
3867
3832
|
}
|
|
3868
|
-
return
|
|
3833
|
+
return $i(s);
|
|
3869
3834
|
}
|
|
3870
|
-
function
|
|
3871
|
-
return t ?
|
|
3872
|
-
return r
|
|
3835
|
+
function ki(e, t) {
|
|
3836
|
+
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3837
|
+
return n[r] = x(x({}, e[r]), t[r] || {}), n;
|
|
3873
3838
|
}, {})) : e;
|
|
3874
3839
|
}
|
|
3875
|
-
function
|
|
3876
|
-
return t ? Object.keys(e).reduce(function(
|
|
3877
|
-
return r
|
|
3878
|
-
},
|
|
3840
|
+
function Vi(e, t) {
|
|
3841
|
+
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3842
|
+
return n[r] = ki(e[r], t[r]), n;
|
|
3843
|
+
}, x({}, e)) : e;
|
|
3879
3844
|
}
|
|
3880
|
-
function
|
|
3845
|
+
function ke(e) {
|
|
3881
3846
|
return {
|
|
3882
3847
|
create: function() {
|
|
3883
3848
|
return {
|
|
3884
3849
|
get: function(t) {
|
|
3885
3850
|
return e[t];
|
|
3886
3851
|
},
|
|
3887
|
-
set: function(t,
|
|
3888
|
-
e[t] =
|
|
3852
|
+
set: function(t, n) {
|
|
3853
|
+
e[t] = n;
|
|
3889
3854
|
}
|
|
3890
3855
|
};
|
|
3891
3856
|
}
|
|
3892
3857
|
};
|
|
3893
3858
|
}
|
|
3894
|
-
function
|
|
3859
|
+
function Wi(e) {
|
|
3895
3860
|
return e === void 0 && (e = {
|
|
3896
3861
|
number: {},
|
|
3897
3862
|
dateTime: {},
|
|
3898
3863
|
pluralRules: {}
|
|
3899
3864
|
}), {
|
|
3900
|
-
getNumberFormat:
|
|
3901
|
-
for (var t,
|
|
3902
|
-
r
|
|
3903
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3865
|
+
getNumberFormat: De(function() {
|
|
3866
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3867
|
+
n[r] = arguments[r];
|
|
3868
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, te([void 0], n, !1)))();
|
|
3904
3869
|
}, {
|
|
3905
|
-
cache:
|
|
3906
|
-
strategy:
|
|
3870
|
+
cache: ke(e.number),
|
|
3871
|
+
strategy: $e.variadic
|
|
3907
3872
|
}),
|
|
3908
|
-
getDateTimeFormat:
|
|
3909
|
-
for (var t,
|
|
3910
|
-
r
|
|
3911
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3873
|
+
getDateTimeFormat: De(function() {
|
|
3874
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3875
|
+
n[r] = arguments[r];
|
|
3876
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, te([void 0], n, !1)))();
|
|
3912
3877
|
}, {
|
|
3913
|
-
cache:
|
|
3914
|
-
strategy:
|
|
3878
|
+
cache: ke(e.dateTime),
|
|
3879
|
+
strategy: $e.variadic
|
|
3915
3880
|
}),
|
|
3916
|
-
getPluralRules:
|
|
3917
|
-
for (var t,
|
|
3918
|
-
r
|
|
3919
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3881
|
+
getPluralRules: De(function() {
|
|
3882
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3883
|
+
n[r] = arguments[r];
|
|
3884
|
+
return new ((t = Intl.PluralRules).bind.apply(t, te([void 0], n, !1)))();
|
|
3920
3885
|
}, {
|
|
3921
|
-
cache:
|
|
3922
|
-
strategy:
|
|
3886
|
+
cache: ke(e.pluralRules),
|
|
3887
|
+
strategy: $e.variadic
|
|
3923
3888
|
})
|
|
3924
3889
|
};
|
|
3925
3890
|
}
|
|
3926
|
-
var
|
|
3891
|
+
var Xi = (
|
|
3927
3892
|
/** @class */
|
|
3928
3893
|
function() {
|
|
3929
|
-
function e(t,
|
|
3930
|
-
|
|
3894
|
+
function e(t, n, r, i) {
|
|
3895
|
+
n === void 0 && (n = e.defaultLocale);
|
|
3931
3896
|
var o = this;
|
|
3932
3897
|
if (this.formatterCache = {
|
|
3933
3898
|
number: {},
|
|
@@ -3950,18 +3915,18 @@ var Qi = (
|
|
|
3950
3915
|
};
|
|
3951
3916
|
}, this.getAst = function() {
|
|
3952
3917
|
return o.ast;
|
|
3953
|
-
}, this.locales =
|
|
3918
|
+
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
3954
3919
|
if (this.message = t, !e.__parse)
|
|
3955
3920
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3956
3921
|
var a = i || {};
|
|
3957
3922
|
a.formatters;
|
|
3958
|
-
var s =
|
|
3959
|
-
this.ast = e.__parse(t,
|
|
3923
|
+
var s = Sr(a, ["formatters"]);
|
|
3924
|
+
this.ast = e.__parse(t, x(x({}, s), { locale: this.resolvedLocale }));
|
|
3960
3925
|
} else
|
|
3961
3926
|
this.ast = t;
|
|
3962
3927
|
if (!Array.isArray(this.ast))
|
|
3963
3928
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3964
|
-
this.formats =
|
|
3929
|
+
this.formats = Vi(e.formats, r), this.formatters = i && i.formatters || Wi(this.formatterCache);
|
|
3965
3930
|
}
|
|
3966
3931
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3967
3932
|
get: function() {
|
|
@@ -3971,10 +3936,10 @@ var Qi = (
|
|
|
3971
3936
|
configurable: !0
|
|
3972
3937
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3973
3938
|
if (typeof Intl.Locale != "undefined") {
|
|
3974
|
-
var
|
|
3975
|
-
return
|
|
3939
|
+
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3940
|
+
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3976
3941
|
}
|
|
3977
|
-
}, e.__parse =
|
|
3942
|
+
}, e.__parse = Ui, e.formats = {
|
|
3978
3943
|
number: {
|
|
3979
3944
|
integer: {
|
|
3980
3945
|
maximumFractionDigits: 0
|
|
@@ -4035,113 +4000,113 @@ var Qi = (
|
|
|
4035
4000
|
}, e;
|
|
4036
4001
|
}()
|
|
4037
4002
|
);
|
|
4038
|
-
function
|
|
4003
|
+
function zi(e, t) {
|
|
4039
4004
|
if (t == null)
|
|
4040
4005
|
return;
|
|
4041
4006
|
if (t in e)
|
|
4042
4007
|
return e[t];
|
|
4043
|
-
const
|
|
4044
|
-
let
|
|
4045
|
-
for (let i = 0; i <
|
|
4046
|
-
if (typeof
|
|
4008
|
+
const n = t.split(".");
|
|
4009
|
+
let r = e;
|
|
4010
|
+
for (let i = 0; i < n.length; i++)
|
|
4011
|
+
if (typeof r == "object") {
|
|
4047
4012
|
if (i > 0) {
|
|
4048
|
-
const o =
|
|
4049
|
-
if (o in
|
|
4050
|
-
|
|
4013
|
+
const o = n.slice(i, n.length).join(".");
|
|
4014
|
+
if (o in r) {
|
|
4015
|
+
r = r[o];
|
|
4051
4016
|
break;
|
|
4052
4017
|
}
|
|
4053
4018
|
}
|
|
4054
|
-
|
|
4019
|
+
r = r[n[i]];
|
|
4055
4020
|
} else
|
|
4056
|
-
|
|
4057
|
-
return
|
|
4021
|
+
r = void 0;
|
|
4022
|
+
return r;
|
|
4058
4023
|
}
|
|
4059
|
-
const j = {},
|
|
4024
|
+
const j = {}, Ji = (e, t, n) => n && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = n), n), Tn = (e, t) => {
|
|
4060
4025
|
if (t == null)
|
|
4061
4026
|
return;
|
|
4062
4027
|
if (t in j && e in j[t])
|
|
4063
4028
|
return j[t][e];
|
|
4064
|
-
const
|
|
4065
|
-
for (let
|
|
4066
|
-
const i = r
|
|
4029
|
+
const n = Me(t);
|
|
4030
|
+
for (let r = 0; r < n.length; r++) {
|
|
4031
|
+
const i = n[r], o = Qi(i, e);
|
|
4067
4032
|
if (o)
|
|
4068
|
-
return
|
|
4033
|
+
return Ji(e, t, o);
|
|
4069
4034
|
}
|
|
4070
4035
|
};
|
|
4071
|
-
let
|
|
4072
|
-
const
|
|
4073
|
-
function
|
|
4074
|
-
return
|
|
4036
|
+
let lt;
|
|
4037
|
+
const se = Ie({});
|
|
4038
|
+
function Zi(e) {
|
|
4039
|
+
return lt[e] || null;
|
|
4075
4040
|
}
|
|
4076
|
-
function
|
|
4077
|
-
return e in
|
|
4041
|
+
function Hn(e) {
|
|
4042
|
+
return e in lt;
|
|
4078
4043
|
}
|
|
4079
|
-
function
|
|
4080
|
-
if (!
|
|
4044
|
+
function Qi(e, t) {
|
|
4045
|
+
if (!Hn(e))
|
|
4081
4046
|
return null;
|
|
4082
|
-
const
|
|
4083
|
-
return
|
|
4047
|
+
const n = Zi(e);
|
|
4048
|
+
return zi(n, t);
|
|
4084
4049
|
}
|
|
4085
|
-
function
|
|
4050
|
+
function Yi(e) {
|
|
4086
4051
|
if (e == null)
|
|
4087
4052
|
return;
|
|
4088
|
-
const t =
|
|
4089
|
-
for (let
|
|
4090
|
-
const
|
|
4091
|
-
if (
|
|
4092
|
-
return
|
|
4053
|
+
const t = Me(e);
|
|
4054
|
+
for (let n = 0; n < t.length; n++) {
|
|
4055
|
+
const r = t[n];
|
|
4056
|
+
if (Hn(r))
|
|
4057
|
+
return r;
|
|
4093
4058
|
}
|
|
4094
4059
|
}
|
|
4095
|
-
function
|
|
4096
|
-
delete j[e],
|
|
4060
|
+
function Bn(e, ...t) {
|
|
4061
|
+
delete j[e], se.update((n) => (n[e] = ti.all([n[e] || {}, ...t]), n));
|
|
4097
4062
|
}
|
|
4098
|
-
|
|
4099
|
-
[
|
|
4063
|
+
ae(
|
|
4064
|
+
[se],
|
|
4100
4065
|
([e]) => Object.keys(e)
|
|
4101
4066
|
);
|
|
4102
|
-
|
|
4067
|
+
se.subscribe((e) => lt = e);
|
|
4103
4068
|
const He = {};
|
|
4104
|
-
function
|
|
4069
|
+
function qi(e, t) {
|
|
4105
4070
|
He[e].delete(t), He[e].size === 0 && delete He[e];
|
|
4106
4071
|
}
|
|
4107
|
-
function
|
|
4072
|
+
function An(e) {
|
|
4108
4073
|
return He[e];
|
|
4109
4074
|
}
|
|
4110
|
-
function
|
|
4111
|
-
return
|
|
4112
|
-
const
|
|
4113
|
-
return [t,
|
|
4075
|
+
function Ki(e) {
|
|
4076
|
+
return Me(e).map((t) => {
|
|
4077
|
+
const n = An(t);
|
|
4078
|
+
return [t, n ? [...n] : []];
|
|
4114
4079
|
}).filter(([, t]) => t.length > 0);
|
|
4115
4080
|
}
|
|
4116
|
-
function
|
|
4117
|
-
return e == null ? !1 :
|
|
4081
|
+
function ot(e) {
|
|
4082
|
+
return e == null ? !1 : Me(e).some(
|
|
4118
4083
|
(t) => {
|
|
4119
|
-
var
|
|
4120
|
-
return (
|
|
4084
|
+
var n;
|
|
4085
|
+
return (n = An(t)) == null ? void 0 : n.size;
|
|
4121
4086
|
}
|
|
4122
4087
|
);
|
|
4123
4088
|
}
|
|
4124
|
-
function
|
|
4089
|
+
function eo(e, t) {
|
|
4125
4090
|
return Promise.all(
|
|
4126
|
-
t.map((
|
|
4127
|
-
).then((
|
|
4128
|
-
}
|
|
4129
|
-
const
|
|
4130
|
-
function
|
|
4131
|
-
if (!
|
|
4132
|
-
return e in
|
|
4133
|
-
const t =
|
|
4134
|
-
return
|
|
4091
|
+
t.map((r) => (qi(e, r), r().then((i) => i.default || i)))
|
|
4092
|
+
).then((r) => Bn(e, ...r));
|
|
4093
|
+
}
|
|
4094
|
+
const he = {};
|
|
4095
|
+
function Pn(e) {
|
|
4096
|
+
if (!ot(e))
|
|
4097
|
+
return e in he ? he[e] : Promise.resolve();
|
|
4098
|
+
const t = Ki(e);
|
|
4099
|
+
return he[e] = Promise.all(
|
|
4135
4100
|
t.map(
|
|
4136
|
-
([
|
|
4101
|
+
([n, r]) => eo(n, r)
|
|
4137
4102
|
)
|
|
4138
4103
|
).then(() => {
|
|
4139
|
-
if (
|
|
4140
|
-
return
|
|
4141
|
-
delete
|
|
4142
|
-
}),
|
|
4104
|
+
if (ot(e))
|
|
4105
|
+
return Pn(e);
|
|
4106
|
+
delete he[e];
|
|
4107
|
+
}), he[e];
|
|
4143
4108
|
}
|
|
4144
|
-
const
|
|
4109
|
+
const to = {
|
|
4145
4110
|
number: {
|
|
4146
4111
|
scientific: { notation: "scientific" },
|
|
4147
4112
|
engineering: { notation: "engineering" },
|
|
@@ -4170,136 +4135,136 @@ const oo = {
|
|
|
4170
4135
|
timeZoneName: "short"
|
|
4171
4136
|
}
|
|
4172
4137
|
}
|
|
4173
|
-
},
|
|
4138
|
+
}, no = {
|
|
4174
4139
|
fallbackLocale: null,
|
|
4175
4140
|
loadingDelay: 200,
|
|
4176
|
-
formats:
|
|
4141
|
+
formats: to,
|
|
4177
4142
|
warnOnMissingMessages: !0,
|
|
4178
4143
|
handleMissingMessage: void 0,
|
|
4179
4144
|
ignoreTag: !0
|
|
4180
|
-
},
|
|
4181
|
-
function
|
|
4182
|
-
return
|
|
4183
|
-
}
|
|
4184
|
-
const
|
|
4185
|
-
var
|
|
4186
|
-
for (var
|
|
4187
|
-
|
|
4188
|
-
if (
|
|
4189
|
-
for (var
|
|
4190
|
-
|
|
4145
|
+
}, ro = no;
|
|
4146
|
+
function oe() {
|
|
4147
|
+
return ro;
|
|
4148
|
+
}
|
|
4149
|
+
const Ve = Ie(!1);
|
|
4150
|
+
var io = Object.defineProperty, oo = Object.defineProperties, ao = Object.getOwnPropertyDescriptors, Ut = Object.getOwnPropertySymbols, so = Object.prototype.hasOwnProperty, uo = Object.prototype.propertyIsEnumerable, Ft = (e, t, n) => t in e ? io(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, lo = (e, t) => {
|
|
4151
|
+
for (var n in t)
|
|
4152
|
+
so.call(t, n) && Ft(e, n, t[n]);
|
|
4153
|
+
if (Ut)
|
|
4154
|
+
for (var n of Ut(t))
|
|
4155
|
+
uo.call(t, n) && Ft(e, n, t[n]);
|
|
4191
4156
|
return e;
|
|
4192
|
-
},
|
|
4193
|
-
let
|
|
4194
|
-
const
|
|
4195
|
-
function
|
|
4196
|
-
return e.split("-").map((t,
|
|
4157
|
+
}, ho = (e, t) => oo(e, ao(t));
|
|
4158
|
+
let at;
|
|
4159
|
+
const Pe = Ie(null);
|
|
4160
|
+
function Dt(e) {
|
|
4161
|
+
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
4197
4162
|
}
|
|
4198
|
-
function
|
|
4199
|
-
const
|
|
4200
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
4163
|
+
function Me(e, t = oe().fallbackLocale) {
|
|
4164
|
+
const n = Dt(e);
|
|
4165
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...Dt(t)])] : n;
|
|
4201
4166
|
}
|
|
4202
4167
|
function Z() {
|
|
4203
|
-
return
|
|
4168
|
+
return at != null ? at : void 0;
|
|
4204
4169
|
}
|
|
4205
|
-
|
|
4206
|
-
|
|
4170
|
+
Pe.subscribe((e) => {
|
|
4171
|
+
at = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4207
4172
|
});
|
|
4208
|
-
const
|
|
4209
|
-
if (e &&
|
|
4210
|
-
const { loadingDelay: t } =
|
|
4211
|
-
let
|
|
4212
|
-
return typeof window != "undefined" && Z() != null && t ?
|
|
4213
|
-
() =>
|
|
4173
|
+
const co = (e) => {
|
|
4174
|
+
if (e && Yi(e) && ot(e)) {
|
|
4175
|
+
const { loadingDelay: t } = oe();
|
|
4176
|
+
let n;
|
|
4177
|
+
return typeof window != "undefined" && Z() != null && t ? n = window.setTimeout(
|
|
4178
|
+
() => Ve.set(!0),
|
|
4214
4179
|
t
|
|
4215
|
-
) :
|
|
4216
|
-
|
|
4180
|
+
) : Ve.set(!0), Pn(e).then(() => {
|
|
4181
|
+
Pe.set(e);
|
|
4217
4182
|
}).finally(() => {
|
|
4218
|
-
clearTimeout(
|
|
4183
|
+
clearTimeout(n), Ve.set(!1);
|
|
4219
4184
|
});
|
|
4220
4185
|
}
|
|
4221
|
-
return
|
|
4222
|
-
}, W =
|
|
4223
|
-
set:
|
|
4224
|
-
}),
|
|
4186
|
+
return Pe.set(e);
|
|
4187
|
+
}, W = ho(lo({}, Pe), {
|
|
4188
|
+
set: co
|
|
4189
|
+
}), Le = (e) => {
|
|
4225
4190
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4226
|
-
return (
|
|
4227
|
-
const i = JSON.stringify(
|
|
4228
|
-
return i in t ? t[i] : t[i] = e(
|
|
4191
|
+
return (r) => {
|
|
4192
|
+
const i = JSON.stringify(r);
|
|
4193
|
+
return i in t ? t[i] : t[i] = e(r);
|
|
4229
4194
|
};
|
|
4230
4195
|
};
|
|
4231
|
-
var
|
|
4232
|
-
for (var
|
|
4233
|
-
|
|
4196
|
+
var fo = Object.defineProperty, Re = Object.getOwnPropertySymbols, Rn = Object.prototype.hasOwnProperty, On = Object.prototype.propertyIsEnumerable, $t = (e, t, n) => t in e ? fo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ht = (e, t) => {
|
|
4197
|
+
for (var n in t || (t = {}))
|
|
4198
|
+
Rn.call(t, n) && $t(e, n, t[n]);
|
|
4234
4199
|
if (Re)
|
|
4235
|
-
for (var
|
|
4236
|
-
|
|
4200
|
+
for (var n of Re(t))
|
|
4201
|
+
On.call(t, n) && $t(e, n, t[n]);
|
|
4237
4202
|
return e;
|
|
4238
|
-
},
|
|
4239
|
-
var
|
|
4240
|
-
for (var
|
|
4241
|
-
|
|
4203
|
+
}, ue = (e, t) => {
|
|
4204
|
+
var n = {};
|
|
4205
|
+
for (var r in e)
|
|
4206
|
+
Rn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
4242
4207
|
if (e != null && Re)
|
|
4243
|
-
for (var
|
|
4244
|
-
t.indexOf(
|
|
4245
|
-
return
|
|
4208
|
+
for (var r of Re(e))
|
|
4209
|
+
t.indexOf(r) < 0 && On.call(e, r) && (n[r] = e[r]);
|
|
4210
|
+
return n;
|
|
4246
4211
|
};
|
|
4247
|
-
const
|
|
4248
|
-
const { formats:
|
|
4249
|
-
if (e in
|
|
4250
|
-
return
|
|
4212
|
+
const pe = (e, t) => {
|
|
4213
|
+
const { formats: n } = oe();
|
|
4214
|
+
if (e in n && t in n[e])
|
|
4215
|
+
return n[e][t];
|
|
4251
4216
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4252
|
-
},
|
|
4217
|
+
}, mo = Le(
|
|
4253
4218
|
(e) => {
|
|
4254
|
-
var t = e, { locale:
|
|
4255
|
-
if (
|
|
4219
|
+
var t = e, { locale: n, format: r } = t, i = ue(t, ["locale", "format"]);
|
|
4220
|
+
if (n == null)
|
|
4256
4221
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4257
|
-
return
|
|
4222
|
+
return r && (i = pe("number", r)), new Intl.NumberFormat(n, i);
|
|
4258
4223
|
}
|
|
4259
|
-
),
|
|
4224
|
+
), po = Le(
|
|
4260
4225
|
(e) => {
|
|
4261
|
-
var t = e, { locale:
|
|
4262
|
-
if (
|
|
4226
|
+
var t = e, { locale: n, format: r } = t, i = ue(t, ["locale", "format"]);
|
|
4227
|
+
if (n == null)
|
|
4263
4228
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4264
|
-
return
|
|
4229
|
+
return r ? i = pe("date", r) : Object.keys(i).length === 0 && (i = pe("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
4265
4230
|
}
|
|
4266
|
-
),
|
|
4231
|
+
), bo = Le(
|
|
4267
4232
|
(e) => {
|
|
4268
|
-
var t = e, { locale:
|
|
4269
|
-
if (
|
|
4233
|
+
var t = e, { locale: n, format: r } = t, i = ue(t, ["locale", "format"]);
|
|
4234
|
+
if (n == null)
|
|
4270
4235
|
throw new Error(
|
|
4271
4236
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4272
4237
|
);
|
|
4273
|
-
return
|
|
4238
|
+
return r ? i = pe("time", r) : Object.keys(i).length === 0 && (i = pe("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
4274
4239
|
}
|
|
4275
|
-
),
|
|
4240
|
+
), go = (e = {}) => {
|
|
4276
4241
|
var t = e, {
|
|
4277
|
-
locale:
|
|
4278
|
-
} = t,
|
|
4242
|
+
locale: n = Z()
|
|
4243
|
+
} = t, r = ue(t, [
|
|
4279
4244
|
"locale"
|
|
4280
4245
|
]);
|
|
4281
|
-
return
|
|
4282
|
-
},
|
|
4246
|
+
return mo(ht({ locale: n }, r));
|
|
4247
|
+
}, yo = (e = {}) => {
|
|
4283
4248
|
var t = e, {
|
|
4284
|
-
locale:
|
|
4285
|
-
} = t,
|
|
4249
|
+
locale: n = Z()
|
|
4250
|
+
} = t, r = ue(t, [
|
|
4286
4251
|
"locale"
|
|
4287
4252
|
]);
|
|
4288
|
-
return
|
|
4289
|
-
},
|
|
4253
|
+
return po(ht({ locale: n }, r));
|
|
4254
|
+
}, _o = (e = {}) => {
|
|
4290
4255
|
var t = e, {
|
|
4291
|
-
locale:
|
|
4292
|
-
} = t,
|
|
4256
|
+
locale: n = Z()
|
|
4257
|
+
} = t, r = ue(t, [
|
|
4293
4258
|
"locale"
|
|
4294
4259
|
]);
|
|
4295
|
-
return
|
|
4296
|
-
},
|
|
4260
|
+
return bo(ht({ locale: n }, r));
|
|
4261
|
+
}, xo = Le(
|
|
4297
4262
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4298
|
-
(e, t = Z()) => new
|
|
4299
|
-
ignoreTag:
|
|
4263
|
+
(e, t = Z()) => new Xi(e, t, oe().formats, {
|
|
4264
|
+
ignoreTag: oe().ignoreTag
|
|
4300
4265
|
})
|
|
4301
|
-
),
|
|
4302
|
-
var
|
|
4266
|
+
), vo = (e, t = {}) => {
|
|
4267
|
+
var n, r, i, o;
|
|
4303
4268
|
let a = t;
|
|
4304
4269
|
typeof e == "object" && (a = e, e = a.id);
|
|
4305
4270
|
const {
|
|
@@ -4311,9 +4276,9 @@ const de = (e, t) => {
|
|
|
4311
4276
|
throw new Error(
|
|
4312
4277
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4313
4278
|
);
|
|
4314
|
-
let u =
|
|
4279
|
+
let u = Tn(e, h);
|
|
4315
4280
|
if (!u)
|
|
4316
|
-
u = (o = (i = (
|
|
4281
|
+
u = (o = (i = (r = (n = oe()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
4317
4282
|
else if (typeof u != "string")
|
|
4318
4283
|
return console.warn(
|
|
4319
4284
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4322,7 +4287,7 @@ const de = (e, t) => {
|
|
|
4322
4287
|
return u;
|
|
4323
4288
|
let f = u;
|
|
4324
4289
|
try {
|
|
4325
|
-
f =
|
|
4290
|
+
f = xo(u, h).format(s);
|
|
4326
4291
|
} catch (c) {
|
|
4327
4292
|
c instanceof Error && console.warn(
|
|
4328
4293
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4330,48 +4295,48 @@ const de = (e, t) => {
|
|
|
4330
4295
|
);
|
|
4331
4296
|
}
|
|
4332
4297
|
return f;
|
|
4333
|
-
},
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
window.emWidgets = { topic:
|
|
4339
|
-
const
|
|
4340
|
-
function
|
|
4298
|
+
}, Eo = (e, t) => _o(t).format(e), wo = (e, t) => yo(t).format(e), So = (e, t) => go(t).format(e), To = (e, t = Z()) => Tn(e, t), Ho = ae([W, se], () => vo);
|
|
4299
|
+
ae([W], () => Eo);
|
|
4300
|
+
ae([W], () => wo);
|
|
4301
|
+
ae([W], () => So);
|
|
4302
|
+
ae([W, se], () => To);
|
|
4303
|
+
window.emWidgets = { topic: Ur };
|
|
4304
|
+
const Bo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4305
|
+
function Ao(e, t) {
|
|
4341
4306
|
if (e) {
|
|
4342
|
-
const
|
|
4343
|
-
|
|
4307
|
+
const n = document.createElement("style");
|
|
4308
|
+
n.innerHTML = t, e.appendChild(n);
|
|
4344
4309
|
}
|
|
4345
4310
|
}
|
|
4346
|
-
function
|
|
4347
|
-
const
|
|
4348
|
-
fetch(
|
|
4311
|
+
function Po(e, t) {
|
|
4312
|
+
const n = new URL(t);
|
|
4313
|
+
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
4349
4314
|
const i = document.createElement("style");
|
|
4350
|
-
i.innerHTML =
|
|
4351
|
-
}).catch((
|
|
4352
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
4315
|
+
i.innerHTML = r, e && e.appendChild(i);
|
|
4316
|
+
}).catch((r) => {
|
|
4317
|
+
console.error("There was an error while trying to load client styling from URL", r);
|
|
4353
4318
|
});
|
|
4354
4319
|
}
|
|
4355
|
-
function
|
|
4320
|
+
function Ro(e, t, n) {
|
|
4356
4321
|
if (window.emMessageBus) {
|
|
4357
|
-
const
|
|
4322
|
+
const r = document.createElement("style");
|
|
4358
4323
|
window.emMessageBus.subscribe(t, (i) => {
|
|
4359
|
-
|
|
4324
|
+
r.innerHTML = i, e && e.appendChild(r);
|
|
4360
4325
|
});
|
|
4361
4326
|
}
|
|
4362
4327
|
}
|
|
4363
|
-
function
|
|
4364
|
-
W.subscribe((
|
|
4365
|
-
|
|
4328
|
+
function Oo({ withLocale: e, translations: t }) {
|
|
4329
|
+
W.subscribe((n) => {
|
|
4330
|
+
n == null && (se.set(t), W.set(e));
|
|
4366
4331
|
});
|
|
4367
4332
|
}
|
|
4368
|
-
function
|
|
4369
|
-
|
|
4333
|
+
function jt(e, t) {
|
|
4334
|
+
Bn(e, t);
|
|
4370
4335
|
}
|
|
4371
|
-
function
|
|
4336
|
+
function Io(e) {
|
|
4372
4337
|
W.set(e);
|
|
4373
4338
|
}
|
|
4374
|
-
const
|
|
4339
|
+
const kt = {
|
|
4375
4340
|
en: {
|
|
4376
4341
|
playRandomGame: "Play a random game",
|
|
4377
4342
|
randomGameLoading: "Selecting ...",
|
|
@@ -4445,152 +4410,152 @@ const zt = {
|
|
|
4445
4410
|
noGames: "There are no random games to play"
|
|
4446
4411
|
}
|
|
4447
4412
|
};
|
|
4448
|
-
function
|
|
4449
|
-
|
|
4413
|
+
function No(e) {
|
|
4414
|
+
ir(e, "svelte-kfgfhx", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;width:90vw;min-height:380px;max-width:500px;padding:50px;border-top:3px solid var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));border-radius:5px;background:var(--emw--color-white, #FFFFFF)}.ModalWindow .ModalCloseBtn{position:absolute;top:10px;right:10px;border-radius:50%;color:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;width:28px;height:28px}.ModalWindow .ModalCloseBtn svg{width:28px;height:28px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.ModalWindow .ModalMobileContainer{padding:10px;border-top:none}.ModalWindow .ModalMobileContainer .ModalCloseBtn{margin:10px}.ModalWindow .ModalMobileContainer .ModalCloseBtn svg{width:24px;height:24px}.CasinoPlayRandomGameWrapper{min-height:0}.RandomGameWrapper{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;position:relative;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameWrapper .RandomGamesSliderWrapper{overflow:hidden;height:170px}.RandomGameWrapper .GamesContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;height:100%}.RandomGameWrapper .RandomGameLoading{padding:30px 0}.RandomGameWrapper .RandomGameImage{width:256px;height:170px;border-radius:5px;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomTryAgain{position:absolute;bottom:85px;right:-10px;background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--color-white, #FFFFFF);display:flex;align-items:center;padding:6px;border:none;border-radius:50%;cursor:pointer}.RandomTryAgain svg{width:22px;height:22px}.item{position:relative;-webkit-backface-visibility:hidden;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameDetails{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.RandomGameDetails .RandomGameTitle{margin:5px 0;font-size:16px;line-height:18px;text-align:center}.RandomGameDetails .RandomGameVendor{font-size:10px;margin-bottom:10px}.RandomGameDetails .RandomGamePlay{background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:none;border-radius:5px;width:200px;height:40px;font-size:14px;cursor:pointer}.RandomButtonWrapper{display:flex;justify-content:center;margin-top:30px;width:100%}.RandomButtonWrapper .RandomButton{display:flex;align-items:center;gap:5px;background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:none;border-radius:5px;padding:0 30px;height:50px;font-size:16px;cursor:pointer}");
|
|
4450
4415
|
}
|
|
4451
|
-
function
|
|
4452
|
-
const
|
|
4453
|
-
return
|
|
4416
|
+
function Vt(e, t, n) {
|
|
4417
|
+
const r = e.slice();
|
|
4418
|
+
return r[41] = t[n], r;
|
|
4454
4419
|
}
|
|
4455
|
-
const
|
|
4456
|
-
function
|
|
4457
|
-
let t,
|
|
4420
|
+
const Mo = (e) => ({}), Wt = (e) => ({});
|
|
4421
|
+
function Xt(e) {
|
|
4422
|
+
let t, n, r, i, o, a, s;
|
|
4458
4423
|
const h = (
|
|
4459
4424
|
/*#slots*/
|
|
4460
4425
|
e[23].close
|
|
4461
|
-
), l =
|
|
4426
|
+
), l = er(
|
|
4462
4427
|
h,
|
|
4463
4428
|
e,
|
|
4464
4429
|
/*$$scope*/
|
|
4465
4430
|
e[22],
|
|
4466
|
-
|
|
4467
|
-
), u = l ||
|
|
4468
|
-
function f(
|
|
4431
|
+
Wt
|
|
4432
|
+
), u = l || Lo();
|
|
4433
|
+
function f(m, p) {
|
|
4469
4434
|
return (
|
|
4470
4435
|
/*hasRandomGames*/
|
|
4471
|
-
|
|
4436
|
+
m[7] ? Go : Co
|
|
4472
4437
|
);
|
|
4473
4438
|
}
|
|
4474
|
-
let c = f(e),
|
|
4439
|
+
let c = f(e), d = c(e);
|
|
4475
4440
|
return {
|
|
4476
4441
|
c() {
|
|
4477
|
-
t =
|
|
4442
|
+
t = S("div"), n = S("div"), r = S("span"), u.c(), i = V(), d.c(), g(r, "class", "ModalCloseBtn"), g(r, "role", "button"), g(n, "class", "ModalContainer"), g(t, "class", "ModalWindow");
|
|
4478
4443
|
},
|
|
4479
|
-
m(
|
|
4480
|
-
I(
|
|
4481
|
-
|
|
4444
|
+
m(m, p) {
|
|
4445
|
+
I(m, t, p), v(t, n), v(n, r), u.m(r, null), v(n, i), d.m(n, null), o = !0, a || (s = Be(
|
|
4446
|
+
r,
|
|
4482
4447
|
"click",
|
|
4483
4448
|
/*closeModal*/
|
|
4484
4449
|
e[12]
|
|
4485
4450
|
), a = !0);
|
|
4486
4451
|
},
|
|
4487
|
-
p(
|
|
4452
|
+
p(m, p) {
|
|
4488
4453
|
l && l.p && (!o || p[0] & /*$$scope*/
|
|
4489
|
-
4194304) &&
|
|
4454
|
+
4194304) && nr(
|
|
4490
4455
|
l,
|
|
4491
4456
|
h,
|
|
4492
|
-
|
|
4457
|
+
m,
|
|
4493
4458
|
/*$$scope*/
|
|
4494
|
-
|
|
4495
|
-
o ?
|
|
4459
|
+
m[22],
|
|
4460
|
+
o ? tr(
|
|
4496
4461
|
h,
|
|
4497
4462
|
/*$$scope*/
|
|
4498
|
-
|
|
4463
|
+
m[22],
|
|
4499
4464
|
p,
|
|
4500
|
-
|
|
4501
|
-
) :
|
|
4465
|
+
Mo
|
|
4466
|
+
) : rr(
|
|
4502
4467
|
/*$$scope*/
|
|
4503
|
-
|
|
4468
|
+
m[22]
|
|
4504
4469
|
),
|
|
4505
|
-
|
|
4506
|
-
), c === (c = f(
|
|
4470
|
+
Wt
|
|
4471
|
+
), c === (c = f(m)) && d ? d.p(m, p) : (d.d(1), d = c(m), d && (d.c(), d.m(n, null)));
|
|
4507
4472
|
},
|
|
4508
|
-
i(
|
|
4509
|
-
o || (
|
|
4473
|
+
i(m) {
|
|
4474
|
+
o || (fe(u, m), o = !0);
|
|
4510
4475
|
},
|
|
4511
|
-
o(
|
|
4512
|
-
|
|
4476
|
+
o(m) {
|
|
4477
|
+
ze(u, m), o = !1;
|
|
4513
4478
|
},
|
|
4514
|
-
d(
|
|
4515
|
-
|
|
4479
|
+
d(m) {
|
|
4480
|
+
m && R(t), u.d(m), d.d(), a = !1, s();
|
|
4516
4481
|
}
|
|
4517
4482
|
};
|
|
4518
4483
|
}
|
|
4519
|
-
function
|
|
4520
|
-
let t,
|
|
4484
|
+
function Lo(e) {
|
|
4485
|
+
let t, n;
|
|
4521
4486
|
return {
|
|
4522
4487
|
c() {
|
|
4523
|
-
t =
|
|
4488
|
+
t = _t("svg"), n = _t("path"), g(n, "stroke-linecap", "round"), g(n, "stroke-linejoin", "round"), g(n, "stroke-width", "2"), g(n, "d", "M6 18L18 6M6 6l12 12"), g(t, "class", "w-6 h-6"), g(t, "fill", "none"), g(t, "stroke", "currentColor"), g(t, "viewBox", "0 0 24 24"), g(t, "xmlns", "http://www.w3.org/2000/svg");
|
|
4524
4489
|
},
|
|
4525
|
-
m(
|
|
4526
|
-
I(
|
|
4490
|
+
m(r, i) {
|
|
4491
|
+
I(r, t, i), v(t, n);
|
|
4527
4492
|
},
|
|
4528
|
-
p:
|
|
4529
|
-
d(
|
|
4530
|
-
|
|
4493
|
+
p: C,
|
|
4494
|
+
d(r) {
|
|
4495
|
+
r && R(t);
|
|
4531
4496
|
}
|
|
4532
4497
|
};
|
|
4533
4498
|
}
|
|
4534
|
-
function
|
|
4535
|
-
let t,
|
|
4499
|
+
function Co(e) {
|
|
4500
|
+
let t, n = (
|
|
4536
4501
|
/*$_*/
|
|
4537
4502
|
e[9]("noGames") + ""
|
|
4538
|
-
),
|
|
4503
|
+
), r;
|
|
4539
4504
|
return {
|
|
4540
4505
|
c() {
|
|
4541
|
-
t =
|
|
4506
|
+
t = S("p"), r = k(n), g(t, "class", "RandomGameLoading");
|
|
4542
4507
|
},
|
|
4543
4508
|
m(i, o) {
|
|
4544
|
-
I(i, t, o),
|
|
4509
|
+
I(i, t, o), v(t, r);
|
|
4545
4510
|
},
|
|
4546
4511
|
p(i, o) {
|
|
4547
4512
|
o[0] & /*$_*/
|
|
4548
|
-
512 &&
|
|
4549
|
-
i[9]("noGames") + "") && z(
|
|
4513
|
+
512 && n !== (n = /*$_*/
|
|
4514
|
+
i[9]("noGames") + "") && z(r, n);
|
|
4550
4515
|
},
|
|
4551
4516
|
d(i) {
|
|
4552
|
-
i &&
|
|
4517
|
+
i && R(t);
|
|
4553
4518
|
}
|
|
4554
4519
|
};
|
|
4555
4520
|
}
|
|
4556
|
-
function
|
|
4557
|
-
let t,
|
|
4521
|
+
function Go(e) {
|
|
4522
|
+
let t, n, r, i, o = vt(
|
|
4558
4523
|
/*gamesToShow*/
|
|
4559
4524
|
e[4]
|
|
4560
4525
|
), a = [];
|
|
4561
4526
|
for (let u = 0; u < o.length; u += 1)
|
|
4562
|
-
a[u] =
|
|
4527
|
+
a[u] = zt(Vt(e, o, u));
|
|
4563
4528
|
function s(u, f) {
|
|
4564
4529
|
return (
|
|
4565
4530
|
/*animationDone*/
|
|
4566
|
-
u[6] ?
|
|
4531
|
+
u[6] ? Fo : Uo
|
|
4567
4532
|
);
|
|
4568
4533
|
}
|
|
4569
4534
|
let h = s(e), l = h(e);
|
|
4570
4535
|
return {
|
|
4571
4536
|
c() {
|
|
4572
|
-
t =
|
|
4537
|
+
t = S("div"), n = S("main"), r = S("div");
|
|
4573
4538
|
for (let u = 0; u < a.length; u += 1)
|
|
4574
4539
|
a[u].c();
|
|
4575
|
-
i = V(), l.c(), g(
|
|
4540
|
+
i = V(), l.c(), g(r, "class", "GamesContainer"), g(n, "class", "RandomGamesSliderWrapper"), g(t, "class", "RandomGameWrapper");
|
|
4576
4541
|
},
|
|
4577
4542
|
m(u, f) {
|
|
4578
|
-
I(u, t, f),
|
|
4543
|
+
I(u, t, f), v(t, n), v(n, r);
|
|
4579
4544
|
for (let c = 0; c < a.length; c += 1)
|
|
4580
|
-
a[c] && a[c].m(
|
|
4581
|
-
e[24](
|
|
4545
|
+
a[c] && a[c].m(r, null);
|
|
4546
|
+
e[24](r), v(t, i), l.m(t, null);
|
|
4582
4547
|
},
|
|
4583
4548
|
p(u, f) {
|
|
4584
4549
|
if (f[0] & /*gamesToShow*/
|
|
4585
4550
|
16) {
|
|
4586
|
-
o =
|
|
4551
|
+
o = vt(
|
|
4587
4552
|
/*gamesToShow*/
|
|
4588
4553
|
u[4]
|
|
4589
4554
|
);
|
|
4590
4555
|
let c;
|
|
4591
4556
|
for (c = 0; c < o.length; c += 1) {
|
|
4592
|
-
const
|
|
4593
|
-
a[c] ? a[c].p(
|
|
4557
|
+
const d = Vt(u, o, c);
|
|
4558
|
+
a[c] ? a[c].p(d, f) : (a[c] = zt(d), a[c].c(), a[c].m(r, null));
|
|
4594
4559
|
}
|
|
4595
4560
|
for (; c < a.length; c += 1)
|
|
4596
4561
|
a[c].d(1);
|
|
@@ -4599,76 +4564,76 @@ function Do(e) {
|
|
|
4599
4564
|
h === (h = s(u)) && l ? l.p(u, f) : (l.d(1), l = h(u), l && (l.c(), l.m(t, null)));
|
|
4600
4565
|
},
|
|
4601
4566
|
d(u) {
|
|
4602
|
-
u &&
|
|
4567
|
+
u && R(t), sr(a, u), e[24](null), l.d();
|
|
4603
4568
|
}
|
|
4604
4569
|
};
|
|
4605
4570
|
}
|
|
4606
|
-
function
|
|
4607
|
-
let t,
|
|
4571
|
+
function zt(e) {
|
|
4572
|
+
let t, n, r, i, o, a;
|
|
4608
4573
|
return {
|
|
4609
4574
|
c() {
|
|
4610
|
-
t =
|
|
4611
|
-
e[41].thumbnail) || g(
|
|
4612
|
-
e[41].name), g(
|
|
4575
|
+
t = S("div"), n = S("img"), a = V(), g(n, "class", "RandomGameImage"), yt(n.src, r = /*game*/
|
|
4576
|
+
e[41].thumbnail) || g(n, "src", r), g(n, "alt", i = /*game*/
|
|
4577
|
+
e[41].name), g(n, "title", o = /*game*/
|
|
4613
4578
|
e[41].name), g(t, "class", "item");
|
|
4614
4579
|
},
|
|
4615
4580
|
m(s, h) {
|
|
4616
|
-
I(s, t, h),
|
|
4581
|
+
I(s, t, h), v(t, n), v(t, a);
|
|
4617
4582
|
},
|
|
4618
4583
|
p(s, h) {
|
|
4619
4584
|
h[0] & /*gamesToShow*/
|
|
4620
|
-
16 && !
|
|
4621
|
-
s[41].thumbnail) && g(
|
|
4585
|
+
16 && !yt(n.src, r = /*game*/
|
|
4586
|
+
s[41].thumbnail) && g(n, "src", r), h[0] & /*gamesToShow*/
|
|
4622
4587
|
16 && i !== (i = /*game*/
|
|
4623
|
-
s[41].name) && g(
|
|
4588
|
+
s[41].name) && g(n, "alt", i), h[0] & /*gamesToShow*/
|
|
4624
4589
|
16 && o !== (o = /*game*/
|
|
4625
|
-
s[41].name) && g(
|
|
4590
|
+
s[41].name) && g(n, "title", o);
|
|
4626
4591
|
},
|
|
4627
4592
|
d(s) {
|
|
4628
|
-
s &&
|
|
4593
|
+
s && R(t);
|
|
4629
4594
|
}
|
|
4630
4595
|
};
|
|
4631
4596
|
}
|
|
4632
|
-
function
|
|
4633
|
-
let t,
|
|
4597
|
+
function Uo(e) {
|
|
4598
|
+
let t, n = (
|
|
4634
4599
|
/*$_*/
|
|
4635
4600
|
e[9]("randomGameLoading") + ""
|
|
4636
|
-
),
|
|
4601
|
+
), r;
|
|
4637
4602
|
return {
|
|
4638
4603
|
c() {
|
|
4639
|
-
t =
|
|
4604
|
+
t = S("p"), r = k(n), g(t, "class", "RandomGameLoading");
|
|
4640
4605
|
},
|
|
4641
4606
|
m(i, o) {
|
|
4642
|
-
I(i, t, o),
|
|
4607
|
+
I(i, t, o), v(t, r);
|
|
4643
4608
|
},
|
|
4644
4609
|
p(i, o) {
|
|
4645
4610
|
o[0] & /*$_*/
|
|
4646
|
-
512 &&
|
|
4647
|
-
i[9]("randomGameLoading") + "") && z(
|
|
4611
|
+
512 && n !== (n = /*$_*/
|
|
4612
|
+
i[9]("randomGameLoading") + "") && z(r, n);
|
|
4648
4613
|
},
|
|
4649
4614
|
d(i) {
|
|
4650
|
-
i &&
|
|
4615
|
+
i && R(t);
|
|
4651
4616
|
}
|
|
4652
4617
|
};
|
|
4653
4618
|
}
|
|
4654
|
-
function
|
|
4655
|
-
let t,
|
|
4619
|
+
function Fo(e) {
|
|
4620
|
+
let t, n, r, i, o = (
|
|
4656
4621
|
/*randomGame*/
|
|
4657
4622
|
e[3].name + ""
|
|
4658
4623
|
), a, s, h, l = (
|
|
4659
4624
|
/*randomGame*/
|
|
4660
4625
|
e[3].vendor.name + ""
|
|
4661
|
-
), u, f, c,
|
|
4626
|
+
), u, f, c, d = (
|
|
4662
4627
|
/*$_*/
|
|
4663
4628
|
e[9]("playNowRandomGame") + ""
|
|
4664
|
-
),
|
|
4629
|
+
), m, p, A;
|
|
4665
4630
|
return {
|
|
4666
4631
|
c() {
|
|
4667
|
-
t =
|
|
4668
|
-
</style><path class="st0" d="M162.4,161.2C145.3,178.5,122.7,187,100,187c-19.1,0-38.2-6.2-54-18.4l2.2,24c0.4,3.6-2.4,6.9-6,7.3h-0.7 c-3.3,0-6.2-2.7-6.7-6l-3.8-41.1c-0.4-3.6,2.4-6.9,6-7.3l40.9-3.8c3.6-0.4,6.9,2.4,7.3,6c0.4,3.6-2.4,6.9-6,7.3l-26,2.4 c29.3,23.3,72.4,21.6,99.5-5.6c19.8-19.8,26.9-48.7,18.4-75.3c-1.1-3.6,0.9-7.3,4.4-8.4c3.6-1.1,7.3,0.9,8.4,4.4 C194,103.9,185.8,137.9,162.4,161.2L162.4,161.2z M47.1,47.9c27.1-27.1,70.2-29.1,99.5-5.6l-26,2.4c-3.6,0.4-6.4,3.6-6,7.3 c0.2,3.6,3.3,6,6.7,6h0.7l40.9-3.8c3.6-0.4,6.4-3.6,6-7.3l-4-41.1c-0.4-3.6-3.6-6.4-7.3-6c-3.6,0.4-6.4,3.6-6,7.3l2.2,24 C119.3,4.4,69.3,6.8,37.6,38.6C14.2,61.9,6,95.9,15.8,127.2c0.9,2.9,3.6,4.7,6.4,4.7c0.7,0,1.3,0,2-0.2c3.6-1.1,5.6-4.9,4.4-8.4 C20.2,96.6,27.4,67.7,47.1,47.9L47.1,47.9z"></path></svg>`,
|
|
4632
|
+
t = S("button"), t.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve"><style type="text/css">.st0{fill:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));}
|
|
4633
|
+
</style><path class="st0" d="M162.4,161.2C145.3,178.5,122.7,187,100,187c-19.1,0-38.2-6.2-54-18.4l2.2,24c0.4,3.6-2.4,6.9-6,7.3h-0.7 c-3.3,0-6.2-2.7-6.7-6l-3.8-41.1c-0.4-3.6,2.4-6.9,6-7.3l40.9-3.8c3.6-0.4,6.9,2.4,7.3,6c0.4,3.6-2.4,6.9-6,7.3l-26,2.4 c29.3,23.3,72.4,21.6,99.5-5.6c19.8-19.8,26.9-48.7,18.4-75.3c-1.1-3.6,0.9-7.3,4.4-8.4c3.6-1.1,7.3,0.9,8.4,4.4 C194,103.9,185.8,137.9,162.4,161.2L162.4,161.2z M47.1,47.9c27.1-27.1,70.2-29.1,99.5-5.6l-26,2.4c-3.6,0.4-6.4,3.6-6,7.3 c0.2,3.6,3.3,6,6.7,6h0.7l40.9-3.8c3.6-0.4,6.4-3.6,6-7.3l-4-41.1c-0.4-3.6-3.6-6.4-7.3-6c-3.6,0.4-6.4,3.6-6,7.3l2.2,24 C119.3,4.4,69.3,6.8,37.6,38.6C14.2,61.9,6,95.9,15.8,127.2c0.9,2.9,3.6,4.7,6.4,4.7c0.7,0,1.3,0,2-0.2c3.6-1.1,5.6-4.9,4.4-8.4 C20.2,96.6,27.4,67.7,47.1,47.9L47.1,47.9z"></path></svg>`, n = V(), r = S("div"), i = S("p"), a = k(o), s = V(), h = S("p"), u = k(l), f = V(), c = S("button"), m = k(d), g(t, "class", "RandomTryAgain"), g(i, "class", "RandomGameTitle"), g(h, "class", "RandomGameVendor"), g(c, "class", "RandomGamePlay"), g(r, "class", "RandomGameDetails");
|
|
4669
4634
|
},
|
|
4670
4635
|
m(H, T) {
|
|
4671
|
-
I(H, t, T), I(H,
|
|
4636
|
+
I(H, t, T), I(H, n, T), I(H, r, T), v(r, i), v(i, a), v(r, s), v(r, h), v(h, u), v(r, f), v(r, c), v(c, m), p || (A = [
|
|
4672
4637
|
Be(
|
|
4673
4638
|
t,
|
|
4674
4639
|
"click",
|
|
@@ -4689,83 +4654,83 @@ function ko(e) {
|
|
|
4689
4654
|
H[3].name + "") && z(a, o), T[0] & /*randomGame*/
|
|
4690
4655
|
8 && l !== (l = /*randomGame*/
|
|
4691
4656
|
H[3].vendor.name + "") && z(u, l), T[0] & /*$_*/
|
|
4692
|
-
512 &&
|
|
4693
|
-
H[9]("playNowRandomGame") + "") && z(
|
|
4657
|
+
512 && d !== (d = /*$_*/
|
|
4658
|
+
H[9]("playNowRandomGame") + "") && z(m, d);
|
|
4694
4659
|
},
|
|
4695
4660
|
d(H) {
|
|
4696
|
-
H && (
|
|
4661
|
+
H && (R(t), R(n), R(r)), p = !1, J(A);
|
|
4697
4662
|
}
|
|
4698
4663
|
};
|
|
4699
4664
|
}
|
|
4700
|
-
function
|
|
4701
|
-
let t,
|
|
4665
|
+
function Do(e) {
|
|
4666
|
+
let t, n = (
|
|
4702
4667
|
/*$_*/
|
|
4703
4668
|
e[9]("playRandomGame") + ""
|
|
4704
|
-
),
|
|
4669
|
+
), r;
|
|
4705
4670
|
return {
|
|
4706
4671
|
c() {
|
|
4707
|
-
t =
|
|
4672
|
+
t = S("span"), r = k(n), g(t, "class", "RandomButtonText");
|
|
4708
4673
|
},
|
|
4709
4674
|
m(i, o) {
|
|
4710
|
-
I(i, t, o),
|
|
4675
|
+
I(i, t, o), v(t, r);
|
|
4711
4676
|
},
|
|
4712
4677
|
p(i, o) {
|
|
4713
4678
|
o[0] & /*$_*/
|
|
4714
|
-
512 &&
|
|
4715
|
-
i[9]("playRandomGame") + "") && z(
|
|
4679
|
+
512 && n !== (n = /*$_*/
|
|
4680
|
+
i[9]("playRandomGame") + "") && z(r, n);
|
|
4716
4681
|
},
|
|
4717
4682
|
d(i) {
|
|
4718
|
-
i &&
|
|
4683
|
+
i && R(t);
|
|
4719
4684
|
}
|
|
4720
4685
|
};
|
|
4721
4686
|
}
|
|
4722
|
-
function
|
|
4723
|
-
let t,
|
|
4687
|
+
function $o(e) {
|
|
4688
|
+
let t, n;
|
|
4724
4689
|
return {
|
|
4725
4690
|
c() {
|
|
4726
|
-
t =
|
|
4691
|
+
t = S("span"), n = k(
|
|
4727
4692
|
/*buttontext*/
|
|
4728
4693
|
e[1]
|
|
4729
4694
|
), g(t, "class", "RandomButtonText");
|
|
4730
4695
|
},
|
|
4731
|
-
m(
|
|
4732
|
-
I(
|
|
4696
|
+
m(r, i) {
|
|
4697
|
+
I(r, t, i), v(t, n);
|
|
4733
4698
|
},
|
|
4734
|
-
p(
|
|
4699
|
+
p(r, i) {
|
|
4735
4700
|
i[0] & /*buttontext*/
|
|
4736
4701
|
2 && z(
|
|
4737
|
-
|
|
4702
|
+
n,
|
|
4738
4703
|
/*buttontext*/
|
|
4739
|
-
|
|
4704
|
+
r[1]
|
|
4740
4705
|
);
|
|
4741
4706
|
},
|
|
4742
|
-
d(
|
|
4743
|
-
|
|
4707
|
+
d(r) {
|
|
4708
|
+
r && R(t);
|
|
4744
4709
|
}
|
|
4745
4710
|
};
|
|
4746
4711
|
}
|
|
4747
|
-
function
|
|
4748
|
-
let t,
|
|
4712
|
+
function jo(e) {
|
|
4713
|
+
let t, n, r, i, o, a, s, h, l, u = (
|
|
4749
4714
|
/*show*/
|
|
4750
|
-
e[5] &&
|
|
4715
|
+
e[5] && Xt(e)
|
|
4751
4716
|
);
|
|
4752
|
-
function f(
|
|
4717
|
+
function f(m, p) {
|
|
4753
4718
|
if (
|
|
4754
4719
|
/*buttontext*/
|
|
4755
|
-
|
|
4720
|
+
m[1]
|
|
4756
4721
|
)
|
|
4757
|
-
return
|
|
4722
|
+
return $o;
|
|
4758
4723
|
if (!/*buttontext*/
|
|
4759
|
-
|
|
4760
|
-
return
|
|
4724
|
+
m[1])
|
|
4725
|
+
return Do;
|
|
4761
4726
|
}
|
|
4762
|
-
let c = f(e),
|
|
4727
|
+
let c = f(e), d = c && c(e);
|
|
4763
4728
|
return {
|
|
4764
4729
|
c() {
|
|
4765
|
-
t =
|
|
4730
|
+
t = S("div"), u && u.c(), n = V(), r = S("div"), i = S("button"), d && d.c(), o = V(), a = S("span"), g(a, "class", "RandomButtonIcon"), g(i, "class", "RandomButton"), g(r, "class", "RandomButtonWrapper");
|
|
4766
4731
|
},
|
|
4767
|
-
m(
|
|
4768
|
-
I(
|
|
4732
|
+
m(m, p) {
|
|
4733
|
+
I(m, t, p), u && u.m(t, null), v(t, n), v(t, r), v(r, i), d && d.m(i, null), v(i, o), v(i, a), a.innerHTML = /*randombuttonicon*/
|
|
4769
4734
|
e[0], e[28](t), s = !0, h || (l = Be(
|
|
4770
4735
|
i,
|
|
4771
4736
|
"click",
|
|
@@ -4773,156 +4738,156 @@ function Xo(e) {
|
|
|
4773
4738
|
e[27]
|
|
4774
4739
|
), h = !0);
|
|
4775
4740
|
},
|
|
4776
|
-
p(
|
|
4741
|
+
p(m, p) {
|
|
4777
4742
|
/*show*/
|
|
4778
|
-
|
|
4779
|
-
32 &&
|
|
4743
|
+
m[5] ? u ? (u.p(m, p), p[0] & /*show*/
|
|
4744
|
+
32 && fe(u, 1)) : (u = Xt(m), u.c(), fe(u, 1), u.m(t, n)) : u && (pr(), ze(u, 1, 1, () => {
|
|
4780
4745
|
u = null;
|
|
4781
|
-
}),
|
|
4746
|
+
}), br()), c === (c = f(m)) && d ? d.p(m, p) : (d && d.d(1), d = c && c(m), d && (d.c(), d.m(i, o))), (!s || p[0] & /*randombuttonicon*/
|
|
4782
4747
|
1) && (a.innerHTML = /*randombuttonicon*/
|
|
4783
|
-
|
|
4748
|
+
m[0]);
|
|
4784
4749
|
},
|
|
4785
|
-
i(
|
|
4786
|
-
s || (
|
|
4750
|
+
i(m) {
|
|
4751
|
+
s || (fe(u), s = !0);
|
|
4787
4752
|
},
|
|
4788
|
-
o(
|
|
4789
|
-
|
|
4753
|
+
o(m) {
|
|
4754
|
+
ze(u), s = !1;
|
|
4790
4755
|
},
|
|
4791
|
-
d(
|
|
4792
|
-
|
|
4756
|
+
d(m) {
|
|
4757
|
+
m && R(t), u && u.d(), d && d.d(), e[28](null), h = !1, l();
|
|
4793
4758
|
}
|
|
4794
4759
|
};
|
|
4795
4760
|
}
|
|
4796
|
-
function
|
|
4797
|
-
let
|
|
4798
|
-
|
|
4799
|
-
let { $$slots: i = {}, $$scope: o } = t, { endpoint: a = "" } = t, { datasource: s = "" } = t, { gameevent: h = "" } = t, { lang: l = "" } = t, { randombuttonicon: u = "" } = t, { buttontext: f = "" } = t, { translationurl: c = "" } = t, { clientstyling:
|
|
4800
|
-
|
|
4801
|
-
const
|
|
4802
|
-
fetch(c).then((
|
|
4803
|
-
Object.keys(
|
|
4804
|
-
|
|
4761
|
+
function ko(e, t, n) {
|
|
4762
|
+
let r;
|
|
4763
|
+
Kn(e, Ho, (b) => n(9, r = b));
|
|
4764
|
+
let { $$slots: i = {}, $$scope: o } = t, { endpoint: a = "" } = t, { datasource: s = "" } = t, { gameevent: h = "" } = t, { lang: l = "" } = t, { randombuttonicon: u = "" } = t, { buttontext: f = "" } = t, { translationurl: c = "" } = t, { clientstyling: d = "" } = t, { clientstylingurl: m = "" } = t, { filteredrandomgamecategories: p = "" } = t, { mbsource: A } = t, H = [], T = "", B, M = !1, L = !1, G = !1, be = window.navigator.userAgent, U, Q, ct, ge, ft = null;
|
|
4765
|
+
Oo({ withLocale: "en", translations: {} });
|
|
4766
|
+
const In = () => {
|
|
4767
|
+
fetch(c).then((E) => E.json()).then((E) => {
|
|
4768
|
+
Object.keys(E).forEach((F) => {
|
|
4769
|
+
jt(F, E[F]);
|
|
4805
4770
|
});
|
|
4806
|
-
}).catch((
|
|
4807
|
-
console.log(
|
|
4771
|
+
}).catch((E) => {
|
|
4772
|
+
console.log(E);
|
|
4808
4773
|
});
|
|
4809
4774
|
};
|
|
4810
|
-
Object.keys(
|
|
4811
|
-
|
|
4775
|
+
Object.keys(kt).forEach((b) => {
|
|
4776
|
+
jt(b, kt[b]);
|
|
4812
4777
|
});
|
|
4813
|
-
const
|
|
4778
|
+
const Nn = () => {
|
|
4814
4779
|
let b = new URL(`${a}/v1/casino/games`);
|
|
4815
|
-
b.searchParams.append("platform",
|
|
4816
|
-
H =
|
|
4817
|
-
}).catch((
|
|
4818
|
-
console.log(
|
|
4780
|
+
b.searchParams.append("platform", Bo(be)), b.searchParams.append("datasource", s), b.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,categories"), p && b.searchParams.append("filter", `groups=${p}`), b.searchParams.append("expand", "categories,vendor"), b.searchParams.append("pagination", "offset=0,limit=1000"), fetch(b.href).then((E) => E.json()).then((E) => {
|
|
4781
|
+
H = E.items, H.length ? (n(4, B = Mn(H.slice(0, 19))), n(7, G = !0)) : (n(4, B = []), n(7, G = !1));
|
|
4782
|
+
}).catch((E) => {
|
|
4783
|
+
console.log(E), n(7, G = !1);
|
|
4819
4784
|
});
|
|
4820
|
-
},
|
|
4821
|
-
const
|
|
4822
|
-
return
|
|
4823
|
-
},
|
|
4824
|
-
yield
|
|
4825
|
-
}),
|
|
4826
|
-
|
|
4827
|
-
const b = window.getComputedStyle(Q).getPropertyValue("gap"),
|
|
4785
|
+
}, Mn = (b) => {
|
|
4786
|
+
const E = Cn(b);
|
|
4787
|
+
return E.concat(E);
|
|
4788
|
+
}, Ln = () => ye(this, null, function* () {
|
|
4789
|
+
yield fr(), ge = Math.floor(Math.random() * (B.length / 2)) + B.length / 2, n(3, T = B[ge]), ct = Q.children[ge];
|
|
4790
|
+
}), Ce = () => ye(this, null, function* () {
|
|
4791
|
+
n(6, L = !1), n(5, M = !0), window.postMessage({ type: "RandomWidgetState", state: !0 }, window.location.href), yield Ln();
|
|
4792
|
+
const b = window.getComputedStyle(Q).getPropertyValue("gap"), E = parseInt(b, 10) || 0, le = (ct.offsetHeight + E) * ge, Vn = [
|
|
4828
4793
|
{ transform: "translateX(0px)" },
|
|
4829
4794
|
{ filter: "blur(5px)" },
|
|
4830
4795
|
{
|
|
4831
|
-
transform: `translateY(-${
|
|
4796
|
+
transform: `translateY(-${le}px)`
|
|
4832
4797
|
}
|
|
4833
|
-
],
|
|
4798
|
+
], Wn = {
|
|
4834
4799
|
duration: 2e3,
|
|
4835
4800
|
easing: "cubic-bezier(0.5, 0, 0.5, 1.2)",
|
|
4836
4801
|
fill: "forwards"
|
|
4837
4802
|
};
|
|
4838
|
-
|
|
4839
|
-
|
|
4803
|
+
ft = Q.animate(Vn, Wn), ft.onfinish = () => {
|
|
4804
|
+
n(6, L = !0);
|
|
4840
4805
|
};
|
|
4841
|
-
}),
|
|
4842
|
-
const
|
|
4843
|
-
let F =
|
|
4806
|
+
}), Cn = (b) => {
|
|
4807
|
+
const E = structuredClone(b);
|
|
4808
|
+
let F = E.length, le;
|
|
4844
4809
|
for (; F != 0; )
|
|
4845
|
-
|
|
4846
|
-
return
|
|
4847
|
-
},
|
|
4810
|
+
le = Math.floor(Math.random() * F), F--, [E[F], E[le]] = [E[le], E[F]];
|
|
4811
|
+
return E;
|
|
4812
|
+
}, dt = () => {
|
|
4848
4813
|
window.postMessage(
|
|
4849
4814
|
{
|
|
4850
4815
|
type: h,
|
|
4851
4816
|
gameId: T.gId || T.id
|
|
4852
4817
|
},
|
|
4853
4818
|
window.location.href
|
|
4854
|
-
),
|
|
4819
|
+
), n(5, M = !1), window.postMessage({ type: "RandomWidgetState", state: !1 }, window.location.href), typeof gtag == "function" && gtag("event", "OpenGame", {
|
|
4855
4820
|
context: "RandomGameWidget",
|
|
4856
4821
|
gameId: `${T.gId || T.id}`
|
|
4857
4822
|
});
|
|
4858
|
-
},
|
|
4859
|
-
|
|
4860
|
-
},
|
|
4861
|
-
|
|
4823
|
+
}, Gn = () => {
|
|
4824
|
+
n(5, M = !1), window.postMessage({ type: "RandomWidgetState", state: M }, window.location.href);
|
|
4825
|
+
}, Un = () => {
|
|
4826
|
+
Io(l);
|
|
4862
4827
|
};
|
|
4863
|
-
|
|
4828
|
+
cr(() => () => {
|
|
4864
4829
|
});
|
|
4865
|
-
function
|
|
4830
|
+
function Fn(b) {
|
|
4866
4831
|
Ae[b ? "unshift" : "push"](() => {
|
|
4867
|
-
Q = b,
|
|
4832
|
+
Q = b, n(8, Q);
|
|
4868
4833
|
});
|
|
4869
4834
|
}
|
|
4870
|
-
const
|
|
4871
|
-
function
|
|
4835
|
+
const Dn = () => Ce(), $n = () => dt(), jn = () => Ce();
|
|
4836
|
+
function kn(b) {
|
|
4872
4837
|
Ae[b ? "unshift" : "push"](() => {
|
|
4873
|
-
|
|
4838
|
+
U = b, n(2, U);
|
|
4874
4839
|
});
|
|
4875
4840
|
}
|
|
4876
4841
|
return e.$$set = (b) => {
|
|
4877
|
-
"endpoint" in b &&
|
|
4842
|
+
"endpoint" in b && n(13, a = b.endpoint), "datasource" in b && n(14, s = b.datasource), "gameevent" in b && n(15, h = b.gameevent), "lang" in b && n(16, l = b.lang), "randombuttonicon" in b && n(0, u = b.randombuttonicon), "buttontext" in b && n(1, f = b.buttontext), "translationurl" in b && n(17, c = b.translationurl), "clientstyling" in b && n(18, d = b.clientstyling), "clientstylingurl" in b && n(19, m = b.clientstylingurl), "filteredrandomgamecategories" in b && n(20, p = b.filteredrandomgamecategories), "mbsource" in b && n(21, A = b.mbsource), "$$scope" in b && n(22, o = b.$$scope);
|
|
4878
4843
|
}, e.$$.update = () => {
|
|
4879
4844
|
e.$$.dirty[0] & /*lang*/
|
|
4880
|
-
65536 && l &&
|
|
4881
|
-
131072 && c &&
|
|
4882
|
-
24576 && a && s &&
|
|
4883
|
-
262148 &&
|
|
4884
|
-
524292 &&
|
|
4885
|
-
2097156 &&
|
|
4845
|
+
65536 && l && Un(), e.$$.dirty[0] & /*translationurl*/
|
|
4846
|
+
131072 && c && In(), e.$$.dirty[0] & /*endpoint, datasource*/
|
|
4847
|
+
24576 && a && s && Nn(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4848
|
+
262148 && d && U && Ao(U, d), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4849
|
+
524292 && m && U && Po(U, m), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
4850
|
+
2097156 && U && Ro(U, `${A}.Style`);
|
|
4886
4851
|
}, [
|
|
4887
4852
|
u,
|
|
4888
4853
|
f,
|
|
4889
|
-
|
|
4854
|
+
U,
|
|
4890
4855
|
T,
|
|
4891
4856
|
B,
|
|
4892
|
-
L,
|
|
4893
4857
|
M,
|
|
4894
|
-
|
|
4858
|
+
L,
|
|
4859
|
+
G,
|
|
4895
4860
|
Q,
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4861
|
+
r,
|
|
4862
|
+
Ce,
|
|
4863
|
+
dt,
|
|
4864
|
+
Gn,
|
|
4900
4865
|
a,
|
|
4901
4866
|
s,
|
|
4902
4867
|
h,
|
|
4903
4868
|
l,
|
|
4904
4869
|
c,
|
|
4905
|
-
m,
|
|
4906
4870
|
d,
|
|
4871
|
+
m,
|
|
4907
4872
|
p,
|
|
4908
4873
|
A,
|
|
4909
4874
|
o,
|
|
4910
4875
|
i,
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4876
|
+
Fn,
|
|
4877
|
+
Dn,
|
|
4878
|
+
$n,
|
|
4879
|
+
jn,
|
|
4880
|
+
kn
|
|
4916
4881
|
];
|
|
4917
4882
|
}
|
|
4918
|
-
class
|
|
4883
|
+
class Vo extends Er {
|
|
4919
4884
|
constructor(t) {
|
|
4920
|
-
super(),
|
|
4885
|
+
super(), xr(
|
|
4921
4886
|
this,
|
|
4922
4887
|
t,
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4888
|
+
ko,
|
|
4889
|
+
jo,
|
|
4890
|
+
Zt,
|
|
4926
4891
|
{
|
|
4927
4892
|
endpoint: 13,
|
|
4928
4893
|
datasource: 14,
|
|
@@ -4936,7 +4901,7 @@ class Jo extends Hn {
|
|
|
4936
4901
|
filteredrandomgamecategories: 20,
|
|
4937
4902
|
mbsource: 21
|
|
4938
4903
|
},
|
|
4939
|
-
|
|
4904
|
+
No,
|
|
4940
4905
|
[-1, -1]
|
|
4941
4906
|
);
|
|
4942
4907
|
}
|
|
@@ -4944,70 +4909,70 @@ class Jo extends Hn {
|
|
|
4944
4909
|
return this.$$.ctx[13];
|
|
4945
4910
|
}
|
|
4946
4911
|
set endpoint(t) {
|
|
4947
|
-
this.$$set({ endpoint: t }),
|
|
4912
|
+
this.$$set({ endpoint: t }), O();
|
|
4948
4913
|
}
|
|
4949
4914
|
get datasource() {
|
|
4950
4915
|
return this.$$.ctx[14];
|
|
4951
4916
|
}
|
|
4952
4917
|
set datasource(t) {
|
|
4953
|
-
this.$$set({ datasource: t }),
|
|
4918
|
+
this.$$set({ datasource: t }), O();
|
|
4954
4919
|
}
|
|
4955
4920
|
get gameevent() {
|
|
4956
4921
|
return this.$$.ctx[15];
|
|
4957
4922
|
}
|
|
4958
4923
|
set gameevent(t) {
|
|
4959
|
-
this.$$set({ gameevent: t }),
|
|
4924
|
+
this.$$set({ gameevent: t }), O();
|
|
4960
4925
|
}
|
|
4961
4926
|
get lang() {
|
|
4962
4927
|
return this.$$.ctx[16];
|
|
4963
4928
|
}
|
|
4964
4929
|
set lang(t) {
|
|
4965
|
-
this.$$set({ lang: t }),
|
|
4930
|
+
this.$$set({ lang: t }), O();
|
|
4966
4931
|
}
|
|
4967
4932
|
get randombuttonicon() {
|
|
4968
4933
|
return this.$$.ctx[0];
|
|
4969
4934
|
}
|
|
4970
4935
|
set randombuttonicon(t) {
|
|
4971
|
-
this.$$set({ randombuttonicon: t }),
|
|
4936
|
+
this.$$set({ randombuttonicon: t }), O();
|
|
4972
4937
|
}
|
|
4973
4938
|
get buttontext() {
|
|
4974
4939
|
return this.$$.ctx[1];
|
|
4975
4940
|
}
|
|
4976
4941
|
set buttontext(t) {
|
|
4977
|
-
this.$$set({ buttontext: t }),
|
|
4942
|
+
this.$$set({ buttontext: t }), O();
|
|
4978
4943
|
}
|
|
4979
4944
|
get translationurl() {
|
|
4980
4945
|
return this.$$.ctx[17];
|
|
4981
4946
|
}
|
|
4982
4947
|
set translationurl(t) {
|
|
4983
|
-
this.$$set({ translationurl: t }),
|
|
4948
|
+
this.$$set({ translationurl: t }), O();
|
|
4984
4949
|
}
|
|
4985
4950
|
get clientstyling() {
|
|
4986
4951
|
return this.$$.ctx[18];
|
|
4987
4952
|
}
|
|
4988
4953
|
set clientstyling(t) {
|
|
4989
|
-
this.$$set({ clientstyling: t }),
|
|
4954
|
+
this.$$set({ clientstyling: t }), O();
|
|
4990
4955
|
}
|
|
4991
4956
|
get clientstylingurl() {
|
|
4992
4957
|
return this.$$.ctx[19];
|
|
4993
4958
|
}
|
|
4994
4959
|
set clientstylingurl(t) {
|
|
4995
|
-
this.$$set({ clientstylingurl: t }),
|
|
4960
|
+
this.$$set({ clientstylingurl: t }), O();
|
|
4996
4961
|
}
|
|
4997
4962
|
get filteredrandomgamecategories() {
|
|
4998
4963
|
return this.$$.ctx[20];
|
|
4999
4964
|
}
|
|
5000
4965
|
set filteredrandomgamecategories(t) {
|
|
5001
|
-
this.$$set({ filteredrandomgamecategories: t }),
|
|
4966
|
+
this.$$set({ filteredrandomgamecategories: t }), O();
|
|
5002
4967
|
}
|
|
5003
4968
|
get mbsource() {
|
|
5004
4969
|
return this.$$.ctx[21];
|
|
5005
4970
|
}
|
|
5006
4971
|
set mbsource(t) {
|
|
5007
|
-
this.$$set({ mbsource: t }),
|
|
4972
|
+
this.$$set({ mbsource: t }), O();
|
|
5008
4973
|
}
|
|
5009
4974
|
}
|
|
5010
|
-
|
|
4975
|
+
vr(Vo, { endpoint: {}, datasource: {}, gameevent: {}, lang: {}, randombuttonicon: {}, buttontext: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, filteredrandomgamecategories: {}, mbsource: {} }, ["close"], [], !0);
|
|
5011
4976
|
export {
|
|
5012
|
-
|
|
4977
|
+
Vo as default
|
|
5013
4978
|
};
|