@everymatrix/player-account-gaming-limits-page-2-gmcore 1.87.26 → 1.87.27
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-CDbMnJ9r.js → PlayerAccountGamingLimitsPage2Gmcore-D1Yk-WpT.js} +1028 -1000
- package/components/{PlayerAccountGamingLimitsPage2Gmcore-CAB8ISDt.js → PlayerAccountGamingLimitsPage2Gmcore-D7aqxrBo.js} +1044 -1015
- package/components/PlayerAccountGamingLimitsPage2Gmcore-DlKNE9sh.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-Cx5OiLHn.cjs +0 -19
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
function j() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function ai(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Tt() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function K(e) {
|
|
10
|
+
e.forEach(ai);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function yt(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function ui(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function sr(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function li(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const r of t)
|
|
24
24
|
r(void 0);
|
|
@@ -27,20 +27,20 @@ function ai(e, ...t) {
|
|
|
27
27
|
const i = e.subscribe(...t);
|
|
28
28
|
return i.unsubscribe ? () => i.unsubscribe() : i;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function ar(e, t, i) {
|
|
31
|
+
e.$$.on_destroy.push(li(t, i));
|
|
32
32
|
}
|
|
33
33
|
function d(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const r =
|
|
36
|
+
function ur(e, t, i) {
|
|
37
|
+
const r = lr(e);
|
|
38
38
|
if (!r.getElementById(t)) {
|
|
39
39
|
const n = v("style");
|
|
40
|
-
n.id = t, n.textContent = i,
|
|
40
|
+
n.id = t, n.textContent = i, cr(r, n);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function lr(e) {
|
|
44
44
|
if (!e)
|
|
45
45
|
return document;
|
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -50,37 +50,37 @@ function ar(e) {
|
|
|
50
50
|
t
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function cr(e, t) {
|
|
54
54
|
return d(
|
|
55
55
|
/** @type {Document} */
|
|
56
56
|
e.head || e,
|
|
57
57
|
t
|
|
58
58
|
), t.sheet;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function B(e, t, i) {
|
|
61
61
|
e.insertBefore(t, i || null);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function A(e) {
|
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function De(e, t) {
|
|
67
67
|
for (let i = 0; i < e.length; i += 1)
|
|
68
68
|
e[i] && e[i].d(t);
|
|
69
69
|
}
|
|
70
70
|
function v(e) {
|
|
71
71
|
return document.createElement(e);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function de(e) {
|
|
74
74
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function F(e) {
|
|
77
77
|
return document.createTextNode(e);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return
|
|
79
|
+
function $() {
|
|
80
|
+
return F(" ");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
return
|
|
82
|
+
function hr() {
|
|
83
|
+
return F("");
|
|
84
84
|
}
|
|
85
85
|
function Y(e, t, i, r) {
|
|
86
86
|
return e.addEventListener(t, i, r), () => e.removeEventListener(t, i, r);
|
|
@@ -88,23 +88,23 @@ function Y(e, t, i, r) {
|
|
|
88
88
|
function g(e, t, i) {
|
|
89
89
|
i == null ? e.removeAttribute(t) : e.getAttribute(t) !== i && e.setAttribute(t, i);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function ci(e) {
|
|
92
92
|
return e === "" ? null : +e;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function fr(e) {
|
|
95
95
|
return Array.from(e.childNodes);
|
|
96
96
|
}
|
|
97
97
|
function W(e, t) {
|
|
98
98
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
99
99
|
t);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function ye(e, t) {
|
|
102
102
|
e.value = t ?? "";
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Xe(e, t, i, r) {
|
|
105
105
|
i == null ? e.style.removeProperty(t) : e.style.setProperty(t, i, "");
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function Ie(e, t, i) {
|
|
108
108
|
for (let r = 0; r < e.options.length; r += 1) {
|
|
109
109
|
const n = e.options[r];
|
|
110
110
|
if (n.__value === t) {
|
|
@@ -114,11 +114,11 @@ function Ne(e, t, i) {
|
|
|
114
114
|
}
|
|
115
115
|
(!i || t !== void 0) && (e.selectedIndex = -1);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function wt(e) {
|
|
118
118
|
const t = e.querySelector(":checked");
|
|
119
119
|
return t && t.__value;
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function pr(e) {
|
|
122
122
|
const t = {};
|
|
123
123
|
return e.childNodes.forEach(
|
|
124
124
|
/** @param {Element} node */
|
|
@@ -127,90 +127,90 @@ function hr(e) {
|
|
|
127
127
|
}
|
|
128
128
|
), t;
|
|
129
129
|
}
|
|
130
|
-
let
|
|
131
|
-
function
|
|
132
|
-
|
|
130
|
+
let ve;
|
|
131
|
+
function ge(e) {
|
|
132
|
+
ve = e;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
if (!
|
|
134
|
+
function mr() {
|
|
135
|
+
if (!ve)
|
|
136
136
|
throw new Error("Function called outside component initialization");
|
|
137
|
-
return
|
|
137
|
+
return ve;
|
|
138
138
|
}
|
|
139
|
-
function
|
|
140
|
-
|
|
139
|
+
function dr(e) {
|
|
140
|
+
mr().$$.on_mount.push(e);
|
|
141
141
|
}
|
|
142
|
-
const ne = [],
|
|
143
|
-
let
|
|
144
|
-
const
|
|
145
|
-
let
|
|
146
|
-
function
|
|
147
|
-
|
|
142
|
+
const ne = [], He = [];
|
|
143
|
+
let se = [];
|
|
144
|
+
const St = [], br = /* @__PURE__ */ Promise.resolve();
|
|
145
|
+
let it = !1;
|
|
146
|
+
function gr() {
|
|
147
|
+
it || (it = !0, br.then(V));
|
|
148
148
|
}
|
|
149
|
-
function
|
|
150
|
-
|
|
149
|
+
function _e(e) {
|
|
150
|
+
se.push(e);
|
|
151
151
|
}
|
|
152
|
-
const
|
|
152
|
+
const Ze = /* @__PURE__ */ new Set();
|
|
153
153
|
let ie = 0;
|
|
154
154
|
function V() {
|
|
155
155
|
if (ie !== 0)
|
|
156
156
|
return;
|
|
157
|
-
const e =
|
|
157
|
+
const e = ve;
|
|
158
158
|
do {
|
|
159
159
|
try {
|
|
160
160
|
for (; ie < ne.length; ) {
|
|
161
161
|
const t = ne[ie];
|
|
162
|
-
ie++,
|
|
162
|
+
ie++, ge(t), yr(t.$$);
|
|
163
163
|
}
|
|
164
164
|
} catch (t) {
|
|
165
165
|
throw ne.length = 0, ie = 0, t;
|
|
166
166
|
}
|
|
167
|
-
for (
|
|
168
|
-
|
|
169
|
-
for (let t = 0; t <
|
|
170
|
-
const i =
|
|
171
|
-
|
|
167
|
+
for (ge(null), ne.length = 0, ie = 0; He.length; )
|
|
168
|
+
He.pop()();
|
|
169
|
+
for (let t = 0; t < se.length; t += 1) {
|
|
170
|
+
const i = se[t];
|
|
171
|
+
Ze.has(i) || (Ze.add(i), i());
|
|
172
172
|
}
|
|
173
|
-
|
|
173
|
+
se.length = 0;
|
|
174
174
|
} while (ne.length);
|
|
175
|
-
for (;
|
|
176
|
-
|
|
177
|
-
|
|
175
|
+
for (; St.length; )
|
|
176
|
+
St.pop()();
|
|
177
|
+
it = !1, Ze.clear(), ge(e);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function yr(e) {
|
|
180
180
|
if (e.fragment !== null) {
|
|
181
|
-
e.update(),
|
|
181
|
+
e.update(), K(e.before_update);
|
|
182
182
|
const t = e.dirty;
|
|
183
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
183
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(_e);
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function vr(e) {
|
|
187
187
|
const t = [], i = [];
|
|
188
|
-
|
|
188
|
+
se.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : i.push(r)), i.forEach((r) => r()), se = t;
|
|
189
189
|
}
|
|
190
|
-
const
|
|
191
|
-
function
|
|
192
|
-
e && e.i && (
|
|
190
|
+
const _r = /* @__PURE__ */ new Set();
|
|
191
|
+
function Er(e, t) {
|
|
192
|
+
e && e.i && (_r.delete(e), e.i(t));
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function Q(e) {
|
|
195
195
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function Lr(e, t, i) {
|
|
198
198
|
const { fragment: r, after_update: n } = e.$$;
|
|
199
|
-
r && r.m(t, i),
|
|
200
|
-
const o = e.$$.on_mount.map(
|
|
201
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
202
|
-
}), n.forEach(
|
|
199
|
+
r && r.m(t, i), _e(() => {
|
|
200
|
+
const o = e.$$.on_mount.map(ai).filter(yt);
|
|
201
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : K(o), e.$$.on_mount = [];
|
|
202
|
+
}), n.forEach(_e);
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function xr(e, t) {
|
|
205
205
|
const i = e.$$;
|
|
206
|
-
i.fragment !== null && (
|
|
206
|
+
i.fragment !== null && (vr(i.after_update), K(i.on_destroy), i.fragment && i.fragment.d(t), i.on_destroy = i.fragment = null, i.ctx = []);
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
e.$$.dirty[0] === -1 && (ne.push(e),
|
|
208
|
+
function Tr(e, t) {
|
|
209
|
+
e.$$.dirty[0] === -1 && (ne.push(e), gr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
212
|
-
const h =
|
|
213
|
-
|
|
211
|
+
function wr(e, t, i, r, n, o, s = null, a = [-1]) {
|
|
212
|
+
const h = ve;
|
|
213
|
+
ge(e);
|
|
214
214
|
const l = e.$$ = {
|
|
215
215
|
fragment: null,
|
|
216
216
|
ctx: [],
|
|
@@ -218,7 +218,7 @@ function xr(e, t, i, r, n, o, s = null, a = [-1]) {
|
|
|
218
218
|
props: o,
|
|
219
219
|
update: j,
|
|
220
220
|
not_equal: n,
|
|
221
|
-
bound:
|
|
221
|
+
bound: Tt(),
|
|
222
222
|
// lifecycle
|
|
223
223
|
on_mount: [],
|
|
224
224
|
on_destroy: [],
|
|
@@ -227,28 +227,28 @@ function xr(e, t, i, r, n, o, s = null, a = [-1]) {
|
|
|
227
227
|
after_update: [],
|
|
228
228
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
229
229
|
// everything else
|
|
230
|
-
callbacks:
|
|
230
|
+
callbacks: Tt(),
|
|
231
231
|
dirty: a,
|
|
232
232
|
skip_bound: !1,
|
|
233
233
|
root: t.target || h.$$.root
|
|
234
234
|
};
|
|
235
235
|
s && s(l.root);
|
|
236
236
|
let u = !1;
|
|
237
|
-
if (l.ctx = i ? i(e, t.props || {}, (c,
|
|
238
|
-
const
|
|
239
|
-
return l.ctx && n(l.ctx[c], l.ctx[c] =
|
|
240
|
-
}) : [], l.update(), u = !0,
|
|
237
|
+
if (l.ctx = i ? i(e, t.props || {}, (c, p, ...f) => {
|
|
238
|
+
const m = f.length ? f[0] : p;
|
|
239
|
+
return l.ctx && n(l.ctx[c], l.ctx[c] = m) && (!l.skip_bound && l.bound[c] && l.bound[c](m), u && Tr(e, c)), p;
|
|
240
|
+
}) : [], l.update(), u = !0, K(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
|
|
241
241
|
if (t.hydrate) {
|
|
242
|
-
const c =
|
|
243
|
-
l.fragment && l.fragment.l(c), c.forEach(
|
|
242
|
+
const c = fr(t.target);
|
|
243
|
+
l.fragment && l.fragment.l(c), c.forEach(A);
|
|
244
244
|
} else
|
|
245
245
|
l.fragment && l.fragment.c();
|
|
246
|
-
t.intro &&
|
|
246
|
+
t.intro && Er(e.$$.fragment), Lr(e, t.target, t.anchor), V();
|
|
247
247
|
}
|
|
248
|
-
|
|
248
|
+
ge(h);
|
|
249
249
|
}
|
|
250
|
-
let
|
|
251
|
-
typeof HTMLElement == "function" && (
|
|
250
|
+
let hi;
|
|
251
|
+
typeof HTMLElement == "function" && (hi = class extends HTMLElement {
|
|
252
252
|
/** The Svelte component constructor */
|
|
253
253
|
$$ctor;
|
|
254
254
|
/** Slots */
|
|
@@ -297,22 +297,22 @@ typeof HTMLElement == "function" && (li = class extends HTMLElement {
|
|
|
297
297
|
* @param {HTMLElement} [anchor]
|
|
298
298
|
*/
|
|
299
299
|
m: function(h, l) {
|
|
300
|
-
|
|
300
|
+
B(h, o, l);
|
|
301
301
|
},
|
|
302
302
|
d: function(h) {
|
|
303
|
-
h &&
|
|
303
|
+
h && A(o);
|
|
304
304
|
}
|
|
305
305
|
};
|
|
306
306
|
};
|
|
307
307
|
};
|
|
308
308
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
309
309
|
return;
|
|
310
|
-
const t = {}, i =
|
|
310
|
+
const t = {}, i = pr(this);
|
|
311
311
|
for (const n of this.$$s)
|
|
312
312
|
n in i && (t[n] = [e(n)]);
|
|
313
313
|
for (const n of this.attributes) {
|
|
314
314
|
const o = this.$$g_p(n.name);
|
|
315
|
-
o in this.$$d || (this.$$d[o] =
|
|
315
|
+
o in this.$$d || (this.$$d[o] = Ae(o, n.value, this.$$p_d, "toProp"));
|
|
316
316
|
}
|
|
317
317
|
for (const n in this.$$p_d)
|
|
318
318
|
!(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
|
|
@@ -330,7 +330,7 @@ typeof HTMLElement == "function" && (li = class extends HTMLElement {
|
|
|
330
330
|
this.$$r = !0;
|
|
331
331
|
for (const n in this.$$p_d)
|
|
332
332
|
if (this.$$d[n] = this.$$c.$$.ctx[this.$$c.$$.props[n]], this.$$p_d[n].reflect) {
|
|
333
|
-
const o =
|
|
333
|
+
const o = Ae(
|
|
334
334
|
n,
|
|
335
335
|
this.$$d[n],
|
|
336
336
|
this.$$p_d,
|
|
@@ -352,7 +352,7 @@ typeof HTMLElement == "function" && (li = class extends HTMLElement {
|
|
|
352
352
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
353
353
|
// and setting attributes through setAttribute etc, this is helpful
|
|
354
354
|
attributeChangedCallback(e, t, i) {
|
|
355
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
355
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ae(e, i, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
356
356
|
}
|
|
357
357
|
disconnectedCallback() {
|
|
358
358
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -365,7 +365,7 @@ typeof HTMLElement == "function" && (li = class extends HTMLElement {
|
|
|
365
365
|
) || e;
|
|
366
366
|
}
|
|
367
367
|
});
|
|
368
|
-
function
|
|
368
|
+
function Ae(e, t, i, r) {
|
|
369
369
|
const n = i[e]?.type;
|
|
370
370
|
if (t = n === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !i[e])
|
|
371
371
|
return t;
|
|
@@ -394,8 +394,8 @@ function Se(e, t, i, r) {
|
|
|
394
394
|
return t;
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
function
|
|
398
|
-
let s = class extends
|
|
397
|
+
function Sr(e, t, i, r, n, o) {
|
|
398
|
+
let s = class extends hi {
|
|
399
399
|
constructor() {
|
|
400
400
|
super(e, i, n), this.$$p_d = t;
|
|
401
401
|
}
|
|
@@ -411,7 +411,7 @@ function Tr(e, t, i, r, n, o) {
|
|
|
411
411
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
412
412
|
},
|
|
413
413
|
set(h) {
|
|
414
|
-
h =
|
|
414
|
+
h = Ae(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
|
|
415
415
|
}
|
|
416
416
|
});
|
|
417
417
|
}), r.forEach((a) => {
|
|
@@ -423,7 +423,7 @@ function Tr(e, t, i, r, n, o) {
|
|
|
423
423
|
}), e.element = /** @type {any} */
|
|
424
424
|
s, s;
|
|
425
425
|
}
|
|
426
|
-
class
|
|
426
|
+
class Pr {
|
|
427
427
|
/**
|
|
428
428
|
* ### PRIVATE API
|
|
429
429
|
*
|
|
@@ -442,7 +442,7 @@ class wr {
|
|
|
442
442
|
$$set = void 0;
|
|
443
443
|
/** @returns {void} */
|
|
444
444
|
$destroy() {
|
|
445
|
-
|
|
445
|
+
xr(this, 1), this.$destroy = j;
|
|
446
446
|
}
|
|
447
447
|
/**
|
|
448
448
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -451,7 +451,7 @@ class wr {
|
|
|
451
451
|
* @returns {() => void}
|
|
452
452
|
*/
|
|
453
453
|
$on(t, i) {
|
|
454
|
-
if (!
|
|
454
|
+
if (!yt(i))
|
|
455
455
|
return j;
|
|
456
456
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
457
457
|
return r.push(i), () => {
|
|
@@ -464,11 +464,11 @@ class wr {
|
|
|
464
464
|
* @returns {void}
|
|
465
465
|
*/
|
|
466
466
|
$set(t) {
|
|
467
|
-
this.$$set && !
|
|
467
|
+
this.$$set && !sr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
|
-
const
|
|
471
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
470
|
+
const Ar = "4";
|
|
471
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ar);
|
|
472
472
|
const X = {
|
|
473
473
|
deposit: {
|
|
474
474
|
title: "Deposit Limit",
|
|
@@ -495,16 +495,16 @@ const X = {
|
|
|
495
495
|
periods: ["Monthly"]
|
|
496
496
|
}
|
|
497
497
|
}, re = [];
|
|
498
|
-
function
|
|
498
|
+
function Br(e, t) {
|
|
499
499
|
return {
|
|
500
|
-
subscribe:
|
|
500
|
+
subscribe: Re(e, t).subscribe
|
|
501
501
|
};
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function Re(e, t = j) {
|
|
504
504
|
let i;
|
|
505
505
|
const r = /* @__PURE__ */ new Set();
|
|
506
506
|
function n(a) {
|
|
507
|
-
if (
|
|
507
|
+
if (ui(e, a) && (e = a, i)) {
|
|
508
508
|
const h = !re.length;
|
|
509
509
|
for (const l of r)
|
|
510
510
|
l[1](), re.push(l, e);
|
|
@@ -526,123 +526,123 @@ function Ce(e, t = j) {
|
|
|
526
526
|
}
|
|
527
527
|
return { set: n, update: o, subscribe: s };
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function he(e, t, i) {
|
|
530
530
|
const r = !Array.isArray(e), n = r ? [e] : e;
|
|
531
531
|
if (!n.every(Boolean))
|
|
532
532
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
533
533
|
const o = t.length < 2;
|
|
534
|
-
return
|
|
534
|
+
return Br(i, (s, a) => {
|
|
535
535
|
let h = !1;
|
|
536
536
|
const l = [];
|
|
537
537
|
let u = 0, c = j;
|
|
538
|
-
const
|
|
538
|
+
const p = () => {
|
|
539
539
|
if (u)
|
|
540
540
|
return;
|
|
541
541
|
c();
|
|
542
|
-
const
|
|
543
|
-
o ? s(
|
|
542
|
+
const m = t(r ? l[0] : l, s, a);
|
|
543
|
+
o ? s(m) : c = yt(m) ? m : j;
|
|
544
544
|
}, f = n.map(
|
|
545
|
-
(
|
|
546
|
-
|
|
545
|
+
(m, _) => li(
|
|
546
|
+
m,
|
|
547
547
|
(R) => {
|
|
548
|
-
l[_] = R, u &= ~(1 << _), h &&
|
|
548
|
+
l[_] = R, u &= ~(1 << _), h && p();
|
|
549
549
|
},
|
|
550
550
|
() => {
|
|
551
551
|
u |= 1 << _;
|
|
552
552
|
}
|
|
553
553
|
)
|
|
554
554
|
);
|
|
555
|
-
return h = !0,
|
|
556
|
-
|
|
555
|
+
return h = !0, p(), function() {
|
|
556
|
+
K(f), c(), h = !1;
|
|
557
557
|
};
|
|
558
558
|
});
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function Nr(e) {
|
|
561
561
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
562
562
|
}
|
|
563
|
-
var
|
|
564
|
-
return
|
|
563
|
+
var Or = function(t) {
|
|
564
|
+
return Ir(t) && !Hr(t);
|
|
565
565
|
};
|
|
566
|
-
function
|
|
566
|
+
function Ir(e) {
|
|
567
567
|
return !!e && typeof e == "object";
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function Hr(e) {
|
|
570
570
|
var t = Object.prototype.toString.call(e);
|
|
571
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
572
|
-
}
|
|
573
|
-
var Ir = typeof Symbol == "function" && Symbol.for, Hr = Ir ? Symbol.for("react.element") : 60103;
|
|
574
|
-
function Mr(e) {
|
|
575
|
-
return e.$$typeof === Hr;
|
|
571
|
+
return t === "[object RegExp]" || t === "[object Date]" || kr(e);
|
|
576
572
|
}
|
|
573
|
+
var Mr = typeof Symbol == "function" && Symbol.for, Cr = Mr ? Symbol.for("react.element") : 60103;
|
|
577
574
|
function kr(e) {
|
|
575
|
+
return e.$$typeof === Cr;
|
|
576
|
+
}
|
|
577
|
+
function Dr(e) {
|
|
578
578
|
return Array.isArray(e) ? [] : {};
|
|
579
579
|
}
|
|
580
|
-
function
|
|
581
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
580
|
+
function Ee(e, t) {
|
|
581
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ae(Dr(e), e, t) : e;
|
|
582
582
|
}
|
|
583
|
-
function
|
|
583
|
+
function Rr(e, t, i) {
|
|
584
584
|
return e.concat(t).map(function(r) {
|
|
585
|
-
return
|
|
585
|
+
return Ee(r, i);
|
|
586
586
|
});
|
|
587
587
|
}
|
|
588
|
-
function
|
|
588
|
+
function jr(e, t) {
|
|
589
589
|
if (!t.customMerge)
|
|
590
|
-
return
|
|
590
|
+
return ae;
|
|
591
591
|
var i = t.customMerge(e);
|
|
592
|
-
return typeof i == "function" ? i :
|
|
592
|
+
return typeof i == "function" ? i : ae;
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function Ur(e) {
|
|
595
595
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
596
596
|
return Object.propertyIsEnumerable.call(e, t);
|
|
597
597
|
}) : [];
|
|
598
598
|
}
|
|
599
|
-
function
|
|
600
|
-
return Object.keys(e).concat(
|
|
599
|
+
function Pt(e) {
|
|
600
|
+
return Object.keys(e).concat(Ur(e));
|
|
601
601
|
}
|
|
602
|
-
function
|
|
602
|
+
function fi(e, t) {
|
|
603
603
|
try {
|
|
604
604
|
return t in e;
|
|
605
605
|
} catch {
|
|
606
606
|
return !1;
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
|
-
function
|
|
610
|
-
return
|
|
609
|
+
function $r(e, t) {
|
|
610
|
+
return fi(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
611
611
|
}
|
|
612
|
-
function
|
|
612
|
+
function Fr(e, t, i) {
|
|
613
613
|
var r = {};
|
|
614
|
-
return i.isMergeableObject(e) &&
|
|
615
|
-
r[n] =
|
|
616
|
-
}),
|
|
617
|
-
|
|
614
|
+
return i.isMergeableObject(e) && Pt(e).forEach(function(n) {
|
|
615
|
+
r[n] = Ee(e[n], i);
|
|
616
|
+
}), Pt(t).forEach(function(n) {
|
|
617
|
+
$r(e, n) || (fi(e, n) && i.isMergeableObject(t[n]) ? r[n] = jr(n, i)(e[n], t[n], i) : r[n] = Ee(t[n], i));
|
|
618
618
|
}), r;
|
|
619
619
|
}
|
|
620
|
-
function
|
|
621
|
-
i = i || {}, i.arrayMerge = i.arrayMerge ||
|
|
620
|
+
function ae(e, t, i) {
|
|
621
|
+
i = i || {}, i.arrayMerge = i.arrayMerge || Rr, i.isMergeableObject = i.isMergeableObject || Or, i.cloneUnlessOtherwiseSpecified = Ee;
|
|
622
622
|
var r = Array.isArray(t), n = Array.isArray(e), o = r === n;
|
|
623
|
-
return o ? r ? i.arrayMerge(e, t, i) :
|
|
623
|
+
return o ? r ? i.arrayMerge(e, t, i) : Fr(e, t, i) : Ee(t, i);
|
|
624
624
|
}
|
|
625
|
-
|
|
625
|
+
ae.all = function(t, i) {
|
|
626
626
|
if (!Array.isArray(t))
|
|
627
627
|
throw new Error("first argument should be an array");
|
|
628
628
|
return t.reduce(function(r, n) {
|
|
629
|
-
return
|
|
629
|
+
return ae(r, n, i);
|
|
630
630
|
}, {});
|
|
631
631
|
};
|
|
632
|
-
var
|
|
633
|
-
const
|
|
634
|
-
var
|
|
635
|
-
return
|
|
632
|
+
var Gr = ae, zr = Gr;
|
|
633
|
+
const Wr = /* @__PURE__ */ Nr(zr);
|
|
634
|
+
var rt = function(e, t) {
|
|
635
|
+
return rt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, r) {
|
|
636
636
|
i.__proto__ = r;
|
|
637
637
|
} || function(i, r) {
|
|
638
638
|
for (var n in r)
|
|
639
639
|
Object.prototype.hasOwnProperty.call(r, n) && (i[n] = r[n]);
|
|
640
|
-
},
|
|
640
|
+
}, rt(e, t);
|
|
641
641
|
};
|
|
642
|
-
function
|
|
642
|
+
function je(e, t) {
|
|
643
643
|
if (typeof t != "function" && t !== null)
|
|
644
644
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
645
|
-
|
|
645
|
+
rt(e, t);
|
|
646
646
|
function i() {
|
|
647
647
|
this.constructor = e;
|
|
648
648
|
}
|
|
@@ -658,7 +658,7 @@ var Z = function() {
|
|
|
658
658
|
return t;
|
|
659
659
|
}, Z.apply(this, arguments);
|
|
660
660
|
};
|
|
661
|
-
function
|
|
661
|
+
function Vr(e, t) {
|
|
662
662
|
var i = {};
|
|
663
663
|
for (var r in e)
|
|
664
664
|
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (i[r] = e[r]);
|
|
@@ -667,43 +667,43 @@ function zr(e, t) {
|
|
|
667
667
|
t.indexOf(r[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[n]) && (i[r[n]] = e[r[n]]);
|
|
668
668
|
return i;
|
|
669
669
|
}
|
|
670
|
-
function
|
|
670
|
+
function Ye(e, t, i) {
|
|
671
671
|
if (i || arguments.length === 2)
|
|
672
672
|
for (var r = 0, n = t.length, o; r < n; r++)
|
|
673
673
|
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
674
674
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
675
675
|
}
|
|
676
|
-
function
|
|
677
|
-
var i = t && t.cache ? t.cache :
|
|
676
|
+
function qe(e, t) {
|
|
677
|
+
var i = t && t.cache ? t.cache : Kr, r = t && t.serializer ? t.serializer : Jr, n = t && t.strategy ? t.strategy : Yr;
|
|
678
678
|
return n(e, {
|
|
679
679
|
cache: i,
|
|
680
680
|
serializer: r
|
|
681
681
|
});
|
|
682
682
|
}
|
|
683
|
-
function
|
|
683
|
+
function Xr(e) {
|
|
684
684
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
685
685
|
}
|
|
686
|
-
function
|
|
687
|
-
var n =
|
|
686
|
+
function Zr(e, t, i, r) {
|
|
687
|
+
var n = Xr(r) ? r : i(r), o = t.get(n);
|
|
688
688
|
return typeof o > "u" && (o = e.call(this, r), t.set(n, o)), o;
|
|
689
689
|
}
|
|
690
|
-
function
|
|
690
|
+
function pi(e, t, i) {
|
|
691
691
|
var r = Array.prototype.slice.call(arguments, 3), n = i(r), o = t.get(n);
|
|
692
692
|
return typeof o > "u" && (o = e.apply(this, r), t.set(n, o)), o;
|
|
693
693
|
}
|
|
694
|
-
function
|
|
694
|
+
function mi(e, t, i, r, n) {
|
|
695
695
|
return i.bind(t, e, r, n);
|
|
696
696
|
}
|
|
697
|
-
function
|
|
698
|
-
var i = e.length === 1 ?
|
|
699
|
-
return
|
|
697
|
+
function Yr(e, t) {
|
|
698
|
+
var i = e.length === 1 ? Zr : pi;
|
|
699
|
+
return mi(e, this, i, t.cache.create(), t.serializer);
|
|
700
700
|
}
|
|
701
|
-
function
|
|
702
|
-
return
|
|
701
|
+
function qr(e, t) {
|
|
702
|
+
return mi(e, this, pi, t.cache.create(), t.serializer);
|
|
703
703
|
}
|
|
704
|
-
var
|
|
704
|
+
var Jr = function() {
|
|
705
705
|
return JSON.stringify(arguments);
|
|
706
|
-
},
|
|
706
|
+
}, Qr = (
|
|
707
707
|
/** @class */
|
|
708
708
|
function() {
|
|
709
709
|
function e() {
|
|
@@ -715,71 +715,71 @@ var Yr = function() {
|
|
|
715
715
|
this.cache[t] = i;
|
|
716
716
|
}, e;
|
|
717
717
|
}()
|
|
718
|
-
),
|
|
718
|
+
), Kr = {
|
|
719
719
|
create: function() {
|
|
720
|
-
return new
|
|
720
|
+
return new Qr();
|
|
721
721
|
}
|
|
722
|
-
},
|
|
723
|
-
variadic:
|
|
724
|
-
},
|
|
725
|
-
return
|
|
722
|
+
}, Je = {
|
|
723
|
+
variadic: qr
|
|
724
|
+
}, Me = function() {
|
|
725
|
+
return Me = Object.assign || function(t) {
|
|
726
726
|
for (var i, r = 1, n = arguments.length; r < n; r++) {
|
|
727
727
|
i = arguments[r];
|
|
728
728
|
for (var o in i)
|
|
729
729
|
Object.prototype.hasOwnProperty.call(i, o) && (t[o] = i[o]);
|
|
730
730
|
}
|
|
731
731
|
return t;
|
|
732
|
-
},
|
|
732
|
+
}, Me.apply(this, arguments);
|
|
733
733
|
};
|
|
734
|
-
var
|
|
734
|
+
var T;
|
|
735
735
|
(function(e) {
|
|
736
736
|
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";
|
|
737
|
-
})(
|
|
737
|
+
})(T || (T = {}));
|
|
738
738
|
var I;
|
|
739
739
|
(function(e) {
|
|
740
740
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
741
741
|
})(I || (I = {}));
|
|
742
|
-
var
|
|
742
|
+
var ue;
|
|
743
743
|
(function(e) {
|
|
744
744
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
745
|
-
})(
|
|
746
|
-
function
|
|
745
|
+
})(ue || (ue = {}));
|
|
746
|
+
function At(e) {
|
|
747
747
|
return e.type === I.literal;
|
|
748
748
|
}
|
|
749
|
-
function
|
|
749
|
+
function en(e) {
|
|
750
750
|
return e.type === I.argument;
|
|
751
751
|
}
|
|
752
|
-
function
|
|
752
|
+
function di(e) {
|
|
753
753
|
return e.type === I.number;
|
|
754
754
|
}
|
|
755
|
-
function
|
|
755
|
+
function bi(e) {
|
|
756
756
|
return e.type === I.date;
|
|
757
757
|
}
|
|
758
|
-
function
|
|
758
|
+
function gi(e) {
|
|
759
759
|
return e.type === I.time;
|
|
760
760
|
}
|
|
761
|
-
function
|
|
761
|
+
function yi(e) {
|
|
762
762
|
return e.type === I.select;
|
|
763
763
|
}
|
|
764
|
-
function
|
|
764
|
+
function vi(e) {
|
|
765
765
|
return e.type === I.plural;
|
|
766
766
|
}
|
|
767
|
-
function
|
|
767
|
+
function tn(e) {
|
|
768
768
|
return e.type === I.pound;
|
|
769
769
|
}
|
|
770
|
-
function
|
|
770
|
+
function _i(e) {
|
|
771
771
|
return e.type === I.tag;
|
|
772
772
|
}
|
|
773
|
-
function
|
|
774
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
773
|
+
function Ei(e) {
|
|
774
|
+
return !!(e && typeof e == "object" && e.type === ue.number);
|
|
775
775
|
}
|
|
776
|
-
function
|
|
777
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
776
|
+
function nt(e) {
|
|
777
|
+
return !!(e && typeof e == "object" && e.type === ue.dateTime);
|
|
778
778
|
}
|
|
779
|
-
var
|
|
780
|
-
function
|
|
779
|
+
var Li = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, rn = /(?:[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;
|
|
780
|
+
function nn(e) {
|
|
781
781
|
var t = {};
|
|
782
|
-
return e.replace(
|
|
782
|
+
return e.replace(rn, function(i) {
|
|
783
783
|
var r = i.length;
|
|
784
784
|
switch (i[0]) {
|
|
785
785
|
case "G":
|
|
@@ -878,12 +878,12 @@ var C = function() {
|
|
|
878
878
|
return t;
|
|
879
879
|
}, C.apply(this, arguments);
|
|
880
880
|
};
|
|
881
|
-
var
|
|
882
|
-
function
|
|
881
|
+
var on = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
882
|
+
function sn(e) {
|
|
883
883
|
if (e.length === 0)
|
|
884
884
|
throw new Error("Number skeleton cannot be empty");
|
|
885
|
-
for (var t = e.split(
|
|
886
|
-
return
|
|
885
|
+
for (var t = e.split(on).filter(function(p) {
|
|
886
|
+
return p.length > 0;
|
|
887
887
|
}), i = [], r = 0, n = t; r < n.length; r++) {
|
|
888
888
|
var o = n[r], s = o.split("/");
|
|
889
889
|
if (s.length === 0)
|
|
@@ -897,17 +897,17 @@ function nn(e) {
|
|
|
897
897
|
}
|
|
898
898
|
return i;
|
|
899
899
|
}
|
|
900
|
-
function
|
|
900
|
+
function an(e) {
|
|
901
901
|
return e.replace(/^(.*?)-/, "");
|
|
902
902
|
}
|
|
903
|
-
var
|
|
904
|
-
function
|
|
903
|
+
var Bt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, xi = /^(@+)?(\+|#+)?[rs]?$/g, un = /(\*)(0+)|(#+)(0+)|(0+)/g, Ti = /^(0+)$/;
|
|
904
|
+
function Nt(e) {
|
|
905
905
|
var t = {};
|
|
906
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
906
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(xi, function(i, r, n) {
|
|
907
907
|
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)), "";
|
|
908
908
|
}), t;
|
|
909
909
|
}
|
|
910
|
-
function
|
|
910
|
+
function wi(e) {
|
|
911
911
|
switch (e) {
|
|
912
912
|
case "sign-auto":
|
|
913
913
|
return {
|
|
@@ -947,7 +947,7 @@ function xi(e) {
|
|
|
947
947
|
};
|
|
948
948
|
}
|
|
949
949
|
}
|
|
950
|
-
function
|
|
950
|
+
function ln(e) {
|
|
951
951
|
var t;
|
|
952
952
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
953
953
|
notation: "engineering"
|
|
@@ -955,17 +955,17 @@ function an(e) {
|
|
|
955
955
|
notation: "scientific"
|
|
956
956
|
}, e = e.slice(1)), t) {
|
|
957
957
|
var i = e.slice(0, 2);
|
|
958
|
-
if (i === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : i === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
958
|
+
if (i === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : i === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ti.test(e))
|
|
959
959
|
throw new Error("Malformed concise eng/scientific notation");
|
|
960
960
|
t.minimumIntegerDigits = e.length;
|
|
961
961
|
}
|
|
962
962
|
return t;
|
|
963
963
|
}
|
|
964
|
-
function
|
|
965
|
-
var t = {}, i =
|
|
964
|
+
function Ot(e) {
|
|
965
|
+
var t = {}, i = wi(e);
|
|
966
966
|
return i || t;
|
|
967
967
|
}
|
|
968
|
-
function
|
|
968
|
+
function cn(e) {
|
|
969
969
|
for (var t = {}, i = 0, r = e; i < r.length; i++) {
|
|
970
970
|
var n = r[i];
|
|
971
971
|
switch (n.stem) {
|
|
@@ -989,7 +989,7 @@ function un(e) {
|
|
|
989
989
|
continue;
|
|
990
990
|
case "measure-unit":
|
|
991
991
|
case "unit":
|
|
992
|
-
t.style = "unit", t.unit =
|
|
992
|
+
t.style = "unit", t.unit = an(n.options[0]);
|
|
993
993
|
continue;
|
|
994
994
|
case "compact-short":
|
|
995
995
|
case "K":
|
|
@@ -1001,12 +1001,12 @@ function un(e) {
|
|
|
1001
1001
|
continue;
|
|
1002
1002
|
case "scientific":
|
|
1003
1003
|
t = C(C(C({}, t), { notation: "scientific" }), n.options.reduce(function(h, l) {
|
|
1004
|
-
return C(C({}, h),
|
|
1004
|
+
return C(C({}, h), Ot(l));
|
|
1005
1005
|
}, {}));
|
|
1006
1006
|
continue;
|
|
1007
1007
|
case "engineering":
|
|
1008
1008
|
t = C(C(C({}, t), { notation: "engineering" }), n.options.reduce(function(h, l) {
|
|
1009
|
-
return C(C({}, h),
|
|
1009
|
+
return C(C({}, h), Ot(l));
|
|
1010
1010
|
}, {}));
|
|
1011
1011
|
continue;
|
|
1012
1012
|
case "notation-simple":
|
|
@@ -1051,11 +1051,11 @@ function un(e) {
|
|
|
1051
1051
|
case "integer-width":
|
|
1052
1052
|
if (n.options.length > 1)
|
|
1053
1053
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1054
|
-
n.options[0].replace(
|
|
1054
|
+
n.options[0].replace(un, function(h, l, u, c, p, f) {
|
|
1055
1055
|
if (l)
|
|
1056
1056
|
t.minimumIntegerDigits = u.length;
|
|
1057
1057
|
else {
|
|
1058
|
-
if (c &&
|
|
1058
|
+
if (c && p)
|
|
1059
1059
|
throw new Error("We currently do not support maximum integer digits");
|
|
1060
1060
|
if (f)
|
|
1061
1061
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1064,32 +1064,32 @@ function un(e) {
|
|
|
1064
1064
|
});
|
|
1065
1065
|
continue;
|
|
1066
1066
|
}
|
|
1067
|
-
if (
|
|
1067
|
+
if (Ti.test(n.stem)) {
|
|
1068
1068
|
t.minimumIntegerDigits = n.stem.length;
|
|
1069
1069
|
continue;
|
|
1070
1070
|
}
|
|
1071
|
-
if (
|
|
1071
|
+
if (Bt.test(n.stem)) {
|
|
1072
1072
|
if (n.options.length > 1)
|
|
1073
1073
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1074
|
-
n.stem.replace(
|
|
1075
|
-
return u === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length :
|
|
1074
|
+
n.stem.replace(Bt, function(h, l, u, c, p, f) {
|
|
1075
|
+
return u === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : p && f ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + f.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1076
1076
|
});
|
|
1077
1077
|
var o = n.options[0];
|
|
1078
|
-
o === "w" ? t = C(C({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = C(C({}, t),
|
|
1078
|
+
o === "w" ? t = C(C({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = C(C({}, t), Nt(o)));
|
|
1079
1079
|
continue;
|
|
1080
1080
|
}
|
|
1081
|
-
if (
|
|
1082
|
-
t = C(C({}, t),
|
|
1081
|
+
if (xi.test(n.stem)) {
|
|
1082
|
+
t = C(C({}, t), Nt(n.stem));
|
|
1083
1083
|
continue;
|
|
1084
1084
|
}
|
|
1085
|
-
var s =
|
|
1085
|
+
var s = wi(n.stem);
|
|
1086
1086
|
s && (t = C(C({}, t), s));
|
|
1087
|
-
var a =
|
|
1087
|
+
var a = ln(n.stem);
|
|
1088
1088
|
a && (t = C(C({}, t), a));
|
|
1089
1089
|
}
|
|
1090
1090
|
return t;
|
|
1091
1091
|
}
|
|
1092
|
-
var
|
|
1092
|
+
var Se = {
|
|
1093
1093
|
"001": [
|
|
1094
1094
|
"H",
|
|
1095
1095
|
"h"
|
|
@@ -2504,13 +2504,13 @@ var Te = {
|
|
|
2504
2504
|
"h"
|
|
2505
2505
|
]
|
|
2506
2506
|
};
|
|
2507
|
-
function
|
|
2507
|
+
function hn(e, t) {
|
|
2508
2508
|
for (var i = "", r = 0; r < e.length; r++) {
|
|
2509
2509
|
var n = e.charAt(r);
|
|
2510
2510
|
if (n === "j") {
|
|
2511
2511
|
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === n; )
|
|
2512
2512
|
o++, r++;
|
|
2513
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", l =
|
|
2513
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = fn(t);
|
|
2514
2514
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
2515
2515
|
i += h;
|
|
2516
2516
|
for (; s-- > 0; )
|
|
@@ -2520,7 +2520,7 @@ function ln(e, t) {
|
|
|
2520
2520
|
}
|
|
2521
2521
|
return i;
|
|
2522
2522
|
}
|
|
2523
|
-
function
|
|
2523
|
+
function fn(e) {
|
|
2524
2524
|
var t = e.hourCycle;
|
|
2525
2525
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2526
2526
|
e.hourCycles && // @ts-ignore
|
|
@@ -2539,23 +2539,23 @@ function cn(e) {
|
|
|
2539
2539
|
}
|
|
2540
2540
|
var i = e.language, r;
|
|
2541
2541
|
i !== "root" && (r = e.maximize().region);
|
|
2542
|
-
var n =
|
|
2542
|
+
var n = Se[r || ""] || Se[i || ""] || Se["".concat(i, "-001")] || Se["001"];
|
|
2543
2543
|
return n[0];
|
|
2544
2544
|
}
|
|
2545
|
-
var
|
|
2546
|
-
function
|
|
2545
|
+
var Qe, pn = new RegExp("^".concat(Li.source, "*")), mn = new RegExp("".concat(Li.source, "*$"));
|
|
2546
|
+
function w(e, t) {
|
|
2547
2547
|
return { start: e, end: t };
|
|
2548
2548
|
}
|
|
2549
|
-
var
|
|
2549
|
+
var dn = !!String.prototype.startsWith && "_a".startsWith("a", 1), bn = !!String.fromCodePoint, gn = !!Object.fromEntries, yn = !!String.prototype.codePointAt, vn = !!String.prototype.trimStart, _n = !!String.prototype.trimEnd, En = !!Number.isSafeInteger, Ln = En ? Number.isSafeInteger : function(e) {
|
|
2550
2550
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2551
|
-
},
|
|
2551
|
+
}, ot = !0;
|
|
2552
2552
|
try {
|
|
2553
|
-
var
|
|
2554
|
-
|
|
2553
|
+
var xn = Pi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2554
|
+
ot = ((Qe = xn.exec("a")) === null || Qe === void 0 ? void 0 : Qe[0]) === "a";
|
|
2555
2555
|
} catch {
|
|
2556
|
-
|
|
2556
|
+
ot = !1;
|
|
2557
2557
|
}
|
|
2558
|
-
var
|
|
2558
|
+
var It = dn ? (
|
|
2559
2559
|
// Native
|
|
2560
2560
|
function(t, i, r) {
|
|
2561
2561
|
return t.startsWith(i, r);
|
|
@@ -2565,7 +2565,7 @@ var Nt = mn ? (
|
|
|
2565
2565
|
function(t, i, r) {
|
|
2566
2566
|
return t.slice(r, r + i.length) === i;
|
|
2567
2567
|
}
|
|
2568
|
-
),
|
|
2568
|
+
), st = bn ? String.fromCodePoint : (
|
|
2569
2569
|
// IE11
|
|
2570
2570
|
function() {
|
|
2571
2571
|
for (var t = [], i = 0; i < arguments.length; i++)
|
|
@@ -2577,9 +2577,9 @@ var Nt = mn ? (
|
|
|
2577
2577
|
}
|
|
2578
2578
|
return r;
|
|
2579
2579
|
}
|
|
2580
|
-
),
|
|
2580
|
+
), Ht = (
|
|
2581
2581
|
// native
|
|
2582
|
-
|
|
2582
|
+
gn ? Object.fromEntries : (
|
|
2583
2583
|
// Ponyfill
|
|
2584
2584
|
function(t) {
|
|
2585
2585
|
for (var i = {}, r = 0, n = t; r < n.length; r++) {
|
|
@@ -2589,7 +2589,7 @@ var Nt = mn ? (
|
|
|
2589
2589
|
return i;
|
|
2590
2590
|
}
|
|
2591
2591
|
)
|
|
2592
|
-
),
|
|
2592
|
+
), Si = yn ? (
|
|
2593
2593
|
// Native
|
|
2594
2594
|
function(t, i) {
|
|
2595
2595
|
return t.codePointAt(i);
|
|
@@ -2603,7 +2603,7 @@ var Nt = mn ? (
|
|
|
2603
2603
|
return n < 55296 || n > 56319 || i + 1 === r || (o = t.charCodeAt(i + 1)) < 56320 || o > 57343 ? n : (n - 55296 << 10) + (o - 56320) + 65536;
|
|
2604
2604
|
}
|
|
2605
2605
|
}
|
|
2606
|
-
),
|
|
2606
|
+
), Tn = vn ? (
|
|
2607
2607
|
// Native
|
|
2608
2608
|
function(t) {
|
|
2609
2609
|
return t.trimStart();
|
|
@@ -2611,9 +2611,9 @@ var Nt = mn ? (
|
|
|
2611
2611
|
) : (
|
|
2612
2612
|
// Ponyfill
|
|
2613
2613
|
function(t) {
|
|
2614
|
-
return t.replace(
|
|
2614
|
+
return t.replace(pn, "");
|
|
2615
2615
|
}
|
|
2616
|
-
),
|
|
2616
|
+
), wn = _n ? (
|
|
2617
2617
|
// Native
|
|
2618
2618
|
function(t) {
|
|
2619
2619
|
return t.trimEnd();
|
|
@@ -2621,32 +2621,32 @@ var Nt = mn ? (
|
|
|
2621
2621
|
) : (
|
|
2622
2622
|
// Ponyfill
|
|
2623
2623
|
function(t) {
|
|
2624
|
-
return t.replace(
|
|
2624
|
+
return t.replace(mn, "");
|
|
2625
2625
|
}
|
|
2626
2626
|
);
|
|
2627
|
-
function
|
|
2627
|
+
function Pi(e, t) {
|
|
2628
2628
|
return new RegExp(e, t);
|
|
2629
2629
|
}
|
|
2630
|
-
var
|
|
2631
|
-
if (
|
|
2632
|
-
var
|
|
2633
|
-
|
|
2630
|
+
var at;
|
|
2631
|
+
if (ot) {
|
|
2632
|
+
var Mt = Pi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2633
|
+
at = function(t, i) {
|
|
2634
2634
|
var r;
|
|
2635
|
-
|
|
2636
|
-
var n =
|
|
2635
|
+
Mt.lastIndex = i;
|
|
2636
|
+
var n = Mt.exec(t);
|
|
2637
2637
|
return (r = n[1]) !== null && r !== void 0 ? r : "";
|
|
2638
2638
|
};
|
|
2639
2639
|
} else
|
|
2640
|
-
|
|
2640
|
+
at = function(t, i) {
|
|
2641
2641
|
for (var r = []; ; ) {
|
|
2642
|
-
var n =
|
|
2643
|
-
if (n === void 0 ||
|
|
2642
|
+
var n = Si(t, i);
|
|
2643
|
+
if (n === void 0 || Ai(n) || Bn(n))
|
|
2644
2644
|
break;
|
|
2645
2645
|
r.push(n), i += n >= 65536 ? 2 : 1;
|
|
2646
2646
|
}
|
|
2647
|
-
return
|
|
2647
|
+
return st.apply(void 0, r);
|
|
2648
2648
|
};
|
|
2649
|
-
var
|
|
2649
|
+
var Sn = (
|
|
2650
2650
|
/** @class */
|
|
2651
2651
|
function() {
|
|
2652
2652
|
function e(t, i) {
|
|
@@ -2671,13 +2671,13 @@ var Tn = (
|
|
|
2671
2671
|
var a = this.clonePosition();
|
|
2672
2672
|
this.bump(), n.push({
|
|
2673
2673
|
type: I.pound,
|
|
2674
|
-
location:
|
|
2674
|
+
location: w(a, this.clonePosition())
|
|
2675
2675
|
});
|
|
2676
2676
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2677
2677
|
if (r)
|
|
2678
2678
|
break;
|
|
2679
|
-
return this.error(
|
|
2680
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2679
|
+
return this.error(T.UNMATCHED_CLOSING_TAG, w(this.clonePosition(), this.clonePosition()));
|
|
2680
|
+
} else if (o === 60 && !this.ignoreTag && ut(this.peek() || 0)) {
|
|
2681
2681
|
var s = this.parseTag(t, i);
|
|
2682
2682
|
if (s.err)
|
|
2683
2683
|
return s;
|
|
@@ -2700,7 +2700,7 @@ var Tn = (
|
|
|
2700
2700
|
val: {
|
|
2701
2701
|
type: I.literal,
|
|
2702
2702
|
value: "<".concat(n, "/>"),
|
|
2703
|
-
location:
|
|
2703
|
+
location: w(r, this.clonePosition())
|
|
2704
2704
|
},
|
|
2705
2705
|
err: null
|
|
2706
2706
|
};
|
|
@@ -2710,25 +2710,25 @@ var Tn = (
|
|
|
2710
2710
|
return o;
|
|
2711
2711
|
var s = o.val, a = this.clonePosition();
|
|
2712
2712
|
if (this.bumpIf("</")) {
|
|
2713
|
-
if (this.isEOF() || !
|
|
2714
|
-
return this.error(
|
|
2713
|
+
if (this.isEOF() || !ut(this.char()))
|
|
2714
|
+
return this.error(T.INVALID_TAG, w(a, this.clonePosition()));
|
|
2715
2715
|
var h = this.clonePosition(), l = this.parseTagName();
|
|
2716
|
-
return n !== l ? this.error(
|
|
2716
|
+
return n !== l ? this.error(T.UNMATCHED_CLOSING_TAG, w(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2717
2717
|
val: {
|
|
2718
2718
|
type: I.tag,
|
|
2719
2719
|
value: n,
|
|
2720
2720
|
children: s,
|
|
2721
|
-
location:
|
|
2721
|
+
location: w(r, this.clonePosition())
|
|
2722
2722
|
},
|
|
2723
2723
|
err: null
|
|
2724
|
-
} : this.error(
|
|
2724
|
+
} : this.error(T.INVALID_TAG, w(a, this.clonePosition())));
|
|
2725
2725
|
} else
|
|
2726
|
-
return this.error(
|
|
2726
|
+
return this.error(T.UNCLOSED_TAG, w(r, this.clonePosition()));
|
|
2727
2727
|
} else
|
|
2728
|
-
return this.error(
|
|
2728
|
+
return this.error(T.INVALID_TAG, w(r, this.clonePosition()));
|
|
2729
2729
|
}, e.prototype.parseTagName = function() {
|
|
2730
2730
|
var t = this.offset();
|
|
2731
|
-
for (this.bump(); !this.isEOF() &&
|
|
2731
|
+
for (this.bump(); !this.isEOF() && An(this.char()); )
|
|
2732
2732
|
this.bump();
|
|
2733
2733
|
return this.message.slice(t, this.offset());
|
|
2734
2734
|
}, e.prototype.parseLiteral = function(t, i) {
|
|
@@ -2750,14 +2750,14 @@ var Tn = (
|
|
|
2750
2750
|
}
|
|
2751
2751
|
break;
|
|
2752
2752
|
}
|
|
2753
|
-
var h =
|
|
2753
|
+
var h = w(r, this.clonePosition());
|
|
2754
2754
|
return {
|
|
2755
2755
|
val: { type: I.literal, value: n, location: h },
|
|
2756
2756
|
err: null
|
|
2757
2757
|
};
|
|
2758
2758
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2759
2759
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2760
|
-
!
|
|
2760
|
+
!Pn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2761
2761
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2762
2762
|
if (this.isEOF() || this.char() !== 39)
|
|
2763
2763
|
return null;
|
|
@@ -2791,23 +2791,23 @@ var Tn = (
|
|
|
2791
2791
|
i.push(r);
|
|
2792
2792
|
this.bump();
|
|
2793
2793
|
}
|
|
2794
|
-
return
|
|
2794
|
+
return st.apply(void 0, i);
|
|
2795
2795
|
}, e.prototype.tryParseUnquoted = function(t, i) {
|
|
2796
2796
|
if (this.isEOF())
|
|
2797
2797
|
return null;
|
|
2798
2798
|
var r = this.char();
|
|
2799
|
-
return r === 60 || r === 123 || r === 35 && (i === "plural" || i === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
2799
|
+
return r === 60 || r === 123 || r === 35 && (i === "plural" || i === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), st(r));
|
|
2800
2800
|
}, e.prototype.parseArgument = function(t, i) {
|
|
2801
2801
|
var r = this.clonePosition();
|
|
2802
2802
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2803
|
-
return this.error(
|
|
2803
|
+
return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, w(r, this.clonePosition()));
|
|
2804
2804
|
if (this.char() === 125)
|
|
2805
|
-
return this.bump(), this.error(
|
|
2805
|
+
return this.bump(), this.error(T.EMPTY_ARGUMENT, w(r, this.clonePosition()));
|
|
2806
2806
|
var n = this.parseIdentifierIfPossible().value;
|
|
2807
2807
|
if (!n)
|
|
2808
|
-
return this.error(
|
|
2808
|
+
return this.error(T.MALFORMED_ARGUMENT, w(r, this.clonePosition()));
|
|
2809
2809
|
if (this.bumpSpace(), this.isEOF())
|
|
2810
|
-
return this.error(
|
|
2810
|
+
return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, w(r, this.clonePosition()));
|
|
2811
2811
|
switch (this.char()) {
|
|
2812
2812
|
case 125:
|
|
2813
2813
|
return this.bump(), {
|
|
@@ -2815,25 +2815,25 @@ var Tn = (
|
|
|
2815
2815
|
type: I.argument,
|
|
2816
2816
|
// value does not include the opening and closing braces.
|
|
2817
2817
|
value: n,
|
|
2818
|
-
location:
|
|
2818
|
+
location: w(r, this.clonePosition())
|
|
2819
2819
|
},
|
|
2820
2820
|
err: null
|
|
2821
2821
|
};
|
|
2822
2822
|
case 44:
|
|
2823
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2823
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, w(r, this.clonePosition())) : this.parseArgumentOptions(t, i, n, r);
|
|
2824
2824
|
default:
|
|
2825
|
-
return this.error(
|
|
2825
|
+
return this.error(T.MALFORMED_ARGUMENT, w(r, this.clonePosition()));
|
|
2826
2826
|
}
|
|
2827
2827
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2828
|
-
var t = this.clonePosition(), i = this.offset(), r =
|
|
2828
|
+
var t = this.clonePosition(), i = this.offset(), r = at(this.message, i), n = i + r.length;
|
|
2829
2829
|
this.bumpTo(n);
|
|
2830
|
-
var o = this.clonePosition(), s =
|
|
2830
|
+
var o = this.clonePosition(), s = w(t, o);
|
|
2831
2831
|
return { value: r, location: s };
|
|
2832
2832
|
}, e.prototype.parseArgumentOptions = function(t, i, r, n) {
|
|
2833
2833
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
2834
2834
|
switch (a) {
|
|
2835
2835
|
case "":
|
|
2836
|
-
return this.error(
|
|
2836
|
+
return this.error(T.EXPECT_ARGUMENT_TYPE, w(s, h));
|
|
2837
2837
|
case "number":
|
|
2838
2838
|
case "date":
|
|
2839
2839
|
case "time": {
|
|
@@ -2844,18 +2844,18 @@ var Tn = (
|
|
|
2844
2844
|
var u = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2845
2845
|
if (c.err)
|
|
2846
2846
|
return c;
|
|
2847
|
-
var
|
|
2848
|
-
if (
|
|
2849
|
-
return this.error(
|
|
2850
|
-
var f =
|
|
2851
|
-
l = { style:
|
|
2847
|
+
var p = wn(c.val);
|
|
2848
|
+
if (p.length === 0)
|
|
2849
|
+
return this.error(T.EXPECT_ARGUMENT_STYLE, w(this.clonePosition(), this.clonePosition()));
|
|
2850
|
+
var f = w(u, this.clonePosition());
|
|
2851
|
+
l = { style: p, styleLocation: f };
|
|
2852
2852
|
}
|
|
2853
|
-
var
|
|
2854
|
-
if (
|
|
2855
|
-
return
|
|
2856
|
-
var _ =
|
|
2857
|
-
if (l &&
|
|
2858
|
-
var R =
|
|
2853
|
+
var m = this.tryParseArgumentClose(n);
|
|
2854
|
+
if (m.err)
|
|
2855
|
+
return m;
|
|
2856
|
+
var _ = w(n, this.clonePosition());
|
|
2857
|
+
if (l && It(l?.style, "::", 0)) {
|
|
2858
|
+
var R = Tn(l.style.slice(2));
|
|
2859
2859
|
if (a === "number") {
|
|
2860
2860
|
var c = this.parseNumberSkeletonFromString(R, l.styleLocation);
|
|
2861
2861
|
return c.err ? c : {
|
|
@@ -2864,17 +2864,17 @@ var Tn = (
|
|
|
2864
2864
|
};
|
|
2865
2865
|
} else {
|
|
2866
2866
|
if (R.length === 0)
|
|
2867
|
-
return this.error(
|
|
2868
|
-
var
|
|
2869
|
-
this.locale && (
|
|
2870
|
-
var
|
|
2871
|
-
type:
|
|
2872
|
-
pattern:
|
|
2867
|
+
return this.error(T.EXPECT_DATE_TIME_SKELETON, _);
|
|
2868
|
+
var N = R;
|
|
2869
|
+
this.locale && (N = hn(R, this.locale));
|
|
2870
|
+
var p = {
|
|
2871
|
+
type: ue.dateTime,
|
|
2872
|
+
pattern: N,
|
|
2873
2873
|
location: l.styleLocation,
|
|
2874
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2875
|
-
},
|
|
2874
|
+
parsedOptions: this.shouldParseSkeletons ? nn(N) : {}
|
|
2875
|
+
}, S = a === "date" ? I.date : I.time;
|
|
2876
2876
|
return {
|
|
2877
|
-
val: { type:
|
|
2877
|
+
val: { type: S, value: r, location: _, style: p },
|
|
2878
2878
|
err: null
|
|
2879
2879
|
};
|
|
2880
2880
|
}
|
|
@@ -2892,32 +2892,32 @@ var Tn = (
|
|
|
2892
2892
|
case "plural":
|
|
2893
2893
|
case "selectordinal":
|
|
2894
2894
|
case "select": {
|
|
2895
|
-
var
|
|
2895
|
+
var E = this.clonePosition();
|
|
2896
2896
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2897
|
-
return this.error(
|
|
2897
|
+
return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS, w(E, Me({}, E)));
|
|
2898
2898
|
this.bumpSpace();
|
|
2899
|
-
var
|
|
2900
|
-
if (a !== "select" &&
|
|
2899
|
+
var k = this.parseIdentifierIfPossible(), L = 0;
|
|
2900
|
+
if (a !== "select" && k.value === "offset") {
|
|
2901
2901
|
if (!this.bumpIf(":"))
|
|
2902
|
-
return this.error(
|
|
2902
|
+
return this.error(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w(this.clonePosition(), this.clonePosition()));
|
|
2903
2903
|
this.bumpSpace();
|
|
2904
|
-
var c = this.tryParseDecimalInteger(
|
|
2904
|
+
var c = this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2905
2905
|
if (c.err)
|
|
2906
2906
|
return c;
|
|
2907
|
-
this.bumpSpace(),
|
|
2907
|
+
this.bumpSpace(), k = this.parseIdentifierIfPossible(), L = c.val;
|
|
2908
2908
|
}
|
|
2909
|
-
var
|
|
2910
|
-
if (
|
|
2911
|
-
return
|
|
2912
|
-
var
|
|
2913
|
-
if (
|
|
2914
|
-
return
|
|
2915
|
-
var D =
|
|
2909
|
+
var O = this.tryParsePluralOrSelectOptions(t, a, i, k);
|
|
2910
|
+
if (O.err)
|
|
2911
|
+
return O;
|
|
2912
|
+
var m = this.tryParseArgumentClose(n);
|
|
2913
|
+
if (m.err)
|
|
2914
|
+
return m;
|
|
2915
|
+
var D = w(n, this.clonePosition());
|
|
2916
2916
|
return a === "select" ? {
|
|
2917
2917
|
val: {
|
|
2918
2918
|
type: I.select,
|
|
2919
2919
|
value: r,
|
|
2920
|
-
options:
|
|
2920
|
+
options: Ht(O.val),
|
|
2921
2921
|
location: D
|
|
2922
2922
|
},
|
|
2923
2923
|
err: null
|
|
@@ -2925,8 +2925,8 @@ var Tn = (
|
|
|
2925
2925
|
val: {
|
|
2926
2926
|
type: I.plural,
|
|
2927
2927
|
value: r,
|
|
2928
|
-
options:
|
|
2929
|
-
offset:
|
|
2928
|
+
options: Ht(O.val),
|
|
2929
|
+
offset: L,
|
|
2930
2930
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2931
2931
|
location: D
|
|
2932
2932
|
},
|
|
@@ -2934,10 +2934,10 @@ var Tn = (
|
|
|
2934
2934
|
};
|
|
2935
2935
|
}
|
|
2936
2936
|
default:
|
|
2937
|
-
return this.error(
|
|
2937
|
+
return this.error(T.INVALID_ARGUMENT_TYPE, w(s, h));
|
|
2938
2938
|
}
|
|
2939
2939
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2940
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2940
|
+
return this.isEOF() || this.char() !== 125 ? this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, w(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2941
2941
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2942
2942
|
for (var t = 0, i = this.clonePosition(); !this.isEOF(); ) {
|
|
2943
2943
|
var r = this.char();
|
|
@@ -2946,7 +2946,7 @@ var Tn = (
|
|
|
2946
2946
|
this.bump();
|
|
2947
2947
|
var n = this.clonePosition();
|
|
2948
2948
|
if (!this.bumpUntil("'"))
|
|
2949
|
-
return this.error(
|
|
2949
|
+
return this.error(T.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, w(n, this.clonePosition()));
|
|
2950
2950
|
this.bump();
|
|
2951
2951
|
break;
|
|
2952
2952
|
}
|
|
@@ -2976,16 +2976,16 @@ var Tn = (
|
|
|
2976
2976
|
}, e.prototype.parseNumberSkeletonFromString = function(t, i) {
|
|
2977
2977
|
var r = [];
|
|
2978
2978
|
try {
|
|
2979
|
-
r =
|
|
2979
|
+
r = sn(t);
|
|
2980
2980
|
} catch {
|
|
2981
|
-
return this.error(
|
|
2981
|
+
return this.error(T.INVALID_NUMBER_SKELETON, i);
|
|
2982
2982
|
}
|
|
2983
2983
|
return {
|
|
2984
2984
|
val: {
|
|
2985
|
-
type:
|
|
2985
|
+
type: ue.number,
|
|
2986
2986
|
tokens: r,
|
|
2987
2987
|
location: i,
|
|
2988
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2988
|
+
parsedOptions: this.shouldParseSkeletons ? cn(r) : {}
|
|
2989
2989
|
},
|
|
2990
2990
|
err: null
|
|
2991
2991
|
};
|
|
@@ -2994,34 +2994,34 @@ var Tn = (
|
|
|
2994
2994
|
if (l.length === 0) {
|
|
2995
2995
|
var c = this.clonePosition();
|
|
2996
2996
|
if (i !== "select" && this.bumpIf("=")) {
|
|
2997
|
-
var
|
|
2998
|
-
if (
|
|
2999
|
-
return
|
|
3000
|
-
u =
|
|
2997
|
+
var p = this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_SELECTOR, T.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2998
|
+
if (p.err)
|
|
2999
|
+
return p;
|
|
3000
|
+
u = w(c, this.clonePosition()), l = this.message.slice(c.offset, this.offset());
|
|
3001
3001
|
} else
|
|
3002
3002
|
break;
|
|
3003
3003
|
}
|
|
3004
3004
|
if (h.has(l))
|
|
3005
|
-
return this.error(i === "select" ?
|
|
3005
|
+
return this.error(i === "select" ? T.DUPLICATE_SELECT_ARGUMENT_SELECTOR : T.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
|
3006
3006
|
l === "other" && (s = !0), this.bumpSpace();
|
|
3007
3007
|
var f = this.clonePosition();
|
|
3008
3008
|
if (!this.bumpIf("{"))
|
|
3009
|
-
return this.error(i === "select" ?
|
|
3010
|
-
var
|
|
3011
|
-
if (
|
|
3012
|
-
return
|
|
3009
|
+
return this.error(i === "select" ? T.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : T.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, w(this.clonePosition(), this.clonePosition()));
|
|
3010
|
+
var m = this.parseMessage(t + 1, i, r);
|
|
3011
|
+
if (m.err)
|
|
3012
|
+
return m;
|
|
3013
3013
|
var _ = this.tryParseArgumentClose(f);
|
|
3014
3014
|
if (_.err)
|
|
3015
3015
|
return _;
|
|
3016
3016
|
a.push([
|
|
3017
3017
|
l,
|
|
3018
3018
|
{
|
|
3019
|
-
value:
|
|
3020
|
-
location:
|
|
3019
|
+
value: m.val,
|
|
3020
|
+
location: w(f, this.clonePosition())
|
|
3021
3021
|
}
|
|
3022
3022
|
]), h.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, u = o.location;
|
|
3023
3023
|
}
|
|
3024
|
-
return a.length === 0 ? this.error(i === "select" ?
|
|
3024
|
+
return a.length === 0 ? this.error(i === "select" ? T.EXPECT_SELECT_ARGUMENT_SELECTOR : T.EXPECT_PLURAL_ARGUMENT_SELECTOR, w(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(T.MISSING_OTHER_CLAUSE, w(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3025
3025
|
}, e.prototype.tryParseDecimalInteger = function(t, i) {
|
|
3026
3026
|
var r = 1, n = this.clonePosition();
|
|
3027
3027
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
@@ -3032,8 +3032,8 @@ var Tn = (
|
|
|
3032
3032
|
else
|
|
3033
3033
|
break;
|
|
3034
3034
|
}
|
|
3035
|
-
var h =
|
|
3036
|
-
return o ? (s *= r,
|
|
3035
|
+
var h = w(n, this.clonePosition());
|
|
3036
|
+
return o ? (s *= r, Ln(s) ? { val: s, err: null } : this.error(i, h)) : this.error(t, h);
|
|
3037
3037
|
}, e.prototype.offset = function() {
|
|
3038
3038
|
return this.position.offset;
|
|
3039
3039
|
}, e.prototype.isEOF = function() {
|
|
@@ -3048,7 +3048,7 @@ var Tn = (
|
|
|
3048
3048
|
var t = this.position.offset;
|
|
3049
3049
|
if (t >= this.message.length)
|
|
3050
3050
|
throw Error("out of bound");
|
|
3051
|
-
var i =
|
|
3051
|
+
var i = Si(this.message, t);
|
|
3052
3052
|
if (i === void 0)
|
|
3053
3053
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3054
3054
|
return i;
|
|
@@ -3067,7 +3067,7 @@ var Tn = (
|
|
|
3067
3067
|
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);
|
|
3068
3068
|
}
|
|
3069
3069
|
}, e.prototype.bumpIf = function(t) {
|
|
3070
|
-
if (
|
|
3070
|
+
if (It(this.message, t, this.offset())) {
|
|
3071
3071
|
for (var i = 0; i < t.length; i++)
|
|
3072
3072
|
this.bump();
|
|
3073
3073
|
return !0;
|
|
@@ -3089,7 +3089,7 @@ var Tn = (
|
|
|
3089
3089
|
break;
|
|
3090
3090
|
}
|
|
3091
3091
|
}, e.prototype.bumpSpace = function() {
|
|
3092
|
-
for (; !this.isEOF() &&
|
|
3092
|
+
for (; !this.isEOF() && Ai(this.char()); )
|
|
3093
3093
|
this.bump();
|
|
3094
3094
|
}, e.prototype.peek = function() {
|
|
3095
3095
|
if (this.isEOF())
|
|
@@ -3099,47 +3099,47 @@ var Tn = (
|
|
|
3099
3099
|
}, e;
|
|
3100
3100
|
}()
|
|
3101
3101
|
);
|
|
3102
|
-
function
|
|
3102
|
+
function ut(e) {
|
|
3103
3103
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3104
3104
|
}
|
|
3105
|
-
function
|
|
3106
|
-
return
|
|
3105
|
+
function Pn(e) {
|
|
3106
|
+
return ut(e) || e === 47;
|
|
3107
3107
|
}
|
|
3108
|
-
function
|
|
3108
|
+
function An(e) {
|
|
3109
3109
|
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;
|
|
3110
3110
|
}
|
|
3111
|
-
function
|
|
3111
|
+
function Ai(e) {
|
|
3112
3112
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3113
3113
|
}
|
|
3114
|
-
function
|
|
3114
|
+
function Bn(e) {
|
|
3115
3115
|
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;
|
|
3116
3116
|
}
|
|
3117
|
-
function
|
|
3117
|
+
function lt(e) {
|
|
3118
3118
|
e.forEach(function(t) {
|
|
3119
|
-
if (delete t.location,
|
|
3119
|
+
if (delete t.location, yi(t) || vi(t))
|
|
3120
3120
|
for (var i in t.options)
|
|
3121
|
-
delete t.options[i].location,
|
|
3121
|
+
delete t.options[i].location, lt(t.options[i].value);
|
|
3122
3122
|
else
|
|
3123
|
-
|
|
3123
|
+
di(t) && Ei(t.style) || (bi(t) || gi(t)) && nt(t.style) ? delete t.style.location : _i(t) && lt(t.children);
|
|
3124
3124
|
});
|
|
3125
3125
|
}
|
|
3126
|
-
function
|
|
3127
|
-
t === void 0 && (t = {}), t =
|
|
3128
|
-
var i = new
|
|
3126
|
+
function Nn(e, t) {
|
|
3127
|
+
t === void 0 && (t = {}), t = Me({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3128
|
+
var i = new Sn(e, t).parse();
|
|
3129
3129
|
if (i.err) {
|
|
3130
|
-
var r = SyntaxError(
|
|
3130
|
+
var r = SyntaxError(T[i.err.kind]);
|
|
3131
3131
|
throw r.location = i.err.location, r.originalMessage = i.err.message, r;
|
|
3132
3132
|
}
|
|
3133
|
-
return t?.captureLocation ||
|
|
3133
|
+
return t?.captureLocation || lt(i.val), i.val;
|
|
3134
3134
|
}
|
|
3135
|
-
var
|
|
3135
|
+
var le;
|
|
3136
3136
|
(function(e) {
|
|
3137
3137
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3138
|
-
})(
|
|
3139
|
-
var
|
|
3138
|
+
})(le || (le = {}));
|
|
3139
|
+
var Ue = (
|
|
3140
3140
|
/** @class */
|
|
3141
3141
|
function(e) {
|
|
3142
|
-
|
|
3142
|
+
je(t, e);
|
|
3143
3143
|
function t(i, r, n) {
|
|
3144
3144
|
var o = e.call(this, i) || this;
|
|
3145
3145
|
return o.code = r, o.originalMessage = n, o;
|
|
@@ -3148,48 +3148,48 @@ var Re = (
|
|
|
3148
3148
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3149
3149
|
}, t;
|
|
3150
3150
|
}(Error)
|
|
3151
|
-
),
|
|
3151
|
+
), Ct = (
|
|
3152
3152
|
/** @class */
|
|
3153
3153
|
function(e) {
|
|
3154
|
-
|
|
3154
|
+
je(t, e);
|
|
3155
3155
|
function t(i, r, n, o) {
|
|
3156
|
-
return e.call(this, 'Invalid values for "'.concat(i, '": "').concat(r, '". Options are "').concat(Object.keys(n).join('", "'), '"'),
|
|
3156
|
+
return e.call(this, 'Invalid values for "'.concat(i, '": "').concat(r, '". Options are "').concat(Object.keys(n).join('", "'), '"'), le.INVALID_VALUE, o) || this;
|
|
3157
3157
|
}
|
|
3158
3158
|
return t;
|
|
3159
|
-
}(
|
|
3160
|
-
),
|
|
3159
|
+
}(Ue)
|
|
3160
|
+
), On = (
|
|
3161
3161
|
/** @class */
|
|
3162
3162
|
function(e) {
|
|
3163
|
-
|
|
3163
|
+
je(t, e);
|
|
3164
3164
|
function t(i, r, n) {
|
|
3165
|
-
return e.call(this, 'Value for "'.concat(i, '" must be of type ').concat(r),
|
|
3165
|
+
return e.call(this, 'Value for "'.concat(i, '" must be of type ').concat(r), le.INVALID_VALUE, n) || this;
|
|
3166
3166
|
}
|
|
3167
3167
|
return t;
|
|
3168
|
-
}(
|
|
3169
|
-
),
|
|
3168
|
+
}(Ue)
|
|
3169
|
+
), In = (
|
|
3170
3170
|
/** @class */
|
|
3171
3171
|
function(e) {
|
|
3172
|
-
|
|
3172
|
+
je(t, e);
|
|
3173
3173
|
function t(i, r) {
|
|
3174
|
-
return e.call(this, 'The intl string context variable "'.concat(i, '" was not provided to the string "').concat(r, '"'),
|
|
3174
|
+
return e.call(this, 'The intl string context variable "'.concat(i, '" was not provided to the string "').concat(r, '"'), le.MISSING_VALUE, r) || this;
|
|
3175
3175
|
}
|
|
3176
3176
|
return t;
|
|
3177
|
-
}(
|
|
3177
|
+
}(Ue)
|
|
3178
3178
|
), z;
|
|
3179
3179
|
(function(e) {
|
|
3180
3180
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3181
3181
|
})(z || (z = {}));
|
|
3182
|
-
function
|
|
3182
|
+
function Hn(e) {
|
|
3183
3183
|
return e.length < 2 ? e : e.reduce(function(t, i) {
|
|
3184
3184
|
var r = t[t.length - 1];
|
|
3185
3185
|
return !r || r.type !== z.literal || i.type !== z.literal ? t.push(i) : r.value += i.value, t;
|
|
3186
3186
|
}, []);
|
|
3187
3187
|
}
|
|
3188
|
-
function
|
|
3188
|
+
function Mn(e) {
|
|
3189
3189
|
return typeof e == "function";
|
|
3190
3190
|
}
|
|
3191
|
-
function
|
|
3192
|
-
if (e.length === 1 &&
|
|
3191
|
+
function Be(e, t, i, r, n, o, s) {
|
|
3192
|
+
if (e.length === 1 && At(e[0]))
|
|
3193
3193
|
return [
|
|
3194
3194
|
{
|
|
3195
3195
|
type: z.literal,
|
|
@@ -3198,14 +3198,14 @@ function Pe(e, t, i, r, n, o, s) {
|
|
|
3198
3198
|
];
|
|
3199
3199
|
for (var a = [], h = 0, l = e; h < l.length; h++) {
|
|
3200
3200
|
var u = l[h];
|
|
3201
|
-
if (
|
|
3201
|
+
if (At(u)) {
|
|
3202
3202
|
a.push({
|
|
3203
3203
|
type: z.literal,
|
|
3204
3204
|
value: u.value
|
|
3205
3205
|
});
|
|
3206
3206
|
continue;
|
|
3207
3207
|
}
|
|
3208
|
-
if (
|
|
3208
|
+
if (tn(u)) {
|
|
3209
3209
|
typeof o == "number" && a.push({
|
|
3210
3210
|
type: z.literal,
|
|
3211
3211
|
value: i.getNumberFormat(t).format(o)
|
|
@@ -3214,89 +3214,89 @@ function Pe(e, t, i, r, n, o, s) {
|
|
|
3214
3214
|
}
|
|
3215
3215
|
var c = u.value;
|
|
3216
3216
|
if (!(n && c in n))
|
|
3217
|
-
throw new
|
|
3218
|
-
var
|
|
3219
|
-
if (
|
|
3220
|
-
(!
|
|
3221
|
-
type: typeof
|
|
3222
|
-
value:
|
|
3217
|
+
throw new In(c, s);
|
|
3218
|
+
var p = n[c];
|
|
3219
|
+
if (en(u)) {
|
|
3220
|
+
(!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), a.push({
|
|
3221
|
+
type: typeof p == "string" ? z.literal : z.object,
|
|
3222
|
+
value: p
|
|
3223
3223
|
});
|
|
3224
3224
|
continue;
|
|
3225
3225
|
}
|
|
3226
|
-
if (
|
|
3227
|
-
var f = typeof u.style == "string" ? r.date[u.style] :
|
|
3226
|
+
if (bi(u)) {
|
|
3227
|
+
var f = typeof u.style == "string" ? r.date[u.style] : nt(u.style) ? u.style.parsedOptions : void 0;
|
|
3228
3228
|
a.push({
|
|
3229
3229
|
type: z.literal,
|
|
3230
|
-
value: i.getDateTimeFormat(t, f).format(
|
|
3230
|
+
value: i.getDateTimeFormat(t, f).format(p)
|
|
3231
3231
|
});
|
|
3232
3232
|
continue;
|
|
3233
3233
|
}
|
|
3234
|
-
if (
|
|
3235
|
-
var f = typeof u.style == "string" ? r.time[u.style] :
|
|
3234
|
+
if (gi(u)) {
|
|
3235
|
+
var f = typeof u.style == "string" ? r.time[u.style] : nt(u.style) ? u.style.parsedOptions : r.time.medium;
|
|
3236
3236
|
a.push({
|
|
3237
3237
|
type: z.literal,
|
|
3238
|
-
value: i.getDateTimeFormat(t, f).format(
|
|
3238
|
+
value: i.getDateTimeFormat(t, f).format(p)
|
|
3239
3239
|
});
|
|
3240
3240
|
continue;
|
|
3241
3241
|
}
|
|
3242
|
-
if (
|
|
3243
|
-
var f = typeof u.style == "string" ? r.number[u.style] :
|
|
3244
|
-
f && f.scale && (
|
|
3242
|
+
if (di(u)) {
|
|
3243
|
+
var f = typeof u.style == "string" ? r.number[u.style] : Ei(u.style) ? u.style.parsedOptions : void 0;
|
|
3244
|
+
f && f.scale && (p = p * (f.scale || 1)), a.push({
|
|
3245
3245
|
type: z.literal,
|
|
3246
|
-
value: i.getNumberFormat(t, f).format(
|
|
3246
|
+
value: i.getNumberFormat(t, f).format(p)
|
|
3247
3247
|
});
|
|
3248
3248
|
continue;
|
|
3249
3249
|
}
|
|
3250
|
-
if (
|
|
3251
|
-
var
|
|
3252
|
-
if (!
|
|
3253
|
-
throw new
|
|
3254
|
-
var
|
|
3255
|
-
return
|
|
3250
|
+
if (_i(u)) {
|
|
3251
|
+
var m = u.children, _ = u.value, R = n[_];
|
|
3252
|
+
if (!Mn(R))
|
|
3253
|
+
throw new On(_, "function", s);
|
|
3254
|
+
var N = Be(m, t, i, r, n, o), S = R(N.map(function(L) {
|
|
3255
|
+
return L.value;
|
|
3256
3256
|
}));
|
|
3257
|
-
Array.isArray(
|
|
3257
|
+
Array.isArray(S) || (S = [S]), a.push.apply(a, S.map(function(L) {
|
|
3258
3258
|
return {
|
|
3259
|
-
type: typeof
|
|
3260
|
-
value:
|
|
3259
|
+
type: typeof L == "string" ? z.literal : z.object,
|
|
3260
|
+
value: L
|
|
3261
3261
|
};
|
|
3262
3262
|
}));
|
|
3263
3263
|
}
|
|
3264
|
-
if (
|
|
3265
|
-
var
|
|
3266
|
-
if (!
|
|
3267
|
-
throw new
|
|
3268
|
-
a.push.apply(a,
|
|
3264
|
+
if (yi(u)) {
|
|
3265
|
+
var E = u.options[p] || u.options.other;
|
|
3266
|
+
if (!E)
|
|
3267
|
+
throw new Ct(u.value, p, Object.keys(u.options), s);
|
|
3268
|
+
a.push.apply(a, Be(E.value, t, i, r, n));
|
|
3269
3269
|
continue;
|
|
3270
3270
|
}
|
|
3271
|
-
if (
|
|
3272
|
-
var
|
|
3273
|
-
if (!
|
|
3271
|
+
if (vi(u)) {
|
|
3272
|
+
var E = u.options["=".concat(p)];
|
|
3273
|
+
if (!E) {
|
|
3274
3274
|
if (!Intl.PluralRules)
|
|
3275
|
-
throw new
|
|
3275
|
+
throw new Ue(`Intl.PluralRules is not available in this environment.
|
|
3276
3276
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3277
|
-
`,
|
|
3278
|
-
var
|
|
3279
|
-
|
|
3277
|
+
`, le.MISSING_INTL_API, s);
|
|
3278
|
+
var k = i.getPluralRules(t, { type: u.pluralType }).select(p - (u.offset || 0));
|
|
3279
|
+
E = u.options[k] || u.options.other;
|
|
3280
3280
|
}
|
|
3281
|
-
if (!
|
|
3282
|
-
throw new
|
|
3283
|
-
a.push.apply(a,
|
|
3281
|
+
if (!E)
|
|
3282
|
+
throw new Ct(u.value, p, Object.keys(u.options), s);
|
|
3283
|
+
a.push.apply(a, Be(E.value, t, i, r, n, p - (u.offset || 0)));
|
|
3284
3284
|
continue;
|
|
3285
3285
|
}
|
|
3286
3286
|
}
|
|
3287
|
-
return
|
|
3287
|
+
return Hn(a);
|
|
3288
3288
|
}
|
|
3289
|
-
function
|
|
3289
|
+
function Cn(e, t) {
|
|
3290
3290
|
return t ? Z(Z(Z({}, e || {}), t || {}), Object.keys(e).reduce(function(i, r) {
|
|
3291
3291
|
return i[r] = Z(Z({}, e[r]), t[r] || {}), i;
|
|
3292
3292
|
}, {})) : e;
|
|
3293
3293
|
}
|
|
3294
|
-
function
|
|
3294
|
+
function kn(e, t) {
|
|
3295
3295
|
return t ? Object.keys(e).reduce(function(i, r) {
|
|
3296
|
-
return i[r] =
|
|
3296
|
+
return i[r] = Cn(e[r], t[r]), i;
|
|
3297
3297
|
}, Z({}, e)) : e;
|
|
3298
3298
|
}
|
|
3299
|
-
function
|
|
3299
|
+
function Ke(e) {
|
|
3300
3300
|
return {
|
|
3301
3301
|
create: function() {
|
|
3302
3302
|
return {
|
|
@@ -3310,39 +3310,39 @@ function Je(e) {
|
|
|
3310
3310
|
}
|
|
3311
3311
|
};
|
|
3312
3312
|
}
|
|
3313
|
-
function
|
|
3313
|
+
function Dn(e) {
|
|
3314
3314
|
return e === void 0 && (e = {
|
|
3315
3315
|
number: {},
|
|
3316
3316
|
dateTime: {},
|
|
3317
3317
|
pluralRules: {}
|
|
3318
3318
|
}), {
|
|
3319
|
-
getNumberFormat:
|
|
3319
|
+
getNumberFormat: qe(function() {
|
|
3320
3320
|
for (var t, i = [], r = 0; r < arguments.length; r++)
|
|
3321
3321
|
i[r] = arguments[r];
|
|
3322
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3322
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ye([void 0], i, !1)))();
|
|
3323
3323
|
}, {
|
|
3324
|
-
cache:
|
|
3325
|
-
strategy:
|
|
3324
|
+
cache: Ke(e.number),
|
|
3325
|
+
strategy: Je.variadic
|
|
3326
3326
|
}),
|
|
3327
|
-
getDateTimeFormat:
|
|
3327
|
+
getDateTimeFormat: qe(function() {
|
|
3328
3328
|
for (var t, i = [], r = 0; r < arguments.length; r++)
|
|
3329
3329
|
i[r] = arguments[r];
|
|
3330
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3330
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ye([void 0], i, !1)))();
|
|
3331
3331
|
}, {
|
|
3332
|
-
cache:
|
|
3333
|
-
strategy:
|
|
3332
|
+
cache: Ke(e.dateTime),
|
|
3333
|
+
strategy: Je.variadic
|
|
3334
3334
|
}),
|
|
3335
|
-
getPluralRules:
|
|
3335
|
+
getPluralRules: qe(function() {
|
|
3336
3336
|
for (var t, i = [], r = 0; r < arguments.length; r++)
|
|
3337
3337
|
i[r] = arguments[r];
|
|
3338
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3338
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ye([void 0], i, !1)))();
|
|
3339
3339
|
}, {
|
|
3340
|
-
cache:
|
|
3341
|
-
strategy:
|
|
3340
|
+
cache: Ke(e.pluralRules),
|
|
3341
|
+
strategy: Je.variadic
|
|
3342
3342
|
})
|
|
3343
3343
|
};
|
|
3344
3344
|
}
|
|
3345
|
-
var
|
|
3345
|
+
var Rn = (
|
|
3346
3346
|
/** @class */
|
|
3347
3347
|
function() {
|
|
3348
3348
|
function e(t, i, r, n) {
|
|
@@ -3356,12 +3356,12 @@ var Cn = (
|
|
|
3356
3356
|
var l = o.formatToParts(h);
|
|
3357
3357
|
if (l.length === 1)
|
|
3358
3358
|
return l[0].value;
|
|
3359
|
-
var u = l.reduce(function(c,
|
|
3360
|
-
return !c.length ||
|
|
3359
|
+
var u = l.reduce(function(c, p) {
|
|
3360
|
+
return !c.length || p.type !== z.literal || typeof c[c.length - 1] != "string" ? c.push(p.value) : c[c.length - 1] += p.value, c;
|
|
3361
3361
|
}, []);
|
|
3362
3362
|
return u.length <= 1 ? u[0] || "" : u;
|
|
3363
3363
|
}, this.formatToParts = function(h) {
|
|
3364
|
-
return
|
|
3364
|
+
return Be(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3365
3365
|
}, this.resolvedOptions = function() {
|
|
3366
3366
|
var h;
|
|
3367
3367
|
return {
|
|
@@ -3374,13 +3374,13 @@ var Cn = (
|
|
|
3374
3374
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3375
3375
|
var s = n || {};
|
|
3376
3376
|
s.formatters;
|
|
3377
|
-
var a =
|
|
3377
|
+
var a = Vr(s, ["formatters"]);
|
|
3378
3378
|
this.ast = e.__parse(t, Z(Z({}, a), { locale: this.resolvedLocale }));
|
|
3379
3379
|
} else
|
|
3380
3380
|
this.ast = t;
|
|
3381
3381
|
if (!Array.isArray(this.ast))
|
|
3382
3382
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3383
|
-
this.formats =
|
|
3383
|
+
this.formats = kn(e.formats, r), this.formatters = n && n.formatters || Dn(this.formatterCache);
|
|
3384
3384
|
}
|
|
3385
3385
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3386
3386
|
get: function() {
|
|
@@ -3393,7 +3393,7 @@ var Cn = (
|
|
|
3393
3393
|
var i = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3394
3394
|
return i.length > 0 ? new Intl.Locale(i[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3395
3395
|
}
|
|
3396
|
-
}, e.__parse =
|
|
3396
|
+
}, e.__parse = Nn, e.formats = {
|
|
3397
3397
|
number: {
|
|
3398
3398
|
integer: {
|
|
3399
3399
|
maximumFractionDigits: 0
|
|
@@ -3454,7 +3454,7 @@ var Cn = (
|
|
|
3454
3454
|
}, e;
|
|
3455
3455
|
}()
|
|
3456
3456
|
);
|
|
3457
|
-
function
|
|
3457
|
+
function jn(e, t) {
|
|
3458
3458
|
if (t == null)
|
|
3459
3459
|
return;
|
|
3460
3460
|
if (t in e)
|
|
@@ -3475,92 +3475,92 @@ function Dn(e, t) {
|
|
|
3475
3475
|
r = void 0;
|
|
3476
3476
|
return r;
|
|
3477
3477
|
}
|
|
3478
|
-
const
|
|
3478
|
+
const J = {}, Un = (e, t, i) => i && (t in J || (J[t] = {}), e in J[t] || (J[t][e] = i), i), Bi = (e, t) => {
|
|
3479
3479
|
if (t == null)
|
|
3480
3480
|
return;
|
|
3481
|
-
if (t in
|
|
3482
|
-
return
|
|
3483
|
-
const i =
|
|
3481
|
+
if (t in J && e in J[t])
|
|
3482
|
+
return J[t][e];
|
|
3483
|
+
const i = $e(t);
|
|
3484
3484
|
for (let r = 0; r < i.length; r++) {
|
|
3485
|
-
const n = i[r], o =
|
|
3485
|
+
const n = i[r], o = Fn(n, e);
|
|
3486
3486
|
if (o)
|
|
3487
|
-
return
|
|
3487
|
+
return Un(e, t, o);
|
|
3488
3488
|
}
|
|
3489
3489
|
};
|
|
3490
|
-
let
|
|
3491
|
-
const
|
|
3492
|
-
function
|
|
3493
|
-
return
|
|
3490
|
+
let vt;
|
|
3491
|
+
const xe = Re({});
|
|
3492
|
+
function $n(e) {
|
|
3493
|
+
return vt[e] || null;
|
|
3494
3494
|
}
|
|
3495
|
-
function
|
|
3496
|
-
return e in
|
|
3495
|
+
function Ni(e) {
|
|
3496
|
+
return e in vt;
|
|
3497
3497
|
}
|
|
3498
|
-
function
|
|
3499
|
-
if (!
|
|
3498
|
+
function Fn(e, t) {
|
|
3499
|
+
if (!Ni(e))
|
|
3500
3500
|
return null;
|
|
3501
|
-
const i =
|
|
3502
|
-
return
|
|
3501
|
+
const i = $n(e);
|
|
3502
|
+
return jn(i, t);
|
|
3503
3503
|
}
|
|
3504
|
-
function
|
|
3504
|
+
function Gn(e) {
|
|
3505
3505
|
if (e == null)
|
|
3506
3506
|
return;
|
|
3507
|
-
const t =
|
|
3507
|
+
const t = $e(e);
|
|
3508
3508
|
for (let i = 0; i < t.length; i++) {
|
|
3509
3509
|
const r = t[i];
|
|
3510
|
-
if (
|
|
3510
|
+
if (Ni(r))
|
|
3511
3511
|
return r;
|
|
3512
3512
|
}
|
|
3513
3513
|
}
|
|
3514
|
-
function
|
|
3515
|
-
delete
|
|
3514
|
+
function Oi(e, ...t) {
|
|
3515
|
+
delete J[e], xe.update((i) => (i[e] = Wr.all([i[e] || {}, ...t]), i));
|
|
3516
3516
|
}
|
|
3517
|
-
|
|
3518
|
-
[
|
|
3517
|
+
he(
|
|
3518
|
+
[xe],
|
|
3519
3519
|
([e]) => Object.keys(e)
|
|
3520
3520
|
);
|
|
3521
|
-
|
|
3522
|
-
const
|
|
3523
|
-
function
|
|
3524
|
-
|
|
3521
|
+
xe.subscribe((e) => vt = e);
|
|
3522
|
+
const Ne = {};
|
|
3523
|
+
function zn(e, t) {
|
|
3524
|
+
Ne[e].delete(t), Ne[e].size === 0 && delete Ne[e];
|
|
3525
3525
|
}
|
|
3526
|
-
function
|
|
3527
|
-
return
|
|
3526
|
+
function Ii(e) {
|
|
3527
|
+
return Ne[e];
|
|
3528
3528
|
}
|
|
3529
|
-
function
|
|
3530
|
-
return
|
|
3531
|
-
const i =
|
|
3529
|
+
function Wn(e) {
|
|
3530
|
+
return $e(e).map((t) => {
|
|
3531
|
+
const i = Ii(t);
|
|
3532
3532
|
return [t, i ? [...i] : []];
|
|
3533
3533
|
}).filter(([, t]) => t.length > 0);
|
|
3534
3534
|
}
|
|
3535
|
-
function
|
|
3536
|
-
return e == null ? !1 :
|
|
3535
|
+
function ct(e) {
|
|
3536
|
+
return e == null ? !1 : $e(e).some(
|
|
3537
3537
|
(t) => {
|
|
3538
3538
|
var i;
|
|
3539
|
-
return (i =
|
|
3539
|
+
return (i = Ii(t)) == null ? void 0 : i.size;
|
|
3540
3540
|
}
|
|
3541
3541
|
);
|
|
3542
3542
|
}
|
|
3543
|
-
function
|
|
3543
|
+
function Vn(e, t) {
|
|
3544
3544
|
return Promise.all(
|
|
3545
|
-
t.map((r) => (
|
|
3546
|
-
).then((r) =>
|
|
3547
|
-
}
|
|
3548
|
-
const
|
|
3549
|
-
function
|
|
3550
|
-
if (!
|
|
3551
|
-
return e in
|
|
3552
|
-
const t =
|
|
3553
|
-
return
|
|
3545
|
+
t.map((r) => (zn(e, r), r().then((n) => n.default || n)))
|
|
3546
|
+
).then((r) => Oi(e, ...r));
|
|
3547
|
+
}
|
|
3548
|
+
const be = {};
|
|
3549
|
+
function Hi(e) {
|
|
3550
|
+
if (!ct(e))
|
|
3551
|
+
return e in be ? be[e] : Promise.resolve();
|
|
3552
|
+
const t = Wn(e);
|
|
3553
|
+
return be[e] = Promise.all(
|
|
3554
3554
|
t.map(
|
|
3555
|
-
([i, r]) =>
|
|
3555
|
+
([i, r]) => Vn(i, r)
|
|
3556
3556
|
)
|
|
3557
3557
|
).then(() => {
|
|
3558
|
-
if (
|
|
3559
|
-
return
|
|
3560
|
-
delete
|
|
3561
|
-
}),
|
|
3558
|
+
if (ct(e))
|
|
3559
|
+
return Hi(e);
|
|
3560
|
+
delete be[e];
|
|
3561
|
+
}), be[e];
|
|
3562
3562
|
}
|
|
3563
|
-
const
|
|
3563
|
+
const Xn = {
|
|
3564
3564
|
number: {
|
|
3565
3565
|
scientific: { notation: "scientific" },
|
|
3566
3566
|
engineering: { notation: "engineering" },
|
|
@@ -3589,135 +3589,135 @@ const Wn = {
|
|
|
3589
3589
|
timeZoneName: "short"
|
|
3590
3590
|
}
|
|
3591
3591
|
}
|
|
3592
|
-
},
|
|
3592
|
+
}, Zn = {
|
|
3593
3593
|
fallbackLocale: null,
|
|
3594
3594
|
loadingDelay: 200,
|
|
3595
|
-
formats:
|
|
3595
|
+
formats: Xn,
|
|
3596
3596
|
warnOnMissingMessages: !0,
|
|
3597
3597
|
handleMissingMessage: void 0,
|
|
3598
3598
|
ignoreTag: !0
|
|
3599
|
-
},
|
|
3600
|
-
function
|
|
3601
|
-
return
|
|
3599
|
+
}, Yn = Zn;
|
|
3600
|
+
function ce() {
|
|
3601
|
+
return Yn;
|
|
3602
3602
|
}
|
|
3603
|
-
const
|
|
3604
|
-
var
|
|
3603
|
+
const et = Re(!1);
|
|
3604
|
+
var qn = Object.defineProperty, Jn = Object.defineProperties, Qn = Object.getOwnPropertyDescriptors, kt = Object.getOwnPropertySymbols, Kn = Object.prototype.hasOwnProperty, eo = Object.prototype.propertyIsEnumerable, Dt = (e, t, i) => t in e ? qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, to = (e, t) => {
|
|
3605
3605
|
for (var i in t || (t = {}))
|
|
3606
|
-
|
|
3607
|
-
if (
|
|
3608
|
-
for (var i of
|
|
3609
|
-
|
|
3606
|
+
Kn.call(t, i) && Dt(e, i, t[i]);
|
|
3607
|
+
if (kt)
|
|
3608
|
+
for (var i of kt(t))
|
|
3609
|
+
eo.call(t, i) && Dt(e, i, t[i]);
|
|
3610
3610
|
return e;
|
|
3611
|
-
},
|
|
3612
|
-
let
|
|
3613
|
-
const
|
|
3614
|
-
function
|
|
3611
|
+
}, io = (e, t) => Jn(e, Qn(t));
|
|
3612
|
+
let ht;
|
|
3613
|
+
const Ce = Re(null);
|
|
3614
|
+
function Rt(e) {
|
|
3615
3615
|
return e.split("-").map((t, i, r) => r.slice(0, i + 1).join("-")).reverse();
|
|
3616
3616
|
}
|
|
3617
|
-
function
|
|
3618
|
-
const i =
|
|
3619
|
-
return t ? [.../* @__PURE__ */ new Set([...i, ...
|
|
3617
|
+
function $e(e, t = ce().fallbackLocale) {
|
|
3618
|
+
const i = Rt(e);
|
|
3619
|
+
return t ? [.../* @__PURE__ */ new Set([...i, ...Rt(t)])] : i;
|
|
3620
3620
|
}
|
|
3621
3621
|
function te() {
|
|
3622
|
-
return
|
|
3622
|
+
return ht ?? void 0;
|
|
3623
3623
|
}
|
|
3624
|
-
|
|
3625
|
-
|
|
3624
|
+
Ce.subscribe((e) => {
|
|
3625
|
+
ht = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3626
3626
|
});
|
|
3627
|
-
const
|
|
3628
|
-
if (e &&
|
|
3629
|
-
const { loadingDelay: t } =
|
|
3627
|
+
const ro = (e) => {
|
|
3628
|
+
if (e && Gn(e) && ct(e)) {
|
|
3629
|
+
const { loadingDelay: t } = ce();
|
|
3630
3630
|
let i;
|
|
3631
3631
|
return typeof window < "u" && te() != null && t ? i = window.setTimeout(
|
|
3632
|
-
() =>
|
|
3632
|
+
() => et.set(!0),
|
|
3633
3633
|
t
|
|
3634
|
-
) :
|
|
3635
|
-
|
|
3634
|
+
) : et.set(!0), Hi(e).then(() => {
|
|
3635
|
+
Ce.set(e);
|
|
3636
3636
|
}).finally(() => {
|
|
3637
|
-
clearTimeout(i),
|
|
3637
|
+
clearTimeout(i), et.set(!1);
|
|
3638
3638
|
});
|
|
3639
3639
|
}
|
|
3640
|
-
return
|
|
3641
|
-
},
|
|
3642
|
-
set:
|
|
3643
|
-
}),
|
|
3640
|
+
return Ce.set(e);
|
|
3641
|
+
}, fe = io(to({}, Ce), {
|
|
3642
|
+
set: ro
|
|
3643
|
+
}), Fe = (e) => {
|
|
3644
3644
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3645
3645
|
return (r) => {
|
|
3646
3646
|
const n = JSON.stringify(r);
|
|
3647
3647
|
return n in t ? t[n] : t[n] = e(r);
|
|
3648
3648
|
};
|
|
3649
3649
|
};
|
|
3650
|
-
var
|
|
3650
|
+
var no = Object.defineProperty, ke = Object.getOwnPropertySymbols, Mi = Object.prototype.hasOwnProperty, Ci = Object.prototype.propertyIsEnumerable, jt = (e, t, i) => t in e ? no(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, _t = (e, t) => {
|
|
3651
3651
|
for (var i in t || (t = {}))
|
|
3652
|
-
|
|
3653
|
-
if (
|
|
3654
|
-
for (var i of
|
|
3655
|
-
|
|
3652
|
+
Mi.call(t, i) && jt(e, i, t[i]);
|
|
3653
|
+
if (ke)
|
|
3654
|
+
for (var i of ke(t))
|
|
3655
|
+
Ci.call(t, i) && jt(e, i, t[i]);
|
|
3656
3656
|
return e;
|
|
3657
|
-
},
|
|
3657
|
+
}, pe = (e, t) => {
|
|
3658
3658
|
var i = {};
|
|
3659
3659
|
for (var r in e)
|
|
3660
|
-
|
|
3661
|
-
if (e != null &&
|
|
3662
|
-
for (var r of
|
|
3663
|
-
t.indexOf(r) < 0 &&
|
|
3660
|
+
Mi.call(e, r) && t.indexOf(r) < 0 && (i[r] = e[r]);
|
|
3661
|
+
if (e != null && ke)
|
|
3662
|
+
for (var r of ke(e))
|
|
3663
|
+
t.indexOf(r) < 0 && Ci.call(e, r) && (i[r] = e[r]);
|
|
3664
3664
|
return i;
|
|
3665
3665
|
};
|
|
3666
|
-
const
|
|
3667
|
-
const { formats: i } =
|
|
3666
|
+
const Le = (e, t) => {
|
|
3667
|
+
const { formats: i } = ce();
|
|
3668
3668
|
if (e in i && t in i[e])
|
|
3669
3669
|
return i[e][t];
|
|
3670
3670
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3671
|
-
},
|
|
3671
|
+
}, oo = Fe(
|
|
3672
3672
|
(e) => {
|
|
3673
|
-
var t = e, { locale: i, format: r } = t, n =
|
|
3673
|
+
var t = e, { locale: i, format: r } = t, n = pe(t, ["locale", "format"]);
|
|
3674
3674
|
if (i == null)
|
|
3675
3675
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3676
|
-
return r && (n =
|
|
3676
|
+
return r && (n = Le("number", r)), new Intl.NumberFormat(i, n);
|
|
3677
3677
|
}
|
|
3678
|
-
),
|
|
3678
|
+
), so = Fe(
|
|
3679
3679
|
(e) => {
|
|
3680
|
-
var t = e, { locale: i, format: r } = t, n =
|
|
3680
|
+
var t = e, { locale: i, format: r } = t, n = pe(t, ["locale", "format"]);
|
|
3681
3681
|
if (i == null)
|
|
3682
3682
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3683
|
-
return r ? n =
|
|
3683
|
+
return r ? n = Le("date", r) : Object.keys(n).length === 0 && (n = Le("date", "short")), new Intl.DateTimeFormat(i, n);
|
|
3684
3684
|
}
|
|
3685
|
-
),
|
|
3685
|
+
), ao = Fe(
|
|
3686
3686
|
(e) => {
|
|
3687
|
-
var t = e, { locale: i, format: r } = t, n =
|
|
3687
|
+
var t = e, { locale: i, format: r } = t, n = pe(t, ["locale", "format"]);
|
|
3688
3688
|
if (i == null)
|
|
3689
3689
|
throw new Error(
|
|
3690
3690
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3691
3691
|
);
|
|
3692
|
-
return r ? n =
|
|
3692
|
+
return r ? n = Le("time", r) : Object.keys(n).length === 0 && (n = Le("time", "short")), new Intl.DateTimeFormat(i, n);
|
|
3693
3693
|
}
|
|
3694
|
-
),
|
|
3694
|
+
), uo = (e = {}) => {
|
|
3695
3695
|
var t = e, {
|
|
3696
3696
|
locale: i = te()
|
|
3697
|
-
} = t, r =
|
|
3697
|
+
} = t, r = pe(t, [
|
|
3698
3698
|
"locale"
|
|
3699
3699
|
]);
|
|
3700
|
-
return
|
|
3701
|
-
},
|
|
3700
|
+
return oo(_t({ locale: i }, r));
|
|
3701
|
+
}, lo = (e = {}) => {
|
|
3702
3702
|
var t = e, {
|
|
3703
3703
|
locale: i = te()
|
|
3704
|
-
} = t, r =
|
|
3704
|
+
} = t, r = pe(t, [
|
|
3705
3705
|
"locale"
|
|
3706
3706
|
]);
|
|
3707
|
-
return
|
|
3708
|
-
},
|
|
3707
|
+
return so(_t({ locale: i }, r));
|
|
3708
|
+
}, co = (e = {}) => {
|
|
3709
3709
|
var t = e, {
|
|
3710
3710
|
locale: i = te()
|
|
3711
|
-
} = t, r =
|
|
3711
|
+
} = t, r = pe(t, [
|
|
3712
3712
|
"locale"
|
|
3713
3713
|
]);
|
|
3714
|
-
return
|
|
3715
|
-
},
|
|
3714
|
+
return ao(_t({ locale: i }, r));
|
|
3715
|
+
}, ho = Fe(
|
|
3716
3716
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3717
|
-
(e, t = te()) => new
|
|
3718
|
-
ignoreTag:
|
|
3717
|
+
(e, t = te()) => new Rn(e, t, ce().formats, {
|
|
3718
|
+
ignoreTag: ce().ignoreTag
|
|
3719
3719
|
})
|
|
3720
|
-
),
|
|
3720
|
+
), fo = (e, t = {}) => {
|
|
3721
3721
|
var i, r, n, o;
|
|
3722
3722
|
let s = t;
|
|
3723
3723
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -3730,9 +3730,9 @@ const _e = (e, t) => {
|
|
|
3730
3730
|
throw new Error(
|
|
3731
3731
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3732
3732
|
);
|
|
3733
|
-
let u =
|
|
3733
|
+
let u = Bi(e, h);
|
|
3734
3734
|
if (!u)
|
|
3735
|
-
u = (o = (n = (r = (i =
|
|
3735
|
+
u = (o = (n = (r = (i = ce()).handleMissingMessage) == null ? void 0 : r.call(i, { locale: h, id: e, defaultValue: l })) != null ? n : l) != null ? o : e;
|
|
3736
3736
|
else if (typeof u != "string")
|
|
3737
3737
|
return console.warn(
|
|
3738
3738
|
`[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.`
|
|
@@ -3741,26 +3741,26 @@ const _e = (e, t) => {
|
|
|
3741
3741
|
return u;
|
|
3742
3742
|
let c = u;
|
|
3743
3743
|
try {
|
|
3744
|
-
c =
|
|
3745
|
-
} catch (
|
|
3746
|
-
|
|
3744
|
+
c = ho(u, h).format(a);
|
|
3745
|
+
} catch (p) {
|
|
3746
|
+
p instanceof Error && console.warn(
|
|
3747
3747
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3748
|
-
|
|
3748
|
+
p.message
|
|
3749
3749
|
);
|
|
3750
3750
|
}
|
|
3751
3751
|
return c;
|
|
3752
|
-
},
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
function
|
|
3758
|
-
|
|
3759
|
-
}
|
|
3760
|
-
function
|
|
3761
|
-
|
|
3762
|
-
}
|
|
3763
|
-
const
|
|
3752
|
+
}, po = (e, t) => co(t).format(e), mo = (e, t) => lo(t).format(e), bo = (e, t) => uo(t).format(e), go = (e, t = te()) => Bi(e, t), yo = he([fe, xe], () => fo);
|
|
3753
|
+
he([fe], () => po);
|
|
3754
|
+
he([fe], () => mo);
|
|
3755
|
+
he([fe], () => bo);
|
|
3756
|
+
he([fe, xe], () => go);
|
|
3757
|
+
function Ut(e, t) {
|
|
3758
|
+
Oi(e, t);
|
|
3759
|
+
}
|
|
3760
|
+
function vo(e) {
|
|
3761
|
+
fe.set(e);
|
|
3762
|
+
}
|
|
3763
|
+
const $t = {
|
|
3764
3764
|
en: {
|
|
3765
3765
|
loadingText: "Loading, please wait...",
|
|
3766
3766
|
Monthly: "per month",
|
|
@@ -4227,24 +4227,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
4227
4227
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
4228
4228
|
PERFORMANCE OF THIS SOFTWARE.
|
|
4229
4229
|
***************************************************************************** */
|
|
4230
|
-
var
|
|
4231
|
-
return
|
|
4230
|
+
var ft = function(e, t) {
|
|
4231
|
+
return ft = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, r) {
|
|
4232
4232
|
i.__proto__ = r;
|
|
4233
4233
|
} || function(i, r) {
|
|
4234
4234
|
for (var n in r)
|
|
4235
4235
|
Object.prototype.hasOwnProperty.call(r, n) && (i[n] = r[n]);
|
|
4236
|
-
},
|
|
4236
|
+
}, ft(e, t);
|
|
4237
4237
|
};
|
|
4238
|
-
function
|
|
4238
|
+
function Te(e, t) {
|
|
4239
4239
|
if (typeof t != "function" && t !== null)
|
|
4240
4240
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
4241
|
-
|
|
4241
|
+
ft(e, t);
|
|
4242
4242
|
function i() {
|
|
4243
4243
|
this.constructor = e;
|
|
4244
4244
|
}
|
|
4245
4245
|
e.prototype = t === null ? Object.create(t) : (i.prototype = t.prototype, new i());
|
|
4246
4246
|
}
|
|
4247
|
-
function
|
|
4247
|
+
function pt(e) {
|
|
4248
4248
|
var t = typeof Symbol == "function" && Symbol.iterator, i = t && e[t], r = 0;
|
|
4249
4249
|
if (i)
|
|
4250
4250
|
return i.call(e);
|
|
@@ -4256,7 +4256,7 @@ function ht(e) {
|
|
|
4256
4256
|
};
|
|
4257
4257
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
4258
4258
|
}
|
|
4259
|
-
function
|
|
4259
|
+
function mt(e, t) {
|
|
4260
4260
|
var i = typeof Symbol == "function" && e[Symbol.iterator];
|
|
4261
4261
|
if (!i)
|
|
4262
4262
|
return e;
|
|
@@ -4276,7 +4276,7 @@ function ft(e, t) {
|
|
|
4276
4276
|
}
|
|
4277
4277
|
return o;
|
|
4278
4278
|
}
|
|
4279
|
-
function
|
|
4279
|
+
function dt(e, t, i) {
|
|
4280
4280
|
if (arguments.length === 2)
|
|
4281
4281
|
for (var r = 0, n = t.length, o; r < n; r++)
|
|
4282
4282
|
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
@@ -4285,13 +4285,13 @@ function mt(e, t, i) {
|
|
|
4285
4285
|
function q(e) {
|
|
4286
4286
|
return typeof e == "function";
|
|
4287
4287
|
}
|
|
4288
|
-
function
|
|
4288
|
+
function ki(e) {
|
|
4289
4289
|
var t = function(r) {
|
|
4290
4290
|
Error.call(r), r.stack = new Error().stack;
|
|
4291
4291
|
}, i = e(t);
|
|
4292
4292
|
return i.prototype = Object.create(Error.prototype), i.prototype.constructor = i, i;
|
|
4293
4293
|
}
|
|
4294
|
-
var
|
|
4294
|
+
var tt = ki(function(e) {
|
|
4295
4295
|
return function(i) {
|
|
4296
4296
|
e(this), this.message = i ? i.length + ` errors occurred during unsubscription:
|
|
4297
4297
|
` + i.map(function(r, n) {
|
|
@@ -4300,13 +4300,13 @@ var Ke = Mi(function(e) {
|
|
|
4300
4300
|
`) : "", this.name = "UnsubscriptionError", this.errors = i;
|
|
4301
4301
|
};
|
|
4302
4302
|
});
|
|
4303
|
-
function
|
|
4303
|
+
function bt(e, t) {
|
|
4304
4304
|
if (e) {
|
|
4305
4305
|
var i = e.indexOf(t);
|
|
4306
4306
|
0 <= i && e.splice(i, 1);
|
|
4307
4307
|
}
|
|
4308
4308
|
}
|
|
4309
|
-
var
|
|
4309
|
+
var Ge = function() {
|
|
4310
4310
|
function e(t) {
|
|
4311
4311
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
4312
4312
|
}
|
|
@@ -4318,7 +4318,7 @@ var $e = function() {
|
|
|
4318
4318
|
if (s)
|
|
4319
4319
|
if (this._parentage = null, Array.isArray(s))
|
|
4320
4320
|
try {
|
|
4321
|
-
for (var a =
|
|
4321
|
+
for (var a = pt(s), h = a.next(); !h.done; h = a.next()) {
|
|
4322
4322
|
var l = h.value;
|
|
4323
4323
|
l.remove(this);
|
|
4324
4324
|
}
|
|
@@ -4339,25 +4339,25 @@ var $e = function() {
|
|
|
4339
4339
|
try {
|
|
4340
4340
|
u();
|
|
4341
4341
|
} catch (_) {
|
|
4342
|
-
o = _ instanceof
|
|
4342
|
+
o = _ instanceof tt ? _.errors : [_];
|
|
4343
4343
|
}
|
|
4344
4344
|
var c = this._finalizers;
|
|
4345
4345
|
if (c) {
|
|
4346
4346
|
this._finalizers = null;
|
|
4347
4347
|
try {
|
|
4348
|
-
for (var
|
|
4349
|
-
var
|
|
4348
|
+
for (var p = pt(c), f = p.next(); !f.done; f = p.next()) {
|
|
4349
|
+
var m = f.value;
|
|
4350
4350
|
try {
|
|
4351
|
-
|
|
4351
|
+
Ft(m);
|
|
4352
4352
|
} catch (_) {
|
|
4353
|
-
o = o ?? [], _ instanceof
|
|
4353
|
+
o = o ?? [], _ instanceof tt ? o = dt(dt([], mt(o)), mt(_.errors)) : o.push(_);
|
|
4354
4354
|
}
|
|
4355
4355
|
}
|
|
4356
4356
|
} catch (_) {
|
|
4357
4357
|
r = { error: _ };
|
|
4358
4358
|
} finally {
|
|
4359
4359
|
try {
|
|
4360
|
-
f && !f.done && (n =
|
|
4360
|
+
f && !f.done && (n = p.return) && n.call(p);
|
|
4361
4361
|
} finally {
|
|
4362
4362
|
if (r)
|
|
4363
4363
|
throw r.error;
|
|
@@ -4365,13 +4365,13 @@ var $e = function() {
|
|
|
4365
4365
|
}
|
|
4366
4366
|
}
|
|
4367
4367
|
if (o)
|
|
4368
|
-
throw new
|
|
4368
|
+
throw new tt(o);
|
|
4369
4369
|
}
|
|
4370
4370
|
}, e.prototype.add = function(t) {
|
|
4371
4371
|
var i;
|
|
4372
4372
|
if (t && t !== this)
|
|
4373
4373
|
if (this.closed)
|
|
4374
|
-
|
|
4374
|
+
Ft(t);
|
|
4375
4375
|
else {
|
|
4376
4376
|
if (t instanceof e) {
|
|
4377
4377
|
if (t.closed || t._hasParent(this))
|
|
@@ -4388,52 +4388,52 @@ var $e = function() {
|
|
|
4388
4388
|
this._parentage = Array.isArray(i) ? (i.push(t), i) : i ? [i, t] : t;
|
|
4389
4389
|
}, e.prototype._removeParent = function(t) {
|
|
4390
4390
|
var i = this._parentage;
|
|
4391
|
-
i === t ? this._parentage = null : Array.isArray(i) &&
|
|
4391
|
+
i === t ? this._parentage = null : Array.isArray(i) && bt(i, t);
|
|
4392
4392
|
}, e.prototype.remove = function(t) {
|
|
4393
4393
|
var i = this._finalizers;
|
|
4394
|
-
i &&
|
|
4394
|
+
i && bt(i, t), t instanceof e && t._removeParent(this);
|
|
4395
4395
|
}, e.EMPTY = function() {
|
|
4396
4396
|
var t = new e();
|
|
4397
4397
|
return t.closed = !0, t;
|
|
4398
4398
|
}(), e;
|
|
4399
|
-
}(),
|
|
4400
|
-
function
|
|
4401
|
-
return e instanceof
|
|
4399
|
+
}(), Di = Ge.EMPTY;
|
|
4400
|
+
function Ri(e) {
|
|
4401
|
+
return e instanceof Ge || e && "closed" in e && q(e.remove) && q(e.add) && q(e.unsubscribe);
|
|
4402
4402
|
}
|
|
4403
|
-
function
|
|
4403
|
+
function Ft(e) {
|
|
4404
4404
|
q(e) ? e() : e.unsubscribe();
|
|
4405
4405
|
}
|
|
4406
|
-
var
|
|
4406
|
+
var _o = {
|
|
4407
4407
|
Promise: void 0
|
|
4408
|
-
},
|
|
4408
|
+
}, Eo = {
|
|
4409
4409
|
setTimeout: function(e, t) {
|
|
4410
4410
|
for (var i = [], r = 2; r < arguments.length; r++)
|
|
4411
4411
|
i[r - 2] = arguments[r];
|
|
4412
|
-
return setTimeout.apply(void 0,
|
|
4412
|
+
return setTimeout.apply(void 0, dt([e, t], mt(i)));
|
|
4413
4413
|
},
|
|
4414
4414
|
clearTimeout: function(e) {
|
|
4415
4415
|
return clearTimeout(e);
|
|
4416
4416
|
},
|
|
4417
4417
|
delegate: void 0
|
|
4418
4418
|
};
|
|
4419
|
-
function
|
|
4420
|
-
|
|
4419
|
+
function Lo(e) {
|
|
4420
|
+
Eo.setTimeout(function() {
|
|
4421
4421
|
throw e;
|
|
4422
4422
|
});
|
|
4423
4423
|
}
|
|
4424
|
-
function
|
|
4424
|
+
function Gt() {
|
|
4425
4425
|
}
|
|
4426
|
-
function
|
|
4426
|
+
function Oe(e) {
|
|
4427
4427
|
e();
|
|
4428
4428
|
}
|
|
4429
|
-
var
|
|
4430
|
-
|
|
4429
|
+
var ji = function(e) {
|
|
4430
|
+
Te(t, e);
|
|
4431
4431
|
function t(i) {
|
|
4432
4432
|
var r = e.call(this) || this;
|
|
4433
|
-
return r.isStopped = !1, i ? (r.destination = i,
|
|
4433
|
+
return r.isStopped = !1, i ? (r.destination = i, Ri(i) && i.add(r)) : r.destination = wo, r;
|
|
4434
4434
|
}
|
|
4435
4435
|
return t.create = function(i, r, n) {
|
|
4436
|
-
return new
|
|
4436
|
+
return new gt(i, r, n);
|
|
4437
4437
|
}, t.prototype.next = function(i) {
|
|
4438
4438
|
this.isStopped || this._next(i);
|
|
4439
4439
|
}, t.prototype.error = function(i) {
|
|
@@ -4457,7 +4457,7 @@ var Di = function(e) {
|
|
|
4457
4457
|
this.unsubscribe();
|
|
4458
4458
|
}
|
|
4459
4459
|
}, t;
|
|
4460
|
-
}(
|
|
4460
|
+
}(Ge), xo = function() {
|
|
4461
4461
|
function e(t) {
|
|
4462
4462
|
this.partialObserver = t;
|
|
4463
4463
|
}
|
|
@@ -4467,7 +4467,7 @@ var Di = function(e) {
|
|
|
4467
4467
|
try {
|
|
4468
4468
|
i.next(t);
|
|
4469
4469
|
} catch (r) {
|
|
4470
|
-
|
|
4470
|
+
Pe(r);
|
|
4471
4471
|
}
|
|
4472
4472
|
}, e.prototype.error = function(t) {
|
|
4473
4473
|
var i = this.partialObserver;
|
|
@@ -4475,56 +4475,56 @@ var Di = function(e) {
|
|
|
4475
4475
|
try {
|
|
4476
4476
|
i.error(t);
|
|
4477
4477
|
} catch (r) {
|
|
4478
|
-
|
|
4478
|
+
Pe(r);
|
|
4479
4479
|
}
|
|
4480
4480
|
else
|
|
4481
|
-
|
|
4481
|
+
Pe(t);
|
|
4482
4482
|
}, e.prototype.complete = function() {
|
|
4483
4483
|
var t = this.partialObserver;
|
|
4484
4484
|
if (t.complete)
|
|
4485
4485
|
try {
|
|
4486
4486
|
t.complete();
|
|
4487
4487
|
} catch (i) {
|
|
4488
|
-
|
|
4488
|
+
Pe(i);
|
|
4489
4489
|
}
|
|
4490
4490
|
}, e;
|
|
4491
|
-
}(),
|
|
4492
|
-
|
|
4491
|
+
}(), gt = function(e) {
|
|
4492
|
+
Te(t, e);
|
|
4493
4493
|
function t(i, r, n) {
|
|
4494
4494
|
var o = e.call(this) || this, s;
|
|
4495
4495
|
return q(i) || !i ? s = {
|
|
4496
4496
|
next: i ?? void 0,
|
|
4497
4497
|
error: r ?? void 0,
|
|
4498
4498
|
complete: n ?? void 0
|
|
4499
|
-
} : s = i, o.destination = new
|
|
4499
|
+
} : s = i, o.destination = new xo(s), o;
|
|
4500
4500
|
}
|
|
4501
4501
|
return t;
|
|
4502
|
-
}(
|
|
4503
|
-
function
|
|
4504
|
-
|
|
4502
|
+
}(ji);
|
|
4503
|
+
function Pe(e) {
|
|
4504
|
+
Lo(e);
|
|
4505
4505
|
}
|
|
4506
|
-
function
|
|
4506
|
+
function To(e) {
|
|
4507
4507
|
throw e;
|
|
4508
4508
|
}
|
|
4509
|
-
var
|
|
4509
|
+
var wo = {
|
|
4510
4510
|
closed: !0,
|
|
4511
|
-
next:
|
|
4512
|
-
error:
|
|
4513
|
-
complete:
|
|
4514
|
-
},
|
|
4511
|
+
next: Gt,
|
|
4512
|
+
error: To,
|
|
4513
|
+
complete: Gt
|
|
4514
|
+
}, So = function() {
|
|
4515
4515
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
4516
4516
|
}();
|
|
4517
|
-
function
|
|
4517
|
+
function Po(e) {
|
|
4518
4518
|
return e;
|
|
4519
4519
|
}
|
|
4520
|
-
function
|
|
4521
|
-
return e.length === 0 ?
|
|
4520
|
+
function Ao(e) {
|
|
4521
|
+
return e.length === 0 ? Po : e.length === 1 ? e[0] : function(i) {
|
|
4522
4522
|
return e.reduce(function(r, n) {
|
|
4523
4523
|
return n(r);
|
|
4524
4524
|
}, i);
|
|
4525
4525
|
};
|
|
4526
4526
|
}
|
|
4527
|
-
var
|
|
4527
|
+
var zt = function() {
|
|
4528
4528
|
function e(t) {
|
|
4529
4529
|
t && (this._subscribe = t);
|
|
4530
4530
|
}
|
|
@@ -4532,8 +4532,8 @@ var Ft = function() {
|
|
|
4532
4532
|
var i = new e();
|
|
4533
4533
|
return i.source = this, i.operator = t, i;
|
|
4534
4534
|
}, e.prototype.subscribe = function(t, i, r) {
|
|
4535
|
-
var n = this, o =
|
|
4536
|
-
return
|
|
4535
|
+
var n = this, o = No(t) ? t : new gt(t, i, r);
|
|
4536
|
+
return Oe(function() {
|
|
4537
4537
|
var s = n, a = s.operator, h = s.source;
|
|
4538
4538
|
o.add(a ? a.call(o, h) : h ? n._subscribe(o) : n._trySubscribe(o));
|
|
4539
4539
|
}), o;
|
|
@@ -4545,8 +4545,8 @@ var Ft = function() {
|
|
|
4545
4545
|
}
|
|
4546
4546
|
}, e.prototype.forEach = function(t, i) {
|
|
4547
4547
|
var r = this;
|
|
4548
|
-
return i =
|
|
4549
|
-
var s = new
|
|
4548
|
+
return i = Wt(i), new i(function(n, o) {
|
|
4549
|
+
var s = new gt({
|
|
4550
4550
|
next: function(a) {
|
|
4551
4551
|
try {
|
|
4552
4552
|
t(a);
|
|
@@ -4562,15 +4562,15 @@ var Ft = function() {
|
|
|
4562
4562
|
}, e.prototype._subscribe = function(t) {
|
|
4563
4563
|
var i;
|
|
4564
4564
|
return (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(t);
|
|
4565
|
-
}, e.prototype[
|
|
4565
|
+
}, e.prototype[So] = function() {
|
|
4566
4566
|
return this;
|
|
4567
4567
|
}, e.prototype.pipe = function() {
|
|
4568
4568
|
for (var t = [], i = 0; i < arguments.length; i++)
|
|
4569
4569
|
t[i] = arguments[i];
|
|
4570
|
-
return
|
|
4570
|
+
return Ao(t)(this);
|
|
4571
4571
|
}, e.prototype.toPromise = function(t) {
|
|
4572
4572
|
var i = this;
|
|
4573
|
-
return t =
|
|
4573
|
+
return t = Wt(t), new t(function(r, n) {
|
|
4574
4574
|
var o;
|
|
4575
4575
|
i.subscribe(function(s) {
|
|
4576
4576
|
return o = s;
|
|
@@ -4584,40 +4584,40 @@ var Ft = function() {
|
|
|
4584
4584
|
return new e(t);
|
|
4585
4585
|
}, e;
|
|
4586
4586
|
}();
|
|
4587
|
-
function
|
|
4587
|
+
function Wt(e) {
|
|
4588
4588
|
var t;
|
|
4589
|
-
return (t = e ??
|
|
4589
|
+
return (t = e ?? _o.Promise) !== null && t !== void 0 ? t : Promise;
|
|
4590
4590
|
}
|
|
4591
|
-
function
|
|
4591
|
+
function Bo(e) {
|
|
4592
4592
|
return e && q(e.next) && q(e.error) && q(e.complete);
|
|
4593
4593
|
}
|
|
4594
|
-
function
|
|
4595
|
-
return e && e instanceof
|
|
4594
|
+
function No(e) {
|
|
4595
|
+
return e && e instanceof ji || Bo(e) && Ri(e);
|
|
4596
4596
|
}
|
|
4597
|
-
var
|
|
4597
|
+
var Oo = ki(function(e) {
|
|
4598
4598
|
return function() {
|
|
4599
4599
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
4600
4600
|
};
|
|
4601
|
-
}),
|
|
4602
|
-
|
|
4601
|
+
}), Ui = function(e) {
|
|
4602
|
+
Te(t, e);
|
|
4603
4603
|
function t() {
|
|
4604
4604
|
var i = e.call(this) || this;
|
|
4605
4605
|
return i.closed = !1, i.currentObservers = null, i.observers = [], i.isStopped = !1, i.hasError = !1, i.thrownError = null, i;
|
|
4606
4606
|
}
|
|
4607
4607
|
return t.prototype.lift = function(i) {
|
|
4608
|
-
var r = new
|
|
4608
|
+
var r = new Vt(this, this);
|
|
4609
4609
|
return r.operator = i, r;
|
|
4610
4610
|
}, t.prototype._throwIfClosed = function() {
|
|
4611
4611
|
if (this.closed)
|
|
4612
|
-
throw new
|
|
4612
|
+
throw new Oo();
|
|
4613
4613
|
}, t.prototype.next = function(i) {
|
|
4614
4614
|
var r = this;
|
|
4615
|
-
|
|
4615
|
+
Oe(function() {
|
|
4616
4616
|
var n, o;
|
|
4617
4617
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
4618
4618
|
r.currentObservers || (r.currentObservers = Array.from(r.observers));
|
|
4619
4619
|
try {
|
|
4620
|
-
for (var s =
|
|
4620
|
+
for (var s = pt(r.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
4621
4621
|
var h = a.value;
|
|
4622
4622
|
h.next(i);
|
|
4623
4623
|
}
|
|
@@ -4635,7 +4635,7 @@ var Bo = Mi(function(e) {
|
|
|
4635
4635
|
});
|
|
4636
4636
|
}, t.prototype.error = function(i) {
|
|
4637
4637
|
var r = this;
|
|
4638
|
-
|
|
4638
|
+
Oe(function() {
|
|
4639
4639
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
4640
4640
|
r.hasError = r.isStopped = !0, r.thrownError = i;
|
|
4641
4641
|
for (var n = r.observers; n.length; )
|
|
@@ -4644,7 +4644,7 @@ var Bo = Mi(function(e) {
|
|
|
4644
4644
|
});
|
|
4645
4645
|
}, t.prototype.complete = function() {
|
|
4646
4646
|
var i = this;
|
|
4647
|
-
|
|
4647
|
+
Oe(function() {
|
|
4648
4648
|
if (i._throwIfClosed(), !i.isStopped) {
|
|
4649
4649
|
i.isStopped = !0;
|
|
4650
4650
|
for (var r = i.observers; r.length; )
|
|
@@ -4666,20 +4666,20 @@ var Bo = Mi(function(e) {
|
|
|
4666
4666
|
return this._throwIfClosed(), this._checkFinalizedStatuses(i), this._innerSubscribe(i);
|
|
4667
4667
|
}, t.prototype._innerSubscribe = function(i) {
|
|
4668
4668
|
var r = this, n = this, o = n.hasError, s = n.isStopped, a = n.observers;
|
|
4669
|
-
return o || s ?
|
|
4670
|
-
r.currentObservers = null,
|
|
4669
|
+
return o || s ? Di : (this.currentObservers = null, a.push(i), new Ge(function() {
|
|
4670
|
+
r.currentObservers = null, bt(a, i);
|
|
4671
4671
|
}));
|
|
4672
4672
|
}, t.prototype._checkFinalizedStatuses = function(i) {
|
|
4673
4673
|
var r = this, n = r.hasError, o = r.thrownError, s = r.isStopped;
|
|
4674
4674
|
n ? i.error(o) : s && i.complete();
|
|
4675
4675
|
}, t.prototype.asObservable = function() {
|
|
4676
|
-
var i = new
|
|
4676
|
+
var i = new zt();
|
|
4677
4677
|
return i.source = this, i;
|
|
4678
4678
|
}, t.create = function(i, r) {
|
|
4679
|
-
return new
|
|
4679
|
+
return new Vt(i, r);
|
|
4680
4680
|
}, t;
|
|
4681
|
-
}(
|
|
4682
|
-
|
|
4681
|
+
}(zt), Vt = function(e) {
|
|
4682
|
+
Te(t, e);
|
|
4683
4683
|
function t(i, r) {
|
|
4684
4684
|
var n = e.call(this) || this;
|
|
4685
4685
|
return n.destination = i, n.source = r, n;
|
|
@@ -4695,17 +4695,17 @@ var Bo = Mi(function(e) {
|
|
|
4695
4695
|
(r = (i = this.destination) === null || i === void 0 ? void 0 : i.complete) === null || r === void 0 || r.call(i);
|
|
4696
4696
|
}, t.prototype._subscribe = function(i) {
|
|
4697
4697
|
var r, n;
|
|
4698
|
-
return (n = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(i)) !== null && n !== void 0 ? n :
|
|
4698
|
+
return (n = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(i)) !== null && n !== void 0 ? n : Di;
|
|
4699
4699
|
}, t;
|
|
4700
|
-
}(
|
|
4700
|
+
}(Ui), $i = {
|
|
4701
4701
|
now: function() {
|
|
4702
|
-
return (
|
|
4702
|
+
return ($i.delegate || Date).now();
|
|
4703
4703
|
},
|
|
4704
4704
|
delegate: void 0
|
|
4705
|
-
},
|
|
4706
|
-
|
|
4705
|
+
}, Io = function(e) {
|
|
4706
|
+
Te(t, e);
|
|
4707
4707
|
function t(i, r, n) {
|
|
4708
|
-
i === void 0 && (i = 1 / 0), r === void 0 && (r = 1 / 0), n === void 0 && (n =
|
|
4708
|
+
i === void 0 && (i = 1 / 0), r === void 0 && (r = 1 / 0), n === void 0 && (n = $i);
|
|
4709
4709
|
var o = e.call(this) || this;
|
|
4710
4710
|
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;
|
|
4711
4711
|
}
|
|
@@ -4725,24 +4725,25 @@ var Bo = Mi(function(e) {
|
|
|
4725
4725
|
l && o.splice(0, l + 1);
|
|
4726
4726
|
}
|
|
4727
4727
|
}, t;
|
|
4728
|
-
}(
|
|
4729
|
-
const
|
|
4730
|
-
if (
|
|
4731
|
-
const i = new
|
|
4732
|
-
|
|
4728
|
+
}(Ui);
|
|
4729
|
+
const Xt = [], Zt = {}, Ho = (e, t = 0) => {
|
|
4730
|
+
if (Xt.indexOf(e) == -1) {
|
|
4731
|
+
const i = new Io(t);
|
|
4732
|
+
Zt[e] = i, Xt.push(e);
|
|
4733
4733
|
}
|
|
4734
|
-
return
|
|
4734
|
+
return Zt[e];
|
|
4735
4735
|
};
|
|
4736
|
-
window.emWidgets = { topic:
|
|
4737
|
-
const
|
|
4736
|
+
window.emWidgets = { topic: Ho };
|
|
4737
|
+
const Mo = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4738
4738
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4739
|
-
|
|
4739
|
+
const oe = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
4740
|
+
function Co(e, t) {
|
|
4740
4741
|
if (e) {
|
|
4741
4742
|
const i = document.createElement("style");
|
|
4742
4743
|
i.innerHTML = t, e.appendChild(i);
|
|
4743
4744
|
}
|
|
4744
4745
|
}
|
|
4745
|
-
function
|
|
4746
|
+
function ko(e, t) {
|
|
4746
4747
|
if (!e || !t)
|
|
4747
4748
|
return;
|
|
4748
4749
|
const i = new URL(t);
|
|
@@ -4753,39 +4754,66 @@ function Mo(e, t) {
|
|
|
4753
4754
|
console.error("There was an error while trying to load client styling from URL", r);
|
|
4754
4755
|
});
|
|
4755
4756
|
}
|
|
4756
|
-
function
|
|
4757
|
-
if (window.emMessageBus)
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4757
|
+
function Do(e, t, i, r = !1) {
|
|
4758
|
+
if (!window.emMessageBus)
|
|
4759
|
+
return;
|
|
4760
|
+
if (!("adoptedStyleSheets" in Document.prototype) || !r)
|
|
4761
|
+
return i = Ro(e, t), i;
|
|
4762
|
+
window[oe] || (window[oe] = {}), i = jo(e, t);
|
|
4763
|
+
const o = i.unsubscribe.bind(i), s = () => {
|
|
4764
|
+
if (window[oe][t]) {
|
|
4765
|
+
const a = window[oe][t];
|
|
4766
|
+
a.refCount > 1 ? a.refCount = a.refCount - 1 : delete window[oe][t];
|
|
4767
|
+
}
|
|
4768
|
+
o();
|
|
4769
|
+
};
|
|
4770
|
+
return i.unsubscribe = s, i;
|
|
4771
|
+
}
|
|
4772
|
+
function Ro(e, t) {
|
|
4773
|
+
const i = document.createElement("style");
|
|
4774
|
+
return window.emMessageBus.subscribe(t, (r) => {
|
|
4775
|
+
e && (i.innerHTML = r, e.appendChild(i));
|
|
4776
|
+
});
|
|
4777
|
+
}
|
|
4778
|
+
function jo(e, t) {
|
|
4779
|
+
return window.emMessageBus.subscribe(t, (i) => {
|
|
4780
|
+
if (!e)
|
|
4781
|
+
return;
|
|
4782
|
+
const r = e.getRootNode(), n = window[oe];
|
|
4783
|
+
let o = n[t]?.sheet;
|
|
4784
|
+
o ? n[t].refCount = n[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(i), n[t] = {
|
|
4785
|
+
sheet: o,
|
|
4786
|
+
refCount: 1
|
|
4761
4787
|
});
|
|
4762
|
-
|
|
4788
|
+
const s = r.adoptedStyleSheets || [];
|
|
4789
|
+
s.includes(o) || (r.adoptedStyleSheets = [...s, o]);
|
|
4790
|
+
});
|
|
4763
4791
|
}
|
|
4764
|
-
function
|
|
4765
|
-
|
|
4792
|
+
function Uo(e) {
|
|
4793
|
+
ur(e, "svelte-1uoztsw", ':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, #22B04E));box-shadow:0 0 0 1pt var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}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, #22B04E));box-shadow:0 0 0 1pt var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}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}');
|
|
4766
4794
|
}
|
|
4767
|
-
function
|
|
4795
|
+
function Yt(e, t, i) {
|
|
4768
4796
|
const r = e.slice();
|
|
4769
4797
|
return r[50] = t[i], r;
|
|
4770
4798
|
}
|
|
4771
|
-
function
|
|
4799
|
+
function qt(e, t, i) {
|
|
4772
4800
|
const r = e.slice();
|
|
4773
4801
|
return r[53] = t[i], r;
|
|
4774
4802
|
}
|
|
4775
|
-
function
|
|
4803
|
+
function Jt(e, t, i) {
|
|
4776
4804
|
const r = e.slice();
|
|
4777
4805
|
return r[53] = t[i], r;
|
|
4778
4806
|
}
|
|
4779
|
-
function
|
|
4807
|
+
function Qt(e, t, i) {
|
|
4780
4808
|
const r = e.slice();
|
|
4781
4809
|
return r[58] = t[i], r;
|
|
4782
4810
|
}
|
|
4783
|
-
function
|
|
4811
|
+
function Kt(e) {
|
|
4784
4812
|
let t, i;
|
|
4785
4813
|
function r(s, a) {
|
|
4786
4814
|
return (
|
|
4787
4815
|
/*popupReady*/
|
|
4788
|
-
s[11] ?
|
|
4816
|
+
s[11] ? $o : Fo
|
|
4789
4817
|
);
|
|
4790
4818
|
}
|
|
4791
4819
|
let n = r(e), o = n(e);
|
|
@@ -4795,31 +4823,31 @@ function Jt(e) {
|
|
|
4795
4823
|
(e[14] ? "Desktop" : "")), g(t, "class", "PopupOverlay");
|
|
4796
4824
|
},
|
|
4797
4825
|
m(s, a) {
|
|
4798
|
-
|
|
4826
|
+
B(s, t, a), d(t, i), o.m(i, null);
|
|
4799
4827
|
},
|
|
4800
4828
|
p(s, a) {
|
|
4801
4829
|
n === (n = r(s)) && o ? o.p(s, a) : (o.d(1), o = n(s), o && (o.c(), o.m(i, null)));
|
|
4802
4830
|
},
|
|
4803
4831
|
d(s) {
|
|
4804
|
-
s &&
|
|
4832
|
+
s && A(t), o.d();
|
|
4805
4833
|
}
|
|
4806
4834
|
};
|
|
4807
4835
|
}
|
|
4808
|
-
function
|
|
4836
|
+
function $o(e) {
|
|
4809
4837
|
let t, i, r = (
|
|
4810
4838
|
/*$_*/
|
|
4811
4839
|
e[13]("popupTitle") + ""
|
|
4812
|
-
), n, o, s, a, h, l, u, c,
|
|
4813
|
-
e[9] &&
|
|
4840
|
+
), n, o, s, a, h, l, u, c, p, f, m, _, R, N = !/*limitError*/
|
|
4841
|
+
e[9] && ei(e);
|
|
4814
4842
|
return {
|
|
4815
4843
|
c() {
|
|
4816
|
-
t = v("div"), i = v("span"), n =
|
|
4844
|
+
t = v("div"), i = v("span"), n = F(r), o = $(), s = v("button"), s.textContent = "X", a = $(), h = v("div"), l = v("div"), N && N.c(), u = $(), c = v("p"), p = F(
|
|
4817
4845
|
/*popupContent*/
|
|
4818
4846
|
e[12]
|
|
4819
|
-
), f =
|
|
4847
|
+
), f = $(), m = v("button"), m.textContent = "OK", g(i, "class", "PopupTitle"), g(s, "class", "ClosePopup"), g(t, "class", "PopupTitleWrapper"), g(l, "class", "ResultIconWrapper"), g(c, "class", "DescriptionParagraph"), g(h, "class", "DescriptionWrapper"), g(m, "class", "ConfirmButton");
|
|
4820
4848
|
},
|
|
4821
|
-
m(
|
|
4822
|
-
|
|
4849
|
+
m(S, E) {
|
|
4850
|
+
B(S, t, E), d(t, i), d(i, n), d(t, o), d(t, s), B(S, a, E), B(S, h, E), d(h, l), N && N.m(l, null), d(h, u), d(h, c), d(c, p), B(S, f, E), B(S, m, E), _ || (R = [
|
|
4823
4851
|
Y(
|
|
4824
4852
|
s,
|
|
4825
4853
|
"click",
|
|
@@ -4827,68 +4855,68 @@ function Do(e) {
|
|
|
4827
4855
|
e[20]
|
|
4828
4856
|
),
|
|
4829
4857
|
Y(
|
|
4830
|
-
|
|
4858
|
+
m,
|
|
4831
4859
|
"click",
|
|
4832
4860
|
/*closePopup*/
|
|
4833
4861
|
e[20]
|
|
4834
4862
|
)
|
|
4835
4863
|
], _ = !0);
|
|
4836
4864
|
},
|
|
4837
|
-
p(
|
|
4838
|
-
|
|
4865
|
+
p(S, E) {
|
|
4866
|
+
E[0] & /*$_*/
|
|
4839
4867
|
8192 && r !== (r = /*$_*/
|
|
4840
|
-
|
|
4841
|
-
|
|
4868
|
+
S[13]("popupTitle") + "") && W(n, r), /*limitError*/
|
|
4869
|
+
S[9] ? N && (N.d(1), N = null) : N ? N.p(S, E) : (N = ei(S), N.c(), N.m(l, null)), E[0] & /*popupContent*/
|
|
4842
4870
|
4096 && W(
|
|
4843
|
-
|
|
4871
|
+
p,
|
|
4844
4872
|
/*popupContent*/
|
|
4845
|
-
|
|
4873
|
+
S[12]
|
|
4846
4874
|
);
|
|
4847
4875
|
},
|
|
4848
|
-
d(
|
|
4849
|
-
|
|
4876
|
+
d(S) {
|
|
4877
|
+
S && (A(t), A(a), A(h), A(f), A(m)), N && N.d(), _ = !1, K(R);
|
|
4850
4878
|
}
|
|
4851
4879
|
};
|
|
4852
4880
|
}
|
|
4853
|
-
function
|
|
4881
|
+
function Fo(e) {
|
|
4854
4882
|
let t;
|
|
4855
4883
|
return {
|
|
4856
4884
|
c() {
|
|
4857
4885
|
t = v("div"), g(t, "class", "LoadingIndicator");
|
|
4858
4886
|
},
|
|
4859
4887
|
m(i, r) {
|
|
4860
|
-
|
|
4888
|
+
B(i, t, r);
|
|
4861
4889
|
},
|
|
4862
4890
|
p: j,
|
|
4863
4891
|
d(i) {
|
|
4864
|
-
i &&
|
|
4892
|
+
i && A(t);
|
|
4865
4893
|
}
|
|
4866
4894
|
};
|
|
4867
4895
|
}
|
|
4868
|
-
function
|
|
4896
|
+
function ei(e) {
|
|
4869
4897
|
let t, i, r, n, o, s, a, h, l = (
|
|
4870
4898
|
/*$_*/
|
|
4871
4899
|
e[13]("popupSuccess") + ""
|
|
4872
4900
|
), u;
|
|
4873
4901
|
return {
|
|
4874
4902
|
c() {
|
|
4875
|
-
t =
|
|
4876
|
-
`), o =
|
|
4903
|
+
t = de("svg"), i = de("defs"), r = de("style"), n = F(`.fil0 {fill:black;fill-rule:nonzero}
|
|
4904
|
+
`), o = de("g"), s = de("polygon"), a = $(), h = v("p"), u = F(l), g(r, "type", "text/css"), g(s, "class", "fil0"), g(s, "points", "0,38 10,25 36,47 78,0 90,11 37,69 "), g(t, "xmlns", "http://www.w3.org/2000/svg"), g(t, "xmlns:xlink", "http://www.w3.org/1999/xlink"), g(t, "xml:space", "preserve"), g(t, "version", "1.1"), Xe(t, "shape-rendering", "geometricPrecision"), Xe(t, "text-rendering", "geometricPrecision"), Xe(t, "image-rendering", "optimizeQuality"), g(t, "viewBox", "0 0 90 69"), g(t, "x", "0px"), g(t, "y", "0px"), g(t, "fill-rule", "evenodd"), g(t, "clip-rule", "evenodd");
|
|
4877
4905
|
},
|
|
4878
|
-
m(c,
|
|
4879
|
-
|
|
4906
|
+
m(c, p) {
|
|
4907
|
+
B(c, t, p), d(t, i), d(i, r), d(r, n), d(t, o), d(o, s), B(c, a, p), B(c, h, p), d(h, u);
|
|
4880
4908
|
},
|
|
4881
|
-
p(c,
|
|
4882
|
-
|
|
4909
|
+
p(c, p) {
|
|
4910
|
+
p[0] & /*$_*/
|
|
4883
4911
|
8192 && l !== (l = /*$_*/
|
|
4884
4912
|
c[13]("popupSuccess") + "") && W(u, l);
|
|
4885
4913
|
},
|
|
4886
4914
|
d(c) {
|
|
4887
|
-
c && (
|
|
4915
|
+
c && (A(t), A(a), A(h));
|
|
4888
4916
|
}
|
|
4889
4917
|
};
|
|
4890
4918
|
}
|
|
4891
|
-
function
|
|
4919
|
+
function Go(e) {
|
|
4892
4920
|
let t, i, r, n, o, s, a, h, l, u = (
|
|
4893
4921
|
/*multiplePeriods*/
|
|
4894
4922
|
e[6] ? `${/*$_*/
|
|
@@ -4897,40 +4925,40 @@ function jo(e) {
|
|
|
4897
4925
|
e[13](`gamingLimits.${/*selectedPeriod*/
|
|
4898
4926
|
e[2]}`)} ${/*$_*/
|
|
4899
4927
|
e[13]("limit")}`
|
|
4900
|
-
), c,
|
|
4928
|
+
), c, p, f, m, _, R = (
|
|
4901
4929
|
/*$_*/
|
|
4902
4930
|
e[13]("setLimit") + ""
|
|
4903
|
-
),
|
|
4931
|
+
), N, S, E, k = Q(
|
|
4904
4932
|
/*availableLimits*/
|
|
4905
4933
|
e[15]
|
|
4906
|
-
),
|
|
4907
|
-
for (let
|
|
4908
|
-
|
|
4909
|
-
let
|
|
4934
|
+
), L = [];
|
|
4935
|
+
for (let x = 0; x < k.length; x += 1)
|
|
4936
|
+
L[x] = ii(Jt(e, k, x));
|
|
4937
|
+
let O = (
|
|
4910
4938
|
/*multipleLimits*/
|
|
4911
|
-
e[5] &&
|
|
4939
|
+
e[5] && ri(e)
|
|
4912
4940
|
), D = (
|
|
4913
4941
|
/*multiplePeriods*/
|
|
4914
|
-
e[6] &&
|
|
4942
|
+
e[6] && oi(e)
|
|
4915
4943
|
);
|
|
4916
4944
|
return {
|
|
4917
4945
|
c() {
|
|
4918
4946
|
t = v("div"), i = v("div"), r = v("div");
|
|
4919
|
-
for (let
|
|
4920
|
-
|
|
4921
|
-
n =
|
|
4947
|
+
for (let x = 0; x < L.length; x += 1)
|
|
4948
|
+
L[x].c();
|
|
4949
|
+
n = $(), o = v("form"), O && O.c(), s = $(), D && D.c(), a = $(), h = v("label"), l = v("span"), c = F(u), p = $(), f = v("input"), m = $(), _ = v("button"), N = F(R), g(r, "class", "LimitsList " + /*isDesktop*/
|
|
4922
4950
|
(e[14] ? "Desktop" : "")), g(l, "class", "LimitInputText"), g(h, "class", "LimitAmountInputWrapper"), g(f, "type", "number"), g(f, "pattern", "[0-9]*"), g(_, "class", "LimitSubmitButton"), g(_, "type", "button"), _.disabled = !0, g(o, "class", "LimitsInteractionArea " + /*isDesktop*/
|
|
4923
4951
|
(e[14] ? "Desktop" : "")), g(i, "class", "LimitsPageContainer"), g(t, "class", "player-account-gaming-limits-page-2-gmcore");
|
|
4924
4952
|
},
|
|
4925
|
-
m(
|
|
4926
|
-
|
|
4927
|
-
for (let
|
|
4928
|
-
|
|
4929
|
-
d(i, n), d(i, o),
|
|
4953
|
+
m(x, U) {
|
|
4954
|
+
B(x, t, U), d(t, i), d(i, r);
|
|
4955
|
+
for (let H = 0; H < L.length; H += 1)
|
|
4956
|
+
L[H] && L[H].m(r, null);
|
|
4957
|
+
d(i, n), d(i, o), O && O.m(o, null), d(o, s), D && D.m(o, null), d(o, a), d(o, h), d(h, l), d(l, c), d(o, p), d(o, f), ye(
|
|
4930
4958
|
f,
|
|
4931
4959
|
/*inputAmount*/
|
|
4932
4960
|
e[3]
|
|
4933
|
-
), d(o,
|
|
4961
|
+
), d(o, m), d(o, _), d(_, N), e[35](_), S || (E = [
|
|
4934
4962
|
Y(
|
|
4935
4963
|
f,
|
|
4936
4964
|
"input",
|
|
@@ -4955,92 +4983,92 @@ function jo(e) {
|
|
|
4955
4983
|
/*updateLimits*/
|
|
4956
4984
|
e[17]
|
|
4957
4985
|
)
|
|
4958
|
-
],
|
|
4986
|
+
], S = !0);
|
|
4959
4987
|
},
|
|
4960
|
-
p(
|
|
4961
|
-
if (
|
|
4988
|
+
p(x, U) {
|
|
4989
|
+
if (U[0] & /*isDesktop, availableLimits, removeLimit, $_*/
|
|
4962
4990
|
581632) {
|
|
4963
|
-
|
|
4991
|
+
k = Q(
|
|
4964
4992
|
/*availableLimits*/
|
|
4965
|
-
|
|
4993
|
+
x[15]
|
|
4966
4994
|
);
|
|
4967
|
-
let
|
|
4968
|
-
for (
|
|
4969
|
-
const
|
|
4970
|
-
|
|
4995
|
+
let H;
|
|
4996
|
+
for (H = 0; H < k.length; H += 1) {
|
|
4997
|
+
const ee = Jt(x, k, H);
|
|
4998
|
+
L[H] ? L[H].p(ee, U) : (L[H] = ii(ee), L[H].c(), L[H].m(r, null));
|
|
4971
4999
|
}
|
|
4972
|
-
for (;
|
|
4973
|
-
|
|
4974
|
-
|
|
5000
|
+
for (; H < L.length; H += 1)
|
|
5001
|
+
L[H].d(1);
|
|
5002
|
+
L.length = k.length;
|
|
4975
5003
|
}
|
|
4976
5004
|
/*multipleLimits*/
|
|
4977
|
-
|
|
4978
|
-
|
|
5005
|
+
x[5] ? O ? O.p(x, U) : (O = ri(x), O.c(), O.m(o, s)) : O && (O.d(1), O = null), /*multiplePeriods*/
|
|
5006
|
+
x[6] ? D ? D.p(x, U) : (D = oi(x), D.c(), D.m(o, a)) : D && (D.d(1), D = null), U[0] & /*multiplePeriods, $_, selectedPeriod*/
|
|
4979
5007
|
8260 && u !== (u = /*multiplePeriods*/
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
8 &&
|
|
4987
|
-
|
|
5008
|
+
x[6] ? `${/*$_*/
|
|
5009
|
+
x[13]("amount")}` : `${/*$_*/
|
|
5010
|
+
x[13]("new")} ${/*$_*/
|
|
5011
|
+
x[13](`gamingLimits.${/*selectedPeriod*/
|
|
5012
|
+
x[2]}`)} ${/*$_*/
|
|
5013
|
+
x[13]("limit")}`) && W(c, u), U[0] & /*inputAmount*/
|
|
5014
|
+
8 && ci(f.value) !== /*inputAmount*/
|
|
5015
|
+
x[3] && ye(
|
|
4988
5016
|
f,
|
|
4989
5017
|
/*inputAmount*/
|
|
4990
|
-
|
|
4991
|
-
),
|
|
5018
|
+
x[3]
|
|
5019
|
+
), U[0] & /*$_*/
|
|
4992
5020
|
8192 && R !== (R = /*$_*/
|
|
4993
|
-
|
|
5021
|
+
x[13]("setLimit") + "") && W(N, R);
|
|
4994
5022
|
},
|
|
4995
|
-
d(
|
|
4996
|
-
|
|
5023
|
+
d(x) {
|
|
5024
|
+
x && A(t), De(L, x), O && O.d(), D && D.d(), e[35](null), S = !1, K(E);
|
|
4997
5025
|
}
|
|
4998
5026
|
};
|
|
4999
5027
|
}
|
|
5000
|
-
function
|
|
5028
|
+
function zo(e) {
|
|
5001
5029
|
let t;
|
|
5002
5030
|
return {
|
|
5003
5031
|
c() {
|
|
5004
5032
|
t = v("p"), t.textContent = "500 Server error";
|
|
5005
5033
|
},
|
|
5006
5034
|
m(i, r) {
|
|
5007
|
-
|
|
5035
|
+
B(i, t, r);
|
|
5008
5036
|
},
|
|
5009
5037
|
p: j,
|
|
5010
5038
|
d(i) {
|
|
5011
|
-
i &&
|
|
5039
|
+
i && A(t);
|
|
5012
5040
|
}
|
|
5013
5041
|
};
|
|
5014
5042
|
}
|
|
5015
|
-
function
|
|
5043
|
+
function Wo(e) {
|
|
5016
5044
|
return { c: j, m: j, p: j, d: j };
|
|
5017
5045
|
}
|
|
5018
|
-
function
|
|
5046
|
+
function Vo(e) {
|
|
5019
5047
|
let t;
|
|
5020
5048
|
return {
|
|
5021
5049
|
c() {
|
|
5022
5050
|
t = v("div"), g(t, "class", "LoadingIndicator");
|
|
5023
5051
|
},
|
|
5024
5052
|
m(i, r) {
|
|
5025
|
-
|
|
5053
|
+
B(i, t, r);
|
|
5026
5054
|
},
|
|
5027
5055
|
p: j,
|
|
5028
5056
|
d(i) {
|
|
5029
|
-
i &&
|
|
5057
|
+
i && A(t);
|
|
5030
5058
|
}
|
|
5031
5059
|
};
|
|
5032
5060
|
}
|
|
5033
|
-
function
|
|
5061
|
+
function Xo(e) {
|
|
5034
5062
|
let t, i, r, n = (
|
|
5035
5063
|
/*$_*/
|
|
5036
5064
|
e[13]("noLimitText") + ""
|
|
5037
5065
|
), o;
|
|
5038
5066
|
return {
|
|
5039
5067
|
c() {
|
|
5040
|
-
t = v("div"), i = v("div"), r = v("div"), o =
|
|
5068
|
+
t = v("div"), i = v("div"), r = v("div"), o = F(n), g(r, "class", "LimitDetailsTextWrapper"), g(i, "class", "LimitDetailsWrapper"), g(t, "class", "LimitDetails");
|
|
5041
5069
|
},
|
|
5042
5070
|
m(s, a) {
|
|
5043
|
-
|
|
5071
|
+
B(s, t, a), d(t, i), d(i, r), d(r, o);
|
|
5044
5072
|
},
|
|
5045
5073
|
p(s, a) {
|
|
5046
5074
|
a[0] & /*$_*/
|
|
@@ -5048,39 +5076,39 @@ function Go(e) {
|
|
|
5048
5076
|
s[13]("noLimitText") + "") && W(o, n);
|
|
5049
5077
|
},
|
|
5050
5078
|
d(s) {
|
|
5051
|
-
s &&
|
|
5079
|
+
s && A(t);
|
|
5052
5080
|
}
|
|
5053
5081
|
};
|
|
5054
5082
|
}
|
|
5055
|
-
function
|
|
5056
|
-
let t, i =
|
|
5083
|
+
function Zo(e) {
|
|
5084
|
+
let t, i = Q(
|
|
5057
5085
|
/*limit*/
|
|
5058
5086
|
e[53].currentLimits
|
|
5059
5087
|
), r = [];
|
|
5060
5088
|
for (let n = 0; n < i.length; n += 1)
|
|
5061
|
-
r[n] =
|
|
5089
|
+
r[n] = ti(Qt(e, i, n));
|
|
5062
5090
|
return {
|
|
5063
5091
|
c() {
|
|
5064
5092
|
for (let n = 0; n < r.length; n += 1)
|
|
5065
5093
|
r[n].c();
|
|
5066
|
-
t =
|
|
5094
|
+
t = hr();
|
|
5067
5095
|
},
|
|
5068
5096
|
m(n, o) {
|
|
5069
5097
|
for (let s = 0; s < r.length; s += 1)
|
|
5070
5098
|
r[s] && r[s].m(n, o);
|
|
5071
|
-
|
|
5099
|
+
B(n, t, o);
|
|
5072
5100
|
},
|
|
5073
5101
|
p(n, o) {
|
|
5074
5102
|
if (o[0] & /*removeLimit, availableLimits, $_*/
|
|
5075
5103
|
565248) {
|
|
5076
|
-
i =
|
|
5104
|
+
i = Q(
|
|
5077
5105
|
/*limit*/
|
|
5078
5106
|
n[53].currentLimits
|
|
5079
5107
|
);
|
|
5080
5108
|
let s;
|
|
5081
5109
|
for (s = 0; s < i.length; s += 1) {
|
|
5082
|
-
const a =
|
|
5083
|
-
r[s] ? r[s].p(a, o) : (r[s] =
|
|
5110
|
+
const a = Qt(n, i, s);
|
|
5111
|
+
r[s] ? r[s].p(a, o) : (r[s] = ti(a), r[s].c(), r[s].m(t.parentNode, t));
|
|
5084
5112
|
}
|
|
5085
5113
|
for (; s < r.length; s += 1)
|
|
5086
5114
|
r[s].d(1);
|
|
@@ -5088,20 +5116,20 @@ function zo(e) {
|
|
|
5088
5116
|
}
|
|
5089
5117
|
},
|
|
5090
5118
|
d(n) {
|
|
5091
|
-
n &&
|
|
5119
|
+
n && A(t), De(r, n);
|
|
5092
5120
|
}
|
|
5093
5121
|
};
|
|
5094
5122
|
}
|
|
5095
|
-
function
|
|
5123
|
+
function Yo(e) {
|
|
5096
5124
|
let t, i = `${/*$_*/
|
|
5097
5125
|
e[13]("removedLimitText")} ${/*currentLimit*/
|
|
5098
5126
|
e[58].expiryDate}`, r;
|
|
5099
5127
|
return {
|
|
5100
5128
|
c() {
|
|
5101
|
-
t = v("div"), r =
|
|
5129
|
+
t = v("div"), r = F(i), g(t, "class", "PendingLimit");
|
|
5102
5130
|
},
|
|
5103
5131
|
m(n, o) {
|
|
5104
|
-
|
|
5132
|
+
B(n, t, o), d(t, r);
|
|
5105
5133
|
},
|
|
5106
5134
|
p(n, o) {
|
|
5107
5135
|
o[0] & /*$_*/
|
|
@@ -5110,11 +5138,11 @@ function Wo(e) {
|
|
|
5110
5138
|
n[58].expiryDate}`) && W(r, i);
|
|
5111
5139
|
},
|
|
5112
5140
|
d(n) {
|
|
5113
|
-
n &&
|
|
5141
|
+
n && A(t);
|
|
5114
5142
|
}
|
|
5115
5143
|
};
|
|
5116
5144
|
}
|
|
5117
|
-
function
|
|
5145
|
+
function qo(e) {
|
|
5118
5146
|
let t, i = `${/*currentLimit*/
|
|
5119
5147
|
e[58].updateAmount}${/*currentLimit*/
|
|
5120
5148
|
e[58].currency} ${/*$_*/
|
|
@@ -5124,10 +5152,10 @@ function Vo(e) {
|
|
|
5124
5152
|
e[58].expiryDate}`, r;
|
|
5125
5153
|
return {
|
|
5126
5154
|
c() {
|
|
5127
|
-
t = v("div"), r =
|
|
5155
|
+
t = v("div"), r = F(i), g(t, "class", "PendingLimit");
|
|
5128
5156
|
},
|
|
5129
5157
|
m(n, o) {
|
|
5130
|
-
|
|
5158
|
+
B(n, t, o), d(t, r);
|
|
5131
5159
|
},
|
|
5132
5160
|
p(n, o) {
|
|
5133
5161
|
o[0] & /*$_*/
|
|
@@ -5140,11 +5168,11 @@ function Vo(e) {
|
|
|
5140
5168
|
n[58].expiryDate}`) && W(r, i);
|
|
5141
5169
|
},
|
|
5142
5170
|
d(n) {
|
|
5143
|
-
n &&
|
|
5171
|
+
n && A(t);
|
|
5144
5172
|
}
|
|
5145
5173
|
};
|
|
5146
5174
|
}
|
|
5147
|
-
function
|
|
5175
|
+
function Jo(e) {
|
|
5148
5176
|
let t, i = (
|
|
5149
5177
|
/*$_*/
|
|
5150
5178
|
e[13]("gamingLimits.removeLimit") + ""
|
|
@@ -5160,10 +5188,10 @@ function Xo(e) {
|
|
|
5160
5188
|
}
|
|
5161
5189
|
return {
|
|
5162
5190
|
c() {
|
|
5163
|
-
t = v("button"), r =
|
|
5191
|
+
t = v("button"), r = F(i), g(t, "class", "RemoveLimitButton");
|
|
5164
5192
|
},
|
|
5165
5193
|
m(a, h) {
|
|
5166
|
-
|
|
5194
|
+
B(a, t, h), d(t, r), n || (o = Y(t, "click", s), n = !0);
|
|
5167
5195
|
},
|
|
5168
5196
|
p(a, h) {
|
|
5169
5197
|
e = a, h[0] & /*$_*/
|
|
@@ -5171,53 +5199,53 @@ function Xo(e) {
|
|
|
5171
5199
|
e[13]("gamingLimits.removeLimit") + "") && W(r, i);
|
|
5172
5200
|
},
|
|
5173
5201
|
d(a) {
|
|
5174
|
-
a &&
|
|
5202
|
+
a && A(t), n = !1, o();
|
|
5175
5203
|
}
|
|
5176
5204
|
};
|
|
5177
5205
|
}
|
|
5178
|
-
function
|
|
5206
|
+
function ti(e) {
|
|
5179
5207
|
let t, i, r, n = `${/*currentLimit*/
|
|
5180
5208
|
e[58].amount}${/*currentLimit*/
|
|
5181
5209
|
e[58].currency} ${/*$_*/
|
|
5182
5210
|
e[13](`gamingLimits.${/*currentLimit*/
|
|
5183
5211
|
e[58].period}`)}`, o, s, a, h;
|
|
5184
|
-
function l(f,
|
|
5212
|
+
function l(f, m) {
|
|
5185
5213
|
if (
|
|
5186
5214
|
/*currentLimit*/
|
|
5187
5215
|
f[58].isModified && /*currentLimit*/
|
|
5188
5216
|
f[58].updateAmount != "-1"
|
|
5189
5217
|
)
|
|
5190
|
-
return
|
|
5218
|
+
return qo;
|
|
5191
5219
|
if (
|
|
5192
5220
|
/*currentLimit*/
|
|
5193
5221
|
f[58].isModified
|
|
5194
5222
|
)
|
|
5195
|
-
return
|
|
5223
|
+
return Yo;
|
|
5196
5224
|
}
|
|
5197
|
-
let u = l(e), c = u && u(e),
|
|
5198
|
-
e[58].isModified &&
|
|
5225
|
+
let u = l(e), c = u && u(e), p = !/*currentLimit*/
|
|
5226
|
+
e[58].isModified && Jo(e);
|
|
5199
5227
|
return {
|
|
5200
5228
|
c() {
|
|
5201
|
-
t = v("div"), i = v("div"), r = v("div"), o =
|
|
5229
|
+
t = v("div"), i = v("div"), r = v("div"), o = F(n), s = $(), c && c.c(), a = $(), p && p.c(), h = $(), g(r, "class", "CurrentLimit"), g(i, "class", "LimitDetailsTextWrapper"), g(t, "class", "LimitDetails");
|
|
5202
5230
|
},
|
|
5203
|
-
m(f,
|
|
5204
|
-
|
|
5231
|
+
m(f, m) {
|
|
5232
|
+
B(f, t, m), d(t, i), d(i, r), d(r, o), d(i, s), c && c.m(i, null), d(t, a), p && p.m(t, null), d(t, h);
|
|
5205
5233
|
},
|
|
5206
|
-
p(f,
|
|
5207
|
-
|
|
5234
|
+
p(f, m) {
|
|
5235
|
+
m[0] & /*$_*/
|
|
5208
5236
|
8192 && n !== (n = `${/*currentLimit*/
|
|
5209
5237
|
f[58].amount}${/*currentLimit*/
|
|
5210
5238
|
f[58].currency} ${/*$_*/
|
|
5211
5239
|
f[13](`gamingLimits.${/*currentLimit*/
|
|
5212
|
-
f[58].period}`)}`) && W(o, n), c && c.p(f,
|
|
5213
|
-
f[58].isModified ||
|
|
5240
|
+
f[58].period}`)}`) && W(o, n), c && c.p(f, m), /*currentLimit*/
|
|
5241
|
+
f[58].isModified || p.p(f, m);
|
|
5214
5242
|
},
|
|
5215
5243
|
d(f) {
|
|
5216
|
-
f &&
|
|
5244
|
+
f && A(t), c && c.d(), p && p.d();
|
|
5217
5245
|
}
|
|
5218
5246
|
};
|
|
5219
5247
|
}
|
|
5220
|
-
function
|
|
5248
|
+
function ii(e) {
|
|
5221
5249
|
let t, i, r = (
|
|
5222
5250
|
/*$_*/
|
|
5223
5251
|
e[13](`gamingLimits.${/*limit*/
|
|
@@ -5226,17 +5254,17 @@ function ei(e) {
|
|
|
5226
5254
|
function a(u, c) {
|
|
5227
5255
|
return (
|
|
5228
5256
|
/*limit*/
|
|
5229
|
-
u[53].currentLimits.length > 0 ?
|
|
5257
|
+
u[53].currentLimits.length > 0 ? Zo : Xo
|
|
5230
5258
|
);
|
|
5231
5259
|
}
|
|
5232
5260
|
let l = a(e)(e);
|
|
5233
5261
|
return {
|
|
5234
5262
|
c() {
|
|
5235
|
-
t = v("div"), i = v("p"), n =
|
|
5263
|
+
t = v("div"), i = v("p"), n = F(r), o = $(), l.c(), s = $(), g(i, "class", "LimitTitle"), g(t, "class", "LimitWrapper " + /*isDesktop*/
|
|
5236
5264
|
(e[14] ? "Desktop" : ""));
|
|
5237
5265
|
},
|
|
5238
5266
|
m(u, c) {
|
|
5239
|
-
|
|
5267
|
+
B(u, t, c), d(t, i), d(i, n), d(t, o), l.m(t, null), d(t, s);
|
|
5240
5268
|
},
|
|
5241
5269
|
p(u, c) {
|
|
5242
5270
|
c[0] & /*$_*/
|
|
@@ -5245,36 +5273,36 @@ function ei(e) {
|
|
|
5245
5273
|
u[53].value}`) + "") && W(n, r), l.p(u, c);
|
|
5246
5274
|
},
|
|
5247
5275
|
d(u) {
|
|
5248
|
-
u &&
|
|
5276
|
+
u && A(t), l.d();
|
|
5249
5277
|
}
|
|
5250
5278
|
};
|
|
5251
5279
|
}
|
|
5252
|
-
function
|
|
5280
|
+
function ri(e) {
|
|
5253
5281
|
let t, i, r = (
|
|
5254
5282
|
/*$_*/
|
|
5255
5283
|
e[13]("limitType") + ""
|
|
5256
|
-
), n, o, s, a, h, l =
|
|
5284
|
+
), n, o, s, a, h, l = Q(
|
|
5257
5285
|
/*availableLimits*/
|
|
5258
5286
|
e[15]
|
|
5259
5287
|
), u = [];
|
|
5260
5288
|
for (let c = 0; c < l.length; c += 1)
|
|
5261
|
-
u[c] =
|
|
5289
|
+
u[c] = ni(qt(e, l, c));
|
|
5262
5290
|
return {
|
|
5263
5291
|
c() {
|
|
5264
|
-
t = v("label"), i = v("span"), n =
|
|
5292
|
+
t = v("label"), i = v("span"), n = F(r), o = $(), s = v("select");
|
|
5265
5293
|
for (let c = 0; c < u.length; c += 1)
|
|
5266
5294
|
u[c].c();
|
|
5267
5295
|
g(i, "class", "LimitSelectText"), g(s, "name", ""), g(s, "id", ""), /*selectedLimit*/
|
|
5268
|
-
e[1] === void 0 &&
|
|
5296
|
+
e[1] === void 0 && _e(() => (
|
|
5269
5297
|
/*select_change_handler*/
|
|
5270
5298
|
e[32].call(s)
|
|
5271
5299
|
)), g(t, "class", "LimitTypeDropdownWrapper");
|
|
5272
5300
|
},
|
|
5273
|
-
m(c,
|
|
5274
|
-
|
|
5301
|
+
m(c, p) {
|
|
5302
|
+
B(c, t, p), d(t, i), d(i, n), d(t, o), d(t, s);
|
|
5275
5303
|
for (let f = 0; f < u.length; f += 1)
|
|
5276
5304
|
u[f] && u[f].m(s, null);
|
|
5277
|
-
|
|
5305
|
+
Ie(
|
|
5278
5306
|
s,
|
|
5279
5307
|
/*selectedLimit*/
|
|
5280
5308
|
e[1],
|
|
@@ -5294,81 +5322,81 @@ function ti(e) {
|
|
|
5294
5322
|
)
|
|
5295
5323
|
], a = !0);
|
|
5296
5324
|
},
|
|
5297
|
-
p(c,
|
|
5298
|
-
if (
|
|
5325
|
+
p(c, p) {
|
|
5326
|
+
if (p[0] & /*$_*/
|
|
5299
5327
|
8192 && r !== (r = /*$_*/
|
|
5300
|
-
c[13]("limitType") + "") && W(n, r),
|
|
5328
|
+
c[13]("limitType") + "") && W(n, r), p[0] & /*availableLimits*/
|
|
5301
5329
|
32768) {
|
|
5302
|
-
l =
|
|
5330
|
+
l = Q(
|
|
5303
5331
|
/*availableLimits*/
|
|
5304
5332
|
c[15]
|
|
5305
5333
|
);
|
|
5306
5334
|
let f;
|
|
5307
5335
|
for (f = 0; f < l.length; f += 1) {
|
|
5308
|
-
const
|
|
5309
|
-
u[f] ? u[f].p(
|
|
5336
|
+
const m = qt(c, l, f);
|
|
5337
|
+
u[f] ? u[f].p(m, p) : (u[f] = ni(m), u[f].c(), u[f].m(s, null));
|
|
5310
5338
|
}
|
|
5311
5339
|
for (; f < u.length; f += 1)
|
|
5312
5340
|
u[f].d(1);
|
|
5313
5341
|
u.length = l.length;
|
|
5314
5342
|
}
|
|
5315
|
-
|
|
5316
|
-
32770 &&
|
|
5343
|
+
p[0] & /*selectedLimit, availableLimits*/
|
|
5344
|
+
32770 && Ie(
|
|
5317
5345
|
s,
|
|
5318
5346
|
/*selectedLimit*/
|
|
5319
5347
|
c[1]
|
|
5320
5348
|
);
|
|
5321
5349
|
},
|
|
5322
5350
|
d(c) {
|
|
5323
|
-
c &&
|
|
5351
|
+
c && A(t), De(u, c), a = !1, K(h);
|
|
5324
5352
|
}
|
|
5325
5353
|
};
|
|
5326
5354
|
}
|
|
5327
|
-
function
|
|
5355
|
+
function ni(e) {
|
|
5328
5356
|
let t, i = (
|
|
5329
5357
|
/*limit*/
|
|
5330
5358
|
e[53].title + ""
|
|
5331
5359
|
), r;
|
|
5332
5360
|
return {
|
|
5333
5361
|
c() {
|
|
5334
|
-
t = v("option"), r =
|
|
5335
|
-
e[53].value,
|
|
5362
|
+
t = v("option"), r = F(i), t.__value = /*limit*/
|
|
5363
|
+
e[53].value, ye(t, t.__value);
|
|
5336
5364
|
},
|
|
5337
5365
|
m(n, o) {
|
|
5338
|
-
|
|
5366
|
+
B(n, t, o), d(t, r);
|
|
5339
5367
|
},
|
|
5340
5368
|
p: j,
|
|
5341
5369
|
d(n) {
|
|
5342
|
-
n &&
|
|
5370
|
+
n && A(t);
|
|
5343
5371
|
}
|
|
5344
5372
|
};
|
|
5345
5373
|
}
|
|
5346
|
-
function
|
|
5374
|
+
function oi(e) {
|
|
5347
5375
|
let t, i, r = (
|
|
5348
5376
|
/*$_*/
|
|
5349
5377
|
e[13]("period") + ""
|
|
5350
|
-
), n, o, s, a, h, l =
|
|
5378
|
+
), n, o, s, a, h, l = Q(X[
|
|
5351
5379
|
/*selectedLimit*/
|
|
5352
5380
|
e[1]
|
|
5353
5381
|
].periods), u = [];
|
|
5354
5382
|
for (let c = 0; c < l.length; c += 1)
|
|
5355
|
-
u[c] =
|
|
5383
|
+
u[c] = si(Yt(e, l, c));
|
|
5356
5384
|
return {
|
|
5357
5385
|
c() {
|
|
5358
|
-
t = v("label"), i = v("span"), n =
|
|
5386
|
+
t = v("label"), i = v("span"), n = F(r), o = $(), s = v("select");
|
|
5359
5387
|
for (let c = 0; c < u.length; c += 1)
|
|
5360
5388
|
u[c].c();
|
|
5361
5389
|
g(i, "class", "PeriodSelectText"), g(t, "class", "LimitPeriodDropdownWrapper"), g(s, "name", ""), g(s, "id", ""), /*selectedPeriod*/
|
|
5362
|
-
e[2] === void 0 &&
|
|
5390
|
+
e[2] === void 0 && _e(() => (
|
|
5363
5391
|
/*select_change_handler_1*/
|
|
5364
5392
|
e[33].call(s)
|
|
5365
5393
|
));
|
|
5366
5394
|
},
|
|
5367
|
-
m(c,
|
|
5368
|
-
|
|
5395
|
+
m(c, p) {
|
|
5396
|
+
B(c, t, p), d(t, i), d(i, n), B(c, o, p), B(c, s, p);
|
|
5369
5397
|
for (let f = 0; f < u.length; f += 1)
|
|
5370
5398
|
u[f] && u[f].m(s, null);
|
|
5371
|
-
|
|
5399
|
+
Ie(
|
|
5372
5400
|
s,
|
|
5373
5401
|
/*selectedPeriod*/
|
|
5374
5402
|
e[2],
|
|
@@ -5380,37 +5408,37 @@ function ri(e) {
|
|
|
5380
5408
|
e[33]
|
|
5381
5409
|
), a = !0);
|
|
5382
5410
|
},
|
|
5383
|
-
p(c,
|
|
5384
|
-
if (
|
|
5411
|
+
p(c, p) {
|
|
5412
|
+
if (p[0] & /*$_*/
|
|
5385
5413
|
8192 && r !== (r = /*$_*/
|
|
5386
|
-
c[13]("period") + "") && W(n, r),
|
|
5414
|
+
c[13]("period") + "") && W(n, r), p[0] & /*selectedLimit, $_*/
|
|
5387
5415
|
8194) {
|
|
5388
|
-
l =
|
|
5416
|
+
l = Q(X[
|
|
5389
5417
|
/*selectedLimit*/
|
|
5390
5418
|
c[1]
|
|
5391
5419
|
].periods);
|
|
5392
5420
|
let f;
|
|
5393
5421
|
for (f = 0; f < l.length; f += 1) {
|
|
5394
|
-
const
|
|
5395
|
-
u[f] ? u[f].p(
|
|
5422
|
+
const m = Yt(c, l, f);
|
|
5423
|
+
u[f] ? u[f].p(m, p) : (u[f] = si(m), u[f].c(), u[f].m(s, null));
|
|
5396
5424
|
}
|
|
5397
5425
|
for (; f < u.length; f += 1)
|
|
5398
5426
|
u[f].d(1);
|
|
5399
5427
|
u.length = l.length;
|
|
5400
5428
|
}
|
|
5401
|
-
|
|
5402
|
-
6 &&
|
|
5429
|
+
p[0] & /*selectedPeriod, selectedLimit*/
|
|
5430
|
+
6 && Ie(
|
|
5403
5431
|
s,
|
|
5404
5432
|
/*selectedPeriod*/
|
|
5405
5433
|
c[2]
|
|
5406
5434
|
);
|
|
5407
5435
|
},
|
|
5408
5436
|
d(c) {
|
|
5409
|
-
c && (
|
|
5437
|
+
c && (A(t), A(o), A(s)), De(u, c), a = !1, h();
|
|
5410
5438
|
}
|
|
5411
5439
|
};
|
|
5412
5440
|
}
|
|
5413
|
-
function
|
|
5441
|
+
function si(e) {
|
|
5414
5442
|
let t, i = (
|
|
5415
5443
|
/*$_*/
|
|
5416
5444
|
e[13](`gamingLimits.${/*period*/
|
|
@@ -5418,11 +5446,11 @@ function ni(e) {
|
|
|
5418
5446
|
), r, n;
|
|
5419
5447
|
return {
|
|
5420
5448
|
c() {
|
|
5421
|
-
t = v("option"), r =
|
|
5422
|
-
e[50],
|
|
5449
|
+
t = v("option"), r = F(i), t.__value = n = /*period*/
|
|
5450
|
+
e[50], ye(t, t.__value), t.selected = !0;
|
|
5423
5451
|
},
|
|
5424
5452
|
m(o, s) {
|
|
5425
|
-
|
|
5453
|
+
B(o, t, s), d(t, r);
|
|
5426
5454
|
},
|
|
5427
5455
|
p(o, s) {
|
|
5428
5456
|
s[0] & /*$_, selectedLimit*/
|
|
@@ -5430,27 +5458,27 @@ function ni(e) {
|
|
|
5430
5458
|
o[13](`gamingLimits.${/*period*/
|
|
5431
5459
|
o[50]}`) + "") && W(r, i), s[0] & /*selectedLimit, availableLimits*/
|
|
5432
5460
|
32770 && n !== (n = /*period*/
|
|
5433
|
-
o[50]) && (t.__value = n,
|
|
5461
|
+
o[50]) && (t.__value = n, ye(t, t.__value));
|
|
5434
5462
|
},
|
|
5435
5463
|
d(o) {
|
|
5436
|
-
o &&
|
|
5464
|
+
o && A(t);
|
|
5437
5465
|
}
|
|
5438
5466
|
};
|
|
5439
5467
|
}
|
|
5440
|
-
function
|
|
5468
|
+
function Qo(e) {
|
|
5441
5469
|
let t, i, r = (
|
|
5442
5470
|
/*popupVisible*/
|
|
5443
|
-
e[10] &&
|
|
5471
|
+
e[10] && Kt(e)
|
|
5444
5472
|
);
|
|
5445
5473
|
function n(a, h) {
|
|
5446
5474
|
return (
|
|
5447
5475
|
/*isLoading*/
|
|
5448
5476
|
a[7] && !/*popupVisible*/
|
|
5449
|
-
a[10] ?
|
|
5477
|
+
a[10] ? Vo : (
|
|
5450
5478
|
/*isLoading*/
|
|
5451
|
-
a[7] ?
|
|
5479
|
+
a[7] ? Wo : (
|
|
5452
5480
|
/*fetchError*/
|
|
5453
|
-
a[8] ?
|
|
5481
|
+
a[8] ? zo : Go
|
|
5454
5482
|
)
|
|
5455
5483
|
)
|
|
5456
5484
|
);
|
|
@@ -5458,60 +5486,60 @@ function Zo(e) {
|
|
|
5458
5486
|
let o = n(e), s = o(e);
|
|
5459
5487
|
return {
|
|
5460
5488
|
c() {
|
|
5461
|
-
t = v("div"), r && r.c(), i =
|
|
5489
|
+
t = v("div"), r && r.c(), i = $(), s.c();
|
|
5462
5490
|
},
|
|
5463
5491
|
m(a, h) {
|
|
5464
|
-
|
|
5492
|
+
B(a, t, h), r && r.m(t, null), d(t, i), s.m(t, null), e[36](t);
|
|
5465
5493
|
},
|
|
5466
5494
|
p(a, h) {
|
|
5467
5495
|
/*popupVisible*/
|
|
5468
|
-
a[10] ? r ? r.p(a, h) : (r =
|
|
5496
|
+
a[10] ? r ? r.p(a, h) : (r = Kt(a), r.c(), r.m(t, i)) : r && (r.d(1), r = null), o === (o = n(a)) && s ? s.p(a, h) : (s.d(1), s = o(a), s && (s.c(), s.m(t, null)));
|
|
5469
5497
|
},
|
|
5470
5498
|
i: j,
|
|
5471
5499
|
o: j,
|
|
5472
5500
|
d(a) {
|
|
5473
|
-
a &&
|
|
5501
|
+
a && A(t), r && r.d(), s.d(), e[36](null);
|
|
5474
5502
|
}
|
|
5475
5503
|
};
|
|
5476
5504
|
}
|
|
5477
|
-
function
|
|
5505
|
+
function Ko(e, t, i) {
|
|
5478
5506
|
let r;
|
|
5479
|
-
|
|
5480
|
-
let { lang: n = "en" } = t, { currency: o = "" } = t, { limits: s = "" } = t, { session: a = "" } = t, { userid: h = "" } = t, { endpoint: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: c = "" } = t, { translationurl:
|
|
5481
|
-
const
|
|
5507
|
+
ar(e, yo, (b) => i(13, r = b));
|
|
5508
|
+
let { lang: n = "en" } = t, { currency: o = "" } = t, { limits: s = "" } = t, { session: a = "" } = t, { userid: h = "" } = t, { endpoint: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: c = "" } = t, { translationurl: p = "" } = t, { mbsource: f } = t, m, _, R = window.navigator.userAgent, N = !Mo(R), S = [], E = "", k = "", L, O, D = !1, x = !1, U = !0, H = !1, ee = !1, me = !1, ze = !1, We = "", we;
|
|
5509
|
+
const Et = { EUR: "€", RON: " lei" }, Fi = {
|
|
5482
5510
|
updatePendingError: ["SYS_1037", "SYS_1142", "SYS_1140"]
|
|
5483
|
-
},
|
|
5484
|
-
fetch(
|
|
5485
|
-
Object.keys(y).forEach((
|
|
5486
|
-
|
|
5511
|
+
}, Gi = () => {
|
|
5512
|
+
fetch(p).then((y) => y.json()).then((y) => {
|
|
5513
|
+
Object.keys(y).forEach((M) => {
|
|
5514
|
+
Ut(M, y[M]);
|
|
5487
5515
|
});
|
|
5488
5516
|
}).catch((y) => {
|
|
5489
5517
|
console.log(y);
|
|
5490
5518
|
});
|
|
5491
5519
|
};
|
|
5492
|
-
Object.keys(
|
|
5493
|
-
|
|
5520
|
+
Object.keys($t).forEach((b) => {
|
|
5521
|
+
Ut(b, $t[b]);
|
|
5494
5522
|
});
|
|
5495
|
-
const
|
|
5523
|
+
const zi = () => {
|
|
5496
5524
|
s.split(" ").forEach((y) => {
|
|
5497
5525
|
X[y] ? S.push(X[y]) : console.error(`Unknown limit: ${y}`);
|
|
5498
|
-
}), i(1,
|
|
5499
|
-
},
|
|
5500
|
-
i(2,
|
|
5501
|
-
},
|
|
5502
|
-
if (!(
|
|
5526
|
+
}), i(1, E = S[0].value), i(2, k = X[E].periods[0]), i(5, D = S.length > 1), i(6, x = X[E].periods.length > 1);
|
|
5527
|
+
}, Wi = () => {
|
|
5528
|
+
i(2, k = X[E].periods[0]), i(6, x = X[E].periods.length > 1);
|
|
5529
|
+
}, Vi = () => {
|
|
5530
|
+
if (!(L > 0))
|
|
5503
5531
|
return;
|
|
5504
|
-
i(10,
|
|
5532
|
+
i(10, me = !0), i(7, U = !0);
|
|
5505
5533
|
let b = new URL(`/v2/player/${h}/limits`, l);
|
|
5506
5534
|
const y = {};
|
|
5507
|
-
y[X[
|
|
5535
|
+
y[X[E].callValue] = [
|
|
5508
5536
|
{
|
|
5509
|
-
period:
|
|
5510
|
-
amount:
|
|
5537
|
+
period: k,
|
|
5538
|
+
amount: L,
|
|
5511
5539
|
currency: o
|
|
5512
5540
|
}
|
|
5513
5541
|
];
|
|
5514
|
-
let
|
|
5542
|
+
let M = {
|
|
5515
5543
|
method: "PUT",
|
|
5516
5544
|
headers: {
|
|
5517
5545
|
"X-SessionID": a,
|
|
@@ -5520,20 +5548,20 @@ function Yo(e, t, i) {
|
|
|
5520
5548
|
},
|
|
5521
5549
|
body: JSON.stringify(y)
|
|
5522
5550
|
};
|
|
5523
|
-
fetch(b.href,
|
|
5524
|
-
|
|
5551
|
+
fetch(b.href, M).then((P) => (P.status >= 300 && i(9, ee = !0), P.json())).then((P) => {
|
|
5552
|
+
Ve(), ee && Xi(P);
|
|
5525
5553
|
}).catch((P) => {
|
|
5526
|
-
console.log(P), i(7,
|
|
5554
|
+
console.log(P), i(7, U = !1), i(8, H = !0);
|
|
5527
5555
|
});
|
|
5528
|
-
},
|
|
5556
|
+
}, Xi = (b) => {
|
|
5529
5557
|
const y = b.error.match(/errorCode:(.*)\)/)[1];
|
|
5530
5558
|
console.error(`API response error: ${y}`);
|
|
5531
|
-
let
|
|
5532
|
-
for (const [P,
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
},
|
|
5536
|
-
let b = new URL(`/v2/player/${h}/limits`, l), y = !
|
|
5559
|
+
let M;
|
|
5560
|
+
for (const [P, G] of Object.entries(Fi))
|
|
5561
|
+
G.includes(y) && (M = r(`gamingLimits.${P}`));
|
|
5562
|
+
M = M ?? r("gamingLimits.genericError"), Lt(y, M);
|
|
5563
|
+
}, Ve = () => {
|
|
5564
|
+
let b = new URL(`/v2/player/${h}/limits`, l), y = !ee, M = {
|
|
5537
5565
|
method: "GET",
|
|
5538
5566
|
headers: {
|
|
5539
5567
|
"X-SessionID": a,
|
|
@@ -5541,47 +5569,47 @@ function Yo(e, t, i) {
|
|
|
5541
5569
|
Accept: "application/json"
|
|
5542
5570
|
}
|
|
5543
5571
|
};
|
|
5544
|
-
fetch(b.href,
|
|
5572
|
+
fetch(b.href, M).then((P) => {
|
|
5545
5573
|
if (P.status >= 300)
|
|
5546
|
-
throw i(7,
|
|
5574
|
+
throw i(7, U = !1), i(8, H = !0), new Error("There was an error fetching the limits");
|
|
5547
5575
|
return P.json();
|
|
5548
5576
|
}).then((P) => {
|
|
5549
|
-
|
|
5577
|
+
we = P, me && y && Lt(), Zi(we), i(7, U = !1), i(3, L = null);
|
|
5550
5578
|
}).catch((P) => {
|
|
5551
|
-
console.log(P), i(7,
|
|
5579
|
+
console.log(P), i(7, U = !1), i(8, H = !0);
|
|
5552
5580
|
});
|
|
5553
|
-
},
|
|
5581
|
+
}, Zi = (b) => {
|
|
5554
5582
|
S.forEach((y) => {
|
|
5555
|
-
y.currentLimits = [], b[X[y.value].callValue]?.forEach((
|
|
5556
|
-
const
|
|
5557
|
-
y.currentLimits.push({}), y.currentLimits[P].limitType = y.value, y.currentLimits[P].amount = Intl.NumberFormat("en-US", { maximumFractionDigits: 0 }).format(
|
|
5558
|
-
}), y.currentLimits =
|
|
5583
|
+
y.currentLimits = [], b[X[y.value].callValue]?.forEach((M, P) => {
|
|
5584
|
+
const G = b[X[y.value].callValue][P];
|
|
5585
|
+
y.currentLimits.push({}), y.currentLimits[P].limitType = y.value, y.currentLimits[P].amount = Intl.NumberFormat("en-US", { maximumFractionDigits: 0 }).format(G.amount), y.currentLimits[P].currency = Et[G.currency] ?? G.currency, y.currentLimits[P].period = G.period, y.currentLimits[P].updateAmount = Intl.NumberFormat("en-US", { maximumFractionDigits: 0 }).format(G.updateAmount), y.currentLimits[P].isModified = G.isModified, y.currentLimits[P].expiryDate = `${new Date(G.expiryDate).toLocaleDateString("en-de", { hour: "numeric", minute: "numeric" }).replaceAll("/", ".")} (GMT)`;
|
|
5586
|
+
}), y.currentLimits = Yi(y.currentLimits);
|
|
5559
5587
|
});
|
|
5560
|
-
},
|
|
5588
|
+
}, Yi = (b) => {
|
|
5561
5589
|
const y = { Daily: 0, Weekly: 1, Monthly: 2 };
|
|
5562
|
-
return b.sort((
|
|
5563
|
-
},
|
|
5564
|
-
|
|
5565
|
-
const y =
|
|
5566
|
-
|
|
5567
|
-
},
|
|
5590
|
+
return b.sort((M, P) => y[M.period] - y[P.period]), b;
|
|
5591
|
+
}, qi = () => {
|
|
5592
|
+
L > 999999999999999 && i(3, L = 999999999999999);
|
|
5593
|
+
const y = L - Math.floor(L) === 0;
|
|
5594
|
+
L > 0 && y ? O.removeAttribute("disabled") : O.setAttribute("disabled", "true");
|
|
5595
|
+
}, Lt = (b, y) => {
|
|
5568
5596
|
if (b)
|
|
5569
|
-
i(12,
|
|
5570
|
-
else if (
|
|
5571
|
-
const
|
|
5572
|
-
let
|
|
5573
|
-
i(12,
|
|
5597
|
+
i(12, We = y);
|
|
5598
|
+
else if (we) {
|
|
5599
|
+
const M = we[X[E].callValue].filter((or) => or.period === k)[0], P = Intl.NumberFormat("en-US", { maximumFractionDigits: 0 }).format(M.amount);
|
|
5600
|
+
let G = r("gamingLimits.popupImmediateUpdate").replace("{selectedLimit}", r(`gamingLimits.${E}`).toLowerCase()).replace("{updatedAmount}", P).replace("{currency}", Et[M.currency] || M.currency).replace("{selectedPeriod}", r(`gamingLimits.${k}`).toLowerCase());
|
|
5601
|
+
i(12, We = M.isModified ? `${r("popupPendingUpdate")} ${new Date(M.expiryDate).toLocaleDateString("en-de", { hour: "numeric", minute: "numeric" }).replaceAll("/", ".")} (GMT)` : G);
|
|
5574
5602
|
} else
|
|
5575
5603
|
console.error("Couldn't populate popupContent");
|
|
5576
|
-
i(11,
|
|
5577
|
-
},
|
|
5604
|
+
i(11, ze = !0);
|
|
5605
|
+
}, xt = (b) => {
|
|
5578
5606
|
const y = {
|
|
5579
5607
|
wager: "wagering",
|
|
5580
5608
|
loss: "loss",
|
|
5581
5609
|
deposit: "deposit"
|
|
5582
5610
|
};
|
|
5583
|
-
i(10,
|
|
5584
|
-
let
|
|
5611
|
+
i(10, me = !0), i(7, U = !0);
|
|
5612
|
+
let M = new URL(`/v2/player/${h}/limits/${y[b.limitType]}?periods=${b.period}`, l), P = {
|
|
5585
5613
|
method: "DELETE",
|
|
5586
5614
|
headers: {
|
|
5587
5615
|
"X-SessionID": a,
|
|
@@ -5589,71 +5617,71 @@ function Yo(e, t, i) {
|
|
|
5589
5617
|
Accept: "application/json"
|
|
5590
5618
|
}
|
|
5591
5619
|
};
|
|
5592
|
-
fetch(
|
|
5593
|
-
|
|
5594
|
-
}).catch((
|
|
5595
|
-
console.log(
|
|
5620
|
+
fetch(M.href, P).then((G) => G.json()).then((G) => {
|
|
5621
|
+
Ve();
|
|
5622
|
+
}).catch((G) => {
|
|
5623
|
+
console.log(G), i(7, U = !1), i(8, H = !0);
|
|
5596
5624
|
});
|
|
5597
|
-
},
|
|
5598
|
-
i(11,
|
|
5599
|
-
},
|
|
5600
|
-
|
|
5625
|
+
}, Ji = () => {
|
|
5626
|
+
i(11, ze = i(10, me = !1));
|
|
5627
|
+
}, Qi = () => {
|
|
5628
|
+
vo(n);
|
|
5601
5629
|
};
|
|
5602
|
-
|
|
5630
|
+
dr(() => () => {
|
|
5603
5631
|
});
|
|
5604
|
-
const
|
|
5605
|
-
function
|
|
5606
|
-
|
|
5632
|
+
const Ki = (b) => xt(b);
|
|
5633
|
+
function er() {
|
|
5634
|
+
E = wt(this), i(1, E), i(15, S);
|
|
5607
5635
|
}
|
|
5608
|
-
function
|
|
5609
|
-
|
|
5636
|
+
function tr() {
|
|
5637
|
+
k = wt(this), i(2, k), i(1, E);
|
|
5610
5638
|
}
|
|
5611
|
-
function
|
|
5612
|
-
|
|
5639
|
+
function ir() {
|
|
5640
|
+
L = ci(this.value), i(3, L);
|
|
5613
5641
|
}
|
|
5614
|
-
function
|
|
5615
|
-
|
|
5616
|
-
|
|
5642
|
+
function rr(b) {
|
|
5643
|
+
He[b ? "unshift" : "push"](() => {
|
|
5644
|
+
O = b, i(4, O);
|
|
5617
5645
|
});
|
|
5618
5646
|
}
|
|
5619
|
-
function
|
|
5620
|
-
|
|
5621
|
-
|
|
5647
|
+
function nr(b) {
|
|
5648
|
+
He[b ? "unshift" : "push"](() => {
|
|
5649
|
+
m = b, i(0, m);
|
|
5622
5650
|
});
|
|
5623
5651
|
}
|
|
5624
5652
|
return e.$$set = (b) => {
|
|
5625
|
-
"lang" in b && i(21, n = b.lang), "currency" in b && i(22, o = b.currency), "limits" in b && i(23, s = b.limits), "session" in b && i(24, a = b.session), "userid" in b && i(25, h = b.userid), "endpoint" in b && i(26, l = b.endpoint), "clientstyling" in b && i(27, u = b.clientstyling), "clientstylingurl" in b && i(28, c = b.clientstylingurl), "translationurl" in b && i(29,
|
|
5653
|
+
"lang" in b && i(21, n = b.lang), "currency" in b && i(22, o = b.currency), "limits" in b && i(23, s = b.limits), "session" in b && i(24, a = b.session), "userid" in b && i(25, h = b.userid), "endpoint" in b && i(26, l = b.endpoint), "clientstyling" in b && i(27, u = b.clientstyling), "clientstylingurl" in b && i(28, c = b.clientstylingurl), "translationurl" in b && i(29, p = b.translationurl), "mbsource" in b && i(30, f = b.mbsource);
|
|
5626
5654
|
}, e.$$.update = () => {
|
|
5627
5655
|
e.$$.dirty[0] & /*limits*/
|
|
5628
|
-
8388608 && s &&
|
|
5629
|
-
2097152 && n &&
|
|
5630
|
-
117440512 && h && a && l &&
|
|
5631
|
-
134217729 && u &&
|
|
5632
|
-
268435457 && c &&
|
|
5633
|
-
1073741825 && f &&
|
|
5634
|
-
536870912 &&
|
|
5656
|
+
8388608 && s && zi(), e.$$.dirty[0] & /*lang*/
|
|
5657
|
+
2097152 && n && Qi(), e.$$.dirty[0] & /*userid, session, endpoint*/
|
|
5658
|
+
117440512 && h && a && l && Ve(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5659
|
+
134217729 && u && m && Co(m, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5660
|
+
268435457 && c && m && ko(m, c), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5661
|
+
1073741825 && f && m && Do(m, `${f}.Style`, _), e.$$.dirty[0] & /*translationurl*/
|
|
5662
|
+
536870912 && p && Gi();
|
|
5635
5663
|
}, [
|
|
5636
|
-
|
|
5664
|
+
m,
|
|
5665
|
+
E,
|
|
5666
|
+
k,
|
|
5637
5667
|
L,
|
|
5638
|
-
w,
|
|
5639
5668
|
O,
|
|
5640
|
-
A,
|
|
5641
|
-
H,
|
|
5642
5669
|
D,
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5670
|
+
x,
|
|
5671
|
+
U,
|
|
5672
|
+
H,
|
|
5673
|
+
ee,
|
|
5674
|
+
me,
|
|
5675
|
+
ze,
|
|
5676
|
+
We,
|
|
5649
5677
|
r,
|
|
5650
|
-
|
|
5678
|
+
N,
|
|
5651
5679
|
S,
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5680
|
+
Wi,
|
|
5681
|
+
Vi,
|
|
5682
|
+
qi,
|
|
5683
|
+
xt,
|
|
5684
|
+
Ji,
|
|
5657
5685
|
n,
|
|
5658
5686
|
o,
|
|
5659
5687
|
s,
|
|
@@ -5662,24 +5690,24 @@ function Yo(e, t, i) {
|
|
|
5662
5690
|
l,
|
|
5663
5691
|
u,
|
|
5664
5692
|
c,
|
|
5665
|
-
|
|
5693
|
+
p,
|
|
5666
5694
|
f,
|
|
5667
|
-
Ji,
|
|
5668
|
-
Qi,
|
|
5669
5695
|
Ki,
|
|
5670
5696
|
er,
|
|
5671
5697
|
tr,
|
|
5672
|
-
ir
|
|
5698
|
+
ir,
|
|
5699
|
+
rr,
|
|
5700
|
+
nr
|
|
5673
5701
|
];
|
|
5674
5702
|
}
|
|
5675
|
-
class
|
|
5703
|
+
class es extends Pr {
|
|
5676
5704
|
constructor(t) {
|
|
5677
|
-
super(),
|
|
5705
|
+
super(), wr(
|
|
5678
5706
|
this,
|
|
5679
5707
|
t,
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5708
|
+
Ko,
|
|
5709
|
+
Qo,
|
|
5710
|
+
ui,
|
|
5683
5711
|
{
|
|
5684
5712
|
lang: 21,
|
|
5685
5713
|
currency: 22,
|
|
@@ -5692,7 +5720,7 @@ class qo extends wr {
|
|
|
5692
5720
|
translationurl: 29,
|
|
5693
5721
|
mbsource: 30
|
|
5694
5722
|
},
|
|
5695
|
-
|
|
5723
|
+
Uo,
|
|
5696
5724
|
[-1, -1]
|
|
5697
5725
|
);
|
|
5698
5726
|
}
|
|
@@ -5757,7 +5785,7 @@ class qo extends wr {
|
|
|
5757
5785
|
this.$$set({ mbsource: t }), V();
|
|
5758
5786
|
}
|
|
5759
5787
|
}
|
|
5760
|
-
|
|
5788
|
+
Sr(es, { lang: {}, currency: {}, limits: {}, session: {}, userid: {}, endpoint: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
5761
5789
|
export {
|
|
5762
|
-
|
|
5790
|
+
es as P
|
|
5763
5791
|
};
|