@everymatrix/player-account-vault 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/PlayerAccountVault-BYxvJWG7.cjs +16 -0
- package/components/{PlayerAccountVault-QJtOZvng.js → PlayerAccountVault-BfiulnCp.js} +1061 -1046
- package/components/{PlayerAccountVault-BMD5PRpI.js → PlayerAccountVault-STYNKftI.js} +1053 -1038
- package/es2015/player-account-vault.cjs +1 -1
- package/es2015/player-account-vault.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountVault-D0gxeTub.cjs +0 -16
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var tr = Object.defineProperty, nr = Object.defineProperties;
|
|
2
|
+
var rr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Zt = Object.getOwnPropertySymbols;
|
|
4
|
+
var ir = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var _t = (e, t, n) => t in e ? tr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, qt = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
|
|
7
|
+
ir.call(t, n) && _t(e, n, t[n]);
|
|
8
|
+
if (Zt)
|
|
9
|
+
for (var n of Zt(t))
|
|
10
|
+
ar.call(t, n) && _t(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, Jt = (e, t) => nr(e, rr(t));
|
|
13
|
+
var Y = (e, t, n) => (_t(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
|
+
var wt = (e, t, n) => new Promise((r, i) => {
|
|
15
15
|
var a = (c) => {
|
|
16
16
|
try {
|
|
17
17
|
s(n.next(c));
|
|
@@ -27,49 +27,49 @@ var _t = (e, t, n) => new Promise((r, i) => {
|
|
|
27
27
|
}, s = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(a, o);
|
|
28
28
|
s((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function ie() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function An(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Qt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function we(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(An);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function kt(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Bn(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function or(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Sn(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const r of t)
|
|
53
53
|
r(void 0);
|
|
54
|
-
return
|
|
54
|
+
return ie;
|
|
55
55
|
}
|
|
56
56
|
const n = e.subscribe(...t);
|
|
57
57
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function sr(e, t, n) {
|
|
60
|
+
e.$$.on_destroy.push(Sn(t, n));
|
|
61
61
|
}
|
|
62
62
|
function m(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const r =
|
|
65
|
+
function lr(e, t, n) {
|
|
66
|
+
const r = ur(e);
|
|
67
67
|
if (!r.getElementById(t)) {
|
|
68
|
-
const i =
|
|
69
|
-
i.id = t, i.textContent = n,
|
|
68
|
+
const i = _("style");
|
|
69
|
+
i.id = t, i.textContent = n, cr(r, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function ur(e) {
|
|
73
73
|
if (!e)
|
|
74
74
|
return document;
|
|
75
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -79,61 +79,61 @@ function sr(e) {
|
|
|
79
79
|
t
|
|
80
80
|
) : e.ownerDocument;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function cr(e, t) {
|
|
83
83
|
return m(
|
|
84
84
|
/** @type {Document} */
|
|
85
85
|
e.head || e,
|
|
86
86
|
t
|
|
87
87
|
), t.sheet;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function J(e, t, n) {
|
|
90
90
|
e.insertBefore(t, n || null);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function W(e) {
|
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function Tt(e, t) {
|
|
96
96
|
for (let n = 0; n < e.length; n += 1)
|
|
97
97
|
e[n] && e[n].d(t);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function _(e) {
|
|
100
100
|
return document.createElement(e);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Yt(e) {
|
|
103
103
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function $(e) {
|
|
106
106
|
return document.createTextNode(e);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
return
|
|
108
|
+
function M() {
|
|
109
|
+
return $(" ");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
return
|
|
111
|
+
function Cn() {
|
|
112
|
+
return $("");
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function K(e, t, n, r) {
|
|
115
115
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
116
116
|
}
|
|
117
117
|
function H(e, t, n) {
|
|
118
118
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function pt(e) {
|
|
121
121
|
return e === "" ? null : +e;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function hr(e) {
|
|
124
124
|
return Array.from(e.childNodes);
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function X(e, t) {
|
|
127
127
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
128
128
|
t);
|
|
129
129
|
}
|
|
130
130
|
function xe(e, t) {
|
|
131
131
|
e.value = t == null ? "" : t;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Kt(e, t, n, r) {
|
|
134
134
|
n == null ? e.style.removeProperty(t) : e.style.setProperty(t, n, "");
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function lt(e, t, n) {
|
|
137
137
|
for (let r = 0; r < e.options.length; r += 1) {
|
|
138
138
|
const i = e.options[r];
|
|
139
139
|
if (i.__value === t) {
|
|
@@ -143,14 +143,14 @@ function st(e, t, n) {
|
|
|
143
143
|
}
|
|
144
144
|
(!n || t !== void 0) && (e.selectedIndex = -1);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function en(e) {
|
|
147
147
|
const t = e.querySelector(":checked");
|
|
148
148
|
return t && t.__value;
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function G(e, t, n) {
|
|
151
151
|
e.classList.toggle(t, !!n);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function fr(e) {
|
|
154
154
|
const t = {};
|
|
155
155
|
return e.childNodes.forEach(
|
|
156
156
|
/** @param {Element} node */
|
|
@@ -159,90 +159,90 @@ function cr(e) {
|
|
|
159
159
|
}
|
|
160
160
|
), t;
|
|
161
161
|
}
|
|
162
|
-
let
|
|
162
|
+
let jt;
|
|
163
163
|
function Ke(e) {
|
|
164
|
-
|
|
164
|
+
jt = e;
|
|
165
165
|
}
|
|
166
|
-
const
|
|
167
|
-
let
|
|
168
|
-
const
|
|
169
|
-
let
|
|
170
|
-
function
|
|
171
|
-
|
|
166
|
+
const Ue = [], mt = [];
|
|
167
|
+
let Fe = [];
|
|
168
|
+
const tn = [], pr = /* @__PURE__ */ Promise.resolve();
|
|
169
|
+
let Nt = !1;
|
|
170
|
+
function mr() {
|
|
171
|
+
Nt || (Nt = !0, pr.then(se));
|
|
172
172
|
}
|
|
173
173
|
function et(e) {
|
|
174
|
-
|
|
174
|
+
Fe.push(e);
|
|
175
175
|
}
|
|
176
|
-
const
|
|
177
|
-
let
|
|
178
|
-
function
|
|
179
|
-
if (
|
|
176
|
+
const Ht = /* @__PURE__ */ new Set();
|
|
177
|
+
let Me = 0;
|
|
178
|
+
function se() {
|
|
179
|
+
if (Me !== 0)
|
|
180
180
|
return;
|
|
181
|
-
const e =
|
|
181
|
+
const e = jt;
|
|
182
182
|
do {
|
|
183
183
|
try {
|
|
184
|
-
for (;
|
|
185
|
-
const t =
|
|
186
|
-
|
|
184
|
+
for (; Me < Ue.length; ) {
|
|
185
|
+
const t = Ue[Me];
|
|
186
|
+
Me++, Ke(t), dr(t.$$);
|
|
187
187
|
}
|
|
188
188
|
} catch (t) {
|
|
189
|
-
throw
|
|
189
|
+
throw Ue.length = 0, Me = 0, t;
|
|
190
190
|
}
|
|
191
|
-
for (Ke(null),
|
|
192
|
-
|
|
193
|
-
for (let t = 0; t <
|
|
194
|
-
const n =
|
|
195
|
-
|
|
191
|
+
for (Ke(null), Ue.length = 0, Me = 0; mt.length; )
|
|
192
|
+
mt.pop()();
|
|
193
|
+
for (let t = 0; t < Fe.length; t += 1) {
|
|
194
|
+
const n = Fe[t];
|
|
195
|
+
Ht.has(n) || (Ht.add(n), n());
|
|
196
196
|
}
|
|
197
|
-
|
|
198
|
-
} while (
|
|
199
|
-
for (;
|
|
200
|
-
|
|
201
|
-
|
|
197
|
+
Fe.length = 0;
|
|
198
|
+
} while (Ue.length);
|
|
199
|
+
for (; tn.length; )
|
|
200
|
+
tn.pop()();
|
|
201
|
+
Nt = !1, Ht.clear(), Ke(e);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function dr(e) {
|
|
204
204
|
if (e.fragment !== null) {
|
|
205
205
|
e.update(), we(e.before_update);
|
|
206
206
|
const t = e.dirty;
|
|
207
207
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(et);
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function gr(e) {
|
|
211
211
|
const t = [], n = [];
|
|
212
|
-
|
|
212
|
+
Fe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Fe = t;
|
|
213
213
|
}
|
|
214
|
-
const
|
|
215
|
-
function
|
|
216
|
-
e && e.i && (
|
|
214
|
+
const br = /* @__PURE__ */ new Set();
|
|
215
|
+
function yr(e, t) {
|
|
216
|
+
e && e.i && (br.delete(e), e.i(t));
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function Re(e) {
|
|
219
219
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function vr(e, t, n) {
|
|
222
222
|
const { fragment: r, after_update: i } = e.$$;
|
|
223
223
|
r && r.m(t, n), et(() => {
|
|
224
|
-
const a = e.$$.on_mount.map(
|
|
224
|
+
const a = e.$$.on_mount.map(An).filter(kt);
|
|
225
225
|
e.$$.on_destroy ? e.$$.on_destroy.push(...a) : we(a), e.$$.on_mount = [];
|
|
226
226
|
}), i.forEach(et);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function xr(e, t) {
|
|
229
229
|
const n = e.$$;
|
|
230
|
-
n.fragment !== null && (
|
|
230
|
+
n.fragment !== null && (gr(n.after_update), we(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
e.$$.dirty[0] === -1 && (
|
|
232
|
+
function Er(e, t) {
|
|
233
|
+
e.$$.dirty[0] === -1 && (Ue.push(e), mr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
const c =
|
|
235
|
+
function _r(e, t, n, r, i, a, o = null, s = [-1]) {
|
|
236
|
+
const c = jt;
|
|
237
237
|
Ke(e);
|
|
238
238
|
const l = e.$$ = {
|
|
239
239
|
fragment: null,
|
|
240
240
|
ctx: [],
|
|
241
241
|
// state
|
|
242
242
|
props: a,
|
|
243
|
-
update:
|
|
243
|
+
update: ie,
|
|
244
244
|
not_equal: i,
|
|
245
|
-
bound:
|
|
245
|
+
bound: Qt(),
|
|
246
246
|
// lifecycle
|
|
247
247
|
on_mount: [],
|
|
248
248
|
on_destroy: [],
|
|
@@ -251,48 +251,48 @@ function xr(e, t, n, r, i, a, o = null, s = [-1]) {
|
|
|
251
251
|
after_update: [],
|
|
252
252
|
context: new Map(t.context || (c ? c.$$.context : [])),
|
|
253
253
|
// everything else
|
|
254
|
-
callbacks:
|
|
254
|
+
callbacks: Qt(),
|
|
255
255
|
dirty: s,
|
|
256
256
|
skip_bound: !1,
|
|
257
257
|
root: t.target || c.$$.root
|
|
258
258
|
};
|
|
259
259
|
o && o(l.root);
|
|
260
260
|
let u = !1;
|
|
261
|
-
if (l.ctx = n ? n(e, t.props || {}, (
|
|
262
|
-
const
|
|
263
|
-
return l.ctx && i(l.ctx[
|
|
261
|
+
if (l.ctx = n ? n(e, t.props || {}, (f, d, ...y) => {
|
|
262
|
+
const x = y.length ? y[0] : d;
|
|
263
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = x) && (!l.skip_bound && l.bound[f] && l.bound[f](x), u && Er(e, f)), d;
|
|
264
264
|
}) : [], l.update(), u = !0, we(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
|
|
265
265
|
if (t.hydrate) {
|
|
266
|
-
const
|
|
267
|
-
l.fragment && l.fragment.l(
|
|
266
|
+
const f = hr(t.target);
|
|
267
|
+
l.fragment && l.fragment.l(f), f.forEach(W);
|
|
268
268
|
} else
|
|
269
269
|
l.fragment && l.fragment.c();
|
|
270
|
-
t.intro &&
|
|
270
|
+
t.intro && yr(e.$$.fragment), vr(e, t.target, t.anchor), se();
|
|
271
271
|
}
|
|
272
272
|
Ke(c);
|
|
273
273
|
}
|
|
274
|
-
let
|
|
275
|
-
typeof HTMLElement == "function" && (
|
|
274
|
+
let Pn;
|
|
275
|
+
typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
|
|
276
276
|
constructor(t, n, r) {
|
|
277
277
|
super();
|
|
278
278
|
/** The Svelte component constructor */
|
|
279
|
-
|
|
279
|
+
Y(this, "$$ctor");
|
|
280
280
|
/** Slots */
|
|
281
|
-
|
|
281
|
+
Y(this, "$$s");
|
|
282
282
|
/** The Svelte component instance */
|
|
283
|
-
|
|
283
|
+
Y(this, "$$c");
|
|
284
284
|
/** Whether or not the custom element is connected */
|
|
285
|
-
|
|
285
|
+
Y(this, "$$cn", !1);
|
|
286
286
|
/** Component props data */
|
|
287
|
-
|
|
287
|
+
Y(this, "$$d", {});
|
|
288
288
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
289
|
-
|
|
289
|
+
Y(this, "$$r", !1);
|
|
290
290
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
291
|
-
|
|
291
|
+
Y(this, "$$p_d", {});
|
|
292
292
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
293
|
-
|
|
293
|
+
Y(this, "$$l", {});
|
|
294
294
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
295
|
-
|
|
295
|
+
Y(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
296
296
|
this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
|
|
297
297
|
}
|
|
298
298
|
addEventListener(t, n, r) {
|
|
@@ -309,42 +309,42 @@ typeof HTMLElement == "function" && (Sn = class extends HTMLElement {
|
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
connectedCallback() {
|
|
312
|
-
return
|
|
312
|
+
return wt(this, null, function* () {
|
|
313
313
|
if (this.$$cn = !0, !this.$$c) {
|
|
314
314
|
let t = function(a) {
|
|
315
315
|
return () => {
|
|
316
316
|
let o;
|
|
317
317
|
return {
|
|
318
318
|
c: function() {
|
|
319
|
-
o =
|
|
319
|
+
o = _("slot"), a !== "default" && H(o, "name", a);
|
|
320
320
|
},
|
|
321
321
|
/**
|
|
322
322
|
* @param {HTMLElement} target
|
|
323
323
|
* @param {HTMLElement} [anchor]
|
|
324
324
|
*/
|
|
325
325
|
m: function(l, u) {
|
|
326
|
-
|
|
326
|
+
J(l, o, u);
|
|
327
327
|
},
|
|
328
328
|
d: function(l) {
|
|
329
|
-
l &&
|
|
329
|
+
l && W(o);
|
|
330
330
|
}
|
|
331
331
|
};
|
|
332
332
|
};
|
|
333
333
|
};
|
|
334
334
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
335
335
|
return;
|
|
336
|
-
const n = {}, r =
|
|
336
|
+
const n = {}, r = fr(this);
|
|
337
337
|
for (const a of this.$$s)
|
|
338
338
|
a in r && (n[a] = [t(a)]);
|
|
339
339
|
for (const a of this.attributes) {
|
|
340
340
|
const o = this.$$g_p(a.name);
|
|
341
|
-
o in this.$$d || (this.$$d[o] =
|
|
341
|
+
o in this.$$d || (this.$$d[o] = ct(o, a.value, this.$$p_d, "toProp"));
|
|
342
342
|
}
|
|
343
343
|
for (const a in this.$$p_d)
|
|
344
344
|
!(a in this.$$d) && this[a] !== void 0 && (this.$$d[a] = this[a], delete this[a]);
|
|
345
345
|
this.$$c = new this.$$ctor({
|
|
346
346
|
target: this.shadowRoot || this,
|
|
347
|
-
props:
|
|
347
|
+
props: Jt(qt({}, this.$$d), {
|
|
348
348
|
$$slots: n,
|
|
349
349
|
$$scope: {
|
|
350
350
|
ctx: []
|
|
@@ -355,7 +355,7 @@ typeof HTMLElement == "function" && (Sn = class extends HTMLElement {
|
|
|
355
355
|
this.$$r = !0;
|
|
356
356
|
for (const a in this.$$p_d)
|
|
357
357
|
if (this.$$d[a] = this.$$c.$$.ctx[this.$$c.$$.props[a]], this.$$p_d[a].reflect) {
|
|
358
|
-
const o =
|
|
358
|
+
const o = ct(
|
|
359
359
|
a,
|
|
360
360
|
this.$$d[a],
|
|
361
361
|
this.$$p_d,
|
|
@@ -379,7 +379,7 @@ typeof HTMLElement == "function" && (Sn = class extends HTMLElement {
|
|
|
379
379
|
// and setting attributes through setAttribute etc, this is helpful
|
|
380
380
|
attributeChangedCallback(t, n, r) {
|
|
381
381
|
var i;
|
|
382
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
382
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ct(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
383
383
|
}
|
|
384
384
|
disconnectedCallback() {
|
|
385
385
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -392,7 +392,7 @@ typeof HTMLElement == "function" && (Sn = class extends HTMLElement {
|
|
|
392
392
|
) || t;
|
|
393
393
|
}
|
|
394
394
|
});
|
|
395
|
-
function
|
|
395
|
+
function ct(e, t, n, r) {
|
|
396
396
|
var a;
|
|
397
397
|
const i = (a = n[e]) == null ? void 0 : a.type;
|
|
398
398
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
@@ -422,8 +422,8 @@ function lt(e, t, n, r) {
|
|
|
422
422
|
return t;
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
function
|
|
426
|
-
let o = class extends
|
|
425
|
+
function wr(e, t, n, r, i, a) {
|
|
426
|
+
let o = class extends Pn {
|
|
427
427
|
constructor() {
|
|
428
428
|
super(e, n, i), this.$$p_d = t;
|
|
429
429
|
}
|
|
@@ -440,7 +440,7 @@ function Er(e, t, n, r, i, a) {
|
|
|
440
440
|
},
|
|
441
441
|
set(c) {
|
|
442
442
|
var l;
|
|
443
|
-
c =
|
|
443
|
+
c = ct(s, c, t), this.$$d[s] = c, (l = this.$$c) == null || l.$set({ [s]: c });
|
|
444
444
|
}
|
|
445
445
|
});
|
|
446
446
|
}), r.forEach((s) => {
|
|
@@ -453,7 +453,7 @@ function Er(e, t, n, r, i, a) {
|
|
|
453
453
|
}), e.element = /** @type {any} */
|
|
454
454
|
o, o;
|
|
455
455
|
}
|
|
456
|
-
class
|
|
456
|
+
class Tr {
|
|
457
457
|
constructor() {
|
|
458
458
|
/**
|
|
459
459
|
* ### PRIVATE API
|
|
@@ -462,7 +462,7 @@ class _r {
|
|
|
462
462
|
*
|
|
463
463
|
* @type {any}
|
|
464
464
|
*/
|
|
465
|
-
|
|
465
|
+
Y(this, "$$");
|
|
466
466
|
/**
|
|
467
467
|
* ### PRIVATE API
|
|
468
468
|
*
|
|
@@ -470,11 +470,11 @@ class _r {
|
|
|
470
470
|
*
|
|
471
471
|
* @type {any}
|
|
472
472
|
*/
|
|
473
|
-
|
|
473
|
+
Y(this, "$$set");
|
|
474
474
|
}
|
|
475
475
|
/** @returns {void} */
|
|
476
476
|
$destroy() {
|
|
477
|
-
|
|
477
|
+
xr(this, 1), this.$destroy = ie;
|
|
478
478
|
}
|
|
479
479
|
/**
|
|
480
480
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -483,8 +483,8 @@ class _r {
|
|
|
483
483
|
* @returns {() => void}
|
|
484
484
|
*/
|
|
485
485
|
$on(t, n) {
|
|
486
|
-
if (
|
|
487
|
-
return
|
|
486
|
+
if (!kt(n))
|
|
487
|
+
return ie;
|
|
488
488
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
489
489
|
return r.push(n), () => {
|
|
490
490
|
const i = r.indexOf(n);
|
|
@@ -496,63 +496,63 @@ class _r {
|
|
|
496
496
|
* @returns {void}
|
|
497
497
|
*/
|
|
498
498
|
$set(t) {
|
|
499
|
-
this.$$set && !
|
|
499
|
+
this.$$set && !or(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
const
|
|
503
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
504
|
-
const
|
|
505
|
-
function
|
|
502
|
+
const Hr = "4";
|
|
503
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Hr);
|
|
504
|
+
const De = [];
|
|
505
|
+
function Ar(e, t) {
|
|
506
506
|
return {
|
|
507
|
-
subscribe:
|
|
507
|
+
subscribe: bt(e, t).subscribe
|
|
508
508
|
};
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function bt(e, t = ie) {
|
|
511
511
|
let n;
|
|
512
512
|
const r = /* @__PURE__ */ new Set();
|
|
513
513
|
function i(s) {
|
|
514
|
-
if (
|
|
515
|
-
const c = !
|
|
514
|
+
if (Bn(e, s) && (e = s, n)) {
|
|
515
|
+
const c = !De.length;
|
|
516
516
|
for (const l of r)
|
|
517
|
-
l[1](),
|
|
517
|
+
l[1](), De.push(l, e);
|
|
518
518
|
if (c) {
|
|
519
|
-
for (let l = 0; l <
|
|
520
|
-
|
|
521
|
-
|
|
519
|
+
for (let l = 0; l < De.length; l += 2)
|
|
520
|
+
De[l][0](De[l + 1]);
|
|
521
|
+
De.length = 0;
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
function a(s) {
|
|
526
526
|
i(s(e));
|
|
527
527
|
}
|
|
528
|
-
function o(s, c =
|
|
528
|
+
function o(s, c = ie) {
|
|
529
529
|
const l = [s, c];
|
|
530
|
-
return r.add(l), r.size === 1 && (n = t(i, a) ||
|
|
530
|
+
return r.add(l), r.size === 1 && (n = t(i, a) || ie), s(e), () => {
|
|
531
531
|
r.delete(l), r.size === 0 && n && (n(), n = null);
|
|
532
532
|
};
|
|
533
533
|
}
|
|
534
534
|
return { set: i, update: a, subscribe: o };
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function Ve(e, t, n) {
|
|
537
537
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
538
538
|
if (!i.every(Boolean))
|
|
539
539
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
540
540
|
const a = t.length < 2;
|
|
541
|
-
return
|
|
541
|
+
return Ar(n, (o, s) => {
|
|
542
542
|
let c = !1;
|
|
543
543
|
const l = [];
|
|
544
|
-
let u = 0,
|
|
544
|
+
let u = 0, f = ie;
|
|
545
545
|
const d = () => {
|
|
546
546
|
if (u)
|
|
547
547
|
return;
|
|
548
|
-
|
|
549
|
-
const
|
|
550
|
-
a ? o(
|
|
551
|
-
},
|
|
552
|
-
(
|
|
553
|
-
|
|
554
|
-
(
|
|
555
|
-
l[I] =
|
|
548
|
+
f();
|
|
549
|
+
const x = t(r ? l[0] : l, o, s);
|
|
550
|
+
a ? o(x) : f = kt(x) ? x : ie;
|
|
551
|
+
}, y = i.map(
|
|
552
|
+
(x, I) => Sn(
|
|
553
|
+
x,
|
|
554
|
+
(U) => {
|
|
555
|
+
l[I] = U, u &= ~(1 << I), c && d();
|
|
556
556
|
},
|
|
557
557
|
() => {
|
|
558
558
|
u |= 1 << I;
|
|
@@ -560,84 +560,84 @@ function je(e, t, n) {
|
|
|
560
560
|
)
|
|
561
561
|
);
|
|
562
562
|
return c = !0, d(), function() {
|
|
563
|
-
we(
|
|
563
|
+
we(y), f(), c = !1;
|
|
564
564
|
};
|
|
565
565
|
});
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function Br(e) {
|
|
568
568
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
569
569
|
}
|
|
570
|
-
var
|
|
571
|
-
return
|
|
570
|
+
var Sr = function(t) {
|
|
571
|
+
return Cr(t) && !Pr(t);
|
|
572
572
|
};
|
|
573
|
-
function
|
|
573
|
+
function Cr(e) {
|
|
574
574
|
return !!e && typeof e == "object";
|
|
575
575
|
}
|
|
576
|
-
function
|
|
576
|
+
function Pr(e) {
|
|
577
577
|
var t = Object.prototype.toString.call(e);
|
|
578
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
578
|
+
return t === "[object RegExp]" || t === "[object Date]" || Or(e);
|
|
579
579
|
}
|
|
580
|
-
var
|
|
581
|
-
function
|
|
582
|
-
return e.$$typeof ===
|
|
580
|
+
var Ir = typeof Symbol == "function" && Symbol.for, Nr = Ir ? Symbol.for("react.element") : 60103;
|
|
581
|
+
function Or(e) {
|
|
582
|
+
return e.$$typeof === Nr;
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function Lr(e) {
|
|
585
585
|
return Array.isArray(e) ? [] : {};
|
|
586
586
|
}
|
|
587
587
|
function tt(e, t) {
|
|
588
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
588
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ge(Lr(e), e, t) : e;
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function Mr(e, t, n) {
|
|
591
591
|
return e.concat(t).map(function(r) {
|
|
592
592
|
return tt(r, n);
|
|
593
593
|
});
|
|
594
594
|
}
|
|
595
|
-
function
|
|
595
|
+
function Rr(e, t) {
|
|
596
596
|
if (!t.customMerge)
|
|
597
|
-
return
|
|
597
|
+
return Ge;
|
|
598
598
|
var n = t.customMerge(e);
|
|
599
|
-
return typeof n == "function" ? n :
|
|
599
|
+
return typeof n == "function" ? n : Ge;
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function Dr(e) {
|
|
602
602
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
603
603
|
return Object.propertyIsEnumerable.call(e, t);
|
|
604
604
|
}) : [];
|
|
605
605
|
}
|
|
606
|
-
function
|
|
607
|
-
return Object.keys(e).concat(
|
|
606
|
+
function nn(e) {
|
|
607
|
+
return Object.keys(e).concat(Dr(e));
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function In(e, t) {
|
|
610
610
|
try {
|
|
611
611
|
return t in e;
|
|
612
612
|
} catch (n) {
|
|
613
613
|
return !1;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
|
-
function
|
|
617
|
-
return
|
|
616
|
+
function Ur(e, t) {
|
|
617
|
+
return In(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function Fr(e, t, n) {
|
|
620
620
|
var r = {};
|
|
621
|
-
return n.isMergeableObject(e) &&
|
|
621
|
+
return n.isMergeableObject(e) && nn(e).forEach(function(i) {
|
|
622
622
|
r[i] = tt(e[i], n);
|
|
623
|
-
}),
|
|
624
|
-
|
|
623
|
+
}), nn(t).forEach(function(i) {
|
|
624
|
+
Ur(e, i) || (In(e, i) && n.isMergeableObject(t[i]) ? r[i] = Rr(i, n)(e[i], t[i], n) : r[i] = tt(t[i], n));
|
|
625
625
|
}), r;
|
|
626
626
|
}
|
|
627
|
-
function
|
|
628
|
-
n = n || {}, n.arrayMerge = n.arrayMerge ||
|
|
627
|
+
function Ge(e, t, n) {
|
|
628
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Mr, n.isMergeableObject = n.isMergeableObject || Sr, n.cloneUnlessOtherwiseSpecified = tt;
|
|
629
629
|
var r = Array.isArray(t), i = Array.isArray(e), a = r === i;
|
|
630
|
-
return a ? r ? n.arrayMerge(e, t, n) :
|
|
630
|
+
return a ? r ? n.arrayMerge(e, t, n) : Fr(e, t, n) : tt(t, n);
|
|
631
631
|
}
|
|
632
|
-
|
|
632
|
+
Ge.all = function(t, n) {
|
|
633
633
|
if (!Array.isArray(t))
|
|
634
634
|
throw new Error("first argument should be an array");
|
|
635
635
|
return t.reduce(function(r, i) {
|
|
636
|
-
return
|
|
636
|
+
return Ge(r, i, n);
|
|
637
637
|
}, {});
|
|
638
638
|
};
|
|
639
|
-
var
|
|
640
|
-
const
|
|
639
|
+
var Gr = Ge, $r = Gr;
|
|
640
|
+
const kr = /* @__PURE__ */ Br($r);
|
|
641
641
|
/*! *****************************************************************************
|
|
642
642
|
Copyright (c) Microsoft Corporation.
|
|
643
643
|
|
|
@@ -652,18 +652,18 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
652
652
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
653
653
|
PERFORMANCE OF THIS SOFTWARE.
|
|
654
654
|
***************************************************************************** */
|
|
655
|
-
var
|
|
656
|
-
return
|
|
655
|
+
var Ot = function(e, t) {
|
|
656
|
+
return Ot = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
657
657
|
n.__proto__ = r;
|
|
658
658
|
} || function(n, r) {
|
|
659
659
|
for (var i in r)
|
|
660
660
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
661
|
-
},
|
|
661
|
+
}, Ot(e, t);
|
|
662
662
|
};
|
|
663
|
-
function
|
|
663
|
+
function yt(e, t) {
|
|
664
664
|
if (typeof t != "function" && t !== null)
|
|
665
665
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
666
|
-
|
|
666
|
+
Ot(e, t);
|
|
667
667
|
function n() {
|
|
668
668
|
this.constructor = e;
|
|
669
669
|
}
|
|
@@ -679,7 +679,7 @@ var B = function() {
|
|
|
679
679
|
return t;
|
|
680
680
|
}, B.apply(this, arguments);
|
|
681
681
|
};
|
|
682
|
-
function
|
|
682
|
+
function jr(e, t) {
|
|
683
683
|
var n = {};
|
|
684
684
|
for (var r in e)
|
|
685
685
|
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
@@ -688,109 +688,111 @@ function $r(e, t) {
|
|
|
688
688
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
689
689
|
return n;
|
|
690
690
|
}
|
|
691
|
-
function
|
|
691
|
+
function At(e, t, n) {
|
|
692
692
|
if (arguments.length === 2)
|
|
693
693
|
for (var r = 0, i = t.length, a; r < i; r++)
|
|
694
694
|
(a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
|
|
695
695
|
return e.concat(a || t);
|
|
696
696
|
}
|
|
697
|
-
function
|
|
698
|
-
var n = t && t.cache ? t.cache :
|
|
697
|
+
function Bt(e, t) {
|
|
698
|
+
var n = t && t.cache ? t.cache : qr, r = t && t.serializer ? t.serializer : Zr, i = t && t.strategy ? t.strategy : zr;
|
|
699
699
|
return i(e, {
|
|
700
700
|
cache: n,
|
|
701
701
|
serializer: r
|
|
702
702
|
});
|
|
703
703
|
}
|
|
704
|
-
function
|
|
704
|
+
function Vr(e) {
|
|
705
705
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
706
706
|
}
|
|
707
|
-
function
|
|
708
|
-
var i =
|
|
707
|
+
function Nn(e, t, n, r) {
|
|
708
|
+
var i = Vr(r) ? r : n(r), a = t.get(i);
|
|
709
709
|
return typeof a == "undefined" && (a = e.call(this, r), t.set(i, a)), a;
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function On(e, t, n) {
|
|
712
712
|
var r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
|
|
713
713
|
return typeof a == "undefined" && (a = e.apply(this, r), t.set(i, a)), a;
|
|
714
714
|
}
|
|
715
|
-
function
|
|
715
|
+
function Vt(e, t, n, r, i) {
|
|
716
716
|
return n.bind(t, e, r, i);
|
|
717
717
|
}
|
|
718
|
-
function Vr(e, t) {
|
|
719
|
-
var n = e.length === 1 ? jr : Pn;
|
|
720
|
-
return In(e, this, n, t.cache.create(), t.serializer);
|
|
721
|
-
}
|
|
722
718
|
function zr(e, t) {
|
|
723
|
-
|
|
719
|
+
var n = e.length === 1 ? Nn : On;
|
|
720
|
+
return Vt(e, this, n, t.cache.create(), t.serializer);
|
|
721
|
+
}
|
|
722
|
+
function Xr(e, t) {
|
|
723
|
+
return Vt(e, this, On, t.cache.create(), t.serializer);
|
|
724
|
+
}
|
|
725
|
+
function Wr(e, t) {
|
|
726
|
+
return Vt(e, this, Nn, t.cache.create(), t.serializer);
|
|
724
727
|
}
|
|
725
|
-
var
|
|
728
|
+
var Zr = function() {
|
|
726
729
|
return JSON.stringify(arguments);
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
}()
|
|
739
|
-
), Zr = {
|
|
730
|
+
};
|
|
731
|
+
function zt() {
|
|
732
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
733
|
+
}
|
|
734
|
+
zt.prototype.get = function(e) {
|
|
735
|
+
return this.cache[e];
|
|
736
|
+
};
|
|
737
|
+
zt.prototype.set = function(e, t) {
|
|
738
|
+
this.cache[e] = t;
|
|
739
|
+
};
|
|
740
|
+
var qr = {
|
|
740
741
|
create: function() {
|
|
741
|
-
return new
|
|
742
|
+
return new zt();
|
|
742
743
|
}
|
|
743
|
-
},
|
|
744
|
-
variadic:
|
|
745
|
-
|
|
744
|
+
}, St = {
|
|
745
|
+
variadic: Xr,
|
|
746
|
+
monadic: Wr
|
|
747
|
+
}, w;
|
|
746
748
|
(function(e) {
|
|
747
749
|
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";
|
|
748
|
-
})(
|
|
750
|
+
})(w || (w = {}));
|
|
749
751
|
var C;
|
|
750
752
|
(function(e) {
|
|
751
753
|
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";
|
|
752
754
|
})(C || (C = {}));
|
|
753
|
-
var
|
|
755
|
+
var $e;
|
|
754
756
|
(function(e) {
|
|
755
757
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
756
|
-
})(
|
|
757
|
-
function
|
|
758
|
+
})($e || ($e = {}));
|
|
759
|
+
function rn(e) {
|
|
758
760
|
return e.type === C.literal;
|
|
759
761
|
}
|
|
760
|
-
function
|
|
762
|
+
function Jr(e) {
|
|
761
763
|
return e.type === C.argument;
|
|
762
764
|
}
|
|
763
|
-
function
|
|
765
|
+
function Ln(e) {
|
|
764
766
|
return e.type === C.number;
|
|
765
767
|
}
|
|
766
|
-
function
|
|
768
|
+
function Mn(e) {
|
|
767
769
|
return e.type === C.date;
|
|
768
770
|
}
|
|
769
|
-
function
|
|
771
|
+
function Rn(e) {
|
|
770
772
|
return e.type === C.time;
|
|
771
773
|
}
|
|
772
|
-
function
|
|
774
|
+
function Dn(e) {
|
|
773
775
|
return e.type === C.select;
|
|
774
776
|
}
|
|
775
|
-
function
|
|
777
|
+
function Un(e) {
|
|
776
778
|
return e.type === C.plural;
|
|
777
779
|
}
|
|
778
|
-
function
|
|
780
|
+
function Qr(e) {
|
|
779
781
|
return e.type === C.pound;
|
|
780
782
|
}
|
|
781
|
-
function
|
|
783
|
+
function Fn(e) {
|
|
782
784
|
return e.type === C.tag;
|
|
783
785
|
}
|
|
784
|
-
function
|
|
785
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
786
|
+
function Gn(e) {
|
|
787
|
+
return !!(e && typeof e == "object" && e.type === $e.number);
|
|
786
788
|
}
|
|
787
|
-
function
|
|
788
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
789
|
+
function Lt(e) {
|
|
790
|
+
return !!(e && typeof e == "object" && e.type === $e.dateTime);
|
|
789
791
|
}
|
|
790
|
-
var
|
|
791
|
-
function
|
|
792
|
+
var $n = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Yr = /(?:[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;
|
|
793
|
+
function Kr(e) {
|
|
792
794
|
var t = {};
|
|
793
|
-
return e.replace(
|
|
795
|
+
return e.replace(Yr, function(n) {
|
|
794
796
|
var r = n.length;
|
|
795
797
|
switch (n[0]) {
|
|
796
798
|
case "G":
|
|
@@ -879,36 +881,36 @@ function Yr(e) {
|
|
|
879
881
|
return "";
|
|
880
882
|
}), t;
|
|
881
883
|
}
|
|
882
|
-
var
|
|
883
|
-
function
|
|
884
|
+
var ei = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
885
|
+
function ti(e) {
|
|
884
886
|
if (e.length === 0)
|
|
885
887
|
throw new Error("Number skeleton cannot be empty");
|
|
886
|
-
for (var t = e.split(
|
|
888
|
+
for (var t = e.split(ei).filter(function(d) {
|
|
887
889
|
return d.length > 0;
|
|
888
890
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
889
891
|
var a = i[r], o = a.split("/");
|
|
890
892
|
if (o.length === 0)
|
|
891
893
|
throw new Error("Invalid number skeleton");
|
|
892
894
|
for (var s = o[0], c = o.slice(1), l = 0, u = c; l < u.length; l++) {
|
|
893
|
-
var
|
|
894
|
-
if (
|
|
895
|
+
var f = u[l];
|
|
896
|
+
if (f.length === 0)
|
|
895
897
|
throw new Error("Invalid number skeleton");
|
|
896
898
|
}
|
|
897
899
|
n.push({ stem: s, options: c });
|
|
898
900
|
}
|
|
899
901
|
return n;
|
|
900
902
|
}
|
|
901
|
-
function
|
|
903
|
+
function ni(e) {
|
|
902
904
|
return e.replace(/^(.*?)-/, "");
|
|
903
905
|
}
|
|
904
|
-
var
|
|
905
|
-
function
|
|
906
|
+
var an = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, kn = /^(@+)?(\+|#+)?[rs]?$/g, ri = /(\*)(0+)|(#+)(0+)|(0+)/g, jn = /^(0+)$/;
|
|
907
|
+
function on(e) {
|
|
906
908
|
var t = {};
|
|
907
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
909
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(kn, function(n, r, i) {
|
|
908
910
|
return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
|
|
909
911
|
}), t;
|
|
910
912
|
}
|
|
911
|
-
function
|
|
913
|
+
function Vn(e) {
|
|
912
914
|
switch (e) {
|
|
913
915
|
case "sign-auto":
|
|
914
916
|
return {
|
|
@@ -948,7 +950,7 @@ function kn(e) {
|
|
|
948
950
|
};
|
|
949
951
|
}
|
|
950
952
|
}
|
|
951
|
-
function
|
|
953
|
+
function ii(e) {
|
|
952
954
|
var t;
|
|
953
955
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
954
956
|
notation: "engineering"
|
|
@@ -956,17 +958,17 @@ function ri(e) {
|
|
|
956
958
|
notation: "scientific"
|
|
957
959
|
}, e = e.slice(1)), t) {
|
|
958
960
|
var n = e.slice(0, 2);
|
|
959
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)),
|
|
961
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !jn.test(e))
|
|
960
962
|
throw new Error("Malformed concise eng/scientific notation");
|
|
961
963
|
t.minimumIntegerDigits = e.length;
|
|
962
964
|
}
|
|
963
965
|
return t;
|
|
964
966
|
}
|
|
965
|
-
function
|
|
966
|
-
var t = {}, n =
|
|
967
|
+
function sn(e) {
|
|
968
|
+
var t = {}, n = Vn(e);
|
|
967
969
|
return n || t;
|
|
968
970
|
}
|
|
969
|
-
function
|
|
971
|
+
function ai(e) {
|
|
970
972
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
971
973
|
var i = r[n];
|
|
972
974
|
switch (i.stem) {
|
|
@@ -990,7 +992,7 @@ function ii(e) {
|
|
|
990
992
|
continue;
|
|
991
993
|
case "measure-unit":
|
|
992
994
|
case "unit":
|
|
993
|
-
t.style = "unit", t.unit =
|
|
995
|
+
t.style = "unit", t.unit = ni(i.options[0]);
|
|
994
996
|
continue;
|
|
995
997
|
case "compact-short":
|
|
996
998
|
case "K":
|
|
@@ -1002,12 +1004,12 @@ function ii(e) {
|
|
|
1002
1004
|
continue;
|
|
1003
1005
|
case "scientific":
|
|
1004
1006
|
t = B(B(B({}, t), { notation: "scientific" }), i.options.reduce(function(c, l) {
|
|
1005
|
-
return B(B({}, c),
|
|
1007
|
+
return B(B({}, c), sn(l));
|
|
1006
1008
|
}, {}));
|
|
1007
1009
|
continue;
|
|
1008
1010
|
case "engineering":
|
|
1009
1011
|
t = B(B(B({}, t), { notation: "engineering" }), i.options.reduce(function(c, l) {
|
|
1010
|
-
return B(B({}, c),
|
|
1012
|
+
return B(B({}, c), sn(l));
|
|
1011
1013
|
}, {}));
|
|
1012
1014
|
continue;
|
|
1013
1015
|
case "notation-simple":
|
|
@@ -1052,40 +1054,40 @@ function ii(e) {
|
|
|
1052
1054
|
case "integer-width":
|
|
1053
1055
|
if (i.options.length > 1)
|
|
1054
1056
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1055
|
-
i.options[0].replace(
|
|
1057
|
+
i.options[0].replace(ri, function(c, l, u, f, d, y) {
|
|
1056
1058
|
if (l)
|
|
1057
1059
|
t.minimumIntegerDigits = u.length;
|
|
1058
1060
|
else {
|
|
1059
|
-
if (
|
|
1061
|
+
if (f && d)
|
|
1060
1062
|
throw new Error("We currently do not support maximum integer digits");
|
|
1061
|
-
if (
|
|
1063
|
+
if (y)
|
|
1062
1064
|
throw new Error("We currently do not support exact integer digits");
|
|
1063
1065
|
}
|
|
1064
1066
|
return "";
|
|
1065
1067
|
});
|
|
1066
1068
|
continue;
|
|
1067
1069
|
}
|
|
1068
|
-
if (
|
|
1070
|
+
if (jn.test(i.stem)) {
|
|
1069
1071
|
t.minimumIntegerDigits = i.stem.length;
|
|
1070
1072
|
continue;
|
|
1071
1073
|
}
|
|
1072
|
-
if (
|
|
1074
|
+
if (an.test(i.stem)) {
|
|
1073
1075
|
if (i.options.length > 1)
|
|
1074
1076
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1075
|
-
i.stem.replace(
|
|
1076
|
-
return u === "*" ? t.minimumFractionDigits = l.length :
|
|
1077
|
+
i.stem.replace(an, function(c, l, u, f, d, y) {
|
|
1078
|
+
return u === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : d && y ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + y.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1077
1079
|
});
|
|
1078
1080
|
var a = i.options[0];
|
|
1079
|
-
a === "w" ? t = B(B({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = B(B({}, t),
|
|
1081
|
+
a === "w" ? t = B(B({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = B(B({}, t), on(a)));
|
|
1080
1082
|
continue;
|
|
1081
1083
|
}
|
|
1082
|
-
if (
|
|
1083
|
-
t = B(B({}, t),
|
|
1084
|
+
if (kn.test(i.stem)) {
|
|
1085
|
+
t = B(B({}, t), on(i.stem));
|
|
1084
1086
|
continue;
|
|
1085
1087
|
}
|
|
1086
|
-
var o =
|
|
1088
|
+
var o = Vn(i.stem);
|
|
1087
1089
|
o && (t = B(B({}, t), o));
|
|
1088
|
-
var s =
|
|
1090
|
+
var s = ii(i.stem);
|
|
1089
1091
|
s && (t = B(B({}, t), s));
|
|
1090
1092
|
}
|
|
1091
1093
|
return t;
|
|
@@ -2505,13 +2507,13 @@ var ut = {
|
|
|
2505
2507
|
"h"
|
|
2506
2508
|
]
|
|
2507
2509
|
};
|
|
2508
|
-
function
|
|
2510
|
+
function oi(e, t) {
|
|
2509
2511
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2510
2512
|
var i = e.charAt(r);
|
|
2511
2513
|
if (i === "j") {
|
|
2512
2514
|
for (var a = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2513
2515
|
a++, r++;
|
|
2514
|
-
var o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), c = "a", l =
|
|
2516
|
+
var o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), c = "a", l = si(t);
|
|
2515
2517
|
for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
|
|
2516
2518
|
n += c;
|
|
2517
2519
|
for (; o-- > 0; )
|
|
@@ -2521,7 +2523,7 @@ function ai(e, t) {
|
|
|
2521
2523
|
}
|
|
2522
2524
|
return n;
|
|
2523
2525
|
}
|
|
2524
|
-
function
|
|
2526
|
+
function si(e) {
|
|
2525
2527
|
var t = e.hourCycle;
|
|
2526
2528
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2527
2529
|
e.hourCycles && // @ts-ignore
|
|
@@ -2543,20 +2545,20 @@ function oi(e) {
|
|
|
2543
2545
|
var i = ut[r || ""] || ut[n || ""] || ut["".concat(n, "-001")] || ut["001"];
|
|
2544
2546
|
return i[0];
|
|
2545
2547
|
}
|
|
2546
|
-
var
|
|
2548
|
+
var Ct, li = new RegExp("^".concat($n.source, "*")), ui = new RegExp("".concat($n.source, "*$"));
|
|
2547
2549
|
function T(e, t) {
|
|
2548
2550
|
return { start: e, end: t };
|
|
2549
2551
|
}
|
|
2550
|
-
var
|
|
2552
|
+
var ci = !!String.prototype.startsWith && "_a".startsWith("a", 1), hi = !!String.fromCodePoint, fi = !!Object.fromEntries, pi = !!String.prototype.codePointAt, mi = !!String.prototype.trimStart, di = !!String.prototype.trimEnd, gi = !!Number.isSafeInteger, bi = gi ? Number.isSafeInteger : function(e) {
|
|
2551
2553
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2552
|
-
},
|
|
2554
|
+
}, Mt = !0;
|
|
2553
2555
|
try {
|
|
2554
|
-
var
|
|
2555
|
-
|
|
2556
|
+
var yi = Xn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2557
|
+
Mt = ((Ct = yi.exec("a")) === null || Ct === void 0 ? void 0 : Ct[0]) === "a";
|
|
2556
2558
|
} catch (e) {
|
|
2557
|
-
|
|
2559
|
+
Mt = !1;
|
|
2558
2560
|
}
|
|
2559
|
-
var
|
|
2561
|
+
var ln = ci ? (
|
|
2560
2562
|
// Native
|
|
2561
2563
|
function(t, n, r) {
|
|
2562
2564
|
return t.startsWith(n, r);
|
|
@@ -2566,7 +2568,7 @@ var on = li ? (
|
|
|
2566
2568
|
function(t, n, r) {
|
|
2567
2569
|
return t.slice(r, r + n.length) === n;
|
|
2568
2570
|
}
|
|
2569
|
-
),
|
|
2571
|
+
), Rt = hi ? String.fromCodePoint : (
|
|
2570
2572
|
// IE11
|
|
2571
2573
|
function() {
|
|
2572
2574
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
@@ -2578,9 +2580,9 @@ var on = li ? (
|
|
|
2578
2580
|
}
|
|
2579
2581
|
return r;
|
|
2580
2582
|
}
|
|
2581
|
-
),
|
|
2583
|
+
), un = (
|
|
2582
2584
|
// native
|
|
2583
|
-
|
|
2585
|
+
fi ? Object.fromEntries : (
|
|
2584
2586
|
// Ponyfill
|
|
2585
2587
|
function(t) {
|
|
2586
2588
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
@@ -2590,7 +2592,7 @@ var on = li ? (
|
|
|
2590
2592
|
return n;
|
|
2591
2593
|
}
|
|
2592
2594
|
)
|
|
2593
|
-
),
|
|
2595
|
+
), zn = pi ? (
|
|
2594
2596
|
// Native
|
|
2595
2597
|
function(t, n) {
|
|
2596
2598
|
return t.codePointAt(n);
|
|
@@ -2604,7 +2606,7 @@ var on = li ? (
|
|
|
2604
2606
|
return i < 55296 || i > 56319 || n + 1 === r || (a = t.charCodeAt(n + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
|
|
2605
2607
|
}
|
|
2606
2608
|
}
|
|
2607
|
-
),
|
|
2609
|
+
), vi = mi ? (
|
|
2608
2610
|
// Native
|
|
2609
2611
|
function(t) {
|
|
2610
2612
|
return t.trimStart();
|
|
@@ -2612,9 +2614,9 @@ var on = li ? (
|
|
|
2612
2614
|
) : (
|
|
2613
2615
|
// Ponyfill
|
|
2614
2616
|
function(t) {
|
|
2615
|
-
return t.replace(
|
|
2617
|
+
return t.replace(li, "");
|
|
2616
2618
|
}
|
|
2617
|
-
),
|
|
2619
|
+
), xi = di ? (
|
|
2618
2620
|
// Native
|
|
2619
2621
|
function(t) {
|
|
2620
2622
|
return t.trimEnd();
|
|
@@ -2625,29 +2627,29 @@ var on = li ? (
|
|
|
2625
2627
|
return t.replace(ui, "");
|
|
2626
2628
|
}
|
|
2627
2629
|
);
|
|
2628
|
-
function
|
|
2630
|
+
function Xn(e, t) {
|
|
2629
2631
|
return new RegExp(e, t);
|
|
2630
2632
|
}
|
|
2631
|
-
var
|
|
2632
|
-
if (
|
|
2633
|
-
var
|
|
2634
|
-
|
|
2633
|
+
var Dt;
|
|
2634
|
+
if (Mt) {
|
|
2635
|
+
var cn = Xn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2636
|
+
Dt = function(t, n) {
|
|
2635
2637
|
var r;
|
|
2636
|
-
|
|
2637
|
-
var i =
|
|
2638
|
+
cn.lastIndex = n;
|
|
2639
|
+
var i = cn.exec(t);
|
|
2638
2640
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2639
2641
|
};
|
|
2640
2642
|
} else
|
|
2641
|
-
|
|
2643
|
+
Dt = function(t, n) {
|
|
2642
2644
|
for (var r = []; ; ) {
|
|
2643
|
-
var i =
|
|
2644
|
-
if (i === void 0 ||
|
|
2645
|
+
var i = zn(t, n);
|
|
2646
|
+
if (i === void 0 || Wn(i) || Ti(i))
|
|
2645
2647
|
break;
|
|
2646
2648
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2647
2649
|
}
|
|
2648
|
-
return
|
|
2650
|
+
return Rt.apply(void 0, r);
|
|
2649
2651
|
};
|
|
2650
|
-
var
|
|
2652
|
+
var Ei = (
|
|
2651
2653
|
/** @class */
|
|
2652
2654
|
function() {
|
|
2653
2655
|
function e(t, n) {
|
|
@@ -2677,8 +2679,8 @@ var xi = (
|
|
|
2677
2679
|
} else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2678
2680
|
if (r)
|
|
2679
2681
|
break;
|
|
2680
|
-
return this.error(
|
|
2681
|
-
} else if (a === 60 && !this.ignoreTag &&
|
|
2682
|
+
return this.error(w.UNMATCHED_CLOSING_TAG, T(this.clonePosition(), this.clonePosition()));
|
|
2683
|
+
} else if (a === 60 && !this.ignoreTag && Ut(this.peek() || 0)) {
|
|
2682
2684
|
var o = this.parseTag(t, n);
|
|
2683
2685
|
if (o.err)
|
|
2684
2686
|
return o;
|
|
@@ -2711,10 +2713,10 @@ var xi = (
|
|
|
2711
2713
|
return a;
|
|
2712
2714
|
var o = a.val, s = this.clonePosition();
|
|
2713
2715
|
if (this.bumpIf("</")) {
|
|
2714
|
-
if (this.isEOF() || !
|
|
2715
|
-
return this.error(
|
|
2716
|
+
if (this.isEOF() || !Ut(this.char()))
|
|
2717
|
+
return this.error(w.INVALID_TAG, T(s, this.clonePosition()));
|
|
2716
2718
|
var c = this.clonePosition(), l = this.parseTagName();
|
|
2717
|
-
return i !== l ? this.error(
|
|
2719
|
+
return i !== l ? this.error(w.UNMATCHED_CLOSING_TAG, T(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2718
2720
|
val: {
|
|
2719
2721
|
type: C.tag,
|
|
2720
2722
|
value: i,
|
|
@@ -2722,14 +2724,14 @@ var xi = (
|
|
|
2722
2724
|
location: T(r, this.clonePosition())
|
|
2723
2725
|
},
|
|
2724
2726
|
err: null
|
|
2725
|
-
} : this.error(
|
|
2727
|
+
} : this.error(w.INVALID_TAG, T(s, this.clonePosition())));
|
|
2726
2728
|
} else
|
|
2727
|
-
return this.error(
|
|
2729
|
+
return this.error(w.UNCLOSED_TAG, T(r, this.clonePosition()));
|
|
2728
2730
|
} else
|
|
2729
|
-
return this.error(
|
|
2731
|
+
return this.error(w.INVALID_TAG, T(r, this.clonePosition()));
|
|
2730
2732
|
}, e.prototype.parseTagName = function() {
|
|
2731
2733
|
var t = this.offset();
|
|
2732
|
-
for (this.bump(); !this.isEOF() &&
|
|
2734
|
+
for (this.bump(); !this.isEOF() && wi(this.char()); )
|
|
2733
2735
|
this.bump();
|
|
2734
2736
|
return this.message.slice(t, this.offset());
|
|
2735
2737
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
@@ -2758,7 +2760,7 @@ var xi = (
|
|
|
2758
2760
|
};
|
|
2759
2761
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2760
2762
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2761
|
-
!
|
|
2763
|
+
!_i(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2762
2764
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2763
2765
|
if (this.isEOF() || this.char() !== 39)
|
|
2764
2766
|
return null;
|
|
@@ -2792,23 +2794,23 @@ var xi = (
|
|
|
2792
2794
|
n.push(r);
|
|
2793
2795
|
this.bump();
|
|
2794
2796
|
}
|
|
2795
|
-
return
|
|
2797
|
+
return Rt.apply(void 0, n);
|
|
2796
2798
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2797
2799
|
if (this.isEOF())
|
|
2798
2800
|
return null;
|
|
2799
2801
|
var r = this.char();
|
|
2800
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
2802
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Rt(r));
|
|
2801
2803
|
}, e.prototype.parseArgument = function(t, n) {
|
|
2802
2804
|
var r = this.clonePosition();
|
|
2803
2805
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2804
|
-
return this.error(
|
|
2806
|
+
return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(r, this.clonePosition()));
|
|
2805
2807
|
if (this.char() === 125)
|
|
2806
|
-
return this.bump(), this.error(
|
|
2808
|
+
return this.bump(), this.error(w.EMPTY_ARGUMENT, T(r, this.clonePosition()));
|
|
2807
2809
|
var i = this.parseIdentifierIfPossible().value;
|
|
2808
2810
|
if (!i)
|
|
2809
|
-
return this.error(
|
|
2811
|
+
return this.error(w.MALFORMED_ARGUMENT, T(r, this.clonePosition()));
|
|
2810
2812
|
if (this.bumpSpace(), this.isEOF())
|
|
2811
|
-
return this.error(
|
|
2813
|
+
return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(r, this.clonePosition()));
|
|
2812
2814
|
switch (this.char()) {
|
|
2813
2815
|
case 125:
|
|
2814
2816
|
return this.bump(), {
|
|
@@ -2821,12 +2823,12 @@ var xi = (
|
|
|
2821
2823
|
err: null
|
|
2822
2824
|
};
|
|
2823
2825
|
case 44:
|
|
2824
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2826
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
2825
2827
|
default:
|
|
2826
|
-
return this.error(
|
|
2828
|
+
return this.error(w.MALFORMED_ARGUMENT, T(r, this.clonePosition()));
|
|
2827
2829
|
}
|
|
2828
2830
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2829
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
2831
|
+
var t = this.clonePosition(), n = this.offset(), r = Dt(this.message, n), i = n + r.length;
|
|
2830
2832
|
this.bumpTo(i);
|
|
2831
2833
|
var a = this.clonePosition(), o = T(t, a);
|
|
2832
2834
|
return { value: r, location: o };
|
|
@@ -2834,7 +2836,7 @@ var xi = (
|
|
|
2834
2836
|
var a, o = this.clonePosition(), s = this.parseIdentifierIfPossible().value, c = this.clonePosition();
|
|
2835
2837
|
switch (s) {
|
|
2836
2838
|
case "":
|
|
2837
|
-
return this.error(
|
|
2839
|
+
return this.error(w.EXPECT_ARGUMENT_TYPE, T(o, c));
|
|
2838
2840
|
case "number":
|
|
2839
2841
|
case "date":
|
|
2840
2842
|
case "time": {
|
|
@@ -2842,40 +2844,40 @@ var xi = (
|
|
|
2842
2844
|
var l = null;
|
|
2843
2845
|
if (this.bumpIf(",")) {
|
|
2844
2846
|
this.bumpSpace();
|
|
2845
|
-
var u = this.clonePosition(),
|
|
2846
|
-
if (
|
|
2847
|
-
return
|
|
2848
|
-
var d =
|
|
2847
|
+
var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2848
|
+
if (f.err)
|
|
2849
|
+
return f;
|
|
2850
|
+
var d = xi(f.val);
|
|
2849
2851
|
if (d.length === 0)
|
|
2850
|
-
return this.error(
|
|
2851
|
-
var
|
|
2852
|
-
l = { style: d, styleLocation:
|
|
2852
|
+
return this.error(w.EXPECT_ARGUMENT_STYLE, T(this.clonePosition(), this.clonePosition()));
|
|
2853
|
+
var y = T(u, this.clonePosition());
|
|
2854
|
+
l = { style: d, styleLocation: y };
|
|
2853
2855
|
}
|
|
2854
|
-
var
|
|
2855
|
-
if (
|
|
2856
|
-
return
|
|
2856
|
+
var x = this.tryParseArgumentClose(i);
|
|
2857
|
+
if (x.err)
|
|
2858
|
+
return x;
|
|
2857
2859
|
var I = T(i, this.clonePosition());
|
|
2858
|
-
if (l &&
|
|
2859
|
-
var
|
|
2860
|
+
if (l && ln(l == null ? void 0 : l.style, "::", 0)) {
|
|
2861
|
+
var U = vi(l.style.slice(2));
|
|
2860
2862
|
if (s === "number") {
|
|
2861
|
-
var
|
|
2862
|
-
return
|
|
2863
|
-
val: { type: C.number, value: r, location: I, style:
|
|
2863
|
+
var f = this.parseNumberSkeletonFromString(U, l.styleLocation);
|
|
2864
|
+
return f.err ? f : {
|
|
2865
|
+
val: { type: C.number, value: r, location: I, style: f.val },
|
|
2864
2866
|
err: null
|
|
2865
2867
|
};
|
|
2866
2868
|
} else {
|
|
2867
|
-
if (
|
|
2868
|
-
return this.error(
|
|
2869
|
-
var N =
|
|
2870
|
-
this.locale && (N =
|
|
2869
|
+
if (U.length === 0)
|
|
2870
|
+
return this.error(w.EXPECT_DATE_TIME_SKELETON, I);
|
|
2871
|
+
var N = U;
|
|
2872
|
+
this.locale && (N = oi(U, this.locale));
|
|
2871
2873
|
var d = {
|
|
2872
|
-
type:
|
|
2874
|
+
type: $e.dateTime,
|
|
2873
2875
|
pattern: N,
|
|
2874
2876
|
location: l.styleLocation,
|
|
2875
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2876
|
-
},
|
|
2877
|
+
parsedOptions: this.shouldParseSkeletons ? Kr(N) : {}
|
|
2878
|
+
}, R = s === "date" ? C.date : C.time;
|
|
2877
2879
|
return {
|
|
2878
|
-
val: { type:
|
|
2880
|
+
val: { type: R, value: r, location: I, style: d },
|
|
2879
2881
|
err: null
|
|
2880
2882
|
};
|
|
2881
2883
|
}
|
|
@@ -2893,52 +2895,52 @@ var xi = (
|
|
|
2893
2895
|
case "plural":
|
|
2894
2896
|
case "selectordinal":
|
|
2895
2897
|
case "select": {
|
|
2896
|
-
var
|
|
2898
|
+
var D = this.clonePosition();
|
|
2897
2899
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2898
|
-
return this.error(
|
|
2900
|
+
return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, T(D, B({}, D)));
|
|
2899
2901
|
this.bumpSpace();
|
|
2900
2902
|
var P = this.parseIdentifierIfPossible(), O = 0;
|
|
2901
2903
|
if (s !== "select" && P.value === "offset") {
|
|
2902
2904
|
if (!this.bumpIf(":"))
|
|
2903
|
-
return this.error(
|
|
2905
|
+
return this.error(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T(this.clonePosition(), this.clonePosition()));
|
|
2904
2906
|
this.bumpSpace();
|
|
2905
|
-
var
|
|
2906
|
-
if (
|
|
2907
|
-
return
|
|
2908
|
-
this.bumpSpace(), P = this.parseIdentifierIfPossible(), O =
|
|
2907
|
+
var f = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2908
|
+
if (f.err)
|
|
2909
|
+
return f;
|
|
2910
|
+
this.bumpSpace(), P = this.parseIdentifierIfPossible(), O = f.val;
|
|
2909
2911
|
}
|
|
2910
|
-
var
|
|
2911
|
-
if (
|
|
2912
|
-
return
|
|
2913
|
-
var
|
|
2914
|
-
if (
|
|
2915
|
-
return
|
|
2916
|
-
var
|
|
2912
|
+
var Z = this.tryParsePluralOrSelectOptions(t, s, n, P);
|
|
2913
|
+
if (Z.err)
|
|
2914
|
+
return Z;
|
|
2915
|
+
var x = this.tryParseArgumentClose(i);
|
|
2916
|
+
if (x.err)
|
|
2917
|
+
return x;
|
|
2918
|
+
var ee = T(i, this.clonePosition());
|
|
2917
2919
|
return s === "select" ? {
|
|
2918
2920
|
val: {
|
|
2919
2921
|
type: C.select,
|
|
2920
2922
|
value: r,
|
|
2921
|
-
options:
|
|
2922
|
-
location:
|
|
2923
|
+
options: un(Z.val),
|
|
2924
|
+
location: ee
|
|
2923
2925
|
},
|
|
2924
2926
|
err: null
|
|
2925
2927
|
} : {
|
|
2926
2928
|
val: {
|
|
2927
2929
|
type: C.plural,
|
|
2928
2930
|
value: r,
|
|
2929
|
-
options:
|
|
2931
|
+
options: un(Z.val),
|
|
2930
2932
|
offset: O,
|
|
2931
2933
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2932
|
-
location:
|
|
2934
|
+
location: ee
|
|
2933
2935
|
},
|
|
2934
2936
|
err: null
|
|
2935
2937
|
};
|
|
2936
2938
|
}
|
|
2937
2939
|
default:
|
|
2938
|
-
return this.error(
|
|
2940
|
+
return this.error(w.INVALID_ARGUMENT_TYPE, T(o, c));
|
|
2939
2941
|
}
|
|
2940
2942
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2941
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2943
|
+
return this.isEOF() || this.char() !== 125 ? this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2942
2944
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2943
2945
|
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
2944
2946
|
var r = this.char();
|
|
@@ -2947,7 +2949,7 @@ var xi = (
|
|
|
2947
2949
|
this.bump();
|
|
2948
2950
|
var i = this.clonePosition();
|
|
2949
2951
|
if (!this.bumpUntil("'"))
|
|
2950
|
-
return this.error(
|
|
2952
|
+
return this.error(w.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, T(i, this.clonePosition()));
|
|
2951
2953
|
this.bump();
|
|
2952
2954
|
break;
|
|
2953
2955
|
}
|
|
@@ -2977,52 +2979,52 @@ var xi = (
|
|
|
2977
2979
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
2978
2980
|
var r = [];
|
|
2979
2981
|
try {
|
|
2980
|
-
r =
|
|
2982
|
+
r = ti(t);
|
|
2981
2983
|
} catch (i) {
|
|
2982
|
-
return this.error(
|
|
2984
|
+
return this.error(w.INVALID_NUMBER_SKELETON, n);
|
|
2983
2985
|
}
|
|
2984
2986
|
return {
|
|
2985
2987
|
val: {
|
|
2986
|
-
type:
|
|
2988
|
+
type: $e.number,
|
|
2987
2989
|
tokens: r,
|
|
2988
2990
|
location: n,
|
|
2989
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2991
|
+
parsedOptions: this.shouldParseSkeletons ? ai(r) : {}
|
|
2990
2992
|
},
|
|
2991
2993
|
err: null
|
|
2992
2994
|
};
|
|
2993
2995
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
2994
2996
|
for (var a, o = !1, s = [], c = /* @__PURE__ */ new Set(), l = i.value, u = i.location; ; ) {
|
|
2995
2997
|
if (l.length === 0) {
|
|
2996
|
-
var
|
|
2998
|
+
var f = this.clonePosition();
|
|
2997
2999
|
if (n !== "select" && this.bumpIf("=")) {
|
|
2998
|
-
var d = this.tryParseDecimalInteger(
|
|
3000
|
+
var d = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_SELECTOR, w.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2999
3001
|
if (d.err)
|
|
3000
3002
|
return d;
|
|
3001
|
-
u = T(
|
|
3003
|
+
u = T(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
|
|
3002
3004
|
} else
|
|
3003
3005
|
break;
|
|
3004
3006
|
}
|
|
3005
3007
|
if (c.has(l))
|
|
3006
|
-
return this.error(n === "select" ?
|
|
3008
|
+
return this.error(n === "select" ? w.DUPLICATE_SELECT_ARGUMENT_SELECTOR : w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
|
3007
3009
|
l === "other" && (o = !0), this.bumpSpace();
|
|
3008
|
-
var
|
|
3010
|
+
var y = this.clonePosition();
|
|
3009
3011
|
if (!this.bumpIf("{"))
|
|
3010
|
-
return this.error(n === "select" ?
|
|
3011
|
-
var
|
|
3012
|
-
if (
|
|
3013
|
-
return
|
|
3014
|
-
var I = this.tryParseArgumentClose(
|
|
3012
|
+
return this.error(n === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : w.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, T(this.clonePosition(), this.clonePosition()));
|
|
3013
|
+
var x = this.parseMessage(t + 1, n, r);
|
|
3014
|
+
if (x.err)
|
|
3015
|
+
return x;
|
|
3016
|
+
var I = this.tryParseArgumentClose(y);
|
|
3015
3017
|
if (I.err)
|
|
3016
3018
|
return I;
|
|
3017
3019
|
s.push([
|
|
3018
3020
|
l,
|
|
3019
3021
|
{
|
|
3020
|
-
value:
|
|
3021
|
-
location: T(
|
|
3022
|
+
value: x.val,
|
|
3023
|
+
location: T(y, this.clonePosition())
|
|
3022
3024
|
}
|
|
3023
3025
|
]), c.add(l), this.bumpSpace(), a = this.parseIdentifierIfPossible(), l = a.value, u = a.location;
|
|
3024
3026
|
}
|
|
3025
|
-
return s.length === 0 ? this.error(n === "select" ?
|
|
3027
|
+
return s.length === 0 ? this.error(n === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR : w.EXPECT_PLURAL_ARGUMENT_SELECTOR, T(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(w.MISSING_OTHER_CLAUSE, T(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3026
3028
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3027
3029
|
var r = 1, i = this.clonePosition();
|
|
3028
3030
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
@@ -3034,7 +3036,7 @@ var xi = (
|
|
|
3034
3036
|
break;
|
|
3035
3037
|
}
|
|
3036
3038
|
var c = T(i, this.clonePosition());
|
|
3037
|
-
return a ? (o *= r,
|
|
3039
|
+
return a ? (o *= r, bi(o) ? { val: o, err: null } : this.error(n, c)) : this.error(t, c);
|
|
3038
3040
|
}, e.prototype.offset = function() {
|
|
3039
3041
|
return this.position.offset;
|
|
3040
3042
|
}, e.prototype.isEOF = function() {
|
|
@@ -3049,7 +3051,7 @@ var xi = (
|
|
|
3049
3051
|
var t = this.position.offset;
|
|
3050
3052
|
if (t >= this.message.length)
|
|
3051
3053
|
throw Error("out of bound");
|
|
3052
|
-
var n =
|
|
3054
|
+
var n = zn(this.message, t);
|
|
3053
3055
|
if (n === void 0)
|
|
3054
3056
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3055
3057
|
return n;
|
|
@@ -3068,7 +3070,7 @@ var xi = (
|
|
|
3068
3070
|
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);
|
|
3069
3071
|
}
|
|
3070
3072
|
}, e.prototype.bumpIf = function(t) {
|
|
3071
|
-
if (
|
|
3073
|
+
if (ln(this.message, t, this.offset())) {
|
|
3072
3074
|
for (var n = 0; n < t.length; n++)
|
|
3073
3075
|
this.bump();
|
|
3074
3076
|
return !0;
|
|
@@ -3090,7 +3092,7 @@ var xi = (
|
|
|
3090
3092
|
break;
|
|
3091
3093
|
}
|
|
3092
3094
|
}, e.prototype.bumpSpace = function() {
|
|
3093
|
-
for (; !this.isEOF() &&
|
|
3095
|
+
for (; !this.isEOF() && Wn(this.char()); )
|
|
3094
3096
|
this.bump();
|
|
3095
3097
|
}, e.prototype.peek = function() {
|
|
3096
3098
|
if (this.isEOF())
|
|
@@ -3100,47 +3102,47 @@ var xi = (
|
|
|
3100
3102
|
}, e;
|
|
3101
3103
|
}()
|
|
3102
3104
|
);
|
|
3103
|
-
function
|
|
3105
|
+
function Ut(e) {
|
|
3104
3106
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3105
3107
|
}
|
|
3106
|
-
function Ei(e) {
|
|
3107
|
-
return Dt(e) || e === 47;
|
|
3108
|
-
}
|
|
3109
3108
|
function _i(e) {
|
|
3109
|
+
return Ut(e) || e === 47;
|
|
3110
|
+
}
|
|
3111
|
+
function wi(e) {
|
|
3110
3112
|
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;
|
|
3111
3113
|
}
|
|
3112
|
-
function
|
|
3114
|
+
function Wn(e) {
|
|
3113
3115
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3114
3116
|
}
|
|
3115
|
-
function
|
|
3117
|
+
function Ti(e) {
|
|
3116
3118
|
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;
|
|
3117
3119
|
}
|
|
3118
|
-
function
|
|
3120
|
+
function Ft(e) {
|
|
3119
3121
|
e.forEach(function(t) {
|
|
3120
|
-
if (delete t.location,
|
|
3122
|
+
if (delete t.location, Dn(t) || Un(t))
|
|
3121
3123
|
for (var n in t.options)
|
|
3122
|
-
delete t.options[n].location,
|
|
3124
|
+
delete t.options[n].location, Ft(t.options[n].value);
|
|
3123
3125
|
else
|
|
3124
|
-
|
|
3126
|
+
Ln(t) && Gn(t.style) || (Mn(t) || Rn(t)) && Lt(t.style) ? delete t.style.location : Fn(t) && Ft(t.children);
|
|
3125
3127
|
});
|
|
3126
3128
|
}
|
|
3127
|
-
function
|
|
3129
|
+
function Hi(e, t) {
|
|
3128
3130
|
t === void 0 && (t = {}), t = B({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3129
|
-
var n = new
|
|
3131
|
+
var n = new Ei(e, t).parse();
|
|
3130
3132
|
if (n.err) {
|
|
3131
|
-
var r = SyntaxError(
|
|
3133
|
+
var r = SyntaxError(w[n.err.kind]);
|
|
3132
3134
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3133
3135
|
}
|
|
3134
|
-
return t != null && t.captureLocation ||
|
|
3136
|
+
return t != null && t.captureLocation || Ft(n.val), n.val;
|
|
3135
3137
|
}
|
|
3136
|
-
var
|
|
3138
|
+
var ke;
|
|
3137
3139
|
(function(e) {
|
|
3138
3140
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3139
|
-
})(
|
|
3140
|
-
var
|
|
3141
|
+
})(ke || (ke = {}));
|
|
3142
|
+
var vt = (
|
|
3141
3143
|
/** @class */
|
|
3142
3144
|
function(e) {
|
|
3143
|
-
|
|
3145
|
+
yt(t, e);
|
|
3144
3146
|
function t(n, r, i) {
|
|
3145
3147
|
var a = e.call(this, n) || this;
|
|
3146
3148
|
return a.code = r, a.originalMessage = i, a;
|
|
@@ -3149,155 +3151,155 @@ var yt = (
|
|
|
3149
3151
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3150
3152
|
}, t;
|
|
3151
3153
|
}(Error)
|
|
3152
|
-
),
|
|
3154
|
+
), hn = (
|
|
3153
3155
|
/** @class */
|
|
3154
3156
|
function(e) {
|
|
3155
|
-
|
|
3157
|
+
yt(t, e);
|
|
3156
3158
|
function t(n, r, i, a) {
|
|
3157
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3159
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ke.INVALID_VALUE, a) || this;
|
|
3158
3160
|
}
|
|
3159
3161
|
return t;
|
|
3160
|
-
}(
|
|
3161
|
-
),
|
|
3162
|
+
}(vt)
|
|
3163
|
+
), Ai = (
|
|
3162
3164
|
/** @class */
|
|
3163
3165
|
function(e) {
|
|
3164
|
-
|
|
3166
|
+
yt(t, e);
|
|
3165
3167
|
function t(n, r, i) {
|
|
3166
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3168
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), ke.INVALID_VALUE, i) || this;
|
|
3167
3169
|
}
|
|
3168
3170
|
return t;
|
|
3169
|
-
}(
|
|
3170
|
-
),
|
|
3171
|
+
}(vt)
|
|
3172
|
+
), Bi = (
|
|
3171
3173
|
/** @class */
|
|
3172
3174
|
function(e) {
|
|
3173
|
-
|
|
3175
|
+
yt(t, e);
|
|
3174
3176
|
function t(n, r) {
|
|
3175
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3177
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), ke.MISSING_VALUE, r) || this;
|
|
3176
3178
|
}
|
|
3177
3179
|
return t;
|
|
3178
|
-
}(
|
|
3179
|
-
),
|
|
3180
|
+
}(vt)
|
|
3181
|
+
), V;
|
|
3180
3182
|
(function(e) {
|
|
3181
3183
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3182
|
-
})(
|
|
3183
|
-
function
|
|
3184
|
+
})(V || (V = {}));
|
|
3185
|
+
function Si(e) {
|
|
3184
3186
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3185
3187
|
var r = t[t.length - 1];
|
|
3186
|
-
return !r || r.type !==
|
|
3188
|
+
return !r || r.type !== V.literal || n.type !== V.literal ? t.push(n) : r.value += n.value, t;
|
|
3187
3189
|
}, []);
|
|
3188
3190
|
}
|
|
3189
|
-
function
|
|
3191
|
+
function Ci(e) {
|
|
3190
3192
|
return typeof e == "function";
|
|
3191
3193
|
}
|
|
3192
|
-
function
|
|
3193
|
-
if (e.length === 1 &&
|
|
3194
|
+
function ht(e, t, n, r, i, a, o) {
|
|
3195
|
+
if (e.length === 1 && rn(e[0]))
|
|
3194
3196
|
return [
|
|
3195
3197
|
{
|
|
3196
|
-
type:
|
|
3198
|
+
type: V.literal,
|
|
3197
3199
|
value: e[0].value
|
|
3198
3200
|
}
|
|
3199
3201
|
];
|
|
3200
3202
|
for (var s = [], c = 0, l = e; c < l.length; c++) {
|
|
3201
3203
|
var u = l[c];
|
|
3202
|
-
if (
|
|
3204
|
+
if (rn(u)) {
|
|
3203
3205
|
s.push({
|
|
3204
|
-
type:
|
|
3206
|
+
type: V.literal,
|
|
3205
3207
|
value: u.value
|
|
3206
3208
|
});
|
|
3207
3209
|
continue;
|
|
3208
3210
|
}
|
|
3209
|
-
if (
|
|
3211
|
+
if (Qr(u)) {
|
|
3210
3212
|
typeof a == "number" && s.push({
|
|
3211
|
-
type:
|
|
3213
|
+
type: V.literal,
|
|
3212
3214
|
value: n.getNumberFormat(t).format(a)
|
|
3213
3215
|
});
|
|
3214
3216
|
continue;
|
|
3215
3217
|
}
|
|
3216
|
-
var
|
|
3217
|
-
if (!(i &&
|
|
3218
|
-
throw new
|
|
3219
|
-
var d = i[
|
|
3220
|
-
if (
|
|
3218
|
+
var f = u.value;
|
|
3219
|
+
if (!(i && f in i))
|
|
3220
|
+
throw new Bi(f, o);
|
|
3221
|
+
var d = i[f];
|
|
3222
|
+
if (Jr(u)) {
|
|
3221
3223
|
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), s.push({
|
|
3222
|
-
type: typeof d == "string" ?
|
|
3224
|
+
type: typeof d == "string" ? V.literal : V.object,
|
|
3223
3225
|
value: d
|
|
3224
3226
|
});
|
|
3225
3227
|
continue;
|
|
3226
3228
|
}
|
|
3227
|
-
if (
|
|
3228
|
-
var
|
|
3229
|
+
if (Mn(u)) {
|
|
3230
|
+
var y = typeof u.style == "string" ? r.date[u.style] : Lt(u.style) ? u.style.parsedOptions : void 0;
|
|
3229
3231
|
s.push({
|
|
3230
|
-
type:
|
|
3231
|
-
value: n.getDateTimeFormat(t,
|
|
3232
|
+
type: V.literal,
|
|
3233
|
+
value: n.getDateTimeFormat(t, y).format(d)
|
|
3232
3234
|
});
|
|
3233
3235
|
continue;
|
|
3234
3236
|
}
|
|
3235
|
-
if (
|
|
3236
|
-
var
|
|
3237
|
+
if (Rn(u)) {
|
|
3238
|
+
var y = typeof u.style == "string" ? r.time[u.style] : Lt(u.style) ? u.style.parsedOptions : r.time.medium;
|
|
3237
3239
|
s.push({
|
|
3238
|
-
type:
|
|
3239
|
-
value: n.getDateTimeFormat(t,
|
|
3240
|
+
type: V.literal,
|
|
3241
|
+
value: n.getDateTimeFormat(t, y).format(d)
|
|
3240
3242
|
});
|
|
3241
3243
|
continue;
|
|
3242
3244
|
}
|
|
3243
|
-
if (
|
|
3244
|
-
var
|
|
3245
|
-
|
|
3246
|
-
type:
|
|
3247
|
-
value: n.getNumberFormat(t,
|
|
3245
|
+
if (Ln(u)) {
|
|
3246
|
+
var y = typeof u.style == "string" ? r.number[u.style] : Gn(u.style) ? u.style.parsedOptions : void 0;
|
|
3247
|
+
y && y.scale && (d = d * (y.scale || 1)), s.push({
|
|
3248
|
+
type: V.literal,
|
|
3249
|
+
value: n.getNumberFormat(t, y).format(d)
|
|
3248
3250
|
});
|
|
3249
3251
|
continue;
|
|
3250
3252
|
}
|
|
3251
|
-
if (
|
|
3252
|
-
var
|
|
3253
|
-
if (!
|
|
3254
|
-
throw new
|
|
3255
|
-
var N =
|
|
3253
|
+
if (Fn(u)) {
|
|
3254
|
+
var x = u.children, I = u.value, U = i[I];
|
|
3255
|
+
if (!Ci(U))
|
|
3256
|
+
throw new Ai(I, "function", o);
|
|
3257
|
+
var N = ht(x, t, n, r, i, a), R = U(N.map(function(O) {
|
|
3256
3258
|
return O.value;
|
|
3257
3259
|
}));
|
|
3258
|
-
Array.isArray(
|
|
3260
|
+
Array.isArray(R) || (R = [R]), s.push.apply(s, R.map(function(O) {
|
|
3259
3261
|
return {
|
|
3260
|
-
type: typeof O == "string" ?
|
|
3262
|
+
type: typeof O == "string" ? V.literal : V.object,
|
|
3261
3263
|
value: O
|
|
3262
3264
|
};
|
|
3263
3265
|
}));
|
|
3264
3266
|
}
|
|
3265
|
-
if (
|
|
3266
|
-
var
|
|
3267
|
-
if (!
|
|
3268
|
-
throw new
|
|
3269
|
-
s.push.apply(s,
|
|
3267
|
+
if (Dn(u)) {
|
|
3268
|
+
var D = u.options[d] || u.options.other;
|
|
3269
|
+
if (!D)
|
|
3270
|
+
throw new hn(u.value, d, Object.keys(u.options), o);
|
|
3271
|
+
s.push.apply(s, ht(D.value, t, n, r, i));
|
|
3270
3272
|
continue;
|
|
3271
3273
|
}
|
|
3272
|
-
if (
|
|
3273
|
-
var
|
|
3274
|
-
if (!
|
|
3274
|
+
if (Un(u)) {
|
|
3275
|
+
var D = u.options["=".concat(d)];
|
|
3276
|
+
if (!D) {
|
|
3275
3277
|
if (!Intl.PluralRules)
|
|
3276
|
-
throw new
|
|
3278
|
+
throw new vt(`Intl.PluralRules is not available in this environment.
|
|
3277
3279
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3278
|
-
`,
|
|
3280
|
+
`, ke.MISSING_INTL_API, o);
|
|
3279
3281
|
var P = n.getPluralRules(t, { type: u.pluralType }).select(d - (u.offset || 0));
|
|
3280
|
-
|
|
3282
|
+
D = u.options[P] || u.options.other;
|
|
3281
3283
|
}
|
|
3282
|
-
if (!
|
|
3283
|
-
throw new
|
|
3284
|
-
s.push.apply(s,
|
|
3284
|
+
if (!D)
|
|
3285
|
+
throw new hn(u.value, d, Object.keys(u.options), o);
|
|
3286
|
+
s.push.apply(s, ht(D.value, t, n, r, i, d - (u.offset || 0)));
|
|
3285
3287
|
continue;
|
|
3286
3288
|
}
|
|
3287
3289
|
}
|
|
3288
|
-
return
|
|
3290
|
+
return Si(s);
|
|
3289
3291
|
}
|
|
3290
|
-
function
|
|
3292
|
+
function Pi(e, t) {
|
|
3291
3293
|
return t ? B(B(B({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3292
3294
|
return n[r] = B(B({}, e[r]), t[r] || {}), n;
|
|
3293
3295
|
}, {})) : e;
|
|
3294
3296
|
}
|
|
3295
|
-
function
|
|
3297
|
+
function Ii(e, t) {
|
|
3296
3298
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3297
|
-
return n[r] =
|
|
3299
|
+
return n[r] = Pi(e[r], t[r]), n;
|
|
3298
3300
|
}, B({}, e)) : e;
|
|
3299
3301
|
}
|
|
3300
|
-
function
|
|
3302
|
+
function Pt(e) {
|
|
3301
3303
|
return {
|
|
3302
3304
|
create: function() {
|
|
3303
3305
|
return {
|
|
@@ -3311,39 +3313,39 @@ function Ct(e) {
|
|
|
3311
3313
|
}
|
|
3312
3314
|
};
|
|
3313
3315
|
}
|
|
3314
|
-
function
|
|
3316
|
+
function Ni(e) {
|
|
3315
3317
|
return e === void 0 && (e = {
|
|
3316
3318
|
number: {},
|
|
3317
3319
|
dateTime: {},
|
|
3318
3320
|
pluralRules: {}
|
|
3319
3321
|
}), {
|
|
3320
|
-
getNumberFormat:
|
|
3322
|
+
getNumberFormat: Bt(function() {
|
|
3321
3323
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3322
3324
|
n[r] = arguments[r];
|
|
3323
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3325
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, At([void 0], n, !1)))();
|
|
3324
3326
|
}, {
|
|
3325
|
-
cache:
|
|
3326
|
-
strategy:
|
|
3327
|
+
cache: Pt(e.number),
|
|
3328
|
+
strategy: St.variadic
|
|
3327
3329
|
}),
|
|
3328
|
-
getDateTimeFormat:
|
|
3330
|
+
getDateTimeFormat: Bt(function() {
|
|
3329
3331
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3330
3332
|
n[r] = arguments[r];
|
|
3331
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3333
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, At([void 0], n, !1)))();
|
|
3332
3334
|
}, {
|
|
3333
|
-
cache:
|
|
3334
|
-
strategy:
|
|
3335
|
+
cache: Pt(e.dateTime),
|
|
3336
|
+
strategy: St.variadic
|
|
3335
3337
|
}),
|
|
3336
|
-
getPluralRules:
|
|
3338
|
+
getPluralRules: Bt(function() {
|
|
3337
3339
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3338
3340
|
n[r] = arguments[r];
|
|
3339
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3341
|
+
return new ((t = Intl.PluralRules).bind.apply(t, At([void 0], n, !1)))();
|
|
3340
3342
|
}, {
|
|
3341
|
-
cache:
|
|
3342
|
-
strategy:
|
|
3343
|
+
cache: Pt(e.pluralRules),
|
|
3344
|
+
strategy: St.variadic
|
|
3343
3345
|
})
|
|
3344
3346
|
};
|
|
3345
3347
|
}
|
|
3346
|
-
var
|
|
3348
|
+
var Oi = (
|
|
3347
3349
|
/** @class */
|
|
3348
3350
|
function() {
|
|
3349
3351
|
function e(t, n, r, i) {
|
|
@@ -3357,12 +3359,12 @@ var Ni = (
|
|
|
3357
3359
|
var l = a.formatToParts(c);
|
|
3358
3360
|
if (l.length === 1)
|
|
3359
3361
|
return l[0].value;
|
|
3360
|
-
var u = l.reduce(function(
|
|
3361
|
-
return !
|
|
3362
|
+
var u = l.reduce(function(f, d) {
|
|
3363
|
+
return !f.length || d.type !== V.literal || typeof f[f.length - 1] != "string" ? f.push(d.value) : f[f.length - 1] += d.value, f;
|
|
3362
3364
|
}, []);
|
|
3363
3365
|
return u.length <= 1 ? u[0] || "" : u;
|
|
3364
3366
|
}, this.formatToParts = function(c) {
|
|
3365
|
-
return
|
|
3367
|
+
return ht(a.ast, a.locales, a.formatters, a.formats, c, void 0, a.message);
|
|
3366
3368
|
}, this.resolvedOptions = function() {
|
|
3367
3369
|
var c;
|
|
3368
3370
|
return {
|
|
@@ -3375,13 +3377,13 @@ var Ni = (
|
|
|
3375
3377
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3376
3378
|
var o = i || {};
|
|
3377
3379
|
o.formatters;
|
|
3378
|
-
var s =
|
|
3380
|
+
var s = jr(o, ["formatters"]);
|
|
3379
3381
|
this.ast = e.__parse(t, B(B({}, s), { locale: this.resolvedLocale }));
|
|
3380
3382
|
} else
|
|
3381
3383
|
this.ast = t;
|
|
3382
3384
|
if (!Array.isArray(this.ast))
|
|
3383
3385
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3384
|
-
this.formats =
|
|
3386
|
+
this.formats = Ii(e.formats, r), this.formatters = i && i.formatters || Ni(this.formatterCache);
|
|
3385
3387
|
}
|
|
3386
3388
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3387
3389
|
get: function() {
|
|
@@ -3394,7 +3396,7 @@ var Ni = (
|
|
|
3394
3396
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3395
3397
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3396
3398
|
}
|
|
3397
|
-
}, e.__parse =
|
|
3399
|
+
}, e.__parse = Hi, e.formats = {
|
|
3398
3400
|
number: {
|
|
3399
3401
|
integer: {
|
|
3400
3402
|
maximumFractionDigits: 0
|
|
@@ -3455,7 +3457,7 @@ var Ni = (
|
|
|
3455
3457
|
}, e;
|
|
3456
3458
|
}()
|
|
3457
3459
|
);
|
|
3458
|
-
function
|
|
3460
|
+
function Li(e, t) {
|
|
3459
3461
|
if (t == null)
|
|
3460
3462
|
return;
|
|
3461
3463
|
if (t in e)
|
|
@@ -3476,92 +3478,92 @@ function Oi(e, t) {
|
|
|
3476
3478
|
r = void 0;
|
|
3477
3479
|
return r;
|
|
3478
3480
|
}
|
|
3479
|
-
const Ee = {},
|
|
3481
|
+
const Ee = {}, Mi = (e, t, n) => n && (t in Ee || (Ee[t] = {}), e in Ee[t] || (Ee[t][e] = n), n), Zn = (e, t) => {
|
|
3480
3482
|
if (t == null)
|
|
3481
3483
|
return;
|
|
3482
3484
|
if (t in Ee && e in Ee[t])
|
|
3483
3485
|
return Ee[t][e];
|
|
3484
|
-
const n =
|
|
3486
|
+
const n = xt(t);
|
|
3485
3487
|
for (let r = 0; r < n.length; r++) {
|
|
3486
|
-
const i = n[r], a =
|
|
3488
|
+
const i = n[r], a = Di(i, e);
|
|
3487
3489
|
if (a)
|
|
3488
|
-
return
|
|
3490
|
+
return Mi(e, t, a);
|
|
3489
3491
|
}
|
|
3490
3492
|
};
|
|
3491
|
-
let
|
|
3492
|
-
const
|
|
3493
|
-
function
|
|
3494
|
-
return
|
|
3493
|
+
let Xt;
|
|
3494
|
+
const ze = bt({});
|
|
3495
|
+
function Ri(e) {
|
|
3496
|
+
return Xt[e] || null;
|
|
3495
3497
|
}
|
|
3496
|
-
function
|
|
3497
|
-
return e in
|
|
3498
|
+
function qn(e) {
|
|
3499
|
+
return e in Xt;
|
|
3498
3500
|
}
|
|
3499
|
-
function
|
|
3500
|
-
if (!
|
|
3501
|
+
function Di(e, t) {
|
|
3502
|
+
if (!qn(e))
|
|
3501
3503
|
return null;
|
|
3502
|
-
const n =
|
|
3503
|
-
return
|
|
3504
|
+
const n = Ri(e);
|
|
3505
|
+
return Li(n, t);
|
|
3504
3506
|
}
|
|
3505
|
-
function
|
|
3507
|
+
function Ui(e) {
|
|
3506
3508
|
if (e == null)
|
|
3507
3509
|
return;
|
|
3508
|
-
const t =
|
|
3510
|
+
const t = xt(e);
|
|
3509
3511
|
for (let n = 0; n < t.length; n++) {
|
|
3510
3512
|
const r = t[n];
|
|
3511
|
-
if (
|
|
3513
|
+
if (qn(r))
|
|
3512
3514
|
return r;
|
|
3513
3515
|
}
|
|
3514
3516
|
}
|
|
3515
|
-
function
|
|
3516
|
-
delete Ee[e],
|
|
3517
|
+
function Jn(e, ...t) {
|
|
3518
|
+
delete Ee[e], ze.update((n) => (n[e] = kr.all([n[e] || {}, ...t]), n));
|
|
3517
3519
|
}
|
|
3518
|
-
|
|
3519
|
-
[
|
|
3520
|
+
Ve(
|
|
3521
|
+
[ze],
|
|
3520
3522
|
([e]) => Object.keys(e)
|
|
3521
3523
|
);
|
|
3522
|
-
|
|
3523
|
-
const
|
|
3524
|
-
function
|
|
3525
|
-
|
|
3524
|
+
ze.subscribe((e) => Xt = e);
|
|
3525
|
+
const ft = {};
|
|
3526
|
+
function Fi(e, t) {
|
|
3527
|
+
ft[e].delete(t), ft[e].size === 0 && delete ft[e];
|
|
3526
3528
|
}
|
|
3527
|
-
function
|
|
3528
|
-
return
|
|
3529
|
+
function Qn(e) {
|
|
3530
|
+
return ft[e];
|
|
3529
3531
|
}
|
|
3530
|
-
function
|
|
3531
|
-
return
|
|
3532
|
-
const n =
|
|
3532
|
+
function Gi(e) {
|
|
3533
|
+
return xt(e).map((t) => {
|
|
3534
|
+
const n = Qn(t);
|
|
3533
3535
|
return [t, n ? [...n] : []];
|
|
3534
3536
|
}).filter(([, t]) => t.length > 0);
|
|
3535
3537
|
}
|
|
3536
|
-
function
|
|
3537
|
-
return e == null ? !1 :
|
|
3538
|
+
function Gt(e) {
|
|
3539
|
+
return e == null ? !1 : xt(e).some(
|
|
3538
3540
|
(t) => {
|
|
3539
3541
|
var n;
|
|
3540
|
-
return (n =
|
|
3542
|
+
return (n = Qn(t)) == null ? void 0 : n.size;
|
|
3541
3543
|
}
|
|
3542
3544
|
);
|
|
3543
3545
|
}
|
|
3544
|
-
function
|
|
3546
|
+
function $i(e, t) {
|
|
3545
3547
|
return Promise.all(
|
|
3546
|
-
t.map((r) => (
|
|
3547
|
-
).then((r) =>
|
|
3548
|
+
t.map((r) => (Fi(e, r), r().then((i) => i.default || i)))
|
|
3549
|
+
).then((r) => Jn(e, ...r));
|
|
3548
3550
|
}
|
|
3549
3551
|
const Ye = {};
|
|
3550
|
-
function
|
|
3551
|
-
if (!
|
|
3552
|
+
function Yn(e) {
|
|
3553
|
+
if (!Gt(e))
|
|
3552
3554
|
return e in Ye ? Ye[e] : Promise.resolve();
|
|
3553
|
-
const t =
|
|
3555
|
+
const t = Gi(e);
|
|
3554
3556
|
return Ye[e] = Promise.all(
|
|
3555
3557
|
t.map(
|
|
3556
|
-
([n, r]) =>
|
|
3558
|
+
([n, r]) => $i(n, r)
|
|
3557
3559
|
)
|
|
3558
3560
|
).then(() => {
|
|
3559
|
-
if (
|
|
3560
|
-
return
|
|
3561
|
+
if (Gt(e))
|
|
3562
|
+
return Yn(e);
|
|
3561
3563
|
delete Ye[e];
|
|
3562
3564
|
}), Ye[e];
|
|
3563
3565
|
}
|
|
3564
|
-
const
|
|
3566
|
+
const ki = {
|
|
3565
3567
|
number: {
|
|
3566
3568
|
scientific: { notation: "scientific" },
|
|
3567
3569
|
engineering: { notation: "engineering" },
|
|
@@ -3590,183 +3592,183 @@ const $i = {
|
|
|
3590
3592
|
timeZoneName: "short"
|
|
3591
3593
|
}
|
|
3592
3594
|
}
|
|
3593
|
-
},
|
|
3595
|
+
}, ji = {
|
|
3594
3596
|
fallbackLocale: null,
|
|
3595
3597
|
loadingDelay: 200,
|
|
3596
|
-
formats:
|
|
3598
|
+
formats: ki,
|
|
3597
3599
|
warnOnMissingMessages: !0,
|
|
3598
3600
|
handleMissingMessage: void 0,
|
|
3599
3601
|
ignoreTag: !0
|
|
3600
|
-
},
|
|
3601
|
-
function
|
|
3602
|
-
return
|
|
3602
|
+
}, Vi = ji;
|
|
3603
|
+
function je() {
|
|
3604
|
+
return Vi;
|
|
3603
3605
|
}
|
|
3604
|
-
const
|
|
3605
|
-
var
|
|
3606
|
+
const It = bt(!1);
|
|
3607
|
+
var zi = Object.defineProperty, Xi = Object.defineProperties, Wi = Object.getOwnPropertyDescriptors, fn = Object.getOwnPropertySymbols, Zi = Object.prototype.hasOwnProperty, qi = Object.prototype.propertyIsEnumerable, pn = (e, t, n) => t in e ? zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ji = (e, t) => {
|
|
3606
3608
|
for (var n in t || (t = {}))
|
|
3607
|
-
|
|
3608
|
-
if (
|
|
3609
|
-
for (var n of
|
|
3610
|
-
|
|
3609
|
+
Zi.call(t, n) && pn(e, n, t[n]);
|
|
3610
|
+
if (fn)
|
|
3611
|
+
for (var n of fn(t))
|
|
3612
|
+
qi.call(t, n) && pn(e, n, t[n]);
|
|
3611
3613
|
return e;
|
|
3612
|
-
},
|
|
3613
|
-
let
|
|
3614
|
-
const
|
|
3615
|
-
function
|
|
3614
|
+
}, Qi = (e, t) => Xi(e, Wi(t));
|
|
3615
|
+
let $t;
|
|
3616
|
+
const dt = bt(null);
|
|
3617
|
+
function mn(e) {
|
|
3616
3618
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3617
3619
|
}
|
|
3618
|
-
function
|
|
3619
|
-
const n =
|
|
3620
|
-
return t ? [.../* @__PURE__ */ new Set([...n, ...
|
|
3620
|
+
function xt(e, t = je().fallbackLocale) {
|
|
3621
|
+
const n = mn(e);
|
|
3622
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...mn(t)])] : n;
|
|
3621
3623
|
}
|
|
3622
|
-
function
|
|
3623
|
-
return
|
|
3624
|
+
function Se() {
|
|
3625
|
+
return $t != null ? $t : void 0;
|
|
3624
3626
|
}
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
+
dt.subscribe((e) => {
|
|
3628
|
+
$t = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3627
3629
|
});
|
|
3628
|
-
const
|
|
3629
|
-
if (e &&
|
|
3630
|
-
const { loadingDelay: t } =
|
|
3630
|
+
const Yi = (e) => {
|
|
3631
|
+
if (e && Ui(e) && Gt(e)) {
|
|
3632
|
+
const { loadingDelay: t } = je();
|
|
3631
3633
|
let n;
|
|
3632
|
-
return typeof window != "undefined" &&
|
|
3633
|
-
() =>
|
|
3634
|
+
return typeof window != "undefined" && Se() != null && t ? n = window.setTimeout(
|
|
3635
|
+
() => It.set(!0),
|
|
3634
3636
|
t
|
|
3635
|
-
) :
|
|
3636
|
-
|
|
3637
|
+
) : It.set(!0), Yn(e).then(() => {
|
|
3638
|
+
dt.set(e);
|
|
3637
3639
|
}).finally(() => {
|
|
3638
|
-
clearTimeout(n),
|
|
3640
|
+
clearTimeout(n), It.set(!1);
|
|
3639
3641
|
});
|
|
3640
3642
|
}
|
|
3641
|
-
return
|
|
3642
|
-
}, _e = Ji(
|
|
3643
|
-
set:
|
|
3644
|
-
}),
|
|
3643
|
+
return dt.set(e);
|
|
3644
|
+
}, _e = Qi(Ji({}, dt), {
|
|
3645
|
+
set: Yi
|
|
3646
|
+
}), Et = (e) => {
|
|
3645
3647
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3646
3648
|
return (r) => {
|
|
3647
3649
|
const i = JSON.stringify(r);
|
|
3648
3650
|
return i in t ? t[i] : t[i] = e(r);
|
|
3649
3651
|
};
|
|
3650
3652
|
};
|
|
3651
|
-
var
|
|
3653
|
+
var Ki = Object.defineProperty, gt = Object.getOwnPropertySymbols, Kn = Object.prototype.hasOwnProperty, er = Object.prototype.propertyIsEnumerable, dn = (e, t, n) => t in e ? Ki(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Wt = (e, t) => {
|
|
3652
3654
|
for (var n in t || (t = {}))
|
|
3653
|
-
|
|
3654
|
-
if (
|
|
3655
|
-
for (var n of
|
|
3656
|
-
|
|
3655
|
+
Kn.call(t, n) && dn(e, n, t[n]);
|
|
3656
|
+
if (gt)
|
|
3657
|
+
for (var n of gt(t))
|
|
3658
|
+
er.call(t, n) && dn(e, n, t[n]);
|
|
3657
3659
|
return e;
|
|
3658
|
-
},
|
|
3660
|
+
}, Xe = (e, t) => {
|
|
3659
3661
|
var n = {};
|
|
3660
3662
|
for (var r in e)
|
|
3661
|
-
|
|
3662
|
-
if (e != null &&
|
|
3663
|
-
for (var r of
|
|
3664
|
-
t.indexOf(r) < 0 &&
|
|
3663
|
+
Kn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3664
|
+
if (e != null && gt)
|
|
3665
|
+
for (var r of gt(e))
|
|
3666
|
+
t.indexOf(r) < 0 && er.call(e, r) && (n[r] = e[r]);
|
|
3665
3667
|
return n;
|
|
3666
3668
|
};
|
|
3667
3669
|
const nt = (e, t) => {
|
|
3668
|
-
const { formats: n } =
|
|
3670
|
+
const { formats: n } = je();
|
|
3669
3671
|
if (e in n && t in n[e])
|
|
3670
3672
|
return n[e][t];
|
|
3671
3673
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3672
|
-
},
|
|
3674
|
+
}, ea = Et(
|
|
3673
3675
|
(e) => {
|
|
3674
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3676
|
+
var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
|
|
3675
3677
|
if (n == null)
|
|
3676
3678
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3677
3679
|
return r && (i = nt("number", r)), new Intl.NumberFormat(n, i);
|
|
3678
3680
|
}
|
|
3679
|
-
),
|
|
3681
|
+
), ta = Et(
|
|
3680
3682
|
(e) => {
|
|
3681
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3683
|
+
var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
|
|
3682
3684
|
if (n == null)
|
|
3683
3685
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3684
3686
|
return r ? i = nt("date", r) : Object.keys(i).length === 0 && (i = nt("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3685
3687
|
}
|
|
3686
|
-
),
|
|
3688
|
+
), na = Et(
|
|
3687
3689
|
(e) => {
|
|
3688
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3690
|
+
var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
|
|
3689
3691
|
if (n == null)
|
|
3690
3692
|
throw new Error(
|
|
3691
3693
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3692
3694
|
);
|
|
3693
3695
|
return r ? i = nt("time", r) : Object.keys(i).length === 0 && (i = nt("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3694
3696
|
}
|
|
3695
|
-
),
|
|
3697
|
+
), ra = (e = {}) => {
|
|
3696
3698
|
var t = e, {
|
|
3697
|
-
locale: n =
|
|
3698
|
-
} = t, r =
|
|
3699
|
+
locale: n = Se()
|
|
3700
|
+
} = t, r = Xe(t, [
|
|
3699
3701
|
"locale"
|
|
3700
3702
|
]);
|
|
3701
|
-
return
|
|
3702
|
-
},
|
|
3703
|
+
return ea(Wt({ locale: n }, r));
|
|
3704
|
+
}, ia = (e = {}) => {
|
|
3703
3705
|
var t = e, {
|
|
3704
|
-
locale: n =
|
|
3705
|
-
} = t, r =
|
|
3706
|
+
locale: n = Se()
|
|
3707
|
+
} = t, r = Xe(t, [
|
|
3706
3708
|
"locale"
|
|
3707
3709
|
]);
|
|
3708
|
-
return
|
|
3709
|
-
},
|
|
3710
|
+
return ta(Wt({ locale: n }, r));
|
|
3711
|
+
}, aa = (e = {}) => {
|
|
3710
3712
|
var t = e, {
|
|
3711
|
-
locale: n =
|
|
3712
|
-
} = t, r =
|
|
3713
|
+
locale: n = Se()
|
|
3714
|
+
} = t, r = Xe(t, [
|
|
3713
3715
|
"locale"
|
|
3714
3716
|
]);
|
|
3715
|
-
return
|
|
3716
|
-
},
|
|
3717
|
+
return na(Wt({ locale: n }, r));
|
|
3718
|
+
}, oa = Et(
|
|
3717
3719
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3718
|
-
(e, t =
|
|
3719
|
-
ignoreTag:
|
|
3720
|
+
(e, t = Se()) => new Oi(e, t, je().formats, {
|
|
3721
|
+
ignoreTag: je().ignoreTag
|
|
3720
3722
|
})
|
|
3721
|
-
),
|
|
3723
|
+
), sa = (e, t = {}) => {
|
|
3722
3724
|
var n, r, i, a;
|
|
3723
3725
|
let o = t;
|
|
3724
3726
|
typeof e == "object" && (o = e, e = o.id);
|
|
3725
3727
|
const {
|
|
3726
3728
|
values: s,
|
|
3727
|
-
locale: c =
|
|
3729
|
+
locale: c = Se(),
|
|
3728
3730
|
default: l
|
|
3729
3731
|
} = o;
|
|
3730
3732
|
if (c == null)
|
|
3731
3733
|
throw new Error(
|
|
3732
3734
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3733
3735
|
);
|
|
3734
|
-
let u =
|
|
3736
|
+
let u = Zn(e, c);
|
|
3735
3737
|
if (!u)
|
|
3736
|
-
u = (a = (i = (r = (n =
|
|
3738
|
+
u = (a = (i = (r = (n = je()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: l })) != null ? i : l) != null ? a : e;
|
|
3737
3739
|
else if (typeof u != "string")
|
|
3738
3740
|
return console.warn(
|
|
3739
3741
|
`[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.`
|
|
3740
3742
|
), u;
|
|
3741
3743
|
if (!s)
|
|
3742
3744
|
return u;
|
|
3743
|
-
let
|
|
3745
|
+
let f = u;
|
|
3744
3746
|
try {
|
|
3745
|
-
|
|
3747
|
+
f = oa(u, c).format(s);
|
|
3746
3748
|
} catch (d) {
|
|
3747
3749
|
d instanceof Error && console.warn(
|
|
3748
3750
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3749
3751
|
d.message
|
|
3750
3752
|
);
|
|
3751
3753
|
}
|
|
3752
|
-
return
|
|
3753
|
-
},
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
function
|
|
3754
|
+
return f;
|
|
3755
|
+
}, la = (e, t) => aa(t).format(e), ua = (e, t) => ia(t).format(e), ca = (e, t) => ra(t).format(e), ha = (e, t = Se()) => Zn(e, t), fa = Ve([_e, ze], () => sa);
|
|
3756
|
+
Ve([_e], () => la);
|
|
3757
|
+
Ve([_e], () => ua);
|
|
3758
|
+
Ve([_e], () => ca);
|
|
3759
|
+
Ve([_e, ze], () => ha);
|
|
3760
|
+
function pa({ withLocale: e, translations: t }) {
|
|
3759
3761
|
_e.subscribe((n) => {
|
|
3760
|
-
n == null && (
|
|
3762
|
+
n == null && (ze.set(t), _e.set(e));
|
|
3761
3763
|
});
|
|
3762
3764
|
}
|
|
3763
|
-
function
|
|
3764
|
-
|
|
3765
|
+
function gn(e, t) {
|
|
3766
|
+
Jn(e, t);
|
|
3765
3767
|
}
|
|
3766
|
-
function
|
|
3768
|
+
function ma(e) {
|
|
3767
3769
|
_e.set(e);
|
|
3768
3770
|
}
|
|
3769
|
-
const
|
|
3771
|
+
const bn = {
|
|
3770
3772
|
en: {
|
|
3771
3773
|
vaultExchange: "Vault Exchange",
|
|
3772
3774
|
debitPlaceHolder: "Debit amount",
|
|
@@ -3815,116 +3817,116 @@ const dn = {
|
|
|
3815
3817
|
"gm.payments.internal_server_error": "Cüzdan değişiminde bir hata oluştu"
|
|
3816
3818
|
}
|
|
3817
3819
|
};
|
|
3818
|
-
function
|
|
3819
|
-
|
|
3820
|
+
function da(e) {
|
|
3821
|
+
lr(e, "svelte-1d83vyn", "*{margin:0;padding:0}.player-account-vault{max-width:400px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:auto;font-family:inherit;overflow:hidden;border:1px solid var(--emfe-w-color-primary, #22B04E);border-radius:var(--emw--border-radius-medium, 6px);box-shadow:var(--emfe-w-color-primary, #22B04E) 0px 0px 10px;gap:var(--emw--spacing-medium, 15px)}.player-account-vault .playerVaultContainer{width:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:var(--emw--spacing-small, 10px);color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:var(--emw--border-radius-small, 5px);padding:var(--emw--spacing-medium, 10px);box-sizing:border-box}.player-account-vault .playerVaultContainer .balanceContainer{display:flex;flex-direction:column;justify-content:center;align-items:flex-end;font-size:var(--emw--font-size-medium, 20px);font-weight:var(--emw--font-weight-normal, 400);gap:var(--emw--spacing-small, 10px);font-family:inherit}.player-account-vault .playerVaultContainer .balanceContainer .playerBalance{font-size:var(--emw--font-size-large, 25px)}.player-account-vault .playerVaultContainer .headerContainer{margin-right:auto;margin-bottom:auto}.player-account-vault .playerVaultContainer .headerContainer h1{width:100%;text-align:center;font-family:inherit;font-size:var(--emw--font-size-medium, 20px);font-weight:var(--emw--font-weight-normal, 400)}.player-account-vault .containerExchanges{width:100%;height:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;box-sizing:border-box;position:relative;gap:var(--emw--spacing-small, 10px);background:var(--emfe-w-color-primary, #22B04E);padding:var(--emw--spacing-medium, 20px) var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 25px) var(--emw--spacing-medium, 10px)}.player-account-vault .containerExchanges .containerExchangeFrom,.player-account-vault .containerExchanges .containerExchangeTo{width:inherit;height:inherit;display:flex;flex-direction:column;justify-content:center;align-self:center;gap:var(--emw--spacing-small, 10px)}.player-account-vault .containerExchanges .containerExchangeFrom .exchangeHeader,.player-account-vault .containerExchanges .containerExchangeTo .exchangeHeader{font-size:inherit;font-family:inherit;color:var(--emfe-w-color-white, #fff);font-family:inherit}.player-account-vault .containerExchanges .containerExchangeFrom .flexingContainerRow,.player-account-vault .containerExchanges .containerExchangeTo .flexingContainerRow{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:var(--emw--spacing-small, 10px)}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect{display:flex;flex-direction:column;justify-content:space-evenly;align-items:center;gap:var(--emw--spacing-small, 10px);max-width:200px}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect input,.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect select,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect input,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect select{text-align:center;padding:5px 0px;margin:0;border:2px solid var(--emw--button-border-color, #22B04E);color:var(--emfe-w-color-black, #000000)}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect input,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect input{width:100%}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect select,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect select{width:100%}.player-account-vault .containerExchanges .exchangeDetailsWrapper{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 20px) var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 25px) var(--emw--spacing-medium, 10px)}.player-account-vault .containerExchanges .containerIconExchange{margin:auto;padding-top:20px}.player-account-vault .containerExchanges .containerIconExchange .iconExchange{width:20px;height:20px;transform:rotateZ(-90deg)}.player-account-vault .containerExchanges .containerIconExchange .iconExchange path{fill:var(--emfe-w-color-white, #fff)}.player-account-vault .containerExchanges .containerIconVault{width:15px;height:15px;position:absolute;top:85%;right:5%;padding:var(--emw--spacing-medium, 10px);background:var(--emfe-w-color-primary, #22B04E);border:3px solid var(--emfe-w-color-white, #fff);border-radius:var(--emw--border-radius-medium, 20px);cursor:pointer}.player-account-vault .containerExchanges .containerIconVault .iconToggleVault{transform:rotateZ(0deg);transition:all 0.3s ease-in-out}.player-account-vault .containerExchanges .containerIconVault .iconToggleVault path{fill:var(--emfe-w-color-white, #fff)}.player-account-vault .containerExchanges .containerIconVault.active .iconToggleVault{transform:rotateZ(180deg)}.player-account-vault .vaultDropDown{width:100%;height:0px;margin:0px;display:flex;flex-direction:column;box-sizing:border-box;overflow:auto;scrollbar-width:none;transition:all 0.5s ease-in-out;opacity:0;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-medium, 15px);color:var(--emw--color-white, #fff);font-family:inherit}.player-account-vault .vaultDropDown div{display:inherit;flex-direction:row;justify-content:space-between;padding:var(--emw--spacing-medium, 15px) var(--emw--spacing-large, 30px);background:var(--emfe-w-color-primary, #22B04E);border-radius:var(--emw--border-radius-medium, 6px);box-shadow:var(--emfe-w-color-primary, #52474d) 0px 0px 6px}.player-account-vault .vaultDropDown.active{padding:var(--emw--spacing-large, 20px) var(--emw--spacing-medium, 10px);opacity:1}.player-account-vault .notificationsContainer{width:100%;max-height:0px;padding:0px;box-sizing:border-box;transition:all 0.5s ease-in-out}.player-account-vault .notificationsContainer div{text-align:center;padding:var(--emw--spacing-medium, 15px);border-radius:var(--emw--border-radius-medium, 6px);box-shadow:var(--emfe-w-color-primary, #52474d) 0px 0px 6px;color:var(--emfe-w-color-white, #fff);opacity:0;transform:scale(0);transition:inherit;box-sizing:inherit;font-family:inherit}.player-account-vault .notificationsContainer .error{transform:scale(1);opacity:1;background-color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.player-account-vault .notificationsContainer .success{transform:scale(1);opacity:1;background-color:var(--emfe-w-color-success, var(--emfe-w-color-primary, #22B04E))}.player-account-vault .notificationsContainer .action{transform:scale(1);opacity:1;background-color:var(--emfe-w-color-success, var(--emfe-w-color-primary, #abb022))}.player-account-vault .notificationsContainer.error,.player-account-vault .notificationsContainer.success,.player-account-vault .notificationsContainer.action{max-height:200px;padding:var(--emw--spacing-medium, 10px)}.player-account-vault .actionsContainer{width:100%;height:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;box-sizing:border-box;padding:var(--emw--spacing-medium, 10px)}.player-account-vault .actionsContainer button{width:100px;height:30px;border:none;cursor:pointer;font-family:inherit;font-size:var(--emw--font-size-medium, 15px);border-radius:var(--emw--button-border-radius, 5px);background:var(--emfe-w-color-primary, #22B04E);color:var(--emfe-w-button-typography, var(--emw--button-text-color, #FFFFFF))}.player-account-vault .actionsContainer .disabled{cursor:default;background:var(--emfe-w-color-gray-150, #828282)}@media only screen and (max-width: 300px){.player-account-vault .playerVaultContainer .headerContainer h1{text-align:left;font-size:var(--emw--font-size-medium, 15px)}.player-account-vault .playerVaultContainer .balanceContainer p{text-align:right;font-size:var(--emw--font-size-medium, 15px)}.player-account-vault .playerVaultContainer .balanceContainer .playerBalance{font-size:var(--emw--font-size-medium, 20px)}}");
|
|
3820
3822
|
}
|
|
3821
|
-
function
|
|
3823
|
+
function yn(e, t, n) {
|
|
3822
3824
|
const r = e.slice();
|
|
3823
3825
|
return r[64] = t[n], r[65] = t, r[66] = n, r;
|
|
3824
3826
|
}
|
|
3825
|
-
function
|
|
3827
|
+
function vn(e, t, n) {
|
|
3826
3828
|
const r = e.slice();
|
|
3827
3829
|
return r[67] = t[n], r;
|
|
3828
3830
|
}
|
|
3829
|
-
function
|
|
3831
|
+
function xn(e, t, n) {
|
|
3830
3832
|
const r = e.slice();
|
|
3831
3833
|
return r[67] = t[n], r;
|
|
3832
3834
|
}
|
|
3833
|
-
function
|
|
3835
|
+
function En(e) {
|
|
3834
3836
|
let t, n = (
|
|
3835
3837
|
/*balance*/
|
|
3836
3838
|
e[67].currency + ""
|
|
3837
3839
|
), r, i, a;
|
|
3838
3840
|
return {
|
|
3839
3841
|
c() {
|
|
3840
|
-
t =
|
|
3842
|
+
t = _("option"), r = $(n), i = M(), t.__value = a = /*balance*/
|
|
3841
3843
|
e[67].currency, xe(t, t.__value);
|
|
3842
3844
|
},
|
|
3843
3845
|
m(o, s) {
|
|
3844
|
-
|
|
3846
|
+
J(o, t, s), m(t, r), m(t, i);
|
|
3845
3847
|
},
|
|
3846
3848
|
p(o, s) {
|
|
3847
3849
|
s[0] & /*playerFilteredBalances*/
|
|
3848
3850
|
8192 && n !== (n = /*balance*/
|
|
3849
|
-
o[67].currency + "") &&
|
|
3851
|
+
o[67].currency + "") && X(r, n), s[0] & /*playerFilteredBalances*/
|
|
3850
3852
|
8192 && a !== (a = /*balance*/
|
|
3851
3853
|
o[67].currency) && (t.__value = a, xe(t, t.__value));
|
|
3852
3854
|
},
|
|
3853
3855
|
d(o) {
|
|
3854
|
-
o &&
|
|
3856
|
+
o && W(t);
|
|
3855
3857
|
}
|
|
3856
3858
|
};
|
|
3857
3859
|
}
|
|
3858
|
-
function
|
|
3860
|
+
function _n(e) {
|
|
3859
3861
|
let t, n = (
|
|
3860
3862
|
/*balance*/
|
|
3861
|
-
e[67].amount > 0 &&
|
|
3863
|
+
e[67].amount > 0 && En(e)
|
|
3862
3864
|
);
|
|
3863
3865
|
return {
|
|
3864
3866
|
c() {
|
|
3865
|
-
n && n.c(), t =
|
|
3867
|
+
n && n.c(), t = Cn();
|
|
3866
3868
|
},
|
|
3867
3869
|
m(r, i) {
|
|
3868
|
-
n && n.m(r, i),
|
|
3870
|
+
n && n.m(r, i), J(r, t, i);
|
|
3869
3871
|
},
|
|
3870
3872
|
p(r, i) {
|
|
3871
3873
|
/*balance*/
|
|
3872
|
-
r[67].amount > 0 ? n ? n.p(r, i) : (n =
|
|
3874
|
+
r[67].amount > 0 ? n ? n.p(r, i) : (n = En(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
|
|
3873
3875
|
},
|
|
3874
3876
|
d(r) {
|
|
3875
|
-
r &&
|
|
3877
|
+
r && W(t), n && n.d(r);
|
|
3876
3878
|
}
|
|
3877
3879
|
};
|
|
3878
3880
|
}
|
|
3879
|
-
function
|
|
3881
|
+
function wn(e) {
|
|
3880
3882
|
let t, n = (
|
|
3881
3883
|
/*balance*/
|
|
3882
3884
|
e[67].currency + ""
|
|
3883
3885
|
), r, i, a;
|
|
3884
3886
|
return {
|
|
3885
3887
|
c() {
|
|
3886
|
-
t =
|
|
3888
|
+
t = _("option"), r = $(n), i = M(), t.__value = a = /*balance*/
|
|
3887
3889
|
e[67].currency, xe(t, t.__value);
|
|
3888
3890
|
},
|
|
3889
3891
|
m(o, s) {
|
|
3890
|
-
|
|
3892
|
+
J(o, t, s), m(t, r), m(t, i);
|
|
3891
3893
|
},
|
|
3892
3894
|
p(o, s) {
|
|
3893
3895
|
s[0] & /*playerFilteredBalances*/
|
|
3894
3896
|
8192 && n !== (n = /*balance*/
|
|
3895
|
-
o[67].currency + "") &&
|
|
3897
|
+
o[67].currency + "") && X(r, n), s[0] & /*playerFilteredBalances*/
|
|
3896
3898
|
8192 && a !== (a = /*balance*/
|
|
3897
3899
|
o[67].currency) && (t.__value = a, xe(t, t.__value));
|
|
3898
3900
|
},
|
|
3899
3901
|
d(o) {
|
|
3900
|
-
o &&
|
|
3902
|
+
o && W(t);
|
|
3901
3903
|
}
|
|
3902
3904
|
};
|
|
3903
3905
|
}
|
|
3904
|
-
function
|
|
3906
|
+
function Tn(e) {
|
|
3905
3907
|
let t, n = (
|
|
3906
3908
|
/*selectedCurrencyFrom*/
|
|
3907
3909
|
e[1] !== /*balance*/
|
|
3908
|
-
e[67].currency &&
|
|
3910
|
+
e[67].currency && wn(e)
|
|
3909
3911
|
);
|
|
3910
3912
|
return {
|
|
3911
3913
|
c() {
|
|
3912
|
-
n && n.c(), t =
|
|
3914
|
+
n && n.c(), t = Cn();
|
|
3913
3915
|
},
|
|
3914
3916
|
m(r, i) {
|
|
3915
|
-
n && n.m(r, i),
|
|
3917
|
+
n && n.m(r, i), J(r, t, i);
|
|
3916
3918
|
},
|
|
3917
3919
|
p(r, i) {
|
|
3918
3920
|
/*selectedCurrencyFrom*/
|
|
3919
3921
|
r[1] !== /*balance*/
|
|
3920
|
-
r[67].currency ? n ? n.p(r, i) : (n =
|
|
3922
|
+
r[67].currency ? n ? n.p(r, i) : (n = wn(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
|
|
3921
3923
|
},
|
|
3922
3924
|
d(r) {
|
|
3923
|
-
r &&
|
|
3925
|
+
r && W(t), n && n.d(r);
|
|
3924
3926
|
}
|
|
3925
3927
|
};
|
|
3926
3928
|
}
|
|
3927
|
-
function
|
|
3929
|
+
function Hn(e) {
|
|
3928
3930
|
let t, n, r = (
|
|
3929
3931
|
/*vault*/
|
|
3930
3932
|
e[64].currency + ""
|
|
@@ -3935,7 +3937,7 @@ function wn(e) {
|
|
|
3935
3937
|
/*index*/
|
|
3936
3938
|
e[66]
|
|
3937
3939
|
);
|
|
3938
|
-
const
|
|
3940
|
+
const f = () => (
|
|
3939
3941
|
/*div_binding*/
|
|
3940
3942
|
e[37](t, u)
|
|
3941
3943
|
), d = () => (
|
|
@@ -3944,26 +3946,26 @@ function wn(e) {
|
|
|
3944
3946
|
);
|
|
3945
3947
|
return {
|
|
3946
3948
|
c() {
|
|
3947
|
-
t =
|
|
3949
|
+
t = _("div"), n = _("p"), i = $(r), a = M(), o = _("p"), c = $(s), l = M(), H(t, "class", "vaultItem");
|
|
3948
3950
|
},
|
|
3949
|
-
m(
|
|
3950
|
-
|
|
3951
|
+
m(y, x) {
|
|
3952
|
+
J(y, t, x), m(t, n), m(n, i), m(t, a), m(t, o), m(o, c), m(t, l), f();
|
|
3951
3953
|
},
|
|
3952
|
-
p(
|
|
3953
|
-
e =
|
|
3954
|
+
p(y, x) {
|
|
3955
|
+
e = y, x[0] & /*dropDownVaults*/
|
|
3954
3956
|
16384 && r !== (r = /*vault*/
|
|
3955
|
-
e[64].currency + "") &&
|
|
3957
|
+
e[64].currency + "") && X(i, r), x[0] & /*dropDownVaults*/
|
|
3956
3958
|
16384 && s !== (s = /*vault*/
|
|
3957
|
-
e[64].amount + "") &&
|
|
3959
|
+
e[64].amount + "") && X(c, s), u !== /*index*/
|
|
3958
3960
|
e[66] && (d(), u = /*index*/
|
|
3959
|
-
e[66],
|
|
3961
|
+
e[66], f());
|
|
3960
3962
|
},
|
|
3961
|
-
d(
|
|
3962
|
-
|
|
3963
|
+
d(y) {
|
|
3964
|
+
y && W(t), d();
|
|
3963
3965
|
}
|
|
3964
3966
|
};
|
|
3965
3967
|
}
|
|
3966
|
-
function
|
|
3968
|
+
function ga(e) {
|
|
3967
3969
|
let t, n = (
|
|
3968
3970
|
/*$_*/
|
|
3969
3971
|
e[18]("Exchange") + ""
|
|
@@ -3973,29 +3975,29 @@ function da(e) {
|
|
|
3973
3975
|
), s, c, l;
|
|
3974
3976
|
return {
|
|
3975
3977
|
c() {
|
|
3976
|
-
t =
|
|
3977
|
-
e[6],
|
|
3978
|
+
t = _("button"), r = $(n), i = M(), a = _("button"), s = $(o), t.disabled = /*exchangeDisabled*/
|
|
3979
|
+
e[6], G(
|
|
3978
3980
|
t,
|
|
3979
3981
|
"disabled",
|
|
3980
3982
|
/*exchangeDisabled*/
|
|
3981
3983
|
e[6]
|
|
3982
3984
|
), a.disabled = /*exchangeDisabled*/
|
|
3983
|
-
e[6],
|
|
3985
|
+
e[6], G(
|
|
3984
3986
|
a,
|
|
3985
3987
|
"disabled",
|
|
3986
3988
|
/*exchangeDisabled*/
|
|
3987
3989
|
e[6]
|
|
3988
3990
|
);
|
|
3989
3991
|
},
|
|
3990
|
-
m(u,
|
|
3991
|
-
|
|
3992
|
-
|
|
3992
|
+
m(u, f) {
|
|
3993
|
+
J(u, t, f), m(t, r), J(u, i, f), J(u, a, f), m(a, s), c || (l = [
|
|
3994
|
+
K(
|
|
3993
3995
|
t,
|
|
3994
3996
|
"click",
|
|
3995
3997
|
/*walletExchange*/
|
|
3996
3998
|
e[21]
|
|
3997
3999
|
),
|
|
3998
|
-
|
|
4000
|
+
K(
|
|
3999
4001
|
a,
|
|
4000
4002
|
"click",
|
|
4001
4003
|
/*resetUiToDefault*/
|
|
@@ -4003,23 +4005,23 @@ function da(e) {
|
|
|
4003
4005
|
)
|
|
4004
4006
|
], c = !0);
|
|
4005
4007
|
},
|
|
4006
|
-
p(u,
|
|
4007
|
-
|
|
4008
|
+
p(u, f) {
|
|
4009
|
+
f[0] & /*$_*/
|
|
4008
4010
|
262144 && n !== (n = /*$_*/
|
|
4009
|
-
u[18]("Exchange") + "") &&
|
|
4011
|
+
u[18]("Exchange") + "") && X(r, n), f[0] & /*exchangeDisabled*/
|
|
4010
4012
|
64 && (t.disabled = /*exchangeDisabled*/
|
|
4011
|
-
u[6]),
|
|
4012
|
-
64 &&
|
|
4013
|
+
u[6]), f[0] & /*exchangeDisabled*/
|
|
4014
|
+
64 && G(
|
|
4013
4015
|
t,
|
|
4014
4016
|
"disabled",
|
|
4015
4017
|
/*exchangeDisabled*/
|
|
4016
4018
|
u[6]
|
|
4017
|
-
),
|
|
4019
|
+
), f[0] & /*$_*/
|
|
4018
4020
|
262144 && o !== (o = /*$_*/
|
|
4019
|
-
u[18]("Reset") + "") &&
|
|
4021
|
+
u[18]("Reset") + "") && X(s, o), f[0] & /*exchangeDisabled*/
|
|
4020
4022
|
64 && (a.disabled = /*exchangeDisabled*/
|
|
4021
|
-
u[6]),
|
|
4022
|
-
64 &&
|
|
4023
|
+
u[6]), f[0] & /*exchangeDisabled*/
|
|
4024
|
+
64 && G(
|
|
4023
4025
|
a,
|
|
4024
4026
|
"disabled",
|
|
4025
4027
|
/*exchangeDisabled*/
|
|
@@ -4027,11 +4029,11 @@ function da(e) {
|
|
|
4027
4029
|
);
|
|
4028
4030
|
},
|
|
4029
4031
|
d(u) {
|
|
4030
|
-
u && (
|
|
4032
|
+
u && (W(t), W(i), W(a)), c = !1, we(l);
|
|
4031
4033
|
}
|
|
4032
4034
|
};
|
|
4033
4035
|
}
|
|
4034
|
-
function
|
|
4036
|
+
function ba(e) {
|
|
4035
4037
|
let t, n = (
|
|
4036
4038
|
/*$_*/
|
|
4037
4039
|
e[18]("Accept") + ""
|
|
@@ -4041,17 +4043,17 @@ function ga(e) {
|
|
|
4041
4043
|
), s, c, l;
|
|
4042
4044
|
return {
|
|
4043
4045
|
c() {
|
|
4044
|
-
t =
|
|
4046
|
+
t = _("button"), r = $(n), i = M(), a = _("button"), s = $(o);
|
|
4045
4047
|
},
|
|
4046
|
-
m(u,
|
|
4047
|
-
|
|
4048
|
-
|
|
4048
|
+
m(u, f) {
|
|
4049
|
+
J(u, t, f), m(t, r), J(u, i, f), J(u, a, f), m(a, s), c || (l = [
|
|
4050
|
+
K(
|
|
4049
4051
|
t,
|
|
4050
4052
|
"click",
|
|
4051
4053
|
/*feeAcceptStep*/
|
|
4052
4054
|
e[22]
|
|
4053
4055
|
),
|
|
4054
|
-
|
|
4056
|
+
K(
|
|
4055
4057
|
a,
|
|
4056
4058
|
"click",
|
|
4057
4059
|
/*resetUiToDefault*/
|
|
@@ -4059,360 +4061,360 @@ function ga(e) {
|
|
|
4059
4061
|
)
|
|
4060
4062
|
], c = !0);
|
|
4061
4063
|
},
|
|
4062
|
-
p(u,
|
|
4063
|
-
|
|
4064
|
+
p(u, f) {
|
|
4065
|
+
f[0] & /*$_*/
|
|
4064
4066
|
262144 && n !== (n = /*$_*/
|
|
4065
|
-
u[18]("Accept") + "") &&
|
|
4067
|
+
u[18]("Accept") + "") && X(r, n), f[0] & /*$_*/
|
|
4066
4068
|
262144 && o !== (o = /*$_*/
|
|
4067
|
-
u[18]("Decline") + "") &&
|
|
4069
|
+
u[18]("Decline") + "") && X(s, o);
|
|
4068
4070
|
},
|
|
4069
4071
|
d(u) {
|
|
4070
|
-
u && (
|
|
4072
|
+
u && (W(t), W(i), W(a)), c = !1, we(l);
|
|
4071
4073
|
}
|
|
4072
4074
|
};
|
|
4073
4075
|
}
|
|
4074
|
-
function
|
|
4076
|
+
function ya(e) {
|
|
4075
4077
|
let t, n, r, i, a = (
|
|
4076
4078
|
/*$_*/
|
|
4077
4079
|
e[18]("vaultExchange") + ""
|
|
4078
4080
|
), o, s, c, l, u = (
|
|
4079
4081
|
/*$_*/
|
|
4080
4082
|
e[18]("currentBalance") + ""
|
|
4081
|
-
),
|
|
4083
|
+
), f, d, y, x = (
|
|
4082
4084
|
/*playerBalance*/
|
|
4083
4085
|
e[15].amount + ""
|
|
4084
|
-
), I,
|
|
4086
|
+
), I, U, N = (
|
|
4085
4087
|
/*playerBalance*/
|
|
4086
4088
|
e[15].currency + ""
|
|
4087
|
-
),
|
|
4089
|
+
), R, D, P, O, Z, ee = (
|
|
4088
4090
|
/*$_*/
|
|
4089
4091
|
e[18]("exchangeFrom") + ""
|
|
4090
|
-
),
|
|
4092
|
+
), ae, Te, le, ue, k, q, ce, F, Ce, Q, We, te, he, fe = (
|
|
4091
4093
|
/*$_*/
|
|
4092
4094
|
e[18]("exchangeTo") + ""
|
|
4093
|
-
),
|
|
4095
|
+
), Ze, rt, pe, j, He, Ae, qe, ne, it, me, de, Pe, Ie, at, re, Ne, Je, L, z, Oe, Le = (
|
|
4094
4096
|
/*$_*/
|
|
4095
4097
|
e[18](
|
|
4096
4098
|
/*errorCode*/
|
|
4097
4099
|
e[3]
|
|
4098
4100
|
) + ""
|
|
4099
|
-
),
|
|
4101
|
+
), ot, Be, Qe, st, ge = Re(
|
|
4100
4102
|
/*playerFilteredBalances*/
|
|
4101
4103
|
e[13]
|
|
4102
|
-
),
|
|
4103
|
-
for (let
|
|
4104
|
-
|
|
4105
|
-
let
|
|
4104
|
+
), h = [];
|
|
4105
|
+
for (let p = 0; p < ge.length; p += 1)
|
|
4106
|
+
h[p] = _n(xn(e, ge, p));
|
|
4107
|
+
let b = Re(
|
|
4106
4108
|
/*playerFilteredBalances*/
|
|
4107
4109
|
e[13]
|
|
4108
|
-
),
|
|
4109
|
-
for (let
|
|
4110
|
-
|
|
4111
|
-
let
|
|
4110
|
+
), E = [];
|
|
4111
|
+
for (let p = 0; p < b.length; p += 1)
|
|
4112
|
+
E[p] = Tn(vn(e, b, p));
|
|
4113
|
+
let S = Re(
|
|
4112
4114
|
/*dropDownVaults*/
|
|
4113
4115
|
e[14]
|
|
4114
|
-
),
|
|
4115
|
-
for (let
|
|
4116
|
-
|
|
4117
|
-
function
|
|
4116
|
+
), v = [];
|
|
4117
|
+
for (let p = 0; p < S.length; p += 1)
|
|
4118
|
+
v[p] = Hn(yn(e, S, p));
|
|
4119
|
+
function be(p, A) {
|
|
4118
4120
|
return (
|
|
4119
4121
|
/*hasTransactionFee*/
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
+
p[12] && !/*isFeeAccepted*/
|
|
4123
|
+
p[11] ? ba : ga
|
|
4122
4124
|
);
|
|
4123
4125
|
}
|
|
4124
|
-
let
|
|
4126
|
+
let ye = be(e), oe = ye(e);
|
|
4125
4127
|
return {
|
|
4126
4128
|
c() {
|
|
4127
|
-
t =
|
|
4128
|
-
for (let
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
for (let
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
for (let
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
e[18]("debitPlaceHolder")), H(
|
|
4129
|
+
t = _("div"), n = _("div"), r = _("div"), i = _("h1"), o = $(a), s = M(), c = _("div"), l = _("p"), f = $(u), d = M(), y = _("p"), I = $(x), U = M(), R = $(N), D = M(), P = _("div"), O = _("div"), Z = _("p"), ae = $(ee), Te = M(), le = _("div"), ue = _("div"), k = _("input"), ce = M(), F = _("select");
|
|
4130
|
+
for (let p = 0; p < h.length; p += 1)
|
|
4131
|
+
h[p].c();
|
|
4132
|
+
Ce = M(), Q = _("div"), Q.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="6 5 20 20" class="iconExchange"><path d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z"></path></svg>', We = M(), te = _("div"), he = _("p"), Ze = $(fe), rt = M(), pe = _("div"), j = _("input"), qe = M(), ne = _("select");
|
|
4133
|
+
for (let p = 0; p < E.length; p += 1)
|
|
4134
|
+
E[p].c();
|
|
4135
|
+
it = M(), me = _("div"), de = Yt("svg"), Pe = Yt("path"), at = M(), re = _("div");
|
|
4136
|
+
for (let p = 0; p < v.length; p += 1)
|
|
4137
|
+
v[p].c();
|
|
4138
|
+
Je = M(), L = _("div"), z = _("div"), Oe = _("p"), ot = M(), Be = _("div"), oe.c(), H(r, "class", "headerContainer"), H(y, "class", "playerBalance"), H(c, "class", "balanceContainer"), H(n, "class", "playerVaultContainer"), H(Z, "class", "exchangeHeader"), H(k, "placeholder", q = /*$_*/
|
|
4139
|
+
e[18]("debitPlaceHolder")), H(k, "type", "number"), H(k, "min", "0"), /*selectedCurrencyFrom*/
|
|
4138
4140
|
e[1] === void 0 && et(() => (
|
|
4139
4141
|
/*select0_change_handler*/
|
|
4140
|
-
e[33].call(
|
|
4141
|
-
)), H(
|
|
4142
|
-
e[4] === 0, H(
|
|
4143
|
-
e[18]("creditPlaceHolder")), H(
|
|
4142
|
+
e[33].call(F)
|
|
4143
|
+
)), H(ue, "class", "containerInputSelect"), H(le, "class", "flexingContainerRow"), H(O, "class", "containerExchangeFrom"), H(Q, "class", "containerIconExchange"), H(he, "class", "exchangeHeader"), j.disabled = He = /*inputExchangeFrom*/
|
|
4144
|
+
e[4] === 0, H(j, "placeholder", Ae = /*$_*/
|
|
4145
|
+
e[18]("creditPlaceHolder")), H(j, "type", "number"), H(j, "min", "0"), j.readOnly = !0, /*selectedCurrencyTo*/
|
|
4144
4146
|
e[2] === void 0 && et(() => (
|
|
4145
4147
|
/*select1_change_handler*/
|
|
4146
|
-
e[35].call(
|
|
4147
|
-
)), H(
|
|
4148
|
+
e[35].call(ne)
|
|
4149
|
+
)), H(pe, "class", "containerInputSelect"), H(te, "class", "containerExchangeTo"), H(Pe, "d", "M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z"), H(de, "xmlns", "http://www.w3.org/2000/svg"), H(de, "viewBox", "6 5 20 20"), H(de, "class", "iconToggleVault"), H(me, "class", Ie = "containerIconVault " + /*isVaultDropDownToggled*/
|
|
4148
4150
|
(e[7] && /*dropDownVaults*/
|
|
4149
|
-
e[14].length > 0 ? "active" : "")), H(P, "class", "containerExchanges"), H(
|
|
4151
|
+
e[14].length > 0 ? "active" : "")), H(P, "class", "containerExchanges"), H(re, "class", Ne = "vaultDropDown " + /*isVaultDropDownToggled*/
|
|
4150
4152
|
(e[7] && /*dropDownVaults*/
|
|
4151
|
-
e[14].length > 0 ? "active" : "")),
|
|
4152
|
-
|
|
4153
|
+
e[14].length > 0 ? "active" : "")), Kt(
|
|
4154
|
+
re,
|
|
4153
4155
|
"height",
|
|
4154
4156
|
/*calculateHeight*/
|
|
4155
4157
|
e[0]
|
|
4156
|
-
),
|
|
4157
|
-
|
|
4158
|
+
), G(
|
|
4159
|
+
z,
|
|
4158
4160
|
"error",
|
|
4159
4161
|
/*isError*/
|
|
4160
4162
|
e[8]
|
|
4161
|
-
),
|
|
4162
|
-
|
|
4163
|
+
), G(
|
|
4164
|
+
z,
|
|
4163
4165
|
"success",
|
|
4164
4166
|
/*isSuccess*/
|
|
4165
4167
|
e[9]
|
|
4166
|
-
),
|
|
4167
|
-
|
|
4168
|
+
), G(
|
|
4169
|
+
z,
|
|
4168
4170
|
"action",
|
|
4169
4171
|
/*isAction*/
|
|
4170
4172
|
e[10]
|
|
4171
|
-
), H(
|
|
4172
|
-
|
|
4173
|
+
), H(L, "class", "notificationsContainer"), G(
|
|
4174
|
+
L,
|
|
4173
4175
|
"error",
|
|
4174
4176
|
/*isError*/
|
|
4175
4177
|
e[8]
|
|
4176
|
-
),
|
|
4177
|
-
|
|
4178
|
+
), G(
|
|
4179
|
+
L,
|
|
4178
4180
|
"success",
|
|
4179
4181
|
/*isSuccess*/
|
|
4180
4182
|
e[9]
|
|
4181
|
-
),
|
|
4182
|
-
|
|
4183
|
+
), G(
|
|
4184
|
+
L,
|
|
4183
4185
|
"action",
|
|
4184
4186
|
/*isAction*/
|
|
4185
4187
|
e[10]
|
|
4186
|
-
), H(
|
|
4188
|
+
), H(Be, "class", "actionsContainer"), H(t, "class", "player-account-vault");
|
|
4187
4189
|
},
|
|
4188
|
-
m(
|
|
4189
|
-
|
|
4190
|
-
|
|
4190
|
+
m(p, A) {
|
|
4191
|
+
J(p, t, A), m(t, n), m(n, r), m(r, i), m(i, o), m(n, s), m(n, c), m(c, l), m(l, f), m(c, d), m(c, y), m(y, I), m(y, U), m(y, R), m(t, D), m(t, P), m(P, O), m(O, Z), m(Z, ae), m(O, Te), m(O, le), m(le, ue), m(ue, k), xe(
|
|
4192
|
+
k,
|
|
4191
4193
|
/*inputExchangeFrom*/
|
|
4192
4194
|
e[4]
|
|
4193
|
-
), m(
|
|
4194
|
-
for (let g = 0; g <
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4195
|
+
), m(ue, ce), m(ue, F);
|
|
4196
|
+
for (let g = 0; g < h.length; g += 1)
|
|
4197
|
+
h[g] && h[g].m(F, null);
|
|
4198
|
+
lt(
|
|
4199
|
+
F,
|
|
4198
4200
|
/*selectedCurrencyFrom*/
|
|
4199
4201
|
e[1],
|
|
4200
4202
|
!0
|
|
4201
|
-
), m(P,
|
|
4202
|
-
|
|
4203
|
+
), m(P, Ce), m(P, Q), m(P, We), m(P, te), m(te, he), m(he, Ze), m(te, rt), m(te, pe), m(pe, j), xe(
|
|
4204
|
+
j,
|
|
4203
4205
|
/*inputExchangeTo*/
|
|
4204
4206
|
e[5]
|
|
4205
|
-
), m(
|
|
4206
|
-
for (let g = 0; g <
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4207
|
+
), m(pe, qe), m(pe, ne);
|
|
4208
|
+
for (let g = 0; g < E.length; g += 1)
|
|
4209
|
+
E[g] && E[g].m(ne, null);
|
|
4210
|
+
lt(
|
|
4211
|
+
ne,
|
|
4210
4212
|
/*selectedCurrencyTo*/
|
|
4211
4213
|
e[2],
|
|
4212
4214
|
!0
|
|
4213
|
-
), m(P,
|
|
4214
|
-
for (let g = 0; g <
|
|
4215
|
-
|
|
4216
|
-
e[38](
|
|
4217
|
-
|
|
4218
|
-
|
|
4215
|
+
), m(P, it), m(P, me), m(me, de), m(de, Pe), m(t, at), m(t, re);
|
|
4216
|
+
for (let g = 0; g < v.length; g += 1)
|
|
4217
|
+
v[g] && v[g].m(re, null);
|
|
4218
|
+
e[38](re), m(t, Je), m(t, L), m(L, z), m(z, Oe), Oe.innerHTML = Le, m(t, ot), m(t, Be), oe.m(Be, null), Qe || (st = [
|
|
4219
|
+
K(
|
|
4220
|
+
k,
|
|
4219
4221
|
"input",
|
|
4220
4222
|
/*input0_input_handler*/
|
|
4221
4223
|
e[32]
|
|
4222
4224
|
),
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
+
K(
|
|
4226
|
+
k,
|
|
4225
4227
|
"input",
|
|
4226
4228
|
/*debouncedExchangeInterogation*/
|
|
4227
4229
|
e[20]
|
|
4228
4230
|
),
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
+
K(
|
|
4232
|
+
F,
|
|
4231
4233
|
"change",
|
|
4232
4234
|
/*select0_change_handler*/
|
|
4233
4235
|
e[33]
|
|
4234
4236
|
),
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
+
K(
|
|
4238
|
+
F,
|
|
4237
4239
|
"change",
|
|
4238
4240
|
/*debouncedExchangeInterogation*/
|
|
4239
4241
|
e[20]
|
|
4240
4242
|
),
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
+
K(
|
|
4244
|
+
j,
|
|
4243
4245
|
"input",
|
|
4244
4246
|
/*input1_input_handler*/
|
|
4245
4247
|
e[34]
|
|
4246
4248
|
),
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
+
K(
|
|
4250
|
+
ne,
|
|
4249
4251
|
"change",
|
|
4250
4252
|
/*select1_change_handler*/
|
|
4251
4253
|
e[35]
|
|
4252
4254
|
),
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
+
K(
|
|
4256
|
+
ne,
|
|
4255
4257
|
"change",
|
|
4256
4258
|
/*debouncedExchangeInterogation*/
|
|
4257
4259
|
e[20]
|
|
4258
4260
|
),
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
+
K(
|
|
4262
|
+
me,
|
|
4261
4263
|
"click",
|
|
4262
4264
|
/*click_handler*/
|
|
4263
4265
|
e[36]
|
|
4264
4266
|
)
|
|
4265
|
-
],
|
|
4267
|
+
], Qe = !0);
|
|
4266
4268
|
},
|
|
4267
|
-
p(
|
|
4269
|
+
p(p, A) {
|
|
4268
4270
|
if (A[0] & /*$_*/
|
|
4269
4271
|
262144 && a !== (a = /*$_*/
|
|
4270
|
-
|
|
4272
|
+
p[18]("vaultExchange") + "") && X(o, a), A[0] & /*$_*/
|
|
4271
4273
|
262144 && u !== (u = /*$_*/
|
|
4272
|
-
|
|
4273
|
-
32768 &&
|
|
4274
|
-
|
|
4274
|
+
p[18]("currentBalance") + "") && X(f, u), A[0] & /*playerBalance*/
|
|
4275
|
+
32768 && x !== (x = /*playerBalance*/
|
|
4276
|
+
p[15].amount + "") && X(I, x), A[0] & /*playerBalance*/
|
|
4275
4277
|
32768 && N !== (N = /*playerBalance*/
|
|
4276
|
-
|
|
4277
|
-
262144 &&
|
|
4278
|
-
|
|
4279
|
-
262144 &&
|
|
4280
|
-
|
|
4281
|
-
16 &&
|
|
4282
|
-
|
|
4283
|
-
|
|
4278
|
+
p[15].currency + "") && X(R, N), A[0] & /*$_*/
|
|
4279
|
+
262144 && ee !== (ee = /*$_*/
|
|
4280
|
+
p[18]("exchangeFrom") + "") && X(ae, ee), A[0] & /*$_*/
|
|
4281
|
+
262144 && q !== (q = /*$_*/
|
|
4282
|
+
p[18]("debitPlaceHolder")) && H(k, "placeholder", q), A[0] & /*inputExchangeFrom*/
|
|
4283
|
+
16 && pt(k.value) !== /*inputExchangeFrom*/
|
|
4284
|
+
p[4] && xe(
|
|
4285
|
+
k,
|
|
4284
4286
|
/*inputExchangeFrom*/
|
|
4285
|
-
|
|
4287
|
+
p[4]
|
|
4286
4288
|
), A[0] & /*playerFilteredBalances*/
|
|
4287
4289
|
8192) {
|
|
4288
|
-
|
|
4290
|
+
ge = Re(
|
|
4289
4291
|
/*playerFilteredBalances*/
|
|
4290
|
-
|
|
4292
|
+
p[13]
|
|
4291
4293
|
);
|
|
4292
4294
|
let g;
|
|
4293
|
-
for (g = 0; g <
|
|
4294
|
-
const ve =
|
|
4295
|
-
|
|
4295
|
+
for (g = 0; g < ge.length; g += 1) {
|
|
4296
|
+
const ve = xn(p, ge, g);
|
|
4297
|
+
h[g] ? h[g].p(ve, A) : (h[g] = _n(ve), h[g].c(), h[g].m(F, null));
|
|
4296
4298
|
}
|
|
4297
|
-
for (; g <
|
|
4298
|
-
|
|
4299
|
-
|
|
4299
|
+
for (; g < h.length; g += 1)
|
|
4300
|
+
h[g].d(1);
|
|
4301
|
+
h.length = ge.length;
|
|
4300
4302
|
}
|
|
4301
4303
|
if (A[0] & /*selectedCurrencyFrom, playerFilteredBalances*/
|
|
4302
|
-
8194 &&
|
|
4303
|
-
|
|
4304
|
+
8194 && lt(
|
|
4305
|
+
F,
|
|
4304
4306
|
/*selectedCurrencyFrom*/
|
|
4305
|
-
|
|
4307
|
+
p[1]
|
|
4306
4308
|
), A[0] & /*$_*/
|
|
4307
|
-
262144 &&
|
|
4308
|
-
|
|
4309
|
-
16 &&
|
|
4310
|
-
|
|
4311
|
-
262144 &&
|
|
4312
|
-
|
|
4313
|
-
32 &&
|
|
4314
|
-
|
|
4315
|
-
|
|
4309
|
+
262144 && fe !== (fe = /*$_*/
|
|
4310
|
+
p[18]("exchangeTo") + "") && X(Ze, fe), A[0] & /*inputExchangeFrom*/
|
|
4311
|
+
16 && He !== (He = /*inputExchangeFrom*/
|
|
4312
|
+
p[4] === 0) && (j.disabled = He), A[0] & /*$_*/
|
|
4313
|
+
262144 && Ae !== (Ae = /*$_*/
|
|
4314
|
+
p[18]("creditPlaceHolder")) && H(j, "placeholder", Ae), A[0] & /*inputExchangeTo*/
|
|
4315
|
+
32 && pt(j.value) !== /*inputExchangeTo*/
|
|
4316
|
+
p[5] && xe(
|
|
4317
|
+
j,
|
|
4316
4318
|
/*inputExchangeTo*/
|
|
4317
|
-
|
|
4319
|
+
p[5]
|
|
4318
4320
|
), A[0] & /*playerFilteredBalances, selectedCurrencyFrom*/
|
|
4319
4321
|
8194) {
|
|
4320
|
-
|
|
4322
|
+
b = Re(
|
|
4321
4323
|
/*playerFilteredBalances*/
|
|
4322
|
-
|
|
4324
|
+
p[13]
|
|
4323
4325
|
);
|
|
4324
4326
|
let g;
|
|
4325
|
-
for (g = 0; g <
|
|
4326
|
-
const ve =
|
|
4327
|
-
|
|
4327
|
+
for (g = 0; g < b.length; g += 1) {
|
|
4328
|
+
const ve = vn(p, b, g);
|
|
4329
|
+
E[g] ? E[g].p(ve, A) : (E[g] = Tn(ve), E[g].c(), E[g].m(ne, null));
|
|
4328
4330
|
}
|
|
4329
|
-
for (; g <
|
|
4330
|
-
|
|
4331
|
-
|
|
4331
|
+
for (; g < E.length; g += 1)
|
|
4332
|
+
E[g].d(1);
|
|
4333
|
+
E.length = b.length;
|
|
4332
4334
|
}
|
|
4333
4335
|
if (A[0] & /*selectedCurrencyTo, playerFilteredBalances*/
|
|
4334
|
-
8196 &&
|
|
4335
|
-
|
|
4336
|
+
8196 && lt(
|
|
4337
|
+
ne,
|
|
4336
4338
|
/*selectedCurrencyTo*/
|
|
4337
|
-
|
|
4339
|
+
p[2]
|
|
4338
4340
|
), A[0] & /*isVaultDropDownToggled, dropDownVaults*/
|
|
4339
4341
|
16512 && Ie !== (Ie = "containerIconVault " + /*isVaultDropDownToggled*/
|
|
4340
|
-
(
|
|
4341
|
-
|
|
4342
|
+
(p[7] && /*dropDownVaults*/
|
|
4343
|
+
p[14].length > 0 ? "active" : "")) && H(me, "class", Ie), A[0] & /*elements, dropDownVaults*/
|
|
4342
4344
|
147456) {
|
|
4343
|
-
|
|
4345
|
+
S = Re(
|
|
4344
4346
|
/*dropDownVaults*/
|
|
4345
|
-
|
|
4347
|
+
p[14]
|
|
4346
4348
|
);
|
|
4347
4349
|
let g;
|
|
4348
|
-
for (g = 0; g <
|
|
4349
|
-
const ve =
|
|
4350
|
-
|
|
4350
|
+
for (g = 0; g < S.length; g += 1) {
|
|
4351
|
+
const ve = yn(p, S, g);
|
|
4352
|
+
v[g] ? v[g].p(ve, A) : (v[g] = Hn(ve), v[g].c(), v[g].m(re, null));
|
|
4351
4353
|
}
|
|
4352
|
-
for (; g <
|
|
4353
|
-
|
|
4354
|
-
|
|
4354
|
+
for (; g < v.length; g += 1)
|
|
4355
|
+
v[g].d(1);
|
|
4356
|
+
v.length = S.length;
|
|
4355
4357
|
}
|
|
4356
4358
|
A[0] & /*isVaultDropDownToggled, dropDownVaults*/
|
|
4357
|
-
16512 &&
|
|
4358
|
-
(
|
|
4359
|
-
|
|
4360
|
-
1 &&
|
|
4361
|
-
|
|
4359
|
+
16512 && Ne !== (Ne = "vaultDropDown " + /*isVaultDropDownToggled*/
|
|
4360
|
+
(p[7] && /*dropDownVaults*/
|
|
4361
|
+
p[14].length > 0 ? "active" : "")) && H(re, "class", Ne), A[0] & /*calculateHeight*/
|
|
4362
|
+
1 && Kt(
|
|
4363
|
+
re,
|
|
4362
4364
|
"height",
|
|
4363
4365
|
/*calculateHeight*/
|
|
4364
|
-
|
|
4366
|
+
p[0]
|
|
4365
4367
|
), A[0] & /*$_, errorCode*/
|
|
4366
|
-
262152 &&
|
|
4367
|
-
|
|
4368
|
+
262152 && Le !== (Le = /*$_*/
|
|
4369
|
+
p[18](
|
|
4368
4370
|
/*errorCode*/
|
|
4369
|
-
|
|
4370
|
-
) + "") && (
|
|
4371
|
-
256 &&
|
|
4372
|
-
|
|
4371
|
+
p[3]
|
|
4372
|
+
) + "") && (Oe.innerHTML = Le), A[0] & /*isError*/
|
|
4373
|
+
256 && G(
|
|
4374
|
+
z,
|
|
4373
4375
|
"error",
|
|
4374
4376
|
/*isError*/
|
|
4375
|
-
|
|
4377
|
+
p[8]
|
|
4376
4378
|
), A[0] & /*isSuccess*/
|
|
4377
|
-
512 &&
|
|
4378
|
-
|
|
4379
|
+
512 && G(
|
|
4380
|
+
z,
|
|
4379
4381
|
"success",
|
|
4380
4382
|
/*isSuccess*/
|
|
4381
|
-
|
|
4383
|
+
p[9]
|
|
4382
4384
|
), A[0] & /*isAction*/
|
|
4383
|
-
1024 &&
|
|
4384
|
-
|
|
4385
|
+
1024 && G(
|
|
4386
|
+
z,
|
|
4385
4387
|
"action",
|
|
4386
4388
|
/*isAction*/
|
|
4387
|
-
|
|
4389
|
+
p[10]
|
|
4388
4390
|
), A[0] & /*isError*/
|
|
4389
|
-
256 &&
|
|
4390
|
-
|
|
4391
|
+
256 && G(
|
|
4392
|
+
L,
|
|
4391
4393
|
"error",
|
|
4392
4394
|
/*isError*/
|
|
4393
|
-
|
|
4395
|
+
p[8]
|
|
4394
4396
|
), A[0] & /*isSuccess*/
|
|
4395
|
-
512 &&
|
|
4396
|
-
|
|
4397
|
+
512 && G(
|
|
4398
|
+
L,
|
|
4397
4399
|
"success",
|
|
4398
4400
|
/*isSuccess*/
|
|
4399
|
-
|
|
4401
|
+
p[9]
|
|
4400
4402
|
), A[0] & /*isAction*/
|
|
4401
|
-
1024 &&
|
|
4402
|
-
|
|
4403
|
+
1024 && G(
|
|
4404
|
+
L,
|
|
4403
4405
|
"action",
|
|
4404
4406
|
/*isAction*/
|
|
4405
|
-
|
|
4406
|
-
),
|
|
4407
|
+
p[10]
|
|
4408
|
+
), ye === (ye = be(p)) && oe ? oe.p(p, A) : (oe.d(1), oe = ye(p), oe && (oe.c(), oe.m(Be, null)));
|
|
4407
4409
|
},
|
|
4408
|
-
i:
|
|
4409
|
-
o:
|
|
4410
|
-
d(
|
|
4411
|
-
|
|
4410
|
+
i: ie,
|
|
4411
|
+
o: ie,
|
|
4412
|
+
d(p) {
|
|
4413
|
+
p && W(t), Tt(h, p), Tt(E, p), Tt(v, p), e[38](null), oe.d(), Qe = !1, we(st);
|
|
4412
4414
|
}
|
|
4413
4415
|
};
|
|
4414
4416
|
}
|
|
4415
|
-
function
|
|
4417
|
+
function va(e, t) {
|
|
4416
4418
|
let n;
|
|
4417
4419
|
return function(...r) {
|
|
4418
4420
|
n && clearTimeout(n), n = setTimeout(
|
|
@@ -4423,90 +4425,103 @@ function ya(e, t) {
|
|
|
4423
4425
|
);
|
|
4424
4426
|
};
|
|
4425
4427
|
}
|
|
4426
|
-
function
|
|
4428
|
+
function xa(e, t, n) {
|
|
4427
4429
|
let r;
|
|
4428
|
-
|
|
4429
|
-
let { session: i = "", userid: a = "", endpoint: o = "", lang: s = "en" } = t, { clientstyling: c = "", clientstylingurl: l = "", translationurl: u = "" } = t, { playercurrency:
|
|
4430
|
-
const
|
|
4431
|
-
|
|
4430
|
+
sr(e, fa, (h) => n(18, r = h));
|
|
4431
|
+
let { session: i = "", userid: a = "", endpoint: o = "", lang: s = "en" } = t, { clientstyling: c = "", clientstylingurl: l = "", translationurl: u = "" } = t, { playercurrency: f = "" } = t, d = "", y = "", x = "", I = "", U = "", N = 0, R = 0, D = 0, P = !0, O = !1, Z = !1, ee = !1, ae = !1, Te = !0, le = !1, ue = [], k = [], q = [], ce = [], F = [], Ce = [], Q = {}, We = {}, te, he = null, fe = [];
|
|
4432
|
+
const Ze = () => {
|
|
4433
|
+
ma(s);
|
|
4432
4434
|
};
|
|
4433
|
-
|
|
4434
|
-
const
|
|
4435
|
-
fetch(u).then((
|
|
4436
|
-
Object.keys(
|
|
4437
|
-
|
|
4435
|
+
pa({ withLocale: "en", translations: {} });
|
|
4436
|
+
const rt = () => {
|
|
4437
|
+
fetch(u).then((b) => b.json()).then((b) => {
|
|
4438
|
+
Object.keys(b).forEach((E) => {
|
|
4439
|
+
gn(E, b[E]);
|
|
4438
4440
|
});
|
|
4439
|
-
}).catch((
|
|
4440
|
-
console.error("There was a problem with the translations request.",
|
|
4441
|
+
}).catch((b) => {
|
|
4442
|
+
console.error("There was a problem with the translations request.", b);
|
|
4441
4443
|
});
|
|
4442
4444
|
};
|
|
4443
|
-
Object.keys(
|
|
4444
|
-
|
|
4445
|
+
Object.keys(bn).forEach((h) => {
|
|
4446
|
+
gn(h, bn[h]);
|
|
4445
4447
|
});
|
|
4446
|
-
const
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4448
|
+
const pe = () => {
|
|
4449
|
+
let h = document.createElement("style");
|
|
4450
|
+
h.innerHTML = c, te.appendChild(h);
|
|
4451
|
+
}, j = () => {
|
|
4452
|
+
let h = new URL(l), b = document.createElement("style");
|
|
4453
|
+
fetch(h.href).then((E) => E.text()).then((E) => {
|
|
4454
|
+
b.innerHTML = E, setTimeout(
|
|
4455
|
+
() => {
|
|
4456
|
+
te.appendChild(b);
|
|
4457
|
+
},
|
|
4458
|
+
1
|
|
4459
|
+
);
|
|
4460
|
+
});
|
|
4461
|
+
}, He = (h) => {
|
|
4462
|
+
O && F.length === 0 || (h.preventDefault(), n(7, O = !O), n(0, d = O ? Ae() : "0px"));
|
|
4463
|
+
}, Ae = () => {
|
|
4464
|
+
var v;
|
|
4465
|
+
if (F.length === 0)
|
|
4451
4466
|
return n(0, d = "0px");
|
|
4452
|
-
const
|
|
4453
|
-
return n(0, d = `${
|
|
4454
|
-
},
|
|
4455
|
-
let
|
|
4456
|
-
fetch(
|
|
4467
|
+
const h = (v = fe[0]) == null ? void 0 : v.clientHeight, b = F.length, E = 30, S = parseFloat(getComputedStyle(he).getPropertyValue("gap"));
|
|
4468
|
+
return n(0, d = `${b * h + b * S + E}px`);
|
|
4469
|
+
}, qe = () => new Promise((h, b) => {
|
|
4470
|
+
let E = new URL(`${o}/v2/player/${a}/balance`);
|
|
4471
|
+
fetch(E, {
|
|
4457
4472
|
method: "GET",
|
|
4458
4473
|
headers: {
|
|
4459
4474
|
"X-SessionID": i,
|
|
4460
4475
|
"Content-Type": "application/json",
|
|
4461
4476
|
Accept: "application/json"
|
|
4462
4477
|
}
|
|
4463
|
-
}).then((
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
}),
|
|
4478
|
+
}).then((v) => z(v)).then((v) => {
|
|
4479
|
+
v && (n(13, q = []), k = [], ce = [], n(14, F = []), ue = v.items, it().then((be) => {
|
|
4480
|
+
be.forEach((ye) => {
|
|
4481
|
+
Ce.push(ye.code);
|
|
4482
|
+
}), ne(v), h();
|
|
4468
4483
|
}));
|
|
4469
|
-
}).catch((
|
|
4470
|
-
|
|
4484
|
+
}).catch((v) => {
|
|
4485
|
+
b(), L("error", r("generalError")), console.error("There was an error with the player balance request.", v);
|
|
4471
4486
|
});
|
|
4472
|
-
}),
|
|
4473
|
-
if (
|
|
4474
|
-
if (
|
|
4475
|
-
switch (n(13,
|
|
4487
|
+
}), ne = (h) => {
|
|
4488
|
+
if (ue.forEach((b) => {
|
|
4489
|
+
if (b.type === "Real" && !(!Ce.includes(b.currency) && Ce.length > 0))
|
|
4490
|
+
switch (n(13, q = q.concat(b)), b.walletAccountType) {
|
|
4476
4491
|
case "Ordinary":
|
|
4477
|
-
|
|
4492
|
+
k = k.concat(b);
|
|
4478
4493
|
break;
|
|
4479
4494
|
case "Vault":
|
|
4480
|
-
if (
|
|
4495
|
+
if (ce = ce.concat(b), b.amount === 0)
|
|
4481
4496
|
return;
|
|
4482
|
-
n(14,
|
|
4497
|
+
n(14, F = F.concat(b));
|
|
4483
4498
|
break;
|
|
4484
4499
|
}
|
|
4485
|
-
}), n(15,
|
|
4486
|
-
return
|
|
4487
|
-
n(1,
|
|
4488
|
-
},
|
|
4489
|
-
let
|
|
4490
|
-
fetch(
|
|
4500
|
+
}), n(15, Q = Object.entries(h.totalCashAmount).map(([b, E]) => ({ currency: b, amount: E }))[0]), Q.amount === 0 && !ce.find((b) => b.amount > 0))
|
|
4501
|
+
return L("error", r("userHasNoBalances"));
|
|
4502
|
+
n(1, y = Q.amount === 0 ? ce.find((b) => b.amount > 0).currency : Q.currency), n(2, x = Q.amount === 0 ? Q.currency : ce.find((b) => b.type === "Real").currency);
|
|
4503
|
+
}, it = () => new Promise((h, b) => {
|
|
4504
|
+
let E = new URL(`${o}/v1/player/${a}/wallet-exchange/currencies`);
|
|
4505
|
+
fetch(E, {
|
|
4491
4506
|
method: "GET",
|
|
4492
4507
|
headers: {
|
|
4493
4508
|
"X-SessionId": i,
|
|
4494
4509
|
"Content-Type": "application/json",
|
|
4495
4510
|
Accept: "application/json"
|
|
4496
4511
|
}
|
|
4497
|
-
}).then((
|
|
4498
|
-
|
|
4499
|
-
}).catch((
|
|
4500
|
-
|
|
4512
|
+
}).then((v) => z(v)).then((v) => {
|
|
4513
|
+
v.length !== 0 && h(v.currencies);
|
|
4514
|
+
}).catch((v) => {
|
|
4515
|
+
b(), L("error", r("generalError")), console.error("There was an error on the allowed currencies request.", v);
|
|
4501
4516
|
});
|
|
4502
|
-
}),
|
|
4503
|
-
var
|
|
4504
|
-
|
|
4505
|
-
const
|
|
4506
|
-
N >
|
|
4507
|
-
}),
|
|
4508
|
-
|
|
4509
|
-
let
|
|
4517
|
+
}), me = () => new Promise((h, b) => {
|
|
4518
|
+
var S;
|
|
4519
|
+
y === x && n(2, x = (S = q.find((v) => v.currency !== y)) == null ? void 0 : S.currency), N <= 0 && (Je(), b());
|
|
4520
|
+
const E = q.find((v) => v.currency === y);
|
|
4521
|
+
N > E.amount && n(4, N = E.amount), h();
|
|
4522
|
+
}), de = () => {
|
|
4523
|
+
me().then(() => {
|
|
4524
|
+
let h = new URL(`${o}/v2/player/${a}/check/wallet-exchange`), E = {
|
|
4510
4525
|
method: "POST",
|
|
4511
4526
|
headers: {
|
|
4512
4527
|
"X-SessionID": i,
|
|
@@ -4516,31 +4531,31 @@ function va(e, t, n) {
|
|
|
4516
4531
|
body: JSON.stringify({
|
|
4517
4532
|
userId: a,
|
|
4518
4533
|
amount: N,
|
|
4519
|
-
currency:
|
|
4520
|
-
fromCurrency:
|
|
4521
|
-
toCurrency:
|
|
4522
|
-
payload: { PlayerCurrency:
|
|
4534
|
+
currency: y,
|
|
4535
|
+
fromCurrency: y,
|
|
4536
|
+
toCurrency: x,
|
|
4537
|
+
payload: { PlayerCurrency: f }
|
|
4523
4538
|
})
|
|
4524
4539
|
};
|
|
4525
|
-
fetch(
|
|
4526
|
-
if (!
|
|
4540
|
+
fetch(h, E).then((S) => z(S)).then((S) => {
|
|
4541
|
+
if (!S)
|
|
4527
4542
|
return;
|
|
4528
|
-
if (n(12,
|
|
4529
|
-
n(12,
|
|
4530
|
-
let
|
|
4531
|
-
|
|
4543
|
+
if (n(12, le = !1), n(11, Te = !1), n(10, ae = !1), S.feeDetails && S.feeDetails.fees.length > 0) {
|
|
4544
|
+
n(12, le = !0);
|
|
4545
|
+
let be = S.feeDetails.fees.find((ye) => ye.id);
|
|
4546
|
+
re(be);
|
|
4532
4547
|
} else
|
|
4533
4548
|
n(6, P = !1);
|
|
4534
|
-
const
|
|
4535
|
-
n(5,
|
|
4536
|
-
}).catch((
|
|
4537
|
-
|
|
4549
|
+
const v = S.walletActions.find((be) => be.directionName === "Credit").amount;
|
|
4550
|
+
n(5, R = Pe(v));
|
|
4551
|
+
}).catch((S) => {
|
|
4552
|
+
L("error", r("generalError")), console.error("There was a problem with the wallet exchange request.", S);
|
|
4538
4553
|
});
|
|
4539
|
-
}).catch((
|
|
4540
|
-
|
|
4554
|
+
}).catch((h) => {
|
|
4555
|
+
L("error", r("walletExchangeError"));
|
|
4541
4556
|
});
|
|
4542
|
-
},
|
|
4543
|
-
let
|
|
4557
|
+
}, Pe = (h) => Math.abs(h) < 1e-6 || Math.abs(h) >= 1e6 ? h.toFixed(12).replace(/\.?0+$/, "") : h.toString(), Ie = va(de, 500), at = () => {
|
|
4558
|
+
let h = new URL(`${o}/v2/player/${a}/wallet-exchange`), E = {
|
|
4544
4559
|
method: "PUT",
|
|
4545
4560
|
headers: {
|
|
4546
4561
|
"X-SessionID": i,
|
|
@@ -4550,137 +4565,137 @@ function va(e, t, n) {
|
|
|
4550
4565
|
body: JSON.stringify({
|
|
4551
4566
|
userId: a,
|
|
4552
4567
|
amount: N,
|
|
4553
|
-
currency:
|
|
4554
|
-
fromCurrency:
|
|
4555
|
-
toCurrency:
|
|
4556
|
-
payload: { PlayerCurrency:
|
|
4568
|
+
currency: y,
|
|
4569
|
+
fromCurrency: y,
|
|
4570
|
+
toCurrency: x,
|
|
4571
|
+
payload: { PlayerCurrency: f }
|
|
4557
4572
|
})
|
|
4558
4573
|
};
|
|
4559
|
-
fetch(
|
|
4560
|
-
|
|
4561
|
-
!
|
|
4562
|
-
}).catch((
|
|
4563
|
-
console.error("There was an error with fetching the players balance.",
|
|
4574
|
+
fetch(h, E).then((S) => z(S)).then((S) => {
|
|
4575
|
+
S && (n(10, ae = !1), n(4, N = 0), n(5, R = 0), L("success", "exchangeSuccess"), qe().then((v) => {
|
|
4576
|
+
!v || !O || Ae();
|
|
4577
|
+
}).catch((v) => {
|
|
4578
|
+
console.error("There was an error with fetching the players balance.", v);
|
|
4564
4579
|
}));
|
|
4565
|
-
}).catch((
|
|
4566
|
-
|
|
4580
|
+
}).catch((S) => {
|
|
4581
|
+
L("error", r("generalError")), console.error("There was an error with the wallet exchange request.", S);
|
|
4567
4582
|
});
|
|
4568
|
-
},
|
|
4569
|
-
|
|
4570
|
-
values: { amount:
|
|
4583
|
+
}, re = (h) => {
|
|
4584
|
+
D = h.amount, I = h.currency, n(11, Te = !1), L("action", r("feeAcceptNotification", {
|
|
4585
|
+
values: { amount: D, currency: I }
|
|
4571
4586
|
}));
|
|
4572
|
-
},
|
|
4573
|
-
n(10,
|
|
4574
|
-
let
|
|
4575
|
-
exchageAmount:
|
|
4576
|
-
exchageCurrency:
|
|
4577
|
-
exchangedAmount:
|
|
4578
|
-
exchangedCurrency:
|
|
4579
|
-
feeAmount:
|
|
4587
|
+
}, Ne = () => {
|
|
4588
|
+
n(10, ae = !1), n(6, P = !1), n(11, Te = !0);
|
|
4589
|
+
let b = {
|
|
4590
|
+
exchageAmount: Pe(N - D),
|
|
4591
|
+
exchageCurrency: y,
|
|
4592
|
+
exchangedAmount: R,
|
|
4593
|
+
exchangedCurrency: x,
|
|
4594
|
+
feeAmount: D,
|
|
4580
4595
|
feeCurrency: I
|
|
4581
4596
|
};
|
|
4582
|
-
|
|
4583
|
-
},
|
|
4584
|
-
n(10,
|
|
4585
|
-
},
|
|
4586
|
-
switch (
|
|
4597
|
+
L("action", r("feeExchangeNotification", { values: b }));
|
|
4598
|
+
}, Je = () => {
|
|
4599
|
+
n(10, ae = !1), n(12, le = !1), n(6, P = !0), n(5, R = 0), n(4, N = 0);
|
|
4600
|
+
}, L = (h, b) => {
|
|
4601
|
+
switch (h) {
|
|
4587
4602
|
case "error":
|
|
4588
|
-
n(8,
|
|
4603
|
+
n(8, Z = !0), n(6, P = !0), window.postMessage(
|
|
4589
4604
|
{
|
|
4590
4605
|
type: "WidgetNotification",
|
|
4591
|
-
data: { type: "error", message:
|
|
4606
|
+
data: { type: "error", message: b }
|
|
4592
4607
|
},
|
|
4593
4608
|
window.location.href
|
|
4594
4609
|
), setTimeout(
|
|
4595
4610
|
() => {
|
|
4596
|
-
n(8,
|
|
4611
|
+
n(8, Z = !1);
|
|
4597
4612
|
},
|
|
4598
4613
|
2e3
|
|
4599
4614
|
);
|
|
4600
4615
|
break;
|
|
4601
4616
|
case "success":
|
|
4602
|
-
n(9,
|
|
4617
|
+
n(9, ee = !0), n(6, P = !0), window.postMessage(
|
|
4603
4618
|
{
|
|
4604
4619
|
type: "WidgetNotification",
|
|
4605
|
-
data: { type: "success", message:
|
|
4620
|
+
data: { type: "success", message: b }
|
|
4606
4621
|
},
|
|
4607
4622
|
window.location.href
|
|
4608
4623
|
), setTimeout(
|
|
4609
4624
|
() => {
|
|
4610
|
-
n(9,
|
|
4625
|
+
n(9, ee = !1);
|
|
4611
4626
|
},
|
|
4612
4627
|
2e3
|
|
4613
4628
|
);
|
|
4614
4629
|
break;
|
|
4615
4630
|
case "action":
|
|
4616
|
-
n(10,
|
|
4631
|
+
n(10, ae = !0);
|
|
4617
4632
|
break;
|
|
4618
4633
|
}
|
|
4619
|
-
n(3,
|
|
4620
|
-
},
|
|
4621
|
-
return
|
|
4634
|
+
n(3, U = b);
|
|
4635
|
+
}, z = (h) => wt(this, null, function* () {
|
|
4636
|
+
return h.status >= 300 ? (We = yield h.json(), n(3, U = We.thirdPartyResponse.errorCode), L("error", U || "generalError")) : h.json();
|
|
4622
4637
|
});
|
|
4623
|
-
function
|
|
4624
|
-
N =
|
|
4638
|
+
function Oe() {
|
|
4639
|
+
N = pt(this.value), n(4, N);
|
|
4625
4640
|
}
|
|
4626
|
-
function
|
|
4627
|
-
|
|
4641
|
+
function Le() {
|
|
4642
|
+
y = en(this), n(1, y), n(13, q);
|
|
4628
4643
|
}
|
|
4629
|
-
function
|
|
4630
|
-
|
|
4644
|
+
function ot() {
|
|
4645
|
+
R = pt(this.value), n(5, R);
|
|
4631
4646
|
}
|
|
4632
|
-
function
|
|
4633
|
-
|
|
4647
|
+
function Be() {
|
|
4648
|
+
x = en(this), n(2, x), n(13, q);
|
|
4634
4649
|
}
|
|
4635
|
-
const
|
|
4636
|
-
|
|
4650
|
+
const Qe = (h) => {
|
|
4651
|
+
He(h);
|
|
4637
4652
|
};
|
|
4638
|
-
function
|
|
4639
|
-
|
|
4640
|
-
|
|
4653
|
+
function st(h, b) {
|
|
4654
|
+
mt[h ? "unshift" : "push"](() => {
|
|
4655
|
+
fe[b] = h, n(17, fe);
|
|
4641
4656
|
});
|
|
4642
4657
|
}
|
|
4643
|
-
function
|
|
4644
|
-
|
|
4645
|
-
|
|
4658
|
+
function ge(h) {
|
|
4659
|
+
mt[h ? "unshift" : "push"](() => {
|
|
4660
|
+
he = h, n(16, he);
|
|
4646
4661
|
});
|
|
4647
4662
|
}
|
|
4648
|
-
return e.$$set = (
|
|
4649
|
-
"session" in
|
|
4663
|
+
return e.$$set = (h) => {
|
|
4664
|
+
"session" in h && n(24, i = h.session), "userid" in h && n(25, a = h.userid), "endpoint" in h && n(26, o = h.endpoint), "lang" in h && n(27, s = h.lang), "clientstyling" in h && n(28, c = h.clientstyling), "clientstylingurl" in h && n(29, l = h.clientstylingurl), "translationurl" in h && n(30, u = h.translationurl), "playercurrency" in h && n(31, f = h.playercurrency);
|
|
4650
4665
|
}, e.$$.update = () => {
|
|
4651
4666
|
e.$$.dirty[0] & /*session*/
|
|
4652
4667
|
16777216, e.$$.dirty[0] & /*lang*/
|
|
4653
|
-
134217728 && s &&
|
|
4668
|
+
134217728 && s && Ze(), e.$$.dirty[0] & /*session, userid, endpoint*/
|
|
4654
4669
|
117440512 | e.$$.dirty[1] & /*playercurrency*/
|
|
4655
|
-
1 && i && a && o &&
|
|
4656
|
-
268435456, e.$$.dirty[0] & /*clientstylingurl*/
|
|
4657
|
-
536870912, e.$$.dirty[0] & /*translationurl*/
|
|
4658
|
-
1073741824 && u &&
|
|
4670
|
+
1 && i && a && o && f && qe(), e.$$.dirty[0] & /*clientstyling*/
|
|
4671
|
+
268435456 && c && te && pe(), e.$$.dirty[0] & /*clientstylingurl*/
|
|
4672
|
+
536870912 && l && te && j(), e.$$.dirty[0] & /*translationurl*/
|
|
4673
|
+
1073741824 && u && rt();
|
|
4659
4674
|
}, [
|
|
4660
4675
|
d,
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4676
|
+
y,
|
|
4677
|
+
x,
|
|
4678
|
+
U,
|
|
4664
4679
|
N,
|
|
4665
|
-
|
|
4680
|
+
R,
|
|
4666
4681
|
P,
|
|
4667
4682
|
O,
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4683
|
+
Z,
|
|
4684
|
+
ee,
|
|
4685
|
+
ae,
|
|
4671
4686
|
Te,
|
|
4687
|
+
le,
|
|
4688
|
+
q,
|
|
4689
|
+
F,
|
|
4690
|
+
Q,
|
|
4672
4691
|
he,
|
|
4673
|
-
|
|
4674
|
-
G,
|
|
4675
|
-
Y,
|
|
4676
|
-
re,
|
|
4677
|
-
me,
|
|
4692
|
+
fe,
|
|
4678
4693
|
r,
|
|
4679
|
-
|
|
4680
|
-
be,
|
|
4681
|
-
ye,
|
|
4694
|
+
He,
|
|
4682
4695
|
Ie,
|
|
4683
|
-
|
|
4696
|
+
at,
|
|
4697
|
+
Ne,
|
|
4698
|
+
Je,
|
|
4684
4699
|
i,
|
|
4685
4700
|
a,
|
|
4686
4701
|
o,
|
|
@@ -4688,24 +4703,24 @@ function va(e, t, n) {
|
|
|
4688
4703
|
c,
|
|
4689
4704
|
l,
|
|
4690
4705
|
u,
|
|
4691
|
-
|
|
4692
|
-
it,
|
|
4693
|
-
K,
|
|
4694
|
-
ae,
|
|
4695
|
-
Ne,
|
|
4706
|
+
f,
|
|
4696
4707
|
Oe,
|
|
4697
|
-
|
|
4698
|
-
|
|
4708
|
+
Le,
|
|
4709
|
+
ot,
|
|
4710
|
+
Be,
|
|
4711
|
+
Qe,
|
|
4712
|
+
st,
|
|
4713
|
+
ge
|
|
4699
4714
|
];
|
|
4700
4715
|
}
|
|
4701
|
-
class
|
|
4716
|
+
class Ea extends Tr {
|
|
4702
4717
|
constructor(t) {
|
|
4703
|
-
super(),
|
|
4718
|
+
super(), _r(
|
|
4704
4719
|
this,
|
|
4705
4720
|
t,
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4721
|
+
xa,
|
|
4722
|
+
ya,
|
|
4723
|
+
Bn,
|
|
4709
4724
|
{
|
|
4710
4725
|
session: 24,
|
|
4711
4726
|
userid: 25,
|
|
@@ -4716,7 +4731,7 @@ class xa extends _r {
|
|
|
4716
4731
|
translationurl: 30,
|
|
4717
4732
|
playercurrency: 31
|
|
4718
4733
|
},
|
|
4719
|
-
|
|
4734
|
+
da,
|
|
4720
4735
|
[-1, -1, -1]
|
|
4721
4736
|
);
|
|
4722
4737
|
}
|
|
@@ -4724,52 +4739,52 @@ class xa extends _r {
|
|
|
4724
4739
|
return this.$$.ctx[24];
|
|
4725
4740
|
}
|
|
4726
4741
|
set session(t) {
|
|
4727
|
-
this.$$set({ session: t }),
|
|
4742
|
+
this.$$set({ session: t }), se();
|
|
4728
4743
|
}
|
|
4729
4744
|
get userid() {
|
|
4730
4745
|
return this.$$.ctx[25];
|
|
4731
4746
|
}
|
|
4732
4747
|
set userid(t) {
|
|
4733
|
-
this.$$set({ userid: t }),
|
|
4748
|
+
this.$$set({ userid: t }), se();
|
|
4734
4749
|
}
|
|
4735
4750
|
get endpoint() {
|
|
4736
4751
|
return this.$$.ctx[26];
|
|
4737
4752
|
}
|
|
4738
4753
|
set endpoint(t) {
|
|
4739
|
-
this.$$set({ endpoint: t }),
|
|
4754
|
+
this.$$set({ endpoint: t }), se();
|
|
4740
4755
|
}
|
|
4741
4756
|
get lang() {
|
|
4742
4757
|
return this.$$.ctx[27];
|
|
4743
4758
|
}
|
|
4744
4759
|
set lang(t) {
|
|
4745
|
-
this.$$set({ lang: t }),
|
|
4760
|
+
this.$$set({ lang: t }), se();
|
|
4746
4761
|
}
|
|
4747
4762
|
get clientstyling() {
|
|
4748
4763
|
return this.$$.ctx[28];
|
|
4749
4764
|
}
|
|
4750
4765
|
set clientstyling(t) {
|
|
4751
|
-
this.$$set({ clientstyling: t }),
|
|
4766
|
+
this.$$set({ clientstyling: t }), se();
|
|
4752
4767
|
}
|
|
4753
4768
|
get clientstylingurl() {
|
|
4754
4769
|
return this.$$.ctx[29];
|
|
4755
4770
|
}
|
|
4756
4771
|
set clientstylingurl(t) {
|
|
4757
|
-
this.$$set({ clientstylingurl: t }),
|
|
4772
|
+
this.$$set({ clientstylingurl: t }), se();
|
|
4758
4773
|
}
|
|
4759
4774
|
get translationurl() {
|
|
4760
4775
|
return this.$$.ctx[30];
|
|
4761
4776
|
}
|
|
4762
4777
|
set translationurl(t) {
|
|
4763
|
-
this.$$set({ translationurl: t }),
|
|
4778
|
+
this.$$set({ translationurl: t }), se();
|
|
4764
4779
|
}
|
|
4765
4780
|
get playercurrency() {
|
|
4766
4781
|
return this.$$.ctx[31];
|
|
4767
4782
|
}
|
|
4768
4783
|
set playercurrency(t) {
|
|
4769
|
-
this.$$set({ playercurrency: t }),
|
|
4784
|
+
this.$$set({ playercurrency: t }), se();
|
|
4770
4785
|
}
|
|
4771
4786
|
}
|
|
4772
|
-
|
|
4787
|
+
wr(Ea, { session: {}, userid: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {} }, [], [], !0);
|
|
4773
4788
|
export {
|
|
4774
|
-
|
|
4789
|
+
Ea as default
|
|
4775
4790
|
};
|