@everymatrix/player-account-gaming-limits-page-2-gmcore 1.56.0 → 1.56.2
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/{PlayerAccountGamingLimitsPage2Gmcore-DW4m5gyK.js → PlayerAccountGamingLimitsPage2Gmcore-DEhZ_HVv.js} +857 -802
- package/components/{PlayerAccountGamingLimitsPage2Gmcore-DWv9wJJ7.js → PlayerAccountGamingLimitsPage2Gmcore-DcDnI853.js} +685 -630
- package/components/PlayerAccountGamingLimitsPage2Gmcore-Dji84TH-.cjs +19 -0
- package/es2015/player-account-gaming-limits-page-2-gmcore.cjs +1 -1
- package/es2015/player-account-gaming-limits-page-2-gmcore.js +1 -1
- package/esnext/player-account-gaming-limits-page-2-gmcore.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountGamingLimitsPage2Gmcore-HvDfFDm1.cjs +0 -6
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var We = (e, t, i) => t in e ?
|
|
1
|
+
var cr = Object.defineProperty, hr = Object.defineProperties;
|
|
2
|
+
var mr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Tt = Object.getOwnPropertySymbols;
|
|
4
|
+
var fr = Object.prototype.hasOwnProperty, pr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var We = (e, t, i) => t in e ? cr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, wt = (e, t) => {
|
|
6
6
|
for (var i in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var i of
|
|
10
|
-
|
|
7
|
+
fr.call(t, i) && We(e, i, t[i]);
|
|
8
|
+
if (Tt)
|
|
9
|
+
for (var i of Tt(t))
|
|
10
|
+
pr.call(t, i) && We(e, i, t[i]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var V = (e, t, i) => We(e, typeof t != "symbol" ? t + "" : t, i);
|
|
14
|
-
var
|
|
12
|
+
}, St = (e, t) => hr(e, mr(t));
|
|
13
|
+
var V = (e, t, i) => (We(e, typeof t != "symbol" ? t + "" : t, i), i);
|
|
14
|
+
var Pt = (e, t, i) => new Promise((r, n) => {
|
|
15
15
|
var o = (c) => {
|
|
16
16
|
try {
|
|
17
17
|
a(i.next(c));
|
|
18
|
-
} catch (
|
|
19
|
-
n(
|
|
18
|
+
} catch (l) {
|
|
19
|
+
n(l);
|
|
20
20
|
}
|
|
21
21
|
}, s = (c) => {
|
|
22
22
|
try {
|
|
23
23
|
a(i.throw(c));
|
|
24
|
-
} catch (
|
|
25
|
-
n(
|
|
24
|
+
} catch (l) {
|
|
25
|
+
n(l);
|
|
26
26
|
}
|
|
27
27
|
}, a = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(o, s);
|
|
28
28
|
a((i = i.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function j() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function hi(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function At() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function ie(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(hi);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function dt(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function mi(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function dr(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function fi(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const r of t)
|
|
53
53
|
r(void 0);
|
|
@@ -56,21 +56,22 @@ function ci(e, ...t) {
|
|
|
56
56
|
const i = e.subscribe(...t);
|
|
57
57
|
return i.unsubscribe ? () => i.unsubscribe() : i;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function br(e, t, i) {
|
|
60
|
+
e.$$.on_destroy.push(fi(t, i));
|
|
61
61
|
}
|
|
62
62
|
function d(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const r =
|
|
65
|
+
function gr(e, t, i) {
|
|
66
|
+
const r = yr(e);
|
|
67
67
|
if (!r.getElementById(t)) {
|
|
68
68
|
const n = y("style");
|
|
69
|
-
n.id = t, n.textContent = i,
|
|
69
|
+
n.id = t, n.textContent = i, vr(r, n);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
if (!e)
|
|
72
|
+
function yr(e) {
|
|
73
|
+
if (!e)
|
|
74
|
+
return document;
|
|
74
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
75
76
|
return t && /** @type {ShadowRoot} */
|
|
76
77
|
t.host ? (
|
|
@@ -78,14 +79,14 @@ function pr(e) {
|
|
|
78
79
|
t
|
|
79
80
|
) : e.ownerDocument;
|
|
80
81
|
}
|
|
81
|
-
function
|
|
82
|
+
function vr(e, t) {
|
|
82
83
|
return d(
|
|
83
84
|
/** @type {Document} */
|
|
84
85
|
e.head || e,
|
|
85
86
|
t
|
|
86
87
|
), t.sheet;
|
|
87
88
|
}
|
|
88
|
-
function
|
|
89
|
+
function N(e, t, i) {
|
|
89
90
|
e.insertBefore(t, i || null);
|
|
90
91
|
}
|
|
91
92
|
function A(e) {
|
|
@@ -101,14 +102,14 @@ function y(e) {
|
|
|
101
102
|
function be(e) {
|
|
102
103
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
103
104
|
}
|
|
104
|
-
function
|
|
105
|
+
function F(e) {
|
|
105
106
|
return document.createTextNode(e);
|
|
106
107
|
}
|
|
107
108
|
function U() {
|
|
108
|
-
return
|
|
109
|
+
return F(" ");
|
|
109
110
|
}
|
|
110
|
-
function
|
|
111
|
-
return
|
|
111
|
+
function _r() {
|
|
112
|
+
return F("");
|
|
112
113
|
}
|
|
113
114
|
function Y(e, t, i, r) {
|
|
114
115
|
return e.addEventListener(t, i, r), () => e.removeEventListener(t, i, r);
|
|
@@ -116,10 +117,10 @@ function Y(e, t, i, r) {
|
|
|
116
117
|
function b(e, t, i) {
|
|
117
118
|
i == null ? e.removeAttribute(t) : e.getAttribute(t) !== i && e.setAttribute(t, i);
|
|
118
119
|
}
|
|
119
|
-
function
|
|
120
|
+
function pi(e) {
|
|
120
121
|
return e === "" ? null : +e;
|
|
121
122
|
}
|
|
122
|
-
function
|
|
123
|
+
function Er(e) {
|
|
123
124
|
return Array.from(e.childNodes);
|
|
124
125
|
}
|
|
125
126
|
function W(e, t) {
|
|
@@ -142,11 +143,11 @@ function He(e, t, i) {
|
|
|
142
143
|
}
|
|
143
144
|
(!i || t !== void 0) && (e.selectedIndex = -1);
|
|
144
145
|
}
|
|
145
|
-
function
|
|
146
|
+
function Bt(e) {
|
|
146
147
|
const t = e.querySelector(":checked");
|
|
147
148
|
return t && t.__value;
|
|
148
149
|
}
|
|
149
|
-
function
|
|
150
|
+
function Lr(e) {
|
|
150
151
|
const t = {};
|
|
151
152
|
return e.childNodes.forEach(
|
|
152
153
|
/** @param {Element} node */
|
|
@@ -159,19 +160,20 @@ let _e;
|
|
|
159
160
|
function ye(e) {
|
|
160
161
|
_e = e;
|
|
161
162
|
}
|
|
162
|
-
function
|
|
163
|
-
if (!_e)
|
|
163
|
+
function xr() {
|
|
164
|
+
if (!_e)
|
|
165
|
+
throw new Error("Function called outside component initialization");
|
|
164
166
|
return _e;
|
|
165
167
|
}
|
|
166
|
-
function
|
|
167
|
-
|
|
168
|
+
function Tr(e) {
|
|
169
|
+
xr().$$.on_mount.push(e);
|
|
168
170
|
}
|
|
169
171
|
const se = [], Oe = [];
|
|
170
172
|
let ae = [];
|
|
171
|
-
const
|
|
172
|
-
let
|
|
173
|
-
function
|
|
174
|
-
|
|
173
|
+
const Nt = [], wr = /* @__PURE__ */ Promise.resolve();
|
|
174
|
+
let tt = !1;
|
|
175
|
+
function Sr() {
|
|
176
|
+
tt || (tt = !0, wr.then(X));
|
|
175
177
|
}
|
|
176
178
|
function Ee(e) {
|
|
177
179
|
ae.push(e);
|
|
@@ -186,65 +188,66 @@ function X() {
|
|
|
186
188
|
try {
|
|
187
189
|
for (; ne < se.length; ) {
|
|
188
190
|
const t = se[ne];
|
|
189
|
-
ne++, ye(t),
|
|
191
|
+
ne++, ye(t), Pr(t.$$);
|
|
190
192
|
}
|
|
191
193
|
} catch (t) {
|
|
192
194
|
throw se.length = 0, ne = 0, t;
|
|
193
195
|
}
|
|
194
|
-
for (ye(null), se.length = 0, ne = 0; Oe.length; )
|
|
196
|
+
for (ye(null), se.length = 0, ne = 0; Oe.length; )
|
|
197
|
+
Oe.pop()();
|
|
195
198
|
for (let t = 0; t < ae.length; t += 1) {
|
|
196
199
|
const i = ae[t];
|
|
197
200
|
Xe.has(i) || (Xe.add(i), i());
|
|
198
201
|
}
|
|
199
202
|
ae.length = 0;
|
|
200
203
|
} while (se.length);
|
|
201
|
-
for (;
|
|
202
|
-
|
|
203
|
-
|
|
204
|
+
for (; Nt.length; )
|
|
205
|
+
Nt.pop()();
|
|
206
|
+
tt = !1, Xe.clear(), ye(e);
|
|
204
207
|
}
|
|
205
|
-
function
|
|
208
|
+
function Pr(e) {
|
|
206
209
|
if (e.fragment !== null) {
|
|
207
210
|
e.update(), ie(e.before_update);
|
|
208
211
|
const t = e.dirty;
|
|
209
212
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ee);
|
|
210
213
|
}
|
|
211
214
|
}
|
|
212
|
-
function
|
|
215
|
+
function Ar(e) {
|
|
213
216
|
const t = [], i = [];
|
|
214
217
|
ae.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : i.push(r)), i.forEach((r) => r()), ae = t;
|
|
215
218
|
}
|
|
216
|
-
const
|
|
217
|
-
function
|
|
218
|
-
e && e.i && (
|
|
219
|
+
const Br = /* @__PURE__ */ new Set();
|
|
220
|
+
function Nr(e, t) {
|
|
221
|
+
e && e.i && (Br.delete(e), e.i(t));
|
|
219
222
|
}
|
|
220
223
|
function te(e) {
|
|
221
224
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
222
225
|
}
|
|
223
|
-
function
|
|
226
|
+
function Ir(e, t, i) {
|
|
224
227
|
const { fragment: r, after_update: n } = e.$$;
|
|
225
228
|
r && r.m(t, i), Ee(() => {
|
|
226
|
-
const o = e.$$.on_mount.map(
|
|
229
|
+
const o = e.$$.on_mount.map(hi).filter(dt);
|
|
227
230
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ie(o), e.$$.on_mount = [];
|
|
228
231
|
}), n.forEach(Ee);
|
|
229
232
|
}
|
|
230
|
-
function
|
|
233
|
+
function Hr(e, t) {
|
|
231
234
|
const i = e.$$;
|
|
232
|
-
i.fragment !== null && (
|
|
235
|
+
i.fragment !== null && (Ar(i.after_update), ie(i.on_destroy), i.fragment && i.fragment.d(t), i.on_destroy = i.fragment = null, i.ctx = []);
|
|
233
236
|
}
|
|
234
|
-
function
|
|
235
|
-
e.$$.dirty[0] === -1 && (se.push(e),
|
|
237
|
+
function Or(e, t) {
|
|
238
|
+
e.$$.dirty[0] === -1 && (se.push(e), Sr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
236
239
|
}
|
|
237
|
-
function
|
|
240
|
+
function Mr(e, t, i, r, n, o, s = null, a = [-1]) {
|
|
238
241
|
const c = _e;
|
|
239
242
|
ye(e);
|
|
240
|
-
const
|
|
243
|
+
const l = e.$$ = {
|
|
241
244
|
fragment: null,
|
|
242
245
|
ctx: [],
|
|
243
246
|
// state
|
|
244
247
|
props: o,
|
|
245
248
|
update: j,
|
|
246
249
|
not_equal: n,
|
|
247
|
-
bound:
|
|
250
|
+
bound: At(),
|
|
248
251
|
// lifecycle
|
|
249
252
|
on_mount: [],
|
|
250
253
|
on_destroy: [],
|
|
@@ -253,28 +256,28 @@ function Br(e, t, i, r, n, o, s = null, a = [-1]) {
|
|
|
253
256
|
after_update: [],
|
|
254
257
|
context: new Map(t.context || (c ? c.$$.context : [])),
|
|
255
258
|
// everything else
|
|
256
|
-
callbacks:
|
|
259
|
+
callbacks: At(),
|
|
257
260
|
dirty: a,
|
|
258
261
|
skip_bound: !1,
|
|
259
262
|
root: t.target || c.$$.root
|
|
260
263
|
};
|
|
261
|
-
s && s(
|
|
262
|
-
let
|
|
263
|
-
if (
|
|
264
|
+
s && s(l.root);
|
|
265
|
+
let u = !1;
|
|
266
|
+
if (l.ctx = i ? i(e, t.props || {}, (h, f, ...m) => {
|
|
264
267
|
const p = m.length ? m[0] : f;
|
|
265
|
-
return
|
|
266
|
-
}) : [],
|
|
268
|
+
return l.ctx && n(l.ctx[h], l.ctx[h] = p) && (!l.skip_bound && l.bound[h] && l.bound[h](p), u && Or(e, h)), f;
|
|
269
|
+
}) : [], l.update(), u = !0, ie(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
|
|
267
270
|
if (t.hydrate) {
|
|
268
|
-
const h =
|
|
269
|
-
|
|
271
|
+
const h = Er(t.target);
|
|
272
|
+
l.fragment && l.fragment.l(h), h.forEach(A);
|
|
270
273
|
} else
|
|
271
|
-
|
|
272
|
-
t.intro &&
|
|
274
|
+
l.fragment && l.fragment.c();
|
|
275
|
+
t.intro && Nr(e.$$.fragment), Ir(e, t.target, t.anchor), X();
|
|
273
276
|
}
|
|
274
277
|
ye(c);
|
|
275
278
|
}
|
|
276
|
-
let
|
|
277
|
-
typeof HTMLElement == "function" && (
|
|
279
|
+
let di;
|
|
280
|
+
typeof HTMLElement == "function" && (di = class extends HTMLElement {
|
|
278
281
|
constructor(t, i, r) {
|
|
279
282
|
super();
|
|
280
283
|
/** The Svelte component constructor */
|
|
@@ -311,7 +314,7 @@ typeof HTMLElement == "function" && (mi = class extends HTMLElement {
|
|
|
311
314
|
}
|
|
312
315
|
}
|
|
313
316
|
connectedCallback() {
|
|
314
|
-
return
|
|
317
|
+
return Pt(this, null, function* () {
|
|
315
318
|
if (this.$$cn = !0, !this.$$c) {
|
|
316
319
|
let t = function(o) {
|
|
317
320
|
return () => {
|
|
@@ -324,18 +327,18 @@ typeof HTMLElement == "function" && (mi = class extends HTMLElement {
|
|
|
324
327
|
* @param {HTMLElement} target
|
|
325
328
|
* @param {HTMLElement} [anchor]
|
|
326
329
|
*/
|
|
327
|
-
m: function(
|
|
328
|
-
|
|
330
|
+
m: function(l, u) {
|
|
331
|
+
N(l, s, u);
|
|
329
332
|
},
|
|
330
|
-
d: function(
|
|
331
|
-
|
|
333
|
+
d: function(l) {
|
|
334
|
+
l && A(s);
|
|
332
335
|
}
|
|
333
336
|
};
|
|
334
337
|
};
|
|
335
338
|
};
|
|
336
339
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
337
340
|
return;
|
|
338
|
-
const i = {}, r =
|
|
341
|
+
const i = {}, r = Lr(this);
|
|
339
342
|
for (const o of this.$$s)
|
|
340
343
|
o in r && (i[o] = [t(o)]);
|
|
341
344
|
for (const o of this.attributes) {
|
|
@@ -346,7 +349,7 @@ typeof HTMLElement == "function" && (mi = class extends HTMLElement {
|
|
|
346
349
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
347
350
|
this.$$c = new this.$$ctor({
|
|
348
351
|
target: this.shadowRoot || this,
|
|
349
|
-
props:
|
|
352
|
+
props: St(wt({}, this.$$d), {
|
|
350
353
|
$$slots: i,
|
|
351
354
|
$$scope: {
|
|
352
355
|
ctx: []
|
|
@@ -424,8 +427,8 @@ function Ae(e, t, i, r) {
|
|
|
424
427
|
return t;
|
|
425
428
|
}
|
|
426
429
|
}
|
|
427
|
-
function
|
|
428
|
-
let s = class extends
|
|
430
|
+
function Cr(e, t, i, r, n, o) {
|
|
431
|
+
let s = class extends di {
|
|
429
432
|
constructor() {
|
|
430
433
|
super(e, i, n), this.$$p_d = t;
|
|
431
434
|
}
|
|
@@ -441,8 +444,8 @@ function Ir(e, t, i, r, n, o) {
|
|
|
441
444
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
442
445
|
},
|
|
443
446
|
set(c) {
|
|
444
|
-
var
|
|
445
|
-
c = Ae(a, c, t), this.$$d[a] = c, (
|
|
447
|
+
var l;
|
|
448
|
+
c = Ae(a, c, t), this.$$d[a] = c, (l = this.$$c) == null || l.$set({ [a]: c });
|
|
446
449
|
}
|
|
447
450
|
});
|
|
448
451
|
}), r.forEach((a) => {
|
|
@@ -455,7 +458,7 @@ function Ir(e, t, i, r, n, o) {
|
|
|
455
458
|
}), e.element = /** @type {any} */
|
|
456
459
|
s, s;
|
|
457
460
|
}
|
|
458
|
-
class
|
|
461
|
+
class kr {
|
|
459
462
|
constructor() {
|
|
460
463
|
/**
|
|
461
464
|
* ### PRIVATE API
|
|
@@ -476,7 +479,7 @@ class Hr {
|
|
|
476
479
|
}
|
|
477
480
|
/** @returns {void} */
|
|
478
481
|
$destroy() {
|
|
479
|
-
|
|
482
|
+
Hr(this, 1), this.$destroy = j;
|
|
480
483
|
}
|
|
481
484
|
/**
|
|
482
485
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -485,7 +488,7 @@ class Hr {
|
|
|
485
488
|
* @returns {() => void}
|
|
486
489
|
*/
|
|
487
490
|
$on(t, i) {
|
|
488
|
-
if (!
|
|
491
|
+
if (!dt(i))
|
|
489
492
|
return j;
|
|
490
493
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
491
494
|
return r.push(i), () => {
|
|
@@ -498,11 +501,11 @@ class Hr {
|
|
|
498
501
|
* @returns {void}
|
|
499
502
|
*/
|
|
500
503
|
$set(t) {
|
|
501
|
-
this.$$set && !
|
|
504
|
+
this.$$set && !dr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
502
505
|
}
|
|
503
506
|
}
|
|
504
|
-
const
|
|
505
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
507
|
+
const Dr = "4";
|
|
508
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Dr);
|
|
506
509
|
const Z = {
|
|
507
510
|
deposit: {
|
|
508
511
|
title: "Deposit Limit",
|
|
@@ -529,7 +532,7 @@ const Z = {
|
|
|
529
532
|
periods: ["Monthly"]
|
|
530
533
|
}
|
|
531
534
|
}, oe = [];
|
|
532
|
-
function
|
|
535
|
+
function Rr(e, t) {
|
|
533
536
|
return {
|
|
534
537
|
subscribe: De(e, t).subscribe
|
|
535
538
|
};
|
|
@@ -538,13 +541,13 @@ function De(e, t = j) {
|
|
|
538
541
|
let i;
|
|
539
542
|
const r = /* @__PURE__ */ new Set();
|
|
540
543
|
function n(a) {
|
|
541
|
-
if (
|
|
544
|
+
if (mi(e, a) && (e = a, i)) {
|
|
542
545
|
const c = !oe.length;
|
|
543
|
-
for (const
|
|
544
|
-
|
|
546
|
+
for (const l of r)
|
|
547
|
+
l[1](), oe.push(l, e);
|
|
545
548
|
if (c) {
|
|
546
|
-
for (let
|
|
547
|
-
oe[
|
|
549
|
+
for (let l = 0; l < oe.length; l += 2)
|
|
550
|
+
oe[l][0](oe[l + 1]);
|
|
548
551
|
oe.length = 0;
|
|
549
552
|
}
|
|
550
553
|
}
|
|
@@ -553,9 +556,9 @@ function De(e, t = j) {
|
|
|
553
556
|
n(a(e));
|
|
554
557
|
}
|
|
555
558
|
function s(a, c = j) {
|
|
556
|
-
const
|
|
557
|
-
return r.add(
|
|
558
|
-
r.delete(
|
|
559
|
+
const l = [a, c];
|
|
560
|
+
return r.add(l), r.size === 1 && (i = t(n, o) || j), a(e), () => {
|
|
561
|
+
r.delete(l), r.size === 0 && i && (i(), i = null);
|
|
559
562
|
};
|
|
560
563
|
}
|
|
561
564
|
return { set: n, update: o, subscribe: s };
|
|
@@ -565,24 +568,24 @@ function fe(e, t, i) {
|
|
|
565
568
|
if (!n.every(Boolean))
|
|
566
569
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
567
570
|
const o = t.length < 2;
|
|
568
|
-
return
|
|
571
|
+
return Rr(i, (s, a) => {
|
|
569
572
|
let c = !1;
|
|
570
|
-
const
|
|
571
|
-
let
|
|
573
|
+
const l = [];
|
|
574
|
+
let u = 0, h = j;
|
|
572
575
|
const f = () => {
|
|
573
|
-
if (
|
|
576
|
+
if (u)
|
|
574
577
|
return;
|
|
575
578
|
h();
|
|
576
|
-
const p = t(r ?
|
|
577
|
-
o ? s(p) : h =
|
|
579
|
+
const p = t(r ? l[0] : l, s, a);
|
|
580
|
+
o ? s(p) : h = dt(p) ? p : j;
|
|
578
581
|
}, m = n.map(
|
|
579
|
-
(p, _) =>
|
|
582
|
+
(p, _) => fi(
|
|
580
583
|
p,
|
|
581
584
|
(R) => {
|
|
582
|
-
|
|
585
|
+
l[_] = R, u &= ~(1 << _), c && f();
|
|
583
586
|
},
|
|
584
587
|
() => {
|
|
585
|
-
|
|
588
|
+
u |= 1 << _;
|
|
586
589
|
}
|
|
587
590
|
)
|
|
588
591
|
);
|
|
@@ -591,91 +594,106 @@ function fe(e, t, i) {
|
|
|
591
594
|
};
|
|
592
595
|
});
|
|
593
596
|
}
|
|
594
|
-
function
|
|
597
|
+
function Ur(e) {
|
|
595
598
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
596
599
|
}
|
|
597
|
-
var
|
|
598
|
-
return
|
|
600
|
+
var jr = function(t) {
|
|
601
|
+
return Fr(t) && !$r(t);
|
|
599
602
|
};
|
|
600
|
-
function
|
|
603
|
+
function Fr(e) {
|
|
601
604
|
return !!e && typeof e == "object";
|
|
602
605
|
}
|
|
603
|
-
function
|
|
606
|
+
function $r(e) {
|
|
604
607
|
var t = Object.prototype.toString.call(e);
|
|
605
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
608
|
+
return t === "[object RegExp]" || t === "[object Date]" || Wr(e);
|
|
606
609
|
}
|
|
607
|
-
var
|
|
608
|
-
function
|
|
609
|
-
return e.$$typeof ===
|
|
610
|
+
var Gr = typeof Symbol == "function" && Symbol.for, zr = Gr ? Symbol.for("react.element") : 60103;
|
|
611
|
+
function Wr(e) {
|
|
612
|
+
return e.$$typeof === zr;
|
|
610
613
|
}
|
|
611
|
-
function
|
|
614
|
+
function Vr(e) {
|
|
612
615
|
return Array.isArray(e) ? [] : {};
|
|
613
616
|
}
|
|
614
617
|
function Le(e, t) {
|
|
615
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
618
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ue(Vr(e), e, t) : e;
|
|
616
619
|
}
|
|
617
|
-
function
|
|
620
|
+
function Xr(e, t, i) {
|
|
618
621
|
return e.concat(t).map(function(r) {
|
|
619
622
|
return Le(r, i);
|
|
620
623
|
});
|
|
621
624
|
}
|
|
622
|
-
function
|
|
625
|
+
function Zr(e, t) {
|
|
623
626
|
if (!t.customMerge)
|
|
624
|
-
return
|
|
627
|
+
return ue;
|
|
625
628
|
var i = t.customMerge(e);
|
|
626
|
-
return typeof i == "function" ? i :
|
|
629
|
+
return typeof i == "function" ? i : ue;
|
|
627
630
|
}
|
|
628
|
-
function
|
|
631
|
+
function Yr(e) {
|
|
629
632
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
630
633
|
return Object.propertyIsEnumerable.call(e, t);
|
|
631
634
|
}) : [];
|
|
632
635
|
}
|
|
633
|
-
function
|
|
634
|
-
return Object.keys(e).concat(
|
|
636
|
+
function It(e) {
|
|
637
|
+
return Object.keys(e).concat(Yr(e));
|
|
635
638
|
}
|
|
636
|
-
function
|
|
639
|
+
function bi(e, t) {
|
|
637
640
|
try {
|
|
638
641
|
return t in e;
|
|
639
642
|
} catch (i) {
|
|
640
643
|
return !1;
|
|
641
644
|
}
|
|
642
645
|
}
|
|
643
|
-
function
|
|
644
|
-
return
|
|
646
|
+
function qr(e, t) {
|
|
647
|
+
return bi(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
645
648
|
}
|
|
646
|
-
function
|
|
649
|
+
function Jr(e, t, i) {
|
|
647
650
|
var r = {};
|
|
648
|
-
return i.isMergeableObject(e) &&
|
|
651
|
+
return i.isMergeableObject(e) && It(e).forEach(function(n) {
|
|
649
652
|
r[n] = Le(e[n], i);
|
|
650
|
-
}),
|
|
651
|
-
|
|
653
|
+
}), It(t).forEach(function(n) {
|
|
654
|
+
qr(e, n) || (bi(e, n) && i.isMergeableObject(t[n]) ? r[n] = Zr(n, i)(e[n], t[n], i) : r[n] = Le(t[n], i));
|
|
652
655
|
}), r;
|
|
653
656
|
}
|
|
654
|
-
function
|
|
655
|
-
i = i || {}, i.arrayMerge = i.arrayMerge ||
|
|
657
|
+
function ue(e, t, i) {
|
|
658
|
+
i = i || {}, i.arrayMerge = i.arrayMerge || Xr, i.isMergeableObject = i.isMergeableObject || jr, i.cloneUnlessOtherwiseSpecified = Le;
|
|
656
659
|
var r = Array.isArray(t), n = Array.isArray(e), o = r === n;
|
|
657
|
-
return o ? r ? i.arrayMerge(e, t, i) :
|
|
660
|
+
return o ? r ? i.arrayMerge(e, t, i) : Jr(e, t, i) : Le(t, i);
|
|
658
661
|
}
|
|
659
|
-
|
|
662
|
+
ue.all = function(t, i) {
|
|
660
663
|
if (!Array.isArray(t))
|
|
661
664
|
throw new Error("first argument should be an array");
|
|
662
665
|
return t.reduce(function(r, n) {
|
|
663
|
-
return
|
|
666
|
+
return ue(r, n, i);
|
|
664
667
|
}, {});
|
|
665
668
|
};
|
|
666
|
-
var
|
|
667
|
-
const
|
|
668
|
-
|
|
669
|
-
|
|
669
|
+
var Qr = ue, Kr = Qr;
|
|
670
|
+
const en = /* @__PURE__ */ Ur(Kr);
|
|
671
|
+
/*! *****************************************************************************
|
|
672
|
+
Copyright (c) Microsoft Corporation.
|
|
673
|
+
|
|
674
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
675
|
+
purpose with or without fee is hereby granted.
|
|
676
|
+
|
|
677
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
678
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
679
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
680
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
681
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
682
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
683
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
684
|
+
***************************************************************************** */
|
|
685
|
+
var it = function(e, t) {
|
|
686
|
+
return it = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, r) {
|
|
670
687
|
i.__proto__ = r;
|
|
671
688
|
} || function(i, r) {
|
|
672
|
-
for (var n in r)
|
|
673
|
-
|
|
689
|
+
for (var n in r)
|
|
690
|
+
Object.prototype.hasOwnProperty.call(r, n) && (i[n] = r[n]);
|
|
691
|
+
}, it(e, t);
|
|
674
692
|
};
|
|
675
693
|
function Q(e, t) {
|
|
676
694
|
if (typeof t != "function" && t !== null)
|
|
677
695
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
678
|
-
|
|
696
|
+
it(e, t);
|
|
679
697
|
function i() {
|
|
680
698
|
this.constructor = e;
|
|
681
699
|
}
|
|
@@ -685,99 +703,109 @@ var S = function() {
|
|
|
685
703
|
return S = Object.assign || function(t) {
|
|
686
704
|
for (var i, r = 1, n = arguments.length; r < n; r++) {
|
|
687
705
|
i = arguments[r];
|
|
688
|
-
for (var o in i)
|
|
706
|
+
for (var o in i)
|
|
707
|
+
Object.prototype.hasOwnProperty.call(i, o) && (t[o] = i[o]);
|
|
689
708
|
}
|
|
690
709
|
return t;
|
|
691
710
|
}, S.apply(this, arguments);
|
|
692
711
|
};
|
|
693
|
-
function
|
|
712
|
+
function tn(e, t) {
|
|
694
713
|
var i = {};
|
|
695
|
-
for (var r in e)
|
|
714
|
+
for (var r in e)
|
|
715
|
+
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (i[r] = e[r]);
|
|
696
716
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
697
717
|
for (var n = 0, r = Object.getOwnPropertySymbols(e); n < r.length; n++)
|
|
698
718
|
t.indexOf(r[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[n]) && (i[r[n]] = e[r[n]]);
|
|
699
719
|
return i;
|
|
700
720
|
}
|
|
701
|
-
function
|
|
721
|
+
function rt(e) {
|
|
702
722
|
var t = typeof Symbol == "function" && Symbol.iterator, i = t && e[t], r = 0;
|
|
703
|
-
if (i)
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
723
|
+
if (i)
|
|
724
|
+
return i.call(e);
|
|
725
|
+
if (e && typeof e.length == "number")
|
|
726
|
+
return {
|
|
727
|
+
next: function() {
|
|
728
|
+
return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
|
|
729
|
+
}
|
|
730
|
+
};
|
|
709
731
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
710
732
|
}
|
|
711
|
-
function
|
|
733
|
+
function nt(e, t) {
|
|
712
734
|
var i = typeof Symbol == "function" && e[Symbol.iterator];
|
|
713
|
-
if (!i)
|
|
735
|
+
if (!i)
|
|
736
|
+
return e;
|
|
714
737
|
var r = i.call(e), n, o = [], s;
|
|
715
738
|
try {
|
|
716
|
-
for (; (t === void 0 || t-- > 0) && !(n = r.next()).done; )
|
|
739
|
+
for (; (t === void 0 || t-- > 0) && !(n = r.next()).done; )
|
|
740
|
+
o.push(n.value);
|
|
717
741
|
} catch (a) {
|
|
718
742
|
s = { error: a };
|
|
719
743
|
} finally {
|
|
720
744
|
try {
|
|
721
745
|
n && !n.done && (i = r.return) && i.call(r);
|
|
722
746
|
} finally {
|
|
723
|
-
if (s)
|
|
747
|
+
if (s)
|
|
748
|
+
throw s.error;
|
|
724
749
|
}
|
|
725
750
|
}
|
|
726
751
|
return o;
|
|
727
752
|
}
|
|
728
|
-
function
|
|
729
|
-
if (i || arguments.length === 2)
|
|
730
|
-
(
|
|
731
|
-
|
|
753
|
+
function le(e, t, i) {
|
|
754
|
+
if (i || arguments.length === 2)
|
|
755
|
+
for (var r = 0, n = t.length, o; r < n; r++)
|
|
756
|
+
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
757
|
+
return e.concat(o || t);
|
|
732
758
|
}
|
|
733
759
|
function Ze(e, t) {
|
|
734
|
-
var i = t && t.cache ? t.cache :
|
|
760
|
+
var i = t && t.cache ? t.cache : ln, r = t && t.serializer ? t.serializer : an, n = t && t.strategy ? t.strategy : nn;
|
|
735
761
|
return n(e, {
|
|
736
762
|
cache: i,
|
|
737
763
|
serializer: r
|
|
738
764
|
});
|
|
739
765
|
}
|
|
740
|
-
function
|
|
766
|
+
function rn(e) {
|
|
741
767
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
742
768
|
}
|
|
743
|
-
function
|
|
744
|
-
var n =
|
|
769
|
+
function gi(e, t, i, r) {
|
|
770
|
+
var n = rn(r) ? r : i(r), o = t.get(n);
|
|
745
771
|
return typeof o == "undefined" && (o = e.call(this, r), t.set(n, o)), o;
|
|
746
772
|
}
|
|
747
|
-
function
|
|
773
|
+
function yi(e, t, i) {
|
|
748
774
|
var r = Array.prototype.slice.call(arguments, 3), n = i(r), o = t.get(n);
|
|
749
775
|
return typeof o == "undefined" && (o = e.apply(this, r), t.set(n, o)), o;
|
|
750
776
|
}
|
|
751
|
-
function
|
|
777
|
+
function bt(e, t, i, r, n) {
|
|
752
778
|
return i.bind(t, e, r, n);
|
|
753
779
|
}
|
|
754
|
-
function
|
|
755
|
-
var i = e.length === 1 ?
|
|
756
|
-
return
|
|
780
|
+
function nn(e, t) {
|
|
781
|
+
var i = e.length === 1 ? gi : yi;
|
|
782
|
+
return bt(e, this, i, t.cache.create(), t.serializer);
|
|
757
783
|
}
|
|
758
|
-
function
|
|
759
|
-
return
|
|
784
|
+
function on(e, t) {
|
|
785
|
+
return bt(e, this, yi, t.cache.create(), t.serializer);
|
|
760
786
|
}
|
|
761
|
-
|
|
787
|
+
function sn(e, t) {
|
|
788
|
+
return bt(e, this, gi, t.cache.create(), t.serializer);
|
|
789
|
+
}
|
|
790
|
+
var an = function() {
|
|
762
791
|
return JSON.stringify(arguments);
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
}()
|
|
775
|
-
), on = {
|
|
792
|
+
};
|
|
793
|
+
function gt() {
|
|
794
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
795
|
+
}
|
|
796
|
+
gt.prototype.get = function(e) {
|
|
797
|
+
return this.cache[e];
|
|
798
|
+
};
|
|
799
|
+
gt.prototype.set = function(e, t) {
|
|
800
|
+
this.cache[e] = t;
|
|
801
|
+
};
|
|
802
|
+
var ln = {
|
|
776
803
|
create: function() {
|
|
777
|
-
return new
|
|
804
|
+
return new gt();
|
|
778
805
|
}
|
|
779
806
|
}, Ye = {
|
|
780
|
-
variadic:
|
|
807
|
+
variadic: on,
|
|
808
|
+
monadic: sn
|
|
781
809
|
}, x;
|
|
782
810
|
(function(e) {
|
|
783
811
|
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";
|
|
@@ -790,43 +818,43 @@ var ce;
|
|
|
790
818
|
(function(e) {
|
|
791
819
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
792
820
|
})(ce || (ce = {}));
|
|
793
|
-
function
|
|
821
|
+
function Ht(e) {
|
|
794
822
|
return e.type === O.literal;
|
|
795
823
|
}
|
|
796
|
-
function
|
|
824
|
+
function un(e) {
|
|
797
825
|
return e.type === O.argument;
|
|
798
826
|
}
|
|
799
|
-
function
|
|
827
|
+
function vi(e) {
|
|
800
828
|
return e.type === O.number;
|
|
801
829
|
}
|
|
802
|
-
function
|
|
830
|
+
function _i(e) {
|
|
803
831
|
return e.type === O.date;
|
|
804
832
|
}
|
|
805
|
-
function
|
|
833
|
+
function Ei(e) {
|
|
806
834
|
return e.type === O.time;
|
|
807
835
|
}
|
|
808
|
-
function
|
|
836
|
+
function Li(e) {
|
|
809
837
|
return e.type === O.select;
|
|
810
838
|
}
|
|
811
|
-
function
|
|
839
|
+
function xi(e) {
|
|
812
840
|
return e.type === O.plural;
|
|
813
841
|
}
|
|
814
|
-
function
|
|
842
|
+
function cn(e) {
|
|
815
843
|
return e.type === O.pound;
|
|
816
844
|
}
|
|
817
|
-
function
|
|
845
|
+
function Ti(e) {
|
|
818
846
|
return e.type === O.tag;
|
|
819
847
|
}
|
|
820
|
-
function
|
|
848
|
+
function wi(e) {
|
|
821
849
|
return !!(e && typeof e == "object" && e.type === ce.number);
|
|
822
850
|
}
|
|
823
|
-
function
|
|
851
|
+
function ot(e) {
|
|
824
852
|
return !!(e && typeof e == "object" && e.type === ce.dateTime);
|
|
825
853
|
}
|
|
826
|
-
var
|
|
827
|
-
function
|
|
854
|
+
var Si = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, hn = /(?:[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;
|
|
855
|
+
function mn(e) {
|
|
828
856
|
var t = {};
|
|
829
|
-
return e.replace(
|
|
857
|
+
return e.replace(hn, function(i) {
|
|
830
858
|
var r = i.length;
|
|
831
859
|
switch (i[0]) {
|
|
832
860
|
case "G":
|
|
@@ -915,18 +943,18 @@ function ln(e) {
|
|
|
915
943
|
return "";
|
|
916
944
|
}), t;
|
|
917
945
|
}
|
|
918
|
-
var
|
|
919
|
-
function
|
|
946
|
+
var fn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
947
|
+
function pn(e) {
|
|
920
948
|
if (e.length === 0)
|
|
921
949
|
throw new Error("Number skeleton cannot be empty");
|
|
922
|
-
for (var t = e.split(
|
|
950
|
+
for (var t = e.split(fn).filter(function(f) {
|
|
923
951
|
return f.length > 0;
|
|
924
952
|
}), i = [], r = 0, n = t; r < n.length; r++) {
|
|
925
953
|
var o = n[r], s = o.split("/");
|
|
926
954
|
if (s.length === 0)
|
|
927
955
|
throw new Error("Invalid number skeleton");
|
|
928
|
-
for (var a = s[0], c = s.slice(1),
|
|
929
|
-
var h = l
|
|
956
|
+
for (var a = s[0], c = s.slice(1), l = 0, u = c; l < u.length; l++) {
|
|
957
|
+
var h = u[l];
|
|
930
958
|
if (h.length === 0)
|
|
931
959
|
throw new Error("Invalid number skeleton");
|
|
932
960
|
}
|
|
@@ -934,17 +962,17 @@ function hn(e) {
|
|
|
934
962
|
}
|
|
935
963
|
return i;
|
|
936
964
|
}
|
|
937
|
-
function
|
|
965
|
+
function dn(e) {
|
|
938
966
|
return e.replace(/^(.*?)-/, "");
|
|
939
967
|
}
|
|
940
|
-
var
|
|
941
|
-
function
|
|
968
|
+
var Ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Pi = /^(@+)?(\+|#+)?[rs]?$/g, bn = /(\*)(0+)|(#+)(0+)|(0+)/g, Ai = /^(0+)$/;
|
|
969
|
+
function Mt(e) {
|
|
942
970
|
var t = {};
|
|
943
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
971
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Pi, function(i, r, n) {
|
|
944
972
|
return typeof n != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : n === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof n == "string" ? n.length : 0)), "";
|
|
945
973
|
}), t;
|
|
946
974
|
}
|
|
947
|
-
function
|
|
975
|
+
function Bi(e) {
|
|
948
976
|
switch (e) {
|
|
949
977
|
case "sign-auto":
|
|
950
978
|
return {
|
|
@@ -984,7 +1012,7 @@ function Si(e) {
|
|
|
984
1012
|
};
|
|
985
1013
|
}
|
|
986
1014
|
}
|
|
987
|
-
function
|
|
1015
|
+
function gn(e) {
|
|
988
1016
|
var t;
|
|
989
1017
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
990
1018
|
notation: "engineering"
|
|
@@ -992,17 +1020,17 @@ function pn(e) {
|
|
|
992
1020
|
notation: "scientific"
|
|
993
1021
|
}, e = e.slice(1)), t) {
|
|
994
1022
|
var i = e.slice(0, 2);
|
|
995
|
-
if (i === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : i === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1023
|
+
if (i === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : i === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ai.test(e))
|
|
996
1024
|
throw new Error("Malformed concise eng/scientific notation");
|
|
997
1025
|
t.minimumIntegerDigits = e.length;
|
|
998
1026
|
}
|
|
999
1027
|
return t;
|
|
1000
1028
|
}
|
|
1001
|
-
function
|
|
1002
|
-
var t = {}, i =
|
|
1029
|
+
function Ct(e) {
|
|
1030
|
+
var t = {}, i = Bi(e);
|
|
1003
1031
|
return i || t;
|
|
1004
1032
|
}
|
|
1005
|
-
function
|
|
1033
|
+
function yn(e) {
|
|
1006
1034
|
for (var t = {}, i = 0, r = e; i < r.length; i++) {
|
|
1007
1035
|
var n = r[i];
|
|
1008
1036
|
switch (n.stem) {
|
|
@@ -1026,7 +1054,7 @@ function dn(e) {
|
|
|
1026
1054
|
continue;
|
|
1027
1055
|
case "measure-unit":
|
|
1028
1056
|
case "unit":
|
|
1029
|
-
t.style = "unit", t.unit =
|
|
1057
|
+
t.style = "unit", t.unit = dn(n.options[0]);
|
|
1030
1058
|
continue;
|
|
1031
1059
|
case "compact-short":
|
|
1032
1060
|
case "K":
|
|
@@ -1037,13 +1065,13 @@ function dn(e) {
|
|
|
1037
1065
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1038
1066
|
continue;
|
|
1039
1067
|
case "scientific":
|
|
1040
|
-
t = S(S(S({}, t), { notation: "scientific" }), n.options.reduce(function(c,
|
|
1041
|
-
return S(S({}, c),
|
|
1068
|
+
t = S(S(S({}, t), { notation: "scientific" }), n.options.reduce(function(c, l) {
|
|
1069
|
+
return S(S({}, c), Ct(l));
|
|
1042
1070
|
}, {}));
|
|
1043
1071
|
continue;
|
|
1044
1072
|
case "engineering":
|
|
1045
|
-
t = S(S(S({}, t), { notation: "engineering" }), n.options.reduce(function(c,
|
|
1046
|
-
return S(S({}, c),
|
|
1073
|
+
t = S(S(S({}, t), { notation: "engineering" }), n.options.reduce(function(c, l) {
|
|
1074
|
+
return S(S({}, c), Ct(l));
|
|
1047
1075
|
}, {}));
|
|
1048
1076
|
continue;
|
|
1049
1077
|
case "notation-simple":
|
|
@@ -1088,9 +1116,9 @@ function dn(e) {
|
|
|
1088
1116
|
case "integer-width":
|
|
1089
1117
|
if (n.options.length > 1)
|
|
1090
1118
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1091
|
-
n.options[0].replace(
|
|
1092
|
-
if (
|
|
1093
|
-
t.minimumIntegerDigits =
|
|
1119
|
+
n.options[0].replace(bn, function(c, l, u, h, f, m) {
|
|
1120
|
+
if (l)
|
|
1121
|
+
t.minimumIntegerDigits = u.length;
|
|
1094
1122
|
else {
|
|
1095
1123
|
if (h && f)
|
|
1096
1124
|
throw new Error("We currently do not support maximum integer digits");
|
|
@@ -1101,27 +1129,27 @@ function dn(e) {
|
|
|
1101
1129
|
});
|
|
1102
1130
|
continue;
|
|
1103
1131
|
}
|
|
1104
|
-
if (
|
|
1132
|
+
if (Ai.test(n.stem)) {
|
|
1105
1133
|
t.minimumIntegerDigits = n.stem.length;
|
|
1106
1134
|
continue;
|
|
1107
1135
|
}
|
|
1108
|
-
if (
|
|
1136
|
+
if (Ot.test(n.stem)) {
|
|
1109
1137
|
if (n.options.length > 1)
|
|
1110
1138
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1111
|
-
n.stem.replace(
|
|
1112
|
-
return
|
|
1139
|
+
n.stem.replace(Ot, function(c, l, u, h, f, m) {
|
|
1140
|
+
return u === "*" ? t.minimumFractionDigits = l.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1113
1141
|
});
|
|
1114
1142
|
var o = n.options[0];
|
|
1115
|
-
o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t),
|
|
1143
|
+
o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), Mt(o)));
|
|
1116
1144
|
continue;
|
|
1117
1145
|
}
|
|
1118
|
-
if (
|
|
1119
|
-
t = S(S({}, t),
|
|
1146
|
+
if (Pi.test(n.stem)) {
|
|
1147
|
+
t = S(S({}, t), Mt(n.stem));
|
|
1120
1148
|
continue;
|
|
1121
1149
|
}
|
|
1122
|
-
var s =
|
|
1150
|
+
var s = Bi(n.stem);
|
|
1123
1151
|
s && (t = S(S({}, t), s));
|
|
1124
|
-
var a =
|
|
1152
|
+
var a = gn(n.stem);
|
|
1125
1153
|
a && (t = S(S({}, t), a));
|
|
1126
1154
|
}
|
|
1127
1155
|
return t;
|
|
@@ -2541,22 +2569,23 @@ var Se = {
|
|
|
2541
2569
|
"h"
|
|
2542
2570
|
]
|
|
2543
2571
|
};
|
|
2544
|
-
function
|
|
2572
|
+
function vn(e, t) {
|
|
2545
2573
|
for (var i = "", r = 0; r < e.length; r++) {
|
|
2546
2574
|
var n = e.charAt(r);
|
|
2547
2575
|
if (n === "j") {
|
|
2548
2576
|
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === n; )
|
|
2549
2577
|
o++, r++;
|
|
2550
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), c = "a",
|
|
2551
|
-
for ((
|
|
2578
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), c = "a", l = _n(t);
|
|
2579
|
+
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
2552
2580
|
i += c;
|
|
2553
2581
|
for (; s-- > 0; )
|
|
2554
|
-
i =
|
|
2555
|
-
} else
|
|
2582
|
+
i = l + i;
|
|
2583
|
+
} else
|
|
2584
|
+
n === "J" ? i += "H" : i += n;
|
|
2556
2585
|
}
|
|
2557
2586
|
return i;
|
|
2558
2587
|
}
|
|
2559
|
-
function
|
|
2588
|
+
function _n(e) {
|
|
2560
2589
|
var t = e.hourCycle;
|
|
2561
2590
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2562
2591
|
e.hourCycles && // @ts-ignore
|
|
@@ -2578,20 +2607,20 @@ function gn(e) {
|
|
|
2578
2607
|
var n = Se[r || ""] || Se[i || ""] || Se["".concat(i, "-001")] || Se["001"];
|
|
2579
2608
|
return n[0];
|
|
2580
2609
|
}
|
|
2581
|
-
var qe,
|
|
2610
|
+
var qe, En = new RegExp("^".concat(Si.source, "*")), Ln = new RegExp("".concat(Si.source, "*$"));
|
|
2582
2611
|
function T(e, t) {
|
|
2583
2612
|
return { start: e, end: t };
|
|
2584
2613
|
}
|
|
2585
|
-
var
|
|
2614
|
+
var xn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Tn = !!String.fromCodePoint, wn = !!Object.fromEntries, Sn = !!String.prototype.codePointAt, Pn = !!String.prototype.trimStart, An = !!String.prototype.trimEnd, Bn = !!Number.isSafeInteger, Nn = Bn ? Number.isSafeInteger : function(e) {
|
|
2586
2615
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2587
|
-
},
|
|
2616
|
+
}, st = !0;
|
|
2588
2617
|
try {
|
|
2589
|
-
var
|
|
2590
|
-
|
|
2618
|
+
var In = Ii("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2619
|
+
st = ((qe = In.exec("a")) === null || qe === void 0 ? void 0 : qe[0]) === "a";
|
|
2591
2620
|
} catch (e) {
|
|
2592
|
-
|
|
2621
|
+
st = !1;
|
|
2593
2622
|
}
|
|
2594
|
-
var
|
|
2623
|
+
var kt = xn ? (
|
|
2595
2624
|
// Native
|
|
2596
2625
|
function(t, i, r) {
|
|
2597
2626
|
return t.startsWith(i, r);
|
|
@@ -2601,7 +2630,7 @@ var Ot = _n ? (
|
|
|
2601
2630
|
function(t, i, r) {
|
|
2602
2631
|
return t.slice(r, r + i.length) === i;
|
|
2603
2632
|
}
|
|
2604
|
-
),
|
|
2633
|
+
), at = Tn ? String.fromCodePoint : (
|
|
2605
2634
|
// IE11
|
|
2606
2635
|
function() {
|
|
2607
2636
|
for (var t = [], i = 0; i < arguments.length; i++)
|
|
@@ -2613,9 +2642,9 @@ var Ot = _n ? (
|
|
|
2613
2642
|
}
|
|
2614
2643
|
return r;
|
|
2615
2644
|
}
|
|
2616
|
-
),
|
|
2645
|
+
), Dt = (
|
|
2617
2646
|
// native
|
|
2618
|
-
|
|
2647
|
+
wn ? Object.fromEntries : (
|
|
2619
2648
|
// Ponyfill
|
|
2620
2649
|
function(t) {
|
|
2621
2650
|
for (var i = {}, r = 0, n = t; r < n.length; r++) {
|
|
@@ -2625,7 +2654,7 @@ var Ot = _n ? (
|
|
|
2625
2654
|
return i;
|
|
2626
2655
|
}
|
|
2627
2656
|
)
|
|
2628
|
-
),
|
|
2657
|
+
), Ni = Sn ? (
|
|
2629
2658
|
// Native
|
|
2630
2659
|
function(t, i) {
|
|
2631
2660
|
return t.codePointAt(i);
|
|
@@ -2639,7 +2668,7 @@ var Ot = _n ? (
|
|
|
2639
2668
|
return n < 55296 || n > 56319 || i + 1 === r || (o = t.charCodeAt(i + 1)) < 56320 || o > 57343 ? n : (n - 55296 << 10) + (o - 56320) + 65536;
|
|
2640
2669
|
}
|
|
2641
2670
|
}
|
|
2642
|
-
),
|
|
2671
|
+
), Hn = Pn ? (
|
|
2643
2672
|
// Native
|
|
2644
2673
|
function(t) {
|
|
2645
2674
|
return t.trimStart();
|
|
@@ -2647,9 +2676,9 @@ var Ot = _n ? (
|
|
|
2647
2676
|
) : (
|
|
2648
2677
|
// Ponyfill
|
|
2649
2678
|
function(t) {
|
|
2650
|
-
return t.replace(
|
|
2679
|
+
return t.replace(En, "");
|
|
2651
2680
|
}
|
|
2652
|
-
),
|
|
2681
|
+
), On = An ? (
|
|
2653
2682
|
// Native
|
|
2654
2683
|
function(t) {
|
|
2655
2684
|
return t.trimEnd();
|
|
@@ -2657,32 +2686,32 @@ var Ot = _n ? (
|
|
|
2657
2686
|
) : (
|
|
2658
2687
|
// Ponyfill
|
|
2659
2688
|
function(t) {
|
|
2660
|
-
return t.replace(
|
|
2689
|
+
return t.replace(Ln, "");
|
|
2661
2690
|
}
|
|
2662
2691
|
);
|
|
2663
|
-
function
|
|
2692
|
+
function Ii(e, t) {
|
|
2664
2693
|
return new RegExp(e, t);
|
|
2665
2694
|
}
|
|
2666
|
-
var
|
|
2667
|
-
if (
|
|
2668
|
-
var
|
|
2669
|
-
|
|
2695
|
+
var lt;
|
|
2696
|
+
if (st) {
|
|
2697
|
+
var Rt = Ii("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2698
|
+
lt = function(t, i) {
|
|
2670
2699
|
var r;
|
|
2671
|
-
|
|
2672
|
-
var n =
|
|
2700
|
+
Rt.lastIndex = i;
|
|
2701
|
+
var n = Rt.exec(t);
|
|
2673
2702
|
return (r = n[1]) !== null && r !== void 0 ? r : "";
|
|
2674
2703
|
};
|
|
2675
2704
|
} else
|
|
2676
|
-
|
|
2705
|
+
lt = function(t, i) {
|
|
2677
2706
|
for (var r = []; ; ) {
|
|
2678
|
-
var n =
|
|
2679
|
-
if (n === void 0 ||
|
|
2707
|
+
var n = Ni(t, i);
|
|
2708
|
+
if (n === void 0 || Hi(n) || Dn(n))
|
|
2680
2709
|
break;
|
|
2681
2710
|
r.push(n), i += n >= 65536 ? 2 : 1;
|
|
2682
2711
|
}
|
|
2683
|
-
return
|
|
2712
|
+
return at.apply(void 0, r);
|
|
2684
2713
|
};
|
|
2685
|
-
var
|
|
2714
|
+
var Mn = (
|
|
2686
2715
|
/** @class */
|
|
2687
2716
|
function() {
|
|
2688
2717
|
function e(t, i) {
|
|
@@ -2748,8 +2777,8 @@ var In = (
|
|
|
2748
2777
|
if (this.bumpIf("</")) {
|
|
2749
2778
|
if (this.isEOF() || !ut(this.char()))
|
|
2750
2779
|
return this.error(x.INVALID_TAG, T(a, this.clonePosition()));
|
|
2751
|
-
var c = this.clonePosition(),
|
|
2752
|
-
return n !==
|
|
2780
|
+
var c = this.clonePosition(), l = this.parseTagName();
|
|
2781
|
+
return n !== l ? this.error(x.UNMATCHED_CLOSING_TAG, T(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2753
2782
|
val: {
|
|
2754
2783
|
type: O.tag,
|
|
2755
2784
|
value: n,
|
|
@@ -2764,7 +2793,7 @@ var In = (
|
|
|
2764
2793
|
return this.error(x.INVALID_TAG, T(r, this.clonePosition()));
|
|
2765
2794
|
}, e.prototype.parseTagName = function() {
|
|
2766
2795
|
var t = this.offset();
|
|
2767
|
-
for (this.bump(); !this.isEOF() &&
|
|
2796
|
+
for (this.bump(); !this.isEOF() && kn(this.char()); )
|
|
2768
2797
|
this.bump();
|
|
2769
2798
|
return this.message.slice(t, this.offset());
|
|
2770
2799
|
}, e.prototype.parseLiteral = function(t, i) {
|
|
@@ -2793,7 +2822,7 @@ var In = (
|
|
|
2793
2822
|
};
|
|
2794
2823
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2795
2824
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2796
|
-
!
|
|
2825
|
+
!Cn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2797
2826
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2798
2827
|
if (this.isEOF() || this.char() !== 39)
|
|
2799
2828
|
return null;
|
|
@@ -2827,12 +2856,12 @@ var In = (
|
|
|
2827
2856
|
i.push(r);
|
|
2828
2857
|
this.bump();
|
|
2829
2858
|
}
|
|
2830
|
-
return
|
|
2859
|
+
return at.apply(void 0, i);
|
|
2831
2860
|
}, e.prototype.tryParseUnquoted = function(t, i) {
|
|
2832
2861
|
if (this.isEOF())
|
|
2833
2862
|
return null;
|
|
2834
2863
|
var r = this.char();
|
|
2835
|
-
return r === 60 || r === 123 || r === 35 && (i === "plural" || i === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
2864
|
+
return r === 60 || r === 123 || r === 35 && (i === "plural" || i === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), at(r));
|
|
2836
2865
|
}, e.prototype.parseArgument = function(t, i) {
|
|
2837
2866
|
var r = this.clonePosition();
|
|
2838
2867
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2861,7 +2890,7 @@ var In = (
|
|
|
2861
2890
|
return this.error(x.MALFORMED_ARGUMENT, T(r, this.clonePosition()));
|
|
2862
2891
|
}
|
|
2863
2892
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2864
|
-
var t = this.clonePosition(), i = this.offset(), r =
|
|
2893
|
+
var t = this.clonePosition(), i = this.offset(), r = lt(this.message, i), n = i + r.length;
|
|
2865
2894
|
this.bumpTo(n);
|
|
2866
2895
|
var o = this.clonePosition(), s = T(t, o);
|
|
2867
2896
|
return { value: r, location: s };
|
|
@@ -2874,26 +2903,26 @@ var In = (
|
|
|
2874
2903
|
case "date":
|
|
2875
2904
|
case "time": {
|
|
2876
2905
|
this.bumpSpace();
|
|
2877
|
-
var
|
|
2906
|
+
var l = null;
|
|
2878
2907
|
if (this.bumpIf(",")) {
|
|
2879
2908
|
this.bumpSpace();
|
|
2880
|
-
var
|
|
2909
|
+
var u = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
|
|
2881
2910
|
if (h.err)
|
|
2882
2911
|
return h;
|
|
2883
|
-
var f =
|
|
2912
|
+
var f = On(h.val);
|
|
2884
2913
|
if (f.length === 0)
|
|
2885
2914
|
return this.error(x.EXPECT_ARGUMENT_STYLE, T(this.clonePosition(), this.clonePosition()));
|
|
2886
|
-
var m = T(
|
|
2887
|
-
|
|
2915
|
+
var m = T(u, this.clonePosition());
|
|
2916
|
+
l = { style: f, styleLocation: m };
|
|
2888
2917
|
}
|
|
2889
2918
|
var p = this.tryParseArgumentClose(n);
|
|
2890
2919
|
if (p.err)
|
|
2891
2920
|
return p;
|
|
2892
2921
|
var _ = T(n, this.clonePosition());
|
|
2893
|
-
if (
|
|
2894
|
-
var R =
|
|
2922
|
+
if (l && kt(l == null ? void 0 : l.style, "::", 0)) {
|
|
2923
|
+
var R = Hn(l.style.slice(2));
|
|
2895
2924
|
if (a === "number") {
|
|
2896
|
-
var h = this.parseNumberSkeletonFromString(R,
|
|
2925
|
+
var h = this.parseNumberSkeletonFromString(R, l.styleLocation);
|
|
2897
2926
|
return h.err ? h : {
|
|
2898
2927
|
val: { type: O.number, value: r, location: _, style: h.val },
|
|
2899
2928
|
err: null
|
|
@@ -2902,12 +2931,12 @@ var In = (
|
|
|
2902
2931
|
if (R.length === 0)
|
|
2903
2932
|
return this.error(x.EXPECT_DATE_TIME_SKELETON, _);
|
|
2904
2933
|
var P = R;
|
|
2905
|
-
this.locale && (P =
|
|
2934
|
+
this.locale && (P = vn(R, this.locale));
|
|
2906
2935
|
var f = {
|
|
2907
2936
|
type: ce.dateTime,
|
|
2908
2937
|
pattern: P,
|
|
2909
|
-
location:
|
|
2910
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2938
|
+
location: l.styleLocation,
|
|
2939
|
+
parsedOptions: this.shouldParseSkeletons ? mn(P) : {}
|
|
2911
2940
|
}, L = a === "date" ? O.date : O.time;
|
|
2912
2941
|
return {
|
|
2913
2942
|
val: { type: L, value: r, location: _, style: f },
|
|
@@ -2920,7 +2949,7 @@ var In = (
|
|
|
2920
2949
|
type: a === "number" ? O.number : a === "date" ? O.date : O.time,
|
|
2921
2950
|
value: r,
|
|
2922
2951
|
location: _,
|
|
2923
|
-
style: (o =
|
|
2952
|
+
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
|
2924
2953
|
},
|
|
2925
2954
|
err: null
|
|
2926
2955
|
};
|
|
@@ -2932,7 +2961,7 @@ var In = (
|
|
|
2932
2961
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2933
2962
|
return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS, T(w, S({}, w)));
|
|
2934
2963
|
this.bumpSpace();
|
|
2935
|
-
var H = this.parseIdentifierIfPossible(),
|
|
2964
|
+
var H = this.parseIdentifierIfPossible(), B = 0;
|
|
2936
2965
|
if (a !== "select" && H.value === "offset") {
|
|
2937
2966
|
if (!this.bumpIf(":"))
|
|
2938
2967
|
return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T(this.clonePosition(), this.clonePosition()));
|
|
@@ -2940,7 +2969,7 @@ var In = (
|
|
|
2940
2969
|
var h = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2941
2970
|
if (h.err)
|
|
2942
2971
|
return h;
|
|
2943
|
-
this.bumpSpace(), H = this.parseIdentifierIfPossible(),
|
|
2972
|
+
this.bumpSpace(), H = this.parseIdentifierIfPossible(), B = h.val;
|
|
2944
2973
|
}
|
|
2945
2974
|
var M = this.tryParsePluralOrSelectOptions(t, a, i, H);
|
|
2946
2975
|
if (M.err)
|
|
@@ -2953,7 +2982,7 @@ var In = (
|
|
|
2953
2982
|
val: {
|
|
2954
2983
|
type: O.select,
|
|
2955
2984
|
value: r,
|
|
2956
|
-
options:
|
|
2985
|
+
options: Dt(M.val),
|
|
2957
2986
|
location: D
|
|
2958
2987
|
},
|
|
2959
2988
|
err: null
|
|
@@ -2961,8 +2990,8 @@ var In = (
|
|
|
2961
2990
|
val: {
|
|
2962
2991
|
type: O.plural,
|
|
2963
2992
|
value: r,
|
|
2964
|
-
options:
|
|
2965
|
-
offset:
|
|
2993
|
+
options: Dt(M.val),
|
|
2994
|
+
offset: B,
|
|
2966
2995
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2967
2996
|
location: D
|
|
2968
2997
|
},
|
|
@@ -3012,7 +3041,7 @@ var In = (
|
|
|
3012
3041
|
}, e.prototype.parseNumberSkeletonFromString = function(t, i) {
|
|
3013
3042
|
var r = [];
|
|
3014
3043
|
try {
|
|
3015
|
-
r =
|
|
3044
|
+
r = pn(t);
|
|
3016
3045
|
} catch (n) {
|
|
3017
3046
|
return this.error(x.INVALID_NUMBER_SKELETON, i);
|
|
3018
3047
|
}
|
|
@@ -3021,25 +3050,25 @@ var In = (
|
|
|
3021
3050
|
type: ce.number,
|
|
3022
3051
|
tokens: r,
|
|
3023
3052
|
location: i,
|
|
3024
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3053
|
+
parsedOptions: this.shouldParseSkeletons ? yn(r) : {}
|
|
3025
3054
|
},
|
|
3026
3055
|
err: null
|
|
3027
3056
|
};
|
|
3028
3057
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, i, r, n) {
|
|
3029
|
-
for (var o, s = !1, a = [], c = /* @__PURE__ */ new Set(),
|
|
3030
|
-
if (
|
|
3058
|
+
for (var o, s = !1, a = [], c = /* @__PURE__ */ new Set(), l = n.value, u = n.location; ; ) {
|
|
3059
|
+
if (l.length === 0) {
|
|
3031
3060
|
var h = this.clonePosition();
|
|
3032
3061
|
if (i !== "select" && this.bumpIf("=")) {
|
|
3033
3062
|
var f = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_SELECTOR, x.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3034
3063
|
if (f.err)
|
|
3035
3064
|
return f;
|
|
3036
|
-
|
|
3065
|
+
u = T(h, this.clonePosition()), l = this.message.slice(h.offset, this.offset());
|
|
3037
3066
|
} else
|
|
3038
3067
|
break;
|
|
3039
3068
|
}
|
|
3040
|
-
if (c.has(
|
|
3041
|
-
return this.error(i === "select" ? x.DUPLICATE_SELECT_ARGUMENT_SELECTOR : x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
|
3042
|
-
|
|
3069
|
+
if (c.has(l))
|
|
3070
|
+
return this.error(i === "select" ? x.DUPLICATE_SELECT_ARGUMENT_SELECTOR : x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
|
3071
|
+
l === "other" && (s = !0), this.bumpSpace();
|
|
3043
3072
|
var m = this.clonePosition();
|
|
3044
3073
|
if (!this.bumpIf("{"))
|
|
3045
3074
|
return this.error(i === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, T(this.clonePosition(), this.clonePosition()));
|
|
@@ -3050,12 +3079,12 @@ var In = (
|
|
|
3050
3079
|
if (_.err)
|
|
3051
3080
|
return _;
|
|
3052
3081
|
a.push([
|
|
3053
|
-
|
|
3082
|
+
l,
|
|
3054
3083
|
{
|
|
3055
3084
|
value: p.val,
|
|
3056
3085
|
location: T(m, this.clonePosition())
|
|
3057
3086
|
}
|
|
3058
|
-
]), c.add(
|
|
3087
|
+
]), c.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, u = o.location;
|
|
3059
3088
|
}
|
|
3060
3089
|
return a.length === 0 ? this.error(i === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR : x.EXPECT_PLURAL_ARGUMENT_SELECTOR, T(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(x.MISSING_OTHER_CLAUSE, T(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3061
3090
|
}, e.prototype.tryParseDecimalInteger = function(t, i) {
|
|
@@ -3069,7 +3098,7 @@ var In = (
|
|
|
3069
3098
|
break;
|
|
3070
3099
|
}
|
|
3071
3100
|
var c = T(n, this.clonePosition());
|
|
3072
|
-
return o ? (s *= r,
|
|
3101
|
+
return o ? (s *= r, Nn(s) ? { val: s, err: null } : this.error(i, c)) : this.error(t, c);
|
|
3073
3102
|
}, e.prototype.offset = function() {
|
|
3074
3103
|
return this.position.offset;
|
|
3075
3104
|
}, e.prototype.isEOF = function() {
|
|
@@ -3084,7 +3113,7 @@ var In = (
|
|
|
3084
3113
|
var t = this.position.offset;
|
|
3085
3114
|
if (t >= this.message.length)
|
|
3086
3115
|
throw Error("out of bound");
|
|
3087
|
-
var i =
|
|
3116
|
+
var i = Ni(this.message, t);
|
|
3088
3117
|
if (i === void 0)
|
|
3089
3118
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3090
3119
|
return i;
|
|
@@ -3103,7 +3132,7 @@ var In = (
|
|
|
3103
3132
|
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);
|
|
3104
3133
|
}
|
|
3105
3134
|
}, e.prototype.bumpIf = function(t) {
|
|
3106
|
-
if (
|
|
3135
|
+
if (kt(this.message, t, this.offset())) {
|
|
3107
3136
|
for (var i = 0; i < t.length; i++)
|
|
3108
3137
|
this.bump();
|
|
3109
3138
|
return !0;
|
|
@@ -3125,7 +3154,7 @@ var In = (
|
|
|
3125
3154
|
break;
|
|
3126
3155
|
}
|
|
3127
3156
|
}, e.prototype.bumpSpace = function() {
|
|
3128
|
-
for (; !this.isEOF() &&
|
|
3157
|
+
for (; !this.isEOF() && Hi(this.char()); )
|
|
3129
3158
|
this.bump();
|
|
3130
3159
|
}, e.prototype.peek = function() {
|
|
3131
3160
|
if (this.isEOF())
|
|
@@ -3138,34 +3167,35 @@ var In = (
|
|
|
3138
3167
|
function ut(e) {
|
|
3139
3168
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3140
3169
|
}
|
|
3141
|
-
function
|
|
3170
|
+
function Cn(e) {
|
|
3142
3171
|
return ut(e) || e === 47;
|
|
3143
3172
|
}
|
|
3144
|
-
function
|
|
3173
|
+
function kn(e) {
|
|
3145
3174
|
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;
|
|
3146
3175
|
}
|
|
3147
|
-
function
|
|
3176
|
+
function Hi(e) {
|
|
3148
3177
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3149
3178
|
}
|
|
3150
|
-
function
|
|
3179
|
+
function Dn(e) {
|
|
3151
3180
|
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;
|
|
3152
3181
|
}
|
|
3153
|
-
function
|
|
3182
|
+
function ct(e) {
|
|
3154
3183
|
e.forEach(function(t) {
|
|
3155
|
-
if (delete t.location,
|
|
3184
|
+
if (delete t.location, Li(t) || xi(t))
|
|
3156
3185
|
for (var i in t.options)
|
|
3157
|
-
delete t.options[i].location,
|
|
3158
|
-
else
|
|
3186
|
+
delete t.options[i].location, ct(t.options[i].value);
|
|
3187
|
+
else
|
|
3188
|
+
vi(t) && wi(t.style) || (_i(t) || Ei(t)) && ot(t.style) ? delete t.style.location : Ti(t) && ct(t.children);
|
|
3159
3189
|
});
|
|
3160
3190
|
}
|
|
3161
|
-
function
|
|
3191
|
+
function Rn(e, t) {
|
|
3162
3192
|
t === void 0 && (t = {}), t = S({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3163
|
-
var i = new
|
|
3193
|
+
var i = new Mn(e, t).parse();
|
|
3164
3194
|
if (i.err) {
|
|
3165
3195
|
var r = SyntaxError(x[i.err.kind]);
|
|
3166
3196
|
throw r.location = i.err.location, r.originalMessage = i.err.message, r;
|
|
3167
3197
|
}
|
|
3168
|
-
return t != null && t.captureLocation ||
|
|
3198
|
+
return t != null && t.captureLocation || ct(i.val), i.val;
|
|
3169
3199
|
}
|
|
3170
3200
|
var he;
|
|
3171
3201
|
(function(e) {
|
|
@@ -3183,7 +3213,7 @@ var Re = (
|
|
|
3183
3213
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3184
3214
|
}, t;
|
|
3185
3215
|
}(Error)
|
|
3186
|
-
),
|
|
3216
|
+
), Ut = (
|
|
3187
3217
|
/** @class */
|
|
3188
3218
|
function(e) {
|
|
3189
3219
|
Q(t, e);
|
|
@@ -3192,7 +3222,7 @@ var Re = (
|
|
|
3192
3222
|
}
|
|
3193
3223
|
return t;
|
|
3194
3224
|
}(Re)
|
|
3195
|
-
),
|
|
3225
|
+
), Un = (
|
|
3196
3226
|
/** @class */
|
|
3197
3227
|
function(e) {
|
|
3198
3228
|
Q(t, e);
|
|
@@ -3201,7 +3231,7 @@ var Re = (
|
|
|
3201
3231
|
}
|
|
3202
3232
|
return t;
|
|
3203
3233
|
}(Re)
|
|
3204
|
-
),
|
|
3234
|
+
), jn = (
|
|
3205
3235
|
/** @class */
|
|
3206
3236
|
function(e) {
|
|
3207
3237
|
Q(t, e);
|
|
@@ -3214,121 +3244,121 @@ var Re = (
|
|
|
3214
3244
|
(function(e) {
|
|
3215
3245
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3216
3246
|
})(z || (z = {}));
|
|
3217
|
-
function
|
|
3247
|
+
function Fn(e) {
|
|
3218
3248
|
return e.length < 2 ? e : e.reduce(function(t, i) {
|
|
3219
3249
|
var r = t[t.length - 1];
|
|
3220
3250
|
return !r || r.type !== z.literal || i.type !== z.literal ? t.push(i) : r.value += i.value, t;
|
|
3221
3251
|
}, []);
|
|
3222
3252
|
}
|
|
3223
|
-
function
|
|
3253
|
+
function $n(e) {
|
|
3224
3254
|
return typeof e == "function";
|
|
3225
3255
|
}
|
|
3226
|
-
function
|
|
3227
|
-
if (e.length === 1 &&
|
|
3256
|
+
function Be(e, t, i, r, n, o, s) {
|
|
3257
|
+
if (e.length === 1 && Ht(e[0]))
|
|
3228
3258
|
return [
|
|
3229
3259
|
{
|
|
3230
3260
|
type: z.literal,
|
|
3231
3261
|
value: e[0].value
|
|
3232
3262
|
}
|
|
3233
3263
|
];
|
|
3234
|
-
for (var a = [], c = 0,
|
|
3235
|
-
var
|
|
3236
|
-
if (
|
|
3264
|
+
for (var a = [], c = 0, l = e; c < l.length; c++) {
|
|
3265
|
+
var u = l[c];
|
|
3266
|
+
if (Ht(u)) {
|
|
3237
3267
|
a.push({
|
|
3238
3268
|
type: z.literal,
|
|
3239
|
-
value:
|
|
3269
|
+
value: u.value
|
|
3240
3270
|
});
|
|
3241
3271
|
continue;
|
|
3242
3272
|
}
|
|
3243
|
-
if (
|
|
3273
|
+
if (cn(u)) {
|
|
3244
3274
|
typeof o == "number" && a.push({
|
|
3245
3275
|
type: z.literal,
|
|
3246
3276
|
value: i.getNumberFormat(t).format(o)
|
|
3247
3277
|
});
|
|
3248
3278
|
continue;
|
|
3249
3279
|
}
|
|
3250
|
-
var h =
|
|
3280
|
+
var h = u.value;
|
|
3251
3281
|
if (!(n && h in n))
|
|
3252
|
-
throw new
|
|
3282
|
+
throw new jn(h, s);
|
|
3253
3283
|
var f = n[h];
|
|
3254
|
-
if (
|
|
3284
|
+
if (un(u)) {
|
|
3255
3285
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3256
3286
|
type: typeof f == "string" ? z.literal : z.object,
|
|
3257
3287
|
value: f
|
|
3258
3288
|
});
|
|
3259
3289
|
continue;
|
|
3260
3290
|
}
|
|
3261
|
-
if (
|
|
3262
|
-
var m = typeof
|
|
3291
|
+
if (_i(u)) {
|
|
3292
|
+
var m = typeof u.style == "string" ? r.date[u.style] : ot(u.style) ? u.style.parsedOptions : void 0;
|
|
3263
3293
|
a.push({
|
|
3264
3294
|
type: z.literal,
|
|
3265
3295
|
value: i.getDateTimeFormat(t, m).format(f)
|
|
3266
3296
|
});
|
|
3267
3297
|
continue;
|
|
3268
3298
|
}
|
|
3269
|
-
if (
|
|
3270
|
-
var m = typeof
|
|
3299
|
+
if (Ei(u)) {
|
|
3300
|
+
var m = typeof u.style == "string" ? r.time[u.style] : ot(u.style) ? u.style.parsedOptions : r.time.medium;
|
|
3271
3301
|
a.push({
|
|
3272
3302
|
type: z.literal,
|
|
3273
3303
|
value: i.getDateTimeFormat(t, m).format(f)
|
|
3274
3304
|
});
|
|
3275
3305
|
continue;
|
|
3276
3306
|
}
|
|
3277
|
-
if (
|
|
3278
|
-
var m = typeof
|
|
3307
|
+
if (vi(u)) {
|
|
3308
|
+
var m = typeof u.style == "string" ? r.number[u.style] : wi(u.style) ? u.style.parsedOptions : void 0;
|
|
3279
3309
|
m && m.scale && (f = f * (m.scale || 1)), a.push({
|
|
3280
3310
|
type: z.literal,
|
|
3281
3311
|
value: i.getNumberFormat(t, m).format(f)
|
|
3282
3312
|
});
|
|
3283
3313
|
continue;
|
|
3284
3314
|
}
|
|
3285
|
-
if (
|
|
3286
|
-
var p =
|
|
3287
|
-
if (
|
|
3288
|
-
throw new
|
|
3289
|
-
var P =
|
|
3290
|
-
return
|
|
3315
|
+
if (Ti(u)) {
|
|
3316
|
+
var p = u.children, _ = u.value, R = n[_];
|
|
3317
|
+
if (!$n(R))
|
|
3318
|
+
throw new Un(_, "function", s);
|
|
3319
|
+
var P = Be(p, t, i, r, n, o), L = R(P.map(function(B) {
|
|
3320
|
+
return B.value;
|
|
3291
3321
|
}));
|
|
3292
|
-
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(
|
|
3322
|
+
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(B) {
|
|
3293
3323
|
return {
|
|
3294
|
-
type: typeof
|
|
3295
|
-
value:
|
|
3324
|
+
type: typeof B == "string" ? z.literal : z.object,
|
|
3325
|
+
value: B
|
|
3296
3326
|
};
|
|
3297
3327
|
}));
|
|
3298
3328
|
}
|
|
3299
|
-
if (
|
|
3300
|
-
var w =
|
|
3329
|
+
if (Li(u)) {
|
|
3330
|
+
var w = u.options[f] || u.options.other;
|
|
3301
3331
|
if (!w)
|
|
3302
|
-
throw new
|
|
3303
|
-
a.push.apply(a,
|
|
3332
|
+
throw new Ut(u.value, f, Object.keys(u.options), s);
|
|
3333
|
+
a.push.apply(a, Be(w.value, t, i, r, n));
|
|
3304
3334
|
continue;
|
|
3305
3335
|
}
|
|
3306
|
-
if (
|
|
3307
|
-
var w =
|
|
3336
|
+
if (xi(u)) {
|
|
3337
|
+
var w = u.options["=".concat(f)];
|
|
3308
3338
|
if (!w) {
|
|
3309
3339
|
if (!Intl.PluralRules)
|
|
3310
3340
|
throw new Re(`Intl.PluralRules is not available in this environment.
|
|
3311
3341
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3312
3342
|
`, he.MISSING_INTL_API, s);
|
|
3313
|
-
var H = i.getPluralRules(t, { type:
|
|
3314
|
-
w =
|
|
3343
|
+
var H = i.getPluralRules(t, { type: u.pluralType }).select(f - (u.offset || 0));
|
|
3344
|
+
w = u.options[H] || u.options.other;
|
|
3315
3345
|
}
|
|
3316
3346
|
if (!w)
|
|
3317
|
-
throw new
|
|
3318
|
-
a.push.apply(a,
|
|
3347
|
+
throw new Ut(u.value, f, Object.keys(u.options), s);
|
|
3348
|
+
a.push.apply(a, Be(w.value, t, i, r, n, f - (u.offset || 0)));
|
|
3319
3349
|
continue;
|
|
3320
3350
|
}
|
|
3321
3351
|
}
|
|
3322
|
-
return
|
|
3352
|
+
return Fn(a);
|
|
3323
3353
|
}
|
|
3324
|
-
function
|
|
3354
|
+
function Gn(e, t) {
|
|
3325
3355
|
return t ? S(S(S({}, e || {}), t || {}), Object.keys(e).reduce(function(i, r) {
|
|
3326
3356
|
return i[r] = S(S({}, e[r]), t[r] || {}), i;
|
|
3327
3357
|
}, {})) : e;
|
|
3328
3358
|
}
|
|
3329
|
-
function
|
|
3359
|
+
function zn(e, t) {
|
|
3330
3360
|
return t ? Object.keys(e).reduce(function(i, r) {
|
|
3331
|
-
return i[r] =
|
|
3361
|
+
return i[r] = Gn(e[r], t[r]), i;
|
|
3332
3362
|
}, S({}, e)) : e;
|
|
3333
3363
|
}
|
|
3334
3364
|
function Je(e) {
|
|
@@ -3345,7 +3375,7 @@ function Je(e) {
|
|
|
3345
3375
|
}
|
|
3346
3376
|
};
|
|
3347
3377
|
}
|
|
3348
|
-
function
|
|
3378
|
+
function Wn(e) {
|
|
3349
3379
|
return e === void 0 && (e = {
|
|
3350
3380
|
number: {},
|
|
3351
3381
|
dateTime: {},
|
|
@@ -3354,7 +3384,7 @@ function Fn(e) {
|
|
|
3354
3384
|
getNumberFormat: Ze(function() {
|
|
3355
3385
|
for (var t, i = [], r = 0; r < arguments.length; r++)
|
|
3356
3386
|
i[r] = arguments[r];
|
|
3357
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3387
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, le([void 0], i, !1)))();
|
|
3358
3388
|
}, {
|
|
3359
3389
|
cache: Je(e.number),
|
|
3360
3390
|
strategy: Ye.variadic
|
|
@@ -3362,7 +3392,7 @@ function Fn(e) {
|
|
|
3362
3392
|
getDateTimeFormat: Ze(function() {
|
|
3363
3393
|
for (var t, i = [], r = 0; r < arguments.length; r++)
|
|
3364
3394
|
i[r] = arguments[r];
|
|
3365
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3395
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, le([void 0], i, !1)))();
|
|
3366
3396
|
}, {
|
|
3367
3397
|
cache: Je(e.dateTime),
|
|
3368
3398
|
strategy: Ye.variadic
|
|
@@ -3370,14 +3400,14 @@ function Fn(e) {
|
|
|
3370
3400
|
getPluralRules: Ze(function() {
|
|
3371
3401
|
for (var t, i = [], r = 0; r < arguments.length; r++)
|
|
3372
3402
|
i[r] = arguments[r];
|
|
3373
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3403
|
+
return new ((t = Intl.PluralRules).bind.apply(t, le([void 0], i, !1)))();
|
|
3374
3404
|
}, {
|
|
3375
3405
|
cache: Je(e.pluralRules),
|
|
3376
3406
|
strategy: Ye.variadic
|
|
3377
3407
|
})
|
|
3378
3408
|
};
|
|
3379
3409
|
}
|
|
3380
|
-
var
|
|
3410
|
+
var Vn = (
|
|
3381
3411
|
/** @class */
|
|
3382
3412
|
function() {
|
|
3383
3413
|
function e(t, i, r, n) {
|
|
@@ -3388,15 +3418,15 @@ var Gn = (
|
|
|
3388
3418
|
dateTime: {},
|
|
3389
3419
|
pluralRules: {}
|
|
3390
3420
|
}, this.format = function(c) {
|
|
3391
|
-
var
|
|
3392
|
-
if (
|
|
3393
|
-
return
|
|
3394
|
-
var
|
|
3421
|
+
var l = o.formatToParts(c);
|
|
3422
|
+
if (l.length === 1)
|
|
3423
|
+
return l[0].value;
|
|
3424
|
+
var u = l.reduce(function(h, f) {
|
|
3395
3425
|
return !h.length || f.type !== z.literal || typeof h[h.length - 1] != "string" ? h.push(f.value) : h[h.length - 1] += f.value, h;
|
|
3396
3426
|
}, []);
|
|
3397
|
-
return
|
|
3427
|
+
return u.length <= 1 ? u[0] || "" : u;
|
|
3398
3428
|
}, this.formatToParts = function(c) {
|
|
3399
|
-
return
|
|
3429
|
+
return Be(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
|
|
3400
3430
|
}, this.resolvedOptions = function() {
|
|
3401
3431
|
var c;
|
|
3402
3432
|
return {
|
|
@@ -3409,13 +3439,13 @@ var Gn = (
|
|
|
3409
3439
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3410
3440
|
var s = n || {};
|
|
3411
3441
|
s.formatters;
|
|
3412
|
-
var a =
|
|
3442
|
+
var a = tn(s, ["formatters"]);
|
|
3413
3443
|
this.ast = e.__parse(t, S(S({}, a), { locale: this.resolvedLocale }));
|
|
3414
3444
|
} else
|
|
3415
3445
|
this.ast = t;
|
|
3416
3446
|
if (!Array.isArray(this.ast))
|
|
3417
3447
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3418
|
-
this.formats =
|
|
3448
|
+
this.formats = zn(e.formats, r), this.formatters = n && n.formatters || Wn(this.formatterCache);
|
|
3419
3449
|
}
|
|
3420
3450
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3421
3451
|
get: function() {
|
|
@@ -3428,7 +3458,7 @@ var Gn = (
|
|
|
3428
3458
|
var i = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3429
3459
|
return i.length > 0 ? new Intl.Locale(i[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3430
3460
|
}
|
|
3431
|
-
}, e.__parse =
|
|
3461
|
+
}, e.__parse = Rn, e.formats = {
|
|
3432
3462
|
number: {
|
|
3433
3463
|
integer: {
|
|
3434
3464
|
maximumFractionDigits: 0
|
|
@@ -3489,7 +3519,7 @@ var Gn = (
|
|
|
3489
3519
|
}, e;
|
|
3490
3520
|
}()
|
|
3491
3521
|
);
|
|
3492
|
-
function
|
|
3522
|
+
function Xn(e, t) {
|
|
3493
3523
|
if (t == null)
|
|
3494
3524
|
return;
|
|
3495
3525
|
if (t in e)
|
|
@@ -3510,92 +3540,92 @@ function zn(e, t) {
|
|
|
3510
3540
|
r = void 0;
|
|
3511
3541
|
return r;
|
|
3512
3542
|
}
|
|
3513
|
-
const ee = {},
|
|
3543
|
+
const ee = {}, Zn = (e, t, i) => i && (t in ee || (ee[t] = {}), e in ee[t] || (ee[t][e] = i), i), Oi = (e, t) => {
|
|
3514
3544
|
if (t == null)
|
|
3515
3545
|
return;
|
|
3516
3546
|
if (t in ee && e in ee[t])
|
|
3517
3547
|
return ee[t][e];
|
|
3518
3548
|
const i = Ue(t);
|
|
3519
3549
|
for (let r = 0; r < i.length; r++) {
|
|
3520
|
-
const n = i[r], o =
|
|
3550
|
+
const n = i[r], o = qn(n, e);
|
|
3521
3551
|
if (o)
|
|
3522
|
-
return
|
|
3552
|
+
return Zn(e, t, o);
|
|
3523
3553
|
}
|
|
3524
3554
|
};
|
|
3525
|
-
let
|
|
3555
|
+
let yt;
|
|
3526
3556
|
const Te = De({});
|
|
3527
|
-
function
|
|
3528
|
-
return
|
|
3557
|
+
function Yn(e) {
|
|
3558
|
+
return yt[e] || null;
|
|
3529
3559
|
}
|
|
3530
|
-
function
|
|
3531
|
-
return e in
|
|
3560
|
+
function Mi(e) {
|
|
3561
|
+
return e in yt;
|
|
3532
3562
|
}
|
|
3533
|
-
function
|
|
3534
|
-
if (!
|
|
3563
|
+
function qn(e, t) {
|
|
3564
|
+
if (!Mi(e))
|
|
3535
3565
|
return null;
|
|
3536
|
-
const i =
|
|
3537
|
-
return
|
|
3566
|
+
const i = Yn(e);
|
|
3567
|
+
return Xn(i, t);
|
|
3538
3568
|
}
|
|
3539
|
-
function
|
|
3569
|
+
function Jn(e) {
|
|
3540
3570
|
if (e == null)
|
|
3541
3571
|
return;
|
|
3542
3572
|
const t = Ue(e);
|
|
3543
3573
|
for (let i = 0; i < t.length; i++) {
|
|
3544
3574
|
const r = t[i];
|
|
3545
|
-
if (
|
|
3575
|
+
if (Mi(r))
|
|
3546
3576
|
return r;
|
|
3547
3577
|
}
|
|
3548
3578
|
}
|
|
3549
|
-
function
|
|
3550
|
-
delete ee[e], Te.update((i) => (i[e] =
|
|
3579
|
+
function Ci(e, ...t) {
|
|
3580
|
+
delete ee[e], Te.update((i) => (i[e] = en.all([i[e] || {}, ...t]), i));
|
|
3551
3581
|
}
|
|
3552
3582
|
fe(
|
|
3553
3583
|
[Te],
|
|
3554
3584
|
([e]) => Object.keys(e)
|
|
3555
3585
|
);
|
|
3556
|
-
Te.subscribe((e) =>
|
|
3557
|
-
const
|
|
3558
|
-
function
|
|
3559
|
-
|
|
3586
|
+
Te.subscribe((e) => yt = e);
|
|
3587
|
+
const Ne = {};
|
|
3588
|
+
function Qn(e, t) {
|
|
3589
|
+
Ne[e].delete(t), Ne[e].size === 0 && delete Ne[e];
|
|
3560
3590
|
}
|
|
3561
|
-
function
|
|
3562
|
-
return
|
|
3591
|
+
function ki(e) {
|
|
3592
|
+
return Ne[e];
|
|
3563
3593
|
}
|
|
3564
|
-
function
|
|
3594
|
+
function Kn(e) {
|
|
3565
3595
|
return Ue(e).map((t) => {
|
|
3566
|
-
const i =
|
|
3596
|
+
const i = ki(t);
|
|
3567
3597
|
return [t, i ? [...i] : []];
|
|
3568
3598
|
}).filter(([, t]) => t.length > 0);
|
|
3569
3599
|
}
|
|
3570
|
-
function
|
|
3600
|
+
function ht(e) {
|
|
3571
3601
|
return e == null ? !1 : Ue(e).some(
|
|
3572
3602
|
(t) => {
|
|
3573
3603
|
var i;
|
|
3574
|
-
return (i =
|
|
3604
|
+
return (i = ki(t)) == null ? void 0 : i.size;
|
|
3575
3605
|
}
|
|
3576
3606
|
);
|
|
3577
3607
|
}
|
|
3578
|
-
function
|
|
3608
|
+
function eo(e, t) {
|
|
3579
3609
|
return Promise.all(
|
|
3580
|
-
t.map((r) => (
|
|
3581
|
-
).then((r) =>
|
|
3610
|
+
t.map((r) => (Qn(e, r), r().then((n) => n.default || n)))
|
|
3611
|
+
).then((r) => Ci(e, ...r));
|
|
3582
3612
|
}
|
|
3583
3613
|
const ge = {};
|
|
3584
|
-
function
|
|
3585
|
-
if (!
|
|
3614
|
+
function Di(e) {
|
|
3615
|
+
if (!ht(e))
|
|
3586
3616
|
return e in ge ? ge[e] : Promise.resolve();
|
|
3587
|
-
const t =
|
|
3617
|
+
const t = Kn(e);
|
|
3588
3618
|
return ge[e] = Promise.all(
|
|
3589
3619
|
t.map(
|
|
3590
|
-
([i, r]) =>
|
|
3620
|
+
([i, r]) => eo(i, r)
|
|
3591
3621
|
)
|
|
3592
3622
|
).then(() => {
|
|
3593
|
-
if (
|
|
3594
|
-
return
|
|
3623
|
+
if (ht(e))
|
|
3624
|
+
return Di(e);
|
|
3595
3625
|
delete ge[e];
|
|
3596
3626
|
}), ge[e];
|
|
3597
3627
|
}
|
|
3598
|
-
const
|
|
3628
|
+
const to = {
|
|
3599
3629
|
number: {
|
|
3600
3630
|
scientific: { notation: "scientific" },
|
|
3601
3631
|
engineering: { notation: "engineering" },
|
|
@@ -3624,57 +3654,57 @@ const Qn = {
|
|
|
3624
3654
|
timeZoneName: "short"
|
|
3625
3655
|
}
|
|
3626
3656
|
}
|
|
3627
|
-
},
|
|
3657
|
+
}, io = {
|
|
3628
3658
|
fallbackLocale: null,
|
|
3629
3659
|
loadingDelay: 200,
|
|
3630
|
-
formats:
|
|
3660
|
+
formats: to,
|
|
3631
3661
|
warnOnMissingMessages: !0,
|
|
3632
3662
|
handleMissingMessage: void 0,
|
|
3633
3663
|
ignoreTag: !0
|
|
3634
|
-
},
|
|
3664
|
+
}, ro = io;
|
|
3635
3665
|
function me() {
|
|
3636
|
-
return
|
|
3666
|
+
return ro;
|
|
3637
3667
|
}
|
|
3638
3668
|
const Qe = De(!1);
|
|
3639
|
-
var
|
|
3669
|
+
var no = Object.defineProperty, oo = Object.defineProperties, so = Object.getOwnPropertyDescriptors, jt = Object.getOwnPropertySymbols, ao = Object.prototype.hasOwnProperty, lo = Object.prototype.propertyIsEnumerable, Ft = (e, t, i) => t in e ? no(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, uo = (e, t) => {
|
|
3640
3670
|
for (var i in t || (t = {}))
|
|
3641
|
-
|
|
3642
|
-
if (
|
|
3643
|
-
for (var i of
|
|
3644
|
-
|
|
3671
|
+
ao.call(t, i) && Ft(e, i, t[i]);
|
|
3672
|
+
if (jt)
|
|
3673
|
+
for (var i of jt(t))
|
|
3674
|
+
lo.call(t, i) && Ft(e, i, t[i]);
|
|
3645
3675
|
return e;
|
|
3646
|
-
},
|
|
3647
|
-
let
|
|
3676
|
+
}, co = (e, t) => oo(e, so(t));
|
|
3677
|
+
let mt;
|
|
3648
3678
|
const Me = De(null);
|
|
3649
|
-
function
|
|
3679
|
+
function $t(e) {
|
|
3650
3680
|
return e.split("-").map((t, i, r) => r.slice(0, i + 1).join("-")).reverse();
|
|
3651
3681
|
}
|
|
3652
3682
|
function Ue(e, t = me().fallbackLocale) {
|
|
3653
|
-
const i =
|
|
3654
|
-
return t ? [.../* @__PURE__ */ new Set([...i,
|
|
3683
|
+
const i = $t(e);
|
|
3684
|
+
return t ? [.../* @__PURE__ */ new Set([...i, ...$t(t)])] : i;
|
|
3655
3685
|
}
|
|
3656
3686
|
function re() {
|
|
3657
|
-
return
|
|
3687
|
+
return mt != null ? mt : void 0;
|
|
3658
3688
|
}
|
|
3659
3689
|
Me.subscribe((e) => {
|
|
3660
|
-
|
|
3690
|
+
mt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3661
3691
|
});
|
|
3662
|
-
const
|
|
3663
|
-
if (e &&
|
|
3692
|
+
const ho = (e) => {
|
|
3693
|
+
if (e && Jn(e) && ht(e)) {
|
|
3664
3694
|
const { loadingDelay: t } = me();
|
|
3665
3695
|
let i;
|
|
3666
3696
|
return typeof window != "undefined" && re() != null && t ? i = window.setTimeout(
|
|
3667
3697
|
() => Qe.set(!0),
|
|
3668
3698
|
t
|
|
3669
|
-
) : Qe.set(!0),
|
|
3699
|
+
) : Qe.set(!0), Di(e).then(() => {
|
|
3670
3700
|
Me.set(e);
|
|
3671
3701
|
}).finally(() => {
|
|
3672
3702
|
clearTimeout(i), Qe.set(!1);
|
|
3673
3703
|
});
|
|
3674
3704
|
}
|
|
3675
3705
|
return Me.set(e);
|
|
3676
|
-
}, pe =
|
|
3677
|
-
set:
|
|
3706
|
+
}, pe = co(uo({}, Me), {
|
|
3707
|
+
set: ho
|
|
3678
3708
|
}), je = (e) => {
|
|
3679
3709
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3680
3710
|
return (r) => {
|
|
@@ -3682,20 +3712,20 @@ const uo = (e) => {
|
|
|
3682
3712
|
return n in t ? t[n] : t[n] = e(r);
|
|
3683
3713
|
};
|
|
3684
3714
|
};
|
|
3685
|
-
var
|
|
3715
|
+
var mo = Object.defineProperty, Ce = Object.getOwnPropertySymbols, Ri = Object.prototype.hasOwnProperty, Ui = Object.prototype.propertyIsEnumerable, Gt = (e, t, i) => t in e ? mo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, vt = (e, t) => {
|
|
3686
3716
|
for (var i in t || (t = {}))
|
|
3687
|
-
|
|
3717
|
+
Ri.call(t, i) && Gt(e, i, t[i]);
|
|
3688
3718
|
if (Ce)
|
|
3689
3719
|
for (var i of Ce(t))
|
|
3690
|
-
|
|
3720
|
+
Ui.call(t, i) && Gt(e, i, t[i]);
|
|
3691
3721
|
return e;
|
|
3692
3722
|
}, de = (e, t) => {
|
|
3693
3723
|
var i = {};
|
|
3694
3724
|
for (var r in e)
|
|
3695
|
-
|
|
3725
|
+
Ri.call(e, r) && t.indexOf(r) < 0 && (i[r] = e[r]);
|
|
3696
3726
|
if (e != null && Ce)
|
|
3697
3727
|
for (var r of Ce(e))
|
|
3698
|
-
t.indexOf(r) < 0 &&
|
|
3728
|
+
t.indexOf(r) < 0 && Ui.call(e, r) && (i[r] = e[r]);
|
|
3699
3729
|
return i;
|
|
3700
3730
|
};
|
|
3701
3731
|
const xe = (e, t) => {
|
|
@@ -3703,21 +3733,21 @@ const xe = (e, t) => {
|
|
|
3703
3733
|
if (e in i && t in i[e])
|
|
3704
3734
|
return i[e][t];
|
|
3705
3735
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3706
|
-
},
|
|
3736
|
+
}, fo = je(
|
|
3707
3737
|
(e) => {
|
|
3708
3738
|
var t = e, { locale: i, format: r } = t, n = de(t, ["locale", "format"]);
|
|
3709
3739
|
if (i == null)
|
|
3710
3740
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3711
3741
|
return r && (n = xe("number", r)), new Intl.NumberFormat(i, n);
|
|
3712
3742
|
}
|
|
3713
|
-
),
|
|
3743
|
+
), po = je(
|
|
3714
3744
|
(e) => {
|
|
3715
3745
|
var t = e, { locale: i, format: r } = t, n = de(t, ["locale", "format"]);
|
|
3716
3746
|
if (i == null)
|
|
3717
3747
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3718
3748
|
return r ? n = xe("date", r) : Object.keys(n).length === 0 && (n = xe("date", "short")), new Intl.DateTimeFormat(i, n);
|
|
3719
3749
|
}
|
|
3720
|
-
),
|
|
3750
|
+
), bo = je(
|
|
3721
3751
|
(e) => {
|
|
3722
3752
|
var t = e, { locale: i, format: r } = t, n = de(t, ["locale", "format"]);
|
|
3723
3753
|
if (i == null)
|
|
@@ -3726,57 +3756,57 @@ const xe = (e, t) => {
|
|
|
3726
3756
|
);
|
|
3727
3757
|
return r ? n = xe("time", r) : Object.keys(n).length === 0 && (n = xe("time", "short")), new Intl.DateTimeFormat(i, n);
|
|
3728
3758
|
}
|
|
3729
|
-
),
|
|
3759
|
+
), go = (e = {}) => {
|
|
3730
3760
|
var t = e, {
|
|
3731
3761
|
locale: i = re()
|
|
3732
3762
|
} = t, r = de(t, [
|
|
3733
3763
|
"locale"
|
|
3734
3764
|
]);
|
|
3735
|
-
return
|
|
3736
|
-
},
|
|
3765
|
+
return fo(vt({ locale: i }, r));
|
|
3766
|
+
}, yo = (e = {}) => {
|
|
3737
3767
|
var t = e, {
|
|
3738
3768
|
locale: i = re()
|
|
3739
3769
|
} = t, r = de(t, [
|
|
3740
3770
|
"locale"
|
|
3741
3771
|
]);
|
|
3742
|
-
return
|
|
3743
|
-
},
|
|
3772
|
+
return po(vt({ locale: i }, r));
|
|
3773
|
+
}, vo = (e = {}) => {
|
|
3744
3774
|
var t = e, {
|
|
3745
3775
|
locale: i = re()
|
|
3746
3776
|
} = t, r = de(t, [
|
|
3747
3777
|
"locale"
|
|
3748
3778
|
]);
|
|
3749
|
-
return
|
|
3750
|
-
},
|
|
3779
|
+
return bo(vt({ locale: i }, r));
|
|
3780
|
+
}, _o = je(
|
|
3751
3781
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3752
|
-
(e, t = re()) => new
|
|
3782
|
+
(e, t = re()) => new Vn(e, t, me().formats, {
|
|
3753
3783
|
ignoreTag: me().ignoreTag
|
|
3754
3784
|
})
|
|
3755
|
-
),
|
|
3785
|
+
), Eo = (e, t = {}) => {
|
|
3756
3786
|
var i, r, n, o;
|
|
3757
3787
|
let s = t;
|
|
3758
3788
|
typeof e == "object" && (s = e, e = s.id);
|
|
3759
3789
|
const {
|
|
3760
3790
|
values: a,
|
|
3761
3791
|
locale: c = re(),
|
|
3762
|
-
default:
|
|
3792
|
+
default: l
|
|
3763
3793
|
} = s;
|
|
3764
3794
|
if (c == null)
|
|
3765
3795
|
throw new Error(
|
|
3766
3796
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3767
3797
|
);
|
|
3768
|
-
let
|
|
3769
|
-
if (!
|
|
3770
|
-
|
|
3771
|
-
else if (typeof
|
|
3798
|
+
let u = Oi(e, c);
|
|
3799
|
+
if (!u)
|
|
3800
|
+
u = (o = (n = (r = (i = me()).handleMissingMessage) == null ? void 0 : r.call(i, { locale: c, id: e, defaultValue: l })) != null ? n : l) != null ? o : e;
|
|
3801
|
+
else if (typeof u != "string")
|
|
3772
3802
|
return console.warn(
|
|
3773
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3774
|
-
),
|
|
3803
|
+
`[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.`
|
|
3804
|
+
), u;
|
|
3775
3805
|
if (!a)
|
|
3776
|
-
return
|
|
3777
|
-
let h =
|
|
3806
|
+
return u;
|
|
3807
|
+
let h = u;
|
|
3778
3808
|
try {
|
|
3779
|
-
h =
|
|
3809
|
+
h = _o(u, c).format(a);
|
|
3780
3810
|
} catch (f) {
|
|
3781
3811
|
f instanceof Error && console.warn(
|
|
3782
3812
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3784,18 +3814,18 @@ const xe = (e, t) => {
|
|
|
3784
3814
|
);
|
|
3785
3815
|
}
|
|
3786
3816
|
return h;
|
|
3787
|
-
},
|
|
3788
|
-
fe([pe], () =>
|
|
3789
|
-
fe([pe], () =>
|
|
3790
|
-
fe([pe], () =>
|
|
3791
|
-
fe([pe, Te], () =>
|
|
3792
|
-
function
|
|
3793
|
-
|
|
3794
|
-
}
|
|
3795
|
-
function
|
|
3817
|
+
}, Lo = (e, t) => vo(t).format(e), xo = (e, t) => yo(t).format(e), To = (e, t) => go(t).format(e), wo = (e, t = re()) => Oi(e, t), So = fe([pe, Te], () => Eo);
|
|
3818
|
+
fe([pe], () => Lo);
|
|
3819
|
+
fe([pe], () => xo);
|
|
3820
|
+
fe([pe], () => To);
|
|
3821
|
+
fe([pe, Te], () => wo);
|
|
3822
|
+
function zt(e, t) {
|
|
3823
|
+
Ci(e, t);
|
|
3824
|
+
}
|
|
3825
|
+
function Po(e) {
|
|
3796
3826
|
pe.set(e);
|
|
3797
3827
|
}
|
|
3798
|
-
const
|
|
3828
|
+
const Wt = {
|
|
3799
3829
|
en: {
|
|
3800
3830
|
loadingText: "Loading, please wait...",
|
|
3801
3831
|
Monthly: "per month",
|
|
@@ -4251,13 +4281,13 @@ const Ft = {
|
|
|
4251
4281
|
function J(e) {
|
|
4252
4282
|
return typeof e == "function";
|
|
4253
4283
|
}
|
|
4254
|
-
function
|
|
4284
|
+
function ji(e) {
|
|
4255
4285
|
var t = function(r) {
|
|
4256
4286
|
Error.call(r), r.stack = new Error().stack;
|
|
4257
4287
|
}, i = e(t);
|
|
4258
4288
|
return i.prototype = Object.create(Error.prototype), i.prototype.constructor = i, i;
|
|
4259
4289
|
}
|
|
4260
|
-
var Ke =
|
|
4290
|
+
var Ke = ji(function(e) {
|
|
4261
4291
|
return function(i) {
|
|
4262
4292
|
e(this), this.message = i ? i.length + ` errors occurred during unsubscription:
|
|
4263
4293
|
` + i.map(function(r, n) {
|
|
@@ -4266,13 +4296,13 @@ var Ke = Di(function(e) {
|
|
|
4266
4296
|
`) : "", this.name = "UnsubscriptionError", this.errors = i;
|
|
4267
4297
|
};
|
|
4268
4298
|
});
|
|
4269
|
-
function
|
|
4299
|
+
function ft(e, t) {
|
|
4270
4300
|
if (e) {
|
|
4271
4301
|
var i = e.indexOf(t);
|
|
4272
4302
|
0 <= i && e.splice(i, 1);
|
|
4273
4303
|
}
|
|
4274
4304
|
}
|
|
4275
|
-
var
|
|
4305
|
+
var Fe = function() {
|
|
4276
4306
|
function e(t) {
|
|
4277
4307
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
4278
4308
|
}
|
|
@@ -4284,9 +4314,9 @@ var $e = function() {
|
|
|
4284
4314
|
if (s)
|
|
4285
4315
|
if (this._parentage = null, Array.isArray(s))
|
|
4286
4316
|
try {
|
|
4287
|
-
for (var a =
|
|
4288
|
-
var
|
|
4289
|
-
|
|
4317
|
+
for (var a = rt(s), c = a.next(); !c.done; c = a.next()) {
|
|
4318
|
+
var l = c.value;
|
|
4319
|
+
l.remove(this);
|
|
4290
4320
|
}
|
|
4291
4321
|
} catch (_) {
|
|
4292
4322
|
t = { error: _ };
|
|
@@ -4294,15 +4324,16 @@ var $e = function() {
|
|
|
4294
4324
|
try {
|
|
4295
4325
|
c && !c.done && (i = a.return) && i.call(a);
|
|
4296
4326
|
} finally {
|
|
4297
|
-
if (t)
|
|
4327
|
+
if (t)
|
|
4328
|
+
throw t.error;
|
|
4298
4329
|
}
|
|
4299
4330
|
}
|
|
4300
4331
|
else
|
|
4301
4332
|
s.remove(this);
|
|
4302
|
-
var
|
|
4303
|
-
if (J(
|
|
4333
|
+
var u = this.initialTeardown;
|
|
4334
|
+
if (J(u))
|
|
4304
4335
|
try {
|
|
4305
|
-
|
|
4336
|
+
u();
|
|
4306
4337
|
} catch (_) {
|
|
4307
4338
|
o = _ instanceof Ke ? _.errors : [_];
|
|
4308
4339
|
}
|
|
@@ -4310,12 +4341,12 @@ var $e = function() {
|
|
|
4310
4341
|
if (h) {
|
|
4311
4342
|
this._finalizers = null;
|
|
4312
4343
|
try {
|
|
4313
|
-
for (var f =
|
|
4344
|
+
for (var f = rt(h), m = f.next(); !m.done; m = f.next()) {
|
|
4314
4345
|
var p = m.value;
|
|
4315
4346
|
try {
|
|
4316
|
-
|
|
4347
|
+
Vt(p);
|
|
4317
4348
|
} catch (_) {
|
|
4318
|
-
o = o != null ? o : [], _ instanceof Ke ? o =
|
|
4349
|
+
o = o != null ? o : [], _ instanceof Ke ? o = le(le([], nt(o)), nt(_.errors)) : o.push(_);
|
|
4319
4350
|
}
|
|
4320
4351
|
}
|
|
4321
4352
|
} catch (_) {
|
|
@@ -4324,7 +4355,8 @@ var $e = function() {
|
|
|
4324
4355
|
try {
|
|
4325
4356
|
m && !m.done && (n = f.return) && n.call(f);
|
|
4326
4357
|
} finally {
|
|
4327
|
-
if (r)
|
|
4358
|
+
if (r)
|
|
4359
|
+
throw r.error;
|
|
4328
4360
|
}
|
|
4329
4361
|
}
|
|
4330
4362
|
}
|
|
@@ -4335,7 +4367,7 @@ var $e = function() {
|
|
|
4335
4367
|
var i;
|
|
4336
4368
|
if (t && t !== this)
|
|
4337
4369
|
if (this.closed)
|
|
4338
|
-
|
|
4370
|
+
Vt(t);
|
|
4339
4371
|
else {
|
|
4340
4372
|
if (t instanceof e) {
|
|
4341
4373
|
if (t.closed || t._hasParent(this))
|
|
@@ -4352,52 +4384,56 @@ var $e = function() {
|
|
|
4352
4384
|
this._parentage = Array.isArray(i) ? (i.push(t), i) : i ? [i, t] : t;
|
|
4353
4385
|
}, e.prototype._removeParent = function(t) {
|
|
4354
4386
|
var i = this._parentage;
|
|
4355
|
-
i === t ? this._parentage = null : Array.isArray(i) &&
|
|
4387
|
+
i === t ? this._parentage = null : Array.isArray(i) && ft(i, t);
|
|
4356
4388
|
}, e.prototype.remove = function(t) {
|
|
4357
4389
|
var i = this._finalizers;
|
|
4358
|
-
i &&
|
|
4390
|
+
i && ft(i, t), t instanceof e && t._removeParent(this);
|
|
4359
4391
|
}, e.EMPTY = function() {
|
|
4360
4392
|
var t = new e();
|
|
4361
4393
|
return t.closed = !0, t;
|
|
4362
4394
|
}(), e;
|
|
4363
|
-
}(),
|
|
4364
|
-
function
|
|
4365
|
-
return e instanceof
|
|
4395
|
+
}(), Fi = Fe.EMPTY;
|
|
4396
|
+
function $i(e) {
|
|
4397
|
+
return e instanceof Fe || e && "closed" in e && J(e.remove) && J(e.add) && J(e.unsubscribe);
|
|
4366
4398
|
}
|
|
4367
|
-
function
|
|
4399
|
+
function Vt(e) {
|
|
4368
4400
|
J(e) ? e() : e.unsubscribe();
|
|
4369
4401
|
}
|
|
4370
|
-
var
|
|
4371
|
-
|
|
4372
|
-
|
|
4402
|
+
var Gi = {
|
|
4403
|
+
onUnhandledError: null,
|
|
4404
|
+
onStoppedNotification: null,
|
|
4405
|
+
Promise: void 0,
|
|
4406
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
4407
|
+
useDeprecatedNextContext: !1
|
|
4408
|
+
}, Ao = {
|
|
4373
4409
|
setTimeout: function(e, t) {
|
|
4374
4410
|
for (var i = [], r = 2; r < arguments.length; r++)
|
|
4375
4411
|
i[r - 2] = arguments[r];
|
|
4376
|
-
return setTimeout.apply(void 0,
|
|
4412
|
+
return setTimeout.apply(void 0, le([e, t], nt(i)));
|
|
4377
4413
|
},
|
|
4378
4414
|
clearTimeout: function(e) {
|
|
4379
4415
|
return clearTimeout(e);
|
|
4380
4416
|
},
|
|
4381
4417
|
delegate: void 0
|
|
4382
4418
|
};
|
|
4383
|
-
function
|
|
4384
|
-
|
|
4419
|
+
function Bo(e) {
|
|
4420
|
+
Ao.setTimeout(function() {
|
|
4385
4421
|
throw e;
|
|
4386
4422
|
});
|
|
4387
4423
|
}
|
|
4388
|
-
function
|
|
4424
|
+
function Xt() {
|
|
4389
4425
|
}
|
|
4390
4426
|
function Ie(e) {
|
|
4391
4427
|
e();
|
|
4392
4428
|
}
|
|
4393
|
-
var
|
|
4429
|
+
var zi = function(e) {
|
|
4394
4430
|
Q(t, e);
|
|
4395
4431
|
function t(i) {
|
|
4396
4432
|
var r = e.call(this) || this;
|
|
4397
|
-
return r.isStopped = !1, i ? (r.destination = i,
|
|
4433
|
+
return r.isStopped = !1, i ? (r.destination = i, $i(i) && i.add(r)) : r.destination = Oo, r;
|
|
4398
4434
|
}
|
|
4399
4435
|
return t.create = function(i, r, n) {
|
|
4400
|
-
return new
|
|
4436
|
+
return new pt(i, r, n);
|
|
4401
4437
|
}, t.prototype.next = function(i) {
|
|
4402
4438
|
this.isStopped || this._next(i);
|
|
4403
4439
|
}, t.prototype.error = function(i) {
|
|
@@ -4421,7 +4457,11 @@ var ji = function(e) {
|
|
|
4421
4457
|
this.unsubscribe();
|
|
4422
4458
|
}
|
|
4423
4459
|
}, t;
|
|
4424
|
-
}(
|
|
4460
|
+
}(Fe), No = Function.prototype.bind;
|
|
4461
|
+
function et(e, t) {
|
|
4462
|
+
return No.call(e, t);
|
|
4463
|
+
}
|
|
4464
|
+
var Io = function() {
|
|
4425
4465
|
function e(t) {
|
|
4426
4466
|
this.partialObserver = t;
|
|
4427
4467
|
}
|
|
@@ -4452,43 +4492,55 @@ var ji = function(e) {
|
|
|
4452
4492
|
Pe(i);
|
|
4453
4493
|
}
|
|
4454
4494
|
}, e;
|
|
4455
|
-
}(),
|
|
4495
|
+
}(), pt = function(e) {
|
|
4456
4496
|
Q(t, e);
|
|
4457
4497
|
function t(i, r, n) {
|
|
4458
4498
|
var o = e.call(this) || this, s;
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4499
|
+
if (J(i) || !i)
|
|
4500
|
+
s = {
|
|
4501
|
+
next: i != null ? i : void 0,
|
|
4502
|
+
error: r != null ? r : void 0,
|
|
4503
|
+
complete: n != null ? n : void 0
|
|
4504
|
+
};
|
|
4505
|
+
else {
|
|
4506
|
+
var a;
|
|
4507
|
+
o && Gi.useDeprecatedNextContext ? (a = Object.create(i), a.unsubscribe = function() {
|
|
4508
|
+
return o.unsubscribe();
|
|
4509
|
+
}, s = {
|
|
4510
|
+
next: i.next && et(i.next, a),
|
|
4511
|
+
error: i.error && et(i.error, a),
|
|
4512
|
+
complete: i.complete && et(i.complete, a)
|
|
4513
|
+
}) : s = i;
|
|
4514
|
+
}
|
|
4515
|
+
return o.destination = new Io(s), o;
|
|
4464
4516
|
}
|
|
4465
4517
|
return t;
|
|
4466
|
-
}(
|
|
4518
|
+
}(zi);
|
|
4467
4519
|
function Pe(e) {
|
|
4468
|
-
|
|
4520
|
+
Bo(e);
|
|
4469
4521
|
}
|
|
4470
|
-
function
|
|
4522
|
+
function Ho(e) {
|
|
4471
4523
|
throw e;
|
|
4472
4524
|
}
|
|
4473
|
-
var
|
|
4525
|
+
var Oo = {
|
|
4474
4526
|
closed: !0,
|
|
4475
|
-
next:
|
|
4476
|
-
error:
|
|
4477
|
-
complete:
|
|
4478
|
-
},
|
|
4527
|
+
next: Xt,
|
|
4528
|
+
error: Ho,
|
|
4529
|
+
complete: Xt
|
|
4530
|
+
}, Mo = function() {
|
|
4479
4531
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
4480
4532
|
}();
|
|
4481
|
-
function
|
|
4533
|
+
function Co(e) {
|
|
4482
4534
|
return e;
|
|
4483
4535
|
}
|
|
4484
|
-
function
|
|
4485
|
-
return e.length === 0 ?
|
|
4536
|
+
function ko(e) {
|
|
4537
|
+
return e.length === 0 ? Co : e.length === 1 ? e[0] : function(i) {
|
|
4486
4538
|
return e.reduce(function(r, n) {
|
|
4487
4539
|
return n(r);
|
|
4488
4540
|
}, i);
|
|
4489
4541
|
};
|
|
4490
4542
|
}
|
|
4491
|
-
var
|
|
4543
|
+
var Zt = function() {
|
|
4492
4544
|
function e(t) {
|
|
4493
4545
|
t && (this._subscribe = t);
|
|
4494
4546
|
}
|
|
@@ -4496,7 +4548,7 @@ var Wt = function() {
|
|
|
4496
4548
|
var i = new e();
|
|
4497
4549
|
return i.source = this, i.operator = t, i;
|
|
4498
4550
|
}, e.prototype.subscribe = function(t, i, r) {
|
|
4499
|
-
var n = this, o =
|
|
4551
|
+
var n = this, o = Ro(t) ? t : new pt(t, i, r);
|
|
4500
4552
|
return Ie(function() {
|
|
4501
4553
|
var s = n, a = s.operator, c = s.source;
|
|
4502
4554
|
o.add(a ? a.call(o, c) : c ? n._subscribe(o) : n._trySubscribe(o));
|
|
@@ -4509,8 +4561,8 @@ var Wt = function() {
|
|
|
4509
4561
|
}
|
|
4510
4562
|
}, e.prototype.forEach = function(t, i) {
|
|
4511
4563
|
var r = this;
|
|
4512
|
-
return i =
|
|
4513
|
-
var s = new
|
|
4564
|
+
return i = Yt(i), new i(function(n, o) {
|
|
4565
|
+
var s = new pt({
|
|
4514
4566
|
next: function(a) {
|
|
4515
4567
|
try {
|
|
4516
4568
|
t(a);
|
|
@@ -4526,15 +4578,15 @@ var Wt = function() {
|
|
|
4526
4578
|
}, e.prototype._subscribe = function(t) {
|
|
4527
4579
|
var i;
|
|
4528
4580
|
return (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(t);
|
|
4529
|
-
}, e.prototype[
|
|
4581
|
+
}, e.prototype[Mo] = function() {
|
|
4530
4582
|
return this;
|
|
4531
4583
|
}, e.prototype.pipe = function() {
|
|
4532
4584
|
for (var t = [], i = 0; i < arguments.length; i++)
|
|
4533
4585
|
t[i] = arguments[i];
|
|
4534
|
-
return
|
|
4586
|
+
return ko(t)(this);
|
|
4535
4587
|
}, e.prototype.toPromise = function(t) {
|
|
4536
4588
|
var i = this;
|
|
4537
|
-
return t =
|
|
4589
|
+
return t = Yt(t), new t(function(r, n) {
|
|
4538
4590
|
var o;
|
|
4539
4591
|
i.subscribe(function(s) {
|
|
4540
4592
|
return o = s;
|
|
@@ -4548,32 +4600,32 @@ var Wt = function() {
|
|
|
4548
4600
|
return new e(t);
|
|
4549
4601
|
}, e;
|
|
4550
4602
|
}();
|
|
4551
|
-
function
|
|
4603
|
+
function Yt(e) {
|
|
4552
4604
|
var t;
|
|
4553
|
-
return (t = e != null ? e :
|
|
4605
|
+
return (t = e != null ? e : Gi.Promise) !== null && t !== void 0 ? t : Promise;
|
|
4554
4606
|
}
|
|
4555
|
-
function
|
|
4607
|
+
function Do(e) {
|
|
4556
4608
|
return e && J(e.next) && J(e.error) && J(e.complete);
|
|
4557
4609
|
}
|
|
4558
|
-
function
|
|
4559
|
-
return e && e instanceof
|
|
4610
|
+
function Ro(e) {
|
|
4611
|
+
return e && e instanceof zi || Do(e) && $i(e);
|
|
4560
4612
|
}
|
|
4561
|
-
var
|
|
4613
|
+
var Uo = ji(function(e) {
|
|
4562
4614
|
return function() {
|
|
4563
4615
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
4564
4616
|
};
|
|
4565
|
-
}),
|
|
4617
|
+
}), Wi = function(e) {
|
|
4566
4618
|
Q(t, e);
|
|
4567
4619
|
function t() {
|
|
4568
4620
|
var i = e.call(this) || this;
|
|
4569
4621
|
return i.closed = !1, i.currentObservers = null, i.observers = [], i.isStopped = !1, i.hasError = !1, i.thrownError = null, i;
|
|
4570
4622
|
}
|
|
4571
4623
|
return t.prototype.lift = function(i) {
|
|
4572
|
-
var r = new
|
|
4624
|
+
var r = new qt(this, this);
|
|
4573
4625
|
return r.operator = i, r;
|
|
4574
4626
|
}, t.prototype._throwIfClosed = function() {
|
|
4575
4627
|
if (this.closed)
|
|
4576
|
-
throw new
|
|
4628
|
+
throw new Uo();
|
|
4577
4629
|
}, t.prototype.next = function(i) {
|
|
4578
4630
|
var r = this;
|
|
4579
4631
|
Ie(function() {
|
|
@@ -4581,17 +4633,18 @@ var ko = Di(function(e) {
|
|
|
4581
4633
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
4582
4634
|
r.currentObservers || (r.currentObservers = Array.from(r.observers));
|
|
4583
4635
|
try {
|
|
4584
|
-
for (var s =
|
|
4636
|
+
for (var s = rt(r.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
4585
4637
|
var c = a.value;
|
|
4586
4638
|
c.next(i);
|
|
4587
4639
|
}
|
|
4588
|
-
} catch (
|
|
4589
|
-
n = { error:
|
|
4640
|
+
} catch (l) {
|
|
4641
|
+
n = { error: l };
|
|
4590
4642
|
} finally {
|
|
4591
4643
|
try {
|
|
4592
4644
|
a && !a.done && (o = s.return) && o.call(s);
|
|
4593
4645
|
} finally {
|
|
4594
|
-
if (n)
|
|
4646
|
+
if (n)
|
|
4647
|
+
throw n.error;
|
|
4595
4648
|
}
|
|
4596
4649
|
}
|
|
4597
4650
|
}
|
|
@@ -4629,19 +4682,19 @@ var ko = Di(function(e) {
|
|
|
4629
4682
|
return this._throwIfClosed(), this._checkFinalizedStatuses(i), this._innerSubscribe(i);
|
|
4630
4683
|
}, t.prototype._innerSubscribe = function(i) {
|
|
4631
4684
|
var r = this, n = this, o = n.hasError, s = n.isStopped, a = n.observers;
|
|
4632
|
-
return o || s ?
|
|
4633
|
-
r.currentObservers = null,
|
|
4685
|
+
return o || s ? Fi : (this.currentObservers = null, a.push(i), new Fe(function() {
|
|
4686
|
+
r.currentObservers = null, ft(a, i);
|
|
4634
4687
|
}));
|
|
4635
4688
|
}, t.prototype._checkFinalizedStatuses = function(i) {
|
|
4636
4689
|
var r = this, n = r.hasError, o = r.thrownError, s = r.isStopped;
|
|
4637
4690
|
n ? i.error(o) : s && i.complete();
|
|
4638
4691
|
}, t.prototype.asObservable = function() {
|
|
4639
|
-
var i = new
|
|
4692
|
+
var i = new Zt();
|
|
4640
4693
|
return i.source = this, i;
|
|
4641
4694
|
}, t.create = function(i, r) {
|
|
4642
|
-
return new
|
|
4695
|
+
return new qt(i, r);
|
|
4643
4696
|
}, t;
|
|
4644
|
-
}(
|
|
4697
|
+
}(Zt), qt = function(e) {
|
|
4645
4698
|
Q(t, e);
|
|
4646
4699
|
function t(i, r) {
|
|
4647
4700
|
var n = e.call(this) || this;
|
|
@@ -4658,17 +4711,17 @@ var ko = Di(function(e) {
|
|
|
4658
4711
|
(r = (i = this.destination) === null || i === void 0 ? void 0 : i.complete) === null || r === void 0 || r.call(i);
|
|
4659
4712
|
}, t.prototype._subscribe = function(i) {
|
|
4660
4713
|
var r, n;
|
|
4661
|
-
return (n = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(i)) !== null && n !== void 0 ? n :
|
|
4714
|
+
return (n = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(i)) !== null && n !== void 0 ? n : Fi;
|
|
4662
4715
|
}, t;
|
|
4663
|
-
}(
|
|
4716
|
+
}(Wi), Vi = {
|
|
4664
4717
|
now: function() {
|
|
4665
|
-
return (
|
|
4718
|
+
return (Vi.delegate || Date).now();
|
|
4666
4719
|
},
|
|
4667
4720
|
delegate: void 0
|
|
4668
|
-
},
|
|
4721
|
+
}, jo = function(e) {
|
|
4669
4722
|
Q(t, e);
|
|
4670
4723
|
function t(i, r, n) {
|
|
4671
|
-
i === void 0 && (i = 1 / 0), r === void 0 && (r = 1 / 0), n === void 0 && (n =
|
|
4724
|
+
i === void 0 && (i = 1 / 0), r === void 0 && (r = 1 / 0), n === void 0 && (n = Vi);
|
|
4672
4725
|
var o = e.call(this) || this;
|
|
4673
4726
|
return o._bufferSize = i, o._windowTime = r, o._timestampProvider = n, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = r === 1 / 0, o._bufferSize = Math.max(1, i), o._windowTime = Math.max(1, r), o;
|
|
4674
4727
|
}
|
|
@@ -4683,28 +4736,28 @@ var ko = Di(function(e) {
|
|
|
4683
4736
|
}, t.prototype._trimBuffer = function() {
|
|
4684
4737
|
var i = this, r = i._bufferSize, n = i._timestampProvider, o = i._buffer, s = i._infiniteTimeWindow, a = (s ? 1 : 2) * r;
|
|
4685
4738
|
if (r < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
|
|
4686
|
-
for (var c = n.now(),
|
|
4687
|
-
|
|
4688
|
-
|
|
4739
|
+
for (var c = n.now(), l = 0, u = 1; u < o.length && o[u] <= c; u += 2)
|
|
4740
|
+
l = u;
|
|
4741
|
+
l && o.splice(0, l + 1);
|
|
4689
4742
|
}
|
|
4690
4743
|
}, t;
|
|
4691
|
-
}(
|
|
4692
|
-
const
|
|
4693
|
-
if (
|
|
4694
|
-
const i = new
|
|
4695
|
-
|
|
4744
|
+
}(Wi);
|
|
4745
|
+
const Jt = [], Qt = {}, Fo = (e, t = 0) => {
|
|
4746
|
+
if (Jt.indexOf(e) == -1) {
|
|
4747
|
+
const i = new jo(t);
|
|
4748
|
+
Qt[e] = i, Jt.push(e);
|
|
4696
4749
|
}
|
|
4697
|
-
return
|
|
4750
|
+
return Qt[e];
|
|
4698
4751
|
};
|
|
4699
|
-
window.emWidgets = { topic:
|
|
4700
|
-
const
|
|
4701
|
-
function
|
|
4752
|
+
window.emWidgets = { topic: Fo };
|
|
4753
|
+
const $o = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4754
|
+
function Go(e, t) {
|
|
4702
4755
|
if (e) {
|
|
4703
4756
|
const i = document.createElement("style");
|
|
4704
4757
|
i.innerHTML = t, e.appendChild(i);
|
|
4705
4758
|
}
|
|
4706
4759
|
}
|
|
4707
|
-
function
|
|
4760
|
+
function zo(e, t) {
|
|
4708
4761
|
const i = new URL(t);
|
|
4709
4762
|
fetch(i.href).then((r) => r.text()).then((r) => {
|
|
4710
4763
|
const n = document.createElement("style");
|
|
@@ -4713,7 +4766,7 @@ function $o(e, t) {
|
|
|
4713
4766
|
console.error("There was an error while trying to load client styling from URL", r);
|
|
4714
4767
|
});
|
|
4715
4768
|
}
|
|
4716
|
-
function
|
|
4769
|
+
function Wo(e, t, i) {
|
|
4717
4770
|
if (window.emMessageBus) {
|
|
4718
4771
|
const r = document.createElement("style");
|
|
4719
4772
|
window.emMessageBus.subscribe(t, (n) => {
|
|
@@ -4721,31 +4774,31 @@ function Fo(e, t, i) {
|
|
|
4721
4774
|
});
|
|
4722
4775
|
}
|
|
4723
4776
|
}
|
|
4724
|
-
function
|
|
4725
|
-
|
|
4777
|
+
function Vo(e) {
|
|
4778
|
+
gr(e, "svelte-1r3q7vs", ':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:1.3rem}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}input{width:100%;height:38px;padding:8px 4px;padding-right:8px;margin:12px 0;border-radius:4px;box-shadow:none;font-size:1.4rem;min-height:3.5rem;border:1px solid var(--emw--color-gray-100, #E6E6E6);background:var(--emw--color-white, #FFFFFF);color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A))}input:focus,input :focus-within,input :focus-visible,input :visited{border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}select{width:100%;height:38px;padding:8px 4px;padding-right:8px;margin:12px 0;border-radius:4px;box-shadow:none;font-size:1.4rem;min-height:3.5rem;cursor:pointer;color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));border:1px solid var(--emw--color-gray-100, #E6E6E6);background:var(--emw--color-white, #FFFFFF)}select:focus,select :focus-within,select :focus-visible,select :visited{border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.player-account-gaming-limits-page-2-gmcore{color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A))}.LimitsInteractionArea{display:flex;flex-direction:column;margin-top:12px}.LimitsInteractionArea.Desktop{width:320px;padding:0 12px}.LimitsList.Desktop{display:flex;justify-content:space-between;margin:0 auto}.LimitWrapper{background:var(--emw--color-white, #fff);font-size:1.3rem;border:1px solid var(--emw--color-gray-300, #58586B);padding:8px 12px;border-radius:4px}.LimitWrapper:not(:first-child){margin-top:12px}.LimitWrapper.Desktop{width:45%;margin:12px}.LimitSubmitButton,.ConfirmButton{background:var(--emw--color-valid, var(--emw--color-green, #48952a));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:0;border-radius:2px;padding:12px;cursor:pointer}.LimitSubmitButton:disabled,.ConfirmButton:disabled{background:rgba(116, 180, 27, 0.322);cursor:not-allowed}.LimitDetails{padding:12px 0 12px 4px}.LimitDetails:not(:last-child){border-bottom:1px solid var(--emw--color-gray-50, #F9F8F8)}.LimitDetailsTextWrapper{font-size:1.3rem;color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A))}.PendingLimit{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A))}.LimitTitle{font-size:1.5rem}.PopupOverlay{position:absolute;top:0;left:0;background-color:rgba(0, 0, 0, 0.5);height:100vh;width:100vw;display:flex;justify-content:center;align-items:center}.PopupContainer{background:var(--emw--color-white, #FFFFFF);font-size:1rem;color:var(--emw--color-black, #000000);width:80vw;height:350px;padding:12px;border-radius:4px;display:flex;flex-direction:column;justify-content:space-between}.PopupContainer.Desktop{width:30vw}.PopupTitleWrapper{display:flex;justify-content:space-between;font-size:1.3rem}.PopupTitleWrapper button{background:var(--emw--color-white, #FFFFFF);font-size:1rem;border:0;cursor:pointer}.DescriptionParagraph{text-align:center;font-size:1.3rem;padding:12px}.ResultIconWrapper{display:flex;flex-direction:column;align-items:center}.ResultIconWrapper svg{height:auto;width:60px;margin:12px}.ResultIconWrapper p{color:#666}.LimitDetails{display:flex;justify-content:space-between;align-items:center}.RemoveLimitButton{height:28px;font-size:0.7rem;background:var(--emw--color-white, #FFFFFF);color:var(--emw--color-gray-300, #58586B);border:1px solid var(--emw--color-gray-300, #58586B);border-radius:4px;padding:0 4px;cursor:pointer}.RemoveLimitButton:hover{background:var(--emw--color-gray-300, #58586B)}@keyframes rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@-webkit-keyframes rotate{from{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}.LoadingIndicator{width:100px;height:100px;margin:110px auto 0;border:solid 10px rgb(122, 195, 23);border-radius:50%;border-right-color:transparent;border-bottom-color:transparent;-webkit-transition:all 0.5s ease-in;-webkit-animation-name:rotate;-webkit-animation-duration:1s;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear;transition:all 0.5s ease-in;animation-name:rotate;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear}');
|
|
4726
4779
|
}
|
|
4727
|
-
function
|
|
4780
|
+
function Kt(e, t, i) {
|
|
4728
4781
|
const r = e.slice();
|
|
4729
4782
|
return r[50] = t[i], r;
|
|
4730
4783
|
}
|
|
4731
|
-
function
|
|
4784
|
+
function ei(e, t, i) {
|
|
4732
4785
|
const r = e.slice();
|
|
4733
4786
|
return r[53] = t[i], r;
|
|
4734
4787
|
}
|
|
4735
|
-
function
|
|
4788
|
+
function ti(e, t, i) {
|
|
4736
4789
|
const r = e.slice();
|
|
4737
4790
|
return r[53] = t[i], r;
|
|
4738
4791
|
}
|
|
4739
|
-
function
|
|
4792
|
+
function ii(e, t, i) {
|
|
4740
4793
|
const r = e.slice();
|
|
4741
4794
|
return r[58] = t[i], r;
|
|
4742
4795
|
}
|
|
4743
|
-
function
|
|
4796
|
+
function ri(e) {
|
|
4744
4797
|
let t, i;
|
|
4745
4798
|
function r(s, a) {
|
|
4746
4799
|
return (
|
|
4747
4800
|
/*popupReady*/
|
|
4748
|
-
s[11] ?
|
|
4801
|
+
s[11] ? Xo : Zo
|
|
4749
4802
|
);
|
|
4750
4803
|
}
|
|
4751
4804
|
let n = r(e), o = n(e);
|
|
@@ -4755,7 +4808,7 @@ function ei(e) {
|
|
|
4755
4808
|
(e[14] ? "Desktop" : "")), b(t, "class", "PopupOverlay");
|
|
4756
4809
|
},
|
|
4757
4810
|
m(s, a) {
|
|
4758
|
-
|
|
4811
|
+
N(s, t, a), d(t, i), o.m(i, null);
|
|
4759
4812
|
},
|
|
4760
4813
|
p(s, a) {
|
|
4761
4814
|
n === (n = r(s)) && o ? o.p(s, a) : (o.d(1), o = n(s), o && (o.c(), o.m(i, null)));
|
|
@@ -4765,21 +4818,21 @@ function ei(e) {
|
|
|
4765
4818
|
}
|
|
4766
4819
|
};
|
|
4767
4820
|
}
|
|
4768
|
-
function
|
|
4821
|
+
function Xo(e) {
|
|
4769
4822
|
let t, i, r = (
|
|
4770
4823
|
/*$_*/
|
|
4771
4824
|
e[13]("popupTitle") + ""
|
|
4772
|
-
), n, o, s, a, c,
|
|
4773
|
-
e[9] &&
|
|
4825
|
+
), n, o, s, a, c, l, u, h, f, m, p, _, R, P = !/*limitError*/
|
|
4826
|
+
e[9] && ni(e);
|
|
4774
4827
|
return {
|
|
4775
4828
|
c() {
|
|
4776
|
-
t = y("div"), i = y("span"), n =
|
|
4829
|
+
t = y("div"), i = y("span"), n = F(r), o = U(), s = y("button"), s.textContent = "X", a = U(), c = y("div"), l = y("div"), P && P.c(), u = U(), h = y("p"), f = F(
|
|
4777
4830
|
/*popupContent*/
|
|
4778
4831
|
e[12]
|
|
4779
|
-
), m = U(), p = y("button"), p.textContent = "OK", b(i, "class", "PopupTitle"), b(s, "class", "ClosePopup"), b(t, "class", "PopupTitleWrapper"), b(
|
|
4832
|
+
), m = U(), p = y("button"), p.textContent = "OK", b(i, "class", "PopupTitle"), b(s, "class", "ClosePopup"), b(t, "class", "PopupTitleWrapper"), b(l, "class", "ResultIconWrapper"), b(h, "class", "DescriptionParagraph"), b(c, "class", "DescriptionWrapper"), b(p, "class", "ConfirmButton");
|
|
4780
4833
|
},
|
|
4781
4834
|
m(L, w) {
|
|
4782
|
-
|
|
4835
|
+
N(L, t, w), d(t, i), d(i, n), d(t, o), d(t, s), N(L, a, w), N(L, c, w), d(c, l), P && P.m(l, null), d(c, u), d(c, h), d(h, f), N(L, m, w), N(L, p, w), _ || (R = [
|
|
4783
4836
|
Y(
|
|
4784
4837
|
s,
|
|
4785
4838
|
"click",
|
|
@@ -4798,7 +4851,7 @@ function zo(e) {
|
|
|
4798
4851
|
w[0] & /*$_*/
|
|
4799
4852
|
8192 && r !== (r = /*$_*/
|
|
4800
4853
|
L[13]("popupTitle") + "") && W(n, r), /*limitError*/
|
|
4801
|
-
L[9] ? P && (P.d(1), P = null) : P ? P.p(L, w) : (P =
|
|
4854
|
+
L[9] ? P && (P.d(1), P = null) : P ? P.p(L, w) : (P = ni(L), P.c(), P.m(l, null)), w[0] & /*popupContent*/
|
|
4802
4855
|
4096 && W(
|
|
4803
4856
|
f,
|
|
4804
4857
|
/*popupContent*/
|
|
@@ -4810,14 +4863,14 @@ function zo(e) {
|
|
|
4810
4863
|
}
|
|
4811
4864
|
};
|
|
4812
4865
|
}
|
|
4813
|
-
function
|
|
4866
|
+
function Zo(e) {
|
|
4814
4867
|
let t;
|
|
4815
4868
|
return {
|
|
4816
4869
|
c() {
|
|
4817
4870
|
t = y("div"), b(t, "class", "LoadingIndicator");
|
|
4818
4871
|
},
|
|
4819
4872
|
m(i, r) {
|
|
4820
|
-
|
|
4873
|
+
N(i, t, r);
|
|
4821
4874
|
},
|
|
4822
4875
|
p: j,
|
|
4823
4876
|
d(i) {
|
|
@@ -4825,31 +4878,31 @@ function Wo(e) {
|
|
|
4825
4878
|
}
|
|
4826
4879
|
};
|
|
4827
4880
|
}
|
|
4828
|
-
function
|
|
4829
|
-
let t, i, r, n, o, s, a, c,
|
|
4881
|
+
function ni(e) {
|
|
4882
|
+
let t, i, r, n, o, s, a, c, l = (
|
|
4830
4883
|
/*$_*/
|
|
4831
4884
|
e[13]("popupSuccess") + ""
|
|
4832
|
-
),
|
|
4885
|
+
), u;
|
|
4833
4886
|
return {
|
|
4834
4887
|
c() {
|
|
4835
|
-
t = be("svg"), i = be("defs"), r = be("style"), n =
|
|
4836
|
-
`), o = be("g"), s = be("polygon"), a = U(), c = y("p"),
|
|
4888
|
+
t = be("svg"), i = be("defs"), r = be("style"), n = F(`.fil0 {fill:black;fill-rule:nonzero}
|
|
4889
|
+
`), o = be("g"), s = be("polygon"), a = U(), c = y("p"), u = F(l), b(r, "type", "text/css"), b(s, "class", "fil0"), b(s, "points", "0,38 10,25 36,47 78,0 90,11 37,69 "), b(t, "xmlns", "http://www.w3.org/2000/svg"), b(t, "xmlns:xlink", "http://www.w3.org/1999/xlink"), b(t, "xml:space", "preserve"), b(t, "version", "1.1"), Ve(t, "shape-rendering", "geometricPrecision"), Ve(t, "text-rendering", "geometricPrecision"), Ve(t, "image-rendering", "optimizeQuality"), b(t, "viewBox", "0 0 90 69"), b(t, "x", "0px"), b(t, "y", "0px"), b(t, "fill-rule", "evenodd"), b(t, "clip-rule", "evenodd");
|
|
4837
4890
|
},
|
|
4838
4891
|
m(h, f) {
|
|
4839
|
-
|
|
4892
|
+
N(h, t, f), d(t, i), d(i, r), d(r, n), d(t, o), d(o, s), N(h, a, f), N(h, c, f), d(c, u);
|
|
4840
4893
|
},
|
|
4841
4894
|
p(h, f) {
|
|
4842
4895
|
f[0] & /*$_*/
|
|
4843
|
-
8192 &&
|
|
4844
|
-
h[13]("popupSuccess") + "") && W(
|
|
4896
|
+
8192 && l !== (l = /*$_*/
|
|
4897
|
+
h[13]("popupSuccess") + "") && W(u, l);
|
|
4845
4898
|
},
|
|
4846
4899
|
d(h) {
|
|
4847
4900
|
h && (A(t), A(a), A(c));
|
|
4848
4901
|
}
|
|
4849
4902
|
};
|
|
4850
4903
|
}
|
|
4851
|
-
function
|
|
4852
|
-
let t, i, r, n, o, s, a, c,
|
|
4904
|
+
function Yo(e) {
|
|
4905
|
+
let t, i, r, n, o, s, a, c, l, u = (
|
|
4853
4906
|
/*multiplePeriods*/
|
|
4854
4907
|
e[6] ? `${/*$_*/
|
|
4855
4908
|
e[13]("amount")}` : `${/*$_*/
|
|
@@ -4863,30 +4916,30 @@ function Vo(e) {
|
|
|
4863
4916
|
), P, L, w, H = te(
|
|
4864
4917
|
/*availableLimits*/
|
|
4865
4918
|
e[15]
|
|
4866
|
-
),
|
|
4919
|
+
), B = [];
|
|
4867
4920
|
for (let E = 0; E < H.length; E += 1)
|
|
4868
|
-
|
|
4921
|
+
B[E] = si(ti(e, H, E));
|
|
4869
4922
|
let M = (
|
|
4870
4923
|
/*multipleLimits*/
|
|
4871
|
-
e[5] &&
|
|
4924
|
+
e[5] && ai(e)
|
|
4872
4925
|
), D = (
|
|
4873
4926
|
/*multiplePeriods*/
|
|
4874
|
-
e[6] &&
|
|
4927
|
+
e[6] && ui(e)
|
|
4875
4928
|
);
|
|
4876
4929
|
return {
|
|
4877
4930
|
c() {
|
|
4878
4931
|
t = y("div"), i = y("div"), r = y("div");
|
|
4879
|
-
for (let E = 0; E <
|
|
4880
|
-
|
|
4881
|
-
n = U(), o = y("form"), M && M.c(), s = U(), D && D.c(), a = U(), c = y("label"),
|
|
4882
|
-
(e[14] ? "Desktop" : "")), b(
|
|
4932
|
+
for (let E = 0; E < B.length; E += 1)
|
|
4933
|
+
B[E].c();
|
|
4934
|
+
n = U(), o = y("form"), M && M.c(), s = U(), D && D.c(), a = U(), c = y("label"), l = y("span"), h = F(u), f = U(), m = y("input"), p = U(), _ = y("button"), P = F(R), b(r, "class", "LimitsList " + /*isDesktop*/
|
|
4935
|
+
(e[14] ? "Desktop" : "")), b(l, "class", "LimitInputText"), b(c, "class", "LimitAmountInputWrapper"), b(m, "type", "number"), b(m, "pattern", "[0-9]*"), b(_, "class", "LimitSubmitButton"), b(_, "type", "button"), _.disabled = !0, b(o, "class", "LimitsInteractionArea " + /*isDesktop*/
|
|
4883
4936
|
(e[14] ? "Desktop" : "")), b(i, "class", "LimitsPageContainer"), b(t, "class", "player-account-gaming-limits-page-2-gmcore");
|
|
4884
4937
|
},
|
|
4885
4938
|
m(E, G) {
|
|
4886
|
-
|
|
4887
|
-
for (let C = 0; C <
|
|
4888
|
-
|
|
4889
|
-
d(i, n), d(i, o), M && M.m(o, null), d(o, s), D && D.m(o, null), d(o, a), d(o, c), d(c,
|
|
4939
|
+
N(E, t, G), d(t, i), d(i, r);
|
|
4940
|
+
for (let C = 0; C < B.length; C += 1)
|
|
4941
|
+
B[C] && B[C].m(r, null);
|
|
4942
|
+
d(i, n), d(i, o), M && M.m(o, null), d(o, s), D && D.m(o, null), d(o, a), d(o, c), d(c, l), d(l, h), d(o, f), d(o, m), ve(
|
|
4890
4943
|
m,
|
|
4891
4944
|
/*inputAmount*/
|
|
4892
4945
|
e[3]
|
|
@@ -4926,24 +4979,24 @@ function Vo(e) {
|
|
|
4926
4979
|
);
|
|
4927
4980
|
let C;
|
|
4928
4981
|
for (C = 0; C < H.length; C += 1) {
|
|
4929
|
-
const K =
|
|
4930
|
-
|
|
4982
|
+
const K = ti(E, H, C);
|
|
4983
|
+
B[C] ? B[C].p(K, G) : (B[C] = si(K), B[C].c(), B[C].m(r, null));
|
|
4931
4984
|
}
|
|
4932
|
-
for (; C <
|
|
4933
|
-
|
|
4934
|
-
|
|
4985
|
+
for (; C < B.length; C += 1)
|
|
4986
|
+
B[C].d(1);
|
|
4987
|
+
B.length = H.length;
|
|
4935
4988
|
}
|
|
4936
4989
|
/*multipleLimits*/
|
|
4937
|
-
E[5] ? M ? M.p(E, G) : (M =
|
|
4938
|
-
E[6] ? D ? D.p(E, G) : (D =
|
|
4939
|
-
8260 &&
|
|
4990
|
+
E[5] ? M ? M.p(E, G) : (M = ai(E), M.c(), M.m(o, s)) : M && (M.d(1), M = null), /*multiplePeriods*/
|
|
4991
|
+
E[6] ? D ? D.p(E, G) : (D = ui(E), D.c(), D.m(o, a)) : D && (D.d(1), D = null), G[0] & /*multiplePeriods, $_, selectedPeriod*/
|
|
4992
|
+
8260 && u !== (u = /*multiplePeriods*/
|
|
4940
4993
|
E[6] ? `${/*$_*/
|
|
4941
4994
|
E[13]("amount")}` : `${/*$_*/
|
|
4942
4995
|
E[13]("new")} ${/*$_*/
|
|
4943
4996
|
E[13](`gamingLimits.${/*selectedPeriod*/
|
|
4944
4997
|
E[2]}`)} ${/*$_*/
|
|
4945
|
-
E[13]("limit")}`) && W(h,
|
|
4946
|
-
8 &&
|
|
4998
|
+
E[13]("limit")}`) && W(h, u), G[0] & /*inputAmount*/
|
|
4999
|
+
8 && pi(m.value) !== /*inputAmount*/
|
|
4947
5000
|
E[3] && ve(
|
|
4948
5001
|
m,
|
|
4949
5002
|
/*inputAmount*/
|
|
@@ -4953,18 +5006,18 @@ function Vo(e) {
|
|
|
4953
5006
|
E[13]("setLimit") + "") && W(P, R);
|
|
4954
5007
|
},
|
|
4955
5008
|
d(E) {
|
|
4956
|
-
E && A(t), ke(
|
|
5009
|
+
E && A(t), ke(B, E), M && M.d(), D && D.d(), e[35](null), L = !1, ie(w);
|
|
4957
5010
|
}
|
|
4958
5011
|
};
|
|
4959
5012
|
}
|
|
4960
|
-
function
|
|
5013
|
+
function qo(e) {
|
|
4961
5014
|
let t;
|
|
4962
5015
|
return {
|
|
4963
5016
|
c() {
|
|
4964
5017
|
t = y("p"), t.textContent = "500 Server error";
|
|
4965
5018
|
},
|
|
4966
5019
|
m(i, r) {
|
|
4967
|
-
|
|
5020
|
+
N(i, t, r);
|
|
4968
5021
|
},
|
|
4969
5022
|
p: j,
|
|
4970
5023
|
d(i) {
|
|
@@ -4972,17 +5025,17 @@ function Xo(e) {
|
|
|
4972
5025
|
}
|
|
4973
5026
|
};
|
|
4974
5027
|
}
|
|
4975
|
-
function
|
|
5028
|
+
function Jo(e) {
|
|
4976
5029
|
return { c: j, m: j, p: j, d: j };
|
|
4977
5030
|
}
|
|
4978
|
-
function
|
|
5031
|
+
function Qo(e) {
|
|
4979
5032
|
let t;
|
|
4980
5033
|
return {
|
|
4981
5034
|
c() {
|
|
4982
5035
|
t = y("div"), b(t, "class", "LoadingIndicator");
|
|
4983
5036
|
},
|
|
4984
5037
|
m(i, r) {
|
|
4985
|
-
|
|
5038
|
+
N(i, t, r);
|
|
4986
5039
|
},
|
|
4987
5040
|
p: j,
|
|
4988
5041
|
d(i) {
|
|
@@ -4990,17 +5043,17 @@ function Yo(e) {
|
|
|
4990
5043
|
}
|
|
4991
5044
|
};
|
|
4992
5045
|
}
|
|
4993
|
-
function
|
|
5046
|
+
function Ko(e) {
|
|
4994
5047
|
let t, i, r, n = (
|
|
4995
5048
|
/*$_*/
|
|
4996
5049
|
e[13]("noLimitText") + ""
|
|
4997
5050
|
), o;
|
|
4998
5051
|
return {
|
|
4999
5052
|
c() {
|
|
5000
|
-
t = y("div"), i = y("div"), r = y("div"), o =
|
|
5053
|
+
t = y("div"), i = y("div"), r = y("div"), o = F(n), b(r, "class", "LimitDetailsTextWrapper"), b(i, "class", "LimitDetailsWrapper"), b(t, "class", "LimitDetails");
|
|
5001
5054
|
},
|
|
5002
5055
|
m(s, a) {
|
|
5003
|
-
|
|
5056
|
+
N(s, t, a), d(t, i), d(i, r), d(r, o);
|
|
5004
5057
|
},
|
|
5005
5058
|
p(s, a) {
|
|
5006
5059
|
a[0] & /*$_*/
|
|
@@ -5012,23 +5065,23 @@ function qo(e) {
|
|
|
5012
5065
|
}
|
|
5013
5066
|
};
|
|
5014
5067
|
}
|
|
5015
|
-
function
|
|
5068
|
+
function es(e) {
|
|
5016
5069
|
let t, i = te(
|
|
5017
5070
|
/*limit*/
|
|
5018
5071
|
e[53].currentLimits
|
|
5019
5072
|
), r = [];
|
|
5020
5073
|
for (let n = 0; n < i.length; n += 1)
|
|
5021
|
-
r[n] = ii(
|
|
5074
|
+
r[n] = oi(ii(e, i, n));
|
|
5022
5075
|
return {
|
|
5023
5076
|
c() {
|
|
5024
5077
|
for (let n = 0; n < r.length; n += 1)
|
|
5025
5078
|
r[n].c();
|
|
5026
|
-
t =
|
|
5079
|
+
t = _r();
|
|
5027
5080
|
},
|
|
5028
5081
|
m(n, o) {
|
|
5029
5082
|
for (let s = 0; s < r.length; s += 1)
|
|
5030
5083
|
r[s] && r[s].m(n, o);
|
|
5031
|
-
|
|
5084
|
+
N(n, t, o);
|
|
5032
5085
|
},
|
|
5033
5086
|
p(n, o) {
|
|
5034
5087
|
if (o[0] & /*removeLimit, availableLimits, $_*/
|
|
@@ -5039,8 +5092,8 @@ function Jo(e) {
|
|
|
5039
5092
|
);
|
|
5040
5093
|
let s;
|
|
5041
5094
|
for (s = 0; s < i.length; s += 1) {
|
|
5042
|
-
const a =
|
|
5043
|
-
r[s] ? r[s].p(a, o) : (r[s] =
|
|
5095
|
+
const a = ii(n, i, s);
|
|
5096
|
+
r[s] ? r[s].p(a, o) : (r[s] = oi(a), r[s].c(), r[s].m(t.parentNode, t));
|
|
5044
5097
|
}
|
|
5045
5098
|
for (; s < r.length; s += 1)
|
|
5046
5099
|
r[s].d(1);
|
|
@@ -5052,16 +5105,16 @@ function Jo(e) {
|
|
|
5052
5105
|
}
|
|
5053
5106
|
};
|
|
5054
5107
|
}
|
|
5055
|
-
function
|
|
5108
|
+
function ts(e) {
|
|
5056
5109
|
let t, i = `${/*$_*/
|
|
5057
5110
|
e[13]("removedLimitText")} ${/*currentLimit*/
|
|
5058
5111
|
e[58].expiryDate}`, r;
|
|
5059
5112
|
return {
|
|
5060
5113
|
c() {
|
|
5061
|
-
t = y("div"), r =
|
|
5114
|
+
t = y("div"), r = F(i), b(t, "class", "PendingLimit");
|
|
5062
5115
|
},
|
|
5063
5116
|
m(n, o) {
|
|
5064
|
-
|
|
5117
|
+
N(n, t, o), d(t, r);
|
|
5065
5118
|
},
|
|
5066
5119
|
p(n, o) {
|
|
5067
5120
|
o[0] & /*$_*/
|
|
@@ -5074,7 +5127,7 @@ function Qo(e) {
|
|
|
5074
5127
|
}
|
|
5075
5128
|
};
|
|
5076
5129
|
}
|
|
5077
|
-
function
|
|
5130
|
+
function is(e) {
|
|
5078
5131
|
let t, i = `${/*currentLimit*/
|
|
5079
5132
|
e[58].updateAmount}${/*currentLimit*/
|
|
5080
5133
|
e[58].currency} ${/*$_*/
|
|
@@ -5084,10 +5137,10 @@ function Ko(e) {
|
|
|
5084
5137
|
e[58].expiryDate}`, r;
|
|
5085
5138
|
return {
|
|
5086
5139
|
c() {
|
|
5087
|
-
t = y("div"), r =
|
|
5140
|
+
t = y("div"), r = F(i), b(t, "class", "PendingLimit");
|
|
5088
5141
|
},
|
|
5089
5142
|
m(n, o) {
|
|
5090
|
-
|
|
5143
|
+
N(n, t, o), d(t, r);
|
|
5091
5144
|
},
|
|
5092
5145
|
p(n, o) {
|
|
5093
5146
|
o[0] & /*$_*/
|
|
@@ -5104,7 +5157,7 @@ function Ko(e) {
|
|
|
5104
5157
|
}
|
|
5105
5158
|
};
|
|
5106
5159
|
}
|
|
5107
|
-
function
|
|
5160
|
+
function rs(e) {
|
|
5108
5161
|
let t, i = (
|
|
5109
5162
|
/*$_*/
|
|
5110
5163
|
e[13]("gamingLimits.removeLimit") + ""
|
|
@@ -5120,10 +5173,10 @@ function es(e) {
|
|
|
5120
5173
|
}
|
|
5121
5174
|
return {
|
|
5122
5175
|
c() {
|
|
5123
|
-
t = y("button"), r =
|
|
5176
|
+
t = y("button"), r = F(i), b(t, "class", "RemoveLimitButton");
|
|
5124
5177
|
},
|
|
5125
5178
|
m(a, c) {
|
|
5126
|
-
|
|
5179
|
+
N(a, t, c), d(t, r), n || (o = Y(t, "click", s), n = !0);
|
|
5127
5180
|
},
|
|
5128
5181
|
p(a, c) {
|
|
5129
5182
|
e = a, c[0] & /*$_*/
|
|
@@ -5135,31 +5188,33 @@ function es(e) {
|
|
|
5135
5188
|
}
|
|
5136
5189
|
};
|
|
5137
5190
|
}
|
|
5138
|
-
function
|
|
5191
|
+
function oi(e) {
|
|
5139
5192
|
let t, i, r, n = `${/*currentLimit*/
|
|
5140
5193
|
e[58].amount}${/*currentLimit*/
|
|
5141
5194
|
e[58].currency} ${/*$_*/
|
|
5142
5195
|
e[13](`gamingLimits.${/*currentLimit*/
|
|
5143
5196
|
e[58].period}`)}`, o, s, a, c;
|
|
5144
|
-
function
|
|
5197
|
+
function l(m, p) {
|
|
5145
5198
|
if (
|
|
5146
5199
|
/*currentLimit*/
|
|
5147
5200
|
m[58].isModified && /*currentLimit*/
|
|
5148
5201
|
m[58].updateAmount != "-1"
|
|
5149
|
-
)
|
|
5202
|
+
)
|
|
5203
|
+
return is;
|
|
5150
5204
|
if (
|
|
5151
5205
|
/*currentLimit*/
|
|
5152
5206
|
m[58].isModified
|
|
5153
|
-
)
|
|
5207
|
+
)
|
|
5208
|
+
return ts;
|
|
5154
5209
|
}
|
|
5155
|
-
let
|
|
5156
|
-
e[58].isModified &&
|
|
5210
|
+
let u = l(e), h = u && u(e), f = !/*currentLimit*/
|
|
5211
|
+
e[58].isModified && rs(e);
|
|
5157
5212
|
return {
|
|
5158
5213
|
c() {
|
|
5159
|
-
t = y("div"), i = y("div"), r = y("div"), o =
|
|
5214
|
+
t = y("div"), i = y("div"), r = y("div"), o = F(n), s = U(), h && h.c(), a = U(), f && f.c(), c = U(), b(r, "class", "CurrentLimit"), b(i, "class", "LimitDetailsTextWrapper"), b(t, "class", "LimitDetails");
|
|
5160
5215
|
},
|
|
5161
5216
|
m(m, p) {
|
|
5162
|
-
|
|
5217
|
+
N(m, t, p), d(t, i), d(i, r), d(r, o), d(i, s), h && h.m(i, null), d(t, a), f && f.m(t, null), d(t, c);
|
|
5163
5218
|
},
|
|
5164
5219
|
p(m, p) {
|
|
5165
5220
|
p[0] & /*$_*/
|
|
@@ -5175,53 +5230,53 @@ function ii(e) {
|
|
|
5175
5230
|
}
|
|
5176
5231
|
};
|
|
5177
5232
|
}
|
|
5178
|
-
function
|
|
5233
|
+
function si(e) {
|
|
5179
5234
|
let t, i, r = (
|
|
5180
5235
|
/*$_*/
|
|
5181
5236
|
e[13](`gamingLimits.${/*limit*/
|
|
5182
5237
|
e[53].value}`) + ""
|
|
5183
5238
|
), n, o, s;
|
|
5184
|
-
function a(
|
|
5239
|
+
function a(u, h) {
|
|
5185
5240
|
return (
|
|
5186
5241
|
/*limit*/
|
|
5187
|
-
|
|
5242
|
+
u[53].currentLimits.length > 0 ? es : Ko
|
|
5188
5243
|
);
|
|
5189
5244
|
}
|
|
5190
|
-
let
|
|
5245
|
+
let l = a(e)(e);
|
|
5191
5246
|
return {
|
|
5192
5247
|
c() {
|
|
5193
|
-
t = y("div"), i = y("p"), n =
|
|
5248
|
+
t = y("div"), i = y("p"), n = F(r), o = U(), l.c(), s = U(), b(i, "class", "LimitTitle"), b(t, "class", "LimitWrapper " + /*isDesktop*/
|
|
5194
5249
|
(e[14] ? "Desktop" : ""));
|
|
5195
5250
|
},
|
|
5196
|
-
m(
|
|
5197
|
-
|
|
5251
|
+
m(u, h) {
|
|
5252
|
+
N(u, t, h), d(t, i), d(i, n), d(t, o), l.m(t, null), d(t, s);
|
|
5198
5253
|
},
|
|
5199
|
-
p(
|
|
5254
|
+
p(u, h) {
|
|
5200
5255
|
h[0] & /*$_*/
|
|
5201
5256
|
8192 && r !== (r = /*$_*/
|
|
5202
|
-
|
|
5203
|
-
|
|
5257
|
+
u[13](`gamingLimits.${/*limit*/
|
|
5258
|
+
u[53].value}`) + "") && W(n, r), l.p(u, h);
|
|
5204
5259
|
},
|
|
5205
|
-
d(
|
|
5206
|
-
|
|
5260
|
+
d(u) {
|
|
5261
|
+
u && A(t), l.d();
|
|
5207
5262
|
}
|
|
5208
5263
|
};
|
|
5209
5264
|
}
|
|
5210
|
-
function
|
|
5265
|
+
function ai(e) {
|
|
5211
5266
|
let t, i, r = (
|
|
5212
5267
|
/*$_*/
|
|
5213
5268
|
e[13]("limitType") + ""
|
|
5214
|
-
), n, o, s, a, c,
|
|
5269
|
+
), n, o, s, a, c, l = te(
|
|
5215
5270
|
/*availableLimits*/
|
|
5216
5271
|
e[15]
|
|
5217
|
-
),
|
|
5218
|
-
for (let h = 0; h <
|
|
5219
|
-
|
|
5272
|
+
), u = [];
|
|
5273
|
+
for (let h = 0; h < l.length; h += 1)
|
|
5274
|
+
u[h] = li(ei(e, l, h));
|
|
5220
5275
|
return {
|
|
5221
5276
|
c() {
|
|
5222
|
-
t = y("label"), i = y("span"), n =
|
|
5223
|
-
for (let h = 0; h <
|
|
5224
|
-
|
|
5277
|
+
t = y("label"), i = y("span"), n = F(r), o = U(), s = y("select");
|
|
5278
|
+
for (let h = 0; h < u.length; h += 1)
|
|
5279
|
+
u[h].c();
|
|
5225
5280
|
b(i, "class", "LimitSelectText"), b(s, "name", ""), b(s, "id", ""), /*selectedLimit*/
|
|
5226
5281
|
e[1] === void 0 && Ee(() => (
|
|
5227
5282
|
/*select_change_handler*/
|
|
@@ -5229,9 +5284,9 @@ function ni(e) {
|
|
|
5229
5284
|
)), b(t, "class", "LimitTypeDropdownWrapper");
|
|
5230
5285
|
},
|
|
5231
5286
|
m(h, f) {
|
|
5232
|
-
|
|
5233
|
-
for (let m = 0; m <
|
|
5234
|
-
|
|
5287
|
+
N(h, t, f), d(t, i), d(i, n), d(t, o), d(t, s);
|
|
5288
|
+
for (let m = 0; m < u.length; m += 1)
|
|
5289
|
+
u[m] && u[m].m(s, null);
|
|
5235
5290
|
He(
|
|
5236
5291
|
s,
|
|
5237
5292
|
/*selectedLimit*/
|
|
@@ -5257,18 +5312,18 @@ function ni(e) {
|
|
|
5257
5312
|
8192 && r !== (r = /*$_*/
|
|
5258
5313
|
h[13]("limitType") + "") && W(n, r), f[0] & /*availableLimits*/
|
|
5259
5314
|
32768) {
|
|
5260
|
-
|
|
5315
|
+
l = te(
|
|
5261
5316
|
/*availableLimits*/
|
|
5262
5317
|
h[15]
|
|
5263
5318
|
);
|
|
5264
5319
|
let m;
|
|
5265
|
-
for (m = 0; m <
|
|
5266
|
-
const p =
|
|
5267
|
-
|
|
5320
|
+
for (m = 0; m < l.length; m += 1) {
|
|
5321
|
+
const p = ei(h, l, m);
|
|
5322
|
+
u[m] ? u[m].p(p, f) : (u[m] = li(p), u[m].c(), u[m].m(s, null));
|
|
5268
5323
|
}
|
|
5269
|
-
for (; m <
|
|
5270
|
-
|
|
5271
|
-
|
|
5324
|
+
for (; m < u.length; m += 1)
|
|
5325
|
+
u[m].d(1);
|
|
5326
|
+
u.length = l.length;
|
|
5272
5327
|
}
|
|
5273
5328
|
f[0] & /*selectedLimit, availableLimits*/
|
|
5274
5329
|
32770 && He(
|
|
@@ -5278,22 +5333,22 @@ function ni(e) {
|
|
|
5278
5333
|
);
|
|
5279
5334
|
},
|
|
5280
5335
|
d(h) {
|
|
5281
|
-
h && A(t), ke(
|
|
5336
|
+
h && A(t), ke(u, h), a = !1, ie(c);
|
|
5282
5337
|
}
|
|
5283
5338
|
};
|
|
5284
5339
|
}
|
|
5285
|
-
function
|
|
5340
|
+
function li(e) {
|
|
5286
5341
|
let t, i = (
|
|
5287
5342
|
/*limit*/
|
|
5288
5343
|
e[53].title + ""
|
|
5289
5344
|
), r;
|
|
5290
5345
|
return {
|
|
5291
5346
|
c() {
|
|
5292
|
-
t = y("option"), r =
|
|
5347
|
+
t = y("option"), r = F(i), t.__value = /*limit*/
|
|
5293
5348
|
e[53].value, ve(t, t.__value);
|
|
5294
5349
|
},
|
|
5295
5350
|
m(n, o) {
|
|
5296
|
-
|
|
5351
|
+
N(n, t, o), d(t, r);
|
|
5297
5352
|
},
|
|
5298
5353
|
p: j,
|
|
5299
5354
|
d(n) {
|
|
@@ -5301,21 +5356,21 @@ function oi(e) {
|
|
|
5301
5356
|
}
|
|
5302
5357
|
};
|
|
5303
5358
|
}
|
|
5304
|
-
function
|
|
5359
|
+
function ui(e) {
|
|
5305
5360
|
let t, i, r = (
|
|
5306
5361
|
/*$_*/
|
|
5307
5362
|
e[13]("period") + ""
|
|
5308
|
-
), n, o, s, a, c,
|
|
5363
|
+
), n, o, s, a, c, l = te(Z[
|
|
5309
5364
|
/*selectedLimit*/
|
|
5310
5365
|
e[1]
|
|
5311
|
-
].periods),
|
|
5312
|
-
for (let h = 0; h <
|
|
5313
|
-
|
|
5366
|
+
].periods), u = [];
|
|
5367
|
+
for (let h = 0; h < l.length; h += 1)
|
|
5368
|
+
u[h] = ci(Kt(e, l, h));
|
|
5314
5369
|
return {
|
|
5315
5370
|
c() {
|
|
5316
|
-
t = y("label"), i = y("span"), n =
|
|
5317
|
-
for (let h = 0; h <
|
|
5318
|
-
|
|
5371
|
+
t = y("label"), i = y("span"), n = F(r), o = U(), s = y("select");
|
|
5372
|
+
for (let h = 0; h < u.length; h += 1)
|
|
5373
|
+
u[h].c();
|
|
5319
5374
|
b(i, "class", "PeriodSelectText"), b(t, "class", "LimitPeriodDropdownWrapper"), b(s, "name", ""), b(s, "id", ""), /*selectedPeriod*/
|
|
5320
5375
|
e[2] === void 0 && Ee(() => (
|
|
5321
5376
|
/*select_change_handler_1*/
|
|
@@ -5323,9 +5378,9 @@ function si(e) {
|
|
|
5323
5378
|
));
|
|
5324
5379
|
},
|
|
5325
5380
|
m(h, f) {
|
|
5326
|
-
|
|
5327
|
-
for (let m = 0; m <
|
|
5328
|
-
|
|
5381
|
+
N(h, t, f), d(t, i), d(i, n), N(h, o, f), N(h, s, f);
|
|
5382
|
+
for (let m = 0; m < u.length; m += 1)
|
|
5383
|
+
u[m] && u[m].m(s, null);
|
|
5329
5384
|
He(
|
|
5330
5385
|
s,
|
|
5331
5386
|
/*selectedPeriod*/
|
|
@@ -5343,18 +5398,18 @@ function si(e) {
|
|
|
5343
5398
|
8192 && r !== (r = /*$_*/
|
|
5344
5399
|
h[13]("period") + "") && W(n, r), f[0] & /*selectedLimit, $_*/
|
|
5345
5400
|
8194) {
|
|
5346
|
-
|
|
5401
|
+
l = te(Z[
|
|
5347
5402
|
/*selectedLimit*/
|
|
5348
5403
|
h[1]
|
|
5349
5404
|
].periods);
|
|
5350
5405
|
let m;
|
|
5351
|
-
for (m = 0; m <
|
|
5352
|
-
const p =
|
|
5353
|
-
|
|
5406
|
+
for (m = 0; m < l.length; m += 1) {
|
|
5407
|
+
const p = Kt(h, l, m);
|
|
5408
|
+
u[m] ? u[m].p(p, f) : (u[m] = ci(p), u[m].c(), u[m].m(s, null));
|
|
5354
5409
|
}
|
|
5355
|
-
for (; m <
|
|
5356
|
-
|
|
5357
|
-
|
|
5410
|
+
for (; m < u.length; m += 1)
|
|
5411
|
+
u[m].d(1);
|
|
5412
|
+
u.length = l.length;
|
|
5358
5413
|
}
|
|
5359
5414
|
f[0] & /*selectedPeriod, selectedLimit*/
|
|
5360
5415
|
6 && He(
|
|
@@ -5364,11 +5419,11 @@ function si(e) {
|
|
|
5364
5419
|
);
|
|
5365
5420
|
},
|
|
5366
5421
|
d(h) {
|
|
5367
|
-
h && (A(t), A(o), A(s)), ke(
|
|
5422
|
+
h && (A(t), A(o), A(s)), ke(u, h), a = !1, c();
|
|
5368
5423
|
}
|
|
5369
5424
|
};
|
|
5370
5425
|
}
|
|
5371
|
-
function
|
|
5426
|
+
function ci(e) {
|
|
5372
5427
|
let t, i = (
|
|
5373
5428
|
/*$_*/
|
|
5374
5429
|
e[13](`gamingLimits.${/*period*/
|
|
@@ -5376,11 +5431,11 @@ function ai(e) {
|
|
|
5376
5431
|
), r, n;
|
|
5377
5432
|
return {
|
|
5378
5433
|
c() {
|
|
5379
|
-
t = y("option"), r =
|
|
5434
|
+
t = y("option"), r = F(i), t.__value = n = /*period*/
|
|
5380
5435
|
e[50], ve(t, t.__value), t.selected = !0;
|
|
5381
5436
|
},
|
|
5382
5437
|
m(o, s) {
|
|
5383
|
-
|
|
5438
|
+
N(o, t, s), d(t, r);
|
|
5384
5439
|
},
|
|
5385
5440
|
p(o, s) {
|
|
5386
5441
|
s[0] & /*$_, selectedLimit*/
|
|
@@ -5395,20 +5450,20 @@ function ai(e) {
|
|
|
5395
5450
|
}
|
|
5396
5451
|
};
|
|
5397
5452
|
}
|
|
5398
|
-
function
|
|
5453
|
+
function ns(e) {
|
|
5399
5454
|
let t, i, r, n, o = (
|
|
5400
5455
|
/*popupVisible*/
|
|
5401
|
-
e[10] &&
|
|
5456
|
+
e[10] && ri(e)
|
|
5402
5457
|
);
|
|
5403
|
-
function s(
|
|
5458
|
+
function s(l, u) {
|
|
5404
5459
|
return (
|
|
5405
5460
|
/*isLoading*/
|
|
5406
|
-
|
|
5407
|
-
|
|
5461
|
+
l[7] && !/*popupVisible*/
|
|
5462
|
+
l[10] ? Qo : (
|
|
5408
5463
|
/*isLoading*/
|
|
5409
|
-
|
|
5464
|
+
l[7] ? Jo : (
|
|
5410
5465
|
/*fetchError*/
|
|
5411
|
-
|
|
5466
|
+
l[8] ? qo : Yo
|
|
5412
5467
|
)
|
|
5413
5468
|
)
|
|
5414
5469
|
);
|
|
@@ -5418,49 +5473,49 @@ function ts(e) {
|
|
|
5418
5473
|
c() {
|
|
5419
5474
|
t = y("meta"), i = U(), r = y("div"), o && o.c(), n = U(), c.c(), b(t, "name", "viewport"), b(t, "content", "width=device-width, initial-scale=1");
|
|
5420
5475
|
},
|
|
5421
|
-
m(
|
|
5422
|
-
d(document.head, t),
|
|
5476
|
+
m(l, u) {
|
|
5477
|
+
d(document.head, t), N(l, i, u), N(l, r, u), o && o.m(r, null), d(r, n), c.m(r, null), e[36](r);
|
|
5423
5478
|
},
|
|
5424
|
-
p(
|
|
5479
|
+
p(l, u) {
|
|
5425
5480
|
/*popupVisible*/
|
|
5426
|
-
|
|
5481
|
+
l[10] ? o ? o.p(l, u) : (o = ri(l), o.c(), o.m(r, n)) : o && (o.d(1), o = null), a === (a = s(l)) && c ? c.p(l, u) : (c.d(1), c = a(l), c && (c.c(), c.m(r, null)));
|
|
5427
5482
|
},
|
|
5428
5483
|
i: j,
|
|
5429
5484
|
o: j,
|
|
5430
|
-
d(
|
|
5431
|
-
|
|
5485
|
+
d(l) {
|
|
5486
|
+
l && (A(i), A(r)), A(t), o && o.d(), c.d(), e[36](null);
|
|
5432
5487
|
}
|
|
5433
5488
|
};
|
|
5434
5489
|
}
|
|
5435
|
-
function
|
|
5490
|
+
function os(e, t, i) {
|
|
5436
5491
|
let r;
|
|
5437
|
-
|
|
5438
|
-
let { lang: n = "en" } = t, { currency: o = "" } = t, { limits: s = "" } = t, { session: a = "" } = t, { userid: c = "" } = t, { endpoint:
|
|
5439
|
-
const
|
|
5492
|
+
br(e, So, (g) => i(13, r = g));
|
|
5493
|
+
let { lang: n = "en" } = t, { currency: o = "" } = t, { limits: s = "" } = t, { session: a = "" } = t, { userid: c = "" } = t, { endpoint: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: f = "" } = t, { mbsource: m } = t, p, _ = window.navigator.userAgent, R = !$o(_), P = [], L = "", w = "", H, B, M = !1, D = !1, E = !0, G = !1, C = !1, K = !1, $e = !1, Ge = "", we;
|
|
5494
|
+
const _t = { EUR: "€", RON: " lei" }, Xi = {
|
|
5440
5495
|
updatePendingError: ["SYS_1037", "SYS_1142", "SYS_1140"]
|
|
5441
|
-
},
|
|
5496
|
+
}, Zi = () => {
|
|
5442
5497
|
fetch(f).then((v) => v.json()).then((v) => {
|
|
5443
5498
|
Object.keys(v).forEach((I) => {
|
|
5444
|
-
|
|
5499
|
+
zt(I, v[I]);
|
|
5445
5500
|
});
|
|
5446
5501
|
}).catch((v) => {
|
|
5447
5502
|
console.log(v);
|
|
5448
5503
|
});
|
|
5449
5504
|
};
|
|
5450
|
-
Object.keys(
|
|
5451
|
-
|
|
5505
|
+
Object.keys(Wt).forEach((g) => {
|
|
5506
|
+
zt(g, Wt[g]);
|
|
5452
5507
|
});
|
|
5453
|
-
const
|
|
5508
|
+
const Yi = () => {
|
|
5454
5509
|
s.split(" ").forEach((v) => {
|
|
5455
5510
|
Z[v] ? P.push(Z[v]) : console.error(`Unknown limit: ${v}`);
|
|
5456
5511
|
}), i(1, L = P[0].value), i(2, w = Z[L].periods[0]), i(5, M = P.length > 1), i(6, D = Z[L].periods.length > 1);
|
|
5457
|
-
},
|
|
5512
|
+
}, qi = () => {
|
|
5458
5513
|
i(2, w = Z[L].periods[0]), i(6, D = Z[L].periods.length > 1);
|
|
5459
|
-
},
|
|
5514
|
+
}, Ji = () => {
|
|
5460
5515
|
if (!(H > 0))
|
|
5461
5516
|
return;
|
|
5462
5517
|
i(10, K = !0), i(7, E = !0);
|
|
5463
|
-
let g = new URL(`/v2/player/${c}/limits`,
|
|
5518
|
+
let g = new URL(`/v2/player/${c}/limits`, l);
|
|
5464
5519
|
const v = {};
|
|
5465
5520
|
v[Z[L].callValue] = [
|
|
5466
5521
|
{
|
|
@@ -5479,19 +5534,19 @@ function is(e, t, i) {
|
|
|
5479
5534
|
body: JSON.stringify(v)
|
|
5480
5535
|
};
|
|
5481
5536
|
fetch(g.href, I).then((k) => (k.status >= 300 && i(9, C = !0), k.json())).then((k) => {
|
|
5482
|
-
ze(), C &&
|
|
5537
|
+
ze(), C && Qi(k);
|
|
5483
5538
|
}).catch((k) => {
|
|
5484
5539
|
console.log(k), i(7, E = !1), i(8, G = !0);
|
|
5485
5540
|
});
|
|
5486
|
-
},
|
|
5541
|
+
}, Qi = (g) => {
|
|
5487
5542
|
const v = g.error.match(/errorCode:(.*)\)/)[1];
|
|
5488
5543
|
console.error(`API response error: ${v}`);
|
|
5489
5544
|
let I;
|
|
5490
|
-
for (const [k,
|
|
5491
|
-
|
|
5492
|
-
I = I != null ? I : r("gamingLimits.genericError"),
|
|
5545
|
+
for (const [k, $] of Object.entries(Xi))
|
|
5546
|
+
$.includes(v) && (I = r(`gamingLimits.${k}`));
|
|
5547
|
+
I = I != null ? I : r("gamingLimits.genericError"), Et(v, I);
|
|
5493
5548
|
}, ze = () => {
|
|
5494
|
-
let g = new URL(`/v2/player/${c}/limits`,
|
|
5549
|
+
let g = new URL(`/v2/player/${c}/limits`, l), v = !C, I = {
|
|
5495
5550
|
method: "GET",
|
|
5496
5551
|
headers: {
|
|
5497
5552
|
"X-SessionID": a,
|
|
@@ -5504,44 +5559,44 @@ function is(e, t, i) {
|
|
|
5504
5559
|
throw i(7, E = !1), i(8, G = !0), new Error("There was an error fetching the limits");
|
|
5505
5560
|
return k.json();
|
|
5506
5561
|
}).then((k) => {
|
|
5507
|
-
we = k, K && v &&
|
|
5562
|
+
we = k, K && v && Et(), Ki(we), i(7, E = !1), i(3, H = null);
|
|
5508
5563
|
}).catch((k) => {
|
|
5509
5564
|
console.log(k), i(7, E = !1), i(8, G = !0);
|
|
5510
5565
|
});
|
|
5511
|
-
},
|
|
5566
|
+
}, Ki = (g) => {
|
|
5512
5567
|
P.forEach((v) => {
|
|
5513
5568
|
var I;
|
|
5514
|
-
v.currentLimits = [], (I = g[Z[v.value].callValue]) == null || I.forEach((k,
|
|
5515
|
-
var
|
|
5516
|
-
const q = g[Z[v.value].callValue][
|
|
5517
|
-
v.currentLimits.push({}), v.currentLimits[
|
|
5518
|
-
}), v.currentLimits =
|
|
5569
|
+
v.currentLimits = [], (I = g[Z[v.value].callValue]) == null || I.forEach((k, $) => {
|
|
5570
|
+
var xt;
|
|
5571
|
+
const q = g[Z[v.value].callValue][$];
|
|
5572
|
+
v.currentLimits.push({}), v.currentLimits[$].limitType = v.value, v.currentLimits[$].amount = Intl.NumberFormat("en-US", { maximumFractionDigits: 0 }).format(q.amount), v.currentLimits[$].currency = (xt = _t[q.currency]) != null ? xt : q.currency, v.currentLimits[$].period = q.period, v.currentLimits[$].updateAmount = Intl.NumberFormat("en-US", { maximumFractionDigits: 0 }).format(q.updateAmount), v.currentLimits[$].isModified = q.isModified, v.currentLimits[$].expiryDate = `${new Date(q.expiryDate).toLocaleDateString("en-de", { hour: "numeric", minute: "numeric" }).replaceAll("/", ".")} (GMT)`;
|
|
5573
|
+
}), v.currentLimits = er(v.currentLimits);
|
|
5519
5574
|
});
|
|
5520
|
-
},
|
|
5575
|
+
}, er = (g) => {
|
|
5521
5576
|
const v = { Daily: 0, Weekly: 1, Monthly: 2 };
|
|
5522
5577
|
return g.sort((I, k) => v[I.period] - v[k.period]), g;
|
|
5523
|
-
},
|
|
5578
|
+
}, tr = () => {
|
|
5524
5579
|
H > 999999999999999 && i(3, H = 999999999999999);
|
|
5525
5580
|
const v = H - Math.floor(H) === 0;
|
|
5526
|
-
H > 0 && v ?
|
|
5527
|
-
},
|
|
5581
|
+
H > 0 && v ? B.removeAttribute("disabled") : B.setAttribute("disabled", "true");
|
|
5582
|
+
}, Et = (g, v) => {
|
|
5528
5583
|
if (g)
|
|
5529
5584
|
i(12, Ge = v);
|
|
5530
5585
|
else if (we) {
|
|
5531
5586
|
const I = we[Z[L].callValue].filter((q) => q.period === w)[0], k = Intl.NumberFormat("en-US", { maximumFractionDigits: 0 }).format(I.amount);
|
|
5532
|
-
let
|
|
5533
|
-
i(12, Ge = I.isModified ? `${r("popupPendingUpdate")} ${new Date(I.expiryDate).toLocaleDateString("en-de", { hour: "numeric", minute: "numeric" }).replaceAll("/", ".")} (GMT)` :
|
|
5587
|
+
let $ = r("gamingLimits.popupImmediateUpdate").replace("{selectedLimit}", r(`gamingLimits.${L}`).toLowerCase()).replace("{updatedAmount}", k).replace("{currency}", _t[I.currency] || I.currency).replace("{selectedPeriod}", r(`gamingLimits.${w}`).toLowerCase());
|
|
5588
|
+
i(12, Ge = I.isModified ? `${r("popupPendingUpdate")} ${new Date(I.expiryDate).toLocaleDateString("en-de", { hour: "numeric", minute: "numeric" }).replaceAll("/", ".")} (GMT)` : $);
|
|
5534
5589
|
} else
|
|
5535
5590
|
console.error("Couldn't populate popupContent");
|
|
5536
|
-
i(11,
|
|
5537
|
-
},
|
|
5591
|
+
i(11, $e = !0);
|
|
5592
|
+
}, Lt = (g) => {
|
|
5538
5593
|
const v = {
|
|
5539
5594
|
wager: "wagering",
|
|
5540
5595
|
loss: "loss",
|
|
5541
5596
|
deposit: "deposit"
|
|
5542
5597
|
};
|
|
5543
5598
|
i(10, K = !0), i(7, E = !0);
|
|
5544
|
-
let I = new URL(`/v2/player/${c}/limits/${v[g.limitType]}?periods=${g.period}`,
|
|
5599
|
+
let I = new URL(`/v2/player/${c}/limits/${v[g.limitType]}?periods=${g.period}`, l), k = {
|
|
5545
5600
|
method: "DELETE",
|
|
5546
5601
|
headers: {
|
|
5547
5602
|
"X-SessionID": a,
|
|
@@ -5549,97 +5604,97 @@ function is(e, t, i) {
|
|
|
5549
5604
|
Accept: "application/json"
|
|
5550
5605
|
}
|
|
5551
5606
|
};
|
|
5552
|
-
fetch(I.href, k).then((
|
|
5607
|
+
fetch(I.href, k).then(($) => $.json()).then(($) => {
|
|
5553
5608
|
ze();
|
|
5554
|
-
}).catch((
|
|
5555
|
-
console.log(
|
|
5609
|
+
}).catch(($) => {
|
|
5610
|
+
console.log($), i(7, E = !1), i(8, G = !0);
|
|
5556
5611
|
});
|
|
5557
|
-
},
|
|
5558
|
-
i(11,
|
|
5559
|
-
},
|
|
5560
|
-
|
|
5612
|
+
}, ir = () => {
|
|
5613
|
+
i(11, $e = i(10, K = !1));
|
|
5614
|
+
}, rr = () => {
|
|
5615
|
+
Po(n);
|
|
5561
5616
|
};
|
|
5562
|
-
|
|
5617
|
+
Tr(() => () => {
|
|
5563
5618
|
});
|
|
5564
|
-
const
|
|
5565
|
-
function
|
|
5566
|
-
L =
|
|
5619
|
+
const nr = (g) => Lt(g);
|
|
5620
|
+
function or() {
|
|
5621
|
+
L = Bt(this), i(1, L), i(15, P);
|
|
5567
5622
|
}
|
|
5568
|
-
function
|
|
5569
|
-
w =
|
|
5623
|
+
function sr() {
|
|
5624
|
+
w = Bt(this), i(2, w), i(1, L);
|
|
5570
5625
|
}
|
|
5571
|
-
function
|
|
5572
|
-
H =
|
|
5626
|
+
function ar() {
|
|
5627
|
+
H = pi(this.value), i(3, H);
|
|
5573
5628
|
}
|
|
5574
|
-
function
|
|
5629
|
+
function lr(g) {
|
|
5575
5630
|
Oe[g ? "unshift" : "push"](() => {
|
|
5576
|
-
|
|
5631
|
+
B = g, i(4, B);
|
|
5577
5632
|
});
|
|
5578
5633
|
}
|
|
5579
|
-
function
|
|
5634
|
+
function ur(g) {
|
|
5580
5635
|
Oe[g ? "unshift" : "push"](() => {
|
|
5581
5636
|
p = g, i(0, p);
|
|
5582
5637
|
});
|
|
5583
5638
|
}
|
|
5584
5639
|
return e.$$set = (g) => {
|
|
5585
|
-
"lang" in g && i(21, n = g.lang), "currency" in g && i(22, o = g.currency), "limits" in g && i(23, s = g.limits), "session" in g && i(24, a = g.session), "userid" in g && i(25, c = g.userid), "endpoint" in g && i(26,
|
|
5640
|
+
"lang" in g && i(21, n = g.lang), "currency" in g && i(22, o = g.currency), "limits" in g && i(23, s = g.limits), "session" in g && i(24, a = g.session), "userid" in g && i(25, c = g.userid), "endpoint" in g && i(26, l = g.endpoint), "clientstyling" in g && i(27, u = g.clientstyling), "clientstylingurl" in g && i(28, h = g.clientstylingurl), "translationurl" in g && i(29, f = g.translationurl), "mbsource" in g && i(30, m = g.mbsource);
|
|
5586
5641
|
}, e.$$.update = () => {
|
|
5587
5642
|
e.$$.dirty[0] & /*limits*/
|
|
5588
|
-
8388608 && s &&
|
|
5589
|
-
2097152 && n &&
|
|
5590
|
-
117440512 && c && a &&
|
|
5591
|
-
134217729 &&
|
|
5592
|
-
268435457 && h && p &&
|
|
5593
|
-
1073741825 && m && p &&
|
|
5594
|
-
536870912 && f &&
|
|
5643
|
+
8388608 && s && Yi(), e.$$.dirty[0] & /*lang*/
|
|
5644
|
+
2097152 && n && rr(), e.$$.dirty[0] & /*userid, session, endpoint*/
|
|
5645
|
+
117440512 && c && a && l && ze(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5646
|
+
134217729 && u && p && Go(p, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5647
|
+
268435457 && h && p && zo(p, h), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5648
|
+
1073741825 && m && p && Wo(p, `${m}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
5649
|
+
536870912 && f && Zi();
|
|
5595
5650
|
}, [
|
|
5596
5651
|
p,
|
|
5597
5652
|
L,
|
|
5598
5653
|
w,
|
|
5599
5654
|
H,
|
|
5600
|
-
|
|
5655
|
+
B,
|
|
5601
5656
|
M,
|
|
5602
5657
|
D,
|
|
5603
5658
|
E,
|
|
5604
5659
|
G,
|
|
5605
5660
|
C,
|
|
5606
5661
|
K,
|
|
5607
|
-
|
|
5662
|
+
$e,
|
|
5608
5663
|
Ge,
|
|
5609
5664
|
r,
|
|
5610
5665
|
R,
|
|
5611
5666
|
P,
|
|
5612
|
-
|
|
5613
|
-
Xi,
|
|
5667
|
+
qi,
|
|
5614
5668
|
Ji,
|
|
5615
|
-
|
|
5616
|
-
|
|
5669
|
+
tr,
|
|
5670
|
+
Lt,
|
|
5671
|
+
ir,
|
|
5617
5672
|
n,
|
|
5618
5673
|
o,
|
|
5619
5674
|
s,
|
|
5620
5675
|
a,
|
|
5621
5676
|
c,
|
|
5622
|
-
u,
|
|
5623
5677
|
l,
|
|
5678
|
+
u,
|
|
5624
5679
|
h,
|
|
5625
5680
|
f,
|
|
5626
5681
|
m,
|
|
5627
|
-
er,
|
|
5628
|
-
tr,
|
|
5629
|
-
ir,
|
|
5630
|
-
rr,
|
|
5631
5682
|
nr,
|
|
5632
|
-
or
|
|
5683
|
+
or,
|
|
5684
|
+
sr,
|
|
5685
|
+
ar,
|
|
5686
|
+
lr,
|
|
5687
|
+
ur
|
|
5633
5688
|
];
|
|
5634
5689
|
}
|
|
5635
|
-
class
|
|
5690
|
+
class ss extends kr {
|
|
5636
5691
|
constructor(t) {
|
|
5637
|
-
super(),
|
|
5692
|
+
super(), Mr(
|
|
5638
5693
|
this,
|
|
5639
5694
|
t,
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5695
|
+
os,
|
|
5696
|
+
ns,
|
|
5697
|
+
mi,
|
|
5643
5698
|
{
|
|
5644
5699
|
lang: 21,
|
|
5645
5700
|
currency: 22,
|
|
@@ -5652,7 +5707,7 @@ class rs extends Hr {
|
|
|
5652
5707
|
translationurl: 29,
|
|
5653
5708
|
mbsource: 30
|
|
5654
5709
|
},
|
|
5655
|
-
|
|
5710
|
+
Vo,
|
|
5656
5711
|
[-1, -1]
|
|
5657
5712
|
);
|
|
5658
5713
|
}
|
|
@@ -5717,7 +5772,7 @@ class rs extends Hr {
|
|
|
5717
5772
|
this.$$set({ mbsource: t }), X();
|
|
5718
5773
|
}
|
|
5719
5774
|
}
|
|
5720
|
-
|
|
5775
|
+
Cr(ss, { lang: {}, currency: {}, limits: {}, session: {}, userid: {}, endpoint: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
5721
5776
|
export {
|
|
5722
|
-
|
|
5777
|
+
ss as default
|
|
5723
5778
|
};
|