@everymatrix/casino-random-game 1.47.2 → 1.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CasinoRandomGame-C0X_CdUb.cjs +6 -0
- package/components/{CasinoRandomGame-CUgxDjIq.js → CasinoRandomGame-DNPSiogN.js} +936 -934
- package/es2015/casino-random-game.cjs +1 -1
- package/es2015/casino-random-game.js +1 -1
- package/package.json +1 -1
- package/components/CasinoRandomGame-UQ9CP0ov.cjs +0 -6
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Qr = Object.defineProperty, Yr = Object.defineProperties;
|
|
2
|
+
var qr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var pt = Object.getOwnPropertySymbols;
|
|
4
|
+
var Kr = Object.prototype.hasOwnProperty, en = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Me = (e, t, r) => t in e ? Qr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, bt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
Kr.call(t, r) && Me(e, r, t[r]);
|
|
8
|
+
if (pt)
|
|
9
|
+
for (var r of pt(t))
|
|
10
|
+
en.call(t, r) && Me(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, gt = (e, t) => Yr(e, qr(t));
|
|
13
|
+
var L = (e, t, r) => Me(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
+
var be = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
s(r.next(h));
|
|
@@ -27,23 +27,23 @@ var bt = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, s = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, a);
|
|
28
28
|
s((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function G() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function tn(e, t) {
|
|
33
33
|
for (const r in t) e[r] = t[r];
|
|
34
34
|
return (
|
|
35
35
|
/** @type {T & S} */
|
|
36
36
|
e
|
|
37
37
|
);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function Zt(e) {
|
|
40
40
|
return e();
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function yt() {
|
|
43
43
|
return /* @__PURE__ */ Object.create(null);
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
e.forEach(
|
|
45
|
+
function z(e) {
|
|
46
|
+
e.forEach(Zt);
|
|
47
47
|
}
|
|
48
48
|
function at(e) {
|
|
49
49
|
return typeof e == "function";
|
|
@@ -51,35 +51,35 @@ function at(e) {
|
|
|
51
51
|
function Qt(e, t) {
|
|
52
52
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
53
53
|
}
|
|
54
|
-
let
|
|
55
|
-
function
|
|
56
|
-
return e === t ? !0 : (
|
|
54
|
+
let ge;
|
|
55
|
+
function vt(e, t) {
|
|
56
|
+
return e === t ? !0 : (ge || (ge = document.createElement("a")), ge.href = t, e === ge.href);
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function rn(e) {
|
|
59
59
|
return Object.keys(e).length === 0;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Yt(e, ...t) {
|
|
62
62
|
if (e == null) {
|
|
63
63
|
for (const n of t)
|
|
64
64
|
n(void 0);
|
|
65
|
-
return
|
|
65
|
+
return G;
|
|
66
66
|
}
|
|
67
67
|
const r = e.subscribe(...t);
|
|
68
68
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
e.$$.on_destroy.push(
|
|
70
|
+
function nn(e, t, r) {
|
|
71
|
+
e.$$.on_destroy.push(Yt(t, r));
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function on(e, t, r, n) {
|
|
74
74
|
if (e) {
|
|
75
|
-
const i =
|
|
75
|
+
const i = qt(e, t, r, n);
|
|
76
76
|
return e[0](i);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return e[1] && n ?
|
|
79
|
+
function qt(e, t, r, n) {
|
|
80
|
+
return e[1] && n ? tn(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function an(e, t, r, n) {
|
|
83
83
|
if (e[2] && n) {
|
|
84
84
|
const i = e[2](n(r));
|
|
85
85
|
if (t.dirty === void 0)
|
|
@@ -94,13 +94,13 @@ function en(e, t, r, n) {
|
|
|
94
94
|
}
|
|
95
95
|
return t.dirty;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function sn(e, t, r, n, i, o) {
|
|
98
98
|
if (i) {
|
|
99
|
-
const a =
|
|
99
|
+
const a = qt(t, r, n, o);
|
|
100
100
|
e.p(a, i);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function un(e) {
|
|
104
104
|
if (e.ctx.length > 32) {
|
|
105
105
|
const t = [], r = e.ctx.length / 32;
|
|
106
106
|
for (let n = 0; n < r; n++)
|
|
@@ -109,17 +109,17 @@ function rn(e) {
|
|
|
109
109
|
}
|
|
110
110
|
return -1;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function E(e, t) {
|
|
113
113
|
e.appendChild(t);
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
const n =
|
|
115
|
+
function ln(e, t, r) {
|
|
116
|
+
const n = hn(e);
|
|
117
117
|
if (!n.getElementById(t)) {
|
|
118
|
-
const i =
|
|
119
|
-
i.id = t, i.textContent = r,
|
|
118
|
+
const i = S("style");
|
|
119
|
+
i.id = t, i.textContent = r, cn(n, i);
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function hn(e) {
|
|
123
123
|
if (!e) return document;
|
|
124
124
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
125
125
|
return t && /** @type {ShadowRoot} */
|
|
@@ -128,37 +128,34 @@ function on(e) {
|
|
|
128
128
|
t
|
|
129
129
|
) : e.ownerDocument;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
return
|
|
131
|
+
function cn(e, t) {
|
|
132
|
+
return E(
|
|
133
133
|
/** @type {Document} */
|
|
134
134
|
e.head || e,
|
|
135
135
|
t
|
|
136
136
|
), t.sheet;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function I(e, t, r) {
|
|
139
139
|
e.insertBefore(t, r || null);
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function R(e) {
|
|
142
142
|
e.parentNode && e.parentNode.removeChild(e);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function fn(e, t) {
|
|
145
145
|
for (let r = 0; r < e.length; r += 1)
|
|
146
146
|
e[r] && e[r].d(t);
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function S(e) {
|
|
149
149
|
return document.createElement(e);
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function _t(e) {
|
|
152
152
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function j(e) {
|
|
155
155
|
return document.createTextNode(e);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
158
|
-
return
|
|
159
|
-
}
|
|
160
|
-
function un() {
|
|
161
|
-
return k("");
|
|
157
|
+
function k() {
|
|
158
|
+
return j(" ");
|
|
162
159
|
}
|
|
163
160
|
function Te(e, t, r, n) {
|
|
164
161
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
@@ -166,17 +163,14 @@ function Te(e, t, r, n) {
|
|
|
166
163
|
function g(e, t, r) {
|
|
167
164
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
168
165
|
}
|
|
169
|
-
function
|
|
166
|
+
function mn(e) {
|
|
170
167
|
return Array.from(e.childNodes);
|
|
171
168
|
}
|
|
172
|
-
function
|
|
169
|
+
function X(e, t) {
|
|
173
170
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
174
171
|
t);
|
|
175
172
|
}
|
|
176
|
-
function
|
|
177
|
-
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
178
|
-
}
|
|
179
|
-
function hn(e) {
|
|
173
|
+
function dn(e) {
|
|
180
174
|
const t = {};
|
|
181
175
|
return e.childNodes.forEach(
|
|
182
176
|
/** @param {Element} node */
|
|
@@ -186,108 +180,111 @@ function hn(e) {
|
|
|
186
180
|
), t;
|
|
187
181
|
}
|
|
188
182
|
let st;
|
|
189
|
-
function
|
|
183
|
+
function ce(e) {
|
|
190
184
|
st = e;
|
|
191
185
|
}
|
|
192
|
-
const
|
|
193
|
-
let
|
|
194
|
-
const
|
|
186
|
+
const K = [], He = [];
|
|
187
|
+
let ee = [];
|
|
188
|
+
const xt = [], Kt = /* @__PURE__ */ Promise.resolve();
|
|
195
189
|
let Ve = !1;
|
|
196
|
-
function
|
|
197
|
-
Ve || (Ve = !0,
|
|
190
|
+
function er() {
|
|
191
|
+
Ve || (Ve = !0, Kt.then(M));
|
|
192
|
+
}
|
|
193
|
+
function pn() {
|
|
194
|
+
return er(), Kt;
|
|
198
195
|
}
|
|
199
196
|
function We(e) {
|
|
200
|
-
|
|
197
|
+
ee.push(e);
|
|
201
198
|
}
|
|
202
|
-
const
|
|
203
|
-
let
|
|
204
|
-
function
|
|
205
|
-
if (
|
|
199
|
+
const Ne = /* @__PURE__ */ new Set();
|
|
200
|
+
let Y = 0;
|
|
201
|
+
function M() {
|
|
202
|
+
if (Y !== 0)
|
|
206
203
|
return;
|
|
207
204
|
const e = st;
|
|
208
205
|
do {
|
|
209
206
|
try {
|
|
210
|
-
for (;
|
|
211
|
-
const t =
|
|
212
|
-
|
|
207
|
+
for (; Y < K.length; ) {
|
|
208
|
+
const t = K[Y];
|
|
209
|
+
Y++, ce(t), bn(t.$$);
|
|
213
210
|
}
|
|
214
211
|
} catch (t) {
|
|
215
|
-
throw
|
|
212
|
+
throw K.length = 0, Y = 0, t;
|
|
216
213
|
}
|
|
217
|
-
for (
|
|
218
|
-
for (let t = 0; t <
|
|
219
|
-
const r =
|
|
220
|
-
|
|
214
|
+
for (ce(null), K.length = 0, Y = 0; He.length; ) He.pop()();
|
|
215
|
+
for (let t = 0; t < ee.length; t += 1) {
|
|
216
|
+
const r = ee[t];
|
|
217
|
+
Ne.has(r) || (Ne.add(r), r());
|
|
221
218
|
}
|
|
222
|
-
|
|
223
|
-
} while (
|
|
224
|
-
for (;
|
|
225
|
-
|
|
226
|
-
Ve = !1,
|
|
219
|
+
ee.length = 0;
|
|
220
|
+
} while (K.length);
|
|
221
|
+
for (; xt.length; )
|
|
222
|
+
xt.pop()();
|
|
223
|
+
Ve = !1, Ne.clear(), ce(e);
|
|
227
224
|
}
|
|
228
|
-
function
|
|
225
|
+
function bn(e) {
|
|
229
226
|
if (e.fragment !== null) {
|
|
230
|
-
e.update(),
|
|
227
|
+
e.update(), z(e.before_update);
|
|
231
228
|
const t = e.dirty;
|
|
232
229
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(We);
|
|
233
230
|
}
|
|
234
231
|
}
|
|
235
|
-
function
|
|
232
|
+
function gn(e) {
|
|
236
233
|
const t = [], r = [];
|
|
237
|
-
|
|
234
|
+
ee.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ee = t;
|
|
238
235
|
}
|
|
239
|
-
const
|
|
240
|
-
let
|
|
241
|
-
function
|
|
242
|
-
|
|
236
|
+
const _e = /* @__PURE__ */ new Set();
|
|
237
|
+
let W;
|
|
238
|
+
function yn() {
|
|
239
|
+
W = {
|
|
243
240
|
r: 0,
|
|
244
241
|
c: [],
|
|
245
|
-
p:
|
|
242
|
+
p: W
|
|
246
243
|
// parent group
|
|
247
244
|
};
|
|
248
245
|
}
|
|
249
|
-
function
|
|
250
|
-
|
|
246
|
+
function vn() {
|
|
247
|
+
W.r || z(W.c), W = W.p;
|
|
251
248
|
}
|
|
252
|
-
function
|
|
253
|
-
e && e.i && (
|
|
249
|
+
function fe(e, t) {
|
|
250
|
+
e && e.i && (_e.delete(e), e.i(t));
|
|
254
251
|
}
|
|
255
252
|
function Xe(e, t, r, n) {
|
|
256
253
|
if (e && e.o) {
|
|
257
|
-
if (
|
|
258
|
-
|
|
259
|
-
|
|
254
|
+
if (_e.has(e)) return;
|
|
255
|
+
_e.add(e), W.c.push(() => {
|
|
256
|
+
_e.delete(e), n && (r && e.d(1), n());
|
|
260
257
|
}), e.o(t);
|
|
261
258
|
} else n && n();
|
|
262
259
|
}
|
|
263
|
-
function
|
|
260
|
+
function Et(e) {
|
|
264
261
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
265
262
|
}
|
|
266
|
-
function
|
|
263
|
+
function _n(e, t, r) {
|
|
267
264
|
const { fragment: n, after_update: i } = e.$$;
|
|
268
265
|
n && n.m(t, r), We(() => {
|
|
269
|
-
const o = e.$$.on_mount.map(
|
|
270
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
266
|
+
const o = e.$$.on_mount.map(Zt).filter(at);
|
|
267
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : z(o), e.$$.on_mount = [];
|
|
271
268
|
}), i.forEach(We);
|
|
272
269
|
}
|
|
273
|
-
function
|
|
270
|
+
function xn(e, t) {
|
|
274
271
|
const r = e.$$;
|
|
275
|
-
r.fragment !== null && (
|
|
272
|
+
r.fragment !== null && (gn(r.after_update), z(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
276
273
|
}
|
|
277
|
-
function
|
|
278
|
-
e.$$.dirty[0] === -1 && (
|
|
274
|
+
function En(e, t) {
|
|
275
|
+
e.$$.dirty[0] === -1 && (K.push(e), er(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
279
276
|
}
|
|
280
|
-
function
|
|
277
|
+
function wn(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
281
278
|
const h = st;
|
|
282
|
-
|
|
279
|
+
ce(e);
|
|
283
280
|
const l = e.$$ = {
|
|
284
281
|
fragment: null,
|
|
285
282
|
ctx: [],
|
|
286
283
|
// state
|
|
287
284
|
props: o,
|
|
288
|
-
update:
|
|
285
|
+
update: G,
|
|
289
286
|
not_equal: i,
|
|
290
|
-
bound:
|
|
287
|
+
bound: yt(),
|
|
291
288
|
// lifecycle
|
|
292
289
|
on_mount: [],
|
|
293
290
|
on_destroy: [],
|
|
@@ -296,7 +293,7 @@ function _n(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
296
293
|
after_update: [],
|
|
297
294
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
298
295
|
// everything else
|
|
299
|
-
callbacks:
|
|
296
|
+
callbacks: yt(),
|
|
300
297
|
dirty: s,
|
|
301
298
|
skip_bound: !1,
|
|
302
299
|
root: t.target || h.$$.root
|
|
@@ -305,39 +302,39 @@ function _n(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
305
302
|
let u = !1;
|
|
306
303
|
if (l.ctx = r ? r(e, t.props || {}, (f, c, ...m) => {
|
|
307
304
|
const d = m.length ? m[0] : c;
|
|
308
|
-
return l.ctx && i(l.ctx[f], l.ctx[f] = d) && (!l.skip_bound && l.bound[f] && l.bound[f](d), u &&
|
|
309
|
-
}) : [], l.update(), u = !0,
|
|
305
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = d) && (!l.skip_bound && l.bound[f] && l.bound[f](d), u && En(e, f)), c;
|
|
306
|
+
}) : [], l.update(), u = !0, z(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
310
307
|
if (t.hydrate) {
|
|
311
|
-
const f =
|
|
312
|
-
l.fragment && l.fragment.l(f), f.forEach(
|
|
308
|
+
const f = mn(t.target);
|
|
309
|
+
l.fragment && l.fragment.l(f), f.forEach(R);
|
|
313
310
|
} else
|
|
314
311
|
l.fragment && l.fragment.c();
|
|
315
|
-
t.intro &&
|
|
312
|
+
t.intro && fe(e.$$.fragment), _n(e, t.target, t.anchor), M();
|
|
316
313
|
}
|
|
317
|
-
|
|
314
|
+
ce(h);
|
|
318
315
|
}
|
|
319
|
-
let
|
|
320
|
-
typeof HTMLElement == "function" && (
|
|
316
|
+
let tr;
|
|
317
|
+
typeof HTMLElement == "function" && (tr = class extends HTMLElement {
|
|
321
318
|
constructor(t, r, n) {
|
|
322
319
|
super();
|
|
323
320
|
/** The Svelte component constructor */
|
|
324
|
-
|
|
321
|
+
L(this, "$$ctor");
|
|
325
322
|
/** Slots */
|
|
326
|
-
|
|
323
|
+
L(this, "$$s");
|
|
327
324
|
/** The Svelte component instance */
|
|
328
|
-
|
|
325
|
+
L(this, "$$c");
|
|
329
326
|
/** Whether or not the custom element is connected */
|
|
330
|
-
|
|
327
|
+
L(this, "$$cn", !1);
|
|
331
328
|
/** Component props data */
|
|
332
|
-
|
|
329
|
+
L(this, "$$d", {});
|
|
333
330
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
334
|
-
|
|
331
|
+
L(this, "$$r", !1);
|
|
335
332
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
336
|
-
|
|
333
|
+
L(this, "$$p_d", {});
|
|
337
334
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
338
|
-
|
|
335
|
+
L(this, "$$l", {});
|
|
339
336
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
340
|
-
|
|
337
|
+
L(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
341
338
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
342
339
|
}
|
|
343
340
|
addEventListener(t, r, n) {
|
|
@@ -354,42 +351,42 @@ typeof HTMLElement == "function" && (er = class extends HTMLElement {
|
|
|
354
351
|
}
|
|
355
352
|
}
|
|
356
353
|
connectedCallback() {
|
|
357
|
-
return
|
|
354
|
+
return be(this, null, function* () {
|
|
358
355
|
if (this.$$cn = !0, !this.$$c) {
|
|
359
356
|
let t = function(o) {
|
|
360
357
|
return () => {
|
|
361
358
|
let a;
|
|
362
359
|
return {
|
|
363
360
|
c: function() {
|
|
364
|
-
a =
|
|
361
|
+
a = S("slot"), o !== "default" && g(a, "name", o);
|
|
365
362
|
},
|
|
366
363
|
/**
|
|
367
364
|
* @param {HTMLElement} target
|
|
368
365
|
* @param {HTMLElement} [anchor]
|
|
369
366
|
*/
|
|
370
367
|
m: function(l, u) {
|
|
371
|
-
|
|
368
|
+
I(l, a, u);
|
|
372
369
|
},
|
|
373
370
|
d: function(l) {
|
|
374
|
-
l &&
|
|
371
|
+
l && R(a);
|
|
375
372
|
}
|
|
376
373
|
};
|
|
377
374
|
};
|
|
378
375
|
};
|
|
379
376
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
380
377
|
return;
|
|
381
|
-
const r = {}, n =
|
|
378
|
+
const r = {}, n = dn(this);
|
|
382
379
|
for (const o of this.$$s)
|
|
383
380
|
o in n && (r[o] = [t(o)]);
|
|
384
381
|
for (const o of this.attributes) {
|
|
385
382
|
const a = this.$$g_p(o.name);
|
|
386
|
-
a in this.$$d || (this.$$d[a] =
|
|
383
|
+
a in this.$$d || (this.$$d[a] = xe(a, o.value, this.$$p_d, "toProp"));
|
|
387
384
|
}
|
|
388
385
|
for (const o in this.$$p_d)
|
|
389
386
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
390
387
|
this.$$c = new this.$$ctor({
|
|
391
388
|
target: this.shadowRoot || this,
|
|
392
|
-
props:
|
|
389
|
+
props: gt(bt({}, this.$$d), {
|
|
393
390
|
$$slots: r,
|
|
394
391
|
$$scope: {
|
|
395
392
|
ctx: []
|
|
@@ -400,7 +397,7 @@ typeof HTMLElement == "function" && (er = class extends HTMLElement {
|
|
|
400
397
|
this.$$r = !0;
|
|
401
398
|
for (const o in this.$$p_d)
|
|
402
399
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
403
|
-
const a =
|
|
400
|
+
const a = xe(
|
|
404
401
|
o,
|
|
405
402
|
this.$$d[o],
|
|
406
403
|
this.$$p_d,
|
|
@@ -424,7 +421,7 @@ typeof HTMLElement == "function" && (er = class extends HTMLElement {
|
|
|
424
421
|
// and setting attributes through setAttribute etc, this is helpful
|
|
425
422
|
attributeChangedCallback(t, r, n) {
|
|
426
423
|
var i;
|
|
427
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
424
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = xe(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
428
425
|
}
|
|
429
426
|
disconnectedCallback() {
|
|
430
427
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -437,7 +434,7 @@ typeof HTMLElement == "function" && (er = class extends HTMLElement {
|
|
|
437
434
|
) || t;
|
|
438
435
|
}
|
|
439
436
|
});
|
|
440
|
-
function
|
|
437
|
+
function xe(e, t, r, n) {
|
|
441
438
|
var o;
|
|
442
439
|
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
443
440
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -467,8 +464,8 @@ function _e(e, t, r, n) {
|
|
|
467
464
|
return t;
|
|
468
465
|
}
|
|
469
466
|
}
|
|
470
|
-
function
|
|
471
|
-
let a = class extends
|
|
467
|
+
function Sn(e, t, r, n, i, o) {
|
|
468
|
+
let a = class extends tr {
|
|
472
469
|
constructor() {
|
|
473
470
|
super(e, r, i), this.$$p_d = t;
|
|
474
471
|
}
|
|
@@ -485,7 +482,7 @@ function xn(e, t, r, n, i, o) {
|
|
|
485
482
|
},
|
|
486
483
|
set(h) {
|
|
487
484
|
var l;
|
|
488
|
-
h =
|
|
485
|
+
h = xe(s, h, t), this.$$d[s] = h, (l = this.$$c) == null || l.$set({ [s]: h });
|
|
489
486
|
}
|
|
490
487
|
});
|
|
491
488
|
}), n.forEach((s) => {
|
|
@@ -498,7 +495,7 @@ function xn(e, t, r, n, i, o) {
|
|
|
498
495
|
}), e.element = /** @type {any} */
|
|
499
496
|
a, a;
|
|
500
497
|
}
|
|
501
|
-
class
|
|
498
|
+
class Tn {
|
|
502
499
|
constructor() {
|
|
503
500
|
/**
|
|
504
501
|
* ### PRIVATE API
|
|
@@ -507,7 +504,7 @@ class En {
|
|
|
507
504
|
*
|
|
508
505
|
* @type {any}
|
|
509
506
|
*/
|
|
510
|
-
|
|
507
|
+
L(this, "$$");
|
|
511
508
|
/**
|
|
512
509
|
* ### PRIVATE API
|
|
513
510
|
*
|
|
@@ -515,11 +512,11 @@ class En {
|
|
|
515
512
|
*
|
|
516
513
|
* @type {any}
|
|
517
514
|
*/
|
|
518
|
-
|
|
515
|
+
L(this, "$$set");
|
|
519
516
|
}
|
|
520
517
|
/** @returns {void} */
|
|
521
518
|
$destroy() {
|
|
522
|
-
|
|
519
|
+
xn(this, 1), this.$destroy = G;
|
|
523
520
|
}
|
|
524
521
|
/**
|
|
525
522
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -529,7 +526,7 @@ class En {
|
|
|
529
526
|
*/
|
|
530
527
|
$on(t, r) {
|
|
531
528
|
if (!at(r))
|
|
532
|
-
return
|
|
529
|
+
return G;
|
|
533
530
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
534
531
|
return n.push(r), () => {
|
|
535
532
|
const i = n.indexOf(r);
|
|
@@ -541,11 +538,11 @@ class En {
|
|
|
541
538
|
* @returns {void}
|
|
542
539
|
*/
|
|
543
540
|
$set(t) {
|
|
544
|
-
this.$$set && !
|
|
541
|
+
this.$$set && !rn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
545
542
|
}
|
|
546
543
|
}
|
|
547
|
-
const
|
|
548
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
544
|
+
const Hn = "4";
|
|
545
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Hn);
|
|
549
546
|
var ze = function(e, t) {
|
|
550
547
|
return ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
551
548
|
r.__proto__ = n;
|
|
@@ -553,7 +550,7 @@ var ze = function(e, t) {
|
|
|
553
550
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
554
551
|
}, ze(e, t);
|
|
555
552
|
};
|
|
556
|
-
function
|
|
553
|
+
function F(e, t) {
|
|
557
554
|
if (typeof t != "function" && t !== null)
|
|
558
555
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
559
556
|
ze(e, t);
|
|
@@ -562,16 +559,16 @@ function W(e, t) {
|
|
|
562
559
|
}
|
|
563
560
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
564
561
|
}
|
|
565
|
-
var
|
|
566
|
-
return
|
|
562
|
+
var _ = function() {
|
|
563
|
+
return _ = Object.assign || function(t) {
|
|
567
564
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
568
565
|
r = arguments[n];
|
|
569
566
|
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
570
567
|
}
|
|
571
568
|
return t;
|
|
572
|
-
},
|
|
569
|
+
}, _.apply(this, arguments);
|
|
573
570
|
};
|
|
574
|
-
function
|
|
571
|
+
function Bn(e, t) {
|
|
575
572
|
var r = {};
|
|
576
573
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
577
574
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -606,21 +603,21 @@ function Ze(e, t) {
|
|
|
606
603
|
}
|
|
607
604
|
return o;
|
|
608
605
|
}
|
|
609
|
-
function
|
|
606
|
+
function te(e, t, r) {
|
|
610
607
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
|
|
611
608
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
612
609
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
613
610
|
}
|
|
614
|
-
function
|
|
611
|
+
function D(e) {
|
|
615
612
|
return typeof e == "function";
|
|
616
613
|
}
|
|
617
|
-
function
|
|
614
|
+
function rr(e) {
|
|
618
615
|
var t = function(n) {
|
|
619
616
|
Error.call(n), n.stack = new Error().stack;
|
|
620
617
|
}, r = e(t);
|
|
621
618
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
622
619
|
}
|
|
623
|
-
var
|
|
620
|
+
var Ge = rr(function(e) {
|
|
624
621
|
return function(r) {
|
|
625
622
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
626
623
|
` + r.map(function(n, i) {
|
|
@@ -629,13 +626,13 @@ var Me = tr(function(e) {
|
|
|
629
626
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
630
627
|
};
|
|
631
628
|
});
|
|
632
|
-
function
|
|
629
|
+
function Qe(e, t) {
|
|
633
630
|
if (e) {
|
|
634
631
|
var r = e.indexOf(t);
|
|
635
632
|
0 <= r && e.splice(r, 1);
|
|
636
633
|
}
|
|
637
634
|
}
|
|
638
|
-
var
|
|
635
|
+
var Pe = function() {
|
|
639
636
|
function e(t) {
|
|
640
637
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
641
638
|
}
|
|
@@ -663,11 +660,11 @@ var Ae = function() {
|
|
|
663
660
|
else
|
|
664
661
|
a.remove(this);
|
|
665
662
|
var u = this.initialTeardown;
|
|
666
|
-
if (
|
|
663
|
+
if (D(u))
|
|
667
664
|
try {
|
|
668
665
|
u();
|
|
669
666
|
} catch (b) {
|
|
670
|
-
o = b instanceof
|
|
667
|
+
o = b instanceof Ge ? b.errors : [b];
|
|
671
668
|
}
|
|
672
669
|
var f = this._finalizers;
|
|
673
670
|
if (f) {
|
|
@@ -676,9 +673,9 @@ var Ae = function() {
|
|
|
676
673
|
for (var c = Je(f), m = c.next(); !m.done; m = c.next()) {
|
|
677
674
|
var d = m.value;
|
|
678
675
|
try {
|
|
679
|
-
|
|
676
|
+
wt(d);
|
|
680
677
|
} catch (b) {
|
|
681
|
-
o = o != null ? o : [], b instanceof
|
|
678
|
+
o = o != null ? o : [], b instanceof Ge ? o = te(te([], Ze(o)), Ze(b.errors)) : o.push(b);
|
|
682
679
|
}
|
|
683
680
|
}
|
|
684
681
|
} catch (b) {
|
|
@@ -692,13 +689,13 @@ var Ae = function() {
|
|
|
692
689
|
}
|
|
693
690
|
}
|
|
694
691
|
if (o)
|
|
695
|
-
throw new
|
|
692
|
+
throw new Ge(o);
|
|
696
693
|
}
|
|
697
694
|
}, e.prototype.add = function(t) {
|
|
698
695
|
var r;
|
|
699
696
|
if (t && t !== this)
|
|
700
697
|
if (this.closed)
|
|
701
|
-
|
|
698
|
+
wt(t);
|
|
702
699
|
else {
|
|
703
700
|
if (t instanceof e) {
|
|
704
701
|
if (t.closed || t._hasParent(this))
|
|
@@ -715,57 +712,57 @@ var Ae = function() {
|
|
|
715
712
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
716
713
|
}, e.prototype._removeParent = function(t) {
|
|
717
714
|
var r = this._parentage;
|
|
718
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
715
|
+
r === t ? this._parentage = null : Array.isArray(r) && Qe(r, t);
|
|
719
716
|
}, e.prototype.remove = function(t) {
|
|
720
717
|
var r = this._finalizers;
|
|
721
|
-
r &&
|
|
718
|
+
r && Qe(r, t), t instanceof e && t._removeParent(this);
|
|
722
719
|
}, e.EMPTY = function() {
|
|
723
720
|
var t = new e();
|
|
724
721
|
return t.closed = !0, t;
|
|
725
722
|
}(), e;
|
|
726
|
-
}(),
|
|
727
|
-
function
|
|
728
|
-
return e instanceof
|
|
723
|
+
}(), nr = Pe.EMPTY;
|
|
724
|
+
function ir(e) {
|
|
725
|
+
return e instanceof Pe || e && "closed" in e && D(e.remove) && D(e.add) && D(e.unsubscribe);
|
|
729
726
|
}
|
|
730
|
-
function
|
|
731
|
-
|
|
727
|
+
function wt(e) {
|
|
728
|
+
D(e) ? e() : e.unsubscribe();
|
|
732
729
|
}
|
|
733
|
-
var
|
|
730
|
+
var or = {
|
|
734
731
|
onUnhandledError: null,
|
|
735
732
|
onStoppedNotification: null,
|
|
736
733
|
Promise: void 0,
|
|
737
734
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
738
735
|
useDeprecatedNextContext: !1
|
|
739
|
-
},
|
|
736
|
+
}, ar = {
|
|
740
737
|
setTimeout: function(e, t) {
|
|
741
738
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
742
739
|
r[n - 2] = arguments[n];
|
|
743
|
-
return setTimeout.apply(void 0,
|
|
740
|
+
return setTimeout.apply(void 0, te([e, t], Ze(r)));
|
|
744
741
|
},
|
|
745
742
|
clearTimeout: function(e) {
|
|
746
|
-
var t =
|
|
743
|
+
var t = ar.delegate;
|
|
747
744
|
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(e);
|
|
748
745
|
},
|
|
749
746
|
delegate: void 0
|
|
750
747
|
};
|
|
751
|
-
function
|
|
752
|
-
|
|
748
|
+
function An(e) {
|
|
749
|
+
ar.setTimeout(function() {
|
|
753
750
|
throw e;
|
|
754
751
|
});
|
|
755
752
|
}
|
|
756
|
-
function
|
|
753
|
+
function St() {
|
|
757
754
|
}
|
|
758
|
-
function
|
|
755
|
+
function Ee(e) {
|
|
759
756
|
e();
|
|
760
757
|
}
|
|
761
|
-
var
|
|
762
|
-
|
|
758
|
+
var sr = function(e) {
|
|
759
|
+
F(t, e);
|
|
763
760
|
function t(r) {
|
|
764
761
|
var n = e.call(this) || this;
|
|
765
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
762
|
+
return n.isStopped = !1, r ? (n.destination = r, ir(r) && r.add(n)) : n.destination = In, n;
|
|
766
763
|
}
|
|
767
764
|
return t.create = function(r, n, i) {
|
|
768
|
-
return new
|
|
765
|
+
return new Ye(r, n, i);
|
|
769
766
|
}, t.prototype.next = function(r) {
|
|
770
767
|
this.isStopped || this._next(r);
|
|
771
768
|
}, t.prototype.error = function(r) {
|
|
@@ -789,11 +786,11 @@ var ar = function(e) {
|
|
|
789
786
|
this.unsubscribe();
|
|
790
787
|
}
|
|
791
788
|
}, t;
|
|
792
|
-
}(
|
|
793
|
-
function
|
|
794
|
-
return
|
|
789
|
+
}(Pe), Pn = Function.prototype.bind;
|
|
790
|
+
function Ue(e, t) {
|
|
791
|
+
return Pn.call(e, t);
|
|
795
792
|
}
|
|
796
|
-
var
|
|
793
|
+
var Rn = function() {
|
|
797
794
|
function e(t) {
|
|
798
795
|
this.partialObserver = t;
|
|
799
796
|
}
|
|
@@ -803,7 +800,7 @@ var Bn = function() {
|
|
|
803
800
|
try {
|
|
804
801
|
r.next(t);
|
|
805
802
|
} catch (n) {
|
|
806
|
-
|
|
803
|
+
ye(n);
|
|
807
804
|
}
|
|
808
805
|
}, e.prototype.error = function(t) {
|
|
809
806
|
var r = this.partialObserver;
|
|
@@ -811,24 +808,24 @@ var Bn = function() {
|
|
|
811
808
|
try {
|
|
812
809
|
r.error(t);
|
|
813
810
|
} catch (n) {
|
|
814
|
-
|
|
811
|
+
ye(n);
|
|
815
812
|
}
|
|
816
813
|
else
|
|
817
|
-
|
|
814
|
+
ye(t);
|
|
818
815
|
}, e.prototype.complete = function() {
|
|
819
816
|
var t = this.partialObserver;
|
|
820
817
|
if (t.complete)
|
|
821
818
|
try {
|
|
822
819
|
t.complete();
|
|
823
820
|
} catch (r) {
|
|
824
|
-
|
|
821
|
+
ye(r);
|
|
825
822
|
}
|
|
826
823
|
}, e;
|
|
827
|
-
}(),
|
|
828
|
-
|
|
824
|
+
}(), Ye = function(e) {
|
|
825
|
+
F(t, e);
|
|
829
826
|
function t(r, n, i) {
|
|
830
827
|
var o = e.call(this) || this, a;
|
|
831
|
-
if (
|
|
828
|
+
if (D(r) || !r)
|
|
832
829
|
a = {
|
|
833
830
|
next: r != null ? r : void 0,
|
|
834
831
|
error: n != null ? n : void 0,
|
|
@@ -836,43 +833,43 @@ var Bn = function() {
|
|
|
836
833
|
};
|
|
837
834
|
else {
|
|
838
835
|
var s;
|
|
839
|
-
o &&
|
|
836
|
+
o && or.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
840
837
|
return o.unsubscribe();
|
|
841
838
|
}, a = {
|
|
842
|
-
next: r.next &&
|
|
843
|
-
error: r.error &&
|
|
844
|
-
complete: r.complete &&
|
|
839
|
+
next: r.next && Ue(r.next, s),
|
|
840
|
+
error: r.error && Ue(r.error, s),
|
|
841
|
+
complete: r.complete && Ue(r.complete, s)
|
|
845
842
|
}) : a = r;
|
|
846
843
|
}
|
|
847
|
-
return o.destination = new
|
|
844
|
+
return o.destination = new Rn(a), o;
|
|
848
845
|
}
|
|
849
846
|
return t;
|
|
850
|
-
}(
|
|
851
|
-
function
|
|
852
|
-
|
|
847
|
+
}(sr);
|
|
848
|
+
function ye(e) {
|
|
849
|
+
An(e);
|
|
853
850
|
}
|
|
854
|
-
function
|
|
851
|
+
function On(e) {
|
|
855
852
|
throw e;
|
|
856
853
|
}
|
|
857
|
-
var
|
|
854
|
+
var In = {
|
|
858
855
|
closed: !0,
|
|
859
|
-
next:
|
|
860
|
-
error:
|
|
861
|
-
complete:
|
|
862
|
-
},
|
|
856
|
+
next: St,
|
|
857
|
+
error: On,
|
|
858
|
+
complete: St
|
|
859
|
+
}, Cn = function() {
|
|
863
860
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
864
861
|
}();
|
|
865
|
-
function
|
|
862
|
+
function Ln(e) {
|
|
866
863
|
return e;
|
|
867
864
|
}
|
|
868
|
-
function
|
|
869
|
-
return e.length === 0 ?
|
|
865
|
+
function Mn(e) {
|
|
866
|
+
return e.length === 0 ? Ln : e.length === 1 ? e[0] : function(r) {
|
|
870
867
|
return e.reduce(function(n, i) {
|
|
871
868
|
return i(n);
|
|
872
869
|
}, r);
|
|
873
870
|
};
|
|
874
871
|
}
|
|
875
|
-
var
|
|
872
|
+
var Tt = function() {
|
|
876
873
|
function e(t) {
|
|
877
874
|
t && (this._subscribe = t);
|
|
878
875
|
}
|
|
@@ -880,8 +877,8 @@ var St = function() {
|
|
|
880
877
|
var r = new e();
|
|
881
878
|
return r.source = this, r.operator = t, r;
|
|
882
879
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
883
|
-
var i = this, o =
|
|
884
|
-
return
|
|
880
|
+
var i = this, o = Gn(t) ? t : new Ye(t, r, n);
|
|
881
|
+
return Ee(function() {
|
|
885
882
|
var a = i, s = a.operator, h = a.source;
|
|
886
883
|
o.add(s ? s.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
887
884
|
}), o;
|
|
@@ -893,8 +890,8 @@ var St = function() {
|
|
|
893
890
|
}
|
|
894
891
|
}, e.prototype.forEach = function(t, r) {
|
|
895
892
|
var n = this;
|
|
896
|
-
return r =
|
|
897
|
-
var a = new
|
|
893
|
+
return r = Ht(r), new r(function(i, o) {
|
|
894
|
+
var a = new Ye({
|
|
898
895
|
next: function(s) {
|
|
899
896
|
try {
|
|
900
897
|
t(s);
|
|
@@ -910,15 +907,15 @@ var St = function() {
|
|
|
910
907
|
}, e.prototype._subscribe = function(t) {
|
|
911
908
|
var r;
|
|
912
909
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
913
|
-
}, e.prototype[
|
|
910
|
+
}, e.prototype[Cn] = function() {
|
|
914
911
|
return this;
|
|
915
912
|
}, e.prototype.pipe = function() {
|
|
916
913
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
917
914
|
t[r] = arguments[r];
|
|
918
|
-
return
|
|
915
|
+
return Mn(t)(this);
|
|
919
916
|
}, e.prototype.toPromise = function(t) {
|
|
920
917
|
var r = this;
|
|
921
|
-
return t =
|
|
918
|
+
return t = Ht(t), new t(function(n, i) {
|
|
922
919
|
var o;
|
|
923
920
|
r.subscribe(function(a) {
|
|
924
921
|
return o = a;
|
|
@@ -932,35 +929,35 @@ var St = function() {
|
|
|
932
929
|
return new e(t);
|
|
933
930
|
}, e;
|
|
934
931
|
}();
|
|
935
|
-
function
|
|
932
|
+
function Ht(e) {
|
|
936
933
|
var t;
|
|
937
|
-
return (t = e != null ? e :
|
|
934
|
+
return (t = e != null ? e : or.Promise) !== null && t !== void 0 ? t : Promise;
|
|
938
935
|
}
|
|
939
936
|
function Nn(e) {
|
|
940
|
-
return e &&
|
|
937
|
+
return e && D(e.next) && D(e.error) && D(e.complete);
|
|
941
938
|
}
|
|
942
|
-
function
|
|
943
|
-
return e && e instanceof
|
|
939
|
+
function Gn(e) {
|
|
940
|
+
return e && e instanceof sr || Nn(e) && ir(e);
|
|
944
941
|
}
|
|
945
|
-
var
|
|
942
|
+
var Un = rr(function(e) {
|
|
946
943
|
return function() {
|
|
947
944
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
948
945
|
};
|
|
949
|
-
}),
|
|
950
|
-
|
|
946
|
+
}), ur = function(e) {
|
|
947
|
+
F(t, e);
|
|
951
948
|
function t() {
|
|
952
949
|
var r = e.call(this) || this;
|
|
953
950
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
954
951
|
}
|
|
955
952
|
return t.prototype.lift = function(r) {
|
|
956
|
-
var n = new
|
|
953
|
+
var n = new Bt(this, this);
|
|
957
954
|
return n.operator = r, n;
|
|
958
955
|
}, t.prototype._throwIfClosed = function() {
|
|
959
956
|
if (this.closed)
|
|
960
|
-
throw new
|
|
957
|
+
throw new Un();
|
|
961
958
|
}, t.prototype.next = function(r) {
|
|
962
959
|
var n = this;
|
|
963
|
-
|
|
960
|
+
Ee(function() {
|
|
964
961
|
var i, o;
|
|
965
962
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
966
963
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
@@ -982,7 +979,7 @@ var Ln = tr(function(e) {
|
|
|
982
979
|
});
|
|
983
980
|
}, t.prototype.error = function(r) {
|
|
984
981
|
var n = this;
|
|
985
|
-
|
|
982
|
+
Ee(function() {
|
|
986
983
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
987
984
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
988
985
|
for (var i = n.observers; i.length; )
|
|
@@ -991,7 +988,7 @@ var Ln = tr(function(e) {
|
|
|
991
988
|
});
|
|
992
989
|
}, t.prototype.complete = function() {
|
|
993
990
|
var r = this;
|
|
994
|
-
|
|
991
|
+
Ee(function() {
|
|
995
992
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
996
993
|
r.isStopped = !0;
|
|
997
994
|
for (var n = r.observers; n.length; )
|
|
@@ -1013,20 +1010,20 @@ var Ln = tr(function(e) {
|
|
|
1013
1010
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
1014
1011
|
}, t.prototype._innerSubscribe = function(r) {
|
|
1015
1012
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
1016
|
-
return o || a ?
|
|
1017
|
-
n.currentObservers = null,
|
|
1013
|
+
return o || a ? nr : (this.currentObservers = null, s.push(r), new Pe(function() {
|
|
1014
|
+
n.currentObservers = null, Qe(s, r);
|
|
1018
1015
|
}));
|
|
1019
1016
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1020
1017
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
1021
1018
|
i ? r.error(o) : a && r.complete();
|
|
1022
1019
|
}, t.prototype.asObservable = function() {
|
|
1023
|
-
var r = new
|
|
1020
|
+
var r = new Tt();
|
|
1024
1021
|
return r.source = this, r;
|
|
1025
1022
|
}, t.create = function(r, n) {
|
|
1026
|
-
return new
|
|
1023
|
+
return new Bt(r, n);
|
|
1027
1024
|
}, t;
|
|
1028
|
-
}(
|
|
1029
|
-
|
|
1025
|
+
}(Tt), Bt = function(e) {
|
|
1026
|
+
F(t, e);
|
|
1030
1027
|
function t(r, n) {
|
|
1031
1028
|
var i = e.call(this) || this;
|
|
1032
1029
|
return i.destination = r, i.source = n, i;
|
|
@@ -1042,17 +1039,17 @@ var Ln = tr(function(e) {
|
|
|
1042
1039
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1043
1040
|
}, t.prototype._subscribe = function(r) {
|
|
1044
1041
|
var n, i;
|
|
1045
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1042
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : nr;
|
|
1046
1043
|
}, t;
|
|
1047
|
-
}(
|
|
1044
|
+
}(ur), lr = {
|
|
1048
1045
|
now: function() {
|
|
1049
|
-
return (
|
|
1046
|
+
return (lr.delegate || Date).now();
|
|
1050
1047
|
},
|
|
1051
1048
|
delegate: void 0
|
|
1052
|
-
},
|
|
1053
|
-
|
|
1049
|
+
}, Dn = function(e) {
|
|
1050
|
+
F(t, e);
|
|
1054
1051
|
function t(r, n, i) {
|
|
1055
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1052
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = lr);
|
|
1056
1053
|
var o = e.call(this) || this;
|
|
1057
1054
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
1058
1055
|
}
|
|
@@ -1072,65 +1069,65 @@ var Ln = tr(function(e) {
|
|
|
1072
1069
|
l && o.splice(0, l + 1);
|
|
1073
1070
|
}
|
|
1074
1071
|
}, t;
|
|
1075
|
-
}(
|
|
1076
|
-
const
|
|
1077
|
-
if (
|
|
1078
|
-
const r = new
|
|
1079
|
-
|
|
1072
|
+
}(ur);
|
|
1073
|
+
const At = [], Pt = {}, Fn = (e, t = 0) => {
|
|
1074
|
+
if (At.indexOf(e) == -1) {
|
|
1075
|
+
const r = new Dn(t);
|
|
1076
|
+
Pt[e] = r, At.push(e);
|
|
1080
1077
|
}
|
|
1081
|
-
return
|
|
1082
|
-
},
|
|
1083
|
-
function
|
|
1078
|
+
return Pt[e];
|
|
1079
|
+
}, q = [];
|
|
1080
|
+
function $n(e, t) {
|
|
1084
1081
|
return {
|
|
1085
|
-
subscribe:
|
|
1082
|
+
subscribe: Re(e, t).subscribe
|
|
1086
1083
|
};
|
|
1087
1084
|
}
|
|
1088
|
-
function
|
|
1085
|
+
function Re(e, t = G) {
|
|
1089
1086
|
let r;
|
|
1090
1087
|
const n = /* @__PURE__ */ new Set();
|
|
1091
1088
|
function i(s) {
|
|
1092
1089
|
if (Qt(e, s) && (e = s, r)) {
|
|
1093
|
-
const h = !
|
|
1090
|
+
const h = !q.length;
|
|
1094
1091
|
for (const l of n)
|
|
1095
|
-
l[1](),
|
|
1092
|
+
l[1](), q.push(l, e);
|
|
1096
1093
|
if (h) {
|
|
1097
|
-
for (let l = 0; l <
|
|
1098
|
-
|
|
1099
|
-
|
|
1094
|
+
for (let l = 0; l < q.length; l += 2)
|
|
1095
|
+
q[l][0](q[l + 1]);
|
|
1096
|
+
q.length = 0;
|
|
1100
1097
|
}
|
|
1101
1098
|
}
|
|
1102
1099
|
}
|
|
1103
1100
|
function o(s) {
|
|
1104
1101
|
i(s(e));
|
|
1105
1102
|
}
|
|
1106
|
-
function a(s, h =
|
|
1103
|
+
function a(s, h = G) {
|
|
1107
1104
|
const l = [s, h];
|
|
1108
|
-
return n.add(l), n.size === 1 && (r = t(i, o) ||
|
|
1105
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || G), s(e), () => {
|
|
1109
1106
|
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
1110
1107
|
};
|
|
1111
1108
|
}
|
|
1112
1109
|
return { set: i, update: o, subscribe: a };
|
|
1113
1110
|
}
|
|
1114
|
-
function
|
|
1111
|
+
function ae(e, t, r) {
|
|
1115
1112
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1116
1113
|
if (!i.every(Boolean))
|
|
1117
1114
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1118
1115
|
const o = t.length < 2;
|
|
1119
|
-
return
|
|
1116
|
+
return $n(r, (a, s) => {
|
|
1120
1117
|
let h = !1;
|
|
1121
1118
|
const l = [];
|
|
1122
|
-
let u = 0, f =
|
|
1119
|
+
let u = 0, f = G;
|
|
1123
1120
|
const c = () => {
|
|
1124
1121
|
if (u)
|
|
1125
1122
|
return;
|
|
1126
1123
|
f();
|
|
1127
1124
|
const d = t(n ? l[0] : l, a, s);
|
|
1128
|
-
o ? a(d) : f = at(d) ? d :
|
|
1125
|
+
o ? a(d) : f = at(d) ? d : G;
|
|
1129
1126
|
}, m = i.map(
|
|
1130
|
-
(d, b) =>
|
|
1127
|
+
(d, b) => Yt(
|
|
1131
1128
|
d,
|
|
1132
|
-
(
|
|
1133
|
-
l[b] =
|
|
1129
|
+
(B) => {
|
|
1130
|
+
l[b] = B, u &= ~(1 << b), h && c();
|
|
1134
1131
|
},
|
|
1135
1132
|
() => {
|
|
1136
1133
|
u |= 1 << b;
|
|
@@ -1138,84 +1135,84 @@ function ue(e, t, r) {
|
|
|
1138
1135
|
)
|
|
1139
1136
|
);
|
|
1140
1137
|
return h = !0, c(), function() {
|
|
1141
|
-
|
|
1138
|
+
z(m), f(), h = !1;
|
|
1142
1139
|
};
|
|
1143
1140
|
});
|
|
1144
1141
|
}
|
|
1145
|
-
function
|
|
1142
|
+
function jn(e) {
|
|
1146
1143
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1147
1144
|
}
|
|
1148
|
-
var
|
|
1149
|
-
return
|
|
1145
|
+
var kn = function(t) {
|
|
1146
|
+
return Vn(t) && !Wn(t);
|
|
1150
1147
|
};
|
|
1151
|
-
function
|
|
1148
|
+
function Vn(e) {
|
|
1152
1149
|
return !!e && typeof e == "object";
|
|
1153
1150
|
}
|
|
1154
|
-
function
|
|
1151
|
+
function Wn(e) {
|
|
1155
1152
|
var t = Object.prototype.toString.call(e);
|
|
1156
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1153
|
+
return t === "[object RegExp]" || t === "[object Date]" || Jn(e);
|
|
1157
1154
|
}
|
|
1158
|
-
var
|
|
1159
|
-
function
|
|
1160
|
-
return e.$$typeof ===
|
|
1155
|
+
var Xn = typeof Symbol == "function" && Symbol.for, zn = Xn ? Symbol.for("react.element") : 60103;
|
|
1156
|
+
function Jn(e) {
|
|
1157
|
+
return e.$$typeof === zn;
|
|
1161
1158
|
}
|
|
1162
|
-
function
|
|
1159
|
+
function Zn(e) {
|
|
1163
1160
|
return Array.isArray(e) ? [] : {};
|
|
1164
1161
|
}
|
|
1165
|
-
function
|
|
1166
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1162
|
+
function me(e, t) {
|
|
1163
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? re(Zn(e), e, t) : e;
|
|
1167
1164
|
}
|
|
1168
|
-
function
|
|
1165
|
+
function Qn(e, t, r) {
|
|
1169
1166
|
return e.concat(t).map(function(n) {
|
|
1170
|
-
return
|
|
1167
|
+
return me(n, r);
|
|
1171
1168
|
});
|
|
1172
1169
|
}
|
|
1173
|
-
function
|
|
1170
|
+
function Yn(e, t) {
|
|
1174
1171
|
if (!t.customMerge)
|
|
1175
|
-
return
|
|
1172
|
+
return re;
|
|
1176
1173
|
var r = t.customMerge(e);
|
|
1177
|
-
return typeof r == "function" ? r :
|
|
1174
|
+
return typeof r == "function" ? r : re;
|
|
1178
1175
|
}
|
|
1179
|
-
function
|
|
1176
|
+
function qn(e) {
|
|
1180
1177
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1181
1178
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1182
1179
|
}) : [];
|
|
1183
1180
|
}
|
|
1184
|
-
function
|
|
1185
|
-
return Object.keys(e).concat(
|
|
1181
|
+
function Rt(e) {
|
|
1182
|
+
return Object.keys(e).concat(qn(e));
|
|
1186
1183
|
}
|
|
1187
|
-
function
|
|
1184
|
+
function hr(e, t) {
|
|
1188
1185
|
try {
|
|
1189
1186
|
return t in e;
|
|
1190
1187
|
} catch (r) {
|
|
1191
1188
|
return !1;
|
|
1192
1189
|
}
|
|
1193
1190
|
}
|
|
1194
|
-
function
|
|
1195
|
-
return
|
|
1191
|
+
function Kn(e, t) {
|
|
1192
|
+
return hr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1196
1193
|
}
|
|
1197
|
-
function
|
|
1194
|
+
function ei(e, t, r) {
|
|
1198
1195
|
var n = {};
|
|
1199
|
-
return r.isMergeableObject(e) &&
|
|
1200
|
-
n[i] =
|
|
1201
|
-
}),
|
|
1202
|
-
|
|
1196
|
+
return r.isMergeableObject(e) && Rt(e).forEach(function(i) {
|
|
1197
|
+
n[i] = me(e[i], r);
|
|
1198
|
+
}), Rt(t).forEach(function(i) {
|
|
1199
|
+
Kn(e, i) || (hr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Yn(i, r)(e[i], t[i], r) : n[i] = me(t[i], r));
|
|
1203
1200
|
}), n;
|
|
1204
1201
|
}
|
|
1205
|
-
function
|
|
1206
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1202
|
+
function re(e, t, r) {
|
|
1203
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Qn, r.isMergeableObject = r.isMergeableObject || kn, r.cloneUnlessOtherwiseSpecified = me;
|
|
1207
1204
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1208
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1205
|
+
return o ? n ? r.arrayMerge(e, t, r) : ei(e, t, r) : me(t, r);
|
|
1209
1206
|
}
|
|
1210
|
-
|
|
1207
|
+
re.all = function(t, r) {
|
|
1211
1208
|
if (!Array.isArray(t))
|
|
1212
1209
|
throw new Error("first argument should be an array");
|
|
1213
1210
|
return t.reduce(function(n, i) {
|
|
1214
|
-
return
|
|
1211
|
+
return re(n, i, r);
|
|
1215
1212
|
}, {});
|
|
1216
1213
|
};
|
|
1217
|
-
var
|
|
1218
|
-
const
|
|
1214
|
+
var ti = re, ri = ti;
|
|
1215
|
+
const ni = /* @__PURE__ */ jn(ri);
|
|
1219
1216
|
var y;
|
|
1220
1217
|
(function(e) {
|
|
1221
1218
|
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";
|
|
@@ -1224,47 +1221,47 @@ var w;
|
|
|
1224
1221
|
(function(e) {
|
|
1225
1222
|
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";
|
|
1226
1223
|
})(w || (w = {}));
|
|
1227
|
-
var
|
|
1224
|
+
var ne;
|
|
1228
1225
|
(function(e) {
|
|
1229
1226
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1230
|
-
})(
|
|
1231
|
-
function
|
|
1227
|
+
})(ne || (ne = {}));
|
|
1228
|
+
function Ot(e) {
|
|
1232
1229
|
return e.type === w.literal;
|
|
1233
1230
|
}
|
|
1234
|
-
function
|
|
1231
|
+
function ii(e) {
|
|
1235
1232
|
return e.type === w.argument;
|
|
1236
1233
|
}
|
|
1237
|
-
function
|
|
1234
|
+
function cr(e) {
|
|
1238
1235
|
return e.type === w.number;
|
|
1239
1236
|
}
|
|
1240
|
-
function
|
|
1237
|
+
function fr(e) {
|
|
1241
1238
|
return e.type === w.date;
|
|
1242
1239
|
}
|
|
1243
|
-
function
|
|
1240
|
+
function mr(e) {
|
|
1244
1241
|
return e.type === w.time;
|
|
1245
1242
|
}
|
|
1246
|
-
function
|
|
1243
|
+
function dr(e) {
|
|
1247
1244
|
return e.type === w.select;
|
|
1248
1245
|
}
|
|
1249
|
-
function
|
|
1246
|
+
function pr(e) {
|
|
1250
1247
|
return e.type === w.plural;
|
|
1251
1248
|
}
|
|
1252
|
-
function
|
|
1249
|
+
function oi(e) {
|
|
1253
1250
|
return e.type === w.pound;
|
|
1254
1251
|
}
|
|
1255
|
-
function
|
|
1252
|
+
function br(e) {
|
|
1256
1253
|
return e.type === w.tag;
|
|
1257
1254
|
}
|
|
1258
|
-
function
|
|
1259
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1255
|
+
function gr(e) {
|
|
1256
|
+
return !!(e && typeof e == "object" && e.type === ne.number);
|
|
1260
1257
|
}
|
|
1261
1258
|
function qe(e) {
|
|
1262
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1259
|
+
return !!(e && typeof e == "object" && e.type === ne.dateTime);
|
|
1263
1260
|
}
|
|
1264
|
-
var
|
|
1265
|
-
function
|
|
1261
|
+
var yr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ai = /(?:[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;
|
|
1262
|
+
function si(e) {
|
|
1266
1263
|
var t = {};
|
|
1267
|
-
return e.replace(
|
|
1264
|
+
return e.replace(ai, function(r) {
|
|
1268
1265
|
var n = r.length;
|
|
1269
1266
|
switch (r[0]) {
|
|
1270
1267
|
case "G":
|
|
@@ -1353,11 +1350,11 @@ function ii(e) {
|
|
|
1353
1350
|
return "";
|
|
1354
1351
|
}), t;
|
|
1355
1352
|
}
|
|
1356
|
-
var
|
|
1357
|
-
function
|
|
1353
|
+
var ui = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1354
|
+
function li(e) {
|
|
1358
1355
|
if (e.length === 0)
|
|
1359
1356
|
throw new Error("Number skeleton cannot be empty");
|
|
1360
|
-
for (var t = e.split(
|
|
1357
|
+
for (var t = e.split(ui).filter(function(c) {
|
|
1361
1358
|
return c.length > 0;
|
|
1362
1359
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1363
1360
|
var o = i[n], a = o.split("/");
|
|
@@ -1372,17 +1369,17 @@ function ai(e) {
|
|
|
1372
1369
|
}
|
|
1373
1370
|
return r;
|
|
1374
1371
|
}
|
|
1375
|
-
function
|
|
1372
|
+
function hi(e) {
|
|
1376
1373
|
return e.replace(/^(.*?)-/, "");
|
|
1377
1374
|
}
|
|
1378
|
-
var It = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,
|
|
1379
|
-
function
|
|
1375
|
+
var It = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, vr = /^(@+)?(\+|#+)?[rs]?$/g, ci = /(\*)(0+)|(#+)(0+)|(0+)/g, _r = /^(0+)$/;
|
|
1376
|
+
function Ct(e) {
|
|
1380
1377
|
var t = {};
|
|
1381
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1378
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(vr, function(r, n, i) {
|
|
1382
1379
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1383
1380
|
}), t;
|
|
1384
1381
|
}
|
|
1385
|
-
function
|
|
1382
|
+
function xr(e) {
|
|
1386
1383
|
switch (e) {
|
|
1387
1384
|
case "sign-auto":
|
|
1388
1385
|
return {
|
|
@@ -1422,7 +1419,7 @@ function _r(e) {
|
|
|
1422
1419
|
};
|
|
1423
1420
|
}
|
|
1424
1421
|
}
|
|
1425
|
-
function
|
|
1422
|
+
function fi(e) {
|
|
1426
1423
|
var t;
|
|
1427
1424
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1428
1425
|
notation: "engineering"
|
|
@@ -1430,17 +1427,17 @@ function li(e) {
|
|
|
1430
1427
|
notation: "scientific"
|
|
1431
1428
|
}, e = e.slice(1)), t) {
|
|
1432
1429
|
var r = e.slice(0, 2);
|
|
1433
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1430
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !_r.test(e))
|
|
1434
1431
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1435
1432
|
t.minimumIntegerDigits = e.length;
|
|
1436
1433
|
}
|
|
1437
1434
|
return t;
|
|
1438
1435
|
}
|
|
1439
|
-
function
|
|
1440
|
-
var t = {}, r =
|
|
1436
|
+
function Lt(e) {
|
|
1437
|
+
var t = {}, r = xr(e);
|
|
1441
1438
|
return r || t;
|
|
1442
1439
|
}
|
|
1443
|
-
function
|
|
1440
|
+
function mi(e) {
|
|
1444
1441
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1445
1442
|
var i = n[r];
|
|
1446
1443
|
switch (i.stem) {
|
|
@@ -1464,7 +1461,7 @@ function hi(e) {
|
|
|
1464
1461
|
continue;
|
|
1465
1462
|
case "measure-unit":
|
|
1466
1463
|
case "unit":
|
|
1467
|
-
t.style = "unit", t.unit =
|
|
1464
|
+
t.style = "unit", t.unit = hi(i.options[0]);
|
|
1468
1465
|
continue;
|
|
1469
1466
|
case "compact-short":
|
|
1470
1467
|
case "K":
|
|
@@ -1475,13 +1472,13 @@ function hi(e) {
|
|
|
1475
1472
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1476
1473
|
continue;
|
|
1477
1474
|
case "scientific":
|
|
1478
|
-
t =
|
|
1479
|
-
return
|
|
1475
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
|
|
1476
|
+
return _(_({}, h), Lt(l));
|
|
1480
1477
|
}, {}));
|
|
1481
1478
|
continue;
|
|
1482
1479
|
case "engineering":
|
|
1483
|
-
t =
|
|
1484
|
-
return
|
|
1480
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
|
|
1481
|
+
return _(_({}, h), Lt(l));
|
|
1485
1482
|
}, {}));
|
|
1486
1483
|
continue;
|
|
1487
1484
|
case "notation-simple":
|
|
@@ -1526,7 +1523,7 @@ function hi(e) {
|
|
|
1526
1523
|
case "integer-width":
|
|
1527
1524
|
if (i.options.length > 1)
|
|
1528
1525
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1529
|
-
i.options[0].replace(
|
|
1526
|
+
i.options[0].replace(ci, function(h, l, u, f, c, m) {
|
|
1530
1527
|
if (l)
|
|
1531
1528
|
t.minimumIntegerDigits = u.length;
|
|
1532
1529
|
else {
|
|
@@ -1539,7 +1536,7 @@ function hi(e) {
|
|
|
1539
1536
|
});
|
|
1540
1537
|
continue;
|
|
1541
1538
|
}
|
|
1542
|
-
if (
|
|
1539
|
+
if (_r.test(i.stem)) {
|
|
1543
1540
|
t.minimumIntegerDigits = i.stem.length;
|
|
1544
1541
|
continue;
|
|
1545
1542
|
}
|
|
@@ -1550,21 +1547,21 @@ function hi(e) {
|
|
|
1550
1547
|
return u === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1551
1548
|
});
|
|
1552
1549
|
var o = i.options[0];
|
|
1553
|
-
o === "w" ? t =
|
|
1550
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), Ct(o)));
|
|
1554
1551
|
continue;
|
|
1555
1552
|
}
|
|
1556
|
-
if (
|
|
1557
|
-
t =
|
|
1553
|
+
if (vr.test(i.stem)) {
|
|
1554
|
+
t = _(_({}, t), Ct(i.stem));
|
|
1558
1555
|
continue;
|
|
1559
1556
|
}
|
|
1560
|
-
var a =
|
|
1561
|
-
a && (t =
|
|
1562
|
-
var s =
|
|
1563
|
-
s && (t =
|
|
1557
|
+
var a = xr(i.stem);
|
|
1558
|
+
a && (t = _(_({}, t), a));
|
|
1559
|
+
var s = fi(i.stem);
|
|
1560
|
+
s && (t = _(_({}, t), s));
|
|
1564
1561
|
}
|
|
1565
1562
|
return t;
|
|
1566
1563
|
}
|
|
1567
|
-
var
|
|
1564
|
+
var ve = {
|
|
1568
1565
|
"001": [
|
|
1569
1566
|
"H",
|
|
1570
1567
|
"h"
|
|
@@ -2973,13 +2970,13 @@ var ye = {
|
|
|
2973
2970
|
"h"
|
|
2974
2971
|
]
|
|
2975
2972
|
};
|
|
2976
|
-
function
|
|
2973
|
+
function di(e, t) {
|
|
2977
2974
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2978
2975
|
var i = e.charAt(n);
|
|
2979
2976
|
if (i === "j") {
|
|
2980
2977
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2981
2978
|
o++, n++;
|
|
2982
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", l =
|
|
2979
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = pi(t);
|
|
2983
2980
|
for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
|
|
2984
2981
|
r += h;
|
|
2985
2982
|
for (; a-- > 0; )
|
|
@@ -2988,7 +2985,7 @@ function ci(e, t) {
|
|
|
2988
2985
|
}
|
|
2989
2986
|
return r;
|
|
2990
2987
|
}
|
|
2991
|
-
function
|
|
2988
|
+
function pi(e) {
|
|
2992
2989
|
var t = e.hourCycle;
|
|
2993
2990
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2994
2991
|
e.hourCycles && // @ts-ignore
|
|
@@ -3007,23 +3004,23 @@ function fi(e) {
|
|
|
3007
3004
|
}
|
|
3008
3005
|
var r = e.language, n;
|
|
3009
3006
|
r !== "root" && (n = e.maximize().region);
|
|
3010
|
-
var i =
|
|
3007
|
+
var i = ve[n || ""] || ve[r || ""] || ve["".concat(r, "-001")] || ve["001"];
|
|
3011
3008
|
return i[0];
|
|
3012
3009
|
}
|
|
3013
|
-
var
|
|
3014
|
-
function
|
|
3010
|
+
var De, bi = new RegExp("^".concat(yr.source, "*")), gi = new RegExp("".concat(yr.source, "*$"));
|
|
3011
|
+
function v(e, t) {
|
|
3015
3012
|
return { start: e, end: t };
|
|
3016
3013
|
}
|
|
3017
|
-
var
|
|
3014
|
+
var yi = !!String.prototype.startsWith && "_a".startsWith("a", 1), vi = !!String.fromCodePoint, _i = !!Object.fromEntries, xi = !!String.prototype.codePointAt, Ei = !!String.prototype.trimStart, wi = !!String.prototype.trimEnd, Si = !!Number.isSafeInteger, Ti = Si ? Number.isSafeInteger : function(e) {
|
|
3018
3015
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3019
3016
|
}, Ke = !0;
|
|
3020
3017
|
try {
|
|
3021
|
-
var
|
|
3022
|
-
Ke = ((
|
|
3018
|
+
var Hi = wr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3019
|
+
Ke = ((De = Hi.exec("a")) === null || De === void 0 ? void 0 : De[0]) === "a";
|
|
3023
3020
|
} catch (e) {
|
|
3024
3021
|
Ke = !1;
|
|
3025
3022
|
}
|
|
3026
|
-
var
|
|
3023
|
+
var Mt = yi ? (
|
|
3027
3024
|
// Native
|
|
3028
3025
|
function(t, r, n) {
|
|
3029
3026
|
return t.startsWith(r, n);
|
|
@@ -3033,7 +3030,7 @@ var Ct = pi ? (
|
|
|
3033
3030
|
function(t, r, n) {
|
|
3034
3031
|
return t.slice(n, n + r.length) === r;
|
|
3035
3032
|
}
|
|
3036
|
-
), et =
|
|
3033
|
+
), et = vi ? String.fromCodePoint : (
|
|
3037
3034
|
// IE11
|
|
3038
3035
|
function() {
|
|
3039
3036
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3045,9 +3042,9 @@ var Ct = pi ? (
|
|
|
3045
3042
|
}
|
|
3046
3043
|
return n;
|
|
3047
3044
|
}
|
|
3048
|
-
),
|
|
3045
|
+
), Nt = (
|
|
3049
3046
|
// native
|
|
3050
|
-
|
|
3047
|
+
_i ? Object.fromEntries : (
|
|
3051
3048
|
// Ponyfill
|
|
3052
3049
|
function(t) {
|
|
3053
3050
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3057,7 +3054,7 @@ var Ct = pi ? (
|
|
|
3057
3054
|
return r;
|
|
3058
3055
|
}
|
|
3059
3056
|
)
|
|
3060
|
-
),
|
|
3057
|
+
), Er = xi ? (
|
|
3061
3058
|
// Native
|
|
3062
3059
|
function(t, r) {
|
|
3063
3060
|
return t.codePointAt(r);
|
|
@@ -3071,7 +3068,7 @@ var Ct = pi ? (
|
|
|
3071
3068
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3072
3069
|
}
|
|
3073
3070
|
}
|
|
3074
|
-
),
|
|
3071
|
+
), Bi = Ei ? (
|
|
3075
3072
|
// Native
|
|
3076
3073
|
function(t) {
|
|
3077
3074
|
return t.trimStart();
|
|
@@ -3079,9 +3076,9 @@ var Ct = pi ? (
|
|
|
3079
3076
|
) : (
|
|
3080
3077
|
// Ponyfill
|
|
3081
3078
|
function(t) {
|
|
3082
|
-
return t.replace(
|
|
3079
|
+
return t.replace(bi, "");
|
|
3083
3080
|
}
|
|
3084
|
-
),
|
|
3081
|
+
), Ai = wi ? (
|
|
3085
3082
|
// Native
|
|
3086
3083
|
function(t) {
|
|
3087
3084
|
return t.trimEnd();
|
|
@@ -3089,32 +3086,32 @@ var Ct = pi ? (
|
|
|
3089
3086
|
) : (
|
|
3090
3087
|
// Ponyfill
|
|
3091
3088
|
function(t) {
|
|
3092
|
-
return t.replace(
|
|
3089
|
+
return t.replace(gi, "");
|
|
3093
3090
|
}
|
|
3094
3091
|
);
|
|
3095
|
-
function
|
|
3092
|
+
function wr(e, t) {
|
|
3096
3093
|
return new RegExp(e, t);
|
|
3097
3094
|
}
|
|
3098
3095
|
var tt;
|
|
3099
3096
|
if (Ke) {
|
|
3100
|
-
var
|
|
3097
|
+
var Gt = wr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3101
3098
|
tt = function(t, r) {
|
|
3102
3099
|
var n;
|
|
3103
|
-
|
|
3104
|
-
var i =
|
|
3100
|
+
Gt.lastIndex = r;
|
|
3101
|
+
var i = Gt.exec(t);
|
|
3105
3102
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3106
3103
|
};
|
|
3107
3104
|
} else
|
|
3108
3105
|
tt = function(t, r) {
|
|
3109
3106
|
for (var n = []; ; ) {
|
|
3110
|
-
var i =
|
|
3111
|
-
if (i === void 0 ||
|
|
3107
|
+
var i = Er(t, r);
|
|
3108
|
+
if (i === void 0 || Sr(i) || Ii(i))
|
|
3112
3109
|
break;
|
|
3113
3110
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3114
3111
|
}
|
|
3115
3112
|
return et.apply(void 0, n);
|
|
3116
3113
|
};
|
|
3117
|
-
var
|
|
3114
|
+
var Pi = (
|
|
3118
3115
|
/** @class */
|
|
3119
3116
|
function() {
|
|
3120
3117
|
function e(t, r) {
|
|
@@ -3139,12 +3136,12 @@ var Hi = (
|
|
|
3139
3136
|
var s = this.clonePosition();
|
|
3140
3137
|
this.bump(), i.push({
|
|
3141
3138
|
type: w.pound,
|
|
3142
|
-
location:
|
|
3139
|
+
location: v(s, this.clonePosition())
|
|
3143
3140
|
});
|
|
3144
3141
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3145
3142
|
if (n)
|
|
3146
3143
|
break;
|
|
3147
|
-
return this.error(y.UNMATCHED_CLOSING_TAG,
|
|
3144
|
+
return this.error(y.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
3148
3145
|
} else if (o === 60 && !this.ignoreTag && rt(this.peek() || 0)) {
|
|
3149
3146
|
var a = this.parseTag(t, r);
|
|
3150
3147
|
if (a.err)
|
|
@@ -3168,7 +3165,7 @@ var Hi = (
|
|
|
3168
3165
|
val: {
|
|
3169
3166
|
type: w.literal,
|
|
3170
3167
|
value: "<".concat(i, "/>"),
|
|
3171
|
-
location:
|
|
3168
|
+
location: v(n, this.clonePosition())
|
|
3172
3169
|
},
|
|
3173
3170
|
err: null
|
|
3174
3171
|
};
|
|
@@ -3179,24 +3176,24 @@ var Hi = (
|
|
|
3179
3176
|
var a = o.val, s = this.clonePosition();
|
|
3180
3177
|
if (this.bumpIf("</")) {
|
|
3181
3178
|
if (this.isEOF() || !rt(this.char()))
|
|
3182
|
-
return this.error(y.INVALID_TAG,
|
|
3179
|
+
return this.error(y.INVALID_TAG, v(s, this.clonePosition()));
|
|
3183
3180
|
var h = this.clonePosition(), l = this.parseTagName();
|
|
3184
|
-
return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG,
|
|
3181
|
+
return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG, v(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3185
3182
|
val: {
|
|
3186
3183
|
type: w.tag,
|
|
3187
3184
|
value: i,
|
|
3188
3185
|
children: a,
|
|
3189
|
-
location:
|
|
3186
|
+
location: v(n, this.clonePosition())
|
|
3190
3187
|
},
|
|
3191
3188
|
err: null
|
|
3192
|
-
} : this.error(y.INVALID_TAG,
|
|
3189
|
+
} : this.error(y.INVALID_TAG, v(s, this.clonePosition())));
|
|
3193
3190
|
} else
|
|
3194
|
-
return this.error(y.UNCLOSED_TAG,
|
|
3191
|
+
return this.error(y.UNCLOSED_TAG, v(n, this.clonePosition()));
|
|
3195
3192
|
} else
|
|
3196
|
-
return this.error(y.INVALID_TAG,
|
|
3193
|
+
return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
|
|
3197
3194
|
}, e.prototype.parseTagName = function() {
|
|
3198
3195
|
var t = this.offset();
|
|
3199
|
-
for (this.bump(); !this.isEOF() &&
|
|
3196
|
+
for (this.bump(); !this.isEOF() && Oi(this.char()); )
|
|
3200
3197
|
this.bump();
|
|
3201
3198
|
return this.message.slice(t, this.offset());
|
|
3202
3199
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3218,14 +3215,14 @@ var Hi = (
|
|
|
3218
3215
|
}
|
|
3219
3216
|
break;
|
|
3220
3217
|
}
|
|
3221
|
-
var h =
|
|
3218
|
+
var h = v(n, this.clonePosition());
|
|
3222
3219
|
return {
|
|
3223
3220
|
val: { type: w.literal, value: i, location: h },
|
|
3224
3221
|
err: null
|
|
3225
3222
|
};
|
|
3226
3223
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3227
3224
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3228
|
-
!
|
|
3225
|
+
!Ri(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3229
3226
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3230
3227
|
if (this.isEOF() || this.char() !== 39)
|
|
3231
3228
|
return null;
|
|
@@ -3268,14 +3265,14 @@ var Hi = (
|
|
|
3268
3265
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3269
3266
|
var n = this.clonePosition();
|
|
3270
3267
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3271
|
-
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3268
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3272
3269
|
if (this.char() === 125)
|
|
3273
|
-
return this.bump(), this.error(y.EMPTY_ARGUMENT,
|
|
3270
|
+
return this.bump(), this.error(y.EMPTY_ARGUMENT, v(n, this.clonePosition()));
|
|
3274
3271
|
var i = this.parseIdentifierIfPossible().value;
|
|
3275
3272
|
if (!i)
|
|
3276
|
-
return this.error(y.MALFORMED_ARGUMENT,
|
|
3273
|
+
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3277
3274
|
if (this.bumpSpace(), this.isEOF())
|
|
3278
|
-
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3275
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3279
3276
|
switch (this.char()) {
|
|
3280
3277
|
case 125:
|
|
3281
3278
|
return this.bump(), {
|
|
@@ -3283,25 +3280,25 @@ var Hi = (
|
|
|
3283
3280
|
type: w.argument,
|
|
3284
3281
|
// value does not include the opening and closing braces.
|
|
3285
3282
|
value: i,
|
|
3286
|
-
location:
|
|
3283
|
+
location: v(n, this.clonePosition())
|
|
3287
3284
|
},
|
|
3288
3285
|
err: null
|
|
3289
3286
|
};
|
|
3290
3287
|
case 44:
|
|
3291
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3288
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3292
3289
|
default:
|
|
3293
|
-
return this.error(y.MALFORMED_ARGUMENT,
|
|
3290
|
+
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3294
3291
|
}
|
|
3295
3292
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3296
3293
|
var t = this.clonePosition(), r = this.offset(), n = tt(this.message, r), i = r + n.length;
|
|
3297
3294
|
this.bumpTo(i);
|
|
3298
|
-
var o = this.clonePosition(), a =
|
|
3295
|
+
var o = this.clonePosition(), a = v(t, o);
|
|
3299
3296
|
return { value: n, location: a };
|
|
3300
3297
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3301
3298
|
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3302
3299
|
switch (s) {
|
|
3303
3300
|
case "":
|
|
3304
|
-
return this.error(y.EXPECT_ARGUMENT_TYPE,
|
|
3301
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, v(a, h));
|
|
3305
3302
|
case "number":
|
|
3306
3303
|
case "date":
|
|
3307
3304
|
case "time": {
|
|
@@ -3312,37 +3309,37 @@ var Hi = (
|
|
|
3312
3309
|
var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3313
3310
|
if (f.err)
|
|
3314
3311
|
return f;
|
|
3315
|
-
var c =
|
|
3312
|
+
var c = Ai(f.val);
|
|
3316
3313
|
if (c.length === 0)
|
|
3317
|
-
return this.error(y.EXPECT_ARGUMENT_STYLE,
|
|
3318
|
-
var m =
|
|
3314
|
+
return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
3315
|
+
var m = v(u, this.clonePosition());
|
|
3319
3316
|
l = { style: c, styleLocation: m };
|
|
3320
3317
|
}
|
|
3321
3318
|
var d = this.tryParseArgumentClose(i);
|
|
3322
3319
|
if (d.err)
|
|
3323
3320
|
return d;
|
|
3324
|
-
var b =
|
|
3325
|
-
if (l &&
|
|
3326
|
-
var
|
|
3321
|
+
var b = v(i, this.clonePosition());
|
|
3322
|
+
if (l && Mt(l == null ? void 0 : l.style, "::", 0)) {
|
|
3323
|
+
var B = Bi(l.style.slice(2));
|
|
3327
3324
|
if (s === "number") {
|
|
3328
|
-
var f = this.parseNumberSkeletonFromString(
|
|
3325
|
+
var f = this.parseNumberSkeletonFromString(B, l.styleLocation);
|
|
3329
3326
|
return f.err ? f : {
|
|
3330
3327
|
val: { type: w.number, value: n, location: b, style: f.val },
|
|
3331
3328
|
err: null
|
|
3332
3329
|
};
|
|
3333
3330
|
} else {
|
|
3334
|
-
if (
|
|
3331
|
+
if (B.length === 0)
|
|
3335
3332
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, b);
|
|
3336
|
-
var
|
|
3337
|
-
this.locale && (
|
|
3333
|
+
var T = B;
|
|
3334
|
+
this.locale && (T = di(B, this.locale));
|
|
3338
3335
|
var c = {
|
|
3339
|
-
type:
|
|
3340
|
-
pattern:
|
|
3336
|
+
type: ne.dateTime,
|
|
3337
|
+
pattern: T,
|
|
3341
3338
|
location: l.styleLocation,
|
|
3342
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3343
|
-
},
|
|
3339
|
+
parsedOptions: this.shouldParseSkeletons ? si(T) : {}
|
|
3340
|
+
}, H = s === "date" ? w.date : w.time;
|
|
3344
3341
|
return {
|
|
3345
|
-
val: { type:
|
|
3342
|
+
val: { type: H, value: n, location: b, style: c },
|
|
3346
3343
|
err: null
|
|
3347
3344
|
};
|
|
3348
3345
|
}
|
|
@@ -3360,52 +3357,52 @@ var Hi = (
|
|
|
3360
3357
|
case "plural":
|
|
3361
3358
|
case "selectordinal":
|
|
3362
3359
|
case "select": {
|
|
3363
|
-
var
|
|
3360
|
+
var A = this.clonePosition();
|
|
3364
3361
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3365
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
3362
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(A, _({}, A)));
|
|
3366
3363
|
this.bumpSpace();
|
|
3367
|
-
var
|
|
3368
|
-
if (s !== "select" &&
|
|
3364
|
+
var U = this.parseIdentifierIfPossible(), C = 0;
|
|
3365
|
+
if (s !== "select" && U.value === "offset") {
|
|
3369
3366
|
if (!this.bumpIf(":"))
|
|
3370
|
-
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
3367
|
+
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
|
3371
3368
|
this.bumpSpace();
|
|
3372
3369
|
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3373
3370
|
if (f.err)
|
|
3374
3371
|
return f;
|
|
3375
|
-
this.bumpSpace(),
|
|
3372
|
+
this.bumpSpace(), U = this.parseIdentifierIfPossible(), C = f.val;
|
|
3376
3373
|
}
|
|
3377
|
-
var
|
|
3378
|
-
if (
|
|
3379
|
-
return
|
|
3374
|
+
var Z = this.tryParsePluralOrSelectOptions(t, s, r, U);
|
|
3375
|
+
if (Z.err)
|
|
3376
|
+
return Z;
|
|
3380
3377
|
var d = this.tryParseArgumentClose(i);
|
|
3381
3378
|
if (d.err)
|
|
3382
3379
|
return d;
|
|
3383
|
-
var
|
|
3380
|
+
var N = v(i, this.clonePosition());
|
|
3384
3381
|
return s === "select" ? {
|
|
3385
3382
|
val: {
|
|
3386
3383
|
type: w.select,
|
|
3387
3384
|
value: n,
|
|
3388
|
-
options:
|
|
3389
|
-
location:
|
|
3385
|
+
options: Nt(Z.val),
|
|
3386
|
+
location: N
|
|
3390
3387
|
},
|
|
3391
3388
|
err: null
|
|
3392
3389
|
} : {
|
|
3393
3390
|
val: {
|
|
3394
3391
|
type: w.plural,
|
|
3395
3392
|
value: n,
|
|
3396
|
-
options:
|
|
3397
|
-
offset:
|
|
3393
|
+
options: Nt(Z.val),
|
|
3394
|
+
offset: C,
|
|
3398
3395
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3399
|
-
location:
|
|
3396
|
+
location: N
|
|
3400
3397
|
},
|
|
3401
3398
|
err: null
|
|
3402
3399
|
};
|
|
3403
3400
|
}
|
|
3404
3401
|
default:
|
|
3405
|
-
return this.error(y.INVALID_ARGUMENT_TYPE,
|
|
3402
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, v(a, h));
|
|
3406
3403
|
}
|
|
3407
3404
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3408
|
-
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3405
|
+
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3409
3406
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3410
3407
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3411
3408
|
var n = this.char();
|
|
@@ -3414,7 +3411,7 @@ var Hi = (
|
|
|
3414
3411
|
this.bump();
|
|
3415
3412
|
var i = this.clonePosition();
|
|
3416
3413
|
if (!this.bumpUntil("'"))
|
|
3417
|
-
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3414
|
+
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
|
|
3418
3415
|
this.bump();
|
|
3419
3416
|
break;
|
|
3420
3417
|
}
|
|
@@ -3444,16 +3441,16 @@ var Hi = (
|
|
|
3444
3441
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3445
3442
|
var n = [];
|
|
3446
3443
|
try {
|
|
3447
|
-
n =
|
|
3444
|
+
n = li(t);
|
|
3448
3445
|
} catch (i) {
|
|
3449
3446
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
3450
3447
|
}
|
|
3451
3448
|
return {
|
|
3452
3449
|
val: {
|
|
3453
|
-
type:
|
|
3450
|
+
type: ne.number,
|
|
3454
3451
|
tokens: n,
|
|
3455
3452
|
location: r,
|
|
3456
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3453
|
+
parsedOptions: this.shouldParseSkeletons ? mi(n) : {}
|
|
3457
3454
|
},
|
|
3458
3455
|
err: null
|
|
3459
3456
|
};
|
|
@@ -3465,7 +3462,7 @@ var Hi = (
|
|
|
3465
3462
|
var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3466
3463
|
if (c.err)
|
|
3467
3464
|
return c;
|
|
3468
|
-
u =
|
|
3465
|
+
u = v(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
|
|
3469
3466
|
} else
|
|
3470
3467
|
break;
|
|
3471
3468
|
}
|
|
@@ -3474,7 +3471,7 @@ var Hi = (
|
|
|
3474
3471
|
l === "other" && (a = !0), this.bumpSpace();
|
|
3475
3472
|
var m = this.clonePosition();
|
|
3476
3473
|
if (!this.bumpIf("{"))
|
|
3477
|
-
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3474
|
+
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
|
3478
3475
|
var d = this.parseMessage(t + 1, r, n);
|
|
3479
3476
|
if (d.err)
|
|
3480
3477
|
return d;
|
|
@@ -3485,11 +3482,11 @@ var Hi = (
|
|
|
3485
3482
|
l,
|
|
3486
3483
|
{
|
|
3487
3484
|
value: d.val,
|
|
3488
|
-
location:
|
|
3485
|
+
location: v(m, this.clonePosition())
|
|
3489
3486
|
}
|
|
3490
3487
|
]), h.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, u = o.location;
|
|
3491
3488
|
}
|
|
3492
|
-
return s.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3489
|
+
return s.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(y.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3493
3490
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3494
3491
|
var n = 1, i = this.clonePosition();
|
|
3495
3492
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3500,8 +3497,8 @@ var Hi = (
|
|
|
3500
3497
|
else
|
|
3501
3498
|
break;
|
|
3502
3499
|
}
|
|
3503
|
-
var h =
|
|
3504
|
-
return o ? (a *= n,
|
|
3500
|
+
var h = v(i, this.clonePosition());
|
|
3501
|
+
return o ? (a *= n, Ti(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3505
3502
|
}, e.prototype.offset = function() {
|
|
3506
3503
|
return this.position.offset;
|
|
3507
3504
|
}, e.prototype.isEOF = function() {
|
|
@@ -3516,7 +3513,7 @@ var Hi = (
|
|
|
3516
3513
|
var t = this.position.offset;
|
|
3517
3514
|
if (t >= this.message.length)
|
|
3518
3515
|
throw Error("out of bound");
|
|
3519
|
-
var r =
|
|
3516
|
+
var r = Er(this.message, t);
|
|
3520
3517
|
if (r === void 0)
|
|
3521
3518
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3522
3519
|
return r;
|
|
@@ -3535,7 +3532,7 @@ var Hi = (
|
|
|
3535
3532
|
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);
|
|
3536
3533
|
}
|
|
3537
3534
|
}, e.prototype.bumpIf = function(t) {
|
|
3538
|
-
if (
|
|
3535
|
+
if (Mt(this.message, t, this.offset())) {
|
|
3539
3536
|
for (var r = 0; r < t.length; r++)
|
|
3540
3537
|
this.bump();
|
|
3541
3538
|
return !0;
|
|
@@ -3557,7 +3554,7 @@ var Hi = (
|
|
|
3557
3554
|
break;
|
|
3558
3555
|
}
|
|
3559
3556
|
}, e.prototype.bumpSpace = function() {
|
|
3560
|
-
for (; !this.isEOF() &&
|
|
3557
|
+
for (; !this.isEOF() && Sr(this.char()); )
|
|
3561
3558
|
this.bump();
|
|
3562
3559
|
}, e.prototype.peek = function() {
|
|
3563
3560
|
if (this.isEOF())
|
|
@@ -3570,67 +3567,67 @@ var Hi = (
|
|
|
3570
3567
|
function rt(e) {
|
|
3571
3568
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3572
3569
|
}
|
|
3573
|
-
function
|
|
3570
|
+
function Ri(e) {
|
|
3574
3571
|
return rt(e) || e === 47;
|
|
3575
3572
|
}
|
|
3576
|
-
function
|
|
3573
|
+
function Oi(e) {
|
|
3577
3574
|
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;
|
|
3578
3575
|
}
|
|
3579
|
-
function
|
|
3576
|
+
function Sr(e) {
|
|
3580
3577
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3581
3578
|
}
|
|
3582
|
-
function
|
|
3579
|
+
function Ii(e) {
|
|
3583
3580
|
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;
|
|
3584
3581
|
}
|
|
3585
3582
|
function nt(e) {
|
|
3586
3583
|
e.forEach(function(t) {
|
|
3587
|
-
if (delete t.location,
|
|
3584
|
+
if (delete t.location, dr(t) || pr(t))
|
|
3588
3585
|
for (var r in t.options)
|
|
3589
3586
|
delete t.options[r].location, nt(t.options[r].value);
|
|
3590
|
-
else
|
|
3587
|
+
else cr(t) && gr(t.style) || (fr(t) || mr(t)) && qe(t.style) ? delete t.style.location : br(t) && nt(t.children);
|
|
3591
3588
|
});
|
|
3592
3589
|
}
|
|
3593
|
-
function
|
|
3594
|
-
t === void 0 && (t = {}), t =
|
|
3595
|
-
var r = new
|
|
3590
|
+
function Ci(e, t) {
|
|
3591
|
+
t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3592
|
+
var r = new Pi(e, t).parse();
|
|
3596
3593
|
if (r.err) {
|
|
3597
3594
|
var n = SyntaxError(y[r.err.kind]);
|
|
3598
3595
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3599
3596
|
}
|
|
3600
3597
|
return t != null && t.captureLocation || nt(r.val), r.val;
|
|
3601
3598
|
}
|
|
3602
|
-
function
|
|
3603
|
-
var r = t && t.cache ? t.cache :
|
|
3599
|
+
function Fe(e, t) {
|
|
3600
|
+
var r = t && t.cache ? t.cache : Di, n = t && t.serializer ? t.serializer : Ui, i = t && t.strategy ? t.strategy : Mi;
|
|
3604
3601
|
return i(e, {
|
|
3605
3602
|
cache: r,
|
|
3606
3603
|
serializer: n
|
|
3607
3604
|
});
|
|
3608
3605
|
}
|
|
3609
|
-
function
|
|
3606
|
+
function Li(e) {
|
|
3610
3607
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
3611
3608
|
}
|
|
3612
|
-
function
|
|
3613
|
-
var i =
|
|
3609
|
+
function Tr(e, t, r, n) {
|
|
3610
|
+
var i = Li(n) ? n : r(n), o = t.get(i);
|
|
3614
3611
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
3615
3612
|
}
|
|
3616
|
-
function
|
|
3613
|
+
function Hr(e, t, r) {
|
|
3617
3614
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
3618
3615
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
3619
3616
|
}
|
|
3620
3617
|
function ut(e, t, r, n, i) {
|
|
3621
3618
|
return r.bind(t, e, n, i);
|
|
3622
3619
|
}
|
|
3623
|
-
function
|
|
3624
|
-
var r = e.length === 1 ?
|
|
3620
|
+
function Mi(e, t) {
|
|
3621
|
+
var r = e.length === 1 ? Tr : Hr;
|
|
3625
3622
|
return ut(e, this, r, t.cache.create(), t.serializer);
|
|
3626
3623
|
}
|
|
3627
3624
|
function Ni(e, t) {
|
|
3628
|
-
return ut(e, this,
|
|
3625
|
+
return ut(e, this, Hr, t.cache.create(), t.serializer);
|
|
3629
3626
|
}
|
|
3630
|
-
function
|
|
3631
|
-
return ut(e, this,
|
|
3627
|
+
function Gi(e, t) {
|
|
3628
|
+
return ut(e, this, Tr, t.cache.create(), t.serializer);
|
|
3632
3629
|
}
|
|
3633
|
-
var
|
|
3630
|
+
var Ui = function() {
|
|
3634
3631
|
return JSON.stringify(arguments);
|
|
3635
3632
|
};
|
|
3636
3633
|
function lt() {
|
|
@@ -3642,21 +3639,21 @@ lt.prototype.get = function(e) {
|
|
|
3642
3639
|
lt.prototype.set = function(e, t) {
|
|
3643
3640
|
this.cache[e] = t;
|
|
3644
3641
|
};
|
|
3645
|
-
var
|
|
3642
|
+
var Di = {
|
|
3646
3643
|
create: function() {
|
|
3647
3644
|
return new lt();
|
|
3648
3645
|
}
|
|
3649
|
-
},
|
|
3646
|
+
}, $e = {
|
|
3650
3647
|
variadic: Ni,
|
|
3651
|
-
monadic:
|
|
3652
|
-
},
|
|
3648
|
+
monadic: Gi
|
|
3649
|
+
}, ie;
|
|
3653
3650
|
(function(e) {
|
|
3654
3651
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3655
|
-
})(
|
|
3656
|
-
var
|
|
3652
|
+
})(ie || (ie = {}));
|
|
3653
|
+
var Oe = (
|
|
3657
3654
|
/** @class */
|
|
3658
3655
|
function(e) {
|
|
3659
|
-
|
|
3656
|
+
F(t, e);
|
|
3660
3657
|
function t(r, n, i) {
|
|
3661
3658
|
var o = e.call(this, r) || this;
|
|
3662
3659
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3665,155 +3662,155 @@ var Re = (
|
|
|
3665
3662
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3666
3663
|
}, t;
|
|
3667
3664
|
}(Error)
|
|
3668
|
-
),
|
|
3665
|
+
), Ut = (
|
|
3669
3666
|
/** @class */
|
|
3670
3667
|
function(e) {
|
|
3671
|
-
|
|
3668
|
+
F(t, e);
|
|
3672
3669
|
function t(r, n, i, o) {
|
|
3673
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3670
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ie.INVALID_VALUE, o) || this;
|
|
3674
3671
|
}
|
|
3675
3672
|
return t;
|
|
3676
|
-
}(
|
|
3677
|
-
),
|
|
3673
|
+
}(Oe)
|
|
3674
|
+
), Fi = (
|
|
3678
3675
|
/** @class */
|
|
3679
3676
|
function(e) {
|
|
3680
|
-
|
|
3677
|
+
F(t, e);
|
|
3681
3678
|
function t(r, n, i) {
|
|
3682
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3679
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ie.INVALID_VALUE, i) || this;
|
|
3683
3680
|
}
|
|
3684
3681
|
return t;
|
|
3685
|
-
}(
|
|
3686
|
-
),
|
|
3682
|
+
}(Oe)
|
|
3683
|
+
), $i = (
|
|
3687
3684
|
/** @class */
|
|
3688
3685
|
function(e) {
|
|
3689
|
-
|
|
3686
|
+
F(t, e);
|
|
3690
3687
|
function t(r, n) {
|
|
3691
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3688
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ie.MISSING_VALUE, n) || this;
|
|
3692
3689
|
}
|
|
3693
3690
|
return t;
|
|
3694
|
-
}(
|
|
3695
|
-
),
|
|
3691
|
+
}(Oe)
|
|
3692
|
+
), P;
|
|
3696
3693
|
(function(e) {
|
|
3697
3694
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3698
|
-
})(
|
|
3699
|
-
function
|
|
3695
|
+
})(P || (P = {}));
|
|
3696
|
+
function ji(e) {
|
|
3700
3697
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3701
3698
|
var n = t[t.length - 1];
|
|
3702
|
-
return !n || n.type !==
|
|
3699
|
+
return !n || n.type !== P.literal || r.type !== P.literal ? t.push(r) : n.value += r.value, t;
|
|
3703
3700
|
}, []);
|
|
3704
3701
|
}
|
|
3705
|
-
function
|
|
3702
|
+
function ki(e) {
|
|
3706
3703
|
return typeof e == "function";
|
|
3707
3704
|
}
|
|
3708
|
-
function
|
|
3709
|
-
if (e.length === 1 &&
|
|
3705
|
+
function we(e, t, r, n, i, o, a) {
|
|
3706
|
+
if (e.length === 1 && Ot(e[0]))
|
|
3710
3707
|
return [
|
|
3711
3708
|
{
|
|
3712
|
-
type:
|
|
3709
|
+
type: P.literal,
|
|
3713
3710
|
value: e[0].value
|
|
3714
3711
|
}
|
|
3715
3712
|
];
|
|
3716
3713
|
for (var s = [], h = 0, l = e; h < l.length; h++) {
|
|
3717
3714
|
var u = l[h];
|
|
3718
|
-
if (
|
|
3715
|
+
if (Ot(u)) {
|
|
3719
3716
|
s.push({
|
|
3720
|
-
type:
|
|
3717
|
+
type: P.literal,
|
|
3721
3718
|
value: u.value
|
|
3722
3719
|
});
|
|
3723
3720
|
continue;
|
|
3724
3721
|
}
|
|
3725
|
-
if (
|
|
3722
|
+
if (oi(u)) {
|
|
3726
3723
|
typeof o == "number" && s.push({
|
|
3727
|
-
type:
|
|
3724
|
+
type: P.literal,
|
|
3728
3725
|
value: r.getNumberFormat(t).format(o)
|
|
3729
3726
|
});
|
|
3730
3727
|
continue;
|
|
3731
3728
|
}
|
|
3732
3729
|
var f = u.value;
|
|
3733
3730
|
if (!(i && f in i))
|
|
3734
|
-
throw new
|
|
3731
|
+
throw new $i(f, a);
|
|
3735
3732
|
var c = i[f];
|
|
3736
|
-
if (
|
|
3733
|
+
if (ii(u)) {
|
|
3737
3734
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
|
|
3738
|
-
type: typeof c == "string" ?
|
|
3735
|
+
type: typeof c == "string" ? P.literal : P.object,
|
|
3739
3736
|
value: c
|
|
3740
3737
|
});
|
|
3741
3738
|
continue;
|
|
3742
3739
|
}
|
|
3743
|
-
if (
|
|
3740
|
+
if (fr(u)) {
|
|
3744
3741
|
var m = typeof u.style == "string" ? n.date[u.style] : qe(u.style) ? u.style.parsedOptions : void 0;
|
|
3745
3742
|
s.push({
|
|
3746
|
-
type:
|
|
3743
|
+
type: P.literal,
|
|
3747
3744
|
value: r.getDateTimeFormat(t, m).format(c)
|
|
3748
3745
|
});
|
|
3749
3746
|
continue;
|
|
3750
3747
|
}
|
|
3751
|
-
if (
|
|
3748
|
+
if (mr(u)) {
|
|
3752
3749
|
var m = typeof u.style == "string" ? n.time[u.style] : qe(u.style) ? u.style.parsedOptions : n.time.medium;
|
|
3753
3750
|
s.push({
|
|
3754
|
-
type:
|
|
3751
|
+
type: P.literal,
|
|
3755
3752
|
value: r.getDateTimeFormat(t, m).format(c)
|
|
3756
3753
|
});
|
|
3757
3754
|
continue;
|
|
3758
3755
|
}
|
|
3759
|
-
if (
|
|
3760
|
-
var m = typeof u.style == "string" ? n.number[u.style] :
|
|
3756
|
+
if (cr(u)) {
|
|
3757
|
+
var m = typeof u.style == "string" ? n.number[u.style] : gr(u.style) ? u.style.parsedOptions : void 0;
|
|
3761
3758
|
m && m.scale && (c = c * (m.scale || 1)), s.push({
|
|
3762
|
-
type:
|
|
3759
|
+
type: P.literal,
|
|
3763
3760
|
value: r.getNumberFormat(t, m).format(c)
|
|
3764
3761
|
});
|
|
3765
3762
|
continue;
|
|
3766
3763
|
}
|
|
3767
|
-
if (
|
|
3768
|
-
var d = u.children, b = u.value,
|
|
3769
|
-
if (!
|
|
3770
|
-
throw new
|
|
3771
|
-
var
|
|
3772
|
-
return
|
|
3764
|
+
if (br(u)) {
|
|
3765
|
+
var d = u.children, b = u.value, B = i[b];
|
|
3766
|
+
if (!ki(B))
|
|
3767
|
+
throw new Fi(b, "function", a);
|
|
3768
|
+
var T = we(d, t, r, n, i, o), H = B(T.map(function(C) {
|
|
3769
|
+
return C.value;
|
|
3773
3770
|
}));
|
|
3774
|
-
Array.isArray(
|
|
3771
|
+
Array.isArray(H) || (H = [H]), s.push.apply(s, H.map(function(C) {
|
|
3775
3772
|
return {
|
|
3776
|
-
type: typeof
|
|
3777
|
-
value:
|
|
3773
|
+
type: typeof C == "string" ? P.literal : P.object,
|
|
3774
|
+
value: C
|
|
3778
3775
|
};
|
|
3779
3776
|
}));
|
|
3780
3777
|
}
|
|
3781
|
-
if (
|
|
3782
|
-
var
|
|
3783
|
-
if (!
|
|
3784
|
-
throw new
|
|
3785
|
-
s.push.apply(s,
|
|
3778
|
+
if (dr(u)) {
|
|
3779
|
+
var A = u.options[c] || u.options.other;
|
|
3780
|
+
if (!A)
|
|
3781
|
+
throw new Ut(u.value, c, Object.keys(u.options), a);
|
|
3782
|
+
s.push.apply(s, we(A.value, t, r, n, i));
|
|
3786
3783
|
continue;
|
|
3787
3784
|
}
|
|
3788
|
-
if (
|
|
3789
|
-
var
|
|
3790
|
-
if (!
|
|
3785
|
+
if (pr(u)) {
|
|
3786
|
+
var A = u.options["=".concat(c)];
|
|
3787
|
+
if (!A) {
|
|
3791
3788
|
if (!Intl.PluralRules)
|
|
3792
|
-
throw new
|
|
3789
|
+
throw new Oe(`Intl.PluralRules is not available in this environment.
|
|
3793
3790
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3794
|
-
`,
|
|
3795
|
-
var
|
|
3796
|
-
|
|
3791
|
+
`, ie.MISSING_INTL_API, a);
|
|
3792
|
+
var U = r.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
|
|
3793
|
+
A = u.options[U] || u.options.other;
|
|
3797
3794
|
}
|
|
3798
|
-
if (!
|
|
3799
|
-
throw new
|
|
3800
|
-
s.push.apply(s,
|
|
3795
|
+
if (!A)
|
|
3796
|
+
throw new Ut(u.value, c, Object.keys(u.options), a);
|
|
3797
|
+
s.push.apply(s, we(A.value, t, r, n, i, c - (u.offset || 0)));
|
|
3801
3798
|
continue;
|
|
3802
3799
|
}
|
|
3803
3800
|
}
|
|
3804
|
-
return
|
|
3801
|
+
return ji(s);
|
|
3805
3802
|
}
|
|
3806
|
-
function
|
|
3807
|
-
return t ?
|
|
3808
|
-
return r[n] =
|
|
3803
|
+
function Vi(e, t) {
|
|
3804
|
+
return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3805
|
+
return r[n] = _(_({}, e[n]), t[n] || {}), r;
|
|
3809
3806
|
}, {})) : e;
|
|
3810
3807
|
}
|
|
3811
|
-
function
|
|
3808
|
+
function Wi(e, t) {
|
|
3812
3809
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3813
|
-
return r[n] =
|
|
3814
|
-
},
|
|
3810
|
+
return r[n] = Vi(e[n], t[n]), r;
|
|
3811
|
+
}, _({}, e)) : e;
|
|
3815
3812
|
}
|
|
3816
|
-
function
|
|
3813
|
+
function je(e) {
|
|
3817
3814
|
return {
|
|
3818
3815
|
create: function() {
|
|
3819
3816
|
return {
|
|
@@ -3827,39 +3824,39 @@ function $e(e) {
|
|
|
3827
3824
|
}
|
|
3828
3825
|
};
|
|
3829
3826
|
}
|
|
3830
|
-
function
|
|
3827
|
+
function Xi(e) {
|
|
3831
3828
|
return e === void 0 && (e = {
|
|
3832
3829
|
number: {},
|
|
3833
3830
|
dateTime: {},
|
|
3834
3831
|
pluralRules: {}
|
|
3835
3832
|
}), {
|
|
3836
|
-
getNumberFormat:
|
|
3833
|
+
getNumberFormat: Fe(function() {
|
|
3837
3834
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3838
3835
|
r[n] = arguments[n];
|
|
3839
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3836
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, te([void 0], r, !1)))();
|
|
3840
3837
|
}, {
|
|
3841
|
-
cache:
|
|
3842
|
-
strategy:
|
|
3838
|
+
cache: je(e.number),
|
|
3839
|
+
strategy: $e.variadic
|
|
3843
3840
|
}),
|
|
3844
|
-
getDateTimeFormat:
|
|
3841
|
+
getDateTimeFormat: Fe(function() {
|
|
3845
3842
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3846
3843
|
r[n] = arguments[n];
|
|
3847
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3844
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, te([void 0], r, !1)))();
|
|
3848
3845
|
}, {
|
|
3849
|
-
cache:
|
|
3850
|
-
strategy:
|
|
3846
|
+
cache: je(e.dateTime),
|
|
3847
|
+
strategy: $e.variadic
|
|
3851
3848
|
}),
|
|
3852
|
-
getPluralRules:
|
|
3849
|
+
getPluralRules: Fe(function() {
|
|
3853
3850
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3854
3851
|
r[n] = arguments[n];
|
|
3855
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3852
|
+
return new ((t = Intl.PluralRules).bind.apply(t, te([void 0], r, !1)))();
|
|
3856
3853
|
}, {
|
|
3857
|
-
cache:
|
|
3858
|
-
strategy:
|
|
3854
|
+
cache: je(e.pluralRules),
|
|
3855
|
+
strategy: $e.variadic
|
|
3859
3856
|
})
|
|
3860
3857
|
};
|
|
3861
3858
|
}
|
|
3862
|
-
var
|
|
3859
|
+
var zi = (
|
|
3863
3860
|
/** @class */
|
|
3864
3861
|
function() {
|
|
3865
3862
|
function e(t, r, n, i) {
|
|
@@ -3873,11 +3870,11 @@ var Vi = (
|
|
|
3873
3870
|
if (l.length === 1)
|
|
3874
3871
|
return l[0].value;
|
|
3875
3872
|
var u = l.reduce(function(f, c) {
|
|
3876
|
-
return !f.length || c.type !==
|
|
3873
|
+
return !f.length || c.type !== P.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3877
3874
|
}, []);
|
|
3878
3875
|
return u.length <= 1 ? u[0] || "" : u;
|
|
3879
3876
|
}, this.formatToParts = function(h) {
|
|
3880
|
-
return
|
|
3877
|
+
return we(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3881
3878
|
}, this.resolvedOptions = function() {
|
|
3882
3879
|
var h;
|
|
3883
3880
|
return {
|
|
@@ -3890,13 +3887,13 @@ var Vi = (
|
|
|
3890
3887
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3891
3888
|
var a = i || {};
|
|
3892
3889
|
a.formatters;
|
|
3893
|
-
var s =
|
|
3894
|
-
this.ast = e.__parse(t,
|
|
3890
|
+
var s = Bn(a, ["formatters"]);
|
|
3891
|
+
this.ast = e.__parse(t, _(_({}, s), { locale: this.resolvedLocale }));
|
|
3895
3892
|
} else
|
|
3896
3893
|
this.ast = t;
|
|
3897
3894
|
if (!Array.isArray(this.ast))
|
|
3898
3895
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3899
|
-
this.formats =
|
|
3896
|
+
this.formats = Wi(e.formats, n), this.formatters = i && i.formatters || Xi(this.formatterCache);
|
|
3900
3897
|
}
|
|
3901
3898
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3902
3899
|
get: function() {
|
|
@@ -3909,7 +3906,7 @@ var Vi = (
|
|
|
3909
3906
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3910
3907
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3911
3908
|
}
|
|
3912
|
-
}, e.__parse =
|
|
3909
|
+
}, e.__parse = Ci, e.formats = {
|
|
3913
3910
|
number: {
|
|
3914
3911
|
integer: {
|
|
3915
3912
|
maximumFractionDigits: 0
|
|
@@ -3970,7 +3967,7 @@ var Vi = (
|
|
|
3970
3967
|
}, e;
|
|
3971
3968
|
}()
|
|
3972
3969
|
);
|
|
3973
|
-
function
|
|
3970
|
+
function Ji(e, t) {
|
|
3974
3971
|
if (t == null)
|
|
3975
3972
|
return;
|
|
3976
3973
|
if (t in e)
|
|
@@ -3991,60 +3988,60 @@ function Wi(e, t) {
|
|
|
3991
3988
|
n = void 0;
|
|
3992
3989
|
return n;
|
|
3993
3990
|
}
|
|
3994
|
-
const
|
|
3991
|
+
const $ = {}, Zi = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), Br = (e, t) => {
|
|
3995
3992
|
if (t == null)
|
|
3996
3993
|
return;
|
|
3997
|
-
if (t in
|
|
3998
|
-
return
|
|
3994
|
+
if (t in $ && e in $[t])
|
|
3995
|
+
return $[t][e];
|
|
3999
3996
|
const r = Ie(t);
|
|
4000
3997
|
for (let n = 0; n < r.length; n++) {
|
|
4001
|
-
const i = r[n], o =
|
|
3998
|
+
const i = r[n], o = Yi(i, e);
|
|
4002
3999
|
if (o)
|
|
4003
|
-
return
|
|
4000
|
+
return Zi(e, t, o);
|
|
4004
4001
|
}
|
|
4005
4002
|
};
|
|
4006
4003
|
let ht;
|
|
4007
|
-
const
|
|
4008
|
-
function
|
|
4004
|
+
const se = Re({});
|
|
4005
|
+
function Qi(e) {
|
|
4009
4006
|
return ht[e] || null;
|
|
4010
4007
|
}
|
|
4011
|
-
function
|
|
4008
|
+
function Ar(e) {
|
|
4012
4009
|
return e in ht;
|
|
4013
4010
|
}
|
|
4014
|
-
function
|
|
4015
|
-
if (!
|
|
4011
|
+
function Yi(e, t) {
|
|
4012
|
+
if (!Ar(e))
|
|
4016
4013
|
return null;
|
|
4017
|
-
const r =
|
|
4018
|
-
return
|
|
4014
|
+
const r = Qi(e);
|
|
4015
|
+
return Ji(r, t);
|
|
4019
4016
|
}
|
|
4020
|
-
function
|
|
4017
|
+
function qi(e) {
|
|
4021
4018
|
if (e == null)
|
|
4022
4019
|
return;
|
|
4023
4020
|
const t = Ie(e);
|
|
4024
4021
|
for (let r = 0; r < t.length; r++) {
|
|
4025
4022
|
const n = t[r];
|
|
4026
|
-
if (
|
|
4023
|
+
if (Ar(n))
|
|
4027
4024
|
return n;
|
|
4028
4025
|
}
|
|
4029
4026
|
}
|
|
4030
|
-
function
|
|
4031
|
-
delete
|
|
4027
|
+
function Pr(e, ...t) {
|
|
4028
|
+
delete $[e], se.update((r) => (r[e] = ni.all([r[e] || {}, ...t]), r));
|
|
4032
4029
|
}
|
|
4033
|
-
|
|
4034
|
-
[
|
|
4030
|
+
ae(
|
|
4031
|
+
[se],
|
|
4035
4032
|
([e]) => Object.keys(e)
|
|
4036
4033
|
);
|
|
4037
|
-
|
|
4038
|
-
const
|
|
4039
|
-
function
|
|
4040
|
-
|
|
4034
|
+
se.subscribe((e) => ht = e);
|
|
4035
|
+
const Se = {};
|
|
4036
|
+
function Ki(e, t) {
|
|
4037
|
+
Se[e].delete(t), Se[e].size === 0 && delete Se[e];
|
|
4041
4038
|
}
|
|
4042
|
-
function
|
|
4043
|
-
return
|
|
4039
|
+
function Rr(e) {
|
|
4040
|
+
return Se[e];
|
|
4044
4041
|
}
|
|
4045
|
-
function
|
|
4042
|
+
function eo(e) {
|
|
4046
4043
|
return Ie(e).map((t) => {
|
|
4047
|
-
const r =
|
|
4044
|
+
const r = Rr(t);
|
|
4048
4045
|
return [t, r ? [...r] : []];
|
|
4049
4046
|
}).filter(([, t]) => t.length > 0);
|
|
4050
4047
|
}
|
|
@@ -4052,31 +4049,31 @@ function it(e) {
|
|
|
4052
4049
|
return e == null ? !1 : Ie(e).some(
|
|
4053
4050
|
(t) => {
|
|
4054
4051
|
var r;
|
|
4055
|
-
return (r =
|
|
4052
|
+
return (r = Rr(t)) == null ? void 0 : r.size;
|
|
4056
4053
|
}
|
|
4057
4054
|
);
|
|
4058
4055
|
}
|
|
4059
|
-
function
|
|
4056
|
+
function to(e, t) {
|
|
4060
4057
|
return Promise.all(
|
|
4061
|
-
t.map((n) => (
|
|
4062
|
-
).then((n) =>
|
|
4058
|
+
t.map((n) => (Ki(e, n), n().then((i) => i.default || i)))
|
|
4059
|
+
).then((n) => Pr(e, ...n));
|
|
4063
4060
|
}
|
|
4064
|
-
const
|
|
4065
|
-
function
|
|
4061
|
+
const he = {};
|
|
4062
|
+
function Or(e) {
|
|
4066
4063
|
if (!it(e))
|
|
4067
|
-
return e in
|
|
4068
|
-
const t =
|
|
4069
|
-
return
|
|
4064
|
+
return e in he ? he[e] : Promise.resolve();
|
|
4065
|
+
const t = eo(e);
|
|
4066
|
+
return he[e] = Promise.all(
|
|
4070
4067
|
t.map(
|
|
4071
|
-
([r, n]) =>
|
|
4068
|
+
([r, n]) => to(r, n)
|
|
4072
4069
|
)
|
|
4073
4070
|
).then(() => {
|
|
4074
4071
|
if (it(e))
|
|
4075
|
-
return
|
|
4076
|
-
delete
|
|
4077
|
-
}),
|
|
4072
|
+
return Or(e);
|
|
4073
|
+
delete he[e];
|
|
4074
|
+
}), he[e];
|
|
4078
4075
|
}
|
|
4079
|
-
const
|
|
4076
|
+
const ro = {
|
|
4080
4077
|
number: {
|
|
4081
4078
|
scientific: { notation: "scientific" },
|
|
4082
4079
|
engineering: { notation: "engineering" },
|
|
@@ -4105,150 +4102,150 @@ const Ki = {
|
|
|
4105
4102
|
timeZoneName: "short"
|
|
4106
4103
|
}
|
|
4107
4104
|
}
|
|
4108
|
-
},
|
|
4105
|
+
}, no = {
|
|
4109
4106
|
fallbackLocale: null,
|
|
4110
4107
|
loadingDelay: 200,
|
|
4111
|
-
formats:
|
|
4108
|
+
formats: ro,
|
|
4112
4109
|
warnOnMissingMessages: !0,
|
|
4113
4110
|
handleMissingMessage: void 0,
|
|
4114
4111
|
ignoreTag: !0
|
|
4115
|
-
},
|
|
4116
|
-
function
|
|
4117
|
-
return
|
|
4112
|
+
}, io = no;
|
|
4113
|
+
function oe() {
|
|
4114
|
+
return io;
|
|
4118
4115
|
}
|
|
4119
|
-
const
|
|
4120
|
-
var
|
|
4116
|
+
const ke = Re(!1);
|
|
4117
|
+
var oo = Object.defineProperty, ao = Object.defineProperties, so = Object.getOwnPropertyDescriptors, Dt = Object.getOwnPropertySymbols, uo = Object.prototype.hasOwnProperty, lo = Object.prototype.propertyIsEnumerable, Ft = (e, t, r) => t in e ? oo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ho = (e, t) => {
|
|
4121
4118
|
for (var r in t || (t = {}))
|
|
4122
|
-
|
|
4123
|
-
if (
|
|
4124
|
-
for (var r of
|
|
4125
|
-
|
|
4119
|
+
uo.call(t, r) && Ft(e, r, t[r]);
|
|
4120
|
+
if (Dt)
|
|
4121
|
+
for (var r of Dt(t))
|
|
4122
|
+
lo.call(t, r) && Ft(e, r, t[r]);
|
|
4126
4123
|
return e;
|
|
4127
|
-
},
|
|
4124
|
+
}, co = (e, t) => ao(e, so(t));
|
|
4128
4125
|
let ot;
|
|
4129
|
-
const
|
|
4130
|
-
function
|
|
4126
|
+
const Be = Re(null);
|
|
4127
|
+
function $t(e) {
|
|
4131
4128
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4132
4129
|
}
|
|
4133
|
-
function Ie(e, t =
|
|
4134
|
-
const r =
|
|
4135
|
-
return t ? [.../* @__PURE__ */ new Set([...r,
|
|
4130
|
+
function Ie(e, t = oe().fallbackLocale) {
|
|
4131
|
+
const r = $t(e);
|
|
4132
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...$t(t)])] : r;
|
|
4136
4133
|
}
|
|
4137
|
-
function
|
|
4134
|
+
function J() {
|
|
4138
4135
|
return ot != null ? ot : void 0;
|
|
4139
4136
|
}
|
|
4140
|
-
|
|
4137
|
+
Be.subscribe((e) => {
|
|
4141
4138
|
ot = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4142
4139
|
});
|
|
4143
|
-
const
|
|
4144
|
-
if (e &&
|
|
4145
|
-
const { loadingDelay: t } =
|
|
4140
|
+
const fo = (e) => {
|
|
4141
|
+
if (e && qi(e) && it(e)) {
|
|
4142
|
+
const { loadingDelay: t } = oe();
|
|
4146
4143
|
let r;
|
|
4147
|
-
return typeof window != "undefined" &&
|
|
4148
|
-
() =>
|
|
4144
|
+
return typeof window != "undefined" && J() != null && t ? r = window.setTimeout(
|
|
4145
|
+
() => ke.set(!0),
|
|
4149
4146
|
t
|
|
4150
|
-
) :
|
|
4151
|
-
|
|
4147
|
+
) : ke.set(!0), Or(e).then(() => {
|
|
4148
|
+
Be.set(e);
|
|
4152
4149
|
}).finally(() => {
|
|
4153
|
-
clearTimeout(r),
|
|
4150
|
+
clearTimeout(r), ke.set(!1);
|
|
4154
4151
|
});
|
|
4155
4152
|
}
|
|
4156
|
-
return
|
|
4157
|
-
},
|
|
4158
|
-
set:
|
|
4159
|
-
}),
|
|
4153
|
+
return Be.set(e);
|
|
4154
|
+
}, V = co(ho({}, Be), {
|
|
4155
|
+
set: fo
|
|
4156
|
+
}), Ce = (e) => {
|
|
4160
4157
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4161
4158
|
return (n) => {
|
|
4162
4159
|
const i = JSON.stringify(n);
|
|
4163
4160
|
return i in t ? t[i] : t[i] = e(n);
|
|
4164
4161
|
};
|
|
4165
4162
|
};
|
|
4166
|
-
var
|
|
4163
|
+
var mo = Object.defineProperty, Ae = Object.getOwnPropertySymbols, Ir = Object.prototype.hasOwnProperty, Cr = Object.prototype.propertyIsEnumerable, jt = (e, t, r) => t in e ? mo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ct = (e, t) => {
|
|
4167
4164
|
for (var r in t || (t = {}))
|
|
4168
|
-
Ir.call(t, r) &&
|
|
4169
|
-
if (
|
|
4170
|
-
for (var r of
|
|
4171
|
-
|
|
4165
|
+
Ir.call(t, r) && jt(e, r, t[r]);
|
|
4166
|
+
if (Ae)
|
|
4167
|
+
for (var r of Ae(t))
|
|
4168
|
+
Cr.call(t, r) && jt(e, r, t[r]);
|
|
4172
4169
|
return e;
|
|
4173
|
-
},
|
|
4170
|
+
}, ue = (e, t) => {
|
|
4174
4171
|
var r = {};
|
|
4175
4172
|
for (var n in e)
|
|
4176
4173
|
Ir.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4177
|
-
if (e != null &&
|
|
4178
|
-
for (var n of
|
|
4179
|
-
t.indexOf(n) < 0 &&
|
|
4174
|
+
if (e != null && Ae)
|
|
4175
|
+
for (var n of Ae(e))
|
|
4176
|
+
t.indexOf(n) < 0 && Cr.call(e, n) && (r[n] = e[n]);
|
|
4180
4177
|
return r;
|
|
4181
4178
|
};
|
|
4182
|
-
const
|
|
4183
|
-
const { formats: r } =
|
|
4179
|
+
const de = (e, t) => {
|
|
4180
|
+
const { formats: r } = oe();
|
|
4184
4181
|
if (e in r && t in r[e])
|
|
4185
4182
|
return r[e][t];
|
|
4186
4183
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4187
|
-
},
|
|
4184
|
+
}, po = Ce(
|
|
4188
4185
|
(e) => {
|
|
4189
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4186
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
4190
4187
|
if (r == null)
|
|
4191
4188
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4192
|
-
return n && (i =
|
|
4189
|
+
return n && (i = de("number", n)), new Intl.NumberFormat(r, i);
|
|
4193
4190
|
}
|
|
4194
|
-
),
|
|
4191
|
+
), bo = Ce(
|
|
4195
4192
|
(e) => {
|
|
4196
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4193
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
4197
4194
|
if (r == null)
|
|
4198
4195
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4199
|
-
return n ? i =
|
|
4196
|
+
return n ? i = de("date", n) : Object.keys(i).length === 0 && (i = de("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4200
4197
|
}
|
|
4201
|
-
),
|
|
4198
|
+
), go = Ce(
|
|
4202
4199
|
(e) => {
|
|
4203
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4200
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
4204
4201
|
if (r == null)
|
|
4205
4202
|
throw new Error(
|
|
4206
4203
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4207
4204
|
);
|
|
4208
|
-
return n ? i =
|
|
4205
|
+
return n ? i = de("time", n) : Object.keys(i).length === 0 && (i = de("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4209
4206
|
}
|
|
4210
|
-
),
|
|
4207
|
+
), yo = (e = {}) => {
|
|
4211
4208
|
var t = e, {
|
|
4212
|
-
locale: r =
|
|
4213
|
-
} = t, n =
|
|
4209
|
+
locale: r = J()
|
|
4210
|
+
} = t, n = ue(t, [
|
|
4214
4211
|
"locale"
|
|
4215
4212
|
]);
|
|
4216
|
-
return
|
|
4217
|
-
},
|
|
4213
|
+
return po(ct({ locale: r }, n));
|
|
4214
|
+
}, vo = (e = {}) => {
|
|
4218
4215
|
var t = e, {
|
|
4219
|
-
locale: r =
|
|
4220
|
-
} = t, n =
|
|
4216
|
+
locale: r = J()
|
|
4217
|
+
} = t, n = ue(t, [
|
|
4221
4218
|
"locale"
|
|
4222
4219
|
]);
|
|
4223
|
-
return
|
|
4224
|
-
},
|
|
4220
|
+
return bo(ct({ locale: r }, n));
|
|
4221
|
+
}, _o = (e = {}) => {
|
|
4225
4222
|
var t = e, {
|
|
4226
|
-
locale: r =
|
|
4227
|
-
} = t, n =
|
|
4223
|
+
locale: r = J()
|
|
4224
|
+
} = t, n = ue(t, [
|
|
4228
4225
|
"locale"
|
|
4229
4226
|
]);
|
|
4230
|
-
return
|
|
4231
|
-
},
|
|
4227
|
+
return go(ct({ locale: r }, n));
|
|
4228
|
+
}, xo = Ce(
|
|
4232
4229
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4233
|
-
(e, t =
|
|
4234
|
-
ignoreTag:
|
|
4230
|
+
(e, t = J()) => new zi(e, t, oe().formats, {
|
|
4231
|
+
ignoreTag: oe().ignoreTag
|
|
4235
4232
|
})
|
|
4236
|
-
),
|
|
4233
|
+
), Eo = (e, t = {}) => {
|
|
4237
4234
|
var r, n, i, o;
|
|
4238
4235
|
let a = t;
|
|
4239
4236
|
typeof e == "object" && (a = e, e = a.id);
|
|
4240
4237
|
const {
|
|
4241
4238
|
values: s,
|
|
4242
|
-
locale: h =
|
|
4239
|
+
locale: h = J(),
|
|
4243
4240
|
default: l
|
|
4244
4241
|
} = a;
|
|
4245
4242
|
if (h == null)
|
|
4246
4243
|
throw new Error(
|
|
4247
4244
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4248
4245
|
);
|
|
4249
|
-
let u =
|
|
4246
|
+
let u = Br(e, h);
|
|
4250
4247
|
if (!u)
|
|
4251
|
-
u = (o = (i = (n = (r =
|
|
4248
|
+
u = (o = (i = (n = (r = oe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
4252
4249
|
else if (typeof u != "string")
|
|
4253
4250
|
return console.warn(
|
|
4254
4251
|
`[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.`
|
|
@@ -4257,7 +4254,7 @@ const pe = (e, t) => {
|
|
|
4257
4254
|
return u;
|
|
4258
4255
|
let f = u;
|
|
4259
4256
|
try {
|
|
4260
|
-
f =
|
|
4257
|
+
f = xo(u, h).format(s);
|
|
4261
4258
|
} catch (c) {
|
|
4262
4259
|
c instanceof Error && console.warn(
|
|
4263
4260
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4265,25 +4262,25 @@ const pe = (e, t) => {
|
|
|
4265
4262
|
);
|
|
4266
4263
|
}
|
|
4267
4264
|
return f;
|
|
4268
|
-
},
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
window.emWidgets = { topic:
|
|
4274
|
-
const
|
|
4275
|
-
function
|
|
4276
|
-
|
|
4277
|
-
r == null && (
|
|
4265
|
+
}, wo = (e, t) => _o(t).format(e), So = (e, t) => vo(t).format(e), To = (e, t) => yo(t).format(e), Ho = (e, t = J()) => Br(e, t), Bo = ae([V, se], () => Eo);
|
|
4266
|
+
ae([V], () => wo);
|
|
4267
|
+
ae([V], () => So);
|
|
4268
|
+
ae([V], () => To);
|
|
4269
|
+
ae([V, se], () => Ho);
|
|
4270
|
+
window.emWidgets = { topic: Fn };
|
|
4271
|
+
const Ao = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4272
|
+
function Po({ withLocale: e, translations: t }) {
|
|
4273
|
+
V.subscribe((r) => {
|
|
4274
|
+
r == null && (se.set(t), V.set(e));
|
|
4278
4275
|
});
|
|
4279
4276
|
}
|
|
4280
|
-
function
|
|
4281
|
-
|
|
4277
|
+
function kt(e, t) {
|
|
4278
|
+
Pr(e, t);
|
|
4282
4279
|
}
|
|
4283
|
-
function
|
|
4284
|
-
|
|
4280
|
+
function Ro(e) {
|
|
4281
|
+
V.set(e);
|
|
4285
4282
|
}
|
|
4286
|
-
const
|
|
4283
|
+
const Vt = {
|
|
4287
4284
|
en: {
|
|
4288
4285
|
playRandomGame: "Play a random game",
|
|
4289
4286
|
randomGameLoading: "Selecting ...",
|
|
@@ -4351,140 +4348,161 @@ const kt = {
|
|
|
4351
4348
|
noGames: "There are no random games to play"
|
|
4352
4349
|
}
|
|
4353
4350
|
};
|
|
4354
|
-
function
|
|
4355
|
-
|
|
4351
|
+
function Oo(e) {
|
|
4352
|
+
ln(e, "svelte-jp1l3j", "*,*::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(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));border-radius:5px;background:var(--emfe-w-color-white, #FFFFFF)}.ModalWindow .ModalCloseBtn{position:absolute;top:10px;right:10px;border-radius:50%;color:var(--emfe-w-color-secondary, var(--emfe-w-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}.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(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-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{font-size:16px;line-height:18px;text-align:center}.RandomGameDetails .RandomGameVendor{font-size:10px;margin-bottom:10px}.RandomGameDetails .RandomGamePlay{background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-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(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border:none;border-radius:5px;padding:0 30px;height:50px;font-size:16px;cursor:pointer}");
|
|
4356
4353
|
}
|
|
4357
|
-
function
|
|
4354
|
+
function Wt(e, t, r) {
|
|
4358
4355
|
const n = e.slice();
|
|
4359
|
-
return n[
|
|
4356
|
+
return n[41] = t[r], n;
|
|
4360
4357
|
}
|
|
4361
|
-
const
|
|
4362
|
-
function
|
|
4363
|
-
let t, r, n, i, o, a, s
|
|
4364
|
-
const
|
|
4358
|
+
const Io = (e) => ({}), Xt = (e) => ({});
|
|
4359
|
+
function zt(e) {
|
|
4360
|
+
let t, r, n, i, o, a, s;
|
|
4361
|
+
const h = (
|
|
4365
4362
|
/*#slots*/
|
|
4366
4363
|
e[22].close
|
|
4367
|
-
),
|
|
4368
|
-
|
|
4364
|
+
), l = on(
|
|
4365
|
+
h,
|
|
4369
4366
|
e,
|
|
4370
4367
|
/*$$scope*/
|
|
4371
4368
|
e[21],
|
|
4372
|
-
|
|
4373
|
-
),
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4369
|
+
Xt
|
|
4370
|
+
), u = l || Co();
|
|
4371
|
+
function f(d, b) {
|
|
4372
|
+
return (
|
|
4373
|
+
/*hasRandomGames*/
|
|
4374
|
+
d[7] ? Mo : Lo
|
|
4375
|
+
);
|
|
4376
|
+
}
|
|
4377
|
+
let c = f(e), m = c(e);
|
|
4379
4378
|
return {
|
|
4380
4379
|
c() {
|
|
4381
|
-
t =
|
|
4380
|
+
t = S("div"), r = S("div"), n = S("span"), u && u.c(), i = k(), m.c(), g(n, "class", "ModalCloseBtn"), g(n, "role", "button"), g(r, "class", "ModalContainer"), g(t, "class", "ModalWindow");
|
|
4382
4381
|
},
|
|
4383
4382
|
m(d, b) {
|
|
4384
|
-
|
|
4383
|
+
I(d, t, b), E(t, r), E(r, n), u && u.m(n, null), E(r, i), m.m(r, null), o = !0, a || (s = Te(
|
|
4385
4384
|
n,
|
|
4386
4385
|
"click",
|
|
4387
4386
|
/*closeModal*/
|
|
4388
4387
|
e[12]
|
|
4389
|
-
),
|
|
4388
|
+
), a = !0);
|
|
4390
4389
|
},
|
|
4391
4390
|
p(d, b) {
|
|
4392
|
-
|
|
4393
|
-
2097152) &&
|
|
4394
|
-
u,
|
|
4391
|
+
l && l.p && (!o || b[0] & /*$$scope*/
|
|
4392
|
+
2097152) && sn(
|
|
4395
4393
|
l,
|
|
4394
|
+
h,
|
|
4396
4395
|
d,
|
|
4397
4396
|
/*$$scope*/
|
|
4398
4397
|
d[21],
|
|
4399
|
-
|
|
4400
|
-
|
|
4398
|
+
o ? an(
|
|
4399
|
+
h,
|
|
4401
4400
|
/*$$scope*/
|
|
4402
4401
|
d[21],
|
|
4403
4402
|
b,
|
|
4404
|
-
|
|
4405
|
-
) :
|
|
4403
|
+
Io
|
|
4404
|
+
) : un(
|
|
4406
4405
|
/*$$scope*/
|
|
4407
4406
|
d[21]
|
|
4408
4407
|
),
|
|
4409
|
-
|
|
4410
|
-
),
|
|
4411
|
-
d[7] ? c && (c.d(1), c = null) : c ? c.p(d, b) : (c = zt(d), c.c(), c.m(r, o)), /*slotDone*/
|
|
4412
|
-
d[7] ? m ? m.p(d, b) : (m = Zt(d), m.c(), m.m(r, null)) : m && (m.d(1), m = null);
|
|
4408
|
+
Xt
|
|
4409
|
+
), c === (c = f(d)) && m ? m.p(d, b) : (m.d(1), m = c(d), m && (m.c(), m.m(r, null)));
|
|
4413
4410
|
},
|
|
4414
4411
|
i(d) {
|
|
4415
|
-
|
|
4412
|
+
o || (fe(u, d), o = !0);
|
|
4416
4413
|
},
|
|
4417
4414
|
o(d) {
|
|
4418
|
-
Xe(
|
|
4415
|
+
Xe(u, d), o = !1;
|
|
4419
4416
|
},
|
|
4420
4417
|
d(d) {
|
|
4421
|
-
d &&
|
|
4418
|
+
d && R(t), u && u.d(d), m.d(), a = !1, s();
|
|
4422
4419
|
}
|
|
4423
4420
|
};
|
|
4424
4421
|
}
|
|
4425
|
-
function
|
|
4422
|
+
function Co(e) {
|
|
4426
4423
|
let t, r;
|
|
4427
4424
|
return {
|
|
4428
4425
|
c() {
|
|
4429
|
-
t =
|
|
4426
|
+
t = _t("svg"), r = _t("path"), g(r, "stroke-linecap", "round"), g(r, "stroke-linejoin", "round"), g(r, "stroke-width", "2"), g(r, "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");
|
|
4430
4427
|
},
|
|
4431
4428
|
m(n, i) {
|
|
4432
|
-
|
|
4429
|
+
I(n, t, i), E(t, r);
|
|
4433
4430
|
},
|
|
4434
|
-
p:
|
|
4431
|
+
p: G,
|
|
4435
4432
|
d(n) {
|
|
4436
|
-
n &&
|
|
4433
|
+
n && R(t);
|
|
4437
4434
|
}
|
|
4438
4435
|
};
|
|
4439
4436
|
}
|
|
4440
|
-
function
|
|
4441
|
-
let t, r
|
|
4437
|
+
function Lo(e) {
|
|
4438
|
+
let t, r = (
|
|
4442
4439
|
/*$_*/
|
|
4443
|
-
e[9]("
|
|
4444
|
-
),
|
|
4440
|
+
e[9]("noGames") + ""
|
|
4441
|
+
), n;
|
|
4442
|
+
return {
|
|
4443
|
+
c() {
|
|
4444
|
+
t = S("p"), n = j(r), g(t, "class", "RandomGameLoading");
|
|
4445
|
+
},
|
|
4446
|
+
m(i, o) {
|
|
4447
|
+
I(i, t, o), E(t, n);
|
|
4448
|
+
},
|
|
4449
|
+
p(i, o) {
|
|
4450
|
+
o[0] & /*$_*/
|
|
4451
|
+
512 && r !== (r = /*$_*/
|
|
4452
|
+
i[9]("noGames") + "") && X(n, r);
|
|
4453
|
+
},
|
|
4454
|
+
d(i) {
|
|
4455
|
+
i && R(t);
|
|
4456
|
+
}
|
|
4457
|
+
};
|
|
4458
|
+
}
|
|
4459
|
+
function Mo(e) {
|
|
4460
|
+
let t, r, n, i, o = Et(
|
|
4445
4461
|
/*gamesToShow*/
|
|
4446
4462
|
e[4]
|
|
4447
|
-
),
|
|
4448
|
-
for (let u = 0; u <
|
|
4449
|
-
|
|
4463
|
+
), a = [];
|
|
4464
|
+
for (let u = 0; u < o.length; u += 1)
|
|
4465
|
+
a[u] = Jt(Wt(e, o, u));
|
|
4466
|
+
function s(u, f) {
|
|
4467
|
+
return (
|
|
4468
|
+
/*animationDone*/
|
|
4469
|
+
u[6] ? Go : No
|
|
4470
|
+
);
|
|
4471
|
+
}
|
|
4472
|
+
let h = s(e), l = h(e);
|
|
4450
4473
|
return {
|
|
4451
4474
|
c() {
|
|
4452
|
-
t =
|
|
4453
|
-
for (let u = 0; u <
|
|
4454
|
-
|
|
4455
|
-
i =
|
|
4456
|
-
e[6] + "px)"), g(r, "class", "RandomGamesSliderWrapper"), g(o, "class", "RandomGameLoading"), g(t, "class", "RandomGameWrapper");
|
|
4475
|
+
t = S("div"), r = S("main"), n = S("div");
|
|
4476
|
+
for (let u = 0; u < a.length; u += 1)
|
|
4477
|
+
a[u].c();
|
|
4478
|
+
i = k(), l.c(), g(n, "class", "GamesContainer"), g(r, "class", "RandomGamesSliderWrapper"), g(t, "class", "RandomGameWrapper");
|
|
4457
4479
|
},
|
|
4458
4480
|
m(u, f) {
|
|
4459
|
-
|
|
4460
|
-
for (let c = 0; c <
|
|
4461
|
-
|
|
4462
|
-
|
|
4481
|
+
I(u, t, f), E(t, r), E(r, n);
|
|
4482
|
+
for (let c = 0; c < a.length; c += 1)
|
|
4483
|
+
a[c] && a[c].m(n, null);
|
|
4484
|
+
e[23](n), E(t, i), l.m(t, null);
|
|
4463
4485
|
},
|
|
4464
4486
|
p(u, f) {
|
|
4465
4487
|
if (f[0] & /*gamesToShow*/
|
|
4466
4488
|
16) {
|
|
4467
|
-
|
|
4489
|
+
o = Et(
|
|
4468
4490
|
/*gamesToShow*/
|
|
4469
4491
|
u[4]
|
|
4470
4492
|
);
|
|
4471
4493
|
let c;
|
|
4472
|
-
for (c = 0; c <
|
|
4473
|
-
const m =
|
|
4474
|
-
|
|
4494
|
+
for (c = 0; c < o.length; c += 1) {
|
|
4495
|
+
const m = Wt(u, o, c);
|
|
4496
|
+
a[c] ? a[c].p(m, f) : (a[c] = Jt(m), a[c].c(), a[c].m(n, null));
|
|
4475
4497
|
}
|
|
4476
|
-
for (; c <
|
|
4477
|
-
|
|
4478
|
-
|
|
4498
|
+
for (; c < a.length; c += 1)
|
|
4499
|
+
a[c].d(1);
|
|
4500
|
+
a.length = o.length;
|
|
4479
4501
|
}
|
|
4480
|
-
f
|
|
4481
|
-
64 && vt(n, "transform", "translateY(" + /*offset*/
|
|
4482
|
-
u[6] + "px)"), f[0] & /*$_*/
|
|
4483
|
-
512 && a !== (a = /*$_*/
|
|
4484
|
-
u[9]("randomGameLoading") + "") && Y(s, a);
|
|
4502
|
+
h === (h = s(u)) && l ? l.p(u, f) : (l.d(1), l = h(u), l && (l.c(), l.m(t, null)));
|
|
4485
4503
|
},
|
|
4486
4504
|
d(u) {
|
|
4487
|
-
u &&
|
|
4505
|
+
u && R(t), fn(a, u), e[23](null), l.d();
|
|
4488
4506
|
}
|
|
4489
4507
|
};
|
|
4490
4508
|
}
|
|
@@ -4492,321 +4510,304 @@ function Jt(e) {
|
|
|
4492
4510
|
let t, r, n, i, o, a;
|
|
4493
4511
|
return {
|
|
4494
4512
|
c() {
|
|
4495
|
-
t =
|
|
4496
|
-
e[
|
|
4497
|
-
e[
|
|
4498
|
-
e[
|
|
4513
|
+
t = S("div"), r = S("img"), a = k(), g(r, "class", "RandomGameImage"), vt(r.src, n = /*game*/
|
|
4514
|
+
e[41].thumbnail) || g(r, "src", n), g(r, "alt", i = /*game*/
|
|
4515
|
+
e[41].name), g(r, "title", o = /*game*/
|
|
4516
|
+
e[41].name), g(t, "class", "item");
|
|
4499
4517
|
},
|
|
4500
4518
|
m(s, h) {
|
|
4501
|
-
|
|
4519
|
+
I(s, t, h), E(t, r), E(t, a);
|
|
4502
4520
|
},
|
|
4503
4521
|
p(s, h) {
|
|
4504
4522
|
h[0] & /*gamesToShow*/
|
|
4505
|
-
16 && !
|
|
4506
|
-
s[
|
|
4523
|
+
16 && !vt(r.src, n = /*game*/
|
|
4524
|
+
s[41].thumbnail) && g(r, "src", n), h[0] & /*gamesToShow*/
|
|
4507
4525
|
16 && i !== (i = /*game*/
|
|
4508
|
-
s[
|
|
4526
|
+
s[41].name) && g(r, "alt", i), h[0] & /*gamesToShow*/
|
|
4509
4527
|
16 && o !== (o = /*game*/
|
|
4510
|
-
s[
|
|
4528
|
+
s[41].name) && g(r, "title", o);
|
|
4511
4529
|
},
|
|
4512
4530
|
d(s) {
|
|
4513
|
-
s &&
|
|
4531
|
+
s && R(t);
|
|
4514
4532
|
}
|
|
4515
4533
|
};
|
|
4516
4534
|
}
|
|
4517
|
-
function
|
|
4518
|
-
let t;
|
|
4519
|
-
function r(o, a) {
|
|
4520
|
-
return (
|
|
4521
|
-
/*hasRandomGames*/
|
|
4522
|
-
o[8] ? Oo : Io
|
|
4523
|
-
);
|
|
4524
|
-
}
|
|
4525
|
-
let n = r(e), i = n(e);
|
|
4526
|
-
return {
|
|
4527
|
-
c() {
|
|
4528
|
-
i.c(), t = un();
|
|
4529
|
-
},
|
|
4530
|
-
m(o, a) {
|
|
4531
|
-
i.m(o, a), U(o, t, a);
|
|
4532
|
-
},
|
|
4533
|
-
p(o, a) {
|
|
4534
|
-
n === (n = r(o)) && i ? i.p(o, a) : (i.d(1), i = n(o), i && (i.c(), i.m(t.parentNode, t)));
|
|
4535
|
-
},
|
|
4536
|
-
d(o) {
|
|
4537
|
-
o && M(t), i.d(o);
|
|
4538
|
-
}
|
|
4539
|
-
};
|
|
4540
|
-
}
|
|
4541
|
-
function Io(e) {
|
|
4535
|
+
function No(e) {
|
|
4542
4536
|
let t, r = (
|
|
4543
4537
|
/*$_*/
|
|
4544
|
-
e[9]("
|
|
4538
|
+
e[9]("randomGameLoading") + ""
|
|
4545
4539
|
), n;
|
|
4546
4540
|
return {
|
|
4547
4541
|
c() {
|
|
4548
|
-
t =
|
|
4542
|
+
t = S("p"), n = j(r), g(t, "class", "RandomGameLoading");
|
|
4549
4543
|
},
|
|
4550
4544
|
m(i, o) {
|
|
4551
|
-
|
|
4545
|
+
I(i, t, o), E(t, n);
|
|
4552
4546
|
},
|
|
4553
4547
|
p(i, o) {
|
|
4554
4548
|
o[0] & /*$_*/
|
|
4555
4549
|
512 && r !== (r = /*$_*/
|
|
4556
|
-
i[9]("
|
|
4550
|
+
i[9]("randomGameLoading") + "") && X(n, r);
|
|
4557
4551
|
},
|
|
4558
4552
|
d(i) {
|
|
4559
|
-
i &&
|
|
4553
|
+
i && R(t);
|
|
4560
4554
|
}
|
|
4561
4555
|
};
|
|
4562
4556
|
}
|
|
4563
|
-
function
|
|
4564
|
-
let t, r, n, i, o
|
|
4557
|
+
function Go(e) {
|
|
4558
|
+
let t, r, n, i, o = (
|
|
4565
4559
|
/*randomGame*/
|
|
4566
4560
|
e[3].name + ""
|
|
4567
|
-
),
|
|
4561
|
+
), a, s, h, l = (
|
|
4568
4562
|
/*randomGame*/
|
|
4569
4563
|
e[3].vendor.name + ""
|
|
4570
|
-
),
|
|
4564
|
+
), u, f, c, m = (
|
|
4571
4565
|
/*$_*/
|
|
4572
4566
|
e[9]("playNowRandomGame") + ""
|
|
4573
|
-
),
|
|
4567
|
+
), d, b, B;
|
|
4574
4568
|
return {
|
|
4575
4569
|
c() {
|
|
4576
|
-
t =
|
|
4577
|
-
|
|
4578
|
-
e[3].thumbnail) || g(n, "src", i), g(n, "alt", o = /*randomGame*/
|
|
4579
|
-
e[3].name), g(n, "title", a = /*randomGame*/
|
|
4580
|
-
e[3].name), g(h, "class", "RandomTryAgain"), g(r, "class", "item"), g(f, "class", "RandomGameTitle"), g(b, "class", "RandomGameVendor"), g(S, "class", "RandomGamePlay"), g(u, "class", "RandomGameDetails"), g(t, "class", "RandomGameWrapper");
|
|
4570
|
+
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(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));}
|
|
4571
|
+
</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>`, r = k(), n = S("div"), i = S("p"), a = j(o), s = k(), h = S("p"), u = j(l), f = k(), c = S("button"), d = j(m), g(t, "class", "RandomTryAgain"), g(i, "class", "RandomGameTitle"), g(h, "class", "RandomGameVendor"), g(c, "class", "RandomGamePlay"), g(n, "class", "RandomGameDetails");
|
|
4581
4572
|
},
|
|
4582
|
-
m(
|
|
4583
|
-
|
|
4573
|
+
m(T, H) {
|
|
4574
|
+
I(T, t, H), I(T, r, H), I(T, n, H), E(n, i), E(i, a), E(n, s), E(n, h), E(h, u), E(n, f), E(n, c), E(c, d), b || (B = [
|
|
4584
4575
|
Te(
|
|
4585
|
-
|
|
4576
|
+
t,
|
|
4586
4577
|
"click",
|
|
4587
4578
|
/*click_handler*/
|
|
4588
|
-
e[
|
|
4579
|
+
e[24]
|
|
4589
4580
|
),
|
|
4590
4581
|
Te(
|
|
4591
|
-
|
|
4582
|
+
c,
|
|
4592
4583
|
"click",
|
|
4593
4584
|
/*click_handler_1*/
|
|
4594
|
-
e[
|
|
4585
|
+
e[25]
|
|
4595
4586
|
)
|
|
4596
|
-
],
|
|
4587
|
+
], b = !0);
|
|
4597
4588
|
},
|
|
4598
|
-
p(
|
|
4599
|
-
|
|
4600
|
-
8 && !Se(n.src, i = /*randomGame*/
|
|
4601
|
-
O[3].thumbnail) && g(n, "src", i), D[0] & /*randomGame*/
|
|
4589
|
+
p(T, H) {
|
|
4590
|
+
H[0] & /*randomGame*/
|
|
4602
4591
|
8 && o !== (o = /*randomGame*/
|
|
4603
|
-
|
|
4604
|
-
8 &&
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
8 && H !== (H = /*randomGame*/
|
|
4609
|
-
O[3].vendor.name + "") && Y(B, H), D[0] & /*$_*/
|
|
4610
|
-
512 && I !== (I = /*$_*/
|
|
4611
|
-
O[9]("playNowRandomGame") + "") && Y(P, I);
|
|
4592
|
+
T[3].name + "") && X(a, o), H[0] & /*randomGame*/
|
|
4593
|
+
8 && l !== (l = /*randomGame*/
|
|
4594
|
+
T[3].vendor.name + "") && X(u, l), H[0] & /*$_*/
|
|
4595
|
+
512 && m !== (m = /*$_*/
|
|
4596
|
+
T[9]("playNowRandomGame") + "") && X(d, m);
|
|
4612
4597
|
},
|
|
4613
|
-
d(
|
|
4614
|
-
|
|
4598
|
+
d(T) {
|
|
4599
|
+
T && (R(t), R(r), R(n)), b = !1, z(B);
|
|
4615
4600
|
}
|
|
4616
4601
|
};
|
|
4617
4602
|
}
|
|
4618
|
-
function
|
|
4603
|
+
function Uo(e) {
|
|
4619
4604
|
let t, r = (
|
|
4620
4605
|
/*$_*/
|
|
4621
4606
|
e[9]("playRandomGame") + ""
|
|
4622
4607
|
), n;
|
|
4623
4608
|
return {
|
|
4624
4609
|
c() {
|
|
4625
|
-
t =
|
|
4610
|
+
t = S("span"), n = j(r), g(t, "class", "RandomButtonText");
|
|
4626
4611
|
},
|
|
4627
4612
|
m(i, o) {
|
|
4628
|
-
|
|
4613
|
+
I(i, t, o), E(t, n);
|
|
4629
4614
|
},
|
|
4630
4615
|
p(i, o) {
|
|
4631
4616
|
o[0] & /*$_*/
|
|
4632
4617
|
512 && r !== (r = /*$_*/
|
|
4633
|
-
i[9]("playRandomGame") + "") &&
|
|
4618
|
+
i[9]("playRandomGame") + "") && X(n, r);
|
|
4634
4619
|
},
|
|
4635
4620
|
d(i) {
|
|
4636
|
-
i &&
|
|
4621
|
+
i && R(t);
|
|
4637
4622
|
}
|
|
4638
4623
|
};
|
|
4639
4624
|
}
|
|
4640
|
-
function
|
|
4625
|
+
function Do(e) {
|
|
4641
4626
|
let t, r;
|
|
4642
4627
|
return {
|
|
4643
4628
|
c() {
|
|
4644
|
-
t =
|
|
4629
|
+
t = S("span"), r = j(
|
|
4645
4630
|
/*buttontext*/
|
|
4646
4631
|
e[1]
|
|
4647
4632
|
), g(t, "class", "RandomButtonText");
|
|
4648
4633
|
},
|
|
4649
4634
|
m(n, i) {
|
|
4650
|
-
|
|
4635
|
+
I(n, t, i), E(t, r);
|
|
4651
4636
|
},
|
|
4652
4637
|
p(n, i) {
|
|
4653
4638
|
i[0] & /*buttontext*/
|
|
4654
|
-
2 &&
|
|
4639
|
+
2 && X(
|
|
4655
4640
|
r,
|
|
4656
4641
|
/*buttontext*/
|
|
4657
4642
|
n[1]
|
|
4658
4643
|
);
|
|
4659
4644
|
},
|
|
4660
4645
|
d(n) {
|
|
4661
|
-
n &&
|
|
4646
|
+
n && R(t);
|
|
4662
4647
|
}
|
|
4663
4648
|
};
|
|
4664
4649
|
}
|
|
4665
|
-
function
|
|
4650
|
+
function Fo(e) {
|
|
4666
4651
|
let t, r, n, i, o, a, s, h, l, u = (
|
|
4667
4652
|
/*show*/
|
|
4668
|
-
e[5] &&
|
|
4653
|
+
e[5] && zt(e)
|
|
4669
4654
|
);
|
|
4670
4655
|
function f(d, b) {
|
|
4671
4656
|
if (
|
|
4672
4657
|
/*buttontext*/
|
|
4673
4658
|
d[1]
|
|
4674
|
-
) return
|
|
4659
|
+
) return Do;
|
|
4675
4660
|
if (!/*buttontext*/
|
|
4676
|
-
d[1]) return
|
|
4661
|
+
d[1]) return Uo;
|
|
4677
4662
|
}
|
|
4678
4663
|
let c = f(e), m = c && c(e);
|
|
4679
4664
|
return {
|
|
4680
4665
|
c() {
|
|
4681
|
-
t =
|
|
4666
|
+
t = S("div"), u && u.c(), r = k(), n = S("div"), i = S("button"), m && m.c(), o = k(), a = S("span"), g(a, "class", "RandomButtonIcon"), g(i, "class", "RandomButton"), g(n, "class", "RandomButtonWrapper"), g(t, "part", "CustomStylingContainer");
|
|
4682
4667
|
},
|
|
4683
4668
|
m(d, b) {
|
|
4684
|
-
|
|
4685
|
-
e[0], e[
|
|
4669
|
+
I(d, t, b), u && u.m(t, null), E(t, r), E(t, n), E(n, i), m && m.m(i, null), E(i, o), E(i, a), a.innerHTML = /*randombuttonicon*/
|
|
4670
|
+
e[0], e[27](t), s = !0, h || (l = Te(
|
|
4686
4671
|
i,
|
|
4687
4672
|
"click",
|
|
4688
4673
|
/*click_handler_2*/
|
|
4689
|
-
e[
|
|
4674
|
+
e[26]
|
|
4690
4675
|
), h = !0);
|
|
4691
4676
|
},
|
|
4692
4677
|
p(d, b) {
|
|
4693
4678
|
/*show*/
|
|
4694
4679
|
d[5] ? u ? (u.p(d, b), b[0] & /*show*/
|
|
4695
|
-
32 &&
|
|
4680
|
+
32 && fe(u, 1)) : (u = zt(d), u.c(), fe(u, 1), u.m(t, r)) : u && (yn(), Xe(u, 1, 1, () => {
|
|
4696
4681
|
u = null;
|
|
4697
|
-
}),
|
|
4682
|
+
}), vn()), c === (c = f(d)) && m ? m.p(d, b) : (m && m.d(1), m = c && c(d), m && (m.c(), m.m(i, o))), (!s || b[0] & /*randombuttonicon*/
|
|
4698
4683
|
1) && (a.innerHTML = /*randombuttonicon*/
|
|
4699
4684
|
d[0]);
|
|
4700
4685
|
},
|
|
4701
4686
|
i(d) {
|
|
4702
|
-
s || (
|
|
4687
|
+
s || (fe(u), s = !0);
|
|
4703
4688
|
},
|
|
4704
4689
|
o(d) {
|
|
4705
4690
|
Xe(u), s = !1;
|
|
4706
4691
|
},
|
|
4707
4692
|
d(d) {
|
|
4708
|
-
d &&
|
|
4693
|
+
d && R(t), u && u.d(), m && m.d(), e[27](null), h = !1, l();
|
|
4709
4694
|
}
|
|
4710
4695
|
};
|
|
4711
4696
|
}
|
|
4712
|
-
function
|
|
4697
|
+
function $o(e, t, r) {
|
|
4713
4698
|
let n;
|
|
4714
|
-
|
|
4715
|
-
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: m = "" } = t, { clientstylingurl: d = "" } = t, { filteredrandomgamecategories: b = "" } = t,
|
|
4716
|
-
|
|
4717
|
-
const
|
|
4718
|
-
fetch(c).then((
|
|
4719
|
-
Object.keys(
|
|
4720
|
-
|
|
4699
|
+
nn(e, Bo, (p) => r(9, n = p));
|
|
4700
|
+
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: m = "" } = t, { clientstylingurl: d = "" } = t, { filteredrandomgamecategories: b = "" } = t, B = [], T = "", H, A = !1, U = !1, C = !1, Z = window.navigator.userAgent, N, Q, ft, pe, mt = null;
|
|
4701
|
+
Po({ withLocale: "en", translations: {} });
|
|
4702
|
+
const Lr = () => {
|
|
4703
|
+
fetch(c).then((x) => x.json()).then((x) => {
|
|
4704
|
+
Object.keys(x).forEach((O) => {
|
|
4705
|
+
kt(O, x[O]);
|
|
4721
4706
|
});
|
|
4722
|
-
}).catch((
|
|
4723
|
-
console.log(
|
|
4707
|
+
}).catch((x) => {
|
|
4708
|
+
console.log(x);
|
|
4724
4709
|
});
|
|
4725
4710
|
};
|
|
4726
|
-
Object.keys(
|
|
4727
|
-
|
|
4711
|
+
Object.keys(Vt).forEach((p) => {
|
|
4712
|
+
kt(p, Vt[p]);
|
|
4728
4713
|
});
|
|
4729
|
-
const
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
},
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4714
|
+
const Mr = () => {
|
|
4715
|
+
let p = new URL(`${a}/v1/casino/games`);
|
|
4716
|
+
p.searchParams.append("platform", Ao(Z)), p.searchParams.append("datasource", s), p.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,categories"), b && p.searchParams.append("filter", `groups=${b}`), p.searchParams.append("expand", "categories,vendor"), p.searchParams.append("pagination", "offset=0,limit=1000"), fetch(p.href).then((x) => x.json()).then((x) => {
|
|
4717
|
+
B = x.items, B.length ? (r(4, H = Nr(B.slice(0, 19))), r(7, C = !0)) : (r(4, H = []), r(7, C = !1));
|
|
4718
|
+
}).catch((x) => {
|
|
4719
|
+
console.log(x), r(7, C = !1);
|
|
4720
|
+
});
|
|
4721
|
+
}, Nr = (p) => {
|
|
4722
|
+
const x = Ur(p);
|
|
4723
|
+
return x.concat(x);
|
|
4724
|
+
}, Gr = () => be(this, null, function* () {
|
|
4725
|
+
yield pn(), pe = Math.floor(Math.random() * (H.length / 2)) + H.length / 2, r(3, T = H[pe]), ft = Q.children[pe];
|
|
4726
|
+
}), Le = () => be(this, null, function* () {
|
|
4727
|
+
r(6, U = !1), r(5, A = !0), window.postMessage({ type: "RandomWidgetState", state: !0 }, window.location.href), yield Gr();
|
|
4728
|
+
const p = window.getComputedStyle(Q).getPropertyValue("gap"), x = parseInt(p, 10) || 0, le = (ft.offsetHeight + x) * pe, Jr = [
|
|
4729
|
+
{ transform: "translateX(0px)" },
|
|
4730
|
+
{ filter: "blur(5px)" },
|
|
4731
|
+
{
|
|
4732
|
+
transform: `translateY(-${le}px)`
|
|
4733
|
+
}
|
|
4734
|
+
], Zr = {
|
|
4735
|
+
duration: 2e3,
|
|
4736
|
+
easing: "cubic-bezier(0.5, 0, 0.5, 1.2)",
|
|
4737
|
+
fill: "forwards"
|
|
4738
|
+
};
|
|
4739
|
+
mt = Q.animate(Jr, Zr), mt.onfinish = () => {
|
|
4740
|
+
r(6, U = !0);
|
|
4741
|
+
};
|
|
4742
|
+
}), Ur = (p) => {
|
|
4743
|
+
const x = structuredClone(p);
|
|
4744
|
+
let O = x.length, le;
|
|
4745
|
+
for (; O != 0; )
|
|
4746
|
+
le = Math.floor(Math.random() * O), O--, [x[O], x[le]] = [x[le], x[O]];
|
|
4747
|
+
return x;
|
|
4748
|
+
}, dt = () => {
|
|
4747
4749
|
window.postMessage(
|
|
4748
4750
|
{
|
|
4749
4751
|
type: h,
|
|
4750
|
-
gameId:
|
|
4752
|
+
gameId: T.gId || T.id
|
|
4751
4753
|
},
|
|
4752
4754
|
window.location.href
|
|
4753
|
-
), r(5,
|
|
4755
|
+
), r(5, A = !1), window.postMessage({ type: "RandomWidgetState", state: !1 }, window.location.href), typeof gtag == "function" && gtag("event", "OpenGame", {
|
|
4754
4756
|
context: "RandomGameWidget",
|
|
4755
|
-
gameId: `${
|
|
4756
|
-
});
|
|
4757
|
-
}, Mr = () => {
|
|
4758
|
-
r(5, S = !1), window.postMessage({ type: "RandomWidgetState", state: S }, window.location.href);
|
|
4759
|
-
}, Gr = () => {
|
|
4760
|
-
let p = new URL(`${a}/v1/casino/games`);
|
|
4761
|
-
p.searchParams.append("platform", To(D)), p.searchParams.append("datasource", s), p.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,categories"), b && p.searchParams.append("filter", `groups=${b}`), p.searchParams.append("expand", "categories,vendor"), p.searchParams.append("pagination", "offset=0,limit=1000"), fetch(p.href).then((T) => T.json()).then((T) => {
|
|
4762
|
-
H = T.items, H.length ? (r(4, A = H.slice(0, 19)), r(8, G = !0)) : (r(4, A = []), r(8, G = !1));
|
|
4763
|
-
}).catch((T) => {
|
|
4764
|
-
console.log(T), r(8, G = !1);
|
|
4757
|
+
gameId: `${T.gId || T.id}`
|
|
4765
4758
|
});
|
|
4766
|
-
}, Ur = () => {
|
|
4767
|
-
Bo(l);
|
|
4768
4759
|
}, Dr = () => {
|
|
4769
|
-
|
|
4770
|
-
p.innerHTML = m, J.appendChild(p);
|
|
4760
|
+
r(5, A = !1), window.postMessage({ type: "RandomWidgetState", state: A }, window.location.href);
|
|
4771
4761
|
}, Fr = () => {
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4762
|
+
Ro(l);
|
|
4763
|
+
}, $r = () => {
|
|
4764
|
+
let p = document.createElement("style");
|
|
4765
|
+
p.innerHTML = m, N.appendChild(p);
|
|
4766
|
+
}, jr = () => {
|
|
4767
|
+
let p = new URL(d), x = document.createElement("style");
|
|
4768
|
+
fetch(p.href).then((O) => O.text()).then((O) => {
|
|
4769
|
+
x.innerHTML = O, setTimeout(
|
|
4775
4770
|
() => {
|
|
4776
|
-
|
|
4771
|
+
N.appendChild(x);
|
|
4777
4772
|
},
|
|
4778
4773
|
1
|
|
4779
4774
|
);
|
|
4780
4775
|
});
|
|
4781
|
-
}
|
|
4782
|
-
function
|
|
4783
|
-
|
|
4784
|
-
|
|
4776
|
+
};
|
|
4777
|
+
function kr(p) {
|
|
4778
|
+
He[p ? "unshift" : "push"](() => {
|
|
4779
|
+
Q = p, r(8, Q);
|
|
4780
|
+
});
|
|
4781
|
+
}
|
|
4782
|
+
const Vr = () => Le(), Wr = () => dt(), Xr = () => Le();
|
|
4783
|
+
function zr(p) {
|
|
4784
|
+
He[p ? "unshift" : "push"](() => {
|
|
4785
|
+
N = p, r(2, N);
|
|
4785
4786
|
});
|
|
4786
4787
|
}
|
|
4787
4788
|
return e.$$set = (p) => {
|
|
4788
4789
|
"endpoint" in p && r(13, a = p.endpoint), "datasource" in p && r(14, s = p.datasource), "gameevent" in p && r(15, h = p.gameevent), "lang" in p && r(16, l = p.lang), "randombuttonicon" in p && r(0, u = p.randombuttonicon), "buttontext" in p && r(1, f = p.buttontext), "translationurl" in p && r(17, c = p.translationurl), "clientstyling" in p && r(18, m = p.clientstyling), "clientstylingurl" in p && r(19, d = p.clientstylingurl), "filteredrandomgamecategories" in p && r(20, b = p.filteredrandomgamecategories), "$$scope" in p && r(21, o = p.$$scope);
|
|
4789
4790
|
}, e.$$.update = () => {
|
|
4790
4791
|
e.$$.dirty[0] & /*lang*/
|
|
4791
|
-
65536 && l &&
|
|
4792
|
-
131072 && c &&
|
|
4793
|
-
24576 && a && s &&
|
|
4794
|
-
262148 && m &&
|
|
4795
|
-
524292 && d &&
|
|
4792
|
+
65536 && l && Fr(), e.$$.dirty[0] & /*translationurl*/
|
|
4793
|
+
131072 && c && Lr(), e.$$.dirty[0] & /*endpoint, datasource*/
|
|
4794
|
+
24576 && a && s && Mr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4795
|
+
262148 && m && N && $r(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4796
|
+
524292 && d && N && jr();
|
|
4796
4797
|
}, [
|
|
4797
4798
|
u,
|
|
4798
4799
|
f,
|
|
4799
|
-
J,
|
|
4800
|
-
B,
|
|
4801
|
-
A,
|
|
4802
|
-
S,
|
|
4803
|
-
I,
|
|
4804
4800
|
N,
|
|
4805
|
-
|
|
4801
|
+
T,
|
|
4802
|
+
H,
|
|
4803
|
+
A,
|
|
4804
|
+
U,
|
|
4805
|
+
C,
|
|
4806
|
+
Q,
|
|
4806
4807
|
n,
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4808
|
+
Le,
|
|
4809
|
+
dt,
|
|
4810
|
+
Dr,
|
|
4810
4811
|
a,
|
|
4811
4812
|
s,
|
|
4812
4813
|
h,
|
|
@@ -4817,19 +4818,20 @@ function Mo(e, t, r) {
|
|
|
4817
4818
|
b,
|
|
4818
4819
|
o,
|
|
4819
4820
|
i,
|
|
4820
|
-
$r,
|
|
4821
|
-
jr,
|
|
4822
4821
|
kr,
|
|
4823
|
-
Vr
|
|
4822
|
+
Vr,
|
|
4823
|
+
Wr,
|
|
4824
|
+
Xr,
|
|
4825
|
+
zr
|
|
4824
4826
|
];
|
|
4825
4827
|
}
|
|
4826
|
-
class
|
|
4828
|
+
class jo extends Tn {
|
|
4827
4829
|
constructor(t) {
|
|
4828
|
-
super(),
|
|
4830
|
+
super(), wn(
|
|
4829
4831
|
this,
|
|
4830
4832
|
t,
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
+
$o,
|
|
4834
|
+
Fo,
|
|
4833
4835
|
Qt,
|
|
4834
4836
|
{
|
|
4835
4837
|
endpoint: 13,
|
|
@@ -4843,7 +4845,7 @@ class Go extends En {
|
|
|
4843
4845
|
clientstylingurl: 19,
|
|
4844
4846
|
filteredrandomgamecategories: 20
|
|
4845
4847
|
},
|
|
4846
|
-
|
|
4848
|
+
Oo,
|
|
4847
4849
|
[-1, -1]
|
|
4848
4850
|
);
|
|
4849
4851
|
}
|
|
@@ -4851,64 +4853,64 @@ class Go extends En {
|
|
|
4851
4853
|
return this.$$.ctx[13];
|
|
4852
4854
|
}
|
|
4853
4855
|
set endpoint(t) {
|
|
4854
|
-
this.$$set({ endpoint: t }),
|
|
4856
|
+
this.$$set({ endpoint: t }), M();
|
|
4855
4857
|
}
|
|
4856
4858
|
get datasource() {
|
|
4857
4859
|
return this.$$.ctx[14];
|
|
4858
4860
|
}
|
|
4859
4861
|
set datasource(t) {
|
|
4860
|
-
this.$$set({ datasource: t }),
|
|
4862
|
+
this.$$set({ datasource: t }), M();
|
|
4861
4863
|
}
|
|
4862
4864
|
get gameevent() {
|
|
4863
4865
|
return this.$$.ctx[15];
|
|
4864
4866
|
}
|
|
4865
4867
|
set gameevent(t) {
|
|
4866
|
-
this.$$set({ gameevent: t }),
|
|
4868
|
+
this.$$set({ gameevent: t }), M();
|
|
4867
4869
|
}
|
|
4868
4870
|
get lang() {
|
|
4869
4871
|
return this.$$.ctx[16];
|
|
4870
4872
|
}
|
|
4871
4873
|
set lang(t) {
|
|
4872
|
-
this.$$set({ lang: t }),
|
|
4874
|
+
this.$$set({ lang: t }), M();
|
|
4873
4875
|
}
|
|
4874
4876
|
get randombuttonicon() {
|
|
4875
4877
|
return this.$$.ctx[0];
|
|
4876
4878
|
}
|
|
4877
4879
|
set randombuttonicon(t) {
|
|
4878
|
-
this.$$set({ randombuttonicon: t }),
|
|
4880
|
+
this.$$set({ randombuttonicon: t }), M();
|
|
4879
4881
|
}
|
|
4880
4882
|
get buttontext() {
|
|
4881
4883
|
return this.$$.ctx[1];
|
|
4882
4884
|
}
|
|
4883
4885
|
set buttontext(t) {
|
|
4884
|
-
this.$$set({ buttontext: t }),
|
|
4886
|
+
this.$$set({ buttontext: t }), M();
|
|
4885
4887
|
}
|
|
4886
4888
|
get translationurl() {
|
|
4887
4889
|
return this.$$.ctx[17];
|
|
4888
4890
|
}
|
|
4889
4891
|
set translationurl(t) {
|
|
4890
|
-
this.$$set({ translationurl: t }),
|
|
4892
|
+
this.$$set({ translationurl: t }), M();
|
|
4891
4893
|
}
|
|
4892
4894
|
get clientstyling() {
|
|
4893
4895
|
return this.$$.ctx[18];
|
|
4894
4896
|
}
|
|
4895
4897
|
set clientstyling(t) {
|
|
4896
|
-
this.$$set({ clientstyling: t }),
|
|
4898
|
+
this.$$set({ clientstyling: t }), M();
|
|
4897
4899
|
}
|
|
4898
4900
|
get clientstylingurl() {
|
|
4899
4901
|
return this.$$.ctx[19];
|
|
4900
4902
|
}
|
|
4901
4903
|
set clientstylingurl(t) {
|
|
4902
|
-
this.$$set({ clientstylingurl: t }),
|
|
4904
|
+
this.$$set({ clientstylingurl: t }), M();
|
|
4903
4905
|
}
|
|
4904
4906
|
get filteredrandomgamecategories() {
|
|
4905
4907
|
return this.$$.ctx[20];
|
|
4906
4908
|
}
|
|
4907
4909
|
set filteredrandomgamecategories(t) {
|
|
4908
|
-
this.$$set({ filteredrandomgamecategories: t }),
|
|
4910
|
+
this.$$set({ filteredrandomgamecategories: t }), M();
|
|
4909
4911
|
}
|
|
4910
4912
|
}
|
|
4911
|
-
|
|
4913
|
+
Sn(jo, { endpoint: {}, datasource: {}, gameevent: {}, lang: {}, randombuttonicon: {}, buttontext: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, filteredrandomgamecategories: {} }, ["close"], [], !0);
|
|
4912
4914
|
export {
|
|
4913
|
-
|
|
4915
|
+
jo as default
|
|
4914
4916
|
};
|